@nuvin/agent-core 0.0.0-rc.14 → 0.0.0-rc.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-SEP4YYY3.js +1 -1
- package/dist/chunk-T7UKN6FZ.js +1 -1
- package/dist/chunk-WJMBJOVF.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
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};
|
|
1
|
+
(function(_0x17dff1,_0x4facdb){const _0x4723a5={_0x26c090:0x3b,_0x4ac5cf:0x82,_0x24f21f:0x56c,_0x42dbb2:0x29,_0x31bcaf:0x1b4,_0x2e2486:0x181,_0x4d0697:0xba,_0x6a831e:0x17,_0x304640:0x594,_0x10ed1d:0x4cb,_0x56f346:0x36f,_0x2029fc:0x1d6,_0x4214f2:0x157,_0x4c15d8:0x651,_0x20bc84:0x5fd,_0x141eef:0x23e,_0x2655c0:0x3ba,_0x56deb0:0x388},_0x434bf4={_0x1d1734:0x15b};function _0x2203f5(_0x592d38,_0x15be39,_0x281046,_0x63961d){return _0x1e3a(_0x63961d-_0x434bf4._0x1d1734,_0x281046);}function _0x575c50(_0xfa7213,_0x3ee0c9,_0x5d60dc,_0x12825e){return _0x1e3a(_0x5d60dc- -0x38c,_0x3ee0c9);}const _0x5ea843=_0x17dff1();while(!![]){try{const _0x16bda3=parseInt(_0x575c50(_0x4723a5._0x26c090,0xf7,_0x4723a5._0x4ac5cf,0x11c))/0x1+-parseInt(_0x2203f5(0x5f6,_0x4723a5._0x24f21f,0x6bf,0x581))/0x2+-parseInt(_0x575c50(0x17c,_0x4723a5._0x42dbb2,0x28,0x62))/0x3*(-parseInt(_0x575c50(_0x4723a5._0x31bcaf,_0x4723a5._0x2e2486,_0x4723a5._0x4d0697,_0x4723a5._0x6a831e))/0x4)+parseInt(_0x2203f5(_0x4723a5._0x304640,_0x4723a5._0x10ed1d,_0x4723a5._0x56f346,0x4a4))/0x5+parseInt(_0x575c50(-_0x4723a5._0x2029fc,-0xc2,-0x1a9,-_0x4723a5._0x4214f2))/0x6+parseInt(_0x2203f5(0x53d,_0x4723a5._0x4c15d8,_0x4723a5._0x20bc84,0x5ba))/0x7+-parseInt(_0x2203f5(0x4a6,0x539,0x49d,0x41a))/0x8*(parseInt(_0x2203f5(_0x4723a5._0x141eef,0x496,_0x4723a5._0x2655c0,_0x4723a5._0x56deb0))/0x9);if(_0x16bda3===_0x4facdb)break;else _0x5ea843['push'](_0x5ea843['shift']());}catch(_0x2cdfb8){_0x5ea843['push'](_0x5ea843['shift']());}}}(_0x3422,0x675c1));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 _0xf87fb7 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x567203(0x2ba,0x24a,0x241,0x34c),'.tsx':_0x567203(-0x124,0xe3,0x2c,0x4d),'.js':'javascript','.jsx':_0x567203(0x1c9,0x2b2,0x239,0x304),'.mjs':_0x567203(-0x3a,0x17b,0xdb,0xc1),'.cjs':_0x29bb69(-0x108,-0x59,-0xcb,-0x6),'.mts':'typescript','.cts':_0x567203(0x1b2,0x376,0x241,0x354),'.json':_0x567203(-0xb5,0x42,0x27,0x83),'.jsonc':_0x567203(-0x82,0xea,-0x2f,-0x73)};function getLanguageId(_0x111567){const _0x24e5f3={_0x1c89d4:0x6a9,_0x4ba926:0x424,_0x30961a:0x3f3},_0x169be1={_0x1483af:0x5b0};function _0x10bcf4(_0xfe1af0,_0x5d2407,_0x13801f,_0x497a64){return _0x567203(_0x5d2407,_0x5d2407-0x19e,_0x13801f-0x22d,_0x497a64-0x16e);}function _0x57f71d(_0x13a218,_0xd6a8a3,_0x82b392,_0x40a6dc){return _0x567203(_0x40a6dc,_0xd6a8a3-0xdf,_0x82b392-_0x169be1._0x1483af,_0x40a6dc-0x4b);}return EXTENSION_TO_LANGUAGE[_0xf87fb7[_0x57f71d(0x654,0x681,_0x24e5f3._0x1c89d4,0x6c8)](_0x111567)[_0x10bcf4(_0x24e5f3._0x4ba926,_0x24e5f3._0x30961a,0x312,_0x24e5f3._0x4ba926)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x575336){const _0x512691={_0x51958f:0xa5,_0x54c88f:0x62},_0xda4f62={_0x14fbc6:0x80};function _0xc858d4(_0x41d6f6,_0x55114d,_0x31480e,_0x41a8d8){return _0x567203(_0x41d6f6,_0x55114d-_0xda4f62._0x14fbc6,_0x55114d-0x5e,_0x41a8d8-0x2c);}return pathToFileURL(_0x575336)[_0xc858d4(0x53,0x4c,-_0x512691._0x51958f,_0x512691._0x54c88f)]();}function textDocumentPosition(_0x4a8f5f){const _0x67452e={_0x2596f3:0x571,_0x1e4cff:0x51c,_0x51b534:0x2b,_0x13bf5d:0x3,_0x32a8a7:0x1d,_0x2bcb21:0x1cd,_0x19744e:0x18d},_0x38136a={_0x2404df:0x1a},_0x1b0376={_0x41a959:0xbb,_0x53b2ab:0x472};function _0x1fe8d0(_0x338224,_0x29d82f,_0x169a9a,_0x491582){return _0x567203(_0x169a9a,_0x29d82f-_0x1b0376._0x41a959,_0x338224-_0x1b0376._0x53b2ab,_0x491582-0x68);}function _0x1fd1f9(_0x2d16af,_0x623e58,_0x5dad89,_0x4f9de6){return _0x567203(_0x2d16af,_0x623e58-_0x38136a._0x2404df,_0x4f9de6- -0xd6,_0x4f9de6-0x1c8);}return{'textDocument':{'uri':uriForPath(_0x4a8f5f[_0x1fe8d0(_0x67452e._0x2596f3,0x44c,_0x67452e._0x1e4cff,0x458)])},'position':{'line':_0x4a8f5f[_0x1fd1f9(_0x67452e._0x51b534,-_0x67452e._0x13bf5d,_0x67452e._0x32a8a7,0x44)],'character':_0x4a8f5f[_0x1fd1f9(_0x67452e._0x2bcb21,0x9f,0x20a,_0x67452e._0x19744e)]}};}function normalizeLocations(_0x3efc72){if(!_0x3efc72)return[];return Array['isArray'](_0x3efc72)?_0x3efc72:[_0x3efc72];}async function createLspClient(_0x1fcf3c){const _0x4933db={_0x4a16e8:0x20d,_0x192527:0x32e,_0x283b6f:0x276,_0x12abbd:0x1b7,_0x402a2a:0x1d2,_0x256283:0x3d1,_0xdc4a45:0x421,_0x4c86ec:0x36a,_0x57d016:0x1ac,_0x359fc0:0x9,_0x15fa53:0x6e,_0x45a74e:0xae,_0x511c9c:0x7e,_0x5b4707:0x1d,_0x564930:0x4c,_0x3dd0f7:0x2c2,_0x1caf4b:0x1f3,_0xca1cd3:0x4a,_0x1e3e05:0x78,_0x178d52:0xe,_0x5d5b9c:0x1f,_0x29c07d:0xa6,_0x23bf06:0x6d,_0x4cf6f6:0x114,_0x59c1e8:0xc9,_0x2783c3:0x45d,_0x5b915c:0x8c,_0xd1b6f0:0x50,_0x183933:0x373,_0x56173b:0x208,_0x34f56c:0x25c,_0x1b8a51:0x14e,_0x4090be:0x26,_0x48c66f:0x16c,_0x517022:0x2fc,_0x5d7b20:0x1db,_0x278574:0xc0,_0x1ff308:0x20b,_0xf6570f:0x157,_0x2594d8:0x257,_0x4bcfcf:0x263,_0x2c162f:0x12b},_0x33f467={_0x5b3e2a:0x135,_0x586e50:0x260,_0x2aaba4:0x428,_0x2b1497:0x179,_0x415f4b:0x184,_0x37fc86:0x238},_0x48a059={_0x112885:0x1ce,_0x2d9591:0x20e},_0x5f05aa={_0x304750:0x120,_0x5d4c0f:0x1c3,_0x118560:0x5da,_0x2c5bda:0x57b,_0x5d90ee:0x4ed},_0x23d468={_0x1c59fa:0x59,_0x38a6bd:0x115,_0x472923:0xb5,_0xbe8875:0x2e3,_0xe67cd6:0x439},_0x507b1c={_0x115b57:0x1ee,_0x1ef56d:0x268,_0x5a9d37:0x501},_0x1983e9={_0x5caf3a:0xcb},_0x39476e={_0x449773:0x165,_0x3c4294:0x14,_0x929eec:0x53},_0x455410={_0x5ec5f1:0x74,_0x222842:0x7d},_0x3d0a03={_0x382da4:0x2d2,_0x949f0e:0x7f},_0x33514b={_0x26d021:0xbe},_0x21b72c={_0x3d8430:0x28c,_0x203311:0x127,_0x308d19:0x23d},_0x198796={_0x249812:0xb8,_0x53157a:0x1},_0x5a4aa7={_0x28bdad:0x77,_0x22a7a6:0x189},_0x58bf14={_0x278c80:0x2e1,_0x3fd8fd:0x2e9,_0x285762:0x360},_0x41fe16={_0x3b95a4:0x168,_0x192fb0:0x2be},_0x38c563={_0x3c3346:0xc,_0x204514:0x10c},_0x158af1={_0x4b1b78:0x1fe,_0x43f22f:0x15f,_0x3600d7:0x1bf,_0x51b8bc:0x21c,_0x3ed81f:0x30e,_0x4c1fd3:0x242},_0x449c45={_0x55da20:0xc0,_0x381ce4:0x2c7},_0x4b71d3={_0x370f1d:0x675,_0x25385a:0x6b9,_0x419c58:0x3b9,_0x4582c6:0x187,_0x2e7beb:0x2ca},_0x2f4337={_0x52d091:0x3f,_0x4f54df:0x2a2},_0x409e07={_0x375e22:0x1ce,_0x251211:0x126,_0x7d7a87:0x238,_0x5e2255:0x56},_0x3e0172={_0x9f724c:0x1a2,_0x192175:0x50b,_0x4783fe:0x3d5,_0x32d912:0x51d},_0x362120={_0x175f0d:0xe7},_0xd34b47={_0x2635b1:0x4,_0x13029a:0x7c},_0x34c8e3={_0x5d8a8e:0x2e3,_0x316409:0x2d7,_0x56c060:0x271,_0x306023:0x335,_0x303094:0x346},_0x46ffd6={_0x598e89:0x1da,_0xcfe080:0x5b,_0x318cee:0xb1},_0x3264a8={_0x373de4:0x379,_0x41dccd:0x115},_0x16ff80={_0x263e1a:0xc0},_0x319603={_0x5308e0:0x1d4},_0x4f53a6=_0x1fcf3c[_0x41cf89(_0x4933db._0x4a16e8,0x120,0x10e,0x13d)][_0x2eae83(0x218,_0x4933db._0x192527,_0x4933db._0x283b6f,0x374)][_0x2eae83(_0x4933db._0x12abbd,0x235,_0x4933db._0x402a2a,0x228)],_0x4ed3a7=_0x1fcf3c[_0x2eae83(_0x4933db._0x256283,0x4eb,_0x4933db._0xdc4a45,_0x4933db._0x4c86ec)][_0x41cf89(-_0x4933db._0x57d016,-0xc8,-_0x4933db._0x359fc0,-_0x4933db._0x15fa53)][_0x41cf89(-0x52,_0x4933db._0x45a74e,-0x42,_0x4933db._0x511c9c)];if(!_0x4f53a6||!_0x4ed3a7)throw new Error(_0x41cf89(0x36,_0x4933db._0x5b4707,_0x4933db._0x564930,-0x80));const _0x36ff29=createMessageConnection(new StreamMessageReader(_0x4f53a6),new StreamMessageWriter(_0x4ed3a7)),_0x4b3f0a=new Map();function _0x41cf89(_0x472541,_0x26e6b3,_0x21d9a2,_0x4658cd){return _0x567203(_0x472541,_0x26e6b3-_0x319603._0x5308e0,_0x4658cd- -0xfd,_0x4658cd-0x62);}const _0x1b2b48=new Map();let _0x360b0b=![];function _0x2eae83(_0x573b70,_0x5a58eb,_0x373031,_0x4c2816){return _0x29bb69(_0x573b70-0x16,_0x373031-0x31b,_0x5a58eb,_0x4c2816-_0x16ff80._0x263e1a);}_0x36ff29[_0x2eae83(_0x4933db._0x3dd0f7,0xb6,_0x4933db._0x1caf4b,0xd4)](_0x41cf89(-_0x4933db._0xca1cd3,_0x4933db._0x1e3e05,0x20e,0xdc),_0x5793bf=>{const _0x2b84f6={_0x4b4534:0x19d,_0x5233f6:0x19e};_0x4b3f0a[_0x1147ae(-0x2,-_0x46ffd6._0x598e89,-0xc8,-0x213)](_0x5793bf['uri'],_0x5793bf[_0x1147ae(-0x1d7,_0x46ffd6._0xcfe080,-_0x46ffd6._0x318cee,-0x94)]);const _0x3a4129=_0x1b2b48['get'](_0x5793bf['uri']);function _0x558e53(_0x786549,_0x2e18e0,_0xb155a1,_0x11664b){return _0x2eae83(_0x786549-0x19d,_0x11664b,_0x2e18e0-_0x2b84f6._0x4b4534,_0x11664b-_0x2b84f6._0x5233f6);}if(!_0x3a4129)return;_0x1b2b48['delete'](_0x5793bf['uri']);function _0x1147ae(_0x2d2f32,_0x139ed7,_0x508345,_0x41ec30){return _0x2eae83(_0x2d2f32-0x1db,_0x2d2f32,_0x508345- -_0x3264a8._0x373de4,_0x41ec30-_0x3264a8._0x41dccd);}for(const _0x19100b of _0x3a4129)_0x19100b();}),_0x36ff29[_0x41cf89(_0x4933db._0x178d52,_0x4933db._0x5d5b9c,0x24,-_0x4933db._0x29c07d)]();const _0x52e140=await _0x36ff29[_0x41cf89(-_0x4933db._0x23bf06,-_0x4933db._0x4cf6f6,-0x167,-_0x4933db._0x59c1e8)]('initialize',{'processId':process[_0x2eae83(_0x4933db._0x2783c3,0x282,0x3d0,0x3b5)],'rootUri':uriForPath(_0x1fcf3c[_0x41cf89(0xca,0x18a,-_0x4933db._0x5b915c,_0x4933db._0xd1b6f0)]),'workspaceFolders':[{'uri':uriForPath(_0x1fcf3c[_0x2eae83(0x20e,_0x4933db._0x183933,0x334,_0x4933db._0x56173b)]),'name':_0x1fcf3c['server']['id']}],'initializationOptions':_0x1fcf3c[_0x41cf89(_0x4933db._0x34f56c,0x144,0x13,0x13d)][_0x41cf89(_0x4933db._0x1b8a51,-_0x4933db._0x4090be,0x1b4,0xd6)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x2eae83(_0x4933db._0x48c66f,_0x4933db._0x517022,0x1bb,0x27a)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x36ff29[_0x2eae83(_0x4933db._0x5d7b20,_0x4933db._0x278574,_0x4933db._0x1ff308,_0x4933db._0xf6570f)]('initialized',{});const _0x21dee3={'serverId':_0x1fcf3c['server']['id'],'root':_0x1fcf3c['root'],'connection':_0x36ff29,'diagnostics':_0x4b3f0a,'capabilities':_0x52e140[_0x41cf89(-_0x4933db._0x2594d8,-_0x4933db._0x4bcfcf,-0x27b,-_0x4933db._0x2c162f)]??{},'notify':{async 'open'({path:_0x43dbb0}){const _0x366e72={_0x1139c8:0x1d,_0x4be394:0x10b},_0x2b7c12=await readFile(_0x43dbb0,_0x20f505(_0x34c8e3._0x5d8a8e,0x1ef,0x406,_0x34c8e3._0x316409));function _0x20f505(_0x26971b,_0x5ec3ca,_0x192b36,_0x39fc30){return _0x41cf89(_0x5ec3ca,_0x5ec3ca-0x13c,_0x192b36-0xc1,_0x26971b-0x34a);}function _0x578df1(_0x4d29d3,_0x442f10,_0x4a50b7,_0x46322a){return _0x41cf89(_0x46322a,_0x442f10-_0x366e72._0x1139c8,_0x4a50b7-_0x366e72._0x4be394,_0x4a50b7-0x1a8);}_0x36ff29[_0x20f505(_0x34c8e3._0x56c060,0x3c1,_0x34c8e3._0x306023,0x388)](_0x20f505(0x230,0x301,0x22d,_0x34c8e3._0x303094),{'textDocument':{'uri':uriForPath(_0x43dbb0),'languageId':getLanguageId(_0x43dbb0)??'plaintext','version':0x1,'text':_0x2b7c12}});},async 'change'({path:_0x29773a,version:_0x366c8a}){const _0x55a5a2=await readFile(_0x29773a,_0x2eca0c(0x349,_0x3e0172._0x9f724c,0x2f9,0x412));function _0x2eca0c(_0x5bc28b,_0x184ccd,_0x30be3b,_0x5f354f){return _0x2eae83(_0x5bc28b-_0xd34b47._0x2635b1,_0x5bc28b,_0x30be3b-_0xd34b47._0x13029a,_0x5f354f-0x1c1);}function _0x40aaea(_0x30cc1f,_0x34d2b3,_0x3d2326,_0x462543){return _0x41cf89(_0x30cc1f,_0x34d2b3-0x131,_0x3d2326-_0x362120._0x175f0d,_0x34d2b3-0x3a4);}_0x36ff29['sendNotification'](_0x40aaea(0x56f,_0x3e0172._0x192175,_0x3e0172._0x4783fe,_0x3e0172._0x32d912),{'textDocument':{'uri':uriForPath(_0x29773a),'version':_0x366c8a},'contentChanges':[{'text':_0x55a5a2}]});},async 'close'({path:_0x2eb5cd}){const _0x1bcde8={_0x5a0e39:0x331,_0x4203ef:0x1a};function _0x553285(_0x51d2c8,_0xa92e80,_0x726cb,_0x31513c){return _0x2eae83(_0x51d2c8-0xe3,_0xa92e80,_0x31513c- -0x201,_0x31513c-0x25);}function _0x1d7b62(_0x4dac70,_0x27d853,_0x5b50b5,_0x49b36f){return _0x2eae83(_0x4dac70-0x4d,_0x4dac70,_0x5b50b5- -_0x1bcde8._0x5a0e39,_0x49b36f-_0x1bcde8._0x4203ef);}_0x36ff29[_0x1d7b62(-_0x409e07._0x375e22,-0x191,-_0x409e07._0x251211,-_0x409e07._0x7d7a87)](_0x553285(0x1bb,_0x409e07._0x5e2255,0x74,0x115),{'textDocument':{'uri':uriForPath(_0x2eb5cd)}});}},'request':{async 'definition'(_0x4ea651){const _0x58fc4c={_0x2ffc9b:0x35d,_0x5d9c73:0x116};function _0xafb819(_0x9fb873,_0x517474,_0xfd821a,_0x1deaec){return _0x41cf89(_0x9fb873,_0x517474-_0x2f4337._0x52d091,_0xfd821a-0x17f,_0x1deaec-_0x2f4337._0x4f54df);}function _0x5c99e6(_0x4bbdcb,_0x5b0c06,_0x41d150,_0x2fd5a2){return _0x2eae83(_0x4bbdcb-0x6f,_0x2fd5a2,_0x41d150-_0x58fc4c._0x2ffc9b,_0x2fd5a2-_0x58fc4c._0x5d9c73);}return normalizeLocations(await _0x36ff29[_0x5c99e6(_0x4b71d3._0x370f1d,0x6a8,0x578,_0x4b71d3._0x25385a)](_0xafb819(_0x4b71d3._0x419c58,0x31b,_0x4b71d3._0x4582c6,_0x4b71d3._0x2e7beb),textDocumentPosition(_0x4ea651)));},async 'references'(_0x2b0438){const _0x2ccc50={_0x92b42:0x1de,_0x342b90:0x7e};function _0x2c1143(_0x3520e0,_0x31d686,_0x4b0571,_0x1e1ef8){return _0x2eae83(_0x3520e0-_0x2ccc50._0x92b42,_0x31d686,_0x3520e0- -_0x2ccc50._0x342b90,_0x1e1ef8-0xae);}function _0x40ece6(_0xae7943,_0x1d21c3,_0x1f21dd,_0x3ef2f5){return _0x41cf89(_0x3ef2f5,_0x1d21c3-0xf3,_0x1f21dd-_0x449c45._0x55da20,_0xae7943-_0x449c45._0x381ce4);}return normalizeLocations(await _0x36ff29[_0x40ece6(_0x158af1._0x4b1b78,_0x158af1._0x43f22f,_0x158af1._0x3600d7,0x2e9)](_0x2c1143(_0x158af1._0x51b8bc,_0x158af1._0x3ed81f,0x33e,_0x158af1._0x4c1fd3),{...textDocumentPosition(_0x2b0438),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x4f4492){function _0x96acfd(_0x413088,_0x1a9218,_0x94389f,_0xd92f95){return _0x2eae83(_0x413088-0xf6,_0x1a9218,_0xd92f95-_0x38c563._0x3c3346,_0xd92f95-_0x38c563._0x204514);}function _0x20df02(_0x5192ed,_0x178261,_0x3407c4,_0x202a0e){return _0x41cf89(_0x5192ed,_0x178261-_0x41fe16._0x3b95a4,_0x3407c4-0x1c6,_0x178261-_0x41fe16._0x192fb0);}return await _0x36ff29[_0x96acfd(_0x58bf14._0x278c80,0x27e,0x16f,0x227)](_0x20df02(0x206,_0x58bf14._0x3fd8fd,0x364,_0x58bf14._0x285762),textDocumentPosition(_0x4f4492))??null;},async 'documentSymbol'(_0x547677){const _0x1c8399={_0x47f3fc:0xb3};function _0x1eba5f(_0x19d060,_0x4bf033,_0x4864c0,_0x4b8f5f){return _0x2eae83(_0x19d060-_0x1c8399._0x47f3fc,_0x4bf033,_0x19d060- -0x3ba,_0x4b8f5f-0x9f);}return await _0x36ff29[_0x1eba5f(-0x19f,-0x27e,-0xc9,-0x18d)]('textDocument/documentSymbol',{'textDocument':{'uri':uriForPath(_0x547677)}})??[];},async 'workspaceSymbol'(_0x2928e6){return await _0x36ff29['sendRequest']('workspace/symbol',{'query':_0x2928e6})??[];},async 'implementation'(_0x189139){function _0x3f3888(_0x46aa3f,_0x26c197,_0xcade2c,_0x4cbd83){return _0x2eae83(_0x46aa3f-0xd,_0xcade2c,_0x26c197-_0x5a4aa7._0x28bdad,_0x4cbd83-_0x5a4aa7._0x22a7a6);}function _0x207716(_0x34019c,_0x20921f,_0x2335ce,_0x3767d9){return _0x2eae83(_0x34019c-_0x198796._0x249812,_0x3767d9,_0x20921f-0x2a,_0x3767d9-_0x198796._0x53157a);}return normalizeLocations(await _0x36ff29[_0x3f3888(_0x21b72c._0x3d8430,0x292,0x302,0x298)](_0x3f3888(_0x21b72c._0x203311,_0x21b72c._0x308d19,0x221,0x232),textDocumentPosition(_0x189139)));},async 'prepareCallHierarchy'(_0x2ad81a){const _0x5837a6={_0x4490cf:0x41};function _0x191dd7(_0x26e2e0,_0x1f90ff,_0x4d8c4c,_0x7f33f5){return _0x41cf89(_0x7f33f5,_0x1f90ff-0xe0,_0x4d8c4c-0x1d4,_0x4d8c4c-_0x5837a6._0x4490cf);}return await _0x36ff29['sendRequest'](_0x191dd7(0x98,0xc,-0x7f,_0x33514b._0x26d021),textDocumentPosition(_0x2ad81a))??[];},async 'incomingCalls'(_0x33eb15){function _0x96c815(_0x2acfd6,_0xf9d682,_0x5a642d,_0x23d5c5){return _0x2eae83(_0x2acfd6-0x5a,_0x5a642d,_0x23d5c5- -_0x3d0a03._0x382da4,_0x23d5c5-_0x3d0a03._0x949f0e);}function _0x47fefb(_0x5c9d9c,_0x274935,_0x460687,_0x12cd70){return _0x41cf89(_0x460687,_0x274935-0x1a5,_0x460687-_0x455410._0x5ec5f1,_0x274935-_0x455410._0x222842);}return await _0x36ff29[_0x47fefb(-_0x39476e._0x449773,-0x4c,0xbc,_0x39476e._0x3c4294)](_0x96c815(0x48,0x4f,_0x39476e._0x929eec,0x8f),{'item':_0x33eb15})??[];},async 'outgoingCalls'(_0x308084){const _0x4ea453={_0x53406e:0x1bc};function _0xc494f9(_0x3a36c7,_0x20553f,_0x280915,_0x30bcc2){return _0x2eae83(_0x3a36c7-0x98,_0x30bcc2,_0x3a36c7-_0x1983e9._0x5caf3a,_0x30bcc2-0x1a6);}function _0x14b0a4(_0x2cd5ca,_0x12e825,_0x5726e2,_0x51ad5f){return _0x41cf89(_0x5726e2,_0x12e825-0x111,_0x5726e2-0x1d9,_0x12e825-_0x4ea453._0x53406e);}return await _0x36ff29[_0xc494f9(0x2e6,0x225,_0x507b1c._0x115b57,_0x507b1c._0x1ef56d)](_0xc494f9(0x3c4,0x3e0,_0x507b1c._0x5a9d37,0x413),{'item':_0x308084})??[];}},'waitForDiagnostics'({path:_0x10bae1,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x399e1c={_0x43bbac:0x443},_0x3e1d17={_0x544c10:0x12e,_0x5465d3:0x19b},_0x5c7b4c={_0x3f73b7:0x5},_0x36a3e5={_0x4d3587:0x1d1,_0x4a7b77:0x293};function _0x4238af(_0x290f26,_0x55fe30,_0x485d70,_0x3d1fb7){return _0x2eae83(_0x290f26-_0x36a3e5._0x4d3587,_0x55fe30,_0x485d70- -_0x36a3e5._0x4a7b77,_0x3d1fb7-0x1d5);}const _0x30ccd9=uriForPath(_0x10bae1);function _0x278760(_0x3081e9,_0x36e6b6,_0x4309da,_0x569445){return _0x41cf89(_0x3081e9,_0x36e6b6-0x146,_0x4309da-_0x5c7b4c._0x3f73b7,_0x36e6b6-0x5d2);}if(_0x4b3f0a[_0x4238af(0x221,_0x5f05aa._0x304750,_0x5f05aa._0x5d4c0f,0x27b)](_0x30ccd9))return Promise[_0x278760(_0x5f05aa._0x118560,_0x5f05aa._0x2c5bda,_0x5f05aa._0x5d90ee,0x44a)]();return new Promise(_0x16cc05=>{const _0x36625d={_0x4d449a:0x4b6,_0x39faa4:0x3f0,_0x1e4eec:0x3d0,_0x541629:0x566,_0x19f829:0x44e};function _0x2ce582(_0x6af824,_0x3d7444,_0x18257e,_0x4fe777){return _0x4238af(_0x6af824-_0x3e1d17._0x544c10,_0x3d7444,_0x4fe777-0x342,_0x4fe777-_0x3e1d17._0x5465d3);}const _0x4401ed=setTimeout(()=>{const _0x5e6f4a={_0x3b383f:0x1fc};function _0x374e17(_0x374003,_0x2be58e,_0x24114e,_0x2afee3){return _0x1e3a(_0x374003-_0x5e6f4a._0x3b383f,_0x2afee3);}const _0x5457f4=_0x1b2b48['get'](_0x30ccd9);_0x5457f4?.[_0x717c32(_0x36625d._0x4d449a,_0x36625d._0x39faa4,0x44c,_0x36625d._0x1e4eec)](_0x32cbc7);if(_0x5457f4?.['size']===0x0)_0x1b2b48[_0x374e17(_0x36625d._0x541629,0x541,0x659,_0x36625d._0x19f829)](_0x30ccd9);function _0x717c32(_0x519968,_0x4c241b,_0x3747e9,_0x114de4){return _0x1e3a(_0x3747e9-0xe2,_0x4c241b);}_0x16cc05();},timeoutMs),_0x32cbc7=()=>{clearTimeout(_0x4401ed),_0x16cc05();};function _0x3bb437(_0x22d371,_0x14456c,_0x316817,_0x6fe1e9){return _0x278760(_0x14456c,_0x316817- -_0x399e1c._0x43bbac,_0x316817-0xef,_0x6fe1e9-0x1f);}const _0x530ba9=_0x1b2b48[_0x3bb437(_0x23d468._0x1c59fa,0x203,_0x23d468._0x38a6bd,_0x23d468._0x472923)](_0x30ccd9)??new Set();_0x530ba9[_0x2ce582(_0x23d468._0xbe8875,_0x23d468._0xe67cd6,0x352,0x301)](_0x32cbc7),_0x1b2b48['set'](_0x30ccd9,_0x530ba9);});},async 'shutdown'(){const _0x4d9f82={_0x11e780:0x1a3,_0x1d69c2:0x227};function _0x591c74(_0x229d5f,_0x541a14,_0x5d5e5f,_0x216ee7){return _0x41cf89(_0x5d5e5f,_0x541a14-0xbd,_0x5d5e5f-_0x48a059._0x112885,_0x541a14-_0x48a059._0x2d9591);}if(_0x360b0b)return;_0x360b0b=!![];function _0x46cb8a(_0x43cc30,_0x123d1e,_0x29c601,_0x1422bb){return _0x41cf89(_0x123d1e,_0x123d1e-0x96,_0x29c601-_0x4d9f82._0x11e780,_0x43cc30-_0x4d9f82._0x1d69c2);}try{await _0x36ff29['sendRequest']('shutdown',null),_0x36ff29[_0x591c74(0x208,_0x33f467._0x5b3e2a,0xf3,_0x33f467._0x586e50)](_0x46cb8a(0x2d6,_0x33f467._0x2aaba4,0x2d6,0x380));}catch{}finally{_0x36ff29[_0x46cb8a(0x170,_0x33f467._0x2b1497,_0x33f467._0x415f4b,0x151)](),_0x1fcf3c[_0x46cb8a(0x364,0x35a,_0x33f467._0x37fc86,0x4b5)]['process']['kill']();}}};return _0x21dee3;}import{spawn as _0x421f46}from'child_process';import{access as _0x3b43f5}from'fs/promises';import _0x2771dd from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x2b97b1 from'os';import _0x181397 from'path';import _0x2406e1 from'which';var installPromises=new Map();function sanitizePackageName(_0x45e1dd){const _0x417442={_0x4b43b8:0x64,_0x17a30c:0xf1,_0x49703d:0x409},_0x53273f={_0x328144:0x112,_0xa4a74b:0x12e,_0x465fff:0x8c},_0x160301={_0x2f2b46:0x1a9,_0x15fce8:0x320};function _0x44593a(_0xc1c385,_0x5323bf,_0x2786c7,_0x147e22){return _0x567203(_0x147e22,_0x5323bf-_0x160301._0x2f2b46,_0x2786c7-_0x160301._0x15fce8,_0x147e22-0x129);}function _0x767bc4(_0x13d70e,_0x5e28f1,_0x2fce73,_0x1be898){return _0x567203(_0x5e28f1,_0x5e28f1-_0x53273f._0x328144,_0x13d70e- -_0x53273f._0xa4a74b,_0x1be898-_0x53273f._0x465fff);}return _0x45e1dd[_0x767bc4(-0x45,-_0x417442._0x4b43b8,0x11,_0x417442._0x17a30c)](/^@/,'')[_0x44593a(0x494,0x4d7,_0x417442._0x49703d,0x558)](/[/]/g,'__');}function binaryNameForPlatform(_0x48a429){const _0x261713={_0x349a95:0x5f1,_0x2fb5e4:0x554,_0xfde587:0x2b8,_0x16eb2d:0x387,_0x519b21:0x57c},_0x134745={_0x47861c:0x51e,_0x1b2a6c:0x1c8},_0xfc4e64={_0x856a37:0x49a,_0x5afaf4:0x12e};function _0x246952(_0x447619,_0xdad0ff,_0x13c8f8,_0x227b1c){return _0x29bb69(_0x447619-0x1c6,_0xdad0ff-_0xfc4e64._0x856a37,_0x447619,_0x227b1c-_0xfc4e64._0x5afaf4);}function _0x4a51ef(_0x42ed09,_0x4ec503,_0x68be97,_0x5c20bf){return _0x567203(_0x4ec503,_0x4ec503-0x83,_0x42ed09-_0x134745._0x47861c,_0x5c20bf-_0x134745._0x1b2a6c);}return process[_0x4a51ef(_0x261713._0x349a95,0x621,0x533,_0x261713._0x2fb5e4)]===_0x246952(_0x261713._0xfde587,_0x261713._0x16eb2d,0x406,0x321)?_0x48a429+_0x4a51ef(0x586,0x5fd,_0x261713._0x519b21,0x526):_0x48a429;}async function exists(_0x5112de){try{return await access(_0x5112de),!![];}catch{return![];}}function runNpmInstall(_0x35c540,_0x5524a5,_0xe9d22a){const _0x3c79e2={_0xee21f6:0x393,_0x27edb4:0x13b,_0x35bc98:0x113,_0x52eedd:0x2a,_0x383de2:0x65,_0x10ce1e:0xd7,_0x511204:0x3b0,_0x1ae414:0x451,_0x338da2:0x107,_0x1f6dce:0x17d,_0x7a987e:0x67,_0x1c9874:0xd,_0x58a8a0:0x11c,_0x2536c6:0x135},_0x16b4c8={_0x5dce98:0xa6},_0x2dbff6={_0x1c3153:0x319};return new Promise(_0x2d6b56=>{function _0x12a685(_0x1f409d,_0x5d6ff9,_0xe8573f,_0x4ad705){return _0x1e3a(_0x1f409d- -_0x2dbff6._0x1c3153,_0xe8573f);}const _0x4c9a25=spawn(_0x5e5cb8(0x2ea,_0x3c79e2._0xee21f6,0x24a,0x2d4),[_0x12a685(_0x3c79e2._0x27edb4,_0x3c79e2._0x35bc98,_0x3c79e2._0x52eedd,_0x3c79e2._0x383de2),_0x12a685(0x71,0x136,-_0x3c79e2._0x10ce1e,0x169),_0x35c540,_0x5524a5],{'env':_0xe9d22a,'stdio':_0x5e5cb8(0x359,_0x3c79e2._0x511204,0x468,_0x3c79e2._0x1ae414)});_0x4c9a25['on'](_0x12a685(-_0x3c79e2._0x338da2,-_0x3c79e2._0x1f6dce,-_0x3c79e2._0x7a987e,-0x39),()=>_0x2d6b56(![]));function _0x5e5cb8(_0x33fc21,_0x3d2cb1,_0x167cc7,_0x4cf054){return _0x1e3a(_0x33fc21- -_0x16b4c8._0x5dce98,_0x3d2cb1);}_0x4c9a25['on'](_0x12a685(_0x3c79e2._0x1c9874,-0xa9,_0x3c79e2._0x58a8a0,_0x3c79e2._0x2536c6),_0x2b06dc=>_0x2d6b56(_0x2b06dc===0x0));});}function shouldDisableLspDownload(_0x27ee2e=process[_0x29bb69(-0x155,-0x60,0x4d,0xe3)]){const _0x192412={_0xbc499c:0x2a,_0xa0a562:0x4f,_0x29d255:0xe},_0x1ec6c8={_0xf943c9:0x10c,_0x586d13:0x1c8};function _0x2c4d27(_0x4a292e,_0x5a3218,_0x14e435,_0x33f444){return _0x567203(_0x5a3218,_0x5a3218-_0x1ec6c8._0xf943c9,_0x33f444-0x15,_0x33f444-_0x1ec6c8._0x586d13);}const _0xfeb55=_0x27ee2e['NUVIN_DISABLE_LSP_DOWNLOAD']?.['toLowerCase']();return _0xfeb55==='true'||_0xfeb55==='1'||_0xfeb55===_0x2c4d27(_0x192412._0xbc499c,_0x192412._0xa0a562,-0x8,_0x192412._0x29d255)||_0xfeb55==='on';}function getLspPackageDir(_0x2d4730){const _0x40a5d3={_0x5bf879:0x2c,_0x1078b4:0x26,_0x2e8f0a:0x47,_0xb10fdf:0x23,_0x5c45bc:0xe0,_0x1314a5:0x6d,_0x26686e:0x531,_0x204c8b:0x416,_0x4b45dc:0x4ef,_0x43044a:0x496,_0x3a81c3:0x17d},_0x41acef={_0x4aee2c:0x19f,_0x28c690:0x49},_0x36bc50={_0x45f8ff:0x57};function _0x15353f(_0x3b84ad,_0x1fa905,_0x495aac,_0x418891){return _0x567203(_0x495aac,_0x1fa905-0x6b,_0x418891-0x2b1,_0x418891-_0x36bc50._0x45f8ff);}function _0x24f3b5(_0x457a1e,_0x3ff06f,_0x4328fa,_0x5055ab){return _0x29bb69(_0x457a1e-_0x41acef._0x4aee2c,_0x5055ab- -0x8a,_0x4328fa,_0x5055ab-_0x41acef._0x28c690);}return _0x181397['join'](_0x2b97b1[_0x24f3b5(_0x40a5d3._0x5bf879,-0xb0,_0x40a5d3._0x1078b4,-_0x40a5d3._0x2e8f0a)](),_0x24f3b5(-0x18b,_0x40a5d3._0xb10fdf,_0x40a5d3._0x5c45bc,-_0x40a5d3._0x1314a5),_0x15353f(_0x40a5d3._0x26686e,_0x40a5d3._0x204c8b,_0x40a5d3._0x4b45dc,_0x40a5d3._0x43044a),_0x24f3b5(-_0x40a5d3._0x3a81c3,-0x12c,-0x14f,-0x1dc),sanitizePackageName(_0x2d4730));}function getLspBinDir(_0x2b7e29){const _0xf964fd={_0x1aa1a9:0x18c,_0x117548:0x297,_0x3af542:0xb4};function _0x12e8f3(_0x22a99b,_0x176a9f,_0x3e41ae,_0x22431c){return _0x29bb69(_0x22a99b-0x1df,_0x22431c-0x16e,_0x3e41ae,_0x22431c-0xfa);}function _0x42bcd3(_0x25d55c,_0x1d8c3a,_0x3e8b92,_0x20ef41){return _0x29bb69(_0x25d55c-0xd6,_0x20ef41-0x29d,_0x3e8b92,_0x20ef41-0x1a6);}return _0x181397[_0x42bcd3(0x21a,_0xf964fd._0x1aa1a9,0x207,_0xf964fd._0x117548)](getLspPackageDir(_0x2b7e29),_0x42bcd3(0x2d4,0x9c,_0xf964fd._0x3af542,0x1b3),'.bin');}async function findPackageBinary(_0x1a41a3,_0x2caff1){const _0x34de90={_0x39a894:0x455,_0x4d67cf:0x411,_0x27c591:0x31f,_0x1ff1a3:0x402,_0x409198:0x326,_0x3bb0fc:0x3ed,_0x33879b:0x398,_0x5c0f28:0x463},_0x39c826={_0xa7738f:0x16c};function _0x33d919(_0x5e8309,_0x2eee11,_0x1a4ed5,_0x2274e0){return _0x567203(_0x5e8309,_0x2eee11-0x27,_0x2274e0-0x438,_0x2274e0-_0x39c826._0xa7738f);}let _0x2484cd=_0x181397[_0x6f4f14(_0x34de90._0x39a894,0x45e,_0x34de90._0x4d67cf,_0x34de90._0x27c591)](_0x2caff1);const _0x4229c2=binaryNameForPlatform(_0x1a41a3);function _0x6f4f14(_0x46f957,_0x56ebb3,_0x34f9d4,_0x411c65){return _0x567203(_0x411c65,_0x56ebb3-0x15d,_0x56ebb3-0x3b8,_0x411c65-0x10);}while(!![]){const _0x1f9aa3=_0x181397['join'](_0x2484cd,_0x6f4f14(0x3f8,_0x34de90._0x1ff1a3,0x4cf,0x417),'.bin',_0x4229c2);if(await exists(_0x1f9aa3))return _0x1f9aa3;const _0x24f14f=_0x181397[_0x6f4f14(_0x34de90._0x409198,_0x34de90._0x3bb0fc,_0x34de90._0x33879b,_0x34de90._0x5c0f28)](_0x2484cd);if(_0x24f14f===_0x2484cd)return void 0x0;_0x2484cd=_0x24f14f;}}async function findPathBinary(_0x311b43,_0x3850aa){const _0x37daac={_0x3ef9bf:0x4fc,_0x3aede6:0x506,_0x2167ec:0x3d4,_0x286fc8:0x4b4,_0x29f0c4:0x59e},_0x33ff98=getLspBinDir(_0x3850aa),_0x3913e1=[_0x33ff98,process[_0x938bf5(0x46b,_0x37daac._0x3ef9bf,_0x37daac._0x3aede6,0x56d)]['PATH']][_0x938bf5(0x426,0x3fa,_0x37daac._0x2167ec,_0x37daac._0x286fc8)](Boolean)[_0x938bf5(0x494,_0x37daac._0x29f0c4,0x643,0x5c7)](_0x181397[_0x938bf5(0x5d9,0x5fa,0x525,0x562)]);function _0x341eea(_0x411050,_0x5436a7,_0x3800b9,_0x474089){return _0x567203(_0x5436a7,_0x5436a7-0x143,_0x3800b9-0x29b,_0x474089-0x151);}function _0x938bf5(_0x834f4d,_0x54e392,_0x312ba9,_0x596d4a){return _0x567203(_0x834f4d,_0x54e392-0x198,_0x596d4a-0x499,_0x596d4a-0x10c);}try{return await _0x2406e1(_0x311b43,{'path':_0x3913e1});}catch{return void 0x0;}}async function resolvePackageBinary(_0x4cfcaf){const _0x471aee={_0x1cbf0e:0x2de,_0x506e1e:0x219,_0x9639e6:0x134,_0x345f06:0xf7,_0x419c3a:0x35,_0x39826e:0xb5,_0x428f67:0x102,_0xbe18e6:0x30,_0x80a0af:0x14b,_0x41a0b2:0x167,_0xefd9cd:0x7a,_0x5adf4c:0x7a,_0x37eeee:0x2a,_0x447696:0xdf,_0xc07fd3:0x364,_0x1c5635:0x228,_0x26486b:0x200},_0xaeb870={_0x214c6c:0x1fa,_0x1a356f:0x33d,_0x56d0d6:0x1b0,_0x1aeb85:0x2f1},_0x4c7c80={_0x46bde4:0x167},_0x2437d1={_0x32b58f:0x14e,_0x3ff911:0xb5},_0x35b7ac=_0x4cfcaf[_0x305da7(0x290,0x402,_0x471aee._0x1cbf0e,_0x471aee._0x506e1e)]??_0x4cfcaf[_0x32e476(_0x471aee._0x9639e6,-_0x471aee._0x345f06,0x2a,_0x471aee._0x419c3a)],_0x1410ab=await findPackageBinary(_0x35b7ac,_0x4cfcaf[_0x32e476(-0x1c0,0x28,-_0x471aee._0x39826e,0x35)]);if(_0x1410ab)return _0x1410ab;const _0x1425bc=await findPathBinary(_0x35b7ac,_0x4cfcaf[_0x32e476(0xdd,_0x471aee._0x428f67,0x2a,_0x471aee._0xbe18e6)]);if(_0x1425bc)return _0x1425bc;function _0x305da7(_0x3e0f1b,_0x11a1ec,_0x5304f1,_0x1dbef9){return _0x29bb69(_0x3e0f1b-0x12e,_0x5304f1-0x3fe,_0x1dbef9,_0x1dbef9-0x177);}function _0x32e476(_0x106c4b,_0x3cfcfd,_0x79853d,_0x28ced7){return _0x567203(_0x106c4b,_0x3cfcfd-0x163,_0x79853d- -_0x2437d1._0x32b58f,_0x28ced7-_0x2437d1._0x3ff911);}const _0x3cb861=_0x4cfcaf[_0x32e476(-_0x471aee._0x80a0af,-_0x471aee._0x41a0b2,-_0x471aee._0xefd9cd,0x75)]??process[_0x32e476(-0x9b,-0xb8,-_0x471aee._0x5adf4c,-0x150)];if(shouldDisableLspDownload(_0x3cb861))return void 0x0;const _0x4662f2=getLspPackageDir(_0x4cfcaf['packageName']),_0x76cf09=_0x4cfcaf[_0x32e476(0xdf,-0x11d,_0x471aee._0x37eeee,_0x471aee._0x447696)]+':'+_0x35b7ac;let _0x477f0a=installPromises[_0x305da7(_0x471aee._0xc07fd3,_0x471aee._0x1c5635,0x34d,_0x471aee._0x26486b)](_0x76cf09);!_0x477f0a&&(_0x477f0a=((async()=>{await mkdir(_0x4662f2,{'recursive':!![]});function _0x2c3049(_0x54b3e1,_0x10b0f0,_0xc4fc89,_0x30cb88){return _0x32e476(_0xc4fc89,_0x10b0f0-0x136,_0x10b0f0-0x3c7,_0x30cb88-_0x4c7c80._0x46bde4);}function _0x34d32d(_0x555600,_0xf7d644,_0x14a7a9,_0xd8e4db){return _0x32e476(_0x14a7a9,_0xf7d644-0x1cb,_0x555600-0x1d0,_0xd8e4db-0x87);}const _0x583ccc=await runNpmInstall(_0x4662f2,_0x4cfcaf[_0x34d32d(_0xaeb870._0x214c6c,_0xaeb870._0x1a356f,0x1a0,0x2f5)],_0x3cb861);if(!_0x583ccc)return void 0x0;const _0x553b09=_0x181397[_0x34d32d(_0xaeb870._0x56d0d6,0x2af,_0xaeb870._0x1aeb85,0x1c5)](getLspBinDir(_0x4cfcaf['packageName']),binaryNameForPlatform(_0x35b7ac));return await exists(_0x553b09)?_0x553b09:void 0x0;})()),installPromises['set'](_0x76cf09,_0x477f0a));try{return await _0x477f0a;}catch{return void 0x0;}finally{installPromises['delete'](_0x76cf09);}}var TYPESCRIPT_EXTENSIONS=[_0x567203(0xe3,0x31,0xc3,-0x59),_0x567203(0x109,0x110,-0x2,0xb1),_0x29bb69(-0xbf,-0xe1,-0x7b,-0x1f1),_0x29bb69(-0x241,-0x14d,-0x1b9,-0x28),'.mjs','.cjs',_0x29bb69(-0x47,-0xb5,0x53,-0x1a1),_0x567203(0x1a8,0x352,0x23e,0x1ef)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x29bb69(-0x168,-0x13a,-0x1a4,-0x132),_0x29bb69(-0xa3,-0x156,-0x172,-0x291)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x567203(0x99,0xd0,0x122,0x120),_0x567203(-0xe7,-0xa3,-0x17,0xfe),'pnpm-lock.yaml',_0x567203(-0xee,0xd9,0x1c,-0xce),_0x29bb69(0x1a2,0x118,-0x33,0x1da),'jsconfig.json',_0x29bb69(0x28,-0xc6,-0x1ad,-0x12f)],BIOME_ROOT_MARKERS=['biome.json',_0x567203(0xc7,0x1dc,0x1e0,0x130),_0x29bb69(-0x104,0x3,-0x34,-0x13a),_0x29bb69(-0x139,-0x12,-0x81,-0x8d),_0x567203(-0x37,0x2e,-0x17,0xe3),_0x29bb69(-0x13a,0x11,0xed,0x32),'yarn.lock',_0x567203(-0xd6,0x193,0x6e,0x166)];async function exists2(_0x58bbac){try{return await _0x3b43f5(_0x58bbac),!![];}catch{return![];}}async function findUp(_0xf56013,_0x188872){const _0xb44cf2={_0x5b30b9:0x5b8,_0x2365e6:0x48b,_0x500e5d:0x371,_0x35075d:0x584,_0x33e9fd:0x5d5,_0x1aa4a:0x185,_0x386e0f:0xb0,_0x341582:0xb7},_0x29ef73={_0x314600:0x74};function _0x47b443(_0x238b41,_0x43c813,_0x1921af,_0x2ab625){return _0x29bb69(_0x238b41-0x1db,_0x43c813-0x58a,_0x1921af,_0x2ab625-_0x29ef73._0x314600);}let _0x2517df=_0x2771dd['resolve'](_0xf56013);function _0x203e96(_0x19f99d,_0x207669,_0x5ee34a,_0x30d4f8){return _0x567203(_0x5ee34a,_0x207669-0x3d,_0x207669- -0x1d5,_0x30d4f8-0xe0);}const _0x1e815a=_0x2771dd['extname'](_0x2517df);if(_0x1e815a)_0x2517df=_0x2771dd[_0x47b443(_0xb44cf2._0x5b30b9,_0xb44cf2._0x2365e6,_0xb44cf2._0x500e5d,0x4e6)](_0x2517df);while(!![]){for(const _0x52b371 of _0x188872){if(await exists2(_0x2771dd[_0x47b443(0x474,_0xb44cf2._0x35075d,_0xb44cf2._0x33e9fd,0x693)](_0x2517df,_0x52b371)))return _0x2517df;}const _0x4c227d=_0x2771dd[_0x203e96(-_0xb44cf2._0x1aa4a,-0x1a0,-_0xb44cf2._0x386e0f,-_0xb44cf2._0x341582)](_0x2517df);if(_0x4c227d===_0x2517df)return void 0x0;_0x2517df=_0x4c227d;}}async function hasDenoRoot(_0x25c0d4){const _0x4d3ce2={_0xd61d2d:0x177,_0x38c5ac:0x63,_0x2f49bc:0x5c,_0x42d1ac:0x22,_0x21f805:0xd3,_0x1316c2:0x100,_0x45198f:0x187,_0x11d74d:0x14d,_0x578b66:0x111,_0x202e51:0xf5},_0x39d38={_0x210bcf:0x9},_0x1aa048={_0x5cc6b9:0x1b,_0x3ef4b5:0x1cc};function _0x5d7d7e(_0xbe31eb,_0x2ee631,_0x5da197,_0x191463){return _0x567203(_0xbe31eb,_0x2ee631-0x6b,_0x2ee631- -_0x1aa048._0x5cc6b9,_0x191463-_0x1aa048._0x3ef4b5);}function _0x584af3(_0x8a9f73,_0x676585,_0x899284,_0x1d6c94){return _0x567203(_0x1d6c94,_0x676585-0xdb,_0x899284- -0x191,_0x1d6c94-_0x39d38._0x210bcf);}return await exists2(_0x2771dd[_0x584af3(-0x3c,-_0x4d3ce2._0xd61d2d,-_0x4d3ce2._0x38c5ac,-0x103)](_0x25c0d4,_0x584af3(-_0x4d3ce2._0x2f49bc,-_0x4d3ce2._0x42d1ac,-0xf0,-_0x4d3ce2._0x21f805)))||await exists2(_0x2771dd[_0x5d7d7e(0x10e,0x113,0x21c,_0x4d3ce2._0x1316c2)](_0x25c0d4,_0x584af3(-_0x4d3ce2._0x45198f,-_0x4d3ce2._0x11d74d,-_0x4d3ce2._0x578b66,-_0x4d3ce2._0x202e51)));}async function resolveTsserverPath(_0x4143e0){const _0xf7c319={_0x17a1f4:0x576,_0x1bfc50:0x562,_0x1d2e86:0x3e1,_0x2288df:0x633,_0x1ed653:0x554,_0x184492:0x596,_0x34b0bf:0x5d6,_0x2c2e32:0x667,_0x4e1b08:0x6d2,_0x4e1fe4:0x5bb,_0x2c7833:0x46a,_0x26fc24:0x4c2,_0x59bdc9:0x512,_0x38610c:0x6ff,_0x548299:0x667,_0x3ae6f5:0x790,_0x58c325:0x6d0,_0x58a3d0:0x509,_0x1800e7:0x4d5,_0x3230fb:0x400,_0x245538:0x39e,_0x52d439:0x4e6,_0x590148:0x3a4,_0x4a25b5:0x3c3,_0x15fdae:0x4e9,_0x2e1233:0x5a9,_0x1069d8:0x5f9,_0x324196:0x749,_0x3d4989:0x54d,_0x537d2b:0x69b,_0x32868d:0x3de,_0x535840:0x500},_0x519d58={_0x2983b2:0x1d4,_0x2a64c7:0x4ec,_0x33fdcc:0x18d},_0x2eb11c={_0x13a404:0x161};let _0x4c8766=_0x2771dd[_0x56c4ff(_0xf7c319._0x17a1f4,0x4cc,_0xf7c319._0x1bfc50,_0xf7c319._0x1d2e86)](_0x4143e0);function _0x56c4ff(_0x4778a2,_0x31b8d9,_0x2d2848,_0x1165ee){return _0x567203(_0x1165ee,_0x31b8d9-0x77,_0x31b8d9-0x426,_0x1165ee-_0x2eb11c._0x13a404);}while(!![]){const _0x16a13e=_0x2771dd[_0x56c4ff(_0xf7c319._0x2288df,_0xf7c319._0x1ed653,_0xf7c319._0x184492,_0xf7c319._0x34b0bf)](_0x4c8766,_0x56c4ff(0x481,0x470,0x420,0x3d2),_0x56c4ff(0x686,_0xf7c319._0x2c2e32,0x6ed,0x58e),_0x56c4ff(_0xf7c319._0x4e1b08,_0xf7c319._0x4e1fe4,0x60d,0x474),_0x56c4ff(0x355,_0xf7c319._0x2c7833,_0xf7c319._0x26fc24,0x591));if(await exists2(_0x16a13e))return _0x16a13e;const _0x47c7ef=_0x2771dd[_0x56c4ff(_0xf7c319._0x59bdc9,0x45b,0x359,0x3b4)](_0x4c8766);if(_0x47c7ef===_0x4c8766)break;_0x4c8766=_0x47c7ef;}const _0x212884=getLspPackageDir(_0x56c4ff(_0xf7c319._0x38610c,_0xf7c319._0x548299,_0xf7c319._0x3ae6f5,_0xf7c319._0x58c325)),_0x189fe1=await resolvePackageBinary({'packageName':'typescript','binaryName':_0x56c4ff(_0xf7c319._0x58a3d0,_0xf7c319._0x1800e7,_0xf7c319._0x3230fb,0x3b0),'startDir':_0x4143e0});function _0x8257ca(_0x14cc65,_0xfeb761,_0x1bff5f,_0x2f4b08){return _0x29bb69(_0x14cc65-_0x519d58._0x2983b2,_0x1bff5f-_0x519d58._0x2a64c7,_0x2f4b08,_0x2f4b08-_0x519d58._0x33fdcc);}if(!_0x189fe1)return void 0x0;const _0x1be5f8=_0x2771dd[_0x8257ca(_0xf7c319._0x245538,0x524,_0xf7c319._0x52d439,_0xf7c319._0x590148)](_0x212884,_0x8257ca(0x35f,0x460,0x402,_0xf7c319._0x4a25b5),_0x8257ca(_0xf7c319._0x15fdae,_0xf7c319._0x2e1233,_0xf7c319._0x1069d8,_0xf7c319._0x324196),_0x8257ca(0x5a2,0x573,_0xf7c319._0x3d4989,_0xf7c319._0x537d2b),_0x56c4ff(_0xf7c319._0x32868d,0x46a,0x3ae,_0xf7c319._0x535840));return await exists2(_0x1be5f8)?_0x1be5f8:void 0x0;}var TypeScriptServer={'id':'typescript','name':_0x29bb69(-0x89,-0xfc,-0x189,-0x3f),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0xe14cde){const _0x37350c=await findUp(_0xe14cde,TYPESCRIPT_ROOT_MARKERS);if(!_0x37350c)return void 0x0;return await hasDenoRoot(_0x37350c)?void 0x0:_0x37350c;},async 'spawn'(_0x62a769){const _0x27f27c={_0x458646:0x6b9,_0x4513a0:0x836,_0xba651c:0x78a,_0x1ecc9e:0x61a,_0x1404b9:0x706},_0x55795e={_0x4d6423:0xe3,_0x2a33f1:0xa5},_0x46a0da={_0x4bf3d4:0x8b};function _0x10a47b(_0x2ecaf6,_0x36278b,_0x4dc17b,_0x2a93e5){return _0x567203(_0x36278b,_0x36278b-_0x46a0da._0x4bf3d4,_0x4dc17b-0x528,_0x2a93e5-0x25);}function _0x56fad9(_0x47a163,_0x4eb7c4,_0xd28481,_0x202a8e){return _0x567203(_0x47a163,_0x4eb7c4-0x31,_0xd28481- -_0x55795e._0x4d6423,_0x202a8e-_0x55795e._0x2a33f1);}const _0x457198=await resolveTsserverPath(_0x62a769);if(!_0x457198)return void 0x0;const _0x25fd11=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':_0x10a47b(_0x27f27c._0x458646,_0x27f27c._0x4513a0,_0x27f27c._0xba651c,0x809),'startDir':_0x62a769});if(!_0x25fd11)return void 0x0;return{'process':_0x421f46(_0x25fd11,['--stdio'],{'cwd':_0x62a769,'stdio':_0x10a47b(0x633,0x641,_0x27f27c._0x1ecc9e,_0x27f27c._0x1404b9)}),'initialization':{'tsserver':{'path':_0x457198}}};}},BiomeServer={'id':'biome','name':_0x567203(0xb,0x1ae,0x116,0x3a),'extensions':BIOME_EXTENSIONS,async 'root'(_0x5359ef){return findUp(_0x5359ef,BIOME_ROOT_MARKERS);},async 'spawn'(_0x59e482){const _0x1e8431={_0x254743:0xb,_0x5c0058:0x1a6,_0x489984:0x310,_0x52170a:0x1d1,_0x2f8f04:0x324,_0x3415a5:0x22e,_0x156e46:0x416,_0x27d55c:0x2d9,_0x295c36:0xec,_0x12cca0:0x28d},_0x17e50c={_0x4a9ba1:0x184};function _0x540183(_0x3e9a64,_0xd288cd,_0x551edf,_0x4c244c){return _0x567203(_0xd288cd,_0xd288cd-0xbb,_0x3e9a64-0x1f2,_0x4c244c-0x42);}const _0x12c81e=await findPackageBinary(_0x1eea09(-0x66,-_0x1e8431._0x254743,-_0x1e8431._0x5c0058,-0xc6),_0x59e482)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0x540183(_0x1e8431._0x489984,0x2a5,0x3a7,_0x1e8431._0x52170a),'startDir':_0x59e482});if(!_0x12c81e)return void 0x0;function _0x1eea09(_0xd2b56,_0x41e893,_0x55bb86,_0x49bcef){return _0x567203(_0x49bcef,_0x41e893-0x6f,_0xd2b56- -_0x17e50c._0x4a9ba1,_0x49bcef-0x135);}return{'process':_0x421f46(_0x12c81e,[_0x540183(_0x1e8431._0x2f8f04,_0x1e8431._0x3415a5,_0x1e8431._0x156e46,_0x1e8431._0x27d55c),_0x1eea09(-0x15b,-_0x1e8431._0x295c36,-0x152,-_0x1e8431._0x12cca0)],{'cwd':_0x59e482,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x55ca04){const _0x3ddfc7={_0x25e869:0x1e8,_0x1b1bd3:0x22f,_0xfb7657:0x2b1,_0x501805:0x1df,_0x776778:0x181},_0x38ed03={_0x14ca7b:0xcb},_0x390d6b={_0x3fe9cb:0xdc,_0xb56b83:0x1cb};function _0x3fd750(_0xd73c06,_0x416f20,_0xe47693,_0x1bab33){return _0x567203(_0x1bab33,_0x416f20-_0x390d6b._0x3fe9cb,_0x416f20-0xa6,_0x1bab33-_0x390d6b._0xb56b83);}const _0x328cae=_0x2771dd[_0x3fd750(_0x3ddfc7._0x25e869,0x19f,_0x3ddfc7._0x1b1bd3,_0x3ddfc7._0xfb7657)](_0x55ca04)['toLowerCase']();function _0x467fc3(_0x332b21,_0x52d64f,_0x339af2,_0x4987e9){return _0x29bb69(_0x332b21-0x183,_0x52d64f-_0x38ed03._0x14ca7b,_0x4987e9,_0x4987e9-0xa);}return BUILTIN_LSP_SERVERS[_0x3fd750(0xcf,0xc1,_0x3ddfc7._0x501805,_0x3ddfc7._0x776778)](_0x3c0308=>_0x3c0308[_0x3fd750(0x1c4,0x202,0x1c6,0x17a)][_0x3fd750(0x249,0x1ef,0x13e,0x2cc)](_0x328cae));}function stateKey(_0x1aa862,_0x5654b8){return _0x5654b8+':'+_0x1aa862['id'];}function diagnosticsKeyToPath(_0x1189c5){const _0x45278d={_0x395998:0x4b6,_0x47e1ea:0x5ef,_0x2312a0:0x46e,_0xf6b9f0:0x5b3,_0xb0e9de:0xc2,_0x2bc518:0x130,_0x2de217:0xf2,_0x11c129:0x57},_0xecb72e={_0x4a5841:0x13e},_0x7e2af2={_0xdc7ecf:0x6e0,_0x2ca487:0x1c};function _0x15e5c9(_0x44eda9,_0x34bff3,_0x1ac3fb,_0x556df3){return _0x29bb69(_0x44eda9-0xfc,_0x556df3-_0x7e2af2._0xdc7ecf,_0x34bff3,_0x556df3-_0x7e2af2._0x2ca487);}function _0x2a1018(_0x36933d,_0x3de2bf,_0x166877,_0x28f3f6){return _0x567203(_0x3de2bf,_0x3de2bf-0x1f1,_0x28f3f6-0x53,_0x28f3f6-_0xecb72e._0x4a5841);}if(!_0x1189c5[_0x15e5c9(_0x45278d._0x395998,_0x45278d._0x47e1ea,_0x45278d._0x2312a0,_0x45278d._0xf6b9f0)](_0x2a1018(-_0x45278d._0xb0e9de,_0x45278d._0x2bc518,-_0x45278d._0x2de217,_0x45278d._0x11c129)))return _0x1189c5;return fileURLToPath(_0x1189c5);}function nextFileVersion(_0x49d9cf,_0x55512f){const _0x167d52={_0x483a39:0xcb},_0x4092aa={_0x56e363:0xa4,_0x5726df:0x62},_0x21cca9={_0x108963:0x244,_0x142ea6:0x1a6};function _0x3beb26(_0x48ade1,_0x56b5a6,_0x57e9f7,_0x178a4c){return _0x29bb69(_0x48ade1-0x12a,_0x178a4c-_0x21cca9._0x108963,_0x48ade1,_0x178a4c-_0x21cca9._0x142ea6);}const _0x43bd44=(_0x49d9cf['fileVersions']['get'](_0x55512f)??0x1)+0x1;_0x49d9cf[_0x36ee95(-0x118,-0x181,-0xbf,-_0x167d52._0x483a39)][_0x36ee95(-0x9f,-0xf7,-0x77,-0xcc)](_0x55512f,_0x43bd44);function _0x36ee95(_0x110285,_0x522ba7,_0x62121a,_0x2c6430){return _0x29bb69(_0x110285-_0x4092aa._0x56e363,_0x2c6430- -_0x4092aa._0x5726df,_0x522ba7,_0x2c6430-0x1f);}return _0x43bd44;}async function collectClientResults(_0x12bd8f){const _0xa4dc33={_0x3f03c0:0x95},_0x1c6643={_0x264ec8:0x33c},_0x458218={_0x5d0634:0x11b};function _0x4b5ba6(_0x4976ab,_0x4899af,_0x291e92,_0x48c873){return _0x29bb69(_0x4976ab-_0x458218._0x5d0634,_0x48c873- -0x90,_0x4976ab,_0x48c873-0x17);}function _0x41ac8d(_0x3ae0a7,_0x210129,_0x181b22,_0x38d120){return _0x29bb69(_0x3ae0a7-0xf3,_0x181b22-_0x1c6643._0x264ec8,_0x210129,_0x38d120-0x2a);}const _0x5c9c61=await Promise['allSettled'](_0x12bd8f);return _0x5c9c61[_0x4b5ba6(-_0xa4dc33._0x3f03c0,-0x19f,-0x192,-0x182)](_0x289177=>_0x289177['status']===_0x4b5ba6(-0x130,-0x111,-0xb6,-0x193)?_0x289177[_0x4b5ba6(-0x3e,-0x1a,-0xad,-0x4e)]:[]);}function createLspService(_0x28d2e1={}){const _0x4e1edb={_0xc6102f:0x3fa,_0x4ab6a4:0x365,_0x3d44f9:0x2b5,_0x65b775:0xa2,_0x1df005:0x193},_0x54bff3={_0x42a18c:0x363,_0x1a8fdd:0x412,_0x4b81bd:0x3aa,_0x21aca9:0x362,_0x86abd3:0x412,_0x2f27d7:0x37f,_0x1444de:0x3b4,_0x56f42e:0x3db,_0x10668b:0x3f6,_0x25615a:0x2cf,_0x1d7af1:0x2ca,_0x433d05:0x12c,_0x10acab:0x1d5,_0xe37c61:0x11a,_0x4a3325:0x2fe,_0x4d14ac:0x3de,_0x4c7caf:0x2a9,_0x308fcf:0x2d9,_0x581d2b:0x2ab,_0x812716:0x13b,_0x57a07b:0x261,_0x5b6383:0x2ab,_0x4a9d32:0x3ca},_0x11125a={_0x3b0f1c:0x4aa},_0x109ef5={_0x5981e4:0x479,_0xf0e1d7:0x3ee},_0x2d4b66={_0x4228b9:0x3a9,_0x120420:0x90,_0x3944bd:0xd0},_0x3f903b={_0x569170:0x14a,_0x5e06b3:0x189,_0x5d3f22:0x19f},_0x5f3c6f={_0x16eccd:0x1a4,_0x59bbcd:0x13e},_0x218f08={_0x39c42e:0x374,_0x513997:0x15a,_0x360182:0x10e},_0x3729ae={_0x39af2c:0x14c,_0x2c3c3e:0xb5},_0x23491a={_0x573d33:0x496},_0x5d2450={_0x321394:0x114},_0xa6c360={_0x100c61:0x242,_0x374377:0x153},_0x3447f0={_0x17cd88:0x0},_0x27e74d={_0xae09a4:0x13a},_0x39fe8f={_0xf98c9b:0x365},_0x50ef84={_0x50794a:0x490,_0x5c1243:0x5b8},_0x3983dc={_0x3dfb2c:0x159,_0x5a5098:0x1d},_0x2f6573={_0x5b5c40:0x1b1,_0x5ebd32:0xae,_0x1e889f:0x72,_0x4b70e3:0xcd},_0x4f7261={_0xb92a2b:0x49c,_0x145ac5:0x11b},_0x1b9fe1={_0x1d0f8d:0x192,_0x5a4c6d:0x1e6},_0x31b6a8={_0x39edde:0x1a3,_0x9ae764:0x20c,_0x2382fc:0x2b2,_0x32c8a1:0x1ec,_0x222ebc:0x121},_0x3c6915={_0x19a5a0:0x164},_0x2485d8={_0x3a2bbd:0x203},_0x5e62b3={_0x452ccc:0x73,_0x34a01e:0x3},_0xf29f03={_0x2a0cc8:0x199,_0x7ed79a:0xb7},_0x5aedcc={_0x1e5759:0x193},_0x3c572d={_0x47e25e:0x262,_0x37399d:0x2c8,_0x3fdcb5:0x2d8},_0x20c9fb={_0x1801f4:0x759,_0x12ddaa:0x66e,_0x135371:0x110,_0xbf9c96:0x16,_0x181c7d:0xc6},_0xd0660e={_0x37c1d0:0xaf,_0x21e8f7:0x100,_0x23c093:0x2c,_0x1870f6:0x50,_0x33d8f0:0x2e,_0x262846:0x2f,_0x15a549:0x77,_0x29eed3:0x17e,_0x41f9ee:0x101,_0x569ec9:0xff,_0x527d3e:0x86,_0x203c1c:0xd5,_0x1be118:0x10a,_0xb25570:0x248,_0x4548d7:0x15b,_0x3ec342:0xfb,_0x35246b:0x42,_0x1c8272:0x149,_0x5e6e55:0xca,_0x38c256:0x1fb,_0x3a355e:0xa2,_0x25fe0e:0x1a4,_0x1ce201:0x94,_0x7f26d0:0xb0,_0x51cc21:0x16b,_0x4f32e0:0x34},_0x5529dc={_0x509f35:0x332,_0x270cec:0x1e9,_0x5816b4:0x11c,_0x237274:0x2f5,_0x406e2d:0x27e,_0x213e90:0x3b,_0x38c04b:0x6e,_0x47edec:0xd6,_0x1bb842:0x45,_0x4a3231:0x80,_0x161578:0x2df,_0x3add0a:0x308,_0x2adf0a:0x2f0},_0x3d63be={_0x16b24c:0xd2,_0x498460:0x1f4,_0x14291c:0x28,_0x290e64:0x6ca,_0x1ac9ad:0x7e2,_0x4f237a:0x5d0,_0x42c81f:0x6b9,_0x31ceec:0xb9,_0x565ff7:0x525,_0x1c8012:0x478,_0x2a4de3:0x56f},_0x5e21fc={_0x29f520:0x12d,_0x487961:0x556,_0x157abc:0x158,_0x18f70b:0x235,_0x22b5a2:0x1ee,_0x5d8ec0:0xfc,_0x196cc0:0x80,_0x44e9a5:0x15a,_0xd72361:0x443,_0x56c995:0x3f9,_0x102967:0x4d1,_0x44a737:0x41b,_0xc2d267:0x5a7,_0x105547:0x578,_0x263b7b:0x255,_0x3915de:0xea,_0x16932c:0xbc,_0x3e7e5b:0x50},_0x32f4df={_0x471487:0x447,_0x43540e:0xfc},_0x13b24d={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x3afd8b=()=>_0x28d2e1[_0x523e17(0x104,0x12,0xb5,0x154)]!==![];async function _0x33749c(_0x1f89a3,_0x1b33e7){const _0x297a71={_0x2dfc9c:0x16b,_0x38d677:0x117,_0x5953e8:0x165},_0x294e64=stateKey(_0x1f89a3,_0x1b33e7),_0x2cec71=_0x13b24d[_0x84d12e(_0x3d63be._0x16b24c,0x98,0x8a,0xfc)][_0x84d12e(0x174,_0x3d63be._0x498460,-_0x3d63be._0x14291c,0xe4)](_0x33df1b=>_0x33df1b[_0x84d12e(0x83,0x27f,0x175,0x130)]===_0x1f89a3['id']&&_0x33df1b[_0x84d12e(0x137,0x200,0x23b,0x183)]===_0x1b33e7);if(_0x2cec71)return _0x2cec71;if(_0x13b24d[_0xfaaa82(0x5aa,_0x3d63be._0x290e64,0x61f,0x6bb)][_0xfaaa82(0x779,_0x3d63be._0x1ac9ad,_0x3d63be._0x4f237a,_0x3d63be._0x42c81f)](_0x294e64))return void 0x0;const _0x56d117=_0x13b24d['spawning'][_0x84d12e(0xd,0x1f0,0x1f8,_0x3d63be._0x31ceec)](_0x294e64);function _0xfaaa82(_0x137357,_0x863162,_0x1dc6b7,_0x476879){return _0x523e17(_0x476879-_0x32f4df._0x471487,_0x863162-0x134,_0x863162,_0x476879-_0x32f4df._0x43540e);}function _0x84d12e(_0x8ae3e5,_0x288a41,_0x52e239,_0x52ef98){return _0x523e17(_0x52ef98-0x33,_0x288a41-0x77,_0x288a41,_0x52ef98-0x34);}if(_0x56d117)return _0x56d117;const _0xc4ce36=((async()=>{const _0x450503={_0x50d639:0x168,_0x177609:0x145,_0x5c2e4a:0x5f4};function _0x4caed3(_0x582b2a,_0x559b7f,_0x566eb0,_0x4b62fd){return _0xfaaa82(_0x582b2a-_0x450503._0x50d639,_0x4b62fd,_0x566eb0-_0x450503._0x177609,_0x566eb0- -_0x450503._0x5c2e4a);}function _0x11f9cb(_0x45a2b1,_0x548794,_0x3e77fe,_0x2a7fc5){return _0xfaaa82(_0x45a2b1-_0x297a71._0x2dfc9c,_0x45a2b1,_0x3e77fe-_0x297a71._0x38d677,_0x548794- -_0x297a71._0x5953e8);}try{const _0x4affa5=await _0x1f89a3[_0x4caed3(0x4f,_0x5e21fc._0x29f520,0x61,0x140)](_0x1b33e7);if(!_0x4affa5)return _0x13b24d[_0x11f9cb(0x68d,_0x5e21fc._0x487961,0x453,0x42c)][_0x4caed3(-0x226,-_0x5e21fc._0x157abc,-0x13f,-_0x5e21fc._0x18f70b)](_0x294e64),void 0x0;const _0x348089=await createLspClient({'server':_0x1f89a3,'root':_0x1b33e7,'handle':_0x4affa5}),_0x37f40e=_0x13b24d['clients'][_0x4caed3(-_0x5e21fc._0x22b5a2,-0x18,-_0x5e21fc._0x5d8ec0,-0xbc)](_0xf2ac31=>_0xf2ac31[_0x4caed3(-0x79,-0x7,-0xb0,-0x139)]===_0x1f89a3['id']&&_0xf2ac31[_0x4caed3(-0x168,-0x109,-0x5d,-0x1a6)]===_0x1b33e7);if(_0x37f40e)return await _0x348089[_0x4caed3(-_0x5e21fc._0x196cc0,-0x10,0x47,_0x5e21fc._0x44e9a5)](),_0x37f40e;return _0x13b24d[_0x11f9cb(0x402,0x3ab,_0x5e21fc._0xd72361,_0x5e21fc._0x56c995)][_0x11f9cb(_0x5e21fc._0x102967,_0x5e21fc._0x102967,0x57d,_0x5e21fc._0x44a737)](_0x348089),_0x348089;}catch{return _0x13b24d[_0x11f9cb(0x5e9,_0x5e21fc._0x487961,_0x5e21fc._0xc2d267,_0x5e21fc._0x105547)][_0x4caed3(-0x7a,-_0x5e21fc._0x263b7b,-0x13f,-_0x5e21fc._0x3915de)](_0x294e64),void 0x0;}finally{_0x13b24d[_0x4caed3(0x53,_0x5e21fc._0x16932c,-0x68,_0x5e21fc._0x3e7e5b)]['delete'](_0x294e64);}})());return _0x13b24d[_0xfaaa82(_0x3d63be._0x565ff7,_0x3d63be._0x1c8012,0x4d9,0x58c)][_0xfaaa82(0x457,_0x3d63be._0x2a4de3,0x3e9,0x514)](_0x294e64,_0xc4ce36),_0xc4ce36;}async function _0x2a3de4(_0xed50e3,_0x3102a2){const _0x31e6dc={_0x16090d:0x7d,_0x48edf3:0xd},_0x23ea67={_0x2de5f4:0x1b5,_0x191480:0x17c};function _0x101f8d(_0x3c731a,_0x350024,_0x48a065,_0x18e85c){return _0x523e17(_0x350024- -0x8b,_0x350024-_0x23ea67._0x2de5f4,_0x3c731a,_0x18e85c-_0x23ea67._0x191480);}if(!_0x3afd8b())return[];const _0x46fba6=[];for(const _0x25f0d1 of getServersForFile(_0xed50e3)){const _0x564eb7=await _0x25f0d1['root'](_0xed50e3);if(!_0x564eb7)continue;const _0x456458=stateKey(_0x25f0d1,_0x564eb7);if(_0x13b24d[_0x101f8d(_0x5529dc._0x509f35,_0x5529dc._0x270cec,_0x5529dc._0x5816b4,_0x5529dc._0x237274)][_0xa95c85(0x3f2,0x2ef,0x2b9,_0x5529dc._0x406e2d)](_0x456458))continue;const _0x4d7cc0=_0x13b24d[_0x101f8d(-_0x5529dc._0x213e90,0x3e,-0xf7,-_0x5529dc._0x38c04b)][_0x101f8d(-_0x5529dc._0x47edec,0x26,-_0x5529dc._0x1bb842,-_0x5529dc._0x4a3231)](_0x5722c3=>_0x5722c3[_0xa95c85(0xca,0x17a,0x1c5,0x290)]===_0x25f0d1['id']&&_0x5722c3[_0x101f8d(0x18f,0xc5,0xe9,-0x70)]===_0x564eb7);if(_0x4d7cc0){_0x46fba6[_0xa95c85(0x371,0x26c,_0x5529dc._0x161578,_0x5529dc._0x3add0a)](_0x4d7cc0);continue;}if(!_0x3102a2)continue;const _0x336d67=await _0x33749c(_0x25f0d1,_0x564eb7);if(_0x336d67)_0x46fba6[_0xa95c85(_0x5529dc._0x2adf0a,0x26c,0x268,0x116)](_0x336d67);}function _0xa95c85(_0x1840b6,_0x598030,_0x49eacd,_0x1621ea){return _0x523e17(_0x598030-_0x31e6dc._0x16090d,_0x598030-_0x31e6dc._0x48edf3,_0x49eacd,_0x1621ea-0x180);}return _0x46fba6;}async function _0x1dd5c(_0x38b90c,_0x219e38=![]){const _0x3870ae={_0x43e1ab:0xd4},_0x59b1a3={_0x46484f:0xa4,_0x5143a1:0x1c4},_0x4ebdef={_0xad5591:0x5cc,_0x380e2d:0x1e1},_0xe3a171=await _0x2a3de4(_0x38b90c,!![]);function _0x12c0f3(_0x56484c,_0x42fa4b,_0x62632f,_0x5288bd){return _0x523e17(_0x5288bd-_0x4ebdef._0xad5591,_0x42fa4b-_0x4ebdef._0x380e2d,_0x62632f,_0x5288bd-0x69);}function _0x4974a9(_0x554e31,_0x3970a4,_0xbee7c2,_0x5e0996){return _0x523e17(_0x554e31-0x115,_0x3970a4-_0x59b1a3._0x46484f,_0xbee7c2,_0x5e0996-_0x59b1a3._0x5143a1);}await Promise[_0x12c0f3(_0x20c9fb._0x1801f4,0x7b6,0x6ef,_0x20c9fb._0x12ddaa)](_0xe3a171[_0x4974a9(_0x20c9fb._0x135371,_0x20c9fb._0xbf9c96,0x1fd,_0x20c9fb._0x181c7d)](async _0x18de99=>{const _0x1880e8={_0x37dc58:0x174};function _0x2e97b2(_0x2759b4,_0x53a05c,_0x520fbf,_0x4ff3b2){return _0x12c0f3(_0x2759b4-_0x3870ae._0x43e1ab,_0x53a05c-0x41,_0x2759b4,_0x520fbf- -0x793);}function _0x11fece(_0x34bec4,_0xa76b4e,_0x970255,_0x3c7d8c){return _0x4974a9(_0xa76b4e- -_0x1880e8._0x37dc58,_0xa76b4e-0x18d,_0x970255,_0x3c7d8c-0x1f0);}!_0x13b24d[_0x11fece(_0xd0660e._0x37c1d0,-0x2a,_0xd0660e._0x21e8f7,-0xa2)]['has'](_0x18de99[_0x2e97b2(-0x92,_0xd0660e._0x23c093,-0xca,-_0xd0660e._0x1870f6)]+':'+_0x18de99[_0x2e97b2(-_0xd0660e._0x33d8f0,-_0xd0660e._0x262846,-_0xd0660e._0x15a549,-0x133)]+':'+_0x38b90c)&&(await _0x18de99[_0x11fece(0x4e,_0xd0660e._0x29eed3,0x29f,0x1e4)][_0x2e97b2(-_0xd0660e._0x41f9ee,-_0xd0660e._0x569ec9,-_0xd0660e._0x527d3e,0x58)]({'path':_0x38b90c}),_0x13b24d[_0x11fece(-0x111,-0x2a,-_0xd0660e._0x203c1c,_0xd0660e._0x1be118)][_0x2e97b2(-_0xd0660e._0xb25570,-_0xd0660e._0x4548d7,-0x159,-_0xd0660e._0x3ec342)](_0x18de99[_0x2e97b2(_0xd0660e._0x35246b,-_0xd0660e._0x1c8272,-_0xd0660e._0x5e6e55,-_0xd0660e._0x38c256)]+':'+_0x18de99[_0x2e97b2(0x59,-_0xd0660e._0x3a355e,-0x77,-_0xd0660e._0x25fe0e)]+':'+_0x38b90c));await _0x18de99[_0x2e97b2(-0xbe,-_0xd0660e._0x1ce201,0x16,_0xd0660e._0x7f26d0)][_0x2e97b2(-0x1aa,-0x89,-_0xd0660e._0x51cc21,-0x1dc)]({'path':_0x38b90c,'version':nextFileVersion(_0x13b24d,_0x38b90c)});if(_0x219e38)await _0x18de99[_0x2e97b2(-0x118,0x13,-_0xd0660e._0x4f32e0,-0x13f)]({'path':_0x38b90c});}));}async function _0x1c1b8b(_0x15ee93){const _0x1b2b05={_0x15dc71:0x1c6,_0x23c47e:0x1f2};await _0x1dd5c(_0x15ee93['file'],![]);function _0x3e0489(_0x216667,_0x6ce785,_0x4a97f6,_0x3da5f6){return _0x523e17(_0x6ce785-_0x1b2b05._0x15dc71,_0x6ce785-0x10c,_0x3da5f6,_0x3da5f6-_0x1b2b05._0x23c47e);}return _0x2a3de4(_0x15ee93[_0x3e0489(_0x3c572d._0x47e25e,_0x3c572d._0x37399d,_0x3c572d._0x3fdcb5,0x258)],![]);}async function _0x2532f3(_0xd729f6){const _0x2c5078={_0x48f232:0x103,_0x24eadc:0x4d};function _0x568dff(_0x45e561,_0x206c54,_0x3acc90,_0x36893e){return _0x523e17(_0x206c54- -_0x2c5078._0x48f232,_0x206c54-0x3,_0x36893e,_0x36893e-_0x2c5078._0x24eadc);}function _0x258e75(_0x5dee36,_0x268830,_0x12ee4c,_0xc31d9f){return _0x523e17(_0x268830-0x16f,_0x268830-_0x5aedcc._0x1e5759,_0x5dee36,_0xc31d9f-0x26);}const _0x72ce09=await _0x1c1b8b(_0xd729f6);return collectClientResults(_0x72ce09[_0x568dff(-_0xf29f03._0x2a0cc8,-0x108,-_0xf29f03._0x7ed79a,-0x5c)](_0x5c5da4=>_0x5c5da4[_0x568dff(0x22a,0xee,-0xd,0xda)][_0x258e75(0x21d,0x292,0x18e,0x183)](_0xd729f6)));}function _0x523e17(_0x1c1a4e,_0x59408a,_0x1445c7,_0x5b8a96){return _0x567203(_0x1445c7,_0x59408a-_0x5e62b3._0x452ccc,_0x1c1a4e-_0x5e62b3._0x34a01e,_0x5b8a96-0x19c);}return{'isEnabled':_0x3afd8b,async 'hasClients'(_0x4bc29c){function _0x1e03ae(_0x3fbe9e,_0x3bc16e,_0x45143,_0x224456){return _0x523e17(_0x3bc16e-_0x2485d8._0x3a2bbd,_0x3bc16e-0x8b,_0x3fbe9e,_0x224456-0x1b3);}function _0x14d986(_0x24d253,_0x4e788c,_0x225c0b,_0x89999){return _0x523e17(_0x89999- -_0x3c6915._0x19a5a0,_0x4e788c-0x119,_0x24d253,_0x89999-0x7e);}return(await _0x2a3de4(_0x4bc29c,![]))[_0x1e03ae(_0x31b6a8._0x39edde,0x1ec,_0x31b6a8._0x9ae764,0x2c3)]>0x0||getServersForFile(_0x4bc29c)[_0x1e03ae(_0x31b6a8._0x2382fc,_0x31b6a8._0x32c8a1,_0x31b6a8._0x222ebc,0xa1)]>0x0;},'touchFile':_0x1dd5c,async 'diagnostics'(){function _0x9d9bd3(_0xf7b869,_0x266516,_0xd0fa6f,_0x144a9a){return _0x523e17(_0x266516- -_0x1b9fe1._0x1d0f8d,_0x266516-0x196,_0xf7b869,_0x144a9a-_0x1b9fe1._0x5a4c6d);}function _0x34e7a5(_0x65b5be,_0x4a2172,_0x2d1618,_0xd0bfc5){return _0x523e17(_0x2d1618-_0x4f7261._0xb92a2b,_0x4a2172-0x1ac,_0x4a2172,_0xd0bfc5-_0x4f7261._0x145ac5);}const _0x39ed03={};for(const _0x436020 of _0x13b24d[_0x9d9bd3(-0x1ce,-0xc9,0x4,-_0x2f6573._0x5b5c40)]){for(const [_0x1553da,_0x5ed1c6]of _0x436020[_0x9d9bd3(-0x112,-_0x2f6573._0x5ebd32,_0x2f6573._0x1e889f,-_0x2f6573._0x4b70e3)]){_0x39ed03[diagnosticsKeyToPath(_0x1553da)]=_0x5ed1c6;}}return _0x39ed03;},async 'diagnosticsForFile'(_0x2a8b41){const _0x564ec8={_0x158990:0x13d,_0x3de2d8:0x27};await _0x1dd5c(_0x2a8b41,!![]);function _0x55ac7a(_0x1128dd,_0x5ec066,_0x3814e0,_0xea4900){return _0x523e17(_0x3814e0-_0x564ec8._0x158990,_0x5ec066-0x9f,_0x5ec066,_0xea4900-_0x564ec8._0x3de2d8);}const _0x4497f9=[];for(const _0x32b3a2 of await _0x2a3de4(_0x2a8b41,![])){for(const [_0xcb16ff,_0x1727be]of _0x32b3a2[_0x55ac7a(0x152,0x2e2,0x221,0x378)]){if(diagnosticsKeyToPath(_0xcb16ff)===_0x2a8b41)_0x4497f9[_0x18e46e(_0x50ef84._0x50794a,0x587,_0x50ef84._0x5c1243,0x51e)](..._0x1727be);}}function _0x18e46e(_0x3eaed4,_0x22d161,_0x5788c3,_0x1c03fe){return _0x523e17(_0x5788c3-0x3c9,_0x22d161-_0x3983dc._0x3dfb2c,_0x1c03fe,_0x1c03fe-_0x3983dc._0x5a5098);}return _0x4497f9;},async 'definition'(_0x1b842c){const _0x2105a0={_0x41c6de:0x135};function _0x3c6938(_0x6a6fac,_0x4b8bba,_0x4d618f,_0x278ea1){return _0x523e17(_0x4d618f-_0x39fe8f._0xf98c9b,_0x4b8bba-0x62,_0x4b8bba,_0x278ea1-0x1f0);}function _0x28a993(_0x278714,_0x544980,_0x4e45ea,_0x105517){return _0x523e17(_0x544980- -_0x2105a0._0x41c6de,_0x544980-0xfb,_0x4e45ea,_0x105517-0x78);}return collectClientResults((await _0x1c1b8b(_0x1b842c))[_0x28a993(-0x218,-_0x27e74d._0xae09a4,-0x167,-0x224)](_0x430d52=>_0x430d52[_0x28a993(0x1fe,0xbc,0x16e,0x205)]['definition'](_0x1b842c)));},async 'references'(_0x6866cc){function _0x2844a2(_0x2e7ef5,_0x505bcf,_0x295c2b,_0x54c179){return _0x523e17(_0x54c179-0x158,_0x505bcf-0x167,_0x2e7ef5,_0x54c179-_0x3447f0._0x17cd88);}function _0x2442b6(_0x10b88b,_0x211572,_0x2b82f1,_0x170f0c){return _0x523e17(_0x211572- -0x102,_0x211572-0x17f,_0x170f0c,_0x170f0c-0x188);}return collectClientResults((await _0x1c1b8b(_0x6866cc))[_0x2844a2(0x126,_0xa6c360._0x100c61,0x26e,_0xa6c360._0x374377)](_0x32d881=>_0x32d881['request'][_0x2442b6(0x28d,0x16c,0x71,0x279)](_0x6866cc)));},async 'hover'(_0x431883){const _0x2fdc5d={_0x241d38:0xf6};function _0x5af93a(_0x1b068b,_0xf71043,_0x6dff82,_0x2b140c){return _0x523e17(_0x1b068b-0x25d,_0xf71043-_0x5d2450._0x321394,_0x2b140c,_0x2b140c-0x141);}function _0x114690(_0x41f29d,_0x185e85,_0x35a08e,_0x97045e){return _0x523e17(_0x97045e- -0x153,_0x185e85-_0x2fdc5d._0x241d38,_0x41f29d,_0x97045e-0xae);}const _0x22b8a4=await Promise[_0x5af93a(0x3e6,0x44e,_0x23491a._0x573d33,0x41c)]((await _0x1c1b8b(_0x431883))['map'](_0x5a9e48=>_0x5a9e48[_0x5af93a(0x44e,0x521,0x33b,0x51d)][_0x5af93a(0x3fa,0x403,0x526,0x3ec)](_0x431883)));return _0x22b8a4['flatMap'](_0x36cc83=>_0x36cc83[_0x114690(-0x1a,0x1b3,0xb,0x11d)]==='fulfilled'&&_0x36cc83[_0x5af93a(0x3d6,0x349,0x4d7,0x397)]?[_0x36cc83[_0x5af93a(0x3d6,0x3b5,0x29e,0x4a6)]]:[]);},async 'documentSymbol'(_0x1a6a98){return await _0x1dd5c(_0x1a6a98,![]),collectClientResults((await _0x2a3de4(_0x1a6a98,![]))['map'](_0x1b8a17=>_0x1b8a17['request']['documentSymbol'](_0x1a6a98)));},async 'workspaceSymbol'(_0x4ddfe9){const _0x5ee5b6={_0x36804e:0x17e};function _0x2c2932(_0x543650,_0x39bce7,_0x2018b7,_0xb0937f){return _0x523e17(_0xb0937f- -_0x5ee5b6._0x36804e,_0x39bce7-0x8e,_0x2018b7,_0xb0937f-0x2e);}function _0x1ce5d8(_0x3ccccf,_0x2e934c,_0x5a89e1,_0x24546d){return _0x523e17(_0x2e934c-0x5b2,_0x2e934c-0x194,_0x5a89e1,_0x24546d-0xb2);}return collectClientResults(_0x13b24d[_0x2c2932(-0x1dd,-0xeb,-_0x3729ae._0x39af2c,-_0x3729ae._0x2c3c3e)][_0x2c2932(-0x1a3,-0x289,-0x129,-0x183)](_0x4443d8=>_0x4443d8[_0x2c2932(0x17b,0x181,-0xb6,0x73)]['workspaceSymbol'](_0x4ddfe9)));},async 'implementation'(_0x2414ce){function _0x196419(_0x68fc60,_0x6062a,_0x2df417,_0x4e58b1){return _0x523e17(_0x68fc60-_0x218f08._0x39c42e,_0x6062a-_0x218f08._0x513997,_0x2df417,_0x4e58b1-_0x218f08._0x360182);}function _0x39cf68(_0x122985,_0x4ee7a4,_0x3fe07f,_0x2296c7){return _0x523e17(_0x2296c7-_0x5f3c6f._0x16eccd,_0x4ee7a4-0x4c,_0x3fe07f,_0x2296c7-_0x5f3c6f._0x59bbcd);}return collectClientResults((await _0x1c1b8b(_0x2414ce))[_0x39cf68(_0x3f903b._0x569170,_0x3f903b._0x5e06b3,0x283,_0x3f903b._0x5d3f22)](_0x20aa82=>_0x20aa82[_0x39cf68(0x42e,0x458,0x3e9,0x395)]['implementation'](_0x2414ce)));},async 'prepareCallHierarchy'(_0x505ed4){return _0x2532f3(_0x505ed4);},async 'incomingCalls'(_0xdd327c){const _0x55b640={_0x236bc2:0x1dd};function _0x556b0f(_0xa91430,_0x28fa8a,_0xf64374,_0x24ff6e){return _0x523e17(_0x28fa8a-_0x55b640._0x236bc2,_0x28fa8a-0xf4,_0xa91430,_0x24ff6e-0x187);}const _0x489c46=await _0x2532f3(_0xdd327c),_0x5b2b31=await _0x1c1b8b(_0xdd327c);function _0x2bd053(_0x2ea32a,_0x52a44f,_0x1a82a9,_0x2d54ac){return _0x523e17(_0x2d54ac-_0x2d4b66._0x4228b9,_0x52a44f-_0x2d4b66._0x120420,_0x52a44f,_0x2d54ac-_0x2d4b66._0x3944bd);}return collectClientResults(_0x5b2b31[_0x2bd053(_0x109ef5._0x5981e4,0x47e,0x318,_0x109ef5._0xf0e1d7)](_0x1664df=>_0x489c46[_0x2bd053(0x366,0x2cf,0x3d5,0x3a4)](_0x393fbc=>_0x1664df[_0x2bd053(0x5fa,0x5f7,0x61f,0x59a)][_0x556b0f(0x31f,0x1d5,0x1be,0x91)](_0x393fbc))));},async 'outgoingCalls'(_0xa9c693){const _0x5b1ac9={_0x338cbb:0x4a1,_0x3bb5a4:0x113},_0x4eb0b7={_0x2079b8:0x194,_0x52d0ac:0xca};function _0x2d31ab(_0x6be36d,_0x143ebd,_0x2edb9e,_0x34d315){return _0x523e17(_0x2edb9e-0xc6,_0x143ebd-_0x4eb0b7._0x2079b8,_0x143ebd,_0x34d315-_0x4eb0b7._0x52d0ac);}const _0x2f791a=await _0x2532f3(_0xa9c693),_0x298bce=await _0x1c1b8b(_0xa9c693);function _0x151e46(_0xb175d1,_0x596d99,_0x50574e,_0x1c810b){return _0x523e17(_0x596d99-_0x5b1ac9._0x338cbb,_0x596d99-_0x5b1ac9._0x3bb5a4,_0x1c810b,_0x1c810b-0x12a);}return collectClientResults(_0x298bce[_0x151e46(0x551,0x4e6,_0x11125a._0x3b0f1c,0x39c)](_0x3babf8=>_0x2f791a['map'](_0x1ddaa1=>_0x3babf8[_0x151e46(0x7ad,0x692,0x559,0x69a)][_0x151e46(0x5a3,0x69f,0x5c3,0x7f4)](_0x1ddaa1))));},async 'shutdown'(){const _0x4065e1={_0x5d4af1:0x174,_0x1ff99b:0x17d},_0x2e005a={_0x1d4820:0x1da,_0x532cef:0xf7,_0x53fc25:0xdf};if(_0x13b24d[_0x885983(0x34b,_0x54bff3._0x42a18c,_0x54bff3._0x1a8fdd,_0x54bff3._0x4b81bd)])return;function _0x885983(_0x16241e,_0x410614,_0x19c0fe,_0x19e83){return _0x523e17(_0x19c0fe-_0x2e005a._0x1d4820,_0x410614-_0x2e005a._0x532cef,_0x19e83,_0x19e83-_0x2e005a._0x53fc25);}_0x13b24d[_0x885983(0x417,_0x54bff3._0x21aca9,_0x54bff3._0x86abd3,_0x54bff3._0x2f27d7)]=!![],await Promise[_0xf4cbe(_0x54bff3._0x1444de,0x407,0x401,0x38a)](_0x13b24d[_0xf4cbe(_0x54bff3._0x56f42e,_0x54bff3._0x10668b,_0x54bff3._0x25615a,_0x54bff3._0x1d7af1)][_0x885983(_0x54bff3._0x433d05,0x2d8,_0x54bff3._0x10acab,_0x54bff3._0xe37c61)](_0x41264e=>_0x41264e[_0xf4cbe(0x396,0x31b,0x49f,0x3f5)]())),_0x13b24d['clients']=[];function _0xf4cbe(_0x23d74f,_0x14bfb0,_0xe14f2c,_0x43d293){return _0x523e17(_0x43d293-0x201,_0x14bfb0-_0x4065e1._0x5d4af1,_0x14bfb0,_0x43d293-_0x4065e1._0x1ff99b);}_0x13b24d['spawning'][_0xf4cbe(_0x54bff3._0x4a3325,_0x54bff3._0x4d14ac,_0x54bff3._0x4c7caf,0x2d2)](),_0x13b24d['broken'][_0xf4cbe(0x1f3,_0x54bff3._0x308fcf,0x280,0x2d2)](),_0x13b24d['fileVersions'][_0x885983(0x361,0x38c,_0x54bff3._0x581d2b,0x214)](),_0x13b24d[_0x885983(_0x54bff3._0x812716,0x28d,0x20f,0x236)][_0x885983(0x2c1,_0x54bff3._0x57a07b,_0x54bff3._0x5b6383,_0x54bff3._0x4a9d32)]();},'status'(){const _0x550c45={_0xcd11c6:0x1aa,_0x547541:0x19,_0x31d928:0x9c};function _0x34dfe1(_0x32a72e,_0x8358e2,_0x413e89,_0x36000c){return _0x523e17(_0x36000c-_0x550c45._0xcd11c6,_0x8358e2-_0x550c45._0x547541,_0x8358e2,_0x36000c-_0x550c45._0x31d928);}function _0x267bd9(_0x3f372e,_0x12e0b2,_0x2f942d,_0x13603a){return _0x523e17(_0x2f942d-0x29c,_0x12e0b2-0x15b,_0x13603a,_0x13603a-0x1eb);}return{'connectedClients':_0x13b24d[_0x267bd9(0x35c,_0x4e1edb._0xc6102f,_0x4e1edb._0x4ab6a4,0x244)][_0x34dfe1(_0x4e1edb._0x3d44f9,_0x4e1edb._0x65b775,0x2d1,_0x4e1edb._0x1df005)]};}};}function createQuestionId(){const _0x2656a8={_0x63a72d:0x7f,_0x265bd2:0x2ca,_0x18ce92:0x9d,_0x5232da:0x15a},_0x4c89bf={_0x20847e:0xaa},_0x2f067f={_0x991f51:0x124,_0x4c6845:0x1c7};function _0x2f381b(_0xbe9498,_0x16f8cb,_0x19620e,_0xceb4ee){return _0x29bb69(_0xbe9498-_0x2f067f._0x991f51,_0xceb4ee-0x9a,_0xbe9498,_0xceb4ee-_0x2f067f._0x4c6845);}function _0x439c74(_0x1be525,_0x201f7c,_0xb6b6fa,_0x525ae8){return _0x29bb69(_0x1be525-_0x4c89bf._0x20847e,_0x1be525-0x1e3,_0xb6b6fa,_0x525ae8-0x169);}return _0x2f381b(_0x2656a8._0x63a72d,-0x11b,-0x64,-0x22)+Date[_0x439c74(_0x2656a8._0x265bd2,0x36a,0x32e,0x279)]()+'-'+Math['random']()[_0x439c74(_0x2656a8._0x18ce92,_0x2656a8._0x5232da,0x5,-0x1e)](0x24)['slice'](0x2,0x9);}function validateInput(_0x1fe9b5){const _0x5c31e2={_0x456ede:0x2c1,_0x502eb2:0x213,_0x4e7be5:0x100,_0x381ef4:0x1a,_0x590f83:0x160,_0x18bda4:0x1e1,_0x596892:0x461,_0x4042d7:0x56d,_0x326341:0x526,_0x4fc407:0x66e,_0x28cfbe:0x5aa,_0x214ba4:0x526,_0x412ffc:0x1ae,_0x31afba:0xa,_0x3ab7ba:0x286,_0x2a8ca7:0x25f,_0x3e41a5:0x507,_0x213f51:0x38,_0x4bafc3:0x88,_0x2331bf:0x64,_0x132db3:0x211,_0xe6e5df:0x319,_0x4de177:0x394,_0x5cfc53:0x225,_0x2ed3c7:0x293,_0x5c4d2d:0x2b4,_0x72d6b8:0x1ce,_0x514f9c:0xf,_0x3fc1de:0xae,_0x4815a1:0x519,_0x30ecd3:0x71d,_0x5c956f:0x16b,_0x1bb41b:0x2fb,_0x17cd63:0x20d,_0x41e244:0x95,_0x2edbd2:0x166,_0x238f9b:0x1f4,_0x151fa3:0x30d,_0x3dbe8c:0x34b,_0x4a0408:0x44e,_0x1b39ac:0x5d9,_0x158d43:0x28f,_0x9954f7:0x35e,_0x33b250:0x594,_0x3ae0d3:0x504,_0x42ec2c:0x57c,_0x51795b:0x666,_0x89b126:0x75a,_0x5de5a0:0x5ee,_0x1b4766:0x62c,_0x795c0d:0x76e,_0x560978:0x666,_0x444b6:0x55b,_0x4a4819:0x21f,_0x9e4d08:0x1bd,_0x54782a:0x2a0,_0x1ea1c2:0x38c,_0x463fbf:0x2d9,_0x35e9a4:0x166,_0x3e0744:0x21e,_0x56da8f:0x5ec,_0x4e3ace:0x783,_0x479d9f:0x2e1,_0x54b146:0x24b,_0x4f8646:0x5bc,_0x40e20e:0x51b,_0x46c815:0x55c,_0x406aeb:0x523},_0x20291e={_0x333a20:0x59c},_0xfd7ee={_0xa3ea64:0x1ac,_0x254e46:0x1d6,_0xafbfd7:0x189};function _0x5de67b(_0x25349f,_0x31b18d,_0x252278,_0x48c52a){return _0x29bb69(_0x25349f-_0xfd7ee._0xa3ea64,_0x252278-_0xfd7ee._0x254e46,_0x48c52a,_0x48c52a-_0xfd7ee._0xafbfd7);}function _0x33b195(_0x4e3ab0,_0x38cc33,_0x10b8b6,_0xcfef59){return _0x29bb69(_0x4e3ab0-0x1dd,_0xcfef59-_0x20291e._0x333a20,_0x4e3ab0,_0xcfef59-0x124);}if(!Array[_0x5de67b(0x347,_0x5c31e2._0x456ede,_0x5c31e2._0x502eb2,_0x5c31e2._0x4e7be5)](_0x1fe9b5[_0x5de67b(_0x5c31e2._0x381ef4,0x14d,_0x5c31e2._0x590f83,_0x5c31e2._0x18bda4)])||_0x1fe9b5[_0x33b195(_0x5c31e2._0x596892,0x47c,_0x5c31e2._0x4042d7,_0x5c31e2._0x326341)]['length']<0x1||_0x1fe9b5[_0x33b195(_0x5c31e2._0x4fc407,_0x5c31e2._0x28cfbe,0x429,_0x5c31e2._0x214ba4)][_0x5de67b(0x134,_0x5c31e2._0x412ffc,0x88,-_0x5c31e2._0x31afba)]>0xa)throw new ToolExecutionError(_0x5de67b(_0x5c31e2._0x3ab7ba,0x3ad,0x2e4,_0x5c31e2._0x2a8ca7),{'error':'invalid_questions'});for(let _0x349089=0x0;_0x349089<_0x1fe9b5[_0x33b195(0x4ca,0x47b,_0x5c31e2._0x3e41a5,0x526)][_0x5de67b(-_0x5c31e2._0x213f51,-0x2f,_0x5c31e2._0x4bafc3,-_0x5c31e2._0x2331bf)];_0x349089+=0x1){const _0x273a10=_0x1fe9b5[_0x5de67b(0x297,0x1bc,0x160,0x13d)][_0x349089];if(!_0x273a10['question']||typeof _0x273a10[_0x5de67b(_0x5c31e2._0x132db3,0x2f5,_0x5c31e2._0xe6e5df,_0x5c31e2._0x4de177)]!==_0x5de67b(_0x5c31e2._0x5cfc53,_0x5c31e2._0x2ed3c7,0x153,0x102))throw new ToolExecutionError(_0x5de67b(_0x5c31e2._0x5c4d2d,0x18f,0x266,_0x5c31e2._0x72d6b8)+(_0x349089+0x1)+_0x5de67b(_0x5c31e2._0x514f9c,_0x5c31e2._0x3fc1de,0xc0,0x15));if(!_0x273a10[_0x33b195(_0x5c31e2._0x4815a1,_0x5c31e2._0x30ecd3,0x536,0x5eb)]||typeof _0x273a10[_0x5de67b(_0x5c31e2._0x5c956f,0x2cd,0x225,_0x5c31e2._0x1bb41b)]!=='string')throw new ToolExecutionError(_0x5de67b(0x2e8,0x34b,0x266,_0x5c31e2._0x17cd63)+(_0x349089+0x1)+':\x20\x22topic\x22\x20field\x20is\x20required\x20and\x20must\x20be\x20a\x20string');if(_0x273a10['topic'][_0x5de67b(-0x3c,0x153,0x88,-_0x5c31e2._0x514f9c)]>0x1e)throw new ToolExecutionError(_0x5de67b(0x360,0x393,0x266,0x220)+(_0x349089+0x1)+_0x5de67b(-0x91,0x2a,_0x5c31e2._0x41e244,0x1e8)+_0x273a10[_0x5de67b(_0x5c31e2._0x2edbd2,_0x5c31e2._0x238f9b,0x225,_0x5c31e2._0x151fa3)][_0x33b195(_0x5c31e2._0x3dbe8c,0x571,0x3f6,_0x5c31e2._0x4a0408)]);if(!Array[_0x33b195(0x646,0x50e,0x488,_0x5c31e2._0x1b39ac)](_0x273a10[_0x5de67b(_0x5c31e2._0x158d43,_0x5c31e2._0x9954f7,0x2a0,0x3d6)])||_0x273a10['options'][_0x33b195(_0x5c31e2._0x33b250,_0x5c31e2._0x3ae0d3,0x439,0x44e)]<0x2||_0x273a10[_0x33b195(0x6a4,_0x5c31e2._0x42ec2c,0x67a,_0x5c31e2._0x51795b)]['length']>0x4)throw new ToolExecutionError(_0x33b195(_0x5c31e2._0x89b126,0x65d,_0x5c31e2._0x5de5a0,_0x5c31e2._0x1b4766)+(_0x349089+0x1)+':\x20must\x20have\x202-4\x20options');for(let _0x2b9d19=0x0;_0x2b9d19<_0x273a10[_0x33b195(0x53f,_0x5c31e2._0x795c0d,0x581,_0x5c31e2._0x560978)][_0x33b195(0x521,0x4ae,_0x5c31e2._0x444b6,0x44e)];_0x2b9d19+=0x1){const _0x2ce090=_0x273a10[_0x5de67b(_0x5c31e2._0x4a4819,_0x5c31e2._0x9e4d08,_0x5c31e2._0x54782a,_0x5c31e2._0x1ea1c2)][_0x2b9d19];if(!_0x2ce090[_0x5de67b(_0x5c31e2._0x463fbf,0x24e,0x1ab,0x299)]||!_0x2ce090[_0x5de67b(-0x4a,0x1eb,0xcc,0x144)])throw new ToolExecutionError(_0x5de67b(_0x5c31e2._0x35e9a4,0x38d,0x266,_0x5c31e2._0x3e0744)+(_0x349089+0x1)+_0x33b195(_0x5c31e2._0x56da8f,_0x5c31e2._0x4e3ace,0x754,0x675)+(_0x2b9d19+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x273a10[_0x5de67b(_0x5c31e2._0x479d9f,_0x5c31e2._0x54b146,0x23f,0x379)]!==_0x33b195(_0x5c31e2._0x4f8646,_0x5c31e2._0x40e20e,_0x5c31e2._0x46c815,_0x5c31e2._0x406aeb))throw new ToolExecutionError(_0x5de67b(0x224,0x392,0x266,0x282)+(_0x349089+0x1)+_0x33b195(0x59f,0x5d4,0x5da,0x6b0));}}function buildQuestions(_0x1804ac){const _0x21f336={_0x52d874:0x48d,_0x476e81:0x565},_0x41702d={_0x44cb70:0x46},_0x5b017f={_0xe2a6e8:0x24};function _0x36ef4d(_0x3dd160,_0x327677,_0x674ca,_0x591eb1){return _0x567203(_0x591eb1,_0x327677-0xb1,_0x3dd160-0x3a2,_0x591eb1-_0x5b017f._0xe2a6e8);}function _0x4fbb8a(_0xf1a3b1,_0x231047,_0x1581a9,_0x44190f){return _0x29bb69(_0xf1a3b1-0xc9,_0x44190f- -_0x41702d._0x44cb70,_0x231047,_0x44190f-0x1f4);}return _0x1804ac[_0x36ef4d(0x460,_0x21f336._0x52d874,_0x21f336._0x476e81,0x47e)]['map']((_0x1243b0,_0x41a744)=>({'id':'q'+_0x41a744,'question':_0x1243b0[_0x36ef4d(0x619,0x6c2,0x4e6,0x58d)],'topic':_0x1243b0[_0x4fbb8a(0x68,0x65,-0x14e,0x9)],'options':_0x1243b0[_0x4fbb8a(-0xd1,0x1ac,0x76,0x84)],'multiSelect':_0x1243b0[_0x36ef4d(0x53f,0x615,0x544,0x4fb)]}));}function createResult(_0x39ba5c,_0x1d2c34,_0x12a4db){const _0xd278f1={_0x11e182:0xc},_0x23e223={_0x36fbbf:0x52,_0x4b29ca:0x1d1};function _0x369ee0(_0x5e9c6f,_0x596cb1,_0x4b866b,_0x333a91){return _0x29bb69(_0x5e9c6f-0xe3,_0x596cb1-_0x23e223._0x36fbbf,_0x333a91,_0x333a91-_0x23e223._0x4b29ca);}const _0x592e2e={'questionId':_0x39ba5c,'questionCount':_0x1d2c34,'answers':_0x12a4db};return createToolOutput(_0x369ee0(-0xfe,-0xa3,_0xd278f1._0x11e182,0x2d)+JSON['stringify'](_0x12a4db,null,0x2),_0x592e2e);}function createAskUserTool(){const _0x43c730={_0x42ebf0:0xdd,_0x4e2453:0x47,_0x239154:0x83,_0x56cf92:0x4f,_0x11a49e:0x1ca,_0x2a57ec:0x23e,_0x57aa16:0x159,_0x5b0086:0x33,_0x342a4a:0x34,_0x16f805:0x4e,_0x47fa5b:0x28b,_0x4236e4:0x29b,_0x13ffbe:0x159,_0x345e07:0x1c4,_0x21ad1d:0x1ea,_0x5c0d6f:0xe1,_0x4aa1d3:0x1bf,_0x410a36:0x2c,_0x79d37b:0x1a5,_0x2d3a6b:0x5a,_0x3e0fe2:0x2b0,_0x30c6d8:0x249,_0x3b1332:0x167,_0x5f0d85:0x8,_0x2d8dcd:0x6,_0x498073:0x10b},_0x12043a={_0x492d21:0x5f6,_0x3981b9:0x5da,_0x1190f8:0x5c3,_0x2bc12b:0x1af,_0x1cba05:0x1a3,_0x17358d:0x211,_0x55723b:0x729,_0x473b8e:0x617,_0x526a42:0x675,_0x443df6:0x75d,_0x3e7ca8:0x135,_0x108210:0x3a6,_0x146e80:0x39d,_0x299319:0x481,_0x48fb71:0x431,_0x3e5605:0x280,_0x4d20a4:0x256},_0x2f701a={_0x5c1157:0x1e},_0x4850b8={_0x4fade9:0x24};function _0x188c50(_0xf0e1fe,_0x281786,_0x3911bf,_0x30ea29){return _0x29bb69(_0xf0e1fe-0x7b,_0x30ea29-_0x4850b8._0x4fade9,_0x3911bf,_0x30ea29-0x131);}function _0x5ac1ab(_0x43d3d2,_0x322c17,_0x19d22a,_0x496808){return _0x29bb69(_0x43d3d2-0x104,_0x496808-0x164,_0x43d3d2,_0x496808-_0x2f701a._0x5c1157);}return defineTool({'name':_0x188c50(0x98,-0x32,_0x43c730._0x42ebf0,_0x43c730._0x4e2453),'description':_0x188c50(_0x43c730._0x239154,-_0x43c730._0x56cf92,-0x118,-0xc),'inputSchema':{'type':_0x188c50(0x105,0x1cd,0x179,0x108),'properties':{'questions':{'type':_0x5ac1ab(_0x43c730._0x11a49e,_0x43c730._0x2a57ec,0x1a,_0x43c730._0x57aa16),'items':{'type':_0x188c50(_0x43c730._0x5b0086,0x205,-_0x43c730._0x342a4a,0x108),'properties':{'question':{'type':'string'},'topic':{'type':_0x5ac1ab(0x1d6,_0x43c730._0x16f805,0x235,0xe1)},'options':{'type':_0x5ac1ab(_0x43c730._0x47fa5b,_0x43c730._0x4236e4,0x2ac,_0x43c730._0x13ffbe),'items':{'type':_0x188c50(0x69,-0x4b,_0x43c730._0x345e07,0x108),'properties':{'label':{'type':_0x5ac1ab(0x206,_0x43c730._0x21ad1d,0x59,_0x43c730._0x5c0d6f)},'description':{'type':'string'}},'required':[_0x5ac1ab(0x242,_0x43c730._0x4aa1d3,0x10a,0x139),_0x5ac1ab(-_0x43c730._0x410a36,0xb8,_0x43c730._0x79d37b,_0x43c730._0x2d3a6b)]}},'multiSelect':{'type':'boolean'}},'required':[_0x188c50(_0x43c730._0x3e0fe2,0x1e6,_0x43c730._0x30c6d8,_0x43c730._0x3b1332),_0x188c50(0x1ae,-_0x43c730._0x5f0d85,_0x43c730._0x2d8dcd,0x73),_0x188c50(_0x43c730._0x498073,0x1ed,0x1e4,0xee),'multiSelect']}},'answers':{'type':'object','properties':{}}},'required':['questions']},async *'execute'(_0x3ee657,_0x17528d){const _0x167b77={_0x2b84d3:0x19e,_0x534fdf:0x63,_0x1d867e:0x576},_0x15bc85={_0x21088d:0x103},_0x22cdfc=_0x3ee657;validateInput(_0x22cdfc);function _0x4812c9(_0x18b78c,_0xb6ca29,_0x83adb9,_0x2b9a2c){return _0x5ac1ab(_0x83adb9,_0xb6ca29-0xb4,_0x83adb9-_0x15bc85._0x21088d,_0xb6ca29-0x192);}const _0x4c7130=_0x17528d[_0x223d84(_0x12043a._0x492d21,0x705,_0x12043a._0x3981b9,_0x12043a._0x1190f8)]??createQuestionId();if(_0x22cdfc[_0x4812c9(_0x12043a._0x2bc12b,_0x12043a._0x1cba05,0x80,_0x12043a._0x17358d)]&&Object[_0x223d84(_0x12043a._0x55723b,0x5b2,0x655,_0x12043a._0x473b8e)](_0x22cdfc['answers'])['length']>0x0)return createResult(_0x4c7130,_0x22cdfc[_0x223d84(_0x12043a._0x526a42,_0x12043a._0x443df6,0x689,0x664)]['length'],_0x22cdfc[_0x4812c9(_0x12043a._0x3e7ca8,0x1a3,0xaf,0x2ab)]);function _0x223d84(_0x408908,_0x4d364f,_0x6330d9,_0x281b8b){return _0x5ac1ab(_0x408908,_0x4d364f-_0x167b77._0x2b84d3,_0x6330d9-_0x167b77._0x534fdf,_0x281b8b-_0x167b77._0x1d867e);}if(!_0x17528d['askUser'])throw new ToolExecutionError(_0x4812c9(_0x12043a._0x108210,_0x12043a._0x146e80,_0x12043a._0x299319,_0x12043a._0x48fb71));const _0x150de5=buildQuestions(_0x22cdfc),_0x5c9aa5=await _0x17528d['askUser']({'questionId':_0x4c7130,'questions':_0x150de5});yield createResult(_0x4c7130,_0x22cdfc[_0x4812c9(0x2d4,_0x12043a._0x3e5605,0x2bb,_0x12043a._0x4d20a4)][_0x4812c9(0x211,0x1a8,0x18a,0x194)],_0x5c9aa5);}});}import{spawn as _0x5f0d5f}from'child_process';import{statSync}from'fs';import*as _0x3d01ca from'os';import*as _0x5eb127 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x40d5e2 from'path';function isPathInside(_0x560d99,_0x19f977){const _0x3fa897={_0x21c4e8:0x134,_0x48b175:0xff,_0x3f42d9:0x1af,_0x2298e0:0x45e,_0x59c94a:0x488,_0x2a8402:0x336,_0x4180be:0x9b,_0x3bcf87:0x1be,_0x2fbc6b:0x189},_0x54507a={_0x5630d9:0x4b},_0x5956c0={_0x7a7130:0x481,_0x41c5b4:0x1a4};function _0x2e317d(_0x35e824,_0xe56336,_0x450c33,_0x764ca){return _0x567203(_0xe56336,_0xe56336-0x63,_0x450c33-_0x5956c0._0x7a7130,_0x764ca-_0x5956c0._0x41c5b4);}const _0x25472f=_0x40d5e2[_0x47d731(-_0x3fa897._0x21c4e8,-_0x3fa897._0x48b175,-_0x3fa897._0x3f42d9,0x35)](_0x560d99);function _0x47d731(_0x4d90f4,_0x3ade6a,_0x2ed10a,_0x497ee4){return _0x29bb69(_0x4d90f4-0x103,_0x3ade6a- -0x71,_0x4d90f4,_0x497ee4-_0x54507a._0x5630d9);}const _0x363c32=_0x40d5e2[_0x47d731(-0x123,-0x130,-0x13f,-0xa8)](_0x25472f,_0x19f977);return _0x363c32===''||!_0x363c32[_0x2e317d(0x48a,_0x3fa897._0x2298e0,_0x3fa897._0x59c94a,_0x3fa897._0x2a8402)]('..')&&!_0x40d5e2[_0x47d731(-0x12,_0x3fa897._0x4180be,_0x3fa897._0x3bcf87,_0x3fa897._0x2fbc6b)](_0x363c32);}function resolveWorkspacePath(_0x44d1ae,_0x24dd9c){return resolveAllowedPath(_0x44d1ae,[],_0x24dd9c);}function resolveAllowedPath(_0x131720,_0x4827ce,_0x5a9065){const _0x308379={_0x2fdc1d:0x132,_0x49caf0:0x5,_0x13aaf3:0xee,_0xede733:0x23,_0x515405:0xe1,_0x49c086:0x5,_0x19d72a:0xae,_0xf03041:0x10a,_0x488046:0x13c,_0x51d228:0x22,_0x4b2a3e:0x1b6,_0x5e2a52:0x12a,_0x30504e:0x87,_0x88c155:0x237,_0x354ab9:0xa1,_0x1200e3:0x2de},_0x3cc7ec={_0x2f1233:0x30,_0x1db072:0x7c},_0x61ed2b={_0x49ed94:0x89};function _0x49bad2(_0x4615df,_0x1ebaaa,_0x2e4d88,_0x3479ca){return _0x29bb69(_0x4615df-0x1f0,_0x1ebaaa-_0x61ed2b._0x49ed94,_0x4615df,_0x3479ca-0x195);}const _0x400912=_0x40d5e2[_0x49bad2(_0x308379._0x2fdc1d,-_0x308379._0x49caf0,-_0x308379._0x13aaf3,_0x308379._0xede733)](_0x131720);function _0x154297(_0x4a4ee9,_0x2b96be,_0x520193,_0x52e3a6){return _0x567203(_0x4a4ee9,_0x2b96be-_0x3cc7ec._0x2f1233,_0x520193- -0x1a,_0x52e3a6-_0x3cc7ec._0x1db072);}const _0x210303=_0x40d5e2[_0x49bad2(_0x308379._0x515405,-_0x308379._0x49c086,-_0x308379._0x19d72a,-_0x308379._0xf03041)](_0x400912,_0x5a9065),_0x2271e7=[_0x400912,..._0x4827ce[_0x154297(0x1a,-_0x308379._0x488046,-_0x308379._0x51d228,-0x12)](_0x3adbd2=>_0x40d5e2[_0x49bad2(0x5a,-0x5,0x4d,0xd8)](_0x3adbd2))];if(_0x2271e7[_0x154297(_0x308379._0x4b2a3e,_0x308379._0x5e2a52,0x164,_0x308379._0x30504e)](_0x43b30d=>isPathInside(_0x43b30d,_0x210303)))return _0x210303;throw new ToolExecutionError(_0x49bad2(_0x308379._0x88c155,0x188,_0x308379._0x354ab9,_0x308379._0x1200e3)+_0x5a9065,{'path':_0x5a9065,'rootDir':_0x400912,'allowedDirs':_0x2271e7});}async function assertWorkspaceFile(_0x176a03){const _0x2b688e={_0xbfcb69:0xab,_0x3ed758:0x5ab},_0x33464f={_0x583d08:0x5,_0x4aad35:0x6a8};function _0xcd3299(_0x322842,_0x134611,_0x30f17b,_0x307567){return _0x29bb69(_0x322842-0x66,_0x30f17b-0x82,_0x322842,_0x307567-0x1a0);}function _0x2b4b62(_0x1b9564,_0x167bc9,_0x432121,_0x2cdf3e){return _0x29bb69(_0x1b9564-_0x33464f._0x583d08,_0x2cdf3e-_0x33464f._0x4aad35,_0x1b9564,_0x2cdf3e-0x168);}const _0x1c586d=await stat(_0x176a03);if(!_0x1c586d[_0xcd3299(0x198,_0x2b688e._0xbfcb69,0x49,-0xd7)]())throw new ToolExecutionError(_0x2b4b62(0x80f,0x71f,_0x2b688e._0x3ed758,0x6f8)+_0x176a03,{'path':_0x176a03});}function isProbablyBinary(_0x296bfc){const _0x32a17d={_0x3e1d6a:0x105,_0x261c6b:0x13b,_0x5d7afc:0x117},_0x4c16da={_0xd14a64:0x102};function _0x4e9d48(_0x1907d9,_0x566209,_0x441479,_0x59025d){return _0x29bb69(_0x1907d9-0x1a3,_0x59025d-_0x4c16da._0xd14a64,_0x1907d9,_0x59025d-0x1ac);}return _0x296bfc[_0x4e9d48(_0x32a17d._0x3e1d6a,_0x32a17d._0x261c6b,0x5f,_0x32a17d._0x5d7afc)](0x0);}var DEFAULT_DESCRIPTION=_0x29bb69(0x0,-0x143,-0x171,-0x55),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x47f287){return _0x47f287 instanceof Error;}function shellExists(_0x34eee2){const _0x5b0598={_0x4e6690:0x416,_0x5f4788:0x3b9,_0x161de3:0x5ef,_0x2137e6:0x5f6},_0x139a8f={_0x2c8efc:0xcd},_0x41a85f={_0x14dd94:0x1f,_0x1de47d:0x194};function _0x6edd81(_0x35a346,_0x217fad,_0x47ebdf,_0x98ba9d){return _0x567203(_0x35a346,_0x217fad-_0x41a85f._0x14dd94,_0x217fad- -_0x41a85f._0x1de47d,_0x98ba9d-0xc2);}function _0x7136d5(_0x27a50d,_0x3d53ef,_0x51f629,_0x5c0118){return _0x29bb69(_0x27a50d-0x7b,_0x51f629-0x3f2,_0x27a50d,_0x5c0118-_0x139a8f._0x2c8efc);}try{const _0x511dfc=statSync(_0x34eee2);return _0x511dfc[_0x7136d5(0x30d,_0x5b0598._0x4e6690,_0x5b0598._0x5f4788,0x35b)]()&&(_0x511dfc[_0x7136d5(_0x5b0598._0x161de3,0x3d0,0x4c7,_0x5b0598._0x2137e6)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x4f2bcc){const _0x192253={_0xb9add7:0x292,_0x3e1736:0x189,_0x4aef75:0x118,_0x53756e:0x2ec,_0x3dbba1:0x1ae,_0x5d7faf:0x2d1,_0x512288:0x2da,_0x93e713:0x1c4,_0x4e4189:0x397,_0x1c0c5f:0x161,_0x4aef85:0x124,_0x49b027:0x292,_0x3db364:0x2af,_0x469885:0x27d,_0x3cd8f2:0x218,_0x2b3dde:0x286,_0x1f9c39:0x28b},_0x2872b6={_0x59acd9:0x117,_0x5db5c3:0x1f6,_0x4f4823:0x41},_0xf6fe97={_0x2c501c:0x35b};if(_0x4f2bcc)return _0x4f2bcc;if(_0x3d01ca[_0x53144f(0x195,_0x192253._0xb9add7,0x27d,_0x192253._0x3e1736)]()==='win32')return process[_0x53144f(0x196,_0x192253._0x4aef75,_0x192253._0x53756e,_0x192253._0x3dbba1)][_0x347090(0x3b0,0x346,_0x192253._0x5d7faf,0x334)]||'cmd.exe';const _0x5b9374=['/bin/bash',_0x347090(0x36f,0x24a,_0x192253._0x512288,0x27a),_0x53144f(0x271,_0x192253._0x93e713,_0x192253._0x4e4189,_0x192253._0x1c0c5f),'/usr/bin/sh'];for(const _0x19a243 of _0x5b9374){if(shellExists(_0x19a243))return _0x19a243;}function _0x347090(_0x1fecd6,_0x39e2fc,_0x4efe8b,_0x1bb28a){return _0x29bb69(_0x1fecd6-0xfa,_0x39e2fc-_0xf6fe97._0x2c501c,_0x1fecd6,_0x1bb28a-0x112);}const _0x3638b4=process[_0x53144f(0x196,0x215,_0x192253._0x4aef85,_0x192253._0x49b027)][_0x347090(_0x192253._0x3db364,_0x192253._0x469885,0x39c,_0x192253._0x3cd8f2)];if(_0x3638b4&&shellExists(_0x3638b4))return _0x3638b4;function _0x53144f(_0x3840c4,_0x1922b2,_0x52edc6,_0x6922ec){return _0x29bb69(_0x3840c4-_0x2872b6._0x59acd9,_0x3840c4-_0x2872b6._0x5db5c3,_0x52edc6,_0x6922ec-_0x2872b6._0x4f4823);}return _0x347090(0x2ac,0x24c,_0x192253._0x2b3dde,_0x192253._0x1f9c39);}function buildShellArgs(_0x2abff6,_0x31caad){const _0xdc2223={_0x3d2cea:0x44,_0x510f51:0x183,_0x1b802d:0x5b,_0x87165f:0x33e,_0x28598a:0x204,_0x2d6b0c:0x2a0,_0x2517c7:0x246},_0x56b94f={_0x55bdba:0x19f,_0x3fffe7:0x22,_0x4e6da6:0x23},_0x4184ce={_0x2a529f:0x70};function _0xe869cc(_0x1d1d54,_0xdddc02,_0x26499c,_0x4274c8){return _0x29bb69(_0x1d1d54-_0x4184ce._0x2a529f,_0x26499c-0x169,_0xdddc02,_0x4274c8-0x18);}function _0x18fee3(_0x470376,_0x5d7721,_0x144124,_0x129ea3){return _0x567203(_0x144124,_0x5d7721-_0x56b94f._0x55bdba,_0x5d7721-_0x56b94f._0x3fffe7,_0x129ea3-_0x56b94f._0x4e6da6);}if(_0x3d01ca[_0xe869cc(0x115,_0xdc2223._0x3d2cea,0x108,0xcd)]()===_0xe869cc(_0xdc2223._0x510f51,0x15b,0x56,-_0xdc2223._0x1b802d)){const _0x17e2b7=/cmd(\.exe)?$/i['test'](_0x31caad);return _0x17e2b7?['/d','/s','/c',_0x2abff6]:['-NoLogo',_0xe869cc(0x1c2,0x2b4,0x247,_0xdc2223._0x87165f),_0x18fee3(_0xdc2223._0x28598a,0x19e,_0xdc2223._0x2d6b0c,_0xdc2223._0x2517c7),_0x2abff6];}return['-c',_0x2abff6];}function resolveCarriageReturns(_0x25ca59){const _0x32d020={_0x2ed14a:0x5b,_0x5cb9ec:0xf5,_0x5220d9:0x1e7,_0x489866:0x122,_0xedd024:0xb1,_0x503461:0xdd},_0x5a16de={_0x2bde37:0xd0,_0x2e3828:0x287,_0x3835d0:0x293,_0x5e93a1:0x139},_0x5b21fc={_0x560ff9:0x128,_0x1c043f:0xe9},_0x3000a5={_0x4e3f33:0xcb},_0x410b89={_0x49ca16:0x1df};function _0x4e7bfc(_0x4c9c0d,_0x55d824,_0x3f34b0,_0x1b88eb){return _0x567203(_0x3f34b0,_0x55d824-0x59,_0x55d824- -_0x410b89._0x49ca16,_0x1b88eb-0x1f);}function _0x558206(_0x439ed7,_0x14ac97,_0x4433bd,_0x3bbaa5){return _0x29bb69(_0x439ed7-_0x3000a5._0x4e3f33,_0x14ac97- -0x6d,_0x439ed7,_0x3bbaa5-0x126);}return _0x25ca59[_0x4e7bfc(-_0x32d020._0x2ed14a,-_0x32d020._0x5cb9ec,-0x8f,-0x1f5)]('\x0a')[_0x4e7bfc(-0x2ba,-_0x32d020._0x5220d9,-_0x32d020._0x489866,-0x1d5)](_0x4ae547=>{const _0x4fc6f9={_0x103ae6:0xd7,_0x5740f2:0xdb};function _0x3264f7(_0x120623,_0xeaa03,_0x197e60,_0x404a2d){return _0x558206(_0x197e60,_0x120623-_0x5b21fc._0x560ff9,_0x197e60-_0x5b21fc._0x1c043f,_0x404a2d-0xd9);}if(!_0x4ae547[_0x3264f7(_0x5a16de._0x2bde37,-0x1d,-0x15,0x4)]('\x0d'))return _0x4ae547;function _0x590056(_0x1c8cc3,_0x4bb97f,_0x731b40,_0x594291){return _0x4e7bfc(_0x1c8cc3-_0x4fc6f9._0x103ae6,_0x594291-0x376,_0x1c8cc3,_0x594291-_0x4fc6f9._0x5740f2);}const _0x47323e=_0x4ae547['split']('\x0d');return _0x47323e[_0x47323e[_0x590056(_0x5a16de._0x2e3828,_0x5a16de._0x3835d0,_0x5a16de._0x5e93a1,0x17d)]-0x1]??'';})[_0x4e7bfc(-0x122,-_0x32d020._0xedd024,-_0x32d020._0x503461,-0x10a)]('\x0a');}function resolveBackspaces(_0x29903b){const _0xca9e4e={_0x582c49:0x49c,_0x236cfb:0x451,_0x4dd815:0x531,_0xf3139c:0x5ca},_0xeda0d3={_0x1e29ee:0x686,_0x1300bd:0x5c},_0x48c706={_0x3bc97c:0xa0,_0x27e9a4:0x3ed,_0x25a635:0x113},_0x589612=[];for(const _0x20519a of Array[_0x58d0ab(_0xca9e4e._0x582c49,0x3f5,_0xca9e4e._0x236cfb,0x4bc)](_0x29903b)){_0x20519a==='\x08'?_0x589612['pop']():_0x589612[_0x58d0ab(0x562,_0xca9e4e._0x4dd815,_0xca9e4e._0xf3139c,0x5d9)](_0x20519a);}function _0x58d0ab(_0x478f27,_0x38366a,_0x49d0f4,_0x3638e5){return _0x567203(_0x49d0f4,_0x38366a-_0x48c706._0x3bc97c,_0x3638e5-_0x48c706._0x27e9a4,_0x3638e5-_0x48c706._0x25a635);}function _0x5b9810(_0x2bf688,_0x28ea18,_0x12b6ed,_0x4e2106){return _0x29bb69(_0x2bf688-0x130,_0x28ea18-_0xeda0d3._0x1e29ee,_0x12b6ed,_0x4e2106-_0xeda0d3._0x1300bd);}return _0x589612['join']('');}function stripAnsiAndControls(_0x4e88ec){const _0x1c27e8={_0x6ce669:0x200,_0x43f379:0x25,_0x1fdc28:0x2d,_0x22f22a:0x65,_0x47b3db:0xbf,_0x8f73bf:0x59,_0x238481:0x46,_0x3e38c2:0x35f,_0xcea36a:0x53,_0x564466:0x0,_0x41d3fb:0x43a,_0x69584a:0x4df,_0x4250c9:0xd,_0x15e812:0x35,_0x2ae01d:0x29,_0x1a629b:0xf1,_0x31221e:0x1c,_0x21e9ec:0x22b,_0xd92ac2:0x1fd,_0x312b07:0x283,_0x6ec741:0x5eb,_0x5bf986:0x574,_0x3755b7:0x15a,_0x344a53:0x13d,_0x1e093e:0xd2,_0x2bdfa7:0x7a},_0x17df06={_0x2948f5:0x1ce,_0x3f804d:0x450,_0x1bbbf1:0x1d6},_0x45d273={_0x83b3a3:0x1da,_0xcf1789:0x1b5};_0x4e88ec=resolveCarriageReturns(_0x4e88ec),_0x4e88ec=resolveBackspaces(_0x4e88ec),_0x4e88ec=stripVTControlCharacters(_0x4e88ec);const _0x4e5cad='\x1b',_0x5acfa0='\x07';_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,-_0x1c27e8._0x6ce669,-0x163,-0x21b)](new RegExp(_0x2b28af(0x6f,-_0x1c27e8._0x43f379,0x188,0x20)+_0x5acfa0+_0x2b28af(-_0x1c27e8._0x1fdc28,_0x1c27e8._0x22f22a,-_0x1c27e8._0x47b3db,0xa4)+_0x5acfa0,'g'),''),_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,0x1,-_0x1c27e8._0x8f73bf,-_0x1c27e8._0x238481)](new RegExp(_0x1b0870(0x41a,0x469,0x4bb,_0x1c27e8._0x3e38c2)+_0x4e5cad+'\x5c\x5c','g'),''),_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,-0x1e1,_0x1c27e8._0xcea36a,_0x1c27e8._0x564466)](new RegExp(_0x5acfa0,'g'),''),_0x4e88ec=_0x4e88ec[_0x1b0870(_0x1c27e8._0x41d3fb,0x539,_0x1c27e8._0x69584a,0x5f2)](new RegExp(_0x4e5cad+_0x2b28af(_0x1c27e8._0x4250c9,_0x1c27e8._0x15e812,0x29,_0x1c27e8._0x2ae01d)+_0x4e5cad+'\x5c\x5c','g'),'');function _0x2b28af(_0x27a024,_0x4c73b8,_0x9bfb2a,_0xf0e098){return _0x567203(_0x4c73b8,_0x4c73b8-0x174,_0x27a024- -_0x45d273._0x83b3a3,_0xf0e098-_0x45d273._0xcf1789);}function _0x1b0870(_0x2bb3c0,_0x12b05c,_0x397a96,_0x439876){return _0x567203(_0x439876,_0x12b05c-_0x17df06._0x2948f5,_0x12b05c-_0x17df06._0x3f804d,_0x439876-_0x17df06._0x1bbbf1);}return _0x4e88ec=_0x4e88ec[_0x2b28af(-_0x1c27e8._0x1a629b,-_0x1c27e8._0x31221e,-0x144,-_0x1c27e8._0x21e9ec)](new RegExp(_0x4e5cad+_0x2b28af(-0x154,-0x92,-_0x1c27e8._0xd92ac2,-_0x1c27e8._0x312b07),'g'),''),_0x4e88ec=_0x4e88ec[_0x1b0870(_0x1c27e8._0x6ec741,0x539,_0x1c27e8._0x5bf986,0x4ca)](/[\u0080-\u009F]/g,''),_0x4e88ec=_0x4e88ec[_0x2b28af(-0xf1,-_0x1c27e8._0x3755b7,-_0x1c27e8._0x344a53,-0x17)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x4e88ec=_0x4e88ec[_0x2b28af(-_0x1c27e8._0x1a629b,-_0x1c27e8._0x1e093e,-_0x1c27e8._0x2bdfa7,0x19)](/[\u23CE\u2424]/g,''),_0x4e88ec;}function resolveWorkingDirectory(_0x26e7f9,_0x412615,_0x13f116){const _0x316c13={_0x260b0a:0x7b7,_0x13245a:0x5fa,_0x501a8c:0x219,_0x592acb:0x1a5,_0x315e18:0x11},_0x1d5a96={_0x333590:0x481,_0x12a688:0x127},_0x51a47d=resolveAllowedPath(_0x412615,_0x13f116,_0x26e7f9??'.');function _0xe6b22(_0x4c4b6c,_0x44b840,_0x427c00,_0xc72381){return _0x567203(_0x44b840,_0x44b840-0x7e,_0x427c00-_0x1d5a96._0x333590,_0xc72381-_0x1d5a96._0x12a688);}function _0xb1d544(_0xfa7022,_0x24e9d4,_0x222911,_0x197f0a){return _0x29bb69(_0xfa7022-0x67,_0xfa7022-0x21f,_0x197f0a,_0x197f0a-0x1c6);}try{const _0x121ea3=statSync(_0x51a47d);if(!_0x121ea3[_0xe6b22(_0x316c13._0x260b0a,0x649,0x67b,_0x316c13._0x13245a)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x51a47d,{'cwd':_0x51a47d});return _0x51a47d;}catch(_0x5967fe){if(_0x5967fe instanceof ToolExecutionError)throw _0x5967fe;throw new ToolExecutionError(_0xb1d544(0xc4,_0x316c13._0x501a8c,_0x316c13._0x592acb,_0x316c13._0x315e18)+_0x51a47d,{'cwd':_0x51a47d});}}function killProcessGroup(_0x5e1378,_0x2c657b,_0x154962='SIGKILL'){const _0x4d2b7d={_0x24ef8b:0x54f,_0x54edfc:0x4de,_0xfa2051:0x57b,_0x281cb3:0x43c,_0x289c3d:0x673,_0x1f62c9:0x582,_0x5a32b1:0x68a,_0xa38f7a:0x489},_0x4b61a4={_0x2ad0d1:0x2e,_0x140e8b:0x1ab},_0x442e6c={_0x5d6d70:0x1e4};if(!_0x5e1378[_0x3d0d85(_0x4d2b7d._0x24ef8b,0x673,0x5ef,0x5ae)])return;function _0x3d0d85(_0x23dcf9,_0x15b238,_0x67e110,_0x48b6a6){return _0x29bb69(_0x23dcf9-0xb6,_0x15b238-0x5be,_0x23dcf9,_0x48b6a6-_0x442e6c._0x5d6d70);}function _0x1d9545(_0x4f2b63,_0x316d72,_0x4bb7b7,_0x466a13){return _0x29bb69(_0x4f2b63-_0x4b61a4._0x2ad0d1,_0x466a13-0x5fe,_0x4bb7b7,_0x466a13-_0x4b61a4._0x140e8b);}if(_0x2c657b)try{_0x5f0d5f('taskkill',[_0x3d0d85(_0x4d2b7d._0x54edfc,0x616,0x75b,0x6c3),_0x5e1378['pid']['toString'](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5e1378['kill'](_0x154962);return;}try{process[_0x3d0d85(0x6a8,_0x4d2b7d._0xfa2051,_0x4d2b7d._0x281cb3,0x5fe)](-_0x5e1378[_0x3d0d85(0x55e,_0x4d2b7d._0x289c3d,_0x4d2b7d._0x1f62c9,0x603)],_0x154962);}catch{_0x5e1378[_0x3d0d85(_0x4d2b7d._0x5a32b1,_0x4d2b7d._0xfa2051,0x4d5,_0x4d2b7d._0xa38f7a)](_0x154962);}}function appendChunk(_0xf81a19,_0x5e1549,_0x38ac29,_0x5d927d,_0x50615a){const _0x2e47c5={_0x3313fd:0x109,_0x32d784:0x125,_0x2d6cdf:0x2f,_0x52c6d8:0x1a8,_0x29daf8:0x191,_0x41b85c:0x41,_0x4cc2e5:0xb7,_0x36dd6a:0x1d7},_0x3a120e={_0x357e0e:0x2c,_0x1d9926:0x198},_0x12f4c0=_0x5d927d?stripAnsiAndControls(_0x38ac29):_0x38ac29;if(_0x12f4c0[_0x2bf418(_0x2e47c5._0x3313fd,_0x2e47c5._0x32d784,-0x23,-_0x2e47c5._0x2d6cdf)]===0x0)return;function _0x4d3e78(_0x5f2990,_0x2e6173,_0x9f228d,_0x59d3ed){return _0x29bb69(_0x5f2990-_0x3a120e._0x357e0e,_0x9f228d-0xd9,_0x59d3ed,_0x59d3ed-_0x3a120e._0x1d9926);}_0xf81a19[_0x4d3e78(_0x2e47c5._0x52c6d8,0x203,_0x2e47c5._0x29daf8,_0x2e47c5._0x41b85c)](_0x12f4c0);function _0x2bf418(_0x56ef3b,_0x3738ad,_0x693e39,_0xd8e30d){return _0x29bb69(_0x56ef3b-0xfa,_0xd8e30d-0x11f,_0x693e39,_0xd8e30d-0x111);}_0x5e1549[_0x2bf418(0x1d6,_0x2e47c5._0x4cc2e5,0xdd,_0x2e47c5._0x36dd6a)](_0x12f4c0),_0x50615a();}function createBashTool(_0x3b4135={}){const _0x589073={_0x4be4aa:0x2d1,_0x1e0fdd:0x3ee,_0x511647:0x371,_0x2fb012:0x4e8,_0x5c9f64:0x3a4,_0x20e0fc:0x349,_0x3ef338:0x323,_0x1b2148:0x31d,_0x232399:0x3ef,_0x1d5267:0x3d8,_0x133e64:0x3c0,_0x5d1fef:0x68e,_0x1a9bc1:0x6bd,_0x1eeda8:0x648,_0x1935f6:0x335,_0x3e1ab0:0x430,_0x30dd99:0x37f,_0x8aec79:0x383,_0x1f657d:0x515,_0x2f7b43:0x3cb,_0x259451:0x462,_0xb9faf6:0x389,_0x1673a8:0x41f,_0x8f5d82:0x403},_0x363fc4={_0x102487:0x78c,_0x3ab04e:0x6cb,_0x3bc66e:0x7a5,_0x513415:0x8e4,_0x3f05ff:0x594,_0x50347c:0x159,_0x420f3e:0xf9,_0x2a2d92:0x61c,_0x19614b:0x5c9,_0x2edc2f:0x70b,_0x3b7e5e:0x7fa,_0x5f2fb6:0x6a9,_0x5ac98a:0x600,_0x36613b:0x162,_0x42b41e:0x65,_0x27ef40:0x137,_0x35f81a:0xb8,_0x46d1ce:0x90,_0x55eed5:0x79,_0x9bfd94:0x91,_0x5a58fe:0x124,_0x392c32:0x1c,_0x328d36:0x147,_0xbb3bfc:0xb6,_0x325e83:0x20d,_0x1fe4ee:0xe1,_0x4e06c8:0x659,_0x450541:0x780,_0x1f5f10:0x68c,_0x3f1031:0x737,_0x4cdc1c:0xfc,_0x4ba5bc:0x1d7,_0x4f579a:0x55f,_0x16d474:0x66c,_0x26280d:0x5c7,_0x55e31d:0x5ce,_0x188198:0x5c1,_0x31fc1e:0x54d,_0x23a9dd:0x628,_0x52d917:0x630,_0x3e02f5:0x4d9,_0x12e2f0:0x595,_0x2ca728:0x4fe,_0x599408:0x477,_0x109acb:0x507,_0x91abcf:0x119,_0x104672:0x24,_0x4ed1c8:0x6,_0x542c08:0x3f,_0x283989:0x55,_0x3067fb:0x12c,_0xb44b6a:0x699,_0x224450:0xc8,_0x3492c:0x535,_0x3bdcb3:0x71c,_0x1a5bd1:0x8e3,_0x1ec6e2:0x846,_0x3d333c:0x5d,_0x5d15a0:0x826,_0x19c41c:0x180,_0x3031a0:0x4a,_0x2b73e5:0xfb,_0x3ef6b1:0x112,_0x243b63:0x227,_0x43eb01:0x580,_0x5b1df4:0x769,_0x32b194:0x6a3,_0x41869e:0x101,_0x86cfe7:0xd3,_0x48bf30:0x1f6,_0x8de5d8:0x7,_0x3cb8cd:0x4e,_0x3b53ec:0xf7,_0x4d4084:0xb0,_0x58fe6c:0x9f,_0x34190f:0x24,_0x50194a:0x36,_0x2ec356:0x198,_0x380e2c:0x7e,_0x570b2a:0x7f8,_0xc60c0d:0xbe,_0x10de3f:0x129,_0x3e895e:0x17c,_0x38c100:0x674,_0x5b7421:0x7bf,_0x480e28:0x3b,_0x601d98:0x16a,_0x49ec60:0x128},_0x2530b4={_0x1ceed7:0x1d,_0x59c016:0x94},_0x56db26={_0x149d5a:0x9c,_0x9bc69a:0x6a,_0x37e5ed:0x82},_0x46f32f={_0x30302b:0x1e2},_0x19e1b1={_0x5d15c9:0x162},_0x2252a6={_0x5ce13a:0x160,_0x39275d:0x402},_0x2568e1=_0x5eb127[_0x501fad(0x2a6,0x43a,_0x589073._0x4be4aa,0x374)](_0x3b4135[_0x501fad(_0x589073._0x1e0fdd,_0x589073._0x511647,0x27c,0x2b6)]??process['cwd']()),_0x564120=(_0x3b4135['allowedDirs']??[])['map'](_0xaa65be=>_0x5eb127[_0x501fad(0x2d5,0x469,0x3f9,0x374)](_0xaa65be)),_0x161612=_0x3b4135['defaultTimeoutMs']??DEFAULT_TIMEOUT_MS,_0x68a52b=_0x3b4135[_0x345ad6(_0x589073._0x2fb012,_0x589073._0x5c9f64,0x32f,0x3b6)]??!![];function _0x501fad(_0x3ede1a,_0x31e5e9,_0x1e61eb,_0x58c8c4){return _0x29bb69(_0x3ede1a-_0x2252a6._0x5ce13a,_0x58c8c4-_0x2252a6._0x39275d,_0x1e61eb,_0x58c8c4-0x11b);}function _0x345ad6(_0x4611df,_0x27b26d,_0x41b292,_0x5c9150){return _0x29bb69(_0x4611df-0x147,_0x27b26d-0x4e2,_0x41b292,_0x5c9150-_0x19e1b1._0x5d15c9);}const _0x2c047c=_0x3b4135['name']??_0x345ad6(_0x589073._0x20e0fc,0x3d6,_0x589073._0x3ef338,_0x589073._0x1b2148);return defineTool({'name':_0x2c047c,'description':_0x3b4135[_0x345ad6(_0x589073._0x232399,_0x589073._0x1d5267,0x298,_0x589073._0x133e64)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x345ad6(_0x589073._0x5d1fef,0x5c6,_0x589073._0x1a9bc1,_0x589073._0x1eeda8),'properties':{'command':{'type':_0x501fad(0x3ce,_0x589073._0x1935f6,_0x589073._0x3e1ab0,_0x589073._0x30dd99)},'cwd':{'type':_0x345ad6(_0x589073._0x8aec79,0x45f,_0x589073._0x1e0fdd,0x513)},'timeoutMs':{'type':_0x345ad6(0x51f,0x54a,_0x589073._0x1f657d,0x442)},'ignoreOutput':{'type':_0x501fad(0x42d,_0x589073._0x2f7b43,_0x589073._0x259451,_0x589073._0xb9faf6)}},'required':[_0x501fad(0x483,_0x589073._0x1673a8,0x381,_0x589073._0x8f5d82)]},async *'execute'(_0x2a27e3,_0x37eecc){const _0x2f5534={_0x21c2a1:0xff,_0x5a37fd:0x22,_0x254225:0x1ce,_0x198b86:0x286,_0x96fb3f:0x184,_0x532372:0x163,_0xa7ccb:0x99,_0x48bca1:0x1ba,_0x2564be:0x75},_0x12becf={_0x3e4808:0x279,_0x4722b7:0x1b4,_0x2a257e:0x57,_0xd94060:0xa0},_0x528050={_0x5b9347:0x3ef,_0x45fb15:0x707,_0x144ff9:0x6f5,_0x510a8:0x832},_0x5beaa2={_0x1b2e22:0x3d5,_0x190d47:0x73,_0x545041:0x1c3},_0x4cfd08={_0x3c2e05:0x708,_0x1b125c:0x1e5},_0x38ddb7={_0x4d307d:0xf8},_0x2f8dd0={_0x470799:0x513,_0x58a551:0x319},_0x1f73f8={_0x3f4826:0x564,_0x4597ce:0xe8,_0x16ec55:0x11},_0xeb4fa7={_0x32b376:0x92,_0x29bd64:0xdb},_0x30cb92=_0x2a27e3[_0x599d5d(0x649,0x6e7,_0x363fc4._0x102487,0x84c)]??_0x161612;if(!Number['isFinite'](_0x30cb92)||_0x30cb92<0x1)throw new ToolExecutionError(_0x599d5d(_0x363fc4._0x3ab04e,0x6e0,_0x363fc4._0x3bc66e,_0x363fc4._0x513415),{'command':_0x2a27e3['command']});throwIfAborted(_0x37eecc[_0x599d5d(0x504,_0x363fc4._0x3f05ff,0x627,0x5ab)]);const _0x67bff4=resolveWorkingDirectory(_0x2a27e3['cwd'],_0x2568e1,_0x564120),_0x1abc83=_0x2a27e3['ignoreOutput']??![],_0x3cfcaa=resolveDefaultShell(_0x3b4135[_0x13d909(-_0x363fc4._0x50347c,-_0x363fc4._0x420f3e,-0x1c5,-0x1ea)]);function _0x599d5d(_0x4ec214,_0x202ceb,_0x37abf1,_0x3f42bb){return _0x345ad6(_0x4ec214-_0xeb4fa7._0x32b376,_0x37abf1-0x228,_0x202ceb,_0x3f42bb-_0xeb4fa7._0x29bd64);}const _0x14fcbb=buildShellArgs(_0x2a27e3[_0x599d5d(_0x363fc4._0x2a2d92,_0x363fc4._0x19614b,_0x363fc4._0x2edc2f,_0x363fc4._0x3b7e5e)],_0x3cfcaa),_0x4ad5fe=_0x3d01ca[_0x599d5d(0x632,0x5af,_0x363fc4._0x5f2fb6,_0x363fc4._0x5ac98a)]()===_0x13d909(-0xbb,-_0x363fc4._0x36613b,-0x54,-0x48);let _0x8d9653;try{_0x8d9653=_0x5f0d5f(_0x3cfcaa,_0x14fcbb,{'cwd':_0x67bff4,'env':{...process[_0x13d909(-0xac,-0xaf,0xd,-_0x363fc4._0x42b41e)],..._0x3b4135[_0x13d909(-_0x363fc4._0x27ef40,-0xaf,-_0x363fc4._0x35f81a,-0x1a7)]??{}},'stdio':_0x1abc83?[_0x13d909(_0x363fc4._0x46d1ce,0x7d,0xb3,-0x35),'ignore','ignore']:['ignore',_0x13d909(-_0x363fc4._0x55eed5,-_0x363fc4._0x9bfd94,-0x1df,-_0x363fc4._0x5a58fe),_0x13d909(-_0x363fc4._0x392c32,-0x91,0x2e,-0x17d)],'shell':![],'windowsHide':!![],'detached':!_0x4ad5fe});}catch(_0x150d61){if(isErrnoException(_0x150d61)&&_0x150d61[_0x13d909(_0x363fc4._0x328d36,0xed,0x99,0x46)]===_0x13d909(-0xa9,-_0x363fc4._0xbb3bfc,-_0x363fc4._0x325e83,-0x1bc))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x3cfcaa,{'command':_0x2a27e3[_0x13d909(_0x363fc4._0x1fe4ee,-0x4e,0x31,-0x100)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});throw new ToolExecutionError(_0x150d61 instanceof Error?_0x150d61[_0x599d5d(0x86d,_0x363fc4._0x4e06c8,_0x363fc4._0x450541,0x663)]:String(_0x150d61),{'command':_0x2a27e3[_0x599d5d(_0x363fc4._0x1f5f10,_0x363fc4._0x3f1031,_0x363fc4._0x2edc2f,0x67c)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});}const _0x408f5d=[],_0x1b7f3a=[],_0x4e9eec=new StringDecoder(_0x13d909(-_0x363fc4._0x4cdc1c,-0xed,-0x5c,-_0x363fc4._0x4ba5bc)),_0x2d2d44=new StringDecoder(_0x599d5d(_0x363fc4._0x4f579a,0x72d,_0x363fc4._0x16d474,_0x363fc4._0x26280d));let _0x4c195e,_0xa6521a=![];function _0x13d909(_0x3131a7,_0x4a6389,_0x16d4d3,_0x5c990d){return _0x345ad6(_0x3131a7-0x115,_0x4a6389- -0x531,_0x3131a7,_0x5c990d-_0x46f32f._0x30302b);}let _0x2dd5a1;const _0x2da0eb=()=>{if(!_0x4c195e)return;const _0x2684f3=_0x4c195e;_0x4c195e=void 0x0,_0x2684f3();},_0x2a4ec0=async()=>{function _0x317d5b(_0x28ded7,_0x56666e,_0x230626,_0x551bb8){return _0x13d909(_0x56666e,_0x28ded7-_0x1f73f8._0x3f4826,_0x230626-_0x1f73f8._0x4597ce,_0x551bb8-_0x1f73f8._0x16ec55);}if(_0x1b7f3a[_0x317d5b(0x3c7,_0x2f8dd0._0x470799,_0x2f8dd0._0x58a551,0x47e)]>0x0||_0xa6521a)return;await new Promise(_0x4f1eeb=>{_0x4c195e=_0x4f1eeb;});},_0x2e72e8=_0x382f8a=>{const _0x3ec278={_0x329b2c:0x119};function _0x204d27(_0x37b860,_0x2edf0e,_0x388169,_0x319562){return _0x599d5d(_0x37b860-0xd3,_0x319562,_0x2edf0e- -0x5d5,_0x319562-_0x3ec278._0x329b2c);}appendChunk(_0x408f5d,_0x1b7f3a,_0x4e9eec[_0x204d27(-_0x56db26._0x149d5a,_0x56db26._0x9bc69a,0x34,_0x56db26._0x37e5ed)](_0x382f8a),_0x68a52b,_0x2da0eb);},_0x3dc2d6=_0x46575e=>{function _0x4506bc(_0x2b7bda,_0x216bf8,_0x5dfcfe,_0x282c21){return _0x599d5d(_0x2b7bda-_0x38ddb7._0x4d307d,_0x282c21,_0x5dfcfe- -0x622,_0x282c21-0x1da);}appendChunk(_0x408f5d,_0x1b7f3a,_0x2d2d44[_0x4506bc(-0xe2,0x146,_0x2530b4._0x1ceed7,_0x2530b4._0x59c016)](_0x46575e),_0x68a52b,_0x2da0eb);};_0x8d9653[_0x599d5d(_0x363fc4._0x55e31d,0x6af,_0x363fc4._0x188198,0x4f0)]?.['on'](_0x599d5d(_0x363fc4._0x31fc1e,_0x363fc4._0x23a9dd,_0x363fc4._0x52d917,0x6c8),_0x2e72e8),_0x8d9653[_0x13d909(0xe2,0x7e,-0x8a,0x68)]?.['on']('data',_0x3dc2d6);let _0x2873c6=![],_0xcb6e42;const _0x2dc0f6=addAbortListener(_0x37eecc[_0x599d5d(_0x363fc4._0x3e02f5,0x574,0x627,_0x363fc4._0x12e2f0)],()=>{_0x2dd5a1=toAbortError(_0x37eecc[_0x23b54e(0x2a3,0x2bb,_0x528050._0x5b9347,0x3ad)][_0xca273b(_0x528050._0x45fb15,_0x528050._0x144ff9,_0x528050._0x510a8,0x7b3)]);function _0xca273b(_0x46c48d,_0x3f2067,_0x34656f,_0x260919){return _0x13d909(_0x260919,_0x3f2067-_0x4cfd08._0x3c2e05,_0x34656f-0xd4,_0x260919-_0x4cfd08._0x1b125c);}_0xa6521a=!![],_0x2da0eb();function _0x23b54e(_0x21bc52,_0x464a95,_0x24cfbc,_0x4cfb11){return _0x13d909(_0x24cfbc,_0x21bc52-_0x5beaa2._0x1b2e22,_0x24cfbc-_0x5beaa2._0x190d47,_0x4cfb11-_0x5beaa2._0x545041);}try{killProcessGroup(_0x8d9653,_0x4ad5fe);}catch{}});try{const _0x9a7fdf=new Promise((_0x34241c,_0x111786)=>{const _0x1876d1={_0x570813:0xec,_0x4460d4:0x772,_0x2e5e66:0x1e0},_0x5e8a4d={_0x15b6b4:0x5a5,_0x16069c:0x6f6,_0x13395c:0x56d},_0x2907e1={_0x5634f9:0x38b},_0x4d042d={_0x2bd3ed:0x7b7};function _0x3ca71b(_0x2667e1,_0x4f3827,_0x30319c,_0xe0846d){return _0x599d5d(_0x2667e1-0x144,_0x2667e1,_0x30319c- -_0x4d042d._0x2bd3ed,_0xe0846d-0x24);}const _0x366f3a=()=>{_0xcb6e42&&(clearTimeout(_0xcb6e42),_0xcb6e42=void 0x0);function _0x112dd9(_0x200d1a,_0x496bb2,_0x39caa9,_0x3fb23b){return _0x1e3a(_0x3fb23b- -0x3c6,_0x39caa9);}function _0x580958(_0x4156ab,_0xb6962b,_0x27c471,_0x24a39e){return _0x1e3a(_0x27c471-_0x2907e1._0x5634f9,_0x24a39e);}_0x8d9653['off'](_0x112dd9(-0x1cc,-0x248,-_0x12becf._0x3e4808,-_0x12becf._0x4722b7),_0x2099fe),_0x8d9653['off'](_0x112dd9(-0x1b5,0x85,_0x12becf._0x2a257e,-_0x12becf._0xd94060),_0x48ba62);},_0x2099fe=_0x2def4a=>{_0xa6521a=!![],_0x2da0eb(),_0x366f3a(),_0x111786(_0x2dd5a1??_0x2def4a);},_0x48ba62=(_0x28c137,_0x276266)=>{_0x2873c6=!![],appendChunk(_0x408f5d,_0x1b7f3a,_0x4e9eec['end'](),_0x68a52b,_0x2da0eb),appendChunk(_0x408f5d,_0x1b7f3a,_0x2d2d44[_0x569f5(_0x5e8a4d._0x15b6b4,_0x5e8a4d._0x16069c,_0x5e8a4d._0x13395c,0x48a)](),_0x68a52b,_0x2da0eb),_0xa6521a=!![],_0x2da0eb();function _0x569f5(_0x5e8719,_0x18744,_0x2c70b8,_0x79656f){return _0x1e3a(_0x5e8719-0x2c7,_0x79656f);}_0x366f3a();if(_0x2dd5a1){_0x111786(_0x2dd5a1);return;}_0x34241c({'code':_0x28c137,'signal':_0x276266});};function _0x55f208(_0x2f017a,_0x19730e,_0x2170bb,_0x37fd46){return _0x599d5d(_0x2f017a-_0x1876d1._0x570813,_0x19730e,_0x37fd46- -_0x1876d1._0x4460d4,_0x37fd46-_0x1876d1._0x2e5e66);}_0xcb6e42=setTimeout(()=>{_0xa6521a=!![],_0x2da0eb(),_0x366f3a();try{killProcessGroup(_0x8d9653,_0x4ad5fe);}catch{}_0x111786(new ToolExecutionError('Command\x20timed\x20out\x20after\x20'+_0x30cb92+'\x20ms',{'command':_0x2a27e3['command'],'cwd':_0x67bff4,'shellPath':_0x3cfcaa,'timeoutMs':_0x30cb92,'timedOut':!![]}));},_0x30cb92),_0x8d9653[_0x3ca71b(-0x131,-0x49,-_0x2f5534._0x21c2a1,_0x2f5534._0x5a37fd)](_0x3ca71b(-0x2c4,-0x1c9,-_0x2f5534._0x254225,-_0x2f5534._0x198b86),_0x2099fe),_0x8d9653[_0x55f208(-_0x2f5534._0x96fb3f,-_0x2f5534._0x532372,-_0x2f5534._0xa7ccb,-0xba)](_0x55f208(-0x101,-0x4f,-_0x2f5534._0x48bca1,-_0x2f5534._0x2564be),_0x48ba62);});while(_0x1b7f3a['length']>0x0||!_0xa6521a){if(_0x1b7f3a[_0x599d5d(_0x363fc4._0x2ca728,_0x363fc4._0x599408,0x5bc,_0x363fc4._0x109acb)]===0x0){await _0x2a4ec0();continue;}const _0x2124f2=_0x1b7f3a['shift']();_0x2124f2!==void 0x0&&(yield _0x2124f2);}const _0x1a1f3d=await _0x9a7fdf,_0x5c2b13=_0x1abc83?_0x13d909(-_0x363fc4._0x91abcf,-_0x363fc4._0x104672,-_0x363fc4._0x4ed1c8,-0x97)+(_0x1a1f3d['code']??0x0):_0x408f5d[_0x13d909(-_0x363fc4._0x542c08,-_0x363fc4._0x283989,-_0x363fc4._0x3067fb,0xfa)](''),_0x189d7f={'command':_0x2a27e3[_0x599d5d(0x63b,0x79e,0x70b,_0x363fc4._0xb44b6a)],'cwd':_0x67bff4,'exitCode':_0x1a1f3d[_0x13d909(0x235,0xed,-0x2c,_0x363fc4._0x224450)]??0x0,'signal':_0x1a1f3d[_0x599d5d(0x4f3,_0x363fc4._0x3492c,0x627,_0x363fc4._0x3bdcb3)],'ignoreOutput':_0x1abc83,'shellPath':_0x3cfcaa,'timeoutMs':_0x30cb92};if(_0x1a1f3d[_0x599d5d(0x709,_0x363fc4._0x1a5bd1,_0x363fc4._0x1ec6e2,0x775)]!==0x0)throw new ToolExecutionError(_0x5c2b13||_0x13d909(0x1a2,0xcc,-_0x363fc4._0x3d333c,-0x81)+(_0x1a1f3d[_0x599d5d(_0x363fc4._0x5d15a0,0x727,0x846,0x91c)]??0x0),_0x189d7f);return createToolOutput(_0x5c2b13,_0x189d7f);}catch(_0x436d13){while(_0x1b7f3a['length']>0x0){const _0x2adb95=_0x1b7f3a[_0x13d909(-_0x363fc4._0x19c41c,-0x93,_0x363fc4._0x3031a0,-_0x363fc4._0x2b73e5)]();_0x2adb95!==void 0x0&&(yield _0x2adb95);}if(_0x436d13 instanceof ToolExecutionError)throw _0x436d13;if(_0x2dd5a1)throw _0x2dd5a1;if(isErrnoException(_0x436d13)&&_0x436d13[_0x13d909(_0x363fc4._0x3ef6b1,0xed,_0x363fc4._0x243b63,-0x7)]===_0x599d5d(_0x363fc4._0x43eb01,_0x363fc4._0x5b1df4,_0x363fc4._0x32b194,0x631))throw new ToolExecutionError(_0x13d909(0x34,-_0x363fc4._0x41869e,-_0x363fc4._0x86cfe7,-_0x363fc4._0x48bf30)+_0x3cfcaa,{'command':_0x2a27e3[_0x13d909(-_0x363fc4._0x8de5d8,-_0x363fc4._0x3cb8cd,-_0x363fc4._0x3b53ec,-0x2f)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});throw new ToolExecutionError(_0x436d13 instanceof Error?_0x436d13['message']:String(_0x436d13),{'command':_0x2a27e3[_0x13d909(-0x128,-_0x363fc4._0x3cb8cd,0xab,-0x165)],'cwd':_0x67bff4,'shellPath':_0x3cfcaa});}finally{_0xcb6e42&&clearTimeout(_0xcb6e42);_0x2dc0f6(),_0x8d9653['stdout']?.[_0x13d909(_0x363fc4._0x4d4084,_0x363fc4._0x58fe6c,-_0x363fc4._0x34190f,-_0x363fc4._0x50194a)]('data',_0x2e72e8),_0x8d9653[_0x13d909(_0x363fc4._0x2ec356,_0x363fc4._0x380e2c,0x142,0x105)]?.[_0x599d5d(0x8bf,0x7d9,_0x363fc4._0x570b2a,0x7e9)](_0x13d909(-_0x363fc4._0xc60c0d,-_0x363fc4._0x10de3f,-_0x363fc4._0x3e895e,-0x1d2),_0x3dc2d6);if(!_0x2873c6&&_0x8d9653[_0x599d5d(0x7f3,_0x363fc4._0x38c100,_0x363fc4._0x5b7421,0x889)]&&!_0x8d9653[_0x13d909(-_0x363fc4._0x480e28,-0x42,-_0x363fc4._0x601d98,-_0x363fc4._0x49ec60)])try{killProcessGroup(_0x8d9653,_0x4ad5fe);}catch{}}}});}function createShellExecTool(_0x142c01={}){return createBashTool(_0x142c01);}import{readdir,readFile as _0x45e8bb}from'fs/promises';import{extname,join as _0x5ede0b}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x1bd5ad,join,relative as _0xa48818,resolve as _0x1d1143}from'path';import{readdir as _0x51efe6,readFile as _0x2e1a22}from'fs/promises';import{join as _0x37a5d3,relative as _0x49ed4a,sep}from'path';import{delimiter}from'path';import{mkdir as _0x359e8d,rm,stat as _0x5a2546,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x31c946}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x30cf29,rename,writeFile as _0x15df74}from'fs/promises';import{homedir as _0x11f299}from'os';import{dirname as _0x36e0d9,isAbsolute as _0x5f51cb,join as _0x1381a0,resolve as _0x4bf9bb}from'path';import{parse as _0x52eb53,stringify as _0xb58a98}from'yaml';import{cp,mkdir as _0x242cf2,readFile as _0x29ef6f,rm as _0x318e04,writeFile as _0x7a1b9}from'fs/promises';import{homedir}from'os';import{join as _0x403b18}from'path';import{parse as _0x5b0bd4,stringify as _0x12166c}from'yaml';import{z}from'zod';import{readdir as _0x5988e8,readFile as _0x5d7e0e}from'fs/promises';import{join as _0x24c170}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x2a0d14){const _0x553a82={_0x1f18fc:0x8b,_0x200f0c:0x22d,_0x54626c:0x1da,_0x317967:0xb5,_0x39fe5d:0xb,_0x3829f2:0x9f,_0x3502a8:0x117,_0x3b2dce:0x43,_0x5f4b84:0x60},_0xd993b3={_0x3adc00:0x18c},_0x305cb9=[];let _0x4b15ac='',_0x17967a=0x0;function _0x4852a5(_0x338222,_0x462f6c,_0x22f8de,_0x578fec){return _0x29bb69(_0x338222-0xbf,_0x578fec-0x4d9,_0x462f6c,_0x578fec-0x6f);}function _0x240298(_0x43f3d2,_0x1816a2,_0x288da3,_0x13a1d6){return _0x567203(_0x43f3d2,_0x1816a2-0x2d,_0x13a1d6- -_0xd993b3._0x3adc00,_0x13a1d6-0x181);}while(_0x17967a<_0x2a0d14['length']){const _0x21adf5=_0x2a0d14[_0x17967a];if(_0x21adf5==='\x5c'&&_0x17967a+0x1<_0x2a0d14['length'])_0x4b15ac+=_0x2a0d14[_0x17967a+0x1],_0x17967a+=0x2;else{if(_0x21adf5==='\x22'||_0x21adf5==='\x27'){const _0x4cf06a=_0x21adf5;_0x17967a++;while(_0x17967a<_0x2a0d14[_0x240298(-0x2a6,-_0x553a82._0x1f18fc,-0x8c,-0x1a6)]&&_0x2a0d14[_0x17967a]!==_0x4cf06a){_0x2a0d14[_0x17967a]==='\x5c'&&_0x17967a+0x1<_0x2a0d14[_0x240298(-_0x553a82._0x200f0c,-0x2ee,-0x23d,-0x1a6)]?(_0x4b15ac+=_0x2a0d14[_0x17967a+0x1],_0x17967a+=0x2):(_0x4b15ac+=_0x2a0d14[_0x17967a],_0x17967a++);}_0x17967a++;}else _0x21adf5!==void 0x0&&/\s/[_0x240298(-0x50,-_0x553a82._0x54626c,-0x116,-_0x553a82._0x317967)](_0x21adf5)?(_0x4b15ac&&(_0x305cb9[_0x240298(-_0x553a82._0x39fe5d,0x3b,-_0x553a82._0x3829f2,0x60)](_0x4b15ac),_0x4b15ac=''),_0x17967a++):(_0x4b15ac+=_0x21adf5,_0x17967a++);}}if(_0x4b15ac)_0x305cb9[_0x240298(-0xca,_0x553a82._0x3502a8,_0x553a82._0x3b2dce,_0x553a82._0x5f4b84)](_0x4b15ac);return _0x305cb9;}function renderCommandInstructions(_0x4fa46c){const _0x481881={_0x5c6dcb:0x5de,_0x20d542:0x46c,_0xff017b:0x43d,_0x2a508c:0x441,_0x5c62ba:0x459,_0x5c2f2c:0x558,_0x5be37b:0x58c,_0x29ea58:0x503,_0x45f0c6:0x61d,_0x4290f1:0x58c,_0x4c2cd2:0x47f,_0x260212:0x571,_0x1bf94c:0x58c,_0x2beff7:0x53f,_0x51f732:0x463,_0x57c868:0x6e1,_0x2739f2:0x5ee,_0x42d2d3:0x552,_0x11541a:0x37d,_0x3958ea:0x5e9,_0x4edc13:0x48c,_0x3de2df:0x3d7,_0x1c4534:0x482,_0x5a4922:0x339,_0x5e2070:0x4a2,_0x362848:0x342,_0x6b65dc:0x418,_0x572591:0x40e,_0x1e7e96:0x40d},_0x4a13ac={_0x42c9df:0xbe},_0x3a7623={_0x1fe664:0x490,_0x48d25d:0x5fe};function _0x2f04de(_0x18f8a7,_0x20f752,_0x3e6b21,_0x8aa1e7){return _0x29bb69(_0x18f8a7-0x181,_0x20f752-0x4e2,_0x3e6b21,_0x8aa1e7-0x15b);}let _0x31c9d2=_0x4fa46c[_0x2f04de(_0x481881._0x5c6dcb,0x52f,0x4be,0x671)],_0x1acbf0=![];const _0x23b20f=tokenizeCommandArguments(_0x4fa46c['argumentsText']);_0x31c9d2=_0x31c9d2[_0x42911e(0x441,_0x481881._0x20d542,_0x481881._0xff017b,0x48b)](/\$ARGUMENTS\[(\d+)\]/g,(_0x485e63,_0x8bccab)=>{return _0x1acbf0=!![],_0x23b20f[Number(_0x8bccab)]??'';}),_0x31c9d2=_0x31c9d2[_0x42911e(_0x481881._0x2a508c,_0x481881._0x5c62ba,_0x481881._0x5c2f2c,0x3bb)](/\$ARGUMENTS\b/g,()=>{const _0x130743={_0x54bfb2:0x15d};function _0x1afecb(_0x65a43f,_0x2b44a7,_0x150574,_0x2f8ed8){return _0x42911e(_0x2f8ed8-0x105,_0x2b44a7-_0x130743._0x54bfb2,_0x150574-0x1ee,_0x65a43f);}return _0x1acbf0=!![],_0x4fa46c[_0x1afecb(_0x3a7623._0x1fe664,0x452,_0x3a7623._0x48d25d,0x587)];});if(_0x4fa46c[_0x2f04de(0x5d9,_0x481881._0x5be37b,_0x481881._0x29ea58,0x51c)]&&_0x4fa46c[_0x2f04de(_0x481881._0x45f0c6,_0x481881._0x4290f1,_0x481881._0x4c2cd2,_0x481881._0x260212)]['length']>0x0)for(let _0xc528fd=0x0;_0xc528fd<_0x4fa46c[_0x2f04de(0x6dd,_0x481881._0x1bf94c,_0x481881._0x2beff7,_0x481881._0x51f732)]['length'];_0xc528fd++){const _0x1b178d=_0x4fa46c[_0x2f04de(_0x481881._0x57c868,0x58c,_0x481881._0x2739f2,0x6c5)][_0xc528fd];if(_0x1b178d){const _0x51acc9=new RegExp('\x5c$'+_0x1b178d+'\x5cb','g');_0x31c9d2=_0x31c9d2[_0x2f04de(_0x481881._0x42d2d3,0x497,_0x481881._0x11541a,_0x481881._0x3958ea)](_0x51acc9,()=>{return _0x1acbf0=!![],_0x23b20f[_0xc528fd]??'';});}}function _0x42911e(_0x566e3f,_0x30a813,_0x3e9164,_0x454c0e){return _0x29bb69(_0x566e3f-_0x4a13ac._0x42c9df,_0x566e3f-0x48c,_0x454c0e,_0x454c0e-0x3b);}return _0x31c9d2=_0x31c9d2[_0x2f04de(0x3ba,0x497,_0x481881._0x4edc13,_0x481881._0x3de2df)](/\$(\d+)\b/g,(_0x352967,_0x427d0e)=>{return _0x1acbf0=!![],_0x23b20f[Number(_0x427d0e)]??'';}),!_0x1acbf0&&_0x4fa46c[_0x42911e(_0x481881._0x1c4534,_0x481881._0x5a4922,_0x481881._0x5e2070,0x46f)][_0x42911e(_0x481881._0x362848,0x3e6,_0x481881._0x6b65dc,_0x481881._0x572591)]()&&(_0x31c9d2=_0x31c9d2+_0x42911e(0x3d4,_0x481881._0x1e7e96,0x4e3,0x3c4)+_0x4fa46c[_0x42911e(0x482,0x4dc,0x432,0x446)]),_0x31c9d2;}var chatModelAuthSchemeSchema=z[_0x567203(0x1b7,0x108,0x87,0x136)](['bearer',_0x29bb69(0x4f,0xce,-0x27,-0x56)]),apiKeyAuthSchema=z[_0x29bb69(-0x43,0xe4,-0x62,0x17b)]({'type':z[_0x29bb69(0xac,0x132,0x246,0x86)](_0x567203(0x2c3,0x1b1,0x22d,0x12b)),'apiKey':z[_0x29bb69(-0x1a,-0x83,0xc0,-0x1ad)](),'authScheme':chatModelAuthSchemeSchema[_0x567203(-0xe6,0x1c,-0x36,0x113)]()})[_0x29bb69(0x146,0x83,0x145,0x11e)](),oauthAuthSchema=z[_0x567203(0x2c6,0x30f,0x218,0x277)]({'type':z['literal'](_0x567203(-0x61,0x7,0x4f,0x72)),'access':z['string'](),'refresh':z['string'](),'expires':z[_0x29bb69(-0x16,0x68,-0x7a,0x193)]()['optional'](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x567203(0xc4,0x11d,0x1b7,0x2fc)](),authMethodSchema=z[_0x29bb69(-0x143,-0xd6,0x1b,-0x144)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z['string'](),'name':z[_0x567203(-0x1c,0x83,0xb1,0xe7)]()[_0x567203(0x3d,0x9d,-0x36,0x76)]()})[_0x29bb69(0x13f,0x83,0x16d,0x1b6)](),modelConfigSchema=z[_0x29bb69(-0x20c,-0xd6,-0x19b,-0x204)]([z[_0x29bb69(0x140,0x132,-0x1a,0x60)](![]),z['literal'](!![]),z[_0x567203(0xbd,0x152,0xb1,-0x13)](),z[_0x567203(0x117,0x12f,0x129,0x130)](z[_0x567203(-0x59,0x5a,0xb1,-0x6a)]()),z[_0x567203(0x1db,0x9b,0x129,0x268)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x29bb69(-0x1c7,-0xad,0x9b,-0x1e3)](['anthropic-messages',_0x29bb69(0x1b,0x98,0x141,-0xae),_0x567203(0xd9,0xf,0x12b,0x10),_0x29bb69(0x2f,-0xd5,-0x12c,-0x1e1)]),providerConfigSchema=z['object']({'apiKey':z[_0x29bb69(-0x23,-0x83,-0x37,-0x13c)]()[_0x567203(0xf9,0xa4,-0x36,-0x9e)](),'token':z[_0x29bb69(-0x1d4,-0x83,0x42,0x23)]()['optional'](),'defaultModel':z['string']()[_0x567203(-0x35,0x6e,-0x36,0x4b)](),'smallModel':z['string']()[_0x567203(0x3f,-0x147,-0x36,0x10)](),'currentAuth':z[_0x567203(0x97,0x149,0xb1,0x1b0)]()[_0x567203(-0x17e,-0x79,-0x36,-0x2b)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x567203(-0x174,-0x153,-0x36,0x6c)](),'baseUrl':z[_0x567203(0xb,0x27,0xb1,-0x98)]()[_0x29bb69(-0x20c,-0x16a,-0x139,-0x24d)](),'models':modelConfigSchema[_0x567203(-0x148,0x54,-0x36,-0x108)](),'customHeaders':z['record'](z[_0x567203(-0x13,-0xa,0xb1,-0x98)](),z['string']())[_0x29bb69(-0x31,-0x16a,-0x1ad,-0x154)]()})['passthrough'](),mcpServerConfigSchema=z[_0x29bb69(0x1d7,0xe4,0x21a,-0xd)]({'command':z['string']()[_0x29bb69(-0xf0,-0x16a,-0x244,-0x10b)](),'args':z[_0x29bb69(0x118,-0xb,0x9f,0x61)](z[_0x29bb69(-0x43,-0x83,0x54,-0xf9)]())[_0x567203(-0x34,0x5e,-0x36,0x86)](),'env':z[_0x29bb69(0x8d,0x133,0x11b,0x23c)](z[_0x567203(0x11a,0x127,0xb1,0x9)](),z['string']())[_0x29bb69(-0x168,-0x16a,-0x2a1,-0x96)](),'transport':z[_0x29bb69(0x20,-0xad,-0x2,-0x15d)]([_0x29bb69(0xfa,0x8d,-0x61,-0x48),_0x567203(-0x3b,0x96,0xb,-0x75)])[_0x567203(0x9b,-0xeb,-0x36,-0x94)](),'url':z['string']()[_0x567203(-0xbd,0x35,-0x36,0x2a)](),'headers':z[_0x567203(0x32b,0x370,0x267,0x237)](z[_0x567203(0x13,0x6,0xb1,0xf9)](),z[_0x29bb69(-0x133,-0x83,0xb6,-0x1aa)]())[_0x29bb69(-0x78,-0x16a,-0x14e,-0x29b)](),'prefix':z[_0x567203(0x128,-0x46,0xb1,0x172)]()[_0x567203(-0x25,-0x140,-0x36,-0x34)](),'timeoutMs':z[_0x567203(0x29f,0x284,0x19c,0x1c4)]()[_0x567203(0x23,0x88,-0x36,-0x110)](),'enabled':z[_0x29bb69(-0x153,-0x79,-0xef,0xb5)]()[_0x29bb69(-0xb3,-0x16a,-0x7b,-0x16a)](),'auth':z[_0x29bb69(0x176,0xe4,0x1db,0x11d)]({'type':z[_0x567203(0xf2,0x51,0x87,0x160)]([_0x567203(-0xc3,-0xa2,0x73,0x13b),_0x29bb69(0x46,-0x36,0x10a,0x9b),_0x567203(-0xf8,-0x90,0x4f,0xcf)]),'token':z[_0x567203(0x1ec,0x1ab,0xb1,0x71)]()[_0x567203(0x11f,0x8d,-0x36,-0xce)](),'oauth':z[_0x567203(0x322,0x242,0x218,0x27f)]({'clientId':z[_0x567203(0x195,-0x74,0xb1,0x1e0)]()[_0x29bb69(-0x266,-0x16a,-0x15b,-0x104)](),'clientMetadataUrl':z[_0x567203(0x16,0xfb,0xb1,0x17e)]()[_0x567203(-0xd7,0x86,-0x36,0x7b)](),'authorizationServer':z[_0x567203(0x1ba,0x37,0xb1,0x1be)]()[_0x29bb69(-0x218,-0x16a,-0xd4,-0x20e)](),'scopes':z[_0x29bb69(-0xa9,-0xb,-0x97,-0xf8)](z[_0x29bb69(-0x3f,-0x83,-0xa4,-0xa7)]())[_0x29bb69(-0xa0,-0x16a,-0x117,-0x7a)](),'tokenStorageKey':z[_0x567203(0x128,0x9f,0xb1,0xcf)]()[_0x567203(-0x26,0x85,-0x36,0x75)]()})[_0x567203(0x6a,0xff,0x1b7,0x2e0)]()['optional']()})[_0x567203(0x209,0x148,0x1b7,0x1a2)]()[_0x567203(-0x44,-0x2e,-0x36,0x11d)]()})[_0x567203(0x122,0x1ed,0x1b7,0x1d8)](),mcpSettingsSchema=z['object']({'servers':z['record'](z['string'](),mcpServerConfigSchema)[_0x29bb69(-0x102,-0x16a,-0xe1,-0x12c)](),'allowedTools':z['record'](z['string'](),z['record'](z[_0x29bb69(0x9a,-0x83,0x29,-0x12)](),z[_0x567203(-0xe,0x1d9,0xbb,-0x1)]()))[_0x29bb69(-0x72,-0x16a,-0x1e9,-0xb8)](),'defaultTimeoutMs':z[_0x567203(0x247,0x4e,0x19c,0xff)]()[_0x29bb69(-0x19c,-0x16a,-0x2b,-0x24d)]()})[_0x567203(0x119,0x1e0,0x1b7,0x2db)](),skillsSettingsSchema=z['object']({'enabled':z[_0x29bb69(-0x77,-0x79,-0x76,0xa4)]()[_0x29bb69(-0x236,-0x16a,-0xed,-0x143)](),'includeDefaults':z[_0x567203(-0x45,0x12d,0xbb,0x1c)]()[_0x567203(-0x80,-0xb1,-0x36,-0x43)](),'directories':z[_0x567203(0x7c,0x13,0x129,0x19f)](z[_0x567203(0x14c,-0x63,0xb1,0x7f)]())[_0x29bb69(-0x6b,-0x16a,-0x288,-0x73)](),'exclude':z[_0x567203(0x241,0x199,0x129,0x45)](z[_0x29bb69(-0xb0,-0x83,0x21,0x4c)]())[_0x29bb69(-0x75,-0x16a,-0x24e,-0x115)]()})[_0x29bb69(0x119,0x83,-0x85,0xb1)](),commandsSettingsSchema=z[_0x29bb69(0x224,0xe4,0x15b,-0x6)]({'enabled':z['boolean']()['optional'](),'directories':z[_0x567203(0x134,0x1b4,0x129,0x1dc)](z[_0x29bb69(-0x70,-0x83,0x80,0xa7)]())[_0x29bb69(-0xa5,-0x16a,-0xc1,-0x1bf)]()})[_0x29bb69(-0xb1,0x83,0x9a,0x162)](),agentsSettingsSchema=z[_0x29bb69(0x14f,0xe4,0x232,0x89)]({'enabled':z[_0x29bb69(-0xb8,-0x79,-0x17e,-0xdb)]()['optional'](),'includeDefaults':z[_0x567203(0x106,0x1ae,0xbb,0x14e)]()['optional'](),'directories':z['array'](z[_0x29bb69(-0xed,-0x83,0x35,0xb9)]())[_0x567203(0x101,-0xb7,-0x36,0x6f)]()})[_0x29bb69(0x6d,0x83,0x2f,0xb5)]();function _0x567203(_0x373501,_0x2de387,_0x3841bb,_0xe22617){return _0x1e3a(_0x3841bb- -0x1ff,_0x373501);}var uiThemeSettingsSchema=z[_0x29bb69(-0x10,0xe4,0x1cc,0x31)]({'mode':z['enum']([_0x567203(0x53,-0x67,0x9,0x3a),_0x29bb69(-0x66,0xbc,-0x95,0x7d),_0x29bb69(0x1c9,0xb2,0x181,0x1d5)])[_0x29bb69(-0x3f,-0x16a,-0x122,-0x67)](),'colorLevel':z[_0x29bb69(-0x1ae,-0xad,0x21,-0x9a)]([_0x567203(-0xc2,0xb2,0x9,0x11d),_0x29bb69(0x41,-0xc1,-0xc7,-0x1e2),'ansi16',_0x567203(0x2d0,0xe2,0x237,0x260),_0x29bb69(0x44,-0x54,0xd5,0xc5)])[_0x567203(-0x31,-0x135,-0x36,0x4b)](),'backgrounds':z[_0x567203(-0x80,-0x89,0x87,-0x76)]([_0x29bb69(-0x216,-0x12b,-0x3d,-0x11c),'on',_0x567203(0x16d,0x132,0x222,0x105)])[_0x29bb69(-0x1f,-0x16a,-0x25a,-0x248)](),'messageStyle':z['enum']([_0x567203(0x114,-0x71,0x74,0x27),_0x29bb69(-0x17a,-0x56,0xc4,0xf7)])['optional']()})['passthrough'](),statuslineSegmentSchema=z[_0x29bb69(-0x1b0,-0xad,0x7b,-0x1ac)]([_0x29bb69(-0x1bc,-0x11d,-0xce,-0xc0),_0x567203(0x152,0x108,0xaa,0x131),'thinking','sudo',_0x567203(0x169,0x2d5,0x1bf,0x1c4),_0x29bb69(-0x12a,-0x158,-0xc9,-0x1f5),_0x567203(0x15e,0x13e,0x13f,0x106),_0x567203(0x366,0x15b,0x21a,0x10a),_0x29bb69(0x202,0x11d,0x25c,0x12a),_0x567203(-0xb2,-0x27,0x5c,0x72),_0x29bb69(0x6f,0xb1,0x1ef,0xf2),_0x29bb69(-0xf5,-0x10,-0xcc,-0xa),_0x29bb69(-0xf8,-0x8b,-0xac,0xbd),'memory',_0x29bb69(-0xda,-0x32,-0xc8,-0xd)]),statuslineItemSchema=z[_0x29bb69(-0xdc,-0xd6,0x71,-0x4e)]([statuslineSegmentSchema,z[_0x29bb69(0x44,0x132,0x129,0x93)]('|')]),statuslineRowSchema=z[_0x29bb69(-0x20,-0xb,0x93,-0x101)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x567203(0x176,-0xe6,0x60,0x14d)]([statuslineRowSchema,statuslineRowSchema])[_0x29bb69(-0x2ba,-0x16a,-0x1f0,-0x4f)]()})[_0x29bb69(-0x2e,0x83,0x106,-0xd1)](),memorySettingsSchema=z[_0x29bb69(0x4e,0xe4,0x47,0x16d)]({'version':z[_0x29bb69(-0x19,0x132,0x3b,0x287)](0x2)[_0x29bb69(-0x137,-0x16a,-0x1d6,-0x2a5)](),'retrieval':z[_0x29bb69(0x19d,0xe4,0x129,-0x44)]({'engine':z[_0x29bb69(-0x1c,0x132,-0x2,-0x1b)](_0x29bb69(0x160,0x88,0x1da,-0xc2))['optional'](),'candidateLimit':z[_0x29bb69(-0xd1,0x68,-0x72,-0x13)]()[_0x29bb69(-0x146,-0x16a,-0x109,-0x16)](),'activeCandidateLimit':z['number']()[_0x567203(-0xce,0x39,-0x36,-0x18c)](),'activeEnabled':z['boolean']()[_0x567203(-0x5b,-0x89,-0x36,-0x4c)](),'maxQueriesPerTurn':z[_0x567203(0x2ab,0xb8,0x19c,0x249)]()[_0x567203(-0xb6,0x5,-0x36,-0xb8)](),'coreInjectTokenBudget':z[_0x567203(0x13b,0x20d,0x19c,0x21c)]()[_0x567203(0x38,0xd0,-0x36,0x4)](),'injectTokenBudget':z[_0x29bb69(-0xcb,0x68,0xa,0x7c)]()[_0x29bb69(-0x2a0,-0x16a,-0x28f,-0x7f)](),'minScore':z['number']()['optional'](),'freshnessHalfLifeDays':z[_0x29bb69(0x1be,0x68,0xd3,-0x94)]()['optional']()})[_0x567203(0x1d1,0x1f2,0x1b7,0x2d4)]()[_0x567203(-0x12,-0xb7,-0x36,0xb8)](),'extraction':z['object']({'enabled':z[_0x29bb69(-0xa7,-0x79,-0x9f,0x9a)]()[_0x567203(-0x78,-0x144,-0x36,-0x72)](),'provider':z['string']()['optional'](),'model':z['string']()[_0x29bb69(-0x209,-0x16a,-0x2a7,-0x2b4)](),'sensitiveFilter':z[_0x567203(0x178,0x5,0xbb,0x1db)]()['optional']()})[_0x567203(0x2b0,0x10f,0x1b7,0x181)]()['optional'](),'index':z['object']({'persisted':z['boolean']()['optional'](),'flushIntervalMs':z[_0x29bb69(-0x81,0x68,0x167,0xd6)]()[_0x567203(-0xcb,0x68,-0x36,-0xe2)]()})[_0x567203(0x190,0xc6,0x1b7,0x22b)]()[_0x29bb69(-0x1b6,-0x16a,-0x14e,-0x224)](),'enabled':z['boolean']()[_0x567203(-0xa3,-0x77,-0x36,-0xbf)](),'saveTool':z[_0x29bb69(0x66,-0x79,-0x2e,-0x1b7)]()[_0x29bb69(-0x109,-0x16a,-0x32,-0x209)](),'model':z['string']()[_0x567203(-0x142,-0x116,-0x36,-0xcf)](),'provider':z[_0x29bb69(-0xff,-0x83,-0x45,0x84)]()[_0x29bb69(-0x10c,-0x16a,-0x80,-0xc1)](),'maxInjectionTokens':z[_0x29bb69(0x3a,0x68,0x137,0x103)]()[_0x29bb69(-0x20f,-0x16a,-0x14c,-0x4e)](),'backgroundExtraction':z['boolean']()[_0x567203(-0x74,0x27,-0x36,-0x13f)]()})['passthrough'](),recentModelSchema=z[_0x29bb69(0x1df,0xe4,-0x6,0xb0)]({'provider':z[_0x567203(0x194,-0x42,0xb1,-0x9e)](),'model':z[_0x567203(0x42,0x1dd,0xb1,0x180)](),'usedAt':z['number']()})[_0x29bb69(0xa9,0x83,0xb1,-0xb)](),lspServerEntrySchema=z['object']({'disabled':z['boolean']()[_0x29bb69(-0x19c,-0x16a,-0xfe,-0x248)](),'command':z[_0x567203(0x5b,0x1d1,0xb1,-0x39)]()[_0x567203(0xb5,0xc6,-0x36,-0x13d)](),'args':z[_0x29bb69(-0x128,-0xb,-0x117,-0xdc)](z[_0x567203(-0x34,0x83,0xb1,0x109)]())['optional'](),'rootMarkers':z[_0x29bb69(-0x51,-0xb,-0x5,-0x6b)](z['string']())[_0x567203(-0xe,-0x16a,-0x36,0xdd)]()})[_0x29bb69(0xd6,0x83,-0x5e,0xb1)](),lspConfigSchema=z[_0x29bb69(0x1ae,0xe4,0x150,-0x68)]({'enabled':z[_0x29bb69(0xb7,-0x79,-0x150,-0x23)]()[_0x567203(-0x126,-0x17c,-0x36,-0x84)](),'servers':z[_0x29bb69(0x118,0x133,0x25d,0xff)](z[_0x29bb69(0x7a,-0x83,-0xe4,-0x39)](),lspServerEntrySchema)[_0x29bb69(-0x25d,-0x16a,-0x242,-0x168)]()})[_0x567203(0x19c,0x2db,0x1b7,0x101)](),commandHookConfigSchema=z[_0x567203(0x227,0x1dc,0x218,0x325)]({'type':z[_0x29bb69(0x93,0x132,0xb4,0x5)](_0x567203(0x117,-0xc,0x135,0x184)),'command':z[_0x29bb69(-0x176,-0x83,-0xe0,-0xd0)](),'timeout':z[_0x567203(0x105,0xde,0x19c,0x105)]()[_0x567203(-0xc5,-0x5b,-0x36,-0x11b)]()}),hookMatcherGroupSchema=z[_0x567203(0x252,0x1e0,0x218,0x1c3)]({'matcher':z[_0x567203(0x179,0x11b,0xb1,0x3c)]()[_0x567203(0xf0,-0xa1,-0x36,0x6d)](),'hooks':z[_0x29bb69(-0x3,-0xb,0xa3,-0xf6)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x29bb69(0x73,0xe4,0x30,-0x6a)]({'PreToolUse':z[_0x29bb69(0x13a,-0xb,0xa1,0x49)](hookMatcherGroupSchema)[_0x567203(0xd,-0xa4,-0x36,0x71)](),'PostToolUse':z[_0x29bb69(-0x35,-0xb,0x12c,-0xf4)](hookMatcherGroupSchema)[_0x29bb69(-0xf5,-0x16a,-0x1a2,-0x64)](),'UserPromptSubmit':z[_0x567203(0x21f,0xab,0x129,-0x27)](hookMatcherGroupSchema)[_0x567203(-0x6e,-0x147,-0x36,-0xf3)](),'Stop':z['array'](hookMatcherGroupSchema)[_0x567203(0x10a,0x8e,-0x36,-0x35)](),'Notification':z[_0x567203(0x246,0x1d1,0x129,0x28)](hookMatcherGroupSchema)[_0x29bb69(-0x253,-0x16a,-0x247,-0xc7)](),'SessionStart':z['array'](hookMatcherGroupSchema)[_0x29bb69(-0x217,-0x16a,-0x107,-0x230)](),'SessionEnd':z[_0x567203(0x164,-0x2c,0x129,0x10c)](hookMatcherGroupSchema)[_0x567203(-0x125,-0x31,-0x36,-0xc8)]()}),cliConfigSchema=z[_0x567203(0x134,0x1ae,0x218,0xe8)]({'activeProvider':z[_0x29bb69(-0x197,-0x83,0x4b,0x57)]()[_0x567203(-0x47,0x55,-0x36,0xfa)](),'activeModel':z['string']()['optional'](),'apiKey':z['string']()[_0x29bb69(-0x63,-0x16a,-0x2b7,-0x120)](),'providers':z[_0x29bb69(0x106,0x133,0x278,0x3f)](z['string'](),providerConfigSchema)[_0x567203(-0x132,-0x66,-0x36,-0x187)](),'mcp':mcpSettingsSchema[_0x567203(0xb8,-0xc9,-0x36,-0x10d)](),'skills':skillsSettingsSchema['optional'](),'agents':agentsSettingsSchema[_0x567203(-0x167,0x7f,-0x36,-0x188)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x29bb69(0xa3,0x133,0x14e,0x1f3)](z[_0x29bb69(-0xea,-0x83,-0x135,-0x101)](),z[_0x567203(-0x5c,0x0,0xbb,-0x71)]())[_0x567203(0xa,0x14,-0x36,0xbc)](),'memory':memorySettingsSchema[_0x567203(-0xff,-0xcf,-0x36,0x6c)](),'session':z[_0x567203(0x115,0x142,0x218,0x262)]({'memPersist':z[_0x567203(0xc3,0x87,0xbb,0x37)]()[_0x567203(-0x88,0x84,-0x36,-0x17f)](),'persistEventLog':z[_0x29bb69(-0x74,-0x79,0x9d,-0x120)]()['optional'](),'persistHttpLog':z[_0x29bb69(-0x6e,-0x79,-0x130,-0x5a)]()['optional']()})['passthrough']()[_0x567203(0x11,0x94,-0x36,0xfc)](),'requireToolApproval':z[_0x29bb69(-0x11b,-0x79,0x38,-0x115)]()[_0x567203(-0x98,0x93,-0x36,-0x17b)](),'thinking':z[_0x567203(-0x44,-0x9b,0x87,0x132)]([_0x567203(0x142,0x2ef,0x1d6,0x245),_0x567203(0xdc,0x153,0x43,0x17b),'MEDIUM',_0x567203(0x9a,-0x21,0xb5,-0x2)])[_0x567203(0x72,-0x152,-0x36,0x5b)](),'streamingChunks':z[_0x567203(-0x72,-0x1e,0xbb,-0x5c)]()[_0x567203(0xec,0x101,-0x36,-0x3c)](),'agentsEnabled':z[_0x29bb69(0x5,0x133,0x164,0x70)](z['string'](),z[_0x29bb69(0xb6,-0x79,-0x1d,-0x14e)]())[_0x29bb69(-0xf2,-0x16a,-0x90,-0x206)](),'recentModels':z[_0x29bb69(0x6c,-0xb,-0x140,-0xcd)](recentModelSchema)[_0x29bb69(-0x68,-0x16a,-0x2a7,-0x1b6)](),'lsp':lspConfigSchema[_0x567203(-0x137,-0xf2,-0x36,0xd1)](),'ui':z[_0x567203(0x27b,0x1c5,0x218,0x21e)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x567203(-0x16a,0xfd,-0x36,0x33)]()})[_0x29bb69(0x18c,0x83,-0xae,0x10b)]()['optional'](),'tools':z['record'](z[_0x567203(0x71,0x11d,0xb1,-0xc)](),z[_0x567203(0x179,0x20b,0x1d1,0xc1)]())['optional'](),'hooks':hooksConfigSchema['optional']()})[_0x567203(0x2ac,0xcf,0x1b7,0x19a)]();function buildDescription(_0x4a7b6f){const _0x526ef1={_0x387a1d:0x35b,_0x5510b1:0x326,_0x533bed:0x1aa,_0x23a24b:0x200,_0x246879:0xbe,_0x1ac8f9:0x34a,_0x112d68:0x78d,_0x7e902:0x5e7,_0x2dce88:0x6e4,_0x5c7b76:0x773,_0x55800e:0x641,_0x429afd:0x57e,_0x2199b8:0x497,_0x573164:0x7b3,_0x598561:0x6b9},_0xc3a4a5={_0x177e64:0x1c4,_0x370c54:0x58b,_0x1b6764:0x2c},_0x2a10b6={_0x45c691:0x301,_0x571b50:0x65};if(_0x4a7b6f['length']===0x0)return[_0x7d01af(_0x526ef1._0x387a1d,0x3c9,_0x526ef1._0x5510b1,0x292),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x7d01af(_0x526ef1._0x533bed,_0x526ef1._0x23a24b,0x208,_0x526ef1._0x246879)][_0x7d01af(0x3cb,_0x526ef1._0x1ac8f9,0x2fb,0x41d)]('\x0a');function _0x7d01af(_0xf6e637,_0x3a6fd3,_0x53b4e3,_0xe6a6df){return _0x29bb69(_0xf6e637-0x36,_0x53b4e3-_0x2a10b6._0x45c691,_0x3a6fd3,_0xe6a6df-_0x2a10b6._0x571b50);}function _0x53d502(_0x5acf65,_0xf6993f,_0x50da3a,_0xd3e3ed){return _0x567203(_0x5acf65,_0xf6993f-_0xc3a4a5._0x177e64,_0xd3e3ed-_0xc3a4a5._0x370c54,_0xd3e3ed-_0xc3a4a5._0x1b6764);}const _0x6011a4=[_0x53d502(_0x526ef1._0x112d68,_0x526ef1._0x7e902,0x625,_0x526ef1._0x2dce88),_0x53d502(0x62e,_0x526ef1._0x5c7b76,0x758,_0x526ef1._0x55800e),_0x53d502(0x608,_0x526ef1._0x429afd,0x6ef,0x626),..._0x4a7b6f[_0x53d502(_0x526ef1._0x2199b8,0x5cd,0x6c9,0x583)](_0x48c14e=>_0x48c14e[_0x53d502(0x72a,0x74a,0x788,0x700)]?'-\x20'+_0x48c14e[_0x53d502(0x86a,0x731,0x8c9,0x7a1)]+'\x20'+_0x48c14e[_0x7d01af(0x2e8,0x402,0x342,0x39a)]+':\x20'+_0x48c14e[_0x53d502(0x6ba,0x70c,0x5aa,0x5b5)]:'-\x20'+_0x48c14e['name']+':\x20'+_0x48c14e['description'])];return _0x6011a4[_0x53d502(0x649,_0x526ef1._0x573164,0x7d7,_0x526ef1._0x598561)]('\x0a');}function createInvokeCommandTool(_0x47c677){const _0x54b8cf={_0x32b71f:0xf4,_0xcd1cf:0xfe,_0x2d9566:0x375,_0x58710e:0x1da,_0x3df169:0x8a,_0x4d33c8:0x128,_0x305ceb:0x244,_0x122942:0x2b4,_0x26fc72:0x419,_0x9981c2:0x379,_0x433297:0x40c,_0x265729:0x3fc,_0x2de143:0x33b,_0x2684e3:0x2a5,_0x32f86f:0x234,_0xfaa095:0x37a},_0x1bf610={_0x4d8199:0x31,_0x3b41bd:0x162,_0x3c16a3:0x319,_0x3474b4:0x2ac,_0x2d2473:0x129,_0x1807a7:0x1eb,_0x5c7c39:0x9a,_0x30c417:0x18d,_0x437316:0x472,_0x33aa97:0x33f,_0x30126f:0x311,_0xa60b23:0x1fa,_0x33bbcd:0x225,_0xa5a54:0x275,_0xcbc1c0:0x46,_0x9faacf:0x14a,_0x5dccc7:0x63,_0xad9f08:0x41,_0x2f215e:0x47,_0x2235c2:0x257,_0x1a61af:0x16a,_0x57ea55:0x17d},_0x1f3eae={_0x514334:0xd8,_0x2a68eb:0x11b},_0x62bdac={_0x2ca5fd:0x1a8},_0x7b1459={_0xdf5720:0x15d};function _0xfb628a(_0x51d3f8,_0xa3bf42,_0x4b6e28,_0x40024c){return _0x567203(_0xa3bf42,_0xa3bf42-_0x7b1459._0xdf5720,_0x51d3f8-0x1e2,_0x40024c-0xd9);}const _0x32a35e=new Map(_0x47c677[_0x3a4287(0x244,_0x54b8cf._0x32b71f,_0x54b8cf._0xcd1cf,_0x54b8cf._0x2d9566)][_0xfb628a(_0x54b8cf._0x58710e,0x2e7,_0x54b8cf._0x3df169,_0x54b8cf._0x4d33c8)](_0x2b5401=>[_0x2b5401['id'],_0x2b5401]));function _0x3a4287(_0x13a3a9,_0x4f25ba,_0x56d3e5,_0x156917){return _0x29bb69(_0x13a3a9-_0x62bdac._0x2ca5fd,_0x13a3a9-0x328,_0x156917,_0x156917-0x66);}const _0x1ca6ba=buildDescription(_0x47c677[_0x3a4287(_0x54b8cf._0x305ceb,0x107,0x1d2,_0x54b8cf._0x122942)]);return defineTool({'name':_0x3a4287(_0x54b8cf._0x26fc72,0x56c,0x3f1,_0x54b8cf._0x9981c2),'description':_0x1ca6ba,'inputSchema':{'type':_0x3a4287(_0x54b8cf._0x433297,0x4aa,0x435,_0x54b8cf._0x265729),'properties':{'name':{'type':_0xfb628a(0x293,_0x54b8cf._0x2de143,0x16f,0x3d2)},'args':{'type':_0x3a4287(_0x54b8cf._0x2684e3,_0x54b8cf._0x32f86f,0x26b,_0x54b8cf._0xfaa095)}},'required':['name']},async *'execute'(_0x43181b){const _0x557065={_0x43cd6c:0x296};function _0x343668(_0x3be1a3,_0x5642c5,_0x283700,_0x2e9e78){return _0xfb628a(_0x2e9e78- -_0x557065._0x43cd6c,_0x3be1a3,_0x283700-0x13f,_0x2e9e78-0x105);}const _0x15ca7e=_0x32a35e[_0x343668(-0x3f,0x8f,0x59,-_0x1bf610._0x4d8199)](_0x43181b[_0x343668(0x18e,0xc3,0x47,_0x1bf610._0x3b41bd)]);if(!_0x15ca7e){const _0x3ab5f3=Array[_0x39600c(_0x1bf610._0x3c16a3,_0x1bf610._0x3474b4,_0x1bf610._0x2d2473,_0x1bf610._0x1807a7)](_0x32a35e[_0x39600c(0x139,0xaa,_0x1bf610._0x5c7c39,_0x1bf610._0x30c417)]())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x43181b[_0x39600c(_0x1bf610._0x437316,_0x1bf610._0x33aa97,_0x1bf610._0x30126f,0x332)]+_0x39600c(_0x1bf610._0xa60b23,0x260,0x32a,0x313)+_0x3ab5f3,{'name':_0x43181b[_0x343668(_0x1bf610._0x33bbcd,_0x1bf610._0xa5a54,_0x1bf610._0xcbc1c0,0x162)]});}const _0x39542c=await _0x47c677['loadCommand'](_0x15ca7e),_0x444d3f=_0x43181b[_0x343668(-_0x1bf610._0x9faacf,_0x1bf610._0x5dccc7,-_0x1bf610._0xad9f08,-_0x1bf610._0x2f215e)]??'',_0x850f47=renderCommandInstructions({'instructions':_0x39542c['instructions'],'argumentsText':_0x444d3f,'argumentNames':_0x39542c[_0x39600c(0x36a,0x232,0x25b,_0x1bf610._0x2235c2)]});function _0x39600c(_0x508f29,_0x5a0c61,_0x2aa132,_0x4840fd){return _0x3a4287(_0x4840fd- -_0x1f3eae._0x514334,_0x5a0c61-_0x1f3eae._0x2a68eb,_0x2aa132-0xb2,_0x2aa132);}return yield createToolOutput(_0x850f47,{'id':_0x39542c['id'],'name':_0x39542c[_0x343668(0x62,_0x1bf610._0x1a61af,_0x1bf610._0x57ea55,0x162)],'path':_0x15ca7e['source']['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x3d4b58,rename as _0x1f8e35,stat as _0xa329f1,writeFile as _0x1ec8a3}from'fs/promises';import*as _0x2be4ac from'path';function detectEol(_0x250dfc){const _0x15aada={_0x4d7d1b:0x53e,_0x26b3f4:0x52e,_0x142bee:0x3e6,_0x252c16:0x438,_0x687f29:0x4c3,_0xf7c4d:0x2d5,_0x2fef6a:0x39c,_0x4cbbe6:0x2df},_0x58cf32={_0x2cf6c7:0x561},_0x1dd38b={_0x397a31:0x17e};function _0x20905e(_0x4c9c63,_0x584bc8,_0x1edd84,_0x59a61a){return _0x567203(_0x59a61a,_0x584bc8-_0x1dd38b._0x397a31,_0x584bc8-0x2a0,_0x59a61a-0x8a);}function _0x401830(_0x207fee,_0x3e1981,_0x2fcd27,_0x5c644a){return _0x29bb69(_0x207fee-0x9a,_0x5c644a-_0x58cf32._0x2cf6c7,_0x3e1981,_0x5c644a-0x82);}return/\r\n/['test'](_0x250dfc[_0x401830(_0x15aada._0x4d7d1b,_0x15aada._0x26b3f4,_0x15aada._0x142bee,0x41b)](_0x401830(0x46d,0x613,_0x15aada._0x252c16,_0x15aada._0x687f29)))?_0x20905e(_0x15aada._0xf7c4d,_0x15aada._0x2fef6a,0x250,_0x15aada._0x4cbbe6):'lf';}function normalizeToLf(_0x25b6d7){const _0x40c0a7={_0x41909e:0xb0,_0x58f909:0x3e,_0x5e7207:0x70},_0x1a030d={_0x4a1d8a:0x25};function _0x5b1ca9(_0x247924,_0x48731e,_0xff7e43,_0x37aff9){return _0x29bb69(_0x247924-0x1b,_0x37aff9- -_0x1a030d._0x4a1d8a,_0x247924,_0x37aff9-0xf5);}return _0x25b6d7[_0x5b1ca9(-_0x40c0a7._0x41909e,-0x4c,_0x40c0a7._0x58f909,-_0x40c0a7._0x5e7207)](/\r\n/g,'\x0a');}function convertEol(_0x20117b,_0x572a42){const _0x427e17={_0x30d088:0x4ec,_0x37b7e1:0x476},_0x1cc184={_0x14a40c:0x1ce,_0x3005ef:0x14c},_0x505f40={_0x2a3108:0x89};function _0x36000f(_0x437c61,_0x35a98a,_0x37f20a,_0x15b160){return _0x29bb69(_0x437c61-_0x505f40._0x2a3108,_0x437c61-0x393,_0x37f20a,_0x15b160-0x22);}function _0x19e1f7(_0x17c5b8,_0x2e3dfc,_0x3f4d3c,_0x3b0a6b){return _0x29bb69(_0x17c5b8-_0x1cc184._0x14a40c,_0x3b0a6b-0x4a7,_0x2e3dfc,_0x3b0a6b-_0x1cc184._0x3005ef);}return _0x572a42===_0x19e1f7(_0x427e17._0x30d088,0x3a1,0x441,0x46f)?_0x20117b[_0x19e1f7(0x3d3,_0x427e17._0x37b7e1,0x46c,0x45c)](/\n/g,'\x0d\x0a'):_0x20117b;}async function atomicWrite(_0x44ddc8,_0x18f217){const _0x4a556d={_0x1adc39:0x523,_0x2ca83e:0x578,_0x206b52:0x589,_0x45fb45:0x726,_0x2600a1:0x61c,_0x16950c:0x74c,_0x1186ed:0x641,_0x46bc70:0x74a,_0x3b6907:0x7fb,_0x47bd80:0x3c5,_0x1c7b09:0x1d7,_0x30584e:0x396,_0x4e5887:0x275,_0x4b3e96:0x50,_0x5294c4:0xb5,_0x2318d9:0x1e4,_0x2f4bea:0x22f},_0x270d79={_0x1f8565:0x1da},_0x2b8362={_0x2f13f2:0x1b},_0x5dfe02=_0x2be4ac[_0x182368(0x5c9,0x589,_0x4a556d._0x1adc39,_0x4a556d._0x2ca83e)](_0x44ddc8);function _0x39afdd(_0x3be9fb,_0x30e43b,_0xc9a5c2,_0x3399f5){return _0x29bb69(_0x3be9fb-0x77,_0x3399f5-0x18e,_0x30e43b,_0x3399f5-_0x2b8362._0x2f13f2);}const _0x39ed0d=_0x2be4ac[_0x182368(_0x4a556d._0x206b52,_0x4a556d._0x45fb45,_0x4a556d._0x2600a1,_0x4a556d._0x16950c)](_0x5dfe02,_0x182368(_0x4a556d._0x1186ed,0x6df,_0x4a556d._0x46bc70,_0x4a556d._0x3b6907)+_0x2be4ac[_0x39afdd(0x1dc,_0x4a556d._0x47bd80,_0x4a556d._0x1c7b09,0x2b0)](_0x44ddc8)+'.'+Date[_0x39afdd(0x365,_0x4a556d._0x30584e,0x37b,_0x4a556d._0x4e5887)]()+'.'+Math[_0x39afdd(0x119,-0x8e,-_0x4a556d._0x4b3e96,0x5c)]()[_0x39afdd(-_0x4a556d._0x5294c4,0x3e,0x19c,0x48)](0x24)[_0x39afdd(0xf8,0xde,_0x4a556d._0x2318d9,_0x4a556d._0x2f4bea)](0x2));await _0x1ec8a3(_0x39ed0d,_0x18f217);function _0x182368(_0x5d1c62,_0x1ed492,_0x3baa46,_0x1fb06c){return _0x29bb69(_0x5d1c62-0x58,_0x3baa46-0x622,_0x1fb06c,_0x1fb06c-_0x270d79._0x1f8565);}await _0x1f8e35(_0x39ed0d,_0x44ddc8);}function sha256(_0x3d02c2){const _0x21c1ee={_0x53924f:0x798,_0x3d22e8:0x6eb,_0x29af21:0x872,_0x18562d:0x7c1,_0x3cfbed:0x6d5,_0x3e2fa3:0x59b,_0x36c9a5:0x652},_0x17a855={_0x2b41ec:0x1cf,_0x28f1a1:0x30c,_0x2abf2c:0x1e5},_0x405857={_0x102bc4:0x6ac,_0x5b5e34:0x1c2};function _0x37d43a(_0x5a4a23,_0x2b2c2d,_0x20dcb2,_0x1635ea){return _0x29bb69(_0x5a4a23-0x6f,_0x5a4a23-_0x405857._0x102bc4,_0x1635ea,_0x1635ea-_0x405857._0x5b5e34);}function _0x2b0206(_0x559249,_0x489aa6,_0x1508fa,_0x1a6002){return _0x29bb69(_0x559249-_0x17a855._0x2b41ec,_0x1a6002-_0x17a855._0x28f1a1,_0x489aa6,_0x1a6002-_0x17a855._0x2abf2c);}return createHash(_0x37d43a(_0x21c1ee._0x53924f,_0x21c1ee._0x3d22e8,0x7cd,0x79d))['update'](_0x3d02c2)[_0x37d43a(0x738,0x675,_0x21c1ee._0x29af21,_0x21c1ee._0x18562d)](_0x37d43a(0x664,_0x21c1ee._0x3cfbed,_0x21c1ee._0x3e2fa3,_0x21c1ee._0x36c9a5));}function countLines(_0x36dac0){const _0x3c2e9b={_0x1e9b82:0x2fe,_0x16bc49:0x3e4,_0x2b2a1d:0x38d,_0x582d84:0x66b,_0x515c53:0x121},_0x240a56={_0x31b45d:0xce},_0x1ada92=_0x36dac0['replace'](/\n$/,'');function _0x14fb56(_0x30518c,_0x364728,_0x5dea6a,_0x4e94bc){return _0x567203(_0x4e94bc,_0x364728-0x104,_0x30518c-0x13b,_0x4e94bc-0x38);}function _0x353f1c(_0x3777bb,_0x284982,_0x4f1ec3,_0x528db7){return _0x29bb69(_0x3777bb-0x197,_0x528db7-0x562,_0x4f1ec3,_0x528db7-_0x240a56._0x31b45d);}return _0x1ada92[_0x353f1c(_0x3c2e9b._0x1e9b82,_0x3c2e9b._0x16bc49,_0x3c2e9b._0x2b2a1d,0x414)]===0x0?0x0:_0x1ada92[_0x353f1c(0x42a,_0x3c2e9b._0x582d84,0x435,0x518)]('\x0a')[_0x14fb56(_0x3c2e9b._0x515c53,-0x32,0x14d,0x18)];}function calculateLineNumbers(_0x4ffbf0,_0x55a4c4,_0x293de9,_0x5f50ef){const _0x116696={_0x457a53:0x3c1,_0x65161b:0x299,_0x3001a3:0x206,_0x17a489:0x195},_0x4390da={_0x237dfb:0xb2,_0x1fc097:0x1a7},_0x34699f={_0x207445:0x2e3,_0x381677:0x124},_0x160041=_0x4ffbf0[_0x5f4e33(0x35b,0x45b,_0x116696._0x457a53,0x384)](0x0,_0x5f50ef)[_0x5f4e33(0x18b,0x1ce,0x2ed,_0x116696._0x65161b)]('\x0a')[_0x5f4e33(0x15b,0x2dc,_0x116696._0x3001a3,_0x116696._0x17a489)];function _0x5f4e33(_0x1183a9,_0x2a9115,_0xd4ab14,_0x1abb01){return _0x29bb69(_0x1183a9-0x1c5,_0x1abb01-_0x34699f._0x207445,_0x1183a9,_0x1abb01-_0x34699f._0x381677);}const _0x231b95=countLines(_0x55a4c4);function _0x1091a2(_0x2b45a5,_0xe57e1,_0x26da06,_0x418f1d){return _0x567203(_0x2b45a5,_0xe57e1-_0x4390da._0x237dfb,_0x418f1d-0x559,_0x418f1d-_0x4390da._0x1fc097);}const _0x18f6a2=countLines(_0x293de9);return{'oldStartLine':_0x160041,'oldEndLine':_0x160041+_0x231b95-0x1,'newStartLine':_0x160041,'newEndLine':_0x160041+_0x18f6a2-0x1,'oldLineCount':_0x231b95,'newLineCount':_0x18f6a2};}function createFileEditTool(_0x582252={}){const _0x195e73={_0x14cc2e:0x80b,_0x172447:0x60e,_0x3a9c34:0x611,_0x2faa9d:0x444,_0x37e4e9:0xe6,_0x126791:0x50,_0x3b8344:0x22,_0x372186:0xc9,_0x6a9e85:0x89,_0x1ff70a:0x10e,_0xa4be75:0x56b,_0x496973:0x5a6,_0xe91ff4:0x5a1,_0x46d6cd:0x658,_0x18b400:0x6e0,_0x7f040b:0x5b0,_0x24e09b:0x32,_0x9de6c9:0xf1,_0x1293b7:0x1be,_0x3bd09e:0x783,_0x231b7b:0x6bb,_0xf287b5:0x772,_0x5b02a2:0x67a},_0x4fd1dd={_0x8b31fc:0x175,_0x39c7b5:0x214,_0x3dbb5a:0x1c5,_0x52eff8:0x1c2,_0x1ebc04:0x2c7,_0x170891:0x387,_0x1d54b0:0x286,_0x408597:0xb3,_0x5ae23e:0x21f,_0x3754fc:0x1a3,_0x3a8588:0x261,_0x57e70b:0x2e5,_0x5594ec:0x273,_0x5b55d3:0x3ee,_0xb414a4:0x33c,_0x352816:0x3a8,_0x4a0120:0x112,_0x4aebcf:0x193,_0x27cede:0x9a,_0x2ecef7:0x104,_0x97cf80:0x1c3,_0x22d3e8:0x209,_0x5540ec:0x28,_0x4df423:0x10d,_0xf68965:0x2d6,_0x27f44d:0x1a4,_0x42118d:0x1e1,_0x4e4631:0x1ee,_0x5a6a98:0x153,_0x3985a8:0x24c,_0x10374d:0x1aa,_0x270661:0x113,_0x15ee8a:0x109,_0x490f4f:0x59,_0xfcecb5:0x197,_0x3f3288:0x283,_0x47c190:0x175,_0x3e4c07:0x2c4,_0x16660e:0x1b8,_0x4493a3:0x9c,_0x310186:0x2df,_0x47c7bb:0x256,_0x37c9af:0x249,_0x150285:0x2e4,_0x2f42cf:0x22d,_0x43ef6d:0x1f9,_0x31cc2f:0x11d,_0x2d897e:0x131,_0x2fea66:0x194},_0x1b9955={_0x54a73c:0x5,_0x143214:0x334},_0x206e5e={_0x2deca5:0xf8,_0x292053:0x4f5},_0xe38a3={_0x11491a:0xc9,_0x2f4443:0x13a},_0x4a419f=_0x2be4ac['resolve'](_0x582252[_0x227dca(0x4fa,0x4fe,0x4dd,0x52f)]??process['cwd']());function _0x592e35(_0x2eef78,_0x5631bf,_0x238210,_0x2e4b83){return _0x567203(_0x5631bf,_0x5631bf-_0xe38a3._0x11491a,_0x238210- -_0xe38a3._0x2f4443,_0x2e4b83-0x2f);}const _0x4e6a63=(_0x582252[_0x227dca(0x79f,0x625,0x73b,_0x195e73._0x14cc2e)]??[])[_0x227dca(_0x195e73._0x172447,_0x195e73._0x3a9c34,0x4ed,_0x195e73._0x2faa9d)](_0x1e55df=>_0x2be4ac['resolve'](_0x1e55df));function _0x227dca(_0x4d2a06,_0x2e2387,_0x4849bc,_0x2f8618){return _0x567203(_0x2f8618,_0x2e2387-_0x206e5e._0x2deca5,_0x4849bc-_0x206e5e._0x292053,_0x2f8618-0x1a7);}const _0x5286f2=_0x582252['name']??_0x592e35(0x1aa,0x111,0xf8,0x1a3);return defineTool({'name':_0x5286f2,'description':_0x592e35(_0x195e73._0x37e4e9,-_0x195e73._0x126791,-_0x195e73._0x3b8344,-0x48),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0x592e35(0x85,_0x195e73._0x372186,-_0x195e73._0x6a9e85,-_0x195e73._0x1ff70a)},'oldText':{'type':_0x227dca(0x617,_0x195e73._0xa4be75,_0x195e73._0x496973,0x46a)},'newText':{'type':_0x227dca(0x54b,_0x195e73._0xe91ff4,0x5a6,_0x195e73._0x46d6cd)},'dryRun':{'type':_0x227dca(_0x195e73._0x18b400,0x4e3,_0x195e73._0x7f040b,0x610)}},'required':[_0x592e35(-_0x195e73._0x24e09b,-0x87,-_0x195e73._0x9de6c9,-_0x195e73._0x1293b7),_0x227dca(0x5d6,_0x195e73._0x3bd09e,_0x195e73._0x231b7b,_0x195e73._0xf287b5),_0x227dca(0x625,0x5fb,0x57d,_0x195e73._0x5b02a2)]},async *'execute'(_0x39f27e){const _0x22c9ca={_0x47a595:0xab},_0x46d3ed=resolveAllowedPath(_0x4a419f,_0x4e6a63,_0x39f27e[_0x42b47f(_0x4fd1dd._0x8b31fc,0x1cb,0x198,_0x4fd1dd._0x39c7b5)]);await assertWorkspaceFile(_0x46d3ed);const _0x408449=await _0xa329f1(_0x46d3ed),_0x497c55=await _0x3d4b58(_0x46d3ed),_0x4228cb=detectEol(_0x497c55),_0x4afa75=normalizeToLf(_0x497c55[_0x46aec6(0x2ad,0x108,0x1af,_0x4fd1dd._0x3dbb5a)](_0x42b47f(_0x4fd1dd._0x52eff8,_0x4fd1dd._0x1ebc04,0x27f,0x1cc))),_0x15b60b=normalizeToLf(_0x39f27e[_0x46aec6(0x3cc,0x243,_0x4fd1dd._0x170891,_0x4fd1dd._0x1d54b0)]),_0x497022=normalizeToLf(_0x39f27e[_0x42b47f(0x1b4,_0x4fd1dd._0x408597,0x2ee,0x70)]),_0x2873f7=_0x4afa75[_0x42b47f(_0x4fd1dd._0x5ae23e,0x2a9,_0x4fd1dd._0x3754fc,_0x4fd1dd._0x3a8588)](_0x15b60b);if(_0x2873f7===-0x1){const _0x101cc5=_0x15b60b[_0x42b47f(0x301,0x421,_0x4fd1dd._0x57e70b,_0x4fd1dd._0x5594ec)](0x0,0x64)[_0x46aec6(0x253,_0x4fd1dd._0x5b55d3,0x2aa,0x373)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x42b47f(_0x4fd1dd._0xb414a4,_0x4fd1dd._0x352816,0x3ba,0x415)+_0x101cc5+(_0x15b60b[_0x42b47f(_0x4fd1dd._0x4a0120,-0x3,_0x4fd1dd._0x4aebcf,_0x4fd1dd._0x27cede)]>0x64?_0x42b47f(_0x4fd1dd._0x2ecef7,_0x4fd1dd._0x97cf80,_0x4fd1dd._0x22d3e8,-_0x4fd1dd._0x5540ec):'')+'\x22',{'filePath':_0x39f27e[_0x46aec6(0x1f3,_0x4fd1dd._0x4df423,0x20a,0x234)]});}const _0x849e2=_0x4afa75[_0x42b47f(0x301,0x39d,0x40a,_0x4fd1dd._0xf68965)](0x0,_0x2873f7)+_0x497022+_0x4afa75[_0x46aec6(0x489,0x426,0x396,0x2c0)](_0x2873f7+_0x15b60b[_0x42b47f(0x112,_0x4fd1dd._0x27f44d,_0x4fd1dd._0x42118d,_0x4fd1dd._0x4e4631)]),_0xc0b2bb=convertEol(_0x849e2,_0x4228cb),_0x2c1ae2=Buffer[_0x42b47f(0x1fb,0x10f,0x2b6,_0x4fd1dd._0x5a6a98)](_0xc0b2bb,'utf8'),_0xe7e0ed=sha256(_0x497c55),_0x46fc54=sha256(_0x2c1ae2),_0x14492f=_0xe7e0ed===_0x46fc54,_0x25c6f1=_0x39f27e[_0x42b47f(0x2cb,0x414,_0x4fd1dd._0x3985a8,0x2d3)]??![];function _0x46aec6(_0x593ccc,_0x2fae5f,_0x386cc4,_0x5f5dcb){return _0x227dca(_0x593ccc-_0x1b9955._0x54a73c,_0x2fae5f-0xae,_0x386cc4- -_0x1b9955._0x143214,_0x593ccc);}!_0x25c6f1&&!_0x14492f&&await atomicWrite(_0x46d3ed,_0x2c1ae2);function _0x42b47f(_0x16ab32,_0x38c1a3,_0x31f3ec,_0x3d1868){return _0x227dca(_0x16ab32-_0x22c9ca._0x47a595,_0x38c1a3-0x1b3,_0x16ab32- -0x3c9,_0x3d1868);}return yield createToolOutput(_0x14492f?_0x42b47f(_0x4fd1dd._0x10374d,_0x4fd1dd._0x270661,0x1d1,_0x4fd1dd._0x15ee8a):_0x25c6f1?_0x46aec6(_0x4fd1dd._0x490f4f,0x1ee,_0x4fd1dd._0xfcecb5,_0x4fd1dd._0x3f3288):'Edit\x20applied\x20successfully.',{'filePath':_0x39f27e[_0x42b47f(_0x4fd1dd._0x47c190,_0x4fd1dd._0x3e4c07,0x22b,0x177)],'resolvedPath':_0x46d3ed,'created':_0x408449['birthtime'][_0x42b47f(0x162,0xba,_0x4fd1dd._0x16660e,_0x4fd1dd._0x4493a3)](),'modified':_0x408449[_0x42b47f(_0x4fd1dd._0x310186,_0x4fd1dd._0x47c7bb,0x1ff,_0x4fd1dd._0x37c9af)]['toISOString'](),'size':_0x408449[_0x46aec6(0x254,_0x4fd1dd._0x150285,_0x4fd1dd._0x2f42cf,0x32c)],'eol':_0x4228cb,'oldTextLength':_0x15b60b['length'],'newTextLength':_0x497022[_0x42b47f(_0x4fd1dd._0x4a0120,_0x4fd1dd._0x43ef6d,0x25b,_0x4fd1dd._0x31cc2f)],'bytesWritten':_0x14492f||_0x25c6f1?0x0:_0x2c1ae2[_0x46aec6(_0x4fd1dd._0x2d897e,0x139,0x1a7,_0x4fd1dd._0x2fea66)],'beforeSha':_0xe7e0ed,'afterSha':_0x46fc54,'dryRun':_0x25c6f1,'noChange':_0x14492f,'lineNumbers':calculateLineNumbers(_0x4afa75,_0x15b60b,_0x497022,_0x2873f7)}),void 0x0;}});}import{mkdir as _0x13b0ce,rename as _0x5f511d,stat as _0x139e39,writeFile as _0x249eb4}from'fs/promises';import*as _0x5e8310 from'path';async function atomicWrite2(_0x3cdd12,_0x2fbca3){const _0x41f41d={_0x3a5312:0x272,_0x1932b0:0xfd,_0x236421:0x4dd,_0xa2fa63:0x557,_0x4c5775:0x578,_0x2bfa1b:0x796,_0x393c85:0x3f9,_0x47bbda:0x4df,_0xa00887:0x546,_0x44990e:0x4f5,_0x37ecd8:0x418,_0x3a4310:0x2ca,_0x17caf8:0x24a,_0x5d879d:0x555,_0x21de72:0x65b,_0x57027e:0x5fe},_0x3b432f={_0x130974:0x179,_0x51a04f:0x55d,_0x2aa2b5:0xfe},_0x2ea3de=_0x5e8310[_0x2144a0(0x213,0xcb,_0x41f41d._0x3a5312,_0x41f41d._0x1932b0)](_0x3cdd12);await _0x13b0ce(_0x2ea3de,{'recursive':!![]});function _0x2144a0(_0x1c9f2e,_0x26ea51,_0x53345d,_0x49cecd){return _0x29bb69(_0x1c9f2e-0x1b9,_0x1c9f2e-0x312,_0x26ea51,_0x49cecd-0xc4);}const _0x36ada3=_0x5e8310[_0x4b527d(_0x41f41d._0x236421,0x69f,_0x41f41d._0xa2fa63,0x618)](_0x2ea3de,'.tmp.'+_0x5e8310[_0x4b527d(_0x41f41d._0x4c5775,_0x41f41d._0x2bfa1b,0x67f,0x6cc)](_0x3cdd12)+'.'+Date[_0x2144a0(_0x41f41d._0x393c85,_0x41f41d._0x47bbda,_0x41f41d._0xa00887,_0x41f41d._0x44990e)]()+'.'+Math[_0x4b527d(_0x41f41d._0x37ecd8,0x551,0x42b,0x325)]()[_0x2144a0(0x1cc,_0x41f41d._0x3a4310,_0x41f41d._0x17caf8,0x177)](0x24)[_0x4b527d(_0x41f41d._0x5d879d,_0x41f41d._0x21de72,_0x41f41d._0x57027e,0x4b9)](0x2));function _0x4b527d(_0x353b71,_0x397d8c,_0x3d81ff,_0x115640){return _0x29bb69(_0x353b71-_0x3b432f._0x130974,_0x3d81ff-_0x3b432f._0x51a04f,_0x115640,_0x115640-_0x3b432f._0x2aa2b5);}await _0x249eb4(_0x36ada3,_0x2fbca3),await _0x5f511d(_0x36ada3,_0x3cdd12);}function createFileNewTool(_0x2a4baa={}){const _0x14fe7c={_0xcbcc82:0x623,_0x3b8d83:0x382,_0x24cafe:0x361,_0x143d77:0x4bb,_0x23d047:0x554,_0x55ab56:0x7b9,_0xba10e4:0x442,_0x366c5a:0x558,_0x119d54:0x2f7,_0x1aa796:0x43e,_0x211828:0x646,_0x18902a:0x794,_0x7ae945:0x50f,_0x262cdf:0x74a,_0x5dcbaf:0x572,_0x6fb3b6:0x4ab,_0x4702ce:0x52a,_0xbbbfbe:0x37d,_0x75d97c:0x648,_0x2e3fa2:0x5e9,_0x31285c:0x4bd,_0xb8a65c:0x4f7,_0x421f5e:0x611,_0x2c67c0:0x45f,_0x3a5896:0x54c},_0x2c9239={_0x454a07:0x472,_0x50f027:0x73c,_0x2a3cfd:0x6fe,_0x4c8b37:0x776,_0xda4861:0x62d,_0x3fd0e1:0x8a1,_0x55233e:0x6e0,_0x43b80c:0x469,_0x4ee064:0x4b4,_0x168620:0x55e,_0xe11b01:0x701,_0x16c4c8:0x617,_0x513866:0x6be,_0x303032:0x717,_0x39e2a2:0x616,_0x34bce0:0x4c9,_0x4f7657:0x81a,_0x309591:0x6ea,_0x5b3501:0x718,_0x2042cb:0x462,_0x242a2c:0x4bb,_0x1629e7:0x52c,_0x523d61:0x347,_0xc4cb3c:0x428,_0x49ae01:0x3fa,_0x58ee0a:0x56c},_0x46f2aa={_0x233fec:0xb6,_0x4c1898:0x188},_0x9f7da2={_0x1e3999:0x10a},_0x1054e3={_0x54410f:0x1e3};function _0x2333a2(_0x45f277,_0x28c9f6,_0x3d6b6b,_0x595855){return _0x567203(_0x28c9f6,_0x28c9f6-_0x1054e3._0x54410f,_0x45f277-0x430,_0x595855-0x9a);}const _0x11ad9c=_0x5e8310[_0x2333a2(0x4d6,_0x14fe7c._0xcbcc82,0x38f,0x48d)](_0x2a4baa[_0x4ef365(_0x14fe7c._0x3b8d83,_0x14fe7c._0x24cafe,0x375,0x42e)]??process[_0x4ef365(0x5c9,_0x14fe7c._0x143d77,0x4b9,0x5a8)]());function _0x4ef365(_0x32a5de,_0x300411,_0x3a9870,_0x3bdff5){return _0x29bb69(_0x32a5de-_0x9f7da2._0x1e3999,_0x3bdff5-0x57a,_0x3a9870,_0x3bdff5-0x16);}const _0x53944c=(_0x2a4baa[_0x2333a2(0x676,_0x14fe7c._0x23d047,_0x14fe7c._0x55ab56,0x64e)]??[])[_0x4ef365(_0x14fe7c._0xba10e4,_0x14fe7c._0x366c5a,_0x14fe7c._0x119d54,_0x14fe7c._0x1aa796)](_0x52030e=>_0x5e8310[_0x4ef365(0x45b,0x524,0x4de,0x4ec)](_0x52030e)),_0x5dd44c=_0x2a4baa[_0x2333a2(_0x14fe7c._0x211828,_0x14fe7c._0x18902a,_0x14fe7c._0x7ae945,_0x14fe7c._0x262cdf)]??_0x4ef365(_0x14fe7c._0x5dcbaf,0x4f4,0x4a1,_0x14fe7c._0x6fb3b6);return defineTool({'name':_0x5dd44c,'description':_0x4ef365(0x515,_0x14fe7c._0x4702ce,_0x14fe7c._0xbbbfbe,0x45c),'inputSchema':{'type':_0x2333a2(_0x14fe7c._0x75d97c,_0x14fe7c._0x2e3fa2,0x794,0x646),'properties':{'filePath':{'type':_0x4ef365(_0x14fe7c._0x31285c,0x3f0,0x5fe,_0x14fe7c._0xb8a65c)},'content':{'type':_0x4ef365(_0x14fe7c._0x421f5e,0x5b1,0x560,_0x14fe7c._0xb8a65c)}},'required':[_0x2333a2(0x479,0x509,0x4ca,_0x14fe7c._0x2c67c0),_0x2333a2(_0x14fe7c._0x3a5896,0x53b,0x512,0x41f)]},async *'execute'(_0x5eba77){const _0x40bd6a={_0x3a02a7:0x12,_0x41731f:0x1cd},_0x4af248=resolveAllowedPath(_0x11ad9c,_0x53944c,_0x5eba77[_0x3a78de(_0x2c9239._0x454a07,0x409,0x46f,0x48b)]);function _0x16c2a2(_0x33bbba,_0x5e358d,_0x5c6a84,_0x239268){return _0x4ef365(_0x33bbba-0x7a,_0x5e358d-_0x46f2aa._0x233fec,_0x5e358d,_0x5c6a84-_0x46f2aa._0x4c1898);}const _0x57c2ad=await _0x139e39(_0x4af248)[_0x16c2a2(_0x2c9239._0x50f027,_0x2c9239._0x2a3cfd,0x7fe,_0x2c9239._0x4c8b37)](()=>!![])[_0x16c2a2(_0x2c9239._0xda4861,0x856,0x755,_0x2c9239._0x3fd0e1)](()=>![]),_0x596378=Buffer[_0x16c2a2(0x7e5,0x650,0x69d,_0x2c9239._0x55233e)](_0x5eba77[_0x3a78de(0x5a8,_0x2c9239._0x43b80c,_0x2c9239._0x4ee064,_0x2c9239._0x168620)],'utf8');await atomicWrite2(_0x4af248,_0x596378),yield createToolOutput(_0x16c2a2(0x706,0x7d2,_0x2c9239._0xe11b01,0x67f)+_0x5eba77[_0x16c2a2(0x676,0x672,_0x2c9239._0x16c4c8,0x676)]+'.',{'filePath':_0x5eba77[_0x16c2a2(0x5eb,_0x2c9239._0x513866,_0x2c9239._0x16c4c8,_0x2c9239._0x303032)],'resolvedPath':_0x4af248,'bytes':_0x596378[_0x16c2a2(_0x2c9239._0x39e2a2,_0x2c9239._0x34bce0,0x5b4,0x4f0)],'lines':_0x5eba77[_0x16c2a2(0x7f8,_0x2c9239._0x4f7657,_0x2c9239._0x309591,_0x2c9239._0x5b3501)][_0x3a78de(_0x2c9239._0x2042cb,0x41b,_0x2c9239._0x242a2c,_0x2c9239._0x1629e7)](/\r?\n/)[_0x3a78de(0x427,_0x2c9239._0x523d61,0x341,_0x2c9239._0xc4cb3c)],'created':new Date()[_0x3a78de(_0x2c9239._0x49ae01,_0x2c9239._0x58ee0a,0x51e,0x478)](),'overwritten':_0x57c2ad});function _0x3a78de(_0xdcd43a,_0x973396,_0x4d44e7,_0x203756){return _0x2333a2(_0x203756-_0x40bd6a._0x3a02a7,_0x973396,_0x4d44e7-0x179,_0x203756-_0x40bd6a._0x41731f);}return void 0x0;}});}import{readFile as _0x343ce4,stat as _0x25200c}from'fs/promises';import*as _0x1d452b from'path';function stripUtfBom(_0x378dab){return _0x378dab['charCodeAt'](0x0)===0xfeff?_0x378dab['slice'](0x1):_0x378dab;}function clampLine(_0x6dc4e2,_0x4dbac7){const _0x5cb77b={_0x2f97cc:0x7d,_0x2ebbe6:0x110,_0x44f2cb:0x711,_0x3a54cd:0x60c,_0x10ba18:0x17,_0x47aebe:0xca,_0x114ffe:0x80},_0x20f794={_0x446ccf:0xf7,_0x5ce1d8:0x543},_0x4608e3={_0x8ec13d:0x11a,_0x100e83:0x1e5};function _0x24d6a7(_0x570c91,_0x282fe4,_0x16d7a0,_0x457769){return _0x567203(_0x457769,_0x282fe4-_0x4608e3._0x8ec13d,_0x570c91- -_0x4608e3._0x100e83,_0x457769-0xa6);}if(!Number[_0x24d6a7(-0x8a,-0x19b,_0x5cb77b._0x2f97cc,-_0x5cb77b._0x2ebbe6)](_0x6dc4e2))return 0x1;function _0x280abc(_0x4ae9a4,_0xc54b93,_0x44da2b,_0x1204cc){return _0x567203(_0x4ae9a4,_0xc54b93-_0x20f794._0x446ccf,_0xc54b93-_0x20f794._0x5ce1d8,_0x1204cc-0x54);}return Math[_0x280abc(_0x5cb77b._0x44f2cb,0x5dd,0x4be,_0x5cb77b._0x3a54cd)](0x1,Math['min'](Math[_0x24d6a7(-_0x5cb77b._0x10ba18,-_0x5cb77b._0x47aebe,_0x5cb77b._0x114ffe,-0x2b)](_0x6dc4e2),_0x4dbac7));}function createFileReadTool(_0x216272={}){const _0x3395c2={_0x5e9d55:0x25d,_0x155a9e:0x16,_0x1863a6:0xf1,_0x3332e4:0x7d,_0x3a0e5c:0x57a,_0x42b3af:0x594,_0x5527a9:0x583,_0x5751a8:0x2f3,_0x5c35cc:0x251,_0x266ef5:0x2ab,_0x24e0da:0x644,_0x333c6d:0x73e,_0x5d5ae2:0x6ac,_0x155b0e:0x7b4,_0xaa8d65:0x2e6,_0x4e99ed:0x231,_0x2fce76:0x76b,_0x411c50:0x757,_0x194d08:0x191,_0x485b4c:0x32d,_0x15343c:0x2fe,_0x4c9463:0x637,_0x3637b2:0x5ef,_0x5396c2:0x6a7},_0x5a128f={_0x26de33:0x5ab,_0x30e3e7:0x6c2,_0x5c4566:0x277,_0x2fd8cd:0x621,_0xa17bff:0x765,_0x2409bd:0x761,_0x3bbf2e:0x24d,_0x3c0240:0x118,_0x434bb6:0x23b,_0x406484:0x68f,_0x3d2766:0xfb,_0x2938b7:0x33e,_0x5528c9:0xb7,_0x4ff9da:0x21,_0x3e51f5:0x77,_0x26458f:0x24e,_0x3e6320:0x15f,_0x2d6b37:0x518,_0x2d036d:0x611,_0x4be315:0x70b,_0x21f0d3:0x63b,_0x358073:0x1d1,_0x2c0ef3:0x88,_0x3a304c:0x2d1,_0x21e78c:0x32a,_0x7b2f46:0x317,_0x27f6a4:0x1d1,_0x5fdd76:0x265,_0x2f8dfe:0x18b,_0x4dc440:0x9c,_0x2b9316:0x58,_0x13e4cd:0x170,_0x2eb22e:0x517,_0x823e7a:0x58b,_0x175456:0x6fd,_0x170fd5:0x7d3,_0x515068:0x834,_0x4e230a:0x7b8,_0x52ddc2:0x77a,_0x140f50:0x645,_0x3cfa87:0x4e8,_0x1a4d43:0x767,_0x2d5196:0x6b3,_0x32939f:0x6d3,_0x28654d:0x175},_0x53095f={_0x24521d:0x1d},_0x49cca3={_0x5e426c:0x59c},_0x58ed66={_0x323aca:0x89,_0x4b1f70:0x95,_0x3290a4:0x162},_0x588794=_0x1d452b[_0xd23f6e(_0x3395c2._0x5e9d55,_0x3395c2._0x155a9e,_0x3395c2._0x1863a6,0x13b)](_0x216272[_0xd23f6e(0x1aa,-0x9f,-0x96,_0x3395c2._0x3332e4)]??process['cwd']());function _0xd23f6e(_0x1dc165,_0xcf6db3,_0x2de4c8,_0x2c009b){return _0x567203(_0xcf6db3,_0xcf6db3-_0x58ed66._0x323aca,_0x2c009b-_0x58ed66._0x4b1f70,_0x2c009b-_0x58ed66._0x3290a4);}const _0x15fbf1=(_0x216272['allowedDirs']??[])[_0x449f02(0x6b3,_0x3395c2._0x3a0e5c,_0x3395c2._0x42b3af,_0x3395c2._0x5527a9)](_0x2ae602=>_0x1d452b[_0x449f02(0x6f7,0x755,0x642,0x73e)](_0x2ae602)),_0x2e99da=_0x216272[_0xd23f6e(_0x3395c2._0x5751a8,0x26a,_0x3395c2._0x5c35cc,_0x3395c2._0x266ef5)]??_0x449f02(0x886,0x723,0x7af,0x69c);function _0x449f02(_0x583421,_0x2808b2,_0x56d5e8,_0x4d1cbe){return _0x567203(_0x2808b2,_0x2808b2-0x129,_0x56d5e8-_0x49cca3._0x5e426c,_0x4d1cbe-0x87);}return defineTool({'name':_0x2e99da,'description':_0x449f02(_0x3395c2._0x24e0da,_0x3395c2._0x333c6d,0x73e,0x5fe),'inputSchema':{'type':_0x449f02(_0x3395c2._0x5d5ae2,0x87d,_0x3395c2._0x155b0e,0x80e),'properties':{'path':{'type':'string'},'lineStart':{'type':_0xd23f6e(0x101,_0x3395c2._0xaa8d65,0x259,_0x3395c2._0x4e99ed),'description':_0x449f02(_0x3395c2._0x2fce76,0x577,0x6a4,_0x3395c2._0x411c50)},'lineEnd':{'type':_0xd23f6e(0x2df,_0x3395c2._0x194d08,_0x3395c2._0x485b4c,0x231),'description':_0xd23f6e(0x3f3,0x3b9,0x377,_0x3395c2._0x15343c)}},'required':[_0x449f02(_0x3395c2._0x4c9463,_0x3395c2._0x3637b2,_0x3395c2._0x5396c2,0x67b)]},async *'execute'(_0x42641a){const _0x5425ae={_0x39d20c:0x108,_0x3e4207:0x73,_0x3d8397:0x510},_0x5364d8=resolveAllowedPath(_0x588794,_0x15fbf1,_0x42641a[_0x2c6df2(_0x5a128f._0x26de33,_0x5a128f._0x30e3e7,0x719,0x6b0)]);await assertWorkspaceFile(_0x5364d8);const _0x434bbd=await _0x25200c(_0x5364d8),_0x3b9d10=await _0x343ce4(_0x5364d8);if(isProbablyBinary(_0x3b9d10))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x42641a[_0x3b00e0(_0x5a128f._0x5c4566,0x220,0x1f0,0x1f4)],{'path':_0x42641a[_0x2c6df2(_0x5a128f._0x2fd8cd,_0x5a128f._0xa17bff,_0x5a128f._0x2409bd,0x6b0)]});let _0x2d5023=_0x3b9d10[_0x2c6df2(0x63e,0x630,0x54b,0x593)](_0x3b00e0(0x11f,0x1ab,_0x5a128f._0x3bbf2e,0x112));const _0x4d8dd6=_0x2d5023[_0x3b00e0(0x24c,_0x5a128f._0x3c0240,0x1d3,_0x5a128f._0x434bb6)](0x0)===0xfeff;_0x2d5023=stripUtfBom(_0x2d5023);function _0x2c6df2(_0x31d008,_0x24a8ee,_0x2fe269,_0x534bcc){return _0xd23f6e(_0x31d008-_0x5425ae._0x39d20c,_0x24a8ee,_0x2fe269-_0x5425ae._0x3e4207,_0x534bcc-_0x5425ae._0x3d8397);}const _0x41f3ed=_0x2d5023[_0x2c6df2(0x7ce,0x7d2,0x7b8,_0x5a128f._0x406484)](/\r?\n/),_0x25c472={'path':_0x42641a[_0x3b00e0(0x1e3,0x220,_0x5a128f._0x3d2766,0x1f9)],'resolvedPath':_0x5364d8,'created':_0x434bbd[_0x3b00e0(_0x5a128f._0x2938b7,0x31a,0x39f,0x2be)][_0x3b00e0(_0x5a128f._0x5528c9,0x14b,_0x5a128f._0x4ff9da,0x1bf)](),'modified':_0x434bbd['mtime'][_0x3b00e0(_0x5a128f._0x3e51f5,0x14b,_0x5a128f._0x26458f,_0x5a128f._0x3e6320)](),'size':_0x434bbd[_0x2c6df2(0x618,0x5dd,_0x5a128f._0x2d6b37,_0x5a128f._0x2d036d)],'encoding':_0x2c6df2(_0x5a128f._0x4be315,0x599,0x6c9,_0x5a128f._0x21f0d3),'bomStripped':_0x4d8dd6,'truncated':![],'totalLines':_0x41f3ed['length']};function _0x3b00e0(_0x987b13,_0x4b941f,_0x125574,_0x3d8f8a){return _0x449f02(_0x987b13-_0x53095f._0x24521d,_0x987b13,_0x4b941f- -0x487,_0x3d8f8a-0x57);}if(_0x42641a['lineStart']!==void 0x0||_0x42641a[_0x3b00e0(0x2e1,_0x5a128f._0x358073,_0x5a128f._0x2c0ef3,0x27d)]!==void 0x0){const _0x5df328=clampLine(_0x42641a[_0x3b00e0(_0x5a128f._0x3a304c,_0x5a128f._0x21e78c,0x45b,_0x5a128f._0x7b2f46)]??0x1,_0x41f3ed['length']),_0x324a1a=clampLine(_0x42641a[_0x3b00e0(0x19a,_0x5a128f._0x27f6a4,_0x5a128f._0x5fdd76,_0x5a128f._0x2f8dfe)]??_0x41f3ed[_0x3b00e0(_0x5a128f._0x4dc440,0xfb,_0x5a128f._0x2b9316,_0x5a128f._0x13e4cd)],_0x41f3ed[_0x2c6df2(0x5ab,_0x5a128f._0x2eb22e,0x50c,_0x5a128f._0x823e7a)]),_0x271b93=Math[_0x2c6df2(_0x5a128f._0x175456,0x69b,_0x5a128f._0x170fd5,0x792)](_0x5df328,_0x324a1a),_0x492e42=Math[_0x2c6df2(0x75f,0x751,0x6de,0x63f)](_0x5df328,_0x324a1a),_0x238b71=_0x41f3ed[_0x2c6df2(_0x5a128f._0x515068,0x89e,_0x5a128f._0x4e230a,_0x5a128f._0x52ddc2)](_0x271b93-0x1,_0x492e42)[_0x2c6df2(_0x5a128f._0x140f50,0x5f2,_0x5a128f._0x3cfa87,0x59d)]((_0x2a986d,_0x404aff)=>_0x271b93+_0x404aff+'|'+_0x2a986d)[_0x2c6df2(_0x5a128f._0x1a4d43,_0x5a128f._0x2d5196,0x660,_0x5a128f._0x32939f)]('\x0a');return yield createToolOutput(_0x238b71,{..._0x25c472,'lineRange':{'lineStart':_0x271b93,'lineEnd':_0x492e42,'linesTotal':_0x41f3ed[_0x3b00e0(0x1c6,_0x5a128f._0x3d2766,-0x2b,_0x5a128f._0x28654d)]}}),void 0x0;}return yield createToolOutput(_0x2d5023,_0x25c472),void 0x0;}});}import{stat as _0x7d1af9}from'fs/promises';import*as _0x48e2cd from'path';import{execSync,spawn as _0xf94bf1}from'child_process';import{existsSync}from'fs';import{stat as _0x406bf9}from'fs/promises';import*as _0x533475 from'os';import*as _0x34f915 from'path';import{rgPath as _0x2ac5ca}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x30d480={_0x295805:0x1ca,_0xd4c177:0xe7,_0x10ba1c:0x3f8,_0x24a490:0x507,_0x276465:0x504,_0x4d87e7:0x2a0,_0x253843:0x32,_0x2664ae:0xb2,_0x36b65a:0x21d,_0x46a412:0x1ef,_0x240347:0x9d,_0xb69863:0x4,_0x2d3efe:0xf8,_0x4065b0:0x6e,_0xff873a:0xe6,_0x20a57d:0x253,_0xe308da:0x65,_0x21b9b7:0x72,_0x2804ee:0x168,_0x5c23e6:0xf6,_0x25b186:0x3c1,_0x26f118:0x2c8,_0x3df64c:0x4a7,_0x1e3628:0x56c,_0x530fbf:0x4ab,_0x5491c0:0x497,_0x8a1a9a:0x3b5,_0x55c3ec:0x2f4,_0x3c6d4c:0x283,_0x5d4e7b:0x423,_0x65e279:0x1b5,_0x167707:0x152,_0xcc3b59:0x286,_0x43f2cc:0x18d,_0x36f7ac:0x10,_0x222cf3:0x92,_0x419c20:0x164,_0x1f67c5:0x3ea,_0x35301f:0x42c,_0x2ebca8:0x4ba,_0x57e83a:0x326,_0x326a1d:0x3f8,_0x47ca7e:0x383,_0x29b380:0x2f3,_0x4e6acc:0x3df,_0x18b735:0x16,_0x102f04:0x14f,_0x195625:0xc8,_0x3c725d:0x4fc,_0x306762:0x7e,_0x155eda:0x1d0},_0x30a6b2={_0x2d36e3:0x60},_0x435b3d={_0x5db904:0x46},_0x2cf9fd=_0x533475[_0x391e55(-0x18b,-0x49,-_0x30d480._0x295805,-_0x30d480._0xd4c177)]()===_0x5d2663(0x30e,_0x30d480._0x10ba1c,0x370,0x30d),_0x49fe1b=_0x2cf9fd?[_0x34f915['join'](process[_0x5d2663(0x3c1,_0x30d480._0x24a490,_0x30d480._0x276465,_0x30d480._0x4d87e7)][_0x391e55(-_0x30d480._0x253843,0x1ac,0x1e5,_0x30d480._0x2664ae)]||'',_0x391e55(-0x2e0,-0x174,-_0x30d480._0x36b65a,-_0x30d480._0x46a412),_0x391e55(-_0x30d480._0x240347,-_0x30d480._0xb69863,-0x2f,-0xba),_0x391e55(-_0x30d480._0x2d3efe,0x107,-0x2b,0x43)),_0x34f915['join'](process[_0x391e55(0x23,-0x10a,-_0x30d480._0x4065b0,-_0x30d480._0xff873a)]['ProgramFiles']||'',_0x5d2663(0x35d,0x2e6,0x341,_0x30d480._0x20a57d),_0x391e55(-_0x30d480._0xe308da,-0xb0,0x19c,_0x30d480._0x21b9b7)),_0x34f915[_0x391e55(0x31,-_0x30d480._0x2804ee,-_0x30d480._0x5c23e6,-0x8c)](process[_0x5d2663(_0x30d480._0x25b186,_0x30d480._0x26f118,0x28f,_0x30d480._0x3df64c)][_0x5d2663(0x50a,_0x30d480._0x1e3628,0x4bc,0x409)]||'','ripgrep','rg.exe')]:[_0x5d2663(0x49e,0x499,_0x30d480._0x530fbf,_0x30d480._0x5491c0),_0x5d2663(_0x30d480._0x8a1a9a,_0x30d480._0x55c3ec,_0x30d480._0x3c6d4c,_0x30d480._0x5d4e7b),_0x391e55(-_0x30d480._0x65e279,-_0x30d480._0x167707,-_0x30d480._0xcc3b59,-_0x30d480._0x43f2cc),_0x391e55(_0x30d480._0x36f7ac,-_0x30d480._0x222cf3,_0x30d480._0x419c20,0x42)];for(const _0x188ec7 of _0x49fe1b){if(existsSync(_0x188ec7))return _0x188ec7;}function _0x5d2663(_0x49a984,_0x371704,_0x511b5f,_0x38335a){return _0x567203(_0x371704,_0x371704-_0x435b3d._0x5db904,_0x49a984-0x2ed,_0x38335a-0xd);}function _0x391e55(_0x5edcd9,_0xeb4b61,_0x4b823e,_0x4e21f6){return _0x29bb69(_0x5edcd9-0x152,_0x4e21f6- -0x86,_0x4b823e,_0x4e21f6-_0x30a6b2._0x2d36e3);}try{const _0x36e9f5=_0x2cf9fd?_0x5d2663(_0x30d480._0x1f67c5,0x3d5,_0x30d480._0x35301f,_0x30d480._0x2ebca8):_0x5d2663(0x345,0x497,_0x30d480._0x57e83a,_0x30d480._0x326a1d),_0x1ff6f5=execSync(_0x36e9f5,{'encoding':_0x5d2663(_0x30d480._0x47ca7e,0x487,_0x30d480._0x29b380,0x483),'stdio':[_0x5d2663(_0x30d480._0x4e6acc,0x2d8,0x4bc,0x2fe),_0x391e55(-_0x30d480._0x18b735,-_0x30d480._0x102f04,-0x2a,-_0x30d480._0x195625),_0x5d2663(0x4ed,0x5c2,0x554,_0x30d480._0x3c725d)]})[_0x391e55(-0x2bb,-0x225,-_0x30d480._0x306762,-_0x30d480._0x155eda)]()['split'](/\r?\n/)[0x0];if(_0x1ff6f5&&existsSync(_0x1ff6f5))return _0x1ff6f5;}catch{return null;}return null;}async function filepath(){const _0xc18cb={_0xbf8ddb:0x361},_0x20a8a8={_0x70439e:0x1eb,_0x3621cc:0x19c};if(cachedRgPath)return cachedRgPath;function _0x3e8320(_0x5ba205,_0x1f4358,_0x11ff2f,_0x26ff42){return _0x567203(_0x5ba205,_0x1f4358-0xec,_0x26ff42-_0x20a8a8._0x70439e,_0x26ff42-_0x20a8a8._0x3621cc);}if(_0x2ac5ca&&existsSync(_0x2ac5ca))return cachedRgPath=_0x2ac5ca,_0x2ac5ca;const _0x46ee54=findSystemRipgrep();if(!_0x46ee54)throw new Error(_0x3e8320(0x399,0x428,_0xc18cb._0xbf8ddb,0x2f7));return cachedRgPath=_0x46ee54,_0x46ee54;}async function*files(_0x460684){const _0x2b9a3d={_0x20103a:0x75b,_0x1f9e41:0x797,_0x4c8694:0x7a9,_0x48cfd9:0x734,_0x324128:0x8b2,_0x3df5c0:0x7c7,_0x2fa045:0x834,_0x5dc92c:0x804,_0x514e07:0x864,_0x46e00d:0x7d2,_0x4966da:0x210,_0x140230:0x204,_0x43a4b3:0xbd,_0x56dcb2:0x129,_0x33972f:0x76,_0x13962b:0x55,_0x3deb64:0xe0,_0x308170:0x7da,_0x48609d:0x624,_0x2ec675:0x5db,_0x5f1abc:0x646,_0x12d2cd:0x33,_0xb7dfec:0x7a0,_0x323af8:0x670,_0x1f5306:0x2bc,_0x598b69:0x2a9,_0x17a502:0x24a,_0x47e485:0x499},_0x1c956f={_0x4dde0d:0x42,_0x1df5df:0x3},_0x20ab92=await filepath(),_0x4088e4=await _0x406bf9(_0x460684['cwd'])[_0x4b1609(_0x2b9a3d._0x20103a,_0x2b9a3d._0x1f9e41,_0x2b9a3d._0x4c8694,_0x2b9a3d._0x48cfd9)](()=>null);if(!_0x4088e4?.[_0x4b1609(0x7ce,_0x2b9a3d._0x324128,0x7e2,_0x2b9a3d._0x3df5c0)]())throw Object[_0x4b1609(0x78d,0x75d,_0x2b9a3d._0x2fa045,0x80a)](new Error(_0x4b1609(0x768,_0x2b9a3d._0x5dc92c,0x73c,0x719)+_0x460684[_0x4b1609(0x736,0x7cb,_0x2b9a3d._0x514e07,_0x2b9a3d._0x46e00d)]+'\x27'),{'code':'ENOENT'});function _0x4b1609(_0x351048,_0x328274,_0x12b4b0,_0xf0f6bd){return _0x29bb69(_0x351048-0x14b,_0x351048-0x708,_0x12b4b0,_0xf0f6bd-0x1d);}const _0x4a817f=['--files','--follow',_0x4b1609(0x78e,0x6f4,0x737,0x80e),'--glob=!.git/*'];for(const _0x19f2c2 of _0x460684[_0x3693ab(_0x2b9a3d._0x4966da,_0x2b9a3d._0x140230,0xce,_0x2b9a3d._0x43a4b3)]??[]){_0x4a817f[_0x3693ab(0x180,_0x2b9a3d._0x56dcb2,_0x2b9a3d._0x33972f,-_0x2b9a3d._0x13962b)](_0x3693ab(-0xce,0x23,-0x18,_0x2b9a3d._0x3deb64)+_0x19f2c2);}const _0x660aa6=_0xf94bf1(_0x20ab92,_0x4a817f,{'cwd':_0x460684[_0x4b1609(0x736,_0x2b9a3d._0x308170,0x85e,_0x2b9a3d._0x48609d)],'stdio':['ignore','pipe','pipe']});let _0x5466d4='';function _0x3693ab(_0x3a71a5,_0x51dce1,_0x34a7a5,_0x30b0fb){return _0x29bb69(_0x3a71a5-0x14e,_0x34a7a5- -_0x1c956f._0x4dde0d,_0x30b0fb,_0x30b0fb-_0x1c956f._0x1df5df);}for await(const _0x6fabdc of _0x660aa6[_0x4b1609(0x5bf,0x640,_0x2b9a3d._0x2ec675,_0x2b9a3d._0x5f1abc)]??[]){_0x5466d4+=_0x6fabdc[_0x3693ab(-0x123,-0x35,-0x188,-_0x2b9a3d._0x12d2cd)]();const _0x58a08e=_0x5466d4[_0x4b1609(0x6be,_0x2b9a3d._0xb7dfec,0x702,_0x2b9a3d._0x323af8)](/\r?\n/);_0x5466d4=_0x58a08e[_0x3693ab(-0x52,-0x36,-0x40,-0x2d)]()??'';for(const _0x15ccda of _0x58a08e){if(_0x15ccda['length']>0x0)yield _0x15ccda;}}_0x5466d4[_0x3693ab(-_0x2b9a3d._0x1f5306,-_0x2b9a3d._0x598b69,-0x18c,-_0x2b9a3d._0x17a502)]()['length']>0x0&&(yield _0x5466d4[_0x4b1609(0x5be,0x6d7,_0x2b9a3d._0x47e485,0x52d)]());}function parseMatchLine(_0xc100a9,_0x296385){const _0xd0021d={_0x1c9b95:0x12a,_0x12119f:0x124,_0xade117:0x2b8,_0x447429:0x2c9,_0x684fd5:0x2da,_0x29ba58:0x2e8,_0x25936e:0x2d7,_0x2385f3:0x29c,_0x1209c7:0x2ae,_0x4b7438:0x193,_0x5939b2:0x169,_0x1ec676:0x403,_0xc1500a:0x100,_0x4ba2f9:0xc,_0x3cf32e:0x86},_0x28b969={_0x11a6df:0x163},_0x5a026c={_0x32e866:0x16e};if(!_0xc100a9||_0xc100a9==='--')return null;const _0x3a0a6a=_0xc100a9[_0x848727(-0x82,-0x170,-0x65,-_0xd0021d._0x1c9b95)]('|');function _0xa31319(_0x112393,_0x167411,_0x12ff02,_0x289fde){return _0x567203(_0x12ff02,_0x167411-0xca,_0x167411-_0x5a026c._0x32e866,_0x289fde-0x16a);}function _0x848727(_0x5b3abd,_0x2cb129,_0x3949fa,_0x43575f){return _0x567203(_0x2cb129,_0x2cb129-0x17d,_0x3949fa- -0x14f,_0x43575f-_0x28b969._0x11a6df);}if(_0x296385&&_0x3a0a6a['length']>=0x4&&Number[_0x848727(0xd6,-_0xd0021d._0x12119f,0xc,0x105)](Number['parseInt'](_0x3a0a6a[0x2]??'',0xa))){const _0x16e248=Number['parseInt'](_0x3a0a6a[0x1]??'',0xa);if(!Number[_0xa31319(_0xd0021d._0xade117,_0xd0021d._0x447429,0x2f3,_0xd0021d._0x684fd5)](_0x16e248)||!_0x3a0a6a[0x0])return null;return{'filePath':_0x3a0a6a[0x0],'lineNum':_0x16e248,'lineText':_0x3a0a6a[_0xa31319(0x256,0x343,0x3f4,_0xd0021d._0x29ba58)](0x3)[_0xa31319(_0xd0021d._0x25936e,_0xd0021d._0x2385f3,_0xd0021d._0x1209c7,_0xd0021d._0x4b7438)]('|')};}if(_0x3a0a6a[_0x848727(-0x145,-0x207,-_0xd0021d._0x5939b2,-0x24c)]>=0x3){const _0x1f5ebb=Number[_0xa31319(0x17a,0x2bd,0x21b,_0xd0021d._0x1ec676)](_0x3a0a6a[0x1]??'',0xa);if(!Number[_0x848727(-_0xd0021d._0xc1500a,0x4,_0xd0021d._0x4ba2f9,0x102)](_0x1f5ebb)||!_0x3a0a6a[0x0])return null;return{'filePath':_0x3a0a6a[0x0],'lineNum':_0x1f5ebb,'lineText':_0x3a0a6a[_0x848727(_0xd0021d._0x3cf32e,-0xa2,_0xd0021d._0x3cf32e,0x122)](0x2)['join']('|'),..._0x296385?{'isContext':!![]}:{}};}return null;}async function search(_0x26ea7e){const _0x3b199d={_0x1c2a5c:0x618,_0xb6389c:0x576,_0x2ee3c4:0x6a0,_0x5ed2c8:0x7b1,_0x217e31:0x76d,_0x30c6b3:0x553,_0x1b60bc:0x52d,_0x453e20:0x5fa,_0x2776c5:0x6d2,_0x407859:0x78b,_0x15e3e0:0x2b0,_0x9163ea:0x35d,_0x317eba:0x426,_0xc19188:0x75a,_0xbd69c4:0x6bc,_0x2ad6fc:0x5fe,_0x8f3088:0x6e8,_0x374550:0x5e6,_0x1114c7:0x67b,_0x5aa256:0x680,_0x4efce1:0x374,_0x239b32:0x40b,_0xe6f8d3:0x4f7,_0x54a0c9:0x67e,_0x362564:0x713,_0x3be25c:0x4f2,_0xdca3f1:0x415,_0x51bce8:0x418,_0x39ca85:0x4ca,_0xad18c3:0x3e6,_0x1918fd:0x524,_0x1c075e:0x46c,_0x4fa2ee:0x25b,_0x21656d:0x17f,_0xdacca7:0x3a0,_0x58c12e:0x28c,_0x21876d:0x1e3,_0xd3fdcd:0x696,_0x21401b:0x4f5,_0x1a12c8:0x420,_0x12638f:0x366,_0x164b52:0x34c,_0x370c1d:0x260,_0x41984c:0x272,_0x1b09fe:0x66d,_0x4d7885:0x705,_0x491e3a:0x84e,_0x3ad8c6:0x651,_0x32069f:0x5a9,_0x549d2b:0x46b,_0x153cf4:0x4bf,_0x1d1e4b:0x4c8,_0x24b149:0x619,_0x5cc627:0x57c,_0x111c31:0x3fc,_0x384e44:0x37f,_0xeef390:0x4c3,_0x2c4e66:0x470,_0x59cca5:0x333,_0xd3a38a:0x6ff,_0x5e8026:0x629,_0x299c36:0x530,_0x4f821a:0x393},_0x3edda4={_0x42f492:0x250,_0x585a72:0x45c,_0x178202:0x34e,_0x209ffb:0x3a0,_0x45ceaf:0x2de,_0x2b7227:0x1df,_0x36b6ba:0x18f,_0x5d9a1a:0x386,_0x4cef00:0x2d6,_0xbd4c99:0x387,_0x2c17f7:0x1df,_0x492e87:0x292,_0x51ea2a:0x243,_0x70456c:0x2c8},_0x2b17e9={_0xaefbee:0x511,_0x4e9dab:0x4a8,_0xff8adb:0xac,_0x361ed8:0x4da,_0x4bd8fc:0x4cd,_0x10d3f5:0x495,_0x4b9fc3:0x29c,_0x87ee31:0x2bb},_0x5cee1a={_0xee15cc:0x82,_0xba988d:0x98,_0x5fae70:0x11c},_0x41d537={_0x5be650:0xe4,_0x164014:0x519,_0x5a1531:0x51},_0x19401b={_0x3e78b3:0x6},_0x1cbb87=await filepath();if(_0x26ea7e[_0x6256ae(0x5cc,_0x3b199d._0x1c2a5c,0x5c9,0x6f6)]){const _0x4274c1=await _0x406bf9(_0x26ea7e['file'])[_0x6256ae(_0x3b199d._0xb6389c,_0x3b199d._0x2ee3c4,_0x3b199d._0x5ed2c8,_0x3b199d._0x217e31)](()=>null);if(!_0x4274c1?.[_0x6256ae(_0x3b199d._0x30c6b3,0x614,0x739,_0x3b199d._0x1b60bc)]())throw Object[_0x6256ae(_0x3b199d._0x453e20,_0x3b199d._0x2776c5,0x6c8,_0x3b199d._0x407859)](new Error(_0x49d317(_0x3b199d._0x15e3e0,_0x3b199d._0x9163ea,0x3d0,_0x3b199d._0x317eba)+_0x26ea7e[_0x6256ae(_0x3b199d._0xc19188,0x618,_0x3b199d._0xbd69c4,_0x3b199d._0x2ad6fc)]+'\x27'),{'code':_0x6256ae(_0x3b199d._0x8f3088,_0x3b199d._0x374550,0x572,0x66b)});}else{const _0x32582e=await _0x406bf9(_0x26ea7e[_0x6256ae(0x52a,_0x3b199d._0x1114c7,_0x3b199d._0x5aa256,0x575)])[_0x49d317(_0x3b199d._0x4efce1,_0x3b199d._0x239b32,0x521,_0x3b199d._0xe6f8d3)](()=>null);if(!_0x32582e?.[_0x6256ae(_0x3b199d._0x54a0c9,_0x3b199d._0x362564,0x640,0x82b)]())throw Object[_0x49d317(_0x3b199d._0x3be25c,0x43d,_0x3b199d._0xdca3f1,0x465)](new Error(_0x49d317(0x4aa,_0x3b199d._0x51bce8,0x4e8,_0x3b199d._0x39ca85)+_0x26ea7e[_0x49d317(0x327,_0x3b199d._0xad18c3,_0x3b199d._0x1918fd,_0x3b199d._0x1c075e)]+'\x27'),{'code':'ENOENT'});}const _0x48c38c=[_0x49d317(0x25e,_0x3b199d._0x4fa2ee,0x1c6,_0x3b199d._0x21656d),_0x49d317(_0x3b199d._0xdacca7,_0x3b199d._0x58c12e,_0x3b199d._0x21876d,0x2e4),_0x6256ae(0x640,_0x3b199d._0xd3fdcd,0x57e,0x54e),'--regexp',_0x26ea7e['pattern']];function _0x49d317(_0x58fdcb,_0xb482a0,_0x1b4321,_0x3118c3){return _0x567203(_0x1b4321,_0xb482a0-0x2f,_0xb482a0-0x284,_0x3118c3-_0x19401b._0x3e78b3);}const _0x52ff33=typeof _0x26ea7e[_0x6256ae(0x410,_0x3b199d._0x21401b,0x4cb,0x479)]===_0x49d317(0x2f6,_0x3b199d._0x1a12c8,0x4d8,_0x3b199d._0x12638f)&&_0x26ea7e[_0x49d317(_0x3b199d._0x164b52,_0x3b199d._0x370c1d,0x10c,_0x3b199d._0x41984c)]>0x0;_0x52ff33&&_0x48c38c[_0x6256ae(_0x3b199d._0x1b09fe,_0x3b199d._0x4d7885,0x62d,_0x3b199d._0x491e3a)]('-C',String(_0x26ea7e['context']),_0x6256ae(_0x3b199d._0x3ad8c6,0x5a6,_0x3b199d._0x32069f,_0x3b199d._0x549d2b));_0x26ea7e[_0x49d317(_0x3b199d._0x153cf4,_0x3b199d._0x1d1e4b,_0x3b199d._0x24b149,_0x3b199d._0x5cc627)]&&!_0x26ea7e['file']&&_0x48c38c[_0x49d317(0x320,0x470,_0x3b199d._0x111c31,0x59e)](_0x49d317(0x3ed,0x41f,0x2ff,_0x3b199d._0x384e44),_0x26ea7e[_0x49d317(_0x3b199d._0xeef390,0x4c8,0x53d,0x416)]);_0x48c38c[_0x49d317(0x4fe,_0x3b199d._0x2c4e66,_0x3b199d._0x59cca5,0x3e8)](_0x26ea7e[_0x6256ae(_0x3b199d._0xd3a38a,0x618,_0x3b199d._0x5e8026,_0x3b199d._0x299c36)]??_0x26ea7e[_0x49d317(0x2fc,_0x3b199d._0xad18c3,0x3be,_0x3b199d._0x4f821a)]);function _0x6256ae(_0x45c99c,_0x1ef3f3,_0x23f280,_0x59b456){return _0x567203(_0x45c99c,_0x1ef3f3-_0x41d537._0x5be650,_0x1ef3f3-_0x41d537._0x164014,_0x59b456-_0x41d537._0x5a1531);}return await new Promise((_0x544115,_0x556b96)=>{const _0x5457ff={_0x4df6ad:0x25e,_0x52ac71:0xe,_0x6b8d9d:0x72},_0x489f07={_0x7d14e:0xae},_0x120a0f={_0x2b0e58:0x2e},_0x532271={_0x2c37bf:0x17f,_0x1acd70:0x278,_0x31b03d:0x260},_0x4dfa00={_0x4652af:0xb7};function _0x53f0f9(_0x573d25,_0x1cc352,_0x80b143,_0x55789e){return _0x49d317(_0x573d25-_0x5cee1a._0xee15cc,_0x55789e- -_0x5cee1a._0xba988d,_0x573d25,_0x55789e-_0x5cee1a._0x5fae70);}const _0x5a9e27=_0xf94bf1(_0x1cbb87,_0x48c38c,{'cwd':_0x26ea7e[_0x53f0f9(_0x3edda4._0x42f492,_0x3edda4._0x585a72,0x2d3,_0x3edda4._0x178202)],'stdio':['ignore',_0x53f0f9(0x218,_0x3edda4._0x209ffb,0x2d7,_0x3edda4._0x45ceaf),'pipe']});let _0x41bf96='',_0x40ac80='';_0x5a9e27['stdout']?.['on'](_0x2b0a7b(_0x3edda4._0x2b7227,0x269,0x223,_0x3edda4._0x36b6ba),_0x26b11d=>{function _0x592353(_0x50ede6,_0x5b955c,_0x2ceb94,_0x11aeab){return _0x2b0a7b(_0x50ede6-0xc,_0x11aeab,_0x2ceb94-_0x4dfa00._0x4652af,_0x11aeab-0x1ce);}_0x41bf96+=_0x26b11d[_0x592353(_0x532271._0x2c37bf,0x1c1,_0x532271._0x1acd70,_0x532271._0x31b03d)]();});function _0x2b0a7b(_0x28a8d5,_0x232790,_0x5c8597,_0x5a50ae){return _0x6256ae(_0x232790,_0x28a8d5- -0x394,_0x5c8597-_0x120a0f._0x2b0e58,_0x5a50ae-0x159);}_0x5a9e27[_0x2b0a7b(_0x3edda4._0x5d9a1a,_0x3edda4._0x4cef00,0x3a3,_0x3edda4._0xbd4c99)]?.['on'](_0x2b0a7b(_0x3edda4._0x2c17f7,_0x3edda4._0x492e87,0x32f,_0x3edda4._0x51ea2a),_0x44efe7=>{const _0x4c4a82={_0xfd8bef:0x180,_0x588bdb:0x98};function _0x45519b(_0x53f10e,_0x1fa1e3,_0x47acd1,_0x24d896){return _0x2b0a7b(_0x1fa1e3- -0x152,_0x53f10e,_0x47acd1-_0x4c4a82._0xfd8bef,_0x24d896-_0x4c4a82._0x588bdb);}_0x40ac80+=_0x44efe7[_0x45519b(-0xe1,0x21,-0x90,-_0x489f07._0x7d14e)]();}),_0x5a9e27['on']('close',_0x5be8ea=>{const _0xa39e51={_0x156060:0x76,_0x5594c7:0x17c};function _0x5b76da(_0x3dade4,_0x5b66c5,_0x38dffc,_0x19208b){return _0x2b0a7b(_0x38dffc-_0x5457ff._0x4df6ad,_0x5b66c5,_0x38dffc-_0x5457ff._0x52ac71,_0x19208b-_0x5457ff._0x6b8d9d);}if(_0x5be8ea===0x1&&_0x41bf96===''){_0x544115([]);return;}function _0x1f7c89(_0x1993b0,_0x18e5c1,_0x1f6f79,_0x428461){return _0x53f0f9(_0x1f6f79,_0x18e5c1-_0xa39e51._0x156060,_0x1f6f79-_0xa39e51._0x5594c7,_0x18e5c1- -0x11d);}if(_0x5be8ea!==0x0&&_0x5be8ea!==0x1){_0x556b96(new Error(_0x5b76da(0x52d,_0x2b17e9._0xaefbee,_0x2b17e9._0x4e9dab,0x3fb)+_0x40ac80));return;}const _0x1a7c3c=_0x26ea7e[_0x1f7c89(0xa6,_0x2b17e9._0xff8adb,-0x7d,0xce)]??0x64,_0x56bc30=[];for(const _0xd4a10 of _0x41bf96[_0x5b76da(_0x2b17e9._0x361ed8,0x50d,_0x2b17e9._0x4bd8fc,0x41c)](/\r?\n/)){if(_0x56bc30[_0x5b76da(0x47b,0x424,0x3c9,_0x2b17e9._0x10d3f5)]>=_0x1a7c3c)break;const _0x26eff2=parseMatchLine(_0xd4a10,_0x52ff33);if(_0x26eff2)_0x56bc30[_0x1f7c89(_0x2b17e9._0x4b9fc3,_0x2b17e9._0x87ee31,0x2a2,0x189)](_0x26eff2);}_0x544115(_0x56bc30);}),_0x5a9e27['on'](_0x53f0f9(0x1a4,_0x3edda4._0x70456c,0x133,0x1ff),_0x556b96);});}function createGlobTool(_0x414d20={}){const _0x2e64df={_0x46c1bc:0xf5,_0x5aad75:0x56,_0xc52363:0x19f,_0x58b62a:0x2a3,_0x5ef705:0xb8,_0x2e8a48:0x13f,_0x3e62e8:0x117,_0x3ce2d9:0x2a2,_0x3a1f43:0x273,_0x51604f:0x148,_0x101d3d:0x1ec,_0x50a496:0x7b,_0x208e3e:0xc0,_0x39772e:0x131,_0x218845:0x6b,_0x294a4c:0x182,_0x37c0fa:0xfe,_0x1c3931:0x298,_0x5e2ae5:0x102,_0x5ac04e:0x1f9,_0x1e30df:0x204,_0x5029c5:0x11e},_0x518fac={_0x4131d8:0xd3,_0x2988d7:0x19c,_0x1ad5ab:0x434,_0xbaf876:0x2c1,_0xeab636:0x2f0,_0x5f0d4b:0x13d,_0x4af4f3:0x231,_0x3e7643:0x143,_0xaa5dc3:0x127,_0x4155c2:0x38f,_0x1b86a2:0x52b,_0x261a2e:0x516,_0x42313e:0x3df,_0x2cf20c:0x14a,_0x22f5a7:0x1e6,_0x519269:0x33f,_0x28462a:0x3fd,_0x24e11b:0x31f,_0xca8d1f:0x194,_0x235dbd:0x5e1,_0x4013ec:0x3e5,_0x287e64:0x19b,_0x22116b:0x58c,_0x3b3654:0x384,_0x4b0f44:0x262,_0x35c154:0x274,_0x133e33:0x16e,_0x3b8ee7:0x1b0,_0x2541a7:0x411,_0x360a43:0x221,_0x391619:0xc1,_0x208ff3:0x12f,_0x272613:0x369,_0x40bf0a:0x36c,_0x1f4bbc:0x2ec,_0x553ba7:0x1d0,_0xdfa547:0xf9,_0x4f84dc:0xd4,_0x55d9ea:0x19c,_0x17ccaf:0x1a3,_0x27d706:0x1cf,_0x3aa9aa:0x118,_0x50bc71:0x454,_0x4f94df:0x456},_0x47a040={_0x39ffd7:0x146,_0x4d822c:0xd6},_0x2fda2a={_0x156ec9:0x426,_0x5ab350:0xef,_0x49f8b5:0x99},_0x354648={_0x594334:0xb6},_0x455df8={_0x373ddd:0x18},_0x13ffe9=_0x48e2cd[_0x3b3c05(0x51,0xfa,_0x2e64df._0x46c1bc,0x103)](_0x414d20[_0x27d401(-0x134,-0x27b,-0x277,-_0x2e64df._0x5aad75)]??process[_0x3b3c05(0x10d,_0x2e64df._0xc52363,0xbd,0x1bf)]());function _0x27d401(_0x28cda3,_0x7882c5,_0x222327,_0x2dbd48){return _0x29bb69(_0x28cda3-0x17c,_0x28cda3-_0x455df8._0x373ddd,_0x7882c5,_0x2dbd48-0x1b6);}function _0x3b3c05(_0x22f4cb,_0x1e968c,_0xce8d84,_0x1ba894){return _0x567203(_0x1e968c,_0x1e968c-0x64,_0x1ba894-0x5d,_0x1ba894-_0x354648._0x594334);}const _0x5aedbf=(_0x414d20[_0x3b3c05(0x3a5,0x38f,0x1f7,_0x2e64df._0x58b62a)]??[])[_0x3b3c05(-_0x2e64df._0x5ef705,0xd,0xb0,0x55)](_0x103e49=>_0x48e2cd[_0x3b3c05(0x15a,0x21e,0xbe,0x103)](_0x103e49)),_0x2009f4=_0x414d20[_0x27d401(-_0x2e64df._0x2e8a48,-_0x2e64df._0x3e62e8,0x8,-0x6c)]??0x64,_0x25fce4=_0x414d20[_0x3b3c05(_0x2e64df._0x3ce2d9,0x399,0x19a,_0x2e64df._0x3a1f43)]??_0x3b3c05(_0x2e64df._0x51604f,0x2bd,_0x2e64df._0x101d3d,0x1a4);return defineTool({'name':_0x25fce4,'description':_0x27d401(-0x78,-_0x2e64df._0x50a496,0xac,-0x4d),'inputSchema':{'type':_0x27d401(0xfc,0x4c,_0x2e64df._0x208e3e,_0x2e64df._0x39772e),'properties':{'pattern':{'type':_0x27d401(-_0x2e64df._0x218845,-0xc6,-_0x2e64df._0x294a4c,-_0x2e64df._0x37c0fa)},'path':{'type':'string'},'limit':{'type':_0x3b3c05(0x305,_0x2e64df._0x1c3931,_0x2e64df._0x5e2ae5,_0x2e64df._0x5ac04e)}},'required':[_0x3b3c05(_0x2e64df._0x1e30df,0x157,0x3a,_0x2e64df._0x5029c5)]},async *'execute'(_0x13af73){if(_0x13af73[_0x10aa75(0x265,_0x518fac._0x4131d8,_0x518fac._0x2988d7,0x127)]['trim']()[_0x4632bb(_0x518fac._0x1ad5ab,_0x518fac._0xbaf876,_0x518fac._0xeab636,0x1f3)]===0x0)throw new ToolExecutionError(_0x10aa75(_0x518fac._0x5f0d4b,0x14c,_0x518fac._0x4af4f3,_0x518fac._0x3e7643),{});const _0x319185=resolveAllowedPath(_0x13ffe9,_0x5aedbf,_0x13af73[_0x4632bb(0x2ff,0x560,0x415,0x3f7)]??'.'),_0x5778e8=await _0x7d1af9(_0x319185)[_0x10aa75(_0x518fac._0xaa5dc3,_0x518fac._0x4155c2,0x262,0x1df)](()=>null);if(!_0x5778e8?.['isDirectory']())throw new ToolExecutionError(_0x4632bb(_0x518fac._0x1b86a2,_0x518fac._0x261a2e,0x44e,_0x518fac._0x42313e)+(_0x13af73['path']??'.'),{'path':_0x13af73[_0x10aa75(0x282,_0x518fac._0x2cf20c,_0x518fac._0x22f5a7,0x162)]??'.'});function _0x4632bb(_0x4d51cd,_0x2d77cf,_0x28e6ef,_0x20db13){return _0x27d401(_0x28e6ef-_0x2fda2a._0x156ec9,_0x4d51cd,_0x28e6ef-_0x2fda2a._0x5ab350,_0x20db13-_0x2fda2a._0x49f8b5);}const _0x31815c=_0x13af73[_0x4632bb(_0x518fac._0x519269,_0x518fac._0x28462a,0x2e7,_0x518fac._0x24e11b)]??_0x2009f4,_0x33909c=Math[_0x10aa75(0x25c,0x38,0x175,_0x518fac._0xca8d1f)](0x1,Math[_0x4632bb(0x38a,_0x518fac._0x235dbd,0x4d8,_0x518fac._0x4013ec)](_0x31815c)),_0x8caf42=[];let _0x3b078d=![];for await(const _0x5e6660 of files({'cwd':_0x319185,'glob':[_0x13af73[_0x4632bb(0x3d2,0x339,0x3cb,0x4c3)]]})){if(_0x8caf42[_0x10aa75(_0x518fac._0x287e64,0x156,0xc1,0x1eb)]>=_0x33909c){_0x3b078d=!![];break;}const _0x354066=await _0x7d1af9(_0x48e2cd[_0x4632bb(0x57f,0x38b,0x438,_0x518fac._0x22116b)](_0x319185,_0x5e6660))[_0x10aa75(_0x518fac._0x3b3654,0x2ff,_0x518fac._0x4b0f44,0x11c)](()=>null);_0x8caf42['push']({'path':_0x5e6660,'mtime':_0x354066?.[_0x10aa75(_0x518fac._0x35c154,_0x518fac._0x133e33,_0x518fac._0x3b8ee7,0x27d)]??0x0});}function _0x10aa75(_0x22b25d,_0x369d00,_0xd90ad1,_0x3144f2){return _0x3b3c05(_0x22b25d-_0x47a040._0x39ffd7,_0x369d00,_0xd90ad1-_0x47a040._0x4d822c,_0xd90ad1-0x7e);}_0x8caf42[_0x4632bb(_0x518fac._0x2541a7,0x350,0x2d6,_0x518fac._0x360a43)]((_0x981b40,_0x405f68)=>_0x405f68[_0x10aa75(0x1e9,0x29d,0x28e,0x359)]-_0x981b40[_0x10aa75(0x23a,0x152,0x28e,0x1e4)]);const _0x2626e9=_0x8caf42['map'](_0x2c706f=>_0x2c706f[_0x4632bb(0x4bc,0x3eb,0x415,0x2ed)]),_0x770ace=_0x2626e9[_0x10aa75(-0x57,0x50,_0x518fac._0x391619,_0x518fac._0x208ff3)]===0x0?_0x10aa75(_0x518fac._0x272613,_0x518fac._0x40bf0a,_0x518fac._0x1f4bbc,_0x518fac._0x553ba7)+_0x13af73[_0x10aa75(_0x518fac._0xdfa547,_0x518fac._0x4f84dc,_0x518fac._0x55d9ea,0x23c)]:''+_0x2626e9[_0x10aa75(0x194,0x300,0x209,0x2a7)]('\x0a')+(_0x3b078d?_0x10aa75(_0x518fac._0x17ccaf,0x189,_0x518fac._0x27d706,_0x518fac._0x3aa9aa):'');return yield createToolOutput(_0x770ace,{'pattern':_0x13af73[_0x4632bb(_0x518fac._0x50bc71,0x423,0x3cb,_0x518fac._0x4f94df)],'searchPath':_0x48e2cd['relative'](_0x13ffe9,_0x319185)||'.','matches':_0x2626e9,'count':_0x2626e9['length'],'truncated':_0x3b078d}),void 0x0;}});}import{stat as _0x1ad4fa}from'fs/promises';import*as _0x17b5cc from'path';var MAX_LINE_LENGTH=0x7d0;function _0x29bb69(_0x1dae78,_0x34e7d7,_0x1d4d2f,_0x4ca2cd){const _0x1ae74e={_0x2d00f6:0x333};return _0x1e3a(_0x34e7d7- -_0x1ae74e._0x2d00f6,_0x1d4d2f);}function createGrepTool(_0x4d5f79={}){const _0x6ba5f8={_0x427ef5:0x1ed,_0x5ca7c5:0xa2,_0x2d3f6c:0x1f7,_0x1f23fb:0xc4,_0x12ca50:0x66,_0x200f43:0x17,_0x34d375:0x6e1,_0x644613:0x5c5,_0x586f33:0x216,_0x4a04e8:0x560,_0x5de561:0x478,_0x4166c7:0x5bd,_0x535eb0:0x748,_0x5081bb:0x6b1,_0x4209a1:0x5b7,_0xc84947:0x9e,_0x395065:0x7f,_0x3ce47f:0x63a,_0x5767ec:0x6b3,_0x5a3526:0x26,_0x385fc9:0x283,_0x1d5414:0x473,_0x523784:0x54c,_0x12af86:0x74,_0x48efcf:0xea,_0x56b897:0x12e,_0x571553:0x26,_0x375adc:0x38,_0x5ded0e:0xc0,_0x3de538:0x43,_0x78356:0x2f,_0x5d1d53:0x57d,_0x2d8a76:0x64f,_0x3885a8:0x55c},_0x4df0a0={_0x211e42:0x1d9,_0x57cf6d:0x14e,_0x7a9a3b:0x1a,_0xc5be91:0x118,_0x164c09:0x102,_0x4b1167:0x3a0,_0x311a8a:0x24b,_0x4c7629:0x6fc,_0x5f5af4:0x5db,_0x42532d:0x60d,_0x3a1bf8:0x376,_0x5694aa:0x43b,_0x2738f1:0x4ec,_0x17c662:0x3d7,_0x49ab92:0x26,_0x118223:0xa1,_0xc81e93:0xc,_0x3ca029:0xaa,_0x44ae16:0x1a8,_0x28cbb5:0x535,_0x4e3447:0x662,_0x36cd2e:0x543,_0x2bbc0b:0x349,_0x3f8dec:0x416,_0x3f06ae:0x4a2,_0x21300e:0x4eb,_0x5282df:0x50e,_0x14956c:0x554,_0x491208:0x3a0,_0x2324d0:0x42a,_0x1d8630:0x46b,_0x3dfcc2:0x524,_0x42f7f9:0x42a,_0x2d346b:0x518,_0x1061a3:0x1a9,_0x375387:0x238,_0x44a92e:0x24b,_0x1fff18:0x341,_0x5ee925:0x4ab,_0x186c3b:0x37b,_0x467774:0x33,_0x63d4b9:0x17b,_0x53b61e:0xe4,_0x23dafa:0x74,_0x31312c:0x4f2,_0x3007ab:0x5bc,_0x243a5f:0x5ed,_0x3d5200:0x513,_0x59c256:0x6c7,_0x5d4060:0x5cd,_0x4cd5c7:0x641,_0x5c7e93:0x31b,_0x2c94df:0x2c1,_0x449f3e:0x24e,_0x5a08a4:0x1dc,_0x5621c3:0x25b,_0x4b2186:0x256,_0x3979df:0x2a1,_0x58c56b:0x3ea,_0x17bb2a:0x424,_0x14f8f3:0x3bf,_0x57f42e:0x427,_0x5cd9be:0x3c7,_0x487e7f:0x4d7,_0x905ad1:0x523,_0x5a9e3c:0x50b,_0x5f4def:0x1d5,_0x543c98:0x59,_0x1a48ef:0x58,_0x39de22:0x2af,_0x33464e:0x29c,_0x3ab8af:0x272,_0x13dc59:0x210,_0x48761a:0x17d,_0x30f0ee:0x308,_0x4cc776:0x31a,_0x16c771:0x314,_0x244918:0x4c5,_0x1f2474:0x565,_0x4edd0b:0x329,_0xb68310:0x1e3,_0x562042:0x32e,_0x3c434f:0x299,_0x2698aa:0x464,_0x182001:0x280,_0x3855dc:0x5b6,_0xb5c6f1:0x584,_0x2a0648:0x363,_0x3823e6:0x636,_0x22958e:0x57a,_0x275119:0x65b,_0x268916:0x4d5,_0x5dd24c:0x48b,_0x1dfc71:0x1,_0x6557dc:0x139,_0x139873:0x155,_0x120164:0x437,_0x4e0d07:0x4a2,_0x5e614d:0x537,_0x59f9ea:0x467,_0x3f1d23:0xb7,_0x1ddb4b:0x1f7,_0x3e120e:0x2a3,_0x5ba4ac:0x477,_0x15d08c:0x1f1},_0x3e445d={_0x526d0c:0xe7},_0x31b645=_0x17b5cc['resolve'](_0x4d5f79[_0x47b25b(-_0x6ba5f8._0x427ef5,-_0x6ba5f8._0x5ca7c5,-_0x6ba5f8._0x2d3f6c,-_0x6ba5f8._0x1f23fb)]??process[_0x47b25b(-0x44,_0x6ba5f8._0x12ca50,-0x7d,_0x6ba5f8._0x200f43)]()),_0x511904=(_0x4d5f79[_0x4275b4(0x7d0,0x6f1,_0x6ba5f8._0x34d375,_0x6ba5f8._0x644613)]??[])[_0x47b25b(-0x27c,-0xa0,-0x1e7,-_0x6ba5f8._0x586f33)](_0x48578e=>_0x17b5cc[_0x47b25b(-0xbc,-0x21,-0x139,-0x1e3)](_0x48578e)),_0x4541b7=_0x4d5f79[_0x4275b4(0x3a8,_0x6ba5f8._0x4a04e8,_0x6ba5f8._0x5de561,_0x6ba5f8._0x4166c7)]??0x64,_0x583748=_0x4d5f79[_0x4275b4(0x655,_0x6ba5f8._0x535eb0,_0x6ba5f8._0x5081bb,_0x6ba5f8._0x4209a1)]??'Grep';function _0x4275b4(_0x15d2ab,_0x54028a,_0x40cf08,_0x1c47a1){return _0x567203(_0x54028a,_0x54028a-0x87,_0x40cf08-0x49b,_0x1c47a1-0x130);}function _0x47b25b(_0x195a60,_0x234a95,_0x595653,_0x4b5c5b){return _0x567203(_0x195a60,_0x234a95-0xf3,_0x595653- -0x1df,_0x4b5c5b-_0x3e445d._0x526d0c);}return defineTool({'name':_0x583748,'description':_0x47b25b(-_0x6ba5f8._0xc84947,_0x6ba5f8._0x395065,-0x18,0x6e),'inputSchema':{'type':_0x4275b4(0x654,_0x6ba5f8._0x3ce47f,_0x6ba5f8._0x5767ec,0x64b),'properties':{'pattern':{'type':_0x47b25b(0x22,-_0x6ba5f8._0x5a3526,-0x12e,-_0x6ba5f8._0x385fc9)},'path':{'type':_0x4275b4(_0x6ba5f8._0x1d5414,0x5a1,_0x6ba5f8._0x523784,0x486)},'include':{'type':_0x47b25b(-_0x6ba5f8._0x12af86,-_0x6ba5f8._0x48efcf,-_0x6ba5f8._0x56b897,_0x6ba5f8._0x571553)},'limit':{'type':_0x47b25b(_0x6ba5f8._0x375adc,_0x6ba5f8._0x5ded0e,-_0x6ba5f8._0x3de538,_0x6ba5f8._0x78356)},'context':{'type':_0x4275b4(0x729,_0x6ba5f8._0x5d1d53,0x637,0x616)}},'required':[_0x4275b4(_0x6ba5f8._0x2d8a76,0x699,_0x6ba5f8._0x3885a8,0x43e)]},async *'execute'(_0x68ff4){const _0x17488={_0x192f09:0xb2,_0x5ea4a7:0x5c0,_0x320324:0x1d2},_0x263959={_0x25169b:0x30,_0x444a89:0x33};if(_0x68ff4[_0x1e1a70(0x86,_0x4df0a0._0x211e42,0x185,0x25a)]['trim']()[_0x1e1a70(_0x4df0a0._0x57cf6d,-0x5a,0xaa,-_0x4df0a0._0x7a9a3b)]===0x0)throw new ToolExecutionError(_0x1e1a70(_0x4df0a0._0xc5be91,0x13c,0x21a,_0x4df0a0._0x164c09),{});const _0x37805a=resolveAllowedPath(_0x31b645,_0x511904,_0x68ff4['path']??'.'),_0x459055=await _0x1ad4fa(_0x37805a)[_0x1e1a70(0x21b,_0x4df0a0._0x4b1167,_0x4df0a0._0x311a8a,0x263)](()=>null),_0x2efd80=_0x459055?.['isFile']()??![],_0x1dff19=_0x459055?.[_0x26b7cf(_0x4df0a0._0x4c7629,0x57c,_0x4df0a0._0x5f5af4,0x6a5)]()??![];if(!_0x2efd80&&!_0x1dff19)throw new ToolExecutionError(_0x26b7cf(0x532,_0x4df0a0._0x42532d,0x4b7,_0x4df0a0._0x3a1bf8)+(_0x68ff4[_0x26b7cf(_0x4df0a0._0x5694aa,0x3cd,_0x4df0a0._0x2738f1,_0x4df0a0._0x17c662)]??'.'),{'path':_0x68ff4['path']??'.'});const _0x5484e7=_0x68ff4[_0x1e1a70(-0x33,-_0x4df0a0._0x49ab92,_0x4df0a0._0x118223,_0x4df0a0._0xc81e93)]??_0x4541b7,_0x207d43=Math[_0x1e1a70(0x4a,_0x4df0a0._0x3ca029,0x15e,_0x4df0a0._0x44ae16)](0x1,Math[_0x26b7cf(_0x4df0a0._0x28cbb5,_0x4df0a0._0x4e3447,0x5af,0x4bf)](_0x5484e7)),_0x36210b=await search({'cwd':_0x1dff19?_0x37805a:_0x17b5cc[_0x26b7cf(_0x4df0a0._0x36cd2e,_0x4df0a0._0x2bbc0b,_0x4df0a0._0x3f8dec,0x4f5)](_0x37805a),'pattern':_0x68ff4[_0x26b7cf(0x37a,0x5d4,_0x4df0a0._0x3f06ae,_0x4df0a0._0x21300e)],'glob':_0x1dff19?_0x68ff4[_0x26b7cf(0x456,0x53d,_0x4df0a0._0x5282df,_0x4df0a0._0x14956c)]:void 0x0,'limit':_0x207d43,'file':_0x2efd80?_0x37805a:void 0x0,'context':_0x68ff4[_0x26b7cf(0x2e8,_0x4df0a0._0x491208,0x3bd,0x42e)]}),_0x114a75=new Map();for(const _0x2b452b of _0x36210b){if(!_0x114a75['has'](_0x2b452b[_0x26b7cf(0x57d,0x547,_0x4df0a0._0x2324d0,_0x4df0a0._0x1d8630)])){const _0x45c903=await _0x1ad4fa(_0x2b452b[_0x26b7cf(0x475,_0x4df0a0._0x3dfcc2,_0x4df0a0._0x42f7f9,_0x4df0a0._0x2d346b)])[_0x1e1a70(_0x4df0a0._0x1061a3,_0x4df0a0._0x375387,_0x4df0a0._0x44a92e,_0x4df0a0._0x1fff18)](()=>null);_0x114a75[_0x26b7cf(0x3b8,0x556,_0x4df0a0._0x5ee925,_0x4df0a0._0x186c3b)](_0x2b452b[_0x1e1a70(0x16c,0xb0,0x10d,-_0x4df0a0._0x467774)],{'matches':[],'mtime':_0x45c903?.['mtimeMs']??0x0});}_0x114a75[_0x1e1a70(_0x4df0a0._0x63d4b9,0x1c,0x147,0x16b)](_0x2b452b[_0x1e1a70(_0x4df0a0._0x53b61e,0x25c,0x10d,_0x4df0a0._0x23dafa)])?.[_0x26b7cf(_0x4df0a0._0x31312c,_0x4df0a0._0x3007ab,0x4d8,_0x4df0a0._0x243a5f)][_0x26b7cf(_0x4df0a0._0x3d5200,_0x4df0a0._0x59c256,_0x4df0a0._0x5d4060,_0x4df0a0._0x4cd5c7)](_0x2b452b);}const _0xc64b5f=[..._0x114a75[_0x1e1a70(_0x4df0a0._0x5c7e93,_0x4df0a0._0x2c94df,_0x4df0a0._0x449f3e,_0x4df0a0._0x5a08a4)]()][_0x26b7cf(_0x4df0a0._0x5621c3,_0x4df0a0._0x4b2186,0x3ad,_0x4df0a0._0x3979df)]((_0x170d05,_0xcbc7d)=>_0xcbc7d[0x1][_0x1e1a70(0x200,0x255,0x277,0x16d)]-_0x170d05[0x1][_0x26b7cf(0x50c,0x4fa,0x594,0x669)]),_0x2cc5ce=_0x36210b[_0x26b7cf(_0x4df0a0._0x58c56b,_0x4df0a0._0x17bb2a,0x3fc,0x495)](_0x1ce3d7=>!_0x1ce3d7[_0x1e1a70(0x107,0x7c,0xf3,0x4e)])['length'],_0x19cf6a=_0x36210b[_0x26b7cf(_0x4df0a0._0x14f8f3,_0x4df0a0._0x57f42e,_0x4df0a0._0x5cd9be,_0x4df0a0._0x487e7f)]>=_0x207d43,_0x57136d=_0x2efd80?_0x17b5cc[_0x26b7cf(0x2d4,_0x4df0a0._0x905ad1,0x416,_0x4df0a0._0x5a9e3c)](_0x37805a):_0x37805a;let _0x1d7ab2='';if(_0x36210b[_0x1e1a70(_0x4df0a0._0x5f4def,_0x4df0a0._0x543c98,0xaa,-_0x4df0a0._0x1a48ef)]===0x0)_0x1d7ab2='No\x20matches\x20found\x20for\x20pattern:\x20'+_0x68ff4[_0x1e1a70(_0x4df0a0._0x39de22,_0x4df0a0._0x33464e,0x185,_0x4df0a0._0x3ab8af)];else{_0x1d7ab2='Found\x20'+_0x2cc5ce+_0x1e1a70(_0x4df0a0._0x13dc59,_0x4df0a0._0x48761a,0x1ea,0x169)+(_0x2cc5ce===0x1?'':'es')+'\x0a';for(const [_0x212f62,_0x3fb07e]of _0xc64b5f){const _0x57742c=_0x2efd80?_0x17b5cc[_0x1e1a70(0x206,_0x4df0a0._0x30f0ee,_0x4df0a0._0x4cc776,_0x4df0a0._0x16c771)](_0x212f62):_0x17b5cc[_0x26b7cf(_0x4df0a0._0x244918,0x470,0x456,0x368)](_0x57136d,_0x212f62);_0x1d7ab2+='\x0a'+_0x57742c+':\x0a';for(const _0x237e11 of _0x3fb07e[_0x26b7cf(_0x4df0a0._0x1f2474,0x549,0x4d8,0x3d7)]){const _0x1de5e8=_0x237e11[_0x1e1a70(_0x4df0a0._0x4edd0b,_0x4df0a0._0xb68310,_0x4df0a0._0x562042,_0x4df0a0._0x3c434f)][_0x26b7cf(0x39d,0x411,0x3c7,_0x4df0a0._0x2698aa)]>MAX_LINE_LENGTH?_0x237e11[_0x1e1a70(0x37b,_0x4df0a0._0x182001,0x32e,0x21c)][_0x26b7cf(0x486,0x58c,_0x4df0a0._0x3855dc,_0x4df0a0._0xb5c6f1)](0x0,MAX_LINE_LENGTH)+'...':_0x237e11[_0x1e1a70(_0x4df0a0._0x2a0648,0x46d,0x32e,0x361)],_0x51a046=_0x237e11['isContext']?'\x20\x20':'>\x20';_0x1d7ab2+=_0x51a046+_0x26b7cf(_0x4df0a0._0x3823e6,0x5f8,_0x4df0a0._0x22958e,_0x4df0a0._0x275119)+_0x237e11['lineNum']+':\x20'+_0x1de5e8+'\x0a';}}_0x19cf6a&&(_0x1d7ab2+=_0x26b7cf(0x457,_0x4df0a0._0x268916,0x4d5,_0x4df0a0._0x5dd24c));}const _0x48c328={'searchPath':_0x17b5cc[_0x1e1a70(0xa4,_0x4df0a0._0x1dfc71,_0x4df0a0._0x6557dc,_0x4df0a0._0x139873)](_0x31b645,_0x37805a)||'.','pattern':_0x68ff4[_0x26b7cf(_0x4df0a0._0x120164,0x3e6,_0x4df0a0._0x4e0d07,0x4a2)],'matchCount':_0x2cc5ce,'fileCount':_0x114a75[_0x26b7cf(_0x4df0a0._0x5e614d,_0x4df0a0._0x59f9ea,0x44d,0x534)],'truncated':_0x19cf6a};_0x1dff19&&_0x68ff4[_0x1e1a70(_0x4df0a0._0x3f1d23,_0x4df0a0._0x1ddb4b,0x1f1,_0x4df0a0._0x3e120e)]!==void 0x0&&(_0x48c328[_0x26b7cf(0x56b,_0x4df0a0._0x5ba4ac,0x50e,0x4e6)]=_0x68ff4[_0x1e1a70(0x316,0x1c5,_0x4df0a0._0x15d08c,0x2c1)]);function _0x1e1a70(_0x2ef8b3,_0x539e5c,_0x491f94,_0x5a1dbb){return _0x4275b4(_0x2ef8b3-_0x263959._0x25169b,_0x2ef8b3,_0x491f94- -0x3d7,_0x5a1dbb-_0x263959._0x444a89);}function _0x26b7cf(_0x30fd56,_0x3e0c10,_0x4552bc,_0x2e96cc){return _0x47b25b(_0x2e96cc,_0x3e0c10-_0x17488._0x192f09,_0x4552bc-_0x17488._0x5ea4a7,_0x2e96cc-_0x17488._0x320324);}return yield createToolOutput(_0x1d7ab2['trim'](),_0x48c328),void 0x0;}});}import{readdir as _0x380be8,readFile as _0x11c380,stat as _0x41f86c}from'fs/promises';import*as _0x1272bf from'path';import*as _0x42a7fc from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x3672ed,_0x3351a1){const _0x501523={_0x25e7c2:0x357,_0x394d98:0x373,_0x19387a:0x276,_0x228d06:0x4a0,_0x2f1d7a:0x3cf,_0x537e5f:0x288},_0x13afd4={_0x10436e:0xe8,_0x14782a:0x2f};function _0x373b1f(_0x5130ac,_0x1da60c,_0x4528d5,_0x5403b6){return _0x567203(_0x5403b6,_0x1da60c-0x1a,_0x1da60c-0x1ec,_0x5403b6-0x1d4);}if(_0x3351a1>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;const _0xf21e6b=await _0x11c380(_0x3672ed)[_0x373b1f(_0x501523._0x25e7c2,_0x501523._0x394d98,_0x501523._0x19387a,_0x501523._0x228d06)](()=>null);function _0x1ba458(_0x57c3e6,_0xdc170d,_0x5d7794,_0x4f7c26){return _0x567203(_0x5d7794,_0xdc170d-_0x13afd4._0x10436e,_0x4f7c26-0x14,_0x4f7c26-_0x13afd4._0x14782a);}if(!_0xf21e6b||isProbablyBinary(_0xf21e6b))return void 0x0;return _0xf21e6b[_0x1ba458(-0x82,-0x2d,0x13a,0x2)](_0x373b1f(0x2a6,0x282,0x1d9,0x317))[_0x373b1f(0x1f8,0x2d6,_0x501523._0x2f1d7a,_0x501523._0x537e5f)](/\r?\n/)['length'];}function createLsTool(_0x927ce1={}){const _0x138e8a={_0x2a94e3:0x40f,_0x83d7a0:0x440,_0xa2afe0:0x187,_0x3250fc:0xef,_0x174f45:0x720,_0x393479:0x707,_0x5eab7c:0x6c4,_0x3b2af3:0x6cf,_0x36b870:0x638,_0xa84379:0x694,_0x394cf7:0x749,_0x45c652:0x6c7,_0xb4b1f7:0x696,_0x5a4e89:0x7bc,_0x181135:0xbe,_0x3c04c3:0x2d,_0x2b81ca:0x100},_0x59adba={_0x6d9208:0x14c,_0x48747c:0x19e,_0x508c5f:0x3b3,_0x1b92a8:0x2b0,_0x35a755:0x23b,_0x3f0bfa:0x2c3,_0x3dba33:0x2e4,_0x823bd8:0x277,_0x1ae7d3:0xae,_0x4dfce6:0xea,_0x5e6d5e:0x64,_0x214549:0x22e,_0x30f0a7:0x151,_0x315caa:0x2b0,_0x3d278a:0x10c,_0x1bf67f:0x1cd,_0x2087a3:0x20f,_0x1439c1:0x1f6,_0x15d456:0x1c2,_0x40f1ad:0x209,_0x194575:0x1f6,_0x5e5c4a:0x166,_0x10cf79:0x206,_0x1ac4e9:0x169,_0x33c5aa:0x207,_0x343fa3:0x19f,_0x4413d8:0x121,_0x56e87c:0x116,_0x42264f:0x1b,_0x29917e:0x1a7,_0xdc8b01:0x345,_0x2a6a5d:0x22d,_0xcb17cb:0xc6,_0x288d65:0x1f,_0x24deb0:0x252,_0x280afe:0xd4,_0x5dc563:0x190,_0x1874d4:0x1a9,_0x1088e3:0x213,_0x356454:0x310,_0x4694f2:0x1b0,_0xc1c2b1:0x261,_0x51e8ec:0x119},_0x2b52c2={_0x1903d9:0x1a5,_0x1a6af6:0x43d},_0x51d7f2={_0x24c3d7:0x84,_0x21ea77:0x34b},_0x470c8c={_0x195c8d:0x16f,_0x4cc6c8:0x139},_0x13d379={_0x535f80:0x47e},_0x3b159f=_0x1272bf[_0x59aa09(_0x138e8a._0x2a94e3,0x5c5,0x524,_0x138e8a._0x83d7a0)](_0x927ce1[_0x294af0(-_0x138e8a._0xa2afe0,-0x9e,-0x43,-0x2b6)]??process[_0x294af0(-0xd,-0x1c,_0x138e8a._0x3250fc,-0xbc)]()),_0x9910e1=(_0x927ce1[_0x59aa09(_0x138e8a._0x174f45,_0x138e8a._0x393479,_0x138e8a._0x5eab7c,_0x138e8a._0x3b2af3)]??[])['map'](_0x59f26a=>_0x1272bf[_0x59aa09(0x678,0x601,0x524,0x653)](_0x59f26a));function _0x59aa09(_0x54251b,_0x38a0fd,_0x438895,_0x485dc5){return _0x567203(_0x485dc5,_0x38a0fd-0x184,_0x438895-_0x13d379._0x535f80,_0x485dc5-0x188);}function _0x294af0(_0x5fc244,_0x502903,_0x298bda,_0x454237){return _0x567203(_0x502903,_0x502903-0x7a,_0x5fc244- -_0x470c8c._0x195c8d,_0x454237-_0x470c8c._0x4cc6c8);}const _0x39ef04=_0x927ce1[_0x59aa09(_0x138e8a._0x36b870,0x759,_0x138e8a._0xa84379,0x6da)]??'Ls';return defineTool({'name':_0x39ef04,'description':_0x294af0(-0x3e,-0x129,0x5b,0x4d),'inputSchema':{'type':_0x59aa09(_0x138e8a._0x394cf7,_0x138e8a._0x45c652,_0x138e8a._0xb4b1f7,_0x138e8a._0x5a4e89),'properties':{'path':{'type':_0x294af0(-_0x138e8a._0x181135,-0xac,-0xc7,-0x16a)},'limit':{'type':_0x294af0(_0x138e8a._0x3c04c3,0xc3,-0x111,-_0x138e8a._0x2b81ca)}}},async *'execute'(_0x59d855){function _0x52a39a(_0x10bffd,_0x385cff,_0x33145e,_0x5f082e){return _0x59aa09(_0x10bffd-0x7c,_0x385cff-_0x51d7f2._0x24c3d7,_0x5f082e- -_0x51d7f2._0x21ea77,_0x10bffd);}const _0x86c785=_0x59d855[_0x415c2e(0x1b9,_0x59adba._0x6d9208,0xcb,0x294)]??'.';function _0x415c2e(_0x2a50bf,_0x4ff839,_0x366fee,_0x83b630){return _0x59aa09(_0x2a50bf-0x173,_0x4ff839-_0x2b52c2._0x1903d9,_0x4ff839- -_0x2b52c2._0x1a6af6,_0x2a50bf);}const _0x554d45=resolveAllowedPath(_0x3b159f,_0x9910e1,_0x86c785),_0x22df23=await _0x41f86c(_0x554d45)[_0x52a39a(0x2ba,_0x59adba._0x48747c,_0x59adba._0x508c5f,0x2ba)](()=>null);if(!_0x22df23?.[_0x415c2e(_0x59adba._0x1b92a8,_0x59adba._0x35a755,0x2a5,0x2de)]())throw new ToolExecutionError(_0x52a39a(_0x59adba._0x3f0bfa,_0x59adba._0x3dba33,0x3a0,_0x59adba._0x823bd8)+_0x86c785,{'path':_0x86c785});const _0x2b2f26=_0x59d855[_0x415c2e(-_0x59adba._0x1ae7d3,0x1e,-_0x59adba._0x4dfce6,_0x59adba._0x5e6d5e)]??0x3e8,_0x202e98=Math[_0x415c2e(0x216,_0x59adba._0x214549,0x145,_0x59adba._0x30f0a7)](Math[_0x52a39a(0x1d9,_0x59adba._0x315caa,_0x59adba._0x3d278a,_0x59adba._0x1bf67f)](Math[_0x415c2e(0x1d6,_0x59adba._0x2087a3,_0x59adba._0x1439c1,0x1c7)](_0x2b2f26),0x1),0x2710),_0x1286b7=await _0x380be8(_0x554d45),_0x4e9a47=[];for(const _0x44d096 of _0x1286b7['slice'](0x0,_0x202e98)){const _0x45a059=_0x1272bf[_0x52a39a(0x265,_0x59adba._0x15d456,0x2b6,0x261)](_0x554d45,_0x44d096),_0x5655ac=await _0x41f86c(_0x45a059)['catch'](()=>null);if(!_0x5655ac)continue;let _0x2d5466=_0x415c2e(_0x59adba._0x40f1ad,0x1ca,0x218,_0x59adba._0x194575);if(_0x5655ac[_0x415c2e(0xc0,0x13c,0xc4,_0x59adba._0x5e5c4a)]())_0x2d5466=_0x415c2e(0x1fa,0x140,0xa9,_0x59adba._0x10cf79);else{if(_0x5655ac['isDirectory']())_0x2d5466='directory';else{if(_0x5655ac['isSymbolicLink']())_0x2d5466='symlink';}}const _0x11d0ac={'name':_0x44d096,'type':_0x2d5466,'size':_0x5655ac[_0x52a39a(_0x59adba._0x1ac4e9,0x68,_0x59adba._0x33c5aa,_0x59adba._0x343fa3)],'mtime':_0x5655ac[_0x415c2e(_0x59adba._0x4413d8,_0x59adba._0x56e87c,0x47,_0x59adba._0x42264f)],'mode':_0x5655ac['mode']},_0x1963d5=_0x2d5466==='file'?await countTextLines(_0x45a059,_0x5655ac['size']):void 0x0;if(_0x1963d5!==void 0x0)_0x11d0ac[_0x415c2e(_0x59adba._0x29917e,0x26b,_0x59adba._0xdc8b01,0x1ae)]=_0x1963d5;_0x4e9a47[_0x415c2e(0x110,_0x59adba._0x2a6a5d,0x13a,0x2bb)](_0x11d0ac);}_0x4e9a47[_0x415c2e(0x10e,0xd,-_0x59adba._0xcb17cb,_0x59adba._0x288d65)]((_0x46d2a2,_0x5457dd)=>_0x46d2a2[_0x52a39a(0x3b6,0x494,0x422,0x349)][_0x415c2e(0x171,0x229,0x285,0x125)](_0x5457dd[_0x52a39a(0x2b1,0x234,0x302,0x349)]));const _0x4e684c={'path':_0x86c785,'total':_0x4e9a47[_0x52a39a(_0x59adba._0x24deb0,0x236,0x1d0,0x119)],'truncated':_0x1286b7[_0x52a39a(_0x59adba._0x280afe,0x18c,0x1e3,0x119)]>_0x202e98,'entries':_0x4e9a47};return yield createToolOutput(_0x42a7fc[_0x52a39a(0x107,_0x59adba._0x5dc563,_0x59adba._0x1874d4,0x10e)](_0x4e684c,{'indent':0x2,'lineWidth':0x0})[_0x52a39a(0x1da,0x43b,_0x59adba._0x1088e3,_0x59adba._0x356454)](),{'path':_0x86c785,'total':_0x4e9a47['length'],'truncated':_0x1286b7[_0x52a39a(_0x59adba._0x4694f2,0x13e,_0x59adba._0xc1c2b1,_0x59adba._0x51e8ec)]>_0x202e98,'limit':_0x202e98,'entries':_0x4e9a47}),void 0x0;}});}import{stat as _0x36d21e}from'fs/promises';import _0x499672 from'path';import{fileURLToPath as _0x197636}from'url';function severityName(_0x5baab9){const _0x220e8a={_0x44a647:0x28d,_0x1cdc44:0x4cb,_0x10c213:0x247,_0x46bb2f:0x4c2,_0xff942b:0x471,_0x1164f6:0x56e,_0x5b668c:0x593,_0x2da2bd:0x6bb},_0x4445de={_0x3a103a:0x231,_0x10e73d:0x1d0},_0x95ec69={_0x3afaa7:0x191};function _0x32607f(_0x2fe704,_0x17134b,_0x4d728e,_0x133e2d){return _0x29bb69(_0x2fe704-_0x95ec69._0x3afaa7,_0x4d728e-0x488,_0x17134b,_0x133e2d-0x158);}function _0x4cd89b(_0x41dde5,_0x42b21f,_0x5d43a8,_0x2ba9f2){return _0x567203(_0x2ba9f2,_0x42b21f-0xaa,_0x5d43a8-_0x4445de._0x3a103a,_0x2ba9f2-_0x4445de._0x10e73d);}switch(_0x5baab9){case 0x1:return'Error';case 0x2:return _0x32607f(_0x220e8a._0x44a647,0x48c,0x3e0,_0x220e8a._0x1cdc44);case 0x3:return _0x32607f(0x3be,_0x220e8a._0x10c213,0x37a,0x233);case 0x4:return _0x32607f(_0x220e8a._0x46bb2f,0x5bb,_0x220e8a._0xff942b,0x5a6);default:return _0x32607f(0x6d1,_0x220e8a._0x1164f6,_0x220e8a._0x5b668c,_0x220e8a._0x2da2bd);}}function formatSingleHover(_0xc3053a){const _0x4a563a={_0x1e8a68:0x504,_0x31d2c5:0x4e1,_0x192ac5:0x3f9,_0x8d1e7:0x3d2,_0x4b5d43:0x2c3,_0x1c8408:0x419,_0x4fde7b:0x40f,_0x12d764:0x249,_0x108c36:0x401,_0x4e6b5d:0x605,_0x3e0f9a:0x5aa,_0xf57d12:0x2f5,_0x483c7e:0x3af,_0x3093e8:0x2e8,_0x5e14c1:0x1f3,_0x2296b9:0x288,_0x9f0ff6:0x21c,_0x2bc195:0x285,_0x5adf9c:0x400,_0x180883:0x497,_0x53d63d:0x524,_0x27b59b:0x417,_0x1816bd:0x169,_0x4bed65:0x21a,_0x433a50:0x59d,_0x5e64ec:0x4fa},_0x19d7f2={_0x105153:0x154,_0x1469ff:0x255},_0x126e3d={_0x244587:0x3e,_0x119736:0x10},_0x4281c9=_0xc3053a[_0x4fa9c1(_0x4a563a._0x1e8a68,0x641,_0x4a563a._0x31d2c5,_0x4a563a._0x192ac5)];function _0x4fa9c1(_0x5494c1,_0x1a30ab,_0x4a6be8,_0x133d49){return _0x29bb69(_0x5494c1-_0x126e3d._0x244587,_0x5494c1-0x455,_0x4a6be8,_0x133d49-_0x126e3d._0x119736);}if(typeof _0x4281c9===_0x4fa9c1(_0x4a563a._0x8d1e7,_0x4a563a._0x4b5d43,0x466,_0x4a563a._0x1c8408))return _0x4281c9;if(Array[_0x4fa9c1(0x492,0x5d8,_0x4a563a._0x4fde7b,0x359)](_0x4281c9))return _0x4281c9['map'](_0xc53c32=>typeof _0xc53c32===_0x4fa9c1(0x3d2,0x4b2,0x360,0x2ef)?_0xc53c32:_0xc53c32['value'])[_0x4fa9c1(0x33c,_0x4a563a._0x12d764,0x2f3,_0x4a563a._0x108c36)](Boolean)['join']('\x0a\x0a');if(_0x4fa9c1(0x4ea,_0x4a563a._0x4e6b5d,_0x4a563a._0x3e0f9a,0x39b)in _0x4281c9)return _0x4281c9[_0x507b7d(0x297,_0x4a563a._0xf57d12,_0x4a563a._0x483c7e,_0x4a563a._0x3093e8)];function _0x507b7d(_0x19bc4c,_0x48191f,_0x4d0467,_0x3ab6f8){return _0x29bb69(_0x19bc4c-_0x19d7f2._0x105153,_0x19bc4c-_0x19d7f2._0x1469ff,_0x3ab6f8,_0x3ab6f8-0x26);}return _0x4281c9[_0x507b7d(_0x4a563a._0x5e14c1,0x206,_0x4a563a._0x2296b9,_0x4a563a._0x9f0ff6)]?_0x507b7d(0x2b0,0x2ae,_0x4a563a._0x2bc195,_0x4a563a._0x5adf9c)+_0x4281c9[_0x507b7d(0x1f3,0x227,0x322,0x24f)]+'\x0a'+_0x4281c9[_0x4fa9c1(_0x4a563a._0x180883,0x37e,_0x4a563a._0x53d63d,_0x4a563a._0x27b59b)]+_0x507b7d(_0x4a563a._0x1816bd,0x234,_0x4a563a._0x4bed65,0x50):_0x4281c9[_0x4fa9c1(0x497,_0x4a563a._0x433a50,0x5e6,_0x4a563a._0x5e64ec)];}function formatHover(_0x370471){const _0x327bb7={_0x2d231a:0x4b,_0x484323:0x2b0,_0x1a9ab7:0x19a,_0x2c9e24:0x22e,_0x1d0e32:0x1e1,_0x5cc21b:0x423,_0x1a5f45:0x26d,_0x59190e:0x38b},_0x5713ac={_0x3f7e3:0xc5,_0x17a9f0:0x71},_0x3c4d17={_0x3492a9:0x116,_0x4d4f39:0xf2,_0x32ae21:0x5d};function _0x56b118(_0x339fc7,_0x5c1fa4,_0x15743b,_0x391680){return _0x567203(_0x5c1fa4,_0x5c1fa4-_0x3c4d17._0x3492a9,_0x15743b-_0x3c4d17._0x4d4f39,_0x391680-_0x3c4d17._0x32ae21);}if(_0x370471[_0x8b03ee(0x14c,0x188,0x3d,_0x327bb7._0x2d231a)]===0x0)return _0x8b03ee(_0x327bb7._0x484323,0x194,0x205,0x1d6);function _0x8b03ee(_0x2b2ea4,_0x5f5392,_0x85f3b7,_0x29cb6f){return _0x29bb69(_0x2b2ea4-_0x5713ac._0x3f7e3,_0x5f5392-0x2d6,_0x2b2ea4,_0x29cb6f-_0x5713ac._0x17a9f0);}return _0x370471[_0x8b03ee(0x128,_0x327bb7._0x1a9ab7,_0x327bb7._0x2c9e24,_0x327bb7._0x1d0e32)](formatSingleHover)[_0x8b03ee(0x3f2,0x2d0,_0x327bb7._0x5cc21b,_0x327bb7._0x1a5f45)](_0x56b118(_0x327bb7._0x59190e,0x381,0x2d1,0x302));}function locationPath(_0x3c7897){const _0x579cbc={_0x295b1b:0x251,_0x1c4bc1:0x277,_0x495334:0x19a},_0x3b8e65={_0x12029c:0x2d},_0x30f123={_0x5d8159:0x163};if(!_0x3c7897[_0x298ae3(-0x197,-_0x579cbc._0x295b1b,-_0x579cbc._0x1c4bc1,-0xc8)](_0x298ae3(-_0x579cbc._0x495334,-0x99,-0x243,-0xe0)))return _0x3c7897;function _0x298ae3(_0x49af0c,_0x22f3ea,_0x58e1bf,_0x2a7f68){return _0x29bb69(_0x49af0c-_0x30f123._0x5d8159,_0x49af0c- -0x6a,_0x22f3ea,_0x2a7f68-0x97);}function _0x1734ff(_0x33f878,_0x36e16f,_0x27e5d2,_0x404ff9){return _0x29bb69(_0x33f878-_0x3b8e65._0x12029c,_0x33f878-0x651,_0x36e16f,_0x404ff9-0x98);}return _0x197636(_0x3c7897);}function formatLocations(_0x4eaef1){const _0x1b6119={_0x22dc65:0xed,_0x352a2c:0x194,_0x447040:0x6b,_0x5ead48:0x1d5,_0x3e8e94:0x85,_0x8f681:0x238,_0x4ef9d9:0x16e,_0x2a8b70:0xb0,_0x3e50cb:0x45,_0x30fbc2:0x5b},_0x2a7450={_0x22eee8:0x32e,_0x346239:0x440,_0x5239c9:0x272,_0x5deb76:0x75d,_0x5c4014:0x30f,_0xb40049:0x30a,_0x349287:0x1f3,_0x3e3aeb:0x218,_0x4e5424:0x226,_0x59abef:0x371},_0x399b72={_0x452fa1:0x1c6,_0x44b5e2:0x9f},_0x38afcc={_0x548f60:0x99};if(_0x4eaef1[_0x39a1a8(-0xe3,-0xd8,-_0x1b6119._0x22dc65,-0x52)]===0x0)return _0x2735e1(-_0x1b6119._0x352a2c,-0x1d9,-_0x1b6119._0x447040,-0x4b);function _0x2735e1(_0x218dcb,_0x4d69a2,_0x200f55,_0x4c154b){return _0x29bb69(_0x218dcb-0x33,_0x218dcb- -_0x38afcc._0x548f60,_0x4c154b,_0x4c154b-0x14a);}function _0x39a1a8(_0x18e6ea,_0x1e6dbb,_0x487225,_0x209d1e){return _0x29bb69(_0x18e6ea-_0x399b72._0x452fa1,_0x487225-0x61,_0x209d1e,_0x209d1e-_0x399b72._0x44b5e2);}return _0x4eaef1[_0x2735e1(-_0x1b6119._0x5ead48,-_0x1b6119._0x3e8e94,-_0x1b6119._0x8f681,-_0x1b6119._0x4ef9d9)](_0x61458=>{const _0x4a3b14={_0x2efb0e:0x2d5,_0x54a473:0x6a,_0x451543:0x6f};function _0x29c400(_0x3d4f98,_0x5590ca,_0x5c665a,_0x52657e){return _0x39a1a8(_0x3d4f98-0x7e,_0x5590ca-0xdb,_0x5590ca-0x66d,_0x5c665a);}function _0x96a04c(_0x1aa1d5,_0x2dbf23,_0x94f9e1,_0x3c7180){return _0x2735e1(_0x1aa1d5-_0x4a3b14._0x2efb0e,_0x2dbf23-_0x4a3b14._0x54a473,_0x94f9e1-_0x4a3b14._0x451543,_0x2dbf23);}const _0x3cc8dd=_0x61458[_0x96a04c(_0x2a7450._0x22eee8,_0x2a7450._0x346239,0x2a3,_0x2a7450._0x5239c9)][_0x29c400(0x6e3,0x771,_0x2a7450._0x5deb76,0x851)];return locationPath(_0x61458[_0x96a04c(_0x2a7450._0x5c4014,_0x2a7450._0xb40049,0x3ef,_0x2a7450._0x349287)])+':'+(_0x3cc8dd[_0x96a04c(0x222,_0x2a7450._0x3e3aeb,_0x2a7450._0x4e5424,_0x2a7450._0x59abef)]+0x1)+':'+(_0x3cc8dd['character']+0x1);})[_0x39a1a8(_0x1b6119._0x2a8b70,_0x1b6119._0x3e50cb,_0x1b6119._0x30fbc2,0xfa)]('\x0a');}function isDocumentSymbol(_0x1c8e50){const _0x487ba6={_0x5e5442:0x6e7,_0x45efff:0x6c6,_0x390e1e:0x768,_0x5758a9:0x75b,_0x12de63:0x6ae,_0x402524:0x7c8,_0x1e5567:0x6af},_0x20bfe7={_0x3e3639:0x1d},_0xf0c163={_0x6a1fbd:0x676,_0x475842:0xd9};function _0x2dacc2(_0x5503ed,_0x574aa0,_0x2a79fa,_0x5cd342){return _0x29bb69(_0x5503ed-0x195,_0x5cd342-_0xf0c163._0x6a1fbd,_0x574aa0,_0x5cd342-_0xf0c163._0x475842);}function _0x192a12(_0x305e7a,_0x41b71a,_0x452666,_0x3a4f78){return _0x29bb69(_0x305e7a-0x180,_0x452666-0x37d,_0x3a4f78,_0x3a4f78-_0x20bfe7._0x3e3639);}return _0x2dacc2(_0x487ba6._0x5e5442,_0x487ba6._0x45efff,0x8b2,_0x487ba6._0x390e1e)in _0x1c8e50&&_0x2dacc2(_0x487ba6._0x5758a9,_0x487ba6._0x12de63,_0x487ba6._0x402524,_0x487ba6._0x1e5567)in _0x1c8e50;}function formatSymbols(_0x13250d){const _0x7869a1={_0x1f79c1:0x17b,_0x258268:0x4f8,_0x207f86:0x47d},_0x41b1a3={_0x9bf033:0x140,_0x1f2e93:0x4fa,_0x41381c:0x697,_0x3c42e6:0xc4,_0x4a2046:0x4e6,_0x157dbd:0x5ad,_0xa70555:0x524,_0x1c7fa9:0x20f,_0x23c7e6:0x255,_0x11cc34:0xd6,_0xbe18d0:0x1a3,_0x2a1d64:0x17d,_0x4d3c2b:0x598,_0x39dcfd:0x591,_0x12a0b1:0x5d3,_0x59e1be:0x188,_0x362009:0x4ec,_0x1cce04:0x92,_0x106647:0x10d,_0x2f4be1:0x5f2,_0x6f842f:0x19b,_0x3e909a:0x14,_0x142741:0x85,_0x546631:0xcc,_0x4c859c:0x1a3,_0x34c284:0x115},_0x174458={_0x27e690:0x287,_0x486a2c:0x12b},_0x39aac6={_0x360815:0x205,_0x526d33:0x132},_0x47cbba={_0x39be06:0x145,_0x4a6271:0xee},_0x27eb10={_0x27e693:0x15b,_0xe9c0f9:0x34f,_0x4b8917:0xe};function _0x564460(_0x128d38,_0xf728a7,_0x2d807a,_0xcb9f1){return _0x567203(_0xf728a7,_0xf728a7-_0x27eb10._0x27e693,_0x2d807a-_0x27eb10._0xe9c0f9,_0xcb9f1-_0x27eb10._0x4b8917);}function _0x1218cc(_0x1a8fa8,_0x3104b3,_0x5d0e68,_0x2dd40b){return _0x567203(_0x3104b3,_0x3104b3-0x164,_0x1a8fa8-_0x47cbba._0x39be06,_0x2dd40b-_0x47cbba._0x4a6271);}if(_0x13250d['length']===0x0)return'No\x20symbols\x20found';return _0x13250d[_0x1218cc(0x13d,_0x7869a1._0x1f79c1,0x179,0x89)](_0x3c5655=>{function _0x45fb23(_0x27fa25,_0x956877,_0x4e1316,_0x1eb1aa){return _0x1218cc(_0x4e1316- -_0x39aac6._0x360815,_0x27fa25,_0x4e1316-_0x39aac6._0x526d33,_0x1eb1aa-0x131);}if(isDocumentSymbol(_0x3c5655))return _0x3c5655['name']+'\x20('+_0x3c5655['kind']+_0x45fb23(0x229,_0x41b1a3._0x9bf033,0x19e,0x271)+(_0x3c5655[_0x5af53f(0x711,0x5f2,_0x41b1a3._0x1f2e93,_0x41b1a3._0x41381c)][_0x45fb23(_0x41b1a3._0x3c42e6,0x1a8,0x117,0x1e8)][_0x5af53f(0x3de,_0x41b1a3._0x4a2046,_0x41b1a3._0x157dbd,_0x41b1a3._0xa70555)]+0x1)+':'+(_0x3c5655[_0x45fb23(_0x41b1a3._0x1c7fa9,0xe5,0x166,0x1e)][_0x45fb23(_0x41b1a3._0x23c7e6,0xa7,0x117,0x1e6)][_0x45fb23(_0x41b1a3._0x11cc34,0x2b5,_0x41b1a3._0xbe18d0,_0x41b1a3._0x2a1d64)]+0x1)+']';function _0x5af53f(_0x46be16,_0x2159d8,_0x134010,_0x5d01d7){return _0x1218cc(_0x2159d8-_0x174458._0x27e690,_0x5d01d7,_0x134010-0x161,_0x5d01d7-_0x174458._0x486a2c);}return _0x3c5655['name']+'\x20('+_0x3c5655[_0x5af53f(0x64d,0x595,_0x41b1a3._0x4d3c2b,0x461)]+')\x20'+locationPath(_0x3c5655[_0x5af53f(0x61d,_0x41b1a3._0x39dcfd,0x43c,0x56f)][_0x5af53f(0x5b3,_0x41b1a3._0x12a0b1,0x4d4,0x721)])+':'+(_0x3c5655['location']['range'][_0x45fb23(-0x30,0x15f,0x117,_0x41b1a3._0x59e1be)][_0x5af53f(_0x41b1a3._0x362009,0x4e6,0x4f6,0x56a)]+0x1)+':'+(_0x3c5655[_0x45fb23(_0x41b1a3._0x1cce04,_0x41b1a3._0x106647,0x105,0x1c6)][_0x5af53f(0x4c2,_0x41b1a3._0x2f4be1,0x4df,0x535)][_0x45fb23(_0x41b1a3._0x6f842f,-_0x41b1a3._0x3e909a,0x117,_0x41b1a3._0x142741)][_0x45fb23(_0x41b1a3._0x546631,0x1fd,_0x41b1a3._0x4c859c,_0x41b1a3._0x34c284)]+0x1);})[_0x564460(0x3c1,_0x7869a1._0x258268,_0x7869a1._0x207f86,0x456)]('\x0a');}function formatDiagnostics(_0x267677){const _0x34f545={_0x5a8083:0x318,_0x21db33:0x29f,_0x1cdba0:0x203,_0x2cb970:0x2ac},_0x165d23={_0x5cd87d:0x322,_0x3c8e69:0x402,_0x102ef4:0x167,_0x3c9fbb:0x3c3,_0x3a7e6b:0x593,_0x118e13:0x590,_0xb84547:0x6b8,_0x5ea3de:0x789},_0x528ea5={_0xdf8a5e:0x1c5,_0x45f9c2:0x1a0},_0x5455a3={_0xf20ae2:0x16a};if(_0x267677['length']===0x0)return _0x3d89c5(_0x34f545._0x5a8083,_0x34f545._0x21db33,0x218,0x113);function _0x3d89c5(_0x2992a3,_0x1cf81c,_0x20102b,_0x6692ac){return _0x567203(_0x2992a3,_0x1cf81c-_0x5455a3._0xf20ae2,_0x20102b-0xd5,_0x6692ac-0x62);}function _0x3fd8c0(_0x4afb1d,_0x36f0d6,_0x4a0da6,_0x1ecffe){return _0x29bb69(_0x4afb1d-_0x528ea5._0xdf8a5e,_0x1ecffe-0x2d6,_0x4a0da6,_0x1ecffe-_0x528ea5._0x45f9c2);}return _0x267677['map'](_0x22fe34=>{const _0x2d01d0={_0x264ae2:0x439,_0x4167c2:0xe2},_0x480e3e={_0x1fb2bd:0x8d,_0x1a5521:0x19,_0xfee67:0x11b},_0x299824=_0x22fe34[_0x440b3(_0x165d23._0x5cd87d,_0x165d23._0x3c8e69,0x2e2,0x254)][_0x440b3(0x219,_0x165d23._0x102ef4,0x293,_0x165d23._0x3c9fbb)];function _0x440b3(_0x2097db,_0x4689e1,_0x275ea8,_0x468288){return _0x3d89c5(_0x2097db,_0x4689e1-_0x480e3e._0x1fb2bd,_0x275ea8- -_0x480e3e._0x1a5521,_0x468288-_0x480e3e._0xfee67);}function _0x18577a(_0x703b22,_0xd91af1,_0x2cd357,_0x4bb5e9){return _0x3d89c5(_0x2cd357,_0xd91af1-0xeb,_0x703b22-_0x2d01d0._0x264ae2,_0x4bb5e9-_0x2d01d0._0x4167c2);}return severityName(_0x22fe34[_0x18577a(_0x165d23._0x3a7e6b,0x457,0x6dd,_0x165d23._0x118e13)])+'\x20['+(_0x299824['line']+0x1)+':'+(_0x299824[_0x440b3(0x38f,0x233,0x31f,0x1e2)]+0x1)+']\x20'+_0x22fe34[_0x18577a(_0x165d23._0xb84547,0x78f,0x61b,_0x165d23._0x5ea3de)];})[_0x3d89c5(0x2d3,0x2db,_0x34f545._0x1cdba0,_0x34f545._0x2cb970)]('\x0a');}function formatIncomingCalls(_0x2965c2){const _0x555f55={_0x42b3c5:0x2b4,_0xe1480a:0x386,_0x1d44cd:0x4ec,_0x1f8482:0x54f,_0x53c542:0x2be,_0xb7641:0x194},_0x564e9c={_0x18ed32:0x96},_0x2c69ad={_0x18ab68:0x4c};function _0x5b7d46(_0x5a6263,_0x58ac54,_0x14b553,_0x43a3f8){return _0x29bb69(_0x5a6263-_0x2c69ad._0x18ab68,_0x14b553-0x2c4,_0x5a6263,_0x43a3f8-0x13f);}function _0x50414f(_0x56163a,_0x282bef,_0x58dbf4,_0x2e1318){return _0x29bb69(_0x56163a-_0x564e9c._0x18ed32,_0x56163a-0x5de,_0x58dbf4,_0x2e1318-0x90);}if(_0x2965c2['length']===0x0)return _0x5b7d46(0x2f5,_0x555f55._0x42b3c5,0x382,_0x555f55._0xe1480a);return _0x2965c2[_0x50414f(0x4a2,_0x555f55._0x1d44cd,_0x555f55._0x1f8482,0x4d9)](_0x4a610b=>_0x4a610b[_0x50414f(0x579,0x574,0x54f,0x5c1)][_0x50414f(0x6c0,0x5b3,0x5fd,0x6c1)])[_0x5b7d46(0x296,0x2ef,_0x555f55._0x53c542,_0x555f55._0xb7641)]('\x0a');}function formatOutgoingCalls(_0x107ccc){const _0xab54a4={_0x3e1df5:0x20,_0xc5a903:0xa8,_0xd3b203:0x1a0,_0xe870cc:0x124,_0x3b73b5:0x15a,_0x530cb1:0xdc},_0x3f2d89={_0x21868c:0x29},_0xa98539={_0x4cf9f3:0x2f,_0x507b54:0x260,_0x4f1d7a:0xd4};function _0x2091b3(_0x40a4d8,_0xebaa3f,_0x486cc3,_0x40e12a){return _0x29bb69(_0x40a4d8-_0xa98539._0x4cf9f3,_0xebaa3f-_0xa98539._0x507b54,_0x40a4d8,_0x40e12a-_0xa98539._0x4f1d7a);}function _0x2ac040(_0xf01bf1,_0x65d9fa,_0x3fe289,_0x107cf1){return _0x567203(_0x65d9fa,_0x65d9fa-_0x3f2d89._0x21868c,_0x107cf1- -0x52,_0x107cf1-0x8c);}if(_0x107ccc[_0x2ac040(_0xab54a4._0x3e1df5,0xeb,-0x11,-0x6c)]===0x0)return _0x2ac040(0x2f7,_0xab54a4._0xc5a903,0x154,_0xab54a4._0xd3b203);return _0x107ccc[_0x2091b3(0x5a,_0xab54a4._0xe870cc,-0x31,0x1ca)](_0xde2b7=>_0xde2b7['to'][_0x2091b3(0x456,0x342,0x306,0x423)])[_0x2ac040(0x226,_0xab54a4._0x3b73b5,0x16d,_0xab54a4._0x530cb1)]('\x0a');}function toStructured(_0x3360d8){const _0x14e934={_0x347637:0x136,_0x116376:0x2c7,_0x4906cc:0xe7,_0xd62849:0x57,_0x3b197d:0x62},_0x49ea74={_0x4dc538:0x82},_0x264d20={_0x4d8d66:0x18c};function _0xdce46b(_0x2c1938,_0x1fb924,_0x1cd6e7,_0x2fcd5f){return _0x29bb69(_0x2c1938-0x79,_0x2c1938-0x6e8,_0x1fb924,_0x2fcd5f-_0x264d20._0x4d8d66);}function _0x5ec5e9(_0x2ef8f2,_0x400b32,_0x25e529,_0x49df6d){return _0x29bb69(_0x2ef8f2-0x33,_0x2ef8f2-0x240,_0x25e529,_0x49df6d-_0x49ea74._0x4dc538);}return JSON[_0x5ec5e9(0x21b,_0x14e934._0x347637,_0x14e934._0x116376,0x226)](JSON[_0x5ec5e9(_0x14e934._0x4906cc,-_0x14e934._0xd62849,_0x14e934._0x3b197d,0x18b)](_0x3360d8));}async function assertFile(_0x3e57f0){const _0x1ae7a4={_0x29c004:0x3b3,_0x44c46b:0x3e8},_0x519da1={_0x2e120f:0x22f},_0x29cb34=await _0x36d21e(_0x3e57f0);function _0x1f3b0e(_0x227dc1,_0x1f9c85,_0x24a675,_0x2862cb){return _0x567203(_0x2862cb,_0x1f9c85-0x10d,_0x227dc1-_0x519da1._0x2e120f,_0x2862cb-0x6a);}if(!_0x29cb34['isFile']())throw new ToolExecutionError(_0x1f3b0e(_0x1ae7a4._0x29c004,0x321,0x266,_0x1ae7a4._0x44c46b)+_0x3e57f0,{'path':_0x3e57f0});}function validatePosition(_0x329171,_0x2a3150){const _0x30ae19={_0x948f26:0x635,_0x3e7e50:0x6cf,_0x800ce3:0x30d,_0x20532a:0x2c2,_0x485ff7:0x272,_0x462379:0x3a9},_0x1ab9a0={_0x4779f8:0x1c9,_0x467c90:0xc0},_0x4547f5={_0x2b7518:0x88};function _0x5c4361(_0x1f56cc,_0x31bb8c,_0x550c9f,_0x59573f){return _0x567203(_0x31bb8c,_0x31bb8c-_0x4547f5._0x2b7518,_0x1f56cc-0x1c0,_0x59573f-0x82);}if(!Number[_0x57b677(0x585,0x6b7,_0x30ae19._0x948f26,_0x30ae19._0x3e7e50)](_0x329171)||_0x329171<0x1)throw new ToolExecutionError(_0x5c4361(0x3a4,0x46e,_0x30ae19._0x800ce3,_0x30ae19._0x20532a),{'line':_0x329171});function _0x57b677(_0x52d9d6,_0x2b0734,_0x111b68,_0x4b1153){return _0x29bb69(_0x52d9d6-_0x1ab9a0._0x4779f8,_0x52d9d6-0x607,_0x4b1153,_0x4b1153-_0x1ab9a0._0x467c90);}if(!Number[_0x5c4361(_0x30ae19._0x485ff7,0x396,0x146,_0x30ae19._0x462379)](_0x2a3150)||_0x2a3150<0x1)throw new ToolExecutionError('character\x20must\x20be\x20a\x20positive\x20integer',{'character':_0x2a3150});}function createLspTool(_0x4c21fa={}){const _0x400fee={_0x5b50eb:0x189,_0x42fb89:0xf8,_0x51b709:0x646,_0x55006e:0x690,_0x4c3e6e:0x72a,_0x543e4f:0x70c,_0x12b486:0xdb,_0x2b1e54:0x3a,_0x320f4b:0x41,_0x3358d9:0x2db,_0x2159a1:0x3e5,_0x3cdf01:0x1a7,_0x51a978:0x275,_0x276bae:0x1d9,_0x2f7694:0x68f,_0x475afb:0x672,_0x2156b3:0x4ee,_0x5210c4:0x6c4,_0x38447b:0x556,_0x4ce9dd:0x500,_0xbd2fbe:0x8,_0x569169:0x1fb,_0x586b82:0x614,_0xe77544:0x6df,_0x21b7e9:0x595,_0x24da32:0x5db,_0x520500:0x220,_0x45c8b5:0x1d1,_0x598883:0x1d3,_0x8366aa:0x196,_0x23a7fe:0x9a,_0x3acbeb:0x541,_0x31f4d5:0x68c,_0x45b0be:0x45a,_0x1a1b20:0x52d,_0x517d83:0x5fe,_0x21dda6:0x635,_0xc3a87b:0x69e,_0x2584cc:0x346},_0x402f21={_0x11e9df:0x191,_0x248abb:0x2c,_0x525115:0xd6,_0x2dba9f:0x636,_0x3861c7:0x510,_0x501aa9:0x5e9,_0x11ed15:0x4ed,_0x34362c:0x546,_0x6a054:0xd6,_0x4f2666:0x124,_0x1f5038:0xf9,_0x2da065:0x218,_0x490712:0x169,_0x4385d7:0x487,_0x2b561c:0x546,_0xec530c:0x4d3,_0x3fe7ad:0x831,_0x18eebe:0x700,_0x3d7b3c:0x638,_0x2ab099:0x705,_0x452970:0x2e,_0x299cbd:0x54,_0x2dcc06:0x3f,_0x501a9c:0xad,_0x474efd:0x17b,_0x238031:0x1b9,_0x65b3ca:0x209,_0x214975:0x1b5,_0x2f894c:0x165,_0x326e07:0x21f,_0x4c50b4:0x291,_0x24fc16:0x551,_0x4c24a2:0xfa,_0x414604:0x4c,_0x4c47cc:0x93,_0x1e0699:0x210,_0x35391f:0x178,_0x4fdfb9:0x107,_0x20050d:0x1a3,_0x51daae:0x87,_0x44b885:0x6dd,_0x56e00d:0x6b3,_0x2e5733:0x823,_0x218d88:0x3f,_0xaa7ba8:0x1c5,_0x1b2029:0x220,_0x1aac15:0x16a,_0xb61aaa:0x185,_0x4a8701:0x9d,_0x2cb641:0xdc,_0x1b50aa:0x129},_0x259819={_0x391612:0x64},_0x5678fe={_0x43b73b:0x127,_0x14b187:0x13b},_0x1c25af={_0x457720:0x1b9,_0x1f6a27:0x217},_0x8f6e4a={_0x534eaa:0x70,_0x46e090:0x618,_0x1f1392:0xef},_0x4698ae=_0x499672[_0x4bf5c1(_0x400fee._0x5b50eb,0xc5,_0x400fee._0x42fb89,0xcd)](_0x4c21fa['defaultCwd']??process[_0x502a15(_0x400fee._0x51b709,0x555,0x6d1,_0x400fee._0x55006e)]()),_0x558947=(_0x4c21fa[_0x502a15(_0x400fee._0x4c3e6e,0x6eb,_0x400fee._0x543e4f,0x827)]??[])[_0x4bf5c1(_0x400fee._0x12b486,0x13,_0x400fee._0x2b1e54,-_0x400fee._0x320f4b)](_0x50f010=>_0x499672[_0x4bf5c1(0x189,0x49,0x127,0x285)](_0x50f010));function _0x502a15(_0x321b43,_0x27712d,_0x1e2d85,_0x2d35b4){return _0x29bb69(_0x321b43-_0x8f6e4a._0x534eaa,_0x321b43-_0x8f6e4a._0x46e090,_0x1e2d85,_0x2d35b4-_0x8f6e4a._0x1f1392);}function _0x4bf5c1(_0x1f496e,_0x4ecdc1,_0x111ef1,_0x365165){return _0x29bb69(_0x1f496e-_0x1c25af._0x457720,_0x1f496e-_0x1c25af._0x1f6a27,_0x4ecdc1,_0x365165-0x4c);}const _0x1068fe=_0x4c21fa['name']??'Lsp';return defineTool({'name':_0x1068fe,'description':_0x4bf5c1(_0x400fee._0x3358d9,_0x400fee._0x2159a1,0x215,_0x400fee._0x3cdf01),'inputSchema':{'type':'object','properties':{'operation':{'type':'string','enum':['goToDefinition',_0x4bf5c1(_0x400fee._0x51a978,0x296,_0x400fee._0x276bae,0x1f5),_0x502a15(0x67e,_0x400fee._0x2f7694,_0x400fee._0x475afb,0x70f),_0x502a15(0x632,_0x400fee._0x2156b3,_0x400fee._0x5210c4,0x6cd),_0x502a15(_0x400fee._0x38447b,0x40a,_0x400fee._0x4ce9dd,0x5ef),_0x4bf5c1(0xb8,_0x400fee._0xbd2fbe,0x1af,_0x400fee._0x569169),_0x502a15(0x604,0x56a,0x64f,_0x400fee._0x586b82),'incomingCalls',_0x502a15(_0x400fee._0xe77544,0x826,0x6c5,0x69d),'diagnostics']},'filePath':{'type':_0x502a15(_0x400fee._0x21b7e9,_0x400fee._0x24da32,0x6ad,0x466)},'line':{'type':_0x4bf5c1(0x27f,0x35e,_0x400fee._0x520500,_0x400fee._0x45c8b5)},'character':{'type':'number'},'query':{'type':_0x4bf5c1(0x194,_0x400fee._0x598883,_0x400fee._0x8366aa,_0x400fee._0x23a7fe)}},'required':[_0x502a15(_0x400fee._0x3acbeb,_0x400fee._0x31f4d5,_0x400fee._0x45b0be,0x60d),_0x502a15(_0x400fee._0x1a1b20,0x550,0x474,0x5b1),_0x502a15(_0x400fee._0x517d83,0x6c3,_0x400fee._0x21dda6,_0x400fee._0xc3a87b),_0x4bf5c1(_0x400fee._0x2584cc,0x36d,0x498,0x3b0)]},async *'execute'(_0x3e4d59){const _0x1bcf91=_0x4c21fa['lspService'];function _0x71ee33(_0x519330,_0x3a6db3,_0xc2876d,_0x28325e){return _0x4bf5c1(_0x519330- -_0x5678fe._0x43b73b,_0xc2876d,_0xc2876d-0x49,_0x28325e-_0x5678fe._0x14b187);}if(!_0x1bcf91)throw new ToolExecutionError(_0x71ee33(0xa4,_0x402f21._0x11e9df,_0x402f21._0x248abb,0x10e));if(!_0x1bcf91[_0x71ee33(-0x6a,_0x402f21._0x525115,-0x149,0x82)]())throw new ToolExecutionError(_0x285197(_0x402f21._0x2dba9f,_0x402f21._0x3861c7,0x6b6,0x585));const _0x565086=_0x3e4d59[_0x285197(_0x402f21._0x501aa9,0x59f,_0x402f21._0x11ed15,_0x402f21._0x34362c)];validatePosition(_0x3e4d59[_0x71ee33(_0x402f21._0x6a054,0x62,0x33,_0x402f21._0x4f2666)],_0x3e4d59['character']);if(_0x565086==='workspaceSymbol'){if(!_0x3e4d59[_0x71ee33(_0x402f21._0x1f5038,_0x402f21._0x2da065,0x30,_0x402f21._0x490712)]?.[_0x285197(_0x402f21._0x4385d7,0x4d6,_0x402f21._0x2b561c,_0x402f21._0xec530c)]())throw new ToolExecutionError(_0x285197(_0x402f21._0x3fe7ad,_0x402f21._0x18eebe,_0x402f21._0x3d7b3c,_0x402f21._0x2ab099));const _0x41abde=await _0x1bcf91[_0x71ee33(_0x402f21._0x452970,_0x402f21._0x299cbd,0xcf,-_0x402f21._0x2dcc06)](_0x3e4d59['query'][_0x71ee33(-0x5a,-_0x402f21._0x501a9c,-0xce,-_0x402f21._0x474efd)]());return yield createToolOutput(formatSymbols(_0x41abde),{'operation':_0x565086,'query':_0x3e4d59[_0x71ee33(0xf9,0x4f,0x1bc,_0x402f21._0x238031)],'symbols':_0x41abde}),void 0x0;}const _0x49353a=resolveAllowedPath(_0x4698ae,_0x558947,_0x3e4d59['filePath']);await assertFile(_0x49353a);if(!await _0x1bcf91[_0x71ee33(_0x402f21._0x65b3ca,_0x402f21._0x214975,0x137,0x111)](_0x49353a))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3e4d59['filePath'],{'filePath':_0x3e4d59['filePath']});function _0x285197(_0x1a4a5c,_0x325f6e,_0x56c1d9,_0xba6f72){return _0x4bf5c1(_0xba6f72-0x406,_0x56c1d9,_0x56c1d9-_0x259819._0x391612,_0xba6f72-0x10d);}await _0x1bcf91['touchFile'](_0x49353a,!![]);const _0x487861={'file':_0x49353a,'line':_0x3e4d59[_0x71ee33(0xd6,_0x402f21._0x2f894c,0x1e1,0x111)]-0x1,'character':_0x3e4d59[_0x71ee33(_0x402f21._0x326e07,0x246,0x149,_0x402f21._0x4c50b4)]-0x1};switch(_0x565086){case'hover':{const _0x15a19a=await _0x1bcf91[_0x285197(0x720,_0x402f21._0x24fc16,0x771,0x683)](_0x487861);return yield createToolOutput(formatHover(_0x15a19a),{'operation':_0x565086,'filePath':_0x49353a,'hover':_0x15a19a}),void 0x0;}case _0x71ee33(0x9d,_0x402f21._0x4c24a2,0xba,0xa5):{const _0x3180a8=await _0x1bcf91['diagnosticsForFile'](_0x49353a);return yield createToolOutput(formatDiagnostics(_0x3180a8),{'operation':_0x565086,'filePath':_0x49353a,'diagnostics':_0x3180a8}),void 0x0;}case _0x71ee33(_0x402f21._0x414604,-0x38,-_0x402f21._0x4c47cc,0x103):{const _0x592760=await _0x1bcf91[_0x71ee33(_0x402f21._0x1e0699,_0x402f21._0x35391f,0x2b6,_0x402f21._0x4fdfb9)](_0x487861);return yield createToolOutput(formatLocations(_0x592760),{'operation':_0x565086,'filePath':_0x49353a,'locations':_0x592760}),void 0x0;}case _0x71ee33(0x14e,_0x402f21._0x20050d,_0x402f21._0x51daae,0x27b):{const _0x52b095=await _0x1bcf91[_0x285197(_0x402f21._0x44b885,_0x402f21._0x56e00d,0x7c0,0x754)](_0x487861);return yield createToolOutput(formatLocations(_0x52b095),{'operation':_0x565086,'filePath':_0x49353a,'locations':_0x52b095}),void 0x0;}case'goToImplementation':{const _0x53e70b=await _0x1bcf91[_0x285197(0x67d,0x803,_0x402f21._0x2e5733,0x70a)](_0x487861);return yield createToolOutput(formatLocations(_0x53e70b),{'operation':_0x565086,'filePath':_0x49353a,'locations':_0x53e70b}),void 0x0;}case _0x71ee33(0x10a,0x19d,_0x402f21._0x218d88,_0x402f21._0xaa7ba8):{const _0xa7c8d8=await _0x1bcf91['documentSymbol'](_0x49353a);return yield createToolOutput(formatSymbols(_0xa7c8d8),{'operation':_0x565086,'filePath':_0x49353a,'symbols':_0xa7c8d8}),void 0x0;}case _0x71ee33(0xdc,0x19e,_0x402f21._0x1b2029,_0x402f21._0x1aac15):{const _0x4b0b5d=await _0x1bcf91['prepareCallHierarchy'](_0x487861);return yield createToolOutput(formatSymbols(_0x4b0b5d),{'operation':_0x565086,'filePath':_0x49353a,'symbols':toStructured(_0x4b0b5d)}),void 0x0;}case'incomingCalls':{const _0x1869c4=await _0x1bcf91[_0x71ee33(-0x4f,-_0x402f21._0xb61aaa,-_0x402f21._0x4a8701,-0x90)](_0x487861);return yield createToolOutput(formatIncomingCalls(_0x1869c4),{'operation':_0x565086,'filePath':_0x49353a,'calls':toStructured(_0x1869c4)}),void 0x0;}case _0x71ee33(0x1b7,0x1f1,_0x402f21._0x2cb641,_0x402f21._0x1b50aa):{const _0xea6921=await _0x1bcf91[_0x71ee33(0x1b7,0x145,0x205,_0x402f21._0x1b50aa)](_0x487861);return yield createToolOutput(formatOutgoingCalls(_0xea6921),{'operation':_0x565086,'filePath':_0x49353a,'calls':toStructured(_0xea6921)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x406012,readFile as _0x8d1d0,writeFile as _0x4bb16a}from'fs/promises';import{join as _0x3700c6}from'path';function sanitizeStorageKey(_0x4185e9){const _0x4b84cd={_0x2ad219:0x640,_0x57aeee:0x6a9,_0x5df7f0:0x583,_0x22034c:0x56a,_0x439037:0x545},_0x1ede07={_0x4f09de:0x172,_0x53458a:0xe5},_0x323de6={_0x36625c:0x481};function _0x582525(_0xd2a4df,_0x4c48ee,_0x5e0b17,_0x2e039f){return _0x567203(_0x4c48ee,_0x4c48ee-0xaf,_0x5e0b17-_0x323de6._0x36625c,_0x2e039f-0x1da);}function _0x11d141(_0x46d5fb,_0x1eb810,_0x299253,_0x16f58e){return _0x567203(_0x46d5fb,_0x1eb810-_0x1ede07._0x4f09de,_0x299253-0x385,_0x16f58e-_0x1ede07._0x53458a);}return _0x4185e9[_0x582525(_0x4b84cd._0x2ad219,_0x4b84cd._0x57aeee,0x56a,_0x4b84cd._0x5df7f0)](/[^a-zA-Z0-9_]+/g,'_')[_0x582525(0x574,0x4ad,_0x4b84cd._0x22034c,0x45b)](/^_+|_+$/g,'')||_0x582525(0x48b,0x675,_0x4b84cd._0x439037,0x487);}function storagePath(_0x1e3516){const _0x50e2d0={_0x2ff3fd:0x19c,_0x36644f:0x260,_0x3de85a:0x40c,_0x3f6f3f:0x562,_0x41bc99:0x456,_0x5d9dc5:0x3d4,_0x1702e4:0x1fd,_0x238af8:0x185},_0xa3cc37={_0x56cef9:0x5c,_0x277064:0x156},_0x1134a4={_0x9e98:0x13a,_0x51e65f:0xcb};function _0x301e0c(_0x5d1f51,_0x4170c8,_0x469128,_0x5bc80a){return _0x567203(_0x469128,_0x4170c8-_0x1134a4._0x9e98,_0x4170c8-0x3bd,_0x5bc80a-_0x1134a4._0x51e65f);}function _0x1cf5bd(_0x4bae6c,_0x451dea,_0x239ebf,_0x376919){return _0x567203(_0x239ebf,_0x451dea-0xd5,_0x4bae6c-_0xa3cc37._0x56cef9,_0x376919-_0xa3cc37._0x277064);}const _0x3409e5=sanitizeStorageKey(_0x1e3516[_0x1cf5bd(_0x50e2d0._0x2ff3fd,0x60,0x2ea,_0x50e2d0._0x36644f)][_0x301e0c(0x356,_0x50e2d0._0x3de85a,_0x50e2d0._0x3f6f3f,0x522)]?.[_0x301e0c(_0x50e2d0._0x41bc99,0x48d,_0x50e2d0._0x5d9dc5,0x5b8)]??_0x1e3516['serverName']);return _0x3700c6(_0x1e3516[_0x1cf5bd(_0x50e2d0._0x1702e4,0x324,_0x50e2d0._0x238af8,0x121)],_0x3409e5+'.json');}async function readStore(_0x628ea2){const _0x5403bb={_0x5572fd:0x3dd,_0x15a1a0:0x235,_0x2b6843:0x39b,_0x2f620b:0x3f5,_0x26004e:0x336,_0x3f6d7a:0x2de,_0x5df5c7:0x1da,_0xf3be01:0x461,_0x31d356:0x361},_0x1fd007={_0xefbe61:0x1c5,_0x290b4e:0x412,_0xe6c99c:0xdf},_0x98df24={_0x4ee358:0x63};function _0x905454(_0x3c09a0,_0xbf4c79,_0x26f1c4,_0xfad96e){return _0x29bb69(_0x3c09a0-_0x98df24._0x4ee358,_0xfad96e-0x37c,_0x26f1c4,_0xfad96e-0x162);}function _0x14c3c9(_0x425fa6,_0x32ed5f,_0x1ee2d5,_0x4606ec){return _0x29bb69(_0x425fa6-_0x1fd007._0xefbe61,_0x1ee2d5-_0x1fd007._0x290b4e,_0x425fa6,_0x4606ec-_0x1fd007._0xe6c99c);}try{return JSON[_0x905454(_0x5403bb._0x5572fd,_0x5403bb._0x15a1a0,_0x5403bb._0x2b6843,0x357)](await _0x8d1d0(_0x628ea2,_0x905454(0x377,_0x5403bb._0x2f620b,_0x5403bb._0x26004e,_0x5403bb._0x3f6d7a)));}catch(_0x25a251){if(_0x25a251 instanceof Error&&'code'in _0x25a251&&_0x25a251['code']===_0x905454(_0x5403bb._0x5df5c7,_0x5403bb._0xf3be01,_0x5403bb._0x31d356,0x315))return{};throw _0x25a251;}}async function writeStore(_0x146e58,_0x532ed9){const _0x59381d={_0x1f67a5:0x4c4},_0x10522d={_0x2ff38c:0x4c3,_0xd9b1c2:0x1a1},_0x37fcb1={_0x596fc2:0x11a,_0x53243c:0x57f,_0x2cb14a:0x9};function _0x5b5a17(_0x4b3b5c,_0x34a3ca,_0x4783ac,_0x396129){return _0x29bb69(_0x4b3b5c-_0x37fcb1._0x596fc2,_0x396129-_0x37fcb1._0x53243c,_0x4783ac,_0x396129-_0x37fcb1._0x2cb14a);}await _0x406012(_0x3700c6(_0x146e58,'..'),{'recursive':!![]});function _0x29c639(_0x11cdcb,_0x1277b0,_0x399c56,_0x5cd8e0){return _0x567203(_0x11cdcb,_0x1277b0-0x81,_0x1277b0-_0x10522d._0x2ff38c,_0x5cd8e0-_0x10522d._0xd9b1c2);}await _0x4bb16a(_0x146e58,JSON[_0x5b5a17(0x54c,_0x59381d._0x1f67a5,0x317,0x426)](_0x532ed9,null,0x2),_0x29c639(0x591,0x559,0x542,0x5f3));}async function updateStore(_0x10aaa0,_0x7d9821){const _0x58bb97=await readStore(_0x10aaa0);_0x7d9821(_0x58bb97),await writeStore(_0x10aaa0,_0x58bb97);}function createMcpOAuthProvider(_0x3d4762){const _0x144e7a={_0xba9813:0x6ef,_0x4495de:0x22f,_0x1a6abd:0x28c,_0x2fc6c6:0x1b0,_0xcb7485:0x3e6,_0xea6ced:0x3fb,_0x4025d8:0x30a,_0x193a61:0x576,_0x39690d:0x35c,_0x46a15d:0x2d2,_0x776a46:0x203,_0xb677bf:0x345,_0xe2fe39:0x49c,_0x39eeab:0x3b8},_0x1d6aa6={_0x2adc1e:0x3b7,_0x1a6a5b:0x360},_0x51a475={_0x27f92a:0x14d,_0x3e9656:0x1dc,_0x318404:0xf,_0x288016:0x2ad,_0x2bc2ec:0x156,_0x3a88af:0x349,_0x14ffe2:0x4b3,_0x1b3c1c:0x45b,_0x1c7ced:0x36c,_0x3f2de5:0x382,_0x1f9b35:0x26d,_0x49f35b:0x333,_0x507bee:0x30c,_0x111c64:0x326,_0x3eee2e:0xcf,_0x599f76:0xbd,_0x259ad3:0x3a1,_0x2acd50:0x4e9,_0x21176c:0x480,_0x2a4856:0x3d9,_0x108299:0x1dc,_0x3023e4:0x32,_0x3f7304:0xa5,_0x513534:0x30,_0x2611c3:0x86,_0x3c70a4:0x3d0,_0x48de16:0x444,_0x556031:0x4f7},_0x4ed6fb={_0x4e93d5:0x337,_0x5a9fd2:0x4c9},_0x534b56={_0x26700a:0x2b,_0x37f49f:0x124,_0x34db71:0x41},_0x477f04={_0x1cd0c2:0x6b9,_0x355ecd:0x762},_0x541779={_0x3d15bd:0x4bb,_0x1de317:0x4aa},_0xe1311={_0xfc0c30:0x687,_0x4fa323:0x687},_0x35f8f7={_0x5c4eae:0xf3,_0x3beaff:0x126},_0x290cfc={_0x1a876b:0x125},_0x51529f={_0x4ff50e:0x64,_0xb90f76:0x186},_0x3c22be={_0x59f00a:0x469},_0x15543f=storagePath(_0x3d4762);function _0x44102e(_0x2e5b89,_0x336aea,_0x2384c8,_0x32e178){return _0x29bb69(_0x2e5b89-0x16e,_0x32e178-0x295,_0x2384c8,_0x32e178-0x4e);}function _0x2f560(_0x24d1bd,_0x460143,_0x36d34d,_0x3da7b1){return _0x567203(_0x36d34d,_0x460143-0x1c9,_0x3da7b1-_0x3c22be._0x59f00a,_0x3da7b1-0x12b);}const _0xba05de=_0x3d4762[_0x2f560(0x4bf,_0x144e7a._0xba9813,0x58c,0x5a9)][_0x44102e(0x24a,_0x144e7a._0x4495de,_0x144e7a._0x1a6abd,_0x144e7a._0x2fc6c6)]?.[_0x44102e(_0x144e7a._0xcb7485,_0x144e7a._0xea6ced,0x3cd,_0x144e7a._0x4025d8)]?.[_0x2f560(0x46c,0x5d6,_0x144e7a._0x193a61,0x597)]('\x20'),_0x250db2={'client_name':_0x44102e(0x1ff,0x3bd,_0x144e7a._0x39690d,0x272),'redirect_uris':[_0x3d4762['callbackUrl']],'grant_types':[_0x44102e(_0x144e7a._0x46a15d,0x11b,0x28b,_0x144e7a._0x776a46),'refresh_token'],'response_types':[_0x44102e(0x4e9,0x463,_0x144e7a._0xb677bf,0x3d1)],'token_endpoint_auth_method':_0x2f560(_0x144e7a._0xe2fe39,0x46e,0x48c,0x4fa),..._0xba05de?{'scope':_0xba05de}:{}};return{'clientMetadataUrl':_0x3d4762[_0x44102e(_0x144e7a._0x39eeab,0x3b1,0x2dd,0x2a1)]['oauth']?.['clientMetadataUrl'],get 'redirectUrl'(){function _0x44c7bc(_0x50a51e,_0x5b0589,_0x3d0c7b,_0x52a1b2){return _0x44102e(_0x50a51e-0xd6,_0x5b0589-_0x51529f._0x4ff50e,_0x52a1b2,_0x5b0589-_0x51529f._0xb90f76);}return _0x3d4762[_0x44c7bc(0x47a,0x39e,0x2b7,0x39c)];},get 'clientMetadata'(){return _0x250db2;},async 'state'(){const _0x63a8bc=await readStore(_0x15543f);if(_0x63a8bc['state'])return _0x63a8bc['state'];const _0x5583c5=randomUUID();return await updateStore(_0x15543f,_0x1719f8=>{_0x1719f8['state']=_0x5583c5;}),_0x5583c5;},async 'clientInformation'(){return(await readStore(_0x15543f))['clientInformation'];},async 'saveClientInformation'(_0x46857c){const _0x399311={_0xf0eba4:0x178};await updateStore(_0x15543f,_0x2c7173=>{const _0x208566={_0x5269a6:0x26c};function _0x223c1d(_0x1aaa8b,_0x2b7632,_0xee826d,_0xc41697){return _0x1e3a(_0xee826d- -_0x208566._0x5269a6,_0xc41697);}_0x2c7173[_0x223c1d(_0x399311._0xf0eba4,0x87,0x163,0x231)]=_0x46857c;});},async 'tokens'(){function _0x995cf2(_0x53efd3,_0x5e67e2,_0x3f1b17,_0x143547){return _0x2f560(_0x53efd3-_0x290cfc._0x1a876b,_0x5e67e2-0x1a6,_0x3f1b17,_0x53efd3- -0x55a);}return(await readStore(_0x15543f))[_0x995cf2(0xce,_0x35f8f7._0x5c4eae,_0x35f8f7._0x3beaff,0x18f)];},async 'saveTokens'(_0x3b8705){await updateStore(_0x15543f,_0x2c5c02=>{const _0xa9e769={_0x299914:0x2c9};function _0x3ec2cd(_0x4cf344,_0x278360,_0x3f04f8,_0x3300af){return _0x1e3a(_0x4cf344-_0xa9e769._0x299914,_0x3300af);}_0x2c5c02[_0x3ec2cd(_0xe1311._0xfc0c30,0x5e7,0x65c,_0xe1311._0x4fa323)]=_0x3b8705;});},async 'redirectToAuthorization'(_0x34bffc){const _0x5cb29c={_0x30ba62:0x198};function _0x1bdcb7(_0x497d71,_0x5b9873,_0x94c6c2,_0x1354c1){return _0x2f560(_0x497d71-0x88,_0x5b9873-_0x5cb29c._0x30ba62,_0x94c6c2,_0x497d71- -0x1c5);}await _0x3d4762[_0x1bdcb7(_0x541779._0x3d15bd,0x58b,0x3c8,_0x541779._0x1de317)](_0x34bffc);},async 'saveCodeVerifier'(_0x21c998){await updateStore(_0x15543f,_0x1bddb6=>{function _0x168ab1(_0x59ec11,_0x4747ea,_0x3b4e20,_0x358339){return _0x1e3a(_0x4747ea-0x2c3,_0x358339);}_0x1bddb6[_0x168ab1(_0x477f04._0x1cd0c2,0x6c8,_0x477f04._0x355ecd,0x815)]=_0x21c998;});},async 'codeVerifier'(){const _0x2628a2=(await readStore(_0x15543f))['codeVerifier'];function _0x3a375d(_0x2d1975,_0x3c6270,_0x30f201,_0x52baf1){return _0x2f560(_0x2d1975-_0x534b56._0x26700a,_0x3c6270-_0x534b56._0x37f49f,_0x2d1975,_0x52baf1- -_0x534b56._0x34db71);}if(!_0x2628a2)throw new Error(_0x3a375d(_0x4ed6fb._0x4e93d5,0x48b,_0x4ed6fb._0x5a9fd2,0x453));return _0x2628a2;},async 'invalidateCredentials'(_0x11a027){const _0x37fe66={_0x1166f0:0xe4};await updateStore(_0x15543f,_0x5c7143=>{const _0x2dea49={_0xa1d541:0x151};(_0x11a027===_0x568270(_0x51a475._0x27f92a,0xf9,_0x51a475._0x3e9656,_0x51a475._0x318404)||_0x11a027===_0x568270(_0x51a475._0x288016,_0x51a475._0x2bc2ec,_0x51a475._0x3a88af,0x251))&&(_0x5c7143[_0xabc67d(0x473,0x404,0x444,_0x51a475._0x14ffe2)]=void 0x0);function _0xabc67d(_0x52394f,_0x4c295f,_0x347df,_0x2765a8){return _0x1e3a(_0x2765a8-_0x37fe66._0x1166f0,_0x52394f);}function _0x568270(_0x12d5c4,_0x1a0ac9,_0x5a33ac,_0x582314){return _0x1e3a(_0x12d5c4- -_0x2dea49._0xa1d541,_0x5a33ac);}(_0x11a027===_0xabc67d(0x3d7,_0x51a475._0x1b3c1c,_0x51a475._0x1c7ced,_0x51a475._0x3f2de5)||_0x11a027==='tokens')&&(_0x5c7143[_0x568270(_0x51a475._0x1f9b35,_0x51a475._0x49f35b,_0x51a475._0x507bee,_0x51a475._0x111c64)]=void 0x0),(_0x11a027===_0x568270(0x14d,0x1b4,_0x51a475._0x3eee2e,_0x51a475._0x599f76)||_0x11a027===_0x568270(0xbf,-0x53,0x38,0x102))&&(_0x5c7143[_0xabc67d(0x423,0x4a5,_0x51a475._0x259ad3,_0x51a475._0x2acd50)]=void 0x0,_0x5c7143[_0xabc67d(_0x51a475._0x21176c,_0x51a475._0x2a4856,0x3e5,0x4b5)]=void 0x0),(_0x11a027===_0x568270(_0x51a475._0x27f92a,0x26,_0x51a475._0x108299,_0x51a475._0x3023e4)||_0x11a027===_0x568270(_0x51a475._0x3f7304,0x185,_0x51a475._0x513534,-_0x51a475._0x2611c3))&&(_0x5c7143[_0xabc67d(0x55b,_0x51a475._0x3c70a4,_0x51a475._0x48de16,_0x51a475._0x556031)]=void 0x0);});},async 'saveDiscoveryState'(_0x4c0765){await updateStore(_0x15543f,_0x8bb862=>{function _0xde55f4(_0x1e1763,_0x56ea7d,_0x4074a5,_0x37c422){return _0x1e3a(_0x4074a5- -0xe0,_0x56ea7d);}_0x8bb862[_0xde55f4(0x2ae,0x2eb,0x333,0x202)]=_0x4c0765;});},async 'discoveryState'(){const _0x4cc570={_0x22e97e:0x112,_0x5b4867:0x31d};function _0x564f12(_0x1c7369,_0x5607f4,_0x3ac202,_0x37ec77){return _0x2f560(_0x1c7369-_0x4cc570._0x22e97e,_0x5607f4-0xf8,_0x1c7369,_0x3ac202- -_0x4cc570._0x5b4867);}return(await readStore(_0x15543f))[_0x564f12(0x412,_0x1d6aa6._0x2adc1e,_0x1d6aa6._0x1a6a5b,0x47b)];}};}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(_0x28949a,_0x20c360){const _0x85ede6={_0xc63b0f:0x9c,_0x1debba:0x1b7,_0x4ba84f:0xf1},_0x3628c4={_0xefe0b2:0x130,_0x5e6b00:0x520,_0x3b2775:0xfc},_0x20e638=_0x4dafdc=>_0x4dafdc[_0x48f518(0x1f0,0x29b,0x309,0x309)](/[^a-zA-Z0-9_]+/g,'_')[_0x48f518(0x2e0,0x29b,0x3b3,0x1fc)](/^_+|_+$/g,'');function _0x48f518(_0x932604,_0xf1205,_0x24dc40,_0x312558){return _0x29bb69(_0x932604-0x10e,_0xf1205-0x2e6,_0x312558,_0x312558-0x19c);}function _0x54a7d8(_0x376f31,_0x2ee45b,_0x7688f1,_0x19eb83){return _0x567203(_0x7688f1,_0x2ee45b-_0x3628c4._0xefe0b2,_0x2ee45b-_0x3628c4._0x5e6b00,_0x19eb83-_0x3628c4._0x3b2775);}return _0x48f518(_0x85ede6._0xc63b0f,_0x85ede6._0x1debba,_0x85ede6._0x4ba84f,0x212)+_0x20e638(_0x28949a)+'_'+_0x20e638(_0x20c360);}function isObject(_0x41f723){const _0x3ebc45={_0x4af872:0x339,_0x3f3f39:0x599},_0x32d0a1={_0x58c756:0x2d8},_0x17bf68={_0x166dce:0x11c,_0x4459f1:0x55d};function _0xf94976(_0x50e5c9,_0x14332b,_0x1a199a,_0x39b0e4){return _0x567203(_0x1a199a,_0x14332b-_0x17bf68._0x166dce,_0x14332b-_0x17bf68._0x4459f1,_0x39b0e4-0x115);}function _0x44c1f1(_0x36b1c0,_0x39174a,_0x555e54,_0x3b6172){return _0x567203(_0x555e54,_0x39174a-0xb4,_0x36b1c0-_0x32d0a1._0x58c756,_0x3b6172-0x163);}return typeof _0x41f723===_0xf94976(0x7a7,0x775,0x837,0x641)&&_0x41f723!==null&&!Array[_0x44c1f1(0x449,0x420,_0x3ebc45._0x4af872,_0x3ebc45._0x3f3f39)](_0x41f723);}function toSupportedSchema(_0xb394e0){const _0x6bedda={_0x5ca100:0x10e,_0x1761e5:0x2a,_0x487bee:0x23b,_0xf18b64:0xf3,_0x6d6401:0xbd,_0x18de31:0x94,_0x2e5c65:0x45,_0x33ac37:0xf5,_0x2f0098:0xc4,_0x3b6466:0x149,_0x4ee8a4:0x132,_0x5828c5:0xfc,_0x543eaf:0x263,_0x59820b:0x1e6,_0x157997:0x10b,_0x15d28b:0xcc,_0x4b24de:0x38,_0xf07426:0x68,_0x5a4236:0x222,_0x95125b:0x3e,_0xd6893:0x115,_0x52688b:0x17c,_0x599dc3:0x1b3,_0x349a83:0x32,_0x22a715:0x52,_0x2f1994:0xa4},_0x532694={_0x51fdcf:0x92};if(!isObject(_0xb394e0))return void 0x0;if(_0xb394e0[_0x5ca514(-0x1bf,-_0x6bedda._0x5ca100,_0x6bedda._0x1761e5,-_0x6bedda._0x487bee)]===_0x3401de(0x5e,_0x6bedda._0xf18b64,-_0x6bedda._0x6d6401,0x6b))return{'type':'string'};if(_0xb394e0[_0x5ca514(-_0x6bedda._0x18de31,-0x10e,-0x1b1,-0x1ee)]===_0x3401de(0x149,0x197,0x104,0x228)||_0xb394e0[_0x3401de(0x65,-_0x6bedda._0x2e5c65,_0x6bedda._0x33ac37,0xe0)]===_0x3401de(_0x6bedda._0x2f0098,-0x52,0x1,0xa1))return{'type':_0x3401de(_0x6bedda._0x3b6466,_0x6bedda._0x4ee8a4,_0x6bedda._0x5828c5,0x27e)};if(_0xb394e0[_0x5ca514(-_0x6bedda._0x543eaf,-0x10e,-_0x6bedda._0x59820b,-0x12a)]===_0x5ca514(-0x81,-_0x6bedda._0x157997,-_0x6bedda._0x15d28b,-_0x6bedda._0x4b24de))return{'type':_0x3401de(_0x6bedda._0xf07426,0x116,-0xa8,0x15a)};function _0x3401de(_0x1d3fde,_0x251305,_0x4b1663,_0x567f0d){return _0x29bb69(_0x1d3fde-0x6b,_0x1d3fde-0xe1,_0x4b1663,_0x567f0d-0x2c);}function _0x5ca514(_0x3e44d5,_0x35c983,_0x304a54,_0x5ec7bd){return _0x29bb69(_0x3e44d5-0xef,_0x35c983- -_0x532694._0x51fdcf,_0x304a54,_0x5ec7bd-0x1e7);}if(_0xb394e0['type']===_0x5ca514(-0x7b,-0x9d,-0x126,-0x6a))return{'type':_0x3401de(0xd6,_0x6bedda._0x5a4236,0x141,-_0x6bedda._0x95125b),'items':toSupportedSchema(_0xb394e0[_0x5ca514(-0x182,-0x181,-0x223,-0x4f)])??{'type':_0x5ca514(0xb,-_0x6bedda._0xd6893,-0xe2,-_0x6bedda._0x52688b)}};if(_0xb394e0[_0x5ca514(-0x1a2,-0x10e,-_0x6bedda._0x599dc3,_0x6bedda._0x349a83)]===_0x5ca514(0xaf,_0x6bedda._0x22a715,0xf1,_0x6bedda._0x2f1994))return toNuvinToolSchema(_0xb394e0);return void 0x0;}function toNuvinToolSchema(_0x49a12a){const _0x4fe8e9={_0x175a09:0x5d1,_0x36b251:0x461,_0x5da708:0x543,_0x4d1c66:0x734,_0x555bb9:0x69a,_0x1a49d5:0x363,_0x1b1d85:0x470,_0x1a682c:0x6a6,_0x8ea043:0x614,_0x5c8004:0x776,_0x28a21c:0x872,_0x531f84:0x721,_0x2ccc7e:0x7c1,_0x234040:0x537,_0x3467ba:0x43b,_0x3a4d62:0x546,_0x21878c:0x3f6,_0x4ab9ea:0x471,_0x404b85:0x67e,_0x3659ba:0x676},_0x156c24={_0x35597a:0xd7,_0x510294:0x51c,_0x5814d7:0x2d},_0x4159fc={_0x51be7c:0x14d,_0xb822a5:0x1a3};if(!isObject(_0x49a12a)||_0x49a12a[_0x1a8115(_0x4fe8e9._0x175a09,_0x4fe8e9._0x36b251,_0x4fe8e9._0x5da708,0x4c2)]!==_0x483a74(_0x4fe8e9._0x4d1c66,_0x4fe8e9._0x555bb9,0x722,0x778))return{'type':_0x483a74(0x734,0x6c5,0x678,0x71e),'properties':{}};const _0x3198d9={};function _0x1a8115(_0x38027d,_0x416490,_0x41c8c2,_0x17fd9b){return _0x567203(_0x17fd9b,_0x416490-_0x4159fc._0x51be7c,_0x41c8c2-0x48b,_0x17fd9b-_0x4159fc._0xb822a5);}function _0x483a74(_0x32a1be,_0x14ae2a,_0x30590b,_0x462188){return _0x567203(_0x30590b,_0x14ae2a-_0x156c24._0x35597a,_0x32a1be-_0x156c24._0x510294,_0x462188-_0x156c24._0x5814d7);}const _0x159c22=isObject(_0x49a12a[_0x1a8115(0x4b8,_0x4fe8e9._0x1a49d5,_0x4fe8e9._0x1b1d85,0x43c)])?_0x49a12a['properties']:{};for(const [_0x1caf00,_0x5849e3]of Object[_0x483a74(_0x4fe8e9._0x1a682c,_0x4fe8e9._0x8ea043,0x6d1,0x7f4)](_0x159c22)){const _0x17ffab=toSupportedSchema(_0x5849e3);if(_0x17ffab)_0x3198d9[_0x1caf00]=_0x17ffab;}const _0x4ec0f3=Array['isArray'](_0x49a12a['required'])?_0x49a12a[_0x483a74(_0x4fe8e9._0x5c8004,_0x4fe8e9._0x28a21c,_0x4fe8e9._0x531f84,_0x4fe8e9._0x2ccc7e)][_0x483a74(_0x4fe8e9._0x234040,0x514,0x492,_0x4fe8e9._0x3467ba)](_0x587810=>typeof _0x587810===_0x1a8115(0x49c,0x4be,0x53c,0x60b)):void 0x0;return _0x4ec0f3?.[_0x1a8115(_0x4fe8e9._0x3a4d62,_0x4fe8e9._0x21878c,_0x4fe8e9._0x4ab9ea,0x3cc)]?{'type':_0x483a74(0x734,0x83d,_0x4fe8e9._0x404b85,_0x4fe8e9._0x3659ba),'properties':_0x3198d9,'required':_0x4ec0f3}:{'type':'object','properties':_0x3198d9};}function isJsonObject(_0x2d6fa2){return typeof _0x2d6fa2==='object'&&_0x2d6fa2!==null&&!Array['isArray'](_0x2d6fa2);}function formatMcpContent(_0x4ca263){const _0x5eb59d={_0x2f3d4a:0x759,_0x584586:0x630,_0x2c5479:0x577,_0x1d2e70:0x61c},_0x2e8335={_0x19145c:0x1c,_0x8e08e:0x69},_0x3a2169={_0x18af73:0x6b},_0x3497f8={_0x3776b3:0x3e6,_0x48bb41:0x2cb,_0x52d9c3:0x455,_0x340efb:0x33c,_0x1d2a35:0x301,_0x336b50:0x2b1,_0x26a343:0x2f3,_0x38ab2a:0x200,_0x2df43b:0x41b,_0x5cc22b:0xaf},_0x17823b={_0x489dd1:0x120},_0x444918={_0x32dacf:0x42e},_0x5875ee=Array['isArray'](_0x4ca263[_0x128c62(_0x5eb59d._0x2f3d4a,0x61e,0x523,0x4d7)])?_0x4ca263['content']:[],_0x3dd382=_0x5875ee['map'](_0x3679b1=>{if(!isObject(_0x3679b1))return'';function _0x5153df(_0x58acc9,_0x2d1b2c,_0x5a47f0,_0x27d133){return _0x128c62(_0x58acc9-0x1de,_0x58acc9- -_0x444918._0x32dacf,_0x27d133,_0x27d133-0x1eb);}function _0x45e6ca(_0x112871,_0x475de8,_0x370099,_0x119878){return _0x128c62(_0x112871-0x1b8,_0x112871- -0x1f0,_0x475de8,_0x119878-_0x17823b._0x489dd1);}if(_0x3679b1[_0x45e6ca(0x3ca,_0x3497f8._0x3776b3,0x4b3,_0x3497f8._0x48bb41)]===_0x45e6ca(0x531,_0x3497f8._0x52d9c3,0x3e5,0x469)&&typeof _0x3679b1[_0x5153df(0x2f3,0x3b1,0x2fe,_0x3497f8._0x340efb)]===_0x45e6ca(0x3c3,_0x3497f8._0x1d2a35,0x46d,_0x3497f8._0x336b50))return _0x3679b1[_0x5153df(_0x3497f8._0x26a343,_0x3497f8._0x38ab2a,0x19d,_0x3497f8._0x2df43b)];return JSON[_0x5153df(_0x3497f8._0x5cc22b,0x138,0x1c5,0x190)](_0x3679b1);})['filter'](_0x3b42d1=>_0x3b42d1['length']>0x0)[_0x128c62(0x6a5,_0x5eb59d._0x584586,0x635,_0x5eb59d._0x2c5479)]('\x0a');function _0x128c62(_0x27522d,_0xb9220f,_0x3e396b,_0x48c940){return _0x567203(_0x3e396b,_0xb9220f-_0x3a2169._0x18af73,_0xb9220f-0x502,_0x48c940-0x15);}if(_0x3dd382[_0x128c62(_0x5eb59d._0x1d2e70,0x4e8,0x593,0x457)]>0x0)return _0x3dd382;function _0x3fe2ed(_0x20842c,_0x4a4e12,_0x535604,_0x3921c2){return _0x567203(_0x20842c,_0x4a4e12-_0x2e8335._0x19145c,_0x535604- -0x44,_0x3921c2-_0x2e8335._0x8e08e);}return JSON['stringify'](_0x4ca263,null,0x2);}function createMcpTool(_0xd57e33){const _0x220003={_0x76ca21:0x90,_0xd7d61f:0x6c,_0x4ed877:0x9d,_0x578fab:0x1a8,_0x3cea63:0x3,_0x17d0bd:0xe5,_0x498b66:0x177,_0x22a548:0x16c,_0x3ef12e:0xf7,_0x288457:0x12e,_0x5e5ad3:0x241,_0x219799:0x2c2,_0x3ad038:0x35e,_0x13483a:0x340,_0x51b323:0x3,_0x3ba9fd:0x10f},_0x265a22={_0x5c4b14:0x198,_0x110079:0x23e,_0x4ffd72:0x28c,_0x27f166:0x1a4,_0x5725ef:0x102,_0x544e43:0x1a9,_0x42ba07:0xdd,_0x380544:0xb3,_0x291f36:0x1c8,_0x58193b:0xe9,_0x36f46b:0x305,_0x1d232e:0x1e9,_0x374a3e:0x30a,_0x35f1fe:0x83,_0x1427fc:0x1ac,_0x5cdbb4:0x90,_0x2cefde:0x1a4,_0x210c7e:0x2d0},_0x166fc0={_0x502736:0x162,_0x235987:0x5e},_0x3d63b3={_0x385b8e:0x198,_0x537a98:0x169};function _0x5a2962(_0x27a44e,_0x4a60ae,_0x54d95b,_0x33b769){return _0x567203(_0x54d95b,_0x4a60ae-0x5a,_0x4a60ae- -0x6b,_0x33b769-0xd5);}function _0xd400ee(_0x318ce1,_0x561a05,_0x2ba6cf,_0x10ace3){return _0x29bb69(_0x318ce1-_0x3d63b3._0x385b8e,_0x561a05-_0x3d63b3._0x537a98,_0x2ba6cf,_0x10ace3-0x1c4);}const _0x542423=createMcpToolName(_0xd57e33[_0xd400ee(_0x220003._0x76ca21,0x24,0xad,_0x220003._0xd7d61f)],_0xd57e33[_0x5a2962(-0xf5,-_0x220003._0x4ed877,-_0x220003._0x578fab,0xf)]['name']);return defineTool({'name':_0x542423,'description':_0xd57e33[_0xd400ee(-0x113,_0x220003._0x3cea63,0x38,-_0x220003._0x17d0bd)][_0xd400ee(0x161,0x5f,-0x84,_0x220003._0x498b66)]??_0x5a2962(_0x220003._0x22a548,0x8d,_0x220003._0x3ef12e,0x148)+_0xd57e33[_0xd400ee(_0x220003._0x288457,0x3,0x2e,0x137)][_0x5a2962(_0x220003._0x5e5ad3,0x1ab,0x1f4,_0x220003._0x219799)]+_0xd400ee(_0x220003._0x3ad038,0x2a8,0x250,_0x220003._0x13483a)+_0xd57e33[_0x5a2962(-0x19b,-0x7c,-0x1b7,-0xa2)],'inputSchema':toNuvinToolSchema(_0xd57e33[_0xd400ee(0x16,_0x220003._0x51b323,-_0x220003._0x3ba9fd,0x111)]['inputSchema']),async *'execute'(_0x4141ea){const _0x5456ea={_0xe64056:0x5d,_0xb8b8dd:0x14c,_0x16e4d9:0x11d};function _0x1f7802(_0x44c4b1,_0x3a58b0,_0x32b55f,_0x198237){return _0xd400ee(_0x44c4b1-_0x166fc0._0x502736,_0x44c4b1- -0xa7,_0x3a58b0,_0x198237-_0x166fc0._0x235987);}const _0x1abcd7=await _0xd57e33[_0x5a96a9(0x3c,0x11b,0x48,_0x265a22._0x5c4b14)][_0x1f7802(0x202,_0x265a22._0x110079,0x25a,_0x265a22._0x4ffd72)]({'name':_0xd57e33['tool'][_0x1f7802(_0x265a22._0x27f166,0x19f,0x29e,0x100)],'arguments':isJsonObject(_0x4141ea)?_0x4141ea:{}});if(_0x1abcd7[_0x5a96a9(-0x142,-_0x265a22._0x5725ef,-_0x265a22._0x544e43,-_0x265a22._0x42ba07)])throw new ToolExecutionError(formatMcpContent(_0x1abcd7),{'serverName':_0xd57e33[_0x5a96a9(-0x1a9,-_0x265a22._0x380544,-_0x265a22._0x291f36,-0x100)],'toolName':_0xd57e33[_0x5a96a9(-_0x265a22._0x58193b,-_0x265a22._0x36f46b,-_0x265a22._0x1d232e,-_0x265a22._0x374a3e)]['name']});yield createToolOutput(formatMcpContent(_0x1abcd7),{'serverName':_0xd57e33[_0x1f7802(-_0x265a22._0x35f1fe,-0x14c,-_0x265a22._0x1427fc,0xb1)],'toolName':_0xd57e33[_0x1f7802(-0xa4,-0x63,0x35,-_0x265a22._0x5cdbb4)][_0x1f7802(_0x265a22._0x2cefde,0x257,0x297,_0x265a22._0x210c7e)],'result':_0x1abcd7});function _0x5a96a9(_0x45a65d,_0x474555,_0x4db2c8,_0x18d312){return _0x5a2962(_0x45a65d-_0x5456ea._0xe64056,_0x4db2c8- -_0x5456ea._0xb8b8dd,_0x45a65d,_0x18d312-_0x5456ea._0x16e4d9);}return void 0x0;}});}function resolvePrefix(_0x34869a,_0x324d0e){const _0x29b561={_0x21f1b7:0x3d8,_0x331b75:0x49d},_0x3907e1={_0x2e1fa1:0x1c2,_0x43a2e0:0x38f,_0x506d83:0x1a5};function _0x4849ba(_0x27bfb8,_0x5bf143,_0x561b9b,_0x2bd30a){return _0x567203(_0x561b9b,_0x5bf143-_0x3907e1._0x2e1fa1,_0x2bd30a-_0x3907e1._0x43a2e0,_0x2bd30a-_0x3907e1._0x506d83);}return _0x324d0e[_0x4849ba(_0x29b561._0x21f1b7,0x546,0x3fc,_0x29b561._0x331b75)]??_0x34869a;}function buildMcpHttpHeaders(_0x3ef493){const _0x23e81b={_0x160867:0x308,_0x344277:0x409,_0x12cc27:0x2ec,_0x41e744:0x3f5,_0x4847f4:0x52a,_0x38604d:0x218,_0xcc141b:0x2ef,_0x262019:0x121,_0x15a6d5:0x1c1,_0x3d0771:0x4b8,_0x46f02e:0x3d3,_0x1221fe:0x3e4,_0x97d5f4:0x1e2,_0xfebc61:0x24c,_0x56e54c:0x330,_0x5a8f50:0x2ad,_0x370678:0x1cc,_0x2611d9:0x1ac,_0x5d136a:0x2f,_0x4aee16:0x1a5},_0x443b1c={_0x1eaccb:0xed,_0x40765c:0x63},_0x3c6795={_0x6b5683:0x93};function _0x1b001f(_0x55633f,_0x21e83f,_0x514095,_0x48eb11){return _0x567203(_0x55633f,_0x21e83f-0x1c9,_0x48eb11-0x16e,_0x48eb11-_0x3c6795._0x6b5683);}function _0x56989c(_0x54b5e1,_0x4b7e52,_0x36d1e7,_0x2acfb1){return _0x567203(_0x2acfb1,_0x4b7e52-_0x443b1c._0x1eaccb,_0x54b5e1-0x160,_0x2acfb1-_0x443b1c._0x40765c);}const _0x50602b={..._0x3ef493[_0x56989c(_0x23e81b._0x160867,_0x23e81b._0x344277,_0x23e81b._0x12cc27,_0x23e81b._0x41e744)]??{}};return _0x3ef493[_0x1b001f(0x2b5,0x454,_0x23e81b._0x4847f4,0x3d3)]?.[_0x56989c(_0x23e81b._0x38604d,0xe3,_0x23e81b._0xcc141b,_0x23e81b._0x262019)]===_0x1b001f(0x143,_0x23e81b._0x15a6d5,0x1a8,0x26c)&&_0x3ef493[_0x1b001f(0x410,0x34f,_0x23e81b._0x3d0771,_0x23e81b._0x46f02e)][_0x1b001f(_0x23e81b._0x1221fe,_0x23e81b._0x97d5f4,_0x23e81b._0xfebc61,_0x23e81b._0x56e54c)]&&_0x50602b[_0x56989c(0x1c3,_0x23e81b._0x5a8f50,_0x23e81b._0x370678,0xc5)]===void 0x0&&(_0x50602b['Authorization']=_0x56989c(_0x23e81b._0x2611d9,0x64,0x106,0x2c2)+_0x3ef493[_0x56989c(0x3c5,0x4a0,0x4fa,0x36f)][_0x1b001f(0x3b7,0x34d,0x3b8,_0x23e81b._0x56e54c)]),Object['keys'](_0x50602b)[_0x56989c(0x146,0x7b,_0x23e81b._0x5d136a,_0x23e81b._0x4aee16)]>0x0?_0x50602b:void 0x0;}function getErrorMessage(_0x7bf6b1){const _0x1c88b8={_0x2f1c68:0x380,_0x5dc607:0x1e4},_0x5e310e={_0x14832b:0xc9,_0x5ca148:0x296,_0x1c3b2b:0x84};function _0x32926a(_0x574291,_0x136ae9,_0x558d68,_0x263e5b){return _0x29bb69(_0x574291-_0x5e310e._0x14832b,_0x574291-_0x5e310e._0x5ca148,_0x263e5b,_0x263e5b-_0x5e310e._0x1c3b2b);}return _0x7bf6b1 instanceof Error?_0x7bf6b1[_0x32926a(0x30c,0x3fb,_0x1c88b8._0x2f1c68,_0x1c88b8._0x5dc607)]:String(_0x7bf6b1);}function isUnauthorizedError(_0x4cc8b3){const _0x2da9d8={_0xf62070:0x38,_0x2d817c:0x15b,_0x4a879b:0x79e,_0x30727f:0x769,_0x47a99e:0x57c,_0x1739bd:0x8c,_0x27db23:0x194},_0x27db5a={_0x5e3737:0xd5,_0x13c1ad:0x177},_0x55c7e2={_0x31d357:0x570};function _0x44495b(_0x2ad901,_0x4d262f,_0x47dd24,_0x3b5c38){return _0x29bb69(_0x2ad901-0xf7,_0x4d262f-_0x55c7e2._0x31d357,_0x47dd24,_0x3b5c38-0x1ac);}function _0x4f9e36(_0x365234,_0x498991,_0x5bf876,_0x52db0e){return _0x29bb69(_0x365234-_0x27db5a._0x5e3737,_0x498991-_0x27db5a._0x13c1ad,_0x5bf876,_0x52db0e-0x11d);}return _0x4cc8b3 instanceof Error&&_0x4cc8b3[_0x4f9e36(_0x2da9d8._0xf62070,0x18e,0x196,_0x2da9d8._0x2d817c)][_0x44495b(_0x2da9d8._0x4a879b,0x652,_0x2da9d8._0x30727f,_0x2da9d8._0x47a99e)]===_0x4f9e36(-0xa7,0x50,_0x2da9d8._0x1739bd,_0x2da9d8._0x27db23);}async function connectMcpServer(_0x3848db,_0x30faa2,_0x1c7879){const _0x5dc2e9={_0x1d0aff:0x692,_0x12e4a1:0x65a,_0x28f24a:0x745,_0x3235f7:0x659,_0x4deb7e:0x7c7,_0x17ff8b:0x494,_0x41610d:0x636,_0x391976:0x691,_0x67929d:0x77f,_0x47f034:0x5bf,_0x430aef:0x61e,_0xdcb628:0x6ab,_0x30246a:0x65e,_0x3fc655:0x734,_0xaaa691:0x577,_0x4f1bf1:0x541,_0x1cf444:0x681,_0x481613:0x5bb,_0x257b86:0x4d8,_0xc081a9:0x52d,_0xdd6c57:0x43f,_0x2e784f:0x50a,_0x2c61a7:0x4d9,_0x497e96:0x697,_0x49b8cd:0x8f6,_0xf90923:0x908,_0x452f8d:0x60c,_0x279f9d:0x5a3,_0x15155b:0x6f8,_0xc4b63c:0x64a,_0x24a437:0x74c,_0x4ce954:0x681,_0x43e81a:0x4ec,_0x3ad46f:0x416,_0x1fd57b:0x82d,_0x293040:0x73c,_0x1574eb:0x6f5,_0x7ea3bf:0x7e6,_0x4728cb:0x691,_0x42061a:0x54f,_0x2f8698:0x61b,_0x91782e:0x5d5,_0x11a3bb:0x61d,_0x45efb4:0x642,_0x196c7e:0x65e,_0x19d9b3:0x48c,_0x392b0f:0x3a2,_0x15a8eb:0x64e,_0x5f1853:0x70b,_0x5337c6:0x431,_0x2d8de5:0x585,_0x58401c:0x71f,_0x48d500:0x50f,_0x18752b:0x4c7,_0x168eb5:0x61c},_0x44a219={_0x20b320:0x532,_0x116824:0x367,_0x86f070:0x42a},_0x35ae62={_0x1dc9b3:0x437,_0xd7117e:0x45,_0x3cc7d3:0x135},_0x16ad86={_0x54d0aa:0x8d,_0x460cfd:0x37},_0x5650b9={_0x5ba542:0xc9,_0x569cf4:0x64a},_0x3de438={_0xf21018:0x8,_0x20b9bb:0x158},_0x214a27={_0x595fef:0x100,_0x5aa29d:0x1ef,_0x55ad99:0x253,_0x2d8ae3:0x190},_0x2867c7={_0x55cb92:0x4cb},_0x338887={_0x574a3e:0x11d,_0x6cda07:0x554,_0x8373d3:0x197};function _0x23c435(_0x2d620b,_0x376bb9,_0x565397,_0x19a7ba){return _0x567203(_0x376bb9,_0x376bb9-_0x338887._0x574a3e,_0x19a7ba-_0x338887._0x6cda07,_0x19a7ba-_0x338887._0x8373d3);}const _0x228037=new Client({'name':'nuvin','version':_0x23c435(_0x5dc2e9._0x1d0aff,_0x5dc2e9._0x12e4a1,_0x5dc2e9._0x28f24a,_0x5dc2e9._0x3235f7)});_0x228037['onerror']=_0x5e925a=>{const _0x10a07b={_0x25b6a4:0x19e,_0x101519:0xb3,_0xe72245:0x53e};function _0x3a99f0(_0x352437,_0x4860c4,_0x3cdd8d,_0x236b8c){return _0x23c435(_0x352437-0x65,_0x3cdd8d,_0x3cdd8d-0x16d,_0x236b8c- -_0x2867c7._0x55cb92);}function _0x1bfcbd(_0x578bca,_0x2a77c6,_0x29d075,_0x2677c2){return _0x23c435(_0x578bca-_0x10a07b._0x25b6a4,_0x2677c2,_0x29d075-_0x10a07b._0x101519,_0x29d075- -_0x10a07b._0xe72245);}console[_0x1bfcbd(-0x6e,-_0x214a27._0x595fef,0x29,-0x7e)](_0x3a99f0(_0x214a27._0x5aa29d,0x251,_0x214a27._0x55ad99,_0x214a27._0x2d8ae3)+_0x3848db+']\x20transport\x20error:',_0x5e925a['message']);};function _0x3dd92b(_0x301852,_0x453af6,_0x88eef,_0x2bfbe7){return _0x29bb69(_0x301852-_0x3de438._0xf21018,_0x453af6-0x5bd,_0x88eef,_0x2bfbe7-_0x3de438._0x20b9bb);}if(_0x30faa2[_0x23c435(0x6b6,_0x5dc2e9._0x4deb7e,0x585,0x6be)]===_0x3dd92b(0x441,_0x5dc2e9._0x17ff8b,0x4f8,0x52b)||_0x30faa2[_0x3dd92b(_0x5dc2e9._0x41610d,_0x5dc2e9._0x391976,_0x5dc2e9._0x67929d,0x666)]){if(!_0x30faa2[_0x3dd92b(_0x5dc2e9._0x47f034,_0x5dc2e9._0x391976,_0x5dc2e9._0x430aef,_0x5dc2e9._0xdcb628)])throw new Error(_0x23c435(0x628,0x77a,0x715,_0x5dc2e9._0x30246a)+_0x3848db+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x30faa2[_0x3dd92b(_0x5dc2e9._0x3fc655,0x6ee,0x6b7,0x5ab)]?.[_0x3dd92b(_0x5dc2e9._0xaaa691,_0x5dc2e9._0x4f1bf1,_0x5dc2e9._0x1cf444,0x40e)]===_0x23c435(0x49f,_0x5dc2e9._0x481613,0x47e,0x5a3)&&!_0x1c7879?.[_0x3dd92b(0x525,_0x5dc2e9._0x257b86,0x5c5,_0x5dc2e9._0xc081a9)])throw new Error(_0x3dd92b(_0x5dc2e9._0xdd6c57,0x593,0x619,0x49f)+_0x3848db+_0x3dd92b(0x471,_0x5dc2e9._0x2e784f,_0x5dc2e9._0x2c61a7,0x57e));const _0x143b3a=buildMcpHttpHeaders(_0x30faa2),_0x6ef2b6=_0x30faa2[_0x23c435(_0x5dc2e9._0x497e96,_0x5dc2e9._0x49b8cd,_0x5dc2e9._0xf90923,0x7b9)]?.[_0x23c435(0x66b,0x605,0x4f0,_0x5dc2e9._0x452f8d)]==='oauth'&&_0x1c7879?.[_0x23c435(0x66c,0x552,0x457,_0x5dc2e9._0x279f9d)]?createMcpOAuthProvider({'serverName':_0x3848db,'callbackUrl':_0x1c7879[_0x23c435(0x6fa,_0x5dc2e9._0x15155b,_0x5dc2e9._0xc4b63c,_0x5dc2e9._0x279f9d)][_0x23c435(_0x5dc2e9._0x24a437,_0x5dc2e9._0x4ce954,_0x5dc2e9._0x43e81a,0x60b)],'storageDir':_0x1c7879[_0x3dd92b(0x44c,0x4d8,0x558,_0x5dc2e9._0x3ad46f)][_0x23c435(_0x5dc2e9._0x1fd57b,0x5bd,_0x5dc2e9._0x293040,_0x5dc2e9._0x1574eb)],'config':_0x30faa2[_0x23c435(0x7b7,0x881,0x7bf,0x7b9)],'onRedirect':_0xdff116=>_0x1c7879['oauth']?.[_0x3dd92b(0x666,0x6a0,0x591,0x5b3)](_0x3848db,_0xdff116)}):void 0x0,_0xfd867=new StreamableHTTPClientTransport(new URL(_0x30faa2[_0x3dd92b(_0x5dc2e9._0x7ea3bf,_0x5dc2e9._0x4728cb,_0x5dc2e9._0x42061a,_0x5dc2e9._0x2f8698)]),{'authProvider':_0x6ef2b6,'requestInit':_0x143b3a?{'headers':_0x143b3a}:void 0x0});await _0x228037[_0x3dd92b(0x3e0,0x521,0x504,0x438)](_0xfd867);}else{if(!_0x30faa2['command'])throw new Error(_0x23c435(_0x5dc2e9._0x91782e,_0x5dc2e9._0x11a3bb,_0x5dc2e9._0x45efb4,_0x5dc2e9._0x196c7e)+_0x3848db+_0x3dd92b(0x61f,0x4e4,_0x5dc2e9._0x19d9b3,_0x5dc2e9._0x392b0f));const _0x34207f=new StdioClientTransport({'command':_0x30faa2[_0x3dd92b(_0x5dc2e9._0x15a8eb,0x5be,0x713,_0x5dc2e9._0x5f1853)],'args':_0x30faa2[_0x3dd92b(0x3e1,0x4f6,_0x5dc2e9._0x5337c6,_0x5dc2e9._0x2d8de5)]??[],'env':_0x30faa2[_0x23c435(0x6a3,0x72e,_0x5dc2e9._0x58401c,0x628)],'stderr':_0x23c435(0x5cc,0x794,_0x5dc2e9._0x48d500,0x646)});await _0x228037[_0x23c435(_0x5dc2e9._0x18752b,_0x5dc2e9._0x2f8698,_0x5dc2e9._0x168eb5,0x5ec)](_0x34207f);}return{async 'listTools'(){function _0x7592c0(_0x2a9259,_0x1bf960,_0xaa9d7,_0x3dd801){return _0x3dd92b(_0x2a9259-_0x5650b9._0x5ba542,_0x2a9259- -_0x5650b9._0x569cf4,_0x1bf960,_0x3dd801-0x1b1);}return await _0x228037[_0x7592c0(-_0x16ad86._0x54d0aa,-0xa0,-0x17c,_0x16ad86._0x460cfd)]();},async 'callTool'(_0x35bb3e){const _0x2e322a={_0x3b0a37:0x2cf},_0x51a37f={_0x58cf31:0xa2,_0x318067:0x4ba};function _0x1ec9e5(_0xafca46,_0x2c0c0e,_0x271d55,_0x32ee90){return _0x23c435(_0xafca46-_0x51a37f._0x58cf31,_0x271d55,_0x271d55-0x23,_0x32ee90- -_0x51a37f._0x318067);}function _0x194aac(_0x27a12b,_0x3ea419,_0x5f4daa,_0xbc7ad2){return _0x23c435(_0x27a12b-0xc8,_0x5f4daa,_0x5f4daa-0x1a3,_0x3ea419- -_0x2e322a._0x3b0a37);}return await _0x228037[_0x194aac(_0x35ae62._0x1dc9b3,0x473,0x3d1,0x519)]({'method':_0x1ec9e5(-_0x35ae62._0xd7117e,0x48,_0x35ae62._0x3cc7d3,0xfc),'params':_0x35bb3e},CallToolResultSchema);},async 'close'(){function _0x20c99b(_0x52b675,_0x14818b,_0x456b5d,_0x429c1b){return _0x23c435(_0x52b675-0x74,_0x456b5d,_0x456b5d-0xae,_0x429c1b- -0x1ee);}await _0x228037[_0x20c99b(_0x44a219._0x20b320,_0x44a219._0x116824,_0x44a219._0x86f070,0x48d)]();}};}async function createMcpToolsFromServers(_0x3c0d16){const _0x37040c={_0xe99c27:0x4b8,_0xb9b2b6:0x3f6,_0x5cc6a0:0x2d0,_0x33ce43:0x513,_0x3ef58c:0x612,_0x11e08a:0x677,_0x233548:0x454,_0x4bbb2d:0x573,_0x3fd273:0x45f,_0x2499cd:0x36d,_0x4e5f0a:0x2ae,_0x18a9e6:0x5c6,_0x35bcf1:0x6b1,_0x3c260c:0x50d,_0x342f11:0x4c7,_0x2e267b:0x49a,_0x1fd194:0x492,_0x5cd5d8:0x4f8,_0x7f164d:0x439,_0x775ec8:0x5dc,_0x31bade:0x674,_0x40330c:0x716,_0x3e1730:0x590,_0xf8f6e1:0x4f7,_0x63ded2:0x66a,_0x438363:0x6aa,_0x47a6dc:0x5e3,_0x13d62a:0x49b},_0x1d8011={_0x166ebd:0x367,_0x2fb934:0x35f,_0x37510a:0x273},_0x1b9ecb={_0x4d7f41:0x2b4,_0x13dc9e:0x151},_0x4639fd={_0x4f9178:0x8b,_0x839c8b:0x5bc,_0x12ee5e:0x28},_0x2441ec={_0x548891:0x492,_0x5543ee:0x142};function _0x384107(_0x4d3186,_0x4f082b,_0x2c2200,_0x5975b9){return _0x29bb69(_0x4d3186-0xc8,_0x4f082b-_0x2441ec._0x548891,_0x2c2200,_0x5975b9-_0x2441ec._0x5543ee);}const _0x63ee7c=_0x3c0d16[_0x384107(_0x37040c._0xe99c27,_0x37040c._0xb9b2b6,_0x37040c._0x5cc6a0,_0x37040c._0x33ce43)]??connectMcpServer,_0x3380ff=[];function _0xddbd15(_0x3a8f25,_0x326d7e,_0x2a917a,_0x5e53d1){return _0x29bb69(_0x3a8f25-_0x4639fd._0x4f9178,_0x326d7e-_0x4639fd._0x839c8b,_0x5e53d1,_0x5e53d1-_0x4639fd._0x12ee5e);}const _0x3e7165={},_0x1f23c6=[];for(const [_0x15faa3,_0x47df3e]of Object[_0xddbd15(0x4d1,_0x37040c._0x3ef58c,0x5b5,_0x37040c._0x11e08a)](_0x3c0d16[_0x384107(0x39c,_0x37040c._0x233548,_0x37040c._0x4bbb2d,0x40c)]??{})){if(_0x47df3e[_0x384107(0x59e,_0x37040c._0x3fd273,0x395,0x43c)]===![]){_0x3e7165[_0x15faa3]={'status':_0x384107(0x3b0,_0x37040c._0x2499cd,_0x37040c._0x4e5f0a,0x24e)};continue;}try{const _0x31b970=await _0x63ee7c(_0x15faa3,_0x47df3e,_0x3c0d16[_0xddbd15(_0x37040c._0x18a9e6,0x67b,0x63c,_0x37040c._0x35bcf1)]);_0x3380ff[_0x384107(_0x37040c._0x3c260c,0x54a,_0x37040c._0x342f11,_0x37040c._0x2e267b)](_0x31b970);const _0x5ea7f9=await _0x31b970[_0x384107(0x3dd,_0x37040c._0x1fd194,_0x37040c._0x5cd5d8,0x53f)]();let _0x5b9072=0x0;for(const _0x4f863c of _0x5ea7f9['tools']){const _0x5a7eda=_0x3c0d16[_0xddbd15(_0x37040c._0x7f164d,0x56c,0x617,_0x37040c._0x775ec8)]?.[_0x15faa3]?.[_0x4f863c['name']];if(_0x5a7eda===![])continue;_0x5b9072+=0x1,_0x1f23c6[_0xddbd15(0x544,_0x37040c._0x31bade,_0x37040c._0x40330c,_0x37040c._0x3e1730)](createMcpTool({'serverName':resolvePrefix(_0x15faa3,_0x47df3e),'tool':_0x4f863c,'client':_0x31b970}));}_0x3e7165[_0x15faa3]={'status':_0xddbd15(0x505,_0x37040c._0xf8f6e1,0x3df,0x448),'toolCount':_0x5b9072};}catch(_0x1df333){_0x3e7165[_0x15faa3]=isUnauthorizedError(_0x1df333)?{'status':_0xddbd15(0x580,_0x37040c._0x63ded2,0x682,_0x37040c._0x438363),'message':getErrorMessage(_0x1df333)}:{'status':_0xddbd15(_0x37040c._0x47a6dc,_0x37040c._0x13d62a,0x3fc,0x4d0),'message':getErrorMessage(_0x1df333)};}}return{'tools':_0x1f23c6,'servers':_0x3e7165,async 'close'(){const _0x4157e8={_0x4f699c:0x9e,_0x2d2508:0x118,_0x482d91:0x174};function _0x5d6054(_0xa07462,_0x3612a5,_0xa3c661,_0x466c9b){return _0x384107(_0xa07462-_0x4157e8._0x4f699c,_0xa07462- -_0x4157e8._0x2d2508,_0x3612a5,_0x466c9b-_0x4157e8._0x482d91);}function _0x4a6fe(_0x229ddf,_0x3b78c2,_0x4e34a3,_0x379364){return _0xddbd15(_0x229ddf-0xab,_0x379364- -_0x1b9ecb._0x4d7f41,_0x4e34a3-_0x1b9ecb._0x13dc9e,_0x229ddf);}await Promise[_0x4a6fe(0x15d,_0x1d8011._0x166ebd,_0x1d8011._0x2fb934,_0x1d8011._0x37510a)](_0x3380ff['map'](_0x3b4a9e=>_0x3b4a9e[_0x4a6fe(0x1ab,0x3fe,0x2da,0x2fb)]()));}};}function getCommand(_0x5d089a){const _0x494d3f={_0x30a660:0x5b2,_0x5b61eb:0x621,_0x5e4b35:0x6e6,_0x3741ad:0xbb,_0x5033ac:0x151,_0x38111d:0x1fb,_0x4180e2:0x13f,_0xafba15:0xf5,_0x23caf3:0x11b},_0x1a091f={_0x16e06f:0x5aa,_0x242f51:0x5c},_0x1ca5f2={_0x33dd0e:0x8,_0x1c4c28:0x57};function _0x1155c9(_0x13d02e,_0x321057,_0xd2c891,_0x389cd0){return _0x29bb69(_0x13d02e-_0x1ca5f2._0x33dd0e,_0xd2c891-0x13e,_0x13d02e,_0x389cd0-_0x1ca5f2._0x1c4c28);}if(_0x5d089a&&typeof _0x5d089a===_0x467495(0x6dd,0x7bf,0x713,0x68e)&&!Array[_0x467495(_0x494d3f._0x30a660,_0x494d3f._0x5b61eb,_0x494d3f._0x5e4b35,0x5e7)](_0x5d089a)&&typeof _0x5d089a['command']===_0x1155c9(0x39,0x15d,_0x494d3f._0x3741ad,0x1b2))return _0x5d089a[_0x1155c9(_0x494d3f._0x5033ac,_0x494d3f._0x38111d,_0x494d3f._0x4180e2,0x15e)];function _0x467495(_0x3c34fe,_0x6f55be,_0x899dce,_0x458ae1){return _0x29bb69(_0x3c34fe-0x12b,_0x458ae1-_0x1a091f._0x16e06f,_0x899dce,_0x458ae1-_0x1a091f._0x242f51);}return _0x1155c9(0x3d,-0x4c,_0x494d3f._0xafba15,_0x494d3f._0x23caf3);}var MOCK_WORKSPACE_LISTING=[_0x567203(0x13e,0x12a,0x25f,0x341),'docs/plans/2026-04-16-mock-agent-loop-implementation.md',_0x29bb69(-0x18,-0xa6,-0xb1,0xb),_0x29bb69(-0x150,-0xc6,0x3d,-0xac),'src/agent/agent.ts',_0x29bb69(-0x19,-0xbd,-0x9c,-0x116),_0x567203(0x178,0x7e,0x54,0xe7),_0x567203(0x124,0x9e,0xb0,0x28),_0x567203(0x161,0x239,0x16c,0x259),_0x567203(0x1cd,0x72,0xee,0xa4),_0x29bb69(-0xdf,-0xb0,-0x1dc,-0xc3),_0x567203(0x17f,-0x1e,0x110,0x16),'src/shared/types.ts',_0x29bb69(-0x1e1,-0xd0,-0x18e,-0x222),_0x567203(0x19b,0x161,0x228,0x32c),'src/formats/provider-adapters.test.ts','src/agent/turn-engine.test.ts'][_0x567203(0x74,0x71,0x12e,0x1ed)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x29bb69(-0xd6,-0x10c,-0x22,-0x1fb),'description':_0x567203(0x15b,0xf9,0xbd,-0x3b),'input_schema':{'type':'object','properties':{'command':{'type':_0x567203(0x2f,0x120,0xb1,0x79)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x105fcb){return{'output':_0x105fcb,'structured':{'value':_0x105fcb}};}function createUnknownToolResult(_0x26de3b){const _0x3cdf67={_0x2c89d2:0x485,_0x53abe4:0x2a3,_0xdb4ad0:0x326},_0x92550e={_0x1ae764:0xda,_0x2f236b:0x169,_0x3d2954:0x110},_0x3d8f2d={_0x536650:0x323};function _0x162acf(_0xb14842,_0x439ae9,_0x1e70a0,_0x5c12f7){return _0x29bb69(_0xb14842-0x15d,_0xb14842-_0x3d8f2d._0x536650,_0x5c12f7,_0x5c12f7-0x43);}function _0x30d74c(_0x3dd11d,_0x48a84f,_0x28ba97,_0x288349){return _0x567203(_0x288349,_0x48a84f-_0x92550e._0x1ae764,_0x48a84f-_0x92550e._0x2f236b,_0x288349-_0x92550e._0x3d2954);}return{'callId':_0x26de3b['id'],'toolName':_0x26de3b[_0x162acf(0x405,0x335,0x40e,_0x3cdf67._0x2c89d2)],'status':'error','output':_0x30d74c(_0x3cdf67._0x53abe4,0x24f,0x2b9,_0x3cdf67._0xdb4ad0)+_0x26de3b[_0x162acf(0x405,0x353,0x30b,0x484)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x4456a2,_0x5e30e3){const _0x1721a3={_0x14b81b:0x24,_0xfe9f96:0x52},_0x2c8469={_0x1665bd:0x14d},_0x35c61c={_0x53c4fc:0x19a,_0x41fc5e:0x194};function _0x5129f7(_0x30f543,_0x1523ac,_0x18ede5,_0x35f653){return _0x567203(_0x30f543,_0x1523ac-_0x35c61c._0x53c4fc,_0x35f653- -_0x35c61c._0x41fc5e,_0x35f653-0x75);}function _0x2a77f4(_0x430948,_0x4edef3,_0x2e230b,_0x5e7da8){return _0x29bb69(_0x430948-_0x2c8469._0x1665bd,_0x430948-0x53a,_0x2e230b,_0x5e7da8-0x25);}return{'callId':_0x4456a2['id'],'toolName':_0x4456a2[_0x5129f7(-_0x1721a3._0x14b81b,0x14f,-_0x1721a3._0xfe9f96,0x82)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x4456a2[_0x5129f7(-0x103,-0x251,-0x38,-0x17a)]),'exitCode':0x0},'chunks':[_0x5e30e3],'meta':createMeta()};}function createMockToolRuntime(){const _0x2e5463={_0x27f759:0x6dd,_0xe24613:0x670,_0x5c4c0a:0x4d2,_0x1d1d58:0x506},_0x25c450={_0x36ce67:0x32,_0x1a0376:0xc1,_0x3ee321:0x25a,_0x2f6071:0xaf,_0x378af8:0x15c,_0x8a3599:0x68,_0x19fd4d:0xe6},_0x1b99ad=async(_0x2e6562,_0x2719b0)=>{const _0x1e1448={_0x1cbb4c:0x30d};function _0x4fe6f8(_0x5668c6,_0x24c85a,_0x458ed4,_0x2548cd){return _0x1e3a(_0x2548cd- -_0x1e1448._0x1cbb4c,_0x458ed4);}function _0x2763a0(_0x296680,_0x651a95,_0x340f80,_0x57e5ab){return _0x1e3a(_0x651a95- -0x3dc,_0x296680);}if(_0x2e6562[_0x4fe6f8(_0x25c450._0x36ce67,_0x25c450._0x1a0376,_0x25c450._0x3ee321,0x108)]!==_0x4fe6f8(-_0x25c450._0x2f6071,-_0x25c450._0x378af8,_0x25c450._0x8a3599,-_0x25c450._0x19fd4d))return createUnknownToolResult(_0x2e6562);const _0x10bc6f=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x2e6562,_0x10bc6f);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xcbfefd,_0x388698){function _0x1e9726(_0xb6e715,_0x46d53a,_0x2b4dfe,_0x349da9){return _0x1e3a(_0x349da9-0x3d2,_0xb6e715);}function _0x49f191(_0x42e4b7,_0x545dbd,_0x102ee6,_0x2ab2d0){return _0x1e3a(_0x545dbd- -0x32d,_0x2ab2d0);}return await Promise[_0x1e9726(_0x2e5463._0x27f759,0x553,0x5bc,_0x2e5463._0xe24613)](_0xcbfefd[_0x1e9726(_0x2e5463._0x5c4c0a,0x6c0,_0x2e5463._0x1d1d58,0x5c9)](async _0x546944=>{return await _0x1b99ad(_0x546944,_0x388698);}));},async 'execute'(_0x2fb40e,_0x5e799b){return await _0x1b99ad(_0x2fb40e,_0x5e799b);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x56582d={_0x4d2a1f:0x3ec,_0x4c5860:0x3e2,_0x32297c:0x492},_0x2c1232={_0x3e7304:0x1d8,_0x5e218a:0x3a2,_0x4c5f7b:0x147};function _0x249da2(_0x25061d,_0xa7db6e,_0x4e51bb,_0x3b4fed){return _0x29bb69(_0x25061d-_0x2c1232._0x3e7304,_0x4e51bb-_0x2c1232._0x5e218a,_0x25061d,_0x3b4fed-_0x2c1232._0x4c5f7b);}return delegatedRunCounter+=0x1,_0x249da2(0x38b,_0x56582d._0x4d2a1f,_0x56582d._0x4c5860,_0x56582d._0x32297c)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x155f14,_0x1c4fb9){const _0x439980={_0x44f411:0x441,_0x5ab1f2:0x356},_0x189ef7={_0x30c196:0xcf};function _0x1d9c04(_0x43b684,_0x16bd82,_0x1a610e,_0x1b0f0a){return _0x567203(_0x16bd82,_0x16bd82-0x12c,_0x1b0f0a-0x389,_0x1b0f0a-_0x189ef7._0x30c196);}return typeof _0x155f14===_0x1d9c04(_0x439980._0x44f411,0x330,0x48d,_0x439980._0x5ab1f2)?await _0x155f14(_0x1c4fb9):_0x155f14;}function getDelegatedAgentDefinition(_0x3fb83e,_0x461000){const _0x3128ba={_0x2a6f2c:0x81,_0x23056b:0x134},_0x55f710={_0x4e84ab:0x12b,_0x5e55af:0x1e5};function _0x21cc05(_0x2c5ec0,_0x384f68,_0xda4e80,_0x3eaf7e){return _0x29bb69(_0x2c5ec0-_0x55f710._0x4e84ab,_0x3eaf7e-0x11c,_0x2c5ec0,_0x3eaf7e-_0x55f710._0x5e55af);}return _0x3fb83e[_0x21cc05(0x3b,0x12a,_0x3128ba._0x2a6f2c,_0x3128ba._0x23056b)]?.[_0x461000];}function createRunSummary(_0x2d1d71){const _0x5a5fb1={_0x532ab4:0x3a4,_0xa9bbcd:0x1bc,_0x3ebceb:0x1b9,_0x4d6a0f:0x458,_0x5471fe:0x2ea,_0x2be574:0x399,_0x1bbd0e:0x26a,_0x2b28dd:0x415,_0x278554:0x2c4,_0x11c2de:0xd8,_0x411a2b:0xea,_0x35681b:0x27d,_0x1ba3b3:0x39d,_0x5a146b:0x1a5,_0x220588:0x3a7,_0x5baf49:0x295},_0x38fe41={_0x11860f:0x11,_0x3dfe2e:0x260},_0x210791={_0x20fde1:0x41,_0xe398f3:0xfe,_0x10c8c0:0x170};function _0x134fde(_0x1cd44f,_0xa6e93,_0x78f977,_0xacabf4){return _0x567203(_0xa6e93,_0xa6e93-_0x210791._0x20fde1,_0xacabf4-_0x210791._0xe398f3,_0xacabf4-_0x210791._0x10c8c0);}function _0x5d46a7(_0x4edb91,_0x5248ee,_0x28ef50,_0x1599de){return _0x29bb69(_0x4edb91-_0x38fe41._0x11860f,_0x1599de-_0x38fe41._0x3dfe2e,_0x5248ee,_0x1599de-0x153);}return{'runId':_0x2d1d71[_0x5d46a7(0x2aa,_0x5a5fb1._0x532ab4,0x268,0x281)],'agentId':_0x2d1d71['agentId'],'sessionId':_0x2d1d71[_0x134fde(_0x5a5fb1._0xa9bbcd,0x23e,_0x5a5fb1._0x3ebceb,0x11e)],'status':_0x2d1d71[_0x5d46a7(0x3cf,_0x5a5fb1._0x4d6a0f,_0x5a5fb1._0x5471fe,_0x5a5fb1._0x2be574)],'parentSessionId':_0x2d1d71[_0x5d46a7(_0x5a5fb1._0x1bbd0e,_0x5a5fb1._0x2b28dd,0x3ff,_0x5a5fb1._0x278554)],..._0x2d1d71['originToolCallId']!==void 0x0?{'originToolCallId':_0x2d1d71[_0x5d46a7(_0x5a5fb1._0x11c2de,0x13b,_0x5a5fb1._0x411a2b,0x1fd)]}:{},..._0x2d1d71[_0x134fde(_0x5a5fb1._0x35681b,_0x5a5fb1._0x1ba3b3,0x414,0x31c)]!==void 0x0?{'errorMessage':_0x2d1d71['errorMessage']}:{},..._0x2d1d71[_0x5d46a7(0x267,0x1e0,0x2a6,0x2c3)]?.[_0x5d46a7(0x1fe,0x243,0xd5,_0x5a5fb1._0x5a146b)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x2d1d71[_0x134fde(0x1c4,_0x5a5fb1._0x220588,0x2eb,_0x5a5fb1._0x5baf49)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x586a00,_0x2d2209){const _0x210198={_0x2f4be4:0x2d8,_0x1a44c5:0x3d1,_0x4723b1:0x325},_0x36e7ef={_0xc96ca0:0x164,_0x6ec77d:0x3e};function _0x4c9643(_0x5b5837,_0x31b35e,_0x384fa6,_0x3d9efc){return _0x29bb69(_0x5b5837-_0x36e7ef._0xc96ca0,_0x31b35e-0x2f9,_0x3d9efc,_0x3d9efc-_0x36e7ef._0x6ec77d);}const _0x2acf67=createRunSummary(_0x586a00),_0x42f988=_0x2acf67[_0x4c9643(0x3c7,_0x210198._0x2f4be4,_0x210198._0x1a44c5,_0x210198._0x4723b1)];return createToolOutput(typeof _0x42f988==='string'&&_0x42f988['length']>0x0?_0x42f988:_0x2d2209,_0x2acf67);}function getRunTerminalErrorMessage(_0x14fd7c){const _0x475b43={_0x5a4154:0xaf,_0x2cdcec:0x54,_0x4300b5:0x1ec,_0x5c8045:0x221,_0x368b38:0x21f,_0x32e9d7:0x235,_0x25a674:0x1b4,_0x347308:0x35a,_0x394e57:0x246,_0x2495bc:0x83,_0x12c23c:0x75,_0x5bcfd2:0x172,_0x4201cd:0x52,_0x1f0428:0xb6,_0x4642a0:0xbd,_0x2dfd30:0x4a},_0x34e0c3={_0x595738:0x15d,_0x43e60e:0x15c,_0x1d1daf:0x109};function _0x26dca6(_0x3eaf26,_0x2289a1,_0xbff07e,_0x2cdf38){return _0x567203(_0x2289a1,_0x2289a1-_0x34e0c3._0x595738,_0x2cdf38- -_0x34e0c3._0x43e60e,_0x2cdf38-_0x34e0c3._0x1d1daf);}const _0x5e6f9a=_0x14fd7c?.[_0x26dca6(-0x5,_0x475b43._0x5a4154,_0x475b43._0x2cdcec,0x76)][_0x54f371(_0x475b43._0x4300b5,0x26a,_0x475b43._0x5c8045,_0x475b43._0x368b38)]['at'](-0x1);if(_0x5e6f9a?.[_0x54f371(_0x475b43._0x32e9d7,_0x475b43._0x25a674,_0x475b43._0x347308,0x15c)]===_0x26dca6(-0x18f,-0x1da,-_0x475b43._0x394e57,-0x149)&&_0x5e6f9a[_0x54f371(0x16e,0x157,0xb3,_0x475b43._0x2495bc)][_0x26dca6(-0x163,-_0x475b43._0x12c23c,-0x95,-_0x475b43._0x5bcfd2)]()[_0x54f371(-_0x475b43._0x4201cd,0x101,-_0x475b43._0x1f0428,-0x35)]>0x0)return _0x5e6f9a[_0x26dca6(0x75,-0x5c,-_0x475b43._0x4642a0,_0x475b43._0x2dfd30)];function _0x54f371(_0x4ec1d0,_0x2ee124,_0x4b46ba,_0x20fec7){return _0x567203(_0x20fec7,_0x2ee124-0x1d3,_0x4ec1d0- -0x38,_0x20fec7-0x17d);}return void 0x0;}function formatAbortedRunMessage(_0x2af95b,_0x3f0d4d){const _0x3a3af3={_0x15958f:0x6b6,_0x1a1237:0x626,_0x30c4be:0x569,_0x5cb54d:0x4e8,_0x38ef40:0x713,_0x814c65:0x684,_0x1938e1:0x5fe},_0x5229ed={_0x39cc0c:0x70b},_0xf4f043={_0x69b618:0x6e};function _0x58ded1(_0x5f1c0b,_0x4284e1,_0x5a3c1a,_0x169a65){return _0x29bb69(_0x5f1c0b-_0xf4f043._0x69b618,_0x5a3c1a-0x6e5,_0x169a65,_0x169a65-0x103);}const _0x167311='Agent\x20run\x20'+_0x2af95b+_0x58ded1(_0x3a3af3._0x15958f,0x5f7,0x5eb,0x5f7);if(!_0x3f0d4d||_0x3f0d4d[_0x58ded1(_0x3a3af3._0x1a1237,_0x3a3af3._0x30c4be,0x59b,_0x3a3af3._0x5cb54d)]()['length']===0x0||_0x3f0d4d===_0x167311)return _0x167311;function _0x2e9b2b(_0x5d5dfa,_0x4e250b,_0x5322ee,_0x12ec0f){return _0x29bb69(_0x5d5dfa-0x3a,_0x5d5dfa-_0x5229ed._0x39cc0c,_0x4e250b,_0x12ec0f-0x181);}return _0x167311+_0x58ded1(_0x3a3af3._0x38ef40,_0x3a3af3._0x814c65,_0x3a3af3._0x1938e1,0x5ea)+_0x3f0d4d;}function createAssignTaskTool(_0x2598aa){const _0x1bf7b4={_0x4a90f0:0x61b,_0x49a499:0x582,_0x4b1413:0x5d8,_0x238303:0x5d6,_0x40007b:0x404,_0x2413c8:0x502,_0x43251b:0x5be,_0x395ea6:0x60e,_0x4a5965:0x502,_0x371a44:0x4a8,_0x5ca21e:0x524,_0x223150:0x13,_0x782c7d:0x98,_0x39852b:0x32,_0x3de846:0x625,_0x400aa1:0x4d3,_0x4e8f38:0x64e,_0x17be10:0x16e,_0x575104:0x11f,_0x366455:0x1,_0x1e46a4:0x52,_0x1df174:0x69,_0x4657b9:0xac,_0x4f93fe:0x92},_0x4f9d3b={_0x122e83:0x193,_0x190bd0:0x1f8,_0x3ab310:0xae,_0x56d09e:0x64,_0x162d7a:0x4,_0x3d7d9d:0xc5,_0x1849d9:0x6e,_0x50b738:0x24,_0x307099:0x12,_0x1b1eff:0xda,_0x30f759:0x67,_0x44e553:0x128,_0x51631d:0x150,_0x317c5e:0x51,_0x1d87f5:0xc6,_0x29ed43:0x14f,_0x55df5a:0x150,_0x17e835:0xd5,_0xfe83f:0xd0,_0x27672a:0x198,_0x31ba30:0x85,_0x25f0de:0x3e,_0x2c5549:0x64,_0x363e93:0xd8,_0x3888eb:0xd0,_0x53314d:0xf2,_0x340131:0x1b4,_0x38af1b:0x15,_0x57512a:0x11,_0x5cc57d:0x112,_0x191908:0x21,_0x801408:0x294,_0x15aa67:0x1f7,_0x16b013:0x21c,_0x390b21:0x28d,_0x932593:0x27,_0x4b9f94:0x10,_0x23dd87:0x2e0,_0x3b002c:0x2fa,_0x435417:0x1e9,_0x278212:0x178,_0xfc4553:0x14a,_0x5de380:0x5,_0x32c580:0xd1,_0x6398d0:0x11d,_0x8b2548:0x6a,_0x4050ab:0xd1,_0x493ff0:0x176,_0x350721:0x37,_0x28cb7a:0x33,_0x446e08:0xeb,_0x4ca014:0x2c,_0x367366:0x167,_0x4e0b2c:0x80,_0x5dbbda:0x6e,_0x54a9ad:0x8c,_0x3e6049:0x111,_0xd046b8:0x27f,_0x1bf429:0x1e2,_0x4e501e:0x6f,_0x435fbb:0x169,_0x3e30fe:0x48,_0x3e1df7:0x2c,_0x53385e:0xc,_0x4601ee:0x247,_0x5d5938:0x10e,_0x217f3c:0x276,_0x253cf4:0x19,_0x44b1ee:0x66,_0x1e86bd:0xbb,_0x44d63e:0xed},_0xfdbf9b={_0x5094a7:0x108},_0x4d973f={_0x162dba:0x15,_0x1c9200:0x163},_0x29616c={_0x116a73:0x16a,_0x3796fc:0x585,_0x40776c:0x16f};function _0x48a208(_0x516789,_0x26b176,_0x5d22d1,_0x16ce04){return _0x29bb69(_0x516789-_0x29616c._0x116a73,_0x516789-_0x29616c._0x3796fc,_0x16ce04,_0x16ce04-_0x29616c._0x40776c);}function _0x291ae1(_0x24a90b,_0x358a4c,_0x327dab,_0x5d0bb4){return _0x29bb69(_0x24a90b-0x119,_0x327dab- -_0x4d973f._0x162dba,_0x358a4c,_0x5d0bb4-_0x4d973f._0x1c9200);}return defineTool({'name':_0x48a208(_0x1bf7b4._0x4a90f0,0x4ed,_0x1bf7b4._0x49a499,_0x1bf7b4._0x4b1413),'description':_0x48a208(0x4f9,_0x1bf7b4._0x238303,0x616,_0x1bf7b4._0x40007b),'inputSchema':{'type':'object','properties':{'agentId':{'type':_0x48a208(_0x1bf7b4._0x2413c8,0x611,_0x1bf7b4._0x43251b,_0x1bf7b4._0x395ea6)},'description':{'type':_0x48a208(_0x1bf7b4._0x4a5965,0x479,0x588,0x531)},'nickname':{'type':_0x48a208(_0x1bf7b4._0x4a5965,_0x1bf7b4._0x371a44,0x402,_0x1bf7b4._0x5ca21e)},'task':{'type':_0x291ae1(_0x1bf7b4._0x223150,0x1a,-_0x1bf7b4._0x782c7d,_0x1bf7b4._0x39852b)}},'required':[_0x48a208(_0x1bf7b4._0x3de846,0x5fd,_0x1bf7b4._0x400aa1,_0x1bf7b4._0x4e8f38),_0x291ae1(-0x1e3,-_0x1bf7b4._0x17be10,-_0x1bf7b4._0x575104,_0x1bf7b4._0x366455),_0x291ae1(_0x1bf7b4._0x1e46a4,-_0x1bf7b4._0x1df174,_0x1bf7b4._0x4657b9,_0x1bf7b4._0x4f93fe)]},async *'execute'(_0x24d7ca,_0x5eb396){const _0x184691={_0x137352:0x580,_0x386da2:0x430,_0xa28652:0x2f3,_0x25d329:0x331,_0x43e364:0x1af,_0x2b38da:0x2ed,_0x10ba85:0x2f0,_0x33e6fa:0x38d,_0x325ab7:0x350,_0x251029:0x231,_0x5f1f57:0x253},_0x169997=createDelegatedRunId(),_0x445324={'agentId':_0x24d7ca[_0x4fa286(0x11c,0x1aa,_0x4f9d3b._0x122e83,_0x4f9d3b._0x190bd0)],'parentSessionId':_0x5eb396[_0xaabf85(_0x4f9d3b._0x3ab310,0xbb,-_0x4f9d3b._0x56d09e,_0x4f9d3b._0x162d7a)],'runId':_0x169997,..._0x5eb396[_0x4fa286(_0x4f9d3b._0x3d7d9d,-_0x4f9d3b._0x1849d9,-_0x4f9d3b._0x50b738,_0x4f9d3b._0x307099)]!==void 0x0?{'toolCallId':_0x5eb396[_0xaabf85(-_0x4f9d3b._0x1b1eff,-0x17c,-_0x4f9d3b._0x30f759,-_0x4f9d3b._0x44e553)]}:{}};function _0x4fa286(_0x4e444e,_0x4b23f8,_0x1888f9,_0x271945){return _0x291ae1(_0x4e444e-0x1ad,_0x4e444e,_0x1888f9-_0xfdbf9b._0x5094a7,_0x271945-0xa2);}const _0x2406bc=getDelegatedAgentDefinition(_0x2598aa,_0x24d7ca[_0xaabf85(0x147,0x169,_0x4f9d3b._0x51631d,0xa7)]);if(!_0x2406bc)throw new ToolExecutionError(_0xaabf85(-0x5b,-_0x4f9d3b._0x317c5e,-0x83,-_0x4f9d3b._0x1d87f5)+_0x24d7ca[_0xaabf85(0x123,_0x4f9d3b._0x29ed43,_0x4f9d3b._0x55df5a,_0x4f9d3b._0x17e835)],{'agentId':_0x24d7ca['agentId']});const _0x351371=new Agent(await resolveDelegatedAgentOptions(_0x2406bc,_0x445324));function _0xaabf85(_0x4c4c9e,_0x406ed6,_0x435749,_0x340171){return _0x291ae1(_0x4c4c9e-0xbf,_0x4c4c9e,_0x435749-0xc5,_0x340171-0x10c);}let _0xc6750d={'runId':_0x169997,'agentId':_0x24d7ca[_0xaabf85(_0x4f9d3b._0xfe83f,0x290,0x150,0x249)],'sessionId':_0x351371['sessionId'],'status':_0xaabf85(-_0x4f9d3b._0x27672a,-0x9e,-_0x4f9d3b._0x31ba30,-0x48),'parentSessionId':_0x5eb396[_0xaabf85(_0x4f9d3b._0x25f0de,-0x142,-_0x4f9d3b._0x2c5549,-_0x4f9d3b._0x363e93)],..._0x5eb396[_0xaabf85(0xac,-0x133,-0x67,-0xb6)]!==void 0x0?{'originToolCallId':_0x5eb396[_0xaabf85(_0x4f9d3b._0x3888eb,-0xbd,-0x67,0x60)]}:{}};const _0x4c0e71=new AbortController(),_0x37329d=addAbortListener(_0x5eb396['signal'],()=>{const _0x30262d={_0x5731e0:0x9f,_0x5c28ac:0x107},_0x1496ef={_0x4bec1a:0x1a7};function _0xe6788b(_0x5542af,_0x55df08,_0x5d7949,_0x4d79b9){return _0xaabf85(_0x5542af,_0x55df08-0x1c5,_0x55df08-0x264,_0x4d79b9-_0x1496ef._0x4bec1a);}function _0x54d266(_0x1a126e,_0x44650a,_0x3adc14,_0x4742a1){return _0xaabf85(_0x44650a,_0x44650a-_0x30262d._0x5731e0,_0x4742a1-0x336,_0x4742a1-_0x30262d._0x5c28ac);}_0x4c0e71[_0xe6788b(_0x184691._0x137352,_0x184691._0x386da2,_0x184691._0xa28652,_0x184691._0x25d329)](_0x5eb396[_0xe6788b(_0x184691._0x43e364,0x231,_0x184691._0x2b38da,_0x184691._0x10ba85)]?.[_0xe6788b(_0x184691._0x33e6fa,_0x184691._0x325ab7,_0x184691._0x251029,_0x184691._0x5f1f57)]);});yield createToolOutput('Started\x20agent\x20run\x20'+_0xc6750d[_0xaabf85(-0x23,_0x4f9d3b._0x53314d,0xd1,0xaf)]+'.',{'runId':_0xc6750d[_0x4fa286(0x54,_0x4f9d3b._0x340131,0x114,_0x4f9d3b._0x38af1b)],'agentId':_0xc6750d['agentId'],'sessionId':_0xc6750d[_0x4fa286(-_0x4f9d3b._0x57512a,-_0x4f9d3b._0x5cc57d,-_0x4f9d3b._0x191908,-0xfb)],'status':_0xc6750d[_0xaabf85(0x1b9,0xf9,0x1e9,0x243)]});try{const _0xfbabb6=await _0x351371[_0x4fa286(_0x4f9d3b._0x801408,_0x4f9d3b._0x15aa67,_0x4f9d3b._0x16b013,0x1c3)](_0x24d7ca[_0xaabf85(0x216,_0x4f9d3b._0x390b21,0x171,0x23b)],{'signal':_0x4c0e71[_0x4fa286(0xfb,_0x4f9d3b._0x932593,_0x4f9d3b._0x4b9f94,-0x12e)]});_0xc6750d={..._0xc6750d,'status':_0xfbabb6[_0x4fa286(_0x4f9d3b._0x23dd87,0x2bf,0x22c,0x300)],'result':_0xfbabb6};if(_0xfbabb6[_0xaabf85(_0x4f9d3b._0x3b002c,0x169,_0x4f9d3b._0x435417,_0x4f9d3b._0x278212)]!==_0x4fa286(0x32,0x294,0x177,0x160)){const _0x20dca4=getRunTerminalErrorMessage(_0xfbabb6),_0x37bb82=formatAbortedRunMessage(_0xc6750d[_0xaabf85(_0x4f9d3b._0xfc4553,_0x4f9d3b._0x5de380,_0x4f9d3b._0x32c580,_0x4f9d3b._0x6398d0)],_0x20dca4);throw new ToolExecutionError(_0x37bb82,{...createRunSummary(_0xc6750d),'aborted':!![],'errorMessage':_0x37bb82});}return createRunSummaryOutput(_0xc6750d,'Agent\x20run\x20'+_0xc6750d[_0xaabf85(0x27,-_0x4f9d3b._0x8b2548,_0x4f9d3b._0x4050ab,_0x4f9d3b._0x493ff0)]+_0x4fa286(_0x4f9d3b._0x350721,0x1b2,0x13f,0x10));}catch(_0x14cf13){if(_0x14cf13 instanceof ToolExecutionError)throw _0x14cf13;if(isAbortError(_0x14cf13)||_0x4c0e71[_0xaabf85(-0x20,-0x13e,-_0x4f9d3b._0x28cb7a,0xe9)][_0x4fa286(0x9b,_0x4f9d3b._0x446e08,-_0x4f9d3b._0x4ca014,-0x153)]||_0x5eb396[_0x4fa286(_0x4f9d3b._0x367366,-_0x4f9d3b._0x4e0b2c,0x10,-0x8d)][_0x4fa286(_0x4f9d3b._0x5dbbda,-0x3,-0x2c,_0x4f9d3b._0x54a9ad)]){const _0x2e3508=getRunTerminalErrorMessage(_0xc6750d[_0x4fa286(_0x4f9d3b._0x3e6049,0x243,0x156,_0x4f9d3b._0xd046b8)])??(_0x14cf13 instanceof Error?_0x14cf13[_0x4fa286(_0x4f9d3b._0x1bf429,_0x4f9d3b._0x4e501e,_0x4f9d3b._0x435fbb,0xe9)]:String(_0x14cf13)),_0x11d123=formatAbortedRunMessage(_0xc6750d[_0xaabf85(0x1f3,-0x75,0xd1,0x0)],_0x2e3508);_0xc6750d={..._0xc6750d,'status':_0x4fa286(_0x4f9d3b._0x3e30fe,-0x41,-_0x4f9d3b._0x3e1df7,-_0x4f9d3b._0x53385e),'errorMessage':_0x11d123};throw new ToolExecutionError(_0x11d123,{...createRunSummary(_0xc6750d),'aborted':!![],'errorMessage':_0x11d123});}const _0x1bb8c7=getRunTerminalErrorMessage(_0xc6750d[_0x4fa286(_0x4f9d3b._0x31ba30,_0x4f9d3b._0x4601ee,0x156,0x9d)])??(_0x14cf13 instanceof Error?_0x14cf13[_0x4fa286(_0x4f9d3b._0x5d5938,0x13d,0x169,_0x4f9d3b._0x217f3c)]:String(_0x14cf13))??'Agent\x20run\x20'+_0xc6750d['runId']+_0xaabf85(-_0x4f9d3b._0x38af1b,0x87,_0x4f9d3b._0x253cf4,-_0x4f9d3b._0x44b1ee);_0xc6750d={..._0xc6750d,'status':_0xaabf85(-_0x4f9d3b._0x1e86bd,_0x4f9d3b._0x44d63e,-0x4d,0xae),'errorMessage':_0x1bb8c7};throw new ToolExecutionError(_0x1bb8c7,{...createRunSummary(_0xc6750d),'errorMessage':_0x1bb8c7});}finally{_0x37329d();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0xfe03ca){return[createAssignTaskTool(_0xfe03ca)];}import*as _0x72f446 from'path';function buildDescription2(_0x53b196){const _0x16089e={_0x3090df:0x37d,_0x275172:0x274,_0x7eb308:0x2e3,_0x1e3c62:0x314,_0x5e3f77:0x297,_0x139dc3:0x38f,_0x573e6c:0x2e7,_0x59e7a5:0x454,_0x31c978:0x1f3,_0x321703:0x3d2,_0x28b7c3:0x242,_0x55f134:0x2ab,_0x51ee8b:0x3fe,_0x3457ed:0x217,_0x5b8a59:0x36e,_0x418e59:0x344,_0x3c239a:0x3be};if(_0x53b196[_0x33f87c(0x226,_0x16089e._0x3090df,_0x16089e._0x275172,_0x16089e._0x7eb308)]===0x0)return _0x36097a(_0x16089e._0x1e3c62,0x39f,_0x16089e._0x5e3f77,_0x16089e._0x139dc3);function _0x36097a(_0xabc120,_0x214230,_0x3e99bf,_0x28ed9f){return _0x29bb69(_0xabc120-0x2a,_0xabc120-0x205,_0x214230,_0x28ed9f-0x170);}const _0x225cb3=[_0x33f87c(0x3f4,_0x16089e._0x573e6c,_0x16089e._0x59e7a5,0x508),_0x33f87c(0x28b,_0x16089e._0x31c978,_0x16089e._0x321703,_0x16089e._0x28b7c3),_0x33f87c(0x2a7,_0x16089e._0x55f134,0x3bd,_0x16089e._0x51ee8b),'Available\x20skills\x20(skill_name:\x20description):',..._0x53b196[_0x36097a(0xc9,0x9c,0x200,_0x16089e._0x3457ed)](_0x4c9ec5=>'-\x20'+_0x4c9ec5['name']+':\x20'+_0x4c9ec5[_0x36097a(0xfb,0x196,0x1,0x12b)])];function _0x33f87c(_0x3b1860,_0x4d0277,_0x410cf7,_0x169746){return _0x567203(_0x169746,_0x4d0277-0xec,_0x3b1860-0x240,_0x169746-0x1);}return _0x225cb3[_0x33f87c(_0x16089e._0x5b8a59,0x35b,_0x16089e._0x418e59,_0x16089e._0x3c239a)]('\x0a');}function createLoadSkillTool(_0x33e9a7){const _0x36b2c5={_0x198160:0x116,_0x3073a9:0x138,_0x192ed3:0x22c,_0x28cdb9:0x315,_0x58b04a:0x32,_0x30bf6c:0xc1,_0x18fdcc:0xe4,_0x511a3a:0x52,_0x27352d:0x1b1,_0x2e202e:0xc4},_0x25f1b1={_0x506395:0x34a,_0x235c40:0x508,_0x3622fa:0x425,_0x36922c:0x506,_0x5b25ba:0x556,_0x5d6549:0x3cb,_0x36d892:0x4b1,_0xc2edca:0x4bf,_0x1daedd:0x3f7,_0x5383db:0x472,_0x4f8de0:0x374,_0x57adce:0x4d8,_0x5f0694:0x58e,_0x2ee8dc:0x62c,_0x385dee:0x4f9,_0x4ce572:0x511,_0x444f55:0x4c5,_0x15ae08:0x3c7,_0x3e280c:0x32c,_0x4ddd9b:0x3d5,_0x32c5e2:0x49d,_0x3ba4f9:0x470,_0x3d9d9b:0x51a,_0xde44da:0x5cf,_0x32e572:0x6de,_0x20bc6e:0x5c9,_0x335eaa:0x448,_0x145de1:0x4ad,_0x43495a:0x4ca,_0x32766d:0x3b2,_0xe7e350:0x4b3,_0x5a3e39:0x3d2,_0xeee8a8:0x31c,_0x1fff57:0x42f,_0x4c69b4:0x567,_0x4b8ab7:0x467,_0x597bd7:0x43a,_0x24dbe4:0x303,_0x2a68c4:0x3ad,_0x4aceb6:0x3bb,_0x2dd28f:0x3c2,_0x5852e5:0x4dd,_0x243a84:0x43f,_0xdf10bf:0x426,_0x2205e7:0x560,_0x342006:0x49d},_0x5ea5c6={_0x375ca1:0x3dd,_0x59fa58:0x78},_0x49617c={_0x390e0f:0x198},_0x34ccd0={_0x22e07c:0x157,_0x56dc8c:0x116,_0x1306ab:0x173},_0x2a23dd={_0x15554f:0xb9,_0x422d66:0x174},_0x18b34a=new Map(_0x33e9a7[_0x16f9c3(0xb,-0x109,0xfd,-_0x36b2c5._0x198160)][_0x4b1d08(0xfb,_0x36b2c5._0x3073a9,_0x36b2c5._0x192ed3,_0x36b2c5._0x28cdb9)](_0x4e3241=>[_0x4e3241[_0x16f9c3(0x100,0x101,0x2f,0x9a)],_0x4e3241]));function _0x4b1d08(_0x843b42,_0x534aa0,_0xb2c522,_0x5e7ecc){return _0x567203(_0x5e7ecc,_0x534aa0-_0x2a23dd._0x15554f,_0xb2c522-0x234,_0x5e7ecc-_0x2a23dd._0x422d66);}function _0x16f9c3(_0x2d4d85,_0x7a7753,_0x188a74,_0xf98c69){return _0x567203(_0x188a74,_0x7a7753-_0x34ccd0._0x22e07c,_0x2d4d85- -_0x34ccd0._0x56dc8c,_0xf98c69-_0x34ccd0._0x1306ab);}const _0x54c0b2=buildDescription2(_0x33e9a7[_0x16f9c3(0xb,_0x36b2c5._0x58b04a,-0x36,0x83)]);return defineTool({'name':_0x16f9c3(-_0x36b2c5._0x30bf6c,-_0x36b2c5._0x18fdcc,-0x15c,-_0x36b2c5._0x511a3a),'description':_0x54c0b2,'inputSchema':{'type':'object','properties':{'name':{'type':_0x16f9c3(-0x65,-_0x36b2c5._0x27352d,-0xbf,-_0x36b2c5._0x2e202e)}},'required':['name']},async *'execute'(_0x24ac1e){const _0x38bca8=_0x18b34a[_0x49915d(0x1f4,0x47d,0x3bb,_0x25f1b1._0x506395)](_0x24ac1e[_0x49915d(0x3a8,0x59f,_0x25f1b1._0x235c40,0x4dd)]);function _0x20ed22(_0x531523,_0x3954dd,_0x37b72c,_0x44727e){return _0x4b1d08(_0x531523-_0x49617c._0x390e0f,_0x3954dd-0x7b,_0x44727e-0x15e,_0x531523);}if(!_0x38bca8){const _0xe33fa9=Array['from'](_0x18b34a[_0x20ed22(_0x25f1b1._0x3622fa,0x383,0x4b2,0x403)]())[_0x49915d(0x3f7,0x4c7,0x355,0x3f5)](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x24ac1e[_0x20ed22(_0x25f1b1._0x36922c,0x531,0x465,0x5a8)]+_0x49915d(_0x25f1b1._0x5b25ba,_0x25f1b1._0x5d6549,0x423,_0x25f1b1._0x36d892)+_0xe33fa9,{'name':_0x24ac1e['name']});}const _0x2f9101=await _0x33e9a7[_0x49915d(_0x25f1b1._0xc2edca,_0x25f1b1._0x1daedd,0x4fb,_0x25f1b1._0x5383db)](_0x38bca8),_0x4acbaa=_0x38bca8[_0x20ed22(_0x25f1b1._0x4f8de0,0x380,_0x25f1b1._0x57adce,0x43f)][_0x20ed22(_0x25f1b1._0x5f0694,_0x25f1b1._0x2ee8dc,_0x25f1b1._0x385dee,_0x25f1b1._0x4ce572)]??_0x72f446[_0x20ed22(0x39a,0x31c,_0x25f1b1._0x444f55,_0x25f1b1._0x15ae08)](_0x38bca8[_0x49915d(0x477,_0x25f1b1._0x3e280c,0x456,0x374)][_0x20ed22(0x4ae,0x3ae,_0x25f1b1._0x4ddd9b,_0x25f1b1._0x32c5e2)]),_0xe49178=[_0x20ed22(_0x25f1b1._0x3ba4f9,0x456,0x60e,_0x25f1b1._0x3d9d9b)+_0x2f9101[_0x20ed22(_0x25f1b1._0xde44da,_0x25f1b1._0x32e572,_0x25f1b1._0x20bc6e,0x5a8)],'',_0x2f9101[_0x49915d(0x451,0x4f1,0x3ab,_0x25f1b1._0x335eaa)],'','---',_0x49915d(0x43c,_0x25f1b1._0x145de1,0x406,_0x25f1b1._0x43495a)+_0x38bca8[_0x20ed22(_0x25f1b1._0x32766d,0x3a8,0x58a,0x43f)][_0x49915d(0x28d,_0x25f1b1._0xe7e350,0x464,_0x25f1b1._0x5a3e39)],_0x49915d(_0x25f1b1._0xeee8a8,_0x25f1b1._0x1fff57,_0x25f1b1._0x4c69b4,_0x25f1b1._0x4b8ab7)+_0x4acbaa][_0x49915d(_0x25f1b1._0x597bd7,_0x25f1b1._0x24dbe4,0x3cc,0x3f5)]('\x0a');yield createToolOutput(_0xe49178,{'id':_0x2f9101['id'],'name':_0x2f9101[_0x49915d(_0x25f1b1._0x2a68c4,_0x25f1b1._0x4aceb6,_0x25f1b1._0x2dd28f,_0x25f1b1._0x5852e5)],'path':_0x38bca8[_0x20ed22(0x591,0x446,0x450,_0x25f1b1._0x243a84)][_0x20ed22(_0x25f1b1._0xdf10bf,_0x25f1b1._0x2205e7,0x565,_0x25f1b1._0x342006)],'baseDirectory':_0x4acbaa});function _0x49915d(_0x38fd28,_0x1f65b8,_0x41f180,_0x54fa86){return _0x16f9c3(_0x54fa86-_0x5ea5c6._0x375ca1,_0x1f65b8-_0x5ea5c6._0x59fa58,_0x38fd28,_0x54fa86-0x6c);}return void 0x0;}});}var TODO_STATUSES=new Set([_0x29bb69(-0x140,-0x104,-0x1cb,-0x56),_0x29bb69(0xff,0x2d,-0x44,-0x120),_0x29bb69(0xb8,0x84,0x179,-0xb3)]),TODO_PRIORITIES=new Set([_0x29bb69(-0x154,-0x161,-0x9d,-0x1fb),_0x29bb69(-0x16c,-0x140,-0x231,-0x1cf),_0x567203(0x2a8,0x22b,0x168,0x83)]);function isTodoStatus(_0x178ce5){const _0x3ab6ec={_0x1e25c1:0x3f0,_0x491a3a:0x41e,_0x835dd2:0x4f1,_0x24a874:0x523},_0x136efe={_0x397190:0x178,_0x35c6b7:0x1b7};function _0x26f1a3(_0x11b18b,_0x596790,_0x32fa05,_0x12428a){return _0x29bb69(_0x11b18b-0xdc,_0x11b18b-0x3da,_0x32fa05,_0x12428a-0x89);}function _0x4091e3(_0x4dc920,_0x2205c0,_0x5ba7f0,_0x182324){return _0x567203(_0x5ba7f0,_0x2205c0-_0x136efe._0x397190,_0x182324-0x1c0,_0x182324-_0x136efe._0x35c6b7);}return typeof _0x178ce5===_0x26f1a3(0x357,0x23c,_0x3ab6ec._0x1e25c1,0x308)&&TODO_STATUSES[_0x4091e3(_0x3ab6ec._0x491a3a,_0x3ab6ec._0x835dd2,_0x3ab6ec._0x24a874,0x42f)](_0x178ce5);}function isTodoPriority(_0x4fe644){const _0x11fde3={_0x7f1dad:0x3ea,_0x12a707:0x207,_0x7380d1:0x236},_0x5874a8={_0x59e2b1:0x14a,_0x583d7a:0x1b7};function _0x2196c9(_0x260797,_0x54df5b,_0x39e5cc,_0x10647a){return _0x567203(_0x10647a,_0x54df5b-_0x5874a8._0x59e2b1,_0x54df5b-0x25d,_0x10647a-_0x5874a8._0x583d7a);}return typeof _0x4fe644===_0x2196c9(_0x11fde3._0x7f1dad,0x30e,_0x11fde3._0x12a707,_0x11fde3._0x7380d1)&&TODO_PRIORITIES['has'](_0x4fe644);}var TodoStore=class{[_0x29bb69(0xda,0x24,-0xba,0xb7)]=new Map();[_0x567203(0x2e7,0x13d,0x276,0x351)](_0x2a9f47){const _0xa2098b={_0x5747b0:0x40,_0x566579:0x31,_0x1a6ebd:0x59f,_0x5d00bd:0x5f4},_0x1d4f3d={_0x51c34c:0x55,_0x51549d:0x1c3};function _0x450f5c(_0x10fb20,_0x329fb5,_0x14c14e,_0x2680e2){return _0x29bb69(_0x10fb20-0x1b1,_0x14c14e- -_0x1d4f3d._0x51c34c,_0x329fb5,_0x2680e2-_0x1d4f3d._0x51549d);}function _0x45f1f6(_0x107097,_0x1b2d1b,_0x41cf9,_0x3bb60f){return _0x29bb69(_0x107097-0x1b6,_0x107097-0x650,_0x41cf9,_0x3bb60f-0xf1);}return this[_0x450f5c(-_0xa2098b._0x5747b0,-0x47,-_0xa2098b._0x566579,-0x94)][_0x45f1f6(_0xa2098b._0x1a6ebd,0x6a4,_0xa2098b._0x5d00bd,0x485)](_0x2a9f47)??[];}[_0x567203(0x129,-0x3c,0x33,-0x9f)](_0x3283f0,_0x579ddf){const _0x1988f9={_0x1c664e:0x74,_0x518c8b:0x1b5,_0x4d811f:0xb6,_0x357c6c:0x3c},_0x5cba56={_0x1df6d2:0x2b,_0x2d86eb:0x18a};function _0x58e9d6(_0xdb5a45,_0x556768,_0x74d89d,_0xc6b4e1){return _0x567203(_0xc6b4e1,_0x556768-_0x5cba56._0x1df6d2,_0xdb5a45- -0xe4,_0xc6b4e1-_0x5cba56._0x2d86eb);}this[_0x58e9d6(_0x1988f9._0x1c664e,_0x1988f9._0x518c8b,-_0x1988f9._0x4d811f,-_0x1988f9._0x357c6c)]['set'](_0x3283f0,_0x579ddf);}['getStats'](_0x33ab37){const _0x194885={_0x6b3297:0x6c8,_0x3175b:0x80a,_0x328a7f:0xb0,_0x238d2b:0x136,_0x5ea23f:0x1ef,_0x139fc6:0x21b,_0x5242aa:0x1bf,_0x4fd5d0:0x567,_0x49e798:0x67,_0x3da94f:0x22,_0x2ee3f3:0x196,_0x489f99:0x21b,_0x53bb7f:0x1f1,_0x4e957f:0x75d,_0x305ccd:0x82a,_0x1737f9:0x62f},_0x29d156={_0x415806:0x3f},_0x2c54e8={_0x2985a0:0x0},_0xfb2217=this[_0x4329f2(_0x194885._0x6b3297,0x7ad,_0x194885._0x3175b,0x679)](_0x33ab37),_0x40c500={'total':_0xfb2217[_0x135589(-0xe6,-_0x194885._0x328a7f,-0x6c,0x80)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x135589(_0x2ba2fa,_0x2482a0,_0x199a7d,_0x1c023f){return _0x567203(_0x1c023f,_0x2482a0-_0x2c54e8._0x2985a0,_0x199a7d- -0x52,_0x1c023f-0x1e3);}function _0x4329f2(_0x247f0a,_0x373d22,_0x247d8c,_0x2479b4){return _0x567203(_0x2479b4,_0x373d22-_0x29d156._0x415806,_0x373d22-0x537,_0x2479b4-0x179);}for(const _0x42aa7d of _0xfb2217){if(_0x42aa7d[_0x135589(_0x194885._0x238d2b,_0x194885._0x5ea23f,_0x194885._0x139fc6,_0x194885._0x5242aa)]===_0x4329f2(0x5ff,_0x194885._0x4fd5d0,0x4ce,0x679))_0x40c500[_0x135589(-_0x194885._0x49e798,-0x171,-_0x194885._0x3da94f,-0x15c)]+=0x1;else{if(_0x42aa7d[_0x135589(0x156,_0x194885._0x2ee3f3,_0x194885._0x489f99,_0x194885._0x53bb7f)]===_0x4329f2(_0x194885._0x4e957f,0x698,0x70b,0x669))_0x40c500['inProgress']+=0x1;else _0x40c500[_0x4329f2(_0x194885._0x305ccd,0x6ef,0x693,_0x194885._0x1737f9)]+=0x1;}}return _0x40c500;}};function validateTodos(_0x516bcd){const _0x300174={_0x408da5:0x2d6,_0x4a5e1e:0x428,_0x1d49f7:0x487,_0xe332ed:0x28c,_0x54c6e5:0x4ac,_0x3606fa:0x26e,_0x226f1c:0x4df,_0xb1fedc:0x428,_0x4eafb3:0x596,_0x50ef4f:0x382,_0x2c3945:0x354,_0x376bc7:0x435,_0x13993b:0x3ac,_0x37767f:0x45a,_0x1f1639:0x595,_0x1ea8fe:0x3be,_0x22a484:0x3b4,_0x108a69:0x42f,_0x254776:0x532,_0x23aea6:0x406,_0x916d4d:0x6ad,_0x372b3c:0x4eb,_0x49a8e4:0x4c3,_0x808938:0x38b,_0x3e18f9:0x2d1,_0x414a2d:0x3e3,_0x34c7d5:0x40b,_0x510fc5:0x4fe,_0xcb8d15:0x3db,_0x3b0a60:0x368,_0x568e69:0x421,_0x17ef52:0x471,_0x3332b4:0x413,_0x21894a:0x48d,_0x34b7e6:0x364,_0x5ecaba:0x2e9,_0x16a1f6:0x40f,_0x52b93d:0x3e8,_0xbafff0:0x38d,_0x4529f7:0x5eb,_0xc0506:0x626,_0x1de2ff:0x590,_0x13449a:0x54d,_0x1886a6:0x5c8,_0x3b7385:0x527,_0x2bd29d:0x29e,_0x1fa1a0:0x4e7,_0x12f53:0x5a3,_0x49bcc0:0x473,_0x47c9f7:0x29c,_0x3ef175:0x2b7,_0x2c0240:0x218,_0x1dc61d:0x32b,_0x337447:0x2c2,_0x3751da:0x5e8,_0x47bcd3:0x5a0},_0xf332a4={_0x1a16b8:0x2bf,_0x383fe5:0x1b1};if(!Array[_0x4d0416(0x4cc,0x4fa,0x430,0x564)](_0x516bcd[_0x4d0416(_0x300174._0x408da5,0x54d,_0x300174._0x4a5e1e,0x2fe)])||_0x516bcd[_0xcb4646(0x4e7,0x462,_0x300174._0x1d49f7,0x411)]['length']===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':_0xcb4646(0x390,_0x300174._0xe332ed,_0x300174._0x54c6e5,_0x300174._0x3606fa)});function _0xcb4646(_0x8ce78f,_0x5b6cbf,_0x4ac7b4,_0x2f8718){return _0x29bb69(_0x8ce78f-0x66,_0x8ce78f-0x4b2,_0x2f8718,_0x2f8718-0x1b5);}for(let _0x2bbec9=0x0;_0x2bbec9<_0x516bcd['todos'][_0x4d0416(0x259,0x174,0x2a5,0x25b)];_0x2bbec9+=0x1){const _0x1a0c84=_0x516bcd[_0x4d0416(0x51e,_0x300174._0x226f1c,_0x300174._0xb1fedc,0x3fc)][_0x2bbec9];if(!_0x1a0c84||typeof _0x1a0c84!==_0xcb4646(_0x300174._0x4eafb3,0x588,0x577,0x485))throw new ToolExecutionError(_0x4d0416(_0x300174._0x50ef4f,0x3cc,_0x300174._0x2c3945,0x373)+(_0x2bbec9+0x1)+_0x4d0416(_0x300174._0x376bc7,0x3c4,_0x300174._0x13993b,0x2d5),{'error':_0xcb4646(_0x300174._0x37767f,_0x300174._0x1f1639,_0x300174._0x1ea8fe,_0x300174._0x22a484)});if(typeof _0x1a0c84['id']!==_0xcb4646(_0x300174._0x108a69,0x359,0x2eb,_0x300174._0x254776)||_0x1a0c84['id']['trim']()['length']===0x0)throw new ToolExecutionError(_0x4d0416(0x30c,0x2f6,_0x300174._0x2c3945,_0x300174._0x23aea6)+(_0x2bbec9+0x1)+_0xcb4646(0x5f3,_0x300174._0x916d4d,0x5ae,_0x300174._0x372b3c),{'error':_0x4d0416(0x5b5,0x5bd,_0x300174._0x49a8e4,_0x300174._0x808938)});if(typeof _0x1a0c84[_0x4d0416(_0x300174._0x3e18f9,_0x300174._0x414a2d,0x3db,_0x300174._0x34c7d5)]!=='string'||_0x1a0c84[_0x4d0416(0x3e3,_0x300174._0x510fc5,_0x300174._0xcb8d15,0x28b)][_0xcb4646(_0x300174._0x3b0a60,0x23e,_0x300174._0x568e69,_0x300174._0x17ef52)]()['length']===0x0)throw new ToolExecutionError(_0xcb4646(_0x300174._0x3332b4,_0x300174._0x21894a,_0x300174._0x34b7e6,0x304)+(_0x2bbec9+0x1)+_0x4d0416(_0x300174._0x5ecaba,0x3f3,_0x300174._0x16a1f6,0x497),{'error':_0xcb4646(_0x300174._0x52b93d,_0x300174._0xbafff0,0x443,0x3b5)});if(!isTodoStatus(_0x1a0c84[_0xcb4646(_0x300174._0x4529f7,_0x300174._0xc0506,0x538,0x519)]))throw new ToolExecutionError('Todo\x20'+(_0x2bbec9+0x1)+_0xcb4646(0x5d1,_0x300174._0x1de2ff,_0x300174._0x13449a,0x5e2),{'error':'invalid_todo_status'});if(!isTodoPriority(_0x1a0c84[_0xcb4646(_0x300174._0x1886a6,0x5ab,_0x300174._0x3b7385,0x6d4)]))throw new ToolExecutionError(_0xcb4646(0x413,0x366,0x40a,0x547)+(_0x2bbec9+0x1)+_0x4d0416(0x21f,0x2e1,0x373,_0x300174._0x2bd29d),{'error':'invalid_todo_priority'});}const _0x3a82eb=_0x516bcd[_0xcb4646(_0x300174._0x1fa1a0,_0x300174._0x12f53,_0x300174._0x49bcc0,0x3b6)][_0x4d0416(_0x300174._0x47c9f7,0x226,_0x300174._0x3ef175,0x298)](_0x2bd735=>_0x2bd735['id']);function _0x4d0416(_0x5d2fdb,_0x22532d,_0x41627f,_0x2df302){return _0x567203(_0x5d2fdb,_0x22532d-0x195,_0x41627f-_0xf332a4._0x1a16b8,_0x2df302-_0xf332a4._0x383fe5);}if(new Set(_0x3a82eb)[_0x4d0416(_0x300174._0x2c0240,0x299,_0x300174._0x1dc61d,0x412)]!==_0x3a82eb['length'])throw new ToolExecutionError(_0x4d0416(0x33d,0x2e4,_0x300174._0x22a484,_0x300174._0x337447),{'error':_0x4d0416(_0x300174._0x3751da,0x458,0x4e8,_0x300174._0x47bcd3)});}function createStatsProgress(_0x4f457a){const _0x532ded={_0x5f3d69:0x30c,_0x534c67:0x4f0,_0xdcd7fb:0x406,_0x4ec401:0x441,_0x557b58:0x3a9},_0x58e919={_0x24256b:0x2b3,_0x58fba7:0x19b},_0xf62df0={_0x7b9135:0x181,_0x487e8c:0x21};function _0x3a56e1(_0x381ead,_0x2880cb,_0x4d1793,_0x3c817e){return _0x29bb69(_0x381ead-_0xf62df0._0x7b9135,_0x381ead-0x698,_0x3c817e,_0x3c817e-_0xf62df0._0x487e8c);}function _0x60dc5d(_0x1737e9,_0xd8e158,_0x41f1eb,_0x2abd09){return _0x567203(_0xd8e158,_0xd8e158-0x194,_0x1737e9-_0x58e919._0x24256b,_0x2abd09-_0x58e919._0x58fba7);}return _0x4f457a[_0x60dc5d(0x441,_0x532ded._0x5f3d69,0x361,0x4aa)]>0x0?Math[_0x60dc5d(_0x532ded._0x534c67,0x3e9,0x3f0,_0x532ded._0xdcd7fb)](_0x4f457a['completed']/_0x4f457a[_0x60dc5d(_0x532ded._0x4ec401,_0x532ded._0x557b58,0x423,0x51f)]*0x64)+'%':'0%';}function createReminderItems(_0x2adf51){const _0x332fdf={_0xc1da7e:0x340},_0x407f4b={_0x19ea86:0xa1,_0x4dcf81:0xd8},_0x189e3d={_0x2986c1:0x5cf};function _0x2a5b29(_0x1dc9b0,_0x15e545,_0x12662d,_0x48ff52){return _0x29bb69(_0x1dc9b0-0x1c6,_0x12662d-_0x189e3d._0x2986c1,_0x1dc9b0,_0x48ff52-0x137);}function _0x5e2d0d(_0x4a8771,_0x11dcce,_0x1373ec,_0x2c27b8){return _0x29bb69(_0x4a8771-_0x407f4b._0x19ea86,_0x4a8771-0x65f,_0x11dcce,_0x2c27b8-_0x407f4b._0x4dcf81);}return _0x2adf51[_0x2a5b29(0x58c,_0x332fdf._0xc1da7e,0x493,0x551)](_0x55465f=>({'content':_0x55465f[_0x5e2d0d(0x647,0x563,0x640,0x779)],'status':_0x55465f[_0x5e2d0d(0x798,0x865,0x857,0x6bf)],'id':_0x55465f['id']}));}function createStructuredResult(_0x1932df,_0xa0a7a4,_0x2f6171,_0x5927fe){const _0x1827af={_0x250d23:0x2ac,_0x394d50:0x304},_0x26676b={_0x2b98e6:0x1a1},_0x154290={_0x26a4eb:0x99,_0x5bc11f:0x3e8};function _0x41660f(_0x2911f0,_0x1a1622,_0x2c8545,_0x166ab5){return _0x29bb69(_0x2911f0-_0x154290._0x26a4eb,_0x2911f0-_0x154290._0x5bc11f,_0x166ab5,_0x166ab5-0x6a);}function _0x2d4b80(_0x4d6ce9,_0x2c44e6,_0x479370,_0x8775d1){return _0x567203(_0x4d6ce9,_0x2c44e6-0x1b4,_0x8775d1-0x3d3,_0x8775d1-_0x26676b._0x2b98e6);}return{'allCompleted':_0x5927fe,'items':_0xa0a7a4[_0x41660f(_0x1827af._0x250d23,0x3f5,_0x1827af._0x394d50,0x1b1)](_0x4248c4=>({'id':_0x4248c4['id'],'content':_0x4248c4[_0x41660f(0x3d0,0x2ff,0x47c,0x2c7)],'status':_0x4248c4[_0x2d4b80(0x73e,0x5ab,0x625,0x640)],'priority':_0x4248c4[_0x41660f(0x4fe,0x491,0x3ff,0x50a)],'createdAt':_0x4248c4['createdAt']})),'progress':createStatsProgress(_0x2f6171),'recentChanges':!![],'sessionId':_0x1932df,'stats':_0x2f6171,'todosWritten':_0xa0a7a4['length']};}function createOutputText(_0x66ecde,_0x4a610a){const _0x89ef9f={_0x4bced5:0x23,_0x3a685e:0x24f,_0x417f20:0xc6,_0x356b0d:0x3b,_0x312d70:0x56,_0x561bdd:0x1ce,_0x5ddf11:0x1d9,_0x5c03b3:0xb4,_0x4f5d40:0xf,_0x5a5fb9:0x112,_0x51251e:0xa9,_0x2e1d33:0x185,_0x4abcd3:0x152},_0x882a4a={_0x4ada71:0x9e,_0x237409:0x138},_0x4fa0dd={_0x372573:0x136,_0x5059cf:0x9b},_0x1bd221=JSON[_0x18de97(-_0x89ef9f._0x4bced5,-0x10b,-0xad,0x133)](createReminderItems(_0x66ecde));if(_0x4a610a)return _0x18de97(0x13b,0x214,_0x89ef9f._0x3a685e,_0x89ef9f._0x417f20)+_0x66ecde[_0x18de97(-0x18,_0x89ef9f._0x356b0d,-0x123,_0x89ef9f._0x312d70)]+_0x18de97(0x236,0x14c,_0x89ef9f._0x561bdd,0x2c9)+_0x1bd221+_0x18de97(0xa9,0x189,_0x89ef9f._0x5ddf11,-0x5f);function _0x18de97(_0x48d724,_0x35fa85,_0x579c35,_0x52cfed){return _0x29bb69(_0x48d724-0x116,_0x48d724-_0x4fa0dd._0x372573,_0x35fa85,_0x52cfed-_0x4fa0dd._0x5059cf);}function _0xf19714(_0xc1a8cf,_0x5cec9d,_0x54fb69,_0x51988e){return _0x567203(_0xc1a8cf,_0x5cec9d-_0x882a4a._0x4ada71,_0x5cec9d-0x26,_0x51988e-_0x882a4a._0x237409);}return _0xf19714(_0x89ef9f._0x5c03b3,0x45,_0x89ef9f._0x4f5d40,-_0x89ef9f._0x5a5fb9)+_0x1bd221+_0x18de97(_0x89ef9f._0x51251e,0x38,_0x89ef9f._0x2e1d33,_0x89ef9f._0x4abcd3);}function createTodoWriteTool(_0x26afa4=new TodoStore()){const _0x44b4f3={_0x140a96:0x247,_0x20b441:0x111,_0x476052:0x58f,_0x1648f8:0x5b8,_0x1247e7:0x6a7,_0x16f053:0x7fd,_0x3ff8ec:0x6ff,_0x47104d:0x632,_0x3f9fc5:0x540,_0x5eba1b:0x1c6,_0x5d3641:0x70,_0x5b53ef:0x434,_0x37f784:0x455,_0x258f0f:0x11a,_0x38cb32:0x343,_0x59ac22:0x11c,_0x2094e8:0x128,_0x1a4d44:0x221,_0x1e3d73:0x15f},_0x2f69fe={_0x64c38c:0x6a0,_0x36ffd5:0x5cd,_0x2b96e8:0x4bf,_0x464c7e:0x387,_0x5f4e46:0x4ac,_0x50be5a:0x5a7,_0x402e0a:0x4de,_0x18c229:0x5df,_0x19d5be:0x130,_0x559633:0x7,_0x372bb2:0x173,_0x2faa13:0xf5,_0x4ff613:0x1ac,_0xc1173:0x4d6,_0x4e83a5:0x683,_0x51b9fd:0xaa,_0x282b63:0x142,_0x468e63:0x1ad,_0xcf0003:0x59,_0x3369c9:0x71d},_0x50c368={_0x4bc01d:0x2f,_0x3872c9:0x48f},_0x512849={_0x22256c:0x41};function _0x24673e(_0x4e04a3,_0x1cd797,_0x24207f,_0x4c26ed){return _0x567203(_0x24207f,_0x1cd797-0x1c3,_0x1cd797- -_0x512849._0x22256c,_0x4c26ed-0x145);}function _0x2df583(_0x41c683,_0x5d3a1a,_0x31de56,_0x1c3fc1){return _0x567203(_0x31de56,_0x5d3a1a-_0x50c368._0x4bc01d,_0x41c683-_0x50c368._0x3872c9,_0x1c3fc1-0x15b);}return defineTool({'name':'TodoWrite','description':_0x24673e(_0x44b4f3._0x140a96,_0x44b4f3._0x20b441,0x91,-0x3b),'inputSchema':{'type':_0x2df583(0x6a7,0x5ca,_0x44b4f3._0x476052,0x79e),'properties':{'todos':{'type':_0x2df583(_0x44b4f3._0x1648f8,0x615,0x534,0x5fe),'items':{'type':_0x2df583(_0x44b4f3._0x1247e7,_0x44b4f3._0x16f053,_0x44b4f3._0x3ff8ec,_0x44b4f3._0x47104d),'properties':{'content':{'type':'string'},'status':{'type':_0x2df583(_0x44b4f3._0x3f9fc5,0x579,0x56f,0x4db)},'priority':{'type':_0x24673e(_0x44b4f3._0x5eba1b,_0x44b4f3._0x5d3641,0xba,0x8f)},'id':{'type':_0x2df583(0x540,_0x44b4f3._0x5b53ef,_0x44b4f3._0x37f784,0x4b8)},'createdAt':{'type':'string'}},'required':[_0x24673e(0x21d,0xdb,_0x44b4f3._0x258f0f,-0x51),_0x24673e(0x19b,0x22c,_0x44b4f3._0x38cb32,_0x44b4f3._0x59ac22),'priority','id']}}},'required':[_0x24673e(0x70,_0x44b4f3._0x2094e8,_0x44b4f3._0x1a4d44,_0x44b4f3._0x1e3d73)]},async *'execute'(_0xc61e0b,_0x41854f){const _0x4ce5af={_0x1c3bac:0x19,_0x1de266:0xb4,_0x17e287:0x19e},_0x54471b={_0x50c973:0x11a};function _0x3eaaf0(_0x5043dd,_0x35b000,_0x16e5be,_0x30b6a1){return _0x24673e(_0x5043dd-0x146,_0x35b000- -0xe7,_0x30b6a1,_0x30b6a1-_0x54471b._0x50c973);}const _0x5eef1c=_0xc61e0b;validateTodos(_0x5eef1c);const _0x52bdbb=_0x41854f['sessionId']||_0x58db7d(_0x2f69fe._0x64c38c,_0x2f69fe._0x36ffd5,0x6de,0x6a7),_0xd13eae=new Date()[_0x58db7d(_0x2f69fe._0x2b96e8,_0x2f69fe._0x464c7e,_0x2f69fe._0x5f4e46,_0x2f69fe._0x50be5a)](),_0x20e0ef=_0x5eef1c[_0x58db7d(0x71a,_0x2f69fe._0x402e0a,_0x2f69fe._0x18c229,0x613)][_0x3eaaf0(-0xcf,-_0x2f69fe._0x19d5be,-_0x2f69fe._0x559633,-0x8b)](_0x3a1b19=>({'id':_0x3a1b19['id'],'content':_0x3a1b19[_0x58db7d(0x631,0x5fc,0x592,0x5e7)],'status':_0x3a1b19[_0x3eaaf0(0x1d3,0x145,0x45,0xe3)],'priority':_0x3a1b19[_0x58db7d(0x5dc,0x80c,0x6c0,0x7a5)],'sessionId':_0x52bdbb,'createdAt':_0x3a1b19[_0x3eaaf0(-0x152,-0x128,-0x128,-0xfa)]||_0xd13eae,'updatedAt':_0xd13eae}));_0x26afa4[_0x3eaaf0(-_0x2f69fe._0x372bb2,-_0x2f69fe._0x2faa13,-0x9a,-_0x2f69fe._0x4ff613)](_0x52bdbb,_0x20e0ef);const _0x301ceb=_0x26afa4[_0x58db7d(_0x2f69fe._0xc1173,_0x2f69fe._0x4e83a5,0x5db,0x702)](_0x52bdbb);function _0x58db7d(_0x3aadf1,_0x433db5,_0xd8f4cc,_0x153cc1){return _0x2df583(_0xd8f4cc- -_0x4ce5af._0x1c3bac,_0x433db5-_0x4ce5af._0x1de266,_0x153cc1,_0x153cc1-_0x4ce5af._0x17e287);}const _0x1f8d97=_0x20e0ef[_0x3eaaf0(-_0x2f69fe._0x51b9fd,-_0x2f69fe._0x282b63,-_0x2f69fe._0x468e63,-_0x2f69fe._0xcf0003)]>0x0&&_0x20e0ef[_0x58db7d(_0x2f69fe._0x3369c9,0x50e,0x628,0x5b3)](_0x3cacef=>_0x3cacef[_0x58db7d(0x6c0,0x63c,0x6e3,0x62e)]===_0x58db7d(0x53a,0x780,0x62e,0x6d7));return createToolOutput(createOutputText(_0x20e0ef,_0x1f8d97),createStructuredResult(_0x52bdbb,_0x20e0ef,_0x301ceb,_0x1f8d97));}});}import{mkdir as _0x4b0df1,writeFile as _0x3d16ed}from'fs/promises';import*as _0x142ded from'path';function sanitizeFileName(_0x413e4b){const _0x3a76f0={_0x5a2290:0x19},_0x57fb15={_0x7ddd90:0x199};function _0xc8f8aa(_0xcddb35,_0x54002f,_0x1371f6,_0x234ce9){return _0x29bb69(_0xcddb35-0x1ab,_0xcddb35-0x115,_0x54002f,_0x234ce9-_0x57fb15._0x7ddd90);}return _0x413e4b[_0xc8f8aa(0xca,-_0x3a76f0._0x5a2290,0x3,0x184)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x51b10c,_0x465f5b){const _0x4a4e2b={_0x487e0b:0x16b,_0x994d27:0x134,_0x34fb94:0x166,_0x269884:0x5,_0x2b94b4:0xa,_0x10dfd0:0x144,_0xf6094d:0x33,_0x4e6362:0x14c,_0x231154:0x4d,_0x2810b3:0x26,_0x4ec61f:0x69,_0x2be3fb:0xee,_0xc04f5a:0xd,_0x329d63:0xdb,_0x23cba5:0x8c,_0x1c63dd:0xa9,_0x3ec1ef:0x21,_0x2d422f:0x15b,_0x5dda9d:0xd6,_0x1a6d3f:0x179,_0x1173b7:0x70,_0x569b99:0x58,_0x5c646a:0x130,_0x32b86f:0xbc,_0x455d6c:0x90,_0x42cc32:0x24,_0x518092:0x120,_0x3050f0:0x226,_0x1891f6:0x83,_0x31b026:0x245,_0x55960d:0x101,_0x25de51:0x121,_0x43ed8b:0x54,_0x88bac2:0x23d,_0xc1f68c:0x124,_0x220e07:0x24d,_0x3fb529:0x1a6,_0x5df6a4:0x1ef,_0x26553c:0x59,_0x3fa69e:0xee,_0x4917f7:0xf6,_0x5737f8:0x6a,_0xf0bb76:0x170,_0x58459f:0xb4,_0x31fb12:0x27,_0x2c017d:0xd6,_0x22c8f2:0x15b,_0x54f13c:0x2f5},_0x1cce1b={_0x821d68:0xf9,_0x4613ef:0x72},_0x44a1f2={_0x4daa35:0x15e},{maxBytes:_0x254592,sessionDir:_0x1d4e77}=_0x465f5b;if(!_0x51b10c[_0x1380f0(_0x4a4e2b._0x487e0b,_0x4a4e2b._0x994d27,0x63,_0x4a4e2b._0x34fb94)]||Buffer['byteLength'](_0x51b10c['output'],_0x3d5c3a(-0x14c,-0x276,-0x216,-_0x4a4e2b._0x269884))<=_0x254592)return _0x51b10c;function _0x3d5c3a(_0x314be1,_0x215348,_0x14c116,_0x3a59da){return _0x567203(_0x14c116,_0x215348-_0x44a1f2._0x4daa35,_0x314be1- -0x1e2,_0x3a59da-0x11f);}const _0x2dc66a=Buffer['byteLength'](_0x51b10c[_0x3d5c3a(-0x3c,_0x4a4e2b._0x2b94b4,-_0x4a4e2b._0x10dfd0,-_0x4a4e2b._0xf6094d)],_0x3d5c3a(-_0x4a4e2b._0x4e6362,-_0x4a4e2b._0x231154,-_0x4a4e2b._0x2810b3,-_0x4a4e2b._0x4ec61f));if(!_0x1d4e77){const _0x32358b=_0x51b10c[_0x3d5c3a(-0x3c,_0x4a4e2b._0x2be3fb,0xd5,-0xf0)][_0x3d5c3a(-_0x4a4e2b._0xc04f5a,0x105,0x86,-_0x4a4e2b._0x329d63)](0x0,_0x254592);return{..._0x51b10c,'output':_0x32358b+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x254592+_0x3d5c3a(_0x4a4e2b._0x23cba5,0x146,-_0x4a4e2b._0x1c63dd,0x1b)+_0x2dc66a+'\x20bytes).\x20No\x20session\x20directory\x20available\x20for\x20file\x20offload.\x0a</system-reminder>'),'meta':{..._0x51b10c[_0x1380f0(-_0x4a4e2b._0x3ec1ef,0xd6,0x206,0xd7)],'truncated':!![],'originalBytes':_0x2dc66a,'transforms':[..._0x51b10c[_0x1380f0(_0x4a4e2b._0x2d422f,_0x4a4e2b._0x5dda9d,0x203,0x1dd)][_0x1380f0(0x224,0xfd,0x19a,-0x4f)],_0x1380f0(0x273,0x1c9,0xeb,_0x4a4e2b._0x1a6d3f)]}};}const _0x3faf61=_0x51b10c[_0x3d5c3a(_0x4a4e2b._0x1173b7,0x8e,0x113,0x123)]+'_'+sanitizeFileName(_0x51b10c[_0x1380f0(0x192,0xfc,0x17c,_0x4a4e2b._0x569b99)])+'.log',_0x182a3e=_0x142ded[_0x1380f0(_0x4a4e2b._0x5c646a,_0x4a4e2b._0x32b86f,0xeb,0x36)](_0x1d4e77,_0x3faf61);function _0x1380f0(_0x4f4999,_0x42a964,_0x58a786,_0x3cd881){return _0x567203(_0x4f4999,_0x42a964-_0x1cce1b._0x821d68,_0x42a964- -_0x1cce1b._0x4613ef,_0x3cd881-0x1e5);}await _0x4b0df1(_0x1d4e77,{'recursive':!![]}),await _0x3d16ed(_0x182a3e,_0x51b10c[_0x1380f0(0x27c,0x134,0x1c0,_0x4a4e2b._0x455d6c)],_0x1380f0(0x1e,_0x4a4e2b._0x42cc32,_0x4a4e2b._0x518092,-0x6));let _0x808408=_0x51b10c[_0x1380f0(_0x4a4e2b._0x3050f0,_0x4a4e2b._0x994d27,_0x4a4e2b._0x1891f6,_0x4a4e2b._0x31b026)][_0x3d5c3a(-0xd,-_0x4a4e2b._0x2d422f,_0x4a4e2b._0x55960d,-_0x4a4e2b._0x23cba5)](0x0,_0x254592);const _0x11b25a=_0x808408[_0x1380f0(_0x4a4e2b._0x25de51,0xf5,_0x4a4e2b._0x43ed8b,0x218)]('\x0a');_0x11b25a>_0x254592*0.5&&(_0x808408=_0x808408[_0x3d5c3a(-0xd,-0x6a,0x10,0x88)](0x0,_0x11b25a));const _0x10ffef=['','<system-reminder>',_0x1380f0(_0x4a4e2b._0x88bac2,_0x4a4e2b._0xc1f68c,-0x21,_0x4a4e2b._0x220e07)+_0x254592+_0x3d5c3a(-_0x4a4e2b._0x3fb529,-0x270,-0xd6,-_0x4a4e2b._0x5df6a4)+_0x2dc66a+_0x3d5c3a(-0x142,-_0x4a4e2b._0x26553c,-0x159,-0x237),'Full\x20output\x20saved\x20to:\x20'+_0x182a3e,_0x1380f0(-0x4a,0x4d,_0x4a4e2b._0x3fa69e,-_0x4a4e2b._0x4917f7),_0x1380f0(-_0x4a4e2b._0x5737f8,0x75,_0x4a4e2b._0xf0bb76,-0x13)][_0x3d5c3a(-_0x4a4e2b._0x58459f,0x9a,-0x1b8,-_0x4a4e2b._0x31fb12)]('\x0a');return{..._0x51b10c,'output':_0x808408+_0x10ffef,'meta':{..._0x51b10c[_0x1380f0(0x1b0,_0x4a4e2b._0x2c017d,_0x4a4e2b._0x22c8f2,0x10e)],'truncated':!![],'originalBytes':_0x2dc66a,'transforms':[..._0x51b10c['meta']['transforms'],_0x1380f0(_0x4a4e2b._0x54f13c,0x1c9,0x118,0x77)]}};}import{readFile as _0xfca914,stat as _0x2712c5}from'fs/promises';function _0x3422(){const _0x39a1ce=['vg9KBYa','DxrMoa','BMf2','y29UBMvJDa','C3rHCNreAxi','Bwf4','qxzHAwXHyMXLignVBw1HBMrZoG','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','igzHAwXLzc4','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','ywXS','igj5DgvZks4','zgvUBY5QC29U','yxv0Ag9YAxPHDgLVBL9JB2rL','DgL0Bgu','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','yMfZAwm','CMvZB2X2zq','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','A2v5yMLUzgLUz3m','C2vZC2LVBG','B2XSyw1H','AwzYyw1L','C291CMnL','zMLUza','DhnJ','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','C3rYAw5N','AxnjBNrLz2vY','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','oIbPBNzHBgLKihbYAw9YAxr5','seLhsa','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','y2fSBgjHy2TvCMW','DhLWzq','r0LgodLH','C2vHCMnOvhLWzq','yM9VBgvHBG','BgLUzuvUza','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','CxvLC3rPB25Z','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','mJu0odK2serADwDr','Cgf0DgvYBG','z2nSAwq','lNrZ','C2vYDMvY','CMLWz3jLCcbMywLSzwq6ia','y2XPzw50CW','Aw1Hz2uVD2vICa','l3vZCI9SB2nHBc9IAw4VCMC','zgvSAw1PDgvY','C2v0','zMLSzvzLCNnPB25Z','Ahr0CdO','ru5pru5u','y2XLyxi','zNjVBq','Dg9Rzw5tDg9YywDLs2v5','B3jPz2LUvg9VBenHBgXjza','BgfUz3vHz2u','CgXHDgzVCM0','zw52','BxrPBwvnCW','ugf0AcbUB3qGzM91BMq6ia','DgvZDa','yxr4','tM8GC3vJAcbMAwXLoIaN','C3vIyxjYyxK','AMf2yxnJCMLWDa','Aw52ywXPzf90B2rVx2L0zw0','B2C6DxbKyxrLzf90Aw1L','yM94zwq','zw5K','Dhj1zwnVBg9Y','zgLHz25VC3rPy3m','B25Jzq','y29Uy2f0','ywXSB3DLzfrVB2XZ','Dg9mB3DLCKnHC2u','vw5RBM93BIb0B29SoIa','pc9ZExn0zw0TCMvTAw5Kzxi+','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','CMvWBgfJzq','C3bSAxq','BhmGlwXH','Agv4','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','Dgf2AwX5','C2HPzNq','A2LSBa','CgLWzq','Aw5KzxHpzG','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','C2vYDMvYCW','Bwf0y2HLCW','tunqihrVB2WG','zxH0BMfTzq','C2vYDMvYswq','AxngAwXL','y3jSzG','D2HLCMuGCMC','yMvHCMvY','zMLSzq','v2LUr2v0','zw5HyMXLza','CNnZ','tuLnrtOG','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','mc4WlJa','Bwf4qNL0zxm','w01duca','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','BgfIzwW','tunqihnLCNzLCIa','Cgf0Aa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','ChjLzML4','CgfYC2u','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','tNv2Aw4','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','zMLUywXnzxnZywDLvgv4Da','DxrTx2nVBNrLBNq','AgvHzgvY','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','Aw50zwDLCG','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','vMLLD0zPBgu','BgLUzq','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','y29UDgvUDa','sgLUDa','yMLVBwu','q29Tu3bLyW','ChjLCgfYzunHBgXiAwvYyxjJAhK','C2TPBgXZ','yNvUlMXVy2TI','uKLgrG','z2L0qNjHBMnO','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','ig1HDgnO','y2XVC2u','Dgv4DerVy3vTzw50l2HVDMvY','yxjYyxK','yxjNDw1LBNrZvgv4Da','B3bLBMfPlxjLC3bVBNnLCW','DxrTx2nHBxbHAwDU','Aw5JBhvKzq','AM9PBG','Dgv4DerVy3vTzw50l2rPzenSB3nL','zgf0zxrPBwu','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','BhnWlxbYB3H5','rMLSzsb3CML0DgvUigf0ia','BgLZDfrVB2XZ','y29TBwfUza','Cg9W','CgfJA2fNzs1SB2nRlMPZB24','Aw1Hz2uVANbLzW','qwXSia','C2vHCMnOrgvWDgG','yxjNDw1LBNrZ','y29UDgvUDc10ExbL','CxvLCNK','B3bLBG','y2fJAgvK','y29UzMLN','A2LSBgvK','C3bHD25PBMC','tM8GzgLHz25VC3rPy3m','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','Cg5WBs1SB2nRlNLHBwW','yxnJAwK','r2XVyG','Bwv0yq','Aw5JBhvKzxm','mJa1mZi1mfnUtwPYsG','y29UC3rYDwn0B3i','ywDLBNrZ','CM9VDa','zg9JDw1LBNrtEw1IB2W','CgfYC2vjBNq','oIbJB250zw50ihjLCxvPCMvK','lM51DMLU','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','vw50AxrSzwq','lMPWzW','CNvUswq','Cgf0DgvYBIbPCYbYzxf1AxjLza','qxnRvxnLCLrVB2W','Dg9KB3ncEvnLC3nPB24','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','z29Vz2XLlwnZzq','AxngAw5PDgu','zxH0zw5ZAw9UCW','BNvT','ls1NBg9Ipq','zxHPDcbJB2rLia','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5FChjVz3jLC3m','y3DK','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','Aw1Hz2vZ','z2v0u3rHDhm','y29UDgv4DeXPBMS','BgfZDeLUzgv4t2y','Bg93','Dg9KB3m','DhjHBNnWB3j0','zgvSzxrL','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C2vSzwn0Aw9UuMfUz2u','y2fSBeLK','DhjHBNnMB3jTCW','CMvHC29U','AxnbCNjHEq','y291BNq','uhvIBgLZAgvKoIa','zgvSzwDHDgvKlxj1BI0','yxjNDw1LBNriAw50','DMfSDwu','Ag9TzwrPCG','CgfJA2fNzu5HBwu','AhLKCMf0zu1LDge','y2fSBeHPzxjHCMnOEs9PBMnVBwLUz0nHBgXZ','C3rKAw4','lunVBw1HBMq','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','C29Tzq','zgLYzwn0B3j5','ignVBxbSzxrLzc4','Aw5ZDhj1y3rPB25Z','ie9sia','Dg9WAwm','ugf0AcbPCYbUB3qGysbMAwXLoIa','yxnPzgu','ywXSu2v0DgXLza','y2f0y2G','iYmGu2TPBgW6ia','B3rOzxi','zw50CMLLCW','ls1WCMvMAxG','l3bPza','BgLUAW','Dg90ywW','ygbG','D2fPDezVCKrPywDUB3n0AwnZ','BNbT','zMLUzfjLzMvYzw5Jzxm','yMfZzty0','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','BgLI','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','CMvZDwX0','CgfYzw50u2vZC2LVBKLK','tgLUzsa','Ag92zxi','ls1NBg9I','BNvTyMvY','BxvSDgLtzwXLy3q','C2L0ztO','zhj5uNvU','qMfZzsbKAxjLy3rVCNK6ia','C3rVCMfNzurPCG','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','BM9Zy3jPChq','C3rHDhvZvgv4Da','BgfUz18','B3v0Chv0','C2nYAxb0','AgvHzgvYCW','C2nVCgvZ','BwvZC2fNzq','Bg9HzfnRAwXS','zxHPDa','xg5DkJ8','B2zMC2v0','l3vZCI9IAw4VyMfZAa','ywn0AxzL','l29WDc9OB21LyNjLDY9IAw4VCMC','zxzLCNK','BxrPBwu','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','mtHMyLLjBKS','DgLTzw91De1Z','CgfZC3rOCM91z2G','y29TCgXLDgvK','yxnZAwDU','ls1OAwrKzw4','DgLTzvTKyxrLDgLTzv0','yM0Ynq','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','CMvJzw5JEurHExm','Dg9Rzw5Z','zgLNzxn0','C3rKAw8','Dg9Rzw4','DxnLCM5HBwu','uxvLC3rPB24G','Bg9JyxrPB24','B2XKvgv4Da','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','lNbUzW','A2LUza','qxnZAwDUvgfZAW','B3jPz2LUywW','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','zgv0ywLS','Dhj1BMm','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','y2XPzw50sw5MB3jTyxrPB24','Dw5RBM93BG','C3rHDgu','Aw5PDgLHBgL6yxrPB24','ywDLBNrjza','C2XPy2u','t0zg','C3rHCNq','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','BM90Awz5','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','zg9TywLUCW','DhjPBuvUza','yxjNDw1LBNroyw1LCW','cGOTls0kcG','yMLVBwuUANnVBMm','Bwv0yxrHz3m','yxv0AfjLCxvPCMvK','y29UDgvUDhm','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','BhnW','BgLNAhq','w1bFxL1BxhnCu10QpW','Bg9JywXLq29TCgfYzq','CgLK','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','sw52ywXPzcbvuKWGCgfYyw1LDgvY','ChvZAa','BwLU','CMvXDwvZDa','CgfZC3DVCMq','zgfYAW','C2H1DgrVD24','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','y29UBMvJDgLVBG','BwnFzwLK','DgfZAW','rgv0ywLSoIa','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','AxneAxjLy3rVCNK','B3v0z29PBMDdywXSCW','l2jPBI9YzW','ugfJA2fNzxm','B3b0Aw9UCW','y2XPzw50','AwDUB3jL','C3rKzxjY','Ec1HCgKTA2v5','tg9HzgvKigzYB206ia','Aw52ywXPzf90B2rVx2LK','yMLYDgH0Aw1L','y29KzvzLCMLMAwvY','DxjP','DxjS','Bw9Kzq','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','C3bHD24','A2v5','lcbpChrPB24G','zw5NAw5LCW','ndu1odCWBNfpsNvi','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','lu5VuhjVzMLSzq','rMLSzvjLywq','zgLZy292zxj5u3rHDgu','BgLUzvn0yxj0','BMfTzq','B25szwrPCMvJDa','B2jQzwn0','Dgf2AwX5qxbPs2v5','CMvXDwvZDhm','BM93','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','uhjVz3jHBuzPBgvZkhG4nIK','zxjYB3jnzxnZywDL','Dgv4Da','C2HHmJu2','Aw1WBgvTzw50yxrPB24','B2zM','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBfjLC3vSDhm','sw52B2TLq29TBwfUza','CMfUz2u','mta2nJeXmKrmugv2Aa','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','zhvWBgLJyxrLx3rVzg9FAwrZ','BgLUzxm','C25PChbLDa','CMCUzxHL','yxbPs2v5','Dgv4Dc9ODg1S','ue9tva','DgHLBG','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','rMLSzuvKAxq','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','C2H1DgrVD25tDgfYDgvK','CMvNAw9U','yw5ZAti1nG','DxrTx3nVDxjJzq','AMf2yxnJCMLWDhjLywn0','AgfUzgXL','Dg9VBc1VDxrWDxqTB2zMBg9Hza','Aw1Hz2uVz2LM','CM91BMq','lMn0CW','rgLHz25VC3rPyW','AxnbyNnVBhv0zq','DhLWzxnJCMLWDa','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','z2XVyG','zw5NAw5L','ywXSB3DLzerPCNm','mJG3mtGWqw9Av3bP','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','o1TE','ChjPB3jPDhK','zMvUy2vK','DhnJB25MAwCUANnVBG','AgfZq2XPzw50CW','C2fMzq','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','ywjVCNq','Dg9VBhm','Dg9VBe5HBwu','oIbPBNzHBgLKihn0yxr1CW','zgvMAw5PDgLVBG','Aw5ZDgfSBa','yMfZzw5HBwu','v2vIrMv0y2G','lNDLyNa','CMfUAW','CMvXDwLYzwq','DxrTx3rLCM0','lNrTCc4','C2vUza','ksbB','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','ndmWmJK3mhHHrw9myW','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','y2HHCMfJDgvY','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','yxv0Aa','BgL0zxjHBa','CMvJB3jK','zgvMyxvSDa','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','BgLUzvrLEhq','CMvMzxjLBMnLCW','te9dquXbufbeqvrb','C3rHDhvZ','igj5DgvZicHVCMLNAw5HBdOG','AgfZ','y29Kzq','yNjVA2vU','ywrKrxzLBNrmAxn0zw5LCG','igzYB20G','y2fSBfrVB2W','oIbPzcbYzxf1AxjLza','z2v0vg9KB3m','CxvLC3rPB24','B3b0Aw9UywW','twLJCM9ZB2z0','C29YDa','zNvUy3rPB24','Dg9VBa','y2vPBa','lMDPzG','ANnVBMm','y2fWywjPBgL0AwvZ','AgLNAa','CgXHAw50zxH0','z29uB0LTCgXLBwvUDgf0Aw9U','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','lw5i','lI4U','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','AxnfBMfIBgvK','C3rYAw5NAwz5','y29UDgv4Da','BgLTAxq','lMPZB25J','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','DhvYBMrVD24','yw5ZD2vYCW','CgfJA2fNzxm','Dgv4DerVy3vTzw50l2rPze9Wzw4','mZa2mdqXne5hvezUqG','ChjVCgvYDgLLCW','BgvUz3rO','lMPZEa','zgvMyxvSDen3za','yNvUlMXVy2S','DhjPBq','C3rKB3v0','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','Dg9tDhjPBMC','C2vYDMvYtMfTzq','Ag9ZDa','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','tM8GAg92zxiGAw5MB3jTyxrPB24','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','BwvKAxvT','Aw5JB21PBMDdywXSCW','C3rYAxbbBNnP','zgLZy292zxj5','BwfW','EwvZ','lMPZB24','ChjVDg9JB2W','ChvIBgLZAgvKqxq','CgfNzw1HCa','lNrZEa','CNvUBMLUzW','y3jLyxrLzef0','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','CMfUzg9T','y2HHCKnVzgvbDa','zMLSztOVlW','BwnWxW','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','C3rHCNrZv2L0Aa','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','yxv0BW','zMXVB3i','Ahr0Ca','B25oB3rPzMLJyxrPB24','vw5HDxrOB3jPEMvKrxjYB3i','AxnfCNjVCG','zgLZywjSzwq','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','DMvYAwzPzxi','Aw52ywXPzf90B2rVCW','zxjYB3i','yMLUyxj5tMfTzq','ywjVCNrLza','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','Bw9KzwW','sfruuca','o1TExg5DkJ8','Aw5WDxq','zMLSDgvY','EwfYBI5SB2nR','Dg9VBenHBgXjza','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','C2vZC2LVBKLK','D2LUmZi','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','l2jPBI9ZAa','C2vUze5VDgLMAwnHDgLVBG','l2jPBI9IyxnO','sw5MB3jTyxrPB24','ANnVBG','qMfZAa','ls1ZDgrPBW','zgvZy3jPChrPB24','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','DhLWzxnJCMLWDhjLywn0','l3vZCI9IAw4VCMC','nde0z0jkywr1','AxndB250zxH0','CgvUzgLUzW','zNvSzMLSBgvK','B3bLBKzPBgvZ','C2v0vg9KB3m','C2vUzfjLCxvLC3q','zgLYBMfTzq','Dg9ju09tDhjPBMC','zMfPBgvK','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','tM8GBg9JyxrPB25ZigzVDw5K','ihDHCYbHyM9YDgvKlG','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','igj5DgvZicH0B3rHBdOG','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','lMPWzwC','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','zM9VDgvY','yxbWBgLJyxrPB24VANnVBG','zMXHDe1HCa','te9x','DhnZzxj2zxiUANm','AxrLBxm','zgLZCg9Zzq','BgfUzW','cMbGya','zMLSzvbHDgG','BM9Kzv9TB2r1BgvZ','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','qMvHCMvYia','ienHDxnLoIa','Aw1Hz2u','B2f1DgG','y29TBwfUzhm','C2LNBMfS','y2XLyw51Ca','lMPZ','C3jJl2v4yw1WBgvZl2rLBw8UDhm','tg9HzfnRAwXS','u0HfteW','BgLZDgvU','D2HPy2GGCMC','y2HHBMDL','zgf0yq','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','y29ZDa','B3bLCMf0Aw9U','Dw5PB24','B3bLBMfPlxjLC3bVBNnLCY13CW','DhvWBgu','CMvZDwX0CW','Dg9VBhmVy2fSBa','qxv0Ag9YAxPHDgLVBG','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','rMLSzu5LDW','Ahr0Chm6','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','lMnTza','D3jPDgu','Aw52ywXPzf90B2rVx2nVBNrLBNq','ywrK','C2L6zq','yxjNCW','CgfJA2fNzs5QC29U','y29UBMvJDgvK','CMLWz3jLCa','A2v5CW','D29YA3nWywnLu3LTyM9S','BM9Uzq','CgXHAw4','CMvSyxrPDMu','z29Vz2XLq3nLs2v5','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','CxvLC3rPB24T','zMLUywXnzxnZywDL','yxr0CG','rMv0y2GGywjVCNrLzcbIEsb1C2vY','cGPbuKDvtuvovfm6ia','tfnqihnLCNzLCIbWCM9JzxnZig11C3qGzxHWB3nLihn0zg91DcbHBMqGC3rKAw4GC3rYzwfTCW','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','lM10CW','zgvUBY5QC29UyW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','u2HLBgWGBM90igzVDw5KoIa','z2v0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','C2v2zxjPDhK','wZ0+nY04kcLD','zw51Bq','BMv3vgv4Da','AhrTBfnUAxbWzxq','C2HLBgXqyxrO','C2vHCMnOugfYyw1Z','v2fYBMLUzW','ls1JB2X1Bw4','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','ChjVy2vZCW','z29uB0rLzMLUAxrPB24','y2XPzw50x3nLy3jLDf9WB3n0','zgf0zvjLC3rYAwn0','zMLYC3q','v0vcua'];_0x3422=function(){return _0x39a1ce;};return _0x3422();}import*as _0x5c4e31 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x567203(0x29,-0x14d,0x9,0x98),_0x29bb69(-0xbc,-0x161,-0xb9,-0x14c),_0x567203(0x169,0x284,0x168,0x59),_0x29bb69(-0x53,0x97,0x166,0x14c)]),PNG_SIGNATURE=Buffer[_0x567203(0x17,0xa,0xcf,0x1b0)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x49e418,_0x3efd1d){const _0x325816={_0x47b2f8:0x2d2,_0xcebfc4:0x1da,_0x680a84:0xcc,_0x31031a:0x15b,_0x1709f1:0x2f8,_0x35fad6:0x597,_0xcd5d4d:0x344,_0x2700af:0x2a0,_0x1e9285:0x179,_0x10ef99:0x18a,_0x20096a:0x160,_0x1094fa:0x336,_0x16e36c:0x1e8,_0x750a11:0xc1,_0x1aad77:0x239,_0x206c88:0x90,_0x64c76b:0x1c5,_0x5e862e:0x1bc,_0x42caff:0x20c,_0x6fc736:0x29c,_0x435df6:0x3f2,_0x1d64c8:0x363,_0x223790:0x2a9,_0x1621fb:0x151,_0xcdb473:0x20b,_0x5b24e8:0x169,_0x54684e:0x2a3,_0x1ca6d5:0x1d4,_0x2e8988:0x309,_0x399b52:0x1ae,_0x353502:0x187,_0x146635:0x6d,_0x3a5294:0x2b8,_0x4058ae:0x26a,_0x113e51:0x289,_0x3c4b28:0x315,_0x4ca5cf:0x417,_0x4cd45e:0x2ab,_0x37c01d:0x1ef,_0x147893:0x24e,_0x256992:0x1fe,_0x4b576a:0x269,_0x2f6db8:0xbe,_0x33f786:0x446,_0x201f58:0x57e,_0xfea441:0x249,_0x12b9d4:0x2d7,_0x434775:0x241},_0x3a3d86={_0x5ba223:0x32,_0x524479:0x170},_0x1a88a6={_0x5e14da:0x196,_0x372c46:0xa2,_0x42ea80:0xa3};function _0x5be24b(_0x14417c,_0x5984c7,_0x5a851e,_0x1f15cf){return _0x567203(_0x14417c,_0x5984c7-_0x1a88a6._0x5e14da,_0x5984c7-_0x1a88a6._0x372c46,_0x1f15cf-_0x1a88a6._0x42ea80);}if(_0x49e418[_0x3d8a82(0x1e5,0x2ea,0x2b4,0x268)](0x0,0x8)['equals'](PNG_SIGNATURE))return'image/png';if(_0x49e418[0x0]===0xff&&_0x49e418[0x1]===0xd8&&_0x49e418[0x2]===0xff)return _0x5be24b(_0x325816._0x47b2f8,_0x325816._0xcebfc4,0x2b8,0x166);const _0x3c4d52=_0x49e418['subarray'](0x0,0x6)['toString']('ascii');if(_0x3c4d52==='GIF87a'||_0x3c4d52===_0x5be24b(_0x325816._0x680a84,_0x325816._0x31031a,0x139,0x1ac))return _0x3d8a82(_0x325816._0x1709f1,0x44c,_0x325816._0x35fad6,_0x325816._0xcd5d4d);if(_0x49e418[_0x5be24b(_0x325816._0x2700af,0x17c,0x18b,_0x325816._0x1e9285)](0x0,0x4)[_0x3d8a82(_0x325816._0x10ef99,0x1fe,0x2c9,_0x325816._0x20096a)](_0x5be24b(_0x325816._0x1094fa,_0x325816._0x16e36c,_0x325816._0x750a11,_0x325816._0x1aad77))===_0x5be24b(_0x325816._0x206c88,_0x325816._0x64c76b,_0x325816._0x5e862e,0x271)&&_0x49e418[_0x3d8a82(_0x325816._0x42caff,0x2ea,_0x325816._0x6fc736,0x26e)](0x8,0xc)['toString'](_0x3d8a82(_0x325816._0x435df6,0x356,0x300,_0x325816._0x1d64c8))===_0x3d8a82(_0x325816._0x223790,0x2a4,_0x325816._0x1621fb,_0x325816._0xcdb473))return _0x5be24b(0x2ba,_0x325816._0x5b24e8,_0x325816._0x54684e,_0x325816._0x1ca6d5);const _0x32ed2b=_0x5c4e31[_0x3d8a82(0x2cd,_0x325816._0x2e8988,0x309,0x329)](_0x3efd1d)[_0x5be24b(_0x325816._0x399b52,_0x325816._0x353502,_0x325816._0x146635,0x1c8)]();if(_0x32ed2b===_0x5be24b(_0x325816._0x3a5294,_0x325816._0x4058ae,_0x325816._0x113e51,_0x325816._0x3c4b28))return'image/png';function _0x3d8a82(_0x1c72bc,_0x2c46c4,_0x528af4,_0x55dd4e){return _0x29bb69(_0x1c72bc-_0x3a3d86._0x5ba223,_0x2c46c4-0x344,_0x528af4,_0x55dd4e-_0x3a3d86._0x524479);}if(_0x32ed2b===_0x3d8a82(_0x325816._0x4ca5cf,0x364,0x2ab,_0x325816._0x4cd45e)||_0x32ed2b===_0x3d8a82(_0x325816._0x37c01d,_0x325816._0x147893,0x229,_0x325816._0x256992))return'image/jpeg';if(_0x32ed2b===_0x3d8a82(_0x325816._0x4b576a,0x1e0,0x2cc,_0x325816._0x2f6db8))return _0x3d8a82(0x570,0x44c,_0x325816._0x33f786,_0x325816._0x201f58);if(_0x32ed2b==='.webp')return _0x3d8a82(_0x325816._0xfea441,_0x325816._0x12b9d4,_0x325816._0x434775,0x225);return void 0x0;}function normalizeDetail(_0x50c266){const _0x45934c={_0x33f8b9:0x4df,_0x13efb8:0x611,_0x21c3b9:0x744,_0x355647:0x7f},_0x511a2e={_0x31217c:0x9b,_0x6baedb:0x1fe},_0x5f0d99={_0x1813e9:0x4f5};function _0xa74bdf(_0x51b9e6,_0x4460b0,_0x511135,_0x3cac1b){return _0x567203(_0x511135,_0x4460b0-0x12,_0x3cac1b-_0x5f0d99._0x1813e9,_0x3cac1b-0x1e1);}if(_0x50c266===void 0x0)return void 0x0;const _0x29ebc7=_0x50c266[_0xa74bdf(0x59a,0x39b,0x432,_0x45934c._0x33f8b9)]()['toLowerCase']();function _0x2416ad(_0x3fcf4d,_0x4240b5,_0x5b8033,_0xc33c){return _0x29bb69(_0x3fcf4d-_0x511a2e._0x31217c,_0x5b8033-_0x511a2e._0x6baedb,_0x4240b5,_0xc33c-0x1a9);}if(!SUPPORTED_DETAILS[_0xa74bdf(_0x45934c._0x13efb8,0x6c8,_0x45934c._0x21c3b9,0x764)](_0x29ebc7))throw new ToolExecutionError(_0x2416ad(0x1b8,0x74,0xb7,_0x45934c._0x355647)+_0x50c266,{'detail':_0x50c266});return _0x29ebc7;}function createViewFileTool(_0x5ddd96={}){const _0x48cfc7={_0x2626b0:0x3ac,_0x1f0a67:0x58c,_0x361f47:0x5cf,_0x2edbb4:0x6b3,_0x44852a:0xd0,_0x34274c:0x4b,_0x12f6b9:0x129,_0x5cd3ca:0x163,_0x1b1cb7:0x586,_0x324b7a:0x4d,_0x4d123e:0x90,_0x4f621c:0x83,_0x40a67b:0x94,_0x16f527:0x14f,_0x3aca69:0xcf,_0x51680a:0x543,_0xdbb1f4:0x619,_0x258def:0x5b6},_0xcc2b27={_0x160345:0xeb,_0x3bf1c0:0x132,_0x22b4e8:0x103,_0x2c9189:0x2d8,_0x5b4014:0x228,_0x39d140:0x371,_0xbff99f:0x4b2,_0x1a4b21:0x3b5,_0x4eb819:0x54,_0x2ec705:0xa0,_0x172f37:0xd6,_0x2bf6de:0x107,_0x5626a3:0x3af,_0x1adc71:0x4c7,_0x5a757d:0x394,_0x2850ce:0x333,_0x4417b9:0x3a3,_0x85e429:0x2dd,_0x210cc1:0x3f3,_0x1fe9aa:0x2c7,_0x1fb319:0x285,_0x12f0e8:0x6d,_0x2eb9ad:0x86,_0x1da928:0x123,_0x5b6842:0x125,_0x4de24d:0x1c6,_0x2a55a6:0x2d4,_0x3fce43:0x352,_0x525201:0x2bf,_0x29b24f:0x1c,_0x511963:0x84,_0x2634e6:0x4d0,_0x29a1ed:0x323,_0x1abe9c:0x2ea,_0x1b24f2:0x2ac,_0x5f5618:0x28d,_0x424cd4:0x220,_0x3bbfba:0x20a,_0x5b2116:0x51,_0xd88657:0xd8,_0x377333:0x80,_0x2cfccc:0x21,_0x44b9e8:0x7d,_0x1c048d:0x57,_0x50de76:0x296,_0x1d2df6:0x530,_0x107144:0x3db,_0x201102:0x37,_0x5bb2c3:0x6f,_0x1c78c1:0x10c,_0x25f6cb:0x119,_0x2efb71:0x2c8,_0x149406:0x3c1,_0x2ce9d9:0x36f,_0x16b553:0xd6,_0x862741:0x11a,_0x548cc8:0x51,_0x5f35df:0x55},_0x857969={_0x11de09:0xc1,_0x579253:0x1cb},_0x3663da={_0x57c126:0x46d,_0x41c068:0x63};function _0x276591(_0x5b43fe,_0x2a9fc5,_0x24ff16,_0x5dffb4){return _0x567203(_0x24ff16,_0x2a9fc5-0x100,_0x5dffb4-_0x3663da._0x57c126,_0x5dffb4-_0x3663da._0x41c068);}const _0x4470c7=_0x5c4e31[_0x5d7beb(-0x125,0x30,-0x1c,-0x23a)](_0x5ddd96[_0x276591(0x33b,_0x48cfc7._0x2626b0,_0x48cfc7._0x1f0a67,0x455)]??process[_0x276591(0x4f5,0x4f6,0x655,_0x48cfc7._0x361f47)]()),_0x4a0c37=(_0x5ddd96[_0x276591(0x688,0x77b,0x6ae,_0x48cfc7._0x2edbb4)]??[])['map'](_0x2b88d4=>_0x5c4e31[_0x5d7beb(-0x125,-0x265,-0x13a,0x27)](_0x2b88d4));function _0x5d7beb(_0x1439c5,_0x342dce,_0x34ebdd,_0x30f9d0){return _0x567203(_0x34ebdd,_0x342dce-_0x857969._0x11de09,_0x1439c5- -_0x857969._0x579253,_0x30f9d0-0xbe);}const _0x3128e7=_0x5ddd96[_0x5d7beb(-0xc5,-0xd5,-_0x48cfc7._0x44852a,-0xd6)]??DEFAULT_MAX_BYTES,_0x1dfcba=_0x5ddd96[_0x5d7beb(_0x48cfc7._0x34274c,0x174,_0x48cfc7._0x12f6b9,_0x48cfc7._0x5cd3ca)]??_0x276591(0x651,0x45a,0x5af,_0x48cfc7._0x1b1cb7);return defineTool({'name':_0x1dfcba,'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':_0x5d7beb(_0x48cfc7._0x324b7a,_0x48cfc7._0x4d123e,-_0x48cfc7._0x4f621c,-_0x48cfc7._0x40a67b),'properties':{'path':{'type':_0x5d7beb(-0x11a,-0x245,-0x164,-_0x48cfc7._0x16f527)},'detail':{'type':_0x5d7beb(-0x11a,-0xab,-_0x48cfc7._0x3aca69,-0xd0)}},'required':[_0x276591(_0x48cfc7._0x51680a,_0x48cfc7._0xdbb1f4,_0x48cfc7._0x258def,0x578)]},async *'execute'(_0x5c805a){const _0x5229aa={_0x30064f:0x89,_0x135023:0x59},_0x1fc727={_0x44b879:0x96},_0x116f70=resolveAllowedPath(_0x4470c7,_0x4a0c37,_0x5c805a[_0x1e1bee(-0x37,-_0xcc2b27._0x160345,-_0xcc2b27._0x3bf1c0,-0x145)]);await assertWorkspaceFile(_0x116f70);function _0x215e71(_0x3f4221,_0x47d4ee,_0x323d91,_0x143550){return _0x276591(_0x3f4221-0x9e,_0x47d4ee-_0x1fc727._0x44b879,_0x47d4ee,_0x143550- -0x2b1);}const _0x48ab7f=await _0x2712c5(_0x116f70);if(_0x48ab7f[_0x215e71(_0xcc2b27._0x22b4e8,0x132,_0xcc2b27._0x2c9189,_0xcc2b27._0x5b4014)]>_0x3128e7)throw new ToolExecutionError(_0x215e71(_0xcc2b27._0x39d140,0x509,_0xcc2b27._0xbff99f,_0xcc2b27._0x1a4b21)+_0x5c805a['path'],{'path':_0x5c805a[_0x1e1bee(-0x37,_0xcc2b27._0x4eb819,-0x76,-_0xcc2b27._0x2ec705)],'maxBytes':_0x3128e7,'size':_0x48ab7f[_0x1e1bee(-_0xcc2b27._0x172f37,-0x151,-_0xcc2b27._0x2bf6de,-0x87)]});const _0x2ade8c=await _0xfca914(_0x116f70);function _0x1e1bee(_0x2dec32,_0x1da6a4,_0x28da40,_0x5d25e2){return _0x5d7beb(_0x2dec32-_0x5229aa._0x30064f,_0x1da6a4-0x11b,_0x5d25e2,_0x5d25e2-_0x5229aa._0x135023);}const _0x3743ef=detectImageMediaType(_0x2ade8c,_0x116f70);if(!_0x3743ef)throw new ToolExecutionError(_0x215e71(0x45f,_0xcc2b27._0x5626a3,_0xcc2b27._0x1adc71,_0xcc2b27._0x5a757d)+_0x5c805a[_0x215e71(_0xcc2b27._0x2850ce,_0xcc2b27._0x4417b9,_0xcc2b27._0x85e429,0x2c7)],{'path':_0x5c805a[_0x215e71(0x3ae,_0xcc2b27._0x210cc1,0x297,_0xcc2b27._0x1fe9aa)],'supported':[_0x215e71(0x1d4,0x129,_0xcc2b27._0x1fb319,0x18c),_0x1e1bee(-0x104,-0x159,-_0xcc2b27._0x12f0e8,-0x85),_0x215e71(0x43d,0x3ff,0x414,0x310),_0x1e1bee(_0xcc2b27._0x2eb9ad,0x3b,0x96,_0xcc2b27._0x1da928),_0x1e1bee(0x116,_0xcc2b27._0x5b6842,_0xcc2b27._0x4de24d,0x1da)]});const _0x1e4eca=normalizeDetail(_0x5c805a[_0x1e1bee(0x8b,-0x2b,0x171,-0x80)]),_0x28524c=['Viewed\x20image\x20file:\x20'+_0x5c805a[_0x215e71(0x3e1,0x170,0x271,0x2c7)],_0x215e71(_0xcc2b27._0x2a55a6,0x321,_0xcc2b27._0x3fce43,_0xcc2b27._0x525201)+_0x3743ef,'Size:\x20'+_0x48ab7f['size']+'\x20bytes'][_0x1e1bee(-0x5f,_0xcc2b27._0x29b24f,-0x17b,_0xcc2b27._0x511963)](_0x1e4eca?[_0x215e71(0x358,_0xcc2b27._0x2634e6,_0xcc2b27._0x29a1ed,0x3b2)+_0x1e4eca]:[])[_0x215e71(0x23a,0x384,0x199,_0xcc2b27._0x1abe9c)]('\x0a'),_0x249ff8=[{'type':_0x215e71(_0xcc2b27._0x1b24f2,_0xcc2b27._0x5f5618,_0xcc2b27._0x424cd4,_0xcc2b27._0x3bbfba),'source':{'type':_0x1e1bee(_0xcc2b27._0x5b2116,_0xcc2b27._0xd88657,_0xcc2b27._0x377333,0x17e),'media_type':_0x3743ef,'data':_0x2ade8c[_0x1e1bee(-0x154,-0x92,-_0xcc2b27._0x2cfccc,-0x21d)](_0x1e1bee(0x51,_0xcc2b27._0x44b9e8,-_0xcc2b27._0x1c048d,0x8d))}},{'type':_0x215e71(_0xcc2b27._0x50de76,0x493,_0xcc2b27._0x1d2df6,_0xcc2b27._0x107144),'text':_0x28524c}];return yield createToolOutput(_0x28524c,{'path':_0x5c805a[_0x1e1bee(-_0xcc2b27._0x201102,-_0xcc2b27._0x5bb2c3,_0xcc2b27._0x1c78c1,_0xcc2b27._0x25f6cb)],'resolvedPath':_0x116f70,'created':_0x48ab7f[_0x215e71(0x349,0x2fd,_0xcc2b27._0x2efb71,_0xcc2b27._0x149406)][_0x1e1bee(-0x10c,-0x19c,-0x2e,-0x19b)](),'modified':_0x48ab7f[_0x215e71(0x2c3,0x2ca,0x31a,_0xcc2b27._0x2ce9d9)]['toISOString'](),'size':_0x48ab7f[_0x1e1bee(-_0xcc2b27._0x16b553,-_0xcc2b27._0x862741,-_0xcc2b27._0x44b9e8,0x6e)],'mimeType':_0x3743ef,'encoding':_0x1e1bee(_0xcc2b27._0x548cc8,0x7b,-_0xcc2b27._0x5f35df,0x131),..._0x1e4eca?{'detail':_0x1e4eca}:{}},_0x249ff8),void 0x0;}});}import _0x498201 from'turndown';var USER_AGENT=_0x567203(0x1b5,0x12e,0x1bd,0x157),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x4e9b3e){const _0x4653be={_0x6fb7bf:0x6c0,_0x44e0e3:0x725,_0x3c37bf:0x60a,_0x5484bf:0x645,_0xf9c7b6:0x88,_0x16da7e:0x1e,_0x9784c8:0x33,_0x3425f0:0x4b8,_0x977c72:0x564,_0x4e0e04:0x44e,_0x41268e:0x1dc,_0x37a281:0xc1,_0x4070ef:0x174,_0x3f1295:0x1d1,_0x1c2edd:0x1ae,_0x59031f:0x1e6,_0xe7f6e3:0x15b,_0x2d7094:0x730,_0x3d58b6:0x4bc,_0x14330e:0x3d0},_0x2ca813={_0x3fda40:0xad,_0x55af6d:0x4d},_0x5618c4={_0x5029ae:0x1e8};let _0x282524;try{_0x282524=new URL(_0x4e9b3e);}catch{throw new ToolExecutionError(_0x50357d(_0x4653be._0x6fb7bf,_0x4653be._0x44e0e3,0x6e9,0x601),{'url':_0x4e9b3e});}function _0x66a675(_0x400c49,_0x200b50,_0x367c78,_0x11c5ca){return _0x29bb69(_0x400c49-0x17e,_0x367c78-0x157,_0x200b50,_0x11c5ca-_0x5618c4._0x5029ae);}if(_0x282524['protocol']!==_0x50357d(_0x4653be._0x3c37bf,0x4b9,0x5ca,_0x4653be._0x5484bf)&&_0x282524[_0x66a675(0xfb,_0x4653be._0xf9c7b6,_0x4653be._0x16da7e,-_0x4653be._0x9784c8)]!==_0x50357d(0x60c,_0x4653be._0x3425f0,_0x4653be._0x977c72,_0x4653be._0x4e0e04))throw new ToolExecutionError(_0x66a675(0x14c,_0x4653be._0x41268e,_0x4653be._0x37a281,_0x4653be._0x4070ef),{'url':_0x4e9b3e});if(_0x282524[_0x66a675(_0x4653be._0x3f1295,_0x4653be._0x1c2edd,_0x4653be._0x59031f,0x28c)]||_0x282524[_0x66a675(0x233,0x153,0x212,_0x4653be._0xe7f6e3)])throw new ToolExecutionError(_0x50357d(0x549,0x6d0,0x661,_0x4653be._0x2d7094),{'url':_0x282524[_0x50357d(_0x4653be._0x3d58b6,_0x4653be._0x14330e,0x4f9,0x506)]+'//'+_0x282524['host']+_0x282524['pathname']});function _0x50357d(_0x4b385c,_0x3171d1,_0x125269,_0x4001b5){return _0x29bb69(_0x4b385c-_0x2ca813._0x3fda40,_0x125269-0x632,_0x4001b5,_0x4001b5-_0x2ca813._0x55af6d);}return _0x282524;}function _0x1e3a(_0x5ae72a,_0x4b541f){_0x5ae72a=_0x5ae72a-0x1c9;const _0x34228b=_0x3422();let _0x1e3a7b=_0x34228b[_0x5ae72a];if(_0x1e3a['elkCJR']===undefined){var _0xefc910=function(_0x323a51){const _0x56f8fa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf87fb7='',_0x421f46='';for(let _0x3b43f5=0x0,_0x2771dd,_0x2b97b1,_0x181397=0x0;_0x2b97b1=_0x323a51['charAt'](_0x181397++);~_0x2b97b1&&(_0x2771dd=_0x3b43f5%0x4?_0x2771dd*0x40+_0x2b97b1:_0x2b97b1,_0x3b43f5++%0x4)?_0xf87fb7+=String['fromCharCode'](0xff&_0x2771dd>>(-0x2*_0x3b43f5&0x6)):0x0){_0x2b97b1=_0x56f8fa['indexOf'](_0x2b97b1);}for(let _0x2406e1=0x0,_0x5f0d5f=_0xf87fb7['length'];_0x2406e1<_0x5f0d5f;_0x2406e1++){_0x421f46+='%'+('00'+_0xf87fb7['charCodeAt'](_0x2406e1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x421f46);};_0x1e3a['XZKhuk']=_0xefc910,_0x1e3a['dgrAYK']={},_0x1e3a['elkCJR']=!![];}const _0x1a4fdc=_0x34228b[0x0],_0x575eff=_0x5ae72a+_0x1a4fdc,_0x42659f=_0x1e3a['dgrAYK'][_0x575eff];return!_0x42659f?(_0x1e3a7b=_0x1e3a['XZKhuk'](_0x1e3a7b),_0x1e3a['dgrAYK'][_0x575eff]=_0x1e3a7b):_0x1e3a7b=_0x42659f,_0x1e3a7b;}function createTimeoutSignal(_0x3409a8,_0x1cfb0b){const _0x3c693a={_0x273f44:0x201,_0x4554d0:0x105,_0x3ea193:0x18e,_0x46955c:0x144,_0x1af210:0x5d3,_0x13018c:0x528,_0x29a2ae:0x591,_0x253635:0x3,_0x8b31a0:0xd8,_0x2c08ca:0xe,_0x330f15:0x127},_0x87f604={_0x42b360:0x6b5,_0x260dcf:0x623,_0xd8ea4f:0x545,_0x13c830:0x6b3},_0xb2ffff={_0x5deecd:0x22a},_0xb495c7={_0x4c0344:0xe4,_0x1aa28e:0x2b6},_0x28172c={_0x1ac8f4:0xb7,_0x46fbb4:0x1c2},_0x25bc99=new AbortController(),_0x45e840=setTimeout(()=>_0x25bc99['abort'](new Error('Fetch\x20timed\x20out')),_0x1cfb0b),_0x2c6c47=()=>_0x25bc99[_0x2d5c08(0x1fc,0x215,0x32b,0x203)](_0x3409a8['reason']);function _0x2d5c08(_0x347f1,_0x48bcff,_0x13cfbb,_0x38ba84){return _0x29bb69(_0x347f1-_0x28172c._0x1ac8f4,_0x347f1-0xe0,_0x38ba84,_0x38ba84-_0x28172c._0x46fbb4);}_0x3409a8[_0x400ff5(_0x3c693a._0x273f44,0x2cb,0x1de,0x275)]?_0x25bc99[_0x2d5c08(0x1fc,_0x3c693a._0x4554d0,_0x3c693a._0x3ea193,0xf6)](_0x3409a8[_0x2d5c08(0x11c,-0x31,_0x3c693a._0x46955c,0x0)]):_0x3409a8[_0x400ff5(_0x3c693a._0x1af210,_0x3c693a._0x13018c,_0x3c693a._0x29a2ae,0x5e1)]('abort',_0x2c6c47,{'once':!![]});function _0x400ff5(_0x105c35,_0x119679,_0x327108,_0x442afe){return _0x567203(_0x105c35,_0x119679-_0xb495c7._0x4c0344,_0x119679-_0xb495c7._0x1aa28e,_0x442afe-0xd);}return{'signal':_0x25bc99[_0x2d5c08(-_0x3c693a._0x253635,-_0x3c693a._0x8b31a0,_0x3c693a._0x2c08ca,_0x3c693a._0x330f15)],'cleanup':()=>{const _0x30eb2a={_0x12c869:0x4b7};function _0x4827e5(_0x50b05d,_0x46f988,_0x496954,_0x4d80b8){return _0x2d5c08(_0x50b05d-_0xb2ffff._0x5deecd,_0x46f988-0x106,_0x496954-0xa,_0x496954);}function _0x56dd37(_0x50bf10,_0x54dcfa,_0x23a358,_0x53f75d){return _0x2d5c08(_0x54dcfa-_0x30eb2a._0x12c869,_0x54dcfa-0x59,_0x23a358-0x1c7,_0x23a358);}clearTimeout(_0x45e840),_0x3409a8[_0x56dd37(_0x87f604._0x42b360,0x686,_0x87f604._0x260dcf,_0x87f604._0xd8ea4f)](_0x56dd37(0x7fe,_0x87f604._0x13c830,0x5e7,0x5a8),_0x2c6c47);}};}function createWebFetchTool(_0x496d41={}){const _0x692528={_0x37e512:0x827,_0x46930f:0x772,_0x3a42b5:0x746,_0x21c215:0x5c7,_0x34afdc:0x497,_0x5267a:0x747,_0x2c022d:0x775,_0x302be1:0x662,_0x7f2e48:0x69f,_0xede4df:0x53c,_0x2f6535:0x59b,_0x37e6e3:0x593,_0x52e4e1:0x53b,_0xa71831:0x541,_0x74d8e8:0x53c,_0x4e84e4:0x716,_0x4e2f54:0x578,_0x547019:0x73e,_0x2ae90b:0x674,_0x2f12c4:0x65c,_0x3d8fc9:0x739,_0x35dbad:0x724,_0x265fe4:0x6cd,_0x1d9a30:0x60f,_0x2234b6:0x5e1},_0x178c40={_0x2a7464:0x551,_0x4037a9:0x5eb,_0x2c190c:0x89,_0x5c9f21:0x214,_0x4e1b9e:0xcc,_0x5d0362:0x8e,_0x565d31:0x90,_0x3dff6b:0xce,_0x4218ef:0x69,_0x2af195:0x19c,_0x2cc82a:0x571,_0x2b927b:0x4a8,_0x17dfac:0x37d,_0x496833:0x464,_0xf545f:0x8c,_0x412d73:0xcb,_0x27ceb5:0x5fb,_0x1b9248:0x6d,_0x5a2988:0xea,_0x583c98:0x1f7,_0x2e0aa1:0x1b3,_0x213da9:0x584,_0x45d32a:0x5d5,_0x5152eb:0x4b8,_0x9c93e4:0x5e9,_0x44c35f:0x637,_0x5844bc:0x6a4,_0x2effa2:0x165,_0x3cfa8c:0x47f,_0x572b72:0x4e0,_0x588cae:0x551,_0x3bb56f:0x3a7,_0x465056:0x4ca,_0x12f681:0x4ac,_0x49649b:0x5e8,_0x5f325b:0x5a6,_0x43c970:0x23,_0x56be71:0x72,_0x24332f:0x4b,_0x21ea59:0x309,_0x5e08b2:0x42e,_0x3dc6ca:0x37e,_0x789b92:0xf9,_0x2242f5:0x52,_0x577fe1:0xda,_0x2393e7:0x225,_0xe3fd02:0x64c,_0x3df7cd:0x413,_0x139fb1:0x559,_0x20af2d:0x524},_0x4bcff4={_0x448597:0x4fc,_0x4eeed0:0x1a7},_0x1ea6ea={_0x4285b7:0x623},_0x2241ac=_0x496d41[_0x31421(0x5cf,0x705,_0x692528._0x37e512,_0x692528._0x46930f)]??_0x31421(0x7f5,_0x692528._0x3a42b5,0x648,0x6ca),_0x1feeb8=_0x496d41[_0x236ef2(0x6b2,0x57a,0x5cf,0x73e)]??DEFAULT_TIMEOUT_MS2,_0x36d62c=new _0x498201({'headingStyle':_0x31421(0x5df,_0x692528._0x21c215,0x635,_0x692528._0x34afdc),'codeBlockStyle':_0x236ef2(_0x692528._0x5267a,_0x692528._0x2c022d,_0x692528._0x302be1,0x721),'bulletListMarker':'-'});_0x36d62c['remove']([_0x31421(0x605,0x696,0x753,0x5eb),'style',_0x236ef2(_0x692528._0x7f2e48,0x5e8,0x554,0x7f3),_0x31421(_0x692528._0xede4df,_0x692528._0x2f6535,0x5f2,0x488),_0x236ef2(_0x692528._0x37e6e3,_0x692528._0x52e4e1,0x6a0,_0x692528._0xa71831),_0x236ef2(_0x692528._0x74d8e8,0x479,0x64a,0x535),_0x236ef2(0x611,0x53a,_0x692528._0x4e84e4,_0x692528._0x4e2f54),_0x31421(_0x692528._0x547019,_0x692528._0x2ae90b,0x538,0x7b6)]);function _0x31421(_0x571e20,_0x2a6ce6,_0x2d2e2b,_0x23ad7e){return _0x29bb69(_0x571e20-0x137,_0x2a6ce6-_0x1ea6ea._0x4285b7,_0x571e20,_0x23ad7e-0xc7);}function _0x236ef2(_0x520fba,_0x76b439,_0x19d722,_0x527396){return _0x567203(_0x527396,_0x76b439-0x151,_0x520fba-_0x4bcff4._0x448597,_0x527396-_0x4bcff4._0x4eeed0);}return defineTool({'name':_0x2241ac,'description':'Fetch\x20web\x20page\x20content\x20and\x20convert\x20to\x20Markdown\x20format','inputSchema':{'type':_0x236ef2(0x714,_0x692528._0x2f12c4,_0x692528._0x3d8fc9,_0x692528._0x35dbad),'properties':{'description':{'type':_0x236ef2(0x5ad,0x46f,0x67a,_0x692528._0x265fe4)},'url':{'type':'string'}},'required':[_0x236ef2(0x704,_0x692528._0x1d9a30,0x6d6,_0x692528._0x2234b6)]},async *'execute'(_0x43515b,_0x30e262){const _0x5aa7ba={_0x5b5733:0x1bd,_0x5ce9bd:0x86},_0x3bf6fe={_0x1bd26f:0xb0},_0x1b3aed=assertFetchableUrl(_0x43515b[_0x3c8b2f(_0x178c40._0x2a7464,0x635,0x6d0,_0x178c40._0x4037a9)])[_0x205ea1(-_0x178c40._0x2c190c,-_0x178c40._0x5c9f21,-_0x178c40._0x4e1b9e,-_0x178c40._0x5d0362)]();if(_0x30e262[_0x205ea1(_0x178c40._0x565d31,_0x178c40._0x3dff6b,-_0x178c40._0x4218ef,-0x2a)][_0x205ea1(-_0x178c40._0x2af195,-0x52,-0xa5,0x82)])throw new ToolExecutionError(_0x3c8b2f(_0x178c40._0x2cc82a,_0x178c40._0x2b927b,_0x178c40._0x17dfac,_0x178c40._0x496833),{'url':_0x1b3aed});const _0x10b11=createTimeoutSignal(_0x30e262[_0x205ea1(-0x64,_0x178c40._0xf545f,-_0x178c40._0x4218ef,-_0x178c40._0x412d73)],_0x1feeb8);function _0x205ea1(_0x6beb38,_0x1b0347,_0x400683,_0x58c34b){return _0x236ef2(_0x400683- -0x5b6,_0x1b0347-0x1eb,_0x400683-_0x3bf6fe._0x1bd26f,_0x6beb38);}let _0x2006f2='',_0x34fd18=0x0,_0x30688f;try{const _0x2e1e46=await fetch(_0x1b3aed,{'headers':{'User-Agent':USER_AGENT},'signal':_0x10b11['signal']});if(!_0x2e1e46['ok'])throw new ToolExecutionError('HTTP\x20'+_0x2e1e46[_0x3c8b2f(0x7a5,0x69a,_0x178c40._0x27ceb5,0x5db)]+'\x20'+_0x2e1e46[_0x205ea1(-_0x178c40._0x1b9248,-0x57,_0x178c40._0x5a2988,0x12c)],{'url':_0x1b3aed,'statusCode':_0x2e1e46[_0x205ea1(0x197,_0x178c40._0x583c98,_0x178c40._0x2e0aa1,0x1ef)]});_0x2006f2=_0x2e1e46[_0x3c8b2f(_0x178c40._0x213da9,_0x178c40._0x45d32a,0x5e9,_0x178c40._0x5152eb)]['get'](_0x3c8b2f(_0x178c40._0x9c93e4,0x569,_0x178c40._0x44c35f,_0x178c40._0x5844bc))??'',_0x34fd18=_0x2e1e46['status'],_0x30688f=await _0x2e1e46[_0x205ea1(0x2b5,0x2b8,_0x178c40._0x2effa2,0x1e3)]();}catch(_0x35f600){if(_0x35f600 instanceof ToolExecutionError)throw _0x35f600;const _0x1e744a=_0x35f600 instanceof Error?_0x35f600['message']:String(_0x35f600);throw new ToolExecutionError(_0x1e744a,{'url':_0x1b3aed});}finally{_0x10b11[_0x3c8b2f(0x591,_0x178c40._0x3cfa8c,_0x178c40._0x572b72,_0x178c40._0x588cae)]();}function _0x3c8b2f(_0x2def95,_0x180acd,_0x4683f1,_0x38d3a0){return _0x236ef2(_0x180acd- -0xcf,_0x180acd-_0x5aa7ba._0x5b5733,_0x4683f1-_0x5aa7ba._0x5ce9bd,_0x2def95);}const _0x5c4a1f=new Date()[_0x3c8b2f(_0x178c40._0x3bb56f,0x463,_0x178c40._0x465056,0x548)]();let _0x2f9ace,_0x3fc2f2;if(_0x2006f2[_0x3c8b2f(_0x178c40._0x12f681,0x576,_0x178c40._0x49649b,0x46a)](_0x3c8b2f(0x3ec,0x46e,0x44a,_0x178c40._0x5f325b)))_0x2f9ace='```json\x0a'+_0x30688f+_0x205ea1(_0x178c40._0x43c970,-0x41,-_0x178c40._0x56be71,_0x178c40._0x24332f),_0x3fc2f2=_0x3c8b2f(_0x178c40._0x21ea59,0x454,_0x178c40._0x5e08b2,_0x178c40._0x3dc6ca);else _0x2006f2['includes'](_0x205ea1(_0x178c40._0x789b92,0x1ee,0x174,_0x178c40._0x2242f5))?(_0x2f9ace=_0x36d62c[_0x205ea1(-0x115,-0xf8,-_0x178c40._0x577fe1,-_0x178c40._0x2393e7)](_0x30688f),_0x3fc2f2='markdown'):(_0x2f9ace=_0x30688f,_0x3fc2f2=_0x3c8b2f(0x770,_0x178c40._0xe3fd02,0x5f0,0x680));return yield createToolOutput(_0x2f9ace,{'url':_0x1b3aed,'contentType':_0x2006f2,'statusCode':_0x34fd18,'format':_0x3fc2f2,'size':_0x30688f[_0x3c8b2f(0x40f,_0x178c40._0x3df7cd,_0x178c40._0x139fb1,_0x178c40._0x20af2d)],'fetchedAt':_0x5c4a1f}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x29bb69(0x114,-0x19,-0xf3,0x26);function normalizeUrl(_0x9f79a1){const _0x382669={_0x1f0616:0x82f,_0x14d4ce:0x785,_0x5697a8:0x63d,_0x5048e7:0x38d,_0x554d06:0x6c5,_0x4e7c61:0x8fa,_0xef2da7:0x281,_0x10d162:0x323,_0x5d68e6:0x56b,_0x517149:0x455,_0x48f40:0x41a,_0x148686:0x3cc,_0x45dc9:0x644,_0xe72ec5:0x53b},_0x4d3b4b={_0x57e523:0x7c,_0x4d2afb:0x681,_0x360168:0x166},_0x4a06d9={_0x293d23:0x155};function _0x327367(_0x57eaea,_0xf14264,_0x6ef21f,_0x4b3c64){return _0x567203(_0x57eaea,_0xf14264-0x17a,_0x4b3c64-0x261,_0x4b3c64-_0x4a06d9._0x293d23);}function _0x3b5dce(_0x134e22,_0x1e43ef,_0x30b1f6,_0x2ae018){return _0x29bb69(_0x134e22-_0x4d3b4b._0x57e523,_0x1e43ef-_0x4d3b4b._0x4d2afb,_0x134e22,_0x2ae018-_0x4d3b4b._0x360168);}try{const _0x29aca6=new URL(_0x9f79a1);for(const _0x410517 of[_0x3b5dce(_0x382669._0x1f0616,_0x382669._0x14d4ce,0x638,_0x382669._0x5697a8),'utm_medium',_0x327367(0x33c,0x303,0x3d0,_0x382669._0x5048e7),_0x3b5dce(_0x382669._0x554d06,0x7a8,_0x382669._0x4e7c61,0x784),_0x3b5dce(0x558,0x661,0x5f4,0x6d1),_0x327367(_0x382669._0xef2da7,0x2de,0x46f,_0x382669._0x10d162),'fbclid','mc_cid',_0x327367(_0x382669._0x5d68e6,0x36f,0x3eb,_0x382669._0x517149)]){_0x29aca6[_0x327367(0x2f7,0x1fd,0x2b3,0x2ec)][_0x327367(0x403,_0x382669._0x48f40,0x472,_0x382669._0x148686)](_0x410517);}return _0x29aca6[_0x3b5dce(_0x382669._0x45dc9,_0x382669._0xe72ec5,0x618,0x46a)]();}catch{return _0x9f79a1;}}function cseDateRestrict(_0x410453){const _0x434854={_0x23ce4a:0x3a,_0x187e80:0x10f,_0x32c025:0xd5,_0x52d567:0xb6},_0x87cd86={_0x3eb8e7:0x1df,_0x2e983a:0x704},_0x666467={_0x32a174:0x171,_0x11b706:0xaf};if(_0x410453<=0x0)return void 0x0;if(_0x410453<=0x1e)return'd'+Math[_0x21d064(-_0x434854._0x23ce4a,_0x434854._0x187e80,_0x434854._0x32c025,_0x434854._0x52d567)](0x1,Math[_0x21d064(0x44,0xe7,0x148,0x26)](_0x410453));function _0x21d064(_0x33516c,_0x78b0a1,_0x30bca7,_0x5b426a){return _0x29bb69(_0x33516c-_0x666467._0x32a174,_0x5b426a-0x150,_0x30bca7,_0x5b426a-_0x666467._0x11b706);}function _0x4acd56(_0x13a8de,_0x8fcef7,_0x1e9334,_0x34e426){return _0x29bb69(_0x13a8de-_0x87cd86._0x3eb8e7,_0x13a8de-_0x87cd86._0x2e983a,_0x34e426,_0x34e426-0x152);}if(_0x410453<=0x16d)return'm'+Math[_0x21d064(-0x33,-0x7f,0x50,-0x15)](_0x410453/0x1e);return'y'+Math[_0x21d064(0xf0,-0x10a,-0x41,-0x15)](_0x410453/0x16d);}function addSiteFilters(_0x4c45d8,_0x360597){const _0x14a6a7={_0x39ac33:0xe5,_0x583af2:0xf0,_0x34a4ee:0x1fc,_0x53edd4:0x83,_0x4a60dc:0x73e,_0x28091:0x281,_0x3454b0:0x2a8,_0x4884e2:0x16,_0x9e0c90:0x2},_0xc65490={_0x4d7bb4:0x169,_0x247261:0xd2};function _0x406608(_0x190ba8,_0x50d5e1,_0x5e1d69,_0x5022cc){return _0x29bb69(_0x190ba8-0x1b3,_0x5022cc-0x6bb,_0x50d5e1,_0x5022cc-0x143);}function _0x2bae41(_0x4f4b58,_0x274924,_0x3396f6,_0x4e2eb2){return _0x29bb69(_0x4f4b58-_0xc65490._0x4d7bb4,_0x4f4b58-0x233,_0x274924,_0x4e2eb2-_0xc65490._0x247261);}if(_0x360597[_0x2bae41(_0x14a6a7._0x39ac33,0x1d8,0x3c,0x1ef)]===0x0)return _0x4c45d8[_0x2bae41(0xe9,_0x14a6a7._0x583af2,_0x14a6a7._0x34a4ee,_0x14a6a7._0x53edd4)]();return(_0x4c45d8+'\x20('+_0x360597['map'](_0x414b45=>_0x2bae41(0x29d,0x2de,0x218,0x37d)+_0x414b45)[_0x406608(0x6f6,_0x14a6a7._0x4a60dc,0x65c,0x6b5)](_0x2bae41(_0x14a6a7._0x28091,_0x14a6a7._0x3454b0,0x22f,0x136))+')')[_0x2bae41(0xe9,_0x14a6a7._0x4884e2,-_0x14a6a7._0x9e0c90,0x22f)]();}function normalizeType(_0x314302){return _0x314302==='images'?'images':'web';}async function fetchJson(_0x527c6d,_0x10c157,_0x38c6f8){const _0x2a8cd3={_0x1f517b:0x4fe,_0x1c7661:0x495,_0x4bb2d7:0x358,_0x2daa18:0x295,_0x5899a6:0x5cc,_0x58595a:0x4a2,_0x94e9f0:0x2e9,_0x2f352f:0x351,_0x573ef1:0x3d0,_0x271694:0x575,_0x2dbe1d:0x68a,_0x3ea302:0x6a7,_0x287b69:0x5d8,_0x4491a9:0x14c,_0x31e28f:0x225,_0x1c3221:0x2,_0x164c3d:0x513,_0x5735a6:0x4d0,_0x14d6c6:0x5be,_0x14e39d:0x667,_0x37cc5d:0x70c,_0x4db198:0x71b,_0x410447:0x39,_0x30b388:0x55c,_0x40440f:0x5d0,_0x58f3a3:0x766,_0x1dabe6:0x4d5,_0x19873b:0x3ce,_0xbe4a2f:0x658,_0xa7e652:0x87a,_0x1b057e:0x4b2,_0x48c643:0x7c2,_0x25df68:0x73c,_0x534176:0x636,_0x5b7898:0x1dd},_0x71b590={_0x3d68ad:0x1c4,_0x31cd66:0x139,_0x3ba027:0x1ae},_0x48b232={_0x5bc383:0x1f4,_0x387d56:0xaa},_0x4d38cd=await fetch(_0x527c6d,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x706dc5(0x5dc,_0x2a8cd3._0x1f517b,0x570,_0x2a8cd3._0x1c7661),..._0x38c6f8?.['headers']},'signal':_0x10c157,..._0x38c6f8});function _0x706dc5(_0x491273,_0x58d524,_0xf25987,_0x4ba028){return _0x29bb69(_0x491273-_0x48b232._0x5bc383,_0x58d524-0x5f1,_0x4ba028,_0x4ba028-_0x48b232._0x387d56);}function _0x1f018a(_0x2d2e70,_0x4e2855,_0x47dfb3,_0x2436a1){return _0x567203(_0x47dfb3,_0x4e2855-_0x71b590._0x3d68ad,_0x2d2e70-_0x71b590._0x31cd66,_0x2436a1-_0x71b590._0x3ba027);}if(!_0x4d38cd['ok']){let _0x4596a1,_0x16396c;try{_0x4596a1=await _0x4d38cd[_0x1f018a(_0x2a8cd3._0x4bb2d7,_0x2a8cd3._0x2daa18,0x295,0x3bc)]();const _0x1a4d9c=JSON[_0x706dc5(0x6ce,_0x2a8cd3._0x5899a6,_0x2a8cd3._0x58595a,0x54f)](_0x4596a1),_0x3116a0=typeof _0x1a4d9c[_0x1f018a(0x306,_0x2a8cd3._0x94e9f0,0x1eb,0x278)]===_0x1f018a(_0x2a8cd3._0x2f352f,_0x2a8cd3._0x573ef1,0x2c0,0x430)?_0x1a4d9c[_0x706dc5(_0x2a8cd3._0x271694,_0x2a8cd3._0x2dbe1d,_0x2a8cd3._0x3ea302,_0x2a8cd3._0x287b69)][_0x1f018a(_0x2a8cd3._0x4491a9,_0x2a8cd3._0x31e28f,0x238,_0x2a8cd3._0x1c3221)]:void 0x0;_0x16396c=_0x1a4d9c[_0x706dc5(_0x2a8cd3._0x164c3d,_0x2a8cd3._0x5735a6,_0x2a8cd3._0x14d6c6,0x386)]?.[_0x706dc5(0x51f,_0x2a8cd3._0x14e39d,_0x2a8cd3._0x37cc5d,_0x2a8cd3._0x4db198)]??_0x1a4d9c[_0x1f018a(_0x2a8cd3._0x4491a9,-0x3,_0x2a8cd3._0x410447,0xfb)]?.['errors']?.[0x0]?.[_0x706dc5(_0x2a8cd3._0x30b388,_0x2a8cd3._0x14e39d,_0x2a8cd3._0x40440f,_0x2a8cd3._0x58f3a3)]??_0x3116a0;}catch{}const _0x573dd7=_0x16396c?_0x706dc5(0x51e,_0x2a8cd3._0x1dabe6,0x4e8,_0x2a8cd3._0x19873b)+_0x4d38cd[_0x706dc5(0x790,0x72a,_0x2a8cd3._0xbe4a2f,_0x2a8cd3._0xa7e652)]+':\x20'+_0x16396c:_0x706dc5(0x4b1,0x4d5,_0x2a8cd3._0x1b057e,0x5c0)+_0x4d38cd[_0x706dc5(0x5d6,0x72a,_0x2a8cd3._0x48c643,0x785)]+'\x20'+_0x4d38cd[_0x706dc5(_0x2a8cd3._0x25df68,0x661,0x5ac,_0x2a8cd3._0x534176)];throw new ToolExecutionError(_0x573dd7,{'statusCode':_0x4d38cd['status'],..._0x4596a1?{'body':_0x4596a1}:{}});}return await _0x4d38cd[_0x1f018a(0x160,0x20e,0x259,_0x2a8cd3._0x5b7898)]();}async function hydrateResults(_0x1ba91b,_0x24b19d,_0x37ca18){const _0x235b73={_0x5bfba2:0x40b,_0x44370b:0x420,_0x308c0a:0x446,_0x2a96b5:0x32e,_0x256762:0x22c,_0x1d4449:0xda,_0x269d06:0x2b8,_0x24fb80:0x172},_0x760e63={_0x276c81:0x4c,_0x245c28:0x16a,_0x4ce9e0:0x10b},_0x469f5c={_0x1542d0:0x3f},_0x40f980={_0x18905b:0x1cb,_0x3058d1:0x3c4,_0x1c475d:0x298,_0x5d4020:0x2fb,_0x3f0821:0x49,_0x5a0d86:0xe2,_0x36c4a8:0x1ba,_0x470218:0x14c,_0x4c9513:0x22e,_0x47a945:0x22d,_0x5ca044:0x337,_0x553acf:0x1f8,_0x4f3a61:0xcf,_0x11fbd9:0x568,_0x1f60fc:0x62b,_0x1af570:0x3d0,_0x3f93ee:0x470,_0x32fcd5:0x282,_0x2ed7db:0x32b,_0x3b43f6:0x55b,_0x3d2d13:0x297,_0x15d280:0x22a,_0x26c77c:0x35d,_0x4762ae:0xd8,_0x44f696:0x95,_0x31fd89:0x146,_0x21c661:0x18f,_0x45280a:0x179,_0x6a2610:0x17f,_0x207449:0x138,_0x314762:0x120,_0x10d7eb:0x410,_0x58597e:0x316,_0x48c34e:0x32,_0xfd4cf9:0xca,_0x18450c:0x1c0},_0x1c5e7c=await Promise['all'](_0x1ba91b[_0x482b72(_0x235b73._0x5bfba2,_0x235b73._0x44370b,0x409,_0x235b73._0x308c0a)](0x0,0xa)[_0x482b72(_0x235b73._0x2a96b5,0x12d,_0x235b73._0x256762,0x234)](async _0x46ff76=>{const _0x34f42d={_0x516522:0xb3},_0x4433bb={_0x37b280:0xea,_0x196089:0x18e,_0x511457:0x4c0};function _0x2bb899(_0x4d33b3,_0x382790,_0x12f260,_0x586532){return _0x22eecf(_0x4d33b3-_0x4433bb._0x37b280,_0x382790-_0x4433bb._0x196089,_0x12f260,_0x4d33b3-_0x4433bb._0x511457);}function _0x105649(_0x39bc94,_0x2e2d14,_0x42e8f8,_0x267c8f){return _0x482b72(_0x39bc94-0x22,_0x39bc94,_0x2e2d14- -0x158,_0x267c8f-_0x34f42d._0x516522);}try{const _0x5688b2=await fetch(_0x46ff76['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x24b19d,'Accept':_0x105649(_0x40f980._0x18905b,0x30a,0x202,_0x40f980._0x3058d1)},'signal':_0x37ca18});if(!_0x5688b2['ok'])return _0x46ff76;const _0x3e6365=await _0x5688b2[_0x105649(_0x40f980._0x1c475d,_0x40f980._0x5d4020,0x449,0x335)](),_0x4f0a61=load(_0x3e6365),_0x25f864=_0x4f0a61(_0x105649(_0x40f980._0x3f0821,_0x40f980._0x5a0d86,0xd6,0xb0))[_0x105649(_0x40f980._0x36c4a8,0x156,0x3d,0x99)]('content')||_0x4f0a61('title')[_0x105649(0x2b,0x16f,0xd2,_0x40f980._0x470218)]()[_0x105649(0x24c,0x2fb,_0x40f980._0x4c9513,0x3b8)]()[_0x2bb899(0x340,0x2a4,0x211,_0x40f980._0x47a945)](),_0x33df76=_0x4f0a61('meta[name=\x27description\x27]')[_0x105649(0xd9,0x156,0x180,0x1f5)](_0x105649(_0x40f980._0x5ca044,_0x40f980._0x553acf,0x1ce,_0x40f980._0x4f3a61))||_0x4f0a61('meta[property=\x27og:description\x27]')[_0x2bb899(0x3d0,0x4d0,0x3cc,0x371)]('content')||_0x46ff76[_0x2bb899(0x581,_0x40f980._0x11fbd9,_0x40f980._0x1f60fc,0x5dc)],_0x1fd884=_0x4f0a61('meta[property=\x27article:published_time\x27]')[_0x2bb899(_0x40f980._0x1af570,_0x40f980._0x3f93ee,_0x40f980._0x32fcd5,_0x40f980._0x2ed7db)](_0x2bb899(0x472,_0x40f980._0x3b43f6,0x351,0x3b9))||_0x4f0a61(_0x105649(0x35e,_0x40f980._0x3d2d13,0x1bd,_0x40f980._0x15d280))['attr'](_0x105649(0x146,0x20c,_0x40f980._0x26c77c,0x128))||_0x46ff76[_0x105649(-0x9,_0x40f980._0x4762ae,0x47,_0x40f980._0x44f696)],_0x258f44=_0x4f0a61(_0x105649(_0x40f980._0x31fd89,0x23c,_0x40f980._0x21c661,0x2f4))[_0x2bb899(_0x40f980._0x1af570,0x3c9,0x4ee,0x370)]('href');return{..._0x46ff76,'title':_0x25f864||_0x46ff76[_0x105649(_0x40f980._0x45280a,_0x40f980._0x6a2610,_0x40f980._0x207449,_0x40f980._0x314762)],'snippet':_0x33df76,'url':_0x258f44?normalizeUrl(new URL(_0x258f44,_0x46ff76[_0x105649(_0x40f980._0x10d7eb,0x2e4,0x396,_0x40f980._0x58597e)])[_0x105649(_0x40f980._0x48c34e,_0x40f980._0xfd4cf9,_0x40f980._0x18450c,-0x45)]()):_0x46ff76['url'],'publishedAt':_0x1fd884};}catch{return _0x46ff76;}}));function _0x482b72(_0xb37ea8,_0x5d71c3,_0xfb5f38,_0x124408){return _0x567203(_0x5d71c3,_0x5d71c3-_0x469f5c._0x1542d0,_0xfb5f38-0x234,_0x124408-0xa4);}const _0x47f084=new Map(_0x1ba91b[_0x22eecf(-0x6d,-0x31,_0x235b73._0x1d4449,0x6b)](0x0,0xa)['map']((_0x397c8e,_0x5b2aaf)=>[_0x397c8e[_0x482b72(0x50c,0x4a7,0x43c,0x3c1)],_0x1c5e7c[_0x5b2aaf]]));function _0x22eecf(_0x26bdda,_0x537b0c,_0x53f029,_0x29aa73){return _0x567203(_0x53f029,_0x537b0c-_0x760e63._0x276c81,_0x29aa73- -_0x760e63._0x245c28,_0x29aa73-_0x760e63._0x4ce9e0);}return _0x1ba91b[_0x22eecf(-0x138,-_0x235b73._0x269d06,-0x9b,-_0x235b73._0x24fb80)](_0x72c301=>_0x47f084[_0x482b72(0x358,0x3a5,0x2b7,0x294)](_0x72c301[_0x22eecf(0x1aa,0x142,0xa7,0x9e)])??_0x72c301);}function formatResults(_0x3246d8){const _0x13a4ce={_0x57beab:0x303,_0x346f5e:0x272,_0x4a1d6d:0x561},_0x4bd0a5={_0x211d46:0x3fe,_0x2c8305:0x44a,_0xf3f2d9:0x18e,_0x7854:0x39,_0xc06b74:0x3bd,_0x2ded49:0x391,_0xacf58e:0x348,_0x5bec8b:0x32e,_0x435583:0x313,_0x4d4850:0x451,_0x47c9e0:0x316,_0x4a91f3:0x230,_0x12110e:0x446,_0x3f9312:0x495,_0x2a3582:0x414,_0x3bb737:0x318,_0x3ba419:0x211,_0x178644:0x206,_0x2da83e:0x1bd,_0x18dc8c:0x171,_0x1ab755:0xe7,_0x3862e5:0x135,_0x4ab365:0x2c6},_0x3fe9a8={_0x4ae36a:0x30b},_0x35fce={_0x3efa42:0x49c};function _0x50de72(_0x16dc8f,_0x44260c,_0x387248,_0x1a2aa9){return _0x29bb69(_0x16dc8f-0xe7,_0x1a2aa9-_0x35fce._0x3efa42,_0x16dc8f,_0x1a2aa9-0x11d);}function _0x2a9fed(_0x1d1351,_0xffa71a,_0x2a8bd9,_0x325439){return _0x567203(_0x325439,_0xffa71a-0xb6,_0x1d1351-_0x3fe9a8._0x4ae36a,_0x325439-0xea);}if(_0x3246d8['length']===0x0)return'No\x20results\x20found.';return _0x3246d8[_0x2a9fed(_0x13a4ce._0x57beab,0x405,_0x13a4ce._0x346f5e,0x238)](_0x2f85af=>{const _0x5e1c95={_0x3a9bbf:0x190},_0x15fbf5={_0x216953:0x166,_0x4063c7:0x105},_0x2991a8=[_0x2f85af[_0x1c270b(0x38c,0x252,0x385,0x32b)][_0x1c270b(0x2f7,_0x4bd0a5._0x211d46,0x341,_0x4bd0a5._0x2c8305)]+'.\x20'+_0x2f85af[_0xc20041(0xdc,0xed,_0x4bd0a5._0xf3f2d9,_0x4bd0a5._0x7854)],_0x2f85af['url']];if(_0x2f85af[_0xc20041(0x217,_0x4bd0a5._0xc06b74,0x316,0x35b)])_0x2991a8[_0x1c270b(0x3f6,_0x4bd0a5._0x2ded49,_0x4bd0a5._0xacf58e,_0x4bd0a5._0x5bec8b)](_0x2f85af[_0xc20041(_0x4bd0a5._0x435583,_0x4bd0a5._0x4d4850,_0x4bd0a5._0x47c9e0,_0x4bd0a5._0x4a91f3)]);function _0x1c270b(_0x446689,_0x332c49,_0x3da3e0,_0x4c64ae){return _0x2a9fed(_0x332c49- -_0x15fbf5._0x216953,_0x332c49-_0x15fbf5._0x4063c7,_0x3da3e0-0xbb,_0x446689);}if(_0x2f85af['publishedAt'])_0x2991a8[_0x1c270b(_0x4bd0a5._0x12110e,0x391,_0x4bd0a5._0x3f9312,_0x4bd0a5._0x2a3582)](_0x1c270b(0x2b8,_0x4bd0a5._0x3bb737,_0x4bd0a5._0x3ba419,_0x4bd0a5._0x178644)+_0x2f85af[_0xc20041(_0x4bd0a5._0x2da83e,_0x4bd0a5._0x18dc8c,_0x4bd0a5._0x1ab755,_0x4bd0a5._0x3862e5)]);function _0xc20041(_0x5c31b2,_0x532980,_0x56f082,_0x48af39){return _0x2a9fed(_0x56f082- -0x220,_0x532980-0xfc,_0x56f082-_0x5e1c95._0x3a9bbf,_0x5c31b2);}return _0x2991a8[_0x1c270b(0x23f,0x2d3,0x1ad,_0x4bd0a5._0x4ab365)]('\x0a');})[_0x2a9fed(0x439,_0x13a4ce._0x4a1d6d,0x310,0x3a9)]('\x0a\x0a');}async function searchOllama(_0x57eae0,_0x4a1a6f,_0x1fea9e){const _0xf15434={_0x3fe8fb:0x277,_0x418fd7:0x203,_0x282e94:0x332,_0x41f0a5:0x1e6,_0x29d690:0x468,_0x47d57f:0x529,_0x4164b6:0x5ec,_0x25586e:0x40f,_0x2e91ec:0x3d5,_0x4c5658:0x35f,_0x31646f:0x56b,_0x4a6702:0x2a8,_0x3b2dc9:0x74,_0x4f1244:0x144,_0x22f918:0xab,_0x314ba9:0x1ca,_0x544d38:0x199,_0x56b7b5:0x38b,_0x1ada65:0x402},_0x62392c={_0xf6cf06:0x61,_0x5a268d:0x96,_0x815140:0xdf,_0x2a3f98:0xc2,_0x2cf219:0x104,_0x3a9d50:0x38,_0x345a7f:0x28d,_0x31c6b4:0x12,_0x55af47:0xc8},_0x19a781={_0x2ed490:0x4b,_0xce34ef:0x80},_0x5c1394={_0xd57c2c:0x29d,_0x167b59:0x17d},_0xce1ee0={_0x2de9eb:0x82,_0x7691a6:0x470,_0x758b89:0x1ba},_0x44411c=Math[_0x48605f(_0xf15434._0x3fe8fb,_0xf15434._0x418fd7,_0xf15434._0x282e94,_0xf15434._0x41f0a5)](0x1,Math[_0x523789(0x53c,0x3e9,_0xf15434._0x29d690,_0xf15434._0x47d57f)](0xa,_0x4a1a6f[_0x523789(0x5a7,0x5ef,_0xf15434._0x4164b6,0x4ae)])),_0x1f2fc8=addSiteFilters(_0x4a1a6f[_0x523789(0x3f7,0x5c5,_0xf15434._0x25586e,0x479)],_0x4a1a6f[_0x523789(0x52d,_0xf15434._0x2e91ec,0x5da,0x518)]);function _0x523789(_0xd1e0e9,_0x9d0cd9,_0x1d379c,_0x54d067){return _0x29bb69(_0xd1e0e9-_0xce1ee0._0x2de9eb,_0x54d067-_0xce1ee0._0x7691a6,_0x9d0cd9,_0x54d067-_0xce1ee0._0x758b89);}const _0x36561f=await fetchJson(_0x523789(0x438,_0xf15434._0x4c5658,0x402,0x35e),_0x1fea9e,{'method':_0x523789(0x561,0x49d,0x61b,_0xf15434._0x31646f),'headers':{'Authorization':_0x48605f(0x1d4,0x1b5,0x28c,_0xf15434._0x4a6702)+_0x57eae0[_0x48605f(0x494,0x396,0x301,0x437)]},'body':JSON[_0x48605f(_0xf15434._0x3b2dc9,_0xf15434._0x4f1244,_0xf15434._0x22f918,0x1e3)]({'query':_0x1f2fc8,'max_results':_0x44411c})}),_0x3a75ef=_0x36561f[_0x48605f(0x213,_0xf15434._0x314ba9,_0xf15434._0x544d38,0xf8)]??[];function _0x48605f(_0x4d21d6,_0x1e0c0e,_0x32f18b,_0x452497){return _0x29bb69(_0x4d21d6-0x42,_0x1e0c0e-_0x5c1394._0xd57c2c,_0x32f18b,_0x452497-_0x5c1394._0x167b59);}const _0x3986d5=_0x3a75ef[_0x523789(0x2a9,_0xf15434._0x56b7b5,_0xf15434._0x1ada65,0x334)]((_0x368457,_0x4e1184)=>{const _0x4a796c={_0x2b65ff:0x14a,_0x3e72a1:0x129},_0x152c8b=_0x368457[_0x14312e(0xd7,0x1b,0xfe,_0x62392c._0xf6cf06)]||'';let _0xd9895e;function _0x14312e(_0x3eea67,_0xfd1a2e,_0x3c7c0f,_0x2a9a8d){return _0x523789(_0x3eea67-_0x4a796c._0x2b65ff,_0xfd1a2e,_0x3c7c0f-_0x4a796c._0x3e72a1,_0x3c7c0f- -0x446);}function _0x40d4b6(_0xeafc8a,_0x4f7209,_0x406861,_0x27407b){return _0x523789(_0xeafc8a-_0x19a781._0x2ed490,_0x27407b,_0x406861-_0x19a781._0xce34ef,_0xeafc8a- -0x31d);}try{_0xd9895e=new URL(_0x152c8b)[_0x14312e(-_0x62392c._0x5a268d,-_0x62392c._0x815140,-0x11a,-0x21c)];}catch{_0xd9895e=null;}return{'title':_0x368457[_0x40d4b6(_0x62392c._0x2a3f98,0x19b,_0x62392c._0x2cf219,-_0x62392c._0x3a9d50)]||_0x40d4b6(0x172,_0x62392c._0x345a7f,0x271,0xbf),'url':normalizeUrl(_0x152c8b),'snippet':_0x368457[_0x14312e(0x112,0xb3,_0x62392c._0x31c6b4,-0x54)]??null,'displayUrl':_0xd9895e,'favicon':null,'publishedAt':null,'source':{'engine':_0x14312e(-0xfd,-0x10b,-0x5f,_0x62392c._0x55af47),'rank':_0x4e1184+0x1}};});return{'items':_0x3986d5['slice'](0x0,_0x44411c),'engine':'ollama'};}async function searchTavily(_0x13cf40,_0x2b804b,_0x6c7d58){const _0x52d3c0={_0x5dd360:0x698,_0x135941:0x795,_0x5123be:0x646,_0x6bfad:0x799,_0x4f6e91:0x6de,_0x3d4084:0x6b8,_0x9727dd:0x60a,_0x54fa1a:0x6e9,_0x14ba76:0x677,_0x41695f:0x721,_0x165e57:0x6e6,_0x5f4ae4:0x65a,_0x5d2771:0x63f,_0x3f41bd:0x651,_0x1473b8:0x568,_0x207094:0x582,_0x8516e4:0x69c,_0x2a4a5f:0x7db,_0x476c6e:0x567,_0x15abef:0x322,_0x57aa7f:0x60d,_0x3ced68:0x3e8,_0x45b760:0x3dd,_0x31cca7:0x3cd,_0x23d4b4:0x5f0,_0x2a0a90:0x5ba,_0x2fefd0:0x6e7,_0x433a29:0x4de},_0x3aa83d={_0x30bda0:0x6da,_0x4562c5:0x27f,_0x483ee3:0x2ec,_0x4340c6:0x1f6,_0x3220ca:0x1ff,_0x5f05f3:0x575,_0x1e0aaf:0x5cd,_0x4f79f5:0x650,_0x3ce535:0x625,_0x55a622:0x648,_0xa89e17:0x588,_0x4e6e22:0x5ee,_0x10e5bd:0x715,_0x1b29a4:0x4a3,_0x1f0a8c:0x5c1},_0x5db4d3={_0x398b28:0x13f},_0x14d32b={_0x28c929:0x8d},_0x371bf3={_0x2aabf7:0x1b5};function _0xa61c7f(_0x496ed6,_0x352b84,_0x557a4e,_0x31f9b4){return _0x29bb69(_0x496ed6-0x36,_0x31f9b4-0x6e0,_0x496ed6,_0x31f9b4-_0x371bf3._0x2aabf7);}function _0xff4699(_0x49e844,_0x1914ef,_0x19a19c,_0x1fdfd8){return _0x29bb69(_0x49e844-0x106,_0x1914ef-0x519,_0x49e844,_0x1fdfd8-_0x14d32b._0x28c929);}const _0x104245=Math[_0xa61c7f(_0x52d3c0._0x5dd360,0x675,_0x52d3c0._0x135941,_0x52d3c0._0x5123be)](0x1,Math[_0xa61c7f(0x787,0x7eb,0x741,_0x52d3c0._0x6bfad)](0x14,_0x2b804b['count'])),_0x13201d={'query':_0x2b804b[_0xa61c7f(_0x52d3c0._0x4f6e91,_0x52d3c0._0x3d4084,_0x52d3c0._0x9727dd,_0x52d3c0._0x54fa1a)],'max_results':_0x104245,'search_depth':_0x13cf40[_0xa61c7f(0x6b7,_0x52d3c0._0x14ba76,_0x52d3c0._0x41695f,_0x52d3c0._0x165e57)]??_0xa61c7f(_0x52d3c0._0x5f4ae4,_0x52d3c0._0x5d2771,0x516,_0x52d3c0._0x3f41bd),'topic':_0x13cf40[_0xff4699(0x585,_0x52d3c0._0x1473b8,0x520,_0x52d3c0._0x207094)]??'general'};if(_0x2b804b['domains']['length']>0x0)_0x13201d['include_domains']=_0x2b804b['domains'];const _0x3fefb1=await fetchJson('https://api.tavily.com/search',_0x6c7d58,{'method':_0xa61c7f(0x72a,0x6fe,_0x52d3c0._0x8516e4,_0x52d3c0._0x2a4a5f),'headers':{'Authorization':'Bearer\x20'+_0x13cf40[_0xff4699(0x6f6,0x5fe,0x729,_0x52d3c0._0x476c6e)],'Content-Type':'application/json'},'body':JSON[_0xff4699(_0x52d3c0._0x15abef,0x3c0,0x382,0x4b9)](_0x13201d)}),_0x242923=_0x3fefb1[_0xa61c7f(0x53a,0x599,0x700,_0x52d3c0._0x57aa7f)]??[],_0x14f8f9=_0x242923[_0xff4699(_0x52d3c0._0x3ced68,_0x52d3c0._0x45b760,_0x52d3c0._0x31cca7,0x447)]((_0x52c24f,_0x4e86a2)=>{const _0x21b94={_0x3fa12c:0xed,_0x28e7ef:0x4c};function _0x49ed91(_0x87da1d,_0x51d2fe,_0x16e300,_0x3d22f6){return _0xff4699(_0x3d22f6,_0x87da1d-_0x21b94._0x3fa12c,_0x16e300-0xc8,_0x3d22f6-_0x21b94._0x28e7ef);}function _0x4df6ed(_0x3604d1,_0x145302,_0x1f1517,_0x1c1267){return _0xa61c7f(_0x145302,_0x145302-_0x5db4d3._0x398b28,_0x1f1517-0x1f3,_0x1f1517- -0x3a6);}const _0x353d7b=_0x52c24f[_0x49ed91(_0x3aa83d._0x30bda0,0x79e,0x630,0x5e8)]||'';let _0x255be3;try{_0x255be3=new URL(_0x353d7b)[_0x4df6ed(_0x3aa83d._0x4562c5,_0x3aa83d._0x483ee3,_0x3aa83d._0x4340c6,_0x3aa83d._0x3220ca)];}catch{_0x255be3=null;}return{'title':_0x52c24f[_0x49ed91(_0x3aa83d._0x5f05f3,0x4f4,_0x3aa83d._0x1e0aaf,_0x3aa83d._0x4f79f5)]||_0x49ed91(_0x3aa83d._0x3ce535,_0x3aa83d._0x55a622,_0x3aa83d._0xa89e17,0x710),'url':normalizeUrl(_0x353d7b),'snippet':_0x52c24f[_0x49ed91(_0x3aa83d._0x4e6e22,0x72b,_0x3aa83d._0x10e5bd,_0x3aa83d._0x1b29a4)]??null,'displayUrl':_0x255be3,'favicon':null,'publishedAt':null,'source':{'engine':_0x49ed91(_0x3aa83d._0x1f0a8c,0x470,0x497,0x70b),'rank':_0x4e86a2+0x1}};});return{'items':_0x14f8f9[_0xff4699(_0x52d3c0._0x23d4b4,_0x52d3c0._0x2a0a90,_0x52d3c0._0x2fefd0,_0x52d3c0._0x433a29)](0x0,_0x104245),'engine':'tavily'};}async function searchGoogleCse(_0x431007,_0x36c4bb,_0x22f67c){const _0x5e517f={_0x2c38f5:0x187,_0x230c07:0x1cc,_0x210ead:0xbd,_0x15e880:0x24,_0x29e7e4:0xde,_0x11b7dc:0xb2,_0x3c68c2:0x68,_0x270608:0x13,_0x2905ed:0xb3,_0x7e46b8:0x161,_0x2c0a4a:0x13,_0x23a9b1:0x13d,_0x23530a:0x227,_0x56591b:0x89,_0x2a1d03:0x217,_0x18b737:0x10a,_0x420490:0x13e,_0x12d8b6:0x113,_0x116ac5:0x20d,_0x445556:0x103,_0x21b020:0x134,_0x4070f0:0xa8,_0x435108:0x112,_0xc7000a:0x228,_0x27ebbd:0x10d,_0x117d96:0x2a,_0x28276a:0x1a9,_0x571461:0x15b,_0x35f550:0x8d,_0x280d7f:0x6,_0x63d693:0x157,_0xe97724:0x130,_0x21ecaa:0x1d1,_0x1d5baf:0xff,_0x5dfa04:0xb8,_0x493a11:0xe7,_0x5b6011:0xd2,_0x9c8ffd:0x55,_0x2a3148:0x5c,_0x1291a7:0xf2,_0x482f2c:0x1cf,_0x3c642a:0x1a8,_0x58616:0x148,_0x3bb461:0x1aa,_0x52368c:0x154,_0x136e1e:0x30,_0x3701cc:0x98,_0x3bba67:0xf7,_0x3ad255:0x59,_0x5934a0:0x95,_0x39741e:0x1d1,_0x5f1271:0x13e,_0x1f658b:0x295,_0x1b0aa8:0x79,_0x463f9c:0x22,_0x217704:0xb1,_0x363106:0x8d,_0x1cff69:0x287,_0x3a0fe3:0x13e,_0x531fa3:0x150,_0x5e99d2:0x104,_0x305a2d:0x78,_0x7d2f4d:0x182,_0x31f1b6:0x6d,_0x73869e:0x9,_0x57ec49:0xa5,_0x4abfab:0x162,_0x2ce25e:0x163,_0x22c076:0x55,_0x3ad977:0xcc,_0x2ebc1f:0xb8,_0x537bcc:0x140,_0x5bcdee:0xdf,_0x4003ec:0x65,_0xbf2e4a:0x35,_0x4dbc5f:0x130,_0xf404f5:0x218,_0x3dd751:0x166,_0x2193b1:0x10c,_0x406b1c:0x169,_0x1db464:0x177,_0x56522f:0x1ab,_0x3ccc61:0x56,_0x3423c1:0x171,_0x3c6eba:0x33,_0x40a8e3:0x3c,_0xf9adb3:0x16b,_0xe9c001:0x17b,_0x14cc5e:0x118,_0x111132:0xc9,_0xa6365:0x71,_0x39b23d:0x45,_0xced6bb:0x129,_0x5881f2:0xb4,_0x19c6b2:0x22a,_0x218807:0x109,_0x22c39d:0x126,_0x450937:0x20c,_0x113998:0xd4,_0x33fdb7:0x84,_0x441747:0x14,_0xedd4ba:0x6e,_0x4ec3f4:0xce,_0x372055:0x1cc,_0x14193f:0x21c,_0x2f15f1:0x187,_0x2d8b47:0x51,_0x1705c5:0x1a0,_0x47f118:0x289,_0x428023:0x162,_0x1b9629:0x167,_0x59e9bc:0x1eb,_0x59fc7b:0x226,_0x3942c0:0x6f,_0x13ec10:0x1e3,_0xe7f5dc:0x1f6,_0x37db94:0x3},_0x7773bb={_0x538667:0x9a},_0xb613f7={_0x27e33c:0x157};function _0x137c35(_0x4a6d2e,_0x5db4a5,_0x286e01,_0x13ef24){return _0x567203(_0x4a6d2e,_0x5db4a5-0x152,_0x13ef24- -_0xb613f7._0x27e33c,_0x13ef24-0x132);}function _0x2042ef(_0x23c962,_0x6fb78b,_0x383f9a,_0xf51858){return _0x567203(_0xf51858,_0x6fb78b-_0x7773bb._0x538667,_0x23c962- -0x1c9,_0xf51858-0x105);}const _0x1c39b1=Math[_0x137c35(-_0x5e517f._0x2c38f5,-_0x5e517f._0x230c07,-0xd,-_0x5e517f._0x210ead)](0x1,Math[_0x2042ef(_0x5e517f._0x15e880,-_0x5e517f._0x29e7e4,-0xc5,-_0x5e517f._0x11b7dc)](0x32,_0x36c4bb[_0x2042ef(-0x57,_0x5e517f._0x3c68c2,-_0x5e517f._0x270608,-0x153)]));if(_0x36c4bb['offset']+_0x1c39b1>0x64)throw new ToolExecutionError(_0x137c35(-0x1f,-0x2d,0xcc,_0x5e517f._0x2905ed),{'offset':_0x36c4bb[_0x137c35(-0x9a,-0x6,-0x19,0x57)],'count':_0x1c39b1,'maxResults':0x64});const _0x1a0df3=cseDateRestrict(_0x36c4bb[_0x137c35(0x3a,0xb7,0x26,0x67)]),_0x42a816=addSiteFilters(_0x36c4bb[_0x2042ef(-0x8c,-_0x5e517f._0x7e46b8,-0x1e,-0xec)],_0x36c4bb[_0x2042ef(_0x5e517f._0x2c0a4a,0x73,_0x5e517f._0x23a9b1,0xf)]);let _0xd6147a=0x0,_0x4a8e29=_0x36c4bb[_0x137c35(0x149,_0x5e517f._0x7e46b8,-0xd6,0x57)]+0x1;const _0x40aa22=[];while(_0xd6147a<_0x1c39b1){const _0x2d6a17=Math['min'](0xa,_0x1c39b1-_0xd6147a),_0x56de8e=new URL(_0x137c35(_0x5e517f._0x23530a,_0x5e517f._0x56591b,_0x5e517f._0x2a1d03,_0x5e517f._0x18b737));_0x56de8e[_0x2042ef(-_0x5e517f._0x420490,-0x16c,-_0x5e517f._0x12d8b6,-_0x5e517f._0x116ac5)][_0x137c35(-0x1c2,-_0x5e517f._0x445556,-0xef,-0x8d)](_0x2042ef(0x43,_0x5e517f._0x21b020,-_0x5e517f._0x4070f0,-_0x5e517f._0x435108),_0x431007[_0x137c35(-_0x5e517f._0xc7000a,-_0x5e517f._0x27ebbd,-_0x5e517f._0x117d96,-0xe1)]),_0x56de8e['searchParams'][_0x137c35(-_0x5e517f._0x28276a,-_0x5e517f._0x571461,-0x125,-_0x5e517f._0x35f550)]('cx',_0x431007['googleCseCx']),_0x56de8e['searchParams'][_0x137c35(_0x5e517f._0x280d7f,0x4c,-0x1c,-0x8d)]('q',_0x42a816),_0x56de8e[_0x2042ef(-0x13e,-_0x5e517f._0x63d693,-_0x5e517f._0xe97724,-_0x5e517f._0x21ecaa)][_0x2042ef(-_0x5e517f._0x1d5baf,-0x1f0,-0x14e,-0x13)](_0x137c35(_0x5e517f._0x5dfa04,_0x5e517f._0x493a11,-_0x5e517f._0x5b6011,_0x5e517f._0x280d7f),String(_0x2d6a17)),_0x56de8e[_0x137c35(-0xb6,_0x5e517f._0x9c8ffd,-0x1c1,-0xcc)][_0x137c35(_0x5e517f._0x2a3148,-0x36,-_0x5e517f._0x1291a7,-0x8d)]('start',String(_0x4a8e29)),_0x56de8e[_0x2042ef(-0x13e,-0x84,-0x138,-_0x5e517f._0x482f2c)]['set'](_0x137c35(_0x5e517f._0x3c642a,_0x5e517f._0x58616,0xfa,0xf7),_0x36c4bb[_0x137c35(_0x5e517f._0x3bb461,_0x5e517f._0x52368c,0x22b,0xf7)]?_0x137c35(_0x5e517f._0x136e1e,_0x5e517f._0x3701cc,_0x5e517f._0x3bba67,_0x5e517f._0x3ad255):'off');_0x36c4bb[_0x137c35(-_0x5e517f._0x5934a0,-0x1ee,-_0x5e517f._0x39741e,-0x110)]&&(_0x56de8e[_0x2042ef(-_0x5e517f._0x5f1271,-_0x5e517f._0x1f658b,-0x123,-0xbc)][_0x137c35(_0x5e517f._0x1b0aa8,_0x5e517f._0x463f9c,-_0x5e517f._0x217704,-_0x5e517f._0x363106)]('hl',_0x36c4bb[_0x2042ef(-0x182,-_0x5e517f._0x1cff69,-0x12d,-0x10d)]),_0x56de8e[_0x2042ef(-_0x5e517f._0x3a0fe3,-0x3c,-_0x5e517f._0x531fa3,-0x16)]['set']('lr',_0x137c35(_0x5e517f._0x5e99d2,-_0x5e517f._0x305a2d,-0x3,0x4e)+_0x36c4bb[_0x2042ef(-_0x5e517f._0x7d2f4d,-0xd1,-0x178,-_0x5e517f._0x3c642a)]));if(_0x36c4bb[_0x2042ef(_0x5e517f._0x31f1b6,_0x5e517f._0x73869e,_0x5e517f._0x57ec49,_0x5e517f._0x4abfab)])_0x56de8e[_0x137c35(-0x58,-_0x5e517f._0x2ce25e,-_0x5e517f._0x22c076,-_0x5e517f._0x3ad977)]['set']('gl',_0x36c4bb[_0x137c35(0x1b0,_0x5e517f._0x2ebc1f,_0x5e517f._0x537bcc,_0x5e517f._0x5bcdee)]['toUpperCase']());if(_0x36c4bb[_0x2042ef(-0x111,-0x267,-0x11a,-0x20)]===_0x2042ef(-_0x5e517f._0x4003ec,-0xf8,0xc3,_0x5e517f._0xbf2e4a))_0x56de8e['searchParams'][_0x2042ef(-0xff,-0x25,-0x11e,0x3f)](_0x137c35(-0x165,-_0x5e517f._0x21b020,-_0x5e517f._0x4dbc5f,-0x9d),'image');if(_0x1a0df3)_0x56de8e[_0x137c35(-_0x5e517f._0xf404f5,-0x3f,-_0x5e517f._0x3dd751,-_0x5e517f._0x3ad977)][_0x137c35(-_0x5e517f._0x2193b1,-0x11d,-0x53,-0x8d)](_0x2042ef(-0x137,-0xc5,-0x47,-0x1a0),_0x1a0df3);const _0x3c359f=await fetchJson(_0x56de8e[_0x137c35(-0x1de,-0x27f,-0x2bf,-_0x5e517f._0x406b1c)](),_0x22f67c),_0x481612=_0x3c359f[_0x137c35(-_0x5e517f._0x1db464,-0x20c,-_0x5e517f._0x56522f,-0x112)]??[];if(_0x481612[_0x137c35(-_0x5e517f._0x3ccc61,-0x281,-0x2a9,-_0x5e517f._0x3423c1)]===0x0)break;const _0x595141=_0xd6147a;for(let _0x269454=0x0;_0x269454<_0x481612[_0x137c35(-0x64,-0x1fc,-_0x5e517f._0x3c6eba,-0x171)];_0x269454++){const _0x4fe0dc=_0x481612[_0x269454];if(!_0x4fe0dc)continue;const _0x427e16=_0x4fe0dc[_0x2042ef(-_0x5e517f._0x40a8e3,0xb6,-_0x5e517f._0xf9adb3,-0x6b)]||_0x4fe0dc[_0x2042ef(-_0x5e517f._0xe9c001,-0x292,-0x19b,-_0x5e517f._0x14cc5e)]?.[_0x2042ef(-0x63,_0x5e517f._0x111132,-_0x5e517f._0x7d2f4d,_0x5e517f._0xa6365)]||'',_0x79275d=_0x4fe0dc[_0x137c35(-_0x5e517f._0x39b23d,-0x1cb,-_0x5e517f._0xced6bb,-_0x5e517f._0x5881f2)]||_0x4fe0dc[_0x137c35(-0x20e,-_0x5e517f._0x19c6b2,-0x20d,-_0x5e517f._0x218807)]?.[_0x2042ef(-_0x5e517f._0x22c39d,-0xeb,-0xa,0x28)]||'Untitled',_0x21c668=_0x4fe0dc[_0x137c35(0xfe,_0x5e517f._0x450937,0x53,_0x5e517f._0x113998)]||_0x4fe0dc[_0x137c35(-_0x5e517f._0x33fdb7,-_0x5e517f._0x441747,-_0x5e517f._0xedd4ba,-_0x5e517f._0x4ec3f4)]?.[_0x137c35(-0x132,-0x61,0x6f,-0x6e)](/<[^>]+>/g,''),_0x505f6b=_0x4fe0dc[_0x2042ef(-_0x5e517f._0x372055,-0xbc,-_0x5e517f._0x14193f,-0x283)]?.[_0x137c35(_0x5e517f._0x2f15f1,-_0x5e517f._0x2d8b47,_0x5e517f._0x1705c5,0x8a)]?.[0x0]??{};let _0x3ea370;try{_0x3ea370=new URL(_0x427e16)[_0x137c35(-_0x5e517f._0x47f118,-_0x5e517f._0x428023,-_0x5e517f._0x1b9629,-0x167)];}catch{_0x3ea370=null;}_0x40aa22[_0x137c35(0x1c,-0xb3,_0x5e517f._0x59e9bc,0x95)]({'title':_0x79275d,'url':normalizeUrl(_0x427e16),'snippet':_0x21c668??null,'displayUrl':_0x3ea370,'favicon':null,'publishedAt':_0x505f6b[_0x2042ef(-0xbc,-0x1fa,-0x1c6,_0x5e517f._0x33fdb7)]||_0x505f6b[_0x2042ef(-0xec,-0xbb,-_0x5e517f._0x59fc7b,-0xf3)]||null,'source':{'engine':_0x2042ef(-_0x5e517f._0x3942c0,-0x180,-0x9b,0x8c),'rank':_0x595141+_0x269454+0x1}});}_0xd6147a+=_0x481612['length'],_0x4a8e29+=_0x481612[_0x2042ef(-_0x5e517f._0x13ec10,-0x227,-0x1b8,-0x32e)];if(_0x481612[_0x137c35(-_0x5e517f._0xe7f5dc,-0x1c,-0x3c,-0x171)]<_0x2d6a17)break;}return _0x40aa22[_0x2042ef(0xc,0xc7,0x36,_0x5e517f._0x37db94)](0x0,_0x1c39b1);}function isGoogleCseEngine(_0x41ef7d){const _0x32d1e8={_0x5c1555:0x9e},_0x4e0abc={_0xcb2503:0x15c};function _0x3e21b0(_0x3a1403,_0x2719b7,_0x56e12d,_0xfb964e){return _0x29bb69(_0x3a1403-0x7d,_0x56e12d-_0x4e0abc._0xcb2503,_0x3a1403,_0xfb964e-0x1b2);}return _0x3e21b0(0x1d6,0x113,_0x32d1e8._0x5c1555,0x2f)in _0x41ef7d;}function isOllamaEngine(_0x4474fe){const _0x317777={_0x556c07:0x139,_0x5525ac:0x105,_0x2fa602:0x39,_0x197767:0x1fa},_0x27d624={_0x4ab51c:0x159,_0x3705fe:0xc};function _0x580658(_0x5c17ae,_0x5adb55,_0x5dd8f2,_0x5413dd){return _0x29bb69(_0x5c17ae-_0x27d624._0x4ab51c,_0x5adb55-_0x27d624._0x3705fe,_0x5c17ae,_0x5413dd-0x185);}return _0x580658(_0x317777._0x556c07,_0x317777._0x5525ac,-_0x317777._0x2fa602,_0x317777._0x197767)in _0x4474fe;}function isTavilyEngine(_0x24208a){const _0x546c8b={_0x24cae2:0x280,_0x57f199:0x34a},_0xdb433={_0x2a2aa5:0x5a,_0xadcab0:0x2d5,_0x339c4c:0x104};function _0x496e00(_0x17f893,_0x8f7aef,_0x4380eb,_0x1a7419){return _0x29bb69(_0x17f893-_0xdb433._0x2a2aa5,_0x8f7aef-_0xdb433._0xadcab0,_0x17f893,_0x1a7419-_0xdb433._0x339c4c);}return _0x496e00(_0x546c8b._0x24cae2,0x3ba,_0x546c8b._0x57f199,0x4ff)in _0x24208a;}function createWebSearchTool(_0x2432f5){const _0x3bca9f={_0x25cc57:0x5d1,_0x129ac3:0x5b7,_0x5707f7:0x453,_0x33d40a:0x18,_0x563f2a:0x50,_0x9c308e:0x45b,_0x335a84:0x50f,_0x317a96:0x4e2,_0x14de0b:0x322,_0x27bc21:0x227,_0x5b0dce:0x455,_0x56250d:0x4cb,_0x17c458:0x44d,_0x38848d:0x3f2,_0x12fe6a:0x44d,_0x3e5be4:0x34b,_0x4e6d8f:0x4f,_0x39d1d4:0x9a,_0x2891fa:0xbe,_0x33b0d6:0x292,_0x40fd48:0x1a9,_0x328701:0x295,_0x364e19:0xbe,_0x3d08cd:0x23d,_0x3c7919:0x352,_0x48118f:0x23b,_0x583c8c:0x36c,_0x8dd76f:0x102,_0x4df66b:0x497,_0x272899:0x11c},_0x545b51={_0x117779:0x426,_0x49f443:0x589,_0x3cae2e:0x435,_0x6f33ef:0x53e,_0x4ba072:0x43a,_0x133bc7:0x55d,_0x418c6b:0x52e,_0x378dfe:0x583,_0x942204:0x51e,_0x333b40:0x569,_0x33ea3b:0x65a,_0x2e0cb8:0x518,_0x9a3184:0x717,_0x3b7dbc:0x5a9,_0x23963b:0x4f1,_0xcd0c4:0x5f9,_0x5b31c6:0x55e,_0x2f44f9:0x69f,_0xaf26ad:0x5df,_0x2e3d8e:0x75d,_0x195d9f:0x5f1,_0x4e121f:0x758,_0x2d22fa:0x763,_0x510acf:0x70c,_0x12b51f:0x3df,_0x222c42:0x6f9,_0xb6fc72:0x5fb,_0x41d78b:0x61c,_0x21c05d:0x731,_0x29f072:0x7dd,_0x3110e1:0x699,_0x324abe:0x619,_0x1db220:0x659,_0x3e92e1:0x6b8,_0x4a0fe0:0x3f8,_0x32fbd6:0x49c,_0x49c904:0x495,_0x4197fd:0x610,_0x4f76fe:0x508,_0x312a56:0x4ef,_0x127fb0:0x55c,_0x233799:0x571,_0x453511:0x54a,_0x2bf21c:0x690,_0x592451:0x55b,_0x398ba0:0x3a5,_0x2f9213:0x431,_0xccd568:0x540,_0x24a8e9:0x6d1,_0x2101b4:0x733,_0xea8ab8:0x710,_0x51a319:0x5ea,_0x3a1019:0x659,_0xced2ec:0x657,_0x1fbea7:0x63c,_0x40539d:0x735,_0xed8110:0x68f,_0x4278af:0x385,_0x31ead8:0x3bd,_0x5252c6:0x337,_0x22815f:0x466,_0x446e99:0x523,_0x2a1f67:0x524,_0x52b121:0x627,_0x320cf8:0x717,_0x4500e6:0x4a9,_0x53fa33:0x3e9,_0x1046ed:0x469,_0x44e9cc:0x69f,_0x2a8a79:0x751,_0xbca401:0x6d1,_0xccba0:0x502,_0x2b3d86:0x651,_0x43553d:0x728,_0x639493:0x527,_0x196d28:0x5dd,_0x4a2420:0x50a,_0x1f509d:0x599,_0x29ea22:0x59f,_0xd03e4b:0x587,_0xa76ef5:0x539,_0x1fab7d:0x598,_0x1c1b8f:0x573,_0x18e29e:0x65b,_0x473508:0x697,_0x59a5f6:0x7bd,_0x363abb:0x76b,_0x1ebc0e:0x572,_0x18e121:0x76e,_0x155ba5:0x52f,_0x3704de:0x681,_0x3ada9f:0x711,_0x450591:0x4a9,_0x339404:0x5cb,_0x10fd03:0x526,_0x49900b:0x570,_0x2c04c0:0x699,_0x4698d5:0x5a3,_0x379510:0x5bd,_0x23eaa3:0x5c4},_0xb969ed={_0x49af2:0x4b},_0x113379={_0x55a278:0x212,_0x55da3b:0x100},_0x54e251={_0x585797:0x178},_0x5e4a76={_0x347236:0x15c};if(!_0x2432f5[_0x207039(0x496,_0x3bca9f._0x25cc57,0x4bf,0x4a8)]||_0x2432f5[_0x207039(_0x3bca9f._0x129ac3,_0x3bca9f._0x5707f7,0x4bf,0x5e5)][_0x6c59a3(-0xb9,-0xd,_0x3bca9f._0x33d40a,-_0x3bca9f._0x563f2a)]===0x0)throw new Error(_0x207039(0x1eb,0x2b3,0x2c1,0x294));function _0x6c59a3(_0x2ea5f1,_0x2035d7,_0x4daf0c,_0x37e248){return _0x567203(_0x2ea5f1,_0x2035d7-_0x5e4a76._0x347236,_0x2035d7-0xd,_0x37e248-0x130);}const _0x3e586a=_0x2432f5['name']??'WebSearch';function _0x207039(_0x3d2717,_0x1e6bb0,_0x1782c5,_0x5b0efe){return _0x567203(_0x3d2717,_0x1e6bb0-_0x54e251._0x585797,_0x1782c5-0x2b1,_0x5b0efe-0x1e7);}return defineTool({'name':_0x3e586a,'description':_0x207039(_0x3bca9f._0x9c308e,_0x3bca9f._0x335a84,_0x3bca9f._0x317a96,0x572),'inputSchema':{'type':_0x6c59a3(0x1b2,0x225,_0x3bca9f._0x14de0b,_0x3bca9f._0x27bc21),'properties':{'description':{'type':_0x207039(0x319,0x43e,0x362,_0x3bca9f._0x5b0dce)},'query':{'type':'string'},'count':{'type':_0x207039(0x47e,_0x3bca9f._0x56250d,_0x3bca9f._0x17c458,_0x3bca9f._0x38848d)},'offset':{'type':_0x207039(0x39c,0x403,_0x3bca9f._0x12fe6a,_0x3bca9f._0x3e5be4)},'domains':{'type':_0x6c59a3(_0x3bca9f._0x4e6d8f,0x136,0x16d,0x9),'items':{'type':_0x6c59a3(_0x3bca9f._0x39d1d4,_0x3bca9f._0x2891fa,0x57,0x106)}},'recencyDays':{'type':_0x6c59a3(_0x3bca9f._0x33b0d6,_0x3bca9f._0x40fd48,0x12a,_0x3bca9f._0x328701)},'lang':{'type':_0x6c59a3(-0x6a,_0x3bca9f._0x364e19,0x1cf,0xf)},'region':{'type':_0x207039(_0x3bca9f._0x3d08cd,0x349,0x362,0x38a)},'safe':{'type':_0x207039(_0x3bca9f._0x3c7919,_0x3bca9f._0x48118f,_0x3bca9f._0x583c8c,0x380)},'type':{'type':_0x6c59a3(0x5e,0xbe,-0x77,_0x3bca9f._0x8dd76f)},'hydrateMeta':{'type':_0x207039(0x37a,_0x3bca9f._0x4df66b,0x36c,0x367)}},'required':[_0x6c59a3(0x171,0x14a,_0x3bca9f._0x272899,0x142)]},async *'execute'(_0x23c478,_0x4055cb){const _0x3c0e64={_0x6565b8:0x67e,_0x18e902:0x6d8,_0x372a33:0x6ee,_0x14fca4:0x5cb,_0x541bd4:0x74a,_0x2c7b51:0x648,_0x713d67:0x6e0,_0x1d3370:0x755,_0x3dfec4:0x639,_0x11eedd:0x4e8,_0x5d1a51:0x5f1},_0x3270fb={_0x1f8067:0xed},_0x3fbe15={_0x2226d4:0x23,_0x56d46b:0x109},_0x48a76b=_0x23c478[_0x4dd429(0x540,0x612,0x588,0x55b)][_0x4dd429(_0x545b51._0x117779,_0x545b51._0x49f443,_0x545b51._0x3cae2e,0x382)]();if(!_0x48a76b)throw new ToolExecutionError(_0xa425fb(0x4af,0x3f2,_0x545b51._0x6f33ef,_0x545b51._0x4ba072));const _0x1b0294={'query':_0x48a76b,'count':Math[_0xa425fb(_0x545b51._0x133bc7,_0x545b51._0x418c6b,_0x545b51._0x378dfe,_0x545b51._0x942204)](0x1,Math['min'](0x32,Math[_0x4dd429(_0x545b51._0x333b40,_0x545b51._0x33ea3b,0x619,_0x545b51._0x2e0cb8)](_0x23c478['count']??0xa))),'offset':Math['max'](0x0,Math[_0x4dd429(_0x545b51._0x9a3184,0x700,0x619,0x645)](_0x23c478[_0x4dd429(_0x545b51._0x3b7dbc,_0x545b51._0x23963b,_0x545b51._0xcd0c4,_0x545b51._0x5b31c6)]??0x0)),'domains':_0x23c478[_0xa425fb(_0x545b51._0x2f44f9,_0x545b51._0xaf26ad,_0x545b51._0x2e3d8e,_0x545b51._0x195d9f)]??[],'recencyDays':Math[_0xa425fb(0x55d,0x45a,0x42f,0x554)](0x0,Math[_0x4dd429(0x6bb,_0x545b51._0x4e121f,0x619,0x68a)](_0x23c478[_0xa425fb(0x681,0x6eb,_0x545b51._0x2d22fa,_0x545b51._0x510acf)]??0x0)),'lang':_0x23c478[_0xa425fb(0x50a,0x4f3,_0x545b51._0x12b51f,0x484)]??'en','region':_0x23c478[_0xa425fb(_0x545b51._0x222c42,_0x545b51._0xb6fc72,_0x545b51._0x41d78b,0x62b)]??'','safe':_0x23c478[_0x4dd429(_0x545b51._0x21c05d,_0x545b51._0x29f072,_0x545b51._0x3110e1,0x550)]??!![],'type':normalizeType(_0x23c478['type']),'hydrateMeta':_0x23c478['hydrateMeta']??![]};let _0x5211ff=[],_0x33f0ff='unknown';for(const _0x3571f7 of _0x2432f5[_0x4dd429(_0x545b51._0x324abe,0x70e,_0x545b51._0x1db220,_0x545b51._0x3e92e1)]){try{if(isGoogleCseEngine(_0x3571f7))_0x5211ff=await searchGoogleCse(_0x3571f7,_0x1b0294,_0x4055cb[_0xa425fb(0x514,0x576,0x647,0x581)]),_0x33f0ff='google-cse';else{if(isOllamaEngine(_0x3571f7)){const _0x359b7f=await searchOllama(_0x3571f7,_0x1b0294,_0x4055cb[_0x4dd429(_0x545b51._0x4a0fe0,0x3c0,_0x545b51._0x32fbd6,0x5bb)]);_0x5211ff=_0x359b7f[_0x4dd429(0x3f9,0x516,0x490,_0x545b51._0x49c904)],_0x33f0ff=_0x359b7f[_0x4dd429(0x7ca,0x5e7,0x690,_0x545b51._0x4197fd)];}else{if(isTavilyEngine(_0x3571f7)){const _0x36d990=await searchTavily(_0x3571f7,_0x1b0294,_0x4055cb['signal']);_0x5211ff=_0x36d990[_0xa425fb(_0x545b51._0x4f76fe,_0x545b51._0x312a56,_0x545b51._0x127fb0,0x599)],_0x33f0ff=_0x36d990[_0x4dd429(_0x545b51._0x233799,_0x545b51._0x453511,_0x545b51._0x2bf21c,0x6e1)];}}}if(_0x5211ff[_0x4dd429(_0x545b51._0x592451,_0x545b51._0x398ba0,_0x545b51._0x2f9213,_0x545b51._0xccd568)]>0x0)break;}catch(_0x18843d){if(_0x3571f7===_0x2432f5[_0xa425fb(_0x545b51._0x24a8e9,_0x545b51._0x2101b4,0x639,_0x545b51._0xea8ab8)][_0x2432f5[_0x4dd429(0x64f,_0x545b51._0x51a319,_0x545b51._0x3a1019,_0x545b51._0xced2ec)][_0x4dd429(0x338,0x537,_0x545b51._0x2f9213,0x4a5)]-0x1])throw _0x18843d;}}_0x1b0294[_0xa425fb(_0x545b51._0x1fbea7,_0x545b51._0x40539d,_0x545b51._0xed8110,0x713)]&&_0x5211ff[_0x4dd429(0x4aa,0x370,0x431,0x431)]>0x0&&(_0x5211ff=await hydrateResults(_0x5211ff,_0x1b0294['lang'],_0x4055cb[_0x4dd429(_0x545b51._0x4278af,0x52e,0x49c,0x3c5)]));const _0x2e0525=new Set();_0x5211ff=_0x5211ff[_0x4dd429(_0x545b51._0x31ead8,_0x545b51._0x5252c6,_0x545b51._0x22815f,_0x545b51._0x446e99)](_0x203a80=>{function _0x38932f(_0x5f5237,_0x52bce3,_0x1160d3,_0x39015d){return _0xa425fb(_0x39015d-_0x3fbe15._0x2226d4,_0x1160d3,_0x1160d3-_0x3fbe15._0x56d46b,_0x39015d-0x1dd);}const _0x465a1e=_0x203a80[_0x38932f(0x5f0,_0x3c0e64._0x6565b8,_0x3c0e64._0x18e902,_0x3c0e64._0x372a33)][_0x38932f(0x5f0,0x5a2,0x4d1,_0x3c0e64._0x14fca4)]();if(!_0x465a1e||_0x2e0525[_0x38932f(_0x3c0e64._0x541bd4,_0x3c0e64._0x2c7b51,_0x3c0e64._0x713d67,_0x3c0e64._0x1d3370)](_0x465a1e))return![];_0x2e0525[_0x45654a(_0x3c0e64._0x3dfec4,_0x3c0e64._0x11eedd,0x506,_0x3c0e64._0x5d1a51)](_0x465a1e);function _0x45654a(_0x31e72f,_0x2fde2f,_0x109a1,_0x1db34e){return _0x4dd429(_0x31e72f-_0x3270fb._0x1f8067,_0x109a1,_0x2fde2f-0x32,_0x1db34e-0x173);}return!![];}),_0x5211ff=_0x5211ff[_0xa425fb(0x4bb,0x58d,_0x545b51._0x2a1f67,0x418)]((_0x3b044d,_0x3d5de3)=>({..._0x3b044d,'source':{..._0x3b044d[_0xa425fb(0x570,0x46b,0x57e,0x5a1)],'rank':_0x3d5de3+0x1}}));function _0xa425fb(_0x3f39ba,_0x5a310a,_0x22cde0,_0x48b6b7){return _0x207039(_0x5a310a,_0x5a310a-0x4,_0x3f39ba-_0x113379._0x55a278,_0x48b6b7-_0x113379._0x55da3b);}function _0x4dd429(_0xe71364,_0x454cf2,_0x12291c,_0x311869){return _0x207039(_0x454cf2,_0x454cf2-_0xb969ed._0x49af2,_0x12291c-0x19a,_0x311869-0x9);}const _0x442a70={};if(_0x1b0294[_0x4dd429(0x581,0x6f0,_0x545b51._0x52b121,_0x545b51._0x320cf8)][_0xa425fb(_0x545b51._0x4500e6,_0x545b51._0x53fa33,_0x545b51._0x1046ed,0x532)]>0x0)_0x442a70[_0xa425fb(_0x545b51._0x44e9cc,0x631,0x5dd,_0x545b51._0x2a8a79)]=_0x1b0294[_0x4dd429(_0x545b51._0xbca401,_0x545b51._0xccba0,_0x545b51._0x52b121,_0x545b51._0x2b3d86)];if(_0x1b0294[_0x4dd429(_0x545b51._0x43553d,_0x545b51._0x639493,0x609,_0x545b51._0x196d28)]>0x0)_0x442a70[_0x4dd429(0x6e7,0x50e,0x609,0x5b8)]=_0x1b0294['recencyDays'];if(_0x1b0294[_0xa425fb(_0x545b51._0x4a2420,_0x545b51._0x1f509d,_0x545b51._0x29ea22,0x444)]!=='en')_0x442a70[_0xa425fb(_0x545b51._0x4a2420,0x55d,_0x545b51._0xd03e4b,_0x545b51._0xa76ef5)]=_0x1b0294[_0xa425fb(0x50a,_0x545b51._0x1fab7d,_0x545b51._0x1c1b8f,_0x545b51._0x18e29e)];if(_0x1b0294[_0xa425fb(0x6f9,_0x545b51._0x473508,_0x545b51._0x59a5f6,_0x545b51._0x363abb)])_0x442a70[_0x4dd429(_0x545b51._0x1ebc0e,0x678,0x681,_0x545b51._0x18e121)]=_0x1b0294[_0x4dd429(_0x545b51._0x155ba5,0x790,_0x545b51._0x3704de,_0x545b51._0x3ada9f)];return yield createToolOutput(formatResults(_0x5211ff),{'engine':_0x33f0ff,'count':_0x5211ff[_0xa425fb(_0x545b51._0x450591,_0x545b51._0x339404,0x543,_0x545b51._0x10fd03)],'items':_0x5211ff,'query':_0x1b0294['query'],...Object['keys'](_0x442a70)[_0x4dd429(_0x545b51._0x49900b,0x420,_0x545b51._0x2f9213,0x3b0)]>0x0?{'appliedFilters':_0x442a70}:{},'offset':_0x1b0294['offset'],'totalRequested':_0x1b0294[_0x4dd429(_0x545b51._0x2c04c0,_0x545b51._0x4698d5,_0x545b51._0x379510,0x5c6)],'hydrated':_0x1b0294[_0x4dd429(0x4b5,0x57a,_0x545b51._0x23eaa3,0x673)]}),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};
|