@nuvin/agent-core 0.0.0-rc.1 → 0.0.0-rc.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +53 -5
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -0
- package/dist/chunk-VDDXTXQ4.js +1 -0
- package/dist/chunk-WJMBJOVF.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +17 -3
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +15 -12
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-F0kn75gb.d.ts → provider-adapters-CURkQPbY.d.ts} +1 -1
- package/dist/shared/index.d.ts +8 -3
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +333 -23
- package/dist/tools/index.js +1 -1
- package/dist/{types-D11KxtW1.d.ts → types-Df0vlfj-.d.ts} +75 -27
- package/package.json +14 -4
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
- package/dist/chunk-WVVWOCQ5.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x33ee05,_0x3ee9bd){const _0x236eb7={_0x2911f2:0x471,_0x4bbe59:0x50c,_0x35243b:0x4a6,_0x2d6d29:0xac,_0xcab7aa:0x157,_0x1af998:0x11d,_0x2fc972:0x87,_0x69185f:0x1a9,_0x14f294:0x1a2,_0x236bf6:0x189,_0x238457:0xf5,_0x1c6403:0x114,_0x343e49:0x158,_0xbd34a7:0x49d,_0xd486ad:0x521,_0x796b3b:0x53b,_0x38a66e:0x4f9,_0x3adb7e:0x4f8,_0x2d9b3e:0x53e,_0xe06391:0x5b6,_0x2062d8:0x5ac,_0x37caa5:0x4b5,_0x496e8c:0x4c0,_0x3e57d1:0x57e,_0x19e1a6:0x50d,_0x3edf5b:0x5fa,_0xd375d1:0x52d},_0x533508={_0x32beec:0x369},_0x1351e6=_0x33ee05();function _0x544809(_0x8c7c23,_0x196ad4,_0x561305,_0x82a549){return _0x5314(_0x82a549-0x320,_0x8c7c23);}function _0x6f4054(_0x16bc67,_0x211046,_0x502743,_0xae70d){return _0x5314(_0x502743- -_0x533508._0x32beec,_0x16bc67);}while(!![]){try{const _0x2ee0cc=parseInt(_0x544809(_0x236eb7._0x2911f2,0x4da,_0x236eb7._0x4bbe59,_0x236eb7._0x35243b))/0x1+parseInt(_0x6f4054(-_0x236eb7._0x2d6d29,-_0x236eb7._0xcab7aa,-_0x236eb7._0x1af998,-_0x236eb7._0x2fc972))/0x2+-parseInt(_0x6f4054(-0x1fd,-_0x236eb7._0x69185f,-_0x236eb7._0x14f294,-_0x236eb7._0x236bf6))/0x3*(-parseInt(_0x6f4054(-0x7e,-_0x236eb7._0x238457,-_0x236eb7._0x1c6403,-_0x236eb7._0x343e49))/0x4)+parseInt(_0x544809(0x587,0x4d0,_0x236eb7._0xbd34a7,_0x236eb7._0xd486ad))/0x5+-parseInt(_0x544809(_0x236eb7._0x796b3b,_0x236eb7._0x38a66e,_0x236eb7._0x3adb7e,_0x236eb7._0x2d9b3e))/0x6+-parseInt(_0x544809(0x647,_0x236eb7._0xe06391,0x51f,_0x236eb7._0x2062d8))/0x7*(parseInt(_0x544809(_0x236eb7._0x37caa5,_0x236eb7._0x496e8c,_0x236eb7._0x3e57d1,_0x236eb7._0x19e1a6))/0x8)+parseInt(_0x544809(0x63f,0x52f,0x63a,_0x236eb7._0xe06391))/0x9*(-parseInt(_0x544809(0x60b,_0x236eb7._0x3edf5b,_0x236eb7._0xd375d1,0x596))/0xa);if(_0x2ee0cc===_0x3ee9bd)break;else _0x1351e6['push'](_0x1351e6['shift']());}catch(_0x55806){_0x1351e6['push'](_0x1351e6['shift']());}}}(_0x4186,0xd4673));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WVVWOCQ5.js';import{getTextFromMessage}from'../chunk-C6OLKGP6.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x957778 from'os';import*as _0x369387 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x452c58(0x183,0x1e8,0x145,0x1c0),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0xfbe6a){return _0xfbe6a instanceof Error;}function shellExists(_0x30e4a9){const _0xf784e7={_0x254ed4:0x2a7,_0x49e132:0x35a,_0x212706:0x39f},_0x1b5a53={_0x4f21c0:0x190},_0x1ad0c6={_0x4b78f8:0x1d8};function _0x2a25a8(_0x4eee00,_0x279b81,_0x4503e5,_0x515d92){return _0x452c58(_0x515d92-0x2ea,_0x279b81,_0x4503e5-0x188,_0x515d92-_0x1ad0c6._0x4b78f8);}function _0x23ef26(_0x323baa,_0x5bacbd,_0x1bfff3,_0x967a33){return _0x452c58(_0x323baa-_0x1b5a53._0x4f21c0,_0x1bfff3,_0x1bfff3-0x14a,_0x967a33-0x5d);}try{const _0x5d1d4b=statSync(_0x30e4a9);return _0x5d1d4b[_0x23ef26(0x337,_0xf784e7._0x254ed4,0x354,0x3af)]()&&(_0x5d1d4b[_0x23ef26(_0xf784e7._0x49e132,0x377,0x35a,_0xf784e7._0x212706)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1acab0){const _0x2acb05={_0x3b29dc:0x1d6,_0x13f678:0x2d3,_0x58fdfe:0x258,_0xa09af9:0x259,_0x5e79d3:0x9b,_0x121a45:0x231,_0x1aa899:0x2c3,_0x1d27de:0x27d,_0x1d6a1b:0x20c,_0x6e0a1:0x2d7,_0x1771b6:0x227,_0x8b7b2:0x38,_0xf03629:0x47},_0x1a0aa1={_0x37b224:0xf,_0xac871:0x5a,_0xa213c5:0x3},_0x5977ae={_0x5e876:0x290,_0x327c94:0x12d};function _0x3c5bd0(_0x1dcf44,_0x1075d6,_0x68afef,_0x58ec11){return _0x452c58(_0x68afef- -_0x5977ae._0x5e876,_0x1dcf44,_0x68afef-0x11d,_0x58ec11-_0x5977ae._0x327c94);}if(_0x1acab0)return _0x1acab0;if(_0x957778['platform']()===_0x51aad2(_0x2acb05._0x3b29dc,0x185,0x195,0x15c))return process[_0x51aad2(_0x2acb05._0x13f678,_0x2acb05._0x58fdfe,0x237,_0x2acb05._0xa09af9)][_0x3c5bd0(-0xf5,-0x1,-0x60,-0x4)]||_0x3c5bd0(-0x2,-0x6c,-_0x2acb05._0x5e79d3,-0x115);const _0x25246e=['/bin/bash',_0x51aad2(0x2cb,_0x2acb05._0x121a45,_0x2acb05._0x1aa899,0x1a3),_0x51aad2(_0x2acb05._0x1d27de,_0x2acb05._0x1d6a1b,0x21e,0x22d),'/usr/bin/sh'];for(const _0x4460e4 of _0x25246e){if(shellExists(_0x4460e4))return _0x4460e4;}const _0x3f132a=process[_0x51aad2(_0x2acb05._0x6e0a1,0x258,_0x2acb05._0x1771b6,0x2d1)]['SHELL'];if(_0x3f132a&&shellExists(_0x3f132a))return _0x3f132a;function _0x51aad2(_0x1713d2,_0x55e3f5,_0x410195,_0x1f2ce3){return _0x452c58(_0x55e3f5- -_0x1a0aa1._0x37b224,_0x1f2ce3,_0x410195-_0x1a0aa1._0xac871,_0x1f2ce3-_0x1a0aa1._0xa213c5);}return _0x3c5bd0(-_0x2acb05._0x8b7b2,-_0x2acb05._0xf03629,-0xcd,-0x60);}function buildShellArgs(_0x137730,_0x25a3b8){const _0x3137d9={_0x5dd8b6:0x538,_0x3b1811:0x5e2,_0x2c6063:0x587,_0x730958:0x43d,_0x136a3b:0x4d2},_0xb737a3={_0x29dd19:0x2e2},_0x39b511={_0x53c641:0x53};function _0x696fa8(_0xfe9cf,_0x2a9b9b,_0x4d3dcb,_0x599c54){return _0x452c58(_0x599c54-0x31e,_0xfe9cf,_0x4d3dcb-_0x39b511._0x53c641,_0x599c54-0x152);}if(_0x957778[_0x696fa8(_0x3137d9._0x5dd8b6,_0x3137d9._0x3b1811,0x514,_0x3137d9._0x2c6063)]()==='win32'){const _0x27ff36=/cmd(\.exe)?$/i['test'](_0x25a3b8);return _0x27ff36?['/d','/s','/c',_0x137730]:['-NoLogo',_0x2514a6(_0x3137d9._0x730958,_0x3137d9._0x136a3b,0x465,0x533),'-Command',_0x137730];}function _0x2514a6(_0x351b23,_0x29c346,_0x30b1b2,_0x583ed3){return _0x452c58(_0x29c346-_0xb737a3._0x29dd19,_0x583ed3,_0x30b1b2-0x1c2,_0x583ed3-0x4c);}return['-c',_0x137730];}function stripAnsiAndControls(_0x2485c9){const _0x1048be={_0x471cb5:0x166,_0x5ee668:0x329,_0x1dde75:0x339,_0x5232ec:0x2e9,_0xddc9c3:0x2ed,_0x4d97b5:0x187,_0x51cae8:0x3cd,_0x126b26:0x47d,_0x2090d1:0x112,_0x353b3f:0x1b6,_0x372992:0x38f,_0x1ed619:0x333,_0x686eea:0x147,_0x1356a1:0xa9},_0x59c73a={_0x220327:0x303},_0x31a5dd={_0x56a42e:0x164};_0x2485c9=stripVTControlCharacters(_0x2485c9);const _0x17a9bd='\x1b',_0x30f6fd='\x07';_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x471cb5,-0x12e,-0x194,-0x1ca)](new RegExp(';[^'+_0x30f6fd+_0x3b5591(_0x1048be._0x5ee668,0x355,0x40d,0x39e)+_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x355,0x327,0x320,_0x1048be._0x1dde75)](new RegExp(_0x3b5591(0x2e3,0x28c,_0x1048be._0x5232ec,_0x1048be._0xddc9c3)+_0x17a9bd+'\x5c\x5c','g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-0x11f,-0x12e,-0x18c,-_0x1048be._0x4d97b5)](new RegExp(_0x30f6fd,'g'),''),_0x2485c9=_0x2485c9[_0x3b5591(0x2ff,0x370,0x348,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x371,0x30e,_0x1048be._0x51cae8,0x351)+_0x17a9bd+'\x5c\x5c','g'),'');function _0x3b5591(_0x185064,_0x594016,_0x395017,_0x433098){return _0x452c58(_0x433098-_0x31a5dd._0x56a42e,_0x185064,_0x395017-0x23,_0x433098-0x117);}function _0x23d94e(_0x1dc570,_0x26c95c,_0x1898da,_0x3a866e){return _0x452c58(_0x26c95c- -_0x59c73a._0x220327,_0x1dc570,_0x1898da-0x17c,_0x3a866e-0xa4);}return _0x2485c9=_0x2485c9[_0x3b5591(0x383,0x29e,0x2e1,0x339)](new RegExp(_0x17a9bd+_0x3b5591(0x3d5,_0x1048be._0x126b26,0x46c,0x3f8),'g'),''),_0x2485c9=_0x2485c9[_0x23d94e(-_0x1048be._0x2090d1,-0x12e,-0x15a,-_0x1048be._0x353b3f)](/[\u0080-\u009F]/g,''),_0x2485c9=_0x2485c9[_0x3b5591(_0x1048be._0x372992,_0x1048be._0x1ed619,0x33c,_0x1048be._0x1dde75)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x2485c9=_0x2485c9[_0x23d94e(-0x190,-0x12e,-_0x1048be._0x686eea,-_0x1048be._0x1356a1)](/[\u23CE\u2424]/g,''),_0x2485c9;}function resolveWorkingDirectory(_0x28acd1,_0x3e889f){const _0x377e13={_0x512ac6:0x58,_0x25f588:0x1f,_0x163097:0x5d},_0x2ccb33={_0x12db71:0x14c},_0x39c335={_0x17a302:0x19e};function _0x1c4ead(_0xd80215,_0x499c84,_0x9fdf32,_0x207011){return _0x452c58(_0xd80215-0x27f,_0x207011,_0x9fdf32-0x3f,_0x207011-_0x39c335._0x17a302);}function _0x214195(_0x2b6fc1,_0x3aa4db,_0xceac3d,_0x45c656){return _0x452c58(_0x3aa4db- -0x284,_0x2b6fc1,_0xceac3d-_0x2ccb33._0x12db71,_0x45c656-0xe7);}const _0x154a28=_0x28acd1?_0x369387[_0x214195(-_0x377e13._0x512ac6,0x17,0x57,-0x5a)](_0x28acd1)?_0x28acd1:_0x369387[_0x214195(0xa3,0xe,-_0x377e13._0x25f588,-_0x377e13._0x163097)](_0x3e889f,_0x28acd1):_0x3e889f;try{const _0x4d18ee=statSync(_0x154a28);if(!_0x4d18ee[_0x214195(-0x7f,-0x2d,-0x4b,-0x55)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x154a28,{'cwd':_0x154a28});return _0x154a28;}catch(_0xc7de7b){if(_0xc7de7b instanceof ToolExecutionError)throw _0xc7de7b;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x154a28,{'cwd':_0x154a28});}}function killProcessGroup(_0x545560,_0x456da1,_0x1d7a83=_0x452c58(0x17b,0x10b,0xe8,0x130)){const _0x1dd02e={_0x44692a:0x1ae,_0x3dfc82:0x1f4,_0x524bfd:0x4ec,_0x2e7db5:0x4fe,_0x477e84:0x4f3,_0x12bf06:0x52a,_0x3ed372:0x528,_0x2aca8a:0x5ed,_0x579814:0x453,_0x1dffdd:0x423,_0x2b74a8:0x4b6,_0x103e61:0x1e4,_0x49df28:0x19c,_0x3973a0:0x220,_0x193271:0x52b,_0x238c1b:0x52d,_0x434b52:0x427},_0x1095c2={_0x2614f5:0x1ad,_0x53adab:0x2b0},_0x3acf69={_0x294dc5:0x1ef,_0x51f830:0xb4};if(!_0x545560[_0x462827(_0x1dd02e._0x44692a,_0x1dd02e._0x3dfc82,0x16c,0x1c5)])return;function _0x451baa(_0x536058,_0x3cfe91,_0x584c1c,_0x46d377){return _0x44530c(_0x46d377,_0x3cfe91-_0x3acf69._0x294dc5,_0x584c1c-0x173,_0x584c1c-_0x3acf69._0x51f830);}if(_0x456da1)try{spawn('taskkill',['/pid',_0x545560[_0x451baa(_0x1dd02e._0x524bfd,0x57d,0x512,_0x1dd02e._0x2e7db5)][_0x451baa(_0x1dd02e._0x477e84,0x554,_0x1dd02e._0x12bf06,0x522)](),'/T','/F'],{'stdio':_0x451baa(_0x1dd02e._0x3ed372,_0x1dd02e._0x2aca8a,0x5be,0x61f)});return;}catch{_0x545560[_0x451baa(_0x1dd02e._0x579814,_0x1dd02e._0x1dffdd,_0x1dd02e._0x2b74a8,0x4fb)](_0x1d7a83);return;}function _0x462827(_0x55bedb,_0x5dc30a,_0x24b0aa,_0x59231f){return _0x44530c(_0x59231f,_0x5dc30a-0x1d0,_0x24b0aa-_0x1095c2._0x2614f5,_0x55bedb- -_0x1095c2._0x53adab);}try{process['kill'](-_0x545560[_0x462827(0x1ae,_0x1dd02e._0x103e61,_0x1dd02e._0x49df28,_0x1dd02e._0x3973a0)],_0x1d7a83);}catch{_0x545560[_0x451baa(_0x1dd02e._0x193271,_0x1dd02e._0x238c1b,0x4b6,_0x1dd02e._0x434b52)](_0x1d7a83);}}function appendChunk(_0xab9039,_0x515767,_0x14ef69,_0x4b75a7,_0x535321){const _0x12aedf={_0x197fe0:0x389,_0x13731b:0x2f2,_0x3b40d7:0x396,_0x29eb77:0x511,_0x1dc32a:0x3ea,_0x27d9c0:0x3b8,_0x1e6fd3:0x388,_0x28de35:0x31d},_0x19195c={_0x308582:0x1bb,_0x243817:0x1d5};function _0x10de8a(_0x5cac5c,_0x5ea0a8,_0x545824,_0x4f3a29){return _0x452c58(_0x545824-0x314,_0x5ea0a8,_0x545824-0x11f,_0x4f3a29-0x4e);}function _0x4bbb32(_0x50a689,_0x1abff8,_0x337df9,_0x446517){return _0x452c58(_0x1abff8-_0x19195c._0x308582,_0x50a689,_0x337df9-_0x19195c._0x243817,_0x446517-0x13d);}const _0x53d1f7=_0x4b75a7?stripAnsiAndControls(_0x14ef69):_0x14ef69;if(_0x53d1f7[_0x4bbb32(0x31b,_0x12aedf._0x197fe0,_0x12aedf._0x13731b,_0x12aedf._0x3b40d7)]===0x0)return;_0xab9039[_0x10de8a(0x49d,0x50e,_0x12aedf._0x29eb77,0x483)](_0x53d1f7),_0x515767[_0x4bbb32(_0x12aedf._0x1dc32a,_0x12aedf._0x27d9c0,_0x12aedf._0x1e6fd3,_0x12aedf._0x28de35)](_0x53d1f7),_0x535321();}function createBashTool(_0x364c65={}){const _0x4754ad={_0x95d0bb:0x309,_0x5b5bfc:0x258,_0x525cf0:0x247,_0xa36d6b:0x4b3,_0x5c1702:0x4c4,_0x7d4b0b:0x4d4,_0x4c81a0:0x29b,_0x268547:0x231,_0x31fd6e:0x28d,_0x5da4a4:0x55a,_0x4bcc3a:0x4e6,_0x2b5474:0x538,_0x132c05:0x57f,_0x1ed9c4:0x514,_0x216900:0x275,_0x3561a0:0x39f},_0x977578={_0x2c1a0d:0x244,_0xffcb6d:0x21b,_0x1b76e5:0x1c7,_0x3b545a:0x17d,_0x4f20f2:0x2b5,_0xd493ac:0x283,_0x5bb8b8:0xe4,_0x5e4f26:0x15c,_0x16b304:0x306,_0x265273:0x28a,_0x1e0fa1:0x2ce,_0x3cc407:0x6c,_0x48b2f6:0xbb,_0x488156:0x30,_0x3c02a1:0x19,_0xee0619:0x58,_0x4ee9f2:0xe3,_0x21fb1f:0x2e0,_0x151eb6:0x336,_0x9bd3b:0x29f,_0x257763:0x23e,_0x578c8b:0xaa,_0x11088f:0x41,_0x8e948b:0x240,_0x595531:0x1f9,_0x410f9e:0x143,_0x92942d:0x210,_0x6f422f:0x215,_0x367815:0x175,_0x296445:0x25f,_0x38dd37:0x2c0,_0x4ecb3e:0x2f5,_0x1df16b:0x26c,_0x208b38:0x2ee,_0x280aeb:0x7e,_0x137718:0xaa,_0x2f89bc:0x98,_0x12e0d1:0x1cd,_0x105532:0x1e1,_0x2b7150:0x21b,_0x1112fd:0x1d0,_0x14546b:0x4a,_0x403c01:0x5d,_0x44e35f:0x31,_0x53f2be:0x62,_0x2a6080:0x48,_0x50fc47:0x192,_0x1f0b05:0x1d3,_0x3c3283:0x5,_0x2946fc:0x1ce,_0x5db1ff:0x1aa,_0x5142bd:0x23a,_0x342567:0x2b5,_0x41efb5:0x2f1,_0x40c0f9:0x269,_0x4bf562:0x1dd,_0x4bc008:0x188,_0x56551b:0x1c3,_0xf217d7:0x6,_0x487629:0x251,_0xbda03:0x34,_0xc9e796:0x27,_0x18e4e7:0x71,_0x9950e:0x234,_0x2068d5:0x1e5,_0x445c53:0x13a,_0x34afdd:0x1dd,_0xdcd8a:0x7e,_0x38247c:0xd1,_0x39a5da:0x99,_0x35bb42:0xc1,_0x55d7e4:0x25b,_0x540ff4:0x1c4,_0x41a0db:0x1ef,_0x347b15:0x249,_0x43df5c:0xe,_0x2dd64f:0x50,_0x4531b6:0x96,_0x38d3e5:0xb,_0x995d15:0x49,_0x385016:0x115,_0x172802:0xd6,_0x351a1b:0x12e,_0x339f9c:0x259,_0x487a5e:0x300,_0x574046:0x2c0,_0x1e3be9:0x185,_0xfd8bf3:0x177,_0x504707:0x1c6,_0x4bbd8c:0x53,_0x31d8cc:0x6f,_0x31c085:0x58,_0x1591bc:0x146,_0x487858:0x1a2,_0x4ac4bf:0x1b8,_0xbef472:0x36,_0x3bd105:0x24,_0x3f4e11:0x4,_0x44cb3c:0x12b,_0x229b3d:0x192,_0x3a34f9:0x16b},_0x1610a3={_0x14f995:0x2f8,_0x5b4d13:0x2fa,_0x4a509e:0x319,_0x415af1:0x168,_0x4de917:0x167,_0x586f2e:0x138,_0x2bef94:0x29e,_0x1f65ff:0x383,_0x31ca1c:0x3a4,_0x32ca9c:0x389,_0x3ea7f0:0x2c2},_0x23b60f={_0x34b003:0x69,_0x10f39f:0x2a3},_0x46d3a4={_0x6e185:0x132,_0x2df1b6:0xd0},_0x12d999={_0x36949f:0x2c4,_0x32cf97:0x63},_0x5d9ddf={_0x29066c:0x8e,_0x235e4b:0x1f,_0x42a905:0x16c},_0x4fe77a=_0x369387[_0x48e6f7(0x320,_0x4754ad._0x95d0bb,0x30a,0x2d3)](_0x364c65['defaultCwd']??process[_0x48e6f7(0x257,_0x4754ad._0x5b5bfc,0x280,_0x4754ad._0x525cf0)]()),_0x1ea378=_0x364c65['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS;function _0x48e6f7(_0x1d8d4e,_0x3ab2da,_0x387f8a,_0x266b49){return _0x452c58(_0x1d8d4e-_0x5d9ddf._0x29066c,_0x387f8a,_0x387f8a-_0x5d9ddf._0x235e4b,_0x266b49-_0x5d9ddf._0x42a905);}const _0x620eca=_0x364c65[_0x4c7fb1(0x429,0x472,_0x4754ad._0xa36d6b,_0x4754ad._0x5c1702)]??!![];function _0x4c7fb1(_0x5131d2,_0x514d28,_0x3e5619,_0xc14d49){return _0x452c58(_0xc14d49-_0x12d999._0x36949f,_0x514d28,_0x3e5619-_0x12d999._0x32cf97,_0xc14d49-0x40);}const _0x16f452=_0x364c65['name']??_0x4c7fb1(0x50b,_0x4754ad._0x7d4b0b,0x47a,0x516);return defineTool({'name':_0x16f452,'description':_0x364c65[_0x48e6f7(_0x4754ad._0x4c81a0,_0x4754ad._0x268547,0x2f9,0x227)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x48e6f7(0x307,0x37b,_0x4754ad._0x31fd6e,0x370),'properties':{'command':{'type':'string'},'cwd':{'type':_0x4c7fb1(_0x4754ad._0x5da4a4,0x4b2,_0x4754ad._0x4bcc3a,_0x4754ad._0x2b5474)},'timeoutMs':{'type':_0x4c7fb1(0x59e,0x597,_0x4754ad._0x132c05,_0x4754ad._0x1ed9c4)},'ignoreOutput':{'type':_0x48e6f7(0x30f,_0x4754ad._0x216900,0x2d3,_0x4754ad._0x3561a0)}},'required':['command']},async *'execute'(_0x354d1d,_0x12b9f2){const _0x424bda={_0x29a0bf:0x44a,_0x4f8a98:0x4b6,_0x5c5947:0x46d,_0x5ef6cc:0x502,_0x263f69:0x45b,_0x4775d2:0x548,_0xda88b6:0x582,_0x220ab7:0x544},_0x2671bb={_0x2251ae:0xb3,_0x4bab05:0x9b,_0x4e0744:0xc2},_0x1a8ea5={_0x16e514:0x138},_0x274d96={_0x2b16e3:0x1c4,_0x47f38d:0x246,_0x3148ad:0x1e0},_0xbbf169={_0x9600cd:0xf3,_0x508be7:0x380},_0xf77c0f={_0x193664:0x257,_0x39bf0c:0x144},_0x30346b=_0x354d1d['timeoutMs']??_0x1ea378;if(!Number[_0x5c94c8(_0x977578._0x2c1a0d,_0x977578._0xffcb6d,_0x977578._0x1b76e5,_0x977578._0x3b545a)](_0x30346b)||_0x30346b<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x354d1d[_0x2c87f2(0x102,0xac,0xd6,0x44)]});throwIfAborted(_0x12b9f2['signal']);const _0x288877=resolveWorkingDirectory(_0x354d1d[_0x5c94c8(0x259,0x1b1,0x1ea,0x1f2)],_0x4fe77a),_0x42716c=_0x354d1d[_0x5c94c8(0x1d4,_0x977578._0x4f20f2,0x225,_0x977578._0xd493ac)]??![],_0x36b76e=resolveDefaultShell(_0x364c65['shellPath']),_0x768651=buildShellArgs(_0x354d1d[_0x2c87f2(0x14e,_0x977578._0x5bb8b8,0xd6,_0x977578._0x5e4f26)],_0x36b76e),_0x48ace7=_0x957778[_0x5c94c8(0x30b,_0x977578._0x16b304,_0x977578._0x265273,_0x977578._0x1e0fa1)]()===_0x2c87f2(-0x4a,-_0x977578._0x3cc407,-0x35,-0x91);let _0x2d68d9;try{_0x2d68d9=spawn(_0x36b76e,_0x768651,{'cwd':_0x288877,'env':{...process['env'],..._0x364c65[_0x2c87f2(_0x977578._0x48b2f6,_0x977578._0x488156,0x9e,_0x977578._0x3c02a1)]??{}},'stdio':_0x42716c?['ignore',_0x2c87f2(_0x977578._0xee0619,_0x977578._0x4ee9f2,0xb5,0xd0),_0x5c94c8(_0x977578._0x21fb1f,_0x977578._0x151eb6,_0x977578._0x9bd3b,_0x977578._0x257763)]:['ignore',_0x2c87f2(_0x977578._0x578c8b,-0x1e,0xf,-_0x977578._0x11088f),_0x5c94c8(0x27c,_0x977578._0x8e948b,_0x977578._0x595531,0x1a5)],'shell':![],'windowsHide':!![],'detached':!_0x48ace7});}catch(_0x51fc24){if(isErrnoException(_0x51fc24)&&_0x51fc24[_0x5c94c8(_0x977578._0x410f9e,_0x977578._0x92942d,0x1c3,0x1ea)]==='ENOENT')throw new ToolExecutionError(_0x5c94c8(0x279,_0x977578._0x6f422f,0x210,_0x977578._0x367815)+_0x36b76e,{'command':_0x354d1d[_0x5c94c8(_0x977578._0x296445,0x285,_0x977578._0x38dd37,0x350)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x51fc24 instanceof Error?_0x51fc24[_0x5c94c8(_0x977578._0x4ecb3e,0x2e6,_0x977578._0x1df16b,_0x977578._0x208b38)]:String(_0x51fc24),{'command':_0x354d1d[_0x2c87f2(_0x977578._0x280aeb,_0x977578._0x137718,0xd6,_0x977578._0x2f89bc)],'cwd':_0x288877,'shellPath':_0x36b76e});}const _0xf9743c=[],_0x4e6439=[],_0x120ac3=new StringDecoder(_0x5c94c8(_0x977578._0x12e0d1,_0x977578._0x105532,_0x977578._0x2b7150,_0x977578._0x1112fd)),_0x58dff1=new StringDecoder(_0x2c87f2(_0x977578._0x14546b,-_0x977578._0x403c01,_0x977578._0x44e35f,-0x4e));let _0x3400ae,_0x4c0379=![];function _0x2c87f2(_0x23b405,_0x53b4c3,_0x13d9e1,_0x3da51a){return _0x48e6f7(_0x13d9e1- -_0xf77c0f._0x193664,_0x53b4c3-_0xf77c0f._0x39bf0c,_0x23b405,_0x3da51a-0x16b);}let _0xa9a2e6;const _0x2dbd3d=()=>{if(!_0x3400ae)return;const _0x493ff7=_0x3400ae;_0x3400ae=void 0x0,_0x493ff7();},_0x1b686e=async()=>{if(_0x4e6439['length']>0x0||_0x4c0379)return;await new Promise(_0x47ef89=>{_0x3400ae=_0x47ef89;});},_0x18390c=_0x207bd4=>{function _0x50cf7a(_0x573318,_0x442390,_0x5e733a,_0x27ffd8){return _0x5c94c8(_0x573318-_0xbbf169._0x9600cd,_0x442390-0x7b,_0x442390- -_0xbbf169._0x508be7,_0x573318);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x50cf7a(-0x15b,-_0x274d96._0x2b16e3,-_0x274d96._0x47f38d,-_0x274d96._0x3148ad)](_0x207bd4),_0x620eca,_0x2dbd3d);},_0x59c6b0=_0x2194e6=>{function _0x105dbc(_0xd6b95f,_0x18b4fb,_0x502b74,_0x4ded65){return _0x5c94c8(_0xd6b95f-_0x1a8ea5._0x16e514,_0x18b4fb-0x35,_0xd6b95f- -0xb8,_0x4ded65);}appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x105dbc(0x104,_0x46d3a4._0x6e185,_0x46d3a4._0x2df1b6,0xd5)](_0x2194e6),_0x620eca,_0x2dbd3d);};_0x2d68d9['stdout']?.['on']('data',_0x18390c),_0x2d68d9[_0x2c87f2(-_0x977578._0x53f2be,0x16,-_0x977578._0x2a6080,-0xaf)]?.['on'](_0x5c94c8(0x22b,0x148,_0x977578._0x50fc47,_0x977578._0x1f0b05),_0x59c6b0);let _0x5ac508=![],_0x36613a;const _0x5eca6a=addAbortListener(_0x12b9f2['signal'],()=>{const _0x59c224={_0x27c4d7:0x1e8,_0x5ed084:0x197},_0x12c23f={_0x585f01:0x120};_0xa9a2e6=toAbortError(_0x12b9f2[_0x279068(0xbe,_0x2671bb._0x2251ae,0x84,_0x2671bb._0x4bab05)][_0x279068(0x137,_0x2671bb._0x4e0744,0xee,0x74)]);function _0x279068(_0x2b9209,_0x4ce5b1,_0x2f6b1a,_0xbf7567){return _0x2c87f2(_0x2b9209,_0x4ce5b1-_0x12c23f._0x585f01,_0x2f6b1a-0x89,_0xbf7567-0x82);}_0x4c0379=!![],_0x2dbd3d();function _0x1008da(_0x701d0c,_0x34e727,_0x41996a,_0x2c6dfd){return _0x5c94c8(_0x701d0c-0xb,_0x34e727-_0x59c224._0x27c4d7,_0x701d0c- -_0x59c224._0x5ed084,_0x34e727);}try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}});function _0x5c94c8(_0x362136,_0x333e70,_0x555d51,_0x21cb34){return _0x4c7fb1(_0x362136-_0x23b60f._0x34b003,_0x21cb34,_0x555d51-0xd7,_0x555d51- -_0x23b60f._0x10f39f);}try{const _0x406501=new Promise((_0x1fa49f,_0x443887)=>{const _0x303573={_0x5400ca:0x162,_0x29e8d9:0x14c,_0x45795b:0x18f,_0x5f4078:0x161,_0xe8e9a1:0x1ec,_0x5d6bd3:0x593,_0x3c29d0:0x574,_0x5b3457:0x584},_0xbedadb={_0x41c4b2:0x2cd},_0x5ecd77={_0x55f5b8:0xe8},_0x3ec6fc={_0x396754:0x249,_0x46c297:0x2d1,_0xe4b7c7:0x22,_0x3d8bc7:0x6c},_0x3647ce={_0x2a6af0:0x1e8},_0xc145f4=()=>{const _0xc7e8cb={_0x3205c5:0x309},_0x5bbf63={_0xbe9ae9:0x317};function _0x980433(_0xc0818b,_0x1517cf,_0x65ec71,_0x2c6e1c){return _0x5314(_0x2c6e1c-_0x5bbf63._0xbe9ae9,_0x1517cf);}function _0x5ae2aa(_0x454ab7,_0xcc3be9,_0x4fd529,_0x18a4c0){return _0x5314(_0xcc3be9-_0xc7e8cb._0x3205c5,_0x4fd529);}_0x36613a&&(clearTimeout(_0x36613a),_0x36613a=void 0x0),_0x2d68d9[_0x5ae2aa(_0x424bda._0x29a0bf,_0x424bda._0x4f8a98,0x436,0x474)](_0x980433(0x4ad,0x539,_0x424bda._0x5c5947,0x4d9),_0x139130),_0x2d68d9[_0x5ae2aa(_0x424bda._0x5ef6cc,0x4b6,_0x424bda._0x263f69,_0x424bda._0x4775d2)](_0x980433(_0x424bda._0xda88b6,0x568,0x4e3,_0x424bda._0x220ab7),_0x2991fb);};function _0x28ca20(_0x249922,_0x5cdac7,_0x5286be,_0x29f42a){return _0x2c87f2(_0x5cdac7,_0x5cdac7-0xcd,_0x5286be- -0x12e,_0x29f42a-_0x3647ce._0x2a6af0);}const _0x139130=_0x20ef65=>{_0x4c0379=!![],_0x2dbd3d(),_0xc145f4(),_0x443887(_0xa9a2e6??_0x20ef65);},_0x2991fb=(_0x5ee041,_0x551874)=>{const _0x4dc0df={_0x30db17:0x72};_0x5ac508=!![];function _0x313230(_0x1136dc,_0x5439cd,_0x20430e,_0x15307e){return _0x5314(_0x20430e- -0x16b,_0x5439cd);}appendChunk(_0xf9743c,_0x4e6439,_0x120ac3[_0x232ff4(_0x3ec6fc._0x396754,_0x3ec6fc._0x46c297,0x28e,0x1c7)](),_0x620eca,_0x2dbd3d),appendChunk(_0xf9743c,_0x4e6439,_0x58dff1[_0x313230(_0x3ec6fc._0xe4b7c7,0xcd,_0x3ec6fc._0x3d8bc7,-0x10)](),_0x620eca,_0x2dbd3d),_0x4c0379=!![],_0x2dbd3d();function _0x232ff4(_0x4c0f65,_0x3ab0d2,_0x21eddd,_0x3c279a){return _0x5314(_0x4c0f65-_0x4dc0df._0x30db17,_0x3ab0d2);}_0xc145f4();if(_0xa9a2e6){_0x443887(_0xa9a2e6);return;}_0x1fa49f({'code':_0x5ee041,'signal':_0x551874});};function _0x5f3dad(_0x820ddd,_0x19bd8e,_0xa19a5f,_0x36f29a){return _0x2c87f2(_0x19bd8e,_0x19bd8e-_0x5ecd77._0x55f5b8,_0xa19a5f-0x2d6,_0x36f29a-0x1c3);}_0x36613a=setTimeout(()=>{const _0x428a86={_0x238129:0x70};_0x4c0379=!![];function _0x45b44e(_0x536392,_0xd569ef,_0xc89b54,_0x404343){return _0x5314(_0xd569ef- -_0x428a86._0x238129,_0x536392);}_0x2dbd3d();function _0x1bcf43(_0x20be5f,_0x12e124,_0x29a3cc,_0x4cbbbd){return _0x5314(_0x29a3cc-_0xbedadb._0x41c4b2,_0x4cbbbd);}_0xc145f4();try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}_0x443887(new ToolExecutionError(_0x45b44e(_0x303573._0x5400ca,0x18e,_0x303573._0x29e8d9,0x207)+_0x30346b+_0x45b44e(0x131,_0x303573._0x45795b,_0x303573._0x5f4078,_0x303573._0xe8e9a1),{'command':_0x354d1d[_0x1bcf43(0x579,_0x303573._0x5d6bd3,_0x303573._0x3c29d0,_0x303573._0x5b3457)],'cwd':_0x288877,'shellPath':_0x36b76e,'timeoutMs':_0x30346b,'timedOut':!![]}));},_0x30346b),_0x2d68d9[_0x5f3dad(_0x1610a3._0x14f995,_0x1610a3._0x5b4d13,_0x1610a3._0x4a509e,0x316)](_0x28ca20(-_0x1610a3._0x415af1,-_0x1610a3._0x4de917,-0x13d,-_0x1610a3._0x586f2e),_0x139130),_0x2d68d9[_0x5f3dad(_0x1610a3._0x2bef94,0x2ee,_0x1610a3._0x4a509e,_0x1610a3._0x1f65ff)](_0x5f3dad(_0x1610a3._0x31ca1c,_0x1610a3._0x32ca9c,0x332,_0x1610a3._0x3ea7f0),_0x2991fb);});while(_0x4e6439[_0x2c87f2(0x57,-0x8c,_0x977578._0x3c3283,0x11)]>0x0||!_0x4c0379){if(_0x4e6439[_0x5c94c8(0x222,_0x977578._0x2946fc,0x1ef,0x258)]===0x0){await _0x1b686e();continue;}const _0x14c7a6=_0x4e6439[_0x5c94c8(0x2cf,_0x977578._0x5db1ff,_0x977578._0x5142bd,0x2a9)]();_0x14c7a6!==void 0x0&&(yield _0x14c7a6);}const _0x10dc33=await _0x406501,_0x45ae46=_0x42716c?_0x5c94c8(_0x977578._0x342567,_0x977578._0x41efb5,_0x977578._0x40c0f9,_0x977578._0x4bf562)+(_0x10dc33[_0x5c94c8(0x219,_0x977578._0x4bc008,_0x977578._0x56551b,0x1b8)]??0x0):_0xf9743c[_0x2c87f2(-0xba,-_0x977578._0xf217d7,-0x36,-0xbb)](''),_0x38a736={'command':_0x354d1d[_0x5c94c8(0x2c8,_0x977578._0x487629,0x2c0,0x2b2)],'cwd':_0x288877,'exitCode':_0x10dc33[_0x2c87f2(-0x94,-_0x977578._0xbda03,-_0x977578._0xc9e796,-_0x977578._0x18e4e7)]??0x0,'signal':_0x10dc33[_0x5c94c8(0x1df,_0x977578._0x9950e,_0x977578._0x2068d5,0x25a)],'ignoreOutput':_0x42716c,'shellPath':_0x36b76e,'timeoutMs':_0x30346b};if(_0x10dc33[_0x5c94c8(0x21f,_0x977578._0x445c53,0x1c3,_0x977578._0x34afdd)]!==0x0)throw new ToolExecutionError(_0x45ae46||_0x2c87f2(_0x977578._0xdcd8a,_0x977578._0x38247c,_0x977578._0x39a5da,_0x977578._0x35bb42)+(_0x10dc33[_0x5c94c8(_0x977578._0x55d7e4,0x135,_0x977578._0x56551b,_0x977578._0x540ff4)]??0x0),_0x38a736);return createToolOutput(_0x45ae46,_0x38a736);}catch(_0x505d82){while(_0x4e6439[_0x5c94c8(0x19a,0x199,_0x977578._0x41a0db,_0x977578._0x347b15)]>0x0){const _0x5f291d=_0x4e6439[_0x2c87f2(0x9,_0x977578._0x43df5c,_0x977578._0x2dd64f,0x1b)]();_0x5f291d!==void 0x0&&(yield _0x5f291d);}if(_0x505d82 instanceof ToolExecutionError)throw _0x505d82;if(_0xa9a2e6)throw _0xa9a2e6;if(isErrnoException(_0x505d82)&&_0x505d82[_0x5c94c8(0x1cd,0x15c,0x1c3,0x169)]==='ENOENT')throw new ToolExecutionError(_0x2c87f2(_0x977578._0x4531b6,-_0x977578._0x38d3e5,0x26,-_0x977578._0x995d15)+_0x36b76e,{'command':_0x354d1d[_0x2c87f2(_0x977578._0x385016,0xa2,_0x977578._0x172802,_0x977578._0x351a1b)],'cwd':_0x288877,'shellPath':_0x36b76e});throw new ToolExecutionError(_0x505d82 instanceof Error?_0x505d82[_0x5c94c8(_0x977578._0x339f9c,_0x977578._0x487a5e,0x26c,0x25c)]:String(_0x505d82),{'command':_0x354d1d[_0x5c94c8(0x298,0x2c8,_0x977578._0x574046,0x231)],'cwd':_0x288877,'shellPath':_0x36b76e});}finally{_0x36613a&&clearTimeout(_0x36613a);_0x5eca6a(),_0x2d68d9[_0x5c94c8(_0x977578._0x1e3be9,0x199,0x1c2,_0x977578._0xfd8bf3)]?.[_0x5c94c8(0x1ea,0x23d,_0x977578._0x504707,0x1a3)](_0x2c87f2(-_0x977578._0x4bbd8c,-_0x977578._0x31d8cc,-_0x977578._0x31c085,0xd),_0x18390c),_0x2d68d9[_0x5c94c8(0x1df,_0x977578._0x1591bc,_0x977578._0x487858,_0x977578._0x4ac4bf)]?.[_0x2c87f2(_0x977578._0xbef472,-0x7c,-_0x977578._0x3bd105,-_0x977578._0x3f4e11)](_0x5c94c8(0x127,_0x977578._0x44cb3c,_0x977578._0x229b3d,_0x977578._0x3a34f9),_0x59c6b0);if(!_0x5ac508&&_0x2d68d9[_0x2c87f2(-0x44,-0x2,0x9,-0x21)]&&!_0x2d68d9['killed'])try{killProcessGroup(_0x2d68d9,_0x48ace7);}catch{}}}});}function createShellExecTool(_0x3de247={}){return createBashTool(_0x3de247);}function tokenizeArgs(_0x451fed){const _0x2c16ce={_0x4c6446:0x348,_0x3702b6:0x2fa,_0x274fca:0x2c2,_0x493fa5:0x28a,_0x5dbec8:0x317,_0x51f158:0x2fc,_0x43126b:0x35d,_0x518a28:0x332,_0x54cafe:0x385},_0x41d0ff={_0x1761b7:0xa0,_0x94a9b2:0x143},_0x4cc044={_0x36779f:0x157,_0x360f3a:0x0};function _0x568e4b(_0x267f1b,_0xe9999c,_0x3dc6e4,_0x5cf33a){return _0x452c58(_0x267f1b-_0x4cc044._0x36779f,_0x3dc6e4,_0x3dc6e4-_0x4cc044._0x360f3a,_0x5cf33a-0x66);}const _0x240764=[];let _0x3d8ff9='',_0x3fbeec=0x0;while(_0x3fbeec<_0x451fed[_0x568e4b(0x325,0x38f,0x361,0x2ce)]){const _0x1df05c=_0x451fed[_0x3fbeec];if(_0x1df05c==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x568e4b(0x325,0x343,_0x2c16ce._0x4c6446,_0x2c16ce._0x3702b6)])_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2;else{if(_0x1df05c==='\x22'||_0x1df05c==='\x27'){const _0x2e5d98=_0x1df05c;_0x3fbeec++;while(_0x3fbeec<_0x451fed['length']&&_0x451fed[_0x3fbeec]!==_0x2e5d98){_0x451fed[_0x3fbeec]==='\x5c'&&_0x3fbeec+0x1<_0x451fed[_0x3239a8(_0x2c16ce._0x274fca,_0x2c16ce._0x493fa5,_0x2c16ce._0x5dbec8,0x36f)]?(_0x3d8ff9+=_0x451fed[_0x3fbeec+0x1],_0x3fbeec+=0x2):(_0x3d8ff9+=_0x451fed[_0x3fbeec],_0x3fbeec++);}_0x3fbeec++;}else _0x1df05c!==void 0x0&&/\s/[_0x568e4b(0x304,_0x2c16ce._0x51f158,_0x2c16ce._0x43126b,0x32e)](_0x1df05c)?(_0x3d8ff9&&(_0x240764[_0x3239a8(0x387,_0x2c16ce._0x518a28,0x346,0x341)](_0x3d8ff9),_0x3d8ff9=''),_0x3fbeec++):(_0x3d8ff9+=_0x1df05c,_0x3fbeec++);}}function _0x3239a8(_0x36a4c1,_0x6ae009,_0x56b1dc,_0x150ef6){return _0x44530c(_0x36a4c1,_0x6ae009-0x3c,_0x56b1dc-_0x41d0ff._0x1761b7,_0x56b1dc- -_0x41d0ff._0x94a9b2);}if(_0x3d8ff9)_0x240764[_0x568e4b(0x354,0x323,_0x2c16ce._0x54cafe,0x356)](_0x3d8ff9);return _0x240764;}function renderCommandPrompt(_0x888a9a,_0x7cfa58,_0x39a67b){const _0x57280d={_0x29812f:0x144,_0x1b3d02:0xcf,_0x38f89d:0xa2,_0xa26972:0x190,_0x52afe8:0x119,_0x7da94f:0x101,_0x1d129e:0xd2,_0x484ce1:0x14b,_0x630b61:0x165,_0x5146db:0xf9,_0x390878:0x2a,_0x7f750:0x62,_0x3218d6:0x84,_0x134e1a:0xf3},_0x3d5ea4={_0x26e68a:0xb1,_0x57e298:0xf5,_0x373be7:0x527},_0x2b5ffb={_0x230fa8:0xa};let _0xec9b2f=_0x888a9a,_0x56e611=![];const _0x5b8eaa=tokenizeArgs(_0x39a67b);function _0x591d7e(_0x5c1a1c,_0x1ea933,_0x2730f8,_0x5e0510){return _0x452c58(_0x5e0510- -0x2ce,_0x1ea933,_0x2730f8-_0x2b5ffb._0x230fa8,_0x5e0510-0x13a);}_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x29812f,-_0x57280d._0x1b3d02,-0xdd,-0xf9)](/\$ARGUMENTS\[(\d+)\]/g,(_0x551460,_0x28f598)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x28f598)]??'';}),_0xec9b2f=_0xec9b2f[_0x37487a(-0x110,-_0x57280d._0x38f89d,-0xc6,-0x2f)](/\$ARGUMENTS\b/g,()=>{return _0x56e611=!![],_0x39a67b;});if(_0x7cfa58)for(let _0x353122=0x0;_0x353122<_0x7cfa58[_0x591d7e(-_0x57280d._0xa26972,-_0x57280d._0x52afe8,-0x12e,-0x100)];_0x353122++){const _0x29842e=_0x7cfa58[_0x353122];_0x29842e&&(_0xec9b2f=_0xec9b2f[_0x591d7e(-_0x57280d._0x7da94f,-_0x57280d._0x1d129e,-_0x57280d._0x484ce1,-0xf9)](new RegExp('\x5c$'+_0x29842e+'\x5cb','g'),()=>{return _0x56e611=!![],_0x5b8eaa[_0x353122]??'';}));}_0xec9b2f=_0xec9b2f[_0x591d7e(-0x84,-0x114,-_0x57280d._0x630b61,-_0x57280d._0x5146db)](/\$(\d+)\b/g,(_0x4d47e4,_0x211e67)=>{return _0x56e611=!![],_0x5b8eaa[Number(_0x211e67)]??'';});function _0x37487a(_0x4fc903,_0x4ae40f,_0x48b6eb,_0x4c331d){return _0x44530c(_0x4c331d,_0x4ae40f-_0x3d5ea4._0x26e68a,_0x48b6eb-_0x3d5ea4._0x57e298,_0x48b6eb- -_0x3d5ea4._0x373be7);}return!_0x56e611&&_0x39a67b[_0x37487a(0x56,-0x62,-0x41,_0x57280d._0x390878)]()&&(_0xec9b2f=_0xec9b2f+_0x591d7e(-_0x57280d._0x7f750,-0x72,-_0x57280d._0x3218d6,-_0x57280d._0x134e1a)+_0x39a67b),_0xec9b2f;}function buildDescription(_0x2138c3){const _0x379fb6={_0x2aa504:0x520,_0x24e68e:0x470,_0x3ef7fd:0xbd,_0x4c6c49:0xd0,_0x2562b8:0x126,_0x175926:0x118,_0x58cecd:0xca,_0x4d3889:0x40,_0x1e6a1b:0x1f,_0x587284:0x4f,_0x83373e:0x44e,_0x9fe0b6:0x4e0,_0x2626e4:0x4b0,_0x2527da:0x417,_0x326819:0x508,_0x4cc8ee:0x48c,_0x4a4636:0x4b6,_0x303518:0x4c6,_0x574ff2:0x4b6,_0x41e60b:0x49b,_0x4e07f8:0x418,_0x5e7de0:0x522,_0x22c563:0x48e},_0x565d67={_0x365c4e:0xe0},_0x3db593={_0x51495f:0x172};function _0x658768(_0x180d93,_0x3e1123,_0x13fce9,_0x3e02b7){return _0x44530c(_0x13fce9,_0x3e1123-0x12e,_0x13fce9-_0x3db593._0x51495f,_0x3e02b7- -0x511);}function _0x4a9751(_0x47b571,_0x1b0603,_0x20d4cb,_0x28c928){return _0x452c58(_0x47b571-0x2fb,_0x28c928,_0x20d4cb-_0x565d67._0x365c4e,_0x28c928-0x1e9);}if(_0x2138c3[_0x4a9751(0x4c9,_0x379fb6._0x2aa504,_0x379fb6._0x24e68e,0x447)]===0x0)return[_0x658768(-0xd0,-0xd2,-_0x379fb6._0x3ef7fd,-_0x379fb6._0x4c6c49),_0x658768(-_0x379fb6._0x2562b8,-_0x379fb6._0x175926,-0x12e,-_0x379fb6._0x58cecd),_0x658768(-_0x379fb6._0x4d3889,_0x379fb6._0x1e6a1b,-0x2a,-_0x379fb6._0x587284)][_0x4a9751(0x48e,0x457,_0x379fb6._0x83373e,_0x379fb6._0x9fe0b6)]('\x0a');const _0x186032=[_0x4a9751(_0x379fb6._0x2626e4,_0x379fb6._0x2527da,_0x379fb6._0x326819,_0x379fb6._0x4cc8ee),_0x4a9751(_0x379fb6._0x4a4636,_0x379fb6._0x303518,_0x379fb6._0x574ff2,0x46a),_0x4a9751(_0x379fb6._0x41e60b,_0x379fb6._0x4e07f8,0x503,_0x379fb6._0x5e7de0),..._0x2138c3['map'](_0x570deb=>_0x570deb[_0x4a9751(0x550,0x4f3,0x55c,0x4c7)]?'-\x20'+_0x570deb[_0x4a9751(0x4b9,0x546,0x52b,0x4d0)]+'\x20'+_0x570deb[_0x4a9751(0x550,0x587,0x55f,0x54b)]+':\x20'+_0x570deb[_0x4a9751(0x508,0x49d,0x4a6,0x572)]:'-\x20'+_0x570deb[_0x658768(-0x157,-0x72,-0xc0,-0xc7)]+':\x20'+_0x570deb[_0x658768(-0xf3,-0x62,-0xef,-0x78)])];return _0x186032[_0x4a9751(_0x379fb6._0x22c563,0x4af,0x497,0x469)]('\x0a');}function createInvokeCommandTool(_0x6cdde5){const _0x25083b={_0x144cc4:0x2e9,_0x1e385f:0x30a,_0x6768b:0x2cf,_0x439f3d:0x236,_0x1ba49e:0x2ce,_0xeb2cb1:0x2c8,_0x10e5b1:0x295,_0x3b9ffc:0x25c,_0x3fcbb3:0x28f,_0x367a29:0x226,_0x2594a8:0x277,_0x5eb880:0x2e5,_0x1975b2:0x3ac,_0x3ac303:0x24b,_0x429ed6:0x2c3,_0x155894:0x23b},_0x3ea06a={_0x3b5f9d:0x24b,_0x5896ab:0x307,_0x3f201b:0x31d,_0x4f4afc:0x309,_0x3be6ae:0x2e9,_0x3a2fef:0x263,_0x303587:0x370,_0xb39370:0x3ac,_0x3b21c7:0x2a6,_0x5e87ae:0x321,_0x5b8778:0x2de,_0x469899:0x34c,_0x5be7e8:0x1b3,_0x12c3af:0x15f,_0x240a46:0x113,_0x512cca:0x1b7,_0x4b461e:0x2c2,_0x195aca:0x2da,_0x38fe3a:0x333,_0x292e55:0x2de,_0x98ae4c:0x31b,_0x560155:0x334,_0x288578:0x315,_0x5eec72:0x2ce,_0x1d92b8:0x2e4},_0x435380={_0x553ee8:0xfa,_0x12b2d6:0x157,_0x44ced7:0xb4},_0x6ce211={_0x16d634:0x125,_0x4dc0f0:0x220},_0x478cc8={_0x556c2d:0x103,_0x11d52f:0x1db};function _0x595237(_0x824086,_0x318bf0,_0x478a20,_0x13d5e4){return _0x44530c(_0x13d5e4,_0x318bf0-0x1d8,_0x478a20-_0x478cc8._0x556c2d,_0x478a20- -_0x478cc8._0x11d52f);}function _0x42a155(_0x5750ea,_0x55d194,_0x5d59ff,_0x578127){return _0x44530c(_0x578127,_0x55d194-_0x6ce211._0x16d634,_0x5d59ff-0x3a,_0x5d59ff- -_0x6ce211._0x4dc0f0);}const _0x4f6b05=new Map(_0x6cdde5[_0x595237(0x2ad,_0x25083b._0x144cc4,_0x25083b._0x1e385f,0x36e)][_0x42a155(_0x25083b._0x6768b,_0x25083b._0x439f3d,0x28d,_0x25083b._0x1ba49e)](_0xe5a983=>[_0xe5a983[_0x42a155(0x27f,0x2b3,0x22a,0x1c7)],_0xe5a983])),_0x3e1c90=buildDescription(_0x6cdde5[_0x595237(_0x25083b._0xeb2cb1,_0x25083b._0x10e5b1,0x30a,0x395)]);return defineTool({'name':_0x595237(_0x25083b._0x3b9ffc,_0x25083b._0x3fcbb3,0x29f,_0x25083b._0x367a29),'description':_0x3e1c90,'inputSchema':{'type':_0x42a155(_0x25083b._0x2594a8,0x364,_0x25083b._0x5eb880,0x2d9),'properties':{'name':{'type':'string'},'args':{'type':_0x595237(0x30f,_0x25083b._0x1975b2,0x325,0x2a7)}},'required':[_0x42a155(_0x25083b._0x3ac303,_0x25083b._0x429ed6,0x22a,_0x25083b._0x155894)]},async *'execute'(_0x21faaa){const _0x1f3c52={_0x2410f4:0x152},_0x420f6c=_0x4f6b05['get'](_0x21faaa[_0xcfe552(0x2de,_0x3ea06a._0x3b5f9d,0x2f5,_0x3ea06a._0x5896ab)]);if(!_0x420f6c){const _0x434306=Array['from'](_0x4f6b05[_0xcfe552(0x36f,0x324,_0x3ea06a._0x3f201b,_0x3ea06a._0x4f4afc)]())[_0xcfe552(0x2b3,0x220,_0x3ea06a._0x3be6ae,_0x3ea06a._0x3a2fef)](',\x20');throw new ToolExecutionError(_0xcfe552(0x337,_0x3ea06a._0x303587,_0x3ea06a._0xb39370,_0x3ea06a._0x3b21c7)+_0x21faaa['name']+_0xcfe552(0x38b,_0x3ea06a._0x5e87ae,0x2f1,0x32e)+_0x434306,{'name':_0x21faaa[_0xcfe552(_0x3ea06a._0x5b8778,0x2ba,0x24e,_0x3ea06a._0x469899)]});}const _0x286b6a=await _0x6cdde5[_0x39572d(_0x3ea06a._0x5be7e8,_0x3ea06a._0x12c3af,0x11d,0xbb)](_0x420f6c),_0x1b993e=_0x21faaa['args']??'',_0x457f1f=renderCommandPrompt(_0x286b6a[_0x39572d(_0x3ea06a._0x240a46,_0x3ea06a._0x512cca,0x13d,0x16d)],_0x286b6a[_0xcfe552(0x2fc,_0x3ea06a._0x4b461e,_0x3ea06a._0x195aca,_0x3ea06a._0x38fe3a)],_0x1b993e);yield createToolOutput(_0x457f1f,{'id':_0x286b6a['id'],'name':_0x286b6a[_0xcfe552(_0x3ea06a._0x292e55,_0x3ea06a._0x98ae4c,0x33b,_0x3ea06a._0x560155)],'path':_0x420f6c[_0xcfe552(0x29d,_0x3ea06a._0x288578,_0x3ea06a._0x5eec72,0x247)][_0xcfe552(0x2d7,0x251,0x2e8,_0x3ea06a._0x1d92b8)]});function _0xcfe552(_0x265301,_0xf63813,_0x954b08,_0x5c506c){return _0x42a155(_0x265301-_0x435380._0x553ee8,_0xf63813-_0x435380._0x12b2d6,_0x265301-_0x435380._0x44ced7,_0xf63813);}function _0x39572d(_0xc4dd3e,_0x123a21,_0x4496f3,_0x262ad2){return _0x42a155(_0xc4dd3e-0xd7,_0x123a21-0xa1,_0x4496f3- -_0x1f3c52._0x2410f4,_0x123a21);}return void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0xa29099,writeFile}from'fs/promises';import*as _0x5afd85 from'path';import{stat}from'fs/promises';import*as _0x31f93b from'path';function _0x4186(){const _0x48f90c=['rMLSzu5LDW','B25Jzq','zgvZy3jPChrPB24','twLJCM9ZB2z0','ls1YzwDLEha','CMLWz3jLCcbMywLSzwq6ia','zMfPBgvK','C2vYDMvYCW','l3vZCI9IAw4VCMC','lNrTCc4','zgvMyxvSDen3za','oduZmZG4nfLkAujzBG','q29TBwfUzcaN','r3jLCa','C2HPzNq','ywXSB3DLzfrVB2XZ','l3vZCI9IAw4VyMfZAa','zgvSzwDHDgvKlxj1BI0','Dg9VBa','C3rVCMfNzurPCG','D2HPy2GGCMC','Dg9VBfjLC3vSDhm','BwfW','ignVBxbSzxrLzc4','Aw5ZDhj1y3rPB25Z','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','y2XVC2u','mc4WlJa','C2vZC2LVBKLK','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','AxndB250zxH0','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','CMvZDwX0','CMvHC29U','C2vYDMvYtMfTzq','q29Tu3bLyW','ChjVCgvYDgLLCW','rMLSzuvKAxq','yxv0Aa','qxnZAwDUvgfZAW','Dg9VBhmVy2fSBa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','ywDLBNrjza','qxv0Ag9YAxPHDgLVBG','xg5DkJ8','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lw5i','ugf0AcbPCYbUB3qGysbMAwXLoIa','C2vUza','qMvHCMvYia','l2jPBI9ZAa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','DxjS','C3rYAw5NAwz5','mZa3mJm0CgDWA293','C3jJl3nOyxjLzc90ExbLCY50CW','Bg9HzfnRAwXS','Dhj1BMm','zxHPDcbJB2rLia','CgfJA2fNzs5QC29U','u2TPBgWGjW','BwvZC2fNzq','Dg9VBenHBgXjza','ndi2nZC0ogjfs3rcqq','rMLSzsb3CML0DgvUigf0ia','A2v5CW','BNvTyMvY','B25szwrPCMvJDa','qMfZAa','yMfZzw5HBwu','yxjNCW','yxjNDw1LBNriAw50','lMPZB24','AxneAxjLy3rVCNK','C3bSAxq','y29TBwfUzhm','DhjPBq','Dg9VBhm','zMLSzvbHDgG','DhLWzq','y2fSBgjHy2TvCMW','l3vZCI9SB2nHBc9IAw4VCMC','AxrLBxm','y29UzMLN','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','B2XKvgv4Da','Ahr0Ca','ywDLBNrZ','zw52','ls1MB2XSB3C','CgXHDgzVCM0','tM8GC3vJAcbMAwXLoIaN','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','BgLZDfrVB2XZ','Dg9Rzw5Z','mtyWtxzwr1DA','Aw5JBhvKzq','CMvXDwLYzwq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNjVBq','CMvSyxrPDMu','C3rYAw5N','BwLU','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','B2f1DgG','ru5pru5u','B2jQzwn0','ls1NBg9IpseUz2L0lYO','zMLUywXnzxnZywDL','y29UC3rYDwn0B3i','zw50CMLLCW','AwDUB3jL','zgLZywjSzwq','y2XPzw50twv0ywrHDgfvCMW','yM9VBgvHBG','C2vYDMvY','C29YDa','n2LtB3DNvq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','yMLYDgH0Aw1L','Aw5KzxHpzG','AxnbCNjHEq','tunqihnLCNzLCIa','y2f0y2G','BxrPBwvnCW','AgvHzgvYCW','CMvXDwvZDa','ndG0nJvrrurvChC','BNv2Aw4','DhjHBNnWB3j0','zgLYBMfTzq','CMvZB2X2zq','y29UBMvJDa','wZ0+nY04kcLD','y29UDgvUDa','Bg9JywXLq29TCgfYzq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','BwnWxW','CNvUswq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','AxnbyNnVBhv0zq','AxnfCNjVCG','C2nVCgvZ','y2XPzw50','y29TBwfUza','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','qMfZzsbKAxjLy3rVCNK6ia','Bwf4','Dg9Rzw5tDg9YywDLs2v5','ls1MAwXLCW','ls1OAwrKzw4','BgLUzvn0yxj0','yxnZAwDU','BMv3vgv4Da','zgf0yq','CMfUzg9T','Dg9Rzw4','zgLZy292zxj5','Cgf0DgvYBIbPCYbYzxf1AxjLza','A2LSBa','y29UBMvJDgLVBG','D2HLCMuGCMC','ig1HDgnO','ihDHCYbHyM9YDgvKlG','u0Lhs0Lmta','Aw50zwDLCG','C291CMnL','mZaZmJu0t25lvxvd','l2jPBI9YzW','Aw5WDxrty2HLBwe','C3rKzxjY','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgLNzxn0','v2LUr2v0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y29UBMvJDgvK','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','o1TExg5DkJ8','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','DgfZAW','yMvHCMvY','y2HHCKnVzgvbDa','vw5HDxrOB3jPEMvKrxjYB3i','y2fSBfrVB2W','C2HHmJu2','ls1NBg9I','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','AM9PBG','D2LUmZi','Aw5WDxq','tNv2Aw4','tgLUzsa','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zgLYzwn0B3j5','D3jPDgu','ywXS','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','uhjVz3jHBuzPBgvZkhG4nIK','qxzHAwXHyMXLignVBw1HBMrZoG','C3rKB3v0','y29Kzq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','B2zM','AxngAw5PDgu','AxngAwXL','B3v0Chv0','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','BgLUzvrLEhq','C3jJl2fNzw50l2fNzw50lNrZ','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','DgvZDa','DMvYAwzPzxi','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','yxv0Ag9YAxPHDgLVBL9JB2rL','igzYB20G','yxjYyxK','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','BxrPBwu','Cgf0Aa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','r2XVyG','zxjYB3i','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','y3jSzG','zMLSDgvY','BMfTzq','m21SAxvRwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','B3jPz2LUvg9VBenHBgXjza','lI4U','l2jPBI9IyxnO','C2LNBMfS','BgLTAxq','ChjLzML4','C3rHDgu','CNvUBMLUzW','y3DK','Bw9Kzq','Bwf0y2HLCW','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ugf0AcbUB3qGzM91BMq6ia','BgvUz3rO','zw5K','C2XPy2u','Dg9ju09tDhjPBMC','CgLK','C2TPBgXZ','CgfYC2vjBNq','CMvWBgfJzq','zgLZy292zxj5u3rHDgu','Dgv4Da','CgLWzq','ywjVCNrLza','BM93','cGPbuKDvtuvovfm6ia','yxjNDw1LBNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','u3rHCNrLzcbHz2vUDcbYDw4G','C2v0','C3rHDhvZ','zw5HyMXLza','DhjPBuvUza','ls0T','zxjYB3jnzxnZywDL','mte3mZy2ngXsBLzZDW','tunqihrVB2WG','CMvMCMvZAf90B2TLBG','BgLUzuvUza','rMLSzvjLywq','Dg9tDhjPBMC','tg9HzgvKigzYB206ia','igzHAwXLzc4','w1bFxL1BxhnCu10QpW','sw52B2TLq29TBwfUza','u2HLBgWGBM90igzVDw5KoIa','lu5VuhjVzMLSzq','y29KzvzLCMLMAwvY','y29UDgv4Da','zMLSzq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','y21KlMv4zq','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','ig1Z','z2v0','ntaWnJG4nuzurwXOBa','DxrMoa','zhj5uNvU','DxbKyxrL','ChvZAa','CMCUzxHL','y2XPzw50sw5MB3jTyxrPB24','C3rYAxbbBNnP','C3LTBgLUAW','CMLWz3jLCa','Bg9HzenVBw1HBMq','AwDUB3jLt3v0Chv0','Cgf0DgvYBG','Agv4','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C2L6zq','z2XVyG'];_0x4186=function(){return _0x48f90c;};return _0x4186();}function resolveWorkspacePath(_0x4fb237,_0x373ad8){const _0x250845={_0x75a60a:0x3b5,_0x5f0c7b:0x351,_0x5a2858:0x2fe,_0x37ec79:0x338,_0x3f9e3f:0x2ef,_0x294dfc:0x343,_0x242e00:0x2f2},_0x569ff6={_0x45de4f:0x123,_0x5885ab:0xbd,_0x10b765:0x120},_0x23bd77={_0x24c58b:0x5b},_0x44bceb=_0x31f93b[_0x157155(_0x250845._0x75a60a,0x429,_0x250845._0x5f0c7b,0x333)](_0x4fb237),_0x5ca260=_0x31f93b[_0x1858d3(0x37c,0x3d2,0x2a1,0x33a)](_0x44bceb,_0x373ad8);function _0x1858d3(_0x5d44d2,_0x38103e,_0x397366,_0x326a1d){return _0x44530c(_0x38103e,_0x38103e-_0x23bd77._0x24c58b,_0x397366-0x6b,_0x326a1d- -0x1e4);}const _0x2f5136=_0x31f93b[_0x157155(0x396,0x376,_0x250845._0x5a2858,0x40b)](_0x44bceb,_0x5ca260);function _0x157155(_0x119dc0,_0x1f5c9f,_0x4e0653,_0x52bd1a){return _0x452c58(_0x119dc0-_0x569ff6._0x45de4f,_0x1f5c9f,_0x4e0653-_0x569ff6._0x5885ab,_0x52bd1a-_0x569ff6._0x10b765);}if(_0x2f5136===''||!_0x2f5136['startsWith']('..')&&!_0x31f93b[_0x1858d3(_0x250845._0x37ec79,0x2fc,_0x250845._0x3f9e3f,_0x250845._0x294dfc)](_0x2f5136))return _0x5ca260;throw new ToolExecutionError(_0x157155(0x2c0,0x34a,0x257,_0x250845._0x242e00)+_0x373ad8,{'path':_0x373ad8,'rootDir':_0x44bceb});}async function assertWorkspaceFile(_0x430b4b){const _0xda8109={_0xe42ab1:0x282,_0x34e98c:0x2a7},_0x4f4b6e={_0x3fdc01:0x128};function _0x4b2c38(_0x1d8ca0,_0x5af609,_0x4e0963,_0x14b6bb){return _0x44530c(_0x1d8ca0,_0x5af609-0x6e,_0x4e0963-_0x4f4b6e._0x3fdc01,_0x4e0963- -0x247);}const _0x349182=await stat(_0x430b4b);if(!_0x349182['isFile']())throw new ToolExecutionError(_0x4b2c38(0x1e6,0x1e6,_0xda8109._0xe42ab1,_0xda8109._0x34e98c)+_0x430b4b,{'path':_0x430b4b});}function isProbablyBinary(_0x332eb8){return _0x332eb8['includes'](0x0);}function detectEol(_0x2687fd){const _0x2f83e8={_0xc508d9:0x158,_0x11765e:0x205,_0x5caceb:0x497,_0x5b8954:0x40c,_0x38e121:0x4a4,_0x3a19f8:0x1f1,_0x35d9fc:0x3de,_0x272063:0x412},_0x150a08={_0x46b0bd:0x10a};function _0x40a47b(_0x23d735,_0x26d96b,_0x119041,_0x574b43){return _0x452c58(_0x26d96b- -0x9,_0x574b43,_0x119041-0xdc,_0x574b43-_0x150a08._0x46b0bd);}function _0x49aa81(_0x5dcf16,_0x3dcd62,_0x244c69,_0x2d71db){return _0x452c58(_0x244c69-0x2ba,_0x5dcf16,_0x244c69-0xad,_0x2d71db-0x48);}return/\r\n/[_0x40a47b(_0x2f83e8._0xc508d9,0x1a4,_0x2f83e8._0x11765e,0x187)](_0x2687fd[_0x49aa81(_0x2f83e8._0x5caceb,_0x2f83e8._0x5b8954,_0x2f83e8._0x38e121,0x4aa)](_0x40a47b(0x183,_0x2f83e8._0x3a19f8,0x21e,0x217)))?_0x49aa81(_0x2f83e8._0x35d9fc,_0x2f83e8._0x272063,0x476,0x501):'lf';}function normalizeToLf(_0x2c7b9c){const _0x3ca612={_0x418a84:0x2f2,_0x1e586a:0x365,_0x90094d:0x332},_0x451595={_0x3e1c34:0x93,_0x135558:0x12f};function _0x3ff5f7(_0x4d9a52,_0x1bd8d3,_0x144baf,_0x3b768a){return _0x44530c(_0x4d9a52,_0x1bd8d3-0xf9,_0x144baf-_0x451595._0x3e1c34,_0x3b768a- -_0x451595._0x135558);}return _0x2c7b9c[_0x3ff5f7(0x3b7,_0x3ca612._0x418a84,_0x3ca612._0x1e586a,_0x3ca612._0x90094d)](/\r\n/g,'\x0a');}function convertEol(_0xa2c506,_0x63f7f7){const _0x39d88f={_0x4e41a7:0x47f,_0x3a207c:0x45d,_0x371d08:0x449,_0x34637c:0x49b},_0x4b9663={_0x1c6a38:0x6f},_0x474337={_0x2307f7:0x167,_0xef2b3a:0x157,_0xde14ee:0x3a};function _0x54b509(_0x2bd70d,_0x415926,_0x306ca4,_0x136182){return _0x44530c(_0x2bd70d,_0x415926-_0x474337._0x2307f7,_0x306ca4-_0x474337._0xef2b3a,_0x415926-_0x474337._0xde14ee);}function _0xfc0df9(_0x3b7376,_0x61ee22,_0x4795b2,_0x2c2c1e){return _0x44530c(_0x61ee22,_0x61ee22-0xe,_0x4795b2-_0x4b9663._0x1c6a38,_0x2c2c1e- -0x1b6);}return _0x63f7f7===_0x54b509(_0x39d88f._0x4e41a7,0x482,_0x39d88f._0x3a207c,0x4b0)?_0xa2c506[_0x54b509(_0x39d88f._0x371d08,_0x39d88f._0x34637c,0x518,0x52d)](/\n/g,'\x0d\x0a'):_0xa2c506;}async function atomicWrite(_0x2d5ae3,_0x4bbb9f){const _0xca5519={_0x17fa08:0x105,_0x3a28ec:0xdb,_0x3ae6d2:0x1e8,_0x823d22:0x204,_0x237d52:0x1bd,_0x419573:0x2cc,_0x46b2e6:0x2c4,_0x13d5f0:0x161,_0x253c3d:0x1f7,_0x4f603e:0x2ac,_0x39ff05:0x25b,_0x3c6ca2:0x1fa,_0x5f50e8:0x179,_0xa64e26:0x19c},_0x530c10={_0x17d5f0:0x71,_0x155f87:0x1c2,_0xaf8358:0xe8},_0x77ecce={_0x2821d8:0x184,_0x31c8af:0x5f8},_0xff6baa=_0x5afd85[_0x3b1065(-0x7b,-_0xca5519._0x17fa08,-0x14a,-_0xca5519._0x3a28ec)](_0x2d5ae3);function _0x3b1065(_0x2bb880,_0x28626b,_0x91d912,_0xd2623e){return _0x44530c(_0x2bb880,_0x28626b-_0x77ecce._0x2821d8,_0x91d912-0x179,_0xd2623e- -_0x77ecce._0x31c8af);}const _0x48d884=_0x5afd85[_0x426fde(_0xca5519._0x3ae6d2,_0xca5519._0x823d22,0x241,_0xca5519._0x237d52)](_0xff6baa,'.tmp.'+_0x5afd85[_0x426fde(_0xca5519._0x419573,_0xca5519._0x46b2e6,0x314,0x2dd)](_0x2d5ae3)+'.'+Date[_0x426fde(0x2df,0x24b,0x21d,0x1ff)]()+'.'+Math[_0x3b1065(-_0xca5519._0x13d5f0,-_0xca5519._0x253c3d,-0x26b,-0x1fa)]()[_0x426fde(_0xca5519._0x4f603e,_0xca5519._0x39ff05,0x2d3,_0xca5519._0x3c6ca2)](0x24)[_0x3b1065(-_0xca5519._0x5f50e8,-0x179,-0x135,-_0xca5519._0xa64e26)](0x2));function _0x426fde(_0xbcfb53,_0x385f6b,_0x4b8033,_0x3f08c2){return _0x452c58(_0x385f6b-_0x530c10._0x17d5f0,_0x4b8033,_0x4b8033-_0x530c10._0x155f87,_0x3f08c2-_0x530c10._0xaf8358);}await writeFile(_0x48d884,_0x4bbb9f),await rename(_0x48d884,_0x2d5ae3);}function sha256(_0x2016b9){const _0x510782={_0x37fa40:0x1e6,_0x2838bd:0x183,_0x4f46ca:0x1c8,_0x57aa2b:0x1bf,_0x87bd7f:0x236},_0x262323={_0x30ed04:0xf1,_0xa972b7:0x59f},_0x219ad4={_0x439be2:0x71,_0x51191f:0x1c1};function _0x2ba2c6(_0x41caa3,_0x57d5c5,_0x174302,_0x18bb43){return _0x452c58(_0x174302-_0x219ad4._0x439be2,_0x57d5c5,_0x174302-_0x219ad4._0x51191f,_0x18bb43-0xd1);}function _0x21e173(_0x10005d,_0x276962,_0xd4c0d5,_0x3820ff){return _0x44530c(_0x276962,_0x276962-_0x262323._0x30ed04,_0xd4c0d5-0xb,_0x3820ff- -_0x262323._0xa972b7);}return createHash(_0x21e173(-0xf9,-_0x510782._0x37fa40,-0x215,-_0x510782._0x2838bd))[_0x2ba2c6(0x284,0x27b,0x26d,0x2f8)](_0x2016b9)[_0x21e173(-0x14e,-_0x510782._0x4f46ca,-_0x510782._0x57aa2b,-0x18f)](_0x2ba2c6(0x27f,_0x510782._0x87bd7f,0x277,0x2bf));}function countLines(_0x152e61){const _0x3f30cf={_0x2c1945:0x472,_0x454354:0x4a8,_0x167842:0x432,_0x214283:0x446,_0x244530:0x46b,_0x4b8a53:0x4f7,_0x1fe49d:0x4f5,_0x3fdc7b:0x48b,_0x9a3662:0x556,_0x416470:0x58b,_0x5b33e0:0x5d6},_0x450c03={_0x364a85:0x19e,_0x100a40:0x135,_0x1efcb6:0x11};function _0xd0010b(_0x2bd92a,_0x12ab61,_0x10d7bf,_0x44a5c7){return _0x44530c(_0x10d7bf,_0x12ab61-0xdf,_0x10d7bf-0x118,_0x12ab61-0xfc);}const _0x47c2cb=_0x152e61[_0x22fb2d(0x45c,_0x3f30cf._0x2c1945,_0x3f30cf._0x454354,_0x3f30cf._0x167842)](/\n$/,'');function _0x22fb2d(_0x13deb8,_0x374831,_0x2e5e78,_0x14a1ab){return _0x44530c(_0x14a1ab,_0x374831-_0x450c03._0x364a85,_0x2e5e78-_0x450c03._0x100a40,_0x374831-_0x450c03._0x1efcb6);}return _0x47c2cb[_0x22fb2d(_0x3f30cf._0x214283,_0x3f30cf._0x244530,0x40c,0x41b)]===0x0?0x0:_0x47c2cb[_0x22fb2d(_0x3f30cf._0x4b8a53,_0x3f30cf._0x1fe49d,_0x3f30cf._0x3fdc7b,0x571)]('\x0a')[_0xd0010b(0x5c1,_0x3f30cf._0x9a3662,_0x3f30cf._0x416470,_0x3f30cf._0x5b33e0)];}function calculateLineNumbers(_0xfe905f,_0x5a415d,_0x4324d6,_0x4b2164){const _0x1a9a0a={_0x5f257a:0x4fb,_0x564c63:0x554,_0x4076c5:0x4f9,_0x5e1d74:0x4c9,_0x85c2d:0x468},_0x439be6={_0x1abf7e:0x10c,_0x1599dc:0xd9},_0x2321da={_0x101a89:0xb0,_0x27606c:0x1},_0x46500c=_0xfe905f[_0x5b8f29(_0x1a9a0a._0x5f257a,_0x1a9a0a._0x564c63,0x52d,0x49c)](0x0,_0x4b2164)[_0x5b8f29(0x583,0x612,0x585,0x558)]('\x0a')[_0x5b8f29(_0x1a9a0a._0x4076c5,0x527,_0x1a9a0a._0x5e1d74,_0x1a9a0a._0x85c2d)];function _0x1e801f(_0x5b2492,_0x466af9,_0x20390c,_0x39b9d2){return _0x452c58(_0x466af9-_0x2321da._0x101a89,_0x39b9d2,_0x20390c-0x128,_0x39b9d2-_0x2321da._0x27606c);}function _0x5b8f29(_0x1a6940,_0x1183d8,_0x2eca07,_0x405333){return _0x452c58(_0x1a6940-0x32b,_0x2eca07,_0x2eca07-_0x439be6._0x1abf7e,_0x405333-_0x439be6._0x1599dc);}const _0x5e1c5b=countLines(_0x5a415d),_0x5131f1=countLines(_0x4324d6);return{'oldStartLine':_0x46500c,'oldEndLine':_0x46500c+_0x5e1c5b-0x1,'newStartLine':_0x46500c,'newEndLine':_0x46500c+_0x5131f1-0x1,'oldLineCount':_0x5e1c5b,'newLineCount':_0x5131f1};}function createFileEditTool(_0x1d7c37={}){const _0x2634fd={_0x38bbc2:0x4c5,_0x358f66:0x4c4,_0x27b8dd:0x403,_0x3f4973:0x3d8,_0x2a445e:0x3df,_0x127d21:0x4e2,_0x5f7ce8:0x347,_0x2eea58:0x4b3,_0x4527b6:0x45c,_0x11f881:0x459,_0x333126:0x4b0,_0x8690c8:0x440,_0x432a3a:0x4d4,_0x19cc33:0x531,_0xa79ad9:0x534,_0x50396e:0x4f2,_0x2594bb:0x50c,_0x5b58ff:0x514,_0x273dfe:0x47f,_0x19ad10:0x488},_0x2fa5ab={_0x3630c5:0x97,_0x532396:0x18,_0x4275c2:0x42,_0x3b782a:0x59,_0x47833c:0x5e,_0x389718:0x19,_0x22b784:0x1d,_0xa1ce92:0xa5,_0x39cb0b:0x7f,_0x23ec4f:0xb4,_0x2ab311:0x9d,_0x3eebb7:0xc,_0x3e6b59:0x76,_0x3c93e7:0x25,_0x46a718:0xd3,_0x567618:0xc5,_0x4105a0:0xdb,_0xe40746:0x7b,_0x531f94:0x50,_0x4846f1:0xc2,_0x16611a:0x7d,_0x1eecaf:0x5,_0x167ab2:0xad,_0x4af99b:0x19,_0x1c6663:0x5f,_0x2ee7eb:0xc,_0x6b6365:0x57,_0x2f1093:0x33,_0x53f219:0x38,_0x5db998:0x72,_0xe99836:0x44,_0x4d5d2e:0x11,_0x22582d:0x38,_0x12c3b6:0x11,_0x50c31f:0x14,_0x133e25:0x14,_0x135a66:0x9,_0x3e8aef:0x47,_0x27420e:0x2,_0x464ba1:0x95,_0x12172d:0x28,_0x470022:0x7a,_0x22d36e:0x56,_0x467e5b:0xc8,_0x47d643:0x10e,_0x343e63:0xf7,_0x3caa39:0x5,_0x2c1fbc:0x3},_0x2e5c32={_0x485a01:0xb,_0x3d1ac5:0xbe},_0x50060b={_0x5bb165:0xe2},_0x3d01af=_0x5afd85['resolve'](_0x1d7c37[_0x2f2937(_0x2634fd._0x38bbc2,0x473,0x525,_0x2634fd._0x358f66)]??process[_0x1ef4f2(_0x2634fd._0x27b8dd,_0x2634fd._0x3f4973,_0x2634fd._0x2a445e,0x412)]());function _0x1ef4f2(_0x463cf9,_0x42008c,_0x222274,_0x462d27){return _0x452c58(_0x463cf9-0x23a,_0x462d27,_0x222274-0x1ac,_0x462d27-0x1ae);}const _0x1824cf=_0x1d7c37['name']??_0x2f2937(_0x2634fd._0x127d21,0x4e6,0x4fb,0x529);function _0x2f2937(_0x113e8d,_0x1bf603,_0x13014a,_0x558c67){return _0x44530c(_0x1bf603,_0x1bf603-_0x50060b._0x5bb165,_0x13014a-0x3b,_0x113e8d-0x24);}return defineTool({'name':_0x1824cf,'description':_0x1ef4f2(0x3e3,_0x2634fd._0x5f7ce8,0x34e,0x34c),'inputSchema':{'type':_0x1ef4f2(_0x2634fd._0x2eea58,_0x2634fd._0x4527b6,_0x2634fd._0x11f881,0x4d0),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x1ef4f2(0x4ae,0x4bd,_0x2634fd._0x333126,_0x2634fd._0x8690c8)},'newText':{'type':_0x1ef4f2(0x4ae,0x45c,0x41a,_0x2634fd._0x432a3a)},'dryRun':{'type':_0x2f2937(_0x2634fd._0x19cc33,_0x2634fd._0xa79ad9,0x59b,_0x2634fd._0x50396e)}},'required':[_0x2f2937(_0x2634fd._0x2594bb,0x489,0x509,0x593),_0x2f2937(_0x2634fd._0x5b58ff,0x4da,_0x2634fd._0x273dfe,0x56d),_0x1ef4f2(0x4e2,_0x2634fd._0x19ad10,0x453,0x45e)]},async *'execute'(_0x1dbcb6){const _0x57d053={_0x2a9c5f:0x1ec},_0xdc8a6b=resolveWorkspacePath(_0x3d01af,_0x1dbcb6[_0x203120(_0x2fa5ab._0x3630c5,0x59,-0x6c,0x11)]);await assertWorkspaceFile(_0xdc8a6b);const _0x5ee89b=await _0xa29099(_0xdc8a6b);function _0x2e128f(_0x389c5c,_0xc339ee,_0x185280,_0x3a1753){return _0x1ef4f2(_0x389c5c- -0x41c,_0xc339ee-_0x57d053._0x2a9c5f,_0x185280-0x121,_0xc339ee);}const _0x852dce=await readFile(_0xdc8a6b),_0x31b189=detectEol(_0x852dce),_0x4928f0=normalizeToLf(_0x852dce['toString'](_0x2e128f(_0x2fa5ab._0x532396,_0x2fa5ab._0x4275c2,-_0x2fa5ab._0x3b782a,_0x2fa5ab._0x47833c))),_0x4b19e0=normalizeToLf(_0x1dbcb6[_0x203120(-0x5,0x7f,-0x68,_0x2fa5ab._0x389718)]),_0x4eb54d=normalizeToLf(_0x1dbcb6[_0x203120(0xa3,-_0x2fa5ab._0x22b784,0xaa,0x5d)]),_0x31d9cb=_0x4928f0[_0x2e128f(_0x2fa5ab._0xa1ce92,_0x2fa5ab._0x39cb0b,0x11f,_0x2fa5ab._0x23ec4f)](_0x4b19e0);if(_0x31d9cb===-0x1){const _0x577a93=_0x4b19e0['slice'](0x0,0x64)[_0x203120(-0xd0,-_0x2fa5ab._0x2ab311,-_0x2fa5ab._0x3eebb7,-_0x2fa5ab._0x3e6b59)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x203120(_0x2fa5ab._0x3c93e7,-0xa2,-0x6f,-0x44)+_0x577a93+(_0x4b19e0[_0x2e128f(-0x14,-0x2e,0x5b,-0x69)]>0x64?_0x203120(-_0x2fa5ab._0x46a718,-0x3f,-_0x2fa5ab._0x567618,-0x89):'')+'\x22',{'filePath':_0x1dbcb6['filePath']});}const _0x33908b=_0x4928f0['slice'](0x0,_0x31d9cb)+_0x4eb54d+_0x4928f0[_0x203120(-0x69,-0xa9,-_0x2fa5ab._0x4105a0,-_0x2fa5ab._0xe40746)](_0x31d9cb+_0x4b19e0[_0x203120(-_0x2fa5ab._0x531f94,-_0x2fa5ab._0x4846f1,-0x58,-_0x2fa5ab._0x16611a)]),_0x1d2757=convertEol(_0x33908b,_0x31b189),_0x5a907f=Buffer[_0x203120(-0x50,0x65,_0x2fa5ab._0x1eecaf,0x27)](_0x1d2757,_0x203120(-_0x2fa5ab._0x167ab2,-0xaa,-0xb4,-0x51)),_0x18107e=sha256(_0x852dce),_0x17b81b=sha256(_0x5a907f),_0x12bbb4=_0x18107e===_0x17b81b,_0x4ad754=_0x1dbcb6[_0x2e128f(_0x2fa5ab._0x4af99b,0x59,0x75,0x3b)]??![];function _0x203120(_0x111168,_0x2e46b9,_0x2758b9,_0x31f198){return _0x1ef4f2(_0x31f198- -0x485,_0x2e46b9-_0x2e5c32._0x485a01,_0x2758b9-_0x2e5c32._0x3d1ac5,_0x2e46b9);}return!_0x4ad754&&!_0x12bbb4&&await atomicWrite(_0xdc8a6b,_0x5a907f),yield createToolOutput(_0x12bbb4?_0x203120(-_0x2fa5ab._0x1c6663,-_0x2fa5ab._0x2ee7eb,-0x37,-_0x2fa5ab._0x6b6365):_0x4ad754?_0x2e128f(_0x2fa5ab._0x3b782a,0xc5,-0x1b,-0x36):_0x2e128f(-_0x2fa5ab._0x2f1093,_0x2fa5ab._0x53f219,-_0x2fa5ab._0x5db998,0x3a),{'filePath':_0x1dbcb6[_0x203120(_0x2fa5ab._0xe99836,-0x74,-0x69,_0x2fa5ab._0x4d5d2e)],'resolvedPath':_0xdc8a6b,'created':_0x5ee89b[_0x2e128f(0xa4,0x5e,0xad,_0x2fa5ab._0x22582d)][_0x2e128f(-_0x2fa5ab._0x12c3b6,_0x2fa5ab._0x50c31f,_0x2fa5ab._0x133e25,_0x2fa5ab._0x135a66)](),'modified':_0x5ee89b[_0x203120(-_0x2fa5ab._0x3e8aef,-_0x2fa5ab._0x27420e,-0x12e,-_0x2fa5ab._0x464ba1)][_0x2e128f(-0x11,_0x2fa5ab._0x12172d,_0x2fa5ab._0x470022,0x89)](),'size':_0x5ee89b['size'],'eol':_0x31b189,'oldTextLength':_0x4b19e0[_0x203120(-_0x2fa5ab._0x22d36e,-_0x2fa5ab._0x467e5b,-_0x2fa5ab._0x47d643,-_0x2fa5ab._0x16611a)],'newTextLength':_0x4eb54d[_0x203120(-_0x2fa5ab._0x343e63,-0xc8,-0xce,-0x7d)],'bytesWritten':_0x12bbb4||_0x4ad754?0x0:_0x5a907f[_0x2e128f(-0x14,_0x2fa5ab._0x3caa39,_0x2fa5ab._0x2c1fbc,-0xaf)],'beforeSha':_0x18107e,'afterSha':_0x17b81b,'dryRun':_0x4ad754,'noChange':_0x12bbb4,'lineNumbers':calculateLineNumbers(_0x4928f0,_0x4b19e0,_0x4eb54d,_0x31d9cb)}),void 0x0;}});}import{mkdir,rename as _0x53289c,stat as _0x516c80,writeFile as _0x4483b2}from'fs/promises';function _0x452c58(_0x2ab9ef,_0x363324,_0x15a04a,_0x399021){const _0x5f06b3={_0x28bf0e:0x8};return _0x5314(_0x2ab9ef- -_0x5f06b3._0x28bf0e,_0x363324);}import*as _0x1fc5ca from'path';async function atomicWrite2(_0x1c9720,_0x45b882){const _0x29a3da={_0x5e763f:0x65d,_0x32ead8:0x387,_0x1f001c:0x3be,_0x305974:0x32c,_0x1a193f:0x2d4,_0x395fa4:0x3fb,_0x480008:0x36b,_0x38aad8:0x2f7,_0x3bb99f:0x2b6},_0x44b94e={_0x5beeba:0x96},_0x3f839b={_0x242c4c:0x3cc};function _0x39d14b(_0x5dddc8,_0x358a13,_0x5665ab,_0x5c5c35){return _0x452c58(_0x358a13-_0x3f839b._0x242c4c,_0x5dddc8,_0x5665ab-0x194,_0x5c5c35-0x185);}const _0xdde73c=_0x1fc5ca[_0x39d14b(0x674,_0x29a3da._0x5e763f,0x658,0x613)](_0x1c9720);await mkdir(_0xdde73c,{'recursive':!![]});const _0x539918=_0x1fc5ca['join'](_0xdde73c,_0x102478(_0x29a3da._0x32ead8,_0x29a3da._0x1f001c,0x368,_0x29a3da._0x305974)+_0x1fc5ca[_0x102478(_0x29a3da._0x1a193f,_0x29a3da._0x395fa4,0x2fd,_0x29a3da._0x480008)](_0x1c9720)+'.'+Date['now']()+'.'+Math['random']()['toString'](0x24)[_0x102478(0x24e,_0x29a3da._0x38aad8,_0x29a3da._0x3bb99f,0x2e8)](0x2));await _0x4483b2(_0x539918,_0x45b882);function _0x102478(_0x26b0ec,_0x5b4a6b,_0x488a49,_0x51b375){return _0x44530c(_0x488a49,_0x5b4a6b-_0x44b94e._0x5beeba,_0x488a49-0xe9,_0x51b375- -0x174);}await _0x53289c(_0x539918,_0x1c9720);}function createFileNewTool(_0x5e9c5d={}){const _0x434b0b={_0xb9be47:0x77,_0x1e52b4:0x77,_0x4262cc:0xf0,_0x59cb32:0x54,_0x219b49:0x1a,_0x535fb2:0x112,_0x34c34b:0xc1,_0x58c181:0xd3,_0x79ef7e:0x45,_0x45f57d:0x369,_0x43665c:0x2d1,_0x5f1acf:0x3a0,_0x3061b7:0x3ea},_0x32ec5d={_0x496474:0x182,_0x29fcd3:0xee,_0x4c0afc:0xdf,_0x19a68d:0x6a,_0x3b2a86:0x12c,_0x2f3959:0xfb,_0x4c251a:0xe2,_0x4bb93b:0x5c5,_0x3f8800:0x529,_0x4d4083:0x598,_0x3582ab:0x55e,_0x3872ee:0xb3,_0x2f9206:0x83,_0x27f81f:0xa9,_0x319f8a:0xd7,_0x38a1b6:0x160,_0x5cc8a2:0x4f7,_0xf11f0c:0x53a,_0x49a246:0x501,_0x3d0af7:0x45e,_0x31c146:0x54f,_0x570413:0x596,_0xc265f1:0x73,_0xd295a:0xe1,_0x59bc30:0xb9};function _0xda87e6(_0x173cec,_0x27a479,_0x13e61e,_0x47f7ce){return _0x44530c(_0x47f7ce,_0x27a479-0x24,_0x13e61e-0x1ca,_0x13e61e- -0x545);}const _0x3d3be6=_0x1fc5ca[_0x48e5a7(0x388,0x39f,0x32e,0x349)](_0x5e9c5d['defaultCwd']??process[_0xda87e6(-_0x434b0b._0xb9be47,-_0x434b0b._0x1e52b4,-_0x434b0b._0x4262cc,-_0x434b0b._0x59cb32)]());function _0x48e5a7(_0x23f22f,_0x28eff8,_0x57fa0a,_0x479b90){return _0x452c58(_0x28eff8-0x10d,_0x479b90,_0x57fa0a-0x77,_0x479b90-0x5);}const _0x400f3a=_0x5e9c5d['name']??_0xda87e6(-0x76,-_0x434b0b._0x219b49,-0xae,-_0x434b0b._0x535fb2);return defineTool({'name':_0x400f3a,'description':_0xda87e6(-0x135,-_0x434b0b._0x34c34b,-0x101,-0x7b),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0xda87e6(0x49,-_0x434b0b._0x58c181,-_0x434b0b._0x79ef7e,-0x4b)},'content':{'type':'string'}},'required':[_0x48e5a7(0x3ad,_0x434b0b._0x45f57d,0x37c,_0x434b0b._0x43665c),_0x48e5a7(_0x434b0b._0x5f1acf,0x3a2,_0x434b0b._0x3061b7,0x343)]},async *'execute'(_0x1379ed){const _0x1b2be4={_0x34ee55:0x8f,_0x51f989:0x78},_0x116790={_0x2091d0:0x1b},_0x176f24=resolveWorkspacePath(_0x3d3be6,_0x1379ed['filePath']);function _0x5eb1ec(_0x30e43d,_0x47b63c,_0x4f0039,_0x4aca43){return _0x48e5a7(_0x30e43d-_0x116790._0x2091d0,_0x4aca43-0x1bc,_0x4f0039-0xe3,_0x4f0039);}const _0x15bea4=await _0x516c80(_0x176f24)['then'](()=>!![])[_0x48c5ae(_0x32ec5d._0x496474,_0x32ec5d._0x29fcd3,0x113,_0x32ec5d._0x4c0afc)](()=>![]);function _0x48c5ae(_0x4b2f40,_0x2c374d,_0x19fa66,_0x6d6d0c){return _0xda87e6(_0x4b2f40-_0x1b2be4._0x34ee55,_0x2c374d-_0x1b2be4._0x51f989,_0x19fa66-0x142,_0x2c374d);}const _0x27c428=Buffer[_0x48c5ae(_0x32ec5d._0x19a68d,_0x32ec5d._0x3b2a86,_0x32ec5d._0x2f3959,_0x32ec5d._0x4c251a)](_0x1379ed[_0x5eb1ec(_0x32ec5d._0x4bb93b,_0x32ec5d._0x3f8800,_0x32ec5d._0x4d4083,_0x32ec5d._0x3582ab)],_0x48c5ae(_0x32ec5d._0x3872ee,-0x5,_0x32ec5d._0x2f9206,0x97));return await atomicWrite2(_0x176f24,_0x27c428),yield createToolOutput(_0x48c5ae(0x15d,_0x32ec5d._0x27f81f,_0x32ec5d._0x319f8a,_0x32ec5d._0x38a1b6)+_0x1379ed[_0x5eb1ec(_0x32ec5d._0x5cc8a2,_0x32ec5d._0xf11f0c,0x51e,0x525)]+'.',{'filePath':_0x1379ed['filePath'],'resolvedPath':_0x176f24,'bytes':_0x27c428[_0x5eb1ec(0x47d,_0x32ec5d._0x49a246,_0x32ec5d._0x3d0af7,0x497)],'lines':_0x1379ed[_0x5eb1ec(0x5f2,_0x32ec5d._0x31c146,_0x32ec5d._0x570413,0x55e)][_0x48c5ae(_0x32ec5d._0xc265f1,0xed,_0x32ec5d._0xd295a,0x50)](/\r?\n/)[_0x48c5ae(_0x32ec5d._0x59bc30,0x93,0x57,0x68)],'created':new Date()['toISOString'](),'overwritten':_0x15bea4}),void 0x0;}});}import{readFile as _0x79fc89,stat as _0x592384}from'fs/promises';import*as _0x3b7c46 from'path';function stripUtfBom(_0x512ced){const _0x28a0e3={_0x549fe5:0x9a,_0x231789:0x111},_0x232824={_0x9f345b:0xa1,_0x3d4bec:0xdd};function _0xd11383(_0x53aff7,_0x44fa44,_0x27d676,_0x459d75){return _0x44530c(_0x53aff7,_0x44fa44-_0x232824._0x9f345b,_0x27d676-_0x232824._0x3d4bec,_0x27d676- -0x4f4);}return _0x512ced['charCodeAt'](0x0)===0xfeff?_0x512ced[_0xd11383(-_0x28a0e3._0x549fe5,-_0x28a0e3._0x231789,-0x98,-0x31)](0x1):_0x512ced;}function clampLine(_0x1a6ffe,_0x1436b5){const _0x589367={_0x245d6f:0x16a,_0x2e7e73:0x131},_0xe2c94b={_0x3a8bf9:0x1a5};function _0x1d71d1(_0x5ddeff,_0x3f47ee,_0x56f456,_0x9f9635){return _0x44530c(_0x9f9635,_0x3f47ee-_0xe2c94b._0x3a8bf9,_0x56f456-0xfd,_0x56f456- -0x29e);}if(!Number[_0x1d71d1(0x147,_0x589367._0x245d6f,0x194,_0x589367._0x2e7e73)](_0x1a6ffe))return 0x1;return Math['max'](0x1,Math['min'](Math['trunc'](_0x1a6ffe),_0x1436b5));}function createFileReadTool(_0x29cf24={}){const _0x3ed89={_0x2a9f2f:0x211,_0x58ff2b:0x1ee,_0x2ba02f:0xe6,_0x3efe91:0x103,_0x24dca6:0x4fe,_0x18a687:0x512,_0x341bf1:0x1b8,_0x5a2699:0x525,_0x251eb2:0x552,_0x3adb60:0x54a,_0x2d66b4:0x4d5,_0x34f888:0x52e,_0x5bca47:0x4e5,_0x4afe26:0x224,_0x59efce:0x16e,_0x2478c5:0x161},_0x2723dc={_0x128b4d:0x308,_0x1a3bc6:0x2b8,_0x14e3ee:0x2c5,_0x5036dc:0x30d,_0x284e9a:0x9b,_0x58c81b:0x53,_0x183c7f:0x43,_0x3adbde:0x26,_0x43e629:0x1a,_0x170a88:0x1d,_0xc0904a:0x27d,_0x347d8f:0x25e,_0x2d9056:0x28e,_0x49dc06:0x3f1,_0x137512:0x359,_0x3887f8:0x3e4,_0x2942bd:0x342,_0x3ff6bc:0x54,_0xba509f:0x2d3,_0x54b2e6:0x2d2,_0x5bb932:0x337,_0x57d9e4:0x256,_0x4133f7:0x2db,_0x3d1c39:0x43c,_0x2c6bc4:0x328,_0x3c94cd:0x3a7,_0x3c5712:0x340,_0x866341:0x2e9,_0x1f1f56:0xd7,_0x622c6b:0x115,_0x54a32a:0xae,_0x1fe997:0xbe,_0xe53d5a:0x57,_0x3f09c8:0xb2,_0x2757ed:0xb,_0x52862e:0x2f0,_0x2221ce:0x174,_0x5f3b20:0xe4,_0x27225c:0x36c,_0x469cdf:0x31c,_0x98c115:0x3a3,_0x27dcc9:0xc3,_0x49d548:0x3f,_0x41f615:0xd3,_0x5d168d:0x2d5,_0x412ed5:0x2b0},_0xe3cfe0={_0x292b86:0x1d3},_0x87b15b={_0x22de32:0x2e,_0x498887:0x34d},_0x5d3f78={_0x5741f4:0x52},_0x376364=_0x3b7c46[_0x9cef31(_0x3ed89._0x2a9f2f,_0x3ed89._0x58ff2b,0x1d1,0x144)](_0x29cf24[_0x9cef31(0x10b,_0x3ed89._0x2ba02f,0x154,0x1af)]??process[_0x9cef31(0x190,0x157,0x108,_0x3ed89._0x3efe91)]()),_0x10bece=_0x29cf24[_0x442e77(0x51c,_0x3ed89._0x24dca6,0x49c,0x4c3)]??_0x442e77(0x44b,0x49c,0x4c7,_0x3ed89._0x18a687);function _0x442e77(_0x3a1c2e,_0x27cc05,_0x39e67c,_0x91f917){return _0x44530c(_0x3a1c2e,_0x27cc05-0x145,_0x39e67c-0x197,_0x39e67c-_0x5d3f78._0x5741f4);}function _0x9cef31(_0xf16c02,_0xafb4bf,_0x2acffa,_0x55ad70){return _0x44530c(_0xf16c02,_0xafb4bf-0x52,_0x2acffa-_0x87b15b._0x22de32,_0x2acffa- -_0x87b15b._0x498887);}return defineTool({'name':_0x10bece,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace.\x20Optionally\x20specify\x20line\x20ranges.','inputSchema':{'type':_0x9cef31(0x1c2,0x1d8,_0x3ed89._0x341bf1,0x225),'properties':{'path':{'type':_0x442e77(0x4d9,_0x3ed89._0x5a2699,_0x3ed89._0x251eb2,0x53f)},'lineStart':{'type':_0x442e77(_0x3ed89._0x3adb60,_0x3ed89._0x2d66b4,_0x3ed89._0x34f888,_0x3ed89._0x5bca47)},'lineEnd':{'type':_0x9cef31(0x1d1,_0x3ed89._0x4afe26,0x18f,0x191)}},'required':[_0x9cef31(0x12b,_0x3ed89._0x59efce,0xf6,_0x3ed89._0x2478c5)]},async *'execute'(_0x27729d){const _0x2712f2=resolveWorkspacePath(_0x376364,_0x27729d[_0x593798(_0x2723dc._0x128b4d,0x2c0,0x30b,_0x2723dc._0x1a3bc6)]);await assertWorkspaceFile(_0x2712f2);const _0x456df2=await _0x592384(_0x2712f2);function _0x593798(_0x28886b,_0x5a10ec,_0x355d33,_0x1fa9fc){return _0x9cef31(_0x355d33,_0x5a10ec-0x194,_0x1fa9fc-0x1c2,_0x1fa9fc-0x14d);}const _0x14c78c=await _0x79fc89(_0x2712f2);if(isProbablyBinary(_0x14c78c))throw new ToolExecutionError(_0x593798(_0x2723dc._0x14e3ee,_0x2723dc._0x5036dc,0x336,0x2cd)+_0x27729d[_0x4746d4(_0x2723dc._0x284e9a,0x26,-_0x2723dc._0x58c81b,-0x2e)],{'path':_0x27729d[_0x4746d4(-_0x2723dc._0x183c7f,_0x2723dc._0x3adbde,-0x5,-0x53)]});let _0x18a4b9=_0x14c78c[_0x4746d4(-_0x2723dc._0x43e629,0x59,0x5d,-_0x2723dc._0x170a88)]('utf8');const _0x3060f5=_0x18a4b9[_0x593798(_0x2723dc._0xc0904a,0x244,_0x2723dc._0x347d8f,_0x2723dc._0x2d9056)](0x0)===0xfeff;function _0x4746d4(_0x418caf,_0x4cfc80,_0x2689e8,_0x25c885){return _0x442e77(_0x25c885,_0x4cfc80-_0xe3cfe0._0x292b86,_0x4cfc80- -0x46f,_0x25c885-0x4);}_0x18a4b9=stripUtfBom(_0x18a4b9);const _0x128cdc=_0x18a4b9[_0x593798(_0x2723dc._0x49dc06,0x3c5,0x321,_0x2723dc._0x137512)](/\r?\n/),_0x33a29c={'path':_0x27729d['path'],'resolvedPath':_0x2712f2,'created':_0x456df2[_0x593798(_0x2723dc._0x3887f8,_0x2723dc._0x2942bd,0x309,0x387)][_0x4746d4(-_0x2723dc._0x3ff6bc,0x40,0x4f,-0x15)](),'modified':_0x456df2['mtime'][_0x593798(_0x2723dc._0xba509f,0x34f,0x26d,_0x2723dc._0x54b2e6)](),'size':_0x456df2[_0x593798(0x367,_0x2723dc._0x5bb932,0x29a,0x30a)],'encoding':'utf8','bomStripped':_0x3060f5,'truncated':![],'totalLines':_0x128cdc[_0x593798(_0x2723dc._0x57d9e4,0x2db,_0x2723dc._0x4133f7,0x2cf)]};if(_0x27729d[_0x593798(_0x2723dc._0x3d1c39,0x37f,_0x2723dc._0x2c6bc4,_0x2723dc._0x3c94cd)]!==void 0x0||_0x27729d[_0x593798(0x276,0x24d,_0x2723dc._0x3c5712,_0x2723dc._0x866341)]!==void 0x0){const _0x2a2ee8=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1f1f56,_0x2723dc._0x622c6b,0x140,_0x2723dc._0x54a32a)]??0x1,_0x128cdc['length']),_0x29edb7=clampLine(_0x27729d[_0x4746d4(_0x2723dc._0x1fe997,_0x2723dc._0xe53d5a,_0x2723dc._0x3f09c8,_0x2723dc._0x2757ed)]??_0x128cdc[_0x593798(0x356,0x2d2,_0x2723dc._0x52862e,0x2cf)],_0x128cdc['length']),_0x2b6212=Math[_0x4746d4(_0x2723dc._0x2221ce,_0x2723dc._0x5f3b20,0x95,0x78)](_0x2a2ee8,_0x29edb7),_0x4822e8=Math[_0x593798(_0x2723dc._0x27225c,0x3a1,_0x2723dc._0x469cdf,_0x2723dc._0x98c115)](_0x2a2ee8,_0x29edb7),_0x16796a=_0x128cdc[_0x4746d4(_0x2723dc._0x27dcc9,_0x2723dc._0x49d548,_0x2723dc._0x41f615,0x83)](_0x2b6212-0x1,_0x4822e8)['map']((_0x52f557,_0x31c7ed)=>_0x2b6212+_0x31c7ed+'|'+_0x52f557)[_0x593798(0x2c2,_0x2723dc._0x5d168d,_0x2723dc._0x412ed5,0x294)]('\x0a');return yield createToolOutput(_0x16796a,{..._0x33a29c,'lineRange':{'lineStart':_0x2b6212,'lineEnd':_0x4822e8,'linesTotal':_0x128cdc['length']}}),void 0x0;}return yield createToolOutput(_0x18a4b9,_0x33a29c),void 0x0;}});}import{stat as _0x5c1969}from'fs/promises';import*as _0x27ea33 from'path';import{execSync,spawn as _0x44b542}from'child_process';import{existsSync}from'fs';import{stat as _0x470eda}from'fs/promises';import*as _0x4de71a from'os';import*as _0x48f11e from'path';var cachedRgPath=null;function findSystemRipgrep(){const _0x3d58df={_0xdc11f7:0x40,_0x59822f:0x48,_0x3c4778:0x71,_0xef1201:0x23a,_0x1329d6:0x257,_0x184899:0x16,_0x340e9b:0x65,_0x11b934:0x64,_0x165d66:0x9,_0x5164c2:0x4c,_0x5b1fef:0x53,_0x34e523:0x22b,_0x4904c4:0x1b6,_0x1cba2f:0x1d9,_0x531701:0xdc,_0x1adad5:0x329,_0x172ea9:0x37f,_0x2499f7:0x24f,_0x5ab66a:0x234,_0x16cfd1:0x219,_0x189cbd:0x25,_0x4fa6d1:0x6,_0xa1697c:0x281,_0x48af76:0x21c,_0x39262b:0x104,_0x134011:0x6f,_0x453a13:0x29c,_0x49e8c3:0x1e2,_0x1061b7:0x44,_0x25296f:0x288,_0x283087:0x305,_0x5c5958:0x2a3,_0x574c11:0x2b9,_0x299ce1:0x2da,_0x34b0ca:0x281,_0x180776:0x2cd,_0x50397c:0x1fa,_0x1bd94c:0x29e,_0xab63f9:0x198,_0x490881:0x1d1,_0x3f9616:0x27e,_0x1c0b84:0x22d,_0x17af4b:0x2a0,_0x45213c:0x212,_0xd21a0e:0x2df,_0x426cc9:0x109,_0x27fbd9:0x3a,_0x91f709:0x62,_0x570611:0xc,_0xf88e34:0x68,_0x1819b3:0x60},_0x22034e={_0x4541f2:0x1e6},_0x5201d1=_0x4de71a[_0x435393(_0x3d58df._0xdc11f7,_0x3d58df._0x59822f,0x86,_0x3d58df._0x3c4778)]()===_0x59834a(_0x3d58df._0xef1201,0x233,_0x3d58df._0x1329d6,0x2c9),_0x1f94d9=_0x5201d1?[_0x48f11e[_0x435393(0x2a,-_0x3d58df._0x184899,-0xcd,-_0x3d58df._0x340e9b)](process[_0x435393(_0x3d58df._0x11b934,0xe4,_0x3d58df._0x165d66,0x6f)]['LOCALAPPDATA']||'',_0x435393(_0x3d58df._0x5164c2,_0x3d58df._0x5b1fef,0x8c,_0x3d58df._0x184899),_0x59834a(_0x3d58df._0x34e523,_0x3d58df._0x4904c4,_0x3d58df._0x1cba2f,0x1d0),'Packages'),_0x48f11e[_0x435393(-_0x3d58df._0x531701,0x2,-0x8c,-_0x3d58df._0x340e9b)](process[_0x59834a(0x30d,_0x3d58df._0x1adad5,0x2d9,_0x3d58df._0x172ea9)]['ProgramFiles']||'',_0x59834a(0x2a8,_0x3d58df._0x2499f7,_0x3d58df._0x5ab66a,_0x3d58df._0x16cfd1),_0x435393(_0x3d58df._0x189cbd,-0x22,-0x24,_0x3d58df._0x4fa6d1)),_0x48f11e[_0x59834a(0x239,_0x3d58df._0xa1697c,0x1df,_0x3d58df._0x48af76)](process[_0x435393(_0x3d58df._0x39262b,0x5d,0x3e,_0x3d58df._0x134011)][_0x59834a(0x245,0x1cd,_0x3d58df._0x453a13,_0x3d58df._0x49e8c3)]||'',_0x435393(_0x3d58df._0x1061b7,0xa6,-0xa,0xa),_0x59834a(0x2a4,0x2b6,_0x3d58df._0x25296f,0x226))]:['/opt/homebrew/bin/rg',_0x59834a(_0x3d58df._0x283087,0x329,0x388,_0x3d58df._0x5c5958),_0x59834a(_0x3d58df._0x574c11,_0x3d58df._0x299ce1,_0x3d58df._0x34b0ca,_0x3d58df._0x180776),_0x59834a(0x225,_0x3d58df._0x50397c,_0x3d58df._0x1bd94c,0x1a7)];for(const _0x4d4ef1 of _0x1f94d9){if(existsSync(_0x4d4ef1))return _0x4d4ef1;}function _0x59834a(_0x57d100,_0x106097,_0x2237d0,_0x6d7cda){return _0x44530c(_0x6d7cda,_0x106097-0xec,_0x2237d0-0x75,_0x57d100- -_0x22034e._0x4541f2);}function _0x435393(_0x13abab,_0x17efa3,_0xedccd5,_0x597201){return _0x452c58(_0x597201- -0x1f8,_0x17efa3,_0xedccd5-0xc0,_0x597201-0x80);}try{const _0x3afc83=_0x5201d1?_0x59834a(0x21e,0x1bc,_0x3d58df._0xab63f9,_0x3d58df._0x490881):_0x59834a(0x2c5,0x272,0x25b,0x2aa),_0x4324e5=execSync(_0x3afc83,{'encoding':_0x59834a(0x2a0,0x268,0x269,0x333),'stdio':[_0x59834a(_0x3d58df._0x3f9616,_0x3d58df._0x1c0b84,_0x3d58df._0x17af4b,0x2dd),_0x59834a(0x27e,0x269,_0x3d58df._0x45213c,_0x3d58df._0xd21a0e),_0x435393(0xcc,0x2b,_0x3d58df._0x426cc9,0x86)]})[_0x435393(0xc0,0xfe,_0x3d58df._0x27fbd9,_0x3d58df._0x91f709)]()[_0x435393(_0x3d58df._0x570611,_0x3d58df._0xf88e34,_0x3d58df._0x531701,_0x3d58df._0x1819b3)](/\r?\n/)[0x0];if(_0x4324e5&&existsSync(_0x4324e5))return _0x4324e5;}catch{return null;}return null;}async function filepath(){const _0x24167b={_0x3cded9:0x218,_0x1d7186:0x257},_0x92b3bc={_0x2576dc:0xcd};if(cachedRgPath)return cachedRgPath;const _0x4cc391=findSystemRipgrep();if(!_0x4cc391)throw new Error(_0x489d74(0x294,0x326,_0x24167b._0x3cded9,_0x24167b._0x1d7186));cachedRgPath=_0x4cc391;function _0x489d74(_0x4dae91,_0x1ea75b,_0x4b0e7f,_0x1d8dcc){return _0x452c58(_0x4dae91-0x68,_0x4b0e7f,_0x4b0e7f-_0x92b3bc._0x2576dc,_0x1d8dcc-0x11);}return _0x4cc391;}async function*files(_0x5354bc){const _0x946f3b={_0x38dbdc:0x14d,_0x5bac14:0x115,_0x2272e8:0x8f,_0x5adfc0:0x41,_0x5f0a69:0x1f3,_0xb27603:0x174,_0x5dd58a:0x11f,_0x41111a:0x61,_0x7c2a67:0x88,_0x191999:0x1c4,_0x43f4f1:0x1dd,_0x2d52b6:0xa9,_0x15597a:0x17,_0x4d7b3a:0x96,_0x356e2f:0x54,_0x5aeb0c:0x63,_0x4a48e1:0x1c6,_0x5cb67e:0x24d,_0x29cecc:0x143,_0x332e1f:0x105,_0x3364f8:0x115,_0x318d88:0x13d,_0x59513b:0x106,_0x2ff8f3:0x8,_0x1ce5e8:0x79,_0x37746f:0x2,_0x7e8fd0:0x3a,_0x37bd63:0x136,_0x212249:0x153,_0x36f192:0x160,_0x3921d0:0x70,_0x41cb96:0x7,_0x17d589:0x4,_0x23fadd:0x6e,_0xaac8d:0x83,_0x2964a0:0xe9,_0x2eba7f:0x11a,_0xa3d3bc:0xc8,_0x1b76de:0x16d,_0x4e4034:0x16b},_0x439699={_0x37ac66:0xb4,_0x2de31:0x23},_0x309f50=await filepath();function _0x4a0b83(_0x3254cc,_0x108255,_0x4c15f5,_0x3ce2e2){return _0x452c58(_0x108255- -0x251,_0x3254cc,_0x4c15f5-0x111,_0x3ce2e2-0xa7);}const _0x3b3802=await _0x470eda(_0x5354bc[_0x61b6bc(0x115,0x17b,_0x946f3b._0x38dbdc,_0x946f3b._0x5bac14)])['catch'](()=>null);function _0x61b6bc(_0x32dce5,_0x12e0d6,_0xa7e6cf,_0x52fd14){return _0x452c58(_0x32dce5- -_0x439699._0x37ac66,_0x12e0d6,_0xa7e6cf-0xd9,_0x52fd14-_0x439699._0x2de31);}if(!_0x3b3802?.[_0x4a0b83(-_0x946f3b._0x2272e8,0x6,0x25,_0x946f3b._0x5adfc0)]())throw Object[_0x61b6bc(_0x946f3b._0x5f0a69,0x1b6,_0x946f3b._0xb27603,0x215)](new Error(_0x61b6bc(0xde,_0x946f3b._0x5dd58a,0xf6,0x165)+_0x5354bc[_0x4a0b83(-_0x946f3b._0x41111a,-_0x946f3b._0x7c2a67,-0x4a,-0x1a)]+'\x27'),{'code':_0x61b6bc(_0x946f3b._0x191999,0x196,0x12c,0x234)});const _0x4653bc=[_0x61b6bc(0x1f0,_0x946f3b._0x43f4f1,0x1fc,0x167),_0x4a0b83(_0x946f3b._0x2d52b6,_0x946f3b._0x15597a,0xa5,_0x946f3b._0x4d7b3a),_0x4a0b83(0x1d,_0x946f3b._0x356e2f,_0x946f3b._0x5aeb0c,0x89),_0x61b6bc(_0x946f3b._0x4a48e1,0x1c4,0x1b8,_0x946f3b._0x5cb67e)];for(const _0x12f133 of _0x5354bc[_0x61b6bc(0x156,0x1b8,_0x946f3b._0x29cecc,_0x946f3b._0x332e1f)]??[]){_0x4653bc[_0x4a0b83(-0x4e,-0x54,-0x5e,0x1f)]('--glob='+_0x12f133);}const _0xf6952b=_0x44b542(_0x309f50,_0x4653bc,{'cwd':_0x5354bc[_0x61b6bc(_0x946f3b._0x3364f8,0xe7,_0x946f3b._0x318d88,_0x946f3b._0x59513b)],'stdio':['ignore',_0x61b6bc(0x124,0x134,0x165,0xa2),_0x4a0b83(_0x946f3b._0x2ff8f3,-_0x946f3b._0x1ce5e8,-_0x946f3b._0x37746f,-_0x946f3b._0x7e8fd0)]});let _0xd02778='';for await(const _0x9988e of _0xf6952b['stdout']??[]){_0xd02778+=_0x9988e[_0x61b6bc(_0x946f3b._0x37bd63,0x1a8,_0x946f3b._0x212249,_0x946f3b._0x36f192)]();const _0x4e28ce=_0xd02778[_0x4a0b83(-_0x946f3b._0x3921d0,_0x946f3b._0x41cb96,-_0x946f3b._0x17d589,-_0x946f3b._0x23fadd)](/\r?\n/);_0xd02778=_0x4e28ce['pop']()??'';for(const _0x571fce of _0x4e28ce){if(_0x571fce[_0x4a0b83(-_0x946f3b._0x2ff8f3,-_0x946f3b._0xaac8d,-_0x946f3b._0x2964a0,-0x4a)]>0x0)yield _0x571fce;}}_0xd02778['trim']()[_0x61b6bc(_0x946f3b._0x2eba7f,0x192,0xa3,_0x946f3b._0xa3d3bc)]>0x0&&(yield _0xd02778[_0x61b6bc(0x1a6,_0x946f3b._0x1b76de,0x10c,_0x946f3b._0x4e4034)]());}function parseMatchLine(_0x134b6a,_0x28aae2){const _0x6eb31f={_0x1fcb57:0x4a2,_0x5457d6:0x42,_0x3f1599:0x2b,_0x376782:0x96,_0x1a189e:0x492,_0x2a1736:0x46a,_0x83b50e:0x4b6,_0x2e17f7:0x4f9,_0x59dfa9:0x4e0,_0x481c50:0x459,_0x33133a:0x51e,_0x1996f0:0x4a3,_0x523fc0:0x9b,_0x4ed5e0:0x2,_0x67d435:0xc},_0x27b5bd={_0xadf236:0x18a},_0x2788c9={_0x1dd314:0xb1,_0xebfd5b:0x140};function _0x2dc1ea(_0x4bdf55,_0x484527,_0x2bde78,_0x4c5cbb){return _0x452c58(_0x4c5cbb-0x310,_0x2bde78,_0x2bde78-_0x2788c9._0x1dd314,_0x4c5cbb-_0x2788c9._0xebfd5b);}if(!_0x134b6a||_0x134b6a==='--')return null;function _0x1abe9d(_0x47488d,_0x286761,_0x1c04f5,_0x550f4a){return _0x44530c(_0x47488d,_0x286761-_0x27b5bd._0xadf236,_0x1c04f5-0x170,_0x286761- -0x45a);}const _0x490f18=_0x134b6a['split']('|');if(_0x28aae2&&_0x490f18[_0x2dc1ea(0x571,0x49f,_0x6eb31f._0x1fcb57,0x4de)]>=0x4&&Number['isFinite'](Number[_0x1abe9d(_0x6eb31f._0x5457d6,0x6,_0x6eb31f._0x3f1599,-_0x6eb31f._0x376782)](_0x490f18[0x2]??'',0xa))){const _0x48a58b=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number[_0x2dc1ea(0x48e,_0x6eb31f._0x1a189e,_0x6eb31f._0x2a1736,_0x6eb31f._0x83b50e)](_0x48a58b)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x48a58b,'lineText':_0x490f18[_0x2dc1ea(_0x6eb31f._0x2e17f7,0x4b5,0x4e5,_0x6eb31f._0x59dfa9)](0x3)[_0x2dc1ea(_0x6eb31f._0x481c50,0x4f3,_0x6eb31f._0x33133a,_0x6eb31f._0x1996f0)]('|')};}if(_0x490f18['length']>=0x3){const _0x2a9997=Number['parseInt'](_0x490f18[0x1]??'',0xa);if(!Number['isFinite'](_0x2a9997)||!_0x490f18[0x0])return null;return{'filePath':_0x490f18[0x0],'lineNum':_0x2a9997,'lineText':_0x490f18[_0x1abe9d(_0x6eb31f._0x523fc0,_0x6eb31f._0x4ed5e0,-0x48,_0x6eb31f._0x67d435)](0x2)['join']('|'),..._0x28aae2?{'isContext':!![]}:{}};}return null;}async function search(_0x1b203a){const _0x56b595={_0x915b39:0x153,_0x51a919:0x196,_0x218153:0x165,_0x3f6830:0x1da,_0x5164d7:0x287,_0x3ed285:0x239,_0x264ac8:0x19b,_0x4c98d2:0x139,_0x5cd8f4:0x164,_0x247b05:0x103,_0x2a767e:0x5b9,_0x2a3674:0x5a7,_0x43cb0e:0x657,_0xc7f995:0x5c5,_0x113a9d:0x63a,_0x11f592:0x6a0,_0x5bad9f:0x60a,_0x2e948e:0x22a,_0x66fafc:0x1ab,_0x52921c:0x1a4,_0x28cc96:0x671,_0x52fcc8:0x645,_0x58a167:0x504,_0x4e2970:0x4e6,_0x212670:0x5cc,_0x46655b:0x572,_0x3765b2:0x57b,_0x20c404:0x4d9,_0x19d279:0x568,_0x502c6c:0x1b8,_0x4a9ab6:0x258,_0x833895:0x1dd,_0x285411:0x24a,_0x12e555:0x1ee,_0x22e8dd:0x4e1,_0x39a804:0x560,_0xa19cc7:0x225,_0x2b15d9:0x203,_0x277ed7:0x1ee,_0x1e37a3:0x1ce,_0x3ffaf2:0x56d,_0x2d7c63:0x5af,_0x44c2c4:0x556,_0x1c64ae:0x1e3,_0x5eae4a:0x1d7,_0x376621:0x234,_0x5ea5f8:0x1ed,_0x51364f:0x565,_0x40167c:0x52c},_0x339ffd={_0x6e89ec:0xe5,_0x16d0d7:0xde,_0x2fc49d:0xd0,_0x31d49a:0x39a,_0x1acd19:0x3b7,_0x4ef4a4:0x4e,_0x35d337:0x62,_0x17e4f8:0x15f,_0x10af7e:0x176,_0x13f34d:0x57,_0x327126:0xd6},_0x1e3d3c={_0x354333:0x557,_0x586eb5:0x43c,_0x5d6572:0x3f9,_0xca23a7:0x586,_0x2916bb:0x50e,_0x18430c:0x4a0,_0x5aa9b4:0x39e,_0x438ed3:0x420,_0x3f1e33:0x371},_0x4d8d73={_0x2644b3:0x1c2,_0x1e68c6:0x125,_0x3bdb04:0x447},_0xc68329={_0x32a1e9:0x2aa,_0xe8299b:0x276},_0x3896cf={_0xdaf083:0xca,_0x419ce0:0x626,_0x3ed45a:0x19b},_0x2db789={_0x5dddf4:0xde,_0x5ca350:0x1a8},_0x1e6b9e={_0x3e37fe:0xe4,_0x1ad69e:0xd7};function _0x226d2f(_0x2bc045,_0x46fa1c,_0x27250e,_0x699c82){return _0x44530c(_0x46fa1c,_0x46fa1c-0x165,_0x27250e-_0x1e6b9e._0x3e37fe,_0x699c82-_0x1e6b9e._0x1ad69e);}function _0x41171a(_0xd02e1d,_0x26d9f6,_0x5e117b,_0xf88f2b){return _0x44530c(_0xd02e1d,_0x26d9f6-_0x2db789._0x5dddf4,_0x5e117b-_0x2db789._0x5ca350,_0x5e117b- -0x66c);}const _0x5b2d44=await filepath();if(_0x1b203a['file']){const _0x3c01f2=await _0x470eda(_0x1b203a[_0x41171a(-_0x56b595._0x915b39,-_0x56b595._0x51a919,-0x1ed,-_0x56b595._0x218153)])[_0x41171a(-0x19f,-0x193,-0x156,-0x1dd)](()=>null);if(!_0x3c01f2?.[_0x41171a(-_0x56b595._0x3f6830,-_0x56b595._0x5164d7,-_0x56b595._0x3ed285,-0x1f5)]())throw Object[_0x41171a(-0x1a7,-_0x56b595._0x264ac8,-_0x56b595._0x4c98d2,-0x13d)](new Error(_0x41171a(-_0x56b595._0x5cd8f4,-0x15e,-0x176,-_0x56b595._0x247b05)+_0x1b203a['file']+'\x27'),{'code':_0x41171a(-0x197,-0x1ad,-0x168,-0x19a)});}else{const _0x3de46d=await _0x470eda(_0x1b203a[_0x226d2f(_0x56b595._0x2a767e,0x58f,_0x56b595._0x2a3674,0x52c)])[_0x226d2f(_0x56b595._0x43cb0e,_0x56b595._0xc7f995,_0x56b595._0x113a9d,0x5ed)](()=>null);if(!_0x3de46d?.['isDirectory']())throw Object[_0x226d2f(_0x56b595._0x11f592,0x658,0x5e7,_0x56b595._0x5bad9f)](new Error(_0x41171a(-0x241,-_0x56b595._0x2e948e,-0x24e,-0x2c3)+_0x1b203a['cwd']+'\x27'),{'code':_0x41171a(-0x115,-0x17c,-0x168,-0x1f9)});}const _0x31d103=[_0x41171a(-0x179,-_0x56b595._0x66fafc,-_0x56b595._0x52921c,-0x1ca),_0x226d2f(0x57c,_0x56b595._0x28cc96,_0x56b595._0x52fcc8,0x5fa),_0x226d2f(_0x56b595._0x58a167,_0x56b595._0x4e2970,0x49b,0x506),_0x226d2f(0x540,_0x56b595._0x212670,0x57f,_0x56b595._0x46655b),_0x1b203a[_0x226d2f(0x5cf,_0x56b595._0x3765b2,_0x56b595._0x20c404,_0x56b595._0x19d279)]],_0x4e0e5f=typeof _0x1b203a[_0x41171a(-0x22c,-_0x56b595._0x502c6c,-0x1ee,-_0x56b595._0x4a9ab6)]===_0x41171a(-_0x56b595._0x502c6c,-_0x56b595._0x833895,-0x190,-0x136)&&_0x1b203a[_0x41171a(-_0x56b595._0x285411,-0x20b,-_0x56b595._0x12e555,-0x1e9)]>0x0;return _0x4e0e5f&&_0x31d103[_0x226d2f(0x586,0x5dd,_0x56b595._0x22e8dd,_0x56b595._0x39a804)]('-C',String(_0x1b203a[_0x41171a(-_0x56b595._0xa19cc7,-_0x56b595._0x2b15d9,-_0x56b595._0x277ed7,-_0x56b595._0x1e37a3)]),'--column'),_0x1b203a[_0x226d2f(0x570,0x56d,0x5d0,_0x56b595._0x3ffaf2)]&&!_0x1b203a[_0x226d2f(_0x56b595._0x2d7c63,0x58f,0x4e7,_0x56b595._0x44c2c4)]&&_0x31d103[_0x41171a(-0x1ea,-0x154,-_0x56b595._0x1c64ae,-_0x56b595._0x5eae4a)](_0x41171a(-0x21a,-0x2e1,-0x24f,-_0x56b595._0x376621),_0x1b203a['glob']),_0x31d103[_0x41171a(-0x249,-0x1d7,-0x1e3,-0x1dc)](_0x1b203a[_0x41171a(-_0x56b595._0x218153,-0x276,-_0x56b595._0x5ea5f8,-0x282)]??_0x1b203a[_0x226d2f(_0x56b595._0x51364f,0x542,0x496,_0x56b595._0x40167c)]),await new Promise((_0x55bcf0,_0x50a200)=>{const _0x3faf79={_0x469160:0x39a},_0x147aa0={_0x3ac7f8:0x31,_0x353000:0x8d},_0x67a15d=_0x44b542(_0x5b2d44,_0x31d103,{'cwd':_0x1b203a[_0x2e3e0e(0x6e,0x14c,_0x339ffd._0x6e89ec,_0x339ffd._0x16d0d7)],'stdio':['ignore',_0x41196b(0x3e6,0x41e,0x3bd,0x48b),_0x2e3e0e(_0x339ffd._0x2fc49d,0x16e,0xf4,0x12f)]});function _0x41196b(_0x39c902,_0x160c1b,_0x111e0e,_0x1898b6){return _0x41171a(_0x1898b6,_0x160c1b-_0x3896cf._0xdaf083,_0x160c1b-_0x3896cf._0x419ce0,_0x1898b6-_0x3896cf._0x3ed45a);}let _0x168a79='',_0x369ce8='';_0x67a15d['stdout']?.['on'](_0x41196b(_0x339ffd._0x31d49a,_0x339ffd._0x1acd19,0x370,0x33a),_0x2cd44e=>{function _0x34aef0(_0xd2d16e,_0x57f04d,_0x541fd5,_0x53f2bc){return _0x41196b(_0xd2d16e-_0x147aa0._0x3ac7f8,_0x541fd5- -0x202,_0x541fd5-_0x147aa0._0x353000,_0xd2d16e);}_0x168a79+=_0x2cd44e[_0x34aef0(_0xc68329._0x32a1e9,0x249,0x22e,_0xc68329._0xe8299b)]();});function _0x2e3e0e(_0xf55828,_0x12494e,_0x37897b,_0x35db2a){return _0x226d2f(_0xf55828-_0x4d8d73._0x2644b3,_0xf55828,_0x37897b-_0x4d8d73._0x1e68c6,_0x37897b- -_0x4d8d73._0x3bdb04);}_0x67a15d[_0x2e3e0e(0xd1,_0x339ffd._0x4ef4a4,0x9d,_0x339ffd._0x35d337)]?.['on']('data',_0x7ca342=>{_0x369ce8+=_0x7ca342['toString']();}),_0x67a15d['on'](_0x2e3e0e(0x1a7,_0x339ffd._0x17e4f8,0x141,_0x339ffd._0x10af7e),_0x2907eb=>{const _0x51956b={_0x311e76:0x76,_0x40a5ba:0x13b};if(_0x2907eb===0x1&&_0x168a79===''){_0x55bcf0([]);return;}if(_0x2907eb!==0x0&&_0x2907eb!==0x1){_0x50a200(new Error(_0x57c013(0x4fd,_0x1e3d3c._0x354333,0x4c6,0x47a)+_0x369ce8));return;}const _0x316ac6=_0x1b203a[_0x57c013(_0x1e3d3c._0x586eb5,_0x1e3d3c._0x5d6572,0x47b,0x426)]??0x64,_0x381884=[];function _0x25ded1(_0x1cc496,_0x46ca1d,_0x425f58,_0x46f3f0){return _0x41196b(_0x1cc496-0x1ed,_0x425f58- -_0x51956b._0x311e76,_0x425f58-_0x51956b._0x40a5ba,_0x46ca1d);}function _0x57c013(_0x1fb79b,_0x3ceca4,_0x59c0f6,_0x38fecd){return _0x2e3e0e(_0x1fb79b,_0x3ceca4-0xd9,_0x59c0f6-_0x3faf79._0x469160,_0x38fecd-0x12);}for(const _0x29f339 of _0x168a79[_0x57c013(_0x1e3d3c._0xca23a7,0x4f6,_0x1e3d3c._0x2916bb,_0x1e3d3c._0x18430c)](/\r?\n/)){if(_0x381884[_0x25ded1(0x303,0x3b5,_0x1e3d3c._0x5aa9b4,0x307)]>=_0x316ac6)break;const _0x4b9edc=parseMatchLine(_0x29f339,_0x4e0e5f);if(_0x4b9edc)_0x381884[_0x25ded1(_0x1e3d3c._0x438ed3,0x465,0x3cd,_0x1e3d3c._0x3f1e33)](_0x4b9edc);}_0x55bcf0(_0x381884);}),_0x67a15d['on'](_0x2e3e0e(_0x339ffd._0x13f34d,0x114,_0x339ffd._0x327126,0x66),_0x50a200);});}function createGlobTool(_0x1b37c8={}){const _0x3f52fd={_0x2d4fb7:0x5a3,_0x364b76:0x56b,_0x195b57:0x5c8,_0x386394:0x5c3,_0x5510a1:0x56a,_0x4a7a37:0x523,_0xd74dfc:0x534,_0x304311:0x571,_0x1466e1:0x33d,_0x2a004d:0x5aa,_0x2327cb:0x53b,_0x34c3bf:0x68d,_0xb169c8:0x609,_0x1f60ee:0x650,_0x3b0753:0x5f1,_0x74353d:0x5d6,_0x1d90e1:0x627,_0x1c8a98:0x5d9,_0x36eb15:0x5b8},_0x27429a={_0x175755:0xff,_0x3eadcd:0x113,_0x3d0d2a:0xef,_0x5cac28:0x149,_0x5ae63c:0xac,_0x3c6842:0x79,_0x47d391:0x40,_0x10184b:0x9d,_0x4ff274:0x69,_0x131df5:0x2a,_0x1e102b:0xbf,_0x5a1ebe:0x96,_0x2e469a:0x37,_0x422f93:0x41,_0x266c56:0x44,_0x1023b5:0x64,_0x495d5d:0x17,_0x2f3b30:0x26,_0x15993f:0x29,_0x16d6a5:0x57,_0x5735c6:0xb4,_0x391bd0:0x8d,_0x5775ce:0xb5,_0x1a568c:0x59,_0x297751:0x1af,_0x11eb8e:0x16e,_0x3485e3:0x191,_0x5eea32:0x6b,_0x2d9023:0xd,_0x173194:0x101,_0x400e6c:0x155,_0x1d9234:0x180,_0xd3b7a5:0x1e1,_0x244935:0x32,_0x59073d:0x5b,_0x23f72d:0xcb,_0x35621b:0x17,_0x467848:0x6c},_0x1711c2={_0x587607:0x1cf},_0x193ab3={_0x2a3e2f:0x17a},_0x338f36={_0x50f0a4:0x1c8,_0x2ad58b:0x127};function _0x3afdba(_0x27d6c9,_0x162bb3,_0x54442c,_0x290d93){return _0x44530c(_0x54442c,_0x162bb3-_0x338f36._0x50f0a4,_0x54442c-0x164,_0x290d93-_0x338f36._0x2ad58b);}const _0x5db37e=_0x27ea33['resolve'](_0x1b37c8[_0x3afdba(0x57d,_0x3f52fd._0x2d4fb7,_0x3f52fd._0x364b76,_0x3f52fd._0x195b57)]??process['cwd']()),_0x58a87e=_0x1b37c8[_0x3afdba(_0x3f52fd._0x386394,_0x3f52fd._0x5510a1,_0x3f52fd._0x4a7a37,0x578)]??0x64;function _0x47f8f4(_0x1024ef,_0x57b1a4,_0x16aa85,_0x3bb677){return _0x44530c(_0x1024ef,_0x57b1a4-_0x193ab3._0x2a3e2f,_0x16aa85-0xc,_0x16aa85- -0x146);}const _0x3e6a29=_0x1b37c8[_0x3afdba(_0x3f52fd._0xd74dfc,0x53a,0x562,_0x3f52fd._0x304311)]??_0x47f8f4(0x2b2,0x319,0x2ff,_0x3f52fd._0x1466e1);return defineTool({'name':_0x3e6a29,'description':_0x3afdba(0x530,0x5c8,_0x3f52fd._0x2a004d,_0x3f52fd._0x2327cb),'inputSchema':{'type':_0x3afdba(0x688,0x661,_0x3f52fd._0x34c3bf,0x62c),'properties':{'pattern':{'type':_0x3afdba(0x620,_0x3f52fd._0xb169c8,_0x3f52fd._0x1f60ee,0x627)},'path':{'type':_0x3afdba(_0x3f52fd._0x3b0753,_0x3f52fd._0x74353d,0x5f6,_0x3f52fd._0x1d90e1)},'limit':{'type':'number'}},'required':[_0x3afdba(_0x3f52fd._0x1c8a98,0x547,0x5bd,_0x3f52fd._0x36eb15)]},async *'execute'(_0xa649cc){const _0x9275e3={_0x32059b:0x10f,_0x424159:0x22,_0x1cee98:0x5a1};if(_0xa649cc['pattern']['trim']()[_0x1f8d98(-_0x27429a._0x175755,-_0x27429a._0x3eadcd,-_0x27429a._0x3d0d2a,-_0x27429a._0x5cac28)]===0x0)throw new ToolExecutionError(_0x34a5df(-_0x27429a._0x5ae63c,0x7,-_0x27429a._0x3c6842,-0xba),{});const _0x26328c=resolveWorkspacePath(_0x5db37e,_0xa649cc[_0x34a5df(_0x27429a._0x47d391,-0x6e,-0x37,-_0x27429a._0x10184b)]??'.'),_0x122d41=await _0x5c1969(_0x26328c)['catch'](()=>null);if(!_0x122d41?.[_0x34a5df(0x30,-0x22,_0x27429a._0x4ff274,_0x27429a._0x131df5)]())throw new ToolExecutionError(_0x1f8d98(-0x8,-_0x27429a._0x1e102b,-_0x27429a._0x5a1ebe,-0xa1)+(_0xa649cc[_0x34a5df(-0x41,-0x64,-_0x27429a._0x2e469a,-_0x27429a._0x422f93)]??'.'),{'path':_0xa649cc[_0x34a5df(-_0x27429a._0x266c56,_0x27429a._0x1023b5,-0x37,-_0x27429a._0x495d5d)]??'.'});const _0x2166a5=_0xa649cc[_0x34a5df(-_0x27429a._0x3c6842,_0x27429a._0x2f3b30,-_0x27429a._0x15993f,_0x27429a._0x16d6a5)]??_0x58a87e,_0x220ca1=Math[_0x34a5df(0x2f,0x49,_0x27429a._0x5735c6,0xad)](0x1,Math[_0x34a5df(_0x27429a._0x391bd0,_0x27429a._0x5775ce,_0x27429a._0x1a568c,0x48)](_0x2166a5)),_0x2bedfd=[];let _0x560ad3=![];for await(const _0x282b68 of files({'cwd':_0x26328c,'glob':[_0xa649cc[_0x1f8d98(-0x158,-0x91,-0x19b,-0x112)]]})){if(_0x2bedfd['length']>=_0x220ca1){_0x560ad3=!![];break;}const _0x309b18=await _0x5c1969(_0x27ea33[_0x1f8d98(-_0x27429a._0x297751,-_0x27429a._0x11eb8e,-_0x27429a._0x3485e3,-0x184)](_0x26328c,_0x282b68))['catch'](()=>null);_0x2bedfd[_0x34a5df(_0x27429a._0x5eea32,0xc,0xf,0xa9)]({'path':_0x282b68,'mtime':_0x309b18?.[_0x34a5df(_0x27429a._0x2d9023,_0x27429a._0x173194,_0x27429a._0x10184b,0x1c)]??0x0});}_0x2bedfd['sort']((_0x573256,_0x40ef85)=>_0x40ef85[_0x34a5df(-0x9f,0x35,-0x38,0x5b)]-_0x573256[_0x34a5df(-0x1f,-0x19,-0x38,-0x8c)]);const _0xbc739f=_0x2bedfd[_0x1f8d98(-0x14e,-_0x27429a._0x400e6c,-0x60,-0xf6)](_0x4de1c1=>_0x4de1c1['path']),_0x55e528=_0xbc739f[_0x1f8d98(-_0x27429a._0x1d9234,-0xf4,-_0x27429a._0xd3b7a5,-0x149)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0xa649cc[_0x34a5df(_0x27429a._0x244935,-_0x27429a._0x47d391,0x17,-0x74)]:''+_0xbc739f[_0x34a5df(0x25,-0xa5,-_0x27429a._0x59073d,-_0x27429a._0x23f72d)]('\x0a')+(_0x560ad3?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x34a5df(_0x4f328c,_0x216110,_0x99093d,_0x16810e){return _0x3afdba(_0x4f328c-_0x9275e3._0x32059b,_0x216110-_0x9275e3._0x424159,_0x216110,_0x99093d- -_0x9275e3._0x1cee98);}function _0x1f8d98(_0x1ecfa4,_0xfb50fa,_0x1cfa64,_0x57fff8){return _0x47f8f4(_0x1ecfa4,_0xfb50fa-_0x1711c2._0x587607,_0x57fff8- -0x45d,_0x57fff8-0x72);}return yield createToolOutput(_0x55e528,{'pattern':_0xa649cc[_0x34a5df(-0x5d,0x56,_0x27429a._0x35621b,_0x27429a._0x467848)],'searchPath':_0x27ea33['relative'](_0x5db37e,_0x26328c)||'.','matches':_0xbc739f,'count':_0xbc739f['length'],'truncated':_0x560ad3}),void 0x0;}});}import{stat as _0xe46774}from'fs/promises';import*as _0x15a878 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x1788a9={}){const _0x228660={_0x50363f:0x5e3,_0x467928:0x511,_0x2c2bdd:0x565,_0x10f6e7:0x1c3,_0x585e45:0x201,_0x3d3cd8:0x23b,_0x4d6888:0x240,_0xae2803:0x1b2,_0x10d5a0:0x243,_0xeb0047:0x549,_0x2ad266:0x5ad,_0x24daae:0x5b3,_0x12832e:0x5a0,_0x3d193c:0x557,_0x40f8c5:0x595,_0x1c5162:0x5c4,_0x1ad93f:0x119,_0x4d60ae:0x156,_0x12834d:0x5b1,_0x143d39:0x5a5,_0x2b7ba0:0x202,_0x3c1baf:0x12c,_0x56f039:0x12e},_0x4bab7f={_0x29b76d:0x4d0,_0x257b0f:0x439,_0x409857:0x4da,_0x524cb8:0x1d6,_0x3f50f5:0xed,_0x7ba9ef:0x10f,_0xfb4604:0xd1,_0x59ef0d:0x53c,_0x3f47bd:0xf5,_0x187719:0x1ce,_0x3fef69:0x4d0,_0x1ca8a9:0x55e,_0x4501d6:0x48e,_0x50ae01:0x503,_0x17a01f:0x4aa,_0x2f8d9b:0x454,_0x2d3c59:0x4e0,_0x5d9fea:0x527,_0x9014f8:0x587,_0x263833:0x566,_0x171c14:0x57e,_0x43e282:0x496,_0x513747:0x42d,_0x531842:0x175,_0x20d6e0:0x152,_0x1c24fb:0x548,_0x2f8cf2:0x5db,_0x288099:0x54e,_0x52048c:0x4c2,_0x2409e1:0x588,_0x59a539:0x51c,_0x3ef6ec:0x148,_0x3f334b:0x11d,_0x491a70:0x10c,_0x38ca2b:0x124,_0x45e773:0x121,_0x4d7a4a:0x1ba,_0xd45173:0x127,_0x3b224d:0x60,_0x9b0fb6:0x239,_0x5616a8:0x15d,_0x2a1d0f:0x53e,_0x1e12be:0x4b9,_0x11840b:0x575,_0x492852:0x143,_0x478c75:0x18c,_0x59c0ae:0x131,_0x3fd6df:0x461,_0xee1a59:0x475,_0x21d193:0x48a,_0x186a9c:0x166,_0x471de2:0x1b0,_0x541584:0x1a1,_0x320015:0x147,_0x16b4fa:0x117,_0x595def:0xa9,_0x23ddd0:0x170,_0xd4b161:0x1eb,_0x3c0f1d:0x1a3,_0xff51f:0x549,_0x6f1f76:0x57c,_0x5228a8:0x4f2,_0x26dd5f:0x1d2,_0x116948:0x1a5,_0xdfef:0x19a},_0x467d1a={_0x1e9ba0:0x46},_0x25f936={_0x32702b:0x14a,_0x3442d1:0x85},_0x4700ac={_0x23fbf7:0xf1,_0x2698bb:0x656},_0x25ff23={_0x5a055a:0x84};function _0xfa9b5e(_0xe235a2,_0x54f8ae,_0x2549a5,_0x36c148){return _0x452c58(_0x36c148-0x350,_0x54f8ae,_0x2549a5-_0x25ff23._0x5a055a,_0x36c148-0x144);}const _0x203c36=_0x15a878['resolve'](_0x1788a9[_0xfa9b5e(_0x228660._0x50363f,_0x228660._0x467928,0x5aa,_0x228660._0x2c2bdd)]??process[_0x5dc7dc(-_0x228660._0x10f6e7,-_0x228660._0x585e45,-_0x228660._0x3d3cd8,-0x1be)]()),_0x4af676=_0x1788a9['limit']??0x64;function _0x5dc7dc(_0x568e3a,_0x34dcfd,_0x371d15,_0x59097d){return _0x44530c(_0x59097d,_0x34dcfd-_0x4700ac._0x23fbf7,_0x371d15-0x14c,_0x34dcfd- -_0x4700ac._0x2698bb);}const _0x223ef2=_0x1788a9['name']??_0x5dc7dc(-_0x228660._0x4d6888,-_0x228660._0xae2803,-_0x228660._0x10d5a0,-0x23c);return defineTool({'name':_0x223ef2,'description':_0xfa9b5e(_0x228660._0xeb0047,_0x228660._0x2ad266,0x5d0,_0x228660._0x24daae),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0xfa9b5e(0x5a7,_0x228660._0x12832e,_0x228660._0x3d193c,0x5c4)},'path':{'type':_0xfa9b5e(0x58d,0x549,_0x228660._0x40f8c5,_0x228660._0x1c5162)},'include':{'type':_0x5dc7dc(-_0x228660._0x1ad93f,-_0x228660._0x4d60ae,-0x1e3,-0x185)},'limit':{'type':_0xfa9b5e(_0x228660._0x12834d,_0x228660._0x143d39,0x605,_0x228660._0x12832e)},'context':{'type':'number'}},'required':[_0x5dc7dc(-_0x228660._0x2b7ba0,-0x1c5,-_0x228660._0x3c1baf,-_0x228660._0x56f039)]},async *'execute'(_0x12dcaf){if(_0x12dcaf[_0x459a19(_0x4bab7f._0x29b76d,_0x4bab7f._0x257b0f,0x4cf,_0x4bab7f._0x409857)]['trim']()[_0x11537f(0x146,0x1a9,0xc0,_0x4bab7f._0x524cb8)]===0x0)throw new ToolExecutionError(_0x11537f(_0x4bab7f._0x3f50f5,_0x4bab7f._0x7ba9ef,0xff,_0x4bab7f._0xfb4604),{});const _0x5109fb=resolveWorkspacePath(_0x203c36,_0x12dcaf['path']??'.'),_0x1937f2=await _0xe46774(_0x5109fb)['catch'](()=>null),_0x8367b9=_0x1937f2?.['isFile']()??![],_0x5e45b0=_0x1937f2?.[_0x459a19(0x522,_0x4bab7f._0x59ef0d,0x554,0x4c9)]()??![];if(!_0x8367b9&&!_0x5e45b0)throw new ToolExecutionError(_0x459a19(0x498,0x45f,0x445,0x4e9)+(_0x12dcaf['path']??'.'),{'path':_0x12dcaf['path']??'.'});function _0x459a19(_0x8d475b,_0x38399f,_0x49768a,_0x3e297c){return _0xfa9b5e(_0x8d475b-0x13c,_0x38399f,_0x49768a-_0x25f936._0x32702b,_0x8d475b- -_0x25f936._0x3442d1);}const _0x5ca0f9=_0x12dcaf[_0x11537f(0x13d,0x15f,_0x4bab7f._0x3f47bd,_0x4bab7f._0x187719)]??_0x4af676,_0x3b33c6=Math[_0x459a19(0x56d,0x5af,0x598,0x56a)](0x1,Math[_0x459a19(0x512,0x53d,0x54e,0x584)](_0x5ca0f9)),_0xee30ba=await search({'cwd':_0x5e45b0?_0x5109fb:_0x15a878['dirname'](_0x5109fb),'pattern':_0x12dcaf[_0x459a19(_0x4bab7f._0x3fef69,0x4dc,_0x4bab7f._0x1ca8a9,_0x4bab7f._0x4501d6)],'glob':_0x5e45b0?_0x12dcaf['include']:void 0x0,'limit':_0x3b33c6,'file':_0x8367b9?_0x5109fb:void 0x0,'context':_0x12dcaf['context']}),_0x5dd5ad=new Map();for(const _0x3aeccb of _0xee30ba){if(!_0x5dd5ad['has'](_0x3aeccb['filePath'])){const _0x5a2b4c=await _0xe46774(_0x3aeccb[_0x459a19(0x527,0x4be,0x578,_0x4bab7f._0x50ae01)])['catch'](()=>null);_0x5dd5ad[_0x459a19(_0x4bab7f._0x17a01f,0x53a,_0x4bab7f._0x2f8d9b,_0x4bab7f._0x2d3c59)](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x9014f8,0x4e9,0x501)],{'matches':[],'mtime':_0x5a2b4c?.['mtimeMs']??0x0});}_0x5dd5ad['get'](_0x3aeccb[_0x459a19(_0x4bab7f._0x5d9fea,_0x4bab7f._0x263833,0x5c1,_0x4bab7f._0x171c14)])?.[_0x459a19(_0x4bab7f._0x43e282,_0x4bab7f._0x513747,0x404,0x473)][_0x11537f(_0x4bab7f._0x531842,_0x4bab7f._0x20d6e0,0xe8,0x126)](_0x3aeccb);}const _0x4c6bb7=[..._0x5dd5ad[_0x459a19(_0x4bab7f._0x1c24fb,0x54e,0x5a7,_0x4bab7f._0x2f8cf2)]()][_0x459a19(_0x4bab7f._0x288099,_0x4bab7f._0x52048c,_0x4bab7f._0x2409e1,_0x4bab7f._0x59a539)]((_0x2d2002,_0x306132)=>_0x306132[0x1]['mtime']-_0x2d2002[0x1][_0x459a19(0x481,0x4b5,0x46a,0x4c3)]),_0x75dffe=_0xee30ba['filter'](_0x366a1f=>!_0x366a1f['isContext'])['length'];function _0x11537f(_0xb35c77,_0x27f61c,_0x13fe1f,_0x15b8bb){return _0xfa9b5e(_0xb35c77-0x11e,_0x27f61c,_0x13fe1f-_0x467d1a._0x1e9ba0,_0xb35c77- -0x3d8);}const _0xdd4246=_0xee30ba['length']>=_0x3b33c6,_0xbf7630=_0x8367b9?_0x15a878['dirname'](_0x5109fb):_0x5109fb;let _0x50a197='';if(_0xee30ba[_0x11537f(0x146,_0x4bab7f._0x3ef6ec,_0x4bab7f._0x3f334b,_0x4bab7f._0x491a70)]===0x0)_0x50a197=_0x11537f(_0x4bab7f._0x38ca2b,_0x4bab7f._0x45e773,_0x4bab7f._0x4d7a4a,0x8e)+_0x12dcaf[_0x11537f(0x17d,0x1f6,0x15c,_0x4bab7f._0xd45173)];else{_0x50a197='Found\x20'+_0x75dffe+_0x11537f(0xf1,0xb1,_0x4bab7f._0x3b224d,0xb3)+(_0x75dffe===0x1?'':'es')+'\x0a';for(const [_0x50408c,_0x2cde14]of _0x4c6bb7){const _0x18ded4=_0x8367b9?_0x15a878[_0x11537f(0x1cb,0x211,_0x4bab7f._0x9b0fb6,_0x4bab7f._0x5616a8)](_0x50408c):_0x15a878[_0x459a19(_0x4bab7f._0x2a1d0f,_0x4bab7f._0x1e12be,0x585,_0x4bab7f._0x11840b)](_0xbf7630,_0x50408c);_0x50a197+='\x0a'+_0x18ded4+':\x0a';for(const _0x5637c8 of _0x2cde14[_0x11537f(_0x4bab7f._0x492852,_0x4bab7f._0x478c75,0x14a,_0x4bab7f._0x59c0ae)]){const _0x285f40=_0x5637c8[_0x459a19(0x475,0x405,0x4fe,_0x4bab7f._0x3fd6df)]['length']>MAX_LINE_LENGTH?_0x5637c8[_0x459a19(_0x4bab7f._0xee1a59,_0x4bab7f._0x21d193,0x4b8,0x465)][_0x11537f(_0x4bab7f._0x3ef6ec,_0x4bab7f._0x186a9c,0xfc,_0x4bab7f._0x471de2)](0x0,MAX_LINE_LENGTH)+'...':_0x5637c8['lineText'],_0x51d503=_0x5637c8[_0x11537f(_0x4bab7f._0x541584,_0x4bab7f._0x320015,_0x4bab7f._0x16b4fa,0x164)]?'\x20\x20':'>\x20';_0x50a197+=_0x51d503+_0x11537f(0x10f,0x8d,_0x4bab7f._0x595def,0x19c)+_0x5637c8['lineNum']+':\x20'+_0x285f40+'\x0a';}}_0xdd4246&&(_0x50a197+=_0x11537f(0x180,0x185,_0x4bab7f._0x23ddd0,0x1e7));}const _0x51c536={'searchPath':_0x15a878[_0x11537f(_0x4bab7f._0xd4b161,0x1bf,_0x4bab7f._0x3c0f1d,0x1bb)](_0x203c36,_0x5109fb)||'.','pattern':_0x12dcaf['pattern'],'matchCount':_0x75dffe,'fileCount':_0x5dd5ad['size'],'truncated':_0xdd4246};return _0x5e45b0&&_0x12dcaf['include']!==void 0x0&&(_0x51c536[_0x459a19(0x53a,_0x4bab7f._0xff51f,_0x4bab7f._0x6f1f76,_0x4bab7f._0x5228a8)]=_0x12dcaf['include']),yield createToolOutput(_0x50a197[_0x11537f(_0x4bab7f._0x26dd5f,_0x4bab7f._0x116948,_0x4bab7f._0xdfef,0x1bd)](),_0x51c536),void 0x0;}});}import{readdir,readFile as _0x2aaf1e,stat as _0x35254f}from'fs/promises';import*as _0x4e95f2 from'path';import*as _0x4cda1b from'yaml';async function countTextLines(_0x32dac5){const _0x13d903={_0x5d76cd:0x56d,_0x44a5b5:0x62b,_0x4b8aa6:0x598,_0x1079fb:0x473,_0x1b7bb7:0x4b1,_0x3b1e1e:0x4ae,_0x4ede02:0x4ab,_0x20c550:0x4ce,_0x231469:0x4fc,_0x15fe76:0x448,_0x1bfd90:0x4dc},_0x5535ae={_0x51ba82:0x101},_0x1e48e7=await _0x2aaf1e(_0x32dac5)[_0x19b242(_0x13d903._0x5d76cd,_0x13d903._0x44a5b5,0x5a4,_0x13d903._0x4b8aa6)](()=>null);function _0x48f51b(_0xf33da,_0x4dc5b0,_0x21741e,_0x1262b5){return _0x452c58(_0xf33da-_0x5535ae._0x51ba82,_0x1262b5,_0x21741e-0xf9,_0x1262b5-0x77);}function _0x19b242(_0x4301fc,_0x9e5664,_0x5a531e,_0xda2f5b){return _0x452c58(_0xda2f5b-0x30e,_0x5a531e,_0x5a531e-0x17a,_0xda2f5b-0x2c);}if(!_0x1e48e7||isProbablyBinary(_0x1e48e7))return void 0x0;return _0x1e48e7[_0x19b242(_0x13d903._0x1079fb,_0x13d903._0x1b7bb7,0x4ae,0x4f8)](_0x19b242(_0x13d903._0x3b1e1e,_0x13d903._0x4ede02,_0x13d903._0x20c550,0x508))['split'](/\r?\n/)[_0x19b242(_0x13d903._0x231469,0x4c2,_0x13d903._0x15fe76,_0x13d903._0x1bfd90)];}function createLsTool(_0x5dcd79={}){const _0x57e791={_0x2e7737:0x73,_0x5a4b61:0xf1,_0x68b2b6:0x194,_0x312f1d:0x151,_0x5c5a5a:0x145,_0x58a806:0x129,_0x17edfc:0x150,_0x50fa11:0x26,_0x4d9924:0x53,_0x5a49af:0xba,_0x52cf29:0x9a,_0x4c4a0b:0x137,_0x2c7084:0xc5,_0x5ed649:0xbe},_0x291679={_0x4657e8:0x297,_0x1ecf99:0x220,_0x226456:0x2aa,_0x15eea5:0x525,_0x195ffd:0x490,_0x277ec0:0x409,_0x303752:0x2ef,_0x3a84f7:0x34a,_0x5401bb:0x543,_0x1088eb:0x452,_0x31afb1:0x4a8,_0x1e5616:0x460,_0x37d764:0x31a,_0x5a01ad:0x35f,_0x4fe680:0x2c3,_0x2fcfcf:0x388,_0x3a0ff2:0x32a,_0x1394ec:0x2e6,_0x36451d:0x388,_0x4818a2:0x34a,_0x557f57:0x3a7,_0x4002f9:0x3a0,_0x28b503:0x356,_0x3197a0:0x40d,_0x1cbc2e:0x38f,_0x2f1910:0x2f7,_0x3bc878:0x2bd,_0x117f6f:0x3de,_0x188750:0x46b,_0x2f0d54:0x3f9,_0x4169d2:0x46a,_0x29d7af:0x35e,_0x249025:0x306,_0x138c60:0x2f3,_0x4592f9:0x370,_0x3b33a7:0x3d4,_0x5057cf:0x44b,_0x1aaae4:0x3e8,_0x46db32:0x2ed,_0x59e568:0x2c1,_0x9ed977:0x3d8,_0x56c91f:0x38a},_0x51d1f2={_0x28f7ad:0x46},_0x289064={_0xdf222b:0x108},_0x52d53a={_0x3a3150:0xeb};function _0x121791(_0x322ef6,_0x554cf8,_0x4b6e8b,_0x50c2b3){return _0x452c58(_0x50c2b3- -0x30e,_0x554cf8,_0x4b6e8b-0x1dd,_0x50c2b3-0xc4);}const _0x3d3a6e=_0x4e95f2[_0x121791(-_0x57e791._0x2e7737,-0x54,-_0x57e791._0x5a4b61,-0x7c)](_0x5dcd79['defaultCwd']??process[_0x121791(-_0x57e791._0x68b2b6,-0x11a,-_0x57e791._0x312f1d,-_0x57e791._0x5c5a5a)]()),_0x5ad72d=_0x5dcd79[_0x121791(-0x1d9,-_0x57e791._0x58a806,-0x118,-_0x57e791._0x17edfc)]??'Ls';function _0x10111e(_0x4d1d49,_0x11a25f,_0x252332,_0x2865b6){return _0x44530c(_0x2865b6,_0x11a25f-0x13b,_0x252332-_0x52d53a._0x3a3150,_0x4d1d49- -0x348);}return defineTool({'name':_0x5ad72d,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':'object','properties':{'path':{'type':_0x121791(-_0x57e791._0x50fa11,-_0x57e791._0x4d9924,-_0x57e791._0x5a49af,-_0x57e791._0x52cf29)},'limit':{'type':_0x121791(-_0x57e791._0x4c4a0b,-_0x57e791._0x2c7084,-0xc5,-_0x57e791._0x5ed649)}}},async *'execute'(_0x547abc){const _0x23ddad=_0x547abc[_0x5099c0(_0x291679._0x4657e8,0x322,_0x291679._0x1ecf99,_0x291679._0x226456)]??'.',_0x1b9aa6=resolveWorkspacePath(_0x3d3a6e,_0x23ddad),_0x2e75eb=await _0x35254f(_0x1b9aa6)[_0x4610e1(0x521,_0x291679._0x15eea5,_0x291679._0x195ffd,_0x291679._0x277ec0)](()=>null);if(!_0x2e75eb?.[_0x5099c0(0x39f,0x3aa,_0x291679._0x303752,_0x291679._0x3a84f7)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x23ddad,{'path':_0x23ddad});const _0x36b27f=_0x547abc['limit']??0x3e8,_0x15fa62=Math['min'](Math[_0x4610e1(_0x291679._0x5401bb,_0x291679._0x1088eb,_0x291679._0x31afb1,_0x291679._0x1e5616)](Math['trunc'](_0x36b27f),0x1),0x2710),_0xb21956=await readdir(_0x1b9aa6),_0xdaa908=[];for(const _0x20f2d1 of _0xb21956[_0x5099c0(0x2ee,_0x291679._0x37d764,_0x291679._0x5a01ad,_0x291679._0x4fe680)](0x0,_0x15fa62)){const _0x3cf2c3=_0x4e95f2[_0x4610e1(_0x291679._0x2fcfcf,_0x291679._0x3a0ff2,0x399,0x35c)](_0x1b9aa6,_0x20f2d1),_0x4cf7a6=await _0x35254f(_0x3cf2c3)['catch'](()=>null);if(!_0x4cf7a6)continue;let _0x520c0c='other';if(_0x4cf7a6['isFile']())_0x520c0c=_0x5099c0(0x288,0x32e,0x328,_0x291679._0x1394ec);else{if(_0x4cf7a6[_0x5099c0(0x3bb,_0x291679._0x36451d,0x37c,_0x291679._0x4818a2)]())_0x520c0c=_0x4610e1(_0x291679._0x557f57,0x39f,_0x291679._0x4002f9,_0x291679._0x28b503);else{if(_0x4cf7a6['isSymbolicLink']())_0x520c0c=_0x4610e1(_0x291679._0x3197a0,_0x291679._0x1cbc2e,0x407,0x3b3);}}const _0x1039a1={'name':_0x20f2d1,'type':_0x520c0c,'size':_0x4cf7a6['size'],'mtime':_0x4cf7a6[_0x4610e1(_0x291679._0x195ffd,0x498,0x491,0x529)],'mode':_0x4cf7a6[_0x5099c0(0x28f,_0x291679._0x2f1910,0x2dc,_0x291679._0x3bc878)]},_0x41bd4a=_0x520c0c===_0x4610e1(_0x291679._0x117f6f,_0x291679._0x188750,_0x291679._0x2f0d54,_0x291679._0x4169d2)?await countTextLines(_0x3cf2c3):void 0x0;if(_0x41bd4a!==void 0x0)_0x1039a1['lines']=_0x41bd4a;_0xdaa908[_0x5099c0(_0x291679._0x29d7af,0x365,_0x291679._0x249025,0x2f0)](_0x1039a1);}_0xdaa908[_0x5099c0(0x379,0x36f,_0x291679._0x138c60,0x376)]((_0x45309c,_0x2bee62)=>_0x45309c[_0x5099c0(0x2f0,0x2d6,0x314,0x2b1)][_0x4610e1(0x486,0x41e,0x49c,0x408)](_0x2bee62[_0x5099c0(0x251,0x21a,0x30e,0x2b1)]));function _0x4610e1(_0x323de6,_0x5c8634,_0x157a4a,_0x1b7994){return _0x121791(_0x323de6-_0x289064._0xdf222b,_0x323de6,_0x157a4a-0xd1,_0x157a4a-0x514);}const _0x1311a4={'path':_0x23ddad,'total':_0xdaa908[_0x4610e1(_0x291679._0x4592f9,0x399,_0x291679._0x3b33a7,0x3e7)],'truncated':_0xb21956['length']>_0x15fa62,'entries':_0xdaa908};function _0x5099c0(_0x39008b,_0x3f0ee3,_0xda2d25,_0x4362aa){return _0x121791(_0x39008b-0x1b4,_0x3f0ee3,_0xda2d25-_0x51d1f2._0x28f7ad,_0x4362aa-0x401);}return yield createToolOutput(_0x4cda1b['stringify'](_0x1311a4,{'indent':0x2,'lineWidth':0x0})[_0x4610e1(0x3e1,_0x291679._0x5057cf,_0x291679._0x1aaae4,0x461)](),{'path':_0x23ddad,'total':_0xdaa908[_0x5099c0(_0x291679._0x46db32,0x22c,0x2eb,_0x291679._0x59e568)],'truncated':_0xb21956[_0x4610e1(_0x291679._0x9ed977,_0x291679._0x56c91f,0x3d4,0x3a2)]>_0x15fa62,'limit':_0x15fa62,'entries':_0xdaa908}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x267ad9,readFile as _0x1ffa19,writeFile as _0x192900}from'fs/promises';import{join as _0x50c478}from'path';function sanitizeStorageKey(_0x5bccd6){const _0x3000bd={_0x5d9734:0xcd,_0xa537db:0x100,_0x555325:0xf5,_0x44d902:0x1b8,_0x443440:0x75,_0xdc73f4:0x10b},_0x3ccaf3={_0x134807:0x171,_0x13ad88:0x1d4,_0x15091c:0x2e9};function _0x5abfd6(_0x5b2724,_0x1cde30,_0x474794,_0x15e2c5){return _0x44530c(_0x474794,_0x1cde30-0x55,_0x474794-0xa4,_0x5b2724- -0x5b9);}function _0x4de0b2(_0x222ffa,_0x40d530,_0x52166c,_0x56a09a){return _0x44530c(_0x52166c,_0x40d530-_0x3ccaf3._0x134807,_0x52166c-_0x3ccaf3._0x13ad88,_0x56a09a- -_0x3ccaf3._0x15091c);}return _0x5bccd6[_0x5abfd6(-0x158,-_0x3000bd._0x5d9734,-0x164,-_0x3000bd._0xa537db)](/[^a-zA-Z0-9_]+/g,'_')[_0x4de0b2(0x1dc,_0x3000bd._0x555325,_0x3000bd._0x44d902,0x178)](/^_+|_+$/g,'')||_0x5abfd6(-0xab,-_0x3000bd._0x443440,-0xb5,-_0x3000bd._0xdc73f4);}function storagePath(_0x43867a){const _0x475e4f={_0x36560a:0x332,_0x420503:0x2e8,_0x427998:0x1d6,_0x572258:0x185,_0x400ea7:0x1b9,_0x5efa25:0x202,_0x10358a:0x1ed,_0x59c0aa:0x236,_0x3ba750:0x18e,_0x2e59ab:0x1ed,_0x24a26e:0x367},_0x797ac4={_0x2173e1:0x16a,_0x11f843:0x32d},_0x549d81={_0x459c8d:0xe5};function _0x45588e(_0x35f610,_0x5f441f,_0x1621b4,_0x38aa43){return _0x452c58(_0x38aa43-0x87,_0x1621b4,_0x1621b4-0x148,_0x38aa43-_0x549d81._0x459c8d);}function _0x1089b(_0x4563b3,_0x2650a6,_0x3b31ee,_0x443d41){return _0x44530c(_0x443d41,_0x2650a6-_0x797ac4._0x2173e1,_0x3b31ee-0xad,_0x4563b3- -_0x797ac4._0x11f843);}const _0x5cf90a=sanitizeStorageKey(_0x43867a[_0x45588e(0x319,_0x475e4f._0x36560a,0x336,_0x475e4f._0x420503)][_0x1089b(_0x475e4f._0x427998,_0x475e4f._0x572258,0x25f,_0x475e4f._0x400ea7)]?.[_0x1089b(_0x475e4f._0x5efa25,0x26a,_0x475e4f._0x10358a,_0x475e4f._0x59c0aa)]??_0x43867a[_0x1089b(_0x475e4f._0x3ba750,_0x475e4f._0x2e59ab,0x107,0x166)]);return _0x50c478(_0x43867a['storageDir'],_0x5cf90a+_0x45588e(0x303,0x297,_0x475e4f._0x24a26e,0x2dd));}async function readStore(_0x6891f4){const _0x5581bb={_0x105ba4:0x1b4,_0x1aee6f:0x40c,_0x5efc19:0x3d5,_0x52a83c:0x457},_0x250ecc={_0x4ce8d0:0x9a},_0x56791c={_0x2b12b8:0x2dc};function _0x2ffdc9(_0x30e580,_0x4a4a22,_0x2ee13a,_0x3db9e9){return _0x44530c(_0x4a4a22,_0x4a4a22-0x1be,_0x2ee13a-0x49,_0x30e580- -_0x56791c._0x2b12b8);}function _0x46fbca(_0x50ed74,_0x222973,_0x4be5a0,_0x4ae105){return _0x44530c(_0x50ed74,_0x222973-_0x250ecc._0x4ce8d0,_0x4be5a0-0x14b,_0x4be5a0- -0x22);}try{return JSON['parse'](await _0x1ffa19(_0x6891f4,_0x2ffdc9(0x1aa,_0x5581bb._0x105ba4,0x14f,0x245)));}catch(_0x29ce01){if(_0x29ce01 instanceof Error&&_0x46fbca(0x387,0x384,_0x5581bb._0x1aee6f,_0x5581bb._0x5efc19)in _0x29ce01&&_0x29ce01[_0x46fbca(_0x5581bb._0x52a83c,0x456,0x40c,0x3e0)]==='ENOENT')return{};throw _0x29ce01;}}async function writeStore(_0x126d6e,_0x216463){const _0x1c41ae={_0x36b5c3:0x289,_0x9a10d9:0x2a3};await _0x267ad9(_0x50c478(_0x126d6e,'..'),{'recursive':!![]});function _0x1a708f(_0x5567f8,_0x1e0e38,_0x34b3ea,_0x131b66){return _0x44530c(_0x131b66,_0x1e0e38-0x14,_0x34b3ea-0x101,_0x1e0e38- -0x243);}await _0x192900(_0x126d6e,JSON[_0x1a708f(0x29d,0x28c,_0x1c41ae._0x36b5c3,_0x1c41ae._0x9a10d9)](_0x216463,null,0x2),'utf8');}async function updateStore(_0x44c32d,_0x1fc40c){const _0x2af43f=await readStore(_0x44c32d);_0x1fc40c(_0x2af43f),await writeStore(_0x44c32d,_0x2af43f);}function createMcpOAuthProvider(_0x5a61f0){const _0x17f9f7={_0x10d8b3:0x319,_0x231b02:0x2cd,_0x22d2ba:0x311,_0x41f4f9:0x21a,_0x51a27d:0x109,_0x506b6a:0xfd,_0x2ec824:0xfb,_0x172a37:0x180,_0x1a8347:0x172,_0xf783bd:0x171,_0xb64f00:0x2d2,_0x4a50a:0x203,_0xc19539:0x118,_0x423fd7:0x7d,_0x2d0564:0x14b,_0x180bd2:0x1ed,_0xbee367:0x20e,_0x1fd093:0x257,_0xd30b7b:0x19c,_0x26ae58:0x1f6,_0x52ddb7:0x167},_0x2f8bc5={_0x3d584b:0x2fa,_0x307a1c:0x33a,_0x345e85:0x369,_0x54807e:0x2f6},_0x2620b2={_0x2a6d8f:0x58,_0x35da57:0xc1},_0x557db4={_0x217e24:0x280,_0x5e42f2:0x224,_0x46e93d:0x204},_0x3e65e3={_0x5644de:0xab,_0x5824bb:0x70,_0x4a77bc:0x49a,_0x2e23e0:0x3dc,_0x4e4488:0xae,_0x480e2f:0x322,_0x4220c9:0xff,_0x37eab2:0x99,_0x4b4085:0x79,_0x52d8e5:0x3c,_0x494d45:0x85,_0x138dad:0x34d,_0x1644e7:0x387,_0x184d22:0x3ad,_0x4ff388:0x378,_0x3c1f1a:0x2ac,_0x29ed6b:0xae,_0x3bcb95:0xd3,_0x241ca3:0xba,_0xde70b5:0x35c,_0x50f77f:0x38f},_0x5e41f1={_0x349a8e:0x194,_0x56dc0a:0x226,_0x3178c7:0x142,_0x50f0ff:0x1cb},_0x47d995={_0x5036ec:0x27,_0x262695:0x1f1},_0x4c2b34={_0x240df9:0xbc,_0x5ef5a7:0x88},_0x255765={_0xab91e9:0xde,_0x5698a2:0xf1},_0x1d941e={_0x3488b9:0x42e},_0x2ab88f={_0x1ca618:0x1d2,_0x4ef811:0x15f},_0x5edbd8={_0x34e820:0x568},_0x2fb136={_0x367d66:0x152},_0x41d547={_0x2e53b3:0xdb},_0x190595={_0x21b897:0x182,_0x4122a1:0x1e9,_0x4d0854:0x316};function _0x18cc83(_0x119467,_0x2895a6,_0x1b888c,_0x5cfeb8){return _0x44530c(_0x1b888c,_0x2895a6-_0x190595._0x21b897,_0x1b888c-_0x190595._0x4122a1,_0x119467- -_0x190595._0x4d0854);}const _0x28e601=storagePath(_0x5a61f0),_0x14e684=_0x5a61f0['config'][_0x142c03(0x318,_0x17f9f7._0x10d8b3,_0x17f9f7._0x231b02,_0x17f9f7._0x22d2ba)]?.[_0x18cc83(0x213,0x228,_0x17f9f7._0x41f4f9,0x1ce)]?.[_0x18cc83(_0x17f9f7._0x51a27d,0x198,0x198,0xd7)]('\x20');function _0x142c03(_0x31965e,_0x42ba54,_0x23ab87,_0x5864bc){return _0x452c58(_0x31965e-0xa1,_0x23ab87,_0x23ab87-_0x41d547._0x2e53b3,_0x5864bc-0x125);}const _0x60a0fd={'client_name':_0x18cc83(0x10c,_0x17f9f7._0x506b6a,_0x17f9f7._0x2ec824,_0x17f9f7._0x172a37),'redirect_uris':[_0x5a61f0[_0x18cc83(0x1d4,_0x17f9f7._0x1a8347,_0x17f9f7._0xf783bd,0x236)]],'grant_types':[_0x18cc83(0x127,0xa0,0x11e,_0x17f9f7._0x51a27d),_0x142c03(0x288,_0x17f9f7._0xb64f00,0x295,_0x17f9f7._0x4a50a)],'response_types':[_0x18cc83(_0x17f9f7._0xc19539,_0x17f9f7._0x423fd7,_0x17f9f7._0x2d0564,0x19e)],'token_endpoint_auth_method':'client_secret_post',..._0x14e684?{'scope':_0x14e684}:{}};return{'clientMetadataUrl':_0x5a61f0['config'][_0x18cc83(_0x17f9f7._0x180bd2,_0x17f9f7._0xbee367,_0x17f9f7._0x1fd093,_0x17f9f7._0xd30b7b)]?.[_0x18cc83(_0x17f9f7._0x26ae58,_0x17f9f7._0x52ddb7,0x1cf,0x1d0)],get 'redirectUrl'(){return _0x5a61f0['callbackUrl'];},get 'clientMetadata'(){return _0x60a0fd;},async 'state'(){const _0x36c945={_0x255536:0x3ee,_0x3b4bdd:0x40a,_0x34945b:0x421};function _0x429650(_0x21871e,_0x242298,_0x5eb0f3,_0x8473dc){return _0x18cc83(_0x5eb0f3- -_0x2fb136._0x367d66,_0x242298-0xea,_0x242298,_0x8473dc-0x127);}const _0x4dfa76=await readStore(_0x28e601);if(_0x4dfa76[_0x429650(0x10,-0x93,-0x15,0x14)])return _0x4dfa76['state'];const _0x322d93=randomUUID();return await updateStore(_0x28e601,_0x471f39=>{function _0x33fe60(_0x48fed3,_0x463f03,_0x5ce59d,_0x4f1f45){return _0x429650(_0x48fed3-0x10d,_0x48fed3,_0x5ce59d-0x41f,_0x4f1f45-0xd1);}_0x471f39[_0x33fe60(_0x36c945._0x255536,0x3cf,_0x36c945._0x3b4bdd,_0x36c945._0x34945b)]=_0x322d93;}),_0x322d93;},async 'clientInformation'(){return(await readStore(_0x28e601))['clientInformation'];},async 'saveClientInformation'(_0x334b85){await updateStore(_0x28e601,_0x135e0a=>{const _0x52ea94={_0xcf5202:0x35b};function _0x4de7f7(_0x26f40d,_0x501ab4,_0x461742,_0x2a3191){return _0x5314(_0x461742-_0x52ea94._0xcf5202,_0x2a3191);}_0x135e0a[_0x4de7f7(0x580,0x5ac,0x562,_0x5edbd8._0x34e820)]=_0x334b85;});},async 'tokens'(){function _0x40c8e2(_0x43f0e0,_0x2c1551,_0x39d6c6,_0x32b335){return _0x18cc83(_0x43f0e0-0x1f7,_0x2c1551-_0x2ab88f._0x1ca618,_0x39d6c6,_0x32b335-_0x2ab88f._0x4ef811);}return(await readStore(_0x28e601))[_0x40c8e2(0x3da,0x376,_0x1d941e._0x3488b9,0x401)];},async 'saveTokens'(_0x4469df){await updateStore(_0x28e601,_0x458fa0=>{_0x458fa0['tokens']=_0x4469df;});},async 'redirectToAuthorization'(_0x4e79f4){function _0x2af5b0(_0x29f55e,_0x44a7ad,_0x1d85ba,_0x36e5b7){return _0x18cc83(_0x36e5b7- -0x13f,_0x44a7ad-_0x255765._0xab91e9,_0x44a7ad,_0x36e5b7-_0x255765._0x5698a2);}await _0x5a61f0[_0x2af5b0(0x81,0xcb,_0x4c2b34._0x240df9,_0x4c2b34._0x5ef5a7)](_0x4e79f4);},async 'saveCodeVerifier'(_0x441f3f){const _0x3d429d={_0x4f92a2:0x274,_0x4a4ea7:0x2d8,_0x38efb0:0x1f3,_0x35002b:0x2a4};await updateStore(_0x28e601,_0x38a5df=>{const _0x565e5c={_0x34c3ca:0x7b};function _0x33ce1a(_0x60b9fe,_0x289f30,_0x599c32,_0x2b014f){return _0x5314(_0x60b9fe-_0x565e5c._0x34c3ca,_0x599c32);}_0x38a5df[_0x33ce1a(_0x3d429d._0x4f92a2,_0x3d429d._0x4a4ea7,_0x3d429d._0x38efb0,_0x3d429d._0x35002b)]=_0x441f3f;});},async 'codeVerifier'(){const _0x204c3a={_0x9faba9:0xd8};function _0x8b2aae(_0x99b859,_0x5ae9a8,_0x2c7272,_0x34f1ba){return _0x142c03(_0x5ae9a8- -0x2,_0x5ae9a8-_0x47d995._0x5036ec,_0x2c7272,_0x34f1ba-_0x47d995._0x262695);}function _0x3ff362(_0x291cbb,_0x31f629,_0x3594f0,_0x5ad128){return _0x18cc83(_0x291cbb-0x2d,_0x31f629-0x1e8,_0x5ad128,_0x5ad128-_0x204c3a._0x9faba9);}const _0x11fbf0=(await readStore(_0x28e601))[_0x3ff362(_0x5e41f1._0x349a8e,0x1da,_0x5e41f1._0x56dc0a,_0x5e41f1._0x3178c7)];if(!_0x11fbf0)throw new Error(_0x3ff362(_0x5e41f1._0x50f0ff,0x146,0x1f8,0x249));return _0x11fbf0;},async 'invalidateCredentials'(_0x8aa823){await updateStore(_0x28e601,_0x29b6f6=>{(_0x8aa823===_0x3b12f2(-0x13f,-_0x3e65e3._0x5644de,-0x49,-_0x3e65e3._0x5824bb)||_0x8aa823===_0x34aa92(0x424,_0x3e65e3._0x4a77bc,_0x3e65e3._0x2e23e0,0x430))&&(_0x29b6f6[_0x3b12f2(0x51,-0x48,-_0x3e65e3._0x4e4488,-0x87)]=void 0x0);(_0x8aa823==='all'||_0x8aa823==='tokens')&&(_0x29b6f6['tokens']=void 0x0);(_0x8aa823===_0x34aa92(_0x3e65e3._0x480e2f,0x399,0x32d,0x389)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x4220c9,-_0x3e65e3._0x37eab2,-_0x3e65e3._0x4b4085,-_0x3e65e3._0x52d8e5))&&(_0x29b6f6[_0x3b12f2(-0xb4,-0x56,-0x41,-_0x3e65e3._0x494d45)]=void 0x0,_0x29b6f6[_0x34aa92(_0x3e65e3._0x138dad,_0x3e65e3._0x1644e7,0x378,_0x3e65e3._0x184d22)]=void 0x0);function _0x3b12f2(_0x36c38e,_0x43b58b,_0x2936a5,_0x4ef8f9){return _0x5314(_0x43b58b- -0x24f,_0x36c38e);}function _0x34aa92(_0x4842a2,_0xd24712,_0x44d434,_0xc8453b){return _0x5314(_0x4842a2-0x17e,_0xc8453b);}(_0x8aa823===_0x34aa92(0x322,_0x3e65e3._0x4ff388,0x323,_0x3e65e3._0x3c1f1a)||_0x8aa823===_0x3b12f2(-_0x3e65e3._0x29ed6b,-_0x3e65e3._0x3bcb95,-_0x3e65e3._0x241ca3,-0x4c))&&(_0x29b6f6[_0x34aa92(_0x3e65e3._0xde70b5,0x302,0x336,_0x3e65e3._0x50f77f)]=void 0x0);});},async 'saveDiscoveryState'(_0x1ab71e){await updateStore(_0x28e601,_0x21aef8=>{function _0x4584d9(_0xf35857,_0x25fb52,_0x5d0be,_0x4bd985){return _0x5314(_0xf35857-0x61,_0x25fb52);}_0x21aef8[_0x4584d9(0x23f,_0x557db4._0x217e24,_0x557db4._0x5e42f2,_0x557db4._0x46e93d)]=_0x1ab71e;});},async 'discoveryState'(){function _0x242418(_0x2c9f26,_0x3d89ab,_0x49cae5,_0x11cdf4){return _0x142c03(_0x2c9f26-0x83,_0x3d89ab-_0x2620b2._0x2a6d8f,_0x11cdf4,_0x11cdf4-_0x2620b2._0x35da57);}return(await readStore(_0x28e601))[_0x242418(_0x2f8bc5._0x3d584b,_0x2f8bc5._0x307a1c,_0x2f8bc5._0x345e85,_0x2f8bc5._0x54807e)];}};}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(_0x47c48c,_0x1744b6){const _0x23e4fd={_0x574056:0x216,_0x7b2f73:0x177},_0x333f94={_0x427beb:0x10e,_0x2d7cdd:0x85,_0x3a142e:0x28f},_0x30d1a1={_0x8ab097:0x8b},_0x37bba5=_0x597549=>_0x597549[_0x3137db(0x11a,0x1a4,0x14a,0x19e)](/[^a-zA-Z0-9_]+/g,'_')[_0x3137db(0xc3,0x126,0x14a,0x147)](/^_+|_+$/g,'');function _0x3137db(_0x5b5773,_0x279205,_0xbaaaf5,_0x14cf43){return _0x452c58(_0xbaaaf5- -_0x30d1a1._0x8ab097,_0x279205,_0xbaaaf5-0x165,_0x14cf43-0xe7);}function _0x1bcd29(_0x46deb2,_0x26ed53,_0x51485d,_0x1dd653){return _0x44530c(_0x1dd653,_0x26ed53-_0x333f94._0x427beb,_0x51485d-_0x333f94._0x2d7cdd,_0x46deb2- -_0x333f94._0x3a142e);}return _0x3137db(_0x23e4fd._0x574056,0x1a3,0x20d,_0x23e4fd._0x7b2f73)+_0x37bba5(_0x47c48c)+'_'+_0x37bba5(_0x1744b6);}function isObject(_0x4ef533){const _0x2b9428={_0x42ff5c:0x1b,_0x165e77:0x14,_0x1c0560:0x31},_0x46cc06={_0x4ccab9:0x3d};function _0x1261c0(_0xa5bf37,_0x15c41e,_0xc85f71,_0x47bc2a){return _0x44530c(_0xa5bf37,_0x15c41e-_0x46cc06._0x4ccab9,_0xc85f71-0x17b,_0xc85f71- -0x4d9);}return typeof _0x4ef533==='object'&&_0x4ef533!==null&&!Array[_0x1261c0(_0x2b9428._0x42ff5c,-_0x2b9428._0x165e77,0x3b,_0x2b9428._0x1c0560)](_0x4ef533);}function toSupportedSchema(_0xeefc02){const _0x129cae={_0x40b38c:0xd7,_0x3fdc19:0xe4,_0x335a31:0x1a2,_0x25abb9:0xbc,_0x26405e:0x55,_0x212f24:0x12a,_0x54690c:0x19f,_0x5699f1:0x9d,_0x198a38:0x71,_0x3c9b98:0x49,_0x338a89:0x3e,_0x72f10e:0xa6,_0x4b60b5:0x96,_0xf43ac0:0x164,_0x355adc:0x1ae,_0x2e7a87:0x14e,_0x4b6f13:0x1ae,_0x403199:0x17a,_0x45ff23:0xb1,_0xaa6d8d:0x194,_0x1556fa:0x72,_0xcea98c:0x50,_0x5354e5:0xd6,_0x55ce21:0x120,_0x1cd84b:0xe5,_0x22e1ff:0xad,_0x3508b6:0x95,_0x44c325:0xa3,_0x668349:0x154,_0x14b574:0xe7},_0x49d47b={_0x530bb8:0x18a},_0x355f13={_0x101deb:0x192};if(!isObject(_0xeefc02))return void 0x0;if(_0xeefc02[_0x585cce(0xb9,0xc3,0x12c,0xcb)]===_0x11657b(_0x129cae._0x40b38c,0x141,_0x129cae._0x3fdc19,_0x129cae._0x335a31))return{'type':_0x585cce(_0x129cae._0x25abb9,_0x129cae._0x26405e,0x62,0xe2)};function _0x585cce(_0x4af6ed,_0x3324fa,_0xbc61c0,_0x8691f6){return _0x452c58(_0x8691f6- -_0x355f13._0x101deb,_0xbc61c0,_0xbc61c0-0x10c,_0x8691f6-0xda);}if(_0xeefc02[_0x11657b(0x1bd,_0x129cae._0x212f24,_0x129cae._0x54690c,0x13e)]==='number'||_0xeefc02[_0x11657b(0x11b,0x12a,_0x129cae._0x5699f1,0xde)]===_0x11657b(_0x129cae._0x198a38,_0x129cae._0x3c9b98,_0x129cae._0x338a89,-0x41))return{'type':_0x11657b(_0x129cae._0x72f10e,0x11d,0xf6,0x124)};function _0x11657b(_0x1d7278,_0x12bee3,_0xadd27e,_0x1a99e3){return _0x44530c(_0xadd27e,_0x12bee3-0x120,_0xadd27e-_0x49d47b._0x530bb8,_0x12bee3- -0x3bf);}if(_0xeefc02[_0x11657b(_0x129cae._0x4b60b5,0x12a,_0x129cae._0xf43ac0,0xc4)]===_0x11657b(_0x129cae._0x355adc,_0x129cae._0x2e7a87,_0x129cae._0x4b6f13,_0x129cae._0x403199))return{'type':_0x11657b(0x1de,0x14e,0x181,_0x129cae._0x335a31)};if(_0xeefc02[_0x11657b(_0x129cae._0x45ff23,0x12a,_0x129cae._0xaa6d8d,0xe0)]==='array')return{'type':_0x585cce(0x5,_0x129cae._0x1556fa,_0x129cae._0xcea98c,0x21),'items':toSupportedSchema(_0xeefc02[_0x11657b(_0x129cae._0x5354e5,0x12d,_0x129cae._0x55ce21,_0x129cae._0x1cd84b)])??{'type':_0x585cce(0x141,0xa9,_0x129cae._0x22e1ff,0xe2)}};if(_0xeefc02[_0x585cce(_0x129cae._0x3508b6,0x130,0x143,0xcb)]===_0x585cce(_0x129cae._0x44c325,0x5d,_0x129cae._0x668349,_0x129cae._0x14b574))return toNuvinToolSchema(_0xeefc02);return void 0x0;}function toNuvinToolSchema(_0x2a8a2e){const _0x1830d6={_0x33ec8f:0x54f,_0x45a1cb:0x54a,_0x453360:0x637,_0x26fe66:0x65f,_0x2f8684:0x5d5,_0x2944d3:0x5c7,_0x1b9629:0x605,_0x57de24:0x575,_0x32c4a:0x525,_0x396a47:0x5be,_0x1d28d2:0x57f,_0x26b53d:0x4a1,_0x513142:0x576,_0x413ce0:0x50b,_0xefce68:0x422,_0x85506d:0x50a,_0x1f8304:0x4b2,_0x5baec4:0x5e3,_0x20b1cc:0x566,_0x3b27a0:0x559},_0x2df9f6={_0x4bb5cd:0x19e,_0x5dda33:0xc2},_0x189729={_0x1ebc5e:0x2ed};if(!isObject(_0x2a8a2e)||_0x2a8a2e[_0x1c2932(0x569,_0x1830d6._0x33ec8f,_0x1830d6._0x45a1cb,0x596)]!=='object')return{'type':_0x37c4ff(_0x1830d6._0x453360,_0x1830d6._0x26fe66,_0x1830d6._0x2f8684,_0x1830d6._0x2944d3),'properties':{}};const _0x5d594f={};function _0x1c2932(_0x2d1f96,_0x3a6a83,_0x35f0d5,_0x457869){return _0x452c58(_0x35f0d5-_0x189729._0x1ebc5e,_0x2d1f96,_0x35f0d5-0x14b,_0x457869-0x1d0);}const _0x504a7a=isObject(_0x2a8a2e[_0x37c4ff(0x553,0x592,0x5e0,0x57f)])?_0x2a8a2e['properties']:{};function _0x37c4ff(_0x250755,_0x449190,_0x53c32d,_0x2ff28d){return _0x44530c(_0x53c32d,_0x449190-_0x2df9f6._0x4bb5cd,_0x53c32d-0xae,_0x2ff28d-_0x2df9f6._0x5dda33);}for(const [_0x1f5dd0,_0x555fd3]of Object['entries'](_0x504a7a)){const _0x5141f4=toSupportedSchema(_0x555fd3);if(_0x5141f4)_0x5d594f[_0x1f5dd0]=_0x5141f4;}const _0x5efd4e=Array[_0x1c2932(0x4fe,_0x1830d6._0x1b9629,_0x1830d6._0x57de24,0x4da)](_0x2a8a2e[_0x1c2932(0x4f6,0x55f,0x55d,0x57f)])?_0x2a8a2e[_0x37c4ff(0x5d4,_0x1830d6._0x32c4a,0x530,_0x1830d6._0x396a47)][_0x37c4ff(_0x1830d6._0x1d28d2,_0x1830d6._0x26b53d,_0x1830d6._0x513142,_0x1830d6._0x413ce0)](_0x11f3cf=>typeof _0x11f3cf===_0x37c4ff(0x60e,0x541,0x5e2,0x5c2)):void 0x0;return _0x5efd4e?.[_0x1c2932(_0x1830d6._0xefce68,_0x1830d6._0x85506d,0x4bb,_0x1830d6._0x1f8304)]?{'type':'object','properties':_0x5d594f,'required':_0x5efd4e}:{'type':_0x1c2932(0x5ea,_0x1830d6._0x5baec4,_0x1830d6._0x20b1cc,_0x1830d6._0x3b27a0),'properties':_0x5d594f};}function isJsonObject(_0x3d14ed){const _0x1c34b2={_0x20ccf9:0x10f,_0x5634fd:0x9f},_0x47d844={_0x169713:0x1c1};function _0x197831(_0x50c2ad,_0x2a28ac,_0x8b56d6,_0x412ef7){return _0x44530c(_0x412ef7,_0x2a28ac-_0x47d844._0x169713,_0x8b56d6-0x140,_0x50c2ad- -0x405);}return typeof _0x3d14ed==='object'&&_0x3d14ed!==null&&!Array[_0x197831(_0x1c34b2._0x20ccf9,0xe3,0xeb,_0x1c34b2._0x5634fd)](_0x3d14ed);}function formatMcpContent(_0x3980f4){const _0x5dd28a={_0x38c0a3:0x3fb,_0x3be445:0x4c8,_0x40d08a:0x491,_0x3d6ee4:0x523,_0x315780:0x45c,_0x556849:0x427,_0x1bc92d:0x3eb,_0x24672e:0xf4,_0x385f0d:0x172},_0x1a5ae8={_0x359305:0x4ef,_0x1ad297:0x468,_0x181e03:0x209,_0x9b8939:0x2a6,_0x3576d8:0x2c8,_0x245dde:0x209,_0x2113f0:0x196,_0x3b9a93:0x55b,_0x2e2b79:0x5eb},_0x39d619={_0x4155fd:0x8e},_0x14706b={_0x5967d5:0x179,_0x4d2481:0x11c},_0x10fb1a={_0x12183a:0x5c},_0x1deeaa=Array[_0x8a2492(_0x5dd28a._0x38c0a3,0x514,0x458,0x484)](_0x3980f4[_0x8a2492(_0x5dd28a._0x3be445,0x4d5,0x48f,_0x5dd28a._0x40d08a)])?_0x3980f4[_0x8a2492(0x446,_0x5dd28a._0x3d6ee4,_0x5dd28a._0x315780,0x491)]:[];function _0x28f567(_0xd5659a,_0x566975,_0x4161c8,_0x3978f9){return _0x452c58(_0x4161c8- -_0x10fb1a._0x12183a,_0x3978f9,_0x4161c8-0x1de,_0x3978f9-0x19f);}function _0x8a2492(_0x12f89e,_0x4db0ea,_0x19bf8c,_0x4ff3e6){return _0x452c58(_0x4ff3e6-0x1fc,_0x12f89e,_0x19bf8c-0x187,_0x4ff3e6-0xe5);}const _0x3b6208=_0x1deeaa['map'](_0x49911c=>{if(!isObject(_0x49911c))return'';function _0x50ed35(_0x160115,_0x37ba0d,_0x488a2c,_0x2e849e){return _0x8a2492(_0x37ba0d,_0x37ba0d-0x16d,_0x488a2c-_0x14706b._0x5967d5,_0x160115-_0x14706b._0x4d2481);}function _0x4f52ec(_0x513b3c,_0x21f8dd,_0xc65c76,_0x16813c){return _0x28f567(_0x513b3c-0x177,_0x21f8dd-0x199,_0x513b3c-_0x39d619._0x4155fd,_0x21f8dd);}if(_0x49911c['type']===_0x50ed35(_0x1a5ae8._0x359305,0x53f,0x4f3,_0x1a5ae8._0x1ad297)&&typeof _0x49911c[_0x4f52ec(_0x1a5ae8._0x181e03,0x291,0x268,0x235)]===_0x4f52ec(_0x1a5ae8._0x9b8939,0x25d,0x2f4,_0x1a5ae8._0x3576d8))return _0x49911c[_0x4f52ec(_0x1a5ae8._0x245dde,0x297,_0x1a5ae8._0x2113f0,0x190)];return JSON[_0x50ed35(_0x1a5ae8._0x3b9a93,_0x1a5ae8._0x2e2b79,0x523,0x539)](_0x49911c);})['filter'](_0xf79dbc=>_0xf79dbc[_0x28f567(0x16e,0x157,0x172,0x201)]>0x0)[_0x8a2492(_0x5dd28a._0x556849,0x3ac,_0x5dd28a._0x1bc92d,0x38f)]('\x0a');if(_0x3b6208[_0x28f567(0x17a,_0x5dd28a._0x24672e,_0x5dd28a._0x385f0d,0x170)]>0x0)return _0x3b6208;return JSON['stringify'](_0x3980f4,null,0x2);}function createMcpTool(_0x218fb4){const _0x26f86a={_0x14211c:0x30a,_0x40dab3:0x28c,_0x215ef6:0x2a6,_0x297191:0x496,_0x449181:0x355,_0x2e446b:0x369,_0x3b5512:0x3a2,_0xc7bb8d:0x358,_0x28a76c:0x347,_0x1daf0f:0x37b,_0x26320a:0x39b,_0x350f6e:0x414,_0x16e419:0x3e8},_0x59132d={_0x8a0f2f:0x6ee,_0x42c7d5:0x6f7,_0x233622:0x658,_0x581646:0x580,_0x1564c7:0x5fa,_0x3deb5f:0x5c9,_0x50def0:0x67b,_0x377916:0x60c,_0x5b4128:0x644,_0x4426c3:0x4c3,_0x67e24d:0x4b5,_0x54cfa9:0x628,_0x5d6d5f:0x5f6,_0x273def:0x573,_0x15336a:0x59d},_0x23a829={_0x170d2d:0x10b},_0x1f836a={_0x4e32b2:0x33,_0x488b66:0x87,_0x281ade:0x140};function _0x3ecb87(_0x397657,_0x32c193,_0x2f413a,_0x192880){return _0x44530c(_0x397657,_0x32c193-_0x1f836a._0x4e32b2,_0x2f413a-_0x1f836a._0x488b66,_0x32c193- -_0x1f836a._0x281ade);}function _0x1d0800(_0x43993c,_0x13bcef,_0xdbde42,_0x1e72d3){return _0x452c58(_0xdbde42-0x279,_0x1e72d3,_0xdbde42-0x110,_0x1e72d3-_0x23a829._0x170d2d);}const _0xa932ac=createMcpToolName(_0x218fb4['serverName'],_0x218fb4['tool'][_0x3ecb87(0x2d4,_0x26f86a._0x14211c,_0x26f86a._0x40dab3,_0x26f86a._0x215ef6)]);return defineTool({'name':_0xa932ac,'description':_0x218fb4[_0x1d0800(0x516,0x4ad,_0x26f86a._0x297191,0x4da)][_0x1d0800(0x50e,0x4ad,0x486,0x3f5)]??_0x3ecb87(_0x26f86a._0x449181,0x332,0x2c0,0x305)+_0x218fb4[_0x3ecb87(0x351,_0x26f86a._0x2e446b,0x38f,_0x26f86a._0x3b5512)]['name']+_0x3ecb87(0x272,0x2fe,_0x26f86a._0xc7bb8d,_0x26f86a._0x28a76c)+_0x218fb4[_0x3ecb87(0x357,_0x26f86a._0x1daf0f,_0x26f86a._0x26320a,0x3ee)],'inputSchema':toNuvinToolSchema(_0x218fb4['tool'][_0x1d0800(_0x26f86a._0x350f6e,_0x26f86a._0x16e419,0x3f9,0x3f5)]),async *'execute'(_0x5818c4){const _0x1e023d={_0x23d969:0x164},_0x5d0aea={_0x1ffa30:0x1a7,_0x1e2d8:0xda},_0x2ed4e4=await _0x218fb4[_0x484018(_0x59132d._0x8a0f2f,_0x59132d._0x42c7d5,0x63e,0x67b)][_0x45cede(0x443,0x4b6,0x492,0x471)]({'name':_0x218fb4[_0x484018(_0x59132d._0x233622,_0x59132d._0x581646,0x5c2,_0x59132d._0x1564c7)][_0x45cede(0x4df,0x473,0x4c1,0x46c)],'arguments':isJsonObject(_0x5818c4)?_0x5818c4:{}});function _0x45cede(_0x23be8b,_0x53b760,_0x2faae3,_0x4d12dd){return _0x3ecb87(_0x4d12dd,_0x2faae3-0x1b7,_0x2faae3-_0x5d0aea._0x1ffa30,_0x4d12dd-_0x5d0aea._0x1e2d8);}if(_0x2ed4e4[_0x45cede(0x5ff,0x57f,0x59f,_0x59132d._0x3deb5f)])throw new ToolExecutionError(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x484018(0x5c0,0x610,_0x59132d._0x50def0,_0x59132d._0x377916)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x5b4128,0x5f2,0x636,0x5fa)][_0x45cede(_0x59132d._0x4426c3,0x50a,0x4c1,0x511)]});function _0x484018(_0x55056a,_0x519853,_0xb4db31,_0x5f47d7){return _0x1d0800(_0x55056a-0x1b6,_0x519853-0x34,_0x5f47d7-_0x1e023d._0x23d969,_0x55056a);}return yield createToolOutput(formatMcpContent(_0x2ed4e4),{'serverName':_0x218fb4[_0x45cede(_0x59132d._0x67e24d,0x534,0x532,0x51f)],'toolName':_0x218fb4[_0x484018(_0x59132d._0x54cfa9,_0x59132d._0x5d6d5f,_0x59132d._0x273def,0x5fa)][_0x484018(0x5e5,_0x59132d._0x15336a,0x569,0x59b)],'result':_0x2ed4e4}),void 0x0;}});}function resolvePrefix(_0xc7b08e,_0x2072db){const _0x443e02={_0x447997:0x4d6,_0x516505:0x41d,_0x2d7b9c:0x480,_0x2b282a:0x3f6};function _0xf8274a(_0x1859f5,_0x44797f,_0x2678c3,_0x2c6d11){return _0x452c58(_0x2678c3-0x2ba,_0x2c6d11,_0x2678c3-0x161,_0x2c6d11-0x130);}return _0x2072db[_0xf8274a(_0x443e02._0x447997,_0x443e02._0x516505,_0x443e02._0x2d7b9c,_0x443e02._0x2b282a)]??_0xc7b08e;}function buildMcpHttpHeaders(_0x5a61e9){const _0x5ac222={_0x9875ac:0x365,_0x4cc1ca:0x321,_0xa10d4d:0x29d,_0x4929b5:0x2f9,_0x358251:0x30c,_0xf3778f:0x270,_0x643d9b:0x24c,_0x165c41:0x2e8,_0x340d08:0x241,_0x43681a:0x215,_0x199cde:0x28d,_0x21e609:0x30a,_0x8c47cb:0x23e,_0x3f638d:0x287,_0x265166:0x293,_0xf0453d:0x137,_0x2724b3:0x25c,_0x370459:0x1c7,_0x25a5de:0x1bd,_0x490a68:0x325,_0x4bb7ae:0x233},_0x4dd121={_0x5a4d06:0x12c,_0x4e6150:0x1b3},_0x3a6df6={_0x21a54e:0x1c5,_0x574325:0x1c4},_0x819e6d={..._0x5a61e9[_0x2e4c41(_0x5ac222._0x9875ac,0x31c,0x320,_0x5ac222._0x4cc1ca)]??{}};_0x5a61e9['auth']?.[_0x2e4c41(0x336,0x2eb,_0x5ac222._0xa10d4d,0x3b0)]===_0x2e4c41(0x265,0x1fb,0x271,_0x5ac222._0x4929b5)&&_0x5a61e9[_0x2e4c41(_0x5ac222._0x358251,0x27f,0x374,_0x5ac222._0xf3778f)][_0x2e4c41(_0x5ac222._0x643d9b,_0x5ac222._0x165c41,0x2c1,0x1d2)]&&_0x819e6d[_0x281348(_0x5ac222._0x340d08,_0x5ac222._0x43681a,_0x5ac222._0x199cde,0x207)]===void 0x0&&(_0x819e6d['Authorization']=_0x281348(0x303,_0x5ac222._0x21e609,0x293,0x27e)+_0x5a61e9[_0x281348(0x2bf,_0x5ac222._0x8c47cb,_0x5ac222._0x3f638d,_0x5ac222._0x265166)][_0x281348(_0x5ac222._0xf0453d,_0x5ac222._0x2724b3,_0x5ac222._0x370459,_0x5ac222._0x25a5de)]);function _0x281348(_0x30d85a,_0x211f86,_0x45fc40,_0x1f24a6){return _0x44530c(_0x30d85a,_0x211f86-_0x3a6df6._0x21a54e,_0x45fc40-_0x3a6df6._0x574325,_0x45fc40- -0x238);}function _0x2e4c41(_0x502617,_0x329f1f,_0x4ae3e4,_0x4bc614){return _0x44530c(_0x329f1f,_0x329f1f-0xee,_0x4ae3e4-_0x4dd121._0x5a4d06,_0x502617- -_0x4dd121._0x4e6150);}return Object[_0x2e4c41(0x328,0x2db,0x333,0x2cc)](_0x819e6d)[_0x2e4c41(0x2a7,0x2f8,_0x5ac222._0x490a68,_0x5ac222._0x4bb7ae)]>0x0?_0x819e6d:void 0x0;}function getErrorMessage(_0x14aa0b){const _0x55d2d4={_0x5ad986:0x144,_0x50f2a8:0x11d},_0x1a596a={_0x2c6a94:0x83,_0x559850:0x3ba};function _0x188531(_0x3f94ad,_0x2460f6,_0xa285a6,_0x2b9408){return _0x44530c(_0x2460f6,_0x2460f6-_0x1a596a._0x2c6a94,_0xa285a6-0x6a,_0x2b9408- -_0x1a596a._0x559850);}return _0x14aa0b instanceof Error?_0x14aa0b[_0x188531(0xbc,_0x55d2d4._0x5ad986,0x174,_0x55d2d4._0x50f2a8)]:String(_0x14aa0b);}function isUnauthorizedError(_0x21af59){const _0x417fdd={_0x519da3:0x365,_0x3a8a12:0x288,_0x56a732:0x278,_0xabae74:0x1fd,_0x14994e:0x28c,_0x26e120:0x1da},_0x1f87c3={_0x4ec576:0x176},_0x1566b8={_0x40048c:0x41,_0x1d5e08:0x66c};function _0x38744d(_0x3eead5,_0xdd6126,_0x2b7613,_0x24cef9){return _0x44530c(_0x24cef9,_0xdd6126-0x142,_0x2b7613-_0x1566b8._0x40048c,_0xdd6126- -_0x1566b8._0x1d5e08);}function _0x2b9899(_0x50fb96,_0x34e2dd,_0x1e8ba9,_0x5d5f29){return _0x44530c(_0x5d5f29,_0x34e2dd-_0x1f87c3._0x4ec576,_0x1e8ba9-0xe6,_0x50fb96- -0x210);}return _0x21af59 instanceof Error&&_0x21af59[_0x2b9899(0x2f8,_0x417fdd._0x519da3,_0x417fdd._0x3a8a12,0x36a)][_0x2b9899(0x23a,0x1ec,_0x417fdd._0x56a732,_0x417fdd._0xabae74)]===_0x2b9899(0x20a,_0x417fdd._0x14994e,_0x417fdd._0x26e120,0x199);}function _0x5314(_0x25c8d5,_0x1e0e47){_0x25c8d5=_0x25c8d5-0x179;const _0x418684=_0x4186();let _0x531419=_0x418684[_0x25c8d5];if(_0x5314['RJhcfe']===undefined){var _0x38c5ee=function(_0x529957){const _0x198131='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x957778='',_0x369387='';for(let _0xa29099=0x0,_0x5afd85,_0x31f93b,_0x53289c=0x0;_0x31f93b=_0x529957['charAt'](_0x53289c++);~_0x31f93b&&(_0x5afd85=_0xa29099%0x4?_0x5afd85*0x40+_0x31f93b:_0x31f93b,_0xa29099++%0x4)?_0x957778+=String['fromCharCode'](0xff&_0x5afd85>>(-0x2*_0xa29099&0x6)):0x0){_0x31f93b=_0x198131['indexOf'](_0x31f93b);}for(let _0x516c80=0x0,_0x4483b2=_0x957778['length'];_0x516c80<_0x4483b2;_0x516c80++){_0x369387+='%'+('00'+_0x957778['charCodeAt'](_0x516c80)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x369387);};_0x5314['lHuujx']=_0x38c5ee,_0x5314['KfGxmy']={},_0x5314['RJhcfe']=!![];}const _0x36bb63=_0x418684[0x0],_0x487109=_0x25c8d5+_0x36bb63,_0x11472e=_0x5314['KfGxmy'][_0x487109];return!_0x11472e?(_0x531419=_0x5314['lHuujx'](_0x531419),_0x5314['KfGxmy'][_0x487109]=_0x531419):_0x531419=_0x11472e,_0x531419;}async function connectMcpServer(_0x5f01d9,_0x37d345,_0x2a1575){const _0x3b6730={_0x3bc9ce:0x138,_0x492947:0x13b,_0x20daa3:0x12c,_0x53c76d:0xd2,_0x2466a7:0x65d,_0x1a83f5:0x5eb,_0x4886a8:0x8d,_0x5260ad:0x503,_0x4484fe:0x573,_0x24ac8a:0xe3,_0x59ea52:0xee,_0x17e09e:0x1b9,_0x471c94:0x18e,_0x3ee692:0x135,_0x2f7945:0x5c2,_0x300a2a:0x609,_0xc045e5:0x531,_0x474089:0x58e,_0x30fa65:0x93,_0x13ca15:0x123,_0x167aa2:0xb2,_0x2dfced:0x8f,_0x25d090:0xbe,_0x177731:0x163,_0x4f2430:0xdf,_0x1cc704:0x62e,_0x30297c:0x5a8,_0x2c9150:0x539,_0xa65443:0x5a8,_0x55a838:0x550,_0x5088d0:0x616,_0x80437d:0x514,_0x241d56:0x540,_0x572e26:0x6f,_0x21ddae:0xca,_0x155c6b:0xd3,_0x1253c3:0xd8,_0x4eee9a:0x573,_0x467ebc:0x644,_0x2b7679:0x525,_0x309336:0x4b7,_0x3ce159:0x44d,_0x7239f4:0x4c2,_0x9b9404:0x148,_0x21f2b9:0xde,_0x459d9c:0x107,_0x2af65b:0x176,_0x31e6f9:0x13f},_0x278f77={_0x130129:0x536,_0x5973ba:0x4ad,_0x2569bc:0x54b},_0x727fe3={_0x3b271e:0x16b,_0x4be8f0:0x97},_0x11bd08={_0xc44182:0x2c8,_0x46712d:0x327},_0x1d2411={_0x5847ba:0x100},_0x141e07={_0x5b23d3:0xf6,_0x799e52:0x8f},_0x378f67={_0x45ef4e:0x59};function _0x9e46bb(_0x1397d8,_0x8b49ed,_0x5c20bc,_0x1520d1){return _0x44530c(_0x1397d8,_0x8b49ed-0xac,_0x5c20bc-_0x378f67._0x45ef4e,_0x5c20bc- -0x3e0);}const _0x55fd79=new Client({'name':_0x9e46bb(0x120,_0x3b6730._0x3bc9ce,_0x3b6730._0x492947,_0x3b6730._0x20daa3),'version':_0x9e46bb(0x66,0x36,_0x3b6730._0x53c76d,0x41)});function _0x2afb6b(_0x20f909,_0x3641c2,_0x39444b,_0x91afad){return _0x44530c(_0x3641c2,_0x3641c2-_0x141e07._0x5b23d3,_0x39444b-_0x141e07._0x799e52,_0x91afad-0xa5);}if(_0x37d345[_0x2afb6b(0x5c5,_0x3b6730._0x2466a7,_0x3b6730._0x1a83f5,0x5c1)]===_0x9e46bb(_0x3b6730._0x4886a8,0x13c,0x111,0x103)||_0x37d345[_0x2afb6b(0x5c2,0x4d8,_0x3b6730._0x5260ad,_0x3b6730._0x4484fe)]){if(!_0x37d345[_0x9e46bb(0x102,_0x3b6730._0x24ac8a,_0x3b6730._0x59ea52,0xa5)])throw new Error(_0x9e46bb(_0x3b6730._0x17e09e,_0x3b6730._0x471c94,_0x3b6730._0x3ee692,0x162)+_0x5f01d9+_0x2afb6b(0x589,0x55b,_0x3b6730._0x2f7945,0x55c));if(_0x37d345['auth']?.[_0x2afb6b(0x616,_0x3b6730._0x300a2a,_0x3b6730._0xc045e5,_0x3b6730._0x474089)]===_0x9e46bb(_0x3b6730._0x30fa65,0x1ac,_0x3b6730._0x13ca15,0x192)&&!_0x2a1575?.[_0x2afb6b(0x5a9,0x546,0x598,0x5a8)])throw new Error(_0x2afb6b(0x564,0x5f5,0x5e6,0x5ba)+_0x5f01d9+_0x9e46bb(0x4c,_0x3b6730._0x167aa2,0x50,_0x3b6730._0x2dfced));const _0x4d2e7f=buildMcpHttpHeaders(_0x37d345),_0x37a1b2=_0x37d345[_0x9e46bb(_0x3b6730._0x25d090,_0x3b6730._0x177731,_0x3b6730._0x4f2430,0xe3)]?.['type']===_0x2afb6b(0x594,0x604,0x535,0x5a8)&&_0x2a1575?.[_0x2afb6b(0x599,0x559,_0x3b6730._0x1cc704,_0x3b6730._0x30297c)]?createMcpOAuthProvider({'serverName':_0x5f01d9,'callbackUrl':_0x2a1575[_0x2afb6b(_0x3b6730._0x2c9150,0x5ab,0x5ba,_0x3b6730._0xa65443)][_0x2afb6b(_0x3b6730._0x55a838,_0x3b6730._0x5088d0,0x506,0x58f)],'storageDir':_0x2a1575[_0x2afb6b(_0x3b6730._0x80437d,_0x3b6730._0x241d56,0x606,0x5a8)][_0x9e46bb(_0x3b6730._0x572e26,0xd0,_0x3b6730._0x21ddae,_0x3b6730._0x155c6b)],'config':_0x37d345[_0x9e46bb(0xfc,0xdc,0xdf,_0x3b6730._0x1253c3)],'onRedirect':_0x55f007=>_0x2a1575[_0x2afb6b(0x50c,0x56e,0x5cc,0x5a8)]?.[_0x2afb6b(0x553,0x608,0x530,0x582)](_0x5f01d9,_0x55f007)}):void 0x0,_0x2fbd54=new StreamableHTTPClientTransport(new URL(_0x37d345[_0x2afb6b(0x530,0x593,0x4de,_0x3b6730._0x4eee9a)]),{'authProvider':_0x37a1b2,'requestInit':_0x4d2e7f?{'headers':_0x4d2e7f}:void 0x0});await _0x55fd79[_0x9e46bb(0x184,0x19b,0x13f,0x169)](_0x2fbd54);}else{if(!_0x37d345['command'])throw new Error(_0x2afb6b(_0x3b6730._0x467ebc,0x5f0,_0x3b6730._0x2b7679,0x5ba)+_0x5f01d9+_0x2afb6b(_0x3b6730._0x309336,_0x3b6730._0x3ce159,_0x3b6730._0x7239f4,0x4c9));const _0x291e6f=new StdioClientTransport({'command':_0x37d345[_0x9e46bb(0x132,_0x3b6730._0x9b9404,0x14b,0x11f)],'args':_0x37d345[_0x9e46bb(_0x3b6730._0x21f2b9,0x96,0x100,0xed)]??[],'env':_0x37d345['env']});await _0x55fd79[_0x9e46bb(_0x3b6730._0x459d9c,_0x3b6730._0x2af65b,_0x3b6730._0x31e6f9,0x134)](_0x291e6f);}return{async 'listTools'(){return await _0x55fd79['listTools']();},async 'callTool'(_0xeb5795){const _0x225b29={_0x24691a:0x1ee,_0x29bd5d:0x3d};function _0x2110e5(_0x2a7a6a,_0x21d3cd,_0x4f24e8,_0x1d071b){return _0x9e46bb(_0x4f24e8,_0x21d3cd-0x13c,_0x1d071b-_0x225b29._0x24691a,_0x1d071b-_0x225b29._0x29bd5d);}function _0x56cfe6(_0x5d1fe5,_0x1163c6,_0x5b5e5f,_0x325434){return _0x9e46bb(_0x5d1fe5,_0x1163c6-_0x1d2411._0x5847ba,_0x5b5e5f-0x21f,_0x325434-0x13a);}return await _0x55fd79[_0x2110e5(0x31a,_0x11bd08._0xc44182,0x329,_0x11bd08._0x46712d)]({'method':_0x2110e5(0x35a,0x2cd,0x356,0x2cf),'params':_0xeb5795},CallToolResultSchema);},async 'close'(){function _0x28c80a(_0x26339e,_0x486d9d,_0x5375e0,_0x1b4ddf){return _0x2afb6b(_0x26339e-_0x727fe3._0x3b271e,_0x5375e0,_0x5375e0-0x1dc,_0x1b4ddf- -_0x727fe3._0x4be8f0);}await _0x55fd79[_0x28c80a(_0x278f77._0x130129,_0x278f77._0x5973ba,_0x278f77._0x2569bc,0x4bf)]();}};}async function createMcpToolsFromServers(_0x4bbc23){const _0x102425={_0x35dfae:0x1d5,_0x417389:0x26d,_0x4fa1cf:0xdf,_0x6951d0:0x86,_0x155fa7:0xf3,_0x36dcde:0x181,_0x3422be:0x150,_0x304c8a:0x1bb,_0x29f0a1:0x2bf,_0xca35bf:0x21c,_0x769818:0x46,_0x489035:0x64,_0x111594:0x40,_0x186a94:0x1a5,_0x4d27cb:0x1b1,_0x1b7763:0x98,_0x3fdcbb:0xdc,_0x350b49:0xf1,_0x19f0bc:0xf4,_0x281737:0x78,_0x5e9ef8:0x1e5,_0x33d82e:0x13f,_0x4a6bda:0x161,_0x26ccea:0xf8,_0x19d4b1:0x137,_0x47cb99:0xde},_0x442f94={_0x2f72a8:0x4c7,_0x4a79b1:0x4a5,_0x35d87d:0x1d9,_0xbe6c16:0x121,_0x15ffe1:0x1b2},_0x387846={_0x188785:0x1cd,_0xa5c026:0x49},_0x9e5749={_0x4e34ca:0x189},_0x970586={_0x5b974e:0x26,_0x42bcc7:0xda,_0x3b0e5d:0x1e7},_0x357534={_0x4840c5:0x168,_0x835304:0x91,_0x56c872:0x53e},_0x2e7c6d=_0x4bbc23[_0x2ac518(_0x102425._0x35dfae,0x1f5,0x2c9,_0x102425._0x417389)]??connectMcpServer,_0x503f3b=[],_0x467b1b={};function _0x240d41(_0x18770d,_0x53a92f,_0x36b19a,_0x4d9808){return _0x44530c(_0x4d9808,_0x53a92f-_0x357534._0x4840c5,_0x36b19a-_0x357534._0x835304,_0x18770d- -_0x357534._0x56c872);}const _0x41493d=[];for(const [_0x4d46c5,_0x3ea35e]of Object['entries'](_0x4bbc23[_0x240d41(-0xa0,-_0x102425._0x4fa1cf,-_0x102425._0x6951d0,-_0x102425._0x155fa7)]??{})){if(_0x3ea35e[_0x2ac518(0x12c,_0x102425._0x36dcde,_0x102425._0x3422be,_0x102425._0x304c8a)]===![]){_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x29f0a1,0x2d2,_0x102425._0xca35bf,0x259)};continue;}try{const _0x5d7db4=await _0x2e7c6d(_0x4d46c5,_0x3ea35e,_0x4bbc23[_0x2ac518(0xbe,0x1e1,0x1ed,0x151)]);_0x503f3b[_0x2ac518(0x21a,0x1ff,0x1d6,0x1d7)](_0x5d7db4);const _0x49327f=await _0x5d7db4[_0x240d41(-_0x102425._0x769818,-_0x102425._0x489035,_0x102425._0x111594,0x47)]();let _0x169f10=0x0;for(const _0x56cda8 of _0x49327f[_0x2ac518(_0x102425._0x186a94,_0x102425._0x4d27cb,0x24d,0x235)]){const _0x208ca6=_0x4bbc23[_0x240d41(-_0x102425._0x1b7763,-_0x102425._0x3fdcbb,-0xb3,-_0x102425._0x350b49)]?.[_0x4d46c5]?.[_0x56cda8[_0x240d41(-_0x102425._0x19f0bc,-0xa3,-0xc0,-0x152)]];if(_0x208ca6===![])continue;_0x169f10+=0x1,_0x41493d[_0x240d41(-0xb5,-0x2c,-0x131,-_0x102425._0x281737)](createMcpTool({'serverName':resolvePrefix(_0x4d46c5,_0x3ea35e),'tool':_0x56cda8,'client':_0x5d7db4}));}_0x467b1b[_0x4d46c5]={'status':_0x2ac518(_0x102425._0x5e9ef8,_0x102425._0x33d82e,0x109,_0x102425._0x4a6bda),'toolCount':_0x169f10};}catch(_0x115a22){_0x467b1b[_0x4d46c5]=isUnauthorizedError(_0x115a22)?{'status':'authRequired','message':getErrorMessage(_0x115a22)}:{'status':_0x240d41(-_0x102425._0x26ccea,-_0x102425._0x19d4b1,-_0x102425._0x47cb99,-0xc4),'message':getErrorMessage(_0x115a22)};}}function _0x2ac518(_0x1587e6,_0x4dece5,_0x539c65,_0x213dfc){return _0x452c58(_0x213dfc- -_0x970586._0x5b974e,_0x1587e6,_0x539c65-_0x970586._0x42bcc7,_0x213dfc-_0x970586._0x3b0e5d);}return{'tools':_0x41493d,'servers':_0x467b1b,async 'close'(){function _0x462dad(_0x6d5f4c,_0x47d2d6,_0x3737dc,_0x40df96){return _0x2ac518(_0x3737dc,_0x47d2d6-_0x9e5749._0x4e34ca,_0x3737dc-0x1de,_0x40df96-0x32f);}function _0x5c43c0(_0x5a5c8a,_0x22b3c1,_0x2df309,_0x4f9ace){return _0x2ac518(_0x2df309,_0x22b3c1-_0x387846._0x188785,_0x2df309-0x5d,_0x4f9ace- -_0x387846._0xa5c026);}await Promise[_0x462dad(0x436,0x450,_0x442f94._0x2f72a8,_0x442f94._0x4a79b1)](_0x503f3b[_0x5c43c0(0x150,_0x442f94._0x35d87d,_0x442f94._0xbe6c16,_0x442f94._0x15ffe1)](_0x5ca86c=>_0x5ca86c[_0x5c43c0(0x13b,0x162,0x20f,0x1b6)]()));}};}function getCommand(_0x582107){const _0x55c900={_0x4e0e8e:0x167,_0x25eefe:0x148,_0x354ef8:0x111,_0x298c5a:0xf8,_0x1f85a1:0x1bc,_0x3f826b:0x14f},_0x69d5e3={_0x4b26dd:0x11e,_0x638222:0x1c6};function _0x27db43(_0x6c2b53,_0x43caa2,_0x14541d,_0x2b53e8){return _0x44530c(_0x2b53e8,_0x43caa2-0xbd,_0x14541d-0x9a,_0x6c2b53- -0x80);}function _0x1f5e79(_0x4a19e5,_0x584535,_0x3f26a9,_0x3efce6){return _0x452c58(_0x4a19e5- -0x3e0,_0x3efce6,_0x3f26a9-_0x69d5e3._0x4b26dd,_0x3efce6-_0x69d5e3._0x638222);}if(_0x582107&&typeof _0x582107===_0x1f5e79(-_0x55c900._0x4e0e8e,-_0x55c900._0x25eefe,-_0x55c900._0x354ef8,-0x146)&&!Array[_0x1f5e79(-0x158,-_0x55c900._0x298c5a,-0x1e1,-0x111)](_0x582107)&&typeof _0x582107['command']===_0x1f5e79(-0x16c,-0x163,-0x1b1,-0x1b8))return _0x582107[_0x1f5e79(-0x141,-0x134,-_0x55c900._0x1f85a1,-_0x55c900._0x3f826b)];return'ls\x20-la';}function _0x44530c(_0x2d6241,_0x3dea1a,_0x43f76a,_0x2a2869){return _0x5314(_0x2a2869-0x284,_0x2d6241);}var MOCK_WORKSPACE_LISTING=[_0x44530c(0x4c2,0x4d5,0x536,0x526),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md',_0x452c58(0x249,0x1cc,0x2a4,0x251),_0x452c58(0x1ab,0x152,0x17b,0x228),'src/formats/message-format.ts','src/examples/demo.ts',_0x452c58(0x182,0x206,0x1e8,0x162),_0x452c58(0x2a0,0x225,0x29b,0x312),'src/tools/mock-tool-runtime.ts',_0x44530c(0x409,0x38d,0x496,0x412),_0x452c58(0x1dd,0x223,0x187,0x271),_0x452c58(0x245,0x24c,0x28b,0x23f),_0x44530c(0x5a5,0x569,0x529,0x511),_0x452c58(0x199,0x170,0x1e9,0x112),_0x44530c(0x465,0x4f5,0x4cf,0x4fd),_0x452c58(0x1b0,0x171,0x1d6,0x228)][_0x44530c(0x4b6,0x4a4,0x404,0x41f)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x452c58(0x252,0x2d6,0x210,0x287),'description':_0x452c58(0x1b4,0x221,0x21e,0x1e0),'input_schema':{'type':_0x452c58(0x279,0x279,0x208,0x299),'properties':{'command':{'type':_0x452c58(0x274,0x29e,0x2a9,0x273)}},'required':[_0x452c58(0x29f,0x2fd,0x330,0x293)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3efd96){return{'output':_0x3efd96,'structured':{'value':_0x3efd96}};}function createUnknownToolResult(_0x3524e1){const _0x510fee={_0x4a81b9:0x39d,_0x32b832:0x371,_0xa62ea:0x1ff,_0x3c9c9b:0x235,_0xdc5161:0x1ed},_0x59a573={_0x173522:0x11f,_0xba9fe3:0xea,_0xf0a4a1:0x211},_0xe48a1={_0x1fb9f2:0x11c,_0x3dfb5d:0xbd,_0x43b713:0xd7};function _0x35bfbe(_0x3bca98,_0x5c4f30,_0x5e7ec7,_0x43e5b5){return _0x44530c(_0x43e5b5,_0x5c4f30-_0xe48a1._0x1fb9f2,_0x5e7ec7-_0xe48a1._0x3dfb5d,_0x5e7ec7- -_0xe48a1._0x43b713);}function _0x1cbe66(_0x4d5604,_0x22b2ad,_0x288a2e,_0x1b0b65){return _0x44530c(_0x22b2ad,_0x22b2ad-_0x59a573._0x173522,_0x288a2e-_0x59a573._0xba9fe3,_0x288a2e- -_0x59a573._0xf0a4a1);}return{'callId':_0x3524e1['id'],'toolName':_0x3524e1[_0x35bfbe(0x3c8,_0x510fee._0x4a81b9,0x373,_0x510fee._0x32b832)],'status':_0x1cbe66(_0x510fee._0xa62ea,0x20c,_0x510fee._0x3c9c9b,0x1fc),'output':'Unknown\x20tool:\x20'+_0x3524e1[_0x1cbe66(0x2be,_0x510fee._0xdc5161,0x239,0x24d)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x224f15,_0x15100f){const _0x4ef0ae={_0x30c3c9:0x3b8},_0x19a9e2={_0x16c050:0x15b,_0x2cf488:0x5a};function _0x18942a(_0x21fe9a,_0x452100,_0x594bc5,_0x1eaaf9){return _0x44530c(_0x452100,_0x452100-_0x19a9e2._0x16c050,_0x594bc5-_0x19a9e2._0x2cf488,_0x594bc5- -0x5);}return{'callId':_0x224f15['id'],'toolName':_0x224f15['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x224f15[_0x18942a(0x3f5,0x467,0x41c,_0x4ef0ae._0x30c3c9)]),'exitCode':0x0},'chunks':[_0x15100f],'meta':createMeta()};}function createMockToolRuntime(){const _0xd0a36c={_0x34445d:0x19f,_0x33540d:0x107},_0x142ec4={_0x4a5a90:0x343},_0x4a522f={_0x76c2bb:0x1be,_0x3ca9cd:0x1f1},_0x116311={_0x2da708:0x38a},_0x19439a=async(_0xd8f28b,_0x49bea9)=>{if(_0xd8f28b[_0x5bf724(-_0x4a522f._0x76c2bb,-_0x4a522f._0x3ca9cd,-0x1c4,-0x19f)]!=='Bash')return createUnknownToolResult(_0xd8f28b);const _0x3bd681=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x5bf724(_0x2f97c4,_0x2de78c,_0x2a2696,_0x53ef36){return _0x5314(_0x2a2696- -_0x116311._0x2da708,_0x53ef36);}return createSuccessToolResult(_0xd8f28b,_0x3bd681);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x5c4962,_0xaa5e2e){function _0x254bdb(_0x3f1565,_0x1743cf,_0x4d394f,_0x138b9a){return _0x5314(_0x3f1565- -_0x142ec4._0x4a5a90,_0x1743cf);}return await Promise[_0x254bdb(-_0xd0a36c._0x34445d,-0x167,-_0xd0a36c._0x33540d,-0x146)](_0x5c4962['map'](async _0x43565e=>{return await _0x19439a(_0x43565e,_0xaa5e2e);}));},async 'execute'(_0x184d58,_0x214182){return await _0x19439a(_0x184d58,_0x214182);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x37566b={_0x4276d9:0x4ab,_0x53fc99:0x537},_0x2c6d12={_0x488b5c:0xd8};delegatedRunCounter+=0x1;function _0x4bd980(_0x5b9649,_0x3a5f91,_0x334291,_0x278ea1){return _0x452c58(_0x278ea1-0x31b,_0x334291,_0x334291-0x1f4,_0x278ea1-_0x2c6d12._0x488b5c);}return _0x4bd980(0x569,_0x37566b._0x4276d9,0x5b4,_0x37566b._0x53fc99)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x2159ab,_0x40be3b){return typeof _0x2159ab==='function'?await _0x2159ab(_0x40be3b):_0x2159ab;}function getDelegatedAgentDefinition(_0x5b998f,_0x3f469f){const _0x59180f={_0x1cc53d:0x3ea,_0x3589bc:0x411,_0x3c935e:0x471},_0x49e9a6={_0x30b896:0x2f};function _0x4035b7(_0x456928,_0x5ec80c,_0x3f4a69,_0x5da697){return _0x44530c(_0x5da697,_0x5ec80c-0xc1,_0x3f4a69-_0x49e9a6._0x30b896,_0x3f4a69- -0x7d);}return _0x5b998f[_0x4035b7(_0x59180f._0x1cc53d,_0x59180f._0x3589bc,0x475,_0x59180f._0x3c935e)]?.[_0x3f469f];}function createRunSummary(_0x2df3f6){const _0x1b8ea6={_0x480d27:0x5c,_0x5bc19b:0x2e,_0x317129:0xba,_0x396a5b:0x4b,_0x39998f:0x97,_0x553d5c:0x2f,_0x15214a:0x1b,_0xa06698:0x475,_0x413cdd:0x45c,_0x589ba5:0x420,_0x1f2029:0x50c,_0x55d3aa:0x4b9,_0x165fd1:0x4e7,_0x59e7c7:0xa0,_0x210fde:0xa};function _0xefa2de(_0x7612b9,_0x2e98a7,_0x40adf1,_0x2ba0d2){return _0x452c58(_0x7612b9-0x291,_0x40adf1,_0x40adf1-0x1bf,_0x2ba0d2-0xc3);}function _0x3ef530(_0x196564,_0x297ab4,_0x3b9b0b,_0x42bcb5){return _0x44530c(_0x42bcb5,_0x297ab4-0x190,_0x3b9b0b-0x1b0,_0x297ab4- -0x468);}return{'runId':_0x2df3f6['runId'],'agentId':_0x2df3f6[_0x3ef530(-0x2c,_0x1b8ea6._0x480d27,-_0x1b8ea6._0x5bc19b,_0x1b8ea6._0x317129)],'sessionId':_0x2df3f6[_0x3ef530(0xa7,_0x1b8ea6._0x396a5b,0xd6,0x3c)],'status':_0x2df3f6[_0x3ef530(-0x45,0x4,-_0x1b8ea6._0x39998f,0x1e)],'parentSessionId':_0x2df3f6['parentSessionId'],..._0x2df3f6['originToolCallId']!==void 0x0?{'originToolCallId':_0x2df3f6[_0x3ef530(_0x1b8ea6._0x553d5c,-_0x1b8ea6._0x15214a,-0x66,-0x27)]}:{},..._0x2df3f6['errorMessage']!==void 0x0?{'errorMessage':_0x2df3f6[_0xefa2de(_0x1b8ea6._0xa06698,_0x1b8ea6._0x413cdd,0x4d8,_0x1b8ea6._0x589ba5)]}:{},..._0x2df3f6['result']?.[_0xefa2de(_0x1b8ea6._0x1f2029,_0x1b8ea6._0x55d3aa,0x535,_0x1b8ea6._0x165fd1)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2df3f6[_0x3ef530(_0x1b8ea6._0x59e7c7,0x51,-_0x1b8ea6._0x210fde,0x35)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0xb18764,_0x7d9a13){const _0xb22314={_0x9e3049:0x22,_0xb575d5:0xd5,_0x25274a:0x26,_0x55ff22:0x78},_0x40c33b={_0x4b272c:0x17b},_0x1585b1={_0x388428:0x194};function _0x1ec64e(_0x3f582d,_0x17454f,_0x8eaa6e,_0xabc6ec){return _0x44530c(_0x17454f,_0x17454f-0x145,_0x8eaa6e-_0x1585b1._0x388428,_0x8eaa6e- -0x4d2);}const _0x51a772=createRunSummary(_0xb18764);function _0x438a48(_0x3b0acf,_0x2e036b,_0x1682da,_0x499ea3){return _0x452c58(_0x499ea3- -0x22a,_0x2e036b,_0x1682da-_0x40c33b._0x4b272c,_0x499ea3-0x1af);}const _0xca4edb=_0x51a772['finalMessageText'];return createToolOutput(typeof _0xca4edb===_0x438a48(_0xb22314._0x9e3049,_0xb22314._0xb575d5,-_0xb22314._0x25274a,0x4a)&&_0xca4edb[_0x1ec64e(-0x114,-0xe9,-_0xb22314._0x55ff22,-0x3f)]>0x0?_0xca4edb:_0x7d9a13,_0x51a772);}function getRunTerminalErrorMessage(_0x26189c){const _0x169419={_0x1a17f0:0x165,_0x32be5a:0x1ee,_0x2badc6:0x17c,_0x293710:0x9f,_0x104b55:0x1be,_0x53ce4b:0x152,_0x3229b3:0x11a,_0x15a990:0xa9,_0x4fc31c:0x15b,_0x5165bc:0x148,_0x357c22:0x1ee},_0x1bc5f6={_0x13ea6d:0x329,_0x1bd786:0x69},_0x2133a4={_0x327420:0xf8,_0x56a281:0x18},_0x3fb257=_0x26189c?.[_0x3dfea7(-0x162,-0x1b3,-_0x169419._0x1a17f0,-_0x169419._0x32be5a)][_0x3dfea7(-0x109,-_0x169419._0x2badc6,-0x11d,-_0x169419._0x293710)]['at'](-0x1);if(_0x3fb257?.['status']===_0x3dfea7(-0x16f,-0x1c2,-_0x169419._0x104b55,-0x1f6)&&_0x3fb257[_0x439315(-0x19d,-_0x169419._0x53ce4b,-_0x169419._0x3229b3,-0x20c)][_0x439315(-0xeb,-_0x169419._0x2badc6,-_0x169419._0x15a990,-0x119)]()[_0x3dfea7(-_0x169419._0x4fc31c,-0x1a0,-_0x169419._0x5165bc,-_0x169419._0x357c22)]>0x0)return _0x3fb257['output'];function _0x439315(_0x3d262c,_0x372999,_0x577379,_0x3c784d){return _0x44530c(_0x3c784d,_0x372999-_0x2133a4._0x327420,_0x577379-_0x2133a4._0x56a281,_0x3d262c- -0x5d1);}function _0x3dfea7(_0xaf567a,_0x5f1410,_0x3348fc,_0x334c83){return _0x452c58(_0xaf567a- -_0x1bc5f6._0x13ea6d,_0x3348fc,_0x3348fc-0x58,_0x334c83-_0x1bc5f6._0x1bd786);}return void 0x0;}function formatAbortedRunMessage(_0x1598ac,_0x26cf75){const _0x511b85={_0x31a072:0xa7,_0x394e2d:0x1e,_0x4e148f:0x90,_0x22d321:0xfe,_0xa09717:0x50},_0x492c54={_0x27d935:0x68},_0x243734={_0x218213:0x4a,_0xfb0469:0x118},_0x31481b='Agent\x20run\x20'+_0x1598ac+_0x1b69ef(0x86,_0x511b85._0x31a072,0x30,_0x511b85._0x394e2d);function _0x404857(_0x1f751f,_0x450144,_0x32e1d5,_0x5efbc6){return _0x44530c(_0x5efbc6,_0x450144-0x38,_0x32e1d5-_0x243734._0x218213,_0x1f751f-_0x243734._0xfb0469);}if(!_0x26cf75||_0x26cf75[_0x1b69ef(0x98,_0x511b85._0x4e148f,0x9e,_0x511b85._0x22d321)]()[_0x1b69ef(0xe5,0x88,_0x511b85._0xa09717,0x72)]===0x0||_0x26cf75===_0x31481b)return _0x31481b;function _0x1b69ef(_0xa84efe,_0x2e9008,_0x39bc15,_0x4ef0c5){return _0x44530c(_0x39bc15,_0x2e9008-_0x492c54._0x27d935,_0x39bc15-0x115,_0x4ef0c5- -0x3e8);}return _0x31481b+'\x20Cause:\x20'+_0x26cf75;}function createAssignTaskTool(_0x4ba3d4){const _0x36395c={_0x19bd01:0x21,_0x32aff2:0x3a,_0x193b2c:0x122,_0x173d32:0x8f,_0x354d3a:0x1e,_0x59c9f3:0x4c,_0x1c88a8:0x1f,_0x32627d:0x4,_0x4b2d23:0x6,_0x28a824:0x27,_0x331712:0x3},_0x160bea={_0x1fc1a4:0x440,_0x254478:0x4a8,_0x193c98:0x3e5,_0x418991:0x42f,_0x4a0a47:0x4bb,_0x3ca3de:0x49c,_0x3a28f0:0x355,_0x2554b7:0x370,_0x2d2b05:0x3d3,_0x42c223:0x433,_0x372ae8:0x42c,_0x481a0e:0x486,_0x367e12:0x459,_0x4a86dc:0x341,_0x1a73e3:0x2bd,_0x4dd946:0x347,_0x437f3d:0x3bc,_0x2b93bf:0x330,_0x34e085:0x3b7,_0x1a6c22:0x314,_0xc5563f:0x3d0,_0x10c024:0x44f,_0x3f8c7b:0x39f,_0x29462c:0x3f5,_0x5b81fd:0x466,_0x21e7f4:0x3ff,_0x324b64:0x454,_0x1b86fe:0x3dc,_0x29a335:0x3e6,_0x536649:0x37c,_0x3bb6d0:0x450,_0x57a2fa:0x31c,_0x868882:0x391,_0x565203:0x30a,_0x4a300a:0x327,_0x2931c3:0x377,_0x437c97:0x256,_0x49f7c9:0x2f8,_0x1fc6a2:0x3c7,_0x4fd16d:0x4a9,_0x4c49c6:0x4a1,_0x2cfde8:0x409,_0x19d435:0x2fe,_0x1d71f9:0x2d3,_0x4e0d7c:0x382,_0x4810f6:0x3e1,_0x2028fb:0x407,_0xe4f26:0x2cd,_0x220230:0x350,_0x25c2b6:0x3e1,_0x3fe4fc:0x4b6,_0x13c00e:0x418,_0x2a6b35:0x3a2,_0x560b6a:0x448,_0x1fa69d:0x34f,_0x2fe24f:0x3e7,_0x41a7c7:0x37a,_0x364c57:0x32f,_0x2ac73b:0x45e,_0xc6141e:0x453,_0x33431b:0x373,_0x5432df:0x39c,_0x4dc803:0x3f4,_0x445087:0x455,_0x2949d1:0x3a3,_0x34c090:0x48f},_0x516744={_0x288bac:0x2f1,_0x18872b:0x264,_0x2b1a39:0x1c9},_0x4260cd={_0x547840:0x12b,_0x235b9f:0x142,_0x49ff24:0x4b4},_0x28a8cc={_0x3e6631:0x1b2,_0x4b961f:0x1,_0x20b113:0x1cb};function _0x3eec45(_0x1ba834,_0x56d34c,_0x34d27e,_0x3530f2){return _0x452c58(_0x34d27e- -_0x28a8cc._0x3e6631,_0x3530f2,_0x34d27e-_0x28a8cc._0x4b961f,_0x3530f2-_0x28a8cc._0x20b113);}function _0x58ac69(_0x1c4fc9,_0x35df9e,_0x1a1059,_0x23bb4b){return _0x44530c(_0x35df9e,_0x35df9e-_0x4260cd._0x547840,_0x1a1059-_0x4260cd._0x235b9f,_0x1c4fc9- -_0x4260cd._0x49ff24);}return defineTool({'name':_0x58ac69(0xc,_0x36395c._0x19bd01,-0x5b,-0x5d),'description':_0x3eec45(_0x36395c._0x32aff2,_0x36395c._0x193b2c,_0x36395c._0x173d32,0x8c),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x58ac69(0x4c,0x14,_0x36395c._0x354d3a,0x62)},'task':{'type':_0x58ac69(_0x36395c._0x59c9f3,0x4,0x64,_0x36395c._0x1c88a8)}},'required':[_0x3eec45(_0x36395c._0x32627d,0x43,0x86,0xb5),_0x3eec45(-_0x36395c._0x4b2d23,0x6,-_0x36395c._0x28a824,-_0x36395c._0x331712)]},async *'execute'(_0x3de61e,_0x1f0710){const _0x520a56={_0x3eb2e0:0xda,_0x25ce7a:0x168},_0x517343={_0x3f8b90:0x2bb},_0x26cbf5=createDelegatedRunId(),_0x2dea9c={'agentId':_0x3de61e[_0x9f9713(0x3d4,_0x160bea._0x1fc1a4,_0x160bea._0x254478,_0x160bea._0x193c98)],'parentSessionId':_0x1f0710[_0x9f9713(0x4c4,_0x160bea._0x418991,_0x160bea._0x4a0a47,_0x160bea._0x3ca3de)],'runId':_0x26cbf5,..._0x1f0710[_0x24919c(_0x160bea._0x3a28f0,0x365,_0x160bea._0x2554b7,_0x160bea._0x2d2b05)]!==void 0x0?{'toolCallId':_0x1f0710['toolCallId']}:{}},_0x1e431c=getDelegatedAgentDefinition(_0x4ba3d4,_0x3de61e['agentId']);if(!_0x1e431c)throw new ToolExecutionError(_0x9f9713(_0x160bea._0x42c223,_0x160bea._0x372ae8,0x3e7,0x41c)+_0x3de61e[_0x9f9713(0x484,0x440,_0x160bea._0x481a0e,_0x160bea._0x367e12)],{'agentId':_0x3de61e[_0x24919c(_0x160bea._0x4a86dc,_0x160bea._0x1a73e3,0x30d,_0x160bea._0x4dd946)]});function _0x9f9713(_0x53043a,_0x1f6df6,_0x26cb3a,_0x21b53e){return _0x58ac69(_0x1f6df6-0x430,_0x21b53e,_0x26cb3a-0x3e,_0x21b53e-0x17a);}function _0x24919c(_0x4cf3ca,_0x1b167a,_0x5dbbbd,_0x3f24fa){return _0x3eec45(_0x4cf3ca-0xed,_0x1b167a-0x57,_0x4cf3ca-_0x517343._0x3f8b90,_0x1b167a);}const _0x379a77=new Agent(await resolveDelegatedAgentOptions(_0x1e431c,_0x2dea9c));let _0x85e8e4={'runId':_0x26cbf5,'agentId':_0x3de61e[_0x24919c(0x341,_0x160bea._0x437f3d,0x2c9,0x3c6)],'sessionId':_0x379a77[_0x24919c(_0x160bea._0x2b93bf,0x354,_0x160bea._0x34e085,_0x160bea._0x1a6c22)],'status':_0x9f9713(0x375,_0x160bea._0xc5563f,0x440,_0x160bea._0x10c024),'parentSessionId':_0x1f0710[_0x9f9713(_0x160bea._0x3f8c7b,_0x160bea._0x418991,_0x160bea._0x29462c,_0x160bea._0x5b81fd)],..._0x1f0710['toolCallId']!==void 0x0?{'originToolCallId':_0x1f0710[_0x9f9713(_0x160bea._0x21e7f4,_0x160bea._0x324b64,0x49d,0x489)]}:{}};const _0x48f972=new AbortController(),_0x2c60bd=addAbortListener(_0x1f0710['signal'],()=>{function _0x721d0e(_0x738f21,_0x44b01b,_0x516f73,_0x1aed84){return _0x9f9713(_0x738f21-_0x520a56._0x3eb2e0,_0x44b01b- -_0x520a56._0x25ce7a,_0x516f73-0x33,_0x738f21);}_0x48f972['abort'](_0x1f0710[_0x721d0e(_0x516744._0x288bac,_0x516744._0x18872b,_0x516744._0x2b1a39,0x296)]?.['reason']);});yield createToolOutput(_0x9f9713(_0x160bea._0x1b86fe,_0x160bea._0x29a335,_0x160bea._0x536649,_0x160bea._0x3bb6d0)+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x57a2fa,_0x160bea._0x868882,0x3f3)]+'.',{'runId':_0x85e8e4['runId'],'agentId':_0x85e8e4['agentId'],'sessionId':_0x85e8e4['sessionId'],'status':_0x85e8e4[_0x24919c(0x2e9,_0x160bea._0x565203,_0x160bea._0x4a300a,_0x160bea._0x2931c3)]});try{const _0x470a8f=await _0x379a77[_0x24919c(0x347,0x30a,0x388,0x2ea)](_0x3de61e[_0x24919c(0x294,_0x160bea._0x437c97,0x302,_0x160bea._0x49f7c9)],{'signal':_0x48f972[_0x9f9713(0x3ed,0x3cc,_0x160bea._0x1fc6a2,0x3f3)]});_0x85e8e4={..._0x85e8e4,'status':_0x470a8f['status'],'result':_0x470a8f};if(_0x470a8f['status']!=='completed'){const _0xded9ff=getRunTerminalErrorMessage(_0x470a8f),_0x2ac7ea=formatAbortedRunMessage(_0x85e8e4[_0x9f9713(_0x160bea._0x4fd16d,_0x160bea._0x4c49c6,0x532,0x469)],_0xded9ff);throw new ToolExecutionError(_0x2ac7ea,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x2ac7ea});}return createRunSummaryOutput(_0x85e8e4,'Agent\x20run\x20'+_0x85e8e4[_0x9f9713(_0x160bea._0x2cfde8,_0x160bea._0x4c49c6,0x439,0x535)]+_0x24919c(0x32b,_0x160bea._0x19d435,0x3c6,_0x160bea._0x1d71f9));}catch(_0x4d4f04){if(_0x4d4f04 instanceof ToolExecutionError)throw _0x4d4f04;if(isAbortError(_0x4d4f04)||_0x48f972[_0x24919c(0x2cd,0x2ef,0x2ec,0x362)][_0x9f9713(_0x160bea._0x4e0d7c,_0x160bea._0x4810f6,_0x160bea._0x2028fb,0x3c1)]||_0x1f0710[_0x24919c(_0x160bea._0xe4f26,0x315,0x2ef,_0x160bea._0x220230)][_0x9f9713(0x35d,_0x160bea._0x25c2b6,0x3fc,0x439)]){const _0x4c4ddd=getRunTerminalErrorMessage(_0x85e8e4[_0x9f9713(0x493,0x435,_0x160bea._0x3fe4fc,_0x160bea._0x13c00e)])??(_0x4d4f04 instanceof Error?_0x4d4f04['message']:String(_0x4d4f04)),_0x49d2e1=formatAbortedRunMessage(_0x85e8e4[_0x24919c(_0x160bea._0x2a6b35,0x36d,0x398,0x3a4)],_0x4c4ddd);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(_0x160bea._0x560b6a,0x3e1,_0x160bea._0x1fa69d,_0x160bea._0x2fe24f),'errorMessage':_0x49d2e1};throw new ToolExecutionError(_0x49d2e1,{...createRunSummary(_0x85e8e4),'aborted':!![],'errorMessage':_0x49d2e1});}const _0x2e5c7a=getRunTerminalErrorMessage(_0x85e8e4[_0x24919c(0x336,0x37b,_0x160bea._0x41a7c7,_0x160bea._0x364c57)])??(_0x4d4f04 instanceof Error?_0x4d4f04[_0x9f9713(_0x160bea._0x2ac73b,_0x160bea._0xc6141e,0x3f5,0x3eb)]:String(_0x4d4f04))??'Agent\x20run\x20'+_0x85e8e4[_0x24919c(0x3a2,_0x160bea._0x33431b,_0x160bea._0x5432df,0x30e)]+_0x9f9713(0x48d,_0x160bea._0x4dc803,_0x160bea._0x445087,_0x160bea._0x2949d1);_0x85e8e4={..._0x85e8e4,'status':_0x9f9713(0x3ff,0x419,0x3be,_0x160bea._0x34c090),'errorMessage':_0x2e5c7a};throw new ToolExecutionError(_0x2e5c7a,{...createRunSummary(_0x85e8e4),'errorMessage':_0x2e5c7a});}finally{_0x2c60bd();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x6dc31a){return[createAssignTaskTool(_0x6dc31a)];}import*as _0x592476 from'path';function buildDescription2(_0x4c486a){const _0x564f41={_0x259773:0x5c9,_0x2da653:0x59c,_0x58de03:0x5a5,_0x4aa02a:0xb4,_0xdf21f2:0xcd,_0x2ba041:0xf4,_0x153e40:0x104,_0x14ef96:0x554,_0x2dbd4f:0x614,_0x446c8b:0x68b,_0x591592:0x601,_0x37beac:0x61b,_0x59c8f9:0x5f9,_0x3d2318:0x60e,_0x720498:0x60a,_0x196974:0x150,_0x3eaba7:0x146},_0x4e291f={_0x1c1452:0xd1,_0x59a3e6:0xba},_0x14ded6={_0x3444d5:0x8c,_0x50920d:0x14b};function _0xd61641(_0x2beade,_0x324e33,_0x17cba2,_0x140b9b){return _0x44530c(_0x324e33,_0x324e33-_0x14ded6._0x3444d5,_0x17cba2-0xb5,_0x17cba2-_0x14ded6._0x50920d);}function _0x546c8d(_0x35d3c9,_0x49ad74,_0x451224,_0x412357){return _0x452c58(_0x49ad74- -_0x4e291f._0x1c1452,_0x451224,_0x451224-_0x4e291f._0x59a3e6,_0x412357-0x3f);}if(_0x4c486a[_0xd61641(_0x564f41._0x259773,_0x564f41._0x2da653,_0x564f41._0x58de03,0x5cd)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';const _0x37e191=[_0x546c8d(_0x564f41._0x4aa02a,_0x564f41._0xdf21f2,_0x564f41._0x2ba041,_0x564f41._0x153e40),_0xd61641(0x567,_0x564f41._0x14ef96,0x597,0x525),_0xd61641(_0x564f41._0x2dbd4f,_0x564f41._0x446c8b,_0x564f41._0x591592,0x608),_0xd61641(_0x564f41._0x37beac,_0x564f41._0x59c8f9,_0x564f41._0x3d2318,_0x564f41._0x720498),..._0x4c486a[_0x546c8d(0x185,_0x564f41._0x196974,0xeb,0x1b8)](_0xb24e4f=>'-\x20'+_0xb24e4f['name']+':\x20'+_0xb24e4f[_0x546c8d(0x166,0x13c,0x124,0xdd)])];return _0x37e191[_0x546c8d(_0x564f41._0x3eaba7,0xc2,0x95,0xae)]('\x0a');}function createLoadSkillTool(_0x5d35e6){const _0x3cc3be={_0x7d472b:0x321,_0x1ee67a:0x3b7,_0x4722ce:0x342,_0x1d4317:0x3ba,_0x523c5c:0x361,_0x2ec988:0x390,_0x1b2c7a:0x2bb,_0xe021c1:0x234,_0xaafe4e:0x241,_0x26f78c:0x290,_0x260089:0x2da,_0x4f0838:0x390,_0x1cebec:0x36b,_0x37c8d7:0x29a},_0x467275={_0x1c85fd:0x2e0,_0x32d8ff:0x31c,_0x165463:0x297,_0x25c517:0x24a,_0x19ae2c:0x273,_0x1ab695:0x2ab,_0x1499cd:0x309,_0x26d1ae:0x387,_0x257c1c:0x2b3,_0x41da10:0x2bb,_0x5da718:0x2f8,_0x8fc0d2:0x339,_0x33daeb:0x289,_0x542951:0x35c,_0xa3eb1c:0x2fa,_0x2a9127:0x332,_0x34e696:0x2c0,_0x4bc4f9:0x364,_0x3e5df3:0x37c,_0x29a4c1:0x1d0,_0x30319d:0x1e9,_0x4374e9:0x394,_0x3ae253:0x2ed,_0x3e600f:0x2db,_0x459a3a:0x2a5,_0x21a245:0x32a,_0x28b933:0x359,_0x31d343:0x2ea,_0x25cb92:0x282,_0x33bd98:0x2ac,_0x1c18ca:0x1fd,_0x144fb8:0x1a1,_0x5ea839:0x366,_0x4caf8a:0x3a3,_0x2021b6:0x40d,_0x2310a4:0x3d7,_0x22fe1f:0x26e,_0x30465c:0x22a,_0x4de94e:0x1aa,_0x9d7195:0x2df,_0x500bac:0x253,_0x3bfb59:0x2aa,_0x3403a5:0x1ed,_0x182d01:0x283,_0x3e92b3:0x197,_0x23cf86:0x24e},_0x287a99={_0x5be467:0x1cf,_0x5069a8:0x36},_0x59613f={_0xaddd60:0x39},_0x5a4cc2={_0x3ec062:0x61,_0x217844:0x15e},_0x1d319f={_0x16d9e3:0x125,_0xbd4d7b:0x13b},_0x1aeb27=new Map(_0x5d35e6[_0x1e3311(0x3c5,_0x3cc3be._0x7d472b,_0x3cc3be._0x1ee67a,_0x3cc3be._0x4722ce)][_0x1e3311(_0x3cc3be._0x1d4317,_0x3cc3be._0x7d472b,_0x3cc3be._0x523c5c,_0x3cc3be._0x2ec988)](_0x46551d=>[_0x46551d[_0x1e3311(0x33e,0x329,0x3a3,0x32d)],_0x46551d]));function _0x1e3311(_0x439794,_0x36858e,_0x1cf051,_0x3191d0){return _0x44530c(_0x1cf051,_0x36858e-_0x1d319f._0x16d9e3,_0x1cf051-_0x1d319f._0xbd4d7b,_0x3191d0- -0x11d);}function _0x2d03c6(_0x45e3c9,_0x172e8d,_0x102c6d,_0x79ff92){return _0x452c58(_0x79ff92-_0x5a4cc2._0x3ec062,_0x45e3c9,_0x102c6d-0x10,_0x79ff92-_0x5a4cc2._0x217844);}const _0x4d9042=buildDescription2(_0x5d35e6[_0x2d03c6(_0x3cc3be._0x1b2c7a,0x294,0x284,_0x3cc3be._0xe021c1)]);return defineTool({'name':'LoadSkill','description':_0x4d9042,'inputSchema':{'type':_0x2d03c6(0x33d,_0x3cc3be._0xaafe4e,_0x3cc3be._0x26f78c,_0x3cc3be._0x260089),'properties':{'name':{'type':_0x1e3311(_0x3cc3be._0x4f0838,0x429,_0x3cc3be._0x1cebec,0x3e3)}},'required':[_0x1e3311(_0x3cc3be._0x37c8d7,0x37b,0x35d,0x32d)]},async *'execute'(_0x35c154){const _0x18baa3=_0x1aeb27[_0x4b9a23(0x315,0x28f,_0x467275._0x1c85fd,_0x467275._0x32d8ff)](_0x35c154[_0x4b9a23(_0x467275._0x165463,0x255,_0x467275._0x25c517,_0x467275._0x19ae2c)]);function _0x1ccd3c(_0x23ae24,_0x1d9017,_0x10a5ee,_0x35d1dd){return _0x1e3311(_0x23ae24-0x16f,_0x1d9017-0x42,_0x1d9017,_0x35d1dd- -_0x59613f._0xaddd60);}if(!_0x18baa3){const _0x219dbb=Array[_0x4b9a23(_0x467275._0x1ab695,_0x467275._0x1499cd,0x27f,_0x467275._0x26d1ae)](_0x1aeb27[_0x1ccd3c(0x344,0x341,0x306,0x385)]())[_0x4b9a23(_0x467275._0x257c1c,0x22a,_0x467275._0x41da10,0x2b8)](',\x20');throw new ToolExecutionError(_0x1ccd3c(_0x467275._0x5da718,0x393,0x314,0x380)+_0x35c154[_0x1ccd3c(_0x467275._0x8fc0d2,_0x467275._0x33daeb,_0x467275._0x542951,0x2f4)]+_0x1ccd3c(_0x467275._0xa3eb1c,0x2c0,_0x467275._0x2a9127,_0x467275._0x34e696)+_0x219dbb,{'name':_0x35c154['name']});}const _0x33acc6=await _0x5d35e6[_0x1ccd3c(0x34c,0x38a,_0x467275._0x4bc4f9,_0x467275._0x3e5df3)](_0x18baa3);function _0x4b9a23(_0x559bb8,_0x238c19,_0x17122b,_0x48a636){return _0x2d03c6(_0x559bb8,_0x238c19-_0x287a99._0x5be467,_0x17122b-0x78,_0x238c19-_0x287a99._0x5069a8);}const _0x5207f5=_0x18baa3[_0x4b9a23(0x1d0,0x214,_0x467275._0x29a4c1,0x17c)][_0x4b9a23(0x1dd,0x231,0x2ad,_0x467275._0x30319d)]??_0x592476[_0x4b9a23(_0x467275._0x4374e9,0x328,0x39c,0x2b6)](_0x18baa3['source'][_0x1ccd3c(0x272,0x338,0x2c0,_0x467275._0x3ae253)]),_0x3f2fa1=['##\x20Skill:\x20'+_0x33acc6[_0x4b9a23(_0x467275._0x3e600f,0x255,_0x467275._0x459a3a,0x290)],'',_0x33acc6[_0x1ccd3c(0x361,0x341,_0x467275._0x21a245,_0x467275._0x28b933)],'',_0x4b9a23(0x314,0x27a,_0x467275._0x31d343,0x2b0),_0x4b9a23(0x25b,_0x467275._0x25cb92,0x2f4,0x258)+_0x18baa3[_0x4b9a23(_0x467275._0x33bd98,0x214,_0x467275._0x1c18ca,_0x467275._0x144fb8)]['path'],_0x1ccd3c(_0x467275._0x5ea839,_0x467275._0x4caf8a,_0x467275._0x2021b6,_0x467275._0x2310a4)+_0x5207f5][_0x4b9a23(_0x467275._0x22fe1f,_0x467275._0x30465c,0x20e,_0x467275._0x4de94e)]('\x0a');return yield createToolOutput(_0x3f2fa1,{'id':_0x33acc6['id'],'name':_0x33acc6[_0x4b9a23(_0x467275._0x9d7195,0x255,_0x467275._0x500bac,_0x467275._0x3bfb59)],'path':_0x18baa3[_0x4b9a23(_0x467275._0x3403a5,0x214,_0x467275._0x182d01,_0x467275._0x3e92b3)][_0x4b9a23(0x2cc,_0x467275._0x23cf86,0x234,0x22c)],'baseDirectory':_0x5207f5}),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,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
1
|
+
(function(_0x4701a7,_0x3932d9){const _0x22b957={_0x4cd98d:0x51,_0x393854:0x8b,_0x4ec012:0x1bb,_0x635de2:0x76a,_0x4e5ebd:0x6be,_0x43bbe2:0x1c9,_0x11c1fa:0xf3,_0x3b15a3:0x17b,_0x4155a9:0x55e,_0x414ab8:0x61f,_0x28c9e6:0x59f,_0x5ce188:0x6e5,_0x3b82b9:0x68,_0x230c4d:0x7c,_0x16f93d:0x75a,_0x446518:0x75e};function _0x548dc4(_0xaab72c,_0x5d8d8b,_0x4c134a,_0x239a9b){return _0x4f9a(_0x5d8d8b-0x36b,_0xaab72c);}const _0x90639b=_0x4701a7();function _0x33d810(_0x43501b,_0x146e1a,_0x5c3000,_0x77b473){return _0x4f9a(_0x146e1a- -0x31b,_0x77b473);}while(!![]){try{const _0xb0cb6b=-parseInt(_0x33d810(_0x22b957._0x4cd98d,_0x22b957._0x393854,_0x22b957._0x4ec012,0x122))/0x1+-parseInt(_0x548dc4(0x817,_0x22b957._0x635de2,_0x22b957._0x4e5ebd,0x6f7))/0x2+parseInt(_0x33d810(_0x22b957._0x43bbe2,_0x22b957._0x11c1fa,_0x22b957._0x3b15a3,-0x1d))/0x3+-parseInt(_0x548dc4(0x4c1,_0x22b957._0x4155a9,0x5ea,0x4aa))/0x4+parseInt(_0x548dc4(_0x22b957._0x414ab8,_0x22b957._0x28c9e6,_0x22b957._0x5ce188,0x5a0))/0x5+parseInt(_0x33d810(0x64,-_0x22b957._0x3b82b9,_0x22b957._0x230c4d,0x76))/0x6+parseInt(_0x548dc4(_0x22b957._0x16f93d,_0x22b957._0x446518,0x7cb,0x86b))/0x7;if(_0xb0cb6b===_0x3932d9)break;else _0x90639b['push'](_0x90639b['shift']());}catch(_0x2511ed){_0x90639b['push'](_0x90639b['shift']());}}}(_0x2dae,0x8c95a));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-WJMBJOVF.js';import{getTextFromMessage}from'../chunk-SEP4YYY3.js';import'../chunk-FFIZ6TKW.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 _0x16cb84 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x120580(0x625,0x529,0x744,0x758),'.tsx':'typescriptreact','.js':_0x120580(0x59f,0x49c,0x601,0x6c8),'.jsx':_0x120580(0x5f8,0x737,0x667,0x60c),'.mjs':'javascript','.cjs':_0x120580(0x59f,0x46a,0x47d,0x606),'.mts':_0x43e84c(0x4c4,0x6c2,0x546,0x581),'.cts':_0x120580(0x625,0x6de,0x700,0x583),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0xebcf57){const _0x14e637={_0x41d65e:0x3dc,_0x56ff98:0x5ca},_0x45f734={_0x1b83ed:0x16f,_0x4c040f:0x5};function _0xece5e2(_0x482ca5,_0x2177db,_0x2c4f40,_0x14a015){return _0x43e84c(_0x482ca5-_0x45f734._0x1b83ed,_0x14a015,_0x2c4f40-_0x45f734._0x4c040f,_0x482ca5- -0x84);}function _0x169fdd(_0x595152,_0x1d97a7,_0x18a44c,_0x393fbf){return _0x120580(_0x18a44c- -0x59c,_0x1d97a7,_0x18a44c-0x9,_0x393fbf-0x89);}return EXTENSION_TO_LANGUAGE[_0x16cb84[_0xece5e2(0x4a7,_0x14e637._0x41d65e,0x3e2,_0x14e637._0x56ff98)](_0xebcf57)[_0xece5e2(0x3ae,0x343,0x274,0x3e3)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x3d7743){const _0x4019c={_0xf8d447:0x2e,_0x34fcc6:0xfb},_0x5f1f0d={_0x3d846a:0xa1,_0x498282:0x1ae,_0x497959:0x3db};function _0x3e9cd4(_0x1e05de,_0x9763e4,_0x3592ae,_0x57bd13){return _0x43e84c(_0x1e05de-_0x5f1f0d._0x3d846a,_0x9763e4,_0x3592ae-_0x5f1f0d._0x498282,_0x1e05de- -_0x5f1f0d._0x497959);}return pathToFileURL(_0x3d7743)[_0x3e9cd4(_0x4019c._0xf8d447,0x16b,_0x4019c._0x34fcc6,0x4e)]();}function _0x4f9a(_0x4c8815,_0x18ca35){_0x4c8815=_0x4c8815-0x197;const _0x2dae45=_0x2dae();let _0x4f9a1f=_0x2dae45[_0x4c8815];if(_0x4f9a['YCLQpz']===undefined){var _0x130c75=function(_0x598ec0){const _0x14a925='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16cb84='',_0x5dea84='';for(let _0x5e1dcb=0x0,_0x257501,_0x1b29e8,_0x433766=0x0;_0x1b29e8=_0x598ec0['charAt'](_0x433766++);~_0x1b29e8&&(_0x257501=_0x5e1dcb%0x4?_0x257501*0x40+_0x1b29e8:_0x1b29e8,_0x5e1dcb++%0x4)?_0x16cb84+=String['fromCharCode'](0xff&_0x257501>>(-0x2*_0x5e1dcb&0x6)):0x0){_0x1b29e8=_0x14a925['indexOf'](_0x1b29e8);}for(let _0x46f284=0x0,_0x5256b3=_0x16cb84['length'];_0x46f284<_0x5256b3;_0x46f284++){_0x5dea84+='%'+('00'+_0x16cb84['charCodeAt'](_0x46f284)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5dea84);};_0x4f9a['xxkmjV']=_0x130c75,_0x4f9a['uuIOie']={},_0x4f9a['YCLQpz']=!![];}const _0x136e38=_0x2dae45[0x0],_0x24847e=_0x4c8815+_0x136e38,_0x244a82=_0x4f9a['uuIOie'][_0x24847e];return!_0x244a82?(_0x4f9a1f=_0x4f9a['xxkmjV'](_0x4f9a1f),_0x4f9a['uuIOie'][_0x24847e]=_0x4f9a1f):_0x4f9a1f=_0x244a82,_0x4f9a1f;}function textDocumentPosition(_0x475e25){const _0x215b19={_0x56e348:0x4b4,_0x16cff4:0x42c},_0x161c8a={_0x41559f:0x80};function _0x53bf47(_0x374655,_0x99735b,_0x36710d,_0xab5b6d){return _0x120580(_0x36710d- -0xb4,_0xab5b6d,_0x36710d-0x23,_0xab5b6d-_0x161c8a._0x41559f);}return{'textDocument':{'uri':uriForPath(_0x475e25['file'])},'position':{'line':_0x475e25[_0x53bf47(0x56b,_0x215b19._0x56e348,_0x215b19._0x16cff4,0x351)],'character':_0x475e25['character']}};}function normalizeLocations(_0x34d4ee){if(!_0x34d4ee)return[];return Array['isArray'](_0x34d4ee)?_0x34d4ee:[_0x34d4ee];}async function createLspClient(_0xf3ed4d){const _0xf4ae68={_0x31adc6:0x410,_0x528e02:0x423,_0x3d34e1:0x488,_0x1e1fae:0x385,_0x10e45d:0x4a5,_0x58939b:0x41c,_0x8b0bf2:0x47a,_0x31bf62:0x4da,_0x58aa99:0x410,_0x52e706:0x2da,_0x5e5d4b:0x424,_0x11f0fa:0x385,_0x410682:0x290,_0x17631e:0x3a2,_0x3a434a:0x241,_0x3813ac:0x282,_0x3b3a35:0x337,_0x3146cf:0x73,_0x1929b2:0x111,_0x5d838b:0x101,_0xbc5fdd:0x408,_0x576bf9:0x3b8,_0x5f23ca:0x4c5,_0x10230d:0x1a4,_0x52f4d4:0x1cb,_0x4838d3:0x2f,_0x2c8c9f:0x3e,_0xc0c40d:0xa8,_0x48b4f4:0x13,_0x5839f8:0x3d4,_0x593897:0x379,_0x135ee5:0xe8,_0x496351:0x94,_0x23c86a:0x14d,_0x313388:0x62,_0xf58fa9:0x436,_0x1705ed:0x1eb,_0x494bf5:0xac,_0x4301ec:0x323},_0x23a25f={_0x18916c:0x6a8,_0x4eacaa:0x566,_0x165936:0x7b5,_0x190d0a:0xfe,_0x2f4545:0x134,_0x27ab24:0x633,_0x28f523:0x76d,_0xe8dcf9:0x54c,_0x40e657:0x18d,_0x56a0b2:0x146},_0x4226d8={_0x5c3877:0x45,_0x361f88:0x38,_0x38d41b:0x26,_0x3784b8:0xa7,_0x5a23cc:0x2b9,_0x18d44f:0x192},_0x206ce2={_0x4ce0a5:0x2d,_0x31c0af:0x30},_0x42905f={_0x5794d7:0x191,_0x52ea44:0xa9},_0x49119b={_0x4ec90c:0x1fd,_0x30423f:0x311,_0x4f52c7:0x317,_0x5d8a96:0x40d,_0x2479d4:0x2fa},_0x2a27f2={_0x5571ae:0xdd,_0x58d052:0x477},_0x5d4274={_0x340ea6:0x138,_0x52dcb7:0x428,_0x18be9e:0x1e8},_0x1713f2={_0x3774e0:0x367,_0x304a7e:0x3b0,_0x1b787e:0x4eb},_0x112f7b={_0x403847:0x26,_0x3f7ed6:0x138},_0x42f0c5={_0x500b19:0x1aa,_0x1d6e80:0x193},_0x2b9ba5={_0x20939a:0x106,_0x59eac1:0x67},_0x18a959={_0x5579d5:0x46b,_0x1d6232:0x540,_0x52dc47:0x6be,_0x68740d:0x6ca,_0x1f29bf:0x552},_0x4d1b9b={_0x108d75:0x171,_0x329158:0x147,_0xc3934c:0x2a,_0x5a4ca6:0x28},_0x10f9a4={_0x5d0ebe:0x4f},_0x2ac5ce={_0x233225:0x38c},_0x5363ef={_0x33fb13:0x1e1,_0x241fac:0x2f1},_0x48d007={_0x4216b6:0x347,_0x24ccca:0x1a},_0x5746af={_0x9e15e4:0x4a2,_0x1d9714:0x645,_0x25861b:0x507},_0x7d997f={_0x121357:0x102,_0x5d484e:0x8e},_0xd68f16={_0x1e2f23:0x536,_0x5bccc7:0x2b1,_0xc8ec87:0x315,_0x57e280:0x309},_0x2e6109={_0xb50d40:0xc0,_0x56a64c:0x1d9},_0x2c93ce={_0x387d25:0xb4,_0x2e1046:0x518,_0x268a91:0x193},_0x4a36fd={_0x121382:0x249,_0x4194d7:0x27e},_0x529a71={_0x296408:0x19f,_0xaf8d99:0x160},_0x437344={_0x5be8c5:0x1aa,_0x357021:0xec},_0x5b4e50={_0x5c3d4f:0x792,_0x1f8d6:0x6db,_0x174d87:0x5e4,_0x4abbf7:0x7fa,_0x327f78:0x347},_0x2964c8={_0x1168e7:0x161,_0xb58858:0x5cb},_0x385fcc={_0x3f473e:0x177},_0x34e1c5=_0xf3ed4d[_0x1dec8d(0x4df,_0xf4ae68._0x31adc6,_0xf4ae68._0x528e02,0x548)][_0x1dec8d(_0xf4ae68._0x3d34e1,_0xf4ae68._0x1e1fae,_0xf4ae68._0x10e45d,0x2b2)][_0x1dec8d(_0xf4ae68._0x58939b,0x3a8,_0xf4ae68._0x8b0bf2,_0xf4ae68._0x31bf62)],_0x1c067b=_0xf3ed4d[_0x1dec8d(0x3a3,_0xf4ae68._0x58aa99,_0xf4ae68._0x52e706,0x456)][_0x1dec8d(_0xf4ae68._0x5e5d4b,_0xf4ae68._0x11f0fa,_0xf4ae68._0x410682,_0xf4ae68._0x17631e)][_0x1dec8d(0x32f,_0xf4ae68._0x3a434a,0x387,0x291)];if(!_0x34e1c5||!_0x1c067b)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x33a126=createMessageConnection(new StreamMessageReader(_0x34e1c5),new StreamMessageWriter(_0x1c067b));function _0x30f719(_0x3467b5,_0x174578,_0x21a0b9,_0x41993f){return _0x43e84c(_0x3467b5-_0x385fcc._0x3f473e,_0x3467b5,_0x21a0b9-0x177,_0x21a0b9- -0x46e);}const _0x168226=new Map(),_0x208574=new Map();let _0x5c007c=![];_0x33a126['onNotification'](_0x1dec8d(0x239,_0xf4ae68._0x3813ac,0x1ec,_0xf4ae68._0x3b3a35),_0x12efe9=>{const _0xe03208={_0x4c0171:0x22f};_0x168226[_0x52cefe(_0x5b4e50._0x5c3d4f,_0x5b4e50._0x1f8d6,_0x5b4e50._0x174d87,_0x5b4e50._0x4abbf7)](_0x12efe9[_0x386d01(0x325,_0x5b4e50._0x327f78,0x369,0x337)],_0x12efe9[_0x52cefe(0x638,0x605,0x64b,0x607)]);function _0x52cefe(_0x1e888c,_0x216da1,_0x2d1c85,_0x2c0ac7){return _0x30f719(_0x1e888c,_0x216da1-_0x2964c8._0x1168e7,_0x216da1-_0x2964c8._0xb58858,_0x2c0ac7-0x17a);}const _0x146668=_0x208574['get'](_0x12efe9['uri']);if(!_0x146668)return;_0x208574['delete'](_0x12efe9['uri']);function _0x386d01(_0x22db1c,_0x2fb21d,_0x4ccc58,_0x5c0214){return _0x30f719(_0x4ccc58,_0x2fb21d-0xcc,_0x22db1c-_0xe03208._0x4c0171,_0x5c0214-0x79);}for(const _0x19f119 of _0x146668)_0x19f119();});function _0x1dec8d(_0x38119c,_0x343234,_0x519071,_0x33c6f9){return _0x120580(_0x343234- -_0x437344._0x5be8c5,_0x519071,_0x519071-_0x437344._0x357021,_0x33c6f9-0x100);}_0x33a126[_0x30f719(_0xf4ae68._0x3146cf,_0xf4ae68._0x1929b2,_0xf4ae68._0x5d838b,0x1a4)]();const _0x3adfdb=await _0x33a126['sendRequest'](_0x1dec8d(_0xf4ae68._0xbc5fdd,_0xf4ae68._0x576bf9,0x4d6,0x4ea),{'processId':process[_0x1dec8d(_0xf4ae68._0x5f23ca,0x401,0x320,0x461)],'rootUri':uriForPath(_0xf3ed4d[_0x30f719(-_0xf4ae68._0x10230d,-_0xf4ae68._0x52f4d4,-0xbf,-0x188)]),'workspaceFolders':[{'uri':uriForPath(_0xf3ed4d['root']),'name':_0xf3ed4d['server']['id']}],'initializationOptions':_0xf3ed4d[_0x30f719(_0xf4ae68._0x4838d3,_0xf4ae68._0x2c8c9f,_0xf4ae68._0xc0c40d,-_0xf4ae68._0x48b4f4)][_0x1dec8d(_0xf4ae68._0x5839f8,0x427,_0xf4ae68._0x593897,0x41f)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x30f719(0x24,-_0xf4ae68._0x135ee5,-0xa,-_0xf4ae68._0x496351),_0x30f719(-_0xf4ae68._0x23c86a,-0x11b,-_0xf4ae68._0x313388,-0x6c)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x33a126[_0x1dec8d(_0xf4ae68._0xf58fa9,0x2f9,0x1c4,0x413)](_0x30f719(_0xf4ae68._0x1705ed,0xdb,_0xf4ae68._0x494bf5,0x1d7),{});const _0x9b3372={'serverId':_0xf3ed4d['server']['id'],'root':_0xf3ed4d['root'],'connection':_0x33a126,'diagnostics':_0x168226,'capabilities':_0x3adfdb[_0x1dec8d(0x284,_0xf4ae68._0x4301ec,0x39c,0x2f0)]??{},'notify':{async 'open'({path:_0x21b81e}){const _0x5e3db8={_0x57c956:0x58,_0x5b6556:0x2b8};function _0x9f897c(_0x76d90c,_0x9fce50,_0x3efd68,_0x3809e6){return _0x1dec8d(_0x76d90c-_0x5e3db8._0x57c956,_0x76d90c- -_0x5e3db8._0x5b6556,_0x3efd68,_0x3809e6-0x147);}function _0x1b56aa(_0x2503fe,_0x491d49,_0x4673c4,_0x295c44){return _0x30f719(_0x295c44,_0x491d49-_0x529a71._0x296408,_0x2503fe-0x231,_0x295c44-_0x529a71._0xaf8d99);}const _0x232cf5=await readFile(_0x21b81e,_0x9f897c(0x10f,_0x4a36fd._0x121382,0x1a8,0x225));_0x33a126['sendNotification'](_0x1b56aa(0x2f2,0x1b6,_0x4a36fd._0x4194d7,0x3a0),{'textDocument':{'uri':uriForPath(_0x21b81e),'languageId':getLanguageId(_0x21b81e)??'plaintext','version':0x1,'text':_0x232cf5}});},async 'change'({path:_0xb757ec,version:_0x19dc03}){function _0x50828a(_0x3241bc,_0x49a041,_0x310450,_0x3bc005){return _0x30f719(_0x310450,_0x49a041-_0x2c93ce._0x387d25,_0x3241bc-_0x2c93ce._0x2e1046,_0x3bc005-_0x2c93ce._0x268a91);}function _0x1525fa(_0x1a6675,_0x4caacb,_0x373bfc,_0x185267){return _0x30f719(_0x4caacb,_0x4caacb-_0x2e6109._0xb50d40,_0x1a6675-0x320,_0x185267-_0x2e6109._0x56a64c);}const _0x22d29e=await readFile(_0xb757ec,_0x50828a(0x577,0x671,0x464,_0xd68f16._0x1e2f23));_0x33a126[_0x1525fa(_0xd68f16._0x5bccc7,0x275,0x364,0x27c)](_0x1525fa(_0xd68f16._0xc8ec87,0x1fc,_0xd68f16._0x57e280,0x35b),{'textDocument':{'uri':uriForPath(_0xb757ec),'version':_0x19dc03},'contentChanges':[{'text':_0x22d29e}]});},async 'close'({path:_0x55a8bd}){const _0x2470f6={_0x512a80:0x648};function _0x241c30(_0x3dcaec,_0x16ecf9,_0x55457e,_0x27d6ef){return _0x30f719(_0x27d6ef,_0x16ecf9-_0x7d997f._0x121357,_0x3dcaec- -0x9b,_0x27d6ef-_0x7d997f._0x5d484e);}function _0x3c6dab(_0x4a5f22,_0x396801,_0x45d34b,_0x141d07){return _0x30f719(_0x141d07,_0x396801-0x9a,_0x396801-_0x2470f6._0x512a80,_0x141d07-0x3);}_0x33a126[_0x3c6dab(0x632,0x5d9,0x5e4,_0x5746af._0x9e15e4)](_0x3c6dab(0x54f,0x546,_0x5746af._0x1d9714,_0x5746af._0x25861b),{'textDocument':{'uri':uriForPath(_0x55a8bd)}});}},'request':{async 'definition'(_0x4680b4){function _0x3ec06c(_0x58bd2a,_0x1f8ea1,_0x5a7ebd,_0x11714d){return _0x30f719(_0x5a7ebd,_0x1f8ea1-0x1a0,_0x58bd2a-_0x48d007._0x4216b6,_0x11714d-_0x48d007._0x24ccca);}return normalizeLocations(await _0x33a126[_0x3ec06c(_0x5363ef._0x33fb13,0x231,_0x5363ef._0x241fac,0x27d)]('textDocument/definition',textDocumentPosition(_0x4680b4)));},async 'references'(_0x1f9fb4){const _0x2ca3ea={_0x1f6922:0xb8};function _0x1a68dd(_0x2b7fb7,_0xf76438,_0x13ab83,_0x4a1941){return _0x30f719(_0x2b7fb7,_0xf76438-0x1b8,_0x13ab83-_0x2ac5ce._0x233225,_0x4a1941-0x138);}function _0x57955b(_0x292891,_0x1898cc,_0x1a8493,_0x6b55c7){return _0x1dec8d(_0x292891-0x6,_0x1898cc- -0x231,_0x6b55c7,_0x6b55c7-_0x2ca3ea._0x1f6922);}return normalizeLocations(await _0x33a126[_0x1a68dd(0x318,0x11a,0x226,0x201)](_0x57955b(_0x10f9a4._0x5d0ebe,0x136,0x147,0x145),{...textDocumentPosition(_0x1f9fb4),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x17b8cb){const _0x5171f5={_0x266266:0xff,_0x1e7964:0x262};function _0x1ef299(_0x46fb0e,_0x28dc8e,_0x3b2f51,_0x14a6f4){return _0x1dec8d(_0x46fb0e-_0x5171f5._0x266266,_0x3b2f51- -_0x5171f5._0x1e7964,_0x28dc8e,_0x14a6f4-0x2f);}function _0x2eeafc(_0x4e2638,_0x5c3ac0,_0x21a451,_0x4a3af3){return _0x1dec8d(_0x4e2638-0x190,_0x5c3ac0- -0x171,_0x4a3af3,_0x4a3af3-0x14a);}return await _0x33a126[_0x1ef299(-0x66,-_0x4d1b9b._0x108d75,-0x60,0x72)](_0x1ef299(-_0x4d1b9b._0x329158,-0xd2,-_0x4d1b9b._0xc3934c,_0x4d1b9b._0x5a4ca6),textDocumentPosition(_0x17b8cb))??null;},async 'documentSymbol'(_0x1cf5e4){const _0x278610={_0x598b60:0x31},_0x25ef95={_0x178979:0x68e,_0x5d6a7e:0xa6};function _0x5eaf1c(_0x54454c,_0x1c3d66,_0x548bff,_0x1234b5){return _0x30f719(_0x54454c,_0x1c3d66-0x57,_0x548bff-_0x25ef95._0x178979,_0x1234b5-_0x25ef95._0x5d6a7e);}function _0x2c5c0c(_0x209eaf,_0x5a642f,_0xa4185a,_0x4dcd13){return _0x1dec8d(_0x209eaf-0x197,_0x5a642f-0x2bf,_0x4dcd13,_0x4dcd13-_0x278610._0x598b60);}return await _0x33a126[_0x2c5c0c(0x586,0x4c1,0x5cd,0x403)](_0x5eaf1c(0x4e2,0x5af,0x623,0x63c),{'textDocument':{'uri':uriForPath(_0x1cf5e4)}})??[];},async 'workspaceSymbol'(_0x150dea){const _0x237d6d={_0x2533cb:0x12f};function _0x2d4c26(_0x421e70,_0x3256ff,_0x46ca7c,_0x175a4d){return _0x30f719(_0x421e70,_0x3256ff-0x1da,_0x3256ff-0x6a6,_0x175a4d-0xbb);}function _0x1943fb(_0x15d08f,_0x23a24f,_0x517325,_0x49482d){return _0x1dec8d(_0x15d08f-0x1d3,_0x517325- -0x281,_0x49482d,_0x49482d-_0x237d6d._0x2533cb);}return await _0x33a126[_0x2d4c26(_0x18a959._0x5579d5,_0x18a959._0x1d6232,0x4ad,0x502)](_0x2d4c26(_0x18a959._0x52dc47,0x65e,_0x18a959._0x68740d,_0x18a959._0x1f29bf),{'query':_0x150dea})??[];},async 'implementation'(_0x1135bd){const _0x3d4f02={_0x542c4e:0xfc,_0x3eddf5:0x128};function _0x1945c0(_0x111aff,_0x3551f6,_0x45d81b,_0x405646){return _0x1dec8d(_0x111aff-0x8d,_0x45d81b-0x214,_0x405646,_0x405646-0x11c);}function _0x37764b(_0x2aae20,_0x95572e,_0x4317cb,_0xa728b2){return _0x1dec8d(_0x2aae20-0x187,_0xa728b2- -_0x3d4f02._0x542c4e,_0x95572e,_0xa728b2-_0x3d4f02._0x3eddf5);}return normalizeLocations(await _0x33a126[_0x37764b(0x20d,0x11e,0x24b,_0x2b9ba5._0x20939a)](_0x37764b(_0x2b9ba5._0x59eac1,0x280,0x1e4,0x146),textDocumentPosition(_0x1135bd)));},async 'prepareCallHierarchy'(_0x4cf331){function _0x3d2c91(_0x205064,_0x2e363d,_0x43d5a8,_0x532f79){return _0x30f719(_0x205064,_0x2e363d-_0x42f0c5._0x500b19,_0x532f79-_0x42f0c5._0x1d6e80,_0x532f79-0xcd);}return await _0x33a126[_0x3d2c91(-_0x112f7b._0x403847,0x114,_0x112f7b._0x3f7ed6,0x2d)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x4cf331))??[];},async 'incomingCalls'(_0x139547){const _0x508e89={_0x420318:0x1cc,_0x1abb9c:0x4cd};function _0x5bd451(_0x2f4094,_0x20d95c,_0x113c50,_0x3f3959){return _0x30f719(_0x113c50,_0x20d95c-_0x508e89._0x420318,_0x20d95c-_0x508e89._0x1abb9c,_0x3f3959-0x54);}function _0x4f8ad0(_0x42e91c,_0x26aa92,_0x6b565b,_0x528b82){return _0x1dec8d(_0x42e91c-0x154,_0x42e91c-0xb3,_0x26aa92,_0x528b82-0x5c);}return await _0x33a126[_0x5bd451(0x401,_0x1713f2._0x3774e0,0x43c,0x447)](_0x5bd451(_0x1713f2._0x304a7e,0x3a8,0x4b9,_0x1713f2._0x1b787e),{'item':_0x139547})??[];},async 'outgoingCalls'(_0x2f51ea){function _0xc56216(_0x353335,_0x5e61d2,_0x892c57,_0x417d69){return _0x30f719(_0x892c57,_0x5e61d2-_0x5d4274._0x340ea6,_0x353335-_0x5d4274._0x52dcb7,_0x417d69-_0x5d4274._0x18be9e);}function _0x2fddfa(_0x56ce35,_0x3e3454,_0x4c5aff,_0x2be326){return _0x30f719(_0x4c5aff,_0x3e3454-_0x2a27f2._0x5571ae,_0x3e3454-_0x2a27f2._0x58d052,_0x2be326-0x145);}return await _0x33a126[_0x2fddfa(_0x49119b._0x4ec90c,_0x49119b._0x30423f,0x34f,_0x49119b._0x4f52c7)](_0xc56216(0x37a,_0x49119b._0x5d8a96,_0x49119b._0x2479d4,0x375),{'item':_0x2f51ea})??[];}},'waitForDiagnostics'({path:_0x260e56,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0xaad08f={_0x1610d8:0x11a,_0x3bab69:0x122},_0x14f988={_0x5a3c55:0x40,_0x3ede7f:0x87};function _0x1a6b76(_0x5e085a,_0x3d1f2e,_0x4b1340,_0xad015a){return _0x30f719(_0x3d1f2e,_0x3d1f2e-_0x42905f._0x5794d7,_0xad015a- -_0x42905f._0x52ea44,_0xad015a-0x99);}function _0x36c9e1(_0x3e466e,_0x31b3f4,_0xa991ea,_0x5b72aa){return _0x30f719(_0x5b72aa,_0x31b3f4-0x166,_0xa991ea-_0x206ce2._0x4ce0a5,_0x5b72aa-_0x206ce2._0x31c0af);}const _0x237ab1=uriForPath(_0x260e56);if(_0x168226[_0x1a6b76(-_0x4226d8._0x5c3877,-_0x4226d8._0x361f88,_0x4226d8._0x38d41b,-_0x4226d8._0x3784b8)](_0x237ab1))return Promise[_0x1a6b76(-_0x4226d8._0x5a23cc,-0x21b,-0x184,-_0x4226d8._0x18d44f)]();return new Promise(_0x4c8c6c=>{const _0x5b067f={_0x2b5ddb:0x1ee,_0x23c2e3:0x1b},_0x421e43={_0x1355f5:0x78a,_0x4598e9:0x8cb,_0xed2060:0x648,_0x946fd9:0x517,_0x3a86b7:0x647,_0x1f0bf9:0x71f,_0xb9a8dc:0x6f1,_0xe2fd2d:0x65d},_0x42c9ed={_0x10c061:0x37b},_0x4fe385=setTimeout(()=>{const _0x435937=_0x208574[_0x3b0d29(0x820,_0x421e43._0x1355f5,_0x421e43._0x4598e9,0x6cc)](_0x237ab1);function _0x20bad5(_0x364539,_0x32dc3f,_0x18a2c6,_0x3b1104){return _0x4f9a(_0x32dc3f-0x210,_0x18a2c6);}function _0x3b0d29(_0x2902a0,_0x47b1a5,_0x5222b3,_0x3b03a7){return _0x4f9a(_0x47b1a5-_0x42c9ed._0x10c061,_0x3b03a7);}_0x435937?.['delete'](_0x107d8d);if(_0x435937?.[_0x3b0d29(_0x421e43._0xed2060,0x63c,_0x421e43._0x946fd9,_0x421e43._0x3a86b7)]===0x0)_0x208574[_0x3b0d29(_0x421e43._0x1f0bf9,0x6b1,_0x421e43._0xb9a8dc,_0x421e43._0xe2fd2d)](_0x237ab1);_0x4c8c6c();},timeoutMs);function _0x5b9fc0(_0x23ba87,_0x2ea4c4,_0x3a6b81,_0x14b9d0){return _0x1a6b76(_0x23ba87-_0x14f988._0x5a3c55,_0x14b9d0,_0x3a6b81-_0x14f988._0x3ede7f,_0x3a6b81-0x2ec);}function _0xaf5b65(_0x182eb0,_0x373893,_0x443f0b,_0x337e3c){return _0x36c9e1(_0x182eb0-_0x5b067f._0x2b5ddb,_0x373893-0x131,_0x182eb0- -_0x5b067f._0x23c2e3,_0x443f0b);}const _0x107d8d=()=>{clearTimeout(_0x4fe385),_0x4c8c6c();},_0x46ff86=_0x208574[_0xaf5b65(_0xaad08f._0x1610d8,0x17f,0x21b,0x1c8)](_0x237ab1)??new Set();_0x46ff86[_0x5b9fc0(0x101,0x26f,0x214,0x32d)](_0x107d8d),_0x208574[_0xaf5b65(_0xaad08f._0x3bab69,0x6c,0x67,0xe2)](_0x237ab1,_0x46ff86);});},async 'shutdown'(){const _0x188fc5={_0x1de7ae:0x42d,_0x451f65:0xfa},_0x5d0829={_0x4d7c89:0x169,_0x41937a:0x2f0};if(_0x5c007c)return;function _0x35978d(_0x62ccfc,_0x3b2354,_0x82c3d3,_0x4b191c){return _0x1dec8d(_0x62ccfc-_0x5d0829._0x4d7c89,_0x62ccfc-_0x5d0829._0x41937a,_0x82c3d3,_0x4b191c-0x110);}_0x5c007c=!![];function _0x4a2bd8(_0x1774c2,_0x21de5d,_0x52961b,_0x1f544b){return _0x1dec8d(_0x1774c2-0xb0,_0x1f544b- -_0x188fc5._0x1de7ae,_0x52961b,_0x1f544b-_0x188fc5._0x451f65);}try{await _0x33a126['sendRequest'](_0x35978d(0x6a0,_0x23a25f._0x18916c,_0x23a25f._0x4eacaa,_0x23a25f._0x165936),null),_0x33a126[_0x4a2bd8(-0xc3,-_0x23a25f._0x190d0a,-0x1da,-_0x23a25f._0x2f4545)](_0x35978d(_0x23a25f._0x27ab24,0x76e,0x695,_0x23a25f._0x28f523));}catch{}finally{_0x33a126['dispose'](),_0xf3ed4d['handle'][_0x35978d(0x675,_0x23a25f._0xe8dcf9,0x637,0x78f)][_0x4a2bd8(-0x1d0,-_0x23a25f._0x40e657,-0x156,-_0x23a25f._0x56a0b2)]();}}};return _0x9b3372;}import{spawn as _0x5dea84}from'child_process';import{access as _0x5e1dcb}from'fs/promises';import _0x257501 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x1b29e8 from'os';import _0x433766 from'path';import _0x46f284 from'which';var installPromises=new Map();function sanitizePackageName(_0x846204){const _0x41a563={_0xc99a4c:0x3a3,_0x57cdcb:0x4bb,_0x10af05:0x51b},_0x5e292e={_0x58fb3e:0xfe,_0x1a4ede:0x68};function _0x1d6f43(_0x2a5c46,_0x3e5576,_0x22dbb2,_0xf5d106){return _0x43e84c(_0x2a5c46-_0x5e292e._0x58fb3e,_0x2a5c46,_0x22dbb2-0xea,_0x22dbb2-_0x5e292e._0x1a4ede);}return _0x846204['replace'](/^@/,'')[_0x1d6f43(_0x41a563._0xc99a4c,_0x41a563._0x57cdcb,0x43c,_0x41a563._0x10af05)](/[/]/g,'__');}function binaryNameForPlatform(_0x2c9f77){const _0x2a4a90={_0x54c6ce:0x3ba,_0x4ad4ac:0x4da,_0x439666:0x633,_0x13953e:0x5d9,_0x262b04:0x576},_0x11778b={_0x39b21f:0x91},_0x431449={_0x2b8474:0x178};function _0x160482(_0x93f4ca,_0x46cc39,_0x1d9327,_0x55e305){return _0x120580(_0x1d9327- -0x48,_0x55e305,_0x1d9327-_0x431449._0x2b8474,_0x55e305-0x35);}function _0x1bfd15(_0x430d47,_0x5187cb,_0x21de0b,_0x3c03d1){return _0x120580(_0x5187cb- -0x19,_0x3c03d1,_0x21de0b-_0x11778b._0x39b21f,_0x3c03d1-0xad);}return process[_0x160482(0x4e7,0x33f,_0x2a4a90._0x54c6ce,_0x2a4a90._0x4ad4ac)]===_0x160482(0x6e9,_0x2a4a90._0x439666,_0x2a4a90._0x13953e,_0x2a4a90._0x262b04)?_0x2c9f77+_0x160482(0x42e,0x50d,0x526,0x4dd):_0x2c9f77;}async function exists(_0x45e516){try{return await access(_0x45e516),!![];}catch{return![];}}function runNpmInstall(_0x2bb113,_0x209a8c,_0x2a6258){const _0x58c1f7={_0x374111:0x3ba,_0x286b0a:0x45e,_0x5acaef:0x2f0,_0x39a6cc:0x361,_0x5baa71:0x67d,_0xd59b2a:0x529,_0x1e9027:0x6bf,_0xef24aa:0x5cc,_0x48d134:0x537,_0x1108a5:0x52e,_0x55c00b:0x245,_0x4e05b1:0x34e,_0x5e6c38:0x492,_0x1cf248:0x557,_0x26812d:0x57d,_0x42b1f5:0x327,_0x52ccda:0x2b3},_0x420e86={_0x3f2da4:0x4f};return new Promise(_0x1f5223=>{const _0x3cbf0e=spawn(_0xcf9271(_0x58c1f7._0x374111,_0x58c1f7._0x286b0a,_0x58c1f7._0x5acaef,_0x58c1f7._0x39a6cc),[_0x34da9d(_0x58c1f7._0x5baa71,_0x58c1f7._0xd59b2a,_0x58c1f7._0x1e9027,0x5df),_0x34da9d(_0x58c1f7._0xef24aa,_0x58c1f7._0x48d134,0x5e5,_0x58c1f7._0x1108a5),_0x2bb113,_0x209a8c],{'env':_0x2a6258,'stdio':_0xcf9271(_0x58c1f7._0x55c00b,0x352,_0x58c1f7._0x4e05b1,0x260)});function _0x34da9d(_0x47638f,_0x2e7b01,_0x2a117d,_0x4d0f55){return _0x4f9a(_0x4d0f55-0x36b,_0x2a117d);}function _0xcf9271(_0x5af559,_0x214345,_0x5b641b,_0xfaffaf){return _0x4f9a(_0xfaffaf-_0x420e86._0x3f2da4,_0x5af559);}_0x3cbf0e['on'](_0x34da9d(_0x58c1f7._0x5e6c38,_0x58c1f7._0x1cf248,_0x58c1f7._0x26812d,0x5ce),()=>_0x1f5223(![])),_0x3cbf0e['on'](_0xcf9271(_0x58c1f7._0x42b1f5,0x3f6,0x18d,_0x58c1f7._0x52ccda),_0x3c89c8=>_0x1f5223(_0x3c89c8===0x0));});}function shouldDisableLspDownload(_0x372e5e=process[_0x120580(0x4da,0x539,0x5b4,0x5d1)]){const _0x3152c6={_0x1a30af:0x747,_0x57cc16:0x721,_0x3a546f:0x664},_0x5487b6={_0x144078:0x5c};function _0x407f8d(_0x22cb58,_0x14f2cc,_0x7e790a,_0x4e5838){return _0x43e84c(_0x22cb58-0xb0,_0x4e5838,_0x7e790a-0xca,_0x14f2cc-0x1e5);}function _0x537a9c(_0x1eaa19,_0x2e202a,_0x190ae1,_0x5116ce){return _0x120580(_0x5116ce- -0x23f,_0x1eaa19,_0x190ae1-0x115,_0x5116ce-_0x5487b6._0x144078);}const _0x5de793=_0x372e5e[_0x407f8d(_0x3152c6._0x1a30af,0x66f,_0x3152c6._0x57cc16,0x562)]?.[_0x407f8d(0x646,0x617,0x6f5,0x67e)]();return _0x5de793===_0x407f8d(0x7c3,0x76e,_0x3152c6._0x3a546f,0x735)||_0x5de793==='1'||_0x5de793==='yes'||_0x5de793==='on';}function getLspPackageDir(_0x1d40ae){const _0x69ec57={_0x3af990:0x48d,_0x4b7028:0x4d6,_0x9ec596:0x492,_0x2de7e4:0x3ce,_0x44eaa8:0x53e,_0x5e1864:0x62b,_0x30bacf:0x418,_0x45a467:0x33e},_0x1a3276={_0xe439d9:0x139,_0x8ab969:0xf5,_0x1f1f93:0x193},_0x3c82a1={_0x1133d5:0x8e,_0x97ddc3:0x39};function _0x162069(_0x30c067,_0x3d58a3,_0x42fb2d,_0x17dbaf){return _0x120580(_0x3d58a3- -_0x3c82a1._0x1133d5,_0x17dbaf,_0x42fb2d-0xaf,_0x17dbaf-_0x3c82a1._0x97ddc3);}function _0x3e6ce7(_0xa8d4b4,_0x214e69,_0x32528c,_0x49706d){return _0x43e84c(_0xa8d4b4-_0x1a3276._0xe439d9,_0x214e69,_0x32528c-_0x1a3276._0x8ab969,_0xa8d4b4-_0x1a3276._0x1f1f93);}return _0x433766[_0x162069(0x56b,_0x69ec57._0x3af990,_0x69ec57._0x4b7028,0x36c)](_0x1b29e8[_0x162069(0x486,_0x69ec57._0x9ec596,0x35c,_0x69ec57._0x2de7e4)](),_0x162069(0x62a,_0x69ec57._0x44eaa8,_0x69ec57._0x5e1864,_0x69ec57._0x30bacf),'lsp',_0x162069(0x2dc,_0x69ec57._0x45a467,0x2e7,0x437),sanitizePackageName(_0x1d40ae));}function getLspBinDir(_0x22d665){const _0x43cdb8={_0x20a46a:0x539,_0x1541a1:0x3fc,_0x323431:0x427,_0x46e97d:0x548,_0x348ff4:0x526,_0x19c88b:0x4ba,_0x45350b:0x436},_0x20fa89={_0x2cd231:0x9d},_0x231ecb={_0x5686ed:0x157,_0x2899d6:0x50};function _0x56083b(_0x45821f,_0x1641f7,_0xa3db79,_0x157e57){return _0x120580(_0xa3db79- -0x41,_0x157e57,_0xa3db79-_0x231ecb._0x5686ed,_0x157e57-_0x231ecb._0x2899d6);}function _0x3ba731(_0x515739,_0x13017e,_0x1104fb,_0x3d7279){return _0x43e84c(_0x515739-_0x20fa89._0x2cd231,_0x13017e,_0x1104fb-0x11c,_0x515739-0xc2);}return _0x433766[_0x3ba731(_0x43cdb8._0x20a46a,0x48f,_0x43cdb8._0x1541a1,_0x43cdb8._0x323431)](getLspPackageDir(_0x22d665),_0x3ba731(_0x43cdb8._0x46e97d,_0x43cdb8._0x348ff4,_0x43cdb8._0x19c88b,_0x43cdb8._0x45350b),'.bin');}async function findPackageBinary(_0x3a518f,_0x5895ec){const _0x25de6e={_0x576488:0x322,_0x50db82:0x623,_0x4202fd:0x5b9,_0x561e82:0x511,_0x449e91:0x566,_0x1e9be4:0x559,_0x24fcba:0x471,_0x4af770:0x48e,_0x1087f1:0x3c8,_0x16f4dc:0x361},_0x143a6e={_0x5c920a:0x18e,_0x188939:0x3f},_0x48437f={_0x15243d:0xaa};let _0x342809=_0x433766[_0x5a78bc(_0x25de6e._0x576488,0x28e,0x201,0x36c)](_0x5895ec);function _0x5a78bc(_0x5321a6,_0x55727c,_0x4524d2,_0x254e1b){return _0x43e84c(_0x5321a6-0x59,_0x254e1b,_0x4524d2-_0x48437f._0x15243d,_0x5321a6- -0x63);}function _0x19c6cf(_0x129b49,_0x44db94,_0x38b6bf,_0xc6da26){return _0x43e84c(_0x129b49-_0x143a6e._0x5c920a,_0x44db94,_0x38b6bf-_0x143a6e._0x188939,_0x129b49-0x1ac);}const _0x33861a=binaryNameForPlatform(_0x3a518f);while(!![]){const _0x224e96=_0x433766[_0x19c6cf(_0x25de6e._0x50db82,_0x25de6e._0x4202fd,0x676,0x5cc)](_0x342809,'node_modules',_0x5a78bc(_0x25de6e._0x561e82,_0x25de6e._0x449e91,0x5de,_0x25de6e._0x1e9be4),_0x33861a);if(await exists(_0x224e96))return _0x224e96;const _0x52d6fd=_0x433766[_0x5a78bc(_0x25de6e._0x24fcba,_0x25de6e._0x4af770,_0x25de6e._0x1087f1,_0x25de6e._0x16f4dc)](_0x342809);if(_0x52d6fd===_0x342809)return void 0x0;_0x342809=_0x52d6fd;}}async function findPathBinary(_0x4a8fde,_0x270d9e){const _0x1e63ff={_0x480cf3:0x4ff,_0x3ddcdb:0x6cc,_0x43bd20:0x6b9,_0x4d99af:0x5e8,_0xd2b25:0x47d,_0x205495:0x4c6,_0xcd4a6c:0x562,_0xf8fa28:0x66f},_0x3367fb={_0x91a5d4:0x1e3,_0x395677:0x88},_0x4122b4={_0x2c7a56:0x14a,_0x331110:0x1b7};function _0x58fb70(_0xfdc1a9,_0x32a374,_0x11e66c,_0x2d21c7){return _0x43e84c(_0xfdc1a9-_0x4122b4._0x2c7a56,_0x11e66c,_0x11e66c-_0x4122b4._0x331110,_0x2d21c7-0xc9);}function _0x157b66(_0x1cc464,_0x38badb,_0x2f1a19,_0x565f81){return _0x43e84c(_0x1cc464-_0x3367fb._0x91a5d4,_0x38badb,_0x2f1a19-_0x3367fb._0x395677,_0x2f1a19- -0x1f6);}const _0x93aa09=getLspBinDir(_0x270d9e),_0x20f94d=[_0x93aa09,process[_0x58fb70(0x3ee,0x4b2,0x5cb,_0x1e63ff._0x480cf3)][_0x58fb70(0x69f,_0x1e63ff._0x3ddcdb,_0x1e63ff._0x43bd20,_0x1e63ff._0x4d99af)]][_0x58fb70(0x5c9,0x40c,_0x1e63ff._0xd2b25,0x524)](Boolean)[_0x58fb70(_0x1e63ff._0x205495,0x557,0x4a8,0x540)](_0x433766[_0x58fb70(_0x1e63ff._0xcd4a6c,0x6c6,_0x1e63ff._0xf8fa28,0x5bf)]);try{return await _0x46f284(_0x4a8fde,{'path':_0x20f94d});}catch{return void 0x0;}}async function resolvePackageBinary(_0x44f2d8){const _0x46d294={_0x1199e8:0xbd,_0x33b182:0xab,_0x191e18:0x1a5,_0x363f1a:0xff,_0x4906b7:0x27,_0x37ff38:0x40,_0x4bd46b:0x13,_0x483ab7:0x25,_0xcbe97d:0x127,_0x38f1cf:0x199,_0x3e4640:0x2d4,_0x4bcdf5:0x42,_0x37c07c:0x1fb,_0x2042db:0xd3},_0x1f37d6={_0x122b3d:0x159,_0x36f7f3:0x2b5,_0x55fee0:0x58a,_0x3725a0:0x523,_0x154074:0x2f2},_0x2d9071={_0x15687b:0x10a,_0x31b2bc:0x3b5},_0xaaee55={_0x23c958:0x346,_0x38286d:0x119,_0x44f884:0x1db},_0x5b0374={_0x117bab:0xf1,_0x10c9f4:0x14a,_0x385b4b:0x486},_0xb20fc6=_0x44f2d8[_0x1d8d76(-_0x46d294._0x1199e8,-0x95,_0x46d294._0x33b182,-0x43)]??_0x44f2d8[_0x1d8d76(_0x46d294._0x191e18,_0x46d294._0x363f1a,0x227,0xb0)],_0x3b7b1b=await findPackageBinary(_0xb20fc6,_0x44f2d8[_0x1d8d76(-_0x46d294._0x4906b7,-_0x46d294._0x37ff38,_0x46d294._0x4bd46b,_0x46d294._0x483ab7)]);if(_0x3b7b1b)return _0x3b7b1b;const _0x123754=await findPathBinary(_0xb20fc6,_0x44f2d8['packageName']);if(_0x123754)return _0x123754;function _0x1d8d76(_0x110739,_0x476894,_0x34249a,_0x1001c0){return _0x43e84c(_0x110739-_0x5b0374._0x117bab,_0x1001c0,_0x34249a-_0x5b0374._0x10c9f4,_0x476894- -_0x5b0374._0x385b4b);}const _0x50783a=_0x44f2d8['env']??process['env'];function _0x3b84e7(_0x366359,_0x4ffc8f,_0x4e46e6,_0x27047f){return _0x120580(_0x4e46e6- -_0xaaee55._0x23c958,_0x27047f,_0x4e46e6-_0xaaee55._0x38286d,_0x27047f-_0xaaee55._0x44f884);}if(shouldDisableLspDownload(_0x50783a))return void 0x0;const _0x185207=getLspPackageDir(_0x44f2d8['packageName']),_0x315666=_0x44f2d8[_0x1d8d76(_0x46d294._0xcbe97d,0xff,0xe7,_0x46d294._0x38f1cf)]+':'+_0xb20fc6;let _0x4ea544=installPromises[_0x3b84e7(0x199,0x3e7,_0x46d294._0x3e4640,0x418)](_0x315666);!_0x4ea544&&(_0x4ea544=((async()=>{await mkdir(_0x185207,{'recursive':!![]});function _0x43f869(_0xbcccbd,_0x44dd17,_0xb01df2,_0x12c8f0){return _0x3b84e7(_0xbcccbd-0xbe,_0x44dd17-0x2a,_0xbcccbd- -0x4e,_0x12c8f0);}const _0x38f81f=await runNpmInstall(_0x185207,_0x44f2d8[_0x43f869(0x295,0x1a9,_0x1f37d6._0x122b3d,_0x1f37d6._0x36f7f3)],_0x50783a);if(!_0x38f81f)return void 0x0;function _0x2a62f8(_0x5222f5,_0x58768e,_0x53bf02,_0x4f550d){return _0x3b84e7(_0x5222f5-_0x2d9071._0x15687b,_0x58768e-0xec,_0x5222f5-_0x2d9071._0x31b2bc,_0x4f550d);}const _0x2d55ea=_0x433766[_0x2a62f8(_0x1f37d6._0x55fee0,0x5bc,0x5f9,_0x1f37d6._0x3725a0)](getLspBinDir(_0x44f2d8[_0x43f869(0x295,0x224,0x158,_0x1f37d6._0x154074)]),binaryNameForPlatform(_0xb20fc6));return await exists(_0x2d55ea)?_0x2d55ea:void 0x0;})()),installPromises[_0x1d8d76(0x230,0xf8,-_0x46d294._0x4bcdf5,0x67)](_0x315666,_0x4ea544));try{return await _0x4ea544;}catch{return void 0x0;}finally{installPromises[_0x3b84e7(0x28b,0x314,_0x46d294._0x37c07c,_0x46d294._0x2042db)](_0x315666);}}var TYPESCRIPT_EXTENSIONS=[_0x43e84c(0x561,0x4fc,0x4d2,0x4e5),_0x120580(0x497,0x519,0x483,0x52d),'.js','.jsx',_0x120580(0x4a4,0x38b,0x59f,0x490),_0x120580(0x62c,0x526,0x578,0x551),_0x43e84c(0x466,0x468,0x44f,0x3b0),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x43e84c(0x404,0x5d3,0x44e,0x509),_0x43e84c(0x2ca,0x3e6,0x214,0x30a)],TYPESCRIPT_ROOT_MARKERS=[_0x120580(0x530,0x52c,0x676,0x470),_0x43e84c(0x63f,0x49e,0x45d,0x572),'bun.lock',_0x120580(0x438,0x3c0,0x527,0x3ce),_0x43e84c(0x4af,0x3ea,0x407,0x441),_0x120580(0x5da,0x53a,0x71e,0x4c3),_0x43e84c(0x47d,0x471,0x60c,0x4d6),_0x43e84c(0x432,0x490,0x493,0x43a)],BIOME_ROOT_MARKERS=[_0x43e84c(0x277,0x286,0x31c,0x39e),_0x43e84c(0x41d,0x3c2,0x4b4,0x383),_0x43e84c(0x477,0x557,0x597,0x48c),_0x120580(0x616,0x6b3,0x665,0x717),'bun.lock',_0x43e84c(0x36c,0x293,0x48f,0x394),_0x43e84c(0x326,0x55c,0x3ef,0x441),_0x43e84c(0x49b,0x525,0x3b4,0x43a)];async function exists2(_0x2048af){try{return await _0x5e1dcb(_0x2048af),!![];}catch{return![];}}async function findUp(_0x2a4663,_0x119598){const _0x21989d={_0x3776a3:0xb8,_0x3a6940:0x60,_0x204f45:0xc2,_0x1e28b8:0xaa,_0x1c7dca:0x1c3,_0x577c71:0x206,_0x271ab0:0x25c,_0x394df7:0x10,_0x39012f:0x201,_0x4a34db:0x16b,_0x514dac:0x1af,_0x5526c2:0x2b8,_0x46d28d:0x284},_0x56d16c={_0x2c4edc:0x3c9,_0x27c878:0x7b,_0x419cfa:0x11},_0x5b8381={_0x4d6abc:0x19b};let _0x12615e=_0x257501[_0x4824e8(-_0x21989d._0x3776a3,_0x21989d._0x3a6940,_0x21989d._0x204f45,-_0x21989d._0x1e28b8)](_0x2a4663);const _0x565f5a=_0x257501[_0x4824e8(_0x21989d._0x1c7dca,_0x21989d._0x577c71,0xf1,_0x21989d._0x271ab0)](_0x12615e);function _0x2d204a(_0x181649,_0x58fee0,_0x5bd58c,_0x150033){return _0x120580(_0x58fee0-0xd5,_0x150033,_0x5bd58c-_0x5b8381._0x4d6abc,_0x150033-0x1c7);}if(_0x565f5a)_0x12615e=_0x257501['dirname'](_0x12615e);function _0x4824e8(_0x2bae95,_0x20d8e2,_0xc52cfd,_0x437ff8){return _0x120580(_0x20d8e2- -_0x56d16c._0x2c4edc,_0x437ff8,_0xc52cfd-_0x56d16c._0x27c878,_0x437ff8-_0x56d16c._0x419cfa);}while(!![]){for(const _0x321e8c of _0x119598){if(await exists2(_0x257501[_0x4824e8(0x1f4,0x152,_0x21989d._0x394df7,_0x21989d._0x39012f)](_0x12615e,_0x321e8c)))return _0x12615e;}const _0x216984=_0x257501[_0x4824e8(_0x21989d._0x4a34db,_0x21989d._0x514dac,_0x21989d._0x5526c2,_0x21989d._0x46d28d)](_0x12615e);if(_0x216984===_0x12615e)return void 0x0;_0x12615e=_0x216984;}}async function hasDenoRoot(_0x12c72b){const _0x2ebcaa={_0xf6a653:0x66e,_0x18b528:0x5e4,_0x593aba:0x5b8,_0x4db80e:0x307,_0x5b3c9e:0x2f1,_0x553a6:0x24f,_0x3d4134:0x60f,_0x393481:0x59f,_0xa9e73f:0x30f,_0x1f43f6:0x247},_0xa6c56={_0x3d71fe:0x278};function _0x1abf0d(_0x16fb6d,_0x35ced4,_0x5c4784,_0x437b55){return _0x120580(_0x437b55- -_0xa6c56._0x3d71fe,_0x35ced4,_0x5c4784-0xd1,_0x437b55-0x145);}function _0x24cfcf(_0x320fd5,_0x4f1c66,_0x20fedf,_0x136c0a){return _0x120580(_0x320fd5-0x153,_0x4f1c66,_0x20fedf-0x1c,_0x136c0a-0x155);}return await exists2(_0x257501[_0x24cfcf(_0x2ebcaa._0xf6a653,0x550,_0x2ebcaa._0x18b528,_0x2ebcaa._0x593aba)](_0x12c72b,_0x1abf0d(0x2ba,_0x2ebcaa._0x4db80e,_0x2ebcaa._0x5b3c9e,_0x2ebcaa._0x553a6)))||await exists2(_0x257501[_0x24cfcf(0x66e,_0x2ebcaa._0x3d4134,_0x2ebcaa._0x393481,0x79a)](_0x12c72b,_0x1abf0d(_0x2ebcaa._0xa9e73f,0x2be,0x37f,_0x2ebcaa._0x1f43f6)));}async function resolveTsserverPath(_0x4dfd17){const _0x213823={_0x3007ff:0x1ae,_0x177da0:0x19b,_0x5d3513:0x1a4,_0x21e54d:0x223,_0x3557b9:0x399,_0x2bca49:0x28d,_0x3c9bdb:0x182,_0x5e5307:0x3d8,_0x6e1066:0x3bb,_0x5749c8:0x397,_0x4a1aac:0x245,_0x48a047:0x9b,_0x544e83:0x16c,_0x41036a:0x22a,_0x1e5bcf:0x24e,_0x3a6513:0x324,_0x48a952:0x4c8,_0x326419:0x521,_0x270d4b:0x5bf,_0x40c7a1:0x613,_0xb6936a:0x5bf,_0x318778:0x499,_0x4189d4:0x3b2,_0x5276e5:0x503,_0x3a9600:0x4b5,_0x3c7483:0x55c,_0x405da7:0x4c4,_0x7d7402:0x49d,_0x1149c6:0x394},_0x5e0ff0={_0x1fb4a0:0x18a},_0x58db8d={_0x2f9ab3:0x66};let _0x45b4bf=_0x257501[_0x56ac03(_0x213823._0x3007ff,0xea,_0x213823._0x177da0,_0x213823._0x5d3513)](_0x4dfd17);while(!![]){const _0xdd6962=_0x257501[_0x56ac03(_0x213823._0x21e54d,_0x213823._0x3557b9,_0x213823._0x2bca49,_0x213823._0x3c9bdb)](_0x45b4bf,_0x56ac03(_0x213823._0x5e5307,0x265,0x29c,0x1b7),_0x56ac03(_0x213823._0x6e1066,0x293,_0x213823._0x5749c8,0x4af),_0x56ac03(_0x213823._0x4a1aac,_0x213823._0x48a047,_0x213823._0x544e83,0x199),_0x56ac03(_0x213823._0x3c9bdb,_0x213823._0x41036a,_0x213823._0x1e5bcf,_0x213823._0x3a6513));if(await exists2(_0xdd6962))return _0xdd6962;const _0x135537=_0x257501[_0x4d5076(0x5b2,_0x213823._0x48a952,0x550,0x512)](_0x45b4bf);if(_0x135537===_0x45b4bf)break;_0x45b4bf=_0x135537;}const _0xb7a631=getLspPackageDir(_0x4d5076(0x51a,_0x213823._0x326419,0x481,_0x213823._0x270d4b)),_0x4ae6ae=await resolvePackageBinary({'packageName':_0x4d5076(0x581,_0x213823._0x40c7a1,0x528,_0x213823._0xb6936a),'binaryName':_0x4d5076(0x35b,0x3e3,_0x213823._0x318778,0x38a),'startDir':_0x4dfd17});function _0x4d5076(_0x34126f,_0x93c8b8,_0x2f9d52,_0x403ac8){return _0x120580(_0x403ac8- -_0x58db8d._0x2f9ab3,_0x34126f,_0x2f9d52-0x101,_0x403ac8-0x151);}function _0x56ac03(_0xde1a42,_0x2069d1,_0x598066,_0x5afdc5){return _0x43e84c(_0xde1a42-0x3e,_0x5afdc5,_0x598066-_0x5e0ff0._0x1fb4a0,_0x598066- -0x1ea);}if(!_0x4ae6ae)return void 0x0;const _0x27dc5a=_0x257501[_0x4d5076(_0x213823._0x4189d4,_0x213823._0x5276e5,0x39e,_0x213823._0x3a9600)](_0xb7a631,_0x4d5076(_0x213823._0x3c7483,0x599,0x449,_0x213823._0x405da7),'typescript',_0x4d5076(0x4a6,_0x213823._0x7d7402,0x3af,_0x213823._0x1149c6),'tsserver.js');return await exists2(_0x27dc5a)?_0x27dc5a:void 0x0;}var TypeScriptServer={'id':_0x43e84c(0x49d,0x4b7,0x5b5,0x581),'name':_0x43e84c(0x279,0x4a9,0x494,0x3b5),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x215e92){const _0x1cc5dc=await findUp(_0x215e92,TYPESCRIPT_ROOT_MARKERS);if(!_0x1cc5dc)return void 0x0;return await hasDenoRoot(_0x1cc5dc)?void 0x0:_0x1cc5dc;},async 'spawn'(_0x15d6fc){const _0x2768df={_0x151705:0x156,_0xb02c16:0xdc,_0x5d62ee:0x1b1,_0xade1f4:0x8b,_0x29a5ab:0x1e8,_0x224623:0x150},_0x1bf07e={_0x26add6:0x44,_0x50308e:0x1a2},_0x46105c={_0x3c0193:0x23f,_0x51cf74:0x1d9},_0x3dd81e=await resolveTsserverPath(_0x15d6fc);function _0x50487f(_0x1866a8,_0x157e5b,_0x5cf277,_0x5da8d1){return _0x120580(_0x5cf277- -_0x46105c._0x3c0193,_0x157e5b,_0x5cf277-_0x46105c._0x51cf74,_0x5da8d1-0x19c);}if(!_0x3dd81e)return void 0x0;const _0x28c2b0=await resolvePackageBinary({'packageName':_0x75fa9f(-_0x2768df._0x151705,-0x121,-_0x2768df._0xb02c16,-0x1e),'binaryName':'typescript-language-server','startDir':_0x15d6fc});if(!_0x28c2b0)return void 0x0;function _0x75fa9f(_0x29a5f6,_0x2e3d9a,_0x2fe993,_0x8bce82){return _0x43e84c(_0x29a5f6-_0x1bf07e._0x26add6,_0x2e3d9a,_0x2fe993-_0x1bf07e._0x50308e,_0x29a5f6- -0x4df);}return{'process':_0x5dea84(_0x28c2b0,[_0x75fa9f(-_0x2768df._0x5d62ee,-_0x2768df._0xade1f4,-_0x2768df._0x29a5ab,-_0x2768df._0x224623)],{'cwd':_0x15d6fc,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x3dd81e}}};}},BiomeServer={'id':_0x120580(0x561,0x683,0x644,0x5a6),'name':'Biome\x20Language\x20Server','extensions':BIOME_EXTENSIONS,async 'root'(_0x5dfa4d){return findUp(_0x5dfa4d,BIOME_ROOT_MARKERS);},async 'spawn'(_0x3dc7ed){const _0x420c99={_0x513d1d:0xd3,_0x546953:0x662,_0x2f1670:0x835,_0xf40b95:0x1d8,_0x52c9b3:0x5d5,_0x297e19:0x657},_0x4a491a={_0x4e7396:0x1f7};function _0x5c72fc(_0x424eb8,_0x3135bf,_0x58045e,_0x37bb03){return _0x43e84c(_0x424eb8-0xe7,_0x37bb03,_0x58045e-0x128,_0x58045e-_0x4a491a._0x4e7396);}function _0x1b479d(_0x2e547b,_0xc3e514,_0xd8a16b,_0x288017){return _0x120580(_0x2e547b- -0x48e,_0x288017,_0xd8a16b-0x54,_0x288017-0x14f);}const _0x3d474b=await findPackageBinary(_0x1b479d(_0x420c99._0x513d1d,0x52,0xd,0x32),_0x3dc7ed)??await resolvePackageBinary({'packageName':_0x5c72fc(_0x420c99._0x546953,0x63f,0x74d,_0x420c99._0x2f1670),'binaryName':'biome','startDir':_0x3dc7ed});if(!_0x3d474b)return void 0x0;return{'process':_0x5dea84(_0x3d474b,[_0x1b479d(0x93,-0x4c,_0x420c99._0xf40b95,0x1d4),_0x5c72fc(_0x420c99._0x52c9b3,_0x420c99._0x297e19,0x525,0x482)],{'cwd':_0x3dc7ed,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x4cb2dc){const _0x3259c1={_0x35d21d:0x201,_0x225c91:0x2df},_0x17941e={_0x552b3d:0x85,_0x40da63:0x58},_0x59a359={_0x18fb02:0x1a1};function _0x5987c5(_0x64ea40,_0x1319c0,_0x2c30ec,_0x1677aa){return _0x120580(_0x64ea40- -_0x59a359._0x18fb02,_0x2c30ec,_0x2c30ec-0x95,_0x1677aa-0x1e8);}function _0x477a1a(_0x3f6944,_0xf11cbc,_0x16ffed,_0x2495eb){return _0x43e84c(_0x3f6944-_0x17941e._0x552b3d,_0x16ffed,_0x16ffed-_0x17941e._0x40da63,_0xf11cbc- -0x24c);}const _0x12cc8e=_0x257501[_0x477a1a(_0x3259c1._0x35d21d,_0x3259c1._0x225c91,0x21b,0x1eb)](_0x4cb2dc)['toLowerCase']();return BUILTIN_LSP_SERVERS['filter'](_0x132f12=>_0x132f12['extensions'][_0x477a1a(0x142,0x182,0x1d7,0x271)](_0x12cc8e));}function stateKey(_0x225f97,_0x13b3ed){return _0x13b3ed+':'+_0x225f97['id'];}function diagnosticsKeyToPath(_0x17e8d4){const _0x50985f={_0x5b6446:0x4d8,_0x8e4a5e:0x46a,_0x5225ae:0x3b9},_0x127d6f={_0x513e0e:0x140,_0x438954:0xa5},_0x399252={_0x15f010:0x140,_0x5bbcb3:0xb1};if(!_0x17e8d4[_0x151023(0x3bc,0x477,_0x50985f._0x5b6446,_0x50985f._0x8e4a5e)](_0x151023(0x596,0x4f7,_0x50985f._0x5225ae,0x3b1)))return _0x17e8d4;function _0x31aea7(_0x3ce88c,_0x5d1c6a,_0x3c5d6a,_0x16345d){return _0x120580(_0x3ce88c- -_0x399252._0x15f010,_0x5d1c6a,_0x3c5d6a-_0x399252._0x5bbcb3,_0x16345d-0x1e6);}function _0x151023(_0x2bb3ad,_0xe1fe6b,_0x53333a,_0x2513db){return _0x43e84c(_0x2bb3ad-_0x127d6f._0x513e0e,_0x2bb3ad,_0x53333a-_0x127d6f._0x438954,_0xe1fe6b-0x10d);}return fileURLToPath(_0x17e8d4);}function nextFileVersion(_0x320c4f,_0x41ae36){const _0x47f85b={_0x2645fa:0x357,_0x4c5988:0x3c3,_0x2f60d2:0x2b3,_0x548a28:0x250,_0x38a066:0x19c,_0x501086:0x12d,_0x4f6104:0x5c8},_0x3da389={_0x43c269:0x4b5},_0x49c64c={_0x1a66ed:0x6a},_0x70e598=(_0x320c4f[_0x53f32c(0x47a,_0x47f85b._0x2645fa,_0x47f85b._0x4c5988,_0x47f85b._0x2f60d2)][_0x1073ab(_0x47f85b._0x548a28,_0x47f85b._0x38a066,0x165,_0x47f85b._0x501086)](_0x41ae36)??0x1)+0x1;_0x320c4f['fileVersions'][_0x53f32c(_0x47f85b._0x4f6104,0x5b8,0x48e,0x65b)](_0x41ae36,_0x70e598);function _0x53f32c(_0x2d0c7c,_0x4fc02d,_0x48da1a,_0x4516b8){return _0x120580(_0x4fc02d- -_0x49c64c._0x1a66ed,_0x2d0c7c,_0x48da1a-0x137,_0x4516b8-0x10d);}function _0x1073ab(_0x3374eb,_0x3a17aa,_0x59c742,_0x5a9aaa){return _0x120580(_0x59c742- -_0x3da389._0x43c269,_0x3374eb,_0x59c742-0xff,_0x5a9aaa-0x9f);}return _0x70e598;}async function collectClientResults(_0x411682){const _0x1a01e2={_0x455718:0x5f0,_0x551c13:0x71e,_0x285399:0x14b,_0x41675f:0x288,_0x4e1d92:0x252,_0x593db4:0x1ae},_0x5d897e={_0x1eb694:0x164,_0x1fa24:0x5a},_0xaeeab5={_0x56304e:0x114,_0x399d8e:0x30c},_0x5695f0=await Promise[_0x363d1d(0x574,0x597,_0x1a01e2._0x455718,_0x1a01e2._0x551c13)](_0x411682);function _0x3feb1b(_0x36d70d,_0x49a7fe,_0x118d43,_0x2aeaae){return _0x43e84c(_0x36d70d-_0xaeeab5._0x56304e,_0x49a7fe,_0x118d43-0x2f,_0x118d43- -_0xaeeab5._0x399d8e);}function _0x363d1d(_0xc19d75,_0x518225,_0x320252,_0x53af3b){return _0x120580(_0x320252-_0x5d897e._0x1eb694,_0x518225,_0x320252-_0x5d897e._0x1fa24,_0x53af3b-0x1f1);}return _0x5695f0[_0x3feb1b(_0x1a01e2._0x285399,_0x1a01e2._0x41675f,_0x1a01e2._0x4e1d92,_0x1a01e2._0x593db4)](_0x3f5180=>_0x3f5180['status']===_0x363d1d(0x681,0x6d5,0x5d1,0x4ff)?_0x3f5180['value']:[]);}function createLspService(_0x2a9108={}){const _0x311910={_0x50240b:0x514,_0x526d97:0x5cc},_0x502d09={_0xe13bde:0x630,_0x4519db:0x528,_0x4fa572:0x4c2,_0x18c635:0x55d,_0x1ba5f8:0x417,_0x577799:0x609,_0x4c4b48:0x50e,_0x3094e3:0x485,_0x45324a:0x44a,_0x1f3926:0xa3,_0x623f9e:0x1a8,_0x3f6afe:0x98,_0xde842d:0x4e6,_0x465313:0x50e,_0x28cee3:0x5e2,_0xfc73d6:0x64c,_0x2962e2:0x583,_0x99ce79:0x544,_0x1acfce:0x7c,_0x300d26:0x119,_0x591b59:0x42,_0x17bc4e:0x9e,_0x146289:0x622,_0x42027d:0xb7,_0x5aed5c:0x115,_0x473062:0xf1,_0x5e0d3:0x1bb,_0x3a3860:0x47b,_0x2196fe:0x565},_0x5159da={_0x4ba9f3:0x66},_0x1f89c3={_0x132253:0x337},_0x4537e5={_0x45beac:0x1b,_0x220d05:0x1cf},_0x216b1d={_0x22eab1:0x732},_0x2040bd={_0x3f8285:0x155,_0x465e26:0x34c},_0x30e1a6={_0xe22c49:0x99,_0x50e243:0x16e},_0x927039={_0x303103:0x170,_0x85a3f3:0x2b0,_0x1f9d31:0x16f,_0x242448:0x108,_0x4c505d:0x40,_0x9da258:0xe1,_0x109687:0x129},_0x548366={_0xc770fe:0x33,_0x389f89:0x2d},_0x543794={_0x447d6b:0x2e8,_0x9e8c69:0x1f7,_0x2c5079:0x194},_0x780c={_0x3efdf7:0xf4},_0x12fb14={_0x52ad4d:0x32c,_0x164c3d:0x334,_0x548872:0x4e5,_0x4c5ee5:0x3d2,_0x5dddcc:0x59e},_0x29f510={_0x5c01e5:0x88},_0x909e40={_0x1c3abc:0x106,_0x5771d9:0x16},_0x3d1b95={_0x2772fb:0x11a,_0x335bf:0x283},_0x344412={_0x15cc92:0x61,_0x13fa0c:0x2a,_0x3e96c2:0x1cf},_0x41073e={_0x113477:0x50,_0x32651b:0x33,_0x24a124:0x64},_0x599a2a={_0x335676:0x4ae},_0xe9df17={_0x300ff4:0x60f,_0x19b88c:0x523},_0x28bdd4={_0x218238:0x2bb},_0x3114be={_0x51e00b:0x183,_0x5a59b1:0xac},_0x42032a={_0x3e6367:0x165,_0x7a5e7a:0x4b9,_0x13a32b:0x42c},_0x12fec0={_0x5081bc:0x119,_0x4fa64a:0xe0,_0x1b8753:0xc8},_0x2df8fa={_0xabc6af:0x78,_0x46d47a:0x36,_0x1a0bc0:0x26e},_0x59cb3f={_0x72d05e:0x6ba,_0x568cb7:0x64e,_0x356b5a:0x76f,_0x286c9f:0x710},_0x36b779={_0x40d2d9:0x26,_0x4ff3c4:0xc8,_0x5b9d55:0x7,_0x1aad83:0x52,_0x4d94f3:0x194,_0x1050dd:0xa8,_0x54c180:0x12,_0x5a09a3:0x2b9,_0x8e9c16:0x112,_0x2ce972:0x188,_0x3a06a5:0xe1,_0x4df08e:0x52,_0x47a650:0x133,_0x343556:0x3,_0x51ebc7:0x217,_0x29f6e5:0x2dc,_0x843b25:0x24b},_0x1e8274={_0x5d865b:0x2cc,_0x1ac47a:0x11e,_0x43ac3d:0x2aa,_0x33bc98:0x351,_0x4149e5:0x2a5,_0x26b79d:0x48a,_0x4178dd:0x430,_0x5ec664:0x461,_0x5757eb:0x26a},_0x1338a3={_0x2bd639:0x5f7,_0x637b6a:0xc5,_0x25b3fd:0x13e,_0x2fe368:0xb6,_0x3d8a90:0x679,_0x22921a:0x5f2,_0x418553:0x67a,_0x4acafc:0x5ea,_0x2044f3:0x6dd,_0x3576da:0x6f8,_0x2ec529:0x6b9,_0x2bb1c4:0x1e3,_0x282b6f:0x10a,_0x2e6711:0x30,_0x287ed4:0x818,_0xf9a217:0x6d1},_0x4955a2={_0x107a7d:0x194,_0xf35550:0x261},_0x176f9e={_0x246967:0x62,_0x2970ea:0x1b9},_0x23b45e={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x30da77=()=>_0x2a9108[_0x502239(0x9e,0xd1,0x14e,0x1bc)]!==![];function _0x502239(_0x419ba5,_0x3c5ba1,_0xb8106,_0x2fef6f){return _0x120580(_0x2fef6f- -0x21c,_0x3c5ba1,_0xb8106-_0x176f9e._0x246967,_0x2fef6f-_0x176f9e._0x2970ea);}async function _0x139708(_0x1fdb26,_0x503c3c){const _0x19dea2={_0x39c403:0x48},_0x1ef715={_0x4203c8:0x427,_0x49e156:0x54b,_0x52fa9d:0x3d8,_0x11ebb7:0x612,_0x16b287:0x639,_0x583e4f:0x4d8,_0x5e7791:0x40f,_0x4e150a:0x3ff,_0x17b875:0x339,_0x321793:0x568,_0x422fb2:0x6ba,_0x32f39a:0x5ab,_0x58aff1:0x5bf,_0x4b2f5f:0x486,_0x59bce6:0x5a6,_0x5df565:0x5c5,_0x95865b:0x5eb,_0x40061a:0x64c,_0x524d63:0x544,_0x4a49b2:0x6c8,_0x2bf2b7:0x4c8,_0x412463:0x5ec,_0x521d6b:0x763,_0x29bc40:0x5a2},_0x3a8431=stateKey(_0x1fdb26,_0x503c3c);function _0x489eb1(_0x905dde,_0x4b9d80,_0x143e74,_0xd9f17b){return _0x502239(_0x905dde-0x14b,_0xd9f17b,_0x143e74-_0x4955a2._0x107a7d,_0x905dde- -_0x4955a2._0xf35550);}const _0x3595bf=_0x23b45e['clients'][_0x2fc73d(0x6e7,0x5bd,_0x1338a3._0x2bd639,0x55e)](_0x2e5ee9=>_0x2e5ee9[_0x2fc73d(0x639,0x703,0x66a,0x762)]===_0x1fdb26['id']&&_0x2e5ee9['root']===_0x503c3c);if(_0x3595bf)return _0x3595bf;if(_0x23b45e[_0x489eb1(0x8d,_0x1338a3._0x637b6a,_0x1338a3._0x25b3fd,-_0x1338a3._0x2fe368)][_0x2fc73d(_0x1338a3._0x3d8a90,0x726,_0x1338a3._0x22921a,0x51a)](_0x3a8431))return void 0x0;const _0x49f6df=_0x23b45e[_0x2fc73d(0x555,0x561,_0x1338a3._0x418553,_0x1338a3._0x4acafc)][_0x2fc73d(0x7ed,_0x1338a3._0x2044f3,_0x1338a3._0x3576da,_0x1338a3._0x2ec529)](_0x3a8431);if(_0x49f6df)return _0x49f6df;const _0x201bf4=((async()=>{const _0x530dbc={_0x37512f:0x9,_0x15ce8d:0x1b2};function _0x40272d(_0x3af31d,_0x4a4a7d,_0x35251b,_0x26b9ba){return _0x2fc73d(_0x3af31d-0x140,_0x4a4a7d-0x1c0,_0x3af31d-0x2a,_0x26b9ba);}function _0x387227(_0xfb0ab7,_0x170d4c,_0x4891e3,_0x3ab533){return _0x2fc73d(_0xfb0ab7-_0x530dbc._0x37512f,_0x170d4c-0xd7,_0x170d4c- -_0x530dbc._0x15ce8d,_0x3ab533);}try{const _0x657aa3=await _0x1fdb26[_0x387227(_0x1ef715._0x4203c8,0x4fe,_0x1ef715._0x49e156,_0x1ef715._0x52fa9d)](_0x503c3c);if(!_0x657aa3)return _0x23b45e[_0x40272d(_0x1ef715._0x11ebb7,_0x1ef715._0x16b287,0x565,_0x1ef715._0x583e4f)][_0x387227(0x4ba,_0x1ef715._0x5e7791,_0x1ef715._0x4e150a,_0x1ef715._0x17b875)](_0x3a8431),void 0x0;const _0x2f7f63=await createLspClient({'server':_0x1fdb26,'root':_0x503c3c,'handle':_0x657aa3}),_0x55cff1=_0x23b45e['clients'][_0x40272d(0x621,_0x1ef715._0x321793,_0x1ef715._0x422fb2,_0x1ef715._0x32f39a)](_0x412f52=>_0x412f52[_0x387227(0x5a4,0x4b8,0x565,0x390)]===_0x1fdb26['id']&&_0x412f52[_0x40272d(0x55b,0x494,0x58a,0x459)]===_0x503c3c);if(_0x55cff1)return await _0x2f7f63[_0x387227(_0x1ef715._0x58aff1,_0x1ef715._0x4b2f5f,_0x1ef715._0x59bce6,0x5bc)](),_0x55cff1;return _0x23b45e[_0x40272d(0x545,0x4a0,0x60b,_0x1ef715._0x5df565)]['push'](_0x2f7f63),_0x2f7f63;}catch{return _0x23b45e['broken'][_0x40272d(_0x1ef715._0x95865b,_0x1ef715._0x40061a,_0x1ef715._0x524d63,_0x1ef715._0x4a49b2)](_0x3a8431),void 0x0;}finally{_0x23b45e[_0x387227(0x46a,_0x1ef715._0x2bf2b7,0x5f4,_0x1ef715._0x412463)][_0x40272d(0x649,0x620,_0x1ef715._0x521d6b,_0x1ef715._0x29bc40)](_0x3a8431);}})());_0x23b45e[_0x489eb1(0x11f,_0x1338a3._0x2bb1c4,_0x1338a3._0x282b6f,_0x1338a3._0x2e6711)][_0x2fc73d(_0x1338a3._0x287ed4,_0x1338a3._0xf9a217,0x700,0x68a)](_0x3a8431,_0x201bf4);function _0x2fc73d(_0x370dcd,_0x39e2dd,_0x3a9171,_0x3facfc){return _0x502239(_0x370dcd-0x1da,_0x3facfc,_0x3a9171-_0x19dea2._0x39c403,_0x3a9171-0x2fa);}return _0x201bf4;}async function _0x5d1f33(_0x3f7a30,_0x58b66c){const _0x3ac1ee={_0x55037d:0x86},_0x14e8fc={_0x1a537c:0x82,_0xf58b1b:0x6,_0x14b4c9:0x17c};if(!_0x30da77())return[];const _0x4f3c7e=[];for(const _0x4d56da of getServersForFile(_0x3f7a30)){const _0x137d70=await _0x4d56da['root'](_0x3f7a30);if(!_0x137d70)continue;const _0x391f7d=stateKey(_0x4d56da,_0x137d70);if(_0x23b45e['broken']['has'](_0x391f7d))continue;const _0x3760de=_0x23b45e[_0x5cd99a(_0x1e8274._0x5d865b,_0x1e8274._0x1ac47a,0x19b,_0x1e8274._0x43ac3d)][_0x5cd99a(_0x1e8274._0x33bc98,_0x1e8274._0x4149e5,0x277,0x1fb)](_0x404995=>_0x404995[_0x5cd99a(0x1e0,0x341,0x2ea,0x357)]===_0x4d56da['id']&&_0x404995[_0x40d281(0xef,0x14f,0x35,0xbb)]===_0x137d70);if(_0x3760de){_0x4f3c7e[_0x5cd99a(0x3b9,_0x1e8274._0x26b79d,0x355,_0x1e8274._0x4178dd)](_0x3760de);continue;}if(!_0x58b66c)continue;const _0x22a584=await _0x139708(_0x4d56da,_0x137d70);if(_0x22a584)_0x4f3c7e[_0x5cd99a(_0x1e8274._0x5ec664,0x2f2,0x355,_0x1e8274._0x5757eb)](_0x22a584);}function _0x40d281(_0x568d0e,_0x32c4f2,_0x515119,_0x72c159){return _0x502239(_0x568d0e-_0x14e8fc._0x1a537c,_0x568d0e,_0x515119-_0x14e8fc._0xf58b1b,_0x72c159- -_0x14e8fc._0x14b4c9);}function _0x5cd99a(_0x12507c,_0x1c4dff,_0x40fab3,_0x491192){return _0x502239(_0x12507c-0x99,_0x491192,_0x40fab3-0x1b6,_0x40fab3- -_0x3ac1ee._0x55037d);}return _0x4f3c7e;}async function _0x3e5bf6(_0xb47023,_0x5c4130=![]){const _0x346ce1={_0x3f818c:0x2e5},_0xe98363=await _0x5d1f33(_0xb47023,!![]);function _0x1cc06e(_0x50f28e,_0x129bee,_0x824b7d,_0x302eb2){return _0x502239(_0x50f28e-0x12,_0x824b7d,_0x824b7d-0x17a,_0x129bee- -_0x346ce1._0x3f818c);}function _0xbfdb49(_0x4b21dd,_0x26e3a8,_0x49ac4f,_0x4f41a0){return _0x502239(_0x4b21dd-0xd4,_0x26e3a8,_0x49ac4f-0x34,_0x49ac4f-0x395);}await Promise[_0xbfdb49(0x526,_0x59cb3f._0x72d05e,_0x59cb3f._0x568cb7,_0x59cb3f._0x356b5a)](_0xe98363[_0xbfdb49(0x621,_0x59cb3f._0x286c9f,0x766,0x861)](async _0x2cea3c=>{const _0x54106c={_0x139795:0x108};!_0x23b45e['openFiles'][_0xda648b(-_0x36b779._0x40d2d9,0xd2,-_0x36b779._0x4ff3c4,-_0x36b779._0x5b9d55)](_0x2cea3c[_0xda648b(_0x36b779._0x1aad83,0x10a,_0x36b779._0x4d94f3,-_0x36b779._0x1050dd)]+':'+_0x2cea3c[_0x1df612(0x130,0x16c,-_0x36b779._0x54c180,0x1c6)]+':'+_0xb47023)&&(await _0x2cea3c[_0x1df612(0x2dc,0x38c,0x3cd,_0x36b779._0x5a09a3)][_0x1df612(_0x36b779._0x8e9c16,0x14f,_0x36b779._0x2ce972,0x164)]({'path':_0xb47023}),_0x23b45e['openFiles'][_0x1df612(0x1c0,_0x36b779._0x3a06a5,0x271,0x86)](_0x2cea3c[_0xda648b(_0x36b779._0x4df08e,0x149,_0x36b779._0x47a650,0xaa)]+':'+_0x2cea3c[_0x1df612(0x130,-_0x36b779._0x343556,_0x36b779._0x51ebc7,0x94)]+':'+_0xb47023));function _0x1df612(_0xf2e06d,_0x13078e,_0x48c5a4,_0x3c33fa){return _0x1cc06e(_0xf2e06d-_0x54106c._0x139795,_0xf2e06d-0x1de,_0x48c5a4,_0x3c33fa-0x1ac);}function _0xda648b(_0x187d3f,_0x3bceee,_0x44739c,_0x22e709){return _0x1cc06e(_0x187d3f-0xeb,_0x187d3f- -0x39,_0x44739c,_0x22e709-0x33);}await _0x2cea3c[_0x1df612(_0x36b779._0x29f6e5,0x35a,0x2ef,_0x36b779._0x843b25)][_0xda648b(-0x121,-0x8a,-0xf3,-0x191)]({'path':_0xb47023,'version':nextFileVersion(_0x23b45e,_0xb47023)});if(_0x5c4130)await _0x2cea3c['waitForDiagnostics']({'path':_0xb47023});}));}async function _0x523ec8(_0x5533ce){function _0x2ee926(_0x1576c6,_0x32d87a,_0x358003,_0x3e62fa){return _0x502239(_0x1576c6-_0x2df8fa._0xabc6af,_0x3e62fa,_0x358003-_0x2df8fa._0x46d47a,_0x32d87a- -_0x2df8fa._0x1a0bc0);}await _0x3e5bf6(_0x5533ce[_0x2ee926(0x1c,0xeb,0x87,_0x42032a._0x3e6367)],![]);function _0x4035cd(_0x5ef684,_0x262d33,_0x28f9c1,_0x298327){return _0x502239(_0x5ef684-_0x12fec0._0x5081bc,_0x298327,_0x28f9c1-_0x12fec0._0x4fa64a,_0x262d33-_0x12fec0._0x1b8753);}return _0x5d1f33(_0x5533ce[_0x4035cd(_0x42032a._0x7a5e7a,0x421,0x50d,_0x42032a._0x13a32b)],![]);}async function _0x1276d7(_0x31961c){const _0x11e51f={_0x49c208:0xce};function _0x20ef86(_0x2a8346,_0x111c67,_0x2a3afa,_0x895caa){return _0x502239(_0x2a8346-_0x11e51f._0x49c208,_0x2a8346,_0x2a3afa-0x13f,_0x2a3afa-0xb9);}function _0x67fc77(_0x119312,_0x13a558,_0xa902a,_0x4abaed){return _0x502239(_0x119312-_0x3114be._0x51e00b,_0xa902a,_0xa902a-_0x3114be._0x5a59b1,_0x4abaed-0x323);}const _0x46effe=await _0x523ec8(_0x31961c);return collectClientResults(_0x46effe['map'](_0x43cca0=>_0x43cca0[_0x67fc77(0x437,0x63f,0x3ec,0x51f)][_0x20ef86(0x388,0x192,0x25f,0x2a3)](_0x31961c)));}return{'isEnabled':_0x30da77,async 'hasClients'(_0x21ff3b){const _0x52dc50={_0x26fdac:0x42,_0x35a5cd:0x101};function _0x4255cb(_0x3933bc,_0x545c5e,_0x443479,_0x19b90c){return _0x502239(_0x3933bc-_0x52dc50._0x26fdac,_0x3933bc,_0x443479-_0x52dc50._0x35a5cd,_0x545c5e- -0x29);}return(await _0x5d1f33(_0x21ff3b,![]))['length']>0x0||getServersForFile(_0x21ff3b)[_0x4255cb(0x357,0x332,_0x28bdd4._0x218238,0x445)]>0x0;},'touchFile':_0x3e5bf6,async 'diagnostics'(){const _0x468387={_0x41a33f:0x124};function _0x171eca(_0x368a10,_0x50a885,_0xeaa76b,_0xbb142e){return _0x502239(_0x368a10-0x182,_0xbb142e,_0xeaa76b-_0x468387._0x41a33f,_0xeaa76b-0x1f3);}const _0x5442de={};for(const _0x29ff79 of _0x23b45e['clients']){for(const [_0x3dc768,_0x2465c6]of _0x29ff79[_0x171eca(_0xe9df17._0x300ff4,0x45f,_0xe9df17._0x19b88c,0x553)]){_0x5442de[diagnosticsKeyToPath(_0x3dc768)]=_0x2465c6;}}return _0x5442de;},async 'diagnosticsForFile'(_0xfe4ebc){const _0x3b0ee8={_0x31499c:0x6,_0x10ff76:0x17e},_0x2b0ece={_0x50ea23:0x6};await _0x3e5bf6(_0xfe4ebc,!![]);function _0x23796e(_0x1fd190,_0x4e4180,_0x5aae74,_0x43dacf){return _0x502239(_0x1fd190-_0x2b0ece._0x50ea23,_0x1fd190,_0x5aae74-0x1ae,_0x5aae74-0x345);}const _0x29b651=[];for(const _0x18380c of await _0x5d1f33(_0xfe4ebc,![])){for(const [_0x1f83f7,_0x4ad80a]of _0x18380c[_0x1580f9(0x4a7,0x536,_0x599a2a._0x335676,0x386)]){if(diagnosticsKeyToPath(_0x1f83f7)===_0xfe4ebc)_0x29b651[_0x1580f9(0x536,0x4c7,0x559,0x685)](..._0x4ad80a);}}function _0x1580f9(_0x3da844,_0x1ec64f,_0x3b9485,_0x4db235){return _0x502239(_0x3da844-_0x3b0ee8._0x31499c,_0x1ec64f,_0x3b9485-0x40,_0x3b9485-_0x3b0ee8._0x10ff76);}return _0x29b651;},async 'definition'(_0x4356af){const _0x458935={_0x1afd60:0xc4,_0x3b8daa:0x4b},_0x3b04dc={_0x4938ad:0x72};function _0x22f3bd(_0x23d60d,_0x15cdb1,_0x32b8fb,_0x32497d){return _0x502239(_0x23d60d-0x31,_0x23d60d,_0x32b8fb-_0x3b04dc._0x4938ad,_0x32497d- -0x2f4);}function _0x2d9ed8(_0x12d165,_0x40a951,_0x2ffb51,_0x1b01c6){return _0x502239(_0x12d165-_0x458935._0x1afd60,_0x1b01c6,_0x2ffb51-_0x458935._0x3b8daa,_0x2ffb51- -0x360);}return collectClientResults((await _0x523ec8(_0x4356af))[_0x22f3bd(-_0x41073e._0x113477,-_0x41073e._0x32651b,-_0x41073e._0x24a124,0xdd)](_0x3ce9de=>_0x3ce9de[_0x22f3bd(-0x1f,-0x66,-0x27,-0xf8)][_0x22f3bd(0x1c6,0xb2,0x4,0x86)](_0x4356af)));},async 'references'(_0x1cdb30){function _0x5748a0(_0x136d5e,_0x5b2245,_0xc6f6df,_0x15d655){return _0x502239(_0x136d5e-_0x344412._0x15cc92,_0x136d5e,_0xc6f6df-_0x344412._0x13fa0c,_0xc6f6df- -_0x344412._0x3e96c2);}function _0x34f673(_0x492ddf,_0x54cb7a,_0x547a7b,_0x5f24ce){return _0x502239(_0x492ddf-0xe5,_0x547a7b,_0x547a7b-_0x3d1b95._0x2772fb,_0x492ddf- -_0x3d1b95._0x335bf);}return collectClientResults((await _0x523ec8(_0x1cdb30))[_0x34f673(0x14e,_0x909e40._0x1c3abc,0x1e3,_0x909e40._0x5771d9)](_0x38f236=>_0x38f236[_0x5748a0(0xd1,-0x3a,0x2d,0x66)][_0x5748a0(0x14d,0x257,0x111,0x155)](_0x1cdb30)));},async 'hover'(_0x2103c5){const _0xc80778={_0x55489f:0x1ee};function _0x356027(_0x3c5e87,_0x5c014c,_0x48e75d,_0x11d8b3){return _0x502239(_0x3c5e87-0x4f,_0x5c014c,_0x48e75d-_0xc80778._0x55489f,_0x11d8b3-0xc4);}function _0x45fcd9(_0x2e0918,_0x5d079e,_0x1202fa,_0x309d7b){return _0x502239(_0x2e0918-_0x29f510._0x5c01e5,_0x5d079e,_0x1202fa-0x7d,_0x309d7b-0x80);}const _0x589e4b=await Promise[_0x356027(_0x12fb14._0x52ad4d,0x3d0,0x3a8,_0x12fb14._0x164c3d)]((await _0x523ec8(_0x2103c5))[_0x45fcd9(0x3bd,0x4a1,_0x12fb14._0x548872,0x451)](_0x3653e0=>_0x3653e0[_0x356027(0x18e,0x350,0x1d6,0x2c0)][_0x356027(0x324,0x26e,0x2e3,0x360)](_0x2103c5)));return _0x589e4b[_0x356027(_0x12fb14._0x4c5ee5,0x56a,_0x12fb14._0x5dddcc,0x4aa)](_0x48bb78=>_0x48bb78[_0x45fcd9(0x480,0x476,0x326,0x3a9)]===_0x45fcd9(0x270,0x325,0x33b,0x2d1)&&_0x48bb78[_0x356027(0x19b,0x12c,0x2cc,0x262)]?[_0x48bb78[_0x45fcd9(0x121,0x269,0x1fd,0x21e)]]:[]);},async 'documentSymbol'(_0x372f5a){const _0x5607d8={_0xe4d0:0x27,_0x3ba66c:0x1f4};function _0x319379(_0x685328,_0x30f3ff,_0x29058f,_0x5f2eda){return _0x502239(_0x685328-_0x5607d8._0xe4d0,_0x29058f,_0x29058f-_0x5607d8._0x3ba66c,_0x30f3ff- -0x1da);}function _0xdd171e(_0x4fb4fd,_0x3f18cd,_0x27435d,_0x54d11a){return _0x502239(_0x4fb4fd-0x30,_0x4fb4fd,_0x27435d-0x13a,_0x27435d-_0x780c._0x3efdf7);}return await _0x3e5bf6(_0x372f5a,![]),collectClientResults((await _0x5d1f33(_0x372f5a,![]))[_0x319379(_0x543794._0x447d6b,_0x543794._0x9e8c69,0x129,_0x543794._0x2c5079)](_0x46faf3=>_0x46faf3[_0xdd171e(0x257,0x29c,0x2f0,0x3da)][_0x319379(-0xec,-0x49,-0x16d,0x9a)](_0x372f5a)));},async 'workspaceSymbol'(_0x26b8da){const _0x59f4a1={_0xf09c28:0xf2,_0x5e0372:0x26,_0x59f839:0x391};function _0x5c0cd1(_0x147c3e,_0xf83b8b,_0x1efa80,_0x2b905c){return _0x502239(_0x147c3e-_0x59f4a1._0xf09c28,_0x2b905c,_0x1efa80-_0x59f4a1._0x5e0372,_0x147c3e- -_0x59f4a1._0x59f839);}function _0x333965(_0xb7105a,_0x2d6797,_0x567be9,_0x85b7d4){return _0x502239(_0xb7105a-0x18c,_0xb7105a,_0x567be9-_0x548366._0xc770fe,_0x2d6797- -_0x548366._0x389f89);}return collectClientResults(_0x23b45e[_0x5c0cd1(-_0x927039._0x303103,-_0x927039._0x85a3f3,-_0x927039._0x1f9d31,-_0x927039._0x242448)][_0x5c0cd1(_0x927039._0x4c505d,-_0x927039._0x9da258,_0x927039._0x109687,-0x45)](_0x2192d6=>_0x2192d6['request'][_0x5c0cd1(-0x66,0x95,0x13,0x31)](_0x26b8da)));},async 'implementation'(_0x46bfb6){const _0x19064e={_0x2fd571:0x1c8};function _0x401419(_0x495c59,_0x446614,_0x2a9262,_0x197274){return _0x502239(_0x495c59-_0x30e1a6._0xe22c49,_0x2a9262,_0x2a9262-_0x30e1a6._0x50e243,_0x495c59-0xfa);}function _0xf7718e(_0x3180f6,_0x36fb39,_0x1e32bb,_0x47c3ec){return _0x502239(_0x3180f6-_0x19064e._0x2fd571,_0x47c3ec,_0x1e32bb-0x62,_0x3180f6- -0x45);}return collectClientResults((await _0x523ec8(_0x46bfb6))[_0xf7718e(0x38c,0x348,0x38b,0x3d8)](_0x8f7441=>_0x8f7441['request'][_0xf7718e(0x206,0x28b,0xc8,0x238)](_0x46bfb6)));},async 'prepareCallHierarchy'(_0xf51c10){return _0x1276d7(_0xf51c10);},async 'incomingCalls'(_0x33b7ab){const _0x2a258e={_0x1c7cb0:0x18f,_0x90d9d1:0x94,_0x5745b5:0x3bf},_0xf9dc94=await _0x1276d7(_0x33b7ab);function _0x54bb5f(_0x5ad24f,_0x3a6a27,_0x5380d8,_0xf99014){return _0x502239(_0x5ad24f-_0x2040bd._0x3f8285,_0x3a6a27,_0x5380d8-0x13f,_0x5ad24f-_0x2040bd._0x465e26);}const _0x21acca=await _0x523ec8(_0x33b7ab);function _0x3c8bfd(_0x1553db,_0x32866c,_0x37c300,_0x542bd6){return _0x502239(_0x1553db-_0x2a258e._0x1c7cb0,_0x542bd6,_0x37c300-_0x2a258e._0x90d9d1,_0x37c300- -_0x2a258e._0x5745b5);}return collectClientResults(_0x21acca[_0x54bb5f(_0x216b1d._0x22eab1,0x6ac,0x69b,0x81b)](_0x3e42cc=>_0xf9dc94['map'](_0x484bd1=>_0x3e42cc[_0x3c8bfd(-0x16e,-0x194,-0x1c3,-0x1fd)]['incomingCalls'](_0x484bd1))));},async 'outgoingCalls'(_0x1754e8){const _0x4ae346={_0x20e091:0x1f2,_0x38cce0:0x9f,_0x2369e5:0x3d};function _0x386b94(_0x5b2f54,_0x3cdedd,_0x1c6c72,_0x4715a1){return _0x502239(_0x5b2f54-_0x4ae346._0x20e091,_0x4715a1,_0x1c6c72-_0x4ae346._0x38cce0,_0x1c6c72- -_0x4ae346._0x2369e5);}function _0x40cb5(_0x485a82,_0x9604b1,_0x2016fe,_0x1cfe90){return _0x502239(_0x485a82-0x15e,_0x2016fe,_0x2016fe-_0x4537e5._0x45beac,_0x485a82- -_0x4537e5._0x220d05);}const _0x3ecd3e=await _0x1276d7(_0x1754e8),_0x483b1d=await _0x523ec8(_0x1754e8);return collectClientResults(_0x483b1d[_0x386b94(_0x1f89c3._0x132253,0x2ef,0x3a9,0x364)](_0x5e74d2=>_0x3ecd3e[_0x386b94(0x489,0x405,0x394,0x311)](_0x1410ab=>_0x5e74d2[_0x40cb5(0x2d,0x4f,-0xc6,-0x6a)][_0x386b94(0x2e4,0x14e,0x1f0,0x1e8)](_0x1410ab))));},async 'shutdown'(){if(_0x23b45e['shutdownStarted'])return;_0x23b45e[_0x5a4d52(_0x502d09._0xe13bde,_0x502d09._0x4519db,0x664,_0x502d09._0x4fa572)]=!![],await Promise[_0x5a4d52(0x5aa,_0x502d09._0x18c635,0x660,_0x502d09._0x1ba5f8)](_0x23b45e[_0x5a4d52(_0x502d09._0x577799,_0x502d09._0x4c4b48,_0x502d09._0x3094e3,_0x502d09._0x45324a)][_0x381166(_0x502d09._0x1f3926,_0x502d09._0x623f9e,0x117,_0x502d09._0x3f6afe)](_0x232ba5=>_0x232ba5[_0x5a4d52(0x57e,0x62b,0x623,0x5cd)]())),_0x23b45e[_0x5a4d52(_0x502d09._0xde842d,_0x502d09._0x465313,0x41b,_0x502d09._0x28cee3)]=[],_0x23b45e[_0x5a4d52(_0x502d09._0xfc73d6,0x66d,_0x502d09._0x2962e2,_0x502d09._0x99ce79)][_0x381166(_0x502d09._0x1acfce,-_0x502d09._0x300d26,-_0x502d09._0x591b59,-_0x502d09._0x17bc4e)]();function _0x5a4d52(_0x77efff,_0x9afb0b,_0x4f4758,_0x1fecfd){return _0x502239(_0x77efff-0x96,_0x77efff,_0x4f4758-0x58,_0x9afb0b-0x2ed);}_0x23b45e['broken'][_0x5a4d52(0x4d2,0x565,_0x502d09._0x146289,0x4b0)]();function _0x381166(_0x26fb46,_0x1d77d9,_0x3c4d77,_0x5329e5){return _0x502239(_0x26fb46-0x49,_0x26fb46,_0x3c4d77-_0x5159da._0x4ba9f3,_0x3c4d77- -0x2ba);}_0x23b45e[_0x381166(-0xd5,-_0x502d09._0x42027d,-_0x502d09._0x5aed5c,-0xec)]['clear'](),_0x23b45e[_0x381166(0x1fe,_0x502d09._0x473062,0x139,_0x502d09._0x5e0d3)][_0x5a4d52(_0x502d09._0x3a3860,_0x502d09._0x2196fe,0x511,0x468)]();},'status'(){function _0x2a8ece(_0x2b6544,_0x268f1d,_0x20ac2b,_0x32ea69){return _0x502239(_0x2b6544-0x1ab,_0x32ea69,_0x20ac2b-0x16a,_0x20ac2b-0x3f3);}return{'connectedClients':_0x23b45e[_0x2a8ece(_0x311910._0x50240b,0x69c,0x614,_0x311910._0x526d97)]['length']};}};}function createQuestionId(){const _0x18af7c={_0x573de3:0x404,_0x5866db:0x28a,_0x2e7fde:0x2dc,_0xa3dc81:0x364,_0x330998:0x38f,_0x5affa1:0x2bf,_0x5afd26:0x3c5,_0x249abf:0x3e0},_0x464841={_0x3c250d:0xae,_0x24fc08:0x158},_0x278cf6={_0x19098:0x180};function _0x4c3399(_0x4b4b75,_0x18e850,_0x128fe9,_0x48c05a){return _0x43e84c(_0x4b4b75-0x1ab,_0x128fe9,_0x128fe9-_0x278cf6._0x19098,_0x18e850- -0x198);}function _0x3ca387(_0x5bc80b,_0x44197a,_0x21cde4,_0x5ccb8f){return _0x43e84c(_0x5bc80b-0x12f,_0x21cde4,_0x21cde4-_0x464841._0x3c250d,_0x44197a- -_0x464841._0x24fc08);}return _0x3ca387(0x481,0x3ae,_0x18af7c._0x573de3,_0x18af7c._0x5866db)+Date[_0x4c3399(0x3a6,_0x18af7c._0x2e7fde,0x31d,0x204)]()+'-'+Math[_0x4c3399(0x3b4,_0x18af7c._0xa3dc81,0x475,_0x18af7c._0x330998)]()[_0x3ca387(0x39a,0x2b1,0x3c7,_0x18af7c._0x5affa1)](0x24)[_0x4c3399(0x501,_0x18af7c._0x5afd26,0x4bb,_0x18af7c._0x249abf)](0x2,0x9);}function validateInput(_0x41b132){const _0x57a4d4={_0x2a9451:0x718,_0x16c8c9:0x64e,_0x34f00f:0x634,_0x15efad:0x71,_0x2c7bbb:0x252,_0x2ab4e5:0x634,_0x39fe09:0x72b,_0x5df452:0x6c7,_0x3abb12:0xde,_0x37887b:0x158,_0x52d66b:0x159,_0x4f310a:0x7da,_0x3b9540:0x7c9,_0x151fbb:0x64d,_0xb065b0:0x64a,_0xf33da6:0x5fe,_0x5484dc:0x591,_0x773528:0x661,_0x5a7c66:0x677,_0x1bc2a7:0x47,_0x113faf:0xd5,_0x7cc38f:0x2,_0x329da1:0x16c,_0x2fc8dc:0x600,_0x115e29:0x5fa,_0x591d07:0x626,_0x18cfde:0x605,_0x2b0bc0:0x750,_0x37556a:0x6f8,_0x55226c:0x698,_0x5d7bf1:0x60c,_0x59de3e:0x6af,_0x554bb9:0x37,_0x139e23:0xd,_0x50d909:0xc3,_0x535d8e:0x650,_0x58665e:0x61b,_0x5c5d2a:0x550,_0x33cf2c:0x224,_0x490971:0xed,_0x498ade:0xfa,_0x300fb7:0x66,_0x1673d5:0x4c,_0x4df4a4:0x38,_0x5cf6b4:0xe4,_0x40296b:0x58,_0x2481cb:0x850,_0x2c7e4b:0x601,_0x51ccc9:0x7b9,_0x3410b5:0x1cc,_0x1335d1:0x2b,_0x5020d9:0x1ec,_0x40e1e7:0x6be,_0x3d1983:0x595,_0x985c97:0x610,_0x2b2654:0x6a0,_0x50f492:0x10a,_0x259f17:0x1f6,_0xcd471d:0x186,_0x50c867:0xb7,_0x3c7e4c:0x6ab,_0x107424:0x88f,_0x429c6c:0x5fc,_0x527880:0x1da,_0x2ff3eb:0x194,_0x52d8b6:0x88,_0x5ca9cc:0x69a,_0x5b91ee:0x4be,_0x41c4fc:0x4fa,_0x61b09b:0x70d},_0x49b5be={_0x1a0953:0x41f,_0x4e4efe:0x185},_0x200129={_0x3929a5:0x1a4};if(!Array[_0x39bb77(0x679,_0x57a4d4._0x2a9451,_0x57a4d4._0x16c8c9,0x751)](_0x41b132[_0x39bb77(0x621,_0x57a4d4._0x34f00f,0x518,0x6da)])||_0x41b132[_0x2a66d4(-0x94,_0x57a4d4._0x15efad,0x30,-0x5d)][_0x2a66d4(0x1fe,0x158,0x20c,_0x57a4d4._0x2c7bbb)]<0x1||_0x41b132[_0x39bb77(0x58c,_0x57a4d4._0x2ab4e5,_0x57a4d4._0x39fe09,_0x57a4d4._0x5df452)][_0x2a66d4(_0x57a4d4._0x3abb12,_0x57a4d4._0x37887b,0x1b6,_0x57a4d4._0x52d66b)]>0x4)throw new ToolExecutionError('Must\x20provide\x201-4\x20questions',{'error':_0x2a66d4(0xe0,-0x2a,0xea,0xed)});function _0x39bb77(_0x471cc3,_0x2e601c,_0x5afbec,_0x2886c0){return _0x120580(_0x2e601c-_0x200129._0x3929a5,_0x2886c0,_0x5afbec-0xd7,_0x2886c0-0x4e);}function _0x2a66d4(_0x58690d,_0x21b8dd,_0x2b3bd2,_0x4a2c68){return _0x120580(_0x21b8dd- -_0x49b5be._0x1a0953,_0x2b3bd2,_0x2b3bd2-_0x49b5be._0x4e4efe,_0x4a2c68-0x73);}for(let _0x3c4b4b=0x0;_0x3c4b4b<_0x41b132['questions'][_0x39bb77(0x6d2,0x71b,_0x57a4d4._0x4f310a,_0x57a4d4._0x3b9540)];_0x3c4b4b+=0x1){const _0x2f858e=_0x41b132[_0x39bb77(0x72f,_0x57a4d4._0x34f00f,_0x57a4d4._0x151fbb,_0x57a4d4._0xb065b0)][_0x3c4b4b];if(!_0x2f858e[_0x39bb77(_0x57a4d4._0xf33da6,0x5df,_0x57a4d4._0x5484dc,_0x57a4d4._0x773528)]||typeof _0x2f858e[_0x39bb77(_0x57a4d4._0x5a7c66,0x5df,0x614,0x4fb)]!==_0x2a66d4(_0x57a4d4._0x1bc2a7,_0x57a4d4._0x113faf,-_0x57a4d4._0x7cc38f,_0x57a4d4._0x329da1))throw new ToolExecutionError(_0x39bb77(_0x57a4d4._0x2fc8dc,_0x57a4d4._0x115e29,_0x57a4d4._0x591d07,0x625)+(_0x3c4b4b+0x1)+_0x39bb77(0x66b,0x65f,0x701,0x541));if(!_0x2f858e[_0x39bb77(_0x57a4d4._0x18cfde,0x61b,_0x57a4d4._0x2b0bc0,_0x57a4d4._0x37556a)]||typeof _0x2f858e['header']!==_0x39bb77(0x56b,_0x57a4d4._0x55226c,_0x57a4d4._0x5d7bf1,_0x57a4d4._0x59de3e))throw new ToolExecutionError(_0x2a66d4(0x22,_0x57a4d4._0x554bb9,_0x57a4d4._0x139e23,_0x57a4d4._0x50d909)+(_0x3c4b4b+0x1)+_0x39bb77(0x65c,0x59a,0x477,0x572));if(_0x2f858e[_0x39bb77(_0x57a4d4._0x535d8e,_0x57a4d4._0x58665e,_0x57a4d4._0x5c5d2a,0x54c)][_0x2a66d4(0x66,_0x57a4d4._0x37887b,_0x57a4d4._0x33cf2c,0x64)]>0x14)throw new ToolExecutionError(_0x2a66d4(_0x57a4d4._0x490971,0x37,0xb0,_0x57a4d4._0x498ade)+(_0x3c4b4b+0x1)+_0x2a66d4(_0x57a4d4._0x300fb7,_0x57a4d4._0x1673d5,_0x57a4d4._0x4df4a4,-_0x57a4d4._0x5cf6b4)+_0x2f858e[_0x2a66d4(0x84,_0x57a4d4._0x40296b,-0x62,0x52)][_0x39bb77(_0x57a4d4._0x2481cb,0x71b,_0x57a4d4._0x2c7e4b,_0x57a4d4._0x51ccc9)]);if(!Array[_0x39bb77(0x609,_0x57a4d4._0x2a9451,_0x57a4d4._0x535d8e,0x6f0)](_0x2f858e[_0x2a66d4(_0x57a4d4._0x3410b5,0xfb,-_0x57a4d4._0x1335d1,_0x57a4d4._0x5020d9)])||_0x2f858e['options']['length']<0x2||_0x2f858e[_0x39bb77(0x64e,_0x57a4d4._0x40e1e7,_0x57a4d4._0x3d1983,0x6c8)]['length']>0x4)throw new ToolExecutionError(_0x39bb77(_0x57a4d4._0x985c97,0x5fa,_0x57a4d4._0x2b2654,_0x57a4d4._0x2b2654)+(_0x3c4b4b+0x1)+_0x2a66d4(-_0x57a4d4._0x50f492,0x30,-0x85,0x14c));for(let _0x183afc=0x0;_0x183afc<_0x2f858e[_0x2a66d4(_0x57a4d4._0x259f17,0xfb,_0x57a4d4._0xcd471d,0x19f)][_0x2a66d4(0xa9,0x158,0x1d5,_0x57a4d4._0x50c867)];_0x183afc+=0x1){const _0x2a355c=_0x2f858e['options'][_0x183afc];if(!_0x2a355c[_0x39bb77(_0x57a4d4._0x3c7e4c,0x6fb,0x609,0x66d)]||!_0x2a355c[_0x39bb77(0x844,0x771,_0x57a4d4._0x107424,0x82a)])throw new ToolExecutionError('Question\x20'+(_0x3c4b4b+0x1)+_0x39bb77(0x6a4,0x5b6,0x49a,_0x57a4d4._0x429c6c)+(_0x183afc+0x1)+_0x2a66d4(0x13f,0x17c,0x14e,_0x57a4d4._0x527880));}if(typeof _0x2f858e[_0x2a66d4(_0x57a4d4._0x2ff3eb,0x7f,-0x4c,_0x57a4d4._0x52d8b6)]!==_0x39bb77(_0x57a4d4._0x5ca9cc,0x598,0x678,_0x57a4d4._0x5b91ee))throw new ToolExecutionError(_0x39bb77(_0x57a4d4._0x41c4fc,0x5fa,_0x57a4d4._0x61b09b,0x53f)+(_0x3c4b4b+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x27d3d8){const _0x436ff6={_0x490db7:0x18e,_0x1936c2:0x329,_0x4f6fa7:0x383,_0x3a4449:0x49e},_0x29ceb5={_0x4333aa:0x264,_0x328ffa:0x1a5,_0x6bc4f7:0x174},_0x5c5eb1={_0xb57ceb:0x89,_0xcbf1dc:0x9d,_0x4e3a19:0xab};function _0x1509c2(_0x5c1a2c,_0x4019dc,_0x4f771e,_0x5f59b7){return _0x43e84c(_0x5c1a2c-_0x5c5eb1._0xb57ceb,_0x4019dc,_0x4f771e-_0x5c5eb1._0xcbf1dc,_0x5f59b7- -_0x5c5eb1._0x4e3a19);}function _0xd0f0e3(_0x53b58c,_0xf9fd05,_0x1ee1b1,_0x34c9f9){return _0x120580(_0x1ee1b1- -_0x29ceb5._0x4333aa,_0x53b58c,_0x1ee1b1-_0x29ceb5._0x328ffa,_0x34c9f9-_0x29ceb5._0x6bc4f7);}return _0x27d3d8[_0xd0f0e3(_0x436ff6._0x490db7,0x197,0x22c,_0x436ff6._0x1936c2)][_0x1509c2(0x42e,_0x436ff6._0x4f6fa7,0x4e1,_0x436ff6._0x3a4449)]((_0x410d78,_0x4dd05e)=>({'id':'q'+_0x4dd05e,'question':_0x410d78[_0xd0f0e3(0x16d,0x2a2,0x1d7,0x23e)],'header':_0x410d78[_0xd0f0e3(0x33f,0x264,0x213,0x1f4)],'options':_0x410d78[_0x1509c2(0x392,0x34c,0x2a7,0x3cb)],'multiSelect':_0x410d78[_0x1509c2(0x44d,0x268,0x340,0x34f)]}));}function createResult(_0x282517,_0x4f66e2,_0x3206a3){const _0xe321e0={_0x305c7e:0x79},_0x2c8936={_0x15717c:0x49a,_0x19f9c2:0xe5};function _0x3cc1a9(_0x144186,_0x57d5a6,_0x1adc8e,_0x2a8020){return _0x120580(_0x57d5a6- -_0x2c8936._0x15717c,_0x2a8020,_0x1adc8e-0xd7,_0x2a8020-_0x2c8936._0x19f9c2);}const _0x198375={'questionId':_0x282517,'questionCount':_0x4f66e2,'answers':_0x3206a3};return createToolOutput('User\x20responses\x20received:\x20'+JSON[_0x3cc1a9(0x3a,0x127,0x8,_0xe321e0._0x305c7e)](_0x3206a3,null,0x2),_0x198375);}function createAskUserTool(){const _0x10a26a={_0x4eccd0:0xf7,_0x5db5cf:0x360,_0x22ae9c:0x388,_0x3ee7a6:0x51a,_0x488c4a:0x42a,_0x22852f:0x282,_0x15ca7d:0x145,_0x1bc6d9:0xba,_0x29db8d:0x3e,_0xfeb276:0x10f,_0x35314a:0x39,_0x2648a2:0x75,_0x45336b:0x3d,_0xd178f:0xb1,_0x430ce3:0x61f,_0x2d47c2:0x58f,_0x5a0430:0x4f4,_0x24cefd:0x1d,_0xc48a47:0x13,_0x1389a4:0x59f,_0x584cfa:0x7b,_0x10b2f4:0x63,_0x53eecf:0x2d,_0x47797d:0x45d,_0x2a3f69:0x3a3,_0x4939b1:0x36d,_0x37a5ca:0x1f3,_0x532f07:0x26,_0x278b39:0x80},_0x34860c={_0x4704f0:0x14b,_0x299f53:0x12f,_0x249c09:0x109,_0x17bd65:0x19f,_0x46b61c:0x8e,_0x14bd50:0xc0,_0x39d27b:0x292,_0x24fdd0:0x3a8,_0x736133:0x264,_0xe3d803:0x385,_0x3cca55:0x129,_0x4c47ae:0x334,_0x2ef038:0x17d,_0x235fb5:0x1df,_0x381099:0x69,_0x3021fd:0x1c1,_0x424042:0x392,_0x4605cc:0x3b,_0x85c62e:0xa2,_0x5c57a6:0x1b7,_0x27a57a:0x73,_0x17acae:0x148,_0x5ebdac:0x48c,_0x53ce02:0x426},_0x5ce1c3={_0x440773:0xbe,_0x4683fb:0x10c},_0x20edce={_0x16349f:0x4a};function _0x1c9d24(_0x13a155,_0x58844c,_0x29c24d,_0x22c143){return _0x120580(_0x22c143- -0x107,_0x58844c,_0x29c24d-_0x20edce._0x16349f,_0x22c143-0x1df);}function _0x255e7(_0x155f73,_0x17d33e,_0x39521d,_0x55ef42){return _0x43e84c(_0x155f73-0x0,_0x39521d,_0x39521d-0x1c0,_0x17d33e- -0x412);}return defineTool({'name':_0x255e7(-0x133,-0x23,-0x112,-_0x10a26a._0x4eccd0),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':'object','properties':{'questions':{'type':_0x1c9d24(_0x10a26a._0x5db5cf,_0x10a26a._0x22ae9c,_0x10a26a._0x3ee7a6,_0x10a26a._0x488c4a),'items':{'type':_0x255e7(_0x10a26a._0x22852f,_0x10a26a._0x15ca7d,0x20,0xa1),'properties':{'question':{'type':_0x255e7(-_0x10a26a._0x1bc6d9,_0x10a26a._0x29db8d,0x160,_0x10a26a._0xfeb276)},'header':{'type':_0x255e7(-_0x10a26a._0x35314a,0x3e,_0x10a26a._0x2648a2,_0x10a26a._0x45336b)},'options':{'type':_0x255e7(0x9a,0x7b,0x13d,_0x10a26a._0xd178f),'items':{'type':_0x1c9d24(0x540,_0x10a26a._0x430ce3,_0x10a26a._0x2d47c2,_0x10a26a._0x5a0430),'properties':{'label':{'type':_0x255e7(0xbf,0x3e,_0x10a26a._0x24cefd,_0x10a26a._0xc48a47)},'description':{'type':'string'}},'required':['label',_0x1c9d24(0x52e,_0x10a26a._0x1389a4,0x509,0x4c6)]}},'multiSelect':{'type':'boolean'}},'required':[_0x255e7(-0x182,-_0x10a26a._0x584cfa,_0x10a26a._0x10b2f4,_0x10a26a._0x53eecf),_0x1c9d24(0x3ea,_0x10a26a._0x47797d,0x400,0x370),_0x1c9d24(_0x10a26a._0x2a3f69,_0x10a26a._0x4939b1,0x43d,0x413),'multiSelect']}},'answers':{'type':_0x255e7(0x27e,0x145,_0x10a26a._0x37a5ca,0x1b0),'properties':{}}},'required':[_0x255e7(-0x13e,-_0x10a26a._0x532f07,0xb4,_0x10a26a._0x278b39)]},async *'execute'(_0x4c5d35,_0x5d9d69){const _0x2b0d43={_0x4fe0ac:0x109},_0x4a1180=_0x4c5d35;validateInput(_0x4a1180);const _0x4f85f2=_0x5d9d69[_0x8b7f51(_0x34860c._0x4704f0,_0x34860c._0x299f53,_0x34860c._0x249c09,0x12d)]??createQuestionId();if(_0x4a1180[_0x268be3(_0x34860c._0x17bd65,_0x34860c._0x46b61c,0x1ce,_0x34860c._0x14bd50)]&&Object[_0x268be3(0x36b,_0x34860c._0x39d27b,0x2ff,_0x34860c._0x24fdd0)](_0x4a1180['answers'])[_0x8b7f51(_0x34860c._0x736133,_0x34860c._0xe3d803,_0x34860c._0x3cca55,_0x34860c._0x4c47ae)]>0x0)return createResult(_0x4f85f2,_0x4a1180[_0x8b7f51(_0x34860c._0x2ef038,_0x34860c._0x235fb5,_0x34860c._0x381099,0xa1)][_0x8b7f51(_0x34860c._0x736133,0x1ae,_0x34860c._0x3021fd,_0x34860c._0x424042)],_0x4a1180['answers']);function _0x8b7f51(_0x1deeaf,_0x3ef2a1,_0x3c68e0,_0x19df77){return _0x1c9d24(_0x1deeaf-0x197,_0x19df77,_0x3c68e0-_0x2b0d43._0x4fe0ac,_0x1deeaf- -0x20c);}if(!_0x5d9d69[_0x8b7f51(0x150,0x90,_0x34860c._0x4605cc,0x27e)])throw new ToolExecutionError(_0x268be3(0x1d6,0x251,_0x34860c._0x85c62e,_0x34860c._0x5c57a6));function _0x268be3(_0x4d97db,_0x594e88,_0x5c6b55,_0x5b631a){return _0x1c9d24(_0x4d97db-0x74,_0x594e88,_0x5c6b55-_0x5ce1c3._0x440773,_0x4d97db- -_0x5ce1c3._0x4683fb);}const _0x29ad81=buildQuestions(_0x4a1180),_0x4387d4=await _0x5d9d69['askUser']({'questionId':_0x4f85f2,'questions':_0x29ad81});yield createResult(_0x4f85f2,_0x4a1180[_0x8b7f51(0x17d,_0x34860c._0x27a57a,_0x34860c._0x17acae,0x2bd)][_0x268be3(0x364,_0x34860c._0x5ebdac,_0x34860c._0x53ce02,0x2a4)],_0x4387d4);}});}import{spawn as _0x5256b3}from'child_process';import{statSync}from'fs';import*as _0x14778c from'os';import*as _0x41f8f5 from'path';import{StringDecoder}from'string_decoder';function _0x120580(_0x2e2122,_0x455a8b,_0x46084c,_0x5ad719){return _0x4f9a(_0x2e2122-0x20b,_0x455a8b);}import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x575559 from'path';function isPathInside(_0x59a6eb,_0x621f69){const _0x5518d1={_0x5de2e6:0x41c,_0x597490:0x30d,_0x5627df:0x434},_0x42a316={_0x5d2056:0xb};function _0x2c21f9(_0x25cada,_0x5cb190,_0xa167d4,_0x19cd41){return _0x120580(_0xa167d4-_0x42a316._0x5d2056,_0x19cd41,_0xa167d4-0x141,_0x19cd41-0x1e9);}const _0x1fc8f8=_0x575559[_0x2c21f9(_0x5518d1._0x5de2e6,_0x5518d1._0x597490,_0x5518d1._0x5627df,0x323)](_0x59a6eb),_0x3f6853=_0x575559['relative'](_0x1fc8f8,_0x621f69);return _0x3f6853===''||!_0x3f6853['startsWith']('..')&&!_0x575559['isAbsolute'](_0x3f6853);}function resolveWorkspacePath(_0x114b58,_0xae3b41){return resolveAllowedPath(_0x114b58,[],_0xae3b41);}function resolveAllowedPath(_0x231d06,_0x23b490,_0x442457){const _0x56da54={_0x7b3b3f:0x25d,_0x31b836:0x355,_0x52ed50:0x1ce,_0x2d4a29:0x4ad,_0x25487e:0x47c,_0x195e26:0x499},_0x26353d={_0x8c5d10:0x27},_0x7d011f={_0x16aca3:0x196},_0x1cf7d6=_0x575559[_0x593d6c(0x14d,0x293,_0x56da54._0x7b3b3f,_0x56da54._0x31b836)](_0x231d06);function _0x593d6c(_0x3cd06b,_0x5d9589,_0x21638d,_0x3067d9){return _0x120580(_0x5d9589- -_0x7d011f._0x16aca3,_0x3067d9,_0x21638d-0x1d4,_0x3067d9-0x196);}const _0x2a90fe=_0x575559[_0x446d3b(0x38d,0x322,0x3ee,0x409)](_0x1cf7d6,_0x442457);function _0x446d3b(_0x4c7d5f,_0x3523ea,_0x199e08,_0x220c89){return _0x43e84c(_0x4c7d5f-0x1c6,_0x4c7d5f,_0x199e08-_0x26353d._0x8c5d10,_0x3523ea- -0x63);}const _0x2bbeb2=[_0x1cf7d6,..._0x23b490['map'](_0x487d1c=>_0x575559[_0x593d6c(0x318,0x293,0x283,0x1e9)](_0x487d1c))];if(_0x2bbeb2[_0x593d6c(0x2b3,0x2c6,_0x56da54._0x52ed50,0x241)](_0x2b1a8c=>isPathInside(_0x2b1a8c,_0x2a90fe)))return _0x2a90fe;throw new ToolExecutionError(_0x446d3b(0x3a9,_0x56da54._0x2d4a29,_0x56da54._0x25487e,_0x56da54._0x195e26)+_0x442457,{'path':_0x442457,'rootDir':_0x1cf7d6,'allowedDirs':_0x2bbeb2});}async function assertWorkspaceFile(_0x5ea781){const _0x13c4ec={_0x4909be:0x186,_0x24f019:0x20d,_0x31fb70:0x27,_0x2be8fe:0xdc,_0x2a5258:0x121},_0x4b6bf0={_0x4ad465:0x17},_0x542bc0={_0x49fbe3:0x242},_0xb9c471=await stat(_0x5ea781);function _0x2ee951(_0x10a256,_0x4f6fd8,_0x27c6b0,_0x12e58a){return _0x43e84c(_0x10a256-0x165,_0x27c6b0,_0x27c6b0-0x154,_0x10a256-_0x542bc0._0x49fbe3);}function _0x58c77b(_0x1f2f6d,_0x3e05e0,_0xe783e4,_0x325695){return _0x120580(_0x325695- -0x30a,_0xe783e4,_0xe783e4-0x12b,_0x325695-_0x4b6bf0._0x4ad465);}if(!_0xb9c471[_0x58c77b(0x282,0x1b4,_0x13c4ec._0x4909be,_0x13c4ec._0x24f019)]())throw new ToolExecutionError(_0x58c77b(_0x13c4ec._0x31fb70,0x15c,_0x13c4ec._0x2be8fe,_0x13c4ec._0x2a5258)+_0x5ea781,{'path':_0x5ea781});}function isProbablyBinary(_0x22cfd9){return _0x22cfd9['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x43e84c(0x34f,0x31b,0x2fb,0x3df),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x533bf6){return _0x533bf6 instanceof Error;}function shellExists(_0x255028){const _0x5c569b={_0x5166c3:0x564,_0x21d255:0x4c2,_0x2bae81:0x4e1,_0x2a626a:0x48f},_0x38d94b={_0x5179c3:0x55,_0x58c7a8:0x1b3,_0x946de9:0xe},_0x22cfb={_0x2c20f4:0x1b3};function _0x5c83d7(_0x2f7a3f,_0x74d514,_0x40215f,_0x217732){return _0x43e84c(_0x2f7a3f-0xf6,_0x74d514,_0x40215f-_0x22cfb._0x2c20f4,_0x40215f- -0x3b9);}function _0x4d4c05(_0x9566dd,_0x40e674,_0x26c937,_0x256944){return _0x120580(_0x256944- -_0x38d94b._0x5179c3,_0x9566dd,_0x26c937-_0x38d94b._0x58c7a8,_0x256944-_0x38d94b._0x946de9);}try{const _0xb820d0=statSync(_0x255028);return _0xb820d0[_0x4d4c05(0x404,_0x5c569b._0x5166c3,0x5c2,_0x5c569b._0x21d255)]()&&(_0xb820d0[_0x4d4c05(0x501,_0x5c569b._0x2bae81,0x49e,_0x5c569b._0x2a626a)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x3be417){const _0x124254={_0x4e9d16:0x4a3,_0x2cd2d4:0x685,_0x54e488:0x778,_0x442461:0x6c2,_0x409dd1:0x57b,_0xc3d0ea:0x3d8,_0x3404fb:0x51f,_0x21752f:0x795,_0x1b654c:0x58b,_0x259bf2:0x681,_0x1d18c3:0x631,_0x299721:0x4f0,_0x1eb4f5:0x51b,_0x70aa64:0x629,_0x584fc7:0x50b,_0x49f277:0x3eb,_0x1bd700:0x3f0,_0x5721d8:0x315,_0x5015a3:0x5ea,_0x70948d:0x550,_0x4403d5:0x4e4},_0x144ae7={_0x1b1b3f:0x1c7},_0x2ef84a={_0x2fb9ab:0x2};if(_0x3be417)return _0x3be417;if(_0x14778c[_0x246e7b(0x550,0x410,_0x124254._0x4e9d16,0x433)]()===_0x246e7b(_0x124254._0x2cd2d4,_0x124254._0x54e488,_0x124254._0x442461,0x744))return process[_0x246e7b(0x640,0x6b4,_0x124254._0x409dd1,0x4b1)][_0x2ffa5e(0x4dd,_0x124254._0xc3d0ea,0x4d3,_0x124254._0x3404fb)]||_0x246e7b(_0x124254._0x21752f,_0x124254._0x1b654c,0x661,_0x124254._0x259bf2);const _0x2b5316=[_0x246e7b(0x5cc,0x72e,_0x124254._0x1d18c3,_0x124254._0x299721),_0x2ffa5e(0x5c4,0x5a7,_0x124254._0x1eb4f5,0x5dd),_0x246e7b(_0x124254._0x70aa64,0x625,_0x124254._0x584fc7,_0x124254._0x49f277),'/usr/bin/sh'];function _0x2ffa5e(_0x273b0d,_0x504c3d,_0x73fd,_0x295580){return _0x120580(_0x273b0d-_0x2ef84a._0x2fb9ab,_0x73fd,_0x73fd-0x11d,_0x295580-0x18f);}for(const _0x487f15 of _0x2b5316){if(shellExists(_0x487f15))return _0x487f15;}function _0x246e7b(_0x5b2a4b,_0x156612,_0x23e5aa,_0x2de6e5){return _0x43e84c(_0x5b2a4b-_0x144ae7._0x1b1b3f,_0x156612,_0x23e5aa-0x1c5,_0x23e5aa-0x145);}const _0x52ab17=process['env'][_0x2ffa5e(_0x124254._0x1bd700,_0x124254._0x5721d8,0x400,0x4d8)];if(_0x52ab17&&shellExists(_0x52ab17))return _0x52ab17;return _0x2ffa5e(0x592,_0x124254._0x5015a3,_0x124254._0x70948d,_0x124254._0x4403d5);}function buildShellArgs(_0x21ffd2,_0x25e67c){const _0x4fca1b={_0x48a9c7:0x496,_0x4d0475:0x539,_0x18baf6:0x5a7,_0x2ca0bf:0x23c,_0x5b3a04:0x1f0,_0x13f00c:0x3cc,_0xedb483:0x568,_0x1c37ea:0x643,_0x91d756:0x519,_0x5aa726:0x5be,_0x49cf03:0x70,_0x126b0a:0x8d,_0x3d6347:0x23e},_0x21d870={_0x5db8ad:0x1e4,_0x28a2eb:0x138},_0x487307={_0x15d403:0x6e,_0x20a160:0x34b};function _0x2d9e99(_0xcf9125,_0x2acadf,_0x4bd0a6,_0xe5c2d7){return _0x43e84c(_0xcf9125-0x81,_0x2acadf,_0x4bd0a6-_0x487307._0x15d403,_0xe5c2d7- -_0x487307._0x20a160);}if(_0x14778c[_0x586cb7(_0x4fca1b._0x48a9c7,_0x4fca1b._0x4d0475,0x3d2,_0x4fca1b._0x18baf6)]()===_0x2d9e99(_0x4fca1b._0x2ca0bf,_0x4fca1b._0x5b3a04,0x351,0x232)){const _0x1e8b38=/cmd(\.exe)?$/i[_0x586cb7(0x438,_0x4fca1b._0x13f00c,0x4f5,0x367)](_0x25e67c);return _0x1e8b38?['/d','/s','/c',_0x21ffd2]:[_0x586cb7(_0x4fca1b._0xedb483,_0x4fca1b._0x1c37ea,0x5d0,_0x4fca1b._0x91d756),_0x586cb7(0x698,0x71d,_0x4fca1b._0x5aa726,0x65f),_0x2d9e99(_0x4fca1b._0x49cf03,_0x4fca1b._0x126b0a,_0x4fca1b._0x3d6347,0x10a),_0x21ffd2];}function _0x586cb7(_0x49c694,_0x17ec81,_0x6da777,_0x41e3ea){return _0x43e84c(_0x49c694-0xbc,_0x41e3ea,_0x6da777-_0x21d870._0x5db8ad,_0x49c694-_0x21d870._0x28a2eb);}return['-c',_0x21ffd2];}function resolveCarriageReturns(_0x4dcedf){const _0xccdb8e={_0x38ee3d:0x53b,_0x498272:0x4c1,_0x4cb354:0x498,_0x4b982b:0x50e,_0x127384:0x3c6},_0xddc85d={_0x10008e:0x437,_0x5d2d14:0x5f5,_0x490e34:0x54c,_0x5110da:0x374,_0x552a46:0x351,_0x26a1d7:0x272},_0x129cbe={_0x245ce9:0x1ae,_0x1cbfeb:0x15d},_0x17ee99={_0x87a6e6:0x65,_0x230678:0x12e,_0xb95411:0xc4},_0x4bd763={_0x5195aa:0x418,_0x28a335:0x13c},_0x172a18={_0x1e572f:0x11e,_0x4d3bf2:0x117,_0x4aeace:0x9b};function _0x4d8658(_0x39b837,_0x44825d,_0x13c540,_0x484cbb){return _0x43e84c(_0x39b837-_0x172a18._0x1e572f,_0x39b837,_0x13c540-_0x172a18._0x4d3bf2,_0x484cbb- -_0x172a18._0x4aeace);}function _0x144d00(_0x297d5c,_0x5483ff,_0x30c44c,_0x41b0d0){return _0x120580(_0x41b0d0- -_0x4bd763._0x5195aa,_0x5483ff,_0x30c44c-0x180,_0x41b0d0-_0x4bd763._0x28a335);}return _0x4dcedf[_0x4d8658(_0xccdb8e._0x38ee3d,0x400,_0xccdb8e._0x498272,_0xccdb8e._0x4cb354)]('\x0a')['map'](_0x3f46dc=>{if(!_0x3f46dc[_0x5e0964(0x490,0x39e,0x3b9,_0xddc85d._0x10008e)]('\x0d'))return _0x3f46dc;function _0x22260f(_0x4f045a,_0x4f8861,_0x55ded4,_0x4a2b52){return _0x4d8658(_0x4f8861,_0x4f8861-_0x17ee99._0x87a6e6,_0x55ded4-_0x17ee99._0x230678,_0x4f045a- -_0x17ee99._0xb95411);}function _0x5e0964(_0x2662f3,_0x21fe54,_0x18b0e9,_0x255a4e){return _0x4d8658(_0x255a4e,_0x21fe54-_0x129cbe._0x245ce9,_0x18b0e9-0x29,_0x2662f3-_0x129cbe._0x1cbfeb);}const _0x39a8de=_0x3f46dc[_0x5e0964(_0xddc85d._0x5d2d14,0x4cf,_0xddc85d._0x490e34,0x508)]('\x0d');return _0x39a8de[_0x39a8de[_0x22260f(_0xddc85d._0x5110da,_0xddc85d._0x552a46,_0xddc85d._0x26a1d7,0x2a9)]-0x1]??'';})[_0x4d8658(0x33e,_0xccdb8e._0x4b982b,_0xccdb8e._0x127384,0x3dc)]('\x0a');}function resolveBackspaces(_0x39d3dd){const _0x3f3928={_0x212ba3:0x1c5,_0x25bf0c:0x92,_0x5ddf51:0x467,_0x269d14:0x513},_0x27e0a6={_0x358250:0x156,_0x4e2d38:0x3ec},_0x4d9578={_0x17fc29:0x2c,_0x38e65:0x12e},_0x4df6a8=[];for(const _0x54bf5c of Array[_0x2af44f(-_0x3f3928._0x212ba3,-_0x3f3928._0x25bf0c,-0xc1,-0x86)](_0x39d3dd)){_0x54bf5c==='\x08'?_0x4df6a8[_0x30e581(_0x3f3928._0x5ddf51,0x434,0x500,_0x3f3928._0x269d14)]():_0x4df6a8['push'](_0x54bf5c);}function _0x30e581(_0x4886de,_0x1ed812,_0x248dfa,_0x47f39d){return _0x43e84c(_0x4886de-0x183,_0x4886de,_0x248dfa-_0x4d9578._0x17fc29,_0x1ed812- -_0x4d9578._0x38e65);}function _0x2af44f(_0x51bb2f,_0x324d09,_0x5c5ed0,_0x4a3bdd){return _0x43e84c(_0x51bb2f-0x162,_0x51bb2f,_0x5c5ed0-_0x27e0a6._0x358250,_0x4a3bdd- -_0x27e0a6._0x4e2d38);}return _0x4df6a8['join']('');}function stripAnsiAndControls(_0x5cfbb8){const _0x341a2d={_0x289cff:0x3fd,_0x2b3cf4:0x307,_0x326dac:0x2b8,_0x1a5f75:0x426,_0x3f64af:0x342,_0x5b4b55:0x3a9,_0x262d38:0x3ae,_0xb94987:0x479,_0x1bb6e4:0x536,_0x47fc70:0x3fd,_0x5b3021:0x462,_0x581e5e:0x3b5,_0xa47ca8:0x43a,_0x4131c7:0x3fd,_0x49800a:0x536,_0xd610bd:0x3d8,_0x4a7741:0x42d,_0x384165:0x521,_0x285dc9:0x3c1,_0x132f6d:0x563,_0x45f655:0x42d},_0x496c6a={_0x32431c:0x4b,_0x26df10:0x15f,_0x131acd:0x180},_0x295675={_0x4386f5:0x7f};_0x5cfbb8=resolveCarriageReturns(_0x5cfbb8),_0x5cfbb8=resolveBackspaces(_0x5cfbb8);function _0x9cc3ec(_0x25bffd,_0x5dada3,_0x31af75,_0x4833a9){return _0x43e84c(_0x25bffd-0x114,_0x31af75,_0x31af75-_0x295675._0x4386f5,_0x25bffd-0x29);}_0x5cfbb8=stripVTControlCharacters(_0x5cfbb8);function _0x31685d(_0x3a290e,_0x3001f0,_0x536ece,_0x41e007){return _0x120580(_0x3001f0- -_0x496c6a._0x32431c,_0x3a290e,_0x536ece-_0x496c6a._0x26df10,_0x41e007-_0x496c6a._0x131acd);}const _0xf29b56='\x1b',_0x7754e0='\x07';return _0x5cfbb8=_0x5cfbb8[_0x9cc3ec(_0x341a2d._0x289cff,0x494,_0x341a2d._0x2b3cf4,_0x341a2d._0x326dac)](new RegExp(_0x9cc3ec(_0x341a2d._0x1a5f75,0x328,_0x341a2d._0x3f64af,0x53a)+_0x7754e0+_0x9cc3ec(_0x341a2d._0x5b4b55,_0x341a2d._0x262d38,0x2b9,_0x341a2d._0xb94987)+_0x7754e0,'g'),''),_0x5cfbb8=_0x5cfbb8['replace'](new RegExp(';[^\x5cn]*?'+_0xf29b56+'\x5c\x5c','g'),''),_0x5cfbb8=_0x5cfbb8['replace'](new RegExp(_0x7754e0,'g'),''),_0x5cfbb8=_0x5cfbb8['replace'](new RegExp(_0xf29b56+_0x9cc3ec(0x57e,0x53c,0x533,_0x341a2d._0x1bb6e4)+_0xf29b56+'\x5c\x5c','g'),''),_0x5cfbb8=_0x5cfbb8[_0x9cc3ec(_0x341a2d._0x47fc70,0x38e,_0x341a2d._0x5b3021,0x453)](new RegExp(_0xf29b56+_0x9cc3ec(0x412,_0x341a2d._0x581e5e,_0x341a2d._0xa47ca8,0x3a8),'g'),''),_0x5cfbb8=_0x5cfbb8[_0x9cc3ec(_0x341a2d._0x4131c7,_0x341a2d._0x49800a,0x533,0x3d4)](/[\u0080-\u009F]/g,''),_0x5cfbb8=_0x5cfbb8[_0x31685d(_0x341a2d._0xd610bd,_0x341a2d._0x4a7741,_0x341a2d._0x384165,_0x341a2d._0x285dc9)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x5cfbb8=_0x5cfbb8[_0x31685d(_0x341a2d._0x132f6d,_0x341a2d._0x45f655,0x421,0x4d8)](/[\u23CE\u2424]/g,''),_0x5cfbb8;}function resolveWorkingDirectory(_0x53122a,_0x84b0f1,_0x487540){const _0x1d28b7={_0x142a3e:0xd6,_0xa2f821:0x289,_0x1b1f0c:0x196,_0x1626d1:0xa9,_0x4e595:0x1b4},_0x2e7b41={_0x1588a4:0x172,_0x57b416:0x1ad};function _0x40f2b9(_0x30b41a,_0x4ae7a1,_0x4071c9,_0x32bf0c){return _0x43e84c(_0x30b41a-0x15,_0x4ae7a1,_0x4071c9-_0x2e7b41._0x1588a4,_0x30b41a- -_0x2e7b41._0x57b416);}const _0x2e24f4=resolveAllowedPath(_0x84b0f1,_0x487540,_0x53122a??'.');function _0x451dd4(_0x45118a,_0x165eef,_0x5f1f61,_0x40fdcb){return _0x120580(_0x165eef- -0x2b9,_0x5f1f61,_0x5f1f61-0xc4,_0x40fdcb-0x187);}try{const _0x498e2d=statSync(_0x2e24f4);if(!_0x498e2d[_0x451dd4(_0x1d28b7._0x142a3e,0x193,_0x1d28b7._0xa2f821,0x2af)]())throw new ToolExecutionError(_0x40f2b9(0x24b,0x2ee,0x1e8,0x18b)+_0x2e24f4,{'cwd':_0x2e24f4});return _0x2e24f4;}catch(_0x965cb9){if(_0x965cb9 instanceof ToolExecutionError)throw _0x965cb9;throw new ToolExecutionError(_0x40f2b9(_0x1d28b7._0x1b1f0c,_0x1d28b7._0x1626d1,_0x1d28b7._0x4e595,0x1f1)+_0x2e24f4,{'cwd':_0x2e24f4});}}function killProcessGroup(_0x2bab7c,_0xc8b83e,_0x283f0c=_0x43e84c(0x4f2,0x51d,0x3a7,0x491)){const _0x57524f={_0x4d5288:0x43a,_0x24f7b9:0x4b9,_0x4e4a99:0x213,_0x3152c0:0x119,_0xb00f2f:0xe2,_0x3adc95:0x396,_0x372dd8:0x41a,_0x4d75a1:0x3ed,_0x3c8dc8:0x326,_0x26a226:0x60,_0x244467:0x1,_0x3a36c6:0xaa,_0x401d52:0x62d,_0x4c036d:0x63a,_0x1609b3:0xb,_0x2ce70c:0xb9},_0x3055f2={_0x2fac18:0x6f,_0xf1b36b:0x75},_0x1d8cde={_0x59c675:0x119};function _0x1da6ef(_0x129e50,_0x4dda02,_0x18aabf,_0x6cc814){return _0x120580(_0x18aabf- -0x490,_0x129e50,_0x18aabf-0x157,_0x6cc814-_0x1d8cde._0x59c675);}if(!_0x2bab7c[_0x1989d7(0x5d6,0x57c,_0x57524f._0x4d5288,_0x57524f._0x24f7b9)])return;function _0x1989d7(_0x5324f5,_0x3d2238,_0x285e61,_0x4c5cdf){return _0x43e84c(_0x5324f5-_0x3055f2._0x2fac18,_0x4c5cdf,_0x285e61-0x105,_0x3d2238-_0x3055f2._0xf1b36b);}if(_0xc8b83e)try{_0x5256b3(_0x1da6ef(_0x57524f._0x4e4a99,0x97,_0x57524f._0x3152c0,_0x57524f._0xb00f2f),[_0x1989d7(0x55c,0x460,_0x57524f._0x3adc95,0x560),_0x2bab7c['pid']['toString'](),'/T','/F'],{'stdio':_0x1989d7(_0x57524f._0x372dd8,_0x57524f._0x4d75a1,_0x57524f._0x3c8dc8,0x2e6)});return;}catch{_0x2bab7c['kill'](_0x283f0c);return;}try{process[_0x1da6ef(-0x107,-_0x57524f._0x26a226,_0x57524f._0x244467,-_0x57524f._0x3a36c6)](-_0x2bab7c[_0x1989d7(_0x57524f._0x401d52,0x57c,_0x57524f._0x4c036d,0x567)],_0x283f0c);}catch{_0x2bab7c[_0x1da6ef(0xf0,-_0x57524f._0x1609b3,_0x57524f._0x244467,-_0x57524f._0x2ce70c)](_0x283f0c);}}function appendChunk(_0x54117c,_0x1513d4,_0x3d0090,_0x1064ad,_0x2ed5b4){const _0x5b52d9={_0xef8616:0x58c,_0x219508:0x545},_0x5ac96f={_0x917143:0xef};function _0x5689b7(_0x4bb733,_0x4d9b17,_0x34317a,_0x56f4da){return _0x43e84c(_0x4bb733-0x126,_0x4bb733,_0x34317a-_0x5ac96f._0x917143,_0x34317a-0x72);}const _0x3f92ba=_0x1064ad?stripAnsiAndControls(_0x3d0090):_0x3d0090;if(_0x3f92ba[_0x5689b7(_0x5b52d9._0xef8616,0x4d0,_0x5b52d9._0x219508,0x591)]===0x0)return;_0x54117c['push'](_0x3f92ba),_0x1513d4['push'](_0x3f92ba),_0x2ed5b4();}function createBashTool(_0x2ae2ed={}){const _0x4bb75c={_0x500d2e:0x521,_0x90e4bf:0x404,_0x56a0c4:0x401,_0x448592:0x34a,_0x5a86bd:0x3e3,_0x5611cb:0x25a,_0x5c4685:0x354,_0x101795:0x245,_0x266141:0x250,_0x4ccdfc:0x249,_0x514289:0x6f0,_0x28cc1e:0x6e5,_0x20d529:0x5c3,_0x348028:0x6ca,_0xc495f8:0x564,_0x5b2bfd:0x602,_0x19b36b:0x71c,_0x3d003b:0x448,_0x7900d7:0x5a0,_0x443d0d:0x4f9,_0x3de93e:0x492,_0x10a4af:0x577,_0x57fcee:0x5ec,_0x164b37:0x4b5,_0x34f0c1:0x4c6,_0x94825b:0x253,_0x4e435a:0x679,_0xfcdf90:0x636},_0xba485d={_0x4ff7f1:0x58e,_0x29ea9f:0x598,_0x44657f:0x2be,_0x34106c:0x4cc,_0x23f7d0:0x3a0,_0x1f4c55:0x3c2,_0x520384:0x3f0,_0x4fb942:0x3bb,_0xfc2ffb:0x31c,_0x3c707f:0x545,_0x78aa69:0x399,_0x13701b:0x134,_0x296088:0x8,_0x513241:0x1c8,_0xff8233:0x26c,_0x551f05:0x25a,_0x344202:0x20d,_0x5fcf8c:0x46,_0x54b856:0x483,_0x2f2ddb:0x50d,_0x465873:0x2ff,_0x1d3e4c:0x330,_0x2ca667:0xf3,_0x5d70f8:0x223,_0x2c3d37:0xd6,_0x337723:0x520,_0x11edc1:0x453,_0x382141:0x544,_0x138404:0x45a,_0x586d8e:0x59b,_0x54a70a:0x4b2,_0x5baf43:0x63b,_0x17f519:0x537,_0x4b4943:0x363,_0x303bd8:0x1fe,_0x2de34e:0x172,_0x12999a:0x1da,_0x177225:0x4f8,_0x362d65:0x4cc,_0x56a346:0x413,_0x164d37:0x5df,_0x4298a5:0x2d1,_0x7435a3:0x1aa,_0x5b2150:0x266,_0x4c0444:0x101,_0x13c8ba:0x18b,_0x5d48ba:0x260,_0x1e9f10:0xef,_0x73922a:0x493,_0x15611a:0x86,_0x1c47c5:0xb,_0x309914:0x86,_0xadcdd9:0x493,_0x55c08c:0x370,_0x38fd31:0x52a,_0x4a0768:0x6b6,_0x3e2f2a:0x477,_0x51a859:0x49f,_0x5b9be5:0x517,_0x69e421:0x5a4,_0xfd6b37:0xc7,_0x8848f:0xa4,_0x39abf5:0xed,_0x383465:0x56b,_0x13bc9c:0x626,_0x55cd26:0x4cc,_0x16dff2:0x5f5,_0x82f387:0x3fd,_0x2281b8:0x203,_0x57325e:0x14a,_0x4282a8:0x1a5,_0x526230:0x56f,_0x1fa897:0x631,_0x64bbd2:0x1e8,_0x4c29ee:0xd3,_0x1ff20c:0x10f,_0x2ff7f9:0x491,_0x4fc030:0x492,_0x4a77ed:0x3dc,_0x527213:0x325,_0x38633f:0x1fa,_0x50b2a0:0x21,_0x37d4a9:0x71,_0x5aab2d:0x9b,_0x24265b:0x596,_0x4d762f:0x694,_0x2d385d:0x640,_0xf6663f:0x5b7,_0xd061a2:0x18c,_0x5f4769:0x3fe,_0x2342ba:0x18b,_0x51b18d:0xdf,_0x1b7753:0xc4,_0x40d30c:0x3ff,_0x5ea46a:0x4c2,_0x3107d8:0x2e6,_0x46ec3d:0x408,_0x31804b:0x58f,_0x2c0596:0x41e,_0x4d6427:0x2f9,_0x39565b:0xc9,_0x1750ce:0xba,_0x52de5f:0x57c},_0x3d9cc8={_0x27d6d6:0x293,_0x3bcfce:0xb6,_0xfb0a72:0x103,_0x3754d8:0x2c2,_0x1a6d65:0xf0},_0x2684e0={_0x579fda:0x35d,_0x10f6a5:0x35c},_0x251937={_0x409cec:0x1db},_0x1731a8={_0x51baa9:0x33e,_0x424da6:0x270,_0x2f899d:0x145},_0x232184={_0x4785d1:0x1a6,_0x515cb8:0x22,_0x56ef01:0x25e},_0x529a63={_0x4c9feb:0x1ea,_0x166d63:0x34a,_0x4edc33:0x183,_0x2939da:0x270},_0x5e1bc2={_0x28c0c4:0x8e},_0x5666ab={_0xe700ce:0x31},_0xcca8e=_0x41f8f5[_0x589408(0x3f1,0x64c,_0x4bb75c._0x500d2e,_0x4bb75c._0x90e4bf)](_0x2ae2ed[_0x41d0c5(_0x4bb75c._0x56a0c4,_0x4bb75c._0x448592,0x3a2,_0x4bb75c._0x5a86bd)]??process[_0x41d0c5(_0x4bb75c._0x5611cb,0x1e9,0x2b6,_0x4bb75c._0x5c4685)]()),_0x32cb3f=(_0x2ae2ed[_0x41d0c5(0x1b7,_0x4bb75c._0x101795,_0x4bb75c._0x266141,_0x4bb75c._0x4ccdfc)]??[])[_0x589408(_0x4bb75c._0x514289,0x813,_0x4bb75c._0x28cc1e,_0x4bb75c._0x20d529)](_0x37cc9d=>_0x41f8f5[_0x41d0c5(0x36a,0x2f3,0x2c0,0x29a)](_0x37cc9d)),_0x1b5a1e=_0x2ae2ed[_0x589408(_0x4bb75c._0x348028,0x60a,0x718,0x6bb)]??DEFAULT_TIMEOUT_MS;function _0x589408(_0x45f1e9,_0x45ab50,_0x542aa4,_0x413d58){return _0x120580(_0x542aa4-0xf8,_0x45ab50,_0x542aa4-0x1da,_0x413d58-_0x5666ab._0xe700ce);}const _0x5987d4=_0x2ae2ed[_0x589408(_0x4bb75c._0xc495f8,0x708,0x5c7,0x5a7)]??!![],_0x22003a=_0x2ae2ed['name']??_0x589408(_0x4bb75c._0x5b2bfd,0x6b5,_0x4bb75c._0x19b36b,0x5db);function _0x41d0c5(_0x5c0266,_0x3fb7dc,_0x3a59b4,_0x4f2250){return _0x43e84c(_0x5c0266-_0x5e1bc2._0x28c0c4,_0x4f2250,_0x3a59b4-0x1ab,_0x3a59b4- -0xc5);}return defineTool({'name':_0x22003a,'description':_0x2ae2ed[_0x41d0c5(_0x4bb75c._0x3d003b,0x39c,0x464,_0x4bb75c._0x7900d7)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x41d0c5(0x5bb,_0x4bb75c._0x443d0d,_0x4bb75c._0x3de93e,0x367),'properties':{'command':{'type':_0x589408(0x55e,_0x4bb75c._0x10a4af,_0x4bb75c._0x57fcee,_0x4bb75c._0x164b37)},'cwd':{'type':_0x41d0c5(_0x4bb75c._0x34f0c1,0x386,0x38b,_0x4bb75c._0x94825b)},'timeoutMs':{'type':_0x589408(0x75c,_0x4bb75c._0x4e435a,0x6aa,_0x4bb75c._0xfcdf90)},'ignoreOutput':{'type':'boolean'}},'required':['command']},async *'execute'(_0x19a98f,_0x162d3d){const _0x7f076a={_0x5c023c:0x30,_0x5a2611:0x3a,_0x4fbb7:0x295,_0x181948:0x1a9},_0x54aa37={_0x57b650:0x22f,_0x504a7f:0x14a,_0xc3d6e4:0x15d},_0xd6c5af={_0x44bd65:0xc},_0x2df6fd={_0x4a4138:0x1f6,_0x1725bd:0x7d},_0x523df1={_0x281b0a:0x67b,_0x3f0679:0x50f,_0x9c897:0x51a},_0x2d75d8={_0x1d10a6:0x1b2,_0x52840c:0x189,_0x54625f:0xe9},_0x301cef={_0x519359:0xc0,_0x597f7c:0x63},_0x17e1dc=_0x19a98f[_0x126674(_0xba485d._0x4ff7f1,0x68b,_0xba485d._0x29ea9f,0x516)]??_0x1b5a1e;if(!Number[_0x1957d6(0x1f4,0xee,_0xba485d._0x44657f,0x220)](_0x17e1dc)||_0x17e1dc<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x19a98f[_0x126674(_0xba485d._0x34106c,_0xba485d._0x23f7d0,_0xba485d._0x1f4c55,0x49d)]});throwIfAborted(_0x162d3d['signal']);const _0x191f8f=resolveWorkingDirectory(_0x19a98f[_0x126674(_0xba485d._0x520384,_0xba485d._0x4fb942,_0xba485d._0xfc2ffb,0x2b8)],_0xcca8e,_0x32cb3f),_0x4a1cd8=_0x19a98f['ignoreOutput']??![],_0x7842d=resolveDefaultShell(_0x2ae2ed[_0x126674(0x479,0x575,_0xba485d._0x3c707f,_0xba485d._0x78aa69)]),_0x409a9b=buildShellArgs(_0x19a98f[_0x1957d6(_0xba485d._0x13701b,_0xba485d._0x296088,_0xba485d._0x513241,_0xba485d._0xff8233)],_0x7842d),_0x54ac59=_0x14778c['platform']()===_0x1957d6(_0xba485d._0x551f05,0x27b,_0xba485d._0x344202,0x33b);let _0xd55aef;try{_0xd55aef=_0x5256b3(_0x7842d,_0x409a9b,{'cwd':_0x191f8f,'env':{...process[_0x1957d6(0x113,-0x18,0x1f1,_0xba485d._0x5fcf8c)],..._0x2ae2ed['env']??{}},'stdio':_0x4a1cd8?[_0x126674(0x3ed,0x507,0x30d,_0xba485d._0x54b856),_0x126674(0x3ed,0x351,0x506,_0xba485d._0x2f2ddb),_0x126674(0x3ed,0x450,_0xba485d._0x465873,_0xba485d._0x1d3e4c)]:[_0x1957d6(0x55,_0xba485d._0x2ca667,-0xe2,0x65),_0x1957d6(0x188,0x1b8,_0xba485d._0x5d70f8,_0xba485d._0x2c3d37),_0x126674(_0xba485d._0x337723,_0xba485d._0x11edc1,_0xba485d._0x382141,_0xba485d._0x138404)],'shell':![],'windowsHide':!![],'detached':!_0x54ac59});}catch(_0x24b9d2){if(isErrnoException(_0x24b9d2)&&_0x24b9d2[_0x126674(_0xba485d._0x586d8e,_0xba485d._0x54a70a,_0xba485d._0x5baf43,_0xba485d._0x17f519)]===_0x126674(0x377,_0xba485d._0x4b4943,0x313,0x3d5))throw new ToolExecutionError(_0x1957d6(_0xba485d._0x303bd8,0x23f,_0xba485d._0x2de34e,_0xba485d._0x12999a)+_0x7842d,{'command':_0x19a98f['command'],'cwd':_0x191f8f,'shellPath':_0x7842d});throw new ToolExecutionError(_0x24b9d2 instanceof Error?_0x24b9d2[_0x126674(_0xba485d._0x177225,0x51d,0x42f,0x45c)]:String(_0x24b9d2),{'command':_0x19a98f[_0x126674(_0xba485d._0x362d65,_0xba485d._0x56a346,0x46d,_0xba485d._0x164d37)],'cwd':_0x191f8f,'shellPath':_0x7842d});}const _0x54fd2c=[],_0x110b74=[],_0x4606e6=new StringDecoder(_0x1957d6(0x1aa,0x79,_0xba485d._0x4298a5,0x2b8)),_0x3353f7=new StringDecoder(_0x1957d6(_0xba485d._0x7435a3,_0xba485d._0x5b2150,0x190,_0xba485d._0x4c0444));let _0x416637,_0x598333=![],_0x4da15d;const _0x324797=()=>{if(!_0x416637)return;const _0x4c0675=_0x416637;_0x416637=void 0x0,_0x4c0675();},_0x5d85a0=async()=>{function _0x4ddc35(_0x367af6,_0x305104,_0x159d69,_0x30980c){return _0x1957d6(_0x30980c-_0x301cef._0x519359,_0x159d69,_0x159d69-0x19c,_0x30980c-_0x301cef._0x597f7c);}if(_0x110b74[_0x4ddc35(_0x529a63._0x4c9feb,_0x529a63._0x166d63,_0x529a63._0x4edc33,_0x529a63._0x2939da)]>0x0||_0x598333)return;await new Promise(_0x574ec3=>{_0x416637=_0x574ec3;});};function _0x1957d6(_0x3d6a13,_0x1f4ca8,_0x322fcf,_0x779fbd){return _0x41d0c5(_0x3d6a13-_0x232184._0x4785d1,_0x1f4ca8-_0x232184._0x515cb8,_0x3d6a13- -_0x232184._0x56ef01,_0x1f4ca8);}const _0x2742a9=_0x4aa30e=>{function _0x51aa9c(_0x19ea8c,_0x465ec8,_0x38604e,_0x3eac91){return _0x126674(_0x19ea8c-_0x2d75d8._0x1d10a6,_0x38604e,_0x38604e-_0x2d75d8._0x52840c,_0x3eac91-_0x2d75d8._0x54625f);}appendChunk(_0x54fd2c,_0x110b74,_0x4606e6[_0x51aa9c(0x5d3,_0x523df1._0x281b0a,_0x523df1._0x3f0679,_0x523df1._0x9c897)](_0x4aa30e),_0x5987d4,_0x324797);},_0x3d09a2=_0x28776a=>{function _0x316b5a(_0x3b621a,_0x178ad8,_0x50cf9b,_0x8df927){return _0x126674(_0x8df927- -_0x2df6fd._0x4a4138,_0x178ad8,_0x50cf9b-_0x2df6fd._0x1725bd,_0x8df927-0xd9);}appendChunk(_0x54fd2c,_0x110b74,_0x3353f7[_0x316b5a(_0x1731a8._0x51baa9,_0x1731a8._0x424da6,_0x1731a8._0x2f899d,0x22b)](_0x28776a),_0x5987d4,_0x324797);};_0xd55aef[_0x1957d6(_0xba485d._0x13c8ba,_0xba485d._0x5d48ba,0x217,_0xba485d._0x1e9f10)]?.['on'](_0x126674(_0xba485d._0x73922a,0x3df,0x51a,0x401),_0x2742a9),_0xd55aef[_0x1957d6(_0xba485d._0x15611a,0x142,-_0xba485d._0x1c47c5,-_0xba485d._0x309914)]?.['on'](_0x126674(_0xba485d._0xadcdd9,_0xba485d._0x55c08c,0x5c9,_0xba485d._0x38fd31),_0x3d09a2);let _0x56c87c=![],_0x57243d;function _0x126674(_0x34aeb8,_0x362f36,_0x9b76f5,_0x18e3ab){return _0x41d0c5(_0x34aeb8-_0x251937._0x409cec,_0x362f36-0x6f,_0x34aeb8-0x13a,_0x362f36);}const _0xa19436=addAbortListener(_0x162d3d[_0x126674(0x5fc,0x737,_0xba485d._0x4a0768,0x6e0)],()=>{_0x4da15d=toAbortError(_0x162d3d[_0x1a2566(0x285,0x35e,_0x2684e0._0x579fda,_0x2684e0._0x10f6a5)]['reason']),_0x598333=!![];function _0x1a2566(_0x217e14,_0x5bd50e,_0x3eddc9,_0x11dd08){return _0x126674(_0x217e14- -0x377,_0x5bd50e,_0x3eddc9-_0xd6c5af._0x44bd65,_0x11dd08-0x82);}_0x324797();try{killProcessGroup(_0xd55aef,_0x54ac59);}catch{}});try{const _0x1e8ccb=new Promise((_0x5234b5,_0x3762ab)=>{const _0x2c1166={_0x1f1f9e:0x147},_0x53262d={_0xe6285b:0x225,_0x2f2911:0x2c6,_0x3492ad:0x3d7,_0x2fc08d:0x436,_0x21f8f0:0x53a,_0x34fe06:0x37f,_0x4aaf6b:0x4e4,_0x484567:0x519,_0x18e173:0x4d1,_0x30aac1:0x3a3},_0x2e2886={_0x34be5f:0x1d3},_0x1cce94=()=>{function _0x275763(_0xd5042a,_0x23c569,_0x354b4d,_0x46248d){return _0x4f9a(_0xd5042a-0xaf,_0x46248d);}function _0x73168c(_0x38bc8e,_0x46958c,_0x58909f,_0x5231ec){return _0x4f9a(_0x46958c-_0x2e2886._0x34be5f,_0x58909f);}_0x57243d&&(clearTimeout(_0x57243d),_0x57243d=void 0x0),_0xd55aef[_0x275763(0x2d2,_0x53262d._0xe6285b,_0x53262d._0x2f2911,_0x53262d._0x3492ad)](_0x73168c(0x471,_0x53262d._0x2fc08d,_0x53262d._0x21f8f0,_0x53262d._0x34fe06),_0xeeaf5f),_0xd55aef[_0x73168c(_0x53262d._0x4aaf6b,0x3f6,_0x53262d._0x484567,_0x53262d._0x18e173)](_0x73168c(0x43a,0x437,_0x53262d._0x30aac1,0x353),_0x4aeb98);},_0xeeaf5f=_0x197c96=>{_0x598333=!![],_0x324797(),_0x1cce94(),_0x3762ab(_0x4da15d??_0x197c96);},_0x4aeb98=(_0x4bffe6,_0x3bf1ef)=>{function _0x9f253a(_0x1587da,_0x4ae289,_0x28b857,_0x3683e3){return _0x4f9a(_0x28b857-0x38a,_0x4ae289);}function _0x230459(_0x1b04ab,_0x52f4d9,_0x28ed63,_0x49a8c5){return _0x4f9a(_0x28ed63- -0x2e6,_0x1b04ab);}_0x56c87c=!![],appendChunk(_0x54fd2c,_0x110b74,_0x4606e6[_0x230459(-0x13,-_0x54aa37._0x57b650,-0x14a,-0x10b)](),_0x5987d4,_0x324797),appendChunk(_0x54fd2c,_0x110b74,_0x3353f7[_0x230459(-0x23d,-0x230,-_0x54aa37._0x504a7f,-_0x54aa37._0xc3d6e4)](),_0x5987d4,_0x324797),_0x598333=!![],_0x324797(),_0x1cce94();if(_0x4da15d){_0x3762ab(_0x4da15d);return;}_0x5234b5({'code':_0x4bffe6,'signal':_0x3bf1ef});};_0x57243d=setTimeout(()=>{_0x598333=!![],_0x324797();function _0xa1cd85(_0x45ad0b,_0x34fe61,_0x504f30,_0x2e4622){return _0x4f9a(_0x45ad0b- -0x258,_0x34fe61);}_0x1cce94();function _0x438983(_0x111a25,_0x490c2d,_0x5016ef,_0x26b18b){return _0x4f9a(_0x26b18b- -_0x2c1166._0x1f1f9e,_0x111a25);}try{killProcessGroup(_0xd55aef,_0x54ac59);}catch{}_0x3762ab(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x17e1dc+_0x438983(-_0x7f076a._0x5c023c,-0x60,_0x7f076a._0x5a2611,0xdf),{'command':_0x19a98f[_0x438983(0x2b7,0x1fd,_0x7f076a._0x4fbb7,_0x7f076a._0x181948)],'cwd':_0x191f8f,'shellPath':_0x7842d,'timeoutMs':_0x17e1dc,'timedOut':!![]}));},_0x17e1dc),_0xd55aef['once'](_0x4f5a77(-0x87,-0x16a,-_0x3d9cc8._0x27d6d6,-_0x3d9cc8._0x3bcfce),_0xeeaf5f);function _0x4f5a77(_0x45f348,_0x448f37,_0x24c147,_0xbb28b8){return _0x1957d6(_0x448f37- -0x211,_0x45f348,_0x24c147-0x4a,_0xbb28b8-0xde);}function _0x51b558(_0x5bdcea,_0x34c89f,_0x25332d,_0x2debfc){return _0x126674(_0x25332d- -0x17d,_0x34c89f,_0x25332d-0xa9,_0x2debfc-0xde);}_0xd55aef[_0x4f5a77(-_0x3d9cc8._0xfb0a72,-0x220,-_0x3d9cc8._0x3754d8,-_0x3d9cc8._0x1a6d65)]('close',_0x4aeb98);});while(_0x110b74[_0x126674(0x548,0x57c,0x62f,_0xba485d._0x3e2f2a)]>0x0||!_0x598333){if(_0x110b74[_0x126674(0x548,_0xba485d._0x51a859,0x45d,0x66b)]===0x0){await _0x5d85a0();continue;}const _0x4f5c0c=_0x110b74[_0x126674(_0xba485d._0x5b9be5,_0xba485d._0x69e421,0x577,0x60e)]();_0x4f5c0c!==void 0x0&&(yield _0x4f5c0c);}const _0xc0c81b=await _0x1e8ccb,_0x198c39=_0x4a1cd8?_0x1957d6(0x1a5,_0xba485d._0xfd6b37,_0xba485d._0x8848f,_0xba485d._0x39abf5)+(_0xc0c81b[_0x126674(_0xba485d._0x586d8e,_0xba485d._0x383465,0x4fd,_0xba485d._0x13bc9c)]??0x0):_0x54fd2c['join'](''),_0x405a4d={'command':_0x19a98f[_0x126674(_0xba485d._0x55cd26,_0xba485d._0x16dff2,0x4de,_0xba485d._0x82f387)],'cwd':_0x191f8f,'exitCode':_0xc0c81b[_0x1957d6(_0xba485d._0x2281b8,0x314,_0xba485d._0x57325e,_0xba485d._0x4282a8)]??0x0,'signal':_0xc0c81b['signal'],'ignoreOutput':_0x4a1cd8,'shellPath':_0x7842d,'timeoutMs':_0x17e1dc};if(_0xc0c81b[_0x126674(0x59b,_0xba485d._0x526230,_0xba485d._0x1fa897,0x5dc)]!==0x0)throw new ToolExecutionError(_0x198c39||_0x1957d6(_0xba485d._0x64bbd2,0x302,_0xba485d._0x4c29ee,_0xba485d._0x1ff20c)+(_0xc0c81b['code']??0x0),_0x405a4d);return createToolOutput(_0x198c39,_0x405a4d);}catch(_0x3b2f7b){while(_0x110b74[_0x126674(0x548,_0xba485d._0x2ff7f9,0x45f,0x511)]>0x0){const _0x1f94dc=_0x110b74[_0x126674(_0xba485d._0x5b9be5,0x550,_0xba485d._0x4fc030,_0xba485d._0x4a77ed)]();_0x1f94dc!==void 0x0&&(yield _0x1f94dc);}if(_0x3b2f7b instanceof ToolExecutionError)throw _0x3b2f7b;if(_0x4da15d)throw _0x4da15d;if(isErrnoException(_0x3b2f7b)&&_0x3b2f7b[_0x1957d6(0x203,_0xba485d._0x527213,_0xba485d._0x38633f,0x1a1)]===_0x1957d6(-_0xba485d._0x50b2a0,-_0xba485d._0x37d4a9,_0xba485d._0x5aab2d,0x31))throw new ToolExecutionError(_0x126674(_0xba485d._0x24265b,_0xba485d._0x4d762f,_0xba485d._0x2d385d,_0xba485d._0xf6663f)+_0x7842d,{'command':_0x19a98f[_0x1957d6(0x134,0x1c9,0x1c6,_0xba485d._0xd061a2)],'cwd':_0x191f8f,'shellPath':_0x7842d});throw new ToolExecutionError(_0x3b2f7b instanceof Error?_0x3b2f7b['message']:String(_0x3b2f7b),{'command':_0x19a98f[_0x126674(_0xba485d._0x362d65,0x421,_0xba485d._0x5f4769,0x5b4)],'cwd':_0x191f8f,'shellPath':_0x7842d});}finally{_0x57243d&&clearTimeout(_0x57243d);_0xa19436(),_0xd55aef[_0x1957d6(_0xba485d._0x2342ba,_0xba485d._0x51b18d,0x22d,_0xba485d._0x1b7753)]?.[_0x126674(_0xba485d._0x40d30c,_0xba485d._0x5ea46a,_0xba485d._0x3107d8,_0xba485d._0x46ec3d)](_0x126674(_0xba485d._0x73922a,0x3f4,0x5cc,_0xba485d._0x31804b),_0x2742a9),_0xd55aef[_0x126674(_0xba485d._0x2c0596,0x541,_0xba485d._0x4d6427,0x4c4)]?.[_0x1957d6(0x67,0x196,_0xba485d._0x39565b,-_0xba485d._0x1750ce)]('data',_0x3d09a2);if(!_0x56c87c&&_0xd55aef[_0x126674(_0xba485d._0x52de5f,0x44e,0x5b9,0x67f)]&&!_0xd55aef[_0x126674(0x557,0x487,0x416,0x42d)])try{killProcessGroup(_0xd55aef,_0x54ac59);}catch{}}}});}function createShellExecTool(_0x532891={}){return createBashTool(_0x532891);}import{readdir,readFile as _0x4555f9}from'fs/promises';import{extname,join as _0x17271f}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x589a38,join,relative as _0x5bd041,resolve as _0x35dad4}from'path';import{readdir as _0xb02ee8,readFile as _0x3556e5}from'fs/promises';import{join as _0x372bde,relative as _0x2d5581,sep}from'path';import{delimiter}from'path';import{mkdir as _0x321b24,rm,stat as _0x40a1a9,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x382e6e}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x25acc3,rename,writeFile as _0x59121f}from'fs/promises';import{homedir as _0x1413b3}from'os';import{dirname as _0x234af2,isAbsolute as _0x4c35c0,join as _0x43695b,resolve as _0x15b7fd}from'path';import{parse as _0x11e5c7,stringify as _0x169ca5}from'yaml';import{cp,mkdir as _0x2d3ce1,readFile as _0x32da1a,rm as _0xe31533,writeFile as _0x302291}from'fs/promises';import{homedir}from'os';import{join as _0x3679e7}from'path';import{parse as _0xaa6571,stringify as _0x4955a3}from'yaml';import{z}from'zod';import{readdir as _0x49cf3c,readFile as _0x38acfa}from'fs/promises';import{join as _0x251719}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x47a570){const _0x2a365f={_0x285a8c:0x325,_0x2f258d:0x419,_0x14203e:0x2cc,_0x468829:0x2d2,_0x5abaa4:0x2ed,_0x29bb43:0x40c,_0x4700b0:0x1cf,_0x2e69b7:0x1c0,_0x47ba93:0x27c},_0x38deeb={_0x5b64f3:0x88},_0x269d26={_0x40dc67:0x293};function _0x23873f(_0x35a248,_0x1ab864,_0x30e036,_0x42c810){return _0x120580(_0x35a248- -_0x269d26._0x40dc67,_0x42c810,_0x30e036-0x1b2,_0x42c810-0x68);}const _0x404d29=[];let _0x52466d='',_0xdb44f=0x0;while(_0xdb44f<_0x47a570[_0x23873f(0x2e4,0x343,0x256,_0x2a365f._0x285a8c)]){const _0x1bbe3f=_0x47a570[_0xdb44f];if(_0x1bbe3f==='\x5c'&&_0xdb44f+0x1<_0x47a570[_0x23873f(0x2e4,_0x2a365f._0x2f258d,_0x2a365f._0x14203e,0x240)])_0x52466d+=_0x47a570[_0xdb44f+0x1],_0xdb44f+=0x2;else{if(_0x1bbe3f==='\x22'||_0x1bbe3f==='\x27'){const _0x40e467=_0x1bbe3f;_0xdb44f++;while(_0xdb44f<_0x47a570[_0x2c3a18(0x24b,_0x2a365f._0x468829,_0x2a365f._0x5abaa4,0x235)]&&_0x47a570[_0xdb44f]!==_0x40e467){_0x47a570[_0xdb44f]==='\x5c'&&_0xdb44f+0x1<_0x47a570['length']?(_0x52466d+=_0x47a570[_0xdb44f+0x1],_0xdb44f+=0x2):(_0x52466d+=_0x47a570[_0xdb44f],_0xdb44f++);}_0xdb44f++;}else _0x1bbe3f!==void 0x0&&/\s/['test'](_0x1bbe3f)?(_0x52466d&&(_0x404d29[_0x2c3a18(0x2cb,_0x2a365f._0x29bb43,_0x2a365f._0x4700b0,_0x2a365f._0x2e69b7)](_0x52466d),_0x52466d=''),_0xdb44f++):(_0x52466d+=_0x1bbe3f,_0xdb44f++);}}if(_0x52466d)_0x404d29[_0x23873f(0x364,0x321,0x319,_0x2a365f._0x47ba93)](_0x52466d);function _0x2c3a18(_0x49e623,_0x3ed81d,_0x3fec7a,_0x3edb77){return _0x43e84c(_0x49e623-_0x38deeb._0x5b64f3,_0x3ed81d,_0x3fec7a-0xf9,_0x49e623- -0x288);}return _0x404d29;}function renderCommandInstructions(_0x375f25){const _0x48b8b0={_0x474251:0xc7,_0x5d1b2e:0x5d,_0x2e147e:0x252,_0x412e55:0xb4,_0x41e88b:0x1,_0x5570d8:0x1fd,_0x547f3f:0xfd,_0x32c4ca:0xa5,_0x462689:0xe6,_0x2b9693:0x12,_0x7edf4c:0x208,_0x59a60b:0x27a,_0x5aa709:0x1f9,_0x803988:0x14e,_0x41210a:0x240,_0x2262ff:0x188,_0x5a6d88:0x7d,_0x29d772:0x1fc,_0x157f9a:0x48,_0x279b44:0x90,_0x2cb312:0x156,_0x5d38f9:0xe0,_0x459e1d:0x1f,_0x507add:0xcf,_0x8359b8:0xf0,_0x2253fb:0x122},_0x19cf3d={_0x22817b:0x2c},_0x5d2783={_0x261b93:0x36f,_0x177028:0x1e6,_0x382a66:0x1b7},_0x4db2a4={_0x255e1d:0x20c,_0x1d6ca6:0x253};let _0x5e6a1d=_0x375f25[_0x32b6f5(_0x48b8b0._0x474251,_0x48b8b0._0x5d1b2e,0xd9,0x85)],_0x37488e=![];const _0x536337=tokenizeCommandArguments(_0x375f25[_0x32b6f5(0x113,_0x48b8b0._0x2e147e,0x1d8,_0x48b8b0._0x412e55)]);_0x5e6a1d=_0x5e6a1d[_0x32b6f5(0x109,0x151,_0x48b8b0._0x41e88b,_0x48b8b0._0x5570d8)](/\$ARGUMENTS\[(\d+)\]/g,(_0x5309c4,_0x54b4d5)=>{return _0x37488e=!![],_0x536337[Number(_0x54b4d5)]??'';}),_0x5e6a1d=_0x5e6a1d[_0x537ac7(_0x48b8b0._0x547f3f,_0x48b8b0._0x32c4ca,_0x48b8b0._0x462689,0xbd)](/\$ARGUMENTS\b/g,()=>{function _0x51cfa1(_0x2c0efb,_0x427604,_0x3981af,_0x59120c){return _0x32b6f5(_0x59120c-0x8,_0x427604-0x105,_0x3981af-0x16,_0x3981af);}return _0x37488e=!![],_0x375f25[_0x51cfa1(_0x4db2a4._0x255e1d,_0x4db2a4._0x1d6ca6,-0xc,0x11b)];});if(_0x375f25[_0x32b6f5(0x14e,0x284,_0x48b8b0._0x2b9693,0x17e)]&&_0x375f25['argumentNames'][_0x32b6f5(_0x48b8b0._0x7edf4c,_0x48b8b0._0x59a60b,0x1a6,_0x48b8b0._0x5aa709)]>0x0)for(let _0x1d9f4e=0x0;_0x1d9f4e<_0x375f25[_0x32b6f5(_0x48b8b0._0x803988,0x204,0x1fa,_0x48b8b0._0x41210a)]['length'];_0x1d9f4e++){const _0x2605bf=_0x375f25['argumentNames'][_0x1d9f4e];if(_0x2605bf){const _0x2db920=new RegExp('\x5c$'+_0x2605bf+'\x5cb','g');_0x5e6a1d=_0x5e6a1d[_0x32b6f5(0x109,_0x48b8b0._0x2262ff,0x2f,_0x48b8b0._0x5a6d88)](_0x2db920,()=>{return _0x37488e=!![],_0x536337[_0x1d9f4e]??'';});}}function _0x32b6f5(_0x35536f,_0x5b4fed,_0x19c0ff,_0x23f6c8){return _0x120580(_0x35536f- -_0x5d2783._0x261b93,_0x23f6c8,_0x19c0ff-_0x5d2783._0x177028,_0x23f6c8-_0x5d2783._0x382a66);}_0x5e6a1d=_0x5e6a1d[_0x537ac7(_0x48b8b0._0x29d772,0xed,0xe6,-_0x48b8b0._0x157f9a)](/\$(\d+)\b/g,(_0x4e416e,_0x12f181)=>{return _0x37488e=!![],_0x536337[Number(_0x12f181)]??'';});function _0x537ac7(_0x122999,_0x9e97aa,_0x5a09bc,_0x56836d){return _0x43e84c(_0x122999-0xd,_0x56836d,_0x5a09bc-_0x19cf3d._0x22817b,_0x5a09bc- -0x2ee);}return!_0x37488e&&_0x375f25['argumentsText'][_0x32b6f5(_0x48b8b0._0x279b44,_0x48b8b0._0x2cb312,_0x48b8b0._0x5d38f9,-_0x48b8b0._0x459e1d)]()&&(_0x5e6a1d=_0x5e6a1d+'\x0a\x0aARGUMENTS:\x20'+_0x375f25[_0x537ac7(_0x48b8b0._0x507add,0x11f,_0x48b8b0._0x8359b8,_0x48b8b0._0x2253fb)]),_0x5e6a1d;}var chatModelAuthSchemeSchema=z['enum']([_0x43e84c(0x250,0x3df,0x308,0x38b),_0x43e84c(0x467,0x35c,0x376,0x433)]),apiKeyAuthSchema=z[_0x43e84c(0x4a2,0x697,0x50f,0x557)]({'type':z[_0x120580(0x543,0x41b,0x480,0x488)](_0x43e84c(0x53f,0x64f,0x4cd,0x53c)),'apiKey':z[_0x43e84c(0x57c,0x4bb,0x507,0x450)](),'authScheme':chatModelAuthSchemeSchema[_0x43e84c(0x592,0x414,0x4b9,0x471)]()})[_0x120580(0x537,0x679,0x66c,0x575)](),oauthAuthSchema=z[_0x120580(0x5fb,0x67b,0x6c4,0x569)]({'type':z['literal'](_0x43e84c(0x3ea,0x444,0x30e,0x2ff)),'access':z[_0x43e84c(0x417,0x3a5,0x3cc,0x450)](),'refresh':z[_0x120580(0x4f4,0x615,0x3c9,0x5f1)](),'expires':z['number']()[_0x120580(0x515,0x51f,0x3f0,0x475)](),'authScheme':chatModelAuthSchemeSchema[_0x120580(0x515,0x421,0x605,0x5e7)]()})[_0x43e84c(0x590,0x4dc,0x4ad,0x493)](),authMethodSchema=z[_0x120580(0x3e3,0x3dc,0x423,0x398)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z[_0x120580(0x4f4,0x50e,0x514,0x4de)]()[_0x120580(0x515,0x65b,0x601,0x467)]()})[_0x120580(0x537,0x543,0x5f0,0x4bb)](),modelConfigSchema=z['union']([z[_0x43e84c(0x4d3,0x59b,0x4b2,0x49f)](![]),z[_0x43e84c(0x479,0x4ee,0x45c,0x49f)](!![]),z[_0x43e84c(0x3d5,0x446,0x482,0x450)](),z[_0x120580(0x531,0x5df,0x655,0x4ab)](z[_0x120580(0x4f4,0x54e,0x55c,0x473)]()),z[_0x120580(0x531,0x5fb,0x555,0x42b)](modelDefinitionSchema)]),chatModelSurfaceSchema=z['enum']([_0x43e84c(0x483,0x43c,0x3a9,0x480),_0x43e84c(0x689,0x5c6,0x458,0x579),_0x120580(0x5df,0x661,0x5fd,0x6cf),'openai-responses-ws']),providerConfigSchema=z[_0x43e84c(0x4af,0x59e,0x597,0x557)]({'apiKey':z['string']()[_0x120580(0x515,0x5de,0x542,0x634)](),'token':z[_0x43e84c(0x596,0x528,0x430,0x450)]()['optional'](),'defaultModel':z[_0x120580(0x4f4,0x402,0x5a4,0x56f)]()[_0x120580(0x515,0x53c,0x4da,0x489)](),'smallModel':z[_0x43e84c(0x4a5,0x3ee,0x4c3,0x450)]()['optional'](),'currentAuth':z[_0x120580(0x4f4,0x639,0x614,0x555)]()[_0x120580(0x515,0x4d9,0x467,0x573)](),'auth':z[_0x120580(0x531,0x4a5,0x60b,0x403)](authMethodSchema)[_0x43e84c(0x461,0x42a,0x466,0x471)](),'surface':chatModelSurfaceSchema[_0x120580(0x515,0x447,0x43d,0x4e2)](),'baseUrl':z[_0x43e84c(0x565,0x4d7,0x3b7,0x450)]()[_0x43e84c(0x517,0x407,0x51b,0x471)](),'models':modelConfigSchema[_0x43e84c(0x57a,0x41d,0x562,0x471)](),'customHeaders':z['record'](z[_0x43e84c(0x4d8,0x477,0x41f,0x450)](),z[_0x43e84c(0x505,0x49f,0x345,0x450)]())[_0x120580(0x515,0x546,0x553,0x63d)]()})[_0x120580(0x537,0x52e,0x5d0,0x4a7)](),mcpServerConfigSchema=z[_0x120580(0x5fb,0x6f2,0x568,0x57f)]({'command':z['string']()[_0x43e84c(0x54e,0x384,0x441,0x471)](),'args':z['array'](z['string']())[_0x43e84c(0x518,0x4dd,0x43d,0x471)](),'env':z[_0x43e84c(0x3ac,0x47c,0x5ed,0x4ea)](z[_0x120580(0x4f4,0x4ea,0x5c2,0x522)](),z[_0x120580(0x4f4,0x3cc,0x546,0x425)]())[_0x43e84c(0x42a,0x349,0x37a,0x471)](),'transport':z['enum']([_0x120580(0x617,0x68c,0x5a1,0x744),_0x43e84c(0x4a4,0x42d,0x2ba,0x38c)])['optional'](),'url':z[_0x43e84c(0x458,0x408,0x503,0x450)]()['optional'](),'headers':z[_0x43e84c(0x40d,0x3c9,0x3af,0x4ea)](z['string'](),z[_0x43e84c(0x341,0x4c1,0x37c,0x450)]())[_0x43e84c(0x480,0x54c,0x4b7,0x471)](),'prefix':z[_0x120580(0x4f4,0x434,0x604,0x3f8)]()[_0x43e84c(0x399,0x593,0x51f,0x471)](),'timeoutMs':z[_0x120580(0x5b2,0x6e5,0x595,0x6d7)]()[_0x43e84c(0x395,0x582,0x3fc,0x471)](),'enabled':z[_0x43e84c(0x446,0x27e,0x306,0x350)]()[_0x120580(0x515,0x484,0x4ec,0x569)](),'auth':z[_0x43e84c(0x57b,0x576,0x66c,0x557)]({'type':z[_0x120580(0x4f5,0x53c,0x3c5,0x4cf)]([_0x43e84c(0x413,0x592,0x4ca,0x46c),'bearer',_0x120580(0x3a3,0x3bf,0x440,0x361)]),'token':z[_0x43e84c(0x494,0x49a,0x395,0x450)]()['optional'](),'oauth':z[_0x120580(0x5fb,0x578,0x521,0x4bd)]({'clientId':z[_0x120580(0x4f4,0x583,0x5b0,0x4d7)]()[_0x43e84c(0x37b,0x4a8,0x457,0x471)](),'clientMetadataUrl':z['string']()['optional'](),'authorizationServer':z[_0x120580(0x4f4,0x634,0x555,0x4a8)]()[_0x120580(0x515,0x453,0x4d4,0x509)](),'scopes':z['array'](z[_0x43e84c(0x4dc,0x56a,0x528,0x450)]())['optional'](),'tokenStorageKey':z[_0x120580(0x4f4,0x403,0x446,0x50f)]()['optional']()})['passthrough']()[_0x43e84c(0x4ac,0x526,0x5ab,0x471)]()})['passthrough']()[_0x43e84c(0x3b0,0x4ac,0x4c1,0x471)]()})['passthrough'](),mcpSettingsSchema=z[_0x120580(0x5fb,0x6ff,0x52a,0x64a)]({'servers':z['record'](z[_0x120580(0x4f4,0x44f,0x5bf,0x600)](),mcpServerConfigSchema)[_0x43e84c(0x3f2,0x48b,0x4b7,0x471)](),'allowedTools':z[_0x120580(0x58e,0x617,0x55c,0x671)](z['string'](),z[_0x120580(0x58e,0x4fc,0x51c,0x4bc)](z['string'](),z[_0x43e84c(0x2bd,0x366,0x3a4,0x350)]()))[_0x43e84c(0x547,0x41f,0x3a7,0x471)](),'defaultTimeoutMs':z['number']()[_0x120580(0x515,0x569,0x41f,0x409)]()})[_0x120580(0x537,0x417,0x4c1,0x58a)](),skillsSettingsSchema=z['object']({'enabled':z[_0x43e84c(0x490,0x3ba,0x2a6,0x350)]()[_0x43e84c(0x42e,0x400,0x5ad,0x471)](),'includeDefaults':z['boolean']()[_0x120580(0x515,0x464,0x65b,0x3cf)](),'directories':z[_0x120580(0x531,0x560,0x536,0x4e6)](z['string']())['optional'](),'exclude':z[_0x120580(0x531,0x561,0x56e,0x5b3)](z[_0x43e84c(0x39d,0x4fd,0x408,0x450)]())[_0x43e84c(0x504,0x567,0x42b,0x471)]()})[_0x120580(0x537,0x4e5,0x449,0x4ab)](),commandsSettingsSchema=z[_0x43e84c(0x462,0x5fb,0x437,0x557)]({'enabled':z[_0x43e84c(0x2ed,0x2f8,0x3b9,0x350)]()['optional'](),'directories':z[_0x43e84c(0x3ed,0x439,0x375,0x48d)](z[_0x120580(0x4f4,0x4a6,0x4b8,0x47e)]())[_0x43e84c(0x3be,0x399,0x4eb,0x471)]()})['passthrough'](),agentsSettingsSchema=z['object']({'enabled':z[_0x43e84c(0x41e,0x2b9,0x473,0x350)]()[_0x43e84c(0x47a,0x334,0x340,0x471)](),'includeDefaults':z[_0x120580(0x3f4,0x41b,0x498,0x35b)]()[_0x43e84c(0x439,0x56b,0x4f6,0x471)](),'directories':z[_0x120580(0x531,0x4cb,0x4ab,0x4e2)](z[_0x43e84c(0x425,0x34c,0x463,0x450)]())[_0x43e84c(0x517,0x59b,0x41e,0x471)]()})['passthrough'](),uiThemeSettingsSchema=z['object']({'mode':z[_0x43e84c(0x560,0x4ef,0x573,0x451)]([_0x43e84c(0x58c,0x5e7,0x4f5,0x508),_0x43e84c(0x42f,0x598,0x3aa,0x48e),_0x120580(0x496,0x4a0,0x45c,0x4d8)])['optional'](),'colorLevel':z[_0x120580(0x4f5,0x5ef,0x3cc,0x3f2)]([_0x120580(0x5ac,0x5df,0x4f1,0x65b),_0x120580(0x510,0x4d3,0x42e,0x655),'ansi16','ansi256',_0x43e84c(0x37e,0x4c3,0x32a,0x43d)])[_0x120580(0x515,0x5e8,0x4ae,0x561)](),'backgrounds':z[_0x120580(0x4f5,0x5e8,0x587,0x598)]([_0x120580(0x5ac,0x655,0x62e,0x56e),'on',_0x43e84c(0x317,0x470,0x4b0,0x38a)])['optional'](),'messageStyle':z[_0x120580(0x4f5,0x3fc,0x502,0x59a)](['plain',_0x120580(0x5ee,0x5d7,0x5e3,0x6de)])[_0x120580(0x515,0x4e0,0x3fd,0x439)]()})['passthrough'](),statuslineSegmentSchema=z[_0x43e84c(0x3bb,0x3dd,0x46a,0x451)]([_0x120580(0x3cb,0x4d9,0x4b4,0x2ba),_0x120580(0x5db,0x5cf,0x58d,0x6f3),_0x120580(0x466,0x576,0x37f,0x533),_0x120580(0x420,0x4e6,0x50a,0x478),_0x120580(0x50d,0x3e8,0x616,0x4de),'context',_0x120580(0x439,0x3ef,0x375,0x55e),_0x120580(0x607,0x63a,0x72b,0x6c4),_0x43e84c(0x6a7,0x484,0x48d,0x567),'cost',_0x120580(0x3d5,0x47e,0x4b4,0x461),_0x120580(0x5ef,0x574,0x565,0x712),_0x120580(0x49d,0x58e,0x5de,0x513),_0x120580(0x3e5,0x30a,0x434,0x4d4),_0x120580(0x4a5,0x41a,0x409,0x3db)]),statuslineItemSchema=z[_0x43e84c(0x2b8,0x3b4,0x441,0x33f)]([statuslineSegmentSchema,z['literal']('|')]),statuslineRowSchema=z[_0x120580(0x531,0x573,0x63b,0x438)](statuslineItemSchema),statuslineConfigSchema=z[_0x120580(0x5fb,0x63d,0x611,0x705)]({'rows':z[_0x43e84c(0x5f4,0x4bd,0x4a1,0x4c9)]([statuslineRowSchema,statuslineRowSchema])[_0x120580(0x515,0x61d,0x606,0x5bd)]()})[_0x120580(0x537,0x676,0x645,0x411)](),memorySettingsSchema=z[_0x120580(0x5fb,0x69e,0x6a9,0x71c)]({'version':z[_0x120580(0x543,0x4fa,0x51a,0x4dd)](0x2)[_0x43e84c(0x48f,0x469,0x39e,0x471)](),'retrieval':z[_0x120580(0x5fb,0x69a,0x52f,0x682)]({'engine':z['literal'](_0x43e84c(0x2bb,0x4dc,0x438,0x3e0))[_0x120580(0x515,0x658,0x3cf,0x44a)](),'candidateLimit':z[_0x120580(0x5b2,0x521,0x6d7,0x4b9)]()[_0x43e84c(0x3be,0x53b,0x4bc,0x471)](),'activeCandidateLimit':z['number']()['optional'](),'activeEnabled':z[_0x120580(0x3f4,0x30f,0x2d9,0x43c)]()[_0x120580(0x515,0x3cf,0x5d6,0x643)](),'maxQueriesPerTurn':z[_0x43e84c(0x43e,0x5c0,0x54a,0x50e)]()[_0x120580(0x515,0x627,0x535,0x556)](),'coreInjectTokenBudget':z[_0x120580(0x5b2,0x531,0x6c7,0x685)]()['optional'](),'injectTokenBudget':z['number']()['optional'](),'minScore':z[_0x43e84c(0x401,0x60f,0x61e,0x50e)]()['optional'](),'freshnessHalfLifeDays':z[_0x43e84c(0x5ed,0x4dc,0x55c,0x50e)]()[_0x120580(0x515,0x407,0x594,0x519)]()})[_0x120580(0x537,0x5d8,0x496,0x60c)]()[_0x120580(0x515,0x494,0x5a5,0x656)](),'extraction':z[_0x43e84c(0x4ac,0x54f,0x532,0x557)]({'enabled':z[_0x120580(0x3f4,0x2e0,0x369,0x3a8)]()[_0x120580(0x515,0x5fc,0x459,0x522)](),'provider':z[_0x120580(0x4f4,0x419,0x48d,0x416)]()[_0x120580(0x515,0x5c1,0x3ed,0x5a0)](),'model':z['string']()[_0x120580(0x515,0x62c,0x4ea,0x639)](),'sensitiveFilter':z['boolean']()['optional']()})[_0x120580(0x537,0x4a0,0x480,0x635)]()[_0x120580(0x515,0x42c,0x569,0x5b9)](),'index':z[_0x120580(0x5fb,0x6fe,0x736,0x52f)]({'persisted':z[_0x43e84c(0x41b,0x230,0x2c8,0x350)]()[_0x43e84c(0x541,0x3e9,0x4b7,0x471)](),'flushIntervalMs':z[_0x120580(0x5b2,0x63b,0x5cf,0x628)]()[_0x43e84c(0x381,0x3e1,0x46b,0x471)]()})[_0x43e84c(0x458,0x396,0x59e,0x493)]()[_0x43e84c(0x527,0x4e5,0x40d,0x471)](),'enabled':z['boolean']()[_0x120580(0x515,0x5c7,0x450,0x618)](),'saveTool':z['boolean']()[_0x120580(0x515,0x52f,0x4d7,0x40a)](),'model':z[_0x43e84c(0x3d6,0x35a,0x328,0x450)]()['optional'](),'provider':z['string']()[_0x120580(0x515,0x562,0x577,0x42c)](),'maxInjectionTokens':z[_0x120580(0x5b2,0x59b,0x639,0x4ab)]()['optional'](),'backgroundExtraction':z[_0x43e84c(0x23d,0x333,0x323,0x350)]()[_0x120580(0x515,0x3d2,0x60a,0x5be)]()})[_0x120580(0x537,0x67c,0x662,0x538)](),recentModelSchema=z[_0x120580(0x5fb,0x5a9,0x5ca,0x5ba)]({'provider':z[_0x120580(0x4f4,0x59e,0x4d1,0x52a)](),'model':z[_0x43e84c(0x541,0x494,0x38c,0x450)](),'usedAt':z[_0x43e84c(0x503,0x5e9,0x41d,0x50e)]()})[_0x120580(0x537,0x526,0x47c,0x4c6)](),lspServerEntrySchema=z[_0x43e84c(0x641,0x4c7,0x411,0x557)]({'disabled':z[_0x43e84c(0x43a,0x2bf,0x242,0x350)]()[_0x120580(0x515,0x579,0x4d7,0x54c)](),'command':z['string']()['optional'](),'args':z[_0x120580(0x531,0x401,0x496,0x49d)](z[_0x120580(0x4f4,0x42a,0x60d,0x4d7)]())[_0x43e84c(0x4a2,0x508,0x480,0x471)](),'rootMarkers':z['array'](z[_0x43e84c(0x3da,0x566,0x33b,0x450)]())['optional']()})[_0x43e84c(0x490,0x4a8,0x441,0x493)](),lspConfigSchema=z[_0x43e84c(0x589,0x5ad,0x48a,0x557)]({'enabled':z['boolean']()[_0x120580(0x515,0x49f,0x447,0x426)](),'servers':z[_0x43e84c(0x5c7,0x3d0,0x585,0x4ea)](z['string'](),lspServerEntrySchema)[_0x120580(0x515,0x5f0,0x649,0x575)]()})['passthrough'](),cliConfigSchema=z['object']({'activeProvider':z[_0x120580(0x4f4,0x448,0x490,0x528)]()[_0x43e84c(0x504,0x506,0x46b,0x471)](),'activeModel':z[_0x120580(0x4f4,0x547,0x5ea,0x490)]()[_0x43e84c(0x5ad,0x3a0,0x366,0x471)](),'apiKey':z[_0x120580(0x4f4,0x484,0x43f,0x45e)]()[_0x120580(0x515,0x604,0x4cf,0x4f9)](),'providers':z['record'](z[_0x120580(0x4f4,0x534,0x52e,0x53f)](),providerConfigSchema)[_0x120580(0x515,0x468,0x468,0x648)](),'mcp':mcpSettingsSchema[_0x43e84c(0x4b8,0x521,0x4e6,0x471)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x120580(0x515,0x45b,0x5dc,0x446)](),'commands':commandsSettingsSchema[_0x120580(0x515,0x477,0x5f9,0x531)](),'skillsEnabled':z[_0x120580(0x58e,0x650,0x673,0x4b1)](z[_0x43e84c(0x365,0x478,0x456,0x450)](),z[_0x120580(0x3f4,0x3e7,0x506,0x2bf)]())[_0x120580(0x515,0x4c1,0x3f3,0x58c)](),'memory':memorySettingsSchema[_0x120580(0x515,0x64a,0x562,0x421)](),'session':z[_0x120580(0x5fb,0x4c7,0x4fa,0x69c)]({'memPersist':z[_0x120580(0x3f4,0x408,0x537,0x33d)]()['optional'](),'persistEventLog':z[_0x120580(0x3f4,0x316,0x4cf,0x444)]()[_0x43e84c(0x487,0x4e2,0x508,0x471)](),'persistHttpLog':z[_0x120580(0x3f4,0x4a7,0x458,0x32b)]()[_0x120580(0x515,0x41b,0x56f,0x4e1)]()})[_0x43e84c(0x3d9,0x37a,0x3f4,0x493)]()[_0x43e84c(0x506,0x42f,0x550,0x471)](),'requireToolApproval':z[_0x43e84c(0x39b,0x364,0x241,0x350)]()['optional'](),'thinking':z['enum']([_0x43e84c(0x57f,0x476,0x497,0x490),_0x43e84c(0x2a4,0x4c3,0x438,0x3e4),'MEDIUM',_0x43e84c(0x3ca,0x460,0x356,0x3f7)])['optional'](),'streamingChunks':z[_0x43e84c(0x434,0x350,0x356,0x350)]()[_0x43e84c(0x536,0x550,0x375,0x471)](),'agentsEnabled':z[_0x43e84c(0x5d0,0x4f5,0x50e,0x4ea)](z[_0x120580(0x4f4,0x507,0x5b2,0x510)](),z[_0x43e84c(0x3f2,0x3dd,0x263,0x350)]())[_0x120580(0x515,0x51f,0x5c1,0x3e7)](),'recentModels':z[_0x120580(0x531,0x4a2,0x582,0x649)](recentModelSchema)[_0x120580(0x515,0x631,0x598,0x524)](),'lsp':lspConfigSchema[_0x43e84c(0x354,0x542,0x3be,0x471)](),'ui':z['object']({'theme':uiThemeSettingsSchema[_0x120580(0x515,0x5cb,0x442,0x568)](),'statusline':statuslineConfigSchema['optional']()})[_0x43e84c(0x447,0x47d,0x3af,0x493)]()[_0x43e84c(0x363,0x353,0x3c8,0x471)](),'tools':z['record'](z[_0x43e84c(0x47c,0x590,0x395,0x450)](),z['unknown']())[_0x43e84c(0x382,0x416,0x4b3,0x471)]()})[_0x120580(0x537,0x5d6,0x40f,0x630)]();function buildDescription(_0x707cf6){const _0x1501ce={_0x4c7638:0x607,_0x4772d5:0x543,_0x17661a:0x400,_0x35f935:0x609,_0x119d87:0x4bc,_0x4f7bf1:0x4d0,_0x1fe1ba:0x38d,_0x231ec9:0x570,_0x3db927:0x130,_0x744ba8:0x1e7,_0x5c632f:0x681,_0x230b30:0x616,_0x340b30:0x6fe,_0x5b0bb8:0x5c5,_0x26b6c4:0x5a,_0xa58f75:0x15},_0xb69135={_0x34883e:0x48,_0x4399aa:0x1c0},_0x2c1768={_0x5b65e9:0x15f,_0x24ef65:0x1b5};function _0x26ddf6(_0x58f62a,_0x1e250f,_0x4aff85,_0x459bc2){return _0x43e84c(_0x58f62a-_0x2c1768._0x5b65e9,_0x4aff85,_0x4aff85-0x1cd,_0x1e250f-_0x2c1768._0x24ef65);}function _0x14cc07(_0xe30ec0,_0x31f935,_0x35048d,_0x381dd4){return _0x43e84c(_0xe30ec0-_0xb69135._0x34883e,_0xe30ec0,_0x35048d-_0xb69135._0x4399aa,_0x381dd4- -0x370);}if(_0x707cf6[_0x26ddf6(0x751,0x688,0x630,_0x1501ce._0x4c7638)]===0x0)return[_0x26ddf6(0x4d0,_0x1501ce._0x4772d5,_0x1501ce._0x17661a,_0x1501ce._0x35f935),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x26ddf6(0x5e7,_0x1501ce._0x119d87,_0x1501ce._0x4f7bf1,_0x1501ce._0x1fe1ba)][_0x26ddf6(0x696,0x62c,0x5eb,_0x1501ce._0x231ec9)]('\x0a');const _0x570ad5=['Invoke\x20a\x20custom\x20command\x20by\x20rendering\x20its\x20reusable\x20workflow\x20instructions.',_0x14cc07(_0x1501ce._0x3db927,0x244,_0x1501ce._0x744ba8,0x1c2),_0x26ddf6(_0x1501ce._0x5c632f,_0x1501ce._0x230b30,0x517,0x754),..._0x707cf6[_0x26ddf6(0x789,_0x1501ce._0x340b30,0x765,_0x1501ce._0x5b0bb8)](_0x22ff61=>_0x22ff61['argumentHint']?'-\x20'+_0x22ff61[_0x14cc07(-0x22,0x154,0x1bd,0xea)]+'\x20'+_0x22ff61['argumentHint']+':\x20'+_0x22ff61[_0x26ddf6(0x59c,0x6de,0x67d,0x818)]:'-\x20'+_0x22ff61[_0x14cc07(0x212,0x102,0x1b,0xea)]+':\x20'+_0x22ff61['description'])];return _0x570ad5[_0x14cc07(_0x1501ce._0x26b6c4,_0x1501ce._0xa58f75,0xdb,0x107)]('\x0a');}function createInvokeCommandTool(_0x16d46b){const _0x30d9f2={_0x296f01:0x717,_0x1a212e:0x694,_0x43be45:0x70a,_0x29dcfb:0x613,_0xc3ff41:0x6f6,_0x42d3ec:0x661,_0x1fc97e:0x70a,_0x2a6dfb:0x8f7,_0x1bf194:0x7df,_0x520b54:0x6be,_0x426b57:0x57c,_0x20ea09:0x5ea},_0x1ec355={_0x4496de:0x83,_0xddb556:0x1f1,_0x232016:0xf1,_0x444d0d:0x2ea,_0x552062:0x337,_0xb6e2b6:0x228,_0x45a1eb:0xc8,_0x3b6b5e:0x1c1,_0x102f69:0x96,_0x38ebba:0x1a0,_0x1a2039:0x1c4,_0x526ba0:0x212,_0x2143a8:0x19f,_0x324cf8:0x32f,_0x489b2a:0x221,_0x3b1f1e:0x1d0,_0x2dd2c0:0x162,_0x5fb5d0:0x256,_0x489a43:0xeb},_0x380d8d={_0xea5b57:0x1ee,_0x4c5670:0x16a},_0x56ee28={_0x3a822e:0x138,_0x5907ee:0x186,_0x3689b0:0x122},_0x2c9093={_0xf9ee61:0xcf,_0x565cce:0x2c};function _0x3b2df8(_0x1aa8f7,_0x218164,_0xfc74ee,_0x25ea25){return _0x43e84c(_0x1aa8f7-_0x2c9093._0xf9ee61,_0x1aa8f7,_0xfc74ee-_0x2c9093._0x565cce,_0x25ea25-0x26e);}const _0x57e0e7=new Map(_0x16d46b[_0x3b2df8(_0x30d9f2._0x296f01,_0x30d9f2._0x1a212e,0x73e,_0x30d9f2._0x43be45)][_0x5086da(0x78f,0x66b,0x5bb,_0x30d9f2._0x29dcfb)](_0x18ba2b=>[_0x18ba2b['id'],_0x18ba2b]));function _0x5086da(_0x414f13,_0x5abbac,_0xd9802,_0xa8d5dd){return _0x43e84c(_0x414f13-_0x56ee28._0x3a822e,_0xa8d5dd,_0xd9802-_0x56ee28._0x5907ee,_0x5abbac-_0x56ee28._0x3689b0);}const _0x551ddf=buildDescription(_0x16d46b[_0x3b2df8(0x600,_0x30d9f2._0xc3ff41,_0x30d9f2._0x42d3ec,_0x30d9f2._0x1fc97e)]);return defineTool({'name':_0x3b2df8(0x816,0x707,_0x30d9f2._0x2a6dfb,_0x30d9f2._0x1bf194),'description':_0x551ddf,'inputSchema':{'type':'object','properties':{'name':{'type':_0x3b2df8(0x720,0x636,0x62b,_0x30d9f2._0x520b54)},'args':{'type':'string'}},'required':[_0x5086da(0x56b,_0x30d9f2._0x426b57,_0x30d9f2._0x20ea09,0x478)]},async *'execute'(_0x20e4e7){const _0x5a2d87={_0x3be9b9:0x1c5},_0x1c890b=_0x57e0e7['get'](_0x20e4e7['name']);if(!_0x1c890b){const _0xf082ce=Array[_0x398e0b(-0xd2,0x6d,-0xb9,-_0x1ec355._0x4496de)](_0x57e0e7[_0x398e0b(_0x1ec355._0xddb556,-0x19,0xbb,_0x1ec355._0x232016)]())[_0x3b1a32(0x1f2,_0x1ec355._0x444d0d,0x284,0x24c)](',\x20');throw new ToolExecutionError(_0x3b1a32(0x285,_0x1ec355._0x552062,0x22c,_0x1ec355._0xb6e2b6)+_0x20e4e7[_0x398e0b(-0x8b,0x27,-_0x1ec355._0x45a1eb,0x71)]+_0x398e0b(-_0x1ec355._0x3b6b5e,-0x62,-0xf7,-_0x1ec355._0x102f69)+_0xf082ce,{'name':_0x20e4e7[_0x398e0b(0xe0,_0x1ec355._0x38ebba,0x93,0x71)]});}const _0x265959=await _0x16d46b[_0x3b1a32(_0x1ec355._0x1a2039,0x100,_0x1ec355._0x526ba0,0x28e)](_0x1c890b),_0x1090c3=_0x20e4e7['args']??'',_0xc427f5=renderCommandInstructions({'instructions':_0x265959[_0x3b1a32(0x1b8,0x146,_0x1ec355._0x2143a8,0x1a1)],'argumentsText':_0x1090c3,'argumentNames':_0x265959[_0x3b1a32(_0x1ec355._0x324cf8,_0x1ec355._0x489b2a,0x257,_0x1ec355._0x3b1f1e)]});function _0x398e0b(_0x10fc8e,_0x49ff4d,_0x4a194a,_0x5b84e1){return _0x5086da(_0x10fc8e-_0x5a2d87._0x3be9b9,_0x5b84e1- -0x50b,_0x4a194a-0x32,_0x49ff4d);}yield createToolOutput(_0xc427f5,{'id':_0x265959['id'],'name':_0x265959[_0x398e0b(-0x20,0x6e,0xeb,0x71)],'path':_0x1c890b[_0x3b1a32(_0x1ec355._0x2dd2c0,_0x1ec355._0x5fb5d0,0x296,0x279)][_0x398e0b(0x57,-0x188,-0x200,-_0x1ec355._0x489a43)]});function _0x3b1a32(_0x5c3f70,_0x572a6a,_0x1433b5,_0x2f2402){return _0x3b2df8(_0x572a6a,_0x572a6a-_0x380d8d._0xea5b57,_0x1433b5-_0x380d8d._0x4c5670,_0x1433b5- -0x461);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x432871,rename as _0x459030,stat as _0xf820a7,writeFile as _0x539859}from'fs/promises';import*as _0x1fe9e1 from'path';function detectEol(_0x4801f5){const _0x2dfda7={_0x244cdb:0x537,_0x5ed73b:0x445,_0x3ad5d6:0x5cf,_0x45babc:0x422,_0x5a418f:0x640,_0xfab709:0x6e8,_0x1c1d8e:0x637,_0x229441:0x21,_0x236949:0xa1,_0x1bb28a:0x1ad,_0x3226c6:0x1d,_0x267e73:0x88,_0x11f584:0xaa},_0x1b0843={_0x411649:0x193},_0x5de646={_0x342d9b:0x41,_0x309647:0x1a0,_0x39df26:0x42c};function _0x3ac9f2(_0x38087b,_0x4f4fe3,_0xbb9cba,_0x218a60){return _0x43e84c(_0x38087b-_0x5de646._0x342d9b,_0xbb9cba,_0xbb9cba-_0x5de646._0x309647,_0x4f4fe3- -_0x5de646._0x39df26);}function _0x4ace67(_0x1e198e,_0x1ce91e,_0x27aff3,_0x344f8e){return _0x120580(_0x1e198e-_0x1b0843._0x411649,_0x1ce91e,_0x27aff3-0x1f1,_0x344f8e-0x1e4);}return/\r\n/[_0x4ace67(_0x2dfda7._0x244cdb,_0x2dfda7._0x5ed73b,_0x2dfda7._0x3ad5d6,_0x2dfda7._0x45babc)](_0x4801f5[_0x4ace67(_0x2dfda7._0x5a418f,0x578,_0x2dfda7._0xfab709,_0x2dfda7._0x1c1d8e)](_0x3ac9f2(-_0x2dfda7._0x229441,_0x2dfda7._0x236949,_0x2dfda7._0x1bb28a,0xd)))?_0x3ac9f2(_0x2dfda7._0x3226c6,-_0x2dfda7._0x267e73,_0x2dfda7._0x11f584,-0xb0):'lf';}function normalizeToLf(_0x416f39){return _0x416f39['replace'](/\r\n/g,'\x0a');}function convertEol(_0x8b5cab,_0x27a677){const _0x5e8aa3={_0x3c1f88:0x3b7,_0xd38ead:0x276,_0x2184db:0x274,_0x592216:0x3dd},_0x3ae9cf={_0x4fedf6:0x91,_0x24342a:0x14d,_0x557d7b:0x112},_0x141903={_0x21d743:0x0};function _0x1798b3(_0x1e5454,_0x3266d4,_0x2fb583,_0x354c8a){return _0x120580(_0x2fb583-0x1b0,_0x354c8a,_0x2fb583-0xc4,_0x354c8a-_0x141903._0x21d743);}function _0x107da7(_0x1540c5,_0x574774,_0xab3800,_0x2277fa){return _0x120580(_0x1540c5- -_0x3ae9cf._0x4fedf6,_0x2277fa,_0xab3800-_0x3ae9cf._0x24342a,_0x2277fa-_0x3ae9cf._0x557d7b);}return _0x27a677===_0x107da7(_0x5e8aa3._0x3c1f88,0x425,_0x5e8aa3._0xd38ead,_0x5e8aa3._0x2184db)?_0x8b5cab[_0x107da7(0x3e7,0x44f,0x338,_0x5e8aa3._0x592216)](/\n/g,'\x0d\x0a'):_0x8b5cab;}async function atomicWrite(_0x310f95,_0x17e975){const _0x3e3ead={_0x2b420d:0xc3,_0x5bbce0:0x1be,_0x41d8c9:0x18e,_0x3def63:0xb3,_0x3d3ac5:0x1b4,_0x50632c:0x10d,_0x13c98f:0x1fe,_0x545a44:0xe6,_0x265042:0x12f,_0x4f8405:0x251,_0xc7e7d2:0x1b7,_0x2561e8:0x1ed,_0x52304c:0x218,_0x345814:0x184},_0x3bf047={_0x435a41:0x3e9,_0x5b0a08:0x117},_0xeb0131={_0x277646:0x10b,_0x4ae59c:0x182};function _0x5ae906(_0x776769,_0x20d343,_0x34b090,_0xde4b61){return _0x120580(_0x20d343- -0x38d,_0x34b090,_0x34b090-_0xeb0131._0x277646,_0xde4b61-_0xeb0131._0x4ae59c);}const _0xa064af=_0x1fe9e1[_0x5ae906(_0x3e3ead._0x2b420d,0x1eb,_0x3e3ead._0x5bbce0,0x30e)](_0x310f95);function _0x35dd28(_0x1eb6ad,_0x2cc412,_0x83689b,_0x3505bf){return _0x120580(_0x2cc412- -_0x3bf047._0x435a41,_0x3505bf,_0x83689b-_0x3bf047._0x5b0a08,_0x3505bf-0xdb);}const _0xfa5897=_0x1fe9e1[_0x5ae906(0x293,_0x3e3ead._0x41d8c9,_0x3e3ead._0x3def63,_0x3e3ead._0x3d3ac5)](_0xa064af,'.tmp.'+_0x1fe9e1[_0x35dd28(0x251,_0x3e3ead._0x50632c,_0x3e3ead._0x13c98f,_0x3e3ead._0x545a44)](_0x310f95)+'.'+Date[_0x35dd28(0x207,_0x3e3ead._0x265042,_0x3e3ead._0x4f8405,0x242)]()+'.'+Math[_0x35dd28(0x2f0,_0x3e3ead._0xc7e7d2,0x79,_0x3e3ead._0x2561e8)]()['toString'](0x24)[_0x35dd28(0xd6,_0x3e3ead._0x52304c,_0x3e3ead._0x345814,0x128)](0x2));await _0x539859(_0xfa5897,_0x17e975),await _0x459030(_0xfa5897,_0x310f95);}function sha256(_0x35bb76){const _0x396744={_0x27b5d0:0x24d,_0x105800:0x1ef,_0x4ed279:0x15,_0x54943d:0x5c,_0x2e82e3:0x8c,_0x558ac8:0x23f},_0x304c56={_0x40d058:0x72,_0x1b1a55:0x6};function _0x7bb0aa(_0x8e6196,_0x50f853,_0x535ad6,_0x51c8f2){return _0x43e84c(_0x8e6196-_0x304c56._0x40d058,_0x8e6196,_0x535ad6-_0x304c56._0x1b1a55,_0x50f853- -0x385);}function _0x555b47(_0x1111bf,_0x485606,_0x21b2d9,_0x4d8c9b){return _0x120580(_0x485606- -0x75,_0x1111bf,_0x21b2d9-0xdb,_0x4d8c9b-0x4f);}return createHash('sha256')[_0x7bb0aa(_0x396744._0x27b5d0,0x13f,0x109,_0x396744._0x105800)](_0x35bb76)[_0x7bb0aa(-_0x396744._0x4ed279,_0x396744._0x54943d,_0x396744._0x2e82e3,0x179)](_0x7bb0aa(0x3f,0x17e,0x29e,_0x396744._0x558ac8));}function countLines(_0x34f1cd){const _0x27ec8e={_0x2c1e2f:0x2e,_0x190f9c:0x2a0,_0xf10619:0x1f4,_0x2322a1:0x349},_0x49795f={_0x2783da:0x88,_0x59bd0:0x11a},_0x1d1ef7={_0x545356:0x176,_0xd6b8ae:0x293},_0x39b950=_0x34f1cd['replace'](/\n$/,'');function _0x16e31c(_0x29ece4,_0x32c28a,_0x329180,_0x545de7){return _0x43e84c(_0x29ece4-0x1ef,_0x545de7,_0x329180-_0x1d1ef7._0x545356,_0x32c28a- -_0x1d1ef7._0xd6b8ae);}function _0x422e10(_0x209f98,_0xc8e6f2,_0x241acb,_0x18cd20){return _0x120580(_0x241acb- -0x5d6,_0x18cd20,_0x241acb-_0x49795f._0x2783da,_0x18cd20-_0x49795f._0x59bd0);}return _0x39b950[_0x422e10(-_0x27ec8e._0x2c1e2f,0x4d,-0x5f,-0xc)]===0x0?0x0:_0x39b950[_0x16e31c(0x2d2,_0x27ec8e._0x190f9c,_0x27ec8e._0xf10619,_0x27ec8e._0x2322a1)]('\x0a')['length'];}function calculateLineNumbers(_0x18f2c1,_0x31aff6,_0x33a27f,_0x4efabb){const _0x2a2a7f={_0x45f80d:0x610,_0x369d90:0x608},_0xb619eb=_0x18f2c1['slice'](0x0,_0x4efabb)['split']('\x0a')[_0x2091eb(0x72a,_0x2a2a7f._0x45f80d,0x71c,_0x2a2a7f._0x369d90)],_0x2e2c4b=countLines(_0x31aff6);function _0x2091eb(_0x177fc3,_0x422f32,_0x1adc2d,_0x282882){return _0x43e84c(_0x177fc3-0x48,_0x422f32,_0x1adc2d-0x110,_0x1adc2d-0x249);}const _0x4a1162=countLines(_0x33a27f);return{'oldStartLine':_0xb619eb,'oldEndLine':_0xb619eb+_0x2e2c4b-0x1,'newStartLine':_0xb619eb,'newEndLine':_0xb619eb+_0x4a1162-0x1,'oldLineCount':_0x2e2c4b,'newLineCount':_0x4a1162};}function createFileEditTool(_0x2b097e={}){const _0x50d4e4={_0x3debdf:0xc3,_0x3e3a2e:0x233,_0x12767a:0xb2,_0x43a9c6:0x64,_0x162095:0x265,_0x1678f4:0x19a,_0x1acc34:0x20e,_0x584aaa:0x2df,_0x44d03a:0xe0,_0x5e3fe1:0x2b,_0x527b81:0xa5,_0x2c3138:0x81,_0x114d5b:0x12,_0x1df49e:0x1a,_0x5c4ce6:0x50,_0x47ca32:0x42,_0x589a3b:0x153,_0x1a4a1a:0x125,_0x4cb793:0xc5,_0x166d0f:0xf9,_0x407cb0:0xf,_0x2d1fbf:0x75,_0x284f9b:0x123,_0x54e404:0xaf,_0x57d145:0x7a,_0x4433a0:0x25,_0xe43e12:0x192,_0x23e817:0x1ad,_0x37c182:0x2e5,_0x40b8cd:0xa8,_0x120424:0x49},_0x389f2c={_0x22a9fe:0xf7,_0x3c3cce:0x15e,_0x449543:0x1a6,_0x6deb69:0x15b,_0x1646bc:0x1f9,_0x448cd6:0x37a,_0x3e35ef:0x2b4,_0x4eff95:0xee,_0x275e16:0x175,_0x998f8:0x253,_0x3a9f36:0x95,_0x4f7b92:0x47a,_0x236796:0x1bb,_0x1b8e22:0x2a7,_0x37d328:0x1aa,_0x5f4da0:0x225,_0x43d31b:0x141,_0x51dddc:0x27c,_0x16778e:0x282,_0x3736e1:0x3ae,_0x288ed7:0x25e,_0x5abf9e:0x287,_0x2aacc8:0x214,_0x51bf15:0x1c5,_0x582aee:0x2a6,_0x2cacec:0x2b4,_0x16ae3a:0xb9,_0x1005d6:0x71,_0x955c1c:0x152,_0x3909bb:0x30c,_0x2236b7:0x12b,_0x413895:0x230,_0x34422c:0x19,_0x3da950:0x385,_0xdda25e:0x1ac,_0xed69af:0x1d9,_0x265bd6:0x12d,_0xe0b07b:0x1e0,_0x8f95cb:0x8d,_0x18a23c:0x16e,_0x4fe5a7:0x1b2,_0x528013:0x11e,_0x2949e5:0x1ad,_0x1ddf13:0x203,_0x55b385:0x178,_0x470239:0x8f,_0x362fe4:0x265,_0x36a7ac:0x1ac,_0x34aa32:0x2ba,_0x430755:0x340},_0x3e5387={_0x49b9f7:0x120,_0x3d7f9d:0x4d8},_0x38b4a5={_0x1891a9:0x5a,_0x43cc13:0x110},_0x7d485c=_0x1fe9e1[_0x53cf63(-0x87,-_0x50d4e4._0x3debdf,-0x190,-_0x50d4e4._0x3e3a2e)](_0x2b097e[_0x53cf63(-_0x50d4e4._0x12767a,0x3d,-0xae,-0x1f)]??process[_0x53cf63(-_0x50d4e4._0x43a9c6,-_0x50d4e4._0x162095,-_0x50d4e4._0x1678f4,-0x1e9)]());function _0x53cf63(_0x15b4b2,_0x194a94,_0x3f63b9,_0x21e9bb){return _0x120580(_0x3f63b9- -0x5b9,_0x21e9bb,_0x3f63b9-_0x38b4a5._0x1891a9,_0x21e9bb-_0x38b4a5._0x43cc13);}const _0x23b570=(_0x2b097e[_0x53cf63(-_0x50d4e4._0x1acc34,-_0x50d4e4._0x584aaa,-0x200,-0x304)]??[])['map'](_0x15fde6=>_0x1fe9e1['resolve'](_0x15fde6)),_0x28ea33=_0x2b097e[_0x297938(0xba,-_0x50d4e4._0x44d03a,-0x7e,-0x18b)]??_0x53cf63(_0x50d4e4._0x5e3fe1,-_0x50d4e4._0x527b81,-_0x50d4e4._0x2c3138,_0x50d4e4._0x114d5b);function _0x297938(_0x27b978,_0x3747ad,_0x463993,_0x832a3){return _0x43e84c(_0x27b978-0x186,_0x3747ad,_0x463993-_0x3e5387._0x49b9f7,_0x463993- -_0x3e5387._0x3d7f9d);}return defineTool({'name':_0x28ea33,'description':_0x53cf63(-0x3,0x5,0xd,_0x50d4e4._0x1df49e),'inputSchema':{'type':_0x53cf63(-_0x50d4e4._0x5c4ce6,0x5c,_0x50d4e4._0x47ca32,_0x50d4e4._0x589a3b),'properties':{'filePath':{'type':_0x53cf63(-0xb3,-0x1bc,-0xc5,-0x131)},'oldText':{'type':_0x53cf63(-_0x50d4e4._0x1a4a1a,0x6e,-_0x50d4e4._0x4cb793,-0x101)},'newText':{'type':_0x297938(-_0x50d4e4._0x166d0f,-_0x50d4e4._0x407cb0,-0x88,_0x50d4e4._0x2d1fbf)},'dryRun':{'type':_0x297938(-0x287,-_0x50d4e4._0x284f9b,-0x188,-_0x50d4e4._0x54e404)}},'required':[_0x53cf63(-0x178,0xa4,-_0x50d4e4._0x57d145,-_0x50d4e4._0x4433a0),_0x297938(-0x2b2,-_0x50d4e4._0xe43e12,-_0x50d4e4._0x23e817,-_0x50d4e4._0x37c182),_0x297938(0x17c,_0x50d4e4._0x40b8cd,0x65,_0x50d4e4._0x120424)]},async *'execute'(_0x497c2e){const _0x38f824={_0x2f4745:0x22a,_0x352a32:0xd1},_0x10cbf5=resolveAllowedPath(_0x7d485c,_0x23b570,_0x497c2e['filePath']);await assertWorkspaceFile(_0x10cbf5);const _0x1c1a30=await _0xf820a7(_0x10cbf5),_0x490727=await _0x432871(_0x10cbf5),_0x320c1f=detectEol(_0x490727),_0x2e9207=normalizeToLf(_0x490727[_0x2e1679(_0x389f2c._0x22a9fe,_0x389f2c._0x3c3cce,_0x389f2c._0x449543,_0x389f2c._0x6deb69)](_0x3cc866(_0x389f2c._0x1646bc,_0x389f2c._0x448cd6,_0x389f2c._0x3e35ef,0x180))),_0x339f5b=normalizeToLf(_0x497c2e[_0x3cc866(_0x389f2c._0x4eff95,0xc0,0x112,_0x389f2c._0x275e16)]),_0x263858=normalizeToLf(_0x497c2e['newText']),_0x5df2c6=_0x2e9207[_0x3cc866(0xbf,_0x389f2c._0x998f8,0x1a8,_0x389f2c._0x3a9f36)](_0x339f5b);if(_0x5df2c6===-0x1){const _0x518e81=_0x339f5b[_0x3cc866(_0x389f2c._0x4f7b92,0x44a,0x344,0x286)](0x0,0x64)[_0x3cc866(0xc3,0xdf,_0x389f2c._0x236796,_0x389f2c._0x1b8e22)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x518e81+(_0x339f5b[_0x2e1679(0xf8,0x1f2,_0x389f2c._0x37d328,_0x389f2c._0x5f4da0)]>0x64?'...':'')+'\x22',{'filePath':_0x497c2e[_0x3cc866(_0x389f2c._0x43d31b,_0x389f2c._0x51dddc,_0x389f2c._0x16778e,0x2d5)]});}const _0x47476a=_0x2e9207['slice'](0x0,_0x5df2c6)+_0x263858+_0x2e9207[_0x3cc866(_0x389f2c._0x3736e1,_0x389f2c._0x288ed7,0x344,0x2c4)](_0x5df2c6+_0x339f5b[_0x2e1679(_0x389f2c._0x5abf9e,0x2b9,0x1df,0x225)]);function _0x3cc866(_0x4d02d9,_0x37907a,_0x39d88d,_0x4f55ee){return _0x297938(_0x4d02d9-0x136,_0x4f55ee,_0x39d88d-0x2bf,_0x4f55ee-0x1a3);}const _0x1ab023=convertEol(_0x47476a,_0x320c1f),_0x9a72b4=Buffer[_0x3cc866(_0x389f2c._0x2aacc8,0x1b7,0x14d,_0x389f2c._0x51bf15)](_0x1ab023,_0x3cc866(_0x389f2c._0x582aee,0x265,_0x389f2c._0x2cacec,0x29a)),_0x46b482=sha256(_0x490727),_0x1a95b7=sha256(_0x9a72b4);function _0x2e1679(_0x5d9ddf,_0x27cccd,_0x1a8c14,_0x27fa2b){return _0x297938(_0x5d9ddf-0x17e,_0x5d9ddf,_0x27fa2b-_0x38f824._0x2f4745,_0x27fa2b-_0x38f824._0x352a32);}const _0xc232ac=_0x46b482===_0x1a95b7,_0x3d07c4=_0x497c2e[_0x2e1679(_0x389f2c._0x16ae3a,_0x389f2c._0x1005d6,_0x389f2c._0x955c1c,0xbd)]??![];return!_0x3d07c4&&!_0xc232ac&&await atomicWrite(_0x10cbf5,_0x9a72b4),yield createToolOutput(_0xc232ac?_0x3cc866(0x1ab,_0x389f2c._0x3909bb,0x204,_0x389f2c._0x2236b7):_0x3d07c4?'Validated\x20(dry\x20run:\x20no\x20write).':_0x3cc866(_0x389f2c._0x413895,_0x389f2c._0x34422c,_0x389f2c._0x22a9fe,0x146),{'filePath':_0x497c2e[_0x3cc866(_0x389f2c._0x3da950,_0x389f2c._0xdda25e,0x282,_0x389f2c._0xed69af)],'resolvedPath':_0x10cbf5,'created':_0x1c1a30[_0x3cc866(0x258,_0x389f2c._0x265bd6,0x134,0xcf)][_0x2e1679(_0x389f2c._0xe0b07b,0x83,_0x389f2c._0x8f95cb,_0x389f2c._0x18a23c)](),'modified':_0x1c1a30[_0x3cc866(0xd3,_0x389f2c._0x4fe5a7,_0x389f2c._0x528013,0x4c)][_0x3cc866(0x311,_0x389f2c._0x2949e5,_0x389f2c._0x1ddf13,_0x389f2c._0x55b385)](),'size':_0x1c1a30[_0x2e1679(0x1a4,_0x389f2c._0x470239,0x2b7,0x17a)],'eol':_0x320c1f,'oldTextLength':_0x339f5b[_0x2e1679(0x305,0x15f,0x24d,0x225)],'newTextLength':_0x263858['length'],'bytesWritten':_0xc232ac||_0x3d07c4?0x0:_0x9a72b4[_0x3cc866(_0x389f2c._0x362fe4,_0x389f2c._0x36a7ac,_0x389f2c._0x34aa32,_0x389f2c._0x430755)],'beforeSha':_0x46b482,'afterSha':_0x1a95b7,'dryRun':_0x3d07c4,'noChange':_0xc232ac,'lineNumbers':calculateLineNumbers(_0x2e9207,_0x339f5b,_0x263858,_0x5df2c6)}),void 0x0;}});}function _0x43e84c(_0x1ebd5c,_0x3a19f1,_0x3d5047,_0x271a90){return _0x4f9a(_0x271a90-0x167,_0x3a19f1);}import{mkdir as _0x87910,rename as _0x44d4df,stat as _0x17feeb,writeFile as _0x3e2c96}from'fs/promises';import*as _0x5043d8 from'path';async function atomicWrite2(_0xb776f2,_0x30bc11){const _0x4ad866={_0x1d4b2e:0x25,_0x3bbd92:0x87,_0x5b6f7e:0x9c,_0x3f3a65:0xa7,_0x135d68:0x5b,_0x155374:0xb5,_0x2f24a1:0x581,_0x11bb4e:0x3c9,_0x20e799:0x737,_0x4e79e0:0x6bb},_0x21adac={_0x117329:0x4f9},_0x5678bc={_0x1c4c3b:0x62,_0x537b05:0x37},_0x55f920=_0x5043d8[_0x5d7477(-_0x4ad866._0x1d4b2e,-0x15b,-0xee,-0xde)](_0xb776f2);await _0x87910(_0x55f920,{'recursive':!![]});const _0xdaed70=_0x5043d8['join'](_0x55f920,_0x5d7477(-_0x4ad866._0x3bbd92,_0x4ad866._0x5b6f7e,0x51,0x3e)+_0x5043d8[_0x5d7477(-_0x4ad866._0x3f3a65,-0xce,-0x5a,-0x15d)](_0xb776f2)+'.'+Date['now']()+'.'+Math[_0x5d7477(0x3,_0x4ad866._0x135d68,0x30,_0x4ad866._0x155374)]()[_0x213694(_0x4ad866._0x2f24a1,_0x4ad866._0x11bb4e,0x545,0x50f)](0x24)[_0x213694(_0x4ad866._0x20e799,_0x4ad866._0x4e79e0,0x765,0x663)](0x2));function _0x213694(_0xb0dc31,_0x372750,_0x753202,_0x4594f2){return _0x120580(_0x4594f2-_0x5678bc._0x1c4c3b,_0x372750,_0x753202-0x1e7,_0x4594f2-_0x5678bc._0x537b05);}await _0x3e2c96(_0xdaed70,_0x30bc11);function _0x5d7477(_0x1b8f8,_0x41c85f,_0x4e9f6b,_0xf7c746){return _0x43e84c(_0x1b8f8-0x153,_0x4e9f6b,_0x4e9f6b-0xe4,_0x1b8f8- -_0x21adac._0x117329);}await _0x44d4df(_0xdaed70,_0xb776f2);}function createFileNewTool(_0x4e5db7={}){const _0x4dc2fc={_0x492f15:0x40e,_0x16c298:0x507,_0x17deca:0x5d8,_0xe907f5:0x5d5,_0x397809:0x1fb,_0x302615:0x1cd,_0x262dd7:0x14b,_0xd7daf3:0x167,_0x465504:0x141,_0x434782:0x2c6,_0x417694:0x434,_0x5ad7a8:0x492,_0x432125:0x47e,_0x20a7a5:0x474,_0xa296f0:0x492,_0x5670b2:0x4dd,_0x4d6f5a:0x50e},_0x461a51={_0x4eff66:0x146,_0x20141b:0x5b,_0x587d2a:0x3c,_0x1ce5f1:0x4b7,_0x5b028c:0x52e,_0x366a2a:0x5c9,_0x49b561:0x506,_0xb4f1af:0x526,_0x125cf5:0x6aa,_0x5d354c:0x4,_0x222196:0x61e,_0x1a696a:0x55,_0x59751e:0x5b1,_0x405f5f:0x4de,_0x44cdc9:0x10d,_0x3897dd:0x6,_0x1fecba:0x86,_0x450293:0x3d,_0x2e9dde:0x54f,_0xa97d02:0x540,_0x55981b:0x685},_0x67f001={_0x3099b6:0xa8},_0x1f98cb={_0x3adbe1:0x62,_0x13ba02:0xf0,_0x15e77a:0x167},_0x44f81d=_0x5043d8[_0x3c39c8(0x3c7,0x393,_0x4dc2fc._0x492f15,_0x4dc2fc._0x16c298)](_0x4e5db7[_0x3c39c8(0x4a9,_0x4dc2fc._0x17deca,0x43f,_0x4dc2fc._0xe907f5)]??process[_0x54a76c(_0x4dc2fc._0x397809,0xa5,_0x4dc2fc._0x302615,_0x4dc2fc._0x262dd7)]()),_0x9602af=(_0x4e5db7[_0x54a76c(0x1a0,0x86,_0x4dc2fc._0xd7daf3,0x22b)]??[])['map'](_0x167e96=>_0x5043d8[_0x3c39c8(0x3c7,0x491,0x2ed,0x30d)](_0x167e96)),_0x5ccc88=_0x4e5db7['name']??_0x54a76c(0xf8,_0x4dc2fc._0x465504,0x18d,_0x4dc2fc._0x434782);function _0x3c39c8(_0x21f7c5,_0x45b926,_0x5c13a8,_0x39aee0){return _0x120580(_0x21f7c5- -_0x1f98cb._0x3adbe1,_0x39aee0,_0x5c13a8-_0x1f98cb._0x13ba02,_0x39aee0-_0x1f98cb._0x15e77a);}function _0x54a76c(_0x1b2e01,_0x3ca518,_0x4dec36,_0x32ec7c){return _0x43e84c(_0x1b2e01-0x3,_0x3ca518,_0x4dec36-_0x67f001._0x3099b6,_0x4dec36- -0x1ae);}return defineTool({'name':_0x5ccc88,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x54a76c(0x30d,_0x4dc2fc._0x417694,0x3a9,0x499),'properties':{'filePath':{'type':_0x3c39c8(_0x4dc2fc._0x5ad7a8,_0x4dc2fc._0x432125,0x3f2,_0x4dc2fc._0x20a7a5)},'content':{'type':_0x3c39c8(_0x4dc2fc._0xa296f0,0x503,0x373,0x37f)}},'required':[_0x3c39c8(_0x4dc2fc._0x5670b2,0x4dc,_0x4dc2fc._0x4d6f5a,0x5d5),'content']},async *'execute'(_0xfcebaa){const _0x270bf1=resolveAllowedPath(_0x44f81d,_0x9602af,_0xfcebaa[_0x4ef256(-_0x461a51._0x4eff66,-_0x461a51._0x20141b,-0x157,_0x461a51._0x587d2a)]);function _0x564c61(_0x1afc06,_0x27c786,_0x5d8476,_0x3ea4d6){return _0x54a76c(_0x1afc06-0x189,_0x3ea4d6,_0x1afc06-0x2e1,_0x3ea4d6-0xf1);}const _0x10a52b=await _0x17feeb(_0x270bf1)[_0x564c61(_0x461a51._0x1ce5f1,0x4ec,0x499,_0x461a51._0x5b028c)](()=>!![])[_0x564c61(_0x461a51._0x366a2a,0x498,0x4ea,_0x461a51._0x49b561)](()=>![]),_0x4b9ea4=Buffer[_0x564c61(0x499,0x452,0x511,0x354)](_0xfcebaa[_0x564c61(0x623,0x62e,_0x461a51._0xb4f1af,_0x461a51._0x125cf5)],_0x4ef256(0xb0,-0x29,0x2,_0x461a51._0x5d354c));await atomicWrite2(_0x270bf1,_0x4b9ea4),yield createToolOutput(_0x564c61(_0x461a51._0x222196,0x536,0x5c6,0x5fe)+_0xfcebaa[_0x4ef256(-0x9e,-_0x461a51._0x20141b,-_0x461a51._0x1a696a,0xbe)]+'.',{'filePath':_0xfcebaa[_0x564c61(0x5ce,0x5c2,0x6cf,_0x461a51._0x59751e)],'resolvedPath':_0x270bf1,'bytes':_0x4b9ea4[_0x564c61(0x606,0x65f,_0x461a51._0x405f5f,0x64f)],'lines':_0xfcebaa[_0x4ef256(-_0x461a51._0x44cdc9,-_0x461a51._0x3897dd,-0x7,0x4b)][_0x4ef256(-_0x461a51._0x1fecba,_0x461a51._0x450293,-0x20,0xee)](/\r?\n/)['length'],'created':new Date()[_0x564c61(_0x461a51._0x2e9dde,0x59a,_0x461a51._0xa97d02,_0x461a51._0x55981b)](),'overwritten':_0x10a52b});function _0x4ef256(_0x45f668,_0x12994a,_0x48f513,_0x3d8562){return _0x3c39c8(_0x12994a- -0x538,_0x12994a-0x1d8,_0x48f513-0x1af,_0x3d8562);}return void 0x0;}});}import{readFile as _0x190475,stat as _0x3dabd7}from'fs/promises';import*as _0x5bdadf from'path';function stripUtfBom(_0x5df301){const _0x13bdc3={_0x400bdd:0x4f3,_0x161e34:0x451,_0x4e380d:0x43d,_0x173bab:0x4a6,_0x41b60e:0x3e8,_0x3006a8:0x4a7},_0x580bb5={_0x52a5ee:0x15b,_0x436888:0x125};function _0x35487d(_0x2d20a3,_0x414fab,_0x3cee0c,_0x5533a8){return _0x43e84c(_0x2d20a3-0x1b4,_0x3cee0c,_0x3cee0c-0x148,_0x414fab-0x10d);}function _0x2f399c(_0x1c29ab,_0x3b83c0,_0x51ce25,_0xb61e91){return _0x120580(_0x3b83c0- -_0x580bb5._0x52a5ee,_0x51ce25,_0x51ce25-0xe6,_0xb61e91-_0x580bb5._0x436888);}return _0x5df301[_0x35487d(_0x13bdc3._0x400bdd,_0x13bdc3._0x161e34,0x501,0x3a6)](0x0)===0xfeff?_0x5df301[_0x2f399c(_0x13bdc3._0x4e380d,_0x13bdc3._0x173bab,_0x13bdc3._0x41b60e,_0x13bdc3._0x3006a8)](0x1):_0x5df301;}function clampLine(_0x3dc955,_0x54ce4f){const _0x2160b5={_0x4a3595:0x5fc,_0x43e6e2:0x6f8},_0x158c21={_0x5d9932:0x4f};if(!Number[_0x17fd49(0x6be,_0x2160b5._0x4a3595,0x6ba,_0x2160b5._0x43e6e2)](_0x3dc955))return 0x1;function _0x17fd49(_0x302d8b,_0xfe4349,_0x4c0982,_0x237239){return _0x120580(_0xfe4349-0x41,_0x302d8b,_0x4c0982-0x21,_0x237239-_0x158c21._0x5d9932);}return Math['max'](0x1,Math['min'](Math['trunc'](_0x3dc955),_0x54ce4f));}function createFileReadTool(_0x28e7f3={}){const _0x5e20e0={_0x33eb0c:0x269,_0xd16d8d:0xa5,_0x42b347:0x110,_0xae762d:0x129,_0xc176a3:0x235,_0x34644c:0x28d,_0x4e5b5d:0x154,_0x54e421:0x2c,_0x5c320c:0x151,_0x841ba:0x155,_0x190234:0x1d1,_0x21472d:0x280,_0x420307:0x1fb,_0x31e92a:0x2a2,_0x58cc19:0x34d,_0x506d30:0xf6,_0x38771f:0x40,_0x2909bc:0x49},_0x301840={_0x340a2d:0x55b,_0x1cb710:0x4c7,_0x1613a8:0x583,_0x18a1a6:0x2d7,_0x38236e:0x2c4,_0x17b6c9:0x3b3,_0x90cb10:0x324,_0x13dbef:0x7d4,_0x1b96b1:0x6b2,_0x521bce:0x701,_0x5bf3c4:0x750,_0x13a6ab:0x65d,_0xdf0c59:0x86f,_0x13530c:0x50d,_0x3fbf9b:0x64a,_0x43e6bc:0x23d,_0x239dc9:0x326,_0x46a276:0x213,_0x23366e:0x62f,_0x20b846:0x650,_0x559242:0x4ad,_0x1f685e:0x58d,_0x36665:0x5cb,_0x47b3ce:0x56b,_0x55ced6:0x60b,_0x5778e2:0x613,_0x2adcb2:0x62a,_0x16558f:0x65c,_0x108834:0x3ba,_0x4a6b34:0x65a,_0x23b903:0x591,_0x518ffc:0x730,_0x14dfb2:0x6e8,_0xd4eeb1:0x7fa,_0x45f430:0x6c6,_0x3c73f6:0x76b,_0x129bd9:0x566,_0x17b116:0x46b,_0x36690c:0x32f,_0x4e4402:0x761,_0x163d07:0x6ad,_0x4dd061:0x5f3,_0x343f6b:0x770,_0x3dcf25:0x6b6,_0x5c5e60:0x5c0,_0x5df50a:0x56c,_0xda7047:0x536,_0xec3065:0x7a0,_0x23a7d8:0x80d,_0x357b78:0x77d,_0x465447:0x38d,_0x31c77e:0x5c1},_0x23dd24={_0x22edfd:0x1e1},_0x5c7c2e={_0x2068be:0x21},_0x3681e1=_0x5bdadf[_0x5b2836(_0x5e20e0._0x33eb0c,0x142,0xc5,0x1c4)](_0x28e7f3[_0x3b7806(_0x5e20e0._0xd16d8d,_0x5e20e0._0x42b347,_0x5e20e0._0xae762d,0x91)]??process[_0x5b2836(0x2bf,0x21a,_0x5e20e0._0xc176a3,0x1ba)]()),_0x5e606d=(_0x28e7f3[_0x5b2836(_0x5e20e0._0x34644c,0x6f,0x94,_0x5e20e0._0x4e5b5d)]??[])['map'](_0xca629a=>_0x5bdadf['resolve'](_0xca629a));function _0x3b7806(_0x5b74ae,_0x12decb,_0xb75798,_0x481629){return _0x120580(_0xb75798- -0x3e2,_0x5b74ae,_0xb75798-_0x5c7c2e._0x2068be,_0x481629-0x36);}function _0x5b2836(_0xba2fad,_0x3fe570,_0x55fa86,_0xc34a45){return _0x120580(_0xc34a45- -0x265,_0xba2fad,_0x55fa86-_0x23dd24._0x22edfd,_0xc34a45-0x165);}const _0x905bd9=_0x28e7f3['name']??_0x3b7806(0xc6,-0xcb,-_0x5e20e0._0x54e421,-_0x5e20e0._0x5c320c);return defineTool({'name':_0x905bd9,'description':_0x3b7806(0x1d7,_0x5e20e0._0x841ba,0x1d7,0x2a2),'inputSchema':{'type':_0x3b7806(_0x5e20e0._0x190234,0x241,0x219,_0x5e20e0._0x21472d),'properties':{'path':{'type':_0x5b2836(0x335,0x1d7,_0x5e20e0._0x420307,0x28f)},'lineStart':{'type':_0x5b2836(0x287,_0x5e20e0._0x31e92a,0x470,_0x5e20e0._0x58cc19)},'lineEnd':{'type':_0x5b2836(0x315,0x414,0x3f5,0x34d)}},'required':[_0x3b7806(-0xec,-_0x5e20e0._0x506d30,-_0x5e20e0._0x38771f,-_0x5e20e0._0x2909bc)]},async *'execute'(_0x5c246a){const _0x324634={_0x5b0b8d:0x572},_0x3f95b0={_0x4601c7:0x23,_0x47416c:0x19a},_0x2ce753=resolveAllowedPath(_0x3681e1,_0x5e606d,_0x5c246a[_0x85fc74(0x336,0x2d7,0x379,0x304)]);function _0x85fc74(_0x581dce,_0x3e4711,_0x5a5fc,_0x1bdce8){return _0x5b2836(_0x1bdce8,_0x3e4711-0x157,_0x5a5fc-_0x3f95b0._0x4601c7,_0x3e4711-_0x3f95b0._0x47416c);}await assertWorkspaceFile(_0x2ce753);const _0x31caaf=await _0x3dabd7(_0x2ce753),_0x96febf=await _0x190475(_0x2ce753);if(isProbablyBinary(_0x96febf))throw new ToolExecutionError(_0x1a2dd7(_0x301840._0x340a2d,0x475,_0x301840._0x1cb710,_0x301840._0x1613a8)+_0x5c246a[_0x85fc74(0x287,_0x301840._0x18a1a6,_0x301840._0x38236e,_0x301840._0x17b6c9)],{'path':_0x5c246a['path']});function _0x1a2dd7(_0x41a830,_0x2f6f7a,_0x162a0f,_0x1c5375){return _0x3b7806(_0x41a830,_0x2f6f7a-0xa,_0x1c5375-_0x324634._0x5b0b8d,_0x1c5375-0x152);}let _0x1e8e6b=_0x96febf[_0x85fc74(_0x301840._0x90cb10,0x3e2,0x2c3,0x38c)](_0x1a2dd7(_0x301840._0x13dbef,0x80b,_0x301840._0x1b96b1,_0x301840._0x521bce));const _0x1cfce7=_0x1e8e6b['charCodeAt'](0x0)===0xfeff;_0x1e8e6b=stripUtfBom(_0x1e8e6b);const _0x397b3c=_0x1e8e6b[_0x1a2dd7(_0x301840._0x5bf3c4,_0x301840._0x13a6ab,_0x301840._0xdf0c59,0x767)](/\r?\n/),_0x257db9={'path':_0x5c246a[_0x1a2dd7(_0x301840._0x13530c,0x45f,_0x301840._0x3fbf9b,0x532)],'resolvedPath':_0x2ce753,'created':_0x31caaf[_0x85fc74(_0x301840._0x43e6bc,_0x301840._0x239dc9,_0x301840._0x46a276,0x311)][_0x1a2dd7(0x771,_0x301840._0x23366e,0x76b,_0x301840._0x20b846)](),'modified':_0x31caaf[_0x1a2dd7(_0x301840._0x559242,_0x301840._0x1f685e,_0x301840._0x36665,_0x301840._0x47b3ce)][_0x1a2dd7(_0x301840._0x55ced6,0x717,_0x301840._0x5778e2,0x650)](),'size':_0x31caaf[_0x1a2dd7(0x542,_0x301840._0x2adcb2,0x6fa,_0x301840._0x16558f)],'encoding':'utf8','bomStripped':_0x1cfce7,'truncated':![],'totalLines':_0x397b3c[_0x85fc74(0x4a8,0x4ac,_0x301840._0x108834,0x554)]};if(_0x5c246a[_0x1a2dd7(_0x301840._0x4a6b34,0x642,_0x301840._0x23b903,0x6ac)]!==void 0x0||_0x5c246a[_0x1a2dd7(_0x301840._0x518ffc,_0x301840._0x14dfb2,_0x301840._0xd4eeb1,_0x301840._0x45f430)]!==void 0x0){const _0x43a5b4=clampLine(_0x5c246a['lineStart']??0x1,_0x397b3c[_0x1a2dd7(0x6a2,_0x301840._0x3c73f6,0x62e,0x707)]),_0x514d1e=clampLine(_0x5c246a[_0x85fc74(_0x301840._0x129bd9,_0x301840._0x17b116,0x3e8,_0x301840._0x36690c)]??_0x397b3c[_0x1a2dd7(_0x301840._0x4e4402,_0x301840._0x163d07,0x6ad,0x707)],_0x397b3c['length']),_0x2c65b9=Math[_0x1a2dd7(_0x301840._0x4dd061,_0x301840._0x343f6b,_0x301840._0x3dcf25,0x6a3)](_0x43a5b4,_0x514d1e),_0x239d26=Math[_0x1a2dd7(0x59a,_0x301840._0x5c5e60,_0x301840._0x5df50a,0x54f)](_0x43a5b4,_0x514d1e),_0x38bfad=_0x397b3c[_0x85fc74(0x4db,_0x301840._0xda7047,0x54f,0x49a)](_0x2c65b9-0x1,_0x239d26)[_0x1a2dd7(_0x301840._0xec3065,_0x301840._0x23a7d8,0x675,_0x301840._0x357b78)]((_0x315504,_0x2eaa87)=>_0x2c65b9+_0x2eaa87+'|'+_0x315504)['join']('\x0a');return yield createToolOutput(_0x38bfad,{..._0x257db9,'lineRange':{'lineStart':_0x2c65b9,'lineEnd':_0x239d26,'linesTotal':_0x397b3c[_0x85fc74(_0x301840._0x465447,0x4ac,_0x301840._0x31c77e,0x38b)]}}),void 0x0;}return yield createToolOutput(_0x1e8e6b,_0x257db9),void 0x0;}});}import{stat as _0x5563a6}from'fs/promises';import*as _0x1e9b91 from'path';import{execSync,spawn as _0x49c149}from'child_process';import{existsSync}from'fs';import{stat as _0x7a90a7}from'fs/promises';import*as _0x414770 from'os';import*as _0x1bc847 from'path';import{rgPath as _0xef580c}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x2e587a={_0x10fcb7:0x20f,_0x15af62:0x316,_0x30767b:0x219,_0x4877a9:0x143,_0x4c86db:0x99,_0x30f905:0x3d,_0xd4144d:0x462,_0x4afd03:0x155,_0x45466d:0x3b,_0x4b1c12:0x45e,_0x212b27:0x33d,_0x21f88c:0x116,_0x39914d:0x3,_0x57f96b:0x32,_0x37d1b9:0x123,_0x4a4e61:0x140,_0x522290:0x32b,_0x427482:0x62,_0xf04b7:0x56,_0x3c28c4:0x156,_0x47bd84:0x3e,_0x2bd080:0x89,_0x1bf6ae:0x4,_0x47ca4d:0x3a1,_0x4ca1f4:0x465,_0x5f3219:0x182,_0x47f014:0x5e,_0xd15272:0x466,_0x5c1831:0x358,_0x594c93:0x2b9,_0x20fc98:0x24d,_0x265ab8:0x20b,_0x6da54e:0x1ce,_0x305bfa:0x90,_0x554412:0x127,_0x1e5362:0x3a0,_0x14646d:0x424,_0x17d334:0x2b5,_0x1bae3a:0x451,_0x31ceea:0x171,_0x55bab7:0x329,_0x3bc56d:0x250,_0x223535:0x1e9,_0x28f293:0x326,_0x3c9df3:0x141,_0x267a7a:0xf9},_0x72198d={_0x53ee9d:0x1f},_0x29fdf0={_0x49ef42:0x1af,_0x494ce9:0x43};function _0x312fb8(_0x479af4,_0x54e932,_0xb56bee,_0x3c8005){return _0x120580(_0x54e932- -_0x29fdf0._0x49ef42,_0x3c8005,_0xb56bee-0x102,_0x3c8005-_0x29fdf0._0x494ce9);}const _0x57e6a1=_0x414770[_0x312fb8(_0x2e587a._0x10fcb7,0x253,0x15d,_0x2e587a._0x15af62)]()===_0x4bd5e6(0xb7,0xd4,_0x2e587a._0x30767b,_0x2e587a._0x4877a9),_0x6f2d88=_0x57e6a1?[_0x1bc847[_0x4bd5e6(_0x2e587a._0x4c86db,-0x1d,0x172,_0x2e587a._0x30f905)](process[_0x312fb8(_0x2e587a._0xd4144d,0x32b,0x37b,0x22b)][_0x4bd5e6(_0x2e587a._0x4afd03,-_0x2e587a._0x45466d,-0x22,0x85)]||'',_0x312fb8(_0x2e587a._0x4b1c12,_0x2e587a._0x212b27,0x352,0x208),_0x4bd5e6(-_0x2e587a._0x21f88c,-_0x2e587a._0x39914d,-0x81,0xa),_0x4bd5e6(-0xa0,0x65,-0xb1,-_0x2e587a._0x57f96b)),_0x1bc847[_0x4bd5e6(_0x2e587a._0x37d1b9,0x125,_0x2e587a._0x4a4e61,_0x2e587a._0x30f905)](process[_0x312fb8(0x43c,_0x2e587a._0x522290,0x234,0x3df)][_0x4bd5e6(-_0x2e587a._0x427482,-_0x2e587a._0xf04b7,-_0x2e587a._0x3c28c4,-_0x2e587a._0x47bd84)]||'','ripgrep','rg.exe'),_0x1bc847['join'](process[_0x4bd5e6(-0x10f,_0x2e587a._0x2bd080,-0x81,-_0x2e587a._0x1bf6ae)][_0x312fb8(_0x2e587a._0x47ca4d,0x421,_0x2e587a._0x4ca1f4,0x343)]||'','ripgrep',_0x4bd5e6(-0x1a,-_0x2e587a._0x5f3219,-_0x2e587a._0x47f014,-0xcb))]:[_0x312fb8(_0x2e587a._0xd15272,0x463,_0x2e587a._0x5c1831,0x336),_0x312fb8(0x205,_0x2e587a._0x594c93,_0x2e587a._0x20fc98,_0x2e587a._0x265ab8),'/usr/bin/rg',_0x312fb8(0x1de,0x256,0x156,_0x2e587a._0x6da54e)];for(const _0x38f73b of _0x6f2d88){if(existsSync(_0x38f73b))return _0x38f73b;}function _0x4bd5e6(_0x379b9e,_0x224e0f,_0x4562e4,_0x1488e6){return _0x43e84c(_0x379b9e-0x1df,_0x4562e4,_0x4562e4-_0x72198d._0x53ee9d,_0x1488e6- -0x43a);}try{const _0xe9d405=_0x57e6a1?'where\x20rg':'which\x20rg',_0x570357=execSync(_0xe9d405,{'encoding':_0x4bd5e6(0x19a,_0x2e587a._0x305bfa,_0x2e587a._0x554412,0x93),'stdio':[_0x312fb8(0x3c1,_0x2e587a._0x1e5362,_0x2e587a._0x14646d,0x33c),_0x312fb8(_0x2e587a._0x17d334,0x3a0,_0x2e587a._0x1bae3a,0x3a2),_0x312fb8(_0x2e587a._0x31ceea,0x26d,0x36a,_0x2e587a._0x55bab7)]})[_0x312fb8(0x20e,_0x2e587a._0x3bc56d,_0x2e587a._0x223535,_0x2e587a._0x28f293)]()[_0x4bd5e6(0x63,_0x2e587a._0x3c9df3,0x122,_0x2e587a._0x267a7a)](/\r?\n/)[0x0];if(_0x570357&&existsSync(_0x570357))return _0x570357;}catch{return null;}return null;}async function filepath(){const _0x316b7f={_0x3dbb59:0x1d5};if(cachedRgPath)return cachedRgPath;if(_0xef580c&&existsSync(_0xef580c))return cachedRgPath=_0xef580c,_0xef580c;const _0x550c55=findSystemRipgrep();if(!_0x550c55)throw new Error(_0xf613e4(-_0x316b7f._0x3dbb59,-0x1f4,-0x30b,-0x272));function _0xf613e4(_0x121058,_0x3dd0cf,_0x4f43a6,_0x362666){return _0x120580(_0x121058- -0x586,_0x362666,_0x4f43a6-0xda,_0x362666-0x3c);}return cachedRgPath=_0x550c55,_0x550c55;}async function*files(_0x5124c5){const _0x38202b={_0x15324d:0x2f3,_0x51959f:0x296,_0x2ba0f5:0x3c0,_0x51dac1:0x2ce,_0x58dc17:0x495,_0x5f0a24:0x3ad,_0x1c462f:0x587,_0x3bce9f:0x32f,_0xad4cf9:0x516,_0x70a9be:0x40d,_0x30d9f5:0x3a5,_0xe29024:0x430,_0x5ecdbd:0x477,_0x3410df:0x4af,_0x3db568:0x4f0,_0x4aa636:0x5ea,_0x2ceae6:0x3b5,_0x19d47f:0x53b,_0x2a1a2f:0x3d5,_0x28ddba:0x3b6,_0x4f0c16:0x2e0,_0x1a9b56:0x38d,_0x3b1e1b:0x4b3,_0x2c6251:0x5a7,_0x394849:0x507,_0x557d28:0x61f,_0x37e2b1:0x566,_0x24717b:0x518,_0xcfb7ef:0x4c3,_0x593ea5:0x481,_0x5630ff:0x327,_0x27c9a6:0x2ba,_0x597d44:0x337,_0x2eb2d7:0x518},_0x5c4ac0={_0x3ae076:0x5f,_0x2849c3:0x135},_0x32942a={_0x579a6b:0xd8,_0x3c28e0:0x119},_0x1fb2cd=await filepath();function _0x188f77(_0x509444,_0x4942bf,_0x2a0c88,_0x1acc66){return _0x120580(_0x509444- -_0x32942a._0x579a6b,_0x1acc66,_0x2a0c88-0x1c2,_0x1acc66-_0x32942a._0x3c28e0);}const _0x159d95=await _0x7a90a7(_0x5124c5['cwd'])['catch'](()=>null);if(!_0x159d95?.['isDirectory']())throw Object[_0x188f77(0x330,_0x38202b._0x15324d,_0x38202b._0x51959f,0x2a6)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x5124c5[_0x145da2(_0x38202b._0x2ba0f5,0x2cb,0x456,0x399)]+'\x27'),{'code':_0x188f77(_0x38202b._0x51dac1,0x35c,0x2a7,0x2a4)});const _0xfbeabb=[_0x188f77(0x3ca,_0x38202b._0x58dc17,0x4e2,_0x38202b._0x5f0a24),_0x145da2(_0x38202b._0x1c462f,0x55f,0x545,0x50e),_0x188f77(_0x38202b._0x3bce9f,0x366,0x229,0x455),_0x188f77(0x50a,_0x38202b._0xad4cf9,0x454,0x44d)];function _0x145da2(_0x4e82d6,_0x427c3b,_0xa6e2ee,_0x834653){return _0x120580(_0x4e82d6- -_0x5c4ac0._0x3ae076,_0x427c3b,_0xa6e2ee-_0x5c4ac0._0x2849c3,_0x834653-0x159);}for(const _0x32dc10 of _0x5124c5['glob']??[]){_0xfbeabb['push'](_0x188f77(0x446,_0x38202b._0x70a9be,0x362,0x47a)+_0x32dc10);}const _0xfc4443=_0x49c149(_0x1fb2cd,_0xfbeabb,{'cwd':_0x5124c5[_0x145da2(_0x38202b._0x2ba0f5,_0x38202b._0x30d9f5,0x341,0x299)],'stdio':[_0x145da2(0x3bd,0x377,_0x38202b._0xe29024,0x2cc),_0x188f77(_0x38202b._0x5ecdbd,0x36f,0x49f,_0x38202b._0x3410df),_0x145da2(_0x38202b._0x3db568,_0x38202b._0x4aa636,_0x38202b._0x2ceae6,0x411)]});let _0x146f22='';for await(const _0x3ee046 of _0xfc4443[_0x145da2(0x4f3,_0x38202b._0x19d47f,0x43c,0x3c8)]??[]){_0x146f22+=_0x3ee046[_0x188f77(_0x38202b._0x2a1a2f,_0x38202b._0x28ddba,_0x38202b._0x4f0c16,_0x38202b._0x1a9b56)]();const _0x5544b7=_0x146f22[_0x145da2(0x578,0x5ba,0x5a5,_0x38202b._0x3b1e1b)](/\r?\n/);_0x146f22=_0x5544b7[_0x145da2(_0x38202b._0x2c6251,_0x38202b._0x394849,_0x38202b._0x557d28,_0x38202b._0x37e2b1)]()??'';for(const _0x23b6d3 of _0x5544b7){if(_0x23b6d3[_0x145da2(_0x38202b._0x24717b,0x418,_0x38202b._0xcfb7ef,_0x38202b._0x593ea5)]>0x0)yield _0x23b6d3;}}_0x146f22[_0x188f77(_0x38202b._0x5630ff,_0x38202b._0x27c9a6,0x418,_0x38202b._0x597d44)]()[_0x145da2(_0x38202b._0x2eb2d7,0x597,0x614,0x4e3)]>0x0&&(yield _0x146f22['trim']());}function parseMatchLine(_0x4cd63c,_0x88f792){const _0x363e4d={_0x300180:0x469,_0x411e09:0x542,_0x5236a5:0x240,_0xf0afbb:0x130,_0x4938fb:0x542,_0x5cbab6:0x592,_0x5f1814:0x164,_0xa3acb4:0xf8,_0x10ed7e:0x4eb,_0x3f6365:0x391,_0x5171df:0x3a4,_0x26fbc1:0x331,_0x43a9e4:0x4a4,_0x483284:0x493,_0x22f9e4:0x470},_0x300dbb={_0x128249:0x1d},_0x566907={_0x1e583a:0xf5};function _0x56305c(_0x2b34ad,_0x3a5360,_0x4cd167,_0x4a6993){return _0x43e84c(_0x2b34ad-0x1bf,_0x3a5360,_0x4cd167-_0x566907._0x1e583a,_0x4cd167- -0x52b);}if(!_0x4cd63c||_0x4cd63c==='--')return null;const _0x4880f6=_0x4cd63c[_0x3a5c9b(0x470,_0x363e4d._0x300180,0x544,0x424)]('|');if(_0x88f792&&_0x4880f6['length']>=0x4&&Number[_0x3a5c9b(_0x363e4d._0x411e09,0x44d,0x333,0x39b)](Number['parseInt'](_0x4880f6[0x2]??'',0xa))){const _0x92392c=Number[_0x56305c(-0x2d,-_0x363e4d._0x5236a5,-_0x363e4d._0xf0afbb,-0x150)](_0x4880f6[0x1]??'',0xa);if(!Number[_0x3a5c9b(_0x363e4d._0x4938fb,0x44d,0x3b5,_0x363e4d._0x5cbab6)](_0x92392c)||!_0x4880f6[0x0])return null;return{'filePath':_0x4880f6[0x0],'lineNum':_0x92392c,'lineText':_0x4880f6[_0x56305c(_0x363e4d._0x5f1814,-0xc4,0x32,_0x363e4d._0xa3acb4)](0x3)['join']('|')};}function _0x3a5c9b(_0xde73a1,_0x3b1bd9,_0x5c55f2,_0x1b0cea){return _0x120580(_0x3b1bd9- -0x16e,_0x1b0cea,_0x5c55f2-0x118,_0x1b0cea-_0x300dbb._0x128249);}if(_0x4880f6[_0x3a5c9b(_0x363e4d._0x10ed7e,0x409,_0x363e4d._0x3f6365,_0x363e4d._0x5171df)]>=0x3){const _0x5aa381=Number[_0x3a5c9b(0x228,_0x363e4d._0x26fbc1,0x24d,0x409)](_0x4880f6[0x1]??'',0xa);if(!Number[_0x56305c(-0xcf,-0x138,-0x14,0x114)](_0x5aa381)||!_0x4880f6[0x0])return null;return{'filePath':_0x4880f6[0x0],'lineNum':_0x5aa381,'lineText':_0x4880f6[_0x3a5c9b(_0x363e4d._0x43a9e4,_0x363e4d._0x483284,0x4a5,_0x363e4d._0x22f9e4)](0x2)[_0x56305c(-0x13a,-0x2f,-0xb4,0x13)]('|'),..._0x88f792?{'isContext':!![]}:{}};}return null;}async function search(_0x43bb46){const _0x4ac115={_0x391fce:0x60b,_0x3bdb7c:0xec,_0x2150e5:0x103,_0x10ebfa:0x5cf,_0x143e4e:0x6f1,_0x1d9c9e:0x6f5,_0x392bf0:0x536,_0x2aa30e:0x4c0,_0x52417d:0x3d8,_0x4e7714:0x39a,_0x469926:0x3d5,_0x4b2479:0x4ae,_0x10c14d:0x5fa,_0x2a1710:0xfa,_0x3c7321:0x451,_0x22faa2:0x50d,_0x322c7c:0x60,_0xbbcca1:0x15c,_0x24e30f:0x17e,_0x29077e:0x65,_0x8f560:0xc9,_0x2e0e88:0x4ab,_0x57452d:0x10,_0x177718:0xa3,_0x576650:0x1d,_0x58dfa7:0x12e,_0x2bb7dd:0xa2,_0x3275d4:0x38,_0x4e2819:0x5a9,_0x36e7f9:0x57,_0x3c9746:0x11e,_0xe3c3ce:0x633,_0x20c5eb:0x660,_0x52b536:0x1d0,_0x411460:0x51,_0x9ea618:0x36,_0x1ff64e:0x6af,_0x64b863:0x675,_0x3d6433:0x53f,_0x439a2c:0x449,_0x27c4f2:0x635,_0x4b035a:0x4f,_0x270a35:0x22,_0x58435d:0xaa,_0x17d13b:0x616},_0x1cbfc4={_0x37e453:0x19f,_0x202f14:0xe1,_0x8dc1a:0xc2,_0x2d0bf2:0x35,_0x435468:0xc5,_0xdc203a:0x59d,_0x52f58d:0x9e,_0x236a2d:0x7e,_0x2db32e:0xbf,_0x2ff33c:0x604,_0x226a97:0x537,_0x39a3ff:0x64a},_0x5e9bdb={_0x261151:0x278,_0x3134f2:0x805,_0x3656fd:0x694,_0xf7e225:0x7f3,_0xdae8fa:0x6dc,_0x513e7d:0x19b,_0x474ff4:0x1cd,_0x34b565:0x224,_0x1e6932:0x2f8,_0x23c87e:0x27a,_0x5e65a1:0x2da},_0x3c6d1e={_0x1b61ee:0xe5},_0x295ece={_0x508e5e:0x10},_0x320379={_0x1efa15:0xa7,_0x17c92e:0x15c},_0x1a6359={_0x25da4a:0x524,_0x16db6a:0x14b,_0x28471a:0xfc};function _0xc3e28d(_0x3812ec,_0x194e84,_0x3a4828,_0x35bfb8){return _0x120580(_0x3812ec- -_0x1a6359._0x25da4a,_0x35bfb8,_0x3a4828-_0x1a6359._0x16db6a,_0x35bfb8-_0x1a6359._0x28471a);}const _0x2d3a06=await filepath();if(_0x43bb46['file']){const _0x1936fc=await _0x7a90a7(_0x43bb46[_0x1a488c(0x62d,0x534,0x6cc,_0x4ac115._0x391fce)])[_0xc3e28d(0x16,0x41,-_0x4ac115._0x3bdb7c,-_0x4ac115._0x2150e5)](()=>null);if(!_0x1936fc?.[_0x1a488c(_0x4ac115._0x10ebfa,_0x4ac115._0x143e4e,_0x4ac115._0x1d9c9e,_0x4ac115._0x392bf0)]())throw Object[_0x1a488c(_0x4ac115._0x2aa30e,_0x4ac115._0x52417d,0x5b0,_0x4ac115._0x4e7714)](new Error('No\x20such\x20file:\x20\x27'+_0x43bb46['file']+'\x27'),{'code':_0x1a488c(0x45e,0x33c,0x44a,_0x4ac115._0x469926)});}else{const _0x326b99=await _0x7a90a7(_0x43bb46[_0x1a488c(0x4d7,_0x4ac115._0x4b2479,0x45c,_0x4ac115._0x10c14d)])[_0xc3e28d(0x16,0xa1,-0x42,-_0x4ac115._0x2a1710)](()=>null);if(!_0x326b99?.['isDirectory']())throw Object[_0x1a488c(0x4c0,_0x4ac115._0x3c7321,0x46e,_0x4ac115._0x22faa2)](new Error(_0xc3e28d(_0x4ac115._0x322c7c,-0x62,0x76,-0x4)+_0x43bb46[_0xc3e28d(-0x105,-0x98,-_0x4ac115._0xbbcca1,-0x53)]+'\x27'),{'code':_0xc3e28d(-_0x4ac115._0x24e30f,-_0x4ac115._0x29077e,-0x65,-_0x4ac115._0x8f560)});}const _0x128a15=[_0x1a488c(0x566,0x438,_0x4ac115._0x2e0e88,0x446),'--field-match-separator=|','--field-context-separator=|',_0xc3e28d(0x1e,-_0x4ac115._0x57452d,-0xbe,0x13a),_0x43bb46[_0xc3e28d(_0x4ac115._0x177718,-_0x4ac115._0x576650,_0x4ac115._0x58dfa7,_0x4ac115._0x2bb7dd)]],_0x52d060=typeof _0x43bb46[_0xc3e28d(0x57,_0x4ac115._0x3275d4,0x17b,-0x96)]===_0x1a488c(0x66a,0x683,_0x4ac115._0x4e2819,0x789)&&_0x43bb46[_0xc3e28d(_0x4ac115._0x36e7f9,0x9e,_0x4ac115._0x3c9746,-0x4b)]>0x0;function _0x1a488c(_0x25d29a,_0x3b4792,_0x52f357,_0x216ac9){return _0x43e84c(_0x25d29a-_0x320379._0x1efa15,_0x216ac9,_0x52f357-0x107,_0x25d29a-_0x320379._0x17c92e);}return _0x52d060&&_0x128a15['push']('-C',String(_0x43bb46[_0x1a488c(_0x4ac115._0xe3c3ce,0x705,_0x4ac115._0x20c5eb,0x62a)]),_0xc3e28d(-0x143,-_0x4ac115._0x52b536,-0x45,-0x1b)),_0x43bb46['glob']&&!_0x43bb46[_0xc3e28d(_0x4ac115._0x411460,0x141,0x162,-_0x4ac115._0x9ea618)]&&_0x128a15[_0x1a488c(_0x4ac115._0x1ff64e,_0x4ac115._0x64b863,0x785,0x5b4)](_0x1a488c(_0x4ac115._0x3d6433,_0x4ac115._0x439a2c,_0x4ac115._0x27c4f2,0x5a1),_0x43bb46[_0xc3e28d(_0x4ac115._0x4b035a,-_0x4ac115._0x270a35,-0xf2,_0x4ac115._0x58435d)]),_0x128a15[_0x1a488c(0x6af,0x635,0x5b3,_0x4ac115._0x17d13b)](_0x43bb46['file']??_0x43bb46['cwd']),await new Promise((_0x3b401d,_0x5a346a)=>{const _0x14b27d={_0x51e044:0x445},_0xff999={_0x340ee1:0x7d},_0x7ac383={_0x233a06:0x192,_0x19c080:0x544},_0x574aa6={_0xfad374:0x97,_0x1147ff:0x171,_0x5acde5:0x192},_0x98ba1a={_0x452ed6:0xd9},_0x3e00db={_0x52f9d6:0x599,_0x48e596:0x11c,_0x404d56:0x105},_0x5debe3=_0x49c149(_0x2d3a06,_0x128a15,{'cwd':_0x43bb46[_0x47e2c2(-_0x1cbfc4._0x37e453,0x68,-_0x1cbfc4._0x202f14,-_0x1cbfc4._0x8dc1a)],'stdio':[_0x47e2c2(_0x1cbfc4._0x2d0bf2,-0xc8,-0x160,-_0x1cbfc4._0x435468),'pipe',_0x4a1330(0x51e,0x617,0x5ef,_0x1cbfc4._0xdc203a)]});function _0x4a1330(_0x434449,_0xb28783,_0x350bc6,_0xe23d60){return _0x1a488c(_0xb28783-_0x295ece._0x508e5e,_0xb28783-0x121,_0x350bc6-0x132,_0xe23d60);}let _0x5d60fb='',_0x147c4f='';function _0x47e2c2(_0x41d408,_0x4ddfdb,_0x1c5fc2,_0x2165df){return _0x1a488c(_0x2165df- -_0x3e00db._0x52f9d6,_0x4ddfdb-_0x3e00db._0x48e596,_0x1c5fc2-_0x3e00db._0x404d56,_0x4ddfdb);}_0x5debe3[_0x47e2c2(-_0x1cbfc4._0x52f58d,_0x1cbfc4._0x236a2d,-0xc5,0x71)]?.['on']('data',_0x52e491=>{function _0x24cd65(_0x251f7a,_0x37ae83,_0x21104f,_0x138e43){return _0x47e2c2(_0x251f7a-0x134,_0x37ae83,_0x21104f-_0x98ba1a._0x452ed6,_0x251f7a- -0x63);}_0x5d60fb+=_0x52e491[_0x24cd65(-_0x574aa6._0xfad374,-_0x574aa6._0x1147ff,-_0x574aa6._0x5acde5,-0xba)]();}),_0x5debe3[_0x47e2c2(-_0x1cbfc4._0x2db32e,0x33,-0x99,-0x94)]?.['on']('data',_0x26d6a4=>{function _0x41a058(_0x1d8fea,_0x191e9e,_0x51a483,_0x1e3bcc){return _0x4a1330(_0x1d8fea-_0x7ac383._0x233a06,_0x191e9e- -_0x7ac383._0x19c080,_0x51a483-0x1cb,_0x1d8fea);}_0x147c4f+=_0x26d6a4[_0x41a058(-0xfd,0x31,0x43,_0x3c6d1e._0x1b61ee)]();}),_0x5debe3['on'](_0x4a1330(_0x1cbfc4._0x2ff33c,_0x1cbfc4._0x226a97,_0x1cbfc4._0x39a3ff,0x438),_0x55cc7f=>{function _0x553145(_0x43679e,_0x505316,_0x3d230b,_0x43b317){return _0x4a1330(_0x43679e-0x1f2,_0x43b317-_0xff999._0x340ee1,_0x3d230b-0x16,_0x43679e);}if(_0x55cc7f===0x1&&_0x5d60fb===''){_0x3b401d([]);return;}if(_0x55cc7f!==0x0&&_0x55cc7f!==0x1){_0x5a346a(new Error(_0x4ed384(0x293,0x261,0x2ef,_0x5e9bdb._0x261151)+_0x147c4f));return;}const _0x5cf973=_0x43bb46[_0x553145(_0x5e9bdb._0x3134f2,_0x5e9bdb._0x3656fd,_0x5e9bdb._0xf7e225,_0x5e9bdb._0xdae8fa)]??0x64,_0x193ec6=[];for(const _0x4cc2e5 of _0x5d60fb['split'](/\r?\n/)){if(_0x193ec6[_0x4ed384(_0x5e9bdb._0x513e7d,0x1fa,_0x5e9bdb._0x474ff4,_0x5e9bdb._0x34b565)]>=_0x5cf973)break;const _0x3518bb=parseMatchLine(_0x4cc2e5,_0x52d060);if(_0x3518bb)_0x193ec6[_0x4ed384(_0x5e9bdb._0x1e6932,_0x5e9bdb._0x23c87e,0x32f,_0x5e9bdb._0x5e65a1)](_0x3518bb);}function _0x4ed384(_0x2ecb6c,_0x4506f9,_0x492c9a,_0x45b61a){return _0x4a1330(_0x2ecb6c-0x9c,_0x4506f9- -_0x14b27d._0x51e044,_0x492c9a-0x16c,_0x2ecb6c);}_0x3b401d(_0x193ec6);}),_0x5debe3['on']('error',_0x5a346a);});}function createGlobTool(_0x19a629={}){const _0x222ef3={_0x116549:0xe3,_0x208367:0x10b,_0x2870b2:0x1f7,_0x82795f:0x13,_0x248326:0x3f,_0x5d425d:0x26b,_0x45e94e:0x2a7,_0x3d1b3d:0x374,_0x5097dc:0x275,_0x716717:0x1b8,_0x2bce21:0xde,_0x37f743:0xf6,_0x27e626:0x430,_0x5103ac:0x2f0,_0xcd6aec:0x220,_0x533916:0x2b5,_0x45de9b:0x272,_0x314942:0x173,_0x84f69c:0x1ae,_0x649789:0x206,_0x17e49f:0x26c,_0x3995bb:0x3b5,_0x143d1e:0x281,_0x5c6d0d:0x2bb},_0x31ac48={_0x3b5fdf:0x46b,_0x5964d7:0x4f4,_0x39ae6a:0x58d,_0xe732ac:0x55f,_0xe2ae3e:0x242,_0x3d9959:0x1e9,_0x39f23e:0x300,_0x4b4969:0x106,_0xd01cf0:0x7e,_0x283c64:0x74,_0x5ddc4a:0x1,_0x111d32:0x5a6,_0x4cd184:0x4c3,_0x2f08a6:0x61a,_0x427e15:0x4d9,_0x128954:0x24c,_0x3f0dad:0x2ed,_0x320d81:0x2d6,_0x41756a:0x5f9,_0x11a8bb:0x573,_0x5463be:0x1bd,_0x5b68ff:0x24e,_0x5bad4c:0x6c4,_0x1faf44:0x4f2,_0x2815d3:0x336,_0x3b5358:0x304,_0x57d561:0x267,_0x42031e:0x253,_0x117b6b:0x2b9},_0x4eddd1={_0x564bd0:0x141},_0x4c7878={_0x1a4abc:0x2cc,_0x2dff21:0x10f},_0x16b590=_0x1e9b91[_0x53c73b(0x177,_0x222ef3._0x116549,0x194,_0x222ef3._0x208367)](_0x19a629[_0x53c73b(_0x222ef3._0x2870b2,0x1c5,0x1ac,0x14a)]??process[_0x53c73b(0x1ad,0xd9,_0x222ef3._0x82795f,0x8c)]());function _0x303914(_0x1fb464,_0x35cda8,_0x1f5b76,_0x43990c){return _0x120580(_0x35cda8- -_0x4c7878._0x1a4abc,_0x1fb464,_0x1f5b76-_0x4c7878._0x2dff21,_0x43990c-0x6);}const _0x3b8730=(_0x19a629[_0x53c73b(0x172,0x73,-0x37,_0x222ef3._0x248326)]??[])[_0x53c73b(_0x222ef3._0x5d425d,_0x222ef3._0x45e94e,_0x222ef3._0x3d1b3d,0x2b1)](_0x431a43=>_0x1e9b91[_0x303914(0x26f,0x15d,0x3b,0x85)](_0x431a43));function _0x53c73b(_0x5549d7,_0x3ae9de,_0x48357c,_0x107a39){return _0x43e84c(_0x5549d7-0x55,_0x5549d7,_0x48357c-_0x4eddd1._0x564bd0,_0x3ae9de- -0x2a2);}const _0xcc4e16=_0x19a629['limit']??0x64,_0x2d1849=_0x19a629[_0x53c73b(_0x222ef3._0x5097dc,_0x222ef3._0x716717,0x26b,0x2ea)]??_0x53c73b(_0x222ef3._0x2bce21,_0x222ef3._0x37f743,0x225,0xa7);return defineTool({'name':_0x2d1849,'description':_0x303914(_0x222ef3._0x27e626,0x2fc,_0x222ef3._0x5103ac,_0x222ef3._0xcd6aec),'inputSchema':{'type':_0x53c73b(0x252,_0x222ef3._0x533916,_0x222ef3._0x45de9b,_0x222ef3._0x314942),'properties':{'pattern':{'type':'string'},'path':{'type':_0x53c73b(0x1cd,_0x222ef3._0x84f69c,0x2e2,_0x222ef3._0x649789)},'limit':{'type':_0x53c73b(0x313,_0x222ef3._0x17e49f,0x32a,0x157)}},'required':[_0x53c73b(_0x222ef3._0x3995bb,_0x222ef3._0x143d1e,_0x222ef3._0x5c6d0d,0x158)]},async *'execute'(_0x3027dd){const _0x30c4ad={_0x46e0be:0x119},_0x3e0612={_0x46ce95:0x22};if(_0x3027dd['pattern'][_0xd8ae90(_0x31ac48._0x3b5fdf,_0x31ac48._0x5964d7,_0x31ac48._0x39ae6a,0x4c6)]()['length']===0x0)throw new ToolExecutionError(_0xd8ae90(_0x31ac48._0xe732ac,0x46c,0x67b,0x605),{});const _0x33cf44=resolveAllowedPath(_0x16b590,_0x3b8730,_0x3027dd['path']??'.'),_0x36e8d5=await _0x5563a6(_0x33cf44)[_0x17e9f0(0x216,_0x31ac48._0xe2ae3e,_0x31ac48._0x3d9959,_0x31ac48._0x39f23e)](()=>null);function _0x17e9f0(_0x3c809d,_0x22c5f1,_0x35f82d,_0x25ad78){return _0x53c73b(_0x35f82d,_0x3c809d-_0x3e0612._0x46ce95,_0x35f82d-0xdd,_0x25ad78-0x68);}if(!_0x36e8d5?.[_0xd8ae90(0x4b8,0x530,0x4e3,0x3eb)]())throw new ToolExecutionError(_0x17e9f0(0x218,0x11b,0x194,_0x31ac48._0x4b4969)+(_0x3027dd[_0x17e9f0(_0x31ac48._0xd01cf0,0x17a,0xf4,-0x1)]??'.'),{'path':_0x3027dd[_0x17e9f0(_0x31ac48._0xd01cf0,0x10,_0x31ac48._0x283c64,_0x31ac48._0x5ddc4a)]??'.'});const _0x30b7cb=_0x3027dd['limit']??_0xcc4e16,_0x28fff3=Math['max'](0x1,Math['trunc'](_0x30b7cb)),_0xc03a6f=[];let _0x31f5b4=![];for await(const _0x4ea24c of files({'cwd':_0x33cf44,'glob':[_0x3027dd['pattern']]})){if(_0xc03a6f['length']>=_0x28fff3){_0x31f5b4=!![];break;}const _0x951654=await _0x5563a6(_0x1e9b91['join'](_0x33cf44,_0x4ea24c))[_0xd8ae90(_0x31ac48._0x111d32,_0x31ac48._0x4cd184,_0x31ac48._0x2f08a6,_0x31ac48._0x427e15)](()=>null);_0xc03a6f[_0x17e9f0(0x2d3,_0x31ac48._0x128954,0x39a,0x343)]({'path':_0x4ea24c,'mtime':_0x951654?.[_0x17e9f0(_0x31ac48._0x3f0dad,0x2ac,_0x31ac48._0x320d81,0x1bd)]??0x0});}function _0xd8ae90(_0x38e1f6,_0x34bc4b,_0x239c31,_0x4e43a8){return _0x53c73b(_0x4e43a8,_0x38e1f6-0x3b2,_0x239c31-0x44,_0x4e43a8-_0x30c4ad._0x46e0be);}_0xc03a6f[_0xd8ae90(_0x31ac48._0x41756a,0x4de,_0x31ac48._0x11a8bb,_0x31ac48._0x11a8bb)]((_0xe18b8f,_0x1efd46)=>_0x1efd46[_0xd8ae90(0x447,0x496,0x3fc,0x3bc)]-_0xe18b8f[_0xd8ae90(0x447,0x471,0x48d,0x3c3)]);const _0x32d265=_0xc03a6f['map'](_0x340f64=>_0x340f64[_0xd8ae90(0x40e,0x3da,0x3f6,0x2ef)]),_0x2c4d22=_0x32d265[_0x17e9f0(0x253,0x352,0x348,0x25e)]===0x0?_0x17e9f0(0x271,_0x31ac48._0x5463be,0x13d,_0x31ac48._0x5b68ff)+_0x3027dd[_0x17e9f0(0x2a3,0x2dc,0x307,0x237)]:''+_0x32d265[_0xd8ae90(0x587,_0x31ac48._0x5bad4c,_0x31ac48._0x1faf44,0x551)]('\x0a')+(_0x31f5b4?_0x17e9f0(0x2a7,0x288,0x267,_0x31ac48._0x2815d3):'');return yield createToolOutput(_0x2c4d22,{'pattern':_0x3027dd[_0x17e9f0(0x2a3,0x22d,_0x31ac48._0x3b5358,_0x31ac48._0x57d561)],'searchPath':_0x1e9b91['relative'](_0x16b590,_0x33cf44)||'.','matches':_0x32d265,'count':_0x32d265[_0x17e9f0(_0x31ac48._0x42031e,0x21a,_0x31ac48._0x117b6b,0x1c2)],'truncated':_0x31f5b4}),void 0x0;}});}import{stat as _0x2051b0}from'fs/promises';import*as _0x1a91af from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x13d83d={}){const _0x54ef51={_0x22db83:0x119,_0x23abf8:0x2b,_0x140f14:0x11c,_0x4f5a30:0x32,_0x15af34:0x14d,_0xdeb805:0x30,_0x5e2b51:0xdd,_0x5c20fe:0x81,_0x1fe797:0x36,_0x5179ae:0x404,_0x225d32:0x338,_0x5e79fa:0x247,_0x3732fa:0x2b8,_0x4eb202:0x347,_0x353fae:0x1e8,_0x31cfa1:0x2cd,_0x47ca28:0x346,_0x204f92:0x2f2,_0xffd579:0x3bd,_0x1d5a63:0x288,_0x43b872:0x272,_0x42e664:0x1c3,_0x4fe162:0xba,_0x14315a:0x17e,_0x50e379:0x3d8,_0x2edd85:0x3c5,_0x51c056:0x2cc},_0x565312={_0x1c8849:0x653,_0x54d32b:0x77f,_0x2360b3:0x6b3,_0x50e795:0x64,_0x27b5c8:0x1f8,_0x39f187:0x6ad,_0x375841:0x744,_0x542357:0x12c,_0x2c6170:0x4b,_0x86bb6a:0x54b,_0x1c2bca:0x591,_0x4962da:0xfc,_0x4be007:0x16b,_0x418229:0xbc,_0x5a566a:0x20,_0x12a1a0:0x12,_0x286ccf:0x1a6,_0x27651a:0x97,_0x5e50f7:0x1a6,_0x1cd44c:0x242,_0x11ecda:0x3fc,_0x2c22d1:0x5db,_0x3100bb:0x5f1,_0x10d78b:0x62e,_0x4201b7:0x516,_0x1a3a48:0x4d7,_0x37798b:0x507,_0x58739d:0x7f,_0xaf9a4:0x1b8,_0x2a81b1:0xbb,_0x5906cf:0xa8,_0x34bda4:0x465,_0x311d4e:0x380,_0x2196e1:0x73a,_0x10edb0:0x6f2,_0x522b31:0x736,_0x29590f:0xb8,_0x5cf7d6:0x5f4,_0x397d77:0xfd,_0x234e4c:0x721,_0xa8dc12:0x6ae,_0x5d938a:0x718,_0x529212:0x741,_0x24fa42:0x4c9,_0x2ce602:0x5cb,_0x34d2a7:0x160,_0x22ed75:0x1ca,_0x11498f:0x6d,_0x4da776:0x54c,_0x38b5c4:0x45,_0x52975f:0x1,_0x4f98a4:0x83,_0x165e17:0x47,_0x4fbac8:0x5b2,_0xdfbcdc:0x2f,_0x1f67a4:0x29,_0x1b851f:0x96,_0x4c366a:0x30,_0x57b733:0xd5,_0x2e12d2:0x603,_0x541b68:0x4b6,_0x11564b:0x61f,_0x458f20:0x376,_0x39c7ef:0x52,_0x5f0e58:0x192,_0x5a6956:0x39,_0x4f629b:0x5b,_0x3a400a:0x423,_0x2bd1c8:0x453,_0x3583f4:0x551,_0x5760cb:0x55c,_0x2f6298:0xb9,_0x5162e9:0x1e6,_0x34c0f0:0x6f2,_0x427fbf:0x4f8,_0x699048:0x18c,_0x1bed8d:0xa2,_0x26a3b6:0x437,_0x4cd171:0x44,_0x4739e5:0x46,_0x343938:0xd,_0x381117:0x96,_0x52c518:0x1ee,_0x4ef826:0xbe,_0x472c3b:0x53d,_0x2584ea:0x554,_0x3419b8:0x4be,_0x1fc9c2:0x48b},_0x4ee9cb={_0x3ed602:0x11d,_0x8309af:0x6},_0x3775eb={_0x459a70:0xd3,_0x39efa9:0x13},_0x54bab2={_0x480015:0x202,_0x4036b7:0x65},_0x31ae5a=_0x1a91af[_0x16aeda(_0x54ef51._0x22db83,-_0x54ef51._0x23abf8,0x3a,0x80)](_0x13d83d[_0x16aeda(0x193,0x1d2,_0x54ef51._0x140f14,_0x54ef51._0x4f5a30)]??process[_0x16aeda(0x1f,_0x54ef51._0x15af34,_0x54ef51._0xdeb805,-_0x54ef51._0x5e2b51)]()),_0x4936fa=(_0x13d83d[_0x16aeda(-0x143,_0x54ef51._0x5c20fe,-_0x54ef51._0x1fe797,0xbc)]??[])['map'](_0x3ab9fa=>_0x1a91af['resolve'](_0x3ab9fa));function _0x3bc97e(_0x234f7a,_0x2a9c95,_0x13b0b8,_0x282ddb){return _0x120580(_0x2a9c95- -_0x54bab2._0x480015,_0x13b0b8,_0x13b0b8-_0x54bab2._0x4036b7,_0x282ddb-0x162);}const _0xbea9f7=_0x13d83d['limit']??0x64,_0x3acbb8=_0x13d83d[_0x3bc97e(_0x54ef51._0x5179ae,0x2fc,0x381,_0x54ef51._0x225d32)]??_0x3bc97e(_0x54ef51._0x5e79fa,_0x54ef51._0x3732fa,_0x54ef51._0x4eb202,_0x54ef51._0x353fae);function _0x16aeda(_0xb41bd3,_0x475a2a,_0x5f234c,_0x2df2d4){return _0x43e84c(_0xb41bd3-_0x3775eb._0x459a70,_0x475a2a,_0x5f234c-_0x3775eb._0x39efa9,_0x5f234c- -0x34b);}return defineTool({'name':_0x3acbb8,'description':_0x3bc97e(_0x54ef51._0x31cfa1,0x35b,0x3aa,_0x54ef51._0x47ca28),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x3bc97e(0x2da,_0x54ef51._0x204f92,_0x54ef51._0xffd579,0x38b)},'path':{'type':_0x3bc97e(0x37b,0x2f2,_0x54ef51._0x1d5a63,_0x54ef51._0x43b872)},'include':{'type':'string'},'limit':{'type':_0x16aeda(0x1af,0x18d,_0x54ef51._0x42e664,_0x54ef51._0x4fe162)},'context':{'type':_0x16aeda(_0x54ef51._0x14315a,0x1fa,0x1c3,0x9c)}},'required':[_0x3bc97e(_0x54ef51._0x50e379,_0x54ef51._0x2edd85,0x3d4,_0x54ef51._0x51c056)]},async *'execute'(_0x55994f){if(_0x55994f[_0x338925(0x6a7,_0x565312._0x1c8849,_0x565312._0x54d32b,_0x565312._0x2360b3)][_0x4f463d(-0x149,-0x48,-_0x565312._0x50e795,-_0x565312._0x27b5c8)]()[_0x338925(0x5b9,0x603,_0x565312._0x39f187,_0x565312._0x375841)]===0x0)throw new ToolExecutionError(_0x4f463d(-0x55,-0x6a,-_0x565312._0x542357,_0x565312._0x2c6170),{});function _0x338925(_0x13a09d,_0x32f485,_0xf9182,_0xb0090){return _0x3bc97e(_0x13a09d-_0x4ee9cb._0x3ed602,_0x32f485-0x28e,_0xf9182,_0xb0090-_0x4ee9cb._0x8309af);}const _0x491263=resolveAllowedPath(_0x31ae5a,_0x4936fa,_0x55994f['path']??'.'),_0x5c8230=await _0x2051b0(_0x491263)[_0x338925(_0x565312._0x86bb6a,0x5c6,_0x565312._0x1c2bca,0x575)](()=>null),_0x3e99ea=_0x5c8230?.['isFile']()??![],_0x40d0a7=_0x5c8230?.[_0x4f463d(-_0x565312._0x4962da,-_0x565312._0x4be007,-_0x565312._0x418229,-0x1a4)]()??![];if(!_0x3e99ea&&!_0x40d0a7)throw new ToolExecutionError(_0x4f463d(0xc,0xfc,_0x565312._0x5a566a,_0x565312._0x12a1a0)+(_0x55994f[_0x4f463d(-_0x565312._0x286ccf,-0x2d0,-0x232,-_0x565312._0x27651a)]??'.'),{'path':_0x55994f[_0x4f463d(-_0x565312._0x5e50f7,-0x7a,-_0x565312._0x1cd44c,-0x1b4)]??'.'});const _0x3ba7bf=_0x55994f['limit']??_0xbea9f7,_0x65f443=Math[_0x338925(_0x565312._0x11ecda,0x44b,0x4d8,0x37d)](0x1,Math[_0x338925(_0x565312._0x2c22d1,_0x565312._0x3100bb,_0x565312._0x10d78b,0x6f2)](_0x3ba7bf)),_0x19d152=await search({'cwd':_0x40d0a7?_0x491263:_0x1a91af[_0x338925(_0x565312._0x4201b7,0x604,_0x565312._0x1a3a48,_0x565312._0x37798b)](_0x491263),'pattern':_0x55994f[_0x4f463d(_0x565312._0x58739d,_0x565312._0xaf9a4,-_0x565312._0x2a81b1,_0x565312._0x5906cf)],'glob':_0x40d0a7?_0x55994f[_0x338925(0x38f,_0x565312._0x34bda4,_0x565312._0x311d4e,0x4eb)]:void 0x0,'limit':_0x65f443,'file':_0x3e99ea?_0x491263:void 0x0,'context':_0x55994f[_0x338925(_0x565312._0x2196e1,0x607,_0x565312._0x10edb0,_0x565312._0x522b31)]});function _0x4f463d(_0x43f445,_0x5342b6,_0x5a1c1f,_0x56ec87){return _0x3bc97e(_0x43f445-0xeb,_0x43f445- -0x346,_0x56ec87,_0x56ec87-0x1cc);}const _0x53ec8f=new Map();for(const _0x32e293 of _0x19d152){if(!_0x53ec8f[_0x4f463d(-0x34,-0x15f,_0x565312._0x29590f,-0x120)](_0x32e293['filePath'])){const _0x30377e=await _0x2051b0(_0x32e293[_0x338925(0x5eb,0x5cb,0x521,_0x565312._0x5cf7d6)])[_0x4f463d(-0xe,-0x3e,-0x34,-_0x565312._0x397d77)](()=>null);_0x53ec8f[_0x338925(_0x565312._0x234e4c,_0x565312._0xa8dc12,_0x565312._0x5d938a,_0x565312._0x529212)](_0x32e293[_0x338925(_0x565312._0x24fa42,_0x565312._0x2ce602,_0x565312._0x1a3a48,0x5d5)],{'matches':[],'mtime':_0x30377e?.[_0x4f463d(0xc9,_0x565312._0x34d2a7,0xf0,_0x565312._0x22ed75)]??0x0});}_0x53ec8f[_0x4f463d(0xd2,0x1c2,-0x5a,_0x565312._0x11498f)](_0x32e293[_0x338925(_0x565312._0x4da776,0x5cb,0x652,0x50c)])?.['matches']['push'](_0x32e293);}const _0x283bba=[..._0x53ec8f['entries']()][_0x4f463d(_0x565312._0x38b5c4,_0x565312._0x52975f,-_0x565312._0x4f98a4,-_0x565312._0x165e17)]((_0x2aa530,_0x1c8615)=>_0x1c8615[0x1]['mtime']-_0x2aa530[0x1]['mtime']),_0x4ff065=_0x19d152[_0x338925(0x68d,0x58b,0x526,_0x565312._0x4fbac8)](_0x5bead6=>!_0x5bead6['isContext'])['length'],_0x279314=_0x19d152[_0x4f463d(_0x565312._0xdfbcdc,0x141,_0x565312._0x1f67a4,-_0x565312._0x1b851f)]>=_0x65f443,_0x3651fc=_0x3e99ea?_0x1a91af[_0x4f463d(_0x565312._0x4c366a,-0x1f,-_0x565312._0x57b733,0xa2)](_0x491263):_0x491263;let _0x20a3df='';if(_0x19d152[_0x338925(0x636,_0x565312._0x2e12d2,0x647,0x73f)]===0x0)_0x20a3df=_0x338925(0x3a0,_0x565312._0x541b68,0x3d2,0x439)+_0x55994f[_0x338925(0x693,0x653,_0x565312._0x11564b,0x649)];else{_0x20a3df=_0x338925(_0x565312._0x458f20,0x49d,0x3f8,0x59e)+_0x4ff065+'\x20match'+(_0x4ff065===0x1?'':'es')+'\x0a';for(const [_0x25f2ed,_0x255ae6]of _0x283bba){const _0x492a4d=_0x3e99ea?_0x1a91af[_0x4f463d(-_0x565312._0x39c7ef,-_0x565312._0x5f0e58,-_0x565312._0x5a6956,_0x565312._0x4f629b)](_0x25f2ed):_0x1a91af['relative'](_0x3651fc,_0x25f2ed);_0x20a3df+='\x0a'+_0x492a4d+':\x0a';for(const _0x5d9c61 of _0x255ae6['matches']){const _0x47b2d2=_0x5d9c61[_0x338925(_0x565312._0x3a400a,0x551,0x531,0x635)]['length']>MAX_LINE_LENGTH?_0x5d9c61[_0x338925(_0x565312._0x2bd1c8,_0x565312._0x3583f4,_0x565312._0x5760cb,0x637)][_0x4f463d(_0x565312._0x2f6298,0x154,0x30,_0x565312._0x5162e9)](0x0,MAX_LINE_LENGTH)+_0x338925(_0x565312._0x34c0f0,0x614,0x509,_0x565312._0x427fbf):_0x5d9c61['lineText'],_0x3a7174=_0x5d9c61[_0x4f463d(-0x13d,-_0x565312._0x699048,-0x105,-_0x565312._0x1bed8d)]?'\x20\x20':'>\x20';_0x20a3df+=_0x3a7174+_0x338925(0x42a,0x45f,_0x565312._0x26a3b6,0x3c6)+_0x5d9c61['lineNum']+':\x20'+_0x47b2d2+'\x0a';}}_0x279314&&(_0x20a3df+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x49c5c2={'searchPath':_0x1a91af[_0x4f463d(0x7c,_0x565312._0x4cd171,_0x565312._0x4739e5,_0x565312._0x2c6170)](_0x31ae5a,_0x491263)||'.','pattern':_0x55994f['pattern'],'matchCount':_0x4ff065,'fileCount':_0x53ec8f[_0x4f463d(-0x7c,0xbe,-_0x565312._0x343938,_0x565312._0x381117)],'truncated':_0x279314};return _0x40d0a7&&_0x55994f[_0x4f463d(-0x16f,-_0x565312._0x52c518,-_0x565312._0x4ef826,-0xde)]!==void 0x0&&(_0x49c5c2[_0x338925(_0x565312._0x472c3b,0x465,_0x565312._0x2584ea,0x325)]=_0x55994f['include']),yield createToolOutput(_0x20a3df[_0x338925(_0x565312._0x3419b8,_0x565312._0x1fc9c2,0x5a8,0x350)](),_0x49c5c2),void 0x0;}});}import{readdir as _0x4026e0,readFile as _0xef1ff9,stat as _0x2f760c}from'fs/promises';import*as _0x11001d from'path';import*as _0x5cebba from'yaml';async function countTextLines(_0x5da617){const _0x91786f={_0x40625b:0x199,_0x31373b:0x67,_0x3e3586:0xa3,_0xac96f9:0x5a,_0x4b8c9a:0x93,_0x2bffdd:0x167,_0x163cfe:0xc3},_0x9e5d1b=await _0xef1ff9(_0x5da617)[_0x511058(0x16d,0x130,_0x91786f._0x40625b,_0x91786f._0x31373b)](()=>null);if(!_0x9e5d1b||isProbablyBinary(_0x9e5d1b))return void 0x0;function _0x1abf4e(_0x1db2d8,_0x24335e,_0x5461ca,_0x3da739){return _0x120580(_0x24335e- -0x514,_0x5461ca,_0x5461ca-0x7,_0x3da739-0x10b);}function _0x511058(_0x4c31e7,_0x57faeb,_0xad0c05,_0x383996){return _0x43e84c(_0x4c31e7-0x95,_0xad0c05,_0xad0c05-0x9c,_0x57faeb- -0x366);}return _0x9e5d1b[_0x511058(0xea,_0x91786f._0x3e3586,-0x78,-_0x91786f._0xac96f9)](_0x511058(_0x91786f._0x4b8c9a,_0x91786f._0x2bffdd,0x8b,0x26b))[_0x1abf4e(0xc1,_0x91786f._0x163cfe,0xbf,0x102)](/\r?\n/)['length'];}function createLsTool(_0x48a47e={}){const _0x566b32={_0x1e38f9:0xac,_0x845a1e:0xfe,_0x322a8c:0x199,_0xf01b3a:0x388,_0x2c596b:0x41e,_0x51f71f:0x322,_0x2c8985:0x211,_0x56a1ec:0x19d,_0x2e90f0:0x2c5,_0x307cb3:0x26f,_0x30627e:0x1d6,_0x3a55cb:0x2c9,_0x4544a1:0x328,_0x4c9dc2:0x231,_0x3951bd:0x3d3,_0x220296:0x567,_0x2adf86:0x51b},_0x32a6fc={_0x240e05:0x10b,_0x5555df:0xd,_0x51e408:0x138,_0x25b907:0x337,_0x49f844:0x24e,_0x7bbfbb:0x336,_0x4c0a37:0xe5,_0x27dcd6:0x22b,_0x22fad3:0x1e2,_0xf2728c:0xb8,_0x2c0aa8:0x80,_0x15f58f:0x107,_0x17cb12:0x154,_0x3f751c:0x250,_0x42d174:0x214,_0x3c7cfe:0x338,_0x5c4f14:0x29a,_0x56a299:0x33e,_0x57b469:0x20,_0x354d00:0x17a,_0x152ace:0x104,_0x1144ef:0x4d,_0x2e600f:0x218,_0x24ec74:0x40d,_0x4b2fc8:0x33a,_0x24e029:0xc8,_0x59fb1c:0x16c,_0x3ed1fc:0x12d,_0x78eda9:0x2d9,_0x5292a3:0x393,_0x10eec5:0x376,_0x326dd8:0x1d1,_0x527b0c:0x349,_0x25e205:0x479,_0x4ba4c8:0x434,_0x54dbe6:0x37,_0x469fbd:0xf9,_0x31b177:0x2a1,_0x61c551:0x410,_0x321689:0x26c,_0x2995dd:0x1ff,_0x3d57da:0x14a,_0x483963:0x60,_0x424c80:0xae,_0x6fe2a6:0x495,_0x596cfd:0x3d9,_0x40e993:0x465,_0x24aeb5:0x39a,_0x2f59e7:0x4bb,_0x16ecb6:0x36b,_0x2fc51e:0x2da,_0x23cd13:0x4e,_0x33a2e0:0xc5,_0x539dee:0x9,_0x185795:0xca,_0x161868:0x93,_0x412394:0x11b},_0x4612bb={_0x473dc3:0x84},_0x518053={_0x51ccc1:0x1eb,_0x56a049:0xd},_0x35a496=_0x11001d[_0x5734aa(_0x566b32._0x1e38f9,0x7,0x101,0xea)](_0x48a47e[_0x5734aa(0x2c7,_0x566b32._0x845a1e,0x1e3,_0x566b32._0x322a8c)]??process[_0x2f82fc(0x40f,_0x566b32._0xf01b3a,0x4a6,0x49d)]());function _0x2f82fc(_0x56a190,_0x4c1870,_0x504641,_0x51f8f4){return _0x43e84c(_0x56a190-0xe3,_0x56a190,_0x504641-_0x518053._0x51ccc1,_0x4c1870-_0x518053._0x56a049);}function _0x5734aa(_0x1c7544,_0xd34656,_0x145b86,_0x2b0fcb){return _0x120580(_0x145b86- -0x328,_0xd34656,_0x145b86-_0x4612bb._0x473dc3,_0x2b0fcb-0x134);}const _0x9b38c3=(_0x48a47e[_0x2f82fc(_0x566b32._0x2c596b,_0x566b32._0x51f71f,0x27c,_0x566b32._0x2c8985)]??[])[_0x5734aa(_0x566b32._0x56a1ec,0x1e3,_0x566b32._0x2e90f0,0x23c)](_0x16731a=>_0x11001d['resolve'](_0x16731a)),_0x4ebb96=_0x48a47e[_0x5734aa(0x1e8,_0x566b32._0x307cb3,_0x566b32._0x30627e,_0x566b32._0x3a55cb)]??'Ls';return defineTool({'name':_0x4ebb96,'description':_0x5734aa(_0x566b32._0x4544a1,0x187,_0x566b32._0x4c9dc2,0x133),'inputSchema':{'type':_0x5734aa(0x36f,_0x566b32._0x3951bd,0x2d3,0x253),'properties':{'path':{'type':'string'},'limit':{'type':_0x2f82fc(_0x566b32._0x220296,_0x566b32._0x2adf86,0x4d9,0x491)}}},async *'execute'(_0x5db2eb){const _0x553cd3={_0x2cf350:0x416,_0x56ca82:0x126},_0x144a5d={_0x521741:0x146,_0x3b8063:0x71},_0x4d08c2=_0x5db2eb[_0x47017f(-_0x32a6fc._0x240e05,0x3a,-0xab,-0x216)]??'.';function _0x4d7a0d(_0x53d6a1,_0xfa0285,_0x2f76a5,_0x1ef547){return _0x2f82fc(_0x53d6a1,_0x1ef547- -_0x144a5d._0x521741,_0x2f76a5-0x75,_0x1ef547-_0x144a5d._0x3b8063);}const _0x22bdbf=resolveAllowedPath(_0x35a496,_0x9b38c3,_0x4d08c2),_0x500f52=await _0x2f760c(_0x22bdbf)['catch'](()=>null);if(!_0x500f52?.[_0x47017f(-0x61,_0x32a6fc._0x5555df,-_0x32a6fc._0x51e408,-0xdb)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x4d08c2,{'path':_0x4d08c2});const _0x3aeda6=_0x5db2eb[_0x4d7a0d(0x35a,0x386,_0x32a6fc._0x25b907,0x3ba)]??0x3e8,_0x4fe790=Math[_0x4d7a0d(0x2de,0x2b5,_0x32a6fc._0x49f844,_0x32a6fc._0x7bbfbb)](Math[_0x4d7a0d(0xcc,_0x32a6fc._0x4c0a37,_0x32a6fc._0x27dcd6,_0x32a6fc._0x22fad3)](Math[_0x47017f(_0x32a6fc._0xf2728c,0x61,_0x32a6fc._0x2c0aa8,_0x32a6fc._0x15f58f)](_0x3aeda6),0x1),0x2710),_0x76550b=await _0x4026e0(_0x22bdbf),_0xc5f1e=[];for(const _0x384569 of _0x76550b[_0x47017f(_0x32a6fc._0x17cb12,0x293,_0x32a6fc._0x3f751c,_0x32a6fc._0x42d174)](0x0,_0x4fe790)){const _0x3109e9=_0x11001d[_0x4d7a0d(0x352,_0x32a6fc._0x3c7cfe,_0x32a6fc._0x5c4f14,_0x32a6fc._0x56a299)](_0x22bdbf,_0x384569),_0x429f6f=await _0x2f760c(_0x3109e9)[_0x47017f(0x8d,0xb1,-0x83,-_0x32a6fc._0x57b469)](()=>null);if(!_0x429f6f)continue;let _0x58fde3=_0x47017f(_0x32a6fc._0x354d00,0x1f1,_0x32a6fc._0x152ace,_0x32a6fc._0x1144ef);if(_0x429f6f[_0x4d7a0d(_0x32a6fc._0x2e600f,0x24e,_0x32a6fc._0x24ec74,_0x32a6fc._0x4b2fc8)]())_0x58fde3=_0x47017f(_0x32a6fc._0x24e029,-0x47,-0x28,_0x32a6fc._0x59fb1c);else{if(_0x429f6f[_0x4d7a0d(0x221,0x38e,_0x32a6fc._0x3ed1fc,0x26f)]())_0x58fde3=_0x4d7a0d(0x3c8,_0x32a6fc._0x78eda9,_0x32a6fc._0x5292a3,_0x32a6fc._0x10eec5);else{if(_0x429f6f['isSymbolicLink']())_0x58fde3='symlink';}}const _0x36b568={'name':_0x384569,'type':_0x58fde3,'size':_0x429f6f[_0x4d7a0d(0x208,_0x32a6fc._0x326dd8,0x3d1,0x2ef)],'mtime':_0x429f6f[_0x4d7a0d(0x55e,_0x32a6fc._0x527b0c,_0x32a6fc._0x25e205,_0x32a6fc._0x4ba4c8)],'mode':_0x429f6f[_0x47017f(_0x32a6fc._0x54dbe6,0xa6,_0x32a6fc._0x469fbd,0xb4)]},_0x36c477=_0x58fde3===_0x4d7a0d(0x412,_0x32a6fc._0x31b177,_0x32a6fc._0x61c551,0x398)?await countTextLines(_0x3109e9):void 0x0;if(_0x36c477!==void 0x0)_0x36b568[_0x4d7a0d(0x192,0x26b,_0x32a6fc._0x321689,_0x32a6fc._0x2995dd)]=_0x36c477;_0xc5f1e[_0x47017f(_0x32a6fc._0x3d57da,_0x32a6fc._0x483963,_0x32a6fc._0x424c80,0x1d3)](_0x36b568);}_0xc5f1e['sort']((_0x5c0d01,_0x557c61)=>_0x5c0d01[_0x4d7a0d(0x22a,0x465,0x234,0x321)]['localeCompare'](_0x557c61[_0x4d7a0d(0x1e2,0x222,0x1e3,0x321)]));const _0x124b44={'path':_0x4d08c2,'total':_0xc5f1e['length'],'truncated':_0x76550b[_0x4d7a0d(_0x32a6fc._0x6fe2a6,_0x32a6fc._0x596cfd,_0x32a6fc._0x40e993,_0x32a6fc._0x24aeb5)]>_0x4fe790,'entries':_0xc5f1e};function _0x47017f(_0x561c7d,_0x56f399,_0x2f2f45,_0x3b4c31){return _0x2f82fc(_0x3b4c31,_0x561c7d- -_0x553cd3._0x2cf350,_0x2f2f45-_0x553cd3._0x56ca82,_0x3b4c31-0x13b);}return yield createToolOutput(_0x5cebba[_0x4d7a0d(_0x32a6fc._0x2f59e7,_0x32a6fc._0x16ecb6,_0x32a6fc._0x2fc51e,0x3e4)](_0x124b44,{'indent':0x2,'lineWidth':0x0})[_0x47017f(-_0x32a6fc._0x23cd13,-_0x32a6fc._0x33a2e0,_0x32a6fc._0x539dee,0x52)](),{'path':_0x4d08c2,'total':_0xc5f1e[_0x47017f(_0x32a6fc._0x185795,_0x32a6fc._0x161868,_0x32a6fc._0x412394,0x16e)],'truncated':_0x76550b['length']>_0x4fe790,'limit':_0x4fe790,'entries':_0xc5f1e}),void 0x0;}});}import{stat as _0x2d599c}from'fs/promises';import _0x4f540f from'path';import{fileURLToPath as _0x526eac}from'url';function severityName(_0x2db9ac){const _0x5ab177={_0x445cfd:0x74,_0x5687d3:0x164,_0x110e5e:0xb8,_0x41404d:0x1b,_0x1b3862:0xb9,_0x596674:0xd7,_0x3e1a1f:0x19,_0x96b6f:0x97},_0x4e01dd={_0x243126:0xf6},_0x5cc789={_0x27612d:0x17,_0x10267a:0x70};function _0xb45459(_0x419740,_0xab219d,_0x45d300,_0x2b75c7){return _0x43e84c(_0x419740-_0x5cc789._0x27612d,_0xab219d,_0x45d300-_0x5cc789._0x10267a,_0x419740- -0x468);}function _0x4cca05(_0x432f28,_0x45af0d,_0x2e4a11,_0x54ddc6){return _0x120580(_0x45af0d- -0x4d9,_0x54ddc6,_0x2e4a11-0x163,_0x54ddc6-_0x4e01dd._0x243126);}switch(_0x2db9ac){case 0x1:return _0x4cca05(_0x5ab177._0x445cfd,-0x58,-_0x5ab177._0x5687d3,-_0x5ab177._0x110e5e);case 0x2:return _0x4cca05(0x91,0xda,-_0x5ab177._0x41404d,_0x5ab177._0x1b3862);case 0x3:return _0x4cca05(-_0x5ab177._0x41404d,_0x5ab177._0x596674,0x49,0xab);case 0x4:return'Hint';default:return _0xb45459(-0x1b,_0x5ab177._0x3e1a1f,0x4b,_0x5ab177._0x96b6f);}}function formatSingleHover(_0x4014f9){const _0x1eb8df={_0x51aee0:0x446,_0x18cdd0:0x301,_0xd677f4:0x4dc,_0x16c60c:0x54c,_0x323e28:0x411,_0x36846f:0x39d,_0x9fafe2:0x39b,_0x5ecb71:0x4db,_0x173901:0x492,_0x22c925:0x4e6,_0x17865d:0x45f,_0x119f09:0x405,_0x4836f2:0x67f,_0x2af3e8:0x6a5,_0x303b17:0x35a,_0x5b5d4d:0x2b0,_0x204cb0:0x376,_0x3d7366:0x3bb,_0x49e536:0x452,_0x250375:0x3e2,_0x1f07aa:0x4eb,_0xa56f88:0x45f},_0x56d185={_0x796c9d:0x93,_0x45b941:0x87,_0x11b644:0x149},_0x57ccd9={_0x2d692b:0x4d,_0x2d5b3a:0x17b},_0x98649c=_0x4014f9['contents'];if(typeof _0x98649c===_0x2c5d48(_0x1eb8df._0x51aee0,0x3ea,0x425,_0x1eb8df._0x18cdd0))return _0x98649c;function _0x2c5d48(_0x3b4dea,_0x4e7a69,_0x15fd4d,_0x33e62f){return _0x120580(_0x4e7a69- -0x10a,_0x15fd4d,_0x15fd4d-_0x57ccd9._0x2d692b,_0x33e62f-_0x57ccd9._0x2d5b3a);}if(Array['isArray'](_0x98649c))return _0x98649c['map'](_0x3f6c6a=>typeof _0x3f6c6a===_0xfa73e0(0x515,0x599,0x6d8,0x603)?_0x3f6c6a:_0x3f6c6a[_0xfa73e0(0x3c9,0x45f,0x401,0x34e)])[_0xfa73e0(_0x1eb8df._0xd677f4,0x5a4,0x68e,0x516)](Boolean)[_0x2c5d48(_0x1eb8df._0x16c60c,_0x1eb8df._0x323e28,0x3b1,_0x1eb8df._0x36846f)]('\x0a\x0a');function _0xfa73e0(_0x5c5942,_0x4b82b1,_0x2f5557,_0x166f13){return _0x43e84c(_0x5c5942-_0x56d185._0x796c9d,_0x5c5942,_0x2f5557-_0x56d185._0x45b941,_0x4b82b1-_0x56d185._0x11b644);}if(_0x2c5d48(_0x1eb8df._0x9fafe2,_0x1eb8df._0x5ecb71,_0x1eb8df._0x173901,0x5c0)in _0x98649c)return _0x98649c[_0xfa73e0(_0x1eb8df._0x22c925,_0x1eb8df._0x17865d,_0x1eb8df._0x119f09,0x38a)];return _0x98649c[_0xfa73e0(0x486,0x5a5,_0x1eb8df._0x4836f2,_0x1eb8df._0x2af3e8)]?'```'+_0x98649c['language']+'\x0a'+_0x98649c[_0x2c5d48(_0x1eb8df._0x303b17,_0x1eb8df._0x5b5d4d,0x1dd,_0x1eb8df._0x204cb0)]+_0x2c5d48(_0x1eb8df._0x3d7366,_0x1eb8df._0x49e536,_0x1eb8df._0x250375,_0x1eb8df._0x1f07aa):_0x98649c[_0xfa73e0(0x543,_0x1eb8df._0xa56f88,0x3b3,0x464)];}function formatHover(_0x102e28){const _0x47917b={_0x37807b:0x1f1,_0x3ae3a7:0x1f5,_0x2782d1:0x1eb,_0x3d1d80:0x15d,_0x54cf31:0x5d6,_0x469d1b:0x4ec,_0x3a7e00:0x453,_0x24a983:0x504},_0x4c8476={_0x4e113d:0x24,_0x45d671:0x179},_0x324613={_0x2704ab:0xe2,_0x3494c8:0xf5};if(_0x102e28[_0x5b62cf(0x2ad,_0x47917b._0x37807b,_0x47917b._0x3ae3a7,_0x47917b._0x2782d1)]===0x0)return _0x5b62cf(_0x47917b._0x3d1d80,0x1d0,0x1bb,0x1ab);function _0x20a34f(_0x1ed894,_0xd2f614,_0x4e2849,_0x3fd179){return _0x43e84c(_0x1ed894-_0x324613._0x2704ab,_0x3fd179,_0x4e2849-_0x324613._0x3494c8,_0x4e2849-0x8d);}function _0x5b62cf(_0x1ce8c2,_0x593309,_0x46b8d7,_0xe79dd4){return _0x120580(_0x593309- -0x386,_0x1ce8c2,_0x46b8d7-_0x4c8476._0x4e113d,_0xe79dd4-_0x4c8476._0x45d671);}return _0x102e28[_0x20a34f(0x51c,0x5dd,_0x47917b._0x54cf31,0x68a)](formatSingleHover)[_0x20a34f(_0x47917b._0x469d1b,_0x47917b._0x3a7e00,_0x47917b._0x24a983,0x5eb)]('\x0a\x0a---\x0a\x0a');}function locationPath(_0x4966d2){const _0x1e9b7a={_0x2f59b7:0x6ed,_0x4b31ef:0x2ba,_0x3ed176:0x382,_0xee70fc:0x3dd,_0x245aa5:0x2dc},_0x4aa900={_0x2942e4:0x121,_0x1b9bf7:0x15d},_0x32a3f9={_0x5d07e6:0x69,_0x39c0e2:0x26a};if(!_0x4966d2[_0x2a635e(0x5d4,0x5fc,0x4c1,_0x1e9b7a._0x2f59b7)](_0x1466ce(_0x1e9b7a._0x4b31ef,_0x1e9b7a._0x3ed176,_0x1e9b7a._0xee70fc,_0x1e9b7a._0x245aa5)))return _0x4966d2;function _0x2a635e(_0xdf8308,_0x298f68,_0x193bf0,_0x1510e0){return _0x43e84c(_0xdf8308-0x1e8,_0x193bf0,_0x193bf0-_0x32a3f9._0x5d07e6,_0xdf8308-_0x32a3f9._0x39c0e2);}function _0x1466ce(_0xb15db4,_0x47702b,_0x105a1c,_0x5f5da9){return _0x43e84c(_0xb15db4-_0x4aa900._0x2942e4,_0x47702b,_0x105a1c-_0x4aa900._0x1b9bf7,_0x105a1c- -0xd);}return _0x526eac(_0x4966d2);}function formatLocations(_0x465674){const _0x472d00={_0x29fa3d:0x49,_0x495c5c:0xc0},_0x50272e={_0xdcfb59:0x7c,_0x165d75:0x45b,_0x2bf002:0x513,_0x5c845e:0x6d,_0x496a97:0x47,_0x1defa2:0xcd,_0x1a8f84:0x9f,_0x1be923:0x7c},_0x13e9a1={_0x503de0:0x52e,_0xf8cf7f:0x101};if(_0x465674[_0x46b986(-0x71,_0x472d00._0x29fa3d,-_0x472d00._0x495c5c,0xbc)]===0x0)return'No\x20locations\x20found';function _0x46b986(_0x5a7351,_0x4313ef,_0x9e4017,_0x44741a){return _0x120580(_0x4313ef- -_0x13e9a1._0x503de0,_0x9e4017,_0x9e4017-0x1dc,_0x44741a-_0x13e9a1._0xf8cf7f);}return _0x465674['map'](_0x4442c6=>{const _0x368af7={_0x429701:0x177};function _0x2ab4eb(_0x1da19c,_0x598e4d,_0x3dd880,_0x1a5b47){return _0x46b986(_0x1da19c-_0x368af7._0x429701,_0x598e4d-0x381,_0x1da19c,_0x1a5b47-0x147);}const _0x1c4352=_0x4442c6['range'][_0x8f5a(0x115,0xab,_0x50272e._0xdcfb59,0x31)];function _0x8f5a(_0x208608,_0x12c67f,_0x8341e3,_0x1053e4){return _0x46b986(_0x208608-0xe1,_0x8341e3-0xee,_0x208608,_0x1053e4-0x1c7);}return locationPath(_0x4442c6[_0x2ab4eb(0x333,_0x50272e._0x165d75,0x40e,_0x50272e._0x2bf002)])+':'+(_0x1c4352[_0x8f5a(_0x50272e._0x5c845e,-0x92,0xa0,_0x50272e._0x496a97)]+0x1)+':'+(_0x1c4352[_0x8f5a(0x6b,_0x50272e._0x1defa2,_0x50272e._0x1a8f84,-_0x50272e._0x1be923)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x2cce2b){const _0x1b9c4f={_0x9171b4:0x6b1,_0x55202a:0x432,_0x1a96df:0x42a},_0x3ef18b={_0x4489f8:0xaf,_0x26e9dd:0x107};function _0x222238(_0x3346a7,_0x35b1cc,_0x3e4142,_0x2071c1){return _0x120580(_0x35b1cc-0x190,_0x2071c1,_0x3e4142-0x113,_0x2071c1-0x167);}function _0x135ab0(_0x363037,_0x36fdb0,_0x1ece52,_0x477e7c){return _0x120580(_0x477e7c- -_0x3ef18b._0x4489f8,_0x1ece52,_0x1ece52-_0x3ef18b._0x26e9dd,_0x477e7c-0x65);}return _0x222238(_0x1b9c4f._0x9171b4,0x591,0x542,0x4e4)in _0x2cce2b&&_0x135ab0(_0x1b9c4f._0x55202a,0x4b6,0x3db,_0x1b9c4f._0x1a96df)in _0x2cce2b;}function formatSymbols(_0x45b1da){const _0x30c327={_0x39a951:0x741,_0x773fc2:0x611,_0x317210:0x3bd,_0x4289b6:0x533,_0x17d5e1:0x4b9,_0x34b6f5:0x530,_0x53c344:0x3d4,_0xb08f67:0x413,_0x836394:0x4f9,_0x4bd531:0x61f,_0x302dc9:0x720,_0x4946a0:0x51a,_0x237354:0x4fb,_0x222c45:0x469,_0x14cc28:0x4b7,_0x29dad8:0x4f5,_0x29ed04:0x377,_0x35772a:0x558,_0x52fd34:0x63a,_0x48307c:0x44b,_0x241a01:0x4da};if(_0x45b1da['length']===0x0)return'No\x20symbols\x20found';return _0x45b1da['map'](_0x32362b=>{function _0x287026(_0x4e9fd0,_0x3e7ca0,_0x5198f0,_0x536091){return _0x4f9a(_0x4e9fd0-0x206,_0x536091);}function _0x4303ab(_0x28ac2c,_0x5330ed,_0x2b29d5,_0x3d48ee){return _0x4f9a(_0x28ac2c-0x36e,_0x2b29d5);}if(isDocumentSymbol(_0x32362b))return _0x32362b[_0x4303ab(0x661,_0x30c327._0x39a951,_0x30c327._0x773fc2,0x566)]+'\x20('+_0x32362b['kind']+_0x287026(0x43f,0x331,0x35f,0x34e)+(_0x32362b[_0x287026(0x3fc,0x489,_0x30c327._0x317210,0x51a)][_0x287026(0x4b7,_0x30c327._0x4289b6,0x57f,_0x30c327._0x17d5e1)]['line']+0x1)+':'+(_0x32362b['range'][_0x287026(0x4b7,_0x30c327._0x34b6f5,_0x30c327._0x53c344,0x57e)][_0x287026(0x4da,0x5f6,0x57e,_0x30c327._0xb08f67)]+0x1)+']';return _0x32362b[_0x287026(_0x30c327._0x836394,0x465,_0x30c327._0x4bd531,0x58f)]+'\x20('+_0x32362b['kind']+')\x20'+locationPath(_0x32362b[_0x4303ab(0x682,_0x30c327._0x302dc9,0x5ed,0x5e1)]['uri'])+':'+(_0x32362b[_0x287026(_0x30c327._0x4946a0,0x614,_0x30c327._0x237354,0x4b8)][_0x287026(0x3fc,0x3cd,_0x30c327._0x222c45,0x470)][_0x287026(_0x30c327._0x14cc28,_0x30c327._0x29dad8,0x4fb,_0x30c327._0x29ed04)][_0x4303ab(0x643,0x5d4,0x6af,_0x30c327._0x35772a)]+0x1)+':'+(_0x32362b[_0x287026(_0x30c327._0x4946a0,_0x30c327._0x52fd34,0x5a7,_0x30c327._0x48307c)]['range']['start'][_0x287026(_0x30c327._0x241a01,0x40b,0x535,0x487)]+0x1);})['join']('\x0a');}function formatDiagnostics(_0x271759){const _0x297298={_0x40700c:0x4ab,_0x5dbadc:0x53e,_0xd5c54f:0x4c3,_0x46cd30:0x3c4,_0x25443f:0x307,_0xfa8140:0x432,_0x28faff:0x345,_0x224ecf:0x40d,_0x333d74:0x277,_0x238e87:0x3ab},_0x1c7494={_0x42e62e:0x264,_0x313fe3:0x170,_0x3f89b0:0x2f3,_0x229396:0x31f,_0x5e51f4:0x312,_0x1b7466:0x451,_0x158e8e:0x691,_0x7d39a6:0x774,_0x4b454b:0x78d,_0x1926bf:0x342,_0x406316:0x437,_0xea2fd9:0x38a,_0x134064:0x27a,_0x56e4b2:0x3e6},_0x5087c1={_0x51e201:0x1a},_0xbd3874={_0x264a5b:0xdb},_0x6dddc5={_0x23d710:0xb4,_0x285bba:0x100};function _0x289e2b(_0x25faeb,_0x43f0b4,_0x543963,_0xbd1bd9){return _0x120580(_0x543963- -_0x6dddc5._0x23d710,_0x43f0b4,_0x543963-0x1e5,_0xbd1bd9-_0x6dddc5._0x285bba);}function _0x3fb942(_0x5099b3,_0x3d05d2,_0x4d5f3f,_0x53466c){return _0x43e84c(_0x5099b3-0x151,_0x4d5f3f,_0x4d5f3f-_0xbd3874._0x264a5b,_0x5099b3- -0x200);}if(_0x271759[_0x289e2b(_0x297298._0x40700c,_0x297298._0x5dbadc,_0x297298._0xd5c54f,_0x297298._0x46cd30)]===0x0)return _0x289e2b(0x53f,_0x297298._0x25443f,_0x297298._0xfa8140,_0x297298._0x28faff);return _0x271759[_0x289e2b(0x4c8,_0x297298._0x224ecf,0x539,0x644)](_0x14c6f2=>{const _0x3a8ded={_0x20c9ba:0x145};function _0x139330(_0x2f2ac0,_0x40ac26,_0x3862b5,_0x183500){return _0x3fb942(_0x183500-0x45c,_0x40ac26-0x44,_0x40ac26,_0x183500-_0x5087c1._0x51e201);}const _0x324bdb=_0x14c6f2[_0x42623d(0x1e9,_0x1c7494._0x42e62e,_0x1c7494._0x313fe3,0x1bd)][_0x42623d(_0x1c7494._0x3f89b0,_0x1c7494._0x229396,_0x1c7494._0x5e51f4,_0x1c7494._0x1b7466)];function _0x42623d(_0x2443fa,_0x545280,_0x1471b3,_0x1be8fb){return _0x289e2b(_0x2443fa-0x1c7,_0x1be8fb,_0x545280- -0xe9,_0x1be8fb-_0x3a8ded._0x20c9ba);}return severityName(_0x14c6f2['severity'])+'\x20['+(_0x324bdb[_0x139330(_0x1c7494._0x158e8e,_0x1c7494._0x7d39a6,_0x1c7494._0x4b454b,0x698)]+0x1)+':'+(_0x324bdb[_0x42623d(0x324,_0x1c7494._0x1926bf,0x1fe,_0x1c7494._0x406316)]+0x1)+']\x20'+_0x14c6f2[_0x42623d(0x3c8,_0x1c7494._0xea2fd9,_0x1c7494._0x134064,_0x1c7494._0x56e4b2)];})[_0x3fb942(_0x297298._0x333d74,_0x297298._0x238e87,0x17b,0x2fe)]('\x0a');}function formatIncomingCalls(_0x7d0b7b){const _0x22e581={_0xb091dc:0x359,_0x56daa3:0x327,_0x458ffe:0x31d,_0x435d7c:0x137,_0x32ec3b:0x188,_0x2f4408:0xdd,_0xe300db:0x11a,_0x3c4c90:0x2},_0x4987e7={_0x46c9b8:0x16d,_0x14345a:0x1e9};function _0x9eff9c(_0x164dd3,_0xda330f,_0x24ef70,_0x45847a){return _0x43e84c(_0x164dd3-_0x4987e7._0x46c9b8,_0xda330f,_0x24ef70-_0x4987e7._0x14345a,_0x24ef70- -0x4c9);}if(_0x7d0b7b[_0xde3e97(0x3a2,_0x22e581._0xb091dc,_0x22e581._0x56daa3,_0x22e581._0x458ffe)]===0x0)return _0x9eff9c(-_0x22e581._0x435d7c,-0xbc,-0x45,-0x4a);function _0xde3e97(_0x4f7950,_0x3d2103,_0x181c52,_0x4d5f9b){return _0x43e84c(_0x4f7950-0xb0,_0x181c52,_0x181c52-0x184,_0x3d2103- -0x17a);}return _0x7d0b7b[_0x9eff9c(_0x22e581._0x32ec3b,-0x28,0x80,0x77)](_0xae1ec2=>_0xae1ec2[_0x9eff9c(-0x81,-0x26f,-0x163,-0x26c)]['name'])[_0x9eff9c(-_0x22e581._0x2f4408,-_0x22e581._0xe300db,-0x52,-_0x22e581._0x3c4c90)]('\x0a');}function formatOutgoingCalls(_0x47368f){const _0x4af2a8={_0x2f95cf:0x65b,_0x4868f0:0x51b,_0x1a839e:0x729,_0x58b322:0x60c,_0x31ce41:0x535,_0x42f5a1:0x5c6,_0x1e3eb2:0x42,_0xf2da89:0x8,_0x16e33b:0x12d},_0x79e690={_0x19748d:0xe4,_0x421d6e:0x1a5},_0x2b1e12={_0x1d5929:0x570,_0x248a95:0x12d};function _0x1d81b0(_0x5b6e77,_0x4b9965,_0x282803,_0xa1bc7e){return _0x120580(_0x5b6e77- -_0x2b1e12._0x1d5929,_0x4b9965,_0x282803-_0x2b1e12._0x248a95,_0xa1bc7e-0x130);}function _0x1f752d(_0x303697,_0x2a3fcb,_0x411f06,_0x1fd550){return _0x120580(_0x303697-_0x79e690._0x19748d,_0x411f06,_0x411f06-_0x79e690._0x421d6e,_0x1fd550-0x90);}if(_0x47368f[_0x1f752d(_0x4af2a8._0x2f95cf,_0x4af2a8._0x4868f0,_0x4af2a8._0x1a839e,0x534)]===0x0)return _0x1f752d(_0x4af2a8._0x58b322,_0x4af2a8._0x31ce41,0x51d,_0x4af2a8._0x42f5a1);return _0x47368f[_0x1d81b0(0x7d,-0xc2,_0x4af2a8._0x1e3eb2,-0x2e)](_0x7b1f79=>_0x7b1f79['to']['name'])[_0x1d81b0(-0x55,_0x4af2a8._0xf2da89,-_0x4af2a8._0x16e33b,-0xd5)]('\x0a');}function toStructured(_0x484cc3){const _0x2c4fa1={_0x5f3ef3:0xb,_0x27410e:0xe7},_0x3a66c0={_0x3d95ca:0x4da,_0x177ad1:0x175};function _0x3455e1(_0x2cf27c,_0x239986,_0x5d1644,_0x23da39){return _0x120580(_0x23da39- -_0x3a66c0._0x3d95ca,_0x239986,_0x5d1644-_0x3a66c0._0x177ad1,_0x23da39-0x7b);}return JSON['parse'](JSON[_0x3455e1(-0x4f,0x127,-_0x2c4fa1._0x5f3ef3,_0x2c4fa1._0x27410e)](_0x484cc3));}async function assertFile(_0x1fe9a1){const _0x301b9f={_0x18f679:0x318,_0x50dfe6:0x23c},_0x13358d={_0x446e4b:0x113};function _0x5ab610(_0x5bd731,_0x1884a6,_0x41ef98,_0xaeff09){return _0x120580(_0x5bd731- -_0x13358d._0x446e4b,_0xaeff09,_0x41ef98-0x193,_0xaeff09-0x16f);}const _0x43db1a=await _0x2d599c(_0x1fe9a1);if(!_0x43db1a['isFile']())throw new ToolExecutionError(_0x5ab610(_0x301b9f._0x18f679,_0x301b9f._0x50dfe6,0x238,0x1fc)+_0x1fe9a1,{'path':_0x1fe9a1});}function validatePosition(_0x4f9ce9,_0x43f794){const _0x3c6cb2={_0x34df3d:0x37f,_0x2074ea:0x546,_0x36acc0:0x2f1,_0x3bca30:0x7b0,_0x13ffe0:0x74f,_0x3d3344:0x84b},_0x2dd6a2={_0x4201bd:0x164,_0x5a7dc2:0x8e,_0x457974:0x81},_0x271a4a={_0x2a118b:0x1a8};if(!Number[_0xb5dee9(0x4c2,_0x3c6cb2._0x34df3d,0x52c,_0x3c6cb2._0x2074ea)](_0x4f9ce9)||_0x4f9ce9<0x1)throw new ToolExecutionError(_0xb5dee9(0x30d,0x401,0x266,_0x3c6cb2._0x36acc0),{'line':_0x4f9ce9});function _0x2f0ebd(_0x2ebd94,_0x48b0f0,_0x5e84bd,_0x563bdb){return _0x120580(_0x48b0f0-0x18a,_0x5e84bd,_0x5e84bd-_0x271a4a._0x2a118b,_0x563bdb-0x2e);}function _0xb5dee9(_0xdb7d7b,_0xc72c52,_0x4dd421,_0xa946cb){return _0x120580(_0xdb7d7b- -_0x2dd6a2._0x4201bd,_0xc72c52,_0x4dd421-_0x2dd6a2._0x5a7dc2,_0xa946cb-_0x2dd6a2._0x457974);}if(!Number[_0x2f0ebd(0x761,_0x3c6cb2._0x3bca30,_0x3c6cb2._0x13ffe0,_0x3c6cb2._0x3d3344)](_0x43f794)||_0x43f794<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x43f794});}function createLspTool(_0x3c4514={}){const _0x4a1805={_0x1e2b90:0x588,_0x25d9c8:0x719,_0x23a924:0x633,_0x683c56:0x619,_0x3af9b6:0x6dd,_0x9f9c5c:0x62a,_0xe31fa7:0x6dc,_0x48fbab:0x645,_0x4b9ecd:0x3a5,_0x37f4cf:0x5f3,_0x599249:0x60f,_0x31139e:0x404,_0x73f76:0x2ec,_0x2770a7:0x37c,_0x10f5ff:0x5e4,_0xfed09c:0x5a4,_0xd40d04:0x2bd,_0x507462:0x3d5,_0x4c4e05:0x500,_0x1a3026:0x575,_0x20a665:0x60b,_0x1047a1:0x535,_0x2585f6:0x687,_0x1c779a:0x57e,_0x44e34b:0x66e,_0x29a680:0x5f8,_0x39edb2:0x732,_0x209034:0x6cb,_0x52e909:0x404,_0x3fddf8:0x33c,_0x1e0743:0x430,_0xe43da5:0x703,_0x237b7c:0x608,_0x46dc0b:0x4bc},_0x3672f5={_0x3c0e65:0x14a,_0x4e5181:0x170,_0x8dd493:0xe3,_0x1b4b1d:0x34,_0x318406:0x20a,_0x11a8ea:0xed,_0x55094d:0x9f,_0x93fea3:0x1d9,_0x5107b9:0x144,_0x4dc6df:0x233,_0x52db50:0x7a,_0x487630:0x4c,_0x5b7de6:0x296,_0xf19eb6:0xc5,_0x7b84f1:0x85,_0x429811:0x46,_0xdf097b:0x28a,_0x3c2f55:0x85,_0x29e246:0x169,_0x5b5696:0x19f,_0x984e1a:0x13d,_0x1606c8:0x249,_0x2e77d6:0x19f,_0xff1f7e:0x13,_0x4ac3fa:0x13,_0x13f808:0x76,_0x5cf011:0x16a,_0x3e8923:0xd5,_0x17308a:0x70,_0x443b39:0xe5,_0x2d68bc:0x21a,_0xf23b61:0x7,_0x4183f5:0x1b0,_0x58d96f:0x6b,_0x360789:0x1fa,_0x1ad6be:0x11c,_0x10d4e7:0x234,_0x59e7a3:0x5d,_0x49d4b1:0x105,_0x19f08d:0xe4,_0x3558b2:0xa5,_0x181090:0x130,_0x55de27:0xb1,_0x167407:0x1c8,_0x488569:0x171,_0x19501c:0x1f6,_0x120dad:0x1f3,_0x1a12b5:0x26,_0x118bb7:0x11a,_0x174242:0x222,_0x2df9d8:0x1e1,_0x52c1a8:0x2e7,_0x3bdc84:0x1e1,_0x3b75ea:0x2,_0x13eb08:0xad,_0x836034:0x8a,_0x5a3639:0x17b},_0x1d4d2e={_0x197c84:0x32},_0x5048ec=_0x4f540f['resolve'](_0x3c4514['defaultCwd']??process['cwd']()),_0x2d5d20=(_0x3c4514[_0x587188(0x4e5,0x3e5,_0x4a1805._0x1e2b90,0x471)]??[])[_0x587188(_0x4a1805._0x25d9c8,_0x4a1805._0x23a924,_0x4a1805._0x683c56,_0x4a1805._0x3af9b6)](_0x1ec75d=>_0x4f540f['resolve'](_0x1ec75d));function _0x587188(_0x261c65,_0x151fd9,_0x569381,_0x4f853e){return _0x120580(_0x261c65-0x12c,_0x569381,_0x569381-0x1a2,_0x4f853e-_0x1d4d2e._0x197c84);}function _0x10e9dc(_0x43cbdb,_0x97aede,_0x770d09,_0x5f3f99){return _0x120580(_0x43cbdb- -0xf0,_0x5f3f99,_0x770d09-0x185,_0x5f3f99-0x62);}const _0x57bab1=_0x3c4514[_0x587188(_0x4a1805._0x9f9c5c,0x539,_0x4a1805._0xe31fa7,_0x4a1805._0x48fbab)]??_0x587188(0x4d1,0x4e1,_0x4a1805._0x4b9ecd,0x413);return defineTool({'name':_0x57bab1,'description':_0x587188(0x5df,_0x4a1805._0x37f4cf,_0x4a1805._0x599249,0x6c6),'inputSchema':{'type':'object','properties':{'operation':{'type':_0x10e9dc(_0x4a1805._0x31139e,_0x4a1805._0x73f76,0x35b,0x370),'enum':[_0x10e9dc(0x2ba,0x284,0x399,_0x4a1805._0x2770a7),'findReferences',_0x587188(_0x4a1805._0x10f5ff,0x4c8,_0x4a1805._0xfed09c,0x61c),_0x10e9dc(_0x4a1805._0xd40d04,_0x4a1805._0x507462,0x3b7,0x237),'workspaceSymbol','goToImplementation','prepareCallHierarchy',_0x587188(_0x4a1805._0x4c4e05,0x58f,0x609,0x5c7),_0x587188(_0x4a1805._0x1a3026,0x52b,_0x4a1805._0x20a665,0x5c0),_0x587188(0x678,_0x4a1805._0x1047a1,_0x4a1805._0x2585f6,_0x4a1805._0x1c779a)]},'filePath':{'type':'string'},'line':{'type':_0x587188(0x6de,_0x4a1805._0x44e34b,0x72d,_0x4a1805._0x29a680)},'character':{'type':_0x587188(0x6de,_0x4a1805._0x39edb2,0x778,_0x4a1805._0x209034)},'query':{'type':_0x10e9dc(_0x4a1805._0x52e909,_0x4a1805._0x3fddf8,0x4f4,_0x4a1805._0x1e0743)}},'required':[_0x587188(0x62d,_0x4a1805._0xe43da5,_0x4a1805._0x237b7c,0x50f),_0x10e9dc(0x44f,0x434,0x39b,_0x4a1805._0x46dc0b),'line','character']},async *'execute'(_0x1ec168){const _0x5cc60d={_0x51f7a1:0x2ac,_0x59c970:0x5},_0x53b993={_0x28b3d1:0x6e1},_0x31d1ad=_0x3c4514[_0x5ed15f(-0x153,-0x3a,-_0x3672f5._0x3c0e65,-0x11)];if(!_0x31d1ad)throw new ToolExecutionError(_0x5ed15f(-_0x3672f5._0x4e5181,0x36,_0x3672f5._0x8dd493,-0x3c));if(!_0x31d1ad['isEnabled']())throw new ToolExecutionError(_0x5ed15f(-0x1e1,_0x3672f5._0x1b4b1d,-_0x3672f5._0x318406,-_0x3672f5._0x11a8ea));const _0x2a255d=_0x1ec168[_0x4354bf(0x29e,0x165,_0x3672f5._0x55094d,_0x3672f5._0x93fea3)];validatePosition(_0x1ec168[_0x4354bf(0xb0,_0x3672f5._0x5107b9,0x1de,_0x3672f5._0x4dc6df)],_0x1ec168['character']);if(_0x2a255d==='workspaceSymbol'){if(!_0x1ec168[_0x4354bf(0x139,_0x3672f5._0x52db50,0xef,_0x3672f5._0x487630)]?.[_0x5ed15f(-_0x3672f5._0x5b7de6,-_0x3672f5._0xf19eb6,-0x244,-0x1b6)]())throw new ToolExecutionError(_0x5ed15f(-0xaf,-_0x3672f5._0x7b84f1,-_0x3672f5._0x429811,-0x36));const _0x5b5b87=await _0x31d1ad[_0x4354bf(0x245,0x1ab,_0x3672f5._0xdf097b,_0x3672f5._0x3c2f55)](_0x1ec168[_0x5ed15f(-0x1af,-0x8b,-_0x3672f5._0x29e246,-_0x3672f5._0x5b5696)]['trim']());return yield createToolOutput(formatSymbols(_0x5b5b87),{'operation':_0x2a255d,'query':_0x1ec168[_0x5ed15f(-_0x3672f5._0x984e1a,-0x150,-_0x3672f5._0x1606c8,-_0x3672f5._0x2e77d6)],'symbols':_0x5b5b87}),void 0x0;}const _0x1643f6=resolveAllowedPath(_0x5048ec,_0x2d5d20,_0x1ec168[_0x5ed15f(-_0x3672f5._0xff1f7e,-0x57,-_0x3672f5._0x4ac3fa,-_0x3672f5._0x13f808)]);function _0x5ed15f(_0x507eef,_0x386349,_0x166135,_0x1ca540){return _0x587188(_0x1ca540- -_0x53b993._0x28b3d1,_0x386349-0x1c5,_0x507eef,_0x1ca540-0xb5);}await assertFile(_0x1643f6);if(!await _0x31d1ad['hasClients'](_0x1643f6))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x1ec168[_0x4354bf(0x247,0x1a3,0x15b,0x2db)],{'filePath':_0x1ec168[_0x5ed15f(-0x1a7,-_0x3672f5._0x5cf011,-0x45,-0x76)]});await _0x31d1ad[_0x4354bf(-0x74,0x9e,-0xf,_0x3672f5._0x3e8923)](_0x1643f6,!![]);function _0x4354bf(_0x58c2ce,_0x374487,_0x56f4b6,_0x51003e){return _0x10e9dc(_0x374487- -_0x5cc60d._0x51f7a1,_0x374487-_0x5cc60d._0x59c970,_0x56f4b6-0x117,_0x58c2ce);}const _0x27a6c5={'file':_0x1643f6,'line':_0x1ec168['line']-0x1,'character':_0x1ec168[_0x4354bf(0x10,0x143,_0x3672f5._0x17308a,_0x3672f5._0x443b39)]-0x1};switch(_0x2a255d){case _0x5ed15f(-_0x3672f5._0x2d68bc,-0x63,-_0x3672f5._0xf23b61,-0xfd):{const _0x45333a=await _0x31d1ad['hover'](_0x27a6c5);return yield createToolOutput(formatHover(_0x45333a),{'operation':_0x2a255d,'filePath':_0x1643f6,'hover':_0x45333a}),void 0x0;}case _0x4354bf(0x29c,_0x3672f5._0x4183f5,0xd1,_0x3672f5._0x58d96f):{const _0x32f495=await _0x31d1ad['diagnosticsForFile'](_0x1643f6);return yield createToolOutput(formatDiagnostics(_0x32f495),{'operation':_0x2a255d,'filePath':_0x1643f6,'diagnostics':_0x32f495}),void 0x0;}case'goToDefinition':{const _0x57dcbe=await _0x31d1ad[_0x4354bf(0x26c,_0x3672f5._0x360789,_0x3672f5._0x1ad6be,_0x3672f5._0x10d4e7)](_0x27a6c5);return yield createToolOutput(formatLocations(_0x57dcbe),{'operation':_0x2a255d,'filePath':_0x1643f6,'locations':_0x57dcbe}),void 0x0;}case _0x5ed15f(-_0x3672f5._0x59e7a3,-_0x3672f5._0x49d4b1,0x1c,-_0x3672f5._0x19f08d):{const _0x178421=await _0x31d1ad[_0x4354bf(_0x3672f5._0x3558b2,0x160,0xe7,0x116)](_0x27a6c5);return yield createToolOutput(formatLocations(_0x178421),{'operation':_0x2a255d,'filePath':_0x1643f6,'locations':_0x178421}),void 0x0;}case _0x4354bf(_0x3672f5._0x181090,0x1c2,_0x3672f5._0x55de27,0x252):{const _0x87186c=await _0x31d1ad[_0x5ed15f(-0x14b,-_0x3672f5._0x167407,-_0x3672f5._0x488569,-0x14e)](_0x27a6c5);return yield createToolOutput(formatLocations(_0x87186c),{'operation':_0x2a255d,'filePath':_0x1643f6,'locations':_0x87186c}),void 0x0;}case'documentSymbol':{const _0x26f469=await _0x31d1ad['documentSymbol'](_0x1643f6);return yield createToolOutput(formatSymbols(_0x26f469),{'operation':_0x2a255d,'filePath':_0x1643f6,'symbols':_0x26f469}),void 0x0;}case _0x5ed15f(-0x19b,-0xc0,-_0x3672f5._0x19501c,-_0x3672f5._0x120dad):{const _0x5047fe=await _0x31d1ad[_0x4354bf(0x10f,_0x3672f5._0x1a12b5,_0x3672f5._0x118bb7,-0x118)](_0x27a6c5);return yield createToolOutput(formatSymbols(_0x5047fe),{'operation':_0x2a255d,'filePath':_0x1643f6,'symbols':toStructured(_0x5047fe)}),void 0x0;}case _0x5ed15f(-0x1b2,-_0x3672f5._0x174242,-0x176,-_0x3672f5._0x2df9d8):{const _0x5b421e=await _0x31d1ad[_0x5ed15f(-_0x3672f5._0x52c1a8,-0x21a,-0xfa,-_0x3672f5._0x3bdc84)](_0x27a6c5);return yield createToolOutput(formatIncomingCalls(_0x5b421e),{'operation':_0x2a255d,'filePath':_0x1643f6,'calls':toStructured(_0x5b421e)}),void 0x0;}case _0x4354bf(-_0x3672f5._0x3b75ea,_0x3672f5._0x13eb08,0x1e0,_0x3672f5._0x836034):{const _0x151110=await _0x31d1ad[_0x5ed15f(-0x190,-_0x3672f5._0x5a3639,-0x84,-0x16c)](_0x27a6c5);return yield createToolOutput(formatOutgoingCalls(_0x151110),{'operation':_0x2a255d,'filePath':_0x1643f6,'calls':toStructured(_0x151110)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2bd9b5,readFile as _0x3c88a5,writeFile as _0x41818a}from'fs/promises';import{join as _0x2e790e}from'path';function sanitizeStorageKey(_0x303bf3){const _0x46ff49={_0x14dcff:0x326,_0x4d8d1c:0x3a7,_0x49fe60:0x4b0,_0x106359:0x59a,_0x2b1ab2:0x472,_0xddc555:0x3dd,_0x5944c2:0x56b},_0x18ccc5={_0x37d959:0x5b,_0x3f90bb:0x9e};function _0x12623e(_0x376781,_0x307fbd,_0x5df835,_0x5809a7){return _0x43e84c(_0x376781-0x107,_0x5df835,_0x5df835-_0x18ccc5._0x37d959,_0x307fbd-_0x18ccc5._0x3f90bb);}function _0x10e862(_0x5c278b,_0x3cb475,_0x56265c,_0x193f7e){return _0x43e84c(_0x5c278b-0xe7,_0x193f7e,_0x56265c-0xfa,_0x56265c- -0x2d);}return _0x303bf3[_0x10e862(0x2d3,_0x46ff49._0x14dcff,_0x46ff49._0x4d8d1c,_0x46ff49._0x49fe60)](/[^a-zA-Z0-9_]+/g,'_')[_0x12623e(_0x46ff49._0x106359,_0x46ff49._0x2b1ab2,_0x46ff49._0xddc555,_0x46ff49._0x5944c2)](/^_+|_+$/g,'')||'server';}function storagePath(_0x2d24b0){const _0x19fcdb={_0x284847:0xd6,_0x4ad3d4:0x128,_0x40d4df:0x164,_0x3ed356:0x7b3,_0x5160df:0x64f,_0x219403:0x69e,_0x5ed624:0x7b4,_0x2d842f:0x696},_0x4eaa04={_0xe9f42d:0xe9,_0x26a287:0x11b},_0x4e2d59={_0x1462c8:0x396,_0x39b37f:0x175},_0x1c2ba5=sanitizeStorageKey(_0x2d24b0['config'][_0x4d52da(_0x19fcdb._0x284847,0xd,-_0x19fcdb._0x4ad3d4,0xd6)]?.[_0x4d52da(0x25f,_0x19fcdb._0x40d4df,0x1f,0x7f)]??_0x2d24b0[_0x20ba7f(0x711,_0x19fcdb._0x3ed356,0x767,0x6d4)]);function _0x4d52da(_0x11574b,_0x50cbdc,_0x46e280,_0x4802c5){return _0x120580(_0x50cbdc- -_0x4e2d59._0x1462c8,_0x4802c5,_0x46e280-0xad,_0x4802c5-_0x4e2d59._0x39b37f);}function _0x20ba7f(_0x3dc930,_0x13ff0d,_0x4c8e98,_0x311d1a){return _0x120580(_0x311d1a-_0x4eaa04._0xe9f42d,_0x3dc930,_0x4c8e98-0x85,_0x311d1a-_0x4eaa04._0x26a287);}return _0x2e790e(_0x2d24b0[_0x20ba7f(0x814,0x71c,0x81f,0x713)],_0x1c2ba5+_0x20ba7f(_0x19fcdb._0x5160df,_0x19fcdb._0x219403,_0x19fcdb._0x5ed624,_0x19fcdb._0x2d842f));}async function readStore(_0x2ddf72){const _0x595659={_0x3a63e2:0x33a,_0x3386b8:0x3d6,_0x392a04:0x423,_0xd93632:0x521,_0x88579e:0x421,_0x2decea:0x5ef,_0x2bf54e:0x5fd,_0x4cb1d7:0x57a,_0x1772ac:0x4df,_0x1a8893:0x182,_0x514b6c:0x2bb},_0x2003e3={_0x46f219:0x57,_0x2e5896:0xf2,_0x4fbbe1:0x47},_0x1124c5={_0x2a316f:0x171,_0x55c6a2:0x12e};function _0x571371(_0x5f1545,_0x1b168c,_0x36e6eb,_0x199ffc){return _0x43e84c(_0x5f1545-_0x1124c5._0x2a316f,_0x199ffc,_0x36e6eb-_0x1124c5._0x55c6a2,_0x36e6eb-0x54);}function _0x53fac7(_0x317d55,_0xfbd4fd,_0x44df1f,_0x57dc5d){return _0x43e84c(_0x317d55-_0x2003e3._0x46f219,_0xfbd4fd,_0x44df1f-_0x2003e3._0x2e5896,_0x57dc5d- -_0x2003e3._0x4fbbe1);}try{return JSON[_0x571371(_0x595659._0x3a63e2,0x3b8,_0x595659._0x3386b8,_0x595659._0x392a04)](await _0x3c88a5(_0x2ddf72,_0x571371(0x5df,0x480,_0x595659._0xd93632,_0x595659._0x88579e)));}catch(_0x2d9e5e){if(_0x2d9e5e instanceof Error&&_0x571371(_0x595659._0x2decea,_0x595659._0x2bf54e,_0x595659._0x4cb1d7,0x486)in _0x2d9e5e&&_0x2d9e5e[_0x53fac7(0x5b2,0x5d8,0x517,_0x595659._0x1772ac)]===_0x53fac7(0x315,_0x595659._0x1a8893,0x292,_0x595659._0x514b6c))return{};throw _0x2d9e5e;}}async function writeStore(_0x5818f4,_0x2f671a){const _0x4d300f={_0x2fdd30:0x6b,_0x2792ef:0xe0,_0x1139e1:0x1ad},_0x2c4d58={_0x1b7ae3:0x462},_0xd246bf={_0x1d6d4f:0x44};function _0x53845f(_0x267a2a,_0x6d897d,_0x1940bc,_0x594c4d){return _0x120580(_0x267a2a- -0x419,_0x1940bc,_0x1940bc-0x5d,_0x594c4d-_0xd246bf._0x1d6d4f);}await _0x2bd9b5(_0x2e790e(_0x5818f4,'..'),{'recursive':!![]});function _0x28920c(_0x400e8,_0x30e5de,_0x55ef47,_0x3e8b9b){return _0x43e84c(_0x400e8-0x190,_0x3e8b9b,_0x55ef47-0xfe,_0x30e5de- -_0x2c4d58._0x1b7ae3);}await _0x41818a(_0x5818f4,JSON[_0x53845f(0x1a8,0x17b,0x2d7,0x2bb)](_0x2f671a,null,0x2),_0x28920c(-0xa4,_0x4d300f._0x2fdd30,_0x4d300f._0x2792ef,_0x4d300f._0x1139e1));}async function updateStore(_0x3ae29b,_0x1fa563){const _0x2ccd23=await readStore(_0x3ae29b);_0x1fa563(_0x2ccd23),await writeStore(_0x3ae29b,_0x2ccd23);}function createMcpOAuthProvider(_0x3fc603){const _0x5ea337={_0x1b5f87:0x76,_0x130378:0x88,_0x17096c:0x8e,_0x5e9fdb:0x195,_0x56b2a4:0x60,_0x108b48:0x345,_0x236bb4:0x386,_0x3f1b36:0x22a,_0x5dc041:0x309,_0x57f792:0x13d,_0x200277:0x300,_0x3c01af:0x176,_0x30e710:0x15b,_0x45c5db:0x8b,_0x5d8b74:0x73},_0x179e84={_0x1b7ff2:0x74,_0x5006c5:0x1b8,_0x4b4b76:0x210,_0x55229c:0x9c,_0xeae4d0:0xd3},_0x139483={_0x1aa51f:0x19c,_0x595123:0x315},_0x178f43={_0x1ebc78:0x1b3},_0x42b7cc={_0x2e45fa:0x57f,_0x1d43d4:0x6f3,_0x2c1593:0x5be},_0x2b34ff={_0x2cb94f:0x49b,_0x1d3959:0x375,_0x44e2ef:0x166,_0x20759c:0x59},_0x43b464={_0x36d429:0x33,_0x2d71f1:0x13,_0x5cb797:0x2cc},_0x3f21d7={_0x27215d:0x3dc,_0x415cea:0x337},_0x17b559={_0x2a6aee:0x397},_0x29525c={_0x46e41e:0x5},_0x28fc5e={_0x3102cd:0x16d,_0x41824b:0x14e},_0x141e42=storagePath(_0x3fc603),_0x26dd98=_0x3fc603['config']['oauth']?.['scopes']?.[_0x2ecce6(-0x133,_0x5ea337._0x1b5f87,_0x5ea337._0x130378,-_0x5ea337._0x17096c)]('\x20'),_0x13d4a2={'client_name':_0x2ecce6(-0x159,-0x122,-0xdd,-0x1e2),'redirect_uris':[_0x3fc603[_0x2ecce6(-_0x5ea337._0x5e9fdb,0x72,-0xb2,-_0x5ea337._0x56b2a4)]],'grant_types':[_0x1922ba(0x342,0x2d2,_0x5ea337._0x108b48,0x2a4),_0x1922ba(0x36a,0x395,0x418,_0x5ea337._0x236bb4)],'response_types':['code'],'token_endpoint_auth_method':'client_secret_post',..._0x26dd98?{'scope':_0x26dd98}:{}};function _0x1922ba(_0x19b947,_0x6da47,_0x57d170,_0x1d0acd){return _0x120580(_0x57d170- -_0x28fc5e._0x3102cd,_0x1d0acd,_0x57d170-_0x28fc5e._0x41824b,_0x1d0acd-0x1ec);}function _0x2ecce6(_0x9f5838,_0x2f5de0,_0x3fa1be,_0x2ef885){return _0x43e84c(_0x9f5838-_0x29525c._0x46e41e,_0x3fa1be,_0x3fa1be-0x1a9,_0x2ef885- -0x505);}return{'clientMetadataUrl':_0x3fc603[_0x1922ba(_0x5ea337._0x3f1b36,0x276,0x279,_0x5ea337._0x5dc041)][_0x1922ba(_0x5ea337._0x57f792,0x198,0x236,_0x5ea337._0x200277)]?.[_0x2ecce6(_0x5ea337._0x3c01af,_0x5ea337._0x30e710,_0x5ea337._0x45c5db,_0x5ea337._0x5d8b74)],get 'redirectUrl'(){function _0x3561fb(_0x518b1b,_0x5d4521,_0x2eba72,_0xebb2b3){return _0x2ecce6(_0x518b1b-0xd4,_0x5d4521-0x5d,_0x2eba72,_0xebb2b3-_0x17b559._0x2a6aee);}return _0x3fc603[_0x3561fb(_0x3f21d7._0x27215d,0x1f1,0x36f,_0x3f21d7._0x415cea)];},get 'clientMetadata'(){return _0x13d4a2;},async 'state'(){const _0x46b21a={_0x1169ac:0x521,_0xf71aa1:0x636},_0x5047d0=await readStore(_0x141e42);function _0x2e3ab1(_0x5cfe0c,_0x1670e4,_0x5bcffc,_0x315c6f){return _0x1922ba(_0x5cfe0c-0x1eb,_0x1670e4-0x69,_0x5cfe0c-0x188,_0x315c6f);}if(_0x5047d0[_0x2e3ab1(0x4ad,0x4d7,_0x2b34ff._0x2cb94f,_0x2b34ff._0x1d3959)])return _0x5047d0[_0x5057bd(_0x2b34ff._0x44e2ef,0x146,-0xe3,_0x2b34ff._0x20759c)];const _0x4c3fd7=randomUUID();function _0x5057bd(_0x3e1b84,_0x59372b,_0x1f8039,_0x3e65f6){return _0x1922ba(_0x3e1b84-_0x43b464._0x36d429,_0x59372b-_0x43b464._0x2d71f1,_0x3e65f6- -_0x43b464._0x5cb797,_0x3e1b84);}return await updateStore(_0x141e42,_0x2c568e=>{const _0x49f7d0={_0x3452ce:0xae};function _0x1cf5d6(_0x2ed80a,_0x160bad,_0xcd4740,_0x145d9f){return _0x2e3ab1(_0x160bad-0x74,_0x160bad-_0x49f7d0._0x3452ce,_0xcd4740-0x1e,_0x2ed80a);}_0x2c568e[_0x1cf5d6(0x4e0,_0x46b21a._0x1169ac,_0x46b21a._0xf71aa1,0x416)]=_0x4c3fd7;}),_0x4c3fd7;},async 'clientInformation'(){const _0x4782c6={_0x5f444d:0x159,_0x803d47:0xf1};function _0x2dcf6b(_0x2cc754,_0x10db22,_0x1f311f,_0x5c6877){return _0x1922ba(_0x2cc754-_0x4782c6._0x5f444d,_0x10db22-0x6b,_0x2cc754-_0x4782c6._0x803d47,_0x5c6877);}return(await readStore(_0x141e42))[_0x2dcf6b(0x3de,0x4ae,0x3c0,0x2f4)];},async 'saveClientInformation'(_0x5d1fbb){const _0x33095f={_0x5a1769:0xd2,_0x1e87e5:0xbd,_0x118742:0x123,_0x358f85:0xbb},_0x5ec476={_0x2be69d:0x30c};await updateStore(_0x141e42,_0x354e4a=>{function _0x164a39(_0x15fd96,_0x461be2,_0x1aabd3,_0x5a5eff){return _0x4f9a(_0x461be2- -_0x5ec476._0x2be69d,_0x1aabd3);}_0x354e4a[_0x164a39(-_0x33095f._0x5a1769,-_0x33095f._0x1e87e5,-_0x33095f._0x118742,-_0x33095f._0x358f85)]=_0x5d1fbb;});},async 'tokens'(){const _0x40cf59={_0x4a25c7:0x3d,_0x45412c:0x6c5};function _0x3b2a95(_0x10d332,_0x5f3d97,_0x2b30c6,_0xfb3bcd){return _0x2ecce6(_0x10d332-_0x40cf59._0x4a25c7,_0x5f3d97-0x1c0,_0x2b30c6,_0xfb3bcd-_0x40cf59._0x45412c);}return(await readStore(_0x141e42))[_0x3b2a95(_0x42b7cc._0x2e45fa,_0x42b7cc._0x1d43d4,_0x42b7cc._0x2c1593,0x629)];},async 'saveTokens'(_0x30d208){const _0x51c8b1={_0x524490:0x35c,_0x5bedcc:0x3a3};await updateStore(_0x141e42,_0x2576e9=>{const _0x23b24e={_0x59a676:0x5f};function _0x2cba82(_0x27a0c4,_0x1fb21e,_0x2a6c35,_0x14404a){return _0x4f9a(_0x14404a- -_0x23b24e._0x59a676,_0x27a0c4);}_0x2576e9[_0x2cba82(_0x51c8b1._0x524490,0x3b6,_0x51c8b1._0x5bedcc,0x2a3)]=_0x30d208;});},async 'redirectToAuthorization'(_0x4dd18f){await _0x3fc603['onRedirect'](_0x4dd18f);},async 'saveCodeVerifier'(_0x1aca08){await updateStore(_0x141e42,_0x318dba=>{const _0x41f7ce={_0x32b752:0x168};function _0x39706b(_0x2ad4dc,_0xfdcca0,_0x462d1d,_0x1e20e6){return _0x4f9a(_0x2ad4dc- -_0x41f7ce._0x32b752,_0x1e20e6);}_0x318dba[_0x39706b(_0x178f43._0x1ebc78,0x109,0x239,0x13b)]=_0x1aca08;});},async 'codeVerifier'(){const _0x22dd19={_0x496633:0x179,_0xf8dbe1:0x1bb};function _0x11db43(_0x5ef550,_0x58ec1f,_0x241a80,_0x2c6f41){return _0x2ecce6(_0x5ef550-0x111,_0x58ec1f-_0x22dd19._0x496633,_0x58ec1f,_0x2c6f41-_0x22dd19._0xf8dbe1);}const _0x1e6707=(await readStore(_0x141e42))[_0x382e8f(-0x44,_0x179e84._0x1b7ff2,0xa4,_0x179e84._0x5006c5)];if(!_0x1e6707)throw new Error(_0x382e8f(-_0x179e84._0x4b4b76,-_0x179e84._0x55229c,-_0x179e84._0xeae4d0,-0x17b));function _0x382e8f(_0x221ba6,_0x3da777,_0x299e25,_0x3cc954){return _0x1922ba(_0x221ba6-0x5c,_0x3da777-_0x139483._0x1aa51f,_0x299e25- -_0x139483._0x595123,_0x3da777);}return _0x1e6707;},async 'invalidateCredentials'(_0x282f12){const _0x203232={_0x56c75d:0x696,_0x4a2141:0x45,_0x5047fa:0x151,_0x3b9c50:0x137,_0x3cfce0:0x642,_0x18ae74:0x5f4,_0x26af2d:0x64e,_0x19d94f:0x5e6,_0x509aa7:0x594,_0x8f4319:0x76,_0x319138:0x642,_0x310bb3:0x657,_0x2fcefb:0x693,_0x3e3b0c:0x578,_0x2b559b:0x67,_0x1fab83:0x642,_0x192baa:0x5d6,_0x402fb3:0x678,_0x568d80:0x32,_0x8a138d:0x5d,_0x37fa5a:0x25b};await updateStore(_0x141e42,_0x2786ae=>{const _0x95b417={_0x356629:0x156};function _0x4b88e9(_0x35c67a,_0x2a40e7,_0x5eb7eb,_0x449337){return _0x4f9a(_0x2a40e7- -_0x95b417._0x356629,_0x35c67a);}(_0x282f12==='all'||_0x282f12===_0xa38744(0x605,0x541,0x72f,_0x203232._0x56c75d))&&(_0x2786ae[_0x4b88e9(_0x203232._0x4a2141,0xf9,_0x203232._0x5047fa,_0x203232._0x3b9c50)]=void 0x0);function _0xa38744(_0x26a522,_0x428d79,_0x29d79c,_0x170c88){return _0x4f9a(_0x26a522-0x378,_0x428d79);}(_0x282f12===_0xa38744(_0x203232._0x3cfce0,_0x203232._0x18ae74,_0x203232._0x26af2d,0x74b)||_0x282f12===_0xa38744(0x67a,_0x203232._0x19d94f,_0x203232._0x509aa7,0x69e))&&(_0x2786ae[_0x4b88e9(0x108,0x1ac,_0x203232._0x8f4319,0xfb)]=void 0x0),(_0x282f12===_0xa38744(_0x203232._0x319138,0x719,0x712,_0x203232._0x310bb3)||_0x282f12==='verifier')&&(_0x2786ae[_0xa38744(_0x203232._0x2fcefb,_0x203232._0x3e3b0c,0x7d0,0x72e)]=void 0x0,_0x2786ae[_0x4b88e9(_0x203232._0x2b559b,0x131,0x25e,0x1a1)]=void 0x0),(_0x282f12===_0xa38744(_0x203232._0x1fab83,0x77a,_0x203232._0x192baa,_0x203232._0x402fb3)||_0x282f12===_0x4b88e9(_0x203232._0x568d80,_0x203232._0x8a138d,0x51,0xf8))&&(_0x2786ae[_0x4b88e9(0x34,0x156,_0x203232._0x37fa5a,0x212)]=void 0x0);});},async 'saveDiscoveryState'(_0x5474a7){const _0x49ab31={_0xc9eb17:0xb8,_0x1f34af:0x12f,_0x21f413:0x11a},_0x496e92={_0x2983e3:0x3db};await updateStore(_0x141e42,_0x50624f=>{function _0x239a9c(_0x40f4d4,_0xc45dfd,_0x33b0f6,_0xbe2a6f){return _0x4f9a(_0x33b0f6- -_0x496e92._0x2983e3,_0xc45dfd);}_0x50624f[_0x239a9c(-0x1ac,-_0x49ab31._0xc9eb17,-_0x49ab31._0x1f34af,-_0x49ab31._0x21f413)]=_0x5474a7;});},async 'discoveryState'(){return(await readStore(_0x141e42))['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(_0x56bf93,_0x1924d5){const _0x55f231={_0x5241c5:0x54c,_0xa9d739:0x120,_0x147d9e:0xf4},_0xbf87ba={_0x2f3c04:0x6e,_0x288dc7:0x18b};function _0x53339c(_0x5b998b,_0x3398ef,_0x1eb585,_0x5bd2eb){return _0x120580(_0x1eb585-_0xbf87ba._0x2f3c04,_0x5b998b,_0x1eb585-_0xbf87ba._0x288dc7,_0x5bd2eb-0xd);}const _0x4bd274=_0x3c648c=>_0x3c648c[_0x53339c(0x4c8,0x5c3,0x4e6,0x3aa)](/[^a-zA-Z0-9_]+/g,'_')[_0x1175ad(-0xac,-0xdf,-0xd4,-0x9d)](/^_+|_+$/g,'');function _0x1175ad(_0x5129e9,_0x1388b9,_0x4edd52,_0x526a10){return _0x120580(_0x4edd52- -_0x55f231._0x5241c5,_0x5129e9,_0x4edd52-_0x55f231._0xa9d739,_0x526a10-_0x55f231._0x147d9e);}return'mcp_'+_0x4bd274(_0x56bf93)+'_'+_0x4bd274(_0x1924d5);}function isObject(_0x4b80c0){const _0x1e3bbb={_0x20660b:0x584,_0x36eb10:0x4f4,_0xe553ad:0x552},_0x3b3eba={_0x126bbf:0x107};function _0x479278(_0x3a9dbe,_0x301530,_0x3387ed,_0x5353d1){return _0x120580(_0x301530- -_0x3b3eba._0x126bbf,_0x3387ed,_0x3387ed-0x157,_0x5353d1-0x144);}return typeof _0x4b80c0===_0x479278(_0x1e3bbb._0x20660b,_0x1e3bbb._0x36eb10,_0x1e3bbb._0xe553ad,0x4bf)&&_0x4b80c0!==null&&!Array['isArray'](_0x4b80c0);}function toSupportedSchema(_0x2a6cfe){const _0x597c33={_0x413bcf:0x5b0,_0xc4edc2:0x56f,_0x430327:0x4b2,_0x14c163:0x654,_0x412b6f:0x616,_0x1650fa:0x57a,_0x2972fc:0x69d,_0x367adc:0x62d,_0xc24c1f:0x36a,_0x285ec2:0x3bf,_0x5f51d1:0x463,_0x3aee51:0x3dd,_0x3201f3:0x429,_0x2948c4:0x576,_0x351129:0x6e2,_0xac3514:0x66c,_0x4cef31:0x3a8,_0x2d7b3b:0x46f,_0x1b1010:0x330,_0x16fdc4:0x3b7,_0x59a3fb:0x4a2,_0x158a61:0x474,_0x4d8611:0x448,_0x4cbcb9:0x483,_0x2c3b12:0x4f8,_0x27db79:0x4eb,_0x4d61b1:0x3ce,_0x4f5633:0x4c6,_0x5ed4b0:0x455,_0x5e3af8:0x55c,_0x13a5e2:0x4c9},_0x53463d={_0x3c196e:0x177};if(!isObject(_0x2a6cfe))return void 0x0;function _0xf60a4f(_0x3c2217,_0x586d8b,_0x3bedac,_0x8d3c4a){return _0x43e84c(_0x3c2217-0x18a,_0x3c2217,_0x3bedac-0x107,_0x8d3c4a- -0x8e);}if(_0x2a6cfe['type']===_0x3a1d92(_0x597c33._0x413bcf,0x62d,_0x597c33._0xc4edc2,_0x597c33._0x430327))return{'type':'string'};if(_0x2a6cfe[_0x3a1d92(_0x597c33._0x14c163,_0x597c33._0x412b6f,0x66c,0x54a)]===_0x3a1d92(_0x597c33._0x1650fa,_0x597c33._0x2972fc,_0x597c33._0x367adc,0x6e3)||_0x2a6cfe['type']===_0xf60a4f(_0x597c33._0xc24c1f,_0x597c33._0x285ec2,_0x597c33._0x5f51d1,_0x597c33._0x3aee51))return{'type':_0xf60a4f(0x3ec,0x449,_0x597c33._0x3201f3,0x480)};if(_0x2a6cfe[_0x3a1d92(_0x597c33._0x2948c4,_0x597c33._0x351129,_0x597c33._0xac3514,0x5bc)]===_0xf60a4f(0x1d6,_0x597c33._0x4cef31,0x25b,0x2c2))return{'type':_0x3a1d92(0x560,0x580,_0x597c33._0x2d7b3b,_0x597c33._0x1b1010)};if(_0x2a6cfe[_0x3a1d92(0x674,0x650,0x66c,0x641)]===_0xf60a4f(_0x597c33._0x16fdc4,0x493,0x310,0x3ff))return{'type':_0x3a1d92(_0x597c33._0x59a3fb,0x4e1,0x5ac,_0x597c33._0x2948c4),'items':toSupportedSchema(_0x2a6cfe[_0xf60a4f(_0x597c33._0x158a61,0x479,_0x597c33._0x4d8611,0x384)])??{'type':_0x3a1d92(0x557,_0x597c33._0x4cbcb9,0x56f,_0x597c33._0x2c3b12)}};if(_0x2a6cfe[_0xf60a4f(0x5ed,_0x597c33._0x27db79,_0x597c33._0x4d61b1,0x4bf)]===_0xf60a4f(_0x597c33._0x4f5633,_0x597c33._0x5ed4b0,_0x597c33._0x5e3af8,_0x597c33._0x13a5e2))return toNuvinToolSchema(_0x2a6cfe);function _0x3a1d92(_0x2c596f,_0x48206f,_0x60844d,_0x5ad000){return _0x43e84c(_0x2c596f-_0x53463d._0x3c196e,_0x2c596f,_0x60844d-0x170,_0x60844d-0x11f);}return void 0x0;}function toNuvinToolSchema(_0x3b549a){const _0x3c0502={_0x4aaa20:0x6ae,_0x425045:0x8ee,_0x260612:0x7f9,_0x483e23:0x69e,_0x3909b2:0x62a,_0x59a88a:0x5f9,_0x282683:0x5f6,_0x1279ce:0x58f,_0xee72a:0x5f8,_0x92c0e2:0x47c,_0xbc50de:0x760,_0x45d026:0x59f,_0x337f95:0x663,_0x3b9d73:0x4cd},_0x1d653c={_0x1cc005:0x1af,_0x393542:0x20},_0x30aab7={_0x549a4f:0x28,_0x480f86:0x3b,_0x57d4f1:0x25};function _0x3a4782(_0xfa9340,_0xa19d10,_0x397875,_0x50194f){return _0x120580(_0xfa9340-_0x30aab7._0x549a4f,_0x397875,_0x397875-_0x30aab7._0x480f86,_0x50194f-_0x30aab7._0x57d4f1);}if(!isObject(_0x3b549a)||_0x3b549a['type']!==_0x590c55(_0x3c0502._0x4aaa20,0x7aa,0x6a4,_0x3c0502._0x425045))return{'type':_0x590c55(0x669,0x7aa,_0x3c0502._0x260612,_0x3c0502._0x483e23),'properties':{}};function _0x590c55(_0x304777,_0x2dbfae,_0x5c7fef,_0x565822){return _0x120580(_0x2dbfae-_0x1d653c._0x1cc005,_0x304777,_0x5c7fef-0x1e8,_0x565822-_0x1d653c._0x393542);}const _0x142f4b={},_0x39a7d8=isObject(_0x3b549a[_0x3a4782(0x425,0x539,0x532,0x2f4)])?_0x3b549a[_0x590c55(0x47a,0x5ac,0x653,0x625)]:{};for(const [_0x327329,_0x1f75be]of Object[_0x590c55(_0x3c0502._0x3909b2,_0x3c0502._0x59a88a,_0x3c0502._0x282683,0x4f0)](_0x39a7d8)){const _0x139c2c=toSupportedSchema(_0x1f75be);if(_0x139c2c)_0x142f4b[_0x327329]=_0x139c2c;}const _0xadc201=Array['isArray'](_0x3b549a['required'])?_0x3b549a[_0x3a4782(_0x3c0502._0x1279ce,_0x3c0502._0xee72a,0x664,_0x3c0502._0x92c0e2)][_0x590c55(0x76c,0x6ae,_0x3c0502._0xbc50de,0x5e2)](_0x3294cb=>typeof _0x3294cb===_0x3a4782(0x51c,0x4a1,0x4a0,0x5b0)):void 0x0;return _0xadc201?.[_0x3a4782(_0x3c0502._0x45d026,_0x3c0502._0x337f95,0x4da,_0x3c0502._0x3b9d73)]?{'type':'object','properties':_0x142f4b,'required':_0xadc201}:{'type':'object','properties':_0x142f4b};}function isJsonObject(_0x29774b){const _0x111a8b={_0x2f39eb:0x463,_0x4d615a:0x4b4,_0x5bac07:0xa9},_0x5bc54f={_0x21acb1:0x99,_0x59b0dc:0x3b,_0x1e0cb3:0xa3},_0x5f3ca6={_0x45cdaa:0x193,_0x1ed90e:0xa0,_0x4ca5e1:0x427};function _0x1fd551(_0x3a4788,_0x5960b1,_0x3419ea,_0x55a031){return _0x43e84c(_0x3a4788-_0x5f3ca6._0x45cdaa,_0x55a031,_0x3419ea-_0x5f3ca6._0x1ed90e,_0x3419ea- -_0x5f3ca6._0x4ca5e1);}function _0xf84d9(_0x1ab334,_0x3c011f,_0x15cba4,_0x9f853b){return _0x43e84c(_0x1ab334-_0x5bc54f._0x21acb1,_0x15cba4,_0x15cba4-_0x5bc54f._0x59b0dc,_0x3c011f- -_0x5bc54f._0x1e0cb3);}return typeof _0x29774b===_0xf84d9(_0x111a8b._0x2f39eb,_0x111a8b._0x4d615a,0x41e,0x57d)&&_0x29774b!==null&&!Array[_0x1fd551(-0x2f,0x1ed,_0x111a8b._0x5bac07,0x1b3)](_0x29774b);}function formatMcpContent(_0x66b216){const _0x15b3f9={_0x141ffc:0x8c,_0x349a8d:0x10e,_0x520a88:0x4b7,_0x427e39:0x4fd,_0x489232:0x3c1,_0x46265b:0x453,_0x96e817:0x413,_0x37b6b5:0x46f,_0x23ebb9:0x387,_0x1c1a55:0x42c,_0x1908b4:0x4cb,_0x3a7e55:0x4ea,_0x14426c:0x46,_0x4bc1fa:0x15e,_0x1ba553:0x189},_0xc38626={_0x49fb95:0xac,_0x79a34d:0x115,_0x82667c:0x37},_0x429100={_0x38240e:0x10b,_0x2d6bbb:0x394},_0xc979c7={_0xf1f908:0x507,_0xa15e7c:0x4b4,_0x43fd22:0x440,_0x23bd0d:0x5cb,_0x1042a2:0x55b},_0x4e427c={_0x27e5ac:0xe5,_0x154c4a:0x123,_0x2d4d4a:0x34e},_0x686dc9={_0x499925:0x5b,_0x598c66:0x1a6},_0x59fc70=Array[_0xe0c1fd(_0x15b3f9._0x141ffc,0xf1,_0x15b3f9._0x349a8d,0x13c)](_0x66b216[_0x17640e(0x602,_0x15b3f9._0x520a88,0x4e8,_0x15b3f9._0x427e39)])?_0x66b216['content']:[],_0x130ae6=_0x59fc70['map'](_0x24bf7c=>{if(!isObject(_0x24bf7c))return'';function _0x39031f(_0x52dae3,_0x217333,_0x56d34d,_0x1ef2f7){return _0x17640e(_0x52dae3-_0x686dc9._0x499925,_0x1ef2f7,_0x56d34d-_0x686dc9._0x598c66,_0x1ef2f7-0x1cb);}function _0x5477e5(_0x5366ae,_0x206459,_0x76404e,_0x47766e){return _0xe0c1fd(_0x5366ae-_0x4e427c._0x27e5ac,_0x76404e,_0x76404e-_0x4e427c._0x154c4a,_0x206459-_0x4e427c._0x2d4d4a);}if(_0x24bf7c[_0x5477e5(0x3f7,_0xc979c7._0xf1f908,0x53e,_0xc979c7._0xa15e7c)]==='text'&&typeof _0x24bf7c['text']==='string')return _0x24bf7c[_0x39031f(_0xc979c7._0x43fd22,_0xc979c7._0x23bd0d,_0xc979c7._0x1042a2,0x682)];return JSON['stringify'](_0x24bf7c);})[_0x17640e(0x4d6,_0x15b3f9._0x489232,_0x15b3f9._0x46265b,_0x15b3f9._0x96e817)](_0x1cac05=>_0x1cac05[_0x17640e(0x3d5,0x523,0x4cb,0x429)]>0x0)[_0x17640e(0x353,0x5a6,_0x15b3f9._0x37b6b5,_0x15b3f9._0x23ebb9)]('\x0a');function _0xe0c1fd(_0x20df28,_0x2b9c4e,_0x22b70c,_0x588ef6){return _0x43e84c(_0x20df28-0xd,_0x2b9c4e,_0x22b70c-_0x429100._0x38240e,_0x588ef6- -_0x429100._0x2d6bbb);}function _0x17640e(_0x29e3c3,_0x187269,_0x2a4401,_0x3c5eb4){return _0x120580(_0x2a4401- -_0xc38626._0x49fb95,_0x187269,_0x2a4401-_0xc38626._0x79a34d,_0x3c5eb4-_0xc38626._0x82667c);}if(_0x130ae6[_0x17640e(0x5e0,_0x15b3f9._0x1c1a55,_0x15b3f9._0x1908b4,_0x15b3f9._0x3a7e55)]>0x0)return _0x130ae6;return JSON[_0xe0c1fd(0x14e,_0x15b3f9._0x14426c,_0x15b3f9._0x4bc1fa,_0x15b3f9._0x1ba553)](_0x66b216,null,0x2);}function createMcpTool(_0x5b6ace){const _0xd55d8e={_0x2f2a1b:0xda,_0x4587d5:0x8f,_0x331acf:0x15d,_0x71910e:0x7b,_0x13d146:0x15d,_0x30783e:0xf8,_0x313071:0x18f,_0x4e32dd:0x25,_0xdf869:0xd1,_0x38994f:0xa2,_0x3abe46:0xa9,_0x1ba8d4:0xe8,_0x33e919:0x197,_0x4b9d2e:0x20a,_0x5aadee:0x1c7,_0x124660:0xe8},_0x3ea7f6={_0x14d282:0x47e,_0x3f25d1:0x582,_0x4c5392:0x157,_0x348455:0x8a,_0x1caed8:0x2b,_0x1b9b9b:0x5a6,_0x3e3ac3:0x1d2,_0x140994:0xe5,_0x10f80f:0x62,_0x5edfd0:0x54a,_0x5e136a:0x42f,_0x5f31c7:0x523,_0x4d6654:0x55f,_0x157e7b:0xe5,_0x13d807:0x27,_0x271fb6:0x6d},_0x442ccf={_0x3db3fb:0x38,_0xbf2e:0x15f,_0xfffa52:0x1a1},_0xe23e6b={_0x2cc397:0x3e1,_0x448b8d:0x41};function _0x41935d(_0xf92206,_0x31fec8,_0x49ce7e,_0x3a3c90){return _0x43e84c(_0xf92206-0xa2,_0x3a3c90,_0x49ce7e-0x27,_0x31fec8- -0x4d5);}const _0x5d2fb9=createMcpToolName(_0x5b6ace[_0x41935d(0x178,0x72,0xc9,0x18c)],_0x5b6ace[_0x52cb9(0x15d,_0xd55d8e._0x2f2a1b,_0xd55d8e._0x4587d5,_0xd55d8e._0x331acf)][_0x41935d(0x72,-_0xd55d8e._0x71910e,-0x1ae,-0x189)]);function _0x52cb9(_0x21a23c,_0x46e7cb,_0x5c311c,_0x11fb7e){return _0x120580(_0x21a23c- -_0xe23e6b._0x2cc397,_0x11fb7e,_0x5c311c-0x198,_0x11fb7e-_0xe23e6b._0x448b8d);}return defineTool({'name':_0x5d2fb9,'description':_0x5b6ace[_0x52cb9(_0xd55d8e._0x13d146,0x1e4,0x76,0x2d)][_0x41935d(_0xd55d8e._0x30783e,0x54,_0xd55d8e._0x313071,0xc5)]??_0x52cb9(-_0xd55d8e._0x4e32dd,_0xd55d8e._0xdf869,-0x6d,-_0xd55d8e._0x38994f)+_0x5b6ace[_0x41935d(-_0xd55d8e._0x3abe46,-0x3b,-0x180,0x102)][_0x41935d(0xa9,-0x7b,0x16,-0x1d)]+_0x41935d(-_0xd55d8e._0x1ba8d4,-0x165,-0x173,-_0xd55d8e._0x33e919)+_0x5b6ace[_0x52cb9(_0xd55d8e._0x4b9d2e,_0xd55d8e._0x5aadee,_0xd55d8e._0x124660,0x320)],'inputSchema':toNuvinToolSchema(_0x5b6ace['tool']['inputSchema']),async *'execute'(_0x257ede){const _0x5d3cc4={_0x5149bd:0x1c4,_0x224887:0x55e,_0x24875a:0x11a},_0x224397=await _0x5b6ace['client'][_0x3d0e93(_0x3ea7f6._0x14d282,0x5a5,_0x3ea7f6._0x3f25d1,0x630)]({'name':_0x5b6ace[_0x9d4d5e(0x125,_0x3ea7f6._0x4c5392,_0x3ea7f6._0x348455,_0x3ea7f6._0x1caed8)][_0x3d0e93(_0x3ea7f6._0x1b9b9b,0x546,0x4e3,0x579)],'arguments':isJsonObject(_0x257ede)?_0x257ede:{}});function _0x9d4d5e(_0x48571e,_0x286a89,_0x565793,_0x46f1c4){return _0x52cb9(_0x48571e- -_0x442ccf._0x3db3fb,_0x286a89-_0x442ccf._0xbf2e,_0x565793-_0x442ccf._0xfffa52,_0x565793);}function _0x3d0e93(_0x275b0e,_0x468f28,_0x2fc4bb,_0x2227a6){return _0x41935d(_0x275b0e-_0x5d3cc4._0x5149bd,_0x2fc4bb-_0x5d3cc4._0x224887,_0x2fc4bb-_0x5d3cc4._0x24875a,_0x468f28);}if(_0x224397['isError'])throw new ToolExecutionError(formatMcpContent(_0x224397),{'serverName':_0x5b6ace[_0x9d4d5e(_0x3ea7f6._0x3e3ac3,0x30b,0x2b0,0xcb)],'toolName':_0x5b6ace['tool'][_0x9d4d5e(_0x3ea7f6._0x140994,0x156,_0x3ea7f6._0x10f80f,0x1d2)]});return yield createToolOutput(formatMcpContent(_0x224397),{'serverName':_0x5b6ace[_0x9d4d5e(0x1d2,0xce,0x1df,0x287)],'toolName':_0x5b6ace[_0x3d0e93(_0x3ea7f6._0x5edfd0,_0x3ea7f6._0x5e136a,_0x3ea7f6._0x5f31c7,_0x3ea7f6._0x4d6654)][_0x9d4d5e(_0x3ea7f6._0x157e7b,_0x3ea7f6._0x13d807,_0x3ea7f6._0x271fb6,0x152)],'result':_0x224397}),void 0x0;}});}function resolvePrefix(_0x18bba1,_0x1ec50a){const _0x279ca0={_0xf11617:0x38,_0x1a2fc2:0x1bd},_0x37444b={_0x46b836:0x249};function _0x3df9db(_0x5a60ac,_0x346a54,_0x8c2cec,_0x40c6e2){return _0x43e84c(_0x5a60ac-0x3f,_0x346a54,_0x8c2cec-0xac,_0x5a60ac- -_0x37444b._0x46b836);}return _0x1ec50a[_0x3df9db(0x16b,0x201,_0x279ca0._0xf11617,_0x279ca0._0x1a2fc2)]??_0x18bba1;}function buildMcpHttpHeaders(_0x4a006e){const _0x5b2421={_0x1197a6:0x3e7,_0x308a64:0x449,_0xe32d1:0x3f8,_0x282a49:0x344,_0x190a8d:0x225,_0x3a7d1e:0x198,_0x16107c:0x29b,_0x4e8349:0x3d1,_0x424d86:0x28c,_0x1afc6b:0x2be,_0xa0ed63:0x22e,_0xf7f531:0x262,_0x40c2f0:0x3bc,_0x2c06ef:0x2cb,_0x44841d:0x3b0,_0xc55df5:0x3d3,_0x17282b:0x4de,_0x14476e:0x3cf,_0x26afce:0x1cb,_0x45ef81:0x2d0,_0x597090:0x2ca},_0x240c78={_0x47cfc3:0x2ad},_0x222d52={_0x4e5c11:0x1ce,_0xc44da:0x102,_0x208f80:0x80},_0x4c3f9d={..._0x4a006e[_0x231023(_0x5b2421._0x1197a6,0x463,0x3d3,_0x5b2421._0x308a64)]??{}};function _0x231023(_0x5b66c3,_0x4c468e,_0x11d487,_0x28e704){return _0x120580(_0x5b66c3- -_0x222d52._0x4e5c11,_0x11d487,_0x11d487-_0x222d52._0xc44da,_0x28e704-_0x222d52._0x208f80);}_0x4a006e[_0x310ac3(0x3c4,0x231,0x391,0x2dd)]?.[_0x310ac3(0x3dd,_0x5b2421._0xe32d1,0x2b3,_0x5b2421._0x282a49)]===_0x231023(0x261,0x183,_0x5b2421._0x190a8d,_0x5b2421._0x3a7d1e)&&_0x4a006e[_0x310ac3(0x1ec,0x2de,_0x5b2421._0x16107c,0x2dd)][_0x231023(0x2bb,0x2a0,_0x5b2421._0x4e8349,0x3cb)]&&_0x4c3f9d['Authorization']===void 0x0&&(_0x4c3f9d[_0x310ac3(0x1ab,_0x5b2421._0x424d86,0x2a0,_0x5b2421._0x1afc6b)]=_0x231023(0x1fc,0x22c,_0x5b2421._0xa0ed63,_0x5b2421._0xf7f531)+_0x4a006e[_0x231023(_0x5b2421._0x40c2f0,0x4cc,0x3bd,_0x5b2421._0x2c06ef)]['token']);function _0x310ac3(_0x241071,_0x43b948,_0x4d603e,_0x96b19b){return _0x120580(_0x96b19b- -_0x240c78._0x47cfc3,_0x43b948,_0x4d603e-0xdd,_0x96b19b-0x181);}return Object[_0x231023(_0x5b2421._0x44841d,_0x5b2421._0xc55df5,_0x5b2421._0x17282b,_0x5b2421._0x14476e)](_0x4c3f9d)[_0x310ac3(0x2c5,_0x5b2421._0x26afce,_0x5b2421._0x45ef81,_0x5b2421._0x597090)]>0x0?_0x4c3f9d:void 0x0;}function getErrorMessage(_0x4bc7d9){const _0x1016ff={_0x7adb69:0x2ac};function _0x316f66(_0x14274c,_0x3252f6,_0x2df1b6,_0x3c3ed7){return _0x120580(_0x14274c- -0x3b2,_0x2df1b6,_0x2df1b6-0x183,_0x3c3ed7-0xd7);}return _0x4bc7d9 instanceof Error?_0x4bc7d9[_0x316f66(0x175,_0x1016ff._0x7adb69,0x26b,0x90)]:String(_0x4bc7d9);}function isUnauthorizedError(_0x2c2018){const _0x2d6c11={_0x10d9fd:0x315,_0x24be7b:0x206,_0xc8b2bb:0x262,_0x1c30d2:0x188,_0xcaebec:0x5,_0xe8592c:0x11f,_0x472066:0x232},_0x55a878={_0x1f9c23:0x376,_0x336b1f:0x144},_0x9e13a5={_0x2d53f6:0x2be,_0x53cf24:0x8f,_0x7a6eb8:0x113};function _0x11a316(_0x27d9cd,_0x17cff8,_0x35677b,_0x49acda){return _0x120580(_0x17cff8- -_0x9e13a5._0x2d53f6,_0x27d9cd,_0x35677b-_0x9e13a5._0x53cf24,_0x49acda-_0x9e13a5._0x7a6eb8);}function _0x4524c3(_0x4b5da5,_0x425c3f,_0x2d70c9,_0x557b81){return _0x120580(_0x557b81- -_0x55a878._0x1f9c23,_0x425c3f,_0x2d70c9-0x1ab,_0x557b81-_0x55a878._0x336b1f);}return _0x2c2018 instanceof Error&&_0x2c2018[_0x11a316(_0x2d6c11._0x10d9fd,_0x2d6c11._0x24be7b,_0x2d6c11._0xc8b2bb,0x230)][_0x4524c3(0x1b5,0x20d,0x1d1,_0x2d6c11._0x1c30d2)]===_0x11a316(_0x2d6c11._0xcaebec,_0x2d6c11._0xe8592c,_0x2d6c11._0x472066,0x17b);}async function connectMcpServer(_0x46400a,_0x3416a8,_0x191205){const _0x4b0226={_0x9e2320:0x6f1,_0x5bde00:0x45c,_0x30fb61:0x33d,_0x36aa47:0x7b0,_0x557670:0x6dc,_0x3bc805:0x3eb,_0x4b4669:0x2dd,_0x20858b:0x424,_0x4e6baa:0x464,_0x17af13:0x361,_0x4da971:0x4d1,_0x5ce888:0x216,_0x41943f:0x199,_0xcc7183:0x5ad,_0x4c9f03:0x4b7,_0x163e7d:0x7f8,_0x284eba:0x6ea,_0x330f3c:0x65e,_0x1424ff:0x6f9,_0x49fa6a:0x751,_0x36dbec:0x12c,_0x333776:0x147,_0x5d09af:0x17f,_0x34e453:0x550,_0x4d2c68:0x632,_0x35cdf6:0x503,_0x361c71:0x3bc,_0xbfba21:0x2be,_0x36d5e3:0x483,_0x261871:0x170,_0x1a39cf:0x218,_0x38eb24:0x648,_0x55df8e:0x78a,_0x1e182c:0x814,_0x258b21:0x80d,_0x3f3dff:0x83d,_0x1e494b:0x362,_0x293d3c:0x34b,_0x2a77e6:0x2d2,_0x188298:0x8a6,_0x58efea:0x888,_0x308046:0x783,_0x5e809a:0x65c,_0x29fd28:0x2d9,_0x304acf:0x3d9,_0x21bce2:0x82d,_0x401a30:0x652},_0x56b81f={_0xfcc2a6:0x619,_0x12e5b2:0x603,_0x460627:0x75d,_0x123522:0x6aa},_0x53eb0c={_0x5749a5:0x109},_0x364760={_0x488892:0x14a},_0x3c6567={_0x587b0e:0x4ba,_0x220de2:0x683},_0x55832e={_0x1eb389:0x125,_0xe5e1af:0x65},_0x5d2a6a={_0x5dd9fc:0x160,_0x530adf:0x9e,_0x3c3267:0x179};function _0x4c8a71(_0x345b18,_0x34b3eb,_0x35f53c,_0x2ebb3d){return _0x120580(_0x2ebb3d-_0x5d2a6a._0x5dd9fc,_0x35f53c,_0x35f53c-_0x5d2a6a._0x530adf,_0x2ebb3d-_0x5d2a6a._0x3c3267);}const _0x313443=new Client({'name':_0x4c8a71(0x6f1,0x56d,_0x4b0226._0x9e2320,0x664),'version':'0.0.0'});if(_0x3416a8['transport']==='http'||_0x3416a8['url']){if(!_0x3416a8[_0x19e407(_0x4b0226._0x5bde00,0x4ff,0x4a2,_0x4b0226._0x30fb61)])throw new Error('MCP\x20server\x20'+_0x46400a+_0x4c8a71(_0x4b0226._0x36aa47,_0x4b0226._0x557670,0x794,0x754));if(_0x3416a8[_0x19e407(0x3fd,_0x4b0226._0x3bc805,_0x4b0226._0x4b4669,_0x4b0226._0x20858b)]?.[_0x19e407(_0x4b0226._0x4e6baa,_0x4b0226._0x17af13,0x4d5,_0x4b0226._0x4da971)]===_0x19e407(_0x4b0226._0x5ce888,_0x4b0226._0x41943f,0x257,0x33f)&&!_0x191205?.[_0x4c8a71(0x543,_0x4b0226._0xcc7183,0x47a,0x503)])throw new Error(_0x4c8a71(0x556,0x578,_0x4b0226._0x4c9f03,0x5da)+_0x46400a+'\x20requires\x20OAuth\x20connection\x20options');const _0x1db308=buildMcpHttpHeaders(_0x3416a8),_0x27de37=_0x3416a8[_0x4c8a71(_0x4b0226._0x163e7d,0x6b8,0x5a7,_0x4b0226._0x284eba)]?.[_0x4c8a71(0x72b,_0x4b0226._0x330f3c,_0x4b0226._0x1424ff,_0x4b0226._0x49fa6a)]===_0x19e407(0x216,0x1cb,0x23e,_0x4b0226._0x36dbec)&&_0x191205?.[_0x19e407(_0x4b0226._0x5ce888,_0x4b0226._0x333776,0x340,_0x4b0226._0x5d09af)]?createMcpOAuthProvider({'serverName':_0x46400a,'callbackUrl':_0x191205[_0x4c8a71(0x60f,_0x4b0226._0x34e453,_0x4b0226._0x4d2c68,_0x4b0226._0x35cdf6)][_0x19e407(_0x4b0226._0x361c71,_0x4b0226._0xbfba21,0x41d,_0x4b0226._0x36d5e3)],'storageDir':_0x191205[_0x19e407(0x216,_0x4b0226._0x261871,_0x4b0226._0x1a39cf,0x194)][_0x4c8a71(0x74a,0x6ac,_0x4b0226._0x38eb24,_0x4b0226._0x55df8e)],'config':_0x3416a8['auth'],'onRedirect':_0x415911=>_0x191205[_0x19e407(0x216,0x327,0x1c1,0x19c)]?.['onRedirect'](_0x46400a,_0x415911)}):void 0x0,_0x32f839=new StreamableHTTPClientTransport(new URL(_0x3416a8[_0x4c8a71(_0x4b0226._0x1e182c,_0x4b0226._0x258b21,_0x4b0226._0x3f3dff,0x749)]),{'authProvider':_0x27de37,'requestInit':_0x1db308?{'headers':_0x1db308}:void 0x0});await _0x313443[_0x19e407(0x457,0x4a7,0x47a,_0x4b0226._0x1e494b)](_0x32f839);}else{if(!_0x3416a8[_0x19e407(0x36e,_0x4b0226._0x293d3c,0x2e8,_0x4b0226._0x2a77e6)])throw new Error('MCP\x20server\x20'+_0x46400a+_0x4c8a71(_0x4b0226._0x188298,0x8ad,_0x4b0226._0x58efea,_0x4b0226._0x308046));const _0x2c7a8b=new StdioClientTransport({'command':_0x3416a8['command'],'args':_0x3416a8[_0x4c8a71(0x466,_0x4b0226._0x5e809a,0x4be,0x5a1)]??[],'env':_0x3416a8[_0x19e407(0x34d,_0x4b0226._0x29fd28,0x3fc,_0x4b0226._0x304acf)],'stderr':'pipe'});await _0x313443[_0x4c8a71(_0x4b0226._0x21bce2,0x69d,_0x4b0226._0x401a30,0x744)](_0x2c7a8b);}function _0x19e407(_0x3960fe,_0x4bbfa9,_0x43b33b,_0x3d6814){return _0x120580(_0x3960fe- -0x18d,_0x3d6814,_0x43b33b-_0x55832e._0x1eb389,_0x3d6814-_0x55832e._0xe5e1af);}return{async 'listTools'(){function _0x57fb39(_0x19a2cf,_0x47f626,_0x1d113b,_0x203afa){return _0x4c8a71(_0x19a2cf-0x19,_0x47f626-0x146,_0x1d113b,_0x203afa-0x78);}return await _0x313443[_0x57fb39(0x615,_0x3c6567._0x587b0e,_0x3c6567._0x220de2,0x5fb)]();},async 'callTool'(_0x4ccd4c){const _0x2480fe={_0x330e95:0x150,_0x1ba7d7:0x1d0,_0x2d0e56:0x4fa};function _0x271229(_0x1e37be,_0x11d5b4,_0xb41b0a,_0x52d84f){return _0x4c8a71(_0x1e37be-_0x2480fe._0x330e95,_0x11d5b4-_0x2480fe._0x1ba7d7,_0x1e37be,_0x11d5b4- -_0x2480fe._0x2d0e56);}return await _0x313443['request']({'method':_0x271229(0x11b,0x26,_0x364760._0x488892,0x81),'params':_0x4ccd4c},CallToolResultSchema);},async 'close'(){function _0x139559(_0x1a0229,_0x4424e6,_0x1ac380,_0x3c40c8){return _0x19e407(_0x1a0229-0x337,_0x4424e6-_0x53eb0c._0x5749a5,_0x1ac380-0x1e6,_0x4424e6);}await _0x313443[_0x139559(_0x56b81f._0xfcc2a6,_0x56b81f._0x12e5b2,_0x56b81f._0x460627,_0x56b81f._0x123522)]();}};}async function createMcpToolsFromServers(_0x5b534d){const _0x8d674c={_0x2df4d2:0x3f2,_0x28184f:0x47b,_0x6abc58:0x368,_0x54212b:0x322,_0x8901f1:0x26e,_0x116185:0x488,_0x312920:0x4d3,_0x15daa7:0x5b3,_0x52d515:0x48d,_0x51a32c:0x56c,_0x1cc899:0x1be,_0x2e8ff8:0x2b9,_0x4b846c:0x4eb,_0x1d04fb:0x5f4,_0x46c76a:0x361,_0x2db3ad:0x394,_0x338876:0x48d,_0x5e8f10:0x4fb,_0xe7a6bb:0x420},_0x2ffea6={_0x1d5ba4:0x126,_0x5c6f19:0xfb,_0x4de3e0:0x4,_0x42558a:0x92},_0x1a6bf7={_0x550457:0x13e,_0xbfd2b9:0x7c},_0x5bbea6={_0x1a6a91:0x1dc,_0x2e239e:0x143};function _0x49fe53(_0x51bd1b,_0x76bc55,_0x5f55d2,_0x514a6b){return _0x43e84c(_0x51bd1b-_0x5bbea6._0x1a6a91,_0x514a6b,_0x5f55d2-_0x5bbea6._0x2e239e,_0x5f55d2- -0xc6);}const _0x2ad6d2=_0x5b534d[_0x49fe53(0x34d,_0x8d674c._0x2df4d2,0x47a,0x5ad)]??connectMcpServer,_0xc62313=[];function _0x5ce591(_0x50d1bf,_0x2f0cb2,_0x1ffc6b,_0x4cee7a){return _0x43e84c(_0x50d1bf-_0x1a6bf7._0x550457,_0x50d1bf,_0x1ffc6b-0x9f,_0x2f0cb2- -_0x1a6bf7._0xbfd2b9);}const _0x18fd51={},_0x744b3c=[];for(const [_0x1db4f9,_0x34520e]of Object['entries'](_0x5b534d[_0x49fe53(_0x8d674c._0x28184f,0x33b,_0x8d674c._0x6abc58,_0x8d674c._0x54212b)]??{})){if(_0x34520e[_0x49fe53(0x24b,0x244,_0x8d674c._0x8901f1,0x286)]===![]){_0x18fd51[_0x1db4f9]={'status':_0x49fe53(0x4da,0x584,_0x8d674c._0x116185,0x4b8)};continue;}try{const _0x44fcbb=await _0x2ad6d2(_0x1db4f9,_0x34520e,_0x5b534d[_0x5ce591(0x4fb,_0x8d674c._0x312920,_0x8d674c._0x15daa7,0x54c)]);_0xc62313[_0x49fe53(0x386,0x37c,_0x8d674c._0x52d515,_0x8d674c._0x51a32c)](_0x44fcbb);const _0x20a1a8=await _0x44fcbb[_0x49fe53(_0x8d674c._0x1cc899,0x25c,_0x8d674c._0x2e8ff8,0x233)]();let _0x1b3478=0x0;for(const _0x395861 of _0x20a1a8[_0x5ce591(0x3bb,_0x8d674c._0x4b846c,0x481,_0x8d674c._0x1d04fb)]){const _0x4ac05b=_0x5b534d[_0x5ce591(0x58d,0x4b9,0x59c,0x432)]?.[_0x1db4f9]?.[_0x395861[_0x49fe53(_0x8d674c._0x46c76a,0x2ab,_0x8d674c._0x2db3ad,0x2d8)]];if(_0x4ac05b===![])continue;_0x1b3478+=0x1,_0x744b3c[_0x49fe53(0x566,0x524,_0x8d674c._0x338876,_0x8d674c._0x5e8f10)](createMcpTool({'serverName':resolvePrefix(_0x1db4f9,_0x34520e),'tool':_0x395861,'client':_0x44fcbb}));}_0x18fd51[_0x1db4f9]={'status':_0x49fe53(0x3e2,0x2ec,0x3e3,0x3e3),'toolCount':_0x1b3478};}catch(_0x4287f1){_0x18fd51[_0x1db4f9]=isUnauthorizedError(_0x4287f1)?{'status':'authRequired','message':getErrorMessage(_0x4287f1)}:{'status':_0x5ce591(0x416,0x34e,0x2e6,_0x8d674c._0xe7a6bb),'message':getErrorMessage(_0x4287f1)};}}return{'tools':_0x744b3c,'servers':_0x18fd51,async 'close'(){const _0x259c59={_0x227238:0xbd};function _0x211c34(_0x359493,_0x2a9425,_0x540868,_0x24143e){return _0x5ce591(_0x24143e,_0x359493- -_0x259c59._0x227238,_0x540868-0x71,_0x24143e-0x6b);}function _0xd1da7d(_0x245936,_0x423d10,_0x135b1b,_0x11ad0d){return _0x49fe53(_0x245936-0x36,_0x423d10-0x158,_0x135b1b- -0x45f,_0x245936);}await Promise[_0xd1da7d(-_0x2ffea6._0x1d5ba4,-0x128,-0xf4,0x10)](_0xc62313[_0xd1da7d(-_0x2ffea6._0x5c6f19,-_0x2ffea6._0x4de3e0,0x24,_0x2ffea6._0x42558a)](_0x5a0898=>_0x5a0898[_0xd1da7d(-0x8e,-0x180,-0x15a,-0x22a)]()));}};}function getCommand(_0x533b59){const _0x2fc2a8={_0x597846:0x49,_0x383712:0x13e,_0xbe4937:0x740,_0x38484c:0x503,_0x16bb6c:0x63e,_0x1b19c0:0x6cc,_0x311045:0x4a7,_0x44541b:0x5dc},_0x283e32={_0x5aae85:0xe9,_0x2bfab8:0x80},_0x3488d3={_0xbd4954:0x16e};function _0x1e7c41(_0x5dce39,_0x58cf91,_0x172006,_0x47df19){return _0x43e84c(_0x5dce39-0x12b,_0x47df19,_0x172006-0xc6,_0x172006-_0x3488d3._0xbd4954);}if(_0x533b59&&typeof _0x533b59===_0x1d07ca(_0x2fc2a8._0x597846,_0x2fc2a8._0x383712,0x12e,0x180)&&!Array[_0x1e7c41(_0x2fc2a8._0xbe4937,_0x2fc2a8._0x38484c,_0x2fc2a8._0x16bb6c,0x5b9)](_0x533b59)&&typeof _0x533b59['command']===_0x1e7c41(0x64c,_0x2fc2a8._0x1b19c0,0x5be,0x59c))return _0x533b59[_0x1e7c41(0x5b9,0x535,0x5c5,0x575)];function _0x1d07ca(_0xdd8cfc,_0x59ea0a,_0x1f3135,_0x183b79){return _0x43e84c(_0xdd8cfc-_0x283e32._0x5aae85,_0x1f3135,_0x1f3135-_0x283e32._0x2bfab8,_0xdd8cfc- -0x50e);}return _0x1e7c41(0x6a4,_0x2fc2a8._0x311045,_0x2fc2a8._0x44541b,0x526);}var MOCK_WORKSPACE_LISTING=[_0x120580(0x4d0,0x42a,0x5a7,0x457),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md',_0x120580(0x4de,0x490,0x4c0,0x432),_0x120580(0x45b,0x508,0x3c1,0x4bc),'src/formats/message-format.ts',_0x43e84c(0x33f,0x30f,0x35b,0x393),_0x120580(0x40d,0x405,0x471,0x463),'src/models/mock-model.ts',_0x120580(0x544,0x600,0x5d1,0x53c),_0x43e84c(0x3da,0x59c,0x371,0x488),_0x43e84c(0x45a,0x555,0x4e5,0x495),_0x120580(0x403,0x347,0x383,0x33e),'src/agent/agent.test.ts',_0x120580(0x46c,0x43d,0x3de,0x59f),_0x120580(0x5ea,0x59e,0x539,0x547),'src/agent/turn-engine.test.ts'][_0x120580(0x51b,0x556,0x543,0x408)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x43e84c(0x4b6,0x3cb,0x36f,0x3d1),'input_schema':{'type':_0x43e84c(0x46e,0x54c,0x672,0x557),'properties':{'command':{'type':'string'}},'required':[_0x120580(0x4fb,0x4d4,0x556,0x3bc)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0xfbd7d7){return{'output':_0xfbd7d7,'structured':{'value':_0xfbd7d7}};}function createUnknownToolResult(_0xe8934e){const _0x1b8184={_0x5c1518:0x1a1,_0x16f00d:0x175,_0x39983b:0x32d,_0x4eaf3c:0x270,_0x9b898f:0x282},_0x1473cd={_0x5589f7:0x7,_0x53e515:0xd2},_0x272da4={_0x2801e1:0x1c8,_0xe1ebd9:0x131};function _0x483a33(_0x42877d,_0x3fbb9f,_0x2492c5,_0x35a097){return _0x120580(_0x42877d- -_0x272da4._0x2801e1,_0x35a097,_0x2492c5-0x117,_0x35a097-_0x272da4._0xe1ebd9);}function _0x398bf9(_0x3d021f,_0x59fdce,_0x268942,_0xc1fa08){return _0x120580(_0x268942-_0x1473cd._0x5589f7,_0xc1fa08,_0x268942-0xe1,_0xc1fa08-_0x1473cd._0x53e515);}return{'callId':_0xe8934e['id'],'toolName':_0xe8934e['name'],'status':_0x483a33(0x2a6,_0x1b8184._0x5c1518,0x1ab,_0x1b8184._0x16f00d),'output':'Unknown\x20tool:\x20'+_0xe8934e[_0x483a33(0x336,_0x1b8184._0x39983b,_0x1b8184._0x4eaf3c,_0x1b8184._0x9b898f)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x443a9a,_0x3b3179){const _0x776c60={_0x4d17a9:0x52c},_0xbc4e60={_0x339732:0x27,_0x2b888b:0x1f1},_0x13f85c={_0x19c7a2:0x53};function _0xf164d1(_0x1d7271,_0xc2755e,_0x5c039b,_0x4217d2){return _0x120580(_0xc2755e- -0x1e7,_0x5c039b,_0x5c039b-0x67,_0x4217d2-_0x13f85c._0x19c7a2);}function _0x41ea12(_0x310ad6,_0x1ec176,_0x38047c,_0x504d03){return _0x120580(_0x38047c- -0x10a,_0x310ad6,_0x38047c-_0xbc4e60._0x339732,_0x504d03-_0xbc4e60._0x2b888b);}return{'callId':_0x443a9a['id'],'toolName':_0x443a9a[_0x41ea12(_0x776c60._0x4d17a9,0x36e,0x3f4,0x400)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x443a9a[_0xf164d1(0x3eb,0x383,0x3d3,0x43c)]),'exitCode':0x0},'chunks':[_0x3b3179],'meta':createMeta()};}function createMockToolRuntime(){const _0x265fb3={_0x3dafcf:0x269,_0x549836:0x319,_0x48433d:0x2de},_0x3ca8e6={_0x7b8ab8:0x14},_0x24d2a0={_0x4fd284:0x359,_0x134546:0x232,_0x49df74:0x330},_0x2956a1={_0x3d7cbc:0xe9},_0x2411b5=async(_0x3f839a,_0x1e9d2e)=>{if(_0x3f839a['name']!==_0x599328(_0x24d2a0._0x4fd284,0x288,_0x24d2a0._0x134546,_0x24d2a0._0x49df74))return createUnknownToolResult(_0x3f839a);const _0x365d20=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x599328(_0x520a05,_0x33c916,_0x4be9ea,_0x1ea3d0){return _0x4f9a(_0x1ea3d0- -_0x2956a1._0x3d7cbc,_0x33c916);}return createSuccessToolResult(_0x3f839a,_0x365d20);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x2b6a3d,_0x44bcc1){function _0x687db(_0x5bd679,_0x4bb918,_0x272933,_0x2f0278){return _0x4f9a(_0x2f0278-_0x3ca8e6._0x7b8ab8,_0x4bb918);}return await Promise[_0x687db(_0x265fb3._0x3dafcf,0x2ab,_0x265fb3._0x549836,_0x265fb3._0x48433d)](_0x2b6a3d['map'](async _0x772add=>{return await _0x2411b5(_0x772add,_0x44bcc1);}));},async 'execute'(_0x38cea6,_0x2996d8){return await _0x2411b5(_0x38cea6,_0x2996d8);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x4b8bfc={_0x56f7d7:0x50a,_0x230530:0x50b},_0x53bfe2={_0x2e0d9a:0xd3,_0x500f06:0x2};delegatedRunCounter+=0x1;function _0x41d105(_0x551148,_0x1122da,_0x46740f,_0x15e934){return _0x120580(_0x1122da- -_0x53bfe2._0x2e0d9a,_0x46740f,_0x46740f-_0x53bfe2._0x500f06,_0x15e934-0x197);}return _0x41d105(0x43e,_0x4b8bfc._0x56f7d7,_0x4b8bfc._0x230530,0x52d)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x25a74d,_0x1c0ca9){const _0x293ac3={_0x40404d:0x102};function _0x109146(_0x5a2b0a,_0x57be8b,_0x3d05db,_0x4c37a8){return _0x43e84c(_0x5a2b0a-_0x293ac3._0x40404d,_0x4c37a8,_0x3d05db-0xa7,_0x5a2b0a- -0x92);}return typeof _0x25a74d===_0x109146(0x4e9,0x5c2,0x5b5,0x3dd)?await _0x25a74d(_0x1c0ca9):_0x25a74d;}function getDelegatedAgentDefinition(_0x21aa22,_0xe5819d){return _0x21aa22['agents']?.[_0xe5819d];}function createRunSummary(_0x415ce6){const _0x2c2d04={_0x1fbe97:0x202,_0x51a1a1:0x3bb,_0xa2859f:0x4fe,_0x4b6c34:0x614,_0x589f31:0x62e,_0x187a52:0x640,_0x5d231c:0x282,_0x4a2ed6:0x25a,_0x16b3f3:0x2d4,_0x2dd453:0x5a6,_0x210d91:0x1ed,_0xc0bdbb:0x131,_0x28e9bb:0x1df,_0x174ed8:0x5b1,_0x2a709a:0x4dc,_0x500be1:0x3df},_0x351a1d={_0x142bd2:0xfb},_0x47e276={_0x57df38:0x1d9};function _0x3651e6(_0x5bcf9d,_0x1ee157,_0x25a947,_0x123718){return _0x43e84c(_0x5bcf9d-0xa3,_0x5bcf9d,_0x25a947-_0x47e276._0x57df38,_0x123718- -0x1c3);}function _0x38f5cc(_0x52a47d,_0x2ad245,_0x524cdb,_0x125a09){return _0x43e84c(_0x52a47d-0xf4,_0x524cdb,_0x524cdb-0x125,_0x52a47d-_0x351a1d._0x142bd2);}return{'runId':_0x415ce6['runId'],'agentId':_0x415ce6['agentId'],'sessionId':_0x415ce6['sessionId'],'status':_0x415ce6[_0x3651e6(0x33e,_0x2c2d04._0x1fbe97,_0x2c2d04._0x51a1a1,0x2de)],'parentSessionId':_0x415ce6[_0x38f5cc(0x525,_0x2c2d04._0xa2859f,_0x2c2d04._0x4b6c34,0x419)],..._0x415ce6['originToolCallId']!==void 0x0?{'originToolCallId':_0x415ce6[_0x38f5cc(0x5da,0x5b2,_0x2c2d04._0x589f31,_0x2c2d04._0x187a52)]}:{},..._0x415ce6[_0x3651e6(_0x2c2d04._0x5d231c,0x3e2,_0x2c2d04._0x4a2ed6,_0x2c2d04._0x16b3f3)]!==void 0x0?{'errorMessage':_0x415ce6[_0x38f5cc(0x592,0x5f3,_0x2c2d04._0x2dd453,0x613)]}:{},..._0x415ce6['result']?.[_0x3651e6(_0x2c2d04._0x210d91,0x9d,_0x2c2d04._0xc0bdbb,_0x2c2d04._0x28e9bb)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x415ce6[_0x38f5cc(0x506,0x58c,0x521,_0x2c2d04._0x174ed8)][_0x38f5cc(0x49d,_0x2c2d04._0x2a709a,0x52f,_0x2c2d04._0x500be1)])}:{}};}function createRunSummaryOutput(_0x1dd2d1,_0x5eee29){const _0x26b478={_0x594df5:0x5d3,_0x10c18b:0x611,_0x55e3e9:0x5a4,_0x3dda1d:0x549,_0x471410:0x652,_0x1a8147:0x721},_0xcdcc52={_0x299a6f:0x99,_0x14d19f:0x13e},_0x436e0a=createRunSummary(_0x1dd2d1),_0x3f2791=_0x436e0a['finalMessageText'];function _0x4823fc(_0x32a429,_0x5cf811,_0x236c16,_0x3a2fba){return _0x43e84c(_0x32a429-0xa0,_0x5cf811,_0x236c16-0xcb,_0x3a2fba-0x154);}function _0x5d87a1(_0x1ce892,_0x3aa9e0,_0x18eacd,_0x2735d0){return _0x43e84c(_0x1ce892-_0xcdcc52._0x299a6f,_0x1ce892,_0x18eacd-0x85,_0x18eacd- -_0xcdcc52._0x14d19f);}return createToolOutput(typeof _0x3f2791===_0x4823fc(_0x26b478._0x594df5,0x586,_0x26b478._0x10c18b,_0x26b478._0x55e3e9)&&_0x3f2791[_0x4823fc(_0x26b478._0x3dda1d,_0x26b478._0x471410,_0x26b478._0x1a8147,0x627)]>0x0?_0x3f2791:_0x5eee29,_0x436e0a);}function _0x2dae(){const _0x48ef38=['tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','ChjVy2vZCW','CgfJA2fNzs1SB2nRlMPZB24','yxjYyxK','zgfYAW','ChjPB3jPDhK','t0zg','u0Lhs0Lmta','BgLUzuvUza','CgfZC3rOCM91z2G','rMLSzuvKAxq','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','y2f0y2G','zxjYB3jnzxnZywDL','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','AhjLzG','Dg9VBa','zMLSzvbHDgG','y29TBwfUzhm','zgvSzxrL','ls1YzwDLEha','BgL0zxjHBa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','C3rHDhvZ','C2HPzNq','D29YA3nWywnLu3LTyM9S','ywjVCNrLza','y2fSBgjHy2TvCMW','yxnPzgu','zgf0zxrPBwu','zgLHz25VC3rPy3m','y29UBMvJDgvK','CMvTB3zL','CgLWzq','uhvIBgLZAgvKoIa','CMvHC29U','C3rKB3v0','zgLYzwn0B3j5','ugf0AcbUB3qGzM91BMq6ia','u2TPBgWGjW','tM8GAg92zxiGAw5MB3jTyxrPB24','BgfIzwW','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','C2H1DgrVD24','sw52ywXPzcbvuKWGCgfYyw1LDgvY','cMbGya','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','z29uB0LTCgXLBwvUDgf0Aw9U','oIbJB250zw50ihjLCxvPCMvK','Bg93','yMLVBwu','Aw5PDgLHBgL6zq','te9dquXbufbeqvrb','BNvT','Dhj1BMm','zhvWBgLJyxrLx3rVzg9FAwrZ','CMvXDwLYzwq','DxbKyxrL','BgfUzW','Aw5WDxq','qxv0Ag9YAxPHDgLVBG','zxHPDcbJB2rLia','DhvWBgu','lMnTza','DxrTx3nVDxjJzq','CgfZC3DVCMq','DxrMoa','Aw1Hz2uVCg5N','z2XVyG','AxnbCNjHEq','zMLSzq','y29UDgvUDc10ExbL','BgvUz3rO','zgLYBMfTzq','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','ANnJB25MAwCUANnVBG','y29UDgv4Da','B3v0Chv0','lMPWzwC','A2v5CW','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','y29Uy2f0','CNvUBMLUzW','Dg9KB3ncEvnLC3nPB24','B3jPz2LUvg9VBenHBgXjza','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','CMvMCMvZAf90B2TLBG','A2LSBgvK','y2fUy2vS','lI4U','lNrZ','yxv0Aa','lMPWzW','C2vYDMvYswq','C29YDa','CMvJB3jK','rMLSzsb3CML0DgvUigf0ia','l2jPBI9IyxnO','y3jLyxrLzef0','Bwv0yq','C3r5Bgu','y29UDgvUDa','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','zgvMAw5PDgLVBG','BgLTAxq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','Dg90ywW','zgvSAw1PDgvY','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','C3bHD25PBMC','y2fSBfrVB2W','B3jPz2LUywW','AMf2yxnJCMLWDa','CMfUzg9T','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','tM8GCMvZDwX0CYbMB3vUzc4','C2v0vg9KB3m','BhnWu2vYDMLJzq','y29UDgv4DeXPBMS','CgvUzgLUzW','Agv4','DhjHBNnMB3jTCW','DgfZA2TPBgW','CxvLC3rPB24T','CgLK','yxv0BW','lMPZB24','Dg9VBc1VDxrWDxqTB2zMBg9Hza','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','sw5MB3jTyxrPB24','nte0nZKWrfDAEgnR','BNvTyMvY','v2fYBMLUzW','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','AgvHzgvYCW','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','ywDLBNrjza','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','AgfUzgXL','AxngAw5PDgu','z29Vz2XLq3nLs2v5','DgLTzw91De1Z','Aw5PDgLHBgL6zwq','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','y21KlMv4zq','C3rYAw5NAwz5','l2jPBI9ZAa','uefusa','CMvSyxrPDMu','u2HLBgWGBM90igzVDw5KoIa','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','Cgf0DgvYBG','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','AwzYyw1L','y29Kzq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','lM51DMLU','zgvZy3jPChrPB24','D2vI','zxH0BMfTzq','uhjVz3jHBuzPBgvZkhG4nIK','Aw5PDgLHBgL6yxrPB24','C3bHD24','Dgv4DerVy3vTzw50l2rPze9Wzw4','yxr4','ygbGANnVBGO','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','C3bSAxq','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ywXSB3DLzfrVB2XZ','DhnJB25MAwCUANnVBG','C2vZC2LVBG','zgvMyxvSDa','zgvSzwDHDgvKlxj1BI0','CMLWz3jLCcbMywLSzwq6ia','B3bLBMfPlxjLC3bVBNnLCW','yxbPs2v5','BMv3vgv4Da','ls1NBg9IpseUz2L0lYO','DhvYBMrVD24','y29UBMvJDa','A2LUza','ls1MB2XSB3C','z2v0vg9KB3m','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','DxjS','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','C2vYDMvYtMfTzq','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','BwfW','yM94zwq','z2L0qNjHBMnO','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','DhLWzq','zgLZywjSzwq','y29UBMvJDgLVBG','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','Aw52ywXPzf90B2rVx2LK','AhLKCMf0zu1LDge','ChvZAa','AMf2yxnJCMLWDhjLywn0','w1bFxL1BxhnCu10QpW','qgjPB21LANmVyMLVBwu','B2jQzwn0','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','Bwv0yxrHz3m','mZKZmdyXowPZrNH0wG','BM90Awz5','Aw5FChjVz3jLC3m','C2XPy2u','zMXHDe1HCa','yxr0CG','lu5VuhjVzMLSzq','Aw52ywXPzf90B2rVx2L0zw0','Cg9W','CMvXDwvZDhm','DxjP','zgv0ywLS','ndaZmZy2vfHbvvry','Dg9VBhm','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','Dg9vChbLCKnHC2u','B3bLBKzPBgvZ','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','BxrPBwvnCW','l29WDc9OB21LyNjLDY9IAw4VCMC','BgLZDgvU','z2v0u3rHDhm','sw52B2TLq29TBwfUza','yNvUlMXVy2TI','C3rKAw8','lMjPBG','mJG3mdu2mK52CNj5qW','z2v0','Aw52ywXPzf90B2rVCW','y2XPzw50twv0ywrHDgfvCMW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','Aw1Hz2u','zNvUy3rPB24','zgvMyxvSDfrPBwvVDxrnCW','D2LUmZi','C2v0','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','qMfZAa','DhLWzxnJCMLWDa','AxnjBNrLz2vY','B3rOzxi','CMvNAw9U','CgfJA2fNzu5HBwu','C3rVCMfNzurPCG','C2LNBMfS','lMnQCW','Dhj1zq','Cgf0Aa','B2f1DgG','DgvZDa','thnW','ru5pru5u','zw5K','zxzLCNK','C25PChbLDa','z29uB0rLzMLUAxrPB24','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C2vUzfjLCxvLC3q','zg9JDw1LBNrtEw1IB2W','lMPZB25J','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','uKLgrG','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','yw5ZD2vYCW','ienHDxnLoIa','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','DxrTx2nVBNrLBNq','rMLSzvjLywq','z29Vz2XLlwnZzq','B25Jzq','ywXSB3DLzerPCNm','DMfSDwu','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','tunqihrVB2WG','AgLNAa','zgLZy292zxj5','Bwf4','Dg9VBhmVy2fSBa','zMLSzvzLCNnPB25Z','ChjLCgfYzunHBgXiAwvYyxjJAhK','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','Aw1Hz2uVANbLzW','zMLYC3q','AhrTBfnUAxbWzxq','tNv2Aw4','oIbPBNzHBgLKihbYAw9YAxr5','BgLUAW','qMvHCMvYia','Bw9KzwW','CgfJA2fNzxm','iYmGu2TPBgW6ia','ls1WCMvMAxG','B2XKvgv4Da','v2vIrMv0y2G','yxnJAwK','ls1ZDgrPBW','tgLUzsa','Aw5JB21PBMDdywXSCW','BhnW','C3vIyxjYyxK','zgf0zvjLC3rYAwn0','zw5HyMXLza','Aw5JBhvKzq','ihDHCYbHyM9YDgvKlG','BxrPBwu','BgLUzxm','vw5HDxrOB3jPEMvKrxjYB3i','ignVBxbSzxrLzc4','rMLSzu5LDW','lNbUzW','ls1JB2X1Bw4','Dgv4DerVy3vTzw50l2HVDMvY','Dw5PB24','ChjVDg9JB2W','BwvTB3j5','y29UzMLN','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','y2HHCKnVzgvbDa','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','v0vcua','C3rKAw4','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','u0HfteW','z29Vz2XLq3nLq3G','DhnJ','yMLYDgH0Aw1L','Aw1Hz2vZ','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','yM9VBgvHBG','Aw52ywXPzf9XDwvZDgLVBNm','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Ahr0Chm6','yM9KEq','BgLI','u2L6ztOG','qwDLBNqGCNvUia','ChjVCgvYDgLLCW','nda1odKYmhP3u3fqsa','DhjPBq','Dg9VBe5HBwu','CMfUz2u','CgXHDgzVCM0','C3jJl3nOyxjLzc90ExbLCY50CW','C2vHCMnOvhLWzq','l2jPBI9YzW','sfruuca','ls1OAwrKzw4','yxnZAwDU','yNL0zuXLBMD0Aa','zNjVBq','AxndB250zxH0','Dg9KB3m','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','C3rHCNrZv2L0Aa','zhj5uNvU','Dgv4DerVy3vTzw50l2rPzenSB3nL','rM91BMqG','lcbpChrPB24G','CMCUzxHL','igzYB20G','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','CxvLCNK','ywjVCNq','CMvXDwvZDa','y2HHBMDL','igzHAwXLzc4','B2C6DxbKyxrLzf90Aw1L','AwDUB3jL','vw50AxrSzwq','C2fMzq','y3DK','C3vKBW','BgfZDeLUzgv4t2y','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','BgLZDfrVB2XZ','xg5DkJ8','tuLnrtOG','CgfYC2u','yMLVBwuUANnVBMm','DgHLBG','CMvZB2X2zq','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ugf0AcbPCYbUB3qGysbMAwXLoIa','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','B2zM','yMvHCMvY','Ahr0Ca','ig1Z','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','Aw1Hz2uVz2LM','C3rHDhvZvgv4Da','B3bLBG','Aw5ZDhj1y3rPB25Z','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Cg5WBs1SB2nRlNLHBwW','y2fJAgvK','Dg91y2HgAwXL','CxvLC3rPB24','r2XVyG','y2XPzw50CW','vg9KBYa','mZe5mJqZmef3A1jxzq','BwvKAxvT','yxjNCW','yMLVBwuUANnVBG','Aw52ywXPzf90B2rVx2nVBNrLBNq','ksbB','qxnZAwDUvgfZAW','zMLUywXnzxnZywDL','ChvIBgLZAgvKqxq','y3jSzG','B3v0z29PBMDdywXSCW','zw50CMLLCW','yxbWBgLJyxrPB24VANnVBG','AxneAxjLy3rVCNK','C3rKzxjY','C2vHCMnOugfYyw1Z','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','D3jPDgu','DgfZAW','Ag9ZDa','CM9VDa','lM10CW','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','uxvLC3rPB24G','C2H1DgrVD25tDgfYDgvK','ChjLzML4','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','y2XPzw50sw5MB3jTyxrPB24','C3jJl2fNzw50l2fNzw50lNrZ','C29Tzq','BgfUz18','Dg9VBenHBgXjza','DhjPBuvUza','zxf1ywXZ','Dgv4Da','A2v5','yxnRvxnLCG','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','Aw5KzxHpzG','DgHPBMTPBMC','Aw1WBgvTzw50yxrPB24','l3vZCI9SB2nHBc9IAw4VCMC','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','l3vZCI9IAw4VyMfZAa','oIaIAgvHzgvYiIbTDxn0igjLig1HEcaYmcbJAgfYywn0zxjZlcbNB3qG','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zNvSzMLSBgvK','zxjYB3i','y2XVC2u','B2zMC2v0','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','Aw5JBhvKzxm','Bg9HzfnRAwXS','CNvUswq','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','AgvHzgvY','CMvWBgfJzq','igj5DgvZks4','tunqihnLCNzLCIa','lMDPzG','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','zg9TywLUCW','y291BNq','Aw5ZDgfSBa','y29TCgXLDgvK','rxjYB3i','yxjNDw1LBNrZvgv4Da','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','yM0Ynq','zgLNzxn0','u3rHCNrLzcbHz2vUDcbYDw4G','ls1NBg9I','te9x','Dg9Rzw4','DgL0Bgu','CMvTB3zLrxzLBNrmAxn0zw5LCG','ywXSu2v0DgXLza','wZ0+nY04kcLD','zMLSztOVlW','l3bPza','CxvLC3rPB25Z','A2LSBa','C3rHDgu','qxnRvxnLCLrVB2W','y2XLyxi','yMLUyxj5tMfTzq','BgLNAhq','lNrZEa','y2XPzw50','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','vMLLD0zPBgu','seLhsa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','A2v5yMLUzgLUz3m','BxvSDgLtzwXLy3q','CgfYC2vjBNq','uhjVz3jHBuzPBgvZ','o1TE','ls1MAwXLCW','C2vUze5VDgLMAwnHDgLVBG','lM1QCW','CNnZ','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C2HLBgXqyxrO','Bg9HzenVBw1HBMq','BM9Zy3jPChq','ANnVBG','ugfJA2fNzxm','Dg9tDhjPBMC','lw5i','CMvZDwX0','CgXHAw50zxH0','y2fSBeLK','yxv0Ag9YAxPHDgLVBL9JB2rL','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','yMfZzty0','r0LgodDH','AxrLBxm','zgLZy292zxj5u3rHDgu','Ag92zxi','igj5DgvZicHVCMLNAw5HBdOG','r3jLCa','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C3rHCNq','yxjNDw1LBNroyw1LCW','otaXmdGWwNPdrwnQ','zgvUBY5QC29UyW','Dg9ju09tDhjPBMC','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','zgf0yq','q29TBwfUzcaN','y29UC3rYDwn0B3i','BgLUzvrLEhq','C2L0ztO','zgvUBY5QC29U','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','D29YA3nWywnLl3n5BwjVBa','ywrKrxzLBNrmAxn0zw5LCG','C2L6zq','y2fWywjPBgL0AwvZ','CgfYzw50u2vZC2LVBKLK','C3rYAxbbBNnP','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','zMLUzfjLzMvYzw5Jzxm','C2vYDMvYCW','vg9KB1DYAxrL','lu5Vtg9NBW','ywXS','Dg9mB3DLCKnHC2u','Ec1HCgKTA2v5','y2vPBa','C2vSzwn0Aw9UuMfUz2u','zw52','q29Tu3bLyW','DhnZzxj2zxiUANm','C2TPBgXZ','CgfJA2fNzs5QC29U','y2HHCMfJDgvY','BgLUzq','Dhj1zwnVBg9Y','lNDLyNa','ywrK','Bw9Kzq','EwfYBI5SB2nR','tM8GzgLHz25VC3rPy3m','DxrTx3rLCM0','v2LUr2v0','Aw1Hz2uVD2vICa','C3rHCNreAxi','CMvJzw5JEurHExm','twLJCM9ZB2z0','zxHPDa','yxjNDw1LBNrZ','CgfNzw1HCa','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','rgLHz25VC3rPyW','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Cgf0DgvYBIbPCYbYzxf1AxjLza','C3rYAw5N','zw51Bq','yMfZzw5HBwu','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFq1G','Dgv4Dc9ODg1S','lunVBw1HBMq','Dg9Rzw5tDg9YywDLs2v5','y29TBwfUza','CMvMzxjLBMnLCW','oIbPBNzHBgLKihn0yxr1CW','BMfTzq','zMLSDgvY','BgfUz3vHz2u','B3bLCMf0Aw9U','oIbPzcbYzxf1AxjLza','zMvUy2vK','BNv2Aw4','qxzHAwXHyMXLignVBw1HBMrZoG','Ahr0CdO','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','BwfYA2rVD24','lMXVzW','yNjVA2vU','zgvMyxvSDen3za','zMXVB3i','Dg9Rzw5Z','igj5DgvZicH0B3rHBdOG','Aw50zwDLCG','BM9Uzq','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','BhmGlwXH','BwLU','AgfZ','B3b0Aw9UywW','lNrTCc4','AxngAwXL','BM93','zMLUza','B3b0Aw9UCW','AM9PBG','BgLUzvn0yxj0','BNbT','ls1NBg9Ipq','Bg9JyxrPB24','Ag9TzwrPCG','BhnWlxbYB3H5','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','C2vZC2LVBKLK','yw50AhjVCgLJlw1LC3nHz2vZ','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','y29KzvzLCMLMAwvY','BwvZC2fNzq','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','pc9ZExn0zw0TCMvTAw5Kzxi+','BM9Kzv9TB2r1BgvZ','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','C291CMnL'];_0x2dae=function(){return _0x48ef38;};return _0x2dae();}function getRunTerminalErrorMessage(_0x54bd80){const _0x138174={_0xaf1e:0xc9,_0x336634:0x26,_0x4111c8:0x63,_0x59d22c:0x43,_0x4536ce:0x9d,_0x196285:0x18,_0x2a7cda:0xa6,_0x2e66f0:0x45,_0x509087:0x28},_0xe30ab9={_0x5ea833:0x537,_0x240499:0x1d1};function _0x4f512c(_0x31c56c,_0x3cb2d9,_0x621737,_0x113854){return _0x43e84c(_0x31c56c-0x25,_0x113854,_0x621737-0x171,_0x621737- -0x394);}function _0x5f40d8(_0x69993d,_0x4433a5,_0x37709d,_0x36c36d){return _0x120580(_0x69993d- -_0xe30ab9._0x5ea833,_0x4433a5,_0x37709d-0x182,_0x36c36d-_0xe30ab9._0x240499);}const _0x237a03=_0x54bd80?.['state']['toolResults']['at'](-0x1);if(_0x237a03?.['status']===_0x5f40d8(-_0x138174._0xaf1e,-_0x138174._0x336634,-_0x138174._0x4111c8,0x3c)&&_0x237a03[_0x5f40d8(0x45,_0x138174._0x59d22c,-0xce,-_0x138174._0x4536ce)][_0x5f40d8(-0x138,-0x7b,-0x279,-0x222)]()[_0x4f512c(_0x138174._0x196285,0x70,0x13f,_0x138174._0x2a7cda)]>0x0)return _0x237a03[_0x5f40d8(_0x138174._0x2e66f0,0x172,0x15,-_0x138174._0x509087)];return void 0x0;}function formatAbortedRunMessage(_0x185316,_0x4e9758){const _0xd74cac={_0x4315f9:0x5f4,_0x5cb45e:0x607,_0x3e32f2:0x590,_0x3f7992:0x218,_0x2ad1e2:0x1bb,_0x1d6889:0x1f3,_0x10ed77:0x20b,_0x291861:0x23f},_0x9384af={_0x1cf315:0x0,_0x232d27:0x9a},_0x1dd7a1={_0x51deb2:0x5f2},_0x1044ba=_0x551f03(_0xd74cac._0x4315f9,_0xd74cac._0x5cb45e,_0xd74cac._0x3e32f2,0x524)+_0x185316+_0x479e6c(-0x182,-_0xd74cac._0x3f7992,-0x287,-0x2f7);function _0x479e6c(_0x18831b,_0x234a30,_0x6b3491,_0x51e8d4){return _0x120580(_0x234a30- -_0x1dd7a1._0x51deb2,_0x51e8d4,_0x6b3491-0xd4,_0x51e8d4-0x104);}if(!_0x4e9758||_0x4e9758[_0x479e6c(-_0xd74cac._0x2ad1e2,-_0xd74cac._0x1d6889,-0x267,-_0xd74cac._0x10ed77)]()['length']===0x0||_0x4e9758===_0x1044ba)return _0x1044ba;function _0x551f03(_0x197a48,_0x23c001,_0x5c8051,_0x39cc92){return _0x43e84c(_0x197a48-_0x9384af._0x1cf315,_0x23c001,_0x5c8051-_0x9384af._0x232d27,_0x39cc92-0x1cc);}return _0x1044ba+_0x479e6c(-0x148,-_0xd74cac._0x291861,-0x2b1,-0x14b)+_0x4e9758;}function createAssignTaskTool(_0x1ecb0){const _0xc9309e={_0x171ff7:0x107,_0x4e9bdf:0x1e,_0x31f088:0x182,_0x6ab1c1:0xc2,_0x4ade26:0x7c,_0x2196d9:0xcb,_0x367ae6:0x1d4,_0x2748c7:0x257,_0x4c886b:0x58,_0x7cf45c:0x1b4,_0xb57bb1:0x7e,_0x37f3e3:0xcd,_0x2b0971:0x65,_0x430457:0x146,_0x5f1569:0x12,_0x4ce341:0x18b,_0x52204f:0x16b,_0x479760:0x7a,_0x4ed292:0x157,_0x97a71c:0x100,_0x57eab9:0x57},_0x3727d9={_0x74faa8:0x1aa,_0x30cbe7:0x28c,_0x384a8e:0x64,_0x3b8a01:0x126,_0x3e91cf:0x27a,_0x237329:0x20a,_0x4a07f1:0x19c,_0x3b4022:0x1d,_0xcba34c:0x285,_0xac9739:0x3ca,_0x1b069b:0x20c,_0x52c002:0x2ec,_0x1b8324:0x41b,_0x28244d:0x2,_0x49e6bd:0x4a,_0xb3103a:0xc1,_0x33c10e:0x1cd,_0x3dc246:0x31f,_0x5b38c8:0x1d2,_0x5b8777:0xc7,_0x59c1aa:0x17c,_0x213a6d:0x75,_0x26004a:0x2a4,_0x5e565d:0x120,_0x1f7825:0x1bb,_0x23ec1c:0x108,_0x3a2890:0x1a9,_0x573cff:0x23a,_0x11ae82:0x95,_0x52dce6:0x1a9,_0xcc8dff:0x2c7,_0x3b982f:0x333,_0x54f646:0x28c,_0x1a2f45:0x258,_0x124059:0x19e,_0xa533b4:0x1,_0x483410:0x3f,_0x20ecbc:0x2c2,_0x2af56e:0x20,_0x293b93:0x6,_0x1bf81a:0x6d,_0x34fa87:0x116,_0x3a8aa9:0x21b,_0x16a7b7:0x26e,_0x3f97f8:0x16,_0xabe6ad:0x374,_0x1c7ce4:0x301,_0x10238f:0x39c,_0x1a4564:0x495,_0x154b24:0x360,_0x5a090c:0x18c,_0x4c568a:0x27d,_0x261e3a:0x1ac,_0x47fa6f:0x109,_0x5e9cb8:0x122,_0x382b7f:0x9f,_0x39f8db:0x1e4,_0x38f8a9:0x17a,_0x2481a9:0x1eb,_0x57486e:0x177,_0x1f6655:0x1d0,_0x49821f:0xea,_0x1d6114:0x35,_0xeb72c8:0x1a5,_0x1ec8c9:0x79},_0x4a8a20={_0x1a14cd:0x1fc,_0x5eb0d2:0x39f,_0x1db2bb:0x4b5,_0x451b7d:0x5ac,_0x553319:0x4a5,_0x14ee3b:0x4f5,_0x4f6ddb:0x5e2},_0x18a77b={_0x33384d:0x115},_0x1a1022={_0x494946:0x183,_0x480b51:0x174};function _0x159eb(_0x268655,_0x4c89ac,_0x3ce3d7,_0x20fd96){return _0x43e84c(_0x268655-_0x1a1022._0x494946,_0x3ce3d7,_0x3ce3d7-_0x1a1022._0x480b51,_0x20fd96- -0x3d2);}function _0x17d820(_0x7f8241,_0x164534,_0x1622cc,_0x5d0b0c){return _0x120580(_0x164534- -0x427,_0x1622cc,_0x1622cc-0xa1,_0x5d0b0c-_0x18a77b._0x33384d);}return defineTool({'name':_0x17d820(_0xc9309e._0x171ff7,_0xc9309e._0x4e9bdf,0x92,-0xd0),'description':_0x159eb(_0xc9309e._0x31f088,_0xc9309e._0x6ab1c1,-0x20,_0xc9309e._0x4ade26),'inputSchema':{'type':_0x17d820(_0xc9309e._0x2196d9,_0xc9309e._0x367ae6,_0xc9309e._0x2748c7,0x192),'properties':{'agentId':{'type':_0x17d820(_0xc9309e._0x4c886b,0xcd,-0x3d,0xde)},'description':{'type':_0x159eb(0x11e,_0xc9309e._0x7cf45c,0x3a,_0xc9309e._0xb57bb1)},'nickname':{'type':_0x17d820(0x12,_0xc9309e._0x37f3e3,_0xc9309e._0x2b0971,0x7d)},'task':{'type':_0x159eb(_0xc9309e._0x430457,0x1a,_0xc9309e._0x5f1569,0x7e)}},'required':[_0x17d820(0x2b0,0x190,_0xc9309e._0x4ce341,0x2b7),_0x159eb(0x46,_0xc9309e._0x52204f,_0xc9309e._0x479760,_0xc9309e._0x4ed292),_0x17d820(-_0xc9309e._0x97a71c,0x2a,-_0xc9309e._0x57eab9,0x1a)]},async *'execute'(_0xec6d9f,_0x28ccc3){const _0x5780f8={_0x40bc63:0x100,_0x4b3956:0xaf},_0x44443c={_0x3b8254:0x3a},_0x593512=createDelegatedRunId(),_0x37d474={'agentId':_0xec6d9f[_0x37035f(_0x3727d9._0x74faa8,_0x3727d9._0x30cbe7,0x271,0x2ec)],'parentSessionId':_0x28ccc3[_0x5d7978(0x87,-0x2,_0x3727d9._0x384a8e,-0xbc)],'runId':_0x593512,..._0x28ccc3[_0x37035f(_0x3727d9._0x3b8a01,_0x3727d9._0x3e91cf,_0x3727d9._0x237329,0x193)]!==void 0x0?{'toolCallId':_0x28ccc3[_0x5d7978(0xe,-0xc7,-_0x3727d9._0x4a07f1,0x74)]}:{}},_0x106e32=getDelegatedAgentDefinition(_0x1ecb0,_0xec6d9f[_0x5d7978(0xbe,0x92,-_0x3727d9._0x3b4022,0x1bd)]);if(!_0x106e32)throw new ToolExecutionError(_0x37035f(_0x3727d9._0xcba34c,0x332,0x27d,0x30d)+_0xec6d9f['agentId'],{'agentId':_0xec6d9f[_0x37035f(_0x3727d9._0xac9739,0x3d6,_0x3727d9._0x1b069b,_0x3727d9._0x52c002)]});const _0x3a085b=new Agent(await resolveDelegatedAgentOptions(_0x106e32,_0x37d474));let _0x2c157b={'runId':_0x593512,'agentId':_0xec6d9f[_0x37035f(_0x3727d9._0x1b8324,0x2cb,0x295,_0x3727d9._0x52c002)],'sessionId':_0x3a085b[_0x5d7978(0x56,-_0x3727d9._0x28244d,-_0x3727d9._0x49e6bd,-_0x3727d9._0xb3103a)],'status':_0x37035f(0x298,_0x3727d9._0x33c10e,_0x3727d9._0x3dc246,0x2b6),'parentSessionId':_0x28ccc3[_0x37035f(0x182,0x27e,0x34f,0x258)],..._0x28ccc3[_0x5d7978(-_0x3727d9._0x5b38c8,-_0x3727d9._0x5b8777,-0x1cf,-_0x3727d9._0x5b8777)]!==void 0x0?{'originToolCallId':_0x28ccc3['toolCallId']}:{}};function _0x37035f(_0x54c01d,_0x76692a,_0x5654de,_0x1551d4){return _0x17d820(_0x54c01d-_0x44443c._0x3b8254,_0x1551d4-0x15c,_0x76692a,_0x1551d4-0xff);}const _0x3bffb8=new AbortController(),_0x1f032f=addAbortListener(_0x28ccc3[_0x5d7978(_0x3727d9._0x59c1aa,0x106,_0x3727d9._0x213a6d,0x186)],()=>{const _0xa42d34={_0x41a699:0x35c};function _0x428960(_0x435dd7,_0x45b77a,_0x1424fa,_0x405ffc){return _0x5d7978(_0x435dd7-0x192,_0x45b77a-0x3af,_0x1424fa-0x66,_0x1424fa);}function _0x41ee7f(_0x25afa4,_0x3d7cde,_0x43e68b,_0x396fc7){return _0x37035f(_0x25afa4-0x168,_0x396fc7,_0x43e68b-0x144,_0x43e68b-_0xa42d34._0x41a699);}_0x3bffb8[_0x428960(_0x4a8a20._0x1a14cd,0x2a1,0x21e,0x29a)](_0x28ccc3[_0x428960(_0x4a8a20._0x5eb0d2,_0x4a8a20._0x1db2bb,_0x4a8a20._0x451b7d,_0x4a8a20._0x553319)]?.[_0x41ee7f(0x6d0,_0x4a8a20._0x14ee3b,_0x4a8a20._0x4f6ddb,0x52c)]);});function _0x5d7978(_0x583190,_0x473549,_0x4ef0ed,_0xbbb412){return _0x159eb(_0x583190-0x1e9,_0x473549-_0x5780f8._0x40bc63,_0xbbb412,_0x473549- -_0x5780f8._0x4b3956);}yield createToolOutput(_0x37035f(_0x3727d9._0x26004a,_0x3727d9._0x5e565d,0xb4,_0x3727d9._0x1f7825)+_0x2c157b[_0x37035f(0x2e7,0x16d,_0x3727d9._0x23ec1c,_0x3727d9._0x3a2890)]+'.',{'runId':_0x2c157b[_0x37035f(_0x3727d9._0x573cff,_0x3727d9._0x11ae82,0xbb,_0x3727d9._0x52dce6)],'agentId':_0x2c157b[_0x37035f(_0x3727d9._0xcc8dff,_0x3727d9._0x3b982f,0x206,_0x3727d9._0x52c002)],'sessionId':_0x2c157b[_0x37035f(0x1a4,0x1cb,_0x3727d9._0x54f646,_0x3727d9._0x1a2f45)],'status':_0x2c157b[_0x5d7978(0x130,0x20,-0xfc,-0x19)]});try{const _0x6d2f6c=await _0x3a085b['send'](_0xec6d9f[_0x5d7978(-_0x3727d9._0x124059,-0xd4,_0x3727d9._0xa533b4,-0x1a6)],{'signal':_0x3bffb8[_0x5d7978(_0x3727d9._0x483410,0x106,0xe8,0x2e)]});_0x2c157b={..._0x2c157b,'status':_0x6d2f6c[_0x37035f(0x1ca,_0x3727d9._0x20ecbc,0x21d,0x27a)],'result':_0x6d2f6c};if(_0x6d2f6c[_0x5d7978(-0x8c,_0x3727d9._0x2af56e,-_0x3727d9._0x293b93,-0x3b)]!==_0x5d7978(-_0x3727d9._0x1bf81a,-0xa5,-_0x3727d9._0x34fa87,0x15)){const _0x3bdcca=getRunTerminalErrorMessage(_0x6d2f6c),_0x2367cc=formatAbortedRunMessage(_0x2c157b['runId'],_0x3bdcca);throw new ToolExecutionError(_0x2367cc,{...createRunSummary(_0x2c157b),'aborted':!![],'errorMessage':_0x2367cc});}return createRunSummaryOutput(_0x2c157b,_0x37035f(_0x3727d9._0x3a8aa9,_0x3727d9._0x16a7b7,0x13,0x131)+_0x2c157b[_0x37035f(0x2c0,0x2e6,0xdc,0x1a9)]+_0x5d7978(-0xa4,-0x147,-_0x3727d9._0x3f97f8,-0x219));}catch(_0x50e2b9){if(_0x50e2b9 instanceof ToolExecutionError)throw _0x50e2b9;if(isAbortError(_0x50e2b9)||_0x3bffb8[_0x37035f(0x36a,_0x3727d9._0xabe6ad,0x49f,0x360)]['aborted']||_0x28ccc3[_0x37035f(_0x3727d9._0x1c7ce4,_0x3727d9._0x10238f,_0x3727d9._0x1a4564,_0x3727d9._0x154b24)][_0x37035f(0x191,0x18e,_0x3727d9._0x5a090c,_0x3727d9._0x4c568a)]){const _0x5bb3d8=getRunTerminalErrorMessage(_0x2c157b[_0x37035f(0x24b,_0x3727d9._0x261e3a,0x172,0x1e4)])??(_0x50e2b9 instanceof Error?_0x50e2b9[_0x5d7978(0x9f,0x2,_0x3727d9._0x47fa6f,-0x108)]:String(_0x50e2b9)),_0x4b09a5=formatAbortedRunMessage(_0x2c157b[_0x5d7978(-_0x3727d9._0x34fa87,-0xb1,-0x52,-0x1e1)],_0x5bb3d8);_0x2c157b={..._0x2c157b,'status':'aborted','errorMessage':_0x4b09a5};throw new ToolExecutionError(_0x4b09a5,{...createRunSummary(_0x2c157b),'aborted':!![],'errorMessage':_0x4b09a5});}const _0x49f899=getRunTerminalErrorMessage(_0x2c157b[_0x37035f(0x2c0,_0x3727d9._0x5e9cb8,_0x3727d9._0x382b7f,_0x3727d9._0x39f8db)])??(_0x50e2b9 instanceof Error?_0x50e2b9[_0x37035f(_0x3727d9._0x38f8a9,_0x3727d9._0x2481a9,0x354,0x25c)]:String(_0x50e2b9))??_0x5d7978(-0x10f,-0x129,-_0x3727d9._0x57486e,-_0x3727d9._0x1f6655)+_0x2c157b[_0x5d7978(-_0x3727d9._0x49821f,-0xb1,-0x3b,_0x3727d9._0x1d6114)]+_0x5d7978(0x2e,-0x10b,-_0x3727d9._0xeb72c8,-_0x3727d9._0x1ec8c9);_0x2c157b={..._0x2c157b,'status':'failed','errorMessage':_0x49f899};throw new ToolExecutionError(_0x49f899,{...createRunSummary(_0x2c157b),'errorMessage':_0x49f899});}finally{_0x1f032f();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x5ef45a){return[createAssignTaskTool(_0x5ef45a)];}import*as _0x197bfc from'path';function buildDescription2(_0x39e211){const _0x3ebf95={_0x139712:0x1c1,_0x1390d8:0x2e2,_0x590157:0x266,_0x2396e5:0x143,_0x3d1d4b:0x14a,_0x332d11:0x30c,_0x2d157e:0x9c,_0x20e550:0x128,_0x2611e2:0x195},_0xaa3f1f={_0x138b91:0x386,_0x537c4a:0xc3};if(_0x39e211['length']===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x23950e(_0x188cc3,_0x5c465c,_0x22ec82,_0x2e625b){return _0x120580(_0x2e625b- -_0xaa3f1f._0x138b91,_0x188cc3,_0x22ec82-_0xaa3f1f._0x537c4a,_0x2e625b-0x173);}const _0x5c4f2d=[_0x23950e(_0x3ebf95._0x139712,_0x3ebf95._0x1390d8,0x160,_0x3ebf95._0x590157),_0x23950e(0xdb,0x1da,0xf2,_0x3ebf95._0x2396e5),_0x23950e(0x137,0xb9,0x1f2,0xe3),'Available\x20skills\x20(skill_name:\x20description):',..._0x39e211[_0x23950e(_0x3ebf95._0x3d1d4b,_0x3ebf95._0x332d11,0x357,0x267)](_0x521b15=>'-\x20'+_0x521b15['name']+':\x20'+_0x521b15['description'])];function _0x26c96e(_0x15db1a,_0x24dfb3,_0x4fc865,_0x1d8746){return _0x120580(_0x4fc865- -0x398,_0x1d8746,_0x4fc865-0xfb,_0x1d8746-0x83);}return _0x5c4f2d[_0x23950e(_0x3ebf95._0x2d157e,0xe8,_0x3ebf95._0x20e550,_0x3ebf95._0x2611e2)]('\x0a');}function createLoadSkillTool(_0x3225b1){const _0x25589c={_0x20ee9e:0x420,_0x1f4b9d:0x514,_0x296741:0x3cb,_0x49758f:0x530,_0x34ae73:0x5c0,_0x8343fa:0x56c,_0x4e3cf8:0xc3,_0x3f8f06:0x1c1,_0x2a7170:0x157,_0x1d800f:0x7e,_0x1430a2:0x23,_0x42ce17:0x12d,_0x5ed25d:0x121},_0x2fd71a={_0x1af4b4:0x385,_0x6aac87:0x390,_0x2174c7:0x4cb,_0x144ba9:0x3d7,_0x20c9fe:0x29c,_0xae51cb:0x227,_0x58e47e:0x2f4,_0x3c6177:0x172,_0x2b112b:0x49,_0x44dd74:0x41,_0x424764:0x3b4,_0x5e11a9:0x26d,_0x5205a0:0x3f8,_0x2009ef:0x339,_0x1875e3:0x3a8,_0x24dbb9:0x439,_0x444e3a:0x12e,_0x16e968:0x31a,_0x379414:0x3b3,_0x3ba41a:0x417,_0x2d3081:0x40a,_0xcad5b2:0x374,_0x4c4243:0x3bf,_0x5569a4:0x3fa,_0x2b4447:0x140,_0x17d9f5:0x46,_0x207a7a:0x8f,_0x497fd4:0x3d,_0x30d47c:0x16,_0x32254d:0x3be,_0x1857e7:0x2b1,_0x26f269:0x8b,_0x1a4792:0x41,_0x5e753b:0x123,_0x5c51cd:0x7c,_0x40644a:0x138,_0x156bcb:0x1,_0x5a9fcb:0x48a,_0x2c7a50:0x304,_0x543bbe:0x1e3,_0x39ae37:0xb3,_0x293c8b:0x106,_0x141067:0x258},_0xe27797={_0x1a1056:0xe,_0x4fdd63:0x4ce};function _0x5673ed(_0x5db388,_0x38837f,_0x4afb83,_0x488c25){return _0x43e84c(_0x5db388-0x1c6,_0x38837f,_0x4afb83-_0xe27797._0x1a1056,_0x488c25- -_0xe27797._0x4fdd63);}const _0x8f6aa7=new Map(_0x3225b1[_0x124af9(_0x25589c._0x20ee9e,0x4ba,_0x25589c._0x1f4b9d,_0x25589c._0x296741)][_0x124af9(_0x25589c._0x49758f,0x667,_0x25589c._0x34ae73,_0x25589c._0x8343fa)](_0x3253a6=>[_0x3253a6['name'],_0x3253a6]));function _0x124af9(_0x5a5207,_0xc2e235,_0xe18800,_0x535cd3){return _0x120580(_0x5a5207- -0xbd,_0x535cd3,_0xe18800-0xca,_0x535cd3-0x8a);}const _0x57e345=buildDescription2(_0x3225b1['skills']);return defineTool({'name':'LoadSkill','description':_0x57e345,'inputSchema':{'type':'object','properties':{'name':{'type':_0x5673ed(-_0x25589c._0x4e3cf8,-_0x25589c._0x3f8f06,-_0x25589c._0x2a7170,-_0x25589c._0x1d800f)}},'required':[_0x5673ed(_0x25589c._0x1430a2,-_0x25589c._0x42ce17,-_0x25589c._0x5ed25d,-0x74)]},async *'execute'(_0x2dc34e){const _0xf2f296={_0x4a4e23:0x1b8},_0x4703e6=_0x8f6aa7['get'](_0x2dc34e[_0x5a6e78(_0x2fd71a._0x1af4b4,_0x2fd71a._0x6aac87,_0x2fd71a._0x2174c7,0x322)]);if(!_0x4703e6){const _0x264644=Array[_0x5a6e78(_0x2fd71a._0x144ba9,_0x2fd71a._0x20c9fe,_0x2fd71a._0xae51cb,0x2e1)](_0x8f6aa7[_0x5a6e78(0x487,0x410,0x32d,_0x2fd71a._0x58e47e)]())['join'](',\x20');throw new ToolExecutionError(_0x514749(0xb5,_0x2fd71a._0x3c6177,_0x2fd71a._0x2b112b,_0x2fd71a._0x44dd74)+_0x2dc34e[_0x5a6e78(_0x2fd71a._0x424764,0x390,_0x2fd71a._0x5e11a9,_0x2fd71a._0x5205a0)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x264644,{'name':_0x2dc34e['name']});}function _0x5a6e78(_0x27def8,_0x4937a6,_0x4ab327,_0xfb7e3d){return _0x124af9(_0x4937a6- -0xb1,_0x4937a6-0x10,_0x4ab327-_0xf2f296._0x4a4e23,_0x27def8);}const _0x536071=await _0x3225b1[_0x5a6e78(_0x2fd71a._0x2009ef,0x305,_0x2fd71a._0x1875e3,_0x2fd71a._0x24dbb9)](_0x4703e6),_0xeca34f=_0x4703e6[_0x514749(0xca,0x14a,_0x2fd71a._0x444e3a,0x1fa)][_0x5a6e78(0x2b6,0x3e5,_0x2fd71a._0x16e968,_0x2fd71a._0x379414)]??_0x197bfc[_0x5a6e78(_0x2fd71a._0x3ba41a,_0x2fd71a._0x2d3081,0x4c0,0x307)](_0x4703e6[_0x5a6e78(_0x2fd71a._0xcad5b2,_0x2fd71a._0x4c4243,0x4b1,_0x2fd71a._0x5569a4)][_0x514749(-_0x2fd71a._0x2b4447,-_0x2fd71a._0x44dd74,-_0x2fd71a._0x17d9f5,_0x2fd71a._0x207a7a)]),_0x831c9c=[_0x514749(-_0x2fd71a._0x497fd4,-_0x2fd71a._0x30d47c,0x7c,0x34)+_0x536071[_0x5a6e78(0x2ab,0x390,_0x2fd71a._0x32254d,_0x2fd71a._0x1857e7)],'',_0x536071[_0x514749(0x7d,0x53,-_0x2fd71a._0x26f269,-0xb)],'','---','Loaded\x20from:\x20'+_0x4703e6['source'][_0x514749(0xb9,-_0x2fd71a._0x1a4792,-_0x2fd71a._0x26f269,-_0x2fd71a._0x5e753b)],'Base\x20directory:\x20'+_0xeca34f][_0x514749(_0x2fd71a._0x5c51cd,_0x2fd71a._0x40644a,-_0x2fd71a._0x156bcb,0x189)]('\x0a');function _0x514749(_0x369d96,_0x1f708d,_0x28b895,_0x1821db){return _0x124af9(_0x1f708d- -0x326,_0x1f708d-0x71,_0x28b895-0x103,_0x369d96);}return yield createToolOutput(_0x831c9c,{'id':_0x536071['id'],'name':_0x536071[_0x5a6e78(_0x2fd71a._0x5a9fcb,0x390,0x482,_0x2fd71a._0x2c7a50)],'path':_0x4703e6[_0x514749(0x5e,0x14a,_0x2fd71a._0x543bbe,_0x2fd71a._0x39ae37)][_0x5a6e78(_0x2fd71a._0x293c8b,0x234,0x1ca,_0x2fd71a._0x141067)],'baseDirectory':_0xeca34f}),void 0x0;}});}var TODO_STATUSES=new Set(['pending',_0x43e84c(0x64b,0x4f1,0x4e0,0x55c),_0x43e84c(0x4e1,0x3ac,0x4c8,0x3dc)]),TODO_PRIORITIES=new Set([_0x120580(0x3bd,0x46d,0x4ec,0x44f),_0x120580(0x440,0x326,0x561,0x474),_0x43e84c(0x386,0x3fd,0x46e,0x4bc)]);function isTodoStatus(_0x39e83a){const _0x154958={_0x2834dd:0x33},_0x25eca0={_0x2648b7:0x5dc};function _0x5756b0(_0x3661a2,_0x2ab982,_0xde891c,_0x6a3bf1){return _0x120580(_0x6a3bf1- -_0x25eca0._0x2648b7,_0x2ab982,_0xde891c-0xec,_0x6a3bf1-0x15);}return typeof _0x39e83a===_0x5756b0(_0x154958._0x2834dd,-0x16d,-0xdc,-0xe8)&&TODO_STATUSES['has'](_0x39e83a);}function isTodoPriority(_0x47bfbf){const _0x1aa14e={_0x16e4ce:0x385,_0x56c81e:0x26f,_0x22856f:0x2db,_0x224563:0x485,_0x2e7860:0x2e9},_0x1cc1a1={_0x1fd4d5:0x172},_0x126d13={_0x5631d6:0x1e8,_0x2617a4:0x1e};function _0x5526ad(_0x462c0e,_0x488b89,_0x18089e,_0x40b265){return _0x43e84c(_0x462c0e-_0x126d13._0x5631d6,_0x488b89,_0x18089e-_0x126d13._0x2617a4,_0x462c0e- -0xcb);}function _0xc26238(_0x1a773c,_0x39b111,_0x288e96,_0x4423ff){return _0x43e84c(_0x1a773c-0x10a,_0x288e96,_0x288e96-0x1a2,_0x4423ff-_0x1cc1a1._0x1fd4d5);}return typeof _0x47bfbf===_0x5526ad(_0x1aa14e._0x16e4ce,_0x1aa14e._0x56c81e,0x445,_0x1aa14e._0x22856f)&&TODO_PRIORITIES[_0x5526ad(0x3a5,0x2f2,_0x1aa14e._0x224563,_0x1aa14e._0x2e7860)](_0x47bfbf);}var TodoStore=class{[_0x43e84c(0x60d,0x5cc,0x418,0x4de)]=new Map();[_0x43e84c(0x42c,0x59e,0x624,0x543)](_0x45814f){const _0x2179a6={_0x3fb459:0x6ee},_0x4f8696={_0x5456cd:0xb1};function _0x434598(_0x1e7ede,_0x1262a5,_0x4ba17a,_0x197ee6){return _0x43e84c(_0x1e7ede-0x11d,_0x4ba17a,_0x4ba17a-0x168,_0x1262a5- -0x444);}function _0x5adb42(_0x150a28,_0x52df3a,_0x12e920,_0x263e8f){return _0x120580(_0x52df3a-0xe8,_0x150a28,_0x12e920-_0x4f8696._0x5456cd,_0x263e8f-0x1dc);}return this[_0x434598(0x1cc,0x9a,0x16d,-0x9)][_0x5adb42(_0x2179a6._0x3fb459,0x702,0x6c4,0x803)](_0x45814f)??[];}[_0x43e84c(0x5b8,0x4b5,0x516,0x4ff)](_0xd0555a,_0x272013){const _0x37004c={_0x5214fe:0xe8,_0x211039:0x18c,_0x91b9c8:0x147},_0x74dc20={_0x37de04:0x2f,_0x28ae8d:0x437},_0x35fe66={_0x338147:0x76,_0x5bcd8e:0xf8};function _0x3932ae(_0x1c5e61,_0x5d6ca3,_0x384591,_0x657780){return _0x120580(_0x657780- -0x2f6,_0x384591,_0x384591-_0x35fe66._0x338147,_0x657780-_0x35fe66._0x5bcd8e);}function _0x3ff3e2(_0x3e7d27,_0x817a23,_0x220f5d,_0x89c72f){return _0x43e84c(_0x3e7d27-0x2b,_0x817a23,_0x220f5d-_0x74dc20._0x37de04,_0x89c72f- -_0x74dc20._0x28ae8d);}this[_0x3ff3e2(_0x37004c._0x5214fe,0x164,-0x38,0xa7)][_0x3ff3e2(0x21d,_0x37004c._0x211039,0x1d5,_0x37004c._0x91b9c8)](_0xd0555a,_0x272013);}[_0x120580(0x614,0x61a,0x5f9,0x4ea)](_0x2c195a){const _0xa9fda={_0x547c0d:0xaf,_0x58ca34:0x17b,_0x2aa44b:0xab,_0x38e609:0x85,_0x5df9c6:0xda,_0x11a1f6:0x601,_0x22e04e:0x6e3,_0x1dec9c:0x7ad,_0x798e3f:0x701,_0x3b046c:0x4e6,_0x1c1178:0x5b6},_0x5a046c={_0x3254a1:0xd1,_0x27515:0x17b,_0x28c4ec:0x428},_0x1c94f0={_0x239252:0x1ff};function _0x1476d0(_0x8ec315,_0x5e4a28,_0x2f9f53,_0x3aa78c){return _0x43e84c(_0x8ec315-0x1cf,_0x8ec315,_0x2f9f53-0x7a,_0x2f9f53-_0x1c94f0._0x239252);}const _0xefa5ae=this['getTodos'](_0x2c195a),_0x18855a={'total':_0xefa5ae[_0x533f4d(_0xa9fda._0x547c0d,_0xa9fda._0x58ca34,_0xa9fda._0x2aa44b,0xdb)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x533f4d(_0x107968,_0xbdd7bd,_0x365d90,_0x5392fa){return _0x43e84c(_0x107968-_0x5a046c._0x3254a1,_0x107968,_0x365d90-_0x5a046c._0x27515,_0x365d90- -_0x5a046c._0x28c4ec);}for(const _0x3b25da of _0xefa5ae){if(_0x3b25da[_0x533f4d(_0xa9fda._0x38e609,_0xa9fda._0x5df9c6,0x79,-0x63)]===_0x1476d0(0x5d4,_0xa9fda._0x11a1f6,0x701,_0xa9fda._0x22e04e))_0x18855a[_0x1476d0(0x5f3,_0xa9fda._0x1dec9c,_0xa9fda._0x798e3f,0x69e)]+=0x1;else{if(_0x3b25da[_0x1476d0(0x6e9,0x5ab,0x6a0,0x70c)]==='in_progress')_0x18855a['inProgress']+=0x1;else _0x18855a[_0x1476d0(_0xa9fda._0x3b046c,_0xa9fda._0x1c1178,0x5db,0x698)]+=0x1;}}return _0x18855a;}};function validateTodos(_0x2daf8c){const _0x20f2ef={_0xf9484a:0x2dc,_0x328ac2:0x2d9,_0x21d039:0x153,_0x18dddd:0x25c,_0x1a6f05:0x1a8,_0xb2462d:0x69,_0xbaf03a:0xf,_0x365808:0x89,_0x466cc9:0x28,_0x4e40fd:0x1f3,_0x591d58:0x1f7,_0x53a646:0x251,_0x383a6d:0x274,_0x561df4:0x1df,_0x344fcf:0x15e,_0x179c88:0x18e,_0x1e4226:0x103,_0xa9f8d3:0x31c,_0x817254:0x242,_0x2430f6:0x253,_0x4c4a2a:0x21d,_0x4da7d1:0x27,_0x1fee3f:0x1a,_0x1bd9b1:0xd2,_0x180ff3:0x0,_0x2c7c98:0x142,_0x38a017:0x16d,_0xbc447:0x1ec,_0x13f5f4:0x298,_0x2d4313:0x117,_0x2141e3:0xe9,_0x448243:0x6,_0x8beb53:0xcb,_0x5f2202:0x26a,_0x5c32e7:0x1d1,_0xa29adc:0x1e5,_0x520fb4:0x288,_0x322017:0x113,_0x1d75c4:0x57,_0x43f4fb:0x14e,_0x51c62d:0x1f1,_0x1ef4d0:0x185,_0x7f7f9e:0x18d,_0xd750c:0x1,_0x559019:0x25,_0x56a55b:0xa1,_0x22362a:0xf4,_0xdfe52f:0x13b,_0xe9a2a3:0x77,_0x3334d7:0x293,_0x4343c6:0x235,_0x32d8c7:0xa6,_0xc3e7b0:0x87,_0x5ad5a7:0x11c,_0x305555:0x14c,_0x319353:0x201,_0xd70614:0x7e,_0x419e58:0x19f,_0xeb67a0:0x262,_0x2ee850:0x1a5,_0x5cd6d0:0x5c,_0x40a985:0xe8,_0x291607:0x11f,_0x1947cd:0x140,_0x25cf7f:0x25c,_0x47f63a:0x3b,_0x5345a4:0xc0,_0x1b4841:0x73,_0xb40fd8:0xa,_0x522fb3:0x10c},_0x332883={_0x12cd8c:0x1d9},_0x8fbf71={_0xf3fa0d:0xb5,_0x3febf6:0x12b,_0x58c8ec:0x380};if(!Array['isArray'](_0x2daf8c['todos'])||_0x2daf8c[_0x10d64a(-_0x20f2ef._0xf9484a,-0x1df,-0x129,-_0x20f2ef._0x328ac2)][_0x2dad0c(0x25e,_0x20f2ef._0x21d039,_0x20f2ef._0x18dddd,_0x20f2ef._0x1a6f05)]===0x0)throw new ToolExecutionError(_0x2dad0c(_0x20f2ef._0xb2462d,-_0x20f2ef._0xbaf03a,_0x20f2ef._0x365808,-_0x20f2ef._0x466cc9),{'error':_0x2dad0c(_0x20f2ef._0x4e40fd,_0x20f2ef._0x591d58,_0x20f2ef._0x53a646,0x113)});function _0x2dad0c(_0x5b54ed,_0x5c7a3f,_0x362804,_0x50b33d){return _0x43e84c(_0x5b54ed-_0x8fbf71._0xf3fa0d,_0x50b33d,_0x362804-_0x8fbf71._0x3febf6,_0x5c7a3f- -_0x8fbf71._0x58c8ec);}for(let _0xb34b65=0x0;_0xb34b65<_0x2daf8c[_0x10d64a(-_0x20f2ef._0x383a6d,-_0x20f2ef._0x561df4,-_0x20f2ef._0x344fcf,-_0x20f2ef._0x179c88)][_0x2dad0c(0x4d,0x153,0x26d,_0x20f2ef._0x1e4226)];_0xb34b65+=0x1){const _0x2580aa=_0x2daf8c[_0x10d64a(-_0x20f2ef._0xa9f8d3,-_0x20f2ef._0x561df4,-0x2fc,-_0x20f2ef._0x817254)][_0xb34b65];if(!_0x2580aa||typeof _0x2580aa!==_0x2dad0c(_0x20f2ef._0x2430f6,0x1d7,_0x20f2ef._0x4c4a2a,0x1ff))throw new ToolExecutionError(_0x2dad0c(-_0x20f2ef._0x4da7d1,_0x20f2ef._0x1fee3f,-0xb4,_0x20f2ef._0x1bd9b1)+(_0xb34b65+0x1)+':\x20todo\x20item\x20is\x20required',{'error':_0x10d64a(_0x20f2ef._0x180ff3,0x1a,-0x2d,_0x20f2ef._0x2c7c98)});if(typeof _0x2580aa['id']!==_0x10d64a(-_0x20f2ef._0x38a017,-0xf7,-0x1d7,0x3e)||_0x2580aa['id'][_0x10d64a(-0x237,-_0x20f2ef._0xbc447,-0x140,-0x102)]()[_0x2dad0c(0x17e,_0x20f2ef._0x21d039,_0x20f2ef._0x13f5f4,0x1b3)]===0x0)throw new ToolExecutionError(_0x2dad0c(0xe1,_0x20f2ef._0x1fee3f,-0x122,-_0x20f2ef._0x2d4313)+(_0xb34b65+0x1)+_0x10d64a(-0x1d1,-_0x20f2ef._0x2141e3,_0x20f2ef._0x448243,-_0x20f2ef._0x8beb53),{'error':_0x2dad0c(_0x20f2ef._0x5f2202,_0x20f2ef._0x5c32e7,_0x20f2ef._0xa29adc,_0x20f2ef._0x520fb4)});if(typeof _0x2580aa[_0x10d64a(-_0x20f2ef._0x322017,-_0x20f2ef._0x1d75c4,0xd1,-0x5c)]!==_0x10d64a(-_0x20f2ef._0x43f4fb,-0xf7,-_0x20f2ef._0x51c62d,-_0x20f2ef._0x1ef4d0)||_0x2580aa[_0x10d64a(-0x85,-_0x20f2ef._0x1d75c4,-_0x20f2ef._0x7f7f9e,_0x20f2ef._0xd750c)][_0x2dad0c(0x53,-_0x20f2ef._0x559019,_0x20f2ef._0x56a55b,-0x8d)]()['length']===0x0)throw new ToolExecutionError(_0x10d64a(-0x19f,-0x1ad,-0x7d,-0x2be)+(_0xb34b65+0x1)+_0x2dad0c(_0x20f2ef._0x22362a,_0x20f2ef._0xdfe52f,0x19b,_0x20f2ef._0xe9a2a3),{'error':_0x10d64a(-_0x20f2ef._0x3334d7,-_0x20f2ef._0x1a6f05,-_0x20f2ef._0x4343c6,-0x1e8)});if(!isTodoStatus(_0x2580aa[_0x10d64a(-0x154,-_0x20f2ef._0x32d8c7,-_0x20f2ef._0xc3e7b0,0x40)]))throw new ToolExecutionError(_0x2dad0c(-0xf4,0x1a,0x11b,-_0x20f2ef._0x5ad5a7)+(_0xb34b65+0x1)+_0x2dad0c(_0x20f2ef._0x305555,0xd9,_0x20f2ef._0x319353,_0x20f2ef._0xd70614),{'error':'invalid_todo_status'});if(!isTodoPriority(_0x2580aa['priority']))throw new ToolExecutionError(_0x10d64a(-_0x20f2ef._0x419e58,-0x1ad,-_0x20f2ef._0xeb67a0,-_0x20f2ef._0x2ee850)+(_0xb34b65+0x1)+_0x2dad0c(-0x48,-_0x20f2ef._0x5cd6d0,_0x20f2ef._0x40a985,-0x14b),{'error':'invalid_todo_priority'});}function _0x10d64a(_0x444063,_0x38b9be,_0x16b993,_0x43a403){return _0x43e84c(_0x444063-_0x332883._0x12cd8c,_0x43a403,_0x16b993-0x14b,_0x38b9be- -0x547);}const _0x5dccd0=_0x2daf8c['todos'][_0x2dad0c(0x19e,0x1c9,0x200,0x1a6)](_0x472485=>_0x472485['id']);if(new Set(_0x5dccd0)[_0x10d64a(-0x195,-_0x20f2ef._0x291607,-_0x20f2ef._0x1947cd,-_0x20f2ef._0x25cf7f)]!==_0x5dccd0[_0x2dad0c(_0x20f2ef._0x47f63a,0x153,0x181,0x1f5)])throw new ToolExecutionError(_0x10d64a(-0x181,-_0x20f2ef._0x5345a4,_0x20f2ef._0x1b4841,-_0x20f2ef._0xb40fd8),{'error':_0x2dad0c(_0x20f2ef._0x522fb3,_0x20f2ef._0x2c7c98,0x255,0xa6)});}function createStatsProgress(_0x45e9bf){const _0x3e5329={_0x2e49e6:0x1fe,_0x37a6da:0x8e,_0x4d49a8:0x373,_0x573c1d:0x1ef,_0x533596:0x2af},_0x71845={_0x29d8f4:0x1f4,_0x1fc2fe:0x9,_0x10d37a:0x345},_0x68f39f={_0xb2d7aa:0x246};function _0x2c6ba2(_0x382af1,_0x2b6114,_0x566f57,_0x42c9a0){return _0x43e84c(_0x382af1-0x15a,_0x2b6114,_0x566f57-0x1ef,_0x42c9a0- -_0x68f39f._0xb2d7aa);}function _0x426d47(_0x26b85b,_0x73817f,_0x15adef,_0x430fca){return _0x43e84c(_0x26b85b-_0x71845._0x29d8f4,_0x15adef,_0x15adef-_0x71845._0x1fc2fe,_0x430fca- -_0x71845._0x10d37a);}return _0x45e9bf['total']>0x0?Math['round'](_0x45e9bf[_0x2c6ba2(0x210,_0x3e5329._0x2e49e6,_0x3e5329._0x37a6da,0x196)]/_0x45e9bf[_0x2c6ba2(_0x3e5329._0x4d49a8,_0x3e5329._0x573c1d,0x277,_0x3e5329._0x533596)]*0x64)+'%':'0%';}function createReminderItems(_0xda1692){const _0x2734a3={_0x4d9df2:0x25a},_0x359c5d={_0x54a7a0:0x559,_0x2dcf78:0x150,_0x45dbc3:0x9e},_0x1126d8={_0x4d9aee:0x1d9,_0x502d3f:0xaf,_0x27a5b5:0x40a};function _0x1952bc(_0x4fec06,_0x1911fd,_0x12f8ef,_0x92a739){return _0x43e84c(_0x4fec06-_0x1126d8._0x4d9aee,_0x1911fd,_0x12f8ef-_0x1126d8._0x502d3f,_0x12f8ef- -_0x1126d8._0x27a5b5);}function _0x1e152b(_0x448614,_0xba161b,_0x1b902f,_0x136002){return _0x120580(_0x136002- -_0x359c5d._0x54a7a0,_0x1b902f,_0x1b902f-_0x359c5d._0x2dcf78,_0x136002-_0x359c5d._0x45dbc3);}return _0xda1692[_0x1952bc(0x159,0x191,0x13f,_0x2734a3._0x4d9df2)](_0x2f1761=>({'content':_0x2f1761[_0x1952bc(0x139,0x119,0xe6,0x145)],'status':_0x2f1761[_0x1952bc(0x11c,-0xaa,0x97,0x1d2)],'id':_0x2f1761['id']}));}function createStructuredResult(_0x4f88a7,_0x414025,_0x3e14e5,_0x391b0c){const _0x1a1b1b={_0xb4cb0c:0x7a5,_0x243201:0x6d1,_0x1a3487:0x7f0,_0x10e832:0x244},_0x3c439d={_0x149f8c:0x18d},_0x3fe366={_0xe54d72:0xd0,_0x570867:0x142};function _0x2ef7e0(_0x4e9475,_0x1ca785,_0x4a4f3f,_0x2d3185){return _0x43e84c(_0x4e9475-_0x3fe366._0xe54d72,_0x1ca785,_0x4a4f3f-_0x3fe366._0x570867,_0x2d3185- -0x28f);}function _0x4fb861(_0x13e3c4,_0x10b2a6,_0x187c6e,_0x1e8cb3){return _0x120580(_0x10b2a6-0xe4,_0x13e3c4,_0x187c6e-0x92,_0x1e8cb3-_0x3c439d._0x149f8c);}return{'allCompleted':_0x391b0c,'items':_0x414025[_0x4fb861(_0x1a1b1b._0xb4cb0c,_0x1a1b1b._0x243201,0x5b8,_0x1a1b1b._0x1a3487)](_0x374c7=>({'id':_0x374c7['id'],'content':_0x374c7[_0x2ef7e0(0x328,0x30a,0x254,0x261)],'status':_0x374c7['status'],'priority':_0x374c7['priority'],'createdAt':_0x374c7['createdAt']})),'progress':createStatsProgress(_0x3e14e5),'recentChanges':!![],'sessionId':_0x4f88a7,'stats':_0x3e14e5,'todosWritten':_0x414025[_0x2ef7e0(0x37b,0x220,0x362,_0x1a1b1b._0x10e832)]};}function createOutputText(_0x155b41,_0x3635d7){const _0x2bb79e={_0xa0b36f:0x5f7,_0x1d5a53:0x568,_0x3f95f7:0x23,_0x595cda:0x66,_0x1f1d7c:0x2e,_0x1547bc:0xd9,_0x39c617:0x635,_0x546fc6:0x4ef,_0x28426a:0x244,_0x1c2299:0x12f,_0x201594:0x6f4,_0x5c267a:0x6b6,_0x5618f7:0x51b},_0x418b25={_0x3f8d09:0xe7};function _0x1141e8(_0x186f48,_0x46cfd9,_0x24e8c9,_0x40fc92){return _0x43e84c(_0x186f48-0x44,_0x40fc92,_0x24e8c9-0xc0,_0x46cfd9- -0x36c);}const _0x4a2aad=JSON[_0x5697af(0x65e,_0x2bb79e._0xa0b36f,0x590,_0x2bb79e._0x1d5a53)](createReminderItems(_0x155b41));function _0x5697af(_0xf48b02,_0x16c675,_0x277408,_0x5ea673){return _0x120580(_0xf48b02-0x9d,_0x5ea673,_0x277408-_0x418b25._0x3f8d09,_0x5ea673-0xdc);}if(_0x3635d7)return'All\x20'+_0x155b41['length']+_0x1141e8(-_0x2bb79e._0x3f95f7,_0x2bb79e._0x595cda,-_0x2bb79e._0x1f1d7c,-_0x2bb79e._0x1547bc)+_0x4a2aad+_0x5697af(_0x2bb79e._0x39c617,0x76a,_0x2bb79e._0x546fc6,0x664);return _0x1141e8(_0x2bb79e._0x28426a,0x148,_0x2bb79e._0x1c2299,0x273)+_0x4a2aad+_0x5697af(0x635,_0x2bb79e._0x201594,_0x2bb79e._0x5c267a,_0x2bb79e._0x5618f7);}function createTodoWriteTool(_0x84ee17=new TodoStore()){const _0x523936={_0x362b7:0x68,_0x4f3f54:0x10b,_0x1e1ebb:0xce,_0x6249dd:0x1a5,_0x5c3506:0xb9,_0x21a109:0xf8,_0x121f48:0x13b,_0x20faf9:0x315,_0x53f9cb:0x232,_0x50476a:0x2f3,_0x24e1a6:0x19a,_0x492f01:0xc8,_0xfde1:0x10c,_0x1a8114:0x122,_0x594d15:0x215,_0x301d69:0x14a},_0x44e7fc={_0x348b56:0x347,_0x53cc7b:0x24d,_0xf89f27:0x12c,_0x414918:0x1e8,_0x390384:0x119,_0x1696cd:0x10,_0x5c6f9f:0xf3,_0x24c773:0xca,_0x1056d9:0x181,_0x58eb3a:0x7d,_0x3910f5:0x3ed,_0x4bbf8e:0x283,_0x2b202b:0x378,_0x59c931:0x319,_0x25daf5:0x255,_0x1b0e28:0xf},_0x440556={_0x2a0fde:0xbf},_0x4994ec={_0x374c93:0x2c2,_0x50cb2e:0x19e,_0x51b98a:0x58},_0x2010b2={_0x97a578:0x163};function _0x1eaaf0(_0xa4a0a5,_0x2b2ef6,_0x5224fe,_0x51eb84){return _0x120580(_0xa4a0a5- -0x4bd,_0x2b2ef6,_0x5224fe-0x1c3,_0x51eb84-_0x2010b2._0x97a578);}function _0x5cdcc1(_0x3a4ced,_0x5abaa8,_0x24f930,_0x38414f){return _0x120580(_0x38414f- -_0x4994ec._0x374c93,_0x24f930,_0x24f930-_0x4994ec._0x50cb2e,_0x38414f-_0x4994ec._0x51b98a);}return defineTool({'name':_0x5cdcc1(0x29d,0x123,0x1af,0x211),'description':_0x1eaaf0(-_0x523936._0x362b7,0xdc,0x11,0x77),'inputSchema':{'type':_0x1eaaf0(0x13e,0xf4,0x1e8,_0x523936._0x4f3f54),'properties':{'todos':{'type':_0x1eaaf0(0x74,-_0x523936._0x1e1ebb,-0xa0,_0x523936._0x6249dd),'items':{'type':_0x1eaaf0(0x13e,_0x523936._0x5c3506,0x1c2,0x53),'properties':{'content':{'type':'string'},'status':{'type':_0x5cdcc1(_0x523936._0x21a109,_0x523936._0x121f48,_0x523936._0x20faf9,_0x523936._0x53f9cb)},'priority':{'type':_0x5cdcc1(0x313,_0x523936._0x50476a,_0x523936._0x24e1a6,0x232)},'id':{'type':_0x1eaaf0(0x37,_0x523936._0x492f01,-_0x523936._0xfde1,0x148)},'createdAt':{'type':_0x1eaaf0(0x37,_0x523936._0x1a8114,-0x44,-0x51)}},'required':[_0x5cdcc1(0x3be,0x2b1,0x1ca,0x2d2),_0x5cdcc1(0x261,0x27e,0x230,0x283),'priority','id']}}},'required':[_0x5cdcc1(_0x523936._0x594d15,0x1d6,0xdc,_0x523936._0x301d69)]},async *'execute'(_0x31316b,_0x2669a5){const _0x3f3c62={_0x8094d8:0x1ed,_0x106e20:0x37},_0x4fc1fa=_0x31316b;validateTodos(_0x4fc1fa);const _0xbf8f7d=_0x2669a5[_0x1c6752(0x322,0x298,_0x44e7fc._0x348b56,_0x44e7fc._0x53cc7b)]||_0x45a030(0x247,_0x44e7fc._0xf89f27,_0x44e7fc._0x414918,0x10a),_0x4b4112=new Date()[_0x45a030(_0x44e7fc._0x390384,_0x44e7fc._0x1696cd,0x8f,_0x44e7fc._0x5c6f9f)](),_0x2fa554=_0x4fc1fa[_0x1c6752(_0x44e7fc._0x24c773,_0x44e7fc._0x1056d9,_0x44e7fc._0x58eb3a,0x1db)][_0x1c6752(0x321,0x362,_0x44e7fc._0x3910f5,0x320)](_0x17b9a0=>({'id':_0x17b9a0['id'],'content':_0x17b9a0['content'],'status':_0x17b9a0[_0x1c6752(0x197,0x2ba,0x251,0x2e9)],'priority':_0x17b9a0[_0x1c6752(0x31c,0x2a8,0x23f,0x2b2)],'sessionId':_0xbf8f7d,'createdAt':_0x17b9a0[_0x1c6752(0x35b,0x306,0x2a0,0x1e9)]||_0x4b4112,'updatedAt':_0x4b4112}));function _0x1c6752(_0x5334d7,_0x432fe8,_0x5668e0,_0xd343fe){return _0x5cdcc1(_0x5334d7-_0x3f3c62._0x8094d8,_0x432fe8-0x76,_0xd343fe,_0x432fe8-_0x3f3c62._0x106e20);}_0x84ee17[_0x1c6752(0x38f,0x318,_0x44e7fc._0x4bbf8e,_0x44e7fc._0x2b202b)](_0xbf8f7d,_0x2fa554);function _0x45a030(_0x2bf6ad,_0x47a90f,_0x4f483c,_0x2e59fa){return _0x1eaaf0(_0x47a90f-0xd,_0x4f483c,_0x4f483c-_0x440556._0x2a0fde,_0x2e59fa-0xb5);}const _0x5ea45c=_0x84ee17[_0x1c6752(0x47d,0x389,_0x44e7fc._0x59c931,_0x44e7fc._0x25daf5)](_0xbf8f7d),_0x57972a=_0x2fa554['length']>0x0&&_0x2fa554[_0x1c6752(0x139,0x11d,-_0x44e7fc._0x1b0e28,0x19e)](_0x10caaf=>_0x10caaf[_0x45a030(0x1c8,0x95,0x144,-0x27)]===_0x1c6752(0x275,0x1f5,0x1a4,0x1b4));return createToolOutput(createOutputText(_0x2fa554,_0x57972a),createStructuredResult(_0xbf8f7d,_0x2fa554,_0x5ea45c,_0x57972a));}});}import{mkdir as _0x34614e,writeFile as _0x4e7d84}from'fs/promises';import*as _0x385fe2 from'path';function sanitizeFileName(_0xc2fc62){const _0x59a621={_0x574f91:0xcc,_0x1310ea:0x6},_0x13cfbd={_0x527ef7:0x7d,_0x1f79ce:0x3da};function _0xeaf5e6(_0x285fd0,_0x1b307e,_0x4a6909,_0x53b63f){return _0x43e84c(_0x285fd0-0x1eb,_0x1b307e,_0x4a6909-_0x13cfbd._0x527ef7,_0x4a6909- -_0x13cfbd._0x1f79ce);}return _0xc2fc62[_0xeaf5e6(-0x119,_0x59a621._0x574f91,-_0x59a621._0x1310ea,-0x33)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x4f204f,_0x4b0160){const _0x6da8e5={_0x4fecdf:0x53a,_0x34e0cb:0x131,_0xc5391c:0x94,_0x1b8954:0x89,_0x454db7:0x165,_0x44f5b8:0x104,_0x225b50:0x3,_0x49adcf:0x26d,_0x19cec8:0x3bf,_0x421fb9:0x404,_0x50344f:0x5fa,_0x47d447:0x4bb,_0x14aab9:0xcd,_0x45b95a:0xad,_0x433e6e:0x4d0,_0x4867c8:0x297,_0x591afe:0x274,_0x41398d:0x1a2,_0x116e6a:0x520,_0x463d56:0x53d,_0x20c894:0x129,_0x412a1e:0x174,_0x313c97:0xfd,_0x6e0205:0x42b,_0x3de1c0:0x475,_0x2c67f8:0x4d9,_0x5168cc:0x170,_0x300ebe:0x5dc,_0x597859:0x4cb,_0x55c51d:0xe1,_0x3b87d6:0x490,_0x3be8d1:0x4ba,_0x12a0ae:0x4dc,_0x46fe1f:0x57c,_0x3c0ac5:0x519,_0xa9b7c0:0x4ca,_0x3620c0:0x4fc,_0x1c0b31:0x324,_0x4dfbab:0x468,_0x355869:0x513,_0x372bf0:0x3d3,_0x2ec511:0x20b,_0x2043e3:0x11d,_0x489299:0x4d4,_0x53c077:0x59f,_0x3efae5:0x4ec,_0x50a5b1:0x3df,_0x4c019f:0x60c,_0x29a6dd:0x502,_0xe0e6e8:0x4be,_0x4ee492:0x101},_0xcd32f8={_0xf77d48:0x159,_0x4f4307:0xdf,_0x4c5d29:0x368},_0x3181a4={_0x2767d6:0x8},{maxBytes:_0x5860b3,sessionDir:_0x30a4da}=_0x4b0160;if(!_0x4f204f[_0x260db4(_0x6da8e5._0x4fecdf,0x538,0x4d6,0x525)]||Buffer['byteLength'](_0x4f204f[_0x1f6805(_0x6da8e5._0x34e0cb,0x217,_0x6da8e5._0xc5391c,0x170)],_0x1f6805(0x170,0x226,_0x6da8e5._0x1b8954,_0x6da8e5._0x454db7))<=_0x5860b3)return _0x4f204f;const _0x299aee=Buffer[_0x1f6805(0xa8,0x4a,-_0x6da8e5._0x44f5b8,-_0x6da8e5._0x225b50)](_0x4f204f['output'],_0x1f6805(_0x6da8e5._0x49adcf,0x206,0x1e9,_0x6da8e5._0x454db7));if(!_0x30a4da){const _0x32dfe1=_0x4f204f[_0x260db4(_0x6da8e5._0x19cec8,_0x6da8e5._0x421fb9,0x4d6,0x4fe)]['slice'](0x0,_0x5860b3);return{..._0x4f204f,'output':_0x32dfe1+(_0x260db4(_0x6da8e5._0x50344f,0x50d,0x56a,_0x6da8e5._0x47d447)+_0x5860b3+_0x1f6805(0x7c,0x7c,_0x6da8e5._0x14aab9,_0x6da8e5._0x45b95a)+_0x299aee+'\x20bytes).\x20No\x20session\x20directory\x20available\x20for\x20file\x20offload.\x0a</system-reminder>'),'meta':{..._0x4f204f['meta'],'truncated':!![],'originalBytes':_0x299aee,'transforms':[..._0x4f204f[_0x260db4(0x552,0x50b,0x4ec,_0x6da8e5._0x433e6e)][_0x1f6805(0xbd,0xc1,0x244,0x19c)],_0x1f6805(0x25d,_0x6da8e5._0x4867c8,_0x6da8e5._0x591afe,_0x6da8e5._0x41398d)]}};}const _0x3a0676=_0x4f204f[_0x260db4(0x43a,0x241,0x35a,0x2a9)]+'_'+sanitizeFileName(_0x4f204f[_0x260db4(0x410,_0x6da8e5._0x116e6a,0x40b,_0x6da8e5._0x463d56)])+_0x1f6805(_0x6da8e5._0x20c894,_0x6da8e5._0x412a1e,0x42,_0x6da8e5._0x313c97);function _0x260db4(_0x14fed3,_0x46a8dd,_0x208f44,_0x54fb03){return _0x43e84c(_0x14fed3-0x119,_0x46a8dd,_0x208f44-_0x3181a4._0x2767d6,_0x208f44- -0x2);}const _0x5b74e8=_0x385fe2[_0x260db4(_0x6da8e5._0x6e0205,0x4b3,_0x6da8e5._0x3de1c0,_0x6da8e5._0x2c67f8)](_0x30a4da,_0x3a0676);await _0x34614e(_0x30a4da,{'recursive':!![]}),await _0x4e7d84(_0x5b74e8,_0x4f204f[_0x1f6805(0xdc,0x222,0x68,_0x6da8e5._0x5168cc)],_0x260db4(_0x6da8e5._0x300ebe,0x611,_0x6da8e5._0x597859,0x57e));let _0xcb34a4=_0x4f204f[_0x1f6805(0x1e4,0xa7,_0x6da8e5._0x55c51d,0x170)]['slice'](0x0,_0x5860b3);const _0x6675a5=_0xcb34a4[_0x260db4(0x47d,0x2f6,0x37b,_0x6da8e5._0x3b87d6)]('\x0a');_0x6675a5>_0x5860b3*0.5&&(_0xcb34a4=_0xcb34a4[_0x260db4(0x4bc,_0x6da8e5._0x3be8d1,0x55b,0x5be)](0x0,_0x6675a5));function _0x1f6805(_0x2fdb19,_0x2c1766,_0xa2e8eb,_0x59a5e5){return _0x43e84c(_0x2fdb19-_0xcd32f8._0xf77d48,_0xa2e8eb,_0xa2e8eb-_0xcd32f8._0x4f4307,_0x59a5e5- -_0xcd32f8._0x4c5d29);}const _0xf0f360=['','<system-reminder>',_0x260db4(_0x6da8e5._0x12a0ae,_0x6da8e5._0x46fe1f,_0x6da8e5._0x3c0ac5,_0x6da8e5._0xa9b7c0)+_0x5860b3+_0x260db4(_0x6da8e5._0x3620c0,_0x6da8e5._0x1c0b31,_0x6da8e5._0x4dfbab,_0x6da8e5._0x355869)+_0x299aee+_0x260db4(0x50b,0x2a1,_0x6da8e5._0x372bf0,0x517),_0x1f6805(0xeb,0x327,_0x6da8e5._0x2ec511,0x201)+_0x5b74e8,_0x260db4(0x481,0x698,0x556,0x63d),_0x1f6805(0x57,0x143,0x3b,_0x6da8e5._0x2043e3)][_0x260db4(_0x6da8e5._0x489299,_0x6da8e5._0x53c077,0x475,0x3c6)]('\x0a');return{..._0x4f204f,'output':_0xcb34a4+_0xf0f360,'meta':{..._0x4f204f['meta'],'truncated':!![],'originalBytes':_0x299aee,'transforms':[..._0x4f204f[_0x260db4(0x47f,0x536,_0x6da8e5._0x3efae5,_0x6da8e5._0x50a5b1)][_0x260db4(0x552,_0x6da8e5._0x4c019f,_0x6da8e5._0x29a6dd,_0x6da8e5._0xe0e6e8)],_0x1f6805(_0x6da8e5._0x4ee492,0x1ad,0x249,_0x6da8e5._0x41398d)]}};}import{readFile as _0x476dfb,stat as _0x7ae06e}from'fs/promises';import*as _0x358d0a from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x120580(0x3bd,0x3b5,0x2ed,0x419),_0x120580(0x560,0x490,0x427,0x421),_0x43e84c(0x61e,0x3cb,0x53f,0x4fa)]),PNG_SIGNATURE=Buffer[_0x43e84c(0x2a2,0x37c,0x22a,0x366)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0xc09e58,_0x15f2b0){const _0x130a9a={_0x50db6d:0xf5,_0x143f04:0x158,_0x146034:0xd2,_0x32b1f3:0x617,_0x2df0dc:0x5d6,_0x2de2ef:0x5fc,_0x365598:0x307,_0x20b116:0x396,_0x2b4719:0x3b2,_0x3f49d1:0x478,_0x1b1196:0x396,_0x3a9e59:0x50,_0x38e2f3:0x15c,_0x5ed0ba:0x43,_0x9e395b:0x1f,_0x518eaa:0x127,_0x222ae9:0x170,_0x35aa9b:0x3ed,_0x5343db:0x39f,_0x58c9d7:0x3be,_0x3da88a:0x436,_0xad07bd:0x471,_0xd54bf4:0x5c,_0x27c7e2:0x48,_0x5d0200:0x3a,_0x58d620:0x11f,_0x24d2e9:0x413,_0x50b895:0x4ed,_0x25d975:0x316,_0x57175f:0x3b9,_0x12e7e1:0x42f,_0x10c84a:0x36a,_0x4e550d:0x3d2,_0x3201b4:0x1c1,_0x58573a:0x15b,_0x4ed04d:0x24e,_0x1d257e:0x195,_0x13ee53:0x1e8,_0x1c71e6:0x241,_0x53e03d:0x259,_0x3d4518:0xe5,_0xbd56c7:0x148,_0x5c8492:0x52,_0x49f1a8:0x683,_0x3cde8e:0x5b5,_0x432162:0x565,_0x440e9e:0x94,_0x5ddf70:0x14,_0x546221:0xed,_0x489c1b:0x197,_0x3edb51:0x3fd,_0x4bb944:0x41b,_0x1ea81d:0x279,_0x3c8b88:0x23e,_0x2cf0d8:0x15b},_0x16b9e4={_0x3c4461:0xb0},_0x508a28={_0x43aa2e:0x38e,_0x2a22ff:0x1c3,_0x4f2d6f:0x140};if(_0xc09e58['subarray'](0x0,0x8)[_0x2c232e(_0x130a9a._0x50db6d,_0x130a9a._0x143f04,_0x130a9a._0x146034,0x166)](PNG_SIGNATURE))return _0x3bf9cf(_0x130a9a._0x32b1f3,_0x130a9a._0x2df0dc,_0x130a9a._0x2de2ef,0x55a);function _0x2c232e(_0x59bf4c,_0x200708,_0x3b28a6,_0x3db99b){return _0x120580(_0x3b28a6- -_0x508a28._0x43aa2e,_0x3db99b,_0x3b28a6-_0x508a28._0x2a22ff,_0x3db99b-_0x508a28._0x4f2d6f);}if(_0xc09e58[0x0]===0xff&&_0xc09e58[0x1]===0xd8&&_0xc09e58[0x2]===0xff)return _0x3bf9cf(0x400,0x269,0x2ae,0x3ac);const _0x1e4e52=_0xc09e58[_0x3bf9cf(_0x130a9a._0x365598,_0x130a9a._0x20b116,0x27e,0x3be)](0x0,0x6)[_0x3bf9cf(_0x130a9a._0x2b4719,_0x130a9a._0x3f49d1,_0x130a9a._0x1b1196,0x495)](_0x2c232e(_0x130a9a._0x3a9e59,_0x130a9a._0x38e2f3,_0x130a9a._0x5ed0ba,0x38));if(_0x1e4e52===_0x2c232e(_0x130a9a._0x9e395b,0x3d,_0x130a9a._0x518eaa,_0x130a9a._0x222ae9)||_0x1e4e52==='GIF89a')return'image/gif';if(_0xc09e58[_0x3bf9cf(_0x130a9a._0x35aa9b,0x3c1,_0x130a9a._0x5343db,_0x130a9a._0x58c9d7)](0x0,0x4)['toString'](_0x3bf9cf(0x4ff,_0x130a9a._0x3da88a,_0x130a9a._0xad07bd,0x3b9))===_0x3bf9cf(0x345,0x47e,0x27d,0x398)&&_0xc09e58[_0x2c232e(0x3a,-_0x130a9a._0xd54bf4,0x48,-_0x130a9a._0x27c7e2)](0x8,0xc)[_0x2c232e(0x10b,_0x130a9a._0x5d0200,_0x130a9a._0x58d620,0x6a)](_0x3bf9cf(_0x130a9a._0x24d2e9,_0x130a9a._0x50b895,_0x130a9a._0x25d975,_0x130a9a._0x57175f))===_0x3bf9cf(_0x130a9a._0x12e7e1,0x444,_0x130a9a._0x10c84a,_0x130a9a._0x4e550d))return _0x2c232e(_0x130a9a._0x3201b4,0x156,_0x130a9a._0x58573a,_0x130a9a._0x4ed04d);const _0x4364e2=_0x358d0a[_0x2c232e(_0x130a9a._0x1d257e,_0x130a9a._0x13ee53,_0x130a9a._0x1c71e6,_0x130a9a._0x53e03d)](_0x15f2b0)[_0x2c232e(0x248,_0x130a9a._0x3d4518,_0x130a9a._0xbd56c7,0x83)]();if(_0x4364e2===_0x2c232e(0x103,0x171,_0x130a9a._0x5c8492,0x137))return'image/png';if(_0x4364e2===_0x3bf9cf(_0x130a9a._0x49f1a8,0x4b2,0x498,0x573)||_0x4364e2===_0x3bf9cf(0x43b,0x659,_0x130a9a._0x3cde8e,_0x130a9a._0x432162))return _0x2c232e(_0x130a9a._0x440e9e,0x47,0x36,-0x4a);if(_0x4364e2===_0x2c232e(0xc4,_0x130a9a._0x5ddf70,_0x130a9a._0x546221,_0x130a9a._0x489c1b))return _0x3bf9cf(0x409,0x4ad,_0x130a9a._0x3edb51,_0x130a9a._0x4bb944);function _0x3bf9cf(_0x4b1841,_0x3a8c52,_0x3cb9aa,_0x25818c){return _0x120580(_0x25818c- -0x18,_0x3a8c52,_0x3cb9aa-_0x16b9e4._0x3c4461,_0x25818c-0x51);}if(_0x4364e2===_0x2c232e(0x13a,0x1bf,0x154,_0x130a9a._0x1ea81d))return _0x2c232e(_0x130a9a._0x3c8b88,0xed,_0x130a9a._0x2cf0d8,0x285);return void 0x0;}function normalizeDetail(_0x3bf82b){const _0x3bbb9f={_0x231c99:0x21d,_0x399e78:0x163,_0x465dbf:0x2bb,_0x41b902:0x66,_0x3ff8ae:0x2a,_0x372d10:0x5a,_0x6e5caa:0x4e,_0x5baa15:0x47},_0x28b8ed={_0x43d504:0x38c};if(_0x3bf82b===void 0x0)return void 0x0;const _0x4e8a38=_0x3bf82b[_0x22455c(-0x17b,-_0x3bbb9f._0x231c99,-_0x3bbb9f._0x399e78,-_0x3bbb9f._0x465dbf)]()['toLowerCase']();function _0x3089e3(_0x3269be,_0xecc513,_0x539d7a,_0x4a8aaa){return _0x43e84c(_0x3269be-0x125,_0x4a8aaa,_0x539d7a-0x1b9,_0x3269be- -_0x28b8ed._0x43d504);}if(!SUPPORTED_DETAILS[_0x22455c(-_0x3bbb9f._0x41b902,-_0x3bbb9f._0x3ff8ae,0x34,_0x3bbb9f._0x372d10)](_0x4e8a38))throw new ToolExecutionError(_0x3089e3(-0x75,-0x1af,_0x3bbb9f._0x6e5caa,_0x3bbb9f._0x5baa15)+_0x3bf82b,{'detail':_0x3bf82b});function _0x22455c(_0x1278a3,_0x671959,_0x5e1c0d,_0x4fb520){return _0x43e84c(_0x1278a3-0x1a9,_0x4fb520,_0x5e1c0d-0x122,_0x1278a3- -0x4d6);}return _0x4e8a38;}function createViewFileTool(_0x1d5f6c={}){const _0x7e5da1={_0x48a288:0x505,_0x586f0b:0x75e,_0x570574:0x79e,_0x2f5042:0x4c3,_0x44366b:0x458,_0x227ff0:0x44b,_0x1ceef7:0x5be,_0x4fcc25:0x79c,_0x5ccdb1:0x67f,_0x23e7f4:0x4d3,_0x3a77cf:0x47e,_0x37372a:0x651,_0x132a40:0x4df,_0x2db985:0x7ae,_0x1410bb:0x644,_0x12214f:0x68d,_0x37308f:0x6e0,_0x4b0773:0x57b,_0x1ae08f:0x7d9,_0x20e814:0x6b2,_0x56add6:0x428,_0x1ea7f6:0x421},_0x227a3c={_0x203bc2:0x346,_0x497168:0x5c4,_0x28715c:0x49e,_0x146791:0x437,_0x53e127:0x4d3,_0x2872ec:0x350,_0x453afd:0x306,_0x27606e:0x360,_0x2d4ced:0x4b4,_0x2c5cbc:0x2bb,_0x138a8e:0x273,_0x124aa0:0x4e8,_0x60a71c:0x5e3,_0xb516a2:0x596,_0x58129:0x55f,_0x297f39:0x6f1,_0x511658:0x661,_0xa1fa5b:0x4f3,_0x13d6ec:0x7c7,_0x115cdf:0x6ed,_0x35cc22:0x55f,_0x166685:0x486,_0x4e602d:0x268,_0xf09872:0xfd,_0x367beb:0x81,_0x1059e9:0x253,_0x79c84b:0x1bb,_0x265545:0x668,_0x14ecea:0x69,_0x5e4a5f:0x102,_0x4fb646:0x14d,_0x695fa1:0x109,_0x5a2c82:0x598,_0x12e526:0x10c,_0x4740c6:0x214,_0x392e15:0x4bf,_0x2bcbe1:0x4ba,_0x423d51:0x4d5,_0x4c5434:0x5f8,_0x655e0:0x63b,_0x3a0678:0x5de,_0x1bf78d:0x5ba,_0x46df33:0x54b,_0x3e6b21:0x5a4,_0x47733e:0x5ee,_0x1949ac:0x33,_0x498738:0x1c0,_0x364079:0x92},_0x44d4d8={_0x1625e3:0x92},_0x528114={_0x4356bc:0xc9,_0x404f75:0x262};function _0x32439b(_0x546f19,_0x28f366,_0x401732,_0x2f5b2a){return _0x43e84c(_0x546f19-0x6c,_0x28f366,_0x401732-_0x528114._0x4356bc,_0x2f5b2a-_0x528114._0x404f75);}function _0x5a9214(_0x3038d7,_0x4ccbe4,_0x1a0624,_0x2d4d93){return _0x120580(_0x2d4d93-_0x44d4d8._0x1625e3,_0x4ccbe4,_0x1a0624-0x65,_0x2d4d93-0x74);}const _0x1c7a38=_0x358d0a[_0x5a9214(0x5f2,0x470,_0x7e5da1._0x48a288,0x4bb)](_0x1d5f6c[_0x32439b(0x5df,_0x7e5da1._0x586f0b,_0x7e5da1._0x570574,0x6c9)]??process[_0x5a9214(0x5f4,_0x7e5da1._0x2f5042,0x570,0x4b1)]()),_0x3b0750=(_0x1d5f6c[_0x5a9214(_0x7e5da1._0x44366b,0x415,0x30c,_0x7e5da1._0x227ff0)]??[])[_0x5a9214(_0x7e5da1._0x1ceef7,_0x7e5da1._0x4fcc25,0x744,_0x7e5da1._0x5ccdb1)](_0x593eb0=>_0x358d0a[_0x5a9214(0x518,0x5e9,0x601,0x4bb)](_0x593eb0)),_0x2c3057=_0x1d5f6c['maxBytes']??DEFAULT_MAX_BYTES,_0x556a4f=_0x1d5f6c[_0x5a9214(0x66b,0x4c4,_0x7e5da1._0x23e7f4,0x590)]??_0x5a9214(_0x7e5da1._0x3a77cf,_0x7e5da1._0x37372a,_0x7e5da1._0x132a40,0x52c);return defineTool({'name':_0x556a4f,'description':_0x32439b(0x6b1,0x86c,0x67c,_0x7e5da1._0x2db985),'inputSchema':{'type':_0x5a9214(0x6c4,_0x7e5da1._0x1410bb,0x664,_0x7e5da1._0x12214f),'properties':{'path':{'type':_0x32439b(_0x7e5da1._0x37308f,_0x7e5da1._0x4b0773,_0x7e5da1._0x1ae08f,_0x7e5da1._0x20e814)},'detail':{'type':'string'}},'required':[_0x5a9214(_0x7e5da1._0x56add6,_0x7e5da1._0x1ea7f6,0x38e,0x434)]},async *'execute'(_0xe998a9){const _0xb742de={_0x12a769:0xf3},_0x33452a=resolveAllowedPath(_0x1c7a38,_0x3b0750,_0xe998a9[_0x3515bd(_0x227a3c._0x203bc2,0x52f,_0x227a3c._0x497168,0x486)]);await assertWorkspaceFile(_0x33452a);const _0xf72158=await _0x7ae06e(_0x33452a);function _0x809c59(_0x591598,_0x3f9ada,_0x1cf1ef,_0x420131){return _0x5a9214(_0x591598-0x6b,_0x3f9ada,_0x1cf1ef-_0xb742de._0x12a769,_0x1cf1ef- -0x648);}if(_0xf72158[_0x3515bd(_0x227a3c._0x28715c,0x4aa,0x613,0x5b0)]>_0x2c3057)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0xe998a9[_0x3515bd(0x575,_0x227a3c._0x146791,_0x227a3c._0x53e127,0x486)],{'path':_0xe998a9[_0x809c59(-_0x227a3c._0x2872ec,-_0x227a3c._0x453afd,-0x214,-0x255)],'maxBytes':_0x2c3057,'size':_0xf72158['size']});const _0x36fb4e=await _0x476dfb(_0x33452a),_0x5909c4=detectImageMediaType(_0x36fb4e,_0x33452a);if(!_0x5909c4)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0xe998a9[_0x3515bd(_0x227a3c._0x27606e,0x470,_0x227a3c._0x2d4ced,0x486)],{'path':_0xe998a9[_0x809c59(-_0x227a3c._0x2c5cbc,-_0x227a3c._0x138a8e,-0x214,-0x2f3)],'supported':[_0x3515bd(_0x227a3c._0x124aa0,_0x227a3c._0x60a71c,_0x227a3c._0xb516a2,_0x227a3c._0x58129),_0x3515bd(0x6ea,_0x227a3c._0x297f39,0x6bc,_0x227a3c._0x511658),'.jpg','.png',_0x3515bd(0x558,0x481,_0x227a3c._0xa1fa5b,0x5c6)]});const _0xb5ad0d=normalizeDetail(_0xe998a9[_0x3515bd(_0x227a3c._0x13d6ec,0x686,0x64b,_0x227a3c._0x115cdf)]),_0x1ddac5=['Viewed\x20image\x20file:\x20'+_0xe998a9[_0x3515bd(_0x227a3c._0x35cc22,0x553,0x584,_0x227a3c._0x166685)],_0x809c59(-_0x227a3c._0x4e602d,-_0x227a3c._0xf09872,-0x191,-_0x227a3c._0x367beb)+_0x5909c4,_0x809c59(-_0x227a3c._0x1059e9,-0x138,-_0x227a3c._0x79c84b,-0x1da)+_0xf72158['size']+'\x20bytes'][_0x3515bd(0x61d,0x70c,0x710,0x664)](_0xb5ad0d?['Detail:\x20'+_0xb5ad0d]:[])[_0x3515bd(0x529,_0x227a3c._0x265545,0x575,0x5ff)]('\x0a');function _0x3515bd(_0x20dd80,_0x17ab01,_0x4d9d24,_0x443a78){return _0x32439b(_0x20dd80-0x0,_0x17ab01,_0x4d9d24-0x15d,_0x443a78- -0xda);}const _0x558543=[{'type':'image','source':{'type':_0x809c59(-_0x227a3c._0x14ecea,-0x37,-_0x227a3c._0x5e4a5f,-0x165),'media_type':_0x5909c4,'data':_0x36fb4e[_0x809c59(-_0x227a3c._0x4fb646,-0x3a,-_0x227a3c._0x695fa1,-0x71)](_0x3515bd(0x523,0x572,0x546,_0x227a3c._0x5a2c82))}},{'type':'text','text':_0x1ddac5}];return yield createToolOutput(_0x1ddac5,{'path':_0xe998a9[_0x809c59(-_0x227a3c._0x12e526,-0x174,-_0x227a3c._0x4740c6,-0x177)],'resolvedPath':_0x33452a,'created':_0xf72158[_0x3515bd(0x41c,_0x227a3c._0x392e15,_0x227a3c._0x2bcbe1,_0x227a3c._0x423d51)][_0x3515bd(_0x227a3c._0x4c5434,0x642,_0x227a3c._0x655e0,0x5a4)](),'modified':_0xf72158[_0x3515bd(0x55f,0x4cd,_0x227a3c._0x3a0678,0x4bf)][_0x3515bd(0x4a2,_0x227a3c._0x1bf78d,_0x227a3c._0x46df33,_0x227a3c._0x3e6b21)](),'size':_0xf72158[_0x3515bd(_0x227a3c._0x124aa0,_0x227a3c._0x3a0678,_0x227a3c._0x47733e,0x5b0)],'mimeType':_0x5909c4,'encoding':_0x809c59(_0x227a3c._0x1949ac,-_0x227a3c._0x498738,-0x102,-_0x227a3c._0x364079),..._0xb5ad0d?{'detail':_0xb5ad0d}:{}},_0x558543),void 0x0;}});}import _0x484bf9 from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x413fc1){const _0x398f6e={_0x37e103:0x16e,_0x42f966:0x5e,_0x76d14d:0x165,_0x30822e:0x25,_0x141a09:0x1f9,_0x11506f:0x1ea,_0x1bdceb:0xf0,_0x3954d0:0x2c4,_0x36a07c:0x155,_0x22e38d:0x202,_0x58e673:0x30d,_0x2ba33f:0x140,_0x486a49:0x281,_0x2a22b1:0x2c6,_0x25750d:0x29f},_0x58cded={_0x4bcd65:0x89,_0x37c8d0:0x51},_0x3b9185={_0x13189c:0x2a4};let _0x5e8325;try{_0x5e8325=new URL(_0x413fc1);}catch{throw new ToolExecutionError(_0x217fe9(_0x398f6e._0x37e103,0x167,0x211,0x23c),{'url':_0x413fc1});}function _0x255740(_0x1a056f,_0x230833,_0x921555,_0x501c24){return _0x120580(_0x1a056f- -_0x3b9185._0x13189c,_0x501c24,_0x921555-0x15b,_0x501c24-0x1a7);}if(_0x5e8325[_0x217fe9(0x25,0xe0,_0x398f6e._0x42f966,0xc5)]!==_0x255740(0x262,0x33a,_0x398f6e._0x76d14d,0x165)&&_0x5e8325[_0x217fe9(_0x398f6e._0x30822e,_0x398f6e._0x141a09,0xc9,0xc5)]!==_0x255740(0x154,0x1aa,_0x398f6e._0x11506f,_0x398f6e._0x1bdceb))throw new ToolExecutionError('Only\x20http://\x20and\x20https://\x20URLs\x20are\x20supported',{'url':_0x413fc1});if(_0x5e8325['username']||_0x5e8325[_0x217fe9(_0x398f6e._0x3954d0,0x25c,_0x398f6e._0x36a07c,0x251)])throw new ToolExecutionError(_0x255740(_0x398f6e._0x22e38d,0x17d,_0x398f6e._0x58e673,0x12c),{'url':_0x5e8325[_0x255740(_0x398f6e._0x2ba33f,0x88,0x24f,_0x398f6e._0x486a49)]+'//'+_0x5e8325[_0x255740(0x1ae,_0x398f6e._0x2a22b1,_0x398f6e._0x25750d,0x2de)]+_0x5e8325['pathname']});function _0x217fe9(_0x4bbdac,_0x4b9a01,_0x3cdef6,_0x43a2ee){return _0x43e84c(_0x4bbdac-_0x58cded._0x4bcd65,_0x4bbdac,_0x3cdef6-_0x58cded._0x37c8d0,_0x43a2ee- -0x27b);}return _0x5e8325;}function createTimeoutSignal(_0x18aca5,_0x578b3d){const _0x22141e={_0x3ddb82:0x2,_0x5edb9e:0x4d,_0x35a9d1:0xcd,_0x585935:0x14f,_0x330676:0x565,_0x595af5:0x6d,_0x17193d:0x142,_0x36bab4:0x85,_0x27341b:0xd3,_0x720436:0x5d4,_0x136ac0:0x5eb,_0xbe934a:0x4dc,_0x3cab0a:0x5f4},_0x1c034f={_0x542a56:0x207,_0x40d97e:0x4d,_0x5a0429:0x153,_0x16cfd1:0x133,_0x33cb92:0x21b,_0x32e6ad:0x1cb},_0x224c2a=new AbortController();function _0x50380c(_0x4369ee,_0x3edb40,_0x183003,_0x5cce61){return _0x43e84c(_0x4369ee-0x52,_0x5cce61,_0x183003-0x106,_0x4369ee- -0x3e0);}const _0x2ef839=setTimeout(()=>_0x224c2a[_0x50380c(-0x6d,0xc3,-0xae,-0x11e)](new Error('Fetch\x20timed\x20out')),_0x578b3d),_0x124b9a=()=>_0x224c2a[_0x55c0b2(0x470,0x3d7,0x2a0,0x4d7)](_0x18aca5[_0x55c0b2(0x652,0x511,0x583,0x425)]);function _0x55c0b2(_0x4e159e,_0x58d190,_0x1d0f41,_0x17643b){return _0x43e84c(_0x4e159e-0xc6,_0x17643b,_0x1d0f41-0x129,_0x58d190-0x64);}return _0x18aca5['aborted']?_0x224c2a[_0x50380c(-0x6d,-_0x22141e._0x3ddb82,_0x22141e._0x5edb9e,-0x152)](_0x18aca5[_0x50380c(_0x22141e._0x35a9d1,0x178,0x11e,_0x22141e._0x585935)]):_0x18aca5[_0x55c0b2(_0x22141e._0x330676,0x48b,0x39b,0x565)](_0x50380c(-_0x22141e._0x595af5,-_0x22141e._0x17193d,-_0x22141e._0x36bab4,_0x22141e._0x27341b),_0x124b9a,{'once':!![]}),{'signal':_0x224c2a[_0x55c0b2(_0x22141e._0x720436,_0x22141e._0x136ac0,_0x22141e._0xbe934a,_0x22141e._0x3cab0a)],'cleanup':()=>{const _0x42e7de={_0x1cfd2a:0x188,_0xd6fe5f:0x1b8};function _0x316a88(_0x4092b4,_0x599c56,_0x1a8dbe,_0x185efe){return _0x50380c(_0x1a8dbe-_0x42e7de._0x1cfd2a,_0x599c56-_0x42e7de._0xd6fe5f,_0x1a8dbe-0x108,_0x4092b4);}function _0x7e79f8(_0x4d7597,_0x41f904,_0x8a0307,_0x1b47da){return _0x55c0b2(_0x4d7597-0x1b7,_0x1b47da- -0x5a2,_0x8a0307-0x160,_0x4d7597);}clearTimeout(_0x2ef839),_0x18aca5[_0x7e79f8(-_0x1c034f._0x542a56,-_0x1c034f._0x40d97e,-_0x1c034f._0x5a0429,-0x157)](_0x7e79f8(-0x14c,-_0x1c034f._0x16cfd1,-_0x1c034f._0x33cb92,-_0x1c034f._0x32e6ad),_0x124b9a);}};}function createWebFetchTool(_0x1133dd={}){const _0x721c4e={_0x1257c0:0x525,_0x32bd5f:0x56e,_0x29ff3a:0x4c9,_0x51a927:0x11a,_0x1362a9:0xd0,_0x1d3d3b:0x1fd,_0x53c139:0x39,_0x44428c:0x10,_0x187f5c:0x102,_0x4adf8d:0x7,_0x385ed3:0x24,_0x15b41c:0x5b5,_0x5a058c:0x5a4,_0xe18a18:0x4ce,_0x56cc96:0x609,_0x36ac3d:0x56c,_0x29a65c:0x519,_0xd2f3a6:0x63b,_0x2862f3:0x55e,_0x2c93bc:0xed,_0x32c10e:0x1a7,_0x20027d:0x1bf,_0x1d7648:0x123,_0x2ff62c:0x50f,_0x1c0616:0x504,_0x6d105a:0x156,_0xefb322:0xe4,_0x1b7add:0x17a,_0x1582b5:0x70,_0x38e5ad:0xe,_0x18b8f3:0xd9,_0x56ea87:0x122,_0x153c4b:0x54d,_0x6d8014:0x67e,_0x105d0a:0x5b4},_0x404f82={_0x290b79:0x405,_0x13c5d6:0x3d3,_0x294b83:0x3a3,_0x4b61df:0x252,_0x345ae0:0x522,_0x2ddb1d:0x364,_0x1a0b1e:0x3c1,_0x5d05a8:0x52c,_0x17eefe:0x2ff,_0x288233:0x2a4,_0x3e410e:0x1bf,_0x271923:0x167,_0x3d3866:0x296,_0x25941e:0x2d2,_0x192eb7:0x3a4,_0x3e483b:0x3e3,_0x17c385:0x2a2,_0x4aa4de:0x475,_0x223739:0x313,_0x581928:0x3e2,_0x5ad1f0:0x436,_0x46a183:0x392,_0x362eaa:0x365,_0x34c583:0x3ff,_0x27229b:0x2b3,_0x2e46d9:0x3df,_0x363434:0x256,_0x4f7c0a:0x35e,_0x39e851:0x367,_0xac9e0b:0x264,_0x3a681c:0x2ce,_0x2fc11e:0x2e9,_0x35c675:0x286,_0x96bb6b:0x469,_0x5423aa:0x2d7,_0x2eda9d:0x314,_0x485792:0x2dd,_0x10c3ee:0x22a,_0x4332dd:0x41b,_0x7d6512:0x3fb,_0x583553:0x52b,_0x415284:0x3a6,_0x227297:0x378,_0x21510e:0x3ea},_0x8c9c90={_0x378491:0xed,_0xc57b13:0x188},_0x5cff0c={_0x177357:0x1aa},_0x555912=_0x1133dd[_0xd3d167(_0x721c4e._0x1257c0,_0x721c4e._0x32bd5f,0x3c9,_0x721c4e._0x29ff3a)]??_0x419e77(-0xc9,-_0x721c4e._0x51a927,-_0x721c4e._0x1362a9,-_0x721c4e._0x1d3d3b),_0x3b76b7=_0x1133dd[_0x419e77(0x7f,_0x721c4e._0x53c139,-0xa7,-_0x721c4e._0x44428c)]??DEFAULT_TIMEOUT_MS2,_0x5799cf=new _0x484bf9({'headingStyle':_0x419e77(-_0x721c4e._0x187f5c,-_0x721c4e._0x4adf8d,_0x721c4e._0x385ed3,_0x721c4e._0x4adf8d),'codeBlockStyle':_0xd3d167(_0x721c4e._0x15b41c,_0x721c4e._0x5a058c,0x41b,_0x721c4e._0xe18a18),'bulletListMarker':'-'});_0x5799cf[_0xd3d167(_0x721c4e._0x56cc96,0x4ed,_0x721c4e._0x36ac3d,_0x721c4e._0x29a65c)](['script',_0xd3d167(0x56e,_0x721c4e._0xd2f3a6,0x4de,_0x721c4e._0x2862f3),_0x419e77(-_0x721c4e._0x2c93bc,-_0x721c4e._0x32c10e,-_0x721c4e._0x20027d,-_0x721c4e._0x1d7648),_0xd3d167(0x6cc,_0x721c4e._0x2ff62c,_0x721c4e._0x1c0616,0x594),'nav','footer',_0x419e77(-0x28e,-0x206,-0x123,-_0x721c4e._0x6d105a),_0xd3d167(0x3df,0x428,0x631,0x515)]);function _0x419e77(_0x16ed02,_0x2b31ea,_0x71b375,_0x4e0d77){return _0x43e84c(_0x16ed02-_0x5cff0c._0x177357,_0x16ed02,_0x71b375-0x128,_0x4e0d77- -0x529);}function _0xd3d167(_0x27d771,_0x4423fd,_0x5319ba,_0x48ce37){return _0x43e84c(_0x27d771-_0x8c9c90._0x378491,_0x5319ba,_0x5319ba-_0x8c9c90._0xc57b13,_0x48ce37-0x6f);}return defineTool({'name':_0x555912,'description':_0x419e77(-0x6b,-_0x721c4e._0xefb322,0x48,-0x15),'inputSchema':{'type':'object','properties':{'description':{'type':_0x419e77(-_0x721c4e._0x1b7add,-_0x721c4e._0x1582b5,_0x721c4e._0x38e5ad,-_0x721c4e._0x18b8f3)},'url':{'type':_0x419e77(0x3c,-0x197,-_0x721c4e._0x56ea87,-0xd9)}},'required':[_0xd3d167(_0x721c4e._0x153c4b,_0x721c4e._0x6d8014,0x489,_0x721c4e._0x105d0a)]},async *'execute'(_0x2215dc,_0x22b422){const _0x315803={_0x44db32:0x7a,_0x2e5dee:0x1af},_0x26f25c={_0x3b3563:0x173},_0x9cb425=assertFetchableUrl(_0x2215dc[_0x1c7421(_0x404f82._0x290b79,0x4fe,_0x404f82._0x13c5d6,_0x404f82._0x294b83)])[_0x1c7421(0x2c9,0x2bb,0x295,_0x404f82._0x4b61df)]();if(_0x22b422[_0x2d1837(0x4be,0x4c9,0x4e4,_0x404f82._0x345ae0)][_0x1c7421(_0x404f82._0x2ddb1d,0x3fa,_0x404f82._0x1a0b1e,0x492)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x9cb425});const _0x571919=createTimeoutSignal(_0x22b422[_0x2d1837(0x5c2,0x4c9,0x5c0,_0x404f82._0x5d05a8)],_0x3b76b7);let _0x5e47f8='';function _0x2d1837(_0x4caf11,_0x3969e1,_0x87020f,_0x412a2a){return _0x419e77(_0x4caf11,_0x3969e1-0xfd,_0x87020f-_0x26f25c._0x3b3563,_0x3969e1-0x46b);}let _0x4c53f3=0x0,_0x1dcf91;try{const _0x4a4670=await fetch(_0x9cb425,{'headers':{'User-Agent':USER_AGENT},'signal':_0x571919['signal']});if(!_0x4a4670['ok'])throw new ToolExecutionError(_0x2d1837(_0x404f82._0x17eefe,_0x404f82._0x288233,_0x404f82._0x3e410e,_0x404f82._0x271923)+_0x4a4670['status']+'\x20'+_0x4a4670[_0x2d1837(_0x404f82._0x3d3866,_0x404f82._0x25941e,_0x404f82._0x192eb7,0x23a)],{'url':_0x9cb425,'statusCode':_0x4a4670[_0x2d1837(0x3dc,_0x404f82._0x3e483b,_0x404f82._0x17c385,_0x404f82._0x4aa4de)]});_0x5e47f8=_0x4a4670[_0x1c7421(0x3d1,_0x404f82._0x223739,0x386,_0x404f82._0x581928)][_0x1c7421(_0x404f82._0x5ad1f0,0x31f,0x342,0x309)](_0x1c7421(_0x404f82._0x46a183,0x388,_0x404f82._0x362eaa,_0x404f82._0x34c583))??'',_0x4c53f3=_0x4a4670[_0x2d1837(0x349,0x3e3,0x433,0x4ad)],_0x1dcf91=await _0x4a4670[_0x2d1837(0x2c6,0x2ff,_0x404f82._0x27229b,_0x404f82._0x2e46d9)]();}catch(_0x184d7e){if(_0x184d7e instanceof ToolExecutionError)throw _0x184d7e;const _0x59f422=_0x184d7e instanceof Error?_0x184d7e['message']:String(_0x184d7e);throw new ToolExecutionError(_0x59f422,{'url':_0x9cb425});}finally{_0x571919['cleanup']();}const _0x46b820=new Date()[_0x2d1837(_0x404f82._0x363434,_0x404f82._0x4f7c0a,_0x404f82._0x39e851,_0x404f82._0xac9e0b)]();function _0x1c7421(_0x34582e,_0x546400,_0x2ef747,_0x815042){return _0xd3d167(_0x34582e-_0x315803._0x44db32,_0x546400-0xc4,_0x2ef747,_0x34582e- -_0x315803._0x2e5dee);}let _0x2c77e7,_0x38a3c5;if(_0x5e47f8[_0x2d1837(0x3dd,0x310,0x22c,_0x404f82._0x3a681c)](_0x2d1837(0x3b7,_0x404f82._0x2fc11e,0x247,_0x404f82._0x35c675)))_0x2c77e7=_0x1c7421(0x3f1,0x3ee,0x421,_0x404f82._0x96bb6b)+_0x1dcf91+'\x0a```',_0x38a3c5=_0x2d1837(_0x404f82._0x1a0b1e,0x349,0x2a4,0x36b);else _0x5e47f8[_0x1c7421(0x28e,0x1bc,0x20b,_0x404f82._0x5423aa)](_0x1c7421(_0x404f82._0x2eda9d,_0x404f82._0x485792,_0x404f82._0x10c3ee,0x3eb))?(_0x2c77e7=_0x5799cf[_0x1c7421(_0x404f82._0x34c583,_0x404f82._0x4332dd,_0x404f82._0x7d6512,_0x404f82._0x583553)](_0x1dcf91),_0x38a3c5=_0x2d1837(0x4b3,_0x404f82._0x415284,0x43e,0x298)):(_0x2c77e7=_0x1dcf91,_0x38a3c5=_0x1c7421(0x27d,0x1c8,0x3a8,0x190));return yield createToolOutput(_0x2c77e7,{'url':_0x9cb425,'contentType':_0x5e47f8,'statusCode':_0x4c53f3,'format':_0x38a3c5,'size':_0x1dcf91[_0x2d1837(0x468,0x415,_0x404f82._0x227297,_0x404f82._0x21510e)],'fetchedAt':_0x46b820}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x120580(0x522,0x57e,0x457,0x622);function normalizeUrl(_0x1921df){const _0x5a8adf={_0x17be99:0x3,_0x299353:0x70,_0x5cacd5:0x4d1,_0x3b5d4f:0x425,_0x1721a4:0x54b,_0x49ee1a:0x173,_0x5e7b3f:0x70,_0x4707ef:0x573,_0x58b4ea:0x4f0,_0x2a3e7c:0x51d,_0x4948be:0x50b},_0x14534a={_0x56e457:0x4d1};function _0x1ad6b9(_0x27fce4,_0x5e9a9b,_0x2c68fd,_0x3732d4){return _0x120580(_0x2c68fd-0x70,_0x27fce4,_0x2c68fd-0x1b3,_0x3732d4-0x1);}function _0x3c7675(_0x5b8af2,_0x360d56,_0x76aa1d,_0x152dea){return _0x120580(_0x152dea- -_0x14534a._0x56e457,_0x360d56,_0x76aa1d-0x12f,_0x152dea-0x101);}try{const _0x5be3ba=new URL(_0x1921df);for(const _0x44de28 of[_0x3c7675(-_0x5a8adf._0x17be99,_0x5a8adf._0x299353,0x1a3,0x9e),'utm_medium','utm_campaign',_0x1ad6b9(0x5be,0x4f6,0x557,_0x5a8adf._0x5cacd5),_0x1ad6b9(0x525,0x2ed,_0x5a8adf._0x3b5d4f,_0x5a8adf._0x1721a4),'gclid','fbclid','mc_cid','mc_eid']){_0x5be3ba['searchParams'][_0x3c7675(-0x51,_0x5a8adf._0x49ee1a,0xb3,_0x5a8adf._0x5e7b3f)](_0x44de28);}return _0x5be3ba[_0x1ad6b9(_0x5a8adf._0x4707ef,_0x5a8adf._0x58b4ea,_0x5a8adf._0x2a3e7c,_0x5a8adf._0x4948be)]();}catch{return _0x1921df;}}function cseDateRestrict(_0x10b779){const _0x14913d={_0x4a4bd1:0x222,_0x17665b:0x232,_0x17ee96:0x1b2,_0x13cd44:0x430,_0x48abf9:0x100},_0x1aa049={_0x5a8edc:0x5d8,_0x42dc9f:0x1d5,_0x36f416:0x1e0},_0x2d4205={_0x1efc97:0x37};if(_0x10b779<=0x0)return void 0x0;function _0x1853c6(_0x2a51c8,_0xd9bb44,_0x4d15aa,_0x59771a){return _0x43e84c(_0x2a51c8-0xba,_0x2a51c8,_0x4d15aa-0x63,_0x59771a-_0x2d4205._0x1efc97);}if(_0x10b779<=0x1e)return'd'+Math[_0x1853c6(_0x14913d._0x4a4bd1,_0x14913d._0x17665b,0x357,0x352)](0x1,Math[_0x36cdd8(-0x13a,-0x1eb,-0xcc,-_0x14913d._0x17ee96)](_0x10b779));if(_0x10b779<=0x16d)return'm'+Math[_0x1853c6(0x340,_0x14913d._0x13cd44,0x416,0x46b)](_0x10b779/0x1e);function _0x36cdd8(_0x3d4638,_0x7ed8d,_0x2a07c5,_0x36d6b6){return _0x120580(_0x2a07c5- -_0x1aa049._0x5a8edc,_0x3d4638,_0x2a07c5-_0x1aa049._0x42dc9f,_0x36d6b6-_0x1aa049._0x36f416);}return'y'+Math[_0x36cdd8(-0x8f,-0x1a5,-_0x14913d._0x48abf9,-0xe0)](_0x10b779/0x16d);}function addSiteFilters(_0x5cdda9,_0x5ce99f){const _0x219f04={_0x506878:0x18a,_0x3a24e9:0x1cd,_0x5b297b:0x146,_0x114e50:0x1c0,_0x1bf0c3:0x96,_0x30b405:0x101,_0x19d9d9:0x25f,_0x5240d3:0x1c1,_0x4736cb:0x45,_0x26dc2c:0xe},_0x13bb5c={_0x4ebb86:0x177},_0x25e2ca={_0x2fd36a:0x495,_0x112d8e:0x95,_0x451759:0xe4};function _0x490a3a(_0x1b761c,_0x9b86cc,_0x5f239f,_0x1aa8f4){return _0x120580(_0x5f239f- -_0x25e2ca._0x2fd36a,_0x9b86cc,_0x5f239f-_0x25e2ca._0x112d8e,_0x1aa8f4-_0x25e2ca._0x451759);}if(_0x5ce99f[_0x4eede6(_0x219f04._0x506878,_0x219f04._0x3a24e9,0x292,_0x219f04._0x5b297b)]===0x0)return _0x5cdda9[_0x490a3a(-_0x219f04._0x114e50,-0x144,-_0x219f04._0x1bf0c3,-0x60)]();function _0x4eede6(_0x519312,_0x244817,_0x4c886e,_0x3b88f3){return _0x43e84c(_0x519312-0xa1,_0x519312,_0x4c886e-_0x13bb5c._0x4ebb86,_0x244817- -0x306);}return(_0x5cdda9+'\x20('+_0x5ce99f[_0x490a3a(0xe7,_0x219f04._0x30b405,0x158,_0x219f04._0x19d9d9)](_0x17619b=>_0x490a3a(0x87,-0xc7,0x31,-0x7c)+_0x17619b)['join']('\x20OR\x20')+')')[_0x490a3a(-_0x219f04._0x5240d3,_0x219f04._0x4736cb,-0x96,-_0x219f04._0x26dc2c)]();}function normalizeType(_0xdff395){const _0x103851={_0x2193bf:0x28b},_0x374420={_0x1748df:0x137,_0x3de383:0x3a,_0x2d2023:0x2ae};function _0x4fbbcd(_0x3570a5,_0x4ab58d,_0x482bfe,_0x5a9f94){return _0x43e84c(_0x3570a5-_0x374420._0x1748df,_0x482bfe,_0x482bfe-_0x374420._0x3de383,_0x5a9f94- -_0x374420._0x2d2023);}return _0xdff395==='images'?'images':_0x4fbbcd(_0x103851._0x2193bf,0x24f,0x1ad,0x27c);}async function fetchJson(_0x55f209,_0x5ae2c1){const _0x46d173={_0x506a42:0x5c0,_0x511370:0x4cc,_0x12f250:0x501,_0x583a45:0x65a,_0x5988e6:0x53,_0x53d9d0:0xd,_0x1b7f31:0x4b,_0x23bff8:0xd4,_0x5eec76:0xe9,_0x56f1fc:0x158,_0x3e22d7:0x149,_0x37e441:0x56,_0x2d4ac2:0x97,_0x4ce383:0xf1,_0x42c2e0:0x135,_0x293d15:0x616,_0x3d2634:0x63d,_0x233788:0x71,_0x188370:0x116},_0xe7f01b={_0x331a37:0x3c,_0x1a99e6:0x177},_0x11d672={_0x4d543f:0x131,_0x328b44:0x48,_0x8862f6:0x44b},_0x10b3fd=await fetch(_0x55f209,{'headers':{'User-Agent':USER_AGENT2,'Accept':'application/json'},'signal':_0x5ae2c1});function _0x1acc0b(_0xd8a070,_0x30dd55,_0x498e25,_0x13d373){return _0x43e84c(_0xd8a070-_0x11d672._0x4d543f,_0x13d373,_0x498e25-_0x11d672._0x328b44,_0x498e25- -_0x11d672._0x8862f6);}if(!_0x10b3fd['ok']){await _0x10b3fd[_0x2e153f(_0x46d173._0x506a42,0x543,_0x46d173._0x511370,_0x46d173._0x12f250)]?.[_0x2e153f(0x5fb,0x726,_0x46d173._0x583a45,0x783)]()[_0x1acc0b(_0x46d173._0x5988e6,-_0x46d173._0x53d9d0,_0x46d173._0x1b7f31,-_0x46d173._0x23bff8)](()=>void 0x0);throw new ToolExecutionError(_0x1acc0b(-0x217,-0x127,-_0x46d173._0x5eec76,-_0x46d173._0x56f1fc)+_0x10b3fd[_0x1acc0b(_0x46d173._0x3e22d7,0x82,_0x46d173._0x37e441,-_0x46d173._0x2d4ac2)]+'\x20'+_0x10b3fd[_0x1acc0b(0x53,-_0x46d173._0x4ce383,-0xbb,-_0x46d173._0x42c2e0)],{'statusCode':_0x10b3fd[_0x2e153f(0x589,_0x46d173._0x293d15,0x618,_0x46d173._0x3d2634)]});}function _0x2e153f(_0x27693e,_0x49e3af,_0xcf8dc1,_0x3cca56){return _0x43e84c(_0x27693e-_0xe7f01b._0x331a37,_0x3cca56,_0xcf8dc1-0x4e,_0xcf8dc1-_0xe7f01b._0x1a99e6);}return await _0x10b3fd[_0x1acc0b(_0x46d173._0x233788,-0x126,-0x44,-_0x46d173._0x188370)]();}async function hydrateResults(_0x2b6c7c,_0xfa1c19,_0x1f718d){const _0x1dcbf5={_0x30f41b:0x84,_0x199bc3:0x7a,_0x1e1f07:0x37,_0x154683:0x522,_0x3b43e4:0x493,_0x99a4d4:0x555,_0x5cbebf:0x4e3,_0x35dd1b:0x51a,_0x4fdb54:0x47f,_0x403ec4:0x395,_0x3da715:0x47,_0x925432:0x180,_0x52d8f7:0xeb},_0x3f9acc={_0x48b673:0xf8},_0xb19e92={_0x1b03f2:0x40},_0x3a5d24={_0x230223:0x270,_0x34170b:0x25d,_0x1cf6a3:0x134,_0x328ccb:0x2d0,_0x45bfb6:0x201,_0x4d77c5:0x258,_0x443ab1:0x21e,_0xaf455:0x164,_0x29624d:0x112,_0x31d580:0x1d,_0x1e2a31:0x98,_0x2ba352:0x2,_0x3f0dbd:0x2bf,_0x383ca3:0x2d6,_0xfeabf4:0x1fa,_0x458ecd:0x27f,_0x152272:0x2d6,_0x45bc60:0x3e5,_0x16fcd0:0x50c,_0x3b16c1:0x4e0,_0x524ac0:0x3a8,_0x317516:0x2f5,_0x2eb432:0x379,_0x1a81df:0x3bc,_0x23f51d:0x2ad,_0x1b5417:0x2df,_0x14f351:0x595,_0xb1b9f8:0x5fa,_0x5c0732:0x345,_0x2164bd:0x2d6,_0x22d08d:0x3f2,_0x151f17:0x497,_0x2cfd0f:0x393,_0x39576b:0x3e8,_0x1a82ab:0xeb,_0x2bb274:0xa1,_0x4c6c28:0x2d6,_0x3eba08:0x3c7,_0x4f7ce5:0x489,_0x25238f:0x3ba,_0x5f0f82:0x298,_0x1f5c8e:0x15d,_0x3082bd:0x5e9,_0x50a050:0x64f,_0x233ea1:0x60b,_0x46cdf9:0xdd,_0x45afd1:0x1c8,_0x37c269:0x535},_0x10758a=await Promise[_0x2e5575(0x438,0x472,0x367,0x340)](_0x2b6c7c['slice'](0x0,0xa)[_0x476a6a(0x47,_0x1dcbf5._0x30f41b,_0x1dcbf5._0x199bc3,_0x1dcbf5._0x1e1f07)](async _0x727bbb=>{const _0x4a2e14={_0x2cec56:0x197};function _0xba214a(_0x2280e5,_0x2c4687,_0xea1a74,_0x57028b){return _0x2e5575(_0x2280e5,_0x2c4687-0x164,_0x57028b- -0x1bf,_0x57028b-0xd0);}function _0xd44a8a(_0x28560a,_0x409818,_0x1079fe,_0x1c298a){return _0x2e5575(_0x28560a,_0x409818-0x15a,_0x1079fe-0xba,_0x1c298a-_0x4a2e14._0x2cec56);}try{const _0x2738fe=await fetch(_0x727bbb['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0xfa1c19,'Accept':'text/html'},'signal':_0x1f718d});if(!_0x2738fe['ok'])return _0x727bbb;const _0x49f509=await _0x2738fe[_0xba214a(_0x3a5d24._0x230223,0x169,_0x3a5d24._0x34170b,_0x3a5d24._0x1cf6a3)](),_0x2c8bf7=load(_0x49f509),_0x584e11=_0x2c8bf7(_0xd44a8a(0x457,0x286,0x3c8,0x492))[_0xba214a(_0x3a5d24._0x328ccb,0x40f,_0x3a5d24._0x45bfb6,0x2d6)](_0xba214a(_0x3a5d24._0x4d77c5,_0x3a5d24._0x443ab1,0x2f4,0x267))||_0x2c8bf7(_0xba214a(0x206,0x223,_0x3a5d24._0xaf455,0x15d))[_0xba214a(_0x3a5d24._0x29624d,0x1a0,_0x3a5d24._0x31d580,_0x3a5d24._0x1e2a31)]()[_0xba214a(0x1be,_0x3a5d24._0x2ba352,0x1d3,0x134)]()['trim'](),_0x265f18=_0x2c8bf7('meta[name=\x27description\x27]')[_0xba214a(_0x3a5d24._0x3f0dbd,0x1a1,0x3f9,_0x3a5d24._0x383ca3)](_0xba214a(0x16d,0x136,0x2eb,0x267))||_0x2c8bf7(_0xba214a(_0x3a5d24._0xfeabf4,0x2a8,_0x3a5d24._0x458ecd,0x2bb))[_0xba214a(0x3c6,0x2a0,0x3fb,_0x3a5d24._0x152272)](_0xd44a8a(_0x3a5d24._0x45bc60,_0x3a5d24._0x16fcd0,_0x3a5d24._0x3b16c1,0x3fc))||_0x727bbb[_0xd44a8a(_0x3a5d24._0x524ac0,0x420,_0x3a5d24._0x317516,0x268)],_0x352a0a=_0x2c8bf7(_0xba214a(_0x3a5d24._0x2eb432,_0x3a5d24._0x1a81df,_0x3a5d24._0x23f51d,_0x3a5d24._0x1b5417))[_0xd44a8a(0x43f,_0x3a5d24._0x14f351,0x54f,_0x3a5d24._0xb1b9f8)]('content')||_0x2c8bf7('time[datetime]')[_0xba214a(0x23a,0x2de,_0x3a5d24._0x5c0732,_0x3a5d24._0x2164bd)](_0xd44a8a(0x5c3,_0x3a5d24._0x22d08d,_0x3a5d24._0x151f17,0x3eb))||_0x727bbb[_0xd44a8a(0x2f8,0x367,_0x3a5d24._0x2cfd0f,_0x3a5d24._0x39576b)],_0x5dc514=_0x2c8bf7(_0xba214a(0x1fd,_0x3a5d24._0x1a82ab,_0x3a5d24._0x2bb274,0x16c))[_0xba214a(0x1a1,0x1a8,0x3d7,_0x3a5d24._0x4c6c28)](_0xd44a8a(_0x3a5d24._0x3eba08,0x511,_0x3a5d24._0x4f7ce5,_0x3a5d24._0x25238f));return{..._0x727bbb,'title':_0x584e11||_0x727bbb[_0xba214a(0x92,_0x3a5d24._0x5f0f82,0x1ef,_0x3a5d24._0x1f5c8e)],'snippet':_0x265f18,'url':_0x5dc514?normalizeUrl(new URL(_0x5dc514,_0x727bbb[_0xd44a8a(_0x3a5d24._0x3082bd,_0x3a5d24._0x50a050,0x535,_0x3a5d24._0x233ea1)])[_0xba214a(_0x3a5d24._0x46cdf9,_0x3a5d24._0x45afd1,0x24b,0x180)]()):_0x727bbb[_0xd44a8a(0x5c1,0x578,_0x3a5d24._0x37c269,0x50b)],'publishedAt':_0x352a0a};}catch{return _0x727bbb;}}));function _0x476a6a(_0x520bd5,_0x484cb3,_0x3136f8,_0x5cb568){return _0x43e84c(_0x520bd5-_0xb19e92._0x1b03f2,_0x484cb3,_0x3136f8-0x9c,_0x520bd5- -0x502);}const _0x56bd2c=new Map(_0x2b6c7c[_0x2e5575(0x50a,_0x1dcbf5._0x154683,_0x1dcbf5._0x3b43e4,_0x1dcbf5._0x99a4d4)](0x0,0xa)[_0x2e5575(_0x1dcbf5._0x5cbebf,_0x1dcbf5._0x35dd1b,_0x1dcbf5._0x4fdb54,_0x1dcbf5._0x403ec4)]((_0x4cacc5,_0x550cbb)=>[_0x4cacc5[_0x476a6a(0x43,-0x85,0x109,-0x78)],_0x10758a[_0x550cbb]]));function _0x2e5575(_0x3129eb,_0x46dd7a,_0x44b520,_0x104960){return _0x43e84c(_0x3129eb-0x5e,_0x3129eb,_0x44b520-_0x3f9acc._0x48b673,_0x44b520- -0xca);}return _0x2b6c7c[_0x476a6a(_0x1dcbf5._0x3da715,_0x1dcbf5._0x925432,_0x1dcbf5._0x52d8f7,0x40)](_0x158edc=>_0x56bd2c[_0x476a6a(0x74,-0xb4,0xbb,-0x9f)](_0x158edc[_0x2e5575(0x46c,0x372,0x47b,0x38a)])??_0x158edc);}function formatResults(_0x118ef0){const _0x1cbfae={_0x23b3f7:0x3a,_0x44d576:0x101,_0xff3334:0x8},_0x50ac77={_0x226c96:0x64,_0x2c7644:0xf6,_0x28b02a:0x235,_0x31e943:0x22a,_0xdab7fd:0x257,_0x16a502:0x24,_0x3d5bb6:0x2bd,_0xa31d31:0x2cf,_0x488fd2:0x263,_0xca504e:0x159,_0x2243d2:0x4f,_0xdc9aa:0xe1,_0x3c349e:0x6d,_0x1fa715:0x89,_0x272b16:0x86,_0x453c00:0xb3},_0x4fdb9b={_0x526e87:0x52f,_0x553467:0x20},_0x3a97df={_0x474cec:0x11c,_0x2fda51:0x2f0,_0x153111:0xf3},_0x5147e8={_0x50531c:0xa6,_0x22ce4c:0x0},_0x92faa3={_0x534a2a:0x132,_0x4b1b2b:0x188};function _0x4578a9(_0x1b6d6d,_0xba7b11,_0x37c9d3,_0x11d8e4){return _0x43e84c(_0x1b6d6d-_0x92faa3._0x534a2a,_0x11d8e4,_0x37c9d3-_0x92faa3._0x4b1b2b,_0xba7b11- -0x4f6);}if(_0x118ef0[_0x4578a9(-0xb2,-0x23,-_0x1cbfae._0x23b3f7,_0x1cbfae._0x44d576)]===0x0)return _0x4578a9(0xa8,_0x1cbfae._0xff3334,-0xb6,0x12b);function _0x490077(_0x5eaaf3,_0x1ea3dc,_0x4ffb19,_0x2df539){return _0x43e84c(_0x5eaaf3-_0x5147e8._0x50531c,_0x4ffb19,_0x4ffb19-0x149,_0x1ea3dc-_0x5147e8._0x22ce4c);}return _0x118ef0['map'](_0x189f61=>{const _0x30d986=[_0x189f61['source']['rank']+'.\x20'+_0x189f61[_0x16b53b(_0x50ac77._0x226c96,0x226,0x133,_0x50ac77._0x2c7644)],_0x189f61['url']];if(_0x189f61[_0x3261d6(-_0x50ac77._0x28b02a,-0x10e,-_0x50ac77._0x31e943,-_0x50ac77._0xdab7fd)])_0x30d986[_0x3261d6(-0x76,-0x37,_0x50ac77._0x16a502,0x6c)](_0x189f61[_0x3261d6(-_0x50ac77._0x3d5bb6,-_0x50ac77._0xa31d31,-0x22a,-0x2e2)]);function _0x16b53b(_0x38333e,_0x1b6869,_0xcf34cb,_0x441930){return _0x490077(_0x38333e-_0x3a97df._0x474cec,_0x441930- -_0x3a97df._0x2fda51,_0x1b6869,_0x441930-_0x3a97df._0x153111);}function _0x3261d6(_0x50ed42,_0x2c2858,_0x419848,_0x479bb3){return _0x490077(_0x50ed42-0x1f3,_0x419848- -_0x4fdb9b._0x526e87,_0x479bb3,_0x479bb3-_0x4fdb9b._0x553467);}if(_0x189f61[_0x3261d6(-_0x50ac77._0x488fd2,-_0x50ac77._0xca504e,-0x18c,-_0x50ac77._0x2243d2)])_0x30d986[_0x3261d6(-0x4a,-0x48,_0x50ac77._0x16a502,_0x50ac77._0xdc9aa)](_0x3261d6(-_0x50ac77._0x3c349e,0xa3,-0x83,-0xef)+_0x189f61[_0x16b53b(-_0x50ac77._0x1fa715,0xa2,_0x50ac77._0x272b16,_0x50ac77._0x453c00)]);return _0x30d986['join']('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x39e1e2,_0x5590d1,_0x5aa710){const _0x1a8757={_0x1b7fbb:0x90,_0x8a41d4:0x96,_0x4e1112:0x15f,_0x3a186e:0xc4,_0x402b1e:0x50,_0x5ad036:0x42,_0x3ee19f:0x18e,_0x2e6166:0xf3,_0x41eb6c:0x78,_0x2fda1a:0x1a3,_0x188a88:0xd2,_0xaddeb4:0xb3,_0x466293:0x42,_0x42ec66:0xbd,_0x5a4aaa:0xff,_0x4b3a70:0x72,_0x4ee14e:0x70,_0x6915d9:0xa7,_0x1e1a03:0x143,_0x5da2e9:0x162,_0x11bd86:0xa6,_0x18731c:0x24c,_0x7f373e:0x72,_0x36e331:0x5e,_0x3fa750:0x82,_0x503384:0x2c9,_0x287438:0x22,_0x4226c4:0x136,_0x498d76:0xbd,_0x1b27d5:0x1bc,_0x1e0445:0x3c,_0x5e02c1:0xc9,_0x5267a2:0x298,_0x5e5083:0x14,_0x4ae23a:0xe7,_0x547bfb:0x20,_0x4eb003:0x1bd,_0xc11d53:0xf4,_0x28bc7f:0x11b,_0xa18563:0x115,_0x3adc41:0x154,_0x200281:0x10f,_0x3124ce:0x18,_0x59ddbf:0x0,_0x3d14d3:0x47,_0x261476:0xa5,_0x4128d7:0x152,_0x4f7691:0x162,_0x1dc239:0x2a6,_0x31af8a:0x162,_0xee0fbf:0x178,_0x417263:0x13b,_0x1eab31:0x191,_0x5ef3f3:0x188,_0x33bbfc:0x1fa,_0xb652c2:0x26a,_0xefcde8:0x2b7,_0x47ffaf:0x1fa,_0x25ffc4:0xd7,_0x5b9dda:0x70,_0x169d54:0xa8,_0x4601a0:0xad,_0x2e2457:0x9,_0x431c6c:0x17,_0x2ee964:0xb4,_0x2aeda7:0x20,_0xf55a0:0xd0,_0x215fc1:0x65,_0x2d41e6:0x10d,_0x53c098:0x262,_0x13dd23:0x4,_0x4c4d01:0x13f,_0x2d9d1f:0x1f5,_0x159ff4:0x116,_0x389fe3:0x1f4,_0x57184c:0x18,_0x1c090f:0x103,_0x399550:0x132,_0x460901:0xb,_0x57de2c:0xfa,_0x882f9c:0xf5,_0x1211dd:0x1b5,_0x596343:0x190,_0x4986a6:0x141,_0x3ef5e4:0x39,_0x37b2d7:0x23,_0x2de40e:0x97,_0x16c119:0x50,_0x526c4d:0x1e7,_0x2a0a0d:0x23f,_0x293dda:0x20c,_0x8e607c:0x32f,_0x4683b6:0x1f0,_0x4c07c8:0xea,_0x5d27e7:0xc8,_0xc7712b:0xfc,_0xaf5b95:0xe1,_0x7d573a:0x5c,_0x1d8084:0xb2,_0x188319:0x69,_0x599e5d:0x11,_0x13786f:0x2d,_0x9173da:0xa2,_0x631073:0x62,_0x294c8b:0x85,_0x50a4ac:0x11a,_0x3858bc:0x1f2,_0xcb84be:0x12b,_0x331b11:0xc1,_0x31ce69:0x11e,_0x7ed4eb:0xf8,_0x467b1b:0x137,_0x396fb8:0x24,_0x215674:0x1c9,_0x568848:0xf,_0x5351a0:0xcb,_0x308006:0x1ed,_0x50b081:0x155,_0x1058d8:0x12d,_0x579815:0x266,_0x2caae3:0x149,_0xd61e1:0x7a,_0x194aea:0x240,_0x46f9ca:0x1d3},_0x538e23={_0x211528:0x14d,_0x4422b0:0x38a},_0x47cef4={_0x440805:0x13e,_0x376856:0x11a};function _0x1296e6(_0x27b555,_0x4023aa,_0x46b3a1,_0x3097fe){return _0x43e84c(_0x27b555-_0x47cef4._0x440805,_0x3097fe,_0x46b3a1-_0x47cef4._0x376856,_0x27b555- -0x50c);}const _0x4682b1=Math[_0x54fb91(_0x1a8757._0x1b7fbb,-0x14e,-_0x1a8757._0x8a41d4,-0x6f)](0x1,Math[_0x1296e6(-0x9d,-0x74,-_0x1a8757._0x4e1112,-_0x1a8757._0x3a186e)](0x32,_0x5590d1[_0x54fb91(0xb4,0xc8,0x192,_0x1a8757._0x402b1e)]));if(_0x5590d1[_0x54fb91(0x11a,-0x14,0x87,_0x1a8757._0x5ad036)]+_0x4682b1>0x64)throw new ToolExecutionError(_0x1296e6(-_0x1a8757._0x3ee19f,-_0x1a8757._0x2e6166,-_0x1a8757._0x41eb6c,-_0x1a8757._0x2fda1a),{'offset':_0x5590d1[_0x54fb91(-_0x1a8757._0x188a88,_0x1a8757._0xaddeb4,0x17f,_0x1a8757._0x466293)],'count':_0x4682b1,'maxResults':0x64});const _0x269be1=cseDateRestrict(_0x5590d1[_0x54fb91(0xdf,-0x13,0x1f,_0x1a8757._0x42ec66)]),_0x677882=addSiteFilters(_0x5590d1['query'],_0x5590d1['domains']);let _0xdf3b25=0x0;function _0x54fb91(_0x26f8f2,_0x51b637,_0xf0a71,_0x449242){return _0x43e84c(_0x26f8f2-0x1b7,_0x26f8f2,_0xf0a71-_0x538e23._0x211528,_0x449242- -_0x538e23._0x4422b0);}let _0x19249d=_0x5590d1['offset']+0x1;const _0x198bc9=[];while(_0xdf3b25<_0x4682b1){const _0x481c9b=Math[_0x54fb91(0x64,0x87,0xec,0xe5)](0xa,_0x4682b1-_0xdf3b25),_0x19bd47=new URL(_0x54fb91(_0x1a8757._0x5a4aaa,0x1fa,0x58,0xf7));_0x19bd47['searchParams'][_0x1296e6(_0x1a8757._0x4b3a70,_0x1a8757._0x4ee14e,_0x1a8757._0x6915d9,_0x1a8757._0x1e1a03)](_0x1296e6(-0x14e,-0x118,-0x184,-0x131),_0x39e1e2['googleCseKey']),_0x19bd47[_0x1296e6(-_0x1a8757._0x5da2e9,-_0x1a8757._0x11bd86,-_0x1a8757._0x18731c,-0x52)][_0x1296e6(_0x1a8757._0x7f373e,-_0x1a8757._0x36e331,_0x1a8757._0x3fa750,0x45)]('cx',_0x39e1e2[_0x1296e6(-0x1c1,-_0x1a8757._0x503384,-0x23f,-0x1ab)]),_0x19bd47[_0x1296e6(-0x162,-_0x1a8757._0x287438,-_0x1a8757._0x4226c4,-0x126)][_0x54fb91(_0x1a8757._0x498d76,0x207,_0x1a8757._0x1b27d5,0x1f4)]('q',_0x677882),_0x19bd47[_0x54fb91(_0x1a8757._0x1e0445,-0x3a,_0x1a8757._0x5e02c1,0x20)][_0x54fb91(_0x1a8757._0x5267a2,0x1b3,0x1a0,0x1f4)](_0x54fb91(0xfa,0x239,0x82,0x136),String(_0x481c9b)),_0x19bd47[_0x54fb91(_0x1a8757._0x5e5083,-0xac,_0x1a8757._0x4ae23a,_0x1a8757._0x547bfb)][_0x54fb91(_0x1a8757._0x4eb003,0x321,0xe9,0x1f4)](_0x1296e6(-_0x1a8757._0xc11d53,-_0x1a8757._0x28bc7f,-_0x1a8757._0xa18563,-_0x1a8757._0x3adc41),String(_0x19249d)),_0x19bd47['searchParams'][_0x1296e6(0x72,0x47,0x165,0x99)]('safe',_0x5590d1[_0x54fb91(_0x1a8757._0x200281,0x55,-0x43,-0x10)]?'active':_0x54fb91(_0x1a8757._0x3124ce,-0xbc,0x2,_0x1a8757._0x59ddbf));_0x5590d1[_0x1296e6(-_0x1a8757._0x3d14d3,-0x12,_0x1a8757._0x261476,-_0x1a8757._0x4128d7)]&&(_0x19bd47[_0x1296e6(-_0x1a8757._0x4f7691,-0x175,-0x173,-_0x1a8757._0x1dc239)]['set']('hl',_0x5590d1[_0x1296e6(-0x47,0x7c,-0x1d,-0x134)]),_0x19bd47[_0x1296e6(-_0x1a8757._0x31af8a,-0x138,-_0x1a8757._0xee0fbf,-0x169)][_0x1296e6(_0x1a8757._0x4b3a70,0xef,0x89,0x3a)]('lr',_0x54fb91(0xfc,0x27,-0xe9,0x2f)+_0x5590d1[_0x54fb91(0x1e9,0x20a,_0x1a8757._0xc11d53,_0x1a8757._0x417263)]));if(_0x5590d1[_0x54fb91(_0x1a8757._0x1eab31,0x1ff,_0x1a8757._0x5ef3f3,_0x1a8757._0x33bbfc)])_0x19bd47['searchParams']['set']('gl',_0x5590d1[_0x54fb91(0x128,_0x1a8757._0xb652c2,_0x1a8757._0xefcde8,_0x1a8757._0x47ffaf)][_0x1296e6(0x5e,_0x1a8757._0x417263,-_0x1a8757._0x25ffc4,-_0x1a8757._0x5b9dda)]());if(_0x5590d1[_0x1296e6(0x41,0x18,0x15f,-_0x1a8757._0x169d54)]===_0x1296e6(-0x1be,-0x21e,-0x132,-_0x1a8757._0x4601a0))_0x19bd47[_0x54fb91(_0x1a8757._0x2e2457,_0x1a8757._0x431c6c,-_0x1a8757._0x2ee964,_0x1a8757._0x2aeda7)]['set'](_0x54fb91(-_0x1a8757._0xf55a0,0x4,-_0x1a8757._0x215fc1,-0x2a),_0x54fb91(_0x1a8757._0x2d41e6,_0x1a8757._0x53c098,0x146,0x1f0));if(_0x269be1)_0x19bd47[_0x54fb91(-_0x1a8757._0x13dd23,-0x48,_0x1a8757._0x4c4d01,0x20)][_0x54fb91(_0x1a8757._0x2d9d1f,0x239,_0x1a8757._0x159ff4,_0x1a8757._0x389fe3)](_0x54fb91(_0x1a8757._0x547bfb,-0x7d,-_0x1a8757._0x57184c,-0x57),_0x269be1);const _0x6215a6=await fetchJson(_0x19bd47[_0x1296e6(-_0x1a8757._0x1c090f,-_0x1a8757._0x399550,-0x15b,_0x1a8757._0x460901)](),_0x5aa710),_0x5e25f0=_0x6215a6[_0x1296e6(-_0x1a8757._0x57de2c,-_0x1a8757._0x882f9c,-0x9d,-_0x1a8757._0x1211dd)]??[];if(_0x5e25f0[_0x54fb91(_0x1a8757._0x596343,_0x1a8757._0x4986a6,0x1fb,0x149)]===0x0)break;const _0x54bbb=_0xdf3b25;for(let _0x3b039c=0x0;_0x3b039c<_0x5e25f0[_0x1296e6(-_0x1a8757._0x3ef5e4,_0x1a8757._0x37b2d7,_0x1a8757._0x2de40e,-_0x1a8757._0x16c119)];_0x3b039c++){const _0x22377b=_0x5e25f0[_0x3b039c];if(!_0x22377b)continue;const _0x1df565=_0x22377b[_0x1296e6(-_0x1a8757._0x526c4d,-0x136,-_0x1a8757._0x2a0a0d,-0x1f6)]||_0x22377b[_0x54fb91(_0x1a8757._0x293dda,_0x1a8757._0x8e607c,_0x1a8757._0x4eb003,_0x1a8757._0x4683b6)]?.[_0x1296e6(-_0x1a8757._0x460901,_0x1a8757._0x4c07c8,-0x116,-_0x1a8757._0x5d27e7)]||'',_0x3ff373=_0x22377b['title']||_0x22377b[_0x54fb91(0x31f,0x234,_0x1a8757._0xc7712b,_0x1a8757._0x4683b6)]?.[_0x54fb91(0xa2,-_0x1a8757._0xaf5b95,0x48,_0x1a8757._0x7d573a)]||_0x54fb91(-_0x1a8757._0x1d8084,-0x148,_0x1a8757._0x188319,-_0x1a8757._0x599e5d),_0x2134d3=_0x22377b[_0x54fb91(_0x1a8757._0x13786f,_0x1a8757._0x9173da,_0x1a8757._0x631073,-_0x1a8757._0x294c8b)]||_0x22377b[_0x1296e6(-0x1ea,-0x2a6,-_0x1a8757._0x389fe3,-0x1d0)]?.[_0x1296e6(-0x138,-0x185,-0x271,-0x15d)](/<[^>]+>/g,''),_0x15c317=_0x22377b[_0x54fb91(_0x1a8757._0x50a4ac,_0x1a8757._0x3858bc,_0x1a8757._0xcb84be,_0x1a8757._0x331b11)]?.[_0x54fb91(0xe7,_0x1a8757._0x31ce69,_0x1a8757._0x7ed4eb,0x1cf)]?.[0x0]??{};let _0x38ec22;try{_0x38ec22=new URL(_0x1df565)[_0x54fb91(0x87,-0x118,_0x1a8757._0x467b1b,_0x1a8757._0x396fb8)];}catch{_0x38ec22=null;}_0x198bc9[_0x54fb91(0x189,0x245,0x2ac,_0x1a8757._0x215674)]({'title':_0x3ff373,'url':normalizeUrl(_0x1df565),'snippet':_0x2134d3??null,'displayUrl':_0x38ec22,'favicon':null,'publishedAt':_0x15c317[_0x1296e6(-_0x1a8757._0x568848,-_0x1a8757._0x5351a0,0xe1,-0x42)]||_0x15c317[_0x1296e6(-0x195,-0xe1,-0x6d,-_0x1a8757._0x308006)]||null,'source':{'engine':_0x54fb91(-_0x1a8757._0x50b081,-_0x1a8757._0x1058d8,-0xdb,-0x77),'rank':_0x54bbb+_0x3b039c+0x1}});}_0xdf3b25+=_0x5e25f0['length'],_0x19249d+=_0x5e25f0[_0x54fb91(0x32,_0x1a8757._0x579815,0x264,_0x1a8757._0x2caae3)];if(_0x5e25f0[_0x54fb91(0x265,0xcd,_0x1a8757._0xd61e1,0x149)]<_0x481c9b)break;}return _0x198bc9[_0x54fb91(_0x1a8757._0x47ffaf,0x174,_0x1a8757._0x194aea,_0x1a8757._0x46f9ca)](0x0,_0x4682b1);}function createWebSearchTool(_0x56886a){const _0x1d662d={_0x37fa5f:0x591,_0x2cb8bc:0x3d5,_0x5989c8:0x4c5,_0x598969:0x441,_0x37716d:0x48a,_0x542818:0x266,_0x338e11:0x3f0,_0x3605a1:0x4c9,_0x26826:0x3b1,_0x535757:0x4f5,_0x16bc3c:0x43c,_0x43ad0c:0x474,_0x1a7ff9:0x5a3,_0x51af6f:0x3cc,_0x5827dd:0x437,_0x23e0c3:0x513,_0x421aec:0x54c,_0x2f9c13:0x624,_0x118a38:0x58c,_0x52f939:0x4f3,_0xf063f9:0x59c,_0x4d83d9:0x23b,_0x40a42d:0x337,_0x861a36:0x3c2,_0x420029:0x3e7,_0x33873b:0x4a3,_0x1ca260:0x337,_0x39ac69:0x44f,_0x4815a7:0x2ae,_0x26745d:0x3eb},_0x3d1fbd={_0x4f1f60:0x452,_0x5c4390:0x566,_0x2b4d9f:0x551,_0x443df4:0x3e8,_0x121680:0x376,_0x49cb40:0x2b7,_0x11d9bb:0x663,_0x56c991:0x5e3,_0xef1548:0x50f,_0x32f1a0:0x64f,_0x4a2f83:0x617,_0x22a099:0x6b5,_0xd6ce28:0x7a7,_0x2f9dca:0x712,_0x15c6df:0x602,_0x461ad3:0x5c0,_0x3c549c:0x4fc,_0x4edf3f:0x559,_0x15d9fe:0x523,_0x2e25ed:0x56a,_0x519d0d:0x60c,_0x4fd448:0x48d,_0x3a0d5f:0x426,_0x449e50:0x397,_0x28292c:0x281,_0x2cae19:0x28a,_0x2f3537:0x2e4,_0x29f327:0x793,_0x581fa9:0x778,_0x346953:0x879,_0x3defe2:0x741,_0xfc8588:0x7eb,_0x18057a:0x66a,_0x10f34b:0x7ef,_0xf0d115:0x70f,_0x183a77:0x7cb,_0x21562d:0x73f,_0x36884c:0x737,_0x56bfd5:0x7c6,_0x53419f:0x6f4,_0x58040e:0x7d9,_0x151234:0x383,_0x40debf:0x39b,_0x190674:0x2ee,_0xa561d5:0x644,_0x4554a9:0x73d,_0x215e5c:0x6c7,_0x3b0576:0x67a,_0x5e19dd:0x768,_0x39f711:0x5cd,_0xf4b900:0x633,_0x61f433:0x718,_0x334f02:0x63b,_0x558d4c:0x300,_0x45e762:0x29c,_0x5bb630:0x795,_0x29ffae:0x57b,_0x172d0e:0x75f,_0xb0bd77:0x7cf,_0x3d6011:0x7b9,_0x55cc00:0x5e4,_0x1708d0:0x6ba,_0x48bdd8:0x6ce,_0x2c09e9:0x7a7,_0x29ef0c:0x4b0,_0x11437b:0x3b3,_0x25eb4b:0x2b0,_0x27a4e8:0x2aa,_0x56b565:0x693},_0x5b7b53={_0xae7b0e:0x114,_0x54eaa0:0x40},_0x52f2a6={_0xb07309:0x1f0,_0x308685:0x6};if(!_0x56886a[_0x4e36e9(0x52e,0x59f,0x69c,_0x1d662d._0x37fa5f)])throw new Error(_0x4e36e9(0x38e,0x4b9,_0x1d662d._0x2cb8bc,_0x1d662d._0x5989c8));function _0x374a92(_0xdb0059,_0x1eeda2,_0x2ea979,_0x3fc402){return _0x120580(_0x1eeda2- -0xbd,_0x2ea979,_0x2ea979-_0x52f2a6._0xb07309,_0x3fc402-_0x52f2a6._0x308685);}function _0x4e36e9(_0x90029d,_0x4b117f,_0x544875,_0x57ccd2){return _0x43e84c(_0x90029d-0x76,_0x544875,_0x544875-0x1cf,_0x57ccd2-0x79);}if(!_0x56886a['googleCseCx'])throw new Error(_0x374a92(0x44a,0x43a,0x4d6,0x522));const _0x1e520a=_0x56886a[_0x374a92(0x371,_0x1d662d._0x598969,_0x1d662d._0x37716d,0x324)]??'WebSearch';return defineTool({'name':_0x1e520a,'description':_0x4e36e9(0x40e,0x2e2,_0x1d662d._0x542818,0x398),'inputSchema':{'type':_0x374a92(0x4b8,0x53e,0x3fd,0x48e),'properties':{'description':{'type':_0x4e36e9(0x55c,_0x1d662d._0x338e11,0x3a9,_0x1d662d._0x3605a1)},'query':{'type':_0x374a92(0x3da,0x437,0x34f,_0x1d662d._0x26826)},'count':{'type':_0x374a92(0x533,0x4f5,0x53d,0x45a)},'offset':{'type':_0x374a92(0x531,_0x1d662d._0x535757,0x4e4,0x613)},'domains':{'type':_0x374a92(_0x1d662d._0x16bc3c,_0x1d662d._0x43ad0c,_0x1d662d._0x1a7ff9,0x3c9),'items':{'type':_0x374a92(_0x1d662d._0x51af6f,_0x1d662d._0x5827dd,_0x1d662d._0x23e0c3,_0x1d662d._0x421aec)}},'recencyDays':{'type':_0x374a92(0x3fd,_0x1d662d._0x535757,_0x1d662d._0x2f9c13,0x5fb)},'lang':{'type':_0x4e36e9(_0x1d662d._0x118a38,_0x1d662d._0x52f939,_0x1d662d._0xf063f9,0x4c9)},'region':{'type':'string'},'safe':{'type':_0x374a92(_0x1d662d._0x4d83d9,_0x1d662d._0x40a42d,0x2a9,_0x1d662d._0x861a36)},'type':{'type':_0x374a92(0x3b0,_0x1d662d._0x5827dd,_0x1d662d._0x420029,_0x1d662d._0x33873b)},'hydrateMeta':{'type':_0x374a92(0x210,_0x1d662d._0x1ca260,_0x1d662d._0x39ac69,0x265)}},'required':[_0x4e36e9(0x376,0x2fc,_0x1d662d._0x4815a7,_0x1d662d._0x26745d)]},async *'execute'(_0x23c4ca,_0x4506f0){const _0x12ad35={_0x10cb0a:0x111,_0x3c1810:0x167},_0x425ceb={_0x34df6a:0x79f,_0x271490:0x60d,_0x22c67b:0x603,_0x5377ce:0x5d2,_0x47bcb4:0x5cc},_0x1c8f25={_0x13d1f8:0x3f4},_0x3ccdbd=_0x23c4ca[_0x35c6a0(_0x3d1fbd._0x4f1f60,_0x3d1fbd._0x5c4390,_0x3d1fbd._0x2b4d9f,0x648)]['trim']();if(!_0x3ccdbd)throw new ToolExecutionError(_0x4c5f21(0x3c2,_0x3d1fbd._0x443df4,0x49d,_0x3d1fbd._0x121680));const _0x3aa0e1={'query':_0x3ccdbd,'count':Math[_0x4c5f21(0x2c4,0x1f1,_0x3d1fbd._0x49cb40,0xf3)](0x1,Math[_0x35c6a0(0x72e,_0x3d1fbd._0x11d9bb,_0x3d1fbd._0x56c991,0x797)](0x32,Math['trunc'](_0x23c4ca['count']??0xa))),'offset':Math[_0x35c6a0(0x493,_0x3d1fbd._0xef1548,_0x3d1fbd._0x32f1a0,_0x3d1fbd._0x4a2f83)](0x0,Math[_0x35c6a0(0x6f0,_0x3d1fbd._0x22a099,_0x3d1fbd._0xd6ce28,_0x3d1fbd._0x2f9dca)](_0x23c4ca[_0x35c6a0(_0x3d1fbd._0x15c6df,_0x3d1fbd._0x461ad3,_0x3d1fbd._0x3c549c,_0x3d1fbd._0x4edf3f)]??0x0)),'domains':_0x23c4ca[_0x35c6a0(0x678,0x5cd,_0x3d1fbd._0x15d9fe,_0x3d1fbd._0x2e25ed)]??[],'recencyDays':Math[_0x35c6a0(_0x3d1fbd._0x519d0d,0x50f,_0x3d1fbd._0x4fd448,0x5c4)](0x0,Math[_0x4c5f21(_0x3d1fbd._0x3a0d5f,_0x3d1fbd._0x449e50,0x312,0x447)](_0x23c4ca[_0x4c5f21(0x2e4,0x31d,_0x3d1fbd._0x28292c,0x3e4)]??0x0)),'lang':_0x23c4ca[_0x4c5f21(0x3e9,0x39b,_0x3d1fbd._0x2cae19,_0x3d1fbd._0x2f3537)]??'en','region':_0x23c4ca[_0x35c6a0(_0x3d1fbd._0x29f327,_0x3d1fbd._0x581fa9,0x717,0x882)]??'','safe':_0x23c4ca[_0x35c6a0(0x432,0x56e,0x4d0,0x4c0)]??!![],'type':normalizeType(_0x23c4ca[_0x35c6a0(_0x3d1fbd._0x346953,_0x3d1fbd._0x3defe2,_0x3d1fbd._0xfc8588,_0x3d1fbd._0x18057a)]),'hydrateMeta':_0x23c4ca[_0x35c6a0(0x825,0x746,_0x3d1fbd._0x10f34b,_0x3d1fbd._0xf0d115)]??![]};let _0x60991e=await searchGoogleCse(_0x56886a,_0x3aa0e1,_0x4506f0[_0x35c6a0(_0x3d1fbd._0x183a77,0x77b,0x7a4,0x677)]);_0x3aa0e1[_0x35c6a0(_0x3d1fbd._0x21562d,0x746,_0x3d1fbd._0x36884c,_0x3d1fbd._0x56bfd5)]&&_0x60991e[_0x35c6a0(_0x3d1fbd._0x53419f,0x6c7,_0x3d1fbd._0x58040e,0x5db)]>0x0&&(_0x60991e=await hydrateResults(_0x60991e,_0x3aa0e1[_0x4c5f21(_0x3d1fbd._0x151234,_0x3d1fbd._0x40debf,_0x3d1fbd._0x190674,0x28b)],_0x4506f0['signal']));const _0x581a96=new Set();function _0x35c6a0(_0x150bdb,_0x4bb3b3,_0x220dc4,_0x2cd47){return _0x4e36e9(_0x150bdb-_0x5b7b53._0xae7b0e,_0x4bb3b3-_0x5b7b53._0x54eaa0,_0x150bdb,_0x4bb3b3-0x17b);}_0x60991e=_0x60991e['filter'](_0x6d15c5=>{const _0x43059c={_0x3df340:0x1b9,_0x2be98b:0x2bd,_0xee85fc:0x47},_0x591064=_0x6d15c5[_0x425ce(0x7a6,0x68b,0x6d8,_0x425ceb._0x34df6a)]['toLowerCase']();function _0x33bcfb(_0x5e4e11,_0x43f446,_0x154653,_0xba701f){return _0x4c5f21(_0x5e4e11-0x122,_0xba701f- -_0x1c8f25._0x13d1f8,_0x154653,_0xba701f-0x14a);}if(!_0x591064||_0x581a96[_0x425ce(_0x425ceb._0x271490,0x6e8,_0x425ceb._0x22c67b,0x693)](_0x591064))return![];_0x581a96[_0x425ce(0x585,0x4b9,_0x425ceb._0x5377ce,_0x425ceb._0x47bcb4)](_0x591064);function _0x425ce(_0x26eb24,_0x4c359c,_0x28d943,_0x35138a){return _0x4c5f21(_0x26eb24-_0x43059c._0x3df340,_0x28d943-_0x43059c._0x2be98b,_0x4c359c,_0x35138a-_0x43059c._0xee85fc);}return!![];}),_0x60991e=_0x60991e[_0x35c6a0(_0x3d1fbd._0xa561d5,_0x3d1fbd._0x4554a9,0x854,0x7f8)]((_0x5864d6,_0x51a8fd)=>({..._0x5864d6,'source':{..._0x5864d6['source'],'rank':_0x51a8fd+0x1}}));const _0x5a2bef={};if(_0x3aa0e1['domains'][_0x35c6a0(0x74b,_0x3d1fbd._0x215e5c,_0x3d1fbd._0x3b0576,_0x3d1fbd._0x5e19dd)]>0x0)_0x5a2bef[_0x35c6a0(0x5b9,_0x3d1fbd._0x39f711,_0x3d1fbd._0xf4b900,0x4e8)]=_0x3aa0e1['domains'];if(_0x3aa0e1['recencyDays']>0x0)_0x5a2bef[_0x35c6a0(_0x3d1fbd._0x61f433,_0x3d1fbd._0x334f02,0x510,_0x3d1fbd._0x4554a9)]=_0x3aa0e1[_0x4c5f21(_0x3d1fbd._0x558d4c,0x31d,_0x3d1fbd._0x28292c,_0x3d1fbd._0x45e762)];if(_0x3aa0e1[_0x35c6a0(0x7d6,0x6b9,_0x3d1fbd._0x5bb630,_0x3d1fbd._0x29ffae)]!=='en')_0x5a2bef[_0x35c6a0(0x573,0x6b9,0x70a,0x7b3)]=_0x3aa0e1[_0x35c6a0(0x5b9,0x6b9,_0x3d1fbd._0x172d0e,_0x3d1fbd._0xb0bd77)];if(_0x3aa0e1['region'])_0x5a2bef[_0x35c6a0(0x853,0x778,0x890,_0x3d1fbd._0x3d6011)]=_0x3aa0e1['region'];function _0x4c5f21(_0x259e88,_0x4bed7e,_0x20fe03,_0x3624bd){return _0x374a92(_0x259e88-0x1cb,_0x4bed7e- -_0x12ad35._0x10cb0a,_0x20fe03,_0x3624bd-_0x12ad35._0x3c1810);}return yield createToolOutput(formatResults(_0x60991e),{'engine':'google-cse','count':_0x60991e[_0x35c6a0(0x69d,0x6c7,0x76b,_0x3d1fbd._0x55cc00)],'items':_0x60991e,'query':_0x3aa0e1['query'],...Object[_0x35c6a0(_0x3d1fbd._0x1708d0,_0x3d1fbd._0x48bdd8,0x7ef,_0x3d1fbd._0x2c09e9)](_0x5a2bef)[_0x4c5f21(_0x3d1fbd._0x29ef0c,0x3a9,0x450,_0x3d1fbd._0x11437b)]>0x0?{'appliedFilters':_0x5a2bef}:{},'offset':_0x3aa0e1['offset'],'totalRequested':_0x3aa0e1[_0x4c5f21(0x386,_0x3d1fbd._0x25eb4b,_0x3d1fbd._0x27a4e8,0x304)],'hydrated':_0x3aa0e1[_0x35c6a0(0x6c1,0x746,0x85b,_0x3d1fbd._0x56b565)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|