@nuvin/agent-core 0.0.0-rc.12 → 0.0.0-rc.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x187528,_0xa3b26e){const _0x482571={_0x2f54b6:0x53,_0x4aac9f:0x7f,_0x3fc9ad:0x2ec,_0x2683a0:0x33,_0x12ef04:0x9f,_0x54c501:0x163,_0x5f5dbc:0x1f,_0x242b1c:0x134,_0x18dfc5:0x1d6,_0x245bf1:0x8e,_0x4e6cb7:0x9,_0x8bf480:0x12e,_0x3e5ac1:0x18c,_0x1d88d0:0x21f,_0x20664f:0x198,_0x1ab7fb:0xcf,_0x526b6c:0x2c,_0x59199a:0x2,_0x2f8a35:0x3a,_0x1ef1a7:0xc7,_0x3ad013:0x42,_0x5a92f0:0xdb,_0x201cfa:0x366},_0x24a100={_0x1bb5b6:0x16a},_0x33f241=_0x187528();function _0x3a8e41(_0x1d3378,_0x2759af,_0x1295d3,_0x512792){return _0x16a6(_0x1295d3- -_0x24a100._0x1bb5b6,_0x512792);}function _0x46c329(_0x41d62a,_0x2a7568,_0x147814,_0x35f0bf){return _0x16a6(_0x2a7568- -0x24b,_0x147814);}while(!![]){try{const _0x3f971b=parseInt(_0x46c329(-_0x482571._0x2f54b6,-_0x482571._0x4aac9f,-0xf5,0x16))/0x1*(-parseInt(_0x3a8e41(_0x482571._0x3fc9ad,0x10b,0x1ad,0x156))/0x2)+-parseInt(_0x46c329(_0x482571._0x2683a0,-_0x482571._0x12ef04,-_0x482571._0x54c501,_0x482571._0x5f5dbc))/0x3+parseInt(_0x3a8e41(0x154,_0x482571._0x242b1c,_0x482571._0x18dfc5,_0x482571._0x245bf1))/0x4*(-parseInt(_0x3a8e41(0x18,_0x482571._0x4e6cb7,0xf8,_0x482571._0x8bf480))/0x5)+parseInt(_0x3a8e41(0x162,0x1b1,_0x482571._0x3e5ac1,_0x482571._0x1d88d0))/0x6+-parseInt(_0x3a8e41(_0x482571._0x20664f,-0x71,_0x482571._0x1ab7fb,-0x4e))/0x7+parseInt(_0x46c329(-0xb6,-_0x482571._0x526b6c,-_0x482571._0x59199a,-_0x482571._0x2f8a35))/0x8*(-parseInt(_0x46c329(0x1be,_0x482571._0x1ef1a7,-_0x482571._0x3ad013,_0x482571._0x5a92f0))/0x9)+parseInt(_0x3a8e41(0x14f,0x337,0x280,_0x482571._0x201cfa))/0xa;if(_0x3f971b===_0xa3b26e)break;else _0x33f241['push'](_0x33f241['shift']());}catch(_0x4c349b){_0x33f241['push'](_0x33f241['shift']());}}}(_0x18c5,0x319f5));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 _0x1bcfec from'path';var EXTENSION_TO_LANGUAGE={'.ts':'typescript','.tsx':_0x278b49(-0x27,-0x60,0x66,-0x3c),'.js':_0x2fd7af(-0xc4,-0xda,0x82,-0x1ac),'.jsx':_0x278b49(-0xea,0x5d,0xe,0x7b),'.mjs':_0x278b49(-0x9,-0xf6,-0x75,-0x1b7),'.cjs':_0x278b49(-0x186,-0x190,-0x75,0x43),'.mts':_0x2fd7af(-0xfa,0x2e,-0x1af,-0x206),'.cts':_0x278b49(-0x2e,-0x13a,-0xab,-0xe6),'.json':_0x2fd7af(-0x188,-0xc0,-0x1fd,-0x24c),'.jsonc':_0x2fd7af(-0x5b,-0x189,-0x14,0x2b)};function getLanguageId(_0x377c10){const _0x17f2e9={_0x8add3a:0x269,_0x2da242:0x314},_0x49748c={_0x16961e:0x31,_0x4e8ee1:0x198};function _0x3823d1(_0x2ac146,_0x48063a,_0x5b15b6,_0x3da3c2){return _0x278b49(_0x2ac146-0x1b4,_0x48063a-_0x49748c._0x16961e,_0x2ac146-_0x49748c._0x4e8ee1,_0x48063a);}return EXTENSION_TO_LANGUAGE[_0x1bcfec['extname'](_0x377c10)[_0x3823d1(0x270,_0x17f2e9._0x8add3a,0x137,_0x17f2e9._0x2da242)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x183635){const _0x21c478={_0x302e78:0x1fb},_0x57ae0b={_0x3c097d:0x3ad,_0x596aab:0xe7};function _0xa09b0e(_0x25e56d,_0x2f1f5b,_0x44efb8,_0x3d02b8){return _0x2fd7af(_0x2f1f5b-_0x57ae0b._0x3c097d,_0x2f1f5b-_0x57ae0b._0x596aab,_0x44efb8,_0x3d02b8-0xdc);}return pathToFileURL(_0x183635)[_0xa09b0e(_0x21c478._0x302e78,0x2f8,0x3a6,0x39a)]();}function textDocumentPosition(_0x370c2d){const _0x396448={_0x8fa181:0x3bd,_0x22e3b2:0x31f,_0x441f0d:0x1e8,_0x25455f:0x420},_0x1da590={_0x5b57d5:0x124,_0x2b59f7:0xf},_0x4d957a={_0xe895f:0x93,_0x8b7767:0x687};function _0x1fe292(_0x23d66b,_0x4c4b58,_0x49d686,_0x36aeee){return _0x278b49(_0x23d66b-_0x4d957a._0xe895f,_0x4c4b58-0xee,_0x4c4b58-_0x4d957a._0x8b7767,_0x36aeee);}function _0x4b780a(_0xcbe599,_0x18ac68,_0x280025,_0x471d61){return _0x278b49(_0xcbe599-_0x1da590._0x5b57d5,_0x18ac68-_0x1da590._0x2b59f7,_0x280025-0x3ac,_0x471d61);}return{'textDocument':{'uri':uriForPath(_0x370c2d[_0x4b780a(_0x396448._0x8fa181,0x247,_0x396448._0x22e3b2,_0x396448._0x441f0d)])},'position':{'line':_0x370c2d[_0x4b780a(0x4d2,0x4a9,_0x396448._0x25455f,0x4d7)],'character':_0x370c2d['character']}};}function normalizeLocations(_0x29d805){const _0x336332={_0x9de9a:0x686},_0x376107={_0x123008:0x15a,_0x4a2696:0x82};function _0x4f094a(_0x3b4a02,_0x131f9b,_0x566614,_0x15fb6c){return _0x2fd7af(_0x3b4a02-0x6d5,_0x131f9b-_0x376107._0x123008,_0x131f9b,_0x15fb6c-_0x376107._0x4a2696);}if(!_0x29d805)return[];return Array[_0x4f094a(0x5f4,0x60f,_0x336332._0x9de9a,0x597)](_0x29d805)?_0x29d805:[_0x29d805];}async function createLspClient(_0x106801){const _0x1a0d16={_0x3347fb:0x2d1,_0x4f7ca3:0x302,_0x2eee0b:0x1e3,_0x20a602:0x79,_0x505840:0x118,_0x3d625d:0x273,_0x39946c:0x218,_0x4a199c:0x2b6,_0x38a240:0xd5,_0x6e3920:0x210,_0x26f572:0x1c2,_0x24cf17:0x11f,_0x4b1eee:0x12a,_0x4ac45e:0x43,_0x5a0f5f:0x50,_0x2a1200:0x77,_0x4250a5:0xb3,_0x162e8d:0x190,_0x1b5fe0:0x328,_0x53bc13:0x9b,_0x4ca45b:0x1e3,_0x3af085:0x12a,_0x538321:0x32e,_0x53a734:0x2e,_0x5d6b06:0xd0,_0x5cdce0:0x61,_0x220b64:0x246,_0x117345:0x32d,_0x481d5d:0x215,_0x51cb3b:0xb8,_0x356680:0x1e3,_0x11cd92:0x172,_0x5395c2:0x4e},_0x43f465={_0xd33cb5:0x2ae,_0x3e5009:0x239,_0x3b990c:0x2c5,_0xa8d227:0x458,_0x20be8b:0x1f9,_0x36b18f:0x12,_0x1717d7:0x147,_0x43fbd3:0xeb,_0x42c470:0x174,_0x5101e4:0x28e,_0x557688:0x2c3,_0x172845:0x357,_0x20fe8b:0x1b4},_0x375cd6={_0x28088c:0x151},_0x4454f4={_0x3a22f7:0x6d8},_0x3bd949={_0xbc1e40:0x410,_0x4096c4:0x5ed,_0xe4664e:0x530,_0x3cbdc6:0x367,_0x4ee8ff:0x245,_0x4b77f8:0x380,_0x2ee650:0x3cf},_0x3b549b={_0x35161a:0x119,_0x1d17fe:0x106},_0x1c7cbb={_0xea5b25:0x100,_0xaf0bb2:0x14e,_0x42400a:0x110,_0x24f57d:0x5b,_0x1baadb:0xd5},_0x5498a2={_0x53c4be:0x6d},_0x54b3d3={_0x470c20:0x345,_0x169b52:0x32f,_0x2063a2:0x43b,_0x3e366c:0x39c},_0x37ce21={_0x59a767:0x504},_0x40e6b1={_0x3c70aa:0x68,_0x1a2d21:0x2af},_0x520336={_0x4a961f:0x5a5,_0x13912b:0x48b,_0x4a9f5a:0x4e7},_0x51880a={_0x41c4ea:0x423},_0x7d9556={_0x216006:0x87},_0x4c3203={_0x175474:0x169,_0x1a7591:0x490,_0x3727d8:0x558,_0x2d7223:0x480},_0x74d33={_0x70f460:0x4e,_0x12f84b:0xc8},_0x54e57b={_0x340169:0x535},_0x5584d6={_0x10a386:0x1cf,_0x2eaa92:0x63,_0xcfbe45:0x104,_0x2d9e64:0x3f,_0x282a70:0x1e4},_0x5afd44={_0x2c95ea:0x1d7},_0x5b5b9b={_0x1b9f20:0x33e,_0x2e75d2:0xe5,_0xead54d:0x1ee},_0x53bfe6={_0x2ab614:0x82,_0x2c6377:0x93,_0xac2830:0x8},_0x27b327={_0x492687:0x1ae,_0x53c9a1:0x214},_0xa8a1b6={_0xed3095:0x340},_0xfa46b9={_0x5a06ef:0x4d5,_0x1d218a:0x665,_0x496ea1:0x35b,_0x1059ce:0x4c8,_0x122ec2:0x2fb,_0x2520ef:0x62},_0x4a7688={_0x5a6c4a:0x60d},_0x2cfc60={_0x16faae:0x4e2,_0x420c52:0x400,_0x3df825:0x59b,_0x572518:0x198,_0x1bd943:0x1b2,_0x46fe31:0xc,_0x207384:0x586,_0x10332f:0x62c},_0x452ba1={_0xd7acd2:0xbd},_0x4a5af0={_0x5668c2:0x2c,_0x591f00:0x16e,_0x36f789:0x1ac},_0x3a6d25={_0x1b0f9b:0x709,_0x32d904:0x568,_0x2f2c9d:0x468,_0x566c52:0x4b0,_0x41290b:0x2bc,_0x18c9aa:0x1bf,_0x3036e4:0x218,_0x24449f:0x31f,_0x13f988:0x329},_0x3b9840={_0x28a4ec:0x26b,_0x48b896:0x16e},_0x2f91df=_0x106801[_0x248a92(-_0x1a0d16._0x3347fb,-0x89,-_0x1a0d16._0x4f7ca3,-0x1c7)][_0x390291(-0x27,_0x1a0d16._0x2eee0b,0x61,0xe6)][_0x248a92(_0x1a0d16._0x20a602,-0x2f,-_0x1a0d16._0x505840,-0xc9)],_0x10b62d=_0x106801[_0x248a92(-0x2af,-0x290,-_0x1a0d16._0x3d625d,-0x1c7)][_0x390291(0xf1,0xd3,_0x1a0d16._0x39946c,0xe6)]['stdin'];function _0x390291(_0x57460d,_0x541fd8,_0x29546a,_0x4358a7){return _0x2fd7af(_0x4358a7-_0x3b9840._0x28a4ec,_0x541fd8-_0x3b9840._0x48b896,_0x541fd8,_0x4358a7-0x133);}if(!_0x2f91df||!_0x10b62d)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x4568a7=createMessageConnection(new StreamMessageReader(_0x2f91df),new StreamMessageWriter(_0x10b62d)),_0x353733=new Map(),_0x216c01=new Map();let _0x23e040=![];_0x4568a7[_0x390291(0x2fe,0x22b,0x2cf,_0x1a0d16._0x4a199c)]('textDocument/publishDiagnostics',_0x1704ac=>{const _0xe7b402={_0x4c1c79:0x35f},_0x3ea6ab={_0xdbf6b3:0x10,_0x3055c:0x3a,_0x31eb88:0x2c};_0x353733['set'](_0x1704ac['uri'],_0x1704ac[_0x199f90(_0x3a6d25._0x1b0f9b,_0x3a6d25._0x32d904,0x618,0x6f9)]);function _0x567d2b(_0x359866,_0x491955,_0x20a346,_0x316a1d){return _0x390291(_0x359866-_0x3ea6ab._0xdbf6b3,_0x359866,_0x20a346-_0x3ea6ab._0x3055c,_0x491955-_0x3ea6ab._0x31eb88);}function _0x199f90(_0x353cac,_0x9ef8a7,_0x49bfce,_0x1cb139){return _0x390291(_0x353cac-0xc1,_0x9ef8a7,_0x49bfce-0x19b,_0x49bfce-_0xe7b402._0x4c1c79);}const _0x31c881=_0x216c01[_0x199f90(0x5ec,_0x3a6d25._0x2f2c9d,_0x3a6d25._0x566c52,0x590)](_0x1704ac['uri']);if(!_0x31c881)return;_0x216c01[_0x567d2b(0x1dd,0x2dd,0x1b2,_0x3a6d25._0x41290b)](_0x1704ac[_0x567d2b(_0x3a6d25._0x18c9aa,_0x3a6d25._0x3036e4,_0x3a6d25._0x24449f,_0x3a6d25._0x13f988)]);for(const _0x33ca41 of _0x31c881)_0x33ca41();});function _0x248a92(_0x49dd62,_0xaa29a7,_0xf44a06,_0x32f435){return _0x2fd7af(_0x32f435- -_0x4a5af0._0x5668c2,_0xaa29a7-_0x4a5af0._0x591f00,_0xf44a06,_0x32f435-_0x4a5af0._0x36f789);}_0x4568a7[_0x390291(0x121,_0x1a0d16._0x38a240,0xf4,0x1f8)]();const _0x3c9e1c=await _0x4568a7[_0x390291(_0x1a0d16._0x6e3920,_0x1a0d16._0x26f572,_0x1a0d16._0x24cf17,_0x1a0d16._0x4b1eee)](_0x248a92(_0x1a0d16._0x4ac45e,0x116,0x26,-0x2),{'processId':process['pid'],'rootUri':uriForPath(_0x106801[_0x390291(0x8,_0x1a0d16._0x5a0f5f,_0x1a0d16._0x2a1200,0x107)]),'workspaceFolders':[{'uri':uriForPath(_0x106801[_0x248a92(-0x213,-0xb2,-_0x1a0d16._0x4250a5,-_0x1a0d16._0x162e8d)]),'name':_0x106801[_0x248a92(-_0x1a0d16._0x1b5fe0,-_0x1a0d16._0x53bc13,-0x137,-_0x1a0d16._0x4ca45b)]['id']}],'initializationOptions':_0x106801['handle'][_0x390291(0x13a,_0x1a0d16._0x3af085,_0x1a0d16._0x538321,0x23d)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x248a92(-0xd,_0x1a0d16._0x53a734,-_0x1a0d16._0x5d6b06,_0x1a0d16._0x5cdce0),_0x390291(0x232,0x46d,_0x1a0d16._0x220b64,_0x1a0d16._0x117345)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x4568a7['sendNotification'](_0x248a92(-0x22e,-0x36,-_0x1a0d16._0x481d5d,-0x13d),{});const _0x3d4d8c={'serverId':_0x106801[_0x248a92(-0xb3,-0x1a9,-_0x1a0d16._0x51cb3b,-_0x1a0d16._0x356680)]['id'],'root':_0x106801[_0x248a92(-_0x1a0d16._0x11cd92,-_0x1a0d16._0x5395c2,-0x1d3,-0x190)],'connection':_0x4568a7,'diagnostics':_0x353733,'capabilities':_0x3c9e1c['capabilities']??{},'notify':{async 'open'({path:_0xeda305}){const _0x2e912b={_0x1125a8:0x108,_0x3c1471:0x590};function _0x3609e2(_0x65c928,_0x558b9f,_0x4e9207,_0x2c9549){return _0x248a92(_0x65c928-_0x2e912b._0x1125a8,_0x558b9f-0x1ee,_0x4e9207,_0x558b9f-_0x2e912b._0x3c1471);}const _0x53d4db=await readFile(_0xeda305,_0x3609e2(_0x2cfc60._0x16faae,0x500,_0x2cfc60._0x420c52,_0x2cfc60._0x3df825));function _0x390ef3(_0x4eefb7,_0x58d31c,_0x325de6,_0x4880fc){return _0x390291(_0x4eefb7-0x5a,_0x58d31c,_0x325de6-_0x452ba1._0xd7acd2,_0x4880fc- -0x216);}_0x4568a7[_0x390ef3(-_0x2cfc60._0x572518,-_0x2cfc60._0x1bd943,-_0x2cfc60._0x46fe31,-0x151)](_0x3609e2(_0x2cfc60._0x207384,0x62e,0x6c4,_0x2cfc60._0x10332f),{'textDocument':{'uri':uriForPath(_0xeda305),'languageId':getLanguageId(_0xeda305)??'plaintext','version':0x1,'text':_0x53d4db}});},async 'change'({path:_0x10b4ac,version:_0x4ef6a3}){const _0x9737f7={_0x268bb4:0x164};function _0x2276c8(_0x40a4af,_0x1513ca,_0x38c52b,_0x4383a5){return _0x248a92(_0x40a4af-0xdb,_0x1513ca-0x5b,_0x40a4af,_0x4383a5-_0x4a7688._0x5a6c4a);}function _0x337ccf(_0x3c43b8,_0x1f2dfe,_0x54bdab,_0x482b7f){return _0x248a92(_0x3c43b8-0x190,_0x1f2dfe-_0x9737f7._0x268bb4,_0x54bdab,_0x1f2dfe- -0x6b);}const _0x5e3b9f=await readFile(_0x10b4ac,_0x2276c8(_0xfa46b9._0x5a06ef,_0xfa46b9._0x1d218a,0x4cd,0x57d));_0x4568a7[_0x2276c8(_0xfa46b9._0x496ea1,_0xfa46b9._0x1059ce,_0xfa46b9._0x122ec2,0x43b)](_0x337ccf(-0x12d,-0xab,_0xfa46b9._0x2520ef,0x97),{'textDocument':{'uri':uriForPath(_0x10b4ac),'version':_0x4ef6a3},'contentChanges':[{'text':_0x5e3b9f}]});},async 'close'({path:_0x4f6c37}){const _0xdffae8={_0x5b5f3e:0x185,_0x1b4e31:0x36};function _0x2442e5(_0x45c0a7,_0x5b9271,_0x1f5f73,_0x569a9c){return _0x248a92(_0x45c0a7-0x19,_0x5b9271-_0xdffae8._0x5b5f3e,_0x569a9c,_0x5b9271- -_0xdffae8._0x1b4e31);}_0x4568a7[_0x2442e5(-0x144,-0x208,-0x217,-_0xa8a1b6._0xed3095)]('textDocument/didClose',{'textDocument':{'uri':uriForPath(_0x4f6c37)}});}},'request':{async 'definition'(_0x1eb1a8){function _0x4c6a6d(_0x4cfb63,_0x1038e6,_0x388426,_0x8d151e){return _0x390291(_0x4cfb63-0x109,_0x4cfb63,_0x388426-_0x27b327._0x492687,_0x8d151e-_0x27b327._0x53c9a1);}function _0x599c5a(_0x547213,_0xdfeb98,_0x331df1,_0xa7a299){return _0x248a92(_0x547213-_0x53bfe6._0x2ab614,_0xdfeb98-_0x53bfe6._0x2c6377,_0xdfeb98,_0x331df1-_0x53bfe6._0xac2830);}return normalizeLocations(await _0x4568a7[_0x4c6a6d(0x2b3,0x411,0x362,_0x5b5b9b._0x1b9f20)](_0x599c5a(-0x1fa,-0x180,-_0x5b5b9b._0x2e75d2,-_0x5b5b9b._0xead54d),textDocumentPosition(_0x1eb1a8)));},async 'references'(_0x2b4835){function _0x749f3e(_0x772691,_0x368f87,_0x53e807,_0x38ac7b){return _0x390291(_0x772691-0x198,_0x38ac7b,_0x53e807-_0x5afd44._0x2c95ea,_0x53e807- -0x150);}function _0x3d025d(_0x15f563,_0x59fcac,_0x6fa8ee,_0x2095ef){return _0x390291(_0x15f563-0x14f,_0x2095ef,_0x6fa8ee-0x37,_0x6fa8ee- -0x22e);}return normalizeLocations(await _0x4568a7[_0x3d025d(-_0x5584d6._0x10a386,-_0x5584d6._0x2eaa92,-_0x5584d6._0xcfbe45,_0x5584d6._0x2d9e64)](_0x3d025d(0xaf,0xf1,0xba,_0x5584d6._0x282a70),{...textDocumentPosition(_0x2b4835),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x17d211){const _0x4fa286={_0x2c6a77:0x1a,_0x1d0dd6:0x99};function _0x45d1bb(_0x308643,_0x332a32,_0x1efdf3,_0x4dd4e5){return _0x390291(_0x308643-_0x4fa286._0x2c6a77,_0x308643,_0x1efdf3-_0x4fa286._0x1d0dd6,_0x4dd4e5-0x2ad);}return await _0x4568a7['sendRequest'](_0x45d1bb(0x445,_0x54e57b._0x340169,0x3bb,0x441),textDocumentPosition(_0x17d211))??null;},async 'documentSymbol'(_0x1d9751){const _0x29ce49={_0x3c8ff3:0x6c,_0x14aeb8:0x92,_0xb8072b:0x5ae};function _0x4c4726(_0x51827e,_0x30887c,_0x574847,_0x5b0acf){return _0x248a92(_0x51827e-_0x29ce49._0x3c8ff3,_0x30887c-_0x29ce49._0x14aeb8,_0x51827e,_0x5b0acf-_0x29ce49._0xb8072b);}function _0x3768d5(_0x447353,_0x98e524,_0x5e3700,_0x56e3e0){return _0x248a92(_0x447353-_0x74d33._0x70f460,_0x98e524-_0x74d33._0x12f84b,_0x56e3e0,_0x5e3700-0x4);}return await _0x4568a7[_0x3768d5(-0xda,-0x18c,-_0x4c3203._0x175474,-0x203)](_0x4c4726(0x4b4,_0x4c3203._0x1a7591,_0x4c3203._0x3727d8,_0x4c3203._0x2d7223),{'textDocument':{'uri':uriForPath(_0x1d9751)}})??[];},async 'workspaceSymbol'(_0x5d1445){function _0x3758b2(_0x446ae1,_0x22e63f,_0x2f9a71,_0x25e61d){return _0x248a92(_0x446ae1-_0x7d9556._0x216006,_0x22e63f-0x8,_0x25e61d,_0x22e63f-0x4bc);}return await _0x4568a7[_0x3758b2(0x303,0x34f,_0x51880a._0x41c4ea,0x24c)]('workspace/symbol',{'query':_0x5d1445})??[];},async 'implementation'(_0x403656){const _0x2b7c85={_0x151ee9:0x91,_0xb3a029:0x5f4};function _0x16d4ba(_0x53da6e,_0x519b95,_0x1345c9,_0xc1b205){return _0x248a92(_0x53da6e-_0x2b7c85._0x151ee9,_0x519b95-0x113,_0xc1b205,_0x1345c9-_0x2b7c85._0xb3a029);}return normalizeLocations(await _0x4568a7['sendRequest'](_0x16d4ba(0x5b2,_0x520336._0x4a961f,_0x520336._0x13912b,_0x520336._0x4a9f5a),textDocumentPosition(_0x403656)));},async 'prepareCallHierarchy'(_0x55adc4){function _0x40a1f1(_0x17882f,_0x3b2361,_0x4f43e2,_0x46eb0a){return _0x248a92(_0x17882f-0xa3,_0x3b2361-0x1d4,_0x4f43e2,_0x3b2361-0x693);}function _0x591895(_0x373c03,_0x56e852,_0x1948df,_0x34757a){return _0x390291(_0x373c03-0x26,_0x34757a,_0x1948df-_0x40e6b1._0x3c70aa,_0x373c03- -_0x40e6b1._0x1a2d21);}return await _0x4568a7[_0x40a1f1(_0x37ce21._0x59a767,0x526,0x59c,0x65a)](_0x591895(0x7d,-0x14,-0x48,-0x3e),textDocumentPosition(_0x55adc4))??[];},async 'incomingCalls'(_0x36038b){function _0x111041(_0x152aaf,_0x33cd2e,_0x5244f4,_0x496927){return _0x248a92(_0x152aaf-0x1aa,_0x33cd2e-0x40,_0x496927,_0x33cd2e-0x49c);}return await _0x4568a7[_0x111041(_0x54b3d3._0x470c20,_0x54b3d3._0x169b52,_0x54b3d3._0x2063a2,_0x54b3d3._0x3e366c)]('callHierarchy/incomingCalls',{'item':_0x36038b})??[];},async 'outgoingCalls'(_0x5ca270){const _0x523e33={_0x2bbefc:0xde,_0x260009:0x1f4};function _0x4a5f15(_0x4a4cca,_0x5b8efc,_0xca9cb3,_0xd4b5d8){return _0x248a92(_0x4a4cca-0x10,_0x5b8efc-0x157,_0xd4b5d8,_0x4a4cca-_0x5498a2._0x53c4be);}function _0x7d3618(_0x5b9a14,_0x26f386,_0x4a1082,_0x42c1d0){return _0x248a92(_0x5b9a14-_0x523e33._0x2bbefc,_0x26f386-_0x523e33._0x260009,_0x5b9a14,_0x26f386-0x2d);}return await _0x4568a7[_0x4a5f15(-_0x1c7cbb._0xea5b25,-0x28,0x35,-_0x1c7cbb._0xaf0bb2)](_0x4a5f15(-0x11,-_0x1c7cbb._0x42400a,-_0x1c7cbb._0x24f57d,-_0x1c7cbb._0x1baadb),{'item':_0x5ca270})??[];}},'waitForDiagnostics'({path:_0x591985,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x48930f={_0x4be9fa:0x55f,_0x49a6b1:0x5f2,_0x9e9a52:0x746,_0x186d2f:0x657,_0x98c790:0x22,_0x36667c:0x13b,_0x3e9c61:0x64};function _0x4e99ea(_0x1b0b33,_0x1a806b,_0x52930c,_0x45f4fd){return _0x390291(_0x1b0b33-_0x3b549b._0x35161a,_0x45f4fd,_0x52930c-_0x3b549b._0x1d17fe,_0x1a806b-0x3bf);}const _0x3012d6=uriForPath(_0x591985);if(_0x353733['has'](_0x3012d6))return Promise[_0x4e99ea(_0x4454f4._0x3a22f7,0x6cf,0x5f3,0x6aa)]();return new Promise(_0x34e29c=>{const _0xf99e2={_0x29b1ab:0x240},_0x182c16={_0x194ef0:0x1a5,_0x4e1a39:0x183};function _0x44f93b(_0x40b630,_0x1e6b6d,_0xee6e29,_0x23d902){return _0x4e99ea(_0x40b630-_0x182c16._0x194ef0,_0x40b630- -_0x182c16._0x4e1a39,_0xee6e29-0xb9,_0xee6e29);}const _0x5cac54=setTimeout(()=>{const _0x5ecbe3={_0x27004a:0x344};function _0x4209de(_0x5ad34a,_0x524632,_0x23edfb,_0x29d40b){return _0x16a6(_0x524632- -_0xf99e2._0x29b1ab,_0x29d40b);}const _0x7bcbab=_0x216c01[_0x3f9665(_0x48930f._0x4be9fa,0x5b2,0x68f,0x638)](_0x3012d6);_0x7bcbab?.[_0x3f9665(0x6bf,_0x48930f._0x49a6b1,_0x48930f._0x9e9a52,_0x48930f._0x186d2f)](_0x162676);function _0x3f9665(_0x531d4b,_0x2f6f47,_0x536015,_0xd6491e){return _0x16a6(_0x531d4b-_0x5ecbe3._0x27004a,_0x2f6f47);}if(_0x7bcbab?.[_0x4209de(0xa2,-0x85,-0x1bf,-_0x48930f._0x98c790)]===0x0)_0x216c01[_0x4209de(0x123,_0x48930f._0x36667c,_0x48930f._0x3e9c61,0x6)](_0x3012d6);_0x34e29c();},timeoutMs),_0x162676=()=>{clearTimeout(_0x5cac54),_0x34e29c();};function _0x4c067f(_0x19f524,_0x178e7f,_0x17d06c,_0x460f96){return _0x4e99ea(_0x19f524-0xf1,_0x460f96- -0x1c8,_0x17d06c-0x3d,_0x17d06c);}const _0x5904da=_0x216c01[_0x4c067f(0x328,0x263,0x483,0x348)](_0x3012d6)??new Set();_0x5904da[_0x4c067f(_0x3bd949._0xbc1e40,_0x3bd949._0x4096c4,0x5dc,_0x3bd949._0xe4664e)](_0x162676),_0x216c01[_0x44f93b(_0x3bd949._0x3cbdc6,_0x3bd949._0x4ee8ff,_0x3bd949._0x4b77f8,_0x3bd949._0x2ee650)](_0x3012d6,_0x5904da);});},async 'shutdown'(){const _0x59203a={_0x1767bf:0x1b};function _0x14054c(_0x1d3325,_0x3fba91,_0x56721a,_0x1c350d){return _0x390291(_0x1d3325-0x1be,_0x3fba91,_0x56721a-0x152,_0x56721a-_0x59203a._0x1767bf);}function _0x191eff(_0x198acc,_0x145215,_0x1d6897,_0x41d7c7){return _0x248a92(_0x198acc-_0x375cd6._0x28088c,_0x145215-0x128,_0x145215,_0x1d6897-0x3cf);}if(_0x23e040)return;_0x23e040=!![];try{await _0x4568a7[_0x14054c(0x70,0x1eb,0x145,0x1b8)](_0x191eff(_0x43f465._0xd33cb5,0x36f,_0x43f465._0x3e5009,_0x43f465._0x3b990c),null),_0x4568a7['sendNotification'](_0x191eff(_0x43f465._0xa8d227,0x3ca,0x3d4,0x480));}catch{}finally{_0x4568a7[_0x191eff(_0x43f465._0x20be8b,0x278,0x32b,0x3e0)](),_0x106801[_0x14054c(-_0x43f465._0x36b18f,_0x43f465._0x1717d7,_0x43f465._0x43fbd3,_0x43f465._0x42c470)][_0x191eff(_0x43f465._0x5101e4,_0x43f465._0x557688,0x21e,_0x43f465._0x172845)][_0x191eff(0x37f,0x218,0x268,_0x43f465._0x20fe8b)]();}}};return _0x3d4d8c;}function _0x2fd7af(_0xdcb87,_0x1fb1ee,_0x4981f7,_0xe74537){return _0x16a6(_0xdcb87- -0x335,_0x4981f7);}import{spawn as _0x5ae30a}from'child_process';import{access as _0x3d9279}from'fs/promises';import _0x4b0f89 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x44e1e2 from'os';import _0x4d3a21 from'path';import _0x29ac84 from'which';var installPromises=new Map();function sanitizePackageName(_0x456b17){const _0x11df54={_0x1e765f:0x13e,_0xdff79d:0x116},_0x4eb26f={_0x3aaf98:0x388,_0x2c831a:0x164};function _0x3f4251(_0x4aa753,_0x430f21,_0x410d01,_0x7e0020){return _0x2fd7af(_0x430f21-_0x4eb26f._0x3aaf98,_0x430f21-0x160,_0x4aa753,_0x7e0020-_0x4eb26f._0x2c831a);}return _0x456b17[_0x3f4251(0xf6,0x1d2,_0x11df54._0x1e765f,_0x11df54._0xdff79d)](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0x50e09e){const _0x1eda32={_0x2a3f60:0xeb,_0x2ab5b1:0x55,_0x305248:0x112,_0x4dec3e:0x61d,_0x3d5ee4:0x5c6,_0x5b603b:0x59f};function _0x4522ab(_0x55dabf,_0x174610,_0x3bbc23,_0x321ae6){return _0x278b49(_0x55dabf-0x1b2,_0x174610-0x17f,_0x174610-0x7f,_0x55dabf);}function _0x573728(_0x4db9d2,_0x1661c8,_0x148bbf,_0x2c2e55){return _0x2fd7af(_0x4db9d2-0x570,_0x1661c8-0x8b,_0x148bbf,_0x2c2e55-0x1cb);}return process[_0x4522ab(-0x1b,_0x1eda32._0x2a3f60,-_0x1eda32._0x2ab5b1,_0x1eda32._0x305248)]===_0x573728(_0x1eda32._0x4dec3e,_0x1eda32._0x3d5ee4,0x698,_0x1eda32._0x5b603b)?_0x50e09e+'.cmd':_0x50e09e;}async function exists(_0xfe41b1){try{return await access(_0xfe41b1),!![];}catch{return![];}}function runNpmInstall(_0x201aba,_0x39f8f7,_0x6ed2ca){const _0x3a38db={_0x2d2c2b:0x24a,_0x32be62:0x25a,_0x4c5d57:0x364,_0x4f4138:0x43e,_0x1a0863:0x58c,_0x29e38b:0x5c6,_0x3ccd78:0x430,_0x103447:0x2a2,_0x192880:0x4d0,_0x29c5c0:0x3a6,_0x361c9a:0x673,_0x3f0020:0x5f5,_0x3b6f97:0x635},_0x38af89={_0x4cd85f:0x1c2};return new Promise(_0x22cfc4=>{const _0x4db0a8={_0x2fb90c:0x1f4};function _0xf44b19(_0x7cadd5,_0x518ede,_0x4bc986,_0x37077e){return _0x16a6(_0x37077e-_0x4db0a8._0x2fb90c,_0x7cadd5);}const _0x47a538=spawn(_0x49b75f(_0x3a38db._0x2d2c2b,_0x3a38db._0x32be62,_0x3a38db._0x4c5d57,0x2d8),[_0x49b75f(_0x3a38db._0x4f4138,_0x3a38db._0x1a0863,0x568,_0x3a38db._0x29e38b),_0x49b75f(0x262,0x35c,0x373,_0x3a38db._0x3ccd78),_0x201aba,_0x39f8f7],{'env':_0x6ed2ca,'stdio':_0xf44b19(_0x3a38db._0x103447,0x39d,_0x3a38db._0x192880,_0x3a38db._0x29c5c0)});function _0x49b75f(_0x3f5082,_0x59b062,_0x22a765,_0x587d08){return _0x16a6(_0x22a765-_0x38af89._0x4cd85f,_0x587d08);}_0x47a538['on'](_0xf44b19(_0x3a38db._0x361c9a,0x55f,0x59b,_0x3a38db._0x3f0020),()=>_0x22cfc4(![])),_0x47a538['on'](_0xf44b19(0x460,_0x3a38db._0x3b6f97,0x5a4,0x58a),_0xcfd737=>_0x22cfc4(_0xcfd737===0x0));});}function shouldDisableLspDownload(_0x14e9bb=process[_0x278b49(-0x96,0xfb,0x88,0x1bc)]){const _0x30c785={_0x3c0847:0x3f,_0x14f245:0x3f7,_0x541bf6:0x4eb,_0x144e81:0x1ef,_0x419324:0x148,_0x136d75:0x143},_0x33bb2e={_0x25e1f0:0x413},_0x5e1415={_0x1983c2:0xed};function _0xd794a8(_0x1d09fd,_0x1027af,_0x41e1bc,_0x2a9eac){return _0x278b49(_0x1d09fd-0xad,_0x1027af-0xa4,_0x1027af-_0x5e1415._0x1983c2,_0x41e1bc);}function _0x4e55f8(_0x44e24f,_0x597955,_0x5154d3,_0x441734){return _0x278b49(_0x44e24f-0xcc,_0x597955-0x15d,_0x597955-_0x33bb2e._0x25e1f0,_0x441734);}const _0x5d14bc=_0x14e9bb[_0xd794a8(0x118,-0x11,-0x36,_0x30c785._0x3c0847)]?.[_0x4e55f8(_0x30c785._0x14f245,_0x30c785._0x541bf6,0x58c,0x5f9)]();return _0x5d14bc===_0xd794a8(0xab,_0x30c785._0x144e81,_0x30c785._0x419324,_0x30c785._0x136d75)||_0x5d14bc==='1'||_0x5d14bc==='yes'||_0x5d14bc==='on';}function getLspPackageDir(_0x748da3){const _0x401635={_0x2b3ba5:0x1ae,_0x403bfe:0x128,_0x3aa726:0x38,_0x250d98:0xaa,_0x38ecb2:0x1ef,_0x578adc:0x220,_0x1f8f72:0x251},_0x2017e7={_0x209d51:0xff,_0x189921:0xa6};function _0x5a7924(_0x336d75,_0x13d10e,_0x59ab42,_0x271ef8){return _0x2fd7af(_0x13d10e-0x20b,_0x13d10e-0xc7,_0x336d75,_0x271ef8-0x11b);}function _0x47e754(_0x2a9db0,_0x3d4405,_0x163829,_0x543d49){return _0x278b49(_0x2a9db0-_0x2017e7._0x209d51,_0x3d4405-0xac,_0x2a9db0- -_0x2017e7._0x189921,_0x543d49);}return _0x4d3a21[_0x5a7924(0x1e0,_0x401635._0x2b3ba5,_0x401635._0x403bfe,0x1c7)](_0x44e1e2[_0x47e754(-_0x401635._0x3aa726,_0x401635._0x250d98,0xb,0xe4)](),_0x5a7924(_0x401635._0x38ecb2,_0x401635._0x578adc,0x17a,_0x401635._0x1f8f72),'lsp',_0x47e754(-0x10d,-0xc4,-0x191,-0x34),sanitizePackageName(_0x748da3));}function getLspBinDir(_0x561350){const _0xd0f89={_0x3c332d:0x461,_0x2d8c3f:0x573,_0x384cf6:0x31d,_0x73d1f7:0x3eb,_0x170067:0x495},_0x391083={_0x333cf1:0x141,_0x4a06d7:0x1b};function _0x5884ec(_0x1cc622,_0x16c784,_0x1d428d,_0x4089c2){return _0x2fd7af(_0x1d428d-0x44e,_0x16c784-_0x391083._0x333cf1,_0x1cc622,_0x4089c2-_0x391083._0x4a06d7);}function _0xbe131a(_0x40198e,_0x14c961,_0x151bf3,_0x428b36){return _0x278b49(_0x40198e-0x148,_0x14c961-0x1d1,_0x14c961-0x46f,_0x151bf3);}return _0x4d3a21[_0xbe131a(0x3e7,_0xd0f89._0x3c332d,_0xd0f89._0x2d8c3f,0x3df)](getLspPackageDir(_0x561350),_0x5884ec(_0xd0f89._0x384cf6,_0xd0f89._0x73d1f7,0x3e8,_0xd0f89._0x170067),'.bin');}async function findPackageBinary(_0x1c2960,_0x21acc7){const _0x131ddc={_0x2c9340:0x5cd,_0x48fcba:0x6e9,_0x5b7d7c:0x5da,_0x533ae2:0x6f6,_0x4892dd:0x70c,_0x361db8:0x531};function _0x21e89f(_0xf5d6f5,_0x44ac3d,_0x34e462,_0x4a758b){return _0x2fd7af(_0x44ac3d-0x525,_0x44ac3d-0xc6,_0x34e462,_0x4a758b-0xd9);}let _0x38ce1e=_0x4d3a21[_0x486546(_0x131ddc._0x2c9340,0x7ac,_0x131ddc._0x48fcba,_0x131ddc._0x5b7d7c)](_0x21acc7);const _0x414c93=binaryNameForPlatform(_0x1c2960);function _0x486546(_0x4de203,_0x3fea7a,_0x47f4a8,_0x289e5c){return _0x278b49(_0x4de203-0x15b,_0x3fea7a-0xb3,_0x47f4a8-0x5f5,_0x4de203);}while(!![]){const _0x5927f4=_0x4d3a21[_0x486546(_0x131ddc._0x533ae2,_0x131ddc._0x4892dd,0x5e7,0x639)](_0x38ce1e,_0x486546(_0x131ddc._0x361db8,0x560,0x5de,0x6a0),'.bin',_0x414c93);if(await exists(_0x5927f4))return _0x5927f4;const _0x3c38a8=_0x4d3a21['dirname'](_0x38ce1e);if(_0x3c38a8===_0x38ce1e)return void 0x0;_0x38ce1e=_0x3c38a8;}}async function findPathBinary(_0x5224b9,_0x5e6702){const _0x49eb31={_0x93ec8b:0x340,_0x12a6c4:0x23e,_0x47ce7f:0x27c,_0x53fcfb:0x359,_0x551e4f:0x721,_0x50c854:0x532,_0x17edbe:0x9b,_0x48526f:0x1cf,_0x37cdb4:0x78},_0x50fd01={_0x392868:0x52},_0x2c1f25={_0x29b3ff:0x307};function _0x1c0ff3(_0x55e095,_0xe8bc1f,_0xc6243c,_0x5ae61f){return _0x2fd7af(_0xc6243c-_0x2c1f25._0x29b3ff,_0xe8bc1f-0x16a,_0x55e095,_0x5ae61f-0x145);}function _0x5460af(_0xa66e44,_0x5be01b,_0x26d42,_0x190376){return _0x278b49(_0xa66e44-0x1a8,_0x5be01b-_0x50fd01._0x392868,_0x5be01b-0x674,_0x26d42);}const _0xadd963=getLspBinDir(_0x5e6702),_0x445e11=[_0xadd963,process[_0x1c0ff3(0x200,0x33f,_0x49eb31._0x93ec8b,_0x49eb31._0x12a6c4)][_0x1c0ff3(0x1c9,0x350,_0x49eb31._0x47ce7f,_0x49eb31._0x53fcfb)]]['filter'](Boolean)[_0x5460af(_0x49eb31._0x551e4f,0x666,_0x49eb31._0x50c854,0x77f)](_0x4d3a21[_0x1c0ff3(_0x49eb31._0x17edbe,_0x49eb31._0x48526f,0x194,_0x49eb31._0x37cdb4)]);try{return await _0x29ac84(_0x5224b9,{'path':_0x445e11});}catch{return void 0x0;}}async function resolvePackageBinary(_0x275a1b){const _0x187caf={_0x277712:0x3ed,_0x54c6f6:0x3c4,_0x10f77c:0x333,_0x3fd3b5:0x37c,_0x9f5514:0x2e2,_0x281b98:0x2d0,_0x4fb37f:0x2ce,_0x308e8f:0x274,_0x278c93:0x315,_0x5abf62:0x2d5,_0x572813:0x279,_0x27fb10:0x3df,_0x55adb5:0x45b,_0x5c417a:0x323,_0x59a653:0x1e0,_0x51a33f:0x2b4,_0x1b4406:0xc9,_0x567455:0x223,_0x3e7603:0x485,_0x2b04a3:0x3ef},_0x43838a={_0x267b7d:0x647,_0x3570fa:0x574,_0x10a103:0x42c},_0xb01699={_0x5375f4:0x3a9,_0x2749eb:0x62,_0x31e121:0x172},_0x1e0b74={_0x487435:0x2ab},_0x51c826=_0x275a1b['binaryName']??_0x275a1b['packageName'];function _0x73ee75(_0x58faa5,_0x31dbad,_0x323f6b,_0x473d9){return _0x278b49(_0x58faa5-0xd5,_0x31dbad-0x144,_0x58faa5-_0x1e0b74._0x487435,_0x473d9);}const _0x308ead=await findPackageBinary(_0x51c826,_0x275a1b['startDir']);function _0x30bf6d(_0x2934e3,_0x3b0091,_0x26e2e5,_0x123429){return _0x2fd7af(_0x123429-_0xb01699._0x5375f4,_0x3b0091-_0xb01699._0x2749eb,_0x2934e3,_0x123429-_0xb01699._0x31e121);}if(_0x308ead)return _0x308ead;const _0x5d7aed=await findPathBinary(_0x51c826,_0x275a1b[_0x30bf6d(0x2a7,_0x187caf._0x277712,_0x187caf._0x54c6f6,0x323)]);if(_0x5d7aed)return _0x5d7aed;const _0x5c1dd4=_0x275a1b[_0x73ee75(_0x187caf._0x10f77c,0x324,_0x187caf._0x3fd3b5,_0x187caf._0x9f5514)]??process[_0x73ee75(_0x187caf._0x10f77c,_0x187caf._0x281b98,0x2f6,_0x187caf._0x4fb37f)];if(shouldDisableLspDownload(_0x5c1dd4))return void 0x0;const _0x43e5ae=getLspPackageDir(_0x275a1b[_0x73ee75(_0x187caf._0x308e8f,0x172,_0x187caf._0x278c93,_0x187caf._0x5abf62)]),_0x3521e0=_0x275a1b[_0x30bf6d(_0x187caf._0x572813,_0x187caf._0x27fb10,_0x187caf._0x55adb5,_0x187caf._0x5c417a)]+':'+_0x51c826;let _0x29362b=installPromises[_0x73ee75(_0x187caf._0x59a653,_0x187caf._0x51a33f,_0x187caf._0x1b4406,0x15d)](_0x3521e0);!_0x29362b&&(_0x29362b=((async()=>{const _0x6d69b1={_0x58a3fc:0x2d7,_0x332eff:0x100};await mkdir(_0x43e5ae,{'recursive':!![]});const _0x1fb10f=await runNpmInstall(_0x43e5ae,_0x275a1b['packageName'],_0x5c1dd4);function _0x63dbde(_0x329dad,_0x565014,_0x38a74a,_0x1eb4b0){return _0x73ee75(_0x565014-_0x6d69b1._0x58a3fc,_0x565014-0xf0,_0x38a74a-_0x6d69b1._0x332eff,_0x38a74a);}if(!_0x1fb10f)return void 0x0;const _0xcc28ae=_0x4d3a21[_0x63dbde(_0x43838a._0x267b7d,_0x43838a._0x3570fa,0x4e6,_0x43838a._0x10a103)](getLspBinDir(_0x275a1b['packageName']),binaryNameForPlatform(_0x51c826));return await exists(_0xcc28ae)?_0xcc28ae:void 0x0;})()),installPromises[_0x30bf6d(_0x187caf._0x567455,0x28d,0x39c,0x269)](_0x3521e0,_0x29362b));try{return await _0x29362b;}catch{return void 0x0;}finally{installPromises[_0x30bf6d(_0x187caf._0x3e7603,0x50c,0x384,_0x187caf._0x2b04a3)](_0x3521e0);}}var TYPESCRIPT_EXTENSIONS=['.ts',_0x2fd7af(-0x1a4,-0x246,-0x140,-0x2d1),_0x278b49(-0xff,-0xb6,0x1d,0x134),'.jsx',_0x2fd7af(-0x1af,-0x27c,-0x178,-0xee),_0x278b49(-0x1e4,0x3c,-0xb6,0x11),_0x2fd7af(-0x89,0x82,-0x106,0x9d),_0x2fd7af(0xd0,-0x4d,0x7,-0x68)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x278b49(0xf9,0xc5,-0x10,0x105),_0x278b49(-0x39,-0x22e,-0x120,-0x14f)],TYPESCRIPT_ROOT_MARKERS=[_0x2fd7af(-0x45,-0x17c,-0x11,0x86),_0x2fd7af(-0xd8,-0xc3,-0x179,0x6d),_0x2fd7af(-0x186,-0x10a,-0x4e,-0x49),_0x2fd7af(-0x22,-0xdf,-0xdf,0x66),'yarn.lock',_0x278b49(-0x53,0xda,0xc3,-0x1a),_0x2fd7af(-0xb9,-0x1e0,-0x1bb,-0x1ae),_0x2fd7af(0xa9,0x54,0x198,0x190)],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc',_0x2fd7af(-0x45,-0x11c,-0x14a,0xa2),_0x278b49(-0x183,0x6b,-0x89,-0x1a9),'bun.lock','pnpm-lock.yaml',_0x278b49(0x7d,0x3d,-0x98,0x66),_0x2fd7af(0xa9,0x16d,0x32,0x15e)];async function exists2(_0x47603f){try{return await _0x3d9279(_0x47603f),!![];}catch{return![];}}async function findUp(_0x5dddc5,_0xd05538){const _0x4a6801={_0x19e6c6:0x745,_0x4514b4:0x59d,_0x5b01e7:0x5aa,_0xd29adc:0x5bb,_0x59019c:0x5ad,_0x43dd61:0x678,_0xef920a:0x66e,_0x29f683:0x6ab},_0x420d7e={_0x3ca451:0x45,_0x5d6794:0x643};let _0x34ff80=_0x4b0f89[_0x26ff6a(0x645,_0x4a6801._0x19e6c6,_0x4a6801._0x4514b4,0x673)](_0x5dddc5);function _0x26ff6a(_0x5b8a5d,_0x80f9c5,_0x3a6979,_0x2874cd){return _0x278b49(_0x5b8a5d-0xb1,_0x80f9c5-0x187,_0x5b8a5d-0x551,_0x3a6979);}function _0x1a90d(_0x1ad8db,_0xbeb5f3,_0x1aaa40,_0x3af059){return _0x278b49(_0x1ad8db-0x16d,_0xbeb5f3-_0x420d7e._0x3ca451,_0xbeb5f3-_0x420d7e._0x5d6794,_0x3af059);}const _0xb7c604=_0x4b0f89[_0x1a90d(0x4d3,0x5c2,0x48b,_0x4a6801._0x5b01e7)](_0x34ff80);if(_0xb7c604)_0x34ff80=_0x4b0f89['dirname'](_0x34ff80);while(!![]){for(const _0x71dd16 of _0xd05538){if(await exists2(_0x4b0f89[_0x1a90d(0x6aa,0x635,_0x4a6801._0xd29adc,_0x4a6801._0x59019c)](_0x34ff80,_0x71dd16)))return _0x34ff80;}const _0x596f16=_0x4b0f89[_0x1a90d(_0x4a6801._0x43dd61,_0x4a6801._0xef920a,0x68a,_0x4a6801._0x29f683)](_0x34ff80);if(_0x596f16===_0x34ff80)return void 0x0;_0x34ff80=_0x596f16;}}async function hasDenoRoot(_0x410da7){const _0x535f73={_0x49d437:0x5e9,_0x4b4478:0x644,_0x4bce5e:0x4e0},_0x10e1c0={_0x271d9b:0x1ea},_0x2ba09a={_0x64d9ed:0x681,_0x1e26af:0x126};function _0x3749a0(_0xaa9009,_0x2e9221,_0x3af646,_0x49bc41){return _0x2fd7af(_0x49bc41-_0x2ba09a._0x64d9ed,_0x2e9221-0x11a,_0x2e9221,_0x49bc41-_0x2ba09a._0x1e26af);}function _0x4820e3(_0x415bfb,_0x495413,_0x3de17e,_0x4facd8){return _0x2fd7af(_0x495413-0x6b1,_0x495413-_0x10e1c0._0x271d9b,_0x415bfb,_0x4facd8-0x178);}return await exists2(_0x4b0f89['join'](_0x410da7,_0x3749a0(_0x535f73._0x49d437,0x552,0x6b0,_0x535f73._0x4b4478)))||await exists2(_0x4b0f89[_0x3749a0(0x4f3,0x743,_0x535f73._0x4bce5e,0x624)](_0x410da7,'deno.jsonc'));}async function resolveTsserverPath(_0x40b982){const _0x56b02f={_0x55d49b:0x537,_0x42ec8d:0x717,_0x518f0f:0x60a,_0x1e1933:0x4db,_0x269f2a:0x4ff,_0x5bef6b:0x4f6,_0xdd0ae9:0x52b,_0x199b3a:0x18,_0x5bb4b3:0x42,_0x8cf4d2:0x71,_0x2af251:0x14a,_0x14f634:0xfd,_0x53c417:0x100,_0x2f87ac:0x1ce,_0x34c55f:0x112,_0x58bf51:0x250,_0x549a24:0x3dc,_0x4d8a27:0x5b1,_0x4f6a8f:0x17e,_0x1b0a0f:0xe5,_0x458535:0x184,_0x6a9f78:0x112,_0x209d0c:0x101},_0x2696a2={_0x31b9a7:0x1c2,_0x2e6e7a:0x55,_0x494102:0x516};function _0x5bfeae(_0x754c00,_0x4e2d33,_0x48819a,_0xb5ade5){return _0x278b49(_0x754c00-_0x2696a2._0x31b9a7,_0x4e2d33-_0x2696a2._0x2e6e7a,_0xb5ade5-_0x2696a2._0x494102,_0x48819a);}let _0x3d7022=_0x4b0f89[_0x5bfeae(_0x56b02f._0x55d49b,_0x56b02f._0x42ec8d,0x5c4,_0x56b02f._0x518f0f)](_0x40b982);function _0x96a063(_0x5a8dbf,_0x36730b,_0x3569ff,_0x5bb640){return _0x278b49(_0x5a8dbf-0x71,_0x36730b-0x59,_0x3569ff-0x120,_0x5a8dbf);}while(!![]){const _0x38d2d6=_0x4b0f89['join'](_0x3d7022,_0x5bfeae(0x4cc,0x569,_0x56b02f._0x1e1933,_0x56b02f._0x269f2a),_0x5bfeae(0x4f3,_0x56b02f._0x5bef6b,_0x56b02f._0xdd0ae9,0x46b),'lib',_0x96a063(_0x56b02f._0x199b3a,-_0x56b02f._0x5bb4b3,-0x33,-0x122));if(await exists2(_0x38d2d6))return _0x38d2d6;const _0x583991=_0x4b0f89['dirname'](_0x3d7022);if(_0x583991===_0x3d7022)break;_0x3d7022=_0x583991;}const _0x5ddfcc=getLspPackageDir(_0x96a063(-0xa3,0x79,0x75,-_0x56b02f._0x8cf4d2)),_0x552265=await resolvePackageBinary({'packageName':_0x96a063(0xa6,0x112,0x75,_0x56b02f._0x2af251),'binaryName':_0x96a063(-_0x56b02f._0x14f634,-0x75,0x25,-_0x56b02f._0x53c417),'startDir':_0x40b982});if(!_0x552265)return void 0x0;const _0x56dc43=_0x4b0f89[_0x96a063(0x4d,_0x56b02f._0x2f87ac,_0x56b02f._0x34c55f,_0x56b02f._0x58bf51)](_0x5ddfcc,_0x5bfeae(_0x56b02f._0x549a24,_0x56b02f._0x4d8a27,0x4ee,_0x56b02f._0x269f2a),_0x96a063(-0x68,_0x56b02f._0x4f6a8f,0x75,_0x56b02f._0x1b0a0f),_0x96a063(_0x56b02f._0x458535,0x27b,0x15a,0x173),_0x96a063(-0x87,-_0x56b02f._0x6a9f78,-0x33,_0x56b02f._0x209d0c));return await exists2(_0x56dc43)?_0x56dc43:void 0x0;}var TypeScriptServer={'id':_0x278b49(-0x49,-0x28,-0xab,-0x11),'name':_0x278b49(-0xd1,0x28,-0x102,-0x7b),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x3aa8d6){const _0x57eda5=await findUp(_0x3aa8d6,TYPESCRIPT_ROOT_MARKERS);if(!_0x57eda5)return void 0x0;return await hasDenoRoot(_0x57eda5)?void 0x0:_0x57eda5;},async 'spawn'(_0x91c532){const _0x1568c6={_0x268ff3:0x203,_0x579589:0x2ea,_0x2936b0:0x24a,_0x4738b7:0x264},_0x662670={_0x13e1c4:0x44c},_0x8159f5={_0x34455b:0xc7,_0xaa0927:0x134},_0x41bb4f=await resolveTsserverPath(_0x91c532);if(!_0x41bb4f)return void 0x0;function _0x579c46(_0x5e8454,_0x20b389,_0x5b28d4,_0x395b61){return _0x278b49(_0x5e8454-_0x8159f5._0x34455b,_0x20b389-_0x8159f5._0xaa0927,_0x395b61-0x280,_0x5e8454);}function _0x4005fa(_0x15e46a,_0x230d05,_0x9ed13c,_0x1668af){return _0x2fd7af(_0x230d05-_0x662670._0x13e1c4,_0x230d05-0x1d8,_0x15e46a,_0x1668af-0x9c);}const _0x200ef8=await resolvePackageBinary({'packageName':_0x4005fa(_0x1568c6._0x268ff3,_0x1568c6._0x579589,_0x1568c6._0x2936b0,0x365),'binaryName':'typescript-language-server','startDir':_0x91c532});if(!_0x200ef8)return void 0x0;return{'process':_0x5ae30a(_0x200ef8,[_0x579c46(_0x1568c6._0x4738b7,0x410,0x347,0x339)],{'cwd':_0x91c532,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x41bb4f}}};}},BiomeServer={'id':_0x278b49(-0x1af,-0x11b,-0x16b,-0x186),'name':_0x278b49(-0x2e,0xda,0xb,0x0),'extensions':BIOME_EXTENSIONS,async 'root'(_0x58dedb){return findUp(_0x58dedb,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4f73da){const _0x1d2fec={_0x304b85:0x125,_0x4e944b:0x16d,_0x55f878:0x47,_0x3c2698:0xb5,_0x24ce11:0x1f8,_0x4c9be2:0x124,_0x25e308:0x235,_0x9c98ea:0x18,_0x502628:0x12},_0x5b62a8={_0x2efc7e:0xa1,_0x213190:0x6b},_0x44effa={_0x3e37cb:0x5d,_0x7bd47f:0xef,_0x17476a:0x49},_0x3e0de9=await findPackageBinary(_0xa2645e(-0x138,-0x1b4,-_0x1d2fec._0x304b85,-_0x1d2fec._0x4e944b),_0x4f73da)??await resolvePackageBinary({'packageName':_0xa2645e(_0x1d2fec._0x55f878,_0x1d2fec._0x3c2698,_0x1d2fec._0x24ce11,0x1bc),'binaryName':'biome','startDir':_0x4f73da});function _0xa2645e(_0x41d1a0,_0x14e33e,_0x3f755e,_0x1650d8){return _0x278b49(_0x41d1a0-_0x44effa._0x3e37cb,_0x14e33e-_0x44effa._0x7bd47f,_0x14e33e- -_0x44effa._0x17476a,_0x1650d8);}if(!_0x3e0de9)return void 0x0;function _0x3723a3(_0x411a2c,_0x5b7c55,_0x19116c,_0x598920){return _0x278b49(_0x411a2c-0x39,_0x5b7c55-_0x5b62a8._0x2efc7e,_0x411a2c-_0x5b62a8._0x213190,_0x19116c);}return{'process':_0x5ae30a(_0x3e0de9,['lsp-proxy',_0x3723a3(_0x1d2fec._0x4c9be2,0x80,_0x1d2fec._0x25e308,0x109)],{'cwd':_0x4f73da,'stdio':_0x3723a3(-_0x1d2fec._0x9c98ea,0xc9,_0x1d2fec._0x502628,-0xd1)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x311ec2){const _0x5730be={_0x4bffe3:0x22b,_0x21d4d7:0x21c,_0x5ea275:0x2f3,_0xc40c47:0x3f6,_0x296d90:0x398,_0x5225ea:0x2bb,_0x26ad81:0x237,_0x4a56e0:0x1f0},_0xf4e8b9={_0x3c550a:0x2c0};function _0x878cec(_0xd01ef6,_0x8fb2b0,_0x3875d1,_0xb1895c){return _0x2fd7af(_0xb1895c-0x2ec,_0x8fb2b0-0x1e0,_0x3875d1,_0xb1895c-0x1be);}const _0x3746d9=_0x4b0f89[_0x878cec(_0x5730be._0x4bffe3,0x30f,0x2c9,_0x5730be._0x21d4d7)](_0x311ec2)[_0x22fcd6(_0x5730be._0x5ea275,_0x5730be._0xc40c47,0x497,_0x5730be._0x296d90)]();function _0x22fcd6(_0x3bcea2,_0x42d311,_0x309fb0,_0x1e9baa){return _0x278b49(_0x3bcea2-0x1af,_0x42d311-0x104,_0x1e9baa-_0xf4e8b9._0x3c550a,_0x42d311);}return BUILTIN_LSP_SERVERS[_0x22fcd6(_0x5730be._0x5225ea,0x2a8,_0x5730be._0x26ad81,_0x5730be._0x4a56e0)](_0x4a5d72=>_0x4a5d72['extensions'][_0x878cec(0x257,0x3b8,0x2f9,0x326)](_0x3746d9));}function stateKey(_0x9dc449,_0x55ae9a){return _0x55ae9a+':'+_0x9dc449['id'];}function diagnosticsKeyToPath(_0x154a77){const _0x9ee9ca={_0x3cc088:0xae,_0x58ae42:0xf3},_0x26e4b2={_0x53d4d1:0x1bf};if(!_0x154a77[_0x4636e6(-0x1b,-_0x9ee9ca._0x3cc088,-0x10,-_0x9ee9ca._0x58ae42)]('file://'))return _0x154a77;function _0x4636e6(_0x5b9724,_0x2a4a3c,_0x47f5e6,_0x2b226b){return _0x2fd7af(_0x5b9724-0x101,_0x2a4a3c-0x1e0,_0x47f5e6,_0x2b226b-_0x26e4b2._0x53d4d1);}return fileURLToPath(_0x154a77);}function nextFileVersion(_0x4e0eea,_0x518f05){const _0x189e2a={_0x3c5160:0xec,_0x9b1d4e:0xb3,_0xe6523c:0xf5,_0x4d0998:0x67,_0x35aa1e:0x32,_0xa3e210:0x84,_0x491438:0x128,_0x416d89:0x41},_0x120c10={_0x162d5d:0x35},_0x31f479={_0xcaca4c:0x174,_0x114a35:0x132};function _0x2a140e(_0x2cb526,_0x54d833,_0x4173bf,_0x1369f7){return _0x278b49(_0x2cb526-_0x31f479._0xcaca4c,_0x54d833-0x4e,_0x2cb526-_0x31f479._0x114a35,_0x1369f7);}const _0x430a45=(_0x4e0eea[_0x2a140e(-0x19,-_0x189e2a._0x3c5160,-_0x189e2a._0x9b1d4e,-_0x189e2a._0xe6523c)][_0x2a140e(_0x189e2a._0x4d0998,-_0x189e2a._0x35aa1e,_0x189e2a._0xa3e210,_0x189e2a._0x491438)](_0x518f05)??0x1)+0x1;function _0x1f4a9b(_0x3746d7,_0x57104a,_0x46d51c,_0x2acd1d){return _0x278b49(_0x3746d7-_0x120c10._0x162d5d,_0x57104a-0x16c,_0x2acd1d-0x593,_0x3746d7);}return _0x4e0eea['fileVersions'][_0x2a140e(_0x189e2a._0x416d89,-0x9a,-0x74,0xa2)](_0x518f05,_0x430a45),_0x430a45;}async function collectClientResults(_0x299cce){const _0x2a739e={_0x53a946:0x21a},_0x3bcce6={_0x1c734f:0xc3},_0x3b0d03={_0x5abfb0:0x166,_0x477755:0x1eb,_0x3b2d84:0x374};function _0x3f5eab(_0x288f62,_0x3f2bc5,_0x11b48f,_0x44d649){return _0x278b49(_0x288f62-_0x3b0d03._0x5abfb0,_0x3f2bc5-_0x3b0d03._0x477755,_0x3f2bc5-_0x3b0d03._0x3b2d84,_0x44d649);}function _0x1cd9f8(_0xc326b2,_0x55a0e8,_0x1fef74,_0x12ede0){return _0x278b49(_0xc326b2-0x118,_0x55a0e8-_0x3bcce6._0x1c734f,_0x12ede0-0x550,_0xc326b2);}const _0x3d5feb=await Promise['allSettled'](_0x299cce);return _0x3d5feb[_0x3f5eab(0x1e0,_0x2a739e._0x53a946,0x1a6,0x18b)](_0x1cca66=>_0x1cca66[_0x3f5eab(0x244,0x2b5,0x187,0x277)]===_0x3f5eab(0x3e9,0x3b5,0x274,0x3a5)?_0x1cca66['value']:[]);}function createLspService(_0x421f6f={}){const _0x3129ed={_0x251f65:0x4d,_0xd79572:0xfa,_0x2b463c:0xb3,_0x490f44:0xf8},_0x3f6af1={_0x5b7061:0x451,_0x2dc0aa:0x1ea,_0x1c639c:0x19c},_0x48ac6f={_0x16a71f:0x113,_0x4aa607:0x17e,_0x1a625e:0x2a7,_0x5961d0:0x1de,_0x598d5f:0x216,_0x207032:0x110,_0x22e117:0x7f,_0x2201d9:0x18c,_0x151bac:0x120,_0x4c0506:0x16b,_0x2f8f7d:0x186,_0x2c4e89:0x58,_0x1a31c0:0x3c,_0x51a75f:0xb0,_0x1af242:0x11c,_0x49eaf2:0x195,_0xde6489:0x209,_0x41fac1:0x196,_0x3e0270:0x24,_0x4747ff:0x11,_0x2c11d9:0x268,_0x28d4ac:0x1d4,_0x219539:0x220,_0x2cd837:0x78,_0x5263cc:0x51,_0x532deb:0x47},_0x3604f2={_0x2d141a:0x5fc,_0x15153d:0xb7,_0x56da91:0x131},_0x34972c={_0x1a21f7:0x31,_0x2dea50:0x73},_0x27c0c9={_0x16196b:0x76,_0x136046:0x1a0},_0x51644b={_0x492649:0x170,_0xa31d1:0x168,_0x560d2e:0x1ce},_0xb5116={_0xbd462e:0x145,_0x2c62c5:0x1df},_0x385ad={_0x1ef531:0x42},_0x104cd9={_0x2971d1:0x167,_0x3f43ce:0x135,_0x2ce715:0x8},_0xc438bc={_0x4b8ccf:0x56b,_0x63d35a:0x48},_0x17e08d={_0x338739:0x666,_0x4fb497:0x686,_0x321b71:0x5f7,_0x2a28a0:0x5cb,_0x32a795:0x59c,_0x491c7a:0x479,_0x1ff525:0x4eb,_0x7e170e:0x4d2},_0x5b94c6={_0x35fb1b:0x10b,_0x2f09c3:0xae},_0xc27bd3={_0x4f9928:0x260,_0x16b691:0x3a1},_0x5b48b8={_0x36fdcd:0x27f,_0x44c7a0:0x181,_0x4f00f7:0xf9},_0x4f6726={_0x2ccb4a:0x3f1,_0x402b91:0x4f5},_0x2523df={_0x890f20:0x64},_0x10f2d8={_0x23aa56:0x2eb,_0xebc8b5:0x3d5,_0x1fb439:0x477,_0x4110e7:0x4a6},_0x379cb3={_0xbf484d:0xa,_0x455036:0xee},_0xfc40d7={_0x4e780d:0x100,_0xffb115:0x61,_0x3e8ade:0x1e},_0xe8669={_0x17bfb4:0x5dc,_0x4d49c0:0x127},_0x38797e={_0x4cb0c2:0x7b,_0x155c8e:0x4d,_0x2344f6:0xcc},_0x592184={_0x3f7d4c:0x570,_0x37d196:0x17f,_0xe8bc6a:0x13c},_0x291182={_0x575782:0x8b,_0x1014ab:0xa3,_0x202801:0x172},_0x41d02e={_0x26c368:0x409,_0x3560a8:0xb3},_0x5653df={_0xd5b6fc:0x6d,_0x3378fd:0x37,_0x36e8e6:0x78,_0x50378a:0x29a,_0x533219:0x2c6,_0x54e48a:0x409},_0x115bca={_0x2e642c:0x79f,_0x108e32:0x5f3,_0x100e8d:0x640,_0x4e3f62:0x572,_0x52864c:0x704,_0x30372b:0x6e2,_0x1ab361:0x4b0,_0x2d3c62:0x4ae,_0x2e595c:0x678,_0x2a81b2:0x30a,_0x137949:0x44a,_0x33a659:0x4ef,_0x370c16:0x30b},_0x369be9={_0x4fd17f:0x5e0,_0x13be5b:0x16f},_0x5518e8={_0x1abe28:0x65,_0xa474ba:0x170,_0x222ed3:0x281,_0x39f672:0x265,_0xe47306:0x2b8,_0x476507:0x1ea,_0x498b83:0x2bf,_0x2de7b1:0x3aa,_0x464121:0x3c9,_0x40e9a5:0x37e,_0x8aa977:0x4cf,_0x2162c0:0x3ad},_0x314c16={_0x933314:0x3a7},_0x1eca0e={_0x3d06ea:0x99,_0x31987d:0x87,_0x13b726:0x491,_0x1c35ca:0x35b,_0x1a0bbf:0x36c,_0x3d2016:0x19d,_0x4edce1:0x94,_0x4208aa:0x5e,_0x4a2156:0x196,_0x2da791:0x197,_0x1251a6:0x8c,_0x2a8f63:0x81,_0xda1438:0x3f0,_0x524d42:0x3d1,_0x5b9fa2:0x319,_0x4fdb8e:0xb0,_0x24d804:0x145,_0x2365f1:0x85},_0x6a3723={_0xbb9944:0x342,_0x1bc912:0xde,_0x36c932:0xec,_0x44fde7:0x10b,_0x1bddc7:0x2db,_0x35da32:0x352,_0x532927:0x46e},_0x30776e={_0x53705e:0x575,_0x5549fb:0x23},_0xd14052={_0x5ae096:0x236,_0x2f717:0x8a},_0x59ed36={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x4ab8be=()=>_0x421f6f[_0x1a5fc6(0x578,0x4ec,0x6a3,0x4df)]!==![];async function _0x1cc479(_0xfe0695,_0x3b5015){const _0x563856={_0x5767e7:0x3a6,_0x1458a3:0x1c,_0x1b2d74:0x33},_0xa19590={_0x1935a0:0x2e,_0x2b0769:0x5b};function _0x5f118c(_0x4e2d79,_0x301e08,_0x30dc3e,_0x23d7b5){return _0x1a5fc6(_0x301e08- -_0xd14052._0x5ae096,_0x301e08-0x107,_0x30dc3e-_0xd14052._0x2f717,_0x4e2d79);}const _0x50ee4c=stateKey(_0xfe0695,_0x3b5015);function _0x2559a0(_0x486d9e,_0x1d2689,_0x27a32e,_0xeda781){return _0x1a5fc6(_0x27a32e- -_0x30776e._0x53705e,_0x1d2689-0xdb,_0x27a32e-_0x30776e._0x5549fb,_0x486d9e);}const _0x3a1c5f=_0x59ed36[_0x2559a0(0x7,-0x103,-_0x1eca0e._0x3d06ea,_0x1eca0e._0x31987d)][_0x5f118c(_0x1eca0e._0x13b726,_0x1eca0e._0x1c35ca,_0x1eca0e._0x1a0bbf,0x2da)](_0x136575=>_0x136575[_0x5f118c(0x30a,0x346,0x368,0x256)]===_0xfe0695['id']&&_0x136575[_0x5f118c(0x1b1,0x1d6,0x131,0x1e5)]===_0x3b5015);if(_0x3a1c5f)return _0x3a1c5f;if(_0x59ed36[_0x2559a0(_0x1eca0e._0x3d2016,-_0x1eca0e._0x4edce1,_0x1eca0e._0x4208aa,_0x1eca0e._0x4a2156)][_0x2559a0(-_0x1eca0e._0x2da791,-_0x1eca0e._0x1251a6,-_0x1eca0e._0x2a8f63,-0xf1)](_0x50ee4c))return void 0x0;const _0x31463b=_0x59ed36[_0x5f118c(0x21a,0x323,_0x1eca0e._0xda1438,_0x1eca0e._0x524d42)][_0x5f118c(0x102,0x220,0x1f9,_0x1eca0e._0x5b9fa2)](_0x50ee4c);if(_0x31463b)return _0x31463b;const _0x22cc5c=((async()=>{function _0x3427ad(_0x3ff5b2,_0x14dd1b,_0x4472f8,_0x4c4336){return _0x5f118c(_0x4c4336,_0x14dd1b- -_0xa19590._0x1935a0,_0x4472f8-0x85,_0x4c4336-_0xa19590._0x2b0769);}function _0x1f7e23(_0x4478f6,_0x582e32,_0x27d0d9,_0x24b5e8){return _0x5f118c(_0x24b5e8,_0x27d0d9- -_0x563856._0x5767e7,_0x27d0d9-_0x563856._0x1458a3,_0x24b5e8-_0x563856._0x1b2d74);}try{const _0x8bc45a=await _0xfe0695[_0x1f7e23(-0x2bc,-_0x6a3723._0xbb9944,-0x1fd,-_0x6a3723._0x1bc912)](_0x3b5015);if(!_0x8bc45a)return _0x59ed36[_0x3427ad(0x466,0x36f,0x40b,0x38c)]['add'](_0x50ee4c),void 0x0;const _0x2d090d=await createLspClient({'server':_0xfe0695,'root':_0x3b5015,'handle':_0x8bc45a}),_0x2f42f7=_0x59ed36['clients']['find'](_0x26bac6=>_0x26bac6[_0x3427ad(0x1eb,0x318,0x3b8,0x21c)]===_0xfe0695['id']&&_0x26bac6[_0x1f7e23(-0x13c,-0x251,-0x1d0,-0x217)]===_0x3b5015);if(_0x2f42f7)return await _0x2d090d[_0x1f7e23(-_0x6a3723._0x36c932,-_0x6a3723._0x44fde7,-0x1d6,-0x18c)](),_0x2f42f7;return _0x59ed36['clients'][_0x3427ad(0x3e1,0x3be,0x29b,_0x6a3723._0x1bddc7)](_0x2d090d),_0x2d090d;}catch{return _0x59ed36['broken']['add'](_0x50ee4c),void 0x0;}finally{_0x59ed36['spawning'][_0x3427ad(0x3f7,_0x6a3723._0x35da32,_0x6a3723._0x532927,0x482)](_0x50ee4c);}})());return _0x59ed36['spawning'][_0x2559a0(-0x17f,-_0x1eca0e._0x4fdb8e,-_0x1eca0e._0x24d804,-_0x1eca0e._0x2365f1)](_0x50ee4c,_0x22cc5c),_0x22cc5c;}async function _0x27fd2f(_0x2cdad9,_0x275be8){const _0x53c6d9={_0x21ec1c:0x259,_0x14a3fc:0xbe,_0x241432:0x17f};function _0x3fb5e1(_0x5f12ab,_0x5458c9,_0x197a7f,_0x5d1905){return _0x1a5fc6(_0x197a7f- -_0x314c16._0x933314,_0x5458c9-0xf9,_0x197a7f-0x75,_0x5d1905);}function _0x59293a(_0x286207,_0x3cc72d,_0x162732,_0x1e1081){return _0x1a5fc6(_0x162732- -_0x53c6d9._0x21ec1c,_0x3cc72d-_0x53c6d9._0x14a3fc,_0x162732-_0x53c6d9._0x241432,_0x286207);}if(!_0x4ab8be())return[];const _0x21cb8b=[];for(const _0x2ddb83 of getServersForFile(_0x2cdad9)){const _0xdfb64a=await _0x2ddb83[_0x3fb5e1(-0x95,0x65,_0x5518e8._0x1abe28,-0x2b)](_0x2cdad9);if(!_0xdfb64a)continue;const _0x59faee=stateKey(_0x2ddb83,_0xdfb64a);if(_0x59ed36['broken'][_0x3fb5e1(0x253,0xbd,0x14d,0x1cf)](_0x59faee))continue;const _0x29d01d=_0x59ed36[_0x59293a(_0x5518e8._0xa474ba,_0x5518e8._0x222ed3,0x283,_0x5518e8._0x39f672)][_0x3fb5e1(_0x5518e8._0xe47306,0x22d,_0x5518e8._0x476507,0x168)](_0x1aa3ee=>_0x1aa3ee[_0x59293a(0x3bd,0x38a,0x323,0x426)]===_0x2ddb83['id']&&_0x1aa3ee[_0x3fb5e1(0x5f,0x196,0x65,0x9a)]===_0xdfb64a);if(_0x29d01d){_0x21cb8b[_0x59293a(_0x5518e8._0x498b83,_0x5518e8._0x2de7b1,_0x5518e8._0x464121,_0x5518e8._0x40e9a5)](_0x29d01d);continue;}if(!_0x275be8)continue;const _0x4f8936=await _0x1cc479(_0x2ddb83,_0xdfb64a);if(_0x4f8936)_0x21cb8b[_0x59293a(_0x5518e8._0x8aa977,_0x5518e8._0x2162c0,0x3c9,0x331)](_0x4f8936);}return _0x21cb8b;}async function _0x51e77d(_0x35101e,_0x1cfa10=![]){const _0x3ea1bc={_0x254bb0:0x2ff,_0x595487:0x192},_0x3b50fb={_0x3775e5:0x199};function _0x4d0eda(_0x3268c5,_0x1a30c7,_0xe757b2,_0x206e11){return _0x1a5fc6(_0x3268c5- -_0x369be9._0x4fd17f,_0x1a30c7-0x118,_0xe757b2-_0x369be9._0x13be5b,_0xe757b2);}const _0x217aa5=await _0x27fd2f(_0x35101e,!![]);function _0x4ce5ec(_0x4b54b0,_0x4ab534,_0x5dc3e0,_0x3a47e6){return _0x1a5fc6(_0x4b54b0- -_0x3b50fb._0x3775e5,_0x4ab534-0xce,_0x5dc3e0-0x1bf,_0x5dc3e0);}await Promise[_0x4d0eda(-_0x5653df._0xd5b6fc,_0x5653df._0x3378fd,0xc0,_0x5653df._0x36e8e6)](_0x217aa5[_0x4ce5ec(0x2f8,_0x5653df._0x50378a,_0x5653df._0x533219,_0x5653df._0x54e48a)](async _0x5f7265=>{const _0x3787dd={_0x1230c4:0x44c};!_0x59ed36['openFiles']['has'](_0x5f7265[_0x55f740(_0x115bca._0x2e642c,_0x115bca._0x108e32,0x663,0x6e2)]+':'+_0x5f7265[_0x55f740(0x53c,0x563,_0x115bca._0x100e8d,_0x115bca._0x4e3f62)]+':'+_0x35101e)&&(await _0x5f7265[_0x55f740(0x6d5,0x773,0x57f,0x6a5)][_0x55f740(0x678,_0x115bca._0x52864c,0x7f5,0x7aa)]({'path':_0x35101e}),_0x59ed36[_0x2b6981(0x4e5,0x4a2,0x37f,0x5d8)]['add'](_0x5f7265[_0x55f740(0x792,0x75d,0x6fb,_0x115bca._0x30372b)]+':'+_0x5f7265['root']+':'+_0x35101e));function _0x2b6981(_0x310a29,_0x3585e8,_0x5c855a,_0x40f75d){return _0x4d0eda(_0x3585e8-_0x3787dd._0x1230c4,_0x3585e8-0xaf,_0x40f75d,_0x40f75d-0x1b2);}await _0x5f7265['notify'][_0x55f740(_0x115bca._0x1ab361,_0x115bca._0x2d3c62,_0x115bca._0x2e595c,0x56f)]({'path':_0x35101e,'version':nextFileVersion(_0x59ed36,_0x35101e)});function _0x55f740(_0x94ad15,_0xa4174,_0x41e922,_0x8377ff){return _0x4ce5ec(_0x8377ff-_0x3ea1bc._0x254bb0,_0xa4174-0x67,_0x94ad15,_0x8377ff-_0x3ea1bc._0x595487);}if(_0x1cfa10)await _0x5f7265[_0x2b6981(_0x115bca._0x2a81b2,_0x115bca._0x137949,_0x115bca._0x33a659,_0x115bca._0x370c16)]({'path':_0x35101e});}));}async function _0x20066f(_0x4dba82){function _0x47d939(_0x2752e4,_0x1d08e9,_0x1f3254,_0x3da660){return _0x1a5fc6(_0x2752e4- -_0x41d02e._0x26c368,_0x1d08e9-0x17f,_0x1f3254-_0x41d02e._0x3560a8,_0x1d08e9);}return await _0x51e77d(_0x4dba82[_0x47d939(_0x291182._0x575782,_0x291182._0x1014ab,_0x291182._0x202801,0x17e)],![]),_0x27fd2f(_0x4dba82['file'],![]);}function _0x1a5fc6(_0x2c96da,_0x2d6f8a,_0x2fa29d,_0x2a1b79){return _0x2fd7af(_0x2c96da-_0x592184._0x3f7d4c,_0x2d6f8a-_0x592184._0x37d196,_0x2a1b79,_0x2a1b79-_0x592184._0xe8bc6a);}async function _0x5ef9a5(_0x5ad24d){const _0x4e275b=await _0x20066f(_0x5ad24d);return collectClientResults(_0x4e275b['map'](_0x36b87b=>_0x36b87b['request']['prepareCallHierarchy'](_0x5ad24d)));}return{'isEnabled':_0x4ab8be,async 'hasClients'(_0x3a552f){const _0x45bf24={_0x66dda5:0x93,_0x3573d1:0x6d};function _0x4e1768(_0x1d80cc,_0x3102fb,_0x1905d4,_0x17a122){return _0x1a5fc6(_0x1d80cc- -0x489,_0x3102fb-_0x45bf24._0x66dda5,_0x1905d4-_0x45bf24._0x3573d1,_0x1905d4);}return(await _0x27fd2f(_0x3a552f,![]))[_0x4e1768(_0x38797e._0x4cb0c2,_0x38797e._0x155c8e,-0xba,-_0x38797e._0x2344f6)]>0x0||getServersForFile(_0x3a552f)['length']>0x0;},'touchFile':_0x51e77d,async 'diagnostics'(){const _0x5274cd={_0x38005f:0x130},_0x5b8cca={};for(const _0x44af3e of _0x59ed36[_0x2706a5(0x19,-0x5c,-_0xfc40d7._0x4e780d,-0x17a)]){for(const [_0x1c4d58,_0x2538d2]of _0x44af3e[_0x2706a5(0x24,_0xfc40d7._0xffb115,-_0xfc40d7._0x3e8ade,0x1e)]){_0x5b8cca[diagnosticsKeyToPath(_0x1c4d58)]=_0x2538d2;}}function _0xf8bb82(_0x479faf,_0x5a3e31,_0x475f3f,_0x15de25){return _0x1a5fc6(_0x5a3e31- -0x475,_0x5a3e31-_0x5274cd._0x38005f,_0x475f3f-0x5b,_0x15de25);}function _0x2706a5(_0x514df6,_0x490cab,_0x5217f9,_0x1f0635){return _0x1a5fc6(_0x5217f9- -_0xe8669._0x17bfb4,_0x490cab-0x116,_0x5217f9-_0xe8669._0x4d49c0,_0x490cab);}return _0x5b8cca;},async 'diagnosticsForFile'(_0x4acb5f){const _0x272236={_0x469e68:0x146,_0x55c909:0x84};function _0x18c652(_0x1ce5f8,_0x7a26c,_0x6ec008,_0x53a928){return _0x1a5fc6(_0x7a26c- -0x1ab,_0x7a26c-_0x272236._0x469e68,_0x6ec008-_0x272236._0x55c909,_0x1ce5f8);}function _0x3e002e(_0x2f2e6c,_0xe3bab7,_0x511609,_0x349628){return _0x1a5fc6(_0x2f2e6c- -0x2d3,_0xe3bab7-_0x379cb3._0xbf484d,_0x511609-_0x379cb3._0x455036,_0x511609);}await _0x51e77d(_0x4acb5f,!![]);const _0x4f0817=[];for(const _0x1b0dc of await _0x27fd2f(_0x4acb5f,![])){for(const [_0x31ed47,_0xea805d]of _0x1b0dc[_0x3e002e(_0x10f2d8._0x23aa56,0x3ab,0x3da,_0x10f2d8._0xebc8b5)]){if(diagnosticsKeyToPath(_0x31ed47)===_0x4acb5f)_0x4f0817[_0x18c652(0x5a2,_0x10f2d8._0x1fb439,0x499,_0x10f2d8._0x4110e7)](..._0xea805d);}}return _0x4f0817;},async 'definition'(_0x1c6e98){function _0x52075d(_0x531f4f,_0x4b9a78,_0x7fa2cd,_0x23dd50){return _0x1a5fc6(_0x7fa2cd- -0x3b7,_0x4b9a78-0x128,_0x7fa2cd-0xeb,_0x23dd50);}function _0x2acd01(_0x235a66,_0x43fa3a,_0x4e838b,_0x5b0443){return _0x1a5fc6(_0x4e838b-_0x2523df._0x890f20,_0x43fa3a-0x15e,_0x4e838b-0xdb,_0x235a66);}return collectClientResults((await _0x20066f(_0x1c6e98))[_0x2acd01(0x59d,_0x4f6726._0x2ccb4a,_0x4f6726._0x402b91,0x584)](_0x24d0af=>_0x24d0af[_0x2acd01(0x3fb,0x528,0x469,0x40c)]['definition'](_0x1c6e98)));},async 'references'(_0x51e74e){const _0x446cc7={_0x8387e4:0x231,_0x5a82c5:0x119};function _0x551a82(_0x1b2eca,_0x52235e,_0x43b084,_0x4829ee){return _0x1a5fc6(_0x52235e- -_0x5b48b8._0x36fdcd,_0x52235e-_0x5b48b8._0x44c7a0,_0x43b084-_0x5b48b8._0x4f00f7,_0x4829ee);}function _0x5a6f5f(_0x365cf2,_0x5a3bcd,_0x526ed6,_0x57ec3a){return _0x1a5fc6(_0x5a3bcd- -_0x446cc7._0x8387e4,_0x5a3bcd-_0x446cc7._0x5a82c5,_0x526ed6-0xce,_0x365cf2);}return collectClientResults((await _0x20066f(_0x51e74e))[_0x5a6f5f(0x317,_0xc27bd3._0x4f9928,0x34d,_0xc27bd3._0x16b691)](_0x3868b3=>_0x3868b3[_0x551a82(0x1cc,0x186,0xe8,0x2cc)]['references'](_0x51e74e)));},async 'hover'(_0x237414){function _0x293065(_0x45b5cf,_0x1ffc82,_0x21c943,_0x48e1e7){return _0x1a5fc6(_0x48e1e7-_0x5b94c6._0x35fb1b,_0x1ffc82-0x91,_0x21c943-_0x5b94c6._0x2f09c3,_0x45b5cf);}const _0xad07c5=await Promise[_0x293065(_0x17e08d._0x338739,0x544,_0x17e08d._0x4fb497,_0x17e08d._0x321b71)]((await _0x20066f(_0x237414))[_0x293065(0x490,_0x17e08d._0x2a28a0,0x4c8,_0x17e08d._0x32a795)](_0x3dedd3=>_0x3dedd3['request'][_0x293065(0x62d,0x71f,0x6c7,0x5fa)](_0x237414)));function _0x59512f(_0x141656,_0x2a3c4a,_0x17cab3,_0x5875d7){return _0x1a5fc6(_0x2a3c4a- -0x4d9,_0x2a3c4a-0x1a,_0x17cab3-0x1f0,_0x5875d7);}return _0xad07c5[_0x293065(0x394,_0x17e08d._0x491c7a,_0x17e08d._0x1ff525,_0x17e08d._0x7e170e)](_0x278bf6=>_0x278bf6[_0x293065(0x42c,0x4bc,0x5f9,0x56d)]===_0x293065(0x761,0x5a4,0x794,0x66d)&&_0x278bf6[_0x59512f(0x47,0xbd,0x82,0x1f5)]?[_0x278bf6[_0x293065(0x62a,0x729,0x640,0x6a1)]]:[]);},async 'documentSymbol'(_0x45a01d){const _0x36da39={_0x19e642:0x3f0,_0x50955a:0x16b};function _0x116c47(_0x404e1a,_0x56bf23,_0x48b529,_0x1697bd){return _0x1a5fc6(_0x48b529- -_0xc438bc._0x4b8ccf,_0x56bf23-_0xc438bc._0x63d35a,_0x48b529-0x123,_0x56bf23);}await _0x51e77d(_0x45a01d,![]);function _0x3a5d15(_0x144fff,_0x237fb7,_0x185025,_0x4d9517){return _0x1a5fc6(_0x185025- -_0x36da39._0x19e642,_0x237fb7-_0x36da39._0x50955a,_0x185025-0x3b,_0x4d9517);}return collectClientResults((await _0x27fd2f(_0x45a01d,![]))['map'](_0x28c91e=>_0x28c91e[_0x3a5d15(0xfa,0x15b,0x15,-0x4c)][_0x116c47(-0x21d,-0x222,-0x168,-0x83)](_0x45a01d)));},async 'workspaceSymbol'(_0x3d84cd){const _0xb7cf46={_0x570b14:0x41d,_0x337a85:0x1d9,_0x1c46e1:0xd5},_0x4e0bc6={_0x26f341:0xdf,_0x59b0c8:0xce};function _0x54f95a(_0x12c929,_0x524b03,_0x40a03b,_0x524bcc){return _0x1a5fc6(_0x524b03- -0x5dc,_0x524b03-_0x4e0bc6._0x26f341,_0x40a03b-_0x4e0bc6._0x59b0c8,_0x12c929);}function _0x2825b2(_0x455c3b,_0x49537a,_0x38c060,_0x5c36ed){return _0x1a5fc6(_0x455c3b- -_0xb7cf46._0x570b14,_0x49537a-_0xb7cf46._0x337a85,_0x38c060-_0xb7cf46._0x1c46e1,_0x49537a);}return collectClientResults(_0x59ed36[_0x54f95a(-_0x104cd9._0x2971d1,-0x100,-_0x104cd9._0x3f43ce,_0x104cd9._0x2ce715)][_0x2825b2(0x74,0xca,0xfc,0x17)](_0x3644d1=>_0x3644d1[_0x2825b2(-0x18,-0x17,-0xbe,0x38)]['workspaceSymbol'](_0x3d84cd)));},async 'implementation'(_0x3fd846){function _0x369ef0(_0x351e7a,_0x1ffe31,_0x5ec34e,_0x31af91){return _0x1a5fc6(_0x31af91-0xbb,_0x1ffe31-0x1c1,_0x5ec34e-0x0,_0x1ffe31);}function _0x2590b0(_0x46e4c7,_0x4023c3,_0x329344,_0x4df323){return _0x1a5fc6(_0x4df323- -0x3d0,_0x4023c3-0x154,_0x329344-_0x385ad._0x1ef531,_0x329344);}return collectClientResults((await _0x20066f(_0x3fd846))['map'](_0x473733=>_0x473733[_0x2590b0(-0xa,-0x51,-0x5c,0x35)][_0x369ef0(0x716,0x806,0x6da,0x6cd)](_0x3fd846)));},async 'prepareCallHierarchy'(_0x13d711){return _0x5ef9a5(_0x13d711);},async 'incomingCalls'(_0x52b00e){const _0x3da1c1={_0x214744:0x257};function _0x3f8f2b(_0x3f067a,_0x12c852,_0x5ac406,_0x290dd5){return _0x1a5fc6(_0x12c852- -_0x3da1c1._0x214744,_0x12c852-0x66,_0x5ac406-0x18e,_0x290dd5);}const _0x5d8eb1=await _0x5ef9a5(_0x52b00e);function _0x11db4b(_0x3822f0,_0x15fc40,_0x43ddfc,_0x201ebd){return _0x1a5fc6(_0x3822f0- -0x1e1,_0x15fc40-_0xb5116._0xbd462e,_0x43ddfc-_0xb5116._0x2c62c5,_0x43ddfc);}const _0x5e4831=await _0x20066f(_0x52b00e);return collectClientResults(_0x5e4831[_0x3f8f2b(0x21d,_0x51644b._0x492649,_0x51644b._0xa31d1,_0x51644b._0x560d2e)](_0x4d861b=>_0x5d8eb1['map'](_0x324423=>_0x4d861b[_0x3f8f2b(0x109,0x1ae,0xc5,0x2e6)][_0x11db4b(0x416,0x3fd,0x3e1,0x375)](_0x324423))));},async 'outgoingCalls'(_0x436028){const _0x52e835=await _0x5ef9a5(_0x436028);function _0x1fcbac(_0xef9b87,_0x3ef1df,_0x552577,_0x469363){return _0x1a5fc6(_0x3ef1df- -0x1b0,_0x3ef1df-_0x27c0c9._0x16196b,_0x552577-_0x27c0c9._0x136046,_0x469363);}function _0x585abf(_0x4d8686,_0x4ab5de,_0x244cfa,_0x9dc43d){return _0x1a5fc6(_0x9dc43d- -0x1a2,_0x4ab5de-0x193,_0x244cfa-0x46,_0x244cfa);}const _0x16b2c0=await _0x20066f(_0x436028);return collectClientResults(_0x16b2c0[_0x585abf(0x201,0x2c9,0x189,0x225)](_0x387254=>_0x52e835[_0x585abf(0x1df,0x28a,0x1d8,0x2ef)](_0x47dd72=>_0x387254[_0x1fcbac(0x1aa,0x255,0x274,0x1e1)][_0x1fcbac(0x424,0x333,0x31b,0x330)](_0x47dd72))));},async 'shutdown'(){function _0x3b7bb8(_0x2a5d5e,_0x2b09a1,_0xf58192,_0x43b796){return _0x1a5fc6(_0xf58192- -0x462,_0x2b09a1-_0x34972c._0x1a21f7,_0xf58192-_0x34972c._0x2dea50,_0x2a5d5e);}if(_0x59ed36[_0x3b7bb8(0x1ef,_0x48ac6f._0x16a71f,_0x48ac6f._0x4aa607,0x6c)])return;_0x59ed36[_0x3b7bb8(_0x48ac6f._0x1a625e,_0x48ac6f._0x5961d0,0x17e,_0x48ac6f._0x598d5f)]=!![],await Promise[_0x18193a(-0x2a,-_0x48ac6f._0x207032,-_0x48ac6f._0x22e117,-0x203)](_0x59ed36[_0x18193a(-_0x48ac6f._0x2201d9,-_0x48ac6f._0x151bac,-0x49,-0xa2)][_0x18193a(-0x192,-_0x48ac6f._0x4c0506,-0x26b,-0x180)](_0x144475=>_0x144475['shutdown']())),_0x59ed36['clients']=[],_0x59ed36[_0x18193a(-0x12b,-0xa3,-_0x48ac6f._0x2f8f7d,-_0x48ac6f._0x2c4e89)][_0x18193a(0x4c,0x24,_0x48ac6f._0x1a31c0,-_0x48ac6f._0x51a75f)](),_0x59ed36[_0x3b7bb8(0xf6,_0x48ac6f._0x1af242,0x171,0x1b5)][_0x3b7bb8(_0x48ac6f._0x49eaf2,_0x48ac6f._0xde6489,0x1be,_0x48ac6f._0x41fac1)](),_0x59ed36['fileVersions'][_0x18193a(0x160,_0x48ac6f._0x3e0270,-0x45,_0x48ac6f._0x4747ff)]();function _0x18193a(_0x1ed5f8,_0x44bcfb,_0x51dec0,_0x29dc55){return _0x1a5fc6(_0x44bcfb- -_0x3604f2._0x2d141a,_0x44bcfb-_0x3604f2._0x15153d,_0x51dec0-_0x3604f2._0x56da91,_0x51dec0);}_0x59ed36[_0x3b7bb8(_0x48ac6f._0x2c11d9,0x2ce,_0x48ac6f._0x28d4ac,_0x48ac6f._0x219539)][_0x18193a(_0x48ac6f._0x2cd837,_0x48ac6f._0x3e0270,_0x48ac6f._0x5263cc,-_0x48ac6f._0x532deb)]();},'status'(){const _0xb6a011={_0x2a58fc:0x8d};function _0x3ceb7b(_0x4963f6,_0x391a6b,_0x169088,_0x3570da){return _0x1a5fc6(_0x4963f6- -0x39a,_0x391a6b-0x60,_0x169088-_0xb6a011._0x2a58fc,_0x391a6b);}function _0x25b762(_0x520e29,_0x260535,_0x351853,_0x332689){return _0x1a5fc6(_0x260535- -_0x3f6af1._0x5b7061,_0x260535-_0x3f6af1._0x2dc0aa,_0x351853-_0x3f6af1._0x1c639c,_0x351853);}return{'connectedClients':_0x59ed36[_0x3ceb7b(0x142,0xc0,_0x3129ed._0x251f65,_0x3129ed._0xd79572)][_0x25b762(0x142,_0x3129ed._0x2b463c,_0x3129ed._0x490f44,0x191)]};}};}function createQuestionId(){const _0x4b9551={_0x4c098b:0x232,_0x45e528:0x186,_0x113a02:0x331,_0x3b7d7d:0x46a,_0x5d9463:0x29c,_0x198829:0x2fe},_0x185f38={_0x3a37db:0x44},_0x932cc5={_0xdc63a1:0x67};function _0x31c3dd(_0x2c87a4,_0x4bb4fe,_0x2e64b9,_0x8529a2){return _0x278b49(_0x2c87a4-0x1f0,_0x4bb4fe-_0x932cc5._0xdc63a1,_0x2e64b9- -0x14,_0x4bb4fe);}function _0x1c9902(_0x4ff2ac,_0x2b7062,_0x205dd1,_0x47a5a1){return _0x278b49(_0x4ff2ac-0x61,_0x2b7062-_0x185f38._0x3a37db,_0x205dd1-0x364,_0x2b7062);}return _0x31c3dd(-0x1a0,-0xbc,-0x115,-_0x4b9551._0x4c098b)+Date[_0x31c3dd(0xbd,_0x4b9551._0x45e528,0xa3,0xca)]()+'-'+Math[_0x1c9902(_0x4b9551._0x113a02,_0x4b9551._0x3b7d7d,0x3e0,_0x4b9551._0x5d9463)]()[_0x1c9902(0x265,0x253,_0x4b9551._0x198829,0x43e)](0x24)['slice'](0x2,0x9);}function validateInput(_0xaebdff){const _0x32bbb8={_0x3b528d:0x12b,_0x1800ed:0xa,_0x26f108:0x12a,_0x266952:0x1a3,_0x4eacea:0x397,_0x13f55c:0x289,_0x7fcf95:0x4ea,_0x66ec96:0x629,_0x444925:0x666,_0x244ad6:0x568,_0x21b1b6:0x268,_0x4190d0:0x2c8,_0x199b4f:0x2e9,_0x47afd2:0x609,_0x502281:0x3f9,_0x5e3251:0x5aa,_0x3684c5:0x4e7,_0x4ae6fe:0x76a,_0x5dd359:0x6e2,_0x531464:0x71e,_0x4cf408:0x355,_0xaf3781:0x108,_0xecccd3:0xd5,_0x4ad97b:0x15a,_0x1953a6:0x14a,_0x4f4e56:0x413,_0x7311d8:0x300,_0x3b2365:0x37e,_0x8f0846:0x2a6,_0x19938b:0x71b,_0x2fe833:0xd9,_0x5aa66e:0x6,_0x19a6e2:0x68,_0x347bd0:0x4a3,_0x4e48dd:0x4d6,_0x344cdc:0x373,_0x1e6c57:0x1a0,_0x2e7482:0x254,_0x251a33:0x195,_0x4c68e3:0x3ee,_0x1f3c37:0x501,_0x5340de:0x5d1,_0x3bbf85:0x567,_0x529316:0x633,_0x54b554:0x62c,_0x273339:0x1f9,_0x385884:0x20c,_0x56e303:0x199,_0x3ec5eb:0x47c,_0x53366d:0x467,_0x57cbba:0x418,_0x597d9e:0x43a,_0x1112ac:0x4ba,_0x522776:0x2a4,_0x36e4be:0x3db,_0x92ade:0x2af,_0x3ddc0d:0x609,_0x44a714:0x5fd,_0x5b2835:0x68a,_0x402ecb:0x1b8,_0x1a63f3:0x142,_0x5cf80b:0x596,_0x42497e:0x5d4,_0x272708:0x2a8,_0x57dfc7:0x278,_0x590c91:0x36f,_0x55671c:0x41c,_0x916ec7:0x582},_0x20780c={_0x452258:0x1c0},_0x20bb66={_0x1ac394:0x7f};if(!Array[_0x564182(_0x32bbb8._0x3b528d,-_0x32bbb8._0x1800ed,_0x32bbb8._0x26f108,_0x32bbb8._0x266952)](_0xaebdff[_0x564182(0x2c8,0x39a,_0x32bbb8._0x4eacea,_0x32bbb8._0x13f55c)])||_0xaebdff[_0x49f9f9(_0x32bbb8._0x7fcf95,_0x32bbb8._0x66ec96,_0x32bbb8._0x444925,_0x32bbb8._0x244ad6)][_0x564182(0x1a0,_0x32bbb8._0x21b1b6,0x10f,0x131)]<0x1||_0xaebdff[_0x564182(_0x32bbb8._0x4190d0,_0x32bbb8._0x199b4f,0x1c4,0x1b5)][_0x49f9f9(0x52f,0x501,_0x32bbb8._0x47afd2,_0x32bbb8._0x502281)]>0x4)throw new ToolExecutionError('Must\x20provide\x201-4\x20questions',{'error':'invalid_questions'});function _0x564182(_0x4a4005,_0x3250d9,_0x5312e4,_0x16f3ba){return _0x278b49(_0x4a4005-_0x20bb66._0x1ac394,_0x3250d9-0x50,_0x4a4005-0x1bd,_0x16f3ba);}function _0x49f9f9(_0x5e2044,_0x12386c,_0x14dbc4,_0x11d280){return _0x278b49(_0x5e2044-0x100,_0x12386c-_0x20780c._0x452258,_0x12386c-0x51e,_0x5e2044);}for(let _0x59c52e=0x0;_0x59c52e<_0xaebdff[_0x49f9f9(_0x32bbb8._0x5e3251,_0x32bbb8._0x66ec96,0x6fd,_0x32bbb8._0x3684c5)][_0x49f9f9(0x547,0x501,0x5f0,0x4f3)];_0x59c52e+=0x1){const _0x2453ad=_0xaebdff[_0x49f9f9(_0x32bbb8._0x4ae6fe,0x629,_0x32bbb8._0x5dd359,_0x32bbb8._0x531464)][_0x59c52e];if(!_0x2453ad['question']||typeof _0x2453ad['question']!=='string')throw new ToolExecutionError(_0x564182(0x2a8,0x170,_0x32bbb8._0x4cf408,0x3b1)+(_0x59c52e+0x1)+':\x20\x22question\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(!_0x2453ad[_0x564182(_0x32bbb8._0xaf3781,_0x32bbb8._0xecccd3,_0x32bbb8._0x4ad97b,_0x32bbb8._0x1953a6)]||typeof _0x2453ad['header']!==_0x49f9f9(0x53f,_0x32bbb8._0x4f4e56,_0x32bbb8._0x7311d8,_0x32bbb8._0x3b2365))throw new ToolExecutionError(_0x49f9f9(0x666,0x609,0x5ab,0x663)+(_0x59c52e+0x1)+':\x20\x22header\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x2453ad['header'][_0x564182(0x1a0,0xd1,0x281,_0x32bbb8._0x8f0846)]>0x14)throw new ToolExecutionError(_0x49f9f9(0x5f5,_0x32bbb8._0x47afd2,_0x32bbb8._0x19938b,0x5de)+(_0x59c52e+0x1)+':\x20\x22header\x22\x20must\x20be\x20max\x2020\x20characters,\x20got\x20'+_0x2453ad['header']['length']);if(!Array['isArray'](_0x2453ad[_0x564182(_0x32bbb8._0x2fe833,_0x32bbb8._0x5aa66e,-_0x32bbb8._0x19a6e2,0x1c6)])||_0x2453ad[_0x49f9f9(_0x32bbb8._0x347bd0,0x43a,_0x32bbb8._0x4e48dd,_0x32bbb8._0x344cdc)][_0x564182(_0x32bbb8._0x1e6c57,_0x32bbb8._0x2e7482,0x16a,0x235)]<0x2||_0x2453ad[_0x564182(_0x32bbb8._0x2fe833,0x1d5,0x1f1,_0x32bbb8._0x251a33)][_0x49f9f9(_0x32bbb8._0x4c68e3,_0x32bbb8._0x1f3c37,0x535,0x54a)]>0x4)throw new ToolExecutionError(_0x49f9f9(_0x32bbb8._0x5340de,_0x32bbb8._0x47afd2,0x56d,0x732)+(_0x59c52e+0x1)+_0x49f9f9(_0x32bbb8._0x3bbf85,0x634,_0x32bbb8._0x529316,_0x32bbb8._0x54b554));for(let _0x772329=0x0;_0x772329<_0x2453ad[_0x564182(0xd9,_0x32bbb8._0x273339,_0x32bbb8._0x385884,_0x32bbb8._0x56e303)][_0x49f9f9(_0x32bbb8._0x3ec5eb,0x501,_0x32bbb8._0x53366d,0x472)];_0x772329+=0x1){const _0x2b87f5=_0x2453ad[_0x49f9f9(_0x32bbb8._0x57cbba,_0x32bbb8._0x597d9e,0x57d,_0x32bbb8._0x1112ac)][_0x772329];if(!_0x2b87f5[_0x564182(0x94,-0x4d,-0x57,0x1c)]||!_0x2b87f5[_0x564182(_0x32bbb8._0x522776,0x385,_0x32bbb8._0x36e4be,_0x32bbb8._0x92ade)])throw new ToolExecutionError(_0x49f9f9(0x532,_0x32bbb8._0x3ddc0d,0x546,0x5a2)+(_0x59c52e+0x1)+_0x49f9f9(0x737,_0x32bbb8._0x44a714,_0x32bbb8._0x5b2835,0x59d)+(_0x772329+0x1)+_0x564182(_0x32bbb8._0x402ecb,_0x32bbb8._0x1a63f3,0x16e,0xbf));}if(typeof _0x2453ad[_0x49f9f9(_0x32bbb8._0x5cf80b,0x5d4,_0x32bbb8._0x42497e,0x4db)]!=='boolean')throw new ToolExecutionError(_0x564182(_0x32bbb8._0x272708,_0x32bbb8._0x57dfc7,0x2c4,_0x32bbb8._0x590c91)+(_0x59c52e+0x1)+_0x49f9f9(0x4da,0x49e,_0x32bbb8._0x55671c,_0x32bbb8._0x916ec7));}}function buildQuestions(_0x2ace36){const _0x11aaeb={_0x51252d:0x1af,_0x40e044:0x1d7,_0x3aa203:0x17};function _0x27e197(_0x4ef5f2,_0x26bf71,_0x385146,_0x58e357){return _0x2fd7af(_0x26bf71-_0x11aaeb._0x51252d,_0x26bf71-_0x11aaeb._0x40e044,_0x385146,_0x58e357-_0x11aaeb._0x3aa203);}function _0x410847(_0x1f5095,_0x40afd1,_0x417fae,_0x3faac2){return _0x278b49(_0x1f5095-0x1c8,_0x40afd1-0xad,_0x40afd1-0x362,_0x417fae);}return _0x2ace36['questions']['map']((_0x19bbb8,_0x7e5e6c)=>({'id':'q'+_0x7e5e6c,'question':_0x19bbb8[_0x27e197(0x1b7,0x272,0x310,0x3b6)],'header':_0x19bbb8[_0x410847(0x1b5,0x2ad,0x3e3,0x201)],'options':_0x19bbb8[_0x410847(0x2b2,0x27e,0x270,0x37d)],'multiSelect':_0x19bbb8['multiSelect']}));}function createResult(_0x32bf2c,_0x3030fb,_0x26984b){const _0xaceabf={_0x19716f:0xc1},_0x124faf={_0x58d0a4:0xdc,_0x3176c0:0x1a0,_0x251253:0x190};function _0x142620(_0x21d5d0,_0x4c1452,_0x152d12,_0x2f8e19){return _0x2fd7af(_0x21d5d0-_0x124faf._0x58d0a4,_0x4c1452-_0x124faf._0x3176c0,_0x4c1452,_0x2f8e19-_0x124faf._0x251253);}const _0x1f9813={'questionId':_0x32bf2c,'questionCount':_0x3030fb,'answers':_0x26984b};return createToolOutput(_0x142620(-0x7,-0xb9,_0xaceabf._0x19716f,0xbc)+JSON['stringify'](_0x26984b,null,0x2),_0x1f9813);}function createAskUserTool(){const _0x34a002={_0x1b619e:0x524,_0x24c60d:0x52a,_0x4760fe:0x4cc,_0x5172ff:0x1f5,_0x52d931:0x599,_0x4ec3bf:0x50a,_0x49afa8:0x89,_0x3815e3:0xf2,_0x54ec46:0x417,_0x2b1329:0x289,_0x348194:0x22d,_0xcae58e:0x36e,_0x1d6029:0x3e9,_0x8d3faa:0x209,_0x25d7e3:0x15e,_0x5cb7ef:0xed,_0x5b958f:0xe4,_0x15690d:0x4d,_0x4580df:0x10,_0x5f33d1:0x3e1,_0x2c4b4b:0x350,_0x1bdf55:0x4e7,_0x382d32:0x87,_0x167b79:0xe5,_0x25b845:0xd4,_0x3c59c4:0x446,_0x5bab43:0x58b,_0x31c681:0x12c,_0x313460:0x21,_0x58f732:0x13d,_0x1a5d35:0x75,_0x7e7c63:0x17,_0x3e1c49:0x111,_0x2f6460:0x1b1},_0x491bdf={_0x531520:0x1ae,_0x44e076:0x318,_0x1a9dac:0xff,_0x574592:0x5e,_0x1102b7:0x334,_0x1b45d5:0x247,_0x34b841:0x496,_0x407c70:0x4cf,_0x3497d2:0x5ca,_0x4f363e:0x289,_0x51d80f:0x29f,_0x589fd1:0x1d2,_0x42204d:0x284,_0x8bce0:0x42d,_0x1eed24:0x391,_0xeaa43:0x1e6,_0x595ce6:0x18f,_0x525f23:0x4e4,_0x33266f:0x48c},_0x32f81d={_0x399aef:0xea,_0x41f5cf:0x199},_0x183414={_0x1225f1:0x1f,_0x41ae28:0xf7},_0x46681c={_0xa6f5d9:0x112},_0xd1a7e8={_0x795aeb:0x11f};function _0x94e90b(_0x2b0c37,_0x1fdae7,_0x48571f,_0x37fadc){return _0x2fd7af(_0x48571f-0x4c8,_0x1fdae7-_0xd1a7e8._0x795aeb,_0x1fdae7,_0x37fadc-0x118);}function _0xea1762(_0x30833d,_0x7b440f,_0xca2eef,_0x1dbc8f){return _0x2fd7af(_0x1dbc8f-0x14a,_0x7b440f-0x5e,_0x30833d,_0x1dbc8f-_0x46681c._0xa6f5d9);}return defineTool({'name':_0x94e90b(_0x34a002._0x1b619e,0x479,_0x34a002._0x24c60d,_0x34a002._0x4760fe),'description':_0xea1762(0xc9,0x151,0x125,_0x34a002._0x5172ff),'inputSchema':{'type':_0x94e90b(0x602,_0x34a002._0x52d931,0x4e6,_0x34a002._0x4ec3bf),'properties':{'questions':{'type':_0xea1762(0x11e,_0x34a002._0x49afa8,_0x34a002._0x3815e3,0x15e),'items':{'type':_0x94e90b(_0x34a002._0x54ec46,0x3fa,0x4e6,_0x34a002._0x4760fe),'properties':{'question':{'type':_0x94e90b(0x31b,_0x34a002._0x2b1329,0x36e,0x449)},'header':{'type':_0x94e90b(0x242,_0x34a002._0x348194,_0x34a002._0xcae58e,_0x34a002._0x1d6029)},'options':{'type':_0xea1762(_0x34a002._0x8d3faa,0xfd,0x138,_0x34a002._0x25d7e3),'items':{'type':_0xea1762(0x167,_0x34a002._0x5cb7ef,_0x34a002._0x5b958f,0x168),'properties':{'label':{'type':'string'},'description':{'type':_0xea1762(0x19,_0x34a002._0x15690d,0x106,-_0x34a002._0x4580df)}},'required':[_0x94e90b(_0x34a002._0x5f33d1,0x266,_0x34a002._0x2c4b4b,0x3fb),_0x94e90b(0x670,_0x34a002._0x1bdf55,0x560,0x4a4)]}},'multiSelect':{'type':_0xea1762(_0x34a002._0x382d32,_0x34a002._0x167b79,0x1e1,_0x34a002._0x25b845)}},'required':[_0x94e90b(_0x34a002._0x3c59c4,0x5b6,_0x34a002._0x5bab43,0x47f),_0xea1762(_0x34a002._0x31c681,0x8d,-_0x34a002._0x313460,0x46),_0xea1762(_0x34a002._0x58f732,-0x126,_0x34a002._0x1a5d35,_0x34a002._0x7e7c63),_0xea1762(_0x34a002._0x3e1c49,0xba,0x268,_0x34a002._0x2f6460)]}},'answers':{'type':'object','properties':{}}},'required':['questions']},async *'execute'(_0x4c4785,_0x5283ab){const _0x522bba=_0x4c4785;validateInput(_0x522bba);const _0x1ce6b7=_0x5283ab[_0x278b77(0x23c,_0x491bdf._0x531520,0x259,0x17c)]??createQuestionId();function _0x404dcc(_0x13f382,_0x34571,_0x2167ce,_0xbb0611){return _0x94e90b(_0x13f382-_0x183414._0x1225f1,_0x13f382,_0x2167ce- -0xa0,_0xbb0611-_0x183414._0x41ae28);}if(_0x522bba[_0x278b77(0x1c8,0x22b,_0x491bdf._0x44e076,0x247)]&&Object[_0x278b77(0x26e,_0x491bdf._0x1a9dac,_0x491bdf._0x574592,0x133)](_0x522bba[_0x278b77(_0x491bdf._0x1102b7,0x1b7,0x153,_0x491bdf._0x1b45d5)])[_0x404dcc(0x481,0x2de,0x3bc,_0x491bdf._0x34b841)]>0x0)return createResult(_0x1ce6b7,_0x522bba[_0x404dcc(_0x491bdf._0x407c70,_0x491bdf._0x3497d2,0x4e4,0x49f)][_0x404dcc(0x4cd,0x322,0x3bc,0x398)],_0x522bba[_0x278b77(0x185,_0x491bdf._0x4f363e,_0x491bdf._0x51d80f,_0x491bdf._0x1b45d5)]);if(!_0x5283ab[_0x404dcc(_0x491bdf._0x589fd1,0x2b9,0x2cb,_0x491bdf._0x42204d)])throw new ToolExecutionError(_0x404dcc(0x2f4,_0x491bdf._0x8bce0,0x3e8,_0x491bdf._0x1eed24));function _0x278b77(_0x412a4f,_0x12667f,_0x4e2966,_0x2d8e20){return _0x94e90b(_0x412a4f-_0x32f81d._0x399aef,_0x4e2966,_0x2d8e20- -0x1f7,_0x2d8e20-_0x32f81d._0x41f5cf);}const _0x248b07=buildQuestions(_0x522bba),_0x249ba7=await _0x5283ab[_0x278b77(_0x491bdf._0xeaa43,_0x491bdf._0x595ce6,0x269,0x174)]({'questionId':_0x1ce6b7,'questions':_0x248b07});yield createResult(_0x1ce6b7,_0x522bba[_0x404dcc(0x488,_0x491bdf._0x34b841,_0x491bdf._0x525f23,_0x491bdf._0x33266f)][_0x278b77(0x289,0x2a8,0x28c,0x265)],_0x249ba7);}});}import{spawn as _0x35ce3c}from'child_process';import{statSync}from'fs';import*as _0x43ccef from'os';import*as _0x166011 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x42da80 from'path';function isPathInside(_0x1bdd7f,_0x83b1a1){const _0x4e4593={_0x5bceea:0x279,_0x4755f3:0x416},_0x4e4383={_0xfd4ec1:0x481,_0x5b064e:0x81,_0x29fce1:0x44},_0x458bd2={_0x477caa:0x250,_0x3d9de1:0x3d};function _0x4ed0e8(_0x3d3ca9,_0x98edc,_0x112b05,_0x19b5f1){return _0x2fd7af(_0x19b5f1-_0x458bd2._0x477caa,_0x98edc-_0x458bd2._0x3d9de1,_0x98edc,_0x19b5f1-0x8e);}const _0x77117d=_0x42da80['resolve'](_0x1bdd7f);function _0x1b25c7(_0x355517,_0x505d1d,_0x56b62e,_0x3046a4){return _0x2fd7af(_0x3046a4-_0x4e4383._0xfd4ec1,_0x505d1d-_0x4e4383._0x5b064e,_0x505d1d,_0x3046a4-_0x4e4383._0x29fce1);}const _0x45a5da=_0x42da80['relative'](_0x77117d,_0x83b1a1);return _0x45a5da===''||!_0x45a5da[_0x1b25c7(0x27f,0x472,_0x4e4593._0x5bceea,0x365)]('..')&&!_0x42da80[_0x1b25c7(0x2f8,0x286,_0x4e4593._0x4755f3,0x32a)](_0x45a5da);}function resolveWorkspacePath(_0x307907,_0x491dfd){return resolveAllowedPath(_0x307907,[],_0x491dfd);}function resolveAllowedPath(_0x279e9b,_0x438874,_0x221aa2){const _0x47544f={_0x4520c5:0x1fe,_0x26372d:0x270,_0x3822ae:0x641,_0xe8cc19:0x5e9,_0x3b4e40:0x652,_0x40baea:0x44d,_0x6f520d:0x489,_0x553ff3:0x1b0,_0x22eac8:0x1cb},_0x13d2e6={_0x19b32c:0x10d},_0x3d67b3={_0x106793:0x544};function _0x33d0b3(_0x3f1b3c,_0x404218,_0x5b8ee3,_0x551b74){return _0x2fd7af(_0x5b8ee3-_0x3d67b3._0x106793,_0x404218-0x173,_0x3f1b3c,_0x551b74-0x15f);}const _0x3b0d3c=_0x42da80[_0x5c4897(0x356,_0x47544f._0x4520c5,0x37d,_0x47544f._0x26372d)](_0x279e9b);function _0x5c4897(_0x490ab5,_0x136633,_0x17439e,_0x307b08){return _0x2fd7af(_0x307b08-0x1cb,_0x136633-_0x13d2e6._0x19b32c,_0x136633,_0x307b08-0x105);}const _0x3c936c=_0x42da80[_0x33d0b3(_0x47544f._0x3822ae,0x4b6,_0x47544f._0xe8cc19,_0x47544f._0x3b4e40)](_0x3b0d3c,_0x221aa2),_0x4e74e9=[_0x3b0d3c,..._0x438874[_0x33d0b3(_0x47544f._0x40baea,0x38e,0x465,_0x47544f._0x6f520d)](_0x2c03cf=>_0x42da80[_0x5c4897(0x2d5,0x35d,0x153,0x270)](_0x2c03cf))];if(_0x4e74e9[_0x5c4897(0x398,_0x47544f._0x553ff3,_0x47544f._0x22eac8,0x28f)](_0x4968b7=>isPathInside(_0x4968b7,_0x3c936c)))return _0x3c936c;throw new ToolExecutionError('Path\x20is\x20outside\x20allowed\x20directories:\x20'+_0x221aa2,{'path':_0x221aa2,'rootDir':_0x3b0d3c,'allowedDirs':_0x4e74e9});}async function assertWorkspaceFile(_0x3ec44e){const _0x4f9c47={_0x3cc8e1:0x6c0,_0x308ec5:0x730,_0x2c4150:0x759,_0x142d03:0x6c1,_0x86f7ad:0x76b},_0x35be91={_0x10c9ba:0x1b7,_0x33a10b:0x6c,_0x5a4783:0x440},_0x442b29=await stat(_0x3ec44e);function _0x206086(_0x54b4bd,_0xe47d78,_0x2dfc63,_0x2ba676){return _0x278b49(_0x54b4bd-_0x35be91._0x10c9ba,_0xe47d78-_0x35be91._0x33a10b,_0xe47d78-_0x35be91._0x5a4783,_0x54b4bd);}function _0x14476b(_0xa89f9b,_0x3d1384,_0x7788e0,_0x438553){return _0x278b49(_0xa89f9b-0x1d6,_0x3d1384-0x9a,_0xa89f9b-0x6b3,_0x438553);}if(!_0x442b29[_0x14476b(0x71c,_0x4f9c47._0x3cc8e1,_0x4f9c47._0x308ec5,0x668)]())throw new ToolExecutionError(_0x14476b(_0x4f9c47._0x2c4150,_0x4f9c47._0x142d03,_0x4f9c47._0x86f7ad,0x732)+_0x3ec44e,{'path':_0x3ec44e});}function isProbablyBinary(_0xfc2532){return _0xfc2532['includes'](0x0);}function _0x18c5(){const _0x22cfa5=['y29TBwfUzhm','sw52ywXPzcbvuKWGCgfYyw1LDgvY','CMfUzg9T','u2HLBgWGBM90igzVDw5KoIa','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','zNjVBq','zxHPDa','tNv2Aw4','z2nSAwq','lu5VuhjVzMLSzq','C2HPzNq','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','zw52','Aw5JBhvKzxm','CgLK','tuLnrtOG','oIbJB250zw50ihjLCxvPCMvK','r2XVyG','y29TBwfUza','v2vIrMv0y2G','zMfPBgvK','pc9ZExn0zw0TCMvTAw5Kzxi+','qMfZAa','y2XPzw50twv0ywrHDgfvCMW','vw5RBM93BIb0B29SoIa','zgvSzxrL','A2LUza','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','Ahr0Chm6','BgfUzW','B25oB3rPzMLJyxrPB24','C29YDa','lunVBw1HBMq','zgLHz25VC3rPy3m','zgf0zvjLC3rYAwn0','ChjVDg9JB2W','C2fMzq','DgL0Bgu','zgvMyxvSDen3za','CMvNAw9U','yxjNDw1LBNroyw1LCW','y2HHCKnVzgvbDa','ugf0AcbPCYbUB3qGysbMAwXLoIa','DgLTzw91De1Z','zw5NAw5LCW','Aw52ywXPzf90B2rVx2LK','tM8GAg92zxiGAw5MB3jTyxrPB24','zw51Bq','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','oIbPBNzHBgLKihn0yxr1CW','CNvUswq','D3jPDgu','y2XVC2u','qxnRvxnLCLrVB2W','yNjVA2vU','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','vw50AxrSzwq','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','BxvSDgLtzwXLy3q','BM93','CM91BMq','ls1ZDgrPBW','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Dgf2AwX5qxbPs2v5','Dg9KB3ncEvnLC3nPB24','D2fPDezVCKrPywDUB3n0AwnZ','cGPbuKDvtuvovfm6ia','C2H1DgrVD25tDgfYDgvK','Aw5ZDgfSBa','y29UDgvUDc10ExbL','ywXSB3DLzerPCNm','DhnJB25MAwCUANnVBG','ignVBxbSzxrLzc4','lMPWzwC','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','C3rVCMfNzurPCG','ls1MAwXLCW','BNvTyMvY','y29Uy2f0','CMvSyxrPDMu','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','A2v5','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','r3jLCa','ywjVCNrLza','C2vYDMvYtMfTzq','ls1NBg9I','AxnfBMfIBgvK','Dgf2AwX5','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','Aw5JB21PBMDdywXSCW','y2XPzw50sw5MB3jTyxrPB24','Dg9mB3DLCKnHC2u','z2L0qNjHBMnO','l3vZCI9IAw4VyMfZAa','tM8GBg9JyxrPB25ZigzVDw5K','BwfYA2rVD24','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','ihDHCYbHyM9YDgvKlG','lcbpChrPB24G','BgfUz3vHz2u','Dgv4Dc9ODg1S','yxr4','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','lNbUzW','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ChjLzML4','zgvZy3jPChrPB24','Aw50zwDLCG','BMv3vgv4Da','yM94zwq','uxvLC3rPB24G','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','Ag9ZDa','CMvJzw5JEurHExm','Aw1WBgvTzw50yxrPB24','Aw52ywXPzf90B2rVx3n0yxr1CW','z29Vz2XLq3nLs2v5','CMvZB2X2zq','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','yxv0Ag9YAxPHDgLVBL9JB2rL','zMLUzfjLzMvYzw5Jzxm','CgfJA2fNzs5QC29U','CMvTB3zL','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','l3vZCI9IAw4VCMC','D2LUmZi','C2vZC2LVBKLK','qgjPB21LANmVyMLVBwu','y2XLyxi','BwnFzwLK','ChvZAa','Dhj1zq','C3LTBgLUAW','nZK1mJKZmfbNrMjYEG','Aw1Hz2uVz2LM','igj5DgvZ','D2HPy2GGCMC','qMvHCMvYia','C3bSAxq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','CxvLC3rPB25Z','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','C2nVCgvZ','igzHAwXLzc4','AxntEw1IB2XPy0XPBMS','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','CgXHAw50zxH0','CxvLC3rPB24','C29Tzq','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','B3bLBKzPBgvZ','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','Dgv4DerVy3vTzw50l2rPze9Wzw4','ywXSB3DLzfrVB2XZ','zxjYB3i','Aw5KzxHpzG','ywrK','qwXSia','lMn0CW','uKLgrG','B25Jzq','tM8GC3vJAcbMAwXLoIaN','B3bLBG','oIbPBNzHBgLKihbYAw9YAxr5','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','yMLVBwu','zMLSzvbHDgG','BwLU','C2vYDMvY','CMvWBgfJzq','qxv0Ag9YAxPHDgLVBG','B3b0Aw9UywW','q29Tu3bLyW','Dg9KB3m','CMvHC29U','Aw5ZDhj1y3rPB25Z','lM1QCW','rMLSzuvKAxq','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','Dg90ywW','yMfZzty0','Dg9vChbLCKnHC2u','zMXHDe1HCa','A2LSBgvK','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','C2vUze5VDgLMAwnHDgLVBG','l3vZCI9IAw4VC2G','lNrZEa','z29uB0rLzMLUAxrPB24','DhnZzxj2zxiUANm','y29UDgvUDa','tg9HzgvKigzYB206ia','B2XKvgv4Da','A2v5CW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','BMf2','AgfUzgXL','zMLSzvzLCNnPB25Z','Dhj1BMm','y3jSzG','Dg91y2HgAwXL','DxjS','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','ue9tva','BNbT','zgLYzwn0B3j5','C3bHD24','yMfZzw5HBwu','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','zgLHz25VC3rPy3ngB3jgAwXL','w01duca','BgLTAxq','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','DhjPBuvUza','mZmYntHRsuvdBvy','ANnVBG','C3rYAw5NAwz5','yNvUlMXVy2S','ChjVy2vZCW','ls1WCMvMAxG','AwDUB3jL','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','C2vZC2LVBG','Bwf4','yxr0CG','vMLLD2vKigLTywDLigzPBgu6ia','Dg9VBfjLC3vSDhm','C2v0vg9KB3m','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','C2L6zq','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','BgfIzwW','yxbPs2v5','Bw9Kzq','C3rHCNq','y2f0y2G','zgvSAw1PDgvY','y29KzvzLCMLMAwvY','Bg93','uhvIBgLZAgvKoIa','lMPZB25J','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','zg9JDw1LBNrtEw1IB2W','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','CMvXDwvZDa','C2H1DgrVD24','mtz4Axr3CMq','ru5pru5u','y2HHBMDL','y29UBMvJDa','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','CM9VDa','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','C3rKAw8','AhjLzG','C2TPBgXZ','AhrTBfnUAxbWzxq','yxnRvxnLCG','Cgf0DgvYBG','yNL0zuXLBMD0Aa','C3rYAw5N','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','C3vIyxjYyxK','AxnbyNnVBhv0zq','BMfTzq','Dg9VBenHBgXjza','sfruuca','D29YA3nWywnLu3LTyM9S','ChjPB3jPDhK','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','CxvLC3rPB24T','ywn0AxzL','te9x','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','DhnJ','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','y3DK','y2fSBfrVB2W','Dg9Rzw5Z','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','zgv0ywLS','Dg9VBhmVy2fSBa','igj5DgvZicHVCMLNAw5HBdOG','C2vUzfjLCxvLC3q','C2v0','AxnjBNrLz2vY','DhvWBgu','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','BgL0zxjHBa','A2LSBa','ls1NBg9Ipq','AxndB250zxH0','Ahr0Ca','B3bLBMfPlxjLC3bVBNnLCW','D2vI','B25szwrPCMvJDa','BgLUAW','B3b0Aw9UCW','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','z2vUzxjHBa','r0LgodDH','DhLWzq','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','Dg9VBc1VDxrWDxqTB2zMBg9Hza','DxbKyxrL','cGOTls0kcG','ygbGANnVBGO','CMvJB3jK','ChjVCgvYDgLLCW','DgHPBMTPBMC','y29UBMvJDgvK','ls1OAwrKzw4','z2XVyG','zMXVB3i','y2fSBeLK','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','AhLKCMf0zu1LDge','zMLSDgvY','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','CxvLCNK','C3rHCNrZv2L0Aa','Dg9VBe5HBwu','z2v0','yxjNCW','DgLTzvTKyxrLDgLTzv0','BgLUzxm','mtuXndrHs0TvEha','DxnLCM5HBwu','zgf0yq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','rM91BMqG','Aw5PDgLHBgL6zwq','C3r5Bgu','yxjNDw1LBNrZvgv4Da','C3rHDhvZ','CMvZDwX0','ChvIBgLZAgvKqxq','A2v5yMLUzgLUz3m','tM8GCMvZDwX0CYbMB3vUzc4','Dg9Rzw4','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','lMPWzW','CgvUzgLUzW','lMnQCW','AgvHzgvY','qxzHAwXHyMXLignVBw1HBMrZoG','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','u2L6ztOG','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','lMDPzG','B2f1DgG','rMLSzvjLywq','mtmWnde2m0TluunAEa','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','DhLWzxnJCMLWDa','z2v0u3rHDhm','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','zxjYB3jnzxnZywDL','C3rYAxbbBNnP','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','B2XSyw1H','C2vHCMnOrgvWDgG','lI4U','BxrPBwu','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','tgLUzsa','zgf0zxrPBwu','vg9KB1DYAxrL','zMLSztOVlW','Dg9WAwm','ls0T','DxrTx2nHBxbHAwDU','C2L0ztO','EwfYBI5SB2nR','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','DgfZA2TPBgW','zw50CMLLCW','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','yw5ZAti1nG','AxnbCNjHEq','BhnW','BwfW','y29UDgv4DeXPBMS','CgfYC2vjBNq','zMLSzq','sgLUDa','l2jPBI9YzW','sw52B2TLq29TBwfUza','yNvUlMXVy2TI','Dgv4DerVy3vTzw50l2HVDMvY','y2vPBa','yxv0Aa','zgvMAw5PDgLVBG','nZb5Dhrvuha','CgLWzq','yxv0BW','zxH0BMfTzq','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','BM9Uzq','Aw5JBhvKzq','Cgf0DgvYBIbPCYbYzxf1AxjLza','ywDLBNrZ','twLJCM9ZB2z0','tunqihrVB2WG','q29TBwfUzcaN','z29Vz2XLlwnZzq','v2vIu2vHCMnO','y29UBMvJDgLVBG','AMf2yxnJCMLWDa','zg9TywLUCW','yw5ZAte2','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','AxrLBxm','DhjPBq','DgfZAW','yM0Ynq','CgfNzw1HCa','C2LNBMfS','AxngAw5PDgu','ANnJB25MAwCUANnVBG','igzYB20G','AxneAxjLy3rVCNK','CgfJA2fNzxm','Dg9tDhjPBMC','DgHLBG','DhjHBNnMB3jTCW','yxjNDw1LBNriAw50','ywjVCNq','iYmGu2TPBgW6ia','lMXVzW','B25LCNjVCG','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','BgLUzvrLEhq','ig1HDgnO','C291CMnL','u0HfteW','zgLZywjSzwq','ig1Z','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','yMLYDgH0Aw1L','zgvMyxvSDfrPBwvVDxrnCW','igj5DgvZks4','Dw5PB24','AgfZq2XPzw50CW','y29TCgXLDgvK','zMLUywXnzxnZywDL','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','C3rKB3v0','CgXHAw4','ls1JB2X1Bw4','zxzLCNK','lw5i','tuvesvvn','Aw1Hz2vZ','zgLNzxn0','vg9KBYa','y2XPzw50CW','Aw5FChjVz3jLC3m','z2v0vg9KB3m','Aw1Hz2uVCg5N','Aw5WDxrty2HLBwe','B3v0Chv0','Cgf0Aa','B3v0z29PBMDdywXSCW','zw5NAw5L','uefusa','yw5ZD2vYCW','lM10CW','C3rHDgu','AxnfCNjVCG','CgfJA2fNzu5HBwu','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','ywXSu2v0DgXLza','tM8GC3LTyM9SCYbMB3vUza','Dw5RBM93BG','Ag92zxi','Bg9HzfnRAwXS','DxjP','C2vSzwn0Aw9UuMfUz2u','o1TE','AgfZ','yxnZAwDU','Aw1Hz2uVANbLzW','zNvUy3rPB24','zgLZCg9Zzq','DxrTx3nVDxjJzq','yM9VBgvHBG','BgLUzu51Bq','Dg9ju09tDhjPBMC','BgLZDgvU','uhjVz3jHBuzPBgvZkhG4nIK','yxbWBgLJyxrPB24VANnVBG','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','BgLUzvn0yxj0','ywDLBNrjza','xsb0CMfUC3bVCNqGzxjYB3i6','BgvUz3rO','y29UzMLN','ksbB','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','Bwv0yq','BwvZC2fNzq','BM9Kzv9TB2r1BgvZ','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','DxrMoa','ugf0AcbUB3qGzM91BMq6ia','DxrTx21LzgL1Bq','Aw1Hz2u','Bg9JyxrPB24','lMPZB24','u2TPBgWGjW','AM9PBG','BgLNAhq','ANnVBMm','AgvHzgvYCW','xg5DkJ8','tM8GzgLHz25VC3rPy3m','CMvXDwvZDhm','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','BwvKAxvT','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','B3jPz2LUvg9VBenHBgXjza','Bg9HzenVBw1HBMq','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','Dgv4Da','zxf1ywXZ','CMCUzxHL','C3jJl3nOyxjLzc90ExbLCY50CW','C2XPy2u','B3jPz2LUywW','BNv2Aw4','BgfUz18','yMvHCMvY','CgfJA2fNzs1SB2nRlMPZB24','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','C25PChbLDa','Dg9Rzw5tDg9YywDLs2v5','AMf2yxnJCMLWDhjLywn0','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','mte1mZC1mLbrqLjOrq','Cg9W','zgvUBY5QC29U','zgLZy292zxj5u3rHDgu','C3rHDhvZvgv4Da','CMvZDwX0CW','y291BNq','z29Vz2XLq3nLq3G','thnW','zgvSzwDHDgvKlxj1BI0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','CMfUz2u','seLhsa','lMPZ','BM90Awz5','C2vHCMnOvhLWzq','CNvUBMLUzW','Aw5PDgLHBgL6yxrPB24','y29Kzq','CMLWz3jLCa','Aw52ywXPzf90B2rVx2L0zw0','B2zMC2v0','B3rOzxi','Dg9VBa','CMLWz3jLCcbMywLSzwq6ia','l2jPBI9ZAa','AgLNAa','zgLYBMfTzq','nJm5CfbJzeDt','Cg5WBs1SB2nRlNLHBwW','y29ZDa','ie9sia','B2zM','mJG3odjlqxr2qMu','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','D2HLCMuGCMC','y21KlMv4zq','y29UC3rYDwn0B3i','Bw9KzwW','zgLZy292zxj5','C3bHD25PBMC','lNDLyNa','BgLI','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','yxnJAwK','C2HHmJu2','B3bLBMfPlxjLC3bVBNnLCY13CW','B3bLCMf0Aw9U','zNvSzMLSBgvK','ChjLCgfYzunHBgXiAwvYyxjJAhK','Dg9VBhm','y2XPzw50x3nLy3jLDf9WB3n0','v2fYBMLUzW','tunqihnLCNzLCIa','t0zg','rgLHz25VC3rPyW','vw5HDxrOB3jPEMvKrxjYB3i','Aw52ywXPzf90B2rVCW','l2jPBI9IyxnO','DhjHBNnWB3j0','Aw1Hz2uVD2vICa','zgfYAW','C3rKzxjY','Bwf0y2HLCW','B2C6DxbKyxrLzf90Aw1L','ywXS','BgLUzuvUza','y2XPzw50','yxjNDw1LBNrZ','Bg9JywXLq29TCgfYzq','zw5HyMXLza','C2vYDMvYCW','y2fSBgjHy2TvCMW','nJm1mdH3EwfLyvO','C2vYDMvYswq','y2XLyw51Ca','CgfZC3rOCM91z2G','CMvXDwLYzwq','CgfYzw50u2vZC2LVBKLK','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','DgvZDa','y2HHCMfJDgvY','yxjYyxK','lM51DMLU','ls1MB2XSB3C','DhLWzxnJCMLWDhjLywn0','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','BxrPBwvnCW','AxngAwXL','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','C2vUza','CgXHDgzVCM0','B2jQzwn0','Ag9TzwrPCG','CgfYC2u','zMLUza','lNrTCc4','C2vHCMnOugfYyw1Z','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','BgLUzq','DMfSDwu','CMvTB3zLrxzLBNrmAxn0zw5LCG','rMv0y2GGywjVCNrLzcbIEsb1C2vY','y29UDgv4Da','Aw5PDgLHBgL6zq'];_0x18c5=function(){return _0x22cfa5;};return _0x18c5();}var DEFAULT_DESCRIPTION='Execute\x20a\x20shell\x20command\x20with\x20timeout\x20protection.\x20Captures\x20stdout\x20and\x20stderr.\x20Do\x20not\x20use\x20for\x20interactive\x20commands\x20that\x20require\x20user\x20input.',DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x5ef16c){return _0x5ef16c instanceof Error;}function shellExists(_0x415712){const _0x509484={_0x426f55:0x2ea,_0x5af317:0x18a},_0x2908c1={_0x311d43:0x1cb},_0x5e3b5a={_0x5e3bbe:0xe6,_0x49c4f4:0x281};function _0x9e47cd(_0x33a113,_0x30cd3b,_0x3679c8,_0x2e0116){return _0x278b49(_0x33a113-_0x5e3b5a._0x5e3bbe,_0x30cd3b-0x54,_0x3679c8-_0x5e3b5a._0x49c4f4,_0x2e0116);}function _0x22aea9(_0x260abb,_0x447962,_0x4b2cc8,_0x589998){return _0x278b49(_0x260abb-0x105,_0x447962-_0x2908c1._0x311d43,_0x260abb-0x43d,_0x589998);}try{const _0x355902=statSync(_0x415712);return _0x355902[_0x9e47cd(0x221,0x2f8,_0x509484._0x426f55,0x33b)]()&&(_0x355902[_0x9e47cd(_0x509484._0x5af317,0xf2,0x15a,0x145)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x443ac4){const _0x1cd533={_0x5f3ec8:0x4cd,_0x307379:0x40a,_0x2e335c:0x267,_0x4855b4:0x510,_0x4f6ef9:0x54c,_0xeddf7a:0x4ea,_0xd9a3cb:0x422,_0x41c50a:0x4a5,_0x1cb15a:0x5d7,_0xf751d1:0x391,_0x27d3fa:0x5a5,_0x16099b:0x4b3,_0x12e7e1:0x386,_0x3ff076:0x2a6,_0x11dc73:0x400,_0x18dd6d:0x4a8,_0x5107d7:0x527,_0x3fb211:0x47e},_0x18195e={_0x228eb7:0x1d0};if(_0x443ac4)return _0x443ac4;if(_0x43ccef['platform']()===_0x3816aa(0x5d8,_0x1cd533._0x5f3ec8,0x546,0x4e3))return process['env'][_0x3816aa(0x378,_0x1cd533._0x307379,_0x1cd533._0x2e335c,0x2af)]||_0x3816aa(_0x1cd533._0x4855b4,_0x1cd533._0x4f6ef9,_0x1cd533._0xeddf7a,_0x1cd533._0xd9a3cb);const _0x18ff61=[_0x38d184(_0x1cd533._0x41c50a,0x5c8,0x46f,_0x1cd533._0x1cb15a),_0x38d184(0x483,0x393,0x5a1,_0x1cd533._0xf751d1),_0x38d184(0x534,_0x1cd533._0x27d3fa,_0x1cd533._0x16099b,0x509),_0x3816aa(_0x1cd533._0x12e7e1,_0x1cd533._0x3ff076,0x419,0x2d7)];function _0x38d184(_0x3adcb3,_0x5ee17a,_0x2565eb,_0x374523){return _0x2fd7af(_0x3adcb3-0x4a9,_0x5ee17a-_0x18195e._0x228eb7,_0x5ee17a,_0x374523-0x84);}for(const _0x3e5494 of _0x18ff61){if(shellExists(_0x3e5494))return _0x3e5494;}const _0x552c76=process['env'][_0x38d184(_0x1cd533._0x11dc73,0x33f,_0x1cd533._0x18dd6d,0x30f)];function _0x3816aa(_0x393c4b,_0xbe30ff,_0x5eae6d,_0x4ea830){return _0x278b49(_0x393c4b-0xd,_0xbe30ff-0x4f,_0x393c4b-0x4dc,_0xbe30ff);}if(_0x552c76&&shellExists(_0x552c76))return _0x552c76;return _0x3816aa(_0x1cd533._0x5107d7,_0x1cd533._0x3fb211,0x4b6,0x457);}function buildShellArgs(_0x51f747,_0x4b7f17){const _0xebf5b4={_0x50900f:0x1db,_0x1f019a:0xeb,_0x2af9e0:0xbe,_0x3aa55c:0x18d,_0x15a8cd:0x55,_0x5367f9:0x4d},_0x37641f={_0x6edd9:0x5,_0x2e18be:0x1ad};if(_0x43ccef[_0x3bf1f8(_0xebf5b4._0x50900f,_0xebf5b4._0x1f019a,0x152,_0xebf5b4._0x2af9e0)]()===_0x3bf1f8(0x21f,_0xebf5b4._0x3aa55c,0x197,0x14e)){const _0x587b02=/cmd(\.exe)?$/i['test'](_0x4b7f17);return _0x587b02?['/d','/s','/c',_0x51f747]:['-NoLogo',_0x3bf1f8(-_0xebf5b4._0x15a8cd,_0xebf5b4._0x5367f9,-0x55,0xd5),_0x3bf1f8(-0x34,-0x3c,0x1db,0xee),_0x51f747];}function _0x3bf1f8(_0x489851,_0x9f71df,_0x4dbba0,_0x1a74cc){return _0x278b49(_0x489851-0x100,_0x9f71df-0x3f,_0x1a74cc-0x52,_0x489851);}function _0x3c079e(_0x55f99b,_0x25445c,_0x1bfe6f,_0x54f245){return _0x278b49(_0x55f99b-_0x37641f._0x6edd9,_0x25445c-_0x37641f._0x2e18be,_0x25445c-0xc,_0x54f245);}return['-c',_0x51f747];}function resolveCarriageReturns(_0x37db76){const _0x2ac0f2={_0x19f440:0x331,_0x2ef6aa:0x43c,_0x497f98:0x3bf,_0x17de55:0x3ce,_0x281659:0x333,_0x23858e:0x2f9,_0x4e54cf:0x27b,_0x335523:0x2d9},_0x3a0955={_0xcbb9a:0x6ab,_0x1e5256:0x70f,_0x588b55:0x455},_0x2a3c7e={_0x3ea77c:0x25f},_0x1159bf={_0x97f7f3:0xee},_0xa3815d={_0x41253c:0x6f,_0x459a8e:0x333},_0x100d8b={_0x345dac:0x412,_0x38e9d5:0xec,_0x44d19e:0x2};function _0x2ae8e3(_0x209ea3,_0x49f6eb,_0x20a070,_0x169818){return _0x2fd7af(_0x49f6eb-_0x100d8b._0x345dac,_0x49f6eb-_0x100d8b._0x38e9d5,_0x20a070,_0x169818-_0x100d8b._0x44d19e);}function _0x4a125e(_0x45e362,_0x32e1d0,_0x536fbc,_0x46d6cb){return _0x278b49(_0x45e362-0x2d,_0x32e1d0-_0xa3815d._0x41253c,_0x32e1d0-_0xa3815d._0x459a8e,_0x536fbc);}return _0x37db76[_0x4a125e(_0x2ac0f2._0x19f440,_0x2ac0f2._0x2ef6aa,_0x2ac0f2._0x497f98,_0x2ac0f2._0x17de55)]('\x0a')[_0x2ae8e3(0x254,_0x2ac0f2._0x281659,_0x2ac0f2._0x23858e,0x281)](_0xa24340=>{if(!_0xa24340[_0x54e196(0x7c6,0x7f0,_0x3a0955._0xcbb9a,_0x3a0955._0x1e5256)]('\x0d'))return _0xa24340;function _0x2503c7(_0x5079e6,_0x12d047,_0x2f8bb5,_0x5cc4c7){return _0x2ae8e3(_0x5079e6-0x5c,_0x5cc4c7- -0x1a5,_0x5079e6,_0x5cc4c7-_0x1159bf._0x97f7f3);}function _0x54e196(_0x565b13,_0x5dc9f1,_0x4384be,_0xce9162){return _0x2ae8e3(_0x565b13-0x3d,_0x4384be-_0x2a3c7e._0x3ea77c,_0x565b13,_0xce9162-0x1d7);}const _0x19a41e=_0xa24340[_0x2503c7(0x287,0x384,_0x3a0955._0x588b55,0x327)]('\x0d');return _0x19a41e[_0x19a41e['length']-0x1]??'';})[_0x4a125e(_0x2ac0f2._0x4e54cf,0x325,0x2c5,_0x2ac0f2._0x335523)]('\x0a');}function resolveBackspaces(_0x3738aa){const _0x45f443={_0x20599e:0x201,_0x3c176d:0x5ba,_0x50c185:0x699,_0x5912bd:0x4a0,_0x93a8b:0xdd,_0x4ce4ac:0x1fd},_0x365c76={_0x22584e:0x80},_0x28e7e2={_0x1d102d:0xf1,_0x3279fc:0x4b9},_0x348813=[];function _0x47321e(_0x11b5f4,_0x4bdb66,_0x4a2f9b,_0x572292){return _0x278b49(_0x11b5f4-0x11a,_0x4bdb66-_0x28e7e2._0x1d102d,_0x11b5f4-_0x28e7e2._0x3279fc,_0x4bdb66);}function _0x5dd293(_0xcd6b0a,_0x50920f,_0x305bfd,_0x288c34){return _0x2fd7af(_0xcd6b0a- -_0x365c76._0x22584e,_0x50920f-0x1e6,_0x288c34,_0x288c34-0x110);}for(const _0x28ea7b of Array[_0x47321e(0x538,0x5d9,0x65c,0x583)](_0x3738aa)){_0x28ea7b==='\x08'?_0x348813[_0x5dd293(-0xbe,0x0,-_0x45f443._0x20599e,0x30)]():_0x348813[_0x47321e(_0x45f443._0x3c176d,0x4a1,_0x45f443._0x50c185,_0x45f443._0x5912bd)](_0x28ea7b);}return _0x348813[_0x5dd293(-_0x45f443._0x93a8b,-0x19d,-_0x45f443._0x4ce4ac,0x2)]('');}function stripAnsiAndControls(_0x7d4a1d){const _0x205c54={_0xc2967b:0x34,_0x5f5df8:0xb2,_0x1145c4:0x679,_0x2382ea:0x5fe,_0xd1031d:0x486,_0x52eee0:0x508,_0x232d50:0x5bc,_0xbb8982:0x492,_0x1b03a6:0x45f,_0x3b9ce7:0x34,_0x4cacf1:0xc8,_0x37581a:0x69,_0x46527b:0x166,_0x39521c:0x83,_0x2802a2:0x5f},_0x59248c={_0x5c9fb6:0xea,_0x1be190:0x55},_0x1741e4={_0x1bd84c:0x615,_0x465b96:0x159,_0xbb7626:0x8b};_0x7d4a1d=resolveCarriageReturns(_0x7d4a1d);function _0x13528f(_0x2332c3,_0x1ac8b0,_0x4e84f4,_0x3d51c4){return _0x2fd7af(_0x4e84f4-_0x1741e4._0x1bd84c,_0x1ac8b0-_0x1741e4._0x465b96,_0x3d51c4,_0x3d51c4-_0x1741e4._0xbb7626);}_0x7d4a1d=resolveBackspaces(_0x7d4a1d),_0x7d4a1d=stripVTControlCharacters(_0x7d4a1d);const _0x4868b7='\x1b',_0x219666='\x07';_0x7d4a1d=_0x7d4a1d[_0x11583f(_0x205c54._0xc2967b,-0x110,0xc3,-_0x205c54._0x5f5df8)](new RegExp(_0x13528f(_0x205c54._0x1145c4,_0x205c54._0x2382ea,0x598,_0x205c54._0xd1031d)+_0x219666+_0x13528f(0x575,_0x205c54._0x52eee0,_0x205c54._0x232d50,_0x205c54._0xbb8982)+_0x219666,'g'),''),_0x7d4a1d=_0x7d4a1d['replace'](new RegExp(';[^\x5cn]*?'+_0x4868b7+'\x5c\x5c','g'),''),_0x7d4a1d=_0x7d4a1d[_0x11583f(_0x205c54._0xc2967b,-0x7c,0x26,-0xee)](new RegExp(_0x219666,'g'),''),_0x7d4a1d=_0x7d4a1d['replace'](new RegExp(_0x4868b7+'[P_^][\x5cs\x5cS]*?'+_0x4868b7+'\x5c\x5c','g'),''),_0x7d4a1d=_0x7d4a1d['replace'](new RegExp(_0x4868b7+'[=>7-8()]','g'),''),_0x7d4a1d=_0x7d4a1d[_0x13528f(0x3a4,0x5a8,_0x205c54._0x1b03a6,0x4a1)](/[\u0080-\u009F]/g,'');function _0x11583f(_0x52bac9,_0x13fa09,_0x39a649,_0x42faba){return _0x2fd7af(_0x52bac9-0x1ea,_0x13fa09-_0x59248c._0x5c9fb6,_0x39a649,_0x42faba-_0x59248c._0x1be190);}return _0x7d4a1d=_0x7d4a1d[_0x11583f(_0x205c54._0x3b9ce7,-_0x205c54._0x4cacf1,_0x205c54._0x37581a,_0x205c54._0x46527b)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x7d4a1d=_0x7d4a1d[_0x11583f(0x34,0xa,_0x205c54._0x39521c,-_0x205c54._0x2802a2)](/[\u23CE\u2424]/g,''),_0x7d4a1d;}function resolveWorkingDirectory(_0x3b4d52,_0x257c03,_0x3c5f81){const _0x49b6e0={_0x3c1551:0x89,_0x47da11:0x22c,_0x1b52e9:0x13c,_0x3e80df:0x134,_0x16b9be:0x0},_0x39e0b4={_0x485a71:0xd4};function _0x1af395(_0x337bab,_0x39240d,_0x20b678,_0xc1446){return _0x2fd7af(_0x39240d-0x283,_0x39240d-0x75,_0x20b678,_0xc1446-0x1dc);}function _0x15ccaf(_0x289045,_0x9b8457,_0x3dca19,_0x21da86){return _0x278b49(_0x289045-0x15f,_0x9b8457-0xa8,_0x21da86- -_0x39e0b4._0x485a71,_0x3dca19);}const _0x1aabb0=resolveAllowedPath(_0x257c03,_0x3c5f81,_0x3b4d52??'.');try{const _0x303d7f=statSync(_0x1aabb0);if(!_0x303d7f[_0x15ccaf(-_0x49b6e0._0x3c1551,-0x180,-_0x49b6e0._0x47da11,-_0x49b6e0._0x1b52e9)]())throw new ToolExecutionError(_0x15ccaf(-_0x49b6e0._0x3e80df,-0x179,-0xed,-0x180)+_0x1aabb0,{'cwd':_0x1aabb0});return _0x1aabb0;}catch(_0x3a521c){if(_0x3a521c instanceof ToolExecutionError)throw _0x3a521c;throw new ToolExecutionError(_0x15ccaf(-0x198,_0x49b6e0._0x16b9be,-0x1c1,-0x12b)+_0x1aabb0,{'cwd':_0x1aabb0});}}function killProcessGroup(_0x23755b,_0x59494f,_0x20319d='SIGKILL'){const _0x4c25bc={_0x12c243:0x148,_0x4fb8a4:0x17b,_0xaace3:0x91,_0x155f8c:0xad,_0x7f5d29:0x1b2,_0x509d5a:0x1b1,_0x523437:0x113,_0x469995:0x193,_0x1393e2:0xc1,_0x133c88:0xd,_0x5e9fdb:0x88,_0x4e0451:0x121,_0x7d4f2d:0x280,_0x43dc46:0x2ee,_0x1d3952:0x105},_0xb48343={_0x3f9448:0x176,_0x1f92e7:0x1cb,_0xf91233:0x19d},_0x2ba443={_0x23c9ae:0xa8,_0x13a4d8:0x7d};if(!_0x23755b[_0x125d14(0x1b1,0x27f,_0x4c25bc._0x12c243,_0x4c25bc._0x4fb8a4)])return;function _0xdac384(_0x125094,_0x1308ff,_0x1983c4,_0x4b4dcd){return _0x2fd7af(_0x125094-0x38a,_0x1308ff-_0x2ba443._0x23c9ae,_0x1308ff,_0x4b4dcd-_0x2ba443._0x13a4d8);}function _0x125d14(_0x189b79,_0xb84f9b,_0x5e2c62,_0x1b4db5){return _0x2fd7af(_0x189b79-_0xb48343._0x3f9448,_0xb84f9b-_0xb48343._0x1f92e7,_0x1b4db5,_0x1b4db5-_0xb48343._0xf91233);}if(_0x59494f)try{_0x35ce3c(_0x125d14(_0x4c25bc._0xaace3,-_0x4c25bc._0x155f8c,0xf1,_0x4c25bc._0x7f5d29),['/pid',_0x23755b[_0x125d14(_0x4c25bc._0x509d5a,_0x4c25bc._0x523437,0xdb,_0x4c25bc._0x469995)][_0x125d14(_0x4c25bc._0x1393e2,-0x5f,0x17e,-0x2a)](),'/T','/F'],{'stdio':_0x125d14(-_0x4c25bc._0x133c88,-_0x4c25bc._0x5e9fdb,0x13a,0xbe)});return;}catch{_0x23755b['kill'](_0x20319d);return;}try{process[_0xdac384(0x24f,_0x4c25bc._0x4e0451,_0x4c25bc._0x7d4f2d,0x17c)](-_0x23755b[_0x125d14(0x1b1,0x24f,_0x4c25bc._0x43dc46,0x293)],_0x20319d);}catch{_0x23755b[_0x125d14(0x3b,-0xd6,-0x29,-_0x4c25bc._0x1d3952)](_0x20319d);}}function appendChunk(_0x335278,_0x3a7845,_0x4fa640,_0x227d64,_0x3ac419){const _0x3b5d4a={_0x55bf37:0x60c,_0x3bd55a:0x5f0,_0x2c6cc0:0x600,_0xc46739:0x687},_0x124446={_0xa55b0e:0x15b},_0x3e6e49={_0xa51fef:0x1e0,_0xc8e308:0x1b2},_0x389cd4=_0x227d64?stripAnsiAndControls(_0x4fa640):_0x4fa640;if(_0x389cd4['length']===0x0)return;function _0x51d01c(_0x2bd77b,_0x3cf737,_0x1d13a4,_0x4998fb){return _0x278b49(_0x2bd77b-_0x3e6e49._0xa51fef,_0x3cf737-_0x3e6e49._0xc8e308,_0x2bd77b-0x50b,_0x3cf737);}_0x335278[_0x51d01c(_0x3b5d4a._0x55bf37,0x541,0x613,_0x3b5d4a._0x3bd55a)](_0x389cd4);function _0x5267e1(_0x22ffca,_0x310266,_0x130ed0,_0x2d26ff){return _0x278b49(_0x22ffca-_0x124446._0xa55b0e,_0x310266-0x1e9,_0x130ed0-0x4ff,_0x310266);}_0x3a7845[_0x5267e1(0x6c3,0x60f,_0x3b5d4a._0x2c6cc0,_0x3b5d4a._0xc46739)](_0x389cd4),_0x3ac419();}function createBashTool(_0xce2387={}){const _0x228e66={_0x32e907:0x136,_0x3d4847:0x4bd,_0x15d809:0x354,_0x199397:0x270,_0x2188c0:0x2b2,_0x3e7944:0x13e,_0x420855:0x34d,_0x4acfcc:0x4be,_0x2b9cc1:0x273,_0x37cddd:0x53,_0x1463dc:0x568,_0x4ea54f:0x158,_0x22ef09:0x190,_0xb9a71e:0xe3,_0x73d4fd:0x5c,_0x389ff2:0x14c,_0x372159:0x565,_0x16c353:0x6fb,_0x35eafd:0x527,_0x2c759b:0x554,_0x3d3a33:0x23c,_0x4bce77:0x124,_0x111b75:0xf6},_0x468e6b={_0x4c6f4c:0x471,_0x473f9e:0x413,_0x440965:0x313,_0x144c02:0x499,_0xdccb02:0x4c2,_0x4d139e:0x5b9,_0x199641:0x60c,_0x1c692c:0x665,_0x56bfa0:0x4d0,_0x2424bf:0x4f0,_0x101472:0x38f,_0x4f8dc6:0x3cb,_0x521267:0x4a3,_0x34b67a:0x429,_0x82e82c:0x4b8,_0x5c44f1:0x5b0,_0x2dbf50:0x3d8,_0x45f11:0x436,_0x5738cd:0x4cb,_0x51ab7c:0x533,_0x1dbe12:0x452,_0xb83dc0:0x4b6,_0x591857:0x341,_0x49e49d:0x40e,_0x47976c:0x3ee,_0x40c0b8:0x45d,_0x5bc8a4:0x3f2,_0xbdd83e:0x39f,_0x319440:0x14e,_0x5d507e:0x38a,_0x2c4959:0x676,_0x4536a1:0x384,_0x2f4da3:0x2e3,_0x24abdc:0x2b1,_0x16d4cf:0x391,_0x18921b:0x539,_0x65bb79:0x447,_0x570a6c:0x56f,_0x4280f6:0x3b2,_0x4d5619:0x3e2,_0x4867a0:0x3c7,_0x25f015:0x458,_0x426051:0x3ed,_0x4918a6:0x4ea,_0x9b2de4:0x2a9,_0x3b0574:0x382,_0x1c649d:0x473,_0x309c8e:0x26d,_0x1de6e9:0x257,_0xe9c99f:0x26b,_0x2eee32:0x4eb,_0x5a05a0:0x659,_0x11fb4b:0x387,_0xa494e0:0x327,_0x378374:0x350,_0x258956:0x35e,_0x7bab3f:0x404,_0x20a171:0x4b5,_0x3599cb:0x505,_0x249266:0x4b1,_0x38505b:0x544,_0x1f6b81:0x2b6,_0x5a6811:0x4a6,_0x2ab538:0x572,_0x34a13a:0x53f,_0x441872:0x5b0,_0x2f69f5:0x3f5,_0x3f9086:0x31f,_0x5ac961:0x48f,_0x4e8607:0x489,_0x54d91f:0x418,_0x28bb68:0x439,_0xe91659:0x3de,_0x54c352:0x427,_0x2d8a22:0x69d,_0x1a555f:0x61b,_0x2d66ef:0x5a6,_0xaa37ce:0x4d4,_0x31db2d:0x4cb,_0x4512c0:0x5b0,_0x2dc0a9:0x538,_0x48e877:0x5a2,_0x2a5683:0x37c,_0x1a850e:0x458,_0x597020:0x5f1,_0x2d29cf:0x406,_0x9a1490:0x32a,_0x316e45:0x419,_0x4ad266:0x376,_0x37a01:0x433,_0x1562a8:0x5ac,_0x3d8088:0x180,_0x26d453:0x271,_0x2a847a:0x30a},_0x7cde41={_0x314a8d:0x298,_0x52f75d:0x15f,_0x93b023:0x178,_0x51f41f:0xee},_0x1911ff={_0x2fbdc8:0x55,_0x34eb6c:0x18,_0x51d781:0x2e2,_0x199349:0x200},_0x1d4387={_0x33b13f:0x305,_0x15442f:0x23f},_0x4cee5f={_0x56f3e5:0x2c,_0xe6df3:0x17e},_0x473896={_0x14732c:0x11c};function _0x17f446(_0x3aa878,_0xb17c90,_0x1ae382,_0x239423){return _0x2fd7af(_0xb17c90-0x59d,_0xb17c90-_0x473896._0x14732c,_0x3aa878,_0x239423-0xf8);}const _0x3a31a1=_0x166011['resolve'](_0xce2387[_0x4704fe(0x250,0x316,0x398,_0x228e66._0x32e907)]??process[_0x17f446(0x55d,0x455,_0x228e66._0x3d4847,_0x228e66._0x15d809)]()),_0x56e54f=(_0xce2387[_0x4704fe(_0x228e66._0x199397,_0x228e66._0x2188c0,_0x228e66._0x3e7944,_0x228e66._0x420855)]??[])[_0x17f446(0x516,_0x228e66._0x4acfcc,0x4ec,0x4d2)](_0x3c382d=>_0x166011['resolve'](_0x3c382d)),_0x10a703=_0xce2387[_0x4704fe(0x159,_0x228e66._0x2b9cc1,_0x228e66._0x37cddd,0x68)]??DEFAULT_TIMEOUT_MS,_0x42093b=_0xce2387[_0x17f446(0x4b8,0x4a7,0x5d4,_0x228e66._0x1463dc)]??!![];function _0x4704fe(_0x32bcb0,_0x389e9f,_0x24fe1b,_0x1c27eb){return _0x278b49(_0x32bcb0-0x97,_0x389e9f-0x42,_0x32bcb0-0x1ae,_0x1c27eb);}const _0xa9e900=_0xce2387['name']??_0x4704fe(0x240,0x175,_0x228e66._0x4ea54f,0x1d9);return defineTool({'name':_0xa9e900,'description':_0xce2387['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x4704fe(0x21b,0x26e,_0x228e66._0x22ef09,0x19e),'properties':{'command':{'type':_0x4704fe(0xa3,_0x228e66._0xb9a71e,0x171,-_0x228e66._0x37cddd)},'cwd':{'type':_0x4704fe(0xa3,0x1b0,-_0x228e66._0x73d4fd,_0x228e66._0x389ff2)},'timeoutMs':{'type':_0x17f446(0x523,0x617,_0x228e66._0x372159,_0x228e66._0x16c353)},'ignoreOutput':{'type':_0x17f446(0x463,_0x228e66._0x35eafd,_0x228e66._0x2c759b,0x608)}},'required':[_0x4704fe(_0x228e66._0x3d3a33,_0x228e66._0x4bce77,0x1af,_0x228e66._0x111b75)]},async *'execute'(_0x160b19,_0x16fa5e){const _0x6a90c={_0x1dc377:0x5b,_0x4358ba:0x38c,_0x2b7f82:0xad},_0x1c940e={_0x321bec:0xd2},_0x2a2c55={_0x5f5292:0x1bc,_0x3a17ea:0x183,_0x1bdbd8:0x47f},_0x3d48f0={_0x155987:0x134,_0x8bb181:0x1c0},_0x11735f={_0x9f7aac:0x3b7,_0xaa37c9:0x380},_0x58c1fc={_0x442d26:0x96},_0x481ac4={_0x21c9be:0x35e},_0x96f67b={_0x52366a:0x1ef},_0x37f077={_0x1e4602:0x21c,_0x210a84:0xdd},_0x2bb1e8=_0x160b19[_0x5f06f7(0x34d,0x4e2,_0x468e6b._0x4c6f4c,_0x468e6b._0x473f9e)]??_0x10a703;if(!Number[_0x5f06f7(0x284,_0x468e6b._0x440965,0x35f,_0x468e6b._0x144c02)](_0x2bb1e8)||_0x2bb1e8<0x1)throw new ToolExecutionError(_0x251b5f(0x531,_0x468e6b._0xdccb02,0x5af,_0x468e6b._0x4d139e),{'command':_0x160b19[_0x251b5f(0x6c6,_0x468e6b._0x199641,_0x468e6b._0x1c692c,0x5b0)]});throwIfAborted(_0x16fa5e[_0x251b5f(_0x468e6b._0x56bfa0,_0x468e6b._0x2424bf,0x479,0x4b6)]);const _0x2b206a=resolveWorkingDirectory(_0x160b19[_0x251b5f(_0x468e6b._0x101472,_0x468e6b._0x4f8dc6,_0x468e6b._0x521267,_0x468e6b._0x34b67a)],_0x3a31a1,_0x56e54f),_0x1178e0=_0x160b19['ignoreOutput']??![],_0x4038fa=resolveDefaultShell(_0xce2387['shellPath']),_0x5ed992=buildShellArgs(_0x160b19[_0x251b5f(0x4aa,0x5b9,_0x468e6b._0x82e82c,_0x468e6b._0x5c44f1)],_0x4038fa),_0x4f0f07=_0x43ccef[_0x5f06f7(0x555,_0x468e6b._0x2dbf50,_0x468e6b._0x45f11,_0x468e6b._0x5738cd)]()==='win32';let _0x34ef70;try{_0x34ef70=_0x35ce3c(_0x4038fa,_0x5ed992,{'cwd':_0x2b206a,'env':{...process['env'],..._0xce2387[_0x5f06f7(_0x468e6b._0x51ab7c,0x403,_0x468e6b._0x1dbe12,0x4be)]??{}},'stdio':_0x1178e0?[_0x251b5f(0x2be,0x46d,0x3b0,0x3ee),_0x251b5f(_0x468e6b._0xb83dc0,_0x468e6b._0x591857,_0x468e6b._0x49e49d,_0x468e6b._0x47976c),_0x251b5f(0x305,_0x468e6b._0x40c0b8,_0x468e6b._0x5bc8a4,0x3ee)]:[_0x5f06f7(_0x468e6b._0xbdd83e,_0x468e6b._0x319440,0x296,0x28e),'pipe',_0x5f06f7(0x296,0x21c,0x347,_0x468e6b._0x5d507e)],'shell':![],'windowsHide':!![],'detached':!_0x4f0f07});}catch(_0x500922){if(isErrnoException(_0x500922)&&_0x500922[_0x251b5f(0x465,_0x468e6b._0x2c4959,0x657,0x544)]===_0x5f06f7(_0x468e6b._0x4536a1,_0x468e6b._0x2f4da3,_0x468e6b._0x24abdc,_0x468e6b._0x16d4cf))throw new ToolExecutionError(_0x5f06f7(_0x468e6b._0x18921b,0x3cd,_0x468e6b._0x65bb79,_0x468e6b._0x570a6c)+_0x4038fa,{'command':_0x160b19[_0x5f06f7(0x46b,0x45f,0x458,0x42a)],'cwd':_0x2b206a,'shellPath':_0x4038fa});throw new ToolExecutionError(_0x500922 instanceof Error?_0x500922[_0x5f06f7(0x337,0x39a,_0x468e6b._0x4280f6,_0x468e6b._0x4d5619)]:String(_0x500922),{'command':_0x160b19[_0x5f06f7(_0x468e6b._0x4867a0,0x493,_0x468e6b._0x25f015,0x405)],'cwd':_0x2b206a,'shellPath':_0x4038fa});}const _0xebc84c=[],_0x23ce55=[];function _0x5f06f7(_0x2e1599,_0x413b54,_0x299aa7,_0x535f05){return _0x4704fe(_0x299aa7-_0x37f077._0x1e4602,_0x413b54-0xf9,_0x299aa7-_0x37f077._0x210a84,_0x413b54);}const _0xce8d22=new StringDecoder(_0x5f06f7(0x4f2,_0x468e6b._0x426051,0x3b5,_0x468e6b._0x4918a6)),_0x4514ba=new StringDecoder('utf8');let _0x5b5090;function _0x251b5f(_0x3ef618,_0x2321e8,_0x5ed756,_0xe43e5f){return _0x17f446(_0x2321e8,_0xe43e5f- -_0x4cee5f._0x56f3e5,_0x5ed756-0xf2,_0xe43e5f-_0x4cee5f._0xe6df3);}let _0x7d2bf=![],_0x4452db;const _0x32acb1=()=>{if(!_0x5b5090)return;const _0x3577c5=_0x5b5090;_0x5b5090=void 0x0,_0x3577c5();},_0x5647f9=async()=>{function _0xf47146(_0x396bee,_0x3bc431,_0x4965c0,_0x32899b){return _0x251b5f(_0x396bee-0x83,_0x396bee,_0x4965c0-_0x96f67b._0x52366a,_0x4965c0- -0x156);}if(_0x23ce55[_0xf47146(0x464,_0x481ac4._0x21c9be,0x3af,0x4b4)]>0x0||_0x7d2bf)return;await new Promise(_0x2dc7cd=>{_0x5b5090=_0x2dc7cd;});},_0x3706ff=_0x4b6b30=>{function _0x2b61ea(_0x2c7f21,_0x4a933f,_0x228cc4,_0x2abecb){return _0x251b5f(_0x2c7f21-_0x58c1fc._0x442d26,_0x228cc4,_0x228cc4-0x122,_0x2c7f21- -0x2cc);}appendChunk(_0xebc84c,_0x23ce55,_0xce8d22[_0x2b61ea(_0x1d4387._0x33b13f,_0x1d4387._0x15442f,0x29a,0x31c)](_0x4b6b30),_0x42093b,_0x32acb1);},_0x37bd35=_0x4d58a8=>{const _0x7352dc={_0x2002cb:0xf9,_0x1ac423:0xeb};function _0x367d80(_0x5cc2e6,_0x53504b,_0x466a34,_0x2d223c){return _0x5f06f7(_0x5cc2e6-0xe5,_0x2d223c,_0x466a34- -_0x7352dc._0x2002cb,_0x2d223c-_0x7352dc._0x1ac423);}appendChunk(_0xebc84c,_0x23ce55,_0x4514ba[_0x367d80(_0x11735f._0x9f7aac,0x432,_0x11735f._0xaa37c9,0x440)](_0x4d58a8),_0x42093b,_0x32acb1);};_0x34ef70[_0x5f06f7(_0x468e6b._0x9b2de4,_0x468e6b._0x3b0574,0x37c,_0x468e6b._0x1c649d)]?.['on'](_0x5f06f7(_0x468e6b._0x309c8e,_0x468e6b._0x1de6e9,0x305,_0x468e6b._0xe9c99f),_0x3706ff),_0x34ef70[_0x251b5f(_0x468e6b._0x2eee32,0x52f,_0x468e6b._0x5a05a0,0x571)]?.['on'](_0x251b5f(0x323,0x4f5,_0x468e6b._0x11fb4b,0x45d),_0x37bd35);let _0x4d0c7d=![],_0xdd6d42;const _0x19edbb=addAbortListener(_0x16fa5e[_0x5f06f7(_0x468e6b._0xa494e0,_0x468e6b._0x378374,_0x468e6b._0x258956,0x36e)],()=>{_0x4452db=toAbortError(_0x16fa5e[_0x5e1f6e(-0x6c,_0x1911ff._0x2fbdc8,0x2b,_0x1911ff._0x34eb6c)][_0x33d24a(_0x1911ff._0x51d781,0x1c0,_0x1911ff._0x199349,0x274)]),_0x7d2bf=!![],_0x32acb1();function _0x5e1f6e(_0x420947,_0x5a0d82,_0x462940,_0xaab53e){return _0x251b5f(_0x420947-0xd0,_0x462940,_0x462940-0x27,_0xaab53e- -0x49e);}function _0x33d24a(_0x3c354e,_0x185a6a,_0x22b97a,_0x3d37f8){return _0x251b5f(_0x3c354e-0x17,_0x3c354e,_0x22b97a-_0x3d48f0._0x155987,_0x22b97a- -_0x3d48f0._0x8bb181);}try{killProcessGroup(_0x34ef70,_0x4f0f07);}catch{}});try{const _0x54203e=new Promise((_0x370114,_0x2c7fbb)=>{const _0x47f5d4={_0x427382:0x3bb,_0x246b0a:0x3b5,_0xc4bdf1:0x33b,_0x2c7c39:0x477,_0x2d45b6:0x55d},_0x5d1616={_0x77b5b7:0xca},_0x5a0d15={_0x3c7de8:0x169},_0x5ab317={_0x401def:0x15a},_0xeffb1=()=>{_0xdd6d42&&(clearTimeout(_0xdd6d42),_0xdd6d42=void 0x0);function _0x706d07(_0x2a4376,_0x396574,_0x56f659,_0x693c7a){return _0x16a6(_0x396574- -_0x5ab317._0x401def,_0x2a4376);}function _0x490939(_0xd30e15,_0xa9a430,_0x4a087a,_0x26190f){return _0x16a6(_0xa9a430-_0x5a0d15._0x3c7de8,_0x26190f);}_0x34ef70[_0x706d07(0x213,_0x2a2c55._0x5f5292,_0x2a2c55._0x3a17ea,0x2b9)]('error',_0x5dfcc1),_0x34ef70[_0x490939(0x57b,_0x2a2c55._0x1bdbd8,0x577,0x3ed)]('close',_0x5ebefe);},_0x5dfcc1=_0x3194c8=>{_0x7d2bf=!![],_0x32acb1(),_0xeffb1(),_0x2c7fbb(_0x4452db??_0x3194c8);};function _0x3787f6(_0x2ea16c,_0x37cff5,_0x1bdf7b,_0x16406d){return _0x251b5f(_0x2ea16c-_0x1c940e._0x321bec,_0x16406d,_0x1bdf7b-0x64,_0x37cff5- -0x12b);}const _0x5ebefe=(_0xf647e5,_0x47aa95)=>{_0x4d0c7d=!![],appendChunk(_0xebc84c,_0x23ce55,_0xce8d22['end'](),_0x42093b,_0x32acb1),appendChunk(_0xebc84c,_0x23ce55,_0x4514ba['end'](),_0x42093b,_0x32acb1),_0x7d2bf=!![],_0x32acb1(),_0xeffb1();if(_0x4452db){_0x2c7fbb(_0x4452db);return;}_0x370114({'code':_0xf647e5,'signal':_0x47aa95});};function _0x50f6d0(_0x318d90,_0x20f684,_0xadb1c9,_0x2a6184){return _0x5f06f7(_0x318d90-_0x6a90c._0x1dc377,_0x318d90,_0xadb1c9- -_0x6a90c._0x4358ba,_0x2a6184-_0x6a90c._0x2b7f82);}_0xdd6d42=setTimeout(()=>{const _0x2eb21c={_0x3f38bd:0x1e9};_0x7d2bf=!![];function _0x534467(_0x512ab3,_0x22a204,_0x1281dc,_0x482c34){return _0x16a6(_0x512ab3- -_0x5d1616._0x77b5b7,_0x22a204);}_0x32acb1();function _0x87c5a0(_0x2c9040,_0x3a7a48,_0x597c17,_0x146918){return _0x16a6(_0x2c9040-_0x2eb21c._0x3f38bd,_0x3a7a48);}_0xeffb1();try{killProcessGroup(_0x34ef70,_0x4f0f07);}catch{}_0x2c7fbb(new ToolExecutionError(_0x87c5a0(_0x47f5d4._0x427382,_0x47f5d4._0x246b0a,_0x47f5d4._0xc4bdf1,0x4c5)+_0x2bb1e8+_0x87c5a0(_0x47f5d4._0x2c7c39,0x40d,0x585,0x358),{'command':_0x160b19[_0x87c5a0(_0x47f5d4._0x2d45b6,0x556,0x65a,0x440)],'cwd':_0x2b206a,'shellPath':_0x4038fa,'timeoutMs':_0x2bb1e8,'timedOut':!![]}));},_0x2bb1e8),_0x34ef70[_0x50f6d0(_0x7cde41._0x314a8d,0x2b,_0x7cde41._0x52f75d,0x237)]('error',_0x5dfcc1),_0x34ef70[_0x50f6d0(_0x7cde41._0x93b023,0x8c,0x15f,0x26e)](_0x50f6d0(0x10e,0x11,_0x7cde41._0x51f41f,0x1d5),_0x5ebefe);});while(_0x23ce55[_0x5f06f7(0x3b9,0x3c9,0x3ad,_0x468e6b._0x7bab3f)]>0x0||!_0x7d2bf){if(_0x23ce55[_0x251b5f(_0x468e6b._0x20a171,0x463,0x62d,_0x468e6b._0x3599cb)]===0x0){await _0x5647f9();continue;}const _0xed417f=_0x23ce55[_0x5f06f7(_0x468e6b._0x249266,0x527,0x44e,0x47c)]();_0xed417f!==void 0x0&&(yield _0xed417f);}const _0x2322b9=await _0x54203e,_0x5d95d7=_0x1178e0?'exit\x20code\x20'+(_0x2322b9[_0x251b5f(0x64b,0x46c,0x403,_0x468e6b._0x38505b)]??0x0):_0xebc84c[_0x5f06f7(_0x468e6b._0x1f6b81,_0x468e6b._0x5a6811,0x3bc,0x2df)](''),_0xec860f={'command':_0x160b19[_0x251b5f(_0x468e6b._0x2ab538,_0x468e6b._0x34a13a,0x63a,_0x468e6b._0x441872)],'cwd':_0x2b206a,'exitCode':_0x2322b9['code']??0x0,'signal':_0x2322b9[_0x5f06f7(_0x468e6b._0x2f69f5,0x290,0x35e,_0x468e6b._0x3f9086)],'ignoreOutput':_0x1178e0,'shellPath':_0x4038fa,'timeoutMs':_0x2bb1e8};if(_0x2322b9['code']!==0x0)throw new ToolExecutionError(_0x5d95d7||_0x251b5f(_0x468e6b._0x5ac961,_0x468e6b._0x4e8607,0x342,_0x468e6b._0x54d91f)+(_0x2322b9[_0x5f06f7(_0x468e6b._0x28bb68,_0x468e6b._0xe91659,0x3ec,_0x468e6b._0x54c352)]??0x0),_0xec860f);return createToolOutput(_0x5d95d7,_0xec860f);}catch(_0xf40b1c){while(_0x23ce55['length']>0x0){const _0x260a4f=_0x23ce55[_0x251b5f(0x58a,_0x468e6b._0x2d8a22,_0x468e6b._0x1a555f,_0x468e6b._0x2d66ef)]();_0x260a4f!==void 0x0&&(yield _0x260a4f);}if(_0xf40b1c instanceof ToolExecutionError)throw _0xf40b1c;if(_0x4452db)throw _0x4452db;if(isErrnoException(_0xf40b1c)&&_0xf40b1c[_0x251b5f(0x607,_0x468e6b._0xaa37ce,_0x468e6b._0x31db2d,0x544)]===_0x251b5f(0x515,0x523,0x41a,0x409))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x4038fa,{'command':_0x160b19[_0x251b5f(0x4b1,0x670,0x632,_0x468e6b._0x4512c0)],'cwd':_0x2b206a,'shellPath':_0x4038fa});throw new ToolExecutionError(_0xf40b1c instanceof Error?_0xf40b1c['message']:String(_0xf40b1c),{'command':_0x160b19[_0x251b5f(_0x468e6b._0x521267,_0x468e6b._0x2dc0a9,_0x468e6b._0x48e877,0x5b0)],'cwd':_0x2b206a,'shellPath':_0x4038fa});}finally{_0xdd6d42&&clearTimeout(_0xdd6d42);_0x19edbb(),_0x34ef70[_0x5f06f7(0x27f,0x3d5,_0x468e6b._0x2a5683,0x41a)]?.[_0x251b5f(_0x468e6b._0x1a850e,_0x468e6b._0x597020,0x469,0x552)](_0x251b5f(_0x468e6b._0x2d29cf,0x355,0x518,0x45d),_0x3706ff),_0x34ef70[_0x5f06f7(_0x468e6b._0x9a1490,0x352,_0x468e6b._0x316e45,_0x468e6b._0x4ad266)]?.[_0x5f06f7(0x2c8,0x3f7,0x3fa,_0x468e6b._0x37a01)]('data',_0x37bd35);if(!_0x4d0c7d&&_0x34ef70[_0x251b5f(0x5fc,0x553,0x666,_0x468e6b._0x1562a8)]&&!_0x34ef70[_0x5f06f7(0x1e8,_0x468e6b._0x3d8088,_0x468e6b._0x26d453,_0x468e6b._0x2a847a)])try{killProcessGroup(_0x34ef70,_0x4f0f07);}catch{}}}});}function createShellExecTool(_0x50d60d={}){return createBashTool(_0x50d60d);}import{readdir,readFile as _0x25ba7b}from'fs/promises';import{extname,join as _0xd24cb9}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x51d2f3,join,relative as _0xe85d68,resolve as _0x2bdfdd}from'path';import{readdir as _0x438b1e,readFile as _0x102d83}from'fs/promises';import{join as _0x187a24,relative as _0x399a2d,sep}from'path';import{delimiter}from'path';import{mkdir as _0x1ca2b0,rm,stat as _0xd12cac,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x4948df}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x55d132,rename,writeFile as _0x1a2862}from'fs/promises';import{homedir as _0x2c65b8}from'os';import{dirname as _0x469fe0,isAbsolute as _0x50db27,join as _0x8e7ef6,resolve as _0x2bb47e}from'path';import{parse as _0x4b8e37,stringify as _0x44152b}from'yaml';import{cp,mkdir as _0x2c7968,readFile as _0x21d56e,rm as _0x50f103,writeFile as _0x329081}from'fs/promises';import{homedir}from'os';import{join as _0x3445a4}from'path';import{parse as _0x25b6c4,stringify as _0x2d0310}from'yaml';import{z}from'zod';import{readdir as _0x27972e,readFile as _0x1a464c}from'fs/promises';import{join as _0x463988}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x2187ef){const _0x59c294={_0x5a0471:0x80,_0x3493be:0xd5,_0x563eeb:0x1af,_0x1c053a:0xb8,_0x14c18c:0x80,_0x250b5c:0x110,_0x4a4e11:0x5ee,_0x49a868:0x782,_0x390d64:0x670,_0x436e2b:0x64f},_0x29e4ab={_0x12284d:0xef,_0x5ab85c:0x63},_0x2bbd44={_0x5f9e39:0x46},_0x2fbe51=[];let _0x1e6120='',_0xbed226=0x0;function _0x3f3d4a(_0x3fa3ba,_0x24d5c6,_0x2fd6fe,_0x40eaf3){return _0x278b49(_0x3fa3ba-0x10e,_0x24d5c6-_0x2bbd44._0x5f9e39,_0x24d5c6-0x56f,_0x2fd6fe);}while(_0xbed226<_0x2187ef[_0x55b9d9(-0x30,-0x1c6,-0x35,-_0x59c294._0x5a0471)]){const _0x23dec2=_0x2187ef[_0xbed226];if(_0x23dec2==='\x5c'&&_0xbed226+0x1<_0x2187ef[_0x55b9d9(-_0x59c294._0x3493be,-_0x59c294._0x563eeb,-0x2c,-0x80)])_0x1e6120+=_0x2187ef[_0xbed226+0x1],_0xbed226+=0x2;else{if(_0x23dec2==='\x22'||_0x23dec2==='\x27'){const _0x4361ee=_0x23dec2;_0xbed226++;while(_0xbed226<_0x2187ef[_0x55b9d9(_0x59c294._0x1c053a,-0x185,-0xbb,-_0x59c294._0x14c18c)]&&_0x2187ef[_0xbed226]!==_0x4361ee){_0x2187ef[_0xbed226]==='\x5c'&&_0xbed226+0x1<_0x2187ef['length']?(_0x1e6120+=_0x2187ef[_0xbed226+0x1],_0xbed226+=0x2):(_0x1e6120+=_0x2187ef[_0xbed226],_0xbed226++);}_0xbed226++;}else _0x23dec2!==void 0x0&&/\s/[_0x55b9d9(-0x74,-_0x59c294._0x250b5c,0x13a,-0x2)](_0x23dec2)?(_0x1e6120&&(_0x2fbe51[_0x3f3d4a(0x5e7,0x670,_0x59c294._0x4a4e11,_0x59c294._0x49a868)](_0x1e6120),_0x1e6120=''),_0xbed226++):(_0x1e6120+=_0x23dec2,_0xbed226++);}}if(_0x1e6120)_0x2fbe51[_0x3f3d4a(0x7a8,_0x59c294._0x390d64,_0x59c294._0x436e2b,0x717)](_0x1e6120);function _0x55b9d9(_0x4018d2,_0x38086b,_0x452014,_0x3d5012){return _0x278b49(_0x4018d2-_0x29e4ab._0x12284d,_0x38086b-0x16a,_0x3d5012- -_0x29e4ab._0x5ab85c,_0x452014);}return _0x2fbe51;}function renderCommandInstructions(_0x5bb166){const _0x33c356={_0x585486:0x430,_0x48ecfe:0x288,_0x818cbe:0x3c0,_0x4501d7:0x1d9,_0x40cb2b:0x3db,_0x375562:0x248,_0x39b8cd:0x45d,_0x5a973f:0x6e7,_0x210efa:0x5a4,_0x54ad52:0x68a,_0x1b9fd1:0x65c,_0x3278af:0x47a,_0x2f3cda:0x524,_0x497354:0x574,_0x21efd4:0x538,_0x45bc28:0x463,_0x8fb3ee:0x539,_0x250da4:0x507,_0x440e10:0x553,_0x2008a3:0x4bb,_0x36ef10:0x69c,_0xc25d8a:0x4a5,_0x19e256:0x576,_0x4b7bc8:0x7e4,_0x537c54:0x4cd,_0x43dba3:0x289},_0x20cdaf={_0x305162:0x143},_0x502a47={_0x245d99:0x2d1},_0x2a474f={_0xa8ec4b:0x130,_0xc14956:0x5e6};let _0x21e197=_0x5bb166[_0x59b250(0x2c6,_0x33c356._0x585486,0x31f,_0x33c356._0x48ecfe)],_0x2b5cc5=![];function _0x444bdb(_0x20821a,_0xc0f9f2,_0x5dc6c7,_0x5b92ef){return _0x278b49(_0x20821a-_0x2a474f._0xa8ec4b,_0xc0f9f2-0x15b,_0x5b92ef-_0x2a474f._0xc14956,_0x5dc6c7);}const _0x216abd=tokenizeCommandArguments(_0x5bb166[_0x59b250(0x2d1,0x2bf,_0x33c356._0x818cbe,0x4b5)]);_0x21e197=_0x21e197[_0x59b250(_0x33c356._0x4501d7,_0x33c356._0x40cb2b,0x319,_0x33c356._0x375562)](/\$ARGUMENTS\[(\d+)\]/g,(_0x22dfce,_0x2de384)=>{return _0x2b5cc5=!![],_0x216abd[Number(_0x2de384)]??'';}),_0x21e197=_0x21e197[_0x59b250(0x1e8,0x43f,0x319,_0x33c356._0x39b8cd)](/\$ARGUMENTS\b/g,()=>{const _0xee68be={_0x106b99:0x39,_0x50e1b8:0x255};function _0x4fff52(_0x455ffa,_0x1afb16,_0x9821cf,_0x549e30){return _0x444bdb(_0x455ffa-_0xee68be._0x106b99,_0x1afb16-0x144,_0x549e30,_0x455ffa- -_0xee68be._0x50e1b8);}return _0x2b5cc5=!![],_0x5bb166[_0x4fff52(_0x502a47._0x245d99,0x312,0x19c,0x18b)];});if(_0x5bb166[_0x444bdb(_0x33c356._0x5a973f,0x689,_0x33c356._0x210efa,_0x33c356._0x54ad52)]&&_0x5bb166[_0x59b250(_0x33c356._0x1b9fd1,_0x33c356._0x3278af,_0x33c356._0x2f3cda,_0x33c356._0x497354)]['length']>0x0)for(let _0x400ef3=0x0;_0x400ef3<_0x5bb166[_0x59b250(0x3fd,0x5ff,_0x33c356._0x2f3cda,_0x33c356._0x21efd4)][_0x59b250(0x476,0x539,_0x33c356._0x45bc28,0x400)];_0x400ef3++){const _0x402c34=_0x5bb166['argumentNames'][_0x400ef3];if(_0x402c34){const _0x5482e0=new RegExp('\x5c$'+_0x402c34+'\x5cb','g');_0x21e197=_0x21e197['replace'](_0x5482e0,()=>{return _0x2b5cc5=!![],_0x216abd[_0x400ef3]??'';});}}_0x21e197=_0x21e197[_0x444bdb(_0x33c356._0x8fb3ee,_0x33c356._0x250da4,_0x33c356._0x440e10,0x47f)](/\$(\d+)\b/g,(_0x2af05b,_0x224901)=>{return _0x2b5cc5=!![],_0x216abd[Number(_0x224901)]??'';});function _0x59b250(_0x479952,_0x18c83d,_0x47f467,_0x84f2a){return _0x2fd7af(_0x47f467-0x4cf,_0x18c83d-_0x20cdaf._0x305162,_0x479952,_0x84f2a-0x19);}return!_0x2b5cc5&&_0x5bb166['argumentsText'][_0x444bdb(_0x33c356._0x2008a3,_0x33c356._0x36ef10,_0x33c356._0xc25d8a,_0x33c356._0x19e256)]()&&(_0x21e197=_0x21e197+_0x444bdb(_0x33c356._0x4b7bc8,0x787,0x6d8,0x6a4)+_0x5bb166[_0x59b250(_0x33c356._0x537c54,_0x33c356._0x43dba3,_0x33c356._0x818cbe,0x480)]),_0x21e197;}var chatModelAuthSchemeSchema=z[_0x278b49(0x8b,0x6e,0xab,-0x4a)]([_0x2fd7af(-0x46,-0x13e,-0x168,0xac),'x-api-key']),apiKeyAuthSchema=z[_0x278b49(0x13,-0x42,0x6d,0x20)]({'type':z[_0x2fd7af(-0x13c,-0x130,-0x199,-0x1e9)]('apiKey'),'apiKey':z[_0x278b49(0x11,-0x50,-0x10b,-0x216)](),'authScheme':chatModelAuthSchemeSchema[_0x278b49(-0x135,-0x291,-0x165,-0x98)]()})[_0x278b49(0x5a,-0x4f,0x5d,0x5c)]();function _0x278b49(_0x3fe07f,_0xdd614,_0x5313db,_0x26dcba){return _0x16a6(_0x5313db- -0x2e6,_0x26dcba);}var oauthAuthSchema=z[_0x278b49(0x136,0x19d,0x6d,0x22)]({'type':z[_0x2fd7af(-0x13c,-0x11c,-0x242,0xc)](_0x278b49(-0x19c,-0xb2,-0xaf,-0x179)),'access':z[_0x278b49(-0x13d,-0x107,-0x10b,-0x7)](),'refresh':z[_0x2fd7af(-0x15a,-0x7c,-0x13,-0x12e)](),'expires':z[_0x2fd7af(0x7a,0xa2,0x172,-0x5)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x278b49(-0x234,-0xbb,-0x165,-0x1fb)]()})['passthrough'](),authMethodSchema=z[_0x2fd7af(-0xa2,0x7f,0x36,-0x3)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x278b49(0x7b,-0x15,0x6d,-0x1a)]({'id':z['string'](),'name':z[_0x278b49(-0xb2,-0x80,-0x10b,-0x5d)]()[_0x2fd7af(-0x1b4,-0x18e,-0x1d5,-0x1ca)]()})[_0x278b49(0x1a5,-0xe6,0x5d,0x54)](),modelConfigSchema=z[_0x278b49(-0x8a,0x8c,-0x53,-0x1e)]([z[_0x2fd7af(-0x13c,-0x98,-0x155,-0xf4)](![]),z[_0x278b49(-0x1bc,0x54,-0xed,-0x111)](!![]),z[_0x2fd7af(-0x15a,-0x179,-0x29f,-0x250)](),z['array'](z[_0x2fd7af(-0x15a,-0x1bb,-0x19d,-0x9d)]()),z[_0x2fd7af(0x14,-0xf7,0x30,-0x83)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x278b49(0x10,-0x25,0xab,-0x25)](['anthropic-messages','openai-chat-completions',_0x2fd7af(-0x137,-0x1f5,-0x17f,-0x244),_0x2fd7af(-0x10,0x74,-0x56,-0x155)]),providerConfigSchema=z[_0x278b49(-0xae,0x8e,0x6d,-0x52)]({'apiKey':z[_0x2fd7af(-0x15a,-0xd6,-0xa4,-0x15a)]()[_0x2fd7af(-0x1b4,-0x267,-0x231,-0x14a)](),'token':z['string']()[_0x278b49(-0x266,-0x152,-0x165,-0x239)](),'defaultModel':z[_0x2fd7af(-0x15a,-0x45,-0x48,-0x239)]()[_0x2fd7af(-0x1b4,-0x2ef,-0x124,-0x2a9)](),'smallModel':z['string']()[_0x278b49(-0xd7,-0x12a,-0x165,-0x1d2)](),'currentAuth':z[_0x2fd7af(-0x15a,-0x132,-0x255,-0x152)]()[_0x278b49(-0x144,-0x220,-0x165,-0x24)](),'auth':z[_0x278b49(0x1d,0x10c,0x63,0x4b)](authMethodSchema)[_0x2fd7af(-0x1b4,-0x8b,-0xef,-0x8a)](),'surface':chatModelSurfaceSchema[_0x278b49(-0x22d,-0x8e,-0x165,-0x227)](),'baseUrl':z[_0x2fd7af(-0x15a,-0x237,-0x8e,-0x104)]()[_0x278b49(-0x1fc,-0x94,-0x165,-0x208)](),'models':modelConfigSchema[_0x2fd7af(-0x1b4,-0x150,-0x27d,-0x148)](),'customHeaders':z[_0x2fd7af(-0x129,0x1c,-0xb6,-0x16d)](z['string'](),z[_0x278b49(-0x2d,0x1d,-0x10b,-0x194)]())[_0x278b49(-0x127,-0x1b8,-0x165,-0x27c)]()})[_0x278b49(0xd9,0xd2,0x5d,-0xe1)](),mcpServerConfigSchema=z[_0x278b49(0x137,0xb7,0x6d,0xa7)]({'command':z[_0x2fd7af(-0x15a,-0x153,-0x194,-0x7b)]()['optional'](),'args':z[_0x278b49(-0xc4,0x75,0x63,0x2b)](z[_0x278b49(0x4,-0xeb,-0x10b,-0x228)]())[_0x278b49(-0xe9,-0xa4,-0x165,-0x1dc)](),'env':z[_0x278b49(-0x117,-0x171,-0xda,0x62)](z[_0x278b49(-0x67,-0x7,-0x10b,-0x21c)](),z[_0x2fd7af(-0x15a,-0x293,-0x12f,-0x4e)]())[_0x278b49(-0x27b,-0xc5,-0x165,-0x11a)](),'transport':z[_0x278b49(0x1aa,-0x29,0xab,0x36)]([_0x2fd7af(-0x161,-0x11f,-0x11e,-0xac),_0x2fd7af(-0x138,-0x139,-0xe9,-0x1a6)])['optional'](),'url':z[_0x2fd7af(-0x15a,-0x127,-0x1df,-0x163)]()['optional'](),'headers':z[_0x278b49(-0xac,-0xbf,-0xda,-0x1df)](z[_0x2fd7af(-0x15a,-0x12d,-0x32,-0x11d)](),z[_0x278b49(-0x61,-0x147,-0x10b,-0x16b)]())[_0x278b49(-0x22a,-0x275,-0x165,-0xc6)](),'prefix':z[_0x278b49(-0x107,-0x178,-0x10b,0x13)]()[_0x278b49(-0x232,-0xd5,-0x165,-0x17e)](),'timeoutMs':z[_0x278b49(0xea,0x1a1,0xc9,0x185)]()['optional'](),'enabled':z['boolean']()[_0x2fd7af(-0x1b4,-0x23f,-0xdf,-0x2b5)](),'auth':z['object']({'type':z[_0x2fd7af(0x5c,0x186,0x191,0x14d)]([_0x278b49(-0x167,0x39,-0x7f,0x70),_0x278b49(-0x45,0x10c,0x9,-0x2b),_0x2fd7af(-0xfe,-0xbc,-0xfb,-0x2f)]),'token':z[_0x2fd7af(-0x15a,-0x13,-0x42,-0x7c)]()[_0x2fd7af(-0x1b4,-0x2d4,-0x198,-0x27c)](),'oauth':z['object']({'clientId':z[_0x278b49(-0x57,-0x2d,-0x10b,-0x178)]()['optional'](),'clientMetadataUrl':z[_0x278b49(-0x1a3,-0x1b7,-0x10b,-0x1f5)]()[_0x2fd7af(-0x1b4,-0x12d,-0xe1,-0x1fc)](),'authorizationServer':z['string']()['optional'](),'scopes':z[_0x2fd7af(0x14,0x130,0x128,-0x45)](z[_0x278b49(-0x23c,-0x66,-0x10b,-0xcd)]())[_0x2fd7af(-0x1b4,-0xc9,-0x8a,-0x216)](),'tokenStorageKey':z[_0x2fd7af(-0x15a,-0x13e,-0x72,-0x173)]()['optional']()})['passthrough']()[_0x278b49(-0x4b,-0x135,-0x165,-0x12e)]()})[_0x2fd7af(0xe,-0x93,0x9a,-0x3)]()[_0x278b49(-0x247,-0x1b5,-0x165,-0x226)]()})[_0x2fd7af(0xe,0xa9,0xca,0x21)](),mcpSettingsSchema=z[_0x2fd7af(0x1e,-0x127,0xa4,0x22)]({'servers':z['record'](z[_0x2fd7af(-0x15a,-0x26f,-0xdb,-0xdd)](),mcpServerConfigSchema)[_0x278b49(-0x156,-0x199,-0x165,-0x65)](),'allowedTools':z['record'](z[_0x278b49(-0x173,-0xff,-0x10b,-0x1ec)](),z[_0x2fd7af(-0x129,-0x106,-0x6,-0x21)](z[_0x278b49(-0x4b,-0x108,-0x10b,-0x235)](),z[_0x2fd7af(-0x76,-0x107,-0x114,0xd0)]()))[_0x278b49(-0x137,-0x281,-0x165,-0x3f)](),'defaultTimeoutMs':z[_0x2fd7af(0x7a,0xc,-0xb6,0x3e)]()['optional']()})['passthrough'](),skillsSettingsSchema=z[_0x278b49(-0xd2,0x18,0x6d,0xcc)]({'enabled':z[_0x2fd7af(-0x76,-0x177,0xa0,-0x110)]()['optional'](),'includeDefaults':z[_0x2fd7af(-0x76,-0xa1,-0x154,0xc4)]()['optional'](),'directories':z['array'](z[_0x2fd7af(-0x15a,-0x27,-0x208,-0x235)]())['optional'](),'exclude':z[_0x2fd7af(0x14,-0x57,-0x20,0x49)](z['string']())[_0x2fd7af(-0x1b4,-0x2e5,-0x18c,-0x230)]()})[_0x2fd7af(0xe,-0x22,0x12b,0x6b)](),commandsSettingsSchema=z[_0x278b49(0xa1,0xf4,0x6d,-0x60)]({'enabled':z[_0x278b49(-0x7f,-0x164,-0x27,-0x141)]()[_0x2fd7af(-0x1b4,-0x167,-0x106,-0x1cb)](),'directories':z[_0x2fd7af(0x14,-0xae,-0x4f,0x114)](z[_0x278b49(-0x47,-0x22b,-0x10b,-0x89)]())[_0x2fd7af(-0x1b4,-0x1bf,-0x1d5,-0x91)]()})['passthrough'](),agentsSettingsSchema=z[_0x2fd7af(0x1e,-0x125,0x111,0x87)]({'enabled':z['boolean']()[_0x278b49(-0x12b,-0x168,-0x165,-0x197)](),'includeDefaults':z[_0x278b49(-0xd3,-0x165,-0x27,0x38)]()[_0x2fd7af(-0x1b4,-0xb7,-0x2d4,-0x212)](),'directories':z[_0x278b49(0xab,0x3,0x63,0x8)](z[_0x278b49(-0x1ea,-0x14c,-0x10b,-0x22e)]())[_0x2fd7af(-0x1b4,-0x147,-0x292,-0x290)]()})[_0x278b49(0x142,0x1a5,0x5d,0x82)](),uiThemeSettingsSchema=z['object']({'mode':z['enum']([_0x2fd7af(-0xd1,-0x115,0x5a,0x6e),_0x278b49(-0x95,0x180,0x4e,0xab),_0x2fd7af(-0x5c,0xe1,0x10,-0x13e)])['optional'](),'colorLevel':z[_0x2fd7af(0x5c,-0x9a,-0x9e,0xbe)](['auto',_0x278b49(0xf,0xb2,-0x7f,-0x162),_0x2fd7af(-0xc2,0x5e,0x82,0x2),_0x2fd7af(-0xe2,-0xb6,-0x41,-0x209),'truecolor'])[_0x278b49(-0x5a,-0x262,-0x165,-0x1ef)](),'backgrounds':z['enum']([_0x2fd7af(-0xd1,-0x175,-0x1f2,-0x8b),'on',_0x2fd7af(-0x1f,0xd6,0xda,0x39)])[_0x2fd7af(-0x1b4,-0xc3,-0x74,-0x134)](),'messageStyle':z[_0x2fd7af(0x5c,0x11a,0x3d,-0xab)]([_0x2fd7af(-0x9c,-0x125,-0x1b8,0x7),_0x2fd7af(0x9b,0x1a2,0x179,0x1a9)])[_0x278b49(-0xfb,-0x20f,-0x165,-0x66)]()})[_0x2fd7af(0xe,-0xa4,-0xde,-0xb7)](),statuslineSegmentSchema=z[_0x278b49(-0xd,0x1e2,0xab,0x138)]([_0x2fd7af(-0x19,0x109,0x6d,0x22),_0x2fd7af(-0x181,-0x2bb,-0x261,-0xb6),_0x2fd7af(-0x127,-0x202,-0x1b4,-0xcd),'sudo','tokens',_0x278b49(0xe8,-0x47,0x78,-0xf),'cached',_0x2fd7af(-0x57,-0x4e,-0xbc,-0x19a),_0x2fd7af(-0xc,0xbe,0x11b,0x102),_0x278b49(-0x5f,0x77,0x2e,-0x86),_0x2fd7af(-0xe0,-0x73,-0x2b,0x55),_0x2fd7af(0x8a,-0x49,0x8b,-0xad),_0x278b49(0x54,-0x131,-0xbc,-0x50),'memory','rss']),statuslineItemSchema=z[_0x2fd7af(-0xa2,-0x149,-0x164,0x3b)]([statuslineSegmentSchema,z[_0x2fd7af(-0x13c,-0x17f,-0x1d2,-0x140)]('|')]),statuslineRowSchema=z[_0x2fd7af(0x14,0x140,-0x125,0xaf)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x2fd7af(-0x13e,-0x1aa,-0x25b,-0x127)]([statuslineRowSchema,statuslineRowSchema])[_0x278b49(-0x15b,-0x1fb,-0x165,-0x53)]()})[_0x278b49(0x1b,0x14c,0x5d,-0x7c)](),memorySettingsSchema=z[_0x2fd7af(0x1e,-0x11f,-0xa2,0x4f)]({'version':z[_0x2fd7af(-0x13c,-0xa,-0x21f,-0x89)](0x2)[_0x2fd7af(-0x1b4,-0x210,-0xca,-0x1af)](),'retrieval':z[_0x278b49(0xdb,0x101,0x6d,0x148)]({'engine':z[_0x2fd7af(-0x13c,-0x14b,-0x198,-0x6d)](_0x2fd7af(-0xbd,0x6c,-0xf5,-0x62))[_0x278b49(-0x22c,-0x5e,-0x165,-0xa8)](),'candidateLimit':z[_0x278b49(-0x37,0x11,0xc9,0x134)]()['optional'](),'activeCandidateLimit':z[_0x278b49(0x8f,0x11,0xc9,0x5e)]()[_0x2fd7af(-0x1b4,-0x89,-0x1ad,-0x1ee)](),'activeEnabled':z[_0x278b49(-0x169,-0x137,-0x27,-0x2)]()[_0x2fd7af(-0x1b4,-0x190,-0x116,-0xf3)](),'maxQueriesPerTurn':z[_0x278b49(0x8f,0x72,0xc9,0x44)]()[_0x278b49(-0x1a0,-0xa6,-0x165,-0x219)](),'coreInjectTokenBudget':z['number']()[_0x278b49(-0x1c,-0x1d3,-0x165,-0x37)](),'injectTokenBudget':z[_0x278b49(-0x4b,0x19b,0xc9,0x5e)]()[_0x2fd7af(-0x1b4,-0x149,-0xf1,-0x2c4)](),'minScore':z['number']()[_0x278b49(-0xad,-0xe4,-0x165,-0x1e0)](),'freshnessHalfLifeDays':z[_0x2fd7af(0x7a,-0x17,-0x6a,0xb6)]()[_0x2fd7af(-0x1b4,-0x129,-0x21c,-0xd5)]()})[_0x2fd7af(0xe,-0xaa,0x100,0x102)]()[_0x278b49(-0x229,-0x288,-0x165,-0x137)](),'extraction':z[_0x278b49(0x103,-0xe,0x6d,-0xd3)]({'enabled':z[_0x2fd7af(-0x76,-0x101,-0x10e,-0x14e)]()[_0x278b49(-0x29b,-0x24f,-0x165,-0x11d)](),'provider':z['string']()[_0x278b49(-0x1ac,-0x241,-0x165,-0x186)](),'model':z[_0x2fd7af(-0x15a,-0x27e,-0x105,-0x63)]()[_0x278b49(-0x23a,-0xe6,-0x165,-0x286)](),'sensitiveFilter':z[_0x2fd7af(-0x76,-0x1b0,-0xba,-0x15)]()[_0x278b49(-0x78,-0x292,-0x165,-0x29e)]()})[_0x2fd7af(0xe,-0x88,-0x109,-0x93)]()[_0x278b49(-0x233,-0x1c8,-0x165,-0x4e)](),'index':z[_0x2fd7af(0x1e,-0x48,-0x56,-0x3b)]({'persisted':z['boolean']()['optional'](),'flushIntervalMs':z[_0x278b49(-0x7a,0x5,0xc9,0x12f)]()[_0x278b49(-0x280,-0x1d5,-0x165,-0x44)]()})[_0x278b49(-0xbb,0x5,0x5d,0x12)]()[_0x278b49(-0x80,-0x20e,-0x165,-0x1a2)](),'enabled':z[_0x2fd7af(-0x76,-0xca,0xa0,-0x32)]()[_0x2fd7af(-0x1b4,-0x2bd,-0x26d,-0x1e0)](),'saveTool':z[_0x278b49(-0x16f,-0xdd,-0x27,-0xfd)]()[_0x278b49(-0x8c,-0x112,-0x165,-0x2ab)](),'model':z[_0x278b49(0x3b,0x3a,-0x10b,-0x5b)]()[_0x278b49(-0x1bc,-0x19d,-0x165,-0x1b0)](),'provider':z['string']()[_0x2fd7af(-0x1b4,-0x92,-0x174,-0xe9)](),'maxInjectionTokens':z[_0x2fd7af(0x7a,0x8f,-0x56,-0x10)]()['optional'](),'backgroundExtraction':z[_0x2fd7af(-0x76,-0x179,-0x30,-0xd8)]()[_0x278b49(-0xa8,-0x15e,-0x165,-0x181)]()})[_0x2fd7af(0xe,0xf4,-0xa6,0xf9)](),recentModelSchema=z[_0x2fd7af(0x1e,0x167,0xff,-0x2c)]({'provider':z[_0x2fd7af(-0x15a,-0xba,-0x18a,-0x19e)](),'model':z['string'](),'usedAt':z[_0x278b49(-0x4a,0x2c,0xc9,0x155)]()})['passthrough'](),lspServerEntrySchema=z[_0x2fd7af(0x1e,0xc0,-0x5e,0x143)]({'disabled':z[_0x278b49(-0x48,0xe3,-0x27,-0x61)]()[_0x278b49(-0xd4,-0x28d,-0x165,-0x23d)](),'command':z[_0x2fd7af(-0x15a,-0xa8,-0x1c,-0xbe)]()['optional'](),'args':z['array'](z[_0x278b49(-0x1ee,0x11,-0x10b,-0xc0)]())['optional'](),'rootMarkers':z[_0x278b49(0x31,0x101,0x63,0xdd)](z['string']())[_0x278b49(-0x163,-0x253,-0x165,-0x1ef)]()})[_0x278b49(0x38,0x91,0x5d,0xa1)](),lspConfigSchema=z[_0x278b49(-0x3c,0x146,0x6d,-0x79)]({'enabled':z['boolean']()[_0x278b49(-0xa2,-0x1a3,-0x165,-0x190)](),'servers':z[_0x2fd7af(-0x129,-0xcc,-0x270,-0x158)](z[_0x2fd7af(-0x15a,-0xc6,-0x11c,-0xdc)](),lspServerEntrySchema)[_0x278b49(-0x14c,-0x146,-0x165,-0x288)]()})[_0x2fd7af(0xe,-0xd,-0x138,0xa6)](),cliConfigSchema=z[_0x278b49(-0x27,-0x2c,0x6d,0x42)]({'activeProvider':z[_0x2fd7af(-0x15a,-0xf3,-0x68,-0x1d9)]()['optional'](),'activeModel':z[_0x2fd7af(-0x15a,-0x18c,-0x24a,-0x32)]()[_0x2fd7af(-0x1b4,-0x17e,-0x132,-0x2ad)](),'apiKey':z[_0x2fd7af(-0x15a,-0x58,-0x2f,-0x27d)]()['optional'](),'providers':z['record'](z[_0x278b49(-0x103,-0x5b,-0x10b,-0x1c9)](),providerConfigSchema)[_0x278b49(-0xb0,-0x80,-0x165,-0x252)](),'mcp':mcpSettingsSchema[_0x2fd7af(-0x1b4,-0x7b,-0x1e6,-0x142)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x278b49(-0x186,-0x111,-0x165,-0xb8)](),'commands':commandsSettingsSchema[_0x2fd7af(-0x1b4,-0x1b9,-0xb9,-0x1b0)](),'skillsEnabled':z[_0x2fd7af(-0x129,-0x1b7,-0xc6,-0x172)](z[_0x278b49(-0x46,-0x14e,-0x10b,-0x1e4)](),z[_0x278b49(0xd2,-0x128,-0x27,-0xc2)]())[_0x278b49(-0x205,-0x1f2,-0x165,-0x69)](),'memory':memorySettingsSchema[_0x278b49(-0x95,-0x1ac,-0x165,-0x1b1)](),'session':z[_0x2fd7af(0x1e,0x14d,0x3c,0xc3)]({'memPersist':z[_0x2fd7af(-0x76,0xa8,-0x3c,-0xcc)]()[_0x278b49(-0x28e,-0x1be,-0x165,-0x27f)](),'persistEventLog':z['boolean']()[_0x2fd7af(-0x1b4,-0x296,-0x2bd,-0x266)](),'persistHttpLog':z[_0x2fd7af(-0x76,0x53,-0x1d,0x25)]()['optional']()})[_0x2fd7af(0xe,0x1b,-0x13,0x36)]()[_0x278b49(-0xcf,-0x144,-0x165,-0x187)](),'requireToolApproval':z[_0x2fd7af(-0x76,-0x4,-0x160,-0xdd)]()[_0x278b49(-0x7b,-0x231,-0x165,-0x1d4)](),'thinking':z[_0x2fd7af(0x5c,-0x71,-0x13,0x12f)]([_0x2fd7af(-0x8,0x13d,-0x63,0x64),_0x278b49(-0x1c6,-0xd7,-0xff,-0xa9),_0x278b49(-0xdd,-0x152,-0x49,-0xc),_0x278b49(0x18,0xbc,0x1c,-0xcd)])[_0x2fd7af(-0x1b4,-0x113,-0x8d,-0x8c)](),'streamingChunks':z['boolean']()[_0x2fd7af(-0x1b4,-0x2e1,-0x162,-0x121)](),'agentsEnabled':z['record'](z[_0x278b49(-0x166,-0x63,-0x10b,-0x12e)](),z[_0x2fd7af(-0x76,-0x112,0x5c,-0x153)]())[_0x278b49(-0x127,-0x63,-0x165,-0xb8)](),'recentModels':z[_0x278b49(-0x14,-0xa0,0x63,0x8b)](recentModelSchema)[_0x278b49(-0x282,-0x29,-0x165,-0x13a)](),'lsp':lspConfigSchema[_0x2fd7af(-0x1b4,-0x13a,-0x214,-0x232)](),'ui':z[_0x2fd7af(0x1e,0x7b,0x31,-0x6)]({'theme':uiThemeSettingsSchema[_0x278b49(-0x284,-0x176,-0x165,-0x25d)](),'statusline':statuslineConfigSchema[_0x2fd7af(-0x1b4,-0x228,-0x230,-0x1bf)]()})[_0x278b49(0xd4,0xf1,0x5d,-0xa4)]()['optional'](),'tools':z[_0x278b49(-0x1c8,-0x3d,-0xda,-0x120)](z[_0x2fd7af(-0x15a,-0xc4,-0x214,-0x1fa)](),z[_0x2fd7af(-0x82,0x73,0xa0,0xc1)]())[_0x278b49(-0x134,-0x10a,-0x165,-0x218)]()})[_0x2fd7af(0xe,0x129,0x24,-0xec)]();function buildDescription(_0x4324b9){const _0x3e27ad={_0x3f7173:0x55c,_0x5134b1:0x4e7,_0x580ef0:0x66c,_0x1dee3c:0x579,_0x2910d4:0xcd,_0x26a8a5:0x31,_0x3e7a17:0x43f,_0x29dcee:0x56b,_0x3ffc08:0x50e,_0x102b21:0x63c,_0x49570a:0x4c5,_0x4b845d:0x57a,_0x514ae8:0x71,_0x264b24:0xa7},_0x32f282={_0x4c71ac:0x5c8,_0x369c56:0x7f},_0x4d655e={_0x4e03fc:0x115,_0x3e3165:0x17};function _0x4e0c13(_0x1a69ee,_0xd4e422,_0x39c1bd,_0x96e518){return _0x278b49(_0x1a69ee-_0x4d655e._0x4e03fc,_0xd4e422-0x1ee,_0x39c1bd- -_0x4d655e._0x3e3165,_0x1a69ee);}function _0x3c67c6(_0x38ca0a,_0x389b84,_0x3624c2,_0x3d068b){return _0x2fd7af(_0x389b84-_0x32f282._0x4c71ac,_0x389b84-_0x32f282._0x369c56,_0x38ca0a,_0x3d068b-0x4d);}if(_0x4324b9[_0x3c67c6(0x540,_0x3e27ad._0x3f7173,_0x3e27ad._0x5134b1,_0x3e27ad._0x580ef0)]===0x0)return[_0x3c67c6(0x513,_0x3e27ad._0x1dee3c,0x55a,0x48d),_0x4e0c13(_0x3e27ad._0x2910d4,0x118,-_0x3e27ad._0x26a8a5,0x61),'No\x20commands\x20are\x20currently\x20available.'][_0x3c67c6(_0x3e27ad._0x3e7a17,_0x3e27ad._0x29dcee,_0x3e27ad._0x3ffc08,0x492)]('\x0a');const _0x4fceeb=[_0x3c67c6(0x4cf,0x579,_0x3e27ad._0x102b21,0x667),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x3c67c6(0x519,_0x3e27ad._0x49570a,0x4ef,_0x3e27ad._0x4b845d),..._0x4324b9[_0x4e0c13(-0x190,_0x3e27ad._0x514ae8,-_0x3e27ad._0x264b24,-0x163)](_0x4367f7=>_0x4367f7[_0x3c67c6(0x507,0x516,0x3d9,0x63f)]?'-\x20'+_0x4367f7[_0x4e0c13(-0x171,-0xe1,-0x11e,-0x171)]+'\x20'+_0x4367f7[_0x4e0c13(0xa,-0xb6,-0x7a,-0xae)]+':\x20'+_0x4367f7[_0x3c67c6(0x682,0x660,0x74d,0x59b)]:'-\x20'+_0x4367f7[_0x3c67c6(0x35d,0x472,0x485,0x4c2)]+':\x20'+_0x4367f7[_0x4e0c13(0xd2,0xa2,0xd0,0x1c7)])];return _0x4fceeb['join']('\x0a');}function createInvokeCommandTool(_0x54e127){const _0x616f6a={_0x545c0d:0x3a4,_0x4a3395:0x416,_0x112019:0x380,_0x2124b4:0x29a,_0x5876b9:0x271,_0x340b4b:0x27f,_0x1441cd:0x181,_0x98e965:0x1f3,_0x36bdbc:0x270,_0x1b7144:0x278,_0x414092:0x21f,_0x460d29:0x231,_0xc507a1:0x2cd,_0x363158:0x296,_0x1dc977:0x189,_0x327ccc:0x308},_0x3c92f9={_0x452f53:0x256,_0x3e33be:0x309,_0x33b3bc:0x292,_0x3897b4:0x3c6,_0x3a8ed5:0x27d,_0xb3ae7d:0x335,_0x52e5c8:0x246,_0x3087ca:0x35a,_0x1af610:0x2e2,_0x141358:0x2e7,_0x62903e:0x2ef,_0x2b3126:0x2cd,_0x5aeeea:0x15b,_0x111d95:0x13b,_0x2f24ff:0x17c,_0x43e55f:0x26b,_0x21bdfe:0x43a,_0x4b3c1d:0x2d7,_0x19cca3:0x30a,_0x3f56cf:0x11c,_0x20f215:0x29a,_0x2eef74:0x207,_0x4984cd:0x447,_0x24ebc6:0x35c,_0xeb494e:0x261,_0x37b3b0:0x4a3,_0x399971:0x304,_0x42dc0e:0x395},_0x19a998={_0x41bf4e:0x15d},_0x28ec9f={_0x29bc61:0x379,_0x1ae35c:0x181};function _0x415aad(_0x4acd22,_0x5c50a9,_0x52ed31,_0x4cdb0c){return _0x2fd7af(_0x4acd22-_0x28ec9f._0x29bc61,_0x5c50a9-0x169,_0x5c50a9,_0x4cdb0c-_0x28ec9f._0x1ae35c);}const _0x58ec18=new Map(_0x54e127[_0x415aad(_0x616f6a._0x545c0d,0x49a,_0x616f6a._0x4a3395,_0x616f6a._0x112019)][_0x415aad(_0x616f6a._0x2124b4,0x38b,_0x616f6a._0x5876b9,_0x616f6a._0x340b4b)](_0xf046fa=>[_0xf046fa['id'],_0xf046fa]));function _0x44b773(_0x2de798,_0xe50cf6,_0x8aac18,_0x55ddad){return _0x2fd7af(_0x8aac18-0x25a,_0xe50cf6-0x113,_0x2de798,_0x55ddad-0xf8);}const _0x2973b8=buildDescription(_0x54e127['commands']);return defineTool({'name':_0x44b773(0x17e,0x47,_0x616f6a._0x1441cd,_0x616f6a._0x98e965),'description':_0x2973b8,'inputSchema':{'type':_0x44b773(0x3b4,_0x616f6a._0x36bdbc,_0x616f6a._0x1b7144,0x1d7),'properties':{'name':{'type':_0x415aad(_0x616f6a._0x414092,_0x616f6a._0x460d29,0x354,0x2b5)},'args':{'type':_0x415aad(0x21f,_0x616f6a._0xc507a1,0x18c,_0x616f6a._0x363158)}},'required':[_0x415aad(0x223,0x21e,_0x616f6a._0x1dc977,_0x616f6a._0x327ccc)]},async *'execute'(_0x13ca48){const _0x35708d={_0x432a9d:0xae,_0x5a8569:0x1c9,_0x31c995:0x111},_0x18e713=_0x58ec18[_0x503981(_0x3c92f9._0x452f53,0x40c,_0x3c92f9._0x3e33be,0x36d)](_0x13ca48[_0x4d856c(0x3a8,_0x3c92f9._0x33b3bc,0x37c,0x261)]);if(!_0x18e713){const _0x16423f=Array['from'](_0x58ec18[_0x503981(_0x3c92f9._0x3897b4,_0x3c92f9._0x3a8ed5,0x285,_0x3c92f9._0xb3ae7d)]())[_0x4d856c(0x248,_0x3c92f9._0x52e5c8,0x34f,_0x3c92f9._0x3087ca)](',\x20');throw new ToolExecutionError(_0x4d856c(0x1e3,_0x3c92f9._0x1af610,_0x3c92f9._0x141358,_0x3c92f9._0x62903e)+_0x13ca48[_0x503981(0x1b2,0x20e,_0x3c92f9._0x2b3126,_0x3c92f9._0x52e5c8)]+_0x4d856c(_0x3c92f9._0x5aeeea,_0x3c92f9._0x111d95,_0x3c92f9._0x2f24ff,_0x3c92f9._0x43e55f)+_0x16423f,{'name':_0x13ca48['name']});}const _0x59d12f=await _0x54e127[_0x503981(_0x3c92f9._0x21bdfe,0x495,0x3d3,0x319)](_0x18e713);function _0x4d856c(_0x10d2fe,_0x540b89,_0x1a96a9,_0x48c4a9){return _0x44b773(_0x1a96a9,_0x540b89-0xf7,_0x48c4a9-_0x19a998._0x41bf4e,_0x48c4a9-0x1b5);}const _0x2b76b9=_0x13ca48[_0x503981(0x2ab,_0x3c92f9._0x4b3c1d,_0x3c92f9._0x19cca3,0x33b)]??'',_0x19ba41=renderCommandInstructions({'instructions':_0x59d12f[_0x4d856c(_0x3c92f9._0x3f56cf,0x151,_0x3c92f9._0x20f215,_0x3c92f9._0x2eef74)],'argumentsText':_0x2b76b9,'argumentNames':_0x59d12f[_0x4d856c(0x45b,0x369,_0x3c92f9._0x4984cd,0x3bd)]});yield createToolOutput(_0x19ba41,{'id':_0x59d12f['id'],'name':_0x59d12f[_0x4d856c(_0x3c92f9._0x24ebc6,0x284,0x161,_0x3c92f9._0xeb494e)],'path':_0x18e713['source'][_0x503981(_0x3c92f9._0x37b3b0,_0x3c92f9._0x399971,_0x3c92f9._0x42dc0e,0x2e2)]});function _0x503981(_0x187811,_0x5bf7bc,_0xbf1cd,_0x422912){return _0x44b773(_0x5bf7bc,_0x5bf7bc-_0x35708d._0x432a9d,_0xbf1cd-_0x35708d._0x5a8569,_0x422912-_0x35708d._0x31c995);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x25a8be,rename as _0x4a952c,stat as _0x34e6bf,writeFile as _0x4ab695}from'fs/promises';import*as _0x1aa431 from'path';function detectEol(_0x41ee90){const _0x4186a6={_0x61b516:0x6b7,_0x15f59d:0x675,_0x3798b6:0x556,_0x4eef1a:0x651,_0x13f6a6:0x4a5,_0x23b0cf:0x47b,_0x1f049a:0x5d8,_0x254999:0x2cf},_0x429b23={_0x33db4c:0x663};function _0x6c6e5a(_0x27d0d4,_0x5bbf19,_0x59970a,_0x52c0a3){return _0x278b49(_0x27d0d4-0x80,_0x5bbf19-0x18,_0x27d0d4-0x4ba,_0x5bbf19);}function _0xd3b1f8(_0x35ba47,_0x1a96fe,_0x5f38b9,_0x181bb7){return _0x2fd7af(_0x181bb7-_0x429b23._0x33db4c,_0x1a96fe-0x3e,_0x35ba47,_0x181bb7-0x195);}return/\r\n/[_0xd3b1f8(0x5a4,0x6b6,_0x4186a6._0x61b516,_0x4186a6._0x15f59d)](_0x41ee90[_0xd3b1f8(0x5cc,_0x4186a6._0x3798b6,_0x4186a6._0x4eef1a,0x5ae)](_0x6c6e5a(_0x4186a6._0x13f6a6,_0x4186a6._0x23b0cf,_0x4186a6._0x1f049a,0x434)))?_0x6c6e5a(0x371,0x2b7,0x25b,_0x4186a6._0x254999):'lf';}function normalizeToLf(_0x6da3a3){const _0x4d6ef5={_0x29aebc:0x112,_0x3f21e4:0xd2,_0x2ee773:0x53,_0x14e055:0xb0},_0x12d12e={_0x3f7ad3:0xe4};function _0x1c24ec(_0x1f6d9f,_0x39fb9a,_0x4ec8b3,_0x5e1d22){return _0x2fd7af(_0x39fb9a-_0x12d12e._0x3f7ad3,_0x39fb9a-0x10f,_0x1f6d9f,_0x5e1d22-0xb6);}return _0x6da3a3[_0x1c24ec(-_0x4d6ef5._0x29aebc,-_0x4d6ef5._0x3f21e4,_0x4d6ef5._0x2ee773,-_0x4d6ef5._0x14e055)](/\r\n/g,'\x0a');}function convertEol(_0x418447,_0x3f3e41){const _0x1465fe={_0x126b2d:0xb4,_0xb2308b:0x26,_0x33de70:0xff,_0x4b2d76:0x130},_0x457c9c={_0x2ab97d:0x12f},_0x3718d5={_0x5cf306:0x1f2,_0x53fef6:0x1a2,_0x455fdf:0x1c7};function _0x23819e(_0x447115,_0x45ab45,_0x25bdcd,_0x19134f){return _0x278b49(_0x447115-_0x3718d5._0x5cf306,_0x45ab45-_0x3718d5._0x53fef6,_0x447115-_0x3718d5._0x455fdf,_0x19134f);}function _0x493a12(_0x591b44,_0x1380ff,_0x434331,_0x4e1fd4){return _0x278b49(_0x591b44-0x0,_0x1380ff-_0x457c9c._0x2ab97d,_0x4e1fd4-0x37,_0x1380ff);}return _0x3f3e41===_0x493a12(-0xc5,-_0x1465fe._0x126b2d,-0x177,-0x112)?_0x418447[_0x493a12(-_0x1465fe._0xb2308b,-_0x1465fe._0x33de70,-0xbd,-_0x1465fe._0x4b2d76)](/\n/g,'\x0d\x0a'):_0x418447;}async function atomicWrite(_0xdec14b,_0x467ea5){const _0x3c90d2={_0x832e28:0x1cd,_0x3fda3d:0x13c,_0xbc33f:0xc1,_0xc000e8:0x74,_0x3934eb:0x51,_0x39e825:0x1c4,_0x323cac:0x26e,_0x1b78c7:0x182,_0x49bd2e:0x60,_0x17f753:0x5a,_0x5ceb5e:0x5c,_0x52cbd7:0x233,_0x361524:0x11c},_0xc470f8={_0x37e342:0xfc,_0x4cc402:0x1a2,_0x2a7e86:0x111},_0xeec580={_0x2f914c:0x18e,_0x294ce8:0xe9,_0x246b2d:0x117},_0x45efb3=_0x1aa431[_0x199b38(0x48,_0x3c90d2._0x832e28,_0x3c90d2._0x3fda3d,0x1d1)](_0xdec14b),_0xbeb471=_0x1aa431[_0x199b38(_0x3c90d2._0xbc33f,_0x3c90d2._0xc000e8,0x103,_0x3c90d2._0x3934eb)](_0x45efb3,_0x199b38(_0x3c90d2._0x39e825,_0x3c90d2._0x323cac,_0x3c90d2._0x1b78c7,_0x3c90d2._0x49bd2e)+_0x1aa431[_0x199b38(0xb8,_0x3c90d2._0x17f753,-0x30,-_0x3c90d2._0x5ceb5e)](_0xdec14b)+'.'+Date['now']()+'.'+Math[_0xf303cb(0x19b,0x193,_0x3c90d2._0x52cbd7,0x2d0)]()['toString'](0x24)[_0xf303cb(0xfe,_0x3c90d2._0x361524,0x20f,0x1)](0x2));await _0x4ab695(_0xbeb471,_0x467ea5);function _0xf303cb(_0x44b6f1,_0x84e31f,_0x21a894,_0x319491){return _0x278b49(_0x44b6f1-_0xeec580._0x2f914c,_0x84e31f-_0xeec580._0x294ce8,_0x84e31f-_0xeec580._0x246b2d,_0x319491);}function _0x199b38(_0x24be6a,_0x58f9e3,_0x17791b,_0x158b1a){return _0x278b49(_0x24be6a-_0xc470f8._0x37e342,_0x58f9e3-_0xc470f8._0x4cc402,_0x17791b-_0xc470f8._0x2a7e86,_0x24be6a);}await _0x4a952c(_0xbeb471,_0xdec14b);}function sha256(_0x26e153){const _0x644fa5={_0x31a74b:0xf7,_0x39eaf:0x1e,_0x152631:0x3c9,_0x3827b5:0x4c3,_0x4806e6:0x421,_0x4ad3b3:0x470,_0x3cc61d:0x155,_0x452106:0x53},_0x469fe7={_0x35b04c:0x4a,_0x367125:0x4a6},_0x4bf9cd={_0x5433a9:0x2f,_0x34a92f:0x26,_0x190c06:0x1d2};function _0x34b835(_0x20f9f3,_0x196e4e,_0xf9f24c,_0x308bfc){return _0x2fd7af(_0x308bfc-_0x4bf9cd._0x5433a9,_0x196e4e-_0x4bf9cd._0x34a92f,_0x196e4e,_0x308bfc-_0x4bf9cd._0x190c06);}function _0x2b6114(_0x4cbddf,_0x14f64f,_0x53e47c,_0x8ed18b){return _0x278b49(_0x4cbddf-0xdc,_0x14f64f-_0x469fe7._0x35b04c,_0x4cbddf-_0x469fe7._0x367125,_0x14f64f);}return createHash(_0x34b835(_0x644fa5._0x31a74b,-0xcb,0xa3,_0x644fa5._0x39eaf))[_0x2b6114(_0x644fa5._0x152631,_0x644fa5._0x3827b5,_0x644fa5._0x4806e6,_0x644fa5._0x4ad3b3)](_0x26e153)[_0x34b835(0x42,-_0x644fa5._0x3cc61d,_0x644fa5._0x452106,-0x67)]('hex');}function countLines(_0x5105ad){const _0x51ec97={_0x29e6a0:0x168,_0x84f295:0x2ee,_0x51222b:0x3c2,_0x5d0f63:0x3c2,_0x2a2f67:0x21,_0x216858:0x49,_0x53ddec:0x1f7,_0x570efd:0xdd},_0x1c5774={_0x8ef142:0x42e,_0x24ed39:0x13b},_0x5146d1={_0x259440:0x1dd};function _0xe15e79(_0x145b95,_0x278f9f,_0x12bdbb,_0x183a87){return _0x2fd7af(_0x183a87- -0x71,_0x278f9f-0x95,_0x12bdbb,_0x183a87-_0x5146d1._0x259440);}function _0x2f90a3(_0x36471b,_0x3593c7,_0x58d87c,_0x7e1beb){return _0x2fd7af(_0x3593c7-_0x1c5774._0x8ef142,_0x3593c7-0xd7,_0x36471b,_0x7e1beb-_0x1c5774._0x24ed39);}const _0x375f71=_0x5105ad[_0xe15e79(-0x32e,-_0x51ec97._0x29e6a0,-0x282,-0x227)](/\n$/,'');return _0x375f71[_0x2f90a3(_0x51ec97._0x84f295,_0x51ec97._0x51222b,_0x51ec97._0x5d0f63,0x2a6)]===0x0?0x0:_0x375f71[_0xe15e79(-0xb0,-0x50,-_0x51ec97._0x2a2f67,_0x51ec97._0x216858)]('\x0a')[_0xe15e79(-0x99,-0x93,-_0x51ec97._0x53ddec,-_0x51ec97._0x570efd)];}function calculateLineNumbers(_0x4fbca1,_0x4b2f7f,_0x2002c7,_0x3bdc98){const _0x39dde8={_0x381d02:0x42a,_0x50a4b8:0x32b,_0x5aca14:0x3ab,_0x312e6f:0x42e},_0x598e85={_0x3a7b7e:0xe3,_0x444965:0x104},_0x2bde97={_0x5be002:0x1a1,_0x20828f:0x325},_0x2d5e67=_0x4fbca1[_0x226def(_0x39dde8._0x381d02,0x35f,0x3d2,0x32a)](0x0,_0x3bdc98)[_0x226def(_0x39dde8._0x50a4b8,_0x39dde8._0x5aca14,0x39c,_0x39dde8._0x312e6f)]('\x0a')['length'],_0x17d7b3=countLines(_0x4b2f7f);function _0x226def(_0x209366,_0x4ab85a,_0x550ae4,_0x2b2a86){return _0x278b49(_0x209366-_0x2bde97._0x5be002,_0x4ab85a-0x4b,_0x2b2a86-_0x2bde97._0x20828f,_0x550ae4);}const _0x5455c0=countLines(_0x2002c7);function _0x4145af(_0x3ad417,_0x384a7c,_0x19e82f,_0x53bd5f){return _0x2fd7af(_0x19e82f-_0x598e85._0x3a7b7e,_0x384a7c-0x1e7,_0x384a7c,_0x53bd5f-_0x598e85._0x444965);}return{'oldStartLine':_0x2d5e67,'oldEndLine':_0x2d5e67+_0x17d7b3-0x1,'newStartLine':_0x2d5e67,'newEndLine':_0x2d5e67+_0x5455c0-0x1,'oldLineCount':_0x17d7b3,'newLineCount':_0x5455c0};}function createFileEditTool(_0x48d5f3={}){const _0x1c4a39={_0x317ad1:0x275,_0x524824:0x130,_0x4e775b:0x15e,_0x6b9846:0x21c,_0x2b09d6:0xde,_0x4bf0f5:0x218,_0x3ee472:0x14b,_0x3484fb:0x647,_0x35a0e0:0x6a8,_0x5d3424:0x729,_0x39bc41:0x4d9,_0x12f0e8:0x48f,_0x580275:0x5d1,_0x561457:0x699,_0x45240c:0x560,_0x2e068c:0x189,_0x41d143:0x123,_0x49c4a1:0x163,_0x5e0c7f:0x4df,_0x21d625:0x666,_0x4e543a:0x650,_0x1af615:0x48,_0x5ca3f8:0xe5,_0x254cd6:0x516,_0x2cb287:0x56d,_0x2c2cd0:0x61f,_0x5e0758:0x55c,_0x12f747:0x6e,_0x3ca3cb:0xcf,_0x55f391:0x64,_0x2ff092:0x571,_0x442826:0x15,_0x140786:0x609,_0x51472e:0x78e,_0xe65879:0x7de,_0x3b5fbd:0x750},_0x46163f={_0x3f0608:0x1c1,_0x17ce17:0xc5,_0x3d9463:0xce,_0x48b0b9:0x71,_0x185fbf:0x512,_0x568eb7:0x40d,_0x342669:0x377,_0x57b076:0x267,_0x1c0318:0x270,_0x522269:0x101,_0x25f509:0x4df,_0x52580b:0x559,_0x3bc04b:0x549,_0x5309aa:0x284,_0x6941b0:0x27d,_0x297130:0x2da,_0x368f11:0x2,_0x417347:0x93,_0x59a461:0x1ef,_0xf4e8e9:0xdc,_0x22ef9f:0x547,_0x31ca05:0x2a2,_0x46a39b:0x36,_0x10a870:0xcb,_0x26c815:0x191,_0xe21e59:0x1c9,_0x1ca6cb:0x2d3,_0x95757b:0x1bd,_0x397999:0x3c5,_0x4f2b2b:0x3e7,_0x58c73e:0xf,_0x385216:0x35,_0x349089:0x18b,_0xbbdb7:0xb2,_0x55080a:0x6b,_0x10932f:0x54,_0x538f69:0x12f,_0x48103a:0x6,_0x382fbe:0x426,_0x15a1be:0x537,_0x3cd5d1:0x174,_0x353cb0:0x95},_0x1620e5={_0x1ffb2c:0xbb,_0x18461f:0x22a},_0x251736={_0x523250:0x6b6},_0x54d76c={_0xe11f3f:0x8b};function _0x5c75ff(_0x3691a3,_0x4834e0,_0x1842ac,_0x23a2c9){return _0x2fd7af(_0x1842ac-_0x54d76c._0xe11f3f,_0x4834e0-0x1d1,_0x3691a3,_0x23a2c9-0x1e3);}const _0xf8edb7=_0x1aa431[_0x5c75ff(0x279,_0x1c4a39._0x317ad1,_0x1c4a39._0x524824,_0x1c4a39._0x4e775b)](_0x48d5f3[_0x5c75ff(_0x1c4a39._0x6b9846,-0x25,_0x1c4a39._0x2b09d6,_0x1c4a39._0x4bf0f5)]??process[_0x5c75ff(-0x19e,-_0x1c4a39._0x3ee472,-0xbd,-0x1d7)]());function _0x58605e(_0x1a2b3d,_0x2dc221,_0x53cdff,_0xa741ee){return _0x2fd7af(_0xa741ee-_0x251736._0x523250,_0x2dc221-0x197,_0x53cdff,_0xa741ee-0x122);}const _0x15bbf5=(_0x48d5f3[_0x58605e(_0x1c4a39._0x3484fb,0x7a5,_0x1c4a39._0x35a0e0,_0x1c4a39._0x5d3424)]??[])[_0x58605e(0x70d,_0x1c4a39._0x39bc41,_0x1c4a39._0x12f0e8,0x5d7)](_0x1452c5=>_0x1aa431[_0x58605e(0x78b,0x6e4,0x655,0x75b)](_0x1452c5)),_0x88c3e3=_0x48d5f3[_0x58605e(_0x1c4a39._0x580275,_0x1c4a39._0x561457,0x4b5,_0x1c4a39._0x45240c)]??_0x5c75ff(-0x237,-_0x1c4a39._0x2e068c,-_0x1c4a39._0x41d143,-_0x1c4a39._0x49c4a1);return defineTool({'name':_0x88c3e3,'description':_0x58605e(_0x1c4a39._0x5e0c7f,_0x1c4a39._0x21d625,_0x1c4a39._0x4e543a,0x527),'inputSchema':{'type':_0x5c75ff(-_0x1c4a39._0x1af615,-0x50,0xa9,_0x1c4a39._0x5ca3f8),'properties':{'filePath':{'type':_0x58605e(_0x1c4a39._0x254cd6,_0x1c4a39._0x2cb287,_0x1c4a39._0x2c2cd0,_0x1c4a39._0x5e0758)},'oldText':{'type':_0x5c75ff(-0x35,_0x1c4a39._0x12f747,-_0x1c4a39._0x3ca3cb,-_0x1c4a39._0x55f391)},'newText':{'type':_0x58605e(_0x1c4a39._0x2ff092,0x5ae,0x527,0x55c)},'dryRun':{'type':_0x5c75ff(-0x121,-0x19,_0x1c4a39._0x442826,0x133)}},'required':['filePath',_0x58605e(0x65d,0x57e,_0x1c4a39._0x140786,0x517),_0x58605e(_0x1c4a39._0x51472e,0x81b,_0x1c4a39._0xe65879,_0x1c4a39._0x3b5fbd)]},async *'execute'(_0x41ab1c){function _0x1a603a(_0x502c86,_0x94637,_0xdab4a4,_0x412c23){return _0x5c75ff(_0x412c23,_0x94637-0x138,_0x94637-0x9b,_0x412c23-0x1d5);}const _0x14406b=resolveAllowedPath(_0xf8edb7,_0x15bbf5,_0x41ab1c[_0x1a603a(-_0x46163f._0x3f0608,-0x93,-_0x46163f._0x17ce17,-0x19a)]);function _0x5d4409(_0x319b48,_0x1613d6,_0x3aff16,_0x3fb808){return _0x58605e(_0x319b48-_0x1620e5._0x1ffb2c,_0x1613d6-0x132,_0x319b48,_0x3aff16- -_0x1620e5._0x18461f);}await assertWorkspaceFile(_0x14406b);const _0x43f07a=await _0x34e6bf(_0x14406b),_0x51865c=await _0x25a8be(_0x14406b),_0x34e790=detectEol(_0x51865c),_0x12ea04=normalizeToLf(_0x51865c[_0x1a603a(_0x46163f._0x3d9463,_0x46163f._0x48b0b9,0x103,0x6)](_0x5d4409(_0x46163f._0x185fbf,_0x46163f._0x568eb7,0x428,_0x46163f._0x342669))),_0x27f728=normalizeToLf(_0x41ab1c[_0x5d4409(0x32c,_0x46163f._0x57b076,0x2ed,0x2f8)]),_0x5a72a2=normalizeToLf(_0x41ab1c[_0x1a603a(0x117,0x1c0,_0x46163f._0x1c0318,_0x46163f._0x522269)]),_0x550695=_0x12ea04[_0x5d4409(_0x46163f._0x25f509,0x5c1,_0x46163f._0x52580b,_0x46163f._0x3bc04b)](_0x27f728);if(_0x550695===-0x1){const _0x4ab0c2=_0x27f728['slice'](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError(_0x1a603a(_0x46163f._0x5309aa,0x1cc,_0x46163f._0x6941b0,_0x46163f._0x297130)+_0x4ab0c2+(_0x27f728['length']>0x64?'...':'')+'\x22',{'filePath':_0x41ab1c[_0x1a603a(-_0x46163f._0x368f11,-_0x46163f._0x417347,-0x137,0x6b)]});}const _0x7f60b3=_0x12ea04[_0x1a603a(0x197,0xdc,0x3c,_0x46163f._0x59a461)](0x0,_0x550695)+_0x5a72a2+_0x12ea04[_0x1a603a(0x1df,_0x46163f._0xf4e8e9,0x8c,0x13b)](_0x550695+_0x27f728[_0x5d4409(0x4bb,0x408,0x420,0x4f8)]),_0x5656f9=convertEol(_0x7f60b3,_0x34e790),_0x4d0b24=Buffer['from'](_0x5656f9,'utf8'),_0x5a283d=sha256(_0x51865c),_0xf93b53=sha256(_0x4d0b24),_0x426836=_0x5a283d===_0xf93b53,_0x7a4f4d=_0x41ab1c['dryRun']??![];return!_0x7a4f4d&&!_0x426836&&await atomicWrite(_0x14406b,_0x4d0b24),yield createToolOutput(_0x426836?_0x5d4409(0x60f,0x60b,_0x46163f._0x22ef9f,0x609):_0x7a4f4d?_0x1a603a(0x23e,0x15d,_0x46163f._0x31ca05,_0x46163f._0x46a39b):_0x1a603a(0x17,-0x46,0x88,_0x46163f._0x10a870),{'filePath':_0x41ab1c[_0x5d4409(_0x46163f._0x26c815,_0x46163f._0xe21e59,_0x46163f._0x1ca6cb,_0x46163f._0x95757b)],'resolvedPath':_0x14406b,'created':_0x43f07a[_0x5d4409(_0x46163f._0x397999,0x42b,_0x46163f._0x4f2b2b,0x4b1)][_0x1a603a(-0x73,0xb2,-_0x46163f._0x58c73e,0x1f5)](),'modified':_0x43f07a[_0x1a603a(-0x8,_0x46163f._0x385216,0x145,0x4f)][_0x1a603a(_0x46163f._0x349089,_0x46163f._0xbbdb7,_0x46163f._0x55080a,0x187)](),'size':_0x43f07a[_0x1a603a(-0x112,-_0x46163f._0x10932f,-_0x46163f._0x538f69,-_0x46163f._0x48103a)],'eol':_0x34e790,'oldTextLength':_0x27f728['length'],'newTextLength':_0x5a72a2[_0x5d4409(0x37d,_0x46163f._0x382fbe,0x420,_0x46163f._0x15a1be)],'bytesWritten':_0x426836||_0x7a4f4d?0x0:_0x4d0b24[_0x1a603a(_0x46163f._0x3cd5d1,0xba,_0x46163f._0x353cb0,0x4c)],'beforeSha':_0x5a283d,'afterSha':_0xf93b53,'dryRun':_0x7a4f4d,'noChange':_0x426836,'lineNumbers':calculateLineNumbers(_0x12ea04,_0x27f728,_0x5a72a2,_0x550695)}),void 0x0;}});}import{mkdir as _0x4be4ea,rename as _0x484bc1,stat as _0x25eed3,writeFile as _0xfa9d25}from'fs/promises';import*as _0xb18eea from'path';async function atomicWrite2(_0x5d42e6,_0x58441f){const _0x4eb19f={_0x19374b:0x5e1,_0x2d619c:0x5f0,_0x368eba:0x650,_0x5938bb:0x5de,_0x458ced:0x600,_0x28c308:0x9d,_0x3185cd:0x616,_0x3bcbce:0x66d,_0xeb86b5:0x5a0,_0x2b359d:0x4d6,_0x81b317:0x572},_0x3ec414={_0x27f049:0xb7,_0x5c2988:0x54},_0x3b2fd6=_0xb18eea[_0x26885b(0x507,_0x4eb19f._0x19374b,0x6f7,_0x4eb19f._0x2d619c)](_0x5d42e6);function _0x4d61e7(_0x161b4d,_0x502c68,_0x553a06,_0x5c3ae8){return _0x278b49(_0x161b4d-0x54,_0x502c68-0xa8,_0x5c3ae8-0x1de,_0x502c68);}function _0x26885b(_0x3e73f9,_0x1cafb5,_0x4e761f,_0xbfcdb6){return _0x278b49(_0x3e73f9-_0x3ec414._0x27f049,_0x1cafb5-_0x3ec414._0x5c2988,_0x1cafb5-0x5b6,_0xbfcdb6);}await _0x4be4ea(_0x3b2fd6,{'recursive':!![]});const _0x42994c=_0xb18eea[_0x26885b(_0x4eb19f._0x368eba,0x5a8,0x4c0,0x686)](_0x3b2fd6,_0x26885b(0x739,0x627,_0x4eb19f._0x5938bb,_0x4eb19f._0x458ced)+_0xb18eea[_0x4d61e7(-0x37,-0x52,0xcf,_0x4eb19f._0x28c308)](_0x5d42e6)+'.'+Date[_0x26885b(_0x4eb19f._0x3185cd,_0x4eb19f._0x3bcbce,0x79c,_0x4eb19f._0xeb86b5)]()+'.'+Math[_0x26885b(0x62d,0x632,0x660,0x5d6)]()[_0x26885b(_0x4eb19f._0x2b359d,0x550,_0x4eb19f._0x81b317,0x5ce)](0x24)['slice'](0x2));await _0xfa9d25(_0x42994c,_0x58441f),await _0x484bc1(_0x42994c,_0x5d42e6);}function createFileNewTool(_0x3177c3={}){const _0x2a623f={_0x494197:0x2ab,_0x45b46e:0xac,_0x37046e:0x87,_0x1e0479:0x16,_0x503756:0x24,_0x254230:0x9a,_0x32d401:0x246,_0x172d67:0x162,_0xbe182d:0x2f6,_0x13a65f:0x1e7,_0x3025b7:0x1c1,_0x40702e:0x247,_0x1c6e07:0x1db},_0x5e1468={_0x456fc2:0x1b0,_0x31b875:0x2fc,_0x2027d4:0x247,_0x36a6dc:0xd8,_0x36482e:0x137,_0x6e59a6:0xa2,_0x40fb35:0x240,_0x4e0ec9:0xfa,_0x3da74a:0x116,_0x366e52:0x1e9,_0xeeb4be:0x28f,_0x4a36dd:0x1fe,_0x4596b0:0x189,_0x225136:0x364,_0x41f69e:0x1f3,_0x2ad93f:0x253,_0x44aba3:0x1b,_0x16f851:0x20a,_0x1965f4:0x1a,_0x34dba9:0x4c,_0x4afa23:0x9d,_0x1f3689:0x13},_0x478065={_0x39c273:0x429},_0x406c84={_0x4a0362:0x38a,_0x3e8d6b:0x126},_0x55d5a0={_0x450f1d:0x8,_0x176730:0x5c};function _0x5006c6(_0x406f41,_0x450029,_0x5f4230,_0x365682){return _0x2fd7af(_0x5f4230- -_0x55d5a0._0x450f1d,_0x450029-_0x55d5a0._0x176730,_0x365682,_0x365682-0x92);}const _0x4638f3=_0xb18eea[_0x5006c6(-0xc,0x12a,0x9d,-0xd)](_0x3177c3['defaultCwd']??process['cwd']()),_0x83483b=(_0x3177c3['allowedDirs']??[])[_0x295747(0x267,0x35e,0x2b2,_0x2a623f._0x494197)](_0x44b648=>_0xb18eea[_0x295747(0x3a3,0x551,0x39d,0x42f)](_0x44b648));function _0x295747(_0xd39842,_0xbf52e3,_0x1dedd2,_0xb71b1d){return _0x2fd7af(_0xb71b1d-_0x406c84._0x4a0362,_0xbf52e3-0x18b,_0x1dedd2,_0xb71b1d-_0x406c84._0x3e8d6b);}const _0x5e1e34=_0x3177c3['name']??'FileNew';return defineTool({'name':_0x5e1e34,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x5006c6(-_0x2a623f._0x45b46e,-_0x2a623f._0x37046e,_0x2a623f._0x1e0479,_0x2a623f._0x503756),'properties':{'filePath':{'type':'string'},'content':{'type':_0x5006c6(-_0x2a623f._0x254230,-_0x2a623f._0x32d401,-_0x2a623f._0x172d67,-0xf1)}},'required':[_0x5006c6(-_0x2a623f._0xbe182d,-_0x2a623f._0x13a65f,-_0x2a623f._0x3025b7,-_0x2a623f._0x40702e),_0x5006c6(-_0x2a623f._0x1c6e07,-0x1dc,-0x1a9,-0x222)]},async *'execute'(_0x11d966){const _0x2da750=resolveAllowedPath(_0x4638f3,_0x83483b,_0x11d966[_0x7ceb32(-_0x5e1468._0x456fc2,-_0x5e1468._0x31b875,-0x26b,-_0x5e1468._0x2027d4)]);function _0x2355e3(_0x304089,_0x3c5ea0,_0x1dfb21,_0x12a2cb){return _0x295747(_0x304089-0x15f,_0x3c5ea0-0x10f,_0x1dfb21,_0x304089- -_0x478065._0x39c273);}const _0x274fd3=await _0x25eed3(_0x2da750)[_0x2355e3(-0x153,-_0x5e1468._0x36a6dc,-0x126,-0x279)](()=>!![])[_0x2355e3(-0x213,-_0x5e1468._0x36482e,-0x339,-0x196)](()=>![]),_0x1b4f0a=Buffer[_0x7ceb32(-0x1d,-0x9b,-0x82,_0x5e1468._0x6e59a6)](_0x11d966[_0x2355e3(-_0x5e1468._0x40fb35,-0x133,-0x326,-_0x5e1468._0x4e0ec9)],_0x7ceb32(-0x1f6,-0x20d,-_0x5e1468._0x3da74a,-_0x5e1468._0x366e52));function _0x7ceb32(_0x212e7a,_0x24d41d,_0x2271c2,_0x13527a){return _0x295747(_0x212e7a-0x1eb,_0x24d41d-0x16,_0x212e7a,_0x2271c2- -0x43c);}return await atomicWrite2(_0x2da750,_0x1b4f0a),yield createToolOutput('File\x20written\x20at\x20'+_0x11d966[_0x7ceb32(-0x3ac,-_0x5e1468._0xeeb4be,-0x26b,-0x1cd)]+'.',{'filePath':_0x11d966[_0x2355e3(-0x258,-_0x5e1468._0x4a36dd,-0x2eb,-_0x5e1468._0x4596b0)],'resolvedPath':_0x2da750,'bytes':_0x1b4f0a['length'],'lines':_0x11d966[_0x7ceb32(-_0x5e1468._0x225136,-_0x5e1468._0x41f69e,-_0x5e1468._0x2ad93f,-0x278)][_0x2355e3(_0x5e1468._0x44aba3,0x58,-0xbe,0xf6)](/\r?\n/)[_0x2355e3(-0x10b,0x38,-_0x5e1468._0x16f851,_0x5e1468._0x1965f4)],'created':new Date()[_0x7ceb32(-_0x5e1468._0x34dba9,-_0x5e1468._0x4afa23,-0x126,-_0x5e1468._0x1f3689)](),'overwritten':_0x274fd3}),void 0x0;}});}import{readFile as _0x4c3a4f,stat as _0x51c3b6}from'fs/promises';import*as _0x522e63 from'path';function stripUtfBom(_0x241edc){const _0x85ee6d={_0xedeaef:0x406,_0x3621be:0x49b};function _0x374434(_0x171794,_0x2c8c2f,_0x2b64fd,_0x476d02){return _0x2fd7af(_0x476d02-0x445,_0x2c8c2f-0x23,_0x2b64fd,_0x476d02-0x4a);}return _0x241edc[_0x374434(0x451,_0x85ee6d._0xedeaef,0x37b,_0x85ee6d._0x3621be)](0x0)===0xfeff?_0x241edc['slice'](0x1):_0x241edc;}function clampLine(_0x441330,_0x3123a0){const _0x498434={_0x1131c4:0x5b7,_0x50631c:0x4f5,_0x5a1a8b:0x6a,_0x26f092:0x88,_0x87588f:0x1b4,_0x31ea6b:0xa2,_0x17bbbc:0x4d8,_0x5b079f:0x5df},_0x1ca42d={_0x204384:0xc7},_0x209637={_0x4acbe4:0x127};if(!Number[_0x2f8435(_0x498434._0x1131c4,0x542,_0x498434._0x50631c,0x558)](_0x441330))return 0x1;function _0x2f8435(_0x3a169b,_0x19f8b1,_0x4130a8,_0x4d5faa){return _0x2fd7af(_0x3a169b-0x671,_0x19f8b1-_0x209637._0x4acbe4,_0x4d5faa,_0x4d5faa-0x83);}function _0x3b1313(_0x155cd6,_0x4cdca8,_0x240240,_0xee0211){return _0x278b49(_0x155cd6-0x1bb,_0x4cdca8-0x182,_0xee0211-_0x1ca42d._0x204384,_0x240240);}return Math[_0x3b1313(0x4,-0xb9,0x4a,-_0x498434._0x5a1a8b)](0x1,Math[_0x3b1313(_0x498434._0x26f092,-0xf1,-_0x498434._0x87588f,-_0x498434._0x31ea6b)](Math[_0x2f8435(_0x498434._0x17bbbc,0x3a7,0x505,_0x498434._0x5b079f)](_0x441330),_0x3123a0));}function createFileReadTool(_0x407686={}){const _0x4bc3da={_0x3e31c8:0x341,_0x57ced3:0x425,_0x222c9c:0x31d,_0xd3f466:0x544,_0x3288d0:0xb1,_0x48f297:0x2f5,_0x23b617:0x3eb,_0x397944:0x332,_0x5a2c94:0x239,_0x2c357c:0x1d6,_0x54bd42:0x1d1,_0x38429c:0x380,_0x23fe52:0x2d9,_0x332e3e:0x40c,_0x403d30:0x3ac,_0x312ede:0x417,_0x288810:0x4f1,_0x28eb54:0x274,_0x4e6226:0x2fe,_0x2739d9:0x348,_0x151dc9:0x3dd},_0x1fc849={_0x4ed272:0xf1,_0x2ba611:0x3f,_0x43a951:0x165,_0x437b29:0x287,_0x13164a:0x313,_0xbe1372:0x5a5,_0x54e68d:0x650,_0x460b03:0x519,_0x4a0918:0x544,_0x15203a:0x6ae,_0x2e8557:0x680,_0x58c99c:0x651,_0x1bf605:0x6f1,_0x553377:0x794,_0x272783:0x65a,_0x1577d0:0x8ca,_0x1ca8d3:0x72b,_0x558d4a:0x78f,_0x55c395:0x183,_0x5756b5:0x21a,_0x44afbb:0x5b8,_0x297705:0x67a,_0x586edf:0x6e0,_0x1fab20:0x722,_0x577a8d:0x233,_0x427a32:0x11d,_0x183bba:0x2c6,_0xd564b7:0x1b9,_0x1a6056:0x50,_0x29405a:0x22f,_0x5c47ba:0x11c,_0x34dc61:0x2ae,_0x127f89:0x1f7,_0x3dfb77:0x241,_0x4799d3:0x4af,_0x116f36:0x64b,_0x392434:0x9c,_0x5c4918:0x29d,_0x3a973:0x70,_0x3fee28:0x1a9,_0x4de50e:0x1e2,_0xa5ab2f:0x5ff,_0x22bf82:0x555,_0xbd35d4:0xa7,_0x4c49a4:0x23e,_0x458f0d:0x7b8},_0x25d88d={_0x2a2fb3:0x5d},_0x3b8fa1={_0x4a3c6e:0x3d6,_0x1c7e40:0x163};function _0x13b1d0(_0x4badb5,_0x491680,_0x47e667,_0x27ebcf){return _0x2fd7af(_0x491680-_0x3b8fa1._0x4a3c6e,_0x491680-0x153,_0x47e667,_0x27ebcf-_0x3b8fa1._0x1c7e40);}const _0x51b34f=_0x522e63[_0x13b1d0(_0x4bc3da._0x3e31c8,0x47b,0x570,_0x4bc3da._0x57ced3)](_0x407686[_0x13b1d0(_0x4bc3da._0x222c9c,0x429,_0x4bc3da._0xd3f466,0x488)]??process[_0x693f32(0x120,0x1b2,_0x4bc3da._0x3288d0,_0x4bc3da._0x48f297)]()),_0xa9776e=(_0x407686[_0x693f32(0x283,0x36d,0x495,_0x4bc3da._0x23b617)]??[])[_0x13b1d0(_0x4bc3da._0x397944,0x2f7,0x3a3,_0x4bc3da._0x5a2c94)](_0x5dbd47=>_0x522e63['resolve'](_0x5dbd47));function _0x693f32(_0x45ce,_0x1ec79c,_0x207148,_0x50e137){return _0x2fd7af(_0x1ec79c-0x2fa,_0x1ec79c-0x1f1,_0x50e137,_0x50e137-0x115);}const _0x564e12=_0x407686[_0x13b1d0(0x1bb,0x280,_0x4bc3da._0x2c357c,_0x4bc3da._0x54bd42)]??_0x13b1d0(_0x4bc3da._0x38429c,_0x4bc3da._0x23fe52,0x22a,_0x4bc3da._0x332e3e);return defineTool({'name':_0x564e12,'description':'Read\x20a\x20UTF-8\x20text\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories.\x20Optionally\x20specify\x20line\x20ranges\x20(lineStart,\x20lineEnd)','inputSchema':{'type':_0x13b1d0(_0x4bc3da._0x403d30,0x3f4,_0x4bc3da._0x312ede,_0x4bc3da._0x288810),'properties':{'path':{'type':'string'},'lineStart':{'type':_0x693f32(_0x4bc3da._0x28eb54,0x374,_0x4bc3da._0x4e6226,0x2b5)},'lineEnd':{'type':'number'}},'required':[_0x13b1d0(0x26d,_0x4bc3da._0x2739d9,0x3af,_0x4bc3da._0x151dc9)]},async *'execute'(_0x29d5fa){const _0x35dbac={_0x1f8d07:0xa1,_0x571a79:0x1e3,_0x325a89:0x30},_0x118882=resolveAllowedPath(_0x51b34f,_0xa9776e,_0x29d5fa[_0x380bb3(_0x1fc849._0x4ed272,_0x1fc849._0x2ba611,_0x1fc849._0x43a951,0x166)]);await assertWorkspaceFile(_0x118882);function _0x38df81(_0x10ea61,_0x3dcaee,_0x56492e,_0x588820){return _0x693f32(_0x10ea61-_0x25d88d._0x2a2fb3,_0x3dcaee-0x3e4,_0x56492e-0x195,_0x588820);}const _0x5c2455=await _0x51c3b6(_0x118882),_0x33696e=await _0x4c3a4f(_0x118882);if(isProbablyBinary(_0x33696e))throw new ToolExecutionError(_0x380bb3(0x188,0x143,_0x1fc849._0x437b29,_0x1fc849._0x13164a)+_0x29d5fa[_0x38df81(_0x1fc849._0xbe1372,_0x1fc849._0x54e68d,_0x1fc849._0x460b03,_0x1fc849._0x4a0918)],{'path':_0x29d5fa['path']});let _0x17e61a=_0x33696e[_0x38df81(_0x1fc849._0x15203a,0x629,0x4e8,0x550)](_0x38df81(_0x1fc849._0x2e8557,0x67a,_0x1fc849._0x58c99c,0x61f));const _0x1b0b80=_0x17e61a[_0x38df81(0x68f,0x734,_0x1fc849._0x1bf605,_0x1fc849._0x553377)](0x0)===0xfeff;_0x17e61a=stripUtfBom(_0x17e61a);const _0x4debb9=_0x17e61a[_0x38df81(0x69a,0x798,_0x1fc849._0x272783,_0x1fc849._0x1577d0)](/\r?\n/),_0x4c4e5d={'path':_0x29d5fa['path'],'resolvedPath':_0x118882,'created':_0x5c2455['birthtime'][_0x38df81(_0x1fc849._0x1ca8d3,0x66a,_0x1fc849._0x558d4a,0x766)](),'modified':_0x5c2455['mtime'][_0x380bb3(_0x1fc849._0x55c395,0x1d5,0x17f,_0x1fc849._0x5756b5)](),'size':_0x5c2455[_0x38df81(0x583,0x564,0x4c3,0x63f)],'encoding':_0x38df81(_0x1fc849._0x44afbb,_0x1fc849._0x297705,_0x1fc849._0x586edf,_0x1fc849._0x1fab20),'bomStripped':_0x1b0b80,'truncated':![],'totalLines':_0x4debb9['length']};if(_0x29d5fa[_0x380bb3(_0x1fc849._0x577a8d,_0x1fc849._0x427a32,0x184,0x14a)]!==void 0x0||_0x29d5fa['lineEnd']!==void 0x0){const _0x2a17a2=clampLine(_0x29d5fa[_0x380bb3(_0x1fc849._0x183bba,_0x1fc849._0xd564b7,0x184,0xe1)]??0x1,_0x4debb9[_0x380bb3(_0x1fc849._0x1a6056,0x2a8,0x187,_0x1fc849._0x29405a)]),_0x26e616=clampLine(_0x29d5fa[_0x380bb3(_0x1fc849._0x5c47ba,_0x1fc849._0x34dc61,_0x1fc849._0x127f89,0x14e)]??_0x4debb9[_0x380bb3(0x96,0x222,0x187,_0x1fc849._0x3dfb77)],_0x4debb9['length']),_0xb4a9ac=Math[_0x38df81(_0x1fc849._0x4799d3,0x526,_0x1fc849._0x116f36,0x597)](_0x2a17a2,_0x26e616),_0x4a30b0=Math[_0x380bb3(0x148,0x168,0x73,_0x1fc849._0x392434)](_0x2a17a2,_0x26e616),_0x2f52d0=_0x4debb9[_0x380bb3(_0x1fc849._0x5c4918,_0x1fc849._0x3a973,_0x1fc849._0x3fee28,_0x1fc849._0x4de50e)](_0xb4a9ac-0x1,_0x4a30b0)[_0x38df81(0x6f1,_0x1fc849._0xa5ab2f,_0x1fc849._0x22bf82,0x586)]((_0x3de64d,_0x213e5f)=>_0xb4a9ac+_0x213e5f+'|'+_0x3de64d)[_0x380bb3(_0x1fc849._0xbd35d4,0x21e,0x196,_0x1fc849._0x4c49a4)]('\x0a');return yield createToolOutput(_0x2f52d0,{..._0x4c4e5d,'lineRange':{'lineStart':_0xb4a9ac,'lineEnd':_0x4a30b0,'linesTotal':_0x4debb9[_0x38df81(0x622,0x672,_0x1fc849._0x458f0d,0x58a)]}}),void 0x0;}yield createToolOutput(_0x17e61a,_0x4c4e5d);function _0x380bb3(_0x132a80,_0x1bf309,_0xdde09,_0x22d21b){return _0x13b1d0(_0x132a80-_0x35dbac._0x1f8d07,_0xdde09- -_0x35dbac._0x571a79,_0x132a80,_0x22d21b-_0x35dbac._0x325a89);}return void 0x0;}});}import{stat as _0x25bf03}from'fs/promises';import*as _0x201c64 from'path';import{execSync,spawn as _0x2eb474}from'child_process';import{existsSync}from'fs';import{stat as _0x45b2c5}from'fs/promises';import*as _0x3087bf from'os';import*as _0x231028 from'path';import{rgPath as _0x56d751}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1fda1d={_0x16010b:0x624,_0x45b37f:0x4e2,_0x946345:0x69f,_0x2d010b:0x619,_0x25314b:0x4dd,_0x5b54e5:0x4b5,_0x5b963f:0x54d,_0x4c74d8:0x61e,_0x66d7b6:0x451,_0x212f7a:0x5c7,_0x5c5a0d:0x540,_0x4f3f25:0x5ec,_0x1c59de:0x648,_0x5e0aea:0x629,_0x30f827:0x5a5,_0x447f8d:0x53a,_0x289677:0x74c,_0x20c2fc:0x633,_0xf01c28:0x5fc,_0x2b6797:0x5cd,_0x48b8cd:0x81c,_0x3d470b:0x433,_0xb673a3:0x3fa,_0x516133:0x520,_0x445fe2:0x75d,_0x5a990b:0x71c,_0x58eb3e:0x81b,_0x10bf97:0x3d9,_0x5b9107:0x39c,_0x11c920:0x5a3,_0x29249f:0x5f3,_0x43b056:0x5ed,_0x49b4a1:0x41e,_0x1104fa:0x552,_0x28a153:0x5a7,_0x16d0b5:0x566,_0x4b580f:0x626,_0x270b0b:0x5b3,_0x23908c:0x539},_0x3281cf={_0x14397d:0xca},_0x10a519=_0x3087bf[_0x5eed44(0x462,0x589,_0x1fda1d._0x16010b,_0x1fda1d._0x45b37f)]()===_0x5eed44(_0x1fda1d._0x946345,_0x1fda1d._0x2d010b,0x522,0x5be),_0x5e9577=_0x10a519?[_0x231028[_0x5eed44(_0x1fda1d._0x25314b,0x50f,_0x1fda1d._0x5b54e5,_0x1fda1d._0x5b963f)](process[_0x25f38e(0x792,0x6de,_0x1fda1d._0x4c74d8,0x76a)]['LOCALAPPDATA']||'',_0x5eed44(0x5c3,0x4a2,0x43a,0x50b),'WinGet','Packages'),_0x231028[_0x5eed44(0x5bf,0x50f,0x4dc,_0x1fda1d._0x66d7b6)](process['env']['ProgramFiles']||'',_0x5eed44(_0x1fda1d._0x212f7a,_0x1fda1d._0x5c5a0d,0x4ad,0x648),_0x25f38e(0x5fd,0x659,_0x1fda1d._0x4f3f25,0x664)),_0x231028[_0x25f38e(0x5e2,_0x1fda1d._0x1c59de,0x623,_0x1fda1d._0x5e0aea)](process[_0x5eed44(0x4fd,_0x1fda1d._0x30f827,_0x1fda1d._0x447f8d,0x542)][_0x25f38e(_0x1fda1d._0x289677,_0x1fda1d._0x20c2fc,0x557,_0x1fda1d._0xf01c28)]||'',_0x25f38e(0x7ad,0x679,_0x1fda1d._0x2b6797,0x69f),'rg.exe')]:['/opt/homebrew/bin/rg','/usr/local/bin/rg',_0x25f38e(_0x1fda1d._0x48b8cd,0x751,0x82a,0x6ae),_0x5eed44(_0x1fda1d._0x3d470b,0x492,_0x1fda1d._0xb673a3,_0x1fda1d._0x516133)];function _0x5eed44(_0x521625,_0xaf1d18,_0x4aedd0,_0x29e77f){return _0x278b49(_0x521625-0x143,_0xaf1d18-_0x3281cf._0x14397d,_0xaf1d18-0x51d,_0x29e77f);}function _0x25f38e(_0x516377,_0x411b3a,_0x15cbe2,_0x4bbb53){return _0x2fd7af(_0x411b3a-0x6a5,_0x411b3a-0x45,_0x4bbb53,_0x4bbb53-0xee);}for(const _0x1c2773 of _0x5e9577){if(existsSync(_0x1c2773))return _0x1c2773;}try{const _0x4e927b=_0x10a519?_0x25f38e(0x65c,0x689,0x76d,0x609):_0x25f38e(0x82d,_0x1fda1d._0x445fe2,_0x1fda1d._0x5a990b,_0x1fda1d._0x58eb3e),_0x1561c5=execSync(_0x4e927b,{'encoding':'utf8','stdio':[_0x5eed44(0x526,0x49a,_0x1fda1d._0x10bf97,_0x1fda1d._0x5b9107),_0x25f38e(_0x1fda1d._0x11c920,0x5d3,0x58e,_0x1fda1d._0x29249f),_0x25f38e(0x512,0x522,_0x1fda1d._0x43b056,_0x1fda1d._0x49b4a1)]})[_0x25f38e(0x711,0x5e6,_0x1fda1d._0x1104fa,_0x1fda1d._0x28a153)]()[_0x5eed44(_0x1fda1d._0x16d0b5,_0x1fda1d._0x4b580f,_0x1fda1d._0x270b0b,_0x1fda1d._0x23908c)](/\r?\n/)[0x0];if(_0x1561c5&&existsSync(_0x1561c5))return _0x1561c5;}catch{return null;}return null;}async function filepath(){const _0x3ed7a7={_0x48b1da:0x1e0,_0x51ede8:0x384},_0x502dc0={_0x21812c:0x175,_0xf92640:0xf5};if(cachedRgPath)return cachedRgPath;if(_0x56d751&&existsSync(_0x56d751))return cachedRgPath=_0x56d751,_0x56d751;const _0x47f61f=findSystemRipgrep();function _0x2f8d57(_0x4b6acb,_0x5ca22c,_0x3e4355,_0x368af5){return _0x2fd7af(_0x368af5-_0x502dc0._0x21812c,_0x5ca22c-_0x502dc0._0xf92640,_0x4b6acb,_0x368af5-0x193);}if(!_0x47f61f)throw new Error(_0x2f8d57(_0x3ed7a7._0x48b1da,_0x3ed7a7._0x51ede8,0x2e1,0x23d));return cachedRgPath=_0x47f61f,_0x47f61f;}async function*files(_0x33b244){const _0x4490be={_0x32fc68:0x1e3,_0x15a78f:0x7b,_0xf4d0a8:0x53,_0x497073:0x2ea,_0x4b7520:0x22a,_0x42aa5c:0x125,_0x367e4f:0xc0,_0x36f926:0x13c,_0x2112af:0x11a,_0x24d66f:0x213,_0x2e49ed:0x36a,_0x35fb7e:0x1c3,_0x828f88:0x2fd,_0x4993d5:0x3b7,_0x254dd0:0x404,_0x40ce66:0x29f,_0x1ac037:0x1ee,_0x2877a0:0x18b,_0x497b3e:0x160,_0x593194:0x453,_0x4ecb56:0x467,_0x208d77:0x408,_0xf76b9e:0x271,_0x4b65ab:0x249,_0x39cbc6:0xc7,_0x2240d8:0x303,_0x457a0c:0x15c,_0x253c7e:0x34b,_0x6e1cde:0x3f7,_0x5991cd:0x3a3,_0x355d89:0x1ff,_0x5463ef:0x3fb,_0x11562f:0x11f,_0x16eef4:0x246,_0x36ba74:0x1c1,_0x574b4a:0x25e,_0x43a2ed:0x218,_0x585bb6:0x30b,_0x159547:0x378,_0x4f1595:0x2aa},_0x3d7752={_0x25590e:0x1d1,_0x1baf84:0x11},_0x16315b=await filepath(),_0x476819=await _0x45b2c5(_0x33b244['cwd'])[_0x1bdbbe(_0x4490be._0x32fc68,_0x4490be._0x15a78f,0x110,_0x4490be._0xf4d0a8)](()=>null);if(!_0x476819?.[_0x215b54(_0x4490be._0x497073,_0x4490be._0x4b7520,0x2b6,0x2ff)]())throw Object[_0x1bdbbe(0x101,0x348,0x209,_0x4490be._0x42aa5c)](new Error(_0x1bdbbe(0x27d,0x215,0x231,0x275)+_0x33b244[_0x1bdbbe(0xa3,_0x4490be._0x367e4f,_0x4490be._0x36f926,0x144)]+'\x27'),{'code':_0x215b54(0x239,0x2c2,_0x4490be._0x2112af,_0x4490be._0x24d66f)});function _0x1bdbbe(_0x35427f,_0x1740b9,_0xe7279a,_0x59bf95){return _0x278b49(_0x35427f-0x33,_0x1740b9-0xf2,_0xe7279a-0x235,_0x35427f);}const _0x5e7e1e=[_0x1bdbbe(_0x4490be._0x2e49ed,_0x4490be._0x35fb7e,_0x4490be._0x828f88,0x3eb),_0x215b54(_0x4490be._0x4993d5,_0x4490be._0x254dd0,_0x4490be._0x40ce66,0x3d7),_0x1bdbbe(0xff,0x256,0x15f,0x7f),'--glob=!.git/*'];for(const _0x187559 of _0x33b244[_0x1bdbbe(_0x4490be._0x1ac037,_0x4490be._0x2877a0,_0x4490be._0x497b3e,0x295)]??[]){_0x5e7e1e[_0x215b54(_0x4490be._0x593194,_0x4490be._0x4ecb56,_0x4490be._0x208d77,0x3cb)](_0x1bdbbe(0x197,_0x4490be._0xf76b9e,0x14a,_0x4490be._0x4b65ab)+_0x187559);}const _0x48342e=_0x2eb474(_0x16315b,_0x5e7e1e,{'cwd':_0x33b244[_0x1bdbbe(_0x4490be._0x39cbc6,0x277,_0x4490be._0x36f926,0x1de)],'stdio':[_0x215b54(0x21e,0x184,_0x4490be._0x2240d8,_0x4490be._0x457a0c),_0x215b54(0x2cf,_0x4490be._0x253c7e,_0x4490be._0x6e1cde,_0x4490be._0x5991cd),'pipe']});function _0x215b54(_0x4cbfd3,_0x4545a6,_0x36378e,_0x5c752a){return _0x278b49(_0x4cbfd3-_0x3d7752._0x25590e,_0x4545a6-_0x3d7752._0x1baf84,_0x4cbfd3-0x352,_0x4545a6);}let _0x34fb8b='';for await(const _0x2c8a90 of _0x48342e['stdout']??[]){_0x34fb8b+=_0x2c8a90['toString']();const _0x2872fe=_0x34fb8b[_0x1bdbbe(_0x4490be._0x355d89,0x2be,0x33e,_0x4490be._0x5463ef)](/\r?\n/);_0x34fb8b=_0x2872fe[_0x1bdbbe(_0x4490be._0x11562f,0x178,_0x4490be._0x16eef4,_0x4490be._0x36ba74)]()??'';for(const _0x59170a of _0x2872fe){if(_0x59170a[_0x1bdbbe(_0x4490be._0x574b4a,0x2f1,_0x4490be._0x43a2ed,0x1dc)]>0x0)yield _0x59170a;}}_0x34fb8b[_0x215b54(0x2e2,_0x4490be._0x585bb6,0x3c8,0x34b)]()[_0x215b54(0x335,_0x4490be._0x159547,0x3b6,_0x4490be._0x4f1595)]>0x0&&(yield _0x34fb8b['trim']());}function parseMatchLine(_0x32736d,_0x52304b){const _0x3ed0af={_0x4ae5c2:0x2eb,_0x41ebed:0x49c,_0x25d473:0x39b,_0x12c5fc:0x276,_0x48ebf7:0x166,_0x451010:0x368,_0x574859:0x2bd,_0x23d4ef:0x1ff,_0x4a45d9:0x1f0,_0x48da8d:0x299,_0x1a1387:0x284,_0x56995f:0x175,_0x221ec1:0x221,_0x5cf457:0x344,_0x545931:0x244,_0x17cdf6:0x25b,_0x1b5e23:0x305,_0x285584:0x2b4,_0x24ff4a:0x43f},_0x2e85b5={_0x5e93e2:0x19a},_0x4870ac={_0x57059e:0x2af};function _0x3c4ee1(_0x5689ee,_0x571e39,_0x2e88d9,_0x24af02){return _0x278b49(_0x5689ee-0x7a,_0x571e39-0x1da,_0x2e88d9-_0x4870ac._0x57059e,_0x5689ee);}function _0x19cd60(_0x4137b2,_0x60eadb,_0x315bc9,_0x5140b3){return _0x278b49(_0x4137b2-_0x2e85b5._0x5e93e2,_0x60eadb-0xdf,_0x315bc9-0x304,_0x60eadb);}if(!_0x32736d||_0x32736d==='--')return null;const _0x515030=_0x32736d[_0x19cd60(_0x3ed0af._0x4ae5c2,0x457,0x40d,_0x3ed0af._0x41ebed)]('|');if(_0x52304b&&_0x515030[_0x3c4ee1(0x28d,_0x3ed0af._0x25d473,0x292,0x3cd)]>=0x4&&Number['isFinite'](Number[_0x19cd60(0x287,0x21e,_0x3ed0af._0x12c5fc,_0x3ed0af._0x48ebf7)](_0x515030[0x2]??'',0xa))){const _0xa20cf7=Number[_0x19cd60(_0x3ed0af._0x451010,_0x3ed0af._0x574859,_0x3ed0af._0x12c5fc,_0x3ed0af._0x23d4ef)](_0x515030[0x1]??'',0xa);if(!Number[_0x19cd60(_0x3ed0af._0x4a45d9,0x1af,_0x3ed0af._0x48da8d,0x303)](_0xa20cf7)||!_0x515030[0x0])return null;return{'filePath':_0x515030[0x0],'lineNum':_0xa20cf7,'lineText':_0x515030['slice'](0x3)['join']('|')};}if(_0x515030[_0x19cd60(_0x3ed0af._0x1a1387,0x1bd,0x2e7,0x2b8)]>=0x3){const _0x17a7bc=Number[_0x3c4ee1(_0x3ed0af._0x56995f,0x2a7,_0x3ed0af._0x221ec1,0x2be)](_0x515030[0x1]??'',0xa);if(!Number[_0x3c4ee1(_0x3ed0af._0x5cf457,0x239,_0x3ed0af._0x545931,_0x3ed0af._0x17cdf6)](_0x17a7bc)||!_0x515030[0x0])return null;return{'filePath':_0x515030[0x0],'lineNum':_0x17a7bc,'lineText':_0x515030[_0x3c4ee1(_0x3ed0af._0x1b5e23,0x332,_0x3ed0af._0x285584,0x3d6)](0x2)[_0x19cd60(0x2d9,_0x3ed0af._0x24ff4a,0x2f6,0x36e)]('|'),..._0x52304b?{'isContext':!![]}:{}};}return null;}async function search(_0x376036){const _0xf269b9={_0x1676cb:0xc8,_0x582f8a:0x9d,_0x4167fb:0x34c,_0x3f13f1:0x274,_0x286fcb:0x152,_0x3e368d:0x4fb,_0x5e01e9:0x544,_0xfb1d8a:0x43f,_0x1a8563:0x6e,_0x3c5b80:0x11,_0x3e61b7:0x3d6,_0x1cba29:0x348,_0x270557:0x2b4,_0x5981d0:0x32f,_0x197139:0x38e,_0x205c77:0xa9,_0x3fdc8a:0xc2,_0x2e92bc:0x160,_0x31daab:0xb5,_0x7f2ea1:0xfe,_0x3d4b70:0x175,_0x1667db:0x31f,_0x1f091c:0x3d5,_0xafb578:0x1ec,_0x3dfefa:0x2c0,_0x5df7a5:0x2c4,_0xdbbe42:0x5f,_0x10cea8:0x11d,_0x32058e:0x2dd,_0x337aa3:0x287,_0x3cb3d1:0x2eb,_0x74daa4:0x315,_0x192f85:0x2a2,_0x2a9112:0x2e0,_0x5cb108:0x22b,_0x55495b:0x4ad,_0x4d593c:0x337,_0x4c5049:0x1a6,_0x2af094:0x26e,_0x3b4bc7:0xd2,_0x37fa40:0x1fc,_0x42227f:0x4e,_0x2581cd:0x136,_0x3c3f13:0x2a,_0xb5b184:0x594},_0x521eb6={_0x90913:0x592,_0xa58ded:0x44d,_0x555c1c:0x557,_0x49ce39:0x4a0,_0x12fad1:0x63d,_0x351373:0x5e4,_0x206b1b:0x747,_0xd33b68:0x177,_0x151289:0x1b7,_0x5d9f0a:0x603,_0x55e668:0x7a6,_0x567b3d:0x880,_0x42222d:0x670},_0x1f82c0={_0x45f6a3:0x2ef,_0x260d89:0xe8,_0x33cfd0:0x3ac,_0xb218ae:0x314,_0x190667:0x4f5,_0x5afc2b:0x3e0,_0x5654d0:0x63e,_0x58190e:0x596,_0x34768e:0x515},_0x530459={_0x5a73fa:0x3d},_0x30074b={_0x3ed070:0xf5,_0x3f0143:0x6},_0x4c5b5c={_0x63f75d:0x8f},_0x2fb662=await filepath();if(_0x376036[_0x506420(_0xf269b9._0x1676cb,0x102,_0xf269b9._0x582f8a,-0xa5)]){const _0x58fb86=await _0x45b2c5(_0x376036[_0x4254f3(0x3a7,_0xf269b9._0x4167fb,0x2ff,0x3fd)])[_0x4254f3(0x2ca,0x2b4,_0xf269b9._0x3f13f1,0x203)](()=>null);if(!_0x58fb86?.[_0x506420(_0xf269b9._0x286fcb,0x200,0x193,0x221)]())throw Object['assign'](new Error(_0x4254f3(0x4e5,_0xf269b9._0x3e368d,_0xf269b9._0x5e01e9,0x405)+_0x376036[_0x4254f3(_0xf269b9._0xfb1d8a,_0xf269b9._0x4167fb,0x231,0x277)]+'\x27'),{'code':_0x506420(_0xf269b9._0x1a8563,-0xe3,_0xf269b9._0x3c5b80,-0x69)});}else{const _0x17995d=await _0x45b2c5(_0x376036[_0x4254f3(_0xf269b9._0x3e61b7,0x2e0,0x33f,0x238)])[_0x4254f3(_0xf269b9._0x1cba29,_0xf269b9._0x270557,_0xf269b9._0x5981d0,_0xf269b9._0x197139)](()=>null);if(!_0x17995d?.[_0x506420(0x1ad,_0xf269b9._0x205c77,_0xf269b9._0x3fdc8a,_0xf269b9._0x2e92bc)]())throw Object[_0x506420(_0xf269b9._0x31daab,0x155,_0xf269b9._0x7f2ea1,_0xf269b9._0x3d4b70)](new Error(_0x4254f3(_0xf269b9._0x1667db,_0xf269b9._0x1f091c,0x48c,0x33f)+_0x376036[_0x4254f3(0x1c2,0x2e0,0x2fa,0x31d)]+'\x27'),{'code':_0x4254f3(_0xf269b9._0xafb578,_0xf269b9._0x3dfefa,_0xf269b9._0x5df7a5,0x18f)});}const _0x336316=[_0x506420(0x19c,-_0xf269b9._0xdbbe42,0xe0,_0xf269b9._0x10cea8),_0x4254f3(0x1b7,_0xf269b9._0x32058e,_0xf269b9._0x337aa3,0x2e1),_0x4254f3(_0xf269b9._0x3cb3d1,_0xf269b9._0x74daa4,0x241,_0xf269b9._0x192f85),'--regexp',_0x376036['pattern']],_0x35bd76=typeof _0x376036['context']==='number'&&_0x376036['context']>0x0;_0x35bd76&&_0x336316[_0x506420(0x288,_0xf269b9._0x2a9112,_0xf269b9._0x5cb108,0x2e2)]('-C',String(_0x376036[_0x4254f3(_0xf269b9._0x55495b,0x451,_0xf269b9._0x4d593c,0x42a)]),_0x506420(-0x55,_0xf269b9._0x4c5049,0xde,0x112));function _0x4254f3(_0x5be6c0,_0x1bb9eb,_0x18b9a7,_0x427fc8){return _0x2fd7af(_0x1bb9eb-0x428,_0x1bb9eb-0x14,_0x5be6c0,_0x427fc8-0x154);}function _0x506420(_0x41860b,_0x1b5a8f,_0x335062,_0x4435c5){return _0x2fd7af(_0x335062-0x179,_0x1b5a8f-_0x4c5b5c._0x63f75d,_0x4435c5,_0x4435c5-0x166);}return _0x376036['glob']&&!_0x376036['file']&&_0x336316['push'](_0x506420(_0xf269b9._0x2af094,_0xf269b9._0x3b4bc7,_0xf269b9._0x37fa40,0x2ca),_0x376036[_0x506420(-_0xf269b9._0x42227f,_0xf269b9._0x2581cd,0x55,-_0xf269b9._0x3c3f13)]),_0x336316[_0x4254f3(0x544,0x4da,_0xf269b9._0xb5b184,0x52b)](_0x376036['file']??_0x376036['cwd']),await new Promise((_0xad5e86,_0x503d54)=>{const _0x2b7b80={_0x4f69d5:0x52,_0x9cecb5:0x18b,_0x398e58:0x19},_0x2cc575={_0x149c8a:0x13d},_0x17064e={_0x382ab7:0x669},_0x466c18=_0x2eb474(_0x2fb662,_0x336316,{'cwd':_0x376036[_0x25766b(_0x521eb6._0x90913,0x5b3,0x4cf,_0x521eb6._0xa58ded)],'stdio':[_0x25766b(_0x521eb6._0x555c1c,0x5df,0x42f,_0x521eb6._0x49ce39),'pipe','pipe']});function _0x263c0f(_0x31e4d1,_0x478e83,_0x38ff25,_0x2f561){return _0x4254f3(_0x478e83,_0x31e4d1- -0x2b1,_0x38ff25-_0x30074b._0x3ed070,_0x2f561-_0x30074b._0x3f0143);}let _0x51fbb9='',_0x5ca882='';_0x466c18[_0x25766b(_0x521eb6._0x12fad1,_0x521eb6._0x351373,_0x521eb6._0x206b1b,0x60f)]?.['on']('data',_0x19cba9=>{const _0x1410f2={_0x43a78d:0x560,_0x503aff:0xae};function _0x2676f4(_0x1c374b,_0x3d7952,_0x5a0e6a,_0x44715f){return _0x263c0f(_0x1c374b-_0x1410f2._0x43a78d,_0x3d7952,_0x5a0e6a-0xc,_0x44715f-_0x1410f2._0x503aff);}_0x51fbb9+=_0x19cba9[_0x2676f4(0x622,0x755,_0x17064e._0x382ab7,0x6a1)]();}),_0x466c18[_0x263c0f(_0x521eb6._0xd33b68,0x232,_0x521eb6._0x151289,0x148)]?.['on']('data',_0x1a26af=>{function _0x3bb363(_0x1c6e27,_0x453cc4,_0x1e9bc9,_0x1d2fbe){return _0x263c0f(_0x1c6e27- -0x1a3,_0x1d2fbe,_0x1e9bc9-0x163,_0x1d2fbe-_0x2cc575._0x149c8a);}_0x5ca882+=_0x1a26af[_0x3bb363(-0xe1,_0x2b7b80._0x4f69d5,-_0x2b7b80._0x9cecb5,-_0x2b7b80._0x398e58)]();});function _0x25766b(_0x206a75,_0x31714c,_0x538a14,_0x2e4d32){return _0x506420(_0x206a75-_0x530459._0x5a73fa,_0x31714c-0x11,_0x206a75-0x561,_0x2e4d32);}_0x466c18['on'](_0x25766b(0x73b,_0x521eb6._0x5d9f0a,0x788,0x86c),_0x1ddd42=>{const _0x30cd4b={_0x1c3d83:0xd},_0x2c3b66={_0x671cb:0x3ea};if(_0x1ddd42===0x1&&_0x51fbb9===''){_0xad5e86([]);return;}if(_0x1ddd42!==0x0&&_0x1ddd42!==0x1){_0x503d54(new Error(_0x19a246(0x1fa,_0x1f82c0._0x45f6a3,_0x1f82c0._0x260d89,0x2fb)+_0x5ca882));return;}const _0x1d939f=_0x376036[_0x1bcc91(0x3d5,_0x1f82c0._0x33cfd0,0x49e,_0x1f82c0._0xb218ae)]??0x64,_0x4f7862=[];function _0x1bcc91(_0x3c590c,_0x1205ad,_0x4482f9,_0x428c9b){return _0x263c0f(_0x3c590c-_0x2c3b66._0x671cb,_0x428c9b,_0x4482f9-0x103,_0x428c9b-0x34);}for(const _0x20d773 of _0x51fbb9['split'](/\r?\n/)){if(_0x4f7862[_0x1bcc91(_0x1f82c0._0x190667,_0x1f82c0._0x5afc2b,0x4f4,_0x1f82c0._0x5654d0)]>=_0x1d939f)break;const _0x1f943c=parseMatchLine(_0x20d773,_0x35bd76);if(_0x1f943c)_0x4f7862[_0x1bcc91(0x613,0x740,_0x1f82c0._0x58190e,_0x1f82c0._0x34768e)](_0x1f943c);}function _0x19a246(_0x3a86f3,_0x1898d1,_0x215827,_0x501165){return _0x263c0f(_0x3a86f3-0xaa,_0x1898d1,_0x215827-_0x30cd4b._0x1c3d83,_0x501165-0x62);}_0xad5e86(_0x4f7862);}),_0x466c18['on'](_0x25766b(_0x521eb6._0x55e668,_0x521eb6._0x567b3d,_0x521eb6._0x42222d,0x7f8),_0x503d54);});}function createGlobTool(_0x35e490={}){const _0x5300e4={_0x3c2711:0x666,_0x416793:0x670,_0x4ebc9d:0x4f4,_0x89ec12:0x3a4,_0x22d389:0x5ff,_0x3054b5:0x64f,_0x1e5d82:0x4d1,_0x3d7675:0x3fa,_0x117f9b:0x63b,_0x1bc485:0x725,_0x2466c1:0x768,_0x935e07:0x420,_0x1323e4:0x390},_0x46dcc0={_0x4b1efa:0x224,_0x2b2541:0x35,_0x407923:0x37,_0x2984c9:0x50,_0x27ac8d:0x326,_0x482393:0x1f7,_0x5eb9e1:0x296,_0x1afe48:0x27d,_0x2e1543:0x1a3,_0x20628c:0x4f,_0x3b88fa:0xec,_0x54b699:0x37c,_0x2ea9b7:0x20a,_0x3da75a:0xc3,_0x4d26ab:0xda,_0x381479:0x231,_0x3128d5:0x310,_0x3ee08a:0x22b,_0x4f436a:0x1f6,_0x339fc3:0x2a,_0x4fb8c0:0x98,_0x251595:0xa1,_0x135355:0x92,_0xce83e:0x55d,_0x3a67bc:0xe8,_0x542c67:0x1c,_0x572299:0x17,_0x5cc30b:0x4dd,_0x7e5932:0x3ae,_0x4e2c16:0x490,_0x2b1656:0x494,_0x25e2f8:0x86,_0x412305:0x65,_0x450d1f:0x460,_0x1a6b39:0x439,_0x429e31:0x576,_0x67017c:0x2a4,_0x38fec0:0x2ae,_0x1fbc39:0x486,_0x21c98f:0x335,_0x12cad6:0x4a8},_0x180f84={_0x388d1b:0x55},_0x1d5ff0={_0x4ff4e9:0x5c1,_0xada443:0xfa,_0x296536:0x65},_0x3db756={_0x49eee5:0x49d},_0x5ad43a=_0x201c64[_0x250471(_0x5300e4._0x3c2711,0x5d8,_0x5300e4._0x416793,0x75d)](_0x35e490[_0x16b158(0x43f,0x521,0x53f,_0x5300e4._0x4ebc9d)]??process[_0x16b158(0x33c,0x4e5,_0x5300e4._0x89ec12,0x437)]());function _0x16b158(_0x9a26f8,_0x22177a,_0x3d3141,_0x11f82c){return _0x278b49(_0x9a26f8-0x1ed,_0x22177a-0xd3,_0x3d3141-_0x3db756._0x49eee5,_0x9a26f8);}const _0x25ee02=(_0x35e490['allowedDirs']??[])['map'](_0x4b26b9=>_0x201c64[_0x16b158(0x547,0x5bb,0x591,0x556)](_0x4b26b9)),_0x43f8a3=_0x35e490[_0x16b158(0x471,0x268,0x360,0x38c)]??0x64,_0x54b7eb=_0x35e490['name']??_0x250471(_0x5300e4._0x22d389,_0x5300e4._0x3054b5,0x581,0x592);function _0x250471(_0x452db9,_0x1aaf36,_0x4d2e40,_0x3b1d03){return _0x2fd7af(_0x452db9-_0x1d5ff0._0x4ff4e9,_0x1aaf36-_0x1d5ff0._0xada443,_0x4d2e40,_0x3b1d03-_0x1d5ff0._0x296536);}return defineTool({'name':_0x54b7eb,'description':_0x250471(_0x5300e4._0x1e5d82,0x56e,0x47e,0x45c),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x250471(0x467,0x406,0x568,_0x5300e4._0x3d7675)},'path':{'type':'string'},'limit':{'type':_0x250471(_0x5300e4._0x117f9b,_0x5300e4._0x1bc485,0x6f6,_0x5300e4._0x2466c1)}},'required':[_0x16b158(0x343,_0x5300e4._0x935e07,_0x5300e4._0x1323e4,0x349)]},async *'execute'(_0x257b63){const _0x3a7a2e={_0x9134cd:0x1c4};if(_0x257b63[_0x5a3080(-0xb3,-0x81,-_0x46dcc0._0x4b1efa,-0x191)]['trim']()[_0x5a3080(-0x159,-_0x46dcc0._0x2b2541,_0x46dcc0._0x407923,-0xa1)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x2fd05b=resolveAllowedPath(_0x5ad43a,_0x25ee02,_0x257b63[_0x5a3080(-0x181,-0xec,_0x46dcc0._0x2984c9,-0xc3)]??'.'),_0x4c3b62=await _0x25bf03(_0x2fd05b)[_0x7326e2(_0x46dcc0._0x27ac8d,_0x46dcc0._0x482393,_0x46dcc0._0x5eb9e1,_0x46dcc0._0x1afe48)](()=>null);if(!_0x4c3b62?.[_0x5a3080(-_0x46dcc0._0x2e1543,-_0x46dcc0._0x20628c,0x23,-_0x46dcc0._0x3b88fa)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x257b63[_0x7326e2(0x3db,0x334,_0x46dcc0._0x54b699,0x3a0)]??'.'),{'path':_0x257b63[_0x5a3080(-0x1c1,-_0x46dcc0._0x2ea9b7,0x34,-_0x46dcc0._0x3da75a)]??'.'});const _0x564f81=_0x257b63[_0x5a3080(-0x2fd,-_0x46dcc0._0x4d26ab,-_0x46dcc0._0x381479,-0x1c1)]??_0x43f8a3;function _0x5a3080(_0xcaa824,_0x8de3d7,_0x7524d2,_0x17c412){return _0x250471(_0x17c412- -0x5f6,_0x8de3d7-_0x3a7a2e._0x9134cd,_0x8de3d7,_0x17c412-0x185);}const _0x417a00=Math[_0x7326e2(_0x46dcc0._0x3128d5,_0x46dcc0._0x3ee08a,0x28a,_0x46dcc0._0x4f436a)](0x1,Math[_0x7326e2(0x271,0x254,0x271,0x2d6)](_0x564f81)),_0x114a18=[];let _0x87d7ff=![];for await(const _0x401629 of files({'cwd':_0x2fd05b,'glob':[_0x257b63['pattern']]})){if(_0x114a18[_0x5a3080(-0x1a3,_0x46dcc0._0x339fc3,_0x46dcc0._0x4fb8c0,-_0x46dcc0._0x251595)]>=_0x417a00){_0x87d7ff=!![];break;}const _0x10a96e=await _0x25bf03(_0x201c64[_0x5a3080(0x2a,-0x83,-0x154,-_0x46dcc0._0x135355)](_0x2fd05b,_0x401629))['catch'](()=>null);_0x114a18[_0x7326e2(_0x46dcc0._0xce83e,0x3ac,0x4bc,0x540)]({'path':_0x401629,'mtime':_0x10a96e?.[_0x5a3080(-0xcc,_0x46dcc0._0x3a67bc,0x110,-_0x46dcc0._0x542c67)]??0x0});}_0x114a18[_0x5a3080(0xb5,-0x60,0x12a,_0x46dcc0._0x572299)]((_0x5b0e25,_0x239e36)=>_0x239e36[_0x5a3080(-0x18b,-0x223,-0x120,-0x126)]-_0x5b0e25['mtime']);const _0x280724=_0x114a18['map'](_0x3d7075=>_0x3d7075[_0x7326e2(0x354,0x3f2,0x37c,0x2e4)]),_0x215899=_0x280724['length']===0x0?_0x7326e2(_0x46dcc0._0x5cc30b,_0x46dcc0._0x7e5932,_0x46dcc0._0x4e2c16,_0x46dcc0._0x2b1656)+_0x257b63['pattern']:''+_0x280724[_0x5a3080(_0x46dcc0._0x25e2f8,-0x6,_0x46dcc0._0x412305,-0x92)]('\x0a')+(_0x87d7ff?_0x7326e2(_0x46dcc0._0x450d1f,0x485,_0x46dcc0._0x1a6b39,_0x46dcc0._0x429e31):'');function _0x7326e2(_0x1af020,_0x5418e0,_0x1f3495,_0x39e28b){return _0x250471(_0x1f3495- -0x1b7,_0x5418e0-_0x180f84._0x388d1b,_0x5418e0,_0x39e28b-0x35);}return yield createToolOutput(_0x215899,{'pattern':_0x257b63[_0x7326e2(0x378,_0x46dcc0._0x67017c,_0x46dcc0._0x38fec0,0x2d0)],'searchPath':_0x201c64[_0x7326e2(0x3e3,0x5b3,_0x46dcc0._0x1fbc39,0x348)](_0x5ad43a,_0x2fd05b)||'.','matches':_0x280724,'count':_0x280724[_0x7326e2(0x415,_0x46dcc0._0x21c98f,0x39e,_0x46dcc0._0x12cad6)],'truncated':_0x87d7ff}),void 0x0;}});}import{stat as _0x33f009}from'fs/promises';import*as _0x3d6ada from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x12b905={}){const _0x61f8db={_0xb1054c:0x26f,_0x4d2b66:0x262,_0x1443d0:0x36b,_0x4d6103:0x64b,_0x29e9d2:0x58d,_0x3ed819:0x2c6,_0x2dea28:0x309,_0x4844bd:0x45b,_0x189baa:0x3ee,_0x3584eb:0x398,_0x415f7e:0x412,_0x6bf422:0x3e4,_0x48fa17:0x293,_0x3c4502:0x516,_0x202fa1:0x59c,_0x5b8ef7:0x392,_0x4a765c:0x299,_0x2188e3:0x70,_0x4f7e49:0x8c,_0x42b3c5:0x1c9,_0x4fac47:0x244,_0x14b556:0x2eb},_0xe78bf4={_0xc62fb7:0xc3,_0x476173:0x6e,_0x246eb2:0x68a,_0x4d8725:0x63a,_0x4d68c0:0x74f,_0x62e748:0x3e9,_0x22f180:0x455,_0x22a1d2:0x6d,_0x4935cb:0xa9,_0x56f8cd:0x24,_0x50d8db:0x20,_0x738e49:0x625,_0x466458:0x643,_0x3adead:0x27,_0x4f3c70:0x605,_0x3c94ce:0x20c,_0x3f301c:0xf5,_0x12a02f:0x528,_0x1b2316:0x563,_0x30b8be:0x526,_0x465922:0x56a,_0x1a5870:0x50d,_0x4fd918:0x42d,_0x140b1d:0x2b,_0x259ac9:0x3d,_0x12441e:0x6f,_0x2d659d:0x73,_0x377bc9:0x564,_0x1334ad:0x5f1,_0x6a2703:0x2a,_0x22cf1e:0xe5,_0x3d7ab8:0x74,_0x942cf7:0x165,_0x570470:0xc0,_0x45406e:0x71,_0x11fced:0x122,_0x1dbd3f:0x16,_0xc44105:0x122,_0x4bb50e:0x1f8,_0x530c71:0xdd,_0x45c7eb:0x4c8,_0x278ab0:0x566,_0x3bcf17:0x14b,_0x4e7093:0x23b,_0x56c369:0x756,_0x556425:0x81f,_0x58438d:0x116,_0x4c3346:0x601,_0x5a14bc:0x88,_0x1f9ff6:0x778,_0x14629c:0x2c,_0x552f0c:0x2b,_0x576521:0x5bc,_0x58b69a:0x738,_0x363353:0xe2,_0x3cb1d2:0xf7,_0x28276c:0xaa,_0x579682:0x5e,_0x5db27a:0x5fb,_0x17cf6b:0x2c,_0x319b04:0x570,_0x14eb54:0x65c,_0x38d1ac:0x633,_0x3d37d0:0x772,_0x99c66f:0x578,_0x181faf:0x9e,_0x55850d:0x594,_0x4e3f34:0x669,_0x2e8427:0x6f6,_0x2663c9:0x710,_0x3867f0:0x606,_0x50e0d1:0x722,_0x575418:0x68a,_0x188aee:0x54a,_0x160105:0x5d5,_0x208c11:0x6cd},_0x28381d={_0x469709:0x106};function _0x1334f0(_0x31cf90,_0x11e921,_0x245ada,_0x44836b){return _0x2fd7af(_0x44836b-0x53a,_0x11e921-0xdf,_0x31cf90,_0x44836b-0xe8);}const _0x13429d=_0x3d6ada[_0x48ebef(0x36c,_0x61f8db._0xb1054c,_0x61f8db._0x4d2b66,_0x61f8db._0x1443d0)](_0x12b905[_0x1334f0(_0x61f8db._0x4d6103,0x6c5,0x65e,_0x61f8db._0x29e9d2)]??process[_0x1334f0(_0x61f8db._0x3ed819,0x3de,_0x61f8db._0x2dea28,0x3f2)]()),_0x359141=(_0x12b905['allowedDirs']??[])[_0x1334f0(0x32f,0x4d9,0x34f,_0x61f8db._0x4844bd)](_0x4bddc1=>_0x3d6ada['resolve'](_0x4bddc1));function _0x48ebef(_0x5447d2,_0x5672d3,_0x3981d6,_0x1d4a0b){return _0x2fd7af(_0x5672d3-0x1ca,_0x5672d3-_0x28381d._0x469709,_0x1d4a0b,_0x1d4a0b-0x18b);}const _0x3dc467=_0x12b905[_0x1334f0(_0x61f8db._0x189baa,_0x61f8db._0x3584eb,0x2fd,0x3ae)]??0x64,_0x5cd634=_0x12b905[_0x1334f0(_0x61f8db._0x415f7e,0x3db,0x2e3,_0x61f8db._0x6bf422)]??_0x48ebef(_0x61f8db._0x48fa17,0x24a,0x231,0x355);return defineTool({'name':_0x5cd634,'description':'Search\x20for\x20a\x20regex\x20pattern\x20in\x20workspace\x20or\x20allowed\x20directory\x20file\x20contents.','inputSchema':{'type':_0x1334f0(_0x61f8db._0x3c4502,0x609,_0x61f8db._0x202fa1,0x558),'properties':{'pattern':{'type':_0x1334f0(_0x61f8db._0x5b8ef7,_0x61f8db._0x4a765c,0x4c6,0x3e0)},'path':{'type':_0x48ebef(0x155,_0x61f8db._0x2188e3,0x7b,_0x61f8db._0x4f7e49)},'include':{'type':'string'},'limit':{'type':'number'},'context':{'type':_0x48ebef(_0x61f8db._0x42b3c5,_0x61f8db._0x4fac47,0x140,_0x61f8db._0x14b556)}},'required':[_0x1334f0(0x2d6,0x378,0x430,0x3de)]},async *'execute'(_0x5a1a2e){const _0x10f7a5={_0x1181a9:0x185,_0x5479ca:0x4dc};function _0x2a1b6b(_0x3ee617,_0x31e08c,_0x3f7291,_0x7e106a){return _0x48ebef(_0x3ee617-0x98,_0x7e106a- -0x133,_0x3f7291-0x1a7,_0x3ee617);}if(_0x5a1a2e['pattern'][_0x2a1b6b(-_0xe78bf4._0xc62fb7,-0x144,_0xe78bf4._0x476173,-0x28)]()[_0x1dd8a6(_0xe78bf4._0x246eb2,0x77e,_0xe78bf4._0x4d8725,_0xe78bf4._0x4d68c0)]===0x0)throw new ToolExecutionError(_0x1dd8a6(0x56f,0x608,0x5da,0x620),{});function _0x1dd8a6(_0x405fb0,_0x21fe04,_0x2e705f,_0x107b61){return _0x48ebef(_0x405fb0-_0x10f7a5._0x1181a9,_0x2e705f-_0x10f7a5._0x5479ca,_0x2e705f-0x1c7,_0x107b61);}const _0x57b72d=resolveAllowedPath(_0x13429d,_0x359141,_0x5a1a2e['path']??'.'),_0x36ef72=await _0x33f009(_0x57b72d)[_0x1dd8a6(_0xe78bf4._0x62e748,0x4fa,0x532,_0xe78bf4._0x22f180)](()=>null),_0x40c9d8=_0x36ef72?.['isFile']()??![],_0x4c3d43=_0x36ef72?.[_0x2a1b6b(-_0xe78bf4._0x22a1d2,-_0xe78bf4._0x4935cb,-_0xe78bf4._0x56f8cd,-_0xe78bf4._0x50d8db)]()??![];if(!_0x40c9d8&&!_0x4c3d43)throw new ToolExecutionError(_0x1dd8a6(0x62d,_0xe78bf4._0x738e49,_0xe78bf4._0x466458,0x5c9)+(_0x5a1a2e[_0x2a1b6b(-0xa9,-_0xe78bf4._0x3adead,-0x12d,0x9)]??'.'),{'path':_0x5a1a2e[_0x1dd8a6(0x648,0x501,0x618,_0xe78bf4._0x4f3c70)]??'.'});const _0x342364=_0x5a1a2e[_0x2a1b6b(-0xd,-_0xe78bf4._0x3c94ce,-0xad,-_0xe78bf4._0x3f301c)]??_0x3dc467,_0x475ea4=Math[_0x1dd8a6(_0xe78bf4._0x12a02f,_0xe78bf4._0x1b2316,_0xe78bf4._0x30b8be,_0xe78bf4._0x465922)](0x1,Math[_0x1dd8a6(0x557,0x579,_0xe78bf4._0x1a5870,_0xe78bf4._0x4fd918)](_0x342364)),_0x378931=await search({'cwd':_0x4c3d43?_0x57b72d:_0x3d6ada[_0x2a1b6b(_0xe78bf4._0x140b1d,-_0xe78bf4._0x259ac9,-_0xe78bf4._0x12441e,_0xe78bf4._0x2d659d)](_0x57b72d),'pattern':_0x5a1a2e[_0x1dd8a6(_0xe78bf4._0x377bc9,_0xe78bf4._0x1334ad,0x54a,0x60e)],'glob':_0x4c3d43?_0x5a1a2e[_0x2a1b6b(-_0xe78bf4._0x6a2703,0xa3,_0xe78bf4._0x22cf1e,-0x36)]:void 0x0,'limit':_0x475ea4,'file':_0x40c9d8?_0x57b72d:void 0x0,'context':_0x5a1a2e[_0x2a1b6b(0x71,-_0xe78bf4._0x3d7ab8,_0xe78bf4._0x942cf7,_0xe78bf4._0x570470)]}),_0x54a72a=new Map();for(const _0x57f857 of _0x378931){if(!_0x54a72a['has'](_0x57f857[_0x2a1b6b(-0x14f,0x1a,-_0xe78bf4._0x45406e,-_0xe78bf4._0x11fced)])){const _0x280999=await _0x33f009(_0x57f857[_0x2a1b6b(-0xab,-0xa,-_0xe78bf4._0x1dbd3f,-_0xe78bf4._0xc44105)])[_0x2a1b6b(-_0xe78bf4._0x4bb50e,-0x1af,0x21,-_0xe78bf4._0x530c71)](()=>null);_0x54a72a[_0x1dd8a6(_0xe78bf4._0x45c7eb,_0xe78bf4._0x1334ad,_0xe78bf4._0x278ab0,0x684)](_0x57f857[_0x2a1b6b(-0x1ac,-0x17a,-_0xe78bf4._0x3bcf17,-0x122)],{'matches':[],'mtime':_0x280999?.[_0x1dd8a6(0x7df,0x6fc,0x6bf,0x5a9)]??0x0});}_0x54a72a['get'](_0x57f857[_0x2a1b6b(-0xba,-0x59,-_0xe78bf4._0x4e7093,-0x122)])?.[_0x1dd8a6(0x6a3,0x5ae,0x6a7,0x7d8)][_0x1dd8a6(0x688,_0xe78bf4._0x56c369,0x758,_0xe78bf4._0x556425)](_0x57f857);}const _0x27b4f1=[..._0x54a72a[_0x2a1b6b(-0xce,0x61,-_0xe78bf4._0x58438d,-0x4d)]()][_0x1dd8a6(0x746,_0xe78bf4._0x4c3346,0x6f2,0x76a)]((_0x3bc41d,_0x270f93)=>_0x270f93[0x1][_0x1dd8a6(0x6f4,0x584,0x5b5,0x544)]-_0x3bc41d[0x1][_0x2a1b6b(-0x1a1,-0xf4,0xa9,-0x5a)]),_0x93d091=_0x378931[_0x2a1b6b(-0x1ba,-0x11e,-0xda,-_0xe78bf4._0x5a14bc)](_0x53f2ac=>!_0x53f2ac[_0x1dd8a6(0x6ab,0x54c,0x56d,0x690)])[_0x1dd8a6(0x505,_0xe78bf4._0x1f9ff6,_0xe78bf4._0x4d8725,0x6f1)],_0x29be8e=_0x378931[_0x2a1b6b(_0xe78bf4._0x14629c,0xeb,_0xe78bf4._0x530c71,_0xe78bf4._0x552f0c)]>=_0x475ea4,_0x23d60d=_0x40c9d8?_0x3d6ada['dirname'](_0x57b72d):_0x57b72d;let _0x4ba769='';if(_0x378931[_0x1dd8a6(0x762,_0xe78bf4._0x576521,0x63a,_0xe78bf4._0x58b69a)]===0x0)_0x4ba769='No\x20matches\x20found\x20for\x20pattern:\x20'+_0x5a1a2e[_0x2a1b6b(-_0xe78bf4._0x363353,-_0xe78bf4._0x3cb1d2,-_0xe78bf4._0x28276c,-0xc5)];else{_0x4ba769=_0x2a1b6b(-_0xe78bf4._0x3bcf17,_0xe78bf4._0x28276c,-_0xe78bf4._0x579682,-0x7b)+_0x93d091+_0x1dd8a6(0x62d,0x55c,_0xe78bf4._0x5db27a,0x6bb)+(_0x93d091===0x1?'':'es')+'\x0a';for(const [_0x3d7e39,_0x416468]of _0x27b4f1){const _0x29e8f4=_0x40c9d8?_0x3d6ada[_0x2a1b6b(0x14,-_0xe78bf4._0x17cf6b,-_0xe78bf4._0xc62fb7,-0xf9)](_0x3d7e39):_0x3d6ada['relative'](_0x23d60d,_0x3d7e39);_0x4ba769+='\x0a'+_0x29e8f4+':\x0a';for(const _0x3f4a95 of _0x416468['matches']){const _0x1569c9=_0x3f4a95['lineText'][_0x1dd8a6(_0xe78bf4._0x319b04,_0xe78bf4._0x14eb54,0x63a,_0xe78bf4._0x38d1ac)]>MAX_LINE_LENGTH?_0x3f4a95['lineText'][_0x1dd8a6(0x644,_0xe78bf4._0x3d37d0,_0xe78bf4._0x14eb54,_0xe78bf4._0x99c66f)](0x0,MAX_LINE_LENGTH)+_0x2a1b6b(-0x10e,-0x113,0x71,-0x5b):_0x3f4a95[_0x2a1b6b(-0x13c,-_0xe78bf4._0x181faf,-0x158,-0x15)],_0x59cebc=_0x3f4a95[_0x1dd8a6(_0xe78bf4._0x55850d,_0xe78bf4._0x4e3f34,0x56d,0x556)]?'\x20\x20':'>\x20';_0x4ba769+=_0x59cebc+_0x1dd8a6(0x491,0x529,0x5b7,0x4e9)+_0x3f4a95[_0x2a1b6b(0x69,0x96,0x33,0x22)]+':\x20'+_0x1569c9+'\x0a';}}_0x29be8e&&(_0x4ba769+=_0x1dd8a6(0x7e9,_0xe78bf4._0x2e8427,0x6d5,0x624));}const _0x50afdd={'searchPath':_0x3d6ada[_0x1dd8a6(_0xe78bf4._0x2663c9,_0xe78bf4._0x3867f0,_0xe78bf4._0x50e0d1,_0xe78bf4._0x575418)](_0x13429d,_0x57b72d)||'.','pattern':_0x5a1a2e[_0x1dd8a6(0x4e4,0x5fc,_0xe78bf4._0x188aee,0x5b0)],'matchCount':_0x93d091,'fileCount':_0x54a72a['size'],'truncated':_0x29be8e};return _0x4c3d43&&_0x5a1a2e[_0x1dd8a6(0x65d,_0xe78bf4._0x160105,0x5d9,_0xe78bf4._0x208c11)]!==void 0x0&&(_0x50afdd['include']=_0x5a1a2e['include']),yield createToolOutput(_0x4ba769['trim'](),_0x50afdd),void 0x0;}});}import{readdir as _0x1568ea,readFile as _0x4c1550,stat as _0x4ed084}from'fs/promises';import*as _0x404970 from'path';import*as _0x21e8eb from'yaml';async function countTextLines(_0x37dacb){const _0x34ad38={_0x24457c:0x444,_0x4bc766:0x465,_0xf460a7:0x44c,_0x38305d:0x541,_0xa4ef3:0x50c},_0x30a0e6={_0x12dc99:0x161},_0x14a7cc={_0xa6241a:0x156};function _0xfb9b45(_0x1da7c,_0x1ff9b7,_0x2f23b2,_0x58b395){return _0x2fd7af(_0x58b395-0x4a8,_0x1ff9b7-0x57,_0x2f23b2,_0x58b395-_0x14a7cc._0xa6241a);}const _0x6d5b5f=await _0x4c1550(_0x37dacb)['catch'](()=>null);function _0x6da9c3(_0x1faeb8,_0x5599c6,_0x177547,_0x15391d){return _0x278b49(_0x1faeb8-0x1ec,_0x5599c6-_0x30a0e6._0x12dc99,_0x5599c6-0x3b,_0x15391d);}if(!_0x6d5b5f||isProbablyBinary(_0x6d5b5f))return void 0x0;return _0x6d5b5f['toString'](_0xfb9b45(0x565,0x4a2,0x532,_0x34ad38._0x24457c))[_0xfb9b45(_0x34ad38._0x4bc766,0x545,_0x34ad38._0xf460a7,0x562)](/\r?\n/)[_0xfb9b45(0x3ac,_0x34ad38._0x38305d,_0x34ad38._0xa4ef3,0x43c)];}function createLsTool(_0x453230={}){const _0x337f4b={_0x248e6c:0x282,_0x5430d9:0x2f5,_0x4c2397:0x1ba,_0x43dbd4:0x160,_0x5b2272:0x22b,_0x144ffe:0x1b3,_0xbff134:0x80,_0x4ca64b:0x288,_0x15b91e:0x11b,_0x2325fc:0x1e4,_0x12bf67:0x23b,_0x434c38:0x1b0},_0x2d8258={_0x5e9db8:0x634,_0x30a686:0x49d,_0x228f2a:0x5e9,_0x2effcc:0x569,_0x55b230:0x72f,_0x5b30f0:0x647,_0x381043:0x678,_0x42ff37:0x532,_0x278feb:0x5ff,_0x16e15c:0x560,_0x383800:0x600,_0x4c2582:0x710,_0x4a29c6:0x798,_0x5c8cd4:0x693,_0x2113d0:0x5d8,_0x452846:0x696,_0x32a926:0x6b4,_0xe3cc4b:0x630,_0x141ae9:0x7ab,_0x230ac7:0x6f7,_0x51c3bc:0x535,_0x4299d6:0x534,_0x588763:0x4ff,_0x275fb0:0x6b2,_0x46dd64:0x81a,_0x42a454:0x791,_0x5d77c4:0x517,_0x3f19c8:0x4a3,_0x4d441c:0x811,_0x170612:0x6f2,_0x2a6ddb:0x6f6,_0x1815a4:0x510,_0x147433:0x611,_0x1c0a90:0x53b,_0x2bde04:0x49c,_0x455b79:0x5c6,_0x471f37:0x647,_0x4d9976:0x6dd,_0x1a83a7:0x708,_0x1b6038:0x6dc,_0x145dd6:0x625,_0xa9ce22:0x566,_0x215293:0x443,_0x3124d8:0x4de,_0x2c590d:0x546,_0xb838a5:0x4cf,_0x183c6c:0x507,_0x38e317:0x487,_0x162579:0x75b,_0x18cebd:0x6c9,_0x4dd976:0x6c6,_0x42ef41:0x7b2,_0x17a584:0x671},_0x304ffd={_0x3c3ca9:0x115},_0x2b7f44={_0x3ccd07:0x30a,_0x495c88:0x71},_0x497ad5=_0x404970[_0x5de1c9(_0x337f4b._0x248e6c,_0x337f4b._0x5430d9,0x4ae,0x3af)](_0x453230['defaultCwd']??process['cwd']());function _0x5de1c9(_0x819eec,_0x2dea9b,_0x2612bd,_0x2438c1){return _0x2fd7af(_0x2438c1-_0x2b7f44._0x3ccd07,_0x2dea9b-0xbc,_0x2dea9b,_0x2438c1-_0x2b7f44._0x495c88);}function _0x217f14(_0x174a4a,_0x1e61c0,_0x1b17e6,_0x5c5c76){return _0x2fd7af(_0x5c5c76-0x1c6,_0x1e61c0-0x17b,_0x174a4a,_0x5c5c76-_0x304ffd._0x3c3ca9);}const _0x506808=(_0x453230['allowedDirs']??[])[_0x5de1c9(_0x337f4b._0x4c2397,_0x337f4b._0x43dbd4,0x296,_0x337f4b._0x5b2272)](_0x497c9d=>_0x404970[_0x5de1c9(0x391,0x436,0x422,0x3af)](_0x497c9d)),_0xb4d9e5=_0x453230[_0x5de1c9(_0x337f4b._0x144ffe,_0x337f4b._0xbff134,0x257,0x1b4)]??'Ls';return defineTool({'name':_0xb4d9e5,'description':_0x217f14(0x20a,_0x337f4b._0x4ca64b,0x314,0x223),'inputSchema':{'type':_0x217f14(_0x337f4b._0x4ca64b,_0x337f4b._0x15b91e,0xa2,_0x337f4b._0x2325fc),'properties':{'path':{'type':_0x5de1c9(0x1d2,0x23e,_0x337f4b._0x12bf67,_0x337f4b._0x434c38)},'limit':{'type':_0x5de1c9(0x32e,0x26a,0x4bf,0x384)}}},async *'execute'(_0x14447e){const _0x47da3b={_0x3b98d4:0x387},_0x20e84a={_0x2f32a:0x3d3},_0x16a483=_0x14447e[_0x1f9d19(_0x2d8258._0x5e9db8,0x74a,0x603,0x4c2)]??'.',_0x114df2=resolveAllowedPath(_0x497ad5,_0x506808,_0x16a483),_0xddeda4=await _0x4ed084(_0x114df2)[_0x288d3b(_0x2d8258._0x30a686,_0x2d8258._0x228f2a,0x68e,_0x2d8258._0x2effcc)](()=>null);if(!_0xddeda4?.['isDirectory']())throw new ToolExecutionError(_0x288d3b(_0x2d8258._0x55b230,_0x2d8258._0x5b30f0,0x7b9,0x6ee)+_0x16a483,{'path':_0x16a483});const _0x3adc5e=_0x14447e[_0x288d3b(0x641,_0x2d8258._0x381043,0x5cd,0x551)]??0x3e8,_0x1f0b57=Math[_0x288d3b(_0x2d8258._0x42ff37,0x599,_0x2d8258._0x278feb,0x525)](Math['max'](Math[_0x288d3b(_0x2d8258._0x16e15c,0x488,_0x2d8258._0x383800,0x544)](_0x3adc5e),0x1),0x2710),_0x1e4479=await _0x1568ea(_0x114df2),_0xf37538=[];for(const _0x47c9b2 of _0x1e4479[_0x288d3b(_0x2d8258._0x4c2582,0x644,_0x2d8258._0x4a29c6,_0x2d8258._0x5c8cd4)](0x0,_0x1f0b57)){const _0x492eb9=_0x404970[_0x288d3b(0x767,0x78b,_0x2d8258._0x2113d0,0x680)](_0x114df2,_0x47c9b2),_0x4a9b8c=await _0x4ed084(_0x492eb9)['catch'](()=>null);if(!_0x4a9b8c)continue;let _0xf19d3c=_0x288d3b(0x755,_0x2d8258._0x452846,0x70e,_0x2d8258._0x32a926);if(_0x4a9b8c[_0x288d3b(_0x2d8258._0xe3cc4b,_0x2d8258._0x141ae9,0x6f2,_0x2d8258._0x230ac7)]())_0xf19d3c=_0x288d3b(0x6c5,0x6e4,_0x2d8258._0x51c3bc,0x601);else{if(_0x4a9b8c['isDirectory']())_0xf19d3c=_0x1f9d19(0x599,_0x2d8258._0x4299d6,_0x2d8258._0x588763,0x5f7);else{if(_0x4a9b8c[_0x288d3b(0x747,0x88c,_0x2d8258._0x275fb0,0x79d)]())_0xf19d3c=_0x288d3b(0x6fc,0x6ad,_0x2d8258._0x46dd64,_0x2d8258._0x42a454);}}const _0x29d6c7={'name':_0x47c9b2,'type':_0xf19d3c,'size':_0x4a9b8c[_0x1f9d19(0x557,0x4ea,_0x2d8258._0x5d77c4,_0x2d8258._0x3f19c8)],'mtime':_0x4a9b8c[_0x288d3b(_0x2d8258._0x4d441c,0x758,_0x2d8258._0x170612,_0x2d8258._0x2a6ddb)],'mode':_0x4a9b8c[_0x1f9d19(_0x2d8258._0x1815a4,_0x2d8258._0x147433,0x51b,0x438)]},_0x1df233=_0xf19d3c==='file'?await countTextLines(_0x492eb9):void 0x0;if(_0x1df233!==void 0x0)_0x29d6c7[_0x288d3b(_0x2d8258._0x1c0a90,0x487,_0x2d8258._0x2bde04,_0x2d8258._0x455b79)]=_0x1df233;_0xf37538['push'](_0x29d6c7);}function _0x288d3b(_0x55b185,_0x590d24,_0x16513f,_0x11b848){return _0x5de1c9(_0x55b185-0x84,_0x590d24,_0x16513f-0x42,_0x11b848-_0x20e84a._0x2f32a);}_0xf37538[_0x1f9d19(_0x2d8258._0x471f37,0x5b7,_0x2d8258._0x4d9976,_0x2d8258._0x1a83a7)]((_0x3b6c5a,_0x4c1d63)=>_0x3b6c5a['name'][_0x1f9d19(0x79f,0x7d9,0x698,0x590)](_0x4c1d63['name']));const _0x96df9c={'path':_0x16a483,'total':_0xf37538[_0x288d3b(_0x2d8258._0x1b6038,0x77f,0x794,0x671)],'truncated':_0x1e4479[_0x1f9d19(0x4ee,0x6cc,_0x2d8258._0x145dd6,_0x2d8258._0xa9ce22)]>_0x1f0b57,'entries':_0xf37538};yield createToolOutput(_0x21e8eb[_0x288d3b(0x49b,_0x2d8258._0x215293,_0x2d8258._0x3124d8,0x556)](_0x96df9c,{'indent':0x2,'lineWidth':0x0})[_0x1f9d19(_0x2d8258._0x2c590d,_0x2d8258._0xb838a5,_0x2d8258._0x183c6c,_0x2d8258._0x38e317)](),{'path':_0x16a483,'total':_0xf37538[_0x1f9d19(_0x2d8258._0x162579,_0x2d8258._0x18cebd,_0x2d8258._0x145dd6,_0x2d8258._0x4dd976)],'truncated':_0x1e4479[_0x288d3b(0x635,_0x2d8258._0x42ef41,0x679,_0x2d8258._0x17a584)]>_0x1f0b57,'limit':_0x1f0b57,'entries':_0xf37538});function _0x1f9d19(_0x39b661,_0x12f3b8,_0x12232d,_0x2babe1){return _0x5de1c9(_0x39b661-0x2d,_0x2babe1,_0x12232d-0x108,_0x12232d-_0x47da3b._0x3b98d4);}return void 0x0;}});}import{stat as _0x3b02a1}from'fs/promises';import _0x391131 from'path';import{fileURLToPath as _0x27ebb5}from'url';function severityName(_0xdee562){const _0x15a0d0={_0x5881f1:0x6d7,_0x46faea:0x772,_0x5b8a59:0x731,_0x502e16:0x1dd},_0x553100={_0x436875:0x684,_0x49f243:0x16c},_0x183c25={_0x2d5e98:0x65,_0x29754a:0x195};function _0x4679d5(_0x475c04,_0x4ee727,_0x3f7675,_0x3af200){return _0x278b49(_0x475c04-0x11f,_0x4ee727-_0x183c25._0x2d5e98,_0x475c04-_0x183c25._0x29754a,_0x4ee727);}function _0x5dd6ba(_0x910218,_0x117f50,_0x5f2f1c,_0x52f9a1){return _0x2fd7af(_0x910218-_0x553100._0x436875,_0x117f50-_0x553100._0x49f243,_0x117f50,_0x52f9a1-0x14);}switch(_0xdee562){case 0x1:return'Error';case 0x2:return _0x5dd6ba(0x67a,_0x15a0d0._0x5881f1,_0x15a0d0._0x46faea,_0x15a0d0._0x5b8a59);case 0x3:return'Information';case 0x4:return _0x5dd6ba(0x5a9,0x687,0x68b,0x543);default:return _0x4679d5(_0x15a0d0._0x502e16,0x162,0x27d,0x197);}}function formatSingleHover(_0x2f41cc){const _0x15316c={_0x3d7603:0x34,_0xe4da59:0x15b,_0x2b2bda:0x191,_0x5f5d4a:0x74,_0x58a3dd:0x95,_0x4c21bf:0x1ba,_0x47d6fc:0x406,_0x175649:0x1a4,_0x3db400:0xf2,_0x156feb:0x7d,_0x175449:0x52f,_0x5cd174:0x53b,_0x4921b5:0xd1,_0x558adf:0x1af},_0x9a580b={_0x11c68b:0x47e,_0x38d896:0x10a,_0x184288:0x8d},_0x4f7dcc={_0x391a74:0xab};function _0x1675da(_0x5dd58d,_0x5645a6,_0x1fe3fc,_0x1b1cf7){return _0x2fd7af(_0x5645a6-_0x4f7dcc._0x391a74,_0x5645a6-0xa0,_0x1b1cf7,_0x1b1cf7-0x7a);}function _0x4b6499(_0x4eadd7,_0x3a1e0b,_0x53f427,_0x17c4bd){return _0x2fd7af(_0x4eadd7-_0x9a580b._0x11c68b,_0x3a1e0b-_0x9a580b._0x38d896,_0x3a1e0b,_0x17c4bd-_0x9a580b._0x184288);}const _0x92e5a4=_0x2f41cc['contents'];if(typeof _0x92e5a4==='string')return _0x92e5a4;if(Array['isArray'](_0x92e5a4))return _0x92e5a4[_0x1675da(-0x80,-_0x15316c._0x3d7603,-0x41,-_0x15316c._0xe4da59)](_0x16b604=>typeof _0x16b604===_0x4b6499(0x324,0x23d,0x2c0,0x2c2)?_0x16b604:_0x16b604['value'])[_0x1675da(-_0x15316c._0x2b2bda,-_0x15316c._0x5f5d4a,-_0x15316c._0x58a3dd,-_0x15316c._0x4c21bf)](Boolean)[_0x4b6499(0x421,_0x15316c._0x47d6fc,0x3a0,0x342)]('\x0a\x0a');if(_0x1675da(_0x15316c._0x175649,_0x15316c._0x3db400,0x7,_0x15316c._0x156feb)in _0x92e5a4)return _0x92e5a4['value'];return _0x92e5a4['language']?'```'+_0x92e5a4[_0x4b6499(0x50f,_0x15316c._0x175449,0x42c,_0x15316c._0x5cd174)]+'\x0a'+_0x92e5a4[_0x1675da(0x38,_0x15316c._0x4921b5,_0x15316c._0x558adf,0x44)]+'\x0a```':_0x92e5a4['value'];}function formatHover(_0x3c5afa){const _0x22c98e={_0x16e7e1:0x138,_0x5624f0:0x81,_0x288f6f:0x150,_0x113983:0x307,_0x39651d:0x217,_0x591e97:0x15f,_0x2b09ab:0x2f,_0x1c6650:0x10c},_0x4ee422={_0x516bf3:0x1da},_0x1335d6={_0x567eea:0x427,_0x44a568:0x1b9};function _0x2e8f4a(_0x4964f6,_0x472937,_0x3790dd,_0x2cdf45){return _0x2fd7af(_0x4964f6-_0x1335d6._0x567eea,_0x472937-_0x1335d6._0x44a568,_0x472937,_0x2cdf45-0x88);}if(_0x3c5afa[_0x4c6995(_0x22c98e._0x16e7e1,_0x22c98e._0x5624f0,_0x22c98e._0x288f6f,0x1fa)]===0x0)return _0x4c6995(_0x22c98e._0x113983,0x320,_0x22c98e._0x39651d,0x1f3);function _0x4c6995(_0x1f952f,_0x3dc90a,_0x1369ab,_0x1bc593){return _0x2fd7af(_0x1369ab-0x1bc,_0x3dc90a-0x1b9,_0x1f952f,_0x1bc593-_0x4ee422._0x516bf3);}return _0x3c5afa['map'](formatSingleHover)[_0x4c6995(0x193,0x11a,_0x22c98e._0x591e97,_0x22c98e._0x2b09ab)](_0x4c6995(_0x22c98e._0x1c6650,-0x5c,0x91,-0x60));}function locationPath(_0x272fbc){const _0x16d679={_0x27821d:0x3c2,_0x596f40:0x2f5,_0x2397f0:0x2eb,_0x5c8db0:0x5bb,_0x4bff12:0x59e,_0x1b4f02:0x6d9},_0x673d4b={_0x4d044d:0x86},_0x1e83f3={_0x32a78d:0x1cd,_0x4110c7:0x1bc,_0x506ac5:0x3b8};function _0x5daf4f(_0x5f5052,_0x5bbbad,_0x57f069,_0x51b578){return _0x278b49(_0x5f5052-_0x1e83f3._0x32a78d,_0x5bbbad-_0x1e83f3._0x4110c7,_0x51b578-_0x1e83f3._0x506ac5,_0x5f5052);}if(!_0x272fbc[_0x5daf4f(0x3bb,_0x16d679._0x27821d,_0x16d679._0x596f40,_0x16d679._0x2397f0)](_0x162b39(0x5f4,_0x16d679._0x5c8db0,_0x16d679._0x4bff12,_0x16d679._0x1b4f02)))return _0x272fbc;function _0x162b39(_0x2daa99,_0x4cc9cd,_0x19146e,_0x236fab){return _0x2fd7af(_0x2daa99-0x6e0,_0x4cc9cd-0x81,_0x4cc9cd,_0x236fab-_0x673d4b._0x4d044d);}return _0x27ebb5(_0x272fbc);}function formatLocations(_0x1f826a){const _0x5e229c={_0x1b96a8:0x639,_0x44ffb1:0x3fc,_0x2cff3c:0x391,_0x266008:0x3d8,_0x25b977:0x4db,_0x126f7e:0x437},_0x46d6ba={_0x519936:0x481,_0x255fe6:0x4a2,_0x47c2df:0x4ec},_0x52ab70={_0x1ed484:0x66,_0x4897c6:0xaf,_0x4673b8:0x45},_0x4530fa={_0x4cfcbb:0x2f},_0x4f869d={_0x6d01f4:0x1e0};function _0x4d1af1(_0x402cdb,_0x189e6b,_0x8b3f84,_0xa289fa){return _0x2fd7af(_0x8b3f84-0x470,_0x189e6b-_0x4f869d._0x6d01f4,_0x189e6b,_0xa289fa-0x5d);}function _0x2cf183(_0x3360bd,_0x448fbb,_0x29d190,_0x38921f){return _0x2fd7af(_0x38921f- -_0x4530fa._0x4cfcbb,_0x448fbb-0x43,_0x3360bd,_0x38921f-0xa1);}if(_0x1f826a['length']===0x0)return _0x4d1af1(_0x5e229c._0x1b96a8,0x469,0x4fc,0x5c6);return _0x1f826a[_0x4d1af1(0x263,_0x5e229c._0x44ffb1,_0x5e229c._0x2cff3c,_0x5e229c._0x266008)](_0x3d33ef=>{const _0x488cbe={_0x4d92de:0x9b};function _0x3092a8(_0x97c94f,_0x396237,_0x54573c,_0x40d68e){return _0x4d1af1(_0x97c94f-_0x52ab70._0x1ed484,_0x40d68e,_0x396237-_0x52ab70._0x4897c6,_0x40d68e-_0x52ab70._0x4673b8);}function _0x4961b8(_0x2fcb0c,_0x4d104d,_0x3aff01,_0x40d2c4){return _0x4d1af1(_0x2fcb0c-0x51,_0x2fcb0c,_0x3aff01-0x25,_0x40d2c4-_0x488cbe._0x4d92de);}const _0x106626=_0x3d33ef[_0x4961b8(_0x46d6ba._0x519936,0x53f,0x461,0x53a)][_0x3092a8(_0x46d6ba._0x255fe6,0x3aa,0x34e,_0x46d6ba._0x47c2df)];return locationPath(_0x3d33ef['uri'])+':'+(_0x106626['line']+0x1)+':'+(_0x106626['character']+0x1);})[_0x4d1af1(0x2cb,_0x5e229c._0x25b977,0x413,_0x5e229c._0x126f7e)]('\x0a');}function isDocumentSymbol(_0x43721f){const _0x51599d={_0x245f9b:0x577,_0x5dcd61:0x5b2},_0x1e89df={_0x17b414:0x5f5,_0x2b8840:0x16c};function _0x270c55(_0x5a94e5,_0x233b7e,_0x44a80e,_0x4bd61c){return _0x2fd7af(_0x233b7e-_0x1e89df._0x17b414,_0x233b7e-0x69,_0x44a80e,_0x4bd61c-_0x1e89df._0x2b8840);}return'range'in _0x43721f&&_0x270c55(0x629,_0x51599d._0x245f9b,0x68f,_0x51599d._0x5dcd61)in _0x43721f;}function formatSymbols(_0x34cc1f){const _0x491ffa={_0x5ea1dd:0x4e2,_0x290444:0x44c,_0x41c8dd:0x8a,_0x153622:0x23,_0x24f0b0:0x3d9,_0x339848:0x17d,_0x3e2d55:0x26,_0x23a02a:0x1ea},_0x34516f={_0x2b2697:0x7d,_0x5ae722:0x78,_0x3947b4:0x7c,_0xe91e22:0x70,_0xc0875:0x593,_0x32e73f:0x6d0,_0x327d88:0x14,_0x41a19d:0x129,_0x26c0f9:0xce,_0x5f32ab:0x153,_0x1b0a9e:0x5da,_0xbbb278:0x5e5,_0x4b5772:0x245,_0x59e10:0x1dc,_0x125542:0x93,_0x2957f6:0xb3,_0x3bcd4a:0x65,_0x531a34:0x7a,_0x298cd8:0x548,_0x5bb7e2:0x600,_0x4b7de1:0x4f5,_0x77eae1:0x51b,_0x453216:0x59a,_0x3457f5:0x455,_0x473ee3:0x14,_0x5c1d05:0x10f,_0x3cc9b7:0x45,_0x417d3a:0x12a,_0x5c4fb7:0x4c6,_0x366bfe:0x3ea,_0x45d657:0x4e8,_0x27b927:0x5a9},_0x2fad8d={_0x4b07ac:0x615,_0x5889aa:0xd9},_0x4d5c94={_0x34ab19:0x106},_0x24e3d5={_0x22e4bd:0x1a9,_0x4d04b0:0xc1,_0x3e101e:0x9d};if(_0x34cc1f[_0x361fed(0x50e,0x3b6,_0x491ffa._0x5ea1dd,_0x491ffa._0x290444)]===0x0)return _0x445ba9(-0xd1,-_0x491ffa._0x41c8dd,0x1b,-_0x491ffa._0x153622);function _0x445ba9(_0x4d4d8e,_0x3f5b02,_0x30bfc1,_0x33ffd4){return _0x278b49(_0x4d4d8e-_0x24e3d5._0x22e4bd,_0x3f5b02-_0x24e3d5._0x4d04b0,_0x4d4d8e- -_0x24e3d5._0x3e101e,_0x33ffd4);}function _0x361fed(_0xad4496,_0x33db85,_0x4a594d,_0x323eef){return _0x2fd7af(_0x323eef-0x4b8,_0x33db85-0x1a,_0xad4496,_0x323eef-_0x4d5c94._0x34ab19);}return _0x34cc1f[_0x361fed(0x48c,0x387,0x40e,_0x491ffa._0x24f0b0)](_0x2eba58=>{function _0x273260(_0x4be5b1,_0x46be24,_0x53bf5a,_0x528f6f){return _0x361fed(_0x53bf5a,_0x46be24-0xe,_0x53bf5a-0x155,_0x528f6f- -0x3de);}if(isDocumentSymbol(_0x2eba58))return _0x2eba58[_0x273260(-_0x34516f._0x2b2697,-_0x34516f._0x5ae722,-0x11c,-_0x34516f._0x3947b4)]+'\x20('+_0x2eba58['kind']+_0x273260(-0x2d,-0xbe,0x112,_0x34516f._0xe91e22)+(_0x2eba58[_0x26987f(_0x34516f._0xc0875,_0x34516f._0x32e73f,0x649,0x612)][_0x273260(-_0x34516f._0x327d88,-_0x34516f._0x41a19d,-_0x34516f._0x26c0f9,-0x9b)]['line']+0x1)+':'+(_0x2eba58['range'][_0x273260(-0x17d,-0xf2,-_0x34516f._0x5f32ab,-0x9b)][_0x26987f(_0x34516f._0x1b0a9e,0x6f2,0x531,_0x34516f._0xbbb278)]+0x1)+']';function _0x26987f(_0x1d189b,_0x503263,_0x170909,_0x324731){return _0x445ba9(_0x1d189b-_0x2fad8d._0x4b07ac,_0x503263-_0x2fad8d._0x5889aa,_0x170909-0x1de,_0x170909);}return _0x2eba58[_0x273260(-0x4e,0x81,0x27,-_0x34516f._0x3947b4)]+'\x20('+_0x2eba58[_0x273260(_0x34516f._0x4b5772,0x9b,_0x34516f._0x59e10,0x121)]+')\x20'+locationPath(_0x2eba58[_0x273260(-_0x34516f._0x125542,_0x34516f._0x2957f6,-_0x34516f._0x3bcd4a,_0x34516f._0x531a34)][_0x26987f(_0x34516f._0x298cd8,_0x34516f._0x5bb7e2,_0x34516f._0x4b7de1,_0x34516f._0x77eae1)])+':'+(_0x2eba58[_0x273260(0xca,_0x34516f._0x41a19d,0xe,0x7a)][_0x26987f(_0x34516f._0xc0875,0x659,_0x34516f._0x453216,0x568)][_0x26987f(0x452,_0x34516f._0x3457f5,0x53b,0x505)][_0x273260(0x97,_0x34516f._0x473ee3,0xc7,0xff)]+0x1)+':'+(_0x2eba58[_0x273260(0x39,_0x34516f._0x5c1d05,0x131,0x7a)][_0x273260(_0x34516f._0x3cc9b7,_0x34516f._0x417d3a,0x13c,0xa6)][_0x26987f(0x452,_0x34516f._0x5c4fb7,_0x34516f._0x366bfe,_0x34516f._0x45d657)][_0x26987f(0x5da,_0x34516f._0x27b927,0x6ba,0x4cb)]+0x1);})[_0x445ba9(-0xab,-_0x491ffa._0x339848,-_0x491ffa._0x3e2d55,-_0x491ffa._0x23a02a)]('\x0a');}function formatDiagnostics(_0x20626e){const _0x56f8fb={_0x557b2c:0x2ee,_0x4dd4fe:0x284,_0x532ecc:0x373,_0x4599cb:0x352,_0x646b42:0x2c2,_0x56d5f2:0x320,_0x514024:0x27b,_0x19db45:0x1bc,_0x2862f3:0x24c,_0x94c1f1:0x186},_0x584d9b={_0x249822:0x131,_0x1becbb:0x74,_0x58953e:0x22c},_0x3eff28={_0x1eaa82:0x193,_0x30a2e7:0x148},_0x2ee16c={_0x4f84e0:0x35a,_0x1a31c5:0xe1},_0xb3951a={_0xe60049:0x92,_0x33dca8:0xaf};function _0x5afb39(_0x49c2a7,_0x175056,_0x59cf7b,_0x5549da){return _0x278b49(_0x49c2a7-_0xb3951a._0xe60049,_0x175056-_0xb3951a._0x33dca8,_0x175056-0x262,_0x49c2a7);}if(_0x20626e[_0x42f585(_0x56f8fb._0x557b2c,_0x56f8fb._0x4dd4fe,_0x56f8fb._0x532ecc,_0x56f8fb._0x4599cb)]===0x0)return _0x5afb39(_0x56f8fb._0x646b42,0x259,0x329,_0x56f8fb._0x56d5f2);function _0x42f585(_0x2b9c2a,_0x56345a,_0x5948db,_0x4bcfa){return _0x2fd7af(_0x2b9c2a-_0x2ee16c._0x4f84e0,_0x56345a-_0x2ee16c._0x1a31c5,_0x5948db,_0x4bcfa-0x124);}return _0x20626e[_0x42f585(_0x56f8fb._0x514024,0x394,_0x56f8fb._0x19db45,_0x56f8fb._0x2862f3)](_0x57674d=>{const _0x52c5df=_0x57674d['range']['start'];function _0xba427f(_0x3ed481,_0x294a66,_0x1d2264,_0x2eb868){return _0x5afb39(_0x2eb868,_0x3ed481- -_0x3eff28._0x1eaa82,_0x1d2264-_0x3eff28._0x30a2e7,_0x2eb868-0x1e4);}return severityName(_0x57674d['severity'])+'\x20['+(_0x52c5df['line']+0x1)+':'+(_0x52c5df[_0xba427f(_0x584d9b._0x249822,_0x584d9b._0x1becbb,_0x584d9b._0x58953e,0x81)]+0x1)+']\x20'+_0x57674d['message'];})[_0x5afb39(_0x56f8fb._0x94c1f1,0x254,0x2dc,0x19d)]('\x0a');}function formatIncomingCalls(_0x3704d5){const _0x2777a7={_0x40968d:0x1da,_0x5dd14c:0xc5,_0x14774a:0x2d9,_0x2aa9a3:0xee,_0x1b5e43:0x167,_0x22ee86:0x293,_0x5b142d:0x306},_0xb42682={_0xecd718:0x63,_0x5b2df5:0x198,_0xb799f9:0x402};function _0x42f277(_0x58e8c5,_0x2a4ce6,_0x1958bf,_0x3b786b){return _0x278b49(_0x58e8c5-_0xb42682._0xecd718,_0x2a4ce6-_0xb42682._0x5b2df5,_0x58e8c5-_0xb42682._0xb799f9,_0x3b786b);}if(_0x3704d5[_0x2da678(_0x2777a7._0x40968d,_0x2777a7._0x5dd14c,_0x2777a7._0x14774a,_0x2777a7._0x2aa9a3)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x2da678(_0x48d9f5,_0x5cc3f8,_0x57e86c,_0x3df040){return _0x2fd7af(_0x48d9f5-0x246,_0x5cc3f8-0x6e,_0x3df040,_0x3df040-0x1f2);}return _0x3704d5[_0x2da678(_0x2777a7._0x1b5e43,0x11c,_0x2777a7._0x22ee86,0x19b)](_0x4d6928=>_0x4d6928[_0x2da678(0x276,0x2a4,0x1a4,0x35d)][_0x42f277(0x2fb,0x299,0x3f3,0x1e3)])[_0x42f277(0x3f4,0x355,_0x2777a7._0x5b142d,0x3d7)]('\x0a');}function formatOutgoingCalls(_0x2b0eca){const _0x3a89ba={_0x3ec428:0x465,_0x13f9be:0x3ff,_0x4ae024:0x59a,_0x304280:0x34a,_0x2538af:0x40e},_0x210186={_0x1bd8fb:0x5c},_0x55b9e1={_0x9accb7:0x122,_0x4cabb9:0x407};function _0x4b988b(_0x2275f5,_0x5b79fe,_0x8513ea,_0x3f24da){return _0x278b49(_0x2275f5-0x24,_0x5b79fe-_0x55b9e1._0x9accb7,_0x8513ea-_0x55b9e1._0x4cabb9,_0x3f24da);}function _0x74eeb9(_0x3fe0ff,_0x4e8c78,_0x4c16fe,_0x4183d1){return _0x278b49(_0x3fe0ff-_0x210186._0x1bd8fb,_0x4e8c78-0x1cd,_0x3fe0ff-0x482,_0x4c16fe);}if(_0x2b0eca[_0x74eeb9(_0x3a89ba._0x3ec428,0x58a,_0x3a89ba._0x13f9be,0x5a9)]===0x0)return _0x74eeb9(_0x3a89ba._0x4ae024,0x5d5,0x4d0,0x56e);return _0x2b0eca[_0x4b988b(_0x3a89ba._0x304280,_0x3a89ba._0x2538af,0x377,0x2c4)](_0x1bddb8=>_0x1bddb8['to']['name'])[_0x4b988b(0x4c3,0x392,0x3f9,0x453)]('\x0a');}function toStructured(_0x3a1791){const _0x8dc1a6={_0xcccdf4:0x388,_0x22bba0:0x327},_0x4df457={_0x2ca589:0x40d,_0x5672d5:0x1cc,_0x2b6a9c:0x116};function _0x29c260(_0x385e67,_0x4ef323,_0x3c3e53,_0x4b2d5d){return _0x2fd7af(_0x385e67-_0x4df457._0x2ca589,_0x4ef323-_0x4df457._0x5672d5,_0x4ef323,_0x4b2d5d-_0x4df457._0x2b6a9c);}return JSON[_0x29c260(0x42d,_0x8dc1a6._0xcccdf4,0x4d8,_0x8dc1a6._0x22bba0)](JSON['stringify'](_0x3a1791));}async function assertFile(_0x449f62){const _0x29745e={_0x144b8e:0x58a,_0x30d24a:0x100};function _0x4c8d57(_0x1ef590,_0x50300c,_0x2145a2,_0x376d5b){return _0x2fd7af(_0x50300c-_0x29745e._0x144b8e,_0x50300c-_0x29745e._0x30d24a,_0x1ef590,_0x376d5b-0x164);}const _0x21ef79=await _0x3b02a1(_0x449f62);function _0x49ae22(_0x5628d7,_0x47a272,_0x1fd49e,_0x5cd7f6){return _0x278b49(_0x5628d7-0xaf,_0x47a272-0x10b,_0x5cd7f6-0x6e,_0x47a272);}if(!_0x21ef79[_0x49ae22(-0x26,0x1a1,0x219,0xd7)]())throw new ToolExecutionError(_0x4c8d57(0x559,0x5e1,0x504,0x4c8)+_0x449f62,{'path':_0x449f62});}function validatePosition(_0x2a753c,_0x13b2d6){const _0x491a76={_0x32cbaf:0x19b,_0x4462bc:0xa8,_0x2886ef:0x14f,_0x126dc5:0x1b9},_0x3ceff1={_0x409888:0x1b,_0x527725:0x5f},_0x52a367={_0x54a26b:0xdb,_0x2aeec8:0x18a};function _0x1dd844(_0x51e545,_0x3b0bac,_0x1fb902,_0x94dc82){return _0x278b49(_0x51e545-_0x52a367._0x54a26b,_0x3b0bac-_0x52a367._0x2aeec8,_0x1fb902-0x5f6,_0x94dc82);}if(!Number[_0x1dd844(0x42a,0x55a,0x506,0x44b)](_0x2a753c)||_0x2a753c<0x1)throw new ToolExecutionError(_0x1e7d98(-_0x491a76._0x32cbaf,-0x1c5,-_0x491a76._0x4462bc,-0x5e),{'line':_0x2a753c});function _0x1e7d98(_0x41fcd3,_0x2624fd,_0x1d13e4,_0x15e2a2){return _0x278b49(_0x41fcd3-0x46,_0x2624fd-_0x3ceff1._0x409888,_0x41fcd3- -_0x3ceff1._0x527725,_0x2624fd);}if(!Number[_0x1e7d98(-_0x491a76._0x2886ef,-0x6d,-_0x491a76._0x126dc5,-0x6a)](_0x13b2d6)||_0x13b2d6<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x13b2d6});}function createLspTool(_0x591ebe={}){const _0x5c89cc={_0x1d8e82:0x7df,_0x2d3337:0x761,_0x1fca5b:0x7b1,_0x1d09d1:0x6a5,_0x14147a:0x6bd,_0x3a2436:0x63b,_0x47f9eb:0x559,_0x1b38fb:0x630,_0x2951fd:0x63c,_0xeeaa4b:0x6b8,_0x51a042:0x572,_0x5cee2c:0x673,_0x3fdaa1:0x754,_0x4187a2:0x72d,_0x2daf7c:0x46d,_0x8580d:0x4bf,_0x284c41:0x543,_0x1e8067:0x6cc,_0x9d1e27:0x602,_0x192412:0x467,_0x4f8049:0x37c,_0x2c612e:0x471,_0x54ddb1:0x6ae,_0x44db23:0x842,_0x43ff7d:0x707,_0xabb33:0x702,_0x4aacfb:0x737,_0x5dc7f1:0x4b0,_0xf775e3:0x46a,_0x576188:0x3ee,_0x49ad90:0x7c2,_0x32e9af:0x789,_0x29bb2a:0x67b,_0x14d121:0x67f,_0x5b40cf:0x355,_0x5d76b0:0x459,_0x47d33d:0x54b,_0x2f14a1:0x3dd,_0x485946:0x6a5,_0x2ab356:0x65d,_0xe022f:0x734,_0x2e3388:0x60f},_0x5799e0={_0x43d0eb:0x425,_0x37063f:0x55c,_0x3b2155:0x472,_0x43151e:0x66b,_0x2449af:0x63a,_0x1f93f2:0x5db,_0x1e29e2:0x325,_0x1ebebf:0x319,_0x58ac82:0x3b4,_0x4363c0:0x3d1,_0x41f16c:0x488,_0x241efe:0x4bf,_0x4c1fe3:0x405,_0x3bd8ef:0x2bc,_0x5bb5bc:0x3f6,_0x17e9cf:0x3ce,_0x5306a2:0x552,_0x5aa9bc:0x439,_0xb6641c:0x19f,_0x4e83c8:0x301,_0x1f9764:0x35a,_0x9416fd:0x35c,_0x2152d1:0x50e,_0x385a78:0x43a,_0x25bfb4:0x468,_0x4da16a:0x14e,_0x428da1:0x227,_0x2ea305:0x230,_0x3dc90c:0x230,_0x4cc0ab:0x1d2,_0x522eda:0x2d5,_0x57363b:0x1d8,_0x11d2ff:0xfb,_0x183441:0x2d7,_0x790c1d:0x4ce,_0x2fba74:0x695,_0x1fbd68:0x598,_0x2ecc51:0x50b,_0xc6890b:0x5a5,_0x11c501:0x152,_0x105d90:0x36b,_0x57f9f2:0x254,_0x557588:0x23d,_0xed146c:0x5b4,_0x48426b:0x5ff,_0x571dbe:0x2cd,_0x1d9fc7:0x450,_0x3fc9c0:0x493,_0x29e1d5:0x3aa,_0x2c9f71:0x453,_0x12ff6a:0x451,_0x8f2695:0x3d3,_0x1a6a02:0x37d,_0x497e7f:0x4ab,_0x58faeb:0x467,_0x40a4eb:0x507,_0x3b70fa:0x523,_0x3ff1e9:0x4ca,_0xc9cf9:0x566,_0x461fe4:0x537,_0x57ce84:0x5f9},_0x4fad44={_0x12095b:0x178,_0x39807c:0x575},_0xb808d5={_0x167659:0x5c},_0x1e21ad=_0x391131[_0x3a1352(_0x5c89cc._0x1d8e82,_0x5c89cc._0x2d3337,_0x5c89cc._0x1fca5b,0x7b4)](_0x591ebe[_0x3a1352(_0x5c89cc._0x1d09d1,_0x5c89cc._0x14147a,0x716,0x762)]??process['cwd']()),_0x757149=(_0x591ebe[_0x4e31d8(0x61b,0x711,0x637,_0x5c89cc._0x3a2436)]??[])[_0x3a1352(_0x5c89cc._0x47f9eb,0x579,0x625,_0x5c89cc._0x1b38fb)](_0x258215=>_0x391131[_0x3a1352(0x737,0x8c1,0x88d,0x7b4)](_0x258215));function _0x3a1352(_0xa5a084,_0xaff8ec,_0x459800,_0xce4742){return _0x2fd7af(_0xce4742-0x70f,_0xaff8ec-_0xb808d5._0x167659,_0xa5a084,_0xce4742-0x1cc);}function _0x4e31d8(_0x8f9b28,_0x4cf203,_0x336a4b,_0x20cd84){return _0x278b49(_0x8f9b28-0xe5,_0x4cf203-_0x4fad44._0x12095b,_0x336a4b-_0x4fad44._0x39807c,_0x4cf203);}const _0x26e17b=_0x591ebe['name']??_0x4e31d8(_0x5c89cc._0x2951fd,_0x5c89cc._0xeeaa4b,0x58d,0x458);return defineTool({'name':_0x26e17b,'description':_0x3a1352(_0x5c89cc._0x51a042,0x6b3,_0x5c89cc._0x5cee2c,0x617),'inputSchema':{'type':_0x3a1352(0x6b8,_0x5c89cc._0x3fdaa1,0x6d3,_0x5c89cc._0x4187a2),'properties':{'operation':{'type':'string','enum':[_0x4e31d8(0x393,0x4cb,0x421,_0x5c89cc._0x2daf7c),'findReferences',_0x4e31d8(0x58c,_0x5c89cc._0x8580d,_0x5c89cc._0x284c41,0x620),_0x3a1352(_0x5c89cc._0x1e8067,_0x5c89cc._0x9d1e27,_0x5c89cc._0x192412,0x5a2),_0x4e31d8(0x356,_0x5c89cc._0x4f8049,_0x5c89cc._0x2c612e,0x45f),'goToImplementation',_0x3a1352(_0x5c89cc._0x54ddb1,_0x5c89cc._0x44db23,_0x5c89cc._0x43ff7d,_0x5c89cc._0xabb33),_0x3a1352(_0x5c89cc._0x4aacfb,0x861,0x7ec,0x796),'outgoingCalls','diagnostics']},'filePath':{'type':_0x4e31d8(0x5ad,_0x5c89cc._0x5dc7f1,_0x5c89cc._0xf775e3,_0x5c89cc._0x576188)},'line':{'type':_0x3a1352(0x7b9,_0x5c89cc._0x49ad90,0x7a0,_0x5c89cc._0x32e9af)},'character':{'type':_0x4e31d8(_0x5c89cc._0x29bb2a,0x531,0x63e,_0x5c89cc._0x14d121)},'query':{'type':_0x4e31d8(_0x5c89cc._0x5b40cf,0x56b,0x46a,0x599)}},'required':[_0x3a1352(0x7d7,0x843,0x7fb,0x700),_0x4e31d8(_0x5c89cc._0x5d76b0,_0x5c89cc._0x47d33d,0x40b,_0x5c89cc._0x2f14a1),_0x3a1352(0x776,_0x5c89cc._0x485946,_0x5c89cc._0x2ab356,_0x5c89cc._0xe022f),_0x4e31d8(0x4c5,0x4bf,0x5d7,_0x5c89cc._0x2e3388)]},async *'execute'(_0x265ab6){const _0x55de7e={_0x5d0282:0x1a0},_0x57bda7={_0x574fd7:0x1a5,_0x17da4b:0x108};function _0x42f5dd(_0x5de0f2,_0x135170,_0x82e4f5,_0x203780){return _0x3a1352(_0x135170,_0x135170-_0x57bda7._0x574fd7,_0x82e4f5-_0x57bda7._0x17da4b,_0x203780- -0x32f);}const _0x501c41=_0x591ebe['lspService'];if(!_0x501c41)throw new ToolExecutionError(_0x38f509(_0x5799e0._0x43d0eb,_0x5799e0._0x37063f,0x436,_0x5799e0._0x3b2155));if(!_0x501c41[_0x38f509(_0x5799e0._0x43151e,_0x5799e0._0x2449af,_0x5799e0._0x1f93f2,0x53f)]())throw new ToolExecutionError(_0x42f5dd(_0x5799e0._0x1e29e2,0x52b,_0x5799e0._0x1ebebf,0x444));const _0x152a47=_0x265ab6[_0x42f5dd(0x35a,_0x5799e0._0x58ac82,0x28d,_0x5799e0._0x4363c0)];validatePosition(_0x265ab6[_0x42f5dd(_0x5799e0._0x41f16c,0x4d9,_0x5799e0._0x241efe,_0x5799e0._0x4c1fe3)],_0x265ab6['character']);if(_0x152a47==='workspaceSymbol'){if(!_0x265ab6['query']?.[_0x42f5dd(_0x5799e0._0x3bd8ef,_0x5799e0._0x5bb5bc,_0x5799e0._0x17e9cf,0x321)]())throw new ToolExecutionError(_0x38f509(_0x5799e0._0x5306a2,0x52d,_0x5799e0._0x5aa9bc,0x3dc));const _0x240d38=await _0x501c41['workspaceSymbol'](_0x265ab6[_0x42f5dd(_0x5799e0._0xb6641c,_0x5799e0._0x4e83c8,_0x5799e0._0x1f9764,0x2c3)]['trim']());return yield createToolOutput(formatSymbols(_0x240d38),{'operation':_0x152a47,'query':_0x265ab6[_0x38f509(_0x5799e0._0x9416fd,_0x5799e0._0x2152d1,_0x5799e0._0x385a78,_0x5799e0._0x25bfb4)],'symbols':_0x240d38}),void 0x0;}const _0x198459=resolveAllowedPath(_0x1e21ad,_0x757149,_0x265ab6[_0x42f5dd(0x356,_0x5799e0._0x4da16a,0x1b3,_0x5799e0._0x428da1)]);await assertFile(_0x198459);if(!await _0x501c41[_0x42f5dd(_0x5799e0._0x2ea305,0x36a,_0x5799e0._0x3dc90c,0x33f)](_0x198459))throw new ToolExecutionError(_0x42f5dd(_0x5799e0._0x4cc0ab,_0x5799e0._0x522eda,_0x5799e0._0x57363b,0x24b)+_0x265ab6[_0x42f5dd(_0x5799e0._0x11d2ff,0x36a,0x1f1,0x227)],{'filePath':_0x265ab6['filePath']});function _0x38f509(_0x154044,_0x1d7ba4,_0x49bde9,_0x77617e){return _0x3a1352(_0x154044,_0x1d7ba4-0x1a8,_0x49bde9-_0x55de7e._0x5d0282,_0x49bde9- -0x1b8);}await _0x501c41[_0x38f509(0x40b,_0x5799e0._0x183441,0x3c0,_0x5799e0._0x790c1d)](_0x198459,!![]);const _0x2b6d5b={'file':_0x198459,'line':_0x265ab6['line']-0x1,'character':_0x265ab6[_0x38f509(_0x5799e0._0x2fba74,0x607,0x56a,0x51d)]-0x1};switch(_0x152a47){case'hover':{const _0x3f121c=await _0x501c41['hover'](_0x2b6d5b);return yield createToolOutput(formatHover(_0x3f121c),{'operation':_0x152a47,'filePath':_0x198459,'hover':_0x3f121c}),void 0x0;}case _0x38f509(_0x5799e0._0x1fbd68,_0x5799e0._0x2ecc51,_0x5799e0._0xc6890b,0x640):{const _0x1b2f83=await _0x501c41[_0x42f5dd(0x136,0x116,_0x5799e0._0x11c501,0x252)](_0x198459);return yield createToolOutput(formatDiagnostics(_0x1b2f83),{'operation':_0x152a47,'filePath':_0x198459,'diagnostics':_0x1b2f83}),void 0x0;}case _0x42f5dd(_0x5799e0._0x105d90,_0x5799e0._0x57f9f2,0x2ba,_0x5799e0._0x557588):{const _0x2be1bf=await _0x501c41[_0x38f509(0x45f,_0x5799e0._0xed146c,0x483,0x395)](_0x2b6d5b);return yield createToolOutput(formatLocations(_0x2be1bf),{'operation':_0x152a47,'filePath':_0x198459,'locations':_0x2be1bf}),void 0x0;}case _0x38f509(0x683,_0x5799e0._0x5306a2,_0x5799e0._0x48426b,0x6d9):{const _0x4a1d33=await _0x501c41['references'](_0x2b6d5b);return yield createToolOutput(formatLocations(_0x4a1d33),{'operation':_0x152a47,'filePath':_0x198459,'locations':_0x4a1d33}),void 0x0;}case'goToImplementation':{const _0x1f3736=await _0x501c41['implementation'](_0x2b6d5b);return yield createToolOutput(formatLocations(_0x1f3736),{'operation':_0x152a47,'filePath':_0x198459,'locations':_0x1f3736}),void 0x0;}case _0x38f509(_0x5799e0._0x571dbe,_0x5799e0._0x1d9fc7,0x3ea,_0x5799e0._0x3fc9c0):{const _0x260e62=await _0x501c41[_0x38f509(_0x5799e0._0x29e1d5,_0x5799e0._0x2c9f71,0x3ea,0x457)](_0x198459);return yield createToolOutput(formatSymbols(_0x260e62),{'operation':_0x152a47,'filePath':_0x198459,'symbols':_0x260e62}),void 0x0;}case _0x42f5dd(0x4c9,0x336,_0x5799e0._0x12ff6a,_0x5799e0._0x8f2695):{const _0x516c22=await _0x501c41['prepareCallHierarchy'](_0x2b6d5b);return yield createToolOutput(formatSymbols(_0x516c22),{'operation':_0x152a47,'filePath':_0x198459,'symbols':toStructured(_0x516c22)}),void 0x0;}case _0x42f5dd(_0x5799e0._0x1a6a02,_0x5799e0._0x497e7f,0x328,_0x5799e0._0x58faeb):{const _0x37de7a=await _0x501c41[_0x42f5dd(_0x5799e0._0x40a4eb,0x3b9,0x485,_0x5799e0._0x58faeb)](_0x2b6d5b);return yield createToolOutput(formatIncomingCalls(_0x37de7a),{'operation':_0x152a47,'filePath':_0x198459,'calls':toStructured(_0x37de7a)}),void 0x0;}case _0x38f509(0x44f,_0x5799e0._0x3b70fa,_0x5799e0._0x3ff1e9,_0x5799e0._0xc9cf9):{const _0x217e6b=await _0x501c41[_0x38f509(_0x5799e0._0x461fe4,_0x5799e0._0x57ce84,0x4ca,0x3be)](_0x2b6d5b);return yield createToolOutput(formatOutgoingCalls(_0x217e6b),{'operation':_0x152a47,'filePath':_0x198459,'calls':toStructured(_0x217e6b)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x3c12cd,readFile as _0x421ad8,writeFile as _0x4d132b}from'fs/promises';import{join as _0x3c365d}from'path';function sanitizeStorageKey(_0x3ed46){const _0x5ad992={_0x1068a1:0x97,_0x518a2a:0x191,_0x1d8b2a:0x1b0},_0x5e46b9={_0x25d677:0x601,_0x3e3c44:0x10b},_0x546d01={_0x28b8ef:0x11f,_0x126f06:0x38,_0x5cc539:0x81};function _0x1e33a4(_0x1928b6,_0x19a62c,_0x39b7c6,_0x55c026){return _0x2fd7af(_0x39b7c6-_0x546d01._0x28b8ef,_0x19a62c-_0x546d01._0x126f06,_0x55c026,_0x55c026-_0x546d01._0x5cc539);}function _0x1c9fa2(_0xad2181,_0x1f7e6d,_0x38a650,_0x4aa6f9){return _0x2fd7af(_0x1f7e6d-_0x5e46b9._0x25d677,_0x1f7e6d-_0x5e46b9._0x3e3c44,_0x38a650,_0x4aa6f9-0x198);}return _0x3ed46[_0x1e33a4(-0xd4,-0xa9,-_0x5ad992._0x1068a1,-0xcd)](/[^a-zA-Z0-9_]+/g,'_')[_0x1e33a4(-_0x5ad992._0x518a2a,-_0x5ad992._0x1d8b2a,-0x97,-0x168)](/^_+|_+$/g,'')||'server';}function storagePath(_0x35fefd){const _0x240a6f={_0x1d2237:0x6d2,_0x3c3253:0x6c0,_0x4524e9:0x6a1,_0xd98dc3:0x62d,_0x1b36cb:0x60a,_0x3ab095:0x629,_0x394177:0x708,_0x342f3c:0x598,_0x3c4aa0:0x6d,_0xa1859b:0x673},_0x132850={_0x186629:0xaf,_0x1d0f37:0x108},_0x3ef0ed={_0x34b63c:0x708,_0x360e39:0x3e,_0x1b349c:0x6c};function _0xfbf606(_0x40b6c0,_0x2f5b29,_0x2baec8,_0x14a480){return _0x2fd7af(_0x14a480-_0x3ef0ed._0x34b63c,_0x2f5b29-_0x3ef0ed._0x360e39,_0x2f5b29,_0x14a480-_0x3ef0ed._0x1b349c);}function _0x1013c3(_0x5a06cd,_0x4aa61a,_0x4b5fb2,_0x2042cf){return _0x2fd7af(_0x4b5fb2-0x9,_0x4aa61a-_0x132850._0x186629,_0x4aa61a,_0x2042cf-_0x132850._0x1d0f37);}const _0x53ae8d=sanitizeStorageKey(_0x35fefd[_0xfbf606(0x73d,_0x240a6f._0x1d2237,_0x240a6f._0x3c3253,0x69d)][_0xfbf606(_0x240a6f._0x4524e9,_0x240a6f._0xd98dc3,0x532,_0x240a6f._0x1b36cb)]?.[_0xfbf606(_0x240a6f._0x3ab095,_0x240a6f._0x394177,_0x240a6f._0x342f3c,0x6c6)]??_0x35fefd[_0x1013c3(-0x69,0xa5,0x8b,-_0x240a6f._0x3c4aa0)]);return _0x3c365d(_0x35fefd['storageDir'],_0x53ae8d+_0xfbf606(0x5d5,0x6c7,_0x240a6f._0xa1859b,0x6a9));}async function readStore(_0x4c57af){const _0xfa951b={_0x371d8c:0x73,_0x2de1f2:0xa0,_0x3f6e1a:0xf2,_0x5e9ae1:0x268,_0x16debd:0x1d3,_0x46886e:0x95},_0x2310d0={_0x4d1d63:0x15a};function _0x50378e(_0x3a3663,_0x2789e2,_0x7c331d,_0xa1f1fd){return _0x2fd7af(_0x7c331d-0x200,_0x2789e2-_0x2310d0._0x4d1d63,_0xa1f1fd,_0xa1f1fd-0xaf);}function _0x22a9de(_0xaf2159,_0x1d26fd,_0x39b43,_0x3c20c3){return _0x278b49(_0xaf2159-0x140,_0x1d26fd-0x99,_0x1d26fd-0x7e,_0x3c20c3);}try{return JSON[_0x22a9de(0x139,0xed,0x20b,0xe9)](await _0x421ad8(_0x4c57af,_0x22a9de(0xd2,0x69,-0x97,-_0xfa951b._0x371d8c)));}catch(_0x281890){if(_0x281890 instanceof Error&&_0x22a9de(0xae,_0xfa951b._0x2de1f2,_0xfa951b._0x3f6e1a,-0x5d)in _0x281890&&_0x281890[_0x50378e(0xb8,_0xfa951b._0x5e9ae1,_0xfa951b._0x16debd,0x266)]===_0x22a9de(-0x133,-0x9b,_0xfa951b._0x46886e,-0x102))return{};throw _0x281890;}}async function writeStore(_0x1ca409,_0x5e0f8b){const _0x5b2b65={_0xf3247:0x468,_0x18c46e:0x354},_0xeef594={_0x5aaabd:0xb8};function _0x19c933(_0x3f9f6d,_0x386bb2,_0x483351,_0x59ec11){return _0x278b49(_0x3f9f6d-_0xeef594._0x5aaabd,_0x386bb2-0x66,_0x3f9f6d-0x5a0,_0x59ec11);}await _0x3c12cd(_0x3c365d(_0x1ca409,'..'),{'recursive':!![]}),await _0x4d132b(_0x1ca409,JSON[_0x19c933(_0x5b2b65._0xf3247,0x378,_0x5b2b65._0x18c46e,0x59e)](_0x5e0f8b,null,0x2),'utf8');}async function updateStore(_0x5716c7,_0x1a7d94){const _0x36b699=await readStore(_0x5716c7);_0x1a7d94(_0x36b699),await writeStore(_0x5716c7,_0x36b699);}function createMcpOAuthProvider(_0x31deda){const _0x566f20={_0x265e24:0x41,_0x35c63f:0x14d,_0x4e3e3b:0x17d,_0x1b4d92:0x238,_0xd0b08b:0x180,_0x17bbe5:0x17f,_0xf20856:0x1f0,_0xadaa00:0x20f,_0x46bd86:0x2a9,_0x19b31b:0x27b,_0x53a8aa:0x2f0,_0x1bf487:0x37d,_0x42115a:0x27d,_0x2659c3:0x19f,_0x3280a5:0x1ac,_0x1815c2:0x22a,_0x445126:0x175,_0x5db6f8:0xf0,_0x1e3a23:0x16c},_0x52520f={_0x55a1dd:0x5f,_0x4f63cd:0x48,_0x367c02:0x9a},_0x3e1537={_0x14f741:0x15b},_0x40ed4e={_0x2fb753:0x6a2,_0xfbb85c:0x666,_0x3cd546:0x16a,_0x44947a:0x28e,_0x7b4831:0x53b,_0x3e66f8:0x518,_0x1fe711:0x2d9,_0x540d7b:0x3fe,_0xd5cf4:0x246,_0x3d19a5:0x61c,_0xf163b9:0x5f2,_0x8c6f1d:0x671,_0xfe68de:0x762},_0x2a1ed7={_0x1633e4:0x20c,_0x5e435e:0x201,_0x43caea:0x224,_0x2582f9:0x17f},_0x54def4={_0x11fc4e:0x4b1,_0x717ad8:0x193},_0x4a418a={_0x274e1b:0x480,_0x5c3acf:0x3f1,_0x430e25:0x3b4},_0x1fcfb5={_0xd345e7:0xc2,_0x48356c:0x27b,_0x74a72b:0x302},_0x52d71b={_0x1dc397:0xc7,_0x4836c8:0x2c},_0x41fc87={_0x8d16a9:0x46a},_0x337a2e={_0x4aa7b6:0x68,_0x180422:0x1d4},_0x5d97ed={_0x7b067:0xdf},_0x400a2e={_0x3b0674:0x247,_0x377fc3:0x317},_0x43a709={_0x42195a:0x1d4,_0x5510e0:0x6a},_0x39c953={_0x524386:0x10d},_0x586915=storagePath(_0x31deda);function _0x28f318(_0x10cf22,_0x15dcfb,_0x5badd8,_0x20c4cf){return _0x278b49(_0x10cf22-_0x39c953._0x524386,_0x15dcfb-0x110,_0x10cf22-0x18e,_0x5badd8);}const _0x18b961=_0x31deda['config'][_0x28f318(0xdf,-_0x566f20._0x265e24,_0x566f20._0x35c63f,_0x566f20._0x4e3e3b)]?.[_0x28f318(0x29b,0x1f7,_0x566f20._0x1b4d92,0x317)]?.[_0x28f318(_0x566f20._0xd0b08b,0xc4,_0x566f20._0x17bbe5,_0x566f20._0xf20856)]('\x20');function _0x11e567(_0x5e65b1,_0x1c7d47,_0x499add,_0x3c06ba){return _0x2fd7af(_0x5e65b1-_0x43a709._0x42195a,_0x1c7d47-_0x43a709._0x5510e0,_0x1c7d47,_0x3c06ba-0x1bc);}const _0x2d4b19={'client_name':_0x28f318(_0x566f20._0xadaa00,0xd4,_0x566f20._0x46bd86,0x265),'redirect_uris':[_0x31deda['callbackUrl']],'grant_types':[_0x11e567(_0x566f20._0x19b31b,0x16c,_0x566f20._0x53a8aa,_0x566f20._0x1bf487),'refresh_token'],'response_types':[_0x28f318(0x1b0,0x186,0x1cf,_0x566f20._0x42115a)],'token_endpoint_auth_method':_0x11e567(0x1c9,_0x566f20._0x2659c3,0x11f,_0x566f20._0x3280a5),..._0x18b961?{'scope':_0x18b961}:{}};return{'clientMetadataUrl':_0x31deda[_0x11e567(0x169,0x2e,0x16f,_0x566f20._0x1815c2)]['oauth']?.[_0x28f318(0x221,_0x566f20._0x445126,_0x566f20._0x5db6f8,_0x566f20._0x1e3a23)],get 'redirectUrl'(){const _0x2387ae={_0x596afb:0x12b,_0x4b2a86:0xc4,_0x1525e1:0x1b0};function _0x2b4a02(_0x17e172,_0x41989a,_0x4e7c4c,_0x222f9b){return _0x11e567(_0x17e172-_0x2387ae._0x596afb,_0x4e7c4c,_0x4e7c4c-_0x2387ae._0x4b2a86,_0x222f9b-_0x2387ae._0x1525e1);}return _0x31deda[_0x2b4a02(0x309,_0x400a2e._0x3b0674,_0x400a2e._0x377fc3,0x335)];},get 'clientMetadata'(){return _0x2d4b19;},async 'state'(){const _0x1b2520={_0x290aeb:0x62e},_0x4c29c4={_0x4c81fd:0xdc,_0xfaa5a8:0x191,_0x2b1d2a:0x155},_0x24ac1c={_0xe9589c:0x269,_0x1cc6d4:0x1f2};function _0x489ddb(_0x576d48,_0x3d9f50,_0x694ea2,_0x33fcf3){return _0x11e567(_0x33fcf3-_0x24ac1c._0xe9589c,_0x694ea2,_0x694ea2-_0x24ac1c._0x1cc6d4,_0x33fcf3-0x163);}const _0x765cf6=await readStore(_0x586915);if(_0x765cf6[_0x489ddb(0x4f1,0x3f9,0x4cd,0x3b5)])return _0x765cf6[_0x176ddf(_0x337a2e._0x4aa7b6,-0x51,-0xab,-_0x337a2e._0x180422)];const _0x412bb5=randomUUID();function _0x176ddf(_0x11e995,_0x240ee2,_0x2bd15b,_0x4eb904){return _0x11e567(_0x2bd15b- -0x1f7,_0x240ee2,_0x2bd15b-0xca,_0x4eb904-_0x5d97ed._0x7b067);}return await updateStore(_0x586915,_0x25c30f=>{function _0x457bb6(_0x3ca8f4,_0x34aa11,_0x39f725,_0x4789c6){return _0x489ddb(_0x3ca8f4-_0x4c29c4._0x4c81fd,_0x34aa11-_0x4c29c4._0xfaa5a8,_0x4789c6,_0x3ca8f4-_0x4c29c4._0x2b1d2a);}_0x25c30f[_0x457bb6(0x50a,_0x1b2520._0x290aeb,0x444,0x57d)]=_0x412bb5;}),_0x412bb5;},async 'clientInformation'(){function _0x2a8ca3(_0x4f8fe9,_0x3a5228,_0x5a6917,_0x58ae8c){return _0x11e567(_0x4f8fe9-0x235,_0x58ae8c,_0x5a6917-0xf5,_0x58ae8c-0x35);}return(await readStore(_0x586915))[_0x2a8ca3(0x491,0x47e,_0x41fc87._0x8d16a9,0x513)];},async 'saveClientInformation'(_0x3726ad){await updateStore(_0x586915,_0x2eea6f=>{function _0x47e52c(_0x227536,_0x306f50,_0xb89456,_0x2fb4c3){return _0x16a6(_0x2fb4c3- -0x391,_0x227536);}_0x2eea6f[_0x47e52c(0x14d,-0x109,-_0x52d71b._0x1dc397,_0x52d71b._0x4836c8)]=_0x3726ad;});},async 'tokens'(){const _0x434513={_0x53c53c:0x281};function _0x540de9(_0x587a02,_0x40bb4b,_0x8c994e,_0x295e19){return _0x11e567(_0x40bb4b- -_0x434513._0x53c53c,_0x587a02,_0x8c994e-0xf9,_0x295e19-0x3c);}return(await readStore(_0x586915))[_0x540de9(-_0x1fcfb5._0xd345e7,-0x1f3,-_0x1fcfb5._0x48356c,-_0x1fcfb5._0x74a72b)];},async 'saveTokens'(_0x36ef83){await updateStore(_0x586915,_0x113b16=>{const _0x3fca18={_0x372732:0x291};function _0x12bf30(_0x1a212e,_0x5ad245,_0x2b6175,_0xa6fbee){return _0x16a6(_0x1a212e-_0x3fca18._0x372732,_0x2b6175);}_0x113b16[_0x12bf30(_0x4a418a._0x274e1b,0x578,_0x4a418a._0x5c3acf,_0x4a418a._0x430e25)]=_0x36ef83;});},async 'redirectToAuthorization'(_0x1611af){await _0x31deda['onRedirect'](_0x1611af);},async 'saveCodeVerifier'(_0x219a76){await updateStore(_0x586915,_0x11b403=>{_0x11b403['codeVerifier']=_0x219a76;});},async 'codeVerifier'(){const _0x103edd={_0x5bf1d0:0x26e,_0x32cfd8:0x183},_0x4a0506=(await readStore(_0x586915))[_0x5c6907(-0x147,-_0x2a1ed7._0x1633e4,-_0x2a1ed7._0x5e435e,-_0x2a1ed7._0x43caea)];if(!_0x4a0506)throw new Error(_0x5c6907(-0xfa,-0x1e3,-0x220,-_0x2a1ed7._0x2582f9));function _0x198e90(_0x68ab3c,_0x49967f,_0x26fd13,_0x5a5789){return _0x28f318(_0x5a5789-_0x54def4._0x11fc4e,_0x49967f-0x181,_0x26fd13,_0x5a5789-_0x54def4._0x717ad8);}function _0x5c6907(_0x401129,_0x42875b,_0x192943,_0x569c39){return _0x11e567(_0x42875b- -_0x103edd._0x5bf1d0,_0x192943,_0x192943-0x14a,_0x569c39-_0x103edd._0x32cfd8);}return _0x4a0506;},async 'invalidateCredentials'(_0xf79727){const _0xd87a8c={_0x25e4ae:0x378};await updateStore(_0x586915,_0x3e917e=>{function _0x52b38d(_0x346920,_0x4ae8e4,_0x13dac6,_0x307478){return _0x16a6(_0x346920- -0x5f,_0x307478);}(_0xf79727===_0x1e93d8(0x633,_0x40ed4e._0x2fb753,0x6b0,_0x40ed4e._0xfbb85c)||_0xf79727==='client')&&(_0x3e917e['clientInformation']=void 0x0);(_0xf79727==='all'||_0xf79727==='tokens')&&(_0x3e917e[_0x52b38d(0x190,_0x40ed4e._0x3cd546,_0x40ed4e._0x44947a,0x123)]=void 0x0);function _0x1e93d8(_0x4233e7,_0x146d88,_0x4b2826,_0x3cc00d){return _0x16a6(_0x4b2826-_0xd87a8c._0x25e4ae,_0x3cc00d);}(_0xf79727==='all'||_0xf79727==='verifier')&&(_0x3e917e[_0x1e93d8(0x45a,0x618,_0x40ed4e._0x7b4831,0x47b)]=void 0x0,_0x3e917e[_0x1e93d8(_0x40ed4e._0x3e66f8,0x5e9,0x625,0x71b)]=void 0x0),(_0xf79727===_0x52b38d(_0x40ed4e._0x1fe711,0x1a5,_0x40ed4e._0x540d7b,_0x40ed4e._0xd5cf4)||_0xf79727===_0x1e93d8(0x6c6,0x596,0x695,0x6f1))&&(_0x3e917e[_0x1e93d8(_0x40ed4e._0x3d19a5,_0x40ed4e._0xf163b9,_0x40ed4e._0x8c6f1d,_0x40ed4e._0xfe68de)]=void 0x0);});},async 'saveDiscoveryState'(_0x145e62){const _0x48a5c4={_0x1b248b:0xa,_0x244550:0x7c,_0x4e0f64:0x43,_0x1d5cd6:0x119};await updateStore(_0x586915,_0x4455bf=>{function _0xde4a9e(_0x39de5c,_0x2cd984,_0x56e450,_0x3fc6b){return _0x16a6(_0x56e450- -0x33c,_0x3fc6b);}_0x4455bf[_0xde4a9e(_0x48a5c4._0x1b248b,-_0x48a5c4._0x244550,-_0x48a5c4._0x4e0f64,-_0x48a5c4._0x1d5cd6)]=_0x145e62;});},async 'discoveryState'(){function _0x132a9e(_0x5012b9,_0x5db692,_0x350707,_0x1610e3){return _0x28f318(_0x350707- -0x183,_0x5db692-_0x3e1537._0x14f741,_0x5012b9,_0x1610e3-0x144);}return(await readStore(_0x586915))[_0x132a9e(-_0x52520f._0x55a1dd,_0x52520f._0x4f63cd,0x1e,-_0x52520f._0x367c02)];}};}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(_0x14d3a8,_0x1f49e9){const _0x57ff78={_0x1c35d7:0x3dd,_0x28cffb:0x111};function _0x41f467(_0x5a43cd,_0x2a68f7,_0x26606d,_0x24d504){return _0x2fd7af(_0x24d504-_0x57ff78._0x1c35d7,_0x2a68f7-_0x57ff78._0x28cffb,_0x2a68f7,_0x24d504-0x11e);}function _0x205919(_0x47b357,_0x50dddc,_0x1a6e92,_0x2716b7){return _0x278b49(_0x47b357-0x17f,_0x50dddc-0x1a8,_0x47b357- -0x11,_0x50dddc);}const _0x195184=_0x17fccc=>_0x17fccc[_0x41f467(0x2ad,0x21f,0x27f,0x227)](/[^a-zA-Z0-9_]+/g,'_')[_0x41f467(0x223,0x1df,0x173,0x227)](/^_+|_+$/g,'');return'mcp_'+_0x195184(_0x14d3a8)+'_'+_0x195184(_0x1f49e9);}function isObject(_0x51073e){const _0x1bbb0e={_0x487d2c:0xe1,_0x5970fe:0x2c6};function _0x5dcaa5(_0xe9a7fc,_0x3049a6,_0x4b0f52,_0x3af8b8){return _0x278b49(_0xe9a7fc-0xc5,_0x3049a6-0x144,_0x4b0f52-0x167,_0x3049a6);}return typeof _0x51073e===_0x5dcaa5(0x134,_0x1bbb0e._0x487d2c,0x1d4,_0x1bbb0e._0x5970fe)&&_0x51073e!==null&&!Array['isArray'](_0x51073e);}function toSupportedSchema(_0x119fc6){const _0x475d27={_0x5e6ae0:0x51,_0x1c1061:0x43,_0x1ea7e2:0xfb,_0x36e414:0xf6,_0x2438e4:0x231,_0x50b41c:0x4d8,_0x34023c:0x581,_0x5a665f:0x55a,_0x3aecc8:0x72f,_0x410a5a:0x77e,_0x15b044:0x5f9,_0x230acf:0x25,_0x235314:0x121,_0x25d283:0x32f,_0x3e94d9:0x303,_0x33b9ae:0x623,_0x58a10d:0x14,_0x152a30:0x81,_0x378f93:0xbb,_0x35c6f9:0x62f,_0x2523d7:0x5e1,_0x2204a9:0x19,_0x59b0eb:0xfb,_0xb40992:0x17e,_0x16550d:0x5ae,_0x4744ee:0x538,_0x5d1d72:0x56b,_0x358c3f:0x586,_0x106cb6:0x607,_0x440a20:0x667,_0x1c9480:0x6d3,_0x1f744b:0x81c},_0x29ad5b={_0x1efed5:0xd0},_0x59013d={_0x5b9ae0:0x666};if(!isObject(_0x119fc6))return void 0x0;if(_0x119fc6['type']===_0x33a93c(_0x475d27._0x5e6ae0,-_0x475d27._0x1c1061,_0x475d27._0x1ea7e2,_0x475d27._0x36e414))return{'type':_0x33a93c(-0x1c,_0x475d27._0x2438e4,0x45,_0x475d27._0x36e414)};if(_0x119fc6[_0x5d33fd(0x586,_0x475d27._0x50b41c,_0x475d27._0x34023c,_0x475d27._0x5a665f)]===_0x5d33fd(_0x475d27._0x3aecc8,_0x475d27._0x410a5a,_0x475d27._0x15b044,0x794)||_0x119fc6[_0x33a93c(-0x1d,0x6d,-_0x475d27._0x230acf,_0x475d27._0x235314)]===_0x33a93c(_0x475d27._0x25d283,0x3bc,_0x475d27._0x3e94d9,0x2e9))return{'type':_0x5d33fd(0x72f,_0x475d27._0x33b9ae,0x804,0x5e7)};function _0x5d33fd(_0x25ed4f,_0xa87936,_0x15a875,_0x265250){return _0x278b49(_0x25ed4f-0x9b,_0xa87936-0x1d3,_0x25ed4f-_0x59013d._0x5b9ae0,_0x15a875);}function _0x33a93c(_0x3d9910,_0x38fa22,_0x59f6da,_0x9288b0){return _0x278b49(_0x3d9910-_0x29ad5b._0x1efed5,_0x38fa22-0x105,_0x9288b0-0x201,_0x38fa22);}if(_0x119fc6[_0x33a93c(-_0x475d27._0x58a10d,_0x475d27._0x152a30,_0x475d27._0x378f93,0x121)]===_0x5d33fd(0x63f,_0x475d27._0x35c6f9,_0x475d27._0x2523d7,0x71f))return{'type':'boolean'};if(_0x119fc6[_0x33a93c(-_0x475d27._0x2204a9,_0x475d27._0x59b0eb,_0x475d27._0xb40992,0x121)]===_0x33a93c(0x165,0x395,0x283,0x264))return{'type':'array','items':toSupportedSchema(_0x119fc6[_0x5d33fd(0x5f5,_0x475d27._0x16550d,0x5f4,0x4de)])??{'type':_0x5d33fd(0x55b,0x5fb,_0x475d27._0x4744ee,_0x475d27._0x5d1d72)}};if(_0x119fc6[_0x5d33fd(_0x475d27._0x358c3f,_0x475d27._0x106cb6,_0x475d27._0x440a20,0x539)]===_0x5d33fd(_0x475d27._0x1c9480,_0x475d27._0x1f744b,0x660,0x731))return toNuvinToolSchema(_0x119fc6);return void 0x0;}function toNuvinToolSchema(_0x43604e){const _0x2bd483={_0x3425de:0x2a6,_0x272de4:0x43d,_0x252916:0x3f9,_0x85c9ba:0x7d,_0x28bf1f:0x55,_0x131036:0x121,_0x29fb5c:0x3a4,_0xeb6a60:0x87,_0x29995c:0x41,_0x151bab:0x2b2,_0x477df9:0x423,_0x239f82:0x33c,_0x53162f:0x380,_0x5822a0:0x39a},_0x3ebf7b={_0xbd6c2e:0x32,_0x232889:0x14e},_0x477dc3={_0x37adc7:0x1a9,_0x563add:0x1b7};if(!isObject(_0x43604e)||_0x43604e[_0x3dbbc0(0x3b,0x4b,-0xfd,-0xa2)]!==_0x1b6a2d(_0x2bd483._0x3425de,0x33c,_0x2bd483._0x272de4,_0x2bd483._0x252916))return{'type':'object','properties':{}};function _0x1b6a2d(_0x58f3e4,_0x2f196a,_0x52782d,_0x191ff6){return _0x278b49(_0x58f3e4-_0x477dc3._0x37adc7,_0x2f196a-_0x477dc3._0x563add,_0x2f196a-0x2cf,_0x52782d);}const _0x2ecdb6={},_0x5870a0=isObject(_0x43604e[_0x1b6a2d(0x18d,0x1f6,0x273,0x255)])?_0x43604e['properties']:{};function _0x3dbbc0(_0x552539,_0x14f3a9,_0x2cb8d2,_0x1aaf49){return _0x2fd7af(_0x2cb8d2-_0x3ebf7b._0xbd6c2e,_0x14f3a9-0x2a,_0x1aaf49,_0x1aaf49-_0x3ebf7b._0x232889);}for(const [_0xdc9568,_0x1fdd47]of Object[_0x3dbbc0(-_0x2bd483._0x85c9ba,-_0x2bd483._0x28bf1f,-0xb2,0x5)](_0x5870a0)){const _0x1bb288=toSupportedSchema(_0x1fdd47);if(_0x1bb288)_0x2ecdb6[_0xdc9568]=_0x1bb288;}const _0x59c9ba=Array[_0x3dbbc0(-0x1d,0x50,-0xaf,-_0x2bd483._0x131036)](_0x43604e[_0x1b6a2d(0x2f9,0x32d,_0x2bd483._0x29fb5c,0x2e4)])?_0x43604e[_0x3dbbc0(0xc1,-_0x2bd483._0xeb6a60,_0x2bd483._0x29995c,0xc)]['filter'](_0x4e03d0=>typeof _0x4e03d0===_0x1b6a2d(0x29d,0x1c4,0x2cb,0x2f6)):void 0x0;return _0x59c9ba?.[_0x1b6a2d(0x1dc,_0x2bd483._0x151bab,0x169,0x3ba)]?{'type':'object','properties':_0x2ecdb6,'required':_0x59c9ba}:{'type':_0x1b6a2d(_0x2bd483._0x477df9,_0x2bd483._0x239f82,_0x2bd483._0x53162f,_0x2bd483._0x5822a0),'properties':_0x2ecdb6};}function isJsonObject(_0x1519bc){const _0x19db5d={_0x55e934:0x62b,_0x93a1f2:0x7fa,_0x20a006:0x5a3,_0x41382c:0x69b,_0x562950:0x619},_0xdd1bc0={_0x191e17:0xb2,_0x31bd57:0x54,_0x1bc53c:0xc6},_0x11af0b={_0x56faae:0xac,_0x22f497:0x122};function _0x1099bf(_0x206d26,_0x391e3d,_0x39ba21,_0x2fb50d){return _0x2fd7af(_0x39ba21-0x709,_0x391e3d-_0x11af0b._0x56faae,_0x391e3d,_0x2fb50d-_0x11af0b._0x22f497);}function _0x680cd3(_0x1329a9,_0x5a4877,_0xbdd132,_0x24aa1f){return _0x278b49(_0x1329a9-_0xdd1bc0._0x191e17,_0x5a4877-_0xdd1bc0._0x31bd57,_0x5a4877- -_0xdd1bc0._0x1bc53c,_0xbdd132);}return typeof _0x1519bc===_0x1099bf(_0x19db5d._0x55e934,_0x19db5d._0x93a1f2,0x727,0x6b3)&&_0x1519bc!==null&&!Array[_0x1099bf(_0x19db5d._0x20a006,_0x19db5d._0x41382c,0x628,_0x19db5d._0x562950)](_0x1519bc);}function formatMcpContent(_0x63adf9){const _0x498b62={_0x308e3b:0x4a,_0xeff6ec:0xd8,_0x888d80:0x36,_0x45dffb:0x1bf,_0x4818fe:0x49,_0x4ee127:0xbe,_0x4ed1b0:0xc5,_0x2bfd3d:0x81,_0x5c09e6:0x1c5,_0x22127e:0xb2,_0x3b21a2:0x65,_0x1af7a7:0xa3,_0x5a7531:0x6f,_0x165750:0x7f,_0x5bc05b:0x78,_0x4e5c8b:0x22},_0x23c052={_0x396741:0x11b,_0x41b8fb:0x73,_0x4f8765:0x46,_0x2aead5:0x94,_0x27c9af:0x42,_0x33a947:0x24b,_0xc31192:0x115,_0x2d396f:0x117},_0x1d41ad={_0x22679a:0x1a2},_0x2ff400={_0x3ea3e1:0x1c1},_0x1fb3c4={_0x123760:0x1be,_0x3838f1:0xd5},_0x57d92e={_0x4a0601:0x10f,_0x37227b:0xe1};function _0x4a184d(_0x32525e,_0x2203d4,_0xd4c379,_0x138319){return _0x2fd7af(_0x2203d4-_0x57d92e._0x4a0601,_0x2203d4-_0x57d92e._0x37227b,_0xd4c379,_0x138319-0x79);}const _0x4d2eeb=Array['isArray'](_0x63adf9[_0x15ff93(-_0x498b62._0x308e3b,-_0x498b62._0xeff6ec,-_0x498b62._0x888d80,0x1d)])?_0x63adf9[_0x4a184d(-_0x498b62._0x45dffb,-0x92,-0x8b,_0x498b62._0x4818fe)]:[];function _0x15ff93(_0x263a1e,_0x5d0852,_0x2e6dac,_0x54226b){return _0x2fd7af(_0x54226b-_0x1fb3c4._0x123760,_0x5d0852-_0x1fb3c4._0x3838f1,_0x263a1e,_0x54226b-0x100);}const _0xf720ed=_0x4d2eeb[_0x4a184d(-_0x498b62._0x4ee127,0x30,_0x498b62._0x4ed1b0,-0x7d)](_0x3531ba=>{if(!isObject(_0x3531ba))return'';function _0x5ae49e(_0x5e8b13,_0x1a21b6,_0x13d289,_0x546e26){return _0x15ff93(_0x5e8b13,_0x1a21b6-0xc8,_0x13d289-_0x2ff400._0x3ea3e1,_0x13d289- -0x49);}if(_0x3531ba[_0x5ae49e(_0x23c052._0x396741,-_0x23c052._0x41b8fb,_0x23c052._0x4f8765,_0x23c052._0x2aead5)]==='text'&&typeof _0x3531ba[_0x4f2564(0xd6,_0x23c052._0x27c9af,_0x23c052._0x33a947,_0x23c052._0xc31192)]===_0x5ae49e(-_0x23c052._0x2d396f,-0xb9,0x1b,-0xc0))return _0x3531ba['text'];function _0x4f2564(_0x550b68,_0x59a3a2,_0x44bd8a,_0x1edb6f){return _0x15ff93(_0x59a3a2,_0x59a3a2-_0x1d41ad._0x22679a,_0x44bd8a-0x1de,_0x1edb6f- -0x5b);}return JSON[_0x4f2564(0xcd,-0xc0,0x4b,-0x24)](_0x3531ba);})[_0x15ff93(-_0x498b62._0x2bfd3d,_0x498b62._0x5c09e6,0x133,0x9f)](_0x54399d=>_0x54399d[_0x4a184d(0x17b,0xa3,0x180,0x18d)]>0x0)[_0x4a184d(0xe6,_0x498b62._0x22127e,0x1b6,-_0x498b62._0x3b21a2)]('\x0a');if(_0xf720ed[_0x4a184d(0x1b0,_0x498b62._0x1af7a7,-_0x498b62._0x5a7531,_0x498b62._0x165750)]>0x0)return _0xf720ed;return JSON[_0x4a184d(-0x96,-_0x498b62._0x5bc05b,_0x498b62._0x4e5c8b,0xa2)](_0x63adf9,null,0x2);}function createMcpTool(_0x5b9bec){const _0xe82f12={_0x474cc5:0x3b3,_0x4ac566:0x2cb,_0x47b1db:0x361,_0x402350:0x585,_0x4860a9:0x412,_0x5c4fa7:0x412,_0x30fa7e:0x410,_0x322934:0x490,_0x113f53:0x472,_0x1187f5:0x3ee,_0x48ce62:0x1d6,_0xa7b79d:0x2e2,_0x394f97:0x3ff,_0x52afca:0x45b,_0x1a28ec:0x3a0,_0x3c2961:0x5c3,_0x465f8d:0x442,_0x334a80:0x427,_0x1ed006:0x373},_0x286386={_0x50bcc7:0x1e9,_0x50d1ff:0x1cd,_0x3a5dfa:0x9d,_0x4e88c0:0xa1,_0x2b6de6:0xc9,_0x148c68:0x559,_0xf7a9c4:0x5f3,_0x500c46:0x5b1,_0x1d76fd:0x4a3,_0x4e3ae2:0x523,_0x39ce5b:0x552,_0x27caa5:0x462,_0x2f7f3e:0x266,_0x3f9b2b:0x8e,_0x53dc8f:0x139,_0x4d694c:0x2e4,_0x476cfa:0x171,_0x516605:0x4b0,_0x72f6ab:0x45d,_0x58d94d:0x56f},_0x28e549={_0x8046f8:0xb3,_0x2d3d9a:0x57};function _0x5d7f61(_0x47392a,_0x35663f,_0xb6ffda,_0x3ca423){return _0x278b49(_0x47392a-_0x28e549._0x8046f8,_0x35663f-_0x28e549._0x2d3d9a,_0xb6ffda-0x2cf,_0x35663f);}const _0x23ca9e=createMcpToolName(_0x5b9bec['serverName'],_0x5b9bec[_0x4db343(_0xe82f12._0x474cc5,0x4e0,0x48f,0x3d7)][_0x4db343(0x271,_0xe82f12._0x4ac566,_0xe82f12._0x47b1db,0x2d0)]);function _0x4db343(_0x207921,_0x5da54b,_0x1346b5,_0x142b03){return _0x278b49(_0x207921-0xa3,_0x5da54b-0x61,_0x1346b5-0x468,_0x5da54b);}return defineTool({'name':_0x23ca9e,'description':_0x5b9bec[_0x4db343(0x41c,_0xe82f12._0x402350,0x48f,0x3e7)][_0x5d7f61(_0xe82f12._0x4860a9,_0xe82f12._0x5c4fa7,0x3b6,_0xe82f12._0x30fa7e)]??_0x4db343(_0xe82f12._0x322934,_0xe82f12._0x113f53,_0xe82f12._0x1187f5,0x2b4)+_0x5b9bec[_0x5d7f61(_0xe82f12._0x48ce62,0x373,0x2f6,_0xe82f12._0xa7b79d)]['name']+_0x4db343(0x42e,0x43b,_0xe82f12._0x394f97,0x4ae)+_0x5b9bec[_0x5d7f61(_0xe82f12._0x52afca,0x3f6,_0xe82f12._0x1a28ec,0x406)],'inputSchema':toNuvinToolSchema(_0x5b9bec[_0x4db343(0x4ed,_0xe82f12._0x3c2961,0x48f,_0xe82f12._0x465f8d)][_0x4db343(0x2e4,0x2e8,_0xe82f12._0x334a80,_0xe82f12._0x1ed006)]),async *'execute'(_0x40e539){const _0x54b33a={_0x27b231:0x122,_0x480099:0xf0},_0x2aea2c={_0x183664:0x2d3,_0x32ab97:0x1df};function _0x3b2801(_0x2a11ea,_0x18fd16,_0x2e0e65,_0x729105){return _0x4db343(_0x2a11ea-0xf4,_0x729105,_0x2a11ea- -_0x2aea2c._0x183664,_0x729105-_0x2aea2c._0x32ab97);}function _0x5b352f(_0x2d37fb,_0x276d5e,_0xd01aec,_0x3abb6b){return _0x4db343(_0x2d37fb-0x108,_0x3abb6b,_0xd01aec-_0x54b33a._0x27b231,_0x3abb6b-_0x54b33a._0x480099);}const _0x6fb0de=await _0x5b9bec[_0x3b2801(_0x286386._0x50bcc7,0x240,_0x286386._0x50d1ff,0x2df)][_0x3b2801(_0x286386._0x3a5dfa,0xc4,_0x286386._0x4e88c0,_0x286386._0x2b6de6)]({'name':_0x5b9bec[_0x5b352f(_0x286386._0x148c68,_0x286386._0xf7a9c4,_0x286386._0x500c46,0x538)]['name'],'arguments':isJsonObject(_0x40e539)?_0x40e539:{}});if(_0x6fb0de[_0x5b352f(_0x286386._0x1d76fd,_0x286386._0x4e3ae2,_0x286386._0x39ce5b,_0x286386._0x27caa5)])throw new ToolExecutionError(formatMcpContent(_0x6fb0de),{'serverName':_0x5b9bec[_0x3b2801(_0x286386._0x2f7f3e,0x1e4,0x238,0x129)],'toolName':_0x5b9bec['tool'][_0x3b2801(_0x286386._0x3f9b2b,0xe1,-0x51,0x8b)]});return yield createToolOutput(formatMcpContent(_0x6fb0de),{'serverName':_0x5b9bec[_0x3b2801(_0x286386._0x2f7f3e,_0x286386._0x53dc8f,_0x286386._0x4d694c,_0x286386._0x476cfa)],'toolName':_0x5b9bec[_0x5b352f(0x4bb,_0x286386._0x516605,_0x286386._0x500c46,0x59e)][_0x5b352f(0x4a6,_0x286386._0x72f6ab,0x483,_0x286386._0x58d94d)],'result':_0x6fb0de}),void 0x0;}});}function resolvePrefix(_0x928d51,_0x1b9726){const _0x3e3b36={_0x317386:0xf9,_0x54456d:0x17b},_0x326afd={_0x2f21d5:0xa2,_0x562034:0xda};function _0x469d8f(_0x4a3abd,_0x769d53,_0x413a35,_0x2fe67d){return _0x278b49(_0x4a3abd-0x86,_0x769d53-_0x326afd._0x2f21d5,_0x4a3abd-_0x326afd._0x562034,_0x413a35);}return _0x1b9726[_0x469d8f(0x1c0,_0x3e3b36._0x317386,0x215,_0x3e3b36._0x54456d)]??_0x928d51;}function buildMcpHttpHeaders(_0x25d61b){const _0x692f33={_0x5ca988:0xba,_0x4f55d9:0xbf,_0x47cea4:0x11b,_0x27cf08:0x2f3,_0x74c940:0x162,_0x1d202f:0x15e,_0x29ab6e:0x12e,_0x7b1cbe:0xc9,_0x3013bf:0x25c,_0x29c0a6:0x59,_0x5cbf84:0xc7,_0x91189f:0x1a,_0x16dc95:0x28d,_0x554270:0x221,_0x278684:0x434,_0x1c4ad2:0x339,_0x5bc237:0x30,_0x136548:0x82,_0x4aed9a:0x102,_0x44b27a:0x131,_0x491f32:0x228,_0x3e26f8:0x1cb,_0x221a90:0x145,_0x1a8700:0x24b},_0x29231f={_0x363e4f:0xa0,_0x431af7:0x26},_0x2141cf={_0x58d2c8:0x1a4,_0x496174:0x195},_0x5b6f5d={..._0x25d61b[_0x23b35a(-0xa1,0x103,-_0x692f33._0x5ca988,0x16)]??{}};_0x25d61b['auth']?.[_0x23b35a(-0x46,-0x1f4,-0x1b1,-_0x692f33._0x4f55d9)]===_0x287c9a(0x1f1,_0x692f33._0x47cea4,0x1f6,_0x692f33._0x27cf08)&&_0x25d61b[_0x287c9a(_0x692f33._0x74c940,_0x692f33._0x1d202f,0x25a,0x223)][_0x287c9a(_0x692f33._0x29ab6e,_0x692f33._0x7b1cbe,_0x692f33._0x3013bf,0x275)]&&_0x5b6f5d[_0x287c9a(0x82,_0x692f33._0x29c0a6,0xf6,_0x692f33._0x5cbf84)]===void 0x0&&(_0x5b6f5d[_0x23b35a(-_0x692f33._0x91189f,-_0x692f33._0x16dc95,-0x1ee,-0x145)]=_0x287c9a(0x2f0,_0x692f33._0x554270,_0x692f33._0x278684,_0x692f33._0x1c4ad2)+_0x25d61b[_0x23b35a(-_0x692f33._0x5bc237,_0x692f33._0x136548,-_0x692f33._0x4aed9a,-0x65)][_0x287c9a(0x12e,_0x692f33._0x44b27a,_0x692f33._0x491f32,0xd0)]);function _0x23b35a(_0x2bbabd,_0x131aa7,_0x4d37ba,_0x30a37a){return _0x2fd7af(_0x30a37a-0x70,_0x131aa7-_0x2141cf._0x58d2c8,_0x131aa7,_0x30a37a-_0x2141cf._0x496174);}function _0x287c9a(_0x387a89,_0x5282e2,_0x1b37b4,_0x2c48ff){return _0x278b49(_0x387a89-_0x29231f._0x363e4f,_0x5282e2-_0x29231f._0x431af7,_0x387a89-0x1e8,_0x5282e2);}return Object[_0x23b35a(-0x124,0x19,-0x5d,-0x12e)](_0x5b6f5d)[_0x287c9a(_0x692f33._0x3e26f8,_0x692f33._0x74c940,_0x692f33._0x221a90,_0x692f33._0x1a8700)]>0x0?_0x5b6f5d:void 0x0;}function getErrorMessage(_0x138ba3){const _0xc43df4={_0x3f8721:0x599,_0x339ef0:0x74a},_0x4b1b7f={_0x2cbf4c:0xed,_0x42fa06:0x676};function _0x6c4740(_0x429149,_0x23c7ba,_0x4c8df5,_0x5431cd){return _0x278b49(_0x429149-_0x4b1b7f._0x2cbf4c,_0x23c7ba-0x174,_0x5431cd-_0x4b1b7f._0x42fa06,_0x4c8df5);}return _0x138ba3 instanceof Error?_0x138ba3[_0x6c4740(0x55b,_0xc43df4._0x3f8721,_0xc43df4._0x339ef0,0x65e)]:String(_0x138ba3);}function isUnauthorizedError(_0xa994da){const _0x293ebe={_0x9fb506:0x96,_0x34210e:0xa0,_0x55fefb:0x14a,_0x527769:0x282,_0x43087b:0x383},_0x836cce={_0x5f51c8:0x1f1},_0x2e7a5a={_0x21f10d:0x288,_0x4f9724:0xce,_0x56baee:0x1a3};function _0x4cdefd(_0x41c9ca,_0x25df3e,_0x682cf8,_0x2ef665){return _0x2fd7af(_0x25df3e-_0x2e7a5a._0x21f10d,_0x25df3e-_0x2e7a5a._0x4f9724,_0x41c9ca,_0x2ef665-_0x2e7a5a._0x56baee);}function _0x185f91(_0x39f7e1,_0x22be55,_0x44d86c,_0x4211ef){return _0x278b49(_0x39f7e1-0x10c,_0x22be55-_0x836cce._0x5f51c8,_0x22be55-0xb2,_0x44d86c);}return _0xa994da instanceof Error&&_0xa994da[_0x185f91(0x213,0xe7,0x19a,_0x293ebe._0x9fb506)][_0x185f91(-_0x293ebe._0x34210e,-0x55,-_0x293ebe._0x55fefb,-0xfd)]===_0x4cdefd(0x22d,_0x293ebe._0x527769,0x39d,_0x293ebe._0x43087b);}async function connectMcpServer(_0x4f75e2,_0x207ea2,_0x2aafcc){const _0x14798b={_0x242bfc:0x4a9,_0xa5b08f:0x4b8,_0x589344:0x4e2,_0x3b9f4d:0x48f,_0x27d707:0x5c9,_0x3e1ce1:0x4d1,_0x52dafe:0x4e4,_0x2eb70c:0x60e,_0xd4c169:0x486,_0x56ae99:0x4a6,_0x4f8965:0x4d8,_0x4c20d6:0x583,_0x1b2955:0x539,_0x5c67f8:0x42c,_0x1811e7:0x4f4,_0x5af6fd:0x3e7,_0x29e085:0x406,_0x32c418:0x608,_0x11d401:0x626,_0x3ad158:0x50c,_0x2c8d32:0x51e,_0x4f6629:0x59f,_0x2ab38b:0x3ff,_0x221559:0x70e,_0x246782:0x6b9,_0x77880a:0x43e,_0x2f49e6:0x524,_0x7fd620:0x4ca,_0x3cb036:0x5fa,_0x21f61d:0x3b0,_0x8ae012:0x606,_0x494b6e:0x4b6,_0x3216c7:0x3c1,_0x53eac7:0x551,_0x4ae204:0x6c6,_0x544018:0x655,_0x5332cc:0x4d1,_0x49b9c6:0x376,_0x1d6d88:0x4d7},_0x1c66b9={_0x36e247:0x57,_0x2e4328:0x121},_0x1cf4a4={_0x35578b:0x1fd,_0x30f429:0x19e,_0x2fcbf2:0x251,_0x13c9b0:0x148,_0x3a5776:0x1ce,_0x3f16c1:0x1c6},_0x62c39f={_0x56906c:0x15f},_0x48a6a4={_0x50f7d5:0x1a7},_0x59b727={_0x1d0096:0x2e,_0x5f36b6:0x1a,_0x535b4b:0x496},_0x1e492e={_0xa2943e:0x6db,_0x345c25:0x5d2,_0xf13621:0x271,_0x2fe22b:0x2a5,_0x426800:0x59a},_0x42021e={_0x3951b7:0x116,_0x125ee3:0xac},_0x41e6be={_0x118d10:0x21},_0x326224=new Client({'name':_0x43ee1c(0x624,0x5d4,_0x14798b._0x242bfc,_0x14798b._0xa5b08f),'version':'0.0.0'});_0x326224[_0x43ee1c(0x453,0x56e,0x518,0x487)]=_0x57464d=>{function _0xa680f(_0x56e121,_0x1e3597,_0x197326,_0x4f4b83){return _0x1b130a(_0x4f4b83- -0x82,_0x1e3597-0x11a,_0x197326,_0x4f4b83-_0x41e6be._0x118d10);}function _0x41a4c0(_0x2ab049,_0x5d977c,_0x59e89e,_0x302656){return _0x43ee1c(_0x2ab049-0x1c8,_0x5d977c- -_0x42021e._0x3951b7,_0x59e89e,_0x302656-_0x42021e._0x125ee3);}console[_0x41a4c0(_0x1e492e._0xa2943e,_0x1e492e._0x345c25,0x4b9,0x5ac)](_0xa680f(_0x1e492e._0xf13621,0x221,_0x1e492e._0x2fe22b,0x2d6)+_0x4f75e2+_0x41a4c0(0x5a4,0x499,_0x1e492e._0x426800,0x5ba),_0x57464d['message']);};function _0x1b130a(_0x2f3a0a,_0x2e2229,_0x3315e2,_0x486835){return _0x278b49(_0x2f3a0a-_0x59b727._0x1d0096,_0x2e2229-_0x59b727._0x5f36b6,_0x2f3a0a-_0x59b727._0x535b4b,_0x3315e2);}function _0x43ee1c(_0x415295,_0x3fab39,_0x52e303,_0x5eeac3){return _0x278b49(_0x415295-0x7a,_0x3fab39-_0x48a6a4._0x50f7d5,_0x3fab39-0x5cd,_0x52e303);}if(_0x207ea2[_0x1b130a(_0x14798b._0x589344,_0x14798b._0x3b9f4d,_0x14798b._0x27d707,_0x14798b._0x3e1ce1)]===_0x43ee1c(0x4a0,_0x14798b._0x52dafe,0x4b0,_0x14798b._0x2eb70c)||_0x207ea2[_0x43ee1c(0x3d5,_0x14798b._0xd4c169,0x52e,0x473)]){if(!_0x207ea2['url'])throw new Error('MCP\x20server\x20'+_0x4f75e2+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x207ea2['auth']?.[_0x1b130a(0x3b6,_0x14798b._0x56ae99,_0x14798b._0x4f8965,0x425)]==='oauth'&&!_0x2aafcc?.['oauth'])throw new Error('MCP\x20server\x20'+_0x4f75e2+_0x1b130a(_0x14798b._0x4c20d6,_0x14798b._0x1b2955,0x632,0x668));const _0x1162c9=buildMcpHttpHeaders(_0x207ea2),_0x35c845=_0x207ea2['auth']?.[_0x1b130a(0x3b6,0x2cd,0x29f,0x4bb)]===_0x43ee1c(_0x14798b._0x5c67f8,0x51e,_0x14798b._0x1811e7,0x48b)&&_0x2aafcc?.[_0x1b130a(_0x14798b._0x5af6fd,0x327,_0x14798b._0x29e085,0x32d)]?createMcpOAuthProvider({'serverName':_0x4f75e2,'callbackUrl':_0x2aafcc['oauth'][_0x43ee1c(_0x14798b._0x32c418,_0x14798b._0x11d401,_0x14798b._0x3ad158,0x700)],'storageDir':_0x2aafcc[_0x43ee1c(0x5c1,_0x14798b._0x2c8d32,_0x14798b._0x4f6629,_0x14798b._0x2ab38b)][_0x43ee1c(_0x14798b._0x221559,0x694,0x69b,_0x14798b._0x246782)],'config':_0x207ea2['auth'],'onRedirect':_0x2df29f=>_0x2aafcc[_0x43ee1c(0x514,0x51e,0x601,0x473)]?.[_0x43ee1c(0x48e,0x4e7,0x4a3,0x3f8)](_0x4f75e2,_0x2df29f)}):void 0x0,_0x143ae3=new StreamableHTTPClientTransport(new URL(_0x207ea2['url']),{'authProvider':_0x35c845,'requestInit':_0x1162c9?{'headers':_0x1162c9}:void 0x0});await _0x326224[_0x1b130a(0x37f,0x333,_0x14798b._0x77880a,0x3bb)](_0x143ae3);}else{if(!_0x207ea2[_0x1b130a(_0x14798b._0x2f49e6,_0x14798b._0x7fd620,0x5b5,_0x14798b._0x3cb036)])throw new Error(_0x1b130a(0x4dc,_0x14798b._0x21f61d,_0x14798b._0x8ae012,0x4e0)+_0x4f75e2+_0x1b130a(0x3e5,_0x14798b._0x494b6e,0x34f,_0x14798b._0x3216c7));const _0x4260c3=new StdioClientTransport({'command':_0x207ea2[_0x43ee1c(_0x14798b._0x53eac7,0x65b,_0x14798b._0x4ae204,0x6e5)],'args':_0x207ea2[_0x1b130a(0x3cc,0x4aa,0x460,0x283)]??[],'env':_0x207ea2[_0x43ee1c(0x5b0,_0x14798b._0x544018,0x729,0x564)],'stderr':_0x1b130a(0x413,0x38b,_0x14798b._0x5332cc,_0x14798b._0x49b9c6)});await _0x326224[_0x43ee1c(_0x14798b._0x1d6d88,_0x14798b._0x494b6e,0x551,0x3df)](_0x4260c3);}return{async 'listTools'(){return await _0x326224['listTools']();},async 'callTool'(_0x15334c){const _0xc239ad={_0x3161d8:0x1dc,_0x5adfb0:0x19e};function _0x488d15(_0xfc9a01,_0x42b422,_0xc2938b,_0x23048d){return _0x1b130a(_0xc2938b- -_0xc239ad._0x3161d8,_0x42b422-0x5,_0xfc9a01,_0x23048d-_0xc239ad._0x5adfb0);}function _0x2ceabf(_0xbe79b8,_0x5ae854,_0x151cc2,_0x55cd29){return _0x1b130a(_0xbe79b8-_0x62c39f._0x56906c,_0x5ae854-0x10d,_0x5ae854,_0x55cd29-0xea);}return await _0x326224[_0x488d15(0x136,_0x1cf4a4._0x35578b,_0x1cf4a4._0x30f429,_0x1cf4a4._0x2fcbf2)]({'method':_0x488d15(_0x1cf4a4._0x13c9b0,_0x1cf4a4._0x3a5776,_0x1cf4a4._0x3f16c1,0x122),'params':_0x15334c},CallToolResultSchema);},async 'close'(){const _0x4b0e36={_0x22dc84:0x55c,_0x5a3dfd:0x6e};function _0x434eb4(_0x5503c1,_0x42e4f2,_0xcd73fc,_0x168006){return _0x43ee1c(_0x5503c1-0x1bc,_0xcd73fc- -_0x4b0e36._0x22dc84,_0x168006,_0x168006-_0x4b0e36._0x5a3dfd);}await _0x326224[_0x434eb4(0x97,_0x1c66b9._0x36e247,_0x1c66b9._0x2e4328,0x79)]();}};}async function createMcpToolsFromServers(_0xbfc5f5){const _0x42596d={_0x4047e7:0x1c,_0x3cc623:0x27,_0x3ec231:0x153,_0x2a0977:0xba,_0x1b571a:0xd7,_0x3da567:0x263,_0x48f538:0x16f,_0xbf8c3:0x1a6,_0x20946b:0x1bc,_0x5a4bb2:0x1d,_0x402ab2:0x9e,_0x4043bb:0x9e,_0x33908c:0xa2,_0x1c6dea:0xda,_0x17d0bd:0x9f,_0x3aae79:0x33a,_0x48d76e:0x232,_0xfbcf16:0x11c,_0x4fa60f:0x55,_0x368c05:0x11,_0x3ad4a1:0x8f,_0x2edfd8:0x29a,_0x5555a8:0xed,_0x5e2b9e:0x41},_0x58341e={_0x34963e:0x1b4,_0x54e402:0x12a},_0x46a774={_0x448838:0xdc,_0x18f46f:0xe0},_0x5025e4={_0x21ad35:0xa7,_0x551d1c:0xac},_0x2d7025=_0xbfc5f5[_0x266970(0xe5,-0x6d,_0x42596d._0x4047e7,0x38)]??connectMcpServer;function _0x266970(_0x332692,_0x4233bc,_0x1d5372,_0x46a005){return _0x2fd7af(_0x46a005-0x19e,_0x4233bc-_0x5025e4._0x21ad35,_0x4233bc,_0x46a005-_0x5025e4._0x551d1c);}function _0x3d1a68(_0x187692,_0x65b7e5,_0x3e45cf,_0x163937){return _0x278b49(_0x187692-_0x46a774._0x448838,_0x65b7e5-_0x46a774._0x18f46f,_0x3e45cf-0x118,_0x65b7e5);}const _0x2b6512=[],_0x29c0b3={},_0x170790=[];for(const [_0x35022a,_0x1fa768]of Object[_0x266970(0x201,_0x42596d._0x3cc623,_0x42596d._0x3ec231,_0x42596d._0x2a0977)](_0xbfc5f5[_0x266970(0x208,0x293,0x1bc,0x1a7)]??{})){if(_0x1fa768[_0x266970(_0x42596d._0x1b571a,_0x42596d._0x3da567,_0x42596d._0x48f538,_0x42596d._0xbf8c3)]===![]){_0x29c0b3[_0x35022a]={'status':_0x3d1a68(_0x42596d._0x20946b,0xfe,0xbf,_0x42596d._0x5a4bb2)};continue;}try{const _0x227b35=await _0x2d7025(_0x35022a,_0x1fa768,_0xbfc5f5[_0x3d1a68(-_0x42596d._0x402ab2,_0x42596d._0x4043bb,_0x42596d._0x33908c,_0x42596d._0x1c6dea)]);_0x2b6512['push'](_0x227b35);const _0x4a0562=await _0x227b35['listTools']();let _0x2d1e3c=0x0;for(const _0x4ba20a of _0x4a0562[_0x266970(0x1b6,0x26e,_0x42596d._0x17d0bd,0x192)]){const _0x3da8f7=_0xbfc5f5[_0x3d1a68(_0x42596d._0x3aae79,0x185,_0x42596d._0x48d76e,_0x42596d._0xfbcf16)]?.[_0x35022a]?.[_0x4ba20a[_0x3d1a68(-0x65,_0x42596d._0x4fa60f,_0x42596d._0x368c05,_0x42596d._0x3ad4a1)]];if(_0x3da8f7===![])continue;_0x2d1e3c+=0x1,_0x170790[_0x3d1a68(0x2ff,0x338,0x219,_0x42596d._0x2edfd8)](createMcpTool({'serverName':resolvePrefix(_0x35022a,_0x1fa768),'tool':_0x4ba20a,'client':_0x227b35}));}_0x29c0b3[_0x35022a]={'status':_0x3d1a68(0x12,_0x42596d._0x5555a8,_0x42596d._0x5e2b9e,0x39),'toolCount':_0x2d1e3c};}catch(_0x4008cb){_0x29c0b3[_0x35022a]=isUnauthorizedError(_0x4008cb)?{'status':'authRequired','message':getErrorMessage(_0x4008cb)}:{'status':'error','message':getErrorMessage(_0x4008cb)};}}return{'tools':_0x170790,'servers':_0x29c0b3,async 'close'(){function _0x418209(_0xd5cf00,_0x3af4b1,_0x3f36a8,_0x22a1e2){return _0x266970(_0xd5cf00-0x47,_0x3af4b1,_0x3f36a8-0x1b1,_0xd5cf00-0xf5);}await Promise['all'](_0x2b6512[_0x418209(_0x58341e._0x34963e,0x272,0x15d,_0x58341e._0x54e402)](_0x3f36c7=>_0x3f36c7['close']()));}};}function getCommand(_0xab8ec5){const _0x594859={_0x21e653:0x693,_0x3c30af:0x607,_0x47a976:0x4ea,_0x3ef310:0x717,_0x2702c5:0x399,_0x49e79b:0x3e2,_0x162db6:0x200,_0x47d110:0x310,_0xd0acf6:0x727,_0x4b276f:0x781},_0x4fd020={_0x12fc60:0x6e8,_0x5d3b58:0xd4},_0x2c3eac={_0x24fc93:0x30b};if(_0xab8ec5&&typeof _0xab8ec5===_0x441c26(0x706,0x755,0x7ee,_0x594859._0x21e653)&&!Array[_0x441c26(_0x594859._0x3c30af,_0x594859._0x47a976,0x68a,_0x594859._0x3ef310)](_0xab8ec5)&&typeof _0xab8ec5[_0x3dc6af(_0x594859._0x2702c5,0x2dc,0x45c,_0x594859._0x49e79b)]===_0x3dc6af(_0x594859._0x162db6,0xf5,_0x594859._0x47d110,0x29e))return _0xab8ec5[_0x441c26(_0x594859._0xd0acf6,0x617,0x750,_0x594859._0x4b276f)];function _0x3dc6af(_0x9bbfbe,_0x2c8718,_0x531b71,_0x4b9179){return _0x278b49(_0x9bbfbe-0x99,_0x2c8718-0x75,_0x9bbfbe-_0x2c3eac._0x24fc93,_0x2c8718);}function _0x441c26(_0x323b12,_0x15eb14,_0x530c68,_0x2559fc){return _0x2fd7af(_0x323b12-_0x4fd020._0x12fc60,_0x15eb14-_0x4fd020._0x5d3b58,_0x15eb14,_0x2559fc-0x12d);}return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x278b49(0x118,0x1fb,0xdd,0x1d),'docs/plans/2026-04-16-mock-agent-loop-implementation.md','docs/plans/2026-04-16-public-tools-api-implementation.md',_0x2fd7af(0xa9,-0x5f,-0x37,0x1c3),'src/agent/agent.ts',_0x278b49(0x29,0x1b5,0xce,-0x23),_0x278b49(0x4c,0x5e,0xba,0x164),_0x2fd7af(-0x179,-0x1a7,-0x130,-0x152),_0x2fd7af(-0x145,-0xa0,-0x1a,-0xe9),_0x2fd7af(-0x16e,-0x28c,-0xa1,-0x182),_0x2fd7af(-0x35,-0x111,-0x113,-0x140),'src/agent/turn-engine.ts',_0x2fd7af(-0x4b,-0x114,-0x129,-0x7),_0x278b49(0x8d,-0x65,0x3c,-0x106),'src/models/anthropic-model.ts',_0x278b49(0x156,-0x82,0x73,-0x36),_0x2fd7af(-0x19d,-0x68,-0x27c,-0x1c1)][_0x2fd7af(-0x5d,-0xf4,-0x162,-0xae)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x278b49(0x19c,0xce,0x92,0x62),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x278b49(0x24,-0xa1,0x6d,-0x20),'properties':{'command':{'type':_0x278b49(-0x196,-0x12a,-0x10b,-0x21c)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x3a21b8){return{'output':_0x3a21b8,'structured':{'value':_0x3a21b8}};}function createUnknownToolResult(_0x420c2f){const _0x2ce150={_0x49f20b:0x5a6,_0x145928:0x46a,_0x29a72a:0x3df,_0x150b90:0xd7,_0x31771b:0x5},_0x33a256={_0x542cf5:0x1e1,_0x2622e4:0x175},_0x4429e2={_0x287e7a:0x40,_0x2f8197:0x144};function _0x5252b7(_0x38595c,_0xeaa341,_0x36b900,_0x48389f){return _0x2fd7af(_0x48389f- -_0x4429e2._0x287e7a,_0xeaa341-0x1bb,_0x38595c,_0x48389f-_0x4429e2._0x2f8197);}function _0x5dd935(_0x5b88a5,_0x35a7d9,_0xf9e802,_0x3e41ec){return _0x2fd7af(_0xf9e802-0x39e,_0x35a7d9-_0x33a256._0x542cf5,_0x3e41ec,_0x3e41ec-_0x33a256._0x2622e4);}return{'callId':_0x420c2f['id'],'toolName':_0x420c2f['name'],'status':_0x5dd935(0x570,_0x2ce150._0x49f20b,_0x2ce150._0x145928,_0x2ce150._0x29a72a),'output':_0x5252b7(-0x106,-_0x2ce150._0x150b90,0x9,_0x2ce150._0x31771b)+_0x420c2f['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x4c1ac4,_0x4e8100){const _0x3eb264={_0x5ae115:0x329,_0x32f863:0x2c1},_0x290dda={_0x223bea:0x1d8,_0x550250:0x46};function _0x33952d(_0x1c0bf4,_0xcdb4e1,_0x5426cd,_0x5672a6){return _0x278b49(_0x1c0bf4-_0x290dda._0x223bea,_0xcdb4e1-_0x290dda._0x550250,_0x1c0bf4-0x430,_0xcdb4e1);}return{'callId':_0x4c1ac4['id'],'toolName':_0x4c1ac4[_0x33952d(_0x3eb264._0x5ae115,_0x3eb264._0x32f863,0x226,0x412)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x4c1ac4['input']),'exitCode':0x0},'chunks':[_0x4e8100],'meta':createMeta()};}function createMockToolRuntime(){const _0x10e1f9={_0x3c0518:0x29f,_0x2778ae:0x181},_0x226cb4={_0x11ba32:0x3d7},_0x1d9be6={_0xd38df2:0x27f,_0x833d29:0x279},_0x5731e4={_0x5a9d0e:0xff},_0x3b7095=async(_0x5d2761,_0x31fc46)=>{const _0x15de70={_0x3aacf5:0x272};if(_0x5d2761[_0x1fde55(0x456,0x4df,0x3d4,0x451)]!==_0x3f516e(_0x1d9be6._0xd38df2,_0x1d9be6._0x833d29,0x286,0x378))return createUnknownToolResult(_0x5d2761);function _0x3f516e(_0x1b504e,_0x449c54,_0x3562f2,_0x551951){return _0x16a6(_0x449c54- -_0x5731e4._0x5a9d0e,_0x551951);}function _0x1fde55(_0x405b26,_0x546609,_0x972d2e,_0xe82610){return _0x16a6(_0xe82610-_0x15de70._0x3aacf5,_0x405b26);}const _0x121350=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x5d2761,_0x121350);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x401c19,_0x25ebad){function _0x73c565(_0x2c669e,_0xaefb9d,_0x202512,_0x1fd8a0){return _0x16a6(_0xaefb9d- -_0x226cb4._0x11ba32,_0x202512);}function _0x38d8e7(_0x3706c4,_0x1328f7,_0x51997d,_0x53eb5b){return _0x16a6(_0x3706c4-0x48,_0x51997d);}return await Promise[_0x38d8e7(0x380,_0x10e1f9._0x3c0518,0x39b,0x276)](_0x401c19[_0x73c565(-0x266,-_0x10e1f9._0x2778ae,-0x229,-0xc8)](async _0xe8e3ba=>{return await _0x3b7095(_0xe8e3ba,_0x25ebad);}));},async 'execute'(_0x44f220,_0x1fd4b8){return await _0x3b7095(_0x44f220,_0x1fd4b8);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x22d85e={_0x57a1c2:0xee},_0x4d95f3={_0x10b8a8:0x51,_0x215517:0x1f8};function _0x32a1b4(_0x5b9848,_0x291b53,_0x90c3d7,_0x457d68){return _0x278b49(_0x5b9848-_0x4d95f3._0x10b8a8,_0x291b53-0xa4,_0x291b53-_0x4d95f3._0x215517,_0x457d68);}return delegatedRunCounter+=0x1,_0x32a1b4(0x121,0x211,0x20a,_0x22d85e._0x57a1c2)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x24d159,_0x520dba){const _0x201774={_0x5a1a19:0x85},_0x189d91={_0x4ced66:0x15a,_0x403854:0x19c,_0x109bca:0xaf};function _0x15285f(_0x34130c,_0x47f1b3,_0x32e060,_0x1796a7){return _0x278b49(_0x34130c-_0x189d91._0x4ced66,_0x47f1b3-_0x189d91._0x403854,_0x32e060-_0x189d91._0x109bca,_0x34130c);}return typeof _0x24d159===_0x15285f(-0x29,0x1f,_0x201774._0x5a1a19,-0x66)?await _0x24d159(_0x520dba):_0x24d159;}function getDelegatedAgentDefinition(_0x4a54d2,_0x52369b){const _0xb7653c={_0x3f550e:0x431,_0x1cb2cc:0x3ce,_0x3cb30d:0x590},_0x5e0663={_0x491816:0xc6,_0xd97f30:0xbc};function _0x4ddcf5(_0x41ee70,_0x3d0255,_0x2f7067,_0x590f00){return _0x2fd7af(_0x590f00-0x52b,_0x3d0255-_0x5e0663._0x491816,_0x41ee70,_0x590f00-_0x5e0663._0xd97f30);}return _0x4a54d2[_0x4ddcf5(_0xb7653c._0x3f550e,_0xb7653c._0x1cb2cc,_0xb7653c._0x3cb30d,0x460)]?.[_0x52369b];}function createRunSummary(_0x1325ad){const _0x32c828={_0x2642ef:0x4c4,_0x543da7:0x58f,_0x422dfd:0x542,_0x21aeed:0x29b,_0x39a5fd:0x422,_0x354e5b:0x2de,_0x30adb0:0x20a,_0x574f8b:0x13e,_0x1e7367:0x144,_0x4b6c25:0x1c3,_0x50f993:0x2f2,_0x2565ff:0x3ba,_0x5d417c:0x325,_0x534552:0x120,_0x43876e:0x1b0,_0x14041d:0x4b2,_0x18393b:0x491,_0x589ab6:0x46b,_0x3fcd27:0x13e,_0x20fbab:0x18e,_0x4854f5:0x16f,_0x3c797e:0x1a4},_0x460127={_0x1e5017:0x530,_0x4fc871:0x1a3},_0x3d373f={_0x2d6549:0x18e,_0x168ca3:0xd4};function _0xfb1911(_0x30fef0,_0x1c6a91,_0x31b512,_0x35bfdb){return _0x2fd7af(_0x35bfdb-0x243,_0x1c6a91-_0x3d373f._0x2d6549,_0x1c6a91,_0x35bfdb-_0x3d373f._0x168ca3);}function _0x1713c3(_0x6bee4e,_0x215a0c,_0x7cd427,_0x2b56ca){return _0x2fd7af(_0x215a0c-_0x460127._0x1e5017,_0x215a0c-0x133,_0x2b56ca,_0x2b56ca-_0x460127._0x4fc871);}return{'runId':_0x1325ad[_0x1713c3(_0x32c828._0x2642ef,_0x32c828._0x543da7,_0x32c828._0x422dfd,0x6b4)],'agentId':_0x1325ad[_0xfb1911(0xa3,0x2c5,_0x32c828._0x21aeed,0x1d5)],'sessionId':_0x1325ad[_0xfb1911(0x37d,0x394,0x399,0x2f1)],'status':_0x1325ad[_0x1713c3(0x305,_0x32c828._0x39a5fd,0x48b,0x302)],'parentSessionId':_0x1325ad[_0xfb1911(_0x32c828._0x354e5b,_0x32c828._0x30adb0,_0x32c828._0x574f8b,0x253)],..._0x1325ad[_0xfb1911(0x2a5,_0x32c828._0x1e7367,_0x32c828._0x4b6c25,0x1f2)]!==void 0x0?{'originToolCallId':_0x1325ad[_0xfb1911(0x199,0x2bc,_0x32c828._0x50f993,0x1f2)]}:{},..._0x1325ad[_0x1713c3(_0x32c828._0x2565ff,0x439,_0x32c828._0x5d417c,0x53c)]!==void 0x0?{'errorMessage':_0x1325ad[_0xfb1911(_0x32c828._0x534552,_0x32c828._0x43876e,0x15,0x14c)]}:{},..._0x1325ad['result']?.[_0x1713c3(_0x32c828._0x14041d,_0x32c828._0x18393b,_0x32c828._0x589ab6,0x5c0)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1325ad[_0xfb1911(_0x32c828._0x3fcd27,0xa7,0xc0,0x136)][_0xfb1911(0xc2,_0x32c828._0x20fbab,_0x32c828._0x4854f5,_0x32c828._0x3c797e)])}:{}};}function createRunSummaryOutput(_0x31a405,_0x153d00){const _0x3b92b7={_0x42606e:0x259},_0x183674={_0x2ce09f:0x8,_0x3d2a14:0x1d0};function _0x3965be(_0x152526,_0x3c608f,_0x21978f,_0x433117){return _0x2fd7af(_0x21978f- -0x69,_0x3c608f-_0x183674._0x2ce09f,_0x433117,_0x433117-_0x183674._0x3d2a14);}const _0x153ab3=createRunSummary(_0x31a405),_0x7f184a=_0x153ab3['finalMessageText'];return createToolOutput(typeof _0x7f184a===_0x3965be(-0xa6,-_0x3b92b7._0x42606e,-0x1c3,-0x2b5)&&_0x7f184a['length']>0x0?_0x7f184a:_0x153d00,_0x153ab3);}function getRunTerminalErrorMessage(_0x3caad4){const _0x53ebee={_0x374740:0x11e,_0x4fee7a:0x20,_0x1ae419:0xa3,_0x40caa2:0x55d,_0x433d78:0x4fc,_0x2ca435:0x56f,_0x2a9145:0x194,_0x1ec40a:0x4a8,_0x375fff:0x1b9,_0x2c2b7c:0x1d3,_0x5ad99f:0x1a3,_0x5c01d5:0x191},_0x423daf={_0x473090:0x1d1},_0x115bf2={_0x5c83b1:0x491,_0x403dc1:0xda};function _0xf36f70(_0x5a6c66,_0x7f65ea,_0x3f6437,_0x25c062){return _0x2fd7af(_0x5a6c66-_0x115bf2._0x5c83b1,_0x7f65ea-_0x115bf2._0x403dc1,_0x7f65ea,_0x25c062-0x55);}const _0x4b66f0=_0x3caad4?.['state'][_0x24adac(_0x53ebee._0x374740,0x172,_0x53ebee._0x4fee7a,_0x53ebee._0x1ae419)]['at'](-0x1);function _0x24adac(_0x58683a,_0x5e760d,_0x2345b8,_0x3398c3){return _0x278b49(_0x58683a-0xf,_0x5e760d-0x1bd,_0x3398c3-_0x423daf._0x473090,_0x58683a);}if(_0x4b66f0?.['status']===_0xf36f70(_0x53ebee._0x40caa2,0x4f0,_0x53ebee._0x433d78,_0x53ebee._0x2ca435)&&_0x4b66f0[_0x24adac(0x2c3,0x189,_0x53ebee._0x2a9145,0x191)]['trim']()[_0xf36f70(0x425,_0x53ebee._0x1ec40a,0x53c,0x51e)]>0x0)return _0x4b66f0[_0x24adac(_0x53ebee._0x375fff,_0x53ebee._0x2c2b7c,_0x53ebee._0x5ad99f,_0x53ebee._0x5c01d5)];return void 0x0;}function formatAbortedRunMessage(_0x30a0b7,_0x3bf7bc){const _0x220bf8={_0x5af341:0x91,_0x1b4190:0x151,_0x15d198:0x12b,_0x1e5620:0x252,_0x2b1b42:0x2bb},_0x86af2d={_0x40197d:0x19c},_0x5ee185={_0x23c822:0x1e4},_0x3ec967='Agent\x20run\x20'+_0x30a0b7+_0x44fe97(_0x220bf8._0x5af341,0x178,_0x220bf8._0x1b4190,_0x220bf8._0x15d198);if(!_0x3bf7bc||_0x3bf7bc[_0x4da686(0x1da,0x26c,_0x220bf8._0x1e5620,_0x220bf8._0x2b1b42)]()['length']===0x0||_0x3bf7bc===_0x3ec967)return _0x3ec967;function _0x44fe97(_0x3b8779,_0x3667d2,_0x544ff2,_0x5aed00){return _0x278b49(_0x3b8779-0x152,_0x3667d2-_0x5ee185._0x23c822,_0x544ff2-0x73,_0x5aed00);}function _0x4da686(_0x5bfa4e,_0x1d110a,_0x2ad7c7,_0x3b62a3){return _0x278b49(_0x5bfa4e-_0x86af2d._0x40197d,_0x1d110a-0x22,_0x3b62a3-0x32b,_0x5bfa4e);}return _0x3ec967+'\x20Cause:\x20'+_0x3bf7bc;}function createAssignTaskTool(_0x39510c){const _0xbbf0f4={_0x1eeb57:0x327,_0x25416a:0x42b,_0xac87ba:0x269,_0x22b7eb:0x99,_0x25e1cc:0x205,_0x410952:0x26a,_0x20e198:0xdd,_0x238cbf:0x123},_0x539816={_0x6cbcc2:0x561,_0x157b9e:0x5e4,_0x578504:0x66c,_0x53eebe:0x2b3,_0x3af774:0xb7,_0x41cc2f:0x97,_0x8a5052:0x1f,_0x288c72:0x34c,_0x599e81:0x579,_0x5acf82:0x4de,_0x5f2ccc:0xa,_0x4bf0fb:0x58,_0x2c8aa3:0x4e,_0x3e7a8c:0x81,_0x4cdd55:0xba,_0x3d18e3:0x451,_0x3ddd9e:0x392,_0x34061c:0x3f8,_0x4cecbb:0x323,_0x49cb0d:0x3bd,_0x21b226:0x650,_0x2830ea:0x512,_0x1f0934:0x3cb,_0x5469ff:0x601,_0x287a3f:0x60e,_0x413566:0x49c,_0x25e64b:0x50c,_0x3313ad:0xd1,_0x3c8112:0x263,_0x3a13ed:0x21b,_0x174e4b:0x92,_0x3b7747:0x15,_0x7be19f:0x3f5,_0x2dc8b8:0x3cc,_0x102165:0x4be,_0x263d2a:0xa6,_0x36d6e0:0x169,_0x574325:0xc9,_0x497e6e:0x154,_0x3a7cb7:0x36,_0x26e2ab:0x175,_0x7b33ed:0xb6,_0x3374df:0xe1,_0x51b8d8:0x4f,_0x1e13c2:0xc,_0x273f93:0x303,_0x1b7813:0xd5,_0x33e6ec:0x542,_0x51e856:0x58,_0x1eeeef:0x62,_0x289f19:0x190,_0x5bb48d:0x3a6,_0x2de23d:0x320,_0x162496:0x44c,_0x18e14d:0x4b0,_0x5b47eb:0x572,_0x2087d9:0x664,_0x1dc896:0x592,_0x543b84:0x4a4,_0x55a997:0x18,_0x3cb3a7:0x55,_0x466aca:0x2d},_0x352929={_0x45eae1:0x42,_0x13ccd6:0x14b,_0x2623d5:0x33,_0x1f950b:0xc1},_0x2dd62a={_0x2999f5:0x18},_0x3e3385={_0x18e979:0x26a,_0x39fe7a:0x6d};function _0x5af21b(_0x2e0bc5,_0x417640,_0x148a0c,_0x3b481d){return _0x2fd7af(_0x2e0bc5-_0x3e3385._0x18e979,_0x417640-0x172,_0x417640,_0x3b481d-_0x3e3385._0x39fe7a);}function _0x689ce3(_0x4346b4,_0x5d7759,_0x2390aa,_0x182e0c){return _0x278b49(_0x4346b4-0x1b6,_0x5d7759-0x15,_0x2390aa- -_0x2dd62a._0x2999f5,_0x4346b4);}return defineTool({'name':'AssignTask','description':_0x5af21b(_0xbbf0f4._0x1eeb57,_0xbbf0f4._0x25416a,_0xbbf0f4._0xac87ba,0x215),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x689ce3(0xd,-_0xbbf0f4._0x22b7eb,-0x123,0x1a)},'description':{'type':_0x689ce3(-0x22b,-_0xbbf0f4._0x25e1cc,-0x123,-_0xbbf0f4._0x410952)},'nickname':{'type':'string'},'task':{'type':_0x689ce3(-0x28,-_0xbbf0f4._0x20e198,-_0xbbf0f4._0x238cbf,-0x24f)}},'required':['agentId','description','task']},async *'execute'(_0x5a1c00,_0x4bcf46){const _0x3bdf90={_0x399458:0x4d},_0x151e19={_0x5461e0:0x3c2},_0xe9ed07={_0xe9db81:0x83,_0x216fa8:0x132},_0x5353bc={_0x8a79f7:0x199};function _0x3d7382(_0xe389d4,_0x490f9c,_0x486ebc,_0x4457ed){return _0x689ce3(_0x486ebc,_0x490f9c-_0x5353bc._0x8a79f7,_0xe389d4- -0x60,_0x4457ed-0xf8);}const _0x5ee45c=createDelegatedRunId(),_0x94ae65={'agentId':_0x5a1c00['agentId'],'parentSessionId':_0x4bcf46[_0x3bbcdf(_0x539816._0x6cbcc2,_0x539816._0x157b9e,0x51d,_0x539816._0x578504)],'runId':_0x5ee45c,..._0x4bcf46['toolCallId']!==void 0x0?{'toolCallId':_0x4bcf46[_0x3bbcdf(0x35e,_0x539816._0x53eebe,0x3e7,0x397)]}:{}},_0x2b53b8=getDelegatedAgentDefinition(_0x39510c,_0x5a1c00['agentId']);if(!_0x2b53b8)throw new ToolExecutionError(_0x3d7382(-0xc7,-0x66,-0x1c2,-_0x539816._0x3af774)+_0x5a1c00[_0x3d7382(-_0x539816._0x41cc2f,-0x1de,_0x539816._0x8a5052,-0xf4)],{'agentId':_0x5a1c00[_0x3bbcdf(0x445,_0x539816._0x288c72,_0x539816._0x599e81,_0x539816._0x5acf82)]});const _0x12f79f=new Agent(await resolveDelegatedAgentOptions(_0x2b53b8,_0x94ae65));let _0x1ae263={'runId':_0x5ee45c,'agentId':_0x5a1c00[_0x3d7382(-0x97,-0xb9,0xa,-0x1c6)],'sessionId':_0x12f79f[_0x3d7382(0x85,-_0x539816._0x5f2ccc,-0x3b,0x17a)],'status':_0x3d7382(-_0x539816._0x4bf0fb,0xe6,0x18,0xe2),'parentSessionId':_0x4bcf46[_0x3d7382(0x85,-0x29,-_0x539816._0x2c8aa3,0x8e)],..._0x4bcf46[_0x3d7382(-0x17e,-_0x539816._0x3e7a8c,-0x185,-_0x539816._0x4cdd55)]!==void 0x0?{'originToolCallId':_0x4bcf46[_0x3bbcdf(0x35e,_0x539816._0x3d18e3,0x3bd,_0x539816._0x3ddd9e)]}:{}};function _0x3bbcdf(_0x27b267,_0x392449,_0x197355,_0x35de7d){return _0x5af21b(_0x27b267-0x249,_0x197355,_0x197355-_0xe9ed07._0xe9db81,_0x35de7d-_0xe9ed07._0x216fa8);}const _0x4e6c73=new AbortController(),_0x5c355c=addAbortListener(_0x4bcf46[_0x3bbcdf(_0x539816._0x34061c,_0x539816._0x4cecbb,0x51c,_0x539816._0x49cb0d)],()=>{function _0x182bfb(_0x586b79,_0x285df5,_0x9cdffa,_0x2a0be3){return _0x3bbcdf(_0x9cdffa- -_0x151e19._0x5461e0,_0x285df5-0xb6,_0x285df5,_0x2a0be3-0x1f0);}function _0x953b8e(_0xe06bed,_0x28ae2d,_0x3f1b88,_0x4a3b3d){return _0x3bbcdf(_0x28ae2d- -_0x3bdf90._0x399458,_0x28ae2d-0x42,_0x4a3b3d,_0x4a3b3d-0x96);}_0x4e6c73[_0x182bfb(-_0x352929._0x45eae1,0x1e,0x40,_0x352929._0x13ccd6)](_0x4bcf46[_0x182bfb(0xc9,-_0x352929._0x2623d5,0x36,-_0x352929._0x1f950b)]?.['reason']);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x1ae263[_0x3bbcdf(0x512,0x614,_0x539816._0x21b226,0x590)]+'.',{'runId':_0x1ae263[_0x3bbcdf(_0x539816._0x2830ea,_0x539816._0x1f0934,0x522,_0x539816._0x5469ff)],'agentId':_0x1ae263[_0x3d7382(-_0x539816._0x41cc2f,-0x59,-0x2,-0x63)],'sessionId':_0x1ae263[_0x3bbcdf(_0x539816._0x6cbcc2,_0x539816._0x287a3f,_0x539816._0x413566,_0x539816._0x25e64b)],'status':_0x1ae263[_0x3d7382(-0x137,-_0x539816._0x3313ad,-_0x539816._0x3c8112,-_0x539816._0x3a13ed)]});try{const _0x37bde9=await _0x12f79f[_0x3d7382(-0xd,-_0x539816._0x174e4b,0xe0,-_0x539816._0x3b7747)](_0x5a1c00[_0x3bbcdf(_0x539816._0x7be19f,0x2d6,0x4be,_0x539816._0x2dc8b8)],{'signal':_0x4e6c73[_0x3bbcdf(0x3f8,0x478,_0x539816._0x102165,0x483)]});_0x1ae263={..._0x1ae263,'status':_0x37bde9['status'],'result':_0x37bde9};if(_0x37bde9[_0x3d7382(-0x137,-0x18b,-_0x539816._0x263d2a,-_0x539816._0x36d6e0)]!==_0x3d7382(-_0x539816._0x574325,-_0x539816._0x497e6e,0x66,-0xa2)){const _0x5e158d=getRunTerminalErrorMessage(_0x37bde9),_0x529f68=formatAbortedRunMessage(_0x1ae263[_0x3d7382(_0x539816._0x3a7cb7,-0x87,_0x539816._0x26e2ab,0x150)],_0x5e158d);throw new ToolExecutionError(_0x529f68,{...createRunSummary(_0x1ae263),'aborted':!![],'errorMessage':_0x529f68});}return createRunSummaryOutput(_0x1ae263,'Agent\x20run\x20'+_0x1ae263[_0x3d7382(_0x539816._0x3a7cb7,0xc6,_0x539816._0x7b33ed,-_0x539816._0x3374df)]+_0x3d7382(0x4c,-_0x539816._0x51b8d8,-_0x539816._0x1e13c2,0x18));}catch(_0x13e641){if(_0x13e641 instanceof ToolExecutionError)throw _0x13e641;if(isAbortError(_0x13e641)||_0x4e6c73[_0x3bbcdf(0x3f8,_0x539816._0x273f93,0x4ea,0x315)]['aborted']||_0x4bcf46[_0x3bbcdf(_0x539816._0x34061c,0x3a3,0x2fc,0x37f)][_0x3d7382(_0x539816._0x4bf0fb,-_0x539816._0x1b7813,0x6e,-0xcb)]){const _0x21e35e=getRunTerminalErrorMessage(_0x1ae263['result'])??(_0x13e641 instanceof Error?_0x13e641[_0x3bbcdf(0x44c,0x349,0x44b,0x40f)]:String(_0x13e641)),_0x52ce8c=formatAbortedRunMessage(_0x1ae263[_0x3bbcdf(0x512,0x5e3,_0x539816._0x33e6ec,0x3dd)],_0x21e35e);_0x1ae263={..._0x1ae263,'status':_0x3d7382(_0x539816._0x51e856,0x108,-_0x539816._0x1eeeef,_0x539816._0x289f19),'errorMessage':_0x52ce8c};throw new ToolExecutionError(_0x52ce8c,{...createRunSummary(_0x1ae263),'aborted':!![],'errorMessage':_0x52ce8c});}const _0x517e16=getRunTerminalErrorMessage(_0x1ae263[_0x3bbcdf(_0x539816._0x5bb48d,0x2c9,_0x539816._0x2de23d,0x45c)])??(_0x13e641 instanceof Error?_0x13e641[_0x3bbcdf(_0x539816._0x162496,0x423,_0x539816._0x18e14d,0x43e)]:String(_0x13e641))??'Agent\x20run\x20'+_0x1ae263['runId']+_0x3bbcdf(_0x539816._0x5b47eb,_0x539816._0x2087d9,_0x539816._0x1dc896,_0x539816._0x543b84);_0x1ae263={..._0x1ae263,'status':_0x3d7382(_0x539816._0x55a997,0x8a,-_0x539816._0x3cb3a7,-_0x539816._0x466aca),'errorMessage':_0x517e16};throw new ToolExecutionError(_0x517e16,{...createRunSummary(_0x1ae263),'errorMessage':_0x517e16});}finally{_0x5c355c();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x2e05e5){return[createAssignTaskTool(_0x2e05e5)];}import*as _0x844928 from'path';function buildDescription2(_0x4af807){const _0xc8c66a={_0x13495b:0x361,_0x4d72f9:0x27a,_0x361c65:0x39f,_0x5c863a:0x414,_0x5a2681:0x3a0,_0x337201:0x2f8,_0x37881e:0x7b7,_0x5e79f1:0x662,_0xe49a3d:0x6b2,_0x3f6b97:0x5e2,_0x14500b:0x63c,_0x1f0427:0x5a4},_0x15d10b={_0x54cb62:0x3a7},_0x4d8765={_0x44f920:0x128};if(_0x4af807[_0xe9b3f4(0x38a,_0xc8c66a._0x13495b,_0xc8c66a._0x4d72f9,_0xc8c66a._0x361c65)]===0x0)return _0xe9b3f4(0x42e,0x2ea,0x353,_0xc8c66a._0x5c863a);function _0x41b744(_0x5db58d,_0x4eaecb,_0x17aab2,_0x160416){return _0x2fd7af(_0x160416-0x601,_0x4eaecb-_0x4d8765._0x44f920,_0x5db58d,_0x160416-0x119);}const _0x1768b0=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.',_0xe9b3f4(_0xc8c66a._0x5a2681,0x2a9,0x364,_0xc8c66a._0x337201),_0x41b744(_0xc8c66a._0x37881e,0x727,0x54f,0x678),_0x41b744(0x571,_0xc8c66a._0x5e79f1,_0xc8c66a._0xe49a3d,0x61c),..._0x4af807[_0x41b744(_0xc8c66a._0x3f6b97,_0xc8c66a._0x14500b,0x4fc,0x522)](_0x671e8a=>'-\x20'+_0x671e8a['name']+':\x20'+_0x671e8a[_0xe9b3f4(0x48e,0x34e,0x569,0x43d)])];function _0xe9b3f4(_0x390fd3,_0x143ddc,_0x3413aa,_0xa17c60){return _0x278b49(_0x390fd3-0xab,_0x143ddc-0x129,_0x390fd3-_0x15d10b._0x54cb62,_0x3413aa);}return _0x1768b0[_0x41b744(0x6b6,0x4a9,0x5a0,_0xc8c66a._0x1f0427)]('\x0a');}function createLoadSkillTool(_0x3a4d40){const _0x747ce5={_0x3cec51:0x481,_0x2f028a:0x497,_0x26be41:0x28c,_0x484405:0x3b0},_0x575907={_0x49909d:0x32c,_0x28d1a0:0x2ec,_0x2f0c56:0x230,_0x5b7cb2:0x1a2,_0x9ff668:0x12e,_0x46f6db:0x1aa,_0x178ec2:0x144,_0x4d0336:0x182,_0x35222c:0x6b,_0x4cadfb:0x8a,_0x699ca6:0x2e2,_0x55d015:0x25b,_0x53dfd4:0x1b0,_0x685574:0x300,_0x51e254:0x2a9,_0x40cd51:0x38f,_0x190cfe:0x38c,_0x5a713d:0x2a0,_0x189389:0x1b8,_0x314d6e:0x82,_0xfd52f5:0x2bf,_0x10b86c:0x2a0,_0x1650d7:0x186,_0xfdb272:0x260,_0x3eafff:0x340,_0x2aacea:0x90,_0x1027aa:0x34,_0x11dab3:0x155,_0x29ae52:0x48,_0x1174af:0x29,_0x1d7c12:0x2d7,_0x3753ea:0x1f4,_0x49188e:0x235,_0x1d843c:0x274,_0x42bc63:0x2bc,_0x499bdb:0x262},_0x1ae4ce={_0x497ecc:0x3e3,_0x2a076a:0x7c},_0x5a8bef={_0x3f9e32:0x2d7,_0x4a1019:0x74},_0x457e18={_0x4f89a5:0x93,_0x1dd3ea:0x11d,_0x370e90:0x4a8},_0x161689=new Map(_0x3a4d40['skills']['map'](_0x2ba6b0=>[_0x2ba6b0[_0x3f1456(0x3c7,0x3a1,0x2a8,0x4e7)],_0x2ba6b0]));function _0x3f1456(_0x55d7ab,_0x5ce2d0,_0x56c2f6,_0x478347){return _0x278b49(_0x55d7ab-_0x457e18._0x4f89a5,_0x5ce2d0-_0x457e18._0x1dd3ea,_0x5ce2d0-_0x457e18._0x370e90,_0x55d7ab);}const _0x55dc9b=buildDescription2(_0x3a4d40[_0x3f1456(0x330,0x398,_0x747ce5._0x3cec51,_0x747ce5._0x2f028a)]);function _0x577571(_0x47cd3f,_0x39a429,_0xce96e,_0x16a786){return _0x2fd7af(_0x47cd3f-_0x5a8bef._0x3f9e32,_0x39a429-0xe9,_0xce96e,_0x16a786-_0x5a8bef._0x4a1019);}return defineTool({'name':'LoadSkill','description':_0x55dc9b,'inputSchema':{'type':'object','properties':{'name':{'type':'string'}},'required':[_0x3f1456(_0x747ce5._0x26be41,0x3a1,0x45a,_0x747ce5._0x484405)]},async *'execute'(_0xf674bc){const _0x104e20={_0x5ec4ea:0x73,_0x1141ab:0x194,_0x1ea2a3:0x38};function _0x162ee2(_0x5262aa,_0x263fbe,_0xcc8f5e,_0x2f016a){return _0x577571(_0xcc8f5e-_0x104e20._0x5ec4ea,_0x263fbe-_0x104e20._0x1141ab,_0x2f016a,_0x2f016a-_0x104e20._0x1ea2a3);}const _0xde89af=_0x161689[_0x162ee2(_0x575907._0x49909d,_0x575907._0x28d1a0,_0x575907._0x2f0c56,_0x575907._0x5b7cb2)](_0xf674bc[_0x5bcd43(-0xf9,0xdc,-0xfc,-0x42)]);if(!_0xde89af){const _0xc729f4=Array[_0x5bcd43(0xc4,_0x575907._0x9ff668,_0x575907._0x46f6db,_0x575907._0x178ec2)](_0x161689[_0x5bcd43(-0x71,-_0x575907._0x4d0336,_0x575907._0x35222c,-_0x575907._0x4cadfb)]())['join'](',\x20');throw new ToolExecutionError(_0x162ee2(_0x575907._0x699ca6,0x209,0x2ec,_0x575907._0x55d015)+_0xf674bc[_0x162ee2(0x1d8,0x2c6,0x1f4,0x2b4)]+_0x162ee2(0x157,0x267,0x255,0x278)+_0xc729f4,{'name':_0xf674bc['name']});}const _0x2eaddc=await _0x3a4d40[_0x162ee2(_0x575907._0x53dfd4,_0x575907._0x685574,0x2ca,_0x575907._0x51e254)](_0xde89af),_0x16ff9d=_0xde89af[_0x162ee2(_0x575907._0x40cd51,_0x575907._0x190cfe,_0x575907._0x5a713d,0x37a)][_0x162ee2(0x283,0x21c,_0x575907._0x189389,_0x575907._0x314d6e)]??_0x844928['dirname'](_0xde89af[_0x162ee2(0x198,_0x575907._0xfd52f5,0x2a0,_0x575907._0x10b86c)]['path']),_0x575574=[_0x5bcd43(0xea,-0xc,_0x575907._0x1650d7,0x64)+_0x2eaddc['name'],'',_0x2eaddc['instructions'],'',_0x162ee2(0x1aa,0x1d6,_0x575907._0xfdb272,_0x575907._0x3eafff),_0x5bcd43(-_0x575907._0x2aacea,_0x575907._0x1027aa,-_0x575907._0x11dab3,-0x8c)+_0xde89af['source']['path'],'Base\x20directory:\x20'+_0x16ff9d][_0x5bcd43(_0x575907._0x11dab3,-_0x575907._0x29ae52,_0x575907._0x1174af,0xb7)]('\x0a');function _0x5bcd43(_0x18ce5e,_0x68cf1d,_0x4230bf,_0x2b11d5){return _0x3f1456(_0x4230bf,_0x2b11d5- -_0x1ae4ce._0x497ecc,_0x4230bf-_0x1ae4ce._0x2a076a,_0x2b11d5-0x10f);}return yield createToolOutput(_0x575574,{'id':_0x2eaddc['id'],'name':_0x2eaddc[_0x162ee2(0x1fb,_0x575907._0x1d7c12,_0x575907._0x3753ea,0x130)],'path':_0xde89af['source'][_0x162ee2(_0x575907._0x49188e,_0x575907._0x1d843c,_0x575907._0x42bc63,_0x575907._0x499bdb)],'baseDirectory':_0x16ff9d}),void 0x0;}});}var TODO_STATUSES=new Set([_0x278b49(-0x76,-0x1b,-0xb7,0x16),_0x2fd7af(-0x93,-0xe3,-0x16e,-0x13d),_0x278b49(-0xa0,-0x6b,-0x51,-0x11a)]),TODO_PRIORITIES=new Set([_0x278b49(0x150,-0xc9,0x2a,-0x8e),_0x2fd7af(-0x55,-0x5a,-0x25,-0x140),_0x278b49(-0x71,-0x6e,-0x122,-0x13c)]);function isTodoStatus(_0x2d0ded){const _0xfcd8ee={_0x5ca657:0x6a,_0x4d9919:0x148},_0x539f3={_0x586838:0xae},_0x38768f={_0x344fea:0x3};function _0x5ded8d(_0xb155a6,_0xf05749,_0x4a20c8,_0x474f46){return _0x2fd7af(_0x4a20c8-0x1c4,_0xf05749-0xe2,_0x474f46,_0x474f46-_0x38768f._0x344fea);}function _0x8ad750(_0x14f370,_0x31f398,_0x28e156,_0x1ecdc9){return _0x278b49(_0x14f370-0x125,_0x31f398-_0x539f3._0x586838,_0x1ecdc9-0x379,_0x14f370);}return typeof _0x2d0ded===_0x5ded8d(0x9d,-0x70,_0xfcd8ee._0x5ca657,0x7b)&&TODO_STATUSES[_0x5ded8d(0x16b,0x240,_0xfcd8ee._0x4d9919,0x39)](_0x2d0ded);}function isTodoPriority(_0x3269a0){const _0x27a414={_0x82cec4:0x644};function _0x4843d8(_0x12731b,_0x45b731,_0x3eca28,_0x325e17){return _0x278b49(_0x12731b-0x1d9,_0x45b731-0x179,_0x325e17-_0x27a414._0x82cec4,_0x3eca28);}return typeof _0x3269a0==='string'&&TODO_PRIORITIES[_0x4843d8(0x593,0x715,0x747,0x617)](_0x3269a0);}var TodoStore=class{[_0x2fd7af(0x6d,0x121,0x158,0x1a3)]=new Map();[_0x2fd7af(-0x92,-0x12b,-0x5e,-0x1be)](_0x546aeb){const _0x2bb260={_0x2ff11b:0x702,_0x526678:0x56e,_0x5af4de:0x633,_0x5dec4e:0x5c5,_0x148003:0x3a7,_0x16b98a:0x4ac},_0x5173eb={_0x93b266:0xed};function _0x4f0d5f(_0x67a62f,_0x1ee430,_0x620e32,_0x5d8c05){return _0x2fd7af(_0x5d8c05-0x5c6,_0x1ee430-_0x5173eb._0x93b266,_0x67a62f,_0x5d8c05-0x29);}function _0x56c415(_0x2b434b,_0x12e04c,_0x168133,_0x56adb4){return _0x2fd7af(_0x168133-0xa1,_0x12e04c-0xf7,_0x2b434b,_0x56adb4-0xf);}return this[_0x4f0d5f(_0x2bb260._0x2ff11b,0x683,_0x2bb260._0x526678,_0x2bb260._0x5af4de)][_0x4f0d5f(_0x2bb260._0x5dec4e,_0x2bb260._0x148003,0x43d,_0x2bb260._0x16b98a)](_0x546aeb)??[];}['setTodos'](_0x29b585,_0x13fcf4){const _0x5731ac={_0xfada00:0x2ea,_0x3a627c:0x204,_0x2cfe06:0x21f,_0xa29bec:0x323},_0x211df4={_0x343af4:0x463,_0x34e626:0x27},_0x3034bb={_0x41b0e8:0xbb};function _0x5f2226(_0x3fbd9b,_0x349183,_0x49dbe3,_0x27061a){return _0x278b49(_0x3fbd9b-_0x3034bb._0x41b0e8,_0x349183-0x143,_0x49dbe3-0x163,_0x349183);}function _0x4008a1(_0x33792d,_0x2e6c19,_0x428ed8,_0x3c6286){return _0x2fd7af(_0x428ed8-_0x211df4._0x343af4,_0x2e6c19-0xc2,_0x3c6286,_0x3c6286-_0x211df4._0x34e626);}this[_0x5f2226(_0x5731ac._0xfada00,_0x5731ac._0x3a627c,_0x5731ac._0x2cfe06,0x100)][_0x4008a1(0x466,0x247,_0x5731ac._0xa29bec,0x33a)](_0x29b585,_0x13fcf4);}[_0x278b49(-0x5e,-0x6,-0xaa,0x17)](_0x3e51f3){const _0x2af7ed={_0xdfd887:0x677,_0x341d2e:0x65d,_0x27e6c6:0x1ad,_0x5d2706:0x603,_0x35c46b:0x1be,_0xd2122a:0x285,_0xc4ac7a:0x299,_0x35cfc0:0x601,_0x1e35b7:0x669,_0x42d3a2:0x6f0},_0x27072e={_0x461fb2:0x1d8,_0x231205:0x153},_0x238a22={_0x18856b:0x2c4};function _0x9fe4be(_0x183307,_0x2f645e,_0x2b0665,_0x1fb2e3){return _0x2fd7af(_0x183307-_0x238a22._0x18856b,_0x2f645e-0x176,_0x2f645e,_0x1fb2e3-0x192);}const _0xcdf0fa=this[_0x3d8994(0x547,_0x2af7ed._0xdfd887,_0x2af7ed._0x341d2e,0x61e)](_0x3e51f3),_0x386abe={'total':_0xcdf0fa['length'],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x3d8994(_0x4fefa1,_0x55bbf0,_0x3ea563,_0xdcbcb4){return _0x278b49(_0x4fefa1-_0x27072e._0x461fb2,_0x55bbf0-_0x27072e._0x231205,_0x55bbf0-0x6ba,_0xdcbcb4);}for(const _0x9b5192 of _0xcdf0fa){if(_0x9b5192[_0x9fe4be(0x1b6,_0x2af7ed._0x27e6c6,0x192,0x12e)]===_0x3d8994(0x624,_0x2af7ed._0x5d2706,0x4e7,0x67f))_0x386abe[_0x9fe4be(_0x2af7ed._0x35c46b,_0x2af7ed._0xd2122a,0x2d4,_0x2af7ed._0xc4ac7a)]+=0x1;else{if(_0x9b5192['status']===_0x3d8994(0x55c,0x676,0x6d0,_0x2af7ed._0x35cfc0))_0x386abe['inProgress']+=0x1;else _0x386abe[_0x3d8994(0x752,_0x2af7ed._0x1e35b7,_0x2af7ed._0x42d3a2,0x6f0)]+=0x1;}}return _0x386abe;}};function validateTodos(_0x381f51){const _0x332f3b={_0x38a6aa:0x19c,_0x56191e:0x241,_0x4d3629:0x88,_0x544e67:0x45d,_0x30c50a:0x35d,_0x5778a4:0x3ea,_0x2e683a:0x2ab,_0x3b95df:0x232,_0x46c143:0x160,_0x338c59:0x168,_0x1d4e28:0x374,_0x24df57:0x2ae,_0x363492:0x159,_0x3a98ec:0x217,_0x3d2b18:0x25a,_0x1d5fb0:0x3b0,_0x132f8f:0x285,_0x310e3e:0x311,_0x213a5a:0x332,_0x4e0d06:0x399,_0x3ce4b2:0x164,_0x2fff80:0x25c,_0x2d7899:0x386,_0x154f3f:0x174,_0x44527e:0x26f,_0xee963e:0x171,_0x12cff5:0x13c,_0x10dbcb:0x3d9,_0x176a08:0x30a,_0x1b0cb4:0x3a3,_0x945229:0x340,_0x22775a:0x3ad,_0x3c9fde:0x42d,_0x2b8ea9:0x322,_0x477d60:0x1b6,_0x34d5dc:0x2bb,_0x127106:0x3d7,_0x56f179:0x46b,_0x587515:0x334,_0x19775e:0x408,_0x235b51:0x427,_0xa4ebd9:0x348,_0x3c709c:0x4e1,_0xa6f11f:0x3bd,_0x157def:0x2f8,_0x57d7a0:0x99,_0x20bff1:0x1c8,_0x56358d:0x447,_0x13c959:0x3b9,_0x3d7a60:0x35c,_0x169d3b:0x327,_0x5c1d32:0x151,_0x41a5c0:0x1b0,_0x1df5f4:0x273,_0xa08a21:0x168,_0x481a9b:0x22e,_0x2804d9:0x369,_0x142ebf:0x24f,_0x2f2905:0x172,_0x1776ef:0x49c,_0x1e4d27:0x179,_0x1edb54:0x12d},_0x60045a={_0x587b8f:0x149,_0x1d94bc:0x1c8,_0x1ce591:0x37a},_0x285a4e={_0x51948b:0x123,_0x7b45d0:0x2cb};if(!Array['isArray'](_0x381f51[_0x30a5c2(0x146,_0x332f3b._0x38a6aa,0x217,0x170)])||_0x381f51[_0x2b7c3c(_0x332f3b._0x56191e,0x13a,_0x332f3b._0x4d3629,0x168)][_0x30a5c2(0x45e,_0x332f3b._0x544e67,_0x332f3b._0x30c50a,_0x332f3b._0x5778a4)]===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':_0x2b7c3c(_0x332f3b._0x2e683a,0x270,_0x332f3b._0x3b95df,0x315)});function _0x2b7c3c(_0x158759,_0xd723e4,_0x2dc3c9,_0x2fdd7d){return _0x278b49(_0x158759-_0x285a4e._0x51948b,_0xd723e4-0x2f,_0x2fdd7d-_0x285a4e._0x7b45d0,_0x158759);}function _0x30a5c2(_0x381770,_0x50f189,_0x4bd780,_0x129f76){return _0x278b49(_0x381770-_0x60045a._0x587b8f,_0x50f189-_0x60045a._0x1d94bc,_0x4bd780-_0x60045a._0x1ce591,_0x381770);}for(let _0x5404f5=0x0;_0x5404f5<_0x381f51[_0x2b7c3c(0x239,0x1db,_0x332f3b._0x46c143,_0x332f3b._0x338c59)][_0x2b7c3c(_0x332f3b._0x1d4e28,0x28a,0x1d2,_0x332f3b._0x24df57)];_0x5404f5+=0x1){const _0x3fe880=_0x381f51[_0x30a5c2(0x175,_0x332f3b._0x363492,_0x332f3b._0x3a98ec,0x109)][_0x5404f5];if(!_0x3fe880||typeof _0x3fe880!==_0x2b7c3c(0x467,_0x332f3b._0x3d2b18,0x271,0x338))throw new ToolExecutionError(_0x2b7c3c(0x264,_0x332f3b._0x1d5fb0,0x161,_0x332f3b._0x132f8f)+(_0x5404f5+0x1)+_0x2b7c3c(0x2de,0x1f6,_0x332f3b._0x310e3e,_0x332f3b._0x213a5a),{'error':_0x2b7c3c(_0x332f3b._0x4e0d06,0x2dc,0x3ce,0x2ef)});if(typeof _0x3fe880['id']!==_0x30a5c2(0x1ea,0x35d,0x26f,0x1ec)||_0x3fe880['id'][_0x2b7c3c(0x1dd,_0x332f3b._0x3ce4b2,0x176,0x25b)]()[_0x2b7c3c(0x242,0x3c7,_0x332f3b._0x2fff80,0x2ae)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x5404f5+0x1)+':\x20id\x20required',{'error':_0x30a5c2(0x2db,0x4d8,0x423,_0x332f3b._0x2d7899)});if(typeof _0x3fe880['content']!==_0x30a5c2(_0x332f3b._0x154f3f,0x3a1,_0x332f3b._0x44527e,0x3af)||_0x3fe880[_0x30a5c2(0x314,_0x332f3b._0xee963e,0x228,_0x332f3b._0x12cff5)][_0x30a5c2(0x26b,_0x332f3b._0x10dbcb,_0x332f3b._0x176a08,0x203)]()[_0x30a5c2(0x258,_0x332f3b._0x1b0cb4,_0x332f3b._0x30c50a,0x2a8)]===0x0)throw new ToolExecutionError(_0x30a5c2(_0x332f3b._0x945229,_0x332f3b._0x22775a,0x334,_0x332f3b._0x3c9fde)+(_0x5404f5+0x1)+_0x2b7c3c(0x46c,0x32b,_0x332f3b._0x2b8ea9,0x357),{'error':'invalid_todo_content'});if(!isTodoStatus(_0x3fe880[_0x30a5c2(_0x332f3b._0x477d60,0x370,_0x332f3b._0x34d5dc,_0x332f3b._0x127106)]))throw new ToolExecutionError(_0x30a5c2(0x288,_0x332f3b._0x56f179,_0x332f3b._0x587515,0x2f2)+(_0x5404f5+0x1)+_0x30a5c2(0x3c3,_0x332f3b._0x19775e,_0x332f3b._0x235b51,_0x332f3b._0xa4ebd9),{'error':_0x2b7c3c(_0x332f3b._0x3c709c,_0x332f3b._0x310e3e,0x2a3,_0x332f3b._0xa6f11f)});if(!isTodoPriority(_0x3fe880[_0x2b7c3c(0x171,_0x332f3b._0x157def,_0x332f3b._0x57d7a0,_0x332f3b._0x20bff1)]))throw new ToolExecutionError(_0x30a5c2(_0x332f3b._0x56358d,0x243,0x334,_0x332f3b._0x13c959)+(_0x5404f5+0x1)+_0x2b7c3c(_0x332f3b._0x3d7a60,_0x332f3b._0x169d3b,0x3f0,0x3ef),{'error':'invalid_todo_priority'});}const _0x3c8283=_0x381f51[_0x2b7c3c(_0x332f3b._0x5c1d32,_0x332f3b._0x41a5c0,_0x332f3b._0x1df5f4,_0x332f3b._0xa08a21)]['map'](_0x1e2e1e=>_0x1e2e1e['id']);if(new Set(_0x3c8283)[_0x30a5c2(_0x332f3b._0x481a9b,_0x332f3b._0x2804d9,_0x332f3b._0x142ebf,_0x332f3b._0x2f2905)]!==_0x3c8283[_0x30a5c2(0x356,_0x332f3b._0x1776ef,0x35d,0x437)])throw new ToolExecutionError(_0x2b7c3c(_0x332f3b._0x1e4d27,0x2b5,_0x332f3b._0x1edb54,0x198),{'error':'duplicate_todo_ids'});}function createStatsProgress(_0x26ebcd){const _0x22c113={_0x7350a8:0x1cd,_0xb31442:0x221,_0x1af375:0x168,_0x432495:0x10e,_0xf44fa9:0xfd,_0x2765d7:0x15a,_0x1b11ce:0x17b,_0x24f23b:0xad},_0x29ecc0={_0x584f94:0xff,_0x39e3a1:0xe1},_0x5b46e0={_0x240416:0x92};function _0x5cdcde(_0x568ed9,_0x50c63f,_0x2b80ba,_0x21c2ce){return _0x2fd7af(_0x50c63f-_0x5b46e0._0x240416,_0x50c63f-0x8d,_0x568ed9,_0x21c2ce-0x16c);}function _0x6cd5a6(_0x2c8b03,_0x2c0411,_0x38fdc4,_0xf6f7ae){return _0x2fd7af(_0x38fdc4-_0x29ecc0._0x584f94,_0x2c0411-0x4b,_0x2c0411,_0xf6f7ae-_0x29ecc0._0x39e3a1);}return _0x26ebcd[_0x6cd5a6(-_0x22c113._0x7350a8,0x90,-0xad,-0x1c)]>0x0?Math[_0x6cd5a6(0x10f,_0x22c113._0xb31442,_0x22c113._0x1af375,_0x22c113._0x432495)](_0x26ebcd[_0x5cdcde(-_0x22c113._0xf44fa9,-0xe,-0x129,-0xd9)]/_0x26ebcd[_0x6cd5a6(-_0x22c113._0x2765d7,-_0x22c113._0x1b11ce,-_0x22c113._0x24f23b,-0x118)]*0x64)+'%':'0%';}function createReminderItems(_0x4ef077){const _0x22ed2c={_0x48d581:0xde,_0x4503d7:0xd,_0x27609b:0x8e},_0xa9b608={_0x3791b9:0x63,_0x215ee8:0x8c,_0x5d4356:0x316};function _0x53dba6(_0x388447,_0x4322ec,_0xd1761a,_0x25a87e){return _0x2fd7af(_0x388447-0x1,_0x4322ec-0x4a,_0x4322ec,_0x25a87e-0x1d2);}function _0x517b47(_0x2e886b,_0x3180f1,_0x13ffbb,_0x5e240f){return _0x278b49(_0x2e886b-_0xa9b608._0x3791b9,_0x3180f1-_0xa9b608._0x215ee8,_0x5e240f-_0xa9b608._0x5d4356,_0x2e886b);}return _0x4ef077[_0x53dba6(-_0x22ed2c._0x48d581,_0x22ed2c._0x4503d7,-_0x22ed2c._0x27609b,-0x168)](_0x1346b6=>({'content':_0x1346b6[_0x517b47(0x2e3,0x188,0x115,0x1c4)],'status':_0x1346b6[_0x53dba6(-0x10d,-0x14c,-0x223,-0x180)],'id':_0x1346b6['id']}));}function createStructuredResult(_0x2e6339,_0x321044,_0x83f658,_0x342fe6){const _0x17afa1={_0x43e3d1:0x7f,_0x1210d0:0x128,_0x4a08b4:0xa3,_0x2bd3e9:0x18d},_0x550c01={_0x111eed:0x13c,_0x1b2e9a:0x11};function _0x4d41b4(_0x1f8f14,_0x3fc59b,_0x2f5e51,_0xfc0fcd){return _0x278b49(_0x1f8f14-0x1b7,_0x3fc59b-0x1cf,_0x2f5e51-0x1aa,_0x3fc59b);}function _0xe0db94(_0x4a1882,_0x101dee,_0xa8c50f,_0x4e6892){return _0x278b49(_0x4a1882-0x140,_0x101dee-_0x550c01._0x111eed,_0x4a1882-_0x550c01._0x1b2e9a,_0x101dee);}return{'allCompleted':_0x342fe6,'items':_0x321044[_0xe0db94(-_0x17afa1._0x43e3d1,0x25,-0x132,-0x17)](_0x3da4ec=>({'id':_0x3da4ec['id'],'content':_0x3da4ec[_0xe0db94(-0x141,-0x1e3,-0xe6,-0x1d2)],'status':_0x3da4ec['status'],'priority':_0x3da4ec[_0x4d41b4(0xa5,-0x89,0xa7,0x159)],'createdAt':_0x3da4ec['createdAt']})),'progress':createStatsProgress(_0x83f658),'recentChanges':!![],'sessionId':_0x2e6339,'stats':_0x83f658,'todosWritten':_0x321044[_0x4d41b4(_0x17afa1._0x1210d0,_0x17afa1._0x4a08b4,_0x17afa1._0x2bd3e9,0xdf)]};}function createOutputText(_0x273532,_0x1a186d){const _0x461d58={_0x4606c3:0x10c,_0xe30976:0x193,_0xad2d7a:0x182,_0x6442be:0x1f7,_0x53ab8d:0xd4,_0xb800cc:0x67,_0x2dcb07:0x2f5,_0x4589ab:0x471,_0x16dcfb:0x220,_0x538356:0x276,_0x5dbcb4:0x19d,_0x201347:0x30d,_0x444719:0x2c9,_0x134796:0x3cf,_0xd470a:0x3f8,_0x19621e:0x304,_0x33c621:0x39e},_0x532c31={_0x455b8e:0x293,_0x4ca231:0xff},_0xb69185={_0x413fb0:0x1a4};function _0x33ec3d(_0x3a0311,_0x3af27f,_0x1acda4,_0x14f1ff){return _0x2fd7af(_0x1acda4-0x5,_0x3af27f-0xee,_0x3af27f,_0x14f1ff-_0xb69185._0x413fb0);}function _0x225961(_0x3f9fe6,_0xb544f9,_0x3282c8,_0x458864){return _0x2fd7af(_0x3f9fe6-_0x532c31._0x455b8e,_0xb544f9-0x1c,_0xb544f9,_0x458864-_0x532c31._0x4ca231);}const _0x338dd9=JSON[_0x225961(_0x461d58._0x4606c3,0x10e,_0x461d58._0xe30976,_0x461d58._0xad2d7a)](createReminderItems(_0x273532));if(_0x1a186d)return _0x33ec3d(0xec,_0x461d58._0x6442be,_0x461d58._0x53ab8d,0x60)+_0x273532[_0x33ec3d(-0x15c,0x39,-_0x461d58._0xb800cc,-0x22)]+_0x225961(0x332,_0x461d58._0x2dcb07,_0x461d58._0x4589ab,_0x461d58._0x16dcfb)+_0x338dd9+_0x225961(_0x461d58._0x538356,0x19f,_0x461d58._0x5dbcb4,_0x461d58._0x201347);return _0x225961(_0x461d58._0x444719,_0x461d58._0x134796,_0x461d58._0xd470a,0x1cc)+_0x338dd9+_0x225961(0x276,0x239,_0x461d58._0x19621e,_0x461d58._0x33c621);}function createTodoWriteTool(_0x43ba9c=new TodoStore()){const _0x3ea702={_0x298294:0x18a,_0x2612c8:0x4b3,_0x4a10a9:0x582,_0x52e193:0x4da,_0xd6a127:0x4a9,_0x913a95:0x4ac,_0x5535ef:0x417,_0x4b951f:0x32c,_0x27ceb5:0x19a,_0x477177:0x233,_0x2bfc09:0x1e1,_0x43b7d4:0x253,_0x19bee1:0x1ba,_0x2e73f2:0x2a7,_0xfdc619:0x33b,_0x160dfa:0x27b,_0x2597ad:0x338,_0xa97ed5:0x1d8,_0x4819be:0x29f,_0x34fe9a:0x1b5},_0x409220={_0x439526:0x58f,_0x44c5c4:0x6a9,_0x5221f8:0x6aa,_0x63da3a:0x504,_0x4e5d5f:0x5d0,_0xce8b4b:0x545,_0x43cbfb:0x70e,_0x36739e:0x577},_0x3d5c36={_0x21406:0x9d},_0x35cd10={_0x1c8cd4:0xa1,_0x2d7e26:0x5},_0x17c515={_0x595f3b:0x3ad,_0x4aa1bb:0xd8};function _0x386f18(_0x7fcb58,_0x3ec9c5,_0x229d2a,_0xc03bfa){return _0x2fd7af(_0xc03bfa-_0x17c515._0x595f3b,_0x3ec9c5-_0x17c515._0x4aa1bb,_0x3ec9c5,_0xc03bfa-0x1ac);}function _0x42ed7c(_0x56289a,_0x26a633,_0x48c6f5,_0x70e3c){return _0x2fd7af(_0x56289a-0x495,_0x26a633-_0x35cd10._0x1c8cd4,_0x48c6f5,_0x70e3c-_0x35cd10._0x2d7e26);}return defineTool({'name':_0x42ed7c(0x3a8,0x47b,0x287,0x286),'description':_0x386f18(_0x3ea702._0x298294,0x3f0,0x33d,0x2c7),'inputSchema':{'type':_0x42ed7c(_0x3ea702._0x2612c8,0x47f,_0x3ea702._0x4a10a9,_0x3ea702._0x52e193),'properties':{'todos':{'type':_0x42ed7c(_0x3ea702._0xd6a127,0x538,_0x3ea702._0x913a95,_0x3ea702._0x5535ef),'items':{'type':'object','properties':{'content':{'type':_0x386f18(0x1aa,_0x3ea702._0x4b951f,_0x3ea702._0x27ceb5,0x253)},'status':{'type':_0x386f18(_0x3ea702._0x477177,_0x3ea702._0x2bfc09,0x1e1,_0x3ea702._0x43b7d4)},'priority':{'type':_0x386f18(_0x3ea702._0x19bee1,_0x3ea702._0x2e73f2,0x224,0x253)},'id':{'type':'string'},'createdAt':{'type':_0x42ed7c(_0x3ea702._0xfdc619,0x247,_0x3ea702._0x160dfa,_0x3ea702._0x2597ad)}},'required':['content',_0x386f18(_0x3ea702._0x298294,_0x3ea702._0xa97ed5,0x19e,_0x3ea702._0x4819be),'priority','id']}}},'required':[_0x386f18(_0x3ea702._0x34fe9a,0x1b2,0x334,0x1fb)]},async *'execute'(_0x4edaad,_0x564ae8){const _0x39d951={_0x12ffb1:0x376},_0x1c7c62=_0x4edaad;validateTodos(_0x1c7c62);const _0x3386d1=_0x564ae8['sessionId']||'default',_0x4d72fb=new Date()[_0x254171(0x681,_0x409220._0x439526,_0x409220._0x44c5c4,_0x409220._0x5221f8)](),_0x2aa59e=_0x1c7c62['todos']['map'](_0x2e6c39=>({'id':_0x2e6c39['id'],'content':_0x2e6c39['content'],'status':_0x2e6c39['status'],'priority':_0x2e6c39['priority'],'sessionId':_0x3386d1,'createdAt':_0x2e6c39['createdAt']||_0x4d72fb,'updatedAt':_0x4d72fb}));function _0xfd7156(_0x163dc1,_0x3c5cab,_0x11006c,_0x38ae32){return _0x42ed7c(_0x11006c- -_0x39d951._0x12ffb1,_0x3c5cab-0x2,_0x38ae32,_0x38ae32-0x107);}function _0x254171(_0x39e1a1,_0x3d6776,_0x500a63,_0x5c2838){return _0x386f18(_0x39e1a1-_0x3d5c36._0x21406,_0x3d6776,_0x500a63-0xe1,_0x500a63-0x370);}_0x43ba9c[_0x254171(_0x409220._0x63da3a,_0x409220._0x4e5d5f,0x5a1,0x55b)](_0x3386d1,_0x2aa59e);const _0x56ffdf=_0x43ba9c['getStats'](_0x3386d1),_0x374e0e=_0x2aa59e['length']>0x0&&_0x2aa59e[_0x254171(_0x409220._0xce8b4b,_0x409220._0x43cbfb,0x683,_0x409220._0x36739e)](_0xb8bf5c=>_0xb8bf5c[_0x254171(0x64d,0x643,0x60f,0x672)]===_0x254171(0x5a2,0x60d,0x67d,0x677));return createToolOutput(createOutputText(_0x2aa59e,_0x374e0e),createStructuredResult(_0x3386d1,_0x2aa59e,_0x56ffdf,_0x374e0e));}});}import{mkdir as _0x2a006e,writeFile as _0x3dc82c}from'fs/promises';import*as _0x4e6987 from'path';function sanitizeFileName(_0x2bc146){const _0x137618={_0x2a6032:0x1c,_0x62ec13:0x2e},_0x5eca3b={_0x52177b:0x1a1,_0x58cf23:0x1d};function _0x245f0f(_0x20c401,_0x1414b4,_0x3b2885,_0x2e0081){return _0x278b49(_0x20c401-_0x5eca3b._0x52177b,_0x1414b4-_0x5eca3b._0x58cf23,_0x3b2885-0x9,_0x2e0081);}return _0x2bc146[_0x245f0f(-_0x137618._0x2a6032,-_0x137618._0x62ec13,-0x15e,-0x147)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x132063,_0x5234ec){const _0x13db8f={_0x3b1c55:0x441,_0x4131be:0x2d2,_0x5d44b3:0x37f,_0x2d7041:0x40c,_0x3cc51e:0x546,_0x38ebc9:0x4b4,_0x46962a:0x51d,_0x134a54:0x490,_0xb4d605:0x3f2,_0x579517:0x398,_0x26dfac:0x649,_0x5aa9ba:0x610,_0x46a85d:0x6c3,_0x9cc904:0x5a1,_0xa6ef89:0x472,_0x3b30e3:0x3e5,_0x35766f:0x4d3,_0x146058:0x39c,_0x217e67:0x463,_0x40eb12:0x488,_0x1b7e99:0x32a,_0x2a7a5f:0x2ed,_0x1106ef:0x4db,_0x2b6a64:0x420,_0x4daef6:0x313,_0x289b30:0x512,_0xe055e7:0x48c,_0x497c66:0x566,_0x3a8a67:0x4de,_0x433ba8:0x3f7,_0x3de75e:0x398,_0x28d3e9:0x3c2,_0x23c9e3:0x3bb,_0x3271a8:0x44b,_0x17b788:0x59b,_0xe35757:0x3c7,_0x360df3:0x475,_0x44af0a:0x4f6,_0x1a3354:0x4d5,_0x451ac3:0x3a2,_0x2a544e:0x5a6,_0x3ec924:0x498,_0x3bd22a:0x51c,_0x1cf649:0x4f8,_0x1e7364:0x494,_0x533db8:0x39c},_0x87f4c9={_0x5cc380:0x161,_0x4327b7:0x65},_0x5b8558={_0x5684a7:0x17f},{maxBytes:_0x197630,sessionDir:_0x27ee2c}=_0x5234ec;if(!_0x132063['output']||Buffer[_0x1fd891(_0x13db8f._0x3b1c55,_0x13db8f._0x4131be,0x44f,_0x13db8f._0x5d44b3)](_0x132063['output'],_0x2aae66(0x401,0x39a,0x55f,0x4d7))<=_0x197630)return _0x132063;function _0x1fd891(_0x2a637d,_0x1b2036,_0x40f8bf,_0x31daf4){return _0x278b49(_0x2a637d-_0x5b8558._0x5684a7,_0x1b2036-0x1e2,_0x31daf4-0x48b,_0x2a637d);}const _0x4ebd0a=Buffer[_0x1fd891(0x2e0,_0x13db8f._0x2d7041,0x40b,0x37f)](_0x132063['output'],_0x2aae66(_0x13db8f._0x3cc51e,0x597,0x558,0x4d7));if(!_0x27ee2c){const _0x895658=_0x132063['output'][_0x1fd891(0x3a6,_0x13db8f._0x38ebc9,_0x13db8f._0x46962a,_0x13db8f._0x134a54)](0x0,_0x197630);return{..._0x132063,'output':_0x895658+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x197630+_0x1fd891(0x4ce,_0x13db8f._0xb4d605,0x2e5,_0x13db8f._0x579517)+_0x4ebd0a+_0x2aae66(_0x13db8f._0x26dfac,_0x13db8f._0x5aa9ba,_0x13db8f._0x46a85d,_0x13db8f._0x9cc904)),'meta':{..._0x132063[_0x1fd891(0x370,0x404,0x36d,_0x13db8f._0xa6ef89)],'truncated':!![],'originalBytes':_0x4ebd0a,'transforms':[..._0x132063[_0x2aae66(_0x13db8f._0x3b30e3,0x5ef,0x563,_0x13db8f._0x35766f)][_0x2aae66(0x5ac,_0x13db8f._0x146058,_0x13db8f._0x217e67,_0x13db8f._0x40eb12)],_0x2aae66(_0x13db8f._0x1b7e99,0x3fb,0x4ad,0x40e)]}};}const _0x40c7fe=_0x132063[_0x2aae66(_0x13db8f._0x2a7a5f,_0x13db8f._0x1106ef,0x4f0,_0x13db8f._0x2b6a64)]+'_'+sanitizeFileName(_0x132063[_0x1fd891(0x457,_0x13db8f._0x4daef6,0x2dd,0x3b8)])+_0x2aae66(_0x13db8f._0x289b30,0x4f2,0x3fc,_0x13db8f._0xe055e7),_0xed339b=_0x4e6987[_0x2aae66(0x402,0x4a0,_0x13db8f._0x497c66,_0x13db8f._0x3a8a67)](_0x27ee2c,_0x40c7fe);await _0x2a006e(_0x27ee2c,{'recursive':!![]});function _0x2aae66(_0x1b7223,_0x8fb52b,_0x497d4b,_0x335e42){return _0x278b49(_0x1b7223-_0x87f4c9._0x5cc380,_0x8fb52b-_0x87f4c9._0x4327b7,_0x335e42-0x4ec,_0x1b7223);}await _0x3dc82c(_0xed339b,_0x132063[_0x1fd891(0x590,0x31f,_0x13db8f._0x433ba8,0x44b)],_0x2aae66(_0x13db8f._0x3de75e,0x52e,_0x13db8f._0x28d3e9,0x4d7));let _0x4d78a8=_0x132063[_0x1fd891(0x335,_0x13db8f._0x23c9e3,0x4b6,_0x13db8f._0x3271a8)]['slice'](0x0,_0x197630);const _0x12aeef=_0x4d78a8['lastIndexOf']('\x0a');_0x12aeef>_0x197630*0.5&&(_0x4d78a8=_0x4d78a8[_0x2aae66(0x535,_0x13db8f._0x17b788,_0x13db8f._0x433ba8,0x4f1)](0x0,_0x12aeef));const _0x4d4a61=['','<system-reminder>',_0x1fd891(_0x13db8f._0xe35757,0x37a,0x53e,_0x13db8f._0x360df3)+_0x197630+'\x20bytes\x20(total:\x20'+_0x4ebd0a+_0x1fd891(_0x13db8f._0x44af0a,0x40e,0x33f,0x437),'Full\x20output\x20saved\x20to:\x20'+_0xed339b,_0x2aae66(0x347,_0x13db8f._0x1a3354,_0x13db8f._0x451ac3,0x3c0),_0x1fd891(_0x13db8f._0x2a544e,0x5bb,_0x13db8f._0x3ec924,_0x13db8f._0x3bd22a)][_0x2aae66(_0x13db8f._0x1cf649,0x4b7,0x3a8,0x4de)]('\x0a');return{..._0x132063,'output':_0x4d78a8+_0x4d4a61,'meta':{..._0x132063[_0x1fd891(0x5a2,_0x13db8f._0x3b1c55,_0x13db8f._0x1e7364,0x472)],'truncated':!![],'originalBytes':_0x4ebd0a,'transforms':[..._0x132063['meta']['transforms'],_0x1fd891(_0x13db8f._0x533db8,0x427,0x39f,0x3ad)]}};}import{readFile as _0x1cbb23,stat as _0x1db3a5}from'fs/promises';import*as _0x46364f from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x278b49(0x37,-0xa0,-0x82,0x82),_0x2fd7af(-0x25,0xab,-0xac,-0xee),_0x278b49(-0x1f,-0x1cc,-0x122,-0x1ef),_0x2fd7af(-0x49,0x8f,-0xfa,-0x18d)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x341538,_0x260adc){const _0x472236={_0x2889ce:0x1d8,_0x470b45:0x2f7,_0x57af0b:0x2a4,_0x46ffbc:0x5ff,_0x54755d:0x442,_0x4f3744:0xd9,_0x4c421a:0x30b,_0x591a2a:0x2d7,_0x3ffe7b:0x229,_0x67a0e8:0x202,_0x3e3e53:0x57f,_0x477834:0x145,_0x1dbd54:0x32e,_0x303aa8:0x472,_0x253192:0x415,_0x30a648:0x2fd,_0x12036f:0x4dc,_0x1c1e61:0x540,_0x442528:0x57f,_0x1ad972:0x606,_0x4b9b40:0x46a,_0x250960:0x4b6,_0x43c02f:0x58b,_0x577428:0x427,_0x4cc46d:0x411,_0x1bde01:0x5dd,_0x24f65f:0x34b,_0x3f11b0:0x2b3,_0x466af7:0x1b0,_0x3f0643:0x48f,_0x5a8b5e:0x35d,_0x4a8090:0x3ba,_0x1da7a5:0x2d9,_0x178581:0x336,_0x3bd36d:0x2ca,_0xe90238:0x358,_0x35eeb6:0x24e,_0x4736ff:0x245,_0x2a2cce:0x2db,_0x10a036:0x46e,_0x2a7c67:0x637},_0x19313b={_0x289a6b:0x16b},_0x4f60db={_0x4ce7ca:0x55,_0x2e74b7:0x84};if(_0x341538[_0x4cb2a3(0x392,0x439,0x506,0x37d)](0x0,0x8)[_0x2a8a23(_0x472236._0x2889ce,_0x472236._0x470b45,_0x472236._0x57af0b,0x202)](PNG_SIGNATURE))return'image/png';if(_0x341538[0x0]===0xff&&_0x341538[0x1]===0xd8&&_0x341538[0x2]===0xff)return _0x4cb2a3(_0x472236._0x46ffbc,0x517,_0x472236._0x54755d,0x4a4);const _0x414249=_0x341538[_0x2a8a23(0x223,0x1ec,_0x472236._0x4f3744,_0x472236._0x4c421a)](0x0,0x6)[_0x2a8a23(_0x472236._0x591a2a,0x28f,_0x472236._0x3ffe7b,_0x472236._0x67a0e8)](_0x4cb2a3(0x4e5,_0x472236._0x3e3e53,0x637,0x5f8));if(_0x414249===_0x2a8a23(0x247,0x214,0x103,_0x472236._0x477834)||_0x414249==='GIF89a')return _0x2a8a23(0x377,0x3fa,0x34d,0x333);function _0x2a8a23(_0x21690c,_0x12b77f,_0x4df123,_0x19078c){return _0x2fd7af(_0x12b77f-0x344,_0x12b77f-_0x4f60db._0x4ce7ca,_0x21690c,_0x19078c-_0x4f60db._0x2e74b7);}if(_0x341538[_0x4cb2a3(_0x472236._0x1dbd54,0x439,0x40f,0x331)](0x0,0x4)['toString']('ascii')===_0x2a8a23(_0x472236._0x303aa8,_0x472236._0x253192,0x43b,0x429)&&_0x341538[_0x2a8a23(0x14a,0x1ec,_0x472236._0x30a648,0xff)](0x8,0xc)[_0x4cb2a3(0x514,_0x472236._0x12036f,0x5d5,_0x472236._0x1c1e61)](_0x4cb2a3(0x5c7,_0x472236._0x442528,0x52c,_0x472236._0x1ad972))==='WEBP')return _0x4cb2a3(_0x472236._0x4b9b40,0x58f,0x48a,_0x472236._0x250960);const _0x55105e=_0x46364f[_0x4cb2a3(0x573,0x4c1,_0x472236._0x43c02f,0x3a8)](_0x260adc)[_0x2a8a23(_0x472236._0x577428,0x3cd,0x2e3,_0x472236._0x4cc46d)]();if(_0x55105e===_0x4cb2a3(_0x472236._0x1bde01,0x626,0x6d3,0x6fa))return _0x2a8a23(_0x472236._0x24f65f,_0x472236._0x3f11b0,_0x472236._0x466af7,0x196);if(_0x55105e===_0x4cb2a3(0x571,0x48a,_0x472236._0x3f0643,_0x472236._0x5a8b5e)||_0x55105e===_0x2a8a23(0x2ed,_0x472236._0x4a8090,_0x472236._0x1da7a5,_0x472236._0x178581))return _0x2a8a23(0x380,_0x472236._0x3bd36d,_0x472236._0xe90238,_0x472236._0x35eeb6);function _0x4cb2a3(_0x5cb28b,_0x5780ca,_0x36fcc2,_0x4d260d){return _0x278b49(_0x5cb28b-0x1aa,_0x5780ca-_0x19313b._0x289a6b,_0x5780ca-0x542,_0x4d260d);}if(_0x55105e===_0x2a8a23(0x262,_0x472236._0x4736ff,0x2c7,0x18e))return'image/gif';if(_0x55105e===_0x2a8a23(0x260,0x32e,_0x472236._0x2a2cce,0x25b))return _0x4cb2a3(_0x472236._0x10a036,0x58f,0x483,_0x472236._0x2a7c67);return void 0x0;}function _0x16a6(_0x4f77fa,_0x2ed78e){_0x4f77fa=_0x4f77fa-0x17a;const _0x18c5ed=_0x18c5();let _0x16a619=_0x18c5ed[_0x4f77fa];if(_0x16a6['OKzcQM']===undefined){var _0x4aac96=function(_0xf7f819){const _0xa5f78b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1bcfec='',_0x5ae30a='';for(let _0x3d9279=0x0,_0x4b0f89,_0x44e1e2,_0x4d3a21=0x0;_0x44e1e2=_0xf7f819['charAt'](_0x4d3a21++);~_0x44e1e2&&(_0x4b0f89=_0x3d9279%0x4?_0x4b0f89*0x40+_0x44e1e2:_0x44e1e2,_0x3d9279++%0x4)?_0x1bcfec+=String['fromCharCode'](0xff&_0x4b0f89>>(-0x2*_0x3d9279&0x6)):0x0){_0x44e1e2=_0xa5f78b['indexOf'](_0x44e1e2);}for(let _0x29ac84=0x0,_0x35ce3c=_0x1bcfec['length'];_0x29ac84<_0x35ce3c;_0x29ac84++){_0x5ae30a+='%'+('00'+_0x1bcfec['charCodeAt'](_0x29ac84)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5ae30a);};_0x16a6['stXqeL']=_0x4aac96,_0x16a6['EJHSbd']={},_0x16a6['OKzcQM']=!![];}const _0x3900c3=_0x18c5ed[0x0],_0x5251c1=_0x4f77fa+_0x3900c3,_0x155d81=_0x16a6['EJHSbd'][_0x5251c1];return!_0x155d81?(_0x16a619=_0x16a6['stXqeL'](_0x16a619),_0x16a6['EJHSbd'][_0x5251c1]=_0x16a619):_0x16a619=_0x155d81,_0x16a619;}function normalizeDetail(_0x140b23){const _0x23ba00={_0x419151:0x762,_0x283148:0x6e0,_0x3e341c:0x7c7,_0x5bc14b:0x647,_0x39e48b:0x764},_0xac985d={_0x29f818:0x1a5,_0x5137b8:0x1d5},_0x559b19={_0x5e4d94:0x674};function _0x141fd7(_0x2af3db,_0x578069,_0x5b4afe,_0x633513){return _0x278b49(_0x2af3db-0x189,_0x578069-0x100,_0x578069-_0x559b19._0x5e4d94,_0x2af3db);}function _0x39a1f7(_0x1075e2,_0x4487a7,_0x4f2355,_0x1da5ea){return _0x2fd7af(_0x4487a7-0x657,_0x4487a7-_0xac985d._0x29f818,_0x4f2355,_0x1da5ea-_0xac985d._0x5137b8);}if(_0x140b23===void 0x0)return void 0x0;const _0x27e734=_0x140b23['trim']()[_0x39a1f7(_0x23ba00._0x419151,_0x23ba00._0x283148,_0x23ba00._0x3e341c,0x6fe)]();if(!SUPPORTED_DETAILS[_0x141fd7(0x631,_0x23ba00._0x5bc14b,_0x23ba00._0x39e48b,0x78b)](_0x27e734))throw new ToolExecutionError('Unsupported\x20image\x20detail\x20level:\x20'+_0x140b23,{'detail':_0x140b23});return _0x27e734;}function createViewFileTool(_0x8452dc={}){const _0x5b0072={_0x3cefbb:0x745,_0x4baa98:0x633,_0x4dc419:0x70e,_0x35488f:0x5f4,_0x15bcc0:0x5a9,_0x3a0a0a:0x71a,_0x128ccb:0x794,_0x523e85:0x3cd,_0x1c4993:0x47c,_0x52e1ca:0x410,_0x44dacd:0x44d,_0x917549:0x513,_0x236dfa:0x583,_0x48b7b3:0x50d,_0x4337a4:0x2d1,_0x5cd206:0x453,_0x105420:0x28f,_0x458b97:0x495,_0x254165:0x395,_0xaf4bd9:0x4dc,_0x151149:0x5dd,_0x3ecfd4:0x6da},_0x105d2a={_0x354713:0xf3,_0x138958:0x7f,_0x1c2b2e:0xe2,_0x5b2f7a:0x144,_0x1d1b95:0xae,_0x1cb65f:0x7b8,_0xc59e60:0x7ca,_0x3507c2:0x743,_0x3688e0:0x16b,_0x518de8:0x83,_0x37cb94:0x221,_0x24e5d2:0x1c4,_0x4ee6d7:0x95,_0x3f8787:0x665,_0x212559:0x5f4,_0x449168:0x4d0,_0x301516:0x51a,_0x2b416f:0x6d1,_0xbb117e:0x72c,_0x2e8641:0x788,_0x5c3d6b:0x525,_0x2f1829:0x5af,_0x4e09be:0x575,_0x5cf49a:0x6f0,_0x2f777c:0x5c2,_0x3d3aec:0x769,_0x51f1a5:0x7ae,_0x55ad2f:0x72f,_0x5c24b1:0x1bc,_0x3060c1:0x99,_0x2ff484:0x68a,_0x2357c2:0x579,_0x15212f:0x79d,_0x33c9be:0x85c,_0x4291c2:0x7aa,_0x54022d:0x67e,_0x56d7c0:0x814,_0x150cc7:0x8a5,_0x3e3d3e:0x198,_0x28cab8:0x2c0,_0x3eb354:0xb7,_0x117465:0x4e,_0x2f690f:0x139,_0x154a66:0x6be,_0x5707c4:0x64e,_0x5e7fea:0x5ca,_0x53377f:0x185,_0x2c7c2f:0x24f,_0x131277:0xad,_0x4115aa:0x86,_0x33fd82:0x4e1,_0x5f1fd2:0x507,_0x1b5798:0x602,_0x59b2df:0x4e,_0x51b358:0x14,_0x1b9d15:0x3a},_0x3c692c={_0x56fcf7:0x1b0,_0x2737cf:0x8a,_0x5a84fd:0x179},_0x460828={_0x554f06:0x669,_0x5ee7aa:0x191,_0x34912e:0x12},_0x34122c={_0x367526:0x146,_0x3bcb21:0x4a0},_0x51a4fb=_0x46364f[_0x197ce2(_0x5b0072._0x3cefbb,_0x5b0072._0x4baa98,_0x5b0072._0x4dc419,_0x5b0072._0x35488f)](_0x8452dc[_0x197ce2(_0x5b0072._0x15bcc0,0x624,0x6bc,_0x5b0072._0x3a0a0a)]??process['cwd']()),_0x167bb9=(_0x8452dc[_0x197ce2(0x6ec,0x7a5,0x6dc,_0x5b0072._0x128ccb)]??[])[_0x3f9b72(_0x5b0072._0x523e85,_0x5b0072._0x1c4993,_0x5b0072._0x52e1ca,0x2cf)](_0x41a98e=>_0x46364f[_0x197ce2(0x68d,0x69b,0x70e,0x825)](_0x41a98e)),_0xbee93b=_0x8452dc['maxBytes']??DEFAULT_MAX_BYTES,_0x2c9960=_0x8452dc[_0x197ce2(0x5c7,_0x5b0072._0x44dacd,_0x5b0072._0x917549,_0x5b0072._0x236dfa)]??'ViewFile';function _0x3f9b72(_0x444baa,_0x3d5a92,_0x23fcad,_0x3acc90){return _0x278b49(_0x444baa-_0x34122c._0x367526,_0x3d5a92-0x14b,_0x23fcad-_0x34122c._0x3bcb21,_0x444baa);}function _0x197ce2(_0x1b99f1,_0x3e972c,_0x2515a6,_0xe32c85){return _0x2fd7af(_0x2515a6-_0x460828._0x554f06,_0x3e972c-_0x460828._0x5ee7aa,_0x3e972c,_0xe32c85-_0x460828._0x34912e);}return defineTool({'name':_0x2c9960,'description':_0x197ce2(0x668,0x451,0x53b,0x48b),'inputSchema':{'type':_0x3f9b72(0x553,0x554,_0x5b0072._0x48b7b3,0x511),'properties':{'path':{'type':_0x3f9b72(_0x5b0072._0x4337a4,0x473,0x395,_0x5b0072._0x5cd206)},'detail':{'type':_0x3f9b72(_0x5b0072._0x105420,_0x5b0072._0x458b97,_0x5b0072._0x254165,_0x5b0072._0xaf4bd9)}},'required':[_0x197ce2(_0x5b0072._0x151149,0x608,0x5db,_0x5b0072._0x3ecfd4)]},async *'execute'(_0x5cbb86){const _0x1a11d7={_0x4a2a6:0x2f6,_0x529bcd:0x86};function _0x3d13c9(_0x22d921,_0x3219a2,_0x5aac44,_0x1ede68){return _0x197ce2(_0x22d921-_0x3c692c._0x56fcf7,_0x3219a2,_0x5aac44-_0x3c692c._0x2737cf,_0x1ede68-_0x3c692c._0x5a84fd);}function _0x4faeca(_0xbe9444,_0x550c8f,_0x32495d,_0x45c9af){return _0x3f9b72(_0x32495d,_0x550c8f-0xf6,_0xbe9444- -_0x1a11d7._0x4a2a6,_0x45c9af-_0x1a11d7._0x529bcd);}const _0x396d43=resolveAllowedPath(_0x51a4fb,_0x167bb9,_0x5cbb86[_0x4faeca(0x16b,0x21a,0x8a,_0x105d2a._0x354713)]);await assertWorkspaceFile(_0x396d43);const _0x300902=await _0x1db3a5(_0x396d43);if(_0x300902[_0x4faeca(_0x105d2a._0x138958,_0x105d2a._0x1c2b2e,_0x105d2a._0x5b2f7a,-_0x105d2a._0x1d1b95)]>_0xbee93b)throw new ToolExecutionError(_0x3d13c9(0x85f,0x819,_0x105d2a._0x1cb65f,_0x105d2a._0xc59e60)+_0x5cbb86[_0x3d13c9(0x667,0x552,0x665,_0x105d2a._0x3507c2)],{'path':_0x5cbb86[_0x4faeca(_0x105d2a._0x3688e0,_0x105d2a._0x518de8,_0x105d2a._0x37cb94,_0x105d2a._0x24e5d2)],'maxBytes':_0xbee93b,'size':_0x300902[_0x4faeca(_0x105d2a._0x138958,-0xca,-_0x105d2a._0x4ee6d7,0x34)]});const _0x6a739e=await _0x1cbb23(_0x396d43),_0x4e5497=detectImageMediaType(_0x6a739e,_0x396d43);if(!_0x4e5497)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x5cbb86[_0x3d13c9(0x759,0x6ff,_0x105d2a._0x3f8787,0x528)],{'path':_0x5cbb86['path'],'supported':[_0x3d13c9(0x655,0x529,_0x105d2a._0x212559,_0x105d2a._0x449168),'.jpeg',_0x3d13c9(_0x105d2a._0x301516,0x565,0x5ec,_0x105d2a._0x2b416f),_0x3d13c9(_0x105d2a._0xbb117e,0x788,_0x105d2a._0x2e8641,0x8b5),'.webp']});const _0x2c03c9=normalizeDetail(_0x5cbb86[_0x3d13c9(0x64a,_0x105d2a._0x5c3d6b,_0x105d2a._0x2f1829,0x665)]),_0x3d3b29=[_0x3d13c9(0x694,0x531,_0x105d2a._0x4e09be,0x4ca)+_0x5cbb86[_0x3d13c9(_0x105d2a._0x5cf49a,_0x105d2a._0x2f777c,_0x105d2a._0x3f8787,_0x105d2a._0x3d3aec)],_0x3d13c9(0x7e3,_0x105d2a._0x51f1a5,_0x105d2a._0x55ad2f,0x6dd)+_0x4e5497,_0x4faeca(0xf8,_0x105d2a._0x5c24b1,0x1dc,_0x105d2a._0x3060c1)+_0x300902[_0x3d13c9(0x683,_0x105d2a._0x2ff484,_0x105d2a._0x2357c2,0x448)]+_0x3d13c9(_0x105d2a._0x15212f,_0x105d2a._0x33c9be,_0x105d2a._0x4291c2,_0x105d2a._0x54022d)][_0x3d13c9(_0x105d2a._0x56d7c0,0x6fb,0x76e,_0x105d2a._0x150cc7)](_0x2c03c9?['Detail:\x20'+_0x2c03c9]:[])['join']('\x0a'),_0x29421e=[{'type':_0x4faeca(_0x105d2a._0x3e3d3e,_0x105d2a._0x28cab8,_0x105d2a._0x3eb354,0x151),'source':{'type':_0x4faeca(_0x105d2a._0x117465,0x171,-0x7a,0x119),'media_type':_0x4e5497,'data':_0x6a739e['toString'](_0x4faeca(0x4e,-0x97,0xf4,_0x105d2a._0x2f690f))}},{'type':'text','text':_0x3d3b29}];return yield createToolOutput(_0x3d3b29,{'path':_0x5cbb86['path'],'resolvedPath':_0x396d43,'created':_0x300902[_0x3d13c9(0x767,_0x105d2a._0x154a66,_0x105d2a._0x5707c4,_0x105d2a._0x5e7fea)][_0x4faeca(_0x105d2a._0x53377f,_0x105d2a._0x2c7c2f,_0x105d2a._0x131277,_0x105d2a._0x4115aa)](),'modified':_0x300902[_0x3d13c9(_0x105d2a._0x33fd82,_0x105d2a._0x5f1fd2,_0x105d2a._0x1b5798,0x743)]['toISOString'](),'size':_0x300902['size'],'mimeType':_0x4e5497,'encoding':_0x4faeca(_0x105d2a._0x59b2df,0x138,-_0x105d2a._0x51b358,-_0x105d2a._0x1b9d15),..._0x2c03c9?{'detail':_0x2c03c9}:{}},_0x29421e),void 0x0;}});}import _0x51b446 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(_0x26709f){const _0x4ab9c1={_0x2a30b4:0x6b7,_0x3bf6ef:0x1f0,_0xd0081e:0x80c,_0x2e78cc:0x205,_0x2cdaa7:0x236,_0x196991:0xab,_0x946e97:0x8b,_0x1ae0fd:0x639,_0x5ea732:0x605,_0x2a0fb2:0x79a,_0x579488:0x6db},_0x1b62fd={_0x459f4b:0x16e,_0x1dafef:0xf8,_0x543708:0x63c},_0xa0ac83={_0x363a7f:0x17c};let _0x236286;try{_0x236286=new URL(_0x26709f);}catch{throw new ToolExecutionError(_0x5dbe23(0x736,0x683,0x5c0,_0x4ab9c1._0x2a30b4),{'url':_0x26709f});}if(_0x236286[_0x5dbe23(0x739,0x677,0x79b,0x6db)]!=='http:'&&_0x236286[_0x4fd237(0xb6,0x249,0x113,_0x4ab9c1._0x3bf6ef)]!==_0x5dbe23(0x7fe,_0x4ab9c1._0xd0081e,0x5fc,0x6d4))throw new ToolExecutionError(_0x4fd237(_0x4ab9c1._0x2e78cc,0x200,0x328,_0x4ab9c1._0x2cdaa7),{'url':_0x26709f});function _0x4fd237(_0x82f0cf,_0xc8f586,_0x5a81c9,_0x53c960){return _0x278b49(_0x82f0cf-0x86,_0xc8f586-_0xa0ac83._0x363a7f,_0x53c960-0x151,_0x82f0cf);}function _0x5dbe23(_0x5ce29f,_0x275023,_0x2a5f86,_0x2a2026){return _0x278b49(_0x5ce29f-_0x1b62fd._0x459f4b,_0x275023-_0x1b62fd._0x1dafef,_0x2a2026-_0x1b62fd._0x543708,_0x2a5f86);}if(_0x236286[_0x4fd237(0x2a,0x1c7,_0x4ab9c1._0x196991,_0x4ab9c1._0x946e97)]||_0x236286['password'])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x236286[_0x5dbe23(_0x4ab9c1._0x1ae0fd,_0x4ab9c1._0x5ea732,_0x4ab9c1._0x2a0fb2,_0x4ab9c1._0x579488)]+'//'+_0x236286['host']+_0x236286['pathname']});return _0x236286;}function createTimeoutSignal(_0x160537,_0x41d80a){const _0x1a4f0e={_0x5d18e5:0x15,_0x467b37:0x127,_0x4400aa:0x10a,_0x259001:0x449,_0x578c8e:0x706,_0x13cc04:0x608},_0x2699e8={_0x18079a:0xad,_0x159e3a:0x7b,_0xd65f38:0x111,_0x4db090:0x1e7,_0x10962f:0x4d},_0xc7406d={_0x17bbe9:0x10b,_0x1e7165:0x19f},_0x29ae51={_0x2d76a6:0x13a};function _0x4d5fac(_0x32e795,_0x15bc5a,_0x104620,_0x7da33f){return _0x2fd7af(_0x7da33f-0x677,_0x15bc5a-_0x29ae51._0x2d76a6,_0x15bc5a,_0x7da33f-0x15a);}const _0x59e9a3=new AbortController(),_0x179b30=setTimeout(()=>_0x59e9a3[_0x4b5e73(-0x67,-0x127,-0x13,-0xed)](new Error('Fetch\x20timed\x20out')),_0x41d80a);function _0x4b5e73(_0x3f233d,_0xe60dcf,_0x2c53b4,_0x349a11){return _0x278b49(_0x3f233d-_0xc7406d._0x17bbe9,_0xe60dcf-_0xc7406d._0x1e7165,_0xe60dcf- -0xc5,_0x2c53b4);}const _0x4b796d=()=>_0x59e9a3[_0x4d5fac(0x5bb,0x5b0,0x551,0x5c6)](_0x160537[_0x4b5e73(-0x12e,-0x227,-0x1fa,-0x108)]);return _0x160537['aborted']?_0x59e9a3[_0x4b5e73(_0x1a4f0e._0x5d18e5,-_0x1a4f0e._0x467b37,-0x11c,-_0x1a4f0e._0x4400aa)](_0x160537[_0x4d5fac(0x5c3,_0x1a4f0e._0x259001,0x3aa,0x4c6)]):_0x160537['addEventListener'](_0x4d5fac(0x637,_0x1a4f0e._0x578c8e,_0x1a4f0e._0x13cc04,0x5c6),_0x4b796d,{'once':!![]}),{'signal':_0x59e9a3['signal'],'cleanup':()=>{const _0x47153c={_0x42ae65:0x99,_0x5406c4:0x190},_0x25a33f={_0x1f6670:0x66};clearTimeout(_0x179b30);function _0x2f2e58(_0x2bbe2e,_0x4447cb,_0x29ee5a,_0x366818){return _0x4b5e73(_0x2bbe2e-0x111,_0x29ee5a- -0x2c,_0x366818,_0x366818-_0x25a33f._0x1f6670);}function _0x3b8a3c(_0x4fdac4,_0x43586e,_0x37c06c,_0x512f31){return _0x4b5e73(_0x4fdac4-_0x47153c._0x42ae65,_0x4fdac4-0x7c,_0x512f31,_0x512f31-_0x47153c._0x5406c4);}_0x160537[_0x2f2e58(-_0x2699e8._0x18079a,-0x13c,-_0x2699e8._0x159e3a,0xb9)](_0x3b8a3c(-0xab,-_0x2699e8._0xd65f38,-_0x2699e8._0x4db090,_0x2699e8._0x10962f),_0x4b796d);}};}function createWebFetchTool(_0x45cea6={}){const _0x27aca8={_0x1d6339:0x181,_0x41a95e:0x257,_0x49425d:0x542,_0x35da2b:0x664,_0xaee63:0x378,_0x36d416:0x405,_0x5c8d1d:0x596,_0x354041:0x4f7,_0x41d6cc:0x612,_0x1ab238:0x52d,_0x2c8c48:0x47e,_0xc33ea9:0x457,_0x99a68:0x3d9,_0x1b3bc4:0x284,_0x7c0ad6:0x29d,_0x427e69:0x51f,_0x190fa9:0x3e3,_0x3b12e1:0x2dd,_0x1f63fb:0x3d8,_0x4367d8:0x371,_0x1b9414:0x328,_0x1c2cbe:0x3bf,_0x221a45:0x45d,_0x5dbdda:0x3e9},_0x10c09b={_0x2e12f9:0x5f8,_0x481d7b:0x609,_0x44d2e3:0x52a,_0x20575d:0x2cc,_0x3d7a20:0x304,_0xf76b81:0x7b6,_0x194ac0:0x755,_0x36fa9f:0x7a6,_0x6bdf27:0x63d,_0x273eef:0x603,_0x31035f:0x677,_0xf6cb0c:0x5b6,_0x58a173:0x577,_0x4c9039:0x668,_0x788665:0x645,_0x5802e8:0x214,_0x19153d:0x1b9,_0x50f059:0x2d3,_0xbf7dba:0x29b,_0x2100fa:0xa5,_0x482c91:0x3b5,_0x428085:0x339,_0x283cd:0x36e,_0x19160b:0x275,_0x3730cb:0x549,_0x2c0e45:0x663,_0x2425db:0x5b0,_0x125202:0x5ce,_0x18dff0:0x1a0,_0x4f9da0:0x798,_0x3c80ff:0x657,_0x19cdac:0x37f,_0x12b784:0x2d4,_0x3f30b7:0x39b,_0x5784df:0x393,_0x2f8232:0x274,_0xa09592:0x162,_0x197d51:0x594,_0x388dd9:0x575,_0x6ea5a8:0x648,_0xba412b:0x5e3,_0x162685:0x6f8,_0x564d9f:0x7d5,_0x1551d7:0x6d1,_0x4e5832:0x750,_0x289a8b:0x856,_0x2895a0:0x7c6},_0x19791c={_0x31a829:0x19,_0x2e0c7e:0x85,_0x17ca7b:0x2b8},_0x59626b={_0x344483:0xef,_0xee6de8:0xa,_0x4c9e48:0x311},_0x4512d1={_0x131f86:0xf8};function _0x1145cb(_0x4f8f6e,_0x3bf372,_0x5a0f4d,_0x43eea1){return _0x278b49(_0x4f8f6e-0xdd,_0x3bf372-_0x4512d1._0x131f86,_0x43eea1-0x35e,_0x4f8f6e);}const _0x2f7a84=_0x45cea6[_0x1145cb(0x269,_0x27aca8._0x1d6339,0x287,_0x27aca8._0x41a95e)]??_0x5de3e5(0x541,_0x27aca8._0x49425d,_0x27aca8._0x35da2b,0x5bf);function _0x5de3e5(_0x11a4b7,_0x3fcfc1,_0x57e0dc,_0x12eb64){return _0x2fd7af(_0x12eb64-0x57f,_0x3fcfc1-0x1dc,_0x57e0dc,_0x12eb64-0x2d);}const _0x5b7427=_0x45cea6[_0x1145cb(0x53d,0x2fe,_0x27aca8._0xaee63,_0x27aca8._0x36d416)]??DEFAULT_TIMEOUT_MS2,_0x2ef189=new _0x51b446({'headingStyle':_0x5de3e5(_0x27aca8._0x5c8d1d,0x5a6,_0x27aca8._0x354041,_0x27aca8._0x41d6cc),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0x2ef189[_0x1145cb(_0x27aca8._0x1ab238,0x4cd,_0x27aca8._0x2c8c48,_0x27aca8._0xc33ea9)](['script',_0x1145cb(0x2fc,_0x27aca8._0x99a68,_0x27aca8._0x1b3bc4,_0x27aca8._0x7c0ad6),'noscript','iframe',_0x5de3e5(0x4ad,_0x27aca8._0x427e69,0x436,_0x27aca8._0x190fa9),'footer',_0x1145cb(_0x27aca8._0x3b12e1,0x22c,0x2a0,0x2a9),'aside']),defineTool({'name':_0x2f7a84,'description':_0x5de3e5(0x482,0x464,0x3cf,_0x27aca8._0x1f63fb),'inputSchema':{'type':'object','properties':{'description':{'type':'string'},'url':{'type':_0x5de3e5(_0x27aca8._0x4367d8,0x405,_0x27aca8._0x1b9414,0x425)}},'required':[_0x5de3e5(0x3b8,_0x27aca8._0x1c2cbe,_0x27aca8._0x221a45,_0x27aca8._0x5dbdda)]},async *'execute'(_0x1b8f28,_0x25fcb9){const _0x11a09f=assertFetchableUrl(_0x1b8f28['url'])[_0x8fb32b(0x712,_0x10c09b._0x2e12f9,_0x10c09b._0x481d7b,_0x10c09b._0x44d2e3)]();if(_0x25fcb9['signal'][_0x34f5a9(0x31a,0x348,_0x10c09b._0x20575d,_0x10c09b._0x3d7a20)])throw new ToolExecutionError(_0x8fb32b(_0x10c09b._0xf76b81,_0x10c09b._0x194ac0,0x6e6,_0x10c09b._0x36fa9f),{'url':_0x11a09f});function _0x8fb32b(_0x18755b,_0x13139,_0x336671,_0x5f147e){return _0x1145cb(_0x5f147e,_0x13139-_0x59626b._0x344483,_0x336671-_0x59626b._0xee6de8,_0x336671-_0x59626b._0x4c9e48);}const _0x6d9a3=createTimeoutSignal(_0x25fcb9[_0x8fb32b(0x628,_0x10c09b._0x6bdf27,_0x10c09b._0x273eef,0x6e9)],_0x5b7427);let _0x5825c8='',_0x1daa3a=0x0,_0x24b64e;try{const _0x5a898e=await fetch(_0x11a09f,{'headers':{'User-Agent':USER_AGENT},'signal':_0x6d9a3[_0x8fb32b(_0x10c09b._0x31035f,_0x10c09b._0xf6cb0c,0x603,_0x10c09b._0x58a173)]});if(!_0x5a898e['ok'])throw new ToolExecutionError(_0x8fb32b(0x4fb,_0x10c09b._0x4c9039,0x56a,_0x10c09b._0x788665)+_0x5a898e[_0x34f5a9(_0x10c09b._0x5802e8,_0x10c09b._0x19153d,0x20c,0x25e)]+'\x20'+_0x5a898e[_0x34f5a9(_0x10c09b._0x50f059,0x28c,0x191,0x285)],{'url':_0x11a09f,'statusCode':_0x5a898e[_0x34f5a9(0x1bb,0x1b9,_0x10c09b._0xbf7dba,_0x10c09b._0x2100fa)]});_0x5825c8=_0x5a898e['headers']['get'](_0x34f5a9(_0x10c09b._0x482c91,_0x10c09b._0x428085,_0x10c09b._0x283cd,_0x10c09b._0x19160b))??'',_0x1daa3a=_0x5a898e[_0x8fb32b(_0x10c09b._0x3730cb,_0x10c09b._0x2c0e45,_0x10c09b._0x2425db,_0x10c09b._0x125202)],_0x24b64e=await _0x5a898e[_0x34f5a9(0x371,0x279,0x2ec,_0x10c09b._0x18dff0)]();}catch(_0x270730){if(_0x270730 instanceof ToolExecutionError)throw _0x270730;const _0x8e5cc4=_0x270730 instanceof Error?_0x270730[_0x8fb32b(_0x10c09b._0x4f9da0,0x645,_0x10c09b._0x3c80ff,0x5a2)]:String(_0x270730);throw new ToolExecutionError(_0x8e5cc4,{'url':_0x11a09f});}finally{_0x6d9a3[_0x34f5a9(_0x10c09b._0x19cdac,_0x10c09b._0x12b784,_0x10c09b._0x3f30b7,_0x10c09b._0x5784df)]();}const _0x10fbd1=new Date()['toISOString']();let _0x157414,_0x428950;function _0x34f5a9(_0x1a7af0,_0x5e817f,_0x3b2db3,_0x55e3c3){return _0x5de3e5(_0x1a7af0-_0x19791c._0x31a829,_0x5e817f-_0x19791c._0x2e0c7e,_0x55e3c3,_0x5e817f- -_0x19791c._0x17ca7b);}if(_0x5825c8['includes'](_0x34f5a9(_0x10c09b._0x2f8232,0x256,0x34b,_0x10c09b._0xa09592)))_0x157414=_0x8fb32b(0x6cf,0x61e,_0x10c09b._0x197d51,_0x10c09b._0x388dd9)+_0x24b64e+'\x0a```',_0x428950='json';else _0x5825c8[_0x8fb32b(_0x10c09b._0x6ea5a8,_0x10c09b._0xba412b,_0x10c09b._0x162685,_0x10c09b._0x564d9f)](_0x8fb32b(0x87c,_0x10c09b._0x1551d7,_0x10c09b._0x4e5832,0x70b))?(_0x157414=_0x2ef189['turndown'](_0x24b64e),_0x428950=_0x8fb32b(0x747,_0x10c09b._0x289a8b,0x74b,_0x10c09b._0x2895a0)):(_0x157414=_0x24b64e,_0x428950='text');return yield createToolOutput(_0x157414,{'url':_0x11a09f,'contentType':_0x5825c8,'statusCode':_0x1daa3a,'format':_0x428950,'size':_0x24b64e['length'],'fetchedAt':_0x10fbd1}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x278b49(0x1a5,0x1d5,0xec,0x11e);function normalizeUrl(_0x548f48){const _0x5284f2={_0x366958:0xcb,_0x21e17c:0x606,_0x2b3455:0x4bf,_0x3fc90e:0x6f9,_0x3f864b:0x72f,_0x43ea68:0x1b0,_0x71e1c0:0x1be,_0x2375bb:0x109,_0x3531a7:0x3c},_0xa44871={_0x237a1a:0x165},_0x2c94b9={_0x21c965:0x54,_0x3fd590:0x1e2,_0xcd833:0x1be};function _0xc8c54f(_0x569030,_0x118f9d,_0x5d7465,_0x309ac8){return _0x2fd7af(_0x5d7465- -_0x2c94b9._0x21c965,_0x118f9d-_0x2c94b9._0x3fd590,_0x118f9d,_0x309ac8-_0x2c94b9._0xcd833);}function _0x1e7237(_0x33c107,_0x31617b,_0x906c52,_0x52f561){return _0x278b49(_0x33c107-_0xa44871._0x237a1a,_0x31617b-0x18c,_0x33c107-0x6a0,_0x31617b);}try{const _0x308810=new URL(_0x548f48);for(const _0x467a18 of[_0xc8c54f(-0x2d,-0x11f,-_0x5284f2._0x366958,-0x1d7),_0x1e7237(0x68d,0x5c6,0x613,0x5fb),_0x1e7237(_0x5284f2._0x21e17c,_0x5284f2._0x2b3455,0x6bd,0x672),'utm_term','utm_content',_0x1e7237(0x722,0x758,0x766,0x5f1),'fbclid','mc_cid',_0x1e7237(0x7a0,0x67c,_0x5284f2._0x3fc90e,0x829)]){_0x308810['searchParams'][_0x1e7237(0x735,0x70c,0x6fc,_0x5284f2._0x3f864b)](_0x467a18);}return _0x308810[_0xc8c54f(-_0x5284f2._0x43ea68,-_0x5284f2._0x71e1c0,-_0x5284f2._0x2375bb,_0x5284f2._0x3531a7)]();}catch{return _0x548f48;}}function cseDateRestrict(_0x737dd8){const _0x9d0540={_0x18be49:0x1ed,_0x1137ec:0xe6,_0x53d5d1:0x1ee,_0x310f69:0xa1,_0x302438:0x99},_0x2c02f1={_0x247226:0x14c,_0x3748d3:0x1b8},_0x53ea10={_0x5ca6e2:0x12};if(_0x737dd8<=0x0)return void 0x0;if(_0x737dd8<=0x1e)return'd'+Math['max'](0x1,Math[_0x3ae8fd(-_0x9d0540._0x18be49,-0x1a3,-_0x9d0540._0x1137ec,-_0x9d0540._0x53d5d1)](_0x737dd8));if(_0x737dd8<=0x16d)return'm'+Math[_0x3ae8fd(-0x1af,-_0x9d0540._0x310f69,-_0x9d0540._0x302438,-0x110)](_0x737dd8/0x1e);function _0x3ae8fd(_0x40c6e2,_0x16ac71,_0x3178d0,_0x5c1de4){return _0x278b49(_0x40c6e2-0x8a,_0x16ac71-0x167,_0x3178d0- -_0x53ea10._0x5ca6e2,_0x40c6e2);}function _0x25449c(_0x532adf,_0x1e69e5,_0x3b9bad,_0x28b64d){return _0x278b49(_0x532adf-_0x2c02f1._0x247226,_0x1e69e5-_0x2c02f1._0x3748d3,_0x1e69e5-0x370,_0x3b9bad);}return'y'+Math[_0x3ae8fd(-0x153,-0xdd,-0x99,-0x7d)](_0x737dd8/0x16d);}function addSiteFilters(_0x47654c,_0x56e621){const _0x44035d={_0x3526e6:0x1d5,_0x70ec92:0x2d,_0x5c4749:0x1a9,_0x371995:0x23,_0x1af04a:0xbd,_0x46e1de:0xa,_0xf99a72:0xe4,_0x4a3447:0x60},_0x2deeb9={_0x453d0c:0x4c,_0x398751:0x19a};if(_0x56e621['length']===0x0)return _0x47654c['trim']();function _0x40d03e(_0x2d9cc3,_0x22bb9a,_0x53df03,_0xa4dc42){return _0x2fd7af(_0x22bb9a-0x16,_0x22bb9a-0xfb,_0xa4dc42,_0xa4dc42-0x7c);}function _0x50d865(_0x3d79dd,_0x5ec3eb,_0x1ac37b,_0x7b291e){return _0x2fd7af(_0x3d79dd-0x31c,_0x5ec3eb-_0x2deeb9._0x453d0c,_0x5ec3eb,_0x7b291e-_0x2deeb9._0x398751);}return(_0x47654c+'\x20('+_0x56e621[_0x40d03e(-_0x44035d._0x3526e6,-0xc9,_0x44035d._0x70ec92,-_0x44035d._0x5c4749)](_0x44a259=>_0x40d03e(-0x114,-0xd2,-0x78,-0x161)+_0x44a259)[_0x40d03e(-_0x44035d._0x371995,-0x47,-0x16d,-_0x44035d._0x1af04a)](_0x40d03e(-0xe4,-_0x44035d._0x46e1de,-0x4c,_0x44035d._0xf99a72))+')')[_0x40d03e(-_0x44035d._0x4a3447,-0xa9,-0x1b2,-0x169)]();}function normalizeType(_0x5dac08){const _0x3a0faa={_0x1204bd:0x3bd,_0x49aa7b:0x3ee,_0x592d6c:0x31e,_0xdeaa78:0x416,_0x45647e:0x287},_0x3359e8={_0x1bd029:0x454},_0x5039ae={_0x133b11:0x53};function _0x5474ee(_0x39fff1,_0x574408,_0x3a1e54,_0x547af4){return _0x2fd7af(_0x574408-0x155,_0x574408-0xb4,_0x39fff1,_0x547af4-_0x5039ae._0x133b11);}function _0x2431a0(_0x5eee3e,_0x32c752,_0x2c7c3b,_0x3cfec6){return _0x2fd7af(_0x32c752-_0x3359e8._0x1bd029,_0x32c752-0x1d8,_0x2c7c3b,_0x3cfec6-0x1a0);}return _0x5dac08==='images'?_0x2431a0(0x395,_0x3a0faa._0x1204bd,_0x3a0faa._0x49aa7b,0x3ee):_0x2431a0(0x364,_0x3a0faa._0x592d6c,_0x3a0faa._0xdeaa78,_0x3a0faa._0x45647e);}async function fetchJson(_0x79417,_0x3f29c6,_0xcc0216){const _0x2267d4={_0x192146:0x508,_0x5f3689:0x54e,_0x1e54aa:0x49b,_0x3fead0:0x35d,_0x566383:0x430,_0x1f86cd:0x424,_0xc26f3c:0x281,_0x239046:0x314,_0x48b2bb:0x2d0,_0x898185:0x1b0,_0x116c38:0x275,_0x14a138:0x24b,_0x97b25e:0x5b6,_0x3e7165:0x54a,_0x5aa8e0:0x4fa,_0x3ad472:0x289,_0x3d3e15:0x2e2,_0x4bd958:0x1a4,_0x12f05f:0x44a,_0x138c1b:0x2fa,_0x483964:0x3c5,_0x3345f3:0x2a4,_0x27b6bf:0x490,_0x2ce01f:0x370,_0x4d5ee8:0x362,_0x3707a1:0x3b9},_0x1a6020={_0x283fe0:0x156},_0x20ea8a={_0x128996:0x19c,_0x38dfe8:0x1b6},_0x3289e4=await fetch(_0x79417,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x8336aa(_0x2267d4._0x192146,0x2f6,0x40d,0x35d),..._0xcc0216?.[_0x8336aa(_0x2267d4._0x5f3689,_0x2267d4._0x1e54aa,0x424,0x4d6)]},'signal':_0x3f29c6,..._0xcc0216});if(!_0x3289e4['ok']){let _0x39d75e,_0x1a3867;try{_0x39d75e=await _0x3289e4[_0x8336aa(_0x2267d4._0x3fead0,0x52e,_0x2267d4._0x566383,_0x2267d4._0x1f86cd)]();const _0x521045=JSON['parse'](_0x39d75e),_0x429e63=typeof _0x521045['detail']===_0x20693d(_0x2267d4._0xc26f3c,_0x2267d4._0x239046,0x1ca,_0x2267d4._0x48b2bb)?_0x521045['detail']['error']:void 0x0;_0x1a3867=_0x521045['error']?.[_0x20693d(_0x2267d4._0x898185,_0x2267d4._0x116c38,0x2a8,_0x2267d4._0x14a138)]??_0x521045[_0x8336aa(0x66b,_0x2267d4._0x97b25e,_0x2267d4._0x3e7165,_0x2267d4._0x5aa8e0)]?.['errors']?.[0x0]?.['message']??_0x429e63;}catch{}const _0x108e81=_0x1a3867?_0x20693d(0xa4,0x26c,0x1ba,0x15e)+_0x3289e4[_0x20693d(_0x2267d4._0x3ad472,0xe1,_0x2267d4._0x3d3e15,_0x2267d4._0x4bd958)]+':\x20'+_0x1a3867:_0x8336aa(_0x2267d4._0x12f05f,0x37c,0x32a,0x3d2)+_0x3289e4[_0x8336aa(_0x2267d4._0x138c1b,0x42b,0x370,_0x2267d4._0x483964)]+'\x20'+_0x3289e4['statusText'];throw new ToolExecutionError(_0x108e81,{'statusCode':_0x3289e4[_0x8336aa(_0x2267d4._0x3345f3,_0x2267d4._0x27b6bf,_0x2267d4._0x2ce01f,0x2e9)],..._0x39d75e?{'body':_0x39d75e}:{}});}function _0x20693d(_0x20146e,_0x314533,_0x22f141,_0x62126a){return _0x278b49(_0x20146e-_0x20ea8a._0x128996,_0x314533-_0x20ea8a._0x38dfe8,_0x62126a-0x263,_0x22f141);}function _0x8336aa(_0x1a7dd0,_0x72020f,_0x3683a4,_0x41b44f){return _0x2fd7af(_0x3683a4-0x47e,_0x72020f-_0x1a6020._0x283fe0,_0x41b44f,_0x41b44f-0x92);}return await _0x3289e4[_0x8336aa(0x3fc,_0x2267d4._0x4d5ee8,0x2f6,_0x2267d4._0x3707a1)]();}async function hydrateResults(_0x101c15,_0x3d2db0,_0x5daa2f){const _0x201513={_0x1acae1:0x336,_0x43c247:0x27c,_0x36d01e:0x2d5,_0x4fbbe8:0x236,_0x2714d7:0x2e9,_0x221d4a:0x2a9,_0x3005e4:0x110,_0x1705c2:0x2ed,_0x44b962:0x229,_0x450077:0x1c0,_0x38a0e7:0x18d,_0x8e253a:0x254},_0x29fd81={_0x476294:0x136,_0x20cd51:0x2e4},_0x176904={_0x56d6e4:0x1c5},_0x285d4a={_0x4eb23f:0x110,_0x4332e5:0x64,_0xde524f:0x2d3,_0x389218:0x3df,_0x214f0d:0x1a2,_0x13c088:0x9f,_0x562fe1:0x439,_0x50d441:0xbb,_0x31901e:0x67,_0x16c72b:0x15,_0x22e70e:0x5a,_0x145290:0x7e,_0x4cb783:0x238,_0x4c20f9:0x1d7,_0x18e86f:0x2b1,_0x4d9f1f:0x2b3,_0x4b454e:0x278,_0x2810c1:0x20e,_0x118dea:0x224,_0x8be006:0x1ec,_0x386179:0x2eb,_0xc385fa:0x1c5,_0x66b638:0xf2,_0x27fa06:0x1c4,_0x4379b8:0x143,_0x44ef27:0x1f7,_0x3b0b8e:0xbd,_0x455dbf:0x180,_0x4b19b7:0x27c,_0x2a4cb4:0x260,_0x5cfce3:0x1b1,_0x1c6e96:0x18e,_0x3ef0a3:0x14c,_0x4cb164:0x179,_0x5f4492:0x1d4,_0x4ad093:0x116,_0x417dd0:0x16d,_0x177977:0xd4,_0x5b6ac5:0x14f,_0xe6bfd8:0x122,_0x2bb0dc:0x9,_0x61f7cc:0x27,_0x114341:0x258,_0x357d38:0x256},_0x837a25=await Promise[_0x390921(0x2e9,0x2a9,0x2ac,_0x201513._0x1acae1)](_0x101c15[_0x390921(_0x201513._0x43c247,_0x201513._0x36d01e,0x348,0x2e9)](0x0,0xa)[_0x5b4b5b(0x2f0,0x2ec,0x25c,0x229)](async _0x37b726=>{const _0x161671={_0x38bdcc:0x59,_0x4db7e1:0x12},_0x17b7e7={_0x2ac783:0x375};function _0x4ae895(_0x4e230e,_0x13adad,_0x189561,_0x5d1eb2){return _0x5b4b5b(_0x4e230e-0x1b5,_0x13adad-0x101,_0x13adad,_0x4e230e- -_0x17b7e7._0x2ac783);}function _0x115d57(_0x126759,_0x40ebd1,_0x1a962d,_0x2e0898){return _0x390921(_0x1a962d,_0x40ebd1-_0x161671._0x38bdcc,_0x1a962d-0xc4,_0x126759- -_0x161671._0x4db7e1);}try{const _0x195ab9=await fetch(_0x37b726['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x3d2db0,'Accept':_0x4ae895(0x25,_0x285d4a._0x4eb23f,_0x285d4a._0x4332e5,-0xca)},'signal':_0x5daa2f});if(!_0x195ab9['ok'])return _0x37b726;const _0x5bf6b5=await _0x195ab9[_0x115d57(_0x285d4a._0xde524f,0x30a,_0x285d4a._0x389218,0x35c)](),_0x5cbada=load(_0x5bf6b5),_0x306aa7=_0x5cbada(_0x115d57(0x274,0x2fd,0x1b9,0x1f4))[_0x115d57(_0x285d4a._0x214f0d,_0x285d4a._0x13c088,0x2a2,0x1bb)]('content')||_0x5cbada(_0x115d57(0x373,_0x285d4a._0x562fe1,0x268,0x3c1))['first']()[_0x4ae895(-_0x285d4a._0x50d441,_0x285d4a._0x31901e,_0x285d4a._0x16c72b,-_0x285d4a._0x22e70e)]()[_0x4ae895(-0x12c,-_0x285d4a._0x145290,-_0x285d4a._0x4cb783,-_0x285d4a._0x4c20f9)](),_0x222b97=_0x5cbada(_0x115d57(_0x285d4a._0x18e86f,_0x285d4a._0x4d9f1f,0x295,_0x285d4a._0x4b454e))['attr']('content')||_0x5cbada('meta[property=\x27og:description\x27]')['attr'](_0x4ae895(-_0x285d4a._0x2810c1,-_0x285d4a._0x118dea,-0x1b5,-_0x285d4a._0x8be006))||_0x37b726[_0x115d57(0x2de,_0x285d4a._0x386179,_0x285d4a._0xc385fa,0x34d)],_0x3b5081=_0x5cbada(_0x4ae895(-_0x285d4a._0x66b638,-_0x285d4a._0x27fa06,-_0x285d4a._0x4379b8,-_0x285d4a._0x44ef27))['attr']('content')||_0x5cbada(_0x4ae895(-0x185,-_0x285d4a._0x3b0b8e,-0xfe,-_0x285d4a._0x455dbf))[_0x115d57(0x1a2,_0x285d4a._0x4b19b7,_0x285d4a._0x2a4cb4,_0x285d4a._0x5cfce3)](_0x4ae895(-0x15b,-_0x285d4a._0x1c6e96,-0x294,-_0x285d4a._0x3ef0a3))||_0x37b726[_0x4ae895(-_0x285d4a._0x4cb164,-0x20c,-0x89,-_0x285d4a._0x5f4492)],_0x567d43=_0x5cbada('link[rel=\x27canonical\x27]')[_0x4ae895(-0x1ec,-_0x285d4a._0x4ad093,-_0x285d4a._0x417dd0,-_0x285d4a._0x177977)](_0x4ae895(-0x1cd,-0xe1,-0x1bb,-0x26c));return{..._0x37b726,'title':_0x306aa7||_0x37b726['title'],'snippet':_0x222b97,'url':_0x567d43?normalizeUrl(new URL(_0x567d43,_0x37b726[_0x115d57(0x18b,0x7e,_0x285d4a._0x5b6ac5,0x123)])[_0x4ae895(-_0x285d4a._0xe6bfd8,_0x285d4a._0x2bb0dc,-_0x285d4a._0x61f7cc,-_0x285d4a._0x114341)]()):_0x37b726[_0x4ae895(-0x203,-0x2e1,-_0x285d4a._0x357d38,-0x129)],'publishedAt':_0x3b5081};}catch{return _0x37b726;}}));function _0x5b4b5b(_0x358986,_0x3856f7,_0x12e0db,_0x31cb0b){return _0x278b49(_0x358986-0xc0,_0x3856f7-_0x176904._0x56d6e4,_0x31cb0b-0x2b9,_0x12e0db);}function _0x390921(_0xb2f594,_0x2a12ad,_0x4b1695,_0x35ce92){return _0x278b49(_0xb2f594-0xc6,_0x2a12ad-_0x29fd81._0x476294,_0x35ce92-_0x29fd81._0x20cd51,_0xb2f594);}const _0x45908f=new Map(_0x101c15[_0x390921(0x2ea,_0x201513._0x4fbbe8,0x25b,_0x201513._0x2714d7)](0x0,0xa)[_0x5b4b5b(_0x201513._0x221d4a,_0x201513._0x3005e4,_0x201513._0x1705c2,_0x201513._0x44b962)]((_0x41108c,_0x529ac3)=>[_0x41108c['url'],_0x837a25[_0x529ac3]]));return _0x101c15[_0x390921(_0x201513._0x450077,0x295,_0x201513._0x38a0e7,_0x201513._0x8e253a)](_0x42e302=>_0x45908f[_0x390921(0x2bf,0x24d,0x294,0x219)](_0x42e302[_0x390921(0x186,0xe3,0x205,0x19d)])??_0x42e302);}function formatResults(_0x3fc0dd){const _0x5ae5ae={_0x15daf5:0x4ec,_0xf92d94:0x3b8,_0x5ed3ba:0xfb,_0x224215:0x28e},_0x5d5a35={_0x4bd25b:0x517,_0x8c78a:0x275,_0xe67162:0x32e,_0x46adf5:0x49d,_0x3eb266:0x3c2,_0x260848:0x6a,_0x4ae56b:0x3bd,_0x54ae22:0x751,_0x112c5b:0x60a,_0x3fe402:0x728,_0x26550c:0x30d,_0x315108:0x328,_0x539521:0x1b4,_0x2e88b4:0x164},_0x5905a1={_0x4042a0:0xe6,_0x4cd753:0x99},_0x383550={_0x406f23:0x13b},_0x4d7d2f={_0x2a6359:0x5f1,_0x11b5ab:0xb2,_0x2d9ac1:0x177};function _0x58c51c(_0x5ab351,_0x3d2af9,_0x3e31ab,_0x9bbe4a){return _0x2fd7af(_0x9bbe4a-_0x4d7d2f._0x2a6359,_0x3d2af9-_0x4d7d2f._0x11b5ab,_0x3d2af9,_0x9bbe4a-_0x4d7d2f._0x2d9ac1);}function _0x312c5c(_0x1badd2,_0x240605,_0x3060be,_0x48ba25){return _0x2fd7af(_0x240605-0x1da,_0x240605-0x120,_0x1badd2,_0x48ba25-_0x383550._0x406f23);}if(_0x3fc0dd[_0x312c5c(0x16b,0x16e,0x22c,0x102)]===0x0)return _0x58c51c(_0x5ae5ae._0x15daf5,_0x5ae5ae._0xf92d94,0x50d,0x4e7);return _0x3fc0dd[_0x312c5c(0x22a,_0x5ae5ae._0x5ed3ba,0x229,0x8)](_0x2a7e14=>{const _0x3bb308={_0x3a7199:0x86,_0xf51e0a:0x189},_0x229279=[_0x2a7e14[_0x461ef4(0x54f,_0x5d5a35._0x4bd25b,0x4ae,0x382)]['rank']+'.\x20'+_0x2a7e14[_0x4ef1d1(0x31a,_0x5d5a35._0x8c78a,0x213,0x2f9)],_0x2a7e14[_0x461ef4(_0x5d5a35._0xe67162,_0x5d5a35._0x46adf5,_0x5d5a35._0x3eb266,0x445)]];if(_0x2a7e14[_0x4ef1d1(0x216,_0x5d5a35._0x260848,0x17e,0x248)])_0x229279['push'](_0x2a7e14['snippet']);function _0x461ef4(_0x25d4dd,_0x5e0c4b,_0x43bd90,_0x202c9f){return _0x58c51c(_0x25d4dd-0x15f,_0x25d4dd,_0x43bd90-_0x5905a1._0x4042a0,_0x43bd90- -_0x5905a1._0x4cd753);}function _0x4ef1d1(_0x546687,_0x199b1c,_0x58572f,_0x2de0a5){return _0x58c51c(_0x546687-_0x3bb308._0x3a7199,_0x199b1c,_0x58572f-_0x3bb308._0xf51e0a,_0x58572f- -0x430);}if(_0x2a7e14[_0x461ef4(0x438,0x4e9,0x44c,_0x5d5a35._0x4ae56b)])_0x229279[_0x461ef4(_0x5d5a35._0x54ae22,0x61b,_0x5d5a35._0x112c5b,_0x5d5a35._0x3fe402)](_0x461ef4(0x3e9,0x342,0x3e8,0x414)+_0x2a7e14[_0x461ef4(_0x5d5a35._0x26550c,0x52f,0x44c,_0x5d5a35._0x315108)]);return _0x229279[_0x4ef1d1(0x156,_0x5d5a35._0x539521,_0x5d5a35._0x2e88b4,0x117)]('\x0a');})[_0x312c5c(0x18e,0x17d,0x18b,_0x5ae5ae._0x224215)]('\x0a\x0a');}async function searchOllama(_0x4d872a,_0x208ee9,_0x2df54d){const _0x1c3d57={_0x4671c9:0x3af,_0x40d561:0x2f8,_0x4bd7e5:0x46c,_0x3cd8cf:0x44d,_0xf48faa:0x514,_0x1e4c6e:0x53e,_0x220e66:0x61b,_0x58fa64:0x44c,_0x25844a:0x306,_0x593f57:0x2e2,_0x41c1d6:0x313,_0x3bd123:0x460,_0x570739:0x473,_0x1ea00d:0x4ae,_0x4c8ac8:0x522,_0x35c69b:0x529,_0x233d8c:0x685,_0x401f9c:0x5b7,_0x4a608f:0x3a6,_0x344a81:0x4bd},_0x275428={_0x1fb2f1:0x221,_0x12fb93:0x251,_0x39448d:0x22b,_0x689a8d:0x6de,_0x418f67:0x30,_0x4e39fc:0x10a,_0x39b112:0x186},_0x57faad={_0x5eb8a2:0x50,_0x595bf2:0x5b2},_0x51a802={_0x564c45:0x150,_0x89be61:0x7},_0x39c1d9=Math[_0x43330c(0x3d9,_0x1c3d57._0x4671c9,0x41d,0x481)](0x1,Math[_0x2a031a(_0x1c3d57._0x40d561,0x3d4,0x2e2,0x37f)](0xa,_0x208ee9['count']));function _0x2a031a(_0xae1c12,_0x3085a,_0x374e4a,_0x2cb9ec){return _0x2fd7af(_0x374e4a-0x49a,_0x3085a-_0x51a802._0x564c45,_0xae1c12,_0x2cb9ec-_0x51a802._0x89be61);}function _0x43330c(_0x2534d4,_0x285f76,_0x1a8142,_0x102f7e){return _0x278b49(_0x2534d4-_0x57faad._0x5eb8a2,_0x285f76-0x68,_0x102f7e-_0x57faad._0x595bf2,_0x1a8142);}const _0x253b7f=addSiteFilters(_0x208ee9['query'],_0x208ee9[_0x43330c(_0x1c3d57._0x4bd7e5,_0x1c3d57._0x3cd8cf,_0x1c3d57._0xf48faa,_0x1c3d57._0x1e4c6e)]),_0x34f6e8=await fetchJson(_0x43330c(_0x1c3d57._0x220e66,0x5d8,0x546,0x4f9),_0x2df54d,{'method':_0x2a031a(0x2a9,_0x1c3d57._0x58fa64,_0x1c3d57._0x25844a,0x35b),'headers':{'Authorization':'Bearer\x20'+_0x4d872a['apiKey']},'body':JSON[_0x2a031a(0x353,_0x1c3d57._0x593f57,_0x1c3d57._0x41c1d6,0x2d2)]({'query':_0x253b7f,'max_results':_0x39c1d9})}),_0x15d297=_0x34f6e8[_0x2a031a(0x3aa,0x3f2,_0x1c3d57._0x3bd123,0x558)]??[],_0x1be1c3=_0x15d297[_0x43330c(_0x1c3d57._0x570739,_0x1c3d57._0x1ea00d,0x573,_0x1c3d57._0x4c8ac8)]((_0x5ad458,_0x4c4e54)=>{const _0x12ff15={_0x2e9c98:0x13f},_0x5a3772={_0x9a24b7:0x52f,_0x2c2080:0x146},_0x5322f7=_0x5ad458[_0x554a3c(-_0x275428._0x1fb2f1,-_0x275428._0x12fb93,-0x30e,-_0x275428._0x39448d)]||'';function _0x554a3c(_0x1dfcf1,_0x35e755,_0x4071a5,_0x3fe541){return _0x2a031a(_0x1dfcf1,_0x35e755-0x1c3,_0x3fe541- -_0x5a3772._0x9a24b7,_0x3fe541-_0x5a3772._0x2c2080);}let _0x365516;try{_0x365516=new URL(_0x5322f7)[_0x22ce73(0x6a9,_0x275428._0x689a8d,0x613,0x679)];}catch{_0x365516=null;}function _0x22ce73(_0x5d61c9,_0x31b45a,_0x4e66d9,_0x4478f5){return _0x2a031a(_0x4e66d9,_0x31b45a-0x12b,_0x4478f5-_0x12ff15._0x2e9c98,_0x4478f5-0x135);}return{'title':_0x5ad458['title']||_0x554a3c(-0x47,0x92,0x10a,-_0x275428._0x418f67),'url':normalizeUrl(_0x5322f7),'snippet':_0x5ad458[_0x22ce73(0x4f0,0x376,0x483,0x438)]??null,'displayUrl':_0x365516,'favicon':null,'publishedAt':null,'source':{'engine':_0x554a3c(-_0x275428._0x4e39fc,-0x149,-_0x275428._0x39b112,-0x189),'rank':_0x4c4e54+0x1}};});return{'items':_0x1be1c3[_0x43330c(0x6b9,_0x1c3d57._0x35c69b,_0x1c3d57._0x233d8c,_0x1c3d57._0x401f9c)](0x0,_0x39c1d9),'engine':_0x2a031a(0x2c3,0x4a7,_0x1c3d57._0x4a608f,_0x1c3d57._0x344a81)};}async function searchTavily(_0x3b4155,_0x1c21d6,_0x4e12ae){const _0x317248={_0xb174a0:0x17e,_0x33462f:0x54,_0xeacc11:0x196,_0x49db7b:0x545,_0x352269:0x4c5,_0x5b56a2:0x3e2,_0x2961c0:0x1dc,_0x1e2cfa:0x208,_0x422066:0xbd,_0x825535:0x1c,_0x3e3766:0x97,_0x13eff8:0xc2,_0x25d53d:0xad,_0x45e9e8:0x1c7,_0x2b2731:0xdd,_0x143980:0x3c,_0x50e102:0xa2,_0x1679b8:0x50,_0x1b2c53:0x6f,_0x4a16e1:0x18,_0x110276:0xe,_0x2c5e24:0x73,_0x1972e8:0x10a,_0x42a477:0xf3,_0x1a6053:0x411,_0x4cd8ff:0x3cc,_0x44baf8:0x309,_0x22ca08:0x1d3,_0xb6a0:0x1d9,_0x2aeb5b:0xf2,_0x5a71a2:0x1d,_0x58daac:0x29,_0x563dac:0x12,_0x484199:0x299,_0x5536bf:0x31c,_0x38a7a5:0x3e6,_0x57241a:0x15,_0x57e1d3:0x594,_0x1d77d0:0x4b4,_0x129425:0x5fd},_0x4f964a={_0x148ff7:0x3d1,_0x4dad2c:0x3c0,_0x77e695:0x2a9,_0x13f58c:0x49a,_0x126be9:0x69f,_0x3e3be2:0x4c9,_0x3ec79c:0x4fe},_0x26608f={_0x3be516:0x16b,_0x4cf2b1:0x16d,_0x2df7a5:0x4af};function _0xc12c5b(_0x42a9d4,_0x1b362b,_0x18b5c4,_0x33a9f6){return _0x278b49(_0x42a9d4-_0x26608f._0x3be516,_0x1b362b-_0x26608f._0x4cf2b1,_0x1b362b-_0x26608f._0x2df7a5,_0x18b5c4);}const _0x552a6f=Math['max'](0x1,Math[_0x5736be(-0x164,-_0x317248._0xb174a0,-_0x317248._0x33462f,-_0x317248._0xeacc11)](0x14,_0x1c21d6[_0xc12c5b(_0x317248._0x49db7b,_0x317248._0x352269,_0x317248._0x5b56a2,0x440)])),_0xb554f5={'query':_0x1c21d6[_0x5736be(-0xc9,-_0x317248._0x2961c0,-_0x317248._0x1e2cfa,-_0x317248._0x422066)],'max_results':_0x552a6f,'search_depth':_0x3b4155[_0x5736be(-0x9f,-_0x317248._0x825535,-0x105,0x43)]??'basic','topic':_0x3b4155[_0x5736be(-_0x317248._0x3e3766,-_0x317248._0x13eff8,_0x317248._0x25d53d,-_0x317248._0x45e9e8)]??_0x5736be(-_0x317248._0x2b2731,-_0x317248._0x143980,-_0x317248._0x50e102,_0x317248._0x1679b8)};function _0x5736be(_0x700e3,_0x4b49ea,_0x52884a,_0x1aa960){return _0x2fd7af(_0x700e3-0x54,_0x4b49ea-0xe6,_0x52884a,_0x1aa960-0x131);}if(_0x1c21d6[_0x5736be(-_0x317248._0x1b2c53,-0x178,-0xc7,0xd7)][_0x5736be(-_0x317248._0x4a16e1,_0x317248._0x110276,0x6c,-_0x317248._0x2c5e24)]>0x0)_0xb554f5['include_domains']=_0x1c21d6[_0x5736be(-0x6f,-0x10c,-_0x317248._0x1972e8,-_0x317248._0x42a477)];const _0x1198a3=await fetchJson(_0xc12c5b(_0x317248._0x1a6053,_0x317248._0x4cd8ff,0x442,_0x317248._0x44baf8),_0x4e12ae,{'method':_0x5736be(-0x140,-0x198,-0x14d,-_0x317248._0x22ca08),'headers':{'Authorization':'Bearer\x20'+_0x3b4155[_0x5736be(0xc0,_0x317248._0xb6a0,_0x317248._0x2aeb5b,0x1b3)],'Content-Type':_0x5736be(-_0x317248._0x5a71a2,-0x11d,_0x317248._0x58daac,-_0x317248._0x563dac)},'body':JSON[_0xc12c5b(_0x317248._0x484199,0x377,_0x317248._0x5536bf,_0x317248._0x38a7a5)](_0xb554f5)}),_0x55aebe=_0x1198a3['results']??[],_0x5a0830=_0x55aebe[_0x5736be(-0x8b,0xb8,_0x317248._0x57241a,-0x7e)]((_0x33265b,_0x16c2f9)=>{const _0x447fc7={_0x43e9fd:0x18b,_0x1a1412:0x95},_0x403c49={_0x493dcf:0x188,_0x3e7c36:0x69,_0x3eb23b:0x7a},_0x1f026c=_0x33265b[_0x2e24c8(0x413,0x493,_0x4f964a._0x148ff7,0x3cc)]||'';let _0x5ca38c;try{_0x5ca38c=new URL(_0x1f026c)['host'];}catch{_0x5ca38c=null;}function _0x2e24c8(_0x1cdb99,_0x367539,_0x28bf68,_0x51ae9d){return _0xc12c5b(_0x1cdb99-_0x403c49._0x493dcf,_0x28bf68-_0x403c49._0x3e7c36,_0x367539,_0x51ae9d-_0x403c49._0x3eb23b);}function _0x40023f(_0x353325,_0xdb2b10,_0x5530bb,_0x279cf1){return _0xc12c5b(_0x353325-_0x447fc7._0x43e9fd,_0x353325-0x63,_0x279cf1,_0x279cf1-_0x447fc7._0x1a1412);}return{'title':_0x33265b['title']||'Untitled','url':normalizeUrl(_0x1f026c),'snippet':_0x33265b[_0x40023f(_0x4f964a._0x4dad2c,0x3b9,_0x4f964a._0x77e695,_0x4f964a._0x13f58c)]??null,'displayUrl':_0x5ca38c,'favicon':null,'publishedAt':null,'source':{'engine':_0x40023f(0x5e6,_0x4f964a._0x126be9,_0x4f964a._0x3e3be2,_0x4f964a._0x3ec79c),'rank':_0x16c2f9+0x1}};});return{'items':_0x5a0830[_0xc12c5b(_0x317248._0x57e1d3,_0x317248._0x1d77d0,0x396,0x403)](0x0,_0x552a6f),'engine':_0xc12c5b(0x66c,0x583,_0x317248._0x129425,0x5e1)};}async function searchGoogleCse(_0x3137d3,_0x5a4392,_0x2378a5){const _0x461a4e={_0x4df218:0x2ac,_0x2e3004:0x2f9,_0x15f94d:0x1c8,_0x5b7fea:0x294,_0x23b690:0x167,_0x178b0e:0x65,_0x4e29e9:0x442,_0x5c5f54:0x524,_0x2e65ca:0x34c,_0x112dfd:0x402,_0x3aa91b:0x31e,_0x422aea:0x3d9,_0x2b78b5:0x2ce,_0x740f2:0x451,_0x472c66:0x396,_0x51f482:0x35e,_0x3f55ee:0x3d3,_0x3b1b93:0x3b8,_0xc2542f:0x4d2,_0x2edd1e:0x4f9,_0x572061:0x421,_0xb3d9b1:0x1d6,_0x53bf30:0x9d,_0x5f24ab:0xa5,_0x41371d:0x107,_0x80cdd9:0x286,_0x41c583:0x3d0,_0x30eede:0x346,_0x598d93:0x208,_0x1d087b:0x3fb,_0x129ce0:0x227,_0x185e46:0x310,_0x10bc93:0x36b,_0x74c98b:0x48e,_0x5eb1eb:0x29d,_0x3aa500:0xf0,_0x113867:0x526,_0x2e49d8:0x3f8,_0x57b263:0x51d,_0x526068:0x3fa,_0x418e74:0x3cd,_0x1560b5:0x306,_0x1f1ac7:0x39a,_0x5e3c60:0x489,_0x4e5880:0x599,_0xcd08a5:0x3ba,_0x4bd883:0x32c,_0x23a4d6:0x3dd,_0x1562f:0x356,_0x2398fd:0x44b,_0x28195a:0x460,_0x170644:0x4c5,_0x14e503:0x4d2,_0x23885f:0x441,_0x2e9b17:0x213,_0x320758:0x2be,_0x2d438c:0x455,_0x2a3e6d:0x44c,_0x41c2f9:0x2ba,_0x118668:0x392,_0x186be4:0x4cf,_0x1c5762:0x4d8,_0x427db5:0x607,_0x552f54:0x561,_0x54157e:0x36b,_0x3c10c6:0x48e,_0x2b4456:0x3e6,_0x4170b9:0xca,_0x419315:0x19e,_0x5eb21e:0x3e4,_0x56fce1:0x558,_0x3b4b9d:0x401,_0x458e61:0x3b6,_0x4a07d6:0x513,_0x1db8f2:0x41a,_0x15c07b:0x3cc,_0x7ea3e3:0x473,_0x35c3e9:0x33b,_0x576dfd:0x451,_0x228073:0x3c2,_0x12cc38:0x2f7,_0x1620f4:0x159,_0xe5260d:0x288,_0x495022:0x40f,_0x3b45ca:0x4f0,_0xae96ff:0x466,_0x480c06:0x287,_0x58a7bb:0x2dc,_0x38a251:0x3d9,_0x14b943:0x11b,_0x4b9197:0x126,_0x3a1e55:0x214,_0x3a9e67:0x250,_0x1fa67c:0x4cd,_0xcf6f33:0x558,_0x2b5926:0x410,_0x206caf:0x386,_0x42d1a7:0x4a8,_0x540e19:0x2a5,_0x33a5ee:0x360,_0x4f9e24:0x2d7,_0x2d13b6:0x461,_0x481c5a:0x2c5,_0x33581e:0x199,_0x4e0b89:0x178,_0x26fe91:0x28c,_0x139890:0x42e,_0x40adee:0x3fe,_0x24e7b5:0x3fa,_0x131753:0x475,_0x41e5ec:0x3e7,_0x5941bf:0x281,_0x52b3cc:0x40f,_0xcc4a96:0x4ad,_0xffe5:0x3a7,_0x57a84e:0x35e},_0x52fc6b={_0x46d98e:0x110};function _0x576424(_0x3ea80a,_0x2ea9f4,_0x1532dc,_0x5c8aca){return _0x278b49(_0x3ea80a-_0x52fc6b._0x46d98e,_0x2ea9f4-0x1aa,_0x3ea80a-0x42c,_0x1532dc);}const _0x15eef0=Math[_0x4a9dd9(_0x461a4e._0x4df218,_0x461a4e._0x2e3004,_0x461a4e._0x15f94d,_0x461a4e._0x5b7fea)](0x1,Math[_0x4a9dd9(0x10e,_0x461a4e._0x23b690,0x190,_0x461a4e._0x178b0e)](0x32,_0x5a4392[_0x576424(_0x461a4e._0x4e29e9,_0x461a4e._0x5c5f54,0x340,_0x461a4e._0x2e65ca)]));if(_0x5a4392[_0x4a9dd9(_0x461a4e._0x112dfd,0x458,_0x461a4e._0x3aa91b,_0x461a4e._0x422aea)]+_0x15eef0>0x64)throw new ToolExecutionError(_0x576424(_0x461a4e._0x2b78b5,0x243,0x36a,0x3ee),{'offset':_0x5a4392[_0x576424(_0x461a4e._0x740f2,_0x461a4e._0x472c66,0x454,0x319)],'count':_0x15eef0,'maxResults':0x64});const _0x19e5c0=cseDateRestrict(_0x5a4392['recencyDays']),_0x166f92=addSiteFilters(_0x5a4392[_0x576424(_0x461a4e._0x51f482,_0x461a4e._0x3f55ee,0x345,0x44a)],_0x5a4392[_0x576424(_0x461a4e._0x3b1b93,_0x461a4e._0xc2542f,_0x461a4e._0x2edd1e,0x477)]);let _0x4d04cd=0x0,_0x4b0e7e=_0x5a4392[_0x4a9dd9(0x3bf,0x45e,0x31e,_0x461a4e._0x572061)]+0x1;const _0x389853=[];function _0x4a9dd9(_0x178eb3,_0x1166c5,_0x447b91,_0x11b6c1){return _0x278b49(_0x178eb3-0xc6,_0x1166c5-0x189,_0x447b91-0x2f9,_0x1166c5);}while(_0x4d04cd<_0x15eef0){const _0x583017=Math[_0x4a9dd9(_0x461a4e._0xb3d9b1,_0x461a4e._0x53bf30,0x190,0x63)](0xa,_0x15eef0-_0x4d04cd),_0x5a26c2=new URL(_0x4a9dd9(0x89,_0x461a4e._0x5f24ab,0x18d,_0x461a4e._0x41371d));_0x5a26c2['searchParams'][_0x4a9dd9(_0x461a4e._0x80cdd9,0x176,0x208,0x279)](_0x4a9dd9(_0x461a4e._0x41c583,0x3ba,0x3c6,0x38f),_0x3137d3['googleCseKey']),_0x5a26c2[_0x4a9dd9(_0x461a4e._0x30eede,0x271,0x36b,0x43b)][_0x576424(0x33b,_0x461a4e._0x598d93,_0x461a4e._0x1d087b,_0x461a4e._0x129ce0)]('cx',_0x3137d3[_0x4a9dd9(0x337,0x298,_0x461a4e._0x185e46,0x2a3)]),_0x5a26c2[_0x4a9dd9(0x302,0x428,_0x461a4e._0x10bc93,_0x461a4e._0x74c98b)][_0x4a9dd9(_0x461a4e._0x5eb1eb,0x1a0,_0x461a4e._0x598d93,_0x461a4e._0x3aa500)]('q',_0x166f92),_0x5a26c2[_0x576424(0x49e,_0x461a4e._0x113867,_0x461a4e._0x2e49d8,_0x461a4e._0x57b263)]['set']('num',String(_0x583017)),_0x5a26c2[_0x4a9dd9(_0x461a4e._0x526068,_0x461a4e._0x418e74,0x36b,0x475)]['set'](_0x576424(_0x461a4e._0x1560b5,0x296,0x3d8,_0x461a4e._0x1f1ac7),String(_0x4b0e7e)),_0x5a26c2[_0x576424(0x49e,0x531,0x423,0x44a)][_0x4a9dd9(0x1a4,0x102,0x208,0x305)](_0x576424(0x4cc,_0x461a4e._0x5e3c60,0x5ad,0x58f),_0x5a4392[_0x576424(0x4cc,_0x461a4e._0x4e5880,_0x461a4e._0xcd08a5,0x5ed)]?_0x576424(_0x461a4e._0x4bd883,_0x461a4e._0x23a4d6,_0x461a4e._0x1562f,0x313):_0x4a9dd9(0x26a,_0x461a4e._0x2398fd,0x329,_0x461a4e._0x28195a));_0x5a4392[_0x576424(_0x461a4e._0x170644,_0x461a4e._0x14e503,0x55f,_0x461a4e._0x23885f)]&&(_0x5a26c2['searchParams'][_0x4a9dd9(_0x461a4e._0x2e9b17,0x1f2,0x208,_0x461a4e._0x320758)]('hl',_0x5a4392['lang']),_0x5a26c2[_0x4a9dd9(0x33f,_0x461a4e._0x2d438c,0x36b,_0x461a4e._0x2a3e6d)]['set']('lr',_0x4a9dd9(0x43f,0x318,0x301,0x36f)+_0x5a4392[_0x4a9dd9(0x2c0,_0x461a4e._0x41c2f9,_0x461a4e._0x118668,0x316)]));if(_0x5a4392[_0x576424(_0x461a4e._0x186be4,_0x461a4e._0x1c5762,_0x461a4e._0x427db5,_0x461a4e._0x552f54)])_0x5a26c2[_0x4a9dd9(0x402,0x278,_0x461a4e._0x54157e,0x43c)]['set']('gl',_0x5a4392[_0x576424(0x4cf,_0x461a4e._0x3c10c6,0x5ab,_0x461a4e._0x2b4456)][_0x4a9dd9(_0x461a4e._0x4170b9,0x27f,_0x461a4e._0x419315,0x13a)]());if(_0x5a4392[_0x576424(0x34c,0x2c7,0x480,0x2ae)]===_0x576424(_0x461a4e._0x5eb21e,0x34b,0x45e,0x3df))_0x5a26c2[_0x576424(0x49e,_0x461a4e._0x56fce1,_0x461a4e._0x3b4b9d,_0x461a4e._0x458e61)]['set'](_0x576424(0x44b,_0x461a4e._0x4a07d6,0x48a,0x306),_0x576424(_0x461a4e._0x1db8f2,_0x461a4e._0x15c07b,0x44f,_0x461a4e._0x7ea3e3));if(_0x19e5c0)_0x5a26c2['searchParams'][_0x576424(_0x461a4e._0x35c3e9,_0x461a4e._0x576dfd,0x2cd,0x42c)](_0x4a9dd9(0x345,0x442,0x397,_0x461a4e._0x4e29e9),_0x19e5c0);const _0x70023b=await fetchJson(_0x5a26c2[_0x576424(0x3c6,_0x461a4e._0x228073,0x3dd,_0x461a4e._0x12cc38)](),_0x2378a5),_0x59de7a=_0x70023b[_0x4a9dd9(_0x461a4e._0x1620f4,0x169,_0x461a4e._0xe5260d,0x1cd)]??[];if(_0x59de7a[_0x576424(_0x461a4e._0x495022,_0x461a4e._0x3b45ca,_0x461a4e._0xae96ff,0x3b0)]===0x0)break;const _0x48c27a=_0x4d04cd;for(let _0x175eb5=0x0;_0x175eb5<_0x59de7a[_0x4a9dd9(_0x461a4e._0x480c06,0x1d4,_0x461a4e._0x58a7bb,_0x461a4e._0x38a251)];_0x175eb5++){const _0x2a6a30=_0x59de7a[_0x175eb5];if(!_0x2a6a30)continue;const _0xf5dce0=_0x2a6a30[_0x4a9dd9(_0x461a4e._0x14b943,_0x461a4e._0x4b9197,_0x461a4e._0x3a1e55,_0x461a4e._0x3a9e67)]||_0x2a6a30['image']?.[_0x4a9dd9(0x1ef,0x397,0x26a,0x3ab)]||'',_0x4ec6ff=_0x2a6a30[_0x576424(_0x461a4e._0x1fa67c,0x603,_0x461a4e._0xcf6f33,0x426)]||_0x2a6a30[_0x4a9dd9(_0x461a4e._0x2b5926,_0x461a4e._0x206caf,0x2e7,0x1e2)]?.[_0x576424(0x4cd,0x540,_0x461a4e._0x42d1a7,0x60e)]||_0x4a9dd9(0x4e7,_0x461a4e._0x540e19,0x3ad,_0x461a4e._0x33a5ee),_0x1d434e=_0x2a6a30[_0x4a9dd9(0x41b,_0x461a4e._0x4f9e24,0x305,0x3e2)]||_0x2a6a30[_0x576424(0x31d,0x3c0,_0x461a4e._0x2d13b6,0x2a9)]?.[_0x576424(_0x461a4e._0x481c5a,_0x461a4e._0x33581e,0x2cf,0x342)](/<[^>]+>/g,''),_0x1da578=_0x2a6a30[_0x4a9dd9(0x37c,_0x461a4e._0x4e0b89,_0x461a4e._0x26fe91,0x16e)]?.['metatags']?.[0x0]??{};let _0x2976a0;try{_0x2976a0=new URL(_0xf5dce0)[_0x576424(0x51b,0x661,_0x461a4e._0x139890,_0x461a4e._0x40adee)];}catch{_0x2976a0=null;}_0x389853[_0x4a9dd9(0x399,0x4a1,_0x461a4e._0x24e7b5,_0x461a4e._0x131753)]({'title':_0x4ec6ff,'url':normalizeUrl(_0xf5dce0),'snippet':_0x1d434e??null,'displayUrl':_0x2976a0,'favicon':null,'publishedAt':_0x1da578['article:published_time']||_0x1da578[_0x4a9dd9(0x2ad,0x3fd,0x34a,_0x461a4e._0x41e5ec)]||null,'source':{'engine':_0x4a9dd9(0x372,0x1df,_0x461a4e._0x5941bf,0x2c9),'rank':_0x48c27a+_0x175eb5+0x1}});}_0x4d04cd+=_0x59de7a[_0x576424(_0x461a4e._0x52b3cc,_0x461a4e._0xcc4a96,_0x461a4e._0xffe5,0x35a)],_0x4b0e7e+=_0x59de7a['length'];if(_0x59de7a[_0x4a9dd9(0x3e4,0x307,0x2dc,_0x461a4e._0x57a84e)]<_0x583017)break;}return _0x389853[_0x576424(0x431,0x458,0x4fe,0x547)](0x0,_0x15eef0);}function isGoogleCseEngine(_0x3fbe62){const _0x47adc8={_0x5bb172:0x6e3},_0x4b7a5d={_0x34ea59:0xf2,_0x20b65f:0x5f0};function _0x110850(_0xbfbbf,_0xb68447,_0x3dd08b,_0x3745b7){return _0x278b49(_0xbfbbf-0x1e0,_0xb68447-_0x4b7a5d._0x34ea59,_0x3745b7-_0x4b7a5d._0x20b65f,_0x3dd08b);}return _0x110850(0x643,0x6f2,0x767,_0x47adc8._0x5bb172)in _0x3fbe62;}function isOllamaEngine(_0x4f5ea1){const _0x50f0b8={_0x51c6d4:0x3b,_0x133bc9:0x101,_0x58f5c1:0x29},_0x527858={_0x155186:0xe7};function _0x34f77d(_0x34a6ac,_0x1d9563,_0x3f06d3,_0x1fdccc){return _0x2fd7af(_0x3f06d3-0x76,_0x1d9563-_0x527858._0x155186,_0x1d9563,_0x1fdccc-0x186);}return _0x34f77d(-0x116,-_0x50f0b8._0x51c6d4,-_0x50f0b8._0x133bc9,_0x50f0b8._0x58f5c1)in _0x4f5ea1;}function isTavilyEngine(_0x546bc3){return'tavilyApiKey'in _0x546bc3;}function createWebSearchTool(_0x59ca27){const _0x1fb4bd={_0x5df642:0x374,_0x1e4fb5:0x334,_0x38193d:0x2af,_0x2a028c:0xd4,_0x4bbdd2:0x269,_0x53a3b5:0x6b,_0x2029cb:0x100,_0x4ff51a:0x42,_0x525845:0x2df,_0x529f64:0x1a3,_0x3547d5:0x107,_0x4925b0:0x148,_0x5337e1:0x1b0,_0x5a1b94:0x90,_0x10031e:0x10b,_0x42a6c8:0x34f,_0x1ec935:0x20b,_0xa012a9:0xb5,_0x55a074:0x285,_0x2e7c65:0x226,_0x24fce5:0x1db,_0x45f042:0x199,_0xb889c9:0xb6,_0x144305:0x1c1,_0x49a2d5:0x15d},_0x467cc0={_0x2df2f7:0x439,_0x1830d2:0x4dc,_0x5eed79:0x33e,_0x3bb6b4:0x1b9,_0x5247ba:0x242,_0x5d75b3:0x463,_0x60c14e:0x230,_0x5d4ea6:0x385,_0x53ab5f:0x323,_0x51d32a:0x315,_0x4d7933:0x2eb,_0xa80e83:0x36e,_0x4aa39e:0x35d,_0x4546ee:0x44c,_0x5828c9:0x32e,_0x90374e:0x1e9,_0x45fd4c:0x24a,_0x2afec6:0x51a,_0x248995:0x357,_0x58f91f:0x425,_0x4080da:0x334,_0x979f8e:0x2c3,_0x39c2d2:0x111,_0x5e023d:0x54f,_0x3621c7:0x4c4,_0x25877c:0x3fb,_0x6bf385:0x307,_0x17577b:0x470,_0xeecc1d:0x4ff,_0x2801b9:0x5e4,_0x35f22c:0x2a0,_0x5c823e:0x18b,_0x19c084:0x278,_0x5c88f5:0x287,_0x1b518c:0x322,_0x503ccb:0x230,_0x6fce0f:0x325,_0x495b5a:0x3b3,_0x44cf1f:0x2e5,_0x5598c6:0x53d,_0x5f19f8:0x400,_0x474409:0x3af,_0x5d59d4:0x2f6,_0x461c22:0x1c2,_0x33213a:0x2ec,_0x54edd1:0x346,_0x2d20bb:0x427,_0x224d37:0x31b,_0x258c5e:0x1f5,_0x23a67d:0x1c6,_0x174386:0x2b1,_0x5be6aa:0x3aa,_0x43224a:0x31b,_0x5b85bb:0x2a7,_0x4bc736:0x369,_0x2274d6:0x372,_0x5b7ffc:0x33b,_0x26fcf6:0x507,_0xeabe77:0x507,_0x21df40:0x48b,_0x2ecdb4:0x30f,_0x133426:0x245,_0x14a3f4:0x305,_0x41e27c:0x38e,_0x5c97f1:0x442,_0x5a4be0:0x4e2,_0x36534b:0x42e,_0x13af45:0x429,_0x223e32:0x4f8,_0x5afca8:0x4ee,_0x3e7e03:0x2f1,_0x26d641:0x393,_0x36c5d4:0x2ec,_0xe1de00:0x1e5,_0x239f38:0x49f,_0x19c7e9:0x4f3,_0x37ab97:0x2e4,_0x344c11:0x20b,_0x1bd3a7:0x472,_0xcadd48:0x397,_0x54bc30:0x473,_0x46d558:0x368,_0x120611:0x448,_0x26ca8d:0x310,_0x476e7b:0x571,_0x927629:0x5c7,_0x38d41e:0x5e7,_0x3622c9:0x614,_0x4812d0:0x48e,_0x421798:0x410,_0x385913:0x4f8,_0x40044e:0x39f,_0x4e51ad:0x511,_0x31b65a:0x42b,_0x1d573e:0x502,_0xf9089d:0x506,_0x5b6e1a:0x442,_0x5dbc1e:0x407,_0x1c4ea6:0x3a9,_0x1b8835:0x2cb,_0x332089:0x391,_0x166180:0x2e1,_0x4d8d2f:0x2a6,_0x7b0a7a:0x287,_0x20e630:0x204},_0x1dc49={_0x386468:0x44,_0x57b8f7:0x263,_0x259668:0x11a,_0x2fbd81:0x15e,_0x4499db:0x22b,_0x3971f5:0x1c6,_0x59390e:0x27b,_0xa8747:0x176},_0x3a17af={_0x2a61e6:0x19c,_0x28bbde:0x92},_0x4f12d7={_0x1c744a:0x131,_0x38951d:0x90};if(!_0x59ca27['engines']||_0x59ca27[_0x2c15f5(0x297,0x239,_0x1fb4bd._0x5df642,0x4b3)][_0x2c15f5(0x251,_0x1fb4bd._0x1e4fb5,_0x1fb4bd._0x38193d,0x393)]===0x0)throw new Error('WebSearch\x20requires\x20at\x20least\x20one\x20search\x20engine\x20configured');function _0x2c15f5(_0x96bde9,_0x428f8f,_0x48f1d8,_0x49c158){return _0x278b49(_0x96bde9-_0x4f12d7._0x1c744a,_0x428f8f-_0x4f12d7._0x38951d,_0x48f1d8-0x2cc,_0x428f8f);}const _0x21533a=_0x59ca27[_0x2c15f5(0x262,_0x1fb4bd._0x2a028c,0x1c5,_0x1fb4bd._0x4bbdd2)]??_0x48e5ae(0x1fc,0xcb,0xd6,0x1e6);function _0x48e5ae(_0x4ea7b6,_0x57e210,_0x15bf1c,_0x3097ee){return _0x2fd7af(_0x15bf1c-_0x3a17af._0x2a61e6,_0x57e210-0x9a,_0x3097ee,_0x3097ee-_0x3a17af._0x28bbde);}return defineTool({'name':_0x21533a,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':'object','properties':{'description':{'type':_0x48e5ae(0x93,0x37,0x42,_0x1fb4bd._0x53a3b5)},'query':{'type':_0x48e5ae(_0x1fb4bd._0x2029cb,0xe4,_0x1fb4bd._0x4ff51a,-0x5)},'count':{'type':'number'},'offset':{'type':_0x48e5ae(_0x1fb4bd._0x525845,_0x1fb4bd._0x529f64,0x216,0x2d3)},'domains':{'type':_0x48e5ae(_0x1fb4bd._0x3547d5,_0x1fb4bd._0x4925b0,_0x1fb4bd._0x5337e1,_0x1fb4bd._0x5a1b94),'items':{'type':_0x48e5ae(_0x1fb4bd._0x10031e,-0x95,0x42,0xa4)}},'recencyDays':{'type':_0x48e5ae(_0x1fb4bd._0x42a6c8,_0x1fb4bd._0x1ec935,0x216,0x1b8)},'lang':{'type':_0x48e5ae(-_0x1fb4bd._0xa012a9,0x65,0x42,-0x34)},'region':{'type':_0x2c15f5(0x19f,_0x1fb4bd._0x55a074,0x1c1,_0x1fb4bd._0x2e7c65)},'safe':{'type':_0x48e5ae(0x1bb,_0x1fb4bd._0x24fce5,0x126,0x241)},'type':{'type':_0x2c15f5(_0x1fb4bd._0x45f042,_0x1fb4bd._0xb889c9,_0x1fb4bd._0x144305,0x258)},'hydrateMeta':{'type':'boolean'}},'required':[_0x48e5ae(0x25,_0x1fb4bd._0x49a2d5,0x7f,-0xc8)]},async *'execute'(_0x272ec4,_0x34e60d){const _0x81a150={_0x357a96:0xfb,_0x2a9460:0x5a},_0xbcd352={_0x43c2e9:0x165},_0x1bcfad={_0x39b245:0x2d4},_0x3fd176={_0x65d946:0x2d1,_0x37bb03:0x1a9},_0x32fab5=_0x272ec4['query'][_0x2cc1f2(_0x467cc0._0x2df2f7,0x3b6,0x3ef,_0x467cc0._0x1830d2)]();if(!_0x32fab5)throw new ToolExecutionError(_0x4932f9(_0x467cc0._0x5eed79,_0x467cc0._0x3bb6b4,_0x467cc0._0x5247ba,0x36d));const _0x22d7bd={'query':_0x32fab5,'count':Math[_0x2cc1f2(_0x467cc0._0x5d75b3,_0x467cc0._0x60c14e,0x32e,_0x467cc0._0x5d4ea6)](0x1,Math['min'](0x32,Math[_0x2cc1f2(_0x467cc0._0x53ab5f,0x2a4,_0x467cc0._0x51d32a,0x305)](_0x272ec4[_0x4932f9(_0x467cc0._0x4d7933,0x314,_0x467cc0._0xa80e83,_0x467cc0._0x4aa39e)]??0xa))),'offset':Math[_0x2cc1f2(0x29f,_0x467cc0._0x4546ee,_0x467cc0._0x5828c9,_0x467cc0._0x90374e)](0x0,Math[_0x2cc1f2(_0x467cc0._0x45fd4c,0x271,0x315,0x24a)](_0x272ec4[_0x2cc1f2(_0x467cc0._0x2afec6,_0x467cc0._0x248995,0x484,_0x467cc0._0x58f91f)]??0x0)),'domains':_0x272ec4[_0x2cc1f2(_0x467cc0._0x4080da,0x31b,0x3eb,_0x467cc0._0x979f8e)]??[],'recencyDays':Math[_0x4932f9(0x285,0x158,0x227,_0x467cc0._0x39c2d2)](0x0,Math['trunc'](_0x272ec4[_0x2cc1f2(0x4cb,0x41f,_0x467cc0._0x5e023d,0x61d)]??0x0)),'lang':_0x272ec4['lang']??'en','region':_0x272ec4[_0x4932f9(_0x467cc0._0x3621c7,0x40e,_0x467cc0._0x25877c,_0x467cc0._0x6bf385)]??'','safe':_0x272ec4[_0x2cc1f2(_0x467cc0._0x1830d2,_0x467cc0._0x17577b,_0x467cc0._0xeecc1d,_0x467cc0._0x2801b9)]??!![],'type':normalizeType(_0x272ec4[_0x4932f9(_0x467cc0._0x35f22c,_0x467cc0._0x5c823e,_0x467cc0._0x19c084,0x2b3)]),'hydrateMeta':_0x272ec4[_0x4932f9(0x36a,0x2f6,_0x467cc0._0x5c88f5,_0x467cc0._0x1b518c)]??![]};let _0x140435=[],_0x143adc=_0x4932f9(_0x467cc0._0x503ccb,0x43c,_0x467cc0._0x6fce0f,_0x467cc0._0x495b5a);for(const _0x185724 of _0x59ca27[_0x4932f9(_0x467cc0._0x44cf1f,_0x467cc0._0x5598c6,_0x467cc0._0x5f19f8,0x374)]){try{if(isGoogleCseEngine(_0x185724))_0x140435=await searchGoogleCse(_0x185724,_0x22d7bd,_0x34e60d[_0x2cc1f2(_0x467cc0._0x474409,0x2c5,0x3f3,_0x467cc0._0x5d59d4)]),_0x143adc='google-cse';else{if(isOllamaEngine(_0x185724)){const _0x324a96=await searchOllama(_0x185724,_0x22d7bd,_0x34e60d[_0x4932f9(0x41d,_0x467cc0._0x461c22,_0x467cc0._0x33213a,0x2de)]);_0x140435=_0x324a96[_0x4932f9(_0x467cc0._0x54edd1,0x278,0x2e7,0x397)],_0x143adc=_0x324a96[_0x4932f9(_0x467cc0._0x2d20bb,0x31a,_0x467cc0._0x224d37,_0x467cc0._0x258c5e)];}else{if(isTavilyEngine(_0x185724)){const _0x292e2e=await searchTavily(_0x185724,_0x22d7bd,_0x34e60d[_0x4932f9(0x281,_0x467cc0._0x23a67d,0x2ec,_0x467cc0._0x4d7933)]);_0x140435=_0x292e2e[_0x4932f9(0x39b,_0x467cc0._0x174386,0x2e7,0x3b7)],_0x143adc=_0x292e2e[_0x4932f9(0x426,_0x467cc0._0x5be6aa,_0x467cc0._0x43224a,_0x467cc0._0x5b85bb)];}}}if(_0x140435[_0x4932f9(_0x467cc0._0x4bc736,_0x467cc0._0x2274d6,_0x467cc0._0x5b7ffc,0x273)]>0x0)break;}catch(_0x549ab4){if(_0x185724===_0x59ca27[_0x2cc1f2(0x5af,0x4e2,_0x467cc0._0x26fcf6,0x54d)][_0x59ca27[_0x2cc1f2(0x5af,0x4eb,_0x467cc0._0xeabe77,_0x467cc0._0x21df40)][_0x4932f9(_0x467cc0._0x2ecdb4,0x358,0x33b,0x468)]-0x1])throw _0x549ab4;}}_0x22d7bd[_0x2cc1f2(_0x467cc0._0x133426,_0x467cc0._0x14a3f4,_0x467cc0._0x41e27c,_0x467cc0._0x4bc736)]&&_0x140435[_0x2cc1f2(0x480,0x545,_0x467cc0._0x5c97f1,_0x467cc0._0x5a4be0)]>0x0&&(_0x140435=await hydrateResults(_0x140435,_0x22d7bd[_0x2cc1f2(_0x467cc0._0x36534b,_0x467cc0._0x13af45,_0x467cc0._0x223e32,_0x467cc0._0x5afca8)],_0x34e60d[_0x4932f9(_0x467cc0._0x3e7e03,_0x467cc0._0x26d641,_0x467cc0._0x36c5d4,_0x467cc0._0xe1de00)]));const _0x1ef500=new Set();_0x140435=_0x140435['filter'](_0xea7a81=>{const _0x230f03=_0xea7a81[_0x3d184e(_0x1dc49._0x386468,0x76,-0x3e,0x5d)][_0x3d184e(_0x1dc49._0x57b8f7,0x20b,0x1cf,_0x1dc49._0x259668)]();if(!_0x230f03||_0x1ef500[_0x3d184e(_0x1dc49._0x2fbd81,_0x1dc49._0x4499db,0x78,_0x1dc49._0x3971f5)](_0x230f03))return![];_0x1ef500[_0x24833a(_0x1dc49._0x59390e,0x1a4,_0x1dc49._0xa8747,0x10e)](_0x230f03);function _0x24833a(_0x284cfa,_0x1fb104,_0x841732,_0x36d39b){return _0x4932f9(_0x36d39b,_0x1fb104-0xf3,_0x1fb104- -_0x3fd176._0x65d946,_0x36d39b-_0x3fd176._0x37bb03);}function _0x3d184e(_0x40fd85,_0x471fbc,_0x3dac23,_0x32b894){return _0x2cc1f2(_0x40fd85-0x2f,_0x32b894,_0x40fd85- -_0x1bcfad._0x39b245,_0x32b894-0xf6);}return!![];}),_0x140435=_0x140435[_0x2cc1f2(_0x467cc0._0x239f38,_0x467cc0._0x19c7e9,0x3cf,0x308)]((_0x11c732,_0x265511)=>({..._0x11c732,'source':{..._0x11c732[_0x2cc1f2(0x301,0x380,0x404,0x34e)],'rank':_0x265511+0x1}}));const _0x38c1a9={};function _0x4932f9(_0x1873ef,_0x481479,_0x3ed1b9,_0x3fb9bf){return _0x2c15f5(_0x1873ef-0x4c,_0x1873ef,_0x3ed1b9-0x8c,_0x3fb9bf-_0xbcd352._0x43c2e9);}if(_0x22d7bd[_0x4932f9(_0x467cc0._0x1b518c,0x370,_0x467cc0._0x37ab97,0x270)][_0x4932f9(_0x467cc0._0x344c11,_0x467cc0._0x1bd3a7,0x33b,_0x467cc0._0xcadd48)]>0x0)_0x38c1a9[_0x2cc1f2(_0x467cc0._0x54bc30,_0x467cc0._0x46d558,0x3eb,_0x467cc0._0x120611)]=_0x22d7bd[_0x2cc1f2(0x4f7,_0x467cc0._0x26ca8d,0x3eb,0x482)];function _0x2cc1f2(_0x31b5f2,_0x57408a,_0x34b6d4,_0x536c4c){return _0x2c15f5(_0x31b5f2-_0x81a150._0x357a96,_0x57408a,_0x34b6d4-0x193,_0x536c4c-_0x81a150._0x2a9460);}if(_0x22d7bd[_0x2cc1f2(_0x467cc0._0x476e7b,_0x467cc0._0x927629,_0x467cc0._0x5e023d,_0x467cc0._0x38d41e)]>0x0)_0x38c1a9[_0x2cc1f2(0x68f,0x4c3,0x54f,0x5f4)]=_0x22d7bd[_0x2cc1f2(0x445,0x43e,0x54f,_0x467cc0._0x3622c9)];if(_0x22d7bd[_0x2cc1f2(0x5ed,0x3e3,_0x467cc0._0x223e32,_0x467cc0._0x4812d0)]!=='en')_0x38c1a9[_0x2cc1f2(0x62c,_0x467cc0._0x421798,_0x467cc0._0x385913,0x598)]=_0x22d7bd['lang'];if(_0x22d7bd[_0x4932f9(_0x467cc0._0x40044e,0x417,_0x467cc0._0x25877c,_0x467cc0._0x4e51ad)])_0x38c1a9['region']=_0x22d7bd[_0x2cc1f2(0x465,_0x467cc0._0x31b65a,_0x467cc0._0x1d573e,0x3d4)];return yield createToolOutput(formatResults(_0x140435),{'engine':_0x143adc,'count':_0x140435[_0x2cc1f2(0x387,_0x467cc0._0xf9089d,_0x467cc0._0x5b6e1a,_0x467cc0._0x5dbc1e)],'items':_0x140435,'query':_0x22d7bd[_0x2cc1f2(_0x467cc0._0x1c4ea6,_0x467cc0._0x1b8835,_0x467cc0._0x332089,0x2f5)],...Object[_0x4932f9(0x22a,_0x467cc0._0x166180,0x209,0x185)](_0x38c1a9)[_0x4932f9(_0x467cc0._0x53ab5f,0x3d2,0x33b,_0x467cc0._0x4d8d2f)]>0x0?{'appliedFilters':_0x38c1a9}:{},'offset':_0x22d7bd['offset'],'totalRequested':_0x22d7bd['count'],'hydrated':_0x22d7bd[_0x4932f9(0x3b5,0x3cf,_0x467cc0._0x7b0a7a,_0x467cc0._0x20e630)]}),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};
1
+ (function(_0x4b8e96,_0xfc5d47){const _0x107afd={_0x203e8c:0x10a,_0x1b7671:0x38,_0x31ee24:0xb5,_0x3fe866:0x407,_0x3642cc:0x1cf,_0x14976a:0x2e5,_0x2964de:0x24b,_0x345c94:0x11a,_0x1fb66a:0x200,_0x2b3950:0x7a,_0x270808:0x85,_0x113600:0x9f,_0x31633c:0x175,_0x397bb6:0x299,_0x55e832:0x1ce,_0x29ad9d:0x244,_0x2a21b4:0x357,_0x5c4c80:0x196},_0x175b85={_0xfd8c6e:0x1a},_0x1b8c11=_0x4b8e96();function _0x4d3637(_0x2c151e,_0x314349,_0x58ff45,_0x22c02c){return _0xa38c(_0x314349- -0x168,_0x22c02c);}function _0x5a437a(_0x3ff697,_0x1b8ba0,_0x536294,_0xeff67){return _0xa38c(_0xeff67-_0x175b85._0xfd8c6e,_0x536294);}while(!![]){try{const _0xe2be3=parseInt(_0x4d3637(-_0x107afd._0x203e8c,_0x107afd._0x1b7671,0x1,-_0x107afd._0x31ee24))/0x1+-parseInt(_0x5a437a(0x299,0x38f,0x376,0x323))/0x2*(-parseInt(_0x5a437a(0x1c9,_0x107afd._0x3fe866,0x18d,0x2d6))/0x3)+-parseInt(_0x5a437a(0x38d,_0x107afd._0x3642cc,_0x107afd._0x14976a,_0x107afd._0x2964de))/0x4+parseInt(_0x5a437a(0xc4,0xd1,_0x107afd._0x345c94,_0x107afd._0x1fb66a))/0x5+-parseInt(_0x5a437a(_0x107afd._0x2b3950,_0x107afd._0x270808,0x1a0,0xda))/0x6*(parseInt(_0x4d3637(-0x35,0xba,0x18c,0xab))/0x7)+parseInt(_0x4d3637(-0xaf,-0xa7,-_0x107afd._0x113600,-_0x107afd._0x31633c))/0x8*(parseInt(_0x4d3637(_0x107afd._0x397bb6,_0x107afd._0x55e832,_0x107afd._0x29ad9d,0xe3))/0x9)+-parseInt(_0x5a437a(0x1af,_0x107afd._0x2a21b4,0x38f,0x2e3))/0xa*(-parseInt(_0x5a437a(0x23c,0x205,0xb6,_0x107afd._0x5c4c80))/0xb);if(_0xe2be3===_0xfc5d47)break;else _0x1b8c11['push'](_0x1b8c11['shift']());}catch(_0x146e16){_0x1b8c11['push'](_0x1b8c11['shift']());}}}(_0x491c,0xecb92));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 _0x25cd58 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x37c1da(0x4d9,0x4bf,0x6c2,0x5b3),'.tsx':_0x37c1da(0x576,0x532,0x6f1,0x5a6),'.js':'javascript','.jsx':_0x38d42b(-0xa0,-0x2d,0x82,-0x11a),'.mjs':_0x38d42b(0xf8,0xf6,-0x40,0xa8),'.cjs':'javascript','.mts':_0x38d42b(0x29,0x168,0x239,0x2ac),'.cts':_0x38d42b(0x1fd,0x168,0x228,0x2a7),'.json':_0x38d42b(-0x2e,-0x54,-0xef,-0xb5),'.jsonc':_0x37c1da(0x592,0x40a,0x3f7,0x447)};function getLanguageId(_0x466d0b){const _0x1d9ddf={_0x35a8ad:0x1dd,_0x222664:0x239,_0x5de0e0:0x274,_0x17fc1a:0x22f,_0x590dac:0x1f7},_0x395ce7={_0x31dee7:0x1db};function _0x1bc153(_0x2b07d0,_0x351b49,_0x3a1d96,_0x2cf8b9){return _0x38d42b(_0x2b07d0-0xe,_0x351b49-0xf,_0x2b07d0,_0x2cf8b9-_0x395ce7._0x31dee7);}function _0x12193b(_0x303c3a,_0x4a3b92,_0x4dd119,_0x6ada92){return _0x38d42b(_0x303c3a-0x135,_0x6ada92-0x246,_0x4a3b92,_0x6ada92-0x107);}return EXTENSION_TO_LANGUAGE[_0x25cd58[_0x1bc153(_0x1d9ddf._0x35a8ad,0x1e1,0x2f6,_0x1d9ddf._0x222664)](_0x466d0b)[_0x1bc153(_0x1d9ddf._0x5de0e0,_0x1d9ddf._0x17fc1a,_0x1d9ddf._0x590dac,0x10d)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x1a8055){const _0x274edb={_0x291161:0x127},_0x1504fa={_0x328631:0x96};function _0x118cbc(_0x39a093,_0x2f130a,_0x2195a2,_0x2a6a9b){return _0x38d42b(_0x39a093-0xf8,_0x2f130a- -_0x1504fa._0x328631,_0x39a093,_0x2a6a9b-0x8c);}return pathToFileURL(_0x1a8055)[_0x118cbc(-0x40,-0x2c,-0x2b,-_0x274edb._0x291161)]();}function textDocumentPosition(_0x5591ac){const _0x34b760={_0x3aca57:0x45b,_0x4f3ae:0x435,_0x48bd0d:0xea,_0x1e18d2:0x226,_0x3be862:0x5a2},_0x85c6d8={_0x3a0770:0x74},_0x53803b={_0x559ec1:0x1b7};function _0x57259c(_0x23634c,_0xfb5b8,_0x5619c2,_0x259e62){return _0x38d42b(_0x23634c-0x10e,_0x23634c-0x46c,_0x5619c2,_0x259e62-_0x53803b._0x559ec1);}function _0x32fc75(_0x56abe8,_0x578d3a,_0x1c2cd5,_0x272291){return _0x38d42b(_0x56abe8-0x62,_0x1c2cd5-0x275,_0x578d3a,_0x272291-_0x85c6d8._0x3a0770);}return{'textDocument':{'uri':uriForPath(_0x5591ac[_0x32fc75(_0x34b760._0x3aca57,0x398,_0x34b760._0x4f3ae,0x4ae)])},'position':{'line':_0x5591ac[_0x32fc75(_0x34b760._0x48bd0d,0x2ac,_0x34b760._0x1e18d2,0xec)],'character':_0x5591ac[_0x57259c(0x5ac,0x558,0x4a0,_0x34b760._0x3be862)]}};}function normalizeLocations(_0x54dccf){const _0x206463={_0x160765:0x13},_0x21154e={_0x36f786:0x107,_0x1e4c97:0x139};function _0x182cf4(_0x4892fb,_0x48ad41,_0x3c0501,_0x4c611e){return _0x38d42b(_0x4892fb-0x110,_0x4892fb-_0x21154e._0x36f786,_0x4c611e,_0x4c611e-_0x21154e._0x1e4c97);}if(!_0x54dccf)return[];return Array[_0x182cf4(0x128,0x1f2,-0x19,_0x206463._0x160765)](_0x54dccf)?_0x54dccf:[_0x54dccf];}function _0xa38c(_0x204890,_0x5ab341){_0x204890=_0x204890-0xb2;const _0x491cc2=_0x491c();let _0xa38c90=_0x491cc2[_0x204890];if(_0xa38c['jVMZIT']===undefined){var _0xb5b7d8=function(_0x11c826){const _0x2327d0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25cd58='',_0x3c534a='';for(let _0x46c487=0x0,_0x57f35d,_0x15962d,_0x291b91=0x0;_0x15962d=_0x11c826['charAt'](_0x291b91++);~_0x15962d&&(_0x57f35d=_0x46c487%0x4?_0x57f35d*0x40+_0x15962d:_0x15962d,_0x46c487++%0x4)?_0x25cd58+=String['fromCharCode'](0xff&_0x57f35d>>(-0x2*_0x46c487&0x6)):0x0){_0x15962d=_0x2327d0['indexOf'](_0x15962d);}for(let _0x46d8da=0x0,_0x3b0a63=_0x25cd58['length'];_0x46d8da<_0x3b0a63;_0x46d8da++){_0x3c534a+='%'+('00'+_0x25cd58['charCodeAt'](_0x46d8da)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3c534a);};_0xa38c['YNTvgF']=_0xb5b7d8,_0xa38c['oFASgR']={},_0xa38c['jVMZIT']=!![];}const _0xa0a198=_0x491cc2[0x0],_0x2141ce=_0x204890+_0xa0a198,_0x1b7529=_0xa38c['oFASgR'][_0x2141ce];return!_0x1b7529?(_0xa38c90=_0xa38c['YNTvgF'](_0xa38c90),_0xa38c['oFASgR'][_0x2141ce]=_0xa38c90):_0xa38c90=_0x1b7529,_0xa38c90;}async function createLspClient(_0x20a7be){const _0x852b61={_0xa9508e:0x4c4,_0x2b7ecc:0x5b5,_0xe4550b:0x4b5,_0x4c7272:0x10a,_0x15903e:0x132,_0x3419cf:0x17e,_0x4a8ee0:0x363,_0x3f03e7:0x27a,_0xc67ac0:0x3e7,_0x12a87:0x565,_0x3bd28d:0x3dd,_0x23f2b5:0x458,_0x2da988:0x4c3,_0x2c5156:0x42c,_0x5ef0d0:0x2e1,_0x393c50:0x241,_0x23944b:0x28a,_0x4aed06:0x469,_0x10a176:0x557,_0x296c86:0xb7,_0x2cc436:0x3ae,_0x490592:0x28e,_0x5280de:0x495,_0x37fabf:0x31e,_0x2bd97b:0x1f1,_0x473890:0x238,_0x323ece:0x33d,_0x3f9158:0x3a2,_0x3ea25b:0x3d7,_0xafa57d:0x47b,_0x2830e9:0x3e3,_0x30ae03:0x3d8,_0x314154:0x42e,_0x4e09e8:0x71,_0x3d4281:0xa1},_0x368286={_0x51ef0a:0x25,_0x3e38ab:0xbd,_0x1120cf:0x40,_0x3d5f55:0x132,_0x351159:0x103,_0x2cc5f3:0x186,_0x3bcf48:0x1a2,_0x38df9a:0x29,_0x1f5541:0x77,_0x1788ff:0x3a},_0x534da8={_0x20027b:0x147},_0x5b9f5b={_0x84a490:0xe6,_0x520e9c:0x72},_0x134e57={_0x2ae599:0x3b6,_0x58dd15:0x5af,_0x46cfd1:0x4e1},_0x249f98={_0x39165b:0x54,_0x285701:0x140,_0x53f4d1:0x120,_0x46d091:0xb},_0x5bccb9={_0xef228a:0xe9},_0x2d7150={_0x4bf941:0x121,_0x50c765:0x23,_0x2e7a99:0x14a},_0x940cfe={_0x109fad:0xb4,_0xb9c1bf:0x19a,_0x3ff78d:0x29e,_0x10a59a:0x84},_0x1ba09b={_0x3316b2:0x15e,_0x4cfad5:0x1d6},_0x583015={_0x49ee59:0x51,_0xf473e6:0x2,_0x1a15b3:0x56,_0x5ea2d9:0x27},_0x5e7888={_0x50cbc7:0x110,_0x4297a1:0x28},_0x588ee2={_0x44da53:0x8,_0x46bfc5:0x15d},_0x126ded={_0x2d7755:0x1ab,_0x9b535d:0x13f},_0x3a641f={_0xfaebc6:0x124,_0x527f78:0xcf,_0x260a28:0x1b6,_0x55b1e7:0x1f8,_0x2e0cca:0x25b,_0x216e79:0x222},_0x1a7332={_0x3f5e35:0x1f0},_0x22c066={_0xd2ee59:0x373,_0x548d61:0x2ce,_0x2b0d04:0x22f,_0x5802bd:0x3ef,_0x12a142:0x55a,_0x46b235:0x435},_0x40cb5b={_0x129d41:0x294,_0x35a064:0x33a,_0xf3af42:0x1c4,_0x129d8c:0x50a,_0x3f23e5:0x4fd,_0x4029c5:0x5ac},_0x57b00b={_0xfbff19:0x3e6,_0x3f3b31:0x5be,_0x395efb:0x3d9,_0xe58292:0x4f0},_0xd12da4={_0x1f338d:0x49,_0xef5578:0x2b5},_0x1099a4={_0x249486:0xd4,_0x205587:0x5b,_0x48f83b:0xc4,_0x68ca7e:0xa4,_0x32f3fd:0x119,_0x29764f:0x37,_0x4c406a:0xb3},_0xc06fe0={_0x569853:0x180},_0x537687={_0x225b57:0x2c8},_0x46726f={_0x54ad31:0x42,_0x59079c:0x6e,_0x3a6e79:0x6b8,_0x531ff3:0x485,_0x2a61cf:0x57f,_0x4e0f46:0x616,_0x498956:0x678,_0x4b0d77:0x587},_0x374b2f={_0x54a5a5:0xa7,_0x487ca2:0x1f4,_0x54c415:0x1bb},_0x20c653={_0x364e88:0x701,_0x58f095:0x6ad,_0x489d02:0x567,_0x2b8599:0x781,_0x3bc771:0x62b,_0x37bad4:0x5b3,_0x3ba54f:0x63c,_0x47a560:0x6c7,_0x272c4e:0x732},_0x10e133={_0x44aa8f:0x126,_0x1cbc17:0x421,_0x5e8fb0:0xf0},_0xe372e={_0x376855:0x18a},_0x13db9f={_0x276786:0x4},_0xe381ef=_0x20a7be[_0x45a573(_0x852b61._0xa9508e,_0x852b61._0x2b7ecc,0x5ee,_0x852b61._0xe4550b)][_0xc335b2(_0x852b61._0x4c7272,_0x852b61._0x15903e,_0x852b61._0x3419cf,0xce)]['stdout'],_0x24fe17=_0x20a7be['handle'][_0x45a573(_0x852b61._0x4a8ee0,_0x852b61._0x3f03e7,0x2a2,_0x852b61._0xc67ac0)]['stdin'];if(!_0xe381ef||!_0x24fe17)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x2ab7ab=createMessageConnection(new StreamMessageReader(_0xe381ef),new StreamMessageWriter(_0x24fe17));function _0xc335b2(_0xfac399,_0x354387,_0x1c579c,_0x5b7759){return _0x37c1da(_0xfac399-0xbc,_0x354387-_0x13db9f._0x276786,_0x1c579c,_0x354387- -0x3ec);}const _0x4e9a0c=new Map(),_0x34e4fa=new Map();let _0x110af9=![];_0x2ab7ab[_0x45a573(0x4b1,_0x852b61._0x12a87,_0x852b61._0x3bd28d,_0x852b61._0x23f2b5)](_0x45a573(0x483,0x4e1,_0x852b61._0x2da988,0x341),_0xd91b6e=>{_0x4e9a0c[_0x5b58dd(0x622,0x5dc,_0x20c653._0x364e88,0x667)](_0xd91b6e[_0x5b58dd(_0x20c653._0x58f095,0x6a2,_0x20c653._0x489d02,_0x20c653._0x2b8599)],_0xd91b6e[_0xc6ff2e(_0x20c653._0x3bc771,0x575,0x5ed,0x557)]);const _0x1f64f3=_0x34e4fa['get'](_0xd91b6e[_0xc6ff2e(_0x20c653._0x37bad4,0x76b,_0x20c653._0x3ba54f,_0x20c653._0x47a560)]);function _0xc6ff2e(_0x488621,_0x26eaf6,_0x3405a3,_0x398821){return _0x45a573(_0x3405a3-_0xe372e._0x376855,_0x26eaf6-0x18e,_0x398821,_0x398821-0x161);}function _0x5b58dd(_0x442bd5,_0x1f1030,_0x22c6ce,_0xe05923){return _0xc335b2(_0x442bd5-_0x10e133._0x44aa8f,_0x1f1030-_0x10e133._0x1cbc17,_0x22c6ce,_0xe05923-_0x10e133._0x5e8fb0);}if(!_0x1f64f3)return;_0x34e4fa[_0x5b58dd(0x6bd,0x658,_0x20c653._0x272c4e,0x50c)](_0xd91b6e['uri']);for(const _0x59cf6a of _0x1f64f3)_0x59cf6a();}),_0x2ab7ab[_0x45a573(0x357,_0x852b61._0x2c5156,_0x852b61._0x5ef0d0,0x20d)]();const _0x28be05=await _0x2ab7ab[_0x45a573(0x32b,0x22b,_0x852b61._0x393c50,_0x852b61._0x23944b)](_0x45a573(_0x852b61._0x4aed06,0x4c5,0x3d7,_0x852b61._0x10a176),{'processId':process['pid'],'rootUri':uriForPath(_0x20a7be[_0xc335b2(0x150,0x17d,_0x852b61._0x296c86,0x161)]),'workspaceFolders':[{'uri':uriForPath(_0x20a7be[_0x45a573(_0x852b61._0x2cc436,_0x852b61._0x490592,0x368,0x4f3)]),'name':_0x20a7be['server']['id']}],'initializationOptions':_0x20a7be['handle'][_0x45a573(0x385,0x3a6,_0x852b61._0x5280de,0x336)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x45a573(_0x852b61._0x37fabf,_0x852b61._0x2bd97b,_0x852b61._0x473890,0x36f),'plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});function _0x45a573(_0x2496e9,_0x529247,_0x1e8b2b,_0x5c3f2c){return _0x37c1da(_0x2496e9-_0x374b2f._0x54a5a5,_0x529247-_0x374b2f._0x487ca2,_0x1e8b2b,_0x2496e9- -_0x374b2f._0x54c415);}_0x2ab7ab[_0x45a573(_0x852b61._0x323ece,_0x852b61._0x3f9158,_0x852b61._0x3ea25b,_0x852b61._0xafa57d)](_0x45a573(_0x852b61._0x2830e9,0x4ae,_0x852b61._0x30ae03,_0x852b61._0x314154),{});const _0x1bdec6={'serverId':_0x20a7be['server']['id'],'root':_0x20a7be['root'],'connection':_0x2ab7ab,'diagnostics':_0x4e9a0c,'capabilities':_0x28be05[_0xc335b2(-_0x852b61._0x4e09e8,0x5d,-_0x852b61._0x3d4281,-0x27)]??{},'notify':{async 'open'({path:_0x57948c}){const _0x1c914c={_0x6413f1:0x432,_0x5db9bf:0x70,_0x4df14d:0x1c3},_0x32ea6a={_0x2c9d99:0x153};function _0x5f115c(_0x46def1,_0x2b4ca1,_0x409316,_0xef3928){return _0xc335b2(_0x46def1-0x66,_0xef3928-0x473,_0x409316,_0xef3928-_0x32ea6a._0x2c9d99);}const _0x22ebb7=await readFile(_0x57948c,_0x29a8b7(0x105,-_0x46726f._0x54ad31,_0x46726f._0x59079c,-0x1));function _0x29a8b7(_0x4b98d5,_0x3de891,_0x1f714f,_0x19ace3){return _0x45a573(_0x3de891- -_0x1c914c._0x6413f1,_0x3de891-_0x1c914c._0x5db9bf,_0x1f714f,_0x19ace3-_0x1c914c._0x4df14d);}_0x2ab7ab[_0x5f115c(0x69e,_0x46726f._0x3a6e79,_0x46726f._0x531ff3,_0x46726f._0x2a61cf)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x57948c),'languageId':getLanguageId(_0x57948c)??_0x5f115c(_0x46726f._0x4e0f46,_0x46726f._0x498956,0x5ab,_0x46726f._0x4b0d77),'version':0x1,'text':_0x22ebb7}});},async 'change'({path:_0x308f2f,version:_0x256b8a}){function _0x1b3a41(_0x31ddbb,_0x3d5d21,_0xb85cc4,_0x5e9473){return _0xc335b2(_0x31ddbb-0xb5,_0x31ddbb- -_0x537687._0x225b57,_0x5e9473,_0x5e9473-0x5a);}function _0x519962(_0xd7ffc3,_0x28c845,_0xbb6eb1,_0x5171d6){return _0xc335b2(_0xd7ffc3-_0xc06fe0._0x569853,_0xd7ffc3- -0xeb,_0xbb6eb1,_0x5171d6-0x17f);}const _0x4c4693=await readFile(_0x308f2f,_0x519962(_0x1099a4._0x249486,-_0x1099a4._0x205587,0x86,_0x1099a4._0x48f83b));_0x2ab7ab['sendNotification'](_0x519962(_0x1099a4._0x68ca7e,_0x1099a4._0x32f3fd,-_0x1099a4._0x29764f,_0x1099a4._0x4c406a),{'textDocument':{'uri':uriForPath(_0x308f2f),'version':_0x256b8a},'contentChanges':[{'text':_0x4c4693}]});},async 'close'({path:_0xcc7a4c}){const _0x5cd399={_0x3841cd:0xab};function _0x11bcbb(_0x37c2b9,_0x2005a7,_0x33ed92,_0x2d30c9){return _0xc335b2(_0x37c2b9-0x3c,_0x2d30c9-0x3f4,_0x33ed92,_0x2d30c9-_0x5cd399._0x3841cd);}function _0x3ae8df(_0x7dce82,_0xbc07ac,_0x24a175,_0x5b2648){return _0xc335b2(_0x7dce82-_0xd12da4._0x1f338d,_0x5b2648-_0xd12da4._0xef5578,_0xbc07ac,_0x5b2648-0x7c);}_0x2ab7ab[_0x11bcbb(_0x57b00b._0xfbff19,0x5a5,0x41b,0x500)](_0x3ae8df(0x47e,_0x57b00b._0x3f3b31,_0x57b00b._0x395efb,_0x57b00b._0xe58292),{'textDocument':{'uri':uriForPath(_0xcc7a4c)}});}},'request':{async 'definition'(_0x379fb5){const _0x331741={_0x4118b2:0x97,_0x1f5f28:0x15e};function _0x5d77c6(_0x15b127,_0x14dba5,_0x33ae76,_0x5679db){return _0xc335b2(_0x15b127-0x11b,_0x14dba5-0x46c,_0x5679db,_0x5679db-0x1a4);}function _0x3a8d6e(_0x2be169,_0x1f7f5b,_0x11e8da,_0x4deb01){return _0x45a573(_0x2be169- -_0x331741._0x4118b2,_0x1f7f5b-_0x331741._0x1f5f28,_0x4deb01,_0x4deb01-0x17);}return normalizeLocations(await _0x2ab7ab[_0x3a8d6e(_0x40cb5b._0x129d41,_0x40cb5b._0x35a064,_0x40cb5b._0xf3af42,0x38e)](_0x5d77c6(_0x40cb5b._0x129d8c,_0x40cb5b._0x3f23e5,0x4a1,_0x40cb5b._0x4029c5),textDocumentPosition(_0x379fb5)));},async 'references'(_0x160343){return normalizeLocations(await _0x2ab7ab['sendRequest']('textDocument/references',{...textDocumentPosition(_0x160343),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x10ec95){const _0x4e561c={_0x228e3a:0x1e1,_0x1b169d:0x56};function _0x871377(_0x2a821b,_0x2b336a,_0x173386,_0x86e6de){return _0x45a573(_0x2b336a- -0x5d,_0x2b336a-0x60,_0x86e6de,_0x86e6de-0x73);}function _0x47774(_0x228cce,_0x4334d7,_0x573804,_0x327937){return _0xc335b2(_0x228cce-_0x4e561c._0x228e3a,_0x327937-_0x4e561c._0x1b169d,_0x4334d7,_0x327937-0x1c0);}return await _0x2ab7ab[_0x871377(_0x22c066._0xd2ee59,_0x22c066._0x548d61,0x3cc,_0x22c066._0x2b0d04)](_0x871377(_0x22c066._0x5802bd,0x473,_0x22c066._0x12a142,_0x22c066._0x46b235),textDocumentPosition(_0x10ec95))??null;},async 'documentSymbol'(_0x27268a){const _0x44c384={_0x49b779:0x25c};function _0x20dc86(_0x3991b3,_0x5c3c37,_0x5daf05,_0x2e8e7b){return _0x45a573(_0x2e8e7b- -0x70,_0x5c3c37-_0x1a7332._0x3f5e35,_0x5c3c37,_0x2e8e7b-0xad);}function _0x2a6e4d(_0x27a46d,_0xd65b9,_0x33d02c,_0x31835a){return _0x45a573(_0xd65b9- -_0x44c384._0x49b779,_0xd65b9-0x160,_0x27a46d,_0x31835a-0xa4);}return await _0x2ab7ab[_0x2a6e4d(_0x3a641f._0xfaebc6,_0x3a641f._0x527f78,_0x3a641f._0x260a28,_0x3a641f._0x55b1e7)](_0x20dc86(_0x3a641f._0x2e0cca,0x138,_0x3a641f._0x216e79,0x1e5),{'textDocument':{'uri':uriForPath(_0x27268a)}})??[];},async 'workspaceSymbol'(_0x421840){function _0x44ee14(_0x34c8ab,_0x55c6c6,_0x220f06,_0xe54ca3){return _0xc335b2(_0x34c8ab-_0x126ded._0x2d7755,_0x55c6c6-0x43,_0xe54ca3,_0xe54ca3-_0x126ded._0x9b535d);}return await _0x2ab7ab['sendRequest'](_0x44ee14(_0x588ee2._0x44da53,0xbd,_0x588ee2._0x46bfc5,0x17b),{'query':_0x421840})??[];},async 'implementation'(_0x4504f6){function _0x1f1b28(_0x80fefe,_0x438353,_0x28bf4b,_0x27ada1){return _0x45a573(_0x28bf4b- -0x381,_0x438353-_0x5e7888._0x50cbc7,_0x80fefe,_0x27ada1-_0x5e7888._0x4297a1);}return normalizeLocations(await _0x2ab7ab[_0x1f1b28(-_0x583015._0x49ee59,_0x583015._0xf473e6,-_0x583015._0x1a15b3,-_0x583015._0x5ea2d9)]('textDocument/implementation',textDocumentPosition(_0x4504f6)));},async 'prepareCallHierarchy'(_0x55750c){const _0x9fd748={_0x4f12bb:0xc3};function _0x355e57(_0x4d96e1,_0x50caa0,_0x4c3229,_0x58e47e){return _0x45a573(_0x50caa0- -0x4c5,_0x50caa0-_0x9fd748._0x4f12bb,_0x4d96e1,_0x58e47e-0x1a);}function _0x5c8b39(_0x5b3678,_0x403aaa,_0x3cf216,_0x4df2a0){return _0x45a573(_0x3cf216-_0x1ba09b._0x3316b2,_0x403aaa-0xb1,_0x403aaa,_0x4df2a0-_0x1ba09b._0x4cfad5);}return await _0x2ab7ab[_0x355e57(-_0x940cfe._0x109fad,-_0x940cfe._0xb9c1bf,-_0x940cfe._0x3ff78d,-0x22c)](_0x355e57(0xac,-0x3a,_0x940cfe._0x10a59a,-0x51),textDocumentPosition(_0x55750c))??[];},async 'incomingCalls'(_0x4188d4){const _0x57a2b6={_0x45a49a:0xf8},_0x156a20={_0x1b1560:0x186};function _0x37c9da(_0x1c9f02,_0x2a634e,_0x366da6,_0xcf490b){return _0xc335b2(_0x1c9f02-_0x156a20._0x1b1560,_0x2a634e-0x2f7,_0x366da6,_0xcf490b-0xb5);}function _0x30ed21(_0x2b9ae3,_0x2452e3,_0x5c68d6,_0x2bdd98){return _0xc335b2(_0x2b9ae3-0x15e,_0x5c68d6- -_0x57a2b6._0x45a49a,_0x2b9ae3,_0x2bdd98-0x117);}return await _0x2ab7ab[_0x30ed21(0xe0,-_0x2d7150._0x4bf941,0x2,-0xf)](_0x30ed21(-0x83,_0x2d7150._0x50c765,0x18,_0x2d7150._0x2e7a99),{'item':_0x4188d4})??[];},async 'outgoingCalls'(_0x59d240){return await _0x2ab7ab['sendRequest']('callHierarchy/outgoingCalls',{'item':_0x59d240})??[];}},'waitForDiagnostics'({path:_0x5d49c0,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x1957bf={_0xa5510a:0x1c5,_0x4807eb:0x176,_0x2d24e4:0x284};function _0x54138d(_0x171b2d,_0x41b579,_0x5f5afa,_0x15a3f3){return _0x45a573(_0x15a3f3-0x14e,_0x41b579-0x14,_0x5f5afa,_0x15a3f3-_0x5bccb9._0xef228a);}const _0x26a9cc=uriForPath(_0x5d49c0);if(_0x4e9a0c['has'](_0x26a9cc))return Promise[_0x54138d(_0x134e57._0x2ae599,_0x134e57._0x58dd15,0x3d4,_0x134e57._0x46cfd1)]();return new Promise(_0x13f344=>{const _0xb3b55b={_0x284f5d:0x190,_0x5a0591:0x52f},_0x1808ff={_0x4cc726:0x19e,_0x594157:0x19a,_0x35029d:0x3f4,_0x916d20:0x40d,_0x55c036:0x45e},_0x51ce88=setTimeout(()=>{const _0x450977={_0x569738:0xc2},_0x53c593=_0x34e4fa[_0xbbea9d(-0x114,-_0x1808ff._0x4cc726,-0xf9,-_0x1808ff._0x594157)](_0x26a9cc);function _0xbbea9d(_0xe8ee1d,_0x466f82,_0x320606,_0x83b60c){return _0xa38c(_0xe8ee1d- -0x317,_0x320606);}function _0x4069a0(_0x5967ea,_0x17d744,_0x46c66c,_0x4f5355){return _0xa38c(_0x46c66c-_0x450977._0x569738,_0x17d744);}_0x53c593?.['delete'](_0x26f948);if(_0x53c593?.['size']===0x0)_0x34e4fa[_0x4069a0(_0x1808ff._0x35029d,_0x1808ff._0x916d20,0x3a0,_0x1808ff._0x55c036)](_0x26a9cc);_0x13f344();},timeoutMs);function _0x539635(_0x1d8f7d,_0x2daff0,_0x672b4a,_0x2cf77f){return _0x54138d(_0x1d8f7d-_0x1957bf._0xa5510a,_0x2daff0-_0x1957bf._0x4807eb,_0x2cf77f,_0x2daff0- -_0x1957bf._0x2d24e4);}const _0x26f948=()=>{clearTimeout(_0x51ce88),_0x13f344();},_0x253fbc=_0x34e4fa[_0x59a20d(0x4c,-0x118,0x98,-_0x249f98._0x39165b)](_0x26a9cc)??new Set();_0x253fbc[_0x59a20d(-0xac,-0xb2,-_0x249f98._0x285701,-0x9b)](_0x26f948);function _0x59a20d(_0x27c285,_0x5539c2,_0x3733ba,_0x3a847c){return _0x54138d(_0x27c285-0x1b0,_0x5539c2-_0xb3b55b._0x284f5d,_0x27c285,_0x3a847c- -_0xb3b55b._0x5a0591);}_0x34e4fa[_0x59a20d(0xe5,-0x12c,-_0x249f98._0x53f4d1,_0x249f98._0x46d091)](_0x26a9cc,_0x253fbc);});},async 'shutdown'(){function _0x5e99cd(_0x4c7e1a,_0x45e5cf,_0x2efa2a,_0x380870){return _0x45a573(_0x45e5cf-_0x5b9f5b._0x84a490,_0x45e5cf-_0x5b9f5b._0x520e9c,_0x4c7e1a,_0x380870-0xc9);}function _0x2c33ca(_0x586667,_0x40fd4b,_0x3d8579,_0x1d14dc){return _0xc335b2(_0x586667-_0x534da8._0x20027b,_0x40fd4b- -0x5,_0x586667,_0x1d14dc-0x5b);}if(_0x110af9)return;_0x110af9=!![];try{await _0x2ab7ab[_0x5e99cd(0x50c,0x411,0x32e,0x3ad)](_0x2c33ca(-0x3b,_0x368286._0x51ef0a,-_0x368286._0x3e38ab,_0x368286._0x1120cf),null),_0x2ab7ab[_0x2c33ca(0xb,0x107,_0x368286._0x3d5f55,_0x368286._0x351159)](_0x2c33ca(0x10d,_0x368286._0x2cc5f3,0x219,_0x368286._0x3bcf48));}catch{}finally{_0x2ab7ab[_0x2c33ca(-0x7,0x3f,-0xf7,-0xed)](),_0x20a7be['handle'][_0x2c33ca(_0x368286._0x38df9a,0x12d,_0x368286._0x1f5541,_0x368286._0x1788ff)]['kill']();}}};return _0x1bdec6;}import{spawn as _0x3c534a}from'child_process';import{access as _0x46c487}from'fs/promises';import _0x57f35d from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x15962d from'os';import _0x291b91 from'path';import _0x46d8da from'which';var installPromises=new Map();function sanitizePackageName(_0x17dc85){const _0xc86dd9={_0x88cfb:0xfb,_0x544a1c:0x4e,_0x36db4b:0xb,_0x317cf8:0xc3,_0x11c470:0x74},_0x687b58={_0x39e0b9:0x52,_0x279e60:0x37},_0x2ef6e6={_0x4a0be8:0x1d9};function _0x4d0f4b(_0x562169,_0x3f7075,_0xdbc32f,_0x355940){return _0x37c1da(_0x562169-_0x2ef6e6._0x4a0be8,_0x3f7075-0x15a,_0x3f7075,_0x562169- -0x328);}function _0x516f63(_0x22f5a9,_0x3fccfb,_0x1b478a,_0x40dc9d){return _0x38d42b(_0x22f5a9-0x1b4,_0x1b478a-_0x687b58._0x39e0b9,_0x3fccfb,_0x40dc9d-_0x687b58._0x279e60);}return _0x17dc85[_0x4d0f4b(_0xc86dd9._0x88cfb,_0xc86dd9._0x544a1c,0x1eb,-_0xc86dd9._0x36db4b)](/^@/,'')[_0x4d0f4b(_0xc86dd9._0x88cfb,_0xc86dd9._0x317cf8,_0xc86dd9._0x11c470,0x12c)](/[/]/g,'__');}function binaryNameForPlatform(_0x1fb9c0){const _0x26589c={_0x127a29:0x2f2,_0x1ceb39:0x1ef,_0x4fb8a5:0x325},_0x515e68={_0x53d898:0x51},_0xc823f7={_0x1c0895:0x68,_0x5e599a:0x14a,_0x19f5cb:0xec};function _0x685144(_0x1a735a,_0x5123fa,_0x13fedb,_0x222693){return _0x38d42b(_0x1a735a-_0xc823f7._0x1c0895,_0x1a735a- -_0xc823f7._0x5e599a,_0x13fedb,_0x222693-_0xc823f7._0x19f5cb);}function _0x145e4b(_0x5b648e,_0x2973fc,_0x9cb7d2,_0x3624b1){return _0x38d42b(_0x5b648e-0x1e9,_0x9cb7d2-_0x515e68._0x53d898,_0x3624b1,_0x3624b1-0x1be);}return process['platform']===_0x145e4b(_0x26589c._0x127a29,0x296,_0x26589c._0x1ceb39,_0x26589c._0x4fb8a5)?_0x1fb9c0+_0x685144(0x9b,0x34,0x1cd,0x94):_0x1fb9c0;}async function exists(_0x521baa){try{return await access(_0x521baa),!![];}catch{return![];}}function runNpmInstall(_0x52ac0d,_0x408171,_0x25c049){const _0x14f8b0={_0x2f1a5c:0x2d3,_0x3829a2:0x9b,_0x5ce232:0xec,_0x3368fe:0x4f3,_0x4b179a:0x1f1,_0x51339c:0x1ba,_0x434dcd:0x242,_0xa22c26:0x432,_0x36919d:0x1f8,_0x5b0b1e:0x185};return new Promise(_0x214a74=>{const _0x43fb1a={_0x256bd0:0x12};function _0x21ee09(_0x5eabb1,_0x4f6bcc,_0x560dcf,_0x55a8b4){return _0xa38c(_0x4f6bcc-0x79,_0x5eabb1);}function _0x32b157(_0x495d34,_0x54bcc4,_0x2275f3,_0xe1360c){return _0xa38c(_0x495d34-_0x43fb1a._0x256bd0,_0x2275f3);}const _0x2fa9a9=spawn(_0x21ee09(_0x14f8b0._0x2f1a5c,0x199,_0x14f8b0._0x3829a2,_0x14f8b0._0x5ce232),[_0x21ee09(0x288,0x3c4,0x32d,_0x14f8b0._0x3368fe),_0x32b157(_0x14f8b0._0x4b179a,_0x14f8b0._0x51339c,0x1b2,0x1b0),_0x52ac0d,_0x408171],{'env':_0x25c049,'stdio':_0x32b157(0x199,0x262,0x12d,_0x14f8b0._0x434dcd)});_0x2fa9a9['on'](_0x32b157(0x30c,0x3f2,_0x14f8b0._0xa22c26,0x31d),()=>_0x214a74(![])),_0x2fa9a9['on'](_0x21ee09(0x1d0,_0x14f8b0._0x36919d,0x29a,_0x14f8b0._0x5b0b1e),_0x1232d3=>_0x214a74(_0x1232d3===0x0));});}function _0x37c1da(_0x3f9a10,_0x2c6b7c,_0x50484c,_0x4a1c58){const _0x389cea={_0x5c7efd:0x345};return _0xa38c(_0x4a1c58-_0x389cea._0x5c7efd,_0x50484c);}function shouldDisableLspDownload(_0x85a82c=process[_0x37c1da(0x4ac,0x462,0x5c6,0x4fd)]){const _0x50e334={_0x5add93:0x189,_0x7cc4d3:0xd2,_0x15eba0:0x225,_0x24aa70:0x18e,_0x12e439:0x1c1,_0xdcb6cb:0x1d3,_0x46a2d1:0x107,_0x108696:0x655,_0x1a5266:0x469,_0x52fd27:0x570,_0x4ab98e:0x54d},_0x34756a={_0x35f5ed:0x131,_0x4262ab:0x78};function _0x4def45(_0x567aa6,_0x33768d,_0x2b57b7,_0x30a70b){return _0x38d42b(_0x567aa6-0x174,_0x30a70b-0x399,_0x33768d,_0x30a70b-0x108);}const _0x503de5=_0x85a82c[_0x137bfe(_0x50e334._0x5add93,_0x50e334._0x7cc4d3,_0x50e334._0x15eba0,_0x50e334._0x24aa70)]?.[_0x137bfe(_0x50e334._0x12e439,_0x50e334._0xdcb6cb,0x1bb,_0x50e334._0x46a2d1)]();function _0x137bfe(_0x5e9f65,_0x29685d,_0xd1db70,_0x8d2ffe){return _0x37c1da(_0x5e9f65-_0x34756a._0x35f5ed,_0x29685d-_0x34756a._0x4262ab,_0x8d2ffe,_0x5e9f65- -0x4aa);}return _0x503de5===_0x4def45(_0x50e334._0x108696,_0x50e334._0x1a5266,_0x50e334._0x52fd27,_0x50e334._0x4ab98e)||_0x503de5==='1'||_0x503de5==='yes'||_0x503de5==='on';}function getLspPackageDir(_0x2c61a7){const _0x37b9e6={_0x7f70cd:0x2d4,_0x106d4c:0x1f2,_0x4ff3d8:0x1b7,_0x312e92:0x1aa,_0x36c3b6:0x5f,_0x35042e:0x128,_0x2d7e8d:0x119},_0x19ea55={_0x88eafd:0xc4,_0x21468a:0x1c8},_0x39fa1d={_0x4fd1d7:0x138,_0x5a0fb7:0xbc};function _0xffee4b(_0x3a2d68,_0x5aff7b,_0x42168f,_0x201ca0){return _0x37c1da(_0x3a2d68-_0x39fa1d._0x4fd1d7,_0x5aff7b-_0x39fa1d._0x5a0fb7,_0x201ca0,_0x5aff7b- -0x442);}function _0xe750fd(_0x91441e,_0xdd1bdc,_0x3c2728,_0x2e8c4e){return _0x38d42b(_0x91441e-0x143,_0x2e8c4e-_0x19ea55._0x88eafd,_0x3c2728,_0x2e8c4e-_0x19ea55._0x21468a);}return _0x291b91[_0xffee4b(_0x37b9e6._0x7f70cd,_0x37b9e6._0x106d4c,_0x37b9e6._0x4ff3d8,_0x37b9e6._0x312e92)](_0x15962d['homedir'](),_0xffee4b(-_0x37b9e6._0x36c3b6,-0x16,-0x141,-0xb8),_0xffee4b(_0x37b9e6._0x35042e,_0x37b9e6._0x2d7e8d,0x1b5,0xed),'packages',sanitizePackageName(_0x2c61a7));}function getLspBinDir(_0x29c3ad){const _0x236597={_0x5ad42f:0x2f0,_0x4772d6:0x283,_0x1ba7a9:0x20f,_0x2ec404:0x3bd,_0x159b26:0x21d,_0x2d4b69:0x16f},_0x4d2737={_0x317b82:0xb1,_0xa0d7e4:0x163};function _0x31459b(_0x1fc9b0,_0x11f9f7,_0x38634c,_0x2bf5a7){return _0x37c1da(_0x1fc9b0-0xc4,_0x11f9f7-0x17a,_0x1fc9b0,_0x11f9f7- -0x2fb);}function _0x3201e7(_0x5b488e,_0xd96623,_0x50e500,_0xb00bd){return _0x38d42b(_0x5b488e-_0x4d2737._0x317b82,_0xb00bd-0xc8,_0x50e500,_0xb00bd-_0x4d2737._0xa0d7e4);}return _0x291b91['join'](getLspPackageDir(_0x29c3ad),_0x31459b(_0x236597._0x5ad42f,_0x236597._0x4772d6,_0x236597._0x1ba7a9,_0x236597._0x2ec404),_0x3201e7(0x295,_0x236597._0x159b26,_0x236597._0x2d4b69,0x152));}async function findPackageBinary(_0x2c3037,_0x5890d8){const _0x294674={_0x102e67:0x3bb,_0x4b8e0e:0x46e,_0x4e027c:0x2ad,_0x4503d3:0x1f0,_0x4d5730:0x13c,_0x373d0d:0x4f},_0x101840={_0x344001:0x38e},_0x4ede9a={_0x5e868a:0x126};function _0x249740(_0x5d67ac,_0x3f019d,_0x282c12,_0x57c2f8){return _0x37c1da(_0x5d67ac-0x106,_0x3f019d-_0x4ede9a._0x5e868a,_0x5d67ac,_0x3f019d- -0x193);}let _0x10bdf6=_0x291b91[_0x249740(_0x294674._0x102e67,0x3bb,_0x294674._0x4b8e0e,0x2dd)](_0x5890d8);function _0x415910(_0x48f2ad,_0x2ac205,_0x310e16,_0x178431){return _0x37c1da(_0x48f2ad-0x145,_0x2ac205-0xb,_0x2ac205,_0x48f2ad- -_0x101840._0x344001);}const _0x37369f=binaryNameForPlatform(_0x2c3037);while(!![]){const _0x265fb8=_0x291b91[_0x415910(0x2a6,0x3b4,_0x294674._0x4e027c,0x228)](_0x10bdf6,_0x415910(_0x294674._0x4503d3,0xdb,0x1f0,0x269),'.bin',_0x37369f);if(await exists(_0x265fb8))return _0x265fb8;const _0x1e730e=_0x291b91[_0x415910(_0x294674._0x4d5730,0xd3,0x99,_0x294674._0x373d0d)](_0x10bdf6);if(_0x1e730e===_0x10bdf6)return void 0x0;_0x10bdf6=_0x1e730e;}}async function findPathBinary(_0x17bf0f,_0x353fe2){const _0x5e890f={_0x194905:0x2a7,_0x22d064:0x311,_0x1c6cde:0x3a9,_0x1ecb49:0x3b8,_0x2d2e26:0x341,_0x47b5e1:0x322,_0x50df11:0x236},_0xeee885={_0x239d0b:0x200,_0x268e36:0x23},_0x18fc46={_0x167471:0x283},_0x524247=getLspBinDir(_0x353fe2);function _0x34a890(_0x390059,_0x59d2ba,_0x3e9505,_0x2025b8){return _0x38d42b(_0x390059-0x13,_0x390059-_0x18fc46._0x167471,_0x3e9505,_0x2025b8-0x180);}const _0x20c251=[_0x524247,process['env']['PATH']][_0x34a890(_0x5e890f._0x194905,0x2ff,_0x5e890f._0x22d064,_0x5e890f._0x1c6cde)](Boolean)[_0x34a890(0x46c,_0x5e890f._0x1ecb49,_0x5e890f._0x2d2e26,0x54d)](_0x291b91[_0x34a890(_0x5e890f._0x47b5e1,_0x5e890f._0x50df11,0x309,0x2f2)]);function _0x4a01d1(_0x580c5f,_0x4db671,_0x3c83ef,_0x16fc63){return _0x38d42b(_0x580c5f-0x194,_0x16fc63-_0xeee885._0x239d0b,_0x580c5f,_0x16fc63-_0xeee885._0x268e36);}try{return await _0x46d8da(_0x17bf0f,{'path':_0x20c251});}catch{return void 0x0;}}async function resolvePackageBinary(_0x3340a3){const _0x5a3db7={_0x58c24e:0x155,_0x260358:0xe9,_0x215b9b:0x70,_0x2a2bc6:0x23c,_0xb8975c:0x219,_0x335aa6:0x82,_0x5b2ef2:0x76,_0x5b3b3b:0x139,_0x1ae7b2:0x33},_0xdab61e={_0x1ad111:0x295,_0x48b820:0x1ef,_0x171b7b:0x140},_0x51eb47={_0x5f471f:0x1a4},_0x4e4047={_0x48d96f:0xa5,_0x38b294:0x98,_0x4595a7:0x551},_0x11516e={_0x3869ef:0xa1,_0x540e53:0x57b},_0x431a27=_0x3340a3[_0xcf032c(-0x80,-0xc2,-_0x5a3db7._0x58c24e,-_0x5a3db7._0x260358)]??_0x3340a3['packageName'],_0x406a73=await findPackageBinary(_0x431a27,_0x3340a3[_0x24ebec(0x7a,-0x79,_0x5a3db7._0x215b9b,0x173)]);if(_0x406a73)return _0x406a73;const _0x2fb9dd=await findPathBinary(_0x431a27,_0x3340a3[_0xcf032c(0x10f,_0x5a3db7._0x2a2bc6,0x34,_0x5a3db7._0xb8975c)]);if(_0x2fb9dd)return _0x2fb9dd;const _0x450250=_0x3340a3['env']??process[_0x24ebec(0xea,_0x5a3db7._0x335aa6,-0x54,-_0x5a3db7._0x5b2ef2)];if(shouldDisableLspDownload(_0x450250))return void 0x0;function _0xcf032c(_0x449d22,_0x1ab6f1,_0x4472bb,_0x5e86ea){return _0x37c1da(_0x449d22-0x60,_0x1ab6f1-_0x11516e._0x3869ef,_0x4472bb,_0x449d22- -_0x11516e._0x540e53);}function _0x24ebec(_0x5b75bf,_0x242e40,_0x7353b8,_0x236e0b){return _0x37c1da(_0x5b75bf-_0x4e4047._0x48d96f,_0x242e40-_0x4e4047._0x38b294,_0x5b75bf,_0x7353b8- -_0x4e4047._0x4595a7);}const _0x34c719=getLspPackageDir(_0x3340a3[_0x24ebec(0xf4,0xfb,_0x5a3db7._0x5b3b3b,0x44)]),_0x36aba9=_0x3340a3['packageName']+':'+_0x431a27;let _0x46c754=installPromises[_0xcf032c(-_0x5a3db7._0x1ae7b2,0xbf,-0xe9,0x1a)](_0x36aba9);!_0x46c754&&(_0x46c754=((async()=>{const _0x3b62b1={_0x34c75b:0x191,_0x7250f5:0x58d};await mkdir(_0x34c719,{'recursive':!![]});const _0x1b599b=await runNpmInstall(_0x34c719,_0x3340a3[_0x143cf6(0x17d,_0xdab61e._0x1ad111,_0xdab61e._0x48b820,0x2e8)],_0x450250);function _0x71ec26(_0x1ad050,_0x8b7c6f,_0x1003d6,_0x401010){return _0x24ebec(_0x1ad050,_0x8b7c6f-_0x3b62b1._0x34c75b,_0x401010-_0x3b62b1._0x7250f5,_0x401010-0x1bb);}if(!_0x1b599b)return void 0x0;function _0x143cf6(_0x4c1bdb,_0x348d76,_0x14a830,_0x404f90){return _0x24ebec(_0x404f90,_0x348d76-0x15,_0x14a830-0xb6,_0x404f90-_0x51eb47._0x5f471f);}const _0x4daba9=_0x291b91[_0x143cf6(0x85,_0xdab61e._0x171b7b,0x199,0xd5)](getLspBinDir(_0x3340a3[_0x71ec26(0x743,0x65c,0x5a2,0x6c6)]),binaryNameForPlatform(_0x431a27));return await exists(_0x4daba9)?_0x4daba9:void 0x0;})()),installPromises['set'](_0x36aba9,_0x46c754));try{return await _0x46c754;}catch{return void 0x0;}finally{installPromises['delete'](_0x36aba9);}}var TYPESCRIPT_EXTENSIONS=['.ts',_0x38d42b(0x165,0x42,-0x63,0x27),'.js',_0x38d42b(0x2b4,0x174,0x34,0xe0),_0x38d42b(0x19d,0x5b,-0xb,-0x69),_0x38d42b(-0xbf,0x34,-0xde,-0x107),_0x37c1da(0x3e0,0x476,0x509,0x470),_0x38d42b(0x87,0x198,0x1a7,0x14f)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x37c1da(0x313,0x55b,0x334,0x41d)],TYPESCRIPT_ROOT_MARKERS=[_0x37c1da(0x5aa,0x44d,0x64b,0x589),'bun.lockb',_0x37c1da(0x615,0x42d,0x587,0x575),'pnpm-lock.yaml',_0x37c1da(0x42e,0x3f5,0x5b1,0x4bd),_0x38d42b(0x24f,0x1a2,0xa0,0x9a),_0x38d42b(0x59,0x102,0xe5,0x191),'package.json'],BIOME_ROOT_MARKERS=[_0x37c1da(0x755,0x64f,0x63c,0x60d),_0x38d42b(0x99,-0x3e,-0x5c,-0x30),_0x37c1da(0x452,0x6c3,0x5b8,0x589),_0x38d42b(0x107,0x9c,0x64,0x16d),'bun.lock',_0x37c1da(0x511,0x656,0x53a,0x5de),_0x37c1da(0x4f9,0x3eb,0x483,0x4bd),_0x37c1da(0x50f,0x656,0x5de,0x588)];async function exists2(_0x2869dd){try{return await _0x46c487(_0x2869dd),!![];}catch{return![];}}async function findUp(_0xe56595,_0x2687c5){const _0x382345={_0x673581:0x50d,_0x2a677b:0x689,_0x59f200:0x5d1,_0x417edb:0x7a9,_0x26562e:0x630},_0x554f1d={_0x42c1e1:0x109,_0x48ad87:0x4ba},_0x5619eb={_0x42ce51:0x39,_0x2e4928:0xc};function _0x4fe15d(_0x7fec1e,_0x369049,_0x379ede,_0x46476f){return _0x37c1da(_0x7fec1e-_0x5619eb._0x42ce51,_0x369049-_0x5619eb._0x2e4928,_0x369049,_0x7fec1e-0x55);}let _0x302b22=_0x57f35d[_0x23ce7e(_0x382345._0x673581,0x627,0x5d6,0x5bd)](_0xe56595);const _0x3784fb=_0x57f35d['extname'](_0x302b22);if(_0x3784fb)_0x302b22=_0x57f35d['dirname'](_0x302b22);function _0x23ce7e(_0x213a55,_0x1ee883,_0x33f816,_0x208d9c){return _0x38d42b(_0x213a55-_0x554f1d._0x42c1e1,_0x208d9c-_0x554f1d._0x48ad87,_0x33f816,_0x208d9c-0x1c1);}while(!![]){for(const _0x16d3aa of _0x2687c5){if(await exists2(_0x57f35d[_0x4fe15d(_0x382345._0x2a677b,_0x382345._0x59f200,_0x382345._0x417edb,0x604)](_0x302b22,_0x16d3aa)))return _0x302b22;}const _0x15ecdc=_0x57f35d[_0x4fe15d(0x51f,0x56a,0x5c2,_0x382345._0x26562e)](_0x302b22);if(_0x15ecdc===_0x302b22)return void 0x0;_0x302b22=_0x15ecdc;}}async function hasDenoRoot(_0x18c410){const _0x3fb7ac={_0x4e432e:0xa0,_0x13c7e4:0x14c,_0x2349ba:0x63,_0x2b09a0:0x2d,_0x2f6e50:0x1aa,_0xa74e74:0x21f,_0x367ccd:0x125},_0xe87a9c={_0x40570f:0x53a},_0x50df2e={_0x573d07:0x154,_0x930a53:0xf1};function _0x3d84c7(_0x1feb2c,_0x1c923f,_0x3965d2,_0x496520){return _0x38d42b(_0x1feb2c-_0x50df2e._0x573d07,_0x496520- -0x249,_0x3965d2,_0x496520-_0x50df2e._0x930a53);}function _0x15e77b(_0x1c4f9f,_0x5087fa,_0x57d53b,_0x4de10c){return _0x37c1da(_0x1c4f9f-0x14b,_0x5087fa-0xc4,_0x57d53b,_0x1c4f9f- -_0xe87a9c._0x40570f);}return await exists2(_0x57f35d[_0x3d84c7(-_0x3fb7ac._0x4e432e,-0xe,-0xd,-0x60)](_0x18c410,_0x3d84c7(-_0x3fb7ac._0x13c7e4,0x40,_0x3fb7ac._0x2349ba,-_0x3fb7ac._0x2b09a0)))||await exists2(_0x57f35d[_0x3d84c7(-0x12,-0x9c,-0x1aa,-0x60)](_0x18c410,_0x3d84c7(-_0x3fb7ac._0x2f6e50,-0xe,-_0x3fb7ac._0xa74e74,-_0x3fb7ac._0x367ccd)));}async function resolveTsserverPath(_0x22db03){const _0x4e99ef={_0x1c8392:0x242,_0x130fa0:0x4fa,_0x4938bd:0x3e7,_0xdb6a7f:0x4eb,_0x25d8f1:0x58f,_0x428d92:0x444,_0x3bc715:0x4fe,_0x5beccd:0x247,_0x58c434:0x231,_0x4d114b:0x359,_0x4d9eb7:0x23e,_0x3b209b:0x4a6,_0x17372e:0x29c,_0x2b24e9:0x3b7,_0x186ce0:0x34c,_0x241bb6:0x484,_0x567670:0x2f9,_0x31998c:0x342,_0x270f5c:0x460,_0x376a47:0x237,_0x26131b:0x11f,_0x2424a4:0x294,_0x3f049e:0x24b,_0x204f44:0x2e0,_0x258387:0x372,_0x368ecd:0x28c},_0x1f4991={_0x5890b7:0x16d};function _0x195fd8(_0x19ed8e,_0x4a20eb,_0x3616f6,_0x16a89a){return _0x37c1da(_0x19ed8e-0x37,_0x4a20eb-0x92,_0x19ed8e,_0x16a89a- -0x333);}let _0x2e8d0f=_0x57f35d[_0x195fd8(0x2a6,0x180,_0x4e99ef._0x1c8392,0x21b)](_0x22db03);function _0x1b6b8f(_0x503b66,_0x331ab5,_0x5c87db,_0x1e7b17){return _0x38d42b(_0x503b66-_0x1f4991._0x5890b7,_0x331ab5-0x311,_0x1e7b17,_0x1e7b17-0x1c3);}while(!![]){const _0x2c144c=_0x57f35d[_0x1b6b8f(0x41a,_0x4e99ef._0x130fa0,_0x4e99ef._0x4938bd,_0x4e99ef._0xdb6a7f)](_0x2e8d0f,_0x1b6b8f(_0x4e99ef._0x25d8f1,_0x4e99ef._0x428d92,_0x4e99ef._0x3bc715,0x49b),_0x195fd8(0x2fa,_0x4e99ef._0x5beccd,_0x4e99ef._0x58c434,0x280),_0x1b6b8f(0x3b3,_0x4e99ef._0x4d114b,0x2ac,_0x4e99ef._0x4d9eb7),_0x1b6b8f(0x4b5,0x372,_0x4e99ef._0x3b209b,0x482));if(await exists2(_0x2c144c))return _0x2c144c;const _0x281794=_0x57f35d[_0x1b6b8f(_0x4e99ef._0x17372e,0x390,0x2cb,0x26f)](_0x2e8d0f);if(_0x281794===_0x2e8d0f)break;_0x2e8d0f=_0x281794;}const _0x438cbc=getLspPackageDir(_0x1b6b8f(0x473,0x479,0x394,_0x4e99ef._0x2b24e9)),_0x307984=await resolvePackageBinary({'packageName':_0x1b6b8f(_0x4e99ef._0x186ce0,0x479,_0x4e99ef._0x241bb6,0x4bf),'binaryName':_0x1b6b8f(_0x4e99ef._0x567670,_0x4e99ef._0x31998c,_0x4e99ef._0x270f5c,_0x4e99ef._0x376a47),'startDir':_0x22db03});if(!_0x307984)return void 0x0;const _0x443b9f=_0x57f35d['join'](_0x438cbc,_0x195fd8(_0x4e99ef._0x26131b,0x2d0,_0x4e99ef._0x2424a4,_0x4e99ef._0x3f049e),'typescript','lib',_0x1b6b8f(_0x4e99ef._0x204f44,_0x4e99ef._0x258387,0x409,_0x4e99ef._0x368ecd));return await exists2(_0x443b9f)?_0x443b9f:void 0x0;}var TypeScriptServer={'id':_0x37c1da(0x6ad,0x609,0x63c,0x5b3),'name':_0x37c1da(0x42c,0x5ac,0x491,0x560),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x39ef40){const _0x34b2d6=await findUp(_0x39ef40,TYPESCRIPT_ROOT_MARKERS);if(!_0x34b2d6)return void 0x0;return await hasDenoRoot(_0x34b2d6)?void 0x0:_0x34b2d6;},async 'spawn'(_0x198b91){const _0x26aff1={_0x1b7844:0x139,_0x1a4c71:0x55,_0x5adccb:0x1b5,_0x160828:0x3,_0xf29eb6:0xb5,_0x376657:0x68,_0x3eee02:0x141,_0x52a7ec:0x12d},_0x1aa9ec={_0x5f5be8:0x178,_0x43d8a8:0x81},_0x609e4a=await resolveTsserverPath(_0x198b91);if(!_0x609e4a)return void 0x0;function _0x393e90(_0x455ea3,_0x572c8c,_0x39db67,_0x9e65be){return _0x37c1da(_0x455ea3-0x153,_0x572c8c-0xce,_0x39db67,_0x455ea3- -0x54e);}const _0x513730=await resolvePackageBinary({'packageName':_0x1d6895(-0x19,-_0x26aff1._0x1b7844,-0x105,-_0x26aff1._0x1a4c71),'binaryName':_0x393e90(-0xc4,-_0x26aff1._0x5adccb,-0x8e,-0x2f),'startDir':_0x198b91});function _0x1d6895(_0x2f69b1,_0x354b40,_0x20f5ee,_0x3d7000){return _0x38d42b(_0x2f69b1-0x11c,_0x354b40- -_0x1aa9ec._0x5f5be8,_0x2f69b1,_0x3d7000-_0x1aa9ec._0x43d8a8);}if(!_0x513730)return void 0x0;return{'process':_0x3c534a(_0x513730,[_0x1d6895(_0x26aff1._0x160828,_0x26aff1._0xf29eb6,_0x26aff1._0x376657,0x1d7)],{'cwd':_0x198b91,'stdio':_0x393e90(0x70,_0x26aff1._0x3eee02,_0x26aff1._0x52a7ec,-0xaf)}),'initialization':{'tsserver':{'path':_0x609e4a}}};}},BiomeServer={'id':_0x37c1da(0x571,0x4f7,0x4be,0x594),'name':_0x37c1da(0x5df,0x580,0x548,0x65b),'extensions':BIOME_EXTENSIONS,async 'root'(_0x5d781b){return findUp(_0x5d781b,BIOME_ROOT_MARKERS);},async 'spawn'(_0x53190a){const _0x4204af={_0xa4501c:0x51b,_0x1075eb:0x8e,_0x344672:0x150,_0x734b88:0x189,_0x5d14fc:0x3f3,_0x162cd6:0x2d6,_0x4ad938:0x1c6,_0x1073ff:0x85},_0x50519e={_0x25f9f0:0xb3},_0x527e0b={_0x635369:0x160},_0x557de4=await findPackageBinary(_0xe5ba19(0x616,_0x4204af._0xa4501c,0x5ad,0x60a),_0x53190a)??await resolvePackageBinary({'packageName':_0x1f4423(-_0x4204af._0x1075eb,-_0x4204af._0x344672,-_0x4204af._0x734b88,-0x126),'binaryName':'biome','startDir':_0x53190a});function _0xe5ba19(_0x51c318,_0x4b6408,_0x514a78,_0x3a9b95){return _0x38d42b(_0x51c318-0x129,_0x51c318-0x4cd,_0x3a9b95,_0x3a9b95-_0x527e0b._0x635369);}function _0x1f4423(_0x1e264c,_0x48a026,_0x348806,_0x596151){return _0x37c1da(_0x1e264c-_0x50519e._0x25f9f0,_0x48a026-0x4b,_0x48a026,_0x596151- -0x6fd);}if(!_0x557de4)return void 0x0;return{'process':_0x3c534a(_0x557de4,[_0x1f4423(-0x260,-0x24f,-_0x4204af._0x5d14fc,-_0x4204af._0x162cd6),_0x1f4423(-0x1d2,-0x1b7,-_0x4204af._0x4ad938,-_0x4204af._0x1073ff)],{'cwd':_0x53190a,'stdio':_0xe5ba19(0x640,0x65c,0x72a,0x722)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1fb4d6){const _0x136cba={_0x1183fc:0x1d,_0x9a49a8:0xdc,_0x85cbd0:0x9,_0xc651fb:0xbb},_0x3a40b9={_0x361b54:0x19e,_0x46842:0x52a};function _0x11190b(_0x2eae7b,_0x1e7e27,_0x4775a0,_0x3e8fd6){return _0x38d42b(_0x2eae7b-0x19f,_0x2eae7b- -0x88,_0x1e7e27,_0x3e8fd6-0xb2);}function _0x3bdf0f(_0xe697ee,_0x3e74a2,_0x4bbf3e,_0x421cbb){return _0x37c1da(_0xe697ee-_0x3a40b9._0x361b54,_0x3e74a2-0x71,_0xe697ee,_0x421cbb- -_0x3a40b9._0x46842);}const _0x2159fe=_0x57f35d[_0x3bdf0f(_0x136cba._0x1183fc,-0x4f,0x154,0xf3)](_0x1fb4d6)['toLowerCase']();return BUILTIN_LSP_SERVERS[_0x3bdf0f(-_0x136cba._0x9a49a8,-0xad,_0x136cba._0x85cbd0,-_0x136cba._0xc651fb)](_0xf2f08a=>_0xf2f08a[_0x11190b(-0x60,-0xc4,-0x137,-0x141)][_0x11190b(-0xd9,-0x120,-0x222,-0xb5)](_0x2159fe));}function stateKey(_0x4fc933,_0x307e83){return _0x307e83+':'+_0x4fc933['id'];}function diagnosticsKeyToPath(_0x4e8f7d){const _0x13d1d6={_0x4173f6:0x40,_0x2dcea4:0x2a2,_0x3afa45:0x2f8},_0x5c5c90={_0x55e7e6:0xa3,_0x22c773:0x82},_0xeb4540={_0x5dba84:0x11c,_0x4fc37c:0x9b,_0x3fedb4:0x11e};function _0x43a0ba(_0x3a9453,_0xb4e406,_0x502e56,_0xffad7d){return _0x38d42b(_0x3a9453-_0xeb4540._0x5dba84,_0x502e56-_0xeb4540._0x4fc37c,_0x3a9453,_0xffad7d-_0xeb4540._0x3fedb4);}function _0x3bf131(_0x17185d,_0x10a4cc,_0x3bc0b1,_0x3cdd52){return _0x38d42b(_0x17185d-_0x5c5c90._0x55e7e6,_0x10a4cc- -0x38,_0x17185d,_0x3cdd52-_0x5c5c90._0x22c773);}if(!_0x4e8f7d[_0x3bf131(-0x31,0x85,-_0x13d1d6._0x4173f6,0x170)](_0x43a0ba(0x3d2,0x26c,_0x13d1d6._0x2dcea4,_0x13d1d6._0x3afa45)))return _0x4e8f7d;return fileURLToPath(_0x4e8f7d);}function nextFileVersion(_0x279727,_0x4d7277){const _0x52338d={_0x5a8668:0x1d1},_0x4b415b=(_0x279727['fileVersions'][_0x1cff0d(-_0x52338d._0x5a8668,-0x1ac,-0x15b,-0xb2)](_0x4d7277)??0x1)+0x1;function _0x1cff0d(_0x206c83,_0x2fdda5,_0x111abc,_0x21575f){return _0x37c1da(_0x206c83-0x18,_0x2fdda5-0x5c,_0x2fdda5,_0x206c83- -0x719);}return _0x279727['fileVersions']['set'](_0x4d7277,_0x4b415b),_0x4b415b;}async function collectClientResults(_0x442bdd){const _0xb0dbbd={_0x11c6c0:0x1ba,_0x5bff27:0x1dd},_0x1f34ee={_0x472be7:0x4ab},_0xf397d4={_0x10a6a6:0x13d,_0x2da64a:0x6c3};function _0x2b44fa(_0x424469,_0x4db7f7,_0x23c04d,_0x45ea59){return _0x37c1da(_0x424469-_0xf397d4._0x10a6a6,_0x4db7f7-0x176,_0x4db7f7,_0x424469- -_0xf397d4._0x2da64a);}const _0x328a45=await Promise[_0x2b44fa(-0x21f,-0x2f6,-0x27f,-0x21b)](_0x442bdd);function _0x47997a(_0x478409,_0x4d4202,_0x3ae1e9,_0x1f0af9){return _0x37c1da(_0x478409-0xd5,_0x4d4202-0xc9,_0x3ae1e9,_0x4d4202- -_0x1f34ee._0x472be7);}return _0x328a45[_0x2b44fa(-_0xb0dbbd._0x11c6c0,-_0xb0dbbd._0x5bff27,-0x2f3,-0x2a4)](_0x3e6102=>_0x3e6102['status']==='fulfilled'?_0x3e6102[_0x47997a(0x10b,0xc,-0x84,-0xe9)]:[]);}function createLspService(_0x1bcf30={}){const _0x5d6bd0={_0xb20136:0x287,_0x417288:0x18f,_0x3632e3:0x20,_0x12ed88:0x164},_0x5b125f={_0x4648d3:0xf4,_0x1f1c51:0x117},_0x4408b3={_0x136e7b:0x162,_0x18f139:0x135,_0x4af319:0x108,_0x1365e1:0x179,_0x4c25a2:0xec,_0x126f78:0x1c0,_0x3d0bc6:0x23e,_0x1a0872:0x2e5,_0x42d5fa:0x13f,_0x249b82:0x2b,_0x1cd287:0x327,_0x417b53:0xe6,_0x167551:0x28e,_0x392882:0x225,_0x346c9c:0x225,_0x38a80e:0x2f0,_0x5046a:0x158,_0x452fab:0x1a4,_0x5b38c8:0x9f,_0x10c16d:0x1d8,_0x5387ff:0x1d2,_0x4ab65d:0x27a,_0x495297:0x1d2},_0x5f3b69={_0x548ba3:0x1f4},_0x17956a={_0x7c7b5c:0xb4},_0x3c250c={_0xba082e:0x12b,_0x449c71:0x30,_0xae4337:0xd},_0x210e68={_0x26ec3b:0x346,_0x405bc0:0x2a9},_0x445b05={_0x422a69:0xdd,_0x757dc9:0x17e,_0x436901:0x5c,_0x575c39:0xfc,_0x19cb75:0x118,_0x3fe631:0x1e3},_0x12168e={_0x172f61:0x1f2,_0x41965d:0xf0,_0x590283:0x57},_0x39a5ef={_0x24367a:0x137,_0x59e533:0x23f},_0x5730d9={_0x1e6c4e:0x1b1},_0x3bb13f={_0x2987d4:0xb5,_0x517b34:0x49},_0x534425={_0x4a212a:0x177,_0x1e971c:0x3f},_0x23b168={_0x209035:0x342,_0x11de09:0x46b,_0x50eaad:0x33d,_0x591bb5:0x1a7},_0x235a9e={_0xb27dd0:0x7b,_0x1cb05a:0x267,_0x4855e0:0x1df},_0x5d2717={_0x5de2cd:0x11,_0x1c87ff:0x134},_0x1700a2={_0x101699:0x74,_0x1eb8ba:0x1b6},_0x4092df={_0x8cfbc0:0x142},_0x36a1d4={_0x525914:0x518,_0x2499d8:0x475,_0x42ea80:0x518},_0x2ea990={_0x4f7504:0x16},_0x1fa4a9={_0x1f2056:0x3fe},_0x2aedd6={_0x14e372:0x224,_0xa4e21f:0x1e8},_0x5aad8d={_0x3bca42:0x126},_0x176c8b={_0x32a148:0x8f},_0x49225d={_0x599afc:0x27e,_0x76f5ed:0x38c,_0x2d0aec:0x226},_0xcba87f={_0x25ce16:0xb4},_0x1149f5={_0x28ec55:0x2d3,_0x10a43c:0x259,_0x572f5a:0x33c,_0x368b96:0x157,_0x60df5c:0x25b},_0x5085ca={_0x5480cc:0x103,_0x5e2b1a:0x156},_0x25d097={_0x4fed95:0x22d,_0x4626ad:0x1f4,_0x44ebba:0x17e,_0x242992:0x259,_0x3b80f6:0x2c6,_0x3fdd66:0x291,_0x3dfc35:0xa6,_0x468312:0x154,_0xa80bd4:0x149,_0x3f360a:0x82,_0x31d2d1:0x36e,_0x2d620b:0xe2,_0x532bdd:0x21a},_0x215b77={_0x92563b:0x3e,_0x2bd2d2:0xf7},_0x1d834b={_0x1b14bd:0x15b,_0x332038:0x20c,_0x42453e:0x1cd,_0x3aee05:0x83,_0x1aec06:0xb8,_0x10481e:0x16d,_0x8ee312:0x136,_0x52a921:0x179,_0x5e3330:0xb6,_0x5b7f83:0x11f,_0x55ae1f:0x5b,_0x15b8bc:0x110,_0x12756a:0x156},_0x14c50e={_0x2cfa63:0x17b,_0x3c5375:0xd7,_0x4befc9:0x207,_0xae053f:0x292,_0x1198cc:0x2db,_0xcc366a:0x191,_0x2c3559:0x283,_0x5a86d8:0x1a7,_0x57521c:0x324,_0x17c2b5:0x241,_0x33d6e8:0x93,_0x138eea:0x1a4,_0x1b30c6:0x32f,_0x7e4a7d:0x273,_0xfe62a8:0x301,_0x81b072:0x297,_0x20aeb4:0xa1,_0x1183eb:0x2b,_0x31da99:0xe2,_0x3b15fe:0xdc},_0x15b36d={_0x5edbd8:0x189,_0x53130e:0x311,_0x520d30:0x1de},_0x2148a7={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x2f150f=()=>_0x1bcf30[_0x2d9809(0xce,0xa3,0x11e,0x44)]!==![];async function _0x5e1dc2(_0x12e314,_0x44325f){const _0x4d267f={_0x3a5bda:0x6},_0x472f20={_0x44ef36:0xa8,_0x295d33:0x189},_0x38797c={_0x5b1d22:0x130,_0x3279d9:0xa9},_0x43ceef=stateKey(_0x12e314,_0x44325f);function _0x1cbaae(_0x16fb80,_0x49f9bf,_0x2fb7df,_0xcab337){return _0x2d9809(_0xcab337,_0x49f9bf-_0x15b36d._0x5edbd8,_0x49f9bf- -_0x15b36d._0x53130e,_0xcab337-_0x15b36d._0x520d30);}const _0x2546cd=_0x2148a7[_0x1cbaae(-0x27b,-_0x1d834b._0x1b14bd,-0x278,-_0x1d834b._0x332038)]['find'](_0x4ee613=>_0x4ee613[_0x1cbaae(-0x2cf,-0x253,-0x369,-0x231)]===_0x12e314['id']&&_0x4ee613[_0x1cbaae(-0x103,-0x1be,-0x28c,-0x223)]===_0x44325f);if(_0x2546cd)return _0x2546cd;if(_0x2148a7[_0x1cbaae(-0xed,-0x1b7,-_0x1d834b._0x42453e,-_0x1d834b._0x3aee05)][_0x1cbaae(-0x181,-_0x1d834b._0x1aec06,-_0x1d834b._0x10481e,-_0x1d834b._0x8ee312)](_0x43ceef))return void 0x0;const _0x53dedd=_0x2148a7[_0xd5ec28(0x69,0xc4,0xe2,_0x1d834b._0x52a921)]['get'](_0x43ceef);if(_0x53dedd)return _0x53dedd;const _0x13cf19=((async()=>{function _0x394afe(_0x4f7643,_0x4c76e9,_0x2d456d,_0x4085a0){return _0x1cbaae(_0x4f7643-_0x38797c._0x5b1d22,_0x2d456d-0x4b8,_0x2d456d-_0x38797c._0x3279d9,_0x4f7643);}function _0x563d31(_0x5c5459,_0x698af9,_0x2e27e3,_0x29b32c){return _0x1cbaae(_0x5c5459-_0x472f20._0x44ef36,_0x5c5459-_0x472f20._0x295d33,_0x2e27e3-0x13c,_0x29b32c);}try{const _0x587d7c=await _0x12e314['spawn'](_0x44325f);if(!_0x587d7c)return _0x2148a7[_0x563d31(-0x2e,-_0x14c50e._0x2cfa63,-0x9,_0x14c50e._0x3c5375)][_0x394afe(_0x14c50e._0x4befc9,0x3b7,_0x14c50e._0xae053f,_0x14c50e._0x1198cc)](_0x43ceef),void 0x0;const _0x4cbb76=await createLspClient({'server':_0x12e314,'root':_0x44325f,'handle':_0x587d7c}),_0x34593d=_0x2148a7['clients'][_0x394afe(0x215,_0x14c50e._0xcc366a,_0x14c50e._0x2c3559,0x146)](_0x4bf318=>_0x4bf318[_0x394afe(0x20b,0x284,0x265,0x34d)]===_0x12e314['id']&&_0x4bf318[_0x394afe(0x327,0x42e,0x2fa,0x212)]===_0x44325f);if(_0x34593d)return await _0x4cbb76[_0x394afe(0x205,0xd0,_0x14c50e._0x5a86d8,0x1e9)](),_0x34593d;return _0x2148a7[_0x394afe(_0x14c50e._0x57521c,_0x14c50e._0x17c2b5,0x35d,0x369)][_0x563d31(-0x1a5,-0x22c,-_0x14c50e._0x33d6e8,-_0x14c50e._0x138eea)](_0x4cbb76),_0x4cbb76;}catch{return _0x2148a7[_0x394afe(_0x14c50e._0x1b30c6,_0x14c50e._0x7e4a7d,_0x14c50e._0xfe62a8,_0x14c50e._0x81b072)][_0x563d31(-0x9d,-0x32,-_0x14c50e._0x20aeb4,-_0x14c50e._0x1183eb)](_0x43ceef),void 0x0;}finally{_0x2148a7[_0x563d31(-0x4c,_0x14c50e._0x31da99,-0xd4,_0x14c50e._0x3b15fe)]['delete'](_0x43ceef);}})());_0x2148a7[_0x1cbaae(-_0x1d834b._0x5e3330,-0x1d5,-0x2f3,-_0x1d834b._0x5b7f83)][_0x1cbaae(-_0x1d834b._0x55ae1f,-0x180,-_0x1d834b._0x15b8bc,-_0x1d834b._0x12756a)](_0x43ceef,_0x13cf19);function _0xd5ec28(_0x1e6440,_0x439027,_0x5ca8db,_0x478a16){return _0x2d9809(_0x439027,_0x439027-0x4e,_0x1e6440- -0xd3,_0x478a16-_0x4d267f._0x3a5bda);}return _0x13cf19;}async function _0x340d57(_0x52a8fb,_0x59dc74){const _0x4949b1={_0x896b75:0x156};if(!_0x2f150f())return[];const _0x4b4cfe=[];for(const _0x14cc4f of getServersForFile(_0x52a8fb)){const _0x447ca5=await _0x14cc4f[_0x37c734(-0x1ac,-_0x25d097._0x4fed95,-_0x25d097._0x4626ad,-0x1b8)](_0x52a8fb);if(!_0x447ca5)continue;const _0x3f3fa4=stateKey(_0x14cc4f,_0x447ca5);if(_0x2148a7[_0x451c89(_0x25d097._0x44ebba,_0x25d097._0x242992,_0x25d097._0x3b80f6,_0x25d097._0x3fdd66)][_0x37c734(-_0x25d097._0x3dfc35,-_0x25d097._0x468312,0x55,-_0x25d097._0x468312)](_0x3f3fa4))continue;const _0xfae04d=_0x2148a7[_0x37c734(-_0x25d097._0xa80bd4,-0x2a,-0x1ff,-_0x25d097._0x3f360a)][_0x37c734(-0x223,-0x252,-_0x25d097._0x31d2d1,-0x202)](_0x33e436=>_0x33e436[_0x451c89(0x283,0x1bd,0x152,0xe9)]===_0x14cc4f['id']&&_0x33e436[_0x451c89(0x200,0x252,0x151,0x37e)]===_0x447ca5);if(_0xfae04d){_0x4b4cfe[_0x451c89(0x203,_0x25d097._0x2d620b,_0x25d097._0x532bdd,0xb8)](_0xfae04d);continue;}if(!_0x59dc74)continue;const _0x45eeb0=await _0x5e1dc2(_0x14cc4f,_0x447ca5);if(_0x45eeb0)_0x4b4cfe[_0x451c89(0x181,0xe2,0x22b,-0x1c)](_0x45eeb0);}function _0x37c734(_0x226996,_0x4fea4f,_0x3d265b,_0x17a8a0){return _0x2d9809(_0x3d265b,_0x4fea4f-_0x215b77._0x92563b,_0x226996- -0x2ff,_0x17a8a0-_0x215b77._0x2bd2d2);}function _0x451c89(_0x3e1a71,_0x5a1b2f,_0x3a3ee8,_0x5c3d8a){return _0x2d9809(_0x5c3d8a,_0x5a1b2f-0x2,_0x5a1b2f-0xff,_0x5c3d8a-_0x4949b1._0x896b75);}return _0x4b4cfe;}function _0x2d9809(_0x35aaf9,_0x5ebd27,_0x4b47f7,_0xf36d5b){return _0x37c1da(_0x35aaf9-_0x5085ca._0x5480cc,_0x5ebd27-_0x5085ca._0x5e2b1a,_0x35aaf9,_0x4b47f7- -0x416);}async function _0x370416(_0xb56ff1,_0x5d575a=![]){const _0x3efc89={_0x4a96f6:0x24,_0x242be8:0x4d,_0x51ed68:0x17,_0x1bda9f:0x17a,_0x524285:0x4b,_0x33aab9:0x187,_0x441ff3:0x241,_0x57c887:0x214,_0x3bdf5a:0x231,_0x4cfcf1:0x107,_0x11370b:0x154,_0x31aced:0x234,_0x459f71:0xe6,_0xf4ec31:0xbc,_0x4e683d:0x171,_0x5b5b94:0xf0,_0x37530e:0x15,_0x4d0b5f:0x34},_0xe8e74c={_0x564295:0x2cf},_0x1aef97={_0x51ad1b:0xb},_0x2d8816={_0x217fa4:0xfe};function _0x21a8a5(_0x44ceaa,_0x326d0f,_0x1c0eea,_0x42e40b){return _0x2d9809(_0x42e40b,_0x326d0f-0xaf,_0x326d0f- -_0x2d8816._0x217fa4,_0x42e40b-0x179);}const _0x57695f=await _0x340d57(_0xb56ff1,!![]);function _0xa2bda8(_0x27a33,_0x4268ac,_0x260615,_0xab273c){return _0x2d9809(_0xab273c,_0x4268ac-0x17c,_0x260615- -_0x1aef97._0x51ad1b,_0xab273c-0x152);}await Promise[_0xa2bda8(_0x1149f5._0x28ec55,0x23b,_0x1149f5._0x10a43c,_0x1149f5._0x572f5a)](_0x57695f[_0xa2bda8(0x1e3,_0x1149f5._0x368b96,_0x1149f5._0x60df5c,0x2de)](async _0x521bbe=>{const _0x195088={_0x1ba56b:0x10f,_0x24add9:0x126};function _0x378bef(_0x2e3f9b,_0x3bc19a,_0x2cde40,_0x2e75de){return _0xa2bda8(_0x2e3f9b-0x180,_0x3bc19a-0x159,_0x2e75de- -_0xe8e74c._0x564295,_0x3bc19a);}!_0x2148a7[_0x5e26f6(-0x98,-_0x3efc89._0x4a96f6,-0xa0,_0x3efc89._0x242be8)][_0x5e26f6(0x142,_0x3efc89._0x51ed68,0x16e,0x9b)](_0x521bbe[_0x5e26f6(-_0x3efc89._0x1bda9f,-_0x3efc89._0x524285,-0xea,-0x100)]+':'+_0x521bbe[_0x378bef(-0x15a,-0x8c,-0x228,-_0x3efc89._0x33aab9)]+':'+_0xb56ff1)&&(await _0x521bbe[_0x378bef(-_0x3efc89._0x441ff3,-0x25b,-0xb2,-0x170)][_0x378bef(-0x376,-0x2fb,-_0x3efc89._0x57c887,-_0x3efc89._0x3bdf5a)]({'path':_0xb56ff1}),_0x2148a7[_0x5e26f6(0x7a,_0x3efc89._0x4cfcf1,-0xf0,0x4d)][_0x5e26f6(-0xe4,-0x188,-_0x3efc89._0x11370b,-0xd3)](_0x521bbe[_0x378bef(-_0x3efc89._0x31aced,-_0x3efc89._0x459f71,-0x226,-0x21c)]+':'+_0x521bbe[_0x5e26f6(-0x98,-0xcf,-0xe,-0x6b)]+':'+_0xb56ff1));function _0x5e26f6(_0x3ac471,_0x25b400,_0x580b6d,_0x5436b3){return _0xa2bda8(_0x3ac471-_0x195088._0x1ba56b,_0x25b400-_0x195088._0x24add9,_0x5436b3- -0x1b3,_0x580b6d);}await _0x521bbe[_0x5e26f6(0xd9,_0x3efc89._0xf4ec31,-_0x3efc89._0x4e683d,-0x54)]['change']({'path':_0xb56ff1,'version':nextFileVersion(_0x2148a7,_0xb56ff1)});if(_0x5d575a)await _0x521bbe[_0x5e26f6(-0xd4,_0x3efc89._0x5b5b94,-_0x3efc89._0x37530e,-_0x3efc89._0x4d0b5f)]({'path':_0xb56ff1});}));}async function _0x480833(_0xe879ec){function _0x1b22c4(_0x57e9f3,_0x117ad4,_0x34e09,_0x331780){return _0x2d9809(_0x34e09,_0x117ad4-0x117,_0x57e9f3-0x89,_0x331780-_0xcba87f._0x25ce16);}return await _0x370416(_0xe879ec['file'],![]),_0x340d57(_0xe879ec[_0x1b22c4(_0x49225d._0x599afc,_0x49225d._0x76f5ed,0x21c,_0x49225d._0x2d0aec)],![]);}async function _0x5efa9a(_0x4c3623){function _0x46402d(_0x534e8a,_0x3c75ac,_0x1bc832,_0x3f84c2){return _0x2d9809(_0x1bc832,_0x3c75ac-0x17,_0x3f84c2-_0x176c8b._0x32a148,_0x3f84c2-0x1b8);}const _0x14bc8d=await _0x480833(_0x4c3623);function _0x4a9d77(_0x35237c,_0x5dd79c,_0x1abb2a,_0x18bc67){return _0x2d9809(_0x5dd79c,_0x5dd79c-0x1e3,_0x35237c- -0x42,_0x18bc67-_0x5aad8d._0x3bca42);}return collectClientResults(_0x14bc8d[_0x4a9d77(_0x2aedd6._0x14e372,0x22c,0x27a,_0x2aedd6._0xa4e21f)](_0x13b7ec=>_0x13b7ec[_0x4a9d77(0x79,0x195,0x1f,0xec)][_0x4a9d77(0x1f1,0x11e,0xd3,0x25a)](_0x4c3623)));}return{'isEnabled':_0x2f150f,async 'hasClients'(_0x4e279f){function _0x53cdaf(_0x421a40,_0x2a9740,_0x2e9f0d,_0x359ff7){return _0x2d9809(_0x359ff7,_0x2a9740-0x165,_0x2a9740-_0x1fa4a9._0x1f2056,_0x359ff7-0xab);}function _0x5a635d(_0x12fabe,_0x163e82,_0x209f8a,_0x199a05){return _0x2d9809(_0x163e82,_0x163e82-0xfc,_0x12fabe-0x33f,_0x199a05-_0x2ea990._0x4f7504);}return(await _0x340d57(_0x4e279f,![]))[_0x53cdaf(0x3f7,_0x36a1d4._0x525914,0x63b,_0x36a1d4._0x2499d8)]>0x0||getServersForFile(_0x4e279f)[_0x53cdaf(0x51e,_0x36a1d4._0x42ea80,0x5e6,0x46f)]>0x0;},'touchFile':_0x370416,async 'diagnostics'(){const _0x1d0e75={};function _0x294a31(_0x3b36ee,_0x409a31,_0x59a5ff,_0x2b2e5b){return _0x2d9809(_0x59a5ff,_0x409a31-0x3e,_0x409a31- -_0x4092df._0x8cfbc0,_0x2b2e5b-0x1e2);}for(const _0x5ceca6 of _0x2148a7[_0x294a31(0x185,_0x1700a2._0x101699,_0x1700a2._0x1eb8ba,-0x8c)]){for(const [_0x3187b6,_0x2fbf40]of _0x5ceca6['diagnostics']){_0x1d0e75[diagnosticsKeyToPath(_0x3187b6)]=_0x2fbf40;}}return _0x1d0e75;},async 'diagnosticsForFile'(_0x2651a1){function _0x54f45b(_0x3f2f3c,_0x574bfc,_0x4b31f0,_0x331f23){return _0x2d9809(_0x3f2f3c,_0x574bfc-_0x5d2717._0x5de2cd,_0x4b31f0-0x182,_0x331f23-_0x5d2717._0x1c87ff);}function _0x22eaf7(_0x3dd721,_0x575e71,_0x2d708b,_0x9ad837){return _0x2d9809(_0x3dd721,_0x575e71-_0x235a9e._0xb27dd0,_0x9ad837-_0x235a9e._0x1cb05a,_0x9ad837-_0x235a9e._0x4855e0);}await _0x370416(_0x2651a1,!![]);const _0x1e0420=[];for(const _0x444d38 of await _0x340d57(_0x2651a1,![])){for(const [_0x1f34be,_0x5e679e]of _0x444d38[_0x22eaf7(_0x23b168._0x209035,_0x23b168._0x11de09,0x47b,0x46f)]){if(diagnosticsKeyToPath(_0x1f34be)===_0x2651a1)_0x1e0420[_0x22eaf7(_0x23b168._0x50eaad,0x1b7,_0x23b168._0x591bb5,0x24a)](..._0x5e679e);}}return _0x1e0420;},async 'definition'(_0x4edb3f){function _0xdb6f11(_0x38e357,_0x4e667b,_0x20b446,_0x594611){return _0x2d9809(_0x4e667b,_0x4e667b-0x1dc,_0x594611- -_0x534425._0x4a212a,_0x594611-_0x534425._0x1e971c);}function _0x144131(_0x550aee,_0x3222b6,_0x3dfde6,_0xa694f7){return _0x2d9809(_0x3222b6,_0x3222b6-0x5e,_0x550aee- -_0x3bb13f._0x2987d4,_0xa694f7-_0x3bb13f._0x517b34);}return collectClientResults((await _0x480833(_0x4edb3f))[_0x144131(_0x5730d9._0x1e6c4e,0x7a,0x27b,0xf0)](_0x29806c=>_0x29806c[_0x144131(0x6,-0x54,-0x18,-0xc5)][_0xdb6f11(0x54,-0x43,-0x145,-0x80)](_0x4edb3f)));},async 'references'(_0xc01376){const _0x4789e6={_0x1671b3:0xe9};function _0xc55620(_0x2c4505,_0x59a065,_0x4fd4ca,_0x2b4c38){return _0x2d9809(_0x2c4505,_0x59a065-0x1ee,_0x59a065- -0x31,_0x2b4c38-_0x4789e6._0x1671b3);}return collectClientResults((await _0x480833(_0xc01376))[_0xc55620(0x21e,0x235,_0x39a5ef._0x24367a,_0x39a5ef._0x59e533)](_0x274d0c=>_0x274d0c['request']['references'](_0xc01376)));},async 'hover'(_0x47a135){const _0x340989={_0x3ecd3f:0x1b1},_0x25a262=await Promise[_0x4da068(0xa1,_0x445b05._0x422a69,_0x445b05._0x757dc9,_0x445b05._0x436901)]((await _0x480833(_0x47a135))['map'](_0x22f557=>_0x22f557['request']['hover'](_0x47a135)));function _0x4da068(_0x22e247,_0x140b7d,_0x52c284,_0x3b79a7){return _0x2d9809(_0x3b79a7,_0x140b7d-_0x12168e._0x172f61,_0x52c284-_0x12168e._0x41965d,_0x3b79a7-_0x12168e._0x590283);}function _0x4cf71c(_0x354525,_0x5466a3,_0x3052d5,_0x1172e6){return _0x2d9809(_0x3052d5,_0x5466a3-_0x340989._0x3ecd3f,_0x5466a3- -0x2b2,_0x1172e6-0x1db);}return _0x25a262[_0x4da068(_0x445b05._0x575c39,_0x445b05._0x19cb75,_0x445b05._0x3fe631,0xbc)](_0x1c873c=>_0x1c873c[_0x4cf71c(-0x88,-0x135,-0x1db,-0x13f)]==='fulfilled'&&_0x1c873c[_0x4da068(0xb4,0xd3,0x191,0x19a)]?[_0x1c873c[_0x4cf71c(-0x1f7,-0x211,-0x118,-0x338)]]:[]);},async 'documentSymbol'(_0x1fc726){const _0x3706dc={_0x2c6078:0x14c,_0x2c31b0:0x5c},_0x51996b={_0x1f993a:0xac,_0x484cbb:0x166,_0x487905:0x126};function _0x29eb8b(_0x2b8119,_0x49d549,_0x40190a,_0x4fe300){return _0x2d9809(_0x49d549,_0x49d549-_0x51996b._0x1f993a,_0x2b8119-_0x51996b._0x484cbb,_0x4fe300-_0x51996b._0x487905);}function _0x4169db(_0x230b00,_0x57e377,_0x2656ae,_0x1cc820){return _0x2d9809(_0x1cc820,_0x57e377-0xe7,_0x57e377- -_0x3706dc._0x2c6078,_0x1cc820-_0x3706dc._0x2c31b0);}return await _0x370416(_0x1fc726,![]),collectClientResults((await _0x340d57(_0x1fc726,![]))[_0x29eb8b(0x3cc,_0x210e68._0x26ec3b,0x34b,_0x210e68._0x405bc0)](_0x258bb0=>_0x258bb0[_0x4169db(-0x124,-0x91,-0x4b,-0x123)][_0x4169db(0xae,0xde,0x187,-0x60)](_0x1fc726)));},async 'workspaceSymbol'(_0x13fe1c){const _0x2083c2={_0x499315:0xd8};function _0x48155d(_0x1d169f,_0x351817,_0x2552fe,_0x4e68f1){return _0x2d9809(_0x2552fe,_0x351817-_0x2083c2._0x499315,_0x4e68f1- -0x4a,_0x4e68f1-0x17c);}function _0xa6ebad(_0x4be130,_0xe86b4,_0x14aa95,_0x9e31ea){return _0x2d9809(_0x9e31ea,_0xe86b4-0xa5,_0xe86b4- -0x186,_0x9e31ea-0x1aa);}return collectClientResults(_0x2148a7[_0xa6ebad(_0x3c250c._0xba082e,_0x3c250c._0x449c71,_0x3c250c._0xae4337,0x125)]['map'](_0x534001=>_0x534001[_0xa6ebad(-0x112,-0xcb,-0xee,-0x1ae)]['workspaceSymbol'](_0x13fe1c)));},async 'implementation'(_0x1c2b70){return collectClientResults((await _0x480833(_0x1c2b70))['map'](_0x2ca714=>_0x2ca714['request']['implementation'](_0x1c2b70)));},async 'prepareCallHierarchy'(_0x22ae81){return _0x5efa9a(_0x22ae81);},async 'incomingCalls'(_0x1d8c7b){const _0x375108={_0x2e7026:0xee},_0x261d3e={_0x41333d:0x2a};function _0x200d0f(_0x179148,_0x466fe0,_0x5e7fd5,_0x19daf6){return _0x2d9809(_0x179148,_0x466fe0-0x1d5,_0x5e7fd5- -_0x261d3e._0x41333d,_0x19daf6-0x150);}const _0x5944e9=await _0x5efa9a(_0x1d8c7b);function _0x1d3141(_0x130683,_0x4d345f,_0x550516,_0x59edf7){return _0x2d9809(_0x4d345f,_0x4d345f-_0x375108._0x2e7026,_0x550516-0x115,_0x59edf7-0x192);}const _0xf2d1b8=await _0x480833(_0x1d8c7b);return collectClientResults(_0xf2d1b8['flatMap'](_0x3ee2b5=>_0x5944e9[_0x1d3141(0x435,0x2fa,0x37b,0x346)](_0x527c1c=>_0x3ee2b5[_0x1d3141(0xa2,0x85,0x1d0,0x19f)]['incomingCalls'](_0x527c1c))));},async 'outgoingCalls'(_0x31c6e5){const _0x222e5b={_0x5d5b4a:0x12f,_0x5691df:0xc6};function _0x347d40(_0x56ac4b,_0x153536,_0x5bd953,_0x230c67){return _0x2d9809(_0x230c67,_0x153536-_0x222e5b._0x5d5b4a,_0x56ac4b-0x45,_0x230c67-_0x222e5b._0x5691df);}const _0x457161=await _0x5efa9a(_0x31c6e5);function _0x233e5a(_0x10f544,_0x24dc49,_0x9692d5,_0x2b73a3){return _0x2d9809(_0x10f544,_0x24dc49-_0x17956a._0x7c7b5c,_0x24dc49-0x3ff,_0x2b73a3-0x184);}const _0x55d5d7=await _0x480833(_0x31c6e5);return collectClientResults(_0x55d5d7[_0x347d40(0x138,0x3e,0x27b,0x8)](_0x4dffef=>_0x457161['map'](_0xb24868=>_0x4dffef['request'][_0x233e5a(0x5e5,0x5c2,0x47f,0x50c)](_0xb24868))));},async 'shutdown'(){const _0x2dd15d={_0x37fc35:0x1e4,_0x2b018a:0x197};if(_0x2148a7[_0x18adf7(-_0x4408b3._0x136e7b,-0x235,-_0x4408b3._0x18f139,-_0x4408b3._0x4af319)])return;_0x2148a7[_0x18adf7(-_0x4408b3._0x1365e1,-_0x4408b3._0x4c25a2,-_0x4408b3._0x18f139,-0x8a)]=!![],await Promise[_0x18adf7(-_0x4408b3._0x126f78,-0x2e8,-_0x4408b3._0x3d0bc6,-_0x4408b3._0x1a0872)](_0x2148a7['clients'][_0x18adf7(-_0x4408b3._0x42d5fa,-_0x4408b3._0x249b82,-0x66,-0x1ac)](_0x4b2842=>_0x4b2842['shutdown']()));function _0x18adf7(_0x5649c4,_0x5c3a53,_0x449de2,_0x11f902){return _0x2d9809(_0x11f902,_0x5c3a53-0x127,_0x449de2- -0x2cc,_0x11f902-_0x5f3b69._0x548ba3);}_0x2148a7[_0x192c98(_0x4408b3._0x1cd287,_0x4408b3._0x417b53,_0x4408b3._0x167551,_0x4408b3._0x392882)]=[],_0x2148a7['spawning']['clear'](),_0x2148a7[_0x192c98(_0x4408b3._0x346c9c,_0x4408b3._0x38a80e,0x29c,0x1c9)][_0x192c98(_0x4408b3._0x5046a,_0x4408b3._0x452fab,0x2a1,0x1d2)]();function _0x192c98(_0x4cf4de,_0x2b2bbb,_0x1ee785,_0x59e5e2){return _0x2d9809(_0x1ee785,_0x2b2bbb-_0x2dd15d._0x37fc35,_0x59e5e2-0x6f,_0x59e5e2-_0x2dd15d._0x2b018a);}_0x2148a7['fileVersions'][_0x192c98(_0x4408b3._0x5b38c8,0x129,_0x4408b3._0x10c16d,_0x4408b3._0x5387ff)](),_0x2148a7[_0x192c98(0x273,0x391,0x38d,_0x4408b3._0x4ab65d)][_0x192c98(0x2ce,0x94,0x27b,_0x4408b3._0x495297)]();},'status'(){const _0x2a483d={_0x39431f:0xae,_0x58d537:0x4a};function _0x4fd0cc(_0x1efbcb,_0x16965e,_0x1a831e,_0x1f7795){return _0x2d9809(_0x1a831e,_0x16965e-_0x5b125f._0x4648d3,_0x1f7795-0x44c,_0x1f7795-_0x5b125f._0x1f1c51);}function _0x58a3ff(_0x326f5e,_0xb2da5b,_0x59e007,_0x3eda76){return _0x2d9809(_0x3eda76,_0xb2da5b-_0x2a483d._0x39431f,_0x59e007- -_0x2a483d._0x58d537,_0x3eda76-0x110);}return{'connectedClients':_0x2148a7[_0x58a3ff(_0x5d6bd0._0xb20136,0x208,0x16c,_0x5d6bd0._0x417288)][_0x58a3ff(0x10d,_0x5d6bd0._0x3632e3,0xd0,_0x5d6bd0._0x12ed88)]};}};}function createQuestionId(){const _0x26a29e={_0xe651b6:0x2ea,_0x481d1f:0x34a,_0xe27988:0x3d6},_0x1ad0aa={_0x540124:0x22b},_0x510515={_0x26737a:0x55,_0x233ddc:0x87};function _0x3f5c79(_0x56c1da,_0x1cca82,_0x3e8db7,_0x579a67){return _0x37c1da(_0x56c1da-_0x510515._0x26737a,_0x1cca82-_0x510515._0x233ddc,_0x56c1da,_0x1cca82- -0x52);}function _0x52d39c(_0x19b663,_0x5197d3,_0x1dcf32,_0x2016bc){return _0x37c1da(_0x19b663-0xa8,_0x5197d3-0x9,_0x2016bc,_0x19b663- -_0x1ad0aa._0x540124);}return'question-'+Date[_0x52d39c(_0x26a29e._0xe651b6,_0x26a29e._0x481d1f,0x298,0x424)]()+'-'+Math[_0x52d39c(0x3a4,0x2df,_0x26a29e._0xe27988,0x3dd)]()['toString'](0x24)['slice'](0x2,0x9);}function validateInput(_0x310cca){const _0x409079={_0x71ca0e:0x4ba,_0xa8d002:0x552,_0x18fc30:0x49b,_0x3ca63b:0x4d6,_0x44bf20:0x373,_0x461704:0x48e,_0x3635db:0x3dc,_0x3e53dd:0x48e,_0x583363:0x311,_0x2470ad:0x468,_0xe69f59:0x248,_0xc39b5c:0x307,_0x5c0422:0x54c,_0x3dc065:0x5d5,_0x820b1a:0x6f8,_0x1fcbbe:0x64b,_0xeaa4:0x345,_0x1cb1bc:0x48c,_0x4553e2:0x5a4,_0x2d2e16:0x5b0,_0x39265d:0x4ea,_0x411e2a:0x273,_0x1c1f98:0x333,_0x110b85:0x3f7,_0x57546d:0x303,_0x28583c:0x1cd,_0x289e12:0x336,_0x54c5d1:0x4c0,_0x3e696b:0x476,_0x408ccc:0x58e,_0x38c648:0x44b,_0x279172:0x5e1,_0x195ca3:0x5b4,_0x34fdac:0x4e4,_0x349a2b:0x386,_0x4cc8c8:0x38c,_0x162223:0x514,_0x3b0ad7:0x486,_0x180646:0x423,_0x2adb4c:0x28e,_0x19b9d5:0x355,_0x97c46b:0x4d3,_0x3f64e0:0x4f8,_0x4cba42:0x5f4,_0x4cd4f7:0x174,_0x331504:0x29a,_0x2737b4:0x3c5,_0x334efe:0x402,_0x1a73d9:0x5d2,_0x1b0c9c:0x49b,_0x261381:0x55e,_0x3a8a72:0x486,_0x4688d9:0x510,_0x5438b6:0x5ec,_0x474d4c:0x4ea,_0x4a998c:0x2e5,_0x30de0e:0x430,_0x2089f6:0x4f6,_0x1f0d4a:0x329,_0x4d5807:0x44b,_0x361f58:0x3c7},_0x437f39={_0x417a9e:0xf4,_0x47674e:0x95},_0x3067c7={_0x4a2eed:0x285,_0x7a3150:0x152};if(!Array['isArray'](_0x310cca[_0x4efcfa(_0x409079._0x71ca0e,_0x409079._0xa8d002,0x44e,0x48e)])||_0x310cca['questions'][_0x47d9e0(0x557,_0x409079._0x18fc30,_0x409079._0x3ca63b,0x3fa)]<0x1||_0x310cca[_0x4efcfa(_0x409079._0x44bf20,0x534,0x465,_0x409079._0x461704)][_0x4efcfa(0x390,0x3d4,0x2e7,0x36a)]>0xa)throw new ToolExecutionError('Must\x20provide\x201-10\x20questions',{'error':_0x47d9e0(0x526,0x540,0x678,0x568)});function _0x4efcfa(_0x4f9a9a,_0x2a4537,_0x412cf6,_0x569c6b){return _0x38d42b(_0x4f9a9a-0x15a,_0x569c6b-_0x3067c7._0x4a2eed,_0x2a4537,_0x569c6b-_0x3067c7._0x7a3150);}function _0x47d9e0(_0x323e2b,_0xc31224,_0x1cc189,_0x27db71){return _0x37c1da(_0x323e2b-0xc4,_0xc31224-_0x437f39._0x417a9e,_0x27db71,_0xc31224- -_0x437f39._0x47674e);}for(let _0x3c07e7=0x0;_0x3c07e7<_0x310cca[_0x4efcfa(0x4e5,_0x409079._0x3635db,0x5b2,_0x409079._0x3e53dd)]['length'];_0x3c07e7+=0x1){const _0x5f1286=_0x310cca['questions'][_0x3c07e7];if(!_0x5f1286[_0x4efcfa(0x2a2,0x1fd,0x353,_0x409079._0x583363)]||typeof _0x5f1286[_0x47d9e0(_0x409079._0x2470ad,0x442,0x3d7,0x4e5)]!==_0x4efcfa(_0x409079._0xe69f59,0x332,0x1ed,_0x409079._0xc39b5c))throw new ToolExecutionError(_0x4efcfa(0x41c,0x33f,0x4c1,0x3c7)+(_0x3c07e7+0x1)+_0x47d9e0(_0x409079._0x5c0422,_0x409079._0x3dc065,_0x409079._0x820b1a,_0x409079._0x1fcbbe));if(!_0x5f1286[_0x4efcfa(0x208,0x41d,0x300,_0x409079._0xeaa4)]||typeof _0x5f1286[_0x47d9e0(_0x409079._0x1cb1bc,0x476,0x405,_0x409079._0x4553e2)]!=='string')throw new ToolExecutionError('Question\x20'+(_0x3c07e7+0x1)+_0x47d9e0(0x59e,_0x409079._0x2d2e16,_0x409079._0x39265d,0x636));if(_0x5f1286['topic'][_0x4efcfa(_0x409079._0x411e2a,_0x409079._0x1c1f98,0x3cc,0x36a)]>0x1e)throw new ToolExecutionError(_0x4efcfa(_0x409079._0x110b85,0x3c1,_0x409079._0x57546d,0x3c7)+(_0x3c07e7+0x1)+_0x4efcfa(_0x409079._0x28583c,_0x409079._0x289e12,0x1a6,0x28b)+_0x5f1286[_0x47d9e0(_0x409079._0x54c5d1,_0x409079._0x3e696b,_0x409079._0x408ccc,_0x409079._0x38c648)][_0x47d9e0(_0x409079._0x279172,0x49b,_0x409079._0x195ca3,_0x409079._0x34fdac)]);if(!Array[_0x47d9e0(0x4dc,0x3d7,_0x409079._0x349a2b,_0x409079._0x4cc8c8)](_0x5f1286[_0x47d9e0(_0x409079._0x162223,_0x409079._0x3b0ad7,0x5a9,_0x409079._0x180646)])||_0x5f1286[_0x47d9e0(0x41a,_0x409079._0x3b0ad7,0x49d,0x531)]['length']<0x2||_0x5f1286[_0x4efcfa(0x488,_0x409079._0x2adb4c,_0x409079._0x110b85,_0x409079._0x19b9d5)]['length']>0x4)throw new ToolExecutionError(_0x47d9e0(_0x409079._0x97c46b,_0x409079._0x3f64e0,0x4be,_0x409079._0x4cba42)+(_0x3c07e7+0x1)+_0x4efcfa(_0x409079._0x4cd4f7,_0x409079._0x331504,0x164,0x27b));for(let _0x2314fb=0x0;_0x2314fb<_0x5f1286[_0x47d9e0(0x4ef,0x486,_0x409079._0x2737b4,_0x409079._0x334efe)][_0x47d9e0(_0x409079._0x1a73d9,_0x409079._0x1b0c9c,0x475,0x38a)];_0x2314fb+=0x1){const _0x565489=_0x5f1286[_0x47d9e0(_0x409079._0x261381,_0x409079._0x3a8a72,0x590,0x546)][_0x2314fb];if(!_0x565489[_0x47d9e0(0x515,_0x409079._0x4688d9,_0x409079._0x5438b6,0x5ee)]||!_0x565489['description'])throw new ToolExecutionError(_0x47d9e0(_0x409079._0x474d4c,_0x409079._0x3f64e0,0x574,0x459)+(_0x3c07e7+0x1)+',\x20Option\x20'+(_0x2314fb+0x1)+_0x47d9e0(0x2a2,0x382,_0x409079._0x4a998c,0x38a));}if(typeof _0x5f1286[_0x47d9e0(0x4b3,_0x409079._0x30de0e,0x4e8,_0x409079._0x2089f6)]!==_0x47d9e0(0x6c8,0x595,0x669,0x4f9))throw new ToolExecutionError(_0x4efcfa(_0x409079._0x1f0d4a,_0x409079._0x4d5807,0x472,_0x409079._0x361f58)+(_0x3c07e7+0x1)+':\x20\x22multiSelect\x22\x20must\x20be\x20a\x20boolean');}}function buildQuestions(_0x17b273){const _0x2e3b79={_0x35bf9b:0x48f,_0x1aaa0c:0x65b},_0xa0b7b4={_0x5a06a8:0x1ba,_0x3af2a2:0x50},_0x45d34f={_0x3652c1:0xb9,_0x181257:0x41e};function _0x4b577c(_0x584fa9,_0x162c4e,_0xcf0ba3,_0x2801d0){return _0x38d42b(_0x584fa9-_0x45d34f._0x3652c1,_0x584fa9-_0x45d34f._0x181257,_0x2801d0,_0x2801d0-0x125);}function _0x4a32a8(_0x5e5875,_0x338a3d,_0x43f6be,_0x5a2ae8){return _0x37c1da(_0x5e5875-_0xa0b7b4._0x5a06a8,_0x338a3d-_0xa0b7b4._0x3af2a2,_0x5e5875,_0x5a2ae8- -0xa4);}return _0x17b273[_0x4a32a8(0x669,_0x2e3b79._0x35bf9b,_0x2e3b79._0x1aaa0c,0x5b0)]['map']((_0x2f4367,_0x579827)=>({'id':'q'+_0x579827,'question':_0x2f4367['question'],'topic':_0x2f4367['topic'],'options':_0x2f4367[_0x4a32a8(0x3c8,0x3e3,0x474,0x477)],'multiSelect':_0x2f4367[_0x4b577c(0x498,0x4b2,0x4d7,0x470)]}));}function createResult(_0x2c0889,_0x1c2c9f,_0x25288c){const _0x558091={_0x109f9d:0x4d8,_0x439adf:0x4f3,_0xaad642:0x596,_0x20d6c2:0x4e0},_0x225478={_0x39eef0:0x15,_0x53cba4:0x3c};function _0xcdd5db(_0x2b0951,_0x43cb40,_0x5ce7ca,_0x24ad1c){return _0x37c1da(_0x2b0951-_0x225478._0x39eef0,_0x43cb40-0xdf,_0x24ad1c,_0x2b0951- -_0x225478._0x53cba4);}const _0x1c1b05={'questionId':_0x2c0889,'questionCount':_0x1c2c9f,'answers':_0x25288c};function _0x2bd00a(_0x235c98,_0x2efd77,_0x77d32e,_0x48faf7){return _0x37c1da(_0x235c98-0x172,_0x2efd77-0x168,_0x2efd77,_0x77d32e-0x5c);}return createToolOutput(_0xcdd5db(0x4c3,0x561,_0x558091._0x109f9d,0x55a)+JSON[_0xcdd5db(0x5c2,_0x558091._0x439adf,_0x558091._0xaad642,_0x558091._0x20d6c2)](_0x25288c,null,0x2),_0x1c1b05);}function createAskUserTool(){const _0x44f0b0={_0x211a7b:0xf2,_0x56253a:0x4ad,_0x23d2b1:0x5af,_0x20d530:0x280,_0x542e6f:0x2fa,_0xfedfaa:0x15e,_0x35ccdb:0x188,_0x19562a:0x205,_0x3a1ab1:0x222,_0x1308d3:0x2f4,_0x23f738:0x347,_0x38ba7b:0x356,_0x4ff595:0x382,_0x2ba547:0x262,_0x1a0ca7:0x260,_0x539a68:0x8d,_0x35d058:0x47e,_0x3a952b:0x284,_0x4fabf8:0x3db,_0x27994c:0x3a6,_0x309615:0x29a,_0x218a07:0x435,_0x26d29e:0x356,_0x59c173:0xf1,_0x1a03ff:0x163,_0x2196e9:0x17a,_0x870145:0x342,_0x59a085:0x390,_0xca434b:0x2a1,_0x34f59d:0x358,_0x3878b8:0x1e0,_0x1fd0fb:0x276,_0x30f036:0x3dd},_0xeffe10={_0x5bf18e:0xe,_0x3564aa:0x59c,_0x24cd18:0x451,_0x2e2fe0:0x53a,_0x2cab9f:0x561,_0x27582d:0x621,_0x12cbc4:0x560,_0x3ae68d:0x51d,_0x36af76:0x4b0,_0x426f8b:0x6ba,_0x3f0d4b:0x776,_0x2c72c1:0x1f,_0x1b9d84:0x3b,_0xd0c423:0x6ba,_0x3d999c:0x730,_0x553c86:0x718,_0x14ec74:0x2a1},_0x3d903a={_0x37e63f:0x181,_0x44d4b4:0x272},_0x376838={_0x1295f1:0x157,_0xef7306:0xe1};function _0x1d6956(_0x250b09,_0x5825ff,_0xa464a,_0x36d4a9){return _0x37c1da(_0x250b09-_0x376838._0x1295f1,_0x5825ff-_0x376838._0xef7306,_0x5825ff,_0xa464a- -0x3a8);}function _0x575414(_0x19a965,_0x53805b,_0x1770da,_0x327b48){return _0x38d42b(_0x19a965-_0x3d903a._0x37e63f,_0x53805b-_0x3d903a._0x44d4b4,_0x19a965,_0x327b48-0x1e5);}return defineTool({'name':_0x1d6956(0x167,_0x44f0b0._0x211a7b,0x73,0xe9),'description':_0x575414(0x57b,_0x44f0b0._0x56253a,0x47f,_0x44f0b0._0x23d2b1),'inputSchema':{'type':_0x575414(0x3ba,_0x44f0b0._0x20d530,_0x44f0b0._0x542e6f,_0x44f0b0._0xfedfaa),'properties':{'questions':{'type':_0x1d6956(0x16d,0x1b7,0x93,_0x44f0b0._0x35ccdb),'items':{'type':_0x575414(_0x44f0b0._0x19562a,0x280,_0x44f0b0._0x3a1ab1,0x181),'properties':{'question':{'type':_0x575414(0x390,_0x44f0b0._0x1308d3,0x3bf,_0x44f0b0._0x23f738)},'topic':{'type':_0x575414(_0x44f0b0._0x38ba7b,0x2f4,0x1cc,_0x44f0b0._0x4ff595)},'options':{'type':_0x575414(0x243,_0x44f0b0._0x2ba547,0x2ae,_0x44f0b0._0x1a0ca7),'items':{'type':_0x1d6956(0xec,_0x44f0b0._0x539a68,0xb1,-0x6c),'properties':{'label':{'type':'string'},'description':{'type':'string'}},'required':[_0x575414(_0x44f0b0._0x35d058,0x3cc,_0x44f0b0._0x3a952b,0x3da),_0x575414(_0x44f0b0._0x4fabf8,_0x44f0b0._0x27994c,0x300,_0x44f0b0._0x309615)]}},'multiSelect':{'type':_0x575414(0x590,0x451,0x34f,0x334)}},'required':[_0x575414(0x349,0x2fe,_0x44f0b0._0x218a07,_0x44f0b0._0x26d29e),_0x1d6956(0x19c,_0x44f0b0._0x59c173,_0x44f0b0._0x1a03ff,_0x44f0b0._0x2196e9),_0x575414(0x3fc,_0x44f0b0._0x870145,0x27c,_0x44f0b0._0x59a085),_0x575414(_0x44f0b0._0xca434b,0x2ec,_0x44f0b0._0x34f59d,0x3f7)]}},'answers':{'type':_0x575414(0x21a,0x280,0x242,_0x44f0b0._0x3878b8),'properties':{}}},'required':[_0x1d6956(_0x44f0b0._0x1fd0fb,0x3c7,0x2ac,_0x44f0b0._0x30f036)]},async *'execute'(_0x5a3feb,_0xdb2141){const _0x12b010={_0x2d2fb9:0x12d,_0x1c8db6:0x127},_0x1a38fe={_0x2754b6:0xef},_0x528dfa=_0x5a3feb;validateInput(_0x528dfa);const _0x3c25b0=_0xdb2141['toolCallId']??createQuestionId();function _0x4449d0(_0x144f19,_0x254c90,_0x5d2256,_0x1fa531){return _0x1d6956(_0x144f19-_0x1a38fe._0x2754b6,_0x1fa531,_0x144f19-0x3d9,_0x1fa531-0x11e);}function _0x2bcaaa(_0x34fded,_0x6a98af,_0x3f43dd,_0x20f694){return _0x1d6956(_0x34fded-_0x12b010._0x2d2fb9,_0x34fded,_0x20f694- -0x2fc,_0x20f694-_0x12b010._0x1c8db6);}if(_0x528dfa['answers']&&Object[_0x2bcaaa(-_0xeffe10._0x5bf18e,-0x1bb,-0x9,-0x6f)](_0x528dfa[_0x4449d0(0x560,0x638,0x42c,0x687)])[_0x4449d0(0x561,0x5d7,_0xeffe10._0x3564aa,_0xeffe10._0x24cd18)]>0x0)return createResult(_0x3c25b0,_0x528dfa[_0x4449d0(0x685,0x746,0x5aa,_0xeffe10._0x2e2fe0)][_0x4449d0(_0xeffe10._0x2cab9f,_0xeffe10._0x27582d,0x507,0x575)],_0x528dfa[_0x4449d0(_0xeffe10._0x12cbc4,0x624,_0xeffe10._0x3ae68d,_0xeffe10._0x36af76)]);if(!_0xdb2141[_0x4449d0(_0xeffe10._0x426f8b,_0xeffe10._0x3f0d4b,0x679,0x68f)])throw new ToolExecutionError(_0x2bcaaa(_0xeffe10._0x2c72c1,0x7f,0x88,-_0xeffe10._0x1b9d84));const _0xdbf21a=buildQuestions(_0x528dfa),_0x416d6e=await _0xdb2141[_0x4449d0(_0xeffe10._0xd0c423,_0xeffe10._0x3d999c,0x6e4,0x66a)]({'questionId':_0x3c25b0,'questions':_0xdbf21a});yield createResult(_0x3c25b0,_0x528dfa[_0x4449d0(0x685,0x6c4,_0xeffe10._0x553c86,0x6a8)][_0x2bcaaa(-0x24f,-0x89,-_0xeffe10._0x14ec74,-0x174)],_0x416d6e);}});}import{spawn as _0x3b0a63}from'child_process';import{statSync}from'fs';import*as _0x2bf8d7 from'os';import*as _0x4f1757 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x38b57e from'path';function isPathInside(_0x92dc51,_0x2f8148){const _0xc8abbe={_0x2151a7:0x9a,_0x23a6e7:0x59,_0x8a1bd1:0x1f,_0x98cdb8:0x1aa,_0x5afddf:0x11d,_0x3b04c8:0x19},_0x8fcb60={_0x7aab91:0x2f},_0x4e9d98=_0x38b57e[_0x3c8ad1(-_0xc8abbe._0x2151a7,-_0xc8abbe._0x23a6e7,-0xa5,_0xc8abbe._0x8a1bd1)](_0x92dc51);function _0x3c8ad1(_0x31f9b0,_0x27ebba,_0x4b61e3,_0x482f48){return _0x38d42b(_0x31f9b0-0x3a,_0x31f9b0- -0x19d,_0x4b61e3,_0x482f48-_0x8fcb60._0x7aab91);}function _0x2c1122(_0x1967ef,_0x3f2f29,_0x482fdd,_0xe07a7f){return _0x37c1da(_0x1967ef-0x108,_0x3f2f29-0x12a,_0xe07a7f,_0x1967ef- -0x681);}const _0xff45e6=_0x38b57e['relative'](_0x4e9d98,_0x2f8148);return _0xff45e6===''||!_0xff45e6[_0x2c1122(-0x179,-_0xc8abbe._0x98cdb8,-_0xc8abbe._0x5afddf,-0x22a)]('..')&&!_0x38b57e[_0x3c8ad1(-0xa3,-_0xc8abbe._0x3b04c8,-0x1de,-0x6b)](_0xff45e6);}function resolveWorkspacePath(_0x2722dc,_0x39daf0){return resolveAllowedPath(_0x2722dc,[],_0x39daf0);}function resolveAllowedPath(_0x3bae31,_0xe3e0c,_0x3ecfb3){const _0x57a208={_0x53b278:0x461,_0x537931:0x3b4,_0x42d100:0x342,_0x562f3f:0x5c2,_0x3a6771:0x6b5,_0x56e103:0x41,_0x3ca957:0x1e8},_0x5f3182={_0x2b92bc:0x56};function _0x4affe6(_0x146934,_0x4bc562,_0x4c9694,_0x1e2fb6){return _0x37c1da(_0x146934-0x14b,_0x4bc562-_0x5f3182._0x2b92bc,_0x1e2fb6,_0x146934- -0xed);}const _0x5914a8=_0x38b57e[_0x4affe6(_0x57a208._0x53b278,_0x57a208._0x537931,0x33c,_0x57a208._0x42d100)](_0x3bae31),_0x103135=_0x38b57e['resolve'](_0x5914a8,_0x3ecfb3);function _0xc1163d(_0x5d7a60,_0x4f9239,_0x23704d,_0x4d91fc){return _0x38d42b(_0x5d7a60-0x14,_0x23704d-0x10c,_0x4d91fc,_0x4d91fc-0xe5);}const _0x4331ea=[_0x5914a8,..._0xe3e0c[_0x4affe6(0x58f,0x516,_0x57a208._0x562f3f,_0x57a208._0x3a6771)](_0x4ab2bd=>_0x38b57e[_0x4affe6(0x461,0x31a,0x52a,0x40b)](_0x4ab2bd))];if(_0x4331ea['some'](_0x57cf6=>isPathInside(_0x57cf6,_0x103135)))return _0x103135;throw new ToolExecutionError(_0xc1163d(-0x45,-_0x57a208._0x56e103,0xf4,_0x57a208._0x3ca957)+_0x3ecfb3,{'path':_0x3ecfb3,'rootDir':_0x5914a8,'allowedDirs':_0x4331ea});}async function assertWorkspaceFile(_0x4db59d){const _0xcad812={_0x5ec176:0x560,_0x283c1f:0x566,_0x2318a6:0x49e},_0x4d4ae6={_0x2a6839:0xeb};function _0x4f880f(_0x4e9a60,_0x143bd2,_0x255855,_0x6a3a9c){return _0x37c1da(_0x4e9a60-_0x4d4ae6._0x2a6839,_0x143bd2-0x12f,_0x4e9a60,_0x6a3a9c-0x6c);}const _0x46e29d=await stat(_0x4db59d);if(!_0x46e29d['isFile']())throw new ToolExecutionError(_0x4f880f(_0xcad812._0x5ec176,0x45b,_0xcad812._0x283c1f,_0xcad812._0x2318a6)+_0x4db59d,{'path':_0x4db59d});}function isProbablyBinary(_0x2c7fd9){const _0x2eaf9c={_0x2dcd1b:0x169,_0x478706:0x9d,_0x303d6f:0x85,_0x35d261:0xa2},_0x3426f5={_0x17e65b:0x143};function _0x43b57c(_0xa81d92,_0x105c48,_0x3b3b4d,_0x61d419){return _0x37c1da(_0xa81d92-_0x3426f5._0x17e65b,_0x105c48-0x124,_0x3b3b4d,_0xa81d92- -0x563);}return _0x2c7fd9[_0x43b57c(-_0x2eaf9c._0x2dcd1b,-_0x2eaf9c._0x478706,-_0x2eaf9c._0x303d6f,-_0x2eaf9c._0x35d261)](0x0);}var DEFAULT_DESCRIPTION=_0x38d42b(0x16b,0x177,0x250,0x15c),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x1cd402){return _0x1cd402 instanceof Error;}function shellExists(_0x4a4e6f){const _0x141f7b={_0x8c0ac:0x11b,_0x4cf878:0x86,_0x19bfc5:0x181},_0x4f911c={_0x4cba03:0x79,_0x5c7412:0xae};function _0x3083a6(_0x2915d1,_0x158c06,_0x5349a4,_0x585b6a){return _0x37c1da(_0x2915d1-0xb6,_0x158c06-0x55,_0x158c06,_0x2915d1- -0x44f);}function _0x52112e(_0x22a505,_0x2b62d0,_0xc690c3,_0x4a01bd){return _0x37c1da(_0x22a505-0x6a,_0x2b62d0-_0x4f911c._0x4cba03,_0x22a505,_0x4a01bd- -_0x4f911c._0x5c7412);}try{const _0xa46a21=statSync(_0x4a4e6f);return _0xa46a21[_0x3083a6(0xa7,_0x141f7b._0x8c0ac,0x97,-_0x141f7b._0x4cf878)]()&&(_0xa46a21[_0x3083a6(-0x43,-0x18e,-_0x141f7b._0x19bfc5,-0x15f)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x3506f4){const _0x5bf2df={_0x1e0b4b:0x1ac,_0x4f38d3:0x171,_0x300948:0x23e,_0x34b36c:0x1b0,_0x95e8f9:0x6a6,_0x26dfa0:0x595,_0x52466a:0x67e,_0x17b376:0x6bc,_0xf51839:0x59f,_0x2d5996:0x64d,_0x55dbe2:0x355,_0xab2998:0x246,_0x32253a:0x259,_0x7e643a:0x107,_0x3eec7d:0x304,_0x527633:0x270,_0x4436f1:0x1f8,_0x1620fe:0x682,_0x112c84:0x6cf},_0x443a96={_0x55c9c3:0x1d2};function _0x5e6633(_0x3f7cda,_0x185f49,_0x3d958b,_0x34fe23){return _0x38d42b(_0x3f7cda-_0x443a96._0x55c9c3,_0x185f49-0x15e,_0x3f7cda,_0x34fe23-0xa5);}function _0x221ee2(_0x5ae09c,_0x1b5738,_0x551915,_0x5b1473){return _0x38d42b(_0x5ae09c-0x26,_0x5b1473-0x4e0,_0x1b5738,_0x5b1473-0xcb);}if(_0x3506f4)return _0x3506f4;if(_0x2bf8d7[_0x5e6633(_0x5bf2df._0x1e0b4b,_0x5bf2df._0x4f38d3,_0x5bf2df._0x300948,_0x5bf2df._0x34b36c)]()===_0x221ee2(0x6ad,_0x5bf2df._0x95e8f9,_0x5bf2df._0x26dfa0,_0x5bf2df._0x52466a))return process[_0x221ee2(_0x5bf2df._0x17b376,_0x5bf2df._0xf51839,0x47f,0x592)]['ComSpec']||_0x221ee2(_0x5bf2df._0x2d5996,0x4c6,0x5d9,0x58c);const _0x4a1e6f=['/bin/bash','/bin/sh',_0x5e6633(_0x5bf2df._0x55dbe2,_0x5bf2df._0xab2998,_0x5bf2df._0x32253a,_0x5bf2df._0x7e643a),'/usr/bin/sh'];for(const _0x13f4eb of _0x4a1e6f){if(shellExists(_0x13f4eb))return _0x13f4eb;}const _0xbf782d=process['env'][_0x5e6633(0x31e,_0x5bf2df._0x3eec7d,_0x5bf2df._0x527633,_0x5bf2df._0x4436f1)];if(_0xbf782d&&shellExists(_0xbf782d))return _0xbf782d;return _0x221ee2(_0x5bf2df._0x1620fe,0x7f1,_0x5bf2df._0x112c84,0x707);}function buildShellArgs(_0xec78b8,_0x121617){const _0x33fcc7={_0x38afe4:0x2a4,_0x41abe1:0x16a,_0x1ab818:0x12,_0x41c929:0x119},_0xbe004a={_0x4ac783:0x278},_0x21dded={_0x37d618:0x67};function _0x4e15c6(_0x1959ff,_0xfb045d,_0x6f3e9d,_0x6f9798){return _0x38d42b(_0x1959ff-_0x21dded._0x37d618,_0x6f9798- -0x2b7,_0xfb045d,_0x6f9798-0x1b2);}if(_0x2bf8d7[_0x4e15c6(-0x176,-0x30c,-0x1ab,-_0x33fcc7._0x38afe4)]()===_0x4e15c6(-0x1d5,-_0x33fcc7._0x41abe1,-_0x33fcc7._0x1ab818,-_0x33fcc7._0x41c929)){const _0x472b03=/cmd(\.exe)?$/i['test'](_0x121617);return _0x472b03?['/d','/s','/c',_0xec78b8]:['-NoLogo',_0x4e15c6(0x2b,0xa,0x77,-0xaf),'-Command',_0xec78b8];}function _0x5f2df5(_0xf0981,_0x30f75b,_0x17c97b,_0x1d47f3){return _0x37c1da(_0xf0981-0x6e,_0x30f75b-0x43,_0x30f75b,_0xf0981- -_0xbe004a._0x4ac783);}return['-c',_0xec78b8];}function resolveCarriageReturns(_0x589199){const _0xf095db={_0x2e114b:0x4c3,_0x5bdbcf:0x4b6,_0x1419a8:0x493,_0x9c43de:0x81,_0x40cf85:0x4c,_0x24140c:0x60e,_0xa827a7:0x54b},_0x55da46={_0x5aeb5c:0x177,_0x3cf0bd:0x3b6,_0x218481:0x3d8},_0x456d7f={_0x5480fc:0x7d},_0x3270ec={_0x6dd345:0xf1,_0x571474:0x630},_0x5c2af1={_0x313450:0x82,_0x2f1627:0x187};function _0x2b260b(_0x2f6604,_0x1cac79,_0x4e6ce7,_0xee3a51){return _0x37c1da(_0x2f6604-_0x5c2af1._0x313450,_0x1cac79-_0x5c2af1._0x2f1627,_0xee3a51,_0x4e6ce7- -0xe9);}function _0x2576f7(_0x70b652,_0x8b0ca3,_0x2e2aab,_0x11404d){return _0x37c1da(_0x70b652-_0x3270ec._0x6dd345,_0x8b0ca3-0x136,_0x11404d,_0x8b0ca3- -_0x3270ec._0x571474);}return _0x589199[_0x2b260b(_0xf095db._0x2e114b,_0xf095db._0x5bdbcf,_0xf095db._0x1419a8,0x3fa)]('\x0a')[_0x2576f7(_0xf095db._0x9c43de,_0xf095db._0x40cf85,0x17e,0xf9)](_0x145e57=>{const _0x4748db={_0x4d44cf:0x14f,_0x27d38b:0x157};function _0xdfb22e(_0x405545,_0x42a60f,_0x3dd37b,_0x100ed3){return _0x2576f7(_0x405545-_0x4748db._0x4d44cf,_0x42a60f-0x4b6,_0x3dd37b-_0x4748db._0x27d38b,_0x3dd37b);}if(!_0x145e57[_0xdfb22e(_0x55da46._0x5aeb5c,0x280,0x1e3,0x24d)]('\x0d'))return _0x145e57;function _0x1deba9(_0x95493f,_0x3a3f11,_0x23a674,_0x47530f){return _0x2576f7(_0x95493f-0x181,_0x95493f- -_0x456d7f._0x5480fc,_0x23a674-0x9a,_0x47530f);}const _0x227fc1=_0x145e57['split']('\x0d');return _0x227fc1[_0x227fc1[_0xdfb22e(0x357,_0x55da46._0x3cf0bd,_0x55da46._0x218481,0x294)]-0x1]??'';})[_0x2b260b(0x64c,_0xf095db._0x24140c,_0xf095db._0xa827a7,0x636)]('\x0a');}function resolveBackspaces(_0x424373){const _0x10c1fb={_0x49ac88:0x5f5,_0x6d35ff:0x449,_0x492b33:0x3ac,_0x4cbc20:0x381,_0xb02a85:0x185,_0x5a3513:0x267,_0x1dc719:0x349},_0x34f5be={_0x5a0036:0x140,_0x147c1c:0xd3},_0xbe78a0={_0x124736:0x167,_0x33c5d8:0xe6};function _0x3ae509(_0x343f9a,_0x100f74,_0x2306f6,_0x54cc1a){return _0x38d42b(_0x343f9a-_0xbe78a0._0x124736,_0x2306f6-0x2b9,_0x54cc1a,_0x54cc1a-_0xbe78a0._0x33c5d8);}const _0x595928=[];for(const _0xb1e335 of Array[_0x4cbc7c(0x71e,0x759,_0x10c1fb._0x49ac88,0x626)](_0x424373)){_0xb1e335==='\x08'?_0x595928[_0x3ae509(0x47b,_0x10c1fb._0x6d35ff,_0x10c1fb._0x492b33,_0x10c1fb._0x4cbc20)]():_0x595928[_0x3ae509(_0x10c1fb._0xb02a85,0x353,_0x10c1fb._0x5a3513,_0x10c1fb._0x1dc719)](_0xb1e335);}function _0x4cbc7c(_0x33ef85,_0xe7d0c7,_0x299838,_0x5ce525){return _0x38d42b(_0x33ef85-_0x34f5be._0x5a0036,_0x5ce525-0x46f,_0x33ef85,_0x5ce525-_0x34f5be._0x147c1c);}return _0x595928['join']('');}function stripAnsiAndControls(_0xa42900){const _0x155852={_0x495eb3:0x1fe,_0x42794c:0x165,_0x114d5a:0x1e0,_0x18731f:0x18a,_0x13f9df:0x1f2,_0x550438:0x18a,_0xdbad84:0xea,_0x32d042:0xa,_0x552ad0:0x47,_0x426485:0x24e,_0x491086:0x38d,_0x40e1ee:0x11f,_0x2a432e:0x4f,_0x545c38:0x72,_0x1421dc:0x18a},_0x17532f={_0x284163:0x1a8,_0x2f9359:0x44},_0x4f701c={_0x3123f7:0xca,_0x53d63d:0x299};function _0x4a1758(_0x2cc1f1,_0x5083ab,_0x44f2f6,_0x21a2ee){return _0x37c1da(_0x2cc1f1-0xd6,_0x5083ab-_0x4f701c._0x3123f7,_0x44f2f6,_0x21a2ee- -_0x4f701c._0x53d63d);}_0xa42900=resolveCarriageReturns(_0xa42900),_0xa42900=resolveBackspaces(_0xa42900),_0xa42900=stripVTControlCharacters(_0xa42900);const _0x2d6d31='\x1b',_0x56bfa5='\x07';_0xa42900=_0xa42900['replace'](new RegExp(_0x434931(_0x155852._0x495eb3,0x2a8,0x338,0x244)+_0x56bfa5+_0x4a1758(0x19c,0xa8,_0x155852._0x42794c,0x1ed)+_0x56bfa5,'g'),''),_0xa42900=_0xa42900[_0x4a1758(0x1aa,_0x155852._0x114d5a,0x2b5,_0x155852._0x18731f)](new RegExp(';[^\x5cn]*?'+_0x2d6d31+'\x5c\x5c','g'),''),_0xa42900=_0xa42900[_0x4a1758(0x1b2,_0x155852._0x13f9df,_0x155852._0x550438,0x18a)](new RegExp(_0x56bfa5,'g'),'');function _0x434931(_0x25270d,_0x4fdafc,_0xd70976,_0x1e1c9c){return _0x38d42b(_0x25270d-_0x17532f._0x284163,_0x1e1c9c-_0x17532f._0x2f9359,_0x4fdafc,_0x1e1c9c-0x1de);}return _0xa42900=_0xa42900['replace'](new RegExp(_0x2d6d31+_0x434931(-_0x155852._0xdbad84,-0x8d,_0x155852._0x32d042,_0x155852._0x552ad0)+_0x2d6d31+'\x5c\x5c','g'),''),_0xa42900=_0xa42900['replace'](new RegExp(_0x2d6d31+_0x4a1758(_0x155852._0x426485,0x3d3,0x44e,_0x155852._0x491086),'g'),''),_0xa42900=_0xa42900[_0x434931(-_0x155852._0x40e1ee,-0x5e,-_0x155852._0x2a432e,0x1c)](/[\u0080-\u009F]/g,''),_0xa42900=_0xa42900[_0x4a1758(0x135,0xcb,0xed,0x18a)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0xa42900=_0xa42900[_0x4a1758(0x13c,0x236,_0x155852._0x545c38,_0x155852._0x1421dc)](/[\u23CE\u2424]/g,''),_0xa42900;}function resolveWorkingDirectory(_0x3b0861,_0x35f4eb,_0x1b6b1a){const _0x529a4d={_0x4f17c6:0x410,_0xc37f4d:0x2ca,_0x117464:0x2b0,_0x8a9b7b:0x323,_0x23242a:0x30b,_0x10f2ec:0x3b5},_0x156fc0={_0x1e973c:0x2ce},_0x12fbbb={_0x346cbb:0x9e,_0x3c8fba:0x325,_0x2d16c2:0xb8};function _0x3fd782(_0x987340,_0xb1e571,_0x548bf9,_0x167097){return _0x38d42b(_0x987340-_0x12fbbb._0x346cbb,_0x167097-_0x12fbbb._0x3c8fba,_0x548bf9,_0x167097-_0x12fbbb._0x2d16c2);}const _0x2f6e70=resolveAllowedPath(_0x35f4eb,_0x1b6b1a,_0x3b0861??'.');function _0x4a037f(_0x203ad4,_0x525767,_0x261097,_0x41b513){return _0x37c1da(_0x203ad4-0xf2,_0x525767-0x29,_0x203ad4,_0x41b513- -_0x156fc0._0x1e973c);}try{const _0x310b44=statSync(_0x2f6e70);if(!_0x310b44[_0x4a037f(_0x529a4d._0x4f17c6,0x3a2,0x23a,_0x529a4d._0xc37f4d)]())throw new ToolExecutionError(_0x3fd782(_0x529a4d._0x117464,_0x529a4d._0x8a9b7b,_0x529a4d._0x23242a,_0x529a4d._0x10f2ec)+_0x2f6e70,{'cwd':_0x2f6e70});return _0x2f6e70;}catch(_0x26dedc){if(_0x26dedc instanceof ToolExecutionError)throw _0x26dedc;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x2f6e70,{'cwd':_0x2f6e70});}}function killProcessGroup(_0x5c0d42,_0x40554d,_0x48e342=_0x37c1da(0x3b5,0x42c,0x46f,0x44b)){const _0x10be3b={_0x44541b:0xf9,_0x531745:0x2a9,_0x3947de:0xc2,_0x3dc1af:0x193,_0x194207:0xb2,_0x4d7920:0xf2,_0x4b4468:0x190,_0x511df0:0x364,_0x1743d8:0x3c0,_0x2f76e7:0x1f9,_0x1476eb:0x1a8,_0x13b990:0x11a,_0x459046:0x3ed,_0x1d1fca:0x506,_0x44f29a:0x50f,_0x8b64e6:0x39d},_0x3958e4={_0x297d29:0x17e,_0x196144:0x1f0,_0x32a16c:0x41},_0x443e39={_0x170868:0x1dc};if(!_0x5c0d42['pid'])return;function _0x3808f4(_0x2e25f9,_0x5ce40a,_0x47f2a1,_0x1fba0d){return _0x38d42b(_0x2e25f9-0x1e1,_0x5ce40a- -0x249,_0x1fba0d,_0x1fba0d-_0x443e39._0x170868);}if(_0x40554d)try{_0x3b0a63('taskkill',[_0x3808f4(-0x219,-0x229,-0x28c,-_0x10be3b._0x44541b),_0x5c0d42[_0x2fbb3f(0x1f9,0x12a,0x262,_0x10be3b._0x531745)][_0x3808f4(-0x25a,-0x1df,-_0x10be3b._0x3947de,-_0x10be3b._0x3dc1af)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5c0d42[_0x3808f4(-_0x10be3b._0x194207,-0x4c,_0x10be3b._0x4d7920,-_0x10be3b._0x4b4468)](_0x48e342);return;}function _0x2fbb3f(_0x4c6fc9,_0x4263cf,_0x38c70c,_0x55c468){return _0x38d42b(_0x4c6fc9-_0x3958e4._0x297d29,_0x4c6fc9-_0x3958e4._0x196144,_0x4263cf,_0x55c468-_0x3958e4._0x32a16c);}try{process[_0x2fbb3f(0x3ed,_0x10be3b._0x511df0,0x30b,_0x10be3b._0x1743d8)](-_0x5c0d42[_0x2fbb3f(_0x10be3b._0x2f76e7,_0x10be3b._0x1476eb,_0x10be3b._0x13b990,0x207)],_0x48e342);}catch{_0x5c0d42[_0x2fbb3f(_0x10be3b._0x459046,_0x10be3b._0x1d1fca,_0x10be3b._0x44f29a,_0x10be3b._0x8b64e6)](_0x48e342);}}function appendChunk(_0x1e7613,_0xa18800,_0x27564a,_0x404f5d,_0x2e4449){const _0x108ca5={_0x425351:0x2e8,_0x47455a:0x2b7,_0xd4c035:0x263,_0x3d3231:0x21f,_0x314237:0x193},_0x185bba={_0x57b577:0x9a,_0x45f114:0xce},_0x229280={_0x1a22b3:0x33,_0x307d8e:0x658},_0x2181c5=_0x404f5d?stripAnsiAndControls(_0x27564a):_0x27564a;function _0x39bef2(_0x5713e8,_0xd2384c,_0x56b1d3,_0x4eae86){return _0x37c1da(_0x5713e8-0xee,_0xd2384c-_0x229280._0x1a22b3,_0x56b1d3,_0xd2384c- -_0x229280._0x307d8e);}if(_0x2181c5['length']===0x0)return;function _0x1e18d7(_0x59ad53,_0x186b08,_0x352f8a,_0x4fe153){return _0x38d42b(_0x59ad53-_0x185bba._0x57b577,_0x59ad53- -0x211,_0x186b08,_0x4fe153-_0x185bba._0x45f114);}_0x1e7613[_0x39bef2(-_0x108ca5._0x425351,-0x25f,-0x291,-_0x108ca5._0x47455a)](_0x2181c5),_0xa18800[_0x1e18d7(-_0x108ca5._0xd4c035,-_0x108ca5._0x3d3231,-0x2c5,-_0x108ca5._0x314237)](_0x2181c5),_0x2e4449();}function createBashTool(_0x48138f={}){const _0x42bcb8={_0x1b92a2:0x161,_0x201614:0x557,_0x4c8d34:0x509,_0xb2c0cd:0x6a0,_0xa6cad2:0x65,_0x275779:0x1bf,_0x35a692:0x392,_0x101f32:0x28f,_0x1fdda2:0x163,_0x4e6943:0x130,_0x302b37:0x1df,_0x1d6658:0x231,_0x537e5b:0x1e1,_0x780ccc:0x45d,_0x513b92:0x330,_0x2ed003:0x337,_0x4bfb99:0x29b,_0xf83fc8:0x1ed,_0x263bc9:0x3ab,_0xba1254:0x300,_0x4eb8af:0x2df,_0x1f617c:0x9f},_0x2ce309={_0x41995a:0x110,_0x1392f7:0x199,_0xf6dcb1:0x2a,_0x2d5627:0x49,_0x51c05d:0xbf,_0x572e31:0xc9,_0x505b58:0x115,_0x7e3cc6:0x121,_0x5b36cc:0x1f9,_0x558866:0x33e,_0x29a08f:0x1a0,_0x1a53e4:0xc9,_0xa45f75:0x1b8,_0x779a0d:0xa4,_0x5d1966:0x28b,_0x3f7aef:0x1da,_0x4aa3e0:0x149,_0x153499:0x349,_0x347f96:0x339,_0xb283d1:0x8a,_0x38b581:0x192,_0x4ab77d:0x194,_0x33d2eb:0x24c,_0x446490:0x168,_0x5a7eab:0xde,_0x4dba80:0x210,_0x36bc3e:0x241,_0x3213ac:0x143,_0x13eab0:0x125,_0x1b5067:0x1c2,_0x54e445:0x250,_0x475bdd:0x1b5,_0x559128:0x1a3,_0x481587:0xc,_0x2371d9:0x81,_0x5af5b1:0x28a,_0x4995d8:0x2ef,_0x441714:0x2a8,_0x568770:0x19c,_0x1f705c:0x102,_0x310250:0xcb,_0x489713:0x56,_0x430bf5:0x1c9,_0x561746:0x267,_0x3b3c0f:0x2ac,_0x9e1d58:0x181,_0x1e06c1:0xce,_0x1b3f4b:0x2ed,_0x28db6a:0x3ad,_0x57a5f6:0x69,_0x418cc7:0x26b,_0x2622ba:0x21c,_0x334b1c:0x135,_0x35b2c9:0x1dd,_0x2aa379:0x2f7,_0x4909c3:0x207,_0x3e182f:0x292,_0x3037f1:0x31,_0x43c4e7:0x1be,_0xf52d79:0x1a2,_0x77f1ea:0x4b,_0x1160c3:0x217,_0x4a0f60:0x151,_0x357a76:0x7f,_0x176805:0x285,_0x5b18d1:0x2d3,_0x1ae162:0x87,_0x299480:0x273,_0x2248b0:0x4d,_0x52bf30:0xaf,_0xe763d0:0x1c4,_0x2581b9:0x7e,_0x4a1bdd:0x1fd,_0x494482:0x81,_0x564bf0:0x5f,_0x41c31d:0x1bd,_0x896c63:0xd5,_0x1bf0c5:0x2fe,_0x429640:0x27d,_0x217c9a:0x146,_0x3b0a8c:0x233,_0x46092a:0x1ae,_0x4eaf09:0x245,_0x446c15:0x1ca,_0x25a139:0x25c,_0x4f6907:0x200,_0x4c8e22:0x229,_0x14339e:0x19c},_0x12107b={_0x88db48:0x1f6,_0x25121a:0x63,_0x1905e7:0x164,_0x4b86fc:0xb1,_0x15a65a:0x40},_0xbd2b6c={_0x2f563a:0x455},_0x6bf3cb={_0x584af3:0x1ec,_0x5b46c8:0x3ed};function _0x3c9dea(_0x152631,_0x4e4395,_0x42ea98,_0x56e2ab){return _0x38d42b(_0x152631-0x1bf,_0x152631-0x329,_0x4e4395,_0x56e2ab-0x1dc);}const _0x39f2f2=_0x4f1757[_0x592ff8(0x130,0x78,0x7f,_0x42bcb8._0x1b92a2)](_0x48138f[_0x3c9dea(_0x42bcb8._0x201614,_0x42bcb8._0x4c8d34,_0x42bcb8._0xb2c0cd,0x417)]??process[_0x592ff8(0x14d,0x202,0x133,0x1e0)]());function _0x592ff8(_0x7942e9,_0x5bffac,_0x35ac3c,_0x3f0f89){return _0x37c1da(_0x7942e9-_0x6bf3cb._0x584af3,_0x5bffac-0x4c,_0x5bffac,_0x3f0f89- -_0x6bf3cb._0x5b46c8);}const _0x2a8439=(_0x48138f[_0x592ff8(0xfc,-0x82,_0x42bcb8._0xa6cad2,0x1a)]??[])[_0x592ff8(_0x42bcb8._0x275779,0x3a8,_0x42bcb8._0x35a692,_0x42bcb8._0x101f32)](_0x5c7aeb=>_0x4f1757[_0x3c9dea(0x42c,0x3c1,0x462,0x46e)](_0x5c7aeb)),_0x4f55ad=_0x48138f['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x524af5=_0x48138f['stripAnsi']??!![],_0x481574=_0x48138f[_0x592ff8(0x4d,0x62,_0x42bcb8._0x1fdda2,0x179)]??_0x592ff8(_0x42bcb8._0x4e6943,_0x42bcb8._0x302b37,_0x42bcb8._0x1d6658,_0x42bcb8._0x537e5b);return defineTool({'name':_0x481574,'description':_0x48138f[_0x3c9dea(_0x42bcb8._0x780ccc,0x430,0x3f9,_0x42bcb8._0x513b92)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x3c9dea(_0x42bcb8._0x2ed003,0x3f1,_0x42bcb8._0x4bfb99,_0x42bcb8._0xf83fc8),'properties':{'command':{'type':_0x3c9dea(_0x42bcb8._0x263bc9,0x3fc,0x48d,0x2cd)},'cwd':{'type':_0x3c9dea(_0x42bcb8._0x263bc9,0x2e5,0x2c6,0x44b)},'timeoutMs':{'type':_0x3c9dea(_0x42bcb8._0xba1254,0x324,_0x42bcb8._0x4eb8af,0x3a5)},'ignoreOutput':{'type':'boolean'}},'required':[_0x592ff8(0x1c9,_0x42bcb8._0x1f617c,0x202,0x157)]},async *'execute'(_0x3cdbe2,_0x351888){const _0x52e9a3={_0x25ac3d:0x12,_0x26e37e:0x109,_0x46deb4:0x1fd,_0x10a988:0x346},_0x171591={_0x85ff7a:0x10c,_0x18c3e6:0x52,_0x22e59a:0x11f,_0x338840:0xcf},_0x1dc215={_0x1c839e:0x27,_0xa10aa2:0x107,_0x5d05c6:0x143},_0x567d50={_0x65ffc2:0x4d,_0x1ac0fc:0xb4},_0x1a79b1={_0x12dc91:0x5eb},_0x48172c={_0x4306e2:0x29e,_0x1def6e:0x436,_0x57fb60:0x373,_0x4d01d9:0x38d},_0x76a778={_0x17e45d:0x56a,_0x21aa93:0x11d},_0xfc4e0e={_0x541acc:0x3a,_0x11bead:0x3c};function _0xbd36b5(_0x476ab6,_0x1639d1,_0x2ffa7c,_0x3e12b4){return _0x592ff8(_0x476ab6-_0xfc4e0e._0x541acc,_0x3e12b4,_0x2ffa7c-_0xfc4e0e._0x11bead,_0x2ffa7c- -0x278);}const _0xb073b0=_0x3cdbe2[_0x2353d7(-_0x2ce309._0x41995a,-0x8b,-_0x2ce309._0x1392f7,-0x167)]??_0x4f55ad;if(!Number[_0xbd36b5(_0x2ce309._0xf6dcb1,-0x17b,-_0x2ce309._0x2d5627,_0x2ce309._0x51c05d)](_0xb073b0)||_0xb073b0<0x1)throw new ToolExecutionError(_0xbd36b5(0x42,-0xa8,-_0x2ce309._0x572e31,-_0x2ce309._0x505b58),{'command':_0x3cdbe2[_0xbd36b5(-0x224,-0x265,-_0x2ce309._0x7e3cc6,-0x213)]});throwIfAborted(_0x351888[_0x2353d7(-_0x2ce309._0x5b36cc,-_0x2ce309._0x558866,-_0x2ce309._0x29a08f,-_0x2ce309._0x1a53e4)]);const _0x37d5b9=resolveWorkingDirectory(_0x3cdbe2[_0x2353d7(-0x140,-0x1b,-_0x2ce309._0xa45f75,-_0x2ce309._0x779a0d)],_0x39f2f2,_0x2a8439),_0x5420c5=_0x3cdbe2[_0x2353d7(-0x2ce,-0x347,-0x1f8,-_0x2ce309._0x5d1966)]??![],_0x270f7e=resolveDefaultShell(_0x48138f[_0x2353d7(-0x209,-_0x2ce309._0x3f7aef,-_0x2ce309._0x4aa3e0,-_0x2ce309._0x153499)]),_0x330958=buildShellArgs(_0x3cdbe2['command'],_0x270f7e),_0x3fe3fe=_0x2bf8d7[_0xbd36b5(-0x26c,-_0x2ce309._0x347f96,-0x207,-0xcc)]()===_0xbd36b5(-_0x2ce309._0xb283d1,-_0x2ce309._0x38b581,-0x7c,-0x1c);let _0x4d8164;try{_0x4d8164=_0x3b0a63(_0x270f7e,_0x330958,{'cwd':_0x37d5b9,'env':{...process[_0xbd36b5(-_0x2ce309._0x4ab77d,-_0x2ce309._0x33d2eb,-_0x2ce309._0x446490,-_0x2ce309._0x5a7eab)],..._0x48138f[_0x2353d7(-_0x2ce309._0x4dba80,-0x328,-0xca,-0x135)]??{}},'stdio':_0x5420c5?[_0x2353d7(-_0x2ce309._0x36bc3e,-_0x2ce309._0x3213ac,-0x237,-_0x2ce309._0x13eab0),'ignore','ignore']:[_0xbd36b5(-_0x2ce309._0x1b5067,-_0x2ce309._0x54e445,-0x199,-0x97),_0xbd36b5(-_0x2ce309._0x475bdd,-_0x2ce309._0x559128,-0xa7,-_0x2ce309._0x481587),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x3fe3fe});}catch(_0x266a61){if(isErrnoException(_0x266a61)&&_0x266a61[_0xbd36b5(-0x10c,0x1d,-0x7e,-_0x2ce309._0x2371d9)]===_0x2353d7(-_0x2ce309._0x5af5b1,-_0x2ce309._0x4995d8,-_0x2ce309._0x441714,-_0x2ce309._0x568770))throw new ToolExecutionError(_0xbd36b5(-_0x2ce309._0x1f705c,-0x43,-0xb,_0x2ce309._0x310250)+_0x270f7e,{'command':_0x3cdbe2[_0xbd36b5(-0x143,-0x246,-_0x2ce309._0x7e3cc6,-0xf9)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});throw new ToolExecutionError(_0x266a61 instanceof Error?_0x266a61[_0xbd36b5(-0x48,-0x13c,-0x137,-_0x2ce309._0x489713)]:String(_0x266a61),{'command':_0x3cdbe2[_0x2353d7(-_0x2ce309._0x430bf5,-_0x2ce309._0x561746,-_0x2ce309._0x3b3c0f,-_0x2ce309._0x9e1d58)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});}const _0x58863e=[],_0x3862b0=[],_0x25695f=new StringDecoder(_0x2353d7(-0x162,-_0x2ce309._0x1e06c1,-0x182,-0x25f)),_0x2289a8=new StringDecoder('utf8');let _0xa41e6c,_0x59bc64=![],_0x27409f;const _0x3152fb=()=>{if(!_0xa41e6c)return;const _0x31198c=_0xa41e6c;_0xa41e6c=void 0x0,_0x31198c();},_0x1ebb29=async()=>{function _0x47f192(_0x1438a7,_0xd80155,_0x345c6b,_0x5bc646){return _0x2353d7(_0x5bc646-_0x76a778._0x17e45d,_0x1438a7,_0x345c6b-0x107,_0x5bc646-_0x76a778._0x21aa93);}if(_0x3862b0[_0x47f192(_0x48172c._0x4306e2,_0x48172c._0x1def6e,_0x48172c._0x57fb60,_0x48172c._0x4d01d9)]>0x0||_0x59bc64)return;await new Promise(_0x364983=>{_0xa41e6c=_0x364983;});},_0x3b482d=_0x4fbd72=>{function _0x4abd7a(_0x41980f,_0x5d49cb,_0x34c7f9,_0x375416){return _0x2353d7(_0x41980f-0x6a3,_0x375416,_0x34c7f9-0xa0,_0x375416-0x1ab);}appendChunk(_0x58863e,_0x3862b0,_0x25695f[_0x4abd7a(0x52b,_0xbd2b6c._0x2f563a,0x49e,0x586)](_0x4fbd72),_0x524af5,_0x3152fb);},_0x5da01d=_0x3e8118=>{appendChunk(_0x58863e,_0x3862b0,_0x2289a8['write'](_0x3e8118),_0x524af5,_0x3152fb);};_0x4d8164['stdout']?.['on']('data',_0x3b482d),_0x4d8164['stderr']?.['on'](_0x2353d7(-_0x2ce309._0x1b3f4b,-0x3c0,-_0x2ce309._0x28db6a,-0x2dd),_0x5da01d);let _0xe67c6e=![],_0x29b751;function _0x2353d7(_0x115f3a,_0x70ee00,_0x4537ee,_0x53a1c7){return _0x3c9dea(_0x115f3a- -_0x1a79b1._0x12dc91,_0x70ee00,_0x4537ee-0x1d9,_0x53a1c7-0x132);}const _0x5c1dc2=addAbortListener(_0x351888[_0xbd36b5(-_0x2ce309._0x57a5f6,-_0x2ce309._0x418cc7,-0x151,-0x262)],()=>{const _0x32c7af={_0x28179f:0x687,_0x320380:0x8e};_0x27409f=toAbortError(_0x351888[_0x3ccc4f(0x5e,0x177,-_0x1dc215._0x1c839e,0x1aa)][_0x3ccc4f(0x1cf,_0x1dc215._0xa10aa2,0x2ee,_0x1dc215._0x5d05c6)]),_0x59bc64=!![];function _0x3ccc4f(_0x3813a2,_0x31c4e6,_0xc90445,_0x38054a){return _0xbd36b5(_0x3813a2-_0x567d50._0x65ffc2,_0x31c4e6-_0x567d50._0x1ac0fc,_0x3813a2-0x1af,_0xc90445);}function _0xcc1ab0(_0x1a44d8,_0x46c344,_0x284ae4,_0x10b703){return _0x2353d7(_0x1a44d8-_0x32c7af._0x28179f,_0x46c344,_0x284ae4-0xcc,_0x10b703-_0x32c7af._0x320380);}_0x3152fb();try{killProcessGroup(_0x4d8164,_0x3fe3fe);}catch{}});try{const _0x3c6df7=new Promise((_0x3a604f,_0x30eed5)=>{const _0x3040f0={_0x102432:0x175},_0x282599={_0x51ff8a:0x2},_0x344439={_0x23f857:0x593,_0x1326c2:0x5f3,_0x5198e0:0x57b},_0x14515b={_0x1a1dc4:0xc9},_0x4b21cf={_0x5edf5e:0x11b};function _0x480cfe(_0x575cb0,_0x4a8b63,_0x353efb,_0x2de247){return _0x2353d7(_0x353efb-0x114,_0x575cb0,_0x353efb-_0x4b21cf._0x5edf5e,_0x2de247-0x1a9);}const _0x22e34a=()=>{function _0x3043db(_0x304cc7,_0xe25850,_0x20c0d7,_0x5dcd96){return _0xa38c(_0x20c0d7-0x2f9,_0xe25850);}_0x29b751&&(clearTimeout(_0x29b751),_0x29b751=void 0x0);function _0x330adf(_0x27449f,_0x6b3e5b,_0x272e9d,_0x23a438){return _0xa38c(_0x27449f- -_0x14515b._0x1a1dc4,_0x6b3e5b);}_0x4d8164[_0x3043db(_0x344439._0x23f857,0x64f,0x57b,0x546)](_0x3043db(0x620,0x560,_0x344439._0x1326c2,0x6ca),_0x5909fe),_0x4d8164[_0x3043db(0x448,0x62a,_0x344439._0x5198e0,0x635)](_0x330adf(0xb6,0x11f,0xd0,0x1c6),_0x4deeb4);},_0x5909fe=_0x255176=>{_0x59bc64=!![],_0x3152fb(),_0x22e34a(),_0x30eed5(_0x27409f??_0x255176);},_0x4deeb4=(_0x4c342a,_0x5582dd)=>{const _0x1ac319={_0x355338:0x304},_0x1c8753={_0xcb1a9b:0x38b};_0xe67c6e=!![],appendChunk(_0x58863e,_0x3862b0,_0x25695f[_0x2b9297(0x10,-_0x171591._0x85ff7a,0x36,-_0x171591._0x18c3e6)](),_0x524af5,_0x3152fb);function _0x5b9fbd(_0x3e5e47,_0x4b7908,_0x100bd6,_0x32cf34){return _0xa38c(_0x4b7908- -_0x1c8753._0xcb1a9b,_0x100bd6);}appendChunk(_0x58863e,_0x3862b0,_0x2289a8[_0x5b9fbd(-_0x171591._0x22e59a,-0x77,_0x171591._0x338840,0xd4)](),_0x524af5,_0x3152fb),_0x59bc64=!![];function _0x2b9297(_0x1db159,_0x28fc19,_0x3c0bf7,_0x4d2acf){return _0xa38c(_0x1db159- -_0x1ac319._0x355338,_0x4d2acf);}_0x3152fb(),_0x22e34a();if(_0x27409f){_0x30eed5(_0x27409f);return;}_0x3a604f({'code':_0x4c342a,'signal':_0x5582dd});};_0x29b751=setTimeout(()=>{_0x59bc64=!![];function _0x2f1a4d(_0x19f8ca,_0x18e242,_0x2fdd27,_0x1d5ce6){return _0xa38c(_0x2fdd27-0x2a,_0x19f8ca);}_0x3152fb();function _0xd14dcb(_0x13656a,_0x25faab,_0x511856,_0xe0fcac){return _0xa38c(_0x511856- -_0x282599._0x51ff8a,_0xe0fcac);}_0x22e34a();try{killProcessGroup(_0x4d8164,_0x3fe3fe);}catch{}_0x30eed5(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0xb073b0+_0xd14dcb(-0x3e,-_0x52e9a3._0x25ac3d,_0x52e9a3._0x26e37e,0x6e),{'command':_0x3cdbe2[_0xd14dcb(0x232,0x2d6,_0x52e9a3._0x46deb4,_0x52e9a3._0x10a988)],'cwd':_0x37d5b9,'shellPath':_0x270f7e,'timeoutMs':_0xb073b0,'timedOut':!![]}));},_0xb073b0);function _0xc9a140(_0x42fbcf,_0x4720f5,_0x402ce0,_0x2dc027){return _0xbd36b5(_0x42fbcf-0x1c1,_0x4720f5-0x1cd,_0x402ce0-_0x3040f0._0x102432,_0x2dc027);}_0x4d8164[_0x480cfe(-0x1eb,-_0x12107b._0x88db48,-0xc2,_0x12107b._0x25121a)]('error',_0x5909fe),_0x4d8164[_0x480cfe(-_0x12107b._0x1905e7,-_0x12107b._0x4b86fc,-0xc2,_0x12107b._0x15a65a)]('close',_0x4deeb4);});while(_0x3862b0[_0xbd36b5(-_0x2ce309._0x2622ba,-0x24b,-_0x2ce309._0x334b1c,-0xfd)]>0x0||!_0x59bc64){if(_0x3862b0[_0x2353d7(-_0x2ce309._0x35b2c9,-_0x2ce309._0x2aa379,-0x1db,-0x2fc)]===0x0){await _0x1ebb29();continue;}const _0x7c63a4=_0x3862b0[_0x2353d7(-_0x2ce309._0x4909c3,-0x1a5,-0x1bb,-_0x2ce309._0x3e182f)]();_0x7c63a4!==void 0x0&&(yield _0x7c63a4);}const _0xe976fe=await _0x3c6df7,_0x2f8bab=_0x5420c5?_0x2353d7(-0x10d,-0x54,-0xf0,-0x24b)+(_0xe976fe['code']??0x0):_0x58863e[_0xbd36b5(-0xbf,0x97,-_0x2ce309._0x3037f1,0xfa)](''),_0x307669={'command':_0x3cdbe2['command'],'cwd':_0x37d5b9,'exitCode':_0xe976fe[_0x2353d7(-0x126,-_0x2ce309._0x43c4e7,-_0x2ce309._0xf52d79,-_0x2ce309._0x77f1ea)]??0x0,'signal':_0xe976fe[_0xbd36b5(-0xf3,-_0x2ce309._0x1160c3,-_0x2ce309._0x4a0f60,-0x296)],'ignoreOutput':_0x5420c5,'shellPath':_0x270f7e,'timeoutMs':_0xb073b0};if(_0xe976fe[_0xbd36b5(-0x18d,0x8c,-0x7e,-_0x2ce309._0x357a76)]!==0x0)throw new ToolExecutionError(_0x2f8bab||_0x2353d7(-0x2d0,-0x26e,-_0x2ce309._0x176805,-_0x2ce309._0x5b18d1)+(_0xe976fe[_0x2353d7(-0x126,-0x1c1,-_0x2ce309._0x1ae162,-_0x2ce309._0x299480)]??0x0),_0x307669);return createToolOutput(_0x2f8bab,_0x307669);}catch(_0x1488f5){while(_0x3862b0[_0xbd36b5(-0x88,-0x59,-0x135,-_0x2ce309._0x2248b0)]>0x0){const _0x5ebd03=_0x3862b0['shift']();_0x5ebd03!==void 0x0&&(yield _0x5ebd03);}if(_0x1488f5 instanceof ToolExecutionError)throw _0x1488f5;if(_0x27409f)throw _0x27409f;if(isErrnoException(_0x1488f5)&&_0x1488f5[_0xbd36b5(_0x2ce309._0x52bf30,-_0x2ce309._0xe763d0,-_0x2ce309._0x2581b9,-0x11a)]===_0xbd36b5(-0x1a8,-_0x2ce309._0x4a1bdd,-0x1e2,-0x2a3))throw new ToolExecutionError(_0xbd36b5(_0x2ce309._0x494482,0xb4,-0xb,_0x2ce309._0x564bf0)+_0x270f7e,{'command':_0x3cdbe2[_0xbd36b5(-0x14c,-_0x2ce309._0x41c31d,-0x121,-_0x2ce309._0x896c63)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});throw new ToolExecutionError(_0x1488f5 instanceof Error?_0x1488f5[_0x2353d7(-0x1df,-_0x2ce309._0x1bf0c5,-0x1f3,-0x300)]:String(_0x1488f5),{'command':_0x3cdbe2[_0x2353d7(-_0x2ce309._0x430bf5,-_0x2ce309._0x429640,-0x12d,-0x2a2)],'cwd':_0x37d5b9,'shellPath':_0x270f7e});}finally{_0x29b751&&clearTimeout(_0x29b751);_0x5c1dc2(),_0x4d8164['stdout']?.[_0x2353d7(-_0x2ce309._0x217c9a,-0x51,-_0x2ce309._0x3b0a8c,0x0)](_0xbd36b5(-0x31a,-_0x2ce309._0x46092a,-_0x2ce309._0x4eaf09,-_0x2ce309._0x446c15),_0x3b482d),_0x4d8164[_0x2353d7(-_0x2ce309._0x25a139,-0x218,-_0x2ce309._0x4f6907,-_0x2ce309._0x4c8e22)]?.['off'](_0xbd36b5(-0x23b,-_0x2ce309._0x3b3c0f,-_0x2ce309._0x4eaf09,-0xf9),_0x5da01d);if(!_0xe67c6e&&_0x4d8164[_0xbd36b5(-_0x2ce309._0x14339e,-0x2ae,-0x211,-_0x2ce309._0x4a0f60)]&&!_0x4d8164['killed'])try{killProcessGroup(_0x4d8164,_0x3fe3fe);}catch{}}}});}function createShellExecTool(_0x1ce1b0={}){return createBashTool(_0x1ce1b0);}import{readdir,readFile as _0xf2e019}from'fs/promises';import{extname,join as _0x55e822}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x16f190,join,relative as _0x2ef98c,resolve as _0x4ae6af}from'path';import{readdir as _0x242fe9,readFile as _0x4de07e}from'fs/promises';import{join as _0x24bcf1,relative as _0x489c65,sep}from'path';import{delimiter}from'path';function _0x38d42b(_0x5d8cc9,_0x470ef1,_0x180f05,_0x2b5f0c){const _0x3ce953={_0x632319:0x106};return _0xa38c(_0x470ef1- -_0x3ce953._0x632319,_0x180f05);}import{mkdir as _0x4e69a0,rm,stat as _0x4504f5,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x36aed2}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4f7a6b,rename,writeFile as _0x3a72a9}from'fs/promises';import{homedir as _0x4c02e6}from'os';import{dirname as _0x1e66f6,isAbsolute as _0x4dbf93,join as _0x33b93e,resolve as _0x3896b5}from'path';import{parse as _0x221ba8,stringify as _0x826243}from'yaml';import{cp,mkdir as _0x26af87,readFile as _0x428883,rm as _0x2db0df,writeFile as _0x31dbcc}from'fs/promises';import{homedir}from'os';import{join as _0x49202f}from'path';import{parse as _0x380e96,stringify as _0x50bf1c}from'yaml';import{z}from'zod';import{readdir as _0x2db8b2,readFile as _0x23a028}from'fs/promises';import{join as _0x5962e9}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x5b2306){const _0x1775d1={_0x58c46e:0x352,_0x592561:0x3ec,_0x926bb0:0x363,_0x5572c5:0x2fa,_0x254473:0x46f,_0x2351c5:0x14f,_0x30035e:0x378,_0x9d935c:0x225},_0x5dfa2e={_0x17ea41:0x1cd},_0x471fcc=[];let _0x24d0ba='';function _0x1dd2b8(_0x46c29d,_0x47afac,_0x31b6d9,_0x51d0f3){return _0x37c1da(_0x46c29d-0x1dd,_0x47afac-0xeb,_0x51d0f3,_0x46c29d- -_0x5dfa2e._0x17ea41);}let _0x2bbacd=0x0;while(_0x2bbacd<_0x5b2306[_0x1dd2b8(0x363,0x38d,_0x1775d1._0x58c46e,_0x1775d1._0x592561)]){const _0x3a0cc1=_0x5b2306[_0x2bbacd];if(_0x3a0cc1==='\x5c'&&_0x2bbacd+0x1<_0x5b2306[_0x1dd2b8(_0x1775d1._0x926bb0,0x263,0x224,0x33b)])_0x24d0ba+=_0x5b2306[_0x2bbacd+0x1],_0x2bbacd+=0x2;else{if(_0x3a0cc1==='\x22'||_0x3a0cc1==='\x27'){const _0x135eab=_0x3a0cc1;_0x2bbacd++;while(_0x2bbacd<_0x5b2306[_0x1dd2b8(0x363,0x49d,_0x1775d1._0x5572c5,_0x1775d1._0x254473)]&&_0x5b2306[_0x2bbacd]!==_0x135eab){_0x5b2306[_0x2bbacd]==='\x5c'&&_0x2bbacd+0x1<_0x5b2306['length']?(_0x24d0ba+=_0x5b2306[_0x2bbacd+0x1],_0x2bbacd+=0x2):(_0x24d0ba+=_0x5b2306[_0x2bbacd],_0x2bbacd++);}_0x2bbacd++;}else _0x3a0cc1!==void 0x0&&/\s/[_0x1dd2b8(0x275,_0x1775d1._0x2351c5,_0x1775d1._0x30035e,0x2d8)](_0x3a0cc1)?(_0x24d0ba&&(_0x471fcc[_0x4a6dc0(-0x13e,-0x80,-0x1ce,-_0x1775d1._0x9d935c)](_0x24d0ba),_0x24d0ba=''),_0x2bbacd++):(_0x24d0ba+=_0x3a0cc1,_0x2bbacd++);}}if(_0x24d0ba)_0x471fcc['push'](_0x24d0ba);function _0x4a6dc0(_0x2ee3c0,_0x1b492d,_0x2f8508,_0xa0e420){return _0x38d42b(_0x2ee3c0-0x106,_0x2ee3c0- -0xec,_0x2f8508,_0xa0e420-0x71);}return _0x471fcc;}function renderCommandInstructions(_0x19110e){const _0x32d14b={_0xdaa197:0x1d,_0x12c357:0xbe,_0xa528bd:0x88,_0x52a582:0x3da,_0x3c0acc:0x4b5,_0x1b8a4c:0x2d5,_0x5f3532:0x125,_0x3b3151:0x11e,_0xbd1b32:0x1cd,_0x5086ac:0x193,_0x343a7d:0x9c,_0x22d41c:0x4e7,_0x4fc973:0x573,_0x24399e:0x4ba,_0x3f2c08:0x3da,_0x2ce33:0x36c,_0x454e00:0x550,_0x4b9965:0x5cb,_0x419acf:0x4db},_0x1fb6c4={_0x180abc:0x2ad},_0x41e383={_0x5718c5:0x4c0,_0x12573c:0x5d2},_0x4a081b={_0x388709:0x142,_0x4e325e:0x128},_0x4b348e={_0x873546:0x15e,_0x7fcb35:0x402};let _0x5d45c0=_0x19110e[_0x41fbe6(-_0x32d14b._0xdaa197,-_0x32d14b._0x12c357,-0x1,-_0x32d14b._0xa528bd)],_0x32d2c0=![];const _0x2ce59f=tokenizeCommandArguments(_0x19110e['argumentsText']);function _0x1dfaca(_0xd65215,_0x5c2e59,_0x4ad78e,_0xaf554){return _0x38d42b(_0xd65215-_0x4b348e._0x873546,_0x5c2e59-_0x4b348e._0x7fcb35,_0xaf554,_0xaf554-0x18e);}_0x5d45c0=_0x5d45c0[_0x1dfaca(0x2fc,_0x32d14b._0x52a582,0x43b,_0x32d14b._0x3c0acc)](/\$ARGUMENTS\[(\d+)\]/g,(_0xa66cff,_0x2066cf)=>{return _0x32d2c0=!![],_0x2ce59f[Number(_0x2066cf)]??'';}),_0x5d45c0=_0x5d45c0[_0x41fbe6(-0x1f7,-_0x32d14b._0x1b8a4c,-0x402,-0x261)](/\$ARGUMENTS\b/g,()=>{function _0xf7f06a(_0x18711d,_0x25c35f,_0x1a0aab,_0x158468){return _0x41fbe6(_0x18711d-_0x4a081b._0x388709,_0x25c35f-0x721,_0x1a0aab-_0x4a081b._0x4e325e,_0x1a0aab);}return _0x32d2c0=!![],_0x19110e[_0xf7f06a(_0x41e383._0x5718c5,_0x41e383._0x12573c,0x5f1,0x6d9)];});if(_0x19110e[_0x41fbe6(-_0x32d14b._0x5f3532,-0x13b,-_0x32d14b._0x3b3151,-_0x32d14b._0xbd1b32)]&&_0x19110e['argumentNames']['length']>0x0)for(let _0xe47237=0x0;_0xe47237<_0x19110e[_0x41fbe6(-0x1d1,-0x13b,-_0x32d14b._0x5086ac,-_0x32d14b._0x343a7d)][_0x1dfaca(0x40a,_0x32d14b._0x22d41c,0x3f7,_0x32d14b._0x4fc973)];_0xe47237++){const _0x1afc44=_0x19110e[_0x1dfaca(0x690,0x574,0x5ca,0x5bd)][_0xe47237];if(_0x1afc44){const _0x30061d=new RegExp('\x5c$'+_0x1afc44+'\x5cb','g');_0x5d45c0=_0x5d45c0['replace'](_0x30061d,()=>{return _0x32d2c0=!![],_0x2ce59f[_0xe47237]??'';});}}function _0x41fbe6(_0x4c7fd3,_0x28bfc6,_0x1e665c,_0x515349){return _0x38d42b(_0x4c7fd3-0x132,_0x28bfc6- -_0x1fb6c4._0x180abc,_0x515349,_0x515349-0x145);}return _0x5d45c0=_0x5d45c0[_0x1dfaca(_0x32d14b._0x24399e,_0x32d14b._0x3f2c08,_0x32d14b._0x2ce33,0x41d)](/\$(\d+)\b/g,(_0x42e586,_0x589087)=>{return _0x32d2c0=!![],_0x2ce59f[Number(_0x589087)]??'';}),!_0x32d2c0&&_0x19110e[_0x1dfaca(0x59e,0x560,0x53c,0x5a1)]['trim']()&&(_0x5d45c0=_0x5d45c0+'\x0a\x0aARGUMENTS:\x20'+_0x19110e[_0x1dfaca(_0x32d14b._0x454e00,0x560,_0x32d14b._0x4b9965,_0x32d14b._0x419acf)]),_0x5d45c0;}var chatModelAuthSchemeSchema=z['enum']([_0x38d42b(0x100,0x67,0x43,-0xca),'x-api-key']),apiKeyAuthSchema=z[_0x38d42b(0x125,0xe,-0x95,0x35)]({'type':z['literal'](_0x37c1da(0x6b3,0x567,0x63f,0x64d)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x38d42b(0x1af,0xed,-0x33,0x9e)]()})[_0x38d42b(0x193,0xd4,0x21c,0x14c)](),oauthAuthSchema=z[_0x38d42b(0x6c,0xe,0x8f,0x22)]({'type':z[_0x37c1da(0x621,0x56f,0x589,0x5c8)](_0x38d42b(-0x82,0xb3,0x8b,0x9c)),'access':z[_0x38d42b(0xd7,0x82,-0x2e,-0x85)](),'refresh':z['string'](),'expires':z[_0x37c1da(0x3c6,0x3c1,0x547,0x422)]()['optional'](),'authScheme':chatModelAuthSchemeSchema[_0x38d42b(-0x3a,0xed,0xcc,-0xc)]()})[_0x37c1da(0x512,0x5ba,0x62d,0x51f)](),authMethodSchema=z[_0x37c1da(0x377,0x2d6,0x541,0x41a)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x38d42b(0x10b,0xe,0x9,0xbe)]({'id':z[_0x37c1da(0x45e,0x56b,0x3b1,0x4cd)](),'name':z[_0x37c1da(0x4d0,0x600,0x4c3,0x4cd)]()[_0x38d42b(0x24,0xed,0x155,-0x41)]()})['passthrough'](),modelConfigSchema=z[_0x38d42b(-0x159,-0x31,-0xc0,-0x2f)]([z[_0x38d42b(0xe2,0x17d,0xb3,0x49)](![]),z[_0x38d42b(0x24e,0x17d,0x27b,0x211)](!![]),z[_0x37c1da(0x527,0x50d,0x3e1,0x4cd)](),z[_0x38d42b(-0x103,-0x10,-0xbd,-0x2d)](z[_0x37c1da(0x478,0x5dd,0x5ef,0x4cd)]()),z[_0x37c1da(0x47f,0x33d,0x312,0x43b)](modelDefinitionSchema)]),chatModelSurfaceSchema=z['enum']([_0x38d42b(0xf2,-0x23,0x32,-0xe0),_0x38d42b(0x15b,0x118,0x234,0xb6),_0x37c1da(0x4cf,0x5f0,0x584,0x5dc),_0x37c1da(0x446,0x608,0x561,0x527)]),providerConfigSchema=z['object']({'apiKey':z['string']()[_0x37c1da(0x437,0x534,0x630,0x538)](),'token':z[_0x37c1da(0x4aa,0x4cf,0x5c6,0x4cd)]()['optional'](),'defaultModel':z['string']()['optional'](),'smallModel':z[_0x38d42b(0xd,0x82,-0x8,0x180)]()[_0x37c1da(0x422,0x643,0x664,0x538)](),'currentAuth':z['string']()[_0x37c1da(0x580,0x54c,0x624,0x538)](),'auth':z['array'](authMethodSchema)[_0x37c1da(0x609,0x659,0x4ff,0x538)](),'surface':chatModelSurfaceSchema['optional'](),'baseUrl':z[_0x37c1da(0x3ac,0x51d,0x4e1,0x4cd)]()[_0x37c1da(0x4f5,0x5f4,0x54f,0x538)](),'models':modelConfigSchema[_0x38d42b(-0x4c,0xed,0xc8,0x16d)](),'customHeaders':z[_0x38d42b(0x12b,0x1f9,0x334,0x218)](z[_0x38d42b(-0x8a,0x82,0x60,0x5e)](),z[_0x37c1da(0x575,0x388,0x4b9,0x4cd)]())[_0x38d42b(0xbe,0xed,0x11f,0x78)]()})['passthrough'](),mcpServerConfigSchema=z[_0x38d42b(0x10a,0xe,-0x11b,-0xa5)]({'command':z['string']()['optional'](),'args':z[_0x38d42b(-0x8e,-0x10,0x96,-0x14)](z[_0x37c1da(0x495,0x384,0x542,0x4cd)]())[_0x38d42b(0xad,0xed,0x44,0x22b)](),'env':z[_0x37c1da(0x5a4,0x57b,0x707,0x644)](z[_0x37c1da(0x468,0x53a,0x487,0x4cd)](),z[_0x38d42b(-0xc8,0x82,-0x9f,-0x30)]())[_0x37c1da(0x655,0x433,0x5d7,0x538)](),'transport':z[_0x37c1da(0x628,0x52c,0x597,0x532)](['stdio','http'])[_0x38d42b(0x116,0xed,0x21d,0x19f)](),'url':z['string']()[_0x37c1da(0x4dd,0x641,0x668,0x538)](),'headers':z['record'](z[_0x38d42b(-0xcb,0x82,-0x7c,0xfc)](),z[_0x37c1da(0x585,0x561,0x463,0x4cd)]())['optional'](),'prefix':z['string']()['optional'](),'timeoutMs':z[_0x38d42b(0x6f,-0x29,-0x5d,0x104)]()[_0x37c1da(0x565,0x53d,0x4ae,0x538)](),'enabled':z[_0x37c1da(0x6fc,0x661,0x5ed,0x62a)]()[_0x37c1da(0x593,0x4db,0x516,0x538)](),'auth':z[_0x37c1da(0x455,0x4a7,0x4cd,0x459)]({'type':z[_0x37c1da(0x43e,0x5c6,0x439,0x532)](['none',_0x37c1da(0x571,0x582,0x485,0x4b2),_0x38d42b(0x18b,0xb3,-0xd,0x126)]),'token':z[_0x37c1da(0x5d3,0x3c0,0x4c7,0x4cd)]()['optional'](),'oauth':z[_0x38d42b(0x109,0xe,-0x4f,0x27)]({'clientId':z['string']()[_0x37c1da(0x49d,0x62d,0x604,0x538)](),'clientMetadataUrl':z[_0x37c1da(0x5bb,0x469,0x47d,0x4cd)]()[_0x37c1da(0x5ca,0x614,0x44b,0x538)](),'authorizationServer':z['string']()['optional'](),'scopes':z['array'](z[_0x38d42b(0xda,0x82,0x13e,0x197)]())[_0x38d42b(0x1a8,0xed,0x99,0x173)](),'tokenStorageKey':z[_0x38d42b(-0x28,0x82,0x97,0x153)]()['optional']()})[_0x38d42b(0x12c,0xd4,0x1a5,-0x52)]()[_0x37c1da(0x49b,0x651,0x62d,0x538)]()})[_0x38d42b(0x25,0xd4,0x1c7,0x83)]()['optional']()})[_0x38d42b(0x107,0xd4,0x120,0x104)](),mcpSettingsSchema=z[_0x38d42b(-0x71,0xe,0x12,0xe8)]({'servers':z[_0x38d42b(0x32c,0x1f9,0x307,0xc9)](z[_0x38d42b(0xd1,0x82,0x14e,0xcf)](),mcpServerConfigSchema)[_0x37c1da(0x5ae,0x3f6,0x586,0x538)](),'allowedTools':z[_0x37c1da(0x6ee,0x516,0x60a,0x644)](z[_0x38d42b(0xb2,0x82,-0xc5,0x9c)](),z['record'](z[_0x38d42b(0x19,0x82,0x6c,0x7f)](),z[_0x37c1da(0x6aa,0x55b,0x6ef,0x62a)]()))[_0x37c1da(0x5fd,0x5fd,0x46c,0x538)](),'defaultTimeoutMs':z[_0x38d42b(0xe6,-0x29,0x2d,-0x15d)]()[_0x37c1da(0x47b,0x531,0x477,0x538)]()})['passthrough'](),skillsSettingsSchema=z[_0x37c1da(0x3de,0x464,0x33e,0x459)]({'enabled':z[_0x37c1da(0x648,0x725,0x5dc,0x62a)]()['optional'](),'includeDefaults':z['boolean']()['optional'](),'directories':z[_0x37c1da(0x4c9,0x312,0x39a,0x43b)](z['string']())[_0x37c1da(0x583,0x5ee,0x57e,0x538)](),'exclude':z[_0x38d42b(-0xe5,-0x10,-0x9e,-0x129)](z['string']())[_0x37c1da(0x533,0x65a,0x624,0x538)]()})[_0x37c1da(0x3f5,0x527,0x4a9,0x51f)](),commandsSettingsSchema=z[_0x37c1da(0x4b3,0x387,0x380,0x459)]({'enabled':z[_0x37c1da(0x4f0,0x708,0x6e4,0x62a)]()[_0x37c1da(0x662,0x617,0x57d,0x538)](),'directories':z[_0x37c1da(0x421,0x49d,0x4f8,0x43b)](z['string']())[_0x38d42b(0xdd,0xed,0x74,0x7c)]()})[_0x38d42b(0x21c,0xd4,0xf4,-0x30)](),agentsSettingsSchema=z[_0x37c1da(0x3da,0x32a,0x399,0x459)]({'enabled':z[_0x38d42b(0xa2,0x1df,0x2bf,0x24a)]()[_0x38d42b(0x4,0xed,-0x9,0xd5)](),'includeDefaults':z[_0x37c1da(0x6c2,0x720,0x5a2,0x62a)]()[_0x38d42b(0x8c,0xed,0x20f,0x2a)](),'directories':z[_0x38d42b(-0x6c,-0x10,-0xee,-0x102)](z[_0x38d42b(0x184,0x82,0x86,0x78)]())[_0x37c1da(0x408,0x461,0x55a,0x538)]()})[_0x37c1da(0x5bd,0x442,0x40c,0x51f)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x37c1da(0x45e,0x5e7,0x4da,0x532)]([_0x38d42b(0x269,0x16d,0x28a,0x21b),'dark',_0x37c1da(0x533,0x4a5,0x4db,0x411)])[_0x38d42b(0x37,0xed,0x1d8,-0x43)](),'colorLevel':z[_0x37c1da(0x56f,0x618,0x44e,0x532)](['auto',_0x38d42b(0x71,-0x33,0xa2,-0x2),_0x38d42b(-0x1c,0x91,0x103,0x13f),_0x37c1da(0x412,0x3c8,0x43c,0x480),_0x38d42b(0x179,0x185,0xe6,0x288)])[_0x38d42b(0xaf,0xed,0x1de,0x3b)](),'backgrounds':z[_0x37c1da(0x61e,0x458,0x45a,0x532)](['auto','on',_0x38d42b(0x199,0x17c,0x16f,0x2b5)])[_0x38d42b(0x10f,0xed,0x22b,0x99)](),'messageStyle':z['enum']([_0x37c1da(0x4ec,0x518,0x5ab,0x471),_0x38d42b(0x8f,-0xd,0x97,-0x152)])[_0x37c1da(0x560,0x3f1,0x665,0x538)]()})[_0x38d42b(0x1d1,0xd4,0x11c,0xa7)](),statuslineSegmentSchema=z[_0x37c1da(0x409,0x4f6,0x600,0x532)]([_0x38d42b(0x24,0x29,-0xdd,0x1),'session',_0x38d42b(0x296,0x1ab,0x106,0x11e),_0x38d42b(-0xbc,0x22,0x155,0x120),_0x38d42b(0x1e7,0x10d,0x204,0x95),'context',_0x37c1da(0x40c,0x5b0,0x4bc,0x478),'requests','tools',_0x37c1da(0x572,0x5a6,0x4a6,0x48f),'lsp',_0x37c1da(0x57c,0x70d,0x6bd,0x5c3),_0x38d42b(0x11d,-0x5,-0x126,-0x58),'memory',_0x38d42b(0x2a1,0x1bf,0x254,0x233)]),statuslineItemSchema=z['union']([statuslineSegmentSchema,z[_0x38d42b(0x207,0x17d,0x20f,0x1f6)]('|')]),statuslineRowSchema=z[_0x37c1da(0x497,0x3e0,0x324,0x43b)](statuslineItemSchema),statuslineConfigSchema=z[_0x38d42b(0xd6,0xe,0xb4,-0xa)]({'rows':z[_0x37c1da(0x64b,0x743,0x75b,0x614)]([statuslineRowSchema,statuslineRowSchema])[_0x37c1da(0x46e,0x41a,0x5f7,0x538)]()})[_0x37c1da(0x5fe,0x403,0x54a,0x51f)](),memorySettingsSchema=z[_0x37c1da(0x559,0x4fb,0x50e,0x459)]({'version':z[_0x37c1da(0x563,0x695,0x566,0x5c8)](0x2)[_0x38d42b(0x1d2,0xed,0x10e,0xcc)](),'retrieval':z[_0x38d42b(-0x11b,0xe,0xb1,0x82)]({'engine':z[_0x37c1da(0x6b4,0x541,0x6ff,0x5c8)]('bm25')[_0x38d42b(0x202,0xed,0x1a6,-0x5a)](),'candidateLimit':z[_0x37c1da(0x54e,0x4d2,0x47e,0x422)]()['optional'](),'activeCandidateLimit':z['number']()['optional'](),'activeEnabled':z[_0x37c1da(0x723,0x509,0x58f,0x62a)]()[_0x37c1da(0x4f7,0x401,0x545,0x538)](),'maxQueriesPerTurn':z[_0x38d42b(0x10c,-0x29,0x37,0x60)]()[_0x38d42b(0x8,0xed,0x201,0xd1)](),'coreInjectTokenBudget':z[_0x37c1da(0x33e,0x31e,0x39e,0x422)]()[_0x38d42b(0x15b,0xed,0x81,0x238)](),'injectTokenBudget':z['number']()[_0x38d42b(0xd2,0xed,0xa3,0x114)](),'minScore':z['number']()[_0x37c1da(0x4d3,0x4b7,0x4de,0x538)](),'freshnessHalfLifeDays':z[_0x37c1da(0x560,0x342,0x539,0x422)]()[_0x38d42b(0x16,0xed,0x229,-0x47)]()})[_0x38d42b(0x155,0xd4,0x60,-0x2b)]()[_0x37c1da(0x5ff,0x46c,0x5b0,0x538)](),'extraction':z[_0x37c1da(0x422,0x344,0x32e,0x459)]({'enabled':z[_0x38d42b(0x106,0x1df,0x210,0x20a)]()[_0x37c1da(0x646,0x42b,0x4fc,0x538)](),'provider':z[_0x38d42b(-0x3b,0x82,-0x4e,0xc7)]()[_0x38d42b(0x1b3,0xed,0x1d9,0x80)](),'model':z[_0x37c1da(0x47d,0x589,0x517,0x4cd)]()[_0x38d42b(0x14b,0xed,0x1a2,0x18d)](),'sensitiveFilter':z[_0x38d42b(0x170,0x1df,0x98,0x103)]()[_0x38d42b(0x7b,0xed,-0xe,0xba)]()})[_0x38d42b(0x10b,0xd4,-0x5b,0x18)]()[_0x38d42b(0x132,0xed,-0x1c,0x1c5)](),'index':z[_0x38d42b(-0x104,0xe,0x21,-0x2d)]({'persisted':z[_0x37c1da(0x6b8,0x733,0x61d,0x62a)]()['optional'](),'flushIntervalMs':z[_0x38d42b(-0x1b,-0x29,-0xb7,-0x132)]()[_0x38d42b(-0x3e,0xed,0xaa,0x21c)]()})['passthrough']()['optional'](),'enabled':z[_0x38d42b(0x1c4,0x1df,0xf3,0x19c)]()[_0x38d42b(-0x3d,0xed,0x217,0xf9)](),'saveTool':z['boolean']()[_0x38d42b(0x200,0xed,-0x7,0x27)](),'model':z[_0x37c1da(0x4bb,0x5be,0x4b3,0x4cd)]()[_0x38d42b(-0x31,0xed,-0xc,0xac)](),'provider':z['string']()['optional'](),'maxInjectionTokens':z[_0x37c1da(0x52d,0x30c,0x3de,0x422)]()[_0x38d42b(0xa4,0xed,0x113,0x1b1)](),'backgroundExtraction':z[_0x37c1da(0x587,0x689,0x730,0x62a)]()[_0x38d42b(0x207,0xed,0x1fb,0x1c5)]()})[_0x37c1da(0x442,0x423,0x45d,0x51f)](),recentModelSchema=z[_0x38d42b(-0x9e,0xe,-0xb2,0xe5)]({'provider':z[_0x38d42b(0x55,0x82,0x11e,0x171)](),'model':z[_0x37c1da(0x3bf,0x4f9,0x3d2,0x4cd)](),'usedAt':z[_0x37c1da(0x45d,0x4ec,0x44c,0x422)]()})['passthrough'](),lspServerEntrySchema=z[_0x38d42b(0x158,0xe,0x13c,0xcc)]({'disabled':z['boolean']()[_0x37c1da(0x657,0x631,0x668,0x538)](),'command':z[_0x37c1da(0x3a6,0x53c,0x3c6,0x4cd)]()['optional'](),'args':z[_0x37c1da(0x4dc,0x56c,0x328,0x43b)](z[_0x38d42b(0xe,0x82,0x108,0x147)]())[_0x38d42b(0xd1,0xed,0x99,0x9f)](),'rootMarkers':z[_0x38d42b(0x10f,-0x10,-0x31,-0x9e)](z[_0x38d42b(0x80,0x82,0x18f,0x1a9)]())['optional']()})[_0x38d42b(0x1a4,0xd4,0x123,-0x72)](),lspConfigSchema=z['object']({'enabled':z[_0x37c1da(0x5f0,0x57c,0x5df,0x62a)]()[_0x38d42b(-0x34,0xed,0x6b,-0x5f)](),'servers':z[_0x37c1da(0x524,0x733,0x59f,0x644)](z[_0x37c1da(0x4dd,0x579,0x5ae,0x4cd)](),lspServerEntrySchema)[_0x38d42b(0x180,0xed,0x16,0x145)]()})[_0x37c1da(0x451,0x597,0x3ea,0x51f)](),commandHookConfigSchema=z[_0x38d42b(0x21,0xe,0x120,-0x37)]({'type':z[_0x37c1da(0x53e,0x62b,0x646,0x5c8)](_0x37c1da(0x408,0x4dd,0x57f,0x544)),'command':z['string'](),'timeout':z[_0x38d42b(-0xae,-0x29,-0x97,-0xed)]()[_0x37c1da(0x50b,0x550,0x428,0x538)]()}),hookMatcherGroupSchema=z[_0x37c1da(0x45b,0x3d8,0x33c,0x459)]({'matcher':z[_0x38d42b(0x141,0x82,0x40,0xcc)]()[_0x38d42b(0xf8,0xed,0x224,0x10c)](),'hooks':z[_0x37c1da(0x303,0x3a6,0x415,0x43b)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x37c1da(0x4c2,0x46e,0x3c1,0x459)]({'PreToolUse':z[_0x37c1da(0x308,0x579,0x392,0x43b)](hookMatcherGroupSchema)[_0x37c1da(0x5c6,0x5ad,0x4f6,0x538)](),'PostToolUse':z[_0x38d42b(0x12c,-0x10,-0xa3,-0xd4)](hookMatcherGroupSchema)[_0x38d42b(0x1f1,0xed,-0x42,0x85)](),'UserPromptSubmit':z[_0x38d42b(-0x96,-0x10,-0x34,0x28)](hookMatcherGroupSchema)[_0x38d42b(-0x14,0xed,-0x2,0x10f)](),'Stop':z[_0x37c1da(0x42d,0x493,0x528,0x43b)](hookMatcherGroupSchema)[_0x38d42b(0x62,0xed,0x4,0x20c)](),'Notification':z[_0x38d42b(-0xb,-0x10,0x1,0x4b)](hookMatcherGroupSchema)[_0x37c1da(0x523,0x590,0x458,0x538)](),'SessionStart':z[_0x37c1da(0x465,0x3b5,0x393,0x43b)](hookMatcherGroupSchema)[_0x38d42b(0x11c,0xed,0xa4,0x67)](),'SessionEnd':z[_0x38d42b(-0x7c,-0x10,-0x12c,-0xc0)](hookMatcherGroupSchema)[_0x38d42b(-0x5c,0xed,0x154,0x1e2)]()}),cliConfigSchema=z[_0x38d42b(0x1f,0xe,0x129,0x12b)]({'activeProvider':z[_0x38d42b(0x1cb,0x82,0xda,0x1d)]()['optional'](),'activeModel':z['string']()[_0x38d42b(0x22e,0xed,0x64,0x112)](),'apiKey':z[_0x37c1da(0x52b,0x4ac,0x5b3,0x4cd)]()[_0x37c1da(0x40e,0x635,0x55a,0x538)](),'providers':z[_0x38d42b(0x262,0x1f9,0x2ad,0x2e4)](z[_0x37c1da(0x55e,0x464,0x409,0x4cd)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x37c1da(0x515,0x547,0x3fb,0x538)](),'skills':skillsSettingsSchema[_0x38d42b(-0xf,0xed,0x13c,0x68)](),'agents':agentsSettingsSchema[_0x37c1da(0x634,0x56b,0x684,0x538)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x38d42b(0x142,0x1f9,0x31c,0x224)](z[_0x37c1da(0x577,0x54b,0x4da,0x4cd)](),z[_0x37c1da(0x772,0x6c9,0x668,0x62a)]())[_0x38d42b(0x40,0xed,0xb4,0x25)](),'memory':memorySettingsSchema[_0x38d42b(0xdd,0xed,0x17c,0x172)](),'session':z[_0x38d42b(0x4f,0xe,0xb9,0xeb)]({'memPersist':z['boolean']()[_0x38d42b(-0x53,0xed,0x24,0x6b)](),'persistEventLog':z[_0x38d42b(0x10f,0x1df,0x271,0x238)]()[_0x37c1da(0x680,0x4ca,0x572,0x538)](),'persistHttpLog':z[_0x38d42b(0x31a,0x1df,0x26f,0x1d2)]()[_0x38d42b(0x151,0xed,0x1f4,0x1cd)]()})[_0x38d42b(0x25,0xd4,0xea,0x2d)]()[_0x37c1da(0x60b,0x605,0x64b,0x538)](),'requireToolApproval':z[_0x37c1da(0x6f1,0x694,0x72c,0x62a)]()['optional'](),'thinking':z['enum']([_0x38d42b(0x1b1,0x136,0x10c,0x15d),_0x38d42b(0x190,0x1e4,0x316,0x203),_0x37c1da(0x4dd,0x460,0x437,0x3fd),'HIGH'])[_0x38d42b(0x1c,0xed,0x179,0x10c)](),'streamingChunks':z[_0x38d42b(0x311,0x1df,0x2d4,0x1f4)]()['optional'](),'agentsEnabled':z[_0x37c1da(0x765,0x553,0x715,0x644)](z['string'](),z[_0x37c1da(0x6e6,0x751,0x531,0x62a)]())[_0x37c1da(0x42d,0x4d9,0x55c,0x538)](),'recentModels':z[_0x37c1da(0x43e,0x46b,0x411,0x43b)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x38d42b(0x16b,0xed,0x10c,0x1d2)](),'ui':z[_0x37c1da(0x346,0x408,0x476,0x459)]({'theme':uiThemeSettingsSchema[_0x38d42b(0x229,0xed,0x12f,-0x3e)](),'statusline':statuslineConfigSchema[_0x37c1da(0x506,0x61e,0x5d2,0x538)]()})['passthrough']()['optional'](),'tools':z[_0x37c1da(0x5d3,0x6f3,0x56f,0x644)](z[_0x37c1da(0x42f,0x46e,0x50c,0x4cd)](),z[_0x37c1da(0x4e1,0x550,0x4ab,0x551)]())[_0x38d42b(0x1fa,0xed,0x1d3,0x1ff)](),'hooks':hooksConfigSchema[_0x38d42b(0x210,0xed,0x38,0x53)]()})[_0x37c1da(0x584,0x417,0x559,0x51f)]();function buildDescription(_0x16f3c0){const _0x1e33cb={_0x36d84e:0x46,_0x12303a:0x30,_0x500bd0:0x609,_0x28a81d:0x53e,_0x232b3e:0x66c,_0x4b8860:0x671,_0x1f27bc:0x88,_0x3d0029:0x161,_0x272505:0x37,_0x5bcec8:0xca},_0x16de08={_0x32169c:0x470},_0x28e314={_0x283fb4:0x56a};if(_0x16f3c0[_0x1f93e3(-_0x1e33cb._0x36d84e,_0x1e33cb._0x12303a,-0x3a,-0xf9)]===0x0)return[_0x5da45d(0x59b,_0x1e33cb._0x500bd0,0x572,_0x1e33cb._0x28a81d),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x5da45d(0x5df,_0x1e33cb._0x232b3e,0x769,_0x1e33cb._0x4b8860)]['join']('\x0a');function _0x1f93e3(_0x2a5f01,_0x2b2e23,_0x386f45,_0xa09bfd){return _0x37c1da(_0x2a5f01-0xb3,_0x2b2e23-0x143,_0xa09bfd,_0x386f45- -_0x28e314._0x283fb4);}function _0x5da45d(_0x1f8c0c,_0x442ebb,_0x272658,_0x9eee5d){return _0x38d42b(_0x1f8c0c-0x18d,_0x9eee5d-_0x16de08._0x32169c,_0x272658,_0x9eee5d-0x163);}const _0x47d0d2=[_0x1f93e3(-_0x1e33cb._0x1f27bc,0x57,-0x51,-0x192),_0x1f93e3(0x1c1,0xab,0xbb,0x32),'Available\x20commands:',..._0x16f3c0[_0x1f93e3(0x161,0x12,0x112,_0x1e33cb._0x3d0029)](_0x827fe=>_0x827fe['argumentHint']?'-\x20'+_0x827fe['name']+'\x20'+_0x827fe[_0x5da45d(0x5b5,0x497,0x509,0x545)]+':\x20'+_0x827fe[_0x5da45d(0x5c7,0x69a,0x5c0,0x5a4)]:'-\x20'+_0x827fe['name']+':\x20'+_0x827fe[_0x5da45d(0x538,0x575,0x4e5,0x5a4)])];return _0x47d0d2[_0x1f93e3(_0x1e33cb._0x272505,0x7b,_0x1e33cb._0x5bcec8,0x14)]('\x0a');}function createInvokeCommandTool(_0x3c55fe){const _0x1f7e44={_0x3d9e5e:0x1c4,_0x26d991:0x93,_0x5a580b:0x1e0,_0x458fcf:0x9e,_0x5a5bfe:0x192,_0x33c706:0x332,_0x51133f:0x270,_0x3e7522:0x321,_0x4cd0bc:0x153,_0x4c0d0a:0x226,_0x35b393:0x1a7,_0x493fb4:0x1c3,_0x5286cf:0x1a9,_0x1c83b3:0x182,_0x2bcbb1:0x75},_0x32747c={_0x584ce8:0x2e9,_0x2e3347:0x39f,_0x22838e:0x26d,_0x4cd1ef:0x28f,_0x10a634:0x1e6,_0x12786b:0x445,_0x7076b1:0x573,_0xe51924:0x51f,_0x36db98:0x48d,_0x3e6b7a:0x4eb,_0x447506:0x4f5,_0x45b61f:0x449,_0x57f195:0x46d,_0x30a0e1:0x1ba,_0x32782f:0x6d,_0x5056ec:0xbb,_0x410b2d:0x451,_0xfb759b:0x4d9,_0x50fc61:0x10f,_0xeef217:0x2db,_0x254cf6:0x404,_0x4689c4:0x451,_0x50d300:0x435,_0x7beed2:0x1eb,_0x328bee:0x29d,_0x31246d:0x1ca},_0x458503={_0x5b78da:0x133},_0x5dc4e7={_0x49c943:0x41},_0x5e19d3={_0x4ae995:0xe3},_0x2150d3=new Map(_0x3c55fe[_0x3c2cd4(-_0x1f7e44._0x3d9e5e,-0x192,-0x1cf,-0xd3)][_0x3c2cd4(-0x10f,-_0x1f7e44._0x26d991,-_0x1f7e44._0x5a580b,-_0x1f7e44._0x458fcf)](_0x1e47d2=>[_0x1e47d2['id'],_0x1e47d2]));function _0x3c2cd4(_0x48b27b,_0x3b12a6,_0xeada96,_0x3f7930){return _0x37c1da(_0x48b27b-_0x5e19d3._0x4ae995,_0x3b12a6-0x159,_0x3f7930,_0x3b12a6- -0x70f);}const _0x24cb0f=buildDescription(_0x3c55fe[_0x3c2cd4(-0x286,-_0x1f7e44._0x5a5bfe,-0xda,-0x103)]);function _0x35b587(_0x373408,_0x41dce5,_0x403822,_0x260e17){return _0x38d42b(_0x373408-0x12b,_0x403822-_0x5dc4e7._0x49c943,_0x373408,_0x260e17-0x181);}return defineTool({'name':_0x3c2cd4(-_0x1f7e44._0x33c706,-_0x1f7e44._0x51133f,-_0x1f7e44._0x3e7522,-_0x1f7e44._0x4cd0bc),'description':_0x24cb0f,'inputSchema':{'type':_0x3c2cd4(-0x23c,-0x2b6,-0x319,-0x1bc),'properties':{'name':{'type':_0x3c2cd4(-0x192,-0x242,-0x1b5,-0x2c9)},'args':{'type':_0x3c2cd4(-0x270,-0x242,-_0x1f7e44._0x4c0d0a,-_0x1f7e44._0x35b393)}},'required':[_0x3c2cd4(-_0x1f7e44._0x493fb4,-_0x1f7e44._0x5286cf,-_0x1f7e44._0x1c83b3,-_0x1f7e44._0x2bcbb1)]},async *'execute'(_0x52ddf9){const _0x3c4ece={_0x426c6b:0x2f5},_0x4739a1=_0x2150d3[_0x2b9947(_0x32747c._0x584ce8,_0x32747c._0x2e3347,_0x32747c._0x22838e,_0x32747c._0x4cd1ef)](_0x52ddf9[_0x2b9947(0x307,0x448,_0x32747c._0x10a634,_0x32747c._0x12786b)]);function _0x2b9947(_0xa3a64f,_0x263b06,_0x5b4f22,_0x3af08a){return _0x35b587(_0x5b4f22,_0x263b06-_0x458503._0x5b78da,_0xa3a64f-0x1ab,_0x3af08a-0xfd);}if(!_0x4739a1){const _0x1f70a0=Array['from'](_0x2150d3['keys']())[_0x3bc295(_0x32747c._0x7076b1,0x4b7,_0x32747c._0xe51924,_0x32747c._0x36db98)](',\x20');throw new ToolExecutionError(_0x3bc295(_0x32747c._0x3e6b7a,_0x32747c._0x447506,_0x32747c._0x45b61f,_0x32747c._0x57f195)+_0x52ddf9['name']+_0x2b9947(_0x32747c._0x30a0e1,_0x32747c._0x32782f,_0x32747c._0x5056ec,0x24e)+_0x1f70a0,{'name':_0x52ddf9[_0x3bc295(0x406,0x4d2,_0x32747c._0x410b2d,_0x32747c._0xfb759b)]});}const _0x3df185=await _0x3c55fe['loadCommand'](_0x4739a1);function _0x3bc295(_0x242150,_0x45ef19,_0x2b2e30,_0x4d3998){return _0x35b587(_0x4d3998,_0x45ef19-0x57,_0x2b2e30-_0x3c4ece._0x426c6b,_0x4d3998-0x1a6);}const _0x285b6b=_0x52ddf9[_0x2b9947(0x1fb,0x2a1,_0x32747c._0x50fc61,_0x32747c._0xeef217)]??'',_0x4f2901=renderCommandInstructions({'instructions':_0x3df185['instructions'],'argumentsText':_0x285b6b,'argumentNames':_0x3df185[_0x2b9947(_0x32747c._0x254cf6,0x36e,0x415,0x4ba)]});return yield createToolOutput(_0x4f2901,{'id':_0x3df185['id'],'name':_0x3df185[_0x3bc295(0x389,0x459,_0x32747c._0x4689c4,_0x32747c._0x50d300)],'path':_0x4739a1[_0x2b9947(_0x32747c._0x7beed2,_0x32747c._0x328bee,_0x32747c._0x31246d,0x1da)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x5b2b10,rename as _0x320306,stat as _0x1624eb,writeFile as _0x86037e}from'fs/promises';import*as _0x3dc510 from'path';function detectEol(_0x2714b6){const _0x38a19e={_0x259131:0x294,_0x4ed569:0x50,_0x3afaaf:0x121,_0x3766df:0x1a,_0x456833:0x2d8,_0x1035f5:0x3da},_0x6a8156={_0x22f8dc:0x137,_0x504d24:0x100,_0x368fde:0x1c7},_0x1dbdd6={_0x5a6e9d:0x191,_0x2ff5a1:0x1a4};function _0x4f437f(_0x1d5b85,_0x161a28,_0x4a9ce1,_0x2c3bd5){return _0x38d42b(_0x1d5b85-0x8e,_0x1d5b85-_0x1dbdd6._0x5a6e9d,_0x2c3bd5,_0x2c3bd5-_0x1dbdd6._0x2ff5a1);}function _0x5d4787(_0x495edf,_0x9e74b9,_0x5c346d,_0xae846e){return _0x38d42b(_0x495edf-_0x6a8156._0x22f8dc,_0x495edf- -_0x6a8156._0x504d24,_0x9e74b9,_0xae846e-_0x6a8156._0x368fde);}return/\r\n/[_0x4f437f(0x188,0x60,_0x38a19e._0x259131,_0x38a19e._0x4ed569)](_0x2714b6['toString'](_0x5d4787(0x60,_0x38a19e._0x3afaaf,-0xa,-_0x38a19e._0x3766df)))?_0x4f437f(_0x38a19e._0x456833,0x37d,0x3b1,_0x38a19e._0x1035f5):'lf';}function normalizeToLf(_0xcb0b0){const _0x263912={_0x6006c:0xa3,_0x7e5d42:0x5c,_0x55bde5:0x26,_0x1bbc3b:0x1f},_0xf85daa={_0xe731f6:0xef};function _0x4e779d(_0x16e935,_0x22a498,_0x3619c8,_0x458c68){return _0x38d42b(_0x16e935-0x17,_0x22a498-0x84,_0x3619c8,_0x458c68-_0xf85daa._0xe731f6);}return _0xcb0b0[_0x4e779d(-_0x263912._0x6006c,_0x263912._0x7e5d42,_0x263912._0x55bde5,_0x263912._0x1bbc3b)](/\r\n/g,'\x0a');}function convertEol(_0x44be18,_0x3f9a40){const _0x48dac5={_0x1b0757:0x423,_0x6058ca:0x46f},_0x132818={_0xea8561:0x1af,_0x260451:0x1e1};function _0x4c0ede(_0x215288,_0x57881b,_0x4cc6a7,_0x397028){return _0x38d42b(_0x215288-_0x132818._0xea8561,_0x397028-0x497,_0x215288,_0x397028-_0x132818._0x260451);}return _0x3f9a40==='crlf'?_0x44be18[_0x4c0ede(0x3a2,_0x48dac5._0x1b0757,0x475,_0x48dac5._0x6058ca)](/\n/g,'\x0d\x0a'):_0x44be18;}async function atomicWrite(_0x295acc,_0x1f5d53){const _0x2a1cd5={_0x56d766:0x316,_0x4a8ca6:0x126,_0x295028:0x27d,_0x40ce3e:0x253,_0xe83143:0x37a,_0x115221:0x244,_0x24ea19:0x2c3,_0x3e4d18:0x251,_0x597260:0x2aa,_0x1e9271:0x1c2,_0xf4d4b3:0x3f,_0x5f57b2:0x142,_0x77ae13:0x7a,_0x183079:0x3e,_0x27f89d:0xd3,_0x2e757e:0xb5,_0x164460:0x1b9,_0x396350:0x1ff,_0x179912:0xdd},_0x490eb3={_0x403c83:0x149,_0x128094:0x29},_0x286144={_0xba6791:0xb8},_0x3ab7ac=_0x3dc510[_0x17c8c6(-_0x2a1cd5._0x56d766,-_0x2a1cd5._0x4a8ca6,-0x251,-0x20d)](_0x295acc);function _0x17c8c6(_0x5ae14e,_0x15c778,_0x3e1e76,_0x40c327){return _0x38d42b(_0x5ae14e-0x167,_0x40c327- -0x28c,_0x15c778,_0x40c327-_0x286144._0xba6791);}const _0x15cd56=_0x3dc510[_0x2824a2(_0x2a1cd5._0x295028,0x198,_0x2a1cd5._0x40ce3e,0x1cb)](_0x3ab7ac,_0x17c8c6(-0x1ef,-_0x2a1cd5._0xe83143,-_0x2a1cd5._0x115221,-0x2bb)+_0x3dc510[_0x17c8c6(-0x290,-0x19a,-_0x2a1cd5._0x24ea19,-0x1c6)](_0x295acc)+'.'+Date[_0x17c8c6(-0x222,-_0x2a1cd5._0x3e4d18,-_0x2a1cd5._0x597260,-_0x2a1cd5._0x1e9271)]()+'.'+Math[_0x2824a2(_0x2a1cd5._0xf4d4b3,0x133,_0x2a1cd5._0x5f57b2,0x270)]()[_0x2824a2(_0x2a1cd5._0x77ae13,0x19,-_0x2a1cd5._0x183079,-_0x2a1cd5._0x27f89d)](0x24)[_0x2824a2(_0x2a1cd5._0x2e757e,_0x2a1cd5._0x164460,_0x2a1cd5._0x396350,_0x2a1cd5._0x179912)](0x2));await _0x86037e(_0x15cd56,_0x1f5d53);function _0x2824a2(_0x46e2bc,_0x876804,_0x26b792,_0x35ce42){return _0x38d42b(_0x46e2bc-_0x490eb3._0x403c83,_0x876804- -0x51,_0x46e2bc,_0x35ce42-_0x490eb3._0x128094);}await _0x320306(_0x15cd56,_0x295acc);}function sha256(_0x5f72ee){const _0x3c392d={_0x4ee4e2:0x274,_0x3f2d3a:0x1da,_0xc0df68:0x234,_0xb2ed4b:0x41c},_0x3c8a66={_0x41299b:0x95,_0x43ffbf:0x27b};function _0x2d94c3(_0x61c8cc,_0x54f862,_0x10e4d9,_0x389255){return _0x37c1da(_0x61c8cc-0xb9,_0x54f862-0x4b,_0x61c8cc,_0x389255- -0xd1);}function _0x1c31f9(_0x1f4983,_0xc4ac9a,_0x1fa436,_0x30a076){return _0x37c1da(_0x1f4983-0x90,_0xc4ac9a-_0x3c8a66._0x41299b,_0x30a076,_0xc4ac9a- -_0x3c8a66._0x43ffbf);}return createHash(_0x1c31f9(_0x3c392d._0x4ee4e2,_0x3c392d._0x3f2d3a,_0x3c392d._0xc0df68,0xe7))['update'](_0x5f72ee)[_0x2d94c3(0x564,0x446,0x49a,_0x3c392d._0xb2ed4b)]('hex');}function countLines(_0x4a634d){const _0x43548f={_0x53dc80:0xf7,_0x31c0be:0x10e,_0x4c789b:0x17a,_0x5cddb8:0x10c,_0x1cd693:0x126},_0x5cb01a={_0x23ef4a:0x3d,_0x43ddb0:0x23d},_0x4a8e8f={_0x59bc23:0xf6,_0x1dda2c:0x439},_0x56a4b9=_0x4a634d['replace'](/\n$/,'');function _0x2e6c16(_0x553a5c,_0x3b3ab1,_0x5e0ee6,_0xf32670){return _0x37c1da(_0x553a5c-0xb3,_0x3b3ab1-_0x4a8e8f._0x59bc23,_0x5e0ee6,_0x3b3ab1- -_0x4a8e8f._0x1dda2c);}function _0x21af07(_0x1ccddf,_0xab95e9,_0x355d29,_0x480444){return _0x38d42b(_0x1ccddf-_0x5cb01a._0x23ef4a,_0x1ccddf- -_0x5cb01a._0x43ddb0,_0xab95e9,_0x480444-0x6e);}return _0x56a4b9[_0x2e6c16(0x13c,_0x43548f._0x53dc80,_0x43548f._0x31c0be,_0x43548f._0x4c789b)]===0x0?0x0:_0x56a4b9[_0x21af07(-_0x43548f._0x5cddb8,-0xf6,-_0x43548f._0x1cd693,-0x150)]('\x0a')[_0x2e6c16(0x137,0xf7,-0x49,0x205)];}function calculateLineNumbers(_0x332b4d,_0x1887a1,_0xb1bb9b,_0x226dbc){const _0xf481c6={_0x3d429c:0x6c,_0x4967ac:0x91,_0xba661f:0xee,_0x5650de:0x48,_0x44f17c:0x5f},_0x49fd08={_0x4d743d:0x17d,_0x1d482e:0x5e8},_0x2796e0={_0xb26522:0xaa,_0x298aae:0x161,_0x564ef6:0x1d},_0xb2f62b=_0x332b4d['slice'](0x0,_0x226dbc)[_0x59f72a(-_0xf481c6._0x3d429c,-0x183,_0xf481c6._0x4967ac,-_0xf481c6._0xba661f)]('\x0a')[_0x59f72a(-0xb8,-_0xf481c6._0x5650de,-0x6a,_0xf481c6._0x44f17c)];function _0x3188d8(_0x39bfea,_0x7df0e9,_0x264115,_0x41b5d6){return _0x38d42b(_0x39bfea-_0x2796e0._0xb26522,_0x39bfea- -_0x2796e0._0x298aae,_0x41b5d6,_0x41b5d6-_0x2796e0._0x564ef6);}function _0x59f72a(_0xf4e7bc,_0x2f11be,_0x3e5a98,_0x2d33a3){return _0x37c1da(_0xf4e7bc-_0x49fd08._0x4d743d,_0x2f11be-0xc0,_0x3e5a98,_0xf4e7bc- -_0x49fd08._0x1d482e);}const _0x46b4ff=countLines(_0x1887a1),_0x25998a=countLines(_0xb1bb9b);return{'oldStartLine':_0xb2f62b,'oldEndLine':_0xb2f62b+_0x46b4ff-0x1,'newStartLine':_0xb2f62b,'newEndLine':_0xb2f62b+_0x25998a-0x1,'oldLineCount':_0x46b4ff,'newLineCount':_0x25998a};}function createFileEditTool(_0x44efad={}){const _0x4da462={_0x443642:0x5d4,_0xd3f258:0x5c7,_0x98ab72:0x6dc,_0x1efe57:0x6c7,_0x407c0c:0x554,_0x2570ca:0x4cc,_0x1177ab:0x21a,_0x4894ab:0x11c,_0x5cab9c:0x1cf,_0x76c772:0x456,_0x1e9785:0x431,_0x41ebb3:0x46a,_0x1f62f5:0x30f,_0x3daf52:0x381,_0x56b8fb:0x394,_0x5dba91:0x330,_0x17b5e7:0x3b4,_0x3e0c40:0x3f5,_0x51d1d1:0x309,_0x29aca7:0x490,_0x47aa47:0x2c5,_0x3e427e:0x34b,_0x7bda67:0x2a7,_0x2e0e9f:0x2fe,_0x5b50b4:0x2a7,_0x40a230:0x201,_0x4885e2:0x2a7,_0x53b8db:0x304,_0x459759:0x404,_0x51b764:0x47e,_0x13e0ab:0x439},_0x5d6e59={_0x72e661:0x53,_0x5eb70e:0x2b9,_0x480f20:0x12,_0x5a1154:0x2a,_0x3cca3f:0xb6,_0x1e4a49:0x18e,_0xed98ac:0xf6,_0x73f633:0xda,_0xefe078:0x79,_0x26ad3d:0xc9,_0x56c78a:0x1bf,_0x4be6c5:0x10b,_0x52f506:0x2f9,_0x52e34e:0x1e3,_0x443a27:0x18f,_0x42057b:0x38,_0x23c0a8:0x25,_0x1cbd5c:0x13e,_0x441821:0x25,_0x29f8a1:0xf7,_0x415c28:0xf8,_0x343017:0x5e,_0x331aee:0x1b3,_0x26fee4:0xcf,_0x3cf8cb:0x36,_0x53a668:0x10c,_0x20a897:0x322,_0x168043:0x211,_0x597f84:0x8e,_0x46f25d:0x17b,_0x4703a2:0x33e,_0x1d65a6:0x141,_0x5fbd4f:0x162,_0x1489b5:0x1fd,_0x49cef9:0x253,_0x3772f4:0x7b,_0x498f74:0x26c,_0x506c61:0x183,_0x10c44c:0x116,_0x14f557:0x18c,_0x4703bc:0x32,_0x1d0742:0x131,_0x2cfaaa:0x177,_0x4fac15:0x225,_0x1b69ed:0x131},_0x58a2ce={_0x2dac07:0xff},_0x5af2d5={_0x17409f:0x75,_0x251130:0xa5},_0x5b806a={_0x37aa2b:0x25,_0x28870d:0x225,_0x39d4ec:0x15},_0x1d6d2f=_0x3dc510['resolve'](_0x44efad[_0x219b35(_0x4da462._0x443642,_0x4da462._0xd3f258,_0x4da462._0x98ab72,_0x4da462._0x1efe57)]??process[_0x219b35(0x528,0x402,_0x4da462._0x407c0c,_0x4da462._0x2570ca)]()),_0x227504=(_0x44efad[_0x374bd3(_0x4da462._0x1177ab,_0x4da462._0x4894ab,0x1e1,_0x4da462._0x5cab9c)]??[])[_0x374bd3(0x53b,0x489,_0x4da462._0x76c772,0x356)](_0x25c131=>_0x3dc510[_0x374bd3(0x3f9,0x1fe,0x328,0x286)](_0x25c131));function _0x374bd3(_0x4175cd,_0x5e8bd8,_0x4a3565,_0x529f59){return _0x38d42b(_0x4175cd-_0x5b806a._0x37aa2b,_0x4a3565-_0x5b806a._0x28870d,_0x4175cd,_0x529f59-_0x5b806a._0x39d4ec);}const _0x8c7c8b=_0x44efad[_0x374bd3(_0x4da462._0x1e9785,_0x4da462._0x41ebb3,0x340,0x3cf)]??_0x374bd3(0x39b,_0x4da462._0x1f62f5,0x2f6,0x2aa);function _0x219b35(_0x57bfe9,_0x20ec37,_0x19e78a,_0x57aad7){return _0x37c1da(_0x57bfe9-_0x5af2d5._0x17409f,_0x20ec37-0xeb,_0x57aad7,_0x57bfe9- -_0x5af2d5._0x251130);}return defineTool({'name':_0x8c7c8b,'description':_0x219b35(_0x4da462._0x3daf52,0x3e1,_0x4da462._0x56b8fb,_0x4da462._0x5dba91),'inputSchema':{'type':_0x219b35(_0x4da462._0x17b5e7,_0x4da462._0x3e0c40,_0x4da462._0x51d1d1,_0x4da462._0x29aca7),'properties':{'filePath':{'type':_0x374bd3(_0x4da462._0x47aa47,_0x4da462._0x3e427e,_0x4da462._0x7bda67,0x2e0)},'oldText':{'type':_0x374bd3(_0x4da462._0x2e0e9f,0x2b0,_0x4da462._0x5b50b4,_0x4da462._0x40a230)},'newText':{'type':_0x374bd3(0x1e0,0x3ef,_0x4da462._0x4885e2,0x1cf)},'dryRun':{'type':_0x374bd3(0x541,_0x4da462._0x53b8db,_0x4da462._0x459759,0x4ea)}},'required':[_0x219b35(0x4ff,0x539,0x5b3,0x462),_0x219b35(_0x4da462._0x51b764,_0x4da462._0x13e0ab,0x546,0x51c),'newText']},async *'execute'(_0xca679d){function _0x3d6403(_0xbc0571,_0x479e38,_0x244b01,_0x5ac532){return _0x219b35(_0x244b01- -0x5bc,_0x479e38-0x19d,_0x244b01-_0x58a2ce._0x2dac07,_0x479e38);}const _0x50e718=resolveAllowedPath(_0x1d6d2f,_0x227504,_0xca679d[_0x547c13(0x33,-0x4b,-0xd6,-_0x5d6e59._0x72e661)]);await assertWorkspaceFile(_0x50e718);const _0x5c647c=await _0x1624eb(_0x50e718),_0x4fbb8e=await _0x5b2b10(_0x50e718),_0x317588=detectEol(_0x4fbb8e),_0x235f76=normalizeToLf(_0x4fbb8e[_0x3d6403(-0x29d,-0x249,-0x1ac,-_0x5d6e59._0x5eb70e)](_0x3d6403(-_0x5d6e59._0x480f20,-_0x5d6e59._0x5a1154,-_0x5d6e59._0x3cca3f,-0x1f5)));function _0x547c13(_0xa362e,_0x5bdbe4,_0x2676c1,_0x7b2c90){return _0x374bd3(_0x5bdbe4,_0x5bdbe4-0x181,_0x2676c1- -0x454,_0x7b2c90-0x135);}const _0xf6153c=normalizeToLf(_0xca679d[_0x547c13(-0x194,-0xe2,-0x157,-0x24e)]),_0x75f5af=normalizeToLf(_0xca679d[_0x3d6403(-0x211,-0x206,-_0x5d6e59._0x1e4a49,-0x1aa)]),_0x20855e=_0x235f76[_0x3d6403(-_0x5d6e59._0xed98ac,-0x18b,-_0x5d6e59._0x73f633,-_0x5d6e59._0xefe078)](_0xf6153c);if(_0x20855e===-0x1){const _0x54c9b2=_0xf6153c[_0x547c13(_0x5d6e59._0x26ad3d,-0x8e,-0x25,0x3a)](0x0,0x64)[_0x547c13(-0x2b8,-_0x5d6e59._0x56c78a,-0x257,-_0x5d6e59._0x4be6c5)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x547c13(-0x236,-_0x5d6e59._0x52f506,-_0x5d6e59._0x52e34e,-0xab)+_0x54c9b2+(_0xf6153c['length']>0x64?_0x3d6403(-0x1a9,-0x224,-_0x5d6e59._0x443a27,-0xf1):'')+'\x22',{'filePath':_0xca679d[_0x3d6403(-0x3,-0x70,-0xbd,-0xd1)]});}const _0x101e52=_0x235f76[_0x547c13(-_0x5d6e59._0x42057b,0x76,-_0x5d6e59._0x23c0a8,0xa3)](0x0,_0x20855e)+_0x75f5af+_0x235f76[_0x547c13(0xdf,-_0x5d6e59._0x1cbd5c,-_0x5d6e59._0x441821,-_0x5d6e59._0x29f8a1)](_0x20855e+_0xf6153c['length']),_0x37e7d5=convertEol(_0x101e52,_0x317588),_0x2b0abb=Buffer[_0x3d6403(-_0x5d6e59._0x415c28,-0x108,-0x5f,-_0x5d6e59._0x343017)](_0x37e7d5,_0x547c13(-_0x5d6e59._0x331aee,-0x6f,-_0x5d6e59._0x26fee4,-0xd9)),_0x58d48e=sha256(_0x4fbb8e),_0x4aac6e=sha256(_0x2b0abb),_0x4d0490=_0x58d48e===_0x4aac6e,_0x23a6d7=_0xca679d[_0x547c13(_0x5d6e59._0x3cf8cb,-0xde,-_0x5d6e59._0x53a668,-0x251)]??![];return!_0x23a6d7&&!_0x4d0490&&await atomicWrite(_0x50e718,_0x2b0abb),yield createToolOutput(_0x4d0490?_0x3d6403(-_0x5d6e59._0x53a668,-_0x5d6e59._0x20a897,-0x227,-_0x5d6e59._0x168043):_0x23a6d7?_0x3d6403(-_0x5d6e59._0x597f84,-_0x5d6e59._0x46f25d,-0xb1,-0x4f):_0x3d6403(-0x18b,-_0x5d6e59._0x4703a2,-0x262,-0x267),{'filePath':_0xca679d['filePath'],'resolvedPath':_0x50e718,'created':_0x5c647c[_0x547c13(-0x286,-_0x5d6e59._0x1d65a6,-_0x5d6e59._0x5fbd4f,-0x1ec)][_0x3d6403(-_0x5d6e59._0x1489b5,-0x20d,-_0x5d6e59._0x49cef9,-0x10f)](),'modified':_0x5c647c[_0x547c13(-_0x5d6e59._0x3772f4,0x32,-0x85,-0xfe)][_0x547c13(-0x2d2,-0x2e5,-_0x5d6e59._0x498f74,-_0x5d6e59._0x506c61)](),'size':_0x5c647c[_0x3d6403(-0xfb,-_0x5d6e59._0x10c44c,-0x1a9,-0x1d3)],'eol':_0x317588,'oldTextLength':_0xf6153c[_0x3d6403(-_0x5d6e59._0x14f557,-_0x5d6e59._0x4703bc,-_0x5d6e59._0x1d0742,-_0x5d6e59._0x2cfaaa)],'newTextLength':_0x75f5af['length'],'bytesWritten':_0x4d0490||_0x23a6d7?0x0:_0x2b0abb[_0x3d6403(-_0x5d6e59._0x4fac15,-0x275,-_0x5d6e59._0x1b69ed,-0x26a)],'beforeSha':_0x58d48e,'afterSha':_0x4aac6e,'dryRun':_0x23a6d7,'noChange':_0x4d0490,'lineNumbers':calculateLineNumbers(_0x235f76,_0xf6153c,_0x75f5af,_0x20855e)}),void 0x0;}});}import{mkdir as _0x557e75,rename as _0x6f699d,stat as _0xc55a22,writeFile as _0x1fbba4}from'fs/promises';import*as _0x2665dc from'path';async function atomicWrite2(_0x114ca6,_0x5c28ae){const _0x49a3cf={_0x41c31b:0x14d,_0xa0f2ea:0x1b9,_0x1eb4bb:0x214,_0x46ab8a:0x178,_0x45ab71:0x13d,_0x229000:0x143,_0x34a3a5:0x1d7},_0x196a1a={_0x315882:0x18e},_0x88fcc8={_0x3772c3:0x1b0};function _0x11c821(_0x35e474,_0x35b609,_0x24b2d3,_0x5db825){return _0x37c1da(_0x35e474-_0x88fcc8._0x3772c3,_0x35b609-0x64,_0x35e474,_0x5db825- -0x311);}const _0x4e5221=_0x2665dc[_0x11c821(0x9c,_0x49a3cf._0x41c31b,0x7b,_0x49a3cf._0xa0f2ea)](_0x114ca6);await _0x557e75(_0x4e5221,{'recursive':!![]});const _0x49cd90=_0x2665dc[_0x31e73a(_0x49a3cf._0x1eb4bb,0x1c6,0x1c3,0x260)](_0x4e5221,_0x11c821(0x219,_0x49a3cf._0x46ab8a,0xef,0x10b)+_0x2665dc[_0x31e73a(0x129,0x16f,0x256,_0x49a3cf._0x45ab71)](_0x114ca6)+'.'+Date[_0x11c821(0x219,0xff,0x34f,0x204)]()+'.'+Math[_0x31e73a(0x207,_0x49a3cf._0x229000,_0x49a3cf._0x34a3a5,0x1fb)]()['toString'](0x24)['slice'](0x2));function _0x31e73a(_0x4aeccb,_0x4d8a3c,_0x560562,_0x1dd48f){return _0x38d42b(_0x4aeccb-_0x196a1a._0x315882,_0x1dd48f-0x77,_0x4d8a3c,_0x1dd48f-0xa4);}await _0x1fbba4(_0x49cd90,_0x5c28ae),await _0x6f699d(_0x49cd90,_0x114ca6);}function createFileNewTool(_0x327561={}){const _0x5d148a={_0x5a63d6:0x446,_0x11006b:0x554,_0x52f7a7:0x4e9,_0x34a0bb:0x504,_0x253710:0x5d3,_0x52aca1:0x5d8,_0x1937d0:0x440,_0x3aab01:0x4c8,_0x26d2cf:0x5d1,_0x4f107a:0x75d,_0x46a700:0x5a5,_0x2bc4e2:0x420,_0x561978:0x52b,_0x17185:0x567,_0x35fe03:0x5ac,_0x4bed2c:0x54b,_0x16fbdf:0x5c8,_0x4f2996:0x667},_0x12ae6f={_0xa39dfa:0x498,_0x3cd4a0:0x37c,_0x37531f:0x385,_0x208868:0x4ac,_0x22c95f:0x514,_0x4ffe0d:0x4f7,_0x15a93c:0x533,_0x261404:0x542,_0xccd707:0x5b1,_0x3786ea:0x69b,_0x33360d:0x5a0,_0x447957:0x370,_0x5c0870:0x490,_0x5e406f:0x5d1,_0x54221c:0x47c,_0x8f9bad:0x52c,_0x1025c6:0x3e4},_0x1e0541={_0x5940b6:0x172,_0x516a3b:0x451,_0x266cc6:0x9f},_0x5da389={_0x2bec29:0x4e5},_0xe7a44c=_0x2665dc[_0xd9857c(_0x5d148a._0x5a63d6,0x48b,_0x5d148a._0x11006b,_0x5d148a._0x52f7a7)](_0x327561['defaultCwd']??process[_0xd9857c(_0x5d148a._0x34a0bb,0x543,_0x5d148a._0x253710,_0x5d148a._0x52aca1)]()),_0xa914bc=(_0x327561[_0x5e911d(0x51d,0x4a1,_0x5d148a._0x1937d0,0x446)]??[])['map'](_0x357725=>_0x2665dc[_0x5e911d(0x599,0x5e8,0x6c6,0x65a)](_0x357725));function _0x5e911d(_0x2c508b,_0x19093f,_0x45f4b0,_0x278911){return _0x38d42b(_0x2c508b-0xce,_0x19093f-_0x5da389._0x2bec29,_0x278911,_0x278911-0x14d);}function _0xd9857c(_0x4070aa,_0xe8560,_0x1537c8,_0x41f700){return _0x38d42b(_0x4070aa-_0x1e0541._0x5940b6,_0x1537c8-_0x1e0541._0x516a3b,_0x4070aa,_0x41f700-_0x1e0541._0x266cc6);}const _0x384f9a=_0x327561['name']??_0xd9857c(0x440,0x614,_0x5d148a._0x3aab01,_0x5d148a._0x26d2cf);return defineTool({'name':_0x384f9a,'description':_0x5e911d(0x5bc,0x6ba,0x64d,_0x5d148a._0x4f107a),'inputSchema':{'type':_0x5e911d(0x5b2,0x4f3,_0x5d148a._0x46a700,_0x5d148a._0x2bc4e2),'properties':{'filePath':{'type':_0x5e911d(_0x5d148a._0x561978,_0x5d148a._0x17185,0x4f0,0x638)},'content':{'type':_0xd9857c(0x551,0x4be,0x4d3,_0x5d148a._0x35fe03)}},'required':[_0x5e911d(_0x5d148a._0x4bed2c,0x63e,0x612,0x600),_0x5e911d(_0x5d148a._0x16fbdf,0x5dd,0x56d,_0x5d148a._0x4f2996)]},async *'execute'(_0xba4e96){const _0xa1fc8a={_0xa05252:0x1ee,_0x46738c:0x14f},_0x28a50b={_0x66222b:0x1a1,_0x2fda5a:0x2c};function _0x503e8b(_0x51ed0f,_0x441efe,_0x556ee6,_0x23d117){return _0x5e911d(_0x51ed0f-_0x28a50b._0x66222b,_0x51ed0f- -_0x28a50b._0x2fda5a,_0x556ee6-0xc9,_0x556ee6);}const _0x450211=resolveAllowedPath(_0xe7a44c,_0xa914bc,_0xba4e96['filePath']);function _0x11feef(_0x117526,_0x34ac2f,_0x4e18e3,_0x2b1d69){return _0x5e911d(_0x117526-_0xa1fc8a._0xa05252,_0x4e18e3- -0x13a,_0x4e18e3-_0xa1fc8a._0x46738c,_0x117526);}const _0x36c053=await _0xc55a22(_0x450211)[_0x11feef(0x250,_0x12ae6f._0xa39dfa,0x38a,0x3b6)](()=>!![])[_0x11feef(0x473,_0x12ae6f._0x3cd4a0,_0x12ae6f._0x37531f,0x43e)](()=>![]),_0x52e88a=Buffer['from'](_0xba4e96[_0x11feef(_0x12ae6f._0x208868,_0x12ae6f._0x22c95f,0x4a3,0x361)],'utf8');return await atomicWrite2(_0x450211,_0x52e88a),yield createToolOutput(_0x11feef(_0x12ae6f._0x4ffe0d,_0x12ae6f._0x15a93c,0x4da,_0x12ae6f._0x261404)+_0xba4e96[_0x503e8b(0x612,0x4dd,0x6bc,0x739)]+'.',{'filePath':_0xba4e96['filePath'],'resolvedPath':_0x450211,'bytes':_0x52e88a['length'],'lines':_0xba4e96[_0x503e8b(_0x12ae6f._0xccd707,0x6b0,0x48f,_0x12ae6f._0x3786ea)]['split'](/\r?\n/)[_0x11feef(_0x12ae6f._0x33360d,_0x12ae6f._0x447957,_0x12ae6f._0x5c0870,_0x12ae6f._0x5e406f)],'created':new Date()[_0x503e8b(_0x12ae6f._0x54221c,_0x12ae6f._0x8f9bad,0x38f,_0x12ae6f._0x1025c6)](),'overwritten':_0x36c053}),void 0x0;}});}import{readFile as _0x375089,stat as _0x24e1fd}from'fs/promises';import*as _0x33feaa from'path';function stripUtfBom(_0x1c51e6){const _0x50b0c9={_0x33ef0f:0x54,_0x452565:0x9d,_0x1cceb0:0x39a,_0x1eaff1:0x3e1,_0x32a324:0x40f},_0x350991={_0x5d8f4a:0x1dc,_0x6d921c:0xe};function _0x27cc64(_0xab6bff,_0x12f251,_0x52bac9,_0x42b113){return _0x38d42b(_0xab6bff-0x33,_0x12f251- -0x4d,_0x52bac9,_0x42b113-0x45);}function _0x18d4df(_0x395ed0,_0x147625,_0x3e15e1,_0x104299){return _0x38d42b(_0x395ed0-_0x350991._0x5d8f4a,_0x3e15e1-0x1d7,_0x104299,_0x104299-_0x350991._0x6d921c);}return _0x1c51e6[_0x27cc64(-_0x50b0c9._0x33ef0f,0x46,_0x50b0c9._0x452565,-0xee)](0x0)===0xfeff?_0x1c51e6[_0x18d4df(_0x50b0c9._0x1cceb0,0x3da,_0x50b0c9._0x1eaff1,_0x50b0c9._0x32a324)](0x1):_0x1c51e6;}function clampLine(_0x3b3ad2,_0x293cd5){const _0x29df2c={_0x26d20c:0x1f3,_0x298776:0x73,_0x41a680:0x188,_0x2f5d05:0x11e,_0x5219f0:0x1d,_0x12a386:0x1b9,_0x284ef2:0x106,_0x55a247:0x24c},_0x409993={_0x1f8f4b:0x22,_0x11a97f:0xc},_0x52b072={_0x3ec9ab:0x1cb,_0x44cba0:0x115};if(!Number[_0x53c491(0x27a,0xd6,0x261,_0x29df2c._0x26d20c)](_0x3b3ad2))return 0x1;function _0x5288ba(_0x56568c,_0x1eec00,_0x3d4506,_0x4851ca){return _0x38d42b(_0x56568c-0x180,_0x4851ca- -_0x52b072._0x3ec9ab,_0x3d4506,_0x4851ca-_0x52b072._0x44cba0);}function _0x53c491(_0xb07cb6,_0x852500,_0x3c855a,_0xb4fbd4){return _0x38d42b(_0xb07cb6-0x120,_0xb4fbd4-_0x409993._0x1f8f4b,_0xb07cb6,_0xb4fbd4-_0x409993._0x11a97f);}return Math[_0x53c491(0x233,0x20d,_0x29df2c._0x298776,_0x29df2c._0x41a680)](0x1,Math[_0x53c491(0x20,_0x29df2c._0x2f5d05,_0x29df2c._0x5219f0,0x49)](Math[_0x53c491(_0x29df2c._0x12a386,0x296,_0x29df2c._0x284ef2,_0x29df2c._0x55a247)](_0x3b3ad2),_0x293cd5));}function createFileReadTool(_0xca1d59={}){const _0x125f27={_0x49b29f:0x42,_0x19e958:0x21c,_0x515a77:0xe0,_0x35da6e:0x121,_0x120853:0xe9,_0x1dfd06:0x33e,_0x458d4c:0x31f,_0x1afc53:0xe3,_0x557ba8:0x207,_0x4c6fd3:0x13c,_0x2d7c90:0x1a,_0x102c56:0x74,_0x1580eb:0xb3,_0x33de16:0x15,_0x55ff14:0xbb,_0x2a7d2e:0x66,_0x5689c1:0x106,_0x26a1bf:0x80,_0x55b5fa:0x6e,_0x55db9d:0x36,_0x1ffbef:0x8,_0x31f98b:0x73,_0xf4ad85:0x154,_0x4b5a7c:0x4a},_0x2b8912={_0x3af9e4:0x2c4,_0x19e190:0x407,_0x1b232d:0x38f,_0x3b723e:0x337,_0x5f5510:0x262,_0x30bbff:0xe5,_0x5f21dd:0x59,_0x1b1576:0x90,_0x2103fa:0x9d,_0x1ceb08:0x164,_0xfeac2:0x6e,_0x6f258b:0xed,_0x3eebd3:0x152,_0x1c70a3:0x190,_0x509399:0x52,_0x33c5d5:0x56,_0x260700:0x123,_0x378f89:0x11,_0x212435:0x1a3,_0x557afa:0xf9,_0x1b5237:0x22,_0x33a373:0x6e,_0x33b569:0x127,_0x2a8cab:0x61,_0x3b1d1b:0x206,_0x417558:0x215,_0x5b6055:0xe9,_0x32efbd:0x12d,_0x585588:0x180,_0xa64a98:0x186,_0x1d6e26:0x24e,_0x1b2e22:0x147,_0x2d9446:0x115,_0x17d290:0x16e,_0x8ad5df:0x298,_0x13577a:0x2bb},_0x222b0f={_0x409a3e:0x13f},_0x39d268={_0x5763a0:0x54,_0x3efccb:0xc1,_0xf77a6e:0x1d7},_0x256b2a={_0x570e9e:0x114,_0x2f4fbe:0x42a},_0x35ce64=_0x33feaa[_0xb4912b(_0x125f27._0x49b29f,-0x71,0x3d,-0xd)](_0xca1d59[_0xb4912b(0x16d,_0x125f27._0x19e958,0x242,_0x125f27._0x515a77)]??process[_0xb4912b(0xc1,0x165,0xa6,_0x125f27._0x35da6e)]());function _0xcefb6e(_0x3f0b29,_0x16df97,_0x436006,_0x18e8e8){return _0x37c1da(_0x3f0b29-_0x256b2a._0x570e9e,_0x16df97-0x91,_0x3f0b29,_0x18e8e8- -_0x256b2a._0x2f4fbe);}const _0x29888f=(_0xca1d59[_0xcefb6e(-0x15f,-_0x125f27._0x120853,-0x132,-0x23)]??[])[_0xcefb6e(_0x125f27._0x1dfd06,_0x125f27._0x458d4c,0x22b,0x252)](_0x26d8f2=>_0x33feaa[_0xcefb6e(0xd,-0xa,0x26d,0x124)](_0x26d8f2));function _0xb4912b(_0x241844,_0x4eb161,_0x151a3e,_0x1f5212){return _0x38d42b(_0x241844-_0x39d268._0x5763a0,_0x241844- -_0x39d268._0x3efccb,_0x1f5212,_0x1f5212-_0x39d268._0xf77a6e);}const _0x3d136c=_0xca1d59[_0xcefb6e(_0x125f27._0x1afc53,_0x125f27._0x557ba8,0x221,_0x125f27._0x4c6fd3)]??'FileRead';return defineTool({'name':_0x3d136c,'description':_0xcefb6e(-0xbd,_0x125f27._0x2d7c90,0x113,_0x125f27._0x102c56),'inputSchema':{'type':_0xb4912b(-_0x125f27._0x1580eb,-_0x125f27._0x33de16,-_0x125f27._0x55ff14,-0xff),'properties':{'path':{'type':_0xcefb6e(-_0x125f27._0x2a7d2e,0x182,_0x125f27._0x5689c1,0xa3)},'lineStart':{'type':_0xcefb6e(-_0x125f27._0x26a1bf,-_0x125f27._0x55b5fa,-_0x125f27._0x55db9d,-_0x125f27._0x1ffbef),'description':_0xcefb6e(0x196,0x317,0x111,0x1e9)},'lineEnd':{'type':_0xb4912b(-0xea,-_0x125f27._0x31f98b,-0x21,-0x60),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0xb4912b(_0x125f27._0xf4ad85,0xd8,_0x125f27._0x4b5a7c,0x12d)]},async *'execute'(_0x409c87){const _0x484967=resolveAllowedPath(_0x35ce64,_0x29888f,_0x409c87[_0x50a236(_0x2b8912._0x3af9e4,_0x2b8912._0x19e190,_0x2b8912._0x1b232d,0x29b)]);function _0x33dddf(_0x46eb3d,_0xe3073d,_0x316f58,_0x323bda){return _0xcefb6e(_0x46eb3d,_0xe3073d-_0x222b0f._0x409a3e,_0x316f58-0x1c,_0x316f58- -0xe4);}await assertWorkspaceFile(_0x484967);const _0x548c3f=await _0x24e1fd(_0x484967),_0x4a6716=await _0x375089(_0x484967);if(isProbablyBinary(_0x4a6716))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x409c87[_0x50a236(0x2c4,0x2a7,_0x2b8912._0x3b723e,0x3a1)],{'path':_0x409c87[_0x33dddf(0x1aa,_0x2b8912._0x5f5510,0x152,0x1c7)]});function _0x50a236(_0x8d4edc,_0x4b5dc3,_0x2c1f22,_0x3bf9af){return _0xcefb6e(_0x4b5dc3,_0x4b5dc3-0x3e,_0x2c1f22-0x1c4,_0x8d4edc-0x8e);}let _0x703c66=_0x4a6716[_0x33dddf(_0x2b8912._0x30bbff,0xe6,-_0x2b8912._0x5f21dd,_0x2b8912._0x1b1576)](_0x33dddf(0x1c4,0x95,_0x2b8912._0x2103fa,_0x2b8912._0x1ceb08));const _0x8b2f44=_0x703c66['charCodeAt'](0x0)===0xfeff;_0x703c66=stripUtfBom(_0x703c66);const _0x406d62=_0x703c66[_0x33dddf(0x160,0x75,_0x2b8912._0xfeac2,0x174)](/\r?\n/),_0x250b6a={'path':_0x409c87[_0x33dddf(0x24b,_0x2b8912._0x6f258b,_0x2b8912._0x3eebd3,_0x2b8912._0x1c70a3)],'resolvedPath':_0x484967,'created':_0x548c3f['birthtime']['toISOString'](),'modified':_0x548c3f['mtime']['toISOString'](),'size':_0x548c3f[_0x33dddf(-0xd1,-_0x2b8912._0x509399,-_0x2b8912._0x33c5d5,0x99)],'encoding':_0x33dddf(_0x2b8912._0x260700,-_0x2b8912._0x378f89,0x9d,_0x2b8912._0x212435),'bomStripped':_0x8b2f44,'truncated':![],'totalLines':_0x406d62[_0x33dddf(_0x2b8912._0x557afa,-0xf4,_0x2b8912._0x1b5237,_0x2b8912._0x33a373)]};if(_0x409c87['lineStart']!==void 0x0||_0x409c87[_0x33dddf(_0x2b8912._0x33b569,_0x2b8912._0x2a8cab,0x10a,-0x32)]!==void 0x0){const _0x1711d8=clampLine(_0x409c87['lineStart']??0x1,_0x406d62['length']),_0x40b200=clampLine(_0x409c87[_0x50a236(0x27c,0x184,0x22f,_0x2b8912._0x3b1d1b)]??_0x406d62['length'],_0x406d62[_0x50a236(0x194,_0x2b8912._0x417558,0x7f,_0x2b8912._0x5b6055)]),_0x45427b=Math[_0x50a236(0xd6,_0x2b8912._0x32efbd,_0x2b8912._0x585588,-0x12)](_0x1711d8,_0x40b200),_0x4b58d7=Math[_0x33dddf(0x1e3,0x88,0xa3,_0x2b8912._0xa64a98)](_0x1711d8,_0x40b200),_0x48bed8=_0x406d62[_0x33dddf(_0x2b8912._0x1d6e26,0x27,_0x2b8912._0x1b2e22,0x150)](_0x45427b-0x1,_0x4b58d7)[_0x33dddf(0x18c,_0x2b8912._0x2d9446,_0x2b8912._0x17d290,0x1b9)]((_0x3f3977,_0x187522)=>_0x45427b+_0x187522+'|'+_0x3f3977)[_0x50a236(_0x2b8912._0x8ad5df,0x269,_0x2b8912._0x13577a,0x211)]('\x0a');return yield createToolOutput(_0x48bed8,{..._0x250b6a,'lineRange':{'lineStart':_0x45427b,'lineEnd':_0x4b58d7,'linesTotal':_0x406d62['length']}}),void 0x0;}return yield createToolOutput(_0x703c66,_0x250b6a),void 0x0;}});}import{stat as _0x58f221}from'fs/promises';import*as _0x562f86 from'path';import{execSync,spawn as _0xfe313f}from'child_process';import{existsSync}from'fs';import{stat as _0x59ebd8}from'fs/promises';import*as _0x13acdc from'os';import*as _0x1554b8 from'path';import{rgPath as _0x5630ac}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x34be4f={_0x569532:0x80,_0x22fad9:0x1b5,_0x5c36d5:0x188,_0x514c32:0x389,_0x20e99a:0x59,_0x5505e5:0x90,_0xd6b84a:0x41,_0xc71eaa:0xf8,_0x20eaf3:0xfb,_0xbd2c8b:0x1f,_0x3df585:0x28,_0x4e0fe8:0x336,_0x4980d2:0x2fd,_0x27f5cd:0x2d7,_0x196dd6:0x291,_0x25f8b9:0x1ec,_0x5a2577:0x281,_0x5a8951:0x139,_0x3bd365:0x15c,_0x4a8e3d:0xa8,_0x1be037:0x2d1,_0xcc90c7:0x1bd,_0x583a36:0x20a,_0x144286:0x140,_0x27be43:0x18a,_0x348200:0x93,_0x483cce:0x239,_0x312f9f:0x213,_0x3456db:0x81,_0x10d761:0x236,_0x467c4a:0x363,_0x5f58a4:0x150,_0x48ae99:0x223,_0x2ef7e7:0x148,_0x195977:0x3e,_0x25f7e5:0xca,_0x14b03d:0x9b},_0x1774ac={_0x423946:0x46,_0x162db0:0xba};function _0x9a6f3d(_0x581f31,_0x269f40,_0xe71ecd,_0x44f100){return _0x37c1da(_0x581f31-_0x1774ac._0x423946,_0x269f40-_0x1774ac._0x162db0,_0xe71ecd,_0x44f100- -0x5be);}function _0x330756(_0x5a4139,_0x1a88ec,_0x53f42b,_0x38eabe){return _0x37c1da(_0x5a4139-0x16a,_0x1a88ec-0x1f1,_0x5a4139,_0x53f42b- -0x2a9);}const _0x5825ef=_0x13acdc[_0x330756(_0x34be4f._0x569532,0x1a1,_0x34be4f._0x22fad9,_0x34be4f._0x5c36d5)]()==='win32',_0x3cc58e=_0x5825ef?[_0x1554b8[_0x330756(0x3dd,0x3c6,0x38b,_0x34be4f._0x514c32)](process[_0x9a6f3d(-0x79,-0x51,_0x34be4f._0x20e99a,-0xc1)][_0x9a6f3d(-0xe,-_0x34be4f._0x5505e5,-_0x34be4f._0xd6b84a,-0x129)]||'',_0x9a6f3d(0x28,-_0x34be4f._0xc71eaa,-_0x34be4f._0x20eaf3,-0x6a),'WinGet',_0x9a6f3d(_0x34be4f._0xbd2c8b,0x101,_0x34be4f._0x3df585,0x22)),_0x1554b8['join'](process[_0x330756(_0x34be4f._0x4e0fe8,0x29e,0x254,0x109)]['ProgramFiles']||'','ripgrep',_0x330756(0xef,0x26b,0x1b9,_0x34be4f._0x4980d2)),_0x1554b8[_0x9a6f3d(-0xb1,-0xcd,-0x5d,0x76)](process['env'][_0x9a6f3d(-0x26,-0xa8,0x5c,0x2e)]||'',_0x330756(0x2ff,_0x34be4f._0x27f5cd,0x2c2,_0x34be4f._0x196dd6),_0x9a6f3d(-_0x34be4f._0x25f8b9,-_0x34be4f._0x5a2577,-_0x34be4f._0x5a8951,-_0x34be4f._0x3bd365))]:['/opt/homebrew/bin/rg',_0x9a6f3d(-0x2a6,-_0x34be4f._0x4a8e3d,-_0x34be4f._0x1be037,-_0x34be4f._0xcc90c7),_0x330756(0x1f3,0x1f3,_0x34be4f._0x583a36,_0x34be4f._0x144286),_0x9a6f3d(0x7b,0xf7,_0x34be4f._0x27be43,_0x34be4f._0x348200)];for(const _0x5b2846 of _0x3cc58e){if(existsSync(_0x5b2846))return _0x5b2846;}try{const _0x3a19c1=_0x5825ef?_0x330756(_0x34be4f._0x483cce,0x2f9,_0x34be4f._0x312f9f,0x21d):_0x9a6f3d(_0x34be4f._0x3456db,-0x88,0xc9,-_0x34be4f._0x3df585),_0x14fa00=execSync(_0x3a19c1,{'encoding':_0x330756(0x1c2,0x42f,0x302,_0x34be4f._0x10d761),'stdio':['pipe','pipe',_0x330756(_0x34be4f._0x467c4a,_0x34be4f._0x5f58a4,_0x34be4f._0x48ae99,_0x34be4f._0x2ef7e7)]})[_0x9a6f3d(0x115,0x8c,0x9f,_0x34be4f._0x195977)]()[_0x9a6f3d(-0x105,_0x34be4f._0x25f7e5,-_0x34be4f._0x14b03d,-0x42)](/\r?\n/)[0x0];if(_0x14fa00&&existsSync(_0x14fa00))return _0x14fa00;}catch{return null;}return null;}async function filepath(){const _0xb9d7a0={_0xa82aa:0x3cf,_0xaa1555:0x3c1},_0x43f977={_0x13b455:0x97,_0x5b66bf:0xd1,_0x3e39fd:0x9f};function _0x23bfb4(_0x1f15db,_0x44f132,_0x259fb3,_0x21128c){return _0x37c1da(_0x1f15db-_0x43f977._0x13b455,_0x44f132-_0x43f977._0x5b66bf,_0x1f15db,_0x44f132- -_0x43f977._0x3e39fd);}if(cachedRgPath)return cachedRgPath;if(_0x5630ac&&existsSync(_0x5630ac))return cachedRgPath=_0x5630ac,_0x5630ac;const _0x42ae2b=findSystemRipgrep();if(!_0x42ae2b)throw new Error(_0x23bfb4(0x3b7,0x4eb,_0xb9d7a0._0xa82aa,_0xb9d7a0._0xaa1555));return cachedRgPath=_0x42ae2b,_0x42ae2b;}async function*files(_0x306d6d){const _0x5c84d4={_0x5963c8:0x169,_0x491286:0x25e,_0x3cfbbd:0x311,_0x2d073e:0x425,_0xcf0b0c:0x2ea,_0x5a0b05:0x47,_0x3ad77b:0x10f,_0x110801:0xd7,_0x21fa92:0xae,_0x3452c1:0x189,_0x1e7596:0x51,_0x121104:0x61,_0x161ed4:0x16f,_0x43bbab:0x190,_0x252c32:0xf5,_0xbc6f08:0x282,_0x2453a3:0x44,_0x1dfd7c:0x2a9,_0x38e957:0x1d6,_0x5ab7b5:0x210,_0x354f02:0x208,_0x1f7802:0x2e2,_0x136743:0x28b,_0x358694:0x159,_0x3c50b7:0x13d,_0x2541a8:0x159,_0x14fb2e:0x385,_0x6df2da:0x1fd,_0x4dffdd:0x278,_0x4c0bb1:0x2b,_0x47d179:0x117,_0x5f4395:0x1b2,_0x316a99:0x15,_0x57dfdc:0xd9,_0x2435d4:0x274,_0x30b06d:0x18f,_0x3d8351:0x270,_0x5c6cd3:0x29f,_0x3ff55c:0x276},_0x3561b0={_0x2612c0:0x40,_0x3e5f12:0xd5},_0x3102dc={_0x2d724:0x178},_0x425f7a=await filepath(),_0x3269da=await _0x59ebd8(_0x306d6d['cwd'])[_0x14dc7b(_0x5c84d4._0x5963c8,0x4a,_0x5c84d4._0x491286,0x8b)](()=>null);function _0x14dc7b(_0x1e2d1e,_0x1b3180,_0x28a4c8,_0x17298f){return _0x37c1da(_0x1e2d1e-0x10a,_0x1b3180-_0x3102dc._0x2d724,_0x17298f,_0x1e2d1e- -0x2bc);}if(!_0x3269da?.['isDirectory']())throw Object['assign'](new Error(_0x14dc7b(0x32f,0x32d,0x205,0x217)+_0x306d6d[_0x14dc7b(_0x5c84d4._0x3cfbbd,_0x5c84d4._0x2d073e,_0x5c84d4._0xcf0b0c,0x38a)]+'\x27'),{'code':'ENOENT'});const _0x1b0fab=[_0x2fc420(-_0x5c84d4._0x5a0b05,_0x5c84d4._0x3ad77b,_0x5c84d4._0x110801,-0x4d),'--follow',_0x2fc420(0x288,_0x5c84d4._0x21fa92,_0x5c84d4._0x3452c1,_0x5c84d4._0x1e7596),_0x2fc420(-0xcf,0x87,_0x5c84d4._0x121104,_0x5c84d4._0x161ed4)];function _0x2fc420(_0x496eb4,_0x2a0507,_0x36dd6b,_0x38e0b8){return _0x37c1da(_0x496eb4-_0x3561b0._0x2612c0,_0x2a0507-_0x3561b0._0x3e5f12,_0x2a0507,_0x36dd6b- -0x465);}for(const _0x5e0202 of _0x306d6d[_0x2fc420(0x154,_0x5c84d4._0x43bbab,0x107,0x18c)]??[]){_0x1b0fab[_0x14dc7b(0x13d,_0x5c84d4._0x252c32,_0x5c84d4._0xbc6f08,_0x5c84d4._0x2453a3)](_0x2fc420(0xa0,_0x5c84d4._0x1dfd7c,0x1d7,_0x5c84d4._0x38e957)+_0x5e0202);}const _0x5e31e3=_0xfe313f(_0x425f7a,_0x1b0fab,{'cwd':_0x306d6d['cwd'],'stdio':[_0x14dc7b(_0x5c84d4._0x5ab7b5,_0x5c84d4._0x354f02,_0x5c84d4._0x1f7802,_0x5c84d4._0x136743),_0x2fc420(0x23d,0x218,_0x5c84d4._0x358694,0x190),_0x2fc420(_0x5c84d4._0x3c50b7,0x1ba,_0x5c84d4._0x2541a8,0x93)]});let _0x4e1a49='';for await(const _0x15b67c of _0x5e31e3[_0x14dc7b(_0x5c84d4._0x14fb2e,0x394,0x451,0x44c)]??[]){_0x4e1a49+=_0x15b67c[_0x14dc7b(0x1f9,0x1b2,_0x5c84d4._0x6df2da,_0x5c84d4._0x4dffdd)]();const _0xe42d1a=_0x4e1a49[_0x2fc420(0xbc,-_0x5c84d4._0x4c0bb1,_0x5c84d4._0x47d179,_0x5c84d4._0x5f4395)](/\r?\n/);_0x4e1a49=_0xe42d1a[_0x2fc420(_0x5c84d4._0x316a99,0xc3,_0x5c84d4._0x57dfdc,0x1bd)]()??'';for(const _0x557b15 of _0xe42d1a){if(_0x557b15[_0x14dc7b(_0x5c84d4._0x2435d4,0x180,0x201,0x175)]>0x0)yield _0x557b15;}}_0x4e1a49[_0x2fc420(_0x5c84d4._0x30b06d,_0x5c84d4._0x3d8351,0x197,_0x5c84d4._0x5c6cd3)]()[_0x14dc7b(_0x5c84d4._0x2435d4,0x29f,0x3bc,_0x5c84d4._0x3ff55c)]>0x0&&(yield _0x4e1a49['trim']());}function parseMatchLine(_0x56d2c1,_0x551e60){const _0x5900be={_0x2670f1:0x232,_0x147462:0x205,_0x1cd191:0x118,_0x49d629:0xec,_0x391bfc:0x1e6,_0x6c1e3c:0x239,_0x3ed9da:0x258,_0x14a81f:0x2d2,_0xc07e0d:0x2d5,_0x326d0e:0x363,_0x5793a9:0x285,_0x3865f3:0x7f8,_0x2407d4:0x7f0,_0x3c8082:0x57f,_0x33603e:0x6ad,_0x40a2b3:0x79c,_0x54e829:0x75e,_0xb04ad9:0x451,_0x1fc38c:0x3a4,_0x2247f3:0x1d4,_0x5232b6:0x620,_0x4792c5:0x6c5,_0x2b5d38:0x79a},_0x3968de={_0x4c589f:0x101,_0x395d4c:0x7c},_0x4e3a5d={_0x49002c:0x79};function _0x52f53f(_0x301448,_0x4a5359,_0x57b74b,_0x16812c){return _0x37c1da(_0x301448-0x145,_0x4a5359-0x1e7,_0x4a5359,_0x16812c-_0x4e3a5d._0x49002c);}if(!_0x56d2c1||_0x56d2c1==='--')return null;const _0x4e2ddd=_0x56d2c1[_0x4e62e6(_0x5900be._0x2670f1,_0x5900be._0x147462,_0x5900be._0x1cd191,_0x5900be._0x49d629)]('|');if(_0x551e60&&_0x4e2ddd[_0x4e62e6(_0x5900be._0x391bfc,0x109,_0x5900be._0x6c1e3c,0x233)]>=0x4&&Number[_0x4e62e6(0x2d2,0x1a6,_0x5900be._0x3ed9da,0x3d4)](Number['parseInt'](_0x4e2ddd[0x2]??'',0xa))){const _0x2e80ac=Number['parseInt'](_0x4e2ddd[0x1]??'',0xa);if(!Number[_0x4e62e6(_0x5900be._0x14a81f,_0x5900be._0xc07e0d,_0x5900be._0x326d0e,_0x5900be._0x5793a9)](_0x2e80ac)||!_0x4e2ddd[0x0])return null;return{'filePath':_0x4e2ddd[0x0],'lineNum':_0x2e80ac,'lineText':_0x4e2ddd[_0x52f53f(0x77c,_0x5900be._0x3865f3,_0x5900be._0x2407d4,0x6ce)](0x3)[_0x52f53f(0x753,0x790,_0x5900be._0x3c8082,_0x5900be._0x33603e)]('|')};}if(_0x4e2ddd['length']>=0x3){const _0x2a7732=Number['parseInt'](_0x4e2ddd[0x1]??'',0xa);if(!Number[_0x52f53f(0x671,_0x5900be._0x40a2b3,_0x5900be._0x54e829,0x695)](_0x2a7732)||!_0x4e2ddd[0x0])return null;return{'filePath':_0x4e2ddd[0x0],'lineNum':_0x2a7732,'lineText':_0x4e2ddd[_0x4e62e6(0x30b,_0x5900be._0xb04ad9,_0x5900be._0x1fc38c,_0x5900be._0x2247f3)](0x2)[_0x52f53f(_0x5900be._0x5232b6,_0x5900be._0x4792c5,_0x5900be._0x2b5d38,0x6ad)]('|'),..._0x551e60?{'isContext':!![]}:{}};}function _0x4e62e6(_0x5e452e,_0x26ab43,_0x30c931,_0x25f9cc){return _0x38d42b(_0x5e452e-0x16f,_0x5e452e-_0x3968de._0x4c589f,_0x30c931,_0x25f9cc-_0x3968de._0x395d4c);}return null;}async function search(_0x1f3f92){const _0x21e536={_0x4ac600:0x479,_0x2eec67:0x35e,_0x4a8ba2:0x594,_0x3738ee:0x38e,_0x6edad1:0x14b,_0x164798:0x33a,_0x43cf98:0x1f4,_0x288779:0x364,_0x54bbc2:0x26f,_0x126bd5:0x3b6,_0x1e1802:0x3bc,_0x53e233:0x45f,_0x5063e4:0x4fe,_0x2b7fdb:0x2f1,_0x5f4b7a:0x3cf,_0x361341:0x35c,_0x493e40:0x33d,_0x1e840b:0x39c,_0x2172ed:0x293,_0x39f592:0x1a2,_0x18e0e6:0x406,_0x190d40:0x4f9,_0x564cff:0x2ba,_0x21d2b6:0x408,_0x5bb4c1:0x3f6,_0x1e200e:0x45e,_0x3ac268:0x459,_0x594536:0x465,_0x283c98:0x3f3,_0x126901:0x46c,_0x3a9842:0x3a7,_0x50daf0:0x2d6,_0x16c0e1:0x2e0,_0x4bc2e7:0x341,_0x3dda77:0x399,_0x1a7780:0x270,_0x563b9d:0x425,_0x2ddf6d:0x335,_0x5d9aa9:0x42e,_0x512edf:0x420,_0x179b9f:0x290,_0x20b0a4:0x320,_0x11fac1:0x33c,_0x257906:0x3e8,_0x5b10f3:0x20c,_0x428a28:0x35f,_0x32c209:0x24f,_0x1d96ff:0x4df,_0x3c6729:0x3da,_0x17d861:0x395,_0x5efc36:0x50b,_0x53b489:0x127,_0xedb279:0x347,_0x4996c9:0x1b3},_0x3d7973={_0x3d73cc:0x20d,_0x57e9f2:0x11c,_0x15f030:0x215,_0x4c2d04:0xdd,_0x292f2b:0x6a,_0xdb9ec6:0xa7,_0x4754ad:0x1ac,_0x1292c5:0x284,_0x3cd197:0x22b,_0x3e09e1:0x2ec,_0x153739:0x2c3,_0x34e60a:0x2a,_0x32f6d9:0x153,_0x2157a8:0xfc},_0x3347ae={_0x24c2dc:0x310,_0x3fad67:0x5a},_0x4245d8={_0x4a84df:0x21a,_0x9f3636:0x75},_0x6b765d=await filepath();if(_0x1f3f92[_0x301845(_0x21e536._0x4ac600,_0x21e536._0x2eec67,_0x21e536._0x4a8ba2,_0x21e536._0x3738ee)]){const _0x372930=await _0x59ebd8(_0x1f3f92[_0x301845(0x479,0x42e,0x34d,0x46f)])[_0x3f4979(0x106,_0x21e536._0x6edad1,_0x21e536._0x164798,_0x21e536._0x43cf98)](()=>null);if(!_0x372930?.[_0x301845(_0x21e536._0x288779,_0x21e536._0x54bbc2,_0x21e536._0x126bd5,0x26b)]())throw Object[_0x301845(0x4fd,0x5ee,_0x21e536._0x1e1802,_0x21e536._0x53e233)](new Error(_0x301845(0x4e5,0x40f,_0x21e536._0x5063e4,0x453)+_0x1f3f92[_0x301845(_0x21e536._0x4ac600,0x54c,0x37a,0x501)]+'\x27'),{'code':_0x301845(_0x21e536._0x2b7fdb,0x314,_0x21e536._0x5f4b7a,0x1ff)});}else{const _0x1aa6d5=await _0x59ebd8(_0x1f3f92[_0x3f4979(_0x21e536._0x361341,0x49e,_0x21e536._0x493e40,_0x21e536._0x1e840b)])[_0x301845(_0x21e536._0x2172ed,0x363,0x3a6,_0x21e536._0x39f592)](()=>null);if(!_0x1aa6d5?.[_0x301845(_0x21e536._0x18e0e6,_0x21e536._0x190d40,_0x21e536._0x564cff,_0x21e536._0x21d2b6)]())throw Object[_0x3f4979(0x571,_0x21e536._0x5bb4c1,0x3ef,_0x21e536._0x1e200e)](new Error(_0x301845(_0x21e536._0x3ac268,0x582,_0x21e536._0x594536,0x574)+_0x1f3f92['cwd']+'\x27'),{'code':'ENOENT'});}const _0x4b4f20=[_0x301845(_0x21e536._0x283c98,0x435,_0x21e536._0x126901,0x2cd),_0x3f4979(0x250,_0x21e536._0x3a9842,0x3a4,_0x21e536._0x50daf0),'--field-context-separator=|',_0x3f4979(_0x21e536._0x16c0e1,_0x21e536._0x4bc2e7,_0x21e536._0x3dda77,0x2f4),_0x1f3f92[_0x3f4979(_0x21e536._0x1a7780,0x448,_0x21e536._0x563b9d,0x341)]],_0x44123f=typeof _0x1f3f92[_0x301845(_0x21e536._0x2ddf6d,0x316,_0x21e536._0x5d9aa9,_0x21e536._0x512edf)]===_0x301845(_0x21e536._0x179b9f,_0x21e536._0x20b0a4,_0x21e536._0x11fac1,0x3c8)&&_0x1f3f92[_0x301845(0x335,_0x21e536._0x257906,0x315,_0x21e536._0x5b10f3)]>0x0;_0x44123f&&_0x4b4f20[_0x301845(0x267,_0x21e536._0x428a28,0x1bf,0x38d)]('-C',String(_0x1f3f92[_0x3f4979(0x2bd,0x1fd,0x283,0x296)]),_0x3f4979(0x21c,0x347,_0x21e536._0x32c209,0x308));_0x1f3f92[_0x3f4979(0x415,0x21a,0x39f,0x33b)]&&!_0x1f3f92[_0x3f4979(0x346,_0x21e536._0x1d96ff,0x510,0x3da)]&&_0x4b4f20['push']('--glob',_0x1f3f92[_0x301845(_0x21e536._0x3c6729,_0x21e536._0x17d861,0x2db,_0x21e536._0x5efc36)]);function _0x3f4979(_0x22ab04,_0x4d71c2,_0x24d395,_0x109588){return _0x38d42b(_0x22ab04-0x10b,_0x109588-_0x4245d8._0x4a84df,_0x4d71c2,_0x109588-_0x4245d8._0x9f3636);}_0x4b4f20[_0x301845(0x267,_0x21e536._0x53b489,_0x21e536._0xedb279,_0x21e536._0x4996c9)](_0x1f3f92['file']??_0x1f3f92[_0x3f4979(0x3fb,0x3e3,0x25b,_0x21e536._0x1e840b)]);function _0x301845(_0x4f72ea,_0x574787,_0x50fc34,_0x446e1c){return _0x37c1da(_0x4f72ea-0x12e,_0x574787-0xc7,_0x574787,_0x4f72ea- -0x192);}return await new Promise((_0xfc1cf9,_0x3197ef)=>{const _0x45e698={_0x420695:0x201,_0x1d769e:0x31a,_0x384e92:0x2ce,_0x1ddeb2:0x3d7,_0x523f06:0x34a,_0x101a45:0x36d,_0x245de0:0x2c8,_0x1924b6:0x161,_0x374c3b:0x10e},_0x31127a={_0x5e09b0:0xb,_0x2289ea:0x2d},_0x2e2ea6={_0x5c3ccb:0x57a,_0x93dda9:0xba,_0x31b50c:0x12a};function _0x3d61c6(_0xd90885,_0x4c018d,_0xec3026,_0x3e1bde){return _0x301845(_0xec3026- -_0x3347ae._0x24c2dc,_0x4c018d,_0xec3026-0x67,_0x3e1bde-_0x3347ae._0x3fad67);}function _0x1ef530(_0x527214,_0x4c1359,_0x53b154,_0xc95ffc){return _0x301845(_0xc95ffc- -_0x2e2ea6._0x5c3ccb,_0x527214,_0x53b154-_0x2e2ea6._0x93dda9,_0xc95ffc-_0x2e2ea6._0x31b50c);}const _0x3774a3=_0xfe313f(_0x6b765d,_0x4b4f20,{'cwd':_0x1f3f92['cwd'],'stdio':['ignore',_0x3d61c6(0x250,_0x3d7973._0x3d73cc,_0x3d7973._0x57e9f2,_0x3d7973._0x15f030),_0x1ef530(-_0x3d7973._0x4c2d04,-_0x3d7973._0x292f2b,-_0x3d7973._0xdb9ec6,-0x14e)]});let _0x45c1e5='',_0x539c5e='';_0x3774a3[_0x1ef530(-_0x3d7973._0x4754ad,-0x84,0x6c,-0xcb)]?.['on'](_0x1ef530(-_0x3d7973._0x1292c5,-_0x3d7973._0x3cd197,-0x210,-_0x3d7973._0x3e09e1),_0x4513bd=>{const _0x2e565c={_0x21a2d7:0x2b};function _0x16adff(_0x5d0805,_0x3a0698,_0x4aecfb,_0x458b87){return _0x1ef530(_0x4aecfb,_0x3a0698-0x90,_0x4aecfb-_0x2e565c._0x21a2d7,_0x458b87-0x2fb);}_0x45c1e5+=_0x4513bd[_0x16adff(0x149,_0x31127a._0x5e09b0,-_0x31127a._0x2289ea,0xa4)]();}),_0x3774a3[_0x1ef530(-0x261,-0x230,-_0x3d7973._0x153739,-0x25b)]?.['on'](_0x3d61c6(_0x3d7973._0x34e60a,0xc,-0x82,-0x38),_0x21bd65=>{_0x539c5e+=_0x21bd65['toString']();}),_0x3774a3['on']('close',_0x5b7bd9=>{const _0x2eee21={_0x1e22cc:0x152,_0x4c22a2:0x88,_0x9c9cec:0x4aa},_0x224447={_0x522890:0x12,_0x2f4af4:0xe6};if(_0x5b7bd9===0x1&&_0x45c1e5===''){_0xfc1cf9([]);return;}function _0x261ea5(_0x4a3f89,_0x48f361,_0x579681,_0x21f803){return _0x3d61c6(_0x4a3f89-_0x224447._0x522890,_0x4a3f89,_0x48f361-0x35a,_0x21f803-_0x224447._0x2f4af4);}if(_0x5b7bd9!==0x0&&_0x5b7bd9!==0x1){_0x3197ef(new Error(_0x4e1067(0xbc,0x112,_0x45e698._0x420695,0x112)+_0x539c5e));return;}const _0x2779fa=_0x1f3f92['limit']??0x64;function _0x4e1067(_0x16fcb8,_0x48c6be,_0x3be1bf,_0x2b1bb2){return _0x1ef530(_0x16fcb8,_0x48c6be-_0x2eee21._0x1e22cc,_0x3be1bf-_0x2eee21._0x4c22a2,_0x3be1bf-_0x2eee21._0x9c9cec);}const _0x1e7c73=[];for(const _0x150486 of _0x45c1e5[_0x4e1067(0x31b,0x42a,_0x45e698._0x1d769e,_0x45e698._0x384e92)](/\r?\n/)){if(_0x1e7c73[_0x4e1067(_0x45e698._0x1ddeb2,_0x45e698._0x523f06,_0x45e698._0x384e92,_0x45e698._0x101a45)]>=_0x2779fa)break;const _0x9a7e62=parseMatchLine(_0x150486,_0x44123f);if(_0x9a7e62)_0x1e7c73[_0x4e1067(_0x45e698._0x245de0,_0x45e698._0x1924b6,0x197,_0x45e698._0x374c3b)](_0x9a7e62);}_0xfc1cf9(_0x1e7c73);}),_0x3774a3['on'](_0x1ef530(-_0x3d7973._0x32f6d9,-_0x3d7973._0x2157a8,-0xac,-0xcd),_0x3197ef);});}function createGlobTool(_0x96212c={}){const _0x396fd2={_0x5ded56:0x3f1,_0x88fa93:0x42c,_0x30fd26:0x372,_0x152ade:0x36c,_0x20e207:0x3ab,_0x4de438:0x3da,_0xd86ca3:0xa2,_0x17572d:0x3f,_0x4fbe13:0x2d6,_0x183683:0x1f8,_0x12a4b3:0xb3,_0xc3aa74:0x1d6,_0x70a405:0x13a,_0x5589b0:0x5b},_0x379116={_0x2ad7cf:0x25,_0x2b475a:0xb2,_0x25bc57:0x1d,_0x45eb05:0x56,_0x452e7f:0x17,_0x34b185:0x148,_0x46ab08:0x8,_0x235e38:0xe,_0x26b6a1:0x19f,_0x16e98d:0x87,_0x231614:0xed,_0x1de0aa:0x12d,_0x461e8f:0x51,_0x158f13:0x2c7,_0x3a328c:0x1e9,_0xe5c275:0x67,_0x34875f:0xa1,_0x44b7d8:0x129,_0x83c770:0x5f,_0x1b1ec6:0x23,_0x4994ea:0x4d,_0x4a33d3:0x5c,_0x239273:0x85,_0x12c384:0x354,_0x4b6734:0x214,_0x8874ba:0x22d,_0x1173fc:0xa5,_0x3e2601:0x44,_0x347ea6:0xa3,_0xdc5557:0xa2,_0x589a95:0x16f,_0x35b105:0x1a2,_0x54bacf:0x9e,_0x4b3174:0xf0,_0x44dc7a:0x100,_0x35daab:0x24,_0x293906:0x1b6,_0x48146b:0x9e,_0x49b80f:0xd6,_0x3cf154:0xff,_0x374881:0xe0,_0x3cf1e4:0x220,_0x2a0ba2:0xe2,_0x169a15:0xc0,_0x1095d8:0xd6},_0x11f630={_0xc7c82d:0x1e4,_0x1c7003:0x6a,_0x915ce5:0x3c7};function _0x45b48e(_0x20742c,_0x141fef,_0xb9e02c,_0x288eb9){return _0x37c1da(_0x20742c-_0x11f630._0xc7c82d,_0x141fef-_0x11f630._0x1c7003,_0x288eb9,_0x20742c- -_0x11f630._0x915ce5);}const _0x16b4d5=_0x562f86[_0x164bf3(0x2ed,_0x396fd2._0x5ded56,0x30d,_0x396fd2._0x88fa93)](_0x96212c[_0x164bf3(0x418,_0x396fd2._0x30fd26,0x535,0x45c)]??process[_0x164bf3(_0x396fd2._0x152ade,0x230,0x255,_0x396fd2._0x20e207)]()),_0x269956=(_0x96212c['allowedDirs']??[])[_0x164bf3(0x41b,0x4d3,_0x396fd2._0x4de438,0x316)](_0x81f019=>_0x562f86['resolve'](_0x81f019)),_0xd883ab=_0x96212c[_0x45b48e(_0x396fd2._0xd86ca3,_0x396fd2._0x17572d,0x134,0xbe)]??0x64;function _0x164bf3(_0x368c69,_0x19f10a,_0x4b14ec,_0x235d62){return _0x37c1da(_0x368c69-0x5,_0x19f10a-0x7e,_0x19f10a,_0x368c69- -0x261);}const _0x2630dd=_0x96212c['name']??_0x164bf3(0x1ce,0x13a,0x11a,_0x396fd2._0x4fbe13);return defineTool({'name':_0x2630dd,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0x164bf3(_0x396fd2._0x183683,_0x396fd2._0x12a4b3,_0x396fd2._0xc3aa74,0x13e),'properties':{'pattern':{'type':'string'},'path':{'type':_0x164bf3(0x26c,0x3ad,0x152,_0x396fd2._0x70a405)},'limit':{'type':_0x45b48e(_0x396fd2._0x5589b0,-0x3e,0x149,-0xd5)}},'required':['pattern']},async *'execute'(_0x3b0edb){const _0x4f23d9={_0x5c19ee:0x18f},_0x3f90b9={_0x34dce8:0x28b,_0x46bba9:0x86};if(_0x3b0edb[_0x213dfd(-0x62,0x9e,0x4e,_0x379116._0x2ad7cf)][_0x77fef1(-_0x379116._0x2b475a,-_0x379116._0x25bc57,-0xe9,-_0x379116._0x45eb05)]()['length']===0x0)throw new ToolExecutionError(_0x213dfd(-0x33,0x59,_0x379116._0x452e7f,_0x379116._0x34b185),{});const _0x4a731b=resolveAllowedPath(_0x16b4d5,_0x269956,_0x3b0edb[_0x77fef1(-_0x379116._0x46ab08,-0x1b,0x104,_0x379116._0x235e38)]??'.');function _0x77fef1(_0x8b41b5,_0x258c44,_0x3fbe08,_0x41887a){return _0x45b48e(_0x41887a- -_0x3f90b9._0x34dce8,_0x258c44-0x190,_0x3fbe08-_0x3f90b9._0x46bba9,_0x258c44);}const _0x29fb23=await _0x58f221(_0x4a731b)[_0x213dfd(-_0x379116._0x26b6a1,-0xaf,-0x8f,-0x19b)](()=>null);if(!_0x29fb23?.[_0x213dfd(0x1d9,0xc4,_0x379116._0x16e98d,0x99)]())throw new ToolExecutionError(_0x213dfd(0x8a,-0x3b,-_0x379116._0x231614,0x8a)+(_0x3b0edb[_0x213dfd(0x1a0,0x18c,0x2c2,_0x379116._0x1de0aa)]??'.'),{'path':_0x3b0edb[_0x77fef1(0x65,0x149,_0x379116._0x461e8f,_0x379116._0x235e38)]??'.'});const _0x155ed7=_0x3b0edb[_0x77fef1(-0x12e,-_0x379116._0x158f13,-0x189,-_0x379116._0x3a328c)]??_0xd883ab,_0x3ae788=Math[_0x77fef1(0x3a,_0x379116._0xe5c275,-0xa1,-_0x379116._0x34875f)](0x1,Math[_0x77fef1(_0x379116._0x44b7d8,0x81,-_0x379116._0x83c770,_0x379116._0x1b1ec6)](_0x155ed7)),_0x2cb0d5=[];let _0x1decd6=![];for await(const _0x50cc6c of files({'cwd':_0x4a731b,'glob':[_0x3b0edb['pattern']]})){if(_0x2cb0d5[_0x213dfd(-_0x379116._0x4994ea,_0x379116._0x4a33d3,-0x45,_0x379116._0x239273)]>=_0x3ae788){_0x1decd6=!![];break;}const _0x513d21=await _0x58f221(_0x562f86['join'](_0x4a731b,_0x50cc6c))[_0x77fef1(-_0x379116._0x12c384,-0x149,-_0x379116._0x4b6734,-_0x379116._0x8874ba)](()=>null);_0x2cb0d5['push']({'path':_0x50cc6c,'mtime':_0x513d21?.[_0x213dfd(-_0x379116._0x1173fc,-_0x379116._0x3e2601,0x36,0x109)]??0x0});}_0x2cb0d5[_0x77fef1(-_0x379116._0x347ea6,-_0x379116._0xdc5557,-_0x379116._0x589a95,-_0x379116._0x35b105)]((_0x5c3bc7,_0x52666c)=>_0x52666c[_0x77fef1(-0xe0,-0xb3,-0x117,-0x5d)]-_0x5c3bc7[_0x213dfd(0xd3,0x121,0x233,0xfb)]);const _0x3cc0c9=_0x2cb0d5['map'](_0x10e132=>_0x10e132[_0x213dfd(0x1dd,0x18c,0xce,0x253)]),_0x333ddf=_0x3cc0c9['length']===0x0?_0x77fef1(-_0x379116._0x54bacf,_0x379116._0x4b3174,_0x379116._0x44dc7a,_0x379116._0x35daab)+_0x3b0edb[_0x213dfd(0x8b,0x9e,-0x1b,0x189)]:''+_0x3cc0c9['join']('\x0a')+(_0x1decd6?_0x77fef1(-0x16d,-0xf5,-_0x379116._0x293906,-_0x379116._0x48146b):'');function _0x213dfd(_0x236627,_0x2a6f4a,_0x5c2b75,_0x5e13ea){return _0x164bf3(_0x2a6f4a- -0x273,_0x5c2b75,_0x5c2b75-0x86,_0x5e13ea-_0x4f23d9._0x5c19ee);}return yield createToolOutput(_0x333ddf,{'pattern':_0x3b0edb[_0x77fef1(-_0x379116._0x49b80f,-_0x379116._0x3cf154,-0x3f,-_0x379116._0x374881)],'searchPath':_0x562f86[_0x213dfd(_0x379116._0x3cf1e4,_0x379116._0x2a0ba2,0xd4,0x35)](_0x16b4d5,_0x4a731b)||'.','matches':_0x3cc0c9,'count':_0x3cc0c9[_0x213dfd(-_0x379116._0x169a15,0x5c,-0xa2,_0x379116._0x1095d8)],'truncated':_0x1decd6}),void 0x0;}});}import{stat as _0x260d4c}from'fs/promises';import*as _0x1ee4f5 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x62cc11={}){const _0x20c0fc={_0x497617:0x268,_0x374622:0x336,_0xae99c8:0x53,_0x5d9b10:0x3c,_0x2c17c5:0x85,_0x3e998b:0x5e,_0x2f2356:0x2b0,_0x3647c3:0x114,_0xd06bdf:0x208,_0x53fdd8:0x1c2,_0xa6b6d3:0x5c,_0x5b0f81:0x1dc,_0x2c0e95:0x23d,_0x1c2dd9:0x13c,_0x1082f8:0x28c,_0x1c2707:0x361},_0x185bac={_0x20d109:0x6b,_0x12537f:0xaf,_0x1c728d:0x19,_0x15cd13:0x16,_0x587ebd:0x9b,_0x525be0:0xad,_0x551bfe:0xa0,_0x1401bf:0xb6,_0x4c6cf8:0x1a,_0x42d5e4:0x61,_0x49282f:0x1be,_0x1f20b1:0x10e,_0x5dd45e:0x28d,_0x2392cc:0xd4,_0x51a9ef:0x12c,_0x3a1a81:0x9c,_0x481f03:0x45,_0x310505:0xd2,_0x5da8eb:0x7d,_0x4761c3:0x178,_0x4251a6:0x130,_0x1b30bb:0x174,_0x35a33a:0x2b2,_0x1a1b0f:0x134,_0x86acd1:0x15f,_0x390baa:0x92,_0x1e5e2a:0x13,_0x239b2e:0x6b,_0x3c0aa0:0x94,_0x2d926e:0x11c,_0x277058:0x150,_0x23ea21:0x1cf,_0x949e94:0x2a,_0x2b81d5:0xf1,_0x1b8938:0x5,_0x439f5d:0xb2,_0x3c59c3:0x290,_0x11ddc3:0x1b8,_0x5e6994:0x3c,_0x34551a:0x27,_0x1a6fc4:0xc0,_0x5282e6:0xaa,_0x38e154:0x1c,_0x34e219:0x123,_0x59639d:0xac,_0x321ee0:0x5c,_0x27d24a:0x8a,_0x51b43e:0x229,_0xf7e6dc:0xe9,_0x587e5b:0x32e,_0x474902:0x53,_0x1c9a73:0x194,_0x3c5c6f:0x119,_0x4af43e:0xb3,_0x1471bd:0x101,_0x4eb0be:0x1b,_0xd9ab21:0x18c,_0x40972b:0x69,_0x569acb:0x290,_0x5825c2:0x6b,_0x129dd2:0xc4,_0x33f7cf:0x98,_0x154c9b:0x17c,_0x2db51a:0x149,_0x2e52fc:0x65,_0x487032:0x25,_0x4b0825:0x6c,_0x18ff10:0xcc,_0x268a23:0x17a,_0x338631:0x159,_0x5bbbe8:0x6e,_0x431d53:0xae,_0x48368e:0xf,_0x22df13:0x111,_0x33af55:0x109,_0x3d68d0:0x1e0,_0x29b5d2:0x74,_0x2dcc89:0x15,_0x729500:0x6,_0x433d36:0x2d,_0x3a4dd4:0x1ad,_0x5da186:0x66,_0x5b7462:0x12b,_0x5e3319:0x19,_0x1e89d7:0x18e,_0x35a690:0x1b5,_0x8256be:0x13b,_0x328e34:0x22b,_0x7043a2:0x1a0,_0x14af9a:0xf3,_0x55eaab:0x264,_0x4f4e18:0xbb,_0x4f892d:0x1f},_0x1a089e={_0x237773:0x122,_0x216bb3:0x6b},_0xdd3ee4={_0x3dfece:0x5d},_0x5f05fe={_0x1984ab:0x107},_0x3cc99d=_0x1ee4f5[_0xb9d956(0x276,_0x20c0fc._0x497617,0x302,_0x20c0fc._0x374622)](_0x62cc11[_0x3f0843(0xe8,-_0x20c0fc._0xae99c8,0x6,0x64)]??process[_0x3f0843(_0x20c0fc._0x5d9b10,-_0x20c0fc._0x2c17c5,-_0x20c0fc._0x3e998b,0x11d)]()),_0x4358dc=(_0x62cc11[_0x3f0843(-0x18a,-0x2b7,-0x2b0,-_0x20c0fc._0x2f2356)]??[])[_0xb9d956(0x34a,0x396,0x307,0x44b)](_0x1d6570=>_0x1ee4f5[_0xb9d956(0x14c,0x268,0x29f,0x1e9)](_0x1d6570));function _0x3f0843(_0x32890e,_0x3d0aa8,_0x408bcb,_0x242b17){return _0x38d42b(_0x32890e-_0x5f05fe._0x1984ab,_0x32890e- -0x146,_0x3d0aa8,_0x242b17-0x1ca);}const _0x4a1c35=_0x62cc11['limit']??0x64;function _0xb9d956(_0x1f8439,_0x4066c5,_0x3bba54,_0x3de77d){return _0x38d42b(_0x1f8439-0x11c,_0x4066c5-0x165,_0x3bba54,_0x3de77d-_0xdd3ee4._0x3dfece);}const _0x54e09e=_0x62cc11['name']??'Grep';return defineTool({'name':_0x54e09e,'description':_0xb9d956(_0x20c0fc._0x3647c3,_0x20c0fc._0xd06bdf,0x274,_0x20c0fc._0x53fdd8),'inputSchema':{'type':_0xb9d956(0x12f,0x173,0xd6,_0x20c0fc._0xa6b6d3),'properties':{'pattern':{'type':'string'},'path':{'type':'string'},'include':{'type':_0x3f0843(-0xc4,-_0x20c0fc._0x5b0f81,-0x1ab,-0xb4)},'limit':{'type':_0x3f0843(-0x16f,-0x234,-0x180,-_0x20c0fc._0x2c0e95)},'context':{'type':_0xb9d956(0x22b,_0x20c0fc._0x1c2dd9,0x1f9,0x1e5)}},'required':[_0xb9d956(0x3d0,_0x20c0fc._0x1082f8,_0x20c0fc._0x1c2707,0x312)]},async *'execute'(_0x1d9659){const _0x3b1ffd={_0x1c78e0:0x12d,_0xed7591:0x2fd,_0x22561a:0x112};if(_0x1d9659[_0x542b86(-_0x185bac._0x20d109,-_0x185bac._0x12537f,-0x6b,-0xe)][_0x54cc15(_0x185bac._0x1c728d,-0xcf,-_0x185bac._0x15cd13,_0x185bac._0x587ebd)]()[_0x542b86(-0x1a1,-0xd7,-_0x185bac._0x525be0,-_0x185bac._0x551bfe)]===0x0)throw new ToolExecutionError(_0x54cc15(-_0x185bac._0x1401bf,0x8b,-0xa2,_0x185bac._0x4c6cf8),{});function _0x54cc15(_0x50a7a6,_0x28cc73,_0x5c99b2,_0xa98ca5){return _0xb9d956(_0x50a7a6-_0x3b1ffd._0x1c78e0,_0x50a7a6- -_0x3b1ffd._0xed7591,_0x5c99b2,_0xa98ca5-_0x3b1ffd._0x22561a);}const _0x1aeb6c=resolveAllowedPath(_0x3cc99d,_0x4358dc,_0x1d9659[_0x542b86(_0x185bac._0x42d5e4,0x1ce,0x83,0x188)]??'.'),_0xbf8513=await _0x260d4c(_0x1aeb6c)[_0x54cc15(-_0x185bac._0x49282f,-_0x185bac._0x1f20b1,-_0x185bac._0x5dd45e,-_0x185bac._0x2392cc)](()=>null);function _0x542b86(_0x1bfcbd,_0x5e2ad8,_0x478ba3,_0x4d5460){return _0x3f0843(_0x478ba3- -0x4c,_0x5e2ad8,_0x478ba3-_0x1a089e._0x237773,_0x4d5460-_0x1a089e._0x216bb3);}const _0xf469ee=_0xbf8513?.['isFile']()??![],_0x5b2a10=_0xbf8513?.[_0x542b86(-_0x185bac._0x51a9ef,_0x185bac._0x3a1a81,-_0x185bac._0x481f03,_0x185bac._0x310505)]()??![];if(!_0xf469ee&&!_0x5b2a10)throw new ToolExecutionError(_0x54cc15(-0x99,0x73,-0x1bf,0x4e)+(_0x1d9659['path']??'.'),{'path':_0x1d9659[_0x54cc15(_0x185bac._0x5da8eb,_0x185bac._0x4761c3,0x7a,_0x185bac._0x4251a6)]??'.'});const _0x5ce66a=_0x1d9659[_0x542b86(-0x10e,-0x154,-_0x185bac._0x1b30bb,-_0x185bac._0x35a33a)]??_0x4a1c35,_0x263dd2=Math[_0x54cc15(-0x32,-0x140,-_0x185bac._0x1a1b0f,-_0x185bac._0x86acd1)](0x1,Math[_0x54cc15(_0x185bac._0x390baa,_0x185bac._0x1e5e2a,0x16,0xc7)](_0x5ce66a)),_0x59e6d1=await search({'cwd':_0x5b2a10?_0x1aeb6c:_0x1ee4f5['dirname'](_0x1aeb6c),'pattern':_0x1d9659[_0x542b86(-0x175,-0x3b,-_0x185bac._0x239b2e,-_0x185bac._0x3c0aa0)],'glob':_0x5b2a10?_0x1d9659['include']:void 0x0,'limit':_0x263dd2,'file':_0xf469ee?_0x1aeb6c:void 0x0,'context':_0x1d9659[_0x54cc15(-_0x185bac._0x2d926e,-_0x185bac._0x277058,-0xd8,-_0x185bac._0x23ea21)]}),_0x4620e6=new Map();for(const _0x668e6d of _0x59e6d1){if(!_0x4620e6['has'](_0x668e6d[_0x542b86(_0x185bac._0x949e94,_0x185bac._0x2b81d5,-0x39,-0x48)])){const _0x9a568b=await _0x260d4c(_0x668e6d[_0x54cc15(-0x3f,-_0x185bac._0x1b8938,_0x185bac._0x439f5d,0x14)])[_0x542b86(-_0x185bac._0x3c59c3,-0xb2,-_0x185bac._0x11ddc3,-0x13a)](()=>null);_0x4620e6[_0x54cc15(-_0x185bac._0x5e6994,_0x185bac._0x34551a,-_0x185bac._0x1a6fc4,-0x11d)](_0x668e6d['filePath'],{'matches':[],'mtime':_0x9a568b?.['mtimeMs']??0x0});}_0x4620e6[_0x54cc15(-_0x185bac._0x587ebd,-0x5b,_0x185bac._0x5282e6,_0x185bac._0x38e154)](_0x668e6d[_0x54cc15(-0x3f,-_0x185bac._0x34e219,_0x185bac._0x59639d,-_0x185bac._0x321ee0)])?.[_0x542b86(-0xbc,-0x8b,-_0x185bac._0x27d24a,-0x153)][_0x542b86(-_0x185bac._0x51b43e,-_0x185bac._0xf7e6dc,-0x1e4,-_0x185bac._0x587e5b)](_0x668e6d);}const _0x5ea348=[..._0x4620e6[_0x542b86(-0x17e,-0x1d2,-0x158,-0x15a)]()]['sort']((_0x2e29e3,_0x3af69b)=>_0x3af69b[0x1][_0x54cc15(0x12,0x87,-0xf2,-0xdb)]-_0x2e29e3[0x1][_0x542b86(-0xf1,0x32,0x18,0xa1)]),_0xba2538=_0x59e6d1[_0x54cc15(-0x174,-0x54,-_0x185bac._0x474902,-_0x185bac._0x1c9a73)](_0x22f50f=>!_0x22f50f[_0x54cc15(-0x109,-0x136,-0x65,-0x46)])['length'],_0x249473=_0x59e6d1['length']>=_0x263dd2,_0x4cc359=_0xf469ee?_0x1ee4f5[_0x54cc15(-_0x185bac._0x3c5c6f,-0x169,-0x1aa,-0x186)](_0x1aeb6c):_0x1aeb6c;let _0x4b990f='';if(_0x59e6d1[_0x54cc15(-_0x185bac._0x4af43e,-_0x185bac._0x1471bd,-0x1e,-_0x185bac._0x4eb0be)]===0x0)_0x4b990f=_0x542b86(-_0x185bac._0xd9ab21,-_0x185bac._0x40972b,-0x1b0,-_0x185bac._0x569acb)+_0x1d9659[_0x542b86(-0x72,-0x190,-_0x185bac._0x5825c2,-_0x185bac._0x129dd2)];else{_0x4b990f=_0x54cc15(-_0x185bac._0x33f7cf,-0xf8,-0xe6,0x87)+_0xba2538+_0x542b86(_0x185bac._0x154c9b,_0x185bac._0x2db51a,_0x185bac._0x2e52fc,-_0x185bac._0x487032)+(_0xba2538===0x1?'':'es')+'\x0a';for(const [_0x204844,_0x5a00f4]of _0x5ea348){const _0x5805e1=_0xf469ee?_0x1ee4f5[_0x542b86(_0x185bac._0x4b0825,0x22,-_0x185bac._0x18ff10,-_0x185bac._0x268a23)](_0x204844):_0x1ee4f5[_0x542b86(-_0x185bac._0x338631,0x68,-0x27,-_0x185bac._0x5bbbe8)](_0x4cc359,_0x204844);_0x4b990f+='\x0a'+_0x5805e1+':\x0a';for(const _0x1662b6 of _0x5a00f4[_0x54cc15(-0x90,_0x185bac._0x431d53,-0x1bd,-0x16b)]){const _0x38438e=_0x1662b6['lineText'][_0x542b86(-0x28,-_0x185bac._0x48368e,-0xad,-0x1c5)]>MAX_LINE_LENGTH?_0x1662b6[_0x54cc15(-0x7f,0xb2,-0x17e,-0x7)][_0x54cc15(0x72,0xd9,-0x96,-0x8f)](0x0,MAX_LINE_LENGTH)+_0x54cc15(-_0x185bac._0x22df13,-0x12a,-0xb5,-0x1c6):_0x1662b6['lineText'],_0xefce0=_0x1662b6[_0x54cc15(-_0x185bac._0x33af55,0x3b,-_0x185bac._0x3d68d0,-0x1e1)]?'\x20\x20':'>\x20';_0x4b990f+=_0xefce0+_0x54cc15(0x54,-_0x185bac._0x29b5d2,0xd6,-_0x185bac._0x2dcc89)+_0x1662b6[_0x54cc15(-_0x185bac._0x729500,-0x3b,-0x135,-0x117)]+':\x20'+_0x38438e+'\x0a';}}_0x249473&&(_0x4b990f+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x4ef049={'searchPath':_0x1ee4f5[_0x54cc15(-_0x185bac._0x433d36,0x72,0x9a,0x117)](_0x3cc99d,_0x1aeb6c)||'.','pattern':_0x1d9659[_0x54cc15(-0x71,-_0x185bac._0x3a4dd4,_0x185bac._0x5da186,-0xd)],'matchCount':_0xba2538,'fileCount':_0x4620e6[_0x54cc15(-_0x185bac._0x5b7462,-0xbd,-_0x185bac._0x5e3319,-_0x185bac._0x1e89d7)],'truncated':_0x249473};return _0x5b2a10&&_0x1d9659[_0x54cc15(-_0x185bac._0x35a690,-_0x185bac._0x8256be,-0x12c,-_0x185bac._0x328e34)]!==void 0x0&&(_0x4ef049[_0x54cc15(-_0x185bac._0x35a690,-0x28d,-_0x185bac._0x7043a2,-_0x185bac._0x14af9a)]=_0x1d9659[_0x54cc15(-_0x185bac._0x35a690,-0x219,-0xb2,-_0x185bac._0x55eaab)]),yield createToolOutput(_0x4b990f[_0x542b86(_0x185bac._0x4f4e18,-0x10b,_0x185bac._0x4f892d,-0x97)](),_0x4ef049),void 0x0;}});}import{readdir as _0x17ae32,readFile as _0x4509ba,stat as _0x97d866}from'fs/promises';import*as _0x129010 from'path';import*as _0x5bfe22 from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x1f9cf2,_0xe19c37){const _0x36fbff={_0x38e0b2:0x10d,_0x2280ff:0x78,_0xf6202b:0x1da,_0x5ce761:0x245,_0x3d548b:0x37e,_0x3787ac:0x158,_0x199287:0x15a,_0x4aab80:0x7d,_0x40b38a:0x1ca,_0x569bae:0x74,_0x2ac5d5:0x96},_0x3367ca={_0x45da7b:0x100},_0x29e423={_0x12f49b:0x19c};function _0x2760f4(_0x1ed12d,_0x4044cb,_0x865178,_0x1d7235){return _0x38d42b(_0x1ed12d-0x1c4,_0x4044cb- -0x2af,_0x1d7235,_0x1d7235-_0x29e423._0x12f49b);}if(_0xe19c37>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;const _0x479bbc=await _0x4509ba(_0x1f9cf2)[_0x22a1f9(-0xbf,-_0x36fbff._0x38e0b2,-_0x36fbff._0x2280ff,-0x109)](()=>null);function _0x22a1f9(_0x403b8f,_0x726107,_0x6269c0,_0x376b53){return _0x38d42b(_0x403b8f-0x50,_0x376b53- -0xe3,_0x6269c0,_0x376b53-_0x3367ca._0x45da7b);}if(!_0x479bbc||isProbablyBinary(_0x479bbc))return void 0x0;return _0x479bbc[_0x2760f4(-_0x36fbff._0xf6202b,-_0x36fbff._0x5ce761,-_0x36fbff._0x3d548b,-_0x36fbff._0x3787ac)](_0x22a1f9(0x119,_0x36fbff._0x199287,-0x45,_0x36fbff._0x4aab80))[_0x2760f4(-0xde,-0x17e,-0x18f,-_0x36fbff._0x40b38a)](/\r?\n/)[_0x22a1f9(-_0x36fbff._0x569bae,_0x36fbff._0x2ac5d5,0x5e,0x2)];}function createLsTool(_0x11b879={}){const _0x7518c2={_0x52e87a:0x508,_0x2e0457:0x54d,_0x20f5dd:0x165,_0x1517ea:0x1a4,_0x52dac1:0x43d,_0xab2819:0x585,_0x2434be:0x3ab,_0x3994ed:0x79,_0x3f73cc:0x3f5,_0x1472a7:0x16c,_0x2f552b:0xe1,_0x70553a:0x19b,_0x5d4d15:0x6c,_0x95ab9e:0x1e3,_0x408f37:0x2f6,_0x41df3b:0x3f7},_0x561f0b={_0x1a10d0:0x401,_0x434cad:0x415,_0x360465:0x35f,_0xd3d487:0x2df,_0xb76150:0x2d5,_0x18da39:0x38f,_0x4e5219:0x52d,_0x50578c:0x462,_0x4b5ec8:0x578,_0x4a6c3c:0x4a3,_0x4633d1:0x553,_0x2a18e2:0x794,_0x3daac3:0x665,_0x215375:0x722,_0x399cdf:0x645,_0x583b52:0x41e,_0x1c3828:0x28c,_0x30a576:0x320,_0x18a21f:0x501,_0xd8e07c:0x622,_0x3049a2:0x607,_0x48c685:0x4e0,_0x36752c:0x509,_0x22d51b:0x604,_0x4e9e84:0x6da,_0x1fe3e3:0x2bd,_0x1c76dc:0x518,_0x3683d0:0x381,_0x41801b:0x480,_0x596496:0x316,_0x4e3289:0x26d,_0x126f10:0x5a8,_0x5f0d45:0x5b9,_0x59bf6f:0x4a8,_0x1db332:0x44a,_0x3e45fd:0x440,_0x1ae8d9:0x2d0,_0x5d1a2d:0x376,_0x44e57e:0x47b,_0x3fa064:0x41a,_0x2089c0:0x3f6,_0x13e2ab:0x447,_0x447495:0x5ac,_0x2f959f:0x520,_0x2e6e5d:0x5fb,_0x412069:0x622,_0xc83c37:0x72a,_0xc3b4f8:0x5ee,_0x1f1007:0x42c,_0x27929a:0x3bf,_0x46a885:0x2f8,_0x337bda:0x3f6,_0x4c6781:0x36a,_0x583faf:0x3f6,_0x3080ea:0x35b,_0x390ab3:0x397},_0xfe4d0f={_0x4671b8:0x134,_0x95143a:0x17e},_0x2d3771={_0x432b30:0x64,_0x5cbbe5:0x11c},_0x1d649a={_0x13f343:0x91},_0x50844c={_0x455430:0x120,_0x46d45d:0x31f};function _0xb7f78a(_0x29bab9,_0x5ad0e1,_0x2501b2,_0x513da3){return _0x38d42b(_0x29bab9-_0x50844c._0x455430,_0x2501b2-_0x50844c._0x46d45d,_0x29bab9,_0x513da3-0x1f0);}const _0x936acd=_0x129010['resolve'](_0x11b879[_0xb7f78a(0x496,_0x7518c2._0x52e87a,_0x7518c2._0x2e0457,0x64c)]??process['cwd']()),_0x27888b=(_0x11b879[_0x22d974(-_0x7518c2._0x20f5dd,0x1e,-_0x7518c2._0x1517ea,-0x5a)]??[])[_0xb7f78a(_0x7518c2._0x52dac1,0x553,0x550,0x43b)](_0x8d1d00=>_0x129010['resolve'](_0x8d1d00)),_0x5e0dba=_0x11b879[_0xb7f78a(0x579,_0x7518c2._0xab2819,0x43a,_0x7518c2._0x2434be)]??'Ls';function _0x22d974(_0x109e85,_0x3758fc,_0x30317e,_0x5a5af8){return _0x37c1da(_0x109e85-_0x1d649a._0x13f343,_0x3758fc-0xa7,_0x109e85,_0x5a5af8- -0x461);}return defineTool({'name':_0x5e0dba,'description':_0x22d974(_0x7518c2._0x3994ed,-0x1b,-0x78,-0x38),'inputSchema':{'type':_0xb7f78a(0x279,_0x7518c2._0x3f73cc,0x32d,0x1f0),'properties':{'path':{'type':_0x22d974(_0x7518c2._0x1472a7,_0x7518c2._0x2f552b,_0x7518c2._0x70553a,_0x7518c2._0x5d4d15)},'limit':{'type':_0xb7f78a(_0x7518c2._0x95ab9e,0x290,_0x7518c2._0x408f37,_0x7518c2._0x41df3b)}}},async *'execute'(_0x1fd93d){const _0x3d2087=_0x1fd93d[_0x1157a6(0x644,0x5f7,0x6b4,0x650)]??'.',_0x549df1=resolveAllowedPath(_0x936acd,_0x27888b,_0x3d2087),_0x19dc89=await _0x97d866(_0x549df1)[_0x1157a6(_0x561f0b._0x1a10d0,0x46d,0x459,_0x561f0b._0x434cad)](()=>null);if(!_0x19dc89?.[_0x1157a6(0x64a,0x659,0x517,0x588)]())throw new ToolExecutionError(_0xa5322e(0x439,_0x561f0b._0x360465,_0x561f0b._0xd3d487,_0x561f0b._0xb76150)+_0x3d2087,{'path':_0x3d2087});function _0x1157a6(_0xe09308,_0x4188cf,_0x685aaa,_0x4fa536){return _0xb7f78a(_0x4188cf,_0x4188cf-_0x2d3771._0x432b30,_0x4fa536-_0x2d3771._0x5cbbe5,_0x4fa536-0x6c);}const _0x20cb95=_0x1fd93d['limit']??0x3e8,_0x124bfa=Math[_0x1157a6(_0x561f0b._0x18da39,_0x561f0b._0x4e5219,0x36f,_0x561f0b._0x50578c)](Math[_0x1157a6(_0x561f0b._0x4b5ec8,_0x561f0b._0x4a6c3c,_0x561f0b._0x4633d1,0x5a1)](Math[_0x1157a6(0x74b,0x694,_0x561f0b._0x2a18e2,_0x561f0b._0x3daac3)](_0x20cb95),0x1),0x2710),_0x437b29=await _0x17ae32(_0x549df1),_0x1ef03a=[];for(const _0x2c852b of _0x437b29[_0x1157a6(0x576,_0x561f0b._0x215375,0x673,_0x561f0b._0x399cdf)](0x0,_0x124bfa)){const _0x356812=_0x129010['join'](_0x549df1,_0x2c852b),_0x44e101=await _0x97d866(_0x356812)[_0xa5322e(_0x561f0b._0x583b52,0x2eb,_0x561f0b._0x1c3828,_0x561f0b._0x30a576)](()=>null);if(!_0x44e101)continue;let _0x55c916=_0x1157a6(_0x561f0b._0x18a21f,_0x561f0b._0xd8e07c,0x74a,_0x561f0b._0x3049a2);if(_0x44e101['isFile']())_0x55c916=_0xa5322e(_0x561f0b._0x48c685,0x4d1,_0x561f0b._0x36752c,_0x561f0b._0x22d51b);else{if(_0x44e101['isDirectory']())_0x55c916='directory';else{if(_0x44e101[_0x1157a6(0x64f,_0x561f0b._0x4e9e84,0x51b,0x5f6)]())_0x55c916=_0xa5322e(_0x561f0b._0x1fe3e3,0x3fc,_0x561f0b._0x1c76dc,0x40f);}}const _0x24092f={'name':_0x2c852b,'type':_0x55c916,'size':_0x44e101['size'],'mtime':_0x44e101[_0x1157a6(0x565,0x497,_0x561f0b._0x3683d0,_0x561f0b._0x41801b)],'mode':_0x44e101[_0xa5322e(0x1a9,0x2d2,_0x561f0b._0x596496,_0x561f0b._0x4e3289)]},_0x45eead=_0x55c916==='file'?await countTextLines(_0x356812,_0x44e101[_0x1157a6(_0x561f0b._0x126f10,_0x561f0b._0x5f0d45,0x530,_0x561f0b._0x59bf6f)]):void 0x0;if(_0x45eead!==void 0x0)_0x24092f['lines']=_0x45eead;_0x1ef03a[_0x1157a6(_0x561f0b._0x1db332,_0x561f0b._0x3e45fd,0x35b,0x3e9)](_0x24092f);}_0x1ef03a[_0xa5322e(_0x561f0b._0x1ae8d9,_0x561f0b._0x5d1a2d,_0x561f0b._0x44e57e,0x313)]((_0x24988d,_0x5e89cf)=>_0x24988d['name'][_0xa5322e(0x459,0x37a,0x2d4,0x2cd)](_0x5e89cf[_0x1157a6(0x54a,0x4b6,0x59e,0x556)]));const _0x17ccb4={'path':_0x3d2087,'total':_0x1ef03a[_0xa5322e(_0x561f0b._0x3fa064,_0x561f0b._0x2089c0,0x2ed,0x3b6)],'truncated':_0x437b29[_0x1157a6(_0x561f0b._0x13e2ab,_0x561f0b._0x447495,0x63b,_0x561f0b._0x2f959f)]>_0x124bfa,'entries':_0x1ef03a};yield createToolOutput(_0x5bfe22[_0x1157a6(_0x561f0b._0x2e6e5d,_0x561f0b._0x412069,_0x561f0b._0xc83c37,_0x561f0b._0xc3b4f8)](_0x17ccb4,{'indent':0x2,'lineWidth':0x0})[_0xa5322e(_0x561f0b._0x1f1007,_0x561f0b._0x27929a,0x412,0x385)](),{'path':_0x3d2087,'total':_0x1ef03a[_0xa5322e(_0x561f0b._0x46a885,_0x561f0b._0x337bda,0x41f,_0x561f0b._0x4c6781)],'truncated':_0x437b29[_0xa5322e(0x2f0,_0x561f0b._0x583faf,_0x561f0b._0x3080ea,_0x561f0b._0x390ab3)]>_0x124bfa,'limit':_0x124bfa,'entries':_0x1ef03a});function _0xa5322e(_0x8e7e3c,_0x46e147,_0x3f3d52,_0x277c7f){return _0xb7f78a(_0x3f3d52,_0x46e147-_0xfe4d0f._0x4671b8,_0x46e147- -0xe,_0x277c7f-_0xfe4d0f._0x95143a);}return void 0x0;}});}import{stat as _0x1bc7d6}from'fs/promises';import _0x8851e2 from'path';import{fileURLToPath as _0x265f22}from'url';function severityName(_0x47abec){const _0x452fdb={_0x5bac14:0xa7,_0x64f032:0x82,_0x4bf05b:0x36,_0x23316c:0x8e};function _0xa0aa2f(_0x76b53d,_0x3b4c48,_0x217f9b,_0x98d03){return _0x37c1da(_0x76b53d-0xcf,_0x3b4c48-0xc0,_0x76b53d,_0x3b4c48- -0x66f);}function _0x39665c(_0x23dade,_0xbbb6f2,_0x5a8548,_0x202604){return _0x38d42b(_0x23dade-0x7b,_0xbbb6f2- -0x130,_0x5a8548,_0x202604-0x65);}switch(_0x47abec){case 0x1:return _0x39665c(0x1ba,_0x452fdb._0x5bac14,0x18f,-_0x452fdb._0x64f032);case 0x2:return'Warning';case 0x3:return _0x39665c(-0x202,-0xc0,-0x196,-0x208);case 0x4:return'Hint';default:return _0xa0aa2f(_0x452fdb._0x4bf05b,-_0x452fdb._0x23316c,-0x78,-0x126);}}function formatSingleHover(_0x109a98){const _0x346005={_0x1b2f00:0x280,_0x54cea7:0x3c0,_0x248125:0x2c9,_0x2295a9:0x466,_0x6ef720:0x320,_0x38bc5d:0x2ab,_0x3e286d:0x457,_0x466bb1:0x588,_0x9e2b95:0x3dd,_0x5e5a13:0x3b6,_0x519a60:0x47f,_0x9846ad:0x301,_0x2c4106:0x2c2,_0x505d9a:0x499,_0x388ae6:0x37c,_0x5816b6:0x4e5,_0x58d179:0x451,_0x46af19:0x235,_0x1d66c8:0x3c6,_0x1dc912:0x2a7,_0x581870:0x1d7,_0x1d1e1c:0x2ad,_0x230503:0x4dd,_0x273965:0x29a,_0xbb3867:0x46f},_0x5067b7={_0x115922:0x1b6},_0x259e66={_0x4fa975:0x35},_0x389cf6=_0x109a98[_0x12f9d5(0x2a3,0x209,0xec,_0x346005._0x1b2f00)];function _0x12f9d5(_0x373c26,_0x8de0f6,_0x1cf70e,_0x5b417b){return _0x37c1da(_0x373c26-_0x259e66._0x4fa975,_0x8de0f6-0x1e8,_0x1cf70e,_0x8de0f6- -0x2e0);}if(typeof _0x389cf6==='string')return _0x389cf6;if(Array[_0x91925a(0x2b6,0x1fd,_0x346005._0x54cea7,_0x346005._0x248125)](_0x389cf6))return _0x389cf6[_0x12f9d5(_0x346005._0x2295a9,0x39c,_0x346005._0x6ef720,0x424)](_0x285250=>typeof _0x285250===_0x12f9d5(0x1bb,0x1ed,0xf8,0xea)?_0x285250:_0x285250[_0x91925a(0x301,0x3ad,0x29b,0x269)])[_0x12f9d5(0x180,0x18f,0x1d9,_0x346005._0x38bc5d)](Boolean)[_0x91925a(0x47e,_0x346005._0x3e286d,_0x346005._0x466bb1,_0x346005._0x9e2b95)]('\x0a\x0a');function _0x91925a(_0x2d06c1,_0x899ba,_0x2217be,_0x94cf71){return _0x37c1da(_0x2d06c1-0x85,_0x899ba-0x140,_0x2217be,_0x2d06c1- -_0x5067b7._0x115922);}if(_0x91925a(0x429,0x4fe,_0x346005._0x5e5a13,_0x346005._0x519a60)in _0x389cf6)return _0x389cf6[_0x91925a(_0x346005._0x9846ad,0x1d6,_0x346005._0x2c4106,0x27b)];return _0x389cf6[_0x91925a(_0x346005._0x505d9a,_0x346005._0x388ae6,0x3ed,_0x346005._0x5816b6)]?_0x91925a(0x373,_0x346005._0x58d179,0x265,_0x346005._0x46af19)+_0x389cf6[_0x91925a(0x499,_0x346005._0x1d66c8,0x4d2,0x407)]+'\x0a'+_0x389cf6[_0x12f9d5(_0x346005._0x1dc912,_0x346005._0x581870,0x320,_0x346005._0x1d1e1c)]+_0x91925a(0x3db,_0x346005._0x230503,_0x346005._0x273965,_0x346005._0xbb3867):_0x389cf6[_0x12f9d5(0x172,_0x346005._0x581870,0x2b8,0x138)];}function formatHover(_0x72b2b){const _0x1ab171={_0x686db9:0x1ea,_0x2ee4f2:0x8a},_0x34a416={_0x3e7047:0x14d,_0x3977b8:0x143,_0x1d8cd5:0x1c3},_0x25d75d={_0x29c74d:0x12a,_0x23cc82:0x97,_0x42b74c:0x33};if(_0x72b2b['length']===0x0)return _0xa8d736(0x2d5,0x33b,_0x1ab171._0x686db9,0x2da);function _0x19f1f2(_0x1c6315,_0xdc9cb7,_0x5e7034,_0x43a19d){return _0x38d42b(_0x1c6315-_0x25d75d._0x29c74d,_0x1c6315- -_0x25d75d._0x23cc82,_0xdc9cb7,_0x43a19d-_0x25d75d._0x42b74c);}function _0xa8d736(_0x4a75d1,_0x2af11c,_0x50391c,_0x498a88){return _0x37c1da(_0x4a75d1-_0x34a416._0x3e7047,_0x2af11c-_0x34a416._0x3977b8,_0x2af11c,_0x498a88- -_0x34a416._0x1d8cd5);}return _0x72b2b['map'](formatSingleHover)['join'](_0x19f1f2(0x59,0x14d,0x117,_0x1ab171._0x2ee4f2));}function locationPath(_0x1a0a25){const _0x122329={_0x273cef:0x2b9,_0x5942e5:0xd0,_0x2c33a4:0x26,_0xa0eb92:0x53,_0x7fdefe:0xe4},_0x245092={_0x47afea:0x6dc};function _0x1e7c59(_0x38ae72,_0x18568c,_0x22c10e,_0x4b82fa){return _0x37c1da(_0x38ae72-0x56,_0x18568c-0x18e,_0x4b82fa,_0x18568c- -_0x245092._0x47afea);}function _0x3c9703(_0x1c108f,_0x442f00,_0x59d847,_0x3099ff){return _0x37c1da(_0x1c108f-0xa9,_0x442f00-0x86,_0x442f00,_0x1c108f- -0x678);}if(!_0x1a0a25[_0x1e7c59(-_0x122329._0x273cef,-0x1d4,-0xab,-_0x122329._0x5942e5)](_0x3c9703(-_0x122329._0x2c33a4,_0x122329._0xa0eb92,_0x122329._0x7fdefe,0x94)))return _0x1a0a25;return _0x265f22(_0x1a0a25);}function formatLocations(_0x13d264){const _0x3a5754={_0x1e40d0:0xde,_0x409cb3:0x123,_0x2a8236:0x1ca,_0x1aa365:0x96,_0x4053af:0xe8,_0x281b99:0x124},_0x24e272={_0x343acf:0x2df,_0x84e371:0x2cf,_0x215a93:0x2d1,_0x5f0cba:0x26c},_0x8440bc={_0x8064e7:0x1ba,_0x2dd4fb:0x2ac},_0x5ccc29={_0x2eb24f:0x99},_0x17bde7={_0x4895dc:0x1ae},_0x588f6e={_0x6fefbf:0x5a};function _0x6a523c(_0x25bd4d,_0x541fdb,_0x2a82f8,_0xfea804){return _0x37c1da(_0x25bd4d-0x63,_0x541fdb-_0x588f6e._0x6fefbf,_0xfea804,_0x541fdb- -0x71c);}if(_0x13d264[_0x6a523c(-0x2c2,-0x1ec,-_0x3a5754._0x1e40d0,-_0x3a5754._0x409cb3)]===0x0)return _0x224b50(0x2a5,_0x3a5754._0x2a8236,0x248,0x1f7);function _0x224b50(_0x1f512c,_0x101487,_0x44477c,_0x52edf0){return _0x37c1da(_0x1f512c-_0x17bde7._0x4895dc,_0x101487-0x28,_0x1f512c,_0x52edf0- -0x2b7);}return _0x13d264['map'](_0x3fa9c1=>{function _0x54beb6(_0x41c3bf,_0x4e4558,_0x4d192d,_0x8ebc0b){return _0x6a523c(_0x41c3bf-0x9d,_0x4d192d-0x35f,_0x4d192d-_0x5ccc29._0x2eb24f,_0x4e4558);}function _0x14a08e(_0x254a71,_0x3e7f30,_0x5e9f95,_0x5e7708){return _0x224b50(_0x5e9f95,_0x3e7f30-0x1ae,_0x5e9f95-_0x8440bc._0x8064e7,_0x5e7708-_0x8440bc._0x2dd4fb);}const _0x4b59bf=_0x3fa9c1[_0x54beb6(_0x24e272._0x343acf,0x211,_0x24e272._0x84e371,0x249)][_0x54beb6(0x1c5,0x1c2,_0x24e272._0x215a93,_0x24e272._0x5f0cba)];return locationPath(_0x3fa9c1['uri'])+':'+(_0x4b59bf['line']+0x1)+':'+(_0x4b59bf[_0x54beb6(0x138,0x18f,0x1ce,0x2fa)]+0x1);})[_0x6a523c(-_0x3a5754._0x1aa365,-_0x3a5754._0x4053af,-_0x3a5754._0x281b99,-0x22f)]('\x0a');}function isDocumentSymbol(_0xf95d41){const _0x55aa10={_0x3a80ea:0x6d1,_0x5f271a:0x724,_0x207010:0x655,_0x4ff612:0x480},_0x20bd9e={_0x3c4774:0x11c},_0x50f034={_0x41b58d:0xc6,_0x18e99b:0x414,_0x1b5ee9:0x1d5};function _0x555259(_0x13f23a,_0xae6436,_0x15f9a3,_0x12deec){return _0x38d42b(_0x13f23a-_0x50f034._0x41b58d,_0x12deec-_0x50f034._0x18e99b,_0x13f23a,_0x12deec-_0x50f034._0x1b5ee9);}function _0x2ece33(_0x416eef,_0x31d700,_0x2879cb,_0x189a6e){return _0x37c1da(_0x416eef-_0x20bd9e._0x3c4774,_0x31d700-0x193,_0x2879cb,_0x416eef- -0x8c);}return _0x555259(_0x55aa10._0x3a80ea,_0x55aa10._0x5f271a,0x5f8,_0x55aa10._0x207010)in _0xf95d41&&_0x2ece33(_0x55aa10._0x4ff612,0x533,0x39c,0x568)in _0xf95d41;}function formatSymbols(_0x340b32){const _0x50877a={_0x104ec1:0x648,_0x4346f0:0x565,_0x5c2c06:0x756,_0x3456be:0x69a,_0x5aedfa:0x57a,_0x4954d4:0x5d6,_0x52d8e2:0x6ec},_0xae6ed4={_0x17aef2:0x5bc,_0x5e72c6:0x586,_0x3cc8e7:0x4f9,_0x3a6b7b:0x5b8,_0x1fb441:0x5fa,_0x55dd53:0x472,_0x292591:0x53a,_0x2749dd:0x48c,_0x44c332:0x3ca,_0x638954:0x25d,_0x1ab06c:0x2aa,_0x3edd64:0x499,_0x28ef3e:0x5c7,_0x670715:0x4d8,_0x56da0a:0x474,_0x21e2a2:0x53c,_0x1055c4:0x447,_0x5977be:0x4c4,_0x5210d9:0x40d,_0x448714:0x5c0,_0x5f1ed6:0x615,_0x1484b6:0x6b5,_0xeffe69:0x669,_0x3f645b:0x67d,_0x41cfc8:0x505,_0x553e69:0x65c,_0x49c97b:0x5f4,_0x3e4c4c:0x586,_0x4c5bcc:0x64c,_0x37cc38:0x6ae,_0x340a29:0x515,_0x5355a4:0x5a5,_0x3d7635:0x628,_0x627406:0x53a,_0xea33d7:0x4c6,_0x243f14:0x539},_0xa49aac={_0x445fef:0x165},_0x45441c={_0x509c65:0x111,_0x38f9ee:0x108};if(_0x340b32[_0x429eac(0x527,0x688,_0x50877a._0x104ec1,_0x50877a._0x4346f0)]===0x0)return'No\x20symbols\x20found';function _0x429eac(_0x5393f7,_0x3d394d,_0x27d1d2,_0x5de4a6){return _0x37c1da(_0x5393f7-_0x45441c._0x509c65,_0x3d394d-_0x45441c._0x38f9ee,_0x5393f7,_0x5de4a6-0x35);}function _0x1df8b1(_0x1f91d4,_0x551140,_0x2b3b70,_0x35905){return _0x37c1da(_0x1f91d4-_0xa49aac._0x445fef,_0x551140-0x112,_0x2b3b70,_0x1f91d4- -0x502);}return _0x340b32[_0x429eac(_0x50877a._0x5c2c06,_0x50877a._0x3456be,_0x50877a._0x5aedfa,0x6b1)](_0x55ee7f=>{const _0x487286={_0xdec6c7:0x13d,_0x149751:0x111},_0x14f21a={_0x5c0c69:0xc1,_0x8fd7c6:0x14};if(isDocumentSymbol(_0x55ee7f))return _0x55ee7f[_0x5e2733(_0xae6ed4._0x17aef2,0x4a1,_0xae6ed4._0x5e72c6,_0xae6ed4._0x3cc8e7)]+'\x20('+_0x55ee7f['kind']+_0x5e2733(0x5c2,_0xae6ed4._0x17aef2,0x523,0x4c4)+(_0x55ee7f[_0x24dd9b(_0xae6ed4._0x3a6b7b,_0xae6ed4._0x1fb441,_0xae6ed4._0x55dd53,_0xae6ed4._0x292591)][_0x24dd9b(_0xae6ed4._0x2749dd,0x51f,0x626,0x53c)][_0x24dd9b(_0xae6ed4._0x44c332,0x304,_0xae6ed4._0x638954,_0xae6ed4._0x1ab06c)]+0x1)+':'+(_0x55ee7f[_0x5e2733(_0xae6ed4._0x3edd64,_0xae6ed4._0x28ef3e,0x574,_0xae6ed4._0x670715)][_0x24dd9b(_0xae6ed4._0x56da0a,0x506,0x573,_0xae6ed4._0x21e2a2)][_0x5e2733(0x5da,0x4c6,_0xae6ed4._0x1055c4,0x3a9)]+0x1)+']';function _0x5e2733(_0x245843,_0x1ed5b4,_0x9e5c92,_0x149158){return _0x1df8b1(_0x1ed5b4-0x43d,_0x1ed5b4-_0x14f21a._0x5c0c69,_0x9e5c92,_0x149158-_0x14f21a._0x8fd7c6);}function _0x24dd9b(_0x127f9c,_0x5d9283,_0x118673,_0x248e55){return _0x1df8b1(_0x248e55-0x3b0,_0x5d9283-_0x487286._0xdec6c7,_0x127f9c,_0x248e55-_0x487286._0x149751);}return _0x55ee7f[_0x5e2733(_0xae6ed4._0x5977be,0x4a1,_0xae6ed4._0x5210d9,0x475)]+'\x20('+_0x55ee7f[_0x5e2733(_0xae6ed4._0x448714,0x51a,0x516,_0xae6ed4._0x5f1ed6)]+')\x20'+locationPath(_0x55ee7f[_0x5e2733(0x4f6,0x59f,_0xae6ed4._0x1484b6,_0xae6ed4._0xeffe69)][_0x5e2733(0x629,0x5a8,_0xae6ed4._0x3f645b,0x52d)])+':'+(_0x55ee7f[_0x5e2733(0x5bb,0x59f,_0xae6ed4._0x41cfc8,_0xae6ed4._0x553e69)][_0x5e2733(_0xae6ed4._0x49c97b,0x5c7,_0xae6ed4._0x3e4c4c,_0xae6ed4._0x4c5bcc)]['start']['line']+0x1)+':'+(_0x55ee7f[_0x5e2733(0x4b6,0x59f,_0xae6ed4._0x37cc38,_0xae6ed4._0x340a29)][_0x24dd9b(0x4f1,_0xae6ed4._0x5355a4,_0xae6ed4._0x3d7635,_0xae6ed4._0x627406)]['start'][_0x5e2733(0x42b,_0xae6ed4._0xea33d7,0x53d,_0xae6ed4._0x243f14)]+0x1);})[_0x429eac(_0x50877a._0x4954d4,_0x50877a._0x52d8e2,0x707,0x669)]('\x0a');}function formatDiagnostics(_0x52566b){const _0x4e3d0c={_0x5ad8ea:0x28f,_0x23e4ef:0x208,_0x4ebff8:0x1af,_0x580d79:0x6c5,_0x5ca565:0x2ca,_0xfcdff3:0x2b3,_0x5629ec:0x26e},_0x465fb0={_0x3cdd4b:0x1fc,_0x38632e:0x1bf,_0x496f55:0xb1,_0x471893:0x2a4,_0x35bafa:0x270,_0x1c2c34:0x333},_0x2e8ce4={_0x3fa652:0x16d,_0x569707:0x188,_0x36098a:0x49};function _0x529b0c(_0x49e8e2,_0x1f54ad,_0x3e6809,_0x494d54){return _0x37c1da(_0x49e8e2-0x119,_0x1f54ad-0xd5,_0x1f54ad,_0x3e6809- -0x381);}if(_0x52566b[_0x529b0c(_0x4e3d0c._0x5ad8ea,_0x4e3d0c._0x23e4ef,_0x4e3d0c._0x4ebff8,0x215)]===0x0)return'No\x20diagnostics';function _0x190460(_0xbae196,_0x4d6dc1,_0xe03bc8,_0xc4fff1){return _0x37c1da(_0xbae196-_0x2e8ce4._0x3fa652,_0x4d6dc1-_0x2e8ce4._0x569707,_0xc4fff1,_0xe03bc8-_0x2e8ce4._0x36098a);}return _0x52566b[_0x190460(0x800,0x5c2,_0x4e3d0c._0x580d79,0x600)](_0x18fe65=>{const _0x2f045b={_0x596262:0x112},_0x578f24={_0x452e2e:0xa4};function _0x68e7f2(_0x557525,_0xa2236d,_0x3557e3,_0x297fac){return _0x190460(_0x557525-0x165,_0xa2236d-_0x578f24._0x452e2e,_0xa2236d- -0x516,_0x3557e3);}const _0x47c6be=_0x18fe65[_0x68e7f2(_0x465fb0._0x3cdd4b,_0x465fb0._0x38632e,_0x465fb0._0x496f55,0x1cf)]['start'];function _0x25454e(_0x5a5360,_0x3f36cb,_0x3b7e0c,_0x246a4f){return _0x190460(_0x5a5360-_0x2f045b._0x596262,_0x3f36cb-0x125,_0x3f36cb- -0x252,_0x246a4f);}return severityName(_0x18fe65[_0x25454e(0x2d4,_0x465fb0._0x471893,_0x465fb0._0x35bafa,_0x465fb0._0x1c2c34)])+'\x20['+(_0x47c6be['line']+0x1)+':'+(_0x47c6be['character']+0x1)+']\x20'+_0x18fe65['message'];})[_0x529b0c(0x1e9,_0x4e3d0c._0x5ca565,_0x4e3d0c._0xfcdff3,_0x4e3d0c._0x5629ec)]('\x0a');}function formatIncomingCalls(_0x4138b0){const _0xa6354={_0x5e6bd8:0x1ce};if(_0x4138b0[_0x25d003(0x27e,0x2b3,0x2a1,0x3c9)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x408f38(_0x3bd33d,_0x55646c,_0x54a5c6,_0x370cf3){return _0x38d42b(_0x3bd33d-0x10,_0x55646c- -0x154,_0x54a5c6,_0x370cf3-0x72);}function _0x25d003(_0x3abbb1,_0x488c77,_0x1313b5,_0x6467b9){return _0x38d42b(_0x3abbb1-0x11b,_0x488c77-_0xa6354._0x5e6bd8,_0x1313b5,_0x6467b9-0x11b);}return _0x4138b0[_0x25d003(0x505,0x3ff,0x387,0x30e)](_0x506658=>_0x506658['from'][_0x25d003(0x206,0x2e9,0x414,0x2a6)])['join']('\x0a');}function formatOutgoingCalls(_0x17099a){const _0x9c7be4={_0x4dcbfc:0x4b6,_0x436c82:0x4ea,_0x990d2f:0x42b,_0x58d7c1:0x402,_0x49d563:0x369},_0x35305a={_0x2c7785:0xc5,_0x2a4dbd:0x11b},_0x4e8d57={_0x17fea9:0x85,_0x2de927:0x3d1};function _0x3c387a(_0x3360ea,_0x4114c5,_0x20a2ff,_0x13eff3){return _0x38d42b(_0x3360ea-_0x4e8d57._0x17fea9,_0x4114c5-_0x4e8d57._0x2de927,_0x13eff3,_0x13eff3-0xdc);}if(_0x17099a[_0x3c387a(0x535,_0x9c7be4._0x4dcbfc,0x49d,0x5ca)]===0x0)return _0x3c387a(_0x9c7be4._0x436c82,_0x9c7be4._0x990d2f,_0x9c7be4._0x58d7c1,_0x9c7be4._0x49d563);function _0xffc65a(_0x29bbf2,_0x522166,_0x4ba204,_0x2619a6){return _0x38d42b(_0x29bbf2-_0x35305a._0x2c7785,_0x29bbf2-_0x35305a._0x2a4dbd,_0x2619a6,_0x2619a6-0x6e);}return _0x17099a['map'](_0x546630=>_0x546630['to'][_0xffc65a(0x236,0x1bb,0x26d,0x1c9)])['join']('\x0a');}function toStructured(_0x52f805){const _0x30a595={_0x45caac:0x18e};function _0x2291c2(_0x4f47f3,_0x249972,_0x17b77c,_0x328bf9){return _0x38d42b(_0x4f47f3-0x1e8,_0x249972-0x17a,_0x328bf9,_0x328bf9-0x4c);}return JSON[_0x2291c2(_0x30a595._0x45caac,0x1ba,0xa3,0xc1)](JSON['stringify'](_0x52f805));}async function assertFile(_0x213783){const _0x1849f3={_0x439ebe:0x1e3,_0xd779b9:0x18c,_0x35a76c:0x50,_0x1546c7:0xd0},_0x59c900={_0x48eead:0x128,_0x36d0bc:0x1e9},_0x5ecd69={_0x240e49:0xce,_0xcf2b96:0x11a};function _0x41af90(_0x6f589f,_0x552b50,_0x47d0da,_0x7dbc80){return _0x38d42b(_0x6f589f-_0x5ecd69._0x240e49,_0x7dbc80-0x175,_0x552b50,_0x7dbc80-_0x5ecd69._0xcf2b96);}const _0x36c972=await _0x1bc7d6(_0x213783);function _0x360dcc(_0x1bd4ea,_0xa53e66,_0x531e63,_0x49cc6b){return _0x38d42b(_0x1bd4ea-_0x59c900._0x48eead,_0x1bd4ea- -0x37,_0xa53e66,_0x49cc6b-_0x59c900._0x36d0bc);}if(!_0x36c972[_0x41af90(_0x1849f3._0x439ebe,_0x1849f3._0xd779b9,0xec,0x220)]())throw new ToolExecutionError(_0x360dcc(-_0x1849f3._0x35a76c,-_0x1849f3._0x1546c7,0x18,-0x15d)+_0x213783,{'path':_0x213783});}function validatePosition(_0x374e0d,_0x493eaf){const _0x59e001={_0x2a2819:0x8d,_0x2ae59e:0x50,_0x25741e:0x1a,_0x276aa4:0x37,_0x51fd65:0x106},_0x249f3c={_0x188d68:0x1ac},_0x41eb0c={_0x1086b1:0x140,_0x22f1ae:0x56,_0x2dad5d:0x19d};function _0x291f2d(_0x2c8574,_0x13ed63,_0x5d39a0,_0x2b6de4){return _0x38d42b(_0x2c8574-_0x41eb0c._0x1086b1,_0x5d39a0- -_0x41eb0c._0x22f1ae,_0x2b6de4,_0x2b6de4-_0x41eb0c._0x2dad5d);}if(!Number[_0x291f2d(-_0x59e001._0x2a2819,0x10a,_0x59e001._0x2ae59e,_0x59e001._0x25741e)](_0x374e0d)||_0x374e0d<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x374e0d});function _0x2d0ae0(_0x403ed4,_0x20e05f,_0x5e82a0,_0x587865){return _0x38d42b(_0x403ed4-0x3c,_0x587865- -_0x249f3c._0x188d68,_0x20e05f,_0x587865-0x3a);}if(!Number[_0x2d0ae0(-0x21,-0x1ed,-_0x59e001._0x276aa4,-_0x59e001._0x51fd65)](_0x493eaf)||_0x493eaf<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x493eaf});}function createLspTool(_0x3b0535={}){const _0x480e40={_0xa887df:0x11d,_0x304c4b:0x1f8,_0x11f70e:0x69a,_0x35ddc7:0x6ff,_0x175840:0x35,_0x1083bb:0x118,_0x5112e2:0x62f,_0x4caa79:0x824,_0x31a1a9:0x702,_0x28b952:0x22d,_0x27e9d5:0x370,_0x5ad7d1:0x224,_0x455495:0x247,_0xb2806f:0x197,_0x47ae7f:0x200,_0x2dd746:0x145,_0x365522:0x2c1,_0xd0ec19:0x576,_0x2cff5a:0x4df,_0x4c874e:0x276,_0x4dca52:0x1d7,_0x541cce:0x214,_0x44b34b:0x13b,_0x22a675:0x226,_0x376f46:0x2fb,_0x12414e:0x301,_0x447742:0xfa,_0x12557a:0x1f9,_0x4000a5:0x204,_0x1d40aa:0x731,_0x43239a:0x599,_0xaddf48:0x6cf,_0x5ada25:0x398,_0x11102c:0x2c8,_0xb2468e:0x5f9,_0xd5ed4d:0x649,_0x4e6d47:0x742,_0x98c117:0x6a4,_0x16a883:0x58a,_0x286e38:0x5d9,_0x2fd0c7:0x553,_0x445b4c:0x366,_0xd01b20:0x3bb,_0x15971f:0x48,_0x4bb490:0x2b5,_0x26756b:0x16a,_0x571544:0x3c7,_0x3d6ea5:0x4c4,_0x50c238:0x5c7},_0x11dc2f={_0x3fd361:0x2c0,_0x466270:0x344,_0x157acb:0x1c6,_0x4c7b00:0x309,_0x45a76f:0x399,_0x58e310:0x3d9,_0x5aa4b0:0x345,_0x22cc5e:0x1f8,_0x2734b6:0x8e,_0x1b2720:0x43,_0x33cc21:0x21d,_0x52edfe:0x1ba,_0x40c1d4:0x354,_0x531259:0x357,_0x400ea1:0x4cc,_0x3dfb21:0x3c3,_0x3d1b9e:0x3d3,_0x4a18df:0x1a1,_0x70aa65:0x7c,_0x3c94f6:0x1a4,_0x1224a5:0x1d4,_0x45d66c:0x303,_0x41c844:0x15a,_0x382013:0x361,_0x39a64f:0x3af,_0x343b6e:0x28e,_0x5b9b30:0x36b,_0x102eff:0x357,_0x20953b:0x17f,_0x268ad6:0x269,_0xbc5c11:0x177,_0x49422c:0x357,_0x43346a:0x388,_0x1cadd5:0x2f0,_0x5ce2ad:0x23d,_0x350a3e:0x230,_0x43293c:0x152,_0x774266:0x1ba,_0x123450:0x2bb,_0x1f28e1:0xf4,_0x3a74cc:0x318,_0x588318:0x37e,_0x499095:0x27e,_0x243e30:0x47e,_0xb0bf40:0x2b1,_0x2fbe8b:0x206,_0x4ac62a:0x261,_0x3cb1a6:0x2fb,_0x61cc87:0x3b8,_0x35e9a1:0x3e4,_0x222aff:0xeb,_0x3a6b8f:0x2b0,_0x1a05af:0x173,_0x483089:0x4d4,_0x3278ea:0x4e4,_0x518183:0x319,_0x6a5793:0x3c4,_0x58503b:0x453,_0x3db09b:0x26b,_0x2d7c80:0x215},_0x1244f6={_0x38b3b3:0xad,_0x5d04b2:0x86},_0x4cd4cb={_0x34e272:0x1f0};function _0x438f49(_0x5decdd,_0xdb2765,_0x3c0c4f,_0x273ee1){return _0x37c1da(_0x5decdd-_0x4cd4cb._0x34e272,_0xdb2765-0x99,_0x3c0c4f,_0xdb2765- -0x2ef);}const _0x5c586c=_0x8851e2[_0x438f49(0x1e0,0x25f,_0x480e40._0xa887df,_0x480e40._0x304c4b)](_0x3b0535[_0x1d8cde(0x775,_0x480e40._0x11f70e,0x754,_0x480e40._0x35ddc7)]??process[_0x1d8cde(0x665,0x51d,0x593,0x653)]()),_0x1ec387=(_0x3b0535[_0x438f49(_0x480e40._0x175840,_0x480e40._0x1083bb,0x118,0x161)]??[])[_0x1d8cde(_0x480e40._0x5112e2,_0x480e40._0x4caa79,0x5bd,_0x480e40._0x31a1a9)](_0x34b6bb=>_0x8851e2[_0x1d8cde(0x598,0x680,0x5c1,0x5d4)](_0x34b6bb)),_0xfe4c0a=_0x3b0535['name']??_0x438f49(_0x480e40._0x28b952,_0x480e40._0x27e9d5,_0x480e40._0x5ad7d1,_0x480e40._0x455495);function _0x1d8cde(_0x16d4d7,_0xbbecdc,_0x2a9ceb,_0x388480){return _0x37c1da(_0x16d4d7-0x6,_0xbbecdc-_0x1244f6._0x38b3b3,_0xbbecdc,_0x388480-_0x1244f6._0x5d04b2);}return defineTool({'name':_0xfe4c0a,'description':_0x438f49(_0x480e40._0xb2806f,_0x480e40._0x47ae7f,_0x480e40._0x2dd746,_0x480e40._0x365522),'inputSchema':{'type':_0x1d8cde(0x3ab,_0x480e40._0xd0ec19,0x424,_0x480e40._0x2cff5a),'properties':{'operation':{'type':'string','enum':[_0x438f49(0x18f,_0x480e40._0x4c874e,_0x480e40._0x4dca52,_0x480e40._0x541cce),_0x438f49(_0x480e40._0x44b34b,0x26a,_0x480e40._0x22a675,0x2fd),_0x438f49(0x23e,_0x480e40._0x376f46,0x1d7,0x2b9),_0x438f49(0x390,0x351,0x2be,0x3c5),_0x438f49(_0x480e40._0x12414e,0x1e7,0x141,0x145),_0x438f49(_0x480e40._0x447742,_0x480e40._0x12557a,0x24c,_0x480e40._0x4000a5),_0x1d8cde(_0x480e40._0x1d40aa,_0x480e40._0x43239a,0x7e8,_0x480e40._0xaddf48),_0x438f49(0x317,_0x480e40._0x5ada25,0x2a5,_0x480e40._0x11102c),_0x1d8cde(_0x480e40._0xb2468e,0x737,0x67a,0x65f),_0x1d8cde(_0x480e40._0xd5ed4d,0x69e,_0x480e40._0x4e6d47,_0x480e40._0x98c117)]},'filePath':{'type':_0x1d8cde(_0x480e40._0x16a883,_0x480e40._0x286e38,0x471,_0x480e40._0x2fd0c7)},'line':{'type':'number'},'character':{'type':_0x1d8cde(_0x480e40._0x445b4c,0x51a,_0x480e40._0xd01b20,0x4a8)},'query':{'type':_0x1d8cde(0x602,0x50d,0x69b,0x553)}},'required':[_0x438f49(_0x480e40._0x15971f,0x156,0xc,0x25c),_0x438f49(0x29d,_0x480e40._0x4bb490,_0x480e40._0x26756b,0x292),_0x1d8cde(_0x480e40._0x571544,_0x480e40._0x3d6ea5,_0x480e40._0x50c238,0x482),'character']},async *'execute'(_0x3a4a39){const _0x2cddff={_0x3f3a0e:0x3f4},_0x21b581={_0x199b64:0xa2},_0x96415=_0x3b0535[_0x5edcca(_0x11dc2f._0x3fd361,_0x11dc2f._0x466270,_0x11dc2f._0x157acb,_0x11dc2f._0x4c7b00)];if(!_0x96415)throw new ToolExecutionError(_0x33dc37(0x31c,0x339,0x252,0x331));function _0x33dc37(_0x29564b,_0xef55f4,_0x2c0706,_0x32f725){return _0x438f49(_0x29564b-0x171,_0xef55f4-_0x21b581._0x199b64,_0x32f725,_0x32f725-0x14b);}if(!_0x96415[_0x5edcca(0x302,_0x11dc2f._0x45a76f,0x32f,_0x11dc2f._0x58e310)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x469965=_0x3a4a39[_0x33dc37(_0x11dc2f._0x5aa4b0,_0x11dc2f._0x22cc5e,0x170,0x1aa)];validatePosition(_0x3a4a39[_0x5edcca(_0x11dc2f._0x2734b6,-0x6a,-0xbb,-_0x11dc2f._0x1b2720)],_0x3a4a39[_0x5edcca(_0x11dc2f._0x33cc21,_0x11dc2f._0x52edfe,0x216,_0x11dc2f._0x40c1d4)]);if(_0x469965===_0x33dc37(_0x11dc2f._0x531259,0x289,0x315,0x36d)){if(!_0x3a4a39[_0x33dc37(_0x11dc2f._0x400ea1,_0x11dc2f._0x3dfb21,_0x11dc2f._0x3d1b9e,_0x11dc2f._0x5aa4b0)]?.['trim']())throw new ToolExecutionError(_0x5edcca(_0x11dc2f._0x4a18df,_0x11dc2f._0x70aa65,_0x11dc2f._0x3c94f6,_0x11dc2f._0x1224a5));const _0x1cb0ac=await _0x96415[_0x33dc37(0x20a,0x289,_0x11dc2f._0x45d66c,_0x11dc2f._0x41c844)](_0x3a4a39[_0x33dc37(_0x11dc2f._0x382013,0x3c3,0x406,0x46f)][_0x33dc37(0x379,_0x11dc2f._0x39a64f,_0x11dc2f._0x343b6e,0x31d)]());return yield createToolOutput(formatSymbols(_0x1cb0ac),{'operation':_0x469965,'query':_0x3a4a39[_0x33dc37(0x3bf,0x3c3,0x3cd,0x2a6)],'symbols':_0x1cb0ac}),void 0x0;}const _0x3112ce=resolveAllowedPath(_0x5c586c,_0x1ec387,_0x3a4a39[_0x33dc37(_0x11dc2f._0x5b9b30,_0x11dc2f._0x102eff,_0x11dc2f._0x5aa4b0,0x268)]);await assertFile(_0x3112ce);if(!await _0x96415[_0x33dc37(0x379,0x25c,0x25c,_0x11dc2f._0x20953b)](_0x3112ce))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3a4a39[_0x5edcca(0x236,0x137,_0x11dc2f._0x268ad6,_0x11dc2f._0xbc5c11)],{'filePath':_0x3a4a39[_0x33dc37(0x38a,_0x11dc2f._0x49422c,0x211,_0x11dc2f._0x43346a)]});await _0x96415[_0x33dc37(0x30d,_0x11dc2f._0x1cadd5,_0x11dc2f._0x5ce2ad,_0x11dc2f._0x350a3e)](_0x3112ce,!![]);const _0x532108={'file':_0x3112ce,'line':_0x3a4a39[_0x5edcca(_0x11dc2f._0x2734b6,_0x11dc2f._0x43293c,0x41,_0x11dc2f._0x774266)]-0x1,'character':_0x3a4a39[_0x5edcca(0x21d,_0x11dc2f._0x123450,_0x11dc2f._0x1f28e1,0x330)]-0x1};function _0x5edcca(_0x89a9ba,_0x4ff444,_0x106826,_0x5a9394){return _0x1d8cde(_0x89a9ba-0x19,_0x5a9394,_0x106826-0x70,_0x89a9ba- -_0x2cddff._0x3f3a0e);}switch(_0x469965){case _0x5edcca(0x27c,_0x11dc2f._0x3a74cc,_0x11dc2f._0x588318,0x256):{const _0x279842=await _0x96415[_0x33dc37(_0x11dc2f._0x499095,0x39d,0x2d9,_0x11dc2f._0x243e30)](_0x532108);return yield createToolOutput(formatHover(_0x279842),{'operation':_0x469965,'filePath':_0x3112ce,'hover':_0x279842}),void 0x0;}case'diagnostics':{const _0x444caf=await _0x96415[_0x5edcca(_0x11dc2f._0xb0bf40,0x3ba,0x251,0x398)](_0x3112ce);return yield createToolOutput(formatDiagnostics(_0x444caf),{'operation':_0x469965,'filePath':_0x3112ce,'diagnostics':_0x444caf}),void 0x0;}case _0x33dc37(_0x11dc2f._0x2fbe8b,0x318,0x3b7,0x22e):{const _0x2656cc=await _0x96415[_0x5edcca(0x19f,0x2e9,0x109,_0x11dc2f._0x4ac62a)](_0x532108);return yield createToolOutput(formatLocations(_0x2656cc),{'operation':_0x469965,'filePath':_0x3112ce,'locations':_0x2656cc}),void 0x0;}case _0x5edcca(0x1eb,_0x11dc2f._0x3cb1a6,0x2b7,0x289):{const _0x4e3edd=await _0x96415[_0x33dc37(_0x11dc2f._0x43346a,_0x11dc2f._0x61cc87,0x369,_0x11dc2f._0x35e9a1)](_0x532108);return yield createToolOutput(formatLocations(_0x4e3edd),{'operation':_0x469965,'filePath':_0x3112ce,'locations':_0x4e3edd}),void 0x0;}case _0x5edcca(0x17a,_0x11dc2f._0x222aff,_0x11dc2f._0x3a6b8f,_0x11dc2f._0x1a05af):{const _0xd164be=await _0x96415['implementation'](_0x532108);return yield createToolOutput(formatLocations(_0xd164be),{'operation':_0x469965,'filePath':_0x3112ce,'locations':_0xd164be}),void 0x0;}case'documentSymbol':{const _0x4100cb=await _0x96415[_0x33dc37(0x3dd,0x3f3,_0x11dc2f._0x483089,0x475)](_0x3112ce);return yield createToolOutput(formatSymbols(_0x4100cb),{'operation':_0x469965,'filePath':_0x3112ce,'symbols':_0x4100cb}),void 0x0;}case'prepareCallHierarchy':{const _0x1a7840=await _0x96415['prepareCallHierarchy'](_0x532108);return yield createToolOutput(formatSymbols(_0x1a7840),{'operation':_0x469965,'filePath':_0x3112ce,'symbols':toStructured(_0x1a7840)}),void 0x0;}case _0x33dc37(0x4d8,0x43a,_0x11dc2f._0x3278ea,0x442):{const _0x54d5d5=await _0x96415[_0x5edcca(_0x11dc2f._0x518183,0x2e8,_0x11dc2f._0x6a5793,_0x11dc2f._0x58503b)](_0x532108);return yield createToolOutput(formatIncomingCalls(_0x54d5d5),{'operation':_0x469965,'filePath':_0x3112ce,'calls':toStructured(_0x54d5d5)}),void 0x0;}case _0x5edcca(_0x11dc2f._0x3db09b,0x165,_0x11dc2f._0x2d7c80,0x1b9):{const _0x5b1737=await _0x96415[_0x5edcca(_0x11dc2f._0x3db09b,0x34b,0x2b1,0x356)](_0x532108);return yield createToolOutput(formatOutgoingCalls(_0x5b1737),{'operation':_0x469965,'filePath':_0x3112ce,'calls':toStructured(_0x5b1737)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x3524b8,readFile as _0x1c6e14,writeFile as _0x4acdfa}from'fs/promises';import{join as _0xd5abf7}from'path';function sanitizeStorageKey(_0x5b095c){const _0x2ccb29={_0x5854fe:0x145,_0x483b23:0xb8,_0x286a9f:0x296},_0x4d4d56={_0x224587:0x43,_0x160f2c:0x49f},_0x5be64f={_0x486c88:0xd4};function _0x2789e0(_0xcfb697,_0x4bc469,_0x24a183,_0x4a8df2){return _0x38d42b(_0xcfb697-0x10b,_0x4bc469-_0x5be64f._0x486c88,_0xcfb697,_0x4a8df2-0x80);}function _0x49f0b0(_0x41ab7b,_0x2c98e0,_0x36fe76,_0x19d8bb){return _0x38d42b(_0x41ab7b-_0x4d4d56._0x224587,_0x19d8bb-_0x4d4d56._0x160f2c,_0x41ab7b,_0x19d8bb-0x130);}return _0x5b095c[_0x2789e0(0xe7,0xac,_0x2ccb29._0x5854fe,_0x2ccb29._0x483b23)](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'')||_0x2789e0(0x1a5,0x158,0x1aa,_0x2ccb29._0x286a9f);}function storagePath(_0x587b67){const _0x43e02c={_0x268840:0x565,_0xa4c2c8:0x3ec,_0x144071:0x49f,_0x44f9b6:0x5c1,_0x28d328:0x5cd,_0x5b181f:0x4cf,_0x2e7f4e:0x480,_0x434ffc:0x560},_0xd0c7a0={_0x2d9c3a:0x2e},_0x2be066={_0x33f61c:0x2f1};function _0x5e7da2(_0x226443,_0x1434bb,_0x34c776,_0x4742fc){return _0x38d42b(_0x226443-0x3a,_0x226443-_0x2be066._0x33f61c,_0x34c776,_0x4742fc-0x49);}function _0x3b81ac(_0x2cb553,_0x143f54,_0x241578,_0x7bfa56){return _0x38d42b(_0x2cb553-0xef,_0x143f54-0x3ec,_0x2cb553,_0x7bfa56-_0xd0c7a0._0x2d9c3a);}const _0x310dbd=sanitizeStorageKey(_0x587b67[_0x3b81ac(_0x43e02c._0x268840,0x443,_0x43e02c._0xa4c2c8,0x450)][_0x3b81ac(0x4f3,_0x43e02c._0x144071,0x3b4,0x3be)]?.[_0x5e7da2(0x3f6,0x34d,0x355,0x458)]??_0x587b67[_0x3b81ac(_0x43e02c._0x44f9b6,0x4a6,0x416,_0x43e02c._0x28d328)]);return _0xd5abf7(_0x587b67['storageDir'],_0x310dbd+_0x5e7da2(_0x43e02c._0x5b181f,_0x43e02c._0x2e7f4e,_0x43e02c._0x434ffc,0x5a5));}async function readStore(_0x55bbfc){const _0x529dd7={_0x2aa8a5:0x8b,_0x300c7a:0xe0,_0x3f6929:0x82,_0x31dfa7:0x7d,_0x2bca25:0xa7,_0x4e8b4b:0x149,_0x44dc4d:0x1f,_0x3add1e:0x667,_0x5c940d:0x6c4,_0x214a6a:0x1eb,_0x41340f:0x190},_0x59caec={_0x416904:0x165,_0x56abbd:0x4cb},_0x402e4e={_0x289c8b:0x1ad};function _0xed4a4b(_0x38c780,_0x14d24f,_0x3a0ddf,_0x335f83){return _0x38d42b(_0x38c780-_0x402e4e._0x289c8b,_0x3a0ddf- -0xc2,_0x38c780,_0x335f83-0x28);}function _0x528487(_0x54fee7,_0x2b9357,_0x4709b5,_0x2b67e0){return _0x38d42b(_0x54fee7-_0x59caec._0x416904,_0x2b9357-_0x59caec._0x56abbd,_0x4709b5,_0x2b67e0-0xa0);}try{return JSON[_0xed4a4b(_0x529dd7._0x2aa8a5,-_0x529dd7._0x300c7a,-_0x529dd7._0x3f6929,-_0x529dd7._0x31dfa7)](await _0x1c6e14(_0x55bbfc,_0xed4a4b(_0x529dd7._0x2bca25,_0x529dd7._0x4e8b4b,0x9e,-_0x529dd7._0x44dc4d)));}catch(_0x2adb30){if(_0x2adb30 instanceof Error&&_0x528487(0x5a4,_0x529dd7._0x3add1e,0x766,_0x529dd7._0x5c940d)in _0x2adb30&&_0x2adb30[_0xed4a4b(_0x529dd7._0x214a6a,_0x529dd7._0x41340f,0xda,0x186)]==='ENOENT')return{};throw _0x2adb30;}}async function writeStore(_0x14871c,_0x844a95){const _0x680b5e={_0x1b49ab:0x5aa,_0x371bdf:0x5ab,_0x217f4e:0x4eb},_0x3604bc={_0x133c1b:0x185,_0x5ce05f:0x12f};await _0x3524b8(_0xd5abf7(_0x14871c,'..'),{'recursive':!![]});function _0x2353ac(_0x35b6f5,_0x3b1c6d,_0x200bd5,_0x3d1e5f){return _0x38d42b(_0x35b6f5-_0x3604bc._0x133c1b,_0x200bd5-0x44b,_0x3b1c6d,_0x3d1e5f-_0x3604bc._0x5ce05f);}await _0x4acdfa(_0x14871c,JSON['stringify'](_0x844a95,null,0x2),_0x2353ac(0x5dc,_0x680b5e._0x1b49ab,_0x680b5e._0x371bdf,_0x680b5e._0x217f4e));}async function updateStore(_0x5afea2,_0x240c6b){const _0x5c1ffd=await readStore(_0x5afea2);_0x240c6b(_0x5c1ffd),await writeStore(_0x5afea2,_0x5c1ffd);}function createMcpOAuthProvider(_0x2145b5){const _0x544441={_0x2a964b:0x2cc,_0x547d96:0x3cb,_0x5d58d9:0x3b8,_0x32584e:0x1cd,_0x39ba54:0xde,_0x553f77:0x20a,_0x1363f0:0x2ad,_0x49e937:0x2b6,_0x4673cf:0x3f6,_0x2a3008:0x538,_0x257a5a:0x262,_0xbbcf78:0x45e,_0x233403:0x284,_0x1acd05:0x1f2,_0x4bd77c:0x3a1,_0x27d0a1:0x2f3,_0x1a1937:0x501,_0x452c5:0x46,_0x2182c2:0x23b,_0x2755de:0x324,_0x576eae:0x44e},_0xa19139={_0x4ff42d:0x24d,_0x78fa1c:0x19a,_0x5ef36d:0x29a},_0x38be0d={_0x26e32b:0x3b,_0x58b05c:0x145,_0x4617ca:0x3cf,_0x4472c6:0x310,_0x32cdb2:0x3ae,_0x242b75:0x3ee,_0x4673f7:0x3ff,_0x309111:0x320,_0x3ff869:0x272,_0x45d9d6:0xba,_0x42ab3d:0xcf,_0x34e7c4:0x7},_0x2bfcab={_0x5ab1cd:0x1b,_0x4cd56c:0x109},_0x4579ba={_0x49b96b:0x4c,_0x2a42d0:0xac,_0x914d7a:0x1c0},_0x210eb9={_0x93e3fc:0x127},_0x37e01a={_0x57b06b:0x112,_0x3f1cde:0x21},_0x5ace86={_0x2ccd7a:0x339,_0x553a7d:0x388,_0x1eccd3:0x1f6},_0x10d7a0={_0x3f01d4:0x142,_0x5d68a7:0x1cc},_0x55d43a={_0x4b2f3d:0x8e,_0x236a5c:0x232},_0x12b19c={_0x1c0f19:0x84};function _0x458633(_0x213312,_0x251b02,_0x12c285,_0x2a8b15){return _0x37c1da(_0x213312-0x104,_0x251b02-_0x12b19c._0x1c0f19,_0x12c285,_0x251b02- -0x42a);}function _0x584e27(_0x1f140f,_0x2db92d,_0x4957b0,_0x9b1549){return _0x37c1da(_0x1f140f-0x81,_0x2db92d-_0x55d43a._0x4b2f3d,_0x4957b0,_0x1f140f- -_0x55d43a._0x236a5c);}const _0x4b64a8=storagePath(_0x2145b5),_0x126a80=_0x2145b5['config'][_0x584e27(_0x544441._0x2a964b,_0x544441._0x547d96,0x204,_0x544441._0x5d58d9)]?.[_0x458633(0x7b,0x19c,0x22e,_0x544441._0x32584e)]?.[_0x458633(_0x544441._0x39ba54,_0x544441._0x553f77,0x24a,0x2d5)]('\x20'),_0x36d38c={'client_name':_0x584e27(_0x544441._0x1363f0,_0x544441._0x49e937,0x386,0x3cc),'redirect_uris':[_0x2145b5[_0x584e27(0x436,_0x544441._0x4673cf,0x469,_0x544441._0x2a3008)]],'grant_types':[_0x584e27(0x314,_0x544441._0x257a5a,0x363,_0x544441._0xbbcf78),_0x584e27(_0x544441._0x233403,0x2a5,_0x544441._0x1acd05,_0x544441._0x4bd77c)],'response_types':[_0x584e27(0x3b5,0x3f1,_0x544441._0x27d0a1,_0x544441._0x1a1937)],'token_endpoint_auth_method':'client_secret_post',..._0x126a80?{'scope':_0x126a80}:{}};return{'clientMetadataUrl':_0x2145b5[_0x458633(-_0x544441._0x452c5,0x78,0xc1,0x1e)][_0x584e27(0x2cc,_0x544441._0x2182c2,0x343,0x1b6)]?.[_0x584e27(_0x544441._0x2755de,0x2d9,0x364,_0x544441._0x576eae)],get 'redirectUrl'(){const _0x26a893={_0x3e1494:0x221};function _0x3b7547(_0x29e26b,_0x247226,_0x2849c8,_0x47973e){return _0x584e27(_0x247226- -_0x26a893._0x3e1494,_0x247226-0x140,_0x2849c8,_0x47973e-0xe);}return _0x2145b5[_0x3b7547(0x1f3,0x215,_0x10d7a0._0x3f01d4,_0x10d7a0._0x5d68a7)];},get 'clientMetadata'(){return _0x36d38c;},async 'state'(){const _0x16fc4a={_0x36bd78:0x1a4},_0x357b58=await readStore(_0x4b64a8);function _0x5c497b(_0x42ec4d,_0x419423,_0x314190,_0x1d46db){return _0x584e27(_0x1d46db- -0x41c,_0x419423-0x187,_0x419423,_0x1d46db-_0x16fc4a._0x36bd78);}if(_0x357b58[_0x5c497b(0x51,-0xe8,-_0x37e01a._0x57b06b,-_0x37e01a._0x3f1cde)])return _0x357b58['state'];const _0x300856=randomUUID();return await updateStore(_0x4b64a8,_0x4e6a41=>{function _0x9d6a85(_0x1c9c3b,_0x5e5d79,_0x4080b9,_0x22f9de){return _0x5c497b(_0x1c9c3b-0x10d,_0x5e5d79,_0x4080b9-0x1b2,_0x1c9c3b-0x2a5);}_0x4e6a41[_0x9d6a85(0x284,_0x5ace86._0x2ccd7a,_0x5ace86._0x553a7d,_0x5ace86._0x1eccd3)]=_0x300856;}),_0x300856;},async 'clientInformation'(){const _0x1179de={_0x237ad4:0x1c9,_0x28aad9:0x135,_0x156458:0x113};function _0x5102f2(_0x2c3c03,_0x5cb43f,_0x33258f,_0xfd92b){return _0x584e27(_0x5cb43f- -_0x1179de._0x237ad4,_0x5cb43f-_0x1179de._0x28aad9,_0x2c3c03,_0xfd92b-_0x1179de._0x156458);}return(await readStore(_0x4b64a8))[_0x5102f2(_0x210eb9._0x93e3fc,0x188,0xf5,0x225)];},async 'saveClientInformation'(_0x3c11f1){await updateStore(_0x4b64a8,_0x2ec0a5=>{function _0x583842(_0x9d36b8,_0x7d77f7,_0x22253b,_0x2f3a11){return _0xa38c(_0x9d36b8- -0x395,_0x2f3a11);}_0x2ec0a5[_0x583842(-0x157,-_0x4579ba._0x49b96b,-_0x4579ba._0x2a42d0,-_0x4579ba._0x914d7a)]=_0x3c11f1;});},async 'tokens'(){return(await readStore(_0x4b64a8))['tokens'];},async 'saveTokens'(_0x4fb393){const _0x17d0ec={_0x54b8e7:0x6b7,_0x30ff74:0x435},_0xdd99a={_0x9da6b4:0x366};await updateStore(_0x4b64a8,_0x1c9078=>{function _0x412590(_0x1b0bb9,_0x397502,_0x4f9668,_0x5098c4){return _0xa38c(_0x4f9668-_0xdd99a._0x9da6b4,_0x1b0bb9);}_0x1c9078[_0x412590(0x434,_0x17d0ec._0x54b8e7,0x579,_0x17d0ec._0x30ff74)]=_0x4fb393;});},async 'redirectToAuthorization'(_0x5234e2){function _0xb18205(_0x55bd9,_0x434034,_0x251ab8,_0x1f69a4){return _0x584e27(_0x251ab8-0xf2,_0x434034-0x1c6,_0x434034,_0x1f69a4-0x14c);}await _0x2145b5[_0xb18205(0x4f7,0x352,0x3d6,0x409)](_0x5234e2);},async 'saveCodeVerifier'(_0x5c42e3){await updateStore(_0x4b64a8,_0x3b4f87=>{_0x3b4f87['codeVerifier']=_0x5c42e3;});},async 'codeVerifier'(){const _0x46c620=(await readStore(_0x4b64a8))[_0x227f5a(0x0,_0x2bfcab._0x5ab1cd,_0x2bfcab._0x4cd56c,0x238)];function _0x227f5a(_0x30cf83,_0x32f02b,_0x580052,_0x186791){return _0x584e27(_0x580052- -0x30c,_0x32f02b-0xc0,_0x30cf83,_0x186791-0x62);}if(!_0x46c620)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x46c620;},async 'invalidateCredentials'(_0x468b16){await updateStore(_0x4b64a8,_0x30eab3=>{const _0xd4fc7e={_0x5a3470:0xfd};function _0x8e9de2(_0x7b1f49,_0x4162a7,_0x30a667,_0x1470aa){return _0xa38c(_0x1470aa- -0xf9,_0x4162a7);}(_0x468b16==='all'||_0x468b16==='client')&&(_0x30eab3[_0x8e9de2(_0x38be0d._0x26e32b,0x17a,0x11f,_0x38be0d._0x58b05c)]=void 0x0);(_0x468b16==='all'||_0x468b16==='tokens')&&(_0x30eab3[_0x5b020e(0x26c,_0x38be0d._0x4617ca,0x369,_0x38be0d._0x4472c6)]=void 0x0);function _0x5b020e(_0x1e3d17,_0xd7dc84,_0x2e2b2b,_0x584ab){return _0xa38c(_0x584ab-_0xd4fc7e._0x5a3470,_0xd7dc84);}(_0x468b16==='all'||_0x468b16==='verifier')&&(_0x30eab3[_0x5b020e(0x47d,_0x38be0d._0x32cdb2,_0x38be0d._0x242b75,_0x38be0d._0x4673f7)]=void 0x0,_0x30eab3[_0x8e9de2(0x266,0xeb,0x21c,0x1ef)]=void 0x0),(_0x468b16===_0x8e9de2(_0x38be0d._0x309111,0x151,_0x38be0d._0x3ff869,0x23c)||_0x468b16==='discovery')&&(_0x30eab3[_0x8e9de2(-_0x38be0d._0x45d9d6,-0x111,_0x38be0d._0x42ab3d,-_0x38be0d._0x34e7c4)]=void 0x0);});},async 'saveDiscoveryState'(_0x351fd0){const _0x1b4da5={_0x550cc1:0x6f,_0x5622d1:0xea,_0x5a370f:0x139};await updateStore(_0x4b64a8,_0x249f54=>{function _0x1b6e33(_0x261e79,_0x2be5ff,_0x56c598,_0x5c2d9c){return _0xa38c(_0x2be5ff- -0x8,_0x261e79);}_0x249f54[_0x1b6e33(_0x1b4da5._0x550cc1,_0x1b4da5._0x5622d1,_0x1b4da5._0x5a370f,0x178)]=_0x351fd0;});},async 'discoveryState'(){const _0x150d78={_0x201fa5:0x99,_0x3a8026:0x2a7,_0x4a0128:0x9f};function _0x493b6(_0x467878,_0x2f7b49,_0x26f0c5,_0x7515f0){return _0x458633(_0x467878-_0x150d78._0x201fa5,_0x7515f0- -_0x150d78._0x3a8026,_0x467878,_0x7515f0-_0x150d78._0x4a0128);}return(await readStore(_0x4b64a8))[_0x493b6(-_0xa19139._0x4ff42d,-_0xa19139._0x78fa1c,-0x181,-_0xa19139._0x5ef36d)];}};}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(_0x1ad550,_0x1179bb){const _0x2c3c64={_0x50cf3e:0x16},_0x2ea3fd={_0x5c0000:0x194,_0x17106f:0x80};function _0x2cc28c(_0x1636f5,_0x4f2efb,_0x4db1ac,_0xbf469e){return _0x37c1da(_0x1636f5-0x145,_0x4f2efb-_0x2ea3fd._0x5c0000,_0x4db1ac,_0xbf469e-_0x2ea3fd._0x17106f);}const _0x128c6d=_0x14e22c=>_0x14e22c[_0x4fc322(0x41b,0x303,0x34e,0x439)](/[^a-zA-Z0-9_]+/g,'_')[_0x2cc28c(0x5ed,0x45f,0x430,0x4a3)](/^_+|_+$/g,'');function _0x4fc322(_0x48460d,_0x5e81ed,_0x5d69b7,_0x137b05){return _0x37c1da(_0x48460d-0xa5,_0x5e81ed-0x113,_0x5d69b7,_0x137b05-_0x2c3c64._0x50cf3e);}return'mcp_'+_0x128c6d(_0x1ad550)+'_'+_0x128c6d(_0x1179bb);}function isObject(_0x248daf){const _0x10b51e={_0x373482:0x227,_0x13a073:0x230,_0x44d028:0x3e6},_0x26727b={_0x3f83fe:0x13d,_0x82bc7a:0x84};function _0x325340(_0x210d10,_0x5e6c45,_0x524fd2,_0x4454c0){return _0x38d42b(_0x210d10-_0x26727b._0x3f83fe,_0x524fd2-0x30e,_0x210d10,_0x4454c0-_0x26727b._0x82bc7a);}return typeof _0x248daf===_0x325340(_0x10b51e._0x373482,_0x10b51e._0x13a073,0x31c,_0x10b51e._0x44d028)&&_0x248daf!==null&&!Array['isArray'](_0x248daf);}function toSupportedSchema(_0x3802e0){const _0x53499c={_0x5144b8:0x12c,_0x3719a4:0x226,_0x1bb9ef:0x201,_0x6b5ad8:0x298,_0x97afa1:0x160,_0x1bcaa6:0x4f,_0x166da8:0x213,_0xad0db7:0x24c,_0x1775ab:0x1f7,_0x3f5b99:0x2da,_0x18436b:0x23b,_0x1163d2:0xb5,_0x2593d5:0x176,_0x3a3153:0xe,_0x5690c4:0x235,_0x5b8a63:0xa4,_0x232110:0xe1,_0x3a244d:0x6e,_0x2d8697:0x1cf,_0x197bb5:0x212,_0x3e8c87:0xce,_0x1d03bd:0x149,_0x3e4708:0x293,_0x5a46f9:0x196,_0x74cf17:0x10c,_0x559a06:0x185,_0x3bfe49:0xef},_0x27e572={_0x1484c6:0x126,_0x31c12e:0xde,_0x40eec9:0x133},_0x507712={_0x1eacc0:0x105,_0x419d09:0x283,_0x58fddf:0x7b};if(!isObject(_0x3802e0))return void 0x0;function _0x33c5c8(_0x12849c,_0xe1aacd,_0x9b6ef0,_0x32a6e2){return _0x38d42b(_0x12849c-_0x507712._0x1eacc0,_0x12849c- -_0x507712._0x419d09,_0xe1aacd,_0x32a6e2-_0x507712._0x58fddf);}if(_0x3802e0[_0x33c5c8(-_0x53499c._0x5144b8,-0x250,-0x39,-_0x53499c._0x3719a4)]===_0x33c5c8(-_0x53499c._0x1bb9ef,-0x116,-0x2d5,-_0x53499c._0x6b5ad8))return{'type':_0x4b5e5d(_0x53499c._0x97afa1,0x256,_0x53499c._0x1bcaa6,_0x53499c._0x166da8)};if(_0x3802e0[_0x4b5e5d(0x235,_0x53499c._0xad0db7,0x26b,_0x53499c._0x1775ab)]===_0x33c5c8(-0x2ac,-0x3df,-_0x53499c._0x3f5b99,-_0x53499c._0x18436b)||_0x3802e0['type']===_0x33c5c8(-0x1cb,-0x195,-0x1a7,-0x16e))return{'type':_0x4b5e5d(_0x53499c._0x1163d2,_0x53499c._0x2593d5,0x11d,-_0x53499c._0x3a3153)};if(_0x3802e0[_0x4b5e5d(_0x53499c._0x5690c4,0x2d0,0x35c,0x31d)]==='boolean')return{'type':_0x33c5c8(-_0x53499c._0x5b8a63,-_0x53499c._0x232110,-_0x53499c._0x3a244d,-_0x53499c._0x2d8697)};if(_0x3802e0[_0x4b5e5d(0x235,0x2cf,0x1c4,_0x53499c._0x197bb5)]===_0x4b5e5d(_0x53499c._0x3e8c87,_0x53499c._0x1d03bd,0x1db,0x1d1))return{'type':_0x33c5c8(-_0x53499c._0x3e4708,-0x251,-_0x53499c._0x5a46f9,-0x378),'items':toSupportedSchema(_0x3802e0['items'])??{'type':_0x33c5c8(-0x201,-0x29b,-_0x53499c._0x74cf17,-0x181)}};function _0x4b5e5d(_0x1801e3,_0x57e673,_0x52cd58,_0x12d8b4){return _0x38d42b(_0x1801e3-_0x27e572._0x1484c6,_0x1801e3-_0x27e572._0x31c12e,_0x57e673,_0x12d8b4-_0x27e572._0x40eec9);}if(_0x3802e0[_0x33c5c8(-0x12c,0x2,-_0x53499c._0x559a06,-_0x53499c._0x3bfe49)]==='object')return toNuvinToolSchema(_0x3802e0);return void 0x0;}function toNuvinToolSchema(_0x35e033){const _0x163541={_0x2f94fb:0x4d7,_0x12bd75:0x14,_0x113f69:0xe,_0x204510:0xba,_0x5c62f9:0xf5,_0x2068c3:0x16,_0x1bade4:0x20,_0x28673d:0x129,_0xed43b:0x33e,_0x416407:0x476,_0x20343f:0xc4,_0x2d4133:0x631,_0x456b7f:0x4ad,_0x50aefb:0x4e5,_0x41fec4:0x553,_0x31e614:0x2fc,_0x15e5de:0x50e,_0x18f7d0:0x375,_0x53ed89:0x45d,_0x44de3e:0x11e,_0x1daa6f:0xf7},_0x340447={_0x5b08cb:0x22,_0x410833:0x44b},_0x1d1d30={_0x5e06a2:0x56,_0x5892ce:0x383};if(!isObject(_0x35e033)||_0x35e033['type']!==_0x52e5d4(0x45a,0x391,_0x163541._0x2f94fb,0x420))return{'type':_0x33ab0d(-_0x163541._0x12bd75,_0x163541._0x113f69,-_0x163541._0x204510,_0x163541._0x5c62f9),'properties':{}};function _0x52e5d4(_0x3aebb3,_0x38b57b,_0x1dee3a,_0x2f2320){return _0x38d42b(_0x3aebb3-_0x1d1d30._0x5e06a2,_0x38b57b-_0x1d1d30._0x5892ce,_0x2f2320,_0x2f2320-0x1b);}function _0x33ab0d(_0x4e1fe4,_0x1c403e,_0x3eb8b5,_0x25962d){return _0x37c1da(_0x4e1fe4-0x1f4,_0x1c403e-_0x340447._0x5b08cb,_0x25962d,_0x1c403e- -_0x340447._0x410833);}const _0x3fe620={},_0x54ce93=isObject(_0x35e033[_0x33ab0d(-_0x163541._0x2068c3,-_0x163541._0x1bade4,-_0x163541._0x28673d,0xfe)])?_0x35e033[_0x52e5d4(0x2e8,0x363,0x351,0x3d6)]:{};for(const [_0x49f080,_0xba76b8]of Object[_0x52e5d4(0x345,0x3bd,_0x163541._0xed43b,_0x163541._0x416407)](_0x54ce93)){const _0x19fc91=toSupportedSchema(_0xba76b8);if(_0x19fc91)_0x3fe620[_0x49f080]=_0x19fc91;}const _0x3dff80=Array[_0x33ab0d(-0x94,0x21,-_0x163541._0x20343f,-0x104)](_0x35e033[_0x52e5d4(_0x163541._0x2d4133,0x5b8,0x6e1,0x63f)])?_0x35e033[_0x52e5d4(_0x163541._0x456b7f,0x5b8,_0x163541._0x50aefb,_0x163541._0x41fec4)][_0x52e5d4(_0x163541._0x31e614,0x3a7,0x338,0x30d)](_0x54ad93=>typeof _0x54ad93===_0x52e5d4(0x2f8,0x405,0x31b,0x4cd)):void 0x0;return _0x3dff80?.[_0x52e5d4(_0x163541._0x15e5de,0x468,_0x163541._0x18f7d0,_0x163541._0x53ed89)]?{'type':_0x33ab0d(_0x163541._0x44de3e,_0x163541._0x113f69,-0x57,_0x163541._0x1daa6f),'properties':_0x3fe620,'required':_0x3dff80}:{'type':'object','properties':_0x3fe620};}function isJsonObject(_0x2d5f9e){const _0x572be6={_0x1f2df7:0x264},_0x369dfd={_0x27fe95:0x6a,_0x44c12a:0x285};function _0x281181(_0x36c061,_0x58ca0f,_0x15917d,_0x40e507){return _0x38d42b(_0x36c061-_0x369dfd._0x27fe95,_0x40e507- -_0x369dfd._0x44c12a,_0x36c061,_0x40e507-0xb9);}return typeof _0x2d5f9e===_0x281181(-0x2b2,-0x25d,-_0x572be6._0x1f2df7,-0x277)&&_0x2d5f9e!==null&&!Array['isArray'](_0x2d5f9e);}function formatMcpContent(_0x7cf4ea){const _0x3e8529={_0x1a8df3:0x355,_0x1346fd:0x5f9,_0x2164a1:0x495,_0x35ad9d:0x4c6,_0x33cd7f:0x566,_0xe7dd0e:0x458,_0x3c0134:0x50b},_0x351329={_0x181f9f:0x4},_0x4d3a38={_0x16b7d4:0x13e},_0x4cd61c={_0x82267c:0x393,_0x4caa94:0x2f5,_0x31adbc:0x43e,_0x236bc2:0x523,_0x4f4f63:0x301,_0x3e461f:0x27c,_0x3031ca:0x149,_0x45581f:0x474,_0x5ed319:0x44d,_0x17d3cf:0x397,_0x244478:0x210,_0x5d0329:0x2ca},_0x590458=Array[_0x13af13(0x2f6,_0x3e8529._0x1a8df3,0x413,0x3ef)](_0x7cf4ea[_0x13af13(_0x3e8529._0x1346fd,0x583,_0x3e8529._0x2164a1,_0x3e8529._0x35ad9d)])?_0x7cf4ea['content']:[],_0x2fc4d6=_0x590458[_0x13af13(_0x3e8529._0x33cd7f,0x736,0x71e,0x5ff)](_0x3f39dd=>{const _0x3f22a6={_0x27ab82:0x1e2,_0x34bca1:0x1a7};if(!isObject(_0x3f39dd))return'';if(_0x3f39dd[_0x3e837c(0x28f,_0x4cd61c._0x82267c,0x3bf,_0x4cd61c._0x4caa94)]===_0x3cce90(_0x4cd61c._0x31adbc,_0x4cd61c._0x236bc2,0x50e,_0x4cd61c._0x4f4f63)&&typeof _0x3f39dd['text']===_0x3e837c(_0x4cd61c._0x3e461f,_0x4cd61c._0x3031ca,0x273,0x220))return _0x3f39dd[_0x3cce90(0x43e,_0x4cd61c._0x45581f,_0x4cd61c._0x5ed319,_0x4cd61c._0x17d3cf)];function _0x3e837c(_0x55513b,_0x190a05,_0x483d7b,_0xf899ac){return _0x5bf80a(_0x55513b-_0x3f22a6._0x27ab82,_0xf899ac- -0x2f1,_0x483d7b-_0x3f22a6._0x34bca1,_0x483d7b);}function _0x3cce90(_0x31d03f,_0x4e46a6,_0x3a45a7,_0x3f2b67){return _0x13af13(_0x31d03f-0x19b,_0x4e46a6-0x3d,_0x4e46a6,_0x31d03f- -0x3f);}return JSON[_0x3e837c(_0x4cd61c._0x244478,0x35d,_0x4cd61c._0x5d0329,0x351)](_0x3f39dd);})[_0x5bf80a(0x50c,0x4b3,0x547,0x378)](_0x4ee1d9=>_0x4ee1d9[_0x13af13(0x378,0x4bb,0x38d,0x4b3)]>0x0)['join']('\x0a');if(_0x2fc4d6[_0x13af13(0x3ca,0x373,0x403,0x4b3)]>0x0)return _0x2fc4d6;function _0x13af13(_0x3b39eb,_0x1912b4,_0x1b98e2,_0x5a84d5){return _0x37c1da(_0x3b39eb-0xb7,_0x1912b4-_0x4d3a38._0x16b7d4,_0x1b98e2,_0x5a84d5- -0x7d);}function _0x5bf80a(_0x5bfcd3,_0x69e1b8,_0x4df56e,_0x224f4b){return _0x37c1da(_0x5bfcd3-0x18f,_0x69e1b8-_0x351329._0x181f9f,_0x224f4b,_0x69e1b8-0x44);}return JSON[_0x13af13(0x4c7,_0x3e8529._0xe7dd0e,_0x3e8529._0x3c0134,0x581)](_0x7cf4ea,null,0x2);}function createMcpTool(_0x1c5538){const _0x14727e={_0x51c31a:0x207,_0x33c13:0x10f,_0x2bb5ea:0x33f,_0x21f9f5:0x1d1,_0x1dae35:0x2a4,_0x3293f2:0x2b1,_0x33b9be:0x380,_0x20a88b:0x13e,_0x5ed01d:0x286,_0x5b4a6c:0x1d3,_0x53392b:0xfe,_0x472a83:0x8,_0x3e3e55:0x118,_0x20a3e1:0x408,_0x599a7a:0x297,_0x239d66:0x2e8,_0x551011:0x1ba,_0x37f24e:0xc9,_0x5b0cfd:0x91,_0x109853:0x189,_0x2cd8b8:0x11f,_0x1b0bb8:0x199,_0xe7ef96:0x27e,_0x2ca532:0x39b},_0x231419={_0x4f4d61:0x3ae,_0x128d83:0x39e,_0x2b756f:0x4df,_0x3dfbe8:0x31d,_0x233ed1:0x2d4,_0x4d8b08:0x3fa,_0x7ddd32:0x48c,_0x2b2c2c:0x5b2,_0xe14213:0x50a,_0x383a75:0x567,_0x334ff0:0x338,_0x64f353:0x56b,_0x4a7d98:0x4eb,_0x1284c5:0x428,_0x2894ca:0x47c,_0x3ea339:0x55f,_0x4871a7:0x443,_0x344ca0:0x481,_0x536646:0x533},_0x111c23={_0x332297:0x85},_0x177791={_0x56d3b7:0x2ef},_0x5d5a9a=createMcpToolName(_0x1c5538[_0x4487e9(_0x14727e._0x51c31a,0x29b,_0x14727e._0x33c13,0x159)],_0x1c5538[_0x4487e9(0x393,_0x14727e._0x2bb5ea,_0x14727e._0x21f9f5,_0x14727e._0x1dae35)]['name']);function _0x4487e9(_0x54ee89,_0x49e01b,_0x8ab698,_0x3ec043){return _0x38d42b(_0x54ee89-0x1e1,_0x3ec043-0x9f,_0x8ab698,_0x3ec043-0x12a);}function _0x4d741e(_0x5dfd55,_0x259112,_0x59e92c,_0x1bfc6c){return _0x37c1da(_0x5dfd55-0x190,_0x259112-0x112,_0x259112,_0x1bfc6c- -_0x177791._0x56d3b7);}return defineTool({'name':_0x5d5a9a,'description':_0x1c5538[_0x4487e9(0x397,_0x14727e._0x3293f2,_0x14727e._0x33b9be,0x2a4)][_0x4487e9(_0x14727e._0x20a88b,_0x14727e._0x5ed01d,0xbd,_0x14727e._0x5b4a6c)]??_0x4d741e(_0x14727e._0x53392b,-_0x14727e._0x472a83,_0x14727e._0x3e3e55,0x124)+_0x1c5538[_0x4d741e(_0x14727e._0x20a3e1,0x353,0x415,0x361)][_0x4487e9(_0x14727e._0x599a7a,_0x14727e._0x239d66,0x1ae,_0x14727e._0x551011)]+_0x4487e9(0x190,_0x14727e._0x37f24e,_0x14727e._0x5b0cfd,_0x14727e._0x109853)+_0x1c5538[_0x4d741e(_0x14727e._0x2cd8b8,_0x14727e._0x1b0bb8,_0x14727e._0xe7ef96,0x216)],'inputSchema':toNuvinToolSchema(_0x1c5538['tool'][_0x4487e9(_0x14727e._0x2ca532,0x3e1,0x17f,0x2b1)]),async *'execute'(_0x530bec){const _0x5ec53d={_0x829bbe:0x2c7};function _0x1e1ca0(_0x458fea,_0x54eaf6,_0x503a57,_0x56e62e){return _0x4487e9(_0x458fea-0xd7,_0x54eaf6-0x199,_0x56e62e,_0x458fea-_0x5ec53d._0x829bbe);}const _0x54b1b6=await _0x1c5538[_0x5739a4(_0x231419._0x4f4d61,_0x231419._0x128d83,_0x231419._0x2b756f,0x37b)][_0x1e1ca0(_0x231419._0x3dfbe8,_0x231419._0x233ed1,_0x231419._0x4d8b08,0x26f)]({'name':_0x1c5538['tool'][_0x1e1ca0(0x481,_0x231419._0x7ddd32,0x3e6,_0x231419._0x2b2c2c)],'arguments':isJsonObject(_0x530bec)?_0x530bec:{}});if(_0x54b1b6[_0x1e1ca0(_0x231419._0xe14213,0x4ff,0x51f,_0x231419._0x383a75)])throw new ToolExecutionError(formatMcpContent(_0x54b1b6),{'serverName':_0x1c5538[_0x1e1ca0(0x420,_0x231419._0x334ff0,0x384,0x48b)],'toolName':_0x1c5538[_0x1e1ca0(_0x231419._0x64f353,_0x231419._0x4a7d98,0x57d,0x501)][_0x1e1ca0(0x481,_0x231419._0x1284c5,_0x231419._0x2894ca,0x589)]});function _0x5739a4(_0x53b78f,_0x37b206,_0x438730,_0x274754){return _0x4d741e(_0x53b78f-0x1e0,_0x438730,_0x438730-0x4e,_0x37b206-_0x111c23._0x332297);}return yield createToolOutput(formatMcpContent(_0x54b1b6),{'serverName':_0x1c5538[_0x1e1ca0(0x420,0x428,_0x231419._0x3ea339,_0x231419._0x4871a7)],'toolName':_0x1c5538['tool'][_0x1e1ca0(_0x231419._0x344ca0,_0x231419._0x536646,0x4c2,0x4f1)],'result':_0x54b1b6}),void 0x0;}});}function resolvePrefix(_0x3a3f62,_0x189baa){const _0x32a8cc={_0x182d1a:0x40,_0x5b652d:0x1a6},_0xf8de62={_0x517e16:0x358};function _0x3b9819(_0x261927,_0x1e1cb6,_0x16573a,_0x35c37f){return _0x37c1da(_0x261927-0x2a,_0x1e1cb6-0x183,_0x261927,_0x1e1cb6- -_0xf8de62._0x517e16);}return _0x189baa[_0x3b9819(0x1e6,0x143,_0x32a8cc._0x182d1a,_0x32a8cc._0x5b652d)]??_0x3a3f62;}function buildMcpHttpHeaders(_0x56374d){const _0x93ffb9={_0x5ce031:0x31e,_0x30b434:0x459,_0x440cd7:0x273,_0x2fa0c4:0x1e4,_0x4a697e:0x41b,_0x4883e0:0xfe,_0x26c068:0xd1,_0x11a683:0x140,_0x1e55ef:0xf0,_0x2eb053:0x11b,_0x4b71fb:0x143,_0x304f16:0x29,_0x3326d1:0xa0,_0x14b88c:0x47,_0x12c913:0xed,_0x4c1bd6:0x449,_0x38c344:0x359,_0x238e79:0x590,_0x3d5c74:0x4ee,_0x576af1:0x456,_0x3580e5:0x3e9,_0x2c6e3e:0x412},_0xe51e75={_0x1b1649:0x1c2},_0x208910={..._0x56374d[_0x5cd0b0(_0x93ffb9._0x5ce031,_0x93ffb9._0x30b434,0x30f,_0x93ffb9._0x440cd7)]??{}};_0x56374d[_0x5cd0b0(_0x93ffb9._0x2fa0c4,_0x93ffb9._0x4a697e,0x323,0x344)]?.[_0x43a9ff(0x238,_0x93ffb9._0x4883e0,0x1ea,_0x93ffb9._0x26c068)]===_0x43a9ff(0x78,0xe,_0x93ffb9._0x11a683,-0xa7)&&_0x56374d['auth'][_0x43a9ff(_0x93ffb9._0x1e55ef,0x3,_0x93ffb9._0x2eb053,_0x93ffb9._0x4b71fb)]&&_0x208910[_0x43a9ff(0x50,-_0x93ffb9._0x304f16,_0x93ffb9._0x3326d1,-0x33)]===void 0x0&&(_0x208910[_0x43a9ff(_0x93ffb9._0x14b88c,-0x29,-0x144,_0x93ffb9._0x12c913)]=_0x5cd0b0(0x519,0x5c8,0x4bd,0x3d8)+_0x56374d['auth'][_0x5cd0b0(_0x93ffb9._0x4c1bd6,0x237,0x360,_0x93ffb9._0x38c344)]);function _0x5cd0b0(_0x3267fa,_0x386151,_0x1c9056,_0x1e13ec){return _0x37c1da(_0x3267fa-0x10f,_0x386151-0xcc,_0x386151,_0x1c9056- -0x147);}function _0x43a9ff(_0x57f382,_0x32d546,_0x449868,_0x52655d){return _0x38d42b(_0x57f382-0xdb,_0x32d546- -0x59,_0x449868,_0x52655d-_0xe51e75._0x1b1649);}return Object[_0x5cd0b0(0x43b,_0x93ffb9._0x238e79,_0x93ffb9._0x3d5c74,_0x93ffb9._0x576af1)](_0x208910)[_0x5cd0b0(0x44f,0x4c9,_0x93ffb9._0x3580e5,_0x93ffb9._0x2c6e3e)]>0x0?_0x208910:void 0x0;}function getErrorMessage(_0x40246b){const _0x34efe4={_0x1f9eb3:0x419,_0xb36ddc:0x2dd},_0x320478={_0x2bdd6d:0xeb,_0x11c49e:0x1fa,_0x366b5b:0x1a7};function _0x5e13d3(_0xe4d2c3,_0x504f4e,_0x1dd1db,_0x4ba906){return _0x38d42b(_0xe4d2c3-_0x320478._0x2bdd6d,_0x4ba906-_0x320478._0x11c49e,_0x504f4e,_0x4ba906-_0x320478._0x366b5b);}return _0x40246b instanceof Error?_0x40246b[_0x5e13d3(0x2d0,_0x34efe4._0x1f9eb3,0x20e,_0x34efe4._0xb36ddc)]:String(_0x40246b);}function isUnauthorizedError(_0x5c95cc){const _0x12b3fe={_0x396ca0:0xd2,_0x3a2ca0:0x1f2,_0x3888ec:0x13e,_0x7051c6:0x576,_0x1d864c:0x5ad,_0x1e36c7:0x5a6},_0x2d1e4f={_0x15ce23:0xbc},_0x5d5fec={_0x1ccfcf:0x1bd};function _0x398973(_0x3b84e2,_0x29cc60,_0x44cba9,_0x5b7ddd){return _0x38d42b(_0x3b84e2-_0x5d5fec._0x1ccfcf,_0x44cba9- -0x21f,_0x29cc60,_0x5b7ddd-0x1e4);}function _0x5a0f12(_0x3ec593,_0x51238f,_0x18474a,_0x2ecbb3){return _0x38d42b(_0x3ec593-0xef,_0x2ecbb3-0x42d,_0x18474a,_0x2ecbb3-_0x2d1e4f._0x15ce23);}return _0x5c95cc instanceof Error&&_0x5c95cc[_0x398973(-_0x12b3fe._0x396ca0,-_0x12b3fe._0x3a2ca0,-_0x12b3fe._0x3888ec,-0xc6)]['name']===_0x5a0f12(_0x12b3fe._0x7051c6,0x576,_0x12b3fe._0x1d864c,_0x12b3fe._0x1e36c7);}async function connectMcpServer(_0x55c313,_0x59af43,_0x1fbcf6){const _0x47377a={_0x4cd433:0xf6,_0x33a5f9:0x14,_0x3a5ff9:0x3cc,_0x55a033:0x98,_0x219d5f:0x52,_0x51a5b5:0x190,_0x29ec53:0x60,_0x3c7f9b:0xd0,_0x1bfe91:0xb8,_0x364b98:0x3f,_0x3c4a6f:0x26,_0x5c9d00:0xde,_0x1c361e:0xef,_0x12b37a:0x159,_0x12edea:0x146,_0x31405b:0x1ef,_0x3a4d9a:0x17e,_0x28a044:0x10b,_0x4d8058:0x2b8,_0x567f02:0x3d9,_0x5a571f:0x144,_0x4d292a:0x1e4,_0x3f6797:0x11f,_0x3ae753:0x6c,_0x1924f7:0x20,_0x42a59c:0x163,_0x147676:0xba,_0x2441ab:0xab,_0x1d3397:0x1a6,_0x1b9343:0xb2,_0xdddbdc:0x74,_0x5c2ddc:0x60,_0x176e80:0x2b,_0x3fbcf:0x126,_0x37fb1a:0x10f,_0xec0f56:0xb1,_0x3d474a:0xe5,_0x269dcc:0x20,_0x28921b:0x2aa,_0x3697f8:0x1ac,_0x2db6f2:0x227,_0x2a0664:0x2fe,_0x1aafd4:0x395,_0x1ee0ce:0x2a5,_0x4a7541:0x71,_0x174f12:0x9a,_0x4f366f:0x72,_0x2161e0:0x6,_0x351dee:0x141,_0x414bee:0x31b},_0x2660ba={_0x26fa67:0x3ee},_0x378692={_0x20244d:0x170},_0x59ff49={_0x238244:0x226,_0x3a5cd3:0x1b3},_0x2069a4={_0x4958bc:0x33},_0xa7e41={_0x200251:0x1a2,_0x41261b:0x28e,_0x4a640b:0xcf,_0x1288a6:0xae,_0x4e6f44:0xc5,_0x2c563d:0x77,_0x4da4ad:0x140,_0x228b27:0xb5,_0x384d6d:0x91},_0x5ccf46={_0x23ce30:0x140},_0x22310d={_0x5b2f34:0x191,_0x1fdf22:0x257},_0x55290d={_0x27c323:0x524};function _0x4ea189(_0x3b3d01,_0x3d1e3e,_0x37561e,_0x3524ed){return _0x37c1da(_0x3b3d01-0xac,_0x3d1e3e-0x1dc,_0x3d1e3e,_0x3b3d01- -_0x55290d._0x27c323);}const _0x3cfa91=new Client({'name':'nuvin','version':_0x4ea189(_0x47377a._0x4cd433,0xed,-0x25,_0x47377a._0x33a5f9)});_0x3cfa91[_0x69af93(_0x47377a._0x3a5ff9,0x2a6,0x3b8,0x22d)]=_0x5e9f37=>{function _0x2ac957(_0x347de5,_0x18c57c,_0xf5cf9c,_0x4e4d1d){return _0x69af93(_0x347de5-_0x22310d._0x5b2f34,_0x4e4d1d- -_0x22310d._0x1fdf22,_0xf5cf9c-0x22,_0xf5cf9c);}function _0x21a2a8(_0x257eaa,_0x251fda,_0x2cfff6,_0x17ccf5){return _0x69af93(_0x257eaa-_0x5ccf46._0x23ce30,_0x17ccf5- -0x3b2,_0x2cfff6-0x20,_0x257eaa);}console[_0x2ac957(0x1c6,0x2ab,0x1cb,_0xa7e41._0x200251)](_0x21a2a8(-_0xa7e41._0x41261b,-_0xa7e41._0x4a640b,-_0xa7e41._0x1288a6,-0x155)+_0x55c313+_0x21a2a8(-0x1cb,-0x179,-_0xa7e41._0x4e6f44,-0xd6),_0x5e9f37[_0x2ac957(-_0xa7e41._0x2c563d,_0xa7e41._0x4da4ad,_0xa7e41._0x228b27,_0xa7e41._0x384d6d)]);};function _0x69af93(_0x1eb588,_0xab759d,_0x38a687,_0x13deb2){return _0x38d42b(_0x1eb588-0x112,_0xab759d-0x205,_0x13deb2,_0x13deb2-0x17b);}if(_0x59af43['transport']==='http'||_0x59af43[_0x4ea189(-_0x47377a._0x55a033,-0x68,0x68,-_0x47377a._0x219d5f)]){if(!_0x59af43[_0x69af93(0x165,0x246,_0x47377a._0x51a5b5,0x139)])throw new Error(_0x4ea189(0x159,0x232,0x199,_0x47377a._0x29ec53)+_0x55c313+_0x4ea189(-0xeb,-0x84,-_0x47377a._0x3c7f9b,-0xb5));if(_0x59af43[_0x69af93(0x2c3,0x224,0x2ea,0x137)]?.[_0x4ea189(0x7e,-_0x47377a._0x1bfe91,-_0x47377a._0x364b98,0x37)]==='oauth'&&!_0x1fbcf6?.[_0x4ea189(-_0x47377a._0x3c4a6f,_0x47377a._0x5c9d00,_0x47377a._0x1c361e,0x5e)])throw new Error(_0x4ea189(_0x47377a._0x12b37a,0x16d,_0x47377a._0x12edea,0x271)+_0x55c313+'\x20requires\x20OAuth\x20connection\x20options');const _0x19a1e6=buildMcpHttpHeaders(_0x59af43),_0x4a80b1=_0x59af43[_0x4ea189(-0xba,-_0x47377a._0x31405b,-_0x47377a._0x3a4d9a,-0x60)]?.['type']===_0x4ea189(-0x26,0x7d,_0x47377a._0x28a044,-0x83)&&_0x1fbcf6?.[_0x69af93(0x3f5,_0x47377a._0x4d8058,0x341,_0x47377a._0x567f02)]?createMcpOAuthProvider({'serverName':_0x55c313,'callbackUrl':_0x1fbcf6['oauth'][_0x4ea189(_0x47377a._0x5a571f,0x193,_0x47377a._0x4d292a,0x216)],'storageDir':_0x1fbcf6[_0x4ea189(-0x26,-_0x47377a._0x3f6797,_0x47377a._0x3ae753,_0x47377a._0x1924f7)][_0x4ea189(-0xad,-0x16e,-_0x47377a._0x42a59c,-0x167)],'config':_0x59af43[_0x4ea189(-_0x47377a._0x147676,-0x170,-_0x47377a._0x2441ab,-_0x47377a._0x1d3397)],'onRedirect':_0x4b249e=>_0x1fbcf6[_0x69af93(0x3da,0x2b8,0x3ce,0x3d8)]?.[_0x69af93(0x25c,0x2d0,0x239,0x195)](_0x55c313,_0x4b249e)}):void 0x0,_0x53c453=new StreamableHTTPClientTransport(new URL(_0x59af43[_0x4ea189(-0x98,_0x47377a._0x1b9343,_0x47377a._0xdddbdc,_0x47377a._0x5c2ddc)]),{'authProvider':_0x4a80b1,'requestInit':_0x19a1e6?{'headers':_0x19a1e6}:void 0x0});await _0x3cfa91[_0x4ea189(-0x96,-_0x47377a._0x176e80,-_0x47377a._0x3fbcf,0x9a)](_0x53c453);}else{if(!_0x59af43[_0x4ea189(0x20,_0x47377a._0x37fb1a,-0xd1,_0x47377a._0xec0f56)])throw new Error(_0x4ea189(0x159,_0x47377a._0x3d474a,_0x47377a._0x269dcc,0x245)+_0x55c313+_0x69af93(0x37b,_0x47377a._0x28921b,0x1c1,_0x47377a._0x3697f8));const _0x57daaf=new StdioClientTransport({'command':_0x59af43[_0x69af93(_0x47377a._0x2db6f2,_0x47377a._0x2a0664,_0x47377a._0x1aafd4,0x3a9)],'args':_0x59af43[_0x69af93(0x2fe,0x214,_0x47377a._0x1ee0ce,0x2e3)]??[],'env':_0x59af43[_0x4ea189(-0x27,-0x96,-0x16d,_0x47377a._0x4a7541)],'stderr':_0x4ea189(_0x47377a._0x174f12,-_0x47377a._0x4f366f,_0x47377a._0x2161e0,0x1dc)});await _0x3cfa91[_0x69af93(_0x47377a._0x351dee,0x248,_0x47377a._0x414bee,0x1db)](_0x57daaf);}return{async 'listTools'(){function _0x10b74c(_0x26d37d,_0x1881cb,_0x41280e,_0x383563){return _0x69af93(_0x26d37d-0x1c8,_0x1881cb- -0x154,_0x41280e-_0x2069a4._0x4958bc,_0x41280e);}return await _0x3cfa91[_0x10b74c(0x26e,_0x59ff49._0x238244,0xda,_0x59ff49._0x3a5cd3)]();},async 'callTool'(_0x9a9846){return await _0x3cfa91['request']({'method':'tools/call','params':_0x9a9846},CallToolResultSchema);},async 'close'(){function _0x6522ee(_0x182291,_0x2fa5bd,_0x3988de,_0x1bff43){return _0x69af93(_0x182291-0xa0,_0x3988de-_0x378692._0x20244d,_0x3988de-0x1f3,_0x1bff43);}await _0x3cfa91[_0x6522ee(0x373,0x2b0,_0x2660ba._0x26fa67,0x2e0)]();}};}async function createMcpToolsFromServers(_0x9eb93){const _0xd4c9ae={_0x25bd41:0xbe,_0x2f62a7:0xb4,_0x3887fd:0x7d,_0x4f5964:0x8d,_0x42b2dc:0x1a7,_0x3276b1:0xea,_0x2d9bef:0x7c,_0x58c0af:0x9c,_0x88bf8f:0x14b,_0x439f1f:0x1,_0x1d653a:0x138,_0x1e9fbe:0xb,_0x422f04:0x13,_0x56a2d7:0x7c,_0x3fde38:0x19d,_0x508ea9:0xd7,_0x597bac:0x54,_0x47bbaf:0x49,_0x1d0a1d:0xd5,_0x32cd32:0x190},_0x5157a8={_0x14f422:0xfa,_0x4b5eca:0x234,_0x74c899:0xb1,_0x3303fe:0x1ad},_0x226225={_0x1321fb:0x125},_0x4b6bd3=_0x9eb93['connect']??connectMcpServer,_0x47bebd=[];function _0x452656(_0x51032e,_0x475efc,_0x4b9f5d,_0x447f40){return _0x37c1da(_0x51032e-0x1d8,_0x475efc-0x19,_0x475efc,_0x4b9f5d- -0x475);}function _0x3e2492(_0xb820ea,_0xc4f2f9,_0x4c0de9,_0x59ce36){return _0x38d42b(_0xb820ea-_0x226225._0x1321fb,_0xb820ea- -0x1a0,_0xc4f2f9,_0x59ce36-0x58);}const _0x52abd6={},_0x44a452=[];for(const [_0x4e764a,_0x4b0433]of Object['entries'](_0x9eb93['servers']??{})){if(_0x4b0433[_0x452656(0x1b,_0xd4c9ae._0x25bd41,0xbf,-0x48)]===![]){_0x52abd6[_0x4e764a]={'status':_0x452656(-0x14b,-_0xd4c9ae._0x2f62a7,-_0xd4c9ae._0x3887fd,-0xd2)};continue;}try{const _0x4b3825=await _0x4b6bd3(_0x4e764a,_0x4b0433,_0x9eb93[_0x3e2492(-0x94,0x16,-0x159,_0xd4c9ae._0x4f5964)]);_0x47bebd[_0x452656(-_0xd4c9ae._0x42b2dc,-_0xd4c9ae._0x3276b1,-_0xd4c9ae._0x2d9bef,-_0xd4c9ae._0x58c0af)](_0x4b3825);const _0x4bd96e=await _0x4b3825[_0x452656(0x149,0x18e,_0xd4c9ae._0x88bf8f,_0xd4c9ae._0x439f1f)]();let _0x58c7d4=0x0;for(const _0x151c53 of _0x4bd96e[_0x452656(_0xd4c9ae._0x1d653a,0x29,0x13a,0x72)]){const _0x39f78a=_0x9eb93['allowedTools']?.[_0x4e764a]?.[_0x151c53[_0x452656(0xe1,0x125,0xf1,_0xd4c9ae._0x1e9fbe)]];if(_0x39f78a===![])continue;_0x58c7d4+=0x1,_0x44a452[_0x452656(-_0xd4c9ae._0x422f04,-0x85,-_0xd4c9ae._0x56a2d7,-_0xd4c9ae._0x3fde38)](createMcpTool({'serverName':resolvePrefix(_0x4e764a,_0x4b0433),'tool':_0x151c53,'client':_0x4b3825}));}_0x52abd6[_0x4e764a]={'status':_0x452656(_0xd4c9ae._0x508ea9,-_0xd4c9ae._0x597bac,_0xd4c9ae._0x47bbaf,0x126),'toolCount':_0x58c7d4};}catch(_0x2de1ba){_0x52abd6[_0x4e764a]=isUnauthorizedError(_0x2de1ba)?{'status':_0x452656(-_0xd4c9ae._0x1d0a1d,-_0xd4c9ae._0x32cd32,-0x61,0xa2),'message':getErrorMessage(_0x2de1ba)}:{'status':'error','message':getErrorMessage(_0x2de1ba)};}}return{'tools':_0x44a452,'servers':_0x52abd6,async 'close'(){const _0xa85b34={_0x4cdf5b:0x187},_0x57c47c={_0x20ab25:0x5a,_0x1b3422:0x10c};function _0x3e2ca2(_0xf4a910,_0x192a00,_0x388430,_0x534d46){return _0x452656(_0xf4a910-0x102,_0x192a00,_0x534d46- -_0x57c47c._0x20ab25,_0x534d46-_0x57c47c._0x1b3422);}function _0x16b177(_0x398d3f,_0x4c128c,_0x41a2d9,_0x2db73d){return _0x452656(_0x398d3f-_0xa85b34._0x4cdf5b,_0x2db73d,_0x398d3f-0x82,_0x2db73d-0xf5);}await Promise[_0x3e2ca2(_0x5157a8._0x14f422,0x217,_0x5157a8._0x4b5eca,0x1ab)](_0x47bebd[_0x3e2ca2(0x17d,0xc1,_0x5157a8._0x74c899,_0x5157a8._0x3303fe)](_0x6930a9=>_0x6930a9['close']()));}};}function getCommand(_0x17e82a){const _0x13e382={_0x2060bb:0x246,_0x44a2cf:0x6c,_0x445e06:0xb9,_0x40267c:0x307,_0xe4419d:0x2c5,_0x521ebd:0x36b,_0x4ea5fa:0x220,_0x3a9d57:0x146,_0x4a3429:0x2d,_0x4a775d:0x3f,_0x4686b9:0x78},_0x51c739={_0x171454:0x6,_0x4947aa:0x7e,_0x3fe6b9:0x2ad},_0x29a7c4={_0x359e04:0x85,_0x4c784e:0x5b1};if(_0x17e82a&&typeof _0x17e82a===_0x266f42(_0x13e382._0x2060bb,0x1ac,_0x13e382._0x44a2cf,0xc9)&&!Array[_0x266f42(_0x13e382._0x445e06,0x1bf,_0x13e382._0x40267c,_0x13e382._0xe4419d)](_0x17e82a)&&typeof _0x17e82a['command']===_0x266f42(_0x13e382._0x521ebd,_0x13e382._0x4ea5fa,0x333,_0x13e382._0x3a9d57))return _0x17e82a['command'];function _0x2d62a1(_0x3c3891,_0x6f99b2,_0x2d13c9,_0x2bf7ee){return _0x37c1da(_0x3c3891-0x50,_0x6f99b2-_0x29a7c4._0x359e04,_0x2bf7ee,_0x6f99b2- -_0x29a7c4._0x4c784e);}function _0x266f42(_0x5ecc6d,_0x476241,_0x458233,_0xfbf048){return _0x37c1da(_0x5ecc6d-_0x51c739._0x171454,_0x476241-_0x51c739._0x4947aa,_0xfbf048,_0x476241- -_0x51c739._0x3fe6b9);}return _0x2d62a1(-0x28,-_0x13e382._0x4a3429,-_0x13e382._0x4a775d,-_0x13e382._0x4686b9);}var MOCK_WORKSPACE_LISTING=[_0x38d42b(0xfd,0x190,0xb3,0x170),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x38d42b(0x2a0,0x1dd,0x2b2,0x221),'package.json',_0x37c1da(0x653,0x549,0x5fe,0x65e),'src/formats/message-format.ts',_0x38d42b(0x27a,0x1a8,0x122,0x8e),'src/agent/extension-registry.ts','src/models/mock-model.ts','src/tools/mock-tool-runtime.ts','src/formats/provider-adapters.ts',_0x37c1da(0x61d,0x4b0,0x6bd,0x5ac),_0x38d42b(0xf8,0x145,0xe1,0x23f),_0x37c1da(0x68c,0x53e,0x4c7,0x5b5),_0x37c1da(0x5ca,0x769,0x796,0x683),'src/formats/provider-adapters.test.ts','src/agent/turn-engine.test.ts'][_0x37c1da(0x4f0,0x590,0x56c,0x634)]('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':_0x37c1da(0x33a,0x53a,0x496,0x464),'input_schema':{'type':_0x37c1da(0x47f,0x4f1,0x575,0x459),'properties':{'command':{'type':_0x38d42b(0x13f,0x82,0x117,0xc)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x27c10f){return{'output':_0x27c10f,'structured':{'value':_0x27c10f}};}function createUnknownToolResult(_0x37fe85){const _0x2ed70c={_0x26a3bc:0x2f3,_0x2268d7:0x319,_0x6a7ecd:0x215,_0x58a93b:0x2d6,_0x4b6d39:0x9c,_0x1829fd:0x1bc,_0x255ba6:0x27c,_0x138775:0x3b6,_0x5a7927:0x319,_0x596437:0x44b},_0x50e003={_0x3e041d:0x3d,_0xab3f47:0x252};function _0x5b4d27(_0x5e0ea2,_0x21e8ca,_0x2e8220,_0x47f902){return _0x37c1da(_0x5e0ea2-0x27,_0x21e8ca-0x109,_0x5e0ea2,_0x21e8ca- -0x24d);}function _0x4abd34(_0x439c56,_0xf606d8,_0x13a73e,_0x409ce7){return _0x37c1da(_0x439c56-0x1c6,_0xf606d8-_0x50e003._0x3e041d,_0xf606d8,_0x13a73e- -_0x50e003._0xab3f47);}return{'callId':_0x37fe85['id'],'toolName':_0x37fe85[_0x5b4d27(_0x2ed70c._0x26a3bc,_0x2ed70c._0x2268d7,_0x2ed70c._0x6a7ecd,_0x2ed70c._0x58a93b)],'status':'error','output':_0x5b4d27(_0x2ed70c._0x4b6d39,_0x2ed70c._0x1829fd,0x1eb,_0x2ed70c._0x255ba6)+_0x37fe85[_0x5b4d27(_0x2ed70c._0x138775,_0x2ed70c._0x5a7927,0x3c7,_0x2ed70c._0x596437)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x27c93a,_0x546fd2){const _0x134aaa={_0x4abab2:0xa8,_0x18c9f6:0x13e,_0x858ff2:0x131,_0x3af756:0x18a,_0x2d7438:0x61,_0x2155b8:0xe3,_0x117a89:0x1c},_0x94a7cd={_0x5c3ce8:0x6c};function _0x2d4235(_0x285325,_0x3921fa,_0x4fb9cd,_0x2af871){return _0x38d42b(_0x285325-0x107,_0x3921fa-0x23,_0x4fb9cd,_0x2af871-_0x94a7cd._0x5c3ce8);}function _0x3f9799(_0x4f4c23,_0x51bacf,_0x4d66c1,_0x1d8940){return _0x38d42b(_0x4f4c23-0x5f,_0x4f4c23- -0x69,_0x4d66c1,_0x1d8940-0x11a);}return{'callId':_0x27c93a['id'],'toolName':_0x27c93a[_0x2d4235(_0x134aaa._0x4abab2,_0x134aaa._0x18c9f6,_0x134aaa._0x858ff2,_0x134aaa._0x3af756)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x27c93a[_0x3f9799(-_0x134aaa._0x2d7438,_0x134aaa._0x2155b8,_0x134aaa._0x117a89,0xe4)]),'exitCode':0x0},'chunks':[_0x546fd2],'meta':createMeta()};}function createMockToolRuntime(){const _0x3cabd5={_0x1fadf6:0x45a,_0x2047f5:0x4ed,_0x4c4136:0x6f3,_0x27eda6:0x6d3},_0xe6f753=async(_0x543fa2,_0x3a4ef0)=>{if(_0x543fa2['name']!=='Bash')return createUnknownToolResult(_0x543fa2);const _0x538bff=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x543fa2,_0x538bff);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x3a29fe,_0x274988){function _0x2d3692(_0x1ec5dc,_0x2b45bb,_0x2458ca,_0x346141){return _0xa38c(_0x1ec5dc-0x24d,_0x346141);}function _0x605e5e(_0x4ed280,_0x14228a,_0x2768bb,_0x19afbf){return _0xa38c(_0x19afbf-0x303,_0x4ed280);}return await Promise[_0x2d3692(0x582,0x454,_0x3cabd5._0x1fadf6,_0x3cabd5._0x2047f5)](_0x3a29fe[_0x605e5e(_0x3cabd5._0x4c4136,_0x3cabd5._0x27eda6,0x5d9,0x63a)](async _0x1b1ef4=>{return await _0xe6f753(_0x1b1ef4,_0x274988);}));},async 'execute'(_0x323543,_0x1eafca){return await _0xe6f753(_0x323543,_0x1eafca);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x37bd22={_0x1baee8:0x589,_0x39d33c:0x6ac,_0x5b8bb7:0x6cd},_0x560b98={_0x4a8160:0x9e};function _0x4a9073(_0x5984b3,_0x6c5ac2,_0x5d70c3,_0x20461c){return _0x37c1da(_0x5984b3-0x14b,_0x6c5ac2-0x102,_0x6c5ac2,_0x5984b3-_0x560b98._0x4a8160);}return delegatedRunCounter+=0x1,_0x4a9073(_0x37bd22._0x1baee8,_0x37bd22._0x39d33c,_0x37bd22._0x5b8bb7,0x501)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x9ca55f,_0x1235be){const _0x5e0726={_0x14e12a:0x19c};function _0x397e30(_0x4e43d5,_0x1f9ea8,_0x2df04d,_0x310327){return _0x37c1da(_0x4e43d5-0x1ea,_0x1f9ea8-0x4b,_0x2df04d,_0x310327- -0x22c);}return typeof _0x9ca55f===_0x397e30(0x154,0x32c,_0x5e0726._0x14e12a,0x25b)?await _0x9ca55f(_0x1235be):_0x9ca55f;}function getDelegatedAgentDefinition(_0x271c56,_0x522c4c){const _0x2117ac={_0x1c17db:0x14b},_0x2cae68={_0x141d66:0x173};function _0x301f6f(_0x38db4d,_0x3dba80,_0x3b0439,_0x4862c6){return _0x37c1da(_0x38db4d-_0x2cae68._0x141d66,_0x3dba80-0x19a,_0x4862c6,_0x3b0439- -0x5ec);}return _0x271c56[_0x301f6f(-0x11e,-0x99,-_0x2117ac._0x1c17db,-0xe3)]?.[_0x522c4c];}function createRunSummary(_0x219e77){const _0x4fca41={_0x53b52e:0x1bf,_0x59502e:0x268,_0xff6206:0x8a,_0x1b6e18:0x176,_0x1f87aa:0xf8,_0x174b01:0x2a2,_0x4ce427:0x1e7,_0x45584f:0x4cb,_0x4ee417:0x5fd,_0x20a9bc:0x3e2,_0x18148d:0x1f7,_0x57185a:0x2ad,_0x1ec72e:0x27f,_0x2fc268:0x2e4,_0x3c7b0f:0x1ed,_0x24c477:0x25a,_0x50bf98:0x244,_0x560432:0x275,_0x2be20c:0xd9,_0x5725b9:0x194,_0x35765e:0x2d4,_0x382d4f:0x272,_0x50ddc3:0x453,_0xc2aeeb:0x4f1,_0x25c2e3:0x40e},_0x4b83e3={_0x355552:0xdd},_0x29afea={_0x1925cf:0x13a,_0x227a91:0xce};function _0x3b25d4(_0x325286,_0x551090,_0x1ccad0,_0x334478){return _0x37c1da(_0x325286-0x1ca,_0x551090-_0x29afea._0x1925cf,_0x1ccad0,_0x325286- -_0x29afea._0x227a91);}function _0x48992c(_0xc5c0e3,_0x3800a0,_0x1e50fa,_0x3f5d78){return _0x38d42b(_0xc5c0e3-_0x4b83e3._0x355552,_0x3f5d78- -0x26a,_0x3800a0,_0x3f5d78-0xfb);}return{'runId':_0x219e77[_0x48992c(-0x2e1,-_0x4fca41._0x53b52e,-0x1cf,-_0x4fca41._0x59502e)],'agentId':_0x219e77[_0x48992c(-_0x4fca41._0xff6206,-0x3a,-0x86,-_0x4fca41._0x1b6e18)],'sessionId':_0x219e77[_0x48992c(-0x31d,-_0x4fca41._0x1f87aa,-_0x4fca41._0x174b01,-_0x4fca41._0x4ce427)],'status':_0x219e77[_0x3b25d4(0x4c5,_0x4fca41._0x45584f,_0x4fca41._0x4ee417,_0x4fca41._0x20a9bc)],'parentSessionId':_0x219e77[_0x48992c(-0x139,-_0x4fca41._0x18148d,-_0x4fca41._0x57185a,-0x233)],..._0x219e77['originToolCallId']!==void 0x0?{'originToolCallId':_0x219e77['originToolCallId']}:{},..._0x219e77[_0x48992c(-_0x4fca41._0x1ec72e,-0x1e0,-_0x4fca41._0x2fc268,-_0x4fca41._0x3c7b0f)]!==void 0x0?{'errorMessage':_0x219e77[_0x48992c(-_0x4fca41._0x24c477,-_0x4fca41._0x50bf98,-_0x4fca41._0x560432,-0x1ed)]}:{},..._0x219e77['result']?.[_0x48992c(-0x88,-_0x4fca41._0x2be20c,-0x146,-_0x4fca41._0x5725b9)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x219e77[_0x48992c(-0x29e,-0x33c,-_0x4fca41._0x35765e,-_0x4fca41._0x382d4f)][_0x3b25d4(_0x4fca41._0x50ddc3,_0x4fca41._0xc2aeeb,_0x4fca41._0x25c2e3,0x4f7)])}:{}};}function createRunSummaryOutput(_0x2c3804,_0xc53bc0){const _0x24edab={_0x3d0466:0x1df,_0x45fcca:0x1cc,_0x2f5a99:0x293,_0x4cfa2e:0xd2},_0x7c2c80={_0x2413f3:0x164},_0x1034e8={_0xcb6643:0x1c1},_0x197e6b=createRunSummary(_0x2c3804);function _0x8033a7(_0x6976bd,_0x3c727b,_0x1e3a6b,_0x273843){return _0x37c1da(_0x6976bd-0x1db,_0x3c727b-_0x1034e8._0xcb6643,_0x273843,_0x3c727b- -0x6ba);}const _0x9dbcfb=_0x197e6b[_0x3005c1(0x484,0x442,0x37e,0x238)];function _0x3005c1(_0x2e7c05,_0x45eb57,_0x558543,_0x27d1eb){return _0x38d42b(_0x2e7c05-0x6,_0x558543-0x2d4,_0x45eb57,_0x27d1eb-_0x7c2c80._0x2413f3);}return createToolOutput(typeof _0x9dbcfb===_0x8033a7(-_0x24edab._0x3d0466,-0x1ed,-_0x24edab._0x45fcca,-_0x24edab._0x2f5a99)&&_0x9dbcfb[_0x8033a7(-0x20f,-0x18a,-_0x24edab._0x4cfa2e,-0x17a)]>0x0?_0x9dbcfb:_0xc53bc0,_0x197e6b);}function getRunTerminalErrorMessage(_0xbfe804){const _0x2bfd5f={_0xf09e8:0x454,_0xcd72e3:0x348,_0x46419d:0x37a,_0x14d9f0:0x3aa,_0x42d1ff:0x467,_0x29bb93:0x4af,_0x15ff36:0x370,_0x5ce92d:0x4ba,_0x49635f:0x3eb,_0x21b6e2:0x44a,_0x23417e:0x381,_0x1eff58:0x4de,_0x4cf147:0x4ad,_0x3a1bd1:0x446,_0x1f1998:0x4cd},_0x59a5c4={_0x426ae4:0xa},_0x176a7f={_0x4ad970:0xf8,_0x167454:0x38};function _0x19f68e(_0x10e15f,_0x1f8258,_0x56e946,_0x103e8e){return _0x38d42b(_0x10e15f-_0x176a7f._0x4ad970,_0x103e8e-0x4cf,_0x1f8258,_0x103e8e-_0x176a7f._0x167454);}const _0x24e891=_0xbfe804?.[_0x5325f6(_0x2bfd5f._0xf09e8,_0x2bfd5f._0xcd72e3,_0x2bfd5f._0x46419d,0x485)][_0x5325f6(_0x2bfd5f._0x14d9f0,_0x2bfd5f._0x42d1ff,0x3ef,0x453)]['at'](-0x1);if(_0x24e891?.[_0x5325f6(_0x2bfd5f._0x29bb93,_0x2bfd5f._0x15ff36,_0x2bfd5f._0x5ce92d,_0x2bfd5f._0x49635f)]===_0x5325f6(0x386,_0x2bfd5f._0x21b6e2,_0x2bfd5f._0x23417e,0x497)&&_0x24e891[_0x19f68e(_0x2bfd5f._0x1eff58,_0x2bfd5f._0x4cf147,0x535,0x4f9)]['trim']()['length']>0x0)return _0x24e891[_0x19f68e(_0x2bfd5f._0x3a1bd1,_0x2bfd5f._0x1f1998,0x615,0x4f9)];function _0x5325f6(_0xc051b3,_0x16bb63,_0x55b9ad,_0x1dcb9d){return _0x37c1da(_0xc051b3-_0x59a5c4._0x426ae4,_0x16bb63-0x20,_0xc051b3,_0x1dcb9d- -0x1a8);}return void 0x0;}function formatAbortedRunMessage(_0x85f1bd,_0x2b4efe){const _0x3ed3d7={_0x17f17f:0x2c3,_0x32353c:0x4a2,_0x3858a4:0x3fb},_0x1a4bd7={_0x327f24:0x78,_0x4ebedf:0x178},_0xeda62a=_0x12b67a(-0x9,0x14e,0x1a7,0x104)+_0x85f1bd+'\x20was\x20aborted.';function _0x242cfc(_0x3dc162,_0x4a0a75,_0x411670,_0x779d47){return _0x37c1da(_0x3dc162-0x87,_0x4a0a75-_0x1a4bd7._0x327f24,_0x3dc162,_0x411670- -_0x1a4bd7._0x4ebedf);}if(!_0x2b4efe||_0x2b4efe['trim']()[_0x12b67a(0x96,0x1ca,0x2dc,0x19a)]===0x0||_0x2b4efe===_0xeda62a)return _0xeda62a;function _0x12b67a(_0x165bc8,_0xee9836,_0xe3eb07,_0x19f1d4){return _0x38d42b(_0x165bc8-0x181,_0x19f1d4-0xb5,_0xee9836,_0x19f1d4-0x25);}return _0xeda62a+_0x242cfc(_0x3ed3d7._0x17f17f,_0x3ed3d7._0x32353c,_0x3ed3d7._0x3858a4,0x3d0)+_0x2b4efe;}function createAssignTaskTool(_0x4933f4){const _0x407419={_0xd19d01:0x2b,_0x2144a8:0x70,_0x3d8d99:0x96,_0xd370b3:0x3a,_0x4b9ec1:0x2ff,_0x1af11f:0x4ab,_0x4db3e4:0x3ea,_0x2c6c80:0x535,_0x4cff50:0x567,_0x170856:0x49c,_0x44ff9c:0x58b,_0x13bc4f:0x505},_0x4cf4b1={_0x305612:0x7e,_0x44562b:0x14,_0x2ec5b8:0x86,_0x52202b:0x17,_0x3212e8:0xd2,_0x579df3:0x17,_0x34fcfa:0x265,_0x8bafcc:0x1ad,_0x231112:0x172,_0x299579:0x59,_0x1efc32:0x24e,_0x3c1e4b:0x10,_0x289f6c:0xa5,_0x1b8faa:0x1af,_0x2c0c98:0x85,_0xf37df5:0xbd,_0x45cd32:0x97,_0x46b1ae:0xc1,_0x554775:0x26,_0x3622eb:0x61,_0x127b39:0x21a,_0xf92599:0x1e1,_0x38914b:0x101,_0x5023e1:0x1c9,_0x2859e7:0x2e3,_0x47e52f:0xe8,_0x368805:0xb,_0x481b52:0x123,_0x388756:0x155,_0x4d435a:0x23b,_0x4ef35e:0x1c6,_0x4127a3:0xba,_0x37fb76:0x60,_0xdeaee7:0x40,_0x106fd8:0xc9,_0xe5376f:0x57,_0x31c1a2:0x109,_0x2a66dc:0x17d,_0x5ddd0b:0x106,_0x1562a4:0x15b,_0x16f230:0x147,_0x1a5c66:0x201,_0x185821:0xf5,_0x558296:0x12,_0x365c40:0xa4,_0x527d4e:0x1e8,_0x3bbf4d:0xa8,_0x520a6f:0xfc,_0x16f7c3:0x161,_0x152a82:0x6b,_0x63e58d:0x80,_0x37b3d1:0x15f,_0x449f74:0xcc,_0xd1c989:0x193,_0x4dd47b:0x156,_0x11f5f5:0xb9,_0x23e73b:0x1f9,_0x32e2b3:0x247,_0x58e533:0x309,_0x1989d8:0x1e5,_0x5e3471:0x1cf},_0x173385={_0x37011d:0x125},_0x4e91a7={_0xc6ee85:0x2b,_0xc969f3:0x368},_0x369da7={_0x18ac4b:0x13b,_0x9663a8:0x1f2,_0x2209bd:0x42e};function _0x4ef866(_0x106dac,_0x227be5,_0x468f39,_0x13de64){return _0x37c1da(_0x106dac-_0x369da7._0x18ac4b,_0x227be5-_0x369da7._0x9663a8,_0x13de64,_0x468f39- -_0x369da7._0x2209bd);}function _0x2dae9f(_0x40d3ce,_0x144995,_0x35c4cb,_0x4b134b){return _0x38d42b(_0x40d3ce-_0x4e91a7._0xc6ee85,_0x4b134b-_0x4e91a7._0xc969f3,_0x144995,_0x4b134b-0x28);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':_0x4ef866(-0x114,-0xe,_0x407419._0xd19d01,-_0x407419._0x2144a8),'properties':{'agentId':{'type':_0x4ef866(-0x2c,_0x407419._0x3d8d99,0x9f,_0x407419._0xd370b3)},'description':{'type':'string'},'nickname':{'type':_0x2dae9f(0x3ef,0x4ea,_0x407419._0x4b9ec1,0x3ea)},'task':{'type':_0x2dae9f(0x508,_0x407419._0x1af11f,0x422,_0x407419._0x4db3e4)}},'required':['agentId',_0x2dae9f(0x3e3,_0x407419._0x2c6c80,_0x407419._0x4cff50,_0x407419._0x170856),_0x2dae9f(0x624,_0x407419._0x44ff9c,0x443,_0x407419._0x13bc4f)]},async *'execute'(_0x3ffe4e,_0x4e4537){const _0x2668aa={_0x2572bb:0x349,_0x351b2d:0x414,_0xe47d97:0x462,_0x3c8106:0x3d8,_0x1f6682:0x657,_0x5f5454:0x549},_0xf7ef60={_0x57f269:0x1eb,_0x5902d1:0x4c},_0x4f0fdf={_0x15125d:0x1bc},_0x5ad54a=createDelegatedRunId(),_0x1a12d1={'agentId':_0x3ffe4e[_0x426fb8(-0x10a,0x100,-_0x4cf4b1._0x305612,-_0x4cf4b1._0x44562b)],'parentSessionId':_0x4e4537['sessionId'],'runId':_0x5ad54a,..._0x4e4537[_0x426fb8(_0x4cf4b1._0x2ec5b8,-0xe6,0xb2,_0x4cf4b1._0x52202b)]!==void 0x0?{'toolCallId':_0x4e4537[_0x426fb8(0x4f,_0x4cf4b1._0x3212e8,0x45,_0x4cf4b1._0x579df3)]}:{}};function _0x2a80a3(_0xa750f6,_0x5354ba,_0x2a8cd8,_0x4fd6a3){return _0x4ef866(_0xa750f6-0xda,_0x5354ba-_0x4f0fdf._0x15125d,_0x2a8cd8-0x61,_0xa750f6);}function _0x426fb8(_0xba9452,_0x33da30,_0x33aaf6,_0x465e16){return _0x4ef866(_0xba9452-0x135,_0x33da30-0x144,_0x465e16- -_0x173385._0x37011d,_0xba9452);}const _0x1b6095=getDelegatedAgentDefinition(_0x4933f4,_0x3ffe4e['agentId']);if(!_0x1b6095)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x3ffe4e[_0x2a80a3(_0x4cf4b1._0x34fcfa,_0x4cf4b1._0x8bafcc,_0x4cf4b1._0x231112,_0x4cf4b1._0x299579)],{'agentId':_0x3ffe4e[_0x2a80a3(0x84,_0x4cf4b1._0x1efc32,0x172,0x151)]});const _0x210d70=new Agent(await resolveDelegatedAgentOptions(_0x1b6095,_0x1a12d1));let _0xff308e={'runId':_0x5ad54a,'agentId':_0x3ffe4e['agentId'],'sessionId':_0x210d70['sessionId'],'status':_0x426fb8(-0x130,_0x4cf4b1._0x3c1e4b,0x119,-0x7),'parentSessionId':_0x4e4537[_0x426fb8(_0x4cf4b1._0x289f6c,0x6,-_0x4cf4b1._0x1b8faa,-_0x4cf4b1._0x2c0c98)],..._0x4e4537['toolCallId']!==void 0x0?{'originToolCallId':_0x4e4537[_0x2a80a3(_0x4cf4b1._0xf37df5,0x225,0x19d,0x13d)]}:{}};const _0x431482=new AbortController(),_0x38d3dc=addAbortListener(_0x4e4537['signal'],()=>{function _0x1a4a71(_0x4e4579,_0x3f098f,_0xa20ea2,_0x38dbe2){return _0x426fb8(_0xa20ea2,_0x3f098f-_0xf7ef60._0x57f269,_0xa20ea2-_0xf7ef60._0x5902d1,_0x38dbe2-0x63);}function _0x557bdc(_0x5e05e2,_0x382d39,_0x283d3b,_0xcb795e){return _0x426fb8(_0x382d39,_0x382d39-0xc2,_0x283d3b-0x7d,_0x283d3b-0x417);}_0x431482[_0x557bdc(0x45c,_0x2668aa._0x2572bb,0x31b,_0x2668aa._0x351b2d)](_0x4e4537[_0x557bdc(0x475,_0x2668aa._0xe47d97,_0x2668aa._0x3c8106,0x3ca)]?.[_0x557bdc(_0x2668aa._0x1f6682,0x67a,_0x2668aa._0x5f5454,0x41f)]);});yield createToolOutput(_0x426fb8(_0x4cf4b1._0x45cd32,0x56,-0x104,-0x43)+_0xff308e[_0x2a80a3(0xa6,0x9f,0x80,-_0x4cf4b1._0x46b1ae)]+'.',{'runId':_0xff308e[_0x2a80a3(-0x82,-_0x4cf4b1._0x554775,0x80,_0x4cf4b1._0x3622eb)],'agentId':_0xff308e[_0x2a80a3(0x197,_0x4cf4b1._0x127b39,_0x4cf4b1._0x231112,0x146)],'sessionId':_0xff308e[_0x2a80a3(0xb1,_0x4cf4b1._0xf92599,_0x4cf4b1._0x38914b,_0x4cf4b1._0x5023e1)],'status':_0xff308e[_0x2a80a3(0x176,0x16e,0x1c6,_0x4cf4b1._0x2859e7)]});try{const _0x1fcf5a=await _0x210d70[_0x2a80a3(-0x26,-_0x4cf4b1._0x47e52f,0x64,_0x4cf4b1._0x368805)](_0x3ffe4e[_0x426fb8(_0x4cf4b1._0x481b52,0x138,_0x4cf4b1._0x388756,0x95)],{'signal':_0x431482['signal']});_0xff308e={..._0xff308e,'status':_0x1fcf5a[_0x2a80a3(0x299,_0x4cf4b1._0x4d435a,_0x4cf4b1._0x4ef35e,0x23f)],'result':_0x1fcf5a};if(_0x1fcf5a[_0x426fb8(-_0x4cf4b1._0x4127a3,-0xd8,-_0x4cf4b1._0x37fb76,_0x4cf4b1._0xdeaee7)]!==_0x2a80a3(_0x4cf4b1._0x106fd8,_0x4cf4b1._0xe5376f,0x16d,0x2ba)){const _0x1f8256=getRunTerminalErrorMessage(_0x1fcf5a),_0x2257b1=formatAbortedRunMessage(_0xff308e['runId'],_0x1f8256);throw new ToolExecutionError(_0x2257b1,{...createRunSummary(_0xff308e),'aborted':!![],'errorMessage':_0x2257b1});}return createRunSummaryOutput(_0xff308e,'Agent\x20run\x20'+_0xff308e[_0x426fb8(-0xf0,-_0x4cf4b1._0x31c1a2,-_0x4cf4b1._0x2a66dc,-_0x4cf4b1._0x5ddd0b)]+'\x20completed.');}catch(_0x343617){if(_0x343617 instanceof ToolExecutionError)throw _0x343617;if(isAbortError(_0x343617)||_0x431482[_0x2a80a3(_0x4cf4b1._0x1562a4,0x88,_0x4cf4b1._0x16f230,_0x4cf4b1._0x1a5c66)][_0x2a80a3(_0x4cf4b1._0x185821,0x1,_0x4cf4b1._0x106fd8,_0x4cf4b1._0x558296)]||_0x4e4537[_0x426fb8(_0x4cf4b1._0x365c40,0x2c,-0x128,-0x3f)][_0x2a80a3(0x199,_0x4cf4b1._0x527d4e,_0x4cf4b1._0x106fd8,0x15)]){const _0x65e79c=getRunTerminalErrorMessage(_0xff308e[_0x426fb8(-0x135,-_0x4cf4b1._0x3bbf4d,-0x22f,-0x110)])??(_0x343617 instanceof Error?_0x343617[_0x2a80a3(0x237,_0x4cf4b1._0x520a6f,_0x4cf4b1._0x16f7c3,0x272)]:String(_0x343617)),_0x4c5317=formatAbortedRunMessage(_0xff308e[_0x2a80a3(0xf3,-_0x4cf4b1._0x152a82,_0x4cf4b1._0x63e58d,_0x4cf4b1._0x37b3d1)],_0x65e79c);_0xff308e={..._0xff308e,'status':_0x2a80a3(_0x4cf4b1._0x449f74,_0x4cf4b1._0xd1c989,_0x4cf4b1._0x106fd8,0xb3),'errorMessage':_0x4c5317};throw new ToolExecutionError(_0x4c5317,{...createRunSummary(_0xff308e),'aborted':!![],'errorMessage':_0x4c5317});}const _0x28bc90=getRunTerminalErrorMessage(_0xff308e['result'])??(_0x343617 instanceof Error?_0x343617['message']:String(_0x343617))??_0x426fb8(-_0x4cf4b1._0x4dd47b,0x3,-0x1bd,-_0x4cf4b1._0x11f5f5)+_0xff308e[_0x426fb8(-0x206,-_0x4cf4b1._0x23e73b,-0xc7,-_0x4cf4b1._0x5ddd0b)]+_0x426fb8(-_0x4cf4b1._0x32e2b3,-0x145,-0x1c5,-0x14f);_0xff308e={..._0xff308e,'status':_0x2a80a3(0x2fe,_0x4cf4b1._0x58e533,_0x4cf4b1._0x1989d8,_0x4cf4b1._0x5e3471),'errorMessage':_0x28bc90};throw new ToolExecutionError(_0x28bc90,{...createRunSummary(_0xff308e),'errorMessage':_0x28bc90});}finally{_0x38d3dc();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x2b3ddd){return[createAssignTaskTool(_0x2b3ddd)];}import*as _0x233466 from'path';function buildDescription2(_0x523fe1){const _0x2ab01c={_0x270c4e:0x14e,_0x108306:0x1e8,_0x38da9f:0x49,_0x9491d1:0x15b,_0x4c0827:0x191,_0x2867c2:0x273,_0x472c2e:0xd8,_0xd0ed45:0x2e7,_0x2ecfaa:0x309,_0x128845:0x4e,_0x246c50:0x54},_0x14e033={_0x74cee7:0x28},_0x5b88a5={_0x2bfaf5:0x5e6};if(_0x523fe1[_0x405cce(0x166,_0x2ab01c._0x270c4e,0xbd,_0x2ab01c._0x108306)]===0x0)return _0x405cce(-0x32,_0x2ab01c._0x38da9f,0x71,0x17);function _0x2a7aee(_0x5a8cec,_0x5326ca,_0x47583f,_0x180564){return _0x37c1da(_0x5a8cec-0x101,_0x5326ca-0x120,_0x5326ca,_0x5a8cec- -_0x5b88a5._0x2bfaf5);}function _0x405cce(_0x30198f,_0x2aae61,_0xb91b96,_0xb02143){return _0x38d42b(_0x30198f-0x16d,_0xb91b96- -_0x14e033._0x74cee7,_0x2aae61,_0xb02143-0x1eb);}const _0x5ed488=['Load\x20a\x20skill\x20to\x20get\x20detailed\x20instructions\x20for\x20a\x20specific\x20task.',_0x2a7aee(0x13,_0x2ab01c._0x9491d1,-0x87,-0xa0),'Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.',_0x405cce(_0x2ab01c._0x4c0827,_0x2ab01c._0x2867c2,0x1d0,_0x2ab01c._0x472c2e),..._0x523fe1[_0x405cce(0x2fd,_0x2ab01c._0xd0ed45,0x209,_0x2ab01c._0x2ecfaa)](_0x3d01d7=>'-\x20'+_0x3d01d7[_0x405cce(0x54,0x1a9,0xf3,0x1c2)]+':\x20'+_0x3d01d7['description'])];return _0x5ed488[_0x2a7aee(_0x2ab01c._0x128845,0x172,0xd1,_0x2ab01c._0x246c50)]('\x0a');}function createLoadSkillTool(_0x3cbfde){const _0x378cce={_0x182e9d:0x2cf,_0x7631d0:0x3e3,_0x54f6a9:0x43d,_0x22cde2:0x58d,_0x2687b9:0x41c,_0x32f37a:0x4db,_0x3ce6b2:0x28e,_0x4ffa0e:0x1cb,_0x1ecb5c:0x3cb,_0x4bfad6:0x2f3},_0x237e3b={_0x487352:0x6e0,_0x3a9174:0x6ad,_0x44dcb1:0x243,_0x5e6deb:0x1d5,_0x58bf12:0x269,_0x2fec7d:0x2df,_0x39b4e5:0x2de,_0x18ada3:0x71c,_0x5f04a2:0x1fb,_0x542730:0x96,_0x122a33:0x41,_0x388b57:0x2d5,_0x28e378:0x37a,_0x257e69:0x317,_0x41694a:0x5b4,_0x4c6390:0x67f,_0x31740e:0x50b,_0x16b6ff:0xe1,_0x53cf72:0x127,_0x468f13:0xd4,_0x48803c:0x240,_0x412287:0x642,_0x16d537:0x4e0,_0x194a58:0x515,_0x27b33e:0x49d,_0xcdc81e:0x211,_0x527ce8:0x9e,_0x2afa0f:0x1a4,_0x736a91:0x6ae,_0x11cb71:0xff,_0x1392be:0x26,_0x4c14b9:0x1c3,_0x3085fc:0x50e,_0x5816ad:0x67e,_0x29af4e:0x2b6,_0x2cde7e:0x135,_0x15af29:0x5ac,_0x429e06:0x606,_0x41181b:0x197,_0x44e746:0x218,_0x2a1b74:0x44f,_0x6e93ab:0x5a7,_0xf8c555:0x33d,_0x76018c:0x297},_0x403200={_0x1817b4:0x59,_0x3af4bd:0x7d},_0x3b3889={_0x490edd:0x2f5},_0x1ef36d=new Map(_0x3cbfde[_0xd6042e(0x3b6,0x228,_0x378cce._0x182e9d,0x30d)][_0xd6042e(0x560,_0x378cce._0x7631d0,_0x378cce._0x54f6a9,0x387)](_0x267f8c=>[_0x267f8c['name'],_0x267f8c]));function _0xd6042e(_0x2e4f2b,_0x3e98eb,_0x53ecd1,_0x194d54){return _0x38d42b(_0x2e4f2b-0x159,_0x53ecd1-0x20c,_0x194d54,_0x194d54-0x1dd);}function _0x2005ca(_0xe81a03,_0x553aea,_0x586e3a,_0x48395b){return _0x38d42b(_0xe81a03-0x87,_0x48395b-_0x3b3889._0x490edd,_0x586e3a,_0x48395b-0x158);}const _0x3d8fd8=buildDescription2(_0x3cbfde['skills']);return defineTool({'name':_0x2005ca(_0x378cce._0x22cde2,_0x378cce._0x2687b9,0x58a,_0x378cce._0x32f37a),'description':_0x3d8fd8,'inputSchema':{'type':'object','properties':{'name':{'type':_0xd6042e(0x347,0x1dc,_0x378cce._0x3ce6b2,_0x378cce._0x4ffa0e)}},'required':[_0x2005ca(_0x378cce._0x1ecb5c,_0x378cce._0x4bfad6,0x437,0x410)]},async *'execute'(_0x1b0638){const _0x2034a9={_0x65bb7c:0x18a,_0x7b4ebd:0x1a5},_0xaa0d16=_0x1ef36d[_0x38998e(0x596,0x66e,_0x237e3b._0x487352,_0x237e3b._0x3a9174)](_0x1b0638[_0x5a0c72(_0x237e3b._0x44dcb1,0xfe,_0x237e3b._0x5e6deb,_0x237e3b._0x58bf12)]);if(!_0xaa0d16){const _0x5e7561=Array[_0x5a0c72(_0x237e3b._0x2fec7d,_0x237e3b._0x39b4e5,0x2db,0x2c0)](_0x1ef36d['keys']())[_0x38998e(0x682,0x684,0x666,_0x237e3b._0x18ada3)](',\x20');throw new ToolExecutionError(_0x5a0c72(0xf2,_0x237e3b._0x5f04a2,_0x237e3b._0x542730,-_0x237e3b._0x122a33)+_0x1b0638['name']+_0x5a0c72(_0x237e3b._0x388b57,_0x237e3b._0x28e378,0x316,_0x237e3b._0x257e69)+_0x5e7561,{'name':_0x1b0638[_0x38998e(_0x237e3b._0x41694a,_0x237e3b._0x4c6390,0x5de,_0x237e3b._0x31740e)]});}const _0x3d1ff0=await _0x3cbfde[_0x5a0c72(0x115,_0x237e3b._0x16b6ff,0x221,0x153)](_0xaa0d16),_0xe877d1=_0xaa0d16[_0x5a0c72(_0x237e3b._0x53cf72,_0x237e3b._0x468f13,_0x237e3b._0x48803c,0x241)][_0x38998e(0x5b6,0x51e,_0x237e3b._0x412287,0x48f)]??_0x233466[_0x38998e(0x518,_0x237e3b._0x16d537,_0x237e3b._0x194a58,_0x237e3b._0x27b33e)](_0xaa0d16[_0x5a0c72(0x127,_0x237e3b._0xcdc81e,_0x237e3b._0x527ce8,_0x237e3b._0x2afa0f)][_0x38998e(_0x237e3b._0x736a91,0x65d,0x5d7,0x5e5)]);function _0x38998e(_0x409ff5,_0x8a171f,_0x48a05f,_0x5b879e){return _0x2005ca(_0x409ff5-_0x2034a9._0x65bb7c,_0x8a171f-_0x2034a9._0x7b4ebd,_0x8a171f,_0x409ff5-0x1a4);}const _0xaba13d=[_0x5a0c72(0x16e,_0x237e3b._0x11cb71,_0x237e3b._0x1392be,_0x237e3b._0x4c14b9)+_0x3d1ff0[_0x38998e(0x5b4,_0x237e3b._0x3085fc,0x584,_0x237e3b._0x5816ad)],'',_0x3d1ff0[_0x38998e(0x688,0x7be,0x5dd,0x777)],'',_0x5a0c72(0x23e,_0x237e3b._0x29af4e,0x35d,_0x237e3b._0x2cde7e),'Loaded\x20from:\x20'+_0xaa0d16['source'][_0x38998e(0x6ae,0x709,_0x237e3b._0x15af29,_0x237e3b._0x429e06)],_0x5a0c72(_0x237e3b._0x41181b,_0x237e3b._0x44e746,0x15c,0x230)+_0xe877d1]['join']('\x0a');function _0x5a0c72(_0x43b869,_0x59c0e8,_0xc9875,_0x10c25a){return _0x2005ca(_0x43b869-_0x403200._0x1817b4,_0x59c0e8-_0x403200._0x3af4bd,_0x59c0e8,_0x43b869- -0x1cd);}return yield createToolOutput(_0xaba13d,{'id':_0x3d1ff0['id'],'name':_0x3d1ff0['name'],'path':_0xaa0d16[_0x38998e(0x498,_0x237e3b._0x2a1b74,0x484,_0x237e3b._0x6e93ab)][_0x5a0c72(_0x237e3b._0xf8c555,0x404,_0x237e3b._0x76018c,0x22d)],'baseDirectory':_0xe877d1}),void 0x0;}});}var TODO_STATUSES=new Set([_0x38d42b(0x18f,0x1a9,0x29a,0x1c2),'in_progress',_0x37c1da(0x43b,0x5a3,0x60e,0x53a)]),TODO_PRIORITIES=new Set([_0x38d42b(0x5e,0x17f,0x167,0x263),'medium',_0x37c1da(0x504,0x452,0x68f,0x555)]);function isTodoStatus(_0x26ae57){const _0xbe4fe2={_0x498faa:0x62,_0x49f262:0x20b,_0x47330a:0x7a},_0x38a402={_0x836626:0xd4},_0x339f33={_0x2ed9db:0x10b,_0x3ce1ce:0x238};function _0x2cd5f2(_0x1f012f,_0x1f09c3,_0x55ec0d,_0x40bba3){return _0x38d42b(_0x1f012f-_0x339f33._0x2ed9db,_0x1f012f- -_0x339f33._0x3ce1ce,_0x1f09c3,_0x40bba3-0x16b);}function _0x421a98(_0x4b577d,_0x452a54,_0x29de5e,_0x39bc79){return _0x37c1da(_0x4b577d-0xbc,_0x452a54-_0x38a402._0x836626,_0x39bc79,_0x29de5e- -0x5a9);}return typeof _0x26ae57===_0x421a98(-0x2b,_0xbe4fe2._0x498faa,-0xdc,-_0xbe4fe2._0x49f262)&&TODO_STATUSES[_0x421a98(-_0xbe4fe2._0x47330a,0x133,0xc6,0x1a6)](_0x26ae57);}function isTodoPriority(_0x1531dd){const _0x1a9a91={_0x42550d:0x3bf,_0x1dca5c:0x56f,_0x54023f:0x5e3,_0x36f6be:0xd6,_0x4c2f5a:0x6,_0x5c53c8:0x71},_0x522591={_0x37c0fb:0x120},_0x18fdd1={_0x4ecc01:0x92};function _0x189b88(_0x13f0b3,_0x244f7c,_0x577da5,_0x1f8ea9){return _0x38d42b(_0x13f0b3-_0x18fdd1._0x4ecc01,_0x244f7c- -0x22a,_0x1f8ea9,_0x1f8ea9-0x27);}function _0x404812(_0x4dc74e,_0x5baf67,_0x132c88,_0x1d127f){return _0x38d42b(_0x4dc74e-_0x522591._0x37c0fb,_0x1d127f-0x46a,_0x132c88,_0x1d127f-0x146);}return typeof _0x1531dd===_0x404812(_0x1a9a91._0x42550d,_0x1a9a91._0x1dca5c,_0x1a9a91._0x54023f,0x4ec)&&TODO_PRIORITIES[_0x189b88(_0x1a9a91._0x36f6be,-_0x1a9a91._0x4c2f5a,-_0x1a9a91._0x5c53c8,0x4e)](_0x1531dd);}var TodoStore=class{['todosBySession']=new Map();[_0x37c1da(0x4bb,0x60b,0x50f,0x571)](_0x445c5e){const _0x449f21={_0x4d5a8e:0x180,_0x40a573:0x293,_0x56f989:0x16e,_0x2bd915:0x2a8,_0x4fecbd:0x2a3},_0x247b9d={_0x5388e2:0x19d,_0x3d78ac:0x191},_0x3dfb7e={_0x53107a:0xc8,_0xeb7bb1:0x6b6};function _0x595e65(_0x228856,_0x24afad,_0x3aa028,_0x315a83){return _0x37c1da(_0x228856-0x57,_0x24afad-_0x3dfb7e._0x53107a,_0x315a83,_0x24afad- -_0x3dfb7e._0xeb7bb1);}function _0x18641c(_0x2a2434,_0x327d36,_0x48c5d3,_0x55cdea){return _0x38d42b(_0x2a2434-_0x247b9d._0x5388e2,_0x55cdea- -0x1b5,_0x327d36,_0x55cdea-_0x247b9d._0x3d78ac);}return this[_0x18641c(-_0x449f21._0x4d5a8e,0xa8,-0x1d9,-0x9e)][_0x595e65(-_0x449f21._0x40a573,-_0x449f21._0x56f989,-_0x449f21._0x2bd915,-_0x449f21._0x4fecbd)](_0x445c5e)??[];}[_0x38d42b(0xb3,-0x4b,-0xc5,-0x3b)](_0x4602c7,_0x9d1d0d){const _0x50dfb1={_0x3d4f2a:0x270,_0x18df32:0x153},_0x24bc2b={_0x5de0ef:0x26a,_0x5df1a6:0x8f};function _0xacbb58(_0x1ef289,_0x182047,_0x50dc8a,_0xbbb8d8){return _0x38d42b(_0x1ef289-0x3a,_0x50dc8a- -_0x24bc2b._0x5de0ef,_0xbbb8d8,_0xbbb8d8-_0x24bc2b._0x5df1a6);}this[_0xacbb58(-_0x50dfb1._0x3d4f2a,-0x206,-_0x50dfb1._0x18df32,-0x108)]['set'](_0x4602c7,_0x9d1d0d);}['getStats'](_0x293ce7){const _0x17d184={_0x35a40c:0x578,_0xa2cfc3:0x46b,_0x104037:0x4b5,_0x1cd595:0x171,_0x35847f:0x7b,_0x60922f:0xb1,_0x6116a2:0x13c,_0x269f54:0x294,_0x36ef78:0x551,_0x42ed87:0x526,_0x2aec91:0x475,_0x5dd31f:0x4f0},_0x4c7058={_0x58df40:0xc9,_0x1a73e7:0x6f},_0x481401={_0x3488f4:0xd1};function _0x320b85(_0x5095fb,_0x5922e5,_0x573189,_0x37ee55){return _0x38d42b(_0x5095fb-_0x481401._0x3488f4,_0x5095fb- -0x1c3,_0x573189,_0x37ee55-0x154);}const _0x57de18=this[_0x320b85(-0x9d,0x1,-0x142,-0x64)](_0x293ce7),_0x15e4d8={'total':_0x57de18[_0x5a6dfd(_0x17d184._0x35a40c,_0x17d184._0xa2cfc3,0x4c1,_0x17d184._0x104037)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0x2168fa of _0x57de18){if(_0x2168fa[_0x320b85(-0x7b,-0x4,-_0x17d184._0x1cd595,0x48)]===_0x320b85(-0x1a,0x80,-0x6f,0xd5))_0x15e4d8[_0x5a6dfd(0x561,0x52f,0x5b7,0x5fd)]+=0x1;else{if(_0x2168fa[_0x320b85(-_0x17d184._0x35847f,_0x17d184._0x60922f,-_0x17d184._0x6116a2,0x91)]===_0x5a6dfd(0x2f9,0x35a,0x3b5,_0x17d184._0x269f54))_0x15e4d8[_0x5a6dfd(0x51a,_0x17d184._0x36ef78,_0x17d184._0x42ed87,0x532)]+=0x1;else _0x15e4d8[_0x5a6dfd(0x5af,_0x17d184._0x2aec91,0x4b1,_0x17d184._0x5dd31f)]+=0x1;}}function _0x5a6dfd(_0x5ef4dd,_0x67ba3e,_0x1d4904,_0x223cf6){return _0x37c1da(_0x5ef4dd-_0x4c7058._0x58df40,_0x67ba3e-_0x4c7058._0x1a73e7,_0x5ef4dd,_0x67ba3e- -0xc5);}return _0x15e4d8;}};function validateTodos(_0x2ace9c){const _0x40de81={_0x23ab94:0x5da,_0x396e09:0x507,_0x3dac5f:0x346,_0x1b2579:0x2b0,_0x130e2e:0x1f1,_0x2d3e60:0x3c6,_0x29ff9f:0x5b1,_0x2daece:0x691,_0xec440:0x3db,_0x22e41c:0x238,_0x126864:0x1db,_0x564fe1:0x69b,_0x22e7f4:0x6d6,_0x1275ad:0x767,_0x4c7eeb:0x47c,_0xdb2523:0x5be,_0x1752c8:0x60f,_0x1c5ae0:0x661,_0x13de33:0x6f3,_0x1adbba:0x52e,_0x16c146:0x156,_0x4f8c92:0xdd,_0x18c78e:0x124,_0x4ab760:0x370,_0x57194f:0x380,_0x308961:0x224,_0x16c91e:0x249,_0x44fe98:0x3e3,_0x5dc6f0:0x71f,_0x28630d:0x708,_0x22e1d4:0x601,_0x4f48ac:0x6ed,_0x100dfc:0x5de,_0x41477a:0x1a0,_0x39b540:0x1e6,_0x5bbed5:0x2de,_0x472803:0x37e,_0x37df05:0x273,_0x27fd8e:0x2bd,_0x511639:0x230,_0x396189:0x656,_0xdd4ecc:0x5cb,_0x56890f:0x62f,_0x47b42f:0x714,_0x45c61b:0x24a,_0x3b4990:0x422,_0x3b4f86:0x371,_0x3c3a6f:0x75b,_0x322b00:0x5c7,_0x6c8adc:0x35f,_0x188b1d:0x59f,_0x446666:0x439,_0x3ca95b:0x660,_0xc8e814:0x5ee,_0x13ff75:0x521,_0x5169c2:0x4fb,_0x4c96d3:0x5e1,_0x1aa7f1:0x632,_0x2850b1:0x6ec,_0x1f1e5d:0x726,_0x48733b:0x717,_0x544411:0x553,_0x56c900:0x43f,_0x1063c1:0x554,_0x5ba1a2:0x605,_0x3ac417:0x652},_0x1cb600={_0x560ec4:0x45,_0x7ab1bb:0x4e6};if(!Array[_0x40078f(_0x40de81._0x23ab94,_0x40de81._0x396e09,0x42b,0x468)](_0x2ace9c[_0x23223a(0x3cd,0x384,_0x40de81._0x3dac5f,_0x40de81._0x1b2579)])||_0x2ace9c[_0x23223a(_0x40de81._0x130e2e,_0x40de81._0x2d3e60,0x244,0x2b0)][_0x40078f(_0x40de81._0x29ff9f,0x5cb,0x567,_0x40de81._0x2daece)]===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':'invalid_todos'});for(let _0x3906e8=0x0;_0x3906e8<_0x2ace9c[_0x23223a(_0x40de81._0xec440,_0x40de81._0x22e41c,_0x40de81._0x126864,0x2b0)]['length'];_0x3906e8+=0x1){const _0x3475f0=_0x2ace9c[_0x40078f(_0x40de81._0x564fe1,0x632,_0x40de81._0x22e7f4,_0x40de81._0x1275ad)][_0x3906e8];if(!_0x3475f0||typeof _0x3475f0!==_0x40078f(_0x40de81._0x4c7eeb,0x4f4,0x5df,0x405))throw new ToolExecutionError(_0x40078f(0x6db,0x660,_0x40de81._0xdb2523,_0x40de81._0x1752c8)+(_0x3906e8+0x1)+_0x40078f(_0x40de81._0x1c5ae0,0x63a,_0x40de81._0x13de33,_0x40de81._0x1adbba),{'error':_0x23223a(_0x40de81._0x16c146,0x26e,_0x40de81._0x4f8c92,_0x40de81._0x18c78e)});if(typeof _0x3475f0['id']!=='string'||_0x3475f0['id']['trim']()[_0x23223a(_0x40de81._0x4ab760,_0x40de81._0x57194f,0x315,0x249)]===0x0)throw new ToolExecutionError(_0x23223a(_0x40de81._0x308961,_0x40de81._0x16c91e,_0x40de81._0x44fe98,0x2de)+(_0x3906e8+0x1)+_0x40078f(0x759,_0x40de81._0x5dc6f0,_0x40de81._0x28630d,_0x40de81._0x22e1d4),{'error':'invalid_todo_id'});if(typeof _0x3475f0[_0x40078f(_0x40de81._0x4f48ac,_0x40de81._0x100dfc,0x63b,0x5dc)]!==_0x23223a(0x1b0,0x2f3,_0x40de81._0x41477a,_0x40de81._0x39b540)||_0x3475f0[_0x23223a(_0x40de81._0x5bbed5,_0x40de81._0x472803,_0x40de81._0x37df05,0x25c)][_0x23223a(_0x40de81._0x27fd8e,_0x40de81._0x511639,0x389,0x315)]()[_0x40078f(_0x40de81._0x396189,_0x40de81._0xdd4ecc,_0x40de81._0x56890f,_0x40de81._0x47b42f)]===0x0)throw new ToolExecutionError(_0x40078f(0x625,0x660,0x5dd,0x79a)+(_0x3906e8+0x1)+_0x23223a(_0x40de81._0x45c61b,0x230,_0x40de81._0x3b4990,_0x40de81._0x3b4f86),{'error':_0x40078f(0x555,0x63c,0x72b,0x6dd)});if(!isTodoStatus(_0x3475f0[_0x40078f(0x546,0x62e,_0x40de81._0x3c3a6f,_0x40de81._0x322b00)]))throw new ToolExecutionError(_0x23223a(0x285,0x41f,_0x40de81._0x6c8adc,0x2de)+(_0x3906e8+0x1)+':\x20invalid\x20status',{'error':_0x40078f(_0x40de81._0x188b1d,0x4ea,0x633,_0x40de81._0x446666)});if(!isTodoPriority(_0x3475f0['priority']))throw new ToolExecutionError(_0x40078f(0x6ec,_0x40de81._0x3ca95b,_0x40de81._0xc8e814,_0x40de81._0x13ff75)+(_0x3906e8+0x1)+_0x40078f(0x3fc,_0x40de81._0x5169c2,0x565,_0x40de81._0x4c96d3),{'error':'invalid_todo_priority'});}const _0x137c6e=_0x2ace9c[_0x40078f(0x5d4,_0x40de81._0x1aa7f1,_0x40de81._0x2850b1,0x64b)][_0x40078f(_0x40de81._0x1f1e5d,_0x40de81._0x48733b,0x62f,0x6f2)](_0x216d3a=>_0x216d3a['id']);function _0x23223a(_0x1f0d27,_0x402169,_0x2d1268,_0x34f0ac){return _0x38d42b(_0x1f0d27-0x76,_0x34f0ac-0x164,_0x2d1268,_0x34f0ac-0x2c);}function _0x40078f(_0x279992,_0x1d6770,_0x2b3b8a,_0x3b0351){return _0x38d42b(_0x279992-_0x1cb600._0x560ec4,_0x1d6770-_0x1cb600._0x7ab1bb,_0x279992,_0x3b0351-0xd);}if(new Set(_0x137c6e)[_0x40078f(0x481,_0x40de81._0x544411,_0x40de81._0x56c900,_0x40de81._0x1063c1)]!==_0x137c6e['length'])throw new ToolExecutionError(_0x40078f(_0x40de81._0x5ba1a2,_0x40de81._0x3ac417,0x75d,_0x40de81._0x1063c1),{'error':'duplicate_todo_ids'});}function createStatsProgress(_0x29a065){const _0x27e814={_0x2ac7f6:0x4aa,_0x34ace3:0x430,_0x3884b4:0x209,_0x264747:0x24b,_0x209b26:0x3f6,_0x206b92:0x305,_0x2a7b67:0x513,_0x230718:0x39e},_0x1b7a0a={_0x52b5a5:0xb0};function _0x3fd9e0(_0x200b93,_0x27fcae,_0x4d7d46,_0x3f79ab){return _0x38d42b(_0x200b93-_0x1b7a0a._0x52b5a5,_0x4d7d46-0x26f,_0x200b93,_0x3f79ab-0x106);}function _0x505f46(_0x3abb6b,_0x452b54,_0x13d9ce,_0x306875){return _0x37c1da(_0x3abb6b-0x103,_0x452b54-0x1f1,_0x452b54,_0x306875- -0x3b8);}return _0x29a065[_0x3fd9e0(0x32a,_0x27e814._0x2ac7f6,_0x27e814._0x34ace3,0x334)]>0x0?Math[_0x505f46(_0x27e814._0x3884b4,0x2a8,0x160,_0x27e814._0x264747)](_0x29a065[_0x3fd9e0(0x31a,_0x27e814._0x209b26,0x35e,_0x27e814._0x206b92)]/_0x29a065[_0x3fd9e0(_0x27e814._0x2a7b67,0x486,0x430,_0x27e814._0x230718)]*0x64)+'%':'0%';}function createReminderItems(_0x59981d){const _0x39cc54={_0x338b16:0x4a1};function _0x1ba200(_0x1a46a1,_0x5e928e,_0x44986a,_0x574a77){return _0x37c1da(_0x1a46a1-0x121,_0x5e928e-0xdd,_0x574a77,_0x5e928e- -_0x39cc54._0x338b16);}return _0x59981d['map'](_0x48af5e=>({'content':_0x48af5e[_0x1ba200(0xb8,0xa2,0x1e7,0x95)],'status':_0x48af5e['status'],'id':_0x48af5e['id']}));}function createStructuredResult(_0x2f3bab,_0x2667d0,_0x129acf,_0x5f2bf9){const _0x37e8b2={_0x3753e1:0x408,_0x4d6cec:0x421,_0x3e096f:0x220,_0x252bfb:0x19f},_0x3b7a82={_0x57eb15:0x1};function _0x1f9ee7(_0x14b911,_0x13eb51,_0x6b5313,_0x295fd1){return _0x38d42b(_0x14b911-0x95,_0x295fd1- -0x218,_0x6b5313,_0x295fd1-0x124);}function _0x3913be(_0x50d525,_0x4daa74,_0x2bac4a,_0x3ba5eb){return _0x38d42b(_0x50d525-0x179,_0x3ba5eb-0xba,_0x4daa74,_0x3ba5eb-_0x3b7a82._0x57eb15);}return{'allCompleted':_0x5f2bf9,'items':_0x2667d0[_0x3913be(0x3a4,_0x37e8b2._0x3753e1,_0x37e8b2._0x4d6cec,0x2eb)](_0x150e07=>({'id':_0x150e07['id'],'content':_0x150e07[_0x1f9ee7(-0x18c,-0xdc,-0x16b,-0x120)],'status':_0x150e07[_0x3913be(0x185,0x2a0,0x2cc,0x202)],'priority':_0x150e07[_0x3913be(0x1d7,0xd1,0x1e8,0xb3)],'createdAt':_0x150e07['createdAt']})),'progress':createStatsProgress(_0x129acf),'recentChanges':!![],'sessionId':_0x2f3bab,'stats':_0x129acf,'todosWritten':_0x2667d0[_0x3913be(_0x37e8b2._0x3e096f,0x1c4,0x130,_0x37e8b2._0x252bfb)]};}function createOutputText(_0x1fb63f,_0x1a232e){const _0x438c81={_0x53896f:0x4d,_0x310f22:0x36,_0x196bd8:0xaf,_0x3154d7:0xd7,_0x28ccdd:0x2b,_0x2226cc:0x13},_0x279f4b={_0x2d703c:0x4},_0x29cbd2={_0xbea62d:0xab,_0x37493d:0x17d};function _0x32bb5e(_0x2e4805,_0x43901b,_0x9b8955,_0x15928b){return _0x38d42b(_0x2e4805-_0x29cbd2._0xbea62d,_0x15928b- -_0x29cbd2._0x37493d,_0x2e4805,_0x15928b-0x9a);}const _0x234ca4=JSON[_0x32bb5e(0x4a,_0x438c81._0x53896f,-0x116,_0x438c81._0x310f22)](createReminderItems(_0x1fb63f));function _0x32169b(_0x4a4d40,_0x38da96,_0x1a415e,_0x4a683a){return _0x37c1da(_0x4a4d40-0x1d4,_0x38da96-_0x279f4b._0x2d703c,_0x1a415e,_0x38da96- -0x488);}if(_0x1a232e)return'All\x20'+_0x1fb63f[_0x32bb5e(-_0x438c81._0x196bd8,-0x25,-0x14a,-0x98)]+'\x20todo\x20items\x20have\x20been\x20completed\x20successfully!\x0a\x0a<system-reminder>\x0aAll\x20todo\x20items\x20are\x20now\x20completed!\x20Ask\x20about\x20next\x20steps.\x20Completed\x20list:\x0a'+_0x234ca4+_0x32bb5e(-0x1dd,-0x1e0,-0x2ab,-0x16b);return'Todos\x20have\x20been\x20modified\x20successfully.\x20Continue\x20with\x20current\x20tasks\x20if\x20applicable.\x0a\x0a<system-reminder>\x0aYour\x20todo\x20list\x20has\x20changed.\x20DO\x20NOT\x20mention\x20this\x20explicitly\x20to\x20the\x20user.\x20Latest\x20contents:\x0a'+_0x234ca4+_0x32169b(-_0x438c81._0x3154d7,-_0x438c81._0x28ccdd,-_0x438c81._0x2226cc,-0x5f);}function createTodoWriteTool(_0x260740=new TodoStore()){const _0x13d56a={_0x4317ee:0x37a,_0x1602cb:0x388,_0xb3e7c7:0x24e,_0x2bcbca:0x26f,_0x1e585c:0x30d,_0x5cc468:0x286,_0x3d0b67:0x18d,_0x54baf0:0x207,_0x397b35:0x2a5,_0x45330d:0x16a,_0x56cce6:0x20e,_0x111214:0x1be,_0x534dc5:0x26c},_0xaf188b={_0x3a4415:0x129,_0x2f56bc:0x167,_0x3e2a90:0xc2,_0x462791:0x1ea,_0x1ef32a:0x11c,_0x1e1dcf:0x13f,_0x265796:0x16c,_0x4d76ea:0x1ca,_0x5206dd:0x315,_0x3c047f:0x2e},_0x4ed73c={_0x561904:0x1d1,_0x517790:0x340},_0x5371f8={_0x2e525a:0x1b1,_0x571529:0x25c},_0x4eb413={_0x4181f6:0x166};function _0x3c9ab6(_0x470cf3,_0xade42e,_0x391f83,_0x1fc358){return _0x37c1da(_0x470cf3-_0x4eb413._0x4181f6,_0xade42e-0x15f,_0x1fc358,_0xade42e- -0x247);}function _0x4d051f(_0x272f45,_0x227b0f,_0x4c9073,_0x23a23d){return _0x38d42b(_0x272f45-_0x5371f8._0x2e525a,_0x4c9073- -_0x5371f8._0x571529,_0x23a23d,_0x23a23d-0x33);}return defineTool({'name':_0x3c9ab6(0x2d7,0x415,0x2df,_0x13d56a._0x4317ee),'description':_0x3c9ab6(0x375,0x353,0x440,_0x13d56a._0x1602cb),'inputSchema':{'type':_0x4d051f(-0x2a4,-0x26f,-_0x13d56a._0xb3e7c7,-_0x13d56a._0x2bcbca),'properties':{'todos':{'type':_0x4d051f(-0x1ba,-0x305,-0x26c,-0x1f2),'items':{'type':'object','properties':{'content':{'type':_0x3c9ab6(_0x13d56a._0x1e585c,_0x13d56a._0x5cc468,0x3b2,0x223)},'status':{'type':_0x4d051f(-0x157,-0x266,-0x1da,-_0x13d56a._0x3d0b67)},'priority':{'type':_0x4d051f(-_0x13d56a._0x54baf0,-0xfc,-0x1da,-0x16c)},'id':{'type':_0x3c9ab6(_0x13d56a._0x397b35,0x286,_0x13d56a._0x45330d,0x139)},'createdAt':{'type':_0x4d051f(-0x224,-0xed,-0x1da,-_0x13d56a._0x56cce6)}},'required':['content',_0x4d051f(-_0x13d56a._0x111214,-0xcf,-0x114,-0x55),_0x4d051f(-0x28d,-0x33d,-0x263,-_0x13d56a._0x534dc5),'id']}}},'required':['todos']},async *'execute'(_0x26ada0,_0xfdeb60){const _0x37cd74=_0x26ada0;validateTodos(_0x37cd74);const _0x15a65e=_0xfdeb60[_0x49baa8(0x2a7,_0xaf188b._0x3a4415,_0xaf188b._0x2f56bc,0x120)]||_0x2e1ae7(_0xaf188b._0x3e2a90,_0xaf188b._0x462791,0x6,_0xaf188b._0x1ef32a);function _0x49baa8(_0x430f6e,_0x500ebf,_0x43002c,_0x31ff9b){return _0x4d051f(_0x430f6e-_0x4ed73c._0x561904,_0x500ebf-0xcc,_0x43002c-_0x4ed73c._0x517790,_0x31ff9b);}const _0x455af8=new Date()['toISOString'](),_0x3b160e=_0x37cd74[_0x2e1ae7(_0xaf188b._0x1e1dcf,0x47,0x1a9,_0xaf188b._0x265796)][_0x49baa8(0x413,_0xaf188b._0x4d76ea,_0xaf188b._0x5206dd,0x3e9)](_0x448dc0=>({'id':_0x448dc0['id'],'content':_0x448dc0[_0x2e1ae7(-0x5,0x1ed,0xda,0x118)],'status':_0x448dc0[_0x2e1ae7(0x65,0x256,0x197,0x168)],'priority':_0x448dc0[_0x49baa8(0xaf,-0x9,0xdd,0x155)],'sessionId':_0x15a65e,'createdAt':_0x448dc0[_0x49baa8(0x2f0,0x232,0x307,0x252)]||_0x455af8,'updatedAt':_0x455af8}));function _0x2e1ae7(_0x3c411a,_0x53ba72,_0x5515cc,_0x25b752){return _0x4d051f(_0x3c411a-0x21,_0x53ba72-0x54,_0x25b752-0x27c,_0x5515cc);}_0x260740['setTodos'](_0x15a65e,_0x3b160e);const _0x595216=_0x260740[_0x2e1ae7(0x249,0x2e2,0x106,0x1ab)](_0x15a65e),_0x5cb195=_0x3b160e[_0x2e1ae7(0x248,0x251,0x18d,0x105)]>0x0&&_0x3b160e[_0x49baa8(_0xaf188b._0x3c047f,0x69,0x162,0x1fe)](_0x13fac4=>_0x13fac4[_0x49baa8(0x253,0xe3,0x22c,0x1dc)]===_0x2e1ae7(0x18f,0x115,-0x12,0x10f));return createToolOutput(createOutputText(_0x3b160e,_0x5cb195),createStructuredResult(_0x15a65e,_0x3b160e,_0x595216,_0x5cb195));}});}import{mkdir as _0x1d653f,writeFile as _0x9f8424}from'fs/promises';import*as _0x648fe7 from'path';function sanitizeFileName(_0x2ce3fa){const _0x1d78ee={_0x383531:0x1d6,_0x3876f1:0x1cc,_0x4e8b5d:0x2b1},_0x45da21={_0x515491:0x1d8,_0x134adf:0x1d};function _0x19319c(_0x1bbb9e,_0x1c8076,_0x20f4d6,_0x4472ae){return _0x37c1da(_0x1bbb9e-_0x45da21._0x515491,_0x1c8076-_0x45da21._0x134adf,_0x1c8076,_0x1bbb9e- -0x5f9);}return _0x2ce3fa[_0x19319c(-_0x1d78ee._0x383531,-_0x1d78ee._0x3876f1,-_0x1d78ee._0x4e8b5d,-0x145)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x49dbb7,_0x5dfc2a){const _0x81ffa4={_0xf6ebe9:0x24f,_0x108ec0:0x2b7,_0x25ccb1:0x361,_0x425a40:0x18c,_0x3d66ae:0x12f,_0x42b555:0xb7,_0xe728a7:0x163,_0x3522c5:0x2e,_0x291278:0x92,_0x1a5946:0x3b,_0x4434a1:0xe0,_0x3647bd:0x4a5,_0x44cf2e:0x464,_0x1e28b1:0x3b6,_0x29219c:0x1e6,_0x327df9:0x2fc,_0x192bb6:0x236,_0x39b664:0x3ec,_0x247f02:0x44d,_0x37daab:0x1a9,_0x2e6f11:0x13a,_0x149e24:0x1b3,_0x23ebcb:0x2fd,_0x44fb54:0x31,_0xd70469:0x1db,_0x549381:0x14c,_0x3c9ee0:0x1f0,_0x453563:0x119,_0x5dedc5:0x387,_0x42f425:0xf,_0x52c4f1:0x141,_0x470b5b:0x6f,_0x1074cf:0x1f,_0x897c4f:0x191,_0x3ee4de:0x2a,_0x35ba98:0xf2,_0xccac4c:0x177,_0x36457c:0x6f,_0x350f6b:0x2b,_0x2b3557:0x266,_0xba6948:0x19f,_0xf003c0:0x18b,_0xa066e3:0x116,_0x54bef5:0x1a,_0x20cde0:0x279,_0x52f2ff:0x37f,_0x310adb:0x24b,_0x268108:0x4be,_0x3de008:0x449,_0x412815:0x312,_0x2a84e4:0x6c,_0x3b4e60:0x469,_0xd7ef7f:0x29d,_0x4a5da9:0x377,_0x29b401:0x25,_0x4419d4:0x10b,_0x296cf8:0xc8,_0x5746be:0xc9,_0x2eeeb7:0x229,_0x344853:0x2ba,_0x3b4306:0x316,_0x45d7da:0xe1,_0x29db38:0x6d,_0x5898c6:0x15a},_0x56de5d={_0x2b61b1:0x188,_0x158d5e:0x18c},_0x3b2c04={_0x4e3053:0xca,_0xcdbfb1:0x8c},{maxBytes:_0x520711,sessionDir:_0x2d3450}=_0x5dfc2a;function _0x138538(_0x4b021a,_0x32dbee,_0x513508,_0x372dc9){return _0x38d42b(_0x4b021a-_0x3b2c04._0x4e3053,_0x372dc9-0x18e,_0x4b021a,_0x372dc9-_0x3b2c04._0xcdbfb1);}if(!_0x49dbb7[_0x36fae7(-0x19c,-0x2b5,-_0x81ffa4._0xf6ebe9,-_0x81ffa4._0x108ec0)]||Buffer['byteLength'](_0x49dbb7['output'],_0x138538(0x41b,0x3fd,_0x81ffa4._0x25ccb1,0x2ee))<=_0x520711)return _0x49dbb7;const _0xe2adfd=Buffer['byteLength'](_0x49dbb7[_0x36fae7(-_0x81ffa4._0x425a40,-0x212,-0x24f,-0x1d8)],_0x36fae7(-_0x81ffa4._0x3d66ae,-_0x81ffa4._0x42b555,-0x119,-_0x81ffa4._0xe728a7));if(!_0x2d3450){const _0x5b9605=_0x49dbb7['output'][_0x36fae7(0x43,0x5,-0x6f,-_0x81ffa4._0x3522c5)](0x0,_0x520711);return{..._0x49dbb7,'output':_0x5b9605+(_0x36fae7(-0x183,0x5c,-_0x81ffa4._0x291278,_0x81ffa4._0x1a5946)+_0x520711+_0x36fae7(-0x132,-0x35b,-0x21a,-_0x81ffa4._0x4434a1)+_0xe2adfd+_0x138538(_0x81ffa4._0x3647bd,_0x81ffa4._0x44cf2e,0x47b,_0x81ffa4._0x1e28b1)),'meta':{..._0x49dbb7[_0x138538(0x40c,0x28d,_0x81ffa4._0x29219c,_0x81ffa4._0x327df9)],'truncated':!![],'originalBytes':_0xe2adfd,'transforms':[..._0x49dbb7['meta'][_0x138538(_0x81ffa4._0x192bb6,_0x81ffa4._0x39b664,_0x81ffa4._0x247f02,0x316)],_0x36fae7(-_0x81ffa4._0x37daab,-_0x81ffa4._0x2e6f11,-0x6d,-0xac)]}};}const _0x5a6565=_0x49dbb7['toolName']+'_'+sanitizeFileName(_0x49dbb7['callId'])+_0x138538(0x269,0x36e,_0x81ffa4._0x149e24,_0x81ffa4._0x23ebcb),_0x25fb03=_0x648fe7[_0x36fae7(0xb4,0x1e,-0x90,_0x81ffa4._0x44fb54)](_0x2d3450,_0x5a6565);await _0x1d653f(_0x2d3450,{'recursive':!![]});function _0x36fae7(_0x48bd86,_0x486cba,_0x5d0f9d,_0x3bfc05){return _0x38d42b(_0x48bd86-_0x56de5d._0x2b61b1,_0x5d0f9d- -0x279,_0x486cba,_0x3bfc05-_0x56de5d._0x158d5e);}await _0x9f8424(_0x25fb03,_0x49dbb7[_0x138538(_0x81ffa4._0xd70469,0x8f,0x76,0x1b8)],_0x36fae7(-_0x81ffa4._0x549381,-_0x81ffa4._0x3c9ee0,-_0x81ffa4._0x453563,-0xfe));let _0x3dd9f4=_0x49dbb7[_0x36fae7(-0x12f,-_0x81ffa4._0x5dedc5,-_0x81ffa4._0xf6ebe9,-0x295)][_0x36fae7(-_0x81ffa4._0x42f425,-_0x81ffa4._0x52c4f1,-_0x81ffa4._0x470b5b,_0x81ffa4._0x1074cf)](0x0,_0x520711);const _0x629aca=_0x3dd9f4[_0x36fae7(-_0x81ffa4._0x897c4f,-_0x81ffa4._0x3ee4de,-_0x81ffa4._0x35ba98,-0x14c)]('\x0a');_0x629aca>_0x520711*0.5&&(_0x3dd9f4=_0x3dd9f4[_0x36fae7(-_0x81ffa4._0xccac4c,-0xb7,-_0x81ffa4._0x36457c,-_0x81ffa4._0x350f6b)](0x0,_0x629aca));const _0x38679f=['',_0x138538(0x289,_0x81ffa4._0x2b3557,0x28e,_0x81ffa4._0xba6948),_0x138538(0x4f,0x1e2,0x127,_0x81ffa4._0xf003c0)+_0x520711+_0x36fae7(-0x8,-0x52,-_0x81ffa4._0xa066e3,-_0x81ffa4._0x54bef5)+_0xe2adfd+_0x36fae7(-_0x81ffa4._0x20cde0,-_0x81ffa4._0x52f2ff,-_0x81ffa4._0x310adb,-0x1e3),_0x138538(0x336,_0x81ffa4._0x268108,_0x81ffa4._0x3de008,0x3a9)+_0x25fb03,_0x138538(0x41d,_0x81ffa4._0x412815,0x3ad,0x3cb),_0x36fae7(-_0x81ffa4._0x2a84e4,-0x11b,-0x19e,-0x1bd)][_0x138538(0x2ff,_0x81ffa4._0x3b4e60,_0x81ffa4._0xd7ef7f,_0x81ffa4._0x4a5da9)]('\x0a');return{..._0x49dbb7,'output':_0x3dd9f4+_0x38679f,'meta':{..._0x49dbb7[_0x36fae7(-_0x81ffa4._0x29b401,-0x24f,-_0x81ffa4._0x4419d4,-_0x81ffa4._0x296cf8)],'truncated':!![],'originalBytes':_0xe2adfd,'transforms':[..._0x49dbb7[_0x36fae7(-_0x81ffa4._0x5746be,-0xc3,-0x10b,-_0x81ffa4._0x2eeeb7)][_0x138538(_0x81ffa4._0x344853,0x1dc,0x38f,_0x81ffa4._0x3b4306)],_0x36fae7(-_0x81ffa4._0x45d7da,-0xdc,-_0x81ffa4._0x29db38,-_0x81ffa4._0x5898c6)]}};}import{readFile as _0xdb9c77,stat as _0x4a2aca}from'fs/promises';import*as _0x4dce53 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x37c1da(0x6a2,0x5f6,0x62f,0x5b8),_0x37c1da(0x4f5,0x5a3,0x5dd,0x5ca),_0x37c1da(0x45f,0x425,0x653,0x555),_0x37c1da(0x734,0x724,0x6aa,0x63d)]),PNG_SIGNATURE=Buffer[_0x38d42b(0x2e7,0x1b7,0x274,0x190)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x13e902,_0x65e814){const _0x2a64a9={_0x3408b4:0x55b,_0x5e6e51:0x58c,_0x2cfb4e:0x47d,_0x3581fa:0x200,_0x166475:0x49,_0x59f0b7:0xff,_0x1a39ac:0x64e,_0x4ee77d:0x16f,_0x317325:0x29d,_0x41f440:0x157,_0x3f81ca:0x22c,_0x3b1122:0x19d,_0x38d5b7:0x15a,_0x406c10:0x4e,_0xe68f4d:0x20c,_0x2e7650:0x29e,_0x4e756a:0x686,_0x457542:0x85,_0x5e31bd:0x81,_0x991975:0x697,_0x10a7fa:0x6fa,_0x485606:0x14c,_0x5c4c73:0x5ac,_0x19736f:0x4ff,_0x4c5486:0x4ca,_0x4eac93:0x78,_0x2b14e7:0xdc,_0x3b9f1e:0x164,_0x4385bf:0x1b7,_0x29aab4:0x13e,_0x5ba0c5:0x1c9,_0x27211c:0x92,_0x3597b4:0xa3,_0x294f76:0x88},_0xb6b8e7={_0xcb986c:0x16b,_0x51b504:0x63b};function _0x2ab1c9(_0x438818,_0x33acce,_0x4e623c,_0x448cc0){return _0x37c1da(_0x438818-0x94,_0x33acce-0x1f0,_0x448cc0,_0x438818-0x7a);}if(_0x13e902[_0x2ab1c9(_0x2a64a9._0x3408b4,0x646,_0x2a64a9._0x5e6e51,_0x2a64a9._0x2cfb4e)](0x0,0x8)[_0x4571fb(-0xc4,-0x1e3,-_0x2a64a9._0x3581fa,-0x2ba)](PNG_SIGNATURE))return _0x4571fb(-0xd1,-_0x2a64a9._0x166475,-_0x2a64a9._0x59f0b7,-0x192);if(_0x13e902[0x0]===0xff&&_0x13e902[0x1]===0xd8&&_0x13e902[0x2]===0xff)return _0x2ab1c9(0x5d9,0x4d1,0x70f,0x51e);const _0x145e3f=_0x13e902[_0x2ab1c9(0x55b,_0x2a64a9._0x1a39ac,0x64c,0x48a)](0x0,0x6)[_0x4571fb(-0x20c,-0x186,-_0x2a64a9._0x4ee77d,-0x1e9)](_0x4571fb(-0x32a,-0x207,-_0x2a64a9._0x317325,-0x240));if(_0x145e3f==='GIF87a'||_0x145e3f==='GIF89a')return'image/gif';if(_0x13e902[_0x4571fb(-_0x2a64a9._0x41f440,-0x15a,-_0x2a64a9._0x3f81ca,-_0x2a64a9._0x3b1122)](0x0,0x4)['toString']('ascii')==='RIFF'&&_0x13e902[_0x4571fb(-0x45,-_0x2a64a9._0x38d5b7,-0x51,-_0x2a64a9._0x406c10)](0x8,0xc)['toString'](_0x4571fb(-0xd7,-0x207,-_0x2a64a9._0xe68f4d,-_0x2a64a9._0x2e7650))===_0x2ab1c9(0x5ee,0x4a1,_0x2a64a9._0x4e756a,0x548))return _0x4571fb(-0x61,-0x72,-_0x2a64a9._0x457542,_0x2a64a9._0x5e31bd);const _0x583711=_0x4dce53[_0x2ab1c9(_0x2a64a9._0x991975,0x742,_0x2a64a9._0x10a7fa,0x6c8)](_0x65e814)[_0x4571fb(0x2d,0x30,_0x2a64a9._0x485606,-0x67)]();if(_0x583711===_0x2ab1c9(0x5bc,_0x2a64a9._0x5c4c73,_0x2a64a9._0x19736f,_0x2a64a9._0x4c5486))return _0x4571fb(_0x2a64a9._0x4eac93,-0x49,-_0x2a64a9._0x41f440,-0x106);if(_0x583711==='.jpg'||_0x583711==='.jpeg')return _0x4571fb(-0x49,-_0x2a64a9._0x2b14e7,-_0x2a64a9._0x3b9f1e,-0x8);function _0x4571fb(_0x1deacf,_0x5cdd4b,_0x54be1f,_0x358ab9){return _0x37c1da(_0x1deacf-_0xb6b8e7._0xcb986c,_0x5cdd4b-0xc,_0x1deacf,_0x5cdd4b- -_0xb6b8e7._0x51b504);}if(_0x583711==='.gif')return'image/gif';if(_0x583711===_0x4571fb(-0x73,-_0x2a64a9._0x4385bf,-_0x2a64a9._0x29aab4,-_0x2a64a9._0x5ba0c5))return _0x4571fb(-_0x2a64a9._0x27211c,-0x72,-_0x2a64a9._0x3597b4,-_0x2a64a9._0x294f76);return void 0x0;}function normalizeDetail(_0x3d52bf){const _0x492405={_0x167af2:0xcf,_0x1bebbe:0x44f,_0x255c6d:0x4fc,_0x4caf2a:0x4d7,_0x14bd0c:0x49d,_0xf0044b:0x500,_0x15d752:0x4e5,_0x3fdcdf:0xee,_0x17c6fd:0x156},_0x57d817={_0x225eea:0x26,_0x2730cb:0x50f},_0x20ccce={_0x4fa796:0x16f};if(_0x3d52bf===void 0x0)return void 0x0;const _0x433f67=_0x3d52bf[_0x1334af(0xbb,0xed,-0x49,_0x492405._0x167af2)]()[_0x5928db(_0x492405._0x1bebbe,_0x492405._0x255c6d,_0x492405._0x4caf2a,_0x492405._0x14bd0c)]();if(!SUPPORTED_DETAILS[_0x5928db(0x445,_0x492405._0xf0044b,0x586,_0x492405._0x15d752)](_0x433f67))throw new ToolExecutionError(_0x1334af(-0x19c,-_0x492405._0x3fdcdf,-_0x492405._0x17c6fd,0x2d)+_0x3d52bf,{'detail':_0x3d52bf});function _0x5928db(_0xc9c0a7,_0x471f72,_0x5ca298,_0x2852ad){return _0x37c1da(_0xc9c0a7-0x6a,_0x471f72-0x98,_0xc9c0a7,_0x471f72- -_0x20ccce._0x4fa796);}function _0x1334af(_0x206187,_0x2854b3,_0x5c5b0a,_0x136c66){return _0x37c1da(_0x206187-_0x57d817._0x225eea,_0x2854b3-0x18f,_0x136c66,_0x2854b3- -_0x57d817._0x2730cb);}return _0x433f67;}function createViewFileTool(_0x400bcb={}){const _0x10d22e={_0x2d8b20:0x192,_0x159250:0x30b,_0x1be186:0x139,_0x23252c:0x267,_0x208496:0x126},_0x31cd80={_0x10d09d:0x49,_0x151374:0x105,_0x4fcf81:0x6d,_0x255eac:0x15f,_0x524861:0xca,_0x40b5bf:0x28,_0x24a221:0x2f,_0x23dab0:0xa9,_0xa90c36:0x6f,_0x1f8be3:0x15d,_0x3c002e:0x44b,_0x58d575:0x3de,_0x255fdc:0x464,_0x4adbea:0x410,_0x31548b:0x4eb,_0x2bcdab:0x3a8,_0x41c81b:0x340,_0xa04bbf:0x350,_0x3e67c7:0x137,_0x1fe3ca:0x7f,_0x1fa444:0x5c0,_0x47eabe:0x4c6,_0x28cc88:0xbe,_0xfca39f:0x20b,_0x294abd:0x234,_0x5227a6:0x133,_0xa1e793:0xcd,_0x19936c:0xb6,_0xa49d0:0x53,_0x556636:0x39,_0x31a3d4:0x1d,_0x510bcd:0x4c,_0x57f800:0x1de,_0x1cba30:0x3d,_0x1a04a8:0x2b,_0x3a6dfc:0x1,_0x25a264:0x4be,_0x42e756:0x4c6,_0x581254:0x69,_0x5e7893:0x6c,_0x14c1f3:0x169,_0x39456d:0x1dd,_0x3ebfe6:0x78,_0x557692:0x337,_0x511288:0x238,_0x85e4f5:0x2ce},_0x1dc0c5={_0x2e24da:0xff},_0x1851a4={_0x4326f4:0x34,_0x5a4fb6:0x2e3},_0x3f4961={_0x5275ed:0x1d5,_0x5241a3:0xa4};function _0xe54394(_0x33ac2a,_0x10d1a6,_0x10f8e6,_0xdac6c7){return _0x38d42b(_0x33ac2a-_0x3f4961._0x5275ed,_0x10d1a6-_0x3f4961._0x5241a3,_0x33ac2a,_0xdac6c7-0xa2);}const _0x57d6c8=_0x4dce53['resolve'](_0x400bcb['defaultCwd']??process[_0xe54394(_0x10d22e._0x2d8b20,0x226,_0x10d22e._0x159250,_0x10d22e._0x1be186)]()),_0x533706=(_0x400bcb['allowedDirs']??[])[_0xe54394(0x35b,0x2d5,0x2f6,0x227)](_0x37e594=>_0x4dce53[_0xe54394(0x2b6,0x1a7,0xbf,0x187)](_0x37e594));function _0x4e6d68(_0x583b10,_0x310f0c,_0x4c0cfd,_0xf3b346){return _0x37c1da(_0x583b10-_0x1851a4._0x4326f4,_0x310f0c-0x151,_0x310f0c,_0xf3b346- -_0x1851a4._0x5a4fb6);}const _0x2fa0c1=_0x400bcb[_0xe54394(0x22,0x131,0x113,0x215)]??DEFAULT_MAX_BYTES,_0x299db5=_0x400bcb['name']??_0xe54394(_0x10d22e._0x23252c,0x249,0x165,0x168);return defineTool({'name':_0x299db5,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':'object','properties':{'path':{'type':_0xe54394(0x237,_0x10d22e._0x208496,-0xc,0xb9)},'detail':{'type':'string'}},'required':[_0xe54394(0x19c,0x2b9,0x18f,0x315)]},async *'execute'(_0x7eb0e8){const _0x4ff31f={_0x17ae65:0x5e},_0x4f2082=resolveAllowedPath(_0x57d6c8,_0x533706,_0x7eb0e8['path']);await assertWorkspaceFile(_0x4f2082);const _0x29ff42=await _0x4a2aca(_0x4f2082);function _0x1999ce(_0x35012e,_0x48f16a,_0x35bc60,_0x2db4c8){return _0x4e6d68(_0x35012e-_0x1dc0c5._0x2e24da,_0x2db4c8,_0x35bc60-0xa7,_0x35bc60- -0x21e);}if(_0x29ff42[_0x1999ce(-0x137,-0xb0,-_0x31cd80._0x10d09d,0xfa)]>_0x2fa0c1)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x7eb0e8['path'],{'path':_0x7eb0e8[_0x1999ce(_0x31cd80._0x151374,_0x31cd80._0x4fcf81,_0x31cd80._0x255eac,_0x31cd80._0x524861)],'maxBytes':_0x2fa0c1,'size':_0x29ff42['size']});const _0x4c31a9=await _0xdb9c77(_0x4f2082),_0x5db691=detectImageMediaType(_0x4c31a9,_0x4f2082);function _0x3207a1(_0x1013b6,_0x1dec91,_0x1e41f0,_0x38e9f7){return _0xe54394(_0x1013b6,_0x38e9f7-0x20d,_0x1e41f0-_0x4ff31f._0x17ae65,_0x38e9f7-0x4a);}if(!_0x5db691)throw new ToolExecutionError(_0x1999ce(-_0x31cd80._0x40b5bf,0xc0,-0x6d,-_0x31cd80._0x24a221)+_0x7eb0e8[_0x1999ce(0x284,0x1de,0x15f,0x8a)],{'path':_0x7eb0e8['path'],'supported':[_0x1999ce(0x4e,0x1b8,0x8d,_0x31cd80._0x23dab0),_0x1999ce(-_0x31cd80._0xa90c36,0x14a,0xd3,_0x31cd80._0x1f8be3),_0x3207a1(0x30c,0x2b4,_0x31cd80._0x3c002e,_0x31cd80._0x58d575),_0x3207a1(_0x31cd80._0x255fdc,_0x31cd80._0x4adbea,_0x31cd80._0x31548b,_0x31cd80._0x2bcdab),_0x3207a1(0x211,_0x31cd80._0x41c81b,_0x31cd80._0xa04bbf,0x2ea)]});const _0x3086a8=normalizeDetail(_0x7eb0e8[_0x1999ce(0x1ed,0x1d4,_0x31cd80._0x3e67c7,0x51)]),_0x4e54f7=[_0x1999ce(-_0x31cd80._0x1fe3ca,-0x94,-0xaf,-0xd5)+_0x7eb0e8[_0x3207a1(_0x31cd80._0x1fa444,0x43c,0x467,_0x31cd80._0x47eabe)],'MIME:\x20'+_0x5db691,'Size:\x20'+_0x29ff42['size']+'\x20bytes'][_0x1999ce(_0x31cd80._0x28cc88,_0x31cd80._0xfca39f,0x111,_0x31cd80._0x294abd)](_0x3086a8?['Detail:\x20'+_0x3086a8]:[])[_0x1999ce(0x1c1,0x64,_0x31cd80._0x5227a6,0x24a)]('\x0a'),_0xfaa946=[{'type':_0x1999ce(-0x114,-_0x31cd80._0xa1e793,0x29,-_0x31cd80._0x19936c),'source':{'type':_0x1999ce(-_0x31cd80._0xa49d0,-0x1a6,-0x99,-_0x31cd80._0x556636),'media_type':_0x5db691,'data':_0x4c31a9[_0x1999ce(_0x31cd80._0x31a3d4,-0x11a,-_0x31cd80._0x510bcd,-0xed)](_0x3207a1(0x1d9,_0x31cd80._0x57f800,0x2ee,0x2ce))}},{'type':_0x1999ce(-_0x31cd80._0x1cba30,_0x31cd80._0x1a04a8,-0x7,_0x31cd80._0x3a6dfc),'text':_0x4e54f7}];return yield createToolOutput(_0x4e54f7,{'path':_0x7eb0e8[_0x3207a1(0x503,0x3ef,_0x31cd80._0x25a264,_0x31cd80._0x42e756)],'resolvedPath':_0x4f2082,'created':_0x29ff42[_0x1999ce(-_0x31cd80._0x581254,0xf1,0x17,-_0x31cd80._0x5e7893)]['toISOString'](),'modified':_0x29ff42['mtime'][_0x1999ce(-0xfa,-_0x31cd80._0x14c1f3,-0xf3,-_0x31cd80._0x39456d)](),'size':_0x29ff42[_0x1999ce(-_0x31cd80._0x1a04a8,_0x31cd80._0x3ebfe6,-0x49,-0xfe)],'mimeType':_0x5db691,'encoding':_0x3207a1(_0x31cd80._0x557692,_0x31cd80._0x511288,0x33d,_0x31cd80._0x85e4f5),..._0x3086a8?{'detail':_0x3086a8}:{}},_0xfaa946),void 0x0;}});}import _0x194c62 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 _0x491c(){const _0x1e6127=['zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','lMPZB24','yM9VBgvHBG','yxr0CG','zMXVB3i','C3rHDgu','BhnWu2vYDMLJzq','te9x','lMnTza','tg9HzfnRAwXS','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','AM9PBG','A2v5CW','Dgv4Dc9ODg1S','tgLUzsa','zgv0ywLS','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','Aw5ZDhj1y3rPB25Z','DxrTx2nHBxbHAwDU','ls1NBg9Ipq','B3jPz2LUywW','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','zxjYB3i','zg9JDw1LBNrtEw1IB2W','C3rKB3v0','ig1HDgnO','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','CMvJB3jK','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','y29KzvzLCMLMAwvY','A2LSBa','ChjLCgfYzunHBgXiAwvYyxjJAhK','CgfNzw1HCa','o1TE','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','yxbPs2v5','nda2mhH5BxHUCG','BgfUz3vHz2u','Dg9VBa','l2jPBI9YzW','zMLSztOVlW','lu5VuhjVzMLSzq','CxvLC3rPB25Z','C2XPy2u','zMjJBgLK','Dg9VBc1VDxrWDxqTB2zMBg9Hza','oIbJB250zw50ihjLCxvPCMvK','zw5K','u2HLBgWGBM90igzVDw5KoIa','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','vg9KB1DYAxrL','Aw5WDxrty2HLBwe','C3jJl2fNzw50l2fNzw50lNrZ','thnW','Cgf0Aa','zw5NAw5LCW','C25PChbLDa','yxjNDw1LBNrZ','Bg9JyxrPB24','DgL0Bgu','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','zgvUBY5QC29U','y2fSBgjHy2TvCMW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','Dg9mB3DLCKnHC2u','B25oB3rPzMLJyxrPB24','DxjP','y3jLyxrLzef0','AgfZ','AxnfBMfIBgvK','CMvTB3zLrxzLBNrmAxn0zw5LCG','l2jPBI9IyxnO','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','ChjVDg9JB2W','Dhj1BMm','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','tM8GC3vJAcbMAwXLoIaN','ls1ZDgrPBW','zgvMyxvSDen3za','ywXS','mJi3otG5ohLduK1WDW','BwfW','tunqihnLCNzLCIa','y2vPBa','AgfUzgXL','CMvXDwLYzwq','ksbB','z29Vz2XLq3nLs2v5','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','oIbPzcbYzxf1AxjLza','CMvHC29U','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','Aw5JB21PBMDdywXSCW','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','yxnRvxnLCG','CgfJA2fNzu5HBwu','Dgv4DerVy3vTzw50l2HVDMvY','CMfUz2u','D2vI','C3rHCNq','yxnZAwDU','Aw5ZDgfSBa','ANnVBG','zgLZywjSzwq','ChvZAa','Aw5JBhvKzxm','Ahr0CdO','BgLUzq','tuvesvvn','DgLTzvTKyxrLDgLTzv0','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','C2v0vg9KB3m','l3vZCI9SB2nHBc9IAw4VCMC','y2fSBfrVB2W','zgf0zxrPBwu','igzHAwXLzc4','ndu4ngX2EfLvvG','mZjsDfHHzgG','ywXSB3DLzerPCNm','DxrTx3nVDxjJzq','vw5RBM93BIb0B29SoIa','C2vHCMnOvhLWzq','Aw52ywXPzf90B2rVx2L0zw0','Bw9Kzq','yMLVBwuUANnVBMm','Dg9ju09tDhjPBMC','zMLYC3q','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','BgLNAhq','uhvIBgLZAgvKoIa','tunqihrVB2WG','yxv0AfjLCxvPCMvK','u2TPBgWGjW','C2H1DgrVD24','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','BM9Uzq','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','Dw5PB24','qxnRvxnLCLrVB2W','lNrTCc4','lMPZB25J','AMf2yxnJCMLWDhjLywn0','Aw5FChjVz3jLC3m','zgf0yq','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','BNvTyMvY','CMvWBgfJzq','CMvJzw5JEurHExm','y2f0y2G','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','BhnWlxbYB3H5','yw50AhjVCgLJlw1LC3nHz2vZ','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','DgHLBG','ChjVCgvYDgLLCW','lM51DMLU','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','Aw5JBhvKzq','r2XVyG','zgLZCg9Zzq','C2vUza','ugf0AcbPCYbUB3qGysbMAwXLoIa','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','yxnJAwK','yMfZAwm','BgLUAW','zgLZy292zxj5u3rHDgu','Bg9HzfnRAwXS','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','yxjYyxK','C2fMzq','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','yM94zwq','AwDUB3jLt3v0Chv0','BgfUzW','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','DgvZDa','CMvZDwX0','ChjPB3jPDhK','B3bLCMf0Aw9U','A2v5yMLUzgLUz3m','ANnVBMm','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','y2fWywjPBgL0AwvZ','C291CMnL','u0Lhs0Lmta','B2zMC2v0','CNvUswq','w1bFxL1BxhnCu10QpW','Aw52ywXPzf90B2rVx3n0yxr1CW','ig1Z','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','vMLLD2vKigLTywDLigzPBgu6ia','Aw5WDxq','CgLK','C2HHmJu2','AgvHzgvYCW','ywjVCNq','zxf1ywXZ','B2jQzwn0','yxjNCW','yxbWBgLJyxrPB24VANnVBG','phn5C3rLBs1Yzw1PBMrLCJ4','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','CgXHDgzVCM0','sfruuca','oIbPBNzHBgLKihbYAw9YAxr5','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','CMCUzxHL','CMLWz3jLCcbMywLSzwq6ia','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','BNbT','D29YA3nWywnLl3n5BwjVBa','BM9Zy3jPChq','yMfZzty0','BgLTAxq','yxv0Aa','l3bPza','AxnbCNjHEq','C3vKBW','ywrKrxzLBNrmAxn0zw5LCG','zMLSDgvY','lM10CW','CgXHAw4','BwLU','zxH0zw5ZAw9UCW','Bw9KzwW','B3v0Chv0','yxr4','C3rVCMfNzurPCG','y2fJAgvK','igj5DgvZks4','z29Vz2XLlwnZzq','qxv0Ag9YAxPHDgLVBG','DhnJ','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','lMnQCW','yw5ZAti1nG','Aw1Hz2vZ','CgfYzw50u2vZC2LVBKLK','ru5pru5u','lNDLyNa','zw50CMLLCW','xg5DkJ8','zNvUy3rPB24','AgvHzgvY','C2vHCMnOugfYyw1Z','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','CgfYC2u','DxjS','lNrZEa','y29UBMvJDa','y29ZDa','BxrPBwvnCW','iYmGu2TPBgW6ia','Dgf2AwX5qxbPs2v5','BgLI','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','te9dquXbufbeqvrb','ywjVCNrLza','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','yxnPzgu','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','qwDLBNqGCNvUia','ChjLzML4','Ahr0Chm6','tM8GAg92zxiGAw5MB3jTyxrPB24','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','sw52B2TLq29TBwfUza','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','ywDLBNrZ','y29UzMLN','w01duca','ywXSu2v0DgXLza','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','lM1QCW','Dg9Rzw4','AhrTBfnUAxbWzxq','AgfZq2XPzw50CW','igj5DgvZicHVCMLNAw5HBdOG','C2vHCMnOrgvWDgG','DhnZzxj2zxiUANm','C2v2zxjPDhK','tM8GBg9JyxrPB25ZigzVDw5K','zM9VDgvY','C29YDa','C3rKzxjY','yMvHCMvY','l3vZCI9IAw4VCMC','Bg9JywXLq29TCgfYzq','Dg9tDhjPBMC','CMvMCMvZAf90B2TLBG','DMfSDwu','C2L6zq','CMfUAW','qMfZzsbKAxjLy3rVCNK6ia','sw5MB3jTyxrPB24','D2HLCMuGCMC','EwfYBI5SB2nR','y29UBMvJDgvK','B3bLBG','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','ntq1otnnBMXIrw0','rMLSzu5LDW','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','y2XVC2u','BxvSDgLtzwXLy3q','ls1NBg9IpseUz2L0lYO','y29UDgv4Da','zxjYB3jnzxnZywDL','zxzLCNK','zgLYBMfTzq','zgf0zvjLC3rYAwn0','AwDUB3jL','C3rYAw5N','C2vZC2LVBKLK','C2vYDMvY','DhvYBMrVD24','CMvXDwvZDa','lI4U','BMv3vgv4Da','C2vYDMvYswq','lMjPBG','D29YA3nWywnLu3LTyM9S','CxvLC3rPB24','Bwf4qNL0zxm','BwfYA2rVD24','AxndB250zxH0','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','yw5ZAte2','DxnLCM5HBwu','y2HHCKnVzgvbDa','tNv2Aw4','Ag9ZDa','C3vIyxjYyxK','ue9tva','zxjYB3jZ','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','nJe0nJC5sfPTr1zP','C2vUzfjLCxvLC3q','yNvUlMXVy2TI','z29uB0LTCgXLBwvUDgf0Aw9U','y29UDgvUDhm','zgvSAw1PDgvY','zgvSzwDHDgvKlxj1BI0','B25LCNjVCG','zgLNzxn0','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','AxnjBNrLz2vY','zMLUza','C3rHDhvZvgv4Da','BgfUz18','zMLUywXnzxnZywDLvgv4Da','AxngAwXL','y21KlMv4zq','C2vUze5VDgLMAwnHDgLVBG','DhjPBuvUza','Dgv4Da','yMLUyxj5tMfTzq','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','zw52','B2f1DgG','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','CgXHAw50zxH0','ywrK','AxrLBxm','Aw50zwDLCG','C2HLBgXqyxrO','C2vYDMvYtMfTzq','C2HPzNq','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','C3rHCNrZv2L0Aa','zMXHDe1HCa','rMv0y2GGywjVCNrLzcbIEsb1C2vY','Dg9WAwm','C2vSzwn0Aw9UuMfUz2u','zgvMAw5PDgLVBG','C2TPBgXZ','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','u3rHCNrLzcbHz2vUDcbYDw4G','yMfZzw5HBwu','BgLZDgvU','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','C2LNBMfS','BM93','B25szwrPCMvJDa','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','yMLYDgH0Aw1L','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','ie9sia','B3b0Aw9UCW','rMLSzuvKAxq','v2vIrMv0y2G','ChjVy2vZCW','CgfZC3rOCM91z2G','yxjNDw1LBNriAw50','zMLUywXnzxnZywDL','xsb0CMfUC3bVCNqGzxjYB3i6','B2XKvgv4Da','ls1WCMvMAxG','ls1YzwDLEha','pc9ZExn0zw0TCMvTAw5Kzxi+','B3bLBMfPlxjLC3bVBNnLCY13CW','BwnFzwLK','ygbG','Aw1Hz2u','mtiZmde5mhbpyw5wrq','y29UC3rYDwn0B3i','Cgf0DgvYBIbPCYbYzxf1AxjLza','BwvZC2fNzq','yw5ZD2vYCW','BgvUz3rO','BNvT','zw51Bq','l3vZCI9IAw4VyMfZAa','zw5HyMXLza','igzYB20G','C3LTBgLUAW','B25Jzq','B3b0Aw9UywW','ls1JB2X1Bw4','y29TCgXLDgvK','cGOTls0kcG','ls1MAwXLCW','Dg91y2HgAwXL','Cg9W','ywDLBNrjza','Aw5PDgLHBgL6yxrPB24','AMf2yxnJCMLWDa','lNbUzW','y29UDgvUDa','y29TBwfUza','AxnbyNnVBhv0zq','yxv0Ag9YAxPHDgLVBL9JB2rL','zgvMyxvSDa','z2v0','ywn0AxzL','ugf0AcbUB3qGzM91BMq6ia','rM91BMqG','CNvUBMLUzW','ANnJB25MAwCUANnVBG','CMvZB2X2zq','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','Dg9Rzw5tDg9YywDLs2v5','Dw5RBM93BG','C3bHD25PBMC','Bwf0y2HLCW','twLJCM9ZB2z0','Bg93','y2XPzw50twv0ywrHDgfvCMW','y29UBMvJDgLVBG','Dg9Rzw5Z','zMLUzfjLzMvYzw5Jzxm','CMvTB3zL','BhnW','DxrTx21LzgL1Bq','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','q29TBwfUzcaN','Aw1Hz2uVANbLzW','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','ls0T','Dg9KB3ncEvnLC3nPB24','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','BgLUzvrLEhq','z29uB0rLzMLUAxrPB24','BMfTzq','mZqXnNLlCLLSsW','zgLYzwn0B3j5','CM9VDa','Dg9VBenHBgXjza','CMLWz3jLCa','z2XVyG','vw50AxrSzwq','zhj5uNvU','zgvUBY5QC29UyW','yNjVA2vU','z2v0vg9KB3m','Cgf0DgvYBG','ienHDxnLoIa','v0vcua','yNvUlMXVy2S','mZKYmZyYnen6s1f1wG','zxHPDa','lMPWzW','y2XLyxi','rMLSzsb3CML0DgvUigf0ia','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','C3bSAxq','y29TBwfUzhm','BM9Kzv9TB2r1BgvZ','zgvZy3jPChrPB24','BM90Awz5','t0zg','C2nYAxb0','y2XPzw50sw5MB3jTyxrPB24','BhmGlwXH','lw5i','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','Aw5KzxHpzG','CgfJA2fNzs5QC29U','CgfJA2fNzs1SB2nRlMPZB24','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','y2HHCMfJDgvY','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','uxvLC3rPB24G','lMDPzG','DxrTx2nVBNrLBNq','C3jJl3nOyxjLzc90ExbLCY50CW','cMbGya','y3jSzG','C3rHDhvZ','yMLVBwu','D3jPDgu','D2HPy2GGCMC','Dg9KB3m','AxneAxjLy3rVCNK','y291BNq','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','AhLKCMf0zu1LDge','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','AhjLzG','Aw5PDgLHBgL6zwq','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','D2fPDezVCKrPywDUB3n0AwnZ','Aw52ywXPzf90B2rVx2nVBNrLBNq','DhLWzq','CgfZC3DVCMq','zMLSzvbHDgG','BgfIzwW','DhLWzxnJCMLWDhjLywn0','C2v0','Dgf2AwX5','yxjNDw1LBNrZvgv4Da','C2L0ztO','DxrMoa','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','C2H1DgrVD25tDgfYDgvK','igj5DgvZicH0B3rHBdOG','Dg9VBhm','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','Bwf4','zMfPBgvK','DhLWzxnJCMLWDa','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvSyxrPDMu','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','yxv0BW','Bwv0yq','lMXVzW','z29Vz2XLq3nLq3G','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','yxjNDw1LBNroyw1LCW','CgLWzq','lMPZEa','BgLZDfrVB2XZ','C3rHCNreAxi','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','z2L0qNjHBMnO','vw5HDxrOB3jPEMvKrxjYB3i','vg9KBYa','C2nVCgvZ','B2zM','BgL0zxjHBa','Aw1Hz2uVD2vICa','AgLNAa','BwnFy2LK','y2XPzw50CW','y3DK','qMfZAa','CMfUzg9T','Dhj1zwnVBg9Y','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','BgfZDeLUzgv4t2y','DhjHBNnMB3jTCW','lMPWzwC','Aw52ywXPzf9XDwvZDgLVBNm','z2v0u3rHDhm','qgjPB21LANmVyMLVBwu','B2XSyw1H','B3v0z29PBMDdywXSCW','B2C6DxbKyxrLzf90Aw1L','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','B3bLBMfPlxjLC3bVBNnLCW','BgLUzu51Bq','Cg5WBs1SB2nRlNLHBwW','A2LUza','ugfJA2fNzxm','rgLHz25VC3rPyW','A2v5','lMn0CW','ChvIBgLZAgvKqxq','zw5NAw5L','CMvZDwX0CW','y29Kzq','DgfZAW','D2LUmZi','Ag92zxi','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','uhjVz3jHBuzPBgvZkhG4nIK','DhnJB25MAwCUANnVBG','ls1OAwrKzw4','AxnfCNjVCG','vMLLD0zPBgu','u0HfteW','Aw1Hz2uVCg5N','C3jJl2v4yw1WBgvZl2rLBw8UDhm','CgvUzgLUzW','BxrPBwu','DgHPBMTPBMC','y29UDgvUDc10ExbL','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','AwzYyw1L','Dg9VBfjLC3vSDhm','DhjPBq','DgLTzw91De1Z','C3rYAw5NAwz5','Dhj1zq','zxHPDcbJB2rLia','mJq2veniEvrW','zNjVBq','CM91BMq','qMvHCMvYia','CMvMzxjLBMnLCW','AxntEw1IB2XPy0XPBMS','zg9TywLUCW','y2XPzw50','z2vUzxjHBa','CNnZ','zMLSzq','Dg90ywW','yMLVBwuUANnVBG','ntCWv0jzExfo','DxrTx3rLCM0','CxvLCNK','BMf2','y29Uy2f0','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','DhvWBgu','CMvNAw9U','Aw5qCM9NCMvZCW','B3rOzxi','BgLUzuvUza','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','mc4WlJa','rMv0y2GGDgLTzwqGB3v0','AxngAw5PDgu','zxH0BMfTzq','zgLHz25VC3rPy3m','zgLHz25VC3rPy3ngB3jgAwXL','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','B3bLBKzPBgvZ','rxjYB3i','zgvSzxrL','Aw5PDgLHBgL6zq','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','wZ0+nY04kcLD','Dgv4DerVy3vTzw50l2rPzenSB3nL'];_0x491c=function(){return _0x1e6127;};return _0x491c();}function assertFetchableUrl(_0x358f20){const _0x130dea={_0x586aea:0x5e3,_0x23819c:0x5cf,_0x374852:0x85,_0x1aad8c:0xf,_0x2935bf:0xc6,_0x4a1b8c:0x10d,_0x397bd5:0x13a,_0xe897e6:0x1b3,_0x3a263a:0x2dc,_0x55df59:0x4ac,_0x5e7329:0x527,_0x59cf8c:0x75,_0x4d20de:0x2,_0x544e53:0x1c,_0x39556a:0x173,_0x3933fb:0x197,_0x329fcf:0x709,_0x55c25f:0x569,_0x28ddce:0x50a},_0x3dbfb5={_0x412a20:0x1bb,_0x123812:0x76,_0x1638c3:0x157},_0x4d47a5={_0x54940a:0xbe,_0x537ae7:0xbf,_0x44d7cd:0x91};let _0x3cae92;try{_0x3cae92=new URL(_0x358f20);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x358f20});}if(_0x3cae92[_0x5c998f(0x4aa,_0x130dea._0x586aea,0x681,_0x130dea._0x23819c)]!==_0x43326d(-_0x130dea._0x374852,_0x130dea._0x1aad8c,-_0x130dea._0x2935bf,-_0x130dea._0x4a1b8c)&&_0x3cae92[_0x43326d(_0x130dea._0x397bd5,0x189,_0x130dea._0xe897e6,0x212)]!==_0x5c998f(_0x130dea._0x3a263a,0x40b,_0x130dea._0x55df59,0x443))throw new ToolExecutionError(_0x5c998f(_0x130dea._0x5e7329,0x52b,0x479,0x667),{'url':_0x358f20});function _0x5c998f(_0x1f61e7,_0x1fb57f,_0x542538,_0x557d80){return _0x37c1da(_0x1f61e7-_0x4d47a5._0x54940a,_0x1fb57f-_0x4d47a5._0x537ae7,_0x557d80,_0x1fb57f- -_0x4d47a5._0x44d7cd);}function _0x43326d(_0x40ceec,_0x392227,_0x557699,_0x131c77){return _0x38d42b(_0x40ceec-_0x3dbfb5._0x412a20,_0x557699- -_0x3dbfb5._0x123812,_0x131c77,_0x131c77-_0x3dbfb5._0x1638c3);}if(_0x3cae92[_0x43326d(-_0x130dea._0x59cf8c,-_0x130dea._0x4d20de,_0x130dea._0x544e53,0x100)]||_0x3cae92[_0x43326d(0x8e,_0x130dea._0x39556a,0xe2,_0x130dea._0x3933fb)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3cae92[_0x5c998f(_0x130dea._0x329fcf,0x5e3,_0x130dea._0x55c25f,0x5ca)]+'//'+_0x3cae92[_0x5c998f(_0x130dea._0x28ddce,0x44f,0x37d,0x54e)]+_0x3cae92['pathname']});return _0x3cae92;}function createTimeoutSignal(_0x2b534a,_0x3b7640){const _0x8702f1={_0x164b62:0xc6,_0x1e4095:0x4d,_0x2a37cd:0xfd,_0x9d7d07:0x98,_0x58fbde:0x7f,_0x2ea815:0x138,_0xeac11d:0xbb,_0x163160:0x36,_0x34ac68:0x13c,_0x506dfb:0x11,_0x34c4c3:0x28,_0xad0af9:0x22e},_0xe1e181={_0x3c13b5:0x12e,_0x516c8c:0x273,_0x4a5a65:0x234},_0x52ef1c={_0x20c547:0x10c,_0x45a835:0x120},_0x8f4b1e={_0x3b39e9:0x1b8,_0x24ac62:0x73};function _0x3b2d83(_0x3f1d16,_0x38a208,_0x59b8f6,_0x45de0b){return _0x38d42b(_0x3f1d16-_0x8f4b1e._0x3b39e9,_0x3f1d16-_0x8f4b1e._0x24ac62,_0x59b8f6,_0x45de0b-0x12c);}function _0x1c6a79(_0x118633,_0x35609d,_0x1a671b,_0x4eebc8){return _0x38d42b(_0x118633-_0x52ef1c._0x20c547,_0x118633- -_0x52ef1c._0x45a835,_0x4eebc8,_0x4eebc8-0x173);}const _0x496b5e=new AbortController(),_0x357149=setTimeout(()=>_0x496b5e[_0x1c6a79(-0x114,-0x204,-0x21d,-0x131)](new Error(_0x1c6a79(0xb0,0x101,0x149,0x1b8))),_0x3b7640),_0x1d9fef=()=>_0x496b5e[_0x3b2d83(0x7f,-0x77,-0x4c,0x188)](_0x2b534a[_0x1c6a79(0x11a,0x4d,0x84,0x1bf)]);return _0x2b534a[_0x3b2d83(0xbe,0x1a1,_0x8702f1._0x164b62,-_0x8702f1._0x1e4095)]?_0x496b5e['abort'](_0x2b534a[_0x3b2d83(0x2ad,0x3d3,0x289,0x270)]):_0x2b534a[_0x1c6a79(-_0x8702f1._0x2a37cd,-0x1f7,-0xee,-_0x8702f1._0x9d7d07)](_0x3b2d83(_0x8702f1._0x58fbde,_0x8702f1._0x2ea815,_0x8702f1._0xeac11d,-_0x8702f1._0x163160),_0x1d9fef,{'once':!![]}),{'signal':_0x496b5e[_0x3b2d83(_0x8702f1._0x34ac68,-_0x8702f1._0x506dfb,_0x8702f1._0x34c4c3,_0x8702f1._0xad0af9)],'cleanup':()=>{const _0x2a13dc={_0x441a6e:0x119,_0x22c090:0x169};clearTimeout(_0x357149);function _0x4ac1e7(_0x11f493,_0x50d49a,_0x53657f,_0x18c1ae){return _0x1c6a79(_0x50d49a-0x4b,_0x50d49a-_0x2a13dc._0x441a6e,_0x53657f-_0x2a13dc._0x22c090,_0x53657f);}_0x2b534a[_0x4ac1e7(_0xe1e181._0x3c13b5,0x151,_0xe1e181._0x516c8c,_0xe1e181._0x4a5a65)]('abort',_0x1d9fef);}};}function createWebFetchTool(_0x15e1a7={}){const _0x44e337={_0x3eaf4b:0x128,_0x5852f6:0x133,_0x5ec765:0x15b,_0x28d6f0:0x385,_0x5c6cb1:0x150,_0x4c8d6a:0x195,_0x54c73e:0x155,_0x5a7b9e:0x16c,_0x2a9175:0x22,_0x41b405:0x39,_0x2793db:0x268,_0x3acea4:0x251,_0x42abcd:0x147,_0x507b35:0x19c,_0x5c65e8:0x1f,_0x5c97fb:0x150,_0x57a7c2:0x27f,_0x3ea776:0x1af,_0x3bdaff:0x1c8,_0x389d52:0x14b,_0x4df42c:0xe5,_0x5a5951:0xa1,_0x789c8d:0x10b},_0x34d078={_0x4f87e3:0x147,_0x3ffcba:0x3e,_0x204c6d:0x1a8,_0x3064d5:0x38,_0x31982b:0x4a,_0x228b1a:0xef,_0x55f1a5:0xa6,_0xf7e043:0x2be,_0x2371ea:0x3ff,_0x5ceba5:0x57,_0x10d2f8:0x1d,_0x53b004:0xbf,_0x4c61f0:0x7c,_0x497a9e:0x10b,_0x214893:0x27,_0x91cd94:0x124,_0x4f4cfd:0x431,_0x182b82:0x475,_0x307c9d:0x453,_0x580a04:0x3b3,_0x3b8d19:0x10a,_0x3b5f8c:0x209,_0x2fde3a:0x152,_0x49e014:0x3a3,_0x32d5c5:0x33b,_0x591780:0x4d2,_0x281819:0x454,_0xe8bb5c:0x383,_0x3e78f1:0x470,_0xa8dcf6:0x3e5,_0x596e8f:0x3ee,_0x5ca006:0x1bb,_0x5d61c5:0x2ba,_0x1831e5:0x32c,_0xbf7e4b:0x9e,_0x3603e4:0x1be,_0x415e79:0x3f,_0x475703:0xd3,_0x595236:0x593,_0x4918d1:0x491,_0x5276ca:0x522,_0x3733c5:0x4f6,_0x316724:0x456,_0x4dbf45:0x463,_0x4fe743:0x390,_0x4bf6ac:0x4fb,_0x5bf410:0x3f8,_0x150419:0x2a5,_0x4ec515:0x51},_0x35ffb2={_0x5c7e5c:0x5d7},_0x8dd3b3={_0x5e872c:0x5d8},_0x4b4622={_0x1e1937:0xd2,_0xbbc9f6:0x717},_0x531ecf=_0x15e1a7['name']??_0x3ce34f(-0x1fa,-0x123,-_0x44e337._0x3eaf4b,-_0x44e337._0x5852f6);function _0x3ce34f(_0x4af68b,_0x120330,_0x33a471,_0x2e5b96){return _0x37c1da(_0x4af68b-_0x4b4622._0x1e1937,_0x120330-0x79,_0x33a471,_0x4af68b- -_0x4b4622._0xbbc9f6);}const _0x38a57a=_0x15e1a7[_0x383340(_0x44e337._0x5ec765,-0xc3,0x25,0x3)]??DEFAULT_TIMEOUT_MS2;function _0x383340(_0x84f45,_0x261722,_0x18cd67,_0x370f13){return _0x37c1da(_0x84f45-0x1af,_0x261722-0x1cb,_0x261722,_0x18cd67- -_0x8dd3b3._0x5e872c);}const _0xea5aae=new _0x194c62({'headingStyle':_0x3ce34f(-0x2a1,-0x1f5,-_0x44e337._0x28d6f0,-0x243),'codeBlockStyle':'fenced','bulletListMarker':'-'});return _0xea5aae[_0x3ce34f(-0x1bd,-0x24a,-0xc3,-_0x44e337._0x5c6cb1)]([_0x3ce34f(-_0x44e337._0x4c8d6a,-0x84,-_0x44e337._0x54c73e,-0x155),'style',_0x3ce34f(-0x2b0,-0x231,-0x1e9,-0x1e6),_0x383340(_0x44e337._0x5a7b9e,-0x29,_0x44e337._0x2a9175,-0x9c),_0x383340(0x167,-0x82,_0x44e337._0x41b405,0xd6),_0x3ce34f(-_0x44e337._0x2793db,-_0x44e337._0x3acea4,-_0x44e337._0x42abcd,-_0x44e337._0x507b35),_0x383340(-_0x44e337._0x5c65e8,-0x277,-_0x44e337._0x5c97fb,-0x1bc),_0x3ce34f(-_0x44e337._0x57a7c2,-0x1c6,-0x1b3,-_0x44e337._0x3ea776)]),defineTool({'name':_0x531ecf,'description':_0x3ce34f(-_0x44e337._0x3bdaff,-_0x44e337._0x389d52,-_0x44e337._0x4df42c,-0x204),'inputSchema':{'type':'object','properties':{'description':{'type':'string'},'url':{'type':_0x383340(-0x113,-_0x44e337._0x5a5951,-_0x44e337._0x789c8d,-0x1f6)}},'required':[_0x383340(-0x50,-0x80,-0x14c,-0x1a6)]},async *'execute'(_0x587477,_0x2ed086){const _0x20cd72={_0x30929e:0x3c,_0x3f2c9e:0x140},_0x5b2741=assertFetchableUrl(_0x587477[_0x11f729(-0x61,-_0x34d078._0x4f87e3,-_0x34d078._0x3ffcba,-_0x34d078._0x204c6d)])[_0x11f729(-_0x34d078._0x3064d5,_0x34d078._0x31982b,_0x34d078._0x228b1a,_0x34d078._0x55f1a5)]();if(_0x2ed086[_0x472e5b(0x3a9,_0x34d078._0xf7e043,_0x34d078._0x2371ea,0x3d4)][_0x11f729(-_0x34d078._0x5ceba5,0x70,0xa7,-0x10d)])throw new ToolExecutionError(_0x11f729(_0x34d078._0x10d2f8,_0x34d078._0x53b004,_0x34d078._0x4c61f0,_0x34d078._0x497a9e),{'url':_0x5b2741});const _0x5918d4=createTimeoutSignal(_0x2ed086[_0x11f729(_0x34d078._0x214893,-0xee,-_0x34d078._0x91cd94,0x26)],_0x38a57a);let _0x2b8f50='';function _0x11f729(_0x3686fb,_0x58309c,_0x4425a6,_0x4010fc){return _0x3ce34f(_0x3686fb-0x22a,_0x58309c-_0x20cd72._0x30929e,_0x4010fc,_0x4010fc-_0x20cd72._0x3f2c9e);}let _0xe290d4=0x0,_0x144705;try{const _0x53dece=await fetch(_0x5b2741,{'headers':{'User-Agent':USER_AGENT},'signal':_0x5918d4['signal']});if(!_0x53dece['ok'])throw new ToolExecutionError(_0x11f729(-0x8e,-0x19e,-0x15a,-0x98)+_0x53dece[_0x472e5b(_0x34d078._0x4f4cfd,0x562,_0x34d078._0x182b82,_0x34d078._0x307c9d)]+'\x20'+_0x53dece[_0x472e5b(0x3bf,0x344,0x42a,_0x34d078._0x580a04)],{'url':_0x5b2741,'statusCode':_0x53dece['status']});_0x2b8f50=_0x53dece['headers']['get'](_0x11f729(_0x34d078._0x3b8d19,_0x34d078._0x3b5f8c,0x105,_0x34d078._0x2fde3a))??'',_0xe290d4=_0x53dece[_0x472e5b(_0x34d078._0x49e014,_0x34d078._0x32d5c5,_0x34d078._0x591780,0x453)],_0x144705=await _0x53dece[_0x472e5b(_0x34d078._0x281819,0x30f,0x4ff,0x3ba)]();}catch(_0x5d1c05){if(_0x5d1c05 instanceof ToolExecutionError)throw _0x5d1c05;const _0x1532fb=_0x5d1c05 instanceof Error?_0x5d1c05[_0x472e5b(_0x34d078._0xe8bb5c,_0x34d078._0x3e78f1,_0x34d078._0xa8dcf6,_0x34d078._0x596e8f)]:String(_0x5d1c05);throw new ToolExecutionError(_0x1532fb,{'url':_0x5b2741});}finally{_0x5918d4['cleanup']();}const _0x3738e6=new Date()['toISOString']();let _0x3c6ff2,_0xd2d967;function _0x472e5b(_0x170a75,_0x45e794,_0x52cacf,_0x2aedbd){return _0x3ce34f(_0x2aedbd-_0x35ffb2._0x5c7e5c,_0x45e794-0x97,_0x45e794,_0x2aedbd-0x12d);}if(_0x2b8f50[_0x472e5b(_0x34d078._0xe8bb5c,_0x34d078._0x5ca006,0x2f0,_0x34d078._0x5d61c5)]('application/json'))_0x3c6ff2='```json\x0a'+_0x144705+_0x472e5b(_0x34d078._0x1831e5,0x58d,0x333,0x451),_0xd2d967=_0x11f729(-0xf6,-_0x34d078._0xbf7e4b,-0x73,-0x32);else _0x2b8f50[_0x11f729(-0xf3,-_0x34d078._0x3603e4,_0x34d078._0x415e79,-_0x34d078._0x475703)](_0x472e5b(_0x34d078._0x595236,_0x34d078._0x4918d1,_0x34d078._0x5276ca,_0x34d078._0x3733c5))?(_0x3c6ff2=_0xea5aae[_0x472e5b(_0x34d078._0x316724,0x2f5,_0x34d078._0x4dbf45,_0x34d078._0x4fe743)](_0x144705),_0xd2d967='markdown'):(_0x3c6ff2=_0x144705,_0xd2d967=_0x472e5b(_0x34d078._0x4bf6ac,_0x34d078._0x5bf410,_0x34d078._0x150419,0x3ba));return yield createToolOutput(_0x3c6ff2,{'url':_0x5b2741,'contentType':_0x2b8f50,'statusCode':_0xe290d4,'format':_0xd2d967,'size':_0x144705[_0x11f729(0x43,0xa8,-0x3a,_0x34d078._0x4ec515)],'fetchedAt':_0x3738e6}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2='Mozilla/5.0\x20(Windows\x20NT\x2010.0;\x20Win64;\x20x64)\x20AppleWebKit/537.36\x20Chrome/123.0.0.0\x20Safari/537.36\x20NuvinBot/1.0';function normalizeUrl(_0x11a773){const _0x16d453={_0x3f5d9d:0x4be,_0x3d5454:0x35d,_0x1e822d:0x5e9,_0xd20ca7:0x797,_0x3b91e0:0x6c8,_0x479c25:0x69c,_0x16430b:0x754,_0x114d72:0x57c,_0x186dea:0x5af,_0x334638:0x535,_0x4553ea:0x67a,_0x124591:0x6e3,_0x3801a8:0x733,_0x1fcd3c:0x489,_0x4ec6d5:0x6bb,_0x44b1e8:0x517,_0x3803dc:0x4a6,_0x448316:0x521,_0x52cc69:0x575,_0x2febb6:0x393,_0x23a1a6:0x372,_0x2ace21:0x44b},_0xdc4c77={_0x293244:0xc8,_0x31f998:0x42};function _0x7ce55e(_0x5b78be,_0x33330a,_0x120217,_0x466d2e){return _0x38d42b(_0x5b78be-_0xdc4c77._0x293244,_0x120217-0x4d8,_0x466d2e,_0x466d2e-_0xdc4c77._0x31f998);}function _0x156e25(_0x26df24,_0x4dfc04,_0x419867,_0x181f01){return _0x38d42b(_0x26df24-0x1ca,_0x419867-0x308,_0x4dfc04,_0x181f01-0x123);}try{const _0x392e3a=new URL(_0x11a773);for(const _0x58b384 of[_0x7ce55e(0x5c1,_0x16d453._0x3f5d9d,0x495,_0x16d453._0x3d5454),_0x7ce55e(0x6e5,0x4cd,_0x16d453._0x1e822d,0x72e),_0x7ce55e(0x669,_0x16d453._0xd20ca7,_0x16d453._0x3b91e0,0x57f),_0x7ce55e(_0x16d453._0x479c25,0x650,0x69c,_0x16d453._0x16430b),_0x7ce55e(_0x16d453._0x114d72,_0x16d453._0x186dea,0x61c,_0x16d453._0x334638),'gclid',_0x7ce55e(_0x16d453._0x4553ea,0x5bd,_0x16d453._0x124591,_0x16d453._0x3801a8),_0x7ce55e(0x666,_0x16d453._0xd20ca7,0x658,0x595),_0x7ce55e(0x55d,_0x16d453._0x1fcd3c,0x5b5,_0x16d453._0x4ec6d5)]){_0x392e3a[_0x7ce55e(_0x16d453._0x44b1e8,_0x16d453._0x3803dc,0x516,0x5d7)][_0x156e25(0x5ee,_0x16d453._0x448316,0x4e0,_0x16d453._0x52cc69)](_0x58b384);}return _0x392e3a[_0x156e25(_0x16d453._0x2febb6,0x2b4,_0x16d453._0x23a1a6,_0x16d453._0x2ace21)]();}catch{return _0x11a773;}}function cseDateRestrict(_0x790eef){const _0x166e29={_0x25bd6e:0x58c,_0x51d7a9:0x59e,_0x4fbd34:0x4d4,_0x1d3f3c:0x6fb,_0x480b82:0x6d4,_0x4cc3b9:0x592,_0x565a44:0x5c8},_0x10d3db={_0x187459:0x54,_0x550e31:0x426,_0x2fdb46:0x7b};if(_0x790eef<=0x0)return void 0x0;function _0x202ca9(_0x58f1bf,_0x23668b,_0x78d84a,_0x3b2b0c){return _0x38d42b(_0x58f1bf-_0x10d3db._0x187459,_0x58f1bf-_0x10d3db._0x550e31,_0x23668b,_0x3b2b0c-_0x10d3db._0x2fdb46);}if(_0x790eef<=0x1e)return'd'+Math[_0x202ca9(_0x166e29._0x25bd6e,_0x166e29._0x51d7a9,0x446,_0x166e29._0x4fbd34)](0x1,Math[_0x202ca9(0x607,0x5a5,_0x166e29._0x1d3f3c,_0x166e29._0x480b82)](_0x790eef));if(_0x790eef<=0x16d)return'm'+Math[_0x202ca9(0x659,_0x166e29._0x4cc3b9,0x5ff,_0x166e29._0x565a44)](_0x790eef/0x1e);function _0x220f91(_0x15da27,_0x319967,_0x290ff1,_0x58be68){return _0x38d42b(_0x15da27-0xca,_0x290ff1- -0xaf,_0x319967,_0x58be68-0x1b6);}return'y'+Math['ceil'](_0x790eef/0x16d);}function addSiteFilters(_0x5725c8,_0x478450){const _0x191e45={_0x3d9ce6:0x47c,_0x26916e:0x7b2,_0x48a581:0x5c8,_0x987d7e:0x57c,_0x4ea136:0x539,_0x21b25a:0x580,_0x3c7a97:0x6c2,_0x3fd996:0x4a4,_0x1d9e8a:0x595,_0x487fc9:0x548,_0x482f34:0x4fc},_0x1e8df1={_0x1784ea:0xf5},_0x4bcb07={_0x33471b:0x18,_0xde8a74:0x4c6,_0x2cf035:0x181};if(_0x478450[_0x5994a8(_0x191e45._0x3d9ce6,0x4b2,0x4e4,0x3d4)]===0x0)return _0x5725c8[_0x5b0e0b(0x774,0x677,0x596,_0x191e45._0x26916e)]();function _0x5b0e0b(_0x1adb82,_0x2e1c99,_0x17754c,_0x2271cd){return _0x38d42b(_0x1adb82-_0x4bcb07._0x33471b,_0x2e1c99-_0x4bcb07._0xde8a74,_0x1adb82,_0x2271cd-_0x4bcb07._0x2cf035);}function _0x5994a8(_0x1c20e2,_0x168bfb,_0x246caf,_0x289c5b){return _0x38d42b(_0x1c20e2-0x118,_0x1c20e2-0x397,_0x289c5b,_0x289c5b-_0x1e8df1._0x1784ea);}return(_0x5725c8+'\x20('+_0x478450[_0x5994a8(_0x191e45._0x48a581,_0x191e45._0x987d7e,0x4fd,_0x191e45._0x4ea136)](_0x1406a7=>_0x5994a8(0x4f6,0x5b8,0x564,0x5fa)+_0x1406a7)[_0x5994a8(_0x191e45._0x21b25a,0x4e4,0x687,_0x191e45._0x3c7a97)](_0x5b0e0b(_0x191e45._0x3fd996,_0x191e45._0x1d9e8a,0x48e,0x459))+')')[_0x5994a8(_0x191e45._0x487fc9,0x56d,_0x191e45._0x482f34,0x561)]();}function normalizeType(_0x56c786){const _0x4e3f74={_0x209aa6:0x2e8,_0x4ee603:0x3dd,_0x2188be:0x2c3,_0x49ef45:0x500,_0x3b79f5:0x3ea,_0xf51530:0x4a6,_0x4d1385:0x5e9},_0x12a378={_0x28f671:0x191,_0x1e2359:0x470},_0x4fe8f2={_0x1d0482:0xfe,_0x4875d4:0xbe};function _0x291b54(_0x445fc8,_0x88159e,_0x10cc7c,_0x77510f){return _0x38d42b(_0x445fc8-_0x4fe8f2._0x1d0482,_0x88159e-0x3a7,_0x10cc7c,_0x77510f-_0x4fe8f2._0x4875d4);}function _0x205436(_0x48e4a0,_0x5974e4,_0x3ad935,_0x2525c2){return _0x38d42b(_0x48e4a0-_0x12a378._0x28f671,_0x2525c2-_0x12a378._0x1e2359,_0x3ad935,_0x2525c2-0x7b);}return _0x56c786===_0x291b54(_0x4e3f74._0x209aa6,_0x4e3f74._0x4ee603,_0x4e3f74._0x2188be,_0x4e3f74._0x49ef45)?_0x205436(0x390,0x5b2,_0x4e3f74._0x3b79f5,_0x4e3f74._0xf51530):_0x291b54(0x596,_0x4e3f74._0x4d1385,0x71a,0x69a);}async function fetchJson(_0x20d663,_0x44abac,_0x2bfad0){const _0x4c12a9={_0x26da70:0x379,_0x21c257:0x345,_0x50c866:0x3d4,_0x362e81:0x461,_0x4da1f4:0x50f,_0x27eacb:0x5da,_0x422228:0x647,_0x59f244:0x393,_0x362c3c:0x567,_0xad785d:0x476,_0x178897:0x552,_0x2600d3:0x44c,_0x2eb830:0x562,_0xa82be5:0x56e,_0x23e70b:0x4c5,_0x135c8d:0x47c,_0x3600b2:0x5ee,_0x39f268:0x68b,_0x3dba62:0x7ac,_0x3e41a7:0x59b,_0x10e6c9:0x57a,_0x183e89:0x521,_0x4c1c81:0x6f5,_0x2b9fb2:0x4f3,_0xd35bed:0x689,_0x26f16d:0x28f,_0x570d39:0x286,_0x1d7e4d:0x326,_0x54e3c1:0x267},_0x2c8fe5={_0x5674f7:0x61,_0x133e9f:0x119},_0x290e1a={_0x291b3b:0x149,_0x15455f:0x37a,_0x4fac1e:0xa5};function _0x36991d(_0x2d2068,_0x266647,_0x47fc0a,_0x3ed119){return _0x38d42b(_0x2d2068-_0x290e1a._0x291b3b,_0x2d2068-_0x290e1a._0x15455f,_0x266647,_0x3ed119-_0x290e1a._0x4fac1e);}const _0x2e374f=await fetch(_0x20d663,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x36991d(0x38a,_0x4c12a9._0x26da70,_0x4c12a9._0x21c257,_0x4c12a9._0x50c866),..._0x2bfad0?.[_0x1aeb56(_0x4c12a9._0x362e81,0x4a2,_0x4c12a9._0x4da1f4,_0x4c12a9._0x27eacb)]},'signal':_0x44abac,..._0x2bfad0});if(!_0x2e374f['ok']){let _0x13a5a4,_0xd56846;try{_0x13a5a4=await _0x2e374f[_0x1aeb56(_0x4c12a9._0x422228,0x546,0x531,0x667)]();const _0x5c42ed=JSON[_0x36991d(0x3ba,_0x4c12a9._0x59f244,0x481,0x3a3)](_0x13a5a4),_0x19ca60=typeof _0x5c42ed[_0x36991d(_0x4c12a9._0x362c3c,0x5a9,_0x4c12a9._0xad785d,0x6a5)]==='object'?_0x5c42ed[_0x36991d(0x567,_0x4c12a9._0x178897,_0x4c12a9._0x2600d3,_0x4c12a9._0x2eb830)][_0x36991d(_0x4c12a9._0xa82be5,_0x4c12a9._0x23e70b,0x501,_0x4c12a9._0x135c8d)]:void 0x0;_0xd56846=_0x5c42ed[_0x1aeb56(_0x4c12a9._0x3600b2,_0x4c12a9._0x39f268,0x691,_0x4c12a9._0x3dba62)]?.[_0x1aeb56(_0x4c12a9._0x3e41a7,_0x4c12a9._0x10e6c9,_0x4c12a9._0x183e89,0x6a8)]??_0x5c42ed[_0x1aeb56(0x758,0x68b,0x61d,_0x4c12a9._0x4c1c81)]?.[_0x36991d(0x412,0x398,_0x4c12a9._0x2b9fb2,0x521)]?.[0x0]?.['message']??_0x19ca60;}catch{}const _0x41039f=_0xd56846?'HTTP\x20'+_0x2e374f[_0x1aeb56(_0x4c12a9._0xd35bed,0x5df,0x64c,0x494)]+':\x20'+_0xd56846:_0x36991d(0x38e,_0x4c12a9._0x26f16d,_0x4c12a9._0x570d39,0x48f)+_0x2e374f['status']+'\x20'+_0x2e374f['statusText'];throw new ToolExecutionError(_0x41039f,{'statusCode':_0x2e374f['status'],..._0x13a5a4?{'body':_0x13a5a4}:{}});}function _0x1aeb56(_0x4b4d76,_0x1c42fe,_0x4a4d60,_0x10d51c){return _0x38d42b(_0x4b4d76-_0x2c8fe5._0x5674f7,_0x1c42fe-0x497,_0x4b4d76,_0x10d51c-_0x2c8fe5._0x133e9f);}return await _0x2e374f[_0x36991d(_0x4c12a9._0x1d7e4d,0x34e,_0x4c12a9._0x54e3c1,0x3dd)]();}async function hydrateResults(_0x46e2a1,_0x4f9ca8,_0x257549){const _0x342fb8={_0x2b470f:0x6d2,_0x3a6f3b:0x5dc,_0x8ce1a6:0x582,_0x2a38e2:0x567,_0x4f088a:0x45c,_0x97504c:0x566,_0x1da5e0:0x47c,_0xeec012:0x66c,_0x1c543a:0x58d,_0x131f94:0x47a},_0x21b33d={_0x1fb9db:0x35c},_0x1c50b9={_0x19e8c7:0x185},_0x42c43e={_0x25c9fc:0x6a,_0x50961a:0x7b,_0x561429:0x13c,_0x53f5cc:0x107,_0x4214a4:0x55,_0x56f0f2:0xd0,_0xa9ea93:0x1eb,_0x426430:0x16b,_0x1d45a6:0x242,_0xf939d1:0x24e,_0x2a620d:0xf1,_0x286310:0xae,_0x4b1ecd:0x267,_0x31f730:0xce,_0x10ae86:0xeb,_0x75c28e:0x2a3,_0xee2b07:0x19d,_0x518e21:0x5c,_0x3cf853:0x84,_0x4c1e4c:0xc3,_0x111eae:0x262,_0x3d9ee1:0x2d,_0x2a0176:0x49,_0x2a9af6:0x14e,_0x4bef7c:0x12e,_0x1bcc04:0x63,_0x58c76c:0x9,_0x5be20e:0x1d2,_0x2c88c8:0x182,_0x2d57e5:0x1a,_0x21571b:0x10c,_0x214192:0x49,_0x37ec95:0x15a,_0x3f92d1:0x136,_0x2c32d9:0x210,_0x4cbcf3:0x5e,_0x2b22a8:0x1ad,_0x50ae99:0x255,_0x2fba48:0x23b,_0xd501c2:0x74,_0x1837ce:0x2e,_0x476394:0x9e,_0x3ef2cd:0xb0,_0x1e6f80:0x31,_0x42c87b:0x5b,_0x568e34:0xc0,_0x3bb2f6:0x8c,_0x5eca74:0x17e,_0x4e6711:0x2fe,_0x6688b1:0x1b3},_0x17d058=await Promise[_0x1588eb(_0x342fb8._0x2b470f,_0x342fb8._0x3a6f3b,_0x342fb8._0x8ce1a6,0x5ad)](_0x46e2a1[_0x2aa521(0x566,0x545,_0x342fb8._0x2a38e2,_0x342fb8._0x4f088a)](0x0,0xa)['map'](async _0x6a21d1=>{const _0x113125={_0x1290bd:0x21},_0x146986={_0x5e5d65:0x7f};function _0x52278e(_0x15c142,_0x2be924,_0x2abc2c,_0x4ce0fb){return _0x2aa521(_0x15c142- -0x40b,_0x4ce0fb,_0x2abc2c-0xfe,_0x4ce0fb-_0x146986._0x5e5d65);}function _0x4435d4(_0x2df7e2,_0x506441,_0x412eca,_0x46000e){return _0x1588eb(_0x412eca,_0x506441- -0x5ba,_0x412eca-_0x113125._0x1290bd,_0x46000e-0x148);}try{const _0x1c5ed5=await fetch(_0x6a21d1[_0x52278e(-0x6e,_0x42c43e._0x25c9fc,-0xbf,-_0x42c43e._0x50961a)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x4f9ca8,'Accept':_0x52278e(_0x42c43e._0x561429,_0x42c43e._0x53f5cc,0x15,_0x42c43e._0x4214a4)},'signal':_0x257549});if(!_0x1c5ed5['ok'])return _0x6a21d1;const _0x22a32e=await _0x1c5ed5[_0x4435d4(-0xbd,-0x15e,-_0x42c43e._0x56f0f2,-_0x42c43e._0xa9ea93)](),_0x31151d=load(_0x22a32e),_0x4f551a=_0x31151d(_0x4435d4(-_0x42c43e._0x426430,-0x195,-_0x42c43e._0x1d45a6,-_0x42c43e._0xf939d1))[_0x4435d4(_0x42c43e._0x2a620d,-0x2d,_0x42c43e._0x286310,0xc7)]('content')||_0x31151d(_0x52278e(0x16b,0xd8,_0x42c43e._0x4b1ecd,_0x42c43e._0x31f730))[_0x52278e(-_0x42c43e._0x10ae86,-0x6d,-0x105,0x1c)]()[_0x4435d4(-_0x42c43e._0x75c28e,-0x15e,-0x1df,-0xa7)]()[_0x4435d4(-_0x42c43e._0xee2b07,-_0x42c43e._0x518e21,_0x42c43e._0x3cf853,0x7)](),_0x13fa6f=_0x31151d(_0x4435d4(-0x38,-0x141,-_0x42c43e._0x4c1e4c,-_0x42c43e._0x111eae))[_0x4435d4(0x25,-_0x42c43e._0x3d9ee1,-0xbe,-0x169)](_0x52278e(_0x42c43e._0x2a0176,_0x42c43e._0x2a620d,_0x42c43e._0x2a9af6,_0x42c43e._0x4bef7c))||_0x31151d(_0x52278e(_0x42c43e._0x1bcc04,-0x2d,0x163,-0x3b))['attr'](_0x4435d4(-_0x42c43e._0x58c76c,-0x115,-_0x42c43e._0x5be20e,-_0x42c43e._0x2c88c8))||_0x6a21d1[_0x4435d4(-0x103,0xa,0x11c,0x91)],_0x70cfc0=_0x31151d(_0x52278e(-0x99,-0x126,-0x1df,_0x42c43e._0x2d57e5))[_0x52278e(0x131,0x17d,0x185,_0x42c43e._0x21571b)](_0x52278e(_0x42c43e._0x214192,_0x42c43e._0x37ec95,_0x42c43e._0x3f92d1,0x47))||_0x31151d(_0x52278e(-0xfc,-0x22a,-_0x42c43e._0x2c32d9,-_0x42c43e._0x4cbcf3))[_0x52278e(0x131,0xf5,_0x42c43e._0x2b22a8,0x265)](_0x4435d4(-0x257,-_0x42c43e._0x50ae99,-0x2b5,-_0x42c43e._0x2fba48))||_0x6a21d1[_0x4435d4(0x64,-_0x42c43e._0xd501c2,_0x42c43e._0x1837ce,-_0x42c43e._0x476394)],_0x1adcd0=_0x31151d(_0x52278e(-0x7c,_0x42c43e._0x3ef2cd,_0x42c43e._0x1e6f80,-_0x42c43e._0x42c87b))[_0x4435d4(_0x42c43e._0x568e34,-0x2d,0xdb,-0x105)](_0x4435d4(-_0x42c43e._0x3bb2f6,-0xbb,-0x114,-0x28));return{..._0x6a21d1,'title':_0x4f551a||_0x6a21d1['title'],'snippet':_0x13fa6f,'url':_0x1adcd0?normalizeUrl(new URL(_0x1adcd0,_0x6a21d1[_0x4435d4(-_0x42c43e._0x5eca74,-0x1cc,-0x27b,-0x1e1)])['toString']()):_0x6a21d1[_0x4435d4(-_0x42c43e._0x4e6711,-0x1cc,-_0x42c43e._0x6688b1,-0x19d)],'publishedAt':_0x70cfc0};}catch{return _0x6a21d1;}}));function _0x1588eb(_0x2bfcca,_0x382f7f,_0x240d0b,_0x1b6ba2){return _0x38d42b(_0x2bfcca-0x150,_0x382f7f-0x3ad,_0x2bfcca,_0x1b6ba2-_0x1c50b9._0x19e8c7);}const _0x16f330=new Map(_0x46e2a1[_0x2aa521(_0x342fb8._0x97504c,0x5a8,_0x342fb8._0x1da5e0,_0x342fb8._0xeec012)](0x0,0xa)[_0x2aa521(_0x342fb8._0x1c543a,0x6bd,_0x342fb8._0x131f94,0x510)]((_0x5c429b,_0x43092e)=>[_0x5c429b['url'],_0x17d058[_0x43092e]]));function _0x2aa521(_0x1bf414,_0x15fd92,_0x5d6502,_0x363d43){return _0x38d42b(_0x1bf414-0x161,_0x1bf414-_0x21b33d._0x1fb9db,_0x15fd92,_0x363d43-0xb5);}return _0x46e2a1['map'](_0x4e0137=>_0x16f330[_0x1588eb(0x476,0x4aa,0x56b,0x3c1)](_0x4e0137[_0x2aa521(0x39d,0x30d,0x353,0x2e4)])??_0x4e0137);}function formatResults(_0x160ddc){const _0x5965d7={_0x114805:0x15f,_0x566f17:0x5f,_0xc0f632:0x4b,_0x609fc5:0x47,_0x1d3239:0x169},_0xd3ceb={_0x31a7f9:0x4d6,_0x3ab8a0:0x3c0,_0x1503f5:0x4fb,_0xcc6241:0x582,_0x293292:0x5f6,_0x2ae159:0x4ce,_0x1b1d79:0x3a9,_0xf9d31e:0x565,_0x1c1925:0x581,_0x423820:0x4a8,_0x46e9a4:0x398,_0x373091:0x4c7,_0x14bd05:0x656,_0x1fcd40:0x57f,_0x3fb70f:0x4cf,_0x11d330:0x626,_0x72fa30:0x507,_0x149b58:0x2c4,_0x2820d4:0x3ce,_0x2ec53a:0x32f,_0x1e0925:0x440,_0x42b228:0x5db,_0x47cfb7:0x551,_0x448183:0x61b},_0x2b6ccd={_0x24ebd7:0x102},_0x3b2a44={_0x3d43e2:0xb8,_0x280860:0x17c};function _0x4937ef(_0x5a82a8,_0x49e4d0,_0x171082,_0x3fcdcf){return _0x37c1da(_0x5a82a8-_0x3b2a44._0x3d43e2,_0x49e4d0-_0x3b2a44._0x280860,_0x49e4d0,_0x3fcdcf- -0x1ed);}if(_0x160ddc[_0x3f70c7(-_0x5965d7._0x114805,-_0x5965d7._0x566f17,-_0x5965d7._0xc0f632,-_0x5965d7._0x609fc5)]===0x0)return'No\x20results\x20found.';function _0x3f70c7(_0x2bcfaf,_0x5a3dd9,_0x193e8f,_0x17feae){return _0x38d42b(_0x2bcfaf-0x135,_0x193e8f- -0x130,_0x17feae,_0x17feae-_0x2b6ccd._0x24ebd7);}return _0x160ddc[_0x3f70c7(0xcf,-0x12,0x101,-0x4b)](_0x3b7b62=>{const _0x5849a5={_0x24f79c:0x189},_0x403ad6={_0x3b4c3c:0x180,_0x3059e0:0x14f,_0x4b3e78:0x10a};function _0x36d7a7(_0x4b6215,_0x31a81b,_0x34b709,_0x2c6411){return _0x4937ef(_0x4b6215-_0x403ad6._0x3b4c3c,_0x31a81b,_0x34b709-_0x403ad6._0x3059e0,_0x34b709-_0x403ad6._0x4b3e78);}const _0x1227a0=[_0x3b7b62[_0x18f6d0(_0xd3ceb._0x31a7f9,0x48c,0x3f3,0x5b5)][_0x18f6d0(_0xd3ceb._0x3ab8a0,_0xd3ceb._0x1503f5,0x63e,0x4ef)]+'.\x20'+_0x3b7b62[_0x36d7a7(0x550,0x480,_0xd3ceb._0xcc6241,0x69a)],_0x3b7b62[_0x18f6d0(_0xd3ceb._0x293292,_0xd3ceb._0x2ae159,_0xd3ceb._0x1b1d79,0x41e)]];function _0x18f6d0(_0x311b1d,_0x35f500,_0x1cca1f,_0x2968dc){return _0x3f70c7(_0x311b1d-0x1d5,_0x35f500-_0x5849a5._0x24f79c,_0x35f500-0x5bd,_0x311b1d);}if(_0x3b7b62[_0x36d7a7(_0xd3ceb._0xf9d31e,_0xd3ceb._0x1c1925,0x57f,_0xd3ceb._0x423820)])_0x1227a0[_0x18f6d0(_0xd3ceb._0x46e9a4,0x43b,0x4c9,_0xd3ceb._0x373091)](_0x3b7b62[_0x36d7a7(_0xd3ceb._0x14bd05,0x6c2,_0xd3ceb._0x1fcd40,_0xd3ceb._0x3fb70f)]);if(_0x3b7b62[_0x18f6d0(0x6f4,_0xd3ceb._0x11d330,_0xd3ceb._0x72fa30,0x66b)])_0x1227a0['push'](_0x36d7a7(_0xd3ceb._0x149b58,_0xd3ceb._0x2820d4,_0xd3ceb._0x2ec53a,_0xd3ceb._0x1e0925)+_0x3b7b62[_0x36d7a7(0x5f0,0x516,0x501,0x49f)]);return _0x1227a0[_0x36d7a7(0x692,_0xd3ceb._0x42b228,_0xd3ceb._0x47cfb7,_0xd3ceb._0x448183)]('\x0a');})[_0x3f70c7(_0x5965d7._0x1d3239,0x8e,0xb9,0xdc)]('\x0a\x0a');}async function searchOllama(_0x494b10,_0x5b9d3b,_0x545ecd){const _0x5f2c3c={_0x1c7e2b:0x6d,_0x546862:0x150,_0x2b8ed4:0xba,_0x415881:0x131,_0x17308c:0x218,_0x8de84:0x65a,_0x2cb027:0x5e2,_0x59a5bc:0x124,_0x4fe434:0x33,_0x3c3d87:0x138,_0x1324b9:0x1cd,_0x478bf5:0x1d7,_0x33c8ce:0x549,_0xc9926f:0x4c2},_0x2b26b0={_0x4a0167:0x27a,_0x1669da:0xff,_0x2a73d8:0x208,_0x18c5ac:0x11d,_0x187b4e:0x190,_0x163d73:0x2d2,_0x4406bf:0x3b5,_0x23d0c9:0x343,_0x2a69e8:0x350,_0x468192:0x26b,_0x20b040:0x3de,_0x5e75cd:0x2aa,_0x83d2c:0x300},_0x54d6e4={_0x21cfa0:0x7d},_0x37a389={_0x150b3c:0xaf,_0x421d69:0x3f4},_0x365398={_0x168c92:0x94,_0x1db7f6:0x81};function _0x389960(_0x332df9,_0x3b5b78,_0x1250a2,_0x394539){return _0x38d42b(_0x332df9-0x18b,_0x3b5b78- -_0x365398._0x168c92,_0x332df9,_0x394539-_0x365398._0x1db7f6);}const _0x5d7ee8=Math['max'](0x1,Math[_0x389960(_0x5f2c3c._0x1c7e2b,-_0x5f2c3c._0x1c7e2b,-0x84,-0x134)](0xa,_0x5b9d3b[_0x389960(_0x5f2c3c._0x546862,_0x5f2c3c._0x2b8ed4,-0x2,0x14)])),_0x567d1e=addSiteFilters(_0x5b9d3b[_0x389960(0xb,_0x5f2c3c._0x415881,_0x5f2c3c._0x17308c,0x20c)],_0x5b9d3b[_0x1c74e5(0x6d0,0x5b0,_0x5f2c3c._0x8de84,0x6f4)]),_0x70db83=await fetchJson(_0x1c74e5(0x602,_0x5f2c3c._0x2cb027,0x63e,0x69f),_0x545ecd,{'method':_0x389960(0x102,0x3,0xaf,-_0x5f2c3c._0x59a5bc),'headers':{'Authorization':'Bearer\x20'+_0x494b10['apiKey']},'body':JSON['stringify']({'query':_0x567d1e,'max_results':_0x5d7ee8})}),_0x1e166d=_0x70db83[_0x389960(_0x5f2c3c._0x4fe434,0x107,0x126,0xd8)]??[];function _0x1c74e5(_0x57e4ee,_0x194b0c,_0x5d8bea,_0x2867a2){return _0x38d42b(_0x57e4ee-_0x37a389._0x150b3c,_0x194b0c-_0x37a389._0x421d69,_0x5d8bea,_0x2867a2-0x5a);}const _0x771629=_0x1e166d[_0x389960(0x1f8,0x19d,0x278,_0x5f2c3c._0x3c3d87)]((_0x2023a1,_0x226bc9)=>{const _0x578c7c={_0x3350f0:0xa,_0x140341:0x3d};function _0x44e71c(_0x3203e5,_0x25dee7,_0x54bb17,_0x20c530){return _0x389960(_0x20c530,_0x54bb17-_0x578c7c._0x3350f0,_0x54bb17-0xaa,_0x20c530-_0x578c7c._0x140341);}const _0x38e381=_0x2023a1['url']||'';let _0x124717;function _0x74cc63(_0x11a886,_0x3fcbea,_0x42a5d8,_0x448830){return _0x389960(_0x3fcbea,_0x448830-0x207,_0x42a5d8-_0x54d6e4._0x21cfa0,_0x448830-0x160);}try{_0x124717=new URL(_0x38e381)[_0x74cc63(_0x2b26b0._0x4a0167,0x2b1,_0x2b26b0._0x1669da,_0x2b26b0._0x2a73d8)];}catch{_0x124717=null;}return{'title':_0x2023a1[_0x44e71c(_0x2b26b0._0x18c5ac,0x76,_0x2b26b0._0x187b4e,_0x2b26b0._0x163d73)]||_0x74cc63(_0x2b26b0._0x4406bf,0x32c,0x18c,0x295),'url':normalizeUrl(_0x38e381),'snippet':_0x2023a1[_0x74cc63(_0x2b26b0._0x23d0c9,_0x2b26b0._0x2a69e8,_0x2b26b0._0x23d0c9,_0x2b26b0._0x468192)]??null,'displayUrl':_0x124717,'favicon':null,'publishedAt':null,'source':{'engine':_0x74cc63(_0x2b26b0._0x20b040,0x3ce,_0x2b26b0._0x5e75cd,_0x2b26b0._0x83d2c),'rank':_0x226bc9+0x1}};});return{'items':_0x771629[_0x389960(_0x5f2c3c._0x59a5bc,0x176,_0x5f2c3c._0x1324b9,_0x5f2c3c._0x478bf5)](0x0,_0x5d7ee8),'engine':_0x1c74e5(_0x5f2c3c._0x33c8ce,0x581,0x666,_0x5f2c3c._0xc9926f)};}async function searchTavily(_0xce7a0b,_0x4954ea,_0x402044){const _0x5c0e78={_0x1733ed:0x526,_0x49508d:0x358,_0x49c16e:0x2ce,_0x60dc96:0x372,_0x37e4d2:0x487,_0x550aae:0x3d9,_0x28117e:0x2ef,_0xe37d81:0x300,_0x340eec:0x27e,_0x1f2a8c:0x23f,_0x403a9c:0x3d8,_0x13baff:0x38e,_0x20cb4b:0x2eb,_0x398a95:0x114,_0xe01382:0xbf,_0x490cc4:0x185,_0x32ecc1:0x2e8,_0x1550f9:0x425,_0x4b4869:0x3a0,_0x323286:0x409,_0x58f216:0x370,_0x420511:0x416,_0x2ef72a:0x42e,_0x1f7d9f:0x296,_0x51a64b:0x345,_0xda5541:0x56f,_0x54bb2f:0x3fe,_0x16c47e:0x50b,_0x5d98ed:0x463,_0x7a32df:0x4b2},_0x3bb1f0={_0x48e46d:0x135,_0x5d177d:0x1cd,_0x4c390a:0x17b,_0x376a61:0x60,_0xf84966:0x1c1,_0x465e04:0x1b0,_0x44aaeb:0x3f8,_0x51cc27:0x235,_0x3e63ca:0x122,_0x5d3a90:0x209,_0x8ccee1:0x29b,_0x565b40:0x1e,_0xd6463f:0xcf,_0x595210:0x5f},_0x3247bc={_0x225ec6:0x10f,_0x419486:0x12a,_0x419a4f:0x3b},_0x460161={_0x124914:0x2c,_0xcd6429:0x1cd,_0x51f90d:0x1c0},_0x2c88a5=Math[_0x6ba49e(_0x5c0e78._0x1733ed,0x3a5,_0x5c0e78._0x49508d,0x3f1)](0x1,Math[_0x6ba49e(_0x5c0e78._0x49c16e,_0x5c0e78._0x60dc96,0x1a4,0x2b2)](0x14,_0x4954ea[_0x6ba49e(0x4fd,0x380,_0x5c0e78._0x37e4d2,_0x5c0e78._0x550aae)]));function _0x6ba49e(_0xee932a,_0x5f20fc,_0x370046,_0x37478a){return _0x37c1da(_0xee932a-_0x460161._0x124914,_0x5f20fc-_0x460161._0xcd6429,_0x5f20fc,_0x37478a- -_0x460161._0x51f90d);}const _0xc8d76b={'query':_0x4954ea[_0xaaa604(_0x5c0e78._0x28117e,_0x5c0e78._0xe37d81,_0x5c0e78._0x340eec,_0x5c0e78._0x1f2a8c)],'max_results':_0x2c88a5,'search_depth':_0xce7a0b[_0x6ba49e(_0x5c0e78._0x403a9c,_0x5c0e78._0x13baff,0x1ed,_0x5c0e78._0x20cb4b)]??_0xaaa604(_0x5c0e78._0x398a95,_0x5c0e78._0xe01382,_0x5c0e78._0x490cc4,0x73),'topic':_0xce7a0b[_0xaaa604(0x1ea,0x104,0xf8,0x2cd)]??_0xaaa604(_0x5c0e78._0x32ecc1,_0x5c0e78._0x1550f9,0x250,_0x5c0e78._0x4b4869)};if(_0x4954ea['domains'][_0x6ba49e(_0x5c0e78._0x323286,0x346,0x4b8,_0x5c0e78._0x58f216)]>0x0)_0xc8d76b['include_domains']=_0x4954ea[_0x6ba49e(0x3a9,_0x5c0e78._0x420511,_0x5c0e78._0x2ef72a,0x447)];function _0xaaa604(_0x3994e4,_0x4f2f80,_0x1c0386,_0x1b23bc){return _0x38d42b(_0x3994e4-_0x3247bc._0x225ec6,_0x3994e4-_0x3247bc._0x419486,_0x4f2f80,_0x1b23bc-_0x3247bc._0x419a4f);}const _0x22f225=await fetchJson('https://api.tavily.com/search',_0x402044,{'method':'POST','headers':{'Authorization':'Bearer\x20'+_0xce7a0b[_0x6ba49e(0x33c,_0x5c0e78._0x1f7d9f,_0x5c0e78._0x51a64b,0x2d2)],'Content-Type':'application/json'},'body':JSON[_0x6ba49e(0x545,_0x5c0e78._0xda5541,_0x5c0e78._0x54bb2f,0x43e)](_0xc8d76b)}),_0x5b4998=_0x22f225[_0x6ba49e(_0x5c0e78._0x16c47e,0x4c3,_0x5c0e78._0x5d98ed,0x426)]??[],_0x45a204=_0x5b4998[_0x6ba49e(_0x5c0e78._0x7a32df,0x4ad,0x435,0x4bc)]((_0xd4ad3e,_0x4563e1)=>{const _0x3ccc0f={_0x5e82af:0x16d},_0x43756e={_0x104540:0x2e6,_0x5aafa1:0x1e7};function _0x4c28cd(_0x47d48d,_0x42cb0a,_0x49bb08,_0x52b74c){return _0xaaa604(_0x49bb08- -_0x43756e._0x104540,_0x52b74c,_0x49bb08-_0x43756e._0x5aafa1,_0x52b74c-0xc7);}const _0x5066b6=_0xd4ad3e[_0x4c28cd(-_0x3bb1f0._0x48e46d,-_0x3bb1f0._0x5d177d,-_0x3bb1f0._0x4c390a,-_0x3bb1f0._0x376a61)]||'';function _0x47958b(_0x2002cc,_0x55a87f,_0x22a14d,_0x3d84a9){return _0x6ba49e(_0x2002cc-_0x3ccc0f._0x5e82af,_0x2002cc,_0x22a14d-0x184,_0x3d84a9- -0x1a4);}let _0x3b8580;try{_0x3b8580=new URL(_0x5066b6)[_0x47958b(0x25b,_0x3bb1f0._0xf84966,_0x3bb1f0._0x465e04,0x17c)];}catch{_0x3b8580=null;}return{'title':_0xd4ad3e[_0x47958b(0x399,_0x3bb1f0._0x44aaeb,_0x3bb1f0._0x51cc27,0x301)]||_0x47958b(_0x3bb1f0._0x3e63ca,0x30f,0x10b,_0x3bb1f0._0x5d3a90),'url':normalizeUrl(_0x5066b6),'snippet':_0xd4ad3e[_0x47958b(0x171,_0x3bb1f0._0x8ccee1,0x1c6,0x1df)]??null,'displayUrl':_0x3b8580,'favicon':null,'publishedAt':null,'source':{'engine':_0x4c28cd(_0x3bb1f0._0x565b40,-_0x3bb1f0._0xd6463f,-_0x3bb1f0._0x595210,-0x136),'rank':_0x4563e1+0x1}};});return{'items':_0x45a204['slice'](0x0,_0x2c88a5),'engine':'tavily'};}async function searchGoogleCse(_0x49ccc3,_0x6b323d,_0x12e47b){const _0x44f7a3={_0x4c9d1e:0x69a,_0x5b39b5:0x2ac,_0x5ab66a:0x322,_0xa3567e:0x4a7,_0xd96a16:0x2c8,_0x3286c5:0x74a,_0x21d988:0x263,_0x184eb8:0x41d,_0x111a69:0x420,_0x7fb5ab:0x2fc,_0x45edfa:0x482,_0x283680:0x497,_0x6101d:0x4bb,_0x168544:0x499,_0x566125:0x380,_0x361831:0x5ae,_0x3434df:0x5b7,_0x51568f:0x5f2,_0x2d20ab:0x55b,_0x1555b1:0x58e,_0x3385ec:0x516,_0x4ee3c6:0x561,_0x2c7cb7:0x532,_0x4d824d:0x427,_0x3cdabe:0x469,_0x317500:0x6b8,_0x298fb1:0x61f,_0x2fe95f:0x343,_0x4e0e77:0x457,_0x91fe48:0x6cc,_0x4957d6:0x4b2,_0x37dfee:0x5d4,_0x322a9a:0x711,_0x1f659c:0x35c,_0x26b28f:0x368,_0x3ddee4:0x3f7,_0x1a7c15:0x458,_0x4b85bf:0x3a8,_0x3a6c1b:0x559,_0x2423dd:0x6a0,_0x2e838a:0x54a,_0x59a1ed:0x467,_0x5cf566:0x44d,_0x1a48f9:0x490,_0x56e6a6:0x4e9,_0x1ab61f:0x583,_0x14ca7d:0x6fb,_0x55b651:0x655,_0x52f238:0x320,_0x96c394:0x292,_0x8acfed:0x22f,_0x36ac26:0x4b0,_0x2e372b:0x49b,_0x58ae4e:0x49d,_0x52229f:0x374,_0x510709:0x457,_0x2ecf75:0x455,_0x2e5981:0x598,_0x28b8d3:0x4d0,_0x44f457:0x31a,_0x754d49:0x3ad,_0x90f7d9:0x6a7,_0x5a0a24:0x4fb,_0xcf5726:0x397,_0xab4806:0x327,_0x121b5c:0x41b,_0x535a20:0x457,_0x2c2072:0x679,_0x453ebe:0x574,_0x3442fa:0x41a,_0x4255ef:0x3dc,_0x57acf7:0x344,_0xa4f1e0:0x3d0,_0x2f83d4:0x200,_0x2b6fc8:0x339,_0x4b71e2:0x4db,_0xd043bd:0x5d0,_0x30d309:0x51d,_0x545e14:0x243,_0x15d740:0x301,_0x40ac77:0x409,_0x4c81b1:0x48a,_0x5b6740:0x369,_0x4370e1:0x2b6,_0x3754ca:0x3b2,_0x57667a:0x337,_0x3d150f:0x19b,_0x5ad6ac:0x2e6,_0x423af7:0x298,_0x33212a:0x3da,_0x3cd193:0x648,_0x253051:0x5a3,_0x1f66f7:0x515,_0x3510bc:0x5e7,_0x36fa48:0x4c8,_0x3f4ef3:0x39c,_0x40d218:0x38f,_0x5a68e3:0x65a,_0x666e1f:0x5a2,_0x3143bd:0x603,_0x33e742:0x701,_0x2e914a:0x476,_0x2c92d9:0x520,_0x1b390b:0x463,_0x875597:0x2f7,_0xcd228e:0x340,_0x17e778:0x367,_0x5c5aff:0x3e0,_0x23d801:0x402,_0x431e77:0x50a,_0x2d7a3e:0x4cf,_0x130124:0x3d1,_0x5cd055:0x505},_0x1a56cf={_0x46c5dd:0x156,_0x116c55:0x45b,_0x52a9b9:0x5f},_0x145db3={_0x25e839:0x2fb,_0x4c19af:0x73},_0x2727e2=Math[_0x18f545(0x5c1,_0x44f7a3._0x4c9d1e,0x60d,0x4cf)](0x1,Math[_0x1b6c08(0x3da,0x1ec,_0x44f7a3._0x5b39b5,_0x44f7a3._0x5ab66a)](0x32,_0x6b323d[_0x1b6c08(_0x44f7a3._0xa3567e,0x320,0x325,0x449)]));if(_0x6b323d['offset']+_0x2727e2>0x64)throw new ToolExecutionError(_0x18f545(0x629,0x607,0x5be,0x655),{'offset':_0x6b323d[_0x1b6c08(0x272,_0x44f7a3._0xd96a16,0x2a0,0x2fc)],'count':_0x2727e2,'maxResults':0x64});const _0x3d5a7b=cseDateRestrict(_0x6b323d['recencyDays']),_0x13093d=addSiteFilters(_0x6b323d[_0x18f545(0x620,0x6d6,_0x44f7a3._0x3286c5,0x642)],_0x6b323d['domains']);let _0x101883=0x0,_0x495655=_0x6b323d[_0x1b6c08(_0x44f7a3._0x21d988,_0x44f7a3._0x184eb8,_0x44f7a3._0x111a69,_0x44f7a3._0x7fb5ab)]+0x1;const _0x251624=[];function _0x1b6c08(_0x688bb1,_0x21695d,_0x14bacd,_0x231b08){return _0x38d42b(_0x688bb1-0x1e0,_0x231b08-_0x145db3._0x25e839,_0x14bacd,_0x231b08-_0x145db3._0x4c19af);}function _0x18f545(_0x4745d9,_0x26be4c,_0x4b55e5,_0x2dc8ff){return _0x38d42b(_0x4745d9-_0x1a56cf._0x46c5dd,_0x4745d9-_0x1a56cf._0x116c55,_0x26be4c,_0x2dc8ff-_0x1a56cf._0x52a9b9);}while(_0x101883<_0x2727e2){const _0x50caf2=Math[_0x18f545(_0x44f7a3._0x45edfa,0x493,_0x44f7a3._0x283680,0x39c)](0xa,_0x2727e2-_0x101883),_0x5b27f3=new URL(_0x1b6c08(0x2d4,_0x44f7a3._0x6101d,0x347,0x3c3));_0x5b27f3[_0x18f545(_0x44f7a3._0x168544,_0x44f7a3._0x566125,_0x44f7a3._0x361831,0x3a5)][_0x18f545(_0x44f7a3._0x3434df,0x5bb,0x596,0x4ee)](_0x18f545(_0x44f7a3._0x51568f,_0x44f7a3._0x2d20ab,_0x44f7a3._0x1555b1,0x564),_0x49ccc3[_0x1b6c08(0x5b0,_0x44f7a3._0x3385ec,_0x44f7a3._0x4ee3c6,_0x44f7a3._0x2c7cb7)]),_0x5b27f3[_0x18f545(0x499,_0x44f7a3._0x4d824d,0x4cf,_0x44f7a3._0x3cdabe)]['set']('cx',_0x49ccc3[_0x18f545(0x5cb,0x67c,_0x44f7a3._0x317500,_0x44f7a3._0x298fb1)]),_0x5b27f3[_0x18f545(0x499,0x3fe,0x5d9,0x503)][_0x18f545(0x5b7,0x59c,0x667,0x677)]('q',_0x13093d),_0x5b27f3['searchParams'][_0x1b6c08(_0x44f7a3._0x2fe95f,0x3f2,0x58e,_0x44f7a3._0x4e0e77)](_0x1b6c08(0x52d,0x4a5,0x4f2,0x3e1),String(_0x50caf2)),_0x5b27f3[_0x18f545(0x499,0x5e6,0x42d,0x542)][_0x18f545(0x5b7,_0x44f7a3._0x91fe48,_0x44f7a3._0x4957d6,_0x44f7a3._0x37dfee)](_0x18f545(0x69e,_0x44f7a3._0x322a9a,0x571,0x772),String(_0x495655)),_0x5b27f3[_0x1b6c08(0x47d,_0x44f7a3._0x1f659c,0x21e,0x339)][_0x1b6c08(_0x44f7a3._0x26b28f,0x388,_0x44f7a3._0x3ddee4,_0x44f7a3._0x4e0e77)]('safe',_0x6b323d[_0x18f545(0x44c,0x422,_0x44f7a3._0x1a7c15,_0x44f7a3._0x4b85bf)]?_0x18f545(_0x44f7a3._0x3a6c1b,0x4a7,_0x44f7a3._0x2423dd,_0x44f7a3._0x2e838a):_0x1b6c08(0x3e9,0x3d5,_0x44f7a3._0x59a1ed,0x477));_0x6b323d[_0x18f545(0x450,_0x44f7a3._0x5cf566,_0x44f7a3._0x1a48f9,_0x44f7a3._0x56e6a6)]&&(_0x5b27f3[_0x18f545(0x499,0x493,0x433,_0x44f7a3._0x1ab61f)][_0x18f545(_0x44f7a3._0x3434df,0x6c5,_0x44f7a3._0x14ca7d,_0x44f7a3._0x55b651)]('hl',_0x6b323d[_0x1b6c08(_0x44f7a3._0x52f238,_0x44f7a3._0x96c394,_0x44f7a3._0x8acfed,0x2f0)]),_0x5b27f3[_0x18f545(0x499,_0x44f7a3._0x36ac26,0x37b,_0x44f7a3._0x2e372b)][_0x1b6c08(0x336,_0x44f7a3._0x58ae4e,_0x44f7a3._0x52229f,_0x44f7a3._0x510709)]('lr',_0x18f545(0x504,_0x44f7a3._0x2ecf75,_0x44f7a3._0x2e5981,0x588)+_0x6b323d[_0x18f545(0x450,_0x44f7a3._0x28b8d3,_0x44f7a3._0x44f457,_0x44f7a3._0x754d49)]));if(_0x6b323d[_0x18f545(0x625,_0x44f7a3._0x90f7d9,_0x44f7a3._0x5a0a24,0x760)])_0x5b27f3[_0x1b6c08(0x330,_0x44f7a3._0x3ddee4,_0x44f7a3._0xcf5726,0x339)][_0x1b6c08(0x53c,_0x44f7a3._0xab4806,_0x44f7a3._0x121b5c,_0x44f7a3._0x535a20)]('gl',_0x6b323d[_0x18f545(0x625,_0x44f7a3._0x2c2072,0x72b,0x5ea)]['toUpperCase']());if(_0x6b323d['type']==='images')_0x5b27f3['searchParams'][_0x1b6c08(0x439,0x47b,_0x44f7a3._0x453ebe,_0x44f7a3._0x535a20)](_0x18f545(_0x44f7a3._0x3442fa,_0x44f7a3._0x4255ef,0x35c,_0x44f7a3._0x57acf7),'image');if(_0x3d5a7b)_0x5b27f3[_0x1b6c08(0x37a,_0x44f7a3._0xa4f1e0,_0x44f7a3._0x2f83d4,_0x44f7a3._0x2b6fc8)]['set'](_0x18f545(_0x44f7a3._0x4b71e2,_0x44f7a3._0xd043bd,_0x44f7a3._0x30d309,0x3b4),_0x3d5a7b);const _0x4a3655=await fetchJson(_0x5b27f3[_0x1b6c08(_0x44f7a3._0x545e14,_0x44f7a3._0x15d740,_0x44f7a3._0x40ac77,0x365)](),_0x12e47b),_0x1553f3=_0x4a3655[_0x1b6c08(_0x44f7a3._0x4c81b1,_0x44f7a3._0x5b6740,_0x44f7a3._0x4370e1,_0x44f7a3._0x3754ca)]??[];if(_0x1553f3[_0x1b6c08(0x420,_0x44f7a3._0x57667a,0x37a,0x3e0)]===0x0)break;const _0xa2e56=_0x101883;for(let _0x4a94a3=0x0;_0x4a94a3<_0x1553f3['length'];_0x4a94a3++){const _0x1b525f=_0x1553f3[_0x4a94a3];if(!_0x1b525f)continue;const _0x41f5f0=_0x1b525f[_0x1b6c08(0x360,0x1f2,_0x44f7a3._0x3d150f,_0x44f7a3._0x5ad6ac)]||_0x1b525f[_0x1b6c08(0x486,_0x44f7a3._0x423af7,0x4d3,_0x44f7a3._0x33212a)]?.['contextLink']||'',_0x5f55e5=_0x1b525f[_0x1b6c08(_0x44f7a3._0x3cd193,0x492,_0x44f7a3._0x253051,_0x44f7a3._0x1f66f7)]||_0x1b525f[_0x18f545(0x53a,0x660,0x647,0x4c2)]?.[_0x18f545(0x675,0x5c6,_0x44f7a3._0x3510bc,0x68a)]||'Untitled',_0x1e48c9=_0x1b525f['snippet']||_0x1b525f[_0x18f545(0x4b8,_0x44f7a3._0x36fa48,0x4a1,_0x44f7a3._0x3f4ef3)]?.[_0x18f545(0x433,0x565,0x45e,_0x44f7a3._0x40d218)](/<[^>]+>/g,''),_0xe25214=_0x1b525f[_0x18f545(_0x44f7a3._0x5a68e3,_0x44f7a3._0x666e1f,0x631,0x57c)]?.['metatags']?.[0x0]??{};let _0x182c94;try{_0x182c94=new URL(_0x41f5f0)[_0x1b6c08(0x399,0x2bf,0x2a4,0x390)];}catch{_0x182c94=null;}_0x251624['push']({'title':_0x5f55e5,'url':normalizeUrl(_0x41f5f0),'snippet':_0x1e48c9??null,'displayUrl':_0x182c94,'favicon':null,'publishedAt':_0xe25214[_0x18f545(0x5e1,0x4f8,_0x44f7a3._0x3143bd,_0x44f7a3._0x33e742)]||_0xe25214[_0x1b6c08(_0x44f7a3._0x2e914a,_0x44f7a3._0x2c92d9,_0x44f7a3._0x1b390b,_0x44f7a3._0x4c81b1)]||null,'source':{'engine':'google-cse','rank':_0xa2e56+_0x4a94a3+0x1}});}_0x101883+=_0x1553f3[_0x1b6c08(_0x44f7a3._0x875597,_0x44f7a3._0xcd228e,_0x44f7a3._0x17e778,_0x44f7a3._0x5c5aff)],_0x495655+=_0x1553f3['length'];if(_0x1553f3[_0x18f545(0x540,_0x44f7a3._0x23d801,0x4d3,_0x44f7a3._0x431e77)]<_0x50caf2)break;}return _0x251624[_0x1b6c08(0x510,_0x44f7a3._0x2d7a3e,_0x44f7a3._0x130124,_0x44f7a3._0x5cd055)](0x0,_0x2727e2);}function isGoogleCseEngine(_0xc4961a){const _0x3ec69b={_0x4b2a2a:0x590,_0x58789a:0x4db,_0x1ca454:0x59a,_0x44444c:0x5fe},_0x3d8186={_0x3e4086:0xe0};function _0x46e14f(_0xe2170a,_0x2dcef2,_0x2ebaf9,_0x793a2b){return _0x38d42b(_0xe2170a-0x18e,_0x793a2b-0x3c7,_0x2dcef2,_0x793a2b-_0x3d8186._0x3e4086);}return _0x46e14f(_0x3ec69b._0x4b2a2a,_0x3ec69b._0x58789a,_0x3ec69b._0x1ca454,_0x3ec69b._0x44444c)in _0xc4961a;}function isOllamaEngine(_0x34601b){const _0x4d3d4e={_0x5baab7:0x131},_0x29d1ed={_0x29cf91:0x38,_0x4db0b0:0x37,_0x557a1c:0x1c7};function _0x573103(_0xe6a393,_0x4c4cf6,_0x18096c,_0x228133){return _0x38d42b(_0xe6a393-_0x29d1ed._0x29cf91,_0x4c4cf6- -_0x29d1ed._0x4db0b0,_0x18096c,_0x228133-_0x29d1ed._0x557a1c);}return _0x573103(0x13f,0x1cb,_0x4d3d4e._0x5baab7,0xed)in _0x34601b;}function isTavilyEngine(_0x3061bc){return'tavilyApiKey'in _0x3061bc;}function createWebSearchTool(_0x58e94b){const _0x398754={_0x4f3afd:0x4a,_0x1fc10e:0xa,_0xd77654:0x39,_0x1e9fac:0xa7,_0x334ff4:0x1d5,_0x3ae65e:0x274,_0x20bf5d:0xfc,_0x310b9a:0x18b,_0x14c033:0x1f3,_0x56c162:0x225,_0x354f4f:0x235,_0x18b7e:0x10a,_0x568b2c:0x2a9,_0x4f272c:0x162,_0x443965:0x295,_0x287c3e:0x25e,_0x30dbdb:0xa1,_0x4fa6c0:0x258,_0x77174d:0x2e7,_0x2bc964:0x2a1,_0x584ac0:0x39c,_0x3c424a:0x15c,_0x1d16ad:0x1f6,_0x300436:0x1f9,_0x780cd0:0x216,_0xd32a3b:0x399,_0x106260:0x2d2,_0x543917:0x17d,_0x58031d:0x6b,_0x5353f6:0xa8,_0x2000f8:0x10a,_0x5e17b8:0x3fe,_0x3d5c9a:0x3e9},_0x2a257f={_0x7ff804:0xdd,_0x506a33:0x175,_0x4b7959:0x93,_0x50d6df:0x14f,_0x264b72:0x99,_0x135c5f:0xaa,_0x538a53:0x142,_0x1af253:0x94,_0x46ceac:0x1cb,_0x32ebdb:0x2b6,_0x592fd6:0xc8,_0x2fee62:0x8b,_0x50ba88:0x68,_0x14bd91:0xf,_0x4fa03c:0x29,_0xea5379:0x11f,_0x3888b7:0x18,_0x12666b:0x43,_0x19e4e2:0x124,_0xa2fb15:0x218,_0x8d3baf:0xb8,_0x363a83:0xf9,_0x45b828:0x3f,_0x165d18:0x19b,_0x48214e:0xd6,_0x31362b:0x160,_0x193cb1:0x68,_0x380595:0x175,_0xc02466:0x134,_0x231e49:0x17a,_0x14f1d5:0x1cf,_0x3eddb6:0x28d,_0x3e0b74:0x154,_0x398de2:0x10,_0x5c7035:0xbf,_0x3471a0:0x1f,_0x13872d:0x5a,_0x2891e3:0x2,_0xa8633f:0xb2,_0x235f8f:0xcd,_0x3c6f:0x14,_0xf35c89:0xb2,_0x5831f3:0x1ba,_0x2d970d:0x9e,_0x3207f7:0x3,_0x46cb5a:0x1fc,_0x1c91b3:0x188,_0x2a0af2:0x40,_0x3125ea:0x19,_0x2e2a7c:0x113,_0x237a85:0x3,_0x24b307:0x23,_0x2b8a49:0x100,_0x1aa3cb:0x10c,_0x21cd4a:0x2f,_0x1be0c8:0x72,_0x249015:0x158,_0x17e7d5:0x380,_0x41f740:0x235,_0x3fb34a:0x1ad,_0x53ad03:0x133,_0x93868b:0x328,_0x2ee386:0x321,_0x3fc87b:0x20a,_0x5a3d08:0x2b,_0x5965d6:0x1d,_0x506d95:0xd8,_0x43ca89:0xa2,_0x19a90f:0xea,_0x440e4c:0x27,_0x115346:0x101,_0x515705:0xb0,_0x541934:0x43,_0x42bae4:0xf3,_0x20c475:0x137,_0x1ba135:0x130,_0x549362:0x87,_0x24094c:0x127,_0x368f2f:0x2c7,_0x335d6e:0x30b,_0x529480:0x162,_0x4bc3ae:0x202,_0x12e4f2:0x133,_0x5022a6:0x1b2,_0x5052c8:0x104,_0x2378ef:0x55,_0xf215ce:0xad,_0x35620b:0xbc,_0x401e65:0x83,_0x197295:0x48,_0x208f1f:0x34,_0x49c332:0xbd},_0x312329={_0x5a25db:0x15e,_0x2c19db:0x22c};function _0x4fba65(_0xdbeea5,_0x2f453c,_0x1ca916,_0x2498d2){return _0x37c1da(_0xdbeea5-0x19c,_0x2f453c-0x1c2,_0x2f453c,_0x2498d2- -0x5d7);}if(!_0x58e94b[_0x4fba65(-0x7d,_0x398754._0x4f3afd,0x71,0x8a)]||_0x58e94b[_0x4fba65(-_0x398754._0x1fc10e,0x16a,0x117,0x8a)][_0x4fba65(_0x398754._0xd77654,0x3f,-0x153,-_0x398754._0x1e9fac)]===0x0)throw new Error(_0x13c2c1(_0x398754._0x334ff4,0x3c1,_0x398754._0x3ae65e,0x331));function _0x13c2c1(_0x1f3719,_0x56adcc,_0x4656b9,_0x83c2b3){return _0x37c1da(_0x1f3719-_0x312329._0x5a25db,_0x56adcc-0x56,_0x1f3719,_0x4656b9- -_0x312329._0x2c19db);}const _0x106c68=_0x58e94b['name']??'WebSearch';return defineTool({'name':_0x106c68,'description':_0x4fba65(-_0x398754._0x20bf5d,-0x7b,-0x1af,-0x117),'inputSchema':{'type':_0x4fba65(-0x1ad,-_0x398754._0x310b9a,-_0x398754._0x14c033,-0x17e),'properties':{'description':{'type':_0x13c2c1(0x23c,0x3a0,0x2a1,_0x398754._0x56c162)},'query':{'type':_0x4fba65(-_0x398754._0x354f4f,0x1f,-0x158,-_0x398754._0x18b7e)},'count':{'type':_0x13c2c1(0x120,0xec,0x1f6,_0x398754._0x568b2c)},'offset':{'type':_0x4fba65(-_0x398754._0x4f272c,-_0x398754._0x443965,-_0x398754._0x287c3e,-0x1b5)},'domains':{'type':_0x4fba65(-_0x398754._0x30dbdb,-_0x398754._0x4fa6c0,-0x172,-0x19c),'items':{'type':_0x13c2c1(0x280,_0x398754._0x77174d,_0x398754._0x2bc964,_0x398754._0x584ac0)}},'recencyDays':{'type':_0x13c2c1(0x28d,_0x398754._0x3c424a,_0x398754._0x1d16ad,0x166)},'lang':{'type':_0x13c2c1(_0x398754._0x300436,_0x398754._0x780cd0,0x2a1,_0x398754._0xd32a3b)},'region':{'type':_0x13c2c1(_0x398754._0x106260,_0x398754._0x77174d,_0x398754._0x2bc964,_0x398754._0x543917)},'safe':{'type':_0x4fba65(_0x398754._0x58031d,0x10f,0x127,0x53)},'type':{'type':_0x4fba65(-0x25,-0x7f,-_0x398754._0x5353f6,-_0x398754._0x2000f8)},'hydrateMeta':{'type':_0x13c2c1(0x441,0x3e5,_0x398754._0x5e17b8,_0x398754._0x3d5c9a)}},'required':['query']},async *'execute'(_0x256733,_0x5738e8){const _0x5603ec={_0x11f92b:0x33c,_0x10f625:0x3c3,_0x56d6ff:0x337,_0x3a01bf:0x321},_0x3737d0={_0x1af770:0xb,_0x248580:0x19e},_0x24ee49={_0x295d12:0x5d},_0x3a2aa1={_0xda2203:0x7e},_0xcb394=_0x256733[_0x16338f(_0x2a257f._0x7ff804,_0x2a257f._0x506a33,_0x2a257f._0x4b7959,_0x2a257f._0x50d6df)]['trim']();if(!_0xcb394)throw new ToolExecutionError(_0x532344(0x2a8,0x1b6,0x1da,0x18f));function _0x532344(_0x2d8132,_0x517a8f,_0x47fbe7,_0x42d554){return _0x13c2c1(_0x517a8f,_0x517a8f-0x1d5,_0x42d554- -0x1d1,_0x42d554-_0x3a2aa1._0xda2203);}const _0x1cc910={'query':_0xcb394,'count':Math[_0x532344(0x1f1,_0x2a257f._0x264b72,_0x2a257f._0x135c5f,0x1b4)](0x1,Math['min'](0x32,Math[_0x16338f(_0x2a257f._0x538a53,_0x2a257f._0x1af253,0x235,_0x2a257f._0x46ceac)](_0x256733[_0x532344(0x20a,_0x2a257f._0x32ebdb,0x1a0,0x19c)]??0xa))),'offset':Math['max'](0x0,Math['trunc'](_0x256733[_0x16338f(-0xe7,-_0x2a257f._0x592fd6,-0x92,-_0x2a257f._0x2fee62)]??0x0)),'domains':_0x256733['domains']??[],'recencyDays':Math[_0x16338f(0x7e,_0x2a257f._0x50ba88,0x5c,_0x2a257f._0x14bd91)](0x0,Math[_0x16338f(0x142,0x1d5,_0x2a257f._0x4fa03c,_0x2a257f._0xea5379)](_0x256733['recencyDays']??0x0)),'lang':_0x256733[_0x532344(0xf2,-_0x2a257f._0x3888b7,0xcf,_0x2a257f._0x12666b)]??'en','region':_0x256733[_0x532344(0x220,0x141,_0x2a257f._0x19e4e2,_0x2a257f._0xa2fb15)]??'','safe':_0x256733[_0x532344(0x4e,-_0x2a257f._0x8d3baf,_0x2a257f._0x363a83,_0x2a257f._0x45b828)]??!![],'type':normalizeType(_0x256733[_0x16338f(0x6f,_0x2a257f._0x165d18,_0x2a257f._0x48214e,_0x2a257f._0x31362b)]),'hydrateMeta':_0x256733[_0x16338f(_0x2a257f._0x193cb1,_0x2a257f._0x380595,_0x2a257f._0xc02466,_0x2a257f._0x231e49)]??![]};let _0x86fecf=[],_0x36793e=_0x532344(_0x2a257f._0x14f1d5,0x12c,_0x2a257f._0x3eddb6,_0x2a257f._0x3e0b74);for(const _0x4227b9 of _0x58e94b['engines']){try{if(isGoogleCseEngine(_0x4227b9))_0x86fecf=await searchGoogleCse(_0x4227b9,_0x1cc910,_0x5738e8['signal']),_0x36793e=_0x532344(0x71,_0x2a257f._0x398de2,-_0x2a257f._0x5c7035,0x7d);else{if(isOllamaEngine(_0x4227b9)){const _0x2f8cc7=await searchOllama(_0x4227b9,_0x1cc910,_0x5738e8[_0x16338f(-_0x2a257f._0x3471a0,0x74,_0x2a257f._0x13872d,_0x2a257f._0x2891e3)]);_0x86fecf=_0x2f8cc7['items'],_0x36793e=_0x2f8cc7[_0x16338f(_0x2a257f._0xa8633f,0x173,-0x13,0x8d)];}else{if(isTavilyEngine(_0x4227b9)){const _0x5b1577=await searchTavily(_0x4227b9,_0x1cc910,_0x5738e8[_0x16338f(-_0x2a257f._0x3471a0,0x89,-_0x2a257f._0x235f8f,0x6c)]);_0x86fecf=_0x5b1577[_0x16338f(-0x31,0xd9,_0x2a257f._0x3c6f,-0x8e)],_0x36793e=_0x5b1577[_0x16338f(_0x2a257f._0xf35c89,0xb4,_0x2a257f._0x5831f3,_0x2a257f._0x2d970d)];}}}if(_0x86fecf[_0x16338f(-_0x2a257f._0x3207f7,-0x141,-0x5d,-0x13b)]>0x0)break;}catch(_0x183075){if(_0x4227b9===_0x58e94b['engines'][_0x58e94b[_0x16338f(0x12e,_0x2a257f._0x46cb5a,0x253,_0x2a257f._0x1c91b3)][_0x16338f(-0x3,-_0x2a257f._0x2a0af2,-_0x2a257f._0x3125ea,-_0x2a257f._0x2e2a7c)]-0x1])throw _0x183075;}}_0x1cc910['hydrateMeta']&&_0x86fecf[_0x16338f(-_0x2a257f._0x237a85,_0x2a257f._0x24b307,-0x135,-_0x2a257f._0x2b8a49)]>0x0&&(_0x86fecf=await hydrateResults(_0x86fecf,_0x1cc910[_0x16338f(-0xf3,-_0x2a257f._0x1aa3cb,_0x2a257f._0x21cd4a,-0x58)],_0x5738e8[_0x16338f(-0x1f,0x4e,_0x2a257f._0x1be0c8,-_0x2a257f._0x249015)]));const _0x401f80=new Set();_0x86fecf=_0x86fecf['filter'](_0x227747=>{function _0x1e8f25(_0x70049c,_0x46c201,_0x1083a8,_0x39b374){return _0x16338f(_0x1083a8-0x46a,_0x39b374,_0x1083a8-_0x24ee49._0x295d12,_0x39b374-0x10a);}function _0x22b7b6(_0x311f05,_0x39788d,_0x38e88f,_0xd79c3e){return _0x532344(_0x311f05-_0x3737d0._0x1af770,_0x39788d,_0x38e88f-_0x3737d0._0x248580,_0x311f05-0x21d);}const _0x1a2355=_0x227747[_0x1e8f25(0x460,_0x5603ec._0x11f92b,_0x5603ec._0x10f625,_0x5603ec._0x56d6ff)][_0x1e8f25(0x55b,0x6ed,0x5a2,0x67a)]();if(!_0x1a2355||_0x401f80['has'](_0x1a2355))return![];return _0x401f80[_0x22b7b6(_0x5603ec._0x3a01bf,0x2cd,0x22b,0x23a)](_0x1a2355),!![];}),_0x86fecf=_0x86fecf[_0x532344(0x288,_0x2a257f._0x17e7d5,0x283,0x27f)]((_0x294758,_0xc87a5c)=>({..._0x294758,'source':{..._0x294758[_0x16338f(-0xe9,0x52,-0x1b8,-0x139)],'rank':_0xc87a5c+0x1}}));const _0x24fa7b={};if(_0x1cc910['domains'][_0x532344(0xbd,_0x2a257f._0x41f740,_0x2a257f._0x3fb34a,_0x2a257f._0x53ad03)]>0x0)_0x24fa7b[_0x532344(0x2f5,_0x2a257f._0x93868b,_0x2a257f._0x2ee386,_0x2a257f._0x3fc87b)]=_0x1cc910[_0x16338f(0xd4,_0x2a257f._0x5a3d08,_0x2a257f._0x5965d6,_0x2a257f._0x506d95)];if(_0x1cc910['recencyDays']>0x0)_0x24fa7b[_0x532344(_0x2a257f._0x43ca89,_0x2a257f._0x19a90f,-0x5,_0x2a257f._0x440e4c)]=_0x1cc910[_0x532344(_0x2a257f._0x115346,-0x117,0x159,0x27)];if(_0x1cc910[_0x532344(0xe7,-_0x2a257f._0x515705,0x144,_0x2a257f._0x541934)]!=='en')_0x24fa7b[_0x16338f(-_0x2a257f._0x42bae4,-0x1b2,-_0x2a257f._0x20c475,-_0x2a257f._0x1ba135)]=_0x1cc910[_0x16338f(-_0x2a257f._0x42bae4,-0x1c9,-0x126,-_0x2a257f._0x549362)];function _0x16338f(_0x4b747c,_0x27c726,_0x456597,_0x28f624){return _0x4fba65(_0x4b747c-0x1e9,_0x27c726,_0x456597-0x6a,_0x4b747c-0xa4);}if(_0x1cc910['region'])_0x24fa7b[_0x16338f(0xe2,0x159,0x29,_0x2a257f._0x24094c)]=_0x1cc910[_0x532344(_0x2a257f._0x368f2f,0x323,_0x2a257f._0x335d6e,0x218)];return yield createToolOutput(formatResults(_0x86fecf),{'engine':_0x36793e,'count':_0x86fecf[_0x532344(_0x2a257f._0x529480,0xdc,_0x2a257f._0x4bc3ae,_0x2a257f._0x12e4f2)],'items':_0x86fecf,'query':_0x1cc910[_0x16338f(_0x2a257f._0x7ff804,_0x2a257f._0x5022a6,_0x2a257f._0x5052c8,-0x42)],...Object[_0x16338f(0x102,_0x2a257f._0x2378ef,_0x2a257f._0xf215ce,0x197)](_0x24fa7b)['length']>0x0?{'appliedFilters':_0x24fa7b}:{},'offset':_0x1cc910[_0x532344(-_0x2a257f._0x35620b,-_0x2a257f._0x401e65,0x25,0x4f)],'totalRequested':_0x1cc910[_0x16338f(0x66,-_0x2a257f._0x197295,_0x2a257f._0x208f1f,0xa5)],'hydrated':_0x1cc910[_0x532344(_0x2a257f._0x49c332,0xba,0x118,0x19e)]}),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};