@nuvin/agent-core 0.0.0-rc.5 → 0.0.0-rc.6

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.
@@ -1 +1 @@
1
- (function(_0x3267ac,_0x275629){const _0x227054={_0x28cabe:0x383,_0x3cfad7:0x3c9,_0x30f723:0x151,_0x3e9574:0x6,_0x37c13a:0x3e,_0x3d572d:0xa4,_0x1c1712:0x13,_0x27cfc7:0x165,_0x2d6cf0:0x70,_0x232f75:0x11b,_0x5f0981:0x451,_0x3bfb42:0x4e4,_0xfa51ad:0x4eb,_0x5cb5f4:0x3a2,_0xf95cdc:0x9d,_0xc35520:0x15a,_0x4d9aef:0xf9,_0x20b9b7:0x1e8,_0x4a5256:0x37d,_0x164bc3:0x45e,_0xf8784a:0x438,_0x211c7b:0x421,_0x4351b0:0x2c5,_0x5564d9:0x152,_0x395ca5:0x2f5},_0x1480c3={_0x5ad77f:0x37},_0x53a93f=_0x3267ac();function _0x36e85b(_0x5a4673,_0x56a794,_0x1b4aa0,_0x57b95c){return _0x4100(_0x56a794-_0x1480c3._0x5ad77f,_0x57b95c);}function _0x343be8(_0x5e5fa0,_0x4881ab,_0x36c6b7,_0x2349d1){return _0x4100(_0x36c6b7- -0x37d,_0x5e5fa0);}while(!![]){try{const _0x1e984e=parseInt(_0x36e85b(_0x227054._0x28cabe,_0x227054._0x3cfad7,0x2b4,0x4f5))/0x1+-parseInt(_0x343be8(-0x138,-_0x227054._0x30f723,-0x132,-0x1c5))/0x2*(-parseInt(_0x343be8(-_0x227054._0x3e9574,0x161,_0x227054._0x37c13a,0x13e))/0x3)+-parseInt(_0x343be8(-_0x227054._0x3d572d,-_0x227054._0x1c1712,-0x92,-_0x227054._0x27cfc7))/0x4*(-parseInt(_0x343be8(-_0x227054._0x2d6cf0,0x80,0x1,_0x227054._0x232f75))/0x5)+-parseInt(_0x36e85b(_0x227054._0x5f0981,0x400,_0x227054._0x3bfb42,_0x227054._0xfa51ad))/0x6*(parseInt(_0x36e85b(0x2c5,_0x227054._0x5cb5f4,0x2e9,0x342))/0x7)+-parseInt(_0x343be8(-_0x227054._0xf95cdc,-_0x227054._0xc35520,-_0x227054._0x4d9aef,-_0x227054._0x20b9b7))/0x8*(parseInt(_0x36e85b(_0x227054._0x4a5256,_0x227054._0x164bc3,_0x227054._0xf8784a,0x4b1))/0x9)+-parseInt(_0x36e85b(_0x227054._0x211c7b,0x37e,0x2e5,_0x227054._0x4351b0))/0xa+parseInt(_0x36e85b(0x317,0x267,_0x227054._0x5564d9,_0x227054._0x395ca5))/0xb;if(_0x1e984e===_0x275629)break;else _0x53a93f['push'](_0x53a93f['shift']());}catch(_0x31fefc){_0x53a93f['push'](_0x53a93f['shift']());}}}(_0x2b52,0xc990d));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-P54V754C.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x2946e8 from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x255f51(0x657,0x731,0x6ab,0x67a),'.js':_0x173565(0x1dc,0x8f,0x4d,0xc6),'.jsx':_0x173565(-0xf1,0x6e,-0x71,-0x18),'.mjs':_0x255f51(0x632,0x687,0x54b,0x54c),'.cjs':'javascript','.mts':_0x255f51(0x693,0x616,0x6fe,0x702),'.cts':'typescript','.json':_0x255f51(0x6c2,0x641,0x7a0,0x640),'.jsonc':_0x255f51(0x628,0x6f3,0x640,0x595)};function getLanguageId(_0x3f8d9d){const _0x24cfca={_0x3fa516:0x167,_0xef11b3:0x55,_0x11071f:0x74,_0x69fc3b:0x6},_0x324b46={_0x101d92:0x2a0,_0x172674:0x1e7},_0x25b761={_0xfe3aff:0x5e};function _0x11ac81(_0x345ce0,_0x44558f,_0x45318b,_0x508e8f){return _0x173565(_0x345ce0-0x1d5,_0x44558f-0x1ef,_0x45318b,_0x44558f- -_0x25b761._0xfe3aff);}function _0x1751aa(_0x31d9f4,_0x4a2a9f,_0x2277a7,_0x17cd46){return _0x255f51(_0x2277a7- -_0x324b46._0x101d92,_0x4a2a9f-_0x324b46._0x172674,_0x31d9f4,_0x17cd46-0xb3);}return EXTENSION_TO_LANGUAGE[_0x2946e8[_0x11ac81(0x15c,_0x24cfca._0x3fa516,0xb2,0x5d)](_0x3f8d9d)[_0x11ac81(_0x24cfca._0xef11b3,_0x24cfca._0x11071f,-_0x24cfca._0x69fc3b,0xf9)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x99f4bb){const _0x528595={_0x41df9c:0xec,_0x16495b:0x1c7},_0x3a787e={_0x2879e3:0x505,_0x12bbfa:0x21};function _0xd2f703(_0x473c3d,_0x263268,_0x5bec59,_0x4b12b8){return _0x255f51(_0x473c3d- -_0x3a787e._0x2879e3,_0x263268-_0x3a787e._0x12bbfa,_0x263268,_0x4b12b8-0x1d7);}return pathToFileURL(_0x99f4bb)[_0xd2f703(0xae,_0x528595._0x41df9c,_0x528595._0x16495b,0xd6)]();}function textDocumentPosition(_0x59e8d8){const _0x588f18={_0x4dc719:0x560,_0x2d8fe7:0x574,_0x129136:0x626},_0x5208d0={_0x4386e0:0x58,_0x3f7cb9:0x326},_0x45f915={_0x4bb0dd:0x1dc,_0x2b43de:0x4c9};function _0x770a42(_0x47fe9c,_0x4a7cec,_0x4ca821,_0x32e37f){return _0x173565(_0x47fe9c-_0x45f915._0x4bb0dd,_0x4a7cec-0x1e9,_0x4ca821,_0x32e37f-_0x45f915._0x2b43de);}function _0x3ef6b0(_0x2a17e0,_0x29818d,_0x264296,_0x46fb0f){return _0x173565(_0x2a17e0-_0x5208d0._0x4386e0,_0x29818d-0x1e,_0x29818d,_0x264296-_0x5208d0._0x3f7cb9);}return{'textDocument':{'uri':uriForPath(_0x59e8d8[_0x3ef6b0(_0x588f18._0x4dc719,_0x588f18._0x2d8fe7,0x538,0x4d6)])},'position':{'line':_0x59e8d8[_0x3ef6b0(0x2ff,0x355,0x3c0,0x2ab)],'character':_0x59e8d8[_0x770a42(0x4fc,_0x588f18._0x129136,0x56f,0x5a0)]}};}function normalizeLocations(_0x4f6fa8){if(!_0x4f6fa8)return[];return Array['isArray'](_0x4f6fa8)?_0x4f6fa8:[_0x4f6fa8];}async function createLspClient(_0x5b9213){const _0x238bfe={_0x23aa8e:0x49e,_0x408f03:0x5c1,_0x1b2c44:0x5de,_0x18adde:0x593,_0x41d33b:0x535,_0x55f9d4:0x5b4,_0x38bb34:0x464,_0x313a26:0x572,_0x1aec62:0x5fb,_0x364d82:0x573,_0x3183e7:0x651,_0x34730b:0x56f,_0x3fde93:0x738,_0x52c58e:0x63d,_0x29253e:0x178,_0x558207:0xc3,_0x44068c:0xac,_0x30b15c:0x550,_0x2241e3:0x4ed,_0x2ccca3:0x612,_0x2a5dbc:0x45e,_0x5d18b3:0x59c,_0x249ddc:0x586,_0x116eca:0x515,_0x295c82:0x63,_0x306706:0xf1,_0x75f3ae:0xf,_0x4dc6a2:0x10a,_0x4965ca:0x4f3,_0x372577:0x61a,_0x245697:0x71,_0x4a4533:0x8c,_0x4ac451:0x85,_0x239835:0xad,_0xceaf81:0x10e,_0x24fc41:0xb1,_0x4acdbf:0x3c,_0x4bd08d:0x9,_0x50d38b:0xe7,_0x289400:0xf1,_0x21ecb9:0x13,_0x28872c:0xe0,_0xfc22ac:0x48},_0x40d5ec={_0x5626d9:0x19d,_0x518bf0:0x104,_0x28e545:0xb3,_0x5b1719:0x1a9,_0x118ea2:0x115,_0x27c0a1:0x5f8,_0x310976:0x49e,_0x1016eb:0x53a,_0x3d8b4d:0x593,_0x1cc187:0x448,_0x332efd:0x2b,_0x4e1c95:0x403,_0x1f4b03:0x440,_0x4a38e1:0x3a0},_0x6b5a2b={_0x113c1c:0x1d7,_0x598525:0x1b7},_0x5b1859={_0x508d07:0x335,_0x394fda:0x30a,_0x407532:0x3e7,_0x5328eb:0x499,_0x4c8e19:0x568},_0x487690={_0x28e277:0xd,_0x36fd7a:0x65,_0x43e4a9:0x138,_0xf29b6a:0x24,_0x14bd7f:0x14,_0x1dd9ba:0xbc},_0x4b4407={_0x285bde:0x1e8,_0x31b382:0x208,_0x1761ce:0x1bf},_0x200e69={_0x5b154d:0x578,_0x37629b:0x520,_0x19e07d:0x41f,_0x37b79:0x2db,_0x22c0cb:0x336},_0x329dd4={_0x4470ec:0xc5,_0x361116:0x1b3},_0x45ab8a={_0xe18071:0x1bc,_0x34283e:0x62a,_0x2a52b5:0x1b},_0x1ac207={_0x149229:0x261,_0x3d31c6:0x3fd},_0x1c2d32={_0x1a5353:0x71b,_0x5867cf:0x682,_0x28925b:0x710},_0x285469={_0x1b4701:0x193},_0x56a994={_0x44dd34:0x53,_0x57814d:0x1be},_0x36cd0d={_0xd34d9e:0x348,_0x514e32:0x52b},_0x27241c={_0x27c5ea:0x139,_0x442867:0x95,_0x23a9db:0x143,_0x495294:0x58},_0xeba4d7={_0x196577:0x243,_0x57689c:0xcd},_0x3dd08b={_0x2ccbbc:0xe1,_0x1df1ea:0x7a,_0x34c1bd:0x139,_0x15f2e8:0x3b,_0x129506:0xeb},_0x50b1a3={_0x40c482:0x321,_0x39b82d:0x44a},_0x3d32d8={_0x40f082:0xe1,_0x23b04b:0xde,_0x27934e:0x1c9,_0x517e7f:0x1d1,_0x576936:0x1b1},_0xfe5c59={_0x259391:0x1ca,_0x5e709f:0x424,_0x35c4df:0xf3},_0x1b0441={_0x53e744:0x496},_0x1e563b={_0x22e822:0x524,_0x578bd6:0x741,_0x4a16dd:0x57a,_0x33e811:0x66c},_0x199a4d={_0x50d978:0x1d5,_0x2a572b:0x65},_0x5e8786={_0x530d92:0x723,_0x4f755a:0x596,_0x6af9a6:0x6a7,_0x2886cf:0x6c2},_0x141262={_0x579c74:0x5a,_0x4049ae:0x186,_0x1e6585:0x15a},_0x3d7bce={_0x4981c9:0x1d5,_0x438b95:0x305,_0x17f159:0x247,_0x17394c:0x1fb,_0x403db5:0x320,_0x2e1e04:0xd3,_0x1bd324:0x333,_0x42281e:0x2cd,_0x4e7db6:0x3de},_0x38a3c7={_0x3d5078:0x21,_0x171999:0x40f},_0x4f2116={_0x45330d:0x1c1};function _0x388125(_0x14deff,_0x36c402,_0x48cfcf,_0x13876b){return _0x173565(_0x14deff-_0x4f2116._0x45330d,_0x36c402-0x128,_0x36c402,_0x48cfcf- -0x10d);}const _0xdb0d7d=_0x5b9213[_0x311372(_0x238bfe._0x23aa8e,0x498,_0x238bfe._0x408f03,0x572)][_0x311372(_0x238bfe._0x1b2c44,_0x238bfe._0x18adde,0x581,0x5a0)][_0x311372(_0x238bfe._0x41d33b,0x4f6,_0x238bfe._0x55f9d4,0x558)],_0x40c3bc=_0x5b9213[_0x311372(0x4f4,_0x238bfe._0x38bb34,0x694,_0x238bfe._0x313a26)][_0x311372(_0x238bfe._0x1aec62,0x4d6,_0x238bfe._0x364d82,0x5a0)][_0x311372(_0x238bfe._0x3183e7,0x5ab,0x4af,0x57e)];if(!_0xdb0d7d||!_0x40c3bc)throw new Error(_0x311372(0x652,_0x238bfe._0x34730b,_0x238bfe._0x3fde93,_0x238bfe._0x52c58e));const _0x454624=createMessageConnection(new StreamMessageReader(_0xdb0d7d),new StreamMessageWriter(_0x40c3bc)),_0x2aa8ce=new Map(),_0x5d9661=new Map();let _0x15c109=![];_0x454624[_0x388125(-_0x238bfe._0x29253e,-_0x238bfe._0x558207,-0x123,-_0x238bfe._0x44068c)](_0x311372(0x5d1,_0x238bfe._0x30b15c,_0x238bfe._0x2241e3,_0x238bfe._0x2ccca3),_0x7dd1bf=>{const _0x483438={_0x257702:0x1a9};_0x2aa8ce[_0x3e73d8(_0x3d7bce._0x4981c9,0x264,_0x3d7bce._0x438b95,0x225)](_0x7dd1bf[_0x3e73d8(0x393,0x333,0x2cb,0x26d)],_0x7dd1bf[_0x3e73d8(_0x3d7bce._0x17f159,_0x3d7bce._0x17394c,0x156,_0x3d7bce._0x403db5)]);const _0x412673=_0x5d9661[_0x3e73d8(_0x3d7bce._0x2e1e04,0x146,0x242,0x1dd)](_0x7dd1bf[_0x3e73d8(0x237,_0x3d7bce._0x1bd324,_0x3d7bce._0x42281e,0x401)]);if(!_0x412673)return;_0x5d9661['delete'](_0x7dd1bf[_0x3e73d8(_0x3d7bce._0x4e7db6,_0x3d7bce._0x1bd324,0x390,0x217)]);function _0x3e73d8(_0x5afed8,_0x5b78dc,_0x5aa2b4,_0xd92fff){return _0x311372(_0x5afed8-_0x38a3c7._0x3d5078,_0xd92fff,_0x5aa2b4-0xc5,_0x5b78dc- -_0x38a3c7._0x171999);}function _0x333710(_0x2e9761,_0x1c8402,_0x2141d8,_0x430364){return _0x311372(_0x2e9761-0x40,_0x430364,_0x2141d8-_0x483438._0x257702,_0x2e9761- -0x241);}for(const _0x236fec of _0x412673)_0x236fec();}),_0x454624[_0x311372(_0x238bfe._0x2a5dbc,0x519,_0x238bfe._0x5d18b3,_0x238bfe._0x249ddc)]();const _0x26a47e=await _0x454624[_0x311372(0x5d8,0x400,0x57e,_0x238bfe._0x116eca)](_0x388125(_0x238bfe._0x295c82,-0xe,0x4c,-0x1c),{'processId':process['pid'],'rootUri':uriForPath(_0x5b9213[_0x311372(0x73d,0x649,0x700,0x710)]),'workspaceFolders':[{'uri':uriForPath(_0x5b9213[_0x388125(0x214,0x2d,_0x238bfe._0x306706,_0x238bfe._0x75f3ae)]),'name':_0x5b9213[_0x388125(0xe4,0x64,0x56,_0x238bfe._0x4dc6a2)]['id']}],'initializationOptions':_0x5b9213[_0x311372(_0x238bfe._0x4965ca,_0x238bfe._0x372577,0x541,0x572)][_0x388125(-0x195,_0x238bfe._0x245697,-_0x238bfe._0x4a4533,_0x238bfe._0x4ac451)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x388125(-0x75,_0x238bfe._0x239835,-0x27,-_0x238bfe._0xceaf81),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});function _0x311372(_0x1c01e1,_0x24dd3a,_0x16343d,_0x19d022){return _0x255f51(_0x19d022- -_0x141262._0x579c74,_0x24dd3a-_0x141262._0x4049ae,_0x24dd3a,_0x19d022-_0x141262._0x1e6585);}_0x454624[_0x388125(_0x238bfe._0x24fc41,-0x12d,-_0x238bfe._0x4acdbf,0xa)](_0x388125(0x24,-0x59,_0x238bfe._0x4bd08d,0xf8),{});const _0x2e3acf={'serverId':_0x5b9213['server']['id'],'root':_0x5b9213[_0x388125(_0x238bfe._0x50d38b,0x52,_0x238bfe._0x289400,0x196)],'connection':_0x454624,'diagnostics':_0x2aa8ce,'capabilities':_0x26a47e[_0x388125(_0x238bfe._0x21ecb9,-0x13b,-_0x238bfe._0x28872c,-_0x238bfe._0xfc22ac)]??{},'notify':{async 'open'({path:_0x5d771f}){const _0xa6cb0d={_0x3faaa3:0x16d,_0x32ccdb:0xac,_0x16bb57:0x45};function _0x67b71d(_0x1e1482,_0xbf4972,_0x52ca0a,_0x1b3c0e){return _0x311372(_0x1e1482-_0xa6cb0d._0x3faaa3,_0x52ca0a,_0x52ca0a-_0xa6cb0d._0x32ccdb,_0xbf4972- -_0xa6cb0d._0x16bb57);}const _0x299cf1=await readFile(_0x5d771f,'utf8');function _0x48579a(_0x3f505a,_0x296354,_0x964060,_0x44df9a){return _0x388125(_0x3f505a-0x13b,_0x3f505a,_0x296354-0x64b,_0x44df9a-0x3b);}_0x454624[_0x48579a(_0x5e8786._0x530d92,0x60f,_0x5e8786._0x4f755a,_0x5e8786._0x6af9a6)](_0x48579a(0x76e,0x673,0x798,0x6a4),{'textDocument':{'uri':uriForPath(_0x5d771f),'languageId':getLanguageId(_0x5d771f)??_0x48579a(0x7d9,_0x5e8786._0x2886cf,0x5f6,0x6da),'version':0x1,'text':_0x299cf1}});},async 'change'({path:_0x300abc,version:_0x2b021b}){const _0x4d7c9f={_0x30e978:0x24};function _0x1a75d0(_0x3a5045,_0x2c8a4a,_0x35b477,_0x3d060a){return _0x311372(_0x3a5045-_0x199a4d._0x50d978,_0x3a5045,_0x35b477-0x18,_0x35b477-_0x199a4d._0x2a572b);}const _0x2e2069=await readFile(_0x300abc,'utf8');function _0x4f0297(_0x52da39,_0x1385e7,_0x5b4e93,_0x52282c){return _0x388125(_0x52da39-_0x4d7c9f._0x30e978,_0x5b4e93,_0x52da39-0xde,_0x52282c-0xa);}_0x454624[_0x1a75d0(_0x1e563b._0x22e822,_0x1e563b._0x578bd6,0x648,_0x1e563b._0x4a16dd)](_0x1a75d0(0x79a,0x737,_0x1e563b._0x33e811,0x605),{'textDocument':{'uri':uriForPath(_0x300abc),'version':_0x2b021b},'contentChanges':[{'text':_0x2e2069}]});},async 'close'({path:_0x1683b2}){const _0x7d7874={_0xe4a11:0x48b};function _0x26fecb(_0x10d26b,_0x34bb4d,_0x55fe1a,_0x20712b){return _0x388125(_0x10d26b-0xd9,_0x20712b,_0x34bb4d-_0x7d7874._0xe4a11,_0x20712b-0x10d);}_0x454624[_0x26fecb(_0x1b0441._0x53e744,0x44f,0x375,0x43a)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x1683b2)}});}},'request':{async 'definition'(_0x5d1c13){const _0x3cbbaf={_0x2e6b7d:0x1d4};function _0x531c3c(_0x530d39,_0x187ae1,_0x2fa178,_0x4d18f9){return _0x388125(_0x530d39-_0xfe5c59._0x259391,_0x530d39,_0x4d18f9-_0xfe5c59._0x5e709f,_0x4d18f9-_0xfe5c59._0x35c4df);}function _0x2c0d36(_0x5ed4c3,_0x534b48,_0x48b605,_0x2246b5){return _0x311372(_0x5ed4c3-0x11c,_0x2246b5,_0x48b605-_0x3cbbaf._0x2e6b7d,_0x48b605- -0x437);}return normalizeLocations(await _0x454624[_0x2c0d36(_0x3d32d8._0x40f082,0x102,_0x3d32d8._0x23b04b,_0x3d32d8._0x27934e)](_0x2c0d36(_0x3d32d8._0x517e7f,_0x3d32d8._0x576936,0x129,0xbb),textDocumentPosition(_0x5d1c13)));},async 'references'(_0x1e8984){function _0x454b98(_0x211c30,_0x5bd454,_0x431bea,_0xce03dd){return _0x388125(_0x211c30-0x33,_0x5bd454,_0x431bea-0x42b,_0xce03dd-0x134);}return normalizeLocations(await _0x454624[_0x454b98(0x433,0x314,_0x50b1a3._0x40c482,_0x50b1a3._0x39b82d)]('textDocument/references',{...textDocumentPosition(_0x1e8984),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x319134){const _0x52ef91={_0xc20208:0x72,_0x1453e0:0x76},_0x28f95c={_0x214cfc:0x10e};function _0x288003(_0x57ca8b,_0x17fe21,_0x2ee649,_0x532a15){return _0x388125(_0x57ca8b-0x1f2,_0x57ca8b,_0x17fe21-0x1eb,_0x532a15-_0x28f95c._0x214cfc);}function _0x53b06e(_0x9104fe,_0x1f9e1a,_0x2aece7,_0x52b8bb){return _0x388125(_0x9104fe-_0x52ef91._0xc20208,_0x1f9e1a,_0x52b8bb- -0xbf,_0x52b8bb-_0x52ef91._0x1453e0);}return await _0x454624[_0x288003(0x36,_0x3dd08b._0x2ccbbc,_0x3dd08b._0x1df1ea,0x1d6)](_0x288003(0x1ad,_0x3dd08b._0x34c1bd,_0x3dd08b._0x15f2e8,_0x3dd08b._0x129506),textDocumentPosition(_0x319134))??null;},async 'documentSymbol'(_0x30fd96){const _0x595516={_0x215ffe:0xe5};function _0x401eb3(_0x319aa1,_0x2498ea,_0x38574b,_0x443851){return _0x388125(_0x319aa1-_0x595516._0x215ffe,_0x319aa1,_0x38574b-0xcf,_0x443851-0x165);}function _0x59cd4d(_0x5b09f1,_0x1d7060,_0x219815,_0x3fcb64){return _0x388125(_0x5b09f1-0x7f,_0x1d7060,_0x5b09f1-_0xeba4d7._0x196577,_0x3fcb64-_0xeba4d7._0x57689c);}return await _0x454624[_0x59cd4d(_0x27241c._0x27c5ea,_0x27241c._0x442867,0x1a0,0xef)](_0x401eb3(0x247,0x241,_0x27241c._0x23a9db,_0x27241c._0x495294),{'textDocument':{'uri':uriForPath(_0x30fd96)}})??[];},async 'workspaceSymbol'(_0x122861){const _0x1557a3={_0x3e98cd:0x124,_0x50f03b:0x57f};function _0x5ceca0(_0x180f4a,_0x3e2eb0,_0x4c7e64,_0x77438f){return _0x388125(_0x180f4a-_0x1557a3._0x3e98cd,_0x77438f,_0x180f4a-_0x1557a3._0x50f03b,_0x77438f-0x7a);}return await _0x454624[_0x5ceca0(0x475,0x37e,_0x36cd0d._0xd34d9e,_0x36cd0d._0x514e32)]('workspace/symbol',{'query':_0x122861})??[];},async 'implementation'(_0x793fc2){function _0x294d78(_0x12be69,_0x5f3bf4,_0x36db4b,_0xd7b6be){return _0x388125(_0x12be69-_0x56a994._0x44dd34,_0x12be69,_0x5f3bf4-0x6b3,_0xd7b6be-_0x56a994._0x57814d);}function _0x4296cc(_0x3f989f,_0x38d67e,_0x4d725d,_0x5bed10){return _0x388125(_0x3f989f-_0x285469._0x1b4701,_0x5bed10,_0x38d67e-0x57c,_0x5bed10-0x187);}return normalizeLocations(await _0x454624[_0x294d78(0x509,0x5a9,0x63c,0x4f1)](_0x294d78(_0x1c2d32._0x1a5353,_0x1c2d32._0x5867cf,0x6e9,_0x1c2d32._0x28925b),textDocumentPosition(_0x793fc2)));},async 'prepareCallHierarchy'(_0x3f24eb){const _0x488869={_0x40a4bb:0x15a,_0xa9e738:0x444,_0x1b9227:0x86};function _0x4ba8d1(_0x4d7fe2,_0x3b2c4f,_0x385a1e,_0x13cc42){return _0x388125(_0x4d7fe2-_0x488869._0x40a4bb,_0x13cc42,_0x4d7fe2-_0x488869._0xa9e738,_0x13cc42-_0x488869._0x1b9227);}return await _0x454624[_0x4ba8d1(0x33a,_0x1ac207._0x149229,0x2b4,_0x1ac207._0x3d31c6)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x3f24eb))??[];},async 'incomingCalls'(_0x363fa3){function _0x3a119e(_0x89c4fc,_0x6aab84,_0x321943,_0x31a404){return _0x388125(_0x89c4fc-_0x45ab8a._0xe18071,_0x6aab84,_0x321943-_0x45ab8a._0x34283e,_0x31a404-_0x45ab8a._0x2a52b5);}function _0x5cb703(_0x272a22,_0x486ebf,_0xe80f6c,_0x213a73){return _0x388125(_0x272a22-_0x329dd4._0x4470ec,_0xe80f6c,_0x486ebf-0x31b,_0x213a73-_0x329dd4._0x361116);}return await _0x454624[_0x3a119e(0x470,_0x200e69._0x5b154d,_0x200e69._0x37629b,_0x200e69._0x19e07d)](_0x5cb703(0x3a0,_0x200e69._0x37b79,_0x200e69._0x22c0cb,0x3a6),{'item':_0x363fa3})??[];},async 'outgoingCalls'(_0x1714bd){const _0x8ecc98={_0x292803:0x12f,_0x5ea3f4:0x4b5};function _0x94f8b4(_0x5453a5,_0x515723,_0x5d8c00,_0x4febba){return _0x311372(_0x5453a5-0x118,_0x5453a5,_0x5d8c00-_0x8ecc98._0x292803,_0x515723- -_0x8ecc98._0x5ea3f4);}return await _0x454624['sendRequest'](_0x94f8b4(_0x4b4407._0x285bde,_0x4b4407._0x31b382,_0x4b4407._0x1761ce,0x12f),{'item':_0x1714bd})??[];}},'waitForDiagnostics'({path:_0x1db329,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x32d3e3={_0x2bf7ff:0xce,_0x3a1be4:0x5ed},_0x523f79={_0xa22a35:0x38e,_0x49df3a:0x2bd,_0x519de4:0x384,_0xb4e683:0x125,_0x464c0d:0x2b,_0x488806:0x60},_0x2a6671={_0x285015:0x3a},_0x4a63cd=uriForPath(_0x1db329);function _0x4221f0(_0x5ea08f,_0x360153,_0x2f58c3,_0x5a27b2){return _0x311372(_0x5ea08f-0x16e,_0x5a27b2,_0x2f58c3-_0x2a6671._0x285015,_0x2f58c3- -0x270);}if(_0x2aa8ce[_0x4221f0(_0x5b1859._0x508d07,_0x5b1859._0x394fda,_0x5b1859._0x407532,_0x5b1859._0x5328eb)](_0x4a63cd))return Promise[_0x12ecc1(0x51f,0x515,_0x5b1859._0x4c8e19,0x5d1)]();function _0x12ecc1(_0x3725d1,_0xc29ede,_0x8cc260,_0x4a2a5a){return _0x311372(_0x3725d1-0x172,_0x3725d1,_0x8cc260-0x1d0,_0x4a2a5a-0xa2);}return new Promise(_0x9203e4=>{const _0x2fae61={_0x316b6c:0x102,_0x50c3df:0x630},_0xab365e={_0x1b904f:0x28c},_0x46cc7f=setTimeout(()=>{const _0x355674=_0x5d9661['get'](_0x4a63cd);function _0xd63709(_0x3235ee,_0xbd26b5,_0x41a0cf,_0x42b102){return _0x4100(_0xbd26b5- -0xa2,_0x42b102);}_0x355674?.[_0xd63709(_0x523f79._0xa22a35,_0x523f79._0x49df3a,_0x523f79._0x519de4,0x36d)](_0x59583f);function _0x116211(_0xe0fcfa,_0x40ba35,_0x1a0594,_0x582f73){return _0x4100(_0x40ba35- -_0xab365e._0x1b904f,_0xe0fcfa);}if(_0x355674?.[_0x116211(_0x523f79._0xb4e683,0x87,_0x523f79._0x464c0d,_0x523f79._0x488806)]===0x0)_0x5d9661['delete'](_0x4a63cd);_0x9203e4();},timeoutMs),_0x59583f=()=>{clearTimeout(_0x46cc7f),_0x9203e4();};function _0x546b1c(_0x2bdeff,_0x5ed56d,_0x34bb1e,_0x3467fa){return _0x12ecc1(_0x34bb1e,_0x5ed56d-0x17f,_0x34bb1e-_0x32d3e3._0x2bf7ff,_0x2bdeff- -_0x32d3e3._0x3a1be4);}const _0x5541e9=_0x5d9661[_0x546b1c(0xa,_0x487690._0x28e277,_0x487690._0x36fd7a,_0x487690._0x43e4a9)](_0x4a63cd)??new Set();_0x5541e9[_0x546b1c(-0x3,-_0x487690._0xf29b6a,-_0x487690._0x14bd7f,_0x487690._0x1dd9ba)](_0x59583f);function _0x5e635e(_0x595bbc,_0x3eb603,_0x1b6ce8,_0x1af9b6){return _0x12ecc1(_0x1af9b6,_0x3eb603-_0x2fae61._0x316b6c,_0x1b6ce8-0x1a9,_0x595bbc- -_0x2fae61._0x50c3df);}_0x5d9661['set'](_0x4a63cd,_0x5541e9);});},async 'shutdown'(){const _0x4422e7={_0x5bb4db:0x93,_0x481265:0xc0};function _0x535d8f(_0x27bb38,_0x46bc6c,_0x450e22,_0x49322e){return _0x311372(_0x27bb38-_0x6b5a2b._0x113c1c,_0x27bb38,_0x450e22-_0x6b5a2b._0x598525,_0x450e22- -0x200);}function _0x53601a(_0x3858fd,_0x10c5bc,_0x2eab65,_0x227dc7){return _0x388125(_0x3858fd-0xa9,_0x10c5bc,_0x3858fd- -_0x4422e7._0x5bb4db,_0x227dc7-_0x4422e7._0x481265);}if(_0x15c109)return;_0x15c109=!![];try{await _0x454624[_0x53601a(-_0x40d5ec._0x5626d9,-0x1eb,-0x1fd,-_0x40d5ec._0x518bf0)](_0x53601a(-0x18b,-_0x40d5ec._0x28e545,-0x93,-_0x40d5ec._0x5b1719),null),_0x454624[_0x53601a(-0xcf,-_0x40d5ec._0x118ea2,-0x184,-0x16d)](_0x535d8f(_0x40d5ec._0x27c0a1,_0x40d5ec._0x310976,_0x40d5ec._0x1016eb,_0x40d5ec._0x3d8b4d));}catch{}finally{_0x454624[_0x535d8f(0x521,0x434,_0x40d5ec._0x1cc187,0x368)](),_0x5b9213[_0x53601a(-0x140,-_0x40d5ec._0x332efd,-0x100,-0xdc)][_0x535d8f(_0x40d5ec._0x4e1c95,_0x40d5ec._0x1f4b03,_0x40d5ec._0x4a38e1,0x40f)]['kill']();}}};return _0x2e3acf;}import{spawn as _0x383c01}from'child_process';import{access as _0x56e75c}from'fs/promises';import _0x1833a3 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x8b2779 from'os';import _0x3ae68c from'path';import _0x1cd4e7 from'which';var installPromises=new Map();function sanitizePackageName(_0x288154){const _0x215fad={_0x48a98b:0x2e2},_0x2491ff={_0xe83f54:0x168,_0x542702:0x13f};function _0x3e12d1(_0x6297f0,_0x42d304,_0x54ec8f,_0x5a529d){return _0x255f51(_0x6297f0- -0x3e0,_0x42d304-_0x2491ff._0xe83f54,_0x42d304,_0x5a529d-_0x2491ff._0x542702);}return _0x288154[_0x3e12d1(0x26e,0x346,_0x215fad._0x48a98b,0x32d)](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0xfb7eda){const _0x4e4dd8={_0x5ad881:0x37a},_0x422c31={_0x2823c5:0xc6,_0x2c9f75:0x13a};function _0x25a85f(_0x37378a,_0x120daf,_0xde68bf,_0xa7caca){return _0x255f51(_0xa7caca- -0x500,_0x120daf-_0x422c31._0x2823c5,_0xde68bf,_0xa7caca-_0x422c31._0x2c9f75);}return process[_0x25a85f(_0x4e4dd8._0x5ad881,0x2e5,0x381,0x26b)]==='win32'?_0xfb7eda+'.cmd':_0xfb7eda;}async function exists(_0x1bd7ae){try{return await access(_0x1bd7ae),!![];}catch{return![];}}function runNpmInstall(_0x4a4bb7,_0x4582f0,_0x3a2320){const _0x5117fe={_0x2ae102:0x5f,_0x489cfe:0x12f,_0x4df0ec:0x216,_0x259df3:0xeb,_0x50e138:0xfd,_0x28e1dc:0x15b,_0x5d50be:0x29,_0x10533d:0x9e,_0x3e797c:0xc,_0x37f6e5:0x6e,_0x167b2b:0xb4,_0x1626ac:0x1a},_0x3e217c={_0x507e60:0x1a9},_0x50a63b={_0x34342a:0x2a5};return new Promise(_0x553054=>{const _0x339a7e=spawn('npm',[_0x426ff7(_0x5117fe._0x2ae102,0x78,0x13b,_0x5117fe._0x489cfe),_0x426ff7(_0x5117fe._0x4df0ec,_0x5117fe._0x259df3,_0x5117fe._0x50e138,0x14b),_0x4a4bb7,_0x4582f0],{'env':_0x3a2320,'stdio':_0x426ff7(0xcd,_0x5117fe._0x28e1dc,_0x5117fe._0x5d50be,_0x5117fe._0x10533d)});_0x339a7e['on'](_0x4b370e(-0x9f,-_0x5117fe._0x3e797c,-_0x5117fe._0x37f6e5,_0x5117fe._0x167b2b),()=>_0x553054(![]));function _0x4b370e(_0x31e5b3,_0x5a8ab0,_0x29cea8,_0x362405){return _0x4100(_0x5a8ab0- -_0x50a63b._0x34342a,_0x31e5b3);}function _0x426ff7(_0x6c9d59,_0x5bba07,_0x36cfc5,_0x2989a2){return _0x4100(_0x6c9d59- -_0x3e217c._0x507e60,_0x36cfc5);}_0x339a7e['on'](_0x4b370e(0xd0,0x10b,0x7,_0x5117fe._0x1626ac),_0x4d9589=>_0x553054(_0x4d9589===0x0));});}function shouldDisableLspDownload(_0x2af2fc=process[_0x173565(0x57,0x44,0x12f,0x9b)]){const _0x4fa86c={_0x533cb0:0x32,_0x31b8e5:0x8f,_0xefdf1a:0x4c,_0x25e071:0x3,_0x488599:0xa1},_0x2ac133={_0x28ec2a:0x110};function _0x2d1aca(_0x16f919,_0x3f228c,_0x2d7fed,_0x2f73a3){return _0x173565(_0x16f919-_0x2ac133._0x28ec2a,_0x3f228c-0x19b,_0x3f228c,_0x2f73a3-0x33a);}const _0x2dcd08=_0x2af2fc[_0x3af1b7(0x4b,_0x4fa86c._0x533cb0,_0x4fa86c._0x31b8e5,0x134)]?.[_0x3af1b7(-0xd0,_0x4fa86c._0xefdf1a,_0x4fa86c._0x25e071,-0x44)]();function _0x3af1b7(_0x328c61,_0x5c1727,_0x5badd1,_0x43938a){return _0x255f51(_0x328c61- -0x70e,_0x5c1727-0x197,_0x5badd1,_0x43938a-0x1c6);}return _0x2dcd08==='true'||_0x2dcd08==='1'||_0x2dcd08===_0x3af1b7(-0x5b,-_0x4fa86c._0x488599,0x3,-0x12b)||_0x2dcd08==='on';}function getLspPackageDir(_0x2640e9){const _0x3cfb19={_0x46e690:0x465,_0x14e3da:0x4fb,_0x50fcc4:0x561,_0x56283c:0x62b,_0x47cc30:0x5f2,_0x31fa15:0x599},_0x2b9c4e={_0x3c98d0:0x17e,_0x36356b:0xa6,_0x3cd72a:0x410},_0x3b699f={_0x142406:0x51,_0x2b3dc9:0x1b7};function _0x38497e(_0x4dfee5,_0x163ec9,_0x3b2d61,_0x5a4ede){return _0x255f51(_0x3b2d61- -_0x3b699f._0x142406,_0x163ec9-_0x3b699f._0x2b3dc9,_0x4dfee5,_0x5a4ede-0x1d0);}function _0x1453e9(_0x29005,_0x21e3f1,_0x59f468,_0x344505){return _0x173565(_0x29005-_0x2b9c4e._0x3c98d0,_0x21e3f1-_0x2b9c4e._0x36356b,_0x21e3f1,_0x29005-_0x2b9c4e._0x3cd72a);}return _0x3ae68c[_0x1453e9(0x494,_0x3cfb19._0x46e690,0x515,_0x3cfb19._0x14e3da)](_0x8b2779[_0x1453e9(_0x3cfb19._0x50fcc4,0x515,0x5c6,0x4a1)](),_0x1453e9(0x62c,0x646,_0x3cfb19._0x56283c,0x6f2),'lsp',_0x1453e9(_0x3cfb19._0x47cc30,0x643,0x644,_0x3cfb19._0x31fa15),sanitizePackageName(_0x2640e9));}function getLspBinDir(_0x10ce9d){function _0x308f32(_0x112864,_0x51af69,_0x3a7d1b,_0x37939e){return _0x255f51(_0x51af69- -0x694,_0x51af69-0x78,_0x3a7d1b,_0x37939e-0xcf);}return _0x3ae68c[_0x308f32(-0xd8,-0xa4,-0x1b2,-0xc3)](getLspPackageDir(_0x10ce9d),'node_modules','.bin');}async function findPackageBinary(_0x5c1224,_0x373e64){const _0x418616={_0x268f45:0x45f,_0x5cfd02:0x47c,_0x5dd08b:0x163,_0x54fcb8:0x138,_0x498b92:0x18d,_0x2a65f:0x10b,_0x5bb06f:0x4a2,_0x1a0ed0:0x4fd},_0xbccd48={_0x420f72:0xfe};function _0x2350d2(_0x5d8cb6,_0x513853,_0x344b48,_0x513d55){return _0x173565(_0x5d8cb6-0x26,_0x513853-0x1d1,_0x513d55,_0x513853- -_0xbccd48._0x420f72);}function _0x5a3235(_0x442499,_0x5de3c0,_0x1be37e,_0x334804){return _0x173565(_0x442499-0x1a,_0x5de3c0-0x1a,_0x5de3c0,_0x1be37e-0x55f);}let _0x9c4c42=_0x3ae68c[_0x5a3235(0x5c2,_0x418616._0x268f45,0x57c,_0x418616._0x5cfd02)](_0x373e64);const _0xd86510=binaryNameForPlatform(_0x5c1224);while(!![]){const _0x33d094=_0x3ae68c['join'](_0x9c4c42,_0x2350d2(_0x418616._0x5dd08b,_0x418616._0x54fcb8,_0x418616._0x498b92,0x15d),_0x2350d2(_0x418616._0x2a65f,0x107,0x33,0x1de),_0xd86510);if(await exists(_0x33d094))return _0x33d094;const _0xebde91=_0x3ae68c[_0x5a3235(0x512,_0x418616._0x5bb06f,0x5a3,_0x418616._0x1a0ed0)](_0x9c4c42);if(_0xebde91===_0x9c4c42)return void 0x0;_0x9c4c42=_0xebde91;}}async function findPathBinary(_0x177738,_0xbbb833){const _0x7ec652={_0x28dca8:0x1d5,_0x2e1a7e:0x1c,_0x5091d0:0x134,_0xd129db:0x67,_0x3c70fd:0x10b,_0x9f92ca:0x47d,_0x21e3db:0xdf,_0x49785b:0x1f5},_0x2568f7={_0x445fd8:0x750,_0x5006f8:0x8e},_0x5f210d={_0x49c087:0x2a5};function _0x3d718(_0x3dcc18,_0x1fc1e7,_0x317b61,_0x1bdb5b){return _0x173565(_0x3dcc18-0x6b,_0x1fc1e7-0x162,_0x1fc1e7,_0x317b61-_0x5f210d._0x49c087);}const _0x103e38=getLspBinDir(_0xbbb833),_0x303ab8=[_0x103e38,process[_0x334ef5(-_0x7ec652._0x28dca8,-_0x7ec652._0x2e1a7e,-0x228,-0x149)][_0x334ef5(-_0x7ec652._0x5091d0,-_0x7ec652._0xd129db,-0x16,-_0x7ec652._0x3c70fd)]][_0x3d718(0x3dc,0x3ec,_0x7ec652._0x9f92ca,0x59d)](Boolean)['join'](_0x3ae68c[_0x334ef5(-0x2ed,-_0x7ec652._0x21e3db,-_0x7ec652._0x49785b,-0x1f8)]);function _0x334ef5(_0x3d35f6,_0x5445b0,_0x1fb755,_0x2b61aa){return _0x255f51(_0x2b61aa- -_0x2568f7._0x445fd8,_0x5445b0-0x1c7,_0x1fb755,_0x2b61aa-_0x2568f7._0x5006f8);}try{return await _0x1cd4e7(_0x177738,{'path':_0x303ab8});}catch{return void 0x0;}}async function resolvePackageBinary(_0x2ab957){const _0x27e670={_0x1074ee:0x5c6,_0x42332c:0x56a,_0x27d8a5:0x6c6,_0x39de26:0x78f,_0x11c268:0x63e,_0x130f7a:0x4f6,_0x398d24:0x563,_0x12e1ef:0x5b0,_0x24963d:0x3fe,_0x520a00:0x3f4,_0x5b4952:0x490,_0x5478c0:0x4c6,_0x447c47:0x6b5,_0x2aa458:0x6b7,_0x14bfa6:0x7d6,_0x5a6bc0:0x6f8,_0x2ce68c:0x73d},_0x3c4a5d={_0xbf8d0e:0x414,_0x131e8a:0x301,_0xbdc2cf:0x31e,_0x3df82d:0x26f,_0x8d1119:0x1d6,_0x364cfa:0x356},_0x3b43d2={_0x3a456d:0xe0},_0x27bf01={_0x12042f:0x1e3,_0x5092ca:0x3f5},_0x5ef432={_0x272e76:0xf6,_0x5e03f7:0x558},_0x51ad94=_0x2ab957[_0x176ab7(_0x27e670._0x1074ee,0x612,_0x27e670._0x42332c,0x6e9)]??_0x2ab957[_0x176ab7(_0x27e670._0x27d8a5,_0x27e670._0x39de26,0x664,0x744)];function _0x176ab7(_0x5e69eb,_0x16ad48,_0x3ba284,_0xdb019e){return _0x173565(_0x5e69eb-0x91,_0x16ad48-_0x5ef432._0x272e76,_0xdb019e,_0x5e69eb-_0x5ef432._0x5e03f7);}const _0x4cf49f=await findPackageBinary(_0x51ad94,_0x2ab957[_0x523e30(_0x27e670._0x11c268,0x57e,0x44f,0x527)]);if(_0x4cf49f)return _0x4cf49f;const _0x3c6746=await findPathBinary(_0x51ad94,_0x2ab957[_0x523e30(0x672,0x534,_0x27e670._0x130f7a,_0x27e670._0x398d24)]);if(_0x3c6746)return _0x3c6746;const _0x27e6cb=_0x2ab957[_0x523e30(_0x27e670._0x12e1ef,_0x27e670._0x24963d,_0x27e670._0x520a00,_0x27e670._0x5b4952)]??process[_0x176ab7(0x5f3,_0x27e670._0x5478c0,_0x27e670._0x447c47,0x4f2)];function _0x523e30(_0x2a199c,_0x42af45,_0x17db62,_0x4da679){return _0x173565(_0x2a199c-0x1e4,_0x42af45-_0x27bf01._0x12042f,_0x17db62,_0x4da679-_0x27bf01._0x5092ca);}if(shouldDisableLspDownload(_0x27e6cb))return void 0x0;const _0x4d5750=getLspPackageDir(_0x2ab957[_0x523e30(0x581,0x51e,0x52b,_0x27e670._0x398d24)]),_0x2499e5=_0x2ab957['packageName']+':'+_0x51ad94;let _0xb2f62f=installPromises[_0x176ab7(0x59b,_0x27e670._0x2aa458,0x55a,0x520)](_0x2499e5);!_0xb2f62f&&(_0xb2f62f=((async()=>{function _0x1eb63b(_0x1b3cc8,_0x528da7,_0x1a7714,_0x2a7059){return _0x523e30(_0x1b3cc8-0xbc,_0x528da7-0x41,_0x1a7714,_0x1b3cc8- -_0x3b43d2._0x3a456d);}await mkdir(_0x4d5750,{'recursive':!![]});const _0x3497b7=await runNpmInstall(_0x4d5750,_0x2ab957[_0x24cc5f(0x3eb,0x2d8,_0x3c4a5d._0xbf8d0e,0x44a)],_0x27e6cb);if(!_0x3497b7)return void 0x0;function _0x24cc5f(_0x97d3c7,_0x47c30a,_0x4a425d,_0x4b44af){return _0x523e30(_0x97d3c7-0x41,_0x47c30a-0x2f,_0x47c30a,_0x97d3c7- -0x178);}const _0x3a0f23=_0x3ae68c[_0x24cc5f(_0x3c4a5d._0x131e8a,_0x3c4a5d._0xbdc2cf,_0x3c4a5d._0x3df82d,_0x3c4a5d._0x8d1119)](getLspBinDir(_0x2ab957[_0x1eb63b(0x483,_0x3c4a5d._0x364cfa,0x575,0x41d)]),binaryNameForPlatform(_0x51ad94));return await exists(_0x3a0f23)?_0x3a0f23:void 0x0;})()),installPromises[_0x176ab7(0x6b9,_0x27e670._0x14bfa6,_0x27e670._0x5a6bc0,_0x27e670._0x2ce68c)](_0x2499e5,_0xb2f62f));try{return await _0xb2f62f;}catch{return void 0x0;}finally{installPromises['delete'](_0x2499e5);}}var TYPESCRIPT_EXTENSIONS=['.ts','.tsx',_0x173565(0x1f2,-0x15,0x67,0xda),_0x173565(-0x43,0x114,-0xcf,0xb),'.mjs',_0x173565(0x1cb,0x1b4,-0x31,0xe5),'.mts','.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x255f51(0x680,0x660,0x55e,0x65e),_0x173565(0x9f,0x182,0x1f7,0x13f)],TYPESCRIPT_ROOT_MARKERS=[_0x255f51(0x666,0x6af,0x75b,0x710),_0x173565(0x2cc,0x2ae,0x149,0x1eb),_0x173565(0x128,0x30f,0x179,0x211),_0x173565(0x1f9,0x1e4,0x1dc,0x182),'yarn.lock',_0x173565(0x183,0x1a8,0x2ca,0x1a2),'jsconfig.json',_0x173565(0xfc,-0x87,-0xa5,0x41)],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc',_0x255f51(0x666,0x6a5,0x53e,0x6df),_0x173565(0x30d,0x309,0x144,0x1eb),_0x255f51(0x77d,0x820,0x6f9,0x868),_0x173565(0x1c9,0x95,0x20f,0x182),'yarn.lock',_0x255f51(0x5ad,0x4f8,0x6a6,0x4cb)];async function exists2(_0x18bd4a){try{return await _0x56e75c(_0x18bd4a),!![];}catch{return![];}}async function findUp(_0x12d967,_0x2ec3c9){const _0x57868a={_0x43ef06:0x63,_0x4c47c6:0x5b,_0x4b9303:0x5e1,_0x346967:0x6e3,_0x28b351:0x5a1,_0xaca144:0x6a4};function _0x550816(_0x39c233,_0x231a07,_0x4e32dd,_0x29b01a){return _0x173565(_0x39c233-0x189,_0x231a07-0x17d,_0x4e32dd,_0x39c233-0x55d);}let _0x3ab2d5=_0x1833a3[_0x5185b0(-0x60,0x8a,_0x57868a._0x43ef06,_0x57868a._0x4c47c6)](_0x12d967);const _0x311174=_0x1833a3['extname'](_0x3ab2d5);function _0x5185b0(_0x235189,_0x49878e,_0x370f17,_0x2800f4){return _0x255f51(_0x49878e- -0x4ff,_0x49878e-0x121,_0x370f17,_0x2800f4-0xc1);}if(_0x311174)_0x3ab2d5=_0x1833a3['dirname'](_0x3ab2d5);while(!![]){for(const _0x1f27dc of _0x2ec3c9){if(await exists2(_0x1833a3[_0x550816(_0x57868a._0x4b9303,0x682,0x6e9,_0x57868a._0x346967)](_0x3ab2d5,_0x1f27dc)))return _0x3ab2d5;}const _0x82bef=_0x1833a3[_0x550816(_0x57868a._0x28b351,0x56b,0x4c6,_0x57868a._0xaca144)](_0x3ab2d5);if(_0x82bef===_0x3ab2d5)return void 0x0;_0x3ab2d5=_0x82bef;}}async function hasDenoRoot(_0x51da54){const _0x2affe2={_0x12ffe8:0x10f,_0x29118a:0x5c,_0x588f52:0xd3,_0x422574:0xa3,_0x26d958:0x12c},_0x1c3375={_0x2cc747:0x54f,_0x43c136:0x167},_0x56181d={_0x4ce337:0x6a8,_0x1b34ec:0xca};function _0x16c600(_0x528d6a,_0xbcba32,_0x5143a8,_0x105fb1){return _0x255f51(_0x5143a8- -_0x56181d._0x4ce337,_0xbcba32-0x15c,_0xbcba32,_0x105fb1-_0x56181d._0x1b34ec);}function _0x5bc326(_0x5169fa,_0x39d33c,_0x3dd65d,_0x532070){return _0x255f51(_0x5169fa- -_0x1c3375._0x2cc747,_0x39d33c-_0x1c3375._0x43c136,_0x3dd65d,_0x532070-0x77);}return await exists2(_0x1833a3[_0x16c600(-0x7,-_0x2affe2._0x12ffe8,-0xb8,-_0x2affe2._0x29118a)](_0x51da54,_0x5bc326(_0x2affe2._0x588f52,_0x2affe2._0x422574,_0x2affe2._0x26d958,0x17f)))||await exists2(_0x1833a3['join'](_0x51da54,'deno.jsonc'));}async function resolveTsserverPath(_0x46c724){const _0x5d0c04={_0x560828:0x1f1,_0x547a1d:0x230,_0x896b81:0x2cf,_0x29bc6f:0x216,_0x1833ac:0x10e,_0x360c9d:0x120,_0x362d83:0x1b3,_0x33a0bb:0x203,_0x359f07:0x6e,_0x57359f:0xb1,_0x40b955:0xc3,_0x3263a4:0x24a,_0x4d6f8f:0x111,_0x1cba62:0x1f0,_0x2d5418:0x19a,_0x284c13:0x10e,_0x362e0f:0x19b},_0x5efe44={_0x1dbdcc:0x79,_0x4e99c8:0xdc},_0x8f9f82={_0x20e5d4:0x13d,_0x50b5cb:0x16};function _0x54ad57(_0x527f8f,_0x44a216,_0x22c9eb,_0x9fa2b9){return _0x173565(_0x527f8f-0x77,_0x44a216-_0x8f9f82._0x20e5d4,_0x22c9eb,_0x527f8f- -_0x8f9f82._0x50b5cb);}let _0x5d9d67=_0x1833a3['resolve'](_0x46c724);while(!![]){const _0x28fe3b=_0x1833a3[_0x54ad57(0x6e,0x54,-0xa6,0xb6)](_0x5d9d67,'node_modules','typescript',_0x54ad57(_0x5d0c04._0x560828,_0x5d0c04._0x547a1d,_0x5d0c04._0x896b81,_0x5d0c04._0x29bc6f),_0x54ad57(_0x5d0c04._0x1833ac,0x180,0x4,-0xb));if(await exists2(_0x28fe3b))return _0x28fe3b;const _0x1b576f=_0x1833a3[_0x3b30ac(_0x5d0c04._0x360c9d,0x94,_0x5d0c04._0x362d83,0x160)](_0x5d9d67);if(_0x1b576f===_0x5d9d67)break;_0x5d9d67=_0x1b576f;}const _0x13b762=getLspPackageDir(_0x3b30ac(_0x5d0c04._0x33a0bb,0x284,0x2f6,0x22b)),_0x49fb49=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x46c724});if(!_0x49fb49)return void 0x0;function _0x3b30ac(_0x34a0be,_0x1715db,_0x2fed4f,_0x338369){return _0x173565(_0x34a0be-0x142,_0x1715db-_0x5efe44._0x1dbdcc,_0x1715db,_0x34a0be-_0x5efe44._0x4e99c8);}const _0x1cc2f8=_0x1833a3[_0x54ad57(_0x5d0c04._0x359f07,0x8b,-_0x5d0c04._0x57359f,_0x5d0c04._0x40b955)](_0x13b762,_0x54ad57(0x220,0x2d1,0x318,_0x5d0c04._0x3263a4),_0x54ad57(_0x5d0c04._0x4d6f8f,0x6c,0x68,0x168),_0x54ad57(0x1f1,_0x5d0c04._0x1cba62,_0x5d0c04._0x2d5418,0x2d5),_0x54ad57(_0x5d0c04._0x284c13,0xb2,0x187,_0x5d0c04._0x362e0f));return await exists2(_0x1cc2f8)?_0x1cc2f8:void 0x0;}var TypeScriptServer={'id':_0x173565(0x1b7,0x23c,0x152,0x127),'name':_0x173565(-0x48,0x35,-0x8e,-0x19),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x184d7f){const _0x2b3c8f=await findUp(_0x184d7f,TYPESCRIPT_ROOT_MARKERS);if(!_0x2b3c8f)return void 0x0;return await hasDenoRoot(_0x2b3c8f)?void 0x0:_0x2b3c8f;},async 'spawn'(_0x36e4ca){const _0x5ab28e={_0x10ef80:0x3bb,_0xf9d24c:0x37d,_0x45c016:0x2fe,_0x44c058:0x258,_0x42807c:0x5ee,_0x540841:0x7be,_0x20cb02:0x75b,_0xa127fd:0x356},_0x4fd688={_0x4e9838:0x5a8},_0x13623e={_0x2e1e7e:0x186,_0xd99fa2:0x8d,_0x29be74:0x2c5},_0x1afff0=await resolveTsserverPath(_0x36e4ca);if(!_0x1afff0)return void 0x0;function _0x40e6ed(_0x1239a3,_0x420021,_0x5c4df3,_0xf5a720){return _0x173565(_0x1239a3-_0x13623e._0x2e1e7e,_0x420021-_0x13623e._0xd99fa2,_0x5c4df3,_0xf5a720-_0x13623e._0x29be74);}const _0x7f2116=await resolvePackageBinary({'packageName':_0x40e6ed(0x375,0x2a9,_0x5ab28e._0x10ef80,_0x5ab28e._0xf9d24c),'binaryName':_0x40e6ed(_0x5ab28e._0x45c016,0x272,_0x5ab28e._0x44c058,0x37d),'startDir':_0x36e4ca});function _0x31f058(_0x21b801,_0x158b0d,_0x39fc56,_0x4595c6){return _0x173565(_0x21b801-0x2a,_0x158b0d-0xcd,_0x21b801,_0x39fc56-_0x4fd688._0x4e9838);}if(!_0x7f2116)return void 0x0;return{'process':_0x383c01(_0x7f2116,[_0x31f058(_0x5ab28e._0x42807c,_0x5ab28e._0x540841,0x714,_0x5ab28e._0x20cb02)],{'cwd':_0x36e4ca,'stdio':_0x40e6ed(0x46c,0x31e,_0x5ab28e._0x45c016,_0x5ab28e._0xa127fd)}),'initialization':{'tsserver':{'path':_0x1afff0}}};}},BiomeServer={'id':_0x173565(0x15c,-0xb,0x39,0xce),'name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x428f9f){return findUp(_0x428f9f,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4d89c4){const _0x48c1aa={_0x38268e:0x50c,_0x4bd4d7:0x637,_0x3d6aef:0x575,_0x111204:0x203,_0x2aa756:0xa1,_0x4e0960:0x9d,_0x500fd9:0x1ca,_0x3cc3cd:0x12,_0x5a5c5f:0x0,_0x708527:0x105,_0x558ef6:0x5aa,_0x55384e:0x5d4,_0x393875:0x5c0},_0xe8f7a4={_0x346c32:0x110},_0x5f50fc=await findPackageBinary(_0x56d268(_0x48c1aa._0x38268e,_0x48c1aa._0x4bd4d7,0x475,_0x48c1aa._0x3d6aef),_0x4d89c4)??await resolvePackageBinary({'packageName':_0x476353(-_0x48c1aa._0x111204,-_0x48c1aa._0x2aa756,-_0x48c1aa._0x4e0960,-_0x48c1aa._0x500fd9),'binaryName':_0x476353(-0x7a,_0x48c1aa._0x3cc3cd,_0x48c1aa._0x5a5c5f,-_0x48c1aa._0x708527),'startDir':_0x4d89c4});function _0x476353(_0x2b7839,_0x5f3acf,_0x202a70,_0xec9f64){return _0x255f51(_0xec9f64- -0x73f,_0x5f3acf-0x1be,_0x2b7839,_0xec9f64-_0xe8f7a4._0x346c32);}if(!_0x5f50fc)return void 0x0;function _0x56d268(_0x196702,_0x286584,_0x25eac9,_0x30c400){return _0x173565(_0x196702-0x143,_0x286584-0x63,_0x286584,_0x196702-0x43e);}return{'process':_0x383c01(_0x5f50fc,['lsp-proxy',_0x56d268(_0x48c1aa._0x558ef6,_0x48c1aa._0x55384e,_0x48c1aa._0x393875,0x57e)],{'cwd':_0x4d89c4,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x32cd17){const _0x5f2a86={_0x293d75:0x776,_0x2db1ed:0x845,_0x4bb639:0x751,_0x403bc:0x731,_0x566b2:0x542},_0x5d51d1={_0x27cd18:0xb9},_0x413658={_0xb894aa:0x146};function _0x5f214f(_0x5c8d75,_0x3e10d6,_0x442118,_0x3da95d){return _0x255f51(_0x3da95d-0x0,_0x3e10d6-0x1bb,_0x5c8d75,_0x3da95d-_0x413658._0xb894aa);}const _0x2a9644=_0x1833a3[_0x5f214f(_0x5f2a86._0x293d75,_0x5f2a86._0x2db1ed,_0x5f2a86._0x4bb639,_0x5f2a86._0x403bc)](_0x32cd17)[_0x5f214f(0x6c9,0x669,_0x5f2a86._0x566b2,0x63e)]();function _0x4d6a2c(_0x4db0f3,_0x363048,_0xef6f26,_0x22b47b){return _0x255f51(_0x22b47b- -0x3be,_0x363048-_0x5d51d1._0x27cd18,_0xef6f26,_0x22b47b-0xc6);}return BUILTIN_LSP_SERVERS[_0x4d6a2c(0x385,0x37d,0x3cc,0x386)](_0x392402=>_0x392402['extensions'][_0x5f214f(0x60c,0x776,0x648,0x6c1)](_0x2a9644));}function stateKey(_0x2f7380,_0x5dd9ac){return _0x5dd9ac+':'+_0x2f7380['id'];}function diagnosticsKeyToPath(_0xc1575f){const _0x37b151={_0x9c5c18:0x17b,_0x142d84:0x21f},_0xcefd95={_0x5d24cf:0x3c};if(!_0xc1575f['startsWith'](_0x1b1b52(-0x1c1,-_0x37b151._0x9c5c18,-0x293,-_0x37b151._0x142d84)))return _0xc1575f;function _0x1b1b52(_0x441a9a,_0x6b860c,_0xf40e56,_0x1d9424){return _0x255f51(_0x6b860c- -0x721,_0x6b860c-_0xcefd95._0x5d24cf,_0xf40e56,_0x1d9424-0x5b);}return fileURLToPath(_0xc1575f);}function nextFileVersion(_0x40e646,_0x38a489){const _0x58e494={_0x11018f:0x369,_0x57b8cb:0x461,_0x40ce46:0x434,_0x3d8f71:0x335,_0x52ed75:0x135,_0x11cbf4:0x303},_0x317e5f={_0x332052:0x4ab,_0x5a867e:0xdb,_0x1afdec:0xb0},_0x5cac02=(_0x40e646[_0x293a57(_0x58e494._0x11018f,_0x58e494._0x57b8cb,_0x58e494._0x40ce46,_0x58e494._0x3d8f71)][_0x293a57(0x178,0x1f3,_0x58e494._0x52ed75,0x136)](_0x38a489)??0x1)+0x1;_0x40e646[_0xa7c2f3(0x26a,0x340,_0x58e494._0x11cbf4,0x1dc)]['set'](_0x38a489,_0x5cac02);function _0xa7c2f3(_0x2ac83e,_0x16278d,_0x3c00ce,_0x61a85e){return _0x255f51(_0x3c00ce- -_0x317e5f._0x332052,_0x16278d-_0x317e5f._0x5a867e,_0x61a85e,_0x61a85e-_0x317e5f._0x1afdec);}function _0x293a57(_0xbfbc35,_0x5b3ebc,_0x5848c1,_0x372fd1){return _0x173565(_0xbfbc35-0x1c,_0x5b3ebc-0xe3,_0xbfbc35,_0x372fd1-0xf3);}return _0x5cac02;}async function collectClientResults(_0x233297){const _0x33b26b={_0x30cbc6:0x6ba,_0x7a94ab:0x663,_0x313ed4:0x769,_0xb81c2c:0x57d,_0x5c69b:0x738},_0x12069b={_0x46640d:0x1c,_0x10a8dd:0x1e6},_0x34b8c1={_0x5384ee:0x182};function _0x467e00(_0x14462e,_0x2bd746,_0x3f802b,_0x3aa32d){return _0x255f51(_0x2bd746- -0x45a,_0x2bd746-0xa9,_0x3aa32d,_0x3aa32d-_0x34b8c1._0x5384ee);}const _0x55a8a0=await Promise[_0x4f4e19(_0x33b26b._0x30cbc6,0x68f,_0x33b26b._0x7a94ab,_0x33b26b._0x313ed4)](_0x233297);function _0x4f4e19(_0x135ce2,_0x1be0cd,_0x25a3d2,_0x3ef509){return _0x255f51(_0x1be0cd-_0x12069b._0x46640d,_0x1be0cd-_0x12069b._0x10a8dd,_0x135ce2,_0x3ef509-0x1);}return _0x55a8a0[_0x4f4e19(_0x33b26b._0xb81c2c,0x690,_0x33b26b._0x5c69b,0x56a)](_0x372efe=>_0x372efe['status']===_0x467e00(0x19e,0x1e5,0x152,0x242)?_0x372efe[_0x467e00(0x188,0x21f,0x246,0x2a5)]:[]);}function createLspService(_0x431313={}){const _0xeb5e8b={_0x58129c:0x21,_0x4c371d:0x38,_0x1cc1ea:0xf6,_0x30f2fe:0x4a},_0x357da4={_0x182291:0x412},_0x4f4166={_0x53a01d:0x298,_0x8b7f95:0x430,_0x22a3b5:0x467,_0x170d90:0x5b5,_0x2de186:0x4f7,_0x3ef027:0x48f,_0x4419fc:0x4bc,_0x10839c:0x330,_0x41cb58:0x3ca,_0x19f4d8:0x607,_0x43ca98:0x387,_0xf04c22:0x4b5,_0x36e911:0x403,_0x3fa47c:0x29e,_0x1c647e:0x458,_0x2c5382:0x429},_0x2d5a07={_0x125d37:0xf},_0x39d24f={_0x118a33:0xe7,_0x3e6b72:0x68},_0xfa3a14={_0x29dc23:0x667,_0x250edf:0x6e6},_0xa981af={_0x117d07:0x241},_0x15c826={_0x1ac312:0x1d2,_0x17edc3:0x363,_0x47fc75:0x25a},_0x351d65={_0x2d4161:0x33,_0x2401c0:0x99},_0x1662c0={_0x16c0d7:0x5f8,_0x3ea656:0x376},_0x26b477={_0x278e5e:0xd9,_0x2a6298:0x171},_0x55003a={_0x1a471e:0x62},_0x522ff4={_0xa0f3d6:0x25,_0x4baf0f:0x17b,_0x10364b:0xe9},_0x111a0f={_0x430d0e:0x5e0,_0x2eb360:0x55a,_0x2dfc73:0x58,_0x56cf78:0x16},_0xe95033={_0x23d75c:0x16b},_0x342031={_0xf7557b:0x59},_0x571580={_0x1627cd:0x14d,_0x1802fd:0xe4},_0x40cc82={_0x470f82:0xd0,_0x2c1f60:0x62,_0xd236e5:0x67,_0x2fc8c0:0x14},_0x293075={_0x87019:0x3af,_0x43fd30:0xbc,_0xca988:0xa9},_0x530f34={_0x1a7599:0x395},_0x1ab393={_0x1b8cd7:0x537,_0xa74c11:0x4b3},_0x10daa8={_0x406e9e:0x4d,_0x455da6:0x9e},_0x3e9e6c={_0x37df5:0x3f8,_0x58e153:0x29f},_0x95177f={_0x39a36e:0x100,_0x54911d:0x155,_0x4a2643:0x3c1,_0x2aa321:0x33c},_0x59d865={_0x1642a2:0x26,_0x529faa:0x92,_0x59835:0x59,_0x27627a:0x6,_0x14d9ca:0xb5,_0x326a6a:0xb3,_0x21c70f:0x9,_0x3614c0:0xe7,_0x4163c9:0x32,_0x173167:0x339,_0x4d1bbb:0x37e,_0x12a01d:0x237,_0x334ee0:0x306,_0x230278:0x1bf,_0xb236d2:0xd7,_0x549335:0x0,_0x456b37:0xc9,_0x3bed51:0x5a,_0x46fa83:0x179,_0x2b053b:0x6c,_0x7f8c53:0x2d,_0x7a3fa0:0xa2,_0x1e1355:0x25,_0x334dae:0xf1,_0x305920:0x3e5,_0x285d55:0x429},_0x12af76={_0x18eab6:0x3ae,_0xfe5008:0x419,_0x48422e:0x72e,_0x2993af:0x717,_0x57677f:0x723,_0x50ecdd:0x796,_0x122717:0x83d,_0x55260b:0x680,_0x106dea:0x535,_0xbd1241:0x5af,_0x42d04b:0x260,_0x5a57d3:0x2f4,_0x12616b:0x272,_0x409c24:0x2ce,_0x6a5a6f:0x2f4,_0x4db9ce:0x2bc},_0x4f020a={_0xbdc84c:0x603,_0x542f35:0x62c,_0x33f990:0x5ff,_0x76d5d3:0x631,_0x54be19:0x618,_0x179c08:0x50f,_0x248017:0x5fe,_0x40801c:0x5e0,_0x1baa43:0x692,_0x30dffd:0x625,_0x11489b:0x546,_0x524c96:0x4df,_0x1033fe:0x59a},_0x123ec5={_0x3a0338:0x19a,_0x317259:0x13a},_0x1f1dee={_0x569a05:0x321,_0x84ff83:0xa6};function _0x33ba66(_0x48c9da,_0x542abb,_0x39e429,_0x8a55d6){return _0x255f51(_0x48c9da- -_0x1f1dee._0x569a05,_0x542abb-_0x1f1dee._0x84ff83,_0x542abb,_0x8a55d6-0x1b9);}const _0x691357={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x279d81=()=>_0x431313[_0x33ba66(0x370,0x42e,0x27c,0x294)]!==![];async function _0x775b4e(_0x163644,_0x3d5ba8){const _0x5d9fa5={_0x1c093c:0x5d1,_0x210448:0x5e0,_0x377ffb:0x678,_0x34abe5:0x48c,_0x2afe49:0x6a9,_0x248b76:0x5a7,_0x3ebee6:0x5c7,_0x7a2486:0x567,_0x45f268:0x547,_0x5ec192:0x71e,_0x19823f:0x732,_0x25d5f4:0x582,_0x926425:0x6af,_0x58f9ba:0x7ea,_0xd7e97c:0x76c},_0x4df27b={_0x19b1db:0x1b6},_0x9764ce={_0x56673e:0x258},_0x4a6e81={_0x473f58:0x17f,_0x388bc5:0x1f2},_0x4c7392=stateKey(_0x163644,_0x3d5ba8),_0x1b846b=_0x691357[_0x598c3e(_0x4f020a._0xbdc84c,0x595,_0x4f020a._0x542f35,0x496)][_0x3027c0(0x4e4,_0x4f020a._0x33f990,0x4e4,0x611)](_0x595ab2=>_0x595ab2[_0x3027c0(0x448,0x37d,0x4c1,0x44e)]===_0x163644['id']&&_0x595ab2[_0x598c3e(0x4e0,0x5c8,0x677,0x4c8)]===_0x3d5ba8);if(_0x1b846b)return _0x1b846b;if(_0x691357[_0x3027c0(0x50b,_0x4f020a._0x76d5d3,_0x4f020a._0x54be19,0x5f4)][_0x598c3e(0x4d6,_0x4f020a._0x179c08,0x58c,_0x4f020a._0x248017)](_0x4c7392))return void 0x0;function _0x598c3e(_0x66139d,_0xf8f81c,_0x43e24b,_0x561703){return _0x33ba66(_0xf8f81c-_0x4a6e81._0x473f58,_0x66139d,_0x43e24b-0x15c,_0x561703-_0x4a6e81._0x388bc5);}const _0x12e57e=_0x691357[_0x3027c0(_0x4f020a._0x40801c,_0x4f020a._0x1baa43,_0x4f020a._0x30dffd,0x5d8)]['get'](_0x4c7392);if(_0x12e57e)return _0x12e57e;function _0x3027c0(_0x10b643,_0x409dd4,_0x13d3a5,_0x4b0479){return _0x33ba66(_0x10b643-_0x123ec5._0x3a0338,_0x13d3a5,_0x13d3a5-0x116,_0x4b0479-_0x123ec5._0x317259);}const _0x61ee20=((async()=>{function _0x1d5a93(_0x4ae443,_0x39188a,_0x5e5128,_0x57f815){return _0x3027c0(_0x39188a- -_0x9764ce._0x56673e,_0x39188a-0x133,_0x4ae443,_0x57f815-0xcb);}function _0x3aa0f2(_0x5cda3c,_0x4784fd,_0x45d870,_0x4a8cb4){return _0x598c3e(_0x45d870,_0x4784fd-0x188,_0x45d870-_0x4df27b._0x19b1db,_0x4a8cb4-0x79);}try{const _0x3d7a47=await _0x163644[_0x3aa0f2(0x53e,_0x5d9fa5._0x1c093c,0x4b3,_0x5d9fa5._0x210448)](_0x3d5ba8);if(!_0x3d7a47)return _0x691357[_0x3aa0f2(0x5cd,_0x5d9fa5._0x377ffb,0x5bb,0x732)][_0x3aa0f2(_0x5d9fa5._0x34abe5,0x588,0x4e9,0x580)](_0x4c7392),void 0x0;const _0x3affe4=await createLspClient({'server':_0x163644,'root':_0x3d5ba8,'handle':_0x3d7a47}),_0x53341a=_0x691357[_0x3aa0f2(_0x5d9fa5._0x2afe49,0x71d,0x680,0x837)][_0x3aa0f2(_0x5d9fa5._0x248b76,0x651,0x665,0x60f)](_0x258e08=>_0x258e08[_0x1d5a93(0x103,0x1f0,0x1b6,0x21f)]===_0x163644['id']&&_0x258e08[_0x1d5a93(0x460,0x38b,0x2be,0x2c3)]===_0x3d5ba8);if(_0x53341a)return await _0x3affe4[_0x3aa0f2(_0x5d9fa5._0x3ebee6,_0x5d9fa5._0x7a2486,_0x5d9fa5._0x34abe5,_0x5d9fa5._0x45f268)](),_0x53341a;return _0x691357['clients'][_0x3aa0f2(0x6f8,0x696,_0x5d9fa5._0x5ec192,0x768)](_0x3affe4),_0x3affe4;}catch{return _0x691357[_0x3aa0f2(0x6b2,0x678,_0x5d9fa5._0x19823f,0x79e)][_0x3aa0f2(_0x5d9fa5._0x25d5f4,0x588,_0x5d9fa5._0x926425,0x5f5)](_0x4c7392),void 0x0;}finally{_0x691357[_0x3aa0f2(0x663,0x74d,0x636,_0x5d9fa5._0x58f9ba)][_0x3aa0f2(0x664,0x6b9,_0x5d9fa5._0xd7e97c,0x7de)](_0x4c7392);}})());return _0x691357['spawning'][_0x3027c0(_0x4f020a._0x11489b,_0x4f020a._0x524c96,0x66d,_0x4f020a._0x1033fe)](_0x4c7392,_0x61ee20),_0x61ee20;}async function _0xffd93(_0xfa1ac8,_0x30ae58){const _0x31ff51={_0x2efcf3:0x9b,_0x597642:0x36};if(!_0x279d81())return[];function _0x2944f6(_0x518936,_0x3adfdf,_0x2986bc,_0xce656a){return _0x33ba66(_0x3adfdf- -_0x31ff51._0x2efcf3,_0x2986bc,_0x2986bc-_0x31ff51._0x597642,_0xce656a-0x15c);}function _0x351330(_0x278642,_0xfdef71,_0x9b4041,_0x94c69){return _0x33ba66(_0x9b4041-0x312,_0xfdef71,_0x9b4041-0x6,_0x94c69-0x101);}const _0x301f16=[];for(const _0xea7510 of getServersForFile(_0xfa1ac8)){const _0x504374=await _0xea7510[_0x2944f6(0x3b2,_0x12af76._0x18eab6,_0x12af76._0xfe5008,0x3b9)](_0xfa1ac8);if(!_0x504374)continue;const _0x2e48ba=stateKey(_0xea7510,_0x504374);if(_0x691357[_0x351330(0x6e0,_0x12af76._0x48422e,0x683,0x7a5)][_0x351330(_0x12af76._0x2993af,0x694,0x6a2,_0x12af76._0x57677f)](_0x2e48ba))continue;const _0x39cb58=_0x691357[_0x351330(_0x12af76._0x50ecdd,_0x12af76._0x122717,0x728,0x612)][_0x351330(_0x12af76._0x55260b,_0x12af76._0x106dea,0x65c,_0x12af76._0xbd1241)](_0xeecb4e=>_0xeecb4e[_0x351330(0x5ac,0x54e,0x5c0,0x4b5)]===_0xea7510['id']&&_0xeecb4e[_0x351330(0x698,0x712,0x75b,0x66e)]===_0x504374);if(_0x39cb58){_0x301f16[_0x2944f6(_0x12af76._0x42d04b,_0x12af76._0x5a57d3,_0x12af76._0x12616b,_0x12af76._0x409c24)](_0x39cb58);continue;}if(!_0x30ae58)continue;const _0x47f547=await _0x775b4e(_0xea7510,_0x504374);if(_0x47f547)_0x301f16[_0x2944f6(0x221,_0x12af76._0x6a5a6f,_0x12af76._0x4db9ce,0x3e8)](_0x47f547);}return _0x301f16;}async function _0x344bf8(_0x36e9c4,_0x1afe50=![]){const _0x20bcc6={_0x572369:0x81},_0x414cc6={_0x3d5239:0xd1,_0x4fee75:0x1bf},_0x29de55={_0x48b39a:0x80},_0x125c01={_0x3a0f42:0xaf},_0xa44cc8=await _0xffd93(_0x36e9c4,!![]);function _0x5a9090(_0x1ad9a1,_0x147197,_0x38508a,_0x3b0640){return _0x33ba66(_0x147197-_0x125c01._0x3a0f42,_0x3b0640,_0x38508a-0x140,_0x3b0640-0xdd);}function _0x237645(_0x491238,_0x86252f,_0x4a1de6,_0x5db0d3){return _0x33ba66(_0x5db0d3- -0x131,_0x491238,_0x4a1de6-_0x29de55._0x48b39a,_0x5db0d3-0x4c);}await Promise[_0x237645(0xb6,0x6f,_0x95177f._0x39a36e,_0x95177f._0x54911d)](_0xa44cc8[_0x5a9090(_0x95177f._0x4a2643,_0x95177f._0x2aa321,0x3ee,0x412)](async _0x2c26ad=>{function _0x25c435(_0x1c0815,_0x3fed5e,_0x4e503e,_0x203437){return _0x5a9090(_0x1c0815-_0x414cc6._0x3d5239,_0x1c0815- -_0x414cc6._0x4fee75,_0x4e503e-0x12b,_0x4e503e);}!_0x691357[_0x2c05ec(_0x59d865._0x1642a2,-0x40,-_0x59d865._0x529faa,-_0x59d865._0x59835)][_0x2c05ec(-_0x59d865._0x27627a,_0x59d865._0x14d9ca,_0x59d865._0x326a6a,-_0x59d865._0x21c70f)](_0x2c26ad[_0x2c05ec(-0x8a,-0x2d,_0x59d865._0x3614c0,-_0x59d865._0x4163c9)]+':'+_0x2c26ad[_0x25c435(_0x59d865._0x173167,0x2ed,_0x59d865._0x4d1bbb,0x2c3)]+':'+_0x36e9c4)&&(await _0x2c26ad[_0x25c435(0x218,_0x59d865._0x12a01d,0x25c,_0x59d865._0x334ee0)][_0x2c05ec(_0x59d865._0x230278,0xc4,_0x59d865._0xb236d2,_0x59d865._0x549335)]({'path':_0x36e9c4}),_0x691357[_0x25c435(0x18b,0x258,0xec,0xdd)][_0x2c05ec(-_0x59d865._0x456b37,-_0x59d865._0x3bed51,-_0x59d865._0x46fa83,-0xca)](_0x2c26ad[_0x2c05ec(-_0x59d865._0x2b053b,-_0x59d865._0x7f8c53,-0xb1,_0x59d865._0x7a3fa0)]+':'+_0x2c26ad['root']+':'+_0x36e9c4));await _0x2c26ad['notify'][_0x2c05ec(0x4d,_0x59d865._0x1e1355,_0x59d865._0x334dae,-0x9a)]({'path':_0x36e9c4,'version':nextFileVersion(_0x691357,_0x36e9c4)});function _0x2c05ec(_0x5b3bb3,_0x150978,_0x31b1b8,_0x30a9e5){return _0x5a9090(_0x5b3bb3-_0x20bcc6._0x572369,_0x150978- -0x38a,_0x31b1b8-0xf,_0x30a9e5);}if(_0x1afe50)await _0x2c26ad[_0x25c435(0x31a,_0x59d865._0x305920,_0x59d865._0x285d55,0x352)]({'path':_0x36e9c4});}));}async function _0x119369(_0x28bb16){const _0x43c19b={_0x1ddc07:0x16a,_0x2ba719:0x2f},_0x3738c0={_0x157085:0x1e9,_0x2049c1:0xc9};function _0x3c6816(_0x518aea,_0xe5c8c,_0x4f2ebe,_0x189abe){return _0x33ba66(_0xe5c8c-0x351,_0x189abe,_0x4f2ebe-_0x3738c0._0x157085,_0x189abe-_0x3738c0._0x2049c1);}function _0x40bd9d(_0x34dc66,_0xd72359,_0x2c48d2,_0x336f6b){return _0x33ba66(_0x34dc66- -_0x43c19b._0x1ddc07,_0x336f6b,_0x2c48d2-_0x43c19b._0x2ba719,_0x336f6b-0x168);}return await _0x344bf8(_0x28bb16[_0x40bd9d(0x2f3,0x337,0x41f,_0x3e9e6c._0x37df5)],![]),_0xffd93(_0x28bb16[_0x40bd9d(0x2f3,0x2b2,_0x3e9e6c._0x58e153,0x3da)],![]);}async function _0x41516e(_0x2ff635){const _0x29b4d0={_0x18cb7c:0x1d6,_0x3cf3e4:0xf1};function _0x3938f7(_0x4eefda,_0x31ad9d,_0x704200,_0x1bd62e){return _0x33ba66(_0x704200- -0x392,_0x31ad9d,_0x704200-_0x10daa8._0x406e9e,_0x1bd62e-_0x10daa8._0x455da6);}function _0x209076(_0x47b17c,_0x33313e,_0x4519c6,_0xeceba4){return _0x33ba66(_0x4519c6-_0x29b4d0._0x18cb7c,_0x33313e,_0x4519c6-_0x29b4d0._0x3cf3e4,_0xeceba4-0x51);}const _0x31c9f3=await _0x119369(_0x2ff635);return collectClientResults(_0x31c9f3[_0x209076(_0x1ab393._0x1b8cd7,_0x1ab393._0xa74c11,0x463,0x367)](_0x2bfb5e=>_0x2bfb5e[_0x209076(0x486,0x49b,0x55e,0x4b9)][_0x3938f7(-0x36,-0x99,0x6b,-0x46)](_0x2ff635)));}return{'isEnabled':_0x279d81,async 'hasClients'(_0x1d1ad5){function _0x1688dd(_0x30584a,_0x5b35af,_0x94a85e,_0x4e24d8){return _0x33ba66(_0x94a85e-0x3d,_0x30584a,_0x94a85e-0x160,_0x4e24d8-0xab);}return(await _0xffd93(_0x1d1ad5,![]))['length']>0x0||getServersForFile(_0x1d1ad5)[_0x1688dd(_0x530f34._0x1a7599,0x383,0x3d0,0x42d)]>0x0;},'touchFile':_0x344bf8,async 'diagnostics'(){const _0x5381a1={_0x51a7a1:0x109,_0x4d257c:0x175};function _0x4426ea(_0xc9235e,_0x2ef47e,_0xa09ac3,_0x2d567a){return _0x33ba66(_0x2d567a- -_0x293075._0x87019,_0xa09ac3,_0xa09ac3-_0x293075._0x43fd30,_0x2d567a-_0x293075._0xca988);}const _0x30a59e={};function _0x14b7e4(_0x10f77b,_0x4f8a7e,_0x5821d8,_0x375834){return _0x33ba66(_0x4f8a7e- -0x33a,_0x10f77b,_0x5821d8-_0x5381a1._0x51a7a1,_0x375834-_0x5381a1._0x4d257c);}for(const _0x4b01e1 of _0x691357[_0x4426ea(_0x40cc82._0x470f82,-0x3c,_0x40cc82._0x2c1f60,_0x40cc82._0xd236e5)]){for(const [_0x244b8d,_0x2a4720]of _0x4b01e1[_0x4426ea(-0x191,-0xa0,_0x40cc82._0x2fc8c0,-0x6c)]){_0x30a59e[diagnosticsKeyToPath(_0x244b8d)]=_0x2a4720;}}return _0x30a59e;},async 'diagnosticsForFile'(_0xbf6c1f){await _0x344bf8(_0xbf6c1f,!![]);const _0x1959df=[];for(const _0x2f5d00 of await _0xffd93(_0xbf6c1f,![])){for(const [_0x223f4f,_0x5276a9]of _0x2f5d00['diagnostics']){if(diagnosticsKeyToPath(_0x223f4f)===_0xbf6c1f)_0x1959df['push'](..._0x5276a9);}}return _0x1959df;},async 'definition'(_0x13e67c){function _0x39332d(_0x481b9c,_0x10e6cc,_0x4ab155,_0x12ae42){return _0x33ba66(_0x481b9c- -0x12,_0x4ab155,_0x4ab155-_0x571580._0x1627cd,_0x12ae42-_0x571580._0x1802fd);}function _0x48757f(_0x2b517c,_0x267ddd,_0x29c952,_0x49cf71){return _0x33ba66(_0x49cf71- -0x11c,_0x267ddd,_0x29c952-0xd1,_0x49cf71-0x184);}return collectClientResults((await _0x119369(_0x13e67c))['map'](_0x20fa32=>_0x20fa32[_0x39332d(0x376,0x2aa,0x25e,0x34e)][_0x39332d(0x476,0x541,0x4f3,0x44e)](_0x13e67c)));},async 'references'(_0x134aaa){const _0xa06fe9={_0x44387c:0x1c9,_0x327763:0x1dc};function _0x4b6f9e(_0x30cec9,_0x35dd38,_0x5eb97c,_0x151963){return _0x33ba66(_0x5eb97c- -0x1c3,_0x151963,_0x5eb97c-_0xa06fe9._0x44387c,_0x151963-_0xa06fe9._0x327763);}function _0x3d2b84(_0x4d4d5d,_0x18e8e3,_0x4c4ad0,_0x493249){return _0x33ba66(_0x4c4ad0- -0xdc,_0x18e8e3,_0x4c4ad0-0xbb,_0x493249-_0x342031._0xf7557b);}return collectClientResults((await _0x119369(_0x134aaa))[_0x3d2b84(0xa8,_0xe95033._0x23d75c,0x1b1,0x1c7)](_0x3abb17=>_0x3abb17[_0x4b6f9e(0x17d,0x2e3,0x1c5,0x227)][_0x3d2b84(0x1dc,0x182,0x232,0x221)](_0x134aaa)));},async 'hover'(_0x31ab9c){const _0x1a9c08={_0x3983fa:0x31f,_0x1daa1b:0x6b},_0x161c52={_0x28ab98:0x353,_0x583b3b:0x40,_0x1b678e:0xf3};function _0x339f81(_0x28a877,_0x3bd7e4,_0x157c96,_0x5b1b94){return _0x33ba66(_0x28a877-_0x161c52._0x28ab98,_0x3bd7e4,_0x157c96-_0x161c52._0x583b3b,_0x5b1b94-_0x161c52._0x1b678e);}function _0x38f6d0(_0x2b7d59,_0x521228,_0xb50fca,_0xfc0aca){return _0x33ba66(_0x521228- -_0x1a9c08._0x3983fa,_0xfc0aca,_0xb50fca-0x147,_0xfc0aca-_0x1a9c08._0x1daa1b);}const _0x2f4285=await Promise['allSettled']((await _0x119369(_0x31ab9c))[_0x339f81(_0x111a0f._0x430d0e,_0x111a0f._0x2eb360,0x554,0x4d2)](_0x22dee7=>_0x22dee7[_0x38f6d0(0x6c,0x69,0x177,-0x1)][_0x339f81(0x7cc,0x888,0x6c7,0x69c)](_0x31ab9c)));return _0x2f4285[_0x38f6d0(-_0x111a0f._0x2dfc73,0x34,_0x111a0f._0x56cf78,0xb0)](_0x46708f=>_0x46708f[_0x38f6d0(0x170,0x66,-0xb6,-0x42)]===_0x38f6d0(0xb9,-0x1,-0x9,0x6f)&&_0x46708f[_0x38f6d0(0x3c,0x39,0x137,0x9c)]?[_0x46708f[_0x339f81(0x6ab,0x5f4,0x767,0x789)]]:[]);},async 'documentSymbol'(_0x1d7b78){const _0x40e3f8={_0x31c388:0x142},_0x301cbf={_0x468df3:0x34f};function _0x3803a2(_0x14fbf2,_0x4f3fda,_0x3a1f8c,_0x3e039f){return _0x33ba66(_0x14fbf2- -_0x301cbf._0x468df3,_0x3e039f,_0x3a1f8c-0x12b,_0x3e039f-0x11f);}function _0x100caa(_0x27ac94,_0x531c3d,_0x2a9971,_0x3060fd){return _0x33ba66(_0x27ac94- -0x207,_0x3060fd,_0x2a9971-0x102,_0x3060fd-_0x40e3f8._0x31c388);}return await _0x344bf8(_0x1d7b78,![]),collectClientResults((await _0xffd93(_0x1d7b78,![]))[_0x100caa(0x86,_0x522ff4._0xa0f3d6,_0x522ff4._0x4baf0f,_0x522ff4._0x10364b)](_0x3b09fe=>_0x3b09fe[_0x3803a2(0x39,-0xd6,-0x8a,0xd0)]['documentSymbol'](_0x1d7b78)));},async 'workspaceSymbol'(_0x2aa137){function _0x2c3a76(_0x3d7291,_0x34e207,_0x424372,_0x2268df){return _0x33ba66(_0x424372- -0x5,_0x2268df,_0x424372-_0x55003a._0x1a471e,_0x2268df-0x19c);}function _0x45bf40(_0x4fbcc0,_0x3f8a35,_0x5c7250,_0x3b79a0){return _0x33ba66(_0x3b79a0-0x22e,_0x4fbcc0,_0x5c7250-_0x26b477._0x278e5e,_0x3b79a0-_0x26b477._0x2a6298);}return collectClientResults(_0x691357[_0x45bf40(0x643,0x765,_0x1662c0._0x16c0d7,0x644)][_0x2c3a76(0x1d9,0x3a4,0x288,_0x1662c0._0x3ea656)](_0x21ddce=>_0x21ddce[_0x2c3a76(0x338,0x492,0x383,0x3de)][_0x2c3a76(0x4cc,0x409,0x3dc,0x3f2)](_0x2aa137)));},async 'implementation'(_0x6245a0){function _0x2a2842(_0x4ce618,_0x4897cb,_0x4abb19,_0x42590c){return _0x33ba66(_0x42590c- -_0x351d65._0x2d4161,_0x4ce618,_0x4abb19-_0x351d65._0x2401c0,_0x42590c-0x1b8);}function _0x79b68c(_0x1d561d,_0x12b3e8,_0x30e6b4,_0x4fd9cd){return _0x33ba66(_0x12b3e8- -0x33b,_0x30e6b4,_0x30e6b4-0x105,_0x4fd9cd-0xf);}return collectClientResults((await _0x119369(_0x6245a0))[_0x2a2842(_0x15c826._0x1ac312,0x2bd,_0x15c826._0x17edc3,_0x15c826._0x47fc75)](_0x500200=>_0x500200[_0x79b68c(-0x48,0x4d,0xef,0x3e)][_0x2a2842(0x39b,0x3c1,0x3e9,0x32b)](_0x6245a0)));},async 'prepareCallHierarchy'(_0x492ffb){return _0x41516e(_0x492ffb);},async 'incomingCalls'(_0x548463){const _0x401e99={_0x16e7cc:0xdd,_0x3fdf13:0x14c},_0x31e062=await _0x41516e(_0x548463);function _0x39b320(_0x4be5a3,_0x1f985b,_0xf73afe,_0x410bd2){return _0x33ba66(_0x4be5a3- -_0xa981af._0x117d07,_0x410bd2,_0xf73afe-0x140,_0x410bd2-0x17c);}const _0x597490=await _0x119369(_0x548463);function _0x49a8c6(_0xe2a0f1,_0x54dbdf,_0x30448e,_0xc262b0){return _0x33ba66(_0xe2a0f1-0x314,_0xc262b0,_0x30448e-_0x401e99._0x16e7cc,_0xc262b0-_0x401e99._0x3fdf13);}return collectClientResults(_0x597490[_0x49a8c6(_0xfa3a14._0x29dc23,0x5b0,_0xfa3a14._0x250edf,0x5c4)](_0x5e0e4d=>_0x31e062[_0x39b320(0x4c,0x99,0xf9,0x12a)](_0xd35554=>_0x5e0e4d['request'][_0x49a8c6(0x784,0x85c,0x6b2,0x702)](_0xd35554))));},async 'outgoingCalls'(_0x2378f4){const _0x52ab82={_0x4f439c:0x93,_0x2a1371:0x4e,_0x2ba891:0x3d},_0x5915b0=await _0x41516e(_0x2378f4),_0x36d6e3=await _0x119369(_0x2378f4);function _0x2c4315(_0x209057,_0x5e7c1b,_0x4f1d6a,_0x40821b){return _0x33ba66(_0x209057-_0x52ab82._0x4f439c,_0x4f1d6a,_0x4f1d6a-_0x52ab82._0x2a1371,_0x40821b-_0x52ab82._0x2ba891);}function _0x5b6fe4(_0x3eef3b,_0x71119b,_0x524199,_0x35ec5e){return _0x33ba66(_0x3eef3b- -0x2ab,_0x35ec5e,_0x524199-_0x39d24f._0x118a33,_0x35ec5e-_0x39d24f._0x3e6b72);}return collectClientResults(_0x36d6e3[_0x5b6fe4(0xa8,-0x68,0x111,-_0x2d5a07._0x125d37)](_0x259b0e=>_0x5915b0[_0x5b6fe4(-0x1e,0xfb,-0xf5,0xe4)](_0x5c4f69=>_0x259b0e[_0x2c4315(0x41b,0x329,0x4cd,0x4bf)][_0x2c4315(0x372,0x39b,0x274,0x25b)](_0x5c4f69))));},async 'shutdown'(){const _0x117021={_0x578bc3:0x13d,_0x4a908d:0x165},_0x5791ab={_0x4de150:0x70,_0x55363e:0x121,_0x399ea7:0xea};if(_0x691357['shutdownStarted'])return;function _0x4da748(_0x482830,_0x11d73c,_0x5b2879,_0x599cce){return _0x33ba66(_0x11d73c-_0x5791ab._0x4de150,_0x599cce,_0x5b2879-_0x5791ab._0x55363e,_0x599cce-_0x5791ab._0x399ea7);}_0x691357[_0x4da748(_0x4f4166._0x53a01d,0x3a8,0x33b,_0x4f4166._0x8b7f95)]=!![],await Promise[_0xff5283(_0x4f4166._0x22a3b5,_0x4f4166._0x170d90,_0x4f4166._0x2de186,_0x4f4166._0x3ef027)](_0x691357['clients'][_0xff5283(_0x4f4166._0x4419fc,0x353,_0x4f4166._0x10839c,_0x4f4166._0x41cb58)](_0x348521=>_0x348521[_0xff5283(0x3e6,0x2e4,0x437,0x39d)]())),_0x691357['clients']=[],_0x691357[_0xff5283(_0x4f4166._0x19f4d8,0x61a,0x55f,0x583)]['clear'](),_0x691357['broken'][_0x4da748(_0x4f4166._0x43ca98,0x2c2,0x247,0x3cf)](),_0x691357[_0x4da748(_0x4f4166._0xf04c22,0x4fd,0x5f5,_0x4f4166._0x36e911)][_0xff5283(_0x4f4166._0x3fa47c,_0x4f4166._0x1c647e,_0x4f4166._0x2c5382,0x38f)]();function _0xff5283(_0x1e5ed5,_0x64dce6,_0x15c409,_0x4f0b8b){return _0x33ba66(_0x4f0b8b-_0x117021._0x578bc3,_0x1e5ed5,_0x15c409-0x8f,_0x4f0b8b-_0x117021._0x4a908d);}_0x691357[_0xff5283(0x2bd,0x4fd,0x498,0x3d8)]['clear']();},'status'(){const _0x53530b={_0x3cb1c1:0x10b,_0x59d685:0x16c};function _0x26b960(_0x5159bd,_0x37b095,_0x2c4c68,_0x4dcfc1){return _0x33ba66(_0x37b095- -0x319,_0x5159bd,_0x2c4c68-_0x53530b._0x3cb1c1,_0x4dcfc1-_0x53530b._0x59d685);}function _0x2344ea(_0x56c758,_0x41b6b1,_0x25acbc,_0x581bbf){return _0x33ba66(_0x41b6b1- -_0x357da4._0x182291,_0x56c758,_0x25acbc-0x145,_0x581bbf-0x108);}return{'connectedClients':_0x691357[_0x26b960(0x215,0xfd,_0xeb5e8b._0x58129c,0x15c)][_0x2344ea(-_0xeb5e8b._0x4c371d,-0x7f,-_0xeb5e8b._0x1cc1ea,_0xeb5e8b._0x30f2fe)]};}};}import{spawn as _0x45a0d8}from'child_process';import{statSync}from'fs';import*as _0x500cef from'os';import*as _0x552678 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x23ef80 from'path';function isPathInside(_0x34f2e3,_0x253a53){const _0x6b466a={_0x4756e2:0x23,_0x34a875:0x73,_0xf5d4:0x2,_0xe5191c:0x1bf,_0x11ee4e:0x168,_0x265f08:0x184,_0x1ebaa3:0x2b3},_0x286de1={_0x22795b:0x587,_0xb13887:0x53},_0x50c9a9={_0xa15f95:0x15d},_0x4a745e=_0x23ef80[_0x4a3ff3(_0x6b466a._0x4756e2,-_0x6b466a._0x34a875,_0x6b466a._0xf5d4,-0x12e)](_0x34f2e3);function _0x233525(_0x150af4,_0x260142,_0x337ee2,_0x5f0d95){return _0x255f51(_0x5f0d95- -_0x50c9a9._0xa15f95,_0x260142-0x11a,_0x260142,_0x5f0d95-0x9c);}const _0x3ea64f=_0x23ef80[_0x4a3ff3(0x91,0xdb,0x61,0x105)](_0x4a745e,_0x253a53);function _0x4a3ff3(_0x250d8e,_0x1df668,_0x252906,_0x34ba82){return _0x255f51(_0x252906- -_0x286de1._0x22795b,_0x1df668-_0x286de1._0xb13887,_0x250d8e,_0x34ba82-0x14b);}return _0x3ea64f===''||!_0x3ea64f[_0x4a3ff3(_0x6b466a._0xe5191c,_0x6b466a._0x11ee4e,_0x6b466a._0x265f08,_0x6b466a._0x1ebaa3)]('..')&&!_0x23ef80[_0x233525(0x546,0x388,0x4c9,0x431)](_0x3ea64f);}function _0x173565(_0x11378a,_0x323658,_0x99fa73,_0x31320d){const _0x10f4a7={_0x277fbf:0x1f8};return _0x4100(_0x31320d- -_0x10f4a7._0x277fbf,_0x99fa73);}function resolveWorkspacePath(_0x44edc0,_0x15eb87){return resolveAllowedPath(_0x44edc0,[],_0x15eb87);}function resolveAllowedPath(_0x50aeb6,_0x206389,_0x1c5734){const _0x1f888e={_0x19fea4:0x19a,_0x2624b5:0x1d4,_0x5cfbbb:0x278,_0x21af83:0x1e,_0x233289:0xe4,_0x441808:0x14c},_0x1bd2e4={_0x358884:0x2c8,_0x4a7764:0x1e4},_0x5dcbdf={_0x367948:0x1be},_0x23c3f2=_0x23ef80['resolve'](_0x50aeb6),_0x24e17c=_0x23ef80[_0x32991c(-_0x1f888e._0x19fea4,-_0x1f888e._0x2624b5,-0xb6,-0x80)](_0x23c3f2,_0x1c5734),_0x323cbf=[_0x23c3f2,..._0x206389[_0x4d15ee(0x2a0,0x2e6,_0x1f888e._0x5cfbbb,0x385)](_0x5bb3c9=>_0x23ef80[_0x32991c(-0x19a,-0x141,-0x20f,-0xdf)](_0x5bb3c9))];if(_0x323cbf['some'](_0x19c2cf=>isPathInside(_0x19c2cf,_0x24e17c)))return _0x24e17c;function _0x32991c(_0x13f85a,_0x500bda,_0x510a15,_0x1eb48d){return _0x255f51(_0x13f85a- -0x723,_0x500bda-0x191,_0x500bda,_0x1eb48d-_0x5dcbdf._0x367948);}function _0x4d15ee(_0x2cdd82,_0x44c4d1,_0xe65940,_0x320f69){return _0x255f51(_0x44c4d1- -_0x1bd2e4._0x358884,_0x44c4d1-0x154,_0x320f69,_0x320f69-_0x1bd2e4._0x4a7764);}throw new ToolExecutionError(_0x32991c(-_0x1f888e._0x21af83,_0x1f888e._0x233289,-_0x1f888e._0x441808,-0x100)+_0x1c5734,{'path':_0x1c5734,'rootDir':_0x23c3f2,'allowedDirs':_0x323cbf});}async function assertWorkspaceFile(_0x438dd8){const _0x368b34={_0x3fdc41:0x362,_0xf79669:0x2db,_0x51d34f:0xaa,_0x283362:0xd5,_0xa5f3ed:0x1a5},_0x16a108={_0x3bee18:0x125},_0x5eece2={_0x16b5c2:0xd,_0x99a480:0x1bb};function _0x54565b(_0x30da67,_0xed0632,_0x57f4d0,_0x1247fe){return _0x173565(_0x30da67-_0x5eece2._0x16b5c2,_0xed0632-_0x5eece2._0x99a480,_0x30da67,_0x57f4d0- -0x4b);}const _0x208f27=await stat(_0x438dd8);function _0x489213(_0xfc5008,_0x1ca61f,_0xbbf6d,_0x4961e8){return _0x255f51(_0xbbf6d- -0x406,_0x1ca61f-_0x16a108._0x3bee18,_0x4961e8,_0x4961e8-0x1ea);}if(!_0x208f27[_0x489213(0x3da,0x37e,_0x368b34._0x3fdc41,_0x368b34._0xf79669)]())throw new ToolExecutionError(_0x54565b(0x1d4,_0x368b34._0x51d34f,_0x368b34._0x283362,_0x368b34._0xa5f3ed)+_0x438dd8,{'path':_0x438dd8});}function isProbablyBinary(_0x256012){return _0x256012['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x173565(0x9a,0xe7,0x12c,0x11d),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x486eee){return _0x486eee instanceof Error;}function shellExists(_0x186263){const _0x3e96d3={_0x54c02c:0x1db,_0x202e69:0x1be,_0x122d40:0x157};function _0x4ef218(_0x364a4e,_0x8d8ba8,_0x1c68d7,_0x2531b6){return _0x255f51(_0x8d8ba8- -0x521,_0x8d8ba8-0x175,_0x364a4e,_0x2531b6-0x171);}try{const _0x5465f4=statSync(_0x186263);return _0x5465f4['isFile']()&&(_0x5465f4[_0x4ef218(0x307,_0x3e96d3._0x54c02c,_0x3e96d3._0x202e69,_0x3e96d3._0x122d40)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x15424a){const _0x30f23b={_0x202486:0x339,_0x5c2832:0x101,_0x207189:0xac,_0x5e1cfe:0xd6,_0x31c5c5:0xdb,_0x5de7de:0x1fe,_0x1471c4:0x2f6,_0x13a3ba:0x3a4,_0x4115a5:0x4ba,_0x2ba716:0x2f8,_0x2c302a:0x1d0,_0x28ee04:0x37a,_0x442f37:0x1af,_0x40d779:0xbf,_0x33f663:0x1f6,_0x7e19ea:0x1d8,_0x551c6f:0x2ac,_0x5c8cae:0x47,_0x31cf3e:0x295,_0x386292:0x14c,_0xcfe64c:0x174,_0x2f0d12:0x1fa,_0x6ed9b3:0x283},_0x133b86={_0x5d0cf2:0x1b9},_0x47729a={_0x2679ba:0x156};if(_0x15424a)return _0x15424a;if(_0x500cef[_0x4076eb(0x1f5,0x27f,_0x30f23b._0x202486,0x2d8)]()===_0x4076eb(_0x30f23b._0x5c2832,-0x5a,_0x30f23b._0x207189,_0x30f23b._0x5e1cfe))return process[_0x116d41(0x286,_0x30f23b._0x31c5c5,_0x30f23b._0x5de7de,0x109)][_0x116d41(_0x30f23b._0x1471c4,0x284,_0x30f23b._0x13a3ba,_0x30f23b._0x4115a5)]||_0x116d41(_0x30f23b._0x2ba716,_0x30f23b._0x2c302a,0x27b,_0x30f23b._0x28ee04);const _0x2909d1=['/bin/bash','/bin/sh',_0x116d41(0xa9,0x2b8,_0x30f23b._0x442f37,_0x30f23b._0x40d779),_0x116d41(0x267,_0x30f23b._0x33f663,_0x30f23b._0x7e19ea,_0x30f23b._0x551c6f)];for(const _0x4afe02 of _0x2909d1){if(shellExists(_0x4afe02))return _0x4afe02;}const _0x507a62=process[_0x4076eb(_0x30f23b._0x5c8cae,_0x30f23b._0x31cf3e,_0x30f23b._0x386292,_0x30f23b._0xcfe64c)][_0x4076eb(0x296,0x148,_0x30f23b._0x2f0d12,0x1cd)];function _0x4076eb(_0x5afb16,_0x119ead,_0xf81cc7,_0x21a218){return _0x173565(_0x5afb16-0x156,_0x119ead-_0x47729a._0x2679ba,_0xf81cc7,_0x21a218-0xd9);}if(_0x507a62&&shellExists(_0x507a62))return _0x507a62;function _0x116d41(_0x500ccc,_0x5b0d4f,_0x4dfb6b,_0x37af75){return _0x255f51(_0x4dfb6b- -0x409,_0x5b0d4f-0x13d,_0x5b0d4f,_0x37af75-_0x133b86._0x5d0cf2);}return _0x4076eb(0x25f,0x1ab,0x1b8,_0x30f23b._0x6ed9b3);}function buildShellArgs(_0x463c1f,_0x3b4e14){const _0x4ec4b1={_0x3eab40:0x3d8,_0x469ac3:0x320,_0x2eccf2:0x3f1,_0x570301:0x271,_0x492323:0x1ea,_0x2adf31:0xe5,_0x45676c:0xdd,_0x26d792:0x83,_0x2bbb44:0x66,_0x5ab0b2:0x407,_0x371cac:0x113,_0x104f4c:0x193,_0x8118c3:0x1ce,_0x347bad:0x2c5},_0x5a9620={_0x15abdf:0x75,_0xd6e5fd:0x121},_0x5e8cbd={_0x2d2a37:0x753,_0x2f9d86:0xd1};function _0x22d62d(_0x38504d,_0x2651fb,_0x3bcc13,_0x38fca6){return _0x255f51(_0x3bcc13- -_0x5e8cbd._0x2d2a37,_0x2651fb-_0x5e8cbd._0x2f9d86,_0x2651fb,_0x38fca6-0x27);}if(_0x500cef[_0xbb16aa(_0x4ec4b1._0x3eab40,0x357,_0x4ec4b1._0x469ac3,_0x4ec4b1._0x2eccf2)]()===_0x22d62d(-_0x4ec4b1._0x570301,-0x1e1,-_0x4ec4b1._0x492323,-_0x4ec4b1._0x2adf31)){const _0x141ce1=/cmd(\.exe)?$/i[_0x22d62d(-_0x4ec4b1._0x45676c,-0x78,-_0x4ec4b1._0x26d792,_0x4ec4b1._0x2bbb44)](_0x3b4e14);return _0x141ce1?['/d','/s','/c',_0x463c1f]:[_0xbb16aa(_0x4ec4b1._0x5ab0b2,0x294,0x309,0x27f),_0xbb16aa(_0x4ec4b1._0x371cac,_0x4ec4b1._0x104f4c,_0x4ec4b1._0x8118c3,_0x4ec4b1._0x347bad),'-Command',_0x463c1f];}function _0xbb16aa(_0x3f8e80,_0x2724f3,_0x25efcf,_0x40d34c){return _0x173565(_0x3f8e80-0x89,_0x2724f3-_0x5a9620._0x15abdf,_0x40d34c,_0x25efcf-_0x5a9620._0xd6e5fd);}return['-c',_0x463c1f];}function stripAnsiAndControls(_0xb28361){const _0x4af47f={_0x159d42:0x26f,_0x5e52bb:0x266,_0x45bb37:0x114,_0x4c60b2:0x6f,_0x2a7151:0x1f4,_0x2897ec:0x309,_0x5ed30:0x19d,_0x21865b:0x27a,_0x533ed7:0x27f,_0x526906:0xf8,_0x403fee:0x186,_0x9f6e24:0xe3,_0x4ee6ea:0x148,_0x43c56c:0x174,_0x426a8b:0x5f,_0x2a2635:0x24,_0x1e4643:0x102,_0xd9232a:0x178,_0x75661d:0x105,_0x27f4e7:0x186},_0x34ecb2={_0x3029fa:0x15b},_0x7107e0={_0xa8ef1:0x574,_0x4865af:0x1c};_0xb28361=stripVTControlCharacters(_0xb28361);const _0x1e7d9e='\x1b',_0x2c1cc8='\x07';_0xb28361=_0xb28361[_0x224cd9(0x90,_0x4af47f._0x159d42,_0x4af47f._0x5e52bb,0x186)](new RegExp(_0x3a7a4a(_0x4af47f._0x45bb37,-_0x4af47f._0x4c60b2,0xca,-0x12)+_0x2c1cc8+_0x3a7a4a(-0x6,_0x4af47f._0x2a7151,0x1d6,0x102)+_0x2c1cc8,'g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x224cd9(0x21e,_0x4af47f._0x2897ec,_0x4af47f._0x5ed30,_0x4af47f._0x21865b)+_0x1e7d9e+'\x5c\x5c','g'),''),_0xb28361=_0xb28361[_0x224cd9(_0x4af47f._0x533ed7,_0x4af47f._0x526906,0x281,_0x4af47f._0x403fee)](new RegExp(_0x2c1cc8,'g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x1e7d9e+'[P_^][\x5cs\x5cS]*?'+_0x1e7d9e+'\x5c\x5c','g'),''),_0xb28361=_0xb28361['replace'](new RegExp(_0x1e7d9e+_0x224cd9(0x45,_0x4af47f._0x9f6e24,_0x4af47f._0x4ee6ea,_0x4af47f._0x43c56c),'g'),''),_0xb28361=_0xb28361[_0x3a7a4a(_0x4af47f._0x426a8b,_0x4af47f._0x2a2635,_0x4af47f._0x1e4643,0xda)](/[\u0080-\u009F]/g,''),_0xb28361=_0xb28361['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x3a7a4a(_0x64008b,_0x4803a8,_0x14f259,_0x13122b){return _0x255f51(_0x13122b- -_0x7107e0._0xa8ef1,_0x4803a8-_0x7107e0._0x4865af,_0x4803a8,_0x13122b-0x8b);}function _0x224cd9(_0x264aa7,_0x24c1e3,_0xb3ff38,_0x40081e){return _0x255f51(_0x40081e- -0x4c8,_0x24c1e3-_0x34ecb2._0x3029fa,_0xb3ff38,_0x40081e-0x19a);}return _0xb28361=_0xb28361[_0x224cd9(0x25a,_0x4af47f._0xd9232a,_0x4af47f._0x75661d,_0x4af47f._0x27f4e7)](/[\u23CE\u2424]/g,''),_0xb28361;}function resolveWorkingDirectory(_0x2cdb52,_0x475f1c,_0x3df959){const _0x3a1d2a={_0x378855:0x450,_0x3e383b:0x1b1,_0xc3a97:0x11e},_0x45df88={_0x64587a:0xf7,_0x9a1e80:0xc9},_0x4dd451={_0x25f73f:0xf1,_0x132081:0x3c8};function _0x469120(_0x1ecb2e,_0x28a6d4,_0x26b86f,_0x30c772){return _0x173565(_0x1ecb2e-_0x4dd451._0x25f73f,_0x28a6d4-0x99,_0x30c772,_0x1ecb2e-_0x4dd451._0x132081);}const _0x318411=resolveAllowedPath(_0x475f1c,_0x3df959,_0x2cdb52??'.');function _0x28df8b(_0x4211d5,_0x24816,_0x2676e3,_0x2b37bf){return _0x173565(_0x4211d5-0x19c,_0x24816-_0x45df88._0x64587a,_0x4211d5,_0x2b37bf-_0x45df88._0x9a1e80);}try{const _0x4c4f2b=statSync(_0x318411);if(!_0x4c4f2b[_0x28df8b(0x29c,0x3fa,0x430,0x307)]())throw new ToolExecutionError(_0x469120(0x57e,_0x3a1d2a._0x378855,0x5a0,0x6a9)+_0x318411,{'cwd':_0x318411});return _0x318411;}catch(_0x53475b){if(_0x53475b instanceof ToolExecutionError)throw _0x53475b;throw new ToolExecutionError(_0x28df8b(_0x3a1d2a._0x3e383b,_0x3a1d2a._0xc3a97,0x19a,0x1cc)+_0x318411,{'cwd':_0x318411});}}function killProcessGroup(_0x26ae6e,_0x499345,_0x3aa317=_0x255f51(0x611,0x5f9,0x5b6,0x5b5)){const _0x57d822={_0x1d8063:0xf0,_0x11c83b:0x250,_0x5131fa:0x255,_0x58454a:0x12c,_0xad9c36:0x5cd,_0x459604:0x5fa,_0x2f63f8:0x423,_0x4cc7fc:0x3cf,_0x830edd:0x547,_0x4210f9:0x4d7,_0x22ef2b:0x3b,_0x302824:0xb3,_0x29d59f:0x28,_0x47da25:0xdc,_0x209c3a:0xb3,_0x5e23a2:0x580,_0x54e52f:0x662,_0x48c5d2:0x63e,_0x2618fd:0x12e,_0x4b60a3:0x6e},_0x57c3ce={_0x4f9b01:0xe2},_0x328696={_0x1f988f:0x1b5};function _0x5422db(_0x177657,_0x4127f5,_0xb7718d,_0x523d33){return _0x173565(_0x177657-_0x328696._0x1f988f,_0x4127f5-0xe6,_0x177657,_0x523d33-0x459);}function _0x2de97d(_0x3f7262,_0x36af7e,_0x2237b4,_0x1dd97c){return _0x173565(_0x3f7262-_0x57c3ce._0x4f9b01,_0x36af7e-0xde,_0x3f7262,_0x1dd97c- -0xb8);}if(!_0x26ae6e[_0x2de97d(_0x57d822._0x1d8063,0x1bb,0x1ea,0x12d)])return;if(_0x499345)try{_0x45a0d8(_0x2de97d(_0x57d822._0x11c83b,0x167,_0x57d822._0x5131fa,_0x57d822._0x58454a),[_0x5422db(0x64a,_0x57d822._0xad9c36,0x566,_0x57d822._0x459604),_0x26ae6e['pid']['toString'](),'/T','/F'],{'stdio':_0x5422db(_0x57d822._0x2f63f8,_0x57d822._0x4cc7fc,_0x57d822._0x830edd,_0x57d822._0x4210f9)});return;}catch{_0x26ae6e[_0x2de97d(0x17b,_0x57d822._0x22ef2b,0x7a,_0x57d822._0x302824)](_0x3aa317);return;}try{process[_0x2de97d(-_0x57d822._0x29d59f,_0x57d822._0x47da25,0x1d2,_0x57d822._0x209c3a)](-_0x26ae6e[_0x5422db(_0x57d822._0x5e23a2,0x70f,_0x57d822._0x54e52f,_0x57d822._0x48c5d2)],_0x3aa317);}catch{_0x26ae6e[_0x2de97d(_0x57d822._0x2618fd,0x127,-_0x57d822._0x4b60a3,_0x57d822._0x302824)](_0x3aa317);}}function appendChunk(_0x9cf6fe,_0x56f38a,_0x362897,_0x15e15b,_0x3a85e4){const _0x570e12={_0x3117d8:0x203,_0x11ca31:0x24d,_0x508334:0x320,_0x46a813:0x5c1,_0x5f1a94:0x63e,_0x47f404:0x53a,_0x276132:0x535},_0x4265c6={_0x1d2360:0x4b1,_0x1589f5:0x4e},_0x5e4fcd={_0x28932f:0x6e},_0x307620=_0x15e15b?stripAnsiAndControls(_0x362897):_0x362897;if(_0x307620[_0x2e878e(0x1e5,0x179,_0x570e12._0x3117d8,0x15a)]===0x0)return;_0x9cf6fe[_0x2e878e(_0x570e12._0x11ca31,_0x570e12._0x508334,0x1ff,0x1f1)](_0x307620);function _0x205045(_0x3c3eab,_0x40b4f9,_0x359cc5,_0x1cb25f){return _0x255f51(_0x40b4f9- -0x72,_0x40b4f9-0xc7,_0x359cc5,_0x1cb25f-_0x5e4fcd._0x28932f);}_0x56f38a[_0x205045(_0x570e12._0x46a813,_0x570e12._0x5f1a94,_0x570e12._0x47f404,_0x570e12._0x276132)](_0x307620);function _0x2e878e(_0x4d20c2,_0x436ad5,_0x18f659,_0x2bb91f){return _0x255f51(_0x18f659- -_0x4265c6._0x1d2360,_0x436ad5-_0x4265c6._0x1589f5,_0x2bb91f,_0x2bb91f-0x177);}_0x3a85e4();}function createBashTool(_0x1463fb={}){const _0x73af50={_0x57289e:0x20c,_0x4dc6d6:0xfd,_0x372cab:0xb3,_0x1b2be2:0x19b,_0x8e272d:0x96,_0x5d96b2:0x6ef,_0xd9ffb5:0x726,_0x23c739:0x6a9,_0x447aea:0x556,_0x453443:0x683,_0x3a2005:0x5d3,_0x2fadfc:0x59f,_0x47f0a4:0x639,_0x3a37f5:0x736,_0x200e46:0x1e,_0xbbfba2:0xcd,_0x3a7d22:0xe0,_0x47f34a:0x9a,_0xf3b9bd:0x7a,_0x39b3d6:0x31,_0x498552:0x48,_0x11e890:0x6f,_0x32ed5b:0x7fd,_0x3ffd41:0x649,_0x1673df:0x82,_0x4c90fb:0x65c,_0x5378bb:0xd0,_0x2dd9ec:0x8d,_0x533e49:0x23,_0x27f419:0x52,_0x4f4ed1:0x5f7},_0x4ab724={_0x18172d:0x6e4,_0x2ff0cc:0x38f,_0x3c81f5:0x3c3,_0x4e435e:0x7cd,_0x5e15d2:0x7e5,_0x30ef80:0x6fa,_0x1ccf16:0x7ee,_0x15bfb1:0x71c,_0x1121ff:0x37,_0x5e3276:0x78e,_0x48a736:0x8c6,_0x4ed86f:0x1f,_0x494abe:0x45,_0x194420:0xcf,_0x4cf6c4:0x28e,_0x3cf1a5:0x105,_0x2d355f:0x16d,_0x3a7c41:0x65e,_0x524f29:0x65c,_0x40cbb4:0x5c,_0x292a56:0x17d,_0x500fec:0x20f,_0x15f40e:0x150,_0x110c01:0x74d,_0x3d0e9c:0x73c,_0x2d9dd8:0x66f,_0x3fa36e:0x66e,_0x2754f7:0x6da,_0x2a43c6:0x6c1,_0x472fd2:0x858,_0x371e93:0x2e6,_0x2a9da5:0x238,_0x105293:0x4f,_0x975041:0x26,_0x54ca2c:0x12b,_0x110f4f:0x118,_0x419858:0x616,_0x240811:0x79f,_0x5953de:0x549,_0xc68f11:0x63f,_0x2e8880:0x20d,_0x53b1fd:0x73b,_0x48834f:0x6d8,_0x113463:0x726,_0x112188:0x872,_0x77229a:0x873,_0x5acd44:0x761,_0x37b28c:0x6a3,_0x15978a:0x87f,_0x5bed1e:0x603,_0x16a495:0x662,_0x547465:0x811,_0x5819cb:0x3f5,_0x2b870a:0x714,_0x411536:0x885,_0x31c501:0x1d6,_0xe866fa:0x21a,_0x6cc0d8:0x165,_0x287bd9:0x154,_0xdf6950:0x17f,_0x9cb278:0x2dd,_0x3c43a3:0x25e,_0x3c09ac:0x1ab,_0x292039:0x2c1,_0x2fb8fa:0x7f2,_0x2722ef:0x6b0,_0x4bb9b8:0x838,_0x41304d:0x655,_0x3a03d7:0x70e,_0x73f4e9:0x66a,_0x580e7b:0x6f3,_0x59b593:0x67b,_0x3b2f35:0x5ad,_0x398aff:0xfe,_0x506246:0x5c4,_0x935583:0x6fc,_0x31affd:0x734,_0x1e3027:0x63f,_0x13c5d5:0x647,_0x582252:0x764,_0x5e36a3:0x688,_0x283e89:0x758,_0x1298e:0x6e9,_0x5e2117:0x5fe,_0x1b6f86:0x64b},_0xcf247={_0x5a21d7:0x41c,_0x5c5d22:0x4ba},_0x19d9b7={_0x2ec917:0x10c,_0x15f9f2:0x751},_0x1c303d={_0xc9b908:0x1a0},_0x248ec7={_0x29ec81:0x12,_0x3878c4:0x509};function _0x1b8bd4(_0x2c1934,_0x1dbffa,_0x2326b9,_0xdc71d0){return _0x173565(_0x2c1934-0x4a,_0x1dbffa-_0x248ec7._0x29ec81,_0x2326b9,_0xdc71d0-_0x248ec7._0x3878c4);}const _0xe3f087=_0x552678[_0x270b6a(-_0x73af50._0x57289e,-_0x73af50._0x4dc6d6,-0x156,-_0x73af50._0x372cab)](_0x1463fb[_0x270b6a(-_0x73af50._0x1b2be2,_0x73af50._0x8e272d,-0x95,-0x5b)]??process[_0x1b8bd4(0x7e0,_0x73af50._0x5d96b2,0x645,_0x73af50._0xd9ffb5)]()),_0x138dae=(_0x1463fb[_0x1b8bd4(_0x73af50._0x23c739,0x63e,_0x73af50._0x447aea,_0x73af50._0x453443)]??[])[_0x1b8bd4(_0x73af50._0x3a2005,_0x73af50._0x2fadfc,0x525,0x54b)](_0x9c61f2=>_0x552678[_0x270b6a(-0x1f1,-0x148,-0x156,-0x220)](_0x9c61f2));function _0x270b6a(_0x590e9e,_0x3612eb,_0x3a9fea,_0x2bb20f){return _0x255f51(_0x3a9fea- -0x6df,_0x3612eb-_0x1c303d._0xc9b908,_0x3612eb,_0x2bb20f-0xeb);}const _0x5831c9=_0x1463fb[_0x1b8bd4(_0x73af50._0x47f0a4,_0x73af50._0x3a37f5,0x775,0x73d)]??DEFAULT_TIMEOUT_MS,_0x40136b=_0x1463fb[_0x270b6a(_0x73af50._0x200e46,-_0x73af50._0xbbfba2,-_0x73af50._0x3a7d22,-_0x73af50._0x47f34a)]??!![],_0x2dcf59=_0x1463fb[_0x270b6a(-_0x73af50._0xf3b9bd,_0x73af50._0x39b3d6,0x33,_0x73af50._0x498552)]??_0x270b6a(-0xd6,0x16b,0x42,-_0x73af50._0x11e890);return defineTool({'name':_0x2dcf59,'description':_0x1463fb[_0x1b8bd4(0x636,_0x73af50._0x32ed5b,_0x73af50._0x3ffd41,0x6ec)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x270b6a(-0x88,-0x123,-_0x73af50._0x1673df,0x8f),'properties':{'command':{'type':'string'},'cwd':{'type':_0x1b8bd4(0x53c,0x63b,0x574,_0x73af50._0x4c90fb)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x270b6a(_0x73af50._0x5378bb,-_0x73af50._0x2dd9ec,-_0x73af50._0x533e49,_0x73af50._0x27f419)}},'required':[_0x1b8bd4(0x636,0x762,_0x73af50._0x4f4ed1,0x639)]},async *'execute'(_0x34f44f,_0x399e8b){const _0x187c64={_0x116ce5:0x2e8,_0x4513fc:0x46b,_0x38eef5:0x27d,_0x4a2571:0x3a7,_0x3a0fa9:0x362,_0x470f20:0x2cb},_0x1f037a={_0xf3adf8:0xdf,_0x4ecf3c:0x121,_0x56662f:0x6a,_0x5a7d25:0x14c,_0x3da735:0x4c,_0x5efa90:0x146,_0x366147:0x1ac,_0x26e070:0x57,_0x18a5be:0x16},_0x11cf8b={_0x46a550:0x3e},_0x25f95f={_0x3c7d1c:0x39},_0x28ac9e={_0xb00127:0x8f,_0x6fbd4e:0x49,_0x2653d0:0x5c,_0x25bfcb:0x6a6,_0x1317cc:0x68a},_0x2d203c={_0x33dc5b:0x2fa,_0x34e33f:0x3d2,_0x81f6f6:0x1ca},_0x2a79eb={_0x124fc5:0x4f4},_0x33d020={_0x480663:0x3a,_0x3b8172:0x152},_0x581fe5={_0x48f061:0x32e,_0x4b195b:0x2bd,_0x1789f4:0x3ed},_0x308196={_0x1756be:0x13c},_0x4d092b={_0x3dce5b:0x245},_0x50fb6c=_0x34f44f[_0x4a08e0(0x734,_0x4ab724._0x18172d,0x6ca,0x62f)]??_0x5831c9;function _0x4c0979(_0x19cf77,_0x153bcd,_0x5cd9ce,_0xf4f48b){return _0x270b6a(_0x19cf77-0x12f,_0x153bcd,_0xf4f48b-_0x4d092b._0x3dce5b,_0xf4f48b-0x9a);}if(!Number[_0x4c0979(_0x4ab724._0x2ff0cc,0x27a,_0x4ab724._0x3c81f5,0x2f3)](_0x50fb6c)||_0x50fb6c<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x34f44f['command']});throwIfAborted(_0x399e8b[_0x4a08e0(_0x4ab724._0x4e435e,_0x4ab724._0x5e15d2,_0x4ab724._0x30ef80,_0x4ab724._0x1ccf16)]);const _0x4b6af8=resolveWorkingDirectory(_0x34f44f[_0x4a08e0(0x7de,_0x4ab724._0x15bfb1,0x921,0x7fb)],_0xe3f087,_0x138dae),_0x900c2f=_0x34f44f[_0x4c0979(-0x2f,_0x4ab724._0x1121ff,0x83,0xf7)]??![],_0x151863=resolveDefaultShell(_0x1463fb[_0x4a08e0(0x6bf,0x884,0x6df,_0x4ab724._0x5e3276)]),_0x11642e=buildShellArgs(_0x34f44f[_0x4a08e0(0x6fb,0x646,0x82b,0x70e)],_0x151863),_0x10dae0=_0x500cef[_0x4a08e0(_0x4ab724._0x48a736,0x798,0x8ff,0x7dd)]()===_0x4c0979(-_0x4ab724._0x4ed86f,0x59,_0x4ab724._0x494abe,_0x4ab724._0x194420);let _0x260c89;try{_0x260c89=_0x45a0d8(_0x151863,_0x11642e,{'cwd':_0x4b6af8,'env':{...process[_0x4c0979(0xa2,_0x4ab724._0x4cf6c4,_0x4ab724._0x3cf1a5,_0x4ab724._0x2d355f)],..._0x1463fb['env']??{}},'stdio':_0x900c2f?[_0x4a08e0(0x5ed,_0x4ab724._0x3a7c41,0x6c3,_0x4ab724._0x524f29),_0x4c0979(0xdc,0x19e,_0x4ab724._0x40cbb4,0x150),_0x4c0979(_0x4ab724._0x292a56,0x251,_0x4ab724._0x500fec,_0x4ab724._0x15f40e)]:[_0x4c0979(0x211,0x173,0x25c,_0x4ab724._0x15f40e),_0x4a08e0(0x6cb,_0x4ab724._0x110c01,_0x4ab724._0x3d0e9c,_0x4ab724._0x2d9dd8),_0x4a08e0(0x551,_0x4ab724._0x3fa36e,0x69e,0x66f)],'shell':![],'windowsHide':!![],'detached':!_0x10dae0});}catch(_0x4b558d){if(isErrnoException(_0x4b558d)&&_0x4b558d[_0x4a08e0(0x720,0x832,0x774,0x76a)]===_0x4a08e0(_0x4ab724._0x2754f7,0x7b3,0x785,_0x4ab724._0x4e435e))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x151863,{'command':_0x34f44f[_0x4a08e0(_0x4ab724._0x2a43c6,0x6c4,0x72a,0x70e)],'cwd':_0x4b6af8,'shellPath':_0x151863});throw new ToolExecutionError(_0x4b558d instanceof Error?_0x4b558d['message']:String(_0x4b558d),{'command':_0x34f44f['command'],'cwd':_0x4b6af8,'shellPath':_0x151863});}const _0x4044a4=[];function _0x4a08e0(_0x5ed5e5,_0x1d5016,_0x34ea64,_0x16f707){return _0x270b6a(_0x5ed5e5-_0x19d9b7._0x2ec917,_0x34ea64,_0x16f707-_0x19d9b7._0x15f9f2,_0x16f707-0x13d);}const _0xd562ba=[],_0x5e32e3=new StringDecoder(_0x4a08e0(0x660,_0x4ab724._0x472fd2,0x6e5,0x744)),_0x40fde7=new StringDecoder(_0x4c0979(0x1ee,_0x4ab724._0x371e93,0x337,_0x4ab724._0x2a9da5));let _0xb31111,_0x30660b=![],_0x255ed3;const _0x474e59=()=>{if(!_0xb31111)return;const _0x1b0e51=_0xb31111;_0xb31111=void 0x0,_0x1b0e51();},_0x42274b=async()=>{const _0x3fbea8={_0x5c7ffa:0x16,_0x35bb2f:0x45};if(_0xd562ba[_0x2ac16d(0x560,_0xcf247._0x5a21d7,0x4f2,_0xcf247._0x5c5d22)]>0x0||_0x30660b)return;function _0x2ac16d(_0x5357d2,_0x3bd3aa,_0x2e0dcc,_0x40915c){return _0x4a08e0(_0x5357d2-_0x3fbea8._0x5c7ffa,_0x3bd3aa-_0x3fbea8._0x35bb2f,_0x2e0dcc,_0x40915c- -0x26c);}await new Promise(_0x504ea8=>{_0xb31111=_0x504ea8;});},_0x53c7c2=_0x2f2d5c=>{function _0x4035b4(_0x3b734b,_0x56f447,_0xd6b9bb,_0x545485){return _0x4c0979(_0x3b734b-_0x308196._0x1756be,_0x56f447,_0xd6b9bb-0x8a,_0x545485-0x1a2);}appendChunk(_0x4044a4,_0xd562ba,_0x5e32e3[_0x4035b4(0x3bd,_0x581fe5._0x48f061,_0x581fe5._0x4b195b,_0x581fe5._0x1789f4)](_0x2f2d5c),_0x40136b,_0x474e59);},_0x534c52=_0x547212=>{function _0x4416a8(_0x4bb6ea,_0xd0cb76,_0x305b87,_0x59ff51){return _0x4a08e0(_0x4bb6ea-0x96,_0xd0cb76-0xf2,_0x4bb6ea,_0xd0cb76- -0x6e7);}appendChunk(_0x4044a4,_0xd562ba,_0x40fde7[_0x4416a8(-_0x33d020._0x480663,0x70,0x75,_0x33d020._0x3b8172)](_0x547212),_0x40136b,_0x474e59);};_0x260c89[_0x4c0979(_0x4ab724._0x105293,_0x4ab724._0x975041,_0x4ab724._0x54ca2c,_0x4ab724._0x110f4f)]?.['on'](_0x4a08e0(_0x4ab724._0x419858,0x7c1,_0x4ab724._0x240811,0x719),_0x53c7c2),_0x260c89[_0x4a08e0(_0x4ab724._0x5953de,0x658,_0x4ab724._0x3d0e9c,_0x4ab724._0xc68f11)]?.['on'](_0x4c0979(0xf8,0x287,0x130,_0x4ab724._0x2e8880),_0x534c52);let _0xa076d8=![],_0x4b7811;const _0x220fee=addAbortListener(_0x399e8b['signal'],()=>{const _0x41ddc8={_0x31799c:0xde};_0x255ed3=toAbortError(_0x399e8b[_0xfbab6(0x22e,_0x2d203c._0x33dc5b,_0x2d203c._0x34e33f,0x2e3)][_0xfbab6(_0x2d203c._0x81f6f6,0x2f8,0x2a2,0x3c8)]);function _0x91502c(_0x5cfdfc,_0x54dc71,_0x3f03d2,_0x262700){return _0x4a08e0(_0x5cfdfc-_0x41ddc8._0x31799c,_0x54dc71-0x2e,_0x5cfdfc,_0x262700- -0x742);}_0x30660b=!![],_0x474e59();function _0xfbab6(_0x26244b,_0x2b2dfc,_0x37e6a8,_0x2f2b1a){return _0x4a08e0(_0x26244b-0xbe,_0x2b2dfc-0x50,_0x2f2b1a,_0x2b2dfc- -_0x2a79eb._0x124fc5);}try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}});try{const _0x4a277a=new Promise((_0x349210,_0x1b0f5c)=>{const _0x4a4394={_0x5e674f:0x1f9},_0x3af132={_0x1fb2a2:0x56,_0x553bac:0xf2,_0x544c47:0xa9,_0x53f833:0x161},_0x2d6c9a={_0x51a044:0x2da},_0x41b559=()=>{function _0x142fc7(_0x485215,_0x15e970,_0xc43f58,_0x2274a5){return _0x4100(_0x485215- -0x1f3,_0x2274a5);}function _0x24d1d0(_0x123abe,_0x5f2df8,_0x53a3e8,_0x2ac054){return _0x4100(_0x53a3e8-_0x2d6c9a._0x51a044,_0x123abe);}_0x4b7811&&(clearTimeout(_0x4b7811),_0x4b7811=void 0x0),_0x260c89[_0x142fc7(_0x28ac9e._0xb00127,-_0x28ac9e._0x6fbd4e,0x4b,-_0x28ac9e._0x2653d0)]('error',_0x2b4d62),_0x260c89['off'](_0x24d1d0(_0x28ac9e._0x25bfcb,0x6ee,_0x28ac9e._0x1317cc,0x58c),_0x50c140);};function _0x30da90(_0x182060,_0x21c431,_0x52087d,_0x3e0bdc){return _0x4a08e0(_0x182060-0x111,_0x21c431-_0x25f95f._0x3c7d1c,_0x182060,_0x52087d- -0x2d8);}function _0x377bdc(_0x25ffa5,_0x247a2c,_0x1ce85f,_0x453e3a){return _0x4c0979(_0x25ffa5-0xf,_0x453e3a,_0x1ce85f-_0x11cf8b._0x46a550,_0x25ffa5-0x1e1);}const _0x2b4d62=_0x15ce54=>{_0x30660b=!![],_0x474e59(),_0x41b559(),_0x1b0f5c(_0x255ed3??_0x15ce54);},_0x50c140=(_0x18826f,_0x1b8e36)=>{_0xa076d8=!![],appendChunk(_0x4044a4,_0xd562ba,_0x5e32e3[_0x2fbab0(_0x3af132._0x1fb2a2,_0x3af132._0x553bac,0x161,0x175)](),_0x40136b,_0x474e59),appendChunk(_0x4044a4,_0xd562ba,_0x40fde7[_0x2fbab0(0x45,_0x3af132._0x544c47,_0x3af132._0x53f833,0x81)](),_0x40136b,_0x474e59),_0x30660b=!![];function _0x2b28dd(_0x145f42,_0x1c75a8,_0x5db657,_0x2608a1){return _0x4100(_0x145f42-0xd6,_0x2608a1);}_0x474e59(),_0x41b559();function _0x2fbab0(_0x128e48,_0x19fd42,_0x56d27b,_0xdbfb0){return _0x4100(_0x56d27b- -0x190,_0x19fd42);}if(_0x255ed3){_0x1b0f5c(_0x255ed3);return;}_0x349210({'code':_0x18826f,'signal':_0x1b8e36});};_0x4b7811=setTimeout(()=>{_0x30660b=!![],_0x474e59();function _0x5f25ba(_0x2f1489,_0x2e17f2,_0x567493,_0x36cd72){return _0x4100(_0x567493- -_0x4a4394._0x5e674f,_0x2f1489);}function _0x3fecfa(_0x59750b,_0x224fd6,_0x3ac40e,_0x4bccfb){return _0x4100(_0x59750b- -0x275,_0x3ac40e);}_0x41b559();try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}_0x1b0f5c(new ToolExecutionError(_0x3fecfa(_0x1f037a._0xf3adf8,0x1d4,_0x1f037a._0x4ecf3c,0x1f1)+_0x50fb6c+_0x3fecfa(_0x1f037a._0x56662f,_0x1f037a._0x5a7d25,_0x1f037a._0x3da735,_0x1f037a._0x5efa90),{'command':_0x34f44f[_0x3fecfa(0xb3,_0x1f037a._0x366147,_0x1f037a._0x26e070,_0x1f037a._0x18a5be)],'cwd':_0x4b6af8,'shellPath':_0x151863,'timeoutMs':_0x50fb6c,'timedOut':!![]}));},_0x50fb6c),_0x260c89[_0x377bdc(0x362,_0x187c64._0x116ce5,_0x187c64._0x4513fc,_0x187c64._0x38eef5)](_0x30da90(0x4c5,0x4b3,_0x187c64._0x4a2571,0x303),_0x2b4d62),_0x260c89[_0x377bdc(_0x187c64._0x3a0fa9,0x353,_0x187c64._0x470f20,0x355)](_0x30da90(0x448,0x583,0x4be,0x49a),_0x50c140);});while(_0xd562ba[_0x4a08e0(_0x4ab724._0x53b1fd,_0x4ab724._0x48834f,0x732,_0x4ab724._0x113463)]>0x0||!_0x30660b){if(_0xd562ba['length']===0x0){await _0x42274b();continue;}const _0x3c3c89=_0xd562ba['shift']();_0x3c3c89!==void 0x0&&(yield _0x3c3c89);}const _0x2cdc74=await _0x4a277a,_0x11a96e=_0x900c2f?_0x4a08e0(_0x4ab724._0x112188,_0x4ab724._0x77229a,0x752,_0x4ab724._0x5acd44)+(_0x2cdc74[_0x4a08e0(_0x4ab724._0x37b28c,0x753,_0x4ab724._0x15978a,0x76a)]??0x0):_0x4044a4[_0x4a08e0(_0x4ab724._0x5bed1e,0x588,0x73a,_0x4ab724._0x16a495)](''),_0x101c3f={'command':_0x34f44f['command'],'cwd':_0x4b6af8,'exitCode':_0x2cdc74[_0x4a08e0(_0x4ab724._0x547465,0x816,0x64a,0x76a)]??0x0,'signal':_0x2cdc74[_0x4c0979(_0x4ab724._0x5819cb,0x366,0x249,0x2e2)],'ignoreOutput':_0x900c2f,'shellPath':_0x151863,'timeoutMs':_0x50fb6c};if(_0x2cdc74[_0x4a08e0(_0x4ab724._0x2b870a,0x879,0x6f5,0x76a)]!==0x0)throw new ToolExecutionError(_0x11a96e||'Command\x20exited\x20with\x20code\x20'+(_0x2cdc74[_0x4a08e0(_0x4ab724._0x411536,0x677,0x831,0x76a)]??0x0),_0x101c3f);return createToolOutput(_0x11a96e,_0x101c3f);}catch(_0x59c6f0){while(_0xd562ba[_0x4c0979(0x229,_0x4ab724._0x31c501,0x1aa,_0x4ab724._0xe866fa)]>0x0){const _0x4b01a7=_0xd562ba[_0x4c0979(0x1bc,0x272,_0x4ab724._0x6cc0d8,_0x4ab724._0x287bd9)]();_0x4b01a7!==void 0x0&&(yield _0x4b01a7);}if(_0x59c6f0 instanceof ToolExecutionError)throw _0x59c6f0;if(_0x255ed3)throw _0x255ed3;if(isErrnoException(_0x59c6f0)&&_0x59c6f0[_0x4c0979(_0x4ab724._0xdf6950,0x333,_0x4ab724._0x9cb278,_0x4ab724._0x3c43a3)]===_0x4c0979(0x2cc,0x331,_0x4ab724._0x3c09ac,_0x4ab724._0x292039))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x151863,{'command':_0x34f44f[_0x4a08e0(0x752,_0x4ab724._0x2fb8fa,0x5de,0x70e)],'cwd':_0x4b6af8,'shellPath':_0x151863});throw new ToolExecutionError(_0x59c6f0 instanceof Error?_0x59c6f0[_0x4a08e0(_0x4ab724._0x2722ef,0x6ca,_0x4ab724._0x4bb9b8,0x771)]:String(_0x59c6f0),{'command':_0x34f44f[_0x4a08e0(_0x4ab724._0x41304d,_0x4ab724._0x3a03d7,_0x4ab724._0x73f4e9,_0x4ab724._0x3a03d7)],'cwd':_0x4b6af8,'shellPath':_0x151863});}finally{_0x4b7811&&clearTimeout(_0x4b7811);_0x220fee(),_0x260c89[_0x4a08e0(0x6bc,_0x4ab724._0x580e7b,0x699,0x624)]?.[_0x4a08e0(_0x4ab724._0x59b593,0x6dc,_0x4ab724._0x3b2f35,0x668)](_0x4c0979(0x1e8,0x134,_0x4ab724._0x398aff,0x20d),_0x53c7c2),_0x260c89[_0x4a08e0(_0x4ab724._0x506246,_0x4ab724._0x935583,_0x4ab724._0x31affd,_0x4ab724._0x1e3027)]?.[_0x4a08e0(0x5b0,_0x4ab724._0x13c5d5,_0x4ab724._0x582252,0x668)](_0x4a08e0(0x65a,_0x4ab724._0x5e36a3,0x7cf,0x719),_0x534c52);if(!_0xa076d8&&_0x260c89['pid']&&!_0x260c89[_0x4a08e0(_0x4ab724._0x283e89,_0x4ab724._0x1298e,_0x4ab724._0x5e2117,_0x4ab724._0x1b6f86)])try{killProcessGroup(_0x260c89,_0x10dae0);}catch{}}}});}function createShellExecTool(_0x3d8eed={}){return createBashTool(_0x3d8eed);}import{readdir,readFile as _0x3fbef9}from'fs/promises';import{extname,join as _0x31e552}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xa7559e,join,relative as _0x4cdf8b,resolve as _0x76845d}from'path';function _0x2b52(){const _0x7731c6=['zw52','lMPWzwC','BNvTyMvY','BM9Zy3jPChq','qxnZAwDUvgfZAW','Ec1HCgKTA2v5','zxjYB3i','B3bLBMfPlxjLC3bVBNnLCW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','C3vIyxjYyxK','u0Lhs0Lmta','ywrKrxzLBNrmAxn0zw5LCG','y2HHCKnVzgvbDa','yM0Ynq','ls0T','Dg9vChbLCKnHC2u','lNDLyNa','C29YDa','lu5VuhjVzMLSzq','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','B25Jzq','Dg9VBa','B2zMC2v0','q29TBwfUzcaN','y29UDgv4Da','AxrLBxm','y2HHBMDL','zgvUBY5QC29U','BgLUAW','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','Bg9HzfnRAwXS','BwvTB3j5','ANnVBMm','te9x','uKLgrG','yxbPs2v5','DhLWzq','Bg9JywXLq29TCgfYzq','Cgf0Ag5HBwu','CMvMzxjLBMnLCW','BgLNAhq','y29UDgvUDa','AMf2yxnJCMLWDa','sfruuca','C3vKBW','v2LUr2v0','BxrPBwvnCW','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y29UC3rYDwn0B3i','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','yMLVBwu','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','wZ0+nY04kcLD','C2vUze5VDgLMAwnHDgLVBG','Dg9mB3DLCKnHC2u','zNvSzMLSBgvK','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','C2vZC2LVBKLK','C3LTBgLUAW','y2HHCMfJDgvY','Bwf0y2HLCW','uefusa','lMPZ','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','BM90Awz5','zgvMyxvSDen3za','BwnFzwLK','D2HLCMuGCMC','CMvMCMvZAf90B2TLBG','CMvWBgfJzq','BgLUzvrLEhq','AgvHzgvYCW','lMnQCW','BwfYA2rVD24','ig1Z','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','AgvHzgvY','uhjVz3jHBuzPBgvZkhG4nIK','DhLWzxnJCMLWDhjLywn0','zgvSzwDHDgvKlxj1BI0','C2H1DgrVD25tDgfYDgvK','yxjNCW','B3b0Aw9UywW','z29uB0rLzMLUAxrPB24','B2jQzwn0','BM93','ndm2ntu0oejmr3b3DW','u0HfteW','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','DxnLCM5HBwu','DxrTx3nVDxjJzq','zgLHz25VC3rPy3m','zw5K','CgfJA2fNzs1SB2nRlMPZB24','tM8GC3LTyM9SCYbMB3vUza','yMfZzty0','CMvZDwX0','C2fMzq','zMLUza','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','lI4U','y2fSBgjHy2TvCMW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','zMjJBgLK','y29UBMvJDgLVBG','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ywXSu2v0DgXLza','zMXHDe1HCa','zg9JDw1LBNrtEw1IB2W','xg5DkJ8','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B3rOzxi','DMfSDwu','ugf0AcbUB3qGzM91BMq6ia','rgLHz25VC3rPyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','B3bLBMfPlxjLC3bVBNnLCY13CW','Aw1WBgvTzw50yxrPB24','lMPZB24','Dgv4Dc9ODg1S','Aw5PDgLHBgL6zwq','B3jPz2LUvg9VBenHBgXjza','y21KlMv4zq','z29Vz2XLq3nLq3G','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','C2L6zq','r0LgodLH','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','zMLUzfjLzMvYzw5Jzxm','ugf0AcbPCYbUB3qGysbMAwXLoIa','CMvTB3zL','ignVBxbSzxrLzc4','C3jJl2fNzw50l2fNzw50lNrZ','DhnZzxj2zxiUANm','zw5HyMXLza','yNjVA2vU','DhLWzxnJCMLWDa','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','twLJCM9ZB2z0','Dgv4Da','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','u3rHCNrLzcbHz2vUDcbYDw4G','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','tunqihrVB2WG','C2vYDMvYCW','y29TBwfUza','D2HPy2GGCMC','C3rHCNreAxi','Dw5PB24','rMLSzu5LDW','Dgv4DerVy3vTzw50l2rPze9Wzw4','zgLZCg9Zzq','l3vZCI9IAw4VCMC','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C3rHDhvZ','zgf0yq','C2TPBgXZ','CMvXDwvZDa','zgLHz25VC3rPy3ngB3jgAwXL','lMPZB25J','tgLUzsa','C2L0ztO','qxzHAwXHyMXLignVBw1HBMrZoG','C2HHmJu2','ChvZAa','AgfZ','DhvWBgu','EwvZ','BgvUz3rO','yxv0AfjLCxvPCMvK','CMvJzw5JEurHExm','DgL0Bgu','BhnWu2vYDMLJzq','qMvHCMvYia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','mtqYmJa4mtbNqwf6tuy','yM9VBgvHBG','Ag9TzwrPCG','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','C3rYAw5N','B3bLBG','Aw5JBhvKzxm','ANnVBG','CgfYzw50u2vZC2LVBKLK','Ahr0Ca','Aw5PDgLHBgL6zq','te9dquXbufbeqvrb','uhjVz3jHBuzPBgvZ','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Dg9Rzw5Z','B3v0Chv0','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','z2L0qNjHBMnO','C2v0','AxnfBMfIBgvK','C2vYDMvY','DgvZDa','igj5DgvZigv4y2vLzhmG','DxrMoa','zgvSzxrL','C2vHCMnOugfYyw1Z','ksbB','lMPWzW','A2LSBa','ls1ZDgrPBW','C2vHCMnOvhLWzq','CgfJA2fNzu5HBwu','BgLUzvn0yxj0','z29Vz2XLlwnZzq','y29KzvzLCMLMAwvY','AxntEw1IB2XPy0XPBMS','mZG3mxvcBfDIrW','C2XPy2u','rMLSzuvKAxq','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','BgfUzW','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','D3jPDgu','ywXSB3DLzerPCNm','zMLYC3q','v2vIrMv0y2G','DMvYAwzPzxi','A2v5','zgLZy292zxj5','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','Cg5WBs1SB2nRlNLHBwW','zxHPDcbJB2rLia','CgXHAw50zxH0','r2XVyG','nu5tzhjhDW','rM91BMqG','CgfYC2vjBNq','AxnjBNrLz2vY','CMfUz2u','zMLSzvbHDgG','y29Kzq','r3jLCa','DxjS','Bg93','Bw9Kzq','BgLUzu51Bq','cGOTls0kcG','BwvZC2fNzq','y29Uy2f0','tM8GAg92zxiGAw5MB3jTyxrPB24','D29YA3nWywnLu3LTyM9S','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','mJi5mtu4sgvYA0XK','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','yxv0Ag9YAxPHDgLVBL9JB2rL','zhj5uNvU','tNv2Aw4','C3rHCNrZv2L0Aa','yxjYyxK','l3bPza','DhnJB25MAwCUANnVBG','BwLU','ugfJA2fNzxm','ihDHCYbHyM9YDgvKlG','BMfTzq','Dg91y2HgAwXL','yxjNDw1LBNrZvgv4Da','ls1JB2X1Bw4','l2jPBI9IyxnO','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Dg9Rzw5tDg9YywDLs2v5','CMfUAW','yxnZAwDU','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','C2HLBgXqyxrO','yxbWBgLJyxrPB24VANnVBG','ChjLCgfYzunHBgXiAwvYyxjJAhK','y2XPzw50','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','qMfZAa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','y2XVC2u','Bwv0yxrHz3m','z2nSAwq','DgfZAW','BgfUz3vHz2u','ls1NBg9I','y3jSzG','y2vPBa','yMvHCMvY','CxvLCNK','yxr4','odrABuPZvuK','yxjNDw1LBNroyw1LCW','zxH0BMfTzq','ywn0AxzL','ls1WCMvMAxG','tuLnrtOG','Dg9ju09tDhjPBMC','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y2XPzw50CW','CMvNAw9U','seLhsa','C3rHCNq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','mJC2uuzTzxzL','zgf0zvjLC3rYAwn0','qMfZzsbKAxjLy3rVCNK6ia','rgv0ywLSoIa','Ahr0CdO','o1TExg5DkJ8','Dg9VBhmVy2fSBa','zMLSDgvY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','y29UzMLN','zgLZy292zxj5u3rHDgu','Aw5JBhvKzq','yw50AhjVCgLJlw1LC3nHz2vZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','D2fPDezVCKrPywDUB3n0AwnZ','DxrTx21LzgL1Bq','cMbGya','CgfJA2fNzxm','zgvZy3jPChrPB24','DgfZA2TPBgW','CgLK','l29WDc9OB21LyNjLDY9IAw4VCMC','yxv0BW','lu5Vtg9NBW','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','D2vI','yNvUlMXVy2TI','Dw5RBM93BG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','C2vUza','ru5pru5u','C3rHDgu','C3rYAw5NAwz5','vMLLD2vKigLTywDLigzPBgu6ia','tM8GC3vJAcbMAwXLoIaN','BNv2Aw4','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Aw5ZDhj1y3rPB25Z','vw5HDxrOB3jPEMvKrxjYB3i','y29UDgvUDc1Szw5NDgG','Dg9VBenHBgXjza','C2vYDMvYtMfTzq','C3bHD25PBMC','AxngAwXL','l3vZCI9SB2nHBc9IAw4VCMC','CM9VDa','CgXHDgzVCM0','BgLZDfrVB2XZ','C25PChbLDa','y29ZDa','ywjVCNrLza','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','lMjPBG','yxnPzgu','BgLI','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zw50CMLLCW','y291BNq','t0zg','lMDPzG','B25szwrPCMvJDa','CMvHC29U','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','C2LNBMfS','yNvUlMXVy2S','zMLSzq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','z29Vz2XLq3nLs2v5','yMfZzw5HBwu','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','yM94zwq','yM9KEq','igzYB20G','ie9sia','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','lM51DMLU','y3DK','qxv0Ag9YAxPHDgLVBG','Aw50zwDLCG','CMvXDwLYzwq','AxngAw5PDgu','sw5MB3jTyxrPB24','ig1HDgnO','qwDLBNqGCNvUia','Aw5JB21PBMDdywXSCW','BMv3vgv4Da','cGPbuKDvtuvovfm6ia','zxHPDa','ywXSB3DLzfrVB2XZ','z2XVyG','Dg9Rzw4','DxrTx2nHBxbHAwDU','C291CMnL','Ag92zxi','mZaXnZDpzhjyAKi','DxjP','B3bLCMf0Aw9U','y2XPzw50sw5MB3jTyxrPB24','sw52ywXPzcbvuKWGCgfYyw1LDgvY','zgvMyxvSDfrPBwvVDxrnCW','CMCUzxHL','BM9Kzv9TB2r1BgvZ','zM9VDgvY','igzHAwXLzc4','CMfUzg9T','CMvJB3jK','BgLUzuvUza','lNrTCc4','zgvMAw5PDgLVBG','AxneAxjLy3rVCNK','CMLWz3jLCcbMywLSzwq6ia','AxnfCNjVCG','q29Tu3bLyW','zMLSzvzLCNnPB25Z','CNnZ','Bwf4qNL0zxm','DhjPBq','CMLWz3jLCa','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','AMf2yxnJCMLWDhjLywn0','Ag9ZDa','B25oB3rPzMLJyxrPB24','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','zgvSAw1PDgvY','yMLYDgH0Aw1L','tunqihnLCNzLCIa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AxnbCNjHEq','A2v5CW','y29UBMvJDa','C2nYAxb0','Aw5WDxq','o1TE','zgf0zxrPBwu','BwnWxW','Aw1Hz2uVANbLzW','rMLSzsb3CML0DgvUigf0ia','AhrTBfnUAxbWzxq','y29UDgvUDhm','D2LUmZi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C3r5Bgu','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','B2f1DgG','tg9HzfnRAwXS','C2vUzfjLCxvLC3q','lw5i','CMvXDwvZDhm','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','y2XLyxi','y2fUy2vS','qgjPB21LANmVyMLVBwu','BhnW','lMPZEa','AgfZq2XPzw50CW','DxbKyxrL','Aw1Hz2vZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','Aw5ZDgfSBa','Cgf0DgvYBIbPCYbYzxf1AxjLza','DxrTx2nVBNrLBNq','y2fSBfrVB2W','lNbUzW','C2H1DgrVD24','BxrPBwu','ywDLBNrjza','Bw9KzwW','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','zxjYB3jnzxnZywDL','BNvT','C3rKAw8','CMvZB2X2zq','BgLUzxm','y2XPzw50x3nLy3jLDf9WB3n0','zg9TywLUCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','AxnbyNnVBhv0zq','BgLTAxq','Dhj1BMm','AwDUB3jLt3v0Chv0','y2XLyw51Ca','l2jPBI9YzW','Aw5KzxHpzG','yxv0Aa','C3jJl2v4yw1WBgvZl2rLBw8UDhm','CgfZC3rOCM91z2G','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','y2fWywjPBgL0AwvZ','v0vcua','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZlG','y29UDgv4DeXPBMS','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','C3bSAxq','ChjLzML4','z29uB0LTCgXLBwvUDgf0Aw9U','ywrK','Bwf4','nty4odKWm2zTtNrLAa','rxjYB3i','zMLSztOVlW','ywXS','ChjVDg9JB2W','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','mc4WlJa','yxjNDw1LBNriAw50','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','CgfJA2fNzs5QC29U','BwfW','z2v0','zgLYBMfTzq','Cg9W','C3rKB3v0','Dg9tDhjPBMC','AhLKCMf0zu1LDge','Agv4','CgfZC3DVCMq','Aw1Hz2u','l3vZCI9IAw4VyMfZAa','ChjVCgvYDgLLCW','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','DhjPBuvUza','B3bLBKzPBgvZ','DgLTzw91De1Z','v2vIu2vHCMnO','nte2otHpuKfnzha','vw5RBM93BIb0B29SoIa','v2fYBMLUzW','C3rVCMfNzurPCG','DxrTx3rLCM0','ygbGANnVBGO','Dg9VBfjLC3vSDhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Dgv4DerVy3vTzw50l2HVDMvY','ywjVCNq','zxf1ywXZ','BgL0zxjHBa','ienHDxnLoIa','AgfUzgXL','C3rKzxjY','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C2vYDMvYswq','A2v5yMLUzgLUz3m','yxjNDw1LBNrZ','Aw1Hz2uVCg5N','tM8GBg9JyxrPB25ZigzVDw5K','ChvIBgLZAgvKqxq','uhvIBgLZAgvKoIa','zw51Bq','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C3rKAw4','A2LSBgvK','yMLUyxj5tMfTzq','yxr0CG','y29TCgXLDgvK','zNjVBq','CNvUswq','y29TBwfUzhm','BgLZDgvU','l3vZCI9IAw4VC2G','BwnFy2LK','DgLTzvTKyxrLDgLTzv0','AhjLzG','Cgf0Aa','zMLUywXnzxnZywDLvgv4Da','Cgf0DgvYBG','CMvSyxrPDMu','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','AwDUB3jL','C3bHD24','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','Aw5PDgLHBgL6yxrPB24','C2HPzNq','C2v2zxjPDhK','AM9PBG','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','CgXHAw4','y2f0y2G','CgfYC2u','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','B2zM','yNL0zuXLBMD0Aa','nJG4t1jMDvr5','igj5DgvZ','ChjVy2vZCW','y29UBMvJDgvK','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CgLWzq','A2LUza','C3rYAxbbBNnP','B3v0z29PBMDdywXSCW','yxnJAwK','C2nVCgvZ','B2XKvgv4Da','zgv0ywLS','Bg9JyxrPB24','BgLUzq'];_0x2b52=function(){return _0x7731c6;};return _0x2b52();}import{readdir as _0x5bfac4,readFile as _0x1eb218}from'fs/promises';import{join as _0x2eebe0,relative as _0xba1cbe,sep}from'path';import{delimiter}from'path';import{mkdir as _0x27d392,rm,stat as _0x2adb74,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x40ce6a}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x49edbb,rename,writeFile as _0x2f7625}from'fs/promises';import{homedir}from'os';import{dirname as _0x127e07,isAbsolute as _0x37dd8d,join as _0x1c5e10,resolve as _0x5b6cea}from'path';import{parse as _0xb5eb3b,stringify as _0x59169c}from'yaml';import{z}from'zod';import{cp,mkdir as _0x3f096e,readFile as _0x5a4791,rm as _0xa9b62a,writeFile as _0x573f37}from'fs/promises';import{homedir as _0x270127}from'os';import{join as _0x1f1df7}from'path';import{parse as _0x3193c7,stringify as _0x146fbc}from'yaml';import{readdir as _0x1007aa,readFile as _0x4f74fb}from'fs/promises';import{join as _0x45100c}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x1cf7e9){const _0x26c93f={_0x2ab5ae:0x6f0,_0x1b5703:0x63f,_0x5c1c41:0x64f,_0x35d7be:0x656,_0x394902:0x3bd,_0x20e1c6:0x26b,_0x777c6c:0x753,_0x5ccf69:0x59b,_0xe1628e:0x63f,_0x25b1fb:0x6d7,_0x799e8e:0x65b,_0x36b4c2:0x712,_0x4a7324:0x63b,_0x11d78e:0x52d,_0x46d766:0x2a6},_0x37890a={_0x3bb9bf:0x4f7},_0x5860de={_0x5882c4:0x9a,_0x339710:0x217};function _0xb41550(_0x148254,_0x30585a,_0x3d989f,_0x13d02a){return _0x173565(_0x148254-0x187,_0x30585a-_0x5860de._0x5882c4,_0x30585a,_0x148254-_0x5860de._0x339710);}const _0xe07018=[];function _0x4b407e(_0x38686a,_0x4bf733,_0x4bc7d7,_0x307bdf){return _0x173565(_0x38686a-0x1be,_0x4bf733-0x11b,_0x307bdf,_0x4bf733-_0x37890a._0x3bb9bf);}let _0x591dc5='',_0x5c9609=0x0;while(_0x5c9609<_0x1cf7e9[_0x4b407e(_0x26c93f._0x2ab5ae,_0x26c93f._0x1b5703,_0x26c93f._0x5c1c41,_0x26c93f._0x35d7be)]){const _0x4a31b4=_0x1cf7e9[_0x5c9609];if(_0x4a31b4==='\x5c'&&_0x5c9609+0x1<_0x1cf7e9[_0xb41550(0x35f,0x2f1,_0x26c93f._0x394902,_0x26c93f._0x20e1c6)])_0x591dc5+=_0x1cf7e9[_0x5c9609+0x1],_0x5c9609+=0x2;else{if(_0x4a31b4==='\x22'||_0x4a31b4==='\x27'){const _0x580922=_0x4a31b4;_0x5c9609++;while(_0x5c9609<_0x1cf7e9[_0x4b407e(_0x26c93f._0x777c6c,_0x26c93f._0x1b5703,0x56d,0x646)]&&_0x1cf7e9[_0x5c9609]!==_0x580922){_0x1cf7e9[_0x5c9609]==='\x5c'&&_0x5c9609+0x1<_0x1cf7e9[_0x4b407e(_0x26c93f._0x5ccf69,_0x26c93f._0xe1628e,0x62c,0x67f)]?(_0x591dc5+=_0x1cf7e9[_0x5c9609+0x1],_0x5c9609+=0x2):(_0x591dc5+=_0x1cf7e9[_0x5c9609],_0x5c9609++);}_0x5c9609++;}else _0x4a31b4!==void 0x0&&/\s/[_0x4b407e(_0x26c93f._0x25b1fb,_0x26c93f._0x799e8e,0x670,_0x26c93f._0x36b4c2)](_0x4a31b4)?(_0x591dc5&&(_0xe07018[_0x4b407e(0x5a6,_0x26c93f._0x4a7324,0x73d,_0x26c93f._0x11d78e)](_0x591dc5),_0x591dc5=''),_0x5c9609++):(_0x591dc5+=_0x4a31b4,_0x5c9609++);}}if(_0x591dc5)_0xe07018[_0xb41550(0x35b,_0x26c93f._0x46d766,0x305,0x435)](_0x591dc5);return _0xe07018;}function renderCommandInstructions(_0x385de2){const _0x4ebccf={_0x39110d:0x1e5,_0x4d7f5e:0xb3,_0x1ee820:0x4ef,_0x3106e2:0x52a,_0x95d601:0x5df,_0x5a2b6e:0x14b,_0x2d6fdc:0x2a3,_0x49731f:0x57b,_0x5f29b8:0x5a9,_0x2455ae:0x207,_0xf8c46b:0x1f8,_0x3f56a4:0x46c,_0x2ed4d3:0x4f4,_0xbe2dfc:0x43d,_0x2f9da8:0x283,_0x548534:0x197,_0x54aa7a:0x34c,_0x35dcb4:0x216,_0x2c541f:0x255,_0x51f678:0x229,_0x5c8b32:0x2c4,_0x8051bc:0x1cf},_0x52ac04={_0x4851eb:0x34},_0x1ef9c7={_0x1c48b4:0x160,_0x260f84:0x127},_0x54cb07={_0x39c327:0x10b};let _0x2c198b=_0x385de2[_0x328db7(0x15d,0x1b4,_0x4ebccf._0x39110d,0xe9)],_0x52f141=![];const _0x10b224=tokenizeCommandArguments(_0x385de2[_0x328db7(0x269,_0x4ebccf._0x4d7f5e,0x197,0x19e)]);function _0x5c8c94(_0x2ecb16,_0x439606,_0x297b67,_0x31dd0f){return _0x255f51(_0x31dd0f- -_0x54cb07._0x39c327,_0x439606-0x5,_0x297b67,_0x31dd0f-0x99);}_0x2c198b=_0x2c198b['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x6f7576,_0x2fd586)=>{return _0x52f141=!![],_0x10b224[Number(_0x2fd586)]??'';}),_0x2c198b=_0x2c198b[_0x328db7(0x1a7,0x22,0xd1,0x1ed)](/\$ARGUMENTS\b/g,()=>{const _0x462d90={_0x2b32ba:0x37,_0x380c19:0x1b};_0x52f141=!![];function _0x4e5469(_0x22b44a,_0x5e51af,_0x30bf61,_0x1210a2){return _0x328db7(_0x5e51af,_0x5e51af-0xe8,_0x30bf61- -_0x462d90._0x2b32ba,_0x1210a2-_0x462d90._0x380c19);}return _0x385de2[_0x4e5469(0x1b0,0x173,_0x1ef9c7._0x1c48b4,_0x1ef9c7._0x260f84)];});function _0x328db7(_0xbf56d,_0x2e10c0,_0xcf54f9,_0x31c967){return _0x255f51(_0xcf54f9- -0x57d,_0x2e10c0-_0x52ac04._0x4851eb,_0xbf56d,_0x31c967-0x8c);}if(_0x385de2['argumentNames']&&_0x385de2['argumentNames'][_0x5c8c94(_0x4ebccf._0x1ee820,_0x4ebccf._0x3106e2,_0x4ebccf._0x95d601,0x5a9)]>0x0)for(let _0x1de3a3=0x0;_0x1de3a3<_0x385de2[_0x328db7(_0x4ebccf._0x5a2b6e,_0x4ebccf._0x2d6fdc,0x1b3,0xc2)][_0x5c8c94(0x591,_0x4ebccf._0x49731f,0x4e7,_0x4ebccf._0x5f29b8)];_0x1de3a3++){const _0x4d4933=_0x385de2[_0x328db7(_0x4ebccf._0x2455ae,0x1ee,0x1b3,_0x4ebccf._0xf8c46b)][_0x1de3a3];if(_0x4d4933){const _0x41d73f=new RegExp('\x5c$'+_0x4d4933+'\x5cb','g');_0x2c198b=_0x2c198b[_0x5c8c94(0x462,_0x4ebccf._0x3f56a4,_0x4ebccf._0x2ed4d3,0x543)](_0x41d73f,()=>{return _0x52f141=!![],_0x10b224[_0x1de3a3]??'';});}}return _0x2c198b=_0x2c198b[_0x5c8c94(0x5e3,_0x4ebccf._0xbe2dfc,0x44b,0x543)](/\$(\d+)\b/g,(_0x491f9b,_0x3d6bb6)=>{return _0x52f141=!![],_0x10b224[Number(_0x3d6bb6)]??'';}),!_0x52f141&&_0x385de2[_0x328db7(0x294,_0x4ebccf._0x2f9da8,_0x4ebccf._0x548534,0x18c)][_0x5c8c94(0x438,0x359,_0x4ebccf._0x54aa7a,0x446)]()&&(_0x2c198b=_0x2c198b+_0x328db7(0x226,0x190,_0x4ebccf._0x35dcb4,_0x4ebccf._0x2c541f)+_0x385de2[_0x328db7(_0x4ebccf._0x51f678,_0x4ebccf._0x5c8b32,_0x4ebccf._0x548534,_0x4ebccf._0x8051bc)]),_0x2c198b;}var chatModelAuthSchemeSchema=z[_0x173565(0xa2,-0x1e,-0xba,0x6a)]([_0x173565(0x1e2,0x97,0x2bd,0x1c0),_0x255f51(0x60c,0x6bf,0x5bc,0x4f2)]),apiKeyAuthSchema=z[_0x173565(0x1f3,0x1a1,0x125,0xf1)]({'type':z[_0x255f51(0x5ca,0x6ee,0x69c,0x4c8)](_0x255f51(0x62b,0x6eb,0x6e1,0x668)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x173565(0x1a8,0xbc,0x5,0xef)]()})[_0x255f51(0x597,0x6ad,0x576,0x52f)](),oauthAuthSchema=z[_0x173565(-0x19,-0x17,0xeb,0xf1)]({'type':z['literal']('oauth'),'access':z[_0x255f51(0x6bf,0x798,0x7bf,0x606)](),'refresh':z['string'](),'expires':z['number']()[_0x255f51(0x65b,0x5c4,0x668,0x5ea)](),'authScheme':chatModelAuthSchemeSchema[_0x255f51(0x65b,0x586,0x6c4,0x5ac)]()})[_0x173565(0x78,0xe1,-0xc4,0x2b)](),authMethodSchema=z[_0x255f51(0x69f,0x57c,0x685,0x5eb)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x173565(-0x18,0xe8,-0x17,0xf1)]({'id':z[_0x173565(0x2d,0x221,0x20e,0x153)](),'name':z['string']()[_0x173565(0x85,0x210,0x1a7,0xef)]()})['passthrough'](),modelConfigSchema=z[_0x173565(0x234,0x1fb,0xbb,0x133)]([z[_0x255f51(0x5ca,0x4c9,0x6b1,0x667)](![]),z[_0x255f51(0x5ca,0x64e,0x603,0x57b)](!![]),z[_0x255f51(0x6bf,0x70a,0x6f2,0x59d)](),z[_0x255f51(0x70c,0x7c1,0x7e0,0x752)](z[_0x255f51(0x6bf,0x7ac,0x70a,0x5da)]()),z[_0x255f51(0x70c,0x5dd,0x666,0x6e8)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x173565(0x119,-0x24,0x6d,0x6a)]([_0x255f51(0x749,0x6ff,0x7a3,0x7fe),_0x173565(-0x104,0x105,-0xad,-0x2),_0x173565(0x5c,-0x53,-0x1e,0xa2),_0x255f51(0x67e,0x583,0x77d,0x6cf)]),providerConfigSchema=z[_0x255f51(0x65d,0x634,0x57c,0x741)]({'apiKey':z[_0x173565(0x121,0x218,0x1ac,0x153)]()[_0x173565(0x91,0xe2,0x1fe,0xef)](),'token':z[_0x173565(0x27f,0x1ee,0x25c,0x153)]()[_0x255f51(0x65b,0x744,0x532,0x6cf)](),'defaultModel':z['string']()[_0x173565(0x41,0x162,0x125,0xef)](),'smallModel':z[_0x173565(0x245,0x2a,0x7a,0x153)]()[_0x255f51(0x65b,0x553,0x746,0x57f)](),'currentAuth':z['string']()[_0x255f51(0x65b,0x72f,0x59f,0x603)](),'auth':z[_0x255f51(0x70c,0x829,0x608,0x81a)](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x173565(0x6e,-0x16,0x8b,0xef)](),'baseUrl':z[_0x255f51(0x6bf,0x608,0x6a4,0x7be)]()[_0x255f51(0x65b,0x599,0x647,0x5e3)](),'models':modelConfigSchema[_0x173565(0x211,0x96,-0x32,0xef)](),'customHeaders':z[_0x173565(0x18b,0x142,0x32a,0x23a)](z[_0x173565(0x282,0x17a,0x23d,0x153)](),z[_0x173565(0x250,0x192,0xf9,0x153)]())['optional']()})[_0x255f51(0x597,0x5e5,0x5b4,0x6bd)](),mcpServerConfigSchema=z['object']({'command':z[_0x255f51(0x6bf,0x5b1,0x74f,0x5a4)]()[_0x173565(0x21f,0xd0,0x197,0xef)](),'args':z[_0x173565(0x103,0x138,0xd2,0x1a0)](z[_0x255f51(0x6bf,0x76e,0x662,0x5bb)]())['optional'](),'env':z[_0x255f51(0x7a6,0x738,0x828,0x686)](z[_0x255f51(0x6bf,0x657,0x5b3,0x735)](),z[_0x255f51(0x6bf,0x7c2,0x713,0x6d7)]())[_0x173565(0x81,0x140,0x176,0xef)](),'transport':z[_0x173565(-0xbe,-0x54,0x11d,0x6a)]([_0x173565(-0x66,0xaf,-0x3b,0x1c),_0x255f51(0x6c4,0x7b3,0x6a7,0x5aa)])[_0x173565(0x1b1,0xe6,0x155,0xef)](),'url':z[_0x255f51(0x6bf,0x638,0x738,0x6a3)]()['optional'](),'headers':z[_0x173565(0x1fe,0x237,0x21b,0x23a)](z[_0x255f51(0x6bf,0x719,0x5ad,0x7c2)](),z[_0x173565(0x278,0x25d,0x276,0x153)]())[_0x255f51(0x65b,0x55e,0x733,0x5b6)](),'prefix':z[_0x173565(0xf8,0x62,0x12d,0x153)]()[_0x255f51(0x65b,0x68d,0x5c8,0x5f4)](),'timeoutMs':z[_0x173565(-0x57,0x112,0x8,0x9d)]()['optional'](),'enabled':z[_0x255f51(0x6bc,0x7c3,0x66b,0x5a0)]()[_0x255f51(0x65b,0x590,0x6ab,0x5e1)](),'auth':z[_0x173565(0x1bc,0x172,0x138,0xf1)]({'type':z[_0x255f51(0x5d6,0x6f2,0x6b7,0x6c6)](['none',_0x255f51(0x72c,0x7fa,0x60e,0x717),_0x255f51(0x56d,0x4d9,0x467,0x4e1)]),'token':z['string']()[_0x173565(0x2c,0x1e0,0x1e2,0xef)](),'oauth':z[_0x173565(0x1e8,0x8,0x114,0xf1)]({'clientId':z[_0x173565(0x1d7,0x198,0x27e,0x153)]()['optional'](),'clientMetadataUrl':z[_0x255f51(0x6bf,0x5b9,0x5b1,0x747)]()['optional'](),'authorizationServer':z[_0x255f51(0x6bf,0x714,0x7e6,0x6f2)]()[_0x255f51(0x65b,0x5a0,0x6c7,0x651)](),'scopes':z['array'](z[_0x173565(0x113,0x18e,0xad,0x153)]())[_0x173565(-0x1d,0x135,0x219,0xef)](),'tokenStorageKey':z[_0x255f51(0x6bf,0x7ab,0x5c1,0x6fa)]()[_0x255f51(0x65b,0x771,0x691,0x610)]()})[_0x255f51(0x597,0x597,0x5fd,0x66f)]()[_0x255f51(0x65b,0x613,0x56b,0x779)]()})[_0x255f51(0x597,0x498,0x51d,0x56b)]()[_0x255f51(0x65b,0x723,0x56b,0x78a)]()})[_0x255f51(0x597,0x4b9,0x67b,0x60a)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x255f51(0x6bf,0x7cb,0x731,0x64d)](),mcpServerConfigSchema)[_0x173565(0x173,0xb9,0x3,0xef)](),'allowedTools':z[_0x255f51(0x7a6,0x792,0x788,0x6b2)](z[_0x255f51(0x6bf,0x6b6,0x758,0x7c6)](),z[_0x255f51(0x7a6,0x6e4,0x827,0x754)](z[_0x173565(0x18c,0x6a,0x5f,0x153)](),z[_0x173565(0x9f,0x4b,0x256,0x150)]()))[_0x255f51(0x65b,0x6d8,0x59c,0x52e)](),'defaultTimeoutMs':z['number']()[_0x173565(0x1b5,0x1a9,0x93,0xef)]()})[_0x173565(-0x6b,0x14c,0x38,0x2b)](),skillsSettingsSchema=z[_0x255f51(0x65d,0x64e,0x6b8,0x5c3)]({'enabled':z[_0x173565(0xf3,0x22e,0x87,0x150)]()['optional'](),'includeDefaults':z[_0x173565(0x91,0x109,0x33,0x150)]()[_0x255f51(0x65b,0x71f,0x5fc,0x73b)](),'directories':z['array'](z['string']())[_0x173565(0x190,-0x38,0x1c8,0xef)](),'exclude':z[_0x255f51(0x70c,0x6cc,0x6a9,0x78e)](z[_0x255f51(0x6bf,0x6a2,0x7d0,0x722)]())['optional']()})[_0x173565(-0x21,0xef,0x63,0x2b)](),commandsSettingsSchema=z['object']({'enabled':z['boolean']()[_0x173565(0xe6,0xf,-0x4,0xef)](),'directories':z[_0x255f51(0x70c,0x608,0x7e5,0x7b6)](z[_0x255f51(0x6bf,0x5e5,0x681,0x637)]())[_0x255f51(0x65b,0x63d,0x67a,0x56f)]()})[_0x255f51(0x597,0x549,0x49c,0x5c4)](),agentsSettingsSchema=z[_0x255f51(0x65d,0x670,0x5a2,0x70a)]({'enabled':z[_0x173565(0xb2,0x1ec,0xb5,0x150)]()[_0x173565(0x1e5,0x1ac,0x1b8,0xef)](),'includeDefaults':z[_0x173565(0x261,0x98,0x3a,0x150)]()[_0x173565(0x145,0x1ac,0x1f7,0xef)](),'directories':z[_0x255f51(0x70c,0x692,0x617,0x815)](z['string']())[_0x255f51(0x65b,0x69d,0x738,0x53c)]()})[_0x255f51(0x597,0x4de,0x65d,0x641)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x173565(-0x2f,-0x44,0xdc,0x6a)]([_0x255f51(0x753,0x625,0x6c2,0x820),'dark',_0x173565(0xa1,0x8a,0x8e,0xc4)])['optional'](),'colorLevel':z[_0x173565(0xdf,0x17,-0x5a,0x6a)](['auto','none','ansi16','ansi256','truecolor'])[_0x173565(0xa6,0xd5,0xbd,0xef)](),'backgrounds':z[_0x255f51(0x5d6,0x4f6,0x6da,0x579)]([_0x173565(0x25e,0x315,0x2e6,0x1e7),'on','off'])[_0x173565(-0x30,0x110,0x13c,0xef)](),'messageStyle':z[_0x173565(0x2b,0x8a,-0x1a,0x6a)]([_0x255f51(0x5f2,0x508,0x5c6,0x6dd),_0x173565(0x173,0x2b6,0x24f,0x217)])[_0x173565(0x21,0xb2,0x2b,0xef)]()})['passthrough'](),statuslineSegmentSchema=z[_0x173565(-0xa3,0x6b,-0xa2,0x6a)]([_0x255f51(0x584,0x679,0x5c9,0x482),'session','thinking',_0x173565(0x1ba,0x8c,-0x2d,0xc8),_0x173565(0x15f,0x26f,0x8d,0x15d),_0x255f51(0x61f,0x61f,0x55f,0x68d),'cached',_0x255f51(0x571,0x4ad,0x59e,0x54f),'tools',_0x255f51(0x76e,0x741,0x809,0x68b),_0x255f51(0x576,0x4e8,0x620,0x5d1),_0x173565(0x242,0xf1,0x22e,0x160),_0x173565(0xbf,0x122,0x65,0x64),_0x173565(0x179,-0x6,0x16b,0xbb),_0x255f51(0x7af,0x6ef,0x82d,0x845)]),statuslineItemSchema=z['union']([statuslineSegmentSchema,z[_0x173565(0x18,0xed,0x123,0x5e)]('|')]),statuslineRowSchema=z[_0x255f51(0x70c,0x74b,0x703,0x6aa)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x255f51(0x6b2,0x75e,0x64c,0x60e)]([statuslineRowSchema,statuslineRowSchema])[_0x173565(0xa7,0x9c,0x198,0xef)]()})[_0x255f51(0x597,0x6ba,0x5da,0x58d)](),memorySettingsSchema=z[_0x255f51(0x65d,0x5f1,0x628,0x5ce)]({'version':z[_0x255f51(0x5ca,0x683,0x6a2,0x4f9)](0x2)[_0x255f51(0x65b,0x628,0x5ea,0x596)](),'retrieval':z[_0x255f51(0x65d,0x530,0x74d,0x66b)]({'engine':z[_0x255f51(0x5ca,0x6f1,0x698,0x50d)](_0x255f51(0x614,0x666,0x52c,0x73d))[_0x255f51(0x65b,0x646,0x748,0x622)](),'candidateLimit':z['number']()[_0x173565(0xf6,0x43,-0x3d,0xef)](),'activeCandidateLimit':z[_0x173565(0x40,-0x51,0x70,0x9d)]()[_0x255f51(0x65b,0x533,0x53a,0x5a3)](),'activeEnabled':z[_0x255f51(0x6bc,0x7e3,0x640,0x5d1)]()[_0x255f51(0x65b,0x636,0x646,0x5b8)](),'maxQueriesPerTurn':z[_0x173565(0x120,-0x4d,0x15f,0x9d)]()['optional'](),'coreInjectTokenBudget':z[_0x255f51(0x609,0x592,0x5e1,0x586)]()[_0x173565(-0x31,0x2b,0x1b1,0xef)](),'injectTokenBudget':z['number']()[_0x173565(0x5e,0x215,0x197,0xef)](),'minScore':z[_0x255f51(0x609,0x673,0x589,0x6dc)]()['optional'](),'freshnessHalfLifeDays':z[_0x255f51(0x609,0x66e,0x667,0x587)]()[_0x255f51(0x65b,0x552,0x6b4,0x604)]()})[_0x173565(0x5,0x2f,-0xf,0x2b)]()[_0x255f51(0x65b,0x76f,0x54b,0x780)](),'extraction':z[_0x173565(0x39,0x21e,0x50,0xf1)]({'enabled':z['boolean']()[_0x255f51(0x65b,0x651,0x580,0x573)](),'provider':z['string']()[_0x173565(0x1d7,0x190,0x206,0xef)](),'model':z[_0x173565(0x205,0x1ad,0x194,0x153)]()['optional'](),'sensitiveFilter':z['boolean']()[_0x255f51(0x65b,0x6d0,0x632,0x71a)]()})[_0x173565(0x118,-0x1e,-0xd4,0x2b)]()['optional'](),'index':z[_0x255f51(0x65d,0x5b7,0x6f1,0x718)]({'persisted':z[_0x173565(0x214,0x256,0x85,0x150)]()[_0x255f51(0x65b,0x775,0x657,0x55e)](),'flushIntervalMs':z[_0x255f51(0x609,0x5a1,0x6cc,0x6f9)]()['optional']()})[_0x255f51(0x597,0x606,0x49a,0x512)]()[_0x173565(0x1cd,0x104,0x1e1,0xef)](),'enabled':z[_0x255f51(0x6bc,0x5e2,0x700,0x61a)]()['optional'](),'saveTool':z[_0x255f51(0x6bc,0x72c,0x748,0x5a1)]()[_0x255f51(0x65b,0x779,0x773,0x769)](),'model':z[_0x255f51(0x6bf,0x7d2,0x5bc,0x65b)]()['optional'](),'provider':z[_0x255f51(0x6bf,0x5e3,0x677,0x7b4)]()[_0x255f51(0x65b,0x692,0x5a2,0x657)](),'maxInjectionTokens':z[_0x255f51(0x609,0x659,0x714,0x5f0)]()['optional'](),'backgroundExtraction':z[_0x255f51(0x6bc,0x689,0x59c,0x5fe)]()[_0x255f51(0x65b,0x643,0x559,0x6f7)]()})['passthrough'](),recentModelSchema=z[_0x173565(0xa9,0x15c,0xa9,0xf1)]({'provider':z[_0x173565(0x265,0x131,0xbe,0x153)](),'model':z[_0x173565(0xf1,0x240,0x17c,0x153)](),'usedAt':z[_0x173565(0x193,0x11,0x18c,0x9d)]()})[_0x255f51(0x597,0x632,0x55b,0x54e)](),lspServerEntrySchema=z[_0x173565(0x9c,0x11d,0xaf,0xf1)]({'disabled':z[_0x255f51(0x6bc,0x747,0x5ec,0x5de)]()[_0x255f51(0x65b,0x719,0x566,0x5f2)](),'command':z[_0x255f51(0x6bf,0x7b2,0x670,0x70e)]()['optional'](),'args':z[_0x255f51(0x70c,0x770,0x691,0x64e)](z[_0x255f51(0x6bf,0x6a5,0x6d7,0x5d0)]())['optional'](),'rootMarkers':z[_0x173565(0x22a,0x251,0x1a1,0x1a0)](z[_0x173565(0x276,0x1de,0x50,0x153)]())[_0x173565(0x148,0x5f,0x1e6,0xef)]()})[_0x255f51(0x597,0x4ca,0x5cf,0x6ad)](),lspConfigSchema=z['object']({'enabled':z[_0x255f51(0x6bc,0x6c0,0x696,0x5e7)]()[_0x255f51(0x65b,0x5d0,0x5d7,0x565)](),'servers':z[_0x173565(0x1f8,0x359,0x369,0x23a)](z[_0x173565(0x112,0x276,0x229,0x153)](),lspServerEntrySchema)[_0x255f51(0x65b,0x59d,0x66c,0x6e2)]()})['passthrough'](),cliConfigSchema=z['object']({'activeProvider':z[_0x173565(0x146,0x201,0x181,0x153)]()[_0x173565(0xeb,0x1a6,0x5f,0xef)](),'activeModel':z[_0x255f51(0x6bf,0x66b,0x689,0x70e)]()[_0x173565(0x16a,0x10d,0xf6,0xef)](),'apiKey':z[_0x173565(0x17e,0x78,0x169,0x153)]()[_0x255f51(0x65b,0x6b0,0x73e,0x5bc)](),'providers':z[_0x255f51(0x7a6,0x704,0x821,0x88c)](z[_0x255f51(0x6bf,0x75c,0x7a9,0x792)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x255f51(0x65b,0x741,0x632,0x641)](),'agents':agentsSettingsSchema[_0x173565(-0x30,0xd0,0x180,0xef)](),'commands':commandsSettingsSchema[_0x255f51(0x65b,0x5d3,0x76e,0x5eb)](),'skillsEnabled':z[_0x255f51(0x7a6,0x800,0x6a0,0x754)](z[_0x255f51(0x6bf,0x70b,0x5be,0x663)](),z['boolean']())[_0x173565(0x1de,0xa8,0xff,0xef)](),'memory':memorySettingsSchema[_0x173565(0x46,0x1fe,0x90,0xef)](),'session':z[_0x255f51(0x65d,0x59d,0x716,0x6f9)]({'memPersist':z['boolean']()[_0x255f51(0x65b,0x779,0x69c,0x65c)](),'persistEventLog':z[_0x173565(0xd9,0x1e5,0x15f,0x150)]()[_0x173565(0x150,0x11c,0x1f2,0xef)](),'persistHttpLog':z[_0x255f51(0x6bc,0x7c3,0x6a9,0x66b)]()[_0x173565(0x184,0x199,0x11a,0xef)]()})['passthrough']()[_0x173565(0x1de,0xe4,-0x11,0xef)](),'requireToolApproval':z['boolean']()[_0x255f51(0x65b,0x6e9,0x77b,0x56c)](),'thinking':z[_0x255f51(0x5d6,0x601,0x555,0x597)]([_0x173565(0x1bb,0x28f,0x24e,0x20b),_0x173565(0x16,0x194,0x40,0xbd),'MEDIUM',_0x255f51(0x739,0x6d3,0x791,0x799)])['optional'](),'streamingChunks':z[_0x255f51(0x6bc,0x7c9,0x5e6,0x6c7)]()[_0x255f51(0x65b,0x5d2,0x6ee,0x78a)](),'agentsEnabled':z[_0x173565(0x35f,0x209,0x2a5,0x23a)](z['string'](),z[_0x173565(0x1b4,0x240,0x77,0x150)]())[_0x173565(0x15e,0x1c2,0x158,0xef)](),'recentModels':z[_0x255f51(0x70c,0x76f,0x61a,0x78e)](recentModelSchema)[_0x255f51(0x65b,0x5e3,0x78a,0x632)](),'lsp':lspConfigSchema[_0x255f51(0x65b,0x6fe,0x6c2,0x69e)](),'ui':z[_0x255f51(0x65d,0x6d2,0x77b,0x63f)]({'theme':uiThemeSettingsSchema[_0x255f51(0x65b,0x6e0,0x6b1,0x624)](),'statusline':statuslineConfigSchema[_0x255f51(0x65b,0x5bb,0x620,0x73e)]()})[_0x255f51(0x597,0x66e,0x5f9,0x6a1)]()[_0x255f51(0x65b,0x70a,0x5e5,0x777)](),'tools':z[_0x173565(0x35f,0x11e,0x15f,0x23a)](z[_0x173565(0x239,0x17b,0x217,0x153)](),z[_0x173565(0x306,0x1c8,0x11f,0x1ec)]())['optional']()})[_0x255f51(0x597,0x4b5,0x5f2,0x4c7)]();function buildDescription(_0x4f1995){const _0x35f3c4={_0x4bb35e:0x153,_0xb0d5fe:0x2da,_0x200339:0x36,_0x56ce6b:0x82,_0x4d8fe7:0xaa,_0x26e82c:0x4b,_0x25abf1:0xe2,_0x3a3e34:0x1a9,_0x2e991f:0x49,_0x19560c:0xcd,_0x10cde8:0xe0,_0x2bfb42:0x4b,_0x575c57:0x182,_0x3b8bb3:0xd5,_0x1013e5:0x220,_0x4af3c0:0x122},_0x48393b={_0x8e3d91:0x4d9},_0x428e4d={_0x192950:0xf7};if(_0x4f1995[_0x40c007(_0x35f3c4._0x4bb35e,_0x35f3c4._0xb0d5fe,0x1db,0x26d)]===0x0)return['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x23bd81(_0x35f3c4._0x200339,_0x35f3c4._0x56ce6b,_0x35f3c4._0x4d8fe7,_0x35f3c4._0x26e82c),_0x23bd81(0x195,_0x35f3c4._0x25abf1,_0x35f3c4._0x3a3e34,0x1f3)]['join']('\x0a');function _0x23bd81(_0x1a661c,_0x3b739a,_0x22a218,_0x51054d){return _0x173565(_0x1a661c-0x14d,_0x3b739a-_0x428e4d._0x192950,_0x22a218,_0x51054d-0x5c);}const _0x480b7f=[_0x23bd81(0x99,_0x35f3c4._0x2e991f,0x1fa,0x127),_0x23bd81(-_0x35f3c4._0x19560c,-0xbf,_0x35f3c4._0x10cde8,_0x35f3c4._0x2bfb42),_0x23bd81(0x25d,_0x35f3c4._0x575c57,0x92,0x19e),..._0x4f1995[_0x40c007(0x127,0x55,_0x35f3c4._0x3b8bb3,-0x18)](_0x1c04a2=>_0x1c04a2[_0x23bd81(0x45,0xb3,0xc1,0x9b)]?'-\x20'+_0x1c04a2[_0x23bd81(0x2e5,0x2bd,0x112,0x202)]+'\x20'+_0x1c04a2[_0x23bd81(0x1b2,0xdd,-0x8f,0x9b)]+':\x20'+_0x1c04a2[_0x23bd81(0x184,0x297,0x33d,0x23f)]:'-\x20'+_0x1c04a2[_0x23bd81(0xda,0x2bb,0x178,0x202)]+':\x20'+_0x1c04a2[_0x40c007(0x360,0x2ab,0x276,0x252)])];function _0x40c007(_0x5e2d58,_0x45ffc5,_0x45a4fa,_0x278cc8){return _0x255f51(_0x45a4fa- -_0x48393b._0x8e3d91,_0x45ffc5-0x51,_0x5e2d58,_0x278cc8-0x146);}return _0x480b7f[_0x40c007(_0x35f3c4._0x1013e5,0x1e6,0x117,_0x35f3c4._0x4af3c0)]('\x0a');}function createInvokeCommandTool(_0x551514){const _0x22800a={_0x2d81f3:0x521,_0x362872:0x44b,_0xe947ad:0x500,_0x3f62a4:0x3c8,_0x1c5205:0x300,_0x23fdf7:0x5b1,_0x36d5f0:0x3f2,_0x2060bf:0x452},_0x494b0b={_0x48b5ec:0x65d,_0x5f398e:0x6e,_0x3f8648:0x5b,_0x2f9489:0x83,_0x20ca57:0x64,_0x432193:0x519,_0xb126ca:0x652,_0x240db4:0x83d,_0x22429d:0x777,_0x6d6c8f:0x812,_0xc72c5e:0x77a,_0x26f8ed:0x1f,_0x403556:0x7b,_0x57fc57:0xf2,_0x383d1e:0x76e,_0x2a0842:0x8a0,_0x1058ec:0x7ca,_0x153d9b:0x55c,_0x38730e:0x639,_0x36dd75:0x99,_0x2d6774:0x3a,_0x2a3e5c:0x1c5},_0x46b2d1={_0x236c58:0x84},_0x4cb957={_0x152c0d:0xfd,_0x2fb11f:0x409};function _0x51baef(_0x191d75,_0x429d7b,_0x1ce10a,_0x352494){return _0x173565(_0x191d75-_0x4cb957._0x152c0d,_0x429d7b-0xc4,_0x352494,_0x429d7b-_0x4cb957._0x2fb11f);}function _0x162547(_0x2cdbd5,_0x17b7a0,_0x4d89fd,_0x3a1398){return _0x255f51(_0x17b7a0- -0x35d,_0x17b7a0-0xab,_0x3a1398,_0x3a1398-0x12d);}const _0x391cdd=new Map(_0x551514['commands'][_0x51baef(_0x22800a._0x2d81f3,_0x22800a._0x362872,_0x22800a._0xe947ad,0x4a6)](_0x27ccaf=>[_0x27ccaf['id'],_0x27ccaf])),_0x4252be=buildDescription(_0x551514[_0x51baef(0x434,0x47c,0x4b2,0x371)]);return defineTool({'name':'InvokeCommand','description':_0x4252be,'inputSchema':{'type':_0x162547(_0x22800a._0x3f62a4,_0x22800a._0x1c5205,0x280,0x259),'properties':{'name':{'type':'string'},'args':{'type':_0x51baef(_0x22800a._0x23fdf7,0x55c,0x46b,0x5c6)}},'required':[_0x162547(_0x22800a._0x36d5f0,0x3b5,_0x22800a._0x2060bf,0x2c7)]},async *'execute'(_0x423857){const _0x23b544={_0x332c38:0x516,_0x5afa41:0x3a},_0xc74f09=_0x391cdd['get'](_0x423857[_0x349b8b(0x81c,0x66d,_0x494b0b._0x48b5ec,0x77a)]);if(!_0xc74f09){const _0x3ee1a1=Array['from'](_0x391cdd['keys']())[_0x2e42fa(-0x89,0x12,-_0x494b0b._0x5f398e,-0x81)](',\x20');throw new ToolExecutionError(_0x2e42fa(-_0x494b0b._0x3f8648,-0x154,_0x494b0b._0x2f9489,_0x494b0b._0x20ca57)+_0x423857[_0x349b8b(0x804,0x6b7,0x88e,0x77a)]+_0x349b8b(_0x494b0b._0x432193,_0x494b0b._0xb126ca,0x5a0,0x62e)+_0x3ee1a1,{'name':_0x423857[_0x349b8b(_0x494b0b._0x240db4,_0x494b0b._0x22429d,_0x494b0b._0x6d6c8f,_0x494b0b._0xc72c5e)]});}const _0x5bd588=await _0x551514['loadCommand'](_0xc74f09);function _0x349b8b(_0x243ac9,_0x5f19d8,_0x1e1c84,_0x1e76c){return _0x51baef(_0x243ac9-_0x46b2d1._0x236c58,_0x1e76c-0x1cb,_0x1e1c84-0x112,_0x1e1c84);}const _0x11828e=_0x423857[_0x2e42fa(-_0x494b0b._0x26f8ed,-_0x494b0b._0x403556,-_0x494b0b._0x57fc57,0x21)]??'';function _0x2e42fa(_0x4aa203,_0x5bffd1,_0x51f26e,_0xd7cb74){return _0x51baef(_0x4aa203-0x15b,_0x4aa203- -_0x23b544._0x332c38,_0x51f26e-_0x23b544._0x5afa41,_0x51f26e);}const _0xaf45c1=renderCommandInstructions({'instructions':_0x5bd588[_0x349b8b(_0x494b0b._0x383d1e,0x7c2,_0x494b0b._0x2a0842,_0x494b0b._0x1058ec)],'argumentsText':_0x11828e,'argumentNames':_0x5bd588[_0x349b8b(_0x494b0b._0x153d9b,0x567,0x730,_0x494b0b._0x38730e)]});return yield createToolOutput(_0xaf45c1,{'id':_0x5bd588['id'],'name':_0x5bd588[_0x2e42fa(_0x494b0b._0x36dd75,_0x494b0b._0x2d6774,0xf9,_0x494b0b._0x2a3e5c)],'path':_0xc74f09['source'][_0x349b8b(0x598,0x6ab,0x688,0x64d)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x549d7c,rename as _0x6833dd,stat as _0xf55b11,writeFile as _0x283ee6}from'fs/promises';import*as _0x51375b from'path';function detectEol(_0x4edc76){const _0x336c6e={_0x9e2e13:0x274,_0x16b24d:0x4a6,_0x4d6d1e:0x37b,_0xc5e7d4:0x3a3},_0x70d1e6={_0x398877:0x1f7,_0x8816b0:0x1e},_0x591885={_0x4bfbf4:0x3ac,_0x23a9ff:0x1a6};function _0x42104d(_0x160a24,_0x1e5234,_0x5265e5,_0x1feed9){return _0x255f51(_0x1e5234- -_0x591885._0x4bfbf4,_0x1e5234-0x176,_0x5265e5,_0x1feed9-_0x591885._0x23a9ff);}function _0x30634d(_0x501b8b,_0xa4b708,_0x400e98,_0x23e8da){return _0x255f51(_0xa4b708- -_0x70d1e6._0x398877,_0xa4b708-0x19d,_0x501b8b,_0x23e8da-_0x70d1e6._0x8816b0);}return/\r\n/[_0x42104d(_0x336c6e._0x9e2e13,0x324,0x35e,0x275)](_0x4edc76[_0x30634d(_0x336c6e._0x16b24d,0x3bc,_0x336c6e._0x4d6d1e,_0x336c6e._0xc5e7d4)]('utf8'))?'crlf':'lf';}function normalizeToLf(_0x58f38d){const _0x4deba6={_0xef437e:0x20d,_0x397770:0x271},_0x11141d={_0x151349:0x441,_0x145be3:0x133};function _0x26de92(_0x4322d1,_0x440149,_0x209a68,_0x12f816){return _0x255f51(_0x209a68- -_0x11141d._0x151349,_0x440149-0xe6,_0x4322d1,_0x12f816-_0x11141d._0x145be3);}return _0x58f38d[_0x26de92(0x320,0x227,_0x4deba6._0xef437e,_0x4deba6._0x397770)](/\r\n/g,'\x0a');}function convertEol(_0x14af41,_0xcc1e21){const _0x34c541={_0x20fd6b:0xd,_0x148abc:0x66,_0x4bc1a9:0x11a,_0x382b75:0x30,_0x35b329:0x37c,_0x27c0f4:0x41c,_0x1bc10d:0x3a2},_0x4d0aa2={_0x10774e:0xd4,_0x55ffa1:0x1cb};function _0x178696(_0x3c8fad,_0x11c6c5,_0x27164e,_0x3344dd){return _0x173565(_0x3c8fad-_0x4d0aa2._0x10774e,_0x11c6c5-0x1e6,_0x27164e,_0x3c8fad- -_0x4d0aa2._0x55ffa1);}function _0xdd4445(_0x389730,_0x18c3f7,_0x35f8d8,_0x33e1d2){return _0x255f51(_0x18c3f7- -0x2d2,_0x18c3f7-0xf5,_0x33e1d2,_0x33e1d2-0x1e5);}return _0xcc1e21===_0x178696(-_0x34c541._0x20fd6b,_0x34c541._0x148abc,-_0x34c541._0x4bc1a9,-_0x34c541._0x382b75)?_0x14af41[_0xdd4445(0x2d8,_0x34c541._0x35b329,_0x34c541._0x27c0f4,_0x34c541._0x1bc10d)](/\n/g,'\x0d\x0a'):_0x14af41;}async function atomicWrite(_0x462313,_0xcec7f1){const _0xf22d0b={_0x3257ac:0x58a,_0x23685f:0x643,_0xabeec5:0x393,_0x1953b5:0x46d,_0x17bc5a:0x435,_0x22bb42:0x6c5,_0x3eaa9f:0x4c4,_0x509b61:0x3f8,_0x415bf2:0x2d2,_0x3003f1:0x27b},_0x1f6a6e={_0x164d6e:0x172,_0x416b27:0xe6},_0x33b6e3={_0x1d8ac3:0xc8};function _0x4d44ff(_0x3df75a,_0x2cf1ed,_0x9d45,_0x4c1a52){return _0x173565(_0x3df75a-_0x33b6e3._0x1d8ac3,_0x2cf1ed-0x1d,_0x4c1a52,_0x3df75a-0x28b);}const _0x26d788=_0x51375b[_0x42fbae(0x5e7,0x6d0,_0xf22d0b._0x3257ac,_0xf22d0b._0x23685f)](_0x462313),_0x3edf81=_0x51375b[_0x4d44ff(0x30f,_0xf22d0b._0xabeec5,0x364,0x3a8)](_0x26d788,_0x4d44ff(0x4c7,_0xf22d0b._0x1953b5,0x5ec,_0xf22d0b._0x17bc5a)+_0x51375b['basename'](_0x462313)+'.'+Date[_0x42fbae(0x695,0x67b,0x625,_0xf22d0b._0x22bb42)]()+'.'+Math[_0x4d44ff(_0xf22d0b._0x3eaa9f,0x53a,0x404,_0xf22d0b._0x509b61)]()[_0x4d44ff(_0xf22d0b._0x415bf2,0x388,_0xf22d0b._0x3003f1,0x203)](0x24)['slice'](0x2));function _0x42fbae(_0x5df7e7,_0x5e33ba,_0x4e1382,_0xa0f1ea){return _0x173565(_0x5df7e7-_0x1f6a6e._0x164d6e,_0x5e33ba-_0x1f6a6e._0x416b27,_0x5e33ba,_0x5df7e7-0x5a3);}await _0x283ee6(_0x3edf81,_0xcec7f1),await _0x6833dd(_0x3edf81,_0x462313);}function sha256(_0xd68fd0){const _0x1598c6={_0x50105b:0x267,_0x4d12e5:0x41a,_0x37a260:0x1e1,_0x5d6d0c:0x113,_0x33e8bb:0x194,_0x572bd4:0x125},_0x5dc467={_0x170ed0:0x176};function _0x1534d3(_0x26c7c4,_0x31fae2,_0x48b7d1,_0x4aca7f){return _0x255f51(_0x48b7d1- -0x15f,_0x31fae2-0x5a,_0x4aca7f,_0x4aca7f-_0x5dc467._0x170ed0);}function _0x28e7ce(_0x21347b,_0x429ffe,_0x383fd5,_0x33efd9){return _0x173565(_0x21347b-0x57,_0x429ffe-0x188,_0x383fd5,_0x33efd9-0xdc);}return createHash(_0x28e7ce(0x26e,0x156,_0x1598c6._0x50105b,0x21f))[_0x1534d3(0x4d0,0x467,_0x1598c6._0x4d12e5,0x460)](_0xd68fd0)['digest'](_0x28e7ce(_0x1598c6._0x37a260,_0x1598c6._0x5d6d0c,_0x1598c6._0x33e8bb,_0x1598c6._0x572bd4));}function countLines(_0x4d086a){const _0x55b0be={_0x272212:0x491,_0x2bbb91:0x426},_0x269507={_0x3cb859:0x73},_0x5e67f7={_0x3f77f0:0x1ce,_0x1a2061:0x168},_0x2163c4=_0x4d086a[_0x303c3a(0x480,0x598,0x3ba,0x4a7)](/\n$/,'');function _0x303c3a(_0x3287ee,_0x1aed39,_0x3db29b,_0x4877c8){return _0x255f51(_0x3287ee- -_0x5e67f7._0x3f77f0,_0x1aed39-0xa2,_0x1aed39,_0x4877c8-_0x5e67f7._0x1a2061);}function _0x449c14(_0x23bd90,_0x3aea6e,_0x30a9c8,_0x56cbf3){return _0x173565(_0x23bd90-_0x269507._0x3cb859,_0x3aea6e-0x131,_0x3aea6e,_0x30a9c8-0x33f);}return _0x2163c4[_0x303c3a(0x4e6,0x54e,0x47c,_0x55b0be._0x272212)]===0x0?0x0:_0x2163c4[_0x449c14(0x383,0x2d1,0x372,_0x55b0be._0x2bbb91)]('\x0a')['length'];}function calculateLineNumbers(_0xa61945,_0x59b307,_0x451a2e,_0x1fa1d2){const _0x3975a8={_0x2b733:0x4d4,_0x173bf2:0x5bf,_0x1f1fc5:0x564,_0x1adcbe:0x635,_0x4921dc:0x62d,_0x36baa0:0x543},_0x1ff429={_0x119042:0x1cf},_0x52644e={_0x1483ae:0xcb},_0x4a3dfb=_0xa61945['slice'](0x0,_0x1fa1d2)[_0x59c74a(_0x3975a8._0x2b733,0x51a,_0x3975a8._0x173bf2,_0x3975a8._0x1f1fc5)]('\x0a')[_0x59c74a(0x5e9,_0x3975a8._0x1adcbe,_0x3975a8._0x4921dc,_0x3975a8._0x36baa0)];function _0x59c74a(_0xa5d5cc,_0x13ac90,_0x5d0799,_0x58fa19){return _0x255f51(_0xa5d5cc- -_0x52644e._0x1483ae,_0x13ac90-0xd9,_0x13ac90,_0x58fa19-0x23);}const _0x48e13a=countLines(_0x59b307);function _0x37d4aa(_0x4e7d83,_0x1c0c58,_0x37543e,_0x3e528a){return _0x173565(_0x4e7d83-0x1e1,_0x1c0c58-_0x1ff429._0x119042,_0x37543e,_0x3e528a-0x3f8);}const _0x39876a=countLines(_0x451a2e);return{'oldStartLine':_0x4a3dfb,'oldEndLine':_0x4a3dfb+_0x48e13a-0x1,'newStartLine':_0x4a3dfb,'newEndLine':_0x4a3dfb+_0x39876a-0x1,'oldLineCount':_0x48e13a,'newLineCount':_0x39876a};}function createFileEditTool(_0x4b646b={}){const _0x14fb44={_0x7fe6ba:0x2b9,_0x41de2d:0x20f,_0x15c6e2:0x365,_0x5ea718:0x377,_0x557153:0x28a,_0xc9eb9f:0x559,_0x58a0bc:0x4b6,_0x38bef2:0x4ae,_0x1cf4a4:0x3c5,_0x333474:0x1de,_0x4a2577:0x2ef,_0x6f30a:0x2e8,_0x1e32c9:0x394,_0x5a865d:0x30b,_0x5c0f1b:0x37d,_0x2faa24:0x3d3,_0x5b1962:0x372,_0x354cfe:0x509,_0x378785:0x341,_0x5aa8a4:0x3b4,_0x564712:0x29c,_0x4db06e:0x2c6,_0x4b4f9e:0x3ad,_0x122ca5:0x204,_0x3d1ff2:0x3dd,_0x465aea:0x3e9,_0x5f56c3:0x3f8,_0x3f5fcf:0x1dd,_0x4dbde0:0x5ec,_0x483ce8:0x40a,_0x4b0367:0x4bf},_0xd69261={_0x4a79dc:0x408,_0x4a2871:0x2e9,_0x3b6dbe:0x275,_0x459f70:0x165,_0x1e5dc8:0x4f,_0x4186a6:0x1,_0x5f0a8f:0x12c,_0x1fdbfa:0x1e5,_0x392efc:0x6e,_0x173deb:0x163,_0x21d6b8:0x6c,_0xf005a3:0xb2,_0x2918e3:0x25f,_0x22d70:0x382,_0x28bd6a:0x2a8,_0x3b5eff:0x2d2,_0x474878:0x3dd,_0xc1b9ff:0x12a,_0x3f984d:0x273,_0x265757:0x12e,_0x45bf7c:0x21a,_0x34758b:0x7a,_0x5a874d:0x139,_0x196e44:0x2a6,_0x3837aa:0x272,_0x3a37fa:0x366,_0x1f2ba5:0x3d7,_0x49dde8:0x137,_0x5d61a8:0x221,_0x317625:0xe,_0xd91692:0xa9,_0x5d04c5:0x173,_0x232cd7:0x190,_0x34b3c1:0x133,_0x5eb015:0x3e,_0x28ccbc:0x109,_0x19e880:0x233,_0x59100c:0x1e1,_0x513ff4:0x2a6},_0x51dbe0={_0x513a46:0x190},_0x46fee0={_0x226243:0x299},_0x9d7ba7={_0x373999:0x116},_0x459aa0=_0x51375b[_0x42e9c6(0x2ea,_0x14fb44._0x7fe6ba,0x2b6,_0x14fb44._0x41de2d)](_0x4b646b[_0x42e9c6(0x2cb,_0x14fb44._0x15c6e2,_0x14fb44._0x5ea718,_0x14fb44._0x557153)]??process[_0x42e9c6(0x4e8,_0x14fb44._0xc9eb9f,_0x14fb44._0x58a0bc,0x573)]());function _0x48b600(_0x4d1878,_0xc0ed3d,_0x59245f,_0x2dfa78){return _0x255f51(_0x59245f- -0x3f9,_0xc0ed3d-0x14a,_0x4d1878,_0x2dfa78-_0x9d7ba7._0x373999);}const _0x1aa15a=(_0x4b646b[_0x42e9c6(_0x14fb44._0x38bef2,_0x14fb44._0x1cf4a4,0x413,0x31a)]??[])[_0x48b600(0x1af,0x129,0x1b5,0xd8)](_0x53fad2=>_0x51375b[_0x48b600(0x23d,0x1eb,0x190,0xe2)](_0x53fad2));function _0x42e9c6(_0x52f21c,_0xed178d,_0x1b3b08,_0x5f456d){return _0x173565(_0x52f21c-0x30,_0xed178d-0x1e1,_0xed178d,_0x1b3b08-_0x46fee0._0x226243);}const _0x610d9c=_0x4b646b['name']??_0x48b600(_0x14fb44._0x333474,_0x14fb44._0x4a2577,_0x14fb44._0x6f30a,0x3b8);return defineTool({'name':_0x610d9c,'description':_0x48b600(0x259,_0x14fb44._0x1e32c9,_0x14fb44._0x5a865d,_0x14fb44._0x5c0f1b),'inputSchema':{'type':_0x42e9c6(0x27f,_0x14fb44._0x2faa24,0x38a,_0x14fb44._0x5b1962),'properties':{'filePath':{'type':_0x42e9c6(_0x14fb44._0x354cfe,_0x14fb44._0x378785,0x3ec,0x480)},'oldText':{'type':_0x48b600(_0x14fb44._0x5aa8a4,_0x14fb44._0x564712,_0x14fb44._0x4db06e,0x391)},'newText':{'type':_0x48b600(_0x14fb44._0x4b4f9e,0x2c0,0x2c6,_0x14fb44._0x122ca5)},'dryRun':{'type':_0x42e9c6(_0x14fb44._0x3d1ff2,0x2e9,_0x14fb44._0x465aea,0x362)}},'required':[_0x42e9c6(0x48e,_0x14fb44._0x5f56c3,0x424,0x4ff),_0x48b600(0xfa,0x215,0x20a,_0x14fb44._0x3f5fcf),_0x42e9c6(_0x14fb44._0x4dbde0,_0x14fb44._0x483ce8,_0x14fb44._0x4b0367,0x3ee)]},async *'execute'(_0x547d80){const _0x5e6610={_0xedeb94:0xcf};function _0x5bf412(_0x210b00,_0xe9618d,_0x45b52f,_0x2f65c5){return _0x42e9c6(_0x210b00-0x1a3,_0x210b00,_0x45b52f- -0x13b,_0x2f65c5-_0x5e6610._0xedeb94);}function _0x4179c7(_0x109b76,_0x83b5f5,_0x1a524d,_0x1975bd){return _0x48b600(_0x83b5f5,_0x83b5f5-0xc0,_0x1a524d- -0x209,_0x1975bd-_0x51dbe0._0x513a46);}const _0xd5578d=resolveAllowedPath(_0x459aa0,_0x1aa15a,_0x547d80[_0x5bf412(0x2ba,_0xd69261._0x4a79dc,_0xd69261._0x4a2871,_0xd69261._0x3b6dbe)]);await assertWorkspaceFile(_0xd5578d);const _0x3673dd=await _0xf55b11(_0xd5578d),_0x3dd705=await _0x549d7c(_0xd5578d),_0x3eb238=detectEol(_0x3dd705),_0x3a3948=normalizeToLf(_0x3dd705[_0x4179c7(-_0xd69261._0x459f70,0x94,-_0xd69261._0x1e5dc8,-0x8)]('utf8')),_0x90a57=normalizeToLf(_0x547d80[_0x4179c7(-0x6d,0xe8,_0xd69261._0x4186a6,_0xd69261._0x5f0a8f)]),_0x5077aa=normalizeToLf(_0x547d80[_0x4179c7(0x252,0xc2,0x190,_0xd69261._0x1fdbfa)]),_0x1f063f=_0x3a3948[_0x4179c7(0xa4,-0x106,-_0xd69261._0x392efc,0x4b)](_0x90a57);if(_0x1f063f===-0x1){const _0x571eb9=_0x90a57['slice'](0x0,0x64)[_0x4179c7(0x1f,_0xd69261._0x173deb,0x4c,-0x49)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x571eb9+(_0x90a57[_0x4179c7(0x146,-_0xd69261._0x21d6b8,_0xd69261._0xf005a3,0x91)]>0x64?_0x5bf412(0x351,0x332,_0xd69261._0x2918e3,0x29b):'')+'\x22',{'filePath':_0x547d80['filePath']});}const _0x391731=_0x3a3948[_0x5bf412(_0xd69261._0x22d70,_0xd69261._0x28bd6a,_0xd69261._0x3b5eff,0x388)](0x0,_0x1f063f)+_0x5077aa+_0x3a3948[_0x5bf412(0x3fa,_0xd69261._0x474878,_0xd69261._0x3b5eff,0x315)](_0x1f063f+_0x90a57[_0x4179c7(_0xd69261._0xc1b9ff,0x60,0xb2,0x147)]),_0x582cd1=convertEol(_0x391731,_0x3eb238),_0x5f269b=Buffer['from'](_0x582cd1,_0x5bf412(_0xd69261._0x3f984d,0x303,0x2c4,0x2f4)),_0x10877d=sha256(_0x3dd705),_0x1abf17=sha256(_0x5f269b),_0x59d39f=_0x10877d===_0x1abf17,_0x293b7e=_0x547d80[_0x4179c7(0x170,_0xd69261._0x265757,0x107,_0xd69261._0x45bf7c)]??![];return!_0x293b7e&&!_0x59d39f&&await atomicWrite(_0xd5578d,_0x5f269b),yield createToolOutput(_0x59d39f?_0x4179c7(_0xd69261._0x34758b,0x179,_0xd69261._0x5a874d,0x169):_0x293b7e?_0x5bf412(0x1c7,0x297,0x1db,_0xd69261._0x196e44):_0x5bf412(_0xd69261._0x3837aa,0x26e,_0xd69261._0x3a37fa,_0xd69261._0x1f2ba5),{'filePath':_0x547d80[_0x4179c7(_0xd69261._0x49dde8,_0xd69261._0x5d61a8,0xf5,0x50)],'resolvedPath':_0xd5578d,'created':_0x3673dd[_0x4179c7(-0xf3,_0xd69261._0x317625,-_0xd69261._0xd91692,-_0xd69261._0x5d04c5)]['toISOString'](),'modified':_0x3673dd[_0x4179c7(-_0xd69261._0x232cd7,-0xeb,-0x80,-0x173)][_0x4179c7(0xc2,0x242,_0xd69261._0x34b3c1,_0xd69261._0x5eb015)](),'size':_0x3673dd['size'],'eol':_0x3eb238,'oldTextLength':_0x90a57[_0x4179c7(_0xd69261._0x28ccbc,0x73,_0xd69261._0xf005a3,0x9f)],'newTextLength':_0x5077aa[_0x5bf412(_0xd69261._0x19e880,_0xd69261._0x59100c,_0xd69261._0x513ff4,0x1f2)],'bytesWritten':_0x59d39f||_0x293b7e?0x0:_0x5f269b['length'],'beforeSha':_0x10877d,'afterSha':_0x1abf17,'dryRun':_0x293b7e,'noChange':_0x59d39f,'lineNumbers':calculateLineNumbers(_0x3a3948,_0x90a57,_0x5077aa,_0x1f063f)}),void 0x0;}});}import{mkdir as _0x5d01dc,rename as _0x62ba6d,stat as _0x4e4b8d,writeFile as _0x2b2170}from'fs/promises';import*as _0x1a68a4 from'path';async function atomicWrite2(_0x5fd540,_0x3013cf){const _0x9c4cbf={_0x1780ca:0x2a8,_0x1984e6:0x3d8,_0x54ab62:0x49b,_0x552bca:0x6d2,_0x59f66d:0x64e,_0x36096f:0x606,_0x3e99cf:0x2ce,_0x13cd4d:0x48b,_0x3de3b8:0x3a8,_0x411241:0x43e,_0x159117:0x2ce,_0x260568:0x1b6,_0x209c64:0x626},_0x56918d={_0x52436e:0x96},_0x3b4c9b={_0x25428f:0x58,_0x11cbda:0x19},_0x54b062=_0x1a68a4['dirname'](_0x5fd540);await _0x5d01dc(_0x54b062,{'recursive':!![]});function _0x3b65e7(_0x2e154f,_0x39386b,_0x200254,_0x2bf0cc){return _0x255f51(_0x2bf0cc- -_0x3b4c9b._0x25428f,_0x39386b-0x18e,_0x39386b,_0x2bf0cc-_0x3b4c9b._0x11cbda);}function _0x35e460(_0x2b656e,_0x51381b,_0x275ac1,_0x52d2ac){return _0x255f51(_0x275ac1- -0x3fd,_0x51381b-_0x56918d._0x52436e,_0x51381b,_0x52d2ac-0x137);}const _0x19fd1a=_0x1a68a4['join'](_0x54b062,'.tmp.'+_0x1a68a4[_0x35e460(_0x9c4cbf._0x1780ca,_0x9c4cbf._0x1984e6,0x384,_0x9c4cbf._0x54ab62)](_0x5fd540)+'.'+Date[_0x3b65e7(_0x9c4cbf._0x552bca,0x57e,_0x9c4cbf._0x59f66d,_0x9c4cbf._0x36096f)]()+'.'+Math[_0x35e460(_0x9c4cbf._0x3e99cf,_0x9c4cbf._0x13cd4d,_0x9c4cbf._0x3de3b8,_0x9c4cbf._0x411241)]()[_0x35e460(0x126,_0x9c4cbf._0x159117,_0x9c4cbf._0x260568,0x298)](0x24)[_0x3b65e7(_0x9c4cbf._0x209c64,0x619,0x6ed,0x688)](0x2));await _0x2b2170(_0x19fd1a,_0x3013cf),await _0x62ba6d(_0x19fd1a,_0x5fd540);}function createFileNewTool(_0x26acd4={}){const _0xc75ec2={_0x115812:0x55b,_0x11bebb:0x59a,_0x13efca:0xd,_0xd7d618:0x77,_0x3dc67f:0x13f,_0x5edcba:0x43,_0x53f111:0x635,_0x32c06d:0x9c,_0x5d6d1e:0x85,_0x5f215d:0x163,_0x3a50fe:0x6ce,_0x12eff6:0x52b,_0x3f6d02:0xa1,_0x32bb74:0x49,_0x5a5d73:0x60e,_0x3dd0a0:0x6ee,_0x478796:0x58d,_0x131640:0x646,_0x4efd3d:0x5a9},_0x4023be={_0x128fa2:0x192,_0x2ce0f0:0x243,_0xbf378:0x69,_0x3332ae:0x3a,_0x6845bc:0x1c,_0x1538c4:0x29,_0x149b18:0x212,_0x1ced77:0xf5,_0x28001b:0xbd,_0x3c0d7b:0x15c,_0x36c73c:0x14f},_0x489f35={_0x204549:0x4c3,_0x2e3084:0x61},_0x55c619={_0x12fced:0xb1,_0x140cba:0xf7};function _0xa6de12(_0x48019c,_0x374e80,_0x273b42,_0x11e798){return _0x255f51(_0x374e80- -_0x55c619._0x12fced,_0x374e80-0xa,_0x48019c,_0x11e798-_0x55c619._0x140cba);}const _0x253d1c=_0x1a68a4[_0xa6de12(_0xc75ec2._0x115812,0x4d8,_0xc75ec2._0x11bebb,0x478)](_0x26acd4[_0x159994(0xdd,0x0,-_0xc75ec2._0x13efca,_0xc75ec2._0xd7d618)]??process[_0x159994(0x78,_0xc75ec2._0x3dc67f,_0xc75ec2._0x5edcba,0xcb)]()),_0x1cf984=(_0x26acd4[_0xa6de12(0x5a0,_0xc75ec2._0x53f111,0x514,0x6f6)]??[])[_0x159994(-0xa6,-_0xc75ec2._0x32c06d,-_0xc75ec2._0x5d6d1e,-_0xc75ec2._0x5f215d)](_0x49271b=>_0x1a68a4[_0xa6de12(0x3d5,0x4d8,0x416,0x469)](_0x49271b));function _0x159994(_0x345316,_0x526fcf,_0x2282af,_0x21c68d){return _0x255f51(_0x526fcf- -0x64a,_0x526fcf-0x30,_0x2282af,_0x21c68d-0xc9);}const _0x755fa5=_0x26acd4['name']??_0xa6de12(0x626,0x5ef,_0xc75ec2._0x3a50fe,_0xc75ec2._0x12eff6);return defineTool({'name':_0x755fa5,'description':_0x159994(-0x12,-_0xc75ec2._0x3f6d02,_0xc75ec2._0x32bb74,-0xe1),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xa6de12(0x5f6,_0xc75ec2._0x5a5d73,0x622,_0xc75ec2._0x3dd0a0)},'content':{'type':_0xa6de12(_0xc75ec2._0x478796,0x60e,0x511,0x531)}},'required':[_0xa6de12(0x678,_0xc75ec2._0x131640,_0xc75ec2._0x4efd3d,0x703),'content']},async *'execute'(_0x575ccd){const _0x194939={_0x50c3a2:0xc1},_0x2441a4=resolveAllowedPath(_0x253d1c,_0x1cf984,_0x575ccd[_0x217093(0x235,_0x4023be._0x128fa2,0x217,_0x4023be._0x2ce0f0)]);function _0x217093(_0x40f641,_0x2c06df,_0x5cd7e8,_0x59cb7){return _0xa6de12(_0x5cd7e8,_0x2c06df- -0x4b4,_0x5cd7e8-_0x194939._0x50c3a2,_0x59cb7-0xf5);}function _0x376e92(_0x39bc46,_0x34bcab,_0x236c4c,_0x10908d){return _0xa6de12(_0x10908d,_0x39bc46- -_0x489f35._0x204549,_0x236c4c-_0x489f35._0x2e3084,_0x10908d-0xc0);}const _0x40bd46=await _0x4e4b8d(_0x2441a4)['then'](()=>!![])['catch'](()=>![]),_0x533753=Buffer[_0x376e92(_0x4023be._0xbf378,0xff,_0x4023be._0x3332ae,0xbf)](_0x575ccd[_0x376e92(0xbd,0x18d,0xa5,0x10f)],'utf8');return await atomicWrite2(_0x2441a4,_0x533753),yield createToolOutput(_0x217093(-_0x4023be._0x6845bc,0x1,-0x7e,-_0x4023be._0x1538c4)+_0x575ccd['filePath']+'.',{'filePath':_0x575ccd['filePath'],'resolvedPath':_0x2441a4,'bytes':_0x533753[_0x376e92(0x140,0x1d1,_0x4023be._0x149b18,0x37)],'lines':_0x575ccd['content'][_0x376e92(0x2b,-_0x4023be._0x1ced77,-_0x4023be._0x28001b,0xa9)](/\r?\n/)[_0x217093(_0x4023be._0x3c0d7b,_0x4023be._0x36c73c,0x1de,0x1d7)],'created':new Date()['toISOString'](),'overwritten':_0x40bd46}),void 0x0;}});}import{readFile as _0x3b5935,stat as _0x43ae04}from'fs/promises';import*as _0x4aca11 from'path';function stripUtfBom(_0xfd1b98){const _0x572317={_0x3f275c:0x692};function _0x5e1599(_0x18a5a0,_0x2bec4b,_0x5586f8,_0x166f89){return _0x255f51(_0x166f89- -0x4e,_0x2bec4b-0x194,_0x18a5a0,_0x166f89-0x1f4);}return _0xfd1b98['charCodeAt'](0x0)===0xfeff?_0xfd1b98[_0x5e1599(0x66e,0x762,0x6bc,_0x572317._0x3f275c)](0x1):_0xfd1b98;}function clampLine(_0x20a213,_0x104de5){const _0x1ae88f={_0x593d53:0x1d1,_0x44575c:0x1b3,_0x16cd0d:0x1a0,_0x3f7c11:0x40,_0x3400fb:0x33,_0x2c3dd0:0x34},_0x4cfd36={_0xecc49d:0x131},_0x244688={_0x29aad3:0x743};if(!Number['isFinite'](_0x20a213))return 0x1;function _0x4b3285(_0x22adc5,_0x55a5b9,_0x1a8e1c,_0x3271b2){return _0x255f51(_0x3271b2- -_0x244688._0x29aad3,_0x55a5b9-0x6e,_0x22adc5,_0x3271b2-0x9f);}function _0x19b751(_0x3fc5dd,_0x3a109f,_0x416deb,_0x5d4cf0){return _0x255f51(_0x416deb- -0x696,_0x3a109f-0x3b,_0x3a109f,_0x5d4cf0-_0x4cfd36._0xecc49d);}return Math[_0x4b3285(-_0x1ae88f._0x593d53,-_0x1ae88f._0x44575c,-0xfd,-_0x1ae88f._0x16cd0d)](0x1,Math[_0x4b3285(-0x9c,_0x1ae88f._0x3f7c11,-_0x1ae88f._0x3400fb,-_0x1ae88f._0x2c3dd0)](Math['trunc'](_0x20a213),_0x104de5));}function createFileReadTool(_0x3222bd={}){const _0x43dbe9={_0x2caa68:0x161,_0x7b99aa:0x2f,_0x263c00:0x119,_0x73198d:0x647,_0x14eb5d:0x75c,_0x34377e:0x610,_0x5c1557:0x6c1,_0x422286:0x25,_0x2fc919:0x577,_0x4c80f4:0x60d,_0x476eae:0x666,_0x2dfd17:0x5c0},_0x8fa181={_0x20efab:0x4e0,_0x19344f:0x36e,_0x539d4f:0x94,_0x2c5db0:0x4d,_0x1085cc:0x75,_0x505f96:0x41,_0x3487ad:0x4b,_0x4fa52f:0x26c,_0x5677a8:0x256,_0x1a3006:0x339,_0x145b33:0x228,_0x1dfba3:0x16c,_0x329c25:0x21,_0x1152f9:0x4e,_0x38d51f:0xdb,_0xe2ec3e:0x26c,_0x53a486:0x74,_0x4cb889:0x1f6,_0x3b7009:0x313,_0x2e6531:0xf0,_0x1ef2cd:0x14b,_0x557bc1:0x16e,_0x365523:0x1cc,_0x5f5ab1:0xed,_0x39b907:0x131,_0x4b9fd0:0x403,_0x43e789:0x3c7,_0x3780be:0x352,_0x12c194:0x20d,_0x58ec94:0x169,_0x558a8d:0x11a,_0x58b382:0x4a,_0x2f6312:0x34,_0x1b958e:0x10b,_0x582df4:0x146,_0x16a7e7:0x1b,_0x441071:0x225,_0x1767ea:0x17e,_0x1a1a13:0xc3,_0x21f449:0x249,_0x1839cf:0x384,_0xcbd5de:0x3c5},_0x2aac6e={_0x5e6505:0x25,_0x28e9a7:0x145},_0x491272={_0x472b40:0x5ee,_0x23b728:0xdd,_0x1005dd:0x17d},_0x552bd3=_0x4aca11[_0x1de988(0x9c,-0xa2,0x2c,-0x65)](_0x3222bd[_0x1de988(_0x43dbe9._0x2caa68,_0x43dbe9._0x7b99aa,_0x43dbe9._0x263c00,0x5c)]??process[_0x555769(0x83a,_0x43dbe9._0x73198d,_0x43dbe9._0x14eb5d,0x764)]()),_0x3814f3=(_0x3222bd[_0x555769(_0x43dbe9._0x34377e,0x7ef,0x6bd,_0x43dbe9._0x5c1557)]??[])[_0x1de988(-0x63,_0x43dbe9._0x422286,-0x114,-0x40)](_0xab087b=>_0x4aca11[_0x1de988(-0x25,0x3f,0xb,-0x65)](_0xab087b));function _0x1de988(_0xd243c8,_0x12e622,_0x35f4ac,_0x33c141){return _0x255f51(_0x33c141- -_0x491272._0x472b40,_0x12e622-_0x491272._0x23b728,_0x12e622,_0x33c141-_0x491272._0x1005dd);}function _0x555769(_0x2fd7bc,_0x200fc7,_0xf5b691,_0x20116a){return _0x255f51(_0x20116a- -_0x2aac6e._0x5e6505,_0x200fc7-0xfc,_0x200fc7,_0x20116a-_0x2aac6e._0x28e9a7);}const _0x4e8b76=_0x3222bd['name']??'FileRead';return defineTool({'name':_0x4e8b76,'description':_0x555769(0x629,0x4c7,0x4b1,_0x43dbe9._0x2fc919),'inputSchema':{'type':'object','properties':{'path':{'type':'string'},'lineStart':{'type':_0x555769(0x503,_0x43dbe9._0x4c80f4,0x6dc,0x5e4)},'lineEnd':{'type':'number'}},'required':[_0x555769(0x516,0x575,_0x43dbe9._0x476eae,_0x43dbe9._0x2dfd17)]},async *'execute'(_0x1d7355){const _0x1c7174=resolveAllowedPath(_0x552bd3,_0x3814f3,_0x1d7355['path']);await assertWorkspaceFile(_0x1c7174);function _0x33126e(_0x64f9bf,_0x33c3f9,_0x9e4eb8,_0x4ee979){return _0x555769(_0x64f9bf-0x96,_0x33c3f9,_0x9e4eb8-0x193,_0x64f9bf- -0x364);}const _0x7d53f7=await _0x43ae04(_0x1c7174);function _0xc9fc58(_0x53c1c4,_0x763e95,_0x5aa31e,_0x212734){return _0x1de988(_0x53c1c4-0xa3,_0x763e95,_0x5aa31e-0x11c,_0x5aa31e-0x54);}const _0x597a60=await _0x3b5935(_0x1c7174);if(isProbablyBinary(_0x597a60))throw new ToolExecutionError(_0x33126e(0x3fe,_0x8fa181._0x20efab,0x4d5,_0x8fa181._0x19344f)+_0x1d7355[_0xc9fc58(_0x8fa181._0x539d4f,_0x8fa181._0x2c5db0,0x4b,-_0x8fa181._0x1085cc)],{'path':_0x1d7355[_0xc9fc58(-0xb7,-_0x8fa181._0x505f96,_0x8fa181._0x3487ad,-0x9e)]});let _0x56c8b6=_0x597a60[_0x33126e(0x22a,0x35a,_0x8fa181._0x4fa52f,_0x8fa181._0x5677a8)](_0x33126e(0x349,_0x8fa181._0x1a3006,0x28e,_0x8fa181._0x145b33));const _0x253ffc=_0x56c8b6[_0x33126e(0x28a,_0x8fa181._0x1dfba3,0x397,0x357)](0x0)===0xfeff;_0x56c8b6=stripUtfBom(_0x56c8b6);const _0x6e4ddb=_0x56c8b6[_0xc9fc58(_0x8fa181._0x329c25,0x5,0x5,_0x8fa181._0x1152f9)](/\r?\n/),_0x1df463={'path':_0x1d7355['path'],'resolvedPath':_0x1c7174,'created':_0x7d53f7[_0x33126e(0x1d0,0x24a,0xc3,_0x8fa181._0x38d51f)][_0xc9fc58(_0x8fa181._0xe2ec3e,0x146,0x19b,_0x8fa181._0x53a486)](),'modified':_0x7d53f7[_0x33126e(0x1f9,_0x8fa181._0x4cb889,0x281,_0x8fa181._0x3b7009)][_0xc9fc58(0x2ba,_0x8fa181._0x2e6531,0x19b,_0x8fa181._0x1ef2cd)](),'size':_0x7d53f7[_0xc9fc58(_0x8fa181._0x557bc1,_0x8fa181._0x365523,_0x8fa181._0x5f5ab1,_0x8fa181._0x39b907)],'encoding':_0x33126e(0x349,_0x8fa181._0x4b9fd0,_0x8fa181._0x43e789,0x39e),'bomStripped':_0x253ffc,'truncated':![],'totalLines':_0x6e4ddb['length']};if(_0x1d7355[_0x33126e(_0x8fa181._0x3780be,0x269,0x256,0x2bf)]!==void 0x0||_0x1d7355['lineEnd']!==void 0x0){const _0x3a5231=clampLine(_0x1d7355[_0xc9fc58(0x1b5,0x135,0x141,0x26c)]??0x1,_0x6e4ddb[_0xc9fc58(0x241,0x41,0x11a,0x14d)]),_0x5a659a=clampLine(_0x1d7355[_0xc9fc58(0x1e2,0x150,_0x8fa181._0x12c194,0x185)]??_0x6e4ddb['length'],_0x6e4ddb[_0xc9fc58(_0x8fa181._0x58ec94,0x135,_0x8fa181._0x558a8d,0x220)]),_0x4f0e0a=Math['min'](_0x3a5231,_0x5a659a),_0x2cd2fa=Math[_0xc9fc58(-0x109,-_0x8fa181._0x58b382,0x9,-_0x8fa181._0x2f6312)](_0x3a5231,_0x5a659a),_0x337440=_0x6e4ddb[_0xc9fc58(_0x8fa181._0x1b958e,0x1d9,_0x8fa181._0x582df4,_0x8fa181._0x16a7e7)](_0x4f0e0a-0x1,_0x2cd2fa)[_0x33126e(_0x8fa181._0x441071,0x12e,_0x8fa181._0x1767ea,0x203)]((_0x54a7d4,_0x4c64c7)=>_0x4f0e0a+_0x4c64c7+'|'+_0x54a7d4)[_0xc9fc58(0x19,_0x8fa181._0x1a1a13,0x56,-0x69)]('\x0a');return yield createToolOutput(_0x337440,{..._0x1df463,'lineRange':{'lineStart':_0x4f0e0a,'lineEnd':_0x2cd2fa,'linesTotal':_0x6e4ddb[_0x33126e(0x32b,_0x8fa181._0x21f449,_0x8fa181._0x1839cf,_0x8fa181._0xcbd5de)]}}),void 0x0;}return yield createToolOutput(_0x56c8b6,_0x1df463),void 0x0;}});}import{stat as _0x222d03}from'fs/promises';import*as _0x1196ea from'path';import{execSync,spawn as _0x1c433c}from'child_process';import{existsSync}from'fs';import{stat as _0x5c8fb8}from'fs/promises';import*as _0x1863cf from'os';import*as _0x2654ae from'path';import{rgPath as _0x6281a1}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x3640eb={_0x113ab8:0x651,_0x4a1d83:0x7a2,_0x4ea2d0:0x772,_0x299673:0x472,_0x186513:0x1f1,_0x26569f:0x57c,_0x35902d:0x5cf,_0x32aa43:0x60e,_0x519154:0x2c7,_0xf86db9:0x738,_0x1dc7c4:0x69c,_0x1433bc:0x5fd,_0x498f1c:0x311,_0x91d219:0x43f,_0x1e3237:0x4ff,_0x53989a:0x5f7,_0x2d40dd:0x6dd,_0x3cf872:0x5c3,_0x1e4571:0x30d,_0x4ae205:0x3f3,_0x5dd3ae:0x222,_0x4f964e:0x218,_0x125b32:0x6c8,_0x5a2cea:0x6e6,_0x54a988:0x7a8,_0x401f32:0x21f,_0xcb4f63:0x153,_0x5c9066:0x56d,_0x572f18:0x257,_0x187f45:0x15d,_0x4f3a80:0x47d,_0x474fde:0x397,_0xeee7a3:0x477,_0x5df959:0x481,_0x597a80:0x654,_0x521c13:0x709,_0x3708f7:0x7ec,_0x52343a:0x2a4,_0x2c5204:0x3b4,_0x12c995:0x38d,_0x400f26:0x24e,_0xd3616:0x194,_0x5ab275:0x6f,_0x54779f:0x612,_0x308485:0x668,_0x357f41:0x653,_0x3bb87f:0x682,_0x391b09:0x59b,_0x3afaaf:0x2d3,_0x4286ff:0x243,_0x54f748:0x3f2,_0x376718:0x1fe,_0x1a499a:0x252,_0x267025:0x132,_0x6ba70e:0x16b,_0x6da5d1:0x1eb,_0x1e4e41:0x187,_0x461582:0x152,_0x4aa2cb:0x255,_0x54fb91:0x1f2},_0x1bab9a={_0x430e25:0x3ff,_0x6480c9:0x1d4},_0x268d30={_0x249fa5:0x6f,_0x35d0a2:0x18c},_0xfb41d2=_0x1863cf[_0x41782e(_0x3640eb._0x113ab8,_0x3640eb._0x4a1d83,0x759,_0x3640eb._0x4ea2d0)]()===_0x41782e(_0x3640eb._0x299673,0x59e,0x68e,0x570);function _0x41782e(_0x455018,_0x32df9f,_0x5aa7cb,_0x5d672e){return _0x173565(_0x455018-_0x268d30._0x249fa5,_0x32df9f-_0x268d30._0x35d0a2,_0x32df9f,_0x5d672e-0x573);}const _0x36eace=_0xfb41d2?[_0x2654ae[_0x28e317(_0x3640eb._0x186513,0x2c6,0x182,0x26d)](process[_0x41782e(_0x3640eb._0x26569f,0x61d,_0x3640eb._0x35902d,_0x3640eb._0x32aa43)][_0x28e317(_0x3640eb._0x519154,0x232,0x399,0x1dc)]||'',_0x41782e(_0x3640eb._0xf86db9,0x633,0x588,_0x3640eb._0x1dc7c4),_0x41782e(_0x3640eb._0x1433bc,0x616,0x514,0x63c),_0x28e317(_0x3640eb._0x498f1c,0x24a,_0x3640eb._0x91d219,0x428)),_0x2654ae[_0x41782e(0x561,_0x3640eb._0x1e3237,0x612,_0x3640eb._0x53989a)](process[_0x41782e(0x5d2,_0x3640eb._0x2d40dd,_0x3640eb._0x3cf872,0x60e)][_0x28e317(0x2c8,0x255,_0x3640eb._0x1e4571,_0x3640eb._0x4ae205)]||'',_0x28e317(0x153,0x184,_0x3640eb._0x5dd3ae,_0x3640eb._0x4f964e),_0x41782e(_0x3640eb._0x125b32,0x829,_0x3640eb._0x5a2cea,_0x3640eb._0x54a988)),_0x2654ae[_0x28e317(_0x3640eb._0x186513,0x272,_0x3640eb._0x401f32,_0x3640eb._0xcb4f63)](process[_0x41782e(0x6e4,0x671,_0x3640eb._0x5c9066,0x60e)][_0x28e317(_0x3640eb._0x572f18,_0x3640eb._0x187f45,0x2cc,0x25a)]||'','ripgrep',_0x28e317(0x3a2,_0x3640eb._0x4f3a80,_0x3640eb._0x474fde,0x3b1))]:[_0x28e317(0x353,_0x3640eb._0xeee7a3,0x34e,_0x3640eb._0x5df959),_0x41782e(_0x3640eb._0x597a80,_0x3640eb._0x521c13,_0x3640eb._0x3708f7,0x770),_0x28e317(_0x3640eb._0x52343a,_0x3640eb._0x2c5204,_0x3640eb._0x12c995,_0x3640eb._0x400f26),_0x28e317(_0x3640eb._0xd3616,_0x3640eb._0x5ab275,0x64,0x82)];for(const _0x40c62e of _0x36eace){if(existsSync(_0x40c62e))return _0x40c62e;}try{const _0x14fddf=_0xfb41d2?_0x41782e(_0x3640eb._0x54779f,_0x3640eb._0x308485,0x650,_0x3640eb._0x357f41):_0x41782e(_0x3640eb._0x3bb87f,_0x3640eb._0x391b09,0x67f,0x6a4),_0x4f57e1=execSync(_0x14fddf,{'encoding':_0x28e317(_0x3640eb._0x3afaaf,0x320,_0x3640eb._0x4286ff,_0x3640eb._0x54f748),'stdio':[_0x28e317(_0x3640eb._0x376718,_0x3640eb._0x1a499a,_0x3640eb._0x267025,_0x3640eb._0x6ba70e),_0x28e317(0x1fe,0xf7,0x273,0x1ad),_0x28e317(_0x3640eb._0x6da5d1,0x23e,_0x3640eb._0x1e4e41,0xf7)]})[_0x28e317(_0x3640eb._0x461582,_0x3640eb._0x4aa2cb,_0x3640eb._0x54fb91,0x251)]()['split'](/\r?\n/)[0x0];if(_0x4f57e1&&existsSync(_0x4f57e1))return _0x4f57e1;}catch{return null;}function _0x28e317(_0x25ec71,_0x187d91,_0x1a741e,_0x341c69){return _0x255f51(_0x25ec71- -_0x1bab9a._0x430e25,_0x187d91-0x18f,_0x187d91,_0x341c69-_0x1bab9a._0x6480c9);}return null;}async function filepath(){const _0x5359cb={_0x75942f:0x7},_0x52013f={_0x5c4855:0x9c};if(cachedRgPath)return cachedRgPath;if(_0x6281a1&&existsSync(_0x6281a1))return cachedRgPath=_0x6281a1,_0x6281a1;const _0x3e997a=findSystemRipgrep();function _0x1877a3(_0x137caf,_0x24f064,_0x573102,_0x13b154){return _0x255f51(_0x13b154- -0x677,_0x24f064-0x1aa,_0x24f064,_0x13b154-_0x52013f._0x5c4855);}if(!_0x3e997a)throw new Error(_0x1877a3(-_0x5359cb._0x75942f,-0x158,0x66,-0x7b));return cachedRgPath=_0x3e997a,_0x3e997a;}async function*files(_0x2a26fb){const _0x3de905={_0x190cd7:0x6e9,_0x3ad14c:0x806,_0x4d0df7:0x763,_0x1bb611:0x389,_0x22b7ba:0x32a,_0x1c17a7:0x2af,_0x167b5e:0x41b,_0x36642e:0x70e,_0x1e365a:0x36d,_0xb43c49:0x810,_0x5c1038:0x74f,_0x3bb5ea:0x43c,_0x25170e:0x363,_0x450c4d:0x839,_0x40ae72:0x674,_0x15fa3d:0x48a,_0x3814a2:0x4ab,_0x14b28f:0x5b4,_0x4bb760:0x5a3,_0x4ff699:0x5b6,_0x457bf0:0x26c,_0x57896a:0x215,_0x5c09c2:0x2c6,_0x1a529c:0x518,_0x2e407e:0x56b,_0x1f7163:0x104,_0x14a5c0:0x20a,_0x54d07e:0x337,_0xfd0954:0x4f9,_0x4a97a5:0x5fe,_0x3c0663:0x56a,_0x38590a:0x1c0,_0x1884db:0x1e1},_0x411983={_0x3778f9:0x525},_0x4c76e7={_0x4fed7e:0x391,_0x551431:0x135},_0x377655=await filepath(),_0x4ee208=await _0x5c8fb8(_0x2a26fb['cwd'])['catch'](()=>null);if(!_0x4ee208?.[_0x56ba11(0x6b0,_0x3de905._0x190cd7,_0x3de905._0x3ad14c,_0x3de905._0x4d0df7)]())throw Object[_0x3ca922(_0x3de905._0x1bb611,_0x3de905._0x22b7ba,_0x3de905._0x1c17a7,_0x3de905._0x167b5e)](new Error(_0x56ba11(0x741,0x67d,0x623,_0x3de905._0x36642e)+_0x2a26fb[_0x3ca922(0x3f8,0x351,0x31f,0x2e4)]+'\x27'),{'code':_0x3ca922(0x3ca,0x2d0,_0x3de905._0x1e365a,0x2cc)});const _0x3c8b85=['--files','--follow','--hidden','--glob=!.git/*'];for(const _0x379875 of _0x2a26fb[_0x56ba11(_0x3de905._0xb43c49,0x76a,0x77e,_0x3de905._0x5c1038)]??[]){_0x3c8b85[_0x3ca922(0x31f,0x2f6,_0x3de905._0x3bb5ea,_0x3de905._0x25170e)]('--glob='+_0x379875);}function _0x3ca922(_0x22440f,_0x33877c,_0x4d5fea,_0x571eb3){return _0x255f51(_0x22440f- -_0x4c76e7._0x4fed7e,_0x33877c-_0x4c76e7._0x551431,_0x33877c,_0x571eb3-0x5e);}function _0x56ba11(_0x2ec70f,_0x20b1db,_0x3e1a50,_0x5ba9c6){return _0x173565(_0x2ec70f-0x169,_0x20b1db-0x15b,_0x20b1db,_0x5ba9c6-_0x411983._0x3778f9);}const _0x56a357=_0x1c433c(_0x377655,_0x3c8b85,{'cwd':_0x2a26fb[_0x56ba11(0x682,_0x3de905._0x450c4d,_0x3de905._0x40ae72,0x742)],'stdio':[_0x56ba11(_0x3de905._0x15fa3d,_0x3de905._0x3814a2,_0x3de905._0x14b28f,_0x3de905._0x4bb760),_0x56ba11(0x6ce,0x6e6,0x6d7,_0x3de905._0x4ff699),_0x3ca922(_0x3de905._0x457bf0,_0x3de905._0x57896a,_0x3de905._0x5c09c2,0x303)]});let _0x1cd3a9='';for await(const _0x3989b4 of _0x56a357[_0x56ba11(0x67c,_0x3de905._0x1a529c,0x4b5,_0x3de905._0x2e407e)]??[]){_0x1cd3a9+=_0x3989b4[_0x3ca922(0x222,_0x3de905._0x1f7163,_0x3de905._0x14a5c0,_0x3de905._0x54d07e)]();const _0x194f56=_0x1cd3a9['split'](/\r?\n/);_0x1cd3a9=_0x194f56[_0x56ba11(0x65c,_0x3de905._0xfd0954,_0x3de905._0x4a97a5,_0x3de905._0x3c0663)]()??'';for(const _0x566edf of _0x194f56){if(_0x566edf['length']>0x0)yield _0x566edf;}}_0x1cd3a9[_0x3ca922(_0x3de905._0x38590a,0xef,0x1a6,_0x3de905._0x1884db)]()[_0x3ca922(0x323,0x365,0x2c3,0x261)]>0x0&&(yield _0x1cd3a9['trim']());}function parseMatchLine(_0x5420d9,_0x322957){const _0x3e95b3={_0x40409c:0x181,_0x3c5862:0xbd,_0x56c2c8:0x10c,_0x416f13:0x28,_0x1df492:0xa0,_0x38dfdb:0x38,_0x52cd59:0x13a,_0x2f59ed:0x34,_0x4a4af5:0xe5,_0x20a6af:0xc7,_0x44d3f9:0x7,_0x291c45:0x30,_0x3ed212:0x73,_0x27b686:0x89,_0x485aeb:0xd,_0x3ae2ba:0x1a,_0x4239fb:0xcc,_0x52a095:0x58,_0x16baf8:0x68,_0x372cc7:0x25b,_0x1f22d1:0x18e,_0x5d3c44:0x131,_0x2c5894:0x1cb,_0x4658ea:0xbd,_0x52f9b0:0x6c},_0x31fda7={_0x39121c:0xea};function _0xcf2485(_0x2e9775,_0x33039f,_0x924353,_0x3d4294){return _0x173565(_0x2e9775-0x23,_0x33039f-0x186,_0x33039f,_0x924353- -0xf0);}if(!_0x5420d9||_0x5420d9==='--')return null;const _0x4c53d4=_0x5420d9[_0xcf2485(-_0x3e95b3._0x40409c,-0x131,-_0x3e95b3._0x3c5862,-0x135)]('|');if(_0x322957&&_0x4c53d4[_0xcf2485(_0x3e95b3._0x56c2c8,-0xcd,0x58,0x24)]>=0x4&&Number[_0x321107(_0x3e95b3._0x416f13,_0x3e95b3._0x1df492,-_0x3e95b3._0x38dfdb,_0x3e95b3._0x52cd59)](Number[_0x321107(_0x3e95b3._0x2f59ed,0x7,0x23,-_0x3e95b3._0x4a4af5)](_0x4c53d4[0x2]??'',0xa))){const _0x494da5=Number[_0x321107(_0x3e95b3._0x20a6af,_0x3e95b3._0x44d3f9,_0x3e95b3._0x291c45,_0x3e95b3._0x3ed212)](_0x4c53d4[0x1]??'',0xa);if(!Number[_0x321107(0x78,_0x3e95b3._0x1df492,_0x3e95b3._0x27b686,0x1a9)](_0x494da5)||!_0x4c53d4[0x0])return null;return{'filePath':_0x4c53d4[0x0],'lineNum':_0x494da5,'lineText':_0x4c53d4[_0x321107(-0xc9,-_0x3e95b3._0x485aeb,_0x3e95b3._0x3ae2ba,0x98)](0x3)['join']('|')};}if(_0x4c53d4[_0xcf2485(_0x3e95b3._0x4239fb,0x106,_0x3e95b3._0x52a095,-_0x3e95b3._0x16baf8)]>=0x3){const _0x3f15db=Number['parseInt'](_0x4c53d4[0x1]??'',0xa);if(!Number[_0xcf2485(_0x3e95b3._0x372cc7,_0x3e95b3._0x1f22d1,_0x3e95b3._0x5d3c44,_0x3e95b3._0x2c5894)](_0x3f15db)||!_0x4c53d4[0x0])return null;return{'filePath':_0x4c53d4[0x0],'lineNum':_0x3f15db,'lineText':_0x4c53d4['slice'](0x2)[_0xcf2485(_0x3e95b3._0x4658ea,-0x174,-_0x3e95b3._0x52f9b0,-0x87)]('|'),..._0x322957?{'isContext':!![]}:{}};}function _0x321107(_0x390e99,_0x5bffbb,_0x35e002,_0x92f7e){return _0x173565(_0x390e99-_0x31fda7._0x39121c,_0x5bffbb-0xb5,_0x35e002,_0x5bffbb- -0x181);}return null;}async function search(_0x2f3bd2){const _0x2a75a3={_0x42c851:0x795,_0x2b6381:0x800,_0x4d7fdf:0x58f,_0x4fcc84:0x553,_0x5d77ef:0x67a,_0x33e8dd:0x594,_0x4bd751:0x69a,_0x9101dd:0x5ee,_0x442e73:0x559,_0x58f31d:0x50a,_0x3ad5da:0x529,_0x14e655:0x59a,_0x3c3e91:0x6c1,_0x199372:0x3d2,_0x5f24e6:0x65c,_0x20107e:0x5e9,_0x5c4ccb:0x6ee,_0x2434b6:0x7e7,_0x2af364:0x600,_0x1f4839:0x4b4,_0x38265a:0x4b7,_0x383f04:0x479,_0x5123b2:0x3af,_0x54626e:0x31a,_0x485fbb:0x2dd,_0x43936e:0x459,_0x45900d:0x6c7,_0x264565:0x675,_0x429f71:0x6f9,_0x87479b:0x50d,_0x224cb7:0x45e,_0x57c14a:0x522,_0x1ce277:0x487,_0x36821a:0x743,_0x1c253d:0x4eb,_0x299de3:0x551,_0x712301:0x5da,_0x2a3e27:0x3d0,_0x4bbf29:0x509,_0x12aa22:0x67e,_0x5504b4:0x757,_0x35ecb2:0x78d,_0x4c2477:0x76e,_0x2b7091:0x7c4,_0x2f1bcf:0x81b,_0x5af2e7:0x79e,_0x4c13f8:0x7ac,_0x592176:0x80d,_0x2a14b1:0x77b},_0x5c0d5b={_0x5023ca:0x3a6,_0x50b796:0x371,_0x148976:0x346,_0x111655:0x3f9,_0x57aaa3:0x28,_0x10b9a2:0x97,_0x19ef17:0x136,_0x22d390:0x141,_0x6b3361:0x10e,_0x274df7:0x186,_0x236f07:0x1a7,_0x2a8ca2:0x23d,_0x4d67f3:0x152,_0x5cf31d:0x25b,_0x1c431d:0x1be,_0xa87316:0x5f,_0x4759e2:0xa7,_0x2a3459:0x3e},_0x340f79={_0x4b14d1:0x1fb,_0x4af5d0:0x248,_0x25eb8f:0x2cb},_0x124bf0={_0x16fac7:0x1c1,_0x377f20:0x14e},_0x1ace61={_0x2d8725:0x59a},_0x1e266b=await filepath();function _0x544ab3(_0x1d443a,_0x257fc8,_0x494418,_0x33cdd4){return _0x173565(_0x1d443a-0x15f,_0x257fc8-0x1c7,_0x257fc8,_0x494418-_0x1ace61._0x2d8725);}if(_0x2f3bd2[_0x544ab3(_0x2a75a3._0x42c851,0x715,0x7ac,_0x2a75a3._0x2b6381)]){const _0x31b61f=await _0x5c8fb8(_0x2f3bd2['file'])[_0x544ab3(_0x2a75a3._0x4d7fdf,_0x2a75a3._0x4fcc84,0x621,_0x2a75a3._0x5d77ef)](()=>null);if(!_0x31b61f?.[_0x34c6f0(_0x2a75a3._0x33e8dd,0x49b,0x5a7,_0x2a75a3._0x4bd751)]())throw Object[_0x34c6f0(0x577,_0x2a75a3._0x9101dd,_0x2a75a3._0x442e73,0x5ad)](new Error(_0x34c6f0(0x49b,0x5b7,0x59e,_0x2a75a3._0x58f31d)+_0x2f3bd2['file']+'\x27'),{'code':_0x34c6f0(0x65a,_0x2a75a3._0x3ad5da,_0x2a75a3._0x14e655,_0x2a75a3._0x3c3e91)});}else{const _0x235573=await _0x5c8fb8(_0x2f3bd2[_0x34c6f0(0x6ba,0x6f1,0x5c8,0x68c)])[_0x34c6f0(0x536,0x53f,0x432,_0x2a75a3._0x199372)](()=>null);if(!_0x235573?.[_0x34c6f0(_0x2a75a3._0x5f24e6,0x540,_0x2a75a3._0x20107e,0x617)]())throw Object[_0x544ab3(0x7b9,_0x2a75a3._0x5c4ccb,0x748,_0x2a75a3._0x2434b6)](new Error(_0x34c6f0(0x4d0,0x6be,0x594,0x46b)+_0x2f3bd2[_0x34c6f0(_0x2a75a3._0x2af364,_0x2a75a3._0x1f4839,0x5c8,_0x2a75a3._0x38265a)]+'\x27'),{'code':'ENOENT'});}const _0x7c0148=[_0x34c6f0(_0x2a75a3._0x383f04,0x3c2,_0x2a75a3._0x5123b2,0x390),_0x34c6f0(_0x2a75a3._0x54626e,_0x2a75a3._0x485fbb,0x396,_0x2a75a3._0x43936e),_0x544ab3(_0x2a75a3._0x9101dd,0x70f,_0x2a75a3._0x45900d,0x7ca),'--regexp',_0x2f3bd2[_0x544ab3(0x4f5,_0x2a75a3._0x264565,0x615,_0x2a75a3._0x429f71)]],_0x11525b=typeof _0x2f3bd2[_0x34c6f0(_0x2a75a3._0x87479b,0x417,_0x2a75a3._0x224cb7,_0x2a75a3._0x57c14a)]==='number'&&_0x2f3bd2[_0x34c6f0(0x36d,0x537,0x45e,_0x2a75a3._0x1ce277)]>0x0;_0x11525b&&_0x7c0148[_0x544ab3(0x6ee,0x67f,0x6de,0x60f)]('-C',String(_0x2f3bd2[_0x544ab3(0x730,0x656,0x64d,_0x2a75a3._0x36821a)]),_0x34c6f0(0x4cc,0x592,0x554,0x44f));function _0x34c6f0(_0x2165f2,_0x1e8af8,_0x4119bf,_0x5f149c){return _0x255f51(_0x4119bf- -_0x124bf0._0x16fac7,_0x1e8af8-_0x124bf0._0x377f20,_0x1e8af8,_0x5f149c-0x54);}return _0x2f3bd2[_0x544ab3(0x79f,0x895,0x7c4,0x7ed)]&&!_0x2f3bd2[_0x34c6f0(_0x2a75a3._0x1c253d,_0x2a75a3._0x299de3,0x5bd,0x4a3)]&&_0x7c0148[_0x34c6f0(_0x2a75a3._0x712301,_0x2a75a3._0x2a3e27,0x4ef,_0x2a75a3._0x4bbf29)](_0x544ab3(_0x2a75a3._0x12aa22,0x717,_0x2a75a3._0x5504b4,_0x2a75a3._0x35ecb2),_0x2f3bd2[_0x544ab3(_0x2a75a3._0x4c2477,0x8cd,_0x2a75a3._0x2b7091,_0x2a75a3._0x2f1bcf)]),_0x7c0148[_0x544ab3(0x719,0x61e,0x6de,0x6b8)](_0x2f3bd2[_0x544ab3(_0x2a75a3._0x5af2e7,0x884,_0x2a75a3._0x4c13f8,_0x2a75a3._0x592176)]??_0x2f3bd2[_0x544ab3(0x840,_0x2a75a3._0x2a14b1,0x7b7,0x86b)]),await new Promise((_0x27c82b,_0x11f34b)=>{const _0x19fabb={_0x32d705:0x5d2,_0x15057c:0x599,_0x2c5c59:0x5b0,_0x2af6ff:0x54e,_0x27df49:0x5d5,_0x274390:0x5c1},_0x2a6c3f={_0x3cb094:0x91},_0x4a5ebe={_0x9f16f5:0x1ae,_0x202704:0x15a},_0x157ac8={_0x19fa49:0x594,_0x9c809a:0xa9},_0x1bbbd5={_0x4a2400:0x3be},_0x4196fa=_0x1c433c(_0x1e266b,_0x7c0148,{'cwd':_0x2f3bd2[_0xe7b26f(_0x5c0d5b._0x5023ca,_0x5c0d5b._0x50b796,_0x5c0d5b._0x148976,_0x5c0d5b._0x111655)],'stdio':[_0x19af9b(0x112,0x84,0xa,_0x5c0d5b._0x57aaa3),_0x19af9b(0x182,_0x5c0d5b._0x10b9a2,_0x5c0d5b._0x19ef17,0x14d),'pipe']});function _0xe7b26f(_0x404ead,_0x7e5aff,_0x205262,_0x27cb85){return _0x544ab3(_0x404ead-0x19e,_0x205262,_0x27cb85- -_0x1bbbd5._0x4a2400,_0x27cb85-0x1a2);}let _0xc4aead='';function _0x19af9b(_0x437aa6,_0x5b9e55,_0x2d9674,_0x4d66ee){return _0x544ab3(_0x437aa6-0x53,_0x437aa6,_0x5b9e55- -_0x157ac8._0x19fa49,_0x4d66ee-_0x157ac8._0x9c809a);}let _0x364700='';_0x4196fa['stdout']?.['on'](_0x19af9b(0xde,_0x5c0d5b._0x22d390,0xa9,_0x5c0d5b._0x6b3361),_0x397c41=>{function _0x21e738(_0x5cf450,_0x59eba8,_0x432945,_0x599e8d){return _0x19af9b(_0x599e8d,_0x5cf450-_0x4a5ebe._0x9f16f5,_0x432945-0x16b,_0x599e8d-_0x4a5ebe._0x202704);}_0xc4aead+=_0x397c41[_0x21e738(_0x340f79._0x4b14d1,0x142,_0x340f79._0x4af5d0,_0x340f79._0x25eb8f)]();}),_0x4196fa[_0xe7b26f(_0x5c0d5b._0x274df7,0x1a6,_0x5c0d5b._0x236f07,_0x5c0d5b._0x2a8ca2)]?.['on'](_0x19af9b(0x174,0x141,_0x5c0d5b._0x4d67f3,_0x5c0d5b._0x5cf31d),_0x11feea=>{const _0x529f05={_0x538cbc:0x15f,_0x17d5e5:0x1bb};function _0x5f4b27(_0xeb86fd,_0x36e6b9,_0x72ef36,_0x174b74){return _0xe7b26f(_0xeb86fd-_0x529f05._0x538cbc,_0x36e6b9-_0x529f05._0x17d5e5,_0x174b74,_0x36e6b9- -0x145);}_0x364700+=_0x11feea[_0x5f4b27(0x1ad,0xde,_0x2a6c3f._0x3cb094,0x30)]();}),_0x4196fa['on'](_0x19af9b(0x14e,_0x5c0d5b._0x1c431d,0x250,0x104),_0xa3124a=>{const _0x29046f={_0x413dc8:0x36b},_0x2da7ce={_0x2928ee:0x3a8};function _0xb5647c(_0x1b9596,_0x2702ed,_0x4345e4,_0x34f7c4){return _0x19af9b(_0x1b9596,_0x2702ed-_0x2da7ce._0x2928ee,_0x4345e4-0x1ca,_0x34f7c4-0x1e3);}if(_0xa3124a===0x1&&_0xc4aead===''){_0x27c82b([]);return;}if(_0xa3124a!==0x0&&_0xa3124a!==0x1){_0x11f34b(new Error(_0x5696e9(_0x19fabb._0x32d705,_0x19fabb._0x15057c,_0x19fabb._0x2c5c59,_0x19fabb._0x2af6ff)+_0x364700));return;}function _0x5696e9(_0x1dbc42,_0x5915d1,_0x5df2e1,_0x2f41d2){return _0x19af9b(_0x2f41d2,_0x5df2e1-_0x29046f._0x413dc8,_0x5df2e1-0x14e,_0x2f41d2-0x16f);}const _0x5d2daf=_0x2f3bd2['limit']??0x64,_0x23e0df=[];for(const _0x221991 of _0xc4aead['split'](/\r?\n/)){if(_0x23e0df[_0x5696e9(_0x19fabb._0x27df49,0x3f2,0x4b9,_0x19fabb._0x274390)]>=_0x5d2daf)break;const _0x1b04b8=parseMatchLine(_0x221991,_0x11525b);if(_0x1b04b8)_0x23e0df['push'](_0x1b04b8);}_0x27c82b(_0x23e0df);}),_0x4196fa['on'](_0x19af9b(_0x5c0d5b._0xa87316,_0x5c0d5b._0x4759e2,_0x5c0d5b._0x2a3459,-0xb),_0x11f34b);});}function createGlobTool(_0x4a93e2={}){const _0x107b10={_0x97cd69:0x1c2,_0x5cce0e:0x201,_0x2611ce:0x16a,_0x1b3147:0x1a7,_0x1e8139:0x141,_0x7c27b4:0x14a,_0x529618:0x1f6,_0x4f78cc:0x243,_0x3084a5:0x118,_0xca0c9c:0x85,_0x112ad6:0xce,_0x20d99a:0x1cb,_0x1e915c:0x24e,_0x51e2fc:0xb6,_0x430a9e:0x1f7,_0x253a2d:0x179,_0x40169e:0x1b3,_0x478f95:0x21c,_0x52e732:0x211,_0xa06312:0x151,_0x1b3118:0x1c4,_0x21cf5c:0x47},_0x255fed={_0x157247:0x3d7,_0xa958f2:0x4f3,_0x2fc9e6:0x550,_0x10a235:0x33c,_0x1827f7:0x429,_0x6d1f81:0x4a6,_0x50af9a:0x6e0,_0x3877af:0x686,_0x38359a:0x46c,_0x1369e3:0x3c4,_0x562b70:0x595,_0x37c228:0x4c1,_0xa1af93:0x521,_0x59de41:0x3e7,_0x10ade1:0x4f7,_0x175f00:0x51b,_0xec80db:0x47f,_0x328a31:0x42b,_0x1ec6b1:0x323,_0x144ab1:0x42a,_0x452257:0x4f8,_0x3f643a:0x572,_0x5d85d4:0x5c8,_0xb276b9:0x42f,_0x46e281:0x512,_0x504dd7:0x574,_0x1869a4:0x4f8,_0x376f6a:0x55e,_0x4332bb:0x50f,_0x38cfa1:0x469,_0xff41a7:0x4c3,_0x300f6b:0x3d0,_0x43341e:0x48b,_0x30cfd6:0x3b3},_0x24e3a0={_0x26b9b5:0x496,_0x49080e:0x1a5},_0x52969e={_0x261348:0x158,_0x5e0baa:0x1ee},_0x182210=_0x1196ea[_0x2a3ecd(0xf3,_0x107b10._0x97cd69,_0x107b10._0x5cce0e,0x12a)](_0x4a93e2[_0x1b82b4(0x1d7,0x198,_0x107b10._0x2611ce,_0x107b10._0x1b3147)]??process[_0x2a3ecd(0x2f3,0x2d1,0x1c3,0x333)]());function _0x1b82b4(_0x58bb4b,_0x38afe0,_0x537215,_0x31ecdf){return _0x255f51(_0x31ecdf- -0x4a3,_0x38afe0-_0x52969e._0x261348,_0x537215,_0x31ecdf-_0x52969e._0x5e0baa);}const _0x12f616=(_0x4a93e2[_0x1b82b4(_0x107b10._0x1e8139,_0x107b10._0x7c27b4,_0x107b10._0x529618,_0x107b10._0x4f78cc)]??[])[_0x2a3ecd(_0x107b10._0x3084a5,0x127,0x206,_0x107b10._0xca0c9c)](_0x30b28f=>_0x1196ea[_0x2a3ecd(0xf3,0x210,0x45,0x9d)](_0x30b28f));function _0x2a3ecd(_0x327268,_0x19afad,_0x269920,_0x3559b5){return _0x255f51(_0x327268- -_0x24e3a0._0x26b9b5,_0x19afad-_0x24e3a0._0x49080e,_0x19afad,_0x3559b5-0x4a);}const _0x431e7d=_0x4a93e2[_0x2a3ecd(0xf9,0x4d,0x1a6,_0x107b10._0x112ad6)]??0x64,_0x14aa0f=_0x4a93e2[_0x2a3ecd(0x27c,0x306,0x159,0x31a)]??_0x1b82b4(0x1cb,0x2dc,_0x107b10._0x20d99a,_0x107b10._0x1e915c);return defineTool({'name':_0x14aa0f,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x1b82b4(0x19a,_0x107b10._0x51e2fc,0xf3,0x1ba),'properties':{'pattern':{'type':'string'},'path':{'type':_0x1b82b4(_0x107b10._0x430a9e,_0x107b10._0x253a2d,_0x107b10._0x40169e,_0x107b10._0x478f95)},'limit':{'type':_0x2a3ecd(0x173,0x119,_0x107b10._0x52e732,0x187)}},'required':[_0x2a3ecd(_0x107b10._0xa06312,_0x107b10._0x1b3118,_0x107b10._0x21cf5c,0x244)]},async *'execute'(_0x36d9f0){const _0x573c62={_0xd274fd:0x92,_0x3a6372:0x147,_0x3c3bac:0x37f},_0x4ce873={_0x3bffb3:0xf7};if(_0x36d9f0['pattern'][_0x4a1325(_0x255fed._0x157247,_0x255fed._0xa958f2,0x42d,0x3ec)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x4d327c=resolveAllowedPath(_0x182210,_0x12f616,_0x36d9f0[_0x211a65(_0x255fed._0x2fc9e6,_0x255fed._0x10a235,_0x255fed._0x1827f7,_0x255fed._0x6d1f81)]??'.'),_0x812a83=await _0x222d03(_0x4d327c)['catch'](()=>null);if(!_0x812a83?.[_0x4a1325(_0x255fed._0x50af9a,0x7a7,_0x255fed._0x3877af,0x5bd)]())throw new ToolExecutionError(_0x211a65(0x4ac,_0x255fed._0x38359a,0x4c0,_0x255fed._0x1369e3)+(_0x36d9f0[_0x4a1325(_0x255fed._0x562b70,0x3bc,_0x255fed._0x37c228,0x43b)]??'.'),{'path':_0x36d9f0[_0x211a65(0x479,0x527,0x429,0x53a)]??'.'});const _0x3170d3=_0x36d9f0[_0x4a1325(0x3e0,_0x255fed._0xa1af93,0x46b,0x44c)]??_0x431e7d;function _0x211a65(_0x4f95a9,_0x27f608,_0x5b2e6d,_0x1de675){return _0x2a3ecd(_0x5b2e6d-0x2da,_0x1de675,_0x5b2e6d-0x17e,_0x1de675-_0x4ce873._0x3bffb3);}const _0x2280fc=Math[_0x211a65(0x48a,0x2fa,_0x255fed._0x59de41,0x2e5)](0x1,Math[_0x4a1325(_0x255fed._0x10ade1,_0x255fed._0x175f00,_0x255fed._0x38359a,0x4dc)](_0x3170d3)),_0x38e20d=[];let _0x277aa1=![];for await(const _0x3e4710 of files({'cwd':_0x4d327c,'glob':[_0x36d9f0[_0x211a65(0x558,_0x255fed._0xec80db,_0x255fed._0x328a31,_0x255fed._0x1ec6b1)]]})){if(_0x38e20d[_0x211a65(0x4d9,_0x255fed._0x144ab1,_0x255fed._0x452257,_0x255fed._0x3f643a)]>=_0x2280fc){_0x277aa1=!![];break;}const _0x19faa3=await _0x222d03(_0x1196ea['join'](_0x4d327c,_0x3e4710))['catch'](()=>null);_0x38e20d[_0x4a1325(_0x255fed._0x5d85d4,0x5e2,0x58c,0x5d0)]({'path':_0x3e4710,'mtime':_0x19faa3?.[_0x4a1325(0x45d,_0x255fed._0xb276b9,_0x255fed._0x46e281,0x444)]??0x0});}_0x38e20d['sort']((_0x3b07d7,_0x192694)=>_0x192694[_0x211a65(0x44c,0x2ba,0x3c6,0x4b4)]-_0x3b07d7[_0x4a1325(0x41b,0x33c,0x45e,0x379)]);function _0x4a1325(_0x3a992f,_0x1d20c4,_0x32dd77,_0x427329){return _0x1b82b4(_0x3a992f-_0x573c62._0xd274fd,_0x1d20c4-_0x573c62._0x3a6372,_0x427329,_0x32dd77-_0x573c62._0x3c3bac);}const _0x278e82=_0x38e20d['map'](_0x512a26=>_0x512a26['path']),_0x1b8fc1=_0x278e82[_0x211a65(_0x255fed._0x504dd7,0x555,_0x255fed._0x1869a4,0x4a3)]===0x0?_0x211a65(_0x255fed._0x376f6a,0x611,_0x255fed._0x4332bb,0x52a)+_0x36d9f0[_0x4a1325(0x5a3,_0x255fed._0x38cfa1,_0x255fed._0xff41a7,0x58c)]:''+_0x278e82[_0x4a1325(0x4ac,_0x255fed._0x300f6b,0x4cc,0x3f7)]('\x0a')+(_0x277aa1?_0x211a65(_0x255fed._0x43341e,0x40d,0x530,0x40b):'');return yield createToolOutput(_0x1b8fc1,{'pattern':_0x36d9f0[_0x4a1325(_0x255fed._0x30cfd6,0x500,_0x255fed._0xff41a7,0x54f)],'searchPath':_0x1196ea['relative'](_0x182210,_0x4d327c)||'.','matches':_0x278e82,'count':_0x278e82['length'],'truncated':_0x277aa1}),void 0x0;}});}import{stat as _0x27f255}from'fs/promises';import*as _0x35e43d from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x359411={}){const _0x464daf={_0xeadcb9:0x4e0,_0x42ebb3:0x467,_0x1aceed:0x48c,_0x30f979:0x403,_0x5b082e:0x2ab,_0x2c5df5:0x302,_0x1fe372:0x239,_0x3f1cb4:0x13c,_0x1d9e68:0x25f,_0x23876d:0x127,_0x3d5ff5:0x46,_0x2c7fdd:0x28b,_0x28873d:0x534,_0x5894f3:0x540,_0x5d19e7:0x540,_0x543d9f:0x699,_0x392c4e:0x5b2,_0x13c858:0x51f,_0x28f623:0x54e,_0xb7ee08:0x535,_0x5c3a53:0x5b3,_0x3e7a62:0x597,_0x153930:0x47f,_0x161a53:0x663,_0x36b9bf:0x597,_0x26e264:0x47a,_0x1759a4:0x6bd,_0x5ee2fb:0x474,_0x451cd6:0x3cc,_0x2142b9:0x57f,_0x164984:0x48e,_0x51502c:0x4bf},_0x380733={_0x4bed44:0xa1,_0x5e7cdd:0x110,_0x447825:0x16,_0x500dfe:0x43b,_0x3d2608:0x4b3,_0x45bd72:0x5b5,_0x45537b:0x603,_0x112853:0x51b,_0x378519:0x42b,_0x35aaf7:0x19c,_0x110cae:0x237,_0x7a7dad:0x2ae,_0x2bdd0f:0x41,_0x20848c:0xb8,_0x4730b6:0x3f7,_0x38b13a:0x5cc,_0x439068:0x10,_0x4406de:0x481,_0x111db0:0x108,_0x512483:0x5e,_0x319d29:0x1f,_0x2fe29a:0x1d,_0x3ef192:0x7e,_0x3fa48e:0x5c1,_0x5acdac:0x4e6,_0x2745c4:0x5ce,_0x21480e:0xda,_0x4ee495:0x118,_0x3e5fd1:0x129,_0x56c0b7:0x6de,_0x26488c:0x658,_0x4a100c:0x5e7,_0x167a33:0x6fb,_0x3babb3:0xf6,_0x23233e:0x6bb,_0x2e30bd:0x688,_0x4b8d31:0x473,_0x4c21f5:0x93,_0x36af1d:0x135,_0x3b30ca:0x9a,_0x931d02:0x55,_0x9ba5f9:0x624,_0x51b63c:0x607,_0x33b439:0xeb,_0x7f013a:0x2a6,_0x1b0496:0x680,_0x2862ef:0x1a,_0x388c73:0x177,_0x17d66f:0x1fe,_0x48d66c:0x6a6,_0x183489:0xc0,_0x4306fd:0x1b1,_0x27cece:0x164,_0xa0dc16:0x182,_0x1dc4aa:0x131,_0x3cd1d1:0x5ac,_0x207f95:0x183,_0x4870f0:0x2ee,_0x43ed8d:0x1bf,_0x52d11b:0x520,_0x5a7849:0x584,_0x3c82ea:0x47f,_0x14e36f:0x585,_0x22d385:0x62c,_0x366ad3:0x66a,_0x3c0849:0x633,_0x320fea:0x65c,_0x5672ef:0x9e,_0x46fd29:0x26,_0x30e17a:0x4b2,_0x4c320f:0x4e8,_0x1d5774:0x51d,_0x5b137d:0x559,_0x37a4cb:0x5ed,_0x4ba541:0x687,_0x1036c6:0xc1,_0x4787cf:0x16b,_0xc7f9dc:0x186,_0x39b916:0x213,_0x5599d3:0x26e,_0x2c9fb6:0xdd,_0x336088:0x186,_0xbd42e1:0x457},_0x54ece1={_0x2b4913:0x49a},_0x44fef8={_0x3a5c58:0x172};function _0x4b0b1c(_0x95dc49,_0x1ffedc,_0x2ca650,_0x4a4ecb){return _0x173565(_0x95dc49-0x190,_0x1ffedc-0xe7,_0x4a4ecb,_0x2ca650-0xe5);}const _0x5d1143=_0x35e43d[_0x3fada7(0x350,_0x464daf._0xeadcb9,0x4ca,0x461)](_0x359411[_0x3fada7(_0x464daf._0x42ebb3,_0x464daf._0x1aceed,_0x464daf._0x30f979,0x522)]??process[_0x4b0b1c(0x310,_0x464daf._0x5b082e,_0x464daf._0x2c5df5,_0x464daf._0x1fe372)]()),_0xad0160=(_0x359411[_0x4b0b1c(0x27a,_0x464daf._0x3f1cb4,_0x464daf._0x1d9e68,0x2b2)]??[])[_0x4b0b1c(0x8d,0x1ef,_0x464daf._0x23876d,_0x464daf._0x3d5ff5)](_0x3aa326=>_0x35e43d[_0x3fada7(0x47a,0x371,0x3fc,0x461)](_0x3aa326));function _0x3fada7(_0x32241e,_0x47075e,_0x432d5e,_0x1b7323){return _0x173565(_0x32241e-0xed,_0x47075e-_0x44fef8._0x3a5c58,_0x47075e,_0x1b7323-0x444);}const _0x229b09=_0x359411['limit']??0x64,_0x3c249a=_0x359411[_0x4b0b1c(0x3b6,0x2c6,_0x464daf._0x2c7fdd,0x2f5)]??_0x3fada7(_0x464daf._0x28873d,_0x464daf._0x5894f3,0x5c9,0x5d1);return defineTool({'name':_0x3c249a,'description':_0x3fada7(0x5a9,_0x464daf._0x5d19e7,_0x464daf._0x543d9f,0x592),'inputSchema':{'type':_0x3fada7(_0x464daf._0x392c4e,_0x464daf._0x13c858,_0x464daf._0x28f623,_0x464daf._0xb7ee08),'properties':{'pattern':{'type':_0x3fada7(_0x464daf._0x5c3a53,0x56c,0x6a0,_0x464daf._0x3e7a62)},'path':{'type':_0x3fada7(_0x464daf._0x153930,0x58d,_0x464daf._0x161a53,_0x464daf._0x36b9bf)},'include':{'type':_0x3fada7(_0x464daf._0x26e264,0x4a1,_0x464daf._0x1759a4,0x597)},'limit':{'type':_0x3fada7(0x53e,_0x464daf._0x5ee2fb,_0x464daf._0x451cd6,0x4e1)},'context':{'type':'number'}},'required':[_0x3fada7(_0x464daf._0x2142b9,_0x464daf._0x164984,0x566,_0x464daf._0x51502c)]},async *'execute'(_0x332ac6){const _0x444a5c={_0x274d52:0x6d};if(_0x332ac6[_0x2747b8(-0x49,_0x380733._0x4bed44,_0x380733._0x5e7cdd,0x25)][_0x2747b8(-0xe8,0x2f,_0x380733._0x447825,-0x71)]()['length']===0x0)throw new ToolExecutionError(_0x2f0b3a(_0x380733._0x500dfe,0x4e5,_0x380733._0x3d2608,_0x380733._0x45bd72),{});function _0x2f0b3a(_0x195154,_0x50a4e2,_0x2c8e72,_0x5cfdcb){return _0x3fada7(_0x195154-_0x444a5c._0x274d52,_0x5cfdcb,_0x2c8e72-0x187,_0x2c8e72-0x5e);}const _0x8c2324=resolveAllowedPath(_0x5d1143,_0xad0160,_0x332ac6[_0x2f0b3a(0x442,_0x380733._0x45537b,_0x380733._0x112853,_0x380733._0x378519)]??'.'),_0x4b8d2e=await _0x27f255(_0x8c2324)['catch'](()=>null),_0x150f4e=_0x4b8d2e?.['isFile']()??![],_0x500872=_0x4b8d2e?.[_0x2747b8(_0x380733._0x35aaf7,_0x380733._0x110cae,_0x380733._0x7a7dad,0x1e8)]()??![];if(!_0x150f4e&&!_0x500872)throw new ToolExecutionError(_0x2747b8(0x2d,-_0x380733._0x2bdd0f,0x4b,_0x380733._0x20848c)+(_0x332ac6[_0x2f0b3a(0x56c,_0x380733._0x4730b6,_0x380733._0x112853,_0x380733._0x38b13a)]??'.'),{'path':_0x332ac6[_0x2747b8(-_0x380733._0x439068,0x36,-0x82,0x23)]??'.'});const _0x18f144=_0x332ac6[_0x2f0b3a(0x39d,0x3eb,0x4c5,_0x380733._0x4406de)]??_0x229b09,_0x51f864=Math[_0x2747b8(-_0x380733._0x111db0,-_0x380733._0x512483,-0x107,-_0x380733._0x319d29)](0x1,Math[_0x2747b8(-0xe0,-_0x380733._0x2fe29a,_0x380733._0x3ef192,-0x32)](_0x18f144));function _0x2747b8(_0x4d7fc5,_0x309067,_0x461772,_0x58051e){return _0x3fada7(_0x4d7fc5-0x155,_0x309067,_0x461772-0x23,_0x58051e- -_0x54ece1._0x2b4913);}const _0x274383=await search({'cwd':_0x500872?_0x8c2324:_0x35e43d[_0x2f0b3a(0x448,_0x380733._0x3fa48e,_0x380733._0x5acdac,_0x380733._0x2745c4)](_0x8c2324),'pattern':_0x332ac6[_0x2747b8(-_0x380733._0x21480e,_0x380733._0x4ee495,_0x380733._0x3e5fd1,0x25)],'glob':_0x500872?_0x332ac6['include']:void 0x0,'limit':_0x51f864,'file':_0x150f4e?_0x8c2324:void 0x0,'context':_0x332ac6[_0x2f0b3a(0x58b,0x5da,0x555,0x629)]}),_0x3a06df=new Map();for(const _0xd1c9b1 of _0x274383){if(!_0x3a06df[_0x2f0b3a(_0x380733._0x56c0b7,_0x380733._0x26488c,_0x380733._0x4a100c,_0x380733._0x167a33)](_0xd1c9b1[_0x2747b8(_0x380733._0x3babb3,_0x380733._0x5e7cdd,0x188,0x135)])){const _0x56961b=await _0x27f255(_0xd1c9b1[_0x2f0b3a(0x6b5,_0x380733._0x23233e,0x62d,_0x380733._0x2e30bd)])[_0x2f0b3a(0x54d,0x457,0x529,_0x380733._0x4b8d31)](()=>null);_0x3a06df['set'](_0xd1c9b1[_0x2747b8(_0x380733._0x4c21f5,0x1b7,0x205,_0x380733._0x36af1d)],{'matches':[],'mtime':_0x56961b?.['mtimeMs']??0x0});}_0x3a06df['get'](_0xd1c9b1[_0x2747b8(0x21e,_0x380733._0x3b30ca,_0x380733._0x931d02,0x135)])?.['matches'][_0x2747b8(0x10e,0x197,0x1ac,0xee)](_0xd1c9b1);}const _0x402787=[..._0x3a06df['entries']()][_0x2f0b3a(_0x380733._0x9ba5f9,0x42a,0x54e,_0x380733._0x51b63c)]((_0xb2450f,_0x20f81d)=>_0x20f81d[0x1][_0x2747b8(0x61,0x6a,0x59,-0x40)]-_0xb2450f[0x1][_0x2747b8(-0x55,-0x76,0x65,-0x40)]),_0x3c3d44=_0x274383[_0x2747b8(0xe4,_0x380733._0x33b439,_0x380733._0x7f013a,0x182)](_0x5b4590=>!_0x5b4590['isContext'])[_0x2f0b3a(0x510,0x4de,0x5ea,_0x380733._0x1b0496)],_0x32cf1f=_0x274383[_0x2747b8(0x55,0x12f,-_0x380733._0x2862ef,0xf2)]>=_0x51f864,_0x4ed898=_0x150f4e?_0x35e43d['dirname'](_0x8c2324):_0x8c2324;let _0x148232='';if(_0x274383[_0x2747b8(_0x380733._0x388c73,0x1c4,_0x380733._0x17d66f,0xf2)]===0x0)_0x148232=_0x2f0b3a(0x5d5,0x6e1,_0x380733._0x48d66c,0x5bb)+_0x332ac6[_0x2747b8(-0xd6,-0x9f,_0x380733._0x183489,0x25)];else{_0x148232=_0x2747b8(_0x380733._0x4306fd,_0x380733._0x27cece,_0x380733._0xa0dc16,_0x380733._0x1dc4aa)+_0x3c3d44+_0x2f0b3a(_0x380733._0x3cd1d1,0x5b4,0x6c5,0x757)+(_0x3c3d44===0x1?'':'es')+'\x0a';for(const [_0x2984fb,_0x1b5699]of _0x402787){const _0x571b6f=_0x150f4e?_0x35e43d[_0x2747b8(_0x380733._0x207f95,_0x380733._0x4870f0,0x2bc,_0x380733._0x43ed8d)](_0x2984fb):_0x35e43d['relative'](_0x4ed898,_0x2984fb);_0x148232+='\x0a'+_0x571b6f+':\x0a';for(const _0x5666c7 of _0x1b5699[_0x2f0b3a(0x668,0x692,0x57a,_0x380733._0x52d11b)]){const _0x12dc42=_0x5666c7['lineText']['length']>MAX_LINE_LENGTH?_0x5666c7[_0x2f0b3a(_0x380733._0x5a7849,_0x380733._0x3c82ea,_0x380733._0x14e36f,0x67c)]['slice'](0x0,MAX_LINE_LENGTH)+_0x2747b8(0x1b0,0x142,-0x6f,0xab):_0x5666c7['lineText'],_0x68e94f=_0x5666c7['isContext']?'\x20\x20':'>\x20';_0x148232+=_0x68e94f+_0x2f0b3a(_0x380733._0x22d385,0x5f3,0x5e2,_0x380733._0x366ad3)+_0x5666c7[_0x2f0b3a(0x5fa,0x6df,_0x380733._0x3c0849,_0x380733._0x320fea)]+':\x20'+_0x12dc42+'\x0a';}}_0x32cf1f&&(_0x148232+=_0x2747b8(_0x380733._0x5672ef,0x68,0x126,0x12a));}const _0x2a5fc2={'searchPath':_0x35e43d[_0x2747b8(0x12,0x101,0xde,_0x380733._0x46fd29)](_0x5d1143,_0x8c2324)||'.','pattern':_0x332ac6[_0x2f0b3a(_0x380733._0x30e17a,_0x380733._0x4c320f,_0x380733._0x1d5774,_0x380733._0x5b137d)],'matchCount':_0x3c3d44,'fileCount':_0x3a06df[_0x2f0b3a(0x576,_0x380733._0x37a4cb,0x5bd,0x4cd)],'truncated':_0x32cf1f};return _0x500872&&_0x332ac6[_0x2f0b3a(0x6e0,0x67c,0x67e,_0x380733._0x4ba541)]!==void 0x0&&(_0x2a5fc2[_0x2747b8(0x208,_0x380733._0x1036c6,_0x380733._0x4787cf,_0x380733._0xc7f9dc)]=_0x332ac6[_0x2747b8(_0x380733._0x39b916,_0x380733._0x5599d3,_0x380733._0x2c9fb6,_0x380733._0x336088)]),yield createToolOutput(_0x148232[_0x2f0b3a(0x380,_0x380733._0xbd42e1,0x487,0x3bb)](),_0x2a5fc2),void 0x0;}});}import{readdir as _0x8d28af,readFile as _0x5bf814,stat as _0x18baa5}from'fs/promises';import*as _0x569313 from'path';import*as _0x1332c9 from'yaml';async function countTextLines(_0x51b00b){const _0x3356f3={_0x3b906c:0x4bb,_0x3c063d:0x5e2,_0x217b37:0x555,_0x54dc68:0x2c7,_0x18e690:0x340,_0x36780f:0x530,_0x44781e:0x4eb,_0x1e73e5:0x38d,_0x51613a:0x519,_0x47bb32:0x3a7,_0x156ac4:0x492,_0x3f1831:0x5aa},_0x43d7dc={_0x46f770:0xa0},_0x238142={_0x34d987:0x134},_0xf7c21=await _0x5bf814(_0x51b00b)[_0x1678b2(_0x3356f3._0x3b906c,_0x3356f3._0x3c063d,_0x3356f3._0x217b37,0x3eb)](()=>null);if(!_0xf7c21||isProbablyBinary(_0xf7c21))return void 0x0;function _0x1678b2(_0x30cfcf,_0x235a98,_0x15c47e,_0x5c2c4b){return _0x255f51(_0x30cfcf- -0x138,_0x235a98-_0x238142._0x34d987,_0x235a98,_0x5c2c4b-0x182);}function _0x2ad576(_0x33c7da,_0x1c1ee3,_0x1be18b,_0xb2bbd6){return _0x255f51(_0xb2bbd6- -0x273,_0x1c1ee3-_0x43d7dc._0x46f770,_0x1c1ee3,_0xb2bbd6-0x1bd);}return _0xf7c21[_0x2ad576(0x3fa,_0x3356f3._0x54dc68,0x281,_0x3356f3._0x18e690)](_0x1678b2(0x59a,_0x3356f3._0x36780f,0x62f,_0x3356f3._0x44781e))[_0x1678b2(0x467,_0x3356f3._0x1e73e5,_0x3356f3._0x51613a,_0x3356f3._0x47bb32)](/\r?\n/)[_0x1678b2(0x57c,_0x3356f3._0x156ac4,0x4fd,_0x3356f3._0x3f1831)];}function createLsTool(_0x19e1d3={}){const _0x28b123={_0x4ab213:0x13,_0x503965:0xbc,_0x26c5b1:0x40d,_0x2f3199:0x3e7,_0x1f406c:0x328,_0x5717f9:0x2bc,_0x25e49b:0x1f3,_0x4c2ecb:0x4a9,_0xa06619:0x447,_0x10b9e3:0x476,_0x522714:0xe1,_0x2819f6:0xe6,_0x323bdb:0x99,_0x2eed4c:0x245,_0x2052fe:0x175,_0x3f4442:0x149,_0x5ef271:0x26f,_0x3cbe15:0x230,_0x4d8495:0x2af,_0x34c587:0x158,_0x9183ad:0x460,_0x353959:0x559},_0x580ef4={_0x14994d:0x1c1,_0x5d78f6:0x81,_0x1a7b6f:0x5c8,_0x2c4406:0x562,_0x5817f6:0x3a4,_0xb227b9:0x475,_0x22cbb1:0x50a,_0x3cd55b:0x99,_0x12223a:0xb2,_0x5f2b26:0xf5,_0x685abd:0xcb,_0x4cf3b9:0x5c,_0x49f5d7:0x100,_0x18cd4a:0x25,_0x540cb7:0x633,_0x105abd:0x55e,_0x291814:0x20c,_0x4cb504:0x166,_0x4d667f:0x1b,_0x7ecc3d:0x134,_0x1a019b:0x3c,_0x21c9ec:0x61f,_0x28a56e:0x632,_0x528aa5:0x4f5,_0x19b0cb:0x56d,_0x8c2a3e:0x52d,_0x3a93f2:0x2f,_0x5401d6:0x1a,_0x56df57:0xe7,_0x1b76c1:0xcf,_0x59bd16:0x169,_0xa7d8b1:0x11,_0xbdaac5:0x7f,_0x21bd80:0x19,_0x5d645e:0x62,_0x45dd87:0x9b,_0x185e2e:0x600,_0x10f6d0:0x62a,_0x53b679:0x573,_0x18b9b8:0x148,_0x4ee851:0x4a1,_0x5dee10:0x564,_0x15cdbe:0x182,_0x110da9:0x9f,_0x375288:0x69a,_0x2307a8:0x59a},_0x51da93={_0xbd1d39:0x4cd},_0x1254e6=_0x569313[_0x39c121(_0x28b123._0x4ab213,_0x28b123._0x503965,0x134,0xa8)](_0x19e1d3[_0x21109e(_0x28b123._0x26c5b1,0x4bc,_0x28b123._0x2f3199,_0x28b123._0x1f406c)]??process[_0x39c121(0x2df,_0x28b123._0x5717f9,_0x28b123._0x25e49b,0x296)]());function _0x39c121(_0x3f7972,_0x4a0eb7,_0x2cb014,_0x5d3ae9){return _0x255f51(_0x4a0eb7- -_0x51da93._0xbd1d39,_0x4a0eb7-0xc8,_0x5d3ae9,_0x5d3ae9-0x2);}const _0x3e9475=(_0x19e1d3[_0x21109e(_0x28b123._0x4c2ecb,_0x28b123._0xa06619,_0x28b123._0x10b9e3,0x3ec)]??[])[_0x39c121(0x175,_0x28b123._0x522714,_0x28b123._0x2819f6,_0x28b123._0x323bdb)](_0x66ac32=>_0x569313[_0x39c121(0x17f,0xbc,0xd6,-0x6f)](_0x66ac32)),_0x122298=_0x19e1d3[_0x39c121(0x2bf,_0x28b123._0x2eed4c,0x294,_0x28b123._0x2052fe)]??'Ls';function _0x21109e(_0x2913e2,_0x43cf90,_0x41cc4a,_0x592fa7){return _0x173565(_0x2913e2-0xd,_0x43cf90-0xf5,_0x592fa7,_0x2913e2-0x32f);}return defineTool({'name':_0x122298,'description':_0x39c121(_0x28b123._0x3f4442,_0x28b123._0x5ef271,0x181,_0x28b123._0x3cbe15),'inputSchema':{'type':_0x39c121(_0x28b123._0x4d8495,0x190,_0x28b123._0x34c587,0x111),'properties':{'path':{'type':_0x21109e(0x482,_0x28b123._0x9183ad,_0x28b123._0x353959,0x3ae)},'limit':{'type':'number'}}},async *'execute'(_0x1613e9){const _0x48e924={_0x165398:0x1c4},_0x2c0099={_0x5146c9:0x123,_0x1d8d10:0xda,_0x5dd688:0x74},_0x5171bb=_0x1613e9['path']??'.';function _0x529589(_0x45d67f,_0x32415d,_0x445c77,_0x498309){return _0x21109e(_0x445c77-_0x2c0099._0x5146c9,_0x32415d-_0x2c0099._0x1d8d10,_0x445c77-_0x2c0099._0x5dd688,_0x45d67f);}function _0x10ca49(_0xd86560,_0x55a7ee,_0x41f290,_0x5858f7){return _0x21109e(_0x5858f7- -0x3d8,_0x55a7ee-0xfb,_0x41f290-_0x48e924._0x165398,_0x55a7ee);}const _0xf2e66b=resolveAllowedPath(_0x1254e6,_0x3e9475,_0x5171bb),_0x5a4c16=await _0x18baa5(_0xf2e66b)['catch'](()=>null);if(!_0x5a4c16?.[_0x10ca49(0xb6,_0x580ef4._0x14994d,_0x580ef4._0x5d78f6,0x195)]())throw new ToolExecutionError(_0x529589(_0x580ef4._0x1a7b6f,0x592,_0x580ef4._0x2c4406,0x5ed)+_0x5171bb,{'path':_0x5171bb});const _0x92d4b2=_0x1613e9[_0x529589(0x44c,_0x580ef4._0x5817f6,_0x580ef4._0xb227b9,_0x580ef4._0x22cbb1)]??0x3e8,_0x5f00f9=Math['min'](Math[_0x10ca49(-_0x580ef4._0x3cd55b,-_0x580ef4._0x12223a,-_0x580ef4._0x5f2b26,-0x72)](Math['trunc'](_0x92d4b2),0x1),0x2710),_0x45ce08=await _0x8d28af(_0xf2e66b),_0x3a07a7=[];for(const _0x23ca06 of _0x45ce08[_0x10ca49(0x16c,0xdb,0x150,_0x580ef4._0x685abd)](0x0,_0x5f00f9)){const _0x5cb756=_0x569313[_0x10ca49(-_0x580ef4._0x4cf3b9,-_0x580ef4._0x49f5d7,0x66,-_0x580ef4._0x18cd4a)](_0xf2e66b,_0x23ca06),_0x427873=await _0x18baa5(_0x5cb756)[_0x529589(0x4d9,0x3e9,0x4d9,0x494)](()=>null);if(!_0x427873)continue;let _0x5f1d6b=_0x529589(0x43b,_0x580ef4._0x540cb7,_0x580ef4._0x105abd,0x48a);if(_0x427873[_0x10ca49(0x78,_0x580ef4._0x291814,_0x580ef4._0x4cb504,0x153)]())_0x5f1d6b='file';else{if(_0x427873['isDirectory']())_0x5f1d6b='directory';else{if(_0x427873[_0x10ca49(_0x580ef4._0x4d667f,_0x580ef4._0x7ecc3d,_0x580ef4._0x1a019b,0xc9)]())_0x5f1d6b=_0x529589(0x407,_0x580ef4._0x21c9ec,0x528,_0x580ef4._0x28a56e);}}const _0x45651d={'name':_0x23ca06,'type':_0x5f1d6b,'size':_0x427873[_0x529589(_0x580ef4._0x528aa5,0x47a,_0x580ef4._0x19b0cb,_0x580ef4._0x8c2a3e)],'mtime':_0x427873[_0x10ca49(-0x22,-0x2d,-_0x580ef4._0x3a93f2,0x21)],'mode':_0x427873[_0x10ca49(0x31,0x8a,-_0x580ef4._0x5401d6,_0x580ef4._0x56df57)]},_0x51c900=_0x5f1d6b===_0x10ca49(0x139,_0x580ef4._0x1b76c1,_0x580ef4._0x5f2b26,_0x580ef4._0x59bd16)?await countTextLines(_0x5cb756):void 0x0;if(_0x51c900!==void 0x0)_0x45651d[_0x10ca49(-_0x580ef4._0xa7d8b1,_0x580ef4._0xbdaac5,_0x580ef4._0x21bd80,-0x8b)]=_0x51c900;_0x3a07a7[_0x10ca49(0x19d,-0x93,_0x580ef4._0x5d645e,_0x580ef4._0x45dd87)](_0x45651d);}_0x3a07a7['sort']((_0x431ba8,_0x8d019f)=>_0x431ba8['name'][_0x529589(0x54d,0x511,0x513,0x5f6)](_0x8d019f[_0x10ca49(0x1d1,0xd,0x37,0xfd)]));const _0xa5e18d={'path':_0x5171bb,'total':_0x3a07a7[_0x529589(_0x580ef4._0x185e2e,_0x580ef4._0x10f6d0,0x59a,_0x580ef4._0x53b679)],'truncated':_0x45ce08['length']>_0x5f00f9,'entries':_0x3a07a7};return yield createToolOutput(_0x1332c9[_0x10ca49(0x136,0x239,0x119,_0x580ef4._0x18b9b8)](_0xa5e18d,{'indent':0x2,'lineWidth':0x0})[_0x529589(0x549,0x39d,_0x580ef4._0x4ee851,_0x580ef4._0x5dee10)](),{'path':_0x5171bb,'total':_0x3a07a7[_0x10ca49(_0x580ef4._0x15cdbe,-0x5a,0x118,_0x580ef4._0x110da9)],'truncated':_0x45ce08[_0x529589(_0x580ef4._0x375288,0x4ad,_0x580ef4._0x2307a8,0x50a)]>_0x5f00f9,'limit':_0x5f00f9,'entries':_0x3a07a7}),void 0x0;}});}import{stat as _0x54ba6d}from'fs/promises';import _0xf4016c from'path';import{fileURLToPath as _0xaed60}from'url';function severityName(_0x1d8947){const _0x3c38a4={_0x510ae8:0x163,_0x3fe215:0x173,_0x6332b6:0x156,_0x4befb6:0x521,_0x4c8a8b:0x3de,_0x420b0c:0x22d,_0x12d114:0x21d},_0x476d6e={_0x4b36b3:0x19b,_0x1e4c9:0xa5,_0x1de116:0x20c},_0x2ce8b0={_0x1eb0e6:0x11e};function _0x564af3(_0x3d796c,_0x49c67a,_0x14cc83,_0x1dfe4b){return _0x173565(_0x3d796c-0x1d6,_0x49c67a-0x166,_0x14cc83,_0x49c67a-_0x2ce8b0._0x1eb0e6);}function _0x25183e(_0x55db78,_0x2880e4,_0x17ea22,_0x794c33){return _0x173565(_0x55db78-_0x476d6e._0x4b36b3,_0x2880e4-_0x476d6e._0x1e4c9,_0x2880e4,_0x17ea22-_0x476d6e._0x1de116);}switch(_0x1d8947){case 0x1:return _0x25183e(_0x3c38a4._0x510ae8,0x1af,0x245,0x27f);case 0x2:return _0x564af3(0x19f,_0x3c38a4._0x3fe215,0x11e,_0x3c38a4._0x6332b6);case 0x3:return _0x25183e(0x34d,_0x3c38a4._0x4befb6,0x42e,_0x3c38a4._0x4c8a8b);case 0x4:return'Hint';default:return _0x564af3(0x16f,_0x3c38a4._0x420b0c,_0x3c38a4._0x12d114,0x2f5);}}function formatSingleHover(_0x2f2519){const _0x4b5a49={_0x48f1e6:0x14d,_0x3a1e24:0x7e,_0x51167f:0x43,_0x2b925e:0x6,_0x12c564:0xb6,_0x1d8f81:0x168,_0x4953bf:0x1f6,_0x17bae5:0xb2,_0x37a363:0x7f,_0x231d77:0x7,_0x525d0e:0xef,_0x3f3b60:0x137,_0x279bdb:0x1fd,_0x177e06:0x25e,_0x3c90a6:0x33c,_0x5bbc95:0x2b7,_0x34daf6:0x2d7,_0x302043:0x2fa,_0x20a1df:0x26c,_0x39da92:0x133},_0x20c475={_0x189473:0xf5,_0x1e75e9:0x1e7},_0x3f5fce=_0x2f2519[_0x24349a(_0x4b5a49._0x48f1e6,0xf5,_0x4b5a49._0x3a1e24,0x176)];function _0x4ad834(_0x5c20e5,_0x4c8dc4,_0x79cc46,_0x19847d){return _0x173565(_0x5c20e5-0x9d,_0x4c8dc4-0xb7,_0x79cc46,_0x4c8dc4- -0x159);}if(typeof _0x3f5fce===_0x4ad834(-_0x4b5a49._0x51167f,-_0x4b5a49._0x2b925e,_0x4b5a49._0x12c564,-0x18))return _0x3f5fce;if(Array[_0x4ad834(-0x297,-_0x4b5a49._0x1d8f81,-_0x4b5a49._0x4953bf,-_0x4b5a49._0x17bae5)](_0x3f5fce))return _0x3f5fce['map'](_0x40feeb=>typeof _0x40feeb==='string'?_0x40feeb:_0x40feeb[_0x4ad834(-0x113,-0x4c,-0x159,0x62)])[_0x4ad834(0xc4,_0x4b5a49._0x37a363,_0x4b5a49._0x231d77,_0x4b5a49._0x525d0e)](Boolean)[_0x4ad834(-_0x4b5a49._0x3f3b60,-0xd5,-_0x4b5a49._0x279bdb,0x43)]('\x0a\x0a');if('kind'in _0x3f5fce)return _0x3f5fce[_0x24349a(_0x4b5a49._0x177e06,0x198,_0x4b5a49._0x3c90a6,_0x4b5a49._0x5bbc95)];function _0x24349a(_0x307237,_0x425a11,_0x970528,_0x34a561){return _0x255f51(_0x307237- -0x41b,_0x425a11-_0x20c475._0x189473,_0x425a11,_0x34a561-_0x20c475._0x1e75e9);}return _0x3f5fce[_0x24349a(0x30d,_0x4b5a49._0x34daf6,_0x4b5a49._0x302043,_0x4b5a49._0x20a1df)]?'```'+_0x3f5fce['language']+'\x0a'+_0x3f5fce[_0x24349a(0x25e,_0x4b5a49._0x39da92,0x2c1,0x24a)]+'\x0a```':_0x3f5fce['value'];}function formatHover(_0x4f59bf){const _0x315a15={_0xdc0874:0x133,_0x5cfbcf:0x1ef,_0x2f6300:0x136,_0x1a7dae:0x9c,_0x478134:0x68c,_0x5ef459:0x653,_0x30e4a1:0x1ec},_0x15e9e3={_0x4b3395:0xa4},_0x70d7db={_0x40effd:0x512,_0xcd2681:0x16};function _0x2bb1a2(_0x19c809,_0x30e7d7,_0x1621b0,_0x5b699e){return _0x255f51(_0x30e7d7- -_0x70d7db._0x40effd,_0x30e7d7-0x108,_0x1621b0,_0x5b699e-_0x70d7db._0xcd2681);}function _0x3dc052(_0xdcc808,_0x16141b,_0x1f0db8,_0x525346){return _0x173565(_0xdcc808-_0x15e9e3._0x4b3395,_0x16141b-0xfb,_0xdcc808,_0x1f0db8-0x4ea);}if(_0x4f59bf[_0x2bb1a2(_0x315a15._0xdc0874,0x1a2,0x252,_0x315a15._0x5cfbcf)]===0x0)return _0x2bb1a2(_0x315a15._0x2f6300,0x1ef,0x1d8,0x144);return _0x4f59bf[_0x2bb1a2(0xb7,_0x315a15._0x1a7dae,0x1a1,-0x10)](formatSingleHover)[_0x3dc052(0x5fe,_0x315a15._0x478134,0x56e,_0x315a15._0x5ef459)](_0x2bb1a2(0x1b1,_0x315a15._0x30e4a1,0xf7,0x2b2));}function locationPath(_0x52343e){const _0x2a9e7b={_0x24552e:0x3fd,_0x5b8b6a:0x23f,_0x201a43:0xa3},_0x270627={_0x370360:0x27,_0x9132bc:0x108};if(!_0x52343e[_0x434d72(0x32b,0x22a,0x376,_0x2a9e7b._0x24552e)](_0x434d72(0x1c6,_0x2a9e7b._0x5b8b6a,_0x2a9e7b._0x201a43,0xf1)))return _0x52343e;function _0x2925b5(_0x4e8d5e,_0x6d6cae,_0x17118e,_0x27343a){return _0x173565(_0x4e8d5e-0x1f0,_0x6d6cae-0xa1,_0x6d6cae,_0x27343a- -0x1a8);}function _0x434d72(_0x59cbb1,_0x1d50c9,_0x16679d,_0x503790){return _0x255f51(_0x59cbb1- -0x3e0,_0x1d50c9-_0x270627._0x370360,_0x1d50c9,_0x503790-_0x270627._0x9132bc);}return _0xaed60(_0x52343e);}function formatLocations(_0x10ed81){const _0x6579d4={_0x173879:0x577,_0x1c6537:0x504,_0x1ac3ad:0x45f,_0x5ebf1d:0x4a7,_0x32b3a4:0x590},_0x478abe={_0x3579f2:0x1c3,_0x519c25:0x95,_0x3ad6be:0x3d,_0x751e74:0x11b,_0x2f9eb0:0xd},_0x6e11e0={_0x1f11e1:0x490},_0x3481a1={_0x2e97f2:0xb1,_0x5653c6:0x37},_0x3d3221={_0x244700:0x149,_0x5cda27:0xe4,_0x3c5330:0x174};function _0x220743(_0x3bb79e,_0x11f40b,_0x4fff25,_0x1b41c0){return _0x255f51(_0x11f40b- -_0x3d3221._0x244700,_0x11f40b-_0x3d3221._0x5cda27,_0x1b41c0,_0x1b41c0-_0x3d3221._0x3c5330);}if(_0x10ed81['length']===0x0)return _0x220743(_0x6579d4._0x173879,0x48a,0x46c,_0x6579d4._0x1c6537);function _0x38eacd(_0x21e364,_0xc4384e,_0x3e7b71,_0x4a3484){return _0x173565(_0x21e364-_0x3481a1._0x2e97f2,_0xc4384e-_0x3481a1._0x5653c6,_0x4a3484,_0xc4384e-0x3a6);}return _0x10ed81['map'](_0x2d78ad=>{const _0x107c32={_0x33fee2:0x161,_0x3dfd80:0x6e};function _0x11893a(_0xff3215,_0xb06a2d,_0x35e121,_0x591d40){return _0x220743(_0xff3215-0x12f,_0xff3215- -_0x6e11e0._0x1f11e1,_0x35e121-0xc0,_0x591d40);}function _0x52cbdf(_0x27b55f,_0x2ff541,_0x33ea57,_0x447497){return _0x220743(_0x27b55f-_0x107c32._0x33fee2,_0x33ea57- -_0x107c32._0x3dfd80,_0x33ea57-0x118,_0x2ff541);}const _0x1faace=_0x2d78ad[_0x11893a(0x11d,0x81,0x58,0x230)]['start'];return locationPath(_0x2d78ad[_0x11893a(_0x478abe._0x3579f2,0x111,0x1a3,_0x478abe._0x519c25)])+':'+(_0x1faace[_0x11893a(0x2d,_0x478abe._0x3ad6be,-0x93,0xe4)]+0x1)+':'+(_0x1faace[_0x11893a(0x6a,_0x478abe._0x751e74,_0x478abe._0x2f9eb0,0x21)]+0x1);})[_0x220743(_0x6579d4._0x1ac3ad,_0x6579d4._0x5ebf1d,0x5cf,_0x6579d4._0x32b3a4)]('\x0a');}function isDocumentSymbol(_0x381d8b){const _0x519f14={_0x4d93da:0x5e9,_0x55bc79:0x3cc},_0xf8d4e4={_0x523c05:0x150};function _0x299521(_0x244f7e,_0x4b87b5,_0x5f2d8b,_0x2d027d){return _0x173565(_0x244f7e-_0xf8d4e4._0x523c05,_0x4b87b5-0x118,_0x244f7e,_0x5f2d8b-0x35c);}return _0x299521(0x4e1,_0x519f14._0x4d93da,0x4e6,_0x519f14._0x55bc79)in _0x381d8b&&'selectionRange'in _0x381d8b;}function formatSymbols(_0x2b00a8){const _0x393fc6={_0x326b8d:0x8b,_0x581f1b:0x9b,_0x45008c:0x5b6,_0x427282:0x52b,_0x27405a:0x498},_0x1d18c={_0x522f93:0x195,_0x269827:0x83,_0x5809d8:0xe5,_0x2b24d0:0xc,_0x53f24e:0xbb,_0x35a64a:0x121,_0x3c381f:0x29,_0x58d22e:0x46,_0x1c00d4:0x50,_0x5c55d4:0x18c,_0x30c4dc:0x5d,_0x7772c3:0x84,_0x18f401:0x149,_0x2f4328:0x168,_0x103775:0xb0,_0x1bc333:0x1b5,_0xa34141:0x63,_0x163222:0xf1,_0x4a146b:0x6b,_0x4fdafc:0xca,_0xb3d566:0x14,_0xea5c04:0x16,_0x3890ef:0x136,_0x35741c:0x8a,_0x1dfb35:0x7f,_0x35e718:0x121,_0x1c4d41:0x40,_0x19c3cd:0xd,_0x234f68:0x1b3,_0x55320f:0x22,_0x36aef0:0x4c,_0x263ebf:0x73},_0x37d1be={_0x2f9518:0x159},_0x3e6796={_0x4fcf68:0xc4,_0x36b192:0x100,_0x219864:0x145};if(_0x2b00a8['length']===0x0)return _0x5bea52(-0x4a,-_0x393fc6._0x326b8d,_0x393fc6._0x581f1b,0xaf);function _0x5bea52(_0x1b8335,_0x1ac0b2,_0x3d6f1c,_0x24c7ee){return _0x173565(_0x1b8335-_0x3e6796._0x4fcf68,_0x1ac0b2-_0x3e6796._0x36b192,_0x3d6f1c,_0x1b8335- -_0x3e6796._0x219864);}function _0x2d0a7f(_0x4135bc,_0x5e9f28,_0x22c194,_0x4fd265){return _0x173565(_0x4135bc-0x16b,_0x5e9f28-_0x37d1be._0x2f9518,_0x5e9f28,_0x22c194-0x414);}return _0x2b00a8['map'](_0x32bf28=>{const _0x1ced13={_0x58492e:0x1bd},_0xd8a86c={_0x53a011:0x108};function _0x51b604(_0x559e69,_0xfab134,_0x19d671,_0x7db777){return _0x5bea52(_0x7db777- -0x5,_0xfab134-0x46,_0xfab134,_0x7db777-_0xd8a86c._0x53a011);}if(isDocumentSymbol(_0x32bf28))return _0x32bf28[_0x3da865(0x15c,_0x1d18c._0x522f93,_0x1d18c._0x269827,_0x1d18c._0x5809d8)]+'\x20('+_0x32bf28[_0x51b604(_0x1d18c._0x2b24d0,-_0x1d18c._0x53f24e,-_0x1d18c._0x35a64a,-0xb8)]+_0x3da865(-_0x1d18c._0x3c381f,0x104,_0x1d18c._0x58d22e,0x59)+(_0x32bf28['range'][_0x51b604(_0x1d18c._0x1c00d4,_0x1d18c._0x5c55d4,-_0x1d18c._0x30c4dc,_0x1d18c._0x7772c3)][_0x51b604(-_0x1d18c._0x18f401,-_0x1d18c._0x2f4328,-0x36,-_0x1d18c._0x103775)]+0x1)+':'+(_0x32bf28[_0x3da865(0x18c,-0x16,0x67,0x1c)][_0x3da865(_0x1d18c._0x1bc333,0x17b,0xab,_0x1d18c._0xa34141)]['character']+0x1)+']';function _0x3da865(_0x196981,_0x1b5c25,_0x2c1775,_0x26e7bf){return _0x5bea52(_0x2c1775-0x22,_0x1b5c25-_0x1ced13._0x58492e,_0x1b5c25,_0x26e7bf-0xde);}return _0x32bf28[_0x51b604(-0x4d,-0x15,-0x3e,0x5c)]+'\x20('+_0x32bf28[_0x51b604(-_0x1d18c._0x163222,-0x12f,-_0x1d18c._0x4a146b,-0xb8)]+')\x20'+locationPath(_0x32bf28[_0x3da865(-0x191,-0xe5,-0x8a,-0x121)][_0x3da865(_0x1d18c._0x4fdafc,-_0x1d18c._0xb3d566,0x10d,-_0x1d18c._0xea5c04)])+':'+(_0x32bf28[_0x3da865(-_0x1d18c._0x3890ef,-0x5d,-_0x1d18c._0x35741c,-_0x1d18c._0x1dfb35)][_0x51b604(0x8a,-0x7f,_0x1d18c._0x35e718,_0x1d18c._0x1c4d41)]['start']['line']+0x1)+':'+(_0x32bf28['location'][_0x51b604(_0x1d18c._0x19c3cd,0x12a,0x12d,0x40)][_0x51b604(0x97,0x1a7,_0x1d18c._0x234f68,_0x1d18c._0x7772c3)][_0x51b604(-_0x1d18c._0x55320f,-0xf6,_0x1d18c._0x36aef0,-_0x1d18c._0x263ebf)]+0x1);})[_0x2d0a7f(_0x393fc6._0x45008c,_0x393fc6._0x427282,_0x393fc6._0x27405a,0x56b)]('\x0a');}function formatDiagnostics(_0xbb44af){const _0x3a62d4={_0x4f9b64:0x125,_0xf70a80:0xce,_0x560395:0xb5,_0x8a3f6d:0x1f,_0x1a8dc5:0x116,_0x5e33fa:0x58,_0x3ae30f:0x28},_0x3a03cf={_0x3950e7:0x59c,_0x2bd8cb:0x48d,_0x5d6d45:0x15a,_0x4b86ef:0x3a7,_0x366064:0x45b,_0x5bb734:0x340,_0x6ada64:0x34d},_0x1d0536={_0x369b51:0x58f,_0x8ff377:0xf0,_0x1b4f3a:0xd3};function _0x4f8930(_0x5d010a,_0x56ca94,_0xf7e5fa,_0x42f131){return _0x255f51(_0x5d010a- -_0x1d0536._0x369b51,_0x56ca94-_0x1d0536._0x8ff377,_0xf7e5fa,_0x42f131-_0x1d0536._0x1b4f3a);}if(_0xbb44af[_0x4f8930(_0x3a62d4._0x4f9b64,_0x3a62d4._0xf70a80,_0x3a62d4._0x560395,0x60)]===0x0)return'No\x20diagnostics';function _0x3916f1(_0x123ad6,_0x538232,_0x35f4da,_0x2801d6){return _0x255f51(_0x2801d6- -0x6f6,_0x538232-0x3a,_0x35f4da,_0x2801d6-0x98);}return _0xbb44af[_0x4f8930(_0x3a62d4._0x8a3f6d,0x21,-0xca,_0x3a62d4._0x1a8dc5)](_0x49c578=>{const _0x3601f5={_0x45c522:0xd6,_0x1d64ad:0x16c};function _0x2a6311(_0x4584db,_0x350f64,_0x370df4,_0x3c3c5c){return _0x3916f1(_0x4584db-_0x3601f5._0x45c522,_0x350f64-_0x3601f5._0x1d64ad,_0x4584db,_0x350f64-0x452);}function _0x5c5ac5(_0x559e2d,_0x3c1e07,_0x80c786,_0x11913d){return _0x4f8930(_0x3c1e07- -0x196,_0x3c1e07-0x96,_0x559e2d,_0x11913d-0x95);}const _0x575945=_0x49c578['range'][_0x2a6311(_0x3a03cf._0x3950e7,0x496,0x4fa,_0x3a03cf._0x2bd8cb)];return severityName(_0x49c578[_0x5c5ac5(-0x73,-0x136,-0x1fc,-_0x3a03cf._0x5d6d45)])+'\x20['+(_0x575945[_0x2a6311(0x2e8,0x362,0x355,0x485)]+0x1)+':'+(_0x575945['character']+0x1)+']\x20'+_0x49c578[_0x2a6311(_0x3a03cf._0x4b86ef,_0x3a03cf._0x366064,_0x3a03cf._0x5bb734,_0x3a03cf._0x6ada64)];})[_0x4f8930(0x61,-_0x3a62d4._0x5e33fa,0xa4,-_0x3a62d4._0x3ae30f)]('\x0a');}function formatIncomingCalls(_0x384d24){const _0x246153={_0x202858:0x2bc,_0x4ee3e2:0x3d9,_0x94ae59:0x38e,_0x2d8f33:0x375,_0x11bec5:0x31b,_0x3e5e84:0x319,_0x35a771:0x1eb},_0x3ad71a={_0xe82bd9:0x338,_0x117a88:0x150},_0x8f2007={_0x230339:0xe8,_0x35b89f:0x22f};function _0x2e64fc(_0x27dbd5,_0x31af4e,_0x520f63,_0x46ec22){return _0x173565(_0x27dbd5-_0x8f2007._0x230339,_0x31af4e-0x186,_0x46ec22,_0x520f63-_0x8f2007._0x35b89f);}function _0xa7fed4(_0x488e5d,_0x14a211,_0x22cb92,_0x533011){return _0x255f51(_0x14a211- -_0x3ad71a._0xe82bd9,_0x14a211-0x15d,_0x533011,_0x533011-_0x3ad71a._0x117a88);}if(_0x384d24[_0x2e64fc(0x440,_0x246153._0x202858,0x377,_0x246153._0x4ee3e2)]===0x0)return _0xa7fed4(_0x246153._0x94ae59,0x3ac,_0x246153._0x2d8f33,0x4b4);return _0x384d24[_0xa7fed4(_0x246153._0x11bec5,0x276,_0x246153._0x3e5e84,0x169)](_0xf6842e=>_0xf6842e['from'][_0xa7fed4(0x3b7,0x3da,0x2d3,0x2b5)])[_0x2e64fc(0x2da,0x1bb,0x2b3,_0x246153._0x35a771)]('\x0a');}function formatOutgoingCalls(_0x1946cb){const _0x1cbdbe={_0x512f1f:0x37b,_0x222ab1:0x446,_0x4e843d:0x329,_0x43b1ba:0x15d,_0xb04d6b:0x1d4},_0x54fbbc={_0x104267:0x41c};function _0x276e65(_0x3e88ef,_0x1c16cb,_0x299ec1,_0x29a09b){return _0x255f51(_0x29a09b- -0x3bb,_0x1c16cb-0xbc,_0x3e88ef,_0x29a09b-0x16c);}if(_0x1946cb[_0x405063(0x2f8,0x228,_0x1cbdbe._0x512f1f,0x298)]===0x0)return _0x276e65(0x403,0x296,_0x1cbdbe._0x222ab1,_0x1cbdbe._0x4e843d);function _0x405063(_0x51cf8c,_0x44694b,_0x367f66,_0x4537aa){return _0x255f51(_0x4537aa- -_0x54fbbc._0x104267,_0x44694b-0x150,_0x51cf8c,_0x4537aa-0x11d);}return _0x1946cb[_0x276e65(0x2c7,0xe2,0x288,0x1f3)](_0x4e901a=>_0x4e901a['to'][_0x276e65(0x2c0,0x2bc,0x3a6,0x357)])[_0x405063(0x124,_0x1cbdbe._0x43b1ba,0xd4,_0x1cbdbe._0xb04d6b)]('\x0a');}function toStructured(_0x524d4c){const _0x27d8c0={_0x3c0b03:0xae,_0x34c9b7:0x1a0,_0x3bea5d:0xf,_0x1dee62:0x491,_0x3b25f6:0x34e,_0x3160a7:0x3e1},_0x4b1f74={_0x29b8db:0x37c},_0x5e9f20={_0x40f2b9:0x1bc,_0x3c2383:0x164};function _0x3f8d43(_0x1bf77b,_0x302fb1,_0x35763e,_0x282965){return _0x173565(_0x1bf77b-0x1a7,_0x302fb1-_0x5e9f20._0x40f2b9,_0x35763e,_0x1bf77b- -_0x5e9f20._0x3c2383);}function _0x2935d7(_0x2b19c9,_0x23ac1f,_0x2abed8,_0x5b4f41){return _0x255f51(_0x5b4f41- -_0x4b1f74._0x29b8db,_0x23ac1f-0x16c,_0x23ac1f,_0x5b4f41-0x66);}return JSON[_0x3f8d43(-0xdc,-_0x27d8c0._0x3c0b03,-_0x27d8c0._0x34c9b7,_0x27d8c0._0x3bea5d)](JSON[_0x2935d7(_0x27d8c0._0x1dee62,_0x27d8c0._0x3b25f6,0x321,_0x27d8c0._0x3160a7)](_0x524d4c));}async function assertFile(_0x211366){const _0x437373={_0x4de280:0x7d5,_0x1da9bf:0x6b5},_0x1e5bf={_0x44d6d7:0x518},_0x26017b=await _0x54ba6d(_0x211366);function _0x201d14(_0x14d716,_0x32099d,_0x1a4fc2,_0xc2b8d1){return _0x173565(_0x14d716-0xc4,_0x32099d-0x156,_0xc2b8d1,_0x32099d-_0x1e5bf._0x44d6d7);}if(!_0x26017b[_0x201d14(_0x437373._0x4de280,0x714,0x7f3,_0x437373._0x1da9bf)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x211366,{'path':_0x211366});}function validatePosition(_0x31851e,_0x48db87){const _0x2821ea={_0x1201d7:0x4e7,_0x2afbd6:0x5cb},_0x4983a7={_0x198829:0x135},_0x3392a0={_0x56ff19:0x17b};if(!Number['isInteger'](_0x31851e)||_0x31851e<0x1)throw new ToolExecutionError(_0x2bdc8f(0x630,0x5a9,0x6be,_0x2821ea._0x1201d7),{'line':_0x31851e});function _0x882876(_0x4f7b77,_0x305600,_0x23ac66,_0x4128bc){return _0x255f51(_0x23ac66- -0x21d,_0x305600-0x163,_0x4128bc,_0x4128bc-_0x3392a0._0x56ff19);}function _0x2bdc8f(_0x5bf8d8,_0x1ee00a,_0x37a1ba,_0x567ac1){return _0x173565(_0x5bf8d8-_0x4983a7._0x198829,_0x1ee00a-0x1d3,_0x567ac1,_0x1ee00a-0x520);}if(!Number[_0x882876(0x443,_0x2821ea._0x2afbd6,0x4d8,0x52b)](_0x48db87)||_0x48db87<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x48db87});}function createLspTool(_0x208594={}){const _0x5178d5={_0x16106d:0x20d,_0x20f3a9:0x281,_0x41dea6:0x1cf,_0x4a03b0:0x211,_0x33801b:0x40d,_0x4a9271:0x3d9,_0x47e48c:0x460,_0x37f3ce:0x2ed,_0x26c0d4:0x45f,_0x272fd7:0x195,_0x40e04a:0x11e,_0x1b7066:0x578,_0x254686:0x5fd,_0x19d13b:0x36b,_0x159c54:0x2ea,_0x4dceb1:0x5ed,_0x5f323f:0x510,_0x453b13:0x548,_0x37ae2e:0x547,_0x5f1a16:0x2f0,_0x54712b:0x391,_0xac90e:0x50d,_0x3584a7:0x560,_0x7d88ca:0x43e,_0x46b6da:0x23a,_0x8d8898:0x24a,_0x45364c:0x4dd,_0x2eeda9:0x433,_0x2ca1f4:0x450,_0x15c908:0x4de,_0x476663:0x5ef,_0x199beb:0x62b,_0x1482ad:0x54f,_0x2364fe:0x418,_0x23dde9:0x290,_0xebd0cb:0x2b3,_0x1087a3:0x612,_0x13cbe1:0x5aa,_0x17781f:0x421,_0x4b1b3b:0x3a7,_0x5342ec:0x367,_0x39f31c:0x37b,_0x16c3f8:0x3e6,_0x45216a:0x318,_0x54663a:0x457,_0xcbbb9c:0x52e},_0x226f76={_0x9054f7:0x3f3,_0x36accf:0x46f,_0x82a5ae:0x445,_0x3cbfb8:0x349,_0x15fd5b:0x1cf,_0x279130:0x497,_0x504af3:0x51f,_0x1eeb65:0x3f0,_0xbe3e26:0x83,_0x475cf6:0x4d,_0x3f95df:0xa1,_0x5219e8:0x11,_0xa629c2:0x2cb,_0x140c9b:0x2ad,_0x9eac60:0x16d,_0x62c3b6:0x3aa,_0x19c610:0x97,_0x55bdb:0x20a,_0x2f6703:0xee,_0x29b021:0x137,_0x1b684:0x2a,_0x17da3a:0x3a1,_0x10f0da:0x3e0,_0x8243cb:0xc2,_0x59dcd6:0x10,_0x33df3a:0x153,_0x23bb70:0x334,_0xaeabd8:0x33a,_0x49e787:0x480,_0x4a592f:0x37d,_0x281b4a:0xaf,_0x43983b:0x196,_0x2bf679:0x4f6,_0x2a8175:0x1da,_0x47879d:0x2c9,_0x4dc4de:0x49c,_0x55adc4:0x3fe,_0x1bdb1f:0x440,_0x1173d8:0x3db,_0x2ce350:0xea,_0x5e84a6:0x179,_0x3ad909:0x1b9,_0x8bf7e8:0x9c,_0x8cbb78:0x17c,_0x4daf5c:0x60,_0x330cc6:0x216,_0x5e9bba:0x404,_0x1a4571:0x2fc,_0x572960:0x3a6,_0x4a6f2a:0x1f,_0x4e5df1:0x99,_0x493286:0x8a,_0x3ffc31:0x3da,_0xbc0734:0x4a3,_0x7a429:0x3f6,_0x48e9d8:0x3fd,_0x129222:0x3eb,_0x31fdb8:0x3ec,_0x127bec:0x15e,_0x19f12a:0xbe,_0x3b029d:0x4a2,_0x1ccc02:0x407,_0x25f7c0:0x5a7,_0x43d04a:0x508,_0x42f294:0x423,_0x5e35b8:0x46d,_0x2ae7f9:0x62f,_0x8c1900:0x508,_0x8778f2:0x293,_0xc1dbe9:0x33f},_0x5c44e7={_0x2c922:0x1a,_0x24d5b4:0x190},_0x35fed3={_0x572785:0xfa,_0x5e3b25:0x2c,_0x4e3b78:0x174},_0x18b1ba={_0x525d5f:0x15b,_0x366fbf:0x177},_0xad386a={_0x3e9df7:0x115,_0x1bef78:0x5e},_0x1f05b1=_0xf4016c[_0x237c1f(_0x5178d5._0x16106d,0x312,_0x5178d5._0x20f3a9,_0x5178d5._0x41dea6)](_0x208594[_0x237c1f(0x2ce,0x2df,0x323,_0x5178d5._0x4a03b0)]??process[_0x237c1f(_0x5178d5._0x33801b,_0x5178d5._0x4a9271,_0x5178d5._0x47e48c,0x4f2)]());function _0x179eba(_0x53047a,_0x27cc77,_0x57af8a,_0x4f7ee1){return _0x255f51(_0x4f7ee1- -_0xad386a._0x3e9df7,_0x27cc77-_0xad386a._0x1bef78,_0x27cc77,_0x4f7ee1-0x166);}const _0x196666=(_0x208594[_0x237c1f(0x36a,0x23e,_0x5178d5._0x37f3ce,_0x5178d5._0x26c0d4)]??[])[_0x237c1f(0x232,0x226,_0x5178d5._0x272fd7,_0x5178d5._0x40e04a)](_0x2a48a6=>_0xf4016c['resolve'](_0x2a48a6)),_0x283015=_0x208594[_0x179eba(0x506,0x591,_0x5178d5._0x1b7066,_0x5178d5._0x254686)]??_0x179eba(_0x5178d5._0x19d13b,0x4cb,0x589,0x461);function _0x237c1f(_0x3d8ef2,_0x305b36,_0x259dd6,_0x878289){return _0x255f51(_0x3d8ef2- -0x37c,_0x305b36-_0x18b1ba._0x525d5f,_0x878289,_0x878289-_0x18b1ba._0x366fbf);}return defineTool({'name':_0x283015,'description':_0x237c1f(0x3ba,0x2ed,_0x5178d5._0x159c54,0x3ca),'inputSchema':{'type':_0x179eba(_0x5178d5._0x4dceb1,_0x5178d5._0x5f323f,0x57e,_0x5178d5._0x453b13),'properties':{'operation':{'type':'string','enum':[_0x179eba(0x5e5,0x572,0x592,_0x5178d5._0x37ae2e),_0x237c1f(0x30f,0x2de,_0x5178d5._0x5f1a16,0x3b8),_0x237c1f(0x41e,_0x5178d5._0x54712b,0x3c2,_0x5178d5._0xac90e),_0x179eba(0x54f,0x66c,0x4c1,_0x5178d5._0x3584a7),_0x237c1f(0x386,0x2cd,_0x5178d5._0x7d88ca,0x29b),_0x237c1f(0x225,_0x5178d5._0x46b6da,_0x5178d5._0x8d8898,0x233),'prepareCallHierarchy',_0x237c1f(0x415,0x4fb,_0x5178d5._0x45364c,_0x5178d5._0x2eeda9),_0x179eba(_0x5178d5._0x2ca1f4,_0x5178d5._0x15c908,0x4f2,0x4eb),_0x179eba(_0x5178d5._0x476663,_0x5178d5._0x199beb,0x4eb,_0x5178d5._0x1482ad)]},'filePath':{'type':_0x237c1f(0x343,0x246,_0x5178d5._0x2364fe,0x3cc)},'line':{'type':'number'},'character':{'type':_0x237c1f(0x28d,_0x5178d5._0x23dde9,_0x5178d5._0xebd0cb,0x25c)},'query':{'type':_0x179eba(0x5a6,0x661,_0x5178d5._0x1087a3,_0x5178d5._0x13cbe1)}},'required':[_0x237c1f(_0x5178d5._0x17781f,_0x5178d5._0x4b1b3b,0x470,_0x5178d5._0x5342ec),_0x237c1f(_0x5178d5._0x39f31c,_0x5178d5._0x16c3f8,0x468,_0x5178d5._0x45216a),'line',_0x179eba(0x49e,0x55b,_0x5178d5._0x54663a,_0x5178d5._0xcbbb9c)]},async *'execute'(_0x477515){const _0x130740=_0x208594[_0x2e622d(0x3ec,0x4bc,_0x226f76._0x9054f7,0x42f)];if(!_0x130740)throw new ToolExecutionError(_0x2e622d(0x61b,0x584,0x4fd,0x4f9));if(!_0x130740[_0x2e622d(0x321,0x4ff,_0x226f76._0x36accf,_0x226f76._0x82a5ae)]())throw new ToolExecutionError(_0x2e622d(_0x226f76._0x3cbfb8,_0x226f76._0x15fd5b,0x397,0x2fc));const _0x3636fb=_0x477515[_0x2e622d(_0x226f76._0x279130,0x48a,_0x226f76._0x504af3,0x514)];validatePosition(_0x477515[_0x2e622d(0x303,_0x226f76._0x1eeb65,0x2d2,0x37d)],_0x477515[_0x45fe6e(_0x226f76._0xbe3e26,-_0x226f76._0x475cf6,-_0x226f76._0x3f95df,_0x226f76._0x5219e8)]);if(_0x3636fb==='workspaceSymbol'){if(!_0x477515['query']?.['trim']())throw new ToolExecutionError(_0x2e622d(_0x226f76._0xa629c2,0x306,_0x226f76._0x140c9b,0x30f));const _0x46a51a=await _0x130740[_0x45fe6e(0x142,0x1b6,0xf9,0xfb)](_0x477515[_0x45fe6e(_0x226f76._0x9eac60,0x214,0x1c6,0x212)][_0x2e622d(0x2c7,0x370,_0x226f76._0x62c3b6,0x2c8)]());return yield createToolOutput(formatSymbols(_0x46a51a),{'operation':_0x3636fb,'query':_0x477515[_0x45fe6e(0x16d,_0x226f76._0x19c610,_0x226f76._0x55bdb,_0x226f76._0x2f6703)],'symbols':_0x46a51a}),void 0x0;}function _0x2e622d(_0x2b8f2c,_0x2d15ce,_0x2cbfe6,_0x9f90b1){return _0x179eba(_0x2b8f2c-_0x35fed3._0x572785,_0x2d15ce,_0x2cbfe6-_0x35fed3._0x5e3b25,_0x9f90b1- -_0x35fed3._0x4e3b78);}const _0x25c225=resolveAllowedPath(_0x1f05b1,_0x196666,_0x477515[_0x45fe6e(_0x226f76._0x29b021,0x11f,0x171,_0x226f76._0x1b684)]);await assertFile(_0x25c225);if(!await _0x130740[_0x2e622d(_0x226f76._0x17da3a,_0x226f76._0x10f0da,0x329,0x2ef)](_0x25c225))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x477515[_0x45fe6e(_0x226f76._0x29b021,0x235,_0x226f76._0x8243cb,_0x226f76._0x59dcd6)],{'filePath':_0x477515['filePath']});await _0x130740[_0x45fe6e(_0x226f76._0x33df3a,0x9b,0xb5,0x88)](_0x25c225,!![]);function _0x45fe6e(_0xb90931,_0x15f113,_0x588625,_0x3630ec){return _0x237c1f(_0xb90931- -0x244,_0x15f113-_0x5c44e7._0x2c922,_0x588625-_0x5c44e7._0x24d5b4,_0x588625);}const _0x38ed33={'file':_0x25c225,'line':_0x477515[_0x2e622d(_0x226f76._0x23bb70,_0x226f76._0xaeabd8,_0x226f76._0x49e787,_0x226f76._0x4a592f)]-0x1,'character':_0x477515[_0x45fe6e(0x83,_0x226f76._0x281b4a,0x193,_0x226f76._0x43983b)]-0x1};switch(_0x3636fb){case _0x2e622d(0x628,_0x226f76._0x2bf679,0x612,0x511):{const _0x483e74=await _0x130740[_0x45fe6e(_0x226f76._0x2a8175,0x246,0x106,_0x226f76._0x47879d)](_0x38ed33);return yield createToolOutput(formatHover(_0x483e74),{'operation':_0x3636fb,'filePath':_0x25c225,'hover':_0x483e74}),void 0x0;}case _0x2e622d(_0x226f76._0x4dc4de,_0x226f76._0x55adc4,_0x226f76._0x1bdb1f,_0x226f76._0x1173d8):{const _0x5e0b23=await _0x130740[_0x45fe6e(_0x226f76._0x2ce350,_0x226f76._0x5e84a6,-0x19,_0x226f76._0x3ad909)](_0x25c225);return yield createToolOutput(formatDiagnostics(_0x5e0b23),{'operation':_0x3636fb,'filePath':_0x25c225,'diagnostics':_0x5e0b23}),void 0x0;}case _0x45fe6e(_0x226f76._0x8bf7e8,_0x226f76._0x8cbb78,0x183,-_0x226f76._0x4daf5c):{const _0x47ab69=await _0x130740[_0x45fe6e(0x1e9,0x1f5,_0x226f76._0x330cc6,0x2b6)](_0x38ed33);return yield createToolOutput(formatLocations(_0x47ab69),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x47ab69}),void 0x0;}case _0x45fe6e(0xcb,0x1b8,0x15a,0x5d):{const _0x39c7c8=await _0x130740[_0x2e622d(_0x226f76._0x5e9bba,_0x226f76._0x1a4571,0x356,_0x226f76._0x572960)](_0x38ed33);return yield createToolOutput(formatLocations(_0x39c7c8),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x39c7c8}),void 0x0;}case _0x45fe6e(-_0x226f76._0x4a6f2a,0x12,_0x226f76._0x4e5df1,_0x226f76._0x493286):{const _0x37c44=await _0x130740[_0x2e622d(0x3b7,_0x226f76._0x3ffc31,_0x226f76._0xbc0734,_0x226f76._0x7a429)](_0x38ed33);return yield createToolOutput(formatLocations(_0x37c44),{'operation':_0x3636fb,'filePath':_0x25c225,'locations':_0x37c44}),void 0x0;}case _0x2e622d(0x3d8,0x45a,0x49e,0x3ec):{const _0x2a1347=await _0x130740[_0x2e622d(_0x226f76._0x48e9d8,0x2cb,_0x226f76._0x129222,_0x226f76._0x31fdb8)](_0x25c225);return yield createToolOutput(formatSymbols(_0x2a1347),{'operation':_0x3636fb,'filePath':_0x25c225,'symbols':_0x2a1347}),void 0x0;}case _0x45fe6e(_0x226f76._0x127bec,_0x226f76._0x19f12a,0x222,0xf8):{const _0x576eb6=await _0x130740[_0x2e622d(0x5ac,_0x226f76._0x3b029d,0x3d9,0x495)](_0x38ed33);return yield createToolOutput(formatSymbols(_0x576eb6),{'operation':_0x3636fb,'filePath':_0x25c225,'symbols':toStructured(_0x576eb6)}),void 0x0;}case _0x2e622d(0x3f5,_0x226f76._0x1ccc02,_0x226f76._0x25f7c0,_0x226f76._0x43d04a):{const _0xd4ad9d=await _0x130740[_0x2e622d(_0x226f76._0x42f294,_0x226f76._0x5e35b8,_0x226f76._0x2ae7f9,_0x226f76._0x8c1900)](_0x38ed33);return yield createToolOutput(formatIncomingCalls(_0xd4ad9d),{'operation':_0x3636fb,'filePath':_0x25c225,'calls':toStructured(_0xd4ad9d)}),void 0x0;}case _0x2e622d(0x304,0x43c,0x321,0x377):{const _0xa425c6=await _0x130740[_0x2e622d(_0x226f76._0x8778f2,0x2a0,_0x226f76._0xc1dbe9,0x377)](_0x38ed33);return yield createToolOutput(formatOutgoingCalls(_0xa425c6),{'operation':_0x3636fb,'filePath':_0x25c225,'calls':toStructured(_0xa425c6)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2991da,readFile as _0x48d106,writeFile as _0x40f8cd}from'fs/promises';import{join as _0x4f8ee}from'path';function sanitizeStorageKey(_0x4bd454){const _0x3fe424={_0x5c7c66:0x5f1,_0x46321c:0x4bd,_0x36f5d7:0x4fb,_0x2f1f06:0x47e,_0x13c99d:0x5b6,_0x579c0f:0x4c0},_0x357376={_0x2f60af:0x316},_0x32d8fb={_0x5effce:0x153,_0x482c43:0x31};function _0x5090d3(_0x3bc90f,_0x2ce38b,_0x265053,_0x439aa9){return _0x255f51(_0x439aa9- -_0x32d8fb._0x5effce,_0x2ce38b-_0x32d8fb._0x482c43,_0x265053,_0x439aa9-0x1a9);}function _0x416cdb(_0x4ed077,_0x49c449,_0x4804f9,_0x5e95b5){return _0x173565(_0x4ed077-0x3f,_0x49c449-0x1eb,_0x4804f9,_0x5e95b5-_0x357376._0x2f60af);}return _0x4bd454[_0x5090d3(_0x3fe424._0x5c7c66,0x60b,_0x3fe424._0x46321c,_0x3fe424._0x36f5d7)](/[^a-zA-Z0-9_]+/g,'_')[_0x416cdb(_0x3fe424._0x2f1f06,0x36f,0x2ef,0x3f8)](/^_+|_+$/g,'')||_0x5090d3(_0x3fe424._0x13c99d,0x4a4,_0x3fe424._0x579c0f,0x57c);}function storagePath(_0x26290d){const _0x11449d={_0x29fa0f:0x6e0,_0xa257df:0x62c,_0x1b6685:0x7c6,_0x31ae5b:0x761,_0x28d3c3:0x7cd,_0x3ddbe3:0x700,_0x3b899e:0x53e,_0x1d2dbb:0x5ec,_0x230000:0x718,_0x2b9b22:0x5f8},_0x29e211={_0x411342:0x66,_0x8b6342:0x8d,_0x10b176:0xa4};function _0x280f35(_0x3959c1,_0x581907,_0x4f8c57,_0x2b5a3c){return _0x255f51(_0x581907- -_0x29e211._0x411342,_0x581907-_0x29e211._0x8b6342,_0x4f8c57,_0x2b5a3c-_0x29e211._0x10b176);}function _0x161e1a(_0x42e05c,_0x2ab690,_0xd0cfc8,_0x316084){return _0x173565(_0x42e05c-0x1f1,_0x2ab690-0x16f,_0x42e05c,_0x2ab690-0x5b5);}const _0x39b6be=sanitizeStorageKey(_0x26290d[_0x280f35(0x75e,_0x11449d._0x29fa0f,_0x11449d._0xa257df,_0x11449d._0x1b6685)]['oauth']?.[_0x161e1a(0x853,_0x11449d._0x31ae5b,0x6e2,0x63c)]??_0x26290d[_0x280f35(_0x11449d._0x28d3c3,_0x11449d._0x3ddbe3,0x816,0x6f5)]);return _0x4f8ee(_0x26290d[_0x161e1a(_0x11449d._0x3b899e,0x60b,_0x11449d._0x1d2dbb,_0x11449d._0x230000)],_0x39b6be+_0x161e1a(0x749,0x6c9,0x681,_0x11449d._0x2b9b22));}async function readStore(_0x267bfa){const _0x56a08e={_0x169bb9:0x18d,_0x1d7b98:0xf7,_0x441d80:0x1d5,_0xd0c3b9:0x2e8,_0x477b73:0x10a,_0xf37e11:0x2c0,_0xc7653e:0x35d,_0x4edf9e:0x388,_0x124da3:0x3cd,_0x12250f:0x34f,_0x16a596:0x1d1},_0x590337={_0x17d1aa:0x4fd},_0x13ed09={_0x2c8e08:0x439,_0x1da066:0x83};function _0x403bb9(_0x4493ad,_0x53b15f,_0xfd9d42,_0x567bd2){return _0x255f51(_0xfd9d42- -_0x13ed09._0x2c8e08,_0x53b15f-_0x13ed09._0x1da066,_0x567bd2,_0x567bd2-0x1ca);}function _0x26448c(_0x47ffd6,_0x31b3c4,_0x3928db,_0x878198){return _0x255f51(_0x31b3c4- -_0x590337._0x17d1aa,_0x31b3c4-0x16,_0x3928db,_0x878198-0x101);}try{return JSON[_0x26448c(_0x56a08e._0x169bb9,_0x56a08e._0x1d7b98,0x18b,0x14e)](await _0x48d106(_0x267bfa,_0x26448c(0x2fb,_0x56a08e._0x441d80,_0x56a08e._0xd0c3b9,0x10e)));}catch(_0x454b38){if(_0x454b38 instanceof Error&&_0x26448c(0x16b,0x1fb,_0x56a08e._0x477b73,_0x56a08e._0xf37e11)in _0x454b38&&_0x454b38[_0x403bb9(_0x56a08e._0xc7653e,_0x56a08e._0x4edf9e,0x2bf,_0x56a08e._0x124da3)]===_0x26448c(_0x56a08e._0x12250f,0x25e,_0x56a08e._0x16a596,0x141))return{};throw _0x454b38;}}async function writeStore(_0x599463,_0x3c6cbe){const _0xb8a8b5={_0x250924:0x1fb,_0x2224d4:0x2ee,_0x208def:0xab,_0x5d2435:0x170,_0x312734:0x1cb},_0x1bfe47={_0x696ee4:0xf1,_0x33093d:0x52d};function _0x1c2225(_0xb1644,_0x3eda85,_0x33fc36,_0x4ab7fa){return _0x173565(_0xb1644-_0x1bfe47._0x696ee4,_0x3eda85-0x71,_0x33fc36,_0x3eda85-_0x1bfe47._0x33093d);}await _0x2991da(_0x4f8ee(_0x599463,'..'),{'recursive':!![]});function _0x133437(_0x259e86,_0x121939,_0x521c6e,_0x1d3233){return _0x255f51(_0x521c6e- -0x562,_0x121939-0x5c,_0x1d3233,_0x1d3233-0x1d6);}await _0x40f8cd(_0x599463,JSON[_0x133437(0xf5,0x125,_0xb8a8b5._0x250924,_0xb8a8b5._0x2224d4)](_0x3c6cbe,null,0x2),_0x133437(0x254,_0xb8a8b5._0x208def,_0xb8a8b5._0x5d2435,_0xb8a8b5._0x312734));}async function updateStore(_0x28cc72,_0x7bb314){const _0x152cc4=await readStore(_0x28cc72);_0x7bb314(_0x152cc4),await writeStore(_0x28cc72,_0x152cc4);}function createMcpOAuthProvider(_0x5776e8){const _0x5a065a={_0x3d4226:0x1c,_0x1eada3:0x119,_0x39d34c:0x23b,_0x3c5e78:0x1ae,_0x196911:0x19c,_0x3b17e7:0x288,_0x20cbe9:0x2b6,_0x54b875:0x37a,_0x1d7a7d:0x41d,_0x95fa70:0x32e,_0x1747d6:0x389,_0x2261da:0x214,_0x43697c:0x220,_0x1d830a:0x2df,_0x375a9:0x1d0,_0x52c84c:0x1f9,_0x477d83:0x85,_0x4cb7b2:0x258},_0x1fb963={_0x2f69ee:0x6d5},_0x3b3a9b={_0x36f27d:0x3e2},_0x2015ff={_0x341fbd:0x617,_0x240930:0x517,_0x24e4ac:0x542},_0x4d04bb={_0x3befed:0x1,_0x42b8be:0x12},_0x39aa15={_0x855075:0x290,_0x519acb:0x33f},_0x5e12fa={_0x45c2bc:0x5df,_0xc48fba:0x5c0,_0x512a87:0x795,_0x5d54d6:0x572},_0x2936f7={_0x380b30:0xf9,_0x33f509:0x2ba},_0x4d7f65={_0x575183:0x301,_0x3ed70d:0x199},_0x1c5715={_0x55a320:0x1c5,_0x1c04aa:0x16b,_0x1306cb:0x2a},_0xf79928={_0x1532de:0xb0},_0x1363a8={_0x13e6e7:0x10d};function _0x246ee0(_0x38bec3,_0x3c4953,_0x31b559,_0x4334a6){return _0x255f51(_0x3c4953- -0x3da,_0x3c4953-0xcd,_0x38bec3,_0x4334a6-_0x1363a8._0x13e6e7);}function _0x2fc3c3(_0x3acba0,_0x4b85d0,_0x23a1ae,_0x5d71be){return _0x255f51(_0x23a1ae- -0x454,_0x4b85d0-0x7d,_0x4b85d0,_0x5d71be-0x1c3);}const _0x5aded6=storagePath(_0x5776e8),_0x505b1a=_0x5776e8[_0x246ee0(0x36a,0x36c,0x3da,0x47a)][_0x2fc3c3(_0x5a065a._0x3d4226,0x6b,_0x5a065a._0x1eada3,0x1fd)]?.[_0x2fc3c3(0x17f,_0x5a065a._0x39d34c,_0x5a065a._0x3c5e78,0x29e)]?.[_0x2fc3c3(0x1e2,0xef,_0x5a065a._0x196911,_0x5a065a._0x3b17e7)]('\x20'),_0x4d28fd={'client_name':_0x2fc3c3(0x352,0x2cf,_0x5a065a._0x20cbe9,_0x5a065a._0x54b875),'redirect_uris':[_0x5776e8['callbackUrl']],'grant_types':[_0x246ee0(_0x5a065a._0x1d7a7d,_0x5a065a._0x95fa70,_0x5a065a._0x1747d6,0x2e0),_0x246ee0(0x203,0x273,0x38c,0x194)],'response_types':[_0x2fc3c3(_0x5a065a._0x2261da,_0x5a065a._0x43697c,0x2a4,_0x5a065a._0x1d830a)],'token_endpoint_auth_method':_0x246ee0(_0x5a065a._0x375a9,0x1b1,_0x5a065a._0x52c84c,_0x5a065a._0x477d83),..._0x505b1a?{'scope':_0x505b1a}:{}};return{'clientMetadataUrl':_0x5776e8[_0x2fc3c3(_0x5a065a._0x4cb7b2,0x38a,0x2f2,0x37a)]['oauth']?.['clientMetadataUrl'],get 'redirectUrl'(){const _0x492701={_0x257306:0x266};function _0x937097(_0x286aa0,_0x437824,_0xe7a173,_0x3d83cf){return _0x246ee0(_0x286aa0,_0x3d83cf- -_0x492701._0x257306,_0xe7a173-0x104,_0x3d83cf-0x107);}return _0x5776e8[_0x937097(0x151,-_0xf79928._0x1532de,-0xa4,0x2e)];},get 'clientMetadata'(){return _0x4d28fd;},async 'state'(){function _0x3cb7d9(_0x5caa06,_0x569c45,_0x131dc3,_0x280366){return _0x246ee0(_0x569c45,_0x131dc3-_0x1c5715._0x55a320,_0x131dc3-_0x1c5715._0x1c04aa,_0x280366-_0x1c5715._0x1306cb);}const _0x581f44=await readStore(_0x5aded6);if(_0x581f44[_0x174dcb(_0x5e12fa._0x45c2bc,0x683,0x554,_0x5e12fa._0xc48fba)])return _0x581f44[_0x174dcb(0x5a4,0x683,_0x5e12fa._0x512a87,_0x5e12fa._0x5d54d6)];function _0x174dcb(_0x1be116,_0x286c1f,_0x1cbe09,_0x53e7c6){return _0x246ee0(_0x1cbe09,_0x286c1f-_0x4d7f65._0x575183,_0x1cbe09-0x9e,_0x53e7c6-_0x4d7f65._0x3ed70d);}const _0x148e55=randomUUID();return await updateStore(_0x5aded6,_0x42ae4e=>{const _0x4abee2={_0xc47374:0x159};function _0x310b3a(_0x52a22c,_0x1a5442,_0x18d33a,_0x18d9d3){return _0x3cb7d9(_0x52a22c-_0x4abee2._0xc47374,_0x52a22c,_0x1a5442- -0x350,_0x18d9d3-0x14);}_0x42ae4e[_0x310b3a(0x245,0x1f7,_0x2936f7._0x380b30,_0x2936f7._0x33f509)]=_0x148e55;}),_0x148e55;},async 'clientInformation'(){return(await readStore(_0x5aded6))['clientInformation'];},async 'saveClientInformation'(_0x4542b9){const _0x2a4d26={_0x18a18a:0xff,_0x39875a:0x15d},_0x4978f7={_0x319c5a:0x2cd};await updateStore(_0x5aded6,_0x5c73cd=>{function _0x1dd87c(_0x41ca37,_0x356885,_0x3fd35a,_0x295def){return _0x4100(_0x295def- -_0x4978f7._0x319c5a,_0x356885);}_0x5c73cd[_0x1dd87c(_0x2a4d26._0x18a18a,0x99,0x5a,_0x2a4d26._0x39875a)]=_0x4542b9;});},async 'tokens'(){function _0x3f4d7a(_0x1156ec,_0x3190cd,_0x231f44,_0x23f916){return _0x2fc3c3(_0x1156ec-0x79,_0x23f916,_0x231f44-0xca,_0x23f916-0xd8);}return(await readStore(_0x5aded6))[_0x3f4d7a(_0x39aa15._0x855075,0x414,_0x39aa15._0x519acb,0x26b)];},async 'saveTokens'(_0x588146){await updateStore(_0x5aded6,_0x5dbb3e=>{_0x5dbb3e['tokens']=_0x588146;});},async 'redirectToAuthorization'(_0xdfc70d){await _0x5776e8['onRedirect'](_0xdfc70d);},async 'saveCodeVerifier'(_0x4d1dc3){const _0x4f75eb={_0x540f8c:0x1b};await updateStore(_0x5aded6,_0x37899b=>{function _0x115ad5(_0x149114,_0x425ded,_0x557a67,_0x373eea){return _0x4100(_0x373eea- -0x384,_0x557a67);}_0x37899b[_0x115ad5(0x38,-0x7c,-0x126,-_0x4f75eb._0x540f8c)]=_0x4d1dc3;});},async 'codeVerifier'(){const _0x3ef21d=(await readStore(_0x5aded6))[_0x19f41d(_0x2015ff._0x341fbd,_0x2015ff._0x240930,_0x2015ff._0x24e4ac,0x71a)];function _0x19f41d(_0x2c74df,_0x166bb4,_0x212a60,_0xf90b12){return _0x246ee0(_0xf90b12,_0x2c74df-0x314,_0x212a60-_0x4d04bb._0x3befed,_0xf90b12-_0x4d04bb._0x42b8be);}if(!_0x3ef21d)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x3ef21d;},async 'invalidateCredentials'(_0x410e1a){const _0xe0431b={_0x2d3b62:0xf8,_0x10fb21:0x111,_0xf64720:0x767,_0x1b5d1f:0x692,_0x508598:0x751,_0x5c4f86:0x41b,_0xf934d4:0x51a,_0x48bc80:0x186,_0x22ccb2:0x6d,_0x3ab898:0x40,_0x38e7fe:0x6e,_0x587948:0x191,_0xf6905:0x8d,_0x42f660:0x63a,_0x5bceda:0x6c,_0x3da521:0x4,_0x59ba25:0x6ba};await updateStore(_0x5aded6,_0x2e6cf4=>{const _0x35df27={_0x16165b:0x2e7};(_0x410e1a===_0x9fcc9d(-_0xe0431b._0x2d3b62,-_0xe0431b._0x10fb21,0x3b,-0xb5)||_0x410e1a===_0x4dc1c4(_0xe0431b._0xf64720,0x6f9,_0xe0431b._0x1b5d1f,_0xe0431b._0x508598))&&(_0x2e6cf4['clientInformation']=void 0x0);function _0x4dc1c4(_0x12a2b8,_0x295a89,_0x5a3d23,_0x3bc590){return _0x4100(_0x5a3d23-_0x35df27._0x16165b,_0x295a89);}(_0x410e1a===_0x4dc1c4(0x43b,_0xe0431b._0x5c4f86,_0xe0431b._0xf934d4,0x4fa)||_0x410e1a==='tokens')&&(_0x2e6cf4[_0x9fcc9d(0x119,0x161,_0xe0431b._0x48bc80,_0xe0431b._0x22ccb2)]=void 0x0);function _0x9fcc9d(_0x448838,_0x29be23,_0x12161f,_0x451473){return _0x4100(_0x451473- -0x2e8,_0x29be23);}(_0x410e1a===_0x9fcc9d(-_0xe0431b._0x3ab898,-0x171,-_0xe0431b._0x38e7fe,-0xb5)||_0x410e1a===_0x9fcc9d(_0xe0431b._0x587948,-0x65,0xb,_0xe0431b._0xf6905))&&(_0x2e6cf4[_0x4dc1c4(0x590,0x602,0x650,_0xe0431b._0x42f660)]=void 0x0,_0x2e6cf4['state']=void 0x0),(_0x410e1a==='all'||_0x410e1a===_0x9fcc9d(_0xe0431b._0x5bceda,_0xe0431b._0x3da521,-_0xe0431b._0x38e7fe,0x8f))&&(_0x2e6cf4[_0x4dc1c4(0x5d3,0x7b9,_0xe0431b._0x59ba25,0x764)]=void 0x0);});},async 'saveDiscoveryState'(_0x5b2d54){await updateStore(_0x5aded6,_0x50546f=>{_0x50546f['discoveryState']=_0x5b2d54;});},async 'discoveryState'(){function _0x421a0d(_0x3950cf,_0x47d337,_0x8ce2ef,_0x2650f0){return _0x2fc3c3(_0x3950cf-0x1e2,_0x8ce2ef,_0x2650f0-_0x3b3a9b._0x36f27d,_0x2650f0-0x11);}return(await readStore(_0x5aded6))[_0x421a0d(0x760,0x606,0x6b7,_0x1fb963._0x2f69ee)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function _0x4100(_0x2b2165,_0x1d98a5){_0x2b2165=_0x2b2165-0x1dc;const _0x2b521f=_0x2b52();let _0x410083=_0x2b521f[_0x2b2165];if(_0x4100['VuwAxa']===undefined){var _0x3996b3=function(_0x3ddef6){const _0x104126='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2946e8='',_0x383c01='';for(let _0x56e75c=0x0,_0x1833a3,_0x8b2779,_0x3ae68c=0x0;_0x8b2779=_0x3ddef6['charAt'](_0x3ae68c++);~_0x8b2779&&(_0x1833a3=_0x56e75c%0x4?_0x1833a3*0x40+_0x8b2779:_0x8b2779,_0x56e75c++%0x4)?_0x2946e8+=String['fromCharCode'](0xff&_0x1833a3>>(-0x2*_0x56e75c&0x6)):0x0){_0x8b2779=_0x104126['indexOf'](_0x8b2779);}for(let _0x1cd4e7=0x0,_0x45a0d8=_0x2946e8['length'];_0x1cd4e7<_0x45a0d8;_0x1cd4e7++){_0x383c01+='%'+('00'+_0x2946e8['charCodeAt'](_0x1cd4e7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x383c01);};_0x4100['PGxjFU']=_0x3996b3,_0x4100['GscpaN']={},_0x4100['VuwAxa']=!![];}const _0x1ff2a8=_0x2b521f[0x0],_0x1b8ebf=_0x2b2165+_0x1ff2a8,_0x57051f=_0x4100['GscpaN'][_0x1b8ebf];return!_0x57051f?(_0x410083=_0x4100['PGxjFU'](_0x410083),_0x4100['GscpaN'][_0x1b8ebf]=_0x410083):_0x410083=_0x57051f,_0x410083;}function createMcpToolName(_0x3521d1,_0x52538d){const _0x3f545c={_0xf231b7:0x4e2,_0x5ea1ca:0x60b},_0x4eb059={_0x1ed1cd:0x8b,_0x55261a:0x151},_0x2c810c=_0x36bc3b=>_0x36bc3b['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');function _0x15f727(_0x45ade8,_0x58b825,_0x31142d,_0x2edde2){return _0x173565(_0x45ade8-_0x4eb059._0x1ed1cd,_0x58b825-_0x4eb059._0x55261a,_0x2edde2,_0x58b825-0x4ea);}return _0x15f727(0x49a,_0x3f545c._0xf231b7,0x60d,_0x3f545c._0x5ea1ca)+_0x2c810c(_0x3521d1)+'_'+_0x2c810c(_0x52538d);}function isObject(_0x2ae45d){const _0x1615f1={_0x21d189:0x53c,_0x41740f:0x426,_0x3a7c3f:0x414},_0x2c733c={_0x5a6f56:0x7d,_0x359dc6:0x87},_0x10a70e={_0x29e82a:0x40f,_0x5bd6cd:0x191,_0x1ab333:0x2};function _0x20ec57(_0x200697,_0x262784,_0x2f7d69,_0x43180f){return _0x255f51(_0x262784- -_0x10a70e._0x29e82a,_0x262784-_0x10a70e._0x5bd6cd,_0x200697,_0x43180f-_0x10a70e._0x1ab333);}function _0x100d8f(_0x1e5188,_0x475a63,_0x347d47,_0x499aa5){return _0x255f51(_0x499aa5- -0xd4,_0x475a63-_0x2c733c._0x5a6f56,_0x347d47,_0x499aa5-_0x2c733c._0x359dc6);}return typeof _0x2ae45d===_0x100d8f(0x660,0x592,_0x1615f1._0x21d189,0x589)&&_0x2ae45d!==null&&!Array[_0x100d8f(_0x1615f1._0x41740f,0x475,_0x1615f1._0x3a7c3f,0x489)](_0x2ae45d);}function toSupportedSchema(_0x4666ef){const _0x142b54={_0x154dd7:0x15f,_0x5c496b:0x1f6,_0x444c7:0x275,_0x45ad4a:0x144,_0x55bfa4:0x20a,_0x15c749:0x2de,_0x30e5f:0x4b5,_0xf1e793:0x510,_0x953160:0x527,_0x304cce:0x38e,_0x168cd1:0x2ac,_0x1489af:0x2d5,_0x174507:0x3b1,_0x366bf5:0x2cc,_0x410e8e:0x381,_0x336291:0x41a,_0x17418e:0x3eb,_0xd93da3:0x37f,_0x3d11f4:0x2bd,_0x25455c:0x390,_0x8e048d:0x3a8,_0x6bec66:0x310,_0x2ce733:0x30d,_0x26174d:0x3ee,_0x3dc8b9:0x217,_0x54bfff:0x2ef,_0x6ed67f:0x2fd,_0x230787:0x13f,_0x1cb87a:0x284},_0x18240c={_0x2ce3ef:0x1b0},_0x4e7b2b={_0x3eebcc:0x3ff};if(!isObject(_0x4666ef))return void 0x0;if(_0x4666ef['type']==='string')return{'type':'string'};function _0x416272(_0x2f836b,_0x114de2,_0x158a58,_0x17ed6b){return _0x255f51(_0x17ed6b- -_0x4e7b2b._0x3eebcc,_0x114de2-0x140,_0x2f836b,_0x17ed6b-0x1ca);}if(_0x4666ef[_0x416272(_0x142b54._0x154dd7,_0x142b54._0x5c496b,_0x142b54._0x444c7,0x22d)]===_0x416272(_0x142b54._0x45ad4a,0x2cf,0x161,_0x142b54._0x55bfa4)||_0x4666ef[_0x4160dd(0x3b1,_0x142b54._0x15c749,0x3c0,_0x142b54._0x30e5f)]===_0x4160dd(_0x142b54._0xf1e793,0x412,_0x142b54._0x953160,0x42b))return{'type':_0x4160dd(_0x142b54._0x304cce,_0x142b54._0x168cd1,_0x142b54._0x1489af,0x463)};if(_0x4666ef[_0x4160dd(_0x142b54._0x174507,0x2fb,_0x142b54._0x366bf5,0x442)]===_0x4160dd(0x441,_0x142b54._0x410e8e,0x32f,_0x142b54._0x336291))return{'type':_0x416272(0x389,_0x142b54._0x17418e,_0x142b54._0xd93da3,_0x142b54._0x3d11f4)};if(_0x4666ef[_0x4160dd(0x3b1,0x3f5,_0x142b54._0x25455c,_0x142b54._0x8e048d)]==='array')return{'type':_0x416272(0x3aa,0x428,_0x142b54._0x6bec66,_0x142b54._0x2ce733),'items':toSupportedSchema(_0x4666ef[_0x4160dd(0x3a5,0x2be,_0x142b54._0x26174d,0x2c7)])??{'type':'string'}};if(_0x4666ef[_0x416272(_0x142b54._0x3dc8b9,_0x142b54._0x54bfff,0x329,0x22d)]===_0x416272(_0x142b54._0x6ed67f,_0x142b54._0x230787,_0x142b54._0x1cb87a,0x25e))return toNuvinToolSchema(_0x4666ef);function _0x4160dd(_0x30daac,_0x1fafea,_0x20fcab,_0x293779){return _0x173565(_0x30daac-0x1bd,_0x1fafea-_0x18240c._0x2ce3ef,_0x1fafea,_0x30daac-0x2f1);}return void 0x0;}function toNuvinToolSchema(_0x675708){const _0x581e0e={_0x47cbb1:0x230,_0x4db595:0x311,_0x47602e:0x322,_0x3c4e61:0x319,_0x3bac4d:0x1a9,_0x16eab4:0x24c,_0x5b8ef0:0x273,_0x3979c1:0x440,_0x1a4f2f:0x3f0,_0x10ca0d:0x576,_0x1cbf4b:0x476,_0x3b0d94:0x28f,_0x4d2363:0x53f,_0x83d093:0x58e,_0x31da14:0x4ec,_0x5a0e56:0x334,_0x432774:0x260,_0x3cf299:0x240,_0x58b8fa:0x3bb,_0x3bb66d:0x358,_0x108321:0x362,_0x2aa601:0x24d},_0x109ed5={_0x9356d:0x3a},_0x4e4188={_0x2717f4:0x410,_0x2ee8f0:0x1dd,_0x3b0a96:0xc0};if(!isObject(_0x675708)||_0x675708[_0x3b4f45(0x118,0x21c,_0x581e0e._0x47cbb1,0x13c)]!==_0x2ecee0(0x3cb,0x406,0x3bd,_0x581e0e._0x4db595))return{'type':_0x2ecee0(0x376,0x4ca,0x3bd,_0x581e0e._0x47602e),'properties':{}};const _0x5376b0={};function _0x3b4f45(_0x323c77,_0x85d903,_0x34ed9f,_0x36439c){return _0x255f51(_0x85d903- -_0x4e4188._0x2717f4,_0x85d903-_0x4e4188._0x2ee8f0,_0x36439c,_0x36439c-_0x4e4188._0x3b0a96);}const _0x2e693d=isObject(_0x675708[_0x2ecee0(0x41e,0x1eb,_0x581e0e._0x3c4e61,0x3cf)])?_0x675708[_0x3b4f45(0x195,_0x581e0e._0x3bac4d,_0x581e0e._0x16eab4,_0x581e0e._0x5b8ef0)]:{};function _0x2ecee0(_0x532774,_0x2fcc98,_0x3a6181,_0x3be552){return _0x173565(_0x532774-_0x109ed5._0x9356d,_0x2fcc98-0x6d,_0x3be552,_0x3a6181-0x2cc);}for(const [_0x42a78b,_0x3de7eb]of Object[_0x2ecee0(_0x581e0e._0x3979c1,_0x581e0e._0x1a4f2f,0x4d5,_0x581e0e._0x10ca0d)](_0x2e693d)){const _0x54e5c1=toSupportedSchema(_0x3de7eb);if(_0x54e5c1)_0x5376b0[_0x42a78b]=_0x54e5c1;}const _0x2dd242=Array['isArray'](_0x675708[_0x3b4f45(_0x581e0e._0x1cbf4b,0x37c,0x387,_0x581e0e._0x3b0d94)])?_0x675708[_0x2ecee0(_0x581e0e._0x4d2363,_0x581e0e._0x83d093,_0x581e0e._0x31da14,0x40e)][_0x3b4f45(0x2d9,_0x581e0e._0x5a0e56,0x33a,_0x581e0e._0x432774)](_0x54065d=>typeof _0x54065d===_0x2ecee0(0x455,0x407,0x41f,0x3fb)):void 0x0;return _0x2dd242?.[_0x3b4f45(_0x581e0e._0x3cf299,0x2a4,_0x581e0e._0x58b8fa,_0x581e0e._0x3bb66d)]?{'type':_0x3b4f45(_0x581e0e._0x108321,_0x581e0e._0x2aa601,0x1ee,0x22f),'properties':_0x5376b0,'required':_0x2dd242}:{'type':_0x3b4f45(0x29c,0x24d,0x369,0x347),'properties':_0x5376b0};}function isJsonObject(_0x1f7750){return typeof _0x1f7750==='object'&&_0x1f7750!==null&&!Array['isArray'](_0x1f7750);}function _0x255f51(_0x1052c4,_0x14a6b0,_0x5ffb55,_0x1ab3fc){const _0x50d681={_0x40ff3a:0x374};return _0x4100(_0x1052c4-_0x50d681._0x40ff3a,_0x5ffb55);}function formatMcpContent(_0x51196a){const _0x3c3bfd={_0x1079ba:0x4f,_0x1b6d16:0x17e,_0x4b0377:0x121,_0x13ca08:0xeb,_0x34e727:0x10d,_0x51418e:0x179,_0x19703e:0x152,_0xc205de:0x3a,_0x3ecb6a:0x730,_0x3763e1:0x69a,_0x3890b4:0x745},_0x54e2d4={_0x3d9493:0x5cc,_0x259c1a:0x802,_0x242d02:0x628,_0x18bd83:0x4fd,_0x113646:0x7f7,_0x47cb61:0x70f,_0x2c3c56:0x79d,_0x201bdf:0x6a3,_0xe86dc9:0x7c1,_0x1cbfee:0x696},_0x216698={_0x1d0afb:0xc3},_0x3f27b8=Array[_0x41015e(-_0x3c3bfd._0x1079ba,-_0x3c3bfd._0x1b6d16,-0x274,-0x50)](_0x51196a['content'])?_0x51196a[_0x12c2cb(0x491,0x5b8,0x56e,0x4be)]:[];function _0x12c2cb(_0x3eb243,_0x3da049,_0x2eaa66,_0x16ff25){return _0x255f51(_0x2eaa66- -_0x216698._0x1d0afb,_0x3da049-0xdc,_0x3da049,_0x16ff25-0x12b);}const _0x3cb6a4=_0x3f27b8['map'](_0x55992e=>{const _0x45d355={_0x1d5afe:0x9f},_0x125876={_0x14079b:0x68};if(!isObject(_0x55992e))return'';if(_0x55992e['type']===_0x9e60f4(_0x54e2d4._0x3d9493,0x6e6,0x640,_0x54e2d4._0x259c1a)&&typeof _0x55992e[_0x2df105(_0x54e2d4._0x242d02,0x5dc,0x606,_0x54e2d4._0x18bd83)]===_0x9e60f4(_0x54e2d4._0x113646,_0x54e2d4._0x47cb61,0x6c6,0x5f1))return _0x55992e['text'];function _0x2df105(_0x3a0c36,_0x3cbcd5,_0xc4ac28,_0x308879){return _0x41015e(_0x3a0c36-0x1e8,_0x3cbcd5-0x621,_0xc4ac28,_0x308879-_0x125876._0x14079b);}function _0x9e60f4(_0x5759e0,_0x3b0f22,_0x6026f4,_0x40824e){return _0x12c2cb(_0x5759e0-_0x45d355._0x1d5afe,_0x40824e,_0x3b0f22-0x113,_0x40824e-0x12f);}return JSON[_0x2df105(_0x54e2d4._0x2c3c56,_0x54e2d4._0x201bdf,_0x54e2d4._0xe86dc9,_0x54e2d4._0x1cbfee)](_0x55992e);})['filter'](_0x31efe7=>_0x31efe7['length']>0x0)[_0x41015e(-_0x3c3bfd._0x4b0377,-_0x3c3bfd._0x13ca08,-_0x3c3bfd._0x34e727,-_0x3c3bfd._0x51418e)]('\x0a');if(_0x3cb6a4[_0x41015e(0xdf,-0x27,-_0x3c3bfd._0x19703e,-_0x3c3bfd._0xc205de)]>0x0)return _0x3cb6a4;function _0x41015e(_0x240564,_0x3845f4,_0x576354,_0x4f54a1){return _0x173565(_0x240564-0x94,_0x3845f4-0x153,_0x576354,_0x3845f4- -0x16f);}return JSON[_0x12c2cb(_0x3c3bfd._0x3ecb6a,0x60f,_0x3c3bfd._0x3763e1,_0x3c3bfd._0x3890b4)](_0x51196a,null,0x2);}function createMcpTool(_0x15d53d){const _0x25956b={_0xdbaabd:0x69c,_0x183952:0x424,_0x3eddff:0x290,_0x1eb52b:0x35a,_0x528932:0x5ce,_0x241929:0x7a6,_0x112135:0x5df,_0x17824b:0x60d,_0x5a57df:0x5bc,_0x1c40f0:0x6e2,_0x3e0eb2:0x435,_0x169b25:0x43e,_0x1c1780:0x5d6,_0x39fbda:0x612,_0x70f032:0x6d7,_0xbfa4f0:0x637,_0x3d6b89:0x4dc},_0x500b34={_0x979f4a:0x310,_0xdda07b:0x34f,_0x8ba70b:0x30a,_0x410f92:0x1ee,_0x5bff4f:0x18e,_0x277b2c:0x318,_0x493882:0x2cf,_0x4ca3f7:0x29d,_0x400987:0x41b,_0x42d6e7:0x487,_0x410458:0x3f2,_0x25f970:0x353,_0x53c556:0x2c2,_0x31f9d3:0x351,_0xf8be80:0x35c,_0x4e82cb:0x4c2,_0x407000:0x2ac,_0x2e5ce5:0x21f,_0x276651:0x28b,_0x537089:0x179,_0x56c6c1:0x23a,_0x35760a:0x2ea},_0x4deafe={_0x4ea096:0x153,_0xc72387:0xcf},_0x34ae64={_0x14da38:0x11a,_0x430864:0x367},_0x12544c={_0x100c6d:0x69,_0xd2f993:0x1a7},_0x3e3663={_0x413050:0x173,_0x7262a9:0x2aa};function _0xa3a087(_0x2609d5,_0x2d30ec,_0x222660,_0x17b3b3){return _0x173565(_0x2609d5-0xd5,_0x2d30ec-_0x3e3663._0x413050,_0x2609d5,_0x17b3b3-_0x3e3663._0x7262a9);}function _0x3bdb70(_0x1e55f8,_0x2d0fb1,_0x4e92d4,_0x164b28){return _0x255f51(_0x2d0fb1- -_0x12544c._0x100c6d,_0x2d0fb1-_0x12544c._0xd2f993,_0x4e92d4,_0x164b28-0x106);}const _0x3cfbba=createMcpToolName(_0x15d53d[_0x3bdb70(0x6ec,0x6fd,0x800,_0x25956b._0xdbaabd)],_0x15d53d[_0xa3a087(0x449,_0x25956b._0x183952,_0x25956b._0x3eddff,_0x25956b._0x1eb52b)]['name']);return defineTool({'name':_0x3cfbba,'description':_0x15d53d['tool'][_0x3bdb70(_0x25956b._0x528932,0x6e6,_0x25956b._0x241929,_0x25956b._0x112135)]??_0xa3a087(0x321,0x4c1,0x31e,0x3d8)+_0x15d53d[_0x3bdb70(_0x25956b._0x17824b,0x5b3,_0x25956b._0x5a57df,_0x25956b._0x1c40f0)]['name']+_0xa3a087(0x401,_0x25956b._0x3e0eb2,_0x25956b._0x169b25,0x4c3)+_0x15d53d[_0x3bdb70(_0x25956b._0x1c1780,0x6fd,_0x25956b._0x39fbda,_0x25956b._0x70f032)],'inputSchema':toNuvinToolSchema(_0x15d53d[_0x3bdb70(_0x25956b._0xbfa4f0,0x5b3,0x54b,_0x25956b._0x3d6b89)]['inputSchema']),async *'execute'(_0x4c355f){const _0x2e0693=await _0x15d53d[_0x3691bb(_0x500b34._0x979f4a,_0x500b34._0xdda07b,0x243,_0x500b34._0x8ba70b)][_0x178bce(0x113,0x28a,_0x500b34._0x410f92,_0x500b34._0x5bff4f)]({'name':_0x15d53d[_0x178bce(_0x500b34._0x277b2c,_0x500b34._0x493882,0x28b,_0x500b34._0x4ca3f7)]['name'],'arguments':isJsonObject(_0x4c355f)?_0x4c355f:{}});function _0x3691bb(_0xb5a8ee,_0x18b929,_0x49f124,_0x4cb13e){return _0x3bdb70(_0xb5a8ee-_0x34ae64._0x14da38,_0x18b929- -_0x34ae64._0x430864,_0x4cb13e,_0x4cb13e-0x180);}if(_0x2e0693[_0x178bce(0x50b,0x3bb,_0x500b34._0x400987,0x2ec)])throw new ToolExecutionError(formatMcpContent(_0x2e0693),{'serverName':_0x15d53d[_0x3691bb(_0x500b34._0x42d6e7,0x396,_0x500b34._0x410458,0x27e)],'toolName':_0x15d53d[_0x3691bb(_0x500b34._0x25f970,0x24c,_0x500b34._0x53c556,_0x500b34._0x31f9d3)][_0x3691bb(0x265,0x342,0x314,0x432)]});yield createToolOutput(formatMcpContent(_0x2e0693),{'serverName':_0x15d53d[_0x178bce(_0x500b34._0xf8be80,0x428,0x3d5,_0x500b34._0x4e82cb)],'toolName':_0x15d53d[_0x178bce(_0x500b34._0x407000,_0x500b34._0x2e5ce5,_0x500b34._0x276651,_0x500b34._0x537089)][_0x3691bb(_0x500b34._0x56c6c1,0x342,_0x500b34._0x35760a,0x3b2)],'result':_0x2e0693});function _0x178bce(_0x49d425,_0x2d04fc,_0x1e990e,_0xb091fb){return _0xa3a087(_0x2d04fc,_0x2d04fc-_0x4deafe._0x4ea096,_0x1e990e-0x1c9,_0x1e990e- -_0x4deafe._0xc72387);}return void 0x0;}});}function resolvePrefix(_0x5d35ce,_0x13bac7){const _0x5096c2={_0xb7e2b8:0x167,_0x48305e:0x202,_0x446dac:0x2c8};function _0x26c074(_0x110aa3,_0x98fbe8,_0x1edb2d,_0x2140c6){return _0x255f51(_0x1edb2d- -0x74d,_0x98fbe8-0x17f,_0x2140c6,_0x2140c6-0x13c);}return _0x13bac7[_0x26c074(-_0x5096c2._0xb7e2b8,-_0x5096c2._0x48305e,-0x1ad,-_0x5096c2._0x446dac)]??_0x5d35ce;}function buildMcpHttpHeaders(_0x28d583){const _0x47ff2d={_0x436bc3:0x12b,_0x5ecbfc:0x2da,_0x121fae:0x39c,_0x5cb6c5:0x3ca,_0x1f7fb5:0x3a4,_0x58f1ce:0x371,_0x96da70:0x319,_0x49cdab:0x471,_0x2efdc4:0x548,_0x139c89:0x547,_0x10d68d:0x1d6,_0x29fc44:0x104,_0x19b370:0x129,_0x1b6e9:0x3fe,_0x30037b:0x4cf,_0x26e920:0x419,_0x5b5656:0x378},_0x9f12e7={_0x69b45b:0x145};function _0x2b3c31(_0x3a849f,_0x374ed2,_0x2c1a84,_0xd30e1){return _0x255f51(_0x374ed2- -0x5b4,_0x374ed2-0xaa,_0x2c1a84,_0xd30e1-0xd4);}const _0x2dcf2c={..._0x28d583[_0x2b3c31(_0x47ff2d._0x436bc3,0x9c,-0x66,-0x4e)]??{}};function _0x2fab3a(_0x15fda3,_0x172593,_0x567722,_0x3a3d89){return _0x255f51(_0x172593- -0x2bb,_0x172593-_0x9f12e7._0x69b45b,_0x15fda3,_0x3a3d89-0x1);}return _0x28d583[_0x2fab3a(0x3fd,_0x47ff2d._0x5ecbfc,_0x47ff2d._0x121fae,_0x47ff2d._0x5cb6c5)]?.[_0x2fab3a(_0x47ff2d._0x1f7fb5,_0x47ff2d._0x58f1ce,0x48d,_0x47ff2d._0x96da70)]===_0x2fab3a(0x352,_0x47ff2d._0x49cdab,_0x47ff2d._0x2efdc4,_0x47ff2d._0x139c89)&&_0x28d583['auth'][_0x2b3c31(0x229,0x1e3,_0x47ff2d._0x10d68d,0x1bb)]&&_0x2dcf2c[_0x2b3c31(_0x47ff2d._0x29fc44,_0x47ff2d._0x10d68d,_0x47ff2d._0x19b370,0x1ed)]===void 0x0&&(_0x2dcf2c['Authorization']=_0x2fab3a(0x2f6,_0x47ff2d._0x1b6e9,0x4c7,_0x47ff2d._0x30037b)+_0x28d583['auth']['token']),Object['keys'](_0x2dcf2c)[_0x2fab3a(_0x47ff2d._0x26e920,0x3f9,_0x47ff2d._0x5b5656,0x3c5)]>0x0?_0x2dcf2c:void 0x0;}function getErrorMessage(_0xe9a639){const _0x1df3d7={_0x2cc510:0xc0,_0x44f129:0x189},_0xd86a0a={_0x4f6afd:0x1c3};function _0x43f5b1(_0x457fe9,_0xefd2f3,_0xb09c39,_0x31c420){return _0x255f51(_0x457fe9- -0x5c3,_0xefd2f3-_0xd86a0a._0x4f6afd,_0xefd2f3,_0x31c420-0x18d);}return _0xe9a639 instanceof Error?_0xe9a639[_0x43f5b1(0x13c,_0x1df3d7._0x2cc510,_0x1df3d7._0x44f129,0x1f2)]:String(_0xe9a639);}function isUnauthorizedError(_0x2ad5de){const _0x4b07e4={_0x2acda:0x663,_0x4b62a9:0x4ee,_0x34a246:0x6b5,_0x96e9f3:0x6bc,_0x41b155:0x5ce},_0x3588bb={_0x54bb9e:0xae,_0x3d8dfd:0x10d},_0x4fea9b={_0x1ad94b:0x48f,_0x826f7e:0x3,_0x3f3478:0x82};function _0xa21a1f(_0x180414,_0x45910a,_0x1afe19,_0x4f2a6f){return _0x255f51(_0x1afe19- -_0x4fea9b._0x1ad94b,_0x45910a-_0x4fea9b._0x826f7e,_0x4f2a6f,_0x4f2a6f-_0x4fea9b._0x3f3478);}function _0x64e932(_0x14ab27,_0x2b8907,_0x2ed45d,_0x948edf){return _0x255f51(_0x2b8907- -_0x3588bb._0x54bb9e,_0x2b8907-_0x3588bb._0x3d8dfd,_0x2ed45d,_0x948edf-0x71);}return _0x2ad5de instanceof Error&&_0x2ad5de[_0x64e932(_0x4b07e4._0x2acda,0x58a,0x4f4,_0x4b07e4._0x4b62a9)]['name']===_0x64e932(0x5ec,_0x4b07e4._0x34a246,_0x4b07e4._0x96e9f3,_0x4b07e4._0x41b155);}async function connectMcpServer(_0x51f0a8,_0x3b1ef7,_0x315bd3){const _0x451a9b={_0x287255:0xb6,_0x113777:0x2d,_0x52bd6a:0x15f,_0x431337:0x7b,_0x4b53f0:0x210,_0x19849b:0x2a9,_0x8382ec:0x21e,_0x45772a:0x282,_0x2c8d07:0x149,_0x260fd9:0x113,_0x17a1cb:0x186,_0x802da1:0xaa,_0x2961e4:0x7f,_0x348e0:0x8f,_0x34729e:0x124,_0x247a74:0x1da,_0x59f082:0x33,_0x2eb07b:0x12d,_0x268b4b:0x18b,_0xf18825:0x22f,_0x4209f8:0x1a3,_0x10ba6b:0x5,_0xb87140:0x19e,_0x3f2192:0x13f,_0x4a8e44:0xf2,_0x6146:0x102,_0x5472ba:0x1cb,_0x2bd44d:0x1bb,_0xfd4a7b:0x269,_0x55368b:0x176,_0x2876a2:0xcf,_0x277cf0:0x94,_0x451ce8:0x5b,_0x3d606c:0x1d,_0x321964:0x8b,_0xf03d86:0x119,_0x55978b:0x172,_0x34e744:0x1c4,_0x31ed63:0xe9,_0xe65a2b:0x92,_0x5d396e:0xe2,_0x143666:0x15e,_0x675e73:0x193,_0x1a0b66:0xa,_0x1b8c41:0x61,_0x2d859c:0xde,_0x37b879:0x99,_0x236da0:0x5b,_0x32990d:0x1b,_0x25ba76:0x8a,_0x3b26f2:0x11c,_0x260782:0x8d,_0x24eb21:0xad},_0x39b029={_0x390ade:0x387},_0x90fe49={_0x512a07:0x23f,_0x381490:0x351},_0x5f266b={_0x229947:0x115,_0x2d97cc:0x1be},_0x55e4ca={_0x1c6d66:0x6be,_0x34f839:0x611},_0x2f3e3c={_0x184902:0x156},_0x137f69={_0x31b675:0xe2,_0x1d8329:0x1cc};function _0x4ec184(_0x4b4787,_0x2d36c0,_0xb33087,_0x1f02b9){return _0x173565(_0x4b4787-0x12e,_0x2d36c0-_0x137f69._0x31b675,_0x2d36c0,_0xb33087- -_0x137f69._0x1d8329);}const _0x4a7c7f=new Client({'name':_0x4ec184(-_0x451a9b._0x287255,-0x57,0x28,-_0x451a9b._0x113777),'version':_0x1dcb67(-0xb3,-_0x451a9b._0x52bd6a,-0x42,-0x47)});function _0x1dcb67(_0x1a199d,_0x598074,_0x36724b,_0x267463){return _0x173565(_0x1a199d-0xa9,_0x598074-_0x2f3e3c._0x184902,_0x267463,_0x36724b- -0x80);}if(_0x3b1ef7['transport']===_0x4ec184(_0x451a9b._0x431337,-0xdc,-0x74,0xb1)||_0x3b1ef7[_0x1dcb67(0x21d,0x4f,0x10e,_0x451a9b._0x4b53f0)]){if(!_0x3b1ef7['url'])throw new Error(_0x4ec184(-_0x451a9b._0x19849b,-_0x451a9b._0x8382ec,-0x1de,-_0x451a9b._0x45772a)+_0x51f0a8+_0x1dcb67(0x4d,0x113,0x68,0x6f));if(_0x3b1ef7[_0x1dcb67(-0x183,-_0x451a9b._0x2c8d07,-0x57,0x4c)]?.[_0x4ec184(-_0x451a9b._0x260fd9,-0x127,-0x10c,-0x224)]===_0x1dcb67(-_0x451a9b._0x17a1cb,-_0x451a9b._0x802da1,-_0x451a9b._0x2961e4,-0xdc)&&!_0x315bd3?.[_0x1dcb67(-_0x451a9b._0x348e0,-_0x451a9b._0x34729e,-0x7f,-0x6c)])throw new Error(_0x4ec184(-0x30d,-0x1ca,-0x1de,-_0x451a9b._0x247a74)+_0x51f0a8+_0x1dcb67(0x12c,-_0x451a9b._0x59f082,0x9a,_0x451a9b._0x2eb07b));const _0x18e4f6=buildMcpHttpHeaders(_0x3b1ef7),_0x1121cf=_0x3b1ef7[_0x4ec184(-_0x451a9b._0x268b4b,-_0x451a9b._0xf18825,-_0x451a9b._0x4209f8,-0x100)]?.[_0x4ec184(-0xa6,-_0x451a9b._0x10ba6b,-0x10c,-_0x451a9b._0xb87140)]===_0x1dcb67(0x8c,-_0x451a9b._0x3f2192,-0x7f,-0xd5)&&_0x315bd3?.['oauth']?createMcpOAuthProvider({'serverName':_0x51f0a8,'callbackUrl':_0x315bd3[_0x1dcb67(-_0x451a9b._0x4a8e44,-0x110,-0x7f,0x9d)]['callbackUrl'],'storageDir':_0x315bd3[_0x4ec184(-0x2cd,-_0x451a9b._0x6146,-_0x451a9b._0x5472ba,-_0x451a9b._0x2bd44d)][_0x4ec184(-_0x451a9b._0xfd4a7b,-0x51,-_0x451a9b._0x55368b,-_0x451a9b._0x2876a2)],'config':_0x3b1ef7[_0x1dcb67(_0x451a9b._0x277cf0,-_0x451a9b._0x451ce8,-0x57,_0x451a9b._0x3d606c)],'onRedirect':_0x2f3075=>_0x315bd3[_0x1dcb67(-0x55,0x75,-0x7f,0xad)]?.[_0x4ec184(0x58,0x15,0x41,0xd3)](_0x51f0a8,_0x2f3075)}):void 0x0,_0x3ae707=new StreamableHTTPClientTransport(new URL(_0x3b1ef7['url']),{'authProvider':_0x1121cf,'requestInit':_0x18e4f6?{'headers':_0x18e4f6}:void 0x0});await _0x4a7c7f[_0x1dcb67(-_0x451a9b._0x321964,-_0x451a9b._0xf03d86,-0x8d,-0x18e)](_0x3ae707);}else{if(!_0x3b1ef7[_0x1dcb67(_0x451a9b._0x55978b,-0x3a,0xb0,_0x451a9b._0x34e744)])throw new Error(_0x1dcb67(-0x18,-_0x451a9b._0x31ed63,-_0x451a9b._0xe65a2b,-0x171)+_0x51f0a8+_0x1dcb67(_0x451a9b._0x5d396e,_0x451a9b._0x143666,_0x451a9b._0x675e73,0x28d));const _0xf1e163=new StdioClientTransport({'command':_0x3b1ef7[_0x4ec184(-0x7b,0x7,-0x9c,_0x451a9b._0x1a0b66)],'args':_0x3b1ef7[_0x4ec184(-_0x451a9b._0x1b8c41,-0xc3,-_0x451a9b._0x2d859c,-_0x451a9b._0x37b879)]??[],'env':_0x3b1ef7[_0x1dcb67(-_0x451a9b._0x236da0,0x9f,_0x451a9b._0x32990d,-_0x451a9b._0x25ba76)]});await _0x4a7c7f[_0x1dcb67(-0x97,-_0x451a9b._0x3b26f2,-_0x451a9b._0x260782,-_0x451a9b._0x24eb21)](_0xf1e163);}return{async 'listTools'(){const _0x31fe85={_0x270a46:0x68a,_0x198831:0x1bc};function _0x47828c(_0x56d1a1,_0x454f19,_0x264a6b,_0x53ef97){return _0x4ec184(_0x56d1a1-0x1d9,_0x53ef97,_0x454f19-_0x31fe85._0x270a46,_0x53ef97-_0x31fe85._0x198831);}return await _0x4a7c7f[_0x47828c(0x7ac,_0x55e4ca._0x1c6d66,0x5c4,_0x55e4ca._0x34f839)]();},async 'callTool'(_0x1a5077){const _0x578485={_0x5b00b9:0x1ad,_0xc4b881:0x46f};function _0x4b3593(_0x51fb2d,_0x5e926a,_0x416c06,_0x5a51e5){return _0x1dcb67(_0x51fb2d-_0x578485._0x5b00b9,_0x5e926a-0x18c,_0x51fb2d-_0x578485._0xc4b881,_0x416c06);}function _0x44de63(_0x309656,_0xca90a2,_0x33c28e,_0x214be1){return _0x1dcb67(_0x309656-_0x5f266b._0x229947,_0xca90a2-_0x5f266b._0x2d97cc,_0x33c28e-0x1d6,_0x309656);}return await _0x4a7c7f[_0x4b3593(0x52c,0x5ba,0x483,0x586)]({'method':_0x44de63(_0x90fe49._0x512a07,0x409,0x32d,_0x90fe49._0x381490),'params':_0x1a5077},CallToolResultSchema);},async 'close'(){function _0x15e93c(_0x5a0365,_0x2db814,_0x4e7922,_0x55bbbb){return _0x4ec184(_0x5a0365-0x1e3,_0x2db814,_0x4e7922-0x39b,_0x55bbbb-0x1b5);}await _0x4a7c7f[_0x15e93c(0x388,0x30d,_0x39b029._0x390ade,0x3c7)]();}};}async function createMcpToolsFromServers(_0x1bb532){const _0x15a626={_0x446c1e:0x66,_0x569df4:0x62,_0x35320b:0x1f,_0x1c32a9:0x84,_0x2e82d9:0x262,_0x47fb61:0x249,_0x53f726:0x2d4,_0x42e5bf:0x384,_0xa61fd0:0x2e7,_0x2891f3:0x255,_0x1f2807:0x3d5,_0x559edf:0x379,_0x3cb65b:0x367,_0x1d73e3:0x329,_0x31aff0:0x3ae,_0x42eaf8:0x102,_0x440ca8:0x299,_0xf1401f:0x2e9},_0x50a6ec={_0x41c4c8:0x726,_0x2fae05:0x60a,_0xd06230:0x5fe},_0x330558=_0x1bb532[_0x4e5a1f(_0x15a626._0x446c1e,_0x15a626._0x569df4,_0x15a626._0x35320b,_0x15a626._0x1c32a9)]??connectMcpServer,_0xa94939=[],_0x10161f={};function _0x28028c(_0x213f8f,_0x43e501,_0x593509,_0x305aed){return _0x173565(_0x213f8f-0x9b,_0x43e501-0xd2,_0x305aed,_0x43e501-0x150);}const _0x1c9c55=[];for(const [_0x4e24bf,_0x47265f]of Object[_0x28028c(0x287,0x359,0x38b,_0x15a626._0x2e82d9)](_0x1bb532[_0x28028c(_0x15a626._0x47fb61,0x27f,0x2d8,0x320)]??{})){if(_0x47265f[_0x28028c(_0x15a626._0x53f726,0x275,0x3a4,_0x15a626._0x42e5bf)]===![]){_0x10161f[_0x4e24bf]={'status':'disabled'};continue;}try{const _0x509913=await _0x330558(_0x4e24bf,_0x47265f,_0x1bb532[_0x28028c(_0x15a626._0xa61fd0,_0x15a626._0x2891f3,0x183,0x30a)]);_0xa94939['push'](_0x509913);const _0x416f41=await _0x509913['listTools']();let _0x4f4483=0x0;for(const _0x391861 of _0x416f41['tools']){const _0x29cd1a=_0x1bb532[_0x28028c(_0x15a626._0x1f2807,_0x15a626._0x559edf,_0x15a626._0x3cb65b,_0x15a626._0x1d73e3)]?.[_0x4e24bf]?.[_0x391861['name']];if(_0x29cd1a===![])continue;_0x4f4483+=0x1,_0x1c9c55[_0x28028c(0x30f,0x294,0x359,_0x15a626._0x31aff0)](createMcpTool({'serverName':resolvePrefix(_0x4e24bf,_0x47265f),'tool':_0x391861,'client':_0x509913}));}_0x10161f[_0x4e24bf]={'status':_0x4e5a1f(_0x15a626._0x42eaf8,0x21,0x1e5,0x122),'toolCount':_0x4f4483};}catch(_0x13e29a){_0x10161f[_0x4e24bf]=isUnauthorizedError(_0x13e29a)?{'status':_0x28028c(0x368,_0x15a626._0x440ca8,0x3ab,_0x15a626._0xf1401f),'message':getErrorMessage(_0x13e29a)}:{'status':_0x4e5a1f(0x114,0x187,0x2a,0x1f4),'message':getErrorMessage(_0x13e29a)};}}function _0x4e5a1f(_0x355e24,_0x389594,_0xd4f53f,_0x41dd9e){return _0x173565(_0x355e24-0x120,_0x389594-0x7a,_0x41dd9e,_0x355e24-0x73);}return{'tools':_0x1c9c55,'servers':_0x10161f,async 'close'(){const _0x2a00c6={_0x43e247:0x41e,_0x12f077:0x9,_0x3e39bb:0x1b3},_0x2f9643={_0x4222d0:0x47f};function _0x521fa8(_0x27cf90,_0x5e2802,_0x511c50,_0x28d878){return _0x28028c(_0x27cf90-0x114,_0x511c50-_0x2f9643._0x4222d0,_0x511c50-0x1be,_0x27cf90);}function _0x417640(_0x142f00,_0xd9c431,_0x39e551,_0x5dcda1){return _0x4e5a1f(_0xd9c431-_0x2a00c6._0x43e247,_0xd9c431-_0x2a00c6._0x12f077,_0x39e551-_0x2a00c6._0x3e39bb,_0x39e551);}await Promise[_0x521fa8(_0x50a6ec._0x41c4c8,0x52a,_0x50a6ec._0x2fae05,_0x50a6ec._0xd06230)](_0xa94939['map'](_0x162b39=>_0x162b39[_0x417640(0x6fe,0x649,0x66b,0x6fd)]()));}};}function getCommand(_0x12723d){const _0x8ef413={_0x3e6521:0x107,_0x83518c:0x3b7,_0x2b7919:0x66,_0x31c96a:0x6b},_0x2a5f68={_0x404a6d:0x12b},_0x2f9c1e={_0x24156a:0x757,_0x193f5f:0x1d5};function _0x4df951(_0x455849,_0x3a6a7d,_0x74eeac,_0x3ab8dd){return _0x255f51(_0x455849- -_0x2f9c1e._0x24156a,_0x3a6a7d-0x1b8,_0x3a6a7d,_0x3ab8dd-_0x2f9c1e._0x193f5f);}function _0x227d85(_0x298fb4,_0x266f3e,_0x3780d9,_0x3fa3eb){return _0x255f51(_0x298fb4- -0x26f,_0x266f3e-0x5f,_0x266f3e,_0x3fa3eb-_0x2a5f68._0x404a6d);}if(_0x12723d&&typeof _0x12723d===_0x4df951(-0xfa,-0x149,-0x19e,-_0x8ef413._0x3e6521)&&!Array['isArray'](_0x12723d)&&typeof _0x12723d[_0x227d85(0x42d,0x420,0x47a,_0x8ef413._0x83518c)]==='string')return _0x12723d[_0x4df951(-0xbb,-0x1d0,_0x8ef413._0x2b7919,_0x8ef413._0x31c96a)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x255f51(0x59b,0x4f6,0x54f,0x5ae),_0x255f51(0x57b,0x4e8,0x4f7,0x540),_0x255f51(0x74a,0x7eb,0x785,0x753),_0x255f51(0x5ad,0x525,0x691,0x6bc),_0x173565(0xb1,0x12e,0x1e6,0x123),'src/formats/message-format.ts',_0x173565(-0xdb,0xec,0x23,0x2a),_0x173565(0x2b6,0x251,0x293,0x1d9),_0x173565(0x1fb,0x246,0x1ba,0x138),_0x255f51(0x720,0x6b8,0x6d8,0x80d),'src/formats/provider-adapters.ts',_0x255f51(0x60f,0x6aa,0x73f,0x680),'src/shared/types.ts','src/agent/agent.test.ts',_0x173565(0xef,0xf5,-0x10d,0x0),_0x173565(0x75,-0x92,0x2e,0x21),_0x255f51(0x5f1,0x55b,0x5d8,0x620)][_0x255f51(0x5f0,0x527,0x568,0x540)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x255f51(0x721,0x668,0x79e,0x7fa),'description':_0x173565(-0xa8,0x14,0x4b,0x80),'input_schema':{'type':_0x173565(-0x13,0x15f,0x2c,0xf1),'properties':{'command':{'type':_0x255f51(0x6bf,0x6d2,0x640,0x651)}},'required':[_0x173565(0x28,0x39,0x18c,0x130)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x40dcad){return{'output':_0x40dcad,'structured':{'value':_0x40dcad}};}function createUnknownToolResult(_0x9cd58f){const _0x269c9a={_0x442875:0x1ba},_0x31fd8e={_0x44fdac:0x8a,_0x590e3f:0xe2};function _0x1f80d3(_0x29f290,_0x23140a,_0x283c07,_0x2a88dc){return _0x173565(_0x29f290-_0x31fd8e._0x44fdac,_0x23140a-0x101,_0x2a88dc,_0x23140a- -_0x31fd8e._0x590e3f);}return{'callId':_0x9cd58f['id'],'toolName':_0x9cd58f['name'],'status':'error','output':_0x1f80d3(-0x4c,-0x8e,-_0x269c9a._0x442875,-0xd9)+_0x9cd58f['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x3f7122,_0x1264f1){const _0x4fd6ec={_0x694648:0x30c,_0x55c985:0x193},_0x1553b5={_0x56c7cf:0x128};function _0x34eca8(_0x41b343,_0x4ae215,_0x763518,_0x43c96a){return _0x173565(_0x41b343-_0x1553b5._0x56c7cf,_0x4ae215-0x1d8,_0x41b343,_0x763518- -0x159);}function _0x1bf958(_0x1e4df9,_0x7e4e4c,_0x5be588,_0x3dbf2a){return _0x173565(_0x1e4df9-0x130,_0x7e4e4c-0x46,_0x5be588,_0x1e4df9-0xd0);}return{'callId':_0x3f7122['id'],'toolName':_0x3f7122[_0x1bf958(0x276,_0x4fd6ec._0x694648,0x1e4,_0x4fd6ec._0x55c985)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x3f7122[_0x34eca8(-0x23f,-0xf1,-0x164,-0x8d)]),'exitCode':0x0},'chunks':[_0x1264f1],'meta':createMeta()};}function createMockToolRuntime(){const _0x4987cf={_0x4bc775:0x163,_0x4d609b:0x263,_0x2df92e:0x23f,_0x219010:0x2f,_0x2d0236:0x58,_0x2bb21d:0x133},_0x20a9fa={_0x41a1f9:0x50c,_0x3d1dc3:0x492,_0x1dcc0c:0x4f1,_0x3a86c2:0x3e1,_0x3b6115:0x5f2},_0x1d6aaf=async(_0x9cd0e7,_0x28b6a1)=>{function _0x2212c3(_0x444ead,_0x2050b0,_0x1b0d88,_0x1069c9){return _0x4100(_0x1069c9-0x153,_0x444ead);}function _0x5a779a(_0xdf1289,_0x1501c8,_0x53f3fc,_0x4a1322){return _0x4100(_0x4a1322-0x3a2,_0x1501c8);}if(_0x9cd0e7[_0x2212c3(_0x20a9fa._0x41a1f9,0x3c3,_0x20a9fa._0x3d1dc3,_0x20a9fa._0x1dcc0c)]!==_0x2212c3(_0x20a9fa._0x3a86c2,_0x20a9fa._0x3b6115,0x5ed,0x500))return createUnknownToolResult(_0x9cd0e7);const _0x4ef84a=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x9cd0e7,_0x4ef84a);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xf87abe,_0x43e4f2){const _0x535563={_0x24987e:0xd0};function _0x1c6890(_0x398c1e,_0x1cae4a,_0x2a72fb,_0x10ff8d){return _0x4100(_0x1cae4a- -0x292,_0x398c1e);}function _0x4740b0(_0xdba1bd,_0x48133a,_0x58540b,_0x426af6){return _0x4100(_0xdba1bd- -_0x535563._0x24987e,_0x58540b);}return await Promise[_0x4740b0(_0x4987cf._0x4bc775,_0x4987cf._0x4d609b,_0x4987cf._0x2df92e,0x52)](_0xf87abe[_0x1c6890(-_0x4987cf._0x219010,-_0x4987cf._0x2d0236,-_0x4987cf._0x2bb21d,-0xaf)](async _0x54398a=>{return await _0x1d6aaf(_0x54398a,_0x43e4f2);}));},async 'execute'(_0x31ef74,_0x301391){return await _0x1d6aaf(_0x31ef74,_0x301391);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x1283ab={_0x299fbb:0x131,_0x294458:0x1c8,_0x305da9:0x175};delegatedRunCounter+=0x1;function _0x476119(_0x625c37,_0x18899f,_0x4d6242,_0x672790){return _0x173565(_0x625c37-0x1c3,_0x18899f-0x66,_0x18899f,_0x4d6242-0x89);}return _0x476119(_0x1283ab._0x299fbb,_0x1283ab._0x294458,_0x1283ab._0x305da9,0xbf)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0xa03dad,_0x4084a6){return typeof _0xa03dad==='function'?await _0xa03dad(_0x4084a6):_0xa03dad;}function getDelegatedAgentDefinition(_0xf684cc,_0xf7de){return _0xf684cc['agents']?.[_0xf7de];}function createRunSummary(_0x160928){const _0x5c8adb={_0x4ca539:0x37c,_0x3846cd:0x3a7,_0x168d14:0x2e9,_0x2a51db:0x35a,_0x52a4f7:0x401,_0xfc49f:0x391,_0x1df1e4:0x36c,_0x3c200b:0x2ee,_0x597cba:0x1fc,_0x2a6a48:0x238,_0x23aa07:0x1f8,_0x557ced:0x18a,_0x3e7202:0x26f,_0x28d238:0x2fe,_0x9f958f:0x352,_0x5ed6f1:0x37c,_0x394189:0x255,_0x1fca81:0x345,_0x36214a:0x22e},_0x256b9a={_0x5e86a4:0x23},_0x3cf154={_0x128ea9:0x139};function _0x280fc6(_0x8f50ae,_0x57d0d6,_0x32b236,_0x379da2){return _0x255f51(_0x379da2- -0x38e,_0x57d0d6-_0x3cf154._0x128ea9,_0x32b236,_0x379da2-0x1e);}function _0x330235(_0x3244d7,_0x3e9a29,_0x2c1f16,_0xc729e0){return _0x255f51(_0x2c1f16- -0x317,_0x3e9a29-_0x256b9a._0x5e86a4,_0xc729e0,_0xc729e0-0x60);}return{'runId':_0x160928[_0x280fc6(0x1d9,0x333,0x161,0x250)],'agentId':_0x160928['agentId'],'sessionId':_0x160928[_0x280fc6(_0x5c8adb._0x4ca539,_0x5c8adb._0x3846cd,_0x5c8adb._0x168d14,0x2b3)],'status':_0x160928['status'],'parentSessionId':_0x160928[_0x330235(_0x5c8adb._0x2a51db,0x3df,0x3ac,_0x5c8adb._0x52a4f7)],..._0x160928[_0x330235(0x26a,_0x5c8adb._0xfc49f,_0x5c8adb._0x1df1e4,_0x5c8adb._0x3c200b)]!==void 0x0?{'originToolCallId':_0x160928['originToolCallId']}:{},..._0x160928[_0x280fc6(_0x5c8adb._0x597cba,_0x5c8adb._0x2a6a48,0x252,_0x5c8adb._0x23aa07)]!==void 0x0?{'errorMessage':_0x160928[_0x330235(_0x5c8adb._0x557ced,0x14f,_0x5c8adb._0x3e7202,0x175)]}:{},..._0x160928[_0x330235(0x474,_0x5c8adb._0x28d238,_0x5c8adb._0x9f958f,_0x5c8adb._0x5ed6f1)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0x160928[_0x280fc6(_0x5c8adb._0x394189,_0x5c8adb._0x1fca81,_0x5c8adb._0x36214a,0x2db)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x343174,_0xb91f85){const _0x3849d0={_0x3271e2:0x13b,_0x7cb7a6:0x142,_0x835465:0x91,_0x2432ab:0x199,_0x5a0039:0x214,_0x2903b2:0x321,_0x1de0ff:0x209,_0x1fcc39:0x201,_0x2ab2e5:0xfe},_0x5e2201={_0x2b715d:0x127,_0x1a46b1:0xc1},_0x45d7a7={_0x1dcebb:0x1bf,_0x369991:0xe7},_0x2e7ab4=createRunSummary(_0x343174),_0x49c96b=_0x2e7ab4[_0x3e8cf0(0x235,_0x3849d0._0x3271e2,_0x3849d0._0x7cb7a6,_0x3849d0._0x835465)];function _0xda2cb4(_0x42e887,_0x4e7246,_0x183244,_0x106924){return _0x255f51(_0x106924- -0xfe,_0x4e7246-_0x45d7a7._0x1dcebb,_0x183244,_0x106924-_0x45d7a7._0x369991);}function _0x3e8cf0(_0x3e555a,_0x1ec71e,_0x53e850,_0x51b8e1){return _0x173565(_0x3e555a-0x1a4,_0x1ec71e-_0x5e2201._0x2b715d,_0x53e850,_0x1ec71e-_0x5e2201._0x1a46b1);}return createToolOutput(typeof _0x49c96b===_0x3e8cf0(_0x3849d0._0x2432ab,_0x3849d0._0x5a0039,0x2b7,_0x3849d0._0x2903b2)&&_0x49c96b[_0x3e8cf0(0x2d9,_0x3849d0._0x1de0ff,_0x3849d0._0x1fcc39,_0x3849d0._0x2ab2e5)]>0x0?_0x49c96b:_0xb91f85,_0x2e7ab4);}function getRunTerminalErrorMessage(_0x14cc79){const _0x231c01={_0x3a9914:0x67b,_0x1ff2a4:0x744,_0x5e1fbe:0x494,_0x1363f5:0x44b,_0x5b69f7:0x627,_0x575546:0x577,_0x4cda98:0x4ce,_0x36216c:0x5ac,_0x272f93:0x4dc,_0x4febc7:0x3d4,_0x3a5f74:0x4e1,_0x124e45:0x51a,_0x471e0f:0x675,_0x55e63f:0x5f4,_0x286a35:0x599},_0x480101={_0x58b55b:0x131,_0x1772ba:0x3d},_0x15a0b2={_0x3dc367:0xe3,_0xde32be:0x4fc};function _0x1ce449(_0x5b79e7,_0x542d4d,_0x454793,_0xdbfe7d){return _0x173565(_0x5b79e7-_0x15a0b2._0x3dc367,_0x542d4d-0xdf,_0x542d4d,_0x454793-_0x15a0b2._0xde32be);}const _0x153936=_0x14cc79?.[_0x44339f(0x74c,_0x231c01._0x3a9914,_0x231c01._0x1ff2a4,0x62b)][_0x44339f(0x44f,0x3f8,0x4a0,_0x231c01._0x5e1fbe)]['at'](-0x1);if(_0x153936?.[_0x44339f(_0x231c01._0x1363f5,_0x231c01._0x5b69f7,_0x231c01._0x575546,0x575)]===_0x44339f(0x58c,_0x231c01._0x4cda98,_0x231c01._0x36216c,_0x231c01._0x272f93)&&_0x153936['output'][_0x1ce449(0x571,_0x231c01._0x4febc7,_0x231c01._0x3a5f74,_0x231c01._0x124e45)]()[_0x1ce449(0x76c,0x6c8,0x644,_0x231c01._0x471e0f)]>0x0)return _0x153936[_0x44339f(0x496,0x484,_0x231c01._0x55e63f,_0x231c01._0x286a35)];function _0x44339f(_0x477352,_0x38512e,_0x3cb644,_0x5cb313){return _0x255f51(_0x5cb313- -_0x480101._0x58b55b,_0x38512e-_0x480101._0x1772ba,_0x3cb644,_0x5cb313-0x1a6);}return void 0x0;}function formatAbortedRunMessage(_0x511ac5,_0x143f85){const _0x4fea2b={_0x52c607:0x7d9,_0x4a9cb2:0x7ad,_0x421e65:0x832,_0x370d8b:0x812,_0xec9b03:0x55d,_0x3c2b87:0x50e,_0x2e0403:0x56e,_0xed7b96:0x487,_0x980436:0x38c,_0x1c54fa:0x458,_0x5c9de7:0x1fd,_0x4d4259:0x2a3,_0x1eb6f5:0x1e0},_0x50e185={_0x4cd04d:0x16b,_0x269f17:0xa6},_0x578b29={_0x543fad:0x328,_0x154bbf:0xc3};function _0x585716(_0x45a0a5,_0x1acdb6,_0x421c14,_0x29c58d){return _0x255f51(_0x421c14- -_0x578b29._0x543fad,_0x1acdb6-0x102,_0x1acdb6,_0x29c58d-_0x578b29._0x154bbf);}const _0x2fd2da=_0x5bffe9(_0x4fea2b._0x52c607,0x835,_0x4fea2b._0x4a9cb2,_0x4fea2b._0x421e65)+_0x511ac5+_0x5bffe9(_0x4fea2b._0x370d8b,0x84a,0x72e,0x7e6);function _0x5bffe9(_0x2ed9d0,_0x47555f,_0x38cc4e,_0x578504){return _0x255f51(_0x38cc4e-0x1d,_0x47555f-_0x50e185._0x4cd04d,_0x47555f,_0x578504-_0x50e185._0x269f17);}if(!_0x143f85||_0x143f85[_0x5bffe9(_0x4fea2b._0xec9b03,_0x4fea2b._0x3c2b87,_0x4fea2b._0x2e0403,_0x4fea2b._0xed7b96)]()[_0x585716(0x349,0x327,_0x4fea2b._0x980436,_0x4fea2b._0x1c54fa)]===0x0||_0x143f85===_0x2fd2da)return _0x2fd2da;return _0x2fd2da+_0x585716(_0x4fea2b._0x5c9de7,0x266,_0x4fea2b._0x4d4259,_0x4fea2b._0x1eb6f5)+_0x143f85;}function createAssignTaskTool(_0x3f04a8){const _0x16d83b={_0xb3e32e:0x17b,_0x387424:0x1fd,_0x595117:0xf9,_0x28805b:0x19c,_0x45ee32:0x24f,_0x30988d:0x12a,_0x3d75df:0x2b1,_0x4ba350:0x484,_0x3179a6:0x480,_0x5a02c9:0x395,_0x3e8a52:0x491,_0x40e060:0x2ba},_0x5634f1={_0x4657be:0x137,_0x53ff3a:0x64,_0x11eebd:0x75,_0x42f0f5:0x199,_0x5369f7:0x90,_0x1d4c55:0x173,_0x221e2f:0x17,_0x2e68dc:0x122,_0x224c1b:0x1a6,_0x19e1a8:0xcc,_0x3ca041:0x24,_0x128385:0x9e,_0x2a9ac8:0x170,_0x2a6380:0x27,_0x50b7b6:0x49,_0x1e525a:0x6f,_0xa7c2cd:0x166,_0x45d386:0x162,_0xdc584:0x83,_0x48974c:0x171,_0x4bcacf:0x17f,_0x137ade:0xf3,_0x1a5639:0xa6,_0x3ace90:0x5a,_0xd31a2b:0x14,_0x919bba:0x94,_0x2ea5a9:0xfe,_0x24d676:0x49,_0x43eed9:0x5e,_0x5749e0:0x1a8,_0x35ee2e:0x270,_0x47b10d:0x253,_0x5ce133:0x145,_0x4c51ae:0x1fe,_0x1544ac:0xda,_0x46e946:0x35,_0xd10ec:0xee,_0x1b1d03:0x9c,_0x584a8b:0x271,_0x10dc62:0x1b0,_0x37a5d0:0x82,_0x3a714b:0x22f,_0x389cd9:0x28d,_0x1f69cf:0x161,_0x1b5cb5:0x9d,_0x24d524:0x220,_0x4c212d:0x77,_0x1a3f42:0xd9,_0xc4b71c:0x69,_0x251136:0x57,_0x4e43ee:0x113,_0x28cf25:0x9d,_0x6f10dc:0x81,_0x352b7b:0x19e,_0x3b4c90:0xe0,_0x165abf:0xbb,_0x5601b8:0x1dc,_0x1a0933:0x115,_0x204933:0x1b2},_0x3e2a97={_0x3ebd4f:0x4d8,_0x107118:0x477,_0x15063e:0x43a,_0xa9e4b1:0x4bd,_0x5a678c:0x42,_0x40d19f:0x1e,_0x1ea806:0x82},_0x251796={_0x7e5192:0xcd,_0x44c250:0x15e};function _0x20e0b0(_0x1e8670,_0x5631f1,_0x3f6a6a,_0x27b513){return _0x255f51(_0x1e8670- -0x1ee,_0x5631f1-0x3d,_0x27b513,_0x27b513-0x25);}function _0x2e4819(_0x1877ac,_0x5acfe3,_0x3283a8,_0x3bb9db){return _0x173565(_0x1877ac-_0x251796._0x7e5192,_0x5acfe3-0x88,_0x3bb9db,_0x3283a8-_0x251796._0x44c250);}return defineTool({'name':_0x2e4819(0x163,_0x16d83b._0xb3e32e,_0x16d83b._0x387424,_0x16d83b._0x595117),'description':_0x20e0b0(0x44d,0x400,0x483,0x563),'inputSchema':{'type':_0x2e4819(_0x16d83b._0x28805b,0x2d5,_0x16d83b._0x45ee32,_0x16d83b._0x30988d),'properties':{'agentId':{'type':_0x2e4819(0x294,0x204,_0x16d83b._0x3d75df,0x229)},'task':{'type':_0x20e0b0(0x4d1,0x5e8,_0x16d83b._0x4ba350,_0x16d83b._0x3179a6)}},'required':[_0x20e0b0(_0x16d83b._0x5a02c9,0x3bc,_0x16d83b._0x3e8a52,0x3e2),_0x2e4819(_0x16d83b._0x40e060,0x409,0x319,0x337)]},async *'execute'(_0x7d2e2f,_0x34bbad){const _0x154fb8={_0x3238:0x404},_0x6b60d5={_0x4324e6:0xee,_0x1860d4:0x19b},_0x10df9d=createDelegatedRunId(),_0x35f8a4={'agentId':_0x7d2e2f[_0x1ed297(0x8a,-0x49,-_0x5634f1._0x4657be,-0x49)],'parentSessionId':_0x34bbad[_0x1ed297(-_0x5634f1._0x53ff3a,0xa8,-0x92,_0x5634f1._0x11eebd)],'runId':_0x10df9d,..._0x34bbad[_0x1ed297(0x1f5,0x1eb,0x262,_0x5634f1._0x42f0f5)]!==void 0x0?{'toolCallId':_0x34bbad[_0x93d4a9(0x218,0xef,_0x5634f1._0x5369f7,_0x5634f1._0x1d4c55)]}:{}};function _0x1ed297(_0x33792f,_0x46d9d8,_0x9bd62,_0x43d37a){return _0x20e0b0(_0x43d37a- -0x3de,_0x46d9d8-_0x6b60d5._0x4324e6,_0x9bd62-_0x6b60d5._0x1860d4,_0x46d9d8);}const _0x22bd4a=getDelegatedAgentDefinition(_0x3f04a8,_0x7d2e2f[_0x1ed297(-_0x5634f1._0x221e2f,-_0x5634f1._0x2e68dc,-0xff,-0x49)]);if(!_0x22bd4a)throw new ToolExecutionError(_0x93d4a9(0x55,0x190,_0x5634f1._0x224c1b,_0x5634f1._0x19e1a8)+_0x7d2e2f[_0x93d4a9(_0x5634f1._0x3ca041,_0x5634f1._0x128385,-_0x5634f1._0x2a9ac8,-0x6f)],{'agentId':_0x7d2e2f[_0x1ed297(-0x26,0x27,_0x5634f1._0x2a6380,-_0x5634f1._0x50b7b6)]});function _0x93d4a9(_0x37cf89,_0x4d4e5b,_0x1dc982,_0x45c1c5){return _0x20e0b0(_0x45c1c5- -_0x154fb8._0x3238,_0x4d4e5b-0x1e8,_0x1dc982-0x103,_0x1dc982);}const _0x466c6f=new Agent(await resolveDelegatedAgentOptions(_0x22bd4a,_0x35f8a4));let _0x4972f1={'runId':_0x10df9d,'agentId':_0x7d2e2f[_0x93d4a9(0xb7,-0x106,-0x44,-_0x5634f1._0x1e525a)],'sessionId':_0x466c6f[_0x1ed297(_0x5634f1._0xa7c2cd,_0x5634f1._0x45d386,-0x14,0x75)],'status':'running','parentSessionId':_0x34bbad['sessionId'],..._0x34bbad[_0x1ed297(_0x5634f1._0xdc584,0x77,0x203,0x199)]!==void 0x0?{'originToolCallId':_0x34bbad[_0x1ed297(0x6e,_0x5634f1._0x48974c,_0x5634f1._0x4bcacf,0x199)]}:{}};const _0x1edba3=new AbortController(),_0x56fd99=addAbortListener(_0x34bbad['signal'],()=>{const _0x4cfe1d={_0x15f979:0x62},_0x3c711b={_0x5c6aa5:0xa9,_0x3fabed:0xb7};function _0x3a02c5(_0x514d1d,_0x207b30,_0x182a99,_0x44f072){return _0x1ed297(_0x514d1d-_0x3c711b._0x5c6aa5,_0x207b30,_0x182a99-_0x3c711b._0x3fabed,_0x514d1d-0x4dc);}function _0x40dbeb(_0x1fe464,_0x5f4b80,_0x208467,_0x142b95){return _0x1ed297(_0x1fe464-_0x4cfe1d._0x15f979,_0x208467,_0x208467-0x1aa,_0x1fe464- -0x16e);}_0x1edba3[_0x3a02c5(_0x3e2a97._0x3ebd4f,_0x3e2a97._0x107118,_0x3e2a97._0x15063e,_0x3e2a97._0xa9e4b1)](_0x34bbad[_0x40dbeb(_0x3e2a97._0x5a678c,-_0x3e2a97._0x40d19f,-0xe9,-_0x3e2a97._0x1ea806)]?.['reason']);});yield createToolOutput(_0x93d4a9(0x141,_0x5634f1._0x137ade,0x147,_0x5634f1._0x1a5639)+_0x4972f1[_0x93d4a9(-0x92,-_0x5634f1._0x3ace90,-0xa1,-_0x5634f1._0xd31a2b)]+'.',{'runId':_0x4972f1['runId'],'agentId':_0x4972f1[_0x1ed297(_0x5634f1._0x919bba,-0xf6,-_0x5634f1._0x2ea5a9,-_0x5634f1._0x24d676)],'sessionId':_0x4972f1[_0x1ed297(0x99,-_0x5634f1._0x43eed9,0x79,0x75)],'status':_0x4972f1[_0x1ed297(_0x5634f1._0x5749e0,0x114,0x10b,0xda)]});try{const _0x258c23=await _0x466c6f[_0x1ed297(0x68,_0x5634f1._0x35ee2e,0x24d,0x18e)](_0x7d2e2f['task'],{'signal':_0x1edba3[_0x1ed297(_0x5634f1._0x47b10d,_0x5634f1._0x5ce133,0x210,0x1b0)]});_0x4972f1={..._0x4972f1,'status':_0x258c23[_0x1ed297(_0x5634f1._0x4c51ae,0x1ad,0x6e,_0x5634f1._0x1544ac)],'result':_0x258c23};if(_0x258c23['status']!==_0x1ed297(-_0x5634f1._0x46e946,0x8b,0x1b,0x10)){const _0x52d60a=getRunTerminalErrorMessage(_0x258c23),_0x2025c3=formatAbortedRunMessage(_0x4972f1['runId'],_0x52d60a);throw new ToolExecutionError(_0x2025c3,{...createRunSummary(_0x4972f1),'aborted':!![],'errorMessage':_0x2025c3});}return createRunSummaryOutput(_0x4972f1,'Agent\x20run\x20'+_0x4972f1['runId']+_0x93d4a9(-0x84,_0x5634f1._0xd10ec,-0x14,_0x5634f1._0x1b1d03));}catch(_0xef592c){if(_0xef592c instanceof ToolExecutionError)throw _0xef592c;if(isAbortError(_0xef592c)||_0x1edba3[_0x1ed297(0x126,0x1e6,_0x5634f1._0x584a8b,_0x5634f1._0x10dc62)][_0x93d4a9(_0x5634f1._0x37a5d0,_0x5634f1._0x3a714b,0xef,0x17d)]||_0x34bbad[_0x1ed297(_0x5634f1._0x389cd9,0x9c,0x12e,_0x5634f1._0x10dc62)][_0x1ed297(_0x5634f1._0x1f69cf,_0x5634f1._0x1b5cb5,_0x5634f1._0x24d524,0x1a3)]){const _0x111904=getRunTerminalErrorMessage(_0x4972f1[_0x93d4a9(-0x45,-0x6e,-0xb1,_0x5634f1._0x4c212d)])??(_0xef592c instanceof Error?_0xef592c['message']:String(_0xef592c)),_0x331c4e=formatAbortedRunMessage(_0x4972f1[_0x1ed297(0xd1,_0x5634f1._0x1a3f42,_0x5634f1._0xc4b71c,0x12)],_0x111904);_0x4972f1={..._0x4972f1,'status':'aborted','errorMessage':_0x331c4e};throw new ToolExecutionError(_0x331c4e,{...createRunSummary(_0x4972f1),'aborted':!![],'errorMessage':_0x331c4e});}const _0x1a6554=getRunTerminalErrorMessage(_0x4972f1[_0x1ed297(_0x5634f1._0x251136,_0x5634f1._0x4bcacf,_0x5634f1._0x4e43ee,_0x5634f1._0x28cf25)])??(_0xef592c instanceof Error?_0xef592c[_0x1ed297(0x6c,0xb,_0x5634f1._0x6f10dc,0x133)]:String(_0xef592c))??_0x93d4a9(0xed,0x7c,0x1c9,_0x5634f1._0x352b7b)+_0x4972f1[_0x93d4a9(-_0x5634f1._0x3b4c90,-_0x5634f1._0x165abf,0x77,-0x14)]+_0x93d4a9(0x257,_0x5634f1._0x5601b8,_0x5634f1._0x1a0933,_0x5634f1._0x204933);_0x4972f1={..._0x4972f1,'status':'failed','errorMessage':_0x1a6554};throw new ToolExecutionError(_0x1a6554,{...createRunSummary(_0x4972f1),'errorMessage':_0x1a6554});}finally{_0x56fd99();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3ef55b){return[createAssignTaskTool(_0x3ef55b)];}import*as _0x206810 from'path';function buildDescription2(_0x2169b3){const _0x511fcf={_0x593f18:0x680,_0x16aca4:0x49f,_0x1b8f7b:0x43c,_0x27841f:0x521,_0x2d45a5:0x611,_0x3356e9:0x5dd,_0x200da7:0x4fb,_0x1d1679:0x4d5,_0xa8bb46:0x4b3,_0x3f9647:0x3c1,_0x2953d9:0x45e,_0x3a080b:0x348,_0x560bd0:0x4cd,_0x2684b2:0x4fd},_0x4992ac={_0x2fe342:0x150,_0x208bb0:0xa,_0x188091:0x17};function _0x348d95(_0x183fad,_0x352878,_0x3aac2a,_0x3e3b09){return _0x255f51(_0x3aac2a- -_0x4992ac._0x2fe342,_0x352878-_0x4992ac._0x208bb0,_0x183fad,_0x3e3b09-_0x4992ac._0x188091);}function _0x3d617b(_0x4783cf,_0x3b549f,_0x597718,_0x1f111f){return _0x173565(_0x4783cf-0x15d,_0x3b549f-0x116,_0x4783cf,_0x3b549f-0x449);}if(_0x2169b3[_0x348d95(0x673,_0x511fcf._0x593f18,0x564,0x53a)]===0x0)return _0x348d95(_0x511fcf._0x16aca4,_0x511fcf._0x1b8f7b,0x47e,0x5a0);const _0x457b19=[_0x3d617b(0x62b,0x5e4,0x69b,0x6c9),_0x348d95(0x6b3,_0x511fcf._0x27841f,_0x511fcf._0x2d45a5,_0x511fcf._0x3356e9),_0x348d95(_0x511fcf._0x200da7,0x570,_0x511fcf._0x1d1679,_0x511fcf._0xa8bb46),_0x348d95(0x464,0x519,0x527,0x41b),..._0x2169b3[_0x348d95(_0x511fcf._0x3f9647,0x501,_0x511fcf._0x2953d9,_0x511fcf._0x3a080b)](_0x4b248f=>'-\x20'+_0x4b248f['name']+':\x20'+_0x4b248f['description'])];return _0x457b19[_0x3d617b(0x5ae,_0x511fcf._0x560bd0,_0x511fcf._0x2684b2,0x44f)]('\x0a');}function createLoadSkillTool(_0x25d3d5){const _0x55084e={_0x33cf32:0xdc,_0x3b4895:0x119,_0x2e1556:0x4e,_0x3e2b92:0xbe,_0x2cfb8c:0x68b,_0xc9f94d:0x6a3,_0x5a0b84:0xe8,_0x5982f5:0xe,_0x37fcde:0x9b,_0xb5d8f5:0x10b,_0x15c775:0x196},_0x49be25={_0xfd6b75:0x442,_0x39c2c7:0x502,_0x1ff5c8:0x5b6,_0x54cf97:0x626,_0x520a8c:0x554,_0x4c0a20:0x5b8,_0x269330:0x69d,_0x4fa5ee:0x573,_0x33ce62:0x7be,_0x41a857:0x6e3,_0x4a3377:0x5c9,_0x1ca1c0:0x759,_0x1c31c9:0x595,_0x519dee:0x786,_0x531467:0x6af,_0x550bb7:0x544,_0x4cacc3:0x516,_0x4c54bb:0x498,_0x1c81ee:0x5c3,_0x8b48e6:0x757,_0x458859:0x581,_0x481f84:0x616,_0x4aece4:0x6c4,_0x1ac624:0x535,_0x3a3c58:0x687,_0x5b262e:0x71f,_0x22dcc3:0x74e,_0x2f1738:0x612,_0x48aa86:0x66a,_0x3910d0:0x5df,_0x5b6c9f:0x64d,_0x5745f3:0x6dc,_0x3cb4b8:0x6e0,_0x4e1b65:0x5b6},_0x555dd2={_0x29c278:0x187,_0x2dc32e:0x90},_0x1628c1={_0x5278ed:0x15a,_0x423b52:0x4a},_0x42c97d=new Map(_0x25d3d5['skills'][_0x283910(-_0x55084e._0x33cf32,_0x55084e._0x3b4895,_0x55084e._0x2e1556,_0x55084e._0x3e2b92)](_0x2bf534=>[_0x2bf534[_0x5bdc7e(0x680,0x690,0x70d,0x7a5)],_0x2bf534]));function _0x5bdc7e(_0x4c6e91,_0x3aea98,_0x437d7d,_0x5581cc){return _0x255f51(_0x437d7d- -0x5,_0x3aea98-_0x1628c1._0x5278ed,_0x5581cc,_0x5581cc-_0x1628c1._0x423b52);}const _0x270bdc=buildDescription2(_0x25d3d5[_0x5bdc7e(0x5a2,_0x55084e._0x2cfb8c,_0x55084e._0xc9f94d,0x6e6)]);function _0x283910(_0x136497,_0x1a544b,_0x36a238,_0x5170a0){return _0x255f51(_0x36a238- -0x560,_0x1a544b-_0x555dd2._0x29c278,_0x5170a0,_0x5170a0-_0x555dd2._0x2dc32e);}return defineTool({'name':_0x283910(0x49,-_0x55084e._0x5a0b84,_0x55084e._0x5982f5,-_0x55084e._0x37fcde),'description':_0x270bdc,'inputSchema':{'type':_0x5bdc7e(0x5dd,0x5b5,0x658,0x576),'properties':{'name':{'type':_0x283910(_0x55084e._0xb5d8f5,0xbf,0x15f,0x118)}},'required':[_0x283910(0xc7,0x1d3,0x1b2,_0x55084e._0x15c775)]},async *'execute'(_0x472187){const _0x28296c={_0x229cd6:0x75},_0x54443a=_0x42c97d[_0xb7198b(_0x49be25._0xfd6b75,0x604,_0x49be25._0x39c2c7,0x54c)](_0x472187[_0x156484(0x79c,0x6e3,_0x49be25._0x1ff5c8,_0x49be25._0x54cf97)]);function _0xb7198b(_0xfa6367,_0x3a4045,_0x110841,_0x20d3be){return _0x5bdc7e(_0xfa6367-0x5,_0x3a4045-_0x28296c._0x229cd6,_0x20d3be- -0x5e,_0xfa6367);}if(!_0x54443a){const _0x8cd238=Array[_0xb7198b(0x618,_0x49be25._0x520a8c,_0x49be25._0x4c0a20,0x57a)](_0x42c97d[_0x156484(0x5bb,0x52f,0x53e,0x41b)]())[_0x156484(_0x49be25._0x269330,0x5c1,0x517,_0x49be25._0x4fa5ee)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x472187[_0x156484(_0x49be25._0x33ce62,_0x49be25._0x41a857,_0x49be25._0x4a3377,_0x49be25._0x1ca1c0)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x8cd238,{'name':_0x472187[_0xb7198b(_0x49be25._0x1c31c9,0x6f3,_0x49be25._0x519dee,_0x49be25._0x531467)]});}const _0x4a64c6=await _0x25d3d5[_0xb7198b(_0x49be25._0x550bb7,_0x49be25._0x4cacc3,_0x49be25._0x4c54bb,_0x49be25._0x1c81ee)](_0x54443a),_0x42b26c=_0x54443a[_0xb7198b(0x77a,_0x49be25._0x8b48e6,0x7c0,0x736)]['directory']??_0x206810[_0x156484(0x51a,_0x49be25._0x458859,_0x49be25._0x481f84,0x4c5)](_0x54443a['source'][_0x156484(_0x49be25._0x4aece4,0x5b6,_0x49be25._0x1ac624,0x572)]),_0x4e1eed=['##\x20Skill:\x20'+_0x4a64c6[_0xb7198b(0x63b,_0x49be25._0x3a3c58,_0x49be25._0x5b262e,_0x49be25._0x531467)],'',_0x4a64c6[_0x156484(_0x49be25._0x22dcc3,0x733,0x69e,0x67d)],'',_0x156484(_0x49be25._0x2f1738,0x5e6,0x6ee,_0x49be25._0x48aa86),'Loaded\x20from:\x20'+_0x54443a[_0x156484(0x7d6,0x76a,0x7f7,0x6bf)]['path'],_0xb7198b(_0x49be25._0x3910d0,_0x49be25._0x5b6c9f,0x7c2,_0x49be25._0x5745f3)+_0x42b26c]['join']('\x0a');function _0x156484(_0x41649a,_0x543833,_0x3254eb,_0x2fb78e){return _0x5bdc7e(_0x41649a-0xf8,_0x543833-0x15c,_0x543833- -0x2a,_0x41649a);}return yield createToolOutput(_0x4e1eed,{'id':_0x4a64c6['id'],'name':_0x4a64c6['name'],'path':_0x54443a['source'][_0x156484(_0x49be25._0x3cb4b8,_0x49be25._0x4e1b65,0x664,0x4c0)],'baseDirectory':_0x42b26c}),void 0x0;}});}import{readFile as _0x37d168,stat as _0x43436c}from'fs/promises';import*as _0xf2b270 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto','high',_0x255f51(0x6fb,0x60c,0x646,0x707),'original']),PNG_SIGNATURE=Buffer[_0x255f51(0x5dd,0x4ec,0x5bb,0x4fc)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x278c09,_0x1fa110){const _0x469cfd={_0x315a8e:0x1ac,_0x7f3aff:0x251,_0x280e80:0x284,_0x8dbab8:0x10a,_0x5b0d7b:0x119,_0x571490:0xe6,_0x4d33af:0x2f0,_0x319fce:0x262,_0x4b1e78:0x1b9,_0x2da768:0x2ed,_0x566ff7:0x105,_0x350858:0x94,_0x3ef483:0x8e,_0x55b7f4:0x10e,_0x15a633:0x18d,_0x1fc90a:0x1be,_0x4dd276:0x1db,_0x38236d:0x104,_0x49bcc4:0x10a,_0x31a1e5:0x1ba,_0x59e60b:0xe1,_0x775b65:0x116,_0x4309ee:0x142,_0x25ace1:0xcc,_0x47e8a6:0x174,_0x3e3a72:0x1df,_0x2c2d4c:0x8c,_0x12bda3:0x106,_0x4ce789:0x14e,_0x2e9203:0x218,_0x57aaab:0x27a,_0xee4114:0x153,_0x47b812:0x15e,_0x52acba:0xd6,_0x44afa1:0x234,_0x45526a:0x1b5,_0x6ae811:0x27b,_0x21a15f:0xf8,_0x354d0b:0x352,_0x442f21:0x296,_0x567fee:0x23f,_0x4ff644:0x294},_0x64d243={_0x29804d:0xf2,_0x175e96:0x1ae},_0x2daf1b={_0x587f96:0x146};function _0x5ae289(_0x59a078,_0x114f52,_0x43cf2,_0x3a40a3){return _0x173565(_0x59a078-0x19f,_0x114f52-0x3,_0x59a078,_0x114f52-_0x2daf1b._0x587f96);}if(_0x278c09['subarray'](0x0,0x8)[_0x5ae289(0x14b,0x1a3,0x1ed,0x21a)](PNG_SIGNATURE))return _0x5ae289(0x226,_0x469cfd._0x315a8e,_0x469cfd._0x7f3aff,_0x469cfd._0x280e80);function _0x409eb3(_0x227363,_0x561b49,_0x1b06b5,_0x1ff5fb){return _0x173565(_0x227363-0x51,_0x561b49-_0x64d243._0x29804d,_0x561b49,_0x227363- -_0x64d243._0x175e96);}if(_0x278c09[0x0]===0xff&&_0x278c09[0x1]===0xd8&&_0x278c09[0x2]===0xff)return'image/jpeg';const _0x2bc348=_0x278c09[_0x409eb3(-_0x469cfd._0x8dbab8,-0x10,-0x164,-0x35)](0x0,0x6)[_0x409eb3(-0x167,-0x166,-0x244,-0x1d3)](_0x409eb3(-_0x469cfd._0x5b0d7b,-0x20d,-0x215,-_0x469cfd._0x571490));if(_0x2bc348==='GIF87a'||_0x2bc348===_0x5ae289(_0x469cfd._0x4d33af,_0x469cfd._0x319fce,_0x469cfd._0x4b1e78,_0x469cfd._0x2da768))return'image/gif';if(_0x278c09[_0x409eb3(-0x10a,-_0x469cfd._0x566ff7,-_0x469cfd._0x350858,-_0x469cfd._0x3ef483)](0x0,0x4)[_0x5ae289(_0x469cfd._0x55b7f4,_0x469cfd._0x15a633,0x74,_0x469cfd._0x1fc90a)](_0x5ae289(0x2e9,_0x469cfd._0x4dd276,0x2d2,0x121))===_0x409eb3(-0xf0,-0x214,-_0x469cfd._0x38236d,-0x196)&&_0x278c09[_0x409eb3(-_0x469cfd._0x49bcc4,-_0x469cfd._0x31a1e5,-0x1f2,-0xfc)](0x8,0xc)[_0x409eb3(-0x167,-_0x469cfd._0x59e60b,-_0x469cfd._0x775b65,-0x273)](_0x409eb3(-0x119,-_0x469cfd._0x4309ee,-_0x469cfd._0x25ace1,-0x249))===_0x5ae289(0x8b,_0x469cfd._0x47e8a6,0x194,_0x469cfd._0x3e3a72))return'image/webp';const _0x515b3b=_0xf2b270[_0x409eb3(0x17,_0x469cfd._0x2c2d4c,-0x9c,-_0x469cfd._0x12bda3)](_0x1fa110)[_0x5ae289(_0x469cfd._0x4ce789,_0x469cfd._0x2e9203,_0x469cfd._0x57aaab,_0x469cfd._0xee4114)]();if(_0x515b3b==='.png')return _0x5ae289(_0x469cfd._0x47b812,0x1ac,_0x469cfd._0x52acba,_0x469cfd._0x44afa1);if(_0x515b3b==='.jpg'||_0x515b3b==='.jpeg')return _0x409eb3(-_0x469cfd._0x45526a,-_0x469cfd._0x6ae811,-_0x469cfd._0x52acba,-_0x469cfd._0x21a15f);if(_0x515b3b===_0x5ae289(0x3a6,_0x469cfd._0x354d0b,_0x469cfd._0x442f21,_0x469cfd._0x567fee))return'image/gif';if(_0x515b3b===_0x5ae289(_0x469cfd._0x4ff644,0x1f1,0x256,0x2e3))return'image/webp';return void 0x0;}function normalizeDetail(_0x57dbb0){const _0x499a22={_0x897ecb:0x3e5,_0x4d57d1:0x456},_0x477136={_0x34cd3d:0x113},_0x29e9de={_0x694b16:0x99};if(_0x57dbb0===void 0x0)return void 0x0;function _0x1d9820(_0x538f79,_0x548076,_0xbc125b,_0x445267){return _0x173565(_0x538f79-0x71,_0x548076-_0x29e9de._0x694b16,_0x538f79,_0x548076-0x236);}const _0x7c3221=_0x57dbb0[_0x1d9820(0x1f9,0x21b,0x2e3,0x236)]()[_0x2b531f(0x2c6,0x372,_0x499a22._0x897ecb,_0x499a22._0x4d57d1)]();function _0x2b531f(_0x2de576,_0xfb5232,_0x37a707,_0x21624f){return _0x173565(_0x2de576-_0x477136._0x34cd3d,_0xfb5232-0x1b,_0xfb5232,_0x37a707-0x313);}if(!SUPPORTED_DETAILS['has'](_0x7c3221))throw new ToolExecutionError('Unsupported\x20image\x20detail\x20level:\x20'+_0x57dbb0,{'detail':_0x57dbb0});return _0x7c3221;}function createViewFileTool(_0x6d4a43={}){const _0x369653={_0x1a0875:0x8f,_0x142fe4:0x24b,_0x4c500b:0x359,_0x4d530d:0x3ca,_0x51c61e:0x3cc,_0x5935f4:0x2e2,_0x49e493:0x35a,_0x51e016:0x288,_0x54cc01:0x28b,_0x314f69:0x1ea,_0x1b614e:0x2a4,_0xc915a0:0x2e7,_0x2e6421:0x214,_0x4caaca:0x30a},_0x25efd5={_0x1ac4ce:0x318,_0x1edafd:0x39b,_0x350487:0x4ab,_0x2b9e3a:0x469,_0x5682ca:0x472,_0xce9c84:0x4ac,_0x49db4a:0x168,_0x14b778:0x16d,_0x346f45:0x53c,_0x5e9391:0x54f,_0x29b793:0x86,_0x399a4c:0x272,_0x4ca167:0x3ca,_0x399bb5:0x3c8,_0x923f84:0x38d,_0x99aa16:0x2e1,_0x777cfe:0x3dc,_0x41270e:0x151,_0x555fd7:0x168,_0x47e3a7:0xa0,_0xb2d96a:0x38e,_0x546425:0x2b7,_0x2c344d:0x35c,_0x1855be:0x1b2,_0x8417c:0x20a,_0x4efdfd:0x259,_0x1d2b47:0x153,_0x2dc9e5:0x283,_0x184f38:0x154,_0x277836:0x504,_0x25b909:0x5dd,_0x519cc0:0x5d6,_0x53a5e6:0x1ef,_0x2ade45:0x173,_0x387a4c:0x1b4,_0x3c9bb1:0x13a,_0x14a5d6:0x174,_0xd8e2be:0x220,_0xe486b5:0x3bf,_0x167760:0x493,_0x236d8a:0x13f,_0x53f536:0x136,_0x235618:0x29,_0x5628ad:0x1e1,_0x4fa1ea:0x257,_0xa61791:0x2fb,_0x5cc75a:0x4d7,_0x2602b5:0xdc,_0x5aecc9:0x110,_0x5a2356:0x408,_0x40701e:0x181,_0x4e69e1:0x231,_0x2f48da:0x1ba,_0x29ebf3:0x2b8,_0x239168:0x368,_0x11593f:0x208,_0xfbcecd:0x26d,_0x5993c7:0x1ec,_0x27428b:0x306},_0xb417c6={_0x45b9bc:0x4d,_0x4b6479:0x160,_0xbf23a4:0x127},_0x13096b={_0x5232df:0x126,_0x316338:0xc1},_0x177ff4={_0xb13f97:0x107,_0x12233b:0x181},_0x7c2192=_0xf2b270[_0x4d613f(0x159,0x259,_0x369653._0x1a0875,0xe6)](_0x6d4a43[_0x29c3a6(0x295,0x319,_0x369653._0x142fe4,0x2a4)]??process[_0x4d613f(_0x369653._0x4c500b,_0x369653._0x4d530d,_0x369653._0x51c61e,0x405)]()),_0x2027ce=(_0x6d4a43['allowedDirs']??[])['map'](_0x5f521b=>_0xf2b270['resolve'](_0x5f521b)),_0x1f56fb=_0x6d4a43['maxBytes']??DEFAULT_MAX_BYTES,_0x6f0111=_0x6d4a43[_0x4d613f(_0x369653._0x5935f4,_0x369653._0x49e493,_0x369653._0x51e016,0x323)]??'ViewFile';function _0x29c3a6(_0x3825eb,_0xbdf098,_0x4b9407,_0x5e9981){return _0x255f51(_0x3825eb- -0x3b5,_0xbdf098-_0x177ff4._0xb13f97,_0x4b9407,_0x5e9981-_0x177ff4._0x12233b);}function _0x4d613f(_0x363f09,_0x359f38,_0x520cf6,_0x564086){return _0x173565(_0x363f09-_0x13096b._0x5232df,_0x359f38-_0x13096b._0x316338,_0x359f38,_0x363f09-0x13c);}return defineTool({'name':_0x6f0111,'description':_0x29c3a6(0x2c8,0x289,_0x369653._0x54cc01,_0x369653._0x314f69),'inputSchema':{'type':_0x29c3a6(0x2a8,_0x369653._0x1b614e,0x218,0x2fe),'properties':{'path':{'type':_0x29c3a6(0x30a,_0x369653._0xc915a0,_0x369653._0x2e6421,0x329)},'detail':{'type':_0x29c3a6(_0x369653._0x4caaca,0x211,0x338,0x221)}},'required':['path']},async *'execute'(_0x1ee611){const _0x56f73b={_0x7ae3da:0x1f4,_0x50b474:0x18e,_0x51d24d:0x163},_0x2bc8e6=resolveAllowedPath(_0x7c2192,_0x2027ce,_0x1ee611[_0x36318c(0x3a9,_0x25efd5._0x1ac4ce,0x44b,0x32b)]);function _0x2f8aa9(_0x24fc0c,_0x4baadf,_0x2d0b25,_0x43bf85){return _0x4d613f(_0x4baadf- -_0xb417c6._0x45b9bc,_0x24fc0c,_0x2d0b25-_0xb417c6._0x4b6479,_0x43bf85-_0xb417c6._0xbf23a4);}await assertWorkspaceFile(_0x2bc8e6);const _0x1eadbc=await _0x43436c(_0x2bc8e6);if(_0x1eadbc['size']>_0x1f56fb)throw new ToolExecutionError(_0x36318c(_0x25efd5._0x1edafd,0x35e,0x325,0x455)+_0x1ee611[_0x36318c(0x3a9,0x415,_0x25efd5._0x350487,0x3e0)],{'path':_0x1ee611['path'],'maxBytes':_0x1f56fb,'size':_0x1eadbc[_0x36318c(0x44b,0x356,0x3e1,0x3ce)]});const _0x363399=await _0x37d168(_0x2bc8e6);function _0x36318c(_0x4c04e9,_0x365517,_0x1e1862,_0x5d4244){return _0x4d613f(_0x4c04e9-_0x56f73b._0x7ae3da,_0x1e1862,_0x1e1862-_0x56f73b._0x50b474,_0x5d4244-_0x56f73b._0x51d24d);}const _0x2aea38=detectImageMediaType(_0x363399,_0x2bc8e6);if(!_0x2aea38)throw new ToolExecutionError(_0x36318c(_0x25efd5._0x2b9e3a,0x4a6,_0x25efd5._0x5682ca,_0x25efd5._0xce9c84)+_0x1ee611[_0x2f8aa9(0x60,_0x25efd5._0x49db4a,0x19c,0x18c)],{'path':_0x1ee611[_0x2f8aa9(_0x25efd5._0x14b778,0x168,0x213,0x250)],'supported':[_0x36318c(_0x25efd5._0x346f45,0x4b9,_0x25efd5._0x5e9391,0x579),_0x2f8aa9(_0x25efd5._0x29b793,0x18b,0x1de,0x1a8),_0x36318c(0x49a,0x3a8,0x461,0x473),_0x36318c(0x344,_0x25efd5._0x399a4c,_0x25efd5._0x4ca167,0x24e),_0x36318c(0x3db,0x362,0x493,0x39b)]});const _0x15a957=normalizeDetail(_0x1ee611[_0x36318c(_0x25efd5._0x399bb5,0x3de,_0x25efd5._0x923f84,0x3d7)]),_0x25b779=[_0x2f8aa9(0x206,_0x25efd5._0x99aa16,0x356,_0x25efd5._0x777cfe)+_0x1ee611[_0x2f8aa9(_0x25efd5._0x41270e,_0x25efd5._0x555fd7,_0x25efd5._0x47e3a7,0x186)],_0x2f8aa9(_0x25efd5._0xb2d96a,_0x25efd5._0x546425,_0x25efd5._0x2c344d,0x2cb)+_0x2aea38,'Size:\x20'+_0x1eadbc[_0x2f8aa9(_0x25efd5._0x1855be,_0x25efd5._0x8417c,0x15a,0x1e2)]+_0x2f8aa9(0x187,0x17c,_0x25efd5._0x4efdfd,0x153)][_0x2f8aa9(_0x25efd5._0x1d2b47,_0x25efd5._0x2dc9e5,_0x25efd5._0x184f38,0x2a2)](_0x15a957?[_0x36318c(_0x25efd5._0x277836,_0x25efd5._0x25b909,0x54d,_0x25efd5._0x519cc0)+_0x15a957]:[])[_0x2f8aa9(_0x25efd5._0x53a5e6,_0x25efd5._0x2ade45,0x1c3,0x1bf)]('\x0a'),_0x453136=[{'type':_0x2f8aa9(_0x25efd5._0x387a4c,_0x25efd5._0x3c9bb1,_0x25efd5._0x14a5d6,_0x25efd5._0xd8e2be),'source':{'type':_0x36318c(0x42c,_0x25efd5._0xe486b5,_0x25efd5._0x167760,0x549),'media_type':_0x2aea38,'data':_0x363399[_0x2f8aa9(_0x25efd5._0x236d8a,_0x25efd5._0x53f536,0x1f8,_0x25efd5._0x235618)](_0x2f8aa9(_0x25efd5._0x5628ad,0x1eb,_0x25efd5._0x4fa1ea,0x1ba))}},{'type':_0x2f8aa9(0x225,0x219,0x2f8,0x275),'text':_0x25b779}];return yield createToolOutput(_0x25b779,{'path':_0x1ee611[_0x36318c(0x3a9,_0x25efd5._0xa61791,_0x25efd5._0x5cc75a,0x4af)],'resolvedPath':_0x2bc8e6,'created':_0x1eadbc[_0x2f8aa9(0x7c,_0x25efd5._0x2602b5,0x13,_0x25efd5._0x5aecc9)][_0x36318c(0x4f9,0x5b1,_0x25efd5._0x5a2356,0x582)](),'modified':_0x1eadbc[_0x2f8aa9(_0x25efd5._0x40701e,0x105,0x162,_0x25efd5._0x4e69e1)][_0x2f8aa9(_0x25efd5._0x2f48da,_0x25efd5._0x29ebf3,0x1fe,_0x25efd5._0x239168)](),'size':_0x1eadbc[_0x2f8aa9(0x2c2,_0x25efd5._0x8417c,_0x25efd5._0x11593f,_0x25efd5._0xfbcecd)],'mimeType':_0x2aea38,'encoding':_0x2f8aa9(_0x25efd5._0x5993c7,0x1eb,_0x25efd5._0x27428b,0x144),..._0x15a957?{'detail':_0x15a957}:{}},_0x453136),void 0x0;}});}import _0x559a8d from'turndown';var USER_AGENT=_0x173565(0x151,0x1ae,0x72,0x128),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x54d009){const _0x25f4dd={_0x4d30ff:0x7d1,_0x5c36ed:0x793,_0x19d2c6:0x759,_0xf8588c:0x1ba,_0x3957d7:0x25a,_0x352466:0x353,_0x3db2b3:0x43e,_0x5e0720:0x60c,_0x1a35a5:0x476,_0x3094c5:0x606,_0x27e61d:0x562,_0x5c3d56:0x2fc,_0x700970:0x333,_0x249727:0x61c,_0x1cf75c:0xbd,_0x14cb6e:0xb3,_0x12a544:0x740,_0x2698af:0x540,_0x18f3ee:0x614,_0xa23f15:0x644,_0x5a0e8c:0x4f5,_0x4b88f7:0x678,_0xe22f20:0x4e1,_0x2c5920:0x5e8},_0x226832={_0xfb900e:0x101,_0x32c499:0xe2,_0xccbd7e:0x17e};let _0x3d6263;try{_0x3d6263=new URL(_0x54d009);}catch{throw new ToolExecutionError(_0x58d573(_0x25f4dd._0x4d30ff,_0x25f4dd._0x5c36ed,0x84c,_0x25f4dd._0x19d2c6),{'url':_0x54d009});}if(_0x3d6263[_0x38487d(_0x25f4dd._0xf8588c,0x23d,_0x25f4dd._0x3957d7,0x1ef)]!==_0x38487d(_0x25f4dd._0x352466,0x28c,_0x25f4dd._0x3db2b3,0x45b)&&_0x3d6263[_0x58d573(_0x25f4dd._0x5e0720,_0x25f4dd._0x1a35a5,_0x25f4dd._0x3094c5,_0x25f4dd._0x27e61d)]!=='https:')throw new ToolExecutionError(_0x38487d(0x284,_0x25f4dd._0x5c3d56,_0x25f4dd._0x700970,0x229),{'url':_0x54d009});if(_0x3d6263[_0x58d573(0x4f5,0x57c,0x63c,_0x25f4dd._0x249727)]||_0x3d6263[_0x38487d(0x1c8,0x16e,_0x25f4dd._0x1cf75c,_0x25f4dd._0x14cb6e)])throw new ToolExecutionError(_0x58d573(_0x25f4dd._0x12a544,_0x25f4dd._0x2698af,_0x25f4dd._0x18f3ee,_0x25f4dd._0xa23f15),{'url':_0x3d6263[_0x58d573(0x4d5,0x4c8,_0x25f4dd._0x5a0e8c,0x562)]+'//'+_0x3d6263['host']+_0x3d6263[_0x58d573(_0x25f4dd._0x4b88f7,0x4bf,_0x25f4dd._0xe22f20,_0x25f4dd._0x2c5920)]});function _0x58d573(_0x1ff770,_0xa97ce6,_0x39a5d9,_0x5e5b9a){return _0x173565(_0x1ff770-0x2,_0xa97ce6-0x63,_0x39a5d9,_0x5e5b9a-0x526);}function _0x38487d(_0x23fd1d,_0x32e85d,_0x318c29,_0x3cf767){return _0x173565(_0x23fd1d-_0x226832._0xfb900e,_0x32e85d-_0x226832._0x32c499,_0x32e85d,_0x23fd1d-_0x226832._0xccbd7e);}return _0x3d6263;}function parseContentLength(_0x2870b1){if(!_0x2870b1)return void 0x0;const _0x533d47=Number(_0x2870b1);return Number['isFinite'](_0x533d47)&&_0x533d47>=0x0?_0x533d47:void 0x0;}function createTimeoutSignal(_0x20453b,_0x1a0690){const _0x1758b={_0x3f3b3c:0x78,_0x213e48:0x159,_0x1a600c:0x1a6,_0x2ef085:0x211},_0x5620a4={_0x4b0458:0x103},_0x180b81={_0x22b452:0xa1,_0xa91671:0x14e,_0x2838bc:0x56},_0x2c344f=new AbortController();function _0x210d86(_0x379bc8,_0x3151a3,_0x4bbb9f,_0x15560a){return _0x173565(_0x379bc8-_0x180b81._0x22b452,_0x3151a3-_0x180b81._0xa91671,_0x3151a3,_0x15560a-_0x180b81._0x2838bc);}const _0x44125d=setTimeout(()=>_0x2c344f['abort'](new Error('Fetch\x20timed\x20out')),_0x1a0690),_0x213fd2=()=>_0x2c344f[_0x7b2075(-0x87,0x5d,0x14b,-0x89)](_0x20453b[_0x7b2075(0x1ec,0x20f,0x2f3,0x189)]);function _0x7b2075(_0x292ef9,_0x42b70d,_0x53d318,_0xf0802){return _0x173565(_0x292ef9-_0x5620a4._0x4b0458,_0x42b70d-0x66,_0x292ef9,_0x42b70d-0x1);}return _0x20453b['aborted']?_0x2c344f['abort'](_0x20453b['reason']):_0x20453b[_0x7b2075(-_0x1758b._0x3f3b3c,0xa7,_0x1758b._0x213e48,_0x1758b._0x1a600c)]('abort',_0x213fd2,{'once':!![]}),{'signal':_0x2c344f[_0x7b2075(0x1bc,_0x1758b._0x2ef085,0x27d,0x22b)],'cleanup':()=>{clearTimeout(_0x44125d),_0x20453b['removeEventListener']('abort',_0x213fd2);}};}function createWebFetchTool(_0x3e713e={}){const _0x2af23a={_0x5aa2f2:0x261,_0x203904:0x2c9,_0x300f96:0x3dc,_0x612e:0x57a,_0x7076de:0x1f5,_0x50372d:0x43,_0x382fd2:0xc1,_0x3c4cb2:0x2dc,_0x3e646f:0x269,_0x1d7bfa:0x2b1,_0x3ce496:0x276,_0x445cb2:0xf6,_0x2ac294:0x117,_0x20c92d:0x324,_0x3ab67f:0x2a9,_0x203201:0x3c3,_0x2a6dff:0x4dc,_0x14161e:0x47d,_0x4f1435:0x46e,_0x224c0c:0x4af,_0x4d2393:0x40e,_0x4bfb26:0x35c,_0x2fe1e2:0x279,_0x21441f:0x406,_0x54b6ad:0x329,_0x5c7aee:0x21a,_0x45c8a2:0x538,_0xc51a2b:0x416,_0x12a8fd:0x52f,_0x57ce1c:0x4b3},_0x4b3c62={_0x44ec66:0x4e9,_0x2a26d6:0x4e7,_0x53dbe6:0x436,_0x23e1cb:0x366,_0xaa6043:0x2f5,_0x502bfc:0x52e,_0x2f069f:0x592,_0x7f0b78:0x575,_0x41fdce:0x543,_0x485387:0x585,_0x5be5a7:0x30f,_0x2b202f:0x5c0,_0x314a48:0x3f0,_0x3621ac:0x3e0,_0x4252b3:0x3ed,_0x12f048:0x2f0,_0x13115c:0x4a2,_0xdfc227:0x3ce,_0x6d382e:0x547,_0x3d51b6:0x53f,_0x39ca5b:0x39d,_0x28f77e:0x4bc,_0x18540a:0x328,_0x34a9bc:0x3bc,_0x1d6cfe:0x33a,_0x223450:0x309,_0x583288:0x4c7,_0x10b427:0x485,_0x21745f:0x373,_0xdfe939:0x2e0,_0x33e300:0x3ac,_0x237ed5:0x34f,_0x31bd44:0x474,_0x5e6ec7:0x362,_0x4f3ed8:0x4be,_0x519134:0x429,_0xa0dae8:0x5bd,_0x561665:0x59f,_0x39a068:0x4bf,_0x57d1e2:0x4dd,_0x4b97cd:0x511,_0x31dfa4:0x486,_0x5ea75f:0x3a2,_0x3dcaf3:0x3ce},_0x255a85={_0x210c9c:0x1c8,_0x4d9fa1:0x25f},_0x10b006={_0x47fcea:0xc0,_0x75eaea:0x325},_0xda664={_0x26df7b:0x96,_0x1e5f42:0x3f};function _0x45c1c9(_0x3b8022,_0x2d75dd,_0x13c13a,_0x189635){return _0x173565(_0x3b8022-_0xda664._0x26df7b,_0x2d75dd-_0xda664._0x1e5f42,_0x2d75dd,_0x13c13a-0x123);}function _0x86491f(_0x42bbb9,_0x1998dd,_0x531b2e,_0x51b04c){return _0x173565(_0x42bbb9-0x16a,_0x1998dd-_0x10b006._0x47fcea,_0x42bbb9,_0x531b2e-_0x10b006._0x75eaea);}const _0x564648=_0x3e713e[_0x45c1c9(_0x2af23a._0x5aa2f2,0x3c0,_0x2af23a._0x203904,_0x2af23a._0x300f96)]??_0x86491f(0x5b4,_0x2af23a._0x612e,0x4a1,0x527),_0x268b40=_0x3e713e[_0x45c1c9(_0x2af23a._0x7076de,_0x2af23a._0x50372d,0x107,_0x2af23a._0x382fd2)]??DEFAULT_MAX_BYTES2,_0x2455ee=_0x3e713e[_0x86491f(_0x2af23a._0x3c4cb2,0x3dd,0x376,0x36a)]??DEFAULT_TIMEOUT_MS2,_0x12f98b=new _0x559a8d({'headingStyle':_0x45c1c9(0x1c9,_0x2af23a._0x3e646f,0x2e5,0x3d6),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x12f98b[_0x45c1c9(0x32d,_0x2af23a._0x1d7bfa,0x244,_0x2af23a._0x3ce496)]([_0x45c1c9(_0x2af23a._0x445cb2,0x129,_0x2af23a._0x2ac294,0x1e7),_0x86491f(0x310,0x316,_0x2af23a._0x20c92d,0x352),_0x86491f(_0x2af23a._0x3ab67f,0x477,_0x2af23a._0x203201,_0x2af23a._0x2a6dff),'iframe','nav',_0x45c1c9(_0x2af23a._0x14161e,0x24f,0x35a,0x471),_0x86491f(_0x2af23a._0x4f1435,_0x2af23a._0x224c0c,_0x2af23a._0x4d2393,_0x2af23a._0x4bfb26),_0x45c1c9(_0x2af23a._0x2fe1e2,_0x2af23a._0x21441f,_0x2af23a._0x54b6ad,_0x2af23a._0x5c7aee)]),defineTool({'name':_0x564648,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x86491f(0x4f2,_0x2af23a._0x45c8a2,_0x2af23a._0xc51a2b,0x427),'properties':{'description':{'type':'string'},'url':{'type':'string'}},'required':[_0x86491f(_0x2af23a._0x12a8fd,0x5af,_0x2af23a._0x57ce1c,0x5cf)]},async *'execute'(_0x27b66a,_0x1960c5){const _0x3bca20={_0x13a65a:0x1fc},_0x85c941=assertFetchableUrl(_0x27b66a[_0x50e7e0(_0x4b3c62._0x44ec66,_0x4b3c62._0x2a26d6,0x4ad,0x4d9)])[_0x50e7e0(_0x4b3c62._0x53dbe6,0x313,_0x4b3c62._0x23e1cb,_0x4b3c62._0xaa6043)]();if(_0x1960c5[_0x1de016(0x5b4,_0x4b3c62._0x502bfc,0x533,_0x4b3c62._0x2f069f)][_0x1de016(0x4ab,_0x4b3c62._0x7f0b78,_0x4b3c62._0x41fdce,_0x4b3c62._0x485387)])throw new ToolExecutionError(_0x50e7e0(0x2cd,0x268,_0x4b3c62._0x5be5a7,0x232),{'url':_0x85c941});const _0xee6853=createTimeoutSignal(_0x1960c5['signal'],_0x2455ee);let _0x59e286='',_0x27e40a=0x0,_0x232ae2;try{const _0x1ab55d=await fetch(_0x85c941,{'headers':{'User-Agent':USER_AGENT},'signal':_0xee6853['signal']});if(!_0x1ab55d['ok'])throw new ToolExecutionError('HTTP\x20'+_0x1ab55d[_0x1de016(0x4fc,_0x4b3c62._0x2b202f,_0x4b3c62._0x314a48,0x4bc)]+'\x20'+_0x1ab55d['statusText'],{'url':_0x85c941,'statusCode':_0x1ab55d[_0x1de016(_0x4b3c62._0x3621ac,0x5ac,_0x4b3c62._0x4252b3,0x4bc)]});const _0xb95af5=parseContentLength(_0x1ab55d['headers'][_0x50e7e0(0x40e,0x249,0x362,_0x4b3c62._0x12f048)](_0x50e7e0(0x572,_0x4b3c62._0x13115c,0x517,0x413)));if(_0xb95af5!==void 0x0&&_0xb95af5>_0x268b40)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0xb95af5+_0x1de016(0x5e3,_0x4b3c62._0xdfc227,0x491,0x4e7)+_0x268b40+_0x50e7e0(0x315,0x45f,0x3ac,0x29c),{'url':_0x85c941,'statusCode':_0x1ab55d[_0x1de016(_0x4b3c62._0x6d382e,_0x4b3c62._0x3d51b6,_0x4b3c62._0x39ca5b,_0x4b3c62._0x28f77e)],'contentLength':_0xb95af5,'maxBytes':_0x268b40});_0x59e286=_0x1ab55d['headers'][_0x1de016(_0x4b3c62._0x18540a,_0x4b3c62._0x34a9bc,_0x4b3c62._0x1d6cfe,0x3c5)]('content-type')??'',_0x27e40a=_0x1ab55d['status'],_0x232ae2=await _0x1ab55d['text']();}catch(_0x23a390){if(_0x23a390 instanceof ToolExecutionError)throw _0x23a390;const _0x573725=_0x23a390 instanceof Error?_0x23a390['message']:String(_0x23a390);throw new ToolExecutionError(_0x573725,{'url':_0x85c941});}finally{_0xee6853[_0x1de016(0x478,0x3c9,0x3d0,0x3a8)]();}function _0x50e7e0(_0x55ca12,_0x1125e1,_0x2486b2,_0x36e39b){return _0x45c1c9(_0x55ca12-0x75,_0x36e39b,_0x2486b2-_0x3bca20._0x13a65a,_0x36e39b-0x1d4);}if(Buffer[_0x1de016(_0x4b3c62._0x223450,0x441,0x379,0x40d)](_0x232ae2,_0x50e7e0(_0x4b3c62._0x583288,0x4a1,_0x4b3c62._0x10b427,0x447))>_0x268b40)throw new ToolExecutionError('Response\x20too\x20large:\x20exceeds\x20'+_0x268b40+_0x50e7e0(_0x4b3c62._0x21745f,_0x4b3c62._0xdfe939,_0x4b3c62._0x33e300,_0x4b3c62._0x237ed5),{'url':_0x85c941,'statusCode':_0x27e40a,'maxBytes':_0x268b40});function _0x1de016(_0x2d0baf,_0x565614,_0x34334d,_0x3d8af0){return _0x45c1c9(_0x2d0baf-_0x255a85._0x210c9c,_0x2d0baf,_0x3d8af0-_0x255a85._0x4d9fa1,_0x3d8af0-0x15f);}const _0x399455=new Date()['toISOString']();let _0x1e52ea,_0x1d1bdf;if(_0x59e286['includes']('application/json'))_0x1e52ea=_0x1de016(_0x4b3c62._0x31bd44,_0x4b3c62._0x5e6ec7,_0x4b3c62._0x4f3ed8,0x3da)+_0x232ae2+_0x50e7e0(0x591,_0x4b3c62._0x519134,0x500,0x434),_0x1d1bdf=_0x1de016(_0x4b3c62._0xa0dae8,_0x4b3c62._0x561665,_0x4b3c62._0x39a068,0x4d8);else _0x59e286[_0x1de016(_0x4b3c62._0x57d1e2,0x429,0x594,0x4d7)](_0x50e7e0(0x556,_0x4b3c62._0x4b97cd,0x434,0x361))?(_0x1e52ea=_0x12f98b['turndown'](_0x232ae2),_0x1d1bdf='markdown'):(_0x1e52ea=_0x232ae2,_0x1d1bdf=_0x50e7e0(0x3d8,0x395,0x449,_0x4b3c62._0x31dfa4));return yield createToolOutput(_0x1e52ea,{'url':_0x85c941,'contentType':_0x59e286,'statusCode':_0x27e40a,'format':_0x1d1bdf,'size':_0x232ae2[_0x1de016(0x3ab,_0x4b3c62._0x5ea75f,_0x4b3c62._0x3dcaf3,0x4ca)],'fetchedAt':_0x399455}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x173565(0x13b,0x24b,0x210,0x1af);function normalizeUrl(_0x354dc2){const _0x253fe1={_0x4d0ab6:0x5f2,_0x35e2cb:0x5a6,_0x3adaf6:0x595,_0x24d9f3:0x68f,_0x26a6d9:0x7a0,_0x430949:0x495,_0xcefa1a:0x3be,_0x306cb4:0x4c1,_0x110cc1:0x34c,_0xdb040a:0x29e,_0x1dc0af:0x54d,_0x122a43:0x525,_0x3fb5a6:0x40d,_0x224b0f:0x69b,_0x3298c4:0x33d,_0x462ac3:0x25c,_0x39b3ef:0x302},_0x47166d={_0x43ad5c:0x94},_0x2d9127={_0x538692:0xbd};function _0x4a10a4(_0x5b0ee2,_0x2cb0c9,_0x27071e,_0x3d5c0c){return _0x255f51(_0x27071e- -_0x2d9127._0x538692,_0x2cb0c9-0x30,_0x5b0ee2,_0x3d5c0c-0xd8);}function _0x3882be(_0x1e7aa0,_0xf7c6ff,_0x3c6f5d,_0x27f85b){return _0x173565(_0x1e7aa0-_0x47166d._0x43ad5c,_0xf7c6ff-0x44,_0xf7c6ff,_0x27f85b-0x192);}try{const _0x122777=new URL(_0x354dc2);for(const _0x57068a of[_0x4a10a4(0x515,_0x253fe1._0x4d0ab6,_0x253fe1._0x35e2cb,_0x253fe1._0x3adaf6),_0x4a10a4(0x5d5,0x77e,_0x253fe1._0x24d9f3,_0x253fe1._0x26a6d9),_0x3882be(0x2c1,0x398,_0x253fe1._0x430949,_0x253fe1._0xcefa1a),_0x4a10a4(0x587,0x5e4,0x506,0x561),_0x4a10a4(0x490,0x482,_0x253fe1._0x306cb4,0x4fa),_0x3882be(0x39f,0x358,0x45b,_0x253fe1._0x110cc1),_0x3882be(_0x253fe1._0xdb040a,0x1e9,0x24e,0x296),_0x4a10a4(0x528,_0x253fe1._0x1dc0af,_0x253fe1._0x122a43,_0x253fe1._0x3fb5a6),_0x3882be(0x354,0x166,0x260,0x271)]){_0x122777[_0x4a10a4(_0x253fe1._0x224b0f,0x6a5,0x617,0x742)][_0x3882be(_0x253fe1._0x3298c4,_0x253fe1._0x462ac3,_0x253fe1._0x39b3ef,0x2f9)](_0x57068a);}return _0x122777['toString']();}catch{return _0x354dc2;}}function cseDateRestrict(_0x2c1039){const _0x2609f0={_0xd9e12d:0x2e8,_0x55f6ea:0x4db,_0x14233a:0x4b8},_0x14d138={_0x1b6b8c:0x1b6},_0x4077ab={_0x9841a9:0x71};function _0x371f9b(_0x1c5dea,_0x374a24,_0x2a3b76,_0x46d800){return _0x255f51(_0x2a3b76- -0x250,_0x374a24-_0x4077ab._0x9841a9,_0x374a24,_0x46d800-0x1b6);}function _0x1f49b1(_0x44267b,_0x45c3dd,_0x46ae69,_0x4ac7ad){return _0x255f51(_0x44267b- -0x376,_0x45c3dd-0x149,_0x4ac7ad,_0x4ac7ad-_0x14d138._0x1b6b8c);}if(_0x2c1039<=0x0)return void 0x0;if(_0x2c1039<=0x1e)return'd'+Math[_0x1f49b1(0x22d,0x128,_0x2609f0._0xd9e12d,0x164)](0x1,Math['floor'](_0x2c1039));if(_0x2c1039<=0x16d)return'm'+Math[_0x371f9b(0x3b3,0x52b,_0x2609f0._0x55f6ea,0x474)](_0x2c1039/0x1e);return'y'+Math[_0x371f9b(0x575,0x541,_0x2609f0._0x55f6ea,_0x2609f0._0x14233a)](_0x2c1039/0x16d);}function addSiteFilters(_0x3123cc,_0x395bba){const _0x515e69={_0x12f636:0x4de,_0x38bc56:0x48c,_0x5c3a5e:0x2d6,_0x1191bb:0x3df,_0x2d6533:0x21a,_0x19268f:0x2c5},_0x42491f={_0x40ac4f:0x17f};if(_0x395bba[_0x451f0e(0x416,_0x515e69._0x12f636,0x542,_0x515e69._0x38bc56)]===0x0)return _0x3123cc[_0x451f0e(_0x515e69._0x5c3a5e,0x4cb,_0x515e69._0x1191bb,0x465)]();function _0x451f0e(_0x1fd177,_0x41e0cc,_0x2cb27d,_0x206ffa){return _0x255f51(_0x2cb27d- -0x172,_0x41e0cc-0xac,_0x1fd177,_0x206ffa-_0x42491f._0x40ac4f);}function _0x3a9e28(_0x44abd1,_0x37c8fd,_0x880549,_0x13533d){return _0x173565(_0x44abd1-0xbd,_0x37c8fd-0xbb,_0x880549,_0x44abd1-0x196);}return(_0x3123cc+'\x20('+_0x395bba['map'](_0x2cbc37=>_0x3a9e28(0x2d7,0x2ba,0x355,0x3a5)+_0x2cbc37)[_0x3a9e28(_0x515e69._0x2d6533,_0x515e69._0x19268f,0x2a3,0x1c6)](_0x3a9e28(0x3b0,0x370,0x48c,0x4a9))+')')['trim']();}function normalizeType(_0x89400f){const _0x1ffd98={_0x5a2e40:0x275,_0x255a54:0x191,_0x33df00:0x6d,_0x2dd064:0x424,_0x11f9cd:0x556,_0x1cac99:0x69a},_0x58f6a1={_0x299095:0xd2,_0x56dafc:0x142,_0x48ba71:0x416},_0xf3def1={_0x185b4e:0x5f};function _0x260e6d(_0x1d2214,_0x2e9a85,_0x5426d5,_0x552a5e){return _0x255f51(_0x2e9a85- -0x70b,_0x2e9a85-0x1e6,_0x552a5e,_0x552a5e-_0xf3def1._0x185b4e);}function _0x269ad8(_0x4fcdd8,_0x1969b1,_0x2143b7,_0x3b0357){return _0x173565(_0x4fcdd8-_0x58f6a1._0x299095,_0x1969b1-_0x58f6a1._0x56dafc,_0x3b0357,_0x1969b1-_0x58f6a1._0x48ba71);}return _0x89400f===_0x260e6d(-_0x1ffd98._0x5a2e40,-_0x1ffd98._0x255a54,-0x1c9,-_0x1ffd98._0x33df00)?_0x269ad8(0x514,_0x1ffd98._0x2dd064,0x418,0x45d):_0x269ad8(0x703,0x600,_0x1ffd98._0x11f9cd,_0x1ffd98._0x1cac99);}async function fetchJson(_0x35f481,_0x517c9e){const _0x165062={_0x5c328f:0x243,_0x3eae2e:0x415,_0x45dc63:0x233,_0x53f260:0x2be,_0x21ade9:0x386,_0xdb55fd:0xfd,_0x129a31:0x176,_0x17c182:0x140,_0x548151:0x235,_0x3c2882:0x419,_0x471c00:0x2f9,_0x30904b:0x3fe},_0x46dff3={_0x84eba6:0x3ad,_0x459766:0x113,_0x504005:0x28},_0x16701f={_0x1eda83:0x3fe,_0x4b003d:0xcc,_0x48db89:0xc7},_0x190122=await fetch(_0x35f481,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x52c603(_0x165062._0x5c328f,_0x165062._0x3eae2e,0x31f,_0x165062._0x45dc63)},'signal':_0x517c9e});function _0x52c603(_0x8ed890,_0x58579b,_0x2be915,_0x509125){return _0x255f51(_0x2be915- -_0x16701f._0x1eda83,_0x58579b-_0x16701f._0x4b003d,_0x8ed890,_0x509125-_0x16701f._0x48db89);}if(!_0x190122['ok']){await _0x190122[_0x52c603(0x4a4,_0x165062._0x53f260,_0x165062._0x21ade9,0x329)]?.[_0x52c603(_0x165062._0xdb55fd,0x280,_0x165062._0x129a31,0x1ba)]()['catch'](()=>void 0x0);throw new ToolExecutionError(_0x52c603(_0x165062._0x17c182,0x1f7,_0x165062._0x548151,0x2f7)+_0x190122[_0x1a62af(_0x165062._0x3c2882,0x2e3,0x3f5,_0x165062._0x471c00)]+'\x20'+_0x190122['statusText'],{'statusCode':_0x190122[_0x1a62af(_0x165062._0x30904b,0x364,0x24a,_0x165062._0x471c00)]});}function _0x1a62af(_0x480540,_0x591574,_0x2adca2,_0x46ce88){return _0x255f51(_0x46ce88- -_0x46dff3._0x84eba6,_0x591574-_0x46dff3._0x459766,_0x480540,_0x46ce88-_0x46dff3._0x504005);}return await _0x190122['json']();}async function hydrateResults(_0x35a6d4,_0xc98cad,_0x5ba93b){const _0xf99236={_0x354a0a:0x8f,_0x334868:0x29c,_0x2fe7f0:0x326,_0xb9047:0x2a1,_0x3ba99d:0x19e,_0x5bc9d7:0x287,_0x35ae44:0x208,_0x49e75f:0x1f4},_0x33ceeb={_0x51a3b4:0x21,_0x22e50d:0xba,_0x19a4f1:0x1b2},_0x69445a={_0x39261e:0x636,_0x1ab558:0x145,_0x2ea89e:0x6c},_0x1270b7={_0x168bb9:0x472,_0x579c5e:0x3a1,_0x910244:0x47e,_0x28af88:0x39a,_0x5b24d2:0x558,_0x3d42d7:0x4c4,_0x216b51:0x36b,_0x47eb68:0x46b,_0xbdb2e7:0x473,_0x5b7a48:0x4a1,_0x3cdb9f:0x48e,_0x40fb3d:0x532,_0x5c2973:0x4d6,_0x1f5da8:0x51a,_0x55333d:0x4f9,_0x5b23a9:0x4c9,_0x93581e:0x4b5,_0x191687:0x328,_0x168742:0x374,_0x4a0f41:0x41c,_0xc112a6:0x4fa,_0x5146a3:0x50f,_0x480ad3:0x427,_0x4ed03b:0x43f,_0xdf9bcd:0x5f2,_0x36aa0a:0x5a0,_0x19e50f:0x35d,_0xe8b5ce:0x40e,_0x34a01d:0x4f6,_0x4bcf72:0x416,_0x5801bb:0x3b2,_0x4cb0f3:0x443,_0x1e79fa:0x2c4,_0x32369d:0x33a,_0x2260bb:0x3df,_0x27ad81:0x44f,_0x5c6df0:0x31e,_0x482791:0x3ab,_0x3401bd:0x367,_0xc7faa2:0x29e,_0x3360ec:0x400,_0x18d7f9:0x47d,_0x3d3c8f:0x444,_0x45f29b:0x3bb,_0x41a8ef:0x492,_0x2ccd1b:0x4e8,_0x17beb8:0x4ea,_0x178133:0x38a,_0x15c80d:0x42b},_0x4bec1a={_0x1f3671:0x143},_0x43a8bc=await Promise[_0x2dc99c(-_0xf99236._0x354a0a,-0x1bb,-0xaf,-0x83)](_0x35a6d4[_0x2dc99c(0xaa,-0x6,-0x49,0xe9)](0x0,0xa)['map'](async _0xa7e844=>{function _0x56f751(_0x3a5170,_0x4c9b83,_0x25f421,_0xe564f7){return _0x236975(_0x25f421,_0x4c9b83-0x69,_0x25f421-0x1f1,_0x4c9b83-0x1ed);}function _0x2a173c(_0x116e55,_0x56fff1,_0xd9a211,_0x37d8be){return _0x236975(_0x37d8be,_0x56fff1-_0x4bec1a._0x1f3671,_0xd9a211-0x1b0,_0x116e55-0x191);}try{const _0x2881c1=await fetch(_0xa7e844[_0x56f751(0x476,0x52d,0x447,_0x1270b7._0x168bb9)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0xc98cad,'Accept':_0x56f751(_0x1270b7._0x579c5e,0x4b4,0x4f1,_0x1270b7._0x910244)},'signal':_0x5ba93b});if(!_0x2881c1['ok'])return _0xa7e844;const _0x3aa5b9=await _0x2881c1[_0x2a173c(0x46d,_0x1270b7._0x28af88,0x47d,_0x1270b7._0x5b24d2)](),_0x1626a5=load(_0x3aa5b9),_0x1fd01b=_0x1626a5('meta[property=\x27og:title\x27]')[_0x2a173c(0x3b2,0x483,_0x1270b7._0x3d42d7,_0x1270b7._0x216b51)](_0x2a173c(0x408,_0x1270b7._0x47eb68,_0x1270b7._0xbdb2e7,_0x1270b7._0x5b7a48))||_0x1626a5(_0x2a173c(_0x1270b7._0x3cdb9f,0x58a,0x452,_0x1270b7._0x40fb3d))[_0x56f751(_0x1270b7._0x5c2973,_0x1270b7._0x1f5da8,_0x1270b7._0x55333d,0x5fd)]()[_0x56f751(0x5c8,_0x1270b7._0x5b23a9,0x3f7,_0x1270b7._0x93581e)]()[_0x2a173c(_0x1270b7._0x191687,_0x1270b7._0x168742,0x2a3,_0x1270b7._0x4a0f41)](),_0xbf42ac=_0x1626a5(_0x2a173c(_0x1270b7._0xc112a6,0x57a,_0x1270b7._0x5146a3,_0x1270b7._0x480ad3))['attr']('content')||_0x1626a5(_0x56f751(0x470,0x515,0x5e5,_0x1270b7._0x4ed03b))['attr']('content')||_0xa7e844[_0x56f751(_0x1270b7._0xdf9bcd,_0x1270b7._0x36aa0a,0x4aa,0x57e)],_0x33411f=_0x1626a5(_0x56f751(0x4f0,0x3df,0x3c4,_0x1270b7._0x19e50f))[_0x56f751(0x517,_0x1270b7._0xe8b5ce,0x2fb,0x39e)](_0x2a173c(0x408,_0x1270b7._0x34a01d,0x2fc,0x335))||_0x1626a5(_0x56f751(0x368,_0x1270b7._0x4bcf72,0x463,0x472))[_0x2a173c(_0x1270b7._0x5801bb,_0x1270b7._0x4cb0f3,0x41d,_0x1270b7._0x1e79fa)](_0x2a173c(_0x1270b7._0x32369d,_0x1270b7._0x2260bb,_0x1270b7._0x27ad81,_0x1270b7._0x5c6df0))||_0xa7e844[_0x2a173c(_0x1270b7._0x482791,0x3b8,_0x1270b7._0x3401bd,_0x1270b7._0xc7faa2)],_0x8bdd74=_0x1626a5(_0x56f751(_0x1270b7._0x3360ec,0x3d1,_0x1270b7._0x18d7f9,_0x1270b7._0x3d3c8f))['attr'](_0x2a173c(_0x1270b7._0x45f29b,0x321,0x33e,_0x1270b7._0x41a8ef));return{..._0xa7e844,'title':_0x1fd01b||_0xa7e844[_0x56f751(_0x1270b7._0x2ccd1b,_0x1270b7._0x17beb8,0x4e1,0x574)],'snippet':_0xbf42ac,'url':_0x8bdd74?normalizeUrl(new URL(_0x8bdd74,_0xa7e844['url'])[_0x2a173c(_0x1270b7._0x178133,0x2ee,0x30e,_0x1270b7._0x15c80d)]()):_0xa7e844['url'],'publishedAt':_0x33411f};}catch{return _0xa7e844;}}));function _0x2dc99c(_0x20403e,_0x144277,_0x31e714,_0x4e69bd){return _0x255f51(_0x20403e- -_0x69445a._0x39261e,_0x144277-_0x69445a._0x1ab558,_0x31e714,_0x4e69bd-_0x69445a._0x2ea89e);}function _0x236975(_0x596c70,_0xc78ef1,_0x5927e7,_0x150451){return _0x173565(_0x596c70-_0x33ceeb._0x51a3b4,_0xc78ef1-_0x33ceeb._0x22e50d,_0x596c70,_0x150451-_0x33ceeb._0x19a4f1);}const _0x498389=new Map(_0x35a6d4[_0x236975(0x363,_0xf99236._0x334868,0x2ae,_0xf99236._0x2fe7f0)](0x0,0xa)[_0x236975(_0xf99236._0xb9047,_0xf99236._0x3ba99d,_0xf99236._0x5bc9d7,0x1f4)]((_0xfbf553,_0xc0b0c1)=>[_0xfbf553[_0x236975(0x264,0x2b3,0x32c,0x340)],_0x43a8bc[_0xc0b0c1]]));return _0x35a6d4[_0x236975(0xf1,_0xf99236._0x35ae44,0xdf,_0xf99236._0x49e75f)](_0x11e249=>_0x498389[_0x2dc99c(-0x87,-0x129,-0x18b,-0x158)](_0x11e249[_0x2dc99c(0xc4,0x12e,0x159,0x6a)])??_0x11e249);}function formatResults(_0xe8c831){const _0x2dd065={_0x10689d:0x6d3},_0xe7db78={_0x5316d4:0x174,_0x215e35:0x91,_0xead088:0x41,_0x352c43:0x75,_0x486bf6:0x11c,_0x3423c5:0x3f,_0x345739:0xd1,_0x283e6f:0x5b9,_0x117a38:0x6d1,_0x10b074:0xa8,_0x5ab455:0x95,_0xf11376:0x1a1,_0x4faecd:0x71,_0x20b616:0xc5,_0x13a3db:0x122,_0xa0802d:0xdd,_0x32fdf1:0x65,_0x10b361:0x87,_0x5944af:0x8e,_0x2bd571:0x228,_0x480e6a:0x103,_0x696a8:0x198},_0x46635b={_0x481657:0xc6},_0x4ad1fc={_0x4d1595:0x749,_0x43515b:0xaf,_0x55d9f9:0x1ea},_0x252c1d={_0x5173ef:0x15e};if(_0xe8c831[_0x631fde(0x725,_0x2dd065._0x10689d,0x7ef,0x678)]===0x0)return'No\x20results\x20found.';function _0x631fde(_0x2bcdc2,_0x4352af,_0x753f10,_0x56abff){return _0x173565(_0x2bcdc2-_0x252c1d._0x5173ef,_0x4352af-0x5a,_0x4352af,_0x2bcdc2-0x5dd);}return _0xe8c831['map'](_0x587924=>{const _0x138b4f=[_0x587924[_0x10e2bc(0x165,0xc1,_0xe7db78._0x5316d4,0x4d)][_0x10e2bc(-_0xe7db78._0x215e35,_0xe7db78._0xead088,_0xe7db78._0x352c43,_0xe7db78._0x486bf6)]+'.\x20'+_0x587924[_0x10e2bc(-_0xe7db78._0x3423c5,-0x21,_0xe7db78._0x345739,-0xc0)],_0x587924[_0x462640(_0xe7db78._0x283e6f,0x789,_0xe7db78._0x117a38,0x5d8)]];function _0x10e2bc(_0x2cdf00,_0x5e1009,_0x54fa1b,_0x30047c){return _0x631fde(_0x5e1009- -_0x4ad1fc._0x4d1595,_0x2cdf00,_0x54fa1b-_0x4ad1fc._0x43515b,_0x30047c-_0x4ad1fc._0x55d9f9);}function _0x462640(_0xc5ad89,_0x2560f6,_0x25d65d,_0x58e7ba){return _0x631fde(_0x25d65d- -0x9a,_0x58e7ba,_0x25d65d-_0x46635b._0x481657,_0x58e7ba-0x13c);}if(_0x587924[_0x10e2bc(_0xe7db78._0x10b074,_0xe7db78._0x5ab455,_0xe7db78._0xf11376,0x119)])_0x138b4f[_0x10e2bc(-_0xe7db78._0x4faecd,-0x28,-0x156,_0xe7db78._0x20b616)](_0x587924['snippet']);if(_0x587924[_0x10e2bc(-0x22,-0x104,-_0xe7db78._0x13a3db,-_0xe7db78._0xa0802d)])_0x138b4f[_0x10e2bc(_0xe7db78._0x32fdf1,-0x28,_0xe7db78._0x10b361,-_0xe7db78._0x5944af)](_0x10e2bc(-_0xe7db78._0x2bd571,-_0xe7db78._0x480e6a,-_0xe7db78._0x696a8,-0x1ee)+_0x587924['publishedAt']);return _0x138b4f[_0x10e2bc(0x22,-0xe8,-0x1e7,-0xf7)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x5a2d28,_0x4820d0,_0x348e8e){const _0x358f4e={_0x36b455:0x4b7,_0x599c77:0x3db,_0x1a60f7:0x479,_0xba114f:0xff,_0x558efb:0x1fd,_0x1e4fff:0x1,_0x1f7097:0x360,_0x5181bd:0x455,_0x22d6ba:0x5d,_0x45f34d:0x55c,_0x54b628:0x3ef,_0x15eab1:0x4ee,_0x26ed8b:0x5e9,_0x1c8667:0x4bc,_0x45653a:0x22a,_0x439446:0x1c2,_0x546a73:0x27a,_0x5b339f:0x3aa,_0x1e1b11:0x63a,_0x33864d:0x50c,_0x574f0d:0x52f,_0x474ccb:0xa9,_0x3f09ec:0xbd,_0x3015ce:0xf0,_0x345a1b:0xaa,_0x2a56a4:0x42f,_0x15c1ab:0x5cb,_0x38608a:0x52b,_0x1c5026:0x3e1,_0x29d7ea:0x35,_0x4ff641:0x493,_0x21bff5:0x505,_0x1a053a:0x4c4,_0x41abd3:0x572,_0x5715ff:0xd6,_0x38ee0f:0x8e,_0x3cfe75:0x46,_0x55b206:0x1c,_0xf2b4ce:0x120,_0x35f1ac:0x58c,_0x7d2b67:0x491,_0x5edf7b:0x44,_0x9e6e58:0x5c,_0x67588c:0x17,_0x40ac37:0x58d,_0x29a6c3:0x50c,_0x449011:0x5d9,_0x3bf640:0x597,_0x524a85:0x5d2,_0x59868f:0x505,_0x1756f7:0x59,_0x5b439c:0xc4,_0xf1d648:0x14b,_0x2118f1:0xfd,_0x4a99a0:0xc4,_0x3050a0:0x1d,_0x3797b0:0x16d,_0x386590:0x2d,_0x3d0292:0xc9,_0x40020b:0x144,_0x2fedc5:0x54,_0x1ec3be:0x3ef,_0x33f4b9:0x2f9,_0x38b8a9:0x4d8,_0x1ffa29:0x5d5,_0x511e1d:0x610,_0x36aa60:0x68e,_0x5cbe37:0x576,_0x5c7e2e:0x47,_0x203257:0x4f,_0x41c5cc:0xcd,_0x552429:0x10,_0x2dec9d:0xae,_0x2a76a3:0x4a,_0x5352d1:0x5f0,_0x97af8e:0x445,_0x5d8002:0x45b,_0x43ded8:0x417,_0x28903f:0x16e,_0x51d367:0x170,_0x411650:0x2e9,_0x2379ce:0x437,_0x94d035:0xa7,_0x5b9494:0x4a5,_0x1f2697:0x4f9,_0x1a6f49:0x547,_0x5f3f80:0x199,_0x4c3318:0x1a8,_0xab8d9:0x30b,_0x5a3250:0x39f,_0x4ee2ea:0x38d,_0x2e9181:0x4fc,_0x28fc74:0x3ba,_0x110b97:0x13e,_0x2a15e8:0x102,_0x1b28fa:0x2e,_0x39412b:0x11b,_0x4ee8c5:0xc0,_0x4030b6:0x23},_0x51936e={_0xdadeaf:0x10f,_0x2b2905:0x29,_0x27f894:0xa4},_0x41d65c={_0x30d45a:0x1c8,_0x385633:0x1c5},_0x233e7f=Math[_0x3502f9(0x37a,_0x358f4e._0x36b455,_0x358f4e._0x599c77,_0x358f4e._0x1a60f7)](0x1,Math[_0x89a379(_0x358f4e._0xba114f,0xc6,_0x358f4e._0x558efb,-_0x358f4e._0x1e4fff)](0x32,_0x4820d0['count']));function _0x3502f9(_0x4380b2,_0x296e55,_0x3e8ca3,_0x134d73){return _0x255f51(_0x3e8ca3- -_0x41d65c._0x30d45a,_0x296e55-_0x41d65c._0x385633,_0x134d73,_0x134d73-0x1c2);}function _0x89a379(_0x2a0f79,_0x1ebd85,_0x55eb50,_0x462c89){return _0x173565(_0x2a0f79-_0x51936e._0xdadeaf,_0x1ebd85-_0x51936e._0x2b2905,_0x462c89,_0x2a0f79- -_0x51936e._0x27f894);}if(_0x4820d0[_0x3502f9(0x3f9,_0x358f4e._0x1f7097,_0x358f4e._0x5181bd,0x46e)]+_0x233e7f>0x64)throw new ToolExecutionError(_0x89a379(0x37,-_0x358f4e._0x22d6ba,0x13,0xf0),{'offset':_0x4820d0['offset'],'count':_0x233e7f,'maxResults':0x64});const _0x4d09d0=cseDateRestrict(_0x4820d0[_0x3502f9(_0x358f4e._0x45f34d,_0x358f4e._0x54b628,_0x358f4e._0x15eab1,_0x358f4e._0x26ed8b)]),_0x227c74=addSiteFilters(_0x4820d0['query'],_0x4820d0['domains']);let _0x35d56a=0x0,_0x37a645=_0x4820d0[_0x3502f9(0x524,0x46a,0x455,_0x358f4e._0x1c8667)]+0x1;const _0x29b481=[];while(_0x35d56a<_0x233e7f){const _0x365e66=Math[_0x89a379(0xff,_0x358f4e._0x45653a,_0x358f4e._0x439446,0x176)](0xa,_0x233e7f-_0x35d56a),_0x4aee91=new URL(_0x3502f9(_0x358f4e._0x546a73,0x48a,_0x358f4e._0x5b339f,0x43c));_0x4aee91[_0x3502f9(0x415,_0x358f4e._0x1e1b11,_0x358f4e._0x33864d,0x400)]['set'](_0x3502f9(_0x358f4e._0x574f0d,0x487,0x522,0x469),_0x5a2d28[_0x89a379(0x170,_0x358f4e._0x474ccb,0x109,0x10e)]),_0x4aee91['searchParams'][_0x89a379(_0x358f4e._0x3f09ec,0x18,_0x358f4e._0x3015ce,_0x358f4e._0x345a1b)]('cx',_0x5a2d28['googleCseCx']),_0x4aee91[_0x89a379(0xc4,0x11f,0x173,0x1ca)][_0x3502f9(_0x358f4e._0x2a56a4,_0x358f4e._0x15c1ab,0x505,_0x358f4e._0x38608a)]('q',_0x227c74),_0x4aee91['searchParams']['set'](_0x3502f9(0x48a,_0x358f4e._0x1c5026,0x3bf,0x3ef),String(_0x365e66)),_0x4aee91[_0x89a379(0xc4,0x1e0,0x1ac,_0x358f4e._0x29d7ea)][_0x3502f9(_0x358f4e._0x4ff641,0x5e2,_0x358f4e._0x21bff5,0x542)](_0x3502f9(0x56e,_0x358f4e._0x1a053a,_0x358f4e._0x41abd3,0x5aa),String(_0x37a645)),_0x4aee91['searchParams'][_0x89a379(0xbd,_0x358f4e._0x5715ff,_0x358f4e._0x38ee0f,-_0x358f4e._0x3cfe75)](_0x89a379(0x5a,-_0x358f4e._0x55b206,0x187,_0x358f4e._0xf2b4ce),_0x4820d0[_0x3502f9(0x3f4,_0x358f4e._0x35f1ac,0x4a2,0x3e0)]?_0x3502f9(0x5f9,_0x358f4e._0x7d2b67,0x56a,0x453):'off');_0x4820d0[_0x89a379(0xd3,_0x358f4e._0x5edf7b,-_0x358f4e._0x9e6e58,_0x358f4e._0x67588c)]&&(_0x4aee91[_0x3502f9(_0x358f4e._0x40ac37,0x522,_0x358f4e._0x29a6c3,0x5b9)]['set']('hl',_0x4820d0[_0x3502f9(0x5d5,0x56f,0x51b,_0x358f4e._0x449011)]),_0x4aee91[_0x3502f9(0x553,0x495,_0x358f4e._0x33864d,0x5e6)][_0x3502f9(_0x358f4e._0x3bf640,_0x358f4e._0x524a85,_0x358f4e._0x59868f,0x616)]('lr','lang_'+_0x4820d0[_0x89a379(0xd3,0x126,0x19e,_0x358f4e._0x1756f7)]));if(_0x4820d0['region'])_0x4aee91[_0x89a379(_0x358f4e._0x5b439c,0x1bf,0xb5,_0x358f4e._0xf1d648)]['set']('gl',_0x4820d0['region'][_0x3502f9(0x400,0x3d9,0x44e,0x52f)]());if(_0x4820d0[_0x89a379(0x1c,_0x358f4e._0x2118f1,0xb5,0x127)]==='images')_0x4aee91[_0x89a379(_0x358f4e._0x4a99a0,_0x358f4e._0x3050a0,0x14f,0x7d)][_0x89a379(_0x358f4e._0x3f09ec,_0x358f4e._0x3797b0,_0x358f4e._0x386590,-0x2a)](_0x89a379(_0x358f4e._0x3d0292,_0x358f4e._0x40020b,-_0x358f4e._0x2fedc5,0x26),_0x3502f9(0x339,0x3a0,_0x358f4e._0x1ec3be,_0x358f4e._0x33f4b9));if(_0x4d09d0)_0x4aee91['searchParams'][_0x3502f9(_0x358f4e._0x38b8a9,_0x358f4e._0x1ffa29,0x505,_0x358f4e._0x511e1d)](_0x3502f9(0x657,_0x358f4e._0x36aa60,_0x358f4e._0x5cbe37,0x4b9),_0x4d09d0);const _0x2bb5d9=await fetchJson(_0x4aee91[_0x89a379(-_0x358f4e._0x22d6ba,_0x358f4e._0x5c7e2e,-_0x358f4e._0x203257,-_0x358f4e._0x41c5cc)](),_0x348e8e),_0x218ec9=_0x2bb5d9[_0x89a379(_0x358f4e._0x552429,_0x358f4e._0x2dec9d,-_0x358f4e._0x2a76a3,-0x114)]??[];if(_0x218ec9[_0x3502f9(0x493,0x56e,0x4ec,_0x358f4e._0x5352d1)]===0x0)break;const _0x22167f=_0x35d56a;for(let _0x3fc153=0x0;_0x3fc153<_0x218ec9['length'];_0x3fc153++){const _0x40379e=_0x218ec9[_0x3fc153];if(!_0x40379e)continue;const _0x49325a=_0x40379e[_0x3502f9(0x578,_0x358f4e._0x97af8e,_0x358f4e._0x5d8002,_0x358f4e._0x43ded8)]||_0x40379e[_0x89a379(-0x59,-_0x358f4e._0x28903f,-_0x358f4e._0x51d367,-0xc6)]?.[_0x3502f9(_0x358f4e._0x411650,_0x358f4e._0x2379ce,0x3d5,0x2d8)]||'',_0x2780cf=_0x40379e[_0x89a379(_0x358f4e._0x94d035,0x76,-0x4a,-0x2f)]||_0x40379e[_0x3502f9(0x4f2,_0x358f4e._0x5b9494,0x3ef,_0x358f4e._0x1f2697)]?.[_0x3502f9(0x587,0x5a8,0x4ef,_0x358f4e._0x1a6f49)]||'Untitled',_0x13ea82=_0x40379e[_0x89a379(0x15d,_0x358f4e._0x5f3f80,0x1ad,_0x358f4e._0x4c3318)]||_0x40379e[_0x3502f9(_0x358f4e._0xab8d9,0x4ce,_0x358f4e._0x5a3250,0x37e)]?.['replace'](/<[^>]+>/g,''),_0x52c301=_0x40379e['pagemap']?.[_0x3502f9(0x4d6,0x531,0x55d,0x4aa)]?.[0x0]??{};let _0x4b2011;try{_0x4b2011=new URL(_0x49325a)[_0x3502f9(0x46e,0x41a,_0x358f4e._0x4ee2ea,0x48e)];}catch{_0x4b2011=null;}_0x29b481[_0x3502f9(0x5e7,_0x358f4e._0x2e9181,0x4e8,_0x358f4e._0x28fc74)]({'title':_0x2780cf,'url':normalizeUrl(_0x49325a),'snippet':_0x13ea82??null,'displayUrl':_0x4b2011,'favicon':null,'publishedAt':_0x52c301['article:published_time']||_0x52c301['og:updated_time']||null,'source':{'engine':'google-cse','rank':_0x22167f+_0x3fc153+0x1}});}_0x35d56a+=_0x218ec9[_0x89a379(0xa4,_0x358f4e._0x110b97,_0x358f4e._0x2a15e8,-_0x358f4e._0x1b28fa)],_0x37a645+=_0x218ec9[_0x89a379(0xa4,_0x358f4e._0x39412b,_0x358f4e._0x4ee8c5,_0x358f4e._0x4030b6)];if(_0x218ec9['length']<_0x365e66)break;}return _0x29b481['slice'](0x0,_0x233e7f);}function createWebSearchTool(_0x5c047a){const _0x7efc8f={_0x4eaed6:0x77d,_0x2adeff:0x748,_0x1ac2ed:0x684,_0x3ea3fb:0x5d0,_0x40f963:0x57e,_0x20c2a8:0x619,_0x1e9e2d:0x485,_0x20b04d:0x459,_0x444328:0x331,_0x371acf:0x375,_0x50f1e0:0x3b3,_0x2e092b:0x493,_0x27db24:0x6c3,_0x1c8b40:0x713,_0x35b205:0x6be,_0x5dc3fa:0x37c,_0x37a80d:0x314,_0x1b8970:0x2fc,_0x153e00:0x334,_0x5b8ca1:0x31e,_0x3084ac:0x428,_0xe3611e:0x543,_0x3358bb:0x550,_0x540aba:0x608,_0x1a115f:0x668,_0x4f7f83:0x785,_0x4eafe7:0x77b,_0x1b7f27:0x31b,_0x4e2a3f:0x4eb,_0x6994e5:0x42f,_0x415dfe:0x3a8,_0x5dc47c:0x4a0,_0x33f91f:0x4e1},_0x55f34a={_0xb9c605:0x2cf,_0x2541d7:0x21c,_0x492bd0:0x3f3,_0x4c42a6:0x114,_0x51d81a:0xca,_0x4cf84c:0x4c,_0x42c5b9:0xb6,_0x5aab72:0xf1,_0x5ca081:0x107,_0x402d05:0x251,_0x468661:0x4f,_0xf4a073:0x167,_0x4c7382:0x64,_0x38fac4:0x12a,_0x4ae9e4:0x1dd,_0x2dced6:0x16b,_0x5ef552:0x8f,_0x1c5cdd:0x245,_0x204811:0x154,_0x708506:0x4f,_0x53ba9a:0xc7,_0x218300:0x279,_0x5b4ae3:0x2c6,_0x3ea087:0x1d8,_0x14bf1f:0x5f,_0x85d527:0x171,_0x39a67b:0x8d,_0x39194f:0x90,_0x5eb2e5:0x143,_0x32ecdb:0x125,_0x574f07:0x85,_0x34e7ed:0x177,_0x38f1f1:0x268,_0x46457a:0x112,_0x3e3210:0x277,_0x1fb8f6:0x154,_0x8d45f2:0x2d7,_0x272a13:0x102,_0x1f5c88:0x14,_0x291ffb:0x13,_0x31c81a:0x23e,_0x20d6e5:0x4d,_0x29b805:0x51,_0x457d88:0x277,_0x469a98:0x1e1,_0x321bfd:0x1ab,_0x5da372:0x16a,_0x1f9b7d:0x79,_0x5b17af:0xee,_0x23d9ee:0xe0,_0x3073e8:0xa6,_0x40476c:0x151,_0x2b123d:0x26e,_0x3bd198:0x20e,_0x4068a1:0x2a6,_0x92816e:0x11a,_0xba400:0xba,_0x34370a:0x2bd,_0x1ab89c:0x429,_0x2fd572:0xd6,_0x5cca4:0x84,_0x4db3b5:0x3c,_0x2eba5a:0x7e,_0x4790d1:0x96,_0x2034e8:0x1e0,_0x3d50e6:0x17e,_0x53260f:0x299,_0x51b07b:0x2e9,_0x4e49c4:0x57,_0x524997:0x98,_0x1b1c54:0xe1,_0x4e569a:0x37},_0x5432f7={_0x1dcf2d:0x109},_0x4c6ec3={_0x363f76:0x51};function _0x10e62f(_0x156ace,_0x100309,_0x5e0b49,_0x4a5893){return _0x255f51(_0x156ace- -0x28d,_0x100309-0x1da,_0x4a5893,_0x4a5893-_0x4c6ec3._0x363f76);}function _0x52ff2b(_0x194227,_0x4d6643,_0x2cd31f,_0x17c1e7){return _0x255f51(_0x17c1e7- -0x1,_0x4d6643-_0x5432f7._0x1dcf2d,_0x194227,_0x17c1e7-0x20);}if(!_0x5c047a[_0x52ff2b(0x700,_0x7efc8f._0x4eaed6,0x66d,0x77f)])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_KEY');if(!_0x5c047a[_0x52ff2b(0x656,0x5c4,_0x7efc8f._0x2adeff,_0x7efc8f._0x1ac2ed)])throw new Error(_0x52ff2b(_0x7efc8f._0x3ea3fb,0x70c,_0x7efc8f._0x40f963,_0x7efc8f._0x20c2a8));const _0x5f1617=_0x5c047a[_0x10e62f(_0x7efc8f._0x1e9e2d,_0x7efc8f._0x20b04d,0x595,0x580)]??_0x10e62f(_0x7efc8f._0x444328,0x395,_0x7efc8f._0x371acf,0x38b);return defineTool({'name':_0x5f1617,'description':_0x10e62f(_0x7efc8f._0x50f1e0,_0x7efc8f._0x2e092b,0x2f7,0x2dd),'inputSchema':{'type':_0x10e62f(0x3d0,0x48e,0x4d7,0x392),'properties':{'description':{'type':_0x52ff2b(0x7b5,_0x7efc8f._0x27db24,_0x7efc8f._0x1c8b40,_0x7efc8f._0x35b205)},'query':{'type':'string'},'count':{'type':_0x10e62f(_0x7efc8f._0x5dc3fa,_0x7efc8f._0x37a80d,_0x7efc8f._0x1b8970,0x2be)},'offset':{'type':_0x10e62f(0x37c,_0x7efc8f._0x153e00,_0x7efc8f._0x5b8ca1,0x34d)},'domains':{'type':_0x10e62f(0x47f,_0x7efc8f._0x3084ac,_0x7efc8f._0xe3611e,0x56b),'items':{'type':'string'}},'recencyDays':{'type':_0x52ff2b(0x6b5,_0x7efc8f._0x3358bb,0x5ae,_0x7efc8f._0x540aba)},'lang':{'type':'string'},'region':{'type':_0x52ff2b(0x767,_0x7efc8f._0x1a115f,_0x7efc8f._0x4f7f83,_0x7efc8f._0x35b205)},'safe':{'type':_0x52ff2b(0x5e7,_0x7efc8f._0x4eafe7,0x5cd,0x6bb)},'type':{'type':_0x10e62f(0x432,0x43b,_0x7efc8f._0x1b7f27,_0x7efc8f._0x4e2a3f)},'hydrateMeta':{'type':_0x10e62f(_0x7efc8f._0x6994e5,_0x7efc8f._0x415dfe,0x319,0x42e)}},'required':[_0x10e62f(_0x7efc8f._0x5dc47c,0x54e,0x55b,_0x7efc8f._0x33f91f)]},async *'execute'(_0x114d69,_0x349228){const _0x2fa025={_0x266841:0x14,_0x5f5466:0x96,_0x15e66f:0x4b,_0x224afc:0xc3,_0x1c6330:0xbf,_0x2f5a79:0x21,_0x3e59a7:0xe7,_0x3b4d20:0xc8},_0x6ffb14={_0xe7a331:0xbf,_0x241d02:0x16b},_0x28cdcf={_0x488164:0x91},_0x2a232a=_0x114d69[_0x208bdf(0x2f0,_0x55f34a._0xb9c605,_0x55f34a._0x2541d7,_0x55f34a._0x492bd0)][_0x208bdf(_0x55f34a._0x4c42a6,0x1e8,_0x55f34a._0x51d81a,0x1de)]();if(!_0x2a232a)throw new ToolExecutionError(_0x347704(0x8f,0x48,0xbb,0x84));function _0x347704(_0x5ee6c3,_0x36e7ae,_0x1c47d8,_0x5b1f5b){return _0x10e62f(_0x5b1f5b- -0x46a,_0x36e7ae-0x198,_0x1c47d8-_0x28cdcf._0x488164,_0x36e7ae);}function _0x208bdf(_0x8b31dd,_0x37a57e,_0x3e268d,_0x2184c9){return _0x52ff2b(_0x2184c9,_0x37a57e-_0x6ffb14._0xe7a331,_0x3e268d-_0x6ffb14._0x241d02,_0x8b31dd- -0x43c);}const _0x289907={'query':_0x2a232a,'count':Math['max'](0x1,Math[_0x347704(0x10f,-_0x55f34a._0x4cf84c,0x57,0x18)](0x32,Math[_0x208bdf(0x153,0x19b,0xb3,0x205)](_0x114d69[_0x347704(0x12a,-0x21,_0x55f34a._0x42c5b9,0x7f)]??0xa))),'offset':Math[_0x347704(-_0x55f34a._0x5aab72,-_0x55f34a._0x5ca081,-_0x55f34a._0x402d05,-0x154)](0x0,Math[_0x347704(-0x93,-0x75,-_0x55f34a._0x468661,-_0x55f34a._0xf4a073)](_0x114d69[_0x208bdf(0x1e0,0x1b9,0x276,0x11b)]??0x0)),'domains':_0x114d69[_0x347704(-_0x55f34a._0x4c7382,-_0x55f34a._0x38fac4,-_0x55f34a._0x4ae9e4,-_0x55f34a._0x2dced6)]??[],'recencyDays':Math[_0x347704(-0x1c4,-_0x55f34a._0x5ef552,-_0x55f34a._0x1c5cdd,-_0x55f34a._0x204811)](0x0,Math[_0x347704(-_0x55f34a._0x708506,-0x251,-_0x55f34a._0x53ba9a,-0x167)](_0x114d69[_0x208bdf(_0x55f34a._0x218300,_0x55f34a._0x5b4ae3,_0x55f34a._0x3ea087,0x160)]??0x0)),'lang':_0x114d69[_0x347704(-0xa5,0xbb,-_0x55f34a._0x14bf1f,-0x14)]??'en','region':_0x114d69['region']??'','safe':_0x114d69[_0x347704(-0xc0,-_0x55f34a._0x85d527,-0xe8,-_0x55f34a._0x39a67b)]??!![],'type':normalizeType(_0x114d69['type']),'hydrateMeta':_0x114d69[_0x347704(-0x144,-0xf3,-_0x55f34a._0x39194f,-_0x55f34a._0x5eb2e5)]??![]};let _0x41a9b0=await searchGoogleCse(_0x5c047a,_0x289907,_0x349228[_0x347704(_0x55f34a._0x32ecdb,-0x87,0x15e,_0x55f34a._0x574f07)]);_0x289907[_0x208bdf(_0x55f34a._0x34e7ed,_0x55f34a._0x38f1f1,_0x55f34a._0x46457a,0x1b4)]&&_0x41a9b0[_0x208bdf(_0x55f34a._0x3e3210,0x1f1,_0x55f34a._0x1fb8f6,_0x55f34a._0x8d45f2)]>0x0&&(_0x41a9b0=await hydrateResults(_0x41a9b0,_0x289907[_0x347704(0x35,0x32,-_0x55f34a._0x272a13,-_0x55f34a._0x1f5c88)],_0x349228[_0x347704(0xe1,-_0x55f34a._0x291ffb,-0x68,0x85)]));const _0x4604a1=new Set();_0x41a9b0=_0x41a9b0['filter'](_0x6b842=>{const _0x1cede8={_0x3d79f8:0xcb},_0x40940c=_0x6b842[_0x54348b(0x3c,0x71,_0x2fa025._0x266841,-_0x2fa025._0x5f5466)][_0x54348b(0xa9,-_0x2fa025._0x15e66f,-_0x2fa025._0x224afc,-0xe3)]();function _0x54348b(_0x1ca9f2,_0x4ca610,_0x6452d4,_0x293d74){return _0x347704(_0x1ca9f2-0x13f,_0x1ca9f2,_0x6452d4-_0x1cede8._0x3d79f8,_0x4ca610-0x6e);}if(!_0x40940c||_0x4604a1[_0x54348b(-0xc9,0x28,_0x2fa025._0x1c6330,-_0x2fa025._0x2f5a79)](_0x40940c))return![];function _0x586ae6(_0x287b4d,_0x342d64,_0x5cddb8,_0x55f3c1){return _0x208bdf(_0x55f3c1-0x2f3,_0x342d64-0x9d,_0x5cddb8-0xf5,_0x342d64);}return _0x4604a1[_0x54348b(-0x184,-_0x2fa025._0x3e59a7,-_0x2fa025._0x3b4d20,0x2e)](_0x40940c),!![];}),_0x41a9b0=_0x41a9b0[_0x208bdf(_0x55f34a._0x85d527,_0x55f34a._0x31c81a,_0x55f34a._0x20d6e5,0x231)]((_0x4ba926,_0x167465)=>({..._0x4ba926,'source':{..._0x4ba926['source'],'rank':_0x167465+0x1}}));const _0x1c7668={};if(_0x289907[_0x208bdf(0x14f,_0x55f34a._0x29b805,0xba,0x1d7)][_0x208bdf(_0x55f34a._0x457d88,_0x55f34a._0x469a98,0x1bd,_0x55f34a._0x321bfd)]>0x0)_0x1c7668[_0x347704(-0xe6,-0x96,-_0x55f34a._0x5da372,-_0x55f34a._0x2dced6)]=_0x289907['domains'];if(_0x289907[_0x347704(-0x37,_0x55f34a._0x1f9b7d,-_0x55f34a._0x5b17af,-0x41)]>0x0)_0x1c7668[_0x347704(-_0x55f34a._0x23d9ee,-_0x55f34a._0x3073e8,0xd6,-0x41)]=_0x289907[_0x347704(-0x55,-_0x55f34a._0x40476c,0x57,-0x41)];if(_0x289907[_0x208bdf(0x2a6,_0x55f34a._0x2b123d,0x3cc,_0x55f34a._0x3bd198)]!=='en')_0x1c7668[_0x208bdf(_0x55f34a._0x4068a1,0x35e,0x2a6,0x3a9)]=_0x289907[_0x347704(-_0x55f34a._0x92816e,-_0x55f34a._0xba400,_0x55f34a._0x39194f,-_0x55f34a._0x1f5c88)];if(_0x289907[_0x208bdf(0x2fb,0x219,0x200,0x3ad)])_0x1c7668[_0x208bdf(0x2fb,_0x55f34a._0x34370a,_0x55f34a._0x1ab89c,0x21a)]=_0x289907['region'];return yield createToolOutput(formatResults(_0x41a9b0),{'engine':_0x347704(-_0x55f34a._0x2fd572,-_0x55f34a._0x5cca4,_0x55f34a._0x4db3b5,-0x1b),'count':_0x41a9b0['length'],'items':_0x41a9b0,'query':_0x289907['query'],...Object[_0x208bdf(0x121,0xa5,0x21a,0x151)](_0x1c7668)[_0x347704(_0x55f34a._0x2eba5a,-0xd7,_0x55f34a._0x4790d1,-0x43)]>0x0?{'appliedFilters':_0x1c7668}:{},'offset':_0x289907[_0x208bdf(_0x55f34a._0x2034e8,_0x55f34a._0x3d50e6,_0x55f34a._0x53260f,_0x55f34a._0x51b07b)],'totalRequested':_0x289907[_0x347704(-_0x55f34a._0x4e49c4,-_0x55f34a._0x524997,0x128,0x7f)],'hydrated':_0x289907[_0x347704(-_0x55f34a._0x1b1c54,-0x17f,-_0x55f34a._0x4e569a,-_0x55f34a._0x5eb2e5)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
1
+ (function(_0xd3524f,_0x6b9d11){const _0x23b7fe={_0x4315e8:0x26b,_0x4c408d:0x34e,_0x41526c:0x2f2,_0x23a504:0x143,_0x4de9e2:0x11e,_0x324852:0x16c,_0x456048:0x382,_0x43fee6:0x265,_0x17dde6:0x28e,_0xc3afa7:0x3de,_0x37b9fb:0x410,_0x269d75:0x38a,_0xe9f060:0x30b,_0x429215:0x408,_0x340af9:0x48f,_0x1a4d26:0x284,_0x39306c:0x278,_0x19982a:0x2c8,_0x167fce:0x2c9,_0x234e5a:0x207,_0x2c6ad7:0x1d3,_0x733486:0x1fd,_0x363961:0x248,_0x37c200:0x274,_0x2187f9:0x27b,_0x314da0:0x2c3,_0x59cf6a:0x1f3,_0x299fa2:0x323},_0x304b08={_0x191c96:0x375},_0x31548a={_0x5c3b2e:0x11f},_0x23930b=_0xd3524f();function _0x5b7364(_0x2ceab8,_0x150ff4,_0x22faea,_0x360586){return _0x7ca6(_0x2ceab8-_0x31548a._0x5c3b2e,_0x360586);}function _0x13fd74(_0x4248b6,_0x59419d,_0x16db16,_0x716e0c){return _0x7ca6(_0x59419d- -_0x304b08._0x191c96,_0x716e0c);}while(!![]){try{const _0x164963=-parseInt(_0x13fd74(-0x214,-0x23f,-_0x23b7fe._0x4315e8,-0x2a5))/0x1+parseInt(_0x5b7364(_0x23b7fe._0x4c408d,0x270,_0x23b7fe._0x41526c,0x22b))/0x2*(parseInt(_0x13fd74(-0x6e,-_0x23b7fe._0x23a504,-_0x23b7fe._0x4de9e2,-_0x23b7fe._0x324852))/0x3)+parseInt(_0x5b7364(_0x23b7fe._0x456048,0x25d,_0x23b7fe._0x43fee6,_0x23b7fe._0x17dde6))/0x4+-parseInt(_0x5b7364(0x2d0,0x23d,0x2b6,_0x23b7fe._0xc3afa7))/0x5*(parseInt(_0x5b7364(_0x23b7fe._0x37b9fb,0x447,_0x23b7fe._0x269d75,_0x23b7fe._0xe9f060))/0x6)+-parseInt(_0x5b7364(_0x23b7fe._0x429215,_0x23b7fe._0x340af9,0x49c,0x304))/0x7*(-parseInt(_0x13fd74(-0x269,-_0x23b7fe._0x1a4d26,-_0x23b7fe._0x39306c,-0x1ee))/0x8)+-parseInt(_0x13fd74(-_0x23b7fe._0x19982a,-_0x23b7fe._0x167fce,-_0x23b7fe._0x234e5a,-_0x23b7fe._0x2c6ad7))/0x9*(-parseInt(_0x13fd74(-_0x23b7fe._0x733486,-0x1ea,-_0x23b7fe._0x363961,-0x2dd))/0xa)+parseInt(_0x13fd74(-0x118,-0x1a5,-0xe3,-_0x23b7fe._0x37c200))/0xb*(-parseInt(_0x13fd74(-_0x23b7fe._0x2187f9,-_0x23b7fe._0x314da0,-_0x23b7fe._0x59cf6a,-_0x23b7fe._0x299fa2))/0xc);if(_0x164963===_0x6b9d11)break;else _0x23930b['push'](_0x23930b['shift']());}catch(_0x48a9b4){_0x23930b['push'](_0x23930b['shift']());}}}(_0x2759,0x57d14));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-P54V754C.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x49be13 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x22ef16(0x16e,0x193,0x182,0x15d),'.tsx':_0x324926(-0x116,-0x14f,-0x41,-0x119),'.js':_0x22ef16(0x271,0x1e8,0x140,0xcd),'.jsx':_0x22ef16(0x1de,0x224,0x34d,0x2f7),'.mjs':'javascript','.cjs':_0x22ef16(0x227,0x1e8,0x266,0x25e),'.mts':'typescript','.cts':_0x324926(-0x6b,-0x4e,-0x122,-0x74),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0x407b64){const _0x4200ce={_0x228bf9:0xbc,_0x53f45e:0xe7,_0x4bc111:0x5c,_0x2dd95c:0x32},_0x2fc245={_0x469957:0x95,_0x1b5671:0x6f},_0x23819c={_0x4c4ade:0x103};function _0x4baf4d(_0x409ee5,_0x30e651,_0x143341,_0x30c636){return _0x22ef16(_0x30e651,_0x30c636- -_0x23819c._0x4c4ade,_0x143341-0xcd,_0x30c636-0x191);}function _0xcf145c(_0x155d4a,_0x1b33ab,_0x6399b1,_0x34870a){return _0x324926(_0x155d4a- -_0x2fc245._0x469957,_0x6399b1,_0x6399b1-0x100,_0x34870a-_0x2fc245._0x1b5671);}return EXTENSION_TO_LANGUAGE[_0x49be13[_0x4baf4d(0x1c,_0x4200ce._0x228bf9,0x6e,_0x4200ce._0x53f45e)](_0x407b64)[_0xcf145c(_0x4200ce._0x4bc111,-_0x4200ce._0x2dd95c,0x43,0xb5)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x1281c3){const _0x31b90d={_0x57657d:0x1d,_0xd38d26:0x33,_0x38cc3f:0xa0},_0x4f29b3={_0x253cbe:0x1a2};function _0x4c194c(_0x547a0d,_0x4768f0,_0x4c6ab5,_0x411ff6){return _0x22ef16(_0x411ff6,_0x4768f0- -0x14d,_0x4c6ab5-_0x4f29b3._0x253cbe,_0x411ff6-0x113);}return pathToFileURL(_0x1281c3)[_0x4c194c(_0x31b90d._0x57657d,_0x31b90d._0xd38d26,0x1b,_0x31b90d._0x38cc3f)]();}function textDocumentPosition(_0xbf8d3b){const _0x4f9cf8={_0x91bc6:0x1f3,_0x26cac3:0x1ea,_0xd48e1e:0xf2,_0x2cf685:0x1c3,_0x16e8ba:0x1f5,_0x14c912:0x1de},_0x3954fc={_0x13e7b6:0x50,_0x6edc17:0x176},_0x3d175e={_0x168b77:0x169,_0x2b9d72:0x81};function _0x1d47a6(_0x3b11cd,_0x1889b7,_0x1f66d0,_0x2a6309){return _0x324926(_0x3b11cd-_0x3d175e._0x168b77,_0x2a6309,_0x1f66d0-_0x3d175e._0x2b9d72,_0x2a6309-0x10f);}function _0x2eb53b(_0x83743d,_0x4d77a6,_0x2da49a,_0x1b1b68){return _0x324926(_0x4d77a6- -_0x3954fc._0x13e7b6,_0x1b1b68,_0x2da49a-_0x3954fc._0x6edc17,_0x1b1b68-0x103);}return{'textDocument':{'uri':uriForPath(_0xbf8d3b[_0x1d47a6(_0x4f9cf8._0x91bc6,_0x4f9cf8._0x26cac3,_0x4f9cf8._0xd48e1e,_0x4f9cf8._0x2cf685)])},'position':{'line':_0xbf8d3b[_0x1d47a6(0x205,0x120,_0x4f9cf8._0x16e8ba,_0x4f9cf8._0x14c912)],'character':_0xbf8d3b[_0x2eb53b(-0x115,-0x7c,0xb4,-0x191)]}};}function normalizeLocations(_0x409988){if(!_0x409988)return[];return Array['isArray'](_0x409988)?_0x409988:[_0x409988];}async function createLspClient(_0xee5810){const _0x4c11c6={_0x26741b:0x5b,_0x22e952:0x196,_0x3ab21e:0x119,_0x5e744e:0x1df,_0x3a06f7:0x284,_0x5e218e:0x1ad,_0x98a3e2:0xb5,_0x2747a4:0x153,_0x21dd33:0x95,_0xbc168d:0x130,_0x304619:0xee,_0x463bee:0xfe,_0x50c87e:0x80,_0x5c59c4:0x1ee,_0x24790f:0xd9,_0x391bf9:0x1a,_0x1bdf5b:0x258,_0x380040:0x4e,_0x4e8de4:0x251,_0x568591:0x165,_0x26ecb5:0xda,_0x55e565:0xee,_0x522b99:0xb3,_0x423cd4:0xd4,_0x41138a:0x25,_0x2c031c:0xe,_0xa756a2:0x1ab,_0x2d27c2:0x1d0,_0x323db3:0x12,_0x18d962:0x20,_0x29e927:0xdf,_0x3a2b9d:0x18,_0x4ab33c:0x8a,_0x298fb9:0x75,_0x4d6253:0x91},_0x3b6fc3={_0x5751e9:0x511,_0xf06f42:0x140,_0x52da76:0x297,_0x52886d:0x516,_0x149ffb:0x459,_0x2c5b33:0x638},_0x3c6a64={_0x3be3c4:0x147,_0x8fb459:0x28,_0xd7e252:0x7a,_0xc14c10:0x19c,_0x2ab8f1:0xdc,_0x5d8c27:0xc},_0x4e59c3={_0xbca23a:0x58},_0x3517={_0xfb007e:0xb6,_0x4ea988:0xd2,_0x5966f5:0x13b,_0x463fad:0x87,_0x4492c4:0x25},_0x306c91={_0x4379f8:0x1fa,_0x14de7a:0x2b9,_0x5cf8ca:0x172,_0x59b311:0x265},_0x42764={_0x4a128c:0xe3},_0x1e2fca={_0x2f0520:0x55},_0x27eab6={_0x457147:0x96,_0x291fa5:0x18a},_0x2e487c={_0x520d23:0x60,_0x11f154:0x112,_0x55472f:0x79,_0x4aff4a:0x78},_0x1d4df9={_0x5eb8b3:0x67,_0x22905e:0x137},_0x2d2e79={_0x25ee0a:0x79},_0x164b66={_0x1fc527:0x3b6,_0x5b25cb:0x453,_0x393781:0x331},_0x537c33={_0x575791:0x139},_0x32df53={_0x12b8d9:0x2d4},_0x260ca4={_0x7fa49e:0x10a,_0x3fba57:0xb3,_0x5c9b5d:0xd1},_0x55aeb3={_0x2d8ecc:0x79,_0x25ea8a:0x1a6},_0x31cfe6={_0x23d2b2:0x109},_0x180c92={_0x31b29d:0x296,_0x572771:0x221,_0x3e5ba4:0x1a8,_0xfb821d:0x2a3,_0x5c363f:0x2d2},_0x4ecc1b={_0x20d5b8:0xf3,_0x15bdb0:0x267,_0x3b7256:0x139},_0x3d4dbf={_0x2cd006:0x501,_0x30f4e6:0x491,_0x550d54:0x3d6,_0x16616b:0x48d,_0x9e1bcf:0x4a8},_0x19ede9={_0x146185:0x4b1,_0xf43a38:0x12},_0x3dbab2={_0x1b527c:0x1f2,_0xa082cd:0xda},_0x1572cd={_0x29ef54:0x113,_0x5a6bdf:0x188,_0x295437:0x124,_0x206c69:0x31a,_0x429542:0x71,_0xdf6df0:0x1e0,_0x41d39c:0x81,_0x3ad1d5:0xd0},_0x4681fa={_0x1f2810:0x172,_0x13dbed:0x239},_0x3c3120=_0xee5810[_0x34a1f7(0x248,_0x4c11c6._0x26741b,_0x4c11c6._0x22e952,_0x4c11c6._0x3ab21e)][_0x34a1f7(0x65,0x1b4,0xed,0x130)][_0x34a1f7(_0x4c11c6._0x5e744e,0x1d8,_0x4c11c6._0x3a06f7,0x288)],_0x5044f7=_0xee5810[_0x480380(-0x8b,-0x12a,-0x86,-_0x4c11c6._0x5e218e)][_0x34a1f7(_0x4c11c6._0x98a3e2,_0x4c11c6._0x2747a4,_0x4c11c6._0x21dd33,_0x4c11c6._0xbc168d)][_0x34a1f7(_0x4c11c6._0x304619,_0x4c11c6._0x463bee,-_0x4c11c6._0x50c87e,0x91)];if(!_0x3c3120||!_0x5044f7)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x37039e=createMessageConnection(new StreamMessageReader(_0x3c3120),new StreamMessageWriter(_0x5044f7)),_0x130787=new Map(),_0x204e83=new Map();let _0x37897a=![];_0x37039e[_0x480380(_0x4c11c6._0x5c59c4,0x1e2,0xc9,0x1ad)](_0x480380(-_0x4c11c6._0x24790f,-0xd7,0x4c,-_0x4c11c6._0x391bf9),_0x546138=>{const _0x45767a={_0x508da5:0xe5,_0x44e05f:0x29,_0x3d3a54:0x177};_0x130787[_0x4359ea(_0x1572cd._0x29ef54,0x15c,0x280,0xc5)](_0x546138[_0x4359ea(0xcc,_0x1572cd._0x5a6bdf,_0x1572cd._0x295437,0x27c)],_0x546138[_0x4359ea(0x310,_0x1572cd._0x206c69,0x3ba,0x22d)]);const _0x880bb6=_0x204e83['get'](_0x546138[_0x4359ea(0xcf,0x188,_0x1572cd._0x429542,_0x1572cd._0xdf6df0)]);function _0x482611(_0x1e3ee0,_0x533b21,_0x281475,_0x59fb7c){return _0x480380(_0x59fb7c,_0x533b21-_0x45767a._0x508da5,_0x1e3ee0- -_0x45767a._0x44e05f,_0x59fb7c-_0x45767a._0x3d3a54);}function _0x4359ea(_0x4ffd1d,_0x44d3dd,_0x314026,_0x249031){return _0x480380(_0x314026,_0x44d3dd-_0x4681fa._0x1f2810,_0x44d3dd-_0x4681fa._0x13dbed,_0x249031-0x129);}if(!_0x880bb6)return;_0x204e83[_0x482611(0x64,0xf8,0x30,0x39)](_0x546138[_0x4359ea(_0x1572cd._0x41d39c,0x188,_0x1572cd._0x3ad1d5,0x259)]);for(const _0x1701ca of _0x880bb6)_0x1701ca();});function _0x480380(_0x9b5067,_0x2286c1,_0x215649,_0x5ad5b2){return _0x22ef16(_0x9b5067,_0x215649- -0x1ec,_0x215649-0xed,_0x5ad5b2-0x1b1);}_0x37039e[_0x34a1f7(_0x4c11c6._0x1bdf5b,_0x4c11c6._0x380040,_0x4c11c6._0x4e8de4,0x139)]();const _0x1f9b01=await _0x37039e['sendRequest']('initialize',{'processId':process['pid'],'rootUri':uriForPath(_0xee5810[_0x34a1f7(0x139,0x46,_0x4c11c6._0x568591,0xde)]),'workspaceFolders':[{'uri':uriForPath(_0xee5810[_0x480380(-0xf7,-_0x4c11c6._0x26ecb5,-0xc1,0x23)]),'name':_0xee5810[_0x34a1f7(0x16c,0xd4,_0x4c11c6._0x55e565,_0x4c11c6._0x522b99)]['id']}],'initializationOptions':_0xee5810['handle'][_0x480380(-_0x4c11c6._0x423cd4,_0x4c11c6._0x41138a,-0x69,0x2c)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x480380(_0x4c11c6._0x2c031c,_0x4c11c6._0xa756a2,0x90,0x66)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x37039e['sendNotification'](_0x34a1f7(_0x4c11c6._0x5e744e,0xbf,_0x4c11c6._0x2d27c2,0x1ad),{});function _0x34a1f7(_0x23bda5,_0xb832ec,_0x5738e7,_0x3e4783){return _0x22ef16(_0x23bda5,_0x3e4783- -0x4d,_0x5738e7-_0x3dbab2._0x1b527c,_0x3e4783-_0x3dbab2._0xa082cd);}const _0x5ccee7={'serverId':_0xee5810[_0x34a1f7(0xbf,_0x4c11c6._0x323db3,_0x4c11c6._0x18d962,_0x4c11c6._0x522b99)]['id'],'root':_0xee5810[_0x34a1f7(_0x4c11c6._0x29e927,0x1bd,-_0x4c11c6._0x3a2b9d,0xde)],'connection':_0x37039e,'diagnostics':_0x130787,'capabilities':_0x1f9b01[_0x480380(_0x4c11c6._0x4ab33c,0x4c,_0x4c11c6._0x298fb9,_0x4c11c6._0x4d6253)]??{},'notify':{async 'open'({path:_0x33c9b2}){const _0x38d6cb={_0x2747e1:0x1fe};function _0x3a9755(_0x294647,_0xd1762b,_0xac65f7,_0x2bef19){return _0x480380(_0xd1762b,_0xd1762b-0x1d0,_0x2bef19-_0x19ede9._0x146185,_0x2bef19-_0x19ede9._0xf43a38);}const _0x102042=await readFile(_0x33c9b2,_0x3a9755(_0x3d4dbf._0x2cd006,0x3b7,_0x3d4dbf._0x30f4e6,0x494));function _0x2311f7(_0xf97a32,_0x2de77b,_0x521ee9,_0x54e68f){return _0x34a1f7(_0x521ee9,_0x2de77b-0x174,_0x521ee9-0x1ad,_0xf97a32- -_0x38d6cb._0x2747e1);}_0x37039e[_0x3a9755(_0x3d4dbf._0x550d54,0x393,_0x3d4dbf._0x16616b,_0x3d4dbf._0x9e1bcf)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x33c9b2),'languageId':getLanguageId(_0x33c9b2)??'plaintext','version':0x1,'text':_0x102042}});},async 'change'({path:_0x4ab936,version:_0x941511}){const _0x1e5cae={_0x109774:0x99};function _0x5ec397(_0x2a6bf6,_0x45b65e,_0x3c4df8,_0x51897e){return _0x34a1f7(_0x45b65e,_0x45b65e-0xa8,_0x3c4df8-_0x1e5cae._0x109774,_0x3c4df8- -0x5d);}const _0x412902=await readFile(_0x4ab936,'utf8');_0x37039e[_0x5ec397(_0x4ecc1b._0x20d5b8,_0x4ecc1b._0x15bdb0,_0x4ecc1b._0x3b7256,0xe3)]('textDocument/didChange',{'textDocument':{'uri':uriForPath(_0x4ab936),'version':_0x941511},'contentChanges':[{'text':_0x412902}]});},async 'close'({path:_0x4ac683}){function _0x5659ce(_0x2d5109,_0x24a5de,_0x114aca,_0x2906a3){return _0x34a1f7(_0x114aca,_0x24a5de-0xb,_0x114aca-0x2d,_0x2906a3-0x5);}function _0x2a74c3(_0x45ac34,_0xe87882,_0x2033fd,_0x5be8fe){return _0x34a1f7(_0x2033fd,_0xe87882-0xf8,_0x2033fd-0x17,_0xe87882-0x34e);}_0x37039e[_0x5659ce(_0x180c92._0x31b29d,0x1af,_0x180c92._0x572771,0x19b)](_0x5659ce(_0x180c92._0x3e5ba4,0x383,_0x180c92._0xfb821d,_0x180c92._0x5c363f),{'textDocument':{'uri':uriForPath(_0x4ac683)}});}},'request':{async 'definition'(_0x3ae084){function _0x28bc75(_0x3870c0,_0x1baff4,_0x4fb09b,_0x4bbd95){return _0x34a1f7(_0x4fb09b,_0x1baff4-_0x31cfe6._0x23d2b2,_0x4fb09b-0x29,_0x3870c0- -0x11e);}return normalizeLocations(await _0x37039e[_0x28bc75(_0x55aeb3._0x2d8ecc,_0x55aeb3._0x25ea8a,0x180,0x139)]('textDocument/definition',textDocumentPosition(_0x3ae084)));},async 'references'(_0x4504c7){const _0x4d26c9={_0x6a2b52:0x1ce};function _0x2fa185(_0x5c8628,_0x330d8b,_0x44e1ff,_0x1093bf){return _0x34a1f7(_0x44e1ff,_0x330d8b-0x9a,_0x44e1ff-_0x4d26c9._0x6a2b52,_0x1093bf- -0x2dd);}return normalizeLocations(await _0x37039e['sendRequest'](_0x2fa185(-0x1c0,-_0x260ca4._0x7fa49e,-_0x260ca4._0x3fba57,-_0x260ca4._0x5c9b5d),{...textDocumentPosition(_0x4504c7),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0xc9dff3){function _0x24873d(_0x51578d,_0x299f9c,_0x21d88c,_0x16d96b){return _0x34a1f7(_0x21d88c,_0x299f9c-0x4a,_0x21d88c-0x8,_0x51578d- -_0x32df53._0x12b8d9);}return await _0x37039e[_0x24873d(-0x13d,-0x101,-0x213,-_0x537c33._0x575791)]('textDocument/hover',textDocumentPosition(_0xc9dff3))??null;},async 'documentSymbol'(_0x1656d2){const _0xaf1dfb={_0x2b2e4c:0x1e5};function _0x21b556(_0xf4050a,_0x551892,_0xec6e81,_0x3c5078){return _0x34a1f7(_0x3c5078,_0x551892-0xed,_0xec6e81-0x1da,_0xec6e81-_0xaf1dfb._0x2b2e4c);}return await _0x37039e['sendRequest'](_0x21b556(_0x164b66._0x1fc527,_0x164b66._0x5b25cb,_0x164b66._0x393781,0x298),{'textDocument':{'uri':uriForPath(_0x1656d2)}})??[];},async 'workspaceSymbol'(_0x1145c4){function _0x2f78db(_0x23891b,_0x576bfd,_0x2d7a00,_0x5f0304){return _0x480380(_0x23891b,_0x576bfd-_0x2d2e79._0x25ee0a,_0x576bfd-0x479,_0x5f0304-0x1f4);}function _0x405175(_0x4258f0,_0x3c071c,_0x134b75,_0x416d22){return _0x34a1f7(_0x416d22,_0x3c071c-0xd3,_0x134b75-_0x1d4df9._0x5eb8b3,_0x4258f0- -_0x1d4df9._0x22905e);}return await _0x37039e[_0x405175(_0x2e487c._0x520d23,_0x2e487c._0x11f154,_0x2e487c._0x55472f,_0x2e487c._0x4aff4a)](_0x405175(0x122,0xc4,-0x6,0x1bf),{'query':_0x1145c4})??[];},async 'implementation'(_0x1aff6a){const _0x3d8536={_0x2aa59a:0x1bd};function _0x671950(_0x44e5f4,_0x43f30d,_0x52ac43,_0x59a8b0){return _0x34a1f7(_0x52ac43,_0x43f30d-_0x3d8536._0x2aa59a,_0x52ac43-0x78,_0x43f30d- -0x101);}return normalizeLocations(await _0x37039e[_0x671950(0x58,_0x27eab6._0x457147,_0x27eab6._0x291fa5,-0x40)]('textDocument/implementation',textDocumentPosition(_0x1aff6a)));},async 'prepareCallHierarchy'(_0x5b79ee){function _0x2aafaf(_0x5706ad,_0x18f40c,_0x1a76b2,_0x550434){return _0x480380(_0x1a76b2,_0x18f40c-0xee,_0x5706ad-0x202,_0x550434-_0x1e2fca._0x2f0520);}function _0x26c252(_0x5a23c0,_0x16d3e9,_0x3bd70f,_0x549d1b){return _0x480380(_0x549d1b,_0x16d3e9-0x2e,_0x16d3e9-_0x42764._0x4a128c,_0x549d1b-0x142);}return await _0x37039e[_0x2aafaf(_0x306c91._0x4379f8,_0x306c91._0x14de7a,0xcb,0x1c8)](_0x2aafaf(_0x306c91._0x5cf8ca,0x1de,0x90,_0x306c91._0x59b311),textDocumentPosition(_0x5b79ee))??[];},async 'incomingCalls'(_0x4b11f2){const _0x2cd2f1={_0x13275e:0x3ef},_0x87499={_0x5b5fb9:0x158,_0x2aab28:0xda,_0x1ea8ab:0x89};function _0x165803(_0x169f59,_0x2aaf56,_0x534a6d,_0x5949bb){return _0x480380(_0x2aaf56,_0x2aaf56-_0x87499._0x5b5fb9,_0x534a6d-_0x87499._0x2aab28,_0x5949bb-_0x87499._0x1ea8ab);}function _0xda1b94(_0x3feb12,_0x1a8f50,_0x46b023,_0x2f29c8){return _0x34a1f7(_0x46b023,_0x1a8f50-0x15c,_0x46b023-0x1f4,_0x2f29c8-_0x2cd2f1._0x13275e);}return await _0x37039e[_0x165803(0x8e,_0x3517._0xfb007e,_0x3517._0x4ea988,_0x3517._0x5966f5)](_0x165803(_0x3517._0x463fad,0x5c,-_0x3517._0x4492c4,0x90),{'item':_0x4b11f2})??[];},async 'outgoingCalls'(_0x418ae6){const _0x18c93c={_0x3c600c:0x180,_0x435581:0xb5,_0x346d02:0x206};function _0x52f662(_0x5073ad,_0x185e30,_0x55bfe4,_0x554877){return _0x34a1f7(_0x554877,_0x185e30-_0x18c93c._0x3c600c,_0x55bfe4-_0x18c93c._0x435581,_0x5073ad- -_0x18c93c._0x346d02);}return await _0x37039e[_0x52f662(-0x6f,-0x1c,-0x170,_0x4e59c3._0xbca23a)]('callHierarchy/outgoingCalls',{'item':_0x418ae6})??[];}},'waitForDiagnostics'({path:_0x1fcd85,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x1504c9=uriForPath(_0x1fcd85);if(_0x130787['has'](_0x1504c9))return Promise['resolve']();return new Promise(_0x416c37=>{const _0xd84f8c={_0x171306:0xcc,_0x1f35fe:0x113,_0x565887:0x112,_0x42ee46:0x15e,_0x33cbae:0xb0,_0x3571db:0x5e},_0x528bec={_0x17b86f:0x176},_0x3d2b53=setTimeout(()=>{const _0x3b9c1d={_0x3ba352:0x2bb};function _0xc9114d(_0xed4c65,_0x38a861,_0x155f82,_0xf878c1){return _0x7ca6(_0x38a861- -_0x528bec._0x17b86f,_0xed4c65);}const _0x566cbc=_0x204e83[_0xc9114d(_0xd84f8c._0x171306,_0xd84f8c._0x1f35fe,0x1c8,_0xd84f8c._0x565887)](_0x1504c9);_0x566cbc?.[_0x124bca(-0x123,-_0xd84f8c._0x42ee46,_0xd84f8c._0x33cbae,-_0xd84f8c._0x3571db)](_0x70c441);function _0x124bca(_0x31ead7,_0x4c19dd,_0x4c1ed2,_0x3ab1d8){return _0x7ca6(_0x3ab1d8- -_0x3b9c1d._0x3ba352,_0x31ead7);}if(_0x566cbc?.['size']===0x0)_0x204e83['delete'](_0x1504c9);_0x416c37();},timeoutMs);function _0x38a4c8(_0x3b827c,_0x108ae7,_0x3670c9,_0x1dd4c9){return _0x7ca6(_0x108ae7- -0x142,_0x3b827c);}const _0x70c441=()=>{clearTimeout(_0x3d2b53),_0x416c37();},_0x23429c=_0x204e83[_0x38a4c8(0x17,_0x3c6a64._0x3be3c4,_0x3c6a64._0x8fb459,_0x3c6a64._0xd7e252)](_0x1504c9)??new Set();function _0xdd6d1e(_0x524d6d,_0x5c34fc,_0x5b31c3,_0x4ab8db){return _0x7ca6(_0x4ab8db- -0xe7,_0x5c34fc);}_0x23429c[_0x38a4c8(0x1ea,_0x3c6a64._0xc14c10,0x210,0x173)](_0x70c441),_0x204e83[_0xdd6d1e(0x5e,0x67,_0x3c6a64._0x2ab8f1,_0x3c6a64._0x5d8c27)](_0x1504c9,_0x23429c);});},async 'shutdown'(){const _0x74fb67={_0x5658c5:0x1d1},_0xe6cc67={_0x1db29e:0x3ea,_0x2b1c70:0x4f};if(_0x37897a)return;function _0x463a3d(_0x559211,_0x384b9a,_0x201e27,_0x7c4d33){return _0x480380(_0x201e27,_0x384b9a-0x3e,_0x559211-_0xe6cc67._0x1db29e,_0x7c4d33-_0xe6cc67._0x2b1c70);}function _0x234cc8(_0x54b2fe,_0x4e5507,_0x5e7e12,_0x515cbf){return _0x480380(_0x515cbf,_0x4e5507-0x182,_0x54b2fe- -0x109,_0x515cbf-_0x74fb67._0x5658c5);}_0x37897a=!![];try{await _0x37039e['sendRequest']('shutdown',null),_0x37039e['sendNotification'](_0x463a3d(0x48f,0x389,_0x3b6fc3._0x5751e9,0x4b1));}catch{}finally{_0x37039e[_0x234cc8(-_0x3b6fc3._0xf06f42,-0xbe,-0x120,-0x53)](),_0xee5810[_0x463a3d(0x364,_0x3b6fc3._0x52da76,0x405,0x241)]['process'][_0x463a3d(_0x3b6fc3._0x52886d,0x4c8,_0x3b6fc3._0x149ffb,_0x3b6fc3._0x2c5b33)]();}}};return _0x5ccee7;}import{spawn as _0x90b96e}from'child_process';import{access as _0x21fab9}from'fs/promises';import _0x2cc01b from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x4f41e5 from'os';import _0x5eec36 from'path';import _0x57933c from'which';var installPromises=new Map();function sanitizePackageName(_0x270a48){const _0x21d1e4={_0x12d8a7:0x3cf,_0x4882da:0xa7,_0xa9ae32:0x9b};function _0x32881b(_0x2b5202,_0x431ddc,_0x3f1a,_0x27aa8e){return _0x324926(_0x27aa8e-_0x21d1e4._0x12d8a7,_0x431ddc,_0x3f1a-_0x21d1e4._0x4882da,_0x27aa8e-_0x21d1e4._0xa9ae32);}return _0x270a48['replace'](/^@/,'')[_0x32881b(0x3c0,0x316,0x283,0x35a)](/[/]/g,'__');}function binaryNameForPlatform(_0x48ad52){const _0x2095ea={_0x5658d3:0x234,_0x3d19ce:0x305,_0x1cbbeb:0x2ca,_0x4973c4:0x210,_0x2eeec8:0x24a},_0x1ef3a9={_0x3045ba:0xaa,_0x4866d9:0x15a},_0x251a36={_0xe985e:0x114,_0x24699c:0x5f};function _0x248f85(_0x372d53,_0x3b2cba,_0x5b2c39,_0x3f6943){return _0x22ef16(_0x5b2c39,_0x3f6943-0xd3,_0x5b2c39-_0x251a36._0xe985e,_0x3f6943-_0x251a36._0x24699c);}function _0x196695(_0xb48797,_0x3e5358,_0xdcf0d9,_0x1d16d6){return _0x22ef16(_0xb48797,_0x3e5358-_0x1ef3a9._0x3045ba,_0xdcf0d9-_0x1ef3a9._0x4866d9,_0x1d16d6-0x7f);}return process[_0x248f85(_0x2095ea._0x5658d3,0x416,0x244,_0x2095ea._0x3d19ce)]===_0x196695(_0x2095ea._0x1cbbeb,0x3a6,0x39a,0x36d)?_0x48ad52+_0x196695(_0x2095ea._0x4973c4,0x1af,_0x2095ea._0x2eeec8,0x19d):_0x48ad52;}async function exists(_0x16f71c){try{return await access(_0x16f71c),!![];}catch{return![];}}function runNpmInstall(_0x200f5b,_0x4f548e,_0x4985a3){const _0x25675c={_0xfbdac1:0x3da,_0x3f9269:0x403,_0x4bbef7:0x3db,_0x1237ff:0x4e9,_0x23f319:0x469,_0x392ea3:0x25d,_0x27117a:0x3e4,_0x266b33:0x46e,_0x2a6e02:0x3a8,_0x4c2a9f:0x365,_0x21f257:0x410},_0x35321f={_0x32527d:0x28a};return new Promise(_0x5e71a6=>{const _0x572c3d={_0x49c2fd:0x18f};function _0x95acfc(_0x5002cc,_0x5e10b1,_0x11d9dc,_0x3cee47){return _0x7ca6(_0x5e10b1-_0x35321f._0x32527d,_0x3cee47);}function _0x523ae5(_0x1c1a92,_0x10c8b6,_0x133b6a,_0x1008af){return _0x7ca6(_0x133b6a-_0x572c3d._0x49c2fd,_0x1c1a92);}const _0x20b6b5=spawn(_0x523ae5(_0x25675c._0xfbdac1,_0x25675c._0x3f9269,_0x25675c._0x4bbef7,0x450),[_0x95acfc(0x406,0x44f,0x546,_0x25675c._0x1237ff),_0x95acfc(0x65c,0x534,_0x25675c._0x23f319,0x454),_0x200f5b,_0x4f548e],{'env':_0x4985a3,'stdio':_0x523ae5(_0x25675c._0x392ea3,_0x25675c._0x27117a,0x30f,0x288)});_0x20b6b5['on']('error',()=>_0x5e71a6(![])),_0x20b6b5['on'](_0x523ae5(_0x25675c._0x266b33,_0x25675c._0x2a6e02,_0x25675c._0x4c2a9f,_0x25675c._0x21f257),_0x44349f=>_0x5e71a6(_0x44349f===0x0));});}function shouldDisableLspDownload(_0x360743=process[_0x324926(0x14,-0x30,-0x47,-0x86)]){const _0x1536ee={_0x44112a:0x219,_0x3b1414:0xd7,_0x56a193:0xad,_0x368de6:0x9f,_0x371a19:0x240,_0x25caf8:0x2eb,_0x5f38fc:0x1fd,_0x29e033:0x2a9,_0x2f4e84:0x1b9,_0xf367ff:0x3a8},_0x1305db={_0x2640b7:0x202,_0x44bb5e:0x49},_0x2c5334={_0x38d980:0x77};function _0x41edcf(_0x47301a,_0x123819,_0x1147a9,_0x469438){return _0x22ef16(_0x47301a,_0x1147a9- -0x38e,_0x1147a9-_0x2c5334._0x38d980,_0x469438-0x23);}function _0x38fcea(_0x301455,_0x1a0db8,_0x2f8435,_0x1731a6){return _0x324926(_0x301455- -_0x1305db._0x2640b7,_0x1a0db8,_0x2f8435-_0x1305db._0x44bb5e,_0x1731a6-0x195);}const _0x5c4c0c=_0x360743[_0x38fcea(-0x316,-0x29f,-_0x1536ee._0x44112a,-0x21d)]?.[_0x41edcf(-_0x1536ee._0x3b1414,-_0x1536ee._0x56a193,-_0x1536ee._0x368de6,-0x92)]();return _0x5c4c0c===_0x41edcf(-_0x1536ee._0x371a19,-_0x1536ee._0x25caf8,-_0x1536ee._0x5f38fc,-0x242)||_0x5c4c0c==='1'||_0x5c4c0c===_0x38fcea(-_0x1536ee._0x29e033,-_0x1536ee._0x2f4e84,-_0x1536ee._0xf367ff,-0x325)||_0x5c4c0c==='on';}function getLspPackageDir(_0x37171a){const _0xa615bc={_0x3cedaf:0x62,_0x9ced43:0x158,_0x3322ed:0x18f,_0x5837fd:0x264,_0x2ec7f4:0x1f1,_0x2dddc5:0x4f,_0x23e4e3:0x133,_0x86c7c3:0x6d};function _0x578447(_0x5129cc,_0x54115e,_0x64ab17,_0x3671b1){return _0x22ef16(_0x54115e,_0x64ab17- -0x116,_0x64ab17-0x18,_0x3671b1-0x1de);}function _0x18561f(_0x45af2b,_0x1d2d65,_0x4f70fb,_0xa7175d){return _0x324926(_0x45af2b- -0x107,_0x4f70fb,_0x4f70fb-0x1c6,_0xa7175d-0x2a);}return _0x5eec36['join'](_0x4f41e5[_0x18561f(-_0xa615bc._0x3cedaf,-0x44,-_0xa615bc._0x9ced43,-0x132)](),_0x18561f(-_0xa615bc._0x3322ed,-0xc6,-_0xa615bc._0x5837fd,-_0xa615bc._0x2ec7f4),_0x18561f(-_0xa615bc._0x2dddc5,-0xa1,-_0xa615bc._0x23e4e3,-0x128),_0x18561f(-0x2f,-_0xa615bc._0x86c7c3,0xf0,0x5),sanitizePackageName(_0x37171a));}function getLspBinDir(_0x255fe1){const _0x403456={_0x1d03cd:0xe,_0x26323b:0x35d},_0x20d53c={_0x5198b4:0xa5},_0x5131e6={_0x40abd4:0x131,_0x1504b4:0xb4};function _0xda9ac0(_0x3c4836,_0x33c7ea,_0x379d1d,_0x4bebf7){return _0x22ef16(_0x3c4836,_0x4bebf7-_0x5131e6._0x40abd4,_0x379d1d-_0x5131e6._0x1504b4,_0x4bebf7-0x1d2);}function _0x356545(_0x1d06c2,_0x25d60f,_0x2f255a,_0x360be0){return _0x22ef16(_0x2f255a,_0x1d06c2- -0x11,_0x2f255a-_0x20d53c._0x5198b4,_0x360be0-0x130);}return _0x5eec36[_0x356545(0x13b,_0x403456._0x1d03cd,0xdd,0xd6)](getLspPackageDir(_0x255fe1),'node_modules',_0xda9ac0(0x345,_0x403456._0x26323b,0x2b4,0x34b));}async function findPackageBinary(_0x3d15d4,_0x5c2da1){const _0xef4e96={_0x4f313b:0x1df,_0x53a158:0x1a3,_0x758def:0x10f,_0x52188e:0x1ea,_0x5e8290:0x16a},_0x1c46bb={_0xa51646:0x2ee},_0x1f835c={_0x2b3ea4:0x20c};let _0x111152=_0x5eec36[_0xe6b608(_0xef4e96._0x4f313b,0x2b1,0x189,0x114)](_0x5c2da1);function _0xe6b608(_0x2a5205,_0x1a48c6,_0x5d445e,_0x55a163){return _0x324926(_0x2a5205-_0x1f835c._0x2b3ea4,_0x1a48c6,_0x5d445e-0x122,_0x55a163-0x18b);}function _0x476de6(_0x5ad527,_0x146af0,_0x541101,_0x2d615d){return _0x324926(_0x5ad527-_0x1c46bb._0xa51646,_0x146af0,_0x541101-0x4d,_0x2d615d-0x7f);}const _0x5716f7=binaryNameForPlatform(_0x3d15d4);while(!![]){const _0x5bfe46=_0x5eec36[_0xe6b608(0x15a,_0xef4e96._0x53a158,_0xef4e96._0x758def,0x15e)](_0x111152,_0xe6b608(0x274,0x2f5,_0xef4e96._0x52188e,0x22b),_0xe6b608(0x228,0x335,_0xef4e96._0x5e8290,0x2c7),_0x5716f7);if(await exists(_0x5bfe46))return _0x5bfe46;const _0x24dc8e=_0x5eec36['dirname'](_0x111152);if(_0x24dc8e===_0x111152)return void 0x0;_0x111152=_0x24dc8e;}}async function findPathBinary(_0x3a1f5a,_0x4fbb72){const _0x4ab9e6={_0x1ec66e:0x1b5,_0x1cea4d:0x59,_0x2a9046:0x244,_0x5cc0a5:0x21b,_0x16a8eb:0x16c},_0x9fcbe5={_0x50b2bf:0x6a},_0x43e129={_0x57f6a0:0x6b,_0x5eada8:0xb3},_0x2cdefa=getLspBinDir(_0x4fbb72);function _0x1665e0(_0x5ae834,_0x1df9c9,_0x26c529,_0x1a0267){return _0x22ef16(_0x1a0267,_0x1df9c9- -_0x43e129._0x57f6a0,_0x26c529-0x13f,_0x1a0267-_0x43e129._0x5eada8);}const _0x50c25a=[_0x2cdefa,process['env']['PATH']][_0x1665e0(_0x4ab9e6._0x1ec66e,0x26d,0x1da,0x28a)](Boolean)[_0x1665e0(0xe1,0xe1,_0x4ab9e6._0x1cea4d,0xd4)](_0x5eec36[_0x91c5a4(_0x4ab9e6._0x2a9046,_0x4ab9e6._0x5cc0a5,0x1df,_0x4ab9e6._0x16a8eb)]);function _0x91c5a4(_0x40dca6,_0x1fe175,_0x15f27c,_0x814746){return _0x22ef16(_0x814746,_0x15f27c-_0x9fcbe5._0x50b2bf,_0x15f27c-0x1d7,_0x814746-0x1e1);}try{return await _0x57933c(_0x3a1f5a,{'path':_0x50c25a});}catch{return void 0x0;}}async function resolvePackageBinary(_0xf38caa){const _0x7efe4e={_0xe182a0:0x48a,_0x11ea65:0x612,_0x35ed16:0x530,_0x413f0d:0x630,_0x41ba35:0x67b,_0x572c2b:0x582,_0x5516ff:0x3cd,_0x175ac4:0x4df,_0x444fbd:0x5d7,_0x3ca123:0x530,_0x294819:0x4c8,_0x40daf2:0x542,_0x1cf913:0x5fc,_0x22b1c0:0x570,_0x11e8c9:0x572,_0x523eba:0x42f,_0x24133e:0x5f1,_0xc524f7:0x45b,_0x3cbeaf:0x506,_0x3798db:0x546},_0x4375de={_0x509baa:0x5ea,_0x4dde5c:0x3ca,_0x32f02e:0x4e7,_0xb11c92:0x5a9,_0x3a67c8:0x612},_0x119ca0={_0x98f88f:0x18e,_0x12835d:0x5b,_0x18bb99:0xf0},_0x3f5c9e={_0x4a96d6:0x1b},_0x2f1e2c=_0xf38caa[_0x23d209(0x4ef,0x55e,0x427,_0x7efe4e._0xe182a0)]??_0xf38caa[_0x23d209(_0x7efe4e._0x11ea65,0x513,0x633,_0x7efe4e._0x35ed16)],_0x3e6ec2=await findPackageBinary(_0x2f1e2c,_0xf38caa[_0x23d209(_0x7efe4e._0x413f0d,_0x7efe4e._0x41ba35,0x63f,0x585)]);function _0x23d209(_0x4bdaaa,_0x29c9f1,_0x29e78a,_0x2badb6){return _0x22ef16(_0x4bdaaa,_0x2badb6-0x2cd,_0x29e78a-0x1d7,_0x2badb6-_0x3f5c9e._0x4a96d6);}function _0xd36a93(_0x1bfb6c,_0x129262,_0x860279,_0x55da5f){return _0x324926(_0x55da5f-_0x119ca0._0x98f88f,_0x1bfb6c,_0x860279-_0x119ca0._0x12835d,_0x55da5f-_0x119ca0._0x18bb99);}if(_0x3e6ec2)return _0x3e6ec2;const _0xa87901=await findPathBinary(_0x2f1e2c,_0xf38caa['packageName']);if(_0xa87901)return _0xa87901;const _0x518aef=_0xf38caa[_0xd36a93(0x11d,0x236,0x217,0x1a2)]??process[_0x23d209(_0x7efe4e._0x572c2b,0x5ea,_0x7efe4e._0x5516ff,_0x7efe4e._0x175ac4)];if(shouldDisableLspDownload(_0x518aef))return void 0x0;const _0x40e5f9=getLspPackageDir(_0xf38caa[_0x23d209(_0x7efe4e._0x444fbd,0x559,0x5f6,_0x7efe4e._0x3ca123)]),_0x3108e6=_0xf38caa[_0x23d209(_0x7efe4e._0x294819,0x604,_0x7efe4e._0x40daf2,0x530)]+':'+_0x2f1e2c;let _0x107039=installPromises[_0x23d209(_0x7efe4e._0x1cf913,_0x7efe4e._0x22b1c0,0x4e8,_0x7efe4e._0x11e8c9)](_0x3108e6);!_0x107039&&(_0x107039=((async()=>{const _0x439fbd={_0x5e50fa:0xb0,_0x5f46a4:0x13c,_0x43dc0e:0x1e8},_0x54cd24={_0x55817d:0x93,_0x2ab7e1:0x49};await mkdir(_0x40e5f9,{'recursive':!![]});const _0xf73af2=await runNpmInstall(_0x40e5f9,_0xf38caa[_0x14cd1d(0x4bc,0x4e7,_0x4375de._0x509baa,_0x4375de._0x4dde5c)],_0x518aef);if(!_0xf73af2)return void 0x0;const _0x13b505=_0x5eec36['join'](getLspBinDir(_0xf38caa[_0x14cd1d(0x4fc,_0x4375de._0x32f02e,_0x4375de._0xb11c92,_0x4375de._0x3a67c8)]),binaryNameForPlatform(_0x2f1e2c));function _0x14cd1d(_0x4f6021,_0xb81476,_0x564141,_0x46c8c7){return _0x23d209(_0x564141,_0xb81476-_0x54cd24._0x55817d,_0x564141-0x64,_0xb81476- -_0x54cd24._0x2ab7e1);}function _0x45c42e(_0x11b1b4,_0xa79b5e,_0xff3480,_0x3df9d9){return _0xd36a93(_0x11b1b4,_0xa79b5e-_0x439fbd._0x5e50fa,_0xff3480-_0x439fbd._0x5f46a4,_0xff3480-_0x439fbd._0x43dc0e);}return await exists(_0x13b505)?_0x13b505:void 0x0;})()),installPromises[_0x23d209(0x3ef,0x353,_0x7efe4e._0x523eba,0x3dc)](_0x3108e6,_0x107039));try{return await _0x107039;}catch{return void 0x0;}finally{installPromises[_0x23d209(_0x7efe4e._0x24133e,_0x7efe4e._0xc524f7,_0x7efe4e._0x3cbeaf,_0x7efe4e._0x3798db)](_0x3108e6);}}var TYPESCRIPT_EXTENSIONS=[_0x324926(0x6c,-0xd,0x71,0x5f),_0x22ef16(0x346,0x277,0x2fd,0x2ef),_0x324926(-0x79,0xf,-0x11a,0x33),_0x324926(0xcb,0x31,0x9c,0x36),_0x324926(-0x19,-0x2f,-0x35,-0x39),_0x22ef16(0x16b,0x159,0x60,0x1d1),'.mts',_0x324926(-0xc6,-0x196,-0xe7,-0x94)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x324926(0x47,-0xc9,-0xd2,0xac),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=[_0x324926(0x70,0x115,-0x3e,0x12b),'bun.lockb',_0x324926(0xf7,0x204,0x68,0x57),_0x324926(-0x9d,-0xb6,-0x152,0x40),_0x22ef16(0x11e,0x11f,0x7b,0x143),_0x22ef16(0x1e3,0x235,0x2c5,0x1b4),_0x22ef16(0x192,0x21b,0x330,0x193),_0x22ef16(0x289,0x1dc,0xc0,0x30c)],BIOME_ROOT_MARKERS=[_0x22ef16(0x179,0x18c,0xdb,0x286),'biome.jsonc','package-lock.json',_0x22ef16(0x142,0x11a,0x23e,0x224),_0x22ef16(0x350,0x2f5,0x3c5,0x3ca),_0x22ef16(0x186,0x161,0x128,0xfd),_0x22ef16(-0x10,0x11f,0x179,0x1ca),_0x324926(-0x22,-0xf0,0xc0,-0x9c)];async function exists2(_0x4d6ffb){try{return await _0x21fab9(_0x4d6ffb),!![];}catch{return![];}}async function findUp(_0x5b2b92,_0x3cdcd8){const _0xbfb29d={_0x436104:0xc2,_0x36812a:0x1ad,_0xffe945:0xbc,_0x56a339:0x3fd,_0x5122c3:0x411,_0x123e64:0x352,_0x49fb6f:0x356,_0x3826ee:0x3e7,_0x1c0ae8:0x1a,_0x5c1015:0x248,_0x489e9d:0x357,_0x57d76c:0x356},_0x2ab485={_0x5c3f71:0x14f,_0x1ddd1d:0xfd},_0x32d807={_0x273096:0xeb};function _0x2c6c08(_0x1d950a,_0x4f8557,_0x46984c,_0x283a2b){return _0x22ef16(_0x283a2b,_0x46984c-0x227,_0x46984c-0xb5,_0x283a2b-_0x32d807._0x273096);}let _0x128dee=_0x2cc01b[_0x3ca21a(_0xbfb29d._0x436104,_0xbfb29d._0x36812a,_0xbfb29d._0xffe945,0x211)](_0x5b2b92);function _0x3ca21a(_0x52587c,_0xbcf2d3,_0x2cf94d,_0x2b0403){return _0x22ef16(_0x2b0403,_0xbcf2d3- -0x24,_0x2cf94d-_0x2ab485._0x5c3f71,_0x2b0403-_0x2ab485._0x1ddd1d);}const _0x312301=_0x2cc01b[_0x2c6c08(_0xbfb29d._0x56a339,0x35c,_0xbfb29d._0x5122c3,_0xbfb29d._0x123e64)](_0x128dee);if(_0x312301)_0x128dee=_0x2cc01b[_0x2c6c08(0x2a2,0x37a,_0xbfb29d._0x49fb6f,_0xbfb29d._0x3826ee)](_0x128dee);while(!![]){for(const _0x2260f0 of _0x3cdcd8){if(await exists2(_0x2cc01b[_0x3ca21a(_0xbfb29d._0x1c0ae8,0x128,0x5c,0x15a)](_0x128dee,_0x2260f0)))return _0x128dee;}const _0x108588=_0x2cc01b[_0x2c6c08(_0xbfb29d._0x5c1015,_0xbfb29d._0x489e9d,_0xbfb29d._0x57d76c,0x3ab)](_0x128dee);if(_0x108588===_0x128dee)return void 0x0;_0x128dee=_0x108588;}}async function hasDenoRoot(_0x1deef3){const _0x793087={_0x76c63:0x300,_0x384b81:0x436,_0x18407a:0x380},_0x2d3bf6={_0x6bf39d:0x5e},_0x50b115={_0x4201d0:0xf7,_0x3756ae:0xc6};function _0x2f822b(_0x192b50,_0xb747d8,_0x220404,_0x2ed328){return _0x22ef16(_0xb747d8,_0x2ed328-0x185,_0x220404-_0x50b115._0x4201d0,_0x2ed328-_0x50b115._0x3756ae);}function _0x331f9e(_0x5e6e29,_0x40fec8,_0x6350b7,_0x4ddb4a){return _0x324926(_0x4ddb4a-0x46c,_0x6350b7,_0x6350b7-0xab,_0x4ddb4a-_0x2d3bf6._0x6bf39d);}return await exists2(_0x2cc01b['join'](_0x1deef3,'deno.json'))||await exists2(_0x2cc01b[_0x331f9e(_0x793087._0x76c63,_0x793087._0x384b81,0x33a,0x3ba)](_0x1deef3,_0x2f822b(_0x793087._0x18407a,0x292,0x3d9,0x2d5)));}async function resolveTsserverPath(_0x54c93d){const _0x4da4c2={_0x3d879e:0x77,_0x1199eb:0x1ea,_0x5d3d72:0x1b5,_0x270426:0x1f3,_0x40686e:0x247,_0x5ece26:0x119,_0xcc0e5d:0x23,_0x2e3753:0x239,_0x50e3e4:0x1eb,_0x4d35fc:0x353,_0x1cfd4c:0xb5,_0x374b8e:0x1b9,_0x50e1eb:0x261,_0x3bafcd:0x2a3,_0x686df1:0x195,_0x2bbc3:0xae,_0x53b2f5:0x2c3},_0x5c78a0={_0x59a419:0x3a2};function _0x50f23a(_0xfae6f3,_0x3eb11d,_0x41cb26,_0x7899ad){return _0x324926(_0xfae6f3- -0x4a,_0x7899ad,_0x41cb26-0x42,_0x7899ad-0x1d2);}let _0x3cbd79=_0x2cc01b[_0x50f23a(-_0x4da4c2._0x3d879e,-0x17b,-0xa9,0x14)](_0x54c93d);while(!![]){const _0x50e6fd=_0x2cc01b['join'](_0x3cbd79,'node_modules','typescript',_0x523096(-_0x4da4c2._0x1199eb,-_0x4da4c2._0x5d3d72,-_0x4da4c2._0x270426,-_0x4da4c2._0x40686e),'tsserver.js');if(await exists2(_0x50e6fd))return _0x50e6fd;const _0x2936f5=_0x2cc01b[_0x50f23a(-_0x4da4c2._0x5ece26,-_0x4da4c2._0xcc0e5d,-0x23c,-_0x4da4c2._0x2e3753)](_0x3cbd79);if(_0x2936f5===_0x3cbd79)break;_0x3cbd79=_0x2936f5;}const _0x3352cd=getLspPackageDir('typescript'),_0x30a19c=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x54c93d});function _0x523096(_0x57d025,_0x492d43,_0x42bbda,_0x2ff0c0){return _0x22ef16(_0x2ff0c0,_0x492d43- -_0x5c78a0._0x59a419,_0x42bbda-0x10c,_0x2ff0c0-0x100);}if(!_0x30a19c)return void 0x0;const _0x5dbe29=_0x2cc01b[_0x523096(-_0x4da4c2._0x50e3e4,-0x256,-_0x4da4c2._0x4d35fc,-0x1e1)](_0x3352cd,'node_modules',_0x50f23a(-_0x4da4c2._0x1cfd4c,-0x111,-_0x4da4c2._0x374b8e,-0x3a),_0x523096(-_0x4da4c2._0x50e1eb,-0x1b5,-_0x4da4c2._0x3bafcd,-0x164),_0x523096(-_0x4da4c2._0x686df1,-0x1cc,-_0x4da4c2._0x2bbc3,-_0x4da4c2._0x53b2f5));return await exists2(_0x5dbe29)?_0x5dbe29:void 0x0;}var TypeScriptServer={'id':_0x324926(-0x6b,-0x51,-0x170,-0x11e),'name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0xe740c2){const _0x24e1ea=await findUp(_0xe740c2,TYPESCRIPT_ROOT_MARKERS);if(!_0x24e1ea)return void 0x0;return await hasDenoRoot(_0x24e1ea)?void 0x0:_0x24e1ea;},async 'spawn'(_0x50681e){const _0x316723={_0x1cccfb:0x243,_0x554598:0x36c,_0xf3a6a3:0x217,_0x578dae:0x300,_0x565f78:0x39f},_0x432c0e={_0x2d4416:0x14a,_0x445ff7:0x16f},_0x2ecef5={_0x5a5c18:0x158},_0xd784e1=await resolveTsserverPath(_0x50681e);if(!_0xd784e1)return void 0x0;function _0x38798d(_0x4bba2f,_0xf04ac8,_0x30311f,_0x1c7a0a){return _0x324926(_0xf04ac8-0x345,_0x1c7a0a,_0x30311f-0xc4,_0x1c7a0a-_0x2ecef5._0x5a5c18);}const _0x237c1c=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':'typescript-language-server','startDir':_0x50681e});if(!_0x237c1c)return void 0x0;function _0x5d4c00(_0x10a6e7,_0x3ad0b3,_0x454c89,_0xf3d85){return _0x22ef16(_0x454c89,_0x10a6e7-_0x432c0e._0x2d4416,_0x454c89-0x17e,_0xf3d85-_0x432c0e._0x445ff7);}return{'process':_0x90b96e(_0x237c1c,[_0x38798d(0x311,_0x316723._0x1cccfb,_0x316723._0x554598,0x36e)],{'cwd':_0x50681e,'stdio':_0x38798d(_0x316723._0xf3a6a3,_0x316723._0x578dae,0x398,_0x316723._0x565f78)}),'initialization':{'tsserver':{'path':_0xd784e1}}};}},BiomeServer={'id':'biome','name':_0x22ef16(0x184,0x14b,0xff,0x212),'extensions':BIOME_EXTENSIONS,async 'root'(_0xe534b6){return findUp(_0xe534b6,BIOME_ROOT_MARKERS);},async 'spawn'(_0x52dc09){const _0x3780f6={_0x8ae57:0x320,_0x17bd3f:0x31f,_0x201f48:0x2a1,_0x4398fa:0x1e7,_0x236dc6:0x2a0},_0x52d892={_0x2836e5:0x32b,_0x1ee772:0x95},_0x33c66a={_0x1b66a6:0x3a},_0xada86d=await findPackageBinary(_0x4fb32e(0x2da,_0x3780f6._0x8ae57,0x3cd,_0x3780f6._0x17bd3f),_0x52dc09)??await resolvePackageBinary({'packageName':_0x46d4ba(0x3cd,_0x3780f6._0x201f48,0x1c1,_0x3780f6._0x4398fa),'binaryName':'biome','startDir':_0x52dc09});if(!_0xada86d)return void 0x0;function _0x46d4ba(_0x4447ad,_0x3f2d5f,_0x4c51ec,_0x26a496){return _0x324926(_0x3f2d5f-0x39b,_0x4c51ec,_0x4c51ec-_0x33c66a._0x1b66a6,_0x26a496-0x115);}function _0x4fb32e(_0x53bcda,_0x527756,_0x142049,_0x388a30){return _0x324926(_0x53bcda-_0x52d892._0x2836e5,_0x142049,_0x142049-0x1b4,_0x388a30-_0x52d892._0x1ee772);}return{'process':_0x90b96e(_0xada86d,[_0x4fb32e(_0x3780f6._0x236dc6,0x37b,0x3c6,0x2af),'--stdio'],{'cwd':_0x52dc09,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x2f9c03){const _0x1ef760={_0xd827ae:0x15c,_0x320632:0x5bf,_0x4fb502:0x586,_0x225202:0x4de,_0x33fab1:0x476,_0x1c65f5:0x56f},_0x42b33c={_0xd9358f:0x78};function _0x16985b(_0x221ec6,_0x344e0e,_0x360b46,_0x35a1ed){return _0x22ef16(_0x344e0e,_0x35a1ed- -0x8e,_0x360b46-_0x42b33c._0xd9358f,_0x35a1ed-0x187);}function _0x5bea87(_0x411e02,_0x4c8214,_0x22308f,_0x548c78){return _0x22ef16(_0x4c8214,_0x548c78-0x297,_0x22308f-0xff,_0x548c78-0x109);}const _0x3c7caf=_0x2cc01b[_0x16985b(0x21d,0x275,0x257,_0x1ef760._0xd827ae)](_0x2f9c03)[_0x5bea87(_0x1ef760._0x320632,0x534,0x65b,_0x1ef760._0x4fb502)]();return BUILTIN_LSP_SERVERS[_0x5bea87(_0x1ef760._0x225202,_0x1ef760._0x33fab1,0x4b0,_0x1ef760._0x1c65f5)](_0x52976c=>_0x52976c[_0x16985b(0x228,0x121,0x13d,0x1b9)]['includes'](_0x3c7caf));}function stateKey(_0xb29a71,_0x4f4355){return _0x4f4355+':'+_0xb29a71['id'];}function diagnosticsKeyToPath(_0x16c9da){const _0x25cca3={_0x19da58:0x5fd,_0x31d1f4:0x644,_0x5d9772:0x544},_0x3ecbda={_0x201193:0x4ac},_0x37f2ad={_0x14a725:0x37a};function _0xb360f0(_0x3b8642,_0x4f21bf,_0x4096cd,_0x42701b){return _0x22ef16(_0x4f21bf,_0x4096cd-_0x37f2ad._0x14a725,_0x4096cd-0x7,_0x42701b-0x1d5);}function _0x430dee(_0x2afa98,_0x1b9e79,_0x195ce5,_0x47e15d){return _0x324926(_0x47e15d-_0x3ecbda._0x201193,_0x2afa98,_0x195ce5-0x1ab,_0x47e15d-0xc2);}if(!_0x16c9da[_0xb360f0(_0x25cca3._0x19da58,0x5e1,_0x25cca3._0x31d1f4,0x63c)](_0xb360f0(_0x25cca3._0x5d9772,0x33e,0x44c,0x342)))return _0x16c9da;return fileURLToPath(_0x16c9da);}function nextFileVersion(_0x1bb28f,_0x53ddc9){const _0x5862d9={_0x3ec64b:0x1ea,_0x43408d:0x230,_0x567dba:0x2c9,_0x1e5fd5:0x2b1,_0x51563e:0x267},_0x3eaf75={_0xf8c92b:0x144},_0x6dc0f0={_0x1a5ece:0x1c0,_0x176731:0xcc};function _0x39a60a(_0x2ec6cb,_0x5dd6c1,_0x468f20,_0x56aeed){return _0x324926(_0x5dd6c1-_0x6dc0f0._0x1a5ece,_0x2ec6cb,_0x468f20-_0x6dc0f0._0x176731,_0x56aeed-0x9e);}function _0x5810a7(_0x382415,_0x56cc73,_0x1422f7,_0x51d79a){return _0x22ef16(_0x56cc73,_0x1422f7- -0x43,_0x1422f7-0x150,_0x51d79a-_0x3eaf75._0xf8c92b);}const _0x37f26b=(_0x1bb28f[_0x5810a7(_0x5862d9._0x3ec64b,_0x5862d9._0x43408d,_0x5862d9._0x567dba,_0x5862d9._0x1e5fd5)][_0x39a60a(0x172,_0x5862d9._0x51563e,0x1cd,0x2cc)](_0x53ddc9)??0x1)+0x1;return _0x1bb28f[_0x39a60a(0x2e4,0x2ce,0x3cb,0x1ce)]['set'](_0x53ddc9,_0x37f26b),_0x37f26b;}async function collectClientResults(_0x206023){const _0x28c091={_0x2e22e1:0x39d,_0x35f571:0x2dc,_0x3a8439:0x3a1},_0x6b31f3={_0x366042:0x45,_0x3bbc44:0xd0};function _0x18a851(_0xc7836b,_0x47926d,_0x3f9e16,_0x5bc93d){return _0x324926(_0x47926d-0x2b7,_0x3f9e16,_0x3f9e16-0x169,_0x5bc93d-0xff);}function _0x46fb5b(_0x31fbe3,_0xf5ca36,_0x3013d0,_0x37c981){return _0x22ef16(_0x37c981,_0x3013d0-_0x6b31f3._0x366042,_0x3013d0-_0x6b31f3._0x3bbc44,_0x37c981-0x1f2);}const _0x520041=await Promise[_0x18a851(_0x28c091._0x2e22e1,_0x28c091._0x35f571,0x357,_0x28c091._0x3a8439)](_0x206023);return _0x520041['flatMap'](_0x5f42ab=>_0x5f42ab[_0x46fb5b(0x350,0x25c,0x25d,0x313)]==='fulfilled'?_0x5f42ab[_0x18a851(0x1d9,0x2a0,0x32d,0x28e)]:[]);}function createLspService(_0x42a963={}){const _0xeff26f={_0x41aec1:0x48d,_0x31079e:0x667,_0x1dc6be:0x678},_0x1b01a0={_0xadb524:0x4e1,_0x41a301:0x3eb,_0x4cf621:0x4e1,_0x64d074:0x5d0,_0x18d99f:0x160,_0x160c1f:0x23d,_0x26761c:0x2fc,_0x44b6b3:0x68,_0x1fad20:0x67,_0xc41da6:0x8d,_0x4ea9d8:0x4c4,_0x427bd7:0x41b,_0x4f85d3:0x185,_0x598027:0x96,_0x5206c3:0x23e,_0x567274:0x4f4,_0x2ed02f:0x125,_0x184c7b:0x414,_0x3125e5:0x4c8,_0x1f5112:0x3e4},_0x1e45dd={_0x24f21b:0x56a},_0xbea5c8={_0x4e2450:0x47,_0x3a5b02:0x4a,_0x1bade3:0x81},_0x3c2a5a={_0x4a41eb:0x178},_0x36c38f={_0x324660:0x8f,_0x563511:0x85},_0xdb170c={_0x2e8f9d:0xeb,_0x4e2eae:0x16b,_0x451218:0x34},_0x1fc47e={_0x1d6682:0x81,_0x2174b2:0x3e4,_0xd374ee:0x12e},_0x12d678={_0x5c8037:0x264,_0x100be3:0x3ff,_0xc8982d:0xb3,_0x2f6693:0xad},_0x283e13={_0x54694b:0x15d},_0x393513={_0x2a7145:0x448,_0x26a040:0x442},_0x11464a={_0x3c0117:0x60},_0x1f3513={_0x433ad4:0x33f,_0x5bf74c:0x423,_0x2bb65e:0x28e},_0x4bc9aa={_0x3052a6:0x19e},_0x282e31={_0x12b2b9:0x550},_0x418634={_0x1cd5e8:0x94},_0x5bc38e={_0x482f5a:0x465,_0x30bb5f:0x2ec,_0x46ea40:0x508,_0x4d86df:0x3ff},_0x1f3a8d={_0x1cb595:0x194,_0xde346d:0x13f,_0x5bf7e0:0x7a},_0x1aa1f1={_0x5dfe8d:0xde,_0x11a7c1:0x103},_0x506d9d={_0x1d8bd5:0x522,_0x5777ac:0x483,_0x3050fc:0x44d},_0x19d5bc={_0x61dca8:0x1e1,_0x2be7d8:0x118},_0x2eccf1={_0x2c2fa2:0x249,_0x369025:0x153},_0x5d1fe6={_0x2e756c:0x17a,_0x5b3adf:0xc9},_0x5069aa={_0x3f4887:0xc},_0x3754da={_0x4e730b:0x56},_0x24ca2f={_0x59facf:0x28a},_0x9cf772={_0x2dbf01:0x52f,_0x256f49:0x665,_0x429f5f:0x5e4,_0x1f4b6b:0x543},_0x2e1b47={_0x4965da:0x293,_0x6a641b:0x1e4,_0x1dc423:0x4a,_0x2d5816:0x16b,_0x9c2bfa:0x167,_0x41973d:0x102,_0x3a9903:0x201,_0x75c951:0x195,_0x4f446f:0x23a,_0x5c4904:0xa1,_0x37f7dd:0x19,_0x4177e5:0xe1,_0x433f2f:0x17a,_0x1d9954:0x188,_0x32c88c:0x38,_0x10c3e1:0x167,_0x333746:0x17c},_0x1f19d7={_0x5dde3b:0x27,_0x5dfa52:0x162,_0x4762d3:0x40},_0x5b0367={_0x35b00f:0x204,_0xe97b9c:0x1ed,_0x2b320f:0x214,_0x543124:0x39,_0x3e65ab:0x90,_0x2affc0:0x133,_0x139ec9:0x1ec,_0x44be22:0x201,_0x19e43d:0x149},_0x360b26={_0x523b33:0x37a,_0x3272ba:0x74},_0x86bba7={_0x13fd76:0x148,_0x40ca2a:0x43,_0x2a4ddf:0x21c,_0x404262:0x5a7,_0x395673:0x57f,_0x192921:0x445,_0x1c06ca:0xef,_0x571eb2:0x1f0,_0x14c82a:0x31b,_0x360b5e:0x3e6,_0xb56aee:0x3b3,_0x31c0b8:0x39b},_0x419514={_0x55b927:0x307},_0x26392d={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x1541fc=()=>_0x42a963[_0x45dad1(0x592,0x4ac,0x3e0,0x4b4)]!==![];async function _0x5f5b9e(_0x3acbdc,_0x1f27fc){const _0x48e3cd={_0x473890:0x2a7,_0x13f8b3:0x2d5,_0x3cafab:0x3c7,_0x5848c4:0xc8,_0x40f817:0x4a,_0x356788:0x164,_0x48664c:0x136,_0x5c4f4b:0x1ae,_0x196758:0x2dc,_0xc3712b:0x391,_0x32ac35:0x440,_0x2af3d9:0xe9,_0x533334:0x149,_0x58a27:0x123,_0x3fb81b:0x58,_0x276603:0x52,_0x40f671:0x95,_0x242e89:0x300,_0x581b3d:0x312,_0x2b3d84:0x481,_0x196b25:0x2f,_0x1d2573:0xae,_0x5b2c52:0x19d},_0x19d39b={_0x45d08d:0x95,_0x3da21b:0x8b,_0x55e0db:0x2a},_0x1a78b4=stateKey(_0x3acbdc,_0x1f27fc),_0x38f93f=_0x26392d[_0x4100a2(0xd7,0x103,-0x2d,_0x86bba7._0x13fd76)][_0x4100a2(_0x86bba7._0x40ca2a,0x108,0x19e,_0x86bba7._0x2a4ddf)](_0x9baabb=>_0x9baabb[_0x4100a2(-0x77,0x7c,0x136,-0xe)]===_0x3acbdc['id']&&_0x9baabb['root']===_0x1f27fc);if(_0x38f93f)return _0x38f93f;function _0xf17010(_0x27bfb7,_0x578205,_0x1c1df8,_0x307497){return _0x45dad1(_0x27bfb7-_0x19d39b._0x45d08d,_0x1c1df8-_0x19d39b._0x3da21b,_0x307497,_0x307497-_0x19d39b._0x55e0db);}if(_0x26392d[_0xf17010(_0x86bba7._0x404262,_0x86bba7._0x395673,0x482,_0x86bba7._0x192921)][_0xf17010(0x44f,0x35e,0x414,0x405)](_0x1a78b4))return void 0x0;function _0x4100a2(_0x519333,_0x549fbf,_0x4d500f,_0x4bc58d){return _0x45dad1(_0x519333-0x1af,_0x549fbf- -_0x419514._0x55b927,_0x4d500f,_0x4bc58d-0xe3);}const _0x4437bf=_0x26392d[_0x4100a2(_0x86bba7._0x1c06ca,_0x86bba7._0x571eb2,0x29a,0x25f)]['get'](_0x1a78b4);if(_0x4437bf)return _0x4437bf;const _0x118e9e=((async()=>{const _0x730776={_0x59c7da:0x9a,_0x597606:0x16b,_0x24936c:0x5cb},_0x1fb50b={_0x1af80e:0x1be};function _0x136e14(_0x453f0d,_0x47958d,_0x142d8a,_0x44827a){return _0xf17010(_0x453f0d-0x104,_0x47958d-0x190,_0x453f0d- -_0x1fb50b._0x1af80e,_0x44827a);}function _0x2eb64c(_0x5ca8a6,_0x5e93fd,_0x2cd1b1,_0x357626){return _0xf17010(_0x5ca8a6-_0x730776._0x59c7da,_0x5e93fd-_0x730776._0x597606,_0x5e93fd- -_0x730776._0x24936c,_0x5ca8a6);}try{const _0x2f1319=await _0x3acbdc[_0x136e14(0x3b8,_0x48e3cd._0x473890,_0x48e3cd._0x13f8b3,_0x48e3cd._0x3cafab)](_0x1f27fc);if(!_0x2f1319)return _0x26392d['broken'][_0x2eb64c(0x3e,-0x2d,_0x48e3cd._0x5848c4,-_0x48e3cd._0x40f817)](_0x1a78b4),void 0x0;const _0x368118=await createLspClient({'server':_0x3acbdc,'root':_0x1f27fc,'handle':_0x2f1319}),_0x2c5c5c=_0x26392d[_0x2eb64c(-_0x48e3cd._0x356788,-_0x48e3cd._0x48664c,-_0x48e3cd._0x5c4f4b,-0x217)][_0x136e14(_0x48e3cd._0x196758,0x2c2,_0x48e3cd._0xc3712b,_0x48e3cd._0x3cafab)](_0x2f03f6=>_0x2f03f6[_0x2eb64c(-0x2bf,-0x1bd,-0x129,-0x27f)]===_0x3acbdc['id']&&_0x2f03f6[_0x136e14(0x211,0xea,0x1fe,0x1a7)]===_0x1f27fc);if(_0x2c5c5c)return await _0x368118['shutdown'](),_0x2c5c5c;return _0x26392d['clients'][_0x136e14(0x390,_0x48e3cd._0x32ac35,0x3da,0x269)](_0x368118),_0x368118;}catch{return _0x26392d[_0x2eb64c(-_0x48e3cd._0x2af3d9,-_0x48e3cd._0x533334,-_0x48e3cd._0x58a27,-_0x48e3cd._0x3fb81b)][_0x2eb64c(-_0x48e3cd._0x276603,-0x2d,0x51,_0x48e3cd._0x40f671)](_0x1a78b4),void 0x0;}finally{_0x26392d[_0x136e14(0x3c4,_0x48e3cd._0x242e89,_0x48e3cd._0x581b3d,_0x48e3cd._0x2b3d84)][_0x2eb64c(-_0x48e3cd._0x196b25,-_0x48e3cd._0x1d2573,-_0x48e3cd._0x5b2c52,0x5d)](_0x1a78b4);}})());return _0x26392d['spawning'][_0xf17010(_0x86bba7._0x14c82a,_0x86bba7._0x360b5e,_0x86bba7._0xb56aee,_0x86bba7._0x31c0b8)](_0x1a78b4,_0x118e9e),_0x118e9e;}async function _0x276e61(_0x2f7ffb,_0x4ea6b7){if(!_0x1541fc())return[];function _0x12af55(_0x2d246c,_0x154d6d,_0x5930b4,_0x121749){return _0x45dad1(_0x2d246c-0xf9,_0x5930b4- -_0x360b26._0x523b33,_0x121749,_0x121749-_0x360b26._0x3272ba);}const _0x19eedc=[];function _0x4f54b2(_0x47760c,_0x40bdcc,_0x5e5e17,_0x571737){return _0x45dad1(_0x47760c-0xd4,_0x47760c- -0x5fb,_0x5e5e17,_0x571737-0x145);}for(const _0x6872db of getServersForFile(_0x2f7ffb)){const _0x37b10e=await _0x6872db['root'](_0x2f7ffb);if(!_0x37b10e)continue;const _0x2db4e9=stateKey(_0x6872db,_0x37b10e);if(_0x26392d[_0x4f54b2(-_0x5b0367._0x35b00f,-0xea,-_0x5b0367._0xe97b9c,-_0x5b0367._0x2b320f)]['has'](_0x2db4e9))continue;const _0xad49cc=_0x26392d[_0x12af55(-0x65,_0x5b0367._0x543124,_0x5b0367._0x3e65ab,_0x5b0367._0x2affc0)][_0x4f54b2(-_0x5b0367._0x139ec9,-0xcd,-_0x5b0367._0x44be22,-0x1c3)](_0x1a3ad5=>_0x1a3ad5[_0x4f54b2(-0x278,-0x22c,-0x28c,-0x2c1)]===_0x6872db['id']&&_0x1a3ad5['root']===_0x37b10e);if(_0xad49cc){_0x19eedc['push'](_0xad49cc);continue;}if(!_0x4ea6b7)continue;const _0x30fc43=await _0x5f5b9e(_0x6872db,_0x37b10e);if(_0x30fc43)_0x19eedc[_0x12af55(0x8e,0x1c,_0x5b0367._0x19e43d,0xd4)](_0x30fc43);}return _0x19eedc;}async function _0x1205d3(_0x41503c,_0x538be7=![]){const _0xd018b0={_0x45b49a:0xd0,_0x43456d:0x119},_0x418e85={_0x490937:0xbb};function _0x1034de(_0x500377,_0x229162,_0x489383,_0x1d5bbc){return _0x45dad1(_0x500377-_0x1f19d7._0x5dde3b,_0x489383- -_0x1f19d7._0x5dfa52,_0x500377,_0x1d5bbc-_0x1f19d7._0x4762d3);}function _0x4d0d8c(_0x327f87,_0x581b34,_0x2eddbc,_0x198f94){return _0x45dad1(_0x327f87-0x1da,_0x327f87-0x66,_0x198f94,_0x198f94-_0x418e85._0x490937);}const _0x128799=await _0x276e61(_0x41503c,!![]);await Promise[_0x4d0d8c(0x568,_0x9cf772._0x2dbf01,_0x9cf772._0x256f49,_0x9cf772._0x429f5f)](_0x128799[_0x4d0d8c(_0x9cf772._0x1f4b6b,0x511,0x649,0x656)](async _0xc6fe41=>{const _0x17e08c={_0x485d6f:0x16c};function _0x49034b(_0x160a23,_0x1034d4,_0x216d73,_0x47d11e){return _0x1034de(_0x160a23,_0x1034d4-_0xd018b0._0x45b49a,_0x47d11e- -0x43,_0x47d11e-_0xd018b0._0x43456d);}function _0x4d7bf3(_0x15512e,_0x1067c4,_0x9d8ad4,_0x1c682f){return _0x1034de(_0x1c682f,_0x1067c4-_0x17e08c._0x485d6f,_0x1067c4- -0x229,_0x1c682f-0x69);}!_0x26392d['openFiles'][_0x49034b(0x130,0xc9,_0x2e1b47._0x4965da,_0x2e1b47._0x6a641b)](_0xc6fe41['serverId']+':'+_0xc6fe41[_0x4d7bf3(-0xfd,-0x47,-_0x2e1b47._0x1dc423,-_0x2e1b47._0x2d5816)]+':'+_0x41503c)&&(await _0xc6fe41[_0x4d7bf3(0x1dd,_0x2e1b47._0x9c2bfa,0x86,_0x2e1b47._0x41973d)][_0x49034b(_0x2e1b47._0x3a9903,_0x2e1b47._0x75c951,0x172,_0x2e1b47._0x4f446f)]({'path':_0x41503c}),_0x26392d[_0x4d7bf3(-_0x2e1b47._0x5c4904,_0x2e1b47._0x37f7dd,-_0x2e1b47._0x4177e5,-0x90)][_0x4d7bf3(_0x2e1b47._0x433f2f,_0x2e1b47._0x1d9954,0x181,0x145)](_0xc6fe41['serverId']+':'+_0xc6fe41[_0x4d7bf3(0x64,-0x47,-_0x2e1b47._0x32c88c,-0xb1)]+':'+_0x41503c));await _0xc6fe41[_0x4d7bf3(0x154,_0x2e1b47._0x10c3e1,0x1e9,0x194)]['change']({'path':_0x41503c,'version':nextFileVersion(_0x26392d,_0x41503c)});if(_0x538be7)await _0xc6fe41[_0x49034b(0x131,0x75,0x157,_0x2e1b47._0x333746)]({'path':_0x41503c});}));}async function _0x5d0501(_0x430a66){await _0x1205d3(_0x430a66['file'],![]);function _0xfb150c(_0x3b33ef,_0x2e4478,_0x2d1a28,_0x3ae5a0){return _0x45dad1(_0x3b33ef-0x91,_0x3b33ef- -0x217,_0x3ae5a0,_0x3ae5a0-0x2a);}return _0x276e61(_0x430a66[_0xfb150c(_0x24ca2f._0x59facf,0x380,0x1d2,0x2a8)],![]);}function _0x45dad1(_0x262c48,_0x47e7f7,_0x2eda7f,_0x15b27c){return _0x324926(_0x47e7f7-0x417,_0x2eda7f,_0x2eda7f-_0x3754da._0x4e730b,_0x15b27c-0x6f);}async function _0x112eba(_0x2dc00b){const _0x4378bc={_0x5c1e60:0x317};function _0x26f054(_0x3eecd2,_0xa6e526,_0x3cf7f2,_0x1a11f8){return _0x45dad1(_0x3eecd2-0xfd,_0x3cf7f2- -_0x4378bc._0x5c1e60,_0xa6e526,_0x1a11f8-0x180);}const _0x246185=await _0x5d0501(_0x2dc00b);function _0x53ddd7(_0x16792b,_0x41fdb8,_0x4c7c35,_0x44151f){return _0x45dad1(_0x16792b-0xa9,_0x4c7c35- -0x2bb,_0x16792b,_0x44151f-_0x5069aa._0x3f4887);}return collectClientResults(_0x246185[_0x26f054(_0x5d1fe6._0x2e756c,_0x5d1fe6._0x5b3adf,0x1c6,0x1a0)](_0x35dd11=>_0x35dd11[_0x26f054(-0x72,0x3e,0x25,0x9)][_0x26f054(-0xf3,-0x4d,0x38,-0x81)](_0x2dc00b)));}return{'isEnabled':_0x1541fc,async 'hasClients'(_0x13f4c8){const _0x54425b={_0x633fca:0x145};function _0x35220f(_0x2cf255,_0x23041f,_0x24a08a,_0x394be7){return _0x45dad1(_0x2cf255-0x22,_0x24a08a- -0x28c,_0x394be7,_0x394be7-_0x54425b._0x633fca);}return(await _0x276e61(_0x13f4c8,![]))[_0x35220f(0x296,_0x2eccf1._0x2c2fa2,0x197,_0x2eccf1._0x369025)]>0x0||getServersForFile(_0x13f4c8)['length']>0x0;},'touchFile':_0x1205d3,async 'diagnostics'(){const _0x5c3fd9={};for(const _0x5956dd of _0x26392d[_0x4916a4(_0x506d9d._0x1d8bd5,_0x506d9d._0x5777ac,0x46f,_0x506d9d._0x3050fc)]){for(const [_0x42f23b,_0x34fdf2]of _0x5956dd['diagnostics']){_0x5c3fd9[diagnosticsKeyToPath(_0x42f23b)]=_0x34fdf2;}}function _0x4916a4(_0x1a5c21,_0x4414bb,_0x4a61cd,_0xfa17cc){return _0x45dad1(_0x1a5c21-_0x19d5bc._0x61dca8,_0x1a5c21-_0x19d5bc._0x2be7d8,_0xfa17cc,_0xfa17cc-0x68);}return _0x5c3fd9;},async 'diagnosticsForFile'(_0x4632f9){function _0x511c72(_0x1b2745,_0x38a8a4,_0x3dacc2,_0x49d6aa){return _0x45dad1(_0x1b2745-_0x1aa1f1._0x5dfe8d,_0x38a8a4-0x26,_0x49d6aa,_0x49d6aa-_0x1aa1f1._0x11a7c1);}function _0x4f1f28(_0xf68230,_0x1c4dbf,_0x5a9a9b,_0x3832b0){return _0x45dad1(_0xf68230-_0x1f3a8d._0x1cb595,_0xf68230- -_0x1f3a8d._0xde346d,_0x1c4dbf,_0x3832b0-_0x1f3a8d._0x5bf7e0);}await _0x1205d3(_0x4632f9,!![]);const _0x284e5c=[];for(const _0x191c1d of await _0x276e61(_0x4632f9,![])){for(const [_0x10792d,_0x59e3d6]of _0x191c1d[_0x4f1f28(0x3a7,_0x5bc38e._0x482f5a,_0x5bc38e._0x30bb5f,0x3ee)]){if(diagnosticsKeyToPath(_0x10792d)===_0x4632f9)_0x284e5c[_0x511c72(0x54a,0x4e9,_0x5bc38e._0x46ea40,_0x5bc38e._0x4d86df)](..._0x59e3d6);}}return _0x284e5c;},async 'definition'(_0x594c1e){function _0x36f9e8(_0x1b664d,_0x1ed449,_0x24787d,_0xd8c6b7){return _0x45dad1(_0x1b664d-_0x418634._0x1cd5e8,_0x24787d- -0x53e,_0x1b664d,_0xd8c6b7-0x162);}function _0x12230b(_0x305a9e,_0xaa213a,_0x25be2a,_0x45dcda){return _0x45dad1(_0x305a9e-0x148,_0x45dcda-0x187,_0x305a9e,_0x45dcda-0x1e0);}return collectClientResults((await _0x5d0501(_0x594c1e))[_0x12230b(0x75b,0x65e,_0x282e31._0x12b2b9,0x664)](_0x31ac4b=>_0x31ac4b[_0x36f9e8(-0xd4,-0x236,-0x202,-0x200)]['definition'](_0x594c1e)));},async 'references'(_0x1d729f){const _0x1127e1={_0x3db3dd:0xac,_0x2b5826:0x44e};function _0x582a84(_0x369c49,_0x11acdd,_0x1940a7,_0x554bcf){return _0x45dad1(_0x369c49-_0x1127e1._0x3db3dd,_0x1940a7- -_0x1127e1._0x2b5826,_0x11acdd,_0x554bcf-0x18d);}function _0x5df2b8(_0x445a76,_0x354fa6,_0x1a0214,_0x1edff7){return _0x45dad1(_0x445a76-0x192,_0x445a76- -_0x4bc9aa._0x3052a6,_0x1a0214,_0x1edff7-0x159);}return collectClientResults((await _0x5d0501(_0x1d729f))[_0x5df2b8(_0x1f3513._0x433ad4,_0x1f3513._0x5bf74c,0x24c,_0x1f3513._0x2bb65e)](_0x5007b2=>_0x5007b2[_0x582a84(-0xf9,-0x97,-0x112,-0xa6)]['references'](_0x1d729f)));},async 'hover'(_0xeaf960){const _0x3deb07={_0x5d7833:0xb6,_0x4b9c63:0x16},_0x4dbe31=await Promise[_0x5aeca6(_0x393513._0x2a7145,_0x393513._0x26a040,0x3c3,0x49b)]((await _0x5d0501(_0xeaf960))[_0x3fe87a(0x53d,0x667,0x455,0x4c7)](_0x21ceb3=>_0x21ceb3[_0x5aeca6(0x34c,0x4bd,0x3e3,0x39b)][_0x5aeca6(0x588,0x57f,0x4a9,0x4ca)](_0xeaf960)));function _0x5aeca6(_0x1c2521,_0x16071d,_0x5d6cdf,_0x50d669){return _0x45dad1(_0x1c2521-_0x3deb07._0x5d7833,_0x50d669-0x5f,_0x1c2521,_0x50d669-_0x3deb07._0x4b9c63);}function _0x3fe87a(_0x1e6e9f,_0x2051f3,_0x59328e,_0x453bfb){return _0x45dad1(_0x1e6e9f-0x190,_0x1e6e9f-_0x11464a._0x3c0117,_0x59328e,_0x453bfb-0x51);}return _0x4dbe31['flatMap'](_0x278ef9=>_0x278ef9[_0x3fe87a(0x491,0x4db,0x398,0x436)]===_0x3fe87a(0x508,0x50e,0x486,0x524)&&_0x278ef9[_0x3fe87a(0x460,0x335,0x3ff,0x53d)]?[_0x278ef9['value']]:[]);},async 'documentSymbol'(_0x3638b5){await _0x1205d3(_0x3638b5,![]);function _0x51210c(_0x2117ec,_0x3e55d2,_0x54ee3f,_0x2a7716){return _0x45dad1(_0x2117ec-0x30,_0x2117ec- -0x474,_0x54ee3f,_0x2a7716-_0x283e13._0x54694b);}function _0x2e910d(_0x509c54,_0x42b7e6,_0x3966f9,_0x365b8b){return _0x45dad1(_0x509c54-0x85,_0x42b7e6- -0x3ed,_0x365b8b,_0x365b8b-0xcc);}return collectClientResults((await _0x276e61(_0x3638b5,![]))[_0x2e910d(0x153,0xf0,0x154,0x98)](_0x177171=>_0x177171['request'][_0x2e910d(0x9d,0xd7,0x47,0x1b1)](_0x3638b5)));},async 'workspaceSymbol'(_0x7ec7fa){const _0x1f1c76={_0x5c5b17:0xa8,_0x5e8ed8:0x139};function _0x34b699(_0x380700,_0x4c24ed,_0xd44b9e,_0x136973){return _0x45dad1(_0x380700-0xc7,_0xd44b9e- -0x4ef,_0x380700,_0x136973-0x145);}function _0x2140b6(_0x3c7e0b,_0x5371b3,_0x474dcb,_0x1698a4){return _0x45dad1(_0x3c7e0b-_0x1f1c76._0x5c5b17,_0x5371b3- -_0x1f1c76._0x5e8ed8,_0x3c7e0b,_0x1698a4-0x19);}return collectClientResults(_0x26392d[_0x2140b6(_0x12d678._0x5c8037,0x2d1,_0x12d678._0x100be3,0x27b)][_0x34b699(-0x18,_0x12d678._0xc8982d,-0x12,-_0x12d678._0x2f6693)](_0x35cba3=>_0x35cba3['request']['workspaceSymbol'](_0x7ec7fa)));},async 'implementation'(_0x50f2ca){const _0x3cae9b={_0x215bfd:0x126};function _0x1bef88(_0x1d1e10,_0x545d49,_0x51b79f,_0x4539ce){return _0x45dad1(_0x1d1e10-_0x1fc47e._0x1d6682,_0x51b79f- -_0x1fc47e._0x2174b2,_0x4539ce,_0x4539ce-_0x1fc47e._0xd374ee);}function _0x2f1cc6(_0x1d14ed,_0x236b98,_0x30679e,_0x142472){return _0x45dad1(_0x1d14ed-_0x3cae9b._0x215bfd,_0x236b98- -0xc7,_0x1d14ed,_0x142472-0x189);}return collectClientResults((await _0x5d0501(_0x50f2ca))['map'](_0x302a97=>_0x302a97[_0x1bef88(-0x1b2,-0xaa,-0xa8,-0x57)][_0x1bef88(0x19,0x121,0x5d,0xbd)](_0x50f2ca)));},async 'prepareCallHierarchy'(_0x58a9fc){return _0x112eba(_0x58a9fc);},async 'incomingCalls'(_0x4cf815){const _0x1b885c={_0x10c574:0xfc};function _0x11773f(_0x3b3186,_0x2e0d54,_0x5c4bcc,_0x142f24){return _0x45dad1(_0x3b3186-0xef,_0x142f24-0x194,_0x3b3186,_0x142f24-_0x1b885c._0x10c574);}function _0x193950(_0x37ea73,_0x5a5aa0,_0x5227b6,_0x22a20d){return _0x45dad1(_0x37ea73-_0xdb170c._0x2e8f9d,_0x22a20d- -_0xdb170c._0x4e2eae,_0x5a5aa0,_0x22a20d-_0xdb170c._0x451218);}const _0x57827c=await _0x112eba(_0x4cf815),_0x29950b=await _0x5d0501(_0x4cf815);return collectClientResults(_0x29950b['flatMap'](_0x372f69=>_0x57827c[_0x11773f(0x5f1,0x713,0x635,0x671)](_0x10fe6c=>_0x372f69[_0x11773f(0x3a2,0x433,0x4ee,0x4d0)]['incomingCalls'](_0x10fe6c))));},async 'outgoingCalls'(_0x24ffbe){function _0x422a44(_0x78f355,_0x425e95,_0x56b369,_0x54f0da){return _0x45dad1(_0x78f355-_0x36c38f._0x324660,_0x78f355-0x172,_0x56b369,_0x54f0da-_0x36c38f._0x563511);}const _0x4e9dad=await _0x112eba(_0x24ffbe),_0x4ae625=await _0x5d0501(_0x24ffbe);function _0x14d877(_0x55e244,_0x46fae8,_0x47b635,_0x2da6cd){return _0x45dad1(_0x55e244-0xa8,_0x47b635- -0x3ba,_0x46fae8,_0x2da6cd-_0x3c2a5a._0x4a41eb);}return collectClientResults(_0x4ae625[_0x14d877(_0xbea5c8._0x4e2450,0x89,_0xbea5c8._0x3a5b02,-_0xbea5c8._0x1bade3)](_0x964238=>_0x4e9dad[_0x14d877(0x118,0x16f,0x123,0x47)](_0x1aef31=>_0x964238[_0x422a44(0x4ae,0x45d,0x401,0x43d)][_0x14d877(0xee,-0x106,0x23,-0x1)](_0x1aef31))));},async 'shutdown'(){if(_0x26392d[_0x4c9a26(0x5c9,_0x1b01a0._0xadb524,0x5a0,0x517)])return;function _0x20c121(_0x124a60,_0x3b67d7,_0x3765ce,_0x277ca6){return _0x45dad1(_0x124a60-0x73,_0x277ca6- -_0x1e45dd._0x24f21b,_0x124a60,_0x277ca6-0x117);}_0x26392d[_0x4c9a26(_0x1b01a0._0x41a301,_0x1b01a0._0x4cf621,_0x1b01a0._0x64d074,0x56c)]=!![],await Promise[_0x20c121(-_0x1b01a0._0x18d99f,-0x3a,-_0x1b01a0._0x160c1f,-0x12e)](_0x26392d[_0x4c9a26(0x38b,0x3d9,0x488,_0x1b01a0._0x26761c)][_0x20c121(_0x1b01a0._0x44b6b3,-0x124,_0x1b01a0._0x1fad20,-_0x1b01a0._0xc41da6)](_0x3a6917=>_0x3a6917[_0x20c121(0xa6,-0xf4,0x58,-0x63)]())),_0x26392d['clients']=[],_0x26392d['spawning'][_0x4c9a26(0x3b9,0x414,_0x1b01a0._0x4ea9d8,_0x1b01a0._0x427bd7)](),_0x26392d[_0x20c121(-_0x1b01a0._0x4f85d3,-_0x1b01a0._0x598027,-0x147,-0x173)][_0x20c121(-0x1d6,-_0x1b01a0._0x5206c3,-0xb0,-0x125)](),_0x26392d[_0x4c9a26(0x4cf,_0x1b01a0._0x567274,0x443,0x57c)][_0x20c121(-0x128,-0x152,-0xab,-_0x1b01a0._0x2ed02f)]();function _0x4c9a26(_0x423999,_0x3b0368,_0x1852d9,_0x3e9ad3){return _0x45dad1(_0x423999-0x104,_0x3b0368- -0x31,_0x423999,_0x3e9ad3-0x96);}_0x26392d[_0x4c9a26(0x2f7,0x373,0x45f,0x44f)][_0x4c9a26(0x362,_0x1b01a0._0x184c7b,_0x1b01a0._0x3125e5,_0x1b01a0._0x1f5112)]();},'status'(){const _0x59524f={_0x4eb6ba:0x163},_0x25cd38={_0xd816b4:0x8,_0x3b01cd:0x2e7,_0x12b3a5:0x1b1};function _0x334f79(_0x4910c6,_0x19ee5b,_0x35bbc9,_0x74ee2){return _0x45dad1(_0x4910c6-_0x25cd38._0xd816b4,_0x74ee2- -_0x25cd38._0x3b01cd,_0x35bbc9,_0x74ee2-_0x25cd38._0x12b3a5);}function _0x192a13(_0x32a323,_0x7c11b2,_0x5f1f39,_0x42c378){return _0x45dad1(_0x32a323-0x57,_0x5f1f39-_0x59524f._0x4eb6ba,_0x32a323,_0x42c378-0xe3);}return{'connectedClients':_0x26392d[_0x192a13(0x583,_0xeff26f._0x41aec1,0x56d,0x491)][_0x192a13(_0xeff26f._0x31079e,_0xeff26f._0x1dc6be,0x586,0x53e)]};}};}import{spawn as _0x3ec891}from'child_process';import{statSync}from'fs';import*as _0x16f5a4 from'os';import*as _0x4297ba from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x5b1231 from'path';function isPathInside(_0x541d0d,_0x2b5b66){const _0xcc3711={_0x2a49d4:0x475,_0x754154:0x370,_0x3d3fab:0x5a8,_0x291460:0x52f,_0x3f38b9:0x344},_0x5db796={_0x25cee6:0x1dd},_0x436735={_0x236b9f:0x2b3,_0xc9ed4e:0x1ae};function _0x46733f(_0x1b3179,_0x55dfc3,_0x36a805,_0x1c6616){return _0x22ef16(_0x55dfc3,_0x1b3179-_0x436735._0x236b9f,_0x36a805-_0x436735._0xc9ed4e,_0x1c6616-0x24);}const _0x1e0346=_0x5b1231['resolve'](_0x541d0d);function _0x292b57(_0x277a9b,_0xcfdc6a,_0x39a082,_0x4e9499){return _0x22ef16(_0x4e9499,_0xcfdc6a- -0x34c,_0x39a082-0x15a,_0x4e9499-_0x5db796._0x25cee6);}const _0x37b6a9=_0x5b1231[_0x46733f(_0xcc3711._0x2a49d4,0x399,0x3ad,_0xcc3711._0x754154)](_0x1e0346,_0x2b5b66);return _0x37b6a9===''||!_0x37b6a9[_0x46733f(0x57d,0x551,_0xcc3711._0x3d3fab,_0xcc3711._0x291460)]('..')&&!_0x5b1231[_0x46733f(0x473,0x49c,0x549,_0xcc3711._0x3f38b9)](_0x37b6a9);}function resolveWorkspacePath(_0x120b72,_0x3a81a9){return resolveAllowedPath(_0x120b72,[],_0x3a81a9);}function _0x2759(){const _0x11c53e=['y291BNq','zgvMyxvSDen3za','y2fWywjPBgL0AwvZ','qxzHAwXHyMXLignVBw1HBMrZoG','CgfJA2fNzu5HBwu','zgLZy292zxj5','C3rKzxjY','BM9Kzv9TB2r1BgvZ','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','BNbT','C3rYAxbbBNnP','lNrZ','Aw5JB21PBMDdywXSCW','uhjVz3jHBuzPBgvZ','Dg91y2HgAwXL','CgfJA2fNzs1SB2nRlMPZB24','lMDPzG','yxnPzgu','y2XPzw50x3nLy3jLDf9WB3n0','z29uB0rLzMLUAxrPB24','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','yxjNDw1LBNroyw1LCW','z2L0qNjHBMnO','u0HfteW','lNrZEa','D3jPDgu','zgvSzxrL','vw5RBM93BIb0B29SoIa','D29YA3nWywnLu3LTyM9S','CgXHAw50zxH0','DhvWBgu','BM9Uzq','mtm0nJi2nfbfvuzVsG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Aw1Hz2uVCg5N','C2vYDMvYtMfTzq','lw5i','A2v5yMLUzgLUz3m','yxjNDw1LBNrZ','B2jQzwn0','r2XVyG','zMLSzq','zMfPBgvK','rgLHz25VC3rPyW','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','AhrTBfnUAxbWzxq','C3rYAw5N','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNvSzMLSBgvK','igj5DgvZ','zxHPDa','zgvSzwDHDgvKlxj1BI0','zw5HyMXLza','Cgf0Ag5HBwu','tuLnrtOG','tunqihnLCNzLCIa','iYmGu2TPBgW6ia','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','BgLUzq','Ahr0Ca','B2f1DgG','Dw5RBM93BG','DhjPBuvUza','y29TBwfUzhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','DgfZAW','Ag9TzwrPCG','AxneAxjLy3rVCNK','z2v0','D29YA3nWywnLl3n5BwjVBa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','sfruuca','tM8GC3LTyM9SCYbMB3vUza','ChvZAa','zg9JDw1LBNrtEw1IB2W','C291CMnL','uhjVz3jHBuzPBgvZkhG4nIK','ywDLBNrZ','rMLSzu5LDW','zMLUywXnzxnZywDL','C3jJl2fNzw50l2fNzw50lNrZ','C2HPzNq','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','Dg9ju09tDhjPBMC','B25oB3rPzMLJyxrPB24','BhnW','CMCUzxHL','C3rHCNreAxi','yw5ZAti1nG','Aw1Hz2uVz2LM','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y2fUy2vS','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','B2XKvgv4Da','BwvZC2fNzq','ChjVDg9JB2W','zMLSzvbHDgG','BwfW','A2v5','ls1WCMvMAxG','D2vI','CNvUswq','lMPZEa','C3rHCNrZv2L0Aa','AxnfBMfIBgvK','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','zgLHz25VC3rPy3m','BgLNAhq','zxjYB3jnzxnZywDL','r0LgodLH','Cgf0Aa','C3bHD24','AxnfCNjVCG','Bwf0y2HLCW','C3rKB3v0','CgfJA2fNzxm','yMfZzty0','zMLSDgvY','BM90Awz5','C3rKAw8','BwvTB3j5','CMfUz2u','ienHDxnLoIa','C3bHD25PBMC','C3rYAw5NAwz5','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','CMvXDwvZDhm','zgLYzwn0B3j5','yxnZAwDU','vw5HDxrOB3jPEMvKrxjYB3i','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','DgHLBG','CxvLCNK','ywXS','zhj5uNvU','A2LUza','zNjVBq','v2vIrMv0y2G','C2H1DgrVD24','Dg9mB3DLCKnHC2u','u2L6ztOG','Bw9KzwW','Aw1Hz2vZ','C2XPy2u','vMLLD2vKigLTywDLigzPBgu6ia','yNvUlMXVy2S','l3vZCI9IAw4VyMfZAa','C2vZC2LVBG','igzHAwXLzc4','C2H1DgrVD25tDgfYDgvK','ywrK','yM0Ynq','D2LUmZi','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ls1NBg9IpseUz2L0lYO','y29Kzq','ChjVCgvYDgLLCW','C2fMzq','CMvJB3jK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','zxjYB3i','nZuXmxjIwefrta','BNv2Aw4','BxrPBwvnCW','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','DhLWzq','B3rOzxi','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','zMLSzvzLCNnPB25Z','mZbVALbVCgm','C2HLBgXqyxrO','Cgf0DgvYBG','Aw1Hz2uVD2vICa','ChjLzML4','Aw1Hz2uVANbLzW','AhLKCMf0zu1LDge','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','y2XPzw50sw5MB3jTyxrPB24','yxjYyxK','BgfUzW','A2LSBa','zgLZy292zxj5u3rHDgu','Dgv4DerVy3vTzw50l2rPzenSB3nL','v2fYBMLUzW','CMvTB3zLrxzLBNrmAxn0zw5LCG','DxrTx3nVDxjJzq','cGOTls0kcG','y29TBwfUza','igj5DgvZigv4y2vLzhmG','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','CgfYzw50u2vZC2LVBKLK','BgfUz18','y2f0y2G','u3rHCNrLzcbHz2vUDcbYDw4G','B3bLCMf0Aw9U','mZe5nZK2mvrQAuj1Dq','vMLLD0zPBgu','AxngAwXL','z2XVyG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','cMbGya','nZmYzgzXtLDP','DhjHBNnWB3j0','yxv0BW','C2TPBgXZ','zMLSztOVlW','CNvUBMLUzW','ywjVCNrLza','BgLZDfrVB2XZ','Agv4','q29TBwfUzcaN','Ahr0Chm6','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5JBhvKzq','yxjNDw1LBNrZvgv4Da','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','ls1JB2X1Bw4','C3rKAw4','Ag9ZDa','u2TPBgWGjW','Dg9Rzw5Z','C3rHDhvZvgv4Da','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','uMvZCg9UC2uGDg9VigXHCMDLoIbLEgnLzwrZia','l2jPBI9IyxnO','y2fSBfrVB2W','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','DhLWzxnJCMLWDhjLywn0','ywrKrxzLBNrmAxn0zw5LCG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','BNvT','AhjLzG','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','CMLWz3jLCa','u2HLBgWGBM90igzVDw5KoIa','Bg93','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','zMvUy2vK','CMvXDwLYzwq','cGPbuKDvtuvovfm6ia','zgvMyxvSDfrPBwvVDxrnCW','q29Tu3bLyW','lI4U','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','y3DK','Dg9Rzw4','sw52B2TLq29TBwfUza','ls1ZDgrPBW','DgvZDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','lNDLyNa','C2vYDMvY','qxnZAwDUvgfZAW','z2nSAwq','CgfNzw1HCa','qgjPB21LANmVyMLVBwu','lMnTza','ywDLBNrjza','zgvZy3jPChrPB24','D2fPDezVCKrPywDUB3n0AwnZ','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','C3LTBgLUAW','AgfZq2XPzw50CW','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','mJm1mK9iBLzvva','AwDUB3jLt3v0Chv0','C2v0','CgfYC2u','ihDHCYbHyM9YDgvKlG','yw5ZAte2','o1TE','CMfUzg9T','z29Vz2XLq3nLq3G','C2v2zxjPDhK','yxjNCW','Dg9VBfjLC3vSDhm','y2XPzw50','yNvUlMXVy2TI','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','CMvHC29U','zgf0yq','y2HHCKnVzgvbDa','EwfYBI5SB2nR','C3rHDgu','C25PChbLDa','Bg9HzenVBw1HBMq','CMvXDwvZDa','Bwf4qNL0zxm','ywn0AxzL','z29uB0LTCgXLBwvUDgf0Aw9U','C2L0ztO','CgLK','te9dquXbufbeqvrb','C2vYDMvYCW','CM9VDa','zMjJBgLK','y2vPBa','C3rHCNq','zgLYBMfTzq','yxnJAwK','uhvIBgLZAgvKoIa','C2vHCMnOugfYyw1Z','zw5K','Aw5ZDhj1y3rPB25Z','AxrLBxm','ChjLCgfYzunHBgXiAwvYyxjJAhK','ugf0AcbUB3qGzM91BMq6ia','lMn0CW','B2zMC2v0','DgL0Bgu','DxjP','zw50CMLLCW','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y3jSzG','yMfZzw5HBwu','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','C2vHCMnOvhLWzq','BgLUzvn0yxj0','BwnFy2LK','y29UBMvJDa','Cgf0DgvYBIbPCYbYzxf1AxjLza','B25Jzq','yMvHCMvY','y29UDgvUDa','zMLUywXnzxnZywDLvgv4Da','yxr0CG','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','AM9PBG','yxbWBgLJyxrPB24VANnVBG','rxjYB3i','l3vZCI9SB2nHBc9IAw4VCMC','zgvUBY5QC29UyW','zgLZywjSzwq','ntq1nJDjuM5uqwy','ChvIBgLZAgvKqxq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Bg9JyxrPB24','D2HLCMuGCMC','EwvZ','Dg9VBhmVy2fSBa','lMnQCW','B2C6DxbKyxrLzf90Aw1L','D2HPy2GGCMC','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','BhnWu2vYDMLJzq','zMLYC3q','u0Lhs0Lmta','Bg9JywXLq29TCgfYzq','Cg5WBs1SB2nRlNLHBwW','zgf0zxrPBwu','DMvYAwzPzxi','C3rVCMfNzurPCG','yw50AhjVCgLJlw1LC3nHz2vZ','AgfUzgXL','lNbUzW','Dg9Rzw5tDg9YywDLs2v5','lNrTCc4','C2vYDMvYswq','ru5pru5u','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','rMv0y2GGywjVCNrLzcbIEsb1C2vY','AgfZ','v0vcua','ksbB','BhnWlxbYB3H5','Cg9W','zgvSAw1PDgvY','lM51DMLU','BMfTzq','y29UDgv4Da','zw51Bq','DxrTx3rLCM0','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','yNL0zuXLBMD0Aa','ChjVy2vZCW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','Dg9VBenHBgXjza','Dg9tDhjPBMC','BwLU','z29Vz2XLq3nLs2v5','Aw5PDgLHBgL6yxrPB24','yxjNDw1LBNriAw50','lMPZ','BgLZDgvU','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','CMvZDwX0','CMvWBgfJzq','B3jPz2LUvg9VBenHBgXjza','B3bLBKzPBgvZ','yMLVBwuUANnVBG','CMfUAW','sgLUDa','Aw5JBhvKzxm','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','Dhj1zq','C2nVCgvZ','DhLWzxnJCMLWDa','l3bPza','tNv2Aw4','B3jPz2LUywW','ywjVCNq','AwzYyw1L','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','rMLSzuvKAxq','AxngAw5PDgu','AwDUB3jL','ignVBxbSzxrLzc4','ANnVBG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','y29ZDa','rgv0ywLSoIa','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','y2fSBgjHy2TvCMW','A2v5CW','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','qMfZzsbKAxjLy3rVCNK6ia','mJbMyxfewhq','Ahr0CdO','BxrPBwu','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','yxbPs2v5','C29YDa','yMLVBwu','CNnZ','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Dg9VBa','z29Vz2XLlwnZzq','AxntEw1IB2XPy0XPBMS','zgLZCg9Zzq','BgL0zxjHBa','zgfYAW','seLhsa','CgLWzq','A2LSBgvK','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','xg5DkJ8','yMLUyxj5tMfTzq','zMXVB3i','ls1MB2XSB3C','AxnbyNnVBhv0zq','ls0T','CMvSyxrPDMu','Dg9VBhm','B3v0z29PBMDdywXSCW','zxHPDcbJB2rLia','B3bLBG','zg9TywLUCW','BgLUzu51Bq','zgvMAw5PDgLVBG','qwDLBNqGCNvUia','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','vw50AxrSzwq','odG1mtv0q1bxuMy','AxnbCNjHEq','DxrMoa','AgvHzgvYCW','CMvZB2X2zq','y2HHCMfJDgvY','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','BgLTAxq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','DhnZzxj2zxiUANm','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','zM9VDgvY','tM8GzgLHz25VC3rPy3m','C2HHmJu2','B2zM','CgfJA2fNzs5QC29U','zgf0zvjLC3rYAwn0','yNjVA2vU','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','C2vZC2LVBKLK','Aw5ZDgfSBa','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','C2vUze5VDgLMAwnHDgLVBG','C2vUzfjLCxvLC3q','lM1QCW','yMLYDgH0Aw1L','DMfSDwu','AMf2yxnJCMLWDa','C2L6zq','zxH0BMfTzq','zMXHDe1HCa','mtG1mZa2ywPYDufY','BgLI','B25szwrPCMvJDa','Aw1Hz2u','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y2XPzw50CW','y2XVC2u','BgLUAW','DxbKyxrL','B3b0Aw9UywW','zMLUza','DhjPBq','lu5Vtg9NBW','yM94zwq','Aw5PDgLHBgL6zwq','Bwf4','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','qMfZAa','CgfZC3rOCM91z2G','BNvTyMvY','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','C2LNBMfS','yxv0AfjLCxvPCMvK','BwfYA2rVD24','CgXHAw4','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','yM9KEq','DxnLCM5HBwu','CMvNAw9U','y29KzvzLCMLMAwvY','BgvUz3rO','AgLNAa','DgLTzw91De1Z','o1TExg5DkJ8','BgLUzvrLEhq','ywXSB3DLzerPCNm','ygbGANnVBGO','zxf1ywXZ','zw52','ig1Z','Bwv0yxrHz3m','DgHPBMTPBMC','C3bSAxq','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','C3rHDhvZ','Aw5WDxrty2HLBwe','lMjPBG','ANnJB25MAwCUANnVBG','yxv0Ag9YAxPHDgLVBL9JB2rL','AxndB250zxH0','BM93','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','lMPWzwC','tg9HzfnRAwXS','zgLHz25VC3rPy3ngB3jgAwXL','ywXSu2v0DgXLza','AMf2yxnJCMLWDhjLywn0','ugfJA2fNzxm','y29TCgXLDgvK','BMv3vgv4Da','Aw1WBgvTzw50yxrPB24','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','wZ0+nY04kcLD','yxr4','y2XLyxi','y29UBMvJDgvK','DxjS','yxv0Aa','zNvUy3rPB24','yM9VBgvHBG','CgXHDgzVCM0','tg9HzgvKigzYB206ia','Dhj1BMm','DhnJB25MAwCUANnVBG','l3vZCI9IAw4VC2G','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','AgvHzgvY','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','Aw5KzxHpzG','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvJzw5JEurHExm','mc4WlJa','y29UzMLN','Dgv4Da','t0zg','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','BgLUzuvUza','lMPZB24','C3vIyxjYyxK','zxH0zw5ZAw9UCW','C2nYAxb0','igzYB20G','y29Uy2f0','mJm2mLbJrxvTAq','BM9Zy3jPChq','zgv0ywLS','ndi2vKTdAuLI','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','BwnFzwLK','qxv0Ag9YAxPHDgLVBG','Ag92zxi','y29UDgv4DeXPBMS','CMvTB3zL','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','y29UBMvJDgLVBG','BgfUz3vHz2u','zgLNzxn0','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','ygbG','tgLUzsa','rMLSzsb3CML0DgvUigf0ia','AxnjBNrLz2vY','Dw5PB24'];_0x2759=function(){return _0x11c53e;};return _0x2759();}function resolveAllowedPath(_0x364ad4,_0x2a0f52,_0x1666bd){const _0x7b2c3b={_0x45c591:0x9a,_0x24e4a9:0x163,_0x27af95:0xa8,_0x2e3168:0x68,_0x3b237e:0x251},_0x4d84e7={_0x135719:0xde},_0x2adb1b={_0x535d92:0x9d,_0x16ca3b:0x14e},_0xfc8713=_0x5b1231[_0x4590fe(0x1b1,_0x7b2c3b._0x45c591,-0x8a,0x63)](_0x364ad4),_0x145794=_0x5b1231['resolve'](_0xfc8713,_0x1666bd);function _0x4c4518(_0x535015,_0x5ab74e,_0x2e5da1,_0x1ed676){return _0x324926(_0x5ab74e-_0x2adb1b._0x535d92,_0x2e5da1,_0x2e5da1-0x14,_0x1ed676-_0x2adb1b._0x16ca3b);}const _0x2da842=[_0xfc8713,..._0x2a0f52[_0x4c4518(0x142,_0x7b2c3b._0x24e4a9,_0x7b2c3b._0x27af95,0x22f)](_0x33c122=>_0x5b1231[_0x4590fe(0x123,0x9a,0x195,0x1a5)](_0x33c122))];if(_0x2da842['some'](_0x2e796c=>isPathInside(_0x2e796c,_0x145794)))return _0x145794;function _0x4590fe(_0x1f2c30,_0x3caa2c,_0x1c2f3a,_0x510528){return _0x324926(_0x3caa2c-0xc7,_0x1f2c30,_0x1c2f3a-0x1a4,_0x510528-_0x4d84e7._0x135719);}throw new ToolExecutionError(_0x4c4518(_0x7b2c3b._0x2e3168,0x15d,_0x7b2c3b._0x3b237e,0x85)+_0x1666bd,{'path':_0x1666bd,'rootDir':_0xfc8713,'allowedDirs':_0x2da842});}async function assertWorkspaceFile(_0x291bc3){const _0x876466={_0x1ab3f8:0x11,_0x4a38de:0xf2},_0x7f73ac={_0x2450be:0x123,_0x55c92d:0x1b8};function _0x5aeda8(_0x149ee2,_0x26d8cc,_0x123a0e,_0x1d84c9){return _0x324926(_0x149ee2-_0x7f73ac._0x2450be,_0x123a0e,_0x123a0e-_0x7f73ac._0x55c92d,_0x1d84c9-0x46);}const _0x190b77=await stat(_0x291bc3);if(!_0x190b77[_0x5aeda8(-_0x876466._0x1ab3f8,0x8e,0x6a,-_0x876466._0x4a38de)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x291bc3,{'path':_0x291bc3});}function isProbablyBinary(_0x4fa980){const _0x335625={_0x37d91e:0x2f5,_0x4b5f68:0x1d0,_0x537189:0x140},_0x1f684c={_0x41a424:0x35f,_0x4a9d4b:0x46};function _0x4b4295(_0x40a991,_0x319aa6,_0x28c44f,_0xe43553){return _0x22ef16(_0x40a991,_0x28c44f- -_0x1f684c._0x41a424,_0x28c44f-0xe4,_0xe43553-_0x1f684c._0x4a9d4b);}return _0x4fa980[_0x4b4295(-_0x335625._0x37d91e,-0x17b,-_0x335625._0x4b5f68,-_0x335625._0x537189)](0x0);}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x23691c){return _0x23691c instanceof Error;}function shellExists(_0x224e49){function _0x1f1492(_0x5f3318,_0x3248ec,_0x238fed,_0x512647){return _0x22ef16(_0x3248ec,_0x5f3318- -0x366,_0x238fed-0x1df,_0x512647-0x158);}try{const _0x5163f6=statSync(_0x224e49);return _0x5163f6[_0x1f1492(-0x29c,-0x2be,-0x1c5,-0x392)]()&&(_0x5163f6['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x169989){const _0x483823={_0x489f8b:0x551,_0x5eeefe:0x59f,_0x2775f5:0x635,_0x59be3a:0x672,_0x2e26b5:0x686,_0x1ed2cf:0x34c,_0xf7574c:0x53b,_0x1b1b35:0x578,_0x5d8e54:0x45b,_0x1003ea:0x5cb,_0x3621b8:0x66c,_0x16521b:0x382,_0xbde43b:0x48c},_0x2901cc={_0x2057c0:0x17,_0x37fa8e:0x10b},_0x30bfae={_0x530fac:0x32};if(_0x169989)return _0x169989;if(_0x16f5a4[_0x1ae0f8(_0x483823._0x489f8b,_0x483823._0x5eeefe,_0x483823._0x2775f5,0x5a8)]()===_0x1ae0f8(0x70b,0x576,0x62c,_0x483823._0x59be3a))return process[_0x1ae0f8(0x588,0x672,_0x483823._0x2e26b5,0x588)][_0x13f8a6(0x3a1,_0x483823._0x1ed2cf,0x3f1,0x2e4)]||'cmd.exe';function _0x1ae0f8(_0x5a32d6,_0x5cef8e,_0x5201c4,_0x192d0e){return _0x324926(_0x192d0e-0x574,_0x5a32d6,_0x5201c4-0x12,_0x192d0e-_0x30bfae._0x530fac);}const _0x574c4a=[_0x1ae0f8(_0x483823._0xf7574c,_0x483823._0x1b1b35,0x47e,_0x483823._0x5d8e54),'/bin/sh',_0x1ae0f8(_0x483823._0x1003ea,0x751,0x5ca,_0x483823._0x3621b8),_0x13f8a6(_0x483823._0x16521b,_0x483823._0xbde43b,0x491,0x3df)];for(const _0x10b011 of _0x574c4a){if(shellExists(_0x10b011))return _0x10b011;}function _0x13f8a6(_0x90bab1,_0x464032,_0xf634f8,_0x1440eb){return _0x324926(_0x464032-0x454,_0x90bab1,_0xf634f8-_0x2901cc._0x2057c0,_0x1440eb-_0x2901cc._0x37fa8e);}const _0x5e5f88=process['env'][_0x13f8a6(0x54e,0x4cc,0x504,0x554)];if(_0x5e5f88&&shellExists(_0x5e5f88))return _0x5e5f88;return'/bin/bash';}function buildShellArgs(_0x4e4c66,_0x5f056f){const _0x33ae31={_0x3def73:0xf6,_0x223353:0x1dc,_0x5afe7b:0xb,_0x30b8b4:0x198,_0x490a51:0x10f,_0x11c179:0x1f9,_0x49637d:0x159,_0x242f48:0xd2,_0x1b5e0f:0x70,_0x4881a2:0x5e},_0x2fc062={_0x38d835:0x58,_0x419a74:0xce};if(_0x16f5a4[_0x3b95cc(-0x1cc,-_0x33ae31._0x3def73,-0x133,-_0x33ae31._0x223353)]()===_0x3b95cc(-0x102,-0x167,_0x33ae31._0x5afe7b,-_0x33ae31._0x30b8b4)){const _0x471717=/cmd(\.exe)?$/i[_0x120177(-0x21a,-_0x33ae31._0x490a51,-_0x33ae31._0x11c179,-_0x33ae31._0x49637d)](_0x5f056f);return _0x471717?['/d','/s','/c',_0x4e4c66]:[_0x120177(-0xa3,-_0x33ae31._0x242f48,_0x33ae31._0x1b5e0f,-_0x33ae31._0x4881a2),'-NoProfile','-Command',_0x4e4c66];}function _0x120177(_0x3d632b,_0x356ec9,_0x341d63,_0x201de9){return _0x324926(_0x201de9- -_0x2fc062._0x38d835,_0x3d632b,_0x341d63-0x1b1,_0x201de9-_0x2fc062._0x419a74);}function _0x3b95cc(_0x280e45,_0x288498,_0x40466f,_0x29ace7){return _0x22ef16(_0x288498,_0x280e45- -0x3fe,_0x40466f-0x114,_0x29ace7-0x84);}return['-c',_0x4e4c66];}function resolveCarriageReturns(_0x39b4df){const _0xacfcf3={_0x5ab983:0x42f,_0x4a6d3f:0x47a,_0x3d7e0c:0x4a9,_0x4780ce:0x261,_0xfb578d:0x1cf,_0x1b0d75:0x175},_0x1008cb={_0x53d7e4:0x1d8,_0x2812a6:0x2d8,_0x1a1b85:0x184,_0x5db1eb:0x4c7,_0xdb3e8:0x4db,_0x52871b:0x57a},_0x34e549={_0x211c64:0x144},_0xa02075={_0x4448eb:0x5,_0x34764a:0x18a};function _0x5d6422(_0x121d7f,_0x2c33fd,_0x8eb353,_0x3c2fe3){return _0x324926(_0x121d7f-0x313,_0x2c33fd,_0x8eb353-_0xa02075._0x4448eb,_0x3c2fe3-_0xa02075._0x34764a);}function _0x13742e(_0x10fc52,_0x4412ec,_0x4e22d7,_0x570a9f){return _0x324926(_0x570a9f-0x385,_0x4412ec,_0x4e22d7-0x5b,_0x570a9f-_0x34e549._0x211c64);}return _0x39b4df[_0x13742e(0x2b5,_0xacfcf3._0x5ab983,_0xacfcf3._0x4a6d3f,0x39d)]('\x0a')[_0x13742e(_0xacfcf3._0x3d7e0c,0x54b,0x53c,0x44b)](_0x55463f=>{const _0x316cd3={_0xf62a07:0x1bc,_0x3280ec:0x3},_0x963876={_0x12e83e:0xef};function _0x19d1fa(_0xb91646,_0x96c4da,_0x291027,_0x45633b){return _0x5d6422(_0xb91646- -0xcc,_0x96c4da,_0x291027-0xcd,_0x45633b-_0x963876._0x12e83e);}function _0xc21d28(_0x6614f7,_0x4b31c3,_0x102e99,_0x13d4ed){return _0x5d6422(_0x4b31c3-_0x316cd3._0xf62a07,_0x102e99,_0x102e99-0x80,_0x13d4ed-_0x316cd3._0x3280ec);}if(!_0x55463f[_0x19d1fa(_0x1008cb._0x53d7e4,_0x1008cb._0x2812a6,0xd4,_0x1008cb._0x1a1b85)]('\x0d'))return _0x55463f;const _0x57e487=_0x55463f[_0xc21d28(0x60c,0x4e7,_0x1008cb._0x5db1eb,0x60a)]('\x0d');return _0x57e487[_0x57e487[_0xc21d28(0x5a7,_0x1008cb._0xdb3e8,_0x1008cb._0x52871b,0x3c7)]-0x1]??'';})[_0x5d6422(_0xacfcf3._0x4780ce,0x290,_0xacfcf3._0xfb578d,_0xacfcf3._0x1b0d75)]('\x0a');}function resolveBackspaces(_0x526bd4){const _0x368d4f={_0x2f7cc2:0x173,_0x5cd439:0x136,_0x2b5511:0x19,_0x1cc3cd:0x618,_0x1bfdbf:0x4ba,_0xef1fbb:0x50b},_0x360463={_0x27324f:0x129,_0x34c2c3:0x84},_0x5d259d={_0x234405:0x4d,_0x1b67c5:0xc4},_0x320880=[];function _0x2e93ac(_0x5783c4,_0x2c41d9,_0x4da7be,_0x2ca421){return _0x324926(_0x5783c4-0x56c,_0x2ca421,_0x4da7be-_0x5d259d._0x234405,_0x2ca421-_0x5d259d._0x1b67c5);}function _0x2720e5(_0x69d73b,_0x46bb2c,_0x548ae5,_0x1d2aad){return _0x324926(_0x1d2aad-_0x360463._0x27324f,_0x548ae5,_0x548ae5-0xb8,_0x1d2aad-_0x360463._0x34c2c3);}for(const _0x2df00c of Array[_0x2720e5(_0x368d4f._0x2f7cc2,0x21c,_0x368d4f._0x5cd439,0x217)](_0x526bd4)){_0x2df00c==='\x08'?_0x320880[_0x2720e5(-_0x368d4f._0x2b5511,0x89,0x39,0x9f)]():_0x320880[_0x2e93ac(_0x368d4f._0x1cc3cd,0x53d,0x675,0x68f)](_0x2df00c);}return _0x320880[_0x2e93ac(_0x368d4f._0x1bfdbf,0x5d4,0x4ab,_0x368d4f._0xef1fbb)]('');}function stripAnsiAndControls(_0x10a9c2){const _0x1a740f={_0x35a7e2:0x26d,_0x1bc170:0x3b9,_0x1c654b:0x1ad,_0x58b523:0x20d,_0x397ef7:0x36c,_0x97ac9f:0x259,_0x57106f:0x2dc,_0x51cccb:0x1b8,_0x27aedd:0x28a,_0x50d305:0x274,_0xdf57b3:0x29c,_0x351ec1:0x15f,_0x45cee6:0x339,_0x298d66:0x223,_0x506d8a:0x218,_0x3136eb:0x43c,_0x2b31b8:0x37d,_0x19a17b:0xfd,_0x5f549c:0x218,_0x3c5476:0x17e,_0x233d45:0x299,_0x4dd060:0x263},_0x4fd2af={_0x47cb5a:0x153},_0x4f82f8={_0x101bf3:0x8e};_0x10a9c2=resolveCarriageReturns(_0x10a9c2),_0x10a9c2=resolveBackspaces(_0x10a9c2),_0x10a9c2=stripVTControlCharacters(_0x10a9c2);function _0x304e73(_0x9f0e4e,_0x3b8923,_0x287935,_0x7010e7){return _0x324926(_0x7010e7-0x28d,_0x3b8923,_0x287935-_0x4f82f8._0x101bf3,_0x7010e7-0xf1);}const _0xce409e='\x1b',_0x27cb5d='\x07';_0x10a9c2=_0x10a9c2[_0x3907af(0x3c9,_0x1a740f._0x35a7e2,_0x1a740f._0x1bc170,0x2dc)](new RegExp(_0x3907af(_0x1a740f._0x1c654b,_0x1a740f._0x58b523,_0x1a740f._0x397ef7,0x266)+_0x27cb5d+_0x3907af(0x263,0x3cf,0x1e2,0x30f)+_0x27cb5d,'g'),'');function _0x3907af(_0x497d3c,_0x510548,_0x219f23,_0x43d0e6){return _0x22ef16(_0x510548,_0x43d0e6-_0x4fd2af._0x47cb5a,_0x219f23-0x16a,_0x43d0e6-0x51);}return _0x10a9c2=_0x10a9c2[_0x3907af(0x1db,0x368,_0x1a740f._0x97ac9f,_0x1a740f._0x57106f)](new RegExp(_0x304e73(_0x1a740f._0x51cccb,_0x1a740f._0x27aedd,_0x1a740f._0x50d305,_0x1a740f._0xdf57b3)+_0xce409e+'\x5c\x5c','g'),''),_0x10a9c2=_0x10a9c2['replace'](new RegExp(_0x27cb5d,'g'),''),_0x10a9c2=_0x10a9c2[_0x304e73(_0x1a740f._0x351ec1,_0x1a740f._0x45cee6,_0x1a740f._0x298d66,_0x1a740f._0x506d8a)](new RegExp(_0xce409e+'[P_^][\x5cs\x5cS]*?'+_0xce409e+'\x5c\x5c','g'),''),_0x10a9c2=_0x10a9c2['replace'](new RegExp(_0xce409e+_0x3907af(0x36b,_0x1a740f._0x3136eb,0x4aa,_0x1a740f._0x2b31b8),'g'),''),_0x10a9c2=_0x10a9c2[_0x304e73(0x1da,0x23c,_0x1a740f._0x19a17b,_0x1a740f._0x5f549c)](/[\u0080-\u009F]/g,''),_0x10a9c2=_0x10a9c2[_0x304e73(_0x1a740f._0x3c5476,_0x1a740f._0x233d45,_0x1a740f._0x4dd060,_0x1a740f._0x5f549c)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x10a9c2=_0x10a9c2['replace'](/[\u23CE\u2424]/g,''),_0x10a9c2;}function resolveWorkingDirectory(_0x5e5936,_0x365ec6,_0x181fd6){const _0x499b0d={_0xbdd508:0xa4,_0x260cc9:0x185,_0x1dbe16:0x2e,_0x42a357:0xa},_0x2c4ba2={_0x4aa4ce:0x6d},_0x458525={_0x137f1b:0x401};function _0x9714e3(_0x15729b,_0x46d4b7,_0x17b296,_0x3dc0d3){return _0x22ef16(_0x46d4b7,_0x17b296- -_0x458525._0x137f1b,_0x17b296-0x32,_0x3dc0d3-0x1a7);}function _0x4430eb(_0x5bcfeb,_0x1fbbda,_0x458f84,_0x14fb0b){return _0x22ef16(_0x1fbbda,_0x5bcfeb- -0x192,_0x458f84-_0x2c4ba2._0x4aa4ce,_0x14fb0b-0x99);}const _0x41856d=resolveAllowedPath(_0x365ec6,_0x181fd6,_0x5e5936??'.');try{const _0x11f925=statSync(_0x41856d);if(!_0x11f925[_0x9714e3(-_0x499b0d._0xbdd508,-_0x499b0d._0x260cc9,-0x15d,-0x1f6)]())throw new ToolExecutionError(_0x4430eb(0xa8,0x64,_0x499b0d._0x1dbe16,0x127)+_0x41856d,{'cwd':_0x41856d});return _0x41856d;}catch(_0x460eee){if(_0x460eee instanceof ToolExecutionError)throw _0x460eee;throw new ToolExecutionError(_0x4430eb(0x6a,-0x8f,_0x499b0d._0x42a357,0x15b)+_0x41856d,{'cwd':_0x41856d});}}function killProcessGroup(_0x5491b4,_0x22303c,_0x465d4a=_0x324926(-0x9f,-0xfa,-0x163,0x2f)){const _0x279c6c={_0x229df6:0x13d,_0x129e6b:0x13e,_0x3f2507:0x260,_0x5f2919:0x4bc,_0x2ca5f4:0x30b,_0x35ee51:0x2b7,_0x420253:0x172},_0x4365e7={_0x5ce289:0xcc},_0x19a4c8={_0x175f5b:0x1cd};if(!_0x5491b4[_0x5f2421(0xc9,_0x279c6c._0x229df6,_0x279c6c._0x129e6b,0xc7)])return;if(_0x22303c)try{_0x3ec891('taskkill',[_0x100910(0x283,_0x279c6c._0x3f2507,0x208,0x1c0),_0x5491b4['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5491b4[_0x100910(0x513,0x3e4,0x2df,_0x279c6c._0x5f2919)](_0x465d4a);return;}function _0x5f2421(_0x480a27,_0x3b1b12,_0x353af7,_0xb54e5c){return _0x22ef16(_0x3b1b12,_0xb54e5c- -0x61,_0x353af7-0x19b,_0xb54e5c-_0x19a4c8._0x175f5b);}function _0x100910(_0x3caa60,_0x3735cb,_0x26aa87,_0x5a8c74){return _0x22ef16(_0x5a8c74,_0x3735cb-_0x4365e7._0x5ce289,_0x26aa87-0x1ca,_0x5a8c74-0x127);}try{process[_0x5f2421(0x377,0x1bf,_0x279c6c._0x2ca5f4,_0x279c6c._0x35ee51)](-_0x5491b4[_0x5f2421(_0x279c6c._0x420253,0xae,-0x6,0xc7)],_0x465d4a);}catch{_0x5491b4['kill'](_0x465d4a);}}function appendChunk(_0x1007aa,_0x304b5a,_0x402b8e,_0x559f9d,_0x44a35c){const _0x5a1e03={_0x2f4a10:0x112,_0x5e6695:0x4aa},_0x43b720={_0x2eecae:0xd7},_0x29d3e3=_0x559f9d?stripAnsiAndControls(_0x402b8e):_0x402b8e;if(_0x29d3e3[_0x42c342(-0x1f2,-_0x5a1e03._0x2f4a10,-0x156,-0x263)]===0x0)return;_0x1007aa['push'](_0x29d3e3);function _0x42c342(_0x386359,_0x3f52ae,_0x22fd6c,_0x1332dd){return _0x22ef16(_0x3f52ae,_0x386359- -0x3fc,_0x22fd6c-0x6,_0x1332dd-0xb9);}function _0x1da810(_0x1c0d6e,_0x5c3237,_0xe7fa05,_0x46b2aa){return _0x22ef16(_0x5c3237,_0x46b2aa-0x200,_0xe7fa05-0x174,_0x46b2aa-_0x43b720._0x2eecae);}_0x304b5a[_0x1da810(0x3af,0x3a6,0x3f2,_0x5a1e03._0x5e6695)](_0x29d3e3),_0x44a35c();}function createBashTool(_0xc700dc={}){const _0x19c55d={_0x40f0ea:0x268,_0x560119:0x2ab,_0x207be2:0x209,_0x5b92f4:0x178,_0x5638de:0x1bc,_0x35ed88:0x22d,_0x1ae855:0x39c,_0xe66189:0x30f,_0x327869:0x487,_0x31bccc:0x529,_0xdb312c:0x40c,_0x7863f8:0x4a6,_0x2130f5:0x65a,_0x1133f1:0x152,_0xd96cec:0x340,_0x3a7d19:0x1e7,_0x54cea6:0x2d1,_0x110cb9:0x404,_0x23ca3d:0x3a6,_0x1ddf0f:0x2d8,_0x555ed5:0x3f1,_0x4abef9:0x35f,_0x215d53:0x190,_0x31fe2a:0x64a,_0x2c3aee:0x572,_0x3e2fa7:0x649},_0x55f573={_0x2f3706:0x40d,_0x31a07b:0x113,_0x4758f9:0x175,_0x3f92c2:0x130,_0x597511:0x2ca,_0x38dd2c:0x522,_0x5d50a9:0x1b5,_0x350062:0x1b0,_0x49cea6:0x1a0,_0x6af161:0x11e,_0x55c3f9:0x148,_0x3a15d0:0x14e,_0x573576:0x32,_0x37d9fd:0x484,_0x16312f:0xcf,_0x2ad34c:0xd2,_0x5a9924:0x20,_0x4dfbb8:0x4c8,_0x782b6e:0x42c,_0x58b042:0x39f,_0x5292ee:0xee,_0x5927f1:0x112,_0x2634bd:0x112,_0xf73c68:0x176,_0xc1b449:0x1b7,_0x551bdb:0x3af,_0x498210:0x2d0,_0x17c85a:0x1fc,_0x29f41e:0x306,_0x621df1:0x390,_0x304676:0xd9,_0x42823c:0x7b,_0x34d89f:0x3ff,_0x5c82df:0x471,_0x489844:0x36e,_0x18da42:0x29e,_0x39ba3e:0x2d9,_0x5bcaed:0x48,_0x277245:0x5b7,_0x1407dc:0x169,_0x27b104:0x37d,_0x2621c2:0x48,_0x4e8f99:0x10f,_0x2591c2:0x44,_0x5a9791:0x106,_0x4461cc:0x4af,_0x58b8ac:0x4b5,_0x57658e:0x3d4,_0x18e90d:0x36f,_0x5bf446:0x3c8,_0x106eea:0x51,_0x1c6ab6:0x1b,_0x4fe8c5:0x9e,_0x5052a3:0x265,_0xaea069:0x36c,_0x5ef989:0xbb,_0x5b6ead:0x502,_0x316faa:0xad,_0x532441:0x1c3,_0x17c5ee:0x7b,_0x1c6ceb:0x51,_0x2bea14:0xcc,_0x5213c3:0x11,_0x463411:0x132,_0x16234f:0x35,_0x277145:0x148,_0x3a988b:0x4,_0x4ed92c:0x423,_0x45d5b5:0x37f,_0x2cb12e:0x36e,_0x320c60:0x1bf,_0x5e1942:0x1ec,_0x31d99f:0x522,_0x4482e7:0x5d0,_0x3b8729:0x5dc,_0x759271:0x4c4,_0x3f4231:0x71,_0x15b5ce:0x55b,_0x1bdf5e:0x42f,_0xcbec3a:0x468,_0x15212f:0x1cd,_0x148937:0x119,_0x44cc7b:0x23a,_0x54558a:0x25e,_0x30597d:0x320,_0x4bf46f:0x1e6,_0x228e21:0xdd,_0x21bae2:0x3bd},_0x209537={_0x49db40:0x73,_0x3601cf:0x21,_0x1d6825:0x491,_0x328813:0x513,_0x461d52:0x4e0,_0x94e2e3:0x3f4,_0x22a714:0x37f},_0x1248ff={_0x179845:0xe6,_0x5da7f2:0x199,_0x65a42a:0xb2,_0x5cc7b7:0x1c7},_0x552d2f={_0x5cca9d:0x3b,_0x25a0ac:0xec},_0x436156={_0x3c614e:0x4d,_0x25d211:0x127,_0x3d8c21:0x1ae},_0x23aed4={_0x34af4f:0x528},_0x410fc2={_0x1ef8b0:0x249,_0x546e42:0xc0},_0x10f4e5=_0x4297ba['resolve'](_0xc700dc[_0x175b7e(0x206,_0x19c55d._0x40f0ea,0x3b1,_0x19c55d._0x560119)]??process['cwd']()),_0x274ec6=(_0xc700dc[_0x175b7e(_0x19c55d._0x207be2,_0x19c55d._0x5b92f4,_0x19c55d._0x5638de,0x25a)]??[])[_0x175b7e(_0x19c55d._0x35ed88,_0x19c55d._0x1ae855,_0x19c55d._0x40f0ea,_0x19c55d._0xe66189)](_0x5beb5f=>_0x4297ba[_0x175b7e(0xef,0x192,0x310,0x21c)](_0x5beb5f)),_0x1411dd=_0xc700dc[_0xfa8ad1(_0x19c55d._0x327869,0x41f,_0x19c55d._0x31bccc,_0x19c55d._0xdb312c)]??DEFAULT_TIMEOUT_MS;function _0x175b7e(_0x15f646,_0x3eff32,_0x535d12,_0x4d5d01){return _0x324926(_0x4d5d01-_0x410fc2._0x1ef8b0,_0x535d12,_0x535d12-_0x410fc2._0x546e42,_0x4d5d01-0x46);}const _0x2f982f=_0xc700dc[_0xfa8ad1(_0x19c55d._0x7863f8,0x593,_0x19c55d._0x2130f5,0x631)]??!![],_0x5549d7=_0xc700dc['name']??'Bash';function _0xfa8ad1(_0x483b6f,_0x48881,_0x3682ba,_0x47bea7){return _0x324926(_0x48881-_0x23aed4._0x34af4f,_0x47bea7,_0x3682ba-0xeb,_0x47bea7-0x189);}return defineTool({'name':_0x5549d7,'description':_0xc700dc[_0x175b7e(0x95,0xcd,0x1e5,_0x19c55d._0x1133f1)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x175b7e(_0x19c55d._0xd96cec,_0x19c55d._0x3a7d19,0x31d,_0x19c55d._0x54cea6),'properties':{'command':{'type':_0x175b7e(_0x19c55d._0x110cb9,0x371,_0x19c55d._0x23ca3d,_0x19c55d._0x1ddf0f)},'cwd':{'type':_0x175b7e(_0x19c55d._0x555ed5,0x1aa,_0x19c55d._0x4abef9,0x2d8)},'timeoutMs':{'type':_0x175b7e(0x2a8,_0x19c55d._0x215d53,0x121,0x24a)},'ignoreOutput':{'type':_0xfa8ad1(0x468,0x55b,0x573,_0x19c55d._0x31fe2a)}},'required':[_0xfa8ad1(_0x19c55d._0x2c3aee,_0x19c55d._0x3e2fa7,0x57c,0x653)]},async *'execute'(_0x1ccc25,_0x5c1824){const _0x3c5f9d={_0x284400:0xea,_0x2ef986:0x19,_0x728f5b:0x12e,_0x48d8b9:0x227,_0x4ab691:0x4a4,_0x271ac5:0x3e5},_0x589a92={_0x1a130b:0x46,_0x3c3cf6:0x76},_0x2a7437={_0x14c578:0x2bf,_0x3f4f36:0x60,_0xaddd2c:0x21d,_0x31fe3b:0x190},_0x3da28f={_0x2a5d28:0x5a},_0x2d6883={_0x3de823:0x4ce},_0x30f2d7=_0x1ccc25[_0x4417ce(0x310,_0x55f573._0x2f3706,0x496,0x40f)]??_0x1411dd;if(!Number[_0x24084a(-_0x55f573._0x31a07b,-_0x55f573._0x4758f9,-0x79,-_0x55f573._0x3f92c2)](_0x30f2d7)||_0x30f2d7<0x1)throw new ToolExecutionError(_0x4417ce(_0x55f573._0x597511,0x308,0x26c,0x2cf),{'command':_0x1ccc25[_0x4417ce(0x5eb,0x5b7,0x432,_0x55f573._0x38dd2c)]});throwIfAborted(_0x5c1824['signal']);const _0x101caa=resolveWorkingDirectory(_0x1ccc25[_0x24084a(-_0x55f573._0x5d50a9,-0xae,-0x260,-_0x55f573._0x350062)],_0x10f4e5,_0x274ec6),_0x288ff7=_0x1ccc25[_0x24084a(-_0x55f573._0x49cea6,-_0x55f573._0x6af161,-0x133,-_0x55f573._0x55c3f9)]??![];function _0x4417ce(_0x339231,_0x525347,_0x403f1f,_0x5022ba){return _0xfa8ad1(_0x339231-_0x436156._0x3c614e,_0x5022ba- -_0x436156._0x25d211,_0x403f1f-_0x436156._0x3d8c21,_0x525347);}const _0x4c0fa5=resolveDefaultShell(_0xc700dc[_0x24084a(0x60,_0x55f573._0x3a15d0,-0xb4,-_0x55f573._0x573576)]),_0x49e02d=buildShellArgs(_0x1ccc25[_0x4417ce(0x45b,0x5ac,_0x55f573._0x37d9fd,_0x55f573._0x38dd2c)],_0x4c0fa5),_0x3e2c59=_0x16f5a4[_0x24084a(-0x7c,-_0x55f573._0x16312f,-_0x55f573._0x2ad34c,_0x55f573._0x5a9924)]()==='win32';let _0x2ceb50;try{_0x2ceb50=_0x3ec891(_0x4c0fa5,_0x49e02d,{'cwd':_0x101caa,'env':{...process[_0x4417ce(_0x55f573._0x4dfbb8,0x3e3,_0x55f573._0x782b6e,0x415)],..._0xc700dc['env']??{}},'stdio':_0x288ff7?[_0x4417ce(0x3f7,0x2e0,0x44e,_0x55f573._0x58b042),_0x24084a(-0x112,-_0x55f573._0x5292ee,-0x220,-_0x55f573._0x5927f1),_0x24084a(-_0x55f573._0x2634bd,-_0x55f573._0xf73c68,-0x17b,-_0x55f573._0xc1b449)]:[_0x4417ce(_0x55f573._0x551bdb,_0x55f573._0x782b6e,_0x55f573._0x498210,0x39f),_0x24084a(-0xf5,-_0x55f573._0x17c85a,-0x192,-0x1b7),_0x4417ce(_0x55f573._0x29f41e,_0x55f573._0x621df1,0x42d,0x3bc)],'shell':![],'windowsHide':!![],'detached':!_0x3e2c59});}catch(_0x247038){if(isErrnoException(_0x247038)&&_0x247038[_0x24084a(0x51,_0x55f573._0x304676,_0x55f573._0x42823c,0x80)]===_0x4417ce(0x45f,_0x55f573._0x34d89f,_0x55f573._0x5c82df,_0x55f573._0x489844))throw new ToolExecutionError(_0x24084a(-0x1bf,-0xdd,-_0x55f573._0x18da42,-_0x55f573._0x39ba3e)+_0x4c0fa5,{'command':_0x1ccc25['command'],'cwd':_0x101caa,'shellPath':_0x4c0fa5});throw new ToolExecutionError(_0x247038 instanceof Error?_0x247038[_0x24084a(0x13,0xb2,-0xd7,-_0x55f573._0x5bcaed)]:String(_0x247038),{'command':_0x1ccc25['command'],'cwd':_0x101caa,'shellPath':_0x4c0fa5});}const _0x48fe3c=[],_0xdc34b8=[],_0x4da36c=new StringDecoder('utf8'),_0x3760db=new StringDecoder('utf8');let _0xc52800,_0x46e49f=![],_0xd85dd;const _0x2d3cb9=()=>{if(!_0xc52800)return;const _0x5e3cdb=_0xc52800;_0xc52800=void 0x0,_0x5e3cdb();},_0x5741e0=async()=>{if(_0xdc34b8[_0x2a45f7(0x25c,0x34b,0x150,0x169)]>0x0||_0x46e49f)return;function _0x2a45f7(_0x11f96f,_0xf263ac,_0x375f2f,_0x46ef99){return _0x4417ce(_0x11f96f-0x1ed,_0xf263ac,_0x375f2f-0x51,_0x11f96f- -0x1b1);}await new Promise(_0x16540b=>{_0xc52800=_0x16540b;});},_0x41ea29=_0xf0e22d=>{appendChunk(_0x48fe3c,_0xdc34b8,_0x4da36c['write'](_0xf0e22d),_0x2f982f,_0x2d3cb9);},_0x285a35=_0x1cc336=>{const _0x460be1={_0x2880b8:0x82};function _0x4adc5(_0x2b90b2,_0x46f9ce,_0x44347d,_0x297c59){return _0x4417ce(_0x2b90b2-0x93,_0x44347d,_0x44347d-0x17e,_0x297c59- -_0x460be1._0x2880b8);}appendChunk(_0x48fe3c,_0xdc34b8,_0x3760db[_0x4adc5(0x45f,_0x2d6883._0x3de823,0x41d,0x3f9)](_0x1cc336),_0x2f982f,_0x2d3cb9);};_0x2ceb50[_0x4417ce(0x488,0x52d,_0x55f573._0x277245,0x4d8)]?.['on'](_0x24084a(-0x191,-0x14a,-_0x55f573._0x1407dc,-0xf5),_0x41ea29),_0x2ceb50[_0x24084a(-0x49,-0x69,0x6e,-0x7d)]?.['on'](_0x4417ce(0x33f,0x429,_0x55f573._0x27b104,0x320),_0x285a35);let _0x547515=![];function _0x24084a(_0x1179eb,_0x21045c,_0x5a440b,_0x124101){return _0xfa8ad1(_0x1179eb-_0x552d2f._0x5cca9d,_0x1179eb- -0x5d8,_0x5a440b-_0x552d2f._0x25a0ac,_0x21045c);}let _0x3ad6bc;const _0x3a8449=addAbortListener(_0x5c1824[_0x24084a(-0xad,-0x14f,-_0x55f573._0x2621c2,-0x17d)],()=>{const _0x3d055d={_0x7834fb:0x26b};_0xd85dd=toAbortError(_0x5c1824[_0x581d96(_0x1248ff._0x179845,0x1e3,_0x1248ff._0x5da7f2,_0x1248ff._0x65a42a)][_0x201d08(-0x37d,-0x2e4,-0x378,-_0x1248ff._0x5cc7b7)]),_0x46e49f=!![];function _0x201d08(_0x57280a,_0x81d67a,_0x3352b0,_0x52c87f){return _0x4417ce(_0x57280a-_0x3da28f._0x2a5d28,_0x57280a,_0x3352b0-0x4e,_0x81d67a- -0x603);}_0x2d3cb9();function _0x581d96(_0xb505d0,_0x4f3a38,_0x353e18,_0x31d191){return _0x4417ce(_0xb505d0-0xbf,_0x4f3a38,_0x353e18-0x19d,_0x353e18- -_0x3d055d._0x7834fb);}try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}});try{const _0x59ec66=new Promise((_0x5ebd1f,_0x49d0cf)=>{const _0x3a8edb={_0x3d29a6:0x104,_0x121019:0x7e,_0x2fc46a:0x2d6},_0x4098cd={_0x5b4067:0x1d2,_0x891a1:0x69,_0xb63f5c:0x147,_0x301789:0x7e},_0x580319=()=>{_0x3ad6bc&&(clearTimeout(_0x3ad6bc),_0x3ad6bc=void 0x0);function _0x56cf37(_0x26f1ec,_0x4e01e9,_0x31df8f,_0x3a9f19){return _0x7ca6(_0x4e01e9-0x9e,_0x3a9f19);}_0x2ceb50[_0x56cf37(_0x2a7437._0x14c578,0x25d,0x173,0x348)](_0x130279(0x93,_0x2a7437._0x3f4f36,-0xd,-0x9e),_0x3e4ce6);function _0x130279(_0x4b215e,_0x432af9,_0x4e5b42,_0x5f1996){return _0x7ca6(_0x4e5b42- -0x2f5,_0x4b215e);}_0x2ceb50['off'](_0x56cf37(0x15b,0x274,_0x2a7437._0xaddd2c,_0x2a7437._0x31fe3b),_0x3755d0);},_0x3e4ce6=_0x47f38c=>{_0x46e49f=!![],_0x2d3cb9(),_0x580319(),_0x49d0cf(_0xd85dd??_0x47f38c);};function _0x58ea68(_0x367c3b,_0x343f23,_0x263167,_0x45a442){return _0x4417ce(_0x367c3b-0xef,_0x45a442,_0x263167-_0x589a92._0x1a130b,_0x367c3b- -_0x589a92._0x3c3cf6);}const _0x3755d0=(_0x217781,_0x8b0413)=>{const _0x5c3cf9={_0x561920:0x99},_0x4d61b8={_0xeb8003:0xbb};_0x547515=!![],appendChunk(_0x48fe3c,_0xdc34b8,_0x4da36c[_0x5b0518(0x2bc,0x169,_0x4098cd._0x5b4067,0x129)](),_0x2f982f,_0x2d3cb9);function _0x5b0518(_0xcadf25,_0x19e651,_0x483470,_0x245410){return _0x7ca6(_0x483470-_0x4d61b8._0xeb8003,_0xcadf25);}appendChunk(_0x48fe3c,_0xdc34b8,_0x3760db[_0x40361a(-_0x4098cd._0x891a1,_0x4098cd._0xb63f5c,-0x75,_0x4098cd._0x301789)](),_0x2f982f,_0x2d3cb9),_0x46e49f=!![],_0x2d3cb9();function _0x40361a(_0x25c349,_0x1c277f,_0x1b7664,_0x4220d0){return _0x7ca6(_0x4220d0- -_0x5c3cf9._0x561920,_0x1b7664);}_0x580319();if(_0xd85dd){_0x49d0cf(_0xd85dd);return;}_0x5ebd1f({'code':_0x217781,'signal':_0x8b0413});};_0x3ad6bc=setTimeout(()=>{function _0x33e621(_0x4ba1ee,_0x2c0416,_0x2878ff,_0x34b029){return _0x7ca6(_0x2c0416- -0x325,_0x4ba1ee);}_0x46e49f=!![];function _0x356a7b(_0x1b1a1c,_0x2b2c8e,_0x52fe73,_0x5179ec){return _0x7ca6(_0x1b1a1c-0x1a1,_0x5179ec);}_0x2d3cb9(),_0x580319();try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}_0x49d0cf(new ToolExecutionError(_0x33e621(-_0x3c5f9d._0x284400,-0x86,-_0x3c5f9d._0x2ef986,-0x94)+_0x30f2d7+_0x33e621(-0x1d,-_0x3c5f9d._0x728f5b,-_0x3c5f9d._0x48d8b9,-0x120),{'command':_0x1ccc25[_0x356a7b(_0x3c5f9d._0x4ab691,0x3f9,0x41a,_0x3c5f9d._0x271ac5)],'cwd':_0x101caa,'shellPath':_0x4c0fa5,'timeoutMs':_0x30f2d7,'timedOut':!![]}));},_0x30f2d7),_0x2ceb50[_0x34bbfd(0x45,0x142,_0x209537._0x49db40,_0x209537._0x3601cf)](_0x58ea68(_0x209537._0x1d6825,_0x209537._0x328813,_0x209537._0x461d52,_0x209537._0x94e2e3),_0x3e4ce6);function _0x34bbfd(_0x283664,_0x2d5f1f,_0x1e6f40,_0x6717cf){return _0x4417ce(_0x283664-_0x3a8edb._0x3d29a6,_0x2d5f1f,_0x1e6f40-_0x3a8edb._0x121019,_0x1e6f40- -_0x3a8edb._0x2fc46a);}_0x2ceb50['once'](_0x58ea68(_0x209537._0x22a714,0x26a,0x423,0x294),_0x3755d0);});while(_0xdc34b8[_0x24084a(-0xa4,-_0x55f573._0x4e8f99,-_0x55f573._0x2591c2,-_0x55f573._0x5a9791)]>0x0||!_0x46e49f){if(_0xdc34b8[_0x4417ce(0x4d1,_0x55f573._0x4461cc,0x507,0x40d)]===0x0){await _0x5741e0();continue;}const _0x44f0aa=_0xdc34b8[_0x4417ce(0x575,0x401,0x3d0,_0x55f573._0x58b8ac)]();_0x44f0aa!==void 0x0&&(yield _0x44f0aa);}const _0x51d932=await _0x59ec66,_0x6e73a1=_0x288ff7?_0x4417ce(_0x55f573._0x57658e,_0x55f573._0x18e90d,0x40a,_0x55f573._0x5bf446)+(_0x51d932[_0x24084a(_0x55f573._0x106eea,0x91,-_0x55f573._0x1c6ab6,-_0x55f573._0x4fe8c5)]??0x0):_0x48fe3c[_0x4417ce(_0x55f573._0x5052a3,_0x55f573._0xaea069,0x389,0x34f)](''),_0xa58e={'command':_0x1ccc25[_0x24084a(0x71,0xa0,-0x6,-_0x55f573._0x5ef989)],'cwd':_0x101caa,'exitCode':_0x51d932[_0x4417ce(0x3da,0x3fc,0x3fe,_0x55f573._0x5b6ead)]??0x0,'signal':_0x51d932[_0x24084a(-_0x55f573._0x316faa,-_0x55f573._0x532441,-0x1a2,-_0x55f573._0x17c5ee)],'ignoreOutput':_0x288ff7,'shellPath':_0x4c0fa5,'timeoutMs':_0x30f2d7};if(_0x51d932[_0x24084a(_0x55f573._0x1c6ceb,0x30,0x73,-0xcb)]!==0x0)throw new ToolExecutionError(_0x6e73a1||_0x24084a(-_0x55f573._0x2bea14,-0x8b,-_0x55f573._0x5213c3,-_0x55f573._0x463411)+(_0x51d932[_0x24084a(_0x55f573._0x1c6ceb,-_0x55f573._0x16234f,0x11,_0x55f573._0x277145)]??0x0),_0xa58e);return createToolOutput(_0x6e73a1,_0xa58e);}catch(_0x35205d){while(_0xdc34b8['length']>0x0){const _0x68d7bd=_0xdc34b8[_0x24084a(_0x55f573._0x3a988b,-0xc4,0x0,0xe1)]();_0x68d7bd!==void 0x0&&(yield _0x68d7bd);}if(_0x35205d instanceof ToolExecutionError)throw _0x35205d;if(_0xd85dd)throw _0xd85dd;if(isErrnoException(_0x35205d)&&_0x35205d[_0x24084a(0x51,-0x3d,0x118,0x96)]===_0x4417ce(_0x55f573._0x4ed92c,0x37f,_0x55f573._0x45d5b5,_0x55f573._0x2cb12e))throw new ToolExecutionError(_0x24084a(-_0x55f573._0x320c60,-_0x55f573._0x5e1942,-0x173,-0x20d)+_0x4c0fa5,{'command':_0x1ccc25[_0x4417ce(0x4bb,0x47f,_0x55f573._0x31d99f,0x522)],'cwd':_0x101caa,'shellPath':_0x4c0fa5});throw new ToolExecutionError(_0x35205d instanceof Error?_0x35205d[_0x4417ce(0x524,_0x55f573._0x4482e7,_0x55f573._0x3b8729,_0x55f573._0x759271)]:String(_0x35205d),{'command':_0x1ccc25[_0x24084a(_0x55f573._0x3f4231,0xcd,-0x18,-0xa)],'cwd':_0x101caa,'shellPath':_0x4c0fa5});}finally{_0x3ad6bc&&clearTimeout(_0x3ad6bc);_0x3a8449(),_0x2ceb50[_0x4417ce(_0x55f573._0x15b5ce,0x50d,0x542,0x4d8)]?.['off']('data',_0x41ea29),_0x2ceb50[_0x4417ce(_0x55f573._0x1bdf5e,0x3a6,0x40c,_0x55f573._0xcbec3a)]?.[_0x24084a(-0xd3,-0x10a,-_0x55f573._0x15212f,-_0x55f573._0x148937)](_0x4417ce(_0x55f573._0x44cc7b,_0x55f573._0x54558a,0x292,_0x55f573._0x30597d),_0x285a35);if(!_0x547515&&_0x2ceb50[_0x24084a(-0x186,-_0x55f573._0x4bf46f,-_0x55f573._0x228e21,-0x1f1)]&&!_0x2ceb50[_0x4417ce(0x4e6,0x293,0x3f9,_0x55f573._0x21bae2)])try{killProcessGroup(_0x2ceb50,_0x3e2c59);}catch{}}}});}function createShellExecTool(_0xea545c={}){return createBashTool(_0xea545c);}import{readdir,readFile as _0x25b50a}from'fs/promises';import{extname,join as _0x40af54}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x2c2125,join,relative as _0x2fdb30,resolve as _0x47b9ca}from'path';import{readdir as _0xca6ea1,readFile as _0x287108}from'fs/promises';import{join as _0x4546b9,relative as _0x229eb6,sep}from'path';import{delimiter}from'path';import{mkdir as _0x2e1abd,rm,stat as _0x2d8634,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0xa0cb3c}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4ea2af,rename,writeFile as _0x24d29a}from'fs/promises';import{homedir}from'os';import{dirname as _0x4beec0,isAbsolute as _0x520115,join as _0x4819a6,resolve as _0x5e4928}from'path';import{parse as _0x4a6239,stringify as _0x36e022}from'yaml';import{z}from'zod';import{cp,mkdir as _0x4b2c44,readFile as _0xf19864,rm as _0x21f3ee,writeFile as _0x1bbfed}from'fs/promises';import{homedir as _0x808d41}from'os';import{join as _0x364f7d}from'path';import{parse as _0x1ed70f,stringify as _0x1b1275}from'yaml';import{readdir as _0x3d7b74,readFile as _0x4f360e}from'fs/promises';import{join as _0x140150}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function _0x7ca6(_0xa63856,_0x1b1200){_0xa63856=_0xa63856-0xa4;const _0x275954=_0x2759();let _0x7ca6f9=_0x275954[_0xa63856];if(_0x7ca6['UitXLW']===undefined){var _0x18b287=function(_0x4b83e5){const _0x22a3e4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49be13='',_0x90b96e='';for(let _0x21fab9=0x0,_0x2cc01b,_0x4f41e5,_0x5eec36=0x0;_0x4f41e5=_0x4b83e5['charAt'](_0x5eec36++);~_0x4f41e5&&(_0x2cc01b=_0x21fab9%0x4?_0x2cc01b*0x40+_0x4f41e5:_0x4f41e5,_0x21fab9++%0x4)?_0x49be13+=String['fromCharCode'](0xff&_0x2cc01b>>(-0x2*_0x21fab9&0x6)):0x0){_0x4f41e5=_0x22a3e4['indexOf'](_0x4f41e5);}for(let _0x57933c=0x0,_0x3ec891=_0x49be13['length'];_0x57933c<_0x3ec891;_0x57933c++){_0x90b96e+='%'+('00'+_0x49be13['charCodeAt'](_0x57933c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x90b96e);};_0x7ca6['pIboES']=_0x18b287,_0x7ca6['cNGFEP']={},_0x7ca6['UitXLW']=!![];}const _0x557557=_0x275954[0x0],_0xbda403=_0xa63856+_0x557557,_0x37d7db=_0x7ca6['cNGFEP'][_0xbda403];return!_0x37d7db?(_0x7ca6f9=_0x7ca6['pIboES'](_0x7ca6f9),_0x7ca6['cNGFEP'][_0xbda403]=_0x7ca6f9):_0x7ca6f9=_0x37d7db,_0x7ca6f9;}function tokenizeCommandArguments(_0x4bef11){const _0x4b3098={_0xbf7497:0x20,_0x2a0873:0x466,_0x16e265:0x4ca,_0x5d41e4:0xed,_0x90595a:0x115,_0xb9505f:0xe,_0x20c4c3:0x470,_0x304ad8:0x5b8},_0x1a1fc7={_0x5616e1:0x45a,_0x1e286d:0xe9},_0x3ef6b2={_0x288a42:0x1ea,_0x23f50f:0x5a};function _0x2086e9(_0x19fa75,_0x2e0acd,_0x23b117,_0x3f649b){return _0x22ef16(_0x23b117,_0x19fa75- -_0x3ef6b2._0x288a42,_0x23b117-_0x3ef6b2._0x23f50f,_0x3f649b-0xef);}function _0x27c5fd(_0x1bf140,_0x42df17,_0x25b032,_0x5a195d){return _0x324926(_0x25b032-_0x1a1fc7._0x5616e1,_0x42df17,_0x25b032-0x81,_0x5a195d-_0x1a1fc7._0x1e286d);}const _0x4257b2=[];let _0x2205b3='',_0x3bc553=0x0;while(_0x3bc553<_0x4bef11[_0x2086e9(_0x4b3098._0xbf7497,0x130,-0xd3,0xbb)]){const _0x2bd5a6=_0x4bef11[_0x3bc553];if(_0x2bd5a6==='\x5c'&&_0x3bc553+0x1<_0x4bef11[_0x27c5fd(0x3a4,0x357,0x466,0x3bf)])_0x2205b3+=_0x4bef11[_0x3bc553+0x1],_0x3bc553+=0x2;else{if(_0x2bd5a6==='\x22'||_0x2bd5a6==='\x27'){const _0x555620=_0x2bd5a6;_0x3bc553++;while(_0x3bc553<_0x4bef11[_0x27c5fd(0x4b5,0x543,_0x4b3098._0x2a0873,0x38f)]&&_0x4bef11[_0x3bc553]!==_0x555620){_0x4bef11[_0x3bc553]==='\x5c'&&_0x3bc553+0x1<_0x4bef11[_0x27c5fd(0x3e2,_0x4b3098._0x16e265,0x466,0x3b5)]?(_0x2205b3+=_0x4bef11[_0x3bc553+0x1],_0x3bc553+=0x2):(_0x2205b3+=_0x4bef11[_0x3bc553],_0x3bc553++);}_0x3bc553++;}else _0x2bd5a6!==void 0x0&&/\s/[_0x2086e9(-_0x4b3098._0x5d41e4,-0x1ce,-0x1c2,-_0x4b3098._0x90595a)](_0x2bd5a6)?(_0x2205b3&&(_0x4257b2[_0x2086e9(0xc0,-_0x4b3098._0xb9505f,0x18b,-0x53)](_0x2205b3),_0x2205b3=''),_0x3bc553++):(_0x2205b3+=_0x2bd5a6,_0x3bc553++);}}if(_0x2205b3)_0x4257b2[_0x27c5fd(0x4e1,_0x4b3098._0x20c4c3,0x506,_0x4b3098._0x304ad8)](_0x2205b3);return _0x4257b2;}function renderCommandInstructions(_0x46bf9f){const _0x25db0e={_0x48a3ac:0x255,_0x54e354:0x1b2,_0x3e613d:0x2cf,_0x49bbeb:0x3e0,_0x4bb051:0x36c,_0xf83436:0x328,_0xe88f45:0x4fd,_0x4bbc0e:0x4fe,_0xf62d0b:0x48b,_0x4ea2be:0x5e8,_0x12c5ca:0x1c2,_0x386e1a:0x25b,_0x500ecb:0x18f,_0x775e52:0x4d0,_0xf58123:0x23d,_0x3f81d1:0x319,_0x41c07b:0x20c,_0x298780:0x36a,_0x12331d:0x312,_0x26925d:0x3af,_0x381ab7:0x253},_0xa1d836={_0x596200:0x374},_0x5c960f={_0x2e063a:0x205,_0x4e6569:0x179},_0x356148={_0x58a697:0x244,_0x252c6d:0x20f,_0x654bcb:0x1d2};let _0x23bf0e=_0x46bf9f[_0x52c924(-_0x25db0e._0x48a3ac,-_0x25db0e._0x54e354,-_0x25db0e._0x3e613d,-_0x25db0e._0x49bbeb)],_0x4411c7=![];const _0x13661c=tokenizeCommandArguments(_0x46bf9f[_0x52c924(-0x37c,-_0x25db0e._0x4bb051,-_0x25db0e._0xf83436,-0x44d)]);_0x23bf0e=_0x23bf0e['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x1bdfd0,_0x5244f7)=>{return _0x4411c7=!![],_0x13661c[Number(_0x5244f7)]??'';}),_0x23bf0e=_0x23bf0e[_0x2799fc(_0x25db0e._0xe88f45,_0x25db0e._0x4bbc0e,_0x25db0e._0xf62d0b,0x46f)](/\$ARGUMENTS\b/g,()=>{const _0x7a9039={_0x1b23e3:0x1ba,_0x14ba54:0x156};function _0x1e8280(_0x209331,_0x230472,_0x43239d,_0x394c54){return _0x52c924(_0x209331-_0x7a9039._0x1b23e3,_0x230472-0x53,_0x394c54-_0x7a9039._0x14ba54,_0x230472);}return _0x4411c7=!![],_0x46bf9f[_0x1e8280(-_0x356148._0x58a697,-0x218,-_0x356148._0x252c6d,-_0x356148._0x654bcb)];});function _0x52c924(_0x2f12f7,_0x2dff60,_0xe75d50,_0x45d6c2){return _0x324926(_0xe75d50- -_0x5c960f._0x2e063a,_0x45d6c2,_0xe75d50-_0x5c960f._0x4e6569,_0x45d6c2-0x17);}if(_0x46bf9f[_0x2799fc(_0x25db0e._0x4ea2be,0x6b1,0x598,0x5fc)]&&_0x46bf9f[_0x52c924(-0x250,-0xda,-0x18f,-_0x25db0e._0x12c5ca)]['length']>0x0)for(let _0x1df128=0x0;_0x1df128<_0x46bf9f[_0x52c924(-_0x25db0e._0x386e1a,-0x1a5,-_0x25db0e._0x500ecb,-0x66)]['length'];_0x1df128++){const _0x479e3b=_0x46bf9f['argumentNames'][_0x1df128];if(_0x479e3b){const _0x497377=new RegExp('\x5c$'+_0x479e3b+'\x5cb','g');_0x23bf0e=_0x23bf0e['replace'](_0x497377,()=>{return _0x4411c7=!![],_0x13661c[_0x1df128]??'';});}}function _0x2799fc(_0x55923a,_0x460da6,_0x1a827e,_0x297e81){return _0x22ef16(_0x297e81,_0x55923a-_0xa1d836._0x596200,_0x1a827e-0xe9,_0x297e81-0x118);}return _0x23bf0e=_0x23bf0e[_0x2799fc(0x4fd,0x41b,0x57e,_0x25db0e._0x775e52)](/\$(\d+)\b/g,(_0x34ec26,_0x29362d)=>{return _0x4411c7=!![],_0x13661c[Number(_0x29362d)]??'';}),!_0x4411c7&&_0x46bf9f[_0x52c924(-0x229,-_0x25db0e._0xf58123,-0x328,-0x3f5)][_0x52c924(-_0x25db0e._0x3f81d1,-0x175,-_0x25db0e._0x41c07b,-0x17c)]()&&(_0x23bf0e=_0x23bf0e+_0x52c924(-_0x25db0e._0x298780,-0x41d,-0x30f,-0x257)+_0x46bf9f[_0x52c924(-_0x25db0e._0x12331d,-_0x25db0e._0x26925d,-_0x25db0e._0xf83436,-_0x25db0e._0x381ab7)]),_0x23bf0e;}var chatModelAuthSchemeSchema=z[_0x22ef16(0x258,0x179,0x18c,0x224)]([_0x22ef16(0x200,0x147,0x264,0x191),'x-api-key']),apiKeyAuthSchema=z[_0x324926(0x88,0xc0,0xfd,0xce)]({'type':z['literal'](_0x22ef16(0xfa,0x1ab,0x216,0x9f)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x22ef16(0x26a,0x1f5,0x307,0x304)]()})[_0x324926(0x0,-0x50,0x113,0x39)](),oauthAuthSchema=z[_0x324926(0x88,-0x3b,-0x34,0x4b)]({'type':z[_0x324926(-0x48,-0x12a,-0x15b,0x74)](_0x22ef16(0x251,0x29c,0x35c,0x256)),'access':z[_0x324926(0x8f,-0x6,0x14f,0x8e)](),'refresh':z[_0x22ef16(0x341,0x28d,0x172,0x247)](),'expires':z['number']()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x22ef16(0x101,0x1f5,0x252,0x2cd)]()})[_0x22ef16(0x309,0x1fe,0x1e1,0x174)](),authMethodSchema=z[_0x324926(0x60,0x101,0x12a,-0x5e)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x324926(0x88,0x11,-0x6e,0x89)]({'id':z[_0x324926(0x8f,0x178,0xbd,0x190)](),'name':z[_0x22ef16(0x3a6,0x28d,0x314,0x2e9)]()[_0x22ef16(0x321,0x1f5,0x203,0x16f)]()})[_0x22ef16(0x2cd,0x1fe,0x2f3,0x1cf)](),modelConfigSchema=z['union']([z[_0x22ef16(0x287,0x1b6,0x18b,0x22b)](![]),z[_0x22ef16(0x1c1,0x1b6,0x116,0xbb)](!![]),z['string'](),z[_0x324926(0x118,0x195,-0x10,0x1e9)](z['string']()),z[_0x324926(0x118,0xa3,0x111,0x151)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x22ef16(0xe3,0x179,0xd2,0x177)]([_0x324926(-0x99,-0x197,-0x186,-0x15b),'openai-chat-completions','openai-responses','openai-responses-ws']),providerConfigSchema=z['object']({'apiKey':z[_0x324926(0x8f,-0x4,-0x9d,0xd9)]()[_0x22ef16(0x1ab,0x1f5,0xd5,0x1be)](),'token':z[_0x324926(0x8f,-0x6,0x14c,0x1a3)]()[_0x22ef16(0x180,0x1f5,0x290,0x321)](),'defaultModel':z[_0x22ef16(0x1cb,0x28d,0x2a9,0x17f)]()[_0x22ef16(0x2db,0x1f5,0x266,0x256)](),'smallModel':z['string']()[_0x22ef16(0x22b,0x1f5,0x2af,0x201)](),'currentAuth':z[_0x22ef16(0x1a2,0x28d,0x267,0x1ab)]()['optional'](),'auth':z[_0x324926(0x118,0x15a,0x20f,0xc7)](authMethodSchema)[_0x22ef16(0xe2,0x1f5,0x209,0x155)](),'surface':chatModelSurfaceSchema[_0x22ef16(0x261,0x1f5,0x1be,0x20b)](),'baseUrl':z[_0x324926(0x8f,-0x41,0xf7,0x6a)]()[_0x22ef16(0x145,0x1f5,0x2f0,0x1c3)](),'models':modelConfigSchema[_0x22ef16(0x124,0x1f5,0x309,0xd1)](),'customHeaders':z[_0x22ef16(0x28b,0x302,0x419,0x1f5)](z['string'](),z[_0x324926(0x8f,0x199,0x194,0xba)]())[_0x324926(-0x9,0xc5,-0x57,0xaa)]()})[_0x22ef16(0x2f7,0x1fe,0x103,0x109)]();function _0x22ef16(_0x2fc1d7,_0x5e4ae2,_0xfab7a3,_0x3160eb){const _0x4acd76={_0x3ee272:0x1c};return _0x7ca6(_0x5e4ae2-_0x4acd76._0x3ee272,_0x2fc1d7);}function _0x324926(_0x143956,_0x2122a6,_0x2d606d,_0x26d6b9){const _0x153b01={_0x33ea06:0x1e2};return _0x7ca6(_0x143956- -_0x153b01._0x33ea06,_0x2122a6);}var mcpServerConfigSchema=z[_0x22ef16(0x25b,0x286,0x1bc,0x243)]({'command':z['string']()[_0x324926(-0x9,0x35,-0xc4,-0xc5)](),'args':z['array'](z[_0x22ef16(0x280,0x28d,0x2f7,0x362)]())['optional'](),'env':z[_0x22ef16(0x210,0x302,0x1d8,0x40d)](z[_0x324926(0x8f,0xa5,-0x94,0x63)](),z[_0x324926(0x8f,-0x2f,-0x57,0x1c)]())[_0x22ef16(0x1dc,0x1f5,0xfa,0x2c2)](),'transport':z[_0x22ef16(0x266,0x179,0x103,0x244)]([_0x324926(0xdc,0x176,0x28,-0x54),_0x324926(0x9d,0x65,0x151,0x4)])[_0x22ef16(0x248,0x1f5,0x29e,0x2a0)](),'url':z[_0x324926(0x8f,0x16f,0xa8,0x6a)]()[_0x22ef16(0x150,0x1f5,0x1b4,0x10d)](),'headers':z[_0x22ef16(0x422,0x302,0x379,0x3e2)](z[_0x22ef16(0x363,0x28d,0x274,0x30d)](),z[_0x22ef16(0x221,0x28d,0x2db,0x20c)]())['optional'](),'prefix':z[_0x324926(0x8f,0xde,0x114,-0x5)]()[_0x324926(-0x9,0xf6,0x2c,0x39)](),'timeoutMs':z[_0x324926(0x1,-0x88,0x75,-0x112)]()[_0x22ef16(0x298,0x1f5,0x241,0xed)](),'enabled':z[_0x22ef16(0x35e,0x231,0x29e,0x229)]()[_0x324926(-0x9,-0x82,0x37,0x61)](),'auth':z[_0x324926(0x88,0xe0,0xd7,0x189)]({'type':z[_0x324926(-0x85,0x1e,-0x7b,-0x16)](['none',_0x22ef16(0x39,0x147,0x23c,0x47),_0x22ef16(0x3a3,0x29c,0x198,0x173)]),'token':z[_0x324926(0x8f,0x84,0xc4,0x14e)]()[_0x22ef16(0x287,0x1f5,0x1ba,0x1c8)](),'oauth':z[_0x324926(0x88,0x8c,0x25,0x85)]({'clientId':z[_0x22ef16(0x1fc,0x28d,0x214,0x25d)]()[_0x324926(-0x9,0xbb,-0x10e,0x65)](),'clientMetadataUrl':z['string']()[_0x324926(-0x9,-0xb9,0x116,-0x6)](),'authorizationServer':z[_0x22ef16(0x1c1,0x28d,0x3a0,0x1d6)]()[_0x22ef16(0x167,0x1f5,0x1b8,0x1d6)](),'scopes':z[_0x22ef16(0x353,0x316,0x373,0x26d)](z[_0x22ef16(0x1ca,0x28d,0x395,0x34a)]())[_0x324926(-0x9,0x46,0x5a,0xc2)](),'tokenStorageKey':z[_0x22ef16(0x19e,0x28d,0x260,0x27e)]()[_0x324926(-0x9,0x7a,0xbf,0x2d)]()})[_0x324926(0x0,0x24,0x19,0x106)]()[_0x22ef16(0x1b2,0x1f5,0x20c,0x151)]()})[_0x22ef16(0x146,0x1fe,0x1f6,0x13a)]()[_0x22ef16(0x1bd,0x1f5,0x116,0x2d0)]()})[_0x324926(0x0,-0x12e,-0xdf,0x11c)](),mcpSettingsSchema=z[_0x22ef16(0x194,0x286,0x204,0x1c4)]({'servers':z[_0x22ef16(0x2fa,0x302,0x3de,0x263)](z[_0x22ef16(0x214,0x28d,0x198,0x19c)](),mcpServerConfigSchema)[_0x324926(-0x9,-0x69,-0x6d,-0x4a)](),'allowedTools':z[_0x22ef16(0x2f2,0x302,0x32f,0x27a)](z[_0x324926(0x8f,0x37,-0x9e,0x171)](),z['record'](z[_0x324926(0x8f,0x8d,0x137,-0x46)](),z['boolean']()))[_0x324926(-0x9,-0x55,-0xcc,-0x2b)](),'defaultTimeoutMs':z[_0x324926(0x1,0x106,0x11e,-0x12b)]()[_0x22ef16(0x2a9,0x1f5,0x2fe,0x2a2)]()})['passthrough'](),skillsSettingsSchema=z[_0x22ef16(0x362,0x286,0x384,0x18d)]({'enabled':z[_0x22ef16(0x25d,0x231,0x35a,0x20c)]()['optional'](),'includeDefaults':z['boolean']()[_0x22ef16(0x194,0x1f5,0xfe,0x141)](),'directories':z[_0x22ef16(0x239,0x316,0x262,0x26a)](z['string']())[_0x324926(-0x9,0xd,0x123,0xb3)](),'exclude':z['array'](z['string']())['optional']()})[_0x324926(0x0,0x15,-0xc8,0x8f)](),commandsSettingsSchema=z[_0x324926(0x88,0x180,-0x24,0x9e)]({'enabled':z['boolean']()[_0x22ef16(0x30d,0x1f5,0x19f,0x123)](),'directories':z[_0x324926(0x118,0x132,0x21f,0x1df)](z['string']())[_0x324926(-0x9,-0xdb,-0x108,-0x38)]()})[_0x324926(0x0,0x106,0x60,0x109)](),agentsSettingsSchema=z[_0x324926(0x88,-0x9a,0xa5,0xb3)]({'enabled':z[_0x22ef16(0x139,0x231,0x1fe,0x2c2)]()['optional'](),'includeDefaults':z[_0x324926(0x33,-0x56,0xad,0xd2)]()[_0x22ef16(0x1b0,0x1f5,0x2b0,0x2a3)](),'directories':z[_0x324926(0x118,0x76,0x13b,0xd1)](z[_0x324926(0x8f,-0x31,0x11,-0x1b)]())[_0x22ef16(0x242,0x1f5,0x270,0x2db)]()})[_0x324926(0x0,0x1b,-0x75,0xcb)](),uiThemeSettingsSchema=z[_0x22ef16(0x21c,0x286,0x288,0x31f)]({'mode':z[_0x324926(-0x85,-0x7d,-0x60,0x71)](['auto',_0x324926(-0x47,-0x114,-0x81,-0x134),_0x22ef16(0x39c,0x2ce,0x232,0x27a)])['optional'](),'colorLevel':z[_0x22ef16(0x206,0x179,0xe2,0x1d0)]([_0x324926(-0x12e,-0x92,-0xb2,-0x224),_0x22ef16(0x399,0x27e,0x22a,0x28c),_0x22ef16(0x1e7,0x112,0xb6,0x12a),_0x22ef16(0x28e,0x2b9,0x3af,0x219),'truecolor'])[_0x22ef16(0xcb,0x1f5,0x115,0x12a)](),'backgrounds':z[_0x22ef16(0x1ef,0x179,0xf5,0x1bd)]([_0x324926(-0x12e,-0x239,-0x1ce,-0xb7),'on',_0x22ef16(0x1d6,0x1db,0x12a,0x10f)])[_0x324926(-0x9,-0x88,-0x10a,-0x25)](),'messageStyle':z[_0x324926(-0x85,-0x13c,-0x130,-0x14e)]([_0x22ef16(0x2be,0x204,0x1d8,0x26e),_0x22ef16(0x237,0x1f9,0xfc,0x180)])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x22ef16(0x79,0x179,0x28c,0x1f4)]([_0x324926(0xf3,0x72,0x15e,0x5b),_0x22ef16(0x289,0x2f7,0x24b,0x1ca),_0x22ef16(0x1a7,0x215,0xf4,0x293),'sudo',_0x324926(-0x11d,-0xde,-0x14d,-0x168),'context','cached',_0x22ef16(0x2a5,0x2e2,0x3d6,0x1b7),'tools',_0x22ef16(0x21c,0x1a0,0x29b,0x215),_0x22ef16(0x31d,0x2b6,0x24e,0x1ac),_0x22ef16(0x2d5,0x275,0x187,0x31f),_0x324926(0x86,0x158,0x0,0x154),_0x22ef16(0x34a,0x2db,0x3bc,0x2b3),_0x324926(-0x50,0x5a,-0x11d,0x6d)]),statuslineItemSchema=z[_0x324926(0x60,-0x76,-0x8a,-0x54)]([statuslineSegmentSchema,z[_0x324926(-0x48,0x4c,0x58,-0x54)]('|')]),statuslineRowSchema=z[_0x22ef16(0x3fd,0x316,0x3a5,0x28f)](statuslineItemSchema),statuslineConfigSchema=z[_0x22ef16(0x1ca,0x286,0x394,0x1ec)]({'rows':z[_0x324926(0x7f,0xdc,-0x29,0x55)]([statuslineRowSchema,statuslineRowSchema])[_0x22ef16(0x1f8,0x1f5,0x194,0x1ea)]()})[_0x324926(0x0,-0x10b,-0xde,-0x10f)](),memorySettingsSchema=z[_0x22ef16(0x38e,0x286,0x192,0x30e)]({'version':z['literal'](0x2)[_0x22ef16(0x312,0x1f5,0x2df,0x2ad)](),'retrieval':z[_0x324926(0x88,0x103,0x50,0x18d)]({'engine':z[_0x22ef16(0xb0,0x1b6,0x2b8,0x1aa)](_0x324926(0xfd,0x178,0xcb,0x36))[_0x324926(-0x9,0x126,-0x9f,0x59)](),'candidateLimit':z[_0x22ef16(0x11b,0x1ff,0x1c5,0xf1)]()[_0x22ef16(0x2ef,0x1f5,0x2a6,0x2f6)](),'activeCandidateLimit':z[_0x22ef16(0x18b,0x1ff,0x24f,0x1cc)]()[_0x22ef16(0x1b9,0x1f5,0x156,0x12a)](),'activeEnabled':z[_0x324926(0x33,0x5c,0xe5,0x9d)]()[_0x324926(-0x9,-0x11e,0x11f,-0x99)](),'maxQueriesPerTurn':z['number']()[_0x22ef16(0xd5,0x1f5,0x266,0x324)](),'coreInjectTokenBudget':z[_0x324926(0x1,-0x1b,0x83,-0x51)]()[_0x324926(-0x9,-0x75,-0x31,-0x6b)](),'injectTokenBudget':z[_0x22ef16(0x2a5,0x1ff,0x2c2,0x1c7)]()[_0x22ef16(0x2d8,0x1f5,0x113,0x236)](),'minScore':z['number']()[_0x22ef16(0x22d,0x1f5,0x2c2,0x1a1)](),'freshnessHalfLifeDays':z[_0x22ef16(0x1d8,0x1ff,0x297,0x130)]()[_0x22ef16(0xf8,0x1f5,0x2f8,0x1b4)]()})['passthrough']()[_0x22ef16(0x310,0x1f5,0x1ce,0x263)](),'extraction':z[_0x324926(0x88,0xb4,0x17a,-0x60)]({'enabled':z['boolean']()[_0x324926(-0x9,-0x5,0x115,-0xbf)](),'provider':z[_0x22ef16(0x19b,0x28d,0x235,0x1e8)]()[_0x22ef16(0x19e,0x1f5,0x27b,0x225)](),'model':z[_0x324926(0x8f,0xe8,0x19f,0xa9)]()[_0x22ef16(0x2f9,0x1f5,0xe4,0x1e9)](),'sensitiveFilter':z['boolean']()[_0x324926(-0x9,-0xe9,-0x102,0x47)]()})[_0x324926(0x0,0xce,-0x94,-0x80)]()[_0x324926(-0x9,0x20,0xec,0x6c)](),'index':z['object']({'persisted':z[_0x22ef16(0x206,0x231,0x311,0x229)]()[_0x22ef16(0x24d,0x1f5,0x110,0x266)](),'flushIntervalMs':z[_0x22ef16(0x307,0x1ff,0x28f,0x27c)]()[_0x324926(-0x9,-0x24,0x33,-0x12a)]()})[_0x22ef16(0x1f9,0x1fe,0x234,0x1f4)]()[_0x22ef16(0x2a0,0x1f5,0x1ac,0x1eb)](),'enabled':z['boolean']()[_0x22ef16(0x289,0x1f5,0x1e9,0x2ec)](),'saveTool':z[_0x324926(0x33,-0x20,-0x75,0x148)]()[_0x324926(-0x9,0xfc,-0x8f,0x12)](),'model':z[_0x22ef16(0x266,0x28d,0x174,0x2df)]()[_0x22ef16(0x200,0x1f5,0x2c1,0x31b)](),'provider':z[_0x324926(0x8f,-0x8e,0x166,0x19a)]()[_0x324926(-0x9,-0xd7,-0x11d,0x2a)](),'maxInjectionTokens':z['number']()[_0x22ef16(0x191,0x1f5,0x1e6,0x1f0)](),'backgroundExtraction':z[_0x324926(0x33,-0xa,0x6f,-0x37)]()[_0x22ef16(0x111,0x1f5,0x295,0x2d5)]()})[_0x324926(0x0,0xdd,-0x7e,0xfa)](),recentModelSchema=z['object']({'provider':z['string'](),'model':z[_0x324926(0x8f,0x143,-0x10,0x184)](),'usedAt':z['number']()})[_0x22ef16(0x16f,0x1fe,0x313,0x213)](),lspServerEntrySchema=z[_0x324926(0x88,-0x4e,0x99,0xef)]({'disabled':z['boolean']()['optional'](),'command':z[_0x22ef16(0x193,0x28d,0x38a,0x3b2)]()[_0x22ef16(0x265,0x1f5,0x270,0x1f1)](),'args':z[_0x22ef16(0x1e6,0x316,0x29c,0x3fd)](z['string']())['optional'](),'rootMarkers':z[_0x22ef16(0x383,0x316,0x202,0x24e)](z[_0x324926(0x8f,0xc4,0xe6,-0x84)]())['optional']()})[_0x22ef16(0x224,0x1fe,0x227,0x2c9)](),lspConfigSchema=z[_0x22ef16(0x33a,0x286,0x317,0x198)]({'enabled':z[_0x324926(0x33,0x127,0x16,-0x49)]()['optional'](),'servers':z[_0x324926(0x104,0x4,0x103,0x11c)](z[_0x324926(0x8f,-0x53,0xf5,0x8b)](),lspServerEntrySchema)[_0x324926(-0x9,0x100,0x57,-0x1e)]()})[_0x324926(0x0,-0x17,0xcf,-0x12e)](),cliConfigSchema=z[_0x22ef16(0x2b0,0x286,0x37b,0x184)]({'activeProvider':z['string']()[_0x324926(-0x9,-0xf9,-0xe2,0x11)](),'activeModel':z['string']()['optional'](),'apiKey':z[_0x22ef16(0x22d,0x28d,0x225,0x16e)]()[_0x22ef16(0x2ee,0x1f5,0xf6,0x1f7)](),'providers':z[_0x22ef16(0x3a1,0x302,0x370,0x2c6)](z[_0x22ef16(0x1f6,0x28d,0x342,0x2ef)](),providerConfigSchema)[_0x22ef16(0x139,0x1f5,0x171,0x1b4)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x324926(-0x9,0xc7,-0xcc,0xe0)](),'agents':agentsSettingsSchema['optional'](),'commands':commandsSettingsSchema[_0x324926(-0x9,0xad,0x2e,0x92)](),'skillsEnabled':z[_0x324926(0x104,0x1b9,0xbf,0x1c1)](z[_0x324926(0x8f,0x95,0x48,0xbb)](),z[_0x324926(0x33,-0xd6,0x54,0xc1)]())[_0x324926(-0x9,0x11a,-0x57,0x10f)](),'memory':memorySettingsSchema[_0x324926(-0x9,-0xd0,-0x7f,0x6c)](),'session':z[_0x324926(0x88,0xf1,0x1ab,0x130)]({'memPersist':z[_0x22ef16(0x1d4,0x231,0x1cc,0x292)]()[_0x324926(-0x9,-0x30,0xce,-0x4d)](),'persistEventLog':z[_0x22ef16(0x143,0x231,0x250,0x197)]()[_0x324926(-0x9,0xa7,0xa9,0x10d)](),'persistHttpLog':z[_0x22ef16(0x142,0x231,0x1f3,0x2c7)]()[_0x22ef16(0x2c5,0x1f5,0x2da,0x153)]()})[_0x22ef16(0x213,0x1fe,0x1f3,0x1cc)]()[_0x324926(-0x9,0xbe,0x71,0xa4)](),'requireToolApproval':z[_0x22ef16(0x21c,0x231,0x174,0x2dd)]()[_0x22ef16(0x28e,0x1f5,0x23a,0x101)](),'thinking':z[_0x324926(-0x85,-0x54,0xab,-0xb9)]([_0x22ef16(0x2b9,0x242,0x225,0x346),'LOW','MEDIUM',_0x324926(-0x46,-0x14c,0x3f,0x45)])['optional'](),'streamingChunks':z[_0x324926(0x33,0x95,-0xd1,-0x93)]()[_0x22ef16(0x172,0x1f5,0xda,0x27b)](),'agentsEnabled':z[_0x324926(0x104,0xad,0x60,0x1e7)](z[_0x22ef16(0x1e8,0x28d,0x1d5,0x1c5)](),z[_0x324926(0x33,0x35,-0xe4,0x7b)]())[_0x324926(-0x9,-0xe8,0x106,-0x2c)](),'recentModels':z['array'](recentModelSchema)['optional'](),'lsp':lspConfigSchema['optional'](),'ui':z[_0x22ef16(0x27e,0x286,0x23b,0x3a8)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x22ef16(0x303,0x1f5,0x24e,0x2b6)]()})[_0x324926(0x0,0x33,0xf7,0x76)]()[_0x324926(-0x9,-0xa5,-0xee,0x18)](),'tools':z[_0x22ef16(0x406,0x302,0x36a,0x2b7)](z[_0x22ef16(0x34d,0x28d,0x286,0x22f)](),z[_0x324926(0x9f,0xf6,0xfa,0x143)]())[_0x324926(-0x9,0x58,0xfb,0x6c)]()})['passthrough']();function buildDescription(_0x15448b){const _0x184a29={_0x2318af:0xfb,_0x53773c:0x30d,_0x3fded3:0x2a8,_0x26beee:0x325,_0x1da59e:0x123,_0x1c01be:0x81,_0x17f09c:0x6,_0x131109:0x249,_0x49ca15:0x1bb,_0x5a0cdb:0x23d,_0x28aae4:0x13d,_0x3c1cd9:0x1b9,_0x3a850d:0x3c6,_0x56b362:0xcf,_0x2c098f:0x2e,_0x47d2d6:0x3e9,_0x3d3f62:0x4bb,_0x4614e6:0x469},_0x3a23cb={_0x50fa8f:0xd5};if(_0x15448b[_0x4c50fa(-0x17e,-0xea,-0x83,-_0x184a29._0x2318af)]===0x0)return[_0x67348(_0x184a29._0x53773c,_0x184a29._0x3fded3,0x41f,_0x184a29._0x26beee),_0x4c50fa(-_0x184a29._0x1da59e,-_0x184a29._0x1c01be,-0x7b,_0x184a29._0x17f09c),_0x4c50fa(-_0x184a29._0x131109,-_0x184a29._0x49ca15,-_0x184a29._0x5a0cdb,-0x18a)][_0x4c50fa(-0x1d2,-_0x184a29._0x28aae4,-0x21b,-_0x184a29._0x3c1cd9)]('\x0a');function _0x67348(_0x253216,_0x4de4d6,_0x1b1831,_0x141b08){return _0x22ef16(_0x4de4d6,_0x253216-0x152,_0x1b1831-0x124,_0x141b08-0x12);}function _0x4c50fa(_0x5dc288,_0x42022f,_0x4c5898,_0x16b2a8){return _0x22ef16(_0x42022f,_0x16b2a8- -0x305,_0x4c5898-0xe9,_0x16b2a8-_0x3a23cb._0x50fa8f);}const _0x1f8a26=[_0x67348(_0x184a29._0x53773c,_0x184a29._0x3a850d,0x412,0x357),_0x4c50fa(-0x11f,-_0x184a29._0x56b362,-_0x184a29._0x2c098f,0x6),_0x67348(0x3b4,_0x184a29._0x47d2d6,_0x184a29._0x3d3f62,_0x184a29._0x4614e6),..._0x15448b['map'](_0x94c6f9=>_0x94c6f9[_0x4c50fa(-0x6e,-0x25f,-0x116,-0x181)]?'-\x20'+_0x94c6f9[_0x4c50fa(-0xf2,-0x240,-0x27f,-0x18e)]+'\x20'+_0x94c6f9['argumentHint']+':\x20'+_0x94c6f9[_0x67348(0x259,0x2da,0x2c3,0x18b)]:'-\x20'+_0x94c6f9[_0x67348(0x2c9,0x373,0x3b9,0x38e)]+':\x20'+_0x94c6f9['description'])];return _0x1f8a26['join']('\x0a');}function createInvokeCommandTool(_0x29bb9f){const _0x392d4c={_0x286ac2:0x494,_0x29b0b1:0x396,_0x2ca58d:0x41e,_0x3b9206:0x483,_0x52b084:0x4b9,_0x26e341:0xdf,_0x1394b3:0x7e,_0x466103:0x28b,_0x200a66:0x2f0,_0x55e157:0x557,_0x55232f:0x46e,_0x799d32:0x47b,_0x2dafa4:0x521,_0x315f29:0x5a8,_0x22681a:0x482},_0x2ba14d={_0x131a93:0xf1,_0x15e3c3:0x45,_0x2177ac:0x184,_0x1eab8b:0x266,_0x4f8cba:0x22e,_0x525c78:0x27c,_0x577a60:0x2ad,_0x1aa981:0x290,_0xcaebf1:0xb9,_0x5320d7:0x2a4,_0x17fedc:0x1f9,_0x526531:0x149,_0x4ce039:0x251,_0x1f49ce:0x316,_0x3c26ac:0x160,_0x59c793:0x18d,_0x3b7088:0x259,_0xa59d2b:0x91,_0x239b3b:0x17d,_0x400ea0:0x1ff,_0x4b5501:0x1e9,_0x52a293:0x261,_0xa64d96:0xaa,_0x572359:0x134},_0x4c629b={_0x470e52:0x1c},_0x3e2471={_0x452e84:0x221,_0x3581a4:0xea,_0x15641b:0x1e6},_0x1c8cd0={_0x1a996e:0x1c0,_0x148ef1:0x16e};function _0x2965fc(_0x3a6766,_0x19fd3c,_0x7b2732,_0x5ae5b2){return _0x324926(_0x5ae5b2-0x3f3,_0x7b2732,_0x7b2732-_0x1c8cd0._0x1a996e,_0x5ae5b2-_0x1c8cd0._0x148ef1);}function _0x4e705f(_0x3dc390,_0x32a556,_0x4d0a0f,_0x58ca8e){return _0x22ef16(_0x32a556,_0x4d0a0f- -_0x3e2471._0x452e84,_0x4d0a0f-_0x3e2471._0x3581a4,_0x58ca8e-_0x3e2471._0x15641b);}const _0x3bb47f=new Map(_0x29bb9f[_0x2965fc(0x53e,0x408,0x523,_0x392d4c._0x286ac2)][_0x2965fc(_0x392d4c._0x29b0b1,_0x392d4c._0x2ca58d,_0x392d4c._0x3b9206,_0x392d4c._0x52b084)](_0x3517f8=>[_0x3517f8['id'],_0x3517f8])),_0x38538b=buildDescription(_0x29bb9f[_0x4e705f(0xea,_0x392d4c._0x26e341,_0x392d4c._0x1394b3,0x181)]);return defineTool({'name':_0x2965fc(0x1e6,_0x392d4c._0x466103,0x3fa,_0x392d4c._0x200a66),'description':_0x38538b,'inputSchema':{'type':_0x2965fc(_0x392d4c._0x55e157,_0x392d4c._0x55232f,0x4c3,_0x392d4c._0x799d32),'properties':{'name':{'type':_0x4e705f(0x0,0xe7,0x6c,0x186)},'args':{'type':_0x2965fc(_0x392d4c._0x2dafa4,_0x392d4c._0x315f29,0x3d8,_0x392d4c._0x22681a)}},'required':['name']},async *'execute'(_0x3a99b2){const _0x46fabc=_0x3bb47f['get'](_0x3a99b2[_0x4e5679(_0x2ba14d._0x131a93,0x16c,_0x2ba14d._0x15e3c3,_0x2ba14d._0x2177ac)]);if(!_0x46fabc){const _0x44a1a6=Array[_0x4e5679(_0x2ba14d._0x1eab8b,_0x2ba14d._0x4f8cba,_0x2ba14d._0x525c78,_0x2ba14d._0x577a60)](_0x3bb47f[_0x3b3dd2(-0x151,-_0x2ba14d._0x1aa981,-0x1d7,-0x144)]())[_0x4e5679(0xc6,_0x2ba14d._0xcaebf1,0x1d2,0x1f0)](',\x20');throw new ToolExecutionError(_0x3b3dd2(-0x233,-0x257,-_0x2ba14d._0x5320d7,-_0x2ba14d._0x17fedc)+_0x3a99b2[_0x4e5679(_0x2ba14d._0x131a93,0x120,_0x2ba14d._0x526531,0x155)]+_0x4e5679(0x21a,0x1ae,0x198,_0x2ba14d._0x4ce039)+_0x44a1a6,{'name':_0x3a99b2[_0x3b3dd2(-0x14c,-_0x2ba14d._0x1f49ce,-0x204,-0x1d6)]});}function _0x3b3dd2(_0x49b91b,_0x1566da,_0x5c1c44,_0x2bcab3){return _0x2965fc(_0x49b91b-0x14b,_0x1566da-0x8e,_0x2bcab3,_0x5c1c44- -0x570);}const _0x29b268=await _0x29bb9f[_0x3b3dd2(-_0x2ba14d._0x3c26ac,-_0x2ba14d._0x59c793,-_0x2ba14d._0x3b7088,-0x252)](_0x46fabc),_0x5aef0d=_0x3a99b2[_0x4e5679(_0x2ba14d._0xa59d2b,0x2c,0x131,_0x2ba14d._0x239b3b)]??'',_0x1b56e9=renderCommandInstructions({'instructions':_0x29b268['instructions'],'argumentsText':_0x5aef0d,'argumentNames':_0x29b268[_0x4e5679(_0x2ba14d._0x400ea0,_0x2ba14d._0x4b5501,_0x2ba14d._0x52a293,0x24c)]});function _0x4e5679(_0x3a110e,_0x4c7623,_0x13abd7,_0x2e829d){return _0x2965fc(_0x3a110e-_0x4c629b._0x470e52,_0x4c7623-0x12,_0x2e829d,_0x3a110e- -0x27b);}return yield createToolOutput(_0x1b56e9,{'id':_0x29b268['id'],'name':_0x29b268[_0x3b3dd2(-0x2a3,-0x13c,-0x204,-0x16b)],'path':_0x46fabc['source'][_0x3b3dd2(-0x28,-0x7d,-_0x2ba14d._0xa64d96,-_0x2ba14d._0x572359)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x17d928,rename as _0x18cece,stat as _0x5008d2,writeFile as _0x490e93}from'fs/promises';import*as _0x395bf5 from'path';function detectEol(_0x474f4a){const _0x12c9a5={_0x55a91e:0x413,_0xf1f534:0x355,_0x279479:0x447,_0x4533ae:0x420},_0x322b45={_0x2d2564:0x1d5},_0x1de415={_0x4834f4:0xe0};function _0x4d358a(_0xe34349,_0x4ec9d9,_0x70aed7,_0x5dc130){return _0x22ef16(_0x4ec9d9,_0x70aed7-0x244,_0x70aed7-0x143,_0x5dc130-_0x1de415._0x4834f4);}function _0x5e5a74(_0x2d579b,_0x55f7b5,_0xd33b63,_0x36c3b6){return _0x324926(_0x55f7b5-0x4e0,_0xd33b63,_0xd33b63-0xcc,_0x36c3b6-_0x322b45._0x2d2564);}return/\r\n/['test'](_0x474f4a['toString'](_0x4d358a(0x3c0,0x2f0,_0x12c9a5._0x55a91e,_0x12c9a5._0xf1f534)))?_0x5e5a74(_0x12c9a5._0x279479,_0x12c9a5._0x4533ae,0x344,0x3fe):'lf';}function normalizeToLf(_0xff9c32){return _0xff9c32['replace'](/\r\n/g,'\x0a');}function convertEol(_0x1d6cb8,_0x401463){const _0x54672c={_0x257b73:0x218,_0x257d6e:0x132,_0x5a1201:0x257},_0x5eee71={_0x2924e0:0x11a};function _0x3c5fe6(_0x3d92af,_0x23c2de,_0x3dc54e,_0x185f99){return _0x324926(_0x185f99- -0x1be,_0x3dc54e,_0x3dc54e-_0x5eee71._0x2924e0,_0x185f99-0x156);}return _0x401463==='crlf'?_0x1d6cb8[_0x3c5fe6(-_0x54672c._0x257b73,-_0x54672c._0x257d6e,-_0x54672c._0x5a1201,-0x233)](/\n/g,'\x0d\x0a'):_0x1d6cb8;}async function atomicWrite(_0x53d64a,_0x117aca){const _0x7bc75d={_0x2d2cbd:0x1d4,_0x45aaa6:0xef,_0x284b65:0x1ca,_0x1dc738:0x10c,_0xc45260:0x130,_0x38f9be:0xfb,_0x2964c8:0xfa,_0xe1cbcc:0xac,_0x2ca343:0xd4,_0x1310dc:0xc1,_0x5c809d:0x6e,_0x1d20e8:0x9c,_0x2a96d6:0xf},_0x5b5601={_0x4bf09b:0x43},_0x3a041e={_0x33bfc2:0x14c};function _0x4720a9(_0x3b6177,_0x3004f2,_0xff64bb,_0x38daf1){return _0x22ef16(_0x3b6177,_0x38daf1- -0x40,_0xff64bb-_0x3a041e._0x33bfc2,_0x38daf1-0x97);}const _0x24d328=_0x395bf5[_0x4720a9(0x196,0x55,_0x7bc75d._0x2d2cbd,_0x7bc75d._0x45aaa6)](_0x53d64a),_0x2b5a06=_0x395bf5[_0x4720a9(0x1aa,_0x7bc75d._0x284b65,0x17d,_0x7bc75d._0x1dc738)](_0x24d328,_0x4720a9(0x249,0x1fd,_0x7bc75d._0xc45260,0x129)+_0x395bf5['basename'](_0x53d64a)+'.'+Date[_0x4720a9(_0x7bc75d._0x38f9be,0x2ee,0x2ce,0x1de)]()+'.'+Math[_0x4720a9(_0x7bc75d._0x2964c8,_0x7bc75d._0xe1cbcc,0x76,_0x7bc75d._0x2ca343)]()[_0x5a5108(-0x5a,-_0x7bc75d._0x1310dc,_0x7bc75d._0x5c809d,-0x1d8)](0x24)[_0x5a5108(_0x7bc75d._0x1d20e8,0xb2,-_0x7bc75d._0x2a96d6,0x10b)](0x2));await _0x490e93(_0x2b5a06,_0x117aca);function _0x5a5108(_0x5255f9,_0x119c41,_0x558bfd,_0x19cfaf){return _0x324926(_0x119c41- -_0x5b5601._0x4bf09b,_0x558bfd,_0x558bfd-0xed,_0x19cfaf-0x18c);}await _0x18cece(_0x2b5a06,_0x53d64a);}function sha256(_0x48fa4f){const _0x279711={_0x801f4b:0x98,_0xeba7a5:0xae,_0x3161df:0x100,_0x1ad279:0x2ed,_0x9f747f:0x1ff,_0x5cc4a1:0x20b,_0x3d8f35:0x298,_0x6128e1:0x407,_0x251344:0x31d},_0x18f840={_0x2e5202:0x7},_0xf9da3e={_0xa59812:0x115,_0x511429:0x170};function _0x503c64(_0x2c96aa,_0x405d60,_0x5ae263,_0x590a84){return _0x324926(_0x405d60- -0x8a,_0x590a84,_0x5ae263-_0xf9da3e._0xa59812,_0x590a84-_0xf9da3e._0x511429);}function _0x1443fb(_0xae6e51,_0x48e8ef,_0x776f7,_0x1f3e4e){return _0x22ef16(_0x776f7,_0x1f3e4e- -0x3f3,_0x776f7-0xbd,_0x1f3e4e-_0x18f840._0x2e5202);}return createHash(_0x503c64(-_0x279711._0x801f4b,-_0x279711._0xeba7a5,-0x1bb,-_0x279711._0x3161df))[_0x1443fb(-0x1c1,-_0x279711._0x1ad279,-0xf3,-_0x279711._0x9f747f)](_0x48fa4f)[_0x1443fb(-_0x279711._0x5cc4a1,-_0x279711._0x3d8f35,-0x28a,-0x19b)](_0x1443fb(-0x290,-0x3c4,-_0x279711._0x6128e1,-_0x279711._0x251344));}function countLines(_0x522998){const _0x18f56c={_0x1ceeef:0x28a,_0x2e2734:0x34a,_0x45db06:0x468,_0x561468:0x3cb,_0x433616:0x3f1,_0x1ec85d:0x385},_0x187047={_0x481481:0x1c1,_0x5b4817:0x3d},_0x47bc02={_0x4db175:0x25e};function _0x4f675f(_0x4a4564,_0x55b53e,_0x5abfb0,_0x600d9d){return _0x22ef16(_0x5abfb0,_0x4a4564-_0x47bc02._0x4db175,_0x5abfb0-0x10b,_0x600d9d-0x1a8);}function _0x13978f(_0x5db7cf,_0x7b0eab,_0x43948d,_0x40b9b9){return _0x22ef16(_0x5db7cf,_0x40b9b9-_0x187047._0x481481,_0x43948d-0x83,_0x40b9b9-_0x187047._0x5b4817);}const _0x213c65=_0x522998[_0x13978f(_0x18f56c._0x1ceeef,0x378,0x34e,_0x18f56c._0x2e2734)](/\n$/,'');return _0x213c65[_0x4f675f(_0x18f56c._0x45db06,_0x18f56c._0x561468,0x4ea,0x483)]===0x0?0x0:_0x213c65['split']('\x0a')[_0x13978f(0x4f0,_0x18f56c._0x433616,_0x18f56c._0x1ec85d,0x3cb)];}function calculateLineNumbers(_0x5b1b7f,_0x32f0ee,_0x2a716c,_0x20c1c6){const _0x4f2c25={_0x2bfc53:0x65f,_0x26547f:0x73f},_0x2c13d9={_0x1f538a:0xd6,_0x128a0a:0x5},_0x4fad74={_0x225841:0x253,_0x4cd7aa:0x74},_0x2af5b6=_0x5b1b7f[_0x4f8cd2(_0x4f2c25._0x2bfc53,0x6a1,0x727,_0x4f2c25._0x26547f)](0x0,_0x20c1c6)['split']('\x0a')[_0x4f8cd2(0x6ab,0x5b8,0x5be,0x594)],_0x48a0e7=countLines(_0x32f0ee),_0x12b30a=countLines(_0x2a716c);function _0x399871(_0x3cf385,_0x4c756c,_0x5d942f,_0x4d08ff){return _0x324926(_0x5d942f-_0x4fad74._0x225841,_0x4c756c,_0x5d942f-0x1e5,_0x4d08ff-_0x4fad74._0x4cd7aa);}function _0x4f8cd2(_0x476f56,_0x4bf241,_0x58b123,_0x18373c){return _0x324926(_0x4bf241-0x5ac,_0x58b123,_0x58b123-_0x2c13d9._0x1f538a,_0x18373c-_0x2c13d9._0x128a0a);}return{'oldStartLine':_0x2af5b6,'oldEndLine':_0x2af5b6+_0x48a0e7-0x1,'newStartLine':_0x2af5b6,'newEndLine':_0x2af5b6+_0x12b30a-0x1,'oldLineCount':_0x48a0e7,'newLineCount':_0x12b30a};}function createFileEditTool(_0x2e5e1f={}){const _0x9ce9bd={_0xa6efaa:0x27e,_0x6f2463:0x214,_0x152684:0x2c7,_0x3717c4:0x1fb,_0x3272d3:0x13b,_0x48a7dd:0x78,_0x589d6b:0x8f,_0x2b5d1a:0x112,_0x23646e:0x101,_0x364991:0x146,_0x1887ab:0xbc,_0xb323ca:0xad,_0x1199b3:0x152,_0xa72600:0x23b,_0x35f889:0x20a,_0x5689f4:0xe2,_0x2e4125:0x1ce,_0x16adae:0x1ca,_0x49c7c1:0x2f1,_0x41e0c:0x228,_0x121d61:0x2ba,_0x38dde1:0x19f,_0x20c327:0x25e,_0x385191:0xdd},_0x20e6b2={_0xdccd51:0xb1,_0x4c391c:0x16f,_0x4da086:0x198,_0x344deb:0x50a,_0x461062:0x1c5,_0x28b228:0x750,_0x5b1264:0x682,_0x11d595:0x6c3,_0x4ec6e2:0x5fd,_0x2a77a7:0x6b5,_0x18f03d:0x589,_0x45a186:0x6f3,_0x131751:0x4c9,_0x511265:0x54b,_0x372d13:0x672,_0x715858:0xce,_0x101889:0x193,_0x3ffd13:0x171,_0x485d9e:0x523,_0x4b2839:0x5cc,_0x3b4556:0x28c,_0x1bd020:0x236,_0x223e0f:0xc0,_0x162de3:0x1df,_0x1a7ff7:0x37,_0x3c7359:0x1d7,_0x4ca658:0x8a,_0x585137:0x4f,_0x3fccb4:0x7dc,_0x53068a:0x6ae,_0x31a741:0x5fe,_0x2f0aa7:0x6ac,_0x3811fa:0x58c,_0x3f9de6:0x626,_0x5e729b:0x1ae,_0x2d4b31:0x1b1,_0x4aa422:0x1ca,_0x332689:0x4ae,_0x2f6d4e:0x593,_0x40ffa9:0x4a9,_0x140591:0x19d,_0x574a97:0x2c9,_0x4e8c6a:0x262,_0x4315f7:0x1bf,_0x226476:0x10b,_0x47dce6:0xdf,_0x4691d7:0x81,_0x553241:0x56b,_0x46458c:0x60c,_0x1a7105:0x19a,_0x57a14b:0x25b,_0x2df9a1:0x557,_0x234129:0x5a2,_0x471312:0x179,_0x27e56a:0x1fd},_0x21aa8b={_0x5bce27:0x13f,_0x2f510c:0x1a0,_0x436fca:0x15c},_0x1f3dd4={_0x4b2534:0x103},_0x29e38e=_0x395bf5[_0x4a5768(0x160,_0x9ce9bd._0xa6efaa,0x16c,_0x9ce9bd._0x6f2463)](_0x2e5e1f[_0x4a5768(0x221,_0x9ce9bd._0x152684,_0x9ce9bd._0x3717c4,0x297)]??process['cwd']()),_0x29e8f8=(_0x2e5e1f['allowedDirs']??[])[_0xef44e8(0x25c,0x1b1,0x205,_0x9ce9bd._0x3272d3)](_0x74be1d=>_0x395bf5[_0x4a5768(0xd3,0x192,0x16c,0x21f)](_0x74be1d));function _0x4a5768(_0x4a899c,_0x342375,_0x4c76be,_0x7f36e6){return _0x324926(_0x4c76be-0x199,_0x7f36e6,_0x4c76be-0x1ec,_0x7f36e6-_0x1f3dd4._0x4b2534);}function _0xef44e8(_0x3c8f02,_0x1a9c4d,_0x20314f,_0x4f2306){return _0x324926(_0x20314f-_0x21aa8b._0x5bce27,_0x1a9c4d,_0x20314f-_0x21aa8b._0x2f510c,_0x4f2306-_0x21aa8b._0x436fca);}const _0x33265c=_0x2e5e1f[_0x4a5768(_0x9ce9bd._0x48a7dd,_0x9ce9bd._0x589d6b,_0x9ce9bd._0x2b5d1a,_0x9ce9bd._0x23646e)]??_0x4a5768(_0x9ce9bd._0x364991,_0x9ce9bd._0x1887ab,0x135,0x37);return defineTool({'name':_0x33265c,'description':_0x4a5768(0x188,0x148,0x1a0,0x28b),'inputSchema':{'type':_0xef44e8(_0x9ce9bd._0xb323ca,_0x9ce9bd._0x1199b3,0x1c7,_0x9ce9bd._0xa72600),'properties':{'filePath':{'type':_0x4a5768(0x21e,0x22f,0x228,_0x9ce9bd._0x35f889)},'oldText':{'type':_0xef44e8(0x2d5,_0x9ce9bd._0x5689f4,_0x9ce9bd._0x2e4125,_0x9ce9bd._0x16adae)},'newText':{'type':_0x4a5768(_0x9ce9bd._0x49c7c1,0x315,_0x9ce9bd._0x41e0c,0x16a)},'dryRun':{'type':'boolean'}},'required':[_0x4a5768(_0x9ce9bd._0x121d61,_0x9ce9bd._0x38dde1,_0x9ce9bd._0x20c327,0x14b),'oldText',_0xef44e8(0xae,_0x9ce9bd._0x385191,0x168,0x236)]},async *'execute'(_0xa99c68){const _0x4fc5eb={_0x1a3fe0:0x1a4},_0x36ff0a={_0x209de5:0xc9};function _0x119208(_0x11d514,_0x1c579f,_0x55cc6d,_0x273a32){return _0x4a5768(_0x11d514-0x109,_0x1c579f-_0x36ff0a._0x209de5,_0x1c579f-0x427,_0x55cc6d);}const _0x3ebaff=resolveAllowedPath(_0x29e38e,_0x29e8f8,_0xa99c68[_0x3b69e3(-0xc0,-_0x20e6b2._0xdccd51,-_0x20e6b2._0x4c391c,-_0x20e6b2._0x4da086)]);await assertWorkspaceFile(_0x3ebaff);const _0x4a89b1=await _0x5008d2(_0x3ebaff),_0x506d30=await _0x17d928(_0x3ebaff),_0x491b0a=detectEol(_0x506d30),_0x1827b7=normalizeToLf(_0x506d30[_0x119208(_0x20e6b2._0x344deb,0x542,0x42e,0x5e1)](_0x3b69e3(-0x1b4,-0xc3,-_0x20e6b2._0x461062,-0x272))),_0x2cb51d=normalizeToLf(_0xa99c68[_0x119208(_0x20e6b2._0x28b228,_0x20e6b2._0x5b1264,_0x20e6b2._0x11d595,0x7b1)]),_0x587ca8=normalizeToLf(_0xa99c68['newText']),_0x62f2da=_0x1827b7[_0x119208(0x631,_0x20e6b2._0x4ec6e2,0x53f,0x658)](_0x2cb51d);if(_0x62f2da===-0x1){const _0x5b4a20=_0x2cb51d[_0x119208(0x6a8,_0x20e6b2._0x2a77a7,_0x20e6b2._0x18f03d,_0x20e6b2._0x45a186)](0x0,0x64)[_0x119208(_0x20e6b2._0x131751,_0x20e6b2._0x511265,0x459,_0x20e6b2._0x372d13)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x3b69e3(-0x7b,-_0x20e6b2._0x715858,-_0x20e6b2._0x101889,-_0x20e6b2._0x3ffd13)+_0x5b4a20+(_0x2cb51d[_0x119208(_0x20e6b2._0x485d9e,_0x20e6b2._0x4b2839,0x5c3,0x6f7)]>0x64?_0x3b69e3(-_0x20e6b2._0x3b4556,-0x180,-0x23b,-_0x20e6b2._0x1bd020):'')+'\x22',{'filePath':_0xa99c68[_0x3b69e3(-_0x20e6b2._0x223e0f,-_0x20e6b2._0x162de3,-_0x20e6b2._0x1a7ff7,-_0x20e6b2._0x3c7359)]});}const _0x4e6b9e=_0x1827b7['slice'](0x0,_0x62f2da)+_0x587ca8+_0x1827b7[_0x3b69e3(-0x90,-_0x20e6b2._0x4ca658,-0xad,-_0x20e6b2._0x585137)](_0x62f2da+_0x2cb51d['length']),_0x2d6e55=convertEol(_0x4e6b9e,_0x491b0a),_0x2bea69=Buffer[_0x119208(_0x20e6b2._0x3fccb4,_0x20e6b2._0x53068a,_0x20e6b2._0x31a741,0x6a6)](_0x2d6e55,'utf8'),_0x3ac17c=sha256(_0x506d30),_0x6a5e7d=sha256(_0x2bea69),_0x454217=_0x3ac17c===_0x6a5e7d,_0x415008=_0xa99c68[_0x119208(0x5a7,_0x20e6b2._0x2f0aa7,_0x20e6b2._0x3811fa,_0x20e6b2._0x3f9de6)]??![];!_0x415008&&!_0x454217&&await atomicWrite(_0x3ebaff,_0x2bea69);function _0x3b69e3(_0x3f9ed8,_0x7b3d21,_0x5a28b0,_0x5a50b8){return _0x4a5768(_0x3f9ed8-0x8a,_0x7b3d21-_0x4fc5eb._0x1a3fe0,_0x3f9ed8- -0x31e,_0x7b3d21);}return yield createToolOutput(_0x454217?_0x3b69e3(-_0x20e6b2._0x5e729b,-0x235,-_0x20e6b2._0x2d4b31,-_0x20e6b2._0x4aa422):_0x415008?_0x119208(0x5c7,0x540,_0x20e6b2._0x332689,0x419):_0x119208(_0x20e6b2._0x2f6d4e,_0x20e6b2._0x40ffa9,0x471,0x552),{'filePath':_0xa99c68['filePath'],'resolvedPath':_0x3ebaff,'created':_0x4a89b1[_0x3b69e3(-_0x20e6b2._0x140591,-_0x20e6b2._0x574a97,-_0x20e6b2._0x4e8c6a,-_0x20e6b2._0x4315f7)][_0x3b69e3(-0xcf,-_0x20e6b2._0x226476,-_0x20e6b2._0x47dce6,-_0x20e6b2._0x4691d7)](),'modified':_0x4a89b1[_0x119208(0x488,_0x20e6b2._0x553241,0x5b3,_0x20e6b2._0x46458c)]['toISOString'](),'size':_0x4a89b1[_0x3b69e3(-_0x20e6b2._0x1a7105,-0x115,-_0x20e6b2._0x57a14b,-0x17f)],'eol':_0x491b0a,'oldTextLength':_0x2cb51d[_0x119208(0x694,_0x20e6b2._0x4b2839,_0x20e6b2._0x2df9a1,0x4aa)],'newTextLength':_0x587ca8[_0x119208(0x4b6,_0x20e6b2._0x4b2839,_0x20e6b2._0x234129,0x5ea)],'bytesWritten':_0x454217||_0x415008?0x0:_0x2bea69[_0x3b69e3(-0x179,-_0x20e6b2._0x471312,-_0x20e6b2._0x27e56a,-0x152)],'beforeSha':_0x3ac17c,'afterSha':_0x6a5e7d,'dryRun':_0x415008,'noChange':_0x454217,'lineNumbers':calculateLineNumbers(_0x1827b7,_0x2cb51d,_0x587ca8,_0x62f2da)}),void 0x0;}});}import{mkdir as _0x4bfaac,rename as _0x1ca6ad,stat as _0x449c5b,writeFile as _0x4a56ef}from'fs/promises';import*as _0x354d6c from'path';async function atomicWrite2(_0x1c11f8,_0x50c7f8){const _0x5ce1d2={_0x3a112d:0x48f,_0x3820d5:0x1d0,_0x98ddba:0x19a,_0x43252a:0x105,_0x365a44:0xf6,_0x5b21a4:0x19b,_0x1018fc:0x214},_0x23cedc={_0x1e0492:0x183,_0x5f7e4e:0x7c},_0x51b1c6=_0x354d6c['dirname'](_0x1c11f8);function _0x32e135(_0x3f9e04,_0x11055d,_0x491a13,_0x73e06d){return _0x324926(_0x3f9e04-0x54e,_0x11055d,_0x491a13-_0x23cedc._0x1e0492,_0x73e06d-_0x23cedc._0x5f7e4e);}await _0x4bfaac(_0x51b1c6,{'recursive':!![]});const _0x1664ac=_0x354d6c['join'](_0x51b1c6,'.tmp.'+_0x354d6c[_0x32e135(_0x5ce1d2._0x3a112d,0x474,0x395,0x39d)](_0x1c11f8)+'.'+Date['now']()+'.'+Math[_0x43af27(-_0x5ce1d2._0x3820d5,-0x207,-_0x5ce1d2._0x98ddba,-_0x5ce1d2._0x43252a)]()[_0x43af27(-_0x5ce1d2._0x365a44,-_0x5ce1d2._0x5b21a4,-_0x5ce1d2._0x1018fc,-0xf7)](0x24)[_0x32e135(0x643,0x698,0x690,0x587)](0x2));await _0x4a56ef(_0x1664ac,_0x50c7f8);function _0x43af27(_0xf83a55,_0x4dcb38,_0x4f072a,_0x127cb5){return _0x22ef16(_0x127cb5,_0x4dcb38- -0x31b,_0x4f072a-0xe4,_0x127cb5-0xf9);}await _0x1ca6ad(_0x1664ac,_0x1c11f8);}function createFileNewTool(_0x3f8520={}){const _0x4fec4e={_0x2f4bb5:0x5bc,_0xd682be:0x110,_0x26226b:0x196,_0x5a1f3d:0x454,_0x32faa0:0x3ce,_0x318e19:0x36a,_0x42f353:0x2e5,_0x2a9d02:0x1c8,_0x25de2c:0x400,_0xcf6d5f:0x467,_0x314997:0x184,_0x2043c9:0x16c,_0x4b29b9:0x4e3,_0x258ee1:0x44f,_0x59d131:0x590,_0x539c06:0x4d2,_0x25e23f:0x4b3,_0x266c52:0x3dd,_0x125cf5:0x1bb,_0x3f9991:0x1ef,_0x58a6a4:0x416,_0x36e3de:0x2f1},_0x3e278c={_0x332d77:0x27,_0x45224e:0x87,_0x230977:0xb6,_0x3ee741:0xab,_0x558824:0x1f0,_0x41755f:0x16,_0x441e2d:0xa0,_0x54a48a:0x15c,_0x58df3d:0xf4,_0x223f8a:0x13d,_0x1ee93e:0x6d,_0x9f8ba1:0x1c,_0x3a51cf:0x79,_0x3711bb:0x20,_0x13e6c2:0x250,_0x35a63c:0x9d,_0x5f837b:0x68,_0x22854b:0x2a2},_0xfa9a95={_0x314be1:0x105},_0x4eaf03={_0x443348:0x443,_0x76c59:0x158},_0x48653a=_0x354d6c[_0x1234f6(0x12a,0x2c8,0x1ff,0x31c)](_0x3f8520[_0x56c3ef(0x4a5,_0x4fec4e._0x2f4bb5,0x4b2,0x511)]??process[_0x1234f6(0x16,_0x4fec4e._0xd682be,0x127,_0x4fec4e._0x26226b)]());function _0x1234f6(_0x5e0b8b,_0x2e66c9,_0x35fba6,_0x4c46a2){return _0x324926(_0x35fba6-0x22c,_0x2e66c9,_0x35fba6-0x1b4,_0x4c46a2-0xc4);}const _0x345690=(_0x3f8520[_0x56c3ef(_0x4fec4e._0x5a1f3d,_0x4fec4e._0x32faa0,_0x4fec4e._0x318e19,0x335)]??[])[_0x1234f6(_0x4fec4e._0x42f353,0x33a,0x2f2,_0x4fec4e._0x2a9d02)](_0x26d9d0=>_0x354d6c[_0x56c3ef(0x416,0x4f1,0x523,0x43c)](_0x26d9d0)),_0x19b23f=_0x3f8520['name']??_0x56c3ef(0x4f4,_0x4fec4e._0x25de2c,0x598,_0x4fec4e._0xcf6d5f);function _0x56c3ef(_0x4576e7,_0x123e02,_0x4686c8,_0x382cbd){return _0x324926(_0x4576e7-_0x4eaf03._0x443348,_0x4686c8,_0x4686c8-_0x4eaf03._0x76c59,_0x382cbd-0x1f4);}return defineTool({'name':_0x19b23f,'description':_0x1234f6(0x78,_0x4fec4e._0x314997,0x13a,_0x4fec4e._0x2043c9),'inputSchema':{'type':_0x56c3ef(0x4cb,_0x4fec4e._0x4b29b9,_0x4fec4e._0x258ee1,_0x4fec4e._0x59d131),'properties':{'filePath':{'type':_0x56c3ef(_0x4fec4e._0x539c06,0x52b,_0x4fec4e._0x25e23f,_0x4fec4e._0x266c52)},'content':{'type':_0x1234f6(_0x4fec4e._0x125cf5,0x391,0x2bb,0x222)}},'required':[_0x1234f6(_0x4fec4e._0x3f9991,_0x4fec4e._0x58a6a4,_0x4fec4e._0x36e3de,0x3af),'content']},async *'execute'(_0x2ab55d){const _0x3a4b2b={_0x1a8230:0x481,_0x5ad83e:0x6e};function _0x23676b(_0xa9f33d,_0x577d88,_0xe77f9e,_0x587b2f){return _0x1234f6(_0xa9f33d-_0xfa9a95._0x314be1,_0x577d88,_0xe77f9e-0x14,_0x587b2f-0x102);}const _0xe193a1=resolveAllowedPath(_0x48653a,_0x345690,_0x2ab55d[_0x4242f0(-0x47,0xe5,-_0x3e278c._0x332d77,_0x3e278c._0x45224e)]);function _0x4242f0(_0x5d813e,_0x5cbdfd,_0x1f925d,_0x509987){return _0x56c3ef(_0x509987- -_0x3a4b2b._0x1a8230,_0x5cbdfd-_0x3a4b2b._0x5ad83e,_0x5d813e,_0x509987-0x25);}const _0x1599cd=await _0x449c5b(_0xe193a1)[_0x4242f0(_0x3e278c._0x230977,0xe5,0xde,_0x3e278c._0x3ee741)](()=>!![])[_0x4242f0(-_0x3e278c._0x558824,-0x90,-0x29b,-0x177)](()=>![]),_0x160091=Buffer[_0x4242f0(_0x3e278c._0x41755f,0x2c,_0x3e278c._0x441e2d,0xb0)](_0x2ab55d[_0x4242f0(-0x1bb,-_0x3e278c._0x54a48a,-0x4,-_0x3e278c._0x58df3d)],_0x4242f0(-_0x3e278c._0x223f8a,-0xf2,-0x18c,-_0x3e278c._0x1ee93e));return await atomicWrite2(_0xe193a1,_0x160091),yield createToolOutput(_0x4242f0(0x148,-_0x3e278c._0x9f8ba1,-_0x3e278c._0x3a51cf,_0x3e278c._0x3711bb)+_0x2ab55d['filePath']+'.',{'filePath':_0x2ab55d['filePath'],'resolvedPath':_0xe193a1,'bytes':_0x160091['length'],'lines':_0x2ab55d[_0x23676b(0x23e,_0x3e278c._0x13e6c2,0x18a,_0x3e278c._0x35a63c)]['split'](/\r?\n/)[_0x4242f0(0xe7,-_0x3e278c._0x5f837b,-0x24,-0x32)],'created':new Date()[_0x23676b(0x388,_0x3e278c._0x22854b,0x2f6,0x293)](),'overwritten':_0x1599cd}),void 0x0;}});}import{readFile as _0x2234ca,stat as _0x4b6eee}from'fs/promises';import*as _0x30f525 from'path';function stripUtfBom(_0x3b713b){const _0x124842={_0x3349a6:0x3f0,_0x4ed28d:0x3b5,_0x595493:0x1b2,_0x3a8eb9:0x98,_0x45275d:0xa0},_0x545f61={_0x5e1ec1:0x1d5};function _0x4c90f8(_0x2eb63c,_0x1cdb2d,_0x53d23d,_0x5cf7bd){return _0x324926(_0x2eb63c-0xbd,_0x5cf7bd,_0x53d23d-0x1d9,_0x5cf7bd-0x113);}function _0x14bca9(_0x1110ff,_0xcf048a,_0xba7b47,_0x40b298){return _0x22ef16(_0xcf048a,_0x1110ff-0x2d2,_0xba7b47-0x1f2,_0x40b298-_0x545f61._0x5e1ec1);}return _0x3b713b[_0x14bca9(_0x124842._0x3349a6,0x321,_0x124842._0x4ed28d,0x485)](0x0)===0xfeff?_0x3b713b[_0x4c90f8(_0x124842._0x595493,_0x124842._0x3a8eb9,0x220,_0x124842._0x45275d)](0x1):_0x3b713b;}function clampLine(_0x33af32,_0x37334c){const _0x3ae8a3={_0x46c360:0x6d},_0x45ac14={_0x4a2c68:0x13e,_0xadca33:0x1c2};function _0x19952f(_0x544c99,_0x4ee7de,_0x53f851,_0x52abed){return _0x324926(_0x4ee7de- -0x20,_0x544c99,_0x53f851-_0x45ac14._0x4a2c68,_0x52abed-_0x45ac14._0xadca33);}if(!Number['isFinite'](_0x33af32))return 0x1;return Math['max'](0x1,Math[_0x19952f(-_0x3ae8a3._0x46c360,-0x9d,-0x147,-0x187)](Math['trunc'](_0x33af32),_0x37334c));}function createFileReadTool(_0x531390={}){const _0x5904ff={_0x570567:0x367,_0x571d48:0x345,_0x558a52:0x1b4,_0x4a0fb3:0x520,_0x360090:0x47a,_0x14d672:0x2e9,_0x34e514:0x3bb,_0x43776d:0x32d,_0x47ec27:0x40a,_0x2136f2:0x410,_0x140d04:0x1a6,_0x218e6b:0x396,_0x5704fc:0x37d,_0x38470c:0x384,_0x18b38a:0x32b,_0x4025c3:0x3ef,_0x7abdc8:0x2ef,_0x4c047d:0x39a,_0x3039e8:0x461,_0x3a7242:0x3cb},_0xd40044={_0x354d25:0x58,_0x178acf:0x80,_0xba6511:0x2,_0x12254d:0x9d,_0xaf6bd3:0xb4,_0x365fc4:0xd2,_0x5f0ffd:0x1b1,_0x3ae10d:0x20b,_0x394fea:0xff,_0x24664d:0x88,_0xf53e04:0x7,_0x5e2e7d:0x56,_0x10eca8:0xe3,_0x1aae9a:0x114,_0x3d7a91:0x7d,_0x5a2052:0x37,_0x1049c2:0xd1,_0x280c49:0x22,_0x428b1c:0x97,_0x1d2c15:0x5,_0x104c2b:0xb9,_0xb181f3:0x16e,_0x2b0e71:0x163,_0x54d790:0x157,_0xae1083:0x1c5,_0x5211d9:0xd4,_0x4ef722:0x305,_0x2faf44:0x20a,_0x542a90:0x1b9,_0x1190f4:0x13b,_0x264a24:0xcb,_0x5bd372:0x1,_0x35fbf8:0x123,_0x54f667:0x119,_0x24d1a4:0x200},_0xdf9386={_0x2b8d75:0x53c,_0x247d3d:0x164},_0x4529c9={_0xf0fb39:0xf7,_0x1da7e4:0x27};function _0x184e61(_0xf07a2f,_0x29bfdb,_0x371a16,_0x317efb){return _0x22ef16(_0x317efb,_0xf07a2f-_0x4529c9._0xf0fb39,_0x371a16-0xde,_0x317efb-_0x4529c9._0x1da7e4);}function _0x3f3d72(_0x5b6c24,_0x2c3e99,_0x4aba3a,_0x5b8f46){return _0x22ef16(_0x4aba3a,_0x5b6c24-0x1f0,_0x4aba3a-0x33,_0x5b8f46-0xd9);}const _0x358fcf=_0x30f525[_0x184e61(0x2c8,_0x5904ff._0x570567,_0x5904ff._0x571d48,_0x5904ff._0x558a52)](_0x531390[_0x3f3d72(0x450,_0x5904ff._0x4a0fb3,0x396,_0x5904ff._0x360090)]??process[_0x184e61(0x1f0,0x29f,_0x5904ff._0x14d672,0x1a2)]()),_0x52bab1=(_0x531390['allowedDirs']??[])[_0x184e61(_0x5904ff._0x34e514,_0x5904ff._0x43776d,_0x5904ff._0x47ec27,_0x5904ff._0x2136f2)](_0x554b3e=>_0x30f525[_0x184e61(0x2c8,0x332,0x1cc,0x382)](_0x554b3e)),_0x8cc00d=_0x531390[_0x184e61(0x26e,_0x5904ff._0x140d04,0x29c,_0x5904ff._0x218e6b)]??'FileRead';return defineTool({'name':_0x8cc00d,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd)','inputSchema':{'type':_0x184e61(_0x5904ff._0x5704fc,0x337,0x363,0x394),'properties':{'path':{'type':_0x184e61(_0x5904ff._0x38470c,0x3d9,0x363,_0x5904ff._0x18b38a)},'lineStart':{'type':_0x3f3d72(_0x5904ff._0x4025c3,_0x5904ff._0x7abdc8,_0x5904ff._0x4c047d,_0x5904ff._0x3039e8)},'lineEnd':{'type':_0x184e61(0x2f6,0x211,0x391,0x3cf)}},'required':[_0x3f3d72(0x4c1,0x3fd,0x3f1,_0x5904ff._0x3a7242)]},async *'execute'(_0x2aa329){const _0xd9b2bc={_0x224f61:0x40d},_0x41f088=resolveAllowedPath(_0x358fcf,_0x52bab1,_0x2aa329[_0x5ccdbc(0x16,-0x16b,-0x3b,-0x7b)]);function _0x4e0c2b(_0x492c2b,_0x1821a7,_0x587781,_0x34fab2){return _0x3f3d72(_0x34fab2- -_0xd9b2bc._0x224f61,_0x1821a7-0x4d,_0x587781,_0x34fab2-0x10d);}await assertWorkspaceFile(_0x41f088);const _0x186464=await _0x4b6eee(_0x41f088),_0x3b863b=await _0x2234ca(_0x41f088);if(isProbablyBinary(_0x3b863b))throw new ToolExecutionError(_0x5ccdbc(-0x43,-_0xd40044._0x354d25,-0x30,-_0xd40044._0x178acf)+_0x2aa329[_0x5ccdbc(-0xbd,_0xd40044._0xba6511,-0x188,-0x7b)],{'path':_0x2aa329['path']});let _0x3472e2=_0x3b863b[_0x5ccdbc(-_0xd40044._0x12254d,-0x247,-0x25b,-0x1cc)](_0x4e0c2b(-_0xd40044._0xaf6bd3,-0xc1,_0xd40044._0x365fc4,-0x4e));const _0x29f92e=_0x3472e2[_0x4e0c2b(-0x33,-_0xd40044._0x5f0ffd,-_0xd40044._0x3ae10d,-_0xd40044._0x394fea)](0x0)===0xfeff;_0x3472e2=stripUtfBom(_0x3472e2);function _0x5ccdbc(_0x388216,_0x3155ae,_0x512a9e,_0x56feda){return _0x3f3d72(_0x56feda- -_0xdf9386._0x2b8d75,_0x3155ae-0x187,_0x3155ae,_0x56feda-_0xdf9386._0x247d3d);}const _0x5308d9=_0x3472e2[_0x4e0c2b(0xfc,0xf8,-_0xd40044._0x24664d,-_0xd40044._0xf53e04)](/\r?\n/),_0x53a787={'path':_0x2aa329[_0x5ccdbc(-_0xd40044._0x5e2e7d,-0xd6,0x5,-0x7b)],'resolvedPath':_0x41f088,'created':_0x186464[_0x4e0c2b(_0xd40044._0x10eca8,-_0xd40044._0x1aae9a,-_0xd40044._0x3d7a91,-_0xd40044._0x5a2052)][_0x4e0c2b(_0xd40044._0x1049c2,-_0xd40044._0x280c49,0x19b,_0xd40044._0x428b1c)](),'modified':_0x186464[_0x4e0c2b(0x87,-_0xd40044._0x1d2c15,-_0xd40044._0x104c2b,-0x74)][_0x5ccdbc(0x33,-0x44,-0x115,-0x98)](),'size':_0x186464[_0x5ccdbc(-_0xd40044._0xb181f3,-0xd2,-0x130,-_0xd40044._0x2b0e71)],'encoding':_0x5ccdbc(-_0xd40044._0x54d790,-_0xd40044._0xae1083,-_0xd40044._0x5211d9,-0x17d),'bomStripped':_0x29f92e,'truncated':![],'totalLines':_0x5308d9['length']};if(_0x2aa329[_0x5ccdbc(-0x297,-_0xd40044._0x4ef722,-0x32c,-_0xd40044._0x2faf44)]!==void 0x0||_0x2aa329['lineEnd']!==void 0x0){const _0x739fa1=clampLine(_0x2aa329['lineStart']??0x1,_0x5308d9[_0x4e0c2b(-0x125,0x10d,0x3c,-0x13)]),_0x4c614f=clampLine(_0x2aa329[_0x5ccdbc(-_0xd40044._0x542a90,-0x20,-0x194,-0x108)]??_0x5308d9['length'],_0x5308d9['length']),_0x49d26c=Math[_0x4e0c2b(-_0xd40044._0x1190f4,0x9,-0xee,-0x9c)](_0x739fa1,_0x4c614f),_0x2f1cb7=Math[_0x4e0c2b(-0x72,0x21,-_0xd40044._0x1aae9a,-0x22)](_0x739fa1,_0x4c614f),_0x10abc5=_0x5308d9[_0x4e0c2b(_0xd40044._0x264a24,0xe1,_0xd40044._0x5bd372,0xd6)](_0x49d26c-0x1,_0x2f1cb7)[_0x4e0c2b(0xe,_0xd40044._0x35fbf8,_0xd40044._0x54f667,0xa7)]((_0xa414f3,_0xa5b7c2)=>_0x49d26c+_0xa5b7c2+'|'+_0xa414f3)[_0x5ccdbc(-0x156,-0x1da,-0x155,-_0xd40044._0x24d1a4)]('\x0a');return yield createToolOutput(_0x10abc5,{..._0x53a787,'lineRange':{'lineStart':_0x49d26c,'lineEnd':_0x2f1cb7,'linesTotal':_0x5308d9['length']}}),void 0x0;}return yield createToolOutput(_0x3472e2,_0x53a787),void 0x0;}});}import{stat as _0x157cfe}from'fs/promises';import*as _0x1c059e from'path';import{execSync,spawn as _0x2ebcf7}from'child_process';import{existsSync}from'fs';import{stat as _0xf2daf8}from'fs/promises';import*as _0x7ed184 from'os';import*as _0x15c15a from'path';import{rgPath as _0x2df2da}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x89a6a2={_0x1c46f5:0x89,_0x2900fe:0x108,_0x1d7740:0x548,_0x152009:0x237,_0x2bcc3b:0x2db,_0xfb30b4:0x21e,_0x5f3797:0x54a,_0x463a75:0x450,_0xdc0935:0x284,_0x51881e:0x386,_0x3c43f5:0x88,_0x491f51:0x336,_0x3c8cc2:0x27c,_0x1979f2:0x316,_0x1aa210:0x3ac,_0x5392a8:0x5ef,_0x1a8d9d:0x522,_0x3068c9:0x24e,_0x372620:0x1f3,_0x1113a8:0x2b8,_0x4c133f:0x537,_0x576f38:0x515,_0x12d3a3:0x34,_0x5ad97e:0xac,_0x4b4834:0x413,_0x220302:0x527,_0x237747:0x149,_0x3da3c6:0x139,_0x1fabf0:0x25d,_0x566108:0x36b,_0x316aa2:0x480,_0x227ee7:0x4de,_0x518d0e:0x3f1,_0x485b9d:0x590,_0x1e2bd6:0x5a9,_0x4cd902:0x554,_0x3f5179:0x3cd,_0xefb649:0x63e,_0x14d16d:0x460},_0x5c1f06={_0xa582a3:0x0},_0x3e45b3={_0x487626:0x206,_0x372c41:0x111},_0x4e3a4b=_0x7ed184['platform']()===_0xf7016a(-_0x89a6a2._0x1c46f5,-0x28,-_0x89a6a2._0x2900fe,-0xb4),_0x1176a0=_0x4e3a4b?[_0x15c15a['join'](process[_0x1ff0b0(0x537,0x629,0x4c9,_0x89a6a2._0x1d7740)][_0xf7016a(-_0x89a6a2._0x152009,-0x36c,-_0x89a6a2._0x2bcc3b,-_0x89a6a2._0xfb30b4)]||'','Microsoft','WinGet',_0x1ff0b0(_0x89a6a2._0x5f3797,0x489,_0x89a6a2._0x463a75,0x5df)),_0x15c15a[_0xf7016a(-_0x89a6a2._0xdc0935,-_0x89a6a2._0x51881e,-0x2b8,-0x31d)](process['env'][_0xf7016a(-0xbe,-0xf6,-0x198,-_0x89a6a2._0x3c43f5)]||'',_0xf7016a(-_0x89a6a2._0x491f51,-_0x89a6a2._0x3c8cc2,-_0x89a6a2._0x1979f2,-_0x89a6a2._0x1aa210),_0x1ff0b0(0x5dc,_0x89a6a2._0x5392a8,0x50b,_0x89a6a2._0x1a8d9d)),_0x15c15a[_0xf7016a(-_0x89a6a2._0x3068c9,-_0x89a6a2._0x372620,-_0x89a6a2._0x1113a8,-0x201)](process[_0x1ff0b0(_0x89a6a2._0x4c133f,_0x89a6a2._0x576f38,0x64e,0x4bb)][_0xf7016a(-0x129,-_0x89a6a2._0x12d3a3,-0x157,-_0x89a6a2._0x5ad97e)]||'',_0x1ff0b0(_0x89a6a2._0x4b4834,0x369,0x311,_0x89a6a2._0x220302),_0xf7016a(-_0x89a6a2._0x237747,-_0x89a6a2._0x3da3c6,-0x14d,-_0x89a6a2._0x1fabf0))]:['/opt/homebrew/bin/rg',_0x1ff0b0(0x474,0x488,0x470,_0x89a6a2._0x566108),'/usr/bin/rg','/bin/rg'];for(const _0x44d8c9 of _0x1176a0){if(existsSync(_0x44d8c9))return _0x44d8c9;}function _0xf7016a(_0x46a087,_0xb102f6,_0x50e352,_0x5419e0){return _0x324926(_0x50e352- -_0x3e45b3._0x487626,_0xb102f6,_0x50e352-_0x3e45b3._0x372c41,_0x5419e0-0x12e);}function _0x1ff0b0(_0x1e0ab8,_0x2aa49c,_0x45c81e,_0x505ef7){return _0x22ef16(_0x45c81e,_0x1e0ab8-0x325,_0x45c81e-_0x5c1f06._0xa582a3,_0x505ef7-0xa6);}try{const _0x19fb87=_0x4e3a4b?_0xf7016a(-0x20c,-0x28b,-0x2ae,-0x2aa):_0x1ff0b0(_0x89a6a2._0x316aa2,0x421,0x383,0x4a2),_0x4ffb66=execSync(_0x19fb87,{'encoding':_0x1ff0b0(0x4f4,0x423,0x56c,0x4eb),'stdio':[_0x1ff0b0(_0x89a6a2._0x227ee7,_0x89a6a2._0x518d0e,0x533,0x559),_0x1ff0b0(0x4de,_0x89a6a2._0x485b9d,_0x89a6a2._0x1e2bd6,_0x89a6a2._0x4cd902),_0x1ff0b0(0x4c1,0x485,_0x89a6a2._0x3f5179,0x393)]})['trim']()[_0x1ff0b0(0x53b,_0x89a6a2._0xefb649,_0x89a6a2._0x14d16d,0x551)](/\r?\n/)[0x0];if(_0x4ffb66&&existsSync(_0x4ffb66))return _0x4ffb66;}catch{return null;}return null;}async function filepath(){const _0x902310={_0x394b09:0x3d4,_0x37c8e6:0x310},_0x3d64fb={_0x56740e:0x3f2,_0x697a44:0xe9,_0xe2cb8b:0x18};if(cachedRgPath)return cachedRgPath;if(_0x2df2da&&existsSync(_0x2df2da))return cachedRgPath=_0x2df2da,_0x2df2da;const _0x158f67=findSystemRipgrep();if(!_0x158f67)throw new Error(_0x1a3ed3(-_0x902310._0x394b09,-_0x902310._0x37c8e6,-0x312,-0x2f4));cachedRgPath=_0x158f67;function _0x1a3ed3(_0x4de105,_0x188fd8,_0x35acb0,_0x4bac63){return _0x22ef16(_0x35acb0,_0x4bac63- -_0x3d64fb._0x56740e,_0x35acb0-_0x3d64fb._0x697a44,_0x4bac63-_0x3d64fb._0xe2cb8b);}return _0x158f67;}async function*files(_0x50eb13){const _0x12d504={_0x21d4da:0x309,_0x3e4add:0x3f2,_0x1954c3:0x53a,_0x595adb:0x437,_0x2dd856:0x592,_0xf300b7:0x51a,_0x49f34e:0x487,_0x1b275c:0x2c8,_0x5f374f:0x3e6,_0x31deed:0x373,_0x1e8e4f:0x259,_0x532174:0x41d,_0x1d72e4:0x208,_0xcffe3f:0x32f,_0x132179:0x1cd,_0x3c0018:0x9e,_0x21a0a2:0x12d,_0x2dadf0:0xa,_0x4276a6:0x489,_0xe4b094:0x612,_0x512881:0x50b,_0x162ec9:0x105,_0x588760:0xb3,_0x1687d0:0x100,_0x55de36:0x435,_0x3e97ca:0x338,_0x9759ea:0x440,_0x2675ed:0xbf,_0x82763f:0x177,_0x2a29f2:0xfa},_0x2e042d={_0x15d5fa:0x236,_0x16cb21:0x16d},_0x4970f6=await filepath(),_0x7bc028=await _0xf2daf8(_0x50eb13[_0x14632b(0x2f8,0x3da,0x36a,0x32f)])[_0x14632b(0x420,_0x12d504._0x21d4da,0x2aa,0x2fb)](()=>null);if(!_0x7bc028?.[_0x14632b(_0x12d504._0x3e4add,0x535,_0x12d504._0x1954c3,0x4da)]())throw Object[_0x14632b(0x589,_0x12d504._0x595adb,_0x12d504._0x2dd856,_0x12d504._0xf300b7)](new Error(_0x14632b(_0x12d504._0x49f34e,_0x12d504._0x1b275c,_0x12d504._0x5f374f,_0x12d504._0x31deed)+_0x50eb13[_0x14632b(_0x12d504._0x1e8e4f,_0x12d504._0x532174,_0x12d504._0x1d72e4,_0x12d504._0xcffe3f)]+'\x27'),{'code':'ENOENT'});const _0x5859e4=['--files',_0x2d5ae7(-_0x12d504._0x132179,-0x10a,-0x1ac,-_0x12d504._0x3c0018),'--hidden',_0x14632b(0x610,0x650,0x5c2,0x534)];function _0x14632b(_0x3ec8b7,_0x5f22b7,_0x196a39,_0x2510a5){return _0x22ef16(_0x3ec8b7,_0x2510a5-_0x2e042d._0x15d5fa,_0x196a39-0x1d6,_0x2510a5-_0x2e042d._0x16cb21);}for(const _0x266d02 of _0x50eb13['glob']??[]){_0x5859e4['push']('--glob='+_0x266d02);}const _0x14eefd=_0x2ebcf7(_0x4970f6,_0x5859e4,{'cwd':_0x50eb13['cwd'],'stdio':[_0x2d5ae7(-0x1b7,-_0x12d504._0x21a0a2,-_0x12d504._0x2dadf0,-0x24b),'pipe','pipe']});let _0xe32f80='';function _0x2d5ae7(_0x14001b,_0x3002c5,_0x11f521,_0x284b1c){return _0x324926(_0x3002c5- -0xcb,_0x11f521,_0x11f521-0x5e,_0x284b1c-0x1e3);}for await(const _0x15b546 of _0x14eefd[_0x14632b(0x408,_0x12d504._0x4276a6,_0x12d504._0xe4b094,_0x12d504._0x512881)]??[]){_0xe32f80+=_0x15b546['toString']();const _0x41753c=_0xe32f80[_0x2d5ae7(-_0x12d504._0x162ec9,-_0x12d504._0x588760,-_0x12d504._0x1687d0,0x28)](/\r?\n/);_0xe32f80=_0x41753c['pop']()??'';for(const _0x412da6 of _0x41753c){if(_0x412da6[_0x14632b(_0x12d504._0x55de36,0x34f,_0x12d504._0x3e97ca,_0x12d504._0x9759ea)]>0x0)yield _0x412da6;}}_0xe32f80['trim']()[_0x2d5ae7(0x19,-_0x12d504._0x2675ed,-_0x12d504._0x82763f,-_0x12d504._0x2a29f2)]>0x0&&(yield _0xe32f80['trim']());}function parseMatchLine(_0x32b07b,_0x285c2a){const _0xd4c2e6={_0x4216af:0x5f6,_0x5ddca8:0x508,_0x1d00d7:0x5b9,_0x4caeb8:0x3c7,_0x42e733:0x10f,_0x301eb2:0x15,_0x540857:0x2,_0x18ef35:0x5e,_0x519c02:0x156,_0xf89cc5:0x56e,_0x481e32:0x541,_0x5bfd2e:0x6b,_0x5e6cef:0xaf,_0x5e07b8:0x6d,_0x318bee:0x97,_0x406909:0x57d},_0x3343eb={_0x24911d:0x19d},_0x5be22d={_0x286361:0x4f0,_0x35524f:0x42};function _0x223432(_0x1253d3,_0x2ecc84,_0x5046d8,_0x455349){return _0x324926(_0x5046d8-_0x5be22d._0x286361,_0x2ecc84,_0x5046d8-_0x5be22d._0x35524f,_0x455349-0xbc);}if(!_0x32b07b||_0x32b07b==='--')return null;const _0x278400=_0x32b07b[_0x223432(_0xd4c2e6._0x4216af,0x5b9,_0xd4c2e6._0x5ddca8,0x53c)]('|');if(_0x285c2a&&_0x278400['length']>=0x4&&Number[_0x223432(_0xd4c2e6._0x1d00d7,_0xd4c2e6._0x4caeb8,0x48d,0x4f9)](Number['parseInt'](_0x278400[0x2]??'',0xa))){const _0x1520e2=Number['parseInt'](_0x278400[0x1]??'',0xa);if(!Number[_0x200838(-_0xd4c2e6._0x42e733,_0xd4c2e6._0x301eb2,-_0xd4c2e6._0x540857,0x109)](_0x1520e2)||!_0x278400[0x0])return null;return{'filePath':_0x278400[0x0],'lineNum':_0x1520e2,'lineText':_0x278400[_0x200838(0x11c,_0xd4c2e6._0x18ef35,_0xd4c2e6._0x519c02,0x2b)](0x3)[_0x223432(_0xd4c2e6._0xf89cc5,_0xd4c2e6._0x481e32,0x43e,0x334)]('|')};}if(_0x278400[_0x200838(_0xd4c2e6._0x5bfd2e,_0xd4c2e6._0x5e6cef,_0xd4c2e6._0x5e07b8,0x4a)]>=0x3){const _0xcc521d=Number['parseInt'](_0x278400[0x1]??'',0xa);if(!Number[_0x200838(-_0xd4c2e6._0x318bee,0xc1,-_0xd4c2e6._0x540857,0x42)](_0xcc521d)||!_0x278400[0x0])return null;return{'filePath':_0x278400[0x0],'lineNum':_0xcc521d,'lineText':_0x278400[_0x223432(0x4d0,_0xd4c2e6._0x406909,0x5e5,0x69f)](0x2)[_0x223432(0x556,0x524,0x43e,0x38e)]('|'),..._0x285c2a?{'isContext':!![]}:{}};}function _0x200838(_0x3d9f11,_0x51ecdc,_0x1ecc7c,_0x30884b){return _0x22ef16(_0x51ecdc,_0x1ecc7c- -_0x3343eb._0x24911d,_0x1ecc7c-0x42,_0x30884b-0x9);}return null;}async function search(_0x5cfb69){const _0x51d3a3={_0xddd2d4:0x74,_0x5d3b3d:0x235,_0x1fece0:0x17a,_0x4aa082:0xf7,_0x38d857:0x1b8,_0x33db34:0xbe,_0x593a7b:0xbd,_0x1b4278:0xc1,_0x1b7ccb:0x1db,_0x5ed6d3:0x16b,_0x53a54e:0xba,_0x57449e:0x1ba,_0x199484:0x177,_0xf043e9:0x197,_0x899e89:0x103,_0x5c2504:0x101,_0x293a74:0x109,_0x5139ff:0x116,_0x36985b:0x127,_0x56562f:0x23,_0x489ca0:0x38,_0x51d515:0x1bf,_0x5cb388:0x18b,_0x199814:0x139,_0x4bb4e2:0x5b,_0xcf2af4:0xa6,_0x583abe:0x155,_0x2aa879:0x116,_0x171c15:0x24e,_0x39dc5b:0x246,_0xe24d19:0xb,_0x54fb8e:0x72,_0x666f7:0x13,_0x29b997:0x200,_0xd9083a:0x22f,_0x243978:0xce,_0x5d2747:0x159,_0x520a2e:0x33,_0x1b39fa:0xa1,_0xfdfbe3:0x21,_0x1390db:0xfc,_0x1184b6:0x20e,_0x18be5f:0x28a,_0x572879:0x22a,_0x177a2f:0xa2,_0x25c70e:0x107,_0x5867f6:0x11b,_0x3382d3:0xb,_0xf6a9f3:0x9f},_0x24af15={_0x5aa319:0x37d,_0x48e552:0x43c,_0xbc5807:0x463,_0xef4dbb:0x3d3,_0x3405bf:0x5de,_0x1e514f:0x3a9,_0x4643b8:0x4ce,_0x21be6a:0x577,_0x483107:0x4b1,_0x354d77:0x4be,_0x4ee1bb:0x432,_0x54393c:0x3bf,_0xb8251c:0x435,_0x18962b:0x588,_0x14b362:0x627,_0x37857e:0x5a6,_0x55d173:0x6a4,_0x5a5971:0x5d3},_0x28b916={_0x573afe:0x149,_0x593140:0x91},_0xbcb1bd={_0x3683d4:0x100,_0x3ebb96:0x1c},_0x3da1ea={_0x2e15bb:0x26},_0x5dae1b={_0x389df7:0x171},_0x1f893c={_0x187406:0x131},_0x538879={_0x582511:0xaa,_0xc9a508:0x76};function _0x4f4746(_0x33ec4d,_0x14b16b,_0x538747,_0x4fd2d0){return _0x22ef16(_0x14b16b,_0x33ec4d- -_0x538879._0x582511,_0x538747-0x14,_0x4fd2d0-_0x538879._0xc9a508);}const _0x2ea706=await filepath();if(_0x5cfb69[_0x3ecbe7(_0x51d3a3._0xddd2d4,0x11b,_0x51d3a3._0x5d3b3d,_0x51d3a3._0x1fece0)]){const _0x1c0715=await _0xf2daf8(_0x5cfb69[_0x3ecbe7(_0x51d3a3._0x4aa082,0x11b,0x2a,_0x51d3a3._0x38d857)])['catch'](()=>null);if(!_0x1c0715?.['isFile']())throw Object['assign'](new Error('No\x20such\x20file:\x20\x27'+_0x5cfb69[_0x3ecbe7(_0x51d3a3._0x33db34,0x11b,_0x51d3a3._0x593a7b,0xc1)]+'\x27'),{'code':_0x4f4746(_0x51d3a3._0x1b4278,_0x51d3a3._0x1b7ccb,-0x47,_0x51d3a3._0x5ed6d3)});}else{const _0xded85a=await _0xf2daf8(_0x5cfb69['cwd'])[_0x3ecbe7(-_0x51d3a3._0x53a54e,-0xa8,-_0x51d3a3._0x57449e,0x47)](()=>null);if(!_0xded85a?.['isDirectory']())throw Object[_0x3ecbe7(0xa4,_0x51d3a3._0x199484,0xc0,_0x51d3a3._0xf043e9)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x5cfb69[_0x3ecbe7(-_0x51d3a3._0x899e89,-0x74,-0x96,-_0x51d3a3._0x5c2504)]+'\x27'),{'code':_0x3ecbe7(-_0x51d3a3._0x293a74,-0x2,-0xb3,0xa9)});}const _0x19f1d4=[_0x3ecbe7(0xf2,_0x51d3a3._0x5139ff,0x1b6,_0x51d3a3._0x36985b),'--field-match-separator=|',_0x3ecbe7(-0xbf,_0x51d3a3._0x56562f,0x113,_0x51d3a3._0x489ca0),'--regexp',_0x5cfb69[_0x4f4746(0x265,_0x51d3a3._0x51d515,_0x51d3a3._0x5cb388,_0x51d3a3._0x199814)]],_0xcc47b=typeof _0x5cfb69[_0x3ecbe7(-0xed,0xb,_0x51d3a3._0x4bb4e2,_0x51d3a3._0xcf2af4)]===_0x4f4746(_0x51d3a3._0x583abe,_0x51d3a3._0x2aa879,_0x51d3a3._0x171c15,_0x51d3a3._0x39dc5b)&&_0x5cfb69[_0x3ecbe7(-0x7a,_0x51d3a3._0xe24d19,-_0x51d3a3._0x54fb8e,_0x51d3a3._0x666f7)]>0x0;function _0x3ecbe7(_0x3ba7d9,_0x546001,_0x2ec07e,_0x3da47){return _0x324926(_0x546001-0x91,_0x3ba7d9,_0x2ec07e-_0x1f893c._0x187406,_0x3da47-0x1f2);}return _0xcc47b&&_0x19f1d4[_0x4f4746(_0x51d3a3._0x29b997,0x22e,0x2cc,_0x51d3a3._0xd9083a)]('-C',String(_0x5cfb69[_0x4f4746(_0x51d3a3._0x243978,-0x2b,-0x50,_0x51d3a3._0x5d2747)]),_0x4f4746(_0x51d3a3._0x520a2e,0xf4,0x135,-_0x51d3a3._0x1b39fa)),_0x5cfb69[_0x4f4746(_0x51d3a3._0xfdfbe3,-0x8b,0x74,-_0x51d3a3._0x1390db)]&&!_0x5cfb69[_0x4f4746(0x1de,_0x51d3a3._0x1184b6,_0x51d3a3._0x18be5f,_0x51d3a3._0x572879)]&&_0x19f1d4[_0x4f4746(0x200,0x232,0x2bd,_0x51d3a3._0x2aa879)]('--glob',_0x5cfb69[_0x3ecbe7(-_0x51d3a3._0x199814,-_0x51d3a3._0x177a2f,-0xdf,-_0x51d3a3._0x199484)]),_0x19f1d4[_0x4f4746(_0x51d3a3._0x29b997,_0x51d3a3._0x25c70e,0x185,0x19e)](_0x5cfb69[_0x3ecbe7(0xc7,_0x51d3a3._0x5867f6,_0x51d3a3._0x3382d3,_0x51d3a3._0xf6a9f3)]??_0x5cfb69['cwd']),await new Promise((_0x3342cd,_0x4e62ef)=>{const _0x2c2e7b={_0x18c4b2:0x222,_0x1b8662:0x383,_0x19ea0a:0x2ae,_0x12fda8:0x324,_0x9e97b7:0x43f,_0x4d35d7:0x41e,_0x3e0035:0x3ae,_0x9b24fc:0x392,_0x36c9de:0x38a,_0x25d621:0x384},_0x52f32b={_0x1b6ab4:0xab},_0x3a3f42={_0x123f4a:0x9f,_0x2719ad:0x3e0},_0x9fc49b=_0x2ebcf7(_0x2ea706,_0x19f1d4,{'cwd':_0x5cfb69[_0x2581e0(_0x24af15._0x5aa319,0x3d0,0x362,0x40e)],'stdio':[_0xc9c94e(0x43e,0x352,0x478,0x45f),_0x2581e0(0x5fb,_0x24af15._0x48e552,_0x24af15._0xbc5807,0x4ce),_0x2581e0(_0x24af15._0xef4dbb,_0x24af15._0x3405bf,_0x24af15._0x1e514f,_0x24af15._0x4643b8)]});function _0x2581e0(_0x1cec78,_0x8e1a29,_0x334e41,_0x1187ca){return _0x4f4746(_0x1187ca-0x3bf,_0x8e1a29,_0x334e41-_0x5dae1b._0x389df7,_0x1187ca-0x40);}let _0x50c7b7='',_0x37bacb='';function _0xc9c94e(_0x1bf653,_0x2a2fd1,_0x488d4b,_0x1eb2d3){return _0x4f4746(_0x1bf653-0x34c,_0x2a2fd1,_0x488d4b-0x187,_0x1eb2d3-_0x3da1ea._0x2e15bb);}_0x9fc49b[_0xc9c94e(_0x24af15._0x21be6a,0x502,0x5a5,0x61e)]?.['on'](_0x2581e0(_0x24af15._0x483107,_0x24af15._0x354d77,0x509,_0x24af15._0x4ee1bb),_0x4e7c31=>{const _0x152a4b={_0x3a7ae8:0x13b,_0x32f6bc:0xa};function _0x2f8af1(_0x501c55,_0x9bfa8d,_0x59c80e,_0x579cfb){return _0xc9c94e(_0x59c80e- -0x3fb,_0x501c55,_0x59c80e-_0x152a4b._0x3a7ae8,_0x579cfb-_0x152a4b._0x32f6bc);}_0x50c7b7+=_0x4e7c31[_0x2f8af1(-0xe4,-_0xbcb1bd._0x3683d4,0x27,-_0xbcb1bd._0x3ebb96)]();}),_0x9fc49b[_0xc9c94e(0x507,0x46b,0x40a,0x60f)]?.['on'](_0xc9c94e(_0x24af15._0x54393c,_0x24af15._0xb8251c,0x3a2,0x40d),_0x47519e=>{function _0x3cebde(_0x25755c,_0x12099e,_0xe3d9cd,_0x5a0e2c){return _0x2581e0(_0x25755c-0x1e6,_0x5a0e2c,_0xe3d9cd-_0x3a3f42._0x123f4a,_0xe3d9cd- -_0x3a3f42._0x2719ad);}_0x37bacb+=_0x47519e[_0x3cebde(_0x28b916._0x573afe,_0x28b916._0x593140,0xb5,0x155)]();}),_0x9fc49b['on'](_0x2581e0(_0x24af15._0x18962b,0x4d0,_0x24af15._0x14b362,0x507),_0x120e16=>{const _0xdf4443={_0x120630:0x8d};if(_0x120e16===0x1&&_0x50c7b7===''){_0x3342cd([]);return;}function _0x32e709(_0x139c20,_0x47d4a6,_0x335d28,_0x31a8f7){return _0x2581e0(_0x139c20-_0xdf4443._0x120630,_0x139c20,_0x335d28-0xca,_0x335d28- -0xf3);}if(_0x120e16!==0x0&&_0x120e16!==0x1){_0x4e62ef(new Error('ripgrep\x20failed:\x20'+_0x37bacb));return;}const _0x1985fd=_0x5cfb69[_0x43e42d(_0x2c2e7b._0x18c4b2,0x2fd,_0x2c2e7b._0x1b8662,_0x2c2e7b._0x19ea0a)]??0x64,_0x1eacb4=[];for(const _0x47fedd of _0x50c7b7[_0x32e709(_0x2c2e7b._0x12fda8,_0x2c2e7b._0x9e97b7,0x438,_0x2c2e7b._0x4d35d7)](/\r?\n/)){if(_0x1eacb4['length']>=_0x1985fd)break;const _0x581bd8=parseMatchLine(_0x47fedd,_0xcc47b);if(_0x581bd8)_0x1eacb4[_0x43e42d(_0x2c2e7b._0x3e0035,_0x2c2e7b._0x9b24fc,_0x2c2e7b._0x36c9de,_0x2c2e7b._0x25d621)](_0x581bd8);}function _0x43e42d(_0x258fd5,_0x18ad21,_0x273733,_0x22d3a0){return _0x2581e0(_0x258fd5-_0x52f32b._0x1b6ab4,_0x273733,_0x273733-0x15c,_0x22d3a0- -0x23b);}_0x3342cd(_0x1eacb4);}),_0x9fc49b['on'](_0xc9c94e(_0x24af15._0x37857e,_0x24af15._0x55d173,0x5ee,_0x24af15._0x5a5971),_0x4e62ef);});}function createGlobTool(_0x271ab5={}){const _0x48dfe6={_0x3e6a51:0x2cd,_0x2784e5:0x479,_0x3f854e:0x12b,_0x179ef9:0x196,_0x3fe2ac:0x352,_0x250134:0x35a,_0x2026c7:0x2d3,_0x46d9f6:0x439,_0x5671e8:0x351,_0x318216:0x4db,_0x23fe68:0x418,_0x595da2:0x37f,_0xdc0912:0xf5,_0x5e5faa:0x2,_0x5c4d4c:0x33d,_0x24f68d:0x4d8,_0x40ca63:0x58f,_0x23b918:0x467,_0x1ad7e2:0x4b3},_0x213b58={_0x14fdf0:0x27a,_0x4b2c20:0x291,_0x12f4ec:0x1d3,_0x2afb78:0x1c6,_0x3a5f33:0x115,_0x58156c:0x131,_0x4e09da:0x100,_0x55e39b:0x61,_0x509409:0x47,_0x192b67:0x2c3,_0x30f5fb:0x1dd,_0x356326:0x2fe,_0x4fb787:0x253,_0x220295:0x172,_0x57e9ce:0x17d,_0x549c1c:0x112,_0x2ee90d:0x217,_0x356a58:0x11a,_0x14a8b2:0x1a0,_0x269a31:0x29b,_0xb2a5af:0x17b,_0x1e2691:0x13d,_0x169f10:0xb6,_0x339295:0x2fa,_0xb6d317:0x25a,_0x1e44f3:0xac,_0x2dea51:0x1f2,_0x1e9355:0x128,_0x2670cb:0xb3,_0x748f8a:0xa9,_0x46ee75:0x7e,_0x5780c1:0x4d,_0x6c3ccf:0x194,_0x2c0bc8:0x2ec,_0x4a3df7:0x260,_0x5507eb:0x289,_0x30911a:0x188,_0x267ab6:0x23b,_0x535890:0x6d,_0x54d677:0x2a0,_0x2547e8:0x2a9,_0x28d3f7:0x1e6,_0xde0775:0xc5,_0x1f263e:0x1e8,_0x5d12e2:0x30a,_0x28bb2c:0x70,_0x385585:0x240,_0x46af68:0x2eb,_0x39b17b:0x355,_0x2004b3:0x291,_0x510c47:0x9d,_0x2ae4b8:0xb9,_0x2e2462:0x7b,_0x36243a:0x18c},_0x5e2d10={_0x51004c:0x92},_0x3870eb={_0x4be48d:0x3e},_0x570885={_0x2f009a:0x3d8,_0x2723da:0x1bd},_0x401533=_0x1c059e[_0x342a12(0x31e,_0x48dfe6._0x3e6a51,0x494,0x3ab)](_0x271ab5[_0x342a12(0x41c,0x393,_0x48dfe6._0x2784e5,0x43a)]??process[_0x114886(-0x27f,-_0x48dfe6._0x3f854e,-0x21e,-_0x48dfe6._0x179ef9)]()),_0x3db5f1=(_0x271ab5[_0x342a12(0x3a7,0x48e,_0x48dfe6._0x3fe2ac,0x3e9)]??[])['map'](_0x228ae6=>_0x1c059e[_0x342a12(0x476,0x3fc,0x4c3,0x3ab)](_0x228ae6));function _0x342a12(_0x4d0f1e,_0x69ae22,_0x345bfe,_0x939b87){return _0x324926(_0x939b87-_0x570885._0x2f009a,_0x4d0f1e,_0x345bfe-_0x570885._0x2723da,_0x939b87-0x66);}const _0x310d06=_0x271ab5[_0x342a12(_0x48dfe6._0x250134,_0x48dfe6._0x2026c7,0x47e,0x3ae)]??0x64;function _0x114886(_0x43b367,_0x4640d9,_0x47b5d3,_0x159ab7){return _0x22ef16(_0x43b367,_0x159ab7- -0x28f,_0x47b5d3-0x75,_0x159ab7-_0x3870eb._0x4be48d);}const _0x2665ad=_0x271ab5[_0x342a12(0x3a2,_0x48dfe6._0x46d9f6,0x3a2,_0x48dfe6._0x5671e8)]??_0x342a12(0x3b1,0x3a9,_0x48dfe6._0x318216,0x461);return defineTool({'name':_0x2665ad,'description':_0x342a12(_0x48dfe6._0x23fe68,0x452,0x413,_0x48dfe6._0x595da2),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x114886(_0x48dfe6._0xdc0912,0xac,-0x61,-_0x48dfe6._0x5e5faa)},'path':{'type':_0x342a12(_0x48dfe6._0x5c4d4c,_0x48dfe6._0x24f68d,_0x48dfe6._0x40ca63,_0x48dfe6._0x23b918)},'limit':{'type':'number'}},'required':[_0x342a12(0x49f,0x5fd,_0x48dfe6._0x1ad7e2,0x4e9)]},async *'execute'(_0x6e415f){const _0x29f0e8={_0x3a3f5c:0x26b};if(_0x6e415f[_0x8deca5(0x3b1,_0x213b58._0x14fdf0,0x170,_0x213b58._0x4b2c20)][_0x3cdc4a(0xae,_0x213b58._0x12f4ec,_0x213b58._0x2afb78,0x1a7)]()[_0x8deca5(0x2b7,_0x213b58._0x3a5f33,0x138,0x18c)]===0x0)throw new ToolExecutionError(_0x3cdc4a(0x18e,0x121,_0x213b58._0x58156c,_0x213b58._0x4e09da),{});const _0x3d16fd=resolveAllowedPath(_0x401533,_0x3db5f1,_0x6e415f['path']??'.'),_0x2d8506=await _0x157cfe(_0x3d16fd)[_0x8deca5(-_0x213b58._0x55e39b,0x4f,0x175,_0x213b58._0x509409)](()=>null);if(!_0x2d8506?.['isDirectory']())throw new ToolExecutionError(_0x3cdc4a(_0x213b58._0x192b67,0x24f,0x2aa,0x1c9)+(_0x6e415f[_0x8deca5(0x1f0,_0x213b58._0x30f5fb,_0x213b58._0x356326,_0x213b58._0x4fb787)]??'.'),{'path':_0x6e415f[_0x8deca5(0x172,_0x213b58._0x220295,_0x213b58._0x57e9ce,0x253)]??'.'});const _0x1fe690=_0x6e415f[_0x3cdc4a(_0x213b58._0x549c1c,0x1b0,_0x213b58._0x2ee90d,_0x213b58._0x356a58)]??_0x310d06,_0x1d9f08=Math[_0x3cdc4a(_0x213b58._0x14a8b2,0x1d7,_0x213b58._0x269a31,0x305)](0x1,Math[_0x8deca5(_0x213b58._0xb2a5af,_0x213b58._0x1e2691,_0x213b58._0x169f10,0x1b6)](_0x1fe690)),_0x49e26a=[];let _0x36b40e=![];for await(const _0x5848f6 of files({'cwd':_0x3d16fd,'glob':[_0x6e415f[_0x8deca5(_0x213b58._0x339295,_0x213b58._0xb6d317,0x196,0x291)]]})){if(_0x49e26a[_0x8deca5(0x8b,0xa3,_0x213b58._0x1e44f3,0x18c)]>=_0x1d9f08){_0x36b40e=!![];break;}const _0x4e372f=await _0x157cfe(_0x1c059e[_0x3cdc4a(_0x213b58._0x2dea51,_0x213b58._0x1e9355,_0x213b58._0x2670cb,0x1bb)](_0x3d16fd,_0x5848f6))[_0x8deca5(-_0x213b58._0x748f8a,_0x213b58._0x46ee75,-_0x213b58._0x5780c1,_0x213b58._0x509409)](()=>null);_0x49e26a[_0x8deca5(0x23a,_0x213b58._0x6c3ccf,0x108,0x22c)]({'path':_0x5848f6,'mtime':_0x4e372f?.[_0x8deca5(_0x213b58._0x2c0bc8,0x30d,_0x213b58._0x4a3df7,_0x213b58._0x5507eb)]??0x0});}_0x49e26a[_0x3cdc4a(0x115,_0x213b58._0x30911a,_0x213b58._0x267ab6,_0x213b58._0x535890)]((_0x331fa1,_0x30ba5c)=>_0x30ba5c[_0x3cdc4a(0x19c,0x185,0x19d,0x1f3)]-_0x331fa1['mtime']);function _0x3cdc4a(_0x1d3b66,_0x265473,_0x3269b8,_0x482b4d){return _0x114886(_0x1d3b66,_0x265473-0x7f,_0x3269b8-0x5e,_0x265473-_0x29f0e8._0x3a3f5c);}const _0x4ca979=_0x49e26a[_0x3cdc4a(0x355,_0x213b58._0x54d677,0x37c,0x2cb)](_0x3a36e5=>_0x3a36e5[_0x3cdc4a(0x251,0x2ad,0x32c,0x392)]);function _0x8deca5(_0xe1c3e0,_0x3177f0,_0x1e491c,_0x36567a){return _0x342a12(_0x1e491c,_0x3177f0-_0x5e2d10._0x51004c,_0x1e491c-0xef,_0x36567a- -0x258);}const _0x965af4=_0x4ca979[_0x3cdc4a(_0x213b58._0x2547e8,_0x213b58._0x28d3f7,0x205,_0x213b58._0xde0775)]===0x0?_0x3cdc4a(0x112,0x163,0x34,_0x213b58._0x1f263e)+_0x6e415f[_0x3cdc4a(0x37b,0x2eb,_0x213b58._0x5d12e2,0x3f3)]:''+_0x4ca979[_0x8deca5(0x29,0x128,_0x213b58._0x28bb2c,0xce)]('\x0a')+(_0x36b40e?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x965af4,{'pattern':_0x6e415f[_0x3cdc4a(_0x213b58._0x385585,_0x213b58._0x46af68,0x307,_0x213b58._0x39b17b)],'searchPath':_0x1c059e[_0x3cdc4a(_0x213b58._0x2004b3,0x19e,_0x213b58._0x510c47,_0x213b58._0x2ae4b8)](_0x401533,_0x3d16fd)||'.','matches':_0x4ca979,'count':_0x4ca979[_0x8deca5(0x2ab,_0x213b58._0x2e2462,0x27c,_0x213b58._0x36243a)],'truncated':_0x36b40e}),void 0x0;}});}import{stat as _0x55af11}from'fs/promises';import*as _0x4a1fb1 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x5322d1={}){const _0x2a3369={_0x352eda:0x1a1,_0x2fb703:0x20c,_0x44bb1:0x1a0,_0x12aa2f:0x32c,_0x5c13eb:0x246,_0x255547:0x2d7,_0x426db5:0x241,_0x493e44:0x23f,_0x436108:0x41b,_0x3e3667:0x313,_0x25ec44:0x3d3,_0x22e718:0x127,_0x48d081:0x1d,_0x33930e:0xaf,_0x376106:0x1c7,_0x12b2c2:0xad,_0x125792:0x26b,_0x551fab:0x1ce,_0x505446:0x2e0,_0x4cf20f:0x147,_0xa049d1:0x1a9,_0x26f307:0x4c0,_0x3befcf:0x44a,_0x4e05b6:0x581,_0xa114a3:0x511,_0xee5ae7:0x1ea,_0x256193:0x4f9,_0x4122cc:0x250,_0x369f0c:0x2c9},_0x39dcde={_0x29e972:0x500,_0x59986d:0x5ab,_0x38f8a7:0x57c,_0x227232:0x475,_0x149d8a:0x4cf,_0x5f575f:0x48f,_0x1a75fc:0x1a7,_0x4b4ee5:0x138,_0x4abab4:0x565,_0x581512:0x6d5,_0x18f0fa:0x382,_0x4f4d58:0x49c,_0x383b86:0x371,_0x3f0891:0x2fb,_0x4d7ae3:0x677,_0x421f98:0x440,_0x58c1a1:0x43f,_0x10f18d:0x4ec,_0x5502d9:0x47a,_0x54b98f:0x19f,_0x2c33f7:0x196,_0x35cf27:0x504,_0x15c5d7:0x4fc,_0x26c9b5:0x438,_0x4cd3d0:0x541,_0x5e989e:0x3cd,_0x59ece2:0x618,_0x1bdfa2:0x682,_0x26e547:0x581,_0x59d9a8:0x689,_0x1c88d2:0x35d,_0xc6de16:0x5a5,_0x1421ee:0x286,_0x4f9705:0x3c0,_0xca8374:0x3ce,_0x49c28f:0x20e,_0x54c196:0x2b6,_0x5ed5ee:0x2af,_0x28b39d:0x3c7,_0x133cc2:0x2c7,_0x13a3db:0x284,_0xa9b2f4:0x12f,_0x28258f:0x1ca,_0xa714d9:0x100,_0x1650e6:0x23b,_0x3ffd66:0x3ee,_0x30e552:0x2cb,_0x173aaf:0x1fd,_0x4b76f:0x122,_0xe719bd:0x1c1,_0x44e979:0x5c6,_0x79ee68:0x538,_0x44cfea:0x618,_0xbdcfb3:0x596,_0x2dcee4:0x53b,_0x230783:0x177,_0x3977b6:0x1f0,_0x174a1a:0x201,_0x340e16:0x2a2,_0x1138ac:0x266,_0xc0e2fd:0x1c0,_0x4ead47:0x517,_0x1f675d:0x56d,_0x48c997:0x482,_0x14ec14:0x2e6,_0x24c3cd:0x21f,_0x4a4403:0x400,_0x3e7c9b:0x4bc,_0xfaf077:0x517,_0x19c898:0x5b0,_0x48054e:0x59e,_0x43e41b:0x509,_0x2c4fa9:0x19b,_0x3aeaa0:0x210,_0x4a96a7:0x4a4,_0x126371:0x3f9,_0xa32428:0x5f4,_0x272172:0x4f2,_0x38565f:0x408,_0x1b305c:0x479,_0x371e32:0x3e3,_0x155ef8:0x376,_0xd23f95:0xa8,_0x1ff1d9:0xcd,_0x577849:0x12c,_0x517e3d:0x159,_0x45ea2e:0x1ea},_0x4f79fb={_0x220f1d:0x17a},_0x2f7385={_0x3b5736:0x13f,_0x210e11:0xdb},_0x306350={_0x5a1c25:0x1bc},_0x1d4e0f=_0x4a1fb1['resolve'](_0x5322d1[_0x3dd44b(_0x2a3369._0x352eda,_0x2a3369._0x2fb703,_0x2a3369._0x44bb1,0x179)]??process[_0x58300d(_0x2a3369._0x12aa2f,_0x2a3369._0x5c13eb,0x428,0x28d)]()),_0x2d7f75=(_0x5322d1['allowedDirs']??[])[_0x3dd44b(0x205,_0x2a3369._0x255547,_0x2a3369._0x426db5,_0x2a3369._0x493e44)](_0xbc6a60=>_0x4a1fb1[_0x58300d(0x404,0x329,0x4ce,0x3f1)](_0xbc6a60)),_0x421816=_0x5322d1[_0x58300d(0x407,_0x2a3369._0x436108,_0x2a3369._0x3e3667,_0x2a3369._0x25ec44)]??0x64;function _0x58300d(_0x5f410b,_0x570978,_0x8049c0,_0x3780ca){return _0x22ef16(_0x570978,_0x5f410b-0x233,_0x8049c0-0x1dc,_0x3780ca-_0x306350._0x5a1c25);}const _0x2090fb=_0x5322d1[_0x3dd44b(0xb8,0x149,-0x5f,_0x2a3369._0x22e718)]??'Grep';function _0x3dd44b(_0x39e548,_0x365f15,_0x13df5b,_0xcc8700){return _0x324926(_0x39e548-_0x2f7385._0x3b5736,_0x13df5b,_0x13df5b-0x1b8,_0xcc8700-_0x2f7385._0x210e11);}return defineTool({'name':_0x2090fb,'description':_0x3dd44b(_0x2a3369._0x48d081,-_0x2a3369._0x33930e,-0xe5,-0xb7),'inputSchema':{'type':_0x3dd44b(_0x2a3369._0x376106,_0x2a3369._0x12b2c2,0x273,_0x2a3369._0x125792),'properties':{'pattern':{'type':_0x3dd44b(_0x2a3369._0x551fab,_0x2a3369._0x505446,_0x2a3369._0x4cf20f,_0x2a3369._0xa049d1)},'path':{'type':_0x58300d(_0x2a3369._0x26f307,_0x2a3369._0x3befcf,_0x2a3369._0x4e05b6,_0x2a3369._0xa114a3)},'include':{'type':_0x3dd44b(0x1ce,_0x2a3369._0xee5ae7,0x18f,0x293)},'limit':{'type':'number'},'context':{'type':_0x58300d(0x432,0x3ea,0x51d,_0x2a3369._0x256193)}},'required':[_0x3dd44b(_0x2a3369._0x4122cc,0x373,_0x2a3369._0x369f0c,0x203)]},async *'execute'(_0x2f7d21){const _0x8c19b0={_0x23b783:0x3c8,_0x3794c7:0x48};if(_0x2f7d21['pattern'][_0x5454d9(_0x39dcde._0x29e972,_0x39dcde._0x59986d,0x5d8,_0x39dcde._0x38f8a7)]()[_0x5454d9(0x513,_0x39dcde._0x227232,_0x39dcde._0x149d8a,_0x39dcde._0x5f575f)]===0x0)throw new ToolExecutionError(_0x33f280(0x170,_0x39dcde._0x1a75fc,_0x39dcde._0x4b4ee5,0x7a),{});const _0x3ce8af=resolveAllowedPath(_0x1d4e0f,_0x2d7f75,_0x2f7d21[_0x5454d9(0x5da,0x4ca,_0x39dcde._0x4abab4,_0x39dcde._0x581512)]??'.'),_0x412002=await _0x55af11(_0x3ce8af)[_0x5454d9(0x3ce,_0x39dcde._0x18f0fa,_0x39dcde._0x4f4d58,_0x39dcde._0x383b86)](()=>null),_0x3d8192=_0x412002?.[_0x5454d9(0x3d3,0x43c,_0x39dcde._0x3f0891,0x482)]()??![],_0x3210fd=_0x412002?.[_0x5454d9(0x5ad,_0x39dcde._0x4d7ae3,0x550,0x4e2)]()??![];if(!_0x3d8192&&!_0x3210fd)throw new ToolExecutionError(_0x5454d9(_0x39dcde._0x421f98,_0x39dcde._0x58c1a1,_0x39dcde._0x10f18d,_0x39dcde._0x5502d9)+(_0x2f7d21['path']??'.'),{'path':_0x2f7d21['path']??'.'});const _0x5bdadf=_0x2f7d21[_0x33f280(_0x39dcde._0x54b98f,0x1f7,0x1c7,_0x39dcde._0x2c33f7)]??_0x421816,_0x252df2=Math[_0x5454d9(_0x39dcde._0x35cf27,0x4b9,0x42a,0x498)](0x1,Math[_0x5454d9(0x53d,_0x39dcde._0x15c5d7,0x465,0x652)](_0x5bdadf)),_0x35a67d=await search({'cwd':_0x3210fd?_0x3ce8af:_0x4a1fb1[_0x5454d9(_0x39dcde._0x26c9b5,_0x39dcde._0x4cd3d0,0x561,_0x39dcde._0x5e989e)](_0x3ce8af),'pattern':_0x2f7d21[_0x5454d9(_0x39dcde._0x59ece2,_0x39dcde._0x1bdfa2,_0x39dcde._0x26e547,_0x39dcde._0x59d9a8)],'glob':_0x3210fd?_0x2f7d21[_0x5454d9(0x3e3,0x4b2,0x324,_0x39dcde._0x1c88d2)]:void 0x0,'limit':_0x252df2,'file':_0x3d8192?_0x3ce8af:void 0x0,'context':_0x2f7d21['context']}),_0x3f3e38=new Map();function _0x33f280(_0x5c32b0,_0x300121,_0x54c35b,_0x3655b6){return _0x3dd44b(_0x54c35b-0xb2,_0x300121-0x11a,_0x300121,_0x3655b6-_0x4f79fb._0x220f1d);}for(const _0x35818c of _0x35a67d){if(!_0x3f3e38[_0x5454d9(0x479,0x3c4,0x4b2,_0x39dcde._0xc6de16)](_0x35818c[_0x33f280(_0x39dcde._0x1421ee,_0x39dcde._0x4f9705,0x2b6,0x3d2)])){const _0x38bb76=await _0x55af11(_0x35818c['filePath'])[_0x5454d9(_0x39dcde._0xca8374,0x3e5,_0x39dcde._0x15c5d7,0x4bb)](()=>null);_0x3f3e38[_0x33f280(0x6a,_0x39dcde._0x49c28f,0x102,0xf0)](_0x35818c['filePath'],{'matches':[],'mtime':_0x38bb76?.['mtimeMs']??0x0});}_0x3f3e38['get'](_0x35818c[_0x33f280(0x276,0x2b1,_0x39dcde._0x54c196,0x390)])?.[_0x33f280(_0x39dcde._0x5ed5ee,_0x39dcde._0x28b39d,_0x39dcde._0x133cc2,_0x39dcde._0x13a3db)]['push'](_0x35818c);}const _0x1ce4fa=[..._0x3f3e38[_0x33f280(0xbe,0x107,_0x39dcde._0xa9b2f4,0x63)]()][_0x33f280(_0x39dcde._0x28258f,_0x39dcde._0xa714d9,0x19f,0x26f)]((_0x1a0b8b,_0x30070c)=>_0x30070c[0x1][_0x5454d9(0x4b2,0x521,0x425,0x42c)]-_0x1a0b8b[0x1][_0x5454d9(0x4b2,0x567,0x5cb,0x532)]),_0x51311d=_0x35a67d[_0x33f280(_0x39dcde._0x1650e6,_0x39dcde._0x3ffd66,_0x39dcde._0x30e552,0x2f1)](_0x33f72b=>!_0x33f72b[_0x5454d9(0x526,0x5e3,0x41e,0x598)])[_0x5454d9(0x513,0x44d,0x583,0x47b)],_0x16555d=_0x35a67d[_0x33f280(0x13e,0x29d,_0x39dcde._0x173aaf,0x265)]>=_0x252df2;function _0x5454d9(_0x2080bf,_0x2f741d,_0x3802c6,_0x19d642){return _0x3dd44b(_0x2080bf-_0x8c19b0._0x23b783,_0x2f741d-0x184,_0x3802c6,_0x19d642-_0x8c19b0._0x3794c7);}const _0x4bec3c=_0x3d8192?_0x4a1fb1[_0x33f280(0x1f3,0x7f,_0x39dcde._0x4b76f,_0x39dcde._0xe719bd)](_0x3ce8af):_0x3ce8af;let _0x344fb5='';if(_0x35a67d[_0x5454d9(0x513,0x471,0x62f,_0x39dcde._0x149d8a)]===0x0)_0x344fb5=_0x5454d9(_0x39dcde._0x44e979,_0x39dcde._0x79ee68,0x631,0x4ff)+_0x2f7d21[_0x5454d9(_0x39dcde._0x44cfea,_0x39dcde._0xbdcfb3,_0x39dcde._0x2dcee4,0x70b)];else{_0x344fb5='Found\x20'+_0x51311d+'\x20match'+(_0x51311d===0x1?'':'es')+'\x0a';for(const [_0x30da4a,_0xf1d961]of _0x1ce4fa){const _0x4e5fa0=_0x3d8192?_0x4a1fb1['basename'](_0x30da4a):_0x4a1fb1[_0x33f280(_0x39dcde._0x230783,0x109,0x1b5,0xcb)](_0x4bec3c,_0x30da4a);_0x344fb5+='\x0a'+_0x4e5fa0+':\x0a';for(const _0xd96e92 of _0xf1d961[_0x33f280(0x1a4,_0x39dcde._0x3977b6,_0x39dcde._0x133cc2,0x23c)]){const _0x457521=_0xd96e92[_0x33f280(0x278,0x2f5,_0x39dcde._0x174a1a,0x24b)][_0x33f280(_0x39dcde._0x340e16,_0x39dcde._0x1138ac,_0x39dcde._0x173aaf,_0x39dcde._0xc0e2fd)]>MAX_LINE_LENGTH?_0xd96e92[_0x5454d9(_0x39dcde._0x4ead47,0x4de,_0x39dcde._0x1f675d,_0x39dcde._0x48c997)][_0x33f280(0x211,0x3ce,_0x39dcde._0x14ec14,_0x39dcde._0x24c3cd)](0x0,MAX_LINE_LENGTH)+_0x5454d9(_0x39dcde._0x4a4403,0x33a,_0x39dcde._0x3e7c9b,0x426):_0xd96e92[_0x5454d9(_0x39dcde._0xfaf077,_0x39dcde._0x19c898,_0x39dcde._0x48054e,_0x39dcde._0x43e41b)],_0x4b08f9=_0xd96e92[_0x33f280(_0x39dcde._0x2c4fa9,0xfa,_0x39dcde._0x3aeaa0,0x26b)]?'\x20\x20':'>\x20';_0x344fb5+=_0x4b08f9+_0x5454d9(0x564,_0x39dcde._0x4a96a7,0x629,0x56b)+_0xd96e92[_0x5454d9(0x4d1,_0x39dcde._0x126371,_0x39dcde._0xa32428,0x549)]+':\x20'+_0x457521+'\x0a';}}_0x16555d&&(_0x344fb5+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x5d0123={'searchPath':_0x4a1fb1['relative'](_0x1d4e0f,_0x3ce8af)||'.','pattern':_0x2f7d21['pattern'],'matchCount':_0x51311d,'fileCount':_0x3f3e38[_0x5454d9(_0x39dcde._0x272172,_0x39dcde._0x38565f,_0x39dcde._0x1b305c,0x3d6)],'truncated':_0x16555d};return _0x3210fd&&_0x2f7d21[_0x5454d9(_0x39dcde._0x371e32,0x40f,0x45f,_0x39dcde._0x155ef8)]!==void 0x0&&(_0x5d0123[_0x33f280(0x87,-0x16,0xcd,0xd8)]=_0x2f7d21[_0x33f280(_0x39dcde._0xd23f95,-0x5b,_0x39dcde._0x1ff1d9,_0x39dcde._0x577849)]),yield createToolOutput(_0x344fb5[_0x33f280(0x15e,_0x39dcde._0x517e3d,_0x39dcde._0x45ea2e,0xc2)](),_0x5d0123),void 0x0;}});}import{readdir as _0x459987,readFile as _0x10a4e3,stat as _0x537053}from'fs/promises';import*as _0x4c4afa from'path';import*as _0x272419 from'yaml';async function countTextLines(_0x42d13f){const _0x849f17={_0x5c1a37:0x1e7,_0x3ecf82:0x292,_0x8590e7:0x13e,_0x5338b4:0x140,_0x50737b:0x33,_0x20adf2:0x26e,_0xf12e46:0x395,_0x38001b:0x143,_0x3cffe7:0xde,_0x3f8744:0x6d},_0x4d52fd={_0x249b73:0x52},_0x21ed00={_0x2f87e9:0x9f,_0x56a1ed:0x21,_0x9a47f5:0x1e7},_0x35b2b6=await _0x10a4e3(_0x42d13f)[_0x5736fd(0x16c,0x164,_0x849f17._0x5c1a37,_0x849f17._0x3ecf82)](()=>null);function _0x5736fd(_0x3bf784,_0x71e3ef,_0x209c0d,_0xaaacba){return _0x22ef16(_0x3bf784,_0x71e3ef-_0x21ed00._0x2f87e9,_0x209c0d-_0x21ed00._0x56a1ed,_0xaaacba-_0x21ed00._0x9a47f5);}if(!_0x35b2b6||isProbablyBinary(_0x35b2b6))return void 0x0;function _0x45d193(_0x189bae,_0x4682cd,_0x5307ce,_0xbf32fd){return _0x22ef16(_0xbf32fd,_0x5307ce- -0x1b3,_0x5307ce-_0x4d52fd._0x249b73,_0xbf32fd-0x63);}return _0x35b2b6[_0x45d193(-_0x849f17._0x8590e7,-_0x849f17._0x5338b4,-_0x849f17._0x50737b,-0x14c)](_0x5736fd(0x234,_0x849f17._0x20adf2,_0x849f17._0xf12e46,_0x849f17._0x38001b))[_0x45d193(0x16e,_0x849f17._0x3cffe7,0x63,-_0x849f17._0x3f8744)](/\r?\n/)[_0x45d193(-0xad,-0x88,0x57,0xec)];}function createLsTool(_0x348149={}){const _0x31ebaa={_0x5d3883:0x1fe,_0x1f5015:0xd1,_0x393b93:0x126,_0x6b1f02:0x208,_0x4ed515:0x239,_0x35066d:0x3ef,_0x7e3451:0x1c7,_0x577946:0x2ef,_0x9e9ff5:0x2f7,_0x2e2800:0x38f,_0x99189d:0x1bd,_0x107660:0x2b3,_0x356b06:0x3fa,_0x5f55b3:0x2ac,_0x4cc240:0x1e2},_0x27029b={_0x25fa09:0x21,_0x5f49b8:0xc4,_0x2b283a:0x2c,_0x52e85a:0xfd,_0x3726ff:0xdc,_0x3f0947:0xef,_0x1bc3f2:0x188,_0x3520a5:0xa8,_0x4f560d:0x6b,_0x501cd7:0x28a,_0x13caca:0x266,_0x6061a1:0x38e,_0x5eb4b7:0x14f,_0x10567b:0x12e,_0x2ba50d:0x110,_0x53c7d2:0x57,_0x4be4c2:0x73,_0x53cda5:0x14a,_0x14458f:0xdb,_0x1c71d1:0x178,_0x2bd0f2:0x6,_0x49ff95:0xea,_0x4fb7d4:0x22,_0x24789c:0x31e,_0x364186:0x206,_0xdb2b37:0xdf,_0x27ce0c:0x1b4,_0x3ecc50:0xee,_0x2b6099:0x3f,_0x5c33e2:0x166,_0x2ff83d:0x49,_0x190710:0x132,_0x483df3:0x16,_0x1bf888:0x276,_0x28d86b:0x21e,_0x228b26:0x131},_0x1c0f8f={_0x4baaf2:0x325},_0x2d49f7={_0x1b8f91:0x67,_0x28b4ad:0xd1},_0x444f66={_0x3f3ea5:0x2de,_0x1b15b2:0x19d},_0x62acc6={_0xf03807:0x2e};function _0x338afb(_0x1a08d9,_0x4795c5,_0x3544c4,_0x5f3d00){return _0x22ef16(_0x5f3d00,_0x4795c5-0x2d,_0x3544c4-0x166,_0x5f3d00-_0x62acc6._0xf03807);}const _0x37fa0b=_0x4c4afa['resolve'](_0x348149[_0x338afb(0x2a3,0x28d,_0x31ebaa._0x5d3883,0x322)]??process[_0x338afb(_0x31ebaa._0x1f5015,_0x31ebaa._0x393b93,_0x31ebaa._0x6b1f02,_0x31ebaa._0x4ed515)]()),_0x16532f=(_0x348149[_0x4ef511(_0x31ebaa._0x35066d,0x29b,_0x31ebaa._0x7e3451,_0x31ebaa._0x577946)]??[])[_0x338afb(_0x31ebaa._0x9e9ff5,0x2f1,0x2e6,0x246)](_0x3e6320=>_0x4c4afa['resolve'](_0x3e6320));function _0x4ef511(_0x3bda7e,_0x531dc2,_0x4cd734,_0x1d65af){return _0x324926(_0x1d65af-_0x444f66._0x3f3ea5,_0x531dc2,_0x4cd734-0x3c,_0x1d65af-_0x444f66._0x1b15b2);}const _0x1d118e=_0x348149['name']??'Ls';return defineTool({'name':_0x1d118e,'description':_0x338afb(0x2bc,0x294,0x23a,_0x31ebaa._0x2e2800),'inputSchema':{'type':_0x338afb(_0x31ebaa._0x99189d,_0x31ebaa._0x107660,0x19d,0x331),'properties':{'path':{'type':'string'},'limit':{'type':_0x4ef511(_0x31ebaa._0x356b06,_0x31ebaa._0x5f55b3,_0x31ebaa._0x4cc240,0x2df)}}},async *'execute'(_0x4482ba){function _0x4df1ee(_0x167015,_0x4f338f,_0x5eae55,_0x1de8b2){return _0x338afb(_0x167015-_0x2d49f7._0x1b8f91,_0x4f338f- -_0x2d49f7._0x28b4ad,_0x5eae55-0x60,_0x5eae55);}const _0x12438c=_0x4482ba[_0x4df1ee(0x35c,0x22d,0x19c,0x255)]??'.',_0x470c0d=resolveAllowedPath(_0x37fa0b,_0x16532f,_0x12438c),_0x4df111=await _0x537053(_0x470c0d)[_0x4df1ee(-0x103,_0x27029b._0x25fa09,_0x27029b._0x5f49b8,-_0x27029b._0x2b283a)](()=>null);if(!_0x4df111?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x12438c,{'path':_0x12438c});const _0x4ec222=_0x4482ba['limit']??0x3e8,_0x438211=Math['min'](Math[_0x221a72(-0x19e,-0x205,-_0x27029b._0x52e85a,-_0x27029b._0x3726ff)](Math['trunc'](_0x4ec222),0x1),0x2710);function _0x221a72(_0x34a915,_0x395a32,_0x32e6a9,_0x1b72a8){return _0x338afb(_0x34a915-0x139,_0x32e6a9- -_0x1c0f8f._0x4baaf2,_0x32e6a9-0x23,_0x395a32);}const _0x42cf48=await _0x459987(_0x470c0d),_0x88b5d2=[];for(const _0x19fe06 of _0x42cf48[_0x221a72(_0x27029b._0x3f0947,0x78,-0x5,0xc5)](0x0,_0x438211)){const _0x397b78=_0x4c4afa[_0x4df1ee(_0x27029b._0x1bc3f2,_0x27029b._0x3520a5,_0x27029b._0x4f560d,0x112)](_0x470c0d,_0x19fe06),_0x1664ff=await _0x537053(_0x397b78)['catch'](()=>null);if(!_0x1664ff)continue;let _0x5ad8a2=_0x4df1ee(_0x27029b._0x501cd7,_0x27029b._0x13caca,0x158,_0x27029b._0x6061a1);if(_0x1664ff[_0x4df1ee(0x136,0x26,-0x57,_0x27029b._0x5eb4b7)]())_0x5ad8a2=_0x221a72(-_0x27029b._0x10567b,-0x20,-0x70,-0x50);else{if(_0x1664ff['isDirectory']())_0x5ad8a2=_0x4df1ee(0x12f,0x23f,0x1ee,0x253);else{if(_0x1664ff[_0x4df1ee(0x114,_0x27029b._0x2ba50d,_0x27029b._0x53c7d2,0x19f)]())_0x5ad8a2=_0x4df1ee(_0x27029b._0x4be4c2,0x66,_0x27029b._0x53cda5,_0x27029b._0x14458f);}}const _0x6af17={'name':_0x19fe06,'type':_0x5ad8a2,'size':_0x1664ff[_0x221a72(-_0x27029b._0x1c71d1,-_0x27029b._0x2bd0f2,-0x10f,-0x1c2)],'mtime':_0x1664ff[_0x221a72(_0x27029b._0x49ff95,_0x27029b._0x4fb7d4,0xf,-0xe)],'mode':_0x1664ff['mode']},_0x37b3f7=_0x5ad8a2==='file'?await countTextLines(_0x397b78):void 0x0;if(_0x37b3f7!==void 0x0)_0x6af17['lines']=_0x37b3f7;_0x88b5d2[_0x4df1ee(_0x27029b._0x24789c,_0x27029b._0x364186,_0x27029b._0xdb2b37,0x130)](_0x6af17);}_0x88b5d2[_0x221a72(-0x12b,-_0x27029b._0x27ce0c,-0x14c,-0x1f9)]((_0x5c9c56,_0x230338)=>_0x5c9c56[_0x4df1ee(-0x6,0xd3,0x12b,0x1ff)][_0x221a72(-0x214,-0x2ba,-0x198,-0x169)](_0x230338[_0x221a72(-0x1f8,-0x125,-0x181,-0x29f)]));const _0x229627={'path':_0x12438c,'total':_0x88b5d2[_0x221a72(-0x157,0x29,-_0x27029b._0x3ecc50,-0x1ac)],'truncated':_0x42cf48[_0x4df1ee(_0x27029b._0x2b6099,_0x27029b._0x5c33e2,0x167,0x246)]>_0x438211,'entries':_0x88b5d2};return yield createToolOutput(_0x272419[_0x221a72(-_0x27029b._0x2ff83d,-_0x27029b._0x190710,-0x19,-_0x27029b._0x483df3)](_0x229627,{'indent':0x2,'lineWidth':0x0})[_0x4df1ee(0x1bf,0x1fa,_0x27029b._0x1bf888,0x154)](),{'path':_0x12438c,'total':_0x88b5d2[_0x4df1ee(0x159,0x166,0x7d,0x27d)],'truncated':_0x42cf48[_0x221a72(-_0x27029b._0x28d86b,-_0x27029b._0x228b26,-_0x27029b._0x3ecc50,-0x18b)]>_0x438211,'limit':_0x438211,'entries':_0x88b5d2}),void 0x0;}});}import{stat as _0x3bd09c}from'fs/promises';import _0x27fa61 from'path';import{fileURLToPath as _0x289588}from'url';function severityName(_0x210a9e){const _0x563d4a={_0x36e71e:0x14f,_0x5a2d54:0x11d,_0x200129:0x1c2,_0x3d10f4:0x1ba,_0x406652:0x145,_0x4d362b:0x137,_0x430a0b:0x5b,_0x16a614:0x21,_0x359e7c:0x1eb,_0x60436b:0x11d},_0x196221={_0x568330:0x32},_0x4bcc7f={_0x779b1f:0x91,_0xd19483:0x15b};function _0x127293(_0x13403a,_0x1b11ca,_0x2fd46d,_0x8917bd){return _0x324926(_0x8917bd-_0x4bcc7f._0x779b1f,_0x13403a,_0x2fd46d-0xe5,_0x8917bd-_0x4bcc7f._0xd19483);}function _0x4a2c9f(_0x4fbf24,_0x19226b,_0x3ef5c9,_0x4bfcf6){return _0x324926(_0x3ef5c9- -0x6d,_0x4bfcf6,_0x3ef5c9-0x174,_0x4bfcf6-_0x196221._0x568330);}switch(_0x210a9e){case 0x1:return _0x4a2c9f(-0x11f,-_0x563d4a._0x36e71e,-_0x563d4a._0x5a2d54,-_0x563d4a._0x200129);case 0x2:return _0x127293(_0x563d4a._0x3d10f4,_0x563d4a._0x406652,0x1d5,0x1ae);case 0x3:return'Information';case 0x4:return _0x127293(_0x563d4a._0x4d362b,_0x563d4a._0x430a0b,0x35,_0x563d4a._0x16a614);default:return _0x127293(0xdc,_0x563d4a._0x359e7c,0x1ed,_0x563d4a._0x60436b);}}function formatSingleHover(_0x31b653){const _0xc30fb5={_0x4e9c6f:0x231,_0x11e3a5:0x14e,_0x392976:0x17,_0x207df0:0x126,_0x4a7a77:0x98,_0x169b64:0xd,_0x45385e:0x7,_0x5669b6:0x1f8,_0x344be2:0xb0,_0x366a51:0xe0,_0x46261c:0xb9,_0x46a2f3:0x140,_0x34765e:0x1aa,_0x4b9984:0x85,_0x85f36d:0x2e,_0x411664:0x7f,_0x5cc0a7:0x75,_0x3e40cd:0xbd,_0x14c121:0x1e7,_0x29f062:0x228},_0x25d55a={_0x174e63:0x2e},_0x498a7c={_0x3817c3:0xad,_0x40f354:0x79},_0x5abe63=_0x31b653['contents'];if(typeof _0x5abe63===_0x1bcd23(0x181,0x12d,0x21d,_0xc30fb5._0x4e9c6f))return _0x5abe63;if(Array[_0x1bcd23(-0xbb,0x6e,-0x84,_0xc30fb5._0x11e3a5)](_0x5abe63))return _0x5abe63[_0x50f412(_0xc30fb5._0x392976,_0xc30fb5._0x207df0,_0xc30fb5._0x4a7a77,-0x81)](_0x310e81=>typeof _0x310e81===_0x50f412(-0x3d,0xf,0x61,0xc2)?_0x310e81:_0x310e81[_0x1bcd23(0x19b,0x87,0xd0,-0x2a)])[_0x50f412(-_0xc30fb5._0x169b64,_0xc30fb5._0x45385e,0xac,-0x4a)](Boolean)[_0x50f412(-_0xc30fb5._0x5669b6,-_0xc30fb5._0x344be2,-_0xc30fb5._0x366a51,-0x47)]('\x0a\x0a');function _0x1bcd23(_0x28ac5b,_0x3883e2,_0x56ab0a,_0x164c42){return _0x324926(_0x3883e2-0x9e,_0x28ac5b,_0x56ab0a-_0x498a7c._0x3817c3,_0x164c42-_0x498a7c._0x40f354);}function _0x50f412(_0x5baa40,_0x391ba1,_0x4861d0,_0x5a2929){return _0x324926(_0x4861d0- -_0x25d55a._0x174e63,_0x5baa40,_0x4861d0-0x6f,_0x5a2929-0x49);}if('kind'in _0x5abe63)return _0x5abe63[_0x1bcd23(0xa2,0x87,0x139,_0xc30fb5._0x46261c)];return _0x5abe63[_0x1bcd23(0x225,0xf7,_0xc30fb5._0x46a2f3,_0xc30fb5._0x34765e)]?_0x50f412(-_0xc30fb5._0x4b9984,_0xc30fb5._0x366a51,_0xc30fb5._0x85f36d,_0xc30fb5._0x411664)+_0x5abe63[_0x50f412(-_0xc30fb5._0x5cc0a7,0x17,0x2b,_0xc30fb5._0x3e40cd)]+'\x0a'+_0x5abe63['value']+_0x50f412(-_0xc30fb5._0x14c121,-_0xc30fb5._0x29f062,-0x15f,-0x183):_0x5abe63['value'];}function formatHover(_0xac28b0){const _0x4a7969={_0x3be335:0x4a3,_0x27eedb:0x452,_0x32b775:0x518,_0x4469f9:0x444,_0x482e39:0x561,_0x152cd8:0x50c,_0x437e47:0x316,_0x46d70b:0x565,_0x4f0684:0x681},_0x359b5d={_0x2016ca:0x32,_0x15717d:0xd8},_0x346f43={_0xb4d390:0x9d};function _0x2123a1(_0x421cee,_0x480563,_0x41e692,_0x4c0ed9){return _0x324926(_0x4c0ed9-0x446,_0x480563,_0x41e692-_0x346f43._0xb4d390,_0x4c0ed9-0x118);}function _0xe022f0(_0xd939ab,_0x39e1f9,_0x5bdb0f,_0x8bef94){return _0x22ef16(_0xd939ab,_0x8bef94-0x1ca,_0x5bdb0f-_0x359b5d._0x2016ca,_0x8bef94-_0x359b5d._0x15717d);}if(_0xac28b0[_0x2123a1(_0x4a7969._0x3be335,0x32c,0x549,_0x4a7969._0x27eedb)]===0x0)return'No\x20hover\x20information';return _0xac28b0[_0x2123a1(_0x4a7969._0x32b775,_0x4a7969._0x4469f9,_0x4a7969._0x482e39,_0x4a7969._0x152cd8)](formatSingleHover)[_0xe022f0(0x1ed,0x25a,0x2a2,_0x4a7969._0x437e47)](_0x2123a1(_0x4a7969._0x46d70b,0x501,_0x4a7969._0x4f0684,0x566));}function locationPath(_0x496d12){if(!_0x496d12['startsWith']('file://'))return _0x496d12;return _0x289588(_0x496d12);}function formatLocations(_0x8e8a05){const _0x4557e2={_0x1fb702:0x85,_0x596f69:0x17d},_0x47a781={_0x1d15c1:0x53,_0x1d6bc7:0xb},_0x3c6bfe={_0x4f88f2:0x268},_0x54407={_0x4b1afd:0x31,_0x581351:0xa7};function _0x306a4c(_0x361621,_0x626582,_0x4a47c1,_0x33cfcc){return _0x22ef16(_0x361621,_0x4a47c1-_0x54407._0x4b1afd,_0x4a47c1-_0x54407._0x581351,_0x33cfcc-0xc6);}if(_0x8e8a05['length']===0x0)return'No\x20locations\x20found';return _0x8e8a05['map'](_0x1dda24=>{const _0x1fd938={_0x4c6996:0xc7};function _0x3e5aa9(_0x4797ce,_0x3461c0,_0x2e83b0,_0x4c9ad7){return _0x7ca6(_0x4797ce-_0x1fd938._0x4c6996,_0x3461c0);}const _0x3ddcce=_0x1dda24[_0x3a10c9(0x187,-0x4e,0x9f,0x58)][_0x3e5aa9(0x1d9,0x1de,0x1db,0x1fd)];function _0x3a10c9(_0x2d07d3,_0x13fb99,_0xb3af71,_0x1845b2){return _0x7ca6(_0x1845b2- -_0x3c6bfe._0x4f88f2,_0x13fb99);}return locationPath(_0x1dda24['uri'])+':'+(_0x3ddcce['line']+0x1)+':'+(_0x3ddcce[_0x3a10c9(_0x47a781._0x1d15c1,-0xb8,-_0x47a781._0x1d6bc7,-0xb2)]+0x1);})[_0x306a4c(_0x4557e2._0x1fb702,0x11d,_0x4557e2._0x596f69,0xbb)]('\x0a');}function isDocumentSymbol(_0x4214a0){return'range'in _0x4214a0&&'selectionRange'in _0x4214a0;}function formatSymbols(_0xa78908){const _0x24fe49={_0x9246aa:0xae,_0x2c4f7:0x33d,_0x4e0db0:0x251,_0x1d0bfe:0x120,_0x5a1c6c:0x144,_0x48bc45:0x16a},_0x15d8af={_0x4e9a64:0x407,_0x585690:0x3a2,_0x42819d:0x7,_0x292361:0x467,_0x50a205:0x338,_0x519c3c:0x351,_0x25d115:0x44f,_0x2c19c6:0x4c5,_0x15bf9a:0x3d7,_0x15b13c:0x579,_0x224308:0x5a5,_0x8285c2:0x2dd,_0x1ff620:0x3fd,_0x8c181c:0x4b1,_0x34e4c6:0x320,_0x1b4b9b:0x133,_0x49336f:0x61,_0x3535d3:0x429,_0x3dae54:0x42c,_0x3c91c8:0x424,_0x141bd1:0x234,_0x5caf9a:0x507,_0x527e77:0x3ec,_0x32e5da:0x1b6,_0x174007:0x280},_0x570ff5={_0x57673c:0x3d7};function _0x50ea22(_0x45ef3d,_0xbd3b71,_0x2c11ac,_0x1d1725){return _0x22ef16(_0x1d1725,_0x2c11ac-0x1e,_0x2c11ac-0xd6,_0x1d1725-0x1f2);}if(_0xa78908[_0x3c36a2(0x5e,0x6e,0x46,-_0x24fe49._0x9246aa)]===0x0)return _0x50ea22(0x2ec,0x27f,0x2c7,0x2d8);function _0x3c36a2(_0xe7ab80,_0x267cb3,_0x54422a,_0x59e7f5){return _0x324926(_0xe7ab80-0x52,_0x59e7f5,_0x54422a-0x7d,_0x59e7f5-0x5);}return _0xa78908[_0x50ea22(_0x24fe49._0x2c4f7,0x395,0x2e2,_0x24fe49._0x4e0db0)](_0x54f75c=>{const _0x37a6a6={_0x285b4d:0x36,_0x36de52:0xe2};function _0x31cc49(_0x158ae3,_0x117594,_0x14d24c,_0x416fd4){return _0x3c36a2(_0x117594-_0x570ff5._0x57673c,_0x117594-0x165,_0x14d24c-0x141,_0x416fd4);}if(isDocumentSymbol(_0x54f75c))return _0x54f75c[_0x31cc49(_0x15d8af._0x4e9a64,_0x15d8af._0x585690,0x416,0x472)]+'\x20('+_0x54f75c[_0x429e43(_0x15d8af._0x42819d,0x3b,0xd2,0x100)]+_0x31cc49(0x430,0x39d,_0x15d8af._0x292361,_0x15d8af._0x50a205)+(_0x54f75c['range'][_0x31cc49(_0x15d8af._0x519c3c,0x359,0x34e,0x2dc)][_0x31cc49(_0x15d8af._0x25d115,_0x15d8af._0x2c19c6,_0x15d8af._0x15bf9a,0x52e)]+0x1)+':'+(_0x54f75c[_0x31cc49(_0x15d8af._0x15b13c,0x507,0x51d,_0x15d8af._0x224308)]['start'][_0x31cc49(_0x15d8af._0x8285c2,_0x15d8af._0x1ff620,_0x15d8af._0x8c181c,_0x15d8af._0x34e4c6)]+0x1)+']';function _0x429e43(_0x173ac9,_0x19aca2,_0x565453,_0x26b478){return _0x3c36a2(_0x173ac9- -0x138,_0x19aca2-_0x37a6a6._0x285b4d,_0x565453-_0x37a6a6._0x36de52,_0x565453);}return _0x54f75c[_0x429e43(-0x16d,-0x118,-_0x15d8af._0x1b4b9b,-0x105)]+'\x20('+_0x54f75c[_0x429e43(0x7,0x2d,-0xc7,_0x15d8af._0x49336f)]+')\x20'+locationPath(_0x54f75c['location']['uri'])+':'+(_0x54f75c['location']['range'][_0x31cc49(0x34f,0x359,0x409,_0x15d8af._0x3535d3)][_0x31cc49(_0x15d8af._0x3dae54,0x4c5,_0x15d8af._0x3c91c8,0x5e9)]+0x1)+':'+(_0x54f75c[_0x429e43(-0x18f,-0x21c,-_0x15d8af._0x141bd1,-0x200)][_0x31cc49(0x5f3,_0x15d8af._0x5caf9a,_0x15d8af._0x527e77,0x5d1)][_0x429e43(-_0x15d8af._0x32e5da,-0x1ef,-0x1c6,-_0x15d8af._0x174007)]['character']+0x1);})[_0x50ea22(_0x24fe49._0x1d0bfe,_0x24fe49._0x5a1c6c,_0x24fe49._0x48bc45,0x240)]('\x0a');}function formatDiagnostics(_0x2cb1bf){const _0x2d5e68={_0x5bfbac:0x3bc,_0x517b1b:0x2fe,_0x2a4114:0x498,_0x49156f:0x388,_0xd38e53:0x48d,_0x1af97a:0x2fb,_0x122deb:0x31e},_0x44e99f={_0x4e0c39:0x50c,_0x4d2ff9:0x5dd,_0x494e2d:0x601,_0xf21b67:0x475,_0x53d075:0x38c,_0x330f51:0x5f3,_0x460e5c:0x5b3,_0x22028c:0x5bf,_0x2bd519:0x4be},_0x46ed31={_0x4c9489:0x1b2,_0x18cfad:0x17d,_0x41310c:0x11},_0x1efdb1={_0x528089:0x21};function _0x1ceba1(_0x2e4214,_0x126551,_0x2d476b,_0x6f26fa){return _0x324926(_0x2d476b-0x3ad,_0x2e4214,_0x2d476b-_0x1efdb1._0x528089,_0x6f26fa-0x88);}function _0x46a44(_0x193f1c,_0x33fd8d,_0x1e3ae7,_0x8ec466){return _0x22ef16(_0x1e3ae7,_0x193f1c-_0x46ed31._0x4c9489,_0x1e3ae7-_0x46ed31._0x18cfad,_0x8ec466-_0x46ed31._0x41310c);}if(_0x2cb1bf[_0x46a44(_0x2d5e68._0x5bfbac,0x366,0x3c6,_0x2d5e68._0x517b1b)]===0x0)return _0x1ceba1(0x31a,_0x2d5e68._0x2a4114,_0x2d5e68._0x49156f,_0x2d5e68._0xd38e53);return _0x2cb1bf['map'](_0x5a80e5=>{const _0x577c2a={_0x530ea5:0x4af,_0x2206fb:0x16a},_0x168d6b={_0x332ec2:0x173,_0x4fc444:0x114},_0x1e9c59=_0x5a80e5[_0x256e0a(_0x44e99f._0x4e0c39,0x6fe,_0x44e99f._0x4d2ff9,_0x44e99f._0x494e2d)][_0x4fe64e(-0xf9,-0xb5,-0x11e,-0x1d2)];function _0x256e0a(_0x2ff2d9,_0x550db8,_0xf69e03,_0x12b51f){return _0x46a44(_0x12b51f-_0x168d6b._0x332ec2,_0x550db8-0x11,_0x550db8,_0x12b51f-_0x168d6b._0x4fc444);}function _0x4fe64e(_0x11b9a6,_0x1688fc,_0xb1379c,_0x49dfcf){return _0x1ceba1(_0x1688fc,_0x1688fc-0x73,_0x49dfcf- -_0x577c2a._0x530ea5,_0x49dfcf-_0x577c2a._0x2206fb);}return severityName(_0x5a80e5[_0x256e0a(0x3a2,_0x44e99f._0xf21b67,_0x44e99f._0x53d075,0x43b)])+'\x20['+(_0x1e9c59[_0x256e0a(_0x44e99f._0x330f51,0x5c9,_0x44e99f._0x460e5c,_0x44e99f._0x22028c)]+0x1)+':'+(_0x1e9c59['character']+0x1)+']\x20'+_0x5a80e5[_0x256e0a(0x572,0x4c9,_0x44e99f._0x2bd519,0x5e6)];})[_0x1ceba1(0x2e1,0x405,_0x2d5e68._0x1af97a,_0x2d5e68._0x122deb)]('\x0a');}function formatIncomingCalls(_0x178c04){const _0x5cee9a={_0xe59ca3:0x1f4,_0x4a0bc5:0x414,_0x54acbf:0x37f,_0x43efaf:0x49f,_0x5dc8d1:0x44b,_0x1ef839:0x207},_0x33da59={_0x5af5ed:0xc0,_0x214469:0xe};if(_0x178c04[_0x5ba072(0x3ac,0x2c5,0x2a8,0x319)]===0x0)return _0x5ba072(_0x5cee9a._0xe59ca3,0x310,0x310,_0x5cee9a._0x4a0bc5);function _0x5ba072(_0xb45e51,_0x32059c,_0x4c3851,_0x150f9d){return _0x22ef16(_0x150f9d,_0x32059c-0xbb,_0x4c3851-_0x33da59._0x5af5ed,_0x150f9d-_0x33da59._0x214469);}function _0x28952b(_0x9b7ffe,_0x188347,_0x2d7c76,_0x19ed9e){return _0x324926(_0x9b7ffe-0x1b2,_0x188347,_0x2d7c76-0x4f,_0x19ed9e-0xfd);}return _0x178c04[_0x5ba072(0x2ad,_0x5cee9a._0x54acbf,_0x5cee9a._0x43efaf,_0x5cee9a._0x5dc8d1)](_0x4053a6=>_0x4053a6['from'][_0x28952b(0x12b,-0x4,0x1e,0x7c)])[_0x5ba072(0x279,_0x5cee9a._0x1ef839,0x28d,0x2c1)]('\x0a');}function formatOutgoingCalls(_0x41647e){const _0x3b5d52={_0x213ed6:0x246,_0x248eec:0x134,_0x585c27:0x21b,_0x5a6abc:0x39d,_0x587cd4:0x2ab,_0x18f367:0x3eb,_0x4a37e4:0x2e4,_0x20bd12:0x8c,_0x56d5d7:0x274},_0x264d59={_0x573dae:0x11,_0x228df5:0x188},_0xfb1f62={_0x5da4a1:0x1e5};function _0x19d47e(_0x520e71,_0x1ac943,_0x58def3,_0x1437d4){return _0x324926(_0x58def3-0x254,_0x1437d4,_0x58def3-0xe8,_0x1437d4-_0xfb1f62._0x5da4a1);}function _0x18ac93(_0xad0894,_0x56f03b,_0x101a62,_0x54afe9){return _0x22ef16(_0x56f03b,_0x101a62-_0x264d59._0x573dae,_0x101a62-_0x264d59._0x228df5,_0x54afe9-0x11c);}if(_0x41647e[_0x18ac93(_0x3b5d52._0x213ed6,_0x3b5d52._0x248eec,_0x3b5d52._0x585c27,0x2b3)]===0x0)return _0x19d47e(_0x3b5d52._0x5a6abc,0x2cf,_0x3b5d52._0x587cd4,0x3ce);return _0x41647e[_0x18ac93(_0x3b5d52._0x18f367,_0x3b5d52._0x4a37e4,0x2d5,0x375)](_0x5a3541=>_0x5a3541['to'][_0x18ac93(0x15d,0x13e,0x188,0x110)])[_0x19d47e(_0x3b5d52._0x20bd12,0x1b1,0x1a2,_0x3b5d52._0x56d5d7)]('\x0a');}function toStructured(_0x528d48){const _0x2f51ad={_0x342dce:0x471},_0xbd5f5a={_0x99e1ee:0xe4};function _0x23fc1a(_0x11df6b,_0x5a032b,_0x53d153,_0x15e85b){return _0x324926(_0x15e85b-0x4ff,_0x5a032b,_0x53d153-_0xbd5f5a._0x99e1ee,_0x15e85b-0x10f);}return JSON[_0x23fc1a(0x471,0x2eb,_0x2f51ad._0x342dce,0x411)](JSON['stringify'](_0x528d48));}async function assertFile(_0x54ff33){const _0x234cef={_0xa94aa4:0x122,_0x37834c:0xbe},_0x12c009={_0x1bfbd6:0x17d};function _0x40028e(_0x11f64d,_0x300b11,_0x55ea9e,_0x130905){return _0x324926(_0x55ea9e-0x1cb,_0x130905,_0x55ea9e-_0x12c009._0x1bfbd6,_0x130905-0xe2);}const _0x2e032f=await _0x3bd09c(_0x54ff33);if(!_0x2e032f[_0x40028e(_0x234cef._0xa94aa4,-0x30,0x97,_0x234cef._0x37834c)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x54ff33,{'path':_0x54ff33});}function validatePosition(_0x446394,_0x17cc79){const _0x1d4c33={_0x3fd913:0x397,_0x462521:0x1c4,_0x581376:0x178,_0x4bca02:0x402,_0x530cb1:0x4b0,_0x15b935:0x437},_0x2911be={_0x22dad8:0x376,_0x57e789:0x4e,_0x2fca63:0x1bd};function _0xa2449e(_0x1605fc,_0x19e37f,_0x3f8cbc,_0x2cef4a){return _0x22ef16(_0x3f8cbc,_0x2cef4a- -0x3d5,_0x3f8cbc-0xa5,_0x2cef4a-0x90);}if(!Number[_0xa2449e(-0x268,-0xe6,-0x1fc,-0x178)](_0x446394)||_0x446394<0x1)throw new ToolExecutionError(_0x4d0652(0x450,0x411,_0x1d4c33._0x3fd913,0x357),{'line':_0x446394});function _0x4d0652(_0x5de1ad,_0x17511e,_0x24fe83,_0xbf9c6b){return _0x324926(_0x24fe83-_0x2911be._0x22dad8,_0xbf9c6b,_0x24fe83-_0x2911be._0x57e789,_0xbf9c6b-_0x2911be._0x2fca63);}if(!Number[_0xa2449e(-0x6d,-0x26a,-_0x1d4c33._0x462521,-_0x1d4c33._0x581376)](_0x17cc79)||_0x17cc79<0x1)throw new ToolExecutionError(_0x4d0652(_0x1d4c33._0x4bca02,_0x1d4c33._0x530cb1,_0x1d4c33._0x15b935,0x527),{'character':_0x17cc79});}function createLspTool(_0x175e6c={}){const _0x5df9f4={_0x568cee:0x22a,_0x5d3740:0x2a9,_0x240926:0x142,_0x567e37:0x8c,_0x398784:0x71,_0x64cafc:0x57,_0x45f153:0x30d,_0xe1613c:0x271,_0x2ba560:0x133,_0x22bded:0x5,_0x3522b7:0x181,_0xf78ab9:0xe2,_0x2cf240:0x2b4,_0x33c88e:0x27b,_0x2b1654:0x103,_0x1c5abd:0x1f2,_0x34a700:0x3c4,_0x24c330:0x310,_0x3db39f:0x28d,_0x3d5b4a:0x3c1,_0x5bb55e:0x175,_0x4169ec:0x29b,_0x3f8312:0x188,_0x5a351a:0x74,_0x25b443:0xf8,_0x3f928d:0x20c,_0x346c82:0xbe,_0x4ead11:0x78,_0x5bae55:0x36,_0x157e78:0x4d,_0x4597e2:0x8a,_0x6f0118:0xe8,_0x5b9d8f:0x174,_0x14a7ac:0x7c,_0x1fc195:0x1,_0x55102e:0x19f,_0x5954a9:0x32,_0x13537e:0x28,_0x1d6e23:0x3a1,_0x53ce48:0x230,_0x5d3853:0x2d6,_0x532568:0x96,_0x16b9f5:0x115,_0xa489f1:0x6a,_0x2682ef:0x2cb,_0x5663f6:0x30c,_0x2937c9:0x408,_0x2a0fa4:0x1df,_0x319ef8:0x21b},_0x4b7009={_0x187ffb:0x1c7,_0x4616d8:0x7d,_0x48c826:0x1a0,_0x4afd9c:0x283,_0x2f5772:0x33b,_0x3220b9:0x24,_0xe1ae24:0x112,_0x373aa:0x236,_0x3cf181:0x4e0,_0x4fee70:0x4b6,_0x15cb9b:0x3b0,_0x580801:0x4fd,_0x2e60dd:0x410,_0x1c76b6:0x366,_0x507fa1:0x51,_0x33da99:0x163,_0x5e6722:0x82,_0x3c9b35:0x9e,_0x577adc:0x2,_0x1de346:0x2a3,_0x1650ad:0x2c7,_0x58a79a:0x582,_0x50c956:0x5f9,_0x5d1145:0x5fb,_0x3fed0b:0x582,_0x1b8968:0x5aa,_0x9d8653:0x121,_0x3636dc:0x90,_0x563b9e:0x559,_0x26645c:0x120,_0x4ca762:0x209,_0x958ffd:0x4e1,_0x40f158:0x511,_0x4f6d53:0x41c,_0xd75598:0x59d,_0x4d1388:0x11f,_0x1a87f1:0x4e3,_0x17bd7f:0x483,_0x11931e:0x531,_0x2924ec:0x5dd,_0x11338f:0x488,_0x31a38a:0x1d7,_0x4d481d:0x1e7,_0x2b1198:0x617,_0x10c653:0x4e7,_0x497447:0x509,_0x1ba218:0x589,_0x36a7f8:0x56a,_0x4675f6:0x67d,_0x28c514:0x234,_0x22a55c:0x55e,_0x1256f2:0x4ae,_0x6f5506:0x5ed,_0x3cb0b6:0x472,_0x48b7be:0x535,_0x9299a7:0xe2,_0x3c7256:0x1d2},_0x31750c={_0x4d8191:0x110},_0x18bb93={_0x352d24:0x17a,_0x399275:0x10a},_0x4c9c20={_0x3d9279:0x190},_0x2c812c={_0x53bded:0x7b,_0x4e7673:0x173},_0x25bf41=_0x27fa61['resolve'](_0x175e6c[_0x295fd3(_0x5df9f4._0x568cee,0x33f,0x293,_0x5df9f4._0x5d3740)]??process[_0x295fd3(0x19a,0x111,0x7b,_0x5df9f4._0x240926)]());function _0xd8978e(_0x38c9a8,_0x46e358,_0x1e14a7,_0x55c1e4){return _0x324926(_0x38c9a8-_0x2c812c._0x53bded,_0x55c1e4,_0x1e14a7-_0x2c812c._0x4e7673,_0x55c1e4-0x19a);}function _0x295fd3(_0x1897a7,_0x4661ad,_0x1ec75b,_0x551aef){return _0x22ef16(_0x4661ad,_0x551aef-0x49,_0x1ec75b-0x1a8,_0x551aef-_0x4c9c20._0x3d9279);}const _0x517afe=(_0x175e6c[_0xd8978e(_0x5df9f4._0x567e37,0x146,-_0x5df9f4._0x398784,-_0x5df9f4._0x64cafc)]??[])[_0x295fd3(0x26c,0x27c,0x415,_0x5df9f4._0x45f153)](_0x418ded=>_0x27fa61[_0x295fd3(0x2ac,0x14b,0x154,0x21a)](_0x418ded)),_0x24ce75=_0x175e6c[_0x295fd3(0xf1,0x11a,_0x5df9f4._0xe1613c,0x1c0)]??_0xd8978e(_0x5df9f4._0x2ba560,_0x5df9f4._0x22bded,_0x5df9f4._0x3522b7,_0x5df9f4._0xf78ab9);return defineTool({'name':_0x24ce75,'description':_0x295fd3(_0x5df9f4._0x2cf240,0x1bf,_0x5df9f4._0x33c88e,0x1e8),'inputSchema':{'type':_0xd8978e(_0x5df9f4._0x2b1654,0x14f,_0x5df9f4._0x1c5abd,0xbb),'properties':{'operation':{'type':_0x295fd3(_0x5df9f4._0x34a700,_0x5df9f4._0x24c330,0x244,0x2d6),'enum':[_0x295fd3(0x2d0,0x274,0x253,0x2bb),'findReferences',_0x295fd3(_0x5df9f4._0x3db39f,_0x5df9f4._0x3d5b4a,_0x5df9f4._0x5bb55e,_0x5df9f4._0x4169ec),_0xd8978e(0x128,_0x5df9f4._0x3f8312,0x66,_0x5df9f4._0x5a351a),_0xd8978e(_0x5df9f4._0x25b443,_0x5df9f4._0x3f928d,_0x5df9f4._0x346c82,-0x20),_0xd8978e(-0x5d,-_0x5df9f4._0x4ead11,0x71,_0x5df9f4._0x5bae55),_0xd8978e(-_0x5df9f4._0x157e78,-0xbd,-_0x5df9f4._0x4597e2,-0xad),_0xd8978e(_0x5df9f4._0x6f0118,0x2,_0x5df9f4._0x5b9d8f,0x15),'outgoingCalls',_0x295fd3(0x363,0x3f3,0x2e4,0x316)]},'filePath':{'type':'string'},'line':{'type':_0xd8978e(_0x5df9f4._0x14a7ac,-_0x5df9f4._0x1fc195,_0x5df9f4._0x55102e,0xe2)},'character':{'type':_0xd8978e(_0x5df9f4._0x14a7ac,-0x47,-_0x5df9f4._0x5954a9,-_0x5df9f4._0x13537e)},'query':{'type':_0x295fd3(0x37f,_0x5df9f4._0x1d6e23,_0x5df9f4._0x53ce48,_0x5df9f4._0x5d3853)}},'required':[_0x295fd3(_0x5df9f4._0x532568,_0x5df9f4._0x16b9f5,_0x5df9f4._0xa489f1,0x110),_0x295fd3(0x41f,0x32b,_0x5df9f4._0x2682ef,_0x5df9f4._0x5663f6),_0x295fd3(0x3a8,0x2c7,_0x5df9f4._0x2937c9,0x2e3),_0x295fd3(_0x5df9f4._0x2a0fa4,0x313,0x1ef,_0x5df9f4._0x319ef8)]},async *'execute'(_0x3d76bd){const _0x44dd77=_0x175e6c[_0x33306e(-_0x4b7009._0x187ffb,-_0x4b7009._0x4616d8,-_0x4b7009._0x48c826,-0x79)];if(!_0x44dd77)throw new ToolExecutionError(_0x33306e(-_0x4b7009._0x4afd9c,-0x273,-0x23b,-_0x4b7009._0x2f5772));if(!_0x44dd77[_0x33306e(0xad,-0x15d,-0x32,_0x4b7009._0x3220b9)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x293ca2=_0x3d76bd[_0x33306e(-_0x4b7009._0xe1ae24,-0x112,-_0x4b7009._0x373aa,-0x1c7)];validatePosition(_0x3d76bd['line'],_0x3d76bd[_0xdc323a(0x485,0x491,_0x4b7009._0x3cf181,0x3b3)]);if(_0x293ca2==='workspaceSymbol'){if(!_0x3d76bd['query']?.[_0xdc323a(0x529,_0x4b7009._0x4fee70,0x55a,_0x4b7009._0x15cb9b)]())throw new ToolExecutionError(_0xdc323a(_0x4b7009._0x580801,0x469,_0x4b7009._0x2e60dd,_0x4b7009._0x1c76b6));const _0x305966=await _0x44dd77[_0x33306e(_0x4b7009._0x507fa1,-_0x4b7009._0x33da99,-_0x4b7009._0x5e6722,-_0x4b7009._0x3c9b35)](_0x3d76bd['query']['trim']());return yield createToolOutput(formatSymbols(_0x305966),{'operation':_0x293ca2,'query':_0x3d76bd[_0x33306e(0x61,_0x4b7009._0x577adc,-0x15,-0xc5)],'symbols':_0x305966}),void 0x0;}function _0x33306e(_0x4b4def,_0x5686f0,_0x4bd48b,_0x34ec06){return _0xd8978e(_0x4bd48b- -_0x18bb93._0x352d24,_0x5686f0-0x29,_0x4bd48b-_0x18bb93._0x399275,_0x34ec06);}const _0x209aec=resolveAllowedPath(_0x25bf41,_0x517afe,_0x3d76bd[_0xdc323a(0x4c3,0x582,0x681,0x4ed)]);await assertFile(_0x209aec);function _0xdc323a(_0x505211,_0xb83298,_0x5ed021,_0x278b8e){return _0x295fd3(_0x505211-_0x31750c._0x4d8191,_0x5ed021,_0x5ed021-0xa1,_0xb83298-0x276);}if(!await _0x44dd77[_0xdc323a(_0x4b7009._0x1de346,0x3ca,_0x4b7009._0x1650ad,0x432)](_0x209aec))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3d76bd[_0xdc323a(0x5c4,_0x4b7009._0x58a79a,_0x4b7009._0x50c956,_0x4b7009._0x5d1145)],{'filePath':_0x3d76bd[_0xdc323a(0x66a,_0x4b7009._0x3fed0b,_0x4b7009._0x1b8968,0x654)]});await _0x44dd77[_0x33306e(-_0x4b7009._0x9d8653,-0x6d,-_0x4b7009._0x3636dc,0x13)](_0x209aec,!![]);const _0x5d5a8f={'file':_0x209aec,'line':_0x3d76bd[_0xdc323a(0x527,_0x4b7009._0x563b9e,0x5fa,0x67c)]-0x1,'character':_0x3d76bd[_0x33306e(-0x2,-_0x4b7009._0x26645c,-0x12b,-_0x4b7009._0x4ca762)]-0x1};switch(_0x293ca2){case _0xdc323a(_0x4b7009._0x958ffd,_0x4b7009._0x40f158,_0x4b7009._0x4f6d53,_0x4b7009._0xd75598):{const _0x352210=await _0x44dd77['hover'](_0x5d5a8f);return yield createToolOutput(formatHover(_0x352210),{'operation':_0x293ca2,'filePath':_0x209aec,'hover':_0x352210}),void 0x0;}case _0x33306e(-0xf4,-0x129,-0x30,-_0x4b7009._0x4d1388):{const _0x34e66f=await _0x44dd77[_0xdc323a(0x546,_0x4b7009._0x958ffd,_0x4b7009._0x1a87f1,_0x4b7009._0x17bd7f)](_0x209aec);return yield createToolOutput(formatDiagnostics(_0x34e66f),{'operation':_0x293ca2,'filePath':_0x209aec,'diagnostics':_0x34e66f}),void 0x0;}case _0xdc323a(0x487,_0x4b7009._0x11931e,0x4de,_0x4b7009._0x2924ec):{const _0x38d067=await _0x44dd77[_0xdc323a(0x576,_0x4b7009._0x11338f,0x57f,0x5a8)](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x38d067),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x38d067}),void 0x0;}case'findReferences':{const _0x1181bf=await _0x44dd77['references'](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x1181bf),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x1181bf}),void 0x0;}case _0x33306e(-0x212,-0x29a,-_0x4b7009._0x31a38a,-_0x4b7009._0x4d481d):{const _0x1ae7ab=await _0x44dd77[_0xdc323a(_0x4b7009._0x2b1198,_0x4b7009._0x10c653,_0x4b7009._0x497447,_0x4b7009._0x1ba218)](_0x5d5a8f);return yield createToolOutput(formatLocations(_0x1ae7ab),{'operation':_0x293ca2,'filePath':_0x209aec,'locations':_0x1ae7ab}),void 0x0;}case _0xdc323a(0x5a5,_0x4b7009._0x36a7f8,_0x4b7009._0x4675f6,0x578):{const _0x3f8365=await _0x44dd77[_0x33306e(-0x10a,0x2a,-0x52,-0xc8)](_0x209aec);return yield createToolOutput(formatSymbols(_0x3f8365),{'operation':_0x293ca2,'filePath':_0x209aec,'symbols':_0x3f8365}),void 0x0;}case _0x33306e(-_0x4b7009._0x28c514,-0x14c,-0x1c7,-0x17d):{const _0x204d84=await _0x44dd77['prepareCallHierarchy'](_0x5d5a8f);return yield createToolOutput(formatSymbols(_0x204d84),{'operation':_0x293ca2,'filePath':_0x209aec,'symbols':toStructured(_0x204d84)}),void 0x0;}case'incomingCalls':{const _0x519628=await _0x44dd77[_0xdc323a(_0x4b7009._0x22a55c,0x52a,_0x4b7009._0x1256f2,_0x4b7009._0x6f5506)](_0x5d5a8f);return yield createToolOutput(formatIncomingCalls(_0x519628),{'operation':_0x293ca2,'filePath':_0x209aec,'calls':toStructured(_0x519628)}),void 0x0;}case _0xdc323a(_0x4b7009._0x3cb0b6,0x483,_0x4b7009._0x48b7be,0x4d7):{const _0x4ddc28=await _0x44dd77[_0x33306e(-_0x4b7009._0x9299a7,-0x23a,-0x139,-_0x4b7009._0x3c7256)](_0x5d5a8f);return yield createToolOutput(formatOutgoingCalls(_0x4ddc28),{'operation':_0x293ca2,'filePath':_0x209aec,'calls':toStructured(_0x4ddc28)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x5e6a0e,readFile as _0x48fb55,writeFile as _0x15b151}from'fs/promises';import{join as _0x5e8cdd}from'path';function sanitizeStorageKey(_0x18beca){const _0x191186={_0x5ecc1a:0x7f,_0x66fea4:0xf6,_0x509129:0x78},_0x41dc8f={_0x23b486:0xf4,_0x18b823:0x83};function _0x205b1e(_0x4a83ef,_0x392cd2,_0x1c25e8,_0x456358){return _0x324926(_0x4a83ef-_0x41dc8f._0x23b486,_0x456358,_0x1c25e8-0x132,_0x456358-_0x41dc8f._0x18b823);}return _0x18beca[_0x205b1e(_0x191186._0x5ecc1a,_0x191186._0x66fea4,-0x34,_0x191186._0x509129)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||'server';}function storagePath(_0x5859f4){const _0x519464={_0xabf070:0x70,_0x2e0816:0x65,_0x590e8b:0x1c1,_0x1e5c23:0xc8,_0x5ce9b3:0x57,_0x26078b:0x151,_0x5802e9:0x55,_0x51a7c1:0x5e,_0x333e26:0x53,_0x3880b5:0x38},_0x26f7b9={_0x315fa0:0x224,_0x49aa44:0x8e},_0x21260a={_0x426b02:0x123,_0x39b650:0x125};function _0x310ee4(_0x3bcf18,_0x123e12,_0x34095d,_0x44e176){return _0x324926(_0x3bcf18-_0x21260a._0x426b02,_0x44e176,_0x34095d-0xe3,_0x44e176-_0x21260a._0x39b650);}const _0x1d880f=sanitizeStorageKey(_0x5859f4[_0x50c0c0(_0x519464._0xabf070,0x1c,0xb,_0x519464._0x2e0816)][_0x310ee4(_0x519464._0x590e8b,0xcc,0xce,0x2f1)]?.[_0x310ee4(0x8d,_0x519464._0x1e5c23,-_0x519464._0x5ce9b3,_0x519464._0x26078b)]??_0x5859f4[_0x50c0c0(_0x519464._0x5802e9,_0x519464._0x51a7c1,-_0x519464._0x333e26,0x11e)]);function _0x50c0c0(_0x4bb5fd,_0x53af63,_0x53c2e2,_0x55254c){return _0x22ef16(_0x53c2e2,_0x53af63- -_0x26f7b9._0x315fa0,_0x53c2e2-_0x26f7b9._0x49aa44,_0x55254c-0xdc);}return _0x5e8cdd(_0x5859f4['storageDir'],_0x1d880f+_0x50c0c0(-0xf8,0x21,0xf8,-_0x519464._0x3880b5));}async function readStore(_0x520e9e){const _0x56bcc2={_0x608480:0x2ae,_0xd5a605:0x1f0,_0x33bf01:0xb2,_0x153373:0x2b7},_0x1d488a={_0x1fff98:0x14c,_0x1ab64c:0x1b5},_0x1f0fa5={_0xd2abcd:0x8f};function _0x5ec4c9(_0x55b230,_0x20604c,_0x26c5a8,_0x2232d7){return _0x22ef16(_0x20604c,_0x26c5a8- -0x17e,_0x26c5a8-0x113,_0x2232d7-_0x1f0fa5._0xd2abcd);}function _0x22dc07(_0x4a97b8,_0x4ec765,_0x3b3151,_0x2fbfa4){return _0x22ef16(_0x4ec765,_0x3b3151-_0x1d488a._0x1fff98,_0x3b3151-_0x1d488a._0x1ab64c,_0x2fbfa4-0xd7);}try{return JSON[_0x22dc07(0x30d,_0x56bcc2._0x608480,0x25c,_0x56bcc2._0xd5a605)](await _0x48fb55(_0x520e9e,'utf8'));}catch(_0x4423e1){if(_0x4423e1 instanceof Error&&_0x5ec4c9(0xd9,0x160,0x181,_0x56bcc2._0x33bf01)in _0x4423e1&&_0x4423e1[_0x22dc07(0x4ca,0x4d3,0x44b,0x449)]===_0x22dc07(0x277,0x19e,_0x56bcc2._0x153373,0x1a2))return{};throw _0x4423e1;}}async function writeStore(_0x181e1a,_0x282d88){const _0x4d259d={_0x3b7625:0x5d3,_0x1c3c7e:0x68a,_0x4858c4:0x60a};function _0x269d1e(_0xa6dacb,_0x2fffb2,_0x363468,_0x130095){return _0x22ef16(_0x130095,_0x2fffb2-0x3ab,_0x363468-0xe8,_0x130095-0x110);}await _0x5e6a0e(_0x5e8cdd(_0x181e1a,'..'),{'recursive':!![]}),await _0x15b151(_0x181e1a,JSON[_0x269d1e(_0x4d259d._0x3b7625,_0x4d259d._0x1c3c7e,_0x4d259d._0x4858c4,0x6cd)](_0x282d88,null,0x2),'utf8');}async function updateStore(_0x1850a1,_0x5d6cbb){const _0x5ed4bd=await readStore(_0x1850a1);_0x5d6cbb(_0x5ed4bd),await writeStore(_0x1850a1,_0x5ed4bd);}function createMcpOAuthProvider(_0x4f1fda){const _0x1aa9ec={_0xcb61f8:0x11f,_0x139457:0x1b5,_0x343605:0x33,_0x5a166f:0x1cb,_0x3d188e:0x362,_0x4a0d97:0x49d,_0x4cf5e1:0x308,_0x2cc51a:0x281,_0x587643:0x15f,_0x11f60a:0x5e,_0x34faad:0x36d,_0x4fea3f:0x53c,_0x43f6d0:0x3e7,_0x3bca14:0x439,_0x3f9c85:0x55c,_0x26c88b:0xa1},_0x21d52e={_0x35eb0c:0x17c,_0x185d7a:0x112,_0x50acaa:0x1db,_0x19a6e6:0x191},_0x29c013={_0x40cafb:0xab,_0x4eecf0:0x51,_0x542ed4:0x123,_0x3e9586:0xa8,_0x19d5ee:0x77,_0x51500c:0x1de,_0x5c421b:0xa0,_0x1f78d2:0x25,_0x5af2e9:0x115,_0x40955d:0x11a,_0x3073ff:0x95,_0x42a8ef:0x195,_0x50fa97:0xb8,_0x50f08b:0x169,_0x2a9ec7:0x178,_0x5951e4:0x2a0,_0x344654:0x264,_0x2b2b51:0x2b8,_0x1f84b5:0x67,_0x437dce:0x1a6,_0x4a648d:0x81,_0x75566d:0x189},_0x3f5e32={_0x156aa8:0x2b},_0xc01c11={_0x3f0848:0x6d,_0x479a12:0xa},_0x1f4c3c={_0x32fd06:0x30d,_0x561a82:0x280},_0x5bce13={_0x3398cc:0x174,_0x8f3d0:0x7e},_0x58427e={_0x375843:0x6d9,_0x56d736:0x69e,_0x3a1016:0x65b},_0x51bd07={_0x1cdc70:0x58,_0x11bbbc:0x12},_0x1afa24={_0x41813e:0x4d,_0x4c8390:0x2c},_0xf0dd2={_0x1a859f:0x121,_0x101f94:0x97};function _0x1f36cc(_0x1d47e7,_0x42ede1,_0x5a84c8,_0x5af8f8){return _0x22ef16(_0x5af8f8,_0x5a84c8-0x21d,_0x5a84c8-0x1f3,_0x5af8f8-0x23);}const _0xc30d83=storagePath(_0x4f1fda);function _0x27cb81(_0x9998fd,_0x53b889,_0x434b8c,_0x470a08){return _0x22ef16(_0x53b889,_0x9998fd- -_0xf0dd2._0x1a859f,_0x434b8c-_0xf0dd2._0x101f94,_0x470a08-0xcf);}const _0x11b718=_0x4f1fda[_0x27cb81(_0x1aa9ec._0xcb61f8,_0x1aa9ec._0x139457,_0x1aa9ec._0x343605,_0x1aa9ec._0x5a166f)]['oauth']?.[_0x1f36cc(_0x1aa9ec._0x3d188e,_0x1aa9ec._0x4a0d97,0x3af,0x38e)]?.[_0x1f36cc(_0x1aa9ec._0x4cf5e1,0x403,0x369,_0x1aa9ec._0x2cc51a)]('\x20'),_0x1b6106={'client_name':_0x27cb81(0x74,_0x1aa9ec._0x587643,0x61,_0x1aa9ec._0x11f60a),'redirect_uris':[_0x4f1fda[_0x1f36cc(_0x1aa9ec._0x34faad,0x3af,0x3c0,0x4ec)]],'grant_types':[_0x1f36cc(_0x1aa9ec._0x4fea3f,_0x1aa9ec._0x43f6d0,_0x1aa9ec._0x3bca14,0x369),'refresh_token'],'response_types':['code'],'token_endpoint_auth_method':_0x1f36cc(0x57f,0x52f,0x48e,_0x1aa9ec._0x3f9c85),..._0x11b718?{'scope':_0x11b718}:{}};return{'clientMetadataUrl':_0x4f1fda['config'][_0x27cb81(0x17b,_0x1aa9ec._0x26c88b,0x8d,0x2a0)]?.['clientMetadataUrl'],get 'redirectUrl'(){return _0x4f1fda['callbackUrl'];},get 'clientMetadata'(){return _0x1b6106;},async 'state'(){const _0x5734a3={_0x2c4cc5:0xb6,_0x5b12a3:0x21b},_0x2ca605={_0xc902d6:0x26},_0x370389=await readStore(_0xc30d83);if(_0x370389['state'])return _0x370389['state'];const _0xbe84d5=randomUUID();return await updateStore(_0xc30d83,_0x32963a=>{function _0x2e1e80(_0xb3a050,_0x5f1f6c,_0xdb9053,_0x167f9){return _0x7ca6(_0x167f9-_0x2ca605._0xc902d6,_0x5f1f6c);}_0x32963a[_0x2e1e80(_0x5734a3._0x2c4cc5,0xf2,_0x5734a3._0x5b12a3,0x12a)]=_0xbe84d5;}),_0xbe84d5;},async 'clientInformation'(){function _0x554cce(_0x261119,_0xa0a34d,_0x24e751,_0x2a6dbf){return _0x27cb81(_0xa0a34d- -0x206,_0x261119,_0x24e751-_0x1afa24._0x41813e,_0x2a6dbf-_0x1afa24._0x4c8390);}return(await readStore(_0xc30d83))[_0x554cce(_0x51bd07._0x1cdc70,-_0x51bd07._0x11bbbc,-0x113,0xfb)];},async 'saveClientInformation'(_0x41e390){await updateStore(_0xc30d83,_0x4e41f8=>{const _0x49d804={_0x370437:0x3a5};function _0x446070(_0x4e3eea,_0x1c19a2,_0x483d2a,_0x587001){return _0x7ca6(_0x483d2a-_0x49d804._0x370437,_0x4e3eea);}_0x4e41f8[_0x446070(_0x58427e._0x375843,0x5b5,_0x58427e._0x56d736,_0x58427e._0x3a1016)]=_0x41e390;});},async 'tokens'(){function _0x2c6955(_0x13488c,_0x10385f,_0x225f98,_0x16d1cc){return _0x1f36cc(_0x13488c-0x15a,_0x10385f-_0x5bce13._0x3398cc,_0x16d1cc- -_0x5bce13._0x8f3d0,_0x13488c);}return(await readStore(_0xc30d83))[_0x2c6955(_0x1f4c3c._0x32fd06,0x22f,0x26f,_0x1f4c3c._0x561a82)];},async 'saveTokens'(_0x4484b8){const _0x2f1b5a={_0x19c2d5:0x16d},_0x9703cd={_0x4c2aeb:0x336};await updateStore(_0xc30d83,_0x19df9e=>{function _0xec0726(_0x54fd81,_0xe0981,_0x20e772,_0x3c1017){return _0x7ca6(_0xe0981- -_0x9703cd._0x4c2aeb,_0x20e772);}_0x19df9e[_0xec0726(-0x241,-0x271,-0x395,-_0x2f1b5a._0x19c2d5)]=_0x4484b8;});},async 'redirectToAuthorization'(_0x2afa2){const _0x2f1716={_0x23a7ed:0x72,_0x3344f4:0xd,_0x2f99f9:0x3fc};function _0x26f8e1(_0x4039f7,_0x489ea4,_0x43e788,_0x58bc75){return _0x1f36cc(_0x4039f7-_0x2f1716._0x23a7ed,_0x489ea4-_0x2f1716._0x3344f4,_0x58bc75- -_0x2f1716._0x2f99f9,_0x43e788);}await _0x4f1fda[_0x26f8e1(-_0xc01c11._0x3f0848,-_0xc01c11._0x479a12,0x112,0xf)](_0x2afa2);},async 'saveCodeVerifier'(_0x2b194b){const _0x1fe57d={_0x3febef:0x441,_0x17a234:0x486};await updateStore(_0xc30d83,_0x160182=>{function _0x24955e(_0x994b41,_0x50e02f,_0x1330e7,_0x3ac5e0){return _0x7ca6(_0x3ac5e0-0x1bd,_0x1330e7);}_0x160182[_0x24955e(_0x1fe57d._0x3febef,_0x1fe57d._0x17a234,0x344,0x3aa)]=_0x2b194b;});},async 'codeVerifier'(){const _0x345620={_0x404677:0x17c},_0x486885=(await readStore(_0xc30d83))['codeVerifier'];function _0x49b413(_0x203eba,_0x16c532,_0x2070b4,_0x2d812a){return _0x1f36cc(_0x203eba-_0x345620._0x404677,_0x16c532-0x2a,_0x2070b4- -0x453,_0x2d812a);}if(!_0x486885)throw new Error(_0x49b413(-0x4f,_0x3f5e32._0x156aa8,-0x87,-0x38));return _0x486885;},async 'invalidateCredentials'(_0x1fe265){await updateStore(_0xc30d83,_0x11ce6c=>{const _0x56a1c2={_0x9f3073:0x1c};(_0x1fe265===_0x6f2b4(-0x3b,-_0x29c013._0x40cafb,_0x29c013._0x4eecf0,-0x87)||_0x1fe265===_0x267d80(_0x29c013._0x542ed4,_0x29c013._0x3e9586,0x119,_0x29c013._0x19d5ee))&&(_0x11ce6c['clientInformation']=void 0x0);(_0x1fe265==='all'||_0x1fe265===_0x267d80(0x6a,_0x29c013._0x51500c,0xe1,0xbd))&&(_0x11ce6c[_0x267d80(_0x29c013._0x5c421b,-0x31,0xe1,0x134)]=void 0x0);function _0x267d80(_0x909c45,_0x3f125b,_0x28c3cf,_0x1d43a7){return _0x7ca6(_0x28c3cf-_0x56a1c2._0x9f3073,_0x1d43a7);}function _0x6f2b4(_0x3e89a8,_0x449c40,_0x591159,_0x31d651){return _0x7ca6(_0x591159- -0x27c,_0x449c40);}(_0x1fe265===_0x6f2b4(_0x29c013._0x1f78d2,0xdb,_0x29c013._0x4eecf0,-0xc8)||_0x1fe265===_0x267d80(_0x29c013._0x5af2e9,0x146,0x163,_0x29c013._0x40955d))&&(_0x11ce6c[_0x6f2b4(-_0x29c013._0x3073ff,-_0x29c013._0x42a8ef,-0x8f,-_0x29c013._0x40cafb)]=void 0x0,_0x11ce6c[_0x6f2b4(-_0x29c013._0x50fa97,-_0x29c013._0x50f08b,-_0x29c013._0x2a9ec7,-0x21d)]=void 0x0),(_0x1fe265==='all'||_0x1fe265===_0x267d80(_0x29c013._0x5951e4,0x22a,_0x29c013._0x344654,_0x29c013._0x2b2b51))&&(_0x11ce6c[_0x6f2b4(_0x29c013._0x1f84b5,_0x29c013._0x437dce,_0x29c013._0x4a648d,_0x29c013._0x75566d)]=void 0x0);});},async 'saveDiscoveryState'(_0x5186ca){const _0x3d448e={_0x3da737:0x115,_0x2a083c:0x227,_0xdda99b:0xe7};await updateStore(_0xc30d83,_0x34607e=>{const _0x9e7f84={_0x40e388:0x1e8};function _0x4a78fa(_0x40297f,_0x202d0c,_0x1f2c53,_0x18267f){return _0x7ca6(_0x40297f- -_0x9e7f84._0x40e388,_0x1f2c53);}_0x34607e[_0x4a78fa(_0x3d448e._0x3da737,_0x3d448e._0x2a083c,_0x3d448e._0xdda99b,0x7c)]=_0x5186ca;});},async 'discoveryState'(){const _0x419445={_0x41d731:0x87,_0x400da4:0x424};function _0xe0f3b5(_0x4ef518,_0x1501fb,_0x12024a,_0xee67ab){return _0x1f36cc(_0x4ef518-0x13b,_0x1501fb-_0x419445._0x41d731,_0x1501fb- -_0x419445._0x400da4,_0x4ef518);}return(await readStore(_0xc30d83))[_0xe0f3b5(_0x21d52e._0x35eb0c,_0x21d52e._0x185d7a,_0x21d52e._0x50acaa,_0x21d52e._0x19a6e6)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x1d9b54,_0x350d92){const _0x205114={_0x31fc3d:0x239};function _0x10d093(_0x23c89e,_0x4d9aa1,_0x2be036,_0x100fb5){return _0x22ef16(_0x2be036,_0x100fb5-_0x205114._0x31fc3d,_0x2be036-0xf6,_0x100fb5-0xb4);}const _0x12a4be=_0x28ae80=>_0x28ae80['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x10d093(0x3fc,0x299,0x4c5,0x3c2)](/^_+|_+$/g,'');return'mcp_'+_0x12a4be(_0x1d9b54)+'_'+_0x12a4be(_0x350d92);}function isObject(_0x164927){return typeof _0x164927==='object'&&_0x164927!==null&&!Array['isArray'](_0x164927);}function toSupportedSchema(_0x1a7c4f){const _0x16899f={_0x32cad3:0x21d,_0x4a7ea0:0x2d2,_0x3a7990:0x1ce,_0x4d8158:0x326,_0x2dc032:0x2fe,_0x18ead8:0x327,_0x110054:0x270,_0x2494d0:0x23d,_0x9c4d72:0x235,_0x262541:0x24f,_0x15a97d:0x9e,_0x804321:0x65,_0x558bf2:0x296,_0x16911b:0x133,_0xde79b5:0x2fe,_0x2f5b65:0x3d5,_0x6809b9:0x14f,_0x4b8c90:0x241,_0x5021da:0x135,_0x219c7a:0x139},_0xdb1f1={_0x4c2fac:0x136},_0x28896b={_0x1c70c9:0x26f,_0x5213b0:0xe5};if(!isObject(_0x1a7c4f))return void 0x0;if(_0x1a7c4f['type']===_0x327fd1(0x31f,_0x16899f._0x32cad3,0x2fe,_0x16899f._0x4a7ea0))return{'type':_0x327fd1(_0x16899f._0x3a7990,_0x16899f._0x4d8158,_0x16899f._0x2dc032,0x36e)};if(_0x1a7c4f['type']===_0x327fd1(_0x16899f._0x18ead8,0x260,_0x16899f._0x110054,0x253)||_0x1a7c4f[_0x5ac2f3(_0x16899f._0x2494d0,_0x16899f._0x9c4d72,0x241,_0x16899f._0x262541)]==='integer')return{'type':'number'};function _0x327fd1(_0x264672,_0x226dec,_0x18c2cf,_0x28fe9d){return _0x324926(_0x18c2cf-_0x28896b._0x1c70c9,_0x226dec,_0x18c2cf-_0x28896b._0x5213b0,_0x28fe9d-0x41);}if(_0x1a7c4f[_0x327fd1(0x2a7,0x28b,0x37a,0x438)]===_0x5ac2f3(_0x16899f._0x15a97d,0xd6,0x169,_0x16899f._0x804321))return{'type':'boolean'};if(_0x1a7c4f['type']==='array')return{'type':'array','items':toSupportedSchema(_0x1a7c4f[_0x327fd1(_0x16899f._0x558bf2,0x253,0x1a6,_0x16899f._0x16911b)])??{'type':_0x327fd1(0x412,0x2f4,_0x16899f._0xde79b5,_0x16899f._0x2f5b65)}};function _0x5ac2f3(_0xb207aa,_0x10e84e,_0x26423d,_0x23efeb){return _0x324926(_0x26423d-_0xdb1f1._0x4c2fac,_0xb207aa,_0x26423d-0x34,_0x23efeb-0x6f);}if(_0x1a7c4f[_0x5ac2f3(_0x16899f._0x6809b9,0x210,_0x16899f._0x4b8c90,0x14c)]===_0x5ac2f3(_0x16899f._0x5021da,_0x16899f._0x219c7a,0x1be,0x2d3))return toNuvinToolSchema(_0x1a7c4f);return void 0x0;}function toNuvinToolSchema(_0x51d113){const _0x26b3ea={_0x261d23:0x224,_0x439874:0x28a,_0x541dc1:0x207,_0x5dae04:0xfe,_0x56786f:0x281,_0x451966:0x291,_0x3a6997:0xa3,_0x4daf10:0xbd,_0x1e3b54:0x8f,_0x41925a:0x10d,_0x1b3091:0x1cb,_0x2a205a:0xc5,_0x8d211f:0x114,_0x49c4dc:0x4e,_0x59bb64:0xa9,_0x4dce47:0xda},_0x6267c6={_0x4afb34:0x17f,_0x3ab6cc:0x16c,_0x3c488a:0x25},_0x25e0f9={_0x12ea46:0x74,_0x16e586:0x133};if(!isObject(_0x51d113)||_0x51d113[_0x88b75b(_0x26b3ea._0x261d23,_0x26b3ea._0x439874,0x174,0x20f)]!==_0x88b75b(0xe0,_0x26b3ea._0x541dc1,0x1ce,_0x26b3ea._0x5dae04))return{'type':'object','properties':{}};function _0x47e4a7(_0x592596,_0x36bd31,_0xef69bb,_0x38c3f1){return _0x324926(_0x38c3f1- -0x15,_0x36bd31,_0xef69bb-_0x25e0f9._0x12ea46,_0x38c3f1-_0x25e0f9._0x16e586);}const _0xfe3a25={},_0x3ec528=isObject(_0x51d113[_0x88b75b(0x1df,_0x26b3ea._0x56786f,0x318,_0x26b3ea._0x451966)])?_0x51d113[_0x88b75b(0x1dd,0x281,0x220,0x258)]:{};for(const [_0x3a4f26,_0x162e91]of Object[_0x88b75b(_0x26b3ea._0x3a6997,_0x26b3ea._0x4daf10,-0x32,0x5d)](_0x3ec528)){const _0x53498f=toSupportedSchema(_0x162e91);if(_0x53498f)_0xfe3a25[_0x3a4f26]=_0x53498f;}function _0x88b75b(_0x2e6a28,_0x43ad7c,_0x4a8e6e,_0x2a4dc0){return _0x324926(_0x43ad7c-_0x6267c6._0x4afb34,_0x4a8e6e,_0x4a8e6e-_0x6267c6._0x3ab6cc,_0x2a4dc0-_0x6267c6._0x3c488a);}const _0x2231c5=Array['isArray'](_0x51d113[_0x47e4a7(-0x41,-0xc,-_0x26b3ea._0x1e3b54,-0x120)])?_0x51d113['required'][_0x47e4a7(_0x26b3ea._0x41925a,0x18b,_0x26b3ea._0x1b3091,_0x26b3ea._0x2a205a)](_0x1b70b0=>typeof _0x1b70b0==='string'):void 0x0;return _0x2231c5?.[_0x47e4a7(-_0x26b3ea._0x8d211f,-_0x26b3ea._0x49c4dc,0xa5,-0x9)]?{'type':_0x47e4a7(0x196,0x153,_0x26b3ea._0x59bb64,0x73),'properties':_0xfe3a25,'required':_0x2231c5}:{'type':_0x88b75b(0x166,0x207,0x1c2,_0x26b3ea._0x4dce47),'properties':_0xfe3a25};}function isJsonObject(_0x195a87){const _0x5ecbec={_0x5a118d:0x470,_0x328318:0x419,_0x2d808c:0x7f,_0x35c8c0:0x67},_0x564029={_0x55564a:0xac,_0x58c791:0x12},_0x3d2031={_0x2fefd3:0x198,_0x1bc494:0x1c3};function _0x223b45(_0x35a719,_0x5834e3,_0x385083,_0x5d2942){return _0x324926(_0x35a719-0x3e8,_0x5d2942,_0x385083-_0x3d2031._0x2fefd3,_0x5d2942-_0x3d2031._0x1bc494);}function _0x52a722(_0x1db7db,_0x4a9883,_0x2e74eb,_0x55b4fa){return _0x22ef16(_0x4a9883,_0x55b4fa- -0x235,_0x2e74eb-_0x564029._0x55564a,_0x55b4fa-_0x564029._0x58c791);}return typeof _0x195a87===_0x223b45(_0x5ecbec._0x5a118d,0x51f,_0x5ecbec._0x328318,0x543)&&_0x195a87!==null&&!Array[_0x52a722(0xc2,_0x5ecbec._0x2d808c,-0x12a,-_0x5ecbec._0x35c8c0)](_0x195a87);}function formatMcpContent(_0x5a26df){const _0x494575={_0x46c44f:0xdb,_0x456e0b:0x6a,_0x3a8779:0x485,_0x30bdb9:0x1d1,_0xa31fc4:0x22d,_0x322ebc:0x1d1,_0x11110b:0x59,_0x420cc8:0x76,_0x5e5f41:0x1ec,_0x52a970:0x19b},_0x5d2492={_0x235888:0xf3,_0xcf2901:0x1df},_0x42ec7a={_0x13b436:0x224,_0x33095a:0x1e1},_0x33cfd1={_0x14bbf7:0x1a1,_0x7911c2:0x94,_0x5e22b8:0x67,_0x5b63db:0xe2,_0x3803d5:0x40,_0x59ec48:0x225,_0xbcd6ac:0x238},_0x5318e5=Array[_0x530517(_0x494575._0x46c44f,0x202,0xf3,_0x494575._0x456e0b)](_0x5a26df[_0x56ec54(0x449,0x2cc,0x36c,_0x494575._0x3a8779)])?_0x5a26df['content']:[],_0x189a96=_0x5318e5[_0x530517(_0x494575._0x30bdb9,_0x494575._0xa31fc4,0x15c,_0x494575._0x322ebc)](_0x5796c5=>{const _0x292fe5={_0x1c7f46:0x11c,_0x3bf8c6:0x53c};if(!isObject(_0x5796c5))return'';function _0xe86903(_0x4b95e3,_0x3f1f0b,_0x352a85,_0x156deb){return _0x530517(_0x4b95e3-0x4c,_0x156deb,_0x352a85-0x129,_0x156deb-0x13c);}if(_0x5796c5[_0xe86903(0x262,0x1f1,_0x33cfd1._0x14bbf7,0x1eb)]===_0x2acda6(-0xd7,-_0x33cfd1._0x7911c2,-_0x33cfd1._0x5e22b8,-0xa3)&&typeof _0x5796c5[_0x2acda6(-0xd7,-0xa0,-0xd3,-_0x33cfd1._0x5b63db)]===_0x2acda6(-0x8b,0x2c,-0x193,_0x33cfd1._0x3803d5))return _0x5796c5[_0xe86903(0x19a,_0x33cfd1._0x59ec48,0x13e,0x27e)];function _0x2acda6(_0x20bcde,_0x2dcc97,_0x22b66a,_0x5c726f){return _0x56ec54(_0x20bcde-_0x292fe5._0x1c7f46,_0x2dcc97,_0x20bcde- -_0x292fe5._0x3bf8c6,_0x5c726f-0x8);}return JSON[_0xe86903(_0x33cfd1._0xbcd6ac,0x110,0x1d8,0x2d4)](_0x5796c5);})['filter'](_0x26bc00=>_0x26bc00[_0x56ec54(0x426,0x38a,0x42e,0x512)]>0x0)[_0x530517(_0x494575._0x11110b,0x135,_0x494575._0x420cc8,-0x89)]('\x0a');if(_0x189a96['length']>0x0)return _0x189a96;function _0x56ec54(_0x1bfbad,_0x3f6be3,_0x5a6654,_0x316ea2){return _0x22ef16(_0x3f6be3,_0x5a6654-_0x42ec7a._0x13b436,_0x5a6654-0x17e,_0x316ea2-_0x42ec7a._0x33095a);}function _0x530517(_0x7ad6e7,_0x382d2f,_0x4518cd,_0x2080c9){return _0x22ef16(_0x382d2f,_0x7ad6e7- -_0x5d2492._0x235888,_0x4518cd-0x19c,_0x2080c9-_0x5d2492._0xcf2901);}return JSON[_0x530517(_0x494575._0x5e5f41,0x2db,0x2fe,_0x494575._0x52a970)](_0x5a26df,null,0x2);}function createMcpTool(_0x40ffc1){const _0x2b93f6={_0x394daf:0x6a6,_0x2097d3:0x749,_0x1632e6:0x641,_0x2f553d:0x285,_0x3a50ba:0x318,_0x3a8fde:0x571,_0x2c1fda:0x4e0,_0x140674:0x3de,_0x4ecd3a:0x4c6,_0x2034d3:0x227,_0x43b0d3:0x454,_0xfea25e:0x353,_0x4637d4:0x419,_0x8a2fda:0x345,_0x2d492f:0x518,_0x4c96f9:0x3ea,_0x2eb9f5:0x635,_0x5ec892:0x54f,_0x4dbfe8:0x5ad,_0x57250d:0x3df,_0x2273e4:0x3ba},_0x10eab1={_0x108134:0x28e,_0x539e62:0x2fb,_0x3e5c2e:0x15f,_0x436b5c:0x36f,_0x5262d1:0x96,_0x574f1:0xb0,_0x7d35b0:0x288,_0x5dfc7d:0x2db,_0x52481f:0xa1,_0x90e70c:0x1be,_0x4579e5:0x1a0,_0x16c2ee:0x157,_0x2cc1f2:0x1a8,_0x2cf4d6:0xef,_0x4eaae0:0x1fd,_0x393801:0x31d,_0x392fd8:0x249,_0x170366:0x2af,_0x1876c1:0x1e6},_0x4e6eea={_0x1304cb:0x1a5},_0x5b8190={_0x70fdc:0x174};function _0x3a2c87(_0x4a3f2e,_0x2e30fe,_0x8911e0,_0x341955){return _0x324926(_0x341955-0x5bd,_0x4a3f2e,_0x8911e0-_0x5b8190._0x70fdc,_0x341955-0x194);}const _0x2b376a=createMcpToolName(_0x40ffc1[_0x3a2c87(_0x2b93f6._0x394daf,0x666,_0x2b93f6._0x2097d3,_0x2b93f6._0x1632e6)],_0x40ffc1['tool'][_0x545de5(0x308,0x2a9,_0x2b93f6._0x2f553d,_0x2b93f6._0x3a50ba)]);function _0x545de5(_0x256829,_0x2c65b6,_0xdb23c4,_0xf5db23){return _0x22ef16(_0x256829,_0xf5db23-0x1a1,_0xdb23c4-0x166,_0xf5db23-_0x4e6eea._0x1304cb);}return defineTool({'name':_0x2b376a,'description':_0x40ffc1[_0x3a2c87(0x457,0x68e,0x47e,_0x2b93f6._0x3a8fde)][_0x3a2c87(_0x2b93f6._0x2c1fda,_0x2b93f6._0x140674,0x3aa,_0x2b93f6._0x4ecd3a)]??'MCP\x20tool\x20'+_0x40ffc1[_0x545de5(0x2fe,_0x2b93f6._0x2034d3,_0x2b93f6._0x43b0d3,_0x2b93f6._0xfea25e)][_0x545de5(0x328,_0x2b93f6._0x4637d4,_0x2b93f6._0x8a2fda,0x318)]+_0x545de5(0x4dd,0x4ac,_0x2b93f6._0x2d492f,_0x2b93f6._0x4c96f9)+_0x40ffc1[_0x3a2c87(0x60b,_0x2b93f6._0x2eb9f5,0x627,0x641)],'inputSchema':toNuvinToolSchema(_0x40ffc1[_0x3a2c87(_0x2b93f6._0x5ec892,_0x2b93f6._0x4dbfe8,0x4b2,_0x2b93f6._0x3a8fde)][_0x545de5(0x3d3,_0x2b93f6._0x57250d,0x343,_0x2b93f6._0x2273e4)]),async *'execute'(_0x1da77b){const _0x3984ad={_0x29e79c:0x53},_0x599ad4={_0x335437:0x8e,_0x49549a:0xc0,_0x102065:0x4f3},_0x55fc1b=await _0x40ffc1['client'][_0x25a604(-_0x10eab1._0x108134,-_0x10eab1._0x539e62,-_0x10eab1._0x3e5c2e,-_0x10eab1._0x436b5c)]({'name':_0x40ffc1[_0x27ff95(-0x1a0,-_0x10eab1._0x5262d1,-_0x10eab1._0x574f1,-_0x10eab1._0x7d35b0)][_0x25a604(-0x1fd,-0x258,-_0x10eab1._0x5dfc7d,-0x32b)],'arguments':isJsonObject(_0x1da77b)?_0x1da77b:{}});if(_0x55fc1b[_0x25a604(-_0x10eab1._0x52481f,-_0x10eab1._0x90e70c,-0xd3,-0x4a)])throw new ToolExecutionError(formatMcpContent(_0x55fc1b),{'serverName':_0x40ffc1['serverName'],'toolName':_0x40ffc1[_0x27ff95(-_0x10eab1._0x4579e5,-_0x10eab1._0x16c2ee,-_0x10eab1._0x2cc1f2,-_0x10eab1._0x2cf4d6)][_0x25a604(-_0x10eab1._0x4eaae0,-0x2fb,-_0x10eab1._0x393801,-_0x10eab1._0x392fd8)]});function _0x27ff95(_0x124003,_0x1b87e5,_0x4629a2,_0x5d2911){return _0x545de5(_0x4629a2,_0x1b87e5-_0x599ad4._0x335437,_0x4629a2-_0x599ad4._0x49549a,_0x124003- -_0x599ad4._0x102065);}function _0x25a604(_0x4b4191,_0xdd76c7,_0x6442e4,_0x5ead16){return _0x3a2c87(_0x6442e4,_0xdd76c7-0xd3,_0x6442e4-_0x3984ad._0x29e79c,_0x4b4191- -0x733);}return yield createToolOutput(formatMcpContent(_0x55fc1b),{'serverName':_0x40ffc1['serverName'],'toolName':_0x40ffc1[_0x25a604(-0x1c2,-_0x10eab1._0x170366,-0x2ca,-0x159)][_0x25a604(-0x1fd,-0x1da,-_0x10eab1._0x1876c1,-0x250)],'result':_0x55fc1b}),void 0x0;}});}function resolvePrefix(_0x43a119,_0x2c075d){const _0x3cf8c8={_0x476c2b:0x2e9},_0x552dce={_0x3075a1:0x1a};function _0x28c216(_0x168a06,_0x21ee8a,_0xa97e93,_0x28343f){return _0x324926(_0x168a06-0x1d6,_0x21ee8a,_0xa97e93-0x130,_0x28343f-_0x552dce._0x3075a1);}return _0x2c075d[_0x28c216(_0x3cf8c8._0x476c2b,0x2d0,0x2c1,0x2ef)]??_0x43a119;}function buildMcpHttpHeaders(_0x4fc723){const _0x331716={_0x708cac:0x300,_0x12cee7:0x439,_0x2f00a5:0x395,_0x3d8b12:0x4ab,_0xfc1ba5:0x523,_0xa0094a:0x513,_0x479f1b:0x58d,_0x49a91c:0x351,_0x58d8a8:0x37a,_0x452664:0x265,_0x1f0503:0x470,_0x1359e0:0x45b,_0x46d629:0x380,_0x3f8c78:0x401,_0x2f4cfd:0x381,_0x45f27b:0x41b,_0x4b55e6:0x22a,_0x422118:0x248,_0x5689e8:0x34b},_0x52de22={_0xcede28:0xfb},_0x22ee46={_0x36456f:0xba};function _0x30a5cd(_0x4b768a,_0x427bae,_0x1e3b16,_0x3154ea){return _0x22ef16(_0x3154ea,_0x4b768a-0x20a,_0x1e3b16-0x104,_0x3154ea-_0x22ee46._0x36456f);}const _0x51d85a={..._0x4fc723[_0x3a2787(0x232,_0x331716._0x708cac,0x213,0x3f7)]??{}};_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,_0x331716._0x2f00a5,_0x331716._0x3d8b12,_0x331716._0xfc1ba5)]?.[_0x30a5cd(_0x331716._0xa0094a,_0x331716._0x479f1b,0x4d1,0x54c)]===_0x30a5cd(_0x331716._0x49a91c,_0x331716._0x58d8a8,0x472,_0x331716._0x452664)&&_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,0x30e,_0x331716._0x1f0503,0x36b)]['token']&&_0x51d85a[_0x30a5cd(_0x331716._0x1359e0,_0x331716._0x46d629,0x507,_0x331716._0x3f8c78)]===void 0x0&&(_0x51d85a[_0x3a2787(0x40f,_0x331716._0x2f4cfd,_0x331716._0x45f27b,0x49f)]='Bearer\x20'+_0x4fc723[_0x30a5cd(_0x331716._0x12cee7,0x4e3,0x3a3,0x3cb)][_0x3a2787(0x230,_0x331716._0x4b55e6,_0x331716._0x422118,0x1c7)]);function _0x3a2787(_0x56ad53,_0x56404a,_0x6503cb,_0x21d9c4){return _0x324926(_0x56404a-0x32e,_0x21d9c4,_0x6503cb-0x13e,_0x21d9c4-_0x52de22._0xcede28);}return Object['keys'](_0x51d85a)[_0x3a2787(_0x331716._0x5689e8,0x33a,0x377,0x469)]>0x0?_0x51d85a:void 0x0;}function getErrorMessage(_0x25e2e2){const _0x53831b={_0x512966:0x93,_0x2897d1:0x245},_0x1b5458={_0x24ed8e:0xae,_0x1e7761:0x190};function _0x3413c9(_0x3e208c,_0x59dbb9,_0x36ee1d,_0x3bf737){return _0x22ef16(_0x59dbb9,_0x36ee1d- -0x128,_0x36ee1d-_0x1b5458._0x24ed8e,_0x3bf737-_0x1b5458._0x1e7761);}return _0x25e2e2 instanceof Error?_0x25e2e2[_0x3413c9(_0x53831b._0x512966,_0x53831b._0x2897d1,0x199,0x170)]:String(_0x25e2e2);}function isUnauthorizedError(_0x2ca673){const _0x27ac9e={_0x1ba0db:0x4ab,_0x38874a:0x58e,_0x54e9bc:0x37b},_0x3b5adf={_0x540dc8:0x3c4};function _0x75f20f(_0x4dfbda,_0x171931,_0x3aa37e,_0x1d511d){return _0x324926(_0x4dfbda-_0x3b5adf._0x540dc8,_0x171931,_0x3aa37e-0x1c1,_0x1d511d-0xe4);}return _0x2ca673 instanceof Error&&_0x2ca673['constructor']['name']===_0x75f20f(_0x27ac9e._0x1ba0db,_0x27ac9e._0x38874a,0x3b2,_0x27ac9e._0x54e9bc);}async function connectMcpServer(_0x388b48,_0xaecc37,_0x40c4d9){const _0x13483e={_0xbc955a:0xb3,_0x101906:0x59,_0x59de4a:0x79,_0x4cbdc1:0x14,_0x121880:0x208,_0x40fa20:0x226,_0x2bbe1f:0x2d3,_0x5d139f:0x302,_0xa7b362:0x429,_0x4db02f:0x49f,_0x65966d:0x595,_0x23ac06:0x25,_0x575262:0x4d,_0x35cef0:0x457,_0x2f0111:0x4f7,_0xed4d5:0x49a,_0x174887:0x5b5,_0x23172a:0x41b,_0x207dca:0x5b6,_0x54371b:0x4a0,_0x54be78:0x370,_0x6162ab:0x15b,_0x30d38b:0x6c,_0x4abace:0x31f,_0x3c3346:0x19,_0x184030:0x28,_0x432b26:0x4e,_0x2c61ed:0x49,_0x32713b:0x49,_0x365c07:0x374,_0x559587:0x3b1,_0x3c6073:0x5b3,_0x30cd73:0x314,_0x45c952:0x3a7,_0x27932f:0x28c,_0x127826:0x204,_0x2f6ad6:0xef,_0x231267:0x201,_0x584641:0x25,_0x33b5c6:0x9,_0x2384fb:0x1b7,_0xb97b2c:0x12,_0x5c7034:0x1cc,_0x415c27:0xda,_0x4437ae:0x526,_0x3b3433:0x387,_0x3e00f7:0x397,_0x18bde3:0x4b,_0x557727:0x6f,_0x39f303:0x523,_0x4b4168:0x63d,_0x770424:0x13c,_0x303b22:0x197,_0x2a52a0:0x41,_0x2c930a:0xc8,_0x1d760b:0x348,_0x3805f6:0x2b3},_0x3aa491={_0x42e9cb:0x8b,_0x44a49d:0x8},_0x4658fd={_0x3a2002:0x1a7,_0x195524:0x10b},_0x8bbf21={_0x18599c:0x17f},_0x35f294={_0x347a1a:0xdc,_0x5a3dc3:0x5ab},_0x2616dd={_0xbe4dc3:0x3d5,_0x28496d:0x372},_0x4185a5={_0x20aed2:0x204},_0x384935={_0x51a5fc:0x253};function _0x9f97e3(_0x281d6e,_0x4826eb,_0x1dfd12,_0x2b776c){return _0x22ef16(_0x2b776c,_0x4826eb- -_0x384935._0x51a5fc,_0x1dfd12-0xf,_0x2b776c-0xb7);}const _0x3a6fdb=new Client({'name':_0x9f97e3(-0x7a,_0x13483e._0xbc955a,-_0x13483e._0x101906,0x17f),'version':_0x9f97e3(_0x13483e._0x59de4a,-_0x13483e._0x4cbdc1,-0x104,-0x3e)});if(_0xaecc37[_0x391cc5(_0x13483e._0x121880,_0x13483e._0x40fa20,_0x13483e._0x2bbe1f,_0x13483e._0x5d139f)]===_0x391cc5(0x3f5,_0x13483e._0xa7b362,_0x13483e._0x4db02f,_0x13483e._0x65966d)||_0xaecc37['url']){if(!_0xaecc37[_0x9f97e3(0x3c,-_0x13483e._0x23ac06,-0x5d,-_0x13483e._0x575262)])throw new Error(_0x391cc5(_0x13483e._0x35cef0,_0x13483e._0x2f0111,_0x13483e._0xed4d5,_0x13483e._0x174887)+_0x388b48+_0x391cc5(0x430,0x4e7,_0x13483e._0x23172a,0x537));if(_0xaecc37['auth']?.['type']==='oauth'&&!_0x40c4d9?.[_0x391cc5(0x46c,_0x13483e._0x207dca,_0x13483e._0x54371b,_0x13483e._0x54be78)])throw new Error(_0x9f97e3(_0x13483e._0x6162ab,0x43,-0x23,-_0x13483e._0x30d38b)+_0x388b48+_0x391cc5(0x377,0x217,_0x13483e._0x4abace,0x277));const _0x4dc713=buildMcpHttpHeaders(_0xaecc37),_0xcd6cbb=_0xaecc37[_0x9f97e3(-0x13f,-0x24,-0x38,-0x144)]?.[_0x9f97e3(-0x3a,0xb6,-_0x13483e._0x3c3346,-_0x13483e._0x184030)]===_0x9f97e3(-_0x13483e._0x432b26,_0x13483e._0x2c61ed,0x19,-0xb)&&_0x40c4d9?.[_0x9f97e3(0x132,_0x13483e._0x32713b,-0xe4,0x5)]?createMcpOAuthProvider({'serverName':_0x388b48,'callbackUrl':_0x40c4d9[_0x391cc5(_0x13483e._0x365c07,_0x13483e._0x559587,0x4a0,_0x13483e._0x3c6073)][_0x391cc5(0x2ff,_0x13483e._0x30cd73,_0x13483e._0x45c952,_0x13483e._0x27932f)],'storageDir':_0x40c4d9['oauth'][_0x9f97e3(-_0x13483e._0x127826,-_0x13483e._0x2f6ad6,-0x21f,-_0x13483e._0x231267)],'config':_0xaecc37['auth'],'onRedirect':_0x21b0b0=>_0x40c4d9['oauth']?.['onRedirect'](_0x388b48,_0x21b0b0)}):void 0x0,_0x288668=new StreamableHTTPClientTransport(new URL(_0xaecc37[_0x9f97e3(0x38,-_0x13483e._0x584641,-0xb6,0x8)]),{'authProvider':_0xcd6cbb,'requestInit':_0x4dc713?{'headers':_0x4dc713}:void 0x0});await _0x3a6fdb[_0x9f97e3(-_0x13483e._0x33b5c6,-0x10f,-0x43,-_0x13483e._0x2384fb)](_0x288668);}else{if(!_0xaecc37[_0x9f97e3(_0x13483e._0xb97b2c,0xcc,_0x13483e._0x5c7034,_0x13483e._0x415c27)])throw new Error(_0x391cc5(_0x13483e._0x4437ae,_0x13483e._0x3b3433,_0x13483e._0xed4d5,_0x13483e._0x3e00f7)+_0x388b48+_0x9f97e3(_0x13483e._0x18bde3,-0x63,0xbb,_0x13483e._0x557727));const _0x22b9f1=new StdioClientTransport({'command':_0xaecc37[_0x391cc5(0x42e,0x4bc,_0x13483e._0x39f303,_0x13483e._0x4b4168)],'args':_0xaecc37[_0x9f97e3(-0xad,-_0x13483e._0x770424,-_0x13483e._0x303b22,-0x13b)]??[],'env':_0xaecc37[_0x9f97e3(-0x9a,-_0x13483e._0x2a52a0,-_0x13483e._0x2c930a,-_0x13483e._0x18bde3)]});await _0x3a6fdb[_0x391cc5(0x2eb,0x3d7,_0x13483e._0x1d760b,_0x13483e._0x3805f6)](_0x22b9f1);}function _0x391cc5(_0x293ff6,_0x463b12,_0x56a3fb,_0x3dc1e8){return _0x22ef16(_0x463b12,_0x56a3fb-_0x4185a5._0x20aed2,_0x56a3fb-0x1b8,_0x3dc1e8-0x198);}return{async 'listTools'(){const _0x4665cb={_0x14a945:0x148};function _0x5e7c90(_0x514cab,_0x1a0f11,_0x89623,_0x2e387a){return _0x9f97e3(_0x514cab-_0x4665cb._0x14a945,_0x89623-0x4f0,_0x89623-0x63,_0x1a0f11);}return await _0x3a6fdb[_0x5e7c90(0x479,_0x2616dd._0xbe4dc3,_0x2616dd._0x28496d,0x2fd)]();},async 'callTool'(_0x191fef){const _0x1160dd={_0x2ab8d5:0x9c};function _0x3d19fb(_0xcd95d3,_0x2d8027,_0xb338fb,_0x5cc7d7){return _0x391cc5(_0xcd95d3-_0x35f294._0x347a1a,_0xb338fb,_0x5cc7d7- -_0x35f294._0x5a3dc3,_0x5cc7d7-0xa2);}function _0x24f621(_0x44e328,_0x39bc78,_0x3fefca,_0x3a56af){return _0x9f97e3(_0x44e328-_0x1160dd._0x2ab8d5,_0x44e328-0xe2,_0x3fefca-0x180,_0x3fefca);}return await _0x3a6fdb[_0x3d19fb(-0x27a,-0x24e,-0x154,-0x284)]({'method':_0x3d19fb(-0x176,-0x198,-_0x8bbf21._0x18599c,-0x24f),'params':_0x191fef},CallToolResultSchema);},async 'close'(){function _0x417160(_0x1c09a6,_0x5843f8,_0x19c018,_0x4a730b){return _0x9f97e3(_0x1c09a6-_0x4658fd._0x3a2002,_0x19c018- -0x70,_0x19c018-_0x4658fd._0x195524,_0x1c09a6);}await _0x3a6fdb[_0x417160(-_0x3aa491._0x42e9cb,0x53,-0xd1,_0x3aa491._0x44a49d)]();}};}async function createMcpToolsFromServers(_0x26176b){const _0x36eae7={_0x48da53:0x5e,_0x290dac:0xba,_0x2d5106:0x223,_0x4aca80:0x236,_0xab2318:0x2ed,_0x215e79:0x7b,_0x1bbfe6:0x12c,_0x122c47:0x177,_0xeffe5b:0x30d,_0x4d055a:0x1bd,_0x11ba54:0x250,_0x142653:0x2f5,_0x1e8736:0x286,_0x4547da:0x47e,_0x395e3d:0x29f,_0x5a5d1e:0x374,_0x2b0c5e:0x235,_0xc1ca05:0x89,_0x540a08:0x549,_0x46947f:0x49c,_0x5b0416:0x38b,_0x21b5cd:0x39c,_0x12f45b:0x409,_0x18d421:0x2a5,_0x1f3231:0x1b5},_0x281377={_0x34c331:0x513,_0x306847:0x550,_0x5be29c:0x4ee},_0xd0c836={_0x1eaf9b:0x1f8,_0x10c416:0xa4},_0x2e8ded={_0x21aaeb:0x1b1,_0x19abb6:0x4b,_0x32e287:0x48},_0x43d9e4=_0x26176b[_0x29dfbf(_0x36eae7._0x48da53,_0x36eae7._0x290dac,_0x36eae7._0x2d5106,0x13e)]??connectMcpServer,_0x3c7ad3=[],_0x4c0d91={},_0x4f6210=[];for(const [_0x3f5176,_0x38fb69]of Object[_0x24302f(0x29e,0x310,_0x36eae7._0x4aca80,_0x36eae7._0xab2318)](_0x26176b[_0x29dfbf(_0x36eae7._0x215e79,0xd9,_0x36eae7._0x1bbfe6,0x124)]??{})){if(_0x38fb69[_0x29dfbf(0x254,_0x36eae7._0x122c47,0x365,0x28d)]===![]){_0x4c0d91[_0x3f5176]={'status':_0x29dfbf(0x1a3,0xc8,0x171,0x14b)};continue;}try{const _0x362afd=await _0x43d9e4(_0x3f5176,_0x38fb69,_0x26176b[_0x29dfbf(_0x36eae7._0xeffe5b,_0x36eae7._0x4d055a,0x2bd,_0x36eae7._0x11ba54)]);_0x3c7ad3[_0x24302f(0x4e2,0x564,0x545,0x45b)](_0x362afd);const _0xbf346=await _0x362afd[_0x24302f(0x36b,0x23b,_0x36eae7._0x142653,_0x36eae7._0x1e8736)]();let _0x4dc21c=0x0;for(const _0x335488 of _0xbf346[_0x24302f(_0x36eae7._0x4547da,_0x36eae7._0x395e3d,0x2f5,_0x36eae7._0x5a5d1e)]){const _0x390b4f=_0x26176b['allowedTools']?.[_0x3f5176]?.[_0x335488[_0x29dfbf(_0x36eae7._0x2b0c5e,_0x36eae7._0xc1ca05,0x69,0x171)]];if(_0x390b4f===![])continue;_0x4dc21c+=0x1,_0x4f6210[_0x24302f(0x533,_0x36eae7._0x540a08,_0x36eae7._0x46947f,0x45b)](createMcpTool({'serverName':resolvePrefix(_0x3f5176,_0x38fb69),'tool':_0x335488,'client':_0x362afd}));}_0x4c0d91[_0x3f5176]={'status':_0x24302f(_0x36eae7._0x5b0416,_0x36eae7._0x21b5cd,_0x36eae7._0x12f45b,0x3de),'toolCount':_0x4dc21c};}catch(_0x15bdd8){_0x4c0d91[_0x3f5176]=isUnauthorizedError(_0x15bdd8)?{'status':_0x29dfbf(_0x36eae7._0x18d421,_0x36eae7._0x1f3231,_0x36eae7._0xab2318,0x1fc),'message':getErrorMessage(_0x15bdd8)}:{'status':'error','message':getErrorMessage(_0x15bdd8)};}}function _0x24302f(_0x386faf,_0x314475,_0x27431e,_0x410bc5){return _0x22ef16(_0x386faf,_0x410bc5-_0x2e8ded._0x21aaeb,_0x27431e-_0x2e8ded._0x19abb6,_0x410bc5-_0x2e8ded._0x32e287);}function _0x29dfbf(_0x5f0a6f,_0x3b7955,_0x11f950,_0x1035fd){return _0x324926(_0x1035fd-_0xd0c836._0x1eaf9b,_0x3b7955,_0x11f950-_0xd0c836._0x10c416,_0x1035fd-0x156);}return{'tools':_0x4f6210,'servers':_0x4c0d91,async 'close'(){const _0x27bd6e={_0x4f8bff:0x82,_0x1aafb7:0xef,_0x5c01f2:0x4f2},_0x34d114={_0x1bbe72:0x157};function _0x3794a0(_0x4193d8,_0x3cf9ee,_0x413808,_0x2b85ea){return _0x29dfbf(_0x4193d8-_0x34d114._0x1bbe72,_0x3cf9ee,_0x413808-0x7d,_0x4193d8-0x230);}function _0x487803(_0x4f1cd7,_0xd3b35e,_0x1a6d20,_0x8f0365){return _0x24302f(_0xd3b35e,_0xd3b35e-_0x27bd6e._0x4f8bff,_0x1a6d20-_0x27bd6e._0x1aafb7,_0x1a6d20- -_0x27bd6e._0x5c01f2);}await Promise[_0x3794a0(_0x281377._0x34c331,0x4d6,_0x281377._0x306847,0x53a)](_0x3c7ad3[_0x3794a0(_0x281377._0x5be29c,0x41d,0x471,0x3c0)](_0x4962b1=>_0x4962b1[_0x3794a0(0x41c,0x345,0x3ac,0x4da)]()));}};}function getCommand(_0x4b5d04){const _0x432ad2={_0x2b586d:0x1e3,_0x218933:0xbf,_0x13e59d:0xbd,_0x373cf9:0x2a4,_0x4ccda3:0xda,_0x3aaea0:0xb5,_0xbe0ace:0xb,_0x2eac26:0x9d,_0x375ede:0x334,_0xa3e9c9:0x2f1,_0x4a13b0:0x401,_0x89c429:0x355},_0x568878={_0x2bc7a0:0x15,_0x270f12:0x100,_0xb28902:0xbc},_0x4d2f7a={_0x38644d:0x8b,_0x506d4c:0x132};if(_0x4b5d04&&typeof _0x4b5d04==='object'&&!Array[_0x17d104(_0x432ad2._0x2b586d,_0x432ad2._0x218933,_0x432ad2._0x13e59d,_0x432ad2._0x373cf9)](_0x4b5d04)&&typeof _0x4b5d04[_0xb7145d(_0x432ad2._0x4ccda3,0xcf,-_0x432ad2._0x3aaea0,-_0x432ad2._0xbe0ace)]===_0xb7145d(-0x1c1,0x4,0xc,-_0x432ad2._0x2eac26))return _0x4b5d04[_0x17d104(_0x432ad2._0x375ede,_0x432ad2._0xa3e9c9,_0x432ad2._0x4a13b0,_0x432ad2._0x89c429)];function _0xb7145d(_0xed2352,_0x553efc,_0x57b609,_0x3bd26f){return _0x324926(_0x3bd26f- -0x12c,_0xed2352,_0x57b609-_0x4d2f7a._0x38644d,_0x3bd26f-_0x4d2f7a._0x506d4c);}function _0x17d104(_0x4162cb,_0x8f2f48,_0x22a0a3,_0x227666){return _0x22ef16(_0x227666,_0x4162cb-_0x568878._0x2bc7a0,_0x22a0a3-_0x568878._0x270f12,_0x227666-_0x568878._0xb28902);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x324926(0xe2,0xf2,0x20e,0x178),_0x324926(0x105,0x67,0x65,0xfe),_0x22ef16(0x2ec,0x1df,0xba,0x222),_0x324926(-0x22,0x8e,-0x60,-0x7e),_0x324926(0xb3,-0x3b,0x137,0x1c8),'src/formats/message-format.ts',_0x22ef16(0x1d8,0x280,0x325,0x329),_0x324926(0x9a,-0x49,0x13e,-0x10),_0x22ef16(0x394,0x2a1,0x2f7,0x1e6),_0x22ef16(0x1c3,0x1b0,0x145,0x1d0),_0x22ef16(0x25a,0x2fd,0x200,0x20a),_0x22ef16(0x43c,0x314,0x42a,0x25a),'src/shared/types.ts',_0x324926(0x3f,0x5d,0xd1,0x57),_0x22ef16(0x144,0x243,0x175,0x361),_0x324926(0x90,0xe9,-0x4a,0x163),_0x22ef16(0xfd,0x16e,0x27a,0x243)][_0x22ef16(0x26e,0x14c,0x6e,0xa2)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x324926(-0x1,0xe4,-0x7,-0xb),'description':_0x324926(0xe8,0x15,0x74,-0x47),'input_schema':{'type':_0x22ef16(0x15b,0x286,0x283,0x22a),'properties':{'command':{'type':_0x324926(0x8f,0x91,-0x9d,0x77)}},'required':[_0x324926(0x121,0x7a,0x223,0x7f)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x29119d){return{'output':_0x29119d,'structured':{'value':_0x29119d}};}function createUnknownToolResult(_0x4d7087){const _0x4230ef={_0x51b1d0:0x1bf,_0xe13735:0xf3,_0x456791:0x11c,_0x12fa81:0x4b8,_0xfa6c85:0xfb,_0x2e26e7:0x125,_0x53f4e8:0x1f3},_0x4a3593={_0x56b228:0x95,_0x611984:0x126,_0x1dbc7d:0x12},_0x1cf2c2={_0x4f4be5:0x2e0,_0x283bba:0x1a7,_0x23de8e:0x16};function _0x231aa2(_0x470e36,_0x1d0144,_0x1529f0,_0xd9164a){return _0x324926(_0x470e36-_0x1cf2c2._0x4f4be5,_0xd9164a,_0x1529f0-_0x1cf2c2._0x283bba,_0xd9164a-_0x1cf2c2._0x23de8e);}function _0x1f0a2f(_0x86b746,_0x44d829,_0x3f4d08,_0x5bed5c){return _0x324926(_0x5bed5c- -_0x4a3593._0x56b228,_0x86b746,_0x3f4d08-_0x4a3593._0x611984,_0x5bed5c-_0x4a3593._0x1dbc7d);}return{'callId':_0x4d7087['id'],'toolName':_0x4d7087[_0x1f0a2f(-0x20a,-_0x4230ef._0x51b1d0,-_0x4230ef._0xe13735,-_0x4230ef._0x456791)],'status':_0x231aa2(0x3e6,0x508,_0x4230ef._0x12fa81,0x304),'output':_0x1f0a2f(-_0x4230ef._0xfa6c85,-0x13b,-0x57,-0x19)+_0x4d7087[_0x1f0a2f(-_0x4230ef._0x2e26e7,-0x106,-_0x4230ef._0x53f4e8,-0x11c)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x120c86,_0x5a7744){const _0x1a84ec={_0x3416f6:0x4bc},_0x5ec0df={_0x38b421:0x21};function _0x225a4c(_0x13a586,_0x1f89c9,_0x381778,_0x53decb){return _0x22ef16(_0x13a586,_0x53decb-0x295,_0x381778-0x173,_0x53decb-_0x5ec0df._0x38b421);}return{'callId':_0x120c86['id'],'toolName':_0x120c86[_0x225a4c(_0x1a84ec._0x3416f6,0x512,0x4f9,0x40c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x120c86['input']),'exitCode':0x0},'chunks':[_0x5a7744],'meta':createMeta()};}function createMockToolRuntime(){const _0x5330e6={_0xd394d3:0x5db,_0x5c27d1:0x6e1,_0x92da8:0x641,_0x1851be:0x5e7},_0x343e65={_0x2a52b9:0x5a},_0x26c46c=async(_0x243f34,_0x2f0645)=>{if(_0x243f34[_0x39c5ef(-0x24,-0x34,0x9c,_0x343e65._0x2a52b9)]!=='Bash')return createUnknownToolResult(_0x243f34);const _0xfb27a0=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x39c5ef(_0x3e3945,_0x436498,_0x2db64d,_0x2e7b9a){return _0x7ca6(_0x2e7b9a- -0x101,_0x2db64d);}return createSuccessToolResult(_0x243f34,_0xfb27a0);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5af2d7,_0x1bf29c){function _0x1cfa91(_0x722f08,_0x216c5f,_0x56992c,_0x45fb82){return _0x7ca6(_0x56992c-0x399,_0x45fb82);}return await Promise['all'](_0x5af2d7[_0x1cfa91(_0x5330e6._0xd394d3,_0x5330e6._0x5c27d1,_0x5330e6._0x92da8,_0x5330e6._0x1851be)](async _0x4eb19d=>{return await _0x26c46c(_0x4eb19d,_0x1bf29c);}));},async 'execute'(_0x166c1d,_0x18dc66){return await _0x26c46c(_0x166c1d,_0x18dc66);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x187821={_0x42258d:0x2c6,_0x6fba42:0x28b},_0xcfbd56={_0x4bd7f4:0x19e,_0x42b15a:0xb5};delegatedRunCounter+=0x1;function _0x36762f(_0x4ab492,_0x221c9f,_0x165050,_0x5b81f5){return _0x324926(_0x4ab492-0x232,_0x165050,_0x165050-_0xcfbd56._0x4bd7f4,_0x5b81f5-_0xcfbd56._0x42b15a);}return _0x36762f(_0x187821._0x42258d,_0x187821._0x6fba42,0x29e,0x275)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x3ee2d6,_0x4d9e23){const _0x61c8cb={_0x2ca334:0x172,_0xedf74a:0x17},_0x4203ca={_0x44df5f:0x1ed,_0x4ee938:0x7f};function _0x3a64d9(_0x1a2b6d,_0x36194a,_0x44b1d4,_0x2565a1){return _0x22ef16(_0x2565a1,_0x44b1d4- -0x147,_0x44b1d4-_0x4203ca._0x44df5f,_0x2565a1-_0x4203ca._0x4ee938);}return typeof _0x3ee2d6===_0x3a64d9(_0x61c8cb._0x2ca334,_0x61c8cb._0xedf74a,0xe9,0x1d5)?await _0x3ee2d6(_0x4d9e23):_0x3ee2d6;}function getDelegatedAgentDefinition(_0x4494d4,_0x24e2f2){const _0x4775ff={_0x16ba79:0x65c},_0x2daeaf={_0xbc2265:0x5ac,_0x1433bc:0x112};function _0x2ad38f(_0x5a17df,_0x2d1514,_0x4b882c,_0x7797eb){return _0x324926(_0x7797eb-_0x2daeaf._0xbc2265,_0x4b882c,_0x4b882c-0x14,_0x7797eb-_0x2daeaf._0x1433bc);}return _0x4494d4[_0x2ad38f(0x546,0x67e,0x5db,_0x4775ff._0x16ba79)]?.[_0x24e2f2];}function createRunSummary(_0xdbcbc){const _0x4682f1={_0x25f175:0x10c,_0x5112af:0x72,_0xb6591:0x1e3,_0x18418a:0x11e,_0x5447e9:0x251,_0x60f515:0x2cb,_0x3eebdd:0x229,_0x42068d:0x1b5,_0x18f531:0x93,_0x1d0cec:0x262,_0xf7feb6:0x296,_0x3d03ba:0x188,_0xb7c5ed:0x193,_0x587793:0x60,_0x5e8ec0:0x164},_0x4dcfd7={_0x21aa83:0x133};function _0x49a2fb(_0x3bd2bf,_0x510515,_0x42ca35,_0x170ab0){return _0x22ef16(_0x170ab0,_0x3bd2bf- -0x310,_0x42ca35-0x19d,_0x170ab0-0x179);}function _0x5989c9(_0x19cf9c,_0x7e8e6f,_0x33dadf,_0xb669f9){return _0x22ef16(_0x19cf9c,_0x7e8e6f- -0x3d4,_0x33dadf-_0x4dcfd7._0x21aa83,_0xb669f9-0x10b);}return{'runId':_0xdbcbc[_0x5989c9(0x22,-_0x4682f1._0x25f175,-_0x4682f1._0x5112af,-_0x4682f1._0xb6591)],'agentId':_0xdbcbc['agentId'],'sessionId':_0xdbcbc[_0x49a2fb(-0x130,-_0x4682f1._0x18418a,-0x241,-0x18)],'status':_0xdbcbc[_0x5989c9(-0x14b,-0x1bc,-0x293,-_0x4682f1._0x5447e9)],'parentSessionId':_0xdbcbc[_0x5989c9(-0x3bb,-0x311,-0x31a,-_0x4682f1._0x60f515)],..._0xdbcbc['originToolCallId']!==void 0x0?{'originToolCallId':_0xdbcbc[_0x5989c9(-_0x4682f1._0x3eebdd,-0x24a,-_0x4682f1._0x42068d,-0x16c)]}:{},..._0xdbcbc['errorMessage']!==void 0x0?{'errorMessage':_0xdbcbc[_0x49a2fb(-0x41,-0xb6,-_0x4682f1._0x18f531,0xcc)]}:{},..._0xdbcbc[_0x49a2fb(-0x188,-_0x4682f1._0x1d0cec,-0x14c,-_0x4682f1._0xf7feb6)]?.['finalMessage']!==void 0x0?{'finalMessageText':getTextFromMessage(_0xdbcbc[_0x49a2fb(-_0x4682f1._0x3d03ba,-_0x4682f1._0xb7c5ed,-0xd3,-0xcd)][_0x49a2fb(-_0x4682f1._0x587793,0x5d,-_0x4682f1._0x5e8ec0,-0x33)])}:{}};}function createRunSummaryOutput(_0x1b7114,_0x1174c6){const _0x4be35c={_0x255821:0x1a5,_0x3e2b66:0x24f,_0x3d8b0e:0x1c7,_0x5d24b6:0x160,_0x598373:0x22f,_0x90b672:0x568,_0x389538:0x443},_0x41ac2a={_0x349e5c:0x239,_0x388b88:0x105,_0x192992:0x171},_0x56f428={_0x31226e:0x3f7,_0x4fa3b5:0x92,_0x163931:0x17e};function _0x4536e6(_0x15d12c,_0x2d2125,_0xa3fefc,_0x29ba29){return _0x22ef16(_0x29ba29,_0x15d12c- -_0x56f428._0x31226e,_0xa3fefc-_0x56f428._0x4fa3b5,_0x29ba29-_0x56f428._0x163931);}function _0x5dc622(_0x413722,_0x5c0de1,_0x1c22e9,_0xb73db5){return _0x22ef16(_0x413722,_0xb73db5-_0x41ac2a._0x349e5c,_0x1c22e9-_0x41ac2a._0x388b88,_0xb73db5-_0x41ac2a._0x192992);}const _0x310e80=createRunSummary(_0x1b7114),_0x45c53b=_0x310e80[_0x4536e6(-0x2ae,-_0x4be35c._0x255821,-_0x4be35c._0x3e2b66,-0x252)];return createToolOutput(typeof _0x45c53b===_0x4536e6(-0x16a,-_0x4be35c._0x3d8b0e,-_0x4be35c._0x5d24b6,-_0x4be35c._0x598373)&&_0x45c53b[_0x5dc622(0x3e8,0x3ee,_0x4be35c._0x90b672,_0x4be35c._0x389538)]>0x0?_0x45c53b:_0x1174c6,_0x310e80);}function getRunTerminalErrorMessage(_0x3ebbca){const _0x4ee624={_0x1f40ff:0x174,_0x328df4:0x60,_0x3cceeb:0x13f,_0x4c1fc4:0x73,_0x816419:0x4de,_0x3e0c6a:0x52b,_0x3cc22c:0x95,_0x46ad97:0x23,_0x15d06d:0x76,_0x3717d1:0x11f},_0x9364b7={_0xa3a55f:0x50},_0x37b9cc={_0x47d3ab:0x14f},_0x2d161b=_0x3ebbca?.[_0x2fbd90(0x3d5,0x3af,0x3ec,0x2e5)][_0x535536(-_0x4ee624._0x1f40ff,-0xcf,-_0x4ee624._0x328df4,-0x23e)]['at'](-0x1);function _0x535536(_0x3afeeb,_0xc58ca0,_0x39c671,_0x1d9828){return _0x22ef16(_0xc58ca0,_0x3afeeb- -0x28c,_0x39c671-_0x37b9cc._0x47d3ab,_0x1d9828-0x35);}function _0x2fbd90(_0x38030c,_0x194798,_0x297a22,_0x40bcaa){return _0x22ef16(_0x194798,_0x38030c-0x2b5,_0x297a22-0x1d4,_0x40bcaa-_0x9364b7._0xa3a55f);}if(_0x2d161b?.[_0x535536(-0x74,-0x167,-_0x4ee624._0x3cceeb,-_0x4ee624._0x4c1fc4)]===_0x2fbd90(0x5b9,_0x4ee624._0x816419,0x615,_0x4ee624._0x3e0c6a)&&_0x2d161b['output'][_0x535536(-_0x4ee624._0x3cc22c,-_0x4ee624._0x46ad97,0x3,-_0x4ee624._0x15d06d)]()[_0x535536(-0x82,0x78,-0x22,-_0x4ee624._0x3717d1)]>0x0)return _0x2d161b['output'];return void 0x0;}function formatAbortedRunMessage(_0x3cb4c4,_0x236090){const _0x5a9738={_0x2003e2:0x4de,_0x372518:0x4e8,_0x1c4f14:0x42a,_0x38fd57:0x425,_0x35bf56:0x48f,_0x4e8bb2:0x620,_0x3e3424:0x5b3,_0x1e5302:0x573,_0x2b2314:0x637,_0xa2b66:0x69f,_0x10dbe3:0x6b2,_0x197cdd:0x752},_0x50a6b8={_0x432d61:0x57a,_0x5e0f6a:0xc3},_0x2e1120={_0x4ae3ee:0x314},_0x23afd1=_0x39b429(_0x5a9738._0x2003e2,_0x5a9738._0x372518,0x576,_0x5a9738._0x1c4f14)+_0x3cb4c4+_0x39b429(_0x5a9738._0x38fd57,_0x5a9738._0x35bf56,0x41a,0x307);if(!_0x236090||_0x236090[_0x10d7e0(0x45b,_0x5a9738._0x4e8bb2,_0x5a9738._0x3e3424,_0x5a9738._0x1e5302)]()[_0x10d7e0(_0x5a9738._0x2b2314,_0x5a9738._0xa2b66,_0x5a9738._0x10dbe3,0x586)]===0x0||_0x236090===_0x23afd1)return _0x23afd1;function _0x39b429(_0x4ed37f,_0x3eefb0,_0x46316e,_0x431bb1){return _0x22ef16(_0x3eefb0,_0x4ed37f-_0x2e1120._0x4ae3ee,_0x46316e-0x168,_0x431bb1-0x18d);}function _0x10d7e0(_0x3fe94e,_0x3a8101,_0xc18bd4,_0x1bfe32){return _0x324926(_0x1bfe32-_0x50a6b8._0x432d61,_0x3a8101,_0xc18bd4-0x15c,_0x1bfe32-_0x50a6b8._0x5e0f6a);}return _0x23afd1+_0x10d7e0(0x73e,_0x5a9738._0x197cdd,0x715,0x659)+_0x236090;}function createAssignTaskTool(_0xc8ae36){const _0x4dfe4f={_0x33b9b5:0x20f,_0x268e83:0x2,_0x5c827d:0x67,_0x4ae73e:0x8c,_0x525d8d:0x261,_0x4cc838:0x148,_0x592f91:0x155,_0x59cdda:0x206,_0x193c10:0x23a,_0xb6a716:0x2ea,_0xabdaec:0xb6,_0x34ad7b:0x1d,_0x228c26:0x18,_0x5c005a:0x2cb,_0x25e425:0x21b},_0x476f0f={_0xca2372:0xa7,_0xd4e4b4:0xe1,_0x2a6696:0x1a5,_0xffe81e:0x2cb,_0x106d8f:0x1d9,_0x101cba:0x157,_0x15054f:0x1ab,_0x4c53fe:0x18a,_0xf989e3:0x2b1,_0x3184ef:0x1b7,_0xb8fb2a:0x285,_0x169660:0x1bb,_0x1b18c5:0x286,_0x547027:0x2f5,_0x5e8b62:0x100,_0x510050:0x1c3,_0x3bb496:0x1d3,_0x37b4dc:0x274,_0x164e82:0x105,_0x30a489:0x178,_0x2c1dba:0x1e5,_0x59538c:0x71,_0x50bb76:0x1d,_0xb1ee51:0x23c,_0x377ef9:0x1c4,_0x1f45a3:0x213,_0x31309c:0x135,_0x2e72cb:0x1f4,_0x428a38:0x93,_0x375f1e:0x1eb,_0x45e069:0x15b,_0x45785d:0x35,_0x51ec46:0x1fa,_0x27b4fa:0x1f6,_0x42a170:0x1bc,_0x459fdf:0xd7,_0x1233f4:0x208,_0x4fdf8f:0x2b5,_0x2ed83b:0xde,_0x134111:0x1bf,_0x33694f:0x91,_0x2be0be:0x8,_0x31bde0:0x23,_0x4cd1f3:0x189,_0x485e01:0x10e,_0x364990:0x12,_0x5d617e:0x172,_0x38f0e4:0x2c9,_0x2e81c7:0xef,_0x589f9e:0x50,_0x30de71:0x84,_0x44c805:0x7f,_0x12b452:0x1c8,_0x450b06:0x178,_0x32eb92:0x101,_0xee3005:0xc1,_0x5e305c:0x195,_0x4375fb:0x20a,_0x171dfa:0x2c6,_0x53c57c:0x6e,_0x2bf1b5:0x86,_0x2c7dc3:0x154,_0x187365:0x132,_0x30d636:0xe9,_0xe6c2b5:0xa4,_0x2e8b0c:0x1d6},_0x5402c1={_0x3f3281:0x13b,_0x15e70b:0x7f},_0x29dc08={_0x66c73b:0x1ea},_0x14a551={_0x26852d:0x177},_0x4bb889={_0x1d9985:0x22c,_0x544f71:0x1c6};function _0x50fcf2(_0x29e788,_0x26dacb,_0x4fa9c4,_0x4527aa){return _0x22ef16(_0x29e788,_0x4527aa- -_0x4bb889._0x1d9985,_0x4fa9c4-0x18e,_0x4527aa-_0x4bb889._0x544f71);}function _0x24ddff(_0x542982,_0xb70580,_0x3e300f,_0x468de9){return _0x324926(_0x468de9-_0x14a551._0x26852d,_0x542982,_0x3e300f-0x180,_0x468de9-0x78);}return defineTool({'name':_0x50fcf2(-_0x4dfe4f._0x33b9b5,-0x53,-0x1f0,-0x12b),'description':_0x50fcf2(_0x4dfe4f._0x268e83,_0x4dfe4f._0x5c827d,_0x4dfe4f._0x4ae73e,-0x7b),'inputSchema':{'type':_0x24ddff(_0x4dfe4f._0x525d8d,0x2be,_0x4dfe4f._0x4cc838,0x1ff),'properties':{'agentId':{'type':_0x24ddff(_0x4dfe4f._0x592f91,0x2aa,0x2c4,_0x4dfe4f._0x59cdda)},'description':{'type':'string'},'task':{'type':_0x24ddff(_0x4dfe4f._0x193c10,_0x4dfe4f._0xb6a716,0x298,_0x4dfe4f._0x59cdda)}},'required':['agentId',_0x24ddff(_0x4dfe4f._0xabdaec,_0x4dfe4f._0x34ad7b,_0x4dfe4f._0x228c26,0x80),_0x24ddff(0x1c4,_0x4dfe4f._0x5c005a,0x251,_0x4dfe4f._0x25e425)]},async *'execute'(_0xc768ec,_0x37a9d8){const _0x21ff9a={_0x5546d0:0x3b0,_0x3cf768:0x497,_0x2ab41e:0x4e,_0x43e531:0x1c7,_0x567901:0x14a,_0x16e732:0x3a7,_0xe599be:0x335},_0x57ca0c=createDelegatedRunId(),_0x5c0cd1={'agentId':_0xc768ec[_0x20b2be(-_0x476f0f._0xca2372,-_0x476f0f._0xd4e4b4,-_0x476f0f._0x2a6696,-_0x476f0f._0xffe81e)],'parentSessionId':_0x37a9d8[_0x98fb0a(-0x27d,-0x1ab,-0x1f4,-_0x476f0f._0x106d8f)],'runId':_0x57ca0c,..._0x37a9d8['toolCallId']!==void 0x0?{'toolCallId':_0x37a9d8[_0x98fb0a(-0x1e7,-0x369,-0x255,-0x1cb)]}:{}},_0x4ee509=getDelegatedAgentDefinition(_0xc8ae36,_0xc768ec[_0x20b2be(-0x291,-0xc3,-0x1a5,-0x76)]);if(!_0x4ee509)throw new ToolExecutionError(_0x98fb0a(-_0x476f0f._0x101cba,-0x1a7,-_0x476f0f._0x15054f,-0x22b)+_0xc768ec[_0x20b2be(-_0x476f0f._0x4c53fe,-0x14f,-0x1a5,-0x1aa)],{'agentId':_0xc768ec[_0x20b2be(-_0x476f0f._0xf989e3,-0x22b,-_0x476f0f._0x2a6696,-_0x476f0f._0x3184ef)]});const _0x2cad90=new Agent(await resolveDelegatedAgentOptions(_0x4ee509,_0x5c0cd1));let _0x321758={'runId':_0x57ca0c,'agentId':_0xc768ec[_0x20b2be(-0x24c,-0x7c,-0x1a5,-_0x476f0f._0xb8fb2a)],'sessionId':_0x2cad90[_0x98fb0a(-0x129,-_0x476f0f._0x169660,-0x1f4,-_0x476f0f._0x1b18c5)],'status':_0x20b2be(-0x131,-_0x476f0f._0x547027,-0x1d8,-0x124),'parentSessionId':_0x37a9d8[_0x98fb0a(-0x117,-_0x476f0f._0x5e8b62,-0x1f4,-0x14e)],..._0x37a9d8['toolCallId']!==void 0x0?{'originToolCallId':_0x37a9d8['toolCallId']}:{}};const _0x2c9cec=new AbortController();function _0x98fb0a(_0x523656,_0x20bccd,_0x3cf9d0,_0x88f2d4){return _0x24ddff(_0x523656,_0x20bccd-0x124,_0x3cf9d0-_0x29dc08._0x66c73b,_0x3cf9d0- -0x34d);}const _0x3e2959=addAbortListener(_0x37a9d8[_0x98fb0a(-_0x476f0f._0x510050,-0x14b,-_0x476f0f._0x3bb496,-_0x476f0f._0x37b4dc)],()=>{const _0x27fa88={_0x40aa59:0x42,_0x840454:0x5b,_0x52ea59:0x56},_0x794af3={_0x5670b2:0x19e};function _0x397206(_0x5ef1a2,_0x47b5f7,_0xe1aa21,_0x4bed00){return _0x98fb0a(_0x4bed00,_0x47b5f7-0x46,_0x47b5f7-0x5ed,_0x4bed00-_0x794af3._0x5670b2);}function _0x5e26e1(_0x4e2489,_0x594169,_0xd9a2fa,_0x2fbaf4){return _0x98fb0a(_0xd9a2fa,_0x594169-_0x27fa88._0x40aa59,_0x2fbaf4-_0x27fa88._0x840454,_0x2fbaf4-_0x27fa88._0x52ea59);}_0x2c9cec[_0x397206(0x448,_0x21ff9a._0x5546d0,_0x21ff9a._0x3cf768,0x39f)](_0x37a9d8[_0x5e26e1(-_0x21ff9a._0x2ab41e,-_0x21ff9a._0x43e531,-_0x21ff9a._0x567901,-0x178)]?.[_0x397206(_0x21ff9a._0x16e732,_0x21ff9a._0xe599be,0x2ca,0x27c)]);});yield createToolOutput(_0x20b2be(-_0x476f0f._0x164e82,-_0x476f0f._0x30a489,-_0x476f0f._0x2c1dba,-0x1e6)+_0x321758['runId']+'.',{'runId':_0x321758[_0x20b2be(-0x7c,_0x476f0f._0x59538c,_0x476f0f._0x50bb76,-0x68)],'agentId':_0x321758[_0x98fb0a(-_0x476f0f._0xb1ee51,-_0x476f0f._0x377ef9,-0x2ce,-0x21c)],'sessionId':_0x321758[_0x98fb0a(-_0x476f0f._0x1f45a3,-_0x476f0f._0x31309c,-_0x476f0f._0x2e72cb,-0x17a)],'status':_0x321758[_0x20b2be(-0x6e,-0x149,-_0x476f0f._0x428a38,-0xe7)]});function _0x20b2be(_0x9c86fb,_0x22258d,_0x50dfad,_0x13761c){return _0x50fcf2(_0x13761c,_0x22258d-0x24,_0x50dfad-_0x5402c1._0x3f3281,_0x50dfad- -_0x5402c1._0x15e70b);}try{const _0x251d0f=await _0x2cad90['send'](_0xc768ec[_0x98fb0a(-_0x476f0f._0x375f1e,-_0x476f0f._0x45e069,-0x132,-_0x476f0f._0x45785d)],{'signal':_0x2c9cec[_0x98fb0a(-0x1bd,-_0x476f0f._0x51ec46,-_0x476f0f._0x3bb496,-0x1fe)]});_0x321758={..._0x321758,'status':_0x251d0f[_0x98fb0a(-0x13a,-_0x476f0f._0x27b4fa,-_0x476f0f._0x42a170,-_0x476f0f._0x459fdf)],'result':_0x251d0f};if(_0x251d0f[_0x98fb0a(-_0x476f0f._0x1233f4,-0x197,-0x1bc,-_0x476f0f._0xca2372)]!==_0x98fb0a(-0xc4,-_0x476f0f._0x4fdf8f,-0x1ae,-0xda)){const _0x11d443=getRunTerminalErrorMessage(_0x251d0f),_0x3c87ea=formatAbortedRunMessage(_0x321758[_0x20b2be(-0xfe,-_0x476f0f._0x2ed83b,0x1d,0x11b)],_0x11d443);throw new ToolExecutionError(_0x3c87ea,{...createRunSummary(_0x321758),'aborted':!![],'errorMessage':_0x3c87ea});}return createRunSummaryOutput(_0x321758,'Agent\x20run\x20'+_0x321758[_0x98fb0a(-_0x476f0f._0x134111,-_0x476f0f._0x33694f,-0x10c,_0x476f0f._0x2be0be)]+_0x20b2be(-_0x476f0f._0x31bde0,-_0x476f0f._0x4cd1f3,-_0x476f0f._0x485e01,-_0x476f0f._0x364990));}catch(_0x604e3e){if(_0x604e3e instanceof ToolExecutionError)throw _0x604e3e;if(isAbortError(_0x604e3e)||_0x2c9cec['signal'][_0x20b2be(-0x27f,-_0x476f0f._0x5d617e,-0x1d7,-0x272)]||_0x37a9d8['signal'][_0x20b2be(-0x1d1,-0x13e,-0x1d7,-_0x476f0f._0x38f0e4)]){const _0x4c8f73=getRunTerminalErrorMessage(_0x321758['result'])??(_0x604e3e instanceof Error?_0x604e3e[_0x20b2be(0x2c,-_0x476f0f._0x2e81c7,0x16,_0x476f0f._0x589f9e)]:String(_0x604e3e)),_0x4db117=formatAbortedRunMessage(_0x321758[_0x20b2be(-0x7,-_0x476f0f._0x30de71,0x1d,-_0x476f0f._0x44c805)],_0x4c8f73);_0x321758={..._0x321758,'status':'aborted','errorMessage':_0x4db117};throw new ToolExecutionError(_0x4db117,{...createRunSummary(_0x321758),'aborted':!![],'errorMessage':_0x4db117});}const _0x5727cb=getRunTerminalErrorMessage(_0x321758[_0x98fb0a(-_0x476f0f._0x12b452,-0x1c3,-0x24c,-_0x476f0f._0x450b06)])??(_0x604e3e instanceof Error?_0x604e3e[_0x20b2be(-_0x476f0f._0x32eb92,0x58,0x16,-_0x476f0f._0xee3005)]:String(_0x604e3e))??_0x98fb0a(-_0x476f0f._0x5e305c,-0x2fe,-_0x476f0f._0x4375fb,-_0x476f0f._0x171dfa)+_0x321758[_0x20b2be(_0x476f0f._0x53c57c,_0x476f0f._0x2bf1b5,_0x476f0f._0x50bb76,-0x84)]+_0x20b2be(_0x476f0f._0x2c7dc3,_0x476f0f._0x187365,0x4d,_0x476f0f._0x30d636);_0x321758={..._0x321758,'status':_0x98fb0a(-_0x476f0f._0xe6c2b5,-_0x476f0f._0x2e8b0c,-0x14b,-0x26c),'errorMessage':_0x5727cb};throw new ToolExecutionError(_0x5727cb,{...createRunSummary(_0x321758),'errorMessage':_0x5727cb});}finally{_0x3e2959();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x3c0dd6){return[createAssignTaskTool(_0x3c0dd6)];}import*as _0x380f5b from'path';function buildDescription2(_0x402fdd){const _0x573a14={_0x1e0375:0x1e8,_0x49ff40:0x98,_0x5efc23:0xee,_0x58cc4b:0xc1,_0x498125:0x25b,_0xfca97c:0x2d,_0x599667:0xd2,_0x56abb2:0x109,_0x495779:0xdd,_0xb1141c:0x34,_0x33bff1:0x199,_0x3e377a:0x135},_0x490921={_0x13cb8c:0x2b,_0x1efe9a:0x1c4,_0xf8f669:0x185},_0x490f4e={_0x2dc73a:0x1c9,_0x59901a:0x1d6};if(_0x402fdd[_0x3a0ec2(0x268,_0x573a14._0x1e0375,0x2a7,0x2df)]===0x0)return _0x28fe46(-0x52,-_0x573a14._0x49ff40,-_0x573a14._0x5efc23,-0x140);const _0x49e604=[_0x28fe46(-0xbd,-_0x573a14._0x58cc4b,0x5d,0xa),_0x3a0ec2(_0x573a14._0x498125,0x330,0x1ea,0x229),_0x28fe46(0x7e,_0x573a14._0xfca97c,0x67,-0xab),_0x28fe46(0xe,-0x26,-_0x573a14._0x599667,-_0x573a14._0x56abb2),..._0x402fdd['map'](_0x2d21b4=>'-\x20'+_0x2d21b4['name']+':\x20'+_0x2d21b4[_0x28fe46(-0x122,-0x239,-0x16a,-0x169)])];function _0x3a0ec2(_0x11b3da,_0x12df6c,_0x57b2c0,_0x2d106a){return _0x22ef16(_0x11b3da,_0x2d106a-0xd5,_0x57b2c0-_0x490f4e._0x2dc73a,_0x2d106a-_0x490f4e._0x59901a);}function _0x28fe46(_0x34cbf0,_0x575897,_0x31b50f,_0x4f5728){return _0x324926(_0x34cbf0- -_0x490921._0x13cb8c,_0x575897,_0x31b50f-_0x490921._0x1efe9a,_0x4f5728-_0x490921._0xf8f669);}return _0x49e604[_0x28fe46(-_0x573a14._0x495779,-_0x573a14._0xb1141c,-_0x573a14._0x33bff1,-_0x573a14._0x3e377a)]('\x0a');}function createLoadSkillTool(_0x161f66){const _0x598420={_0x27476b:0x1ab,_0x4116b4:0xbc,_0x105aa9:0x5c,_0x5cb483:0xae,_0x412aa7:0x110,_0x2ceaa8:0x38,_0x3a39fb:0x78,_0x198454:0x8c,_0xb47b59:0xfa,_0x3b3534:0x12,_0x4eb9b7:0x1f1,_0x25ef7f:0xd3},_0x56ac6b={_0x2a73c4:0x588,_0x391117:0x67,_0x1d1ddf:0x147,_0xf67dd3:0x2a9,_0x1505be:0x2a0,_0x1745f3:0xc1,_0x28fece:0x12b,_0x5febb:0x9d,_0x3e1b5a:0x81,_0x3c2238:0x127,_0x22578a:0x54b,_0x48793d:0x49a,_0xb5448:0x507,_0x3585ef:0x37a,_0x4eb1b9:0x396,_0x5bfca0:0x3ef,_0x595b7d:0x4b3,_0x3da620:0x4af,_0x4eb62a:0x4ad,_0x5cda38:0x69,_0xe3d492:0x132,_0x48742a:0x18d,_0x186eb1:0x56c,_0x58f1f8:0x615,_0x41a1e6:0x457,_0x8a782c:0x574,_0x3f8c8c:0xc3,_0x18381a:0x18b,_0x5259e6:0x6e,_0x13ba55:0x69,_0xe11f2d:0x14e,_0x2002ec:0x51,_0x267a8b:0x71,_0x2d1c65:0x56c,_0x52bd1b:0x695},_0xb21afb={_0xc3fc8f:0xd5,_0x1d794c:0x40},_0x15bc9a={_0x233f0a:0x59},_0x1da874={_0x22c6c3:0x69};function _0x56f00f(_0x507856,_0x423afb,_0xe37f7c,_0x5466c3){return _0x324926(_0xe37f7c- -0x4c,_0x5466c3,_0xe37f7c-_0x1da874._0x22c6c3,_0x5466c3-0x6);}function _0xbc27f6(_0xdccfad,_0x2b9323,_0x3ed874,_0x148a26){return _0x324926(_0x3ed874-0x1d,_0xdccfad,_0x3ed874-0x1c7,_0x148a26-_0x15bc9a._0x233f0a);}const _0x5dc613=new Map(_0x161f66[_0xbc27f6(-_0x598420._0x27476b,-0x17d,-0x110,-0x15e)][_0xbc27f6(_0x598420._0x4116b4,_0x598420._0x105aa9,0xe3,0x1f6)](_0x5b3836=>[_0x5b3836[_0x56f00f(-0x197,0x2a,-0xd3,0x5d)],_0x5b3836])),_0x1def0e=buildDescription2(_0x161f66[_0xbc27f6(-_0x598420._0x5cb483,-0x1ea,-_0x598420._0x412aa7,-_0x598420._0x2ceaa8)]);return defineTool({'name':_0xbc27f6(_0x598420._0x3a39fb,-_0x598420._0x198454,0x40,0xb2),'description':_0x1def0e,'inputSchema':{'type':_0x56f00f(-0xa8,_0x598420._0xb47b59,0x3c,-0xe9),'properties':{'name':{'type':'string'}},'required':[_0x56f00f(-_0x598420._0x3b3534,-_0x598420._0x4eb9b7,-_0x598420._0x25ef7f,0x3f)]},async *'execute'(_0x2e1283){const _0x4dee27=_0x5dc613[_0x5b54f8(0x565,0x621,0x683,_0x56ac6b._0x2a73c4)](_0x2e1283[_0x178295(0x159,0x94,-_0x56ac6b._0x391117,0x56)]);function _0x178295(_0x4c2f86,_0x3b201f,_0x467e0d,_0x35b34b){return _0xbc27f6(_0x467e0d,_0x3b201f-_0xb21afb._0xc3fc8f,_0x3b201f-0xfe,_0x35b34b-_0xb21afb._0x1d794c);}function _0x5b54f8(_0x5547fe,_0x8e69d8,_0x4e8210,_0x575cc7){return _0xbc27f6(_0x8e69d8,_0x8e69d8-0x188,_0x5547fe-0x4a1,_0x575cc7-0x1b4);}if(!_0x4dee27){const _0x24d58e=Array[_0x178295(_0x56ac6b._0x1d1ddf,0x209,_0x56ac6b._0xf67dd3,_0x56ac6b._0x1505be)](_0x5dc613[_0x178295(0x16f,_0x56ac6b._0x1745f3,0x1c1,-0x64)]())['join'](',\x20');throw new ToolExecutionError(_0x178295(_0x56ac6b._0x28fece,-0x3,_0x56ac6b._0x5febb,-_0x56ac6b._0x3e1b5a)+_0x2e1283[_0x178295(0x180,0x94,_0x56ac6b._0x3c2238,0x196)]+_0x5b54f8(_0x56ac6b._0x22578a,_0x56ac6b._0x48793d,0x520,_0x56ac6b._0xb5448)+_0x24d58e,{'name':_0x2e1283[_0x5b54f8(0x437,_0x56ac6b._0x3585ef,_0x56ac6b._0x4eb1b9,0x4ed)]});}const _0x2f4ec0=await _0x161f66['loadSkill'](_0x4dee27),_0x4e9264=_0x4dee27['source']['directory']??_0x380f5b[_0x5b54f8(_0x56ac6b._0x5bfca0,0x3a6,0x46d,_0x56ac6b._0x595b7d)](_0x4dee27['source'][_0x5b54f8(0x591,0x61a,0x542,0x5e8)]),_0x5e7bd5=[_0x5b54f8(0x557,0x517,_0x56ac6b._0x3da620,_0x56ac6b._0x4eb62a)+_0x2f4ec0[_0x178295(_0x56ac6b._0x5cda38,0x94,0xd2,_0x56ac6b._0xe3d492)],'',_0x2f4ec0[_0x5b54f8(0x3f4,0x460,0x2d8,0x2cf)],'',_0x178295(0x20d,0xde,0x1c5,-0x52),_0x178295(_0x56ac6b._0x48742a,0x150,0x18f,0x9a)+_0x4dee27[_0x5b54f8(_0x56ac6b._0x186eb1,0x4d4,_0x56ac6b._0x58f1f8,_0x56ac6b._0x41a1e6)][_0x5b54f8(0x591,0x61e,_0x56ac6b._0x8a782c,0x5c9)],_0x178295(0x73,_0x56ac6b._0x3f8c8c,0x9e,_0x56ac6b._0x18381a)+_0x4e9264][_0x178295(-_0x56ac6b._0x5259e6,_0x56ac6b._0x13ba55,-0xab,0x48)]('\x0a');return yield createToolOutput(_0x5e7bd5,{'id':_0x2f4ec0['id'],'name':_0x2f4ec0[_0x178295(_0x56ac6b._0xe11f2d,0x94,-_0x56ac6b._0x2002ec,_0x56ac6b._0x267a8b)],'path':_0x4dee27[_0x5b54f8(_0x56ac6b._0x2d1c65,_0x56ac6b._0x52bd1b,0x4fb,0x48f)]['path'],'baseDirectory':_0x4e9264}),void 0x0;}});}import{readFile as _0xa712f2,stat as _0x21a7ff}from'fs/promises';import*as _0x5a9cac from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x324926(-0x12e,-0x47,-0x73,-0xa4),_0x22ef16(0x2bb,0x20b,0x244,0x264),_0x324926(-0x10e,-0x125,-0x1be,-0x215),_0x22ef16(0x1d7,0x196,0xcf,0x292)]),PNG_SIGNATURE=Buffer[_0x324926(0xee,0x111,0xd7,0x11b)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x528c74,_0x3f169c){const _0x4d9b91={_0x58aa9b:0x286,_0x174221:0x418,_0x31406b:0x246,_0x5593be:0x2ec,_0x222154:0x1d9,_0x117f16:0x26b,_0x150489:0x2f4,_0x271849:0x60,_0x265e39:0x36,_0x3ab90d:0x426,_0x53d29d:0x19b,_0x299c5c:0x155,_0xcf2bf8:0x21b,_0x47987e:0x16c,_0x280382:0x1d2,_0x3faf61:0x26b,_0x5a5861:0x35f,_0x9e24c1:0x49e,_0x598efc:0x4aa,_0x2ad877:0x3b2,_0x23bc8f:0x22d,_0x3e214f:0x37c,_0x2faeb9:0x3b4,_0x473d3e:0x118,_0x23aab2:0x275,_0x4f5da9:0x288,_0x176cfe:0x87,_0x253a3b:0x11a,_0x3ac51f:0xf4,_0x380a65:0x46e,_0x4c542e:0x3e7,_0x1ac92d:0x38c,_0x16506b:0x545,_0x525109:0x3fc,_0x326af7:0x4b8,_0x6f32c:0x371,_0x45bfee:0x426},_0x1b7284={_0x390dbf:0x19d,_0x50004e:0x12e,_0x13f449:0x8a},_0x138e19={_0x12f5b8:0x36a,_0x11a601:0xa,_0x4afcaf:0x1e8};if(_0x528c74[_0x11fc21(0x4ae,0x483,_0x4d9b91._0x58aa9b,0x3b2)](0x0,0x8)[_0x215bf0(-0x158,-0x166,-0x18a,-0x1e0)](PNG_SIGNATURE))return'image/png';if(_0x528c74[0x0]===0xff&&_0x528c74[0x1]===0xd8&&_0x528c74[0x2]===0xff)return'image/jpeg';function _0x11fc21(_0x1b05a2,_0x36d604,_0x3dff87,_0x28663b){return _0x324926(_0x28663b-_0x138e19._0x12f5b8,_0x1b05a2,_0x3dff87-_0x138e19._0x11a601,_0x28663b-_0x138e19._0x4afcaf);}function _0x215bf0(_0x13c9f6,_0x367806,_0x29a64c,_0x208ca7){return _0x324926(_0x29a64c- -_0x1b7284._0x390dbf,_0x13c9f6,_0x29a64c-_0x1b7284._0x50004e,_0x208ca7-_0x1b7284._0x13f449);}const _0x5a92f3=_0x528c74['subarray'](0x0,0x6)[_0x11fc21(_0x4d9b91._0x174221,0x2b4,_0x4d9b91._0x31406b,_0x4d9b91._0x5593be)](_0x215bf0(-_0x4d9b91._0x222154,-0x175,-_0x4d9b91._0x117f16,-_0x4d9b91._0x150489));if(_0x5a92f3==='GIF87a'||_0x5a92f3===_0x215bf0(_0x4d9b91._0x271849,_0x4d9b91._0x265e39,-0xcb,0x4))return _0x11fc21(0x399,0x4ec,0x3c7,_0x4d9b91._0x3ab90d);if(_0x528c74[_0x215bf0(-0xab,-_0x4d9b91._0x53d29d,-_0x4d9b91._0x299c5c,-0x7c)](0x0,0x4)[_0x215bf0(-0x167,-0xf2,-_0x4d9b91._0xcf2bf8,-0x102)](_0x215bf0(-_0x4d9b91._0x47987e,-_0x4d9b91._0x280382,-_0x4d9b91._0x3faf61,-_0x4d9b91._0x5a5861))==='RIFF'&&_0x528c74[_0x11fc21(_0x4d9b91._0x9e24c1,_0x4d9b91._0x598efc,0x2b2,_0x4d9b91._0x2ad877)](0x8,0xc)[_0x215bf0(-0x2aa,-0x2a6,-0x21b,-0x2f7)](_0x11fc21(_0x4d9b91._0x23bc8f,_0x4d9b91._0x3e214f,0x36f,0x29c))===_0x215bf0(-0x12f,-0x305,-0x22a,-0x14d))return _0x11fc21(0x57e,0x394,_0x4d9b91._0x2faeb9,0x47c);const _0x32d93f=_0x5a9cac[_0x215bf0(-0x13a,-_0x4d9b91._0x473d3e,-0x1b1,-0x26f)](_0x3f169c)['toLowerCase']();if(_0x32d93f===_0x215bf0(-_0x4d9b91._0x23aab2,-_0x4d9b91._0x4f5da9,-0x234,-0x352))return _0x215bf0(-_0x4d9b91._0x176cfe,-0x59,-_0x4d9b91._0x253a3b,-_0x4d9b91._0x3ac51f);if(_0x32d93f==='.jpg'||_0x32d93f===_0x11fc21(_0x4d9b91._0x380a65,0x39a,_0x4d9b91._0x4c542e,_0x4d9b91._0x1ac92d))return _0x11fc21(0x35d,0x56b,_0x4d9b91._0x16506b,0x47e);if(_0x32d93f==='.gif')return _0x11fc21(_0x4d9b91._0x525109,_0x4d9b91._0x326af7,_0x4d9b91._0x6f32c,_0x4d9b91._0x45bfee);if(_0x32d93f==='.webp')return'image/webp';return void 0x0;}function normalizeDetail(_0xd1b439){const _0x1a9fcb={_0x154a8c:0xb9,_0x3aad0f:0x17d,_0x538668:0x127,_0x103642:0x190,_0x56df62:0x1dc,_0x5a1f3e:0x2a9,_0x112357:0x344,_0x7c2088:0xf6,_0x4bba14:0x9a,_0x47747f:0x9e,_0x4e06eb:0x151,_0x100bc8:0x275},_0x243e2d={_0x24adec:0x46},_0x5c4a39={_0x1c9cc9:0x7a,_0x3f92f7:0xab,_0x39b98f:0xc};function _0x4e1604(_0x4aae4f,_0x44e883,_0x31c7fd,_0x403ec0){return _0x22ef16(_0x4aae4f,_0x31c7fd- -_0x5c4a39._0x1c9cc9,_0x31c7fd-_0x5c4a39._0x3f92f7,_0x403ec0-_0x5c4a39._0x39b98f);}if(_0xd1b439===void 0x0)return void 0x0;const _0x5ee0d1=_0xd1b439[_0x4e1604(0x1b4,_0x1a9fcb._0x154a8c,_0x1a9fcb._0x3aad0f,_0x1a9fcb._0x538668)]()[_0x5996d3(_0x1a9fcb._0x103642,_0x1a9fcb._0x56df62,_0x1a9fcb._0x5a1f3e,_0x1a9fcb._0x112357)]();if(!SUPPORTED_DETAILS[_0x4e1604(0x9f,0x203,_0x1a9fcb._0x7c2088,_0x1a9fcb._0x4bba14)](_0x5ee0d1))throw new ToolExecutionError(_0x4e1604(0xf0,_0x1a9fcb._0x47747f,_0x1a9fcb._0x4e06eb,_0x1a9fcb._0x100bc8)+_0xd1b439,{'detail':_0xd1b439});function _0x5996d3(_0x4e2006,_0x3f32aa,_0x300284,_0x1ae9fe){return _0x22ef16(_0x4e2006,_0x300284- -_0x243e2d._0x24adec,_0x300284-0x1f,_0x1ae9fe-0x50);}return _0x5ee0d1;}function createViewFileTool(_0x2206b5={}){const _0x3b1e06={_0x1c9759:0xf0,_0x54a457:0x33,_0x355abe:0x25,_0x24619a:0x3,_0x4f85eb:0x78,_0x5324ab:0xdb,_0x2295ae:0xef,_0x4f9612:0xbb,_0x593eb0:0x137,_0x391f85:0x65,_0x586d64:0x9c,_0x1f7eab:0x10b,_0x1d3cbe:0x58,_0x5a077b:0x13e,_0x982526:0x62,_0x4ad9a3:0xb2,_0x5c8341:0xdd,_0x4d0d00:0x5f,_0x3251f7:0x1d4,_0x1776ef:0x5d},_0x4f83a6={_0xbd6cb7:0x5eb,_0xe7f3f1:0x5cf,_0x843ca8:0x556,_0x24adb3:0x308,_0x2a265b:0x43e,_0x58074e:0x4b9,_0x2e44ca:0x515,_0x3dc98b:0x532,_0x44f8af:0x320,_0x442eea:0x3d2,_0x2457e9:0x3a1,_0x44db31:0x584,_0x13f2f4:0x4f9,_0x224b53:0x408,_0x2c3dbb:0x5a1,_0x2ab548:0x597,_0xd9a137:0x22,_0x568a04:0x136,_0x380b78:0x1ac,_0x19e810:0x2ce,_0x125074:0x32b,_0x38e6c7:0x3b1,_0xa74441:0x417,_0x2b4dc2:0x308,_0x132778:0x421,_0x2c4f3c:0x214,_0x9c4ee5:0x220,_0x4eae64:0x2c7,_0x500d47:0x28b,_0x2462eb:0x2eb,_0x31c269:0x1b5,_0x29b332:0x2dc,_0x2c9933:0x344,_0x4d6bb6:0x23a,_0x4ee3f7:0x226,_0x4df589:0x2d7,_0x266d24:0x1b7,_0x18657c:0x169,_0x11a7b3:0x534,_0x25c950:0x527,_0x1d4212:0x5cd,_0x54c695:0x389,_0x112b68:0x3e1,_0x8ce7bd:0x501,_0x1f881f:0x348,_0x57975e:0x2eb,_0x4772da:0x3dd,_0x420e56:0x2f6,_0x3fe73a:0x2b0},_0x317455={_0x1ee070:0x15c,_0x4e4cc2:0x435,_0x17624d:0x13e},_0x2f8c69={_0x41345e:0x1b4,_0x545d29:0x1dc},_0x22a5a8={_0x17168e:0x22d,_0x1bbf1e:0x84,_0x146130:0x137},_0x357f18=_0x5a9cac[_0x5209ee(-0x5c,-_0x3b1e06._0x1c9759,-0x6a,-0x35)](_0x2206b5[_0x5209ee(_0x3b1e06._0x54a457,_0x3b1e06._0x355abe,-_0x3b1e06._0x24619a,-_0x3b1e06._0x4f85eb)]??process[_0xc1e682(-0x148,-0x167,-_0x3b1e06._0x5324ab,-0x147)]()),_0x48071c=(_0x2206b5[_0xc1e682(-0x73,_0x3b1e06._0x2295ae,0x3b,_0x3b1e06._0x4f9612)]??[])['map'](_0x2e830e=>_0x5a9cac['resolve'](_0x2e830e));function _0x5209ee(_0x29ce90,_0x38482e,_0x4e70aa,_0x4156d7){return _0x22ef16(_0x38482e,_0x29ce90- -_0x22a5a8._0x17168e,_0x4e70aa-_0x22a5a8._0x1bbf1e,_0x4156d7-_0x22a5a8._0x146130);}function _0xc1e682(_0x342b64,_0x20241c,_0x1c97a6,_0x35ee3f){return _0x22ef16(_0x342b64,_0x1c97a6- -0x1d4,_0x1c97a6-_0x2f8c69._0x41345e,_0x35ee3f-_0x2f8c69._0x545d29);}const _0x5cda6e=_0x2206b5[_0x5209ee(-0x109,-_0x3b1e06._0x593eb0,-0x18e,-0x4e)]??DEFAULT_MAX_BYTES,_0x237f48=_0x2206b5[_0x5209ee(-0xb6,-0x1e,_0x3b1e06._0x391f85,-0x149)]??_0xc1e682(-0x14d,-_0x3b1e06._0x586d64,-_0x3b1e06._0x1f7eab,-0x11b);return defineTool({'name':_0x237f48,'description':_0x5209ee(-0x5a,-0x14,_0x3b1e06._0x1d3cbe,0xb4),'inputSchema':{'type':_0xc1e682(_0x3b1e06._0x5a077b,-_0x3b1e06._0x982526,_0x3b1e06._0x4ad9a3,_0x3b1e06._0x5c8341),'properties':{'path':{'type':_0xc1e682(0xd7,_0x3b1e06._0x4d0d00,0xb9,-0x25)},'detail':{'type':_0xc1e682(0x1b5,_0x3b1e06._0x3251f7,0xb9,_0x3b1e06._0x1776ef)}},'required':['path']},async *'execute'(_0x868aa5){const _0x2f00f9={_0x121881:0x1cf},_0x3c48b8=resolveAllowedPath(_0x357f18,_0x48071c,_0x868aa5[_0x22082d(0x595,_0x4f83a6._0xbd6cb7,_0x4f83a6._0xe7f3f1,0x532)]);await assertWorkspaceFile(_0x3c48b8);const _0x5a59c2=await _0x21a7ff(_0x3c48b8);if(_0x5a59c2[_0x22082d(0x55d,0x562,_0x4f83a6._0x843ca8,0x44a)]>_0x5cda6e)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x868aa5[_0x50a917(0x2eb,0x215,_0x4f83a6._0x24adb3,0x26c)],{'path':_0x868aa5[_0x22082d(_0x4f83a6._0x2a265b,_0x4f83a6._0x58074e,_0x4f83a6._0x2e44ca,_0x4f83a6._0x3dc98b)],'maxBytes':_0x5cda6e,'size':_0x5a59c2['size']});const _0x382da6=await _0xa712f2(_0x3c48b8),_0x173d70=detectImageMediaType(_0x382da6,_0x3c48b8);if(!_0x173d70)throw new ToolExecutionError(_0x22082d(0x46c,_0x4f83a6._0x44f8af,_0x4f83a6._0x442eea,_0x4f83a6._0x2457e9)+_0x868aa5[_0x22082d(0x4c4,_0x4f83a6._0x44db31,_0x4f83a6._0x13f2f4,_0x4f83a6._0x3dc98b)],{'path':_0x868aa5[_0x50a917(0x35e,0x407,0x308,0x3f2)],'supported':[_0x22082d(_0x4f83a6._0x224b53,0x45d,0x4bb,0x4d0),_0x22082d(0x378,_0x4f83a6._0x2c3dbb,_0x4f83a6._0x2ab548,0x481),'.jpg','.png',_0x50a917(0x16c,_0x4f83a6._0xd9a137,_0x4f83a6._0x568a04,0x1c6)]});const _0x3d0b6e=normalizeDetail(_0x868aa5[_0x50a917(0x32c,_0x4f83a6._0x380b78,0x284,_0x4f83a6._0x19e810)]),_0x190d83=[_0x50a917(0x2c9,0x394,_0x4f83a6._0x125074,0x419)+_0x868aa5[_0x50a917(_0x4f83a6._0x38e6c7,_0x4f83a6._0xa74441,_0x4f83a6._0x2b4dc2,0x3d5)],_0x50a917(0x254,0x32b,0x2cc,0x387)+_0x173d70,_0x50a917(0x3f7,0x2c4,0x327,_0x4f83a6._0x132778)+_0x5a59c2[_0x50a917(_0x4f83a6._0x2c4f3c,0x2bc,_0x4f83a6._0x9c4ee5,0x1a5)]+_0x50a917(0x1f9,0x2bf,_0x4f83a6._0x4eae64,_0x4f83a6._0x500d47)][_0x22082d(0x551,0x4f0,0x492,0x4ab)](_0x3d0b6e?[_0x50a917(_0x4f83a6._0x2462eb,0x213,0x1d8,_0x4f83a6._0x31c269)+_0x3d0b6e]:[])[_0x22082d(_0x4f83a6._0x29b332,_0x4f83a6._0x2c9933,0x4d6,0x3ad)]('\x0a');function _0x22082d(_0x31811c,_0xfe948c,_0x2c79c0,_0x31c38c){return _0xc1e682(_0x2c79c0,_0xfe948c-_0x317455._0x1ee070,_0x31c38c-_0x317455._0x4e4cc2,_0x31c38c-_0x317455._0x17624d);}const _0x2cfe4d=[{'type':_0x50a917(_0x4f83a6._0x4d6bb6,0x25b,_0x4f83a6._0x4ee3f7,0x2b7),'source':{'type':'base64','media_type':_0x173d70,'data':_0x382da6[_0x50a917(_0x4f83a6._0x4df589,0x1a4,_0x4f83a6._0x266d24,_0x4f83a6._0x18657c)](_0x22082d(_0x4f83a6._0x11a7b3,_0x4f83a6._0x25c950,_0x4f83a6._0x1d4212,0x538))}},{'type':'text','text':_0x190d83}];function _0x50a917(_0x29adae,_0x2e7e08,_0x369a18,_0x5f0de1){return _0x5209ee(_0x369a18-0x264,_0x29adae,_0x369a18-0xcd,_0x5f0de1-_0x2f00f9._0x121881);}return yield createToolOutput(_0x190d83,{'path':_0x868aa5['path'],'resolvedPath':_0x3c48b8,'created':_0x5a59c2[_0x22082d(_0x4f83a6._0x54c695,0x37d,_0x4f83a6._0x112b68,0x447)]['toISOString'](),'modified':_0x5a59c2[_0x22082d(_0x4f83a6._0x8ce7bd,0x456,_0x4f83a6._0x1f881f,0x40a)][_0x50a917(0x213,0x1f9,_0x4f83a6._0x57975e,0x23c)](),'size':_0x5a59c2['size'],'mimeType':_0x173d70,'encoding':_0x50a917(_0x4f83a6._0x4772da,_0x4f83a6._0x420e56,0x30e,_0x4f83a6._0x3fe73a),..._0x3d0b6e?{'detail':_0x3d0b6e}:{}},_0x2cfe4d),void 0x0;}});}import _0x46bcb6 from'turndown';var USER_AGENT=_0x324926(0xe3,0xe6,0x1a4,0x14b),DEFAULT_MAX_BYTES2=0xf4240,DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x944e0b){const _0x27054c={_0x5073ec:0x4cd,_0x5e97c2:0x46d,_0x1c39ee:0x42c,_0x3e7d29:0x45e,_0x10f084:0x13a,_0x2141b7:0x109,_0x43159f:0x3e,_0xb60925:0x17d,_0x376c1a:0x5ee,_0xa0e29c:0x4da,_0x3da3e4:0x41,_0x15b715:0x4,_0x3a0038:0x4ee,_0x430ad5:0x577,_0x1d8532:0x10c,_0x5b415a:0xc0},_0x643d6={_0x4ecd78:0x21f,_0x1eb2bb:0x10d,_0x1f1494:0x161};let _0x3610cb;try{_0x3610cb=new URL(_0x944e0b);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x944e0b});}function _0x5f4658(_0x23b16d,_0x5a3683,_0x50b0a2,_0x406a46){return _0x22ef16(_0x5a3683,_0x406a46-_0x643d6._0x4ecd78,_0x50b0a2-_0x643d6._0x1eb2bb,_0x406a46-_0x643d6._0x1f1494);}function _0x495819(_0x183ae7,_0x686d79,_0x179014,_0x2f5252){return _0x22ef16(_0x686d79,_0x183ae7- -0x188,_0x179014-0x1ad,_0x2f5252-0xce);}if(_0x3610cb[_0x5f4658(_0x27054c._0x5073ec,0x46f,_0x27054c._0x5e97c2,0x4e1)]!==_0x5f4658(0x3e0,_0x27054c._0x1c39ee,_0x27054c._0x3e7d29,0x3c7)&&_0x3610cb[_0x495819(_0x27054c._0x10f084,_0x27054c._0x2141b7,_0x27054c._0x43159f,_0x27054c._0xb60925)]!==_0x495819(-0xb0,-0x1a0,0x79,-0x180))throw new ToolExecutionError(_0x5f4658(_0x27054c._0x376c1a,_0x27054c._0xa0e29c,0x4ee,0x4d2),{'url':_0x944e0b});if(_0x3610cb[_0x495819(0x7f,0x41,_0x27054c._0x3da3e4,-_0x27054c._0x15b715)]||_0x3610cb['password'])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3610cb[_0x5f4658(_0x27054c._0x3a0038,_0x27054c._0x430ad5,0x49c,0x4e1)]+'//'+_0x3610cb['host']+_0x3610cb[_0x495819(_0x27054c._0x1d8532,0x183,_0x27054c._0x43159f,_0x27054c._0x5b415a)]});return _0x3610cb;}function parseContentLength(_0x31c5d5){if(!_0x31c5d5)return void 0x0;const _0x5832fe=Number(_0x31c5d5);return Number['isFinite'](_0x5832fe)&&_0x5832fe>=0x0?_0x5832fe:void 0x0;}function createTimeoutSignal(_0x3cadc7,_0x40fa5c){const _0x4338a9={_0x36d915:0xeb,_0x486e61:0x1b0,_0x19d515:0xfc,_0x3b89c5:0x122,_0x2bbea6:0x86,_0x4e76b9:0x169,_0x57c7af:0x1db},_0x1a0f2c={_0x55b319:0x58d,_0x2f93af:0x543,_0x4c3c39:0x24b,_0x43d758:0x366,_0x2d620a:0x26e},_0x2a3176={_0x52ed49:0x4d},_0xaf74a8=new AbortController();function _0x203bad(_0x24213f,_0x547a8f,_0x37074d,_0x543622){return _0x324926(_0x547a8f-0x1d0,_0x24213f,_0x37074d-0xa7,_0x543622-0xa3);}const _0x1f49c2=setTimeout(()=>_0xaf74a8[_0x203bad(0x249,0x169,0x1ae,0x110)](new Error('Fetch\x20timed\x20out')),_0x40fa5c),_0x45713d=()=>_0xaf74a8[_0x5359c4(0x15e,0x9c,0x128,0x20f)](_0x3cadc7[_0x5359c4(0xe3,0x86,0x1b2,0x27)]);function _0x5359c4(_0x31b885,_0x2ccb59,_0xab6d9f,_0x828324){return _0x324926(_0x31b885-0x1c5,_0x828324,_0xab6d9f-_0x2a3176._0x52ed49,_0x828324-0xa8);}return _0x3cadc7[_0x203bad(0x118,0xa6,0x1c4,_0x4338a9._0x36d915)]?_0xaf74a8['abort'](_0x3cadc7[_0x203bad(_0x4338a9._0x486e61,0xee,0xea,_0x4338a9._0x19d515)]):_0x3cadc7[_0x5359c4(0xb0,_0x4338a9._0x3b89c5,0x1a2,0x1a4)](_0x203bad(_0x4338a9._0x2bbea6,_0x4338a9._0x4e76b9,_0x4338a9._0x57c7af,0xae),_0x45713d,{'once':!![]}),{'signal':_0xaf74a8['signal'],'cleanup':()=>{const _0x17cb87={_0x29c026:0x28d,_0x1a62c3:0x1b},_0x42d270={_0x4debfc:0x1fd,_0xe292ab:0xb2};function _0x187bf7(_0x2d2e38,_0x56646c,_0x4fa5dd,_0x5088ca){return _0x203bad(_0x2d2e38,_0x56646c-_0x42d270._0x4debfc,_0x4fa5dd-0xef,_0x5088ca-_0x42d270._0xe292ab);}function _0x42afbb(_0x54cfb5,_0x1dbf6a,_0x432dd7,_0x3a5a72){return _0x203bad(_0x432dd7,_0x1dbf6a-_0x17cb87._0x29c026,_0x432dd7-_0x17cb87._0x1a62c3,_0x3a5a72-0x15b);}clearTimeout(_0x1f49c2),_0x3cadc7[_0x187bf7(0x57e,0x4eb,_0x1a0f2c._0x55b319,_0x1a0f2c._0x2f93af)](_0x187bf7(_0x1a0f2c._0x4c3c39,_0x1a0f2c._0x43d758,0x3ea,_0x1a0f2c._0x2d620a),_0x45713d);}};}function createWebFetchTool(_0xcaf1b3={}){const _0x311e44={_0x482fba:0x24d,_0x3585de:0x26f,_0xe28312:0x320,_0x33eec5:0x157,_0x2bea99:0x30d,_0x403322:0x386,_0x2cdabd:0x313,_0x424e77:0x14d,_0x814c47:0x287,_0x5cfbb9:0x37f,_0x3995f5:0x1cb,_0x34d684:0x3f6,_0xaeafa2:0x286,_0x5ba235:0x21f,_0xdf9c7:0x2a3,_0x333eff:0x31a,_0x321f68:0x475,_0x2e998e:0x3a3,_0x2b691f:0x3c2,_0x150bab:0x39a,_0x353514:0x2bf,_0x1282ed:0x2c0},_0x3aad01={_0x13c93d:0x3be,_0x1f3cb9:0x2b0,_0x55df53:0x26f,_0x1f9979:0x161,_0x511bda:0x12d,_0x58f6fe:0x2c4,_0x1e4c9c:0x4a0,_0x54c46d:0x225,_0x2ba05a:0x300,_0x1b489b:0x299,_0x1f0d28:0x44e,_0x396cfd:0x29d,_0x471217:0x342,_0x363ffb:0x2f7,_0x5cc174:0x3c0,_0x2a9a88:0x3fe,_0x3a46dd:0x56a,_0x5eeb2c:0x371,_0x5b25eb:0x4d7,_0x1c0403:0x4ce,_0x8eb19b:0x584,_0x165dd2:0x2ac,_0x2b70ba:0x2b4,_0x2bcebd:0x214,_0xfb6afb:0x412,_0x4b0c61:0x3c0,_0x1c5c10:0x4f1,_0x433054:0x3bf,_0x5ee7d3:0x3e4,_0x594251:0x4f2,_0x2cab00:0x5bb,_0x1f8fb1:0x4ca,_0x178b80:0x1df,_0x208c57:0x27b,_0x4952de:0x256,_0x4a0b8e:0x2ce,_0x32a1a0:0x472,_0x4b90f0:0x4c2,_0x5263ee:0x455,_0x311207:0x51d,_0x3331d8:0x2ea,_0x1d6358:0x3ec,_0x32792c:0x296,_0x126e7e:0x4c9,_0x10ca46:0x562,_0x3b62e1:0x448},_0x3490d0={_0x66183e:0x62,_0x134f2d:0x1a2},_0xf703c3={_0xe4f224:0x11d},_0x44577b={_0x2dfb6d:0x33};function _0x41440d(_0x5ecc3b,_0x5d96cb,_0x577af9,_0x2acbc0){return _0x22ef16(_0x5d96cb,_0x2acbc0-_0x44577b._0x2dfb6d,_0x577af9-0xbd,_0x2acbc0-0x74);}const _0x502872=_0xcaf1b3[_0x2b1679(0x193,_0x311e44._0x482fba,0x2bb,0x294)]??_0x41440d(_0x311e44._0x3585de,0x32f,0x336,_0x311e44._0xe28312),_0x57155a=_0xcaf1b3[_0x41440d(0x1f5,0x183,0xe6,_0x311e44._0x33eec5)]??DEFAULT_MAX_BYTES2,_0x55e2b1=_0xcaf1b3[_0x41440d(_0x311e44._0x2bea99,0x2f4,0x126,0x23f)]??DEFAULT_TIMEOUT_MS2;function _0x2b1679(_0x6a3eed,_0x518a1a,_0x208e68,_0x49655f){return _0x22ef16(_0x518a1a,_0x49655f-_0xf703c3._0xe4f224,_0x208e68-0x1b9,_0x49655f-0x9b);}const _0x4262cd=new _0x46bcb6({'headingStyle':_0x41440d(_0x311e44._0x403322,0x139,_0x311e44._0x2cdabd,0x25e),'codeBlockStyle':_0x41440d(0x1a6,0x20,_0x311e44._0x424e77,0x125),'bulletListMarker':'-'});return _0x4262cd[_0x41440d(0x1df,0x2d0,0x2b0,_0x311e44._0x814c47)]([_0x2b1679(_0x311e44._0x5cfbb9,0x45b,0x34e,0x365),'style',_0x41440d(0x28c,0x233,0x1c7,0x27f),_0x41440d(0x2ea,0xb1,0x2bd,_0x311e44._0x3995f5),'nav',_0x2b1679(0x1da,0x31b,_0x311e44._0x34d684,0x2f5),_0x41440d(0x391,_0x311e44._0xaeafa2,0x199,0x26c),_0x41440d(0x1f4,_0x311e44._0x5ba235,0x21b,_0x311e44._0xdf9c7)]),defineTool({'name':_0x502872,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x2b1679(0x2fe,_0x311e44._0x333eff,_0x311e44._0x321f68,_0x311e44._0x2e998e),'properties':{'description':{'type':_0x2b1679(_0x311e44._0x2b691f,_0x311e44._0x150bab,0x2e5,0x3aa)},'url':{'type':_0x41440d(0x355,0x230,_0x311e44._0x353514,_0x311e44._0x1282ed)}},'required':['url']},async *'execute'(_0x34f608,_0xbc502a){const _0x46b27b={_0x3d20a7:0x100,_0x352801:0xfd},_0x468f27=assertFetchableUrl(_0x34f608['url'])[_0x483372(0x20e,_0x3aad01._0x13c93d,0x1fb,_0x3aad01._0x1f3cb9)]();if(_0xbc502a['signal'][_0x49d84a(0x393,0x455,_0x3aad01._0x55df53,0x39d)])throw new ToolExecutionError(_0x49d84a(0x42e,0x551,0x3e7,0x3d3),{'url':_0x468f27});const _0x4a2043=createTimeoutSignal(_0xbc502a['signal'],_0x55e2b1);function _0x483372(_0x48576b,_0x2777e9,_0x2b0ad9,_0x554506){return _0x41440d(_0x48576b-0x7c,_0x2777e9,_0x2b0ad9-_0x46b27b._0x3d20a7,_0x554506-_0x46b27b._0x352801);}let _0x445ff8='';function _0x49d84a(_0xb85e7a,_0x539ed8,_0x29b3b0,_0x269516){return _0x2b1679(_0xb85e7a-0x1ec,_0x269516,_0x29b3b0-_0x3490d0._0x66183e,_0xb85e7a-_0x3490d0._0x134f2d);}let _0x51fc78=0x0,_0x50c2e8;try{const _0x152279=await fetch(_0x468f27,{'headers':{'User-Agent':USER_AGENT},'signal':_0x4a2043['signal']});if(!_0x152279['ok'])throw new ToolExecutionError('HTTP\x20'+_0x152279['status']+'\x20'+_0x152279[_0x483372(_0x3aad01._0x1f9979,_0x3aad01._0x511bda,_0x3aad01._0x58f6fe,0x212)],{'url':_0x468f27,'statusCode':_0x152279[_0x49d84a(0x4d7,0x566,0x4f1,_0x3aad01._0x1e4c9c)]});const _0x1ff4ac=parseContentLength(_0x152279[_0x483372(_0x3aad01._0x54c46d,0x384,0x286,_0x3aad01._0x2ba05a)]['get']('content-length'));if(_0x1ff4ac!==void 0x0&&_0x1ff4ac>_0x57155a)throw new ToolExecutionError('Response\x20too\x20large:\x20'+_0x1ff4ac+_0x49d84a(0x37f,_0x3aad01._0x1b489b,0x4a3,_0x3aad01._0x1f0d28)+_0x57155a+_0x483372(_0x3aad01._0x396cfd,_0x3aad01._0x471217,_0x3aad01._0x363ffb,_0x3aad01._0x5cc174),{'url':_0x468f27,'statusCode':_0x152279['status'],'contentLength':_0x1ff4ac,'maxBytes':_0x57155a});_0x445ff8=_0x152279[_0x49d84a(0x48f,_0x3aad01._0x2a9a88,0x487,0x401)][_0x49d84a(0x564,0x59e,0x624,0x46a)]('content-type')??'',_0x51fc78=_0x152279[_0x49d84a(0x4d7,_0x3aad01._0x3a46dd,0x4c8,0x48e)],_0x50c2e8=await _0x152279[_0x483372(0x43d,0x498,0x3ae,_0x3aad01._0x5eeb2c)]();}catch(_0x59f07c){if(_0x59f07c instanceof ToolExecutionError)throw _0x59f07c;const _0x3d43cd=_0x59f07c instanceof Error?_0x59f07c[_0x49d84a(0x580,_0x3aad01._0x5b25eb,_0x3aad01._0x1c0403,_0x3aad01._0x8eb19b)]:String(_0x59f07c);throw new ToolExecutionError(_0x3d43cd,{'url':_0x468f27});}finally{_0x4a2043['cleanup']();}if(Buffer[_0x483372(0x27b,0x1bd,0x342,_0x3aad01._0x165dd2)](_0x50c2e8,_0x483372(0x278,0x3ba,_0x3aad01._0x2b70ba,0x2ff))>_0x57155a)throw new ToolExecutionError(_0x483372(0x222,0x2da,0x1a1,_0x3aad01._0x2bcebd)+_0x57155a+_0x483372(_0x3aad01._0xfb6afb,0x4d8,0x325,_0x3aad01._0x4b0c61),{'url':_0x468f27,'statusCode':_0x51fc78,'maxBytes':_0x57155a});const _0x3fc7c3=new Date()[_0x483372(0x458,_0x3aad01._0x1c5c10,_0x3aad01._0x433054,_0x3aad01._0x5ee7d3)]();let _0x1f239b,_0x555aaf;if(_0x445ff8[_0x49d84a(0x44e,0x39b,0x4cb,0x4ce)](_0x49d84a(0x40c,_0x3aad01._0x594251,0x467,0x3d1)))_0x1f239b=_0x49d84a(0x4cf,0x4e6,_0x3aad01._0x2cab00,_0x3aad01._0x1f8fb1)+_0x50c2e8+_0x483372(_0x3aad01._0x178b80,0x217,_0x3aad01._0x208c57,0x1fd),_0x555aaf=_0x483372(0x293,_0x3aad01._0x4952de,0x3ab,_0x3aad01._0x4a0b8e);else _0x445ff8[_0x49d84a(_0x3aad01._0x1f0d28,0x383,_0x3aad01._0x32a1a0,0x445)]('text/html')?(_0x1f239b=_0x4262cd['turndown'](_0x50c2e8),_0x555aaf=_0x49d84a(_0x3aad01._0x4b90f0,0x425,_0x3aad01._0x5263ee,_0x3aad01._0x311207)):(_0x1f239b=_0x50c2e8,_0x555aaf=_0x483372(_0x3aad01._0x3331d8,_0x3aad01._0x1d6358,_0x3aad01._0x32792c,_0x3aad01._0x5eeb2c));return yield createToolOutput(_0x1f239b,{'url':_0x468f27,'contentType':_0x445ff8,'statusCode':_0x51fc78,'format':_0x555aaf,'size':_0x50c2e8[_0x49d84a(_0x3aad01._0x126e7e,_0x3aad01._0x10ca46,0x587,_0x3aad01._0x3b62e1)],'fetchedAt':_0x3fc7c3}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x22ef16(0x21,0xc1,-0x44,0xfb);function normalizeUrl(_0x29834a){const _0x1cba76={_0xd7eb7d:0x641,_0x4060a7:0x281,_0x3bff72:0x2c8,_0x166260:0x38e,_0x465b23:0x439,_0x1c7871:0x356,_0x1ebe0e:0x316,_0x4d058c:0x37e,_0x1504fc:0x2c5,_0x19d9d8:0x339,_0x43ca09:0x412,_0x57ceac:0x446,_0xf9184a:0x384,_0x39488c:0x36f,_0x3bfefd:0x3dd},_0x37e400={_0x498014:0x1bc,_0x113996:0x33},_0x51fb21={_0x52b1ab:0x180};function _0x47e595(_0x5cc967,_0x14267d,_0x54cbb1,_0x5c5db9){return _0x22ef16(_0x54cbb1,_0x5cc967-0x1f6,_0x54cbb1-0xf0,_0x5c5db9-_0x51fb21._0x52b1ab);}function _0x38af5a(_0x4d1338,_0x2b971a,_0x319164,_0x347157){return _0x22ef16(_0x4d1338,_0x319164-0x214,_0x319164-_0x37e400._0x498014,_0x347157-_0x37e400._0x113996);}try{const _0x914d54=new URL(_0x29834a);for(const _0x28846e of[_0x47e595(0x513,0x5cf,0x46f,_0x1cba76._0xd7eb7d),'utm_medium','utm_campaign',_0x38af5a(_0x1cba76._0x4060a7,_0x1cba76._0x3bff72,_0x1cba76._0x166260,_0x1cba76._0x465b23),'utm_content',_0x38af5a(0x1f9,_0x1cba76._0x1c7871,_0x1cba76._0x1ebe0e,0x302),_0x47e595(0x322,_0x1cba76._0x4d058c,_0x1cba76._0x1504fc,0x396),_0x47e595(_0x1cba76._0x19d9d8,0x2f5,0x23c,_0x1cba76._0x43ca09),_0x47e595(_0x1cba76._0x57ceac,0x463,0x376,0x4cc)]){_0x914d54['searchParams'][_0x38af5a(_0x1cba76._0xf9184a,0x502,0x48d,0x480)](_0x28846e);}return _0x914d54[_0x38af5a(_0x1cba76._0x39488c,_0x1cba76._0x3bfefd,0x394,0x48d)]();}catch{return _0x29834a;}}function cseDateRestrict(_0x1d5b0f){const _0x2d7c40={_0x38af2d:0xcd,_0x28ba6c:0x127,_0x3c7b5e:0x1f7,_0x25685c:0x286,_0x5a6ed7:0x2ac},_0x5bcb44={_0x28a1d2:0x3b5,_0x330aeb:0x1ae,_0x1262f1:0xc4},_0x532b0b={_0x367df2:0x3e2};function _0x414920(_0x4bd1b1,_0x817edc,_0xbfd64a,_0x5cfd5f){return _0x22ef16(_0x4bd1b1,_0x5cfd5f- -_0x532b0b._0x367df2,_0xbfd64a-0x1,_0x5cfd5f-0xf1);}if(_0x1d5b0f<=0x0)return void 0x0;if(_0x1d5b0f<=0x1e)return'd'+Math[_0x414920(-0x223,-_0x2d7c40._0x38af2d,-0x15b,-0x1e7)](0x1,Math[_0x41b886(-0x24c,-_0x2d7c40._0x28ba6c,-_0x2d7c40._0x3c7b5e,-0x249)](_0x1d5b0f));if(_0x1d5b0f<=0x16d)return'm'+Math[_0x414920(-_0x2d7c40._0x25685c,-0x1d8,-_0x2d7c40._0x5a6ed7,-0x2b5)](_0x1d5b0f/0x1e);function _0x41b886(_0x46c469,_0x251743,_0x3a86f7,_0x2c7ce0){return _0x22ef16(_0x251743,_0x3a86f7- -_0x5bcb44._0x28a1d2,_0x3a86f7-_0x5bcb44._0x330aeb,_0x2c7ce0-_0x5bcb44._0x1262f1);}return'y'+Math['ceil'](_0x1d5b0f/0x16d);}function addSiteFilters(_0x45b3a2,_0x36ae62){const _0x7d9b85={_0x4c540e:0x1c,_0x26c2e:0x33,_0x34c433:0xf8,_0xbf65ec:0x3d,_0x46013d:0xda,_0x2da360:0x93,_0xeca2fc:0x17a,_0x386bdf:0x2c0,_0x18b83b:0x19f,_0x4abe7d:0x26e},_0x31ebad={_0x2d76e3:0x53},_0x46c8d3={_0x42a396:0x198,_0x1b57ed:0x106};function _0x564ec4(_0xf4cd05,_0x28fac7,_0x2e48ee,_0x41f4cc){return _0x324926(_0x2e48ee- -_0x46c8d3._0x42a396,_0xf4cd05,_0x2e48ee-0x19b,_0x41f4cc-_0x46c8d3._0x1b57ed);}function _0x3c9f35(_0x5e67da,_0x185997,_0x3fb5cd,_0x450930){return _0x324926(_0x5e67da- -0x28,_0x450930,_0x3fb5cd-_0x31ebad._0x2d76e3,_0x450930-0x15e);}if(_0x36ae62[_0x3c9f35(-_0x7d9b85._0x4c540e,-_0x7d9b85._0x26c2e,_0x7d9b85._0x34c433,-_0x7d9b85._0xbf65ec)]===0x0)return _0x45b3a2['trim']();return(_0x45b3a2+'\x20('+_0x36ae62['map'](_0x28051f=>_0x3c9f35(-0xff,-0x68,-0xb2,-0xf6)+_0x28051f)[_0x3c9f35(-_0x7d9b85._0x46013d,-_0x7d9b85._0x2da360,0x1c,-_0x7d9b85._0xeca2fc)]('\x20OR\x20')+')')[_0x564ec4(-_0x7d9b85._0x386bdf,-0xd5,-_0x7d9b85._0x18b83b,-_0x7d9b85._0x4abe7d)]();}function normalizeType(_0x372edd){const _0x56ab8d={_0x254fba:0x380,_0x52495e:0x404,_0x1338b0:0x24b,_0x3274d5:0x355},_0x2e13b6={_0x4033e0:0x432,_0x3e95f6:0x99},_0x112762={_0x5c7df2:0x8e,_0x3b4375:0x165,_0x139238:0xa8};function _0xaec035(_0xb82538,_0x535bfc,_0x15ceb0,_0x15f71a){return _0x22ef16(_0x15ceb0,_0x15f71a-_0x112762._0x5c7df2,_0x15ceb0-_0x112762._0x3b4375,_0x15f71a-_0x112762._0x139238);}function _0x496aed(_0x77431d,_0x51ec13,_0x676a77,_0x1b812c){return _0x324926(_0x51ec13-_0x2e13b6._0x4033e0,_0x1b812c,_0x676a77-0x25,_0x1b812c-_0x2e13b6._0x3e95f6);}return _0x372edd===_0xaec035(0x355,0x35b,0x4af,_0x56ab8d._0x254fba)?_0xaec035(0x3f7,0x282,_0x56ab8d._0x52495e,0x380):_0xaec035(0x406,_0x56ab8d._0x1338b0,0x456,_0x56ab8d._0x3274d5);}async function fetchJson(_0x5292b5,_0x1bcb40){const _0x2e1268={_0x414779:0x36f,_0x5f48c3:0x4af,_0x3ba37b:0x418,_0x48eb5f:0x3c6,_0x317094:0x202,_0x2ef354:0x267,_0x2cd286:0x380,_0x1411a7:0x44a,_0x544edc:0x448,_0x44aaa2:0x3ba,_0x570edc:0x324,_0x5605a4:0x1c7,_0x209b7e:0x284,_0x34239d:0x236,_0x2f0328:0x173,_0x2acc25:0x46},_0x2bcacc={_0x598d39:0x113,_0x395b59:0x1e8};function _0x494d1f(_0x5c6d9a,_0x1f6a90,_0x4ce69a,_0xcb365f){return _0x324926(_0x1f6a90-0x3a0,_0x5c6d9a,_0x4ce69a-0x32,_0xcb365f-0x162);}const _0x312f0f=await fetch(_0x5292b5,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x494d1f(0x1dd,0x2ef,0x1f5,0x3ef)},'signal':_0x1bcb40});if(!_0x312f0f['ok']){await _0x312f0f[_0x494d1f(_0x2e1268._0x414779,0x3a8,0x314,_0x2e1268._0x5f48c3)]?.[_0x494d1f(0x54b,0x45e,_0x2e1268._0x3ba37b,_0x2e1268._0x48eb5f)]()[_0x494d1f(_0x2e1268._0x317094,_0x2e1268._0x2ef354,0x21f,_0x2e1268._0x2cd286)](()=>void 0x0);throw new ToolExecutionError(_0x494d1f(0x4e8,_0x2e1268._0x1411a7,_0x2e1268._0x544edc,0x51b)+_0x312f0f[_0x494d1f(0x360,_0x2e1268._0x44aaa2,_0x2e1268._0x570edc,0x301)]+'\x20'+_0x312f0f[_0x494d1f(_0x2e1268._0x5605a4,_0x2e1268._0x209b7e,_0x2e1268._0x34239d,0x2e3)],{'statusCode':_0x312f0f['status']});}function _0x279b32(_0x1a840f,_0x287a36,_0x2838da,_0x49e90d){return _0x324926(_0x2838da- -_0x2bcacc._0x598d39,_0x287a36,_0x2838da-0x5,_0x49e90d-_0x2bcacc._0x395b59);}return await _0x312f0f[_0x279b32(-0x278,-0x1a3,-_0x2e1268._0x2f0328,-_0x2e1268._0x2acc25)]();}async function hydrateResults(_0x60ecf9,_0x1ad353,_0x3b5c9f){const _0x1ce703={_0xa08d19:0x46f,_0xe57096:0x38c,_0x352196:0x44a,_0x53c5e6:0x3c3,_0x4a7937:0x56f,_0x202c56:0x4b2,_0x515ceb:0x585,_0x1760fd:0x3ea,_0x2eae00:0x248,_0x170130:0x434,_0x50e37c:0x344,_0x3e3675:0x40d},_0x4ca454={_0x3787cf:0xc5,_0x41da82:0x1cf},_0xda5378={_0x2f0139:0x38e,_0xbf28c3:0x397,_0x4dc576:0x294,_0x2c5ce8:0x520,_0x5f0357:0x3f3,_0x6c47d8:0x453,_0x5b43b5:0x39e,_0x22ce6a:0x4d4,_0x3c5d81:0x433,_0x204503:0x22a,_0x3bc588:0x12e,_0x478a1c:0x112,_0x5a957a:0x329,_0x2c1969:0x414,_0x26b594:0x452,_0x5403ea:0x191,_0x2f106c:0x1d2,_0x342836:0x110,_0x8115ca:0x4e7,_0x2b4b9d:0x5cc,_0x1ab35f:0x509,_0x5ab559:0x3aa,_0x74d6ff:0x18c,_0x363593:0x37c,_0x218428:0x23e,_0x445a32:0x124,_0x2d6f71:0x366,_0x150f68:0x267,_0x23e586:0x147,_0x53c432:0x4f2,_0x53039c:0x3ea,_0x479177:0x46b,_0x1e2b29:0x3f5,_0x4015a9:0x309,_0xc292ee:0x3d6,_0x513b92:0x3f5,_0x26db17:0x356,_0x230bb2:0x2fe,_0x45bbdc:0x40d,_0x217ab1:0x3fe,_0x408fbd:0x415,_0x405f46:0x2af,_0x11078f:0x23e,_0x5ea576:0x2d6,_0x149e71:0x1d5,_0x309289:0x1fe,_0x12e6c4:0x2f0,_0xd809e0:0x1c1,_0x6e1a04:0x37d,_0x5e983d:0x24e,_0x231b47:0x15a,_0x8a37b3:0x1ec,_0x203342:0x208,_0x5361cc:0x1ed},_0x2b79e3={_0x2a2368:0x190},_0x22a85d=await Promise[_0x357c64(_0x1ce703._0xa08d19,0x3f9,_0x1ce703._0xe57096,0x3ac)](_0x60ecf9[_0x357c64(0x479,0x3df,0x59c,0x54a)](0x0,0xa)[_0x357c64(_0x1ce703._0x352196,0x4a4,0x555,_0x1ce703._0x53c5e6)](async _0x139a43=>{const _0x2a4a4f={_0x1a9a70:0x125,_0xcf6e72:0x26};function _0x3433b1(_0x56e2d0,_0x192968,_0x4e37ea,_0x5ce2d5){return _0x357c64(_0x56e2d0- -0x50e,_0x4e37ea,_0x4e37ea-_0x2b79e3._0x2a2368,_0x5ce2d5-0x1f3);}function _0x598f48(_0x46bc99,_0x34e851,_0x58854b,_0x59aeb8){return _0x357c64(_0x46bc99-_0x2a4a4f._0x1a9a70,_0x34e851,_0x58854b-_0x2a4a4f._0xcf6e72,_0x59aeb8-0x176);}try{const _0x49cfc8=await fetch(_0x139a43['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x1ad353,'Accept':'text/html'},'signal':_0x3b5c9f});if(!_0x49cfc8['ok'])return _0x139a43;const _0x1653fb=await _0x49cfc8['text'](),_0x45841e=load(_0x1653fb),_0x55a906=_0x45841e(_0x598f48(_0xda5378._0x2f0139,_0xda5378._0xbf28c3,0x44e,_0xda5378._0x4dc576))[_0x598f48(0x3f5,0x470,0x4b8,_0xda5378._0x2c5ce8)](_0x598f48(_0xda5378._0x5f0357,_0xda5378._0x6c47d8,0x49c,_0xda5378._0x5b43b5))||_0x45841e(_0x598f48(0x3e5,_0xda5378._0x22ce6a,0x2e9,_0xda5378._0x3c5d81))[_0x3433b1(-_0xda5378._0x204503,-_0xda5378._0x3bc588,-_0xda5378._0x478a1c,-_0xda5378._0x5a957a)]()[_0x598f48(0x4ec,0x5f2,_0xda5378._0x2c1969,_0xda5378._0x26b594)]()[_0x3433b1(-_0xda5378._0x5403ea,-_0xda5378._0x2f106c,-_0xda5378._0x342836,-0x13a)](),_0x1cb2e0=_0x45841e(_0x598f48(_0xda5378._0x8115ca,_0xda5378._0x2b4b9d,0x5dc,_0xda5378._0x1ab35f))[_0x598f48(0x3f5,0x4a4,0x39a,_0xda5378._0x5ab559)](_0x3433b1(-0x240,-_0xda5378._0x74d6ff,-0x21d,-0x1c0))||_0x45841e(_0x598f48(0x3b4,_0xda5378._0x363593,0x383,0x2a0))[_0x3433b1(-_0xda5378._0x218428,-0x17b,-_0xda5378._0x445a32,-_0xda5378._0x2d6f71)]('content')||_0x139a43[_0x3433b1(-_0xda5378._0x150f68,-0x33f,-_0xda5378._0x23e586,-0x2ac)],_0x274279=_0x45841e(_0x598f48(0x4fa,_0xda5378._0x53c432,_0xda5378._0x53039c,_0xda5378._0x479177))[_0x598f48(_0xda5378._0x1e2b29,_0xda5378._0x4015a9,_0xda5378._0xc292ee,0x2f3)]('content')||_0x45841e('time[datetime]')[_0x598f48(_0xda5378._0x513b92,_0xda5378._0x26db17,0x513,_0xda5378._0x230bb2)](_0x598f48(_0xda5378._0x45bbdc,0x398,0x455,0x49a))||_0x139a43[_0x598f48(_0xda5378._0x217ab1,_0xda5378._0x408fbd,0x35b,0x49e)],_0x5df06a=_0x45841e(_0x3433b1(-_0xda5378._0x405f46,-0x3bb,-0x2b7,-0x1a2))[_0x3433b1(-_0xda5378._0x11078f,-_0xda5378._0x5ea576,-_0xda5378._0x149e71,-_0xda5378._0x309289)](_0x3433b1(-0x29c,-_0xda5378._0x12e6c4,-_0xda5378._0xd809e0,-_0xda5378._0x6e1a04));return{..._0x139a43,'title':_0x55a906||_0x139a43[_0x3433b1(-_0xda5378._0x5e983d,-0x25b,-0x1a2,-0x357)],'snippet':_0x1cb2e0,'url':_0x5df06a?normalizeUrl(new URL(_0x5df06a,_0x139a43[_0x3433b1(-_0xda5378._0x231b47,-0x25e,-0x181,-_0xda5378._0x8a37b3)])[_0x3433b1(-_0xda5378._0x203342,-0x22e,-_0xda5378._0x5361cc,-0x2de)]()):_0x139a43['url'],'publishedAt':_0x274279};}catch{return _0x139a43;}}));function _0x125495(_0x40b6e8,_0x37b131,_0x49d39c,_0x4336f6){return _0x324926(_0x4336f6-0x26a,_0x40b6e8,_0x49d39c-0x5d,_0x4336f6-0x42);}const _0x289228=new Map(_0x60ecf9[_0x357c64(0x479,_0x1ce703._0x4a7937,_0x1ce703._0x202c56,_0x1ce703._0x515ceb)](0x0,0xa)[_0x125495(_0x1ce703._0x1760fd,0x24a,_0x1ce703._0x2eae00,0x330)]((_0x5f2e99,_0x2d60e6)=>[_0x5f2e99[_0x125495(0x3b8,0x272,0x2e0,0x29a)],_0x22a85d[_0x2d60e6]]));function _0x357c64(_0x46901e,_0x2fb6e8,_0x188f64,_0x2b9412){return _0x22ef16(_0x2fb6e8,_0x46901e-0x186,_0x188f64-_0x4ca454._0x3787cf,_0x2b9412-_0x4ca454._0x41da82);}return _0x60ecf9[_0x125495(_0x1ce703._0x170130,_0x1ce703._0x50e37c,_0x1ce703._0x3e3675,0x330)](_0x238dcf=>_0x289228[_0x357c64(0x42b,0x53d,0x37d,0x439)](_0x238dcf['url'])??_0x238dcf);}function formatResults(_0x498a8b){const _0x5907c1={_0x4c15a9:0x53d,_0x2faad4:0x5b9,_0x2d5d28:0x570,_0x229b7a:0x396,_0x15c756:0x477,_0x44ae3b:0x311,_0x5695fb:0x489,_0x4aa970:0x485,_0x4f26c6:0x3e4,_0x3c8dfc:0x396,_0x473c26:0x411,_0x55103b:0x4d3,_0x557bc0:0x427,_0x206e33:0x3f7,_0x5c281f:0x487,_0x4cc0bc:0x4bb,_0x13c51b:0x68,_0x4171df:0x31,_0x33df2b:0x5d},_0x1ec3da={_0x252590:0x198};if(_0x498a8b['length']===0x0)return'No\x20results\x20found.';return _0x498a8b['map'](_0x1e6314=>{function _0x584224(_0x4563fa,_0x567483,_0x135685,_0x4b3f7a){return _0x7ca6(_0x4563fa- -_0x1ec3da._0x252590,_0x4b3f7a);}function _0x276dcc(_0x5bc4f1,_0xe8f59d,_0x57f3a5,_0x162d69){return _0x7ca6(_0x5bc4f1-0x2ad,_0xe8f59d);}const _0xb33afd=[_0x1e6314[_0x276dcc(_0x5907c1._0x4c15a9,_0x5907c1._0x2faad4,_0x5907c1._0x2d5d28,0x59d)][_0x276dcc(0x41e,_0x5907c1._0x229b7a,_0x5907c1._0x15c756,_0x5907c1._0x44ae3b)]+'.\x20'+_0x1e6314[_0x276dcc(0x3cb,0x4c3,_0x5907c1._0x5695fb,0x448)],_0x1e6314['url']];if(_0x1e6314['snippet'])_0xb33afd['push'](_0x1e6314[_0x276dcc(0x3b2,0x28b,_0x5907c1._0x4aa970,0x37b)]);if(_0x1e6314[_0x276dcc(_0x5907c1._0x4f26c6,_0x5907c1._0x3c8dfc,_0x5907c1._0x473c26,_0x5907c1._0x55103b)])_0xb33afd['push'](_0x276dcc(0x3c2,0x2da,_0x5907c1._0x557bc0,_0x5907c1._0x206e33)+_0x1e6314[_0x276dcc(0x3e4,_0x5907c1._0x5c281f,0x3fd,_0x5907c1._0x4cc0bc)]);return _0xb33afd[_0x584224(-_0x5907c1._0x13c51b,-_0x5907c1._0x4171df,-0x191,_0x5907c1._0x33df2b)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x1c1d4e,_0xa357b2,_0x25315a){const _0x2dff09={_0x2450b4:0xbc,_0x4f9ba0:0xc6,_0x51b5d3:0x282,_0x2de4ec:0x1c9,_0x3f4062:0x2cb,_0x2b9d71:0x2f9,_0x5f4d56:0x257,_0x1a8c66:0x29e,_0x5421ba:0x133,_0x479bf2:0x254,_0x3a6e82:0xf7,_0x397198:0x2cf,_0x2c4de1:0x189,_0x3d6a03:0x26c,_0x21ee31:0xcb,_0x4cc2ee:0x122,_0x196698:0x22c,_0x4b4255:0x20e,_0xb825ec:0x223,_0x4a33df:0x390,_0x3a4b0c:0x24d,_0x3e7546:0x3bc,_0x330fd2:0x3a5,_0x1ae14b:0x2a3,_0x3bfbd6:0x229,_0x803823:0x223,_0x523f5b:0x2a5,_0x1f1324:0x2b0,_0x16fd9d:0x1b9,_0x45577b:0x27a,_0x3241f5:0x2a7,_0x1964e4:0x12d,_0x5f0b55:0xc8,_0x2f9457:0xf3,_0x2630af:0xd4,_0x1e209a:0xe,_0x17e28c:0xb9,_0x377d6a:0x162,_0x2ae688:0x1b5,_0x32ecc5:0x2e2,_0x4c1425:0xbc,_0x4c7e93:0x2a8,_0x13b133:0x2c6,_0x1390ce:0xaa,_0x59ffe6:0x7f,_0x4eec12:0x190,_0xb828a4:0xd2,_0x5ea737:0x3b7,_0x43fb4e:0x153,_0x1b1d77:0x1c2,_0x586426:0x1e3,_0x18d667:0x2d0,_0x182af9:0x2a9,_0x365392:0x263,_0x41a9cc:0x210,_0x40c469:0x262,_0x5d2514:0x1ab,_0x5e1c58:0x384,_0x315b73:0x90,_0x151c7a:0x19d,_0xf9caef:0x182,_0x248a26:0x1ea,_0x22cd8d:0x266,_0x486240:0x1cc,_0x5e92d0:0x13d,_0x30177b:0x1c0,_0x21f913:0x2e3,_0x4933e4:0x256,_0x501219:0x150,_0x9b46c3:0x1e6,_0x156b82:0x1ed,_0x495372:0x132,_0x45d316:0x1c4,_0x199fc0:0x9e,_0x396565:0x1fd,_0xa26838:0x31,_0x4d251a:0x1f1,_0x2a1fca:0x1ca,_0x344b26:0x17c,_0x5c8ba5:0x1d4,_0x5093d8:0x1e6,_0x575626:0x190,_0x21f472:0x9f,_0x2580b3:0x114,_0xd40838:0xe8,_0x40f810:0x1dd,_0x37a10f:0xa8,_0x459577:0x20d,_0x57412d:0x1cb},_0x13e448={_0xfa4146:0x390};function _0x139c00(_0x8c80e0,_0x469320,_0x27542e,_0x3379ee){return _0x22ef16(_0x8c80e0,_0x469320- -_0x13e448._0xfa4146,_0x27542e-0x120,_0x3379ee-0x197);}const _0x21da77=Math[_0x139c00(-_0x2dff09._0x2450b4,-0x195,-0x19b,-0x207)](0x1,Math['min'](0x32,_0xa357b2['count']));if(_0xa357b2['offset']+_0x21da77>0x64)throw new ToolExecutionError('Google\x20CSE\x20supports\x20at\x20most\x20the\x20first\x20100\x20results',{'offset':_0xa357b2['offset'],'count':_0x21da77,'maxResults':0x64});const _0x35abf5=cseDateRestrict(_0xa357b2[_0x139c00(-_0x2dff09._0x4f9ba0,-0x152,-0x110,-_0x2dff09._0x51b5d3)]);function _0x2cf3d0(_0x1a8123,_0x497313,_0x10116b,_0x340202){return _0x324926(_0x340202- -0x1d7,_0x497313,_0x10116b-0x16a,_0x340202-0x11e);}const _0x521906=addSiteFilters(_0xa357b2['query'],_0xa357b2[_0x139c00(-0x150,-_0x2dff09._0x2de4ec,-0xad,-_0x2dff09._0x3f4062)]);let _0x4e338b=0x0,_0x978b2d=_0xa357b2[_0x139c00(-_0x2dff09._0x2b9d71,-_0x2dff09._0x5f4d56,-0x213,-0x21b)]+0x1;const _0xcf5640=[];while(_0x4e338b<_0x21da77){const _0x421b71=Math[_0x2cf3d0(-_0x2dff09._0x1a8c66,-_0x2dff09._0x5421ba,-0x294,-_0x2dff09._0x479bf2)](0xa,_0x21da77-_0x4e338b),_0x150172=new URL(_0x139c00(-0x66,-_0x2dff09._0x3a6e82,-0x1cd,-0x55));_0x150172[_0x139c00(-_0x2dff09._0x397198,-0x25e,-0x334,-0x2c8)][_0x139c00(-0x17a,-0x281,-_0x2dff09._0x2c4de1,-_0x2dff09._0x3d6a03)](_0x139c00(-0x1f9,-_0x2dff09._0x21ee31,-0x52,-_0x2dff09._0x4cc2ee),_0x1c1d4e[_0x139c00(-_0x2dff09._0x196698,-_0x2dff09._0x4b4255,-0x2d1,-0x14c)]),_0x150172['searchParams'][_0x139c00(-_0x2dff09._0xb825ec,-0x281,-_0x2dff09._0x4a33df,-0x392)]('cx',_0x1c1d4e['googleCseCx']),_0x150172[_0x2cf3d0(-0x395,-_0x2dff09._0x3a4b0c,-_0x2dff09._0x3e7546,-0x2a3)]['set']('q',_0x521906),_0x150172[_0x2cf3d0(-_0x2dff09._0x330fd2,-0x2ff,-0x3c5,-_0x2dff09._0x1ae14b)][_0x2cf3d0(-0x2fa,-_0x2dff09._0x3bfbd6,-_0x2dff09._0x803823,-0x2c6)](_0x139c00(-0x35f,-_0x2dff09._0x523f5b,-_0x2dff09._0x1f1324,-0x387),String(_0x421b71)),_0x150172[_0x139c00(-_0x2dff09._0x16fd9d,-0x25e,-0x21b,-0x34d)]['set'](_0x2cf3d0(-_0x2dff09._0x45577b,-0x376,-0x258,-_0x2dff09._0x3241f5),String(_0x978b2d)),_0x150172['searchParams']['set'](_0x2cf3d0(-_0x2dff09._0x1964e4,-_0x2dff09._0x5f0b55,-_0x2dff09._0x2f9457,-_0x2dff09._0x2630af),_0xa357b2[_0x2cf3d0(_0x2dff09._0x1e209a,-_0x2dff09._0x17e28c,-_0x2dff09._0x377d6a,-0xd4)]?_0x2cf3d0(-0x330,-0x345,-0x35a,-0x2b0):_0x139c00(-0x2b2,-_0x2dff09._0x2ae688,-_0x2dff09._0x32ecc5,-0xcc));_0xa357b2[_0x2cf3d0(0x2d,-0x4f,-_0x2dff09._0x4c1425,-0xbe)]&&(_0x150172[_0x139c00(-0x2c3,-0x25e,-0x21d,-0x137)][_0x2cf3d0(-0x33c,-0x29a,-_0x2dff09._0x4c7e93,-_0x2dff09._0x13b133)]('hl',_0xa357b2['lang']),_0x150172['searchParams'][_0x2cf3d0(-0x2c6,-0x329,-0x2ed,-0x2c6)]('lr',_0x139c00(-0x219,-0x2cc,-0x277,-0x1ae)+_0xa357b2[_0x139c00(-0x12d,-0x79,_0x2dff09._0x1390ce,-_0x2dff09._0x59ffe6)]));if(_0xa357b2['region'])_0x150172[_0x139c00(-0x34d,-0x25e,-_0x2dff09._0x4eec12,-0x35c)]['set']('gl',_0xa357b2['region']['toUpperCase']());if(_0xa357b2[_0x2cf3d0(0x34,-0x101,0x55,-0xcc)]===_0x2cf3d0(-0xf6,-_0x2dff09._0xb828a4,-0x108,-0xe3))_0x150172['searchParams']['set'](_0x2cf3d0(-_0x2dff09._0x45577b,-0x176,-_0x2dff09._0x5ea737,-0x294),_0x139c00(-0x12b,-0x1a1,-_0x2dff09._0x43fb4e,-0x1ba));if(_0x35abf5)_0x150172[_0x139c00(-_0x2dff09._0x1b1d77,-0x25e,-_0x2dff09._0x586426,-0x130)][_0x2cf3d0(-0x1d5,-0x21e,-0x1a2,-0x2c6)](_0x139c00(-_0x2dff09._0x18d667,-0x1b3,-_0x2dff09._0x182af9,-_0x2dff09._0x365392),_0x35abf5);const _0x5b9978=await fetchJson(_0x150172[_0x139c00(-0x20a,-_0x2dff09._0x41a9cc,-0x303,-_0x2dff09._0x40c469)](),_0x25315a),_0x5d108d=_0x5b9978[_0x139c00(-0x2f8,-0x25b,-_0x2dff09._0x5d2514,-_0x2dff09._0x5e1c58)]??[];if(_0x5d108d['length']===0x0)break;const _0x2eafcb=_0x4e338b;for(let _0x39f458=0x0;_0x39f458<_0x5d108d['length'];_0x39f458++){const _0xa3a95b=_0x5d108d[_0x39f458];if(!_0xa3a95b)continue;const _0x2973f7=_0xa3a95b[_0x139c00(-_0x2dff09._0x315b73,-_0x2dff09._0x151c7a,-_0x2dff09._0xf9caef,-0xb1)]||_0xa3a95b[_0x2cf3d0(-0x27e,-_0x2dff09._0x248a26,-_0x2dff09._0x22cd8d,-0x1e6)]?.[_0x139c00(-_0x2dff09._0x486240,-_0x2dff09._0x5e92d0,-_0x2dff09._0x30177b,-0xa5)]||'',_0x3fa04b=_0xa3a95b[_0x139c00(-_0x2dff09._0x21f913,-_0x2dff09._0x4933e4,-_0x2dff09._0x501219,-0x332)]||_0xa3a95b[_0x2cf3d0(-0xd0,-0x1c5,-0x2c2,-_0x2dff09._0x9b46c3)]?.[_0x139c00(-_0x2dff09._0x156b82,-_0x2dff09._0x4933e4,-0x17d,-_0x2dff09._0x495372)]||_0x139c00(-0x122,-_0x2dff09._0x45d316,-_0x2dff09._0x199fc0,-_0x2dff09._0x396565),_0x59c4b3=_0xa3a95b[_0x139c00(-0x2dc,-0x26f,-0x35d,-0x352)]||_0xa3a95b[_0x2cf3d0(-_0x2dff09._0x2ae688,-_0x2dff09._0xa26838,-_0x2dff09._0x4d251a,-0x149)]?.['replace'](/<[^>]+>/g,''),_0x2429e3=_0xa3a95b[_0x139c00(-0x204,-0x28d,-0x33a,-0x396)]?.[_0x139c00(-_0x2dff09._0x2a1fca,-_0x2dff09._0x344b26,-_0x2dff09._0x5c8ba5,-_0x2dff09._0x5093d8)]?.[0x0]??{};let _0x159704;try{_0x159704=new URL(_0x2973f7)[_0x139c00(-0x3a8,-0x2b1,-0x1b2,-0x3c1)];}catch{_0x159704=null;}_0xcf5640['push']({'title':_0x3fa04b,'url':normalizeUrl(_0x2973f7),'snippet':_0x59c4b3??null,'displayUrl':_0x159704,'favicon':null,'publishedAt':_0x2429e3[_0x139c00(-0x86,-_0x2dff09._0x575626,-0x88,-_0x2dff09._0x21f472)]||_0x2429e3[_0x139c00(-_0x2dff09._0x2580b3,-0x236,-0x10f,-0x317)]||null,'source':{'engine':_0x139c00(-_0x2dff09._0xd40838,-_0x2dff09._0x40f810,-0x27b,-0x289),'rank':_0x2eafcb+_0x39f458+0x1}});}_0x4e338b+=_0x5d108d[_0x2cf3d0(-_0x2dff09._0x37a10f,-0x21b,-_0x2dff09._0x459577,-_0x2dff09._0x57412d)],_0x978b2d+=_0x5d108d['length'];if(_0x5d108d['length']<_0x421b71)break;}return _0xcf5640['slice'](0x0,_0x21da77);}function createWebSearchTool(_0x122625){const _0x4cb5f3={_0x569df5:0x12c,_0x26b3c8:0x1f2,_0x28e835:0x15c,_0x242782:0x283,_0x2f616f:0x2cd,_0x6025ec:0x3bf,_0x2de72e:0x1bc,_0x35d59b:0x325,_0x3cef21:0x35d,_0x239aeb:0x34c,_0x619eb3:0x161,_0x59ef85:0x1cc,_0xa63957:0x2d2,_0x433a67:0x43e,_0x20ca2f:0xf0,_0x2e8448:0x178,_0x51e7f5:0xe7,_0x25d344:0x183,_0x3f2757:0x2f,_0x2a4d5e:0x55,_0x1b672c:0x4c,_0x52474b:0x3b7,_0x5e2930:0x373,_0x33980a:0x371,_0x144cdf:0x42,_0x2e08d9:0x540,_0x5f9ded:0x3f7,_0x149254:0x4b3,_0xbd7db7:0x267,_0x1136bb:0xc1,_0x256931:0x143,_0x4e5b50:0x35e,_0x5b4ee8:0x3c,_0x25500a:0x95},_0x408aa8={_0x1cdb19:0x480,_0x3847a0:0x6b,_0x9936bc:0x113,_0xdac844:0x1f8,_0x16fad7:0x2e8,_0x428553:0x2ca,_0x151d92:0x46f,_0x1b81fc:0x462,_0x6880a1:0x2a,_0x3fc1dc:0x39,_0x2ce4bc:0x6c,_0x1df5bb:0x3e2,_0x23e350:0x339,_0x328d86:0x248,_0x3882e4:0x2e7,_0xbd4eb:0x3fb,_0x49b925:0x375,_0x504e59:0x448,_0x4b192f:0x4d2,_0x113eb1:0x3ab,_0x175ba4:0x3ce,_0x49d0c2:0x2f,_0x4043b0:0x125,_0x584835:0x1a5,_0x29be49:0x577,_0x4827e2:0x4b7,_0x594ab8:0x391,_0x7d6f9e:0x4b4,_0x30af6b:0x429,_0x10cd6b:0xc,_0x1f5ea0:0x7f,_0x472312:0x13,_0x5b9e41:0x6a,_0x305908:0x97,_0x281117:0x386,_0x4ad555:0x3af,_0x529e5d:0x487,_0x58527d:0x57e,_0x1a9a6e:0x486,_0x468787:0x3e6,_0x182c48:0x48d,_0x891539:0x7f,_0x53d2c5:0x119,_0x3907c3:0x148,_0x564c83:0x472,_0x920e67:0x2a,_0x4abf58:0x3c1,_0x1f0490:0x366,_0x23c5c2:0x2df,_0x2d90d9:0x4fd,_0x10e5f5:0x14c,_0x309437:0x3f2,_0x5f0684:0x81,_0x20498b:0x127,_0x42e1cc:0x4ae,_0x6fa76c:0x303,_0x40bc9f:0x432,_0x107a6d:0x3be,_0x4061a0:0x3d6,_0x5e7682:0x2e7,_0xb8c7ee:0x246,_0x5e3518:0x40b,_0x135171:0x40d,_0x3ee8d6:0x517},_0x35e4be={_0x274bbb:0x1b8,_0x3375b4:0x4c},_0x3383c9={_0x505a9c:0x374,_0x1b0c0e:0x7d};function _0x30dcc5(_0xa7d48f,_0x518b8d,_0x21bde7,_0x438fc9){return _0x22ef16(_0xa7d48f,_0x438fc9- -_0x3383c9._0x505a9c,_0x21bde7-0x38,_0x438fc9-_0x3383c9._0x1b0c0e);}if(!_0x122625[_0x30dcc5(-0x1cf,-_0x4cb5f3._0x569df5,-0x190,-_0x4cb5f3._0x26b3c8)])throw new Error(_0x30dcc5(-0x2b5,-_0x4cb5f3._0x28e835,-0x180,-_0x4cb5f3._0x242782));if(!_0x122625[_0x118c82(_0x4cb5f3._0x2f616f,_0x4cb5f3._0x6025ec,_0x4cb5f3._0x2de72e,0x39d)])throw new Error(_0x118c82(_0x4cb5f3._0x35d59b,_0x4cb5f3._0x3cef21,_0x4cb5f3._0x239aeb,0x2ca));const _0x3ba591=_0x122625[_0x30dcc5(-0x263,-0x1d6,-0xf6,-0x1fd)]??'WebSearch';function _0x118c82(_0x2226b4,_0x2559cd,_0x2e52e5,_0x30cc40){return _0x22ef16(_0x2559cd,_0x2226b4-_0x35e4be._0x274bbb,_0x2e52e5-0x155,_0x30cc40-_0x35e4be._0x3375b4);}return defineTool({'name':_0x3ba591,'description':_0x30dcc5(-_0x4cb5f3._0x619eb3,-_0x4cb5f3._0x59ef85,-_0x4cb5f3._0xa63957,-0x1d2),'inputSchema':{'type':_0x118c82(_0x4cb5f3._0x433a67,0x331,0x315,0x3ca),'properties':{'description':{'type':_0x30dcc5(0x0,-_0x4cb5f3._0x20ca2f,-_0x4cb5f3._0x2e8448,-_0x4cb5f3._0x51e7f5)},'query':{'type':_0x30dcc5(-_0x4cb5f3._0x25d344,-_0x4cb5f3._0x3f2757,0x3e,-_0x4cb5f3._0x51e7f5)},'count':{'type':_0x30dcc5(-0x1c0,-_0x4cb5f3._0x2a4d5e,-_0x4cb5f3._0x1b672c,-0x175)},'offset':{'type':'number'},'domains':{'type':'array','items':{'type':'string'}},'recencyDays':{'type':_0x118c82(_0x4cb5f3._0x52474b,_0x4cb5f3._0x5e2930,0x4cd,_0x4cb5f3._0x33980a)},'lang':{'type':_0x30dcc5(-_0x4cb5f3._0x144cdf,-0x199,-0x42,-0xe7)},'region':{'type':_0x118c82(0x445,_0x4cb5f3._0x2e08d9,_0x4cb5f3._0x5f9ded,_0x4cb5f3._0x149254)},'safe':{'type':_0x30dcc5(-_0x4cb5f3._0xbd7db7,-0x41,-_0x4cb5f3._0x1136bb,-_0x4cb5f3._0x256931)},'type':{'type':_0x118c82(0x445,_0x4cb5f3._0x4e5b50,0x3c7,0x49e)},'hydrateMeta':{'type':'boolean'}},'required':[_0x30dcc5(_0x4cb5f3._0x5b4ee8,-0x9a,-_0x4cb5f3._0x25500a,-0x8c)]},async *'execute'(_0x165a18,_0x1b43bc){const _0x17ad05={_0x26d6ed:0xf9},_0x16b9a2={_0x3217ad:0x56d,_0x32e200:0xd1,_0x4d25f8:0x14a,_0x393dba:0x21c,_0x18e4e1:0x1e7},_0x5079e2={_0xc8d285:0x54b,_0x481a43:0x50},_0x4da911={_0x5419c0:0x1ab,_0xfd331e:0x127,_0xc3de1f:0x17f},_0x4eacac={_0x16ae85:0xed},_0xfadaf=_0x165a18[_0x2f4a7f(0x3ec,0x3f8,0x496,_0x408aa8._0x1cdb19)][_0x20ddca(-0x92,_0x408aa8._0x3847a0,-0xbc,-_0x408aa8._0x9936bc)]();if(!_0xfadaf)throw new ToolExecutionError(_0x20ddca(-0x191,-0x1aa,-0xed,-_0x408aa8._0xdac844));const _0x3e78a1={'query':_0xfadaf,'count':Math['max'](0x1,Math[_0x2f4a7f(_0x408aa8._0x16fad7,_0x408aa8._0x428553,0x32f,0x2cb)](0x32,Math[_0x2f4a7f(_0x408aa8._0x151d92,_0x408aa8._0x1b81fc,0x3e2,0x3c4)](_0x165a18[_0x20ddca(-_0x408aa8._0x6880a1,_0x408aa8._0x3fc1dc,_0x408aa8._0x2ce4bc,-0xd1)]??0xa))),'offset':Math[_0x2f4a7f(0x2d3,0x410,0x3a9,0x2e9)](0x0,Math[_0x2f4a7f(0x4bc,0x4d4,_0x408aa8._0x1df5bb,_0x408aa8._0x23e350)](_0x165a18[_0x2f4a7f(0x35a,_0x408aa8._0x328d86,_0x408aa8._0x3882e4,0x288)]??0x0)),'domains':_0x165a18[_0x2f4a7f(_0x408aa8._0xbd4eb,0x2f3,_0x408aa8._0x49b925,_0x408aa8._0x504e59)]??[],'recencyDays':Math['max'](0x0,Math[_0x2f4a7f(_0x408aa8._0x4b192f,_0x408aa8._0x113eb1,0x3e2,_0x408aa8._0x175ba4)](_0x165a18['recencyDays']??0x0)),'lang':_0x165a18['lang']??'en','region':_0x165a18[_0x20ddca(-0x81,-_0x408aa8._0x49d0c2,-_0x408aa8._0x4043b0,-_0x408aa8._0x584835)]??'','safe':_0x165a18['safe']??!![],'type':normalizeType(_0x165a18[_0x2f4a7f(0x5b3,_0x408aa8._0x29be49,_0x408aa8._0x4827e2,_0x408aa8._0x594ab8)]),'hydrateMeta':_0x165a18['hydrateMeta']??![]};let _0x5405dc=await searchGoogleCse(_0x122625,_0x3e78a1,_0x1b43bc[_0x2f4a7f(_0x408aa8._0x7d6f9e,_0x408aa8._0x30af6b,0x3af,0x2b0)]);_0x3e78a1[_0x20ddca(0x8a,0xd9,0x168,_0x408aa8._0x10cd6b)]&&_0x5405dc[_0x20ddca(-_0x408aa8._0x1f5ea0,-_0x408aa8._0x472312,-0x17b,0x26)]>0x0&&(_0x5405dc=await hydrateResults(_0x5405dc,_0x3e78a1[_0x20ddca(0x8e,_0x408aa8._0x5b9e41,-_0x408aa8._0x305908,-_0x408aa8._0x10cd6b)],_0x1b43bc[_0x2f4a7f(_0x408aa8._0x281117,0x495,_0x408aa8._0x4ad555,_0x408aa8._0x529e5d)]));function _0x20ddca(_0x55e784,_0x45c812,_0xffd57e,_0x1408b9){return _0x30dcc5(_0x1408b9,_0x45c812-0x7c,_0xffd57e-_0x4eacac._0x16ae85,_0x55e784-0xeb);}const _0x228371=new Set();_0x5405dc=_0x5405dc[_0x2f4a7f(_0x408aa8._0x58527d,0x4f8,_0x408aa8._0x1a9a6e,_0x408aa8._0x468787)](_0x378fd5=>{const _0x12e7fe=_0x378fd5['url'][_0x1417a7(0x558,0x5b1,0x6ac,_0x16b9a2._0x3217ad)]();function _0x1d2344(_0x14f4dd,_0x5a51f0,_0x54e7ca,_0x3e552f){return _0x20ddca(_0x5a51f0-_0x4da911._0x5419c0,_0x5a51f0-_0x4da911._0xfd331e,_0x54e7ca-_0x4da911._0xc3de1f,_0x3e552f);}if(!_0x12e7fe||_0x228371[_0x1d2344(-0x24,0x92,_0x16b9a2._0x32e200,_0x16b9a2._0x4d25f8)](_0x12e7fe))return![];_0x228371[_0x1d2344(0x266,_0x16b9a2._0x393dba,_0x16b9a2._0x18e4e1,0x32e)](_0x12e7fe);function _0x1417a7(_0x5743bc,_0x4a5338,_0x4fa098,_0x90a0f1){return _0x20ddca(_0x4a5338-_0x5079e2._0xc8d285,_0x4a5338-_0x5079e2._0x481a43,_0x4fa098-0x1a3,_0x4fa098);}return!![];}),_0x5405dc=_0x5405dc[_0x2f4a7f(0x59e,0x4f1,0x472,_0x408aa8._0x182c48)]((_0x1f5657,_0x2e8577)=>({..._0x1f5657,'source':{..._0x1f5657['source'],'rank':_0x2e8577+0x1}}));const _0x5abc2b={};function _0x2f4a7f(_0x3e4f72,_0x14b29c,_0x4b6f54,_0x8758e2){return _0x118c82(_0x4b6f54- -0xa,_0x3e4f72,_0x4b6f54-_0x17ad05._0x26d6ed,_0x8758e2-0x14c);}if(_0x3e78a1[_0x20ddca(-0xc2,-0x43,-0x11f,-0x1ad)][_0x20ddca(-_0x408aa8._0x891539,-0x1ae,-_0x408aa8._0x53d2c5,-_0x408aa8._0x3907c3)]>0x0)_0x5abc2b[_0x2f4a7f(0x2ab,_0x408aa8._0x564c83,0x375,0x2fa)]=_0x3e78a1['domains'];if(_0x3e78a1[_0x20ddca(-0x4b,_0x408aa8._0x920e67,-0x76,-0x74)]>0x0)_0x5abc2b[_0x2f4a7f(_0x408aa8._0x4abf58,0x324,0x3ec,_0x408aa8._0x1f0490)]=_0x3e78a1[_0x2f4a7f(0x39f,_0x408aa8._0x23c5c2,0x3ec,_0x408aa8._0x2d90d9)];if(_0x3e78a1[_0x20ddca(0x8e,0x115,0x132,_0x408aa8._0x10e5f5)]!=='en')_0x5abc2b['lang']=_0x3e78a1['lang'];if(_0x3e78a1[_0x2f4a7f(0x410,_0x408aa8._0x309437,0x3b6,0x453)])_0x5abc2b[_0x20ddca(-_0x408aa8._0x5f0684,-0x21,-_0x408aa8._0x20498b,-0x40)]=_0x3e78a1[_0x2f4a7f(0x3c0,_0x408aa8._0x42e1cc,0x3b6,_0x408aa8._0x6fa76c)];return yield createToolOutput(formatResults(_0x5405dc),{'engine':'google-cse','count':_0x5405dc['length'],'items':_0x5405dc,'query':_0x3e78a1[_0x2f4a7f(0x481,0x43a,0x496,0x3c4)],...Object[_0x2f4a7f(0x2d5,_0x408aa8._0x40bc9f,0x352,_0x408aa8._0x107a6d)](_0x5abc2b)['length']>0x0?{'appliedFilters':_0x5abc2b}:{},'offset':_0x3e78a1[_0x2f4a7f(0x373,_0x408aa8._0x4061a0,_0x408aa8._0x5e7682,_0x408aa8._0xb8c7ee)],'totalRequested':_0x3e78a1[_0x2f4a7f(0x46f,_0x408aa8._0x5e3518,_0x408aa8._0x135171,0x520)],'hydrated':_0x3e78a1[_0x2f4a7f(0x485,_0x408aa8._0x3ee8d6,0x4c1,0x3ba)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};