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

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(_0x2fb82b,_0x4f3d63){const _0x4b979f={_0x5c235b:0x49e,_0x2d8904:0x5b0,_0x5601bb:0x51b,_0x47fdb2:0x6a1,_0x3d3cfc:0x619,_0x253e30:0x60b,_0x1b240f:0x6cb,_0x3a9f8a:0x42f,_0x32d590:0x442,_0x310d41:0x471,_0x4adb76:0x309,_0x979f43:0x391,_0x48daaf:0x2e0,_0x436550:0x4b8,_0x31256b:0x571,_0x39a660:0x56f,_0x35e20e:0x3d3,_0xd4fa7f:0x4f3},_0x538481={_0x3b670c:0x1a7};function _0xd3fc68(_0x3abbf1,_0x4087bd,_0x3baff4,_0x4c66ae){return _0x1a55(_0x4c66ae-_0x538481._0x3b670c,_0x4087bd);}const _0x463915=_0x2fb82b();function _0x5846cd(_0x410dd7,_0x449942,_0x23cc5a,_0x1dc9e7){return _0x1a55(_0x23cc5a-0x315,_0x410dd7);}while(!![]){try{const _0x5632fd=-parseInt(_0x5846cd(_0x4b979f._0x5c235b,_0x4b979f._0x2d8904,_0x4b979f._0x5601bb,0x55d))/0x1+-parseInt(_0x5846cd(_0x4b979f._0x47fdb2,_0x4b979f._0x3d3cfc,_0x4b979f._0x253e30,_0x4b979f._0x1b240f))/0x2+-parseInt(_0xd3fc68(_0x4b979f._0x3a9f8a,_0x4b979f._0x32d590,_0x4b979f._0x310d41,0x4a3))/0x3+parseInt(_0xd3fc68(0x326,0x415,_0x4b979f._0x4adb76,_0x4b979f._0x979f43))/0x4+parseInt(_0xd3fc68(0x351,_0x4b979f._0x48daaf,0x32c,0x376))/0x5+-parseInt(_0xd3fc68(0x520,0x4cb,_0x4b979f._0x436550,0x4af))/0x6+parseInt(_0x5846cd(0x506,_0x4b979f._0x31256b,_0x4b979f._0x39a660,0x5e9))/0x7*(parseInt(_0xd3fc68(0x425,_0x4b979f._0x35e20e,_0x4b979f._0xd4fa7f,0x457))/0x8);if(_0x5632fd===_0x4f3d63)break;else _0x463915['push'](_0x463915['shift']());}catch(_0x1921a6){_0x463915['push'](_0x463915['shift']());}}}(_0x3e54,0x4c435));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-VFTQW5WK.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x4299d8 from'os';import*as _0x5a08fe from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x49a26f(0x42f,0x407,0x419,0x426),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x1c09d6){return _0x1c09d6 instanceof Error;}function shellExists(_0x1ca187){const _0x47244e={_0xe2f015:0x4f4,_0x2fdf61:0x27d,_0x1eb52c:0x258,_0x503f1f:0x1e2},_0x59157d={_0x40a18c:0x106},_0x2e68f7={_0x407f95:0x1cc,_0x3c5ca7:0x1b8,_0x151a84:0x1f7};function _0x341ec3(_0x39a2cd,_0x47d49d,_0x13ac16,_0x33ff34){return _0x49a26f(_0x33ff34,_0x47d49d-_0x2e68f7._0x407f95,_0x13ac16-_0x2e68f7._0x3c5ca7,_0x13ac16- -_0x2e68f7._0x151a84);}function _0x393499(_0x48e039,_0x23af0d,_0x1a87e1,_0x9f2b5f){return _0x49a26f(_0x23af0d,_0x23af0d-0x152,_0x1a87e1-_0x59157d._0x40a18c,_0x9f2b5f-0x3a);}try{const _0x48af57=statSync(_0x1ca187);return _0x48af57[_0x393499(0x3b2,0x4d0,_0x47244e._0xe2f015,0x46f)]()&&(_0x48af57[_0x341ec3(_0x47244e._0x2fdf61,0x286,_0x47244e._0x1eb52c,_0x47244e._0x503f1f)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x40fd9d){const _0x2f7505={_0x5aa9af:0x4b1,_0x3dbe43:0x657,_0x335351:0x5ab,_0x55fd73:0x1df,_0xdedfab:0x26f,_0x398a3c:0x54c,_0x20b531:0x568,_0x1aceef:0x3e9,_0xe137df:0x497,_0x2fe0a9:0x59b,_0x28da5f:0x5ac,_0x20d464:0x29f,_0x24ce62:0x26f,_0xfe04ab:0x1bd,_0x17d08c:0x4c6,_0x4562e0:0x4dc,_0x4fe9a9:0x471},_0x4c1b3a={_0x4c9e71:0xea},_0x57927a={_0xcc1d4:0x11f,_0x2b881b:0xb6,_0x7c86e1:0x152};if(_0x40fd9d)return _0x40fd9d;if(_0x4299d8[_0x5ca992(0x408,0x566,_0x2f7505._0x5aa9af,0x56f)]()===_0x5ca992(_0x2f7505._0x3dbe43,0x5db,_0x2f7505._0x335351,0x581))return process[_0x53c9f0(_0x2f7505._0x55fd73,0x29c,_0x2f7505._0xdedfab,0x2bc)][_0x5ca992(0x4ed,0x4ff,_0x2f7505._0x398a3c,_0x2f7505._0x20b531)]||'cmd.exe';const _0x10e1ac=[_0x5ca992(_0x2f7505._0x1aceef,0x4fe,_0x2f7505._0xe137df,0x548),'/bin/sh',_0x5ca992(0x617,0x50f,_0x2f7505._0x2fe0a9,_0x2f7505._0x28da5f),'/usr/bin/sh'];for(const _0x4a0711 of _0x10e1ac){if(shellExists(_0x4a0711))return _0x4a0711;}function _0x5ca992(_0x5be416,_0xa97a3d,_0x3c019c,_0x1f10b9){return _0x49a26f(_0x1f10b9,_0xa97a3d-_0x57927a._0xcc1d4,_0x3c019c-_0x57927a._0x2b881b,_0x3c019c-_0x57927a._0x7c86e1);}const _0x45a97d=process[_0x53c9f0(_0x2f7505._0x20d464,0x1c9,_0x2f7505._0x24ce62,_0x2f7505._0xfe04ab)][_0x5ca992(0x42b,0x411,_0x2f7505._0x17d08c,0x431)];function _0x53c9f0(_0x4ddd1b,_0x41cbb2,_0xbb951c,_0x1e3432){return _0x49a26f(_0x4ddd1b,_0x41cbb2-0xe4,_0xbb951c-0x34,_0xbb951c- -_0x4c1b3a._0x4c9e71);}if(_0x45a97d&&shellExists(_0x45a97d))return _0x45a97d;return _0x5ca992(_0x2f7505._0x4562e0,0x4cb,0x497,_0x2f7505._0x4fe9a9);}function buildShellArgs(_0x2d1108,_0x2b9d6c){const _0x3519f5={_0x225834:0x180,_0x255146:0x1bd,_0x2ed7fd:0x266,_0x5d72c9:0x298,_0x53cb8b:0x25c,_0x35375b:0x26d,_0x3b5a7a:0x389,_0x241518:0x2c2,_0x279843:0x1d5,_0x55c701:0x15e,_0xf1ba4b:0x265,_0x4df7b5:0x579,_0x4aac28:0x59d,_0x41bf3d:0x562},_0xe0e0ed={_0x57396d:0x173},_0x5a555d={_0x6674c8:0x141};if(_0x4299d8[_0x337ef4(_0x3519f5._0x225834,0x1ab,0x1c2,0x21e)]()==='win32'){const _0x19a850=/cmd(\.exe)?$/i[_0x337ef4(_0x3519f5._0x255146,_0x3519f5._0x2ed7fd,_0x3519f5._0x5d72c9,_0x3519f5._0x53cb8b)](_0x2b9d6c);return _0x19a850?['/d','/s','/c',_0x2d1108]:[_0x337ef4(_0x3519f5._0x35375b,_0x3519f5._0x3b5a7a,_0x3519f5._0x241518,0x315),_0x337ef4(_0x3519f5._0x279843,_0x3519f5._0x55c701,_0x3519f5._0xf1ba4b,0x1de),_0x40c7d1(_0x3519f5._0x4df7b5,0x5ed,_0x3519f5._0x4aac28,_0x3519f5._0x41bf3d),_0x2d1108];}function _0x337ef4(_0x2994dd,_0x4d7ad3,_0x55d30d,_0x59c48c){return _0x49a26f(_0x4d7ad3,_0x4d7ad3-0x97,_0x55d30d-0x6c,_0x59c48c- -_0x5a555d._0x6674c8);}function _0x40c7d1(_0x4a7a92,_0x4bd12a,_0x1672e4,_0x24b6f4){return _0x49a26f(_0x4a7a92,_0x4bd12a-0x9f,_0x1672e4-0x106,_0x4bd12a-_0xe0e0ed._0x57396d);}return['-c',_0x2d1108];}function stripAnsiAndControls(_0x46e0be){const _0x27568e={_0x14d9cf:0x524,_0x22ca1e:0x53d,_0x1f79d4:0x498,_0x308b7d:0x3ad,_0x4ac222:0x478,_0x334e3b:0x49e,_0x1c6f61:0x67a,_0xfb4aca:0x64c,_0x4fdf82:0x3d2,_0x1ea1f9:0x665,_0x2c8e73:0x59d,_0x1f31a2:0x54c,_0x28b48c:0x498},_0x1beb94={_0x5a139e:0x1a4},_0x1b1570={_0x191c5e:0x139,_0x47cb87:0xa7,_0x55811b:0x4e};_0x46e0be=stripVTControlCharacters(_0x46e0be);const _0x37e057='\x1b',_0x2321d8='\x07';function _0x31a605(_0x5ec811,_0x532339,_0xbca678,_0x5f13d6){return _0x49a26f(_0x5ec811,_0x532339-_0x1b1570._0x191c5e,_0xbca678-_0x1b1570._0x47cb87,_0x5f13d6-_0x1b1570._0x55811b);}_0x46e0be=_0x46e0be[_0x31a605(0x4b9,_0x27568e._0x14d9cf,_0x27568e._0x22ca1e,_0x27568e._0x1f79d4)](new RegExp(_0x31a605(0x3dd,_0x27568e._0x308b7d,0x344,0x3ff)+_0x2321d8+_0x31a605(0x403,0x4b4,_0x27568e._0x4ac222,_0x27568e._0x334e3b)+_0x2321d8,'g'),''),_0x46e0be=_0x46e0be[_0x2e7bd9(0x644,_0x27568e._0x1c6f61,_0x27568e._0xfb4aca,0x5ee)](new RegExp(';[^\x5cn]*?'+_0x37e057+'\x5c\x5c','g'),''),_0x46e0be=_0x46e0be[_0x2e7bd9(0x643,0x56f,0x5f1,0x5ee)](new RegExp(_0x2321d8,'g'),''),_0x46e0be=_0x46e0be[_0x31a605(0x485,0x462,0x4f0,0x498)](new RegExp(_0x37e057+_0x31a605(0x401,0x327,_0x27568e._0x4fdf82,0x3d0)+_0x37e057+'\x5c\x5c','g'),''),_0x46e0be=_0x46e0be['replace'](new RegExp(_0x37e057+'[=>7-8()]','g'),''),_0x46e0be=_0x46e0be[_0x2e7bd9(0x597,_0x27568e._0x1ea1f9,_0x27568e._0x2c8e73,0x5ee)](/[\u0080-\u009F]/g,''),_0x46e0be=_0x46e0be['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x2e7bd9(_0x5505c0,_0x303072,_0x445908,_0x1ed4fa){return _0x49a26f(_0x445908,_0x303072-0x12b,_0x445908-0x12a,_0x1ed4fa-_0x1beb94._0x5a139e);}return _0x46e0be=_0x46e0be[_0x31a605(0x547,0x40d,_0x27568e._0x1f31a2,_0x27568e._0x28b48c)](/[\u23CE\u2424]/g,''),_0x46e0be;}function resolveWorkingDirectory(_0x58a6ef,_0x27fd80){const _0x5a546d={_0x26526a:0x366,_0x460f40:0x2c5,_0xe532b4:0x3bb},_0x18af32={_0x15e61f:0x167},_0x25bf85={_0x5336ca:0x81};function _0x28fab4(_0x3414bd,_0x38aea5,_0x3fef92,_0x2c2155){return _0x49a26f(_0x3414bd,_0x38aea5-0x6a,_0x3fef92-0x15f,_0x3fef92- -_0x25bf85._0x5336ca);}function _0x3b13d0(_0x2ee196,_0x345f09,_0x5e4a9f,_0x4ba908){return _0x49a26f(_0x4ba908,_0x345f09-_0x18af32._0x15e61f,_0x5e4a9f-0x15e,_0x345f09- -0x120);}const _0xfc1e4f=_0x58a6ef?_0x5a08fe['isAbsolute'](_0x58a6ef)?_0x58a6ef:_0x5a08fe[_0x28fab4(_0x5a546d._0x26526a,0x3c8,0x357,0x2da)](_0x27fd80,_0x58a6ef):_0x27fd80;try{const _0x1ff8aa=statSync(_0xfc1e4f);if(!_0x1ff8aa['isDirectory']())throw new ToolExecutionError(_0x3b13d0(0x31c,0x35d,0x3ba,0x36f)+_0xfc1e4f,{'cwd':_0xfc1e4f});return _0xfc1e4f;}catch(_0x184cb1){if(_0x184cb1 instanceof ToolExecutionError)throw _0x184cb1;throw new ToolExecutionError(_0x28fab4(0x3fb,_0x5a546d._0x460f40,0x37a,_0x5a546d._0xe532b4)+_0xfc1e4f,{'cwd':_0xfc1e4f});}}function killProcessGroup(_0x133c54,_0x364827,_0xb0431b=_0xaab5df(-0x24,-0xca,-0x18a,-0x10a)){const _0x118bf9={_0x16216d:0x374,_0x472b92:0x334,_0x5f4781:0x2bd,_0x49814d:0x264,_0x34a83c:0x301,_0x493647:0x3f5,_0x272bc4:0x455,_0x2b13d2:0x3f1,_0x40d1f2:0x34c},_0x31a0d5={_0x30badd:0x1d8,_0x137b29:0x22,_0x3aec2d:0x45};if(!_0x133c54[_0x11ff92(_0x118bf9._0x16216d,_0x118bf9._0x472b92,0x36e,0x3af)])return;function _0x11ff92(_0x2963f0,_0x27c9c4,_0x15b501,_0x2ff29c){return _0xaab5df(_0x2963f0-0x95,_0x2ff29c-0x4ee,_0x15b501-0xb7,_0x15b501);}if(_0x364827)try{spawn(_0x11ff92(_0x118bf9._0x5f4781,0x296,_0x118bf9._0x49814d,_0x118bf9._0x34a83c),['/pid',_0x133c54['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x133c54['kill'](_0xb0431b);return;}function _0x198259(_0x52f6d9,_0x4bac24,_0x27fcc1,_0x2effac){return _0x49a26f(_0x2effac,_0x4bac24-_0x31a0d5._0x30badd,_0x27fcc1-_0x31a0d5._0x137b29,_0x27fcc1- -_0x31a0d5._0x3aec2d);}try{process['kill'](-_0x133c54[_0x11ff92(_0x118bf9._0x493647,0x3c7,_0x118bf9._0x272bc4,0x3af)],_0xb0431b);}catch{_0x133c54[_0x198259(_0x118bf9._0x2b13d2,0x305,_0x118bf9._0x40d1f2,0x3bd)](_0xb0431b);}}function appendChunk(_0x16d120,_0x27ac04,_0x4b81bc,_0x1692d9,_0x27f81a){const _0x5eeee5={_0x4a08b1:0x5cb,_0x4dd044:0x47a,_0x283205:0x520,_0x3475c9:0x1d6,_0xdc157b:0x142,_0x2f4451:0x179},_0x4241f9={_0x5588c1:0xa,_0x35d9a1:0x1a8};function _0x46adbb(_0x590323,_0xcb5dff,_0x2eed83,_0x45703c){return _0xaab5df(_0x590323-0xac,_0x590323- -_0x4241f9._0x5588c1,_0x2eed83-_0x4241f9._0x35d9a1,_0xcb5dff);}const _0x468d72=_0x1692d9?stripAnsiAndControls(_0x4b81bc):_0x4b81bc;if(_0x468d72[_0x2c9a12(_0x5eeee5._0x4a08b1,_0x5eeee5._0x4dd044,0x517,_0x5eeee5._0x283205)]===0x0)return;_0x16d120[_0x46adbb(-_0x5eeee5._0x3475c9,-_0x5eeee5._0xdc157b,-_0x5eeee5._0x2f4451,-0x16f)](_0x468d72),_0x27ac04[_0x46adbb(-0x1d6,-0x20c,-0x22c,-0x17e)](_0x468d72);function _0x2c9a12(_0x5bcdf2,_0x3ca81c,_0x64a347,_0x4441ec){return _0x49a26f(_0x5bcdf2,_0x3ca81c-0xa2,_0x64a347-0x147,_0x4441ec-0x1bb);}_0x27f81a();}function createBashTool(_0x13e6ff={}){const _0x2acf74={_0x22d42b:0xad,_0x358a32:0x168,_0x37a019:0x153,_0x7029df:0x47,_0x37fb24:0x3c,_0xdf8c9e:0x1c7,_0x3bd178:0x11d,_0x39b005:0x1d,_0x545da5:0x101,_0x191a07:0xf2,_0x29d876:0x13,_0x376d8a:0xcd,_0x3b7dd4:0x16f,_0x327660:0x190,_0x57a9f4:0x93,_0x562665:0xfb,_0x2b2530:0x6f,_0x391d4d:0xaa,_0x4a0afa:0x52,_0x30099d:0x7},_0x3a7654={_0xab5338:0x5d1,_0x45afa2:0x70d,_0x2a48b1:0x659,_0x38f637:0x6e9,_0x5b4f37:0x52f,_0x5161d1:0x566,_0x78a4a4:0x624,_0x44ce3c:0x4e3,_0xf1d885:0x52a,_0x5ee366:0x622,_0x26bb7e:0x4ee,_0x27683e:0x6f3,_0x3e6dd8:0x6ad,_0x2d15f6:0x5b9,_0x13e702:0x623,_0x59ba38:0x585,_0x17a728:0x580,_0x4a0aa4:0x4ff,_0x3e103d:0x4ed,_0x3177b4:0x50b,_0x5b97e0:0x5dc,_0x47fad7:0x698,_0x3afa23:0x604,_0x5b4074:0x597,_0x22ea71:0x644,_0x5396b1:0x62d,_0x3e9689:0x6c3,_0x5d4c8e:0x56a,_0x45dc2b:0x593,_0x587e7e:0x5cf,_0x5412ac:0x593,_0x13a7bd:0x538,_0x2523ff:0x571,_0x10718e:0x4f1,_0xcf0ecf:0x580,_0x3a5fe0:0x5bf,_0x173ba2:0x4a2,_0x3af64:0x4ba,_0x2f376f:0x60a,_0x4988e6:0x50d,_0x140f45:0x553,_0x28fea8:0x49f,_0x57717d:0x602,_0x6e3fd8:0x6a7,_0x454046:0x632,_0x4ded30:0x606,_0x2a6214:0x581,_0x4a33bb:0x5f4,_0x5e5c7a:0x58e,_0xea81ea:0x594,_0xadf378:0x641,_0x59a831:0x603,_0x2cfc34:0x4e4,_0x5bb588:0x44a,_0x223d2f:0x4f5,_0x47e848:0x5a9,_0x68baf5:0x560,_0x319a00:0x45c,_0xf9870c:0x4f3,_0x3ede3c:0x582,_0x4ebea6:0x67b,_0x28ad1c:0x66e,_0x26d90a:0x5bb,_0x33604a:0x536,_0x2e7201:0x527,_0x5c1d81:0x5de,_0x36ef95:0x5a6,_0x2180fa:0x661,_0x3fa343:0x55c,_0x5ac299:0x559,_0x3b7945:0x4d1,_0x5e6d5d:0x5d7,_0x53b5a2:0x563,_0x31cd72:0x5f1,_0x2ad130:0x4b4,_0x15a496:0x4f3,_0x26866a:0x5e5,_0x474998:0x54f,_0x38a524:0x46f,_0x32192b:0x552,_0x12ac74:0x573,_0x2ba3d1:0x577,_0xe81d0f:0x5e8,_0x481886:0x595,_0x394570:0x66a,_0x5e8d08:0x5ff,_0x101bde:0x675,_0x484b3f:0x459,_0x41130a:0x4f5,_0x2ff472:0x4ac},_0x49af01={_0x50728e:0x32,_0x1b7179:0x106,_0x24bb68:0x543},_0x486706={_0x2c1a1b:0x1ae,_0x550c95:0x49b},_0x30adc9={_0x3fbffd:0x6,_0x55f412:0x29,_0x2f3147:0x30d},_0x1c0412={_0x2d9c5d:0xfb,_0x251fc9:0xc0,_0x13ef77:0x27e},_0x3c388b=_0x5a08fe['resolve'](_0x13e6ff[_0x53ee27(_0x2acf74._0x22d42b,0xd1,0xf3,_0x2acf74._0x358a32)]??process[_0x53ee27(0x1d1,0xf2,0x9e,_0x2acf74._0x37a019)]()),_0x584107=_0x13e6ff[_0x53ee27(-_0x2acf74._0x7029df,0x4,0x9a,_0x2acf74._0x37fb24)]??DEFAULT_TIMEOUT_MS,_0x517f15=_0x13e6ff[_0x2592b7(0x13a,_0x2acf74._0xdf8c9e,_0x2acf74._0x3bd178,0x86)]??!![];function _0x2592b7(_0x59c13e,_0x3d4fb3,_0x15b69e,_0x484558){return _0x49a26f(_0x15b69e,_0x3d4fb3-_0x1c0412._0x2d9c5d,_0x15b69e-_0x1c0412._0x251fc9,_0x59c13e- -_0x1c0412._0x13ef77);}const _0x158821=_0x13e6ff[_0x53ee27(-_0x2acf74._0x39b005,0xe6,0x109,0x55)]??'Bash';function _0x53ee27(_0x523a99,_0xad0924,_0x2b3857,_0xf859b1){return _0x49a26f(_0x523a99,_0xad0924-_0x30adc9._0x3fbffd,_0x2b3857-_0x30adc9._0x55f412,_0xf859b1- -_0x30adc9._0x2f3147);}return defineTool({'name':_0x158821,'description':_0x13e6ff[_0x53ee27(_0x2acf74._0x545da5,_0x2acf74._0x191a07,0xeb,0x14e)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x53ee27(-_0x2acf74._0x29d876,_0x2acf74._0x376d8a,-0x51,0x41),'properties':{'command':{'type':_0x53ee27(_0x2acf74._0x3b7dd4,_0x2acf74._0x327660,_0x2acf74._0x57a9f4,_0x2acf74._0x562665)},'cwd':{'type':_0x53ee27(0x50,0xf6,0xa6,0xfb)},'timeoutMs':{'type':_0x2592b7(0xf2,0x14f,0xa2,0xa1)},'ignoreOutput':{'type':_0x2592b7(0x10f,0x1a6,0xd8,_0x2acf74._0x2b2530)}},'required':[_0x53ee27(-_0x2acf74._0x391d4d,-_0x2acf74._0x4a0afa,0x47,_0x2acf74._0x30099d)]},async *'execute'(_0x32a151,_0x2465fe){const _0x46f2fc={_0x511fba:0x6ab,_0x50f774:0x5d3,_0x3d29e9:0x123,_0x49319c:0xfc},_0x2f8bc5={_0x19c47f:0x0,_0x5b9bfb:0x558},_0x444adc={_0x5ca2c0:0x214},_0x554d59={_0x266e04:0x5d3,_0xde5ed2:0xe1},_0x2d7acd={_0x9c344e:0x438,_0xd1198e:0x4de,_0xc79c43:0x539},_0x587c1a=_0x32a151[_0x769615(_0x3a7654._0xab5338,_0x3a7654._0x45afa2,_0x3a7654._0x2a48b1,_0x3a7654._0x38f637)]??_0x584107;if(!Number[_0x769615(_0x3a7654._0x5b4f37,0x4c9,_0x3a7654._0x5161d1,_0x3a7654._0x78a4a4)](_0x587c1a)||_0x587c1a<0x1)throw new ToolExecutionError(_0x769615(_0x3a7654._0x44ce3c,_0x3a7654._0xf1d885,0x571,_0x3a7654._0x5ee366),{'command':_0x32a151[_0x769615(0x53c,_0x3a7654._0x26bb7e,0x553,0x5f7)]});throwIfAborted(_0x2465fe['signal']);const _0xfe986d=resolveWorkingDirectory(_0x32a151[_0x769615(0x6a9,_0x3a7654._0x27683e,0x69f,_0x3a7654._0x3e6dd8)],_0x3c388b),_0x37b2a6=_0x32a151[_0x27c539(_0x3a7654._0x2d15f6,_0x3a7654._0x13e702,0x615,_0x3a7654._0x59ba38)]??![],_0x38506c=resolveDefaultShell(_0x13e6ff[_0x769615(_0x3a7654._0x17a728,0x52a,0x561,_0x3a7654._0x4a0aa4)]),_0x43bbb8=buildShellArgs(_0x32a151['command'],_0x38506c),_0x4f566a=_0x4299d8[_0x27c539(0x4c2,0x542,_0x3a7654._0x3e103d,_0x3a7654._0x3177b4)]()===_0x769615(_0x3a7654._0x5b97e0,0x6e9,_0x3a7654._0x47fad7,_0x3a7654._0x3afa23);let _0x42f6ed;function _0x27c539(_0x2ca90f,_0x329d24,_0x387bcf,_0x199749){return _0x53ee27(_0x2ca90f,_0x329d24-0x15f,_0x387bcf-_0x486706._0x2c1a1b,_0x387bcf-_0x486706._0x550c95);}try{_0x42f6ed=spawn(_0x38506c,_0x43bbb8,{'cwd':_0xfe986d,'env':{...process['env'],..._0x13e6ff[_0x27c539(0x5a2,0x43c,0x4e7,0x52d)]??{}},'stdio':_0x37b2a6?[_0x769615(0x5fa,_0x3a7654._0x5b4074,_0x3a7654._0x22ea71,0x617),_0x769615(0x61f,_0x3a7654._0x5396b1,0x644,_0x3a7654._0x3e9689),_0x27c539(0x5d7,_0x3a7654._0x5d4c8e,_0x3a7654._0x45dc2b,0x59e)]:[_0x27c539(_0x3a7654._0x587e7e,0x58d,_0x3a7654._0x5412ac,_0x3a7654._0x13a7bd),'pipe',_0x27c539(0x4c9,_0x3a7654._0x2523ff,_0x3a7654._0x10718e,_0x3a7654._0xcf0ecf)],'shell':![],'windowsHide':!![],'detached':!_0x4f566a});}catch(_0x5a8af7){if(isErrnoException(_0x5a8af7)&&_0x5a8af7['code']===_0x27c539(0x581,0x5e5,_0x3a7654._0x3a5fe0,0x537))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x38506c,{'command':_0x32a151[_0x27c539(0x559,0x424,_0x3a7654._0x173ba2,_0x3a7654._0x3af64)],'cwd':_0xfe986d,'shellPath':_0x38506c});throw new ToolExecutionError(_0x5a8af7 instanceof Error?_0x5a8af7['message']:String(_0x5a8af7),{'command':_0x32a151[_0x769615(_0x3a7654._0x2f376f,_0x3a7654._0x4988e6,_0x3a7654._0x140f45,_0x3a7654._0x28fea8)],'cwd':_0xfe986d,'shellPath':_0x38506c});}const _0x1ed295=[],_0x62b6f1=[],_0x4cff6c=new StringDecoder(_0x769615(_0x3a7654._0x57717d,_0x3a7654._0x6e3fd8,_0x3a7654._0x454046,_0x3a7654._0x4ded30)),_0x2617d7=new StringDecoder(_0x27c539(0x5ce,0x628,_0x3a7654._0x2a6214,0x55d));let _0xcfac01,_0x1a08a3=![],_0x5b928b;const _0x59d840=()=>{if(!_0xcfac01)return;const _0x1164d9=_0xcfac01;_0xcfac01=void 0x0,_0x1164d9();},_0x4baaba=async()=>{if(_0x62b6f1['length']>0x0||_0x1a08a3)return;await new Promise(_0x44f373=>{_0xcfac01=_0x44f373;});},_0x4ca6be=_0x5e1dae=>{appendChunk(_0x1ed295,_0x62b6f1,_0x4cff6c['write'](_0x5e1dae),_0x517f15,_0x59d840);},_0x1e0058=_0x4ce630=>{const _0x5bcba2={_0x4126de:0x18,_0x9aa412:0x19a};function _0x3d5d00(_0xbdef3e,_0x661b69,_0x227a31,_0x4fd1c7){return _0x769615(_0x661b69,_0x661b69-_0x5bcba2._0x4126de,_0x227a31- -0x152,_0x4fd1c7-_0x5bcba2._0x9aa412);}appendChunk(_0x1ed295,_0x62b6f1,_0x2617d7[_0x3d5d00(_0x2d7acd._0x9c344e,0x484,_0x2d7acd._0xd1198e,_0x2d7acd._0xc79c43)](_0x4ce630),_0x517f15,_0x59d840);};function _0x769615(_0x19caee,_0x2ba977,_0x275674,_0x1122a7){return _0x2592b7(_0x275674-0x4bd,_0x2ba977-0x57,_0x19caee,_0x1122a7-0x62);}_0x42f6ed[_0x769615(_0x3a7654._0x4a33bb,_0x3a7654._0x5e5c7a,_0x3a7654._0xea81ea,0x533)]?.['on']('data',_0x4ca6be),_0x42f6ed[_0x27c539(_0x3a7654._0xadf378,_0x3a7654._0x59a831,0x609,0x5a3)]?.['on'](_0x27c539(0x4fd,0x541,_0x3a7654._0x2cfc34,0x5a2),_0x1e0058);let _0x3a2a76=![],_0x14f9c4;const _0x22ff31=addAbortListener(_0x2465fe[_0x27c539(0x44d,_0x3a7654._0x5bb588,_0x3a7654._0x223d2f,0x56c)],()=>{function _0x2c2b23(_0x4d4127,_0x27ae71,_0x3a0adb,_0x1d3bf3){return _0x27c539(_0x4d4127,_0x27ae71-0xe7,_0x3a0adb- -_0x554d59._0x266e04,_0x1d3bf3-_0x554d59._0xde5ed2);}function _0x327c4e(_0x3f5f13,_0x116553,_0x19780f,_0x4ea76b){return _0x769615(_0x19780f,_0x116553-0x15d,_0x116553- -_0x444adc._0x5ca2c0,_0x4ea76b-0x83);}_0x5b928b=toAbortError(_0x2465fe[_0x2c2b23(-_0x49af01._0x50728e,-_0x49af01._0x1b7179,-0xde,-0x3e)][_0x327c4e(0x3fa,0x483,0x494,_0x49af01._0x24bb68)]),_0x1a08a3=!![],_0x59d840();try{killProcessGroup(_0x42f6ed,_0x4f566a);}catch{}});try{const _0x29f13f=new Promise((_0x265422,_0x52b092)=>{const _0x573654={_0x172cbb:0x4cc,_0x3aae9c:0x4ac},_0x3a7d58={_0x90dd52:0x31c},_0x159849={_0x518d14:0x63,_0x53e798:0x5b,_0x992ba1:0x47},_0x3f9009={_0x98c08f:0x51,_0x43ce84:0xc5,_0x6c460b:0x1b8},_0xd22ea7={_0x3b137a:0x638,_0x3d6029:0x6b4,_0x2ee1df:0x6a4,_0x434276:0x63f,_0x4ae148:0x6ac,_0x5738eb:0x6c0,_0x32bda6:0x753,_0x5cc179:0x727},_0xfb077a=()=>{function _0x90c22a(_0x19b415,_0x4c73b5,_0x27626b,_0x59f13e){return _0x1a55(_0x27626b-0x3ba,_0x4c73b5);}function _0x11708f(_0x449911,_0x17b769,_0x20e2f4,_0x55cff7){return _0x1a55(_0x55cff7- -0x1d1,_0x17b769);}_0x14f9c4&&(clearTimeout(_0x14f9c4),_0x14f9c4=void 0x0),_0x42f6ed[_0x90c22a(_0xd22ea7._0x3b137a,_0xd22ea7._0x3d6029,_0xd22ea7._0x2ee1df,0x6a7)](_0x90c22a(0x691,0x6f8,0x6f4,_0xd22ea7._0x434276),_0x29697a),_0x42f6ed[_0x90c22a(_0xd22ea7._0x4ae148,0x64c,0x6a4,_0xd22ea7._0x5738eb)](_0x90c22a(_0xd22ea7._0x32bda6,_0xd22ea7._0x5cc179,0x6aa,0x717),_0x463f14);},_0x29697a=_0x197935=>{_0x1a08a3=!![],_0x59d840(),_0xfb077a(),_0x52b092(_0x5b928b??_0x197935);};function _0x11bcc0(_0x11f0d5,_0x25cf16,_0x54bbaa,_0x8cd8d4){return _0x769615(_0x54bbaa,_0x25cf16-_0x3f9009._0x98c08f,_0x25cf16- -_0x3f9009._0x43ce84,_0x8cd8d4-_0x3f9009._0x6c460b);}function _0x3db552(_0x58678a,_0x3c4d5e,_0x3aec27,_0x1e1be8){return _0x769615(_0x58678a,_0x3c4d5e-_0x2f8bc5._0x19c47f,_0x3aec27- -_0x2f8bc5._0x5b9bfb,_0x1e1be8-0xd9);}const _0x463f14=(_0x4000b0,_0x3dc547)=>{const _0xb170a9={_0x457d73:0x267};_0x3a2a76=!![],appendChunk(_0x1ed295,_0x62b6f1,_0x4cff6c[_0x168260(_0x159849._0x518d14,-_0x159849._0x53e798,-0x103,-_0x159849._0x992ba1)](),_0x517f15,_0x59d840),appendChunk(_0x1ed295,_0x62b6f1,_0x2617d7['end'](),_0x517f15,_0x59d840),_0x1a08a3=!![],_0x59d840(),_0xfb077a();if(_0x5b928b){_0x52b092(_0x5b928b);return;}function _0x168260(_0x565e98,_0x380be6,_0x54001a,_0xe5fd7){return _0x1a55(_0xe5fd7- -_0xb170a9._0x457d73,_0x54001a);}_0x265422({'code':_0x4000b0,'signal':_0x3dc547});};_0x14f9c4=setTimeout(()=>{const _0x4a1b43={_0x596922:0x1c0};_0x1a08a3=!![];function _0x4de8e1(_0x3d6def,_0x584a19,_0x52a256,_0x2c26b0){return _0x1a55(_0x52a256-_0x3a7d58._0x90dd52,_0x2c26b0);}_0x59d840();function _0x5ce7dd(_0x9ff01c,_0x4779a7,_0x2a5c5d,_0x4bea51){return _0x1a55(_0x4bea51-_0x4a1b43._0x596922,_0x4779a7);}_0xfb077a();try{killProcessGroup(_0x42f6ed,_0x4f566a);}catch{}_0x52b092(new ToolExecutionError(_0x5ce7dd(0x54f,_0x573654._0x172cbb,0x473,0x4db)+_0x587c1a+_0x5ce7dd(_0x573654._0x3aae9c,0x3fd,0x3db,0x48f),{'command':_0x32a151['command'],'cwd':_0xfe986d,'shellPath':_0x38506c,'timeoutMs':_0x587c1a,'timedOut':!![]}));},_0x587c1a),_0x42f6ed[_0x11bcc0(_0x46f2fc._0x511fba,0x5ee,0x541,0x666)](_0x11bcc0(_0x46f2fc._0x50f774,0x600,0x648,0x5b3),_0x29697a),_0x42f6ed['once'](_0x3db552(0x142,0xd5,_0x46f2fc._0x3d29e9,_0x46f2fc._0x49319c),_0x463f14);});while(_0x62b6f1[_0x27c539(0x535,_0x3a7654._0x47e848,0x4f3,_0x3a7654._0x68baf5)]>0x0||!_0x1a08a3){if(_0x62b6f1[_0x27c539(_0x3a7654._0x319a00,0x56e,_0x3a7654._0xf9870c,0x4b3)]===0x0){await _0x4baaba();continue;}const _0x11207b=_0x62b6f1[_0x769615(0x651,_0x3a7654._0x3ede3c,_0x3a7654._0x2f376f,_0x3a7654._0x4ebea6)]();_0x11207b!==void 0x0&&(yield _0x11207b);}const _0x1ad9e4=await _0x29f13f,_0x17bb42=_0x37b2a6?_0x769615(0x695,0x661,_0x3a7654._0x28ad1c,0x6e2)+(_0x1ad9e4[_0x769615(0x4e7,0x5aa,0x559,_0x3a7654._0x26d90a)]??0x0):_0x1ed295[_0x27c539(_0x3a7654._0x2523ff,_0x3a7654._0x33604a,_0x3a7654._0x2e7201,0x4f8)](''),_0x59c70a={'command':_0x32a151['command'],'cwd':_0xfe986d,'exitCode':_0x1ad9e4['code']??0x0,'signal':_0x1ad9e4[_0x769615(0x5eb,_0x3a7654._0x5c1d81,_0x3a7654._0x36ef95,_0x3a7654._0x2180fa)],'ignoreOutput':_0x37b2a6,'shellPath':_0x38506c,'timeoutMs':_0x587c1a};if(_0x1ad9e4[_0x769615(_0x3a7654._0x3fa343,0x4c7,_0x3a7654._0x5ac299,_0x3a7654._0x3b7945)]!==0x0)throw new ToolExecutionError(_0x17bb42||_0x27c539(0x5a3,_0x3a7654._0x5e6d5d,_0x3a7654._0x53b5a2,_0x3a7654._0x31cd72)+(_0x1ad9e4['code']??0x0),_0x59c70a);return createToolOutput(_0x17bb42,_0x59c70a);}catch(_0x14ec0a){while(_0x62b6f1[_0x27c539(_0x3a7654._0x3ede3c,_0x3a7654._0x2ad130,_0x3a7654._0x15a496,0x47e)]>0x0){const _0x4a575a=_0x62b6f1[_0x27c539(0x4e8,_0x3a7654._0x26866a,0x559,_0x3a7654._0x474998)]();_0x4a575a!==void 0x0&&(yield _0x4a575a);}if(_0x14ec0a instanceof ToolExecutionError)throw _0x14ec0a;if(_0x5b928b)throw _0x5b928b;if(isErrnoException(_0x14ec0a)&&_0x14ec0a['code']==='ENOENT')throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x38506c,{'command':_0x32a151[_0x27c539(_0x3a7654._0x38a524,_0x3a7654._0x32192b,0x4a2,0x4bf)],'cwd':_0xfe986d,'shellPath':_0x38506c});throw new ToolExecutionError(_0x14ec0a instanceof Error?_0x14ec0a['message']:String(_0x14ec0a),{'command':_0x32a151[_0x769615(0x52c,_0x3a7654._0x12ac74,_0x3a7654._0x140f45,_0x3a7654._0x2ba3d1)],'cwd':_0xfe986d,'shellPath':_0x38506c});}finally{_0x14f9c4&&clearTimeout(_0x14f9c4);_0x22ff31(),_0x42f6ed['stdout']?.['off'](_0x769615(0x627,_0x3a7654._0xe81d0f,_0x3a7654._0x481886,0x4ee),_0x4ca6be),_0x42f6ed['stderr']?.[_0x769615(_0x3a7654._0x394570,_0x3a7654._0x5e8d08,_0x3a7654._0x101bde,_0x3a7654._0x5c1d81)](_0x27c539(0x4a0,0x44a,0x4e4,_0x3a7654._0x484b3f),_0x1e0058);if(!_0x3a2a76&&_0x42f6ed[_0x27c539(_0x3a7654._0x41130a,_0x3a7654._0x2ff472,0x55c,0x5da)]&&!_0x42f6ed['killed'])try{killProcessGroup(_0x42f6ed,_0x4f566a);}catch{}}}});}function createShellExecTool(_0x3214a1={}){return createBashTool(_0x3214a1);}import{readdir,readFile}from'fs/promises';import{extname,join as _0x415d43}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x40bd16,join,relative,resolve as _0x2db43f}from'path';import{readdir as _0x2b20f7,readFile as _0x4bc696}from'fs/promises';import{join as _0x2c54d1,relative as _0x207153,sep}from'path';import{delimiter}from'path';import{mkdir,rm,stat,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x4c16b2}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x38bede,rename,writeFile as _0x5c911e}from'fs/promises';import{homedir}from'os';import{dirname as _0xeaed6,isAbsolute as _0x2d3b67,join as _0x301ab0,resolve as _0x1e17db}from'path';import{parse as _0x3bbfc0,stringify as _0x4f3b34}from'yaml';import{z}from'zod';import{cp,mkdir as _0x227cca,readFile as _0x30b24b,rm as _0x1cc05d,writeFile as _0x21ceb0}from'fs/promises';import{homedir as _0x26021b}from'os';import{join as _0x5dfc54}from'path';import{parse as _0x134173,stringify as _0x53b30a}from'yaml';import{readdir as _0x4e0f9b,readFile as _0x19a991}from'fs/promises';import{join as _0x3c9e09}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x4e0b23){const _0x3b670d={_0x18882b:0x158,_0x4cac59:0x1e4,_0x4d4ec0:0x262,_0x59db7e:0x1ad,_0x6dfbff:0x1df,_0x9a3e73:0x139},_0x182686={_0x296c14:0xd3},_0x4f136b={_0xafc00c:0x438},_0x525787=[];let _0x38dd76='';function _0x161574(_0x5b48c3,_0x33a86c,_0x26acec,_0x41e337){return _0xaab5df(_0x5b48c3-0x85,_0x41e337-_0x4f136b._0xafc00c,_0x26acec-0x6b,_0x33a86c);}function _0x1bd6d0(_0x104d82,_0x50c7f0,_0x367663,_0x4d9759){return _0xaab5df(_0x104d82-0x169,_0x50c7f0- -0x5,_0x367663-_0x182686._0x296c14,_0x367663);}let _0x3615a8=0x0;while(_0x3615a8<_0x4e0b23[_0x1bd6d0(-0x127,-0x1ad,-_0x3b670d._0x18882b,-_0x3b670d._0x4cac59)]){const _0x2b24e3=_0x4e0b23[_0x3615a8];if(_0x2b24e3==='\x5c'&&_0x3615a8+0x1<_0x4e0b23['length'])_0x38dd76+=_0x4e0b23[_0x3615a8+0x1],_0x3615a8+=0x2;else{if(_0x2b24e3==='\x22'||_0x2b24e3==='\x27'){const _0x34d723=_0x2b24e3;_0x3615a8++;while(_0x3615a8<_0x4e0b23[_0x1bd6d0(-_0x3b670d._0x4d4ec0,-0x1ad,-0x14c,-0x157)]&&_0x4e0b23[_0x3615a8]!==_0x34d723){_0x4e0b23[_0x3615a8]==='\x5c'&&_0x3615a8+0x1<_0x4e0b23[_0x1bd6d0(-0x25f,-_0x3b670d._0x59db7e,-0x1a0,-0x10f)]?(_0x38dd76+=_0x4e0b23[_0x3615a8+0x1],_0x3615a8+=0x2):(_0x38dd76+=_0x4e0b23[_0x3615a8],_0x3615a8++);}_0x3615a8++;}else _0x2b24e3!==void 0x0&&/\s/[_0x161574(0x218,0x34f,0x239,0x2c8)](_0x2b24e3)?(_0x38dd76&&(_0x525787['push'](_0x38dd76),_0x38dd76=''),_0x3615a8++):(_0x38dd76+=_0x2b24e3,_0x3615a8++);}}if(_0x38dd76)_0x525787[_0x1bd6d0(-_0x3b670d._0x6dfbff,-0x1d1,-0x14a,-_0x3b670d._0x9a3e73)](_0x38dd76);return _0x525787;}function renderCommandInstructions(_0x38f48b){const _0x161eb1={_0x344114:0xe2,_0x5635f7:0xb0,_0x1fb7e7:0xdc,_0x1adbc8:0x3ad,_0x59f85a:0x349,_0x38e745:0x5a,_0x4700b9:0x45,_0x3ae932:0xb4,_0xf5e86d:0x8a,_0x191979:0x46a,_0x3f7832:0x403,_0x50817d:0x4dc,_0x817d6e:0x434,_0x587e2f:0x460,_0x4f1f90:0x31a,_0x4ccf78:0x4ee,_0x1e17e5:0x13a,_0x2df77e:0x132,_0xefe611:0x3d,_0x3b5bd2:0xbd,_0x11acb5:0x8a,_0x113fcf:0x26,_0x4ad300:0x7e,_0x592997:0x4d,_0x397110:0x54d,_0x3a017b:0x160,_0xc961b8:0x20b,_0xab4833:0x15e,_0x13fd0c:0x3a4},_0x2fe7ee={_0x3347ed:0x160},_0x1eff36={_0xbc08ee:0x98,_0x561f07:0x16d,_0x4e9966:0xf2},_0x93a99d={_0x398032:0x488};let _0x3283f1=_0x38f48b[_0x385801(-_0x161eb1._0x344114,-_0x161eb1._0x5635f7,-0xb5,-_0x161eb1._0x1fb7e7)],_0x3ba7a8=![];const _0x16387e=tokenizeCommandArguments(_0x38f48b[_0x249ecf(0x396,_0x161eb1._0x1adbc8,0x32a,_0x161eb1._0x59f85a)]);_0x3283f1=_0x3283f1['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0x54fcab,_0x27123c)=>{return _0x3ba7a8=!![],_0x16387e[Number(_0x27123c)]??'';});function _0x385801(_0x2432e6,_0x3acdae,_0x2bcbcb,_0x53e64c){return _0x49a26f(_0x2432e6,_0x3acdae-0x13a,_0x2bcbcb-0x1b2,_0x53e64c- -0x497);}_0x3283f1=_0x3283f1[_0x385801(-_0x161eb1._0x38e745,0x1b,-_0x161eb1._0x4700b9,-0x4d)](/\$ARGUMENTS\b/g,()=>{_0x3ba7a8=!![];function _0x3e2ab3(_0x5950a0,_0x526801,_0x583cf4,_0x18723f){return _0x249ecf(_0x18723f- -_0x93a99d._0x398032,_0x526801-0x17d,_0x583cf4-0x108,_0x5950a0);}return _0x38f48b[_0x3e2ab3(-_0x1eff36._0xbc08ee,-0xa3,-_0x1eff36._0x561f07,-_0x1eff36._0x4e9966)];});if(_0x38f48b[_0x385801(-_0x161eb1._0x3ae932,-0x39,0x1d,-_0x161eb1._0xf5e86d)]&&_0x38f48b[_0x249ecf(_0x161eb1._0x191979,0x51e,_0x161eb1._0x3f7832,_0x161eb1._0x50817d)][_0x249ecf(0x3c2,_0x161eb1._0x817d6e,_0x161eb1._0x587e2f,_0x161eb1._0x4f1f90)]>0x0)for(let _0x4515e9=0x0;_0x4515e9<_0x38f48b[_0x249ecf(0x46a,_0x161eb1._0x4ccf78,0x3ab,0x4aa)][_0x385801(-0x86,-0x194,-_0x161eb1._0x1e17e5,-_0x161eb1._0x2df77e)];_0x4515e9++){const _0x494cba=_0x38f48b[_0x385801(-_0x161eb1._0xefe611,-0x139,-_0x161eb1._0x3b5bd2,-_0x161eb1._0x11acb5)][_0x4515e9];if(_0x494cba){const _0x126312=new RegExp('\x5c$'+_0x494cba+'\x5cb','g');_0x3283f1=_0x3283f1[_0x385801(-_0x161eb1._0x113fcf,-_0x161eb1._0x4ad300,0x2a,-_0x161eb1._0x592997)](_0x126312,()=>{return _0x3ba7a8=!![],_0x16387e[_0x4515e9]??'';});}}_0x3283f1=_0x3283f1[_0x249ecf(0x4a7,0x43e,0x521,_0x161eb1._0x397110)](/\$(\d+)\b/g,(_0x2e8722,_0x80652)=>{return _0x3ba7a8=!![],_0x16387e[Number(_0x80652)]??'';});!_0x3ba7a8&&_0x38f48b[_0x385801(-_0x161eb1._0x3a017b,-0x1ca,-_0x161eb1._0xc961b8,-_0x161eb1._0xab4833)][_0x249ecf(0x3d7,0x3bc,0x492,0x436)]()&&(_0x3283f1=_0x3283f1+_0x249ecf(0x3e1,0x3e7,0x3bb,0x33c)+_0x38f48b[_0x249ecf(0x396,_0x161eb1._0x13fd0c,0x34a,0x3f5)]);function _0x249ecf(_0x485ea0,_0x30d302,_0xd89fbc,_0x33d3c1){return _0xaab5df(_0x485ea0-0x1ec,_0x485ea0-0x56a,_0xd89fbc-_0x2fe7ee._0x3347ed,_0x33d3c1);}return _0x3283f1;}var chatModelAuthSchemeSchema=z[_0x49a26f(0x3a9,0x32d,0x32e,0x376)](['bearer',_0x49a26f(0x2ef,0x42f,0x34a,0x388)]),apiKeyAuthSchema=z[_0x49a26f(0x3a6,0x394,0x381,0x34e)]({'type':z[_0xaab5df(-0x69,-0x125,-0x122,-0x111)](_0x49a26f(0x3fb,0x3fe,0x3be,0x451)),'apiKey':z[_0x49a26f(0x402,0x3d6,0x363,0x408)](),'authScheme':chatModelAuthSchemeSchema[_0x49a26f(0x338,0x340,0x467,0x3f6)]()})[_0x49a26f(0x351,0x3c3,0x35d,0x35d)](),oauthAuthSchema=z['object']({'type':z[_0x49a26f(0x3dc,0x3b3,0x403,0x3e8)](_0x49a26f(0x49f,0x45c,0x4a3,0x46a)),'access':z['string'](),'refresh':z[_0x49a26f(0x34d,0x398,0x3c7,0x408)](),'expires':z[_0x49a26f(0x2b6,0x301,0x364,0x370)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0xaab5df(-0x13a,-0x117,-0x94,-0x6b)]()})[_0x49a26f(0x31b,0x317,0x31c,0x35d)](),authMethodSchema=z[_0x49a26f(0x326,0x328,0x309,0x36a)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0xaab5df(-0x102,-0x1bf,-0x18f,-0x107)]({'id':z[_0xaab5df(-0x1c0,-0x105,-0x57,-0x68)](),'name':z['string']()[_0xaab5df(-0x70,-0x117,-0x6d,-0x162)]()})[_0xaab5df(-0x1f1,-0x1b0,-0x169,-0x1a9)](),modelConfigSchema=z[_0x49a26f(0x31e,0x3c2,0x2ab,0x36a)]([z[_0x49a26f(0x34a,0x3d0,0x3df,0x3e8)](![]),z[_0x49a26f(0x449,0x3e9,0x3ca,0x3e8)](!![]),z[_0xaab5df(-0x19e,-0x105,-0x164,-0xc2)](),z[_0xaab5df(-0x14d,-0xb6,-0x13d,0x0)](z['string']()),z[_0x49a26f(0x3f8,0x4e4,0x4b8,0x457)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x49a26f(0x376,0x2d6,0x41b,0x376)]([_0x49a26f(0x36b,0x390,0x3bb,0x3c6),_0xaab5df(-0x180,-0x132,-0xc5,-0x127),_0xaab5df(-0x143,-0xaf,-0xff,-0x79),_0x49a26f(0x3b8,0x31f,0x253,0x312)]),providerConfigSchema=z['object']({'apiKey':z[_0x49a26f(0x436,0x488,0x449,0x408)]()[_0xaab5df(-0xd1,-0x117,-0x1b6,-0x1b0)](),'token':z['string']()['optional'](),'defaultModel':z[_0x49a26f(0x3f0,0x35b,0x384,0x408)]()[_0xaab5df(-0xc1,-0x117,-0xfe,-0x1ce)](),'smallModel':z[_0x49a26f(0x3e3,0x371,0x419,0x408)]()[_0xaab5df(-0x157,-0x117,-0x62,-0x180)](),'currentAuth':z[_0xaab5df(-0xed,-0x105,-0xfb,-0x7b)]()[_0x49a26f(0x358,0x49a,0x41f,0x3f6)](),'auth':z['array'](authMethodSchema)[_0xaab5df(-0x10c,-0x117,-0x18d,-0x10b)](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z[_0xaab5df(-0x11d,-0x105,-0x11f,-0x143)]()[_0x49a26f(0x3a6,0x45e,0x3ef,0x3f6)](),'models':modelConfigSchema[_0x49a26f(0x3cc,0x4b2,0x3ed,0x3f6)](),'customHeaders':z[_0x49a26f(0x51f,0x4ce,0x50d,0x472)](z[_0xaab5df(-0xc9,-0x105,-0x198,-0x143)](),z['string']())['optional']()})[_0xaab5df(-0x21c,-0x1b0,-0x11b,-0x1da)](),mcpServerConfigSchema=z[_0xaab5df(-0x211,-0x1bf,-0x125,-0x236)]({'command':z['string']()[_0xaab5df(-0xf9,-0x117,-0x1bd,-0x9d)](),'args':z['array'](z[_0x49a26f(0x416,0x39d,0x37d,0x408)]())['optional'](),'env':z[_0xaab5df(-0x10f,-0x9b,-0x6b,-0xd9)](z[_0x49a26f(0x3c5,0x3cc,0x45f,0x408)](),z['string']())[_0x49a26f(0x34c,0x453,0x3cf,0x3f6)](),'transport':z[_0xaab5df(-0x13e,-0x197,-0x233,-0x157)]([_0x49a26f(0x33a,0x33e,0x38b,0x318),'http'])[_0x49a26f(0x38e,0x40d,0x4a4,0x3f6)](),'url':z['string']()[_0xaab5df(-0x1b0,-0x117,-0x17d,-0x89)](),'headers':z[_0xaab5df(-0x2c,-0x9b,-0x13e,-0x21)](z['string'](),z[_0x49a26f(0x3ca,0x45e,0x3c2,0x408)]())[_0xaab5df(-0x8e,-0x117,-0x115,-0x1bf)](),'prefix':z[_0x49a26f(0x377,0x462,0x3a3,0x408)]()[_0x49a26f(0x3ee,0x3bb,0x3c0,0x3f6)](),'timeoutMs':z[_0xaab5df(-0x12d,-0x19d,-0x1a5,-0x11b)]()[_0xaab5df(-0x12d,-0x117,-0x197,-0x183)](),'enabled':z[_0x49a26f(0x419,0x41c,0x3b5,0x38d)]()[_0x49a26f(0x3bc,0x358,0x464,0x3f6)](),'auth':z['object']({'type':z['enum']([_0x49a26f(0x3f5,0x3e8,0x431,0x3c7),_0xaab5df(-0x217,-0x195,-0x13e,-0xfe),_0xaab5df(-0x134,-0xa3,-0x42,-0x14e)]),'token':z[_0x49a26f(0x34b,0x44d,0x46c,0x408)]()['optional'](),'oauth':z['object']({'clientId':z[_0x49a26f(0x448,0x495,0x4c7,0x408)]()[_0xaab5df(-0x1c8,-0x117,-0x5e,-0x1c5)](),'clientMetadataUrl':z[_0x49a26f(0x355,0x4a1,0x380,0x408)]()[_0x49a26f(0x443,0x3e0,0x4b4,0x3f6)](),'authorizationServer':z[_0xaab5df(-0x13b,-0x105,-0x122,-0xa9)]()[_0xaab5df(-0xfb,-0x117,-0x190,-0x58)](),'scopes':z[_0xaab5df(-0xbb,-0xb6,-0x140,0x4)](z[_0x49a26f(0x3ef,0x4a8,0x3e1,0x408)]())['optional'](),'tokenStorageKey':z[_0xaab5df(-0x4a,-0x105,-0x6d,-0x4c)]()[_0x49a26f(0x37f,0x3ca,0x471,0x3f6)]()})[_0x49a26f(0x2ca,0x3ad,0x3d6,0x35d)]()['optional']()})[_0xaab5df(-0x17b,-0x1b0,-0x23c,-0x1d2)]()[_0x49a26f(0x47b,0x436,0x3a9,0x3f6)]()})[_0xaab5df(-0x1a5,-0x1b0,-0x109,-0x26c)](),mcpSettingsSchema=z['object']({'servers':z[_0xaab5df(-0xf4,-0x9b,-0xce,-0x151)](z[_0xaab5df(-0xe1,-0x105,-0x1a7,-0xa0)](),mcpServerConfigSchema)['optional'](),'allowedTools':z[_0xaab5df(-0xe4,-0x9b,-0x14e,-0x113)](z[_0xaab5df(-0xc0,-0x105,-0x1a1,-0x198)](),z[_0xaab5df(-0xa2,-0x9b,-0x15a,-0x5b)](z[_0x49a26f(0x47f,0x47b,0x47f,0x408)](),z[_0x49a26f(0x305,0x385,0x304,0x38d)]()))['optional'](),'defaultTimeoutMs':z[_0xaab5df(-0x1ec,-0x19d,-0x1d6,-0x1f0)]()[_0x49a26f(0x46d,0x354,0x478,0x3f6)]()})[_0x49a26f(0x3c7,0x2c9,0x2a2,0x35d)](),skillsSettingsSchema=z[_0x49a26f(0x3cf,0x3c6,0x379,0x34e)]({'enabled':z[_0x49a26f(0x432,0x40a,0x305,0x38d)]()[_0x49a26f(0x37d,0x3c7,0x34a,0x3f6)](),'includeDefaults':z[_0xaab5df(-0x124,-0x180,-0x187,-0x20d)]()[_0x49a26f(0x443,0x46e,0x349,0x3f6)](),'directories':z[_0x49a26f(0x50d,0x509,0x4ad,0x457)](z[_0xaab5df(-0x82,-0x105,-0x163,-0x4f)]())[_0x49a26f(0x468,0x373,0x3e3,0x3f6)](),'exclude':z['array'](z[_0xaab5df(-0x89,-0x105,-0xeb,-0x97)]())[_0x49a26f(0x41a,0x46b,0x34e,0x3f6)]()})[_0xaab5df(-0xf7,-0x1b0,-0x187,-0x185)](),commandsSettingsSchema=z[_0xaab5df(-0x1d8,-0x1bf,-0x25c,-0x16d)]({'enabled':z[_0xaab5df(-0xc9,-0x180,-0x101,-0x1e2)]()[_0xaab5df(-0x1a2,-0x117,-0x60,-0x100)](),'directories':z['array'](z['string']())[_0x49a26f(0x3c8,0x38d,0x431,0x3f6)]()})[_0x49a26f(0x331,0x3b8,0x313,0x35d)](),agentsSettingsSchema=z[_0xaab5df(-0x1de,-0x1bf,-0x129,-0x202)]({'enabled':z['boolean']()[_0x49a26f(0x48c,0x371,0x41c,0x3f6)](),'includeDefaults':z['boolean']()[_0xaab5df(-0xf9,-0x117,-0x195,-0x76)](),'directories':z[_0x49a26f(0x511,0x41b,0x481,0x457)](z[_0xaab5df(-0x68,-0x105,-0xc0,-0xff)]())[_0xaab5df(-0x73,-0x117,-0xe4,-0x14a)]()})['passthrough'](),uiThemeSettingsSchema=z[_0xaab5df(-0x114,-0x1bf,-0x221,-0x1ec)]({'mode':z[_0xaab5df(-0x246,-0x197,-0x13f,-0x187)]([_0xaab5df(-0x9a,-0x106,-0x9e,-0x6d),_0x49a26f(0x464,0x328,0x44e,0x3a4),_0x49a26f(0x3c9,0x387,0x4d1,0x41d)])[_0xaab5df(-0xd0,-0x117,-0x6a,-0x153)](),'colorLevel':z[_0x49a26f(0x355,0x329,0x304,0x376)]([_0x49a26f(0x3d8,0x416,0x374,0x407),_0x49a26f(0x3f5,0x400,0x441,0x3c7),_0xaab5df(-0xa9,-0x14d,-0x105,-0x1ca),_0xaab5df(-0x4c,-0xd2,-0x8d,-0x92),_0xaab5df(-0x1aa,-0x1c1,-0x18d,-0x1e0)])['optional'](),'backgrounds':z[_0xaab5df(-0x16e,-0x197,-0x145,-0xd9)]([_0xaab5df(-0x1bc,-0x106,-0x1a2,-0x4a),'on','off'])[_0x49a26f(0x3dd,0x40d,0x466,0x3f6)](),'messageStyle':z[_0xaab5df(-0x238,-0x197,-0xe2,-0x143)]([_0xaab5df(-0x1dd,-0x18a,-0x162,-0x1f6),_0x49a26f(0x45a,0x45d,0x419,0x3a9)])['optional']()})[_0x49a26f(0x2b0,0x318,0x3f5,0x35d)](),statuslineSegmentSchema=z[_0x49a26f(0x42e,0x31a,0x34d,0x376)]([_0xaab5df(-0x84,-0xd9,-0x183,-0xbe),'session',_0xaab5df(-0x10f,-0x178,-0xd7,-0xf0),_0xaab5df(-0x256,-0x19b,-0x181,-0x1a0),_0xaab5df(-0x1a3,-0x18c,-0x11a,-0x1c6),'context',_0x49a26f(0x48f,0x3c8,0x3b7,0x43d),'requests','tools',_0xaab5df(-0xfa,-0x12c,-0x18c,-0x182),_0xaab5df(-0x253,-0x1f7,-0x175,-0x24a),_0x49a26f(0x2f2,0x2f5,0x3e6,0x33f),'keybindings','memory',_0x49a26f(0x33e,0x3ca,0x3f6,0x3c5)]),statuslineItemSchema=z[_0x49a26f(0x3a2,0x2ed,0x2f2,0x36a)]([statuslineSegmentSchema,z[_0x49a26f(0x494,0x45e,0x49a,0x3e8)]('|')]),statuslineRowSchema=z[_0xaab5df(-0x124,-0xb6,-0x9d,-0x4e)](statuslineItemSchema),statuslineConfigSchema=z[_0xaab5df(-0x239,-0x1bf,-0x258,-0x1a6)]({'rows':z[_0x49a26f(0x41d,0x326,0x360,0x3a7)]([statuslineRowSchema,statuslineRowSchema])[_0xaab5df(-0x87,-0x117,-0x10a,-0xa3)]()})['passthrough'](),memorySettingsSchema=z['object']({'version':z[_0x49a26f(0x3e0,0x348,0x32e,0x3e8)](0x2)[_0x49a26f(0x431,0x456,0x429,0x3f6)](),'retrieval':z['object']({'engine':z[_0x49a26f(0x450,0x39b,0x42d,0x3e8)](_0xaab5df(-0x145,-0xeb,-0xad,-0x102))['optional'](),'candidateLimit':z[_0x49a26f(0x40e,0x3ec,0x30c,0x370)]()[_0xaab5df(-0x17a,-0x117,-0x130,-0x69)](),'activeCandidateLimit':z[_0xaab5df(-0x198,-0x19d,-0x214,-0x1cf)]()[_0xaab5df(-0x5d,-0x117,-0xc0,-0xdf)](),'activeEnabled':z[_0x49a26f(0x2e6,0x405,0x2f2,0x38d)]()[_0xaab5df(-0x13b,-0x117,-0xed,-0x17a)](),'maxQueriesPerTurn':z[_0x49a26f(0x31e,0x3bd,0x2dc,0x370)]()[_0x49a26f(0x40b,0x38c,0x434,0x3f6)](),'coreInjectTokenBudget':z[_0xaab5df(-0x167,-0x19d,-0x1b7,-0x252)]()['optional'](),'injectTokenBudget':z[_0x49a26f(0x341,0x3f1,0x3e5,0x370)]()[_0xaab5df(-0x179,-0x117,-0x128,-0x19d)](),'minScore':z[_0xaab5df(-0x11a,-0x19d,-0x21b,-0x24b)]()['optional'](),'freshnessHalfLifeDays':z[_0x49a26f(0x370,0x354,0x3fa,0x370)]()[_0x49a26f(0x36b,0x44c,0x465,0x3f6)]()})['passthrough']()[_0xaab5df(-0x83,-0x117,-0xd5,-0xdc)](),'extraction':z['object']({'enabled':z[_0xaab5df(-0xe2,-0x180,-0x18a,-0x210)]()[_0x49a26f(0x414,0x494,0x3b0,0x3f6)](),'provider':z[_0x49a26f(0x407,0x3c5,0x365,0x408)]()[_0xaab5df(-0x11a,-0x117,-0xfc,-0x102)](),'model':z[_0xaab5df(-0x6c,-0x105,-0x192,-0x63)]()[_0xaab5df(-0x187,-0x117,-0x18a,-0x1ac)](),'sensitiveFilter':z['boolean']()['optional']()})[_0xaab5df(-0x247,-0x1b0,-0x1ef,-0x102)]()[_0x49a26f(0x366,0x3ad,0x3b7,0x3f6)](),'index':z[_0x49a26f(0x3aa,0x2b2,0x3b6,0x34e)]({'persisted':z[_0x49a26f(0x3c8,0x3c5,0x2f6,0x38d)]()[_0xaab5df(-0x188,-0x117,-0xef,-0x172)](),'flushIntervalMs':z[_0x49a26f(0x322,0x39b,0x2e0,0x370)]()[_0x49a26f(0x378,0x4b4,0x39c,0x3f6)]()})[_0x49a26f(0x3fb,0x3a1,0x3f7,0x35d)]()[_0x49a26f(0x338,0x428,0x478,0x3f6)](),'enabled':z[_0x49a26f(0x2f8,0x410,0x368,0x38d)]()[_0x49a26f(0x484,0x355,0x400,0x3f6)](),'saveTool':z['boolean']()[_0xaab5df(-0x88,-0x117,-0xcd,-0x103)](),'model':z[_0xaab5df(-0x15d,-0x105,-0xc6,-0x136)]()[_0x49a26f(0x34a,0x44a,0x47b,0x3f6)](),'provider':z[_0xaab5df(-0x87,-0x105,-0x8e,-0x76)]()[_0x49a26f(0x405,0x3b7,0x3f0,0x3f6)](),'maxInjectionTokens':z[_0xaab5df(-0x1e1,-0x19d,-0x226,-0xe8)]()['optional'](),'backgroundExtraction':z['boolean']()['optional']()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x49a26f(0x4a9,0x3e5,0x46e,0x408)](),'model':z[_0xaab5df(-0x107,-0x105,-0x14f,-0x18f)](),'usedAt':z[_0xaab5df(-0x144,-0x19d,-0x254,-0xea)]()})['passthrough'](),lspServerEntrySchema=z['object']({'disabled':z[_0x49a26f(0x3fe,0x3de,0x391,0x38d)]()['optional'](),'command':z[_0xaab5df(-0x89,-0x105,-0x8b,-0x163)]()[_0xaab5df(-0x18c,-0x117,-0xc3,-0x59)](),'args':z[_0x49a26f(0x3be,0x492,0x3db,0x457)](z[_0xaab5df(-0x143,-0x105,-0x179,-0x16c)]())['optional'](),'rootMarkers':z['array'](z['string']())['optional']()})[_0x49a26f(0x395,0x329,0x3d6,0x35d)](),lspConfigSchema=z[_0x49a26f(0x36f,0x3cf,0x39d,0x34e)]({'enabled':z['boolean']()[_0xaab5df(-0x84,-0x117,-0xcb,-0xf2)](),'servers':z[_0xaab5df(-0x14a,-0x9b,0x1e,0x12)](z[_0x49a26f(0x3fa,0x365,0x3d5,0x408)](),lspServerEntrySchema)[_0xaab5df(-0x13b,-0x117,-0xa9,-0xf4)]()})[_0x49a26f(0x3a7,0x3de,0x412,0x35d)](),cliConfigSchema=z[_0x49a26f(0x3f4,0x2c0,0x3d3,0x34e)]({'activeProvider':z[_0xaab5df(-0x6f,-0x105,-0x89,-0x1c3)]()['optional'](),'activeModel':z[_0xaab5df(-0x6c,-0x105,-0xe2,-0x14b)]()['optional'](),'apiKey':z[_0x49a26f(0x496,0x37a,0x43c,0x408)]()['optional'](),'providers':z[_0x49a26f(0x418,0x4fc,0x52d,0x472)](z[_0x49a26f(0x389,0x387,0x477,0x408)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x49a26f(0x417,0x4ad,0x400,0x3f6)](),'skills':skillsSettingsSchema[_0xaab5df(-0xef,-0x117,-0x118,-0x18f)](),'agents':agentsSettingsSchema[_0xaab5df(-0xd9,-0x117,-0xac,-0x60)](),'commands':commandsSettingsSchema[_0x49a26f(0x3e1,0x37d,0x420,0x3f6)](),'skillsEnabled':z[_0x49a26f(0x423,0x42e,0x4f4,0x472)](z[_0x49a26f(0x3a6,0x383,0x3db,0x408)](),z['boolean']())[_0x49a26f(0x479,0x3e2,0x38a,0x3f6)](),'memory':memorySettingsSchema[_0xaab5df(-0xd3,-0x117,-0x11d,-0x145)](),'session':z[_0x49a26f(0x324,0x3b9,0x349,0x34e)]({'memPersist':z[_0xaab5df(-0x1ee,-0x180,-0x168,-0x1b7)]()['optional'](),'persistEventLog':z[_0xaab5df(-0x1a9,-0x180,-0xfd,-0x153)]()['optional'](),'persistHttpLog':z[_0xaab5df(-0x1c3,-0x180,-0x18d,-0x18c)]()[_0x49a26f(0x374,0x4ac,0x38b,0x3f6)]()})['passthrough']()['optional'](),'requireToolApproval':z[_0xaab5df(-0x184,-0x180,-0x193,-0x139)]()[_0x49a26f(0x336,0x404,0x450,0x3f6)](),'thinking':z[_0xaab5df(-0x1e7,-0x197,-0x12f,-0x215)]([_0x49a26f(0x414,0x3ed,0x3cf,0x421),_0x49a26f(0x38f,0x40a,0x343,0x36d),_0xaab5df(0x6,-0x8e,-0xab,-0x58),_0x49a26f(0x2eb,0x3be,0x3f5,0x368)])[_0x49a26f(0x3af,0x470,0x46c,0x3f6)](),'streamingChunks':z[_0x49a26f(0x361,0x3c9,0x42e,0x38d)]()['optional'](),'agentsEnabled':z['record'](z[_0x49a26f(0x443,0x352,0x483,0x408)](),z[_0x49a26f(0x310,0x2f1,0x3df,0x38d)]())[_0xaab5df(-0xcf,-0x117,-0x193,-0x1b6)](),'recentModels':z[_0xaab5df(-0x79,-0xb6,-0x68,-0xe4)](recentModelSchema)[_0x49a26f(0x354,0x4b0,0x493,0x3f6)](),'lsp':lspConfigSchema[_0x49a26f(0x366,0x3fd,0x3ad,0x3f6)](),'ui':z[_0x49a26f(0x404,0x2e3,0x3fe,0x34e)]({'theme':uiThemeSettingsSchema[_0xaab5df(-0xbb,-0x117,-0x1af,-0xbd)](),'statusline':statuslineConfigSchema['optional']()})['passthrough']()[_0x49a26f(0x3c8,0x35c,0x349,0x3f6)](),'tools':z[_0x49a26f(0x3f5,0x4d4,0x3cf,0x472)](z['string'](),z[_0x49a26f(0x371,0x269,0x317,0x315)]())['optional']()})[_0xaab5df(-0x1ed,-0x1b0,-0x230,-0x11a)]();function buildDescription(_0x4feb9d){const _0x2444ef={_0x31b285:0x83,_0x44e977:0x54,_0x1c072c:0xe8,_0xa0761:0xb0,_0x57e6b7:0x93,_0x2bd56a:0x5b,_0x49efa7:0x9c,_0x36165f:0x42,_0x330a9f:0x20,_0x37dc17:0xa8,_0x2b9d04:0x18a,_0x2a5b65:0xbb,_0x58699d:0x101,_0x240a06:0x9c,_0x32139c:0x1,_0x30f2f5:0x16,_0x4011cb:0xc2},_0xf2a124={_0x734797:0x1f0},_0x2c335e={_0x1aa68c:0xa6};if(_0x4feb9d[_0x1cd083(-0x7e,-0xdb,-_0x2444ef._0x31b285,-_0x2444ef._0x44e977)]===0x0)return[_0xc1c6d0(-0x101,-0xa4,-0xae,-0x15c),_0xc1c6d0(-_0x2444ef._0x1c072c,-0x1a4,-_0x2444ef._0xa0761,-_0x2444ef._0x57e6b7),_0x1cd083(_0x2444ef._0x2bd56a,0xe,-_0x2444ef._0x49efa7,-0x1d)][_0x1cd083(0x90,-_0x2444ef._0x36165f,-0x92,-_0x2444ef._0x330a9f)]('\x0a');function _0x1cd083(_0x5be7ea,_0x17e06e,_0x252f86,_0x5833ed){return _0xaab5df(_0x5be7ea-0x4c,_0x5833ed-0x154,_0x252f86-_0x2c335e._0x1aa68c,_0x252f86);}const _0x296e81=[_0xc1c6d0(-0x101,-0x1b6,-0x102,-_0x2444ef._0x37dc17),_0xc1c6d0(-0xe8,-_0x2444ef._0x2b9d04,-0x58,-_0x2444ef._0x2a5b65),_0x1cd083(0x7,-0x164,-_0x2444ef._0x58699d,-0xa8),..._0x4feb9d[_0x1cd083(0xa1,0x1f,-_0x2444ef._0x240a06,_0x2444ef._0x32139c)](_0x55e64f=>_0x55e64f['argumentHint']?'-\x20'+_0x55e64f['name']+'\x20'+_0x55e64f[_0xc1c6d0(-0x3f,-0x44,-0x43,-0xfe)]+':\x20'+_0x55e64f[_0xc1c6d0(-0x67,-0xc2,-0x7f,-0x48)]:'-\x20'+_0x55e64f[_0xc1c6d0(-0x160,-0xf8,-0xf5,-0x19d)]+':\x20'+_0x55e64f[_0xc1c6d0(-0x67,-0x8c,0x47,-0xc7)])];function _0xc1c6d0(_0x23c53a,_0x2188a6,_0x34e2dc,_0x261b1e){return _0xaab5df(_0x23c53a-0x1d2,_0x23c53a-0x4b,_0x34e2dc-_0xf2a124._0x734797,_0x261b1e);}return _0x296e81[_0x1cd083(-_0x2444ef._0x30f2f5,0x33,-_0x2444ef._0x4011cb,-0x20)]('\x0a');}function createInvokeCommandTool(_0x1d445c){const _0x580d40={_0x3cf5ec:0x64,_0x18ef55:0x7d,_0x20f5f0:0x7f,_0x319efa:0x85,_0x3dcb83:0xdd,_0x2d1532:0xa6,_0x18e74a:0xe5,_0x1db33b:0x55,_0x2317bd:0x11,_0x296820:0x96},_0x581e8d={_0x88caed:0x10c,_0x185839:0x12,_0x1b6210:0x49,_0x108d72:0xea,_0x12e38c:0x3b,_0x1c61e9:0x38,_0x544d85:0x33,_0x37d58c:0x68,_0x452657:0xa6,_0x152f54:0x8a,_0x53045d:0x6f,_0x4890bb:0x39,_0xae2623:0x71,_0x36bb35:0x59,_0x282548:0x41,_0x563ed4:0x1b,_0x9d2ff5:0xac,_0x392f73:0x6a,_0x1d9969:0x95,_0x2c56ef:0x25,_0x4a06d5:0x1,_0x43ebbb:0x6,_0x3667e5:0x72,_0xdf2647:0xc6,_0x18e97b:0xf4,_0x348637:0x14f},_0x47cf7f={_0x39c328:0x18c,_0x5626b7:0x1c,_0x17eadb:0xc},_0x2b1da7={_0x5b046b:0x4c,_0x212b59:0xc2};function _0x47ccb1(_0x139243,_0x25d1be,_0x6e3b78,_0x2d4b16){return _0x49a26f(_0x2d4b16,_0x25d1be-_0x2b1da7._0x5b046b,_0x6e3b78-_0x2b1da7._0x212b59,_0x6e3b78- -0x3c6);}function _0x221d80(_0x3089ea,_0x4bf106,_0x4a51b8,_0x5eb12a){return _0x49a26f(_0x3089ea,_0x4bf106-0x16a,_0x4a51b8-0x10c,_0x4bf106- -0x383);}const _0x2dc7c2=new Map(_0x1d445c['commands']['map'](_0x4518b3=>[_0x4518b3['id'],_0x4518b3])),_0x1b98ec=buildDescription(_0x1d445c[_0x47ccb1(_0x580d40._0x3cf5ec,-0x3e,0xa,_0x580d40._0x18ef55)]);return defineTool({'name':'InvokeCommand','description':_0x1b98ec,'inputSchema':{'type':'object','properties':{'name':{'type':_0x221d80(_0x580d40._0x20f5f0,_0x580d40._0x319efa,_0x580d40._0x3dcb83,0x110)},'args':{'type':_0x221d80(0xb4,_0x580d40._0x319efa,_0x580d40._0x2d1532,_0x580d40._0x18e74a)}},'required':[_0x47ccb1(-_0x580d40._0x1db33b,_0x580d40._0x2317bd,-0x64,-_0x580d40._0x296820)]},async *'execute'(_0x5ee312){const _0x4bd3f8={_0x28f6e2:0x1b7};function _0x1d888b(_0x43535c,_0x5a0d6d,_0x4b7e8a,_0x4f9aa8){return _0x47ccb1(_0x43535c-_0x47cf7f._0x39c328,_0x5a0d6d-_0x47cf7f._0x5626b7,_0x43535c-_0x47cf7f._0x17eadb,_0x4f9aa8);}function _0x15278c(_0x57c3c0,_0x22b483,_0x3580fa,_0x7d90a4){return _0x221d80(_0x57c3c0,_0x3580fa- -0x51,_0x3580fa-_0x4bd3f8._0x28f6e2,_0x7d90a4-0x1c);}const _0x11ea5d=_0x2dc7c2[_0x1d888b(0xa3,_0x581e8d._0x88caed,0x9a,_0x581e8d._0x185839)](_0x5ee312['name']);if(!_0x11ea5d){const _0x3e37cc=Array[_0x1d888b(0x69,0x15,_0x581e8d._0x1b6210,0xae)](_0x2dc7c2[_0x1d888b(0x34,0x37,_0x581e8d._0x108d72,0x1a)]())[_0x15278c(-0x7c,-0xc7,-_0x581e8d._0x12e38c,_0x581e8d._0x1c61e9)](',\x20');throw new ToolExecutionError(_0x15278c(-_0x581e8d._0x544d85,-_0x581e8d._0x37d58c,-_0x581e8d._0x452657,-0x7)+_0x5ee312[_0x15278c(-0x13,-_0x581e8d._0x152f54,-0x72,-_0x581e8d._0x53045d)]+_0x15278c(-0x3c,_0x581e8d._0x4890bb,_0x581e8d._0xae2623,_0x581e8d._0x36bb35)+_0x3e37cc,{'name':_0x5ee312['name']});}const _0x9b6584=await _0x1d445c[_0x1d888b(-_0x581e8d._0x282548,-0xb7,-_0x581e8d._0x563ed4,-0xc)](_0x11ea5d),_0x1216ce=_0x5ee312[_0x1d888b(0x94,0x89,0xc0,_0x581e8d._0x9d2ff5)]??'',_0x5be4a2=renderCommandInstructions({'instructions':_0x9b6584[_0x15278c(_0x581e8d._0x392f73,_0x581e8d._0x1c61e9,-0x19,0x33)],'argumentsText':_0x1216ce,'argumentNames':_0x9b6584[_0x1d888b(-_0x581e8d._0x1d9969,-_0x581e8d._0x2c56ef,-0xc5,-_0x581e8d._0x4a06d5)]});return yield createToolOutput(_0x5be4a2,{'id':_0x9b6584['id'],'name':_0x9b6584[_0x15278c(-0xeb,-_0x581e8d._0x43ebbb,-_0x581e8d._0x3667e5,-0xac)],'path':_0x11ea5d[_0x1d888b(_0x581e8d._0xdf2647,0x2b,_0x581e8d._0x18e97b,_0x581e8d._0x18e97b)][_0x1d888b(0xa2,_0x581e8d._0x348637,0x124,0xa5)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x283a8e,rename as _0x1042c0,stat as _0x560cd3,writeFile as _0x583b3e}from'fs/promises';import*as _0x5cbb58 from'path';import{stat as _0x28faee}from'fs/promises';import*as _0x4f4f58 from'path';function resolveWorkspacePath(_0x15c6f5,_0x3c0dfb){const _0x322bb0={_0x7b26a4:0x5b,_0x455ecb:0x6b,_0x33bf89:0x219,_0x373c51:0x22e,_0x33c0b5:0x162,_0x5303a6:0x1d4,_0x54035c:0x30,_0x4e7f58:0x32,_0x356df1:0x16f},_0x4de2a6={_0x4df1ae:0x1d4},_0x403543={_0x572144:0x18d,_0x21a030:0x4a},_0x5bfad4=_0x4f4f58[_0x3fbe20(0xa2,0xb2,_0x322bb0._0x7b26a4,_0x322bb0._0x455ecb)](_0x15c6f5),_0x2f51d5=_0x4f4f58[_0x158175(0x210,0x159,0x275,_0x322bb0._0x33bf89)](_0x5bfad4,_0x3c0dfb),_0x49f736=_0x4f4f58[_0x158175(0x25a,_0x322bb0._0x373c51,0x242,0x2a5)](_0x5bfad4,_0x2f51d5);function _0x158175(_0x28e98f,_0x5665c6,_0x1b0e6f,_0x28fd94){return _0x49a26f(_0x28e98f,_0x5665c6-_0x403543._0x572144,_0x1b0e6f-_0x403543._0x21a030,_0x28fd94- -0x1bf);}function _0x3fbe20(_0x1d0bf4,_0x58d028,_0x43d7a0,_0xa2246){return _0x49a26f(_0x1d0bf4,_0x58d028-_0x4de2a6._0x4df1ae,_0x43d7a0-0x92,_0x43d7a0- -0x37d);}if(_0x49f736===''||!_0x49f736[_0x158175(0x123,_0x322bb0._0x33c0b5,_0x322bb0._0x5303a6,0x192)]('..')&&!_0x4f4f58[_0x3fbe20(-0x1c,-_0x322bb0._0x54035c,_0x322bb0._0x4e7f58,0x7d)](_0x49f736))return _0x2f51d5;throw new ToolExecutionError(_0x158175(0x1bc,0x1f6,_0x322bb0._0x356df1,0x1aa)+_0x3c0dfb,{'path':_0x3c0dfb,'rootDir':_0x5bfad4});}async function assertWorkspaceFile(_0x4ccf0c){const _0x429f4a={_0x2fe315:0x6ed,_0x69c130:0x6be,_0x18cd88:0x662},_0x39ddb4={_0xd1898:0x5e,_0x3c55db:0x9f},_0x516a94=await _0x28faee(_0x4ccf0c);function _0x54829f(_0x37b7af,_0x11fb8d,_0xcb0a39,_0x2f59e7){return _0xaab5df(_0x37b7af-_0x39ddb4._0xd1898,_0x2f59e7-0x73d,_0xcb0a39-_0x39ddb4._0x3c55db,_0xcb0a39);}if(!_0x516a94['isFile']())throw new ToolExecutionError(_0x54829f(_0x429f4a._0x2fe315,0x6df,_0x429f4a._0x69c130,_0x429f4a._0x18cd88)+_0x4ccf0c,{'path':_0x4ccf0c});}function isProbablyBinary(_0x94f522){const _0x444bce={_0x5126bb:0x172,_0x101ce8:0x17b,_0x699189:0x229},_0x8d086a={_0x39254e:0x342};function _0x4c7422(_0x4739db,_0x5057b2,_0x1adae2,_0xef4557){return _0xaab5df(_0x4739db-0x2a,_0x4739db-_0x8d086a._0x39254e,_0x1adae2-0x15a,_0x5057b2);}return _0x94f522[_0x4c7422(_0x444bce._0x5126bb,0x215,_0x444bce._0x101ce8,_0x444bce._0x699189)](0x0);}function detectEol(_0x2e4946){const _0x43b8d8={_0x7194ae:0x4e2,_0x4823cd:0x4ce,_0x862d2f:0x432,_0x3b9c56:0x454,_0x438f05:0x3f2},_0xe41940={_0x9914e5:0x126,_0x90128e:0x57},_0x1b2af6={_0x55b905:0xe6};function _0x2e43c1(_0x42b8f1,_0x44a03a,_0x523af4,_0x3d365c){return _0xaab5df(_0x42b8f1-_0x1b2af6._0x55b905,_0x3d365c-0x63e,_0x523af4-0xef,_0x44a03a);}function _0x15d1e9(_0x11f1ed,_0xa3199c,_0x336c0b,_0x5b3d0e){return _0x49a26f(_0x336c0b,_0xa3199c-0x1c8,_0x336c0b-_0xe41940._0x9914e5,_0xa3199c-_0xe41940._0x90128e);}return/\r\n/[_0x2e43c1(0x52f,0x589,_0x43b8d8._0x7194ae,_0x43b8d8._0x4823cd)](_0x2e4946[_0x15d1e9(0x3e1,0x424,_0x43b8d8._0x862d2f,0x4cd)](_0x15d1e9(0x4cc,0x44a,0x44d,0x439)))?_0x15d1e9(_0x43b8d8._0x3b9c56,_0x43b8d8._0x438f05,0x358,0x3cb):'lf';}function normalizeToLf(_0x14f745){const _0x2bd3aa={_0x36624a:0x22e,_0x1511e6:0x200,_0x31b35b:0x1e5};function _0x3ae4f7(_0x2ddfb8,_0x4bb302,_0x183ec4,_0x4ccefb){return _0x49a26f(_0x183ec4,_0x4bb302-0x163,_0x183ec4-0xb8,_0x4bb302- -0x24a);}return _0x14f745[_0x3ae4f7(_0x2bd3aa._0x36624a,_0x2bd3aa._0x1511e6,_0x2bd3aa._0x31b35b,0x203)](/\r\n/g,'\x0a');}function convertEol(_0x2886e5,_0x126c0a){return _0x126c0a==='crlf'?_0x2886e5['replace'](/\n/g,'\x0d\x0a'):_0x2886e5;}async function atomicWrite(_0x3e1936,_0x2fbf81){const _0x4af670={_0x41e938:0x520,_0x4e0521:0x481,_0x1ab1f3:0x4fd,_0x3818ad:0x33,_0x519e0b:0x44,_0x3120bb:0xad,_0x516cbf:0x6,_0x39f509:0x10f,_0x2bbc61:0x463,_0x335cc1:0x51e,_0x4ddfa5:0x5c7,_0x543077:0x57d,_0x38554d:0x578},_0x418f73={_0xb52bd:0x1d4,_0x43ea21:0x92,_0x370940:0x3dd},_0x3f4f44={_0x50493f:0x16b,_0xa04e4e:0x86},_0x5b630=_0x5cbb58[_0x1f3fc7(0x584,_0x4af670._0x41e938,_0x4af670._0x4e0521,_0x4af670._0x1ab1f3)](_0x3e1936),_0x43e61e=_0x5cbb58[_0x360116(_0x4af670._0x3818ad,-0xd,-_0x4af670._0x519e0b,-_0x4af670._0x3120bb)](_0x5b630,_0x1f3fc7(0x4dc,0x4df,0x4fd,0x4db)+_0x5cbb58['basename'](_0x3e1936)+'.'+Date['now']()+'.'+Math[_0x360116(-0x3a,_0x4af670._0x516cbf,-0x95,-_0x4af670._0x39f509)]()[_0x1f3fc7(_0x4af670._0x2bbc61,0x4ef,0x455,_0x4af670._0x335cc1)](0x24)[_0x1f3fc7(_0x4af670._0x4ddfa5,0x568,_0x4af670._0x543077,_0x4af670._0x38554d)](0x2));await _0x583b3e(_0x43e61e,_0x2fbf81);function _0x1f3fc7(_0x563df6,_0x25b63c,_0x5cf27c,_0x3207a8){return _0x49a26f(_0x5cf27c,_0x25b63c-_0x3f4f44._0x50493f,_0x5cf27c-_0x3f4f44._0xa04e4e,_0x25b63c-0x122);}function _0x360116(_0x2218e0,_0xf05cb1,_0x58b6b9,_0x3cda76){return _0x49a26f(_0x2218e0,_0xf05cb1-_0x418f73._0xb52bd,_0x58b6b9-_0x418f73._0x43ea21,_0x58b6b9- -_0x418f73._0x370940);}await _0x1042c0(_0x43e61e,_0x3e1936);}function sha256(_0x575933){const _0x217fde={_0x3639c8:0x166,_0x582672:0x135,_0x47a995:0x23e,_0x4163c7:0x2ce,_0x5522fa:0x20a},_0x5e0015={_0x39ff69:0x129,_0xb47642:0x339},_0x17d7ff={_0x13385a:0x14a,_0x488689:0x329};function _0x416208(_0x573c9f,_0x835d,_0x1f9d4f,_0x3e0b40){return _0xaab5df(_0x573c9f-_0x17d7ff._0x13385a,_0x3e0b40-_0x17d7ff._0x488689,_0x1f9d4f-0xa,_0x1f9d4f);}function _0x1482f6(_0x41000f,_0x37b662,_0x2dbac8,_0x1296f8){return _0xaab5df(_0x41000f-_0x5e0015._0x39ff69,_0x41000f-_0x5e0015._0xb47642,_0x2dbac8-0x34,_0x37b662);}return createHash('sha256')[_0x416208(_0x217fde._0x3639c8,_0x217fde._0x582672,0xc3,0x15e)](_0x575933)['digest'](_0x1482f6(_0x217fde._0x47a995,_0x217fde._0x4163c7,_0x217fde._0x5522fa,0x2d8));}function countLines(_0x3d8ca0){const _0x2aebaf={_0x4e7c07:0x3ac,_0xf8baaf:0x335,_0xdcda7f:0x2fa,_0x1304ce:0x2d8,_0x2ed5be:0x5f5,_0xf2a572:0x624,_0x17335f:0x667,_0x386804:0x285,_0x3dcad0:0x1e3,_0x55b7c4:0x1f8},_0x24698a={_0x2c8f05:0xe},_0x4e8a8d={_0xfd3671:0x1b0,_0x3b3835:0xa9};function _0x341738(_0x3c8537,_0x2c5208,_0x340b98,_0x287914){return _0xaab5df(_0x3c8537-_0x4e8a8d._0xfd3671,_0x340b98-0x425,_0x340b98-_0x4e8a8d._0x3b3835,_0x2c5208);}const _0x14591a=_0x3d8ca0[_0x341738(0x391,_0x2aebaf._0x4e7c07,0x362,_0x2aebaf._0xf8baaf)](/\n$/,'');function _0xbb3516(_0xcdf3ab,_0x57fd67,_0x179088,_0x4cb2d4){return _0xaab5df(_0xcdf3ab-0x1ac,_0x57fd67-0x728,_0x179088-_0x24698a._0x2c8f05,_0x4cb2d4);}return _0x14591a[_0x341738(0x236,_0x2aebaf._0xdcda7f,0x27d,_0x2aebaf._0x1304ce)]===0x0?0x0:_0x14591a[_0xbb3516(_0x2aebaf._0x2ed5be,_0x2aebaf._0xf2a572,0x60a,_0x2aebaf._0x17335f)]('\x0a')[_0x341738(_0x2aebaf._0x386804,_0x2aebaf._0x3dcad0,0x27d,_0x2aebaf._0x55b7c4)];}function calculateLineNumbers(_0x5888cc,_0x1f513f,_0x5811bd,_0x2e144b){const _0x938ba7={_0x39170b:0x2e1,_0x906c0:0x25f,_0x5138a0:0x25f},_0x1b1edb={_0x436bca:0xdf,_0x9b2e34:0xd0},_0x52ac7e=_0x5888cc[_0x196d7f(0x2a7,_0x938ba7._0x39170b,_0x938ba7._0x906c0,_0x938ba7._0x5138a0)](0x0,_0x2e144b)['split']('\x0a')['length'];function _0x196d7f(_0x2f7a7b,_0x5a5d41,_0x38339c,_0x2550e6){return _0xaab5df(_0x2f7a7b-_0x1b1edb._0x436bca,_0x5a5d41-0x3a8,_0x38339c-_0x1b1edb._0x9b2e34,_0x2550e6);}const _0x231057=countLines(_0x1f513f),_0x143e66=countLines(_0x5811bd);return{'oldStartLine':_0x52ac7e,'oldEndLine':_0x52ac7e+_0x231057-0x1,'newStartLine':_0x52ac7e,'newEndLine':_0x52ac7e+_0x143e66-0x1,'oldLineCount':_0x231057,'newLineCount':_0x143e66};}function createFileEditTool(_0x3d8e12={}){const _0x3e7ca6={_0x35e526:0x570,_0x21b594:0x636,_0x9f8f5c:0x585,_0x5cc726:0x4b8,_0x1f8a07:0x486,_0x3f7b8e:0x414,_0x56e916:0x158,_0x3259fc:0x10b,_0x5aa157:0x109,_0x168c63:0xf2,_0x11d0d9:0x46d,_0x409c5c:0x3f,_0x31d95e:0xf9,_0x29df07:0x19c,_0x26ca53:0x131,_0x27cac4:0xfc,_0x2bb148:0x51c},_0x5a6fc7={_0x2b7be8:0x197,_0x5c54b0:0x281,_0x4ac7b9:0x203,_0x40731e:0x212,_0x2d8fbc:0x27a,_0x531bdd:0x2c4,_0x89398e:0x32f,_0x29088a:0x3b2,_0x3c916c:0x28f,_0x2cde6d:0x311,_0xd50509:0x38f,_0xfe2961:0x286,_0x4664ae:0x225,_0x5789a3:0x20f,_0x534b37:0x119,_0x148790:0x1aa,_0x44aab5:0x1df,_0x3150a4:0x28b,_0x42e3b3:0x236,_0x5be213:0x2b0,_0x43a333:0x297,_0x5998d5:0x1cc,_0x2311a5:0x1b1,_0x4b7141:0x1b4,_0x4b8005:0x237,_0x1e6aeb:0x384,_0xdbdfff:0x270,_0x89a2e2:0x14d,_0x45da5e:0x1ea,_0x16b9db:0x17a,_0x8387a7:0x205,_0x12ec0c:0x30f,_0x30fc75:0x1b0,_0x862dd9:0x26a,_0x2ed900:0x248,_0x459ec3:0x224,_0x16d0f7:0x19e,_0x46e059:0x185,_0x116ac6:0x236,_0x5ce19d:0x1b2,_0x216356:0x266,_0x47c202:0x269},_0x18f04f={_0x4fda81:0xc6},_0x22ac2b={_0x20030d:0x1c6,_0x2d69df:0x111,_0x1b00b4:0x125},_0x11b890=_0x5cbb58['resolve'](_0x3d8e12['defaultCwd']??process[_0x5a8aa1(_0x3e7ca6._0x35e526,0x62f,_0x3e7ca6._0x21b594,_0x3e7ca6._0x9f8f5c)]()),_0x33886c=_0x3d8e12[_0x5a8aa1(_0x3e7ca6._0x5cc726,_0x3e7ca6._0x1f8a07,_0x3e7ca6._0x3f7b8e,0x487)]??_0x43e849(-0x89,-_0x3e7ca6._0x56e916,-_0x3e7ca6._0x3259fc,-0xe3);function _0x5a8aa1(_0x13eaf7,_0x35b39e,_0x1ef075,_0x388b29){return _0x49a26f(_0x13eaf7,_0x35b39e-_0x22ac2b._0x20030d,_0x1ef075-_0x22ac2b._0x2d69df,_0x388b29-_0x22ac2b._0x1b00b4);}function _0x43e849(_0x49a031,_0x14929c,_0x5e62c6,_0x2d2c42){return _0xaab5df(_0x49a031-0x1ec,_0x5e62c6-_0x18f04f._0x4fda81,_0x5e62c6-0xa2,_0x14929c);}return defineTool({'name':_0x33886c,'description':_0x43e849(-0xa6,-_0x3e7ca6._0x5aa157,-0x10d,-_0x3e7ca6._0x168c63),'inputSchema':{'type':_0x5a8aa1(0x3fe,_0x3e7ca6._0x11d0d9,0x4db,0x473),'properties':{'filePath':{'type':_0x43e849(-0x82,0x15,-_0x3e7ca6._0x409c5c,-0xc)},'oldText':{'type':_0x43e849(-_0x3e7ca6._0x31d95e,-0xa5,-_0x3e7ca6._0x409c5c,0x2b)},'newText':{'type':'string'},'dryRun':{'type':'boolean'}},'required':[_0x43e849(-_0x3e7ca6._0x29df07,-_0x3e7ca6._0x26ca53,-_0x3e7ca6._0x27cac4,-0x197),'oldText',_0x5a8aa1(0x459,0x46f,_0x3e7ca6._0x2bb148,0x4b0)]},async *'execute'(_0x1cde2b){const _0x3ced6f={_0x357e9f:0xc5,_0x56dd95:0x2e0},_0x1b8bec={_0x19fcfa:0x87,_0x18b998:0x318},_0x5eb5a0=resolveWorkspacePath(_0x11b890,_0x1cde2b['filePath']);await assertWorkspaceFile(_0x5eb5a0);const _0x1dbb91=await _0x560cd3(_0x5eb5a0),_0x1e07d2=await _0x283a8e(_0x5eb5a0),_0x50894a=detectEol(_0x1e07d2),_0x5e381d=normalizeToLf(_0x1e07d2[_0x2aee3e(_0x5a6fc7._0x2b7be8,0x212,_0x5a6fc7._0x5c54b0,_0x5a6fc7._0x4ac7b9)](_0x3a976c(_0x5a6fc7._0x40731e,_0x5a6fc7._0x2d8fbc,_0x5a6fc7._0x531bdd,_0x5a6fc7._0x89398e))),_0x491610=normalizeToLf(_0x1cde2b[_0x3a976c(_0x5a6fc7._0x29088a,0x2dd,0x308,_0x5a6fc7._0x3c916c)]);function _0x3a976c(_0x4a03e4,_0x29c18d,_0x15a118,_0x55a51f){return _0x43e849(_0x4a03e4-_0x1b8bec._0x19fcfa,_0x4a03e4,_0x15a118-_0x1b8bec._0x18b998,_0x55a51f-0xf4);}const _0x9da087=normalizeToLf(_0x1cde2b['newText']),_0xe6a41f=_0x5e381d[_0x3a976c(_0x5a6fc7._0x5c54b0,0x299,0x218,0x236)](_0x491610);if(_0xe6a41f===-0x1){const _0x4d8bf5=_0x491610['slice'](0x0,0x64)[_0x3a976c(_0x5a6fc7._0x2cde6d,_0x5a6fc7._0xd50509,0x31b,0x36e)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x2aee3e(_0x5a6fc7._0xfe2961,_0x5a6fc7._0x4664ae,_0x5a6fc7._0x5789a3,0x1dc)+_0x4d8bf5+(_0x491610[_0x2aee3e(_0x5a6fc7._0x534b37,_0x5a6fc7._0x148790,_0x5a6fc7._0x44aab5,0x244)]>0x64?'...':'')+'\x22',{'filePath':_0x1cde2b[_0x3a976c(0x21a,0x213,0x21c,0x198)]});}function _0x2aee3e(_0x536ccf,_0x2ed455,_0x512433,_0x365099){return _0x5a8aa1(_0x365099,_0x2ed455-_0x3ced6f._0x357e9f,_0x512433-0x1a2,_0x2ed455- -_0x3ced6f._0x56dd95);}const _0x199335=_0x5e381d[_0x2aee3e(0x348,_0x5a6fc7._0x3150a4,_0x5a6fc7._0x42e3b3,0x208)](0x0,_0xe6a41f)+_0x9da087+_0x5e381d[_0x3a976c(_0x5a6fc7._0x5be213,_0x5a6fc7._0x43a333,0x317,0x306)](_0xe6a41f+_0x491610[_0x3a976c(_0x5a6fc7._0x5998d5,_0x5a6fc7._0x2311a5,0x236,_0x5a6fc7._0x4b7141)]),_0x379e89=convertEol(_0x199335,_0x50894a),_0x1c39c2=Buffer['from'](_0x379e89,_0x3a976c(_0x5a6fc7._0x4b8005,_0x5a6fc7._0x1e6aeb,_0x5a6fc7._0x531bdd,_0x5a6fc7._0xdbdfff)),_0x26fa3a=sha256(_0x1e07d2),_0x269d4b=sha256(_0x1c39c2),_0x5ccecd=_0x26fa3a===_0x269d4b,_0x6fe108=_0x1cde2b[_0x2aee3e(_0x5a6fc7._0x89a2e2,_0x5a6fc7._0x45da5e,0x160,0x253)]??![];return!_0x6fe108&&!_0x5ccecd&&await atomicWrite(_0x5eb5a0,_0x1c39c2),yield createToolOutput(_0x5ccecd?_0x2aee3e(0xb6,0x15e,0x201,_0x5a6fc7._0x16b9db):_0x6fe108?_0x3a976c(_0x5a6fc7._0x8387a7,0x329,0x286,_0x5a6fc7._0x12ec0c):_0x2aee3e(0x23a,_0x5a6fc7._0x30fc75,_0x5a6fc7._0x862dd9,0x199),{'filePath':_0x1cde2b['filePath'],'resolvedPath':_0x5eb5a0,'created':_0x1dbb91['birthtime']['toISOString'](),'modified':_0x1dbb91[_0x2aee3e(_0x5a6fc7._0x2ed900,0x2bd,_0x5a6fc7._0x459ec3,0x214)][_0x3a976c(0x3ae,0x38e,0x334,0x376)](),'size':_0x1dbb91[_0x3a976c(0x25a,_0x5a6fc7._0x16d0f7,0x21b,0x21b)],'eol':_0x50894a,'oldTextLength':_0x491610[_0x3a976c(_0x5a6fc7._0x46e059,0x194,_0x5a6fc7._0x116ac6,_0x5a6fc7._0x5ce19d)],'newTextLength':_0x9da087[_0x3a976c(_0x5a6fc7._0x216356,_0x5a6fc7._0x47c202,0x236,0x196)],'bytesWritten':_0x5ccecd||_0x6fe108?0x0:_0x1c39c2['length'],'beforeSha':_0x26fa3a,'afterSha':_0x269d4b,'dryRun':_0x6fe108,'noChange':_0x5ccecd,'lineNumbers':calculateLineNumbers(_0x5e381d,_0x491610,_0x9da087,_0xe6a41f)}),void 0x0;}});}import{mkdir as _0x5aa85d,rename as _0x1bf01f,stat as _0x46feb1,writeFile as _0x5b19a8}from'fs/promises';import*as _0x4ad6c0 from'path';async function atomicWrite2(_0x2d70bf,_0x4d9922){const _0x4397cd={_0x431824:0x24e,_0x4db202:0x2d6,_0x29d416:0x201,_0xaccfd3:0x2f3,_0x1ed318:0x34b,_0xe636ca:0x2c3,_0x554912:0x1e7,_0x21dcfe:0x1e4,_0x108e00:0x2b3,_0x533f0b:0x2b7,_0x13f769:0x320,_0x5abf7d:0x280,_0x445f2f:0x241},_0x2e1809={_0x490c0f:0x278},_0x3f8730={_0x558d05:0x115,_0x1654ca:0x14b},_0x955cf4=_0x4ad6c0['dirname'](_0x2d70bf);await _0x5aa85d(_0x955cf4,{'recursive':!![]});const _0x5551f6=_0x4ad6c0[_0x3f6a60(_0x4397cd._0x431824,_0x4397cd._0x4db202,_0x4397cd._0x29d416,_0x4397cd._0xaccfd3)](_0x955cf4,'.tmp.'+_0x4ad6c0[_0x4890eb(0xb3,0x1f4,0x1c9,0x135)](_0x2d70bf)+'.'+Date[_0x3f6a60(0x29e,_0x4397cd._0x1ed318,_0x4397cd._0xe636ca,0x245)]()+'.'+Math[_0x3f6a60(0x1fd,_0x4397cd._0x554912,_0x4397cd._0x21dcfe,0x1dc)]()[_0x3f6a60(0x282,_0x4397cd._0x108e00,_0x4397cd._0x533f0b,_0x4397cd._0x13f769)](0x24)[_0x3f6a60(0x2fb,_0x4397cd._0x5abf7d,_0x4397cd._0x445f2f,_0x4397cd._0x431824)](0x2));function _0x3f6a60(_0x2a5e43,_0x2293a5,_0x35249c,_0x2b5250){return _0x49a26f(_0x35249c,_0x2293a5-_0x3f8730._0x558d05,_0x35249c-0xa5,_0x2a5e43- -_0x3f8730._0x1654ca);}function _0x4890eb(_0xb249a8,_0x312d0d,_0xd29893,_0x4068db){return _0xaab5df(_0xb249a8-0x1a0,_0x4068db-_0x2e1809._0x490c0f,_0xd29893-0x7a,_0xb249a8);}await _0x5b19a8(_0x5551f6,_0x4d9922),await _0x1bf01f(_0x5551f6,_0x2d70bf);}function createFileNewTool(_0x43f150={}){const _0x2d151d={_0x23643a:0x1da,_0x701994:0x12e,_0x555554:0xad,_0x2fb51c:0x14f,_0x58675a:0x154,_0x3baeac:0x20b,_0x431121:0x1af,_0x3173ed:0x1ee,_0x3e6860:0x150,_0x4331df:0x1e2,_0x387f4f:0x288,_0x5e872e:0x158,_0x2a9e0d:0xc8,_0x31f638:0x14d},_0x36a856={_0x194543:0x13e,_0x2aed5c:0x109,_0x4564d9:0xde,_0x27556d:0x2c2,_0x148cb1:0x177,_0x4423bd:0x102,_0x19d4b0:0x1c5,_0x595469:0xf9,_0x572fc7:0x166,_0x36b9d8:0x195,_0x1500b9:0x160,_0x46ffdd:0xfa,_0x516acf:0xed,_0x1d668b:0x100,_0x1d062d:0x1a6,_0x3b34b1:0x107,_0x28a99b:0x12d,_0x567f9b:0x1ba,_0x331987:0x1dd,_0x125306:0xe5,_0x2e4450:0x23d,_0x2796a0:0xf8,_0x2e755d:0x1ac,_0x1186e2:0x237,_0x97d1be:0x284},_0x84f98={_0x5b4a1f:0x68},_0x547716={_0x465b9e:0x8f};function _0x59641a(_0x15d228,_0x27486f,_0xeb3977,_0x5ffbf7){return _0xaab5df(_0x15d228-0x6,_0xeb3977-0x30f,_0xeb3977-_0x547716._0x465b9e,_0x5ffbf7);}const _0x327b39=_0x4ad6c0[_0x59641a(0x142,0x1cd,_0x2d151d._0x23643a,0x215)](_0x43f150['defaultCwd']??process['cwd']());function _0x49d597(_0x12ef51,_0x5e955d,_0x4ed6b6,_0x5c5976){return _0xaab5df(_0x12ef51-0x56,_0x5c5976-0x317,_0x4ed6b6-0x114,_0x4ed6b6);}const _0x62a806=_0x43f150[_0x49d597(0x20d,_0x2d151d._0x701994,_0x2d151d._0x555554,0x16c)]??_0x59641a(_0x2d151d._0x2fb51c,_0x2d151d._0x58675a,0x15c,_0x2d151d._0x3baeac);return defineTool({'name':_0x62a806,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace.','inputSchema':{'type':_0x59641a(_0x2d151d._0x431121,_0x2d151d._0x3173ed,_0x2d151d._0x3e6860,0xee),'properties':{'filePath':{'type':_0x59641a(0x173,_0x2d151d._0x4331df,0x20a,0x1c9)},'content':{'type':_0x49d597(0x226,_0x2d151d._0x387f4f,_0x2d151d._0x5e872e,0x212)}},'required':[_0x59641a(0xdf,_0x2d151d._0x2a9e0d,_0x2d151d._0x31f638,0x145),'content']},async *'execute'(_0x1e5abd){const _0x376146={_0x4eddd5:0xfe,_0xe3870f:0x77},_0x26d415=resolveWorkspacePath(_0x327b39,_0x1e5abd[_0x29d4cb(_0x36a856._0x194543,_0x36a856._0x2aed5c,_0x36a856._0x4564d9,0x183)]),_0x3c2901=await _0x46feb1(_0x26d415)[_0x9fd692(0x208,0x2b2,0x174,_0x36a856._0x27556d)](()=>!![])[_0x29d4cb(0x112,0xfd,_0x36a856._0x148cb1,_0x36a856._0x4423bd)](()=>![]),_0x5c1eb7=Buffer[_0x9fd692(_0x36a856._0x19d4b0,0x1b0,0x19e,0x20b)](_0x1e5abd[_0x29d4cb(_0x36a856._0x595469,0x12d,_0x36a856._0x572fc7,0xc1)],_0x9fd692(_0x36a856._0x36b9d8,_0x36a856._0x1500b9,0x143,0x1df));function _0x29d4cb(_0x4e3b7f,_0x317192,_0x219902,_0xeae114){return _0x49d597(_0x4e3b7f-_0x376146._0x4eddd5,_0x317192-0xe2,_0x4e3b7f,_0x219902- -_0x376146._0xe3870f);}await atomicWrite2(_0x26d415,_0x5c1eb7);function _0x9fd692(_0x548963,_0x405e84,_0x1492c8,_0xba2a53){return _0x49d597(_0x548963-0x1b9,_0x405e84-0x1cd,_0xba2a53,_0x548963- -_0x84f98._0x5b4a1f);}return yield createToolOutput(_0x9fd692(0x166,0xe4,_0x36a856._0x46ffdd,0x112)+_0x1e5abd['filePath']+'.',{'filePath':_0x1e5abd[_0x9fd692(_0x36a856._0x516acf,0x31,_0x36a856._0x1d668b,_0x36a856._0x1d062d)],'resolvedPath':_0x26d415,'bytes':_0x5c1eb7[_0x9fd692(_0x36a856._0x3b34b1,_0x36a856._0x28a99b,0x89,_0x36a856._0x567f9b)],'lines':_0x1e5abd['content'][_0x29d4cb(_0x36a856._0x331987,_0x36a856._0x125306,0x19c,_0x36a856._0x2e4450)](/\r?\n/)[_0x29d4cb(0x195,0x101,_0x36a856._0x2796a0,_0x36a856._0x2e755d)],'created':new Date()[_0x9fd692(0x205,0x2af,_0x36a856._0x1186e2,_0x36a856._0x97d1be)](),'overwritten':_0x3c2901}),void 0x0;}});}import{readFile as _0xd06f83,stat as _0x42bba6}from'fs/promises';import*as _0x786846 from'path';function stripUtfBom(_0x313587){const _0x50f9b1={_0x29dcfa:0x40a,_0x443a2e:0x42d,_0x465e2e:0x396,_0x12115e:0x370,_0x121d1f:0x457,_0x4c850e:0x3da,_0x22281f:0x3fa},_0x3f1f3e={_0x431088:0x119};function _0x3b27c2(_0xd3d589,_0x46225b,_0x4befa5,_0xcec721){return _0x49a26f(_0x4befa5,_0x46225b-0x119,_0x4befa5-0x1e6,_0xcec721- -0x4c);}function _0x3db4d6(_0x46ebd8,_0x55c8a6,_0xb2161b,_0x1b05c6){return _0xaab5df(_0x46ebd8-0x131,_0x55c8a6-0x5ff,_0xb2161b-_0x3f1f3e._0x431088,_0x1b05c6);}return _0x313587[_0x3db4d6(_0x50f9b1._0x29dcfa,_0x50f9b1._0x443a2e,_0x50f9b1._0x465e2e,_0x50f9b1._0x12115e)](0x0)===0xfeff?_0x313587[_0x3b27c2(0x3bd,_0x50f9b1._0x121d1f,_0x50f9b1._0x4c850e,_0x50f9b1._0x22281f)](0x1):_0x313587;}function clampLine(_0x52047d,_0x38c0bf){const _0xfa2d3={_0x375d22:0x660,_0x34d118:0x6a9,_0x2a2d67:0x678,_0x2c841b:0x612},_0x2259a7={_0x2ad6e1:0xd3,_0x266f41:0x3e6},_0x46c4a2={_0x4c363a:0x272};if(!Number[_0x457db3(0x5e8,0x599,0x52f,0x57e)](_0x52047d))return 0x1;function _0x457db3(_0x4edd88,_0x1ddce6,_0x5ab75e,_0x4f18ce){return _0x49a26f(_0x5ab75e,_0x1ddce6-0x2,_0x5ab75e-0x10d,_0x1ddce6-_0x46c4a2._0x4c363a);}function _0x2b0075(_0x406133,_0x3fb8b9,_0x440d49,_0x5ec272){return _0x49a26f(_0x3fb8b9,_0x3fb8b9-0x1a8,_0x440d49-_0x2259a7._0x2ad6e1,_0x440d49- -_0x2259a7._0x266f41);}return Math['max'](0x1,Math[_0x457db3(0x620,0x649,0x669,_0xfa2d3._0x375d22)](Math[_0x457db3(_0xfa2d3._0x34d118,_0xfa2d3._0x2a2d67,_0xfa2d3._0x2c841b,0x6e8)](_0x52047d),_0x38c0bf));}function createFileReadTool(_0x112970={}){const _0x1868d3={_0x2009f0:0x610,_0x25e423:0x695,_0x4df04b:0x699,_0x2604d3:0x2ae,_0x1e220b:0x1f0,_0x12093e:0x300,_0x52fcb6:0x125,_0x4b19f0:0x254,_0x163d1e:0x5c6,_0x54db3f:0x616,_0x52c0e5:0xe9,_0x52f834:0x233,_0x37c9f0:0x1cf,_0x33f211:0x59a,_0xaeca9e:0x217,_0x3ce229:0x27a,_0x2da615:0x20e,_0x5e3359:0x694,_0x474b80:0x708},_0x394b8c={_0x7a7c9:0x9d,_0x258606:0xe2,_0x143865:0xb3,_0x49df43:0x66,_0x4a0880:0x35,_0x10ad07:0x416,_0x488ac9:0x41c,_0x235161:0x48c,_0x2c9b76:0x13,_0x593567:0x5a,_0x820cc4:0x164,_0x4d02a4:0xcb,_0x2ee1f7:0x57,_0x475d46:0x145,_0x1b955c:0xcd,_0x5807e8:0x15d,_0x186aea:0x1e2,_0x10e75e:0x31c,_0x2b1c70:0x3dc,_0x2135e4:0x3b1,_0xab4148:0x42b,_0x359f6e:0x41d,_0x26aba3:0x46c,_0x55ef8c:0x38d,_0x417930:0x421,_0x4ab157:0x373,_0x2b1477:0x465,_0x5104eb:0x420,_0x2c4333:0x299,_0x31c591:0x59,_0x3a1305:0xa5,_0x225190:0xff,_0x4b904f:0xc5,_0x35c79f:0x1dc,_0x43204f:0x131,_0x41619b:0x1c6,_0x231d28:0x2ff,_0xf774a0:0x319,_0x42abc0:0x35a,_0x109f72:0x38,_0x57d3ef:0x198,_0x4d63b6:0x133,_0x438663:0x9b,_0x15c22c:0xcd,_0x3a4e1c:0x254,_0xd4e483:0x2b8,_0x1b64f4:0x7b,_0x28f655:0x35b,_0x30da98:0x267,_0x1947f3:0x11c,_0x53b375:0x7c,_0x1efa21:0x497,_0x478388:0x445,_0x473599:0x3b,_0x1a2eb0:0xde,_0x19acb9:0x355,_0x520be1:0x2be},_0x26d4e6={_0xcdccc7:0x11e},_0x1c299f={_0x4194dc:0x143};function _0x1adcfc(_0x1d4937,_0x1d758f,_0x4ea823,_0x4133b7){return _0x49a26f(_0x1d4937,_0x1d758f-0xfa,_0x4ea823-_0x1c299f._0x4194dc,_0x1d758f-0x238);}function _0x24e6b6(_0x3f64a6,_0x165875,_0x39d8bf,_0x149eaf){return _0xaab5df(_0x3f64a6-0x194,_0x165875-0x35b,_0x39d8bf-_0x26d4e6._0xcdccc7,_0x39d8bf);}const _0x58c12e=_0x786846[_0x1adcfc(0x615,_0x1868d3._0x2009f0,_0x1868d3._0x25e423,0x62a)](_0x112970[_0x1adcfc(0x606,0x6ad,_0x1868d3._0x4df04b,0x768)]??process[_0x24e6b6(0x350,_0x1868d3._0x2604d3,_0x1868d3._0x1e220b,_0x1868d3._0x12093e)]()),_0xd15b7=_0x112970[_0x24e6b6(0x21c,0x1b0,_0x1868d3._0x52fcb6,_0x1868d3._0x4b19f0)]??_0x1adcfc(0x668,_0x1868d3._0x163d1e,_0x1868d3._0x54db3f,0x5bf);return defineTool({'name':_0xd15b7,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace.\x20Optionally\x20specify\x20line\x20ranges.','inputSchema':{'type':_0x24e6b6(_0x1868d3._0x52c0e5,0x19c,_0x1868d3._0x52f834,_0x1868d3._0x37c9f0),'properties':{'path':{'type':_0x1adcfc(0x681,0x640,_0x1868d3._0x33f211,0x6e1)},'lineStart':{'type':_0x24e6b6(_0x1868d3._0xaeca9e,0x1be,_0x1868d3._0x3ce229,_0x1868d3._0x2da615)},'lineEnd':{'type':_0x1adcfc(0x54b,0x5a8,0x542,0x5f3)}},'required':[_0x1adcfc(0x740,_0x1868d3._0x5e3359,0x711,_0x1868d3._0x474b80)]},async *'execute'(_0x8c1908){const _0x27dfc7={_0x462dcb:0x138,_0x3784e0:0xf5},_0x5f0274={_0x8a9b7b:0x6d0,_0x52b815:0x11f},_0x43b438=resolveWorkspacePath(_0x58c12e,_0x8c1908[_0x455873(-_0x394b8c._0x7a7c9,-0x3c,-_0x394b8c._0x258606,0x4)]);await assertWorkspaceFile(_0x43b438);const _0x403331=await _0x42bba6(_0x43b438),_0x519623=await _0xd06f83(_0x43b438);if(isProbablyBinary(_0x519623))throw new ToolExecutionError(_0x455873(-0x122,-_0x394b8c._0x143865,-_0x394b8c._0x49df43,-_0x394b8c._0x4a0880)+_0x8c1908[_0x43d6b6(_0x394b8c._0x10ad07,_0x394b8c._0x488ac9,0x404,_0x394b8c._0x235161)],{'path':_0x8c1908[_0x455873(-_0x394b8c._0x2c9b76,-0x3c,_0x394b8c._0x593567,0x12)]});let _0xa87142=_0x519623[_0x455873(-_0x394b8c._0x820cc4,-_0x394b8c._0x4d02a4,-_0x394b8c._0x2ee1f7,-0xeb)](_0x455873(-0x11,-0xa5,-_0x394b8c._0x475d46,-_0x394b8c._0x1b955c));const _0x2e8031=_0xa87142[_0x455873(-0x20d,-_0x394b8c._0x5807e8,-0x197,-_0x394b8c._0x186aea)](0x0)===0xfeff;_0xa87142=stripUtfBom(_0xa87142);function _0x455873(_0x3f78e9,_0x10ecc1,_0x12f9b1,_0x4385d4){return _0x1adcfc(_0x12f9b1,_0x10ecc1- -_0x5f0274._0x8a9b7b,_0x12f9b1-0x10f,_0x4385d4-_0x5f0274._0x52b815);}const _0x512de9=_0xa87142[_0x43d6b6(_0x394b8c._0x10e75e,_0x394b8c._0x2b1c70,_0x394b8c._0x2135e4,_0x394b8c._0xab4148)](/\r?\n/),_0x30314e={'path':_0x8c1908[_0x43d6b6(_0x394b8c._0x359f6e,_0x394b8c._0x26aba3,0x404,_0x394b8c._0x55ef8c)],'resolvedPath':_0x43b438,'created':_0x403331[_0x43d6b6(0x498,0x3d4,_0x394b8c._0x417930,_0x394b8c._0x4ab157)]['toISOString'](),'modified':_0x403331[_0x43d6b6(0x45d,_0x394b8c._0x2b1477,_0x394b8c._0x5104eb,0x378)][_0x43d6b6(0x3bd,0x433,0x40b,0x366)](),'size':_0x403331[_0x43d6b6(_0x394b8c._0x2c4333,0x235,0x2f2,0x354)],'encoding':_0x455873(-_0x394b8c._0x31c591,-_0x394b8c._0x3a1305,-_0x394b8c._0x225190,-_0x394b8c._0x4b904f),'bomStripped':_0x2e8031,'truncated':![],'totalLines':_0x512de9[_0x455873(-_0x394b8c._0x35c79f,-0x133,-_0x394b8c._0x43204f,-_0x394b8c._0x41619b)]};if(_0x8c1908[_0x43d6b6(_0x394b8c._0x231d28,_0x394b8c._0xf774a0,_0x394b8c._0x42abc0,0x40f)]!==void 0x0||_0x8c1908['lineEnd']!==void 0x0){const _0x28ba58=clampLine(_0x8c1908[_0x455873(-0x158,-0xe6,-_0x394b8c._0x109f72,-_0x394b8c._0x57d3ef)]??0x1,_0x512de9[_0x455873(-0x136,-_0x394b8c._0x4d63b6,-_0x394b8c._0x438663,-_0x394b8c._0x15c22c)]),_0x3bdc41=clampLine(_0x8c1908[_0x43d6b6(_0x394b8c._0x3a4e1c,0x1fe,_0x394b8c._0xd4e483,0x239)]??_0x512de9[_0x455873(-_0x394b8c._0x1b64f4,-0x133,-0x102,-0x1b3)],_0x512de9[_0x43d6b6(_0x394b8c._0x28f655,0x317,0x30d,_0x394b8c._0x30da98)]),_0xa39dd0=Math['min'](_0x28ba58,_0x3bdc41),_0xbdddfb=Math[_0x455873(-0x178,-_0x394b8c._0x1947f3,-0xe8,-_0x394b8c._0x53b375)](_0x28ba58,_0x3bdc41),_0x3149de=_0x512de9[_0x43d6b6(0x491,_0x394b8c._0x1efa21,0x3ee,_0x394b8c._0x478388)](_0xa39dd0-0x1,_0xbdddfb)[_0x455873(-_0x394b8c._0x473599,-_0x394b8c._0x1a2eb0,-0x59,-0xaf)]((_0x36c104,_0x35ec5d)=>_0xa39dd0+_0x35ec5d+'|'+_0x36c104)['join']('\x0a');return yield createToolOutput(_0x3149de,{..._0x30314e,'lineRange':{'lineStart':_0xa39dd0,'lineEnd':_0xbdddfb,'linesTotal':_0x512de9[_0x43d6b6(_0x394b8c._0x19acb9,0x30d,0x30d,_0x394b8c._0x520be1)]}}),void 0x0;}yield createToolOutput(_0xa87142,_0x30314e);function _0x43d6b6(_0x230e7c,_0x26b570,_0x5dcd7d,_0x4e9bb7){return _0x24e6b6(_0x230e7c-_0x27dfc7._0x462dcb,_0x5dcd7d-0x15a,_0x230e7c,_0x4e9bb7-_0x27dfc7._0x3784e0);}return void 0x0;}});}import{stat as _0x997e47}from'fs/promises';import*as _0x582e52 from'path';import{execSync,spawn as _0x3324fd}from'child_process';import{existsSync}from'fs';import{stat as _0x2f415b}from'fs/promises';import*as _0x5c227b from'os';import*as _0x2edea6 from'path';import{rgPath as _0x404eff}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1eee3f={_0x4d57c3:0x1a6,_0x1b1879:0x1c2,_0x91c645:0x1fa,_0x3fa44a:0x1d7,_0x27af00:0x146,_0x134a0d:0x1b0,_0x54982b:0x267,_0x46b706:0x286,_0x4a7970:0xd6,_0x222a18:0x181,_0x227615:0x12a,_0x4660c9:0x15c,_0x352460:0x1f5,_0x4047da:0xd3,_0x53ac07:0x17b,_0x5579b9:0x6a,_0x1a9dd1:0x11c,_0x5958a:0xbc,_0x3eb3ba:0x2f8,_0x11223f:0x2af,_0x448da8:0x21a,_0x53de25:0x1da,_0x5e0a8c:0x273,_0x46427e:0x2cc,_0x1ad062:0x22f,_0x476261:0x23c,_0x1c635a:0x275,_0x55193e:0x2af,_0x43e779:0x2bb,_0xd29add:0x223,_0xa0d0de:0x274,_0x48448f:0x6f,_0x25c11f:0x201,_0x4b7b84:0x25d,_0x208aa3:0x25b,_0x106bec:0x1d1,_0x5161eb:0x1db,_0x3bef80:0x1c3,_0x4c4509:0x14e,_0x3c0cf7:0x190,_0x4707e6:0x1a8,_0x1e274a:0x18c,_0x3bb069:0x123,_0x5bc770:0xcf,_0x4a8aaf:0x1b0,_0x2556c1:0x154,_0x207343:0x15a,_0x485ec0:0xb3,_0x31c66c:0xb5,_0xabe31d:0x84,_0x4b0d5c:0xcb},_0x254ad2={_0x2de661:0x39,_0x253753:0x136},_0x51455f=_0x5c227b[_0x56464d(_0x1eee3f._0x4d57c3,0x221,0x1e0,_0x1eee3f._0x1b1879)]()==='win32',_0x4d8b73=_0x51455f?[_0x2edea6[_0x275ca7(-0x114,-_0x1eee3f._0x91c645,-_0x1eee3f._0x3fa44a,-0x13b)](process[_0x56464d(0x1ab,0x11e,0x1da,0x175)]['LOCALAPPDATA']||'',_0x275ca7(-0x23a,-_0x1eee3f._0x27af00,-0x133,-_0x1eee3f._0x134a0d),_0x56464d(_0x1eee3f._0x54982b,0x1ea,0x1f8,_0x1eee3f._0x46b706),_0x275ca7(-0x1af,-_0x1eee3f._0x4a7970,-_0x1eee3f._0x222a18,-_0x1eee3f._0x227615)),_0x2edea6[_0x275ca7(-0xaf,-_0x1eee3f._0x4660c9,-_0x1eee3f._0x352460,-0x13b)](process[_0x275ca7(-_0x1eee3f._0x4047da,-_0x1eee3f._0x4047da,-0x1ac,-_0x1eee3f._0x53ac07)][_0x275ca7(-0xc,-_0x1eee3f._0x5579b9,-_0x1eee3f._0x1a9dd1,-_0x1eee3f._0x5958a)]||'','ripgrep',_0x56464d(0x31f,_0x1eee3f._0x3eb3ba,_0x1eee3f._0x11223f,0x343)),_0x2edea6[_0x56464d(0x1e4,0x175,_0x1eee3f._0x448da8,0x17a)](process[_0x56464d(0x179,_0x1eee3f._0x4660c9,_0x1eee3f._0x53de25,0x27c)][_0x56464d(0x2cb,_0x1eee3f._0x5e0a8c,_0x1eee3f._0x46427e,_0x1eee3f._0x1ad062)]||'',_0x56464d(_0x1eee3f._0x476261,0x316,_0x1eee3f._0x1c635a,0x2e3),_0x56464d(0x2d5,0x20d,_0x1eee3f._0x55193e,_0x1eee3f._0x43e779))]:[_0x56464d(_0x1eee3f._0xd29add,0x223,0x229,0x1d7),_0x56464d(0x17a,0x233,0x1f6,0x1b3),_0x56464d(0x208,_0x1eee3f._0xa0d0de,0x2ae,0x356),_0x275ca7(-0xab,-0x9e,-0x9a,-_0x1eee3f._0x48448f)];function _0x56464d(_0x6435c5,_0x1847cc,_0x372df5,_0x29c68a){return _0xaab5df(_0x6435c5-0xdd,_0x372df5-0x38e,_0x372df5-0x66,_0x29c68a);}function _0x275ca7(_0x280447,_0x4d3c9f,_0x185b9b,_0x269329){return _0xaab5df(_0x280447-0x11d,_0x269329-_0x254ad2._0x2de661,_0x185b9b-_0x254ad2._0x253753,_0x280447);}for(const _0x4a1e57 of _0x4d8b73){if(existsSync(_0x4a1e57))return _0x4a1e57;}try{const _0x57ee7a=_0x51455f?_0x56464d(_0x1eee3f._0x25c11f,_0x1eee3f._0x4b7b84,0x268,0x20f):_0x56464d(0x1ea,_0x1eee3f._0x208aa3,0x25e,0x21d),_0x935cf5=execSync(_0x57ee7a,{'encoding':_0x56464d(0x299,0x238,_0x1eee3f._0xa0d0de,_0x1eee3f._0x106bec),'stdio':[_0x275ca7(-_0x1eee3f._0x5161eb,-_0x1eee3f._0x3bef80,-_0x1eee3f._0x4c4509,-0x171),_0x56464d(_0x1eee3f._0x3c0cf7,_0x1eee3f._0x4707e6,0x1e4,0x1fd),_0x275ca7(-0x48,-_0x1eee3f._0x1e274a,-_0x1eee3f._0x3bb069,-_0x1eee3f._0x5bc770)]})[_0x275ca7(-_0x1eee3f._0x4a8aaf,-_0x1eee3f._0x2556c1,-0xf5,-_0x1eee3f._0x207343)]()[_0x275ca7(-_0x1eee3f._0x485ec0,-_0x1eee3f._0x31c66c,-_0x1eee3f._0xabe31d,-_0x1eee3f._0x4b0d5c)](/\r?\n/)[0x0];if(_0x935cf5&&existsSync(_0x935cf5))return _0x935cf5;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x404eff&&existsSync(_0x404eff))return cachedRgPath=_0x404eff,_0x404eff;const _0x33c409=findSystemRipgrep();if(!_0x33c409)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x33c409,_0x33c409;}async function*files(_0x3f33b6){const _0x20d923={_0x3b8ec9:0x545,_0x1d28d5:0x4a1,_0x22b822:0x2af,_0x434d8c:0x288,_0x39377d:0x2bc,_0x357a74:0x43d,_0x8e537c:0x4ab,_0x7d5c7e:0x32b,_0x18a73d:0x2cb,_0x4807ba:0x393,_0x23d60b:0x2c0,_0xdc3cd:0x4ad,_0x51b7c8:0x492,_0x3830a1:0x213,_0x54028f:0x2d7,_0x4d94e2:0x2b8,_0x4f6235:0x17b,_0x150e56:0x17d,_0xc626fa:0x426,_0x394a5a:0x405,_0x45e3a5:0x43b,_0x5e4cea:0x5c5,_0x40e44e:0x30d,_0x39972e:0x287,_0x64cbe:0x1bc,_0x5e0589:0x195,_0x50e13d:0x209,_0x116481:0x4ee,_0x27f3fb:0x493,_0x3932a5:0x53c,_0x509892:0x48f,_0x415144:0x46f,_0x366879:0x4fe,_0x5bcacb:0x4d4,_0x2aecea:0x245},_0x5435be={_0x531ccd:0xb9},_0x29ede7=await filepath();function _0x10823f(_0x1079b4,_0x195482,_0x3d7df1,_0x47b0f9){return _0x49a26f(_0x195482,_0x195482-0xde,_0x3d7df1-_0x5435be._0x531ccd,_0x1079b4- -0x135);}const _0x4b7ecc=await _0x2f415b(_0x3f33b6[_0x4e2fc1(_0x20d923._0x3b8ec9,0x52f,0x4d1,_0x20d923._0x1d28d5)])[_0x10823f(_0x20d923._0x22b822,0x2a2,_0x20d923._0x434d8c,_0x20d923._0x39377d)](()=>null);if(!_0x4b7ecc?.[_0x10823f(0x347,0x39f,0x358,0x2a6)]())throw Object[_0x4e2fc1(0x493,_0x20d923._0x357a74,_0x20d923._0x8e537c,0x471)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x3f33b6[_0x10823f(_0x20d923._0x7d5c7e,_0x20d923._0x18a73d,_0x20d923._0x4807ba,_0x20d923._0x23d60b)]+'\x27'),{'code':'ENOENT'});const _0x3f4738=[_0x4e2fc1(0x44b,_0x20d923._0xdc3cd,0x457,0x3ac),_0x4e2fc1(_0x20d923._0x51b7c8,0x4e8,0x4fe,0x3d4),_0x10823f(0x239,_0x20d923._0x3830a1,0x1c8,0x1c9),_0x10823f(_0x20d923._0x54028f,_0x20d923._0x4d94e2,0x2b7,0x395)];for(const _0x51c035 of _0x3f33b6[_0x10823f(0x21a,0x1d3,_0x20d923._0x4f6235,_0x20d923._0x150e56)]??[]){_0x3f4738[_0x4e2fc1(_0x20d923._0xc626fa,_0x20d923._0x394a5a,0x39b,_0x20d923._0x45e3a5)]('--glob='+_0x51c035);}function _0x4e2fc1(_0x6ce2f5,_0x1d57ae,_0x5eed83,_0x132f3e){return _0x49a26f(_0x1d57ae,_0x1d57ae-0xb2,_0x5eed83-0x18e,_0x6ce2f5-0xe5);}const _0x4241e6=_0x3324fd(_0x29ede7,_0x3f4738,{'cwd':_0x3f33b6[_0x4e2fc1(0x545,0x4e8,_0x20d923._0x5e4cea,0x53e)],'stdio':[_0x10823f(0x2d0,_0x20d923._0x40e44e,0x382,_0x20d923._0x39972e),_0x10823f(0x22e,_0x20d923._0x64cbe,0x2a8,0x1dd),'pipe']});let _0x2ac7bf='';for await(const _0x5e3daf of _0x4241e6[_0x10823f(0x220,0x1aa,_0x20d923._0x5e0589,_0x20d923._0x50e13d)]??[]){_0x2ac7bf+=_0x5e3daf['toString']();const _0x2e2a9e=_0x2ac7bf[_0x4e2fc1(_0x20d923._0x116481,_0x20d923._0x27f3fb,_0x20d923._0x3932a5,_0x20d923._0x509892)](/\r?\n/);_0x2ac7bf=_0x2e2a9e[_0x4e2fc1(_0x20d923._0x415144,_0x20d923._0x366879,0x489,_0x20d923._0x5bcacb)]()??'';for(const _0x3b4a0b of _0x2e2a9e){if(_0x3b4a0b['length']>0x0)yield _0x3b4a0b;}}_0x2ac7bf[_0x10823f(_0x20d923._0x2aecea,0x1c5,0x22a,0x1a4)]()['length']>0x0&&(yield _0x2ac7bf['trim']());}function parseMatchLine(_0x26fa24,_0x2d4cbb){const _0x290954={_0x1c9c49:0x2f4,_0x387abf:0x205,_0x3c8000:0x239,_0x42588c:0x18d,_0xc9941f:0x326,_0x55fac6:0x3e3,_0x1409bc:0x3d4,_0x1b2df4:0x2e6,_0x40b8e9:0x249,_0x78d610:0x18d,_0x37c333:0x232,_0x32ac05:0x2ac,_0x519eb2:0x20a,_0x1521eb:0x1ff,_0xf7206d:0x2a8,_0x469062:0x356,_0x434aca:0x26d,_0x349afa:0x2d2,_0x4be202:0x247,_0x1a5919:0x189,_0x42f087:0x395,_0x3ca47c:0x314},_0x300872={_0x58dce0:0x1be},_0x44a8cd={_0x5a9535:0x373};if(!_0x26fa24||_0x26fa24==='--')return null;const _0xadbede=_0x26fa24['split']('|');if(_0x2d4cbb&&_0xadbede[_0x5db210(0x2a8,_0x290954._0x1c9c49,_0x290954._0x387abf,0x327)]>=0x4&&Number[_0x418acc(0x197,_0x290954._0x3c8000,0x246,_0x290954._0x42588c)](Number[_0x5db210(_0x290954._0xc9941f,_0x290954._0x55fac6,0x2bd,_0x290954._0x1409bc)](_0xadbede[0x2]??'',0xa))){const _0x3948d3=Number[_0x418acc(0x1b1,0x2c2,_0x290954._0x1b2df4,_0x290954._0x40b8e9)](_0xadbede[0x1]??'',0xa);if(!Number[_0x418acc(0x19e,0x13a,0x21e,_0x290954._0x78d610)](_0x3948d3)||!_0xadbede[0x0])return null;return{'filePath':_0xadbede[0x0],'lineNum':_0x3948d3,'lineText':_0xadbede[_0x418acc(0x2ee,_0x290954._0x37c333,0x34d,_0x290954._0x32ac05)](0x3)[_0x418acc(_0x290954._0x519eb2,0x251,0x160,_0x290954._0x1521eb)]('|')};}function _0x418acc(_0x422b55,_0xaa64e7,_0x4ae487,_0x5c7aed){return _0xaab5df(_0x422b55-0xa4,_0x5c7aed-_0x44a8cd._0x5a9535,_0x4ae487-0x174,_0x4ae487);}if(_0xadbede[_0x5db210(_0x290954._0xf7206d,_0x290954._0x469062,0x259,0x352)]>=0x3){const _0x298b4e=Number[_0x418acc(_0x290954._0x434aca,_0x290954._0x349afa,_0x290954._0x4be202,0x249)](_0xadbede[0x1]??'',0xa);if(!Number[_0x418acc(_0x290954._0x1a5919,0x182,0x1f7,0x18d)](_0x298b4e)||!_0xadbede[0x0])return null;return{'filePath':_0xadbede[0x0],'lineNum':_0x298b4e,'lineText':_0xadbede[_0x5db210(0x389,_0x290954._0x42f087,_0x290954._0x3ca47c,0x3ef)](0x2)[_0x418acc(0x268,0x213,0x218,0x1ff)]('|'),..._0x2d4cbb?{'isContext':!![]}:{}};}function _0x5db210(_0x6425ad,_0x2ad945,_0x19121a,_0x95329a){return _0xaab5df(_0x6425ad-_0x300872._0x58dce0,_0x6425ad-0x450,_0x19121a-0x10c,_0x19121a);}return null;}async function search(_0x1fb5a6){const _0x1c5a15={_0x34399d:0xb0,_0x240333:0x155,_0x48f1be:0x57,_0xe9cf4f:0xf,_0x6b245c:0x1f5,_0x487960:0x16d,_0x2c8362:0x113,_0x1a2325:0x2,_0x124d55:0x7c,_0x424ffc:0x3e,_0x38f3ec:0x13e,_0x449264:0x17b,_0x56a22f:0x114,_0x20a417:0x46,_0x568f78:0x21,_0x42660e:0xad,_0x4cccc5:0x4,_0x2f8987:0x3b,_0x1f8a5f:0x1e,_0x21d757:0xba,_0x4096af:0x100,_0x30b7c9:0xe4,_0x1e7510:0x12a,_0x403994:0x24,_0x5dd9d5:0xbc,_0x2a1d25:0x97,_0x3f7a18:0x11e,_0x58cfd3:0x1bc,_0x161f58:0x1bf,_0x3a9f2b:0x1b7,_0x3164a8:0x27a,_0x5ce277:0x1f0,_0x56b1d7:0x273,_0x3b2085:0x17e,_0x75d554:0x23,_0xa53fac:0x1ae,_0x1bd46f:0x223,_0x2bdbfe:0x20f,_0x828c32:0x27,_0x33d124:0x1e,_0x23f07d:0x1cf},_0x27444a={_0x3bccde:0xfa,_0x482d8f:0x594,_0x59471c:0x6ae,_0x3a9749:0x633,_0x11d443:0x591,_0x354517:0x57c,_0x3d3ad9:0x5ea,_0x1f20a5:0x58,_0x49fda4:0xf1,_0x44cb22:0xce,_0x236176:0x14f,_0x1abe48:0x91,_0x3c9ab6:0x31,_0x485a77:0x6b9},_0x11ea3b={_0x3fa145:0xf0,_0x2e0f39:0x65},_0x7717b3={_0x5d0884:0x1d8,_0x3908c9:0x1a5,_0x3d1fd2:0x1f1};function _0x11d213(_0x229429,_0x5e40de,_0x359e52,_0x3ea95f){return _0x49a26f(_0x359e52,_0x5e40de-0x14f,_0x359e52-0x97,_0x229429- -0x4fd);}const _0x260eeb=await filepath();if(_0x1fb5a6[_0x11d213(-0x14d,-_0x1c5a15._0x34399d,-0x166,-_0x1c5a15._0x240333)]){const _0x571b55=await _0x2f415b(_0x1fb5a6[_0xc36d38(_0x1c5a15._0x48f1be,0xb,0x48,0x40)])[_0xc36d38(-0x38,-_0x1c5a15._0xe9cf4f,0x7c,0x5d)](()=>null);if(!_0x571b55?.['isFile']())throw Object[_0x11d213(-0x14f,-0x19b,-_0x1c5a15._0x6b245c,-0x160)](new Error('No\x20such\x20file:\x20\x27'+_0x1fb5a6[_0x11d213(-0x14d,-0x125,-_0x1c5a15._0x487960,-0x1f4)]+'\x27'),{'code':'ENOENT'});}else{const _0x1e9f0b=await _0x2f415b(_0x1fb5a6['cwd'])[_0xc36d38(_0x1c5a15._0x2c8362,_0x1c5a15._0x1a2325,_0x1c5a15._0x124d55,-_0x1c5a15._0x424ffc)](()=>null);if(!_0x1e9f0b?.[_0xc36d38(_0x1c5a15._0x38f3ec,_0x1c5a15._0x449264,_0x1c5a15._0x56a22f,0x176)]())throw Object[_0xc36d38(0x73,-0x20,_0x1c5a15._0x20a417,-0x41)](new Error(_0xc36d38(_0x1c5a15._0x568f78,0xb8,0x77,0x59)+_0x1fb5a6[_0x11d213(-0x9d,-_0x1c5a15._0x42660e,-0x80,-_0x1c5a15._0x4cccc5)]+'\x27'),{'code':_0xc36d38(_0x1c5a15._0x2f8987,_0x1c5a15._0x1f8a5f,0xc9,_0x1c5a15._0x21d757)});}const _0x2cf3bf=[_0x11d213(-0x167,-_0x1c5a15._0x4096af,-0xa7,-0xb4),_0x11d213(-_0x1c5a15._0x30b7c9,-_0x1c5a15._0x1e7510,-_0x1c5a15._0x403994,-_0x1c5a15._0x5dd9d5),'--field-context-separator=|','--regexp',_0x1fb5a6[_0xc36d38(0x50,0x6f,_0x1c5a15._0x2a1d25,-0x11)]],_0x5ee182=typeof _0x1fb5a6[_0xc36d38(0x13b,0x119,0xad,_0x1c5a15._0x3f7a18)]===_0xc36d38(0x26,0x79,0x8,-0xab)&&_0x1fb5a6['context']>0x0;_0x5ee182&&_0x2cf3bf[_0x11d213(-_0x1c5a15._0x58cfd3,-_0x1c5a15._0x161f58,-_0x1c5a15._0x3a9f2b,-_0x1c5a15._0x3164a8)]('-C',String(_0x1fb5a6['context']),_0x11d213(-_0x1c5a15._0x5ce277,-0x224,-_0x1c5a15._0x56b1d7,-_0x1c5a15._0x3b2085));function _0xc36d38(_0x11654a,_0x2f9d44,_0x3852f1,_0x4a2ffb){return _0xaab5df(_0x11654a-_0x7717b3._0x5d0884,_0x3852f1-_0x7717b3._0x3908c9,_0x3852f1-_0x7717b3._0x3d1fd2,_0x2f9d44);}return _0x1fb5a6[_0xc36d38(-0x22,-0x8e,-0x19,0xa0)]&&!_0x1fb5a6[_0xc36d38(0x20,0x98,0x48,0xcb)]&&_0x2cf3bf['push'](_0xc36d38(-0x65,_0x1c5a15._0x75d554,-0x4,_0x1c5a15._0x2f8987),_0x1fb5a6[_0x11d213(-_0x1c5a15._0xa53fac,-_0x1c5a15._0x1bd46f,-0x16f,-_0x1c5a15._0x2bdbfe)]),_0x2cf3bf[_0xc36d38(-0x82,-0xe3,-_0x1c5a15._0x828c32,-_0x1c5a15._0x33d124)](_0x1fb5a6[_0x11d213(-0x14d,-0xef,-_0x1c5a15._0x23f07d,-0xbb)]??_0x1fb5a6['cwd']),await new Promise((_0x5983a3,_0x4402f9)=>{const _0x40fd5f={_0x3c1e1c:0x72b,_0x5390cc:0x0},_0x4b2459={_0x1702b8:0x241,_0x1f2dd3:0x119,_0x42ccc8:0x90,_0x309946:0xe,_0x67ed8e:0x8a,_0x10e361:0x14,_0x41de80:0x97},_0x1aad5d={_0x27d5cd:0x34,_0x8bd997:0x152,_0xf8cc70:0x74},_0x72a355={_0x26ba2b:0x75},_0xbb74d8={_0x1d003f:0x2b,_0x59f1b3:0x61,_0x1cdf4a:0x34,_0x3e2d30:0x5d},_0x3ae141={_0x2ffaa6:0x101,_0x2964d8:0x1c4},_0x48f51b={_0x2cb13f:0xf0,_0x48ab07:0x1d},_0x57ca65=_0x3324fd(_0x260eeb,_0x2cf3bf,{'cwd':_0x1fb5a6[_0x59aeaa(0xb3,0x35,0x23,_0x27444a._0x3bccde)],'stdio':[_0x50b60f(_0x27444a._0x482d8f,_0x27444a._0x59471c,_0x27444a._0x3a9749,0x6ad),_0x50b60f(0x5f4,0x64a,_0x27444a._0x11d443,0x50f),_0x50b60f(0x543,_0x27444a._0x354517,_0x27444a._0x11d443,_0x27444a._0x3d3ad9)]});let _0x26b843='',_0x5db24f='';_0x57ca65[_0x59aeaa(-_0x27444a._0x1f20a5,-0x118,-0x50,-_0x27444a._0x49fda4)]?.['on'](_0x59aeaa(-0x57,0x47,0x5b,-0xd3),_0x5e42cb=>{function _0x5774f8(_0x45c276,_0x3c5b60,_0x5aa51f,_0x24de90){return _0x59aeaa(_0x24de90-_0x48f51b._0x2cb13f,_0x3c5b60-0x71,_0x5aa51f-_0x48f51b._0x48ab07,_0x45c276);}_0x26b843+=_0x5e42cb[_0x5774f8(0x121,_0x3ae141._0x2ffaa6,_0x3ae141._0x2964d8,0x110)]();}),_0x57ca65[_0x59aeaa(_0x27444a._0x44cb22,_0x27444a._0x236176,_0x27444a._0x1abe48,0x21)]?.['on']('data',_0xeee9d6=>{const _0x111517={_0x2fc16d:0x4b};function _0x29df52(_0x4cad7d,_0x2444bf,_0x20b560,_0x865d3d){return _0x59aeaa(_0x4cad7d- -_0x111517._0x2fc16d,_0x2444bf-0x153,_0x20b560-0x1e3,_0x2444bf);}_0x5db24f+=_0xeee9d6[_0x29df52(-_0xbb74d8._0x1d003f,-_0xbb74d8._0x59f1b3,-_0xbb74d8._0x1cdf4a,_0xbb74d8._0x3e2d30)]();});function _0x59aeaa(_0x4d0b88,_0x21b86d,_0x246b43,_0x498ee0){return _0x11d213(_0x4d0b88-0x150,_0x21b86d-_0x11ea3b._0x3fa145,_0x498ee0,_0x498ee0-_0x11ea3b._0x2e0f39);}_0x57ca65['on'](_0x59aeaa(0x8f,0x3b,-_0x27444a._0x3c9ab6,0x85),_0x3ad4bd=>{if(_0x3ad4bd===0x1&&_0x26b843===''){_0x5983a3([]);return;}if(_0x3ad4bd!==0x0&&_0x3ad4bd!==0x1){_0x4402f9(new Error('ripgrep\x20failed:\x20'+_0x5db24f));return;}const _0x5e76e6=_0x1fb5a6[_0x3b3b8d(0x225,0x274,_0x4b2459._0x1702b8,0x20f)]??0x64;function _0x3b3b8d(_0x4d1854,_0x1c3557,_0x57008d,_0x3c2130){return _0x59aeaa(_0x57008d-0x26f,_0x1c3557-_0x72a355._0x26ba2b,_0x57008d-0x16d,_0x1c3557);}const _0x1da25d=[];for(const _0x29c2b5 of _0x26b843[_0x5c061c(_0x4b2459._0x1f2dd3,_0x4b2459._0x42ccc8,_0x4b2459._0x309946,0x12f)](/\r?\n/)){if(_0x1da25d[_0x5c061c(_0x4b2459._0x67ed8e,-_0x4b2459._0x10e361,-0x39,-_0x4b2459._0x41de80)]>=_0x5e76e6)break;const _0x35c576=parseMatchLine(_0x29c2b5,_0x5ee182);if(_0x35c576)_0x1da25d['push'](_0x35c576);}function _0x5c061c(_0x162390,_0x48f352,_0x55d718,_0x5d3780){return _0x59aeaa(_0x48f352-_0x1aad5d._0x27d5cd,_0x48f352-_0x1aad5d._0x8bd997,_0x55d718-_0x1aad5d._0xf8cc70,_0x162390);}_0x5983a3(_0x1da25d);});function _0x50b60f(_0x964fa,_0x180202,_0x451e11,_0x83fc95){return _0x11d213(_0x451e11-_0x40fd5f._0x3c1e1c,_0x180202-0x3,_0x83fc95,_0x83fc95-_0x40fd5f._0x5390cc);}_0x57ca65['on'](_0x50b60f(0x740,_0x27444a._0x485a77,0x6b4,0x60d),_0x4402f9);});}function createGlobTool(_0x473501={}){const _0xd3f167={_0x15535f:0x37e,_0x42c412:0x385,_0x36c118:0x3c3,_0x1a2629:0x175,_0x717592:0x179,_0x4eb6ae:0x1c1,_0x51a6b8:0x160,_0x70e92f:0x185,_0x1e0f37:0x179,_0x1f68ec:0x41d,_0xce8baa:0x4a3,_0x5de1a0:0x497,_0x51a0bf:0x44c,_0x2c6fa1:0x163,_0x2b55bf:0x1ab,_0x5bb2d5:0x4eb,_0x35f043:0x443},_0xc47f4f={_0x596731:0x86,_0x524861:0xb8,_0x5143bb:0xa5,_0x583505:0x1e,_0x18420a:0xb7,_0x32da9f:0x129,_0x27d00c:0x1b3,_0x3d6079:0x7c,_0x35fa63:0x11e,_0x29b8bc:0x228,_0x592039:0x29,_0x8307b3:0x66,_0x41d1bc:0xb,_0x199019:0xb3,_0x2aa0a8:0x34,_0x2238a3:0xc2,_0x2b99f7:0x10c,_0x39714a:0x2d,_0x4343df:0x91,_0x417655:0x3f,_0x22a55d:0x6a,_0x18d62d:0x118,_0x317dcc:0x251,_0x40c17e:0x67,_0x269d76:0x99,_0x3e7e45:0x47,_0x46e6af:0x14f,_0x5db535:0x115,_0x47899f:0xfc,_0x40b380:0x33,_0x5bfb74:0x9f,_0x1ed77f:0xb8,_0x529de4:0x13d,_0x3e16ec:0x97,_0x2b9c60:0x12},_0x9465dc={_0x3b930f:0x3a,_0x1a001b:0x7},_0x3bd75f={_0x4ea3a6:0x551,_0x318e72:0x1d9};function _0xa79200(_0x403c12,_0x60b125,_0x1ecf0b,_0x570586){return _0xaab5df(_0x403c12-0x148,_0x570586-_0x3bd75f._0x4ea3a6,_0x1ecf0b-_0x3bd75f._0x318e72,_0x60b125);}const _0x2d7a5a=_0x582e52['resolve'](_0x473501['defaultCwd']??process[_0xa79200(0x504,0x482,0x525,0x4a4)]()),_0x5c61d4=_0x473501[_0xa79200(_0xd3f167._0x15535f,0x410,_0xd3f167._0x42c412,_0xd3f167._0x36c118)]??0x64,_0xcf4b11=_0x473501['name']??_0x5432de(-0x1ff,-_0xd3f167._0x1a2629,-0x1b5,-_0xd3f167._0x717592);function _0x5432de(_0x196e71,_0x3ed9f8,_0x10f981,_0x248b1f){return _0xaab5df(_0x196e71-0x137,_0x3ed9f8-_0x9465dc._0x3b930f,_0x10f981-_0x9465dc._0x1a001b,_0x10f981);}return defineTool({'name':_0xcf4b11,'description':_0x5432de(-_0xd3f167._0x4eb6ae,-_0xd3f167._0x51a6b8,-0x1d0,-0x16b),'inputSchema':{'type':_0x5432de(-0x176,-_0xd3f167._0x70e92f,-_0xd3f167._0x1e0f37,-0xd2),'properties':{'pattern':{'type':_0xa79200(0x4bf,_0xd3f167._0x1f68ec,0x447,0x44c)},'path':{'type':_0xa79200(0x4d9,_0xd3f167._0xce8baa,_0xd3f167._0x5de1a0,_0xd3f167._0x51a0bf)},'limit':{'type':_0x5432de(-0x137,-_0xd3f167._0x2c6fa1,-0x214,-_0xd3f167._0x2b55bf)}},'required':[_0xa79200(0x436,0x448,_0xd3f167._0x5bb2d5,_0xd3f167._0x35f043)]},async *'execute'(_0x3a0eba){const _0x350f43={_0x197010:0x1f3,_0x5962a7:0x62},_0xe57ee9={_0x1bca61:0x28,_0x4d4eaf:0x121};if(_0x3a0eba[_0x395d0b(-0x18a,-0x137,-0x7f,-0xfc)][_0x211353(_0xc47f4f._0x596731,-0x4e,0x27,_0xc47f4f._0x524861)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x4cdf98=resolveWorkspacePath(_0x2d7a5a,_0x3a0eba[_0x395d0b(-0x148,-0x13a,-0xa4,-0x9f)]??'.'),_0x114d52=await _0x997e47(_0x4cdf98)[_0x211353(0x82,_0xc47f4f._0x5143bb,0x91,-_0xc47f4f._0x583505)](()=>null);function _0x395d0b(_0x31cd19,_0x381095,_0x109ace,_0x52dda2){return _0x5432de(_0x31cd19-0x18,_0x52dda2- -_0xe57ee9._0x1bca61,_0x381095,_0x52dda2-_0xe57ee9._0x4d4eaf);}if(!_0x114d52?.[_0x211353(_0xc47f4f._0x18420a,0x136,_0xc47f4f._0x32da9f,_0xc47f4f._0x27d00c)]())throw new ToolExecutionError(_0x211353(0x5e,-0x85,0x36,0xb7)+(_0x3a0eba[_0x211353(0x10e,0x67,0x109,0xdf)]??'.'),{'path':_0x3a0eba[_0x211353(0x193,_0xc47f4f._0x3d6079,0x109,_0xc47f4f._0x35fa63)]??'.'});function _0x211353(_0x3646ca,_0x13fb97,_0x47da9e,_0x505cbb){return _0x5432de(_0x3646ca-_0x350f43._0x197010,_0x47da9e-0x180,_0x3646ca,_0x505cbb-_0x350f43._0x5962a7);}const _0x21b3f0=_0x3a0eba[_0x395d0b(-0x192,-0x113,-_0xc47f4f._0x29b8bc,-0x17c)]??_0x5c61d4,_0x13380c=Math[_0x211353(0x47,0x37,_0xc47f4f._0x592039,_0xc47f4f._0x8307b3)](0x1,Math[_0x211353(-_0xc47f4f._0x41d1bc,0xbb,_0xc47f4f._0x199019,_0xc47f4f._0x2aa0a8)](_0x21b3f0)),_0x215812=[];let _0x2d7ceb=![];for await(const _0xfe500 of files({'cwd':_0x4cdf98,'glob':[_0x3a0eba[_0x211353(_0xc47f4f._0x2238a3,0xc7,0xac,0xad)]]})){if(_0x215812['length']>=_0x13380c){_0x2d7ceb=!![];break;}const _0x214694=await _0x997e47(_0x582e52['join'](_0x4cdf98,_0xfe500))[_0x211353(_0xc47f4f._0x2b99f7,-_0xc47f4f._0x39714a,_0xc47f4f._0x4343df,0x36)](()=>null);_0x215812[_0x211353(_0xc47f4f._0x417655,-_0xc47f4f._0x22a55d,-0x12,0x12)]({'path':_0xfe500,'mtime':_0x214694?.[_0x395d0b(-0x12b,-0x16a,-0x19b,-0x1df)]??0x0});}_0x215812[_0x395d0b(-_0xc47f4f._0x18d62d,-_0xc47f4f._0x317dcc,-0x212,-0x1a4)]((_0x49a6ed,_0x4a4e71)=>_0x4a4e71[_0x395d0b(-0x1a,-0x19,-0x81,-0x83)]-_0x49a6ed[_0x211353(0xa4,0xb2,0x125,0x1de)]);const _0xda160c=_0x215812[_0x211353(0xd,0x36,_0xc47f4f._0x40c17e,0x35)](_0x22d370=>_0x22d370['path']),_0x422942=_0xda160c['length']===0x0?_0x211353(-_0xc47f4f._0x269d76,-0x4e,-_0xc47f4f._0x3e7e45,0x35)+_0x3a0eba[_0x395d0b(-0xe3,-_0xc47f4f._0x46e6af,-_0xc47f4f._0x5db535,-_0xc47f4f._0x47899f)]:''+_0xda160c[_0x211353(0xd1,_0xc47f4f._0x39714a,0x46,-_0xc47f4f._0x40b380)]('\x0a')+(_0x2d7ceb?_0x395d0b(-_0xc47f4f._0x5bfb74,-_0xc47f4f._0x18d62d,-_0xc47f4f._0x1ed77f,-_0xc47f4f._0x529de4):'');return yield createToolOutput(_0x422942,{'pattern':_0x3a0eba[_0x211353(0x45,0xa2,0xac,-0x14)],'searchPath':_0x582e52[_0x395d0b(-0x13f,-0x6d,-0x84,-_0xc47f4f._0x3e16ec)](_0x2d7a5a,_0x4cdf98)||'.','matches':_0xda160c,'count':_0xda160c[_0x211353(0x75,0x5,_0xc47f4f._0x2b9c60,0x41)],'truncated':_0x2d7ceb}),void 0x0;}});}import{stat as _0x3e0718}from'fs/promises';import*as _0xfb71cd from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x235f90={}){const _0x20234d={_0x454ef8:0x217,_0x3a6578:0x1d5,_0x5189ae:0x6fd,_0x917b3b:0x60d,_0x10ab05:0x724,_0x4bf36a:0x59b,_0x5dffb0:0x528,_0x5014bf:0x5c1,_0x5add4a:0x57b,_0x25bdca:0x645,_0x140d30:0x56e,_0x327bff:0x599,_0x1aae99:0x506,_0x5ed95a:0x2ba,_0x585e55:0x205,_0x5e51d7:0x1a6,_0x202e61:0x16b,_0xfc49da:0x154,_0xe09e4f:0xfd},_0x1947e7={_0x355512:0xbc,_0x193bca:0x34,_0x4f1c6f:0x14,_0x59568c:0x296,_0x4512e7:0x301,_0x444034:0x328,_0xbfe697:0x3f3,_0x260821:0x41f,_0x154ad2:0x4d9,_0x13c5f0:0x49c,_0x2bb07f:0x66,_0x1a3032:0x11d,_0x463b25:0x71,_0x32dcee:0x42,_0x129223:0x4c,_0x426b07:0x3,_0x54f79c:0x3b,_0x2e21d1:0x6b,_0x1140f0:0x1d,_0x14b0ab:0x118,_0x73a226:0x41e,_0x57568e:0x3d8,_0x262ba3:0xe8,_0x94da1f:0xda,_0x3847d8:0xa5,_0xfdb6c0:0x357,_0x23f523:0x30e,_0x439f07:0x332,_0x2bd85d:0x2b4,_0x207fbd:0x2a5,_0x5e1938:0x2df,_0x2f7267:0x294,_0x5cc151:0x117,_0x4d43c1:0xe,_0x128284:0x304,_0x2a2c2b:0x2ee,_0xd08f94:0x357,_0xc103e2:0x3ae,_0x15aab:0x28b,_0x52bad0:0x282,_0x341585:0x2d5,_0x4cb15c:0x8,_0x2fd9b9:0x86,_0x69b9aa:0x5f,_0x4dbf68:0x30,_0x1e49b8:0x24,_0x2f23af:0x94,_0x4b76fe:0x35,_0x284a93:0x4c,_0x3c1fb2:0x30,_0x37abf4:0x5a,_0x263901:0xc7,_0x1aef60:0x3b,_0x3aadf3:0xfa,_0x19e114:0x2b,_0x2bd37c:0x38d,_0x5697a8:0x426,_0x1b2fa1:0x13d,_0x292394:0x36,_0x5b3744:0xdd,_0x1886f2:0x35,_0x3f5009:0x76,_0x20c890:0x37a,_0x986f43:0x3c3,_0x1efdb9:0x365,_0x3d2e09:0x87,_0x3b6e5f:0xd6,_0xfd2c86:0x15,_0x25bf43:0xa1,_0x12ae92:0x54,_0x43b5f2:0x3c,_0x148abd:0x7d,_0x45daa8:0x28,_0x2d50a1:0x35f,_0x1d5cfd:0x36f,_0x2eb6ec:0x3d9,_0xe6e2d0:0xd5,_0x205705:0x83,_0x43f223:0x29,_0x364168:0x361,_0x119eef:0x4d,_0x4864dd:0x6,_0x45ab91:0x40c,_0x4d0db5:0x385,_0x4b3123:0x93,_0x112cc9:0xf7,_0x587742:0x9b,_0x16f386:0x9a},_0x5886d8={_0x61b43a:0x726},_0x3ae237={_0x1ebb64:0x17},_0x2a1b64=_0xfb71cd[_0x2f4d95(_0x20234d._0x454ef8,0x219,_0x20234d._0x3a6578,0x1c9)](_0x235f90[_0x34de5f(_0x20234d._0x5189ae,_0x20234d._0x917b3b,0x63a,0x68e)]??process[_0x34de5f(0x728,0x720,_0x20234d._0x10ab05,0x679)]());function _0x2f4d95(_0x232d53,_0xcbfe13,_0x5f6a14,_0x5e2543){return _0x49a26f(_0x5e2543,_0xcbfe13-0x43,_0x5f6a14-_0x3ae237._0x1ebb64,_0x5f6a14- -0x203);}function _0x34de5f(_0x260d28,_0x7646bf,_0x2b99d,_0x525b75){return _0xaab5df(_0x260d28-0x140,_0x525b75-_0x5886d8._0x61b43a,_0x2b99d-0x170,_0x260d28);}const _0x57ada6=_0x235f90[_0x34de5f(0x5ee,_0x20234d._0x4bf36a,0x50a,0x598)]??0x64,_0x476ec6=_0x235f90[_0x34de5f(_0x20234d._0x5dffb0,0x538,_0x20234d._0x5014bf,_0x20234d._0x5add4a)]??_0x34de5f(0x4ee,_0x20234d._0x25bdca,_0x20234d._0x140d30,_0x20234d._0x327bff);return defineTool({'name':_0x476ec6,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20file\x20contents.','inputSchema':{'type':_0x34de5f(0x5ec,_0x20234d._0x1aae99,0x526,0x567),'properties':{'pattern':{'type':_0x2f4d95(_0x20234d._0x5ed95a,0x28d,_0x20234d._0x585e55,0x179)},'path':{'type':'string'},'include':{'type':_0x2f4d95(0x17e,_0x20234d._0x5e51d7,_0x20234d._0x585e55,_0x20234d._0x202e61)},'limit':{'type':_0x2f4d95(_0x20234d._0xfc49da,_0x20234d._0xe09e4f,0x16d,0x18a)},'context':{'type':'number'}},'required':['pattern']},async *'execute'(_0x56cb8b){if(_0x56cb8b[_0x5ee378(_0x1947e7._0x355512,-_0x1947e7._0x193bca,_0x1947e7._0x4f1c6f,0x3b)][_0xdd4de9(_0x1947e7._0x59568c,0x33d,0x2ac,_0x1947e7._0x4512e7)]()[_0xdd4de9(0x313,_0x1947e7._0x444034,0x30a,0x277)]===0x0)throw new ToolExecutionError(_0xdd4de9(0x42e,_0x1947e7._0xbfe697,0x45c,0x437),{});const _0x4b5333=resolveWorkspacePath(_0x2a1b64,_0x56cb8b[_0xdd4de9(0x3b6,_0x1947e7._0x260821,_0x1947e7._0x154ad2,_0x1947e7._0x13c5f0)]??'.'),_0x48bc64=await _0x3e0718(_0x4b5333)['catch'](()=>null),_0x24e265=_0x48bc64?.[_0x5ee378(_0x1947e7._0x2bb07f,_0x1947e7._0x1a3032,0x81,_0x1947e7._0x463b25)]()??![],_0x32b3e5=_0x48bc64?.['isDirectory']()??![];function _0xdd4de9(_0x4592bc,_0x4d2a7a,_0x1fe1da,_0x38d197){return _0x34de5f(_0x4592bc,_0x4d2a7a-0x10f,_0x1fe1da-0x1ab,_0x4d2a7a- -0x256);}if(!_0x24e265&&!_0x32b3e5)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x56cb8b['path']??'.'),{'path':_0x56cb8b['path']??'.'});const _0x45090b=_0x56cb8b['limit']??_0x57ada6,_0x1493c2=Math['max'](0x1,Math[_0x5ee378(-0x20,-0x4,0x68,_0x1947e7._0x32dcee)](_0x45090b)),_0x15e6ce=await search({'cwd':_0x32b3e5?_0x4b5333:_0xfb71cd['dirname'](_0x4b5333),'pattern':_0x56cb8b[_0x5ee378(-0x36,-_0x1947e7._0x129223,-_0x1947e7._0x426b07,_0x1947e7._0x54f79c)],'glob':_0x32b3e5?_0x56cb8b[_0x5ee378(-_0x1947e7._0x2e21d1,_0x1947e7._0x1140f0,-_0x1947e7._0x14b0ab,-0x9a)]:void 0x0,'limit':_0x1493c2,'file':_0x24e265?_0x4b5333:void 0x0,'context':_0x56cb8b[_0xdd4de9(_0x1947e7._0x73a226,_0x1947e7._0x57568e,0x379,0x38f)]}),_0x13e8d2=new Map();for(const _0x14295f of _0x15e6ce){if(!_0x13e8d2['has'](_0x14295f[_0xdd4de9(0x35d,0x30e,0x2d1,0x349)])){const _0x98195=await _0x3e0718(_0x14295f['filePath'])['catch'](()=>null);_0x13e8d2[_0x5ee378(_0x1947e7._0x262ba3,0x116,_0x1947e7._0x94da1f,_0x1947e7._0x3847d8)](_0x14295f[_0xdd4de9(_0x1947e7._0xfdb6c0,_0x1947e7._0x23f523,_0x1947e7._0x439f07,_0x1947e7._0x2bd85d)],{'matches':[],'mtime':_0x98195?.[_0xdd4de9(_0x1947e7._0x207fbd,_0x1947e7._0x5e1938,0x2c7,_0x1947e7._0x2f7267)]??0x0});}_0x13e8d2[_0x5ee378(_0x1947e7._0x5cc151,0x8f,_0x1947e7._0x4d43c1,0x99)](_0x14295f['filePath'])?.['matches'][_0xdd4de9(0x294,_0x1947e7._0x128284,0x354,_0x1947e7._0x2a2c2b)](_0x14295f);}const _0x151535=[..._0x13e8d2[_0xdd4de9(0x416,_0x1947e7._0xd08f94,_0x1947e7._0xc103e2,0x32b)]()][_0xdd4de9(_0x1947e7._0x15aab,0x31a,_0x1947e7._0x52bad0,_0x1947e7._0x341585)]((_0x237492,_0x5da9b0)=>_0x5da9b0[0x1][_0x5ee378(0x136,0x11e,0x11e,0xb4)]-_0x237492[0x1][_0xdd4de9(0x4f8,0x43b,0x467,0x4ec)]),_0x3854d3=_0x15e6ce[_0xdd4de9(0x3c2,0x340,0x2ab,0x388)](_0x4fe2cc=>!_0x4fe2cc['isContext'])['length'],_0x7da518=_0x15e6ce[_0x5ee378(0x6,-_0x1947e7._0x4cb15c,-_0x1947e7._0x2fd9b9,-_0x1947e7._0x69b9aa)]>=_0x1493c2;function _0x5ee378(_0x4759d1,_0x525512,_0x3d8dc6,_0x428976){return _0x2f4d95(_0x4759d1-0x185,_0x525512-0x111,_0x428976- -0x1c1,_0x3d8dc6);}const _0x2c0829=_0x24e265?_0xfb71cd[_0x5ee378(0x81,-_0x1947e7._0x4dbf68,-_0x1947e7._0x1e49b8,0x3a)](_0x4b5333):_0x4b5333;let _0x15e207='';if(_0x15e6ce[_0x5ee378(-0xa2,-_0x1947e7._0x2f23af,_0x1947e7._0x4b76fe,-0x5f)]===0x0)_0x15e207=_0x5ee378(-0x101,_0x1947e7._0x284a93,-_0x1947e7._0x3c1fb2,-0x55)+_0x56cb8b[_0x5ee378(_0x1947e7._0x37abf4,-0x71,_0x1947e7._0x263901,_0x1947e7._0x1aef60)];else{_0x15e207=_0x5ee378(0x13,-0x8d,-_0x1947e7._0x3aadf3,-0x8c)+_0x3854d3+_0x5ee378(-0x3,_0x1947e7._0x19e114,-0x6e,-0x90)+(_0x3854d3===0x1?'':'es')+'\x0a';for(const [_0x24d42d,_0x4a34d2]of _0x151535){const _0x15241f=_0x24e265?_0xfb71cd[_0xdd4de9(0x3da,_0x1947e7._0x2bd37c,_0x1947e7._0x5697a8,0x3d7)](_0x24d42d):_0xfb71cd[_0x5ee378(_0x1947e7._0x1b2fa1,_0x1947e7._0x292394,0xa2,0xa0)](_0x2c0829,_0x24d42d);_0x15e207+='\x0a'+_0x15241f+':\x0a';for(const _0x216f57 of _0x4a34d2[_0x5ee378(_0x1947e7._0x5b3744,_0x1947e7._0x1886f2,_0x1947e7._0x3f5009,0x1e)]){const _0x4e8e6e=_0x216f57[_0xdd4de9(_0x1947e7._0x20c890,_0x1947e7._0x986f43,0x3a2,_0x1947e7._0x1efdb9)][_0x5ee378(-_0x1947e7._0x3d2e09,-_0x1947e7._0x3b6e5f,_0x1947e7._0xfd2c86,-_0x1947e7._0x69b9aa)]>MAX_LINE_LENGTH?_0x216f57[_0x5ee378(_0x1947e7._0x25bf43,0x4d,-_0x1947e7._0x12ae92,_0x1947e7._0x43b5f2)]['slice'](0x0,MAX_LINE_LENGTH)+'...':_0x216f57[_0x5ee378(0x2f,-_0x1947e7._0x148abd,_0x1947e7._0x45daa8,0x3c)],_0x2a445a=_0x216f57[_0xdd4de9(_0x1947e7._0x2d50a1,_0x1947e7._0x1d5cfd,_0x1947e7._0x2eb6ec,0x3d5)]?'\x20\x20':'>\x20';_0x15e207+=_0x2a445a+_0x5ee378(_0x1947e7._0xe6e2d0,-0x75,-_0x1947e7._0x205705,_0x1947e7._0x43f223)+_0x216f57[_0xdd4de9(_0x1947e7._0x341585,_0x1947e7._0x364168,0x351,0x2dc)]+':\x20'+_0x4e8e6e+'\x0a';}}_0x7da518&&(_0x15e207+=_0x5ee378(-0x8d,-0x93,_0x1947e7._0x119eef,-_0x1947e7._0x4864dd));}const _0xeff11c={'searchPath':_0xfb71cd[_0xdd4de9(_0x1947e7._0x45ab91,0x427,0x3f5,_0x1947e7._0x4d0db5)](_0x2a1b64,_0x4b5333)||'.','pattern':_0x56cb8b[_0x5ee378(0x1c,_0x1947e7._0x4b3123,0x56,_0x1947e7._0x1aef60)],'matchCount':_0x3854d3,'fileCount':_0x13e8d2['size'],'truncated':_0x7da518};return _0x32b3e5&&_0x56cb8b[_0x5ee378(-0xba,-0x73,-_0x1947e7._0x112cc9,-0x9a)]!==void 0x0&&(_0xeff11c[_0x5ee378(0x19,-0x2d,-_0x1947e7._0x587742,-_0x1947e7._0x16f386)]=_0x56cb8b['include']),yield createToolOutput(_0x15e207['trim'](),_0xeff11c),void 0x0;}});}function _0x49a26f(_0x33eb64,_0x107a22,_0x4dec6b,_0x389f3b){return _0x1a55(_0x389f3b-0x14c,_0x33eb64);}import{readdir as _0xbbdbbe,readFile as _0x5078cb,stat as _0x52c298}from'fs/promises';import*as _0x299949 from'path';import*as _0x267fa0 from'yaml';async function countTextLines(_0x18e6e8){const _0x21005b={_0x5898cf:0x44c,_0x249435:0x461,_0xd640c:0x413,_0x300f0f:0x457,_0x5972b2:0x42c},_0x259331={_0x49814a:0x1e2,_0x456ff8:0xa},_0x5232f4=await _0x5078cb(_0x18e6e8)['catch'](()=>null);function _0x1859c7(_0x13f0a1,_0xf9c9ff,_0x524e68,_0x4f90d0){return _0xaab5df(_0x13f0a1-0x1c2,_0x524e68-0x767,_0x524e68-0x192,_0xf9c9ff);}function _0x481bc1(_0x59b2fc,_0x9db805,_0x1dfb1e,_0x1c7685){return _0x49a26f(_0x1c7685,_0x9db805-0x72,_0x1dfb1e-_0x259331._0x49814a,_0x1dfb1e-_0x259331._0x456ff8);}if(!_0x5232f4||isProbablyBinary(_0x5232f4))return void 0x0;return _0x5232f4['toString'](_0x481bc1(_0x21005b._0x5898cf,0x399,0x3fd,0x35a))[_0x481bc1(_0x21005b._0x249435,0x3fa,_0x21005b._0xd640c,_0x21005b._0x300f0f)](/\r?\n/)[_0x481bc1(0x30c,_0x21005b._0x5972b2,0x36f,0x39c)];}function createLsTool(_0x58a164={}){const _0x4c1348={_0x3cc186:0x316,_0x5accb9:0x32f,_0x3c4d19:0x3cd,_0x2e57d3:0x47c,_0x58dfbe:0x48b,_0x5e2df6:0x427,_0x533af2:0x381,_0x3bf245:0x328,_0x2a312f:0x3fc,_0x118d6d:0x45c,_0x260f5f:0x412,_0x34f6ec:0x47b,_0x13e4bc:0x40f,_0x2d4ce3:0x457,_0x2d2672:0x308,_0x48cfa9:0x2a9},_0x4d6308={_0x28d515:0xac,_0x302b7e:0x9e,_0x27518a:0x47,_0x532e31:0x0,_0x2b2d04:0x37f,_0x192f0a:0x3d1,_0x4c71c2:0x3a4,_0x304af9:0x4b,_0x453574:0x3d2,_0x410ae0:0x313,_0x356668:0x3e3,_0x2b902d:0x33a,_0x337f0a:0x441,_0x2344de:0x4c3,_0x21a14d:0x42a,_0x96b51d:0x1b,_0x89f801:0x27,_0x2e64eb:0x430,_0x26bd75:0x3a3,_0x5c3fac:0x3ab,_0x3ca2c1:0x3f0,_0x1176a6:0x41a,_0x4f2fa3:0x72,_0x14784a:0x14e,_0x1c9e3f:0xeb,_0x452e5a:0xa0,_0x4077a4:0x297,_0x5b9dee:0x34a,_0x35b313:0x19,_0x391fb7:0x126,_0x3b0881:0x10e,_0x37b488:0x12d,_0x24787c:0xf8,_0x133e91:0x14e,_0x1e9ca3:0x2c4,_0x36ff5e:0x343,_0x491d6e:0x388,_0x422ee6:0x357,_0x3bf326:0xea,_0x1d1b76:0x130},_0x19d409={_0x3d17fb:0x3d,_0x32193e:0x1b8},_0x55f571={_0x5275c8:0x89},_0x3e2a80={_0x4c5278:0x514};function _0x334e55(_0x1c0be6,_0x3dfd34,_0x13d5b5,_0x21bf9d){return _0xaab5df(_0x1c0be6-0xf7,_0x13d5b5-_0x3e2a80._0x4c5278,_0x13d5b5-0x7,_0x1c0be6);}const _0x1477ba=_0x299949[_0x268df1(_0x4c1348._0x3cc186,0x39e,_0x4c1348._0x5accb9,0x316)](_0x58a164[_0x334e55(_0x4c1348._0x3c4d19,0x4be,_0x4c1348._0x2e57d3,_0x4c1348._0x58dfbe)]??process[_0x268df1(0x42e,0x426,_0x4c1348._0x5e2df6,_0x4c1348._0x533af2)]());function _0x268df1(_0x47c1fd,_0x49c266,_0x1340cc,_0x21d3f8){return _0x49a26f(_0x1340cc,_0x49c266-0x147,_0x1340cc-_0x55f571._0x5275c8,_0x49c266- -0x3a);}const _0x37dbf1=_0x58a164[_0x268df1(0x2c1,_0x4c1348._0x3bf245,0x310,0x2a7)]??'Ls';return defineTool({'name':_0x37dbf1,'description':_0x334e55(0x493,_0x4c1348._0x2a312f,_0x4c1348._0x118d6d,0x3f3),'inputSchema':{'type':'object','properties':{'path':{'type':_0x334e55(_0x4c1348._0x260f5f,_0x4c1348._0x34f6ec,_0x4c1348._0x13e4bc,_0x4c1348._0x2d4ce3)},'limit':{'type':_0x268df1(_0x4c1348._0x2d2672,0x336,0x2ca,_0x4c1348._0x48cfa9)}}},async *'execute'(_0x4ab4d1){const _0x22444e={_0x4dc393:0x415},_0x1fe84f=_0x4ab4d1[_0x2883b7(_0x4d6308._0x28d515,0xd,-0x5,_0x4d6308._0x302b7e)]??'.',_0x3381b9=resolveWorkspacePath(_0x1477ba,_0x1fe84f),_0x24cf1e=await _0x52c298(_0x3381b9)[_0x2883b7(0x38,-0x6b,_0x4d6308._0x27518a,_0x4d6308._0x532e31)](()=>null);if(!_0x24cf1e?.['isDirectory']())throw new ToolExecutionError(_0x4f8f53(0x384,_0x4d6308._0x2b2d04,_0x4d6308._0x192f0a,_0x4d6308._0x4c71c2)+_0x1fe84f,{'path':_0x1fe84f});const _0x638eb0=_0x4ab4d1[_0x2883b7(-0x126,-0xd0,-_0x4d6308._0x304af9,-0x176)]??0x3e8,_0x53c301=Math[_0x4f8f53(_0x4d6308._0x453574,_0x4d6308._0x410ae0,_0x4d6308._0x356668,_0x4d6308._0x2b902d)](Math['max'](Math['trunc'](_0x638eb0),0x1),0x2710),_0x121d72=await _0xbbdbbe(_0x3381b9),_0x8309ce=[];function _0x4f8f53(_0x3d8735,_0x2c54d8,_0x59f747,_0x18c723){return _0x268df1(_0x3d8735-_0x19d409._0x3d17fb,_0x3d8735-0x35,_0x2c54d8,_0x18c723-_0x19d409._0x32193e);}for(const _0x49349b of _0x121d72[_0x4f8f53(_0x4d6308._0x337f0a,_0x4d6308._0x2344de,0x3c7,0x439)](0x0,_0x53c301)){const _0x926159=_0x299949[_0x4f8f53(0x394,0x42d,0x358,_0x4d6308._0x21a14d)](_0x3381b9,_0x49349b),_0x194d60=await _0x52c298(_0x926159)[_0x2883b7(-0x28,-0x6b,-_0x4d6308._0x96b51d,_0x4d6308._0x89f801)](()=>null);if(!_0x194d60)continue;let _0x4a86fd='other';if(_0x194d60[_0x4f8f53(_0x4d6308._0x2e64eb,0x4ec,_0x4d6308._0x26bd75,0x474)]())_0x4a86fd=_0x4f8f53(_0x4d6308._0x5c3fac,0x402,_0x4d6308._0x3ca2c1,0x397);else{if(_0x194d60[_0x4f8f53(0x477,0x52c,_0x4d6308._0x1176a6,0x422)]())_0x4a86fd=_0x2883b7(-0x1da,-0x11e,-_0x4d6308._0x4f2fa3,-_0x4d6308._0x14784a);else{if(_0x194d60[_0x2883b7(-_0x4d6308._0x1c9e3f,-0xf4,-0x111,-_0x4d6308._0x452e5a)]())_0x4a86fd=_0x4f8f53(0x327,0x329,_0x4d6308._0x4077a4,0x26b);}}const _0x304177={'name':_0x49349b,'type':_0x4a86fd,'size':_0x194d60['size'],'mtime':_0x194d60[_0x4f8f53(0x317,0x27e,_0x4d6308._0x5b9dee,0x2c4)],'mode':_0x194d60['mode']},_0x1a603d=_0x4a86fd==='file'?await countTextLines(_0x926159):void 0x0;if(_0x1a603d!==void 0x0)_0x304177[_0x2883b7(-_0x4d6308._0x35b313,-0x45,-0x21,-0xe7)]=_0x1a603d;_0x8309ce[_0x2883b7(-_0x4d6308._0x391fb7,-_0x4d6308._0x3b0881,-0xc5,-_0x4d6308._0x37b488)](_0x304177);}function _0x2883b7(_0x45a9b7,_0xecd5f0,_0x3f566e,_0x1adc1a){return _0x268df1(_0x45a9b7-0x132,_0xecd5f0- -_0x22444e._0x4dc393,_0x1adc1a,_0x1adc1a-0x1a6);}_0x8309ce[_0x2883b7(-0x101,-_0x4d6308._0x24787c,-_0x4d6308._0x133e91,-0x151)]((_0x3ec16f,_0x486c32)=>_0x3ec16f['name'][_0x4f8f53(0x447,0x4a8,0x4af,0x3f1)](_0x486c32['name']));const _0x1f30c2={'path':_0x1fe84f,'total':_0x8309ce[_0x4f8f53(0x360,_0x4d6308._0x1e9ca3,0x381,_0x4d6308._0x36ff5e)],'truncated':_0x121d72[_0x4f8f53(0x360,_0x4d6308._0x491d6e,0x409,_0x4d6308._0x422ee6)]>_0x53c301,'entries':_0x8309ce};return yield createToolOutput(_0x267fa0[_0x2883b7(-0x15,0x19,-0x23,0x30)](_0x1f30c2,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x1fe84f,'total':_0x8309ce[_0x2883b7(-0xc5,-_0x4d6308._0x3bf326,-0x79,-_0x4d6308._0x1d1b76)],'truncated':_0x121d72[_0x2883b7(-0x12f,-0xea,-_0x4d6308._0x4f2fa3,-0xf7)]>_0x53c301,'limit':_0x53c301,'entries':_0x8309ce}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0xea6a06,readFile as _0xccd99d,writeFile as _0x175cd9}from'fs/promises';import{join as _0x2f1b56}from'path';function sanitizeStorageKey(_0x3b2851){const _0xe61005={_0x1fac8f:0x3ca,_0x797071:0x30e},_0x56a912={_0x572738:0x159,_0x4f8c17:0xba};function _0x39f149(_0x4cfc0b,_0x38cecc,_0xc86f6f,_0x3b6bd1){return _0xaab5df(_0x4cfc0b-_0x56a912._0x572738,_0x38cecc-0x43d,_0xc86f6f-_0x56a912._0x4f8c17,_0x3b6bd1);}return _0x3b2851['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x39f149(_0xe61005._0x1fac8f,_0xe61005._0x797071,0x3ca,0x24e);}function storagePath(_0xe74460){const _0x3ad686={_0x4946c5:0x139,_0x346594:0x88,_0x12ef60:0x169,_0x487219:0x160},_0x1e5c61={_0x53796d:0x1a6,_0x1232e4:0x8a},_0x330a32={_0x59bd35:0x87};function _0x12b7b8(_0x2bc903,_0x45791b,_0x29e137,_0x3bf59a){return _0x49a26f(_0x29e137,_0x45791b-_0x330a32._0x59bd35,_0x29e137-0x18d,_0x45791b- -0x4e7);}const _0x89aef1=sanitizeStorageKey(_0xe74460[_0x12b7b8(-_0x3ad686._0x4946c5,-_0x3ad686._0x346594,-0xd3,-0xff)]['oauth']?.['tokenStorageKey']??_0xe74460[_0xf7a22d(0x407,0x394,0x3d0,0x424)]);function _0xf7a22d(_0x3cf213,_0x48c5f2,_0x4b2529,_0x54d68b){return _0xaab5df(_0x3cf213-_0x1e5c61._0x53796d,_0x54d68b-0x5eb,_0x4b2529-_0x1e5c61._0x1232e4,_0x48c5f2);}return _0x2f1b56(_0xe74460[_0x12b7b8(-0x118,-0x18f,-0x176,-0x181)],_0x89aef1+_0x12b7b8(-0xbf,-_0x3ad686._0x12ef60,-0x153,-_0x3ad686._0x487219));}async function readStore(_0x3fc7e8){const _0x342b54={_0x5e489c:0x3f5,_0x25d4dc:0x377,_0x53ba0a:0x2e1,_0x5425cb:0x19f,_0xac8162:0x2c5,_0x43c435:0x4e6,_0x1f8184:0x52f},_0x53f3f7={_0x2711a3:0x1b3,_0x212fbd:0x1b4},_0x258178={_0x567c0f:0x1ac,_0x453191:0x18};function _0x481061(_0x1f4081,_0x4d3e7a,_0x3a9ec2,_0x4fe6ed){return _0x49a26f(_0x1f4081,_0x4d3e7a-_0x258178._0x567c0f,_0x3a9ec2-_0x258178._0x453191,_0x3a9ec2-0x198);}function _0x30a589(_0x3115cd,_0x5dafed,_0x38fc39,_0x3f0ff9){return _0xaab5df(_0x3115cd-_0x53f3f7._0x2711a3,_0x38fc39-0x3fb,_0x38fc39-_0x53f3f7._0x212fbd,_0x3115cd);}try{return JSON[_0x30a589(_0x342b54._0x5e489c,0x2bd,_0x342b54._0x25d4dc,0x2f8)](await _0xccd99d(_0x3fc7e8,_0x30a589(0x27c,0x32d,_0x342b54._0x53ba0a,0x29e)));}catch(_0x1134b2){if(_0x1134b2 instanceof Error&&_0x30a589(_0x342b54._0x5425cb,_0x342b54._0xac8162,0x208,0x29f)in _0x1134b2&&_0x1134b2[_0x481061(0x3fa,_0x342b54._0x43c435,0x4b2,_0x342b54._0x1f8184)]==='ENOENT')return{};throw _0x1134b2;}}async function writeStore(_0x2dd493,_0x1d969b){const _0x3f7a07={_0x4345e2:0x4ab,_0x364f7e:0x3fd,_0x51a015:0x30b},_0x50be87={_0x20cc34:0xca,_0x158c33:0x5d},_0x4a2d9c={_0x5be74e:0x69};function _0x152493(_0xaca99a,_0x5cea1e,_0x17eba9,_0x4dde4b){return _0x49a26f(_0xaca99a,_0x5cea1e-_0x4a2d9c._0x5be74e,_0x17eba9-0xdc,_0x4dde4b- -0x4fb);}function _0x263cae(_0x12ad4e,_0x503f37,_0x342f5b,_0x4f212f){return _0x49a26f(_0x12ad4e,_0x503f37-_0x50be87._0x20cc34,_0x342f5b-0x1cf,_0x4f212f- -_0x50be87._0x158c33);}await _0xea6a06(_0x2f1b56(_0x2dd493,'..'),{'recursive':!![]}),await _0x175cd9(_0x2dd493,JSON[_0x263cae(_0x3f7a07._0x4345e2,0x474,_0x3f7a07._0x364f7e,0x40b)](_0x1d969b,null,0x2),_0x263cae(0x38b,0x331,_0x3f7a07._0x51a015,0x396));}async function updateStore(_0x24a865,_0x4829b0){const _0x1d40e9=await readStore(_0x24a865);_0x4829b0(_0x1d40e9),await writeStore(_0x24a865,_0x1d40e9);}function createMcpOAuthProvider(_0x29b028){const _0x2101cb={_0x258418:0x2e,_0x258431:0x8a,_0x3022b2:0x172,_0x3e4adc:0xf9,_0x66adcb:0x13f,_0x18fa8d:0x5e8,_0x5d6970:0x5bf,_0x535f34:0x38,_0xfbc04f:0x42,_0x24d3d5:0xe0,_0xffe6ff:0xb5,_0x423f2d:0x5b,_0x4cd164:0x376,_0x5bda0b:0x4d6,_0x204dbd:0x42f,_0x5435ee:0x44,_0x1a3319:0x77,_0x4b4ce6:0x20},_0x16c819={_0x2df1a8:0x62e,_0x35c842:0x60c,_0x1487a5:0x79,_0x518d0b:0x3e,_0x4889e2:0x23,_0x1232a7:0x524,_0xf29ab1:0x5a8,_0x50b344:0x12a,_0x22807b:0x141,_0x7a2ae2:0x1ea,_0x418eb0:0x12b,_0xd66895:0xe9,_0x3d3694:0x54f,_0x24d76d:0x58b,_0xff09dd:0x5e6,_0x252940:0x206,_0x1cdd72:0x617,_0x4b2d07:0x545},_0x117715={_0x2a7c8b:0x16,_0x3b496f:0x92,_0x340877:0x18,_0xafffdd:0x2b,_0x47429e:0x21},_0x13a08a={_0x7ca90a:0x5e},_0x30c4e1={_0x2bb20d:0x183,_0x5e7dc8:0x195,_0x499399:0xf3,_0x4bca0e:0x169},_0x26ec38={_0x4423c5:0x207,_0x5c0ac4:0x17b},_0x4cbcc9={_0x9867e2:0x538,_0x4cce39:0x57e},_0x21e151={_0x41005d:0x379,_0x233cae:0x3bf},_0x5dcef7={_0x1b901b:0x16},_0x18abe2={_0x463e58:0x66,_0x2b18de:0x2c0,_0x3be682:0x29c,_0x2818a4:0x2a6},_0x53eb52={_0x4f84c8:0x33b},_0x1e85b6={_0x3871f0:0x15e},_0x56e13b={_0xabe866:0x5f0,_0x2a47de:0x670},_0x5efebf={_0x5cabec:0x4c,_0x198e9e:0x43d};function _0x3a5849(_0x25cc17,_0x29cd6e,_0x38918a,_0x20d6c6){return _0x49a26f(_0x25cc17,_0x29cd6e-0x18a,_0x38918a-0xbe,_0x20d6c6-0xcf);}const _0x47d1a5=storagePath(_0x29b028),_0x1f3be2=_0x29b028['config'][_0x58bc92(0x47,_0x2101cb._0x258418,0x2d,-_0x2101cb._0x258431)]?.['scopes']?.['join']('\x20');function _0x58bc92(_0x59c741,_0x147e2f,_0x39bdf2,_0x2e8adb){return _0x49a26f(_0x59c741,_0x147e2f-0x45,_0x39bdf2-_0x5efebf._0x5cabec,_0x39bdf2- -_0x5efebf._0x198e9e);}const _0x39a117={'client_name':_0x58bc92(-0xf5,-_0x2101cb._0x3022b2,-_0x2101cb._0x3e4adc,-_0x2101cb._0x66adcb),'redirect_uris':[_0x29b028[_0x3a5849(_0x2101cb._0x18fa8d,0x51c,_0x2101cb._0x5d6970,0x53e)]],'grant_types':[_0x58bc92(_0x2101cb._0x535f34,_0x2101cb._0xfbc04f,-0x57,-_0x2101cb._0x24d3d5),_0x58bc92(_0x2101cb._0xffe6ff,-_0x2101cb._0x423f2d,0x2f,0x53)],'response_types':['code'],'token_endpoint_auth_method':_0x3a5849(_0x2101cb._0x4cd164,0x4dd,_0x2101cb._0x5bda0b,_0x2101cb._0x204dbd),..._0x1f3be2?{'scope':_0x1f3be2}:{}};return{'clientMetadataUrl':_0x29b028['config'][_0x58bc92(0x8a,_0x2101cb._0x5435ee,0x2d,_0x2101cb._0x1a3319)]?.[_0x58bc92(-0x10,-_0x2101cb._0x4b4ce6,-0x40,-0x94)],get 'redirectUrl'(){const _0x52868f={_0x5b6f43:0xe8};function _0x567702(_0x482947,_0x3e6836,_0x2b5b24,_0x51c8f5){return _0x3a5849(_0x3e6836,_0x3e6836-_0x52868f._0x5b6f43,_0x2b5b24-0x17b,_0x51c8f5-0x132);}return _0x29b028[_0x567702(0x611,_0x56e13b._0xabe866,0x69b,_0x56e13b._0x2a47de)];},get 'clientMetadata'(){return _0x39a117;},async 'state'(){const _0x217107={_0x32ca6d:0x9f},_0x534dbc={_0x320151:0x116},_0x55609a=await readStore(_0x47d1a5);if(_0x55609a[_0x19400f(_0x18abe2._0x463e58,0x4,0x3b,-0x4b)])return _0x55609a[_0x223c14(_0x18abe2._0x2b18de,_0x18abe2._0x3be682,0x33a,_0x18abe2._0x2818a4)];function _0x223c14(_0x32525c,_0x31339c,_0x2fe2a0,_0xcad28e){return _0x3a5849(_0xcad28e,_0x31339c-0x4c,_0x2fe2a0-0x19,_0x31339c- -_0x1e85b6._0x3871f0);}const _0x48c5aa=randomUUID();function _0x19400f(_0x50ef1a,_0x487262,_0x33bf48,_0x359657){return _0x58bc92(_0x359657,_0x487262-0xbf,_0x487262-_0x534dbc._0x320151,_0x359657-0x115);}return await updateStore(_0x47d1a5,_0x15cd6d=>{function _0x971ba5(_0x3f8408,_0x31174a,_0x425ce6,_0x37759f){return _0x223c14(_0x3f8408-0x21,_0x37759f-_0x217107._0x32ca6d,_0x425ce6-0x1d1,_0x425ce6);}_0x15cd6d[_0x971ba5(0x2a4,0x2a2,0x2f0,_0x53eb52._0x4f84c8)]=_0x48c5aa;}),_0x48c5aa;},async 'clientInformation'(){function _0x6240ad(_0x33ff45,_0x2269e0,_0x189c82,_0x1e6c05){return _0x3a5849(_0x33ff45,_0x2269e0-0xb7,_0x189c82-0x1b3,_0x189c82-_0x5dcef7._0x1b901b);}return(await readStore(_0x47d1a5))[_0x6240ad(_0x21e151._0x41005d,_0x21e151._0x233cae,0x432,0x40e)];},async 'saveClientInformation'(_0x1000aa){const _0x3f7aab={_0x4c9c4f:0xcf,_0x3b74f1:0x129,_0x862897:0x19e};await updateStore(_0x47d1a5,_0x17a38f=>{const _0x5d4d39={_0x4cca2e:0xd8};function _0x51e88(_0xa1676a,_0x57d7e7,_0x406b91,_0x359a2c){return _0x1a55(_0x406b91- -_0x5d4d39._0x4cca2e,_0x359a2c);}_0x17a38f[_0x51e88(_0x3f7aab._0x4c9c4f,0x172,_0x3f7aab._0x3b74f1,_0x3f7aab._0x862897)]=_0x1000aa;});},async 'tokens'(){function _0x4d26dc(_0x10f3fb,_0x5c6d33,_0x402ade,_0x1ac0ec){return _0x3a5849(_0x1ac0ec,_0x5c6d33-0x19c,_0x402ade-0xe8,_0x402ade-0x198);}return(await readStore(_0x47d1a5))[_0x4d26dc(_0x4cbcc9._0x9867e2,_0x4cbcc9._0x4cce39,0x5e8,0x5c2)];},async 'saveTokens'(_0x152b01){await updateStore(_0x47d1a5,_0x1207ba=>{_0x1207ba['tokens']=_0x152b01;});},async 'redirectToAuthorization'(_0x388e28){function _0x57b69d(_0x4b8dc9,_0x6f1e7e,_0x5edb24,_0x223a87){return _0x58bc92(_0x223a87,_0x6f1e7e-0x192,_0x5edb24-_0x26ec38._0x4423c5,_0x223a87-_0x26ec38._0x5c0ac4);}await _0x29b028[_0x57b69d(_0x30c4e1._0x2bb20d,_0x30c4e1._0x5e7dc8,_0x30c4e1._0x499399,_0x30c4e1._0x4bca0e)](_0x388e28);},async 'saveCodeVerifier'(_0x12bcd7){const _0x1bb8a5={_0x1c9714:0x66c,_0x1f49b2:0x5e4};await updateStore(_0x47d1a5,_0x213116=>{const _0x233592={_0x2464e7:0x3b4};function _0x4892d2(_0x4db81b,_0x413253,_0x45d78c,_0xc7ebca){return _0x1a55(_0x4db81b-_0x233592._0x2464e7,_0xc7ebca);}_0x213116[_0x4892d2(_0x1bb8a5._0x1c9714,_0x1bb8a5._0x1f49b2,0x71b,0x69a)]=_0x12bcd7;});},async 'codeVerifier'(){const _0x5ee3a4={_0x13a457:0x19d,_0x3ecbb8:0x11a},_0x159637=(await readStore(_0x47d1a5))[_0x47d1c9(0x7e,_0x117715._0x2a7c8b,-_0x117715._0x3b496f,0x2a)];function _0x47d1c9(_0x3918d6,_0x51f8a2,_0x2a5afc,_0x458947){return _0x58bc92(_0x458947,_0x51f8a2-_0x13a08a._0x7ca90a,_0x51f8a2-0x4f,_0x458947-0x194);}if(!_0x159637)throw new Error(_0x47d1c9(-_0x117715._0x340877,-_0x117715._0xafffdd,-_0x117715._0x47429e,0x61));function _0x33d354(_0x3abe09,_0xc80f88,_0x73a679,_0x3d45f7){return _0x58bc92(_0x3d45f7,_0xc80f88-_0x5ee3a4._0x13a457,_0xc80f88- -0xf3,_0x3d45f7-_0x5ee3a4._0x3ecbb8);}return _0x159637;},async 'invalidateCredentials'(_0x500610){await updateStore(_0x47d1a5,_0x4d5335=>{const _0xe5e1f4={_0xb4b469:0x323};(_0x500610===_0x52826a(_0x16c819._0x2df1a8,0x5b0,0x60a,_0x16c819._0x35c842)||_0x500610===_0x18ca96(_0x16c819._0x1487a5,-0x5b,-_0x16c819._0x518d0b,-_0x16c819._0x4889e2))&&(_0x4d5335[_0x52826a(0x4b4,_0x16c819._0x1232a7,_0x16c819._0xf29ab1,0x487)]=void 0x0);(_0x500610==='all'||_0x500610==='tokens')&&(_0x4d5335[_0x18ca96(-_0x16c819._0x50b344,-0x113,-_0x16c819._0x22807b,-_0x16c819._0x7a2ae2)]=void 0x0);function _0x18ca96(_0x4e3d3,_0x278534,_0xecd86d,_0x4c490d){return _0x1a55(_0xecd86d- -0x376,_0x4e3d3);}(_0x500610===_0x18ca96(-0x49,-_0x16c819._0x418eb0,-_0x16c819._0xd66895,-0xdd)||_0x500610===_0x52826a(_0x16c819._0x3d3694,_0x16c819._0x24d76d,0x54f,_0x16c819._0xff09dd))&&(_0x4d5335['codeVerifier']=void 0x0,_0x4d5335[_0x18ca96(-0x111,-_0x16c819._0x252940,-0x197,-0x22c)]=void 0x0);function _0x52826a(_0x295fea,_0x911300,_0x4e5ead,_0x426e40){return _0x1a55(_0x911300-_0xe5e1f4._0xb4b469,_0x295fea);}(_0x500610===_0x18ca96(-0x37,-0x5a,-_0x16c819._0xd66895,-0x199)||_0x500610===_0x52826a(0x683,0x5e5,0x5a4,_0x16c819._0x1cdd72))&&(_0x4d5335[_0x52826a(0x54b,0x55d,_0x16c819._0x4b2d07,0x534)]=void 0x0);});},async 'saveDiscoveryState'(_0x31ae64){const _0x461c72={_0x20cacc:0x22c},_0x188ae2={_0x51c827:0xa4};await updateStore(_0x47d1a5,_0x115d56=>{function _0x18f81c(_0x24289c,_0x50e02e,_0x10b225,_0x42f858){return _0x1a55(_0x50e02e- -_0x188ae2._0x51c827,_0x42f858);}_0x115d56[_0x18f81c(0x11d,0x196,_0x461c72._0x20cacc,0x20d)]=_0x31ae64;});},async 'discoveryState'(){return(await readStore(_0x47d1a5))['discoveryState'];}};}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(_0x2418a5,_0x29cb4f){const _0x57ff52={_0x5417b6:0x4e3},_0x370c64={_0x36a4e2:0x98},_0x4791ed={_0x5855ad:0x5b7,_0x3c0084:0x94};function _0x3c27f6(_0xf110e2,_0x4ff862,_0x43b4ad,_0x59063f){return _0xaab5df(_0xf110e2-0xec,_0xf110e2-_0x4791ed._0x5855ad,_0x43b4ad-_0x4791ed._0x3c0084,_0x43b4ad);}const _0x484f39=_0x127336=>_0x127336['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x5e9d1b(0x5da,0x66a,0x5a5,0x5b4)](/^_+|_+$/g,'');function _0x5e9d1b(_0x4089c1,_0x1d8e10,_0x45b06a,_0x274185){return _0x49a26f(_0x45b06a,_0x1d8e10-0x15b,_0x45b06a-_0x370c64._0x36a4e2,_0x4089c1-0x190);}return _0x3c27f6(0x4a1,0x44e,_0x57ff52._0x5417b6,0x540)+_0x484f39(_0x2418a5)+'_'+_0x484f39(_0x29cb4f);}function _0x3e54(){const _0x237954=['zNjVBq','qxnZAwDUvgfZAW','Dg9VBa','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','AxnbCNjHEq','tuLnrtOG','lMDPzG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Bwf4qNL0zxm','Dg9mB3DLCKnHC2u','l3vZCI9IAw4VCMC','CMCUzxHL','zxHPDcbJB2rLia','Cgf0DgvYBIbPCYbYzxf1AxjLza','ru5pru5u','ugf0AcbPCYbUB3qGysbMAwXLoIa','zxf1ywXZ','Bw9KzwW','AxngAwXL','B2zM','B2XKvgv4Da','BNv2Aw4','tunqihnLCNzLCIa','DhLWzq','yw5ZAti1nG','y2XVC2u','y2fJAgvK','lMPWzW','Dg9VBhm','lMPWzwC','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','nti2odu2wefusNr4','u0Lhs0Lmta','Aw1Hz2uVANbLzW','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','C2XPy2u','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','mte0mty5mMXdDMTAzW','l3vZCI9IAw4VyMfZAa','CMvWBgfJzq','uhjVz3jHBuzPBgvZkhG4nIK','Bg9JywXLq29TCgfYzq','qMvHCMvYia','yxjNCW','Bw9Kzq','xg5DkJ8','yxbPs2v5','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','vw5HDxrOB3jPEMvKrxjYB3i','mZu4otu1ne9zwKnvtG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4Gysb3B3jRC3bHy2uGzgLYzwn0B3j5lG','lu5Vtg9NBW','yxjYyxK','CMvHC29U','D2LUmZi','CNvUswq','zgvZy3jPChrPB24','Cgf0Aa','z2v0','B3bLBMfPlxjLC3bVBNnLCW','y29UzMLN','y3DK','Dg9VBenHBgXjza','C2vYDMvYCW','Dg9ju09tDhjPBMC','CMvSyxrPDMu','l2jPBI9YzW','DgHLBG','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','C3rYAw5NAwz5','C2v0','B2f1DgG','tg9HzfnRAwXS','CMvMCMvZAf90B2TLBG','C2vZC2LVBKLK','ChjVCgvYDgLLCW','y2fSBgjHy2TvCMW','Aw5WDxrty2HLBwe','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbZBYb0AguGBw9KzwWGy2fUigLUC3bLy3qGAxrZihzPC3vHBcbJB250zw50lIbtDxbWB3j0CYbqtKCSiePqruCSifDLyLaSigfUzcbhsuyGAw1Hz2vZlIbvC2uGDgHPCYbMB3iGC2nYzwvUC2HVDhmSigrPywDYyw1ZlcbWAg90B3mSigfUzcbVDgHLCIbPBwfNzsbMAwXLCZSGDxnLiezPBgvszwfKigzVCIb0zxH0igzPBgvZlG','CMvJB3jK','zMLUywXnzxnZywDLvgv4Da','B25Jzq','zgvMyxvSDen3za','AgfZ','ywDLBNrjza','BxrPBwu','yMLYDgH0Aw1L','lunVBw1HBMq','C3rKzxjY','AxneAxjLy3rVCNK','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','CMvXDwLYzwq','tuvesvvn','C291CMnL','zxH0BMfTzq','yMfZzty0','yxjNDw1LBNriAw50','y2XPzw50','BwvZC2fNzq','zxjYB3i','AwDUB3jLt3v0Chv0','vMLLD0zPBgu','CgfYC2u','y29UBMvJDgvK','B3jPz2LUywW','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','ls1JB2X1Bw4','v0vcua','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','BgLUzuvUza','qxzHAwXHyMXLignVBw1HBMrZoG','B3bLBMfPlxjLC3bVBNnLCY13CW','zgLZywjSzwq','y29TBwfUza','Dw5RBM93BG','BhnW','y29UC3rYDwn0B3i','C3rKAw8','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y29Kzq','mJq0odm1meTsEfvYvG','BxrPBwvnCW','qxv0Ag9YAxPHDgLVBG','qMfZAa','lu5VuhjVzMLSzq','DgfZA2TPBgW','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C2HLBgXqyxrO','ywDLBNrZ','twLJCM9ZB2z0','yxjNDw1LBNrZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','AxngAw5PDgu','Dgv4Da','B25szwrPCMvJDa','Aw5JBhvKzq','C3rHDgu','C3LTBgLUAW','BgLZDfrVB2XZ','q29TBwfUzcaN','y29Uy2f0','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','zgLYzwn0B3j5','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','B3jPz2LUvg9VBenHBgXjza','ig1HDgnO','tunqihrVB2WG','nZKWmtqWzKnUvgX2','AxrLBxm','rM91BMqG','yxjNDw1LBNrZvgv4Da','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','y2HHCKnVzgvbDa','rMLSzuvKAxq','Aw5JBhvKzxm','vw5RBM93BIb0B29SoIa','z2L0qNjHBMnO','ls0T','ChvZAa','DxbKyxrL','lNbUzW','tNv2Aw4','l2jPBI9IyxnO','C2vYDMvYtMfTzq','Aw5KzxHpzG','CMfUzg9T','zgvMyxvSDfrPBwvVDxrnCW','C2L6zq','zMLSzvbHDgG','Dhj1zwnVBg9Y','y2XPzw50sw5MB3jTyxrPB24','B2jQzwn0','z2XVyG','Dg9VBhmVy2fSBa','C3rHCNrZv2L0Aa','nda0mJa2tNvAyuz4','ienHDxnLoIa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','C3rKB3v0','zgf0yq','C29YDa','C3rVCMfNzurPCG','zw52','rMLSzu5LDW','AxntEw1IB2XPy0XPBMS','ywjVCNrLza','CgfZC3rOCM91z2G','r2XVyG','CgXHDgzVCM0','y2XPzw50x3nLy3jLDf9WB3n0','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','BMfTzq','CgLWzq','ls1NBg9I','BgvUz3rO','ls1MAwXLCW','C2LNBMfS','seLhsa','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','Dw5PB24','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zw5K','te9x','ls1OAwrKzw4','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','BNvTyMvY','C3jJl2fNzw50l2fNzw50lNrZ','C3vKBW','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','u0HfteW','l3vZCI9SB2nHBc9IAw4VCMC','zw51Bq','v2LUr2v0','yMvHCMvY','Bg9HzenVBw1HBMq','DhjPBq','CMvZDwX0','Bwf4','zMLSDgvY','lMPZB24','BgLTAxq','r3jLCa','Dg9Rzw5Z','w1bFxL1BxhnCu10QpW','CgXHAw4','cGPbuKDvtuvovfm6ia','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','zgLZy292zxj5u3rHDgu','lNDLyNa','Ec1HCgKTA2v5','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Cg9W','BMv3vgv4Da','DxjS','yM9VBgvHBG','rMLSzvjLywq','Aw1Hz2uVz2LM','C3vIyxjYyxK','A2LSBa','AgvHzgvYCW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','zw50CMLLCW','DgHPBMTPBMC','lw5i','C2vUza','Bg93','AM9PBG','yxnJAwK','y3jSzG','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','DgvZDa','BgLUzu51Bq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zw5HyMXLza','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','CMvXDwvZDa','DgfZAW','zgfYAW','zhj5uNvU','nZeYmtfwtuzhzNu','DhvWBgu','l29WDc9OB21LyNjLDY9IAw4VCMC','yM94zwq','ugfJA2fNzxm','AgLNAa','AxndB250zxH0','ls1MB2XSB3C','yxnZAwDU','AxnbyNnVBhv0zq','zMLSzq','o1TE','BgLUzvn0yxj0','CgfJA2fNzs5QC29U','DMvYAwzPzxi','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','y2fSBfrVB2W','zMfPBgvK','C3rYAxbbBNnP','y29UBMvJDa','BwfW','Aw5ZDhj1y3rPB25Z','yxv0Aa','lNrTCc4','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','ywXSB3DLzfrVB2XZ','yw5ZAte2','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','AxnfCNjVCG','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','rMLSzsb3CML0DgvUigf0ia','CNnZ','yw50AhjVCgLJlw1LC3nHz2vZ','BM9Uzq','DhjHBNnWB3j0','Aw1Hz2uVCg5N','yMfZzw5HBwu','C2HPzNq','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','Dg9tDhjPBMC','CgLK','y29UBMvJDgLVBG','y29TBwfUzhm','mc4WlJa','Dg9Rzw4','y29UDgvUDa','tg9HzgvKigzYB206ia','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','igzHAwXLzc4','BwLU','CMvZB2X2zq','ywXS','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','D2HPy2GGCMC','C2vYDMvY','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','y29ZDa','Bwf0y2HLCW','CgfYC2vjBNq','y2f0y2G','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','yxv0Ag9YAxPHDgLVBL9JB2rL','D2HLCMuGCMC','BgL0zxjHBa','BM93','u2L6ztOG','ChjLzML4','Aw1Hz2u','tgLUzsa','A2v5CW','uKLgrG','yxv0AfjLCxvPCMvK','D3jPDgu','Bg9HzfnRAwXS','DxrMoa','CMLWz3jLCa','vMLLD2vKigLTywDLigzPBgu6ia','B3b0Aw9UywW','BwnWxW','zxjYB3jnzxnZywDL','qwDLBNqGCNvUia','q29Tu3bLyW','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','mtaWmgHvz1L4yW','y2XPzw50twv0ywrHDgfvCMW','zgLYBMfTzq','Cgf0DgvYBG','BgLUzvrLEhq','qMfZzsbKAxjLy3rVCNK6ia','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','zMLUywXnzxnZywDL','y29KzvzLCMLMAwvY','AwDUB3jL','Dhj1BMm','yxv0BW','C3rYAw5N','C3bSAxq','BgLUzxm','u3rHCNrLzcbHz2vUDcbYDw4G','ls1NBg9IpseUz2L0lYO','yxjNDw1LBNroyw1LCW','zgLZy292zxj5','Aw50zwDLCG','y29TCgXLDgvK','u2TPBgWGjW','Agv4','r0LgodDH','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y29UDgv4Da','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','C3rHDhvZ','uhjVz3jHBuzPBgvZ','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','DgLTzw91De1Z','ig1Z','igzYB20G','BgLNAhq','C2TPBgXZ','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','Aw1Hz2uVD2vICa','t0zg','yM0Ynq'];_0x3e54=function(){return _0x237954;};return _0x3e54();}function isObject(_0x3c52b9){const _0x231fdb={_0x1c368a:0x1df,_0x131b6b:0x25e},_0x25975b={_0x53777b:0x12e,_0x1a2d09:0x3f3,_0x109217:0xba};function _0x325b1c(_0x3d7eda,_0x3d98c9,_0x26f68b,_0x285a84){return _0xaab5df(_0x3d7eda-_0x25975b._0x53777b,_0x3d7eda-_0x25975b._0x1a2d09,_0x26f68b-_0x25975b._0x109217,_0x3d98c9);}return typeof _0x3c52b9===_0x325b1c(0x234,_0x231fdb._0x1c368a,_0x231fdb._0x131b6b,0x1a8)&&_0x3c52b9!==null&&!Array['isArray'](_0x3c52b9);}function toSupportedSchema(_0x5a86f9){const _0x35cc0d={_0x54f730:0x282,_0x15b4dd:0x30b,_0x2b157e:0x3d2,_0x1ab022:0x2fd,_0x258abe:0x334,_0x3f3ac5:0x3dc,_0x1bf324:0x31e,_0x518890:0x36a,_0x51d5c2:0x2e0,_0x48f9f3:0x285,_0x3e60d8:0x309,_0x4df116:0x33c,_0x5dc466:0x323,_0x31b132:0x2a2,_0x3e1a6f:0x229,_0x69e9a3:0x284,_0x4d51ff:0x3c6,_0x32e96b:0x3a9,_0x1cefae:0x328,_0x1898ec:0x3b6,_0x491692:0x36c,_0x5d698d:0x41f,_0x5ccc72:0x151,_0x5a8cf3:0x17d,_0x16385c:0x268,_0xc0c9af:0x21f},_0x3bcc62={_0x4fddcb:0x422},_0x106385={_0x3098:0x3de};if(!isObject(_0x5a86f9))return void 0x0;if(_0x5a86f9[_0x5aca0a(0x2a5,0x2ce,_0x35cc0d._0x54f730,_0x35cc0d._0x15b4dd)]===_0x3f1bca(_0x35cc0d._0x2b157e,0x31d,_0x35cc0d._0x1ab022,_0x35cc0d._0x258abe))return{'type':_0x3f1bca(_0x35cc0d._0x3f3ac5,0x31d,0x3aa,0x2d6)};function _0x5aca0a(_0x5586c7,_0x3e8e06,_0x118004,_0x5cdb9b){return _0xaab5df(_0x5586c7-0x13e,_0x5cdb9b-_0x106385._0x3098,_0x118004-0x1c1,_0x3e8e06);}function _0x3f1bca(_0x9090f0,_0x1ec3cf,_0x15d35b,_0x3aff82){return _0xaab5df(_0x9090f0-0x10,_0x1ec3cf-_0x3bcc62._0x4fddcb,_0x15d35b-0x32,_0x15d35b);}if(_0x5a86f9['type']===_0x3f1bca(0x31e,0x285,0x306,0x2d8)||_0x5a86f9[_0x3f1bca(_0x35cc0d._0x1ab022,0x34f,0x363,_0x35cc0d._0x1bf324)]===_0x5aca0a(0x2e7,_0x35cc0d._0x518890,0x283,_0x35cc0d._0x51d5c2))return{'type':_0x3f1bca(0x2af,_0x35cc0d._0x48f9f3,_0x35cc0d._0x3e60d8,_0x35cc0d._0x4df116)};if(_0x5a86f9['type']==='boolean')return{'type':_0x3f1bca(_0x35cc0d._0x5dc466,_0x35cc0d._0x31b132,_0x35cc0d._0x3e1a6f,0x314)};if(_0x5a86f9[_0x3f1bca(0x3de,0x34f,0x375,0x3a7)]===_0x5aca0a(_0x35cc0d._0x69e9a3,_0x35cc0d._0x4d51ff,_0x35cc0d._0x32e96b,_0x35cc0d._0x1cefae))return{'type':_0x3f1bca(_0x35cc0d._0x1898ec,_0x35cc0d._0x491692,_0x35cc0d._0x5d698d,0x34e),'items':toSupportedSchema(_0x5a86f9[_0x5aca0a(_0x35cc0d._0x5ccc72,0x220,_0x35cc0d._0x5a8cf3,0x208)])??{'type':'string'}};if(_0x5a86f9['type']===_0x5aca0a(_0x35cc0d._0x16385c,0x27d,0x25f,_0x35cc0d._0xc0c9af))return toNuvinToolSchema(_0x5a86f9);return void 0x0;}function toNuvinToolSchema(_0x5757e8){const _0x1fcd45={_0x3ce3fe:0x15,_0x4ab421:0x2,_0x9c94a2:0x1b,_0x30c8fd:0x8e,_0x5d0026:0xce,_0x46d25a:0x19,_0x572965:0x9,_0x2848aa:0x14b,_0x1b7004:0xc2,_0x22d615:0xc1,_0x194432:0x72,_0x513602:0x29,_0x3e5fbd:0x60,_0x1a7b0b:0x84,_0x146229:0xff,_0x4b4da9:0xb6,_0x237821:0xf0,_0x47656:0x106,_0x10c6f6:0x107,_0x24c3d6:0x1ba,_0x3979b8:0x105,_0x49c39a:0x92,_0xc714c9:0x173},_0x4efffe={_0x192e63:0x135},_0x1df400={_0x42c998:0xb8};if(!isObject(_0x5757e8)||_0x5757e8[_0x364360(-_0x1fcd45._0x3ce3fe,_0x1fcd45._0x4ab421,-_0x1fcd45._0x9c94a2,-_0x1fcd45._0x30c8fd)]!=='object')return{'type':'object','properties':{}};function _0x364360(_0xd84dc0,_0x5c6c08,_0x24d34a,_0x5ee7df){return _0xaab5df(_0xd84dc0-0x1c2,_0x24d34a-_0x1df400._0x42c998,_0x24d34a-0x1ee,_0x5ee7df);}function _0x288d24(_0x4e391f,_0x464ebd,_0x24654b,_0x410e19){return _0x49a26f(_0x464ebd,_0x464ebd-_0x4efffe._0x192e63,_0x24654b-0x56,_0x4e391f- -0x249);}const _0x1a597b={},_0x37f39e=isObject(_0x5757e8['properties'])?_0x5757e8[_0x364360(_0x1fcd45._0x5d0026,0x4b,_0x1fcd45._0x46d25a,_0x1fcd45._0x572965)]:{};for(const [_0x1d12ff,_0x231b13]of Object[_0x288d24(_0x1fcd45._0x2848aa,_0x1fcd45._0x1b7004,_0x1fcd45._0x22d615,0x138)](_0x37f39e)){const _0x4b7a95=toSupportedSchema(_0x231b13);if(_0x4b7a95)_0x1a597b[_0x1d12ff]=_0x4b7a95;}const _0x3251a7=Array['isArray'](_0x5757e8[_0x364360(_0x1fcd45._0x194432,-0x4,_0x1fcd45._0x513602,-_0x1fcd45._0x3e5fbd)])?_0x5757e8[_0x364360(0x90,0x96,0x29,-_0x1fcd45._0x1a7b0b)][_0x288d24(0x134,_0x1fcd45._0x146229,0x147,0x95)](_0x2c392e=>typeof _0x2c392e===_0x364360(-0xd1,0xf,-0x4d,0x0)):void 0x0;return _0x3251a7?.[_0x364360(-0xa5,-_0x1fcd45._0x4b4da9,-_0x1fcd45._0x237821,-0x1b0)]?{'type':_0x364360(-0x83,-_0x1fcd45._0x47656,-_0x1fcd45._0x10c6f6,-_0x1fcd45._0x24c3d6),'properties':_0x1a597b,'required':_0x3251a7}:{'type':_0x288d24(_0x1fcd45._0x3979b8,0x18e,_0x1fcd45._0x49c39a,_0x1fcd45._0xc714c9),'properties':_0x1a597b};}function isJsonObject(_0x4fd631){const _0x312017={_0x1ada3f:0x390,_0x49eaaf:0x3cc};function _0x3ffc18(_0x2d263b,_0x1afe65,_0x505ad3,_0x4c4993){return _0xaab5df(_0x2d263b-0x184,_0x4c4993-0x4c2,_0x505ad3-0xd3,_0x2d263b);}return typeof _0x4fd631==='object'&&_0x4fd631!==null&&!Array[_0x3ffc18(_0x312017._0x1ada3f,0x387,_0x312017._0x49eaaf,0x3dc)](_0x4fd631);}function formatMcpContent(_0x20f8c9){const _0x297f80={_0x5e140e:0x2de,_0x9005c7:0x61f,_0x273083:0x138,_0x5b2cd7:0x189,_0x2b322e:0x160,_0x121d9a:0x1ea,_0x47ba85:0x18a,_0x42fc4f:0x713,_0x2e8e4f:0x6de,_0x3d2ba1:0x6ff},_0x3f2851={_0x2dba7a:0x109,_0xd1cf04:0x188,_0x469c65:0x1af},_0x37327f={_0x369b13:0x9a,_0x5f4a64:0x1d,_0x19992f:0x88,_0x3caf57:0x290,_0x32726b:0x181,_0x36b515:0x238,_0xba3e79:0x99,_0x58d7fd:0x62,_0x2c9f35:0xe4,_0xf016d5:0x108},_0x5d096c={_0x4d627e:0xe7,_0xaec263:0x5a},_0x572de6=Array[_0xdb10f4(_0x297f80._0x5e140e,0x30a,0x211,0x278)](_0x20f8c9[_0x570daf(0x58a,0x5ae,0x649,0x5e4)])?_0x20f8c9['content']:[];function _0x570daf(_0x299219,_0x4f5761,_0x2e3eca,_0x19b586){return _0x49a26f(_0x19b586,_0x4f5761-_0x5d096c._0x4d627e,_0x2e3eca-_0x5d096c._0xaec263,_0x2e3eca-0x276);}const _0x616278=_0x572de6['map'](_0x1eab84=>{const _0x3299b7={_0x571a8a:0x253},_0x3d9e3d={_0x5b7fcc:0x366};function _0x4f6e4b(_0x19b19f,_0x560b07,_0x320c76,_0x2ae558){return _0x570daf(_0x19b19f-0x171,_0x560b07-0x79,_0x2ae558- -_0x3d9e3d._0x5b7fcc,_0x19b19f);}if(!isObject(_0x1eab84))return'';function _0x4a8ddd(_0x40c37f,_0x25c827,_0x303234,_0x522dcb){return _0xdb10f4(_0x522dcb,_0x25c827-0x80,_0x303234-0x22,_0x303234- -_0x3299b7._0x571a8a);}if(_0x1eab84[_0x4a8ddd(0x94,_0x37327f._0x369b13,0x38,-0x6d)]===_0x4a8ddd(-0x33,-_0x37327f._0x5f4a64,-0xda,-_0x37327f._0x19992f)&&typeof _0x1eab84[_0x4f6e4b(0x2c9,_0x37327f._0x3caf57,_0x37327f._0x32726b,_0x37327f._0x36b515)]===_0x4a8ddd(0x4f,0x97,0x6,0xae))return _0x1eab84[_0x4a8ddd(-0x3b,-_0x37327f._0xba3e79,-0xda,-_0x37327f._0x58d7fd)];return JSON[_0x4a8ddd(0x27,_0x37327f._0x2c9f35,0x66,_0x37327f._0xf016d5)](_0x1eab84);})[_0x570daf(_0x297f80._0x9005c7,0x66e,0x5f3,0x561)](_0x4e6f4a=>_0x4e6f4a[_0x570daf(0x58c,0x56b,0x5db,0x5a8)]>0x0)[_0xdb10f4(_0x297f80._0x273083,_0x297f80._0x5b2cd7,_0x297f80._0x2b322e,_0x297f80._0x121d9a)]('\x0a');function _0xdb10f4(_0x4a7a78,_0x1dc2ca,_0x4cf622,_0x5129f1){return _0x49a26f(_0x4a7a78,_0x1dc2ca-_0x3f2851._0x2dba7a,_0x4cf622-_0x3f2851._0xd1cf04,_0x5129f1- -_0x3f2851._0x469c65);}if(_0x616278[_0xdb10f4(0x1fd,_0x297f80._0x47ba85,0x13b,0x1b6)]>0x0)return _0x616278;return JSON[_0x570daf(_0x297f80._0x42fc4f,0x6f3,_0x297f80._0x2e8e4f,_0x297f80._0x3d2ba1)](_0x20f8c9,null,0x2);}function _0x1a55(_0x1b47a9,_0x2aa92f){_0x1b47a9=_0x1b47a9-0x1bf;const _0x3e5410=_0x3e54();let _0x1a554a=_0x3e5410[_0x1b47a9];if(_0x1a55['jLrDSr']===undefined){var _0x12a2ce=function(_0x317fb2){const _0x41ccd2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4299d8='',_0x5a08fe='';for(let _0x415d43=0x0,_0x40bd16,_0x2db43f,_0x2b20f7=0x0;_0x2db43f=_0x317fb2['charAt'](_0x2b20f7++);~_0x2db43f&&(_0x40bd16=_0x415d43%0x4?_0x40bd16*0x40+_0x2db43f:_0x2db43f,_0x415d43++%0x4)?_0x4299d8+=String['fromCharCode'](0xff&_0x40bd16>>(-0x2*_0x415d43&0x6)):0x0){_0x2db43f=_0x41ccd2['indexOf'](_0x2db43f);}for(let _0x4bc696=0x0,_0x2c54d1=_0x4299d8['length'];_0x4bc696<_0x2c54d1;_0x4bc696++){_0x5a08fe+='%'+('00'+_0x4299d8['charCodeAt'](_0x4bc696)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a08fe);};_0x1a55['cTrNTo']=_0x12a2ce,_0x1a55['FpcCdE']={},_0x1a55['jLrDSr']=!![];}const _0x2eca5d=_0x3e5410[0x0],_0x3d570a=_0x1b47a9+_0x2eca5d,_0x5ee8a8=_0x1a55['FpcCdE'][_0x3d570a];return!_0x5ee8a8?(_0x1a554a=_0x1a55['cTrNTo'](_0x1a554a),_0x1a55['FpcCdE'][_0x3d570a]=_0x1a554a):_0x1a554a=_0x5ee8a8,_0x1a554a;}function _0xaab5df(_0x3e0b05,_0x37eba3,_0xc8bfdb,_0xddb749){const _0x132485={_0x23bd2a:0x3c1};return _0x1a55(_0x37eba3- -_0x132485._0x23bd2a,_0xddb749);}function createMcpTool(_0x158872){const _0x2a932a={_0x293872:0x383,_0x17cb4d:0x401,_0x44639d:0x437,_0x474757:0x78,_0x4d0e3e:0x178,_0x4743c7:0xc9,_0x1ae034:0x119,_0x24936e:0x12b,_0x5aa0b7:0x108,_0x160960:0xa4,_0x29a342:0x53,_0x5383c7:0x38d,_0x447810:0x380,_0x423b91:0x458,_0x3650a6:0xaa,_0x4c6c60:0x29,_0x4c65c1:0x1af,_0x12a202:0x109},_0x35217c={_0x21682b:0x2d,_0x20d448:0x1d,_0x5b9784:0xb8,_0x36f17a:0xeb,_0x4e432e:0xb9,_0x36b596:0x10d,_0x4a11b8:0x180,_0x1afd05:0xdf,_0x17feeb:0x4a,_0x3b77bf:0x23,_0x5643e0:0x7c,_0x1a83c2:0x2ae,_0x82c97:0x2d6,_0x5a017b:0x337,_0x4d8fb4:0x30b,_0x322391:0xa3,_0x15ebb2:0xa8},_0x4cd7d9={_0x4fa920:0x1e2},_0x4c5415={_0x134469:0xea,_0x49e2f7:0x1f0},_0x16f191={_0x9354c:0x50c,_0x5f25e2:0x88};function _0x2b0576(_0x4e3937,_0xc6bc37,_0x47fefc,_0x53b03e){return _0xaab5df(_0x4e3937-0x14f,_0x47fefc-_0x16f191._0x9354c,_0x47fefc-_0x16f191._0x5f25e2,_0x4e3937);}const _0x4265ba=createMcpToolName(_0x158872[_0x2b0576(0x3a6,0x342,0x345,_0x2a932a._0x293872)],_0x158872[_0x2b0576(_0x2a932a._0x17cb4d,0x47c,0x424,_0x2a932a._0x44639d)][_0x2b0576(0x3bf,0x3b0,0x361,0x38f)]);function _0x41e8c2(_0x53e97f,_0x44e045,_0x50b52d,_0x4ff0f9){return _0xaab5df(_0x53e97f-_0x4c5415._0x134469,_0x50b52d-_0x4c5415._0x49e2f7,_0x50b52d-0x17,_0x44e045);}return defineTool({'name':_0x4265ba,'description':_0x158872[_0x41e8c2(_0x2a932a._0x474757,0x11a,0x108,_0x2a932a._0x4d0e3e)][_0x41e8c2(_0x2a932a._0x4743c7,0x12d,0x13e,0x16c)]??_0x41e8c2(0x20,0x5b,0x18,0x35)+_0x158872[_0x41e8c2(_0x2a932a._0x1ae034,_0x2a932a._0x24936e,_0x2a932a._0x5aa0b7,_0x2a932a._0x160960)][_0x41e8c2(0xb1,_0x2a932a._0x29a342,0x45,0xa2)]+_0x2b0576(_0x2a932a._0x5383c7,_0x2a932a._0x447810,0x41b,_0x2a932a._0x423b91)+_0x158872[_0x41e8c2(0x67,_0x2a932a._0x3650a6,_0x2a932a._0x4c6c60,0xe9)],'inputSchema':toNuvinToolSchema(_0x158872['tool'][_0x41e8c2(_0x2a932a._0x4c65c1,_0x2a932a._0x12a202,0x153,0x107)]),async *'execute'(_0x271c4d){const _0x171e3c={_0x2e96b3:0x2d},_0x43e92d=await _0x158872[_0x2379a6(0x92,_0x35217c._0x21682b,-_0x35217c._0x20d448,-0x6a)][_0x2379a6(-0x7d,-_0x35217c._0x5b9784,-_0x35217c._0x36f17a,-_0x35217c._0x4e432e)]({'name':_0x158872['tool'][_0x2379a6(-0x11b,-0x1af,-0x13f,-0x183)],'arguments':isJsonObject(_0x271c4d)?_0x271c4d:{}});if(_0x43e92d[_0x2379a6(-_0x35217c._0x36b596,-_0x35217c._0x4a11b8,-_0x35217c._0x1afd05,-_0x35217c._0x17feeb)])throw new ToolExecutionError(formatMcpContent(_0x43e92d),{'serverName':_0x158872['serverName'],'toolName':_0x158872[_0x2379a6(-0x3f,-_0x35217c._0x3b77bf,-_0x35217c._0x5643e0,-0x135)][_0x1db3ca(_0x35217c._0x1a83c2,_0x35217c._0x82c97,0x229,0x32a)]});yield createToolOutput(formatMcpContent(_0x43e92d),{'serverName':_0x158872[_0x1db3ca(0x292,_0x35217c._0x5a017b,0x245,_0x35217c._0x4d8fb4)],'toolName':_0x158872['tool'][_0x2379a6(-_0x35217c._0x322391,-_0x35217c._0x15ebb2,-0x13f,-0xdd)],'result':_0x43e92d});function _0x1db3ca(_0x513209,_0x465bff,_0x508317,_0x2ce658){return _0x2b0576(_0x2ce658,_0x465bff-_0x4cd7d9._0x4fa920,_0x513209- -0xb3,_0x2ce658-0x19a);}function _0x2379a6(_0x3e9bae,_0x549cf2,_0x418439,_0x2b7d0e){return _0x41e8c2(_0x3e9bae-_0x171e3c._0x2e96b3,_0x2b7d0e,_0x418439- -0x184,_0x2b7d0e-0x161);}return void 0x0;}});}function resolvePrefix(_0x2ee614,_0x4993f4){const _0x463af0={_0x2637ef:0x1a8,_0x109f53:0x1e7},_0xcccf9b={_0xcc4d1d:0x34,_0x4e78e3:0x2ca,_0x2ab9b9:0x127};function _0x4d4910(_0x494971,_0x2ad871,_0x11858b,_0x3d158c){return _0xaab5df(_0x494971-_0xcccf9b._0xcc4d1d,_0x494971-_0xcccf9b._0x4e78e3,_0x11858b-_0xcccf9b._0x2ab9b9,_0x3d158c);}return _0x4993f4[_0x4d4910(_0x463af0._0x2637ef,0x185,0x1f8,_0x463af0._0x109f53)]??_0x2ee614;}function buildMcpHttpHeaders(_0x164337){const _0x2d2869={_0x1bbe6d:0x17,_0x580115:0x23,_0x1135cc:0x54,_0x1ca204:0x44,_0x403bea:0x8e,_0x2f0000:0x20,_0x250203:0x2f,_0x4bd66:0x90,_0x1e47dc:0xcc,_0x5c4a5e:0x71,_0x7b4dff:0x98,_0x260f55:0x3e,_0x144af7:0x2,_0x1eb4ca:0x117,_0x1e4eaf:0x94,_0x3bf0a1:0x133,_0x3913dc:0xb1,_0x246ac9:0x31,_0x14f63c:0x39,_0x549a3c:0x5,_0x829d8e:0x38},_0xafca00={_0x191c1a:0x26,_0x47a7bb:0xc2},_0x3e0e08={_0x50b84c:0x144,_0x1d8c1f:0x499},_0x196f17={..._0x164337[_0x39da34(_0x2d2869._0x1bbe6d,-_0x2d2869._0x580115,_0x2d2869._0x1135cc,-0x61)]??{}};_0x164337['auth']?.[_0x39da34(_0x2d2869._0x1ca204,0x85,-0x1c,_0x2d2869._0x403bea)]===_0x39da34(0x39,-0x3d,_0x2d2869._0x2f0000,-0xf2)&&_0x164337[_0x39da34(-0x37,0x7,_0x2d2869._0x250203,-_0x2d2869._0x4bd66)][_0x39da34(_0x2d2869._0x1e47dc,0x1d,-0x44,0x4e)]&&_0x196f17[_0x39da34(-_0x2d2869._0x5c4a5e,-_0x2d2869._0x7b4dff,-0xb9,-0x3c)]===void 0x0&&(_0x196f17[_0x39da34(-_0x2d2869._0x260f55,-0x98,_0x2d2869._0x144af7,-_0x2d2869._0x1eb4ca)]=_0x39da34(_0x2d2869._0x1e4eaf,0x98,0x62,_0x2d2869._0x3bf0a1)+_0x164337[_0x39da34(-0x4,0x7,0x61,-_0x2d2869._0x3913dc)]['token']);function _0x4e7071(_0x4e9d28,_0x5879cb,_0xaf1b60,_0x40b1b2){return _0x49a26f(_0x5879cb,_0x5879cb-0x94,_0xaf1b60-_0x3e0e08._0x50b84c,_0x4e9d28- -_0x3e0e08._0x1d8c1f);}function _0x39da34(_0x20314d,_0x28d5d3,_0x34248f,_0x52b454){return _0xaab5df(_0x20314d-_0xafca00._0x191c1a,_0x28d5d3-0x158,_0x34248f-_0xafca00._0x47a7bb,_0x20314d);}return Object[_0x39da34(-_0x2d2869._0x246ac9,_0x2d2869._0x14f63c,-0x2c,-0x19)](_0x196f17)[_0x39da34(0x2d,-0x50,_0x2d2869._0x549a3c,_0x2d2869._0x829d8e)]>0x0?_0x196f17:void 0x0;}function getErrorMessage(_0x30c833){const _0x3fdeec={_0x36f59f:0x58b,_0x3c0f37:0x475},_0x304b20={_0x201f28:0x46,_0x3f0eca:0x59c};function _0x2df006(_0xab49c2,_0x5b0e54,_0x579140,_0x3baf6a){return _0xaab5df(_0xab49c2-_0x304b20._0x201f28,_0xab49c2-_0x304b20._0x3f0eca,_0x579140-0x24,_0x3baf6a);}return _0x30c833 instanceof Error?_0x30c833[_0x2df006(0x514,0x586,_0x3fdeec._0x36f59f,_0x3fdeec._0x3c0f37)]:String(_0x30c833);}function isUnauthorizedError(_0x246085){const _0x34622e={_0x40ff94:0x99,_0x164e59:0x46,_0x561425:0x140,_0x557748:0x182},_0x3f44fb={_0x5f05f9:0x1aa};function _0xcd8b02(_0x531913,_0x125223,_0x29600e,_0x1fb0a4){return _0x49a26f(_0x29600e,_0x125223-0x1c7,_0x29600e-0x58,_0x1fb0a4-0x1f7);}function _0x280d69(_0x39c44e,_0xbfbfaf,_0x59ff18,_0x35ef81){return _0xaab5df(_0x39c44e-_0x3f44fb._0x5f05f9,_0x59ff18-0x23c,_0x59ff18-0x18e,_0xbfbfaf);}return _0x246085 instanceof Error&&_0x246085[_0x280d69(0x81,_0x34622e._0x40ff94,_0x34622e._0x164e59,0x23)]['name']===_0x280d69(0x181,_0x34622e._0x561425,_0x34622e._0x557748,0x167);}async function connectMcpServer(_0x15dec4,_0x229aae,_0x288444){const _0x5dcb70={_0xabef:0x27f,_0x11b5e7:0x310,_0x3455b3:0x2cd,_0x584fa1:0x329,_0x4eea48:0x250,_0x4a1e13:0x29d,_0x589325:0x174,_0x40e6b5:0x32a,_0x11ac44:0x1af,_0x2d5a45:0x285,_0x2bd966:0x252,_0x466034:0x20a,_0x3a12e8:0x27b,_0x1d309e:0x262,_0x3fb282:0x2e9,_0x531386:0x334,_0x26e4ca:0x35b,_0x212f6c:0x204,_0x128ee7:0x27b,_0x26bdca:0x2b8,_0x41dbc2:0x29b,_0x170ef7:0x221,_0x3c9790:0x2c5,_0x347197:0x2fb,_0x50d898:0x2e9,_0x401331:0x2bc,_0x277584:0x373,_0x2e02df:0x258,_0x26ec40:0x26e,_0x518f83:0x1a3,_0x402fbe:0x238,_0x44c6c7:0x199,_0x250774:0x2a7,_0xbf2b67:0x36b,_0x521a81:0x28b,_0x4f3000:0x328,_0x40dfcc:0x2a1,_0x57d087:0x205,_0x1533db:0x352,_0x30ce38:0x1c6,_0x4f3b14:0x289},_0x17dbba={_0x2c27df:0x172,_0x4a61f8:0x1f9},_0x260d4a={_0x1c74c7:0x38,_0x1d16b6:0xef,_0xa19a49:0x183},_0x2f6438={_0xd29010:0x44f,_0x3b0ab3:0x414,_0x1e698e:0x4a5,_0x13c344:0x3c2},_0x35fe8e={_0x286053:0x53,_0x7743b0:0x1f3},_0xffcf71={_0x15e4f0:0x11},_0x4d8683={_0x55b51a:0x97,_0x37580b:0x181},_0x19d5fa={_0x1d140c:0xa3,_0x33bec3:0x3fe,_0x344ebe:0x10b};function _0x4ef8d5(_0x5922b9,_0xcb188c,_0x144ad0,_0x52a725){return _0xaab5df(_0x5922b9-_0x19d5fa._0x1d140c,_0x52a725-_0x19d5fa._0x33bec3,_0x144ad0-_0x19d5fa._0x344ebe,_0xcb188c);}function _0x1d71f2(_0x25477f,_0x10a12e,_0x294651,_0x36714c){return _0x49a26f(_0x25477f,_0x10a12e-_0x4d8683._0x55b51a,_0x294651-0x18b,_0x36714c- -_0x4d8683._0x37580b);}const _0x47d16a=new Client({'name':_0x4ef8d5(_0x5dcb70._0xabef,_0x5dcb70._0x11b5e7,_0x5dcb70._0x3455b3,_0x5dcb70._0x584fa1),'version':_0x1d71f2(0x20d,0x299,0x1cb,_0x5dcb70._0x4eea48)});if(_0x229aae[_0x1d71f2(0x26a,0x1f8,0x2d0,0x247)]==='http'||_0x229aae[_0x1d71f2(_0x5dcb70._0x4a1e13,_0x5dcb70._0x589325,0x1e0,0x20b)]){if(!_0x229aae['url'])throw new Error(_0x4ef8d5(0x3bf,0x303,0x3e6,_0x5dcb70._0x40e6b5)+_0x15dec4+_0x4ef8d5(_0x5dcb70._0x11ac44,0x26a,_0x5dcb70._0x2d5a45,_0x5dcb70._0x2bd966));if(_0x229aae['auth']?.[_0x1d71f2(_0x5dcb70._0x466034,0x2bc,_0x5dcb70._0x3a12e8,0x2b9)]===_0x1d71f2(_0x5dcb70._0x4a1e13,0x22b,_0x5dcb70._0x1d309e,_0x5dcb70._0x3fb282)&&!_0x288444?.[_0x4ef8d5(0x3a1,_0x5dcb70._0x531386,0x31b,_0x5dcb70._0x26e4ca)])throw new Error(_0x1d71f2(_0x5dcb70._0x212f6c,_0x5dcb70._0x128ee7,0x259,_0x5dcb70._0x26bdca)+_0x15dec4+_0x4ef8d5(0x1fd,0x2ab,_0x5dcb70._0x41dbc2,_0x5dcb70._0x170ef7));const _0x2bfa2a=buildMcpHttpHeaders(_0x229aae),_0x3a3e6d=_0x229aae[_0x1d71f2(_0x5dcb70._0x3c9790,0x1c8,0x2b2,0x23b)]?.['type']===_0x1d71f2(0x2fe,0x32f,0x2a5,0x2e9)&&_0x288444?.[_0x1d71f2(0x37b,0x2eb,_0x5dcb70._0x347197,_0x5dcb70._0x50d898)]?createMcpOAuthProvider({'serverName':_0x15dec4,'callbackUrl':_0x288444['oauth'][_0x1d71f2(0x35d,_0x5dcb70._0x401331,0x361,0x2ee)],'storageDir':_0x288444[_0x1d71f2(0x30e,0x27b,_0x5dcb70._0x277584,0x2e9)][_0x4ef8d5(0x211,_0x5dcb70._0x2e02df,0x1fb,0x249)],'config':_0x229aae['auth'],'onRedirect':_0x1cf7b8=>_0x288444[_0x4ef8d5(0x30e,0x345,0x2e9,0x35b)]?.['onRedirect'](_0x15dec4,_0x1cf7b8)}):void 0x0,_0x1a48ca=new StreamableHTTPClientTransport(new URL(_0x229aae[_0x1d71f2(0x2b1,0x298,0x1c9,0x20b)]),{'authProvider':_0x3a3e6d,'requestInit':_0x2bfa2a?{'headers':_0x2bfa2a}:void 0x0});await _0x47d16a[_0x1d71f2(_0x5dcb70._0x26ec40,0x1f3,_0x5dcb70._0x518f83,_0x5dcb70._0x402fbe)](_0x1a48ca);}else{if(!_0x229aae[_0x4ef8d5(_0x5dcb70._0x44c6c7,_0x5dcb70._0x250774,0x178,0x205)])throw new Error(_0x4ef8d5(_0x5dcb70._0xbf2b67,_0x5dcb70._0x2d5a45,_0x5dcb70._0x521a81,_0x5dcb70._0x40e6b5)+_0x15dec4+_0x4ef8d5(0x29b,0x3c5,_0x5dcb70._0x4f3000,0x305));const _0x4b9ee8=new StdioClientTransport({'command':_0x229aae[_0x4ef8d5(_0x5dcb70._0x40dfcc,0x2bb,0x2b2,_0x5dcb70._0x57d087)],'args':_0x229aae[_0x4ef8d5(0x2a8,0x3b8,_0x5dcb70._0x1533db,0x33f)]??[],'env':_0x229aae[_0x4ef8d5(_0x5dcb70._0x30ce38,0x2ae,_0x5dcb70._0x4f3b14,0x24a)]});await _0x47d16a['connect'](_0x4b9ee8);}return{async 'listTools'(){return await _0x47d16a['listTools']();},async 'callTool'(_0x5b3d15){function _0x745e25(_0x5a17a6,_0x9d64,_0x181e6e,_0x592ea5){return _0x1d71f2(_0x9d64,_0x9d64-0x75,_0x181e6e-_0xffcf71._0x15e4f0,_0x592ea5- -0x196);}function _0x28ba38(_0x1a1f5b,_0x278df4,_0x3ef00a,_0x11b119){return _0x1d71f2(_0x11b119,_0x278df4-_0x35fe8e._0x286053,_0x3ef00a-0x18d,_0x3ef00a-_0x35fe8e._0x7743b0);}return await _0x47d16a[_0x28ba38(0x394,_0x2f6438._0xd29010,_0x2f6438._0x3b0ab3,_0x2f6438._0x1e698e)]({'method':_0x28ba38(0x36d,0x3af,_0x2f6438._0x13c344,0x45d),'params':_0x5b3d15},CallToolResultSchema);},async 'close'(){function _0x53af1c(_0x5cf467,_0x4b86e9,_0x101566,_0x1965d0){return _0x4ef8d5(_0x5cf467-_0x260d4a._0x1c74c7,_0x5cf467,_0x101566-_0x260d4a._0x1d16b6,_0x101566- -_0x260d4a._0xa19a49);}await _0x47d16a[_0x53af1c(0x174,_0x17dbba._0x2c27df,0x1aa,_0x17dbba._0x4a61f8)]();}};}async function createMcpToolsFromServers(_0x36bd27){const _0xb9c35c={_0x4e70d6:0x61,_0x23a6c5:0x41,_0x336eb9:0x3e,_0x5dc465:0x10c,_0x2d01dc:0xea,_0x470715:0x23,_0x44b7ed:0x4a,_0x3f473d:0x43,_0x53f623:0x16,_0x32897e:0x1,_0x17060d:0x42,_0x10f2c4:0xa8,_0x5b01e4:0x78,_0x149c88:0x4e7,_0x5e0591:0x3fc,_0x217d50:0x44b,_0x489ea6:0x78,_0x572423:0x13a,_0x36bedd:0x134,_0x3ce271:0x14f,_0x39c073:0xf0,_0x4237d5:0x9a,_0x386c41:0x1e,_0x501b3d:0x56,_0x2468ab:0xa3,_0x478497:0x130,_0x39695d:0x177},_0x1ca825={_0x2f6376:0x531,_0x16046c:0x5ae},_0x1323f8={_0x5ee78b:0x15},_0x3ae43e={_0x21c5b7:0x66},_0x2dbce1={_0x8b2e6b:0xb9,_0x28e86e:0x1b7,_0x550e7a:0x67},_0x114d9b={_0x258eab:0x146},_0x3f5fe0=_0x36bd27[_0x422b13(0xf9,0x63,0x10d,_0xb9c35c._0x4e70d6)]??connectMcpServer,_0xc04eba=[],_0xfe67f3={};function _0x3e6c17(_0x36928b,_0x330883,_0x185248,_0x284268){return _0xaab5df(_0x36928b-_0x114d9b._0x258eab,_0x284268-0x5f6,_0x185248-0x67,_0x36928b);}function _0x422b13(_0xce5233,_0x3c5328,_0x46653c,_0x5fda69){return _0xaab5df(_0xce5233-_0x2dbce1._0x8b2e6b,_0x3c5328-_0x2dbce1._0x28e86e,_0x46653c-_0x2dbce1._0x550e7a,_0x46653c);}const _0x1b383c=[];for(const [_0x2140ee,_0x5a902e]of Object[_0x422b13(-_0xb9c35c._0x23a6c5,_0xb9c35c._0x336eb9,0x1d,-0x46)](_0x36bd27[_0x422b13(0x14b,_0xb9c35c._0x5dc465,0xc9,_0xb9c35c._0x2d01dc)]??{})){if(_0x5a902e[_0x422b13(_0xb9c35c._0x470715,_0xb9c35c._0x44b7ed,0xc3,_0xb9c35c._0x4e70d6)]===![]){_0xfe67f3[_0x2140ee]={'status':_0x422b13(-0x2d,-_0xb9c35c._0x3f473d,_0xb9c35c._0x53f623,-0x90)};continue;}try{const _0x347628=await _0x3f5fe0(_0x2140ee,_0x5a902e,_0x36bd27[_0x422b13(-0x40,0x79,0xe1,-_0xb9c35c._0x32897e)]);_0xc04eba[_0x422b13(0x5d,-0x15,_0xb9c35c._0x17060d,-_0xb9c35c._0x10f2c4)](_0x347628);const _0x46cb4c=await _0x347628[_0x422b13(0x6a,-0x29,-0x6a,_0xb9c35c._0x5b01e4)]();let _0x10d41f=0x0;for(const _0x256f2e of _0x46cb4c[_0x422b13(0x59,0xe9,0x72,0x167)]){const _0x42b6e3=_0x36bd27[_0x3e6c17(0x518,_0xb9c35c._0x149c88,0x479,0x4a8)]?.[_0x2140ee]?.[_0x256f2e[_0x3e6c17(0x430,_0xb9c35c._0x5e0591,0x3f6,_0xb9c35c._0x217d50)]];if(_0x42b6e3===![])continue;_0x10d41f+=0x1,_0x1b383c[_0x422b13(0xab,-0x15,-0x70,-_0xb9c35c._0x489ea6)](createMcpTool({'serverName':resolvePrefix(_0x2140ee,_0x5a902e),'tool':_0x256f2e,'client':_0x347628}));}_0xfe67f3[_0x2140ee]={'status':_0x422b13(_0xb9c35c._0x572423,_0xb9c35c._0x36bedd,0x176,_0xb9c35c._0x3ce271),'toolCount':_0x10d41f};}catch(_0x584ad1){_0xfe67f3[_0x2140ee]=isUnauthorizedError(_0x584ad1)?{'status':_0x422b13(_0xb9c35c._0x39c073,_0xb9c35c._0x4237d5,-_0xb9c35c._0x386c41,_0xb9c35c._0x501b3d),'message':getErrorMessage(_0x584ad1)}:{'status':_0x422b13(_0xb9c35c._0x2468ab,_0xb9c35c._0x478497,0xcb,_0xb9c35c._0x39695d),'message':getErrorMessage(_0x584ad1)};}}return{'tools':_0x1b383c,'servers':_0xfe67f3,async 'close'(){function _0x54985d(_0x54d6b4,_0x5c9e2d,_0x150c1f,_0x36fbd0){return _0x3e6c17(_0x150c1f,_0x5c9e2d-0x59,_0x150c1f-0x89,_0x5c9e2d-_0x3ae43e._0x21c5b7);}function _0x1d6915(_0x45bcf8,_0x55262e,_0x392472,_0x43d739){return _0x3e6c17(_0x43d739,_0x55262e-0x43,_0x392472-_0x1323f8._0x5ee78b,_0x55262e-0x99);}await Promise['all'](_0xc04eba[_0x1d6915(0x58e,0x53c,_0x1ca825._0x2f6376,_0x1ca825._0x16046c)](_0x12c31d=>_0x12c31d[_0x1d6915(0x66f,0x5be,0x675,0x66e)]()));}};}function getCommand(_0x2d6f28){const _0x259e69={_0x3b6c22:0x5d8,_0x297827:0x5af,_0x3d58ef:0x6a7,_0x406d93:0x674,_0x1418dd:0x2e6,_0x12bb5e:0x669,_0x2d8126:0x5b3,_0x253a39:0x68a,_0x5c765b:0x302,_0x28a283:0x424},_0x14e145={_0x285113:0x56a,_0x1a5d2b:0x1bd},_0x46d979={_0x26487b:0x1ee,_0x18a9d4:0x9b};function _0x230f16(_0x5214bd,_0x168e60,_0x86aca5,_0x454114){return _0x49a26f(_0x5214bd,_0x168e60-_0x46d979._0x26487b,_0x86aca5-_0x46d979._0x18a9d4,_0x168e60-0x261);}function _0x2477cf(_0xf5463c,_0x10b492,_0x4d410c,_0x46e96b){return _0xaab5df(_0xf5463c-0x12e,_0x10b492-_0x14e145._0x285113,_0x4d410c-_0x14e145._0x1a5d2b,_0xf5463c);}if(_0x2d6f28&&typeof _0x2d6f28===_0x230f16(_0x259e69._0x3b6c22,_0x259e69._0x297827,0x528,0x5f3)&&!Array[_0x230f16(0x65c,0x688,_0x259e69._0x3d58ef,_0x259e69._0x406d93)](_0x2d6f28)&&typeof _0x2d6f28[_0x2477cf(0x303,0x371,_0x259e69._0x1418dd,0x3c9)]===_0x230f16(0x5c3,_0x259e69._0x12bb5e,_0x259e69._0x2d8126,_0x259e69._0x253a39))return _0x2d6f28[_0x2477cf(0x33a,0x371,_0x259e69._0x5c765b,_0x259e69._0x28a283)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x49a26f(0x294,0x34d,0x376,0x326),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0xaab5df(-0x8c,-0xbb,-0xe5,-0x134),_0x49a26f(0x3f7,0x3be,0x333,0x3b3),_0xaab5df(-0x156,-0x19c,-0x1f1,-0x234),_0xaab5df(-0xd3,-0x16c,-0x207,-0x149),_0x49a26f(0x486,0x4c1,0x43c,0x42a),'src/agent/extension-registry.ts',_0xaab5df(-0x141,-0x188,-0x1af,-0x196),_0x49a26f(0x34f,0x376,0x33a,0x393),_0x49a26f(0x3a2,0x3db,0x489,0x441),'src/agent/turn-engine.ts','src/shared/types.ts',_0xaab5df(-0x62,-0xc6,-0xd8,-0x158),'src/models/anthropic-model.ts',_0xaab5df(-0x114,-0x16e,-0x201,-0x10d),_0xaab5df(-0x4e,-0x10b,-0x18f,-0xa0)][_0x49a26f(0x403,0x432,0x360,0x399)]('\x0a'),SHELL_EXEC_TOOL={'name':_0xaab5df(-0x1bc,-0x1ef,-0x23c,-0x141),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':'object','properties':{'command':{'type':_0x49a26f(0x378,0x34c,0x3ff,0x408)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x58ca38){return{'output':_0x58ca38,'structured':{'value':_0x58ca38}};}function createUnknownToolResult(_0x38cfe9){const _0x435d1c={_0x2aebb1:0x96,_0x4d9075:0xef,_0x233edb:0x7c,_0x50bd40:0x15,_0x28aa77:0xc6},_0x304fae={_0x5094d9:0x107,_0x5e9a1f:0x194},_0x301ec5={_0x1147c0:0x31};function _0x16c556(_0x5bafb0,_0x41c3af,_0x52e733,_0x4cd5dc){return _0x49a26f(_0x5bafb0,_0x41c3af-0xee,_0x52e733-_0x301ec5._0x1147c0,_0x4cd5dc- -0x397);}function _0x4605e1(_0x4fa02f,_0x5b6d27,_0x4a5359,_0x1a6599){return _0x49a26f(_0x4a5359,_0x5b6d27-_0x304fae._0x5094d9,_0x4a5359-_0x304fae._0x5e9a1f,_0x1a6599- -0x353);}return{'callId':_0x38cfe9['id'],'toolName':_0x38cfe9['name'],'status':_0x16c556(0x15d,0x10e,_0x435d1c._0x2aebb1,_0x435d1c._0x4d9075),'output':_0x4605e1(_0x435d1c._0x233edb,0x93,0x12,-_0x435d1c._0x50bd40)+_0x38cfe9[_0x16c556(-0x45,-_0x435d1c._0x28aa77,0x8,-0x35)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x2019ef,_0x209d49){return{'callId':_0x2019ef['id'],'toolName':_0x2019ef['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x2019ef['input']),'exitCode':0x0},'chunks':[_0x209d49],'meta':createMeta()};}function createMockToolRuntime(){const _0x296f2e={_0x10fa23:0x20a,_0x19293d:0x252},_0x43cdd2={_0x2383da:0x4de},_0x42b3f6=async(_0x1120d3,_0x39ce1d)=>{const _0x4b9d10={_0xda0720:0x30c};if(_0x1120d3['name']!==_0x5206c8(0x58c,_0x43cdd2._0x2383da,0x501,0x55a))return createUnknownToolResult(_0x1120d3);const _0x54e6c7=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x5206c8(_0x2d1ba7,_0x506dab,_0x16d6c0,_0x468ad0){return _0x1a55(_0x506dab-_0x4b9d10._0xda0720,_0x468ad0);}return createSuccessToolResult(_0x1120d3,_0x54e6c7);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x36db2e,_0x40e769){function _0x240119(_0x253f4a,_0x23beee,_0x4930ab,_0x598e95){return _0x1a55(_0x4930ab- -0xa3,_0x23beee);}return await Promise[_0x240119(0x1d6,_0x296f2e._0x10fa23,0x1ea,_0x296f2e._0x19293d)](_0x36db2e['map'](async _0x166ceb=>{return await _0x42b3f6(_0x166ceb,_0x40e769);}));},async 'execute'(_0x21837e,_0x15f7d1){return await _0x42b3f6(_0x21837e,_0x15f7d1);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x4c09d1,_0x1b00a8){return typeof _0x4c09d1==='function'?await _0x4c09d1(_0x1b00a8):_0x4c09d1;}function getDelegatedAgentDefinition(_0x42ae07,_0x4abd45){const _0x598918={_0x2815d3:0x263,_0x404e17:0x269},_0x37dcab={_0x19f7e6:0x50d,_0x5e8fe9:0x4e};function _0x4bbe82(_0xc14da9,_0x62a5ff,_0x12f72f,_0x2278ed){return _0xaab5df(_0xc14da9-0x4a,_0x12f72f-_0x37dcab._0x19f7e6,_0x12f72f-_0x37dcab._0x5e8fe9,_0xc14da9);}return _0x42ae07[_0x4bbe82(_0x598918._0x2815d3,0x296,0x323,_0x598918._0x404e17)]?.[_0x4abd45];}function createRunSummary(_0x1a1fc6){const _0x5f4135={_0xc1e37e:0x5f2,_0x34907a:0x6ad,_0x5923b6:0x5ee,_0x4e6539:0x73e,_0x55c066:0x725,_0x2f5f0d:0x409,_0x7a46b0:0x416,_0x58c214:0x439,_0x3cb85b:0x610,_0x3779f6:0x5be,_0x477b5e:0x606,_0xe88b34:0x57a,_0x2aa0a2:0x610,_0x557e78:0x697},_0x2c16ab={_0x1a123d:0x16c};function _0x34380c(_0x36ebe4,_0x522b63,_0x19c365,_0x2c278a){return _0xaab5df(_0x36ebe4-0x61,_0x522b63-0x7a1,_0x19c365-_0x2c16ab._0x1a123d,_0x19c365);}function _0x48bca8(_0x55df85,_0x145b5f,_0xd9ceb9,_0x3e2d29){return _0x49a26f(_0xd9ceb9,_0x145b5f-0x119,_0xd9ceb9-0x80,_0x3e2d29-0x194);}return{'runId':_0x1a1fc6[_0x48bca8(_0x5f4135._0xc1e37e,0x637,_0x5f4135._0x34907a,_0x5f4135._0x5923b6)],'agentId':_0x1a1fc6[_0x34380c(_0x5f4135._0x4e6539,0x70b,0x6b1,_0x5f4135._0x55c066)],'sessionId':_0x1a1fc6['sessionId'],'status':_0x1a1fc6['status'],'parentSessionId':_0x1a1fc6['parentSessionId'],..._0x1a1fc6[_0x48bca8(_0x5f4135._0x2f5f0d,_0x5f4135._0x7a46b0,0x46d,0x4c7)]!==void 0x0?{'originToolCallId':_0x1a1fc6[_0x48bca8(_0x5f4135._0x58c214,0x4dc,0x450,0x4c7)]}:{},..._0x1a1fc6[_0x34380c(0x656,0x68c,_0x5f4135._0x3cb85b,0x73c)]!==void 0x0?{'errorMessage':_0x1a1fc6[_0x48bca8(_0x5f4135._0x3779f6,_0x5f4135._0x477b5e,0x58a,0x58c)]}:{},..._0x1a1fc6[_0x34380c(_0x5f4135._0xe88b34,0x60f,0x65c,0x601)]?.[_0x48bca8(_0x5f4135._0x2aa0a2,0x535,0x5d4,0x597)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1a1fc6[_0x34380c(0x684,0x60f,0x6b7,0x6cf)][_0x34380c(0x6eb,_0x5f4135._0x557e78,0x73d,0x710)])}:{}};}function createRunSummaryOutput(_0x4c4444,_0x46e04a){const _0x3b4a1e={_0xab5cc9:0xdb,_0x115518:0x230,_0xdc951b:0x186,_0x58a657:0xca,_0x4d18ab:0x131},_0xe57e6={_0x5d03fd:0x15f},_0x432ecb={_0x2b5b8b:0x16b},_0x1715f8=createRunSummary(_0x4c4444),_0x5b3d33=_0x1715f8[_0x2dd03d(0x230,_0x3b4a1e._0xab5cc9,_0x3b4a1e._0x115518,_0x3b4a1e._0xdc951b)];function _0x499486(_0x504141,_0x455135,_0x4fa734,_0x14af1c){return _0xaab5df(_0x504141-_0x432ecb._0x2b5b8b,_0x14af1c-0x2d9,_0x4fa734-0x180,_0x455135);}function _0x2dd03d(_0x1afe47,_0x44f825,_0x5d9cf9,_0x3833da){return _0xaab5df(_0x1afe47-0x151,_0x3833da-0x220,_0x5d9cf9-_0xe57e6._0x5d03fd,_0x1afe47);}return createToolOutput(typeof _0x5b3d33==='string'&&_0x5b3d33[_0x499486(_0x3b4a1e._0x58a657,0xce,0x185,_0x3b4a1e._0x4d18ab)]>0x0?_0x5b3d33:_0x46e04a,_0x1715f8);}function getRunTerminalErrorMessage(_0x43e106){const _0x13c08c={_0x3627fc:0x2ea,_0x55e58b:0x2fb,_0x53f26a:0x717,_0x6175d4:0x637,_0xcd23ce:0x320,_0xc85432:0x2a8,_0x1c54b0:0x2cc,_0x1ad38a:0x296},_0x250737={_0x45dfb3:0x6e4},_0x3361e4={_0x3d1024:0x1ed,_0x1f6d18:0x1a9};function _0x111991(_0x432099,_0x26ac91,_0x4c2e3d,_0x1656b8){return _0xaab5df(_0x432099-_0x3361e4._0x3d1024,_0x4c2e3d-0x43e,_0x4c2e3d-_0x3361e4._0x1f6d18,_0x432099);}const _0x7ee36f=_0x43e106?.['state']['toolResults']['at'](-0x1);function _0x4f05b8(_0x204a3a,_0x1b0838,_0x4eac9d,_0x4c63ee){return _0xaab5df(_0x204a3a-0x1ac,_0x1b0838-_0x250737._0x45dfb3,_0x4eac9d-0x8d,_0x4c63ee);}if(_0x7ee36f?.[_0x111991(0x3bc,_0x13c08c._0x3627fc,0x348,_0x13c08c._0x55e58b)]===_0x4f05b8(0x673,0x65d,_0x13c08c._0x53f26a,_0x13c08c._0x6175d4)&&_0x7ee36f['output'][_0x111991(0x2dd,_0x13c08c._0xcd23ce,0x2ab,_0x13c08c._0xc85432)]()[_0x111991(0x202,_0x13c08c._0x1c54b0,_0x13c08c._0x1ad38a,0x218)]>0x0)return _0x7ee36f['output'];return void 0x0;}function formatAbortedRunMessage(_0x3a8fef,_0xa22a29){const _0x56d466={_0xc78229:0x582},_0x31b8a8={_0x546b83:0x123,_0x13029e:0x167};function _0x202f16(_0x186628,_0x74f45d,_0x5c5064,_0x237dc3){return _0xaab5df(_0x186628-_0x31b8a8._0x546b83,_0x237dc3-0x73c,_0x5c5064-_0x31b8a8._0x13029e,_0x186628);}const _0x4f625f='Agent\x20run\x20'+_0x3a8fef+'\x20was\x20aborted.';if(!_0xa22a29||_0xa22a29['trim']()['length']===0x0||_0xa22a29===_0x4f625f)return _0x4f625f;return _0x4f625f+_0x202f16(0x63f,0x57f,0x5c5,_0x56d466._0xc78229)+_0xa22a29;}function createAssignTaskTool(_0x32c648){const _0x30966d={_0x3b4f77:0x471,_0x4d775a:0x3bb,_0x31ac46:0x326,_0x41f196:0x252,_0x4ee60c:0x33a,_0x4799d8:0x9c,_0x2a7855:0x7,_0x113b6d:0x127,_0x10647d:0xb2,_0x432e61:0x87,_0x17157c:0x367},_0x1a0cb2={_0x29dc74:0x54,_0x6f8923:0x19,_0x2091fc:0x143,_0x5c34d8:0x1a,_0x42395e:0x4,_0x2e4116:0x3,_0x5b36c1:0x23,_0x39c955:0xaa,_0x3c3b11:0x2b,_0x3b9d98:0xd,_0x3460ea:0x5c,_0x382e91:0x19f,_0x1cf8d2:0x8,_0x26fc7e:0x124,_0x89764d:0x94,_0x5ef2a9:0x165,_0x1ff41e:0x13f,_0x22734c:0x164,_0x808e33:0xd3,_0xe54f08:0x1b0,_0x4be360:0x71,_0x42772c:0xe0,_0x2e970f:0x37,_0x8a00cf:0xb4,_0x1cbf3a:0x8c,_0x169a14:0x1d7,_0x377614:0x174,_0x4f1607:0x229,_0x565950:0x1f2,_0x2279cf:0x11,_0x50bb13:0x139,_0x4d736a:0xb4,_0x92abd1:0x110,_0xa21a7:0xe0,_0x33d54a:0xe4,_0xc1b4a2:0xf9,_0x26ee98:0x1e3,_0x4ad548:0x207,_0x3f23e8:0x18f,_0x4506ea:0x16f,_0x5667c1:0x1e9,_0x5a4f90:0x200,_0x19e876:0x90,_0x569322:0x9e,_0xd8df35:0xb1,_0x8fc32e:0xe0,_0x46509b:0x214,_0x3b58f4:0x174,_0x4656fe:0x206,_0x535820:0x10,_0x38f8bc:0xdc,_0x4550a0:0xd2,_0x39c43d:0x114,_0x45800d:0xcf,_0x4529a5:0xc9,_0x3b3309:0x20,_0x1b77d6:0x12d,_0x32db14:0x135,_0x524c38:0x1c0},_0x399fb2={_0x3fcee9:0x9c},_0x86012e={_0x4345fc:0x178,_0x568aa2:0x3ea},_0xd6b4d9={_0xb38f9:0x97,_0x38528f:0x116};function _0x1e2d46(_0x22cf74,_0x226872,_0xd2da26,_0x34f652){return _0xaab5df(_0x22cf74-_0xd6b4d9._0xb38f9,_0xd2da26-0x4a4,_0xd2da26-_0xd6b4d9._0x38528f,_0x226872);}function _0x52b82a(_0x34ce7b,_0x475b73,_0x2d4b20,_0x36bdc5){return _0x49a26f(_0x34ce7b,_0x475b73-0x1f3,_0x2d4b20-_0x86012e._0x4345fc,_0x36bdc5- -_0x86012e._0x568aa2);}return defineTool({'name':_0x1e2d46(_0x30966d._0x3b4f77,0x325,_0x30966d._0x4d775a,_0x30966d._0x31ac46),'description':_0x1e2d46(_0x30966d._0x41f196,0x24b,0x2eb,_0x30966d._0x4ee60c),'inputSchema':{'type':_0x52b82a(-0xc3,-0x5,-0x10f,-_0x30966d._0x4799d8),'properties':{'agentId':{'type':_0x52b82a(_0x30966d._0x2a7855,0x7f,-0x19,0x1e)},'task':{'type':'string'}},'required':[_0x52b82a(_0x30966d._0x113b6d,_0x30966d._0x10647d,_0x30966d._0x432e61,0x8d),_0x1e2d46(0x27b,_0x30966d._0x17157c,0x33a,0x2bc)]},async *'execute'(_0x395a6d,_0x4505eb){const _0x14e457={_0x4ec320:0xe3,_0x4e4bcc:0x65,_0x49be04:0x36,_0xf11b21:0x69,_0x9ce32:0x4},_0x394899={_0x454c4d:0x157},_0x485da3={_0x24c9f7:0x462,_0x4dfaad:0x86},_0x17cf93=createDelegatedRunId(),_0x5ae21d={'agentId':_0x395a6d[_0x115fcc(-_0x1a0cb2._0x29dc74,-0x10e,-0x71,_0x1a0cb2._0x6f8923)],'parentSessionId':_0x4505eb[_0x1bab73(-_0x1a0cb2._0x2091fc,0x0,-0x9e,0x19)],'runId':_0x17cf93,..._0x4505eb[_0x115fcc(-0x6a,-_0x1a0cb2._0x5c34d8,0xe,-_0x1a0cb2._0x42395e)]!==void 0x0?{'toolCallId':_0x4505eb[_0x1bab73(-_0x1a0cb2._0x2e4116,-_0x1a0cb2._0x5b36c1,-_0x1a0cb2._0x39c955,-_0x1a0cb2._0x3c3b11)]}:{}};function _0x1bab73(_0xc5b09f,_0x528e3f,_0x20aab1,_0x2bde17){return _0x52b82a(_0xc5b09f,_0x528e3f-_0x399fb2._0x3fcee9,_0x20aab1-0x159,_0x20aab1- -0x121);}function _0x115fcc(_0x310b6a,_0x140bb7,_0x4b24e8,_0x5a529b){return _0x1e2d46(_0x310b6a-0x24,_0x5a529b,_0x310b6a- -_0x485da3._0x24c9f7,_0x5a529b-_0x485da3._0x4dfaad);}const _0x5c5f18=getDelegatedAgentDefinition(_0x32c648,_0x395a6d[_0x1bab73(-_0x1a0cb2._0x3b9d98,-_0x1a0cb2._0x3460ea,-0x94,-0x127)]);if(!_0x5c5f18)throw new ToolExecutionError(_0x115fcc(-0xff,-0x11c,-_0x1a0cb2._0x382e91,-0x17b)+_0x395a6d[_0x115fcc(-0x54,-0xa4,_0x1a0cb2._0x1cf8d2,0x21)],{'agentId':_0x395a6d['agentId']});const _0x2f56cf=new Agent(await resolveDelegatedAgentOptions(_0x5c5f18,_0x5ae21d));let _0x56d004={'runId':_0x17cf93,'agentId':_0x395a6d[_0x1bab73(-_0x1a0cb2._0x26fc7e,-0x10c,-_0x1a0cb2._0x89764d,-0x12e)],'sessionId':_0x2f56cf['sessionId'],'status':'running','parentSessionId':_0x4505eb['sessionId'],..._0x4505eb[_0x1bab73(-_0x1a0cb2._0x5ef2a9,-_0x1a0cb2._0x1ff41e,-0xaa,-_0x1a0cb2._0x5c34d8)]!==void 0x0?{'originToolCallId':_0x4505eb['toolCallId']}:{}};const _0x5935be=new AbortController(),_0x552d33=addAbortListener(_0x4505eb[_0x115fcc(-_0x1a0cb2._0x22734c,-0x224,-0x1ef,-0x1ee)],()=>{const _0x32ceaa={_0x49d6dc:0x149,_0x192fef:0x101};function _0x5bd8e8(_0x597bf8,_0x11bd8e,_0x5e40e6,_0x43354d){return _0x115fcc(_0x11bd8e-0x61a,_0x11bd8e-_0x32ceaa._0x49d6dc,_0x5e40e6-_0x32ceaa._0x192fef,_0x5e40e6);}function _0x32e6bb(_0x2c5a18,_0x16fd64,_0x4bd5b3,_0x41a540){return _0x115fcc(_0x16fd64-0xdc,_0x16fd64-_0x394899._0x454c4d,_0x4bd5b3-0x18f,_0x4bd5b3);}_0x5935be['abort'](_0x4505eb[_0x32e6bb(-_0x14e457._0x4ec320,-0x88,-_0x14e457._0x4e4bcc,-0x9f)]?.[_0x32e6bb(-_0x14e457._0x49be04,_0x14e457._0xf11b21,0x95,-_0x14e457._0x9ce32)]);});yield createToolOutput(_0x1bab73(-0x11f,-_0x1a0cb2._0x808e33,-0x100,-_0x1a0cb2._0xe54f08)+_0x56d004['runId']+'.',{'runId':_0x56d004[_0x115fcc(-_0x1a0cb2._0x4be360,-0xb2,-_0x1a0cb2._0x42772c,-_0x1a0cb2._0x2e970f)],'agentId':_0x56d004['agentId'],'sessionId':_0x56d004['sessionId'],'status':_0x56d004[_0x115fcc(-_0x1a0cb2._0x8a00cf,-0x3d,-_0x1a0cb2._0x1cbf3a,-0xe9)]});try{const _0x4dd1fe=await _0x2f56cf[_0x1bab73(-_0x1a0cb2._0x169a14,-0x121,-_0x1a0cb2._0x377614,-_0x1a0cb2._0x4f1607)](_0x395a6d['task'],{'signal':_0x5935be[_0x1bab73(-0xfa,-_0x1a0cb2._0x565950,-0x1a4,-0x1f9)]});_0x56d004={..._0x56d004,'status':_0x4dd1fe[_0x115fcc(-_0x1a0cb2._0x8a00cf,-0x13b,-0xd1,-_0x1a0cb2._0x2279cf)],'result':_0x4dd1fe};if(_0x4dd1fe[_0x115fcc(-_0x1a0cb2._0x8a00cf,-0x159,-_0x1a0cb2._0x50bb13,_0x1a0cb2._0x1cf8d2)]!==_0x1bab73(-0x148,-0x196,-0xfb,-_0x1a0cb2._0x4d736a)){const _0x2bb92d=getRunTerminalErrorMessage(_0x4dd1fe),_0x3f6f21=formatAbortedRunMessage(_0x56d004[_0x1bab73(-0xda,-_0x1a0cb2._0x92abd1,-0xb1,-0x126)],_0x2bb92d);throw new ToolExecutionError(_0x3f6f21,{...createRunSummary(_0x56d004),'aborted':!![],'errorMessage':_0x3f6f21});}return createRunSummaryOutput(_0x56d004,_0x115fcc(-0xd2,-_0x1a0cb2._0xa21a7,-0xfc,-0x52)+_0x56d004[_0x115fcc(-_0x1a0cb2._0x4be360,-0xff,-_0x1a0cb2._0x33d54a,-0x1d)]+'\x20completed.');}catch(_0x41bc61){if(_0x41bc61 instanceof ToolExecutionError)throw _0x41bc61;if(isAbortError(_0x41bc61)||_0x5935be[_0x1bab73(-_0x1a0cb2._0xc1b4a2,-0x1e0,-0x1a4,-0x258)][_0x115fcc(-0x16f,-_0x1a0cb2._0x26ee98,-0x223,-_0x1a0cb2._0x4ad548)]||_0x4505eb[_0x115fcc(-0x164,-0x17d,-0x1df,-_0x1a0cb2._0x3f23e8)][_0x115fcc(-_0x1a0cb2._0x4506ea,-0x1b9,-_0x1a0cb2._0x5667c1,-_0x1a0cb2._0x5a4f90)]){const _0x59164b=getRunTerminalErrorMessage(_0x56d004['result'])??(_0x41bc61 instanceof Error?_0x41bc61['message']:String(_0x41bc61)),_0x2fdb43=formatAbortedRunMessage(_0x56d004[_0x1bab73(-_0x1a0cb2._0x19e876,-_0x1a0cb2._0x569322,-_0x1a0cb2._0xd8df35,-_0x1a0cb2._0x8fc32e)],_0x59164b);_0x56d004={..._0x56d004,'status':'aborted','errorMessage':_0x2fdb43};throw new ToolExecutionError(_0x2fdb43,{...createRunSummary(_0x56d004),'aborted':!![],'errorMessage':_0x2fdb43});}const _0x278c8e=getRunTerminalErrorMessage(_0x56d004[_0x1bab73(-_0x1a0cb2._0x46509b,-_0x1a0cb2._0x3b58f4,-0x190,-_0x1a0cb2._0x4656fe)])??(_0x41bc61 instanceof Error?_0x41bc61[_0x1bab73(_0x1a0cb2._0x535820,-_0x1a0cb2._0x38f8bc,-0x86,-0xca)]:String(_0x41bc61))??_0x115fcc(-_0x1a0cb2._0x4550a0,-0x11c,-_0x1a0cb2._0x39c43d,-_0x1a0cb2._0x45800d)+_0x56d004[_0x115fcc(-_0x1a0cb2._0x4be360,-_0x1a0cb2._0x4529a5,_0x1a0cb2._0x3b3309,-_0x1a0cb2._0x1b77d6)]+_0x1bab73(-0xc3,-0xf2,-_0x1a0cb2._0x32db14,-0xa1);_0x56d004={..._0x56d004,'status':_0x115fcc(-0x114,-_0x1a0cb2._0x524c38,-0xdb,-0x1b7),'errorMessage':_0x278c8e};throw new ToolExecutionError(_0x278c8e,{...createRunSummary(_0x56d004),'errorMessage':_0x278c8e});}finally{_0x552d33();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x50a951){return[createAssignTaskTool(_0x50a951)];}import*as _0x193ce from'path';function buildDescription2(_0x5c59cd){const _0x215bc1={_0xf7be12:0x392,_0x356531:0x32b,_0x17b54d:0x3c4,_0x191bf2:0x2c1,_0x5ddec8:0x294,_0x19718d:0x2d5,_0x4ba20d:0x305,_0x2fbef4:0x491,_0x7fcf04:0x4a0,_0x313299:0x4f5,_0x2bc557:0x44c,_0x37deaa:0x3cd,_0x609945:0x475},_0x5abfc0={_0x5ed98a:0x3a},_0x39b287={_0x453fd7:0x15,_0x528a0a:0x5c0};function _0x4605e2(_0x5131eb,_0x2fdae4,_0xe16a4f,_0x23989e){return _0xaab5df(_0x5131eb-_0x39b287._0x453fd7,_0x5131eb-_0x39b287._0x528a0a,_0xe16a4f-0xf4,_0x23989e);}if(_0x5c59cd[_0x44c96d(_0x215bc1._0xf7be12,_0x215bc1._0x356531,_0x215bc1._0x17b54d,_0x215bc1._0x191bf2)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x23e95a=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.','Skills\x20provide\x20specialized\x20knowledge\x20and\x20step-by-step\x20guidance.',_0x44c96d(_0x215bc1._0x5ddec8,_0x215bc1._0x19718d,_0x215bc1._0x4ba20d,0x310),_0x4605e2(0x48f,_0x215bc1._0x2fbef4,0x499,_0x215bc1._0x7fcf04),..._0x5c59cd[_0x4605e2(0x46d,0x416,_0x215bc1._0x313299,0x44c)](_0x13bbcb=>'-\x20'+_0x13bbcb[_0x44c96d(0x338,0x328,0x3bf,0x3d2)]+':\x20'+_0x13bbcb[_0x44c96d(0x443,0x421,0x3f6,0x39c)])];function _0x44c96d(_0x3c8657,_0x5ef4e4,_0x34c1f2,_0x39c2e8){return _0x49a26f(_0x34c1f2,_0x5ef4e4-0x4,_0x34c1f2-0xaa,_0x5ef4e4- -_0x5abfc0._0x5ed98a);}return _0x23e95a[_0x4605e2(_0x215bc1._0x2bc557,_0x215bc1._0x37deaa,_0x215bc1._0x609945,0x480)]('\x0a');}function createLoadSkillTool(_0x26eecc){const _0x53b86b={_0x717ef0:0x44a,_0x7bd981:0x49b,_0x3adec5:0x33f,_0x3d82c2:0x4d3,_0x53e12c:0x2e8,_0x2122aa:0x2fa,_0x34c75c:0x387},_0x51273a={_0x3779dc:0x36e,_0x2f2047:0x1f9,_0x589208:0xc0,_0x236f10:0x239,_0x218182:0x222,_0x3d59ad:0x22a,_0x4ccffb:0x248,_0x58afc7:0x32a,_0x5919d1:0x374,_0x262d74:0x221,_0x19bcc0:0x210,_0x363263:0x2f3,_0x23e735:0x330,_0x35bb8a:0x27b,_0x4e74b6:0x21e,_0x5a38d9:0x1ee,_0x1b7326:0x239,_0x49c976:0x297,_0x24b69b:0x21f,_0x1559d7:0x411,_0x4af5cd:0x48d,_0x4253e4:0x4c4,_0x4d4b1c:0x2cb,_0x187e41:0x38f,_0x146509:0x420,_0x298c3d:0x3f4,_0x6ceebb:0x1e3,_0xaa6662:0x2e2,_0x505ee0:0x3d2,_0x3054b4:0x2ce,_0x3fdf8b:0x137,_0x5a9a17:0x28d,_0xbd81b:0x15d,_0x7e6461:0x12b,_0x581496:0x47e,_0x403c07:0x27d,_0x560f14:0x255,_0x2beeb3:0x1fd,_0x147e3d:0x392,_0x233c67:0x2d9,_0x1a6c95:0x198,_0x1ac308:0x23b,_0x37ed83:0x256,_0x48f490:0x115,_0x37839a:0x161,_0x30a898:0x25b,_0x31ba1d:0x1bc},_0x25f443={_0x5459f7:0x5d8},_0x9fd061={_0x221a09:0xb9,_0x35ae80:0x493},_0x18924a=new Map(_0x26eecc['skills']['map'](_0x3bfcfb=>[_0x3bfcfb[_0x5bc89c(0x2e8,0x266,0x394,0x24d)],_0x3bfcfb])),_0x2a036c=buildDescription2(_0x26eecc[_0x5bc89c(0x3a4,_0x53b86b._0x717ef0,0x33f,0x2f2)]);function _0x5bc89c(_0x214c7d,_0x432076,_0x651648,_0x466a9e){return _0xaab5df(_0x214c7d-_0x9fd061._0x221a09,_0x214c7d-_0x9fd061._0x35ae80,_0x651648-0x13,_0x651648);}function _0x14822f(_0xf5c72f,_0x22b600,_0x5ebe6d,_0x4716a1){return _0xaab5df(_0xf5c72f-0x13d,_0x5ebe6d-_0x25f443._0x5459f7,_0x5ebe6d-0x17f,_0xf5c72f);}return defineTool({'name':_0x5bc89c(0x3f1,0x427,_0x53b86b._0x7bd981,_0x53b86b._0x3adec5),'description':_0x2a036c,'inputSchema':{'type':'object','properties':{'name':{'type':_0x14822f(0x57a,0x527,_0x53b86b._0x3d82c2,0x428)}},'required':[_0x5bc89c(_0x53b86b._0x53e12c,0x27d,_0x53b86b._0x2122aa,_0x53b86b._0x34c75c)]},async *'execute'(_0x453a69){const _0xc6597a={_0x44d2ed:0x4a,_0x1908b1:0xa1},_0x1cea04=_0x18924a[_0x37537b(0x3ee,0x390,0x3ae,_0x51273a._0x3779dc)](_0x453a69[_0x55e921(0xd3,0x161,_0x51273a._0x2f2047,_0x51273a._0x589208)]);if(!_0x1cea04){const _0x5e26c6=Array[_0x55e921(_0x51273a._0x236f10,_0x51273a._0x218182,_0x51273a._0x3d59ad,_0x51273a._0x4ccffb)](_0x18924a['keys']())[_0x37537b(_0x51273a._0x58afc7,0x3e2,_0x51273a._0x5919d1,0x2e1)](',\x20');throw new ToolExecutionError(_0x55e921(_0x51273a._0x262d74,_0x51273a._0x19bcc0,0x19e,0x15f)+_0x453a69[_0x37537b(_0x51273a._0x363263,0x2c3,_0x51273a._0x23e735,0x275)]+_0x55e921(_0x51273a._0x35bb8a,_0x51273a._0x4e74b6,_0x51273a._0x5a38d9,_0x51273a._0x1b7326)+_0x5e26c6,{'name':_0x453a69['name']});}function _0x37537b(_0x4ebbe6,_0x17e807,_0x3d4bb5,_0x309d09){return _0x5bc89c(_0x4ebbe6-0xb,_0x17e807-0x1ab,_0x3d4bb5,_0x309d09-0x1c5);}const _0x46d139=await _0x26eecc[_0x55e921(_0x51273a._0x49c976,0x1f1,_0x51273a._0x24b69b,0x188)](_0x1cea04),_0x1f3ad6=_0x1cea04[_0x37537b(_0x51273a._0x1559d7,_0x51273a._0x4af5cd,_0x51273a._0x4253e4,0x3cc)][_0x37537b(0x2c2,0x221,_0x51273a._0x4d4b1c,0x33b)]??_0x193ce[_0x37537b(_0x51273a._0x187e41,0x2da,_0x51273a._0x146509,_0x51273a._0x298c3d)](_0x1cea04[_0x55e921(0x2a2,0x27f,_0x51273a._0x6ceebb,_0x51273a._0xaa6662)][_0x37537b(0x3ed,_0x51273a._0x505ee0,0x43e,0x3cc)]);function _0x55e921(_0x2b33cf,_0x3c44c8,_0x4d6640,_0x54b2b6){return _0x14822f(_0x4d6640,_0x3c44c8-_0xc6597a._0x44d2ed,_0x3c44c8- -0x2cc,_0x54b2b6-_0xc6597a._0x1908b1);}const _0x1dfd16=['##\x20Skill:\x20'+_0x46d139['name'],'',_0x46d139[_0x37537b(0x34c,0x2d7,_0x51273a._0x3054b4,0x403)],'',_0x55e921(_0x51273a._0x3fdf8b,0x13f,0x1a5,0x1f9),_0x55e921(_0x51273a._0x5a9a17,0x1d3,_0x51273a._0xbd81b,_0x51273a._0x7e6461)+_0x1cea04[_0x37537b(_0x51273a._0x1559d7,_0x51273a._0x581496,0x3e9,0x4af)][_0x55e921(_0x51273a._0x403c07,0x25b,_0x51273a._0x560f14,_0x51273a._0x2beeb3)],_0x37537b(_0x51273a._0x147e3d,0x39e,_0x51273a._0x233c67,0x3b8)+_0x1f3ad6][_0x55e921(0x158,_0x51273a._0x1a6c95,_0x51273a._0x1ac308,_0x51273a._0x37ed83)]('\x0a');return yield createToolOutput(_0x1dfd16,{'id':_0x46d139['id'],'name':_0x46d139[_0x55e921(_0x51273a._0x48f490,_0x51273a._0x37839a,0x1f7,0x1f2)],'path':_0x1cea04[_0x37537b(_0x51273a._0x1559d7,0x3e8,0x394,0x38c)][_0x55e921(0x2e5,_0x51273a._0x30a898,_0x51273a._0x31ba1d,0x203)],'baseDirectory':_0x1f3ad6}),void 0x0;}});}import{readFile as _0x39b279,stat as _0x312b04}from'fs/promises';import*as _0x18b8b7 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0xaab5df(-0x87,-0x106,-0x199,-0xf7),_0xaab5df(-0x215,-0x162,-0xf8,-0x14b),_0x49a26f(0x437,0x34e,0x3e5,0x398),_0x49a26f(0x319,0x2e9,0x2b7,0x30b)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x11fbaf,_0x23435f){const _0x309391={_0xe93f41:0x5bf,_0x937c82:0x63e,_0x30e1ba:0x551,_0x373f82:0x4,_0x14bb9b:0x54b,_0x239750:0x559,_0x152fb5:0x4a8,_0x258150:0x591,_0x34ce17:0x52d,_0x1a3d88:0x469,_0x19138a:0x649,_0x1f6fdc:0x4e2,_0x5c323e:0x558,_0x17f8ad:0x31,_0x57d512:0xd,_0x10f21b:0xb2,_0x258cfb:0x51c,_0xf9fec4:0x4f5,_0xc9478e:0x5c4,_0x5b70cc:0x31,_0x2fb87a:0xd,_0x6cc718:0x526,_0x54d47f:0x4dc,_0x25c5f7:0x4f3,_0x3620b3:0x545,_0x367daf:0x580,_0x35cc65:0x4c0,_0x42ee01:0x5d7,_0x51b11b:0xc5,_0x513ce6:0xe8,_0x195243:0x4a5,_0xfb67e9:0x4a2,_0x44ddf4:0x5b7,_0x41df2b:0x103,_0x19f536:0x8e,_0x14f1a9:0x6e,_0x2c57e7:0xe5,_0xc9f2a1:0x48,_0x260aab:0xd4,_0xed5014:0xb7,_0x573d4b:0x90,_0x250702:0x4cf,_0x325ec8:0x4c9,_0x5e3b51:0x60a,_0x2dee55:0x536,_0x3fcec9:0x5ca,_0x1f40e3:0x5b5,_0x5d0639:0x160,_0x5c0b49:0x8,_0x296568:0xa4,_0x4291a9:0x23,_0x471828:0x5d0,_0x5e1f31:0x5cb,_0x35a784:0x2e,_0x3b0e2b:0x97,_0xf63e4d:0x51b,_0x414887:0x4c3,_0xbfef08:0xa,_0x2bab3d:0x15,_0x5a4e55:0x29,_0x283db8:0x5ac,_0x5ab6d4:0x5af,_0x20955e:0x531},_0x58068f={_0x48648c:0x18c},_0x2e2925={_0x5b5146:0x10a};if(_0x11fbaf['subarray'](0x0,0x8)[_0x249406(_0x309391._0xe93f41,0x666,_0x309391._0x937c82,_0x309391._0x30e1ba)](PNG_SIGNATURE))return _0x2b6075(-_0x309391._0x373f82,-0x54,0x2d,0x1c);if(_0x11fbaf[0x0]===0xff&&_0x11fbaf[0x1]===0xd8&&_0x11fbaf[0x2]===0xff)return _0x249406(0x5d0,_0x309391._0x14bb9b,0x65f,0x654);const _0x5bddce=_0x11fbaf['subarray'](0x0,0x6)[_0x249406(_0x309391._0x239750,_0x309391._0x152fb5,_0x309391._0x258150,0x563)](_0x249406(0x526,0x597,_0x309391._0x34ce17,_0x309391._0x1a3d88));if(_0x5bddce===_0x249406(0x59f,_0x309391._0x19138a,_0x309391._0x1f6fdc,_0x309391._0x5c323e)||_0x5bddce==='GIF89a')return _0x2b6075(_0x309391._0x17f8ad,-0xb5,-_0x309391._0x57d512,-_0x309391._0x10f21b);if(_0x11fbaf[_0x249406(_0x309391._0x258cfb,_0x309391._0xf9fec4,0x4fb,_0x309391._0xc9478e)](0x0,0x4)[_0x2b6075(0x3,0xbf,_0x309391._0x5b70cc,_0x309391._0x2fb87a)](_0x249406(_0x309391._0x6cc718,_0x309391._0x54d47f,_0x309391._0x25c5f7,_0x309391._0x3620b3))===_0x249406(0x57b,0x544,_0x309391._0x367daf,0x552)&&_0x11fbaf[_0x249406(0x51c,0x4bc,_0x309391._0x35cc65,_0x309391._0x42ee01)](0x8,0xc)[_0x2b6075(_0x309391._0x51b11b,0x64,0x31,_0x309391._0x513ce6)](_0x249406(0x526,_0x309391._0x195243,_0x309391._0xfb67e9,_0x309391._0x44ddf4))===_0x2b6075(-_0x309391._0x41df2b,-0x70,-_0x309391._0x19f536,-0x21))return'image/webp';const _0x55dab1=_0x18b8b7[_0x2b6075(0x30,_0x309391._0x14f1a9,_0x309391._0x2c57e7,_0x309391._0xc9f2a1)](_0x23435f)[_0x2b6075(_0x309391._0x260aab,_0x309391._0xed5014,_0x309391._0x573d4b,-0xc)]();function _0x2b6075(_0x12f032,_0x15b871,_0x13a9f9,_0x6a9e92){return _0xaab5df(_0x12f032-0xed,_0x13a9f9-0x171,_0x13a9f9-_0x2e2925._0x5b5146,_0x15b871);}if(_0x55dab1===_0x249406(_0x309391._0x250702,0x40f,0x4de,_0x309391._0x325ec8))return _0x249406(0x555,_0x309391._0x5e3b51,_0x309391._0x2dee55,0x4c6);if(_0x55dab1===_0x249406(_0x309391._0x3fcec9,_0x309391._0x1f40e3,0x51f,0x5a6)||_0x55dab1===_0x2b6075(_0x309391._0x5d0639,-_0x309391._0x5c0b49,_0x309391._0x296568,_0x309391._0x4291a9))return _0x249406(_0x309391._0x471828,_0x309391._0x5e1f31,0x63e,0x54d);if(_0x55dab1===_0x2b6075(0xce,-_0x309391._0x35a784,0x8d,_0x309391._0x3b0e2b))return _0x249406(_0x309391._0xf63e4d,_0x309391._0x414887,0x5d3,0x4f3);function _0x249406(_0x4ce916,_0x4206ef,_0x56fdae,_0x49f6c3){return _0x49a26f(_0x49f6c3,_0x4206ef-0x4,_0x56fdae-0xcf,_0x4ce916-_0x58068f._0x48648c);}if(_0x55dab1===_0x2b6075(0x6f,-_0x309391._0xbfef08,-_0x309391._0x2bab3d,-_0x309391._0x5a4e55))return _0x249406(_0x309391._0x283db8,_0x309391._0x5ab6d4,_0x309391._0x20955e,0x63c);return void 0x0;}function normalizeDetail(_0x165d83){const _0x22869c={_0x3f09b4:0x42,_0x158712:0x5c,_0x4c4606:0x26,_0x13dccb:0x4d9,_0x27fc53:0x479,_0xe34a13:0x503},_0x58c38c={_0x1b7390:0x13d},_0x565feb={_0x588746:0x35,_0x5ea20b:0x17,_0x4d257d:0xed};function _0x366566(_0x10a0f8,_0x2324be,_0x1053b,_0xb83fc3){return _0x49a26f(_0x1053b,_0x2324be-_0x565feb._0x588746,_0x1053b-_0x565feb._0x5ea20b,_0xb83fc3-_0x565feb._0x4d257d);}if(_0x165d83===void 0x0)return void 0x0;const _0xe55d43=_0x165d83[_0x366566(0x41d,0x482,0x4ec,0x467)]()[_0x1eab47(_0x22869c._0x3f09b4,_0x22869c._0x158712,-_0x22869c._0x4c4606,0x9a)]();if(!SUPPORTED_DETAILS[_0x1eab47(-0x12,0xa6,0x7d,0x67)](_0xe55d43))throw new ToolExecutionError(_0x366566(_0x22869c._0x13dccb,_0x22869c._0x27fc53,0x472,_0x22869c._0xe34a13)+_0x165d83,{'detail':_0x165d83});function _0x1eab47(_0x4bee5c,_0x10fb56,_0x3bb5d7,_0x6005c9){return _0xaab5df(_0x4bee5c-0x1ec,_0x10fb56-_0x58c38c._0x1b7390,_0x3bb5d7-0x1b4,_0x4bee5c);}return _0xe55d43;}function createViewFileTool(_0x4a5f7e={}){const _0x25eacf={_0x23fe7c:0x198,_0x2fb10e:0xf2,_0x1bb67a:0x5a5,_0x1b1898:0x485,_0x48dc1e:0x5fe,_0x2aa758:0x5b5,_0x24ef0d:0xe6,_0x11b5d9:0x17c,_0x37f190:0x58a,_0x4ff8fe:0x59f},_0x11de41={_0x5e4d61:0x157,_0x14dbdf:0x192,_0xb26e10:0x16f,_0x205a53:0x45,_0xcdb887:0x42,_0x3e94d2:0x70,_0x53db3a:0xf2,_0x34195e:0x1a6,_0x43683e:0x17a,_0x6c81fa:0xf7,_0x12d811:0x1de,_0x28c031:0x158,_0x354bc7:0x4,_0x2fbed7:0x167,_0x3f3510:0x1ce,_0x59da81:0x1a3,_0x262da4:0x188,_0x2bf813:0x13c,_0x5c255e:0x1d2,_0x20d414:0x132,_0x318ff0:0x2b0,_0x1b9934:0x280,_0x3f68f6:0x33b,_0xef6d91:0x3e,_0xdb22ef:0x7,_0x4d2251:0x2ae,_0x181a5f:0x2c7,_0x56db09:0x31e,_0x2cdf12:0x281,_0x3e4ffb:0x236,_0x5949a6:0x118,_0x49a2c1:0xc5,_0x3d9083:0x252,_0x5e48f1:0x2a,_0x314d62:0x54,_0x1b4424:0xd9,_0x3ae3c6:0x1bf,_0x450720:0x33d,_0x5bfaf8:0x2db,_0xa84a90:0xc8,_0x73e6d7:0xe6,_0x113251:0x157,_0x51ca4c:0x108,_0x3a3954:0x32a,_0x38772e:0x25c,_0x5ea592:0x2a3,_0x12962e:0x2d1,_0x24c342:0x221,_0x3822c2:0xa6,_0x12207:0x5f,_0x3c84cf:0x1d9},_0x3e1a39={_0x201619:0x2e1},_0x37f49b={_0x175866:0xf0},_0x42a041={_0x39bc7f:0x1a5,_0x35a2d3:0x4d},_0xd3a151=_0x18b8b7[_0x5098d5(-0x1a6,-0x116,-0x1a1,-_0x25eacf._0x23fe7c)](_0x4a5f7e['defaultCwd']??process['cwd']());function _0x380ca5(_0x4680f6,_0x133a9b,_0x3bf525,_0xce015e){return _0x49a26f(_0x4680f6,_0x133a9b-_0x42a041._0x39bc7f,_0x3bf525-_0x42a041._0x35a2d3,_0xce015e-0x13a);}const _0x4d9cf7=_0x4a5f7e[_0x5098d5(-0xa8,-0xc3,-0x36,-_0x25eacf._0x2fb10e)]??DEFAULT_MAX_BYTES,_0x445144=_0x4a5f7e['name']??_0x380ca5(_0x25eacf._0x1bb67a,0x5b0,0x5f5,0x5c2);function _0x5098d5(_0x3dfb86,_0x25efb0,_0x1dab02,_0x228874){return _0x49a26f(_0x1dab02,_0x25efb0-_0x37f49b._0x175866,_0x1dab02-0x1e9,_0x25efb0- -0x4ee);}return defineTool({'name':_0x445144,'description':_0x5098d5(-0x110,-0x7d,0xe,-0xb4),'inputSchema':{'type':'object','properties':{'path':{'type':_0x380ca5(_0x25eacf._0x1b1898,_0x25eacf._0x48dc1e,_0x25eacf._0x2aa758,0x542)},'detail':{'type':_0x5098d5(-0x97,-_0x25eacf._0x24ef0d,-_0x25eacf._0x11b5d9,-0x158)}},'required':[_0x380ca5(_0x25eacf._0x37f190,_0x25eacf._0x4ff8fe,0x5d7,0x596)]},async *'execute'(_0x5bdb31){const _0x420e60={_0x1ee880:0x43f},_0x8844e1=resolveWorkspacePath(_0xd3a151,_0x5bdb31[_0xec7126(_0x11de41._0x5e4d61,_0x11de41._0x14dbdf,0x1e7,_0x11de41._0xb26e10)]);await assertWorkspaceFile(_0x8844e1);function _0xec7126(_0x56fd49,_0x2cfa45,_0x26334a,_0x334d74){return _0x380ca5(_0x26334a,_0x2cfa45-0x39,_0x26334a-0x10b,_0x56fd49- -_0x420e60._0x1ee880);}const _0xe1138f=await _0x312b04(_0x8844e1);if(_0xe1138f[_0xec7126(_0x11de41._0x205a53,_0x11de41._0xcdb887,0x3f,_0x11de41._0x3e94d2)]>_0x4d9cf7)throw new ToolExecutionError(_0x353bb1(_0x11de41._0x53db3a,_0x11de41._0x34195e,_0x11de41._0x43683e,0x16e)+_0x5bdb31[_0x353bb1(0x2e4,0x26b,0x2b5,0x223)],{'path':_0x5bdb31[_0xec7126(0x157,_0x11de41._0x6c81fa,_0x11de41._0x12d811,_0x11de41._0x28c031)],'maxBytes':_0x4d9cf7,'size':_0xe1138f[_0xec7126(0x45,0x55,-_0x11de41._0x354bc7,0x9f)]});const _0x520c1a=await _0x39b279(_0x8844e1),_0x3b1be4=detectImageMediaType(_0x520c1a,_0x8844e1);if(!_0x3b1be4)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x5bdb31[_0xec7126(0x157,0x1fa,0x9e,_0x11de41._0x2fbed7)],{'path':_0x5bdb31[_0xec7126(0x157,_0x11de41._0x3f3510,_0x11de41._0x59da81,_0x11de41._0x262da4)],'supported':[_0xec7126(0x124,0x10f,_0x11de41._0x2bf813,_0x11de41._0x5c255e),_0xec7126(0x13b,0xce,_0x11de41._0x20d414,0x1c3),_0x353bb1(_0x11de41._0x318ff0,_0x11de41._0x1b9934,0x297,_0x11de41._0x3f68f6),_0xec7126(_0x11de41._0xef6d91,-0x64,-_0x11de41._0xdb22ef,-0x68),_0x353bb1(_0x11de41._0x14dbdf,0x213,0x1e0,0x217)]});const _0x431c15=normalizeDetail(_0x5bdb31['detail']),_0x2ba11d=[_0x353bb1(0x2b8,_0x11de41._0x4d2251,0x24e,_0x11de41._0x181a5f)+_0x5bdb31[_0xec7126(0x157,0x13d,0xfd,0x10d)],_0x353bb1(0x1cc,_0x11de41._0x56db09,_0x11de41._0x2cdf12,_0x11de41._0x3e4ffb)+_0x3b1be4,_0xec7126(0xe5,0x14a,_0x11de41._0x5949a6,_0x11de41._0x49a2c1)+_0xe1138f[_0x353bb1(0x104,_0x11de41._0x3d9083,_0x11de41._0x59da81,0x1c3)]+'\x20bytes'][_0xec7126(_0x11de41._0x5e48f1,0x28,-_0x11de41._0x314d62,_0x11de41._0x1b4424)](_0x431c15?['Detail:\x20'+_0x431c15]:[])['join']('\x0a'),_0x184f4b=[{'type':_0x353bb1(0x25e,0x19b,0x245,_0x11de41._0x3ae3c6),'source':{'type':_0x353bb1(_0x11de41._0x450720,0x373,_0x11de41._0x5bfaf8,0x33e),'media_type':_0x3b1be4,'data':_0x520c1a[_0xec7126(_0x11de41._0xa84a90,_0x11de41._0x73e6d7,0xbd,0x141)](_0x353bb1(0x229,0x271,0x2db,0x38c))}},{'type':'text','text':_0x2ba11d}];function _0x353bb1(_0x4e47db,_0x9d52e,_0x108a00,_0x48de0b){return _0x380ca5(_0x4e47db,_0x9d52e-0x55,_0x108a00-0x147,_0x108a00- -_0x3e1a39._0x201619);}return yield createToolOutput(_0x2ba11d,{'path':_0x5bdb31[_0xec7126(_0x11de41._0x113251,0x1f4,_0x11de41._0x51ca4c,0x187)],'resolvedPath':_0x8844e1,'created':_0xe1138f['birthtime'][_0x353bb1(0x220,_0x11de41._0x3a3954,0x2bc,_0x11de41._0x38772e)](),'modified':_0xe1138f[_0x353bb1(0x2c6,_0x11de41._0x5ea592,_0x11de41._0x12962e,_0x11de41._0x24c342)]['toISOString'](),'size':_0xe1138f[_0xec7126(0x45,_0x11de41._0x3822c2,0x86,_0x11de41._0x12207)],'mimeType':_0x3b1be4,'encoding':_0xec7126(0x17d,0x218,0x205,_0x11de41._0x3c84cf),..._0x431c15?{'detail':_0x431c15}:{}},_0x184f4b),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
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};