test_research4 0.5.18 → 0.5.19
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/destructiveOperationElicitation.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/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 -1
- 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/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
|
-
const a0_0x150a11=a0_0x53c1;function a0_0x53c1(_0x43fb2c,_0x46f70b){_0x43fb2c=_0x43fb2c-0xfc;const _0x25412a=a0_0x2541();let _0x53c110=_0x25412a[_0x43fb2c];if(a0_0x53c1['\x46\x73\x49\x48\x64\x48']===undefined){var _0x547bc0=function(_0x40eedd){const _0x197f33='\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 _0x25f464='';let _0x5a671f='';for(let _0x46930d=0x0,_0x2eb146,_0x1affc2,_0x42868d=0x0;_0x1affc2=_0x40eedd['\x63\x68\x61\x72\x41\x74'](_0x42868d++);~_0x1affc2&&(_0x2eb146=_0x46930d%0x4?_0x2eb146*0x40+_0x1affc2:_0x1affc2,_0x46930d++%0x4)?_0x25f464+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x2eb146>>(-0x2*_0x46930d&0x6)):0x0){_0x1affc2=_0x197f33['\x69\x6e\x64\x65\x78\x4f\x66'](_0x1affc2);}for(let _0xb97abc=0x0,_0x56652a=_0x25f464['\x6c\x65\x6e\x67\x74\x68'];_0xb97abc<_0x56652a;_0xb97abc++){_0x5a671f+='\x25'+('\x30\x30'+_0x25f464['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0xb97abc)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x5a671f);};a0_0x53c1['\x4d\x55\x69\x56\x41\x44']=_0x547bc0;a0_0x53c1['\x4a\x6e\x75\x71\x54\x79']={};a0_0x53c1['\x46\x73\x49\x48\x64\x48']=!![];}const _0x199877=_0x25412a[0x0];const _0x2698ed=_0x43fb2c+_0x199877;const _0x21f08e=a0_0x53c1['\x4a\x6e\x75\x71\x54\x79'][_0x2698ed];if(!_0x21f08e){_0x53c110=a0_0x53c1['\x4d\x55\x69\x56\x41\x44'](_0x53c110);a0_0x53c1['\x4a\x6e\x75\x71\x54\x79'][_0x2698ed]=_0x53c110;}else{_0x53c110=_0x21f08e;}return _0x53c110;}function a0_0x2541(){const _0x3edad1=['\x41\x77\x35\x4d\x42\x59\x57\x47\x7a\x67\x76\x49\x44\x71','\x43\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','\x75\x68\x50\x73\x42\x66\x47','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x62\x4c\x42\x71','\x6d\x74\x72\x6d\x73\x33\x66\x31\x43\x77\x65','\x69\x63\x31\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x69\x61','\x69\x63\x62\x78\x74\x31\x6a\x6c\x75\x31\x62\x62\x71\x57','\x7a\x33\x76\x54\x7a\x77\x35\x30\x6f\x49\x61','\x69\x63\x61\x47\x69\x63\x61\x47\x76\x68\x6a\x48\x42\x47','\x7a\x32\x76\x55\x79\x33\x4b\x53\x69\x67\x66\x53\x7a\x71','\x73\x30\x72\x56\x76\x33\x43','\x42\x4c\x6e\x35\x43\x66\x4b','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x57\x47\x7a\x61','\x43\x4d\x39\x51\x7a\x77\x6e\x30\x69\x63\x30\x54\x43\x57','\x72\x77\x35\x32\x41\x78\x6a\x56\x42\x4d\x31\x4c\x42\x47','\x69\x67\x39\x31\x44\x68\x62\x31\x44\x63\x61\x4f\x7a\x61','\x69\x63\x61\x54\x6c\x78\x7a\x4c\x43\x4e\x6e\x50\x42\x57','\x79\x77\x57\x53\x69\x67\x76\x59\x43\x4d\x39\x59\x6c\x61','\x72\x76\x39\x67\x74\x30\x58\x65\x72\x76\x6a\x46\x75\x61','\x6e\x74\x71\x32\x42\x75\x6e\x4b\x41\x4b\x44\x34','\x45\x77\x4c\x79\x43\x4c\x61','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x4b','\x43\x32\x76\x59\x44\x4d\x76\x59\x6c\x4d\x50\x5a','\x44\x67\x4c\x55\x7a\x59\x62\x6a\x71\x4b\x30\x47\x75\x57','\x7a\x67\x76\x49\x44\x77\x43','\x45\x4e\x62\x62\x75\x75\x43','\x43\x67\x66\x59\x43\x32\x75','\x42\x67\x39\x4e','\x43\x4e\x7a\x4c\x43\x47','\x69\x63\x30\x54\x41\x67\x76\x53\x43\x63\x69\x47\x7a\x47','\x75\x4b\x54\x70\x42\x68\x65','\x41\x77\x35\x4d\x42\x57','\x6c\x63\x62\x55\x42\x33\x72\x50\x79\x32\x75\x53\x69\x61','\x76\x4d\x66\x53\x41\x77\x71\x47\x42\x33\x62\x30\x41\x71','\x79\x78\x76\x53\x44\x64\x4f\x47\x43\x33\x72\x4b\x41\x71','\x78\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x7a\x78\x6d\x47\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x61','\x42\x4d\x39\x4b\x7a\x74\x50\x57\x79\x78\x72\x4f','\x42\x67\x76\x59\x44\x63\x57\x47\x79\x33\x6a\x50\x44\x61','\x42\x33\x6a\x30\x69\x66\x72\x7a\x75\x65\x75\x53\x69\x61','\x75\x30\x44\x6d\x75\x33\x6d','\x7a\x77\x31\x4c\x43\x4d\x44\x4c\x42\x4d\x6e\x35','\x7a\x67\x4c\x56\x69\x67\x39\x59\x69\x67\x48\x30\x44\x61','\x69\x67\x66\x53\x42\x63\x62\x56\x44\x78\x72\x57\x44\x71','\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x73\x35\x51\x43\x57','\x7a\x67\x76\x55\x69\x67\x6a\x35\x69\x65\x6e\x6d\x73\x71','\x6e\x5a\x65\x59\x6f\x64\x6d\x32\x6d\x67\x44\x66\x74\x65\x6e\x34\x43\x47','\x43\x4e\x71\x47\x41\x68\x72\x30\x43\x63\x61\x54\x6c\x71','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x61\x5a\x6d\x61','\x41\x77\x58\x4c\x42\x4e\x71','\x73\x67\x66\x65\x41\x75\x71','\x6d\x5a\x65\x35\x6d\x64\x65\x32\x43\x30\x48\x73\x45\x65\x66\x32','\x6c\x73\x31\x4f\x7a\x77\x58\x57','\x69\x63\x61\x54\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x71','\x6c\x73\x31\x5a\x41\x77\x58\x4c\x42\x4e\x71','\x43\x33\x72\x4b\x41\x77\x38','\x42\x32\x35\x5a\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x57','\x42\x4d\x39\x30\x41\x77\x6e\x4c','\x43\x67\x39\x59\x44\x63\x62\x4d\x42\x33\x69\x47\x41\x61','\x6c\x49\x62\x6e\x44\x78\x6e\x30\x69\x67\x6a\x4c\x69\x61','\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x6e\x4c\x4c\x6e\x75\x76\x6e\x70\x74\x47','\x75\x4d\x76\x4a\x7a\x77\x4c\x32\x7a\x77\x71\x36\x69\x61','\x7a\x78\x6a\x4e\x7a\x77\x35\x4a\x45\x73\x57\x47\x79\x71','\x6c\x63\x61\x54\x43\x59\x61\x47\x69\x63\x61\x47\x69\x61','\x43\x59\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x79\x33\x6a\x50\x44\x67\x4c\x4a\x79\x77\x57','\x73\x4d\x58\x4b\x74\x4e\x75','\x69\x63\x61\x47\x69\x63\x62\x6d\x42\x32\x43\x47\x42\x61','\x43\x33\x62\x48\x79\x32\x75\x47\x43\x67\x66\x30\x41\x61','\x72\x67\x35\x73\x45\x67\x38','\x76\x77\x35\x52\x42\x4d\x39\x33\x42\x49\x62\x48\x43\x47','\x7a\x78\x6d\x47\x76\x30\x39\x73\x73\x31\x6e\x71\x71\x71','\x69\x63\x61\x54\x6c\x78\x62\x56\x43\x4e\x71\x47\x75\x61','\x44\x4d\x76\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x6c\x61','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x6c\x73\x31\x57\x42\x33\x6a\x30','\x43\x33\x72\x48\x43\x4e\x72\x5a\x76\x32\x4c\x30\x41\x61','\x73\x31\x72\x64\x43\x75\x57','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x75\x61','\x42\x67\x66\x49\x42\x67\x75\x47\x41\x77\x79\x47\x42\x57','\x42\x4d\x66\x54\x7a\x71','\x41\x77\x6e\x48\x42\x63\x57\x47\x7a\x78\x6a\x59\x42\x57','\x79\x32\x58\x56\x43\x32\x75','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x61','\x42\x4d\x39\x4b\x7a\x74\x50\x31\x43\x4d\x57','\x42\x77\x66\x30\x41\x77\x39\x55','\x72\x78\x48\x48\x42\x78\x62\x53\x7a\x78\x6d\x36','\x41\x4d\x39\x50\x42\x47','\x43\x68\x62\x59\x7a\x78\x6e\x5a\x69\x67\x66\x53\x42\x61','\x7a\x31\x66\x68\x74\x32\x43','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x67\x58\x56\x7a\x57','\x7a\x4d\x38\x53\x69\x67\x72\x4c\x79\x4e\x76\x4e\x69\x61','\x42\x4d\x39\x30\x41\x77\x6e\x4c\x6c\x63\x62\x50\x42\x47','\x69\x67\x66\x59\x7a\x33\x76\x54\x7a\x77\x35\x30\x43\x57','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x7a\x4c\x43\x47','\x44\x68\x72\x57\x69\x68\x72\x59\x79\x77\x35\x5a\x43\x61','\x6d\x64\x61\x50','\x73\x77\x35\x32\x79\x77\x58\x50\x7a\x63\x62\x30\x43\x47','\x75\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38\x47\x6c\x71','\x44\x63\x62\x30\x45\x78\x62\x4c\x6f\x49\x62\x5a\x44\x61','\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x78\x7a\x4c\x42\x61','\x41\x68\x72\x30\x43\x61','\x79\x77\x58\x4c\x43\x4e\x71','\x42\x33\x6a\x30\x69\x63\x48\x48\x44\x78\x72\x56\x6c\x71','\x79\x78\x6a\x4e\x44\x47','\x69\x63\x44\x4f\x44\x68\x72\x57\x6a\x57','\x6a\x33\x6e\x30\x7a\x67\x4c\x56\x6a\x59\x62\x56\x43\x47','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x33\x72\x48\x43\x47','\x41\x67\x31\x4d\x74\x77\x4b','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x62\x4d\x79\x71','\x45\x68\x71\x47\x44\x47','\x42\x4e\x6e\x57\x42\x33\x6a\x30\x69\x68\x7a\x48\x42\x61','\x42\x49\x57\x47\x6c\x78\x79\x47\x69\x63\x61\x47\x69\x61','\x6c\x77\x47\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x42\x68\x76\x4c\x6f\x49\x61','\x79\x77\x35\x5a\x43\x67\x39\x59\x44\x63\x62\x32\x79\x71','\x69\x63\x62\x74\x44\x78\x62\x57\x43\x4d\x76\x5a\x43\x57','\x7a\x78\x48\x50\x44\x61','\x6e\x64\x76\x74\x44\x67\x35\x7a\x76\x75\x4f','\x44\x78\x72\x4d\x6f\x61','\x6b\x67\x72\x4c\x7a\x4d\x66\x31\x42\x68\x71\x36\x69\x61','\x69\x68\x44\x48\x43\x4d\x35\x50\x42\x4d\x43\x53\x69\x61','\x69\x63\x62\x75\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x6c\x73\x31\x33\x42\x33\x6a\x52\x43\x33\x62\x48\x79\x57','\x6c\x73\x31\x32\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x69\x63\x30\x54\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x57','\x7a\x78\x7a\x4c\x42\x64\x4f\x47\x7a\x77\x31\x4c\x43\x47','\x42\x67\x39\x4e\x74\x67\x76\x32\x7a\x77\x57','\x44\x30\x31\x54\x44\x4d\x57','\x71\x76\x72\x69\x75\x59\x62\x78\x42\x33\x6a\x52\x43\x57','\x6d\x4a\x69\x30\x6e\x74\x62\x57\x71\x76\x6a\x35\x42\x65\x57','\x75\x78\x50\x6e\x44\x67\x4f','\x76\x77\x48\x74\x43\x32\x4f','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38','\x7a\x78\x6a\x59\x42\x33\x69','\x69\x63\x62\x6e\x71\x31\x62\x46\x76\x66\x6a\x62\x74\x47','\x69\x63\x61\x54\x6c\x78\x72\x59\x79\x77\x35\x5a\x43\x61','\x7a\x4d\x4c\x55\x7a\x68\x6d\x47\x79\x78\x7a\x48\x41\x71','\x69\x63\x62\x6d\x74\x30\x44\x46\x74\x65\x76\x77\x72\x71','\x44\x4c\x62\x4a\x74\x4d\x30','\x74\x31\x6a\x75\x6c\x63\x61\x54\x43\x63\x62\x71\x74\x57','\x6c\x73\x31\x30\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x6d\x74\x47\x32\x6d\x68\x66\x4e\x74\x4b\x72\x6e\x75\x47','\x44\x63\x62\x77\x79\x78\x6a\x50\x79\x77\x6a\x53\x7a\x71','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x72\x4f\x41\x71','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x41\x33\x50\x6f\x73\x4e\x71','\x71\x4d\x72\x53\x42\x4b\x71','\x75\x4e\x76\x55\x69\x63\x69','\x69\x63\x61\x47\x69\x63\x62\x74\x41\x77\x58\x4c\x42\x47','\x69\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x7a\x78\x7a\x4c\x42\x63\x4b','\x42\x68\x6e\x4c\x6b\x71','\x34\x50\x32\x6d\x69\x65\x76\x59\x43\x4d\x39\x59\x6f\x49\x62\x6a','\x43\x4e\x71\x53\x69\x67\x6e\x59\x41\x78\x72\x50\x79\x57','\x79\x77\x6e\x4c\x69\x66\x62\x62\x76\x65\x48\x74\x6c\x61','\x6d\x4a\x6d\x31\x6d\x74\x75\x58\x6e\x32\x7a\x74\x76\x32\x6a\x4f\x75\x71','\x43\x67\x66\x4a\x7a\x73\x62\x57\x79\x78\x72\x4f\x43\x57','\x69\x63\x62\x74\x73\x75\x58\x66\x74\x4c\x71\x47\x69\x61','\x69\x67\x48\x30\x44\x68\x61\x47\x6b\x67\x72\x4c\x7a\x47','\x69\x63\x61\x54\x6c\x78\x6e\x50\x42\x67\x76\x55\x44\x61','\x44\x63\x62\x54\x42\x32\x72\x4c\x6f\x49\x62\x30\x43\x47','\x69\x63\x61\x47\x69\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x41\x68\x72\x30\x43\x66\x62\x56\x43\x4e\x71','\x6d\x74\x47\x31\x6e\x74\x71\x30\x41\x33\x50\x68\x44\x65\x35\x6d','\x69\x66\x54\x70\x75\x66\x72\x6a\x74\x30\x35\x74\x78\x71','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x6d\x74\x43\x58\x6e\x5a\x6e\x56\x42\x4c\x4c\x6a\x71\x33\x4b','\x7a\x33\x48\x35\x44\x68\x69','\x43\x32\x4c\x53\x7a\x77\x35\x30','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x69\x61','\x43\x32\x4c\x56\x42\x49\x62\x50\x42\x4d\x7a\x56\x43\x47','\x6d\x74\x71\x5a\x41\x31\x66\x35\x43\x30\x35\x41','\x75\x4d\x4c\x65\x79\x4b\x71','\x77\x68\x4c\x6a\x45\x4c\x4b','\x69\x63\x61\x54\x6c\x78\x44\x56\x43\x4d\x54\x5a\x43\x61','\x69\x68\x57\x47\x41\x68\x72\x30\x43\x61','\x79\x78\x72\x4f\x43\x57'];a0_0x2541=function(){return _0x3edad1;};return a0_0x2541();}(function(_0x369f02,_0x365d84){const _0x51979b=a0_0x53c1;const _0x304dd2=_0x369f02();while(!![]){try{const _0x1693e8=parseInt(_0x51979b(0x191))/0x1*(-parseInt(_0x51979b(0x1a1))/0x2)+parseInt(_0x51979b(0x123))/0x3*(-parseInt(_0x51979b(0x18e))/0x4)+-parseInt(_0x51979b(0x178))/0x5*(parseInt(_0x51979b(0x1b0))/0x6)+-parseInt(_0x51979b(0x186))/0x7+-parseInt(_0x51979b(0x119))/0x8*(-parseInt(_0x51979b(0x160))/0x9)+-parseInt(_0x51979b(0x16c))/0xa*(parseInt(_0x51979b(0x196))/0xb)+parseInt(_0x51979b(0x114))/0xc;if(_0x1693e8===_0x365d84){break;}else{_0x304dd2['push'](_0x304dd2['shift']());}}catch(_0x5e3eeb){_0x304dd2['push'](_0x304dd2['shift']());}}}(a0_0x2541,0x2c4d8));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(_0x814c7c){const _0x7b1c3f=a0_0x53c1;const _0x53285e={'\x7a\x70\x41\x51\x47':function(_0x5d71f2,_0x29bb22){return _0x5d71f2===_0x29bb22;},'\x4b\x44\x6f\x57\x77':function(_0x296937,_0x534432){return _0x296937===_0x534432;},'\x68\x6d\x66\x4d\x69':function(_0x1661a0,_0x481980){return _0x1661a0===_0x481980;},'\x48\x61\x44\x69\x44':_0x7b1c3f(0x14e),'\x69\x64\x4f\x5a\x6f':'\x2d\x2d\x6c\x6f\x67\x2d\x6c\x65\x76\x65'+'\x6c','\x77\x4d\x6d\x76\x6c':_0x7b1c3f(0x132),'\x51\x7a\x4d\x74\x6a':function(_0x2a05ce,_0x29a82c){return _0x2a05ce<_0x29a82c;},'\x53\x47\x4c\x53\x73':function(_0x4b1c4b,_0x5ab228){return _0x4b1c4b+_0x5ab228;},'\x54\x73\x6c\x4a\x68':function(_0x20b507,_0x2c4ebe){return _0x20b507+_0x2c4ebe;}};const _0x343395={'\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 _0x4ef7df=0x0;_0x4ef7df<_0x814c7c[_0x7b1c3f(0x109)];_0x4ef7df++){const _0x2cb97f=_0x814c7c[_0x4ef7df];if(_0x53285e[_0x7b1c3f(0xfc)](_0x2cb97f,_0x7b1c3f(0x11a))||_0x2cb97f==='\x2d\x68'||_0x2cb97f===_0x7b1c3f(0x166)||_0x53285e[_0x7b1c3f(0x1a7)](_0x2cb97f,'\x2d\x76')){if(_0x2cb97f==='\x2d\x68'){_0x343395[_0x7b1c3f(0x19e)]=_0x7b1c3f(0x11a);}else if(_0x2cb97f==='\x2d\x76'){_0x343395[_0x7b1c3f(0x19e)]=_0x7b1c3f(0x166);}else{if(_0x53285e['\x4b\x44\x6f\x57\x77'](_0x7b1c3f(0x192),_0x7b1c3f(0x1a8))){_0x2d8a31=_0x51a052.env.MCP_TRANSPORT[_0x7b1c3f(0x156)+'\x65']();}else{_0x343395[_0x7b1c3f(0x19e)]=_0x2cb97f;}}break;}if((_0x2cb97f===_0x7b1c3f(0x177)+'\x74'||_0x2cb97f==='\x2d\x74')&&_0x4ef7df+0x1<_0x814c7c[_0x7b1c3f(0x109)]){const _0x4c3d82=_0x814c7c[_0x4ef7df+0x1];if(_0x53285e[_0x7b1c3f(0x155)](_0x4c3d82,'\x73\x74\x64\x69\x6f')||_0x4c3d82===_0x53285e[_0x7b1c3f(0x118)]){if(_0x7b1c3f(0x17d)===_0x7b1c3f(0x17d)){_0x343395['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']='\x2d\x2d'+_0x4c3d82;}else{_0x5b24c8.env.WORKSPACE_FOLDER_PATHS=_0x23252a[_0x7b1c3f(0x135)+_0x7b1c3f(0x19b)];}}else{throw new Error('\x49\x6e\x76\x61\x6c\x69\x64\x20\x74\x72'+'\x61\x6e\x73\x70\x6f\x72\x74\x20\x76\x61'+_0x7b1c3f(0x15c)+_0x4c3d82+(_0x7b1c3f(0x121)+'\x27\x73\x74\x64\x69\x6f\x27\x20\x6f\x72'+_0x7b1c3f(0x152)));}_0x4ef7df++;}else if((_0x2cb97f===_0x53285e['\x69\x64\x4f\x5a\x6f']||_0x2cb97f==='\x2d\x6c')&&_0x4ef7df+0x1<_0x814c7c[_0x7b1c3f(0x109)]){_0x343395[_0x7b1c3f(0x169)]=_0x814c7c[_0x4ef7df+0x1][_0x7b1c3f(0x156)+'\x65']();_0x4ef7df++;}else if((_0x53285e[_0x7b1c3f(0xfc)](_0x2cb97f,_0x53285e[_0x7b1c3f(0x16a)])||_0x53285e[_0x7b1c3f(0x1a7)](_0x2cb97f,'\x2d\x70'))&&_0x53285e[_0x7b1c3f(0x16d)](_0x53285e[_0x7b1c3f(0x10e)](_0x4ef7df,0x1),_0x814c7c[_0x7b1c3f(0x109)])){_0x343395[_0x7b1c3f(0x18d)]=Number['\x70\x61\x72\x73\x65\x49\x6e\x74'](_0x814c7c[_0x4ef7df+0x1],0xa);_0x4ef7df++;}else if((_0x2cb97f===_0x7b1c3f(0x165)+'\x65'||_0x2cb97f==='\x2d\x77')&&_0x53285e[_0x7b1c3f(0x16d)](_0x53285e['\x54\x73\x6c\x4a\x68'](_0x4ef7df,0x1),_0x814c7c[_0x7b1c3f(0x109)])){_0x343395[_0x7b1c3f(0x135)+_0x7b1c3f(0x19b)]=_0x814c7c[_0x4ef7df+0x1];_0x4ef7df++;}else if(_0x2cb97f===_0x7b1c3f(0x11c)||_0x2cb97f==='\x2d\x73'){_0x343395[_0x7b1c3f(0x193)]=!![];}else if(_0x2cb97f['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68']('\x2d\x2d')||_0x2cb97f[_0x7b1c3f(0x133)]('\x2d')&&_0x2cb97f['\x6c\x65\x6e\x67\x74\x68']===0x2){throw new Error(_0x7b1c3f(0x12d)+_0x7b1c3f(0x1a4)+_0x2cb97f);}}return _0x343395;}export async function main(_0x29da09){const _0x2d025a=a0_0x53c1;const _0x2e253b={'\x76\x50\x63\x4e\x6d':'\x52\x69\x44\x62\x44','\x70\x78\x4c\x4c\x6e':'\x6e\x6f\x64\x65\x3a\x66\x73','\x66\x6f\x67\x6b\x6e':_0x2d025a(0x10b),'\x58\x79\x49\x7a\x59':function(_0x535af8,_0x32a30b){return _0x535af8(_0x32a30b);},'\x57\x49\x77\x42\x4f':_0x2d025a(0x172)+_0x2d025a(0x10d)+'\x2d\x74\x20\x54\x59\x50\x45\x20\x20\x20'+_0x2d025a(0x164)+_0x2d025a(0x14c)+_0x2d025a(0x110)+_0x2d025a(0x19d)+'\x65\x73\x20\x4d\x43\x50\x5f\x54\x52\x41'+'\x4e\x53\x50\x4f\x52\x54\x29','\x44\x7a\x57\x61\x69':'\x20\x20\x2d\x2d\x68\x65\x6c\x70\x2c\x20'+_0x2d025a(0x15b)+_0x2d025a(0x17a)+'\x73\x20\x68\x65\x6c\x70\x20\x6d\x65\x73'+'\x73\x61\x67\x65','\x50\x44\x75\x46\x73':_0x2d025a(0x1ad)+_0x2d025a(0x15a)+_0x2d025a(0x146)+_0x2d025a(0x195)+_0x2d025a(0x13c),'\x52\x4b\x4f\x6c\x71':_0x2d025a(0x1ab)+_0x2d025a(0x179)+_0x2d025a(0x127)+_0x2d025a(0x113)+_0x2d025a(0x145)+'\x29\x3a','\x4a\x6c\x64\x4e\x75':_0x2d025a(0x188)+_0x2d025a(0x180)+_0x2d025a(0x17f)+_0x2d025a(0x18b)+'\x75\x65\x2f\x31\x20\x74\x6f\x20\x73\x75'+_0x2d025a(0x13f)+_0x2d025a(0x1ac)+_0x2d025a(0x157)+_0x2d025a(0x182),'\x6d\x66\x6c\x79\x75':function(_0x1c0952,_0xd72080){return _0x1c0952!==_0xd72080;},'\x55\x68\x53\x73\x6a':_0x2d025a(0x14e),'\x6b\x7a\x4e\x4a\x74':_0x2d025a(0x19f),'\x4b\x54\x43\x71\x4c':_0x2d025a(0x1b5),'\x44\x6e\x52\x78\x6f':_0x2d025a(0x170),'\x79\x69\x58\x72\x50':_0x2d025a(0x10f),'\x76\x62\x72\x41\x76':function(_0x1ba3a6){return _0x1ba3a6();}};try{if(_0x2e253b[_0x2d025a(0x175)]!==_0x2d025a(0x197)){_0x14ebb3[_0x2d025a(0x135)+_0x2d025a(0x19b)]=_0x421989[_0x240f78+0x1];_0x5a2381++;}else{const {readFileSync:_0x13e29c}=await import(_0x2e253b['\x70\x78\x4c\x4c\x6e']);const {dirname:_0x26a2e4,join:_0x34ee72}=await import(_0x2e253b['\x66\x6f\x67\x6b\x6e']);const {fileURLToPath:_0x4ea604}=await import(_0x2d025a(0x13b));const _0x8eb8c5=_0x4ea604(import.meta.url);const _0x34f5b7=_0x2e253b[_0x2d025a(0x198)](_0x26a2e4,_0x8eb8c5);const _0x419c4c=_0x34ee72(_0x34f5b7,_0x2d025a(0x112)+'\x6f\x6e');const _0x4bf5b7=JSON[_0x2d025a(0xfd)](_0x13e29c(_0x419c4c,_0x2d025a(0x161)));const _0x3de0f3=parseCliArguments(_0x29da09);if(_0x3de0f3[_0x2d025a(0x19e)]==='\x2d\x2d\x68\x65\x6c\x70'){console[_0x2d025a(0xfe)]('\x49\x42\x4d\x20\x53\x61\x6c\x65\x73\x66'+_0x2d025a(0x131)+'\x78\x74');console[_0x2d025a(0xfe)]('');console[_0x2d025a(0xfe)]('\x55\x73\x61\x67\x65\x3a');console[_0x2d025a(0xfe)]('\x20\x20'+_0x4bf5b7['\x6e\x61\x6d\x65']+_0x2d025a(0x18f));console[_0x2d025a(0xfe)]('');console[_0x2d025a(0xfe)]('\x4f\x70\x74\x69\x6f\x6e\x73\x3a');console[_0x2d025a(0xfe)](_0x2e253b['\x57\x49\x77\x42\x4f']);console[_0x2d025a(0xfe)](_0x2d025a(0x11b)+_0x2d025a(0x130)+_0x2d025a(0x1a2)+'\x20\x20\x20\x53\x65\x74\x20\x6c\x6f\x67'+_0x2d025a(0x1a0)+_0x2d025a(0x125)+_0x2d025a(0x10c)+_0x2d025a(0x138)+'\x72\x2c\x20\x77\x61\x72\x6e\x69\x6e\x67'+_0x2d025a(0x103)+_0x2d025a(0x19c)+'\x67');console[_0x2d025a(0xfe)](_0x2d025a(0x12f)+_0x2d025a(0x176)+_0x2d025a(0x107)+'\x20\x53\x65\x74\x20\x48\x54\x54\x50\x20'+_0x2d025a(0x120)+_0x2d025a(0x147)+_0x2d025a(0x150)+_0x2d025a(0x173)+_0x2d025a(0x136)+_0x2d025a(0x1b2));console[_0x2d025a(0xfe)](_0x2d025a(0x199)+_0x2d025a(0x185)+'\x20\x2d\x77\x20\x50\x41\x54\x48\x53\x20'+'\x20\x20\x53\x65\x74\x20\x77\x6f\x72\x6b'+_0x2d025a(0x12b)+_0x2d025a(0x127)+_0x2d025a(0x12e)+'\x43\x45\x5f\x46\x4f\x4c\x44\x45\x52\x5f'+'\x50\x41\x54\x48\x53\x29');console[_0x2d025a(0xfe)](_0x2d025a(0x18a)+_0x2d025a(0x126)+_0x2d025a(0x15e)+_0x2d025a(0x111)+'\x74\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x2d025a(0x10a)+_0x2d025a(0x181));console[_0x2d025a(0xfe)](_0x2e253b['\x44\x7a\x57\x61\x69']);console[_0x2d025a(0xfe)](_0x2e253b['\x50\x44\x75\x46\x73']);console['\x6c\x6f\x67']('');console[_0x2d025a(0xfe)](_0x2d025a(0x13d));console[_0x2d025a(0xfe)]('\x20\x20'+_0x4bf5b7[_0x2d025a(0x137)]+(_0x2d025a(0x167)+_0x2d025a(0x16f)));console[_0x2d025a(0xfe)]('\x20\x20'+_0x4bf5b7[_0x2d025a(0x137)]+(_0x2d025a(0x167)+_0x2d025a(0x115)+'\x70\x6f\x72\x74\x20\x38\x30\x38\x30'));console[_0x2d025a(0xfe)]('\x20\x20'+_0x4bf5b7['\x6e\x61\x6d\x65']+(_0x2d025a(0x167)+_0x2d025a(0x14b)+_0x2d025a(0x14d)+'\x20\x64\x65\x62\x75\x67'));console[_0x2d025a(0xfe)]('\x20\x20'+_0x4bf5b7['\x6e\x61\x6d\x65']+(_0x2d025a(0x167)+_0x2d025a(0x115)+_0x2d025a(0x194)+'\x2f\x70\x61\x74\x68\x2f\x74\x6f\x2f\x70'+_0x2d025a(0x1aa)+_0x2d025a(0x117)));console['\x6c\x6f\x67']('');console[_0x2d025a(0xfe)](_0x2e253b[_0x2d025a(0x101)]);console[_0x2d025a(0xfe)](_0x2d025a(0x171)+_0x2d025a(0x14a)+_0x2d025a(0x1a5)+'\x73\x70\x6f\x72\x74\x20\x74\x79\x70\x65'+'\x3a\x20\x73\x74\x64\x69\x6f\x20\x6f\x72'+_0x2d025a(0x189)+_0x2d025a(0x105)+'\x6f\x29');console['\x6c\x6f\x67'](_0x2d025a(0x174)+'\x4c\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x2d025a(0x12a)+_0x2d025a(0x168)+_0x2d025a(0x1a6)+_0x2d025a(0x184)+_0x2d025a(0x1ae)+_0x2d025a(0x163)+_0x2d025a(0x144)+_0x2d025a(0x143)+_0x2d025a(0x162)+'\x69\x6e\x66\x6f\x29');console[_0x2d025a(0xfe)](_0x2e253b[_0x2d025a(0x129)]);console['\x6c\x6f\x67']('\x20\x20\x4d\x43\x50\x5f\x48\x54\x54\x50'+_0x2d025a(0x106)+_0x2d025a(0x18c)+_0x2d025a(0x120)+_0x2d025a(0x147)+_0x2d025a(0x150)+_0x2d025a(0x173)+_0x2d025a(0x136)+_0x2d025a(0x1a9)+_0x2d025a(0x116)+_0x2d025a(0x148));console[_0x2d025a(0xfe)](_0x2d025a(0x1a3)+_0x2d025a(0x1af)+_0x2d025a(0x16b)+_0x2d025a(0x187)+'\x20\x28\x63\x6f\x6d\x6d\x61\x2d\x73\x65'+'\x70\x61\x72\x61\x74\x65\x64\x29');process[_0x2d025a(0x15f)](0x0);}if(_0x3de0f3[_0x2d025a(0x19e)]===_0x2d025a(0x166)){console['\x6c\x6f\x67'](_0x2d025a(0x141)+_0x2d025a(0x131)+_0x2d025a(0x158)+_0x4bf5b7[_0x2d025a(0x17b)]);process[_0x2d025a(0x15f)](0x0);}let _0xb8d144;if(_0x3de0f3[_0x2d025a(0x19e)]){_0xb8d144=_0x3de0f3['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74'][_0x2d025a(0x190)](/^--/,'')[_0x2d025a(0x156)+'\x65']();}else if(process.env.MCP_TRANSPORT){_0xb8d144=process.env.MCP_TRANSPORT[_0x2d025a(0x156)+'\x65']();}else{_0xb8d144=_0x2d025a(0x11d);}if(_0xb8d144!=='\x73\x74\x64\x69\x6f'&&_0x2e253b['\x6d\x66\x6c\x79\x75'](_0xb8d144,_0x2e253b[_0x2d025a(0x16e)])){if(_0x2e253b[_0x2d025a(0x17c)]==='\x52\x76\x46\x53\x71'){setSilent(!![]);}else{console['\x65\x72\x72\x6f\x72'](_0x2d025a(0x183)+'\x6e\x76\x61\x6c\x69\x64\x20\x74\x72\x61'+_0x2d025a(0x159)+'\x75\x65');console[_0x2d025a(0x170)](_0x2d025a(0x104)+_0x2d025a(0x11e)+_0x2d025a(0x19a));console['\x65\x72\x72\x6f\x72'](_0x2d025a(0x124)+_0xb8d144);console['\x65\x72\x72\x6f\x72'](_0x2d025a(0x17e)+_0x4bf5b7[_0x2d025a(0x137)]+(_0x2d025a(0x100)+'\x6f\x72\x20\x6d\x6f\x72\x65\x20\x69\x6e'+'\x66\x6f\x72\x6d\x61\x74\x69\x6f\x6e'));process[_0x2d025a(0x15f)](0x1);}}if(_0x3de0f3['\x73\x69\x6c\x65\x6e\x74']){setSilent(!![]);}else if(_0x3de0f3[_0x2d025a(0x169)]){const _0x47855a=[_0x2e253b[_0x2d025a(0x134)],_0x2d025a(0x102),_0x2d025a(0x11f),_0x2d025a(0x122),_0x2e253b[_0x2d025a(0x12c)],_0x2d025a(0x128),_0x2d025a(0x14f),_0x2e253b[_0x2d025a(0x1b1)]];const _0x1bde48=_0x3de0f3['\x6c\x6f\x67\x4c\x65\x76\x65\x6c'][_0x2d025a(0x156)+'\x65']();if(_0x47855a['\x69\x6e\x63\x6c\x75\x64\x65\x73'](_0x1bde48)){if(_0x2d025a(0x140)===_0x2d025a(0x140)){process.env.LOG_LEVEL=_0x1bde48;}else{throw new _0x282a6e(_0x2d025a(0x149)+_0x2d025a(0x15d)+_0x2d025a(0x15c)+_0x475596+(_0x2d025a(0x121)+_0x2d025a(0x153)+'\x20\x27\x68\x74\x74\x70\x27'));}}else{console[_0x2d025a(0x170)](_0x2d025a(0x183)+_0x2d025a(0x142)+_0x2d025a(0x13a)+_0x3de0f3[_0x2d025a(0x169)]);console['\x65\x72\x72\x6f\x72']('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+'\x6f\x6e\x73\x3a\x20'+_0x47855a[_0x2d025a(0x13e)]('\x2c\x20'));process['\x65\x78\x69\x74'](0x1);}}if(_0x3de0f3[_0x2d025a(0x18d)]){process.env.MCP_HTTP_PORT=_0x3de0f3['\x68\x74\x74\x70\x50\x6f\x72\x74'][_0x2d025a(0x108)]();}if(_0x3de0f3['\x77\x6f\x72\x6b\x73\x70\x61\x63\x65\x50'+_0x2d025a(0x19b)]){process.env.WORKSPACE_FOLDER_PATHS=_0x3de0f3[_0x2d025a(0x135)+_0x2d025a(0x19b)];}const {registerGlobalErrorHandlers:registerGlobalErrorHandlers,registerSignalHandlers:registerSignalHandlers}=await import('\x2e\x2f\x73\x72\x63\x2f\x6d\x63\x70\x2d'+_0x2d025a(0x1b3));_0x2e253b['\x76\x62\x72\x41\x76'](registerGlobalErrorHandlers);registerSignalHandlers();await setupServer(_0xb8d144);}}catch(_0x13cf61){const _0x1f235e=createLogger();_0x1f235e[_0x2d025a(0x170)](_0x13cf61,_0x2d025a(0x154)+_0x2d025a(0x1b4)+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+'\x43\x6f\x6e\x74\x65\x78\x74\x20\x73\x65'+_0x2d025a(0xff));await mcpServer[_0x2d025a(0x139)]();process[_0x2d025a(0x15f)](0x1);}}main(process[a0_0x150a11(0x151)]['\x73\x6c\x69\x63\x65'](0x2));
|
|
1
|
+
const a0_0x439d37=a0_0x36fd;(function(_0x87eaa1,_0x487799){const _0x4aac77=a0_0x36fd;const _0x16d1d3=_0x87eaa1();while(!![]){try{const _0x38f989=parseInt(_0x4aac77(0x240))/0x1*(-parseInt(_0x4aac77(0x266))/0x2)+parseInt(_0x4aac77(0x257))/0x3*(-parseInt(_0x4aac77(0x20b))/0x4)+-parseInt(_0x4aac77(0x298))/0x5+parseInt(_0x4aac77(0x220))/0x6*(parseInt(_0x4aac77(0x29f))/0x7)+-parseInt(_0x4aac77(0x1f7))/0x8+-parseInt(_0x4aac77(0x20c))/0x9+parseInt(_0x4aac77(0x1f8))/0xa;if(_0x38f989===_0x487799){break;}else{_0x16d1d3['push'](_0x16d1d3['shift']());}}catch(_0x2d3218){_0x16d1d3['push'](_0x16d1d3['shift']());}}}(a0_0x18f8,0xb9a1b));import{createLogger}from'\x2e\x2f\x73\x72\x63\x2f\x6c\x69\x62\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';function a0_0x18f8(){const _0x4ba37d=['\x41\x77\x35\x4d\x42\x59\x4b','\x7a\x67\x76\x49\x44\x77\x43','\x43\x32\x66\x4e\x7a\x71','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x33\x72\x48\x43\x47','\x7a\x4d\x4c\x55\x7a\x68\x6d\x47\x79\x78\x7a\x48\x41\x71','\x41\x68\x72\x30\x43\x61','\x69\x63\x44\x4f\x44\x68\x72\x57\x6a\x57','\x69\x63\x62\x78\x74\x31\x6a\x6c\x75\x31\x62\x62\x71\x57','\x42\x4d\x54\x6f\x7a\x75\x47','\x69\x63\x30\x54\x41\x67\x76\x53\x43\x63\x69\x47\x7a\x47','\x7a\x4d\x39\x59\x42\x77\x66\x30\x41\x77\x39\x55','\x6c\x78\x71\x47\x76\x66\x4c\x71\x72\x73\x61\x47\x69\x61','\x69\x63\x62\x6e\x71\x31\x62\x46\x73\x66\x72\x75\x75\x61','\x69\x63\x30\x54\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x57','\x6c\x77\x47\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x44\x63\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x77\x65\x6e\x4a\x42\x65\x38','\x69\x63\x61\x54\x6c\x77\x58\x56\x7a\x59\x31\x53\x7a\x71','\x42\x4d\x39\x4b\x7a\x74\x50\x4d\x43\x57','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38\x47\x6c\x71','\x43\x4d\x39\x51\x7a\x77\x6e\x30\x69\x63\x30\x54\x43\x57','\x69\x63\x48\x4a\x42\x32\x31\x54\x79\x73\x31\x5a\x7a\x71','\x7a\x78\x6d\x47\x76\x30\x39\x73\x73\x31\x6e\x71\x71\x71','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x61\x5a\x6d\x61','\x6c\x73\x31\x5a\x41\x77\x58\x4c\x42\x4e\x71','\x6c\x49\x39\x5a\x43\x4d\x6d\x56\x42\x77\x6e\x57\x6c\x71','\x42\x67\x66\x49\x42\x67\x75\x47\x41\x77\x79\x47\x42\x57','\x74\x33\x62\x30\x41\x77\x39\x55\x43\x5a\x4f','\x42\x77\x48\x62\x44\x33\x61','\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x59\x62\x56\x43\x47','\x6c\x33\x62\x48\x44\x67\x47\x56\x44\x67\x38\x56\x43\x61','\x7a\x77\x7a\x48\x44\x77\x58\x30\x6f\x49\x62\x4d\x79\x71','\x79\x77\x58\x4c\x43\x4e\x71','\x72\x78\x48\x48\x42\x78\x62\x53\x7a\x78\x6d\x36','\x45\x68\x71\x47\x44\x47','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x7a\x78\x48\x50\x44\x61','\x76\x4b\x66\x35\x44\x65\x57','\x6e\x4a\x75\x34\x6d\x5a\x75\x35\x6e\x77\x39\x72\x42\x76\x7a\x54\x42\x71','\x74\x31\x72\x6d\x44\x68\x75','\x43\x75\x39\x6b\x79\x4c\x61','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x57\x47\x7a\x61','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57','\x69\x63\x61\x47\x75\x32\x76\x30\x69\x67\x58\x56\x7a\x57','\x7a\x78\x6a\x4e\x7a\x77\x35\x4a\x45\x73\x57\x47\x79\x71','\x6d\x5a\x61\x5a\x6f\x64\x75\x5a\x6f\x77\x6a\x6d\x71\x4b\x48\x62\x45\x71','\x41\x78\x44\x58\x7a\x4d\x34','\x73\x77\x35\x32\x79\x77\x58\x50\x7a\x63\x62\x30\x43\x47','\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x71\x4b\x66\x62\x42\x32\x43','\x71\x76\x72\x69\x75\x59\x62\x78\x42\x33\x6a\x52\x43\x57','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x67\x76\x32\x7a\x71','\x43\x4e\x71\x47\x41\x68\x72\x30\x43\x63\x61\x54\x6c\x71','\x44\x77\x75\x56\x6d\x73\x62\x30\x42\x59\x62\x5a\x44\x71','\x43\x4e\x71\x47\x43\x33\x72\x4b\x41\x77\x38','\x6a\x33\x6e\x30\x7a\x67\x4c\x56\x6a\x59\x62\x56\x43\x47','\x7a\x78\x6a\x59\x42\x33\x69','\x42\x33\x69\x47\x42\x77\x39\x59\x7a\x73\x62\x50\x42\x47','\x79\x78\x76\x53\x44\x64\x4f\x47\x43\x33\x72\x4b\x41\x71','\x69\x68\x44\x48\x43\x4d\x35\x50\x42\x4d\x43\x53\x69\x61','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x41\x68\x72\x30\x43\x66\x62\x56\x43\x4e\x71','\x69\x63\x62\x74\x44\x78\x62\x57\x43\x4d\x76\x5a\x43\x57','\x69\x63\x61\x54\x6c\x78\x44\x56\x43\x4d\x54\x5a\x43\x61','\x6d\x74\x65\x31\x6d\x4a\x4b\x30\x6f\x64\x62\x72\x44\x66\x6e\x4d\x44\x33\x4b','\x6d\x5a\x47\x59\x6d\x74\x79\x30\x6e\x5a\x62\x33\x41\x32\x72\x77\x77\x65\x4f','\x43\x49\x57\x47\x44\x32\x66\x59\x42\x4d\x4c\x55\x7a\x57','\x69\x63\x31\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x69\x61','\x6c\x49\x62\x6e\x44\x78\x6e\x30\x69\x67\x6a\x4c\x69\x61','\x42\x77\x66\x30\x41\x77\x39\x55','\x6c\x63\x61\x54\x43\x59\x61\x47\x69\x63\x61\x47\x69\x61','\x69\x68\x57\x47\x41\x68\x72\x30\x43\x61','\x74\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x74\x4c\x6e\x71\x74\x31\x6a\x75\x6b\x71','\x72\x77\x35\x32\x41\x78\x6a\x56\x42\x4d\x31\x4c\x42\x47','\x79\x78\x6a\x4e\x44\x47','\x75\x4e\x76\x55\x69\x63\x69','\x42\x75\x54\x56\x41\x66\x43','\x43\x33\x72\x4b\x41\x77\x38','\x44\x68\x72\x57\x69\x68\x72\x59\x79\x77\x35\x5a\x43\x61','\x69\x63\x61\x54\x6c\x78\x7a\x4c\x43\x4e\x6e\x50\x42\x57','\x69\x63\x61\x47\x69\x63\x62\x69\x76\x66\x72\x71\x69\x61','\x43\x68\x62\x59\x7a\x78\x6e\x5a\x69\x67\x66\x53\x42\x61','\x42\x4d\x66\x54\x7a\x71','\x6e\x67\x58\x53\x44\x76\x44\x59\x74\x57','\x6f\x74\x65\x59\x6e\x74\x6d\x33\x7a\x33\x76\x41\x44\x31\x44\x71','\x43\x59\x61\x4f\x42\x33\x7a\x4c\x43\x4e\x6a\x50\x7a\x61','\x7a\x78\x6d\x47\x6c\x73\x31\x53\x42\x32\x43\x54\x42\x61','\x42\x49\x57\x47\x6c\x78\x79\x47\x69\x63\x61\x47\x69\x61','\x6c\x73\x31\x30\x43\x4d\x66\x55\x43\x33\x62\x56\x43\x47','\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x73\x35\x51\x43\x57','\x79\x77\x57\x53\x69\x67\x76\x59\x43\x4d\x39\x59\x6c\x61','\x44\x4d\x76\x53\x69\x65\x58\x66\x76\x4b\x76\x6d\x6c\x61','\x41\x77\x31\x67\x74\x75\x75','\x76\x4d\x66\x53\x41\x77\x71\x47\x42\x33\x62\x30\x41\x71','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x42\x67\x39\x4e','\x42\x4e\x6e\x57\x42\x33\x6a\x30\x69\x68\x7a\x48\x42\x61','\x6c\x73\x31\x32\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x43\x67\x39\x59\x44\x63\x62\x4d\x42\x33\x69\x47\x41\x61','\x43\x32\x4c\x53\x7a\x77\x35\x30','\x71\x30\x76\x46\x72\x4b\x39\x6d\x72\x65\x76\x73\x78\x57','\x69\x63\x61\x47\x69\x63\x61\x47\x69\x63\x61\x47\x69\x61','\x69\x67\x48\x30\x44\x68\x61\x47\x6b\x67\x72\x4c\x7a\x47','\x69\x63\x61\x47\x69\x63\x61\x47\x76\x68\x6a\x48\x42\x47','\x6d\x74\x48\x74\x44\x31\x44\x6a\x72\x4b\x65','\x42\x4d\x39\x30\x41\x77\x6e\x4c\x6c\x63\x62\x50\x42\x47','\x69\x63\x61\x54\x6c\x78\x6e\x50\x42\x67\x76\x55\x44\x61','\x7a\x4d\x38\x53\x69\x67\x72\x4c\x79\x4e\x76\x4e\x69\x61','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x43\x67\x66\x59\x79\x78\x72\x4c\x7a\x63\x4b','\x7a\x65\x48\x57\x74\x66\x69','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x7a\x67\x4c\x56\x69\x67\x39\x59\x69\x67\x48\x30\x44\x61','\x42\x67\x39\x4e\x74\x67\x76\x32\x7a\x77\x57','\x43\x33\x72\x48\x43\x4e\x72\x5a\x76\x32\x4c\x30\x41\x61','\x72\x76\x39\x67\x74\x30\x58\x65\x72\x76\x6a\x46\x75\x61','\x79\x32\x58\x56\x43\x32\x75','\x79\x77\x35\x5a\x43\x67\x39\x59\x44\x63\x62\x32\x79\x71','\x45\x65\x31\x51\x71\x76\x4b','\x41\x75\x72\x69\x45\x67\x6d','\x71\x32\x39\x55\x44\x67\x76\x34\x44\x63\x62\x5a\x7a\x71','\x6d\x64\x61\x50','\x75\x4d\x76\x4a\x42\x32\x79','\x42\x33\x6a\x30\x69\x63\x48\x48\x44\x78\x72\x56\x6c\x71','\x7a\x4e\x6e\x59\x42\x32\x47','\x42\x4d\x39\x30\x41\x77\x6e\x4c','\x74\x4d\x58\x68\x41\x4b\x57','\x79\x32\x6e\x31\x43\x67\x4c\x4c\x7a\x63\x4b','\x43\x4e\x71\x53\x69\x67\x6e\x59\x41\x78\x72\x50\x79\x57','\x74\x31\x6a\x75\x6c\x63\x61\x54\x43\x63\x62\x71\x74\x57','\x41\x77\x35\x4d\x42\x59\x57\x47\x7a\x67\x76\x49\x44\x71','\x43\x67\x66\x59\x43\x32\x75','\x69\x63\x62\x74\x73\x75\x58\x66\x74\x4c\x71\x47\x69\x61','\x44\x32\x35\x6b\x77\x4b\x4b','\x44\x67\x39\x74\x44\x68\x6a\x50\x42\x4d\x43','\x43\x33\x62\x56\x43\x4e\x71\x47\x44\x68\x4c\x57\x7a\x71','\x6e\x78\x62\x72\x77\x4e\x66\x32\x79\x57','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x69\x61','\x41\x77\x58\x4c\x42\x4e\x71','\x77\x65\x66\x65\x75\x33\x6d','\x41\x31\x6e\x55\x45\x67\x6d','\x75\x65\x66\x75\x73\x66\x6d\x50','\x43\x75\x54\x35\x72\x32\x47','\x69\x63\x62\x74\x7a\x78\x71\x47\x44\x32\x39\x59\x41\x57','\x44\x63\x62\x30\x45\x78\x62\x4c\x6f\x49\x62\x5a\x44\x61','\x43\x4b\x66\x56\x42\x4b\x38','\x69\x63\x61\x47\x69\x63\x62\x74\x41\x77\x58\x4c\x42\x47','\x42\x32\x35\x5a\x6f\x49\x61','\x41\x4d\x39\x50\x42\x47','\x69\x63\x62\x74\x41\x67\x39\x33\x69\x68\x7a\x4c\x43\x47','\x76\x77\x35\x52\x42\x4d\x39\x33\x42\x49\x62\x48\x43\x47','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x42\x68\x6e\x4c\x6b\x71','\x79\x77\x6e\x4c\x69\x66\x62\x62\x76\x65\x48\x74\x6c\x61','\x69\x63\x31\x33\x69\x66\x62\x62\x76\x65\x48\x74\x69\x61','\x72\x4b\x7a\x76\x75\x75\x69','\x72\x30\x4c\x48\x73\x31\x65','\x69\x63\x61\x47\x69\x63\x62\x6d\x42\x32\x43\x47\x42\x61','\x69\x67\x72\x4c\x79\x4e\x76\x4e','\x6e\x4a\x47\x33\x6d\x4a\x61\x33\x71\x4d\x31\x56\x45\x67\x66\x65','\x6c\x73\x31\x4f\x7a\x77\x58\x57','\x41\x77\x6e\x48\x42\x63\x57\x47\x7a\x78\x6a\x59\x42\x57','\x69\x67\x66\x59\x7a\x33\x76\x54\x7a\x77\x35\x30\x43\x57','\x44\x32\x39\x59\x41\x33\x6e\x57\x79\x77\x6e\x4c\x75\x61','\x42\x68\x76\x4c\x6f\x49\x61','\x43\x4e\x7a\x4c\x43\x47','\x78\x31\x62\x70\x75\x4c\x71\x47\x69\x63\x61\x47\x69\x61','\x7a\x77\x31\x4c\x43\x4d\x44\x4c\x42\x4d\x6e\x35','\x42\x4e\x7a\x48\x42\x67\x4c\x4b\x69\x68\x72\x59\x79\x71','\x41\x77\x35\x4d\x42\x57','\x7a\x78\x7a\x4c\x42\x64\x4f\x47\x7a\x77\x31\x4c\x43\x47','\x76\x75\x76\x64\x42\x75\x4b','\x73\x75\x76\x70\x79\x75\x71','\x69\x67\x58\x4c\x44\x4d\x76\x53\x6f\x49\x61','\x6e\x74\x65\x57\x6d\x64\x79\x32\x72\x33\x6a\x55\x73\x65\x35\x6d','\x6c\x73\x31\x33\x42\x33\x6a\x52\x43\x33\x62\x48\x79\x57','\x43\x32\x4c\x56\x42\x49\x62\x50\x42\x4d\x7a\x56\x43\x47','\x44\x68\x6a\x48\x42\x4e\x6e\x57\x42\x33\x6a\x30','\x43\x4d\x76\x57\x42\x67\x66\x4a\x7a\x71','\x69\x63\x61\x54\x6c\x78\x72\x59\x79\x77\x35\x5a\x43\x61','\x44\x77\x7a\x65\x79\x4d\x6d','\x44\x63\x62\x54\x42\x32\x72\x4c\x6f\x49\x62\x30\x43\x47','\x43\x32\x58\x50\x79\x32\x75','\x34\x50\x32\x6d\x69\x65\x76\x59\x43\x4d\x39\x59\x6f\x49\x62\x6a','\x7a\x67\x76\x55\x69\x67\x6a\x35\x69\x65\x6e\x6d\x73\x71','\x42\x32\x35\x5a\x6f\x49\x62\x5a\x44\x67\x72\x50\x42\x57'];a0_0x18f8=function(){return _0x4ba37d;};return a0_0x18f8();}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(_0x589292){const _0x1fec79=a0_0x36fd;const _0x3b8d37={'\x72\x41\x6f\x6e\x4f':function(_0x54d70e,_0x56787b){return _0x54d70e===_0x56787b;},'\x45\x61\x55\x49\x51':_0x1fec79(0x277),'\x66\x73\x72\x6f\x68':_0x1fec79(0x258),'\x75\x66\x44\x62\x63':function(_0x2d14f1,_0x14fc44){return _0x2d14f1===_0x14fc44;},'\x58\x41\x44\x53\x73':'\x56\x41\x79\x74\x4c','\x47\x69\x48\x76\x6c':function(_0x5f120f,_0x2211a3){return _0x5f120f===_0x2211a3;},'\x58\x43\x63\x6c\x4f':function(_0x2b9cc1,_0x1c4324){return _0x2b9cc1!==_0x1c4324;},'\x46\x46\x55\x51\x42':_0x1fec79(0x204),'\x59\x4c\x6c\x4a\x75':_0x1fec79(0x210)+'\x74','\x6e\x6b\x4e\x65\x48':function(_0x30015c,_0x55629d){return _0x30015c+_0x55629d;},'\x4e\x6c\x47\x6a\x4c':_0x1fec79(0x205),'\x6d\x68\x41\x77\x70':function(_0x3472c1,_0x4ca061){return _0x3472c1<_0x4ca061;},'\x77\x6e\x4a\x5a\x49':function(_0x3a8f42,_0x5501ae){return _0x3a8f42+_0x5501ae;},'\x4f\x54\x4c\x74\x75':'\x2d\x2d\x70\x6f\x72\x74','\x42\x41\x41\x6f\x67':function(_0x539a5c,_0x3b96ad){return _0x539a5c===_0x3b96ad;},'\x71\x4b\x79\x47\x68':function(_0x4a2938,_0x19e79b){return _0x4a2938===_0x19e79b;}};const _0x5ad763={'\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 _0x1462ea=0x0;_0x1462ea<_0x589292[_0x1fec79(0x2a5)];_0x1462ea++){const _0x10c0a2=_0x589292[_0x1462ea];if(_0x10c0a2===_0x3b8d37[_0x1fec79(0x234)]||_0x10c0a2==='\x2d\x68'||_0x3b8d37[_0x1fec79(0x26c)](_0x10c0a2,_0x1fec79(0x219))||_0x10c0a2==='\x2d\x76'){if(_0x10c0a2==='\x2d\x68'){if(_0x3b8d37['\x75\x66\x44\x62\x63'](_0x3b8d37[_0x1fec79(0x243)],_0x1fec79(0x297))){_0x5ad763['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x1fec79(0x258);}else{_0x40883b['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x149225;}}else if(_0x3b8d37['\x47\x69\x48\x76\x6c'](_0x10c0a2,'\x2d\x76')){if(_0x3b8d37[_0x1fec79(0x282)](_0x3b8d37[_0x1fec79(0x253)],_0x3b8d37['\x46\x46\x55\x51\x42'])){const _0x1b85ed=_0x4ec9e6[_0x4b0390+0x1];if(_0x3b8d37[_0x1fec79(0x249)](_0x1b85ed,'\x73\x74\x64\x69\x6f')||_0x1b85ed===_0x3b8d37['\x45\x61\x55\x49\x51']){_0x691351['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']='\x2d\x2d'+_0x1b85ed;}else{throw new _0x144531(_0x1fec79(0x2a1)+_0x1fec79(0x22d)+_0x1fec79(0x25c)+_0x1b85ed+('\x2e\x20\x4d\x75\x73\x74\x20\x62\x65\x20'+_0x1fec79(0x2aa)+_0x1fec79(0x278)));}_0xa6be98++;}else{_0x5ad763['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x1fec79(0x219);}}else{_0x5ad763['\x74\x72\x61\x6e\x73\x70\x6f\x72\x74']=_0x10c0a2;}break;}if((_0x10c0a2===_0x3b8d37['\x59\x4c\x6c\x4a\x75']||_0x3b8d37[_0x1fec79(0x26c)](_0x10c0a2,'\x2d\x74'))&&_0x1462ea+0x1<_0x589292[_0x1fec79(0x2a5)]){const _0x306344=_0x589292[_0x3b8d37[_0x1fec79(0x27a)](_0x1462ea,0x1)];if(_0x306344===_0x3b8d37[_0x1fec79(0x236)]||_0x306344===_0x1fec79(0x277)){_0x5ad763[_0x1fec79(0x269)]='\x2d\x2d'+_0x306344;}else{throw new Error(_0x1fec79(0x2a1)+'\x61\x6e\x73\x70\x6f\x72\x74\x20\x76\x61'+_0x1fec79(0x25c)+_0x306344+(_0x1fec79(0x1fb)+'\x27\x73\x74\x64\x69\x6f\x27\x20\x6f\x72'+_0x1fec79(0x278)));}_0x1462ea++;}else if((_0x10c0a2===_0x1fec79(0x2a6)+'\x6c'||_0x10c0a2==='\x2d\x6c')&&_0x3b8d37[_0x1fec79(0x28e)](_0x1462ea+0x1,_0x589292[_0x1fec79(0x2a5)])){_0x5ad763[_0x1fec79(0x229)]=_0x589292[_0x3b8d37[_0x1fec79(0x23d)](_0x1462ea,0x1)]['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();_0x1462ea++;}else if((_0x10c0a2===_0x3b8d37[_0x1fec79(0x299)]||_0x3b8d37[_0x1fec79(0x2a3)](_0x10c0a2,'\x2d\x70'))&&_0x3b8d37[_0x1fec79(0x28e)](_0x1462ea+0x1,_0x589292[_0x1fec79(0x2a5)])){_0x5ad763[_0x1fec79(0x1f4)]=Number[_0x1fec79(0x224)](_0x589292[_0x1462ea+0x1],0xa);_0x1462ea++;}else if((_0x10c0a2===_0x1fec79(0x267)+'\x65'||_0x3b8d37[_0x1fec79(0x246)](_0x10c0a2,'\x2d\x77'))&&_0x1462ea+0x1<_0x589292[_0x1fec79(0x2a5)]){_0x5ad763[_0x1fec79(0x25b)+'\x61\x74\x68\x73']=_0x589292[_0x1462ea+0x1];_0x1462ea++;}else if(_0x3b8d37['\x42\x41\x41\x6f\x67'](_0x10c0a2,_0x1fec79(0x28a))||_0x3b8d37['\x71\x4b\x79\x47\x68'](_0x10c0a2,'\x2d\x73')){_0x5ad763[_0x1fec79(0x21b)]=!![];}else if(_0x10c0a2['\x73\x74\x61\x72\x74\x73\x57\x69\x74\x68']('\x2d\x2d')||_0x10c0a2[_0x1fec79(0x22a)]('\x2d')&&_0x10c0a2[_0x1fec79(0x2a5)]===0x2){throw new Error(_0x1fec79(0x24e)+'\x67\x75\x6d\x65\x6e\x74\x3a\x20'+_0x10c0a2);}}return _0x5ad763;}export async function main(_0x4802f5){const _0x11bfff=a0_0x36fd;const _0x10a808={'\x69\x6d\x46\x4d\x45':'\x6e\x6f\x64\x65\x3a\x75\x72\x6c','\x49\x45\x4f\x61\x44':function(_0xe447cf,_0x25e7e0,_0x351b49){return _0xe447cf(_0x25e7e0,_0x351b49);},'\x47\x49\x61\x4b\x51':_0x11bfff(0x28d),'\x71\x70\x55\x68\x53':_0x11bfff(0x26b)+'\x6f\x72\x74\x20\x54\x59\x50\x45\x2c\x20'+_0x11bfff(0x27d)+'\x20\x20\x54\x72\x61\x6e\x73\x70\x6f\x72'+_0x11bfff(0x248)+_0x11bfff(0x228)+'\x70\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+'\x65\x73\x20\x4d\x43\x50\x5f\x54\x52\x41'+_0x11bfff(0x200),'\x78\x4d\x6a\x41\x59':_0x11bfff(0x283)+_0x11bfff(0x213)+_0x11bfff(0x1fa)+_0x11bfff(0x29d)+'\x20\x6c\x65\x76\x65\x6c\x3a\x20\x65\x6d'+_0x11bfff(0x29e)+'\x6c\x65\x72\x74\x2c\x20\x63\x72\x69\x74'+_0x11bfff(0x259)+_0x11bfff(0x1f9)+'\x2c\x20\x6e\x6f\x74\x69\x63\x65\x2c\x20'+_0x11bfff(0x23a)+'\x67','\x71\x4f\x4a\x62\x50':_0x11bfff(0x1f6)+_0x11bfff(0x251)+_0x11bfff(0x252)+_0x11bfff(0x247)+'\x73\x70\x61\x63\x65\x20\x70\x61\x74\x68'+'\x73\x20\x28\x6f\x76\x65\x72\x72\x69\x64'+_0x11bfff(0x288)+_0x11bfff(0x21c)+_0x11bfff(0x245),'\x57\x51\x76\x55\x6f':'\x20\x20\x2d\x2d\x68\x65\x6c\x70\x2c\x20'+_0x11bfff(0x280)+'\x20\x20\x53\x68\x6f\x77\x20\x74\x68\x69'+'\x73\x20\x68\x65\x6c\x70\x20\x6d\x65\x73'+_0x11bfff(0x274),'\x64\x48\x70\x4c\x52':'\x20\x20\x4d\x43\x50\x5f\x54\x52\x41\x4e'+'\x53\x50\x4f\x52\x54\x20\x20\x20\x20\x20'+_0x11bfff(0x21f)+_0x11bfff(0x23f)+_0x11bfff(0x28f)+_0x11bfff(0x21e)+_0x11bfff(0x1f1)+'\x6f\x29','\x69\x77\x71\x66\x6e':'\x20\x20\x4c\x4f\x47\x5f\x4c\x45\x56\x45'+_0x11bfff(0x1ff)+_0x11bfff(0x255)+_0x11bfff(0x262)+'\x67\x65\x6e\x63\x79\x2c\x20\x61\x6c\x65'+_0x11bfff(0x238)+_0x11bfff(0x212)+_0x11bfff(0x1f2)+_0x11bfff(0x221)+_0x11bfff(0x223)+'\x28\x64\x65\x66\x61\x75\x6c\x74\x3a\x20'+_0x11bfff(0x272),'\x69\x44\x48\x78\x63':function(_0x102e01,_0x49b03d){return _0x102e01(_0x49b03d);},'\x6b\x53\x6e\x78\x63':'\x63\x72\x69\x74\x69\x63\x61\x6c','\x55\x45\x43\x6d\x49':_0x11bfff(0x25f),'\x52\x65\x63\x6f\x66':function(_0x4e640a){return _0x4e640a();},'\x74\x62\x76\x74\x4e':function(_0x10edfb,_0x4b0ff5){return _0x10edfb(_0x4b0ff5);}};try{const {readFileSync:_0x5f011c}=await import(_0x11bfff(0x284));const {dirname:_0x526ebf,join:_0x20eb29}=await import('\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68');const {fileURLToPath:_0x26612c}=await import(_0x10a808[_0x11bfff(0x214)]);const _0x3720bc=_0x26612c(import.meta.url);const _0x363d32=_0x526ebf(_0x3720bc);const _0xc3d41=_0x10a808[_0x11bfff(0x264)](_0x20eb29,_0x363d32,_0x11bfff(0x211)+'\x6f\x6e');const _0x40cf1b=JSON[_0x11bfff(0x23b)](_0x5f011c(_0xc3d41,'\x75\x74\x66\x38'));const _0x17df36=parseCliArguments(_0x4802f5);if(_0x17df36[_0x11bfff(0x269)]===_0x11bfff(0x258)){console[_0x11bfff(0x217)](_0x11bfff(0x295)+_0x11bfff(0x24f)+'\x78\x74');console[_0x11bfff(0x217)]('');console[_0x11bfff(0x217)]('\x55\x73\x61\x67\x65\x3a');console[_0x11bfff(0x217)]('\x20\x20'+_0x40cf1b[_0x11bfff(0x20a)]+'\x20\x5b\x4f\x50\x54\x49\x4f\x4e\x53\x5d');console[_0x11bfff(0x217)]('');console['\x6c\x6f\x67'](_0x10a808[_0x11bfff(0x254)]);console[_0x11bfff(0x217)](_0x10a808['\x71\x70\x55\x68\x53']);console['\x6c\x6f\x67'](_0x10a808[_0x11bfff(0x22e)]);console[_0x11bfff(0x217)]('\x20\x20\x2d\x2d\x70\x6f\x72\x74\x20\x50'+_0x11bfff(0x239)+'\x52\x54\x20\x20\x20\x20\x20\x20\x20\x20'+'\x20\x53\x65\x74\x20\x48\x54\x54\x50\x20'+_0x11bfff(0x21a)+_0x11bfff(0x206)+_0x11bfff(0x233)+_0x11bfff(0x276)+'\x6c\x61\x62\x6c\x65\x20\x69\x66\x20\x6f'+_0x11bfff(0x237));console[_0x11bfff(0x217)](_0x10a808[_0x11bfff(0x29a)]);console[_0x11bfff(0x217)](_0x11bfff(0x222)+_0x11bfff(0x1fd)+_0x11bfff(0x1f5)+'\x20\x61\x6c\x6c\x20\x6f\x75\x74\x70\x75'+_0x11bfff(0x281)+_0x11bfff(0x20e)+'\x65\x76\x65\x6c\x29');console[_0x11bfff(0x217)](_0x10a808['\x57\x51\x76\x55\x6f']);console['\x6c\x6f\x67'](_0x11bfff(0x207)+_0x11bfff(0x20f)+_0x11bfff(0x24d)+_0x11bfff(0x268)+_0x11bfff(0x1fc));console[_0x11bfff(0x217)]('');console[_0x11bfff(0x217)](_0x11bfff(0x293));console['\x6c\x6f\x67']('\x20\x20'+_0x40cf1b['\x6e\x61\x6d\x65']+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0x11bfff(0x2a9)));console[_0x11bfff(0x217)]('\x20\x20'+_0x40cf1b[_0x11bfff(0x20a)]+(_0x11bfff(0x27f)+_0x11bfff(0x2a7)+'\x70\x6f\x72\x74\x20\x38\x30\x38\x30'));console[_0x11bfff(0x217)]('\x20\x20'+_0x40cf1b[_0x11bfff(0x20a)]+('\x20\x2d\x2d\x74\x72\x61\x6e\x73\x70\x6f'+_0x11bfff(0x285)+'\x2d\x6c\x6f\x67\x2d\x6c\x65\x76\x65\x6c'+_0x11bfff(0x256)));console['\x6c\x6f\x67']('\x20\x20'+_0x40cf1b[_0x11bfff(0x20a)]+(_0x11bfff(0x27f)+_0x11bfff(0x2a7)+_0x11bfff(0x241)+_0x11bfff(0x290)+_0x11bfff(0x286)+_0x11bfff(0x242)));console['\x6c\x6f\x67']('');console['\x6c\x6f\x67'](_0x11bfff(0x201)+'\x74\x20\x56\x61\x72\x69\x61\x62\x6c\x65'+_0x11bfff(0x20d)+_0x11bfff(0x270)+_0x11bfff(0x25a)+'\x29\x3a');console[_0x11bfff(0x217)](_0x10a808[_0x11bfff(0x226)]);console[_0x11bfff(0x217)](_0x10a808[_0x11bfff(0x2a0)]);console[_0x11bfff(0x217)](_0x11bfff(0x23c)+_0x11bfff(0x21d)+_0x11bfff(0x24a)+_0x11bfff(0x26d)+_0x11bfff(0x2a8)+_0x11bfff(0x209)+'\x20\x6f\x75\x74\x70\x75\x74\x20\x28\x64'+_0x11bfff(0x291)+_0x11bfff(0x250));console['\x6c\x6f\x67'](_0x11bfff(0x27e)+_0x11bfff(0x25e)+_0x11bfff(0x208)+_0x11bfff(0x21a)+'\x74\x74\x70\x20\x74\x72\x61\x6e\x73\x70'+_0x11bfff(0x233)+_0x11bfff(0x276)+_0x11bfff(0x28c)+_0x11bfff(0x29b)+_0x11bfff(0x289)+_0x11bfff(0x231));console[_0x11bfff(0x217)](_0x11bfff(0x279)+_0x11bfff(0x22b)+_0x11bfff(0x2a4)+'\x70\x61\x63\x65\x20\x70\x61\x74\x68\x73'+_0x11bfff(0x287)+_0x11bfff(0x225));process[_0x11bfff(0x296)](0x0);}if(_0x17df36[_0x11bfff(0x269)]===_0x11bfff(0x219)){console[_0x11bfff(0x217)](_0x11bfff(0x295)+_0x11bfff(0x24f)+_0x11bfff(0x294)+_0x40cf1b[_0x11bfff(0x1f3)]);process['\x65\x78\x69\x74'](0x0);}let _0x58f085;if(_0x17df36[_0x11bfff(0x269)]){_0x58f085=_0x17df36[_0x11bfff(0x269)][_0x11bfff(0x26a)](/^--/,'')['\x74\x6f\x4c\x6f\x77\x65\x72\x43\x61\x73'+'\x65']();}else if(process.env.MCP_TRANSPORT){_0x58f085=process.env.MCP_TRANSPORT[_0x11bfff(0x29c)+'\x65']();}else{_0x58f085=_0x11bfff(0x205);}if(_0x58f085!==_0x11bfff(0x205)&&_0x58f085!==_0x11bfff(0x277)){console[_0x11bfff(0x1ef)](_0x11bfff(0x26f)+_0x11bfff(0x260)+_0x11bfff(0x218)+'\x75\x65');console[_0x11bfff(0x1ef)]('\x56\x61\x6c\x69\x64\x20\x6f\x70\x74\x69'+_0x11bfff(0x271)+_0x11bfff(0x1fe));console[_0x11bfff(0x1ef)]('\x52\x65\x63\x65\x69\x76\x65\x64\x3a\x20'+_0x58f085);console[_0x11bfff(0x1ef)](_0x11bfff(0x203)+_0x40cf1b[_0x11bfff(0x20a)]+(_0x11bfff(0x27b)+_0x11bfff(0x1f0)+_0x11bfff(0x27c)));process[_0x11bfff(0x296)](0x1);}if(_0x17df36[_0x11bfff(0x21b)]){_0x10a808[_0x11bfff(0x22f)](setSilent,!![]);}else if(_0x17df36[_0x11bfff(0x229)]){const _0x4f3d0d=[_0x11bfff(0x273),_0x11bfff(0x261),_0x11bfff(0x235),_0x11bfff(0x2a2),_0x11bfff(0x1ef),_0x10a808[_0x11bfff(0x244)],_0x11bfff(0x292),_0x10a808[_0x11bfff(0x263)]];const _0xa27b16=_0x17df36[_0x11bfff(0x229)][_0x11bfff(0x29c)+'\x65']();if(_0x4f3d0d[_0x11bfff(0x227)](_0xa27b16)){process.env.LOG_LEVEL=_0xa27b16;}else{console[_0x11bfff(0x1ef)]('\u274c\x20\x45\x72\x72\x6f\x72\x3a\x20\x49'+'\x6e\x76\x61\x6c\x69\x64\x20\x6c\x6f\x67'+_0x11bfff(0x265)+_0x17df36[_0x11bfff(0x229)]);console[_0x11bfff(0x1ef)](_0x11bfff(0x215)+_0x11bfff(0x24b)+_0x4f3d0d[_0x11bfff(0x24c)]('\x2c\x20'));process[_0x11bfff(0x296)](0x1);}}if(_0x17df36[_0x11bfff(0x1f4)]){process.env.MCP_HTTP_PORT=_0x17df36[_0x11bfff(0x1f4)][_0x11bfff(0x23e)]();}if(_0x17df36[_0x11bfff(0x25b)+'\x61\x74\x68\x73']){process.env.WORKSPACE_FOLDER_PATHS=_0x17df36[_0x11bfff(0x25b)+'\x61\x74\x68\x73'];}const {registerGlobalErrorHandlers:registerGlobalErrorHandlers,registerSignalHandlers:registerSignalHandlers}=await import(_0x11bfff(0x28b)+'\x73\x65\x72\x76\x65\x72\x2e\x6a\x73');registerGlobalErrorHandlers();_0x10a808[_0x11bfff(0x232)](registerSignalHandlers);await _0x10a808['\x74\x62\x76\x74\x4e'](setupServer,_0x58f085);}catch(_0x1706fb){const _0x4face7=createLogger();_0x4face7[_0x11bfff(0x1ef)](_0x1706fb,_0x11bfff(0x275)+'\x74\x69\x6e\x67\x20\x49\x42\x4d\x20\x53'+_0x11bfff(0x216)+_0x11bfff(0x230)+_0x11bfff(0x25d));await mcpServer[_0x11bfff(0x22c)]();process[_0x11bfff(0x296)](0x1);}}function a0_0x36fd(_0x4bc4c7,_0x4d551b){_0x4bc4c7=_0x4bc4c7-0x1ef;const _0x18f839=a0_0x18f8();let _0x36fd4f=_0x18f839[_0x4bc4c7];if(a0_0x36fd['\x50\x61\x64\x69\x52\x6f']===undefined){var _0x5f6663=function(_0x1caca3){const _0x337127='\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 _0x499553='';let _0x1aa5af='';for(let _0x41343d=0x0,_0x3c9117,_0x2e5293,_0x3c2333=0x0;_0x2e5293=_0x1caca3['\x63\x68\x61\x72\x41\x74'](_0x3c2333++);~_0x2e5293&&(_0x3c9117=_0x41343d%0x4?_0x3c9117*0x40+_0x2e5293:_0x2e5293,_0x41343d++%0x4)?_0x499553+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x3c9117>>(-0x2*_0x41343d&0x6)):0x0){_0x2e5293=_0x337127['\x69\x6e\x64\x65\x78\x4f\x66'](_0x2e5293);}for(let _0x40883b=0x0,_0x149225=_0x499553['\x6c\x65\x6e\x67\x74\x68'];_0x40883b<_0x149225;_0x40883b++){_0x1aa5af+='\x25'+('\x30\x30'+_0x499553['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x40883b)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x1aa5af);};a0_0x36fd['\x4c\x66\x64\x65\x76\x53']=_0x5f6663;a0_0x36fd['\x49\x68\x71\x70\x67\x4c']={};a0_0x36fd['\x50\x61\x64\x69\x52\x6f']=!![];}const _0x2012dc=_0x18f839[0x0];const _0x5e77a1=_0x4bc4c7+_0x2012dc;const _0x553fb4=a0_0x36fd['\x49\x68\x71\x70\x67\x4c'][_0x5e77a1];if(!_0x553fb4){_0x36fd4f=a0_0x36fd['\x4c\x66\x64\x65\x76\x53'](_0x36fd4f);a0_0x36fd['\x49\x68\x71\x70\x67\x4c'][_0x5e77a1]=_0x36fd4f;}else{_0x36fd4f=_0x553fb4;}return _0x36fd4f;}main(process[a0_0x439d37(0x202)][a0_0x439d37(0x26e)](0x2));
|
package/package.json
CHANGED
package/src/client.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a0_0x3dbb(){const _0x45fcad=['\x42\x67\x39\x4e\x7a\x32\x4c\x55\x7a\x57','\x45\x75\x7a\x70\x45\x4d\x75','\x42\x4d\x66\x54\x7a\x71','\x7a\x77\x31\x49\x7a\x77\x72\x4b\x7a\x77\x72\x73\x7a\x71','\x6d\x74\x6d\x5a\x6e\x4a\x71\x57\x6d\x75\x6a\x57\x76\x33\x66\x4a\x76\x57','\x43\x68\x6a\x56\x44\x67\x39\x4a\x42\x32\x58\x77\x7a\x71','\x43\x33\x76\x57\x43\x67\x39\x59\x44\x68\x6e\x64\x79\x71','\x6d\x5a\x61\x5a\x6e\x64\x6d\x30\x6d\x5a\x62\x32\x44\x31\x50\x6d\x7a\x33\x65','\x6f\x64\x71\x32\x6e\x4a\x75\x32\x79\x30\x54\x51\x43\x4b\x76\x31','\x77\x4b\x76\x6d\x72\x32\x38','\x71\x33\x76\x59\x43\x32\x39\x59','\x79\x32\x66\x57\x79\x77\x6a\x50\x42\x67\x4c\x30\x41\x71','\x76\x4d\x4c\x5a\x44\x77\x66\x53\x69\x66\x6e\x30\x44\x71','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75','\x43\x4d\x39\x56\x44\x68\x6d','\x42\x67\x76\x55\x7a\x33\x72\x4f','\x6f\x66\x50\x53\x77\x75\x6e\x76\x74\x47','\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x76\x47','\x6f\x64\x4b\x34\x6e\x5a\x65\x58\x43\x4b\x54\x33\x79\x30\x39\x49','\x7a\x67\x4c\x5a\x79\x77\x6a\x53\x7a\x75\x76\x53\x41\x71','\x74\x77\x4c\x64\x43\x4d\x39\x5a\x79\x32\x39\x71\x7a\x71','\x43\x32\x39\x31\x43\x4d\x6e\x4c\x43\x57','\x43\x4e\x6e\x50\x42\x32\x34','\x41\x32\x76\x35\x43\x57','\x6e\x4c\x50\x67\x75\x76\x4c\x36\x71\x71','\x7a\x32\x76\x30\x71\x32\x58\x50\x7a\x77\x35\x30\x74\x47','\x77\x78\x66\x49\x71\x4e\x65','\x79\x32\x4c\x30\x79\x78\x72\x50\x42\x32\x34','\x7a\x77\x58\x50\x79\x32\x4c\x30\x79\x78\x72\x50\x42\x57','\x7a\x78\x6a\x5a\x41\x77\x39\x55','\x43\x67\x66\x49\x41\x77\x58\x50\x44\x68\x4b','\x72\x78\x48\x50\x76\x33\x61','\x43\x31\x6a\x36\x43\x30\x38','\x41\x77\x35\x52\x43\x57','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x5a','\x74\x32\x54\x7a\x73\x30\x30','\x69\x65\x4c\x55\x43\x32\x4c\x4b\x7a\x78\x6a\x5a','\x42\x32\x6a\x51\x7a\x77\x6e\x30','\x7a\x4d\x39\x30\x43\x30\x4f','\x6d\x4e\x76\x68\x42\x77\x48\x64\x41\x57','\x7a\x67\x4c\x56\x69\x65\x6e\x56\x7a\x67\x75\x47\x6c\x71','\x79\x77\x31\x4c','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x79\x31\x62\x36\x43\x68\x47','\x41\x77\x35\x4a\x42\x68\x76\x4b\x7a\x78\x6d','\x41\x77\x35\x50\x44\x67\x4c\x48\x42\x67\x4c\x36\x7a\x71','\x6d\x73\x34\x58\x6d\x64\x6d\x55\x6d\x61','\x7a\x77\x66\x48\x7a\x4e\x61','\x44\x77\x35\x52\x42\x4d\x39\x33\x42\x47','\x74\x68\x50\x50\x44\x31\x61','\x6d\x74\x65\x33\x6d\x64\x43\x57\x6d\x64\x6e\x59\x41\x65\x31\x57\x72\x4b\x71','\x71\x77\x35\x76\x42\x31\x71','\x75\x76\x6e\x30\x71\x75\x4b','\x43\x4d\x76\x5a\x42\x33\x76\x59\x79\x32\x76\x46\x42\x61','\x79\x32\x58\x50\x7a\x77\x35\x30\x73\x77\x35\x4d\x42\x57','\x7a\x65\x35\x65\x44\x33\x4b','\x6f\x74\x6d\x33\x6d\x5a\x69\x5a\x6f\x76\x72\x77\x71\x75\x58\x34\x44\x71','\x77\x76\x66\x4f\x72\x76\x69','\x6e\x4a\x71\x58\x6d\x74\x71\x31\x7a\x66\x62\x5a\x41\x30\x39\x6c','\x7a\x4d\x39\x59\x42\x71','\x44\x67\x39\x6d\x42\x33\x44\x4c\x43\x4b\x6e\x48\x43\x57'];a0_0x3dbb=function(){return _0x45fcad;};return a0_0x3dbb();}const a0_0x36c9c5=a0_0x5a54;(function(_0x1e2baa,_0x42391f){const _0x1c456a=a0_0x5a54;const _0x330c62=_0x1e2baa();while(!![]){try{const _0x490644=parseInt(_0x1c456a(0x83))/0x1+-parseInt(_0x1c456a(0x98))/0x2*(-parseInt(_0x1c456a(0x75))/0x3)+-parseInt(_0x1c456a(0x79))/0x4+parseInt(_0x1c456a(0xab))/0x5*(parseInt(_0x1c456a(0x89))/0x6)+-parseInt(_0x1c456a(0xa3))/0x7*(-parseInt(_0x1c456a(0x81))/0x8)+parseInt(_0x1c456a(0xa9))/0x9+-parseInt(_0x1c456a(0x78))/0xa;if(_0x490644===_0x42391f){break;}else{_0x330c62['push'](_0x330c62['shift']());}}catch(_0x4abea2){_0x330c62['push'](_0x330c62['shift']());}}}(a0_0x3dbb,0xe590c));function a0_0x5a54(_0x39d4df,_0x218313){_0x39d4df=_0x39d4df-0x75;const _0x3dbb7a=a0_0x3dbb();let _0x5a542d=_0x3dbb7a[_0x39d4df];if(a0_0x5a54['\x4e\x70\x51\x78\x4a\x4b']===undefined){var _0x11f874=function(_0x4cc379){const _0xf4dc2b='\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 _0x7d754b='';let _0xe03b='';for(let _0x17ab17=0x0,_0x180ae2,_0x399aa2,_0x39bff5=0x0;_0x399aa2=_0x4cc379['\x63\x68\x61\x72\x41\x74'](_0x39bff5++);~_0x399aa2&&(_0x180ae2=_0x17ab17%0x4?_0x180ae2*0x40+_0x399aa2:_0x399aa2,_0x17ab17++%0x4)?_0x7d754b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x180ae2>>(-0x2*_0x17ab17&0x6)):0x0){_0x399aa2=_0xf4dc2b['\x69\x6e\x64\x65\x78\x4f\x66'](_0x399aa2);}for(let _0x2c4fba=0x0,_0x366043=_0x7d754b['\x6c\x65\x6e\x67\x74\x68'];_0x2c4fba<_0x366043;_0x2c4fba++){_0xe03b+='\x25'+('\x30\x30'+_0x7d754b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x2c4fba)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0xe03b);};a0_0x5a54['\x68\x71\x61\x65\x5a\x4f']=_0x11f874;a0_0x5a54['\x49\x75\x78\x6a\x71\x4f']={};a0_0x5a54['\x4e\x70\x51\x78\x4a\x4b']=!![];}const _0x1831ad=_0x3dbb7a[0x0];const _0x36a7e7=_0x39d4df+_0x1831ad;const _0x16f0c3=a0_0x5a54['\x49\x75\x78\x6a\x71\x4f'][_0x36a7e7];if(!_0x16f0c3){_0x5a542d=a0_0x5a54['\x68\x71\x61\x65\x5a\x4f'](_0x5a542d);a0_0x5a54['\x49\x75\x78\x6a\x71\x4f'][_0x36a7e7]=_0x5a542d;}else{_0x5a542d=_0x16f0c3;}return _0x5a542d;}import a0_0x375f17 from'\x73\x65\x6d\x76\x65\x72';import a0_0x49dd52 from'\x2e\x2f\x63\x6f\x6e\x66\x69\x67\x2e\x6a\x73';class Client{['\x63\x6c\x69\x65\x6e\x74\x49\x6e\x66\x6f'];[a0_0x36c9c5(0x7c)+'\x65\x73'];['\x70\x72\x6f\x74\x6f\x63\x6f\x6c\x56\x65'+'\x72\x73\x69\x6f\x6e'];[a0_0x36c9c5(0x7f)]={};constructor(){const _0x4457dc=a0_0x5a54;const _0x18a6d3={'\x79\x46\x4f\x7a\x65':'\x75\x6e\x6b\x6e\x6f\x77\x6e'};this[_0x4457dc(0xa7)]={'\x6e\x61\x6d\x65':_0x18a6d3[_0x4457dc(0xaf)]};this[_0x4457dc(0x7c)+'\x65\x73']={};this[_0x4457dc(0x76)+_0x4457dc(0x87)]='';}[a0_0x36c9c5(0x9e)](_0x3c6083={}){const _0x5d089f=a0_0x5a54;const _0x2a59a0={'\x4f\x6b\x59\x4b\x4d':_0x5d089f(0xa1)};this[_0x5d089f(0xa7)]=_0x3c6083?.[_0x5d089f(0xa7)]||{'\x6e\x61\x6d\x65':_0x2a59a0[_0x5d089f(0x94)]};this[_0x5d089f(0x7c)+'\x65\x73']=_0x3c6083?.[_0x5d089f(0x7c)+'\x65\x73']||{};this['\x70\x72\x6f\x74\x6f\x63\x6f\x6c\x56\x65'+_0x5d089f(0x87)]=_0x3c6083?.['\x70\x72\x6f\x74\x6f\x63\x6f\x6c\x56\x65'+'\x72\x73\x69\x6f\x6e']||'';}['\x67\x65\x74\x43\x6c\x69\x65\x6e\x74\x4e'+a0_0x36c9c5(0x9a)](){const _0x6a82b8=a0_0x5a54;const _0x48e9fb={'\x5a\x51\x6e\x64\x55':_0x6a82b8(0xa1),'\x73\x52\x7a\x73\x4f':_0x6a82b8(0x7d)+_0x6a82b8(0x7e)};const _0x587c09=this[_0x6a82b8(0xa7)]?.[_0x6a82b8(0xb0)]||_0x48e9fb['\x5a\x51\x6e\x64\x55'];const _0x3327ca={'\x63\x75\x72\x73\x6f\x72\x2d\x76\x73\x63\x6f\x64\x65':'\x43\x75\x72\x73\x6f\x72','\x56\x69\x73\x75\x61\x6c\x20\x53\x74\x75\x64\x69\x6f\x20\x43\x6f\x64\x65':_0x48e9fb[_0x6a82b8(0x91)],'\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':_0x6a82b8(0x7d)+'\x64\x69\x6f\x20\x43\x6f\x64\x65\x20\x2d'+_0x6a82b8(0x95),'\x6d\x69\x63\x72\x6f\x73\x63\x6f\x70\x65':_0x6a82b8(0x85)};return _0x3327ca[_0x587c09]||_0x587c09;}[a0_0x36c9c5(0x82)+a0_0x36c9c5(0x8e)](){const _0x3f061b=a0_0x5a54;return this[_0x3f061b(0xa7)]?.['\x76\x65\x72\x73\x69\x6f\x6e'];}['\x69\x73'](_0xb8eceb){const _0x162767=a0_0x5a54;const _0x23ccaf={'\x59\x51\x68\x45\x52':function(_0x175a63,_0x44c683){return _0x175a63!==_0x44c683;},'\x45\x78\x69\x57\x70':'\x49\x46\x57\x6a\x52','\x4c\x7a\x69\x77\x50':_0x162767(0x97)};if(!Array['\x69\x73\x41\x72\x72\x61\x79'](_0xb8eceb)){if(_0x23ccaf[_0x162767(0xaa)](_0x23ccaf[_0x162767(0x90)],_0x23ccaf[_0x162767(0xa2)])){_0xb8eceb=[_0xb8eceb];}else{return this[_0x162767(0xa7)]?.[_0x162767(0x9b)];}}const _0x5a3990=this[_0x162767(0x8a)+_0x162767(0x9a)]()[_0x162767(0xad)+'\x65']();return _0xb8eceb['\x73\x6f\x6d\x65'](_0x4e8f5e=>_0x5a3990[_0x162767(0x9d)](_0x4e8f5e[_0x162767(0xad)+'\x65']()));}[a0_0x36c9c5(0x77)+a0_0x36c9c5(0x8f)](_0x7553fc){const _0x8a787=a0_0x5a54;const _0x16ac02={'\x50\x67\x67\x62\x73':_0x8a787(0xae),'\x5a\x45\x4c\x47\x6f':function(_0x4ccc92,_0x112886){return _0x4ccc92(_0x112886);},'\x63\x50\x7a\x70\x78':_0x8a787(0x7d)+_0x8a787(0x99)+_0x8a787(0x95),'\x64\x4e\x44\x77\x79':_0x8a787(0x93),'\x59\x71\x62\x42\x71':_0x8a787(0x7d)+_0x8a787(0x7e),'\x41\x6e\x55\x6f\x54':_0x8a787(0xa6)+_0x8a787(0x92),'\x4c\x46\x56\x4a\x66':_0x8a787(0x9f),'\x65\x61\x61\x66\x70':_0x8a787(0xa5)};switch(_0x7553fc){case _0x16ac02['\x50\x67\x67\x62\x73']:return _0x16ac02[_0x8a787(0x7a)](Boolean,this[_0x8a787(0x7c)+'\x65\x73']?.['\x6c\x6f\x67\x67\x69\x6e\x67'])||this['\x69\x73']([_0x8a787(0x7d)+_0x8a787(0x7e),_0x16ac02[_0x8a787(0x9c)]]);case _0x16ac02[_0x8a787(0xa8)]:return Boolean(this[_0x8a787(0x7c)+'\x65\x73']?.[_0x7553fc])||this['\x69\x73']([_0x16ac02[_0x8a787(0x8b)],_0x8a787(0x7d)+_0x8a787(0x99)+'\x20\x49\x6e\x73\x69\x64\x65\x72\x73','\x43\x75\x72\x73\x6f\x72']);case _0x8a787(0xb1)+_0x8a787(0x86):return this['\x69\x73']([_0x8a787(0x7d)+'\x64\x69\x6f\x20\x43\x6f\x64\x65',_0x16ac02[_0x8a787(0x9c)],_0x8a787(0x7b)]);case _0x16ac02[_0x8a787(0xa4)]:return this['\x69\x73']([_0x16ac02[_0x8a787(0x8b)],_0x8a787(0x7d)+_0x8a787(0x99)+_0x8a787(0x95)])&&a0_0x375f17['\x67\x74\x65'](this[_0x8a787(0xa7)][_0x8a787(0x9b)],_0x16ac02['\x4c\x46\x56\x4a\x66']);case _0x8a787(0x8d)+'\x6e':{if(a0_0x49dd52[_0x8a787(0x84)+_0x8a787(0x8c)]){return![];}const _0x5bfe74=this[_0x8a787(0x7c)+'\x65\x73']?.[_0x7553fc];if(!_0x5bfe74){return![];}if(typeof _0x5bfe74===_0x8a787(0x96)){if(_0x8a787(0xa5)===_0x16ac02[_0x8a787(0xa0)]){return Object[_0x8a787(0x88)](_0x5bfe74)[_0x8a787(0x80)]===0x0||Boolean(_0x5bfe74[_0x8a787(0xac)]);}else{return![];}}return Boolean(_0x5bfe74);}default:return Boolean(this[_0x8a787(0x7c)+'\x65\x73']?.[_0x7553fc]);}}}const client=new Client();export default client;
|
package/src/config.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
function a0_0x4e85(_0x1fe177,_0x3b4268){_0x1fe177=_0x1fe177-0x67;const _0x25e921=a0_0x25e9();let _0x4e8555=_0x25e921[_0x1fe177];if(a0_0x4e85['\x45\x6b\x66\x62\x78\x42']===undefined){var _0x5d6b9e=function(_0x39e6c0){const _0x2e41bd='\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 _0x593e9c='';let _0x21f710='';for(let _0x145dfd=0x0,_0x542df7,_0x125527,_0x34e086=0x0;_0x125527=_0x39e6c0['\x63\x68\x61\x72\x41\x74'](_0x34e086++);~_0x125527&&(_0x542df7=_0x145dfd%0x4?_0x542df7*0x40+_0x125527:_0x125527,_0x145dfd++%0x4)?_0x593e9c+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x542df7>>(-0x2*_0x145dfd&0x6)):0x0){_0x125527=_0x2e41bd['\x69\x6e\x64\x65\x78\x4f\x66'](_0x125527);}for(let _0x3e22c9=0x0,_0x1a9266=_0x593e9c['\x6c\x65\x6e\x67\x74\x68'];_0x3e22c9<_0x1a9266;_0x3e22c9++){_0x21f710+='\x25'+('\x30\x30'+_0x593e9c['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x3e22c9)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x21f710);};a0_0x4e85['\x6c\x71\x75\x44\x58\x75']=_0x5d6b9e;a0_0x4e85['\x69\x68\x6a\x4e\x45\x4a']={};a0_0x4e85['\x45\x6b\x66\x62\x78\x42']=!![];}const _0xf9bf7f=_0x25e921[0x0];const _0x404c54=_0x1fe177+_0xf9bf7f;const _0x5cdbac=a0_0x4e85['\x69\x68\x6a\x4e\x45\x4a'][_0x404c54];if(!_0x5cdbac){_0x4e8555=a0_0x4e85['\x6c\x71\x75\x44\x58\x75'](_0x4e8555);a0_0x4e85['\x69\x68\x6a\x4e\x45\x4a'][_0x404c54]=_0x4e8555;}else{_0x4e8555=_0x5cdbac;}return _0x4e8555;}const a0_0x5d70ad=a0_0x4e85;(function(_0x1d2173,_0x4eb298){const _0x5a1d5f=a0_0x4e85;const _0x2b205d=_0x1d2173();while(!![]){try{const _0x3a59d2=-parseInt(_0x5a1d5f(0x82))/0x1+-parseInt(_0x5a1d5f(0x6d))/0x2*(parseInt(_0x5a1d5f(0x93))/0x3)+parseInt(_0x5a1d5f(0x77))/0x4*(parseInt(_0x5a1d5f(0x7b))/0x5)+-parseInt(_0x5a1d5f(0x7e))/0x6+parseInt(_0x5a1d5f(0x69))/0x7+parseInt(_0x5a1d5f(0x7a))/0x8*(parseInt(_0x5a1d5f(0x9b))/0x9)+-parseInt(_0x5a1d5f(0x7d))/0xa*(-parseInt(_0x5a1d5f(0x8e))/0xb);if(_0x3a59d2===_0x4eb298){break;}else{_0x2b205d['push'](_0x2b205d['shift']());}}catch(_0x4870b2){_0x2b205d['push'](_0x2b205d['shift']());}}}(a0_0x25e9,0xe6084));import{createRequire}from'\x6e\x6f\x64\x65\x3a\x6d\x6f\x64\x75\x6c\x65';function a0_0x25e9(){const _0x1bfb6b=['\x7a\x33\x6d\x53\x69\x68\x72\x56\x69\x67\x76\x34\x7a\x71','\x44\x4d\x76\x59\x69\x67\x66\x53\x42\x67\x39\x33\x43\x57','\x41\x77\x6a\x54\x6c\x78\x6e\x4d\x6c\x77\x6e\x56\x42\x47','\x6c\x4d\x50\x5a\x42\x32\x34','\x44\x67\x76\x59\x79\x77\x6e\x30\x69\x68\x44\x50\x44\x61','\x69\x68\x4c\x56\x44\x73\x62\x30\x42\x59\x62\x50\x42\x47','\x6f\x75\x66\x5a\x71\x75\x76\x63\x42\x71','\x43\x67\x66\x59\x43\x32\x76\x6a\x42\x4e\x71','\x73\x75\x6a\x6e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x6d\x74\x71\x5a\x6e\x74\x71\x34\x6d\x32\x58\x51\x74\x78\x44\x53\x75\x61','\x43\x33\x76\x53\x44\x68\x6d\x53\x69\x67\x39\x49\x41\x47','\x45\x68\x71\x47\x74\x75\x6e\x71\x69\x66\x6e\x4c\x43\x47','\x6c\x63\x62\x4b\x7a\x77\x6a\x31\x7a\x59\x62\x53\x42\x57','\x6d\x4b\x72\x31\x77\x78\x4c\x6c\x76\x61','\x79\x33\x76\x30\x7a\x73\x62\x65\x74\x75\x57\x53\x69\x61','\x43\x59\x39\x59\x7a\x78\x62\x56\x43\x4e\x71\x54\x41\x71','\x7a\x4d\x66\x53\x43\x32\x75','\x6c\x78\x72\x4c\x42\x67\x76\x54\x7a\x78\x72\x59\x45\x71','\x7a\x59\x62\x54\x7a\x78\x72\x48\x7a\x67\x66\x30\x79\x71','\x41\x77\x35\x4d\x42\x33\x6a\x54\x79\x78\x72\x50\x42\x57','\x43\x32\x75\x47\x79\x32\x48\x48\x42\x4d\x44\x4c\x43\x57','\x43\x4d\x4c\x4c\x44\x4d\x75\x47\x42\x33\x6a\x4e\x69\x61','\x41\x68\x72\x30\x43\x68\x6d\x36\x6c\x59\x39\x50\x79\x47','\x6e\x66\x76\x68\x42\x76\x76\x34\x42\x61','\x71\x78\x62\x4c\x45\x63\x62\x30\x7a\x78\x6e\x30\x43\x57','\x42\x73\x31\x5a\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x47','\x6e\x64\x75\x32\x6f\x64\x61\x31\x6e\x4e\x66\x69\x74\x4c\x44\x56\x76\x61','\x6e\x5a\x69\x58\x6d\x74\x69\x59\x6d\x68\x6e\x76\x74\x4d\x4c\x36\x43\x61','\x43\x59\x39\x4f\x79\x77\x35\x4b\x43\x32\x48\x48\x41\x57','\x6f\x74\x62\x50\x74\x30\x44\x69\x79\x75\x38','\x6e\x4a\x4b\x32\x6d\x74\x71\x59\x6d\x4c\x6e\x70\x74\x78\x72\x6a\x43\x47','\x44\x68\x6a\x35','\x43\x68\x61\x56\x6c\x4d\x35\x4c\x44\x67\x58\x50\x7a\x47','\x7a\x77\x35\x30\x69\x67\x6e\x56\x7a\x67\x76\x49\x79\x71','\x6e\x74\x71\x59\x6d\x5a\x4b\x59\x42\x33\x6a\x76\x41\x75\x58\x7a','\x44\x67\x31\x57','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x42\x32\x35\x30\x7a\x71','\x44\x4d\x76\x59\x43\x32\x4c\x56\x42\x47','\x45\x73\x39\x4d\x44\x77\x35\x4a\x44\x67\x4c\x56\x42\x47','\x6c\x4d\x35\x4c\x44\x67\x58\x50\x7a\x4e\x4b\x55\x79\x71','\x42\x4d\x71\x47\x43\x4d\x76\x54\x42\x33\x72\x4c\x69\x61','\x7a\x77\x6e\x30\x69\x68\x6e\x4a\x41\x67\x76\x54\x79\x71','\x79\x32\x39\x54\x6c\x33\x72\x4c\x42\x67\x76\x54\x7a\x71','\x69\x67\x4c\x55\x7a\x4d\x38\x53\x69\x68\x6a\x4c\x79\x57','\x44\x68\x6a\x31\x7a\x71','\x42\x33\x6a\x4e\x69\x68\x72\x56\x69\x68\x6a\x4c\x44\x61','\x6d\x74\x47\x30\x6d\x74\x61\x35\x6d\x4d\x58\x58\x45\x76\x44\x4b\x71\x57','\x42\x49\x57\x47\x75\x30\x39\x72\x74\x63\x62\x59\x7a\x71','\x44\x67\x76\x34\x44\x61','\x6c\x49\x34\x56\x43\x67\x66\x4a\x41\x32\x66\x4e\x7a\x71','\x6c\x63\x62\x4b\x7a\x78\x62\x53\x42\x33\x4c\x50\x42\x47','\x6d\x5a\x69\x5a\x6f\x74\x71\x34\x6d\x78\x6a\x68\x41\x78\x66\x4b\x42\x57','\x42\x67\x39\x4a\x79\x77\x57\x47\x71\x78\x62\x4c\x45\x61'];a0_0x25e9=function(){return _0x1bfb6b;};return a0_0x25e9();}const require=createRequire(import.meta.url);const pkg=require(a0_0x5d70ad(0x91)+a0_0x5d70ad(0x98));export default{'\x6c\x6f\x67\x50\x72\x65\x66\x69\x78':'\ud83d\udc41\ud83d\udc1d\u24c2\ufe0f','\x64\x65\x66\x61\x75\x6c\x74\x4c\x6f\x67\x4c\x65\x76\x65\x6c':'\x64\x65\x62\x75\x67','\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_0x5d70ad(0x8c),'\x6d\x63\x70\x41\x70\x70\x73\x45\x6e\x61\x62\x6c\x65\x64':process.env.MCP_APPS_ENABLED!==a0_0x5d70ad(0x70),'\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':a0_0x5d70ad(0x83),'\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':'\x32\x30\x32\x35\x2d\x31\x31\x2d\x32\x35','\x73\x65\x72\x76\x65\x72\x49\x6e\x66\x6f':{'\x6e\x61\x6d\x65':a0_0x5d70ad(0x68)+a0_0x5d70ad(0x84)+'\x78\x74','\x61\x6c\x69\x61\x73':a0_0x5d70ad(0x97)+a0_0x5d70ad(0x90),'\x76\x65\x72\x73\x69\x6f\x6e':pkg[a0_0x5d70ad(0x85)],'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':'\x49\x42\x4d\x20\x53\x61\x6c\x65\x73\x66'+a0_0x5d70ad(0x84)+a0_0x5d70ad(0x6b)+a0_0x5d70ad(0x96)+a0_0x5d70ad(0x9a)+a0_0x5d70ad(0x99)+'\x68\x20\x79\x6f\x75\x72\x20\x53\x66\x20'+a0_0x5d70ad(0x8d)+a0_0x5d70ad(0x75)+a0_0x5d70ad(0x73)+a0_0x5d70ad(0x8f)+a0_0x5d70ad(0x6a)+a0_0x5d70ad(0x89)+a0_0x5d70ad(0x8b)+a0_0x5d70ad(0x81)+a0_0x5d70ad(0x74)+a0_0x5d70ad(0x6c)+a0_0x5d70ad(0x95)+a0_0x5d70ad(0x6e)+a0_0x5d70ad(0x94)+'\x20\x73\x63\x72\x69\x70\x74\x73\x20\x61'+a0_0x5d70ad(0x88)+a0_0x5d70ad(0x78)+a0_0x5d70ad(0x92)+a0_0x5d70ad(0x72)+'\x20\x61\x6e\x64\x20\x6f\x74\x68\x65\x72'+'\x20\x74\x61\x73\x6b\x73\x2e'},'\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':a0_0x5d70ad(0x76)+a0_0x5d70ad(0x79)+'\x63\x65\x2d\x63\x6f\x6e\x74\x65\x78\x74'+a0_0x5d70ad(0x87)+a0_0x5d70ad(0x80)+a0_0x5d70ad(0x86)+a0_0x5d70ad(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':'\x68\x74\x74\x70\x73\x3a\x2f\x2f\x69\x62'+a0_0x5d70ad(0x79)+'\x63\x65\x2d\x63\x6f\x6e\x74\x65\x78\x74'+a0_0x5d70ad(0x87)+a0_0x5d70ad(0x80)+a0_0x5d70ad(0x86)+a0_0x5d70ad(0x6f)+'\x73\x73\x75\x65'},'\x73\x74\x72\x69\x63\x74\x53\x73\x6c':process.env.STRICT_SSL!=='\x66\x61\x6c\x73\x65','\x74\x65\x6c\x65\x6d\x65\x74\x72\x79':{'\x65\x6e\x61\x62\x6c\x65\x64':process.env.TELEMETRY_ENABLED!==a0_0x5d70ad(0x70),'\x65\x6e\x64\x70\x6f\x69\x6e\x74':process.env.TELEMETRY_ENDPOINT||a0_0x5d70ad(0x76)+'\x6d\x2d\x73\x61\x6c\x65\x73\x66\x6f\x72'+'\x63\x65\x2d\x63\x6f\x6e\x74\x65\x78\x74'+a0_0x5d70ad(0x71)+'\x2e\x6f\x6e\x72\x65\x6e\x64\x65\x72\x2e'+a0_0x5d70ad(0x8a)+a0_0x5d70ad(0x7f),'\x74\x69\x6d\x65\x6f\x75\x74':Number[a0_0x5d70ad(0x67)](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_0x5bd5f3=a0_0x1305;(function(_0x477e54,_0x516748){const _0x382195=a0_0x1305;const _0x428941=_0x477e54();while(!![]){try{const _0x3a9d09=parseInt(_0x382195(0x12c))/0x1*(parseInt(_0x382195(0x146))/0x2)+-parseInt(_0x382195(0x141))/0x3+parseInt(_0x382195(0x11c))/0x4*(-parseInt(_0x382195(0x115))/0x5)+parseInt(_0x382195(0x11f))/0x6*(-parseInt(_0x382195(0x134))/0x7)+-parseInt(_0x382195(0x12d))/0x8*(parseInt(_0x382195(0x12b))/0x9)+-parseInt(_0x382195(0x145))/0xa*(parseInt(_0x382195(0x13d))/0xb)+parseInt(_0x382195(0x11e))/0xc*(parseInt(_0x382195(0x135))/0xd);if(_0x3a9d09===_0x516748){break;}else{_0x428941['push'](_0x428941['shift']());}}catch(_0x3d68e8){_0x428941['push'](_0x428941['shift']());}}}(a0_0x402a,0x722b9));import{EventEmitter}from'\x6e\x6f\x64\x65\x3a\x65\x76\x65\x6e\x74\x73';import a0_0x1f265c from'\x6e\x6f\x64\x65\x3a\x66\x73';function a0_0x402a(){const _0x1de33f=['\x71\x77\x58\x50\x79\x78\x6d','\x71\x32\x48\x48\x42\x4d\x44\x4c\x69\x67\x72\x4c\x44\x61','\x43\x33\x72\x48\x43\x4e\x71','\x42\x4d\x44\x4c\x43\x59\x62\x48\x44\x63\x61','\x6e\x74\x61\x30\x6e\x5a\x6a\x54\x73\x4b\x31\x63\x43\x4e\x6d','\x6e\x64\x71\x31\x71\x78\x72\x57\x7a\x30\x39\x41','\x6d\x74\x69\x34\x44\x4d\x50\x6a\x41\x32\x50\x34','\x43\x33\x72\x56\x43\x68\x62\x4c\x7a\x61','\x79\x32\x48\x48\x42\x4d\x44\x4c','\x69\x67\x39\x59\x7a\x5a\x4f\x47','\x7a\x73\x62\x64\x74\x65\x4b\x47\x44\x67\x66\x59\x7a\x57','\x6c\x4e\x6e\x4d','\x42\x33\x6a\x4e\x71\x32\x48\x48\x42\x4d\x44\x4c\x7a\x61','\x6d\x4a\x47\x32\x6d\x33\x7a\x67\x7a\x77\x50\x30\x75\x57','\x6e\x64\x79\x58\x6d\x4a\x75\x5a\x77\x4e\x62\x35\x7a\x4b\x48\x4c','\x73\x31\x50\x55\x7a\x31\x75','\x43\x4c\x66\x36\x7a\x30\x53','\x7a\x73\x62\x33\x79\x78\x72\x4a\x41\x67\x76\x59','\x42\x32\x35\x4d\x41\x77\x43\x47\x7a\x4d\x4c\x53\x7a\x71','\x72\x77\x58\x56\x71\x4d\x65','\x7a\x67\x76\x49\x44\x77\x43','\x74\x4d\x38\x47\x44\x67\x66\x59\x7a\x32\x76\x30\x69\x61','\x6d\x5a\x65\x59\x6e\x66\x50\x68\x44\x4c\x76\x4f\x74\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x43\x67\x66\x59\x43\x32\x75','\x45\x4b\x6a\x30\x74\x68\x71','\x6d\x4a\x69\x32\x6e\x5a\x44\x69\x73\x75\x48\x7a\x42\x33\x69','\x79\x32\x48\x4c\x79\x32\x53','\x42\x33\x6a\x4a\x7a\x73\x62\x64\x74\x65\x4b\x47\x79\x57','\x41\x78\x6e\x30\x7a\x77\x35\x4c\x43\x4e\x6d','\x6d\x4a\x4b\x5a\x6f\x74\x62\x74\x41\x31\x76\x4f\x7a\x4e\x43','\x6d\x5a\x69\x34\x6e\x68\x48\x79\x42\x33\x66\x51\x72\x71','\x74\x77\x39\x55\x41\x78\x72\x56\x43\x4d\x4c\x55\x7a\x57','\x44\x67\x66\x59\x7a\x32\x76\x30\x6c\x77\x39\x59\x7a\x57','\x75\x67\x66\x30\x41\x61','\x7a\x77\x6e\x30\x7a\x77\x71\x47\x41\x77\x34\x47\x75\x57','\x76\x67\x44\x35\x44\x68\x4f','\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','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x65\x39\x59\x7a\x57','\x69\x67\x39\x59\x7a\x59\x62\x33\x79\x78\x72\x4a\x41\x61','\x41\x77\x34\x47\x75\x32\x66\x53\x7a\x78\x6e\x4d\x42\x57','\x7a\x77\x31\x50\x44\x61','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x4d\x76\x48\x7a\x61','\x7a\x78\x71\x47\x42\x33\x6a\x4e\x69\x67\x6e\x4f\x79\x71','\x69\x63\x48\x4a\x44\x78\x6a\x59\x7a\x77\x35\x30\x6f\x47','\x75\x33\x72\x56\x43\x68\x62\x50\x42\x4d\x43\x47\x75\x57','\x41\x78\x6e\x78\x79\x78\x72\x4a\x41\x67\x4c\x55\x7a\x57','\x43\x33\x72\x48\x43\x4e\x72\x4c\x7a\x61','\x76\x4e\x76\x55\x76\x66\x4b','\x6d\x74\x6d\x31\x76\x33\x72\x53\x44\x4e\x6e\x79','\x44\x32\x66\x30\x79\x32\x47','\x42\x4d\x7a\x50\x7a\x59\x62\x4d\x41\x77\x58\x4c','\x43\x4d\x76\x54\x42\x33\x7a\x4c\x71\x77\x58\x53\x74\x61','\x42\x33\x6a\x4e\x69\x67\x7a\x56\x44\x77\x35\x4b\x69\x61','\x43\x4d\x6e\x4c\x69\x65\x6e\x6d\x73\x73\x62\x4a\x42\x57','\x43\x33\x72\x56\x43\x61','\x6f\x64\x65\x59\x6d\x74\x6a\x55\x44\x68\x66\x49\x75\x65\x34','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x32\x76\x30\x44\x61','\x6e\x4a\x6d\x32\x42\x30\x39\x58\x43\x68\x48\x72','\x6f\x74\x43\x5a\x6d\x4b\x76\x58\x44\x4d\x50\x6a\x43\x61','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x72\x4d\x4c\x53\x7a\x71','\x7a\x4d\x4c\x53\x7a\x76\x44\x48\x44\x67\x6e\x4f\x7a\x71','\x71\x33\x48\x32\x72\x30\x4b','\x43\x4d\x76\x48\x7a\x65\x7a\x50\x42\x67\x76\x74\x45\x71','\x41\x77\x35\x4e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x71\x30\x58\x6a\x69\x68\x72\x48\x43\x4d\x44\x4c\x44\x61','\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x4d\x39\x59\x79\x57'];a0_0x402a=function(){return _0x1de33f;};return a0_0x402a();}function a0_0x1305(_0x42a9d8,_0x42cb83){_0x42a9d8=_0x42a9d8-0x108;const _0x402ae4=a0_0x402a();let _0x13052a=_0x402ae4[_0x42a9d8];if(a0_0x1305['\x63\x46\x70\x71\x4e\x73']===undefined){var _0x1cf17d=function(_0x5b8b50){const _0x40ad3b='\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 _0x15428b='';let _0x16ce79='';for(let _0x2a9e78=0x0,_0x29a62d,_0x3260c2,_0x37149a=0x0;_0x3260c2=_0x5b8b50['\x63\x68\x61\x72\x41\x74'](_0x37149a++);~_0x3260c2&&(_0x29a62d=_0x2a9e78%0x4?_0x29a62d*0x40+_0x3260c2:_0x3260c2,_0x2a9e78++%0x4)?_0x15428b+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x29a62d>>(-0x2*_0x2a9e78&0x6)):0x0){_0x3260c2=_0x40ad3b['\x69\x6e\x64\x65\x78\x4f\x66'](_0x3260c2);}for(let _0x30cca1=0x0,_0x12309f=_0x15428b['\x6c\x65\x6e\x67\x74\x68'];_0x30cca1<_0x12309f;_0x30cca1++){_0x16ce79+='\x25'+('\x30\x30'+_0x15428b['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x30cca1)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x16ce79);};a0_0x1305['\x4d\x50\x67\x69\x4c\x43']=_0x1cf17d;a0_0x1305['\x47\x51\x6d\x57\x50\x41']={};a0_0x1305['\x63\x46\x70\x71\x4e\x73']=!![];}const _0x3667b0=_0x402ae4[0x0];const _0xf21a0f=_0x42a9d8+_0x3667b0;const _0x2b72eb=a0_0x1305['\x47\x51\x6d\x57\x50\x41'][_0xf21a0f];if(!_0x2b72eb){_0x13052a=a0_0x1305['\x4d\x50\x67\x69\x4c\x43'](_0x13052a);a0_0x1305['\x47\x51\x6d\x57\x50\x41'][_0xf21a0f]=_0x13052a;}else{_0x13052a=_0x2b72eb;}return _0x13052a;}import a0_0x223467 from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import a0_0x1680f7 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 _0x291d45=a0_0x1305;super();this[_0x291d45(0x120)+'\x50\x61\x74\x68']=null;this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+'\x41\x6c\x69\x61\x73']=null;this[_0x291d45(0x121)+'\x72']=null;this[_0x291d45(0x112)]=![];this['\x64\x65\x62\x6f\x75\x6e\x63\x65\x4d\x73']=0x1388;}async[a0_0x5bd5f3(0x129)](_0x461320,_0x1bb00c=null){const _0x276804=a0_0x1305;const _0x562c69={'\x54\x67\x79\x74\x7a':'\x63\x6f\x6e\x66\x69\x67\x2e\x6a\x73\x6f'+'\x6e','\x7a\x42\x74\x4c\x74':_0x276804(0x13e)};try{await this[_0x276804(0x11b)]();this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x276804(0x149)]=a0_0x223467['\x6a\x6f\x69\x6e'](process['\x63\x77\x64'](),_0x276804(0x132),_0x562c69[_0x276804(0x14b)]);this[_0x276804(0x10a)+_0x276804(0x127)]=_0x1bb00c;if(this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']||!this[_0x276804(0x10a)+_0x276804(0x127)]||!a0_0x1f265c['\x65\x78\x69\x73\x74\x73\x53\x79\x6e\x63'](this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x276804(0x149)])){return;}this['\x6f\x6e'](_0x276804(0x113),_0x46f0d1=>logger[_0x276804(0x13b)](_0x276804(0x147)+_0x276804(0x126)+_0x276804(0x131)+_0x276804(0x10f)+_0x276804(0x12a)+this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x276804(0x149)]+(_0x276804(0x110)+'\x20')+_0x46f0d1+'\x29'));this['\x6f\x6e'](_0x276804(0x133),_0x461320);this['\x6f\x6e'](_0x562c69[_0x276804(0x140)],_0x5f6b69=>logger['\x65\x72\x72\x6f\x72'](_0x5f6b69,_0x276804(0x109)+_0x276804(0x108)+_0x276804(0x125)+_0x276804(0x10b)+'\x65\x72'));this[_0x276804(0x121)+'\x72']=a0_0x1680f7[_0x276804(0x116)](this[_0x276804(0x120)+'\x50\x61\x74\x68'],{'\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['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']['\x6f\x6e'](_0x276804(0x12f),()=>this['\x63\x68\x65\x63\x6b']());this[_0x276804(0x121)+'\x72']['\x6f\x6e'](_0x276804(0x13e),_0x92a204=>this['\x65\x6d\x69\x74']('\x65\x72\x72\x6f\x72',_0x92a204));this[_0x276804(0x112)]=!![];this[_0x276804(0x10d)](_0x276804(0x113),this[_0x276804(0x10a)+_0x276804(0x127)]);}catch(_0x20fc17){logger['\x65\x72\x72\x6f\x72'](_0x20fc17,_0x276804(0x11d)+'\x69\x6e\x67\x20\x75\x70\x20\x66\x69\x6c'+_0x276804(0x138));}}async[a0_0x5bd5f3(0x11b)](){const _0xe7a47f=a0_0x1305;const _0x4b9790={'\x65\x44\x4a\x79\x67':_0xe7a47f(0x12e)};if(!this[_0xe7a47f(0x112)]){return;}logger[_0xe7a47f(0x13b)](_0xe7a47f(0x111)+_0xe7a47f(0x108)+_0xe7a47f(0x125)+_0xe7a47f(0x10b)+'\x65\x72');if(this[_0xe7a47f(0x121)+'\x72']){await this[_0xe7a47f(0x121)+'\x72']['\x63\x6c\x6f\x73\x65']();this[_0xe7a47f(0x121)+'\x72']=null;}this[_0xe7a47f(0x118)+_0xe7a47f(0x144)]();this[_0xe7a47f(0x112)]=![];this['\x65\x6d\x69\x74'](_0x4b9790['\x65\x44\x4a\x79\x67']);}[a0_0x5bd5f3(0x142)](){const _0x5dba45=a0_0x1305;const _0x98568a={'\x45\x6c\x6f\x42\x61':function(_0x339a10,_0x326475){return _0x339a10!==_0x326475;},'\x72\x51\x7a\x67\x4b':'\x71\x6b\x46\x42\x4f','\x43\x78\x76\x47\x49':_0x5dba45(0x136),'\x56\x75\x6e\x54\x59':_0x5dba45(0x133),'\x6d\x43\x4a\x65\x4c':_0x5dba45(0x10e)+'\x69\x6e\x67\x20\x53\x61\x6c\x65\x73\x66'+_0x5dba45(0x143)+_0x5dba45(0x139)};try{if(_0x98568a[_0x5dba45(0x13a)](_0x98568a[_0x5dba45(0x137)],_0x98568a[_0x5dba45(0x122)])){const _0x20bc18=a0_0x1f265c[_0x5dba45(0x123)+'\x6e\x63'](this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x5dba45(0x149)]);const _0x330307=JSON[_0x5dba45(0x13f)](_0x20bc18);const _0xaa9753=_0x330307[_0x5dba45(0x148)]||null;if(!_0xaa9753){logger[_0x5dba45(0x13b)](_0x5dba45(0x13c)+_0x5dba45(0x119)+_0x5dba45(0x10c)+_0x5dba45(0x11a)+_0x5dba45(0x117));return;}if(_0xaa9753!==this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x5dba45(0x127)]){if('\x66\x50\x62\x46\x69'!=='\x66\x50\x62\x46\x69'){_0x4d93a4[_0x5dba45(0x13e)](_0x394727,'\x45\x72\x72\x6f\x72\x20\x72\x65\x61\x64'+_0x5dba45(0x124)+_0x5dba45(0x143)+_0x5dba45(0x139));}else{const _0x5c77fd=this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x5dba45(0x127)];logger['\x69\x6e\x66\x6f'](_0x5dba45(0x128)+_0x5dba45(0x14a)+_0x5dba45(0x108)+_0x5dba45(0x125)+_0x5dba45(0x130)+_0x5c77fd+'\x20\x2d\x3e\x20'+_0xaa9753);this[_0x5dba45(0x10a)+_0x5dba45(0x127)]=_0xaa9753;this[_0x5dba45(0x10d)](_0x98568a[_0x5dba45(0x114)],{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x5c77fd,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0xaa9753});}}}else{_0x2a9e78[_0x5dba45(0x13e)](_0x29a62d,_0x5dba45(0x11d)+'\x69\x6e\x67\x20\x75\x70\x20\x66\x69\x6c'+_0x5dba45(0x138));}}catch(_0x5bc130){logger[_0x5dba45(0x13e)](_0x5bc130,_0x98568a['\x6d\x43\x4a\x65\x4c']);}}}const targetOrgWatcher=new TargetOrgWatcher();export default targetOrgWatcher;
|
|
1
|
+
const a0_0x5180bf=a0_0x56fa;(function(_0x506f67,_0x3edf51){const _0x4efa3e=a0_0x56fa;const _0x37ae47=_0x506f67();while(!![]){try{const _0x375a38=parseInt(_0x4efa3e(0x21b))/0x1*(-parseInt(_0x4efa3e(0x222))/0x2)+parseInt(_0x4efa3e(0x213))/0x3*(parseInt(_0x4efa3e(0x1f9))/0x4)+-parseInt(_0x4efa3e(0x220))/0x5+-parseInt(_0x4efa3e(0x1f4))/0x6*(parseInt(_0x4efa3e(0x1ef))/0x7)+-parseInt(_0x4efa3e(0x207))/0x8+-parseInt(_0x4efa3e(0x223))/0x9*(parseInt(_0x4efa3e(0x21e))/0xa)+-parseInt(_0x4efa3e(0x221))/0xb*(-parseInt(_0x4efa3e(0x20f))/0xc);if(_0x375a38===_0x3edf51){break;}else{_0x37ae47['push'](_0x37ae47['shift']());}}catch(_0x104aff){_0x37ae47['push'](_0x37ae47['shift']());}}}(a0_0x28d5,0x8e8a6));import{EventEmitter}from'\x6e\x6f\x64\x65\x3a\x65\x76\x65\x6e\x74\x73';function a0_0x56fa(_0x2a93a2,_0x3215cb){_0x2a93a2=_0x2a93a2-0x1e1;const _0x28d55d=a0_0x28d5();let _0x56faae=_0x28d55d[_0x2a93a2];if(a0_0x56fa['\x6d\x68\x41\x6b\x6c\x67']===undefined){var _0x5c52f2=function(_0x1ae055){const _0x542dea='\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 _0x3d9766='';let _0x94fdfe='';for(let _0x3c1848=0x0,_0x934252,_0x325f22,_0x871059=0x0;_0x325f22=_0x1ae055['\x63\x68\x61\x72\x41\x74'](_0x871059++);~_0x325f22&&(_0x934252=_0x3c1848%0x4?_0x934252*0x40+_0x325f22:_0x325f22,_0x3c1848++%0x4)?_0x3d9766+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x934252>>(-0x2*_0x3c1848&0x6)):0x0){_0x325f22=_0x542dea['\x69\x6e\x64\x65\x78\x4f\x66'](_0x325f22);}for(let _0x17ad1c=0x0,_0xe6d88=_0x3d9766['\x6c\x65\x6e\x67\x74\x68'];_0x17ad1c<_0xe6d88;_0x17ad1c++){_0x94fdfe+='\x25'+('\x30\x30'+_0x3d9766['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x17ad1c)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x94fdfe);};a0_0x56fa['\x61\x6f\x48\x59\x48\x61']=_0x5c52f2;a0_0x56fa['\x45\x5a\x4f\x6d\x67\x4f']={};a0_0x56fa['\x6d\x68\x41\x6b\x6c\x67']=!![];}const _0x48f8c3=_0x28d55d[0x0];const _0x34dc65=_0x2a93a2+_0x48f8c3;const _0x9c630a=a0_0x56fa['\x45\x5a\x4f\x6d\x67\x4f'][_0x34dc65];if(!_0x9c630a){_0x56faae=a0_0x56fa['\x61\x6f\x48\x59\x48\x61'](_0x56faae);a0_0x56fa['\x45\x5a\x4f\x6d\x67\x4f'][_0x34dc65]=_0x56faae;}else{_0x56faae=_0x9c630a;}return _0x56faae;}import a0_0x2e5e54 from'\x6e\x6f\x64\x65\x3a\x66\x73';import a0_0x598628 from'\x6e\x6f\x64\x65\x3a\x70\x61\x74\x68';import a0_0x1da35a from'\x63\x68\x6f\x6b\x69\x64\x61\x72';import{createModuleLogger}from'\x2e\x2f\x6c\x6f\x67\x67\x65\x72\x2e\x6a\x73';function a0_0x28d5(){const _0x56dd90=['\x76\x68\x48\x6c\x76\x75\x69','\x79\x33\x76\x59\x43\x4d\x76\x55\x44\x65\x39\x59\x7a\x57','\x41\x77\x35\x4d\x42\x57','\x7a\x67\x76\x49\x44\x77\x43','\x43\x4d\x6e\x4c\x69\x65\x6e\x6d\x73\x73\x62\x4a\x42\x57','\x69\x67\x39\x59\x7a\x5a\x4f\x47','\x7a\x73\x62\x64\x74\x65\x4b\x47\x44\x67\x66\x59\x7a\x57','\x6d\x74\x79\x58\x6d\x4a\x6d\x5a\x6d\x76\x50\x58\x73\x67\x58\x59\x42\x61','\x7a\x4d\x4c\x53\x7a\x76\x44\x48\x44\x67\x6e\x4f\x7a\x71','\x75\x33\x72\x56\x43\x68\x62\x50\x42\x4d\x43\x47\x75\x57','\x7a\x78\x6a\x59\x42\x33\x69','\x43\x33\x72\x56\x43\x61','\x6e\x4e\x4c\x74\x43\x65\x4c\x53\x77\x71','\x41\x77\x35\x4e\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x47','\x42\x33\x6a\x4e\x71\x32\x48\x48\x42\x4d\x44\x4c\x7a\x61','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x72\x4d\x4c\x53\x7a\x71','\x43\x33\x72\x48\x43\x4e\x71','\x6e\x66\x4c\x77\x77\x68\x50\x56\x76\x57','\x41\x78\x6e\x78\x79\x78\x72\x4a\x41\x67\x4c\x55\x7a\x57','\x69\x67\x39\x59\x7a\x59\x62\x33\x79\x78\x72\x4a\x41\x61','\x75\x77\x50\x72\x71\x75\x75','\x43\x67\x66\x59\x43\x32\x75','\x69\x63\x48\x4a\x44\x78\x6a\x59\x7a\x77\x35\x30\x6f\x47','\x72\x78\x6a\x59\x42\x33\x69\x47\x43\x4d\x76\x48\x7a\x61','\x43\x33\x72\x48\x43\x4e\x72\x4c\x7a\x61','\x69\x63\x30\x2b\x69\x61','\x6e\x68\x57\x57\x46\x64\x76\x38\x6d\x78\x57\x5a\x46\x61','\x42\x32\x35\x4d\x41\x77\x43\x47\x7a\x4d\x4c\x53\x7a\x71','\x72\x78\x6a\x59\x42\x33\x69\x47\x41\x77\x34\x47\x75\x57','\x43\x33\x72\x56\x43\x68\x62\x4c\x7a\x61','\x7a\x77\x31\x50\x44\x61','\x6f\x64\x43\x33\x6d\x5a\x47\x35\x6e\x4e\x4c\x63\x42\x32\x44\x72\x76\x71','\x71\x30\x58\x6a\x69\x68\x72\x48\x43\x4d\x44\x4c\x44\x61','\x7a\x78\x48\x50\x43\x33\x72\x5a\x75\x33\x4c\x55\x79\x57','\x42\x33\x6a\x4e\x69\x67\x7a\x56\x44\x77\x35\x4b\x69\x61','\x69\x66\x6e\x48\x42\x67\x76\x5a\x7a\x4d\x39\x59\x79\x57','\x41\x78\x6e\x30\x7a\x77\x35\x4c\x43\x4e\x6d','\x7a\x77\x6e\x30\x7a\x77\x71\x47\x41\x77\x34\x47\x75\x57','\x7a\x67\x76\x49\x42\x33\x76\x55\x79\x32\x76\x6e\x43\x57','\x6e\x4a\x61\x34\x6e\x65\x6a\x67\x76\x30\x48\x62\x71\x47','\x71\x32\x48\x48\x42\x4d\x44\x4c\x69\x67\x72\x4c\x44\x61','\x76\x4b\x31\x33\x71\x30\x53','\x7a\x73\x62\x33\x79\x78\x72\x4a\x41\x67\x76\x59','\x6d\x4a\x43\x33\x6e\x74\x6d\x32\x6f\x76\x6e\x67\x76\x4c\x44\x64\x79\x71','\x7a\x67\x76\x67\x72\x31\x4b','\x75\x67\x66\x30\x41\x61','\x43\x4d\x76\x48\x7a\x65\x7a\x50\x42\x67\x76\x74\x45\x71','\x71\x77\x58\x50\x79\x78\x6d','\x41\x77\x35\x4e\x69\x68\x76\x57\x69\x67\x7a\x50\x42\x61','\x74\x4d\x38\x47\x44\x67\x66\x59\x7a\x32\x76\x30\x69\x61','\x73\x4d\x39\x63\x41\x4e\x47','\x6f\x74\x47\x59\x6e\x64\x66\x48\x43\x30\x7a\x49\x44\x4b\x47','\x41\x77\x34\x47\x75\x32\x66\x53\x7a\x78\x6e\x4d\x42\x57','\x42\x4d\x7a\x50\x7a\x59\x62\x4d\x41\x77\x58\x4c','\x6d\x74\x71\x58\x6d\x4a\x62\x76\x45\x4b\x7a\x7a\x43\x4d\x47','\x43\x4d\x76\x54\x42\x33\x7a\x4c\x71\x77\x58\x53\x74\x61','\x6d\x5a\x4b\x33\x6d\x64\x6d\x57\x7a\x65\x50\x32\x45\x77\x6a\x63','\x6d\x5a\x4b\x57\x6f\x74\x72\x73\x75\x33\x44\x6f\x74\x75\x47','\x6e\x4e\x7a\x35\x43\x4b\x6a\x72\x7a\x47','\x6d\x4a\x47\x58\x6e\x30\x6e\x58\x43\x76\x7a\x69\x43\x61','\x79\x32\x48\x48\x42\x4d\x44\x4c','\x43\x33\x62\x53\x41\x78\x71','\x44\x67\x66\x59\x7a\x32\x76\x30\x6c\x77\x39\x59\x7a\x57','\x79\x32\x58\x56\x43\x32\x75','\x79\x77\x58\x4c\x43\x32\x7a\x56\x43\x4d\x6e\x4c\x69\x61','\x79\x32\x39\x55\x7a\x4d\x4c\x4e\x6c\x4d\x50\x5a\x42\x57','\x7a\x78\x71\x47\x42\x33\x6a\x4e\x69\x67\x6e\x4f\x79\x71','\x75\x4b\x58\x6e\x73\x30\x30','\x44\x32\x66\x30\x79\x32\x47','\x6c\x4e\x6e\x4d'];a0_0x28d5=function(){return _0x56dd90;};return a0_0x28d5();}const logger=createModuleLogger(import.meta.url);class TargetOrgWatcher extends EventEmitter{constructor(){const _0x52e13f=a0_0x56fa;const _0x1d5be9=(_0x52e13f(0x202)+'\x32')[_0x52e13f(0x225)]('\x7c');let _0x31520a=0x0;while(!![]){switch(_0x1d5be9[_0x31520a++]){case'\x30':this[_0x52e13f(0x1f7)+_0x52e13f(0x215)]=null;continue;case'\x31':this[_0x52e13f(0x1f0)+'\x72']=null;continue;case'\x32':this[_0x52e13f(0x20e)]=0x1388;continue;case'\x33':this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']=![];continue;case'\x34':super();continue;case'\x35':this[_0x52e13f(0x1e9)+_0x52e13f(0x217)]=null;continue;}break;}}async[a0_0x5180bf(0x1f8)](_0xa2ca6d,_0x424c15=null){const _0x5e7441=a0_0x56fa;try{await this[_0x5e7441(0x1f3)]();this['\x63\x6f\x6e\x66\x69\x67\x46\x69\x6c\x65'+_0x5e7441(0x215)]=a0_0x598628['\x6a\x6f\x69\x6e'](process['\x63\x77\x64'](),_0x5e7441(0x1e7),_0x5e7441(0x1e3)+'\x6e');this[_0x5e7441(0x1e9)+_0x5e7441(0x217)]=_0x424c15;if(this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']||!this[_0x5e7441(0x1e9)+_0x5e7441(0x217)]||!a0_0x2e5e54[_0x5e7441(0x209)](this[_0x5e7441(0x1f7)+_0x5e7441(0x215)])){if(_0x5e7441(0x214)!==_0x5e7441(0x1e5)){return;}else{const _0x475fec=this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x5e7441(0x217)];_0x97d1c5[_0x5e7441(0x1ea)](_0x5e7441(0x210)+_0x5e7441(0x20d)+_0x5e7441(0x1e2)+_0x5e7441(0x208)+_0x5e7441(0x1ed)+_0x475fec+_0x5e7441(0x201)+_0x6549b8);this['\x63\x75\x72\x72\x65\x6e\x74\x4f\x72\x67'+_0x5e7441(0x217)]=_0x58221a;this[_0x5e7441(0x206)](_0x5e7441(0x1f6),{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x475fec,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x10cf67});}}this['\x6f\x6e']('\x73\x74\x61\x72\x74\x65\x64',_0x2b0572=>logger['\x64\x65\x62\x75\x67']('\x4d\x6f\x6e\x69\x74\x6f\x72\x69\x6e\x67'+_0x5e7441(0x20b)+_0x5e7441(0x1ee)+_0x5e7441(0x1e4)+'\x6e\x67\x65\x73\x20\x61\x74\x20'+this[_0x5e7441(0x1f7)+_0x5e7441(0x215)]+(_0x5e7441(0x1fe)+'\x20')+_0x2b0572+'\x29'));this['\x6f\x6e'](_0x5e7441(0x1f6),_0xa2ca6d);this['\x6f\x6e'](_0x5e7441(0x1f2),_0x3d1f8a=>logger[_0x5e7441(0x1f2)](_0x3d1f8a,_0x5e7441(0x204)+'\x61\x6c\x65\x73\x66\x6f\x72\x63\x65\x20'+_0x5e7441(0x208)+_0x5e7441(0x1fb)+'\x65\x72'));this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']=a0_0x1da35a[_0x5e7441(0x1e6)](this[_0x5e7441(0x1f7)+_0x5e7441(0x215)],{'\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[_0x5e7441(0x20e)]}});this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']['\x6f\x6e'](_0x5e7441(0x224),()=>this['\x63\x68\x65\x63\x6b']());this[_0x5e7441(0x1f0)+'\x72']['\x6f\x6e']('\x65\x72\x72\x6f\x72',_0x40e9a7=>this[_0x5e7441(0x206)](_0x5e7441(0x1f2),_0x40e9a7));this[_0x5e7441(0x1fa)]=!![];this[_0x5e7441(0x206)](_0x5e7441(0x200),this[_0x5e7441(0x1e9)+_0x5e7441(0x217)]);}catch(_0x222e49){logger[_0x5e7441(0x1f2)](_0x222e49,'\x45\x72\x72\x6f\x72\x20\x73\x65\x74\x74'+_0x5e7441(0x218)+_0x5e7441(0x212));}}async[a0_0x5180bf(0x1f3)](){const _0x174e27=a0_0x56fa;const _0x507b27={'\x54\x78\x4b\x55\x42':_0x174e27(0x21a)};if(!this[_0x174e27(0x1fa)]){return;}logger['\x64\x65\x62\x75\x67'](_0x174e27(0x1f1)+_0x174e27(0x1e2)+_0x174e27(0x208)+_0x174e27(0x1fb)+'\x65\x72');if(this['\x66\x69\x6c\x65\x57\x61\x74\x63\x68\x65'+'\x72']){if(_0x507b27[_0x174e27(0x1e8)]!==_0x174e27(0x211)){await this[_0x174e27(0x1f0)+'\x72'][_0x174e27(0x1e1)]();this[_0x174e27(0x1f0)+'\x72']=null;}else{return;}}this[_0x174e27(0x21f)+_0x174e27(0x20c)]();this['\x69\x73\x57\x61\x74\x63\x68\x69\x6e\x67']=![];this[_0x174e27(0x206)](_0x174e27(0x205));}['\x63\x68\x65\x63\x6b'](){const _0x19e320=a0_0x56fa;const _0x4ec627={'\x51\x6a\x51\x41\x45':_0x19e320(0x219)+_0x19e320(0x20a)+_0x19e320(0x21c)+_0x19e320(0x1ec)+_0x19e320(0x21d),'\x46\x4d\x77\x44\x4c':'\x70\x62\x63\x46\x6e','\x6e\x67\x79\x65\x6a':_0x19e320(0x1ff)+_0x19e320(0x1f5)+'\x6f\x72\x63\x65\x20\x43\x4c\x49\x20\x63'+_0x19e320(0x203)};try{const _0x2f2410=a0_0x2e5e54[_0x19e320(0x216)+'\x6e\x63'](this[_0x19e320(0x1f7)+_0x19e320(0x215)]);const _0x27e3ed=JSON[_0x19e320(0x1fd)](_0x2f2410);const _0x2e7665=_0x27e3ed[_0x19e320(0x226)]||null;if(!_0x2e7665){logger[_0x19e320(0x1eb)](_0x4ec627[_0x19e320(0x1fc)]);return;}if(_0x2e7665!==this[_0x19e320(0x1e9)+_0x19e320(0x217)]){const _0x1a7eb0=this[_0x19e320(0x1e9)+_0x19e320(0x217)];logger[_0x19e320(0x1ea)](_0x19e320(0x210)+_0x19e320(0x20d)+_0x19e320(0x1e2)+'\x43\x4c\x49\x20\x74\x61\x72\x67\x65\x74'+_0x19e320(0x1ed)+_0x1a7eb0+_0x19e320(0x201)+_0x2e7665);this[_0x19e320(0x1e9)+_0x19e320(0x217)]=_0x2e7665;this['\x65\x6d\x69\x74'](_0x19e320(0x1f6),{'\x6f\x6c\x64\x56\x61\x6c\x75\x65':_0x1a7eb0,'\x6e\x65\x77\x56\x61\x6c\x75\x65':_0x2e7665});}}catch(_0x3c790b){if('\x58\x6b\x62\x63\x4c'===_0x4ec627['\x46\x4d\x77\x44\x4c']){_0x1d13f7[_0x19e320(0x1eb)]('\x4e\x6f\x20\x74\x61\x72\x67\x65\x74\x20'+_0x19e320(0x20a)+_0x19e320(0x21c)+_0x19e320(0x1ec)+_0x19e320(0x21d));return;}else{logger['\x65\x72\x72\x6f\x72'](_0x3c790b,_0x4ec627['\x6e\x67\x79\x65\x6a']);}}}}const targetOrgWatcher=new TargetOrgWatcher();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_0x428ceb from'node:fs';import a0_0x3734a5 from'node:path';import{chromium}from'playwright';import a0_0x26cd17 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 _0x5109f0=chromium['executablePath']();_playwrightBrowsersAvailable=a0_0x428ceb['existsSync'](_0x5109f0);}catch{_playwrightBrowsersAvailable=![];}return _playwrightBrowsersAvailable;}async function installPlaywrightBrowsers(){try{logger['debug']('Installing\x20Playwright\x20browsers...');const _0x162d31=new URL('../../node_modules/.bin/playwright',import.meta.url)['pathname'];const _0x161258=a0_0x428ceb['existsSync'](_0x162d31)?'\x22'+_0x162d31+'\x22\x20install\x20chromium':'npx\x20playwright\x20install\x20chromium';const {stderr:_0x34d99a}=await execAsync(_0x161258);if(_0x34d99a&&!_0x34d99a['includes']('chromium')){logger['warn']('Playwright\x20installation\x20stderr:',_0x34d99a);}logger['debug']('Playwright\x20browsers\x20installed\x20successfully');return!![];}catch(_0x259315){logger['error']('Failed\x20to\x20install\x20Playwright\x20browsers:',_0x259315['message']);throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}}async function listAllLinks(_0x736a2){try{const _0x2578e1=await _0x736a2['locator']('a')['all']();if(_0x2578e1['length']===0x0){logger['debug']('No\x20links\x20found\x20on\x20page');return;}logger['debug']('Found\x20'+_0x2578e1['length']+'\x20links\x20on\x20page:');for(let _0x55db3b=0x0;_0x55db3b<Math['min'](_0x2578e1['length'],0x14);_0x55db3b++){const _0x4512df=await _0x2578e1[_0x55db3b]['getAttribute']('href');const text=await _0x2578e1[_0x55db3b]['textContent']();logger['debug']('\x20\x20['+_0x55db3b+']\x20href=\x22'+_0x4512df+'\x22\x20text=\x22'+text?.['trim']()['slice'](0x0,0x32)+'\x22');}if(_0x2578e1['length']>0x14){logger['debug']('\x20\x20...\x20and\x20'+(_0x2578e1['length']-0x14)+'\x20more\x20links');}}catch(_0x149105){logger['debug']('Error\x20listing\x20links:\x20'+_0x149105['message']);}}async function waitForOrgSetupAuditFrame(_0x249950,_0xd71af4=0xea60){const _0x31e2ea=Date['now']();function _0x59856c(){let _0x371702;try{_0x371702=_0x249950['frames']();}catch(_0x5b01d6){logger['debug']('[H2]\x20tryMatch\x20page.frames:\x20'+_0x5b01d6['message']);return null;}for(const _0x534565 of _0x371702){try{const _0x36719e=_0x534565['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x36719e)){return _0x534565;}}catch{}}return null;}const _0x4212f6=_0x59856c();if(_0x4212f6){let _0xcaecc5='(url\x20unavailable)';try{_0xcaecc5=_0x4212f6['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x31e2ea)+'ms:\x20'+_0xcaecc5['slice'](0x0,0x8c));return _0x4212f6;}let _0x2ca628=![];let _0x1a2376;return new Promise(_0x2c63ae=>{const _0x5a0296=()=>{if(_0x1a2376){clearInterval(_0x1a2376);}_0x249950['off']('framenavigated',_0xa7022);_0x249950['off']('close',_0x192f5f);};function _0x192f5f(){logger['debug']('[H2]\x20page\x20closed\x20while\x20waiting\x20for\x20orgsetupaudit\x20frame');_0xb244c3(null);}function _0xb244c3(_0x5e2fcd){if(_0x2ca628){return;}_0x2ca628=!![];_0x5a0296();if(_0x5e2fcd){let _0x1d77d0='(url\x20unavailable)';try{_0x1d77d0=_0x5e2fcd['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x31e2ea)+'ms:\x20'+_0x1d77d0['slice'](0x0,0x8c));}else{logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20not\x20found\x20within\x20'+_0xd71af4+'ms');}_0x2c63ae(_0x5e2fcd);}function _0xa7022(){const _0x1c6806=_0x59856c();if(_0x1c6806){_0xb244c3(_0x1c6806);}}_0x249950['on']('framenavigated',_0xa7022);_0x249950['on']('close',_0x192f5f);_0x1a2376=setInterval(()=>{if(_0x2ca628){return;}const _0x28a1ad=_0x59856c();if(_0x28a1ad){_0xb244c3(_0x28a1ad);return;}if(Date['now']()-_0x31e2ea>=_0xd71af4){_0xb244c3(null);}},FRAME_WAIT_FALLBACK_POLL_MS);});}async function waitForDownloadLinkAttached(_0x23aec3,_0xb33495=0x61a8){if(!_0x23aec3){return;}const _0x3ac497=Date['now']();const _0x251a2b=['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 _0x3a078e of _0x251a2b){const _0x3c2e57=Date['now']()-_0x3ac497;const _0x2cb775=_0xb33495-_0x3c2e57;if(_0x2cb775<0x190){break;}try{await _0x23aec3['locator'](_0x3a078e)['first']()['waitFor']({'state':'attached','timeout':_0x2cb775});logger['debug']('[H2]\x20Download\x20anchor\x20ready\x20('+_0x3a078e+')\x20after\x20'+(Date['now']()-_0x3ac497)+'ms');return;}catch{}}logger['debug']('[H2]\x20Download\x20anchor\x20not\x20attached\x20within\x20wait\x20(continuing\x20to\x20locator\x20search)');}async function firstVisibleMatchingAnchor(_0x14ee07,_0x126a12){const _0x3bf293=_0x14ee07['locator'](_0x126a12);let _0x3c50d0;try{_0x3c50d0=await _0x3bf293['count']();}catch(_0xe77be8){logger['debug']('firstVisibleMatchingAnchor\x20count:\x20'+_0xe77be8['message']);return null;}const _0x187385=Math['min'](_0x3c50d0,MAX_VISIBLE_ANCHOR_CANDIDATES);if(_0x3c50d0>MAX_VISIBLE_ANCHOR_CANDIDATES){logger['debug']('firstVisibleMatchingAnchor:\x20checking\x20first\x20'+_0x187385+'\x20of\x20'+_0x3c50d0+'\x20matches\x20for\x20'+_0x126a12['slice'](0x0,0x28));}for(let _0x186cd8=0x0;_0x186cd8<_0x187385;_0x186cd8++){const _0x1fff83=_0x3bf293['nth'](_0x186cd8);try{await _0x1fff83['waitFor']({'state':'visible','timeout':VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS});return _0x1fff83;}catch{}}return null;}export function buildFrontdoorUrl(_0xdda5a1,_0x3bc1d8,_0x56066d){const _0x25ab90=_0xdda5a1['replace'](/\/+$/,'');return _0x25ab90+'/secur/frontdoor.jsp?sid='+encodeURIComponent(_0x3bc1d8)+'&retURL='+encodeURIComponent(_0x56066d);}export function isSalesforceLoginPage(_0x131b3e,_0x2268a0){return _0x131b3e==='Login\x20|\x20Salesforce'||typeof _0x2268a0==='string'&&/[&?]ec=302(?:&|$).*startURL=|[&?]startURL=.*[&?]ec=302(?:&|$)/['test'](_0x2268a0);}async function findDownloadLocator(_0x54d9fd,_0x2daa62){const _0x187ad5=async _0x544f94=>{for(const _0x55281b of DOWNLOAD_LINK_SELECTORS){try{const _0x4ddbfd=await firstVisibleMatchingAnchor(_0x544f94,_0x55281b);if(_0x4ddbfd){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x55281b);return _0x4ddbfd;}}catch(_0x3f8ee5){logger['debug']('Selector\x20'+_0x55281b+':\x20'+_0x3f8ee5['message']);}}return null;};if(_0x2daa62){const _0x4d040c=await _0x187ad5(_0x2daa62);if(_0x4d040c){return _0x4d040c;}}for(const _0x45697a of _0x54d9fd['frames']()){try{const _0x1a1859=_0x45697a['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x1a1859)){const _0x4a32c7=await _0x187ad5(_0x45697a);if(_0x4a32c7){return _0x4a32c7;}}}catch{continue;}}const _0x3c2b10=['iframe[src*=\x22SecurityEvents\x22]','iframe'];for(const _0x47eb5d of _0x3c2b10){try{const _0x5ef118=_0x54d9fd['frameLocator'](_0x47eb5d)['first']();for(const _0x432627 of DOWNLOAD_LINK_SELECTORS){try{const _0x40426e=await firstVisibleMatchingAnchor(_0x5ef118,_0x432627);if(_0x40426e){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x47eb5d+'\x20+\x20'+_0x432627);return _0x40426e;}}catch{}}}catch{}}const _0xa93ef0=[_0x54d9fd,..._0x54d9fd['frames']()];for(const _0x313ce8 of FALLBACK_LINK_SELECTORS){for(const _0x2a25a5 of _0xa93ef0){try{const _0x5e6a6f=await firstVisibleMatchingAnchor(_0x2a25a5,_0x313ce8);if(_0x5e6a6f){logger['debug']('Found\x20visible\x20download\x20link\x20(fallback):\x20'+_0x313ce8);return _0x5e6a6f;}}catch(_0x4399a8){logger['debug']('Fallback\x20selector\x20failed:\x20'+_0x313ce8+'\x20-\x20'+_0x4399a8['message']);}}}logger['debug']('No\x20download\x20link\x20found\x20with\x20any\x20selector');return null;}async function retrieveFile(){let _0x1df1bb=null;try{const _0x4d19d1='/lightning/setup/SecurityEvents/home';const _0x15b4fb=performance['now']();let _0x19a382=_0x15b4fb;let _0xe253e1=checkPlaywrightBrowsers();logger['debug']('[timing]\x20checkPlaywrightBrowsers:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();if(!_0xe253e1){logger['debug']('Playwright\x20browsers\x20not\x20installed.\x20Installing\x20them\x20automatically...');await installPlaywrightBrowsers();_playwrightBrowsersAvailable=null;_0xe253e1=checkPlaywrightBrowsers();if(!_0xe253e1){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']()-_0x19a382)+'ms');_0x19a382=performance['now']();}_0x1df1bb=await chromium['launch']({'headless':!![]});const _0x1029bf=a0_0x3734a5['join'](process['cwd'](),'tmp');if(!a0_0x428ceb['existsSync'](_0x1029bf)){a0_0x428ceb['mkdirSync'](_0x1029bf,{'recursive':!![]});}const _0x19abb0=await _0x1df1bb['newContext']({'acceptDownloads':!![],'downloadsPath':_0x1029bf,'ignoreHTTPSErrors':!a0_0x26cd17['strictSsl']});const _0x12561d=await _0x19abb0['newPage']();logger['debug']('[timing]\x20chromium.launch\x20+\x20newContext\x20+\x20newPage:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();const {instanceUrl:_0x8cad73,accessToken:_0x11463a}=state['org'];if(!_0x8cad73||!_0x11463a){throw new Error('Missing\x20instanceUrl\x20or\x20accessToken');}const _0x22fe8c=buildFrontdoorUrl(_0x8cad73,_0x11463a,_0x4d19d1);logger['debug']('[H2]\x20Navigating\x20to:\x20'+_0x4d19d1);await _0x12561d['goto'](_0x22fe8c,{'waitUntil':'domcontentloaded','timeout':0xea60});logger['debug']('[timing]\x20page.goto(domcontentloaded):\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();let _0x547707='n/a';try{_0x547707=await _0x12561d['title']();}catch(_0x289f64){logger['debug']('[H2]\x20Failed\x20to\x20retrieve\x20page\x20title\x20after\x20load',{'error':_0x289f64});}logger['debug']('[H2]\x20Page\x20loaded.\x20Title:\x20'+_0x547707+',\x20URL:\x20'+_0x12561d['url']());if(isSalesforceLoginPage(_0x547707,_0x12561d['url']())){throw new Error('Frontdoor\x20login\x20redirected\x20to\x20Salesforce\x20login\x20page:\x20'+_0x12561d['url']());}try{await _0x12561d['waitForLoadState']('load',{'timeout':0x2710});}catch{}logger['debug']('[timing]\x20page.title\x20+\x20waitForLoadState(load):\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();const _0x4106b1=await waitForOrgSetupAuditFrame(_0x12561d,0xea60);logger['debug']('[timing]\x20waitForOrgSetupAuditFrame:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();await waitForDownloadLinkAttached(_0x4106b1,0x61a8);logger['debug']('[timing]\x20waitForDownloadLinkAttached:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();logger['debug']('[H1]\x20Resolving\x20download\x20control...');const _0x5bf3c0=await findDownloadLocator(_0x12561d,_0x4106b1);logger['debug']('[timing]\x20findDownloadLocator:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();if(!_0x5bf3c0){logger['debug']('[H1]\x20Download\x20link\x20not\x20found,\x20listing\x20all\x20links\x20on\x20page...');await listAllLinks(_0x12561d);throw new Error('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail.');}const _0x31c0f4=0x7530;logger['debug']('[H1]\x20Subscribing\x20to\x20download\x20event,\x20then\x20clicking...');const _0xbff993=_0x12561d['waitForEvent']('download',{'timeout':_0x31c0f4});await _0x5bf3c0['click']({'timeout':0x1388});logger['debug']('[timing]\x20downloadLocator.click:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');_0x19a382=performance['now']();const _0x2e01d0=await _0xbff993;logger['debug']('[timing]\x20await\x20download\x20event\x20(after\x20click):\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');logger['debug']('[SUCCESS]\x20Download\x20event\x20received,\x20saving\x20file...');const _0x507714=a0_0x3734a5['join'](_0x1029bf,'SetupAuditTrail.csv');_0x19a382=performance['now']();await _0x2e01d0['saveAs'](_0x507714);logger['debug']('[timing]\x20download.saveAs:\x20'+Math['round'](performance['now']()-_0x19a382)+'ms');logger['debug']('[timing]\x20retrieveFile\x20total:\x20'+Math['round'](performance['now']()-_0x15b4fb)+'ms');logger['debug']('[SUCCESS]\x20File\x20saved\x20to:\x20'+_0x507714);return _0x507714;}catch(_0x1c08b1){logger['error']('[ERROR]\x20Error\x20during\x20Setup\x20Audit\x20Trail\x20download:\x20'+_0x1c08b1['message']);throw _0x1c08b1;}finally{if(_0x1df1bb){await _0x1df1bb['close']();}}}function isRetryableDownloadError(_0x4e9711){const _0x59482b=typeof _0x4e9711?.['message']==='string'?_0x4e9711['message']:'';if(!_0x59482b){return![];}if(_0x59482b['includes']('Frame\x20was\x20detached')||_0x59482b['includes']('Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed')){return!![];}if(_0x59482b['includes']('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail')){return!![];}if(_0x59482b['includes']('Timeout')&&_0x59482b['includes']('download')){return!![];}if(_0x59482b['includes']('net::')||_0x59482b['includes']('ERR_TOO_MANY_REDIRECTS')||_0x59482b['includes']('chrome-error://')){return!![];}return![];}async function retrieveFileWithRetry(_0x63064=0x3){let _0x358287;const _0x37d7f9=0x7d0;for(let _0x4eaf77=0x1;_0x4eaf77<=_0x63064;_0x4eaf77++){try{return await retrieveFile();}catch(_0x30c281){_0x358287=_0x30c281;if(isRetryableDownloadError(_0x30c281)&&_0x4eaf77<_0x63064){logger['debug']('Retryable\x20error\x20on\x20attempt\x20'+_0x4eaf77+'/'+_0x63064+':\x20'+_0x30c281['message']+'.\x20Waiting\x20'+_0x37d7f9+'ms...');await new Promise(_0x2b6f4f=>setTimeout(_0x2b6f4f,_0x37d7f9));continue;}break;}}logger['error']('All\x20download\x20attempts\x20failed.\x20Last\x20error:\x20'+_0x358287?.['message']);throw _0x358287;}export async function retrieveSetupAuditTrailFile(){try{return await retrieveFileWithRetry();}catch(_0x377f6d){logger['error'](_0x377f6d,'Error\x20retrieving\x20Setup\x20Audit\x20Trail\x20file');throw _0x377f6d;}}
|
|
1
|
+
import{exec}from'node:child_process';import{performance}from'node:perf_hooks';import{promisify}from'node:util';import a0_0x4e22ce from'node:fs';import a0_0x56c9bd from'node:path';import{chromium}from'playwright';import a0_0x2fd812 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 _0x513e0a=chromium['executablePath']();_playwrightBrowsersAvailable=a0_0x4e22ce['existsSync'](_0x513e0a);}catch{_playwrightBrowsersAvailable=![];}return _playwrightBrowsersAvailable;}async function installPlaywrightBrowsers(){try{logger['debug']('Installing\x20Playwright\x20browsers...');const _0xd8070e=new URL('../../node_modules/.bin/playwright',import.meta.url)['pathname'];const _0x2a28a5=a0_0x4e22ce['existsSync'](_0xd8070e)?'\x22'+_0xd8070e+'\x22\x20install\x20chromium':'npx\x20playwright\x20install\x20chromium';const {stderr:_0x4a5fa2}=await execAsync(_0x2a28a5);if(_0x4a5fa2&&!_0x4a5fa2['includes']('chromium')){logger['warn']('Playwright\x20installation\x20stderr:',_0x4a5fa2);}logger['debug']('Playwright\x20browsers\x20installed\x20successfully');return!![];}catch(_0x306c23){logger['error']('Failed\x20to\x20install\x20Playwright\x20browsers:',_0x306c23['message']);throw new Error('Failed\x20to\x20install\x20Playwright\x20browsers.\x20Please\x20run\x20manually:\x20npx\x20playwright\x20install\x20chromium');}}async function listAllLinks(_0x572bad){try{const _0x24f0d1=await _0x572bad['locator']('a')['all']();if(_0x24f0d1['length']===0x0){logger['debug']('No\x20links\x20found\x20on\x20page');return;}logger['debug']('Found\x20'+_0x24f0d1['length']+'\x20links\x20on\x20page:');for(let _0x2552fa=0x0;_0x2552fa<Math['min'](_0x24f0d1['length'],0x14);_0x2552fa++){const _0x396d4e=await _0x24f0d1[_0x2552fa]['getAttribute']('href');const text=await _0x24f0d1[_0x2552fa]['textContent']();logger['debug']('\x20\x20['+_0x2552fa+']\x20href=\x22'+_0x396d4e+'\x22\x20text=\x22'+text?.['trim']()['slice'](0x0,0x32)+'\x22');}if(_0x24f0d1['length']>0x14){logger['debug']('\x20\x20...\x20and\x20'+(_0x24f0d1['length']-0x14)+'\x20more\x20links');}}catch(_0xd2ad95){logger['debug']('Error\x20listing\x20links:\x20'+_0xd2ad95['message']);}}async function waitForOrgSetupAuditFrame(_0x684dda,_0xdc65f9=0xea60){const _0x21a681=Date['now']();function _0x1d29ab(){let _0x4eb2d8;try{_0x4eb2d8=_0x684dda['frames']();}catch(_0x501eac){logger['debug']('[H2]\x20tryMatch\x20page.frames:\x20'+_0x501eac['message']);return null;}for(const _0x1b004d of _0x4eb2d8){try{const _0x1fed11=_0x1b004d['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x1fed11)){return _0x1b004d;}}catch{}}return null;}const _0x11e444=_0x1d29ab();if(_0x11e444){let _0xc7354a='(url\x20unavailable)';try{_0xc7354a=_0x11e444['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x21a681)+'ms:\x20'+_0xc7354a['slice'](0x0,0x8c));return _0x11e444;}let _0x3b46bf=![];let _0x1e41b4;return new Promise(_0x358b9f=>{const _0x5ad31e=()=>{if(_0x1e41b4){clearInterval(_0x1e41b4);}_0x684dda['off']('framenavigated',_0x1bb311);_0x684dda['off']('close',_0x1d888f);};function _0x1d888f(){logger['debug']('[H2]\x20page\x20closed\x20while\x20waiting\x20for\x20orgsetupaudit\x20frame');_0x305f02(null);}function _0x305f02(_0x1196f1){if(_0x3b46bf){return;}_0x3b46bf=!![];_0x5ad31e();if(_0x1196f1){let _0x4410a6='(url\x20unavailable)';try{_0x4410a6=_0x1196f1['url']();}catch{}logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20after\x20'+(Date['now']()-_0x21a681)+'ms:\x20'+_0x4410a6['slice'](0x0,0x8c));}else{logger['debug']('[H2]\x20orgsetupaudit\x20frame\x20not\x20found\x20within\x20'+_0xdc65f9+'ms');}_0x358b9f(_0x1196f1);}function _0x1bb311(){const _0x121eec=_0x1d29ab();if(_0x121eec){_0x305f02(_0x121eec);}}_0x684dda['on']('framenavigated',_0x1bb311);_0x684dda['on']('close',_0x1d888f);_0x1e41b4=setInterval(()=>{if(_0x3b46bf){return;}const _0x5596a1=_0x1d29ab();if(_0x5596a1){_0x305f02(_0x5596a1);return;}if(Date['now']()-_0x21a681>=_0xdc65f9){_0x305f02(null);}},FRAME_WAIT_FALLBACK_POLL_MS);});}async function waitForDownloadLinkAttached(_0x2ee404,_0x802718=0x61a8){if(!_0x2ee404){return;}const _0x280559=Date['now']();const _0x1587ec=['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 _0x2ae682 of _0x1587ec){const _0x17d1d4=Date['now']()-_0x280559;const _0x1e18b0=_0x802718-_0x17d1d4;if(_0x1e18b0<0x190){break;}try{await _0x2ee404['locator'](_0x2ae682)['first']()['waitFor']({'state':'attached','timeout':_0x1e18b0});logger['debug']('[H2]\x20Download\x20anchor\x20ready\x20('+_0x2ae682+')\x20after\x20'+(Date['now']()-_0x280559)+'ms');return;}catch{}}logger['debug']('[H2]\x20Download\x20anchor\x20not\x20attached\x20within\x20wait\x20(continuing\x20to\x20locator\x20search)');}async function firstVisibleMatchingAnchor(_0x24ed76,_0x2ba910){const _0x1d4a0f=_0x24ed76['locator'](_0x2ba910);let _0x1d12d0;try{_0x1d12d0=await _0x1d4a0f['count']();}catch(_0x35be70){logger['debug']('firstVisibleMatchingAnchor\x20count:\x20'+_0x35be70['message']);return null;}const _0x4e1da0=Math['min'](_0x1d12d0,MAX_VISIBLE_ANCHOR_CANDIDATES);if(_0x1d12d0>MAX_VISIBLE_ANCHOR_CANDIDATES){logger['debug']('firstVisibleMatchingAnchor:\x20checking\x20first\x20'+_0x4e1da0+'\x20of\x20'+_0x1d12d0+'\x20matches\x20for\x20'+_0x2ba910['slice'](0x0,0x28));}for(let _0x3ca2af=0x0;_0x3ca2af<_0x4e1da0;_0x3ca2af++){const _0x5e09b4=_0x1d4a0f['nth'](_0x3ca2af);try{await _0x5e09b4['waitFor']({'state':'visible','timeout':VISIBLE_DOWNLOAD_LINK_TIMEOUT_MS});return _0x5e09b4;}catch{}}return null;}export function buildFrontdoorUrl(_0x4fb98e,_0x4824bf,_0x236817){const _0x26df52=_0x4fb98e['replace'](/\/+$/,'');return _0x26df52+'/secur/frontdoor.jsp?sid='+encodeURIComponent(_0x4824bf)+'&retURL='+encodeURIComponent(_0x236817);}export function isSalesforceLoginPage(_0x312a32,_0x40d351){return _0x312a32==='Login\x20|\x20Salesforce'||typeof _0x40d351==='string'&&/[&?]ec=302(?:&|$).*startURL=|[&?]startURL=.*[&?]ec=302(?:&|$)/['test'](_0x40d351);}async function findDownloadLocator(_0x26949f,_0x50d9f9){const _0x4b240f=async _0x2268a7=>{for(const _0x1de573 of DOWNLOAD_LINK_SELECTORS){try{const _0x4cb651=await firstVisibleMatchingAnchor(_0x2268a7,_0x1de573);if(_0x4cb651){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x1de573);return _0x4cb651;}}catch(_0x154fba){logger['debug']('Selector\x20'+_0x1de573+':\x20'+_0x154fba['message']);}}return null;};if(_0x50d9f9){const _0x5e1a54=await _0x4b240f(_0x50d9f9);if(_0x5e1a54){return _0x5e1a54;}}for(const _0x47a399 of _0x26949f['frames']()){try{const _0x41b9d6=_0x47a399['url']();if(ORG_SETUP_AUDIT_FRAME_URL['test'](_0x41b9d6)){const _0x4c71a2=await _0x4b240f(_0x47a399);if(_0x4c71a2){return _0x4c71a2;}}}catch{continue;}}const _0x3b3855=['iframe[src*=\x22SecurityEvents\x22]','iframe'];for(const _0x5378ad of _0x3b3855){try{const _0x4daeb1=_0x26949f['frameLocator'](_0x5378ad)['first']();for(const _0x2cc082 of DOWNLOAD_LINK_SELECTORS){try{const _0x71b698=await firstVisibleMatchingAnchor(_0x4daeb1,_0x2cc082);if(_0x71b698){logger['debug']('Found\x20visible\x20download\x20link:\x20'+_0x5378ad+'\x20+\x20'+_0x2cc082);return _0x71b698;}}catch{}}}catch{}}const _0x43cc58=[_0x26949f,..._0x26949f['frames']()];for(const _0x5eb481 of FALLBACK_LINK_SELECTORS){for(const _0x47d11b of _0x43cc58){try{const _0x1db0e9=await firstVisibleMatchingAnchor(_0x47d11b,_0x5eb481);if(_0x1db0e9){logger['debug']('Found\x20visible\x20download\x20link\x20(fallback):\x20'+_0x5eb481);return _0x1db0e9;}}catch(_0x9da954){logger['debug']('Fallback\x20selector\x20failed:\x20'+_0x5eb481+'\x20-\x20'+_0x9da954['message']);}}}logger['debug']('No\x20download\x20link\x20found\x20with\x20any\x20selector');return null;}async function retrieveFile(){let _0x1150a0=null;try{const _0x202032='/lightning/setup/SecurityEvents/home';const _0x475e10=performance['now']();let _0x1c0ae6=_0x475e10;let _0x530b38=checkPlaywrightBrowsers();logger['debug']('[timing]\x20checkPlaywrightBrowsers:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();if(!_0x530b38){logger['debug']('Playwright\x20browsers\x20not\x20installed.\x20Installing\x20them\x20automatically...');await installPlaywrightBrowsers();_playwrightBrowsersAvailable=null;_0x530b38=checkPlaywrightBrowsers();if(!_0x530b38){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']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();}_0x1150a0=await chromium['launch']({'headless':!![]});const _0x536589=a0_0x56c9bd['join'](process['cwd'](),'tmp');if(!a0_0x4e22ce['existsSync'](_0x536589)){a0_0x4e22ce['mkdirSync'](_0x536589,{'recursive':!![]});}const _0x19de4f=await _0x1150a0['newContext']({'acceptDownloads':!![],'downloadsPath':_0x536589,'ignoreHTTPSErrors':!a0_0x2fd812['strictSsl']});const _0x19944c=await _0x19de4f['newPage']();logger['debug']('[timing]\x20chromium.launch\x20+\x20newContext\x20+\x20newPage:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();const {instanceUrl:_0x24f2e4,accessToken:_0xbddf8f}=state['org'];if(!_0x24f2e4||!_0xbddf8f){throw new Error('Missing\x20instanceUrl\x20or\x20accessToken');}const _0x30783e=buildFrontdoorUrl(_0x24f2e4,_0xbddf8f,_0x202032);logger['debug']('[H2]\x20Navigating\x20to:\x20'+_0x202032);await _0x19944c['goto'](_0x30783e,{'waitUntil':'domcontentloaded','timeout':0xea60});logger['debug']('[timing]\x20page.goto(domcontentloaded):\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();let _0x289447='n/a';try{_0x289447=await _0x19944c['title']();}catch(_0x5df98b){logger['debug']('[H2]\x20Failed\x20to\x20retrieve\x20page\x20title\x20after\x20load',{'error':_0x5df98b});}logger['debug']('[H2]\x20Page\x20loaded.\x20Title:\x20'+_0x289447+',\x20URL:\x20'+_0x19944c['url']());if(isSalesforceLoginPage(_0x289447,_0x19944c['url']())){throw new Error('Frontdoor\x20login\x20redirected\x20to\x20Salesforce\x20login\x20page:\x20'+_0x19944c['url']());}try{await _0x19944c['waitForLoadState']('load',{'timeout':0x2710});}catch{}logger['debug']('[timing]\x20page.title\x20+\x20waitForLoadState(load):\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();const _0x142965=await waitForOrgSetupAuditFrame(_0x19944c,0xea60);logger['debug']('[timing]\x20waitForOrgSetupAuditFrame:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();await waitForDownloadLinkAttached(_0x142965,0x61a8);logger['debug']('[timing]\x20waitForDownloadLinkAttached:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();logger['debug']('[H1]\x20Resolving\x20download\x20control...');const _0x7ff4dc=await findDownloadLocator(_0x19944c,_0x142965);logger['debug']('[timing]\x20findDownloadLocator:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();if(!_0x7ff4dc){logger['debug']('[H1]\x20Download\x20link\x20not\x20found,\x20listing\x20all\x20links\x20on\x20page...');await listAllLinks(_0x19944c);throw new Error('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail.');}const _0x4ad406=0x7530;logger['debug']('[H1]\x20Subscribing\x20to\x20download\x20event,\x20then\x20clicking...');const _0x4a004c=_0x19944c['waitForEvent']('download',{'timeout':_0x4ad406});await _0x7ff4dc['click']({'timeout':0x1388});logger['debug']('[timing]\x20downloadLocator.click:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');_0x1c0ae6=performance['now']();const _0x1fc944=await _0x4a004c;logger['debug']('[timing]\x20await\x20download\x20event\x20(after\x20click):\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');logger['debug']('[SUCCESS]\x20Download\x20event\x20received,\x20saving\x20file...');const _0x486e45=a0_0x56c9bd['join'](_0x536589,'SetupAuditTrail.csv');_0x1c0ae6=performance['now']();await _0x1fc944['saveAs'](_0x486e45);logger['debug']('[timing]\x20download.saveAs:\x20'+Math['round'](performance['now']()-_0x1c0ae6)+'ms');logger['debug']('[timing]\x20retrieveFile\x20total:\x20'+Math['round'](performance['now']()-_0x475e10)+'ms');logger['debug']('[SUCCESS]\x20File\x20saved\x20to:\x20'+_0x486e45);return _0x486e45;}catch(_0x815536){logger['error']('[ERROR]\x20Error\x20during\x20Setup\x20Audit\x20Trail\x20download:\x20'+_0x815536['message']);throw _0x815536;}finally{if(_0x1150a0){await _0x1150a0['close']();}}}function isRetryableDownloadError(_0x1d16ca){const _0x29d48e=typeof _0x1d16ca?.['message']==='string'?_0x1d16ca['message']:'';if(!_0x29d48e){return![];}if(_0x29d48e['includes']('Frame\x20was\x20detached')||_0x29d48e['includes']('Target\x20page,\x20context\x20or\x20browser\x20has\x20been\x20closed')){return!![];}if(_0x29d48e['includes']('Download\x20link\x20not\x20found\x20in\x20Setup\x20Audit\x20Trail')){return!![];}if(_0x29d48e['includes']('Timeout')&&_0x29d48e['includes']('download')){return!![];}if(_0x29d48e['includes']('net::')||_0x29d48e['includes']('ERR_TOO_MANY_REDIRECTS')||_0x29d48e['includes']('chrome-error://')){return!![];}return![];}async function retrieveFileWithRetry(_0xd62af=0x3){let _0xb06ed2;const _0x4bb3f9=0x7d0;for(let _0x37f940=0x1;_0x37f940<=_0xd62af;_0x37f940++){try{return await retrieveFile();}catch(_0x3c3504){_0xb06ed2=_0x3c3504;if(isRetryableDownloadError(_0x3c3504)&&_0x37f940<_0xd62af){logger['debug']('Retryable\x20error\x20on\x20attempt\x20'+_0x37f940+'/'+_0xd62af+':\x20'+_0x3c3504['message']+'.\x20Waiting\x20'+_0x4bb3f9+'ms...');await new Promise(_0x153e7c=>setTimeout(_0x153e7c,_0x4bb3f9));continue;}break;}}logger['error']('All\x20download\x20attempts\x20failed.\x20Last\x20error:\x20'+_0xb06ed2?.['message']);throw _0xb06ed2;}export async function retrieveSetupAuditTrailFile(){try{return await retrieveFileWithRetry();}catch(_0x53096f){logger['error'](_0x53096f,'Error\x20retrieving\x20Setup\x20Audit\x20Trail\x20file');throw _0x53096f;}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const a0_0x27da7d=a0_0x29a6;(function(_0x2fecca,_0x1981b6){const _0x1745f5=a0_0x29a6;const _0x41dc4d=_0x2fecca();while(!![]){try{const _0x57a1da=-parseInt(_0x1745f5(0x1cb))/0x1*(parseInt(_0x1745f5(0x1ec))/0x2)+parseInt(_0x1745f5(0x1cd))/0x3*(parseInt(_0x1745f5(0x1ef))/0x4)+-parseInt(_0x1745f5(0x1ed))/0x5+parseInt(_0x1745f5(0x1d0))/0x6+-parseInt(_0x1745f5(0x1e1))/0x7*(-parseInt(_0x1745f5(0x1f7))/0x8)+-parseInt(_0x1745f5(0x1ce))/0x9+-parseInt(_0x1745f5(0x1c8))/0xa*(-parseInt(_0x1745f5(0x1d9))/0xb);if(_0x57a1da===_0x1981b6){break;}else{_0x41dc4d['push'](_0x41dc4d['shift']());}}catch(_0x3849cf){_0x41dc4d['push'](_0x41dc4d['shift']());}}}(a0_0xc9c9,0x1f339));import{state}from'\x2e\x2e\x2f\x73\x74\x61\x74\x65\x2e\x6a\x73';import{safeElicitInput,ElicitationTimeoutError}from'\x2e\x2e\x2f\x75\x74\x69\x6c\x73\x2e\x6a\x73';const CONFIRM_CHOICES=[a0_0x27da7d(0x1ee),a0_0x27da7d(0x1c9)+'\x29',a0_0x27da7d(0x1f0)+'\x6e\x29','\x4e\x6f'];export const SILENT_PERIOD_MS={'\x53\x48\x4f\x52\x54':0x5*0x3c*0x3e8,'\x4c\x4f\x4e\x47':0xf*0x3c*0x3e8};function createElicitationResult(){const _0x3c96d8=a0_0x29a6;return{'\x73\x68\x6f\x77\x6e':![],'\x61\x63\x74\x69\x6f\x6e':_0x3c96d8(0x1de),'\x75\x73\x65\x72\x43\x68\x6f\x69\x63\x65':null,'\x73\x69\x6c\x65\x6e\x74\x55\x6e\x74\x69\x6c':null};}export function getElicitationSilentUntil(){const _0x310350=a0_0x29a6;return state['\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f'+_0x310350(0x1cc)+'\x69\x6c']||0x0;}export function isInElicitationSilentPeriod(_0x1c291a=Date[a0_0x27da7d(0x1dd)]()){const _0x3b0d91=a0_0x29a6;const _0x365abf={'\x72\x59\x62\x79\x79':function(_0x4da48e,_0x5bc65d){return _0x4da48e<_0x5bc65d;},'\x44\x69\x6b\x66\x72':function(_0x18f1bf){return _0x18f1bf();}};return _0x365abf[_0x3b0d91(0x1e2)](_0x1c291a,_0x365abf[_0x3b0d91(0x1d3)](getElicitationSilentUntil));}export function clearElicitationSilentPeriod(){const _0x5dc9a4=a0_0x29a6;state['\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f'+_0x5dc9a4(0x1cc)+'\x69\x6c']=0x0;}export function applyElicitationConfirmChoice(_0x49c6b4,_0xc277f2=Date[a0_0x27da7d(0x1dd)]()){const _0x4bf1cd=a0_0x29a6;const _0x4a240c={'\x51\x75\x74\x61\x6d':function(_0x5320ec){return _0x5320ec();},'\x54\x57\x45\x79\x57':function(_0x3db202,_0x1e0ba8){return _0x3db202===_0x1e0ba8;},'\x69\x57\x63\x76\x69':function(_0x15d665,_0x12b0f9){return _0x15d665+_0x12b0f9;}};if(_0x49c6b4===_0x4bf1cd(0x1c9)+'\x29'){if(_0x4bf1cd(0x1d6)!=='\x66\x43\x4c\x44\x42'){return _0x2921e7<XekSmO[_0x4bf1cd(0x1f1)](getElicitationSilentUntil);}else{const _0x18b8eb=Math[_0x4bf1cd(0x1f2)](getElicitationSilentUntil(),_0xc277f2+SILENT_PERIOD_MS[_0x4bf1cd(0x1f6)]);state['\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f'+'\x6e\x53\x69\x6c\x65\x6e\x74\x55\x6e\x74'+'\x69\x6c']=_0x18b8eb;return _0x18b8eb;}}if(_0x4a240c[_0x4bf1cd(0x1e0)](_0x49c6b4,'\x59\x65\x73\x20\x28\x31\x35\x20\x6d\x69'+'\x6e\x29')){const _0x3b850d=Math['\x6d\x61\x78'](getElicitationSilentUntil(),_0x4a240c[_0x4bf1cd(0x1e3)](_0xc277f2,SILENT_PERIOD_MS[_0x4bf1cd(0x1d8)]));state['\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f'+_0x4bf1cd(0x1cc)+'\x69\x6c']=_0x3b850d;return _0x3b850d;}return null;}function a0_0x29a6(_0x2b215a,_0x4b30a7){_0x2b215a=_0x2b215a-0x1c8;const _0xc9c97b=a0_0xc9c9();let _0x29a63c=_0xc9c97b[_0x2b215a];if(a0_0x29a6['\x5a\x42\x47\x63\x69\x51']===undefined){var _0x8bf445=function(_0x16b9ce){const _0x536b15='\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 _0x18561f='';let _0x2921e7='';for(let _0x1ce3b4=0x0,_0x5334fb,_0x33eb96,_0x46abf1=0x0;_0x33eb96=_0x16b9ce['\x63\x68\x61\x72\x41\x74'](_0x46abf1++);~_0x33eb96&&(_0x5334fb=_0x1ce3b4%0x4?_0x5334fb*0x40+_0x33eb96:_0x33eb96,_0x1ce3b4++%0x4)?_0x18561f+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x5334fb>>(-0x2*_0x1ce3b4&0x6)):0x0){_0x33eb96=_0x536b15['\x69\x6e\x64\x65\x78\x4f\x66'](_0x33eb96);}for(let _0x396335=0x0,_0x3799e4=_0x18561f['\x6c\x65\x6e\x67\x74\x68'];_0x396335<_0x3799e4;_0x396335++){_0x2921e7+='\x25'+('\x30\x30'+_0x18561f['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x396335)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x2921e7);};a0_0x29a6['\x51\x78\x42\x6b\x48\x54']=_0x8bf445;a0_0x29a6['\x51\x6e\x69\x4c\x70\x55']={};a0_0x29a6['\x5a\x42\x47\x63\x69\x51']=!![];}const _0x6b8388=_0xc9c97b[0x0];const _0x37c4b6=_0x2b215a+_0x6b8388;const _0x463dc3=a0_0x29a6['\x51\x6e\x69\x4c\x70\x55'][_0x37c4b6];if(!_0x463dc3){_0x29a63c=a0_0x29a6['\x51\x78\x42\x6b\x48\x54'](_0x29a63c);a0_0x29a6['\x51\x6e\x69\x4c\x70\x55'][_0x37c4b6]=_0x29a63c;}else{_0x29a63c=_0x463dc3;}return _0x29a63c;}export async function requestDestructiveOperationConfirmation({message:_0x4e88bd,title:_0x4baded,description:_0x303d17,enumNames:_0x21747a,mcpServer:mcpServer}){const _0x136950=a0_0x29a6;const _0x28cfd8={'\x6e\x64\x71\x66\x48':'\x73\x69\x6c\x65\x6e\x74\x5f\x70\x65\x72'+_0x136950(0x1eb),'\x4c\x56\x45\x70\x65':'\x63\x61\x6e\x63\x65\x6c\x6c\x65\x64','\x79\x53\x64\x64\x6f':function(_0x2f7cca){return _0x2f7cca();},'\x6c\x79\x65\x74\x70':_0x136950(0x1db),'\x74\x58\x52\x42\x67':function(_0x5a3c82,_0x4aefb8,_0x5f467b){return _0x5a3c82(_0x4aefb8,_0x5f467b);},'\x71\x7a\x5a\x4f\x43':'\x6f\x62\x6a\x65\x63\x74','\x6a\x4d\x58\x78\x69':_0x136950(0x1f5),'\x65\x53\x70\x71\x6f':function(_0x20baa3,_0x53b556){return _0x20baa3===_0x53b556;}};const _0x504e5a=createElicitationResult();const _0x207564=Date['\x6e\x6f\x77']();const _0x53bf44=getElicitationSilentUntil();if(isInElicitationSilentPeriod(_0x207564)){if(_0x136950(0x1f8)===_0x136950(0x1cf)){_0x296c52['\x61\x63\x74\x69\x6f\x6e']=_0x28cfd8[_0x136950(0x1e5)];_0x5c4295[_0x136950(0x1e6)+'\x6c']=_0xf5a2f7;return{'\x6f\x75\x74\x63\x6f\x6d\x65':'\x70\x72\x6f\x63\x65\x65\x64','\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x20a156};}else{_0x504e5a[_0x136950(0x1f9)]=_0x136950(0x1e4)+_0x136950(0x1eb);_0x504e5a[_0x136950(0x1e6)+'\x6c']=_0x53bf44;return{'\x6f\x75\x74\x63\x6f\x6d\x65':'\x70\x72\x6f\x63\x65\x65\x64','\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x504e5a};}}_0x504e5a[_0x136950(0x1d2)]=!![];let _0x5f5a4f;try{if(_0x136950(0x1db)!==_0x28cfd8['\x6c\x79\x65\x74\x70']){_0x10913b['\x61\x63\x74\x69\x6f\x6e']=_0x28cfd8[_0x136950(0x1d1)];_0x1bb232[_0x136950(0x1e7)]=null;return{'\x6f\x75\x74\x63\x6f\x6d\x65':'\x63\x61\x6e\x63\x65\x6c\x6c\x65\x64','\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x1a3063};}else{_0x5f5a4f=await _0x28cfd8[_0x136950(0x1df)](safeElicitInput,{'\x6d\x6f\x64\x65':_0x136950(0x1da),'\x6d\x65\x73\x73\x61\x67\x65':_0x4e88bd,'\x72\x65\x71\x75\x65\x73\x74\x65\x64\x53\x63\x68\x65\x6d\x61':{'\x74\x79\x70\x65':_0x28cfd8[_0x136950(0x1dc)],'\x74\x69\x74\x6c\x65':_0x4baded,'\x70\x72\x6f\x70\x65\x72\x74\x69\x65\x73':{'\x63\x6f\x6e\x66\x69\x72\x6d':{'\x74\x79\x70\x65':_0x136950(0x1e9),'\x65\x6e\x75\x6d':CONFIRM_CHOICES,'\x65\x6e\x75\x6d\x4e\x61\x6d\x65\x73':_0x21747a,'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x303d17,'\x64\x65\x66\x61\x75\x6c\x74':_0x136950(0x1c9)+'\x29'}},'\x72\x65\x71\x75\x69\x72\x65\x64':[_0x136950(0x1f3)]}},mcpServer);}}catch(_0x200722){if(_0x200722 instanceof ElicitationTimeoutError){_0x504e5a['\x61\x63\x74\x69\x6f\x6e']=_0x136950(0x1e8);_0x504e5a[_0x136950(0x1e7)]=null;return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x28cfd8[_0x136950(0x1d4)],'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x504e5a};}throw _0x200722;}if(_0x5f5a4f['\x61\x63\x74\x69\x6f\x6e']!=='\x61\x63\x63\x65\x70\x74'){_0x504e5a[_0x136950(0x1f9)]=_0x136950(0x1e8);_0x504e5a[_0x136950(0x1e7)]=null;return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x136950(0x1e8),'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x504e5a};}const _0x378e9d=_0x5f5a4f['\x63\x6f\x6e\x74\x65\x6e\x74']?.[_0x136950(0x1f3)];_0x504e5a[_0x136950(0x1e7)]=_0x378e9d;if(_0x378e9d==='\x4e\x6f'){if(_0x28cfd8[_0x136950(0x1d5)](_0x136950(0x1f4),'\x76\x4b\x72\x58\x62')){return{'\x73\x68\x6f\x77\x6e':![],'\x61\x63\x74\x69\x6f\x6e':'\x6e\x6f\x74\x5f\x73\x68\x6f\x77\x6e','\x75\x73\x65\x72\x43\x68\x6f\x69\x63\x65':null,'\x73\x69\x6c\x65\x6e\x74\x55\x6e\x74\x69\x6c':null};}else{_0x504e5a['\x61\x63\x74\x69\x6f\x6e']=_0x136950(0x1e8);return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x28cfd8[_0x136950(0x1d1)],'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x504e5a};}}_0x504e5a[_0x136950(0x1f9)]=_0x136950(0x1fa);const _0x2b1f59=applyElicitationConfirmChoice(_0x378e9d,_0x207564);if(_0x2b1f59!==null){if(_0x136950(0x1ea)==='\x73\x65\x6c\x71\x73'){const _0x3b88d6=_0x57b72a[_0x136950(0x1f2)](QWMGjO[_0x136950(0x1ca)](getElicitationSilentUntil),_0x25d7cd+SILENT_PERIOD_MS[_0x136950(0x1d8)]);state[_0x136950(0x1fb)+_0x136950(0x1cc)+'\x69\x6c']=_0x3b88d6;return _0x3b88d6;}else{_0x504e5a['\x73\x69\x6c\x65\x6e\x74\x55\x6e\x74\x69'+'\x6c']=_0x2b1f59;}}return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x136950(0x1d7),'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x504e5a};}function a0_0xc9c9(){const _0x1061a1=['\x7a\x4d\x39\x59\x42\x71','\x77\x66\x6a\x6a\x76\x76\x47','\x43\x78\x50\x41\x74\x30\x6d','\x42\x4d\x39\x33','\x42\x4d\x39\x30\x78\x33\x6e\x4f\x42\x33\x44\x55','\x44\x66\x48\x73\x71\x4d\x43','\x76\x66\x44\x66\x45\x76\x43','\x6e\x74\x75\x33\x6d\x4c\x7a\x4f\x43\x31\x62\x73\x79\x47','\x43\x4c\x4c\x49\x45\x78\x4b','\x41\x76\x44\x4a\x44\x4d\x4b','\x43\x32\x4c\x53\x7a\x77\x35\x30\x78\x33\x62\x4c\x43\x47','\x42\x4d\x72\x58\x7a\x4b\x47','\x43\x32\x4c\x53\x7a\x77\x35\x30\x76\x77\x35\x30\x41\x71','\x44\x78\x6e\x4c\x43\x4b\x6e\x4f\x42\x32\x4c\x4a\x7a\x71','\x79\x32\x66\x55\x79\x32\x76\x53\x42\x67\x76\x4b','\x43\x33\x72\x59\x41\x77\x35\x4e','\x75\x76\x6e\x30\x41\x77\x65','\x41\x77\x39\x4b','\x6e\x68\x72\x71\x7a\x30\x4c\x56\x45\x61','\x6f\x64\x79\x34\x6e\x4a\x79\x57\x45\x67\x35\x79\x43\x75\x4c\x6d','\x77\x77\x76\x5a','\x6d\x74\x61\x57\x45\x67\x35\x4e\x72\x78\x66\x36','\x77\x77\x76\x5a\x69\x63\x47\x58\x6e\x73\x62\x54\x41\x71','\x75\x78\x76\x30\x79\x77\x30','\x42\x77\x66\x34','\x79\x32\x39\x55\x7a\x4d\x4c\x59\x42\x71','\x75\x75\x31\x32\x44\x4c\x65','\x44\x67\x4c\x54\x7a\x77\x39\x31\x44\x61','\x75\x30\x48\x70\x75\x4c\x71','\x6e\x74\x65\x59\x42\x4e\x6e\x62\x41\x75\x6e\x4b','\x71\x75\x76\x51\x72\x32\x43','\x79\x77\x6e\x30\x41\x77\x39\x55','\x79\x77\x6e\x4a\x7a\x78\x62\x30\x7a\x77\x71','\x7a\x77\x58\x50\x79\x32\x4c\x30\x79\x78\x72\x50\x42\x57','\x6d\x4a\x75\x5a\x6e\x5a\x61\x35\x6d\x65\x39\x6e\x73\x77\x48\x7a\x44\x61','\x77\x77\x76\x5a\x69\x63\x47\x31\x69\x67\x31\x50\x42\x47','\x45\x76\x6e\x4b\x7a\x67\x38','\x6e\x4a\x43\x31\x6e\x4a\x44\x49\x41\x4e\x62\x72\x43\x4d\x47','\x42\x4c\x6e\x50\x42\x67\x76\x55\x44\x66\x76\x55\x44\x61','\x6d\x4a\x4b\x31\x6e\x74\x6e\x73\x73\x4e\x4c\x6d\x76\x4d\x53','\x6d\x74\x4b\x30\x6f\x64\x61\x30\x6d\x77\x44\x30\x79\x77\x48\x70\x75\x71','\x79\x4d\x72\x66\x73\x4e\x61','\x6e\x4a\x65\x5a\x6d\x74\x69\x34\x43\x76\x66\x6d\x71\x4b\x54\x4a','\x74\x66\x7a\x66\x43\x67\x75','\x43\x32\x48\x56\x44\x32\x34','\x72\x67\x4c\x52\x7a\x4e\x69','\x41\x4b\x31\x79\x45\x67\x4b','\x7a\x76\x6e\x57\x43\x77\x38','\x7a\x4b\x6e\x6d\x72\x65\x69','\x43\x68\x6a\x56\x79\x32\x76\x4c\x7a\x61','\x74\x65\x39\x6f\x72\x57','\x6d\x74\x66\x6d\x71\x4e\x76\x78\x71\x30\x43'];a0_0xc9c9=function(){return _0x1061a1;};return a0_0xc9c9();}
|
|
1
|
+
const a0_0x21bbc9=a0_0x20b4;(function(_0x21c6fe,_0x18f4dc){const _0x1afa33=a0_0x20b4;const _0x27bff4=_0x21c6fe();while(!![]){try{const _0x523d62=parseInt(_0x1afa33(0x16b))/0x1+parseInt(_0x1afa33(0x17c))/0x2+parseInt(_0x1afa33(0x161))/0x3*(-parseInt(_0x1afa33(0x17a))/0x4)+parseInt(_0x1afa33(0x15c))/0x5*(parseInt(_0x1afa33(0x169))/0x6)+parseInt(_0x1afa33(0x175))/0x7+parseInt(_0x1afa33(0x159))/0x8*(-parseInt(_0x1afa33(0x15b))/0x9)+-parseInt(_0x1afa33(0x172))/0xa*(parseInt(_0x1afa33(0x16a))/0xb);if(_0x523d62===_0x18f4dc){break;}else{_0x27bff4['push'](_0x27bff4['shift']());}}catch(_0x2553db){_0x27bff4['push'](_0x27bff4['shift']());}}}(a0_0x9849,0x22d27));import{state}from'\x2e\x2e\x2f\x73\x74\x61\x74\x65\x2e\x6a\x73';import{safeElicitInput,ElicitationTimeoutError}from'\x2e\x2e\x2f\x75\x74\x69\x6c\x73\x2e\x6a\x73';const CONFIRM_CHOICES=['\x59\x65\x73','\x59\x65\x73\x20\x28\x35\x20\x6d\x69\x6e'+'\x29','\x59\x65\x73\x20\x28\x31\x35\x20\x6d\x69'+'\x6e\x29','\x4e\x6f'];function a0_0x20b4(_0x770cfe,_0x273f61){_0x770cfe=_0x770cfe-0x157;const _0x984979=a0_0x9849();let _0x20b406=_0x984979[_0x770cfe];if(a0_0x20b4['\x44\x72\x62\x44\x71\x6e']===undefined){var _0x7b582b=function(_0x2f140a){const _0x4acc5d='\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 _0x3e7690='';let _0x21c3fc='';for(let _0x5c9950=0x0,_0x5875f3,_0x4ba812,_0x17b5b5=0x0;_0x4ba812=_0x2f140a['\x63\x68\x61\x72\x41\x74'](_0x17b5b5++);~_0x4ba812&&(_0x5875f3=_0x5c9950%0x4?_0x5875f3*0x40+_0x4ba812:_0x4ba812,_0x5c9950++%0x4)?_0x3e7690+=String['\x66\x72\x6f\x6d\x43\x68\x61\x72\x43\x6f\x64\x65'](0xff&_0x5875f3>>(-0x2*_0x5c9950&0x6)):0x0){_0x4ba812=_0x4acc5d['\x69\x6e\x64\x65\x78\x4f\x66'](_0x4ba812);}for(let _0x469a10=0x0,_0x51f800=_0x3e7690['\x6c\x65\x6e\x67\x74\x68'];_0x469a10<_0x51f800;_0x469a10++){_0x21c3fc+='\x25'+('\x30\x30'+_0x3e7690['\x63\x68\x61\x72\x43\x6f\x64\x65\x41\x74'](_0x469a10)['\x74\x6f\x53\x74\x72\x69\x6e\x67'](0x10))['\x73\x6c\x69\x63\x65'](-0x2);}return decodeURIComponent(_0x21c3fc);};a0_0x20b4['\x4a\x49\x43\x44\x43\x51']=_0x7b582b;a0_0x20b4['\x4e\x70\x72\x69\x55\x73']={};a0_0x20b4['\x44\x72\x62\x44\x71\x6e']=!![];}const _0x5e43e9=_0x984979[0x0];const _0x37cb7f=_0x770cfe+_0x5e43e9;const _0x3a3e68=a0_0x20b4['\x4e\x70\x72\x69\x55\x73'][_0x37cb7f];if(!_0x3a3e68){_0x20b406=a0_0x20b4['\x4a\x49\x43\x44\x43\x51'](_0x20b406);a0_0x20b4['\x4e\x70\x72\x69\x55\x73'][_0x37cb7f]=_0x20b406;}else{_0x20b406=_0x3a3e68;}return _0x20b406;}export const SILENT_PERIOD_MS={'\x53\x48\x4f\x52\x54':0x5*0x3c*0x3e8,'\x4c\x4f\x4e\x47':0xf*0x3c*0x3e8};function createElicitationResult(){const _0x52eb9a=a0_0x20b4;return{'\x73\x68\x6f\x77\x6e':![],'\x61\x63\x74\x69\x6f\x6e':_0x52eb9a(0x17d),'\x75\x73\x65\x72\x43\x68\x6f\x69\x63\x65':null,'\x73\x69\x6c\x65\x6e\x74\x55\x6e\x74\x69\x6c':null};}export function getElicitationSilentUntil(){const _0x2fe121=a0_0x20b4;return state[_0x2fe121(0x173)+_0x2fe121(0x168)+'\x69\x6c']||0x0;}export function isInElicitationSilentPeriod(_0x56e8ab=Date[a0_0x21bbc9(0x17f)]()){const _0x343bd3={'\x6f\x69\x65\x41\x55':function(_0x367b5f){return _0x367b5f();}};return _0x56e8ab<_0x343bd3['\x6f\x69\x65\x41\x55'](getElicitationSilentUntil);}export function clearElicitationSilentPeriod(){const _0x53bca6=a0_0x20b4;state[_0x53bca6(0x173)+_0x53bca6(0x168)+'\x69\x6c']=0x0;}export function applyElicitationConfirmChoice(_0x54605a,_0xccf140=Date[a0_0x21bbc9(0x17f)]()){const _0x130a06=a0_0x20b4;const _0x365914={'\x53\x77\x68\x76\x75':_0x130a06(0x171)+'\x29','\x4a\x56\x47\x62\x42':function(_0x5d9c90,_0x456226){return _0x5d9c90+_0x456226;},'\x58\x6a\x42\x4e\x57':function(_0x44ad8f){return _0x44ad8f();}};if(_0x54605a===_0x365914['\x53\x77\x68\x76\x75']){const _0x1694d9=Math[_0x130a06(0x16c)](getElicitationSilentUntil(),_0x365914[_0x130a06(0x157)](_0xccf140,SILENT_PERIOD_MS['\x53\x48\x4f\x52\x54']));state[_0x130a06(0x173)+_0x130a06(0x168)+'\x69\x6c']=_0x1694d9;return _0x1694d9;}if(_0x54605a===_0x130a06(0x16e)+'\x6e\x29'){const _0x47171d=Math['\x6d\x61\x78'](_0x365914[_0x130a06(0x15f)](getElicitationSilentUntil),_0x365914['\x4a\x56\x47\x62\x42'](_0xccf140,SILENT_PERIOD_MS[_0x130a06(0x16d)]));state[_0x130a06(0x173)+_0x130a06(0x168)+'\x69\x6c']=_0x47171d;return _0x47171d;}return null;}function a0_0x9849(){const _0x3712c8=['\x6e\x4a\x79\x59\x6f\x74\x7a\x76\x72\x4b\x54\x62\x74\x68\x61','\x73\x31\x6a\x53\x7a\x4d\x57','\x6d\x4a\x61\x30\x6d\x5a\x43\x34\x74\x65\x35\x4d\x72\x4e\x6e\x78','\x42\x4d\x39\x30\x78\x33\x6e\x4f\x42\x33\x44\x55','\x79\x77\x6e\x30\x41\x77\x39\x55','\x42\x4d\x39\x33','\x73\x4c\x7a\x68\x79\x4b\x69','\x43\x4b\x58\x56\x71\x32\x47','\x6f\x74\x69\x5a\x6f\x74\x4b\x59\x75\x67\x76\x50\x43\x78\x62\x59','\x73\x4c\x48\x31\x7a\x65\x4b','\x6d\x74\x48\x4d\x42\x30\x66\x58\x44\x67\x75','\x6f\x64\x47\x58\x6d\x64\x62\x35\x41\x4c\x6e\x63\x76\x77\x30','\x79\x32\x66\x55\x79\x32\x76\x53\x42\x67\x76\x4b','\x7a\x4d\x39\x59\x42\x71','\x77\x67\x50\x63\x74\x4c\x43','\x79\x32\x39\x55\x44\x67\x76\x55\x44\x61','\x6d\x30\x7a\x79\x43\x66\x72\x53\x7a\x61','\x79\x77\x6e\x4a\x7a\x78\x62\x30\x7a\x77\x71','\x44\x78\x6e\x4c\x43\x4b\x6e\x4f\x42\x32\x4c\x4a\x7a\x71','\x74\x4c\x50\x48\x41\x30\x6d','\x43\x32\x4c\x53\x7a\x77\x35\x30\x78\x33\x62\x4c\x43\x47','\x44\x67\x4c\x54\x7a\x77\x39\x31\x44\x61','\x41\x77\x39\x4b','\x42\x4c\x6e\x50\x42\x67\x76\x55\x44\x66\x76\x55\x44\x61','\x6e\x4a\x7a\x71\x43\x75\x72\x4f\x43\x66\x75','\x6d\x4a\x6a\x33\x76\x4b\x48\x7a\x41\x65\x4f','\x6d\x4a\x43\x35\x6f\x64\x61\x34\x79\x78\x6e\x6f\x75\x66\x48\x6e','\x42\x77\x66\x34','\x74\x65\x39\x6f\x72\x57','\x77\x77\x76\x5a\x69\x63\x47\x58\x6e\x73\x62\x54\x41\x71','\x43\x68\x6a\x56\x79\x32\x76\x4c\x7a\x61','\x43\x33\x72\x59\x41\x77\x35\x4e','\x77\x77\x76\x5a\x69\x63\x47\x31\x69\x67\x31\x50\x42\x47','\x6d\x74\x79\x35\x6d\x4a\x4b\x30\x6d\x67\x4c\x50\x7a\x66\x62\x75\x43\x47','\x7a\x77\x58\x50\x79\x32\x4c\x30\x79\x78\x72\x50\x42\x57','\x72\x68\x66\x52\x75\x78\x61','\x6d\x74\x61\x33\x6d\x64\x47\x58\x6f\x68\x7a\x64\x79\x32\x54\x6c\x72\x47','\x43\x32\x48\x56\x44\x32\x34','\x73\x4d\x76\x73\x73\x4b\x6d','\x79\x32\x39\x55\x7a\x4d\x4c\x59\x42\x71','\x76\x75\x31\x4a\x42\x76\x4b'];a0_0x9849=function(){return _0x3712c8;};return a0_0x9849();}export async function requestDestructiveOperationConfirmation({message:_0x33177d,title:_0x3c3d9f,description:_0x3c9e97,enumNames:_0x523525,mcpServer:mcpServer}){const _0x351220=a0_0x20b4;const _0x4678da={'\x4a\x58\x75\x64\x49':_0x351220(0x165)+_0x351220(0x167),'\x4a\x65\x52\x4a\x43':_0x351220(0x15e),'\x72\x4c\x6f\x43\x68':function(_0x5d1d62,_0x27b600){return _0x5d1d62 instanceof _0x27b600;},'\x44\x71\x6b\x51\x70':_0x351220(0x15d),'\x55\x4d\x63\x6d\x59':function(_0x33c3a0,_0x2fa772,_0xf9b703){return _0x33c3a0(_0x2fa772,_0xf9b703);},'\x4b\x52\x6c\x66\x6c':'\x4c\x6a\x6e\x73\x77'};const _0x1714dd=createElicitationResult();const _0x2970b8=Date[_0x351220(0x17f)]();const _0x3062ef=getElicitationSilentUntil();if(isInElicitationSilentPeriod(_0x2970b8)){if('\x4e\x5a\x61\x6b\x43'===_0x351220(0x164)){_0x1714dd['\x61\x63\x74\x69\x6f\x6e']=_0x4678da[_0x351220(0x15a)];_0x1714dd['\x73\x69\x6c\x65\x6e\x74\x55\x6e\x74\x69'+'\x6c']=_0x3062ef;return{'\x6f\x75\x74\x63\x6f\x6d\x65':'\x70\x72\x6f\x63\x65\x65\x64','\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x1714dd};}else{return _0x21c3fc<getElicitationSilentUntil();}}_0x1714dd[_0x351220(0x176)]=!![];let _0x101212;try{_0x101212=await safeElicitInput({'\x6d\x6f\x64\x65':_0x4678da[_0x351220(0x177)],'\x6d\x65\x73\x73\x61\x67\x65':_0x33177d,'\x72\x65\x71\x75\x65\x73\x74\x65\x64\x53\x63\x68\x65\x6d\x61':{'\x74\x79\x70\x65':'\x6f\x62\x6a\x65\x63\x74','\x74\x69\x74\x6c\x65':_0x3c3d9f,'\x70\x72\x6f\x70\x65\x72\x74\x69\x65\x73':{'\x63\x6f\x6e\x66\x69\x72\x6d':{'\x74\x79\x70\x65':_0x351220(0x170),'\x65\x6e\x75\x6d':CONFIRM_CHOICES,'\x65\x6e\x75\x6d\x4e\x61\x6d\x65\x73':_0x523525,'\x64\x65\x73\x63\x72\x69\x70\x74\x69\x6f\x6e':_0x3c9e97,'\x64\x65\x66\x61\x75\x6c\x74':_0x351220(0x171)+'\x29'}},'\x72\x65\x71\x75\x69\x72\x65\x64':[_0x351220(0x178)]}},mcpServer);}catch(_0x1fe539){if(_0x4678da[_0x351220(0x158)](_0x1fe539,ElicitationTimeoutError)){_0x1714dd[_0x351220(0x17e)]='\x63\x61\x6e\x63\x65\x6c\x6c\x65\x64';_0x1714dd[_0x351220(0x163)]=null;return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x351220(0x166),'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x1714dd};}throw _0x1fe539;}if(_0x101212['\x61\x63\x74\x69\x6f\x6e']!=='\x61\x63\x63\x65\x70\x74'){_0x1714dd[_0x351220(0x17e)]='\x63\x61\x6e\x63\x65\x6c\x6c\x65\x64';_0x1714dd[_0x351220(0x163)]=null;return{'\x6f\x75\x74\x63\x6f\x6d\x65':'\x63\x61\x6e\x63\x65\x6c\x6c\x65\x64','\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x1714dd};}const _0x1b0e72=_0x101212[_0x351220(0x160)]?.['\x63\x6f\x6e\x66\x69\x72\x6d'];_0x1714dd['\x75\x73\x65\x72\x43\x68\x6f\x69\x63\x65']=_0x1b0e72;if(_0x1b0e72==='\x4e\x6f'){_0x1714dd['\x61\x63\x74\x69\x6f\x6e']=_0x4678da['\x44\x71\x6b\x51\x70'];return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x4678da[_0x351220(0x174)],'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x1714dd};}_0x1714dd[_0x351220(0x17e)]=_0x351220(0x162);const _0x1a67e6=_0x4678da[_0x351220(0x179)](applyElicitationConfirmChoice,_0x1b0e72,_0x2970b8);if(_0x1a67e6!==null){if('\x44\x7a\x79\x51\x52'!==_0x4678da[_0x351220(0x17b)]){_0x1714dd['\x73\x69\x6c\x65\x6e\x74\x55\x6e\x74\x69'+'\x6c']=_0x1a67e6;}else{_0x59f470[_0x351220(0x17e)]=_0x351220(0x15d);return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x351220(0x15d),'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x56a9b2};}}return{'\x6f\x75\x74\x63\x6f\x6d\x65':_0x351220(0x16f),'\x65\x6c\x69\x63\x69\x74\x61\x74\x69\x6f\x6e\x52\x65\x73\x75\x6c\x74':_0x1714dd};}
|