@nuvin/agent-core 0.0.0-rc.19 → 0.0.0-rc.20
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-HRU363DY.js +1 -1
- package/dist/chunk-NHBKADBW.js +1 -1
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.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/models/openai-model.d.ts +8 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/web-fetch-tool.d.ts +3 -0
- package/dist/tools/web-search-tool.d.ts +3 -0
- package/package.json +1 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x96e18e,_0x4a6008){const _0x4db256={_0x6ada57:0xf2,_0x52a802:0x168,_0x2752a9:0x12,_0x22dba7:0xcc,_0x36cafc:0x425,_0x2d8cd6:0x2a2,_0x11285a:0x3bf,_0x1db7d4:0x32f,_0x20bdd4:0x10d,_0x1176f5:0x110,_0x3054f6:0x268,_0x30ae97:0x5b0,_0xfd65d6:0x14,_0x1d25d4:0x25,_0x2c6a5d:0x38d,_0x46fd4c:0x3aa,_0x20af67:0x343,_0x5a404d:0x383,_0x5da3ee:0x676,_0x277d11:0x539,_0x24fcef:0x6c9,_0xd8f0c:0x632},_0x1a7cd0={_0x5a05c2:0x17f},_0x180362={_0x382eb6:0x1d8},_0x50f0cf=_0x96e18e();function _0x310497(_0x256126,_0x22858b,_0x1d5aa0,_0x101d39){return _0x27a7(_0x1d5aa0- -_0x180362._0x382eb6,_0x256126);}function _0x1c50bb(_0x579b07,_0x1a5887,_0x471f32,_0x3815fd){return _0x27a7(_0x3815fd-_0x1a7cd0._0x5a05c2,_0x1a5887);}while(!![]){try{const _0x37e689=parseInt(_0x310497(0x4d,0xfa,_0x4db256._0x6ada57,_0x4db256._0x52a802))/0x1*(parseInt(_0x310497(-_0x4db256._0x2752a9,0x59,0xfd,_0x4db256._0x22dba7))/0x2)+parseInt(_0x1c50bb(_0x4db256._0x36cafc,_0x4db256._0x2d8cd6,_0x4db256._0x11285a,_0x4db256._0x1db7d4))/0x3*(-parseInt(_0x310497(_0x4db256._0x20bdd4,_0x4db256._0x1176f5,0x254,_0x4db256._0x3054f6))/0x4)+-parseInt(_0x310497(0x131,0xd8,0x114,0x1c5))/0x5*(-parseInt(_0x310497(0x132,0x4a,0xeb,0x15f))/0x6)+-parseInt(_0x1c50bb(0x693,0x482,0x4c7,_0x4db256._0x30ae97))/0x7+-parseInt(_0x310497(_0x4db256._0xfd65d6,_0x4db256._0x1d25d4,0xf9,0x1ba))/0x8+-parseInt(_0x1c50bb(0x2ae,0x36b,_0x4db256._0x2c6a5d,_0x4db256._0x46fd4c))/0x9*(-parseInt(_0x1c50bb(0x258,_0x4db256._0x20af67,0x35f,_0x4db256._0x5a404d))/0xa)+parseInt(_0x1c50bb(0x408,0x5b7,_0x4db256._0x5da3ee,_0x4db256._0x277d11))/0xb*(parseInt(_0x1c50bb(_0x4db256._0x24fcef,_0x4db256._0xd8f0c,0x647,0x57c))/0xc);if(_0x37e689===_0x4a6008)break;else _0x50f0cf['push'](_0x50f0cf['shift']());}catch(_0x37a8c8){_0x50f0cf['push'](_0x50f0cf['shift']());}}}(_0x3d53,0xd2f94));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.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 _0x323bca from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x23b1c2(0x2ea,0x370,0x246,0x105),'.tsx':_0x57b9de(0x3bb,0x510,0x42f,0x536),'.js':_0x23b1c2(0x207,0x341,0x274,0x125),'.jsx':'javascriptreact','.mjs':_0x23b1c2(0x281,0x1ac,0x274,0x217),'.cjs':_0x23b1c2(0x1f2,0x246,0x274,0x338),'.mts':_0x23b1c2(0x332,0x33a,0x246,0x2ff),'.cts':_0x57b9de(0x335,0x2a6,0x2f4,0x254),'.json':_0x57b9de(0x520,0x30b,0x3e2,0x2fe),'.jsonc':'jsonc'};function getLanguageId(_0x1b2582){const _0x3a8daa={_0x1f5e55:0x67d},_0x12b115={_0x3c941e:0x29,_0x1fe8b8:0xf1,_0x4ca291:0x53};function _0x15d685(_0x16baa8,_0x345dd2,_0x4af7cf,_0x1583c8){return _0x57b9de(_0x16baa8-_0x12b115._0x3c941e,_0x1583c8,_0x4af7cf-_0x12b115._0x1fe8b8,_0x1583c8-_0x12b115._0x4ca291);}return EXTENSION_TO_LANGUAGE[_0x323bca['extname'](_0x1b2582)[_0x15d685(_0x3a8daa._0x1f5e55,0x723,0x653,0x57e)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x5ef32b){return pathToFileURL(_0x5ef32b)['toString']();}function textDocumentPosition(_0x53bbaf){const _0x1193ff={_0x5da736:0x72d,_0x5a5870:0x57a,_0xebf613:0x5d8,_0x271b38:0x5c3,_0x7c8199:0x498},_0x1bcdd0={_0x418db2:0x1cc,_0x1af795:0x27};function _0x20a38c(_0x5c30ee,_0x12b421,_0x50c2c3,_0x2ae493){return _0x57b9de(_0x5c30ee-0x52,_0x50c2c3,_0x2ae493-_0x1bcdd0._0x418db2,_0x2ae493-_0x1bcdd0._0x1af795);}function _0x4c2691(_0x54600d,_0x135bcd,_0x262cc5,_0x2b3980){return _0x57b9de(_0x54600d-0x1cc,_0x135bcd,_0x262cc5-0x114,_0x2b3980-0x87);}return{'textDocument':{'uri':uriForPath(_0x53bbaf[_0x20a38c(_0x1193ff._0x5da736,0x724,0x84d,0x733)])},'position':{'line':_0x53bbaf[_0x4c2691(0x49c,_0x1193ff._0x5a5870,0x573,_0x1193ff._0xebf613)],'character':_0x53bbaf[_0x4c2691(_0x1193ff._0x271b38,0x54f,0x500,_0x1193ff._0x7c8199)]}};}function normalizeLocations(_0x135450){if(!_0x135450)return[];return Array['isArray'](_0x135450)?_0x135450:[_0x135450];}async function createLspClient(_0xbd1098){const _0x31f720={_0x3886f6:0x252,_0x4f2a71:0x1df,_0x3f42f7:0x16,_0xd676:0xee,_0x251def:0x56,_0x48ecc2:0xcb,_0x2ae971:0x198,_0x5f0156:0xae,_0x4d37e7:0x14c,_0x102259:0x4,_0xa5a0f1:0x32a,_0x35a958:0x205,_0x88d397:0x25a,_0x1d284a:0xe5,_0x4da10a:0x170,_0x57a35a:0x194,_0x4d9941:0x74,_0x48a680:0x19e,_0x528241:0x8c,_0x323818:0x11b,_0x336aa4:0x189,_0x1ec607:0x18b,_0x2f9331:0x17f,_0x5ba618:0x141},_0x101fd2={_0x4da790:0xe3,_0x53eebe:0x1aa,_0x67d5:0x181,_0x2fcdfa:0x3e7,_0x1feb89:0x448,_0x3decb3:0xd7,_0x3f6103:0x5d,_0xb9f2d4:0x333,_0xaf9759:0x3eb,_0x1b2e57:0x1c4,_0x467361:0x1d7,_0x7f6a04:0x181},_0x43bb70={_0x35b24d:0x15f,_0x5072db:0xe},_0x54336b={_0x13de8a:0x15a},_0x4ab99d={_0x1ae4ef:0x1cc,_0x3059aa:0x2d0},_0x2bd260={_0x41d0af:0xfe,_0x41918c:0x2b,_0x4462d:0x1d0},_0x41272a={_0x208f6a:0x244,_0x4c3baf:0xcc,_0x540ca9:0x193},_0xb9354={_0x298590:0x1d9,_0x3a1cb1:0x15c,_0x419210:0xe9,_0x3c9364:0x57a,_0x420c1b:0x595},_0x568f49={_0x553229:0x106},_0x36d2b1={_0x59117c:0x267,_0x34a7d8:0x339},_0x38563b={_0x497078:0x16b},_0x43a182={_0x12e92e:0x4fa},_0x2a53ab={_0x504c4f:0x70f,_0x3a66cc:0x731,_0x1d49db:0x585,_0x1f68ad:0x6d4},_0x3b917e={_0x56e067:0x526,_0x4daab6:0x35b},_0x33f059={_0x5d25a8:0x14b,_0x803d86:0xf8},_0x862c87={_0x586d43:0x1bd,_0x14ca6a:0x21},_0x47b42d={_0x4f9a56:0x5a2,_0xd3338e:0x243,_0x111039:0x41},_0x242ec7={_0x1ee699:0x651,_0xce3ab6:0x798,_0x41103a:0x6b2,_0x229ad4:0x52b},_0x4a8f01={_0x229e92:0x3d9,_0x17155f:0x4b4,_0x59afb9:0x412,_0x26b6b2:0x3d4,_0x3da561:0x3a7},_0x16482a={_0x1d6775:0x373,_0x110b83:0x14e,_0x529bf3:0x48},_0x5d1f1f={_0x13e41f:0x248,_0x4cace3:0x11e},_0x442a81={_0x6d2867:0x15f,_0x164358:0x243,_0x441ec0:0xc5,_0x4c14bb:0x171,_0x15dc70:0x702,_0x117d86:0x736},_0xe92002={_0x394b1b:0x88},_0x2ad9ca={_0x4ed455:0x11b,_0x34e339:0x280,_0x382bdf:0x24d,_0x4c5692:0x10a,_0x449b2f:0x20},_0x217e9e={_0x1f2d41:0x2a7,_0x5f15f7:0x29a,_0x464b29:0x1d6,_0x1f6b81:0x15b},_0x25e962={_0x4f12d1:0x57b},_0x5ac7df={_0x1bbc4f:0x93,_0x4b2e9e:0x265},_0x56de4a={_0x8c7eab:0x453,_0xb3ed31:0x555,_0xd1874d:0x592,_0x1fd785:0x6b0,_0x36a328:0x6c9,_0x287862:0x77d,_0x8b2559:0x5a4,_0x3393ad:0x707,_0x377fa2:0x816},_0x2a6963={_0x43d91c:0x4c1,_0x2abb65:0x5a},_0x457244={_0x3c84b6:0x19b,_0x585a29:0x35f,_0x4641ed:0x175},_0x3bcf4e=_0xbd1098['handle']['process'][_0x4c1332(_0x31f720._0x3886f6,0x212,_0x31f720._0x4f2a71,0x193)],_0x3d7f40=_0xbd1098['handle'][_0x39418f(_0x31f720._0x3f42f7,-0x10,-_0x31f720._0xd676,0xc0)][_0x39418f(0xd9,-0x70,-_0x31f720._0x251def,_0x31f720._0x48ecc2)];function _0x4c1332(_0x1c22b7,_0x50deaa,_0x2172b7,_0x32af5c){return _0x23b1c2(_0x1c22b7-0xc5,_0x50deaa,_0x2172b7- -0x1b5,_0x32af5c-0x45);}if(!_0x3bcf4e||!_0x3d7f40)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');function _0x39418f(_0x41b740,_0x1ae908,_0x2e6f21,_0x38f924){return _0x57b9de(_0x41b740-_0x457244._0x3c84b6,_0x41b740,_0x1ae908- -_0x457244._0x585a29,_0x38f924-_0x457244._0x4641ed);}const _0x45512f=createMessageConnection(new StreamMessageReader(_0x3bcf4e),new StreamMessageWriter(_0x3d7f40)),_0x4a7e34=new Map(),_0x5e8b99=new Map();let _0x13b2d1=![];_0x45512f[_0x39418f(0x99,_0x31f720._0x2ae971,0x2dc,0x13b)]('textDocument/publishDiagnostics',_0x4209a2=>{const _0x5a5153={_0x2563be:0x557,_0x1f8ef3:0x17};_0x4a7e34[_0x3c5399(0x553,_0x56de4a._0x8c7eab,_0x56de4a._0xb3ed31,0x693)](_0x4209a2['uri'],_0x4209a2['diagnostics']);const _0x3765a0=_0x5e8b99[_0x304504(0x52e,_0x56de4a._0xd1874d,_0x56de4a._0x1fd785,_0x56de4a._0x36a328)](_0x4209a2[_0x3c5399(_0x56de4a._0x287862,0x639,0x684,_0x56de4a._0x8b2559)]);if(!_0x3765a0)return;function _0x3c5399(_0x52db42,_0x4767f9,_0x51c0d7,_0x52e5c6){return _0x4c1332(_0x52db42-0xd1,_0x52db42,_0x51c0d7-_0x2a6963._0x43d91c,_0x52e5c6-_0x2a6963._0x2abb65);}_0x5e8b99[_0x304504(0x84c,_0x56de4a._0x3393ad,0x84a,_0x56de4a._0x377fa2)](_0x4209a2['uri']);function _0x304504(_0x569bba,_0x48eeaf,_0x419ebd,_0x4d704c){return _0x39418f(_0x569bba,_0x48eeaf-_0x5a5153._0x2563be,_0x419ebd-0x15c,_0x4d704c-_0x5a5153._0x1f8ef3);}for(const _0x33f463 of _0x3765a0)_0x33f463();}),_0x45512f[_0x39418f(_0x31f720._0x5f0156,_0x31f720._0x4d37e7,0xc2,_0x31f720._0x102259)]();const _0x314940=await _0x45512f[_0x4c1332(0x2ce,_0x31f720._0xa5a0f1,0x23d,0x234)]('initialize',{'processId':process[_0x39418f(0x2d8,0x221,_0x31f720._0x35a958,0x2a5)],'rootUri':uriForPath(_0xbd1098[_0x4c1332(_0x31f720._0x88d397,_0x31f720._0x1d284a,_0x31f720._0x4da10a,_0x31f720._0x57a35a)]),'workspaceFolders':[{'uri':uriForPath(_0xbd1098[_0x39418f(0x63,_0x31f720._0x4d9941,_0x31f720._0x48a680,0x1a3)]),'name':_0xbd1098['server']['id']}],'initializationOptions':_0xbd1098['handle'][_0x39418f(-_0x31f720._0x528241,-_0x31f720._0x102259,_0x31f720._0x323818,0x3f)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown','plaintext']},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x45512f[_0x39418f(0x285,0x223,0x33d,0x2ef)](_0x4c1332(0xe7,_0x31f720._0x336aa4,0x1e2,0x257),{});const _0x228f65={'serverId':_0xbd1098[_0x4c1332(0x184,0xa3,_0x31f720._0x1ec607,0x216)]['id'],'root':_0xbd1098[_0x4c1332(_0x31f720._0x2f9331,0x54,0x170,_0x31f720._0x5ba618)],'connection':_0x45512f,'diagnostics':_0x4a7e34,'capabilities':_0x314940['capabilities']??{},'notify':{async 'open'({path:_0x19556e}){const _0x1c9dd3={_0xe0a249:0x18,_0x20abdb:0x113};function _0x39d36d(_0x4b41b2,_0x5493ad,_0x5b73a1,_0x2a2e3b){return _0x39418f(_0x5493ad,_0x5b73a1-0x44b,_0x5b73a1-_0x1c9dd3._0xe0a249,_0x2a2e3b-_0x1c9dd3._0x20abdb);}function _0x50cce8(_0x44bcd9,_0xb4e56f,_0x3c299b,_0x3e6f01){return _0x4c1332(_0x44bcd9-_0x5ac7df._0x1bbc4f,_0xb4e56f,_0x44bcd9-_0x5ac7df._0x4b2e9e,_0x3e6f01-0x5);}const _0x1200d8=await readFile(_0x19556e,'utf8');_0x45512f[_0x39d36d(0x6dc,0x612,0x66e,_0x25e962._0x4f12d1)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x19556e),'languageId':getLanguageId(_0x19556e)??_0x50cce8(0x306,0x284,0x32f,0x3f9),'version':0x1,'text':_0x1200d8}});},async 'change'({path:_0x3a8582,version:_0x1b5064}){const _0x917c7b={_0x379022:0x1ea,_0x3df44f:0x45},_0x532a83={_0x1d9a45:0x66};function _0x394c96(_0x3155f2,_0x324285,_0x235fd8,_0x5e7fbe){return _0x4c1332(_0x3155f2-0x1f3,_0x3155f2,_0x235fd8-0x92,_0x5e7fbe-_0x532a83._0x1d9a45);}const _0xd9bb62=await readFile(_0x3a8582,'utf8');function _0xcd9feb(_0x5cc45f,_0x2ad3cb,_0x3e3364,_0x1585a0){return _0x4c1332(_0x5cc45f-_0x917c7b._0x379022,_0x5cc45f,_0x1585a0-0x2b,_0x1585a0-_0x917c7b._0x3df44f);}_0x45512f[_0x394c96(_0x217e9e._0x1f2d41,_0x217e9e._0x5f15f7,0x3b1,0x305)](_0xcd9feb(0x102,_0x217e9e._0x464b29,0x28c,_0x217e9e._0x1f6b81),{'textDocument':{'uri':uriForPath(_0x3a8582),'version':_0x1b5064},'contentChanges':[{'text':_0xd9bb62}]});},async 'close'({path:_0x45fb97}){const _0x141a5b={_0x463efa:0x197,_0x2f900e:0x127,_0x3cee96:0x90};function _0x146a78(_0x25016d,_0x11eb51,_0x43c092,_0x1afb74){return _0x39418f(_0x25016d,_0x43c092- -0x110,_0x43c092-0x122,_0x1afb74-0xdb);}function _0x3c7496(_0xab9bb0,_0xd5be5b,_0x4a5a7f,_0x15598d){return _0x4c1332(_0xab9bb0-_0x141a5b._0x463efa,_0xab9bb0,_0xd5be5b- -_0x141a5b._0x2f900e,_0x15598d-_0x141a5b._0x3cee96);}_0x45512f[_0x3c7496(_0x2ad9ca._0x4ed455,0x1f8,0x28f,_0x2ad9ca._0x34e339)](_0x146a78(_0x2ad9ca._0x382bdf,0x1be,_0x2ad9ca._0x4c5692,-_0x2ad9ca._0x449b2f),{'textDocument':{'uri':uriForPath(_0x45fb97)}});}},'request':{async 'definition'(_0x17d4b9){const _0x251a1f={_0x9abe1a:0x5c2};function _0x4c4b73(_0x12b0bd,_0x1839cc,_0x38900e,_0x5c07fb){return _0x39418f(_0x38900e,_0x5c07fb-0x30,_0x38900e-0x1a9,_0x5c07fb-_0xe92002._0x394b1b);}function _0x154e0a(_0x469d98,_0x4f51bd,_0x7c7f93,_0xfe250d){return _0x39418f(_0xfe250d,_0x469d98-_0x251a1f._0x9abe1a,_0x7c7f93-0x34,_0xfe250d-0x4e);}return normalizeLocations(await _0x45512f[_0x4c4b73(_0x442a81._0x6d2867,_0x442a81._0x164358,_0x442a81._0x441ec0,_0x442a81._0x4c14bb)](_0x154e0a(_0x442a81._0x15dc70,0x675,0x74e,_0x442a81._0x117d86),textDocumentPosition(_0x17d4b9)));},async 'references'(_0x5004e6){function _0x4db8b7(_0xba5dcb,_0x4717a5,_0x381651,_0x16aafc){return _0x4c1332(_0xba5dcb-0xc0,_0xba5dcb,_0x4717a5- -_0x5d1f1f._0x13e41f,_0x16aafc-_0x5d1f1f._0x4cace3);}function _0x2bab02(_0x5897ed,_0x4ce202,_0x91ced9,_0x266570){return _0x39418f(_0x91ced9,_0x4ce202-_0x16482a._0x1d6775,_0x91ced9-_0x16482a._0x110b83,_0x266570-_0x16482a._0x529bf3);}return normalizeLocations(await _0x45512f[_0x2bab02(_0x4a8f01._0x229e92,_0x4a8f01._0x17155f,_0x4a8f01._0x59afb9,0x5b8)](_0x2bab02(0x453,_0x4a8f01._0x26b6b2,_0x4a8f01._0x3da561,0x434),{...textDocumentPosition(_0x5004e6),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x1d8477){const _0x17e092={_0x7938d8:0x510};function _0xcf1541(_0x50c837,_0x250933,_0x3c17e0,_0x4ee930){return _0x39418f(_0x3c17e0,_0x50c837-_0x17e092._0x7938d8,_0x3c17e0-0x14b,_0x4ee930-0x1da);}return await _0x45512f[_0xcf1541(_0x242ec7._0x1ee699,_0x242ec7._0xce3ab6,_0x242ec7._0x41103a,_0x242ec7._0x229ad4)]('textDocument/hover',textDocumentPosition(_0x1d8477))??null;},async 'documentSymbol'(_0x3338d8){const _0x3154a6={_0x5dbdd6:0x34b};function _0x3ec6b7(_0x39c977,_0x3e5cb7,_0x175104,_0x260ca2){return _0x39418f(_0x260ca2,_0x3e5cb7-_0x3154a6._0x5dbdd6,_0x175104-0x56,_0x260ca2-0xd2);}function _0x399455(_0x3e090f,_0x1332c2,_0x89343b,_0x3789d5){return _0x39418f(_0x3789d5,_0x1332c2- -0x6,_0x89343b-0x13e,_0x3789d5-0x181);}return await _0x45512f[_0x3ec6b7(0x48a,0x48c,_0x47b42d._0x4f9a56,0x56b)](_0x399455(0x192,0x172,_0x47b42d._0xd3338e,_0x47b42d._0x111039),{'textDocument':{'uri':uriForPath(_0x3338d8)}})??[];},async 'workspaceSymbol'(_0x36c08e){function _0x581256(_0x66f77d,_0x33bb2e,_0x5047bf,_0x10c0e5){return _0x4c1332(_0x66f77d-_0x862c87._0x586d43,_0x10c0e5,_0x66f77d- -0x81,_0x10c0e5-_0x862c87._0x14ca6a);}function _0x350cb3(_0x3207b4,_0x32db36,_0x42527d,_0x1811d5){return _0x39418f(_0x42527d,_0x1811d5-0x319,_0x42527d-_0x33f059._0x5d25a8,_0x1811d5-_0x33f059._0x803d86);}return await _0x45512f[_0x350cb3(0x456,0x500,_0x3b917e._0x56e067,0x45a)](_0x350cb3(0x23b,0x206,_0x3b917e._0x4daab6,0x2e4),{'query':_0x36c08e})??[];},async 'implementation'(_0x213a4b){const _0x500a1c={_0x27e711:0x45a},_0x2bf1a7={_0xa3835:0x1f3};function _0x5019a6(_0x35e362,_0x373487,_0x5ee9f1,_0x3ed896){return _0x39418f(_0x35e362,_0x373487-0x5ce,_0x5ee9f1-_0x2bf1a7._0xa3835,_0x3ed896-0x1c);}function _0x1cff59(_0x3ba3a2,_0x2746b0,_0x585f40,_0x11ac5a){return _0x39418f(_0x11ac5a,_0x585f40-_0x500a1c._0x27e711,_0x585f40-0x1c,_0x11ac5a-0x7);}return normalizeLocations(await _0x45512f[_0x5019a6(0x783,_0x2a53ab._0x504c4f,_0x2a53ab._0x3a66cc,0x624)](_0x1cff59(0x607,_0x2a53ab._0x1d49db,0x622,_0x2a53ab._0x1f68ad),textDocumentPosition(_0x213a4b)));},async 'prepareCallHierarchy'(_0x104fc8){const _0x1985d5={_0xa9c81d:0x179,_0x35b6ee:0x2c9};function _0x379680(_0x231e49,_0x106957,_0x2824c6,_0x1742cc){return _0x4c1332(_0x231e49-_0x1985d5._0xa9c81d,_0x231e49,_0x1742cc-_0x1985d5._0x35b6ee,_0x1742cc-0x25);}return await _0x45512f[_0x379680(0x658,_0x43a182._0x12e92e,0x60d,0x506)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x104fc8))??[];},async 'incomingCalls'(_0x22f2ec){function _0x1d0a4b(_0x5206a9,_0x52d404,_0x34fd1d,_0x496bbc){return _0x4c1332(_0x5206a9-0x6d,_0x5206a9,_0x496bbc-0xdb,_0x496bbc-_0x38563b._0x497078);}return await _0x45512f[_0x1d0a4b(0x21e,_0x36d2b1._0x59117c,_0x36d2b1._0x34a7d8,0x318)]('callHierarchy/incomingCalls',{'item':_0x22f2ec})??[];},async 'outgoingCalls'(_0xdc36d5){const _0x81a99={_0x350fb5:0x134,_0x4a1971:0xbe};function _0x6b03b(_0x4086d0,_0x3d2ec1,_0x33fa73,_0x10c488){return _0x4c1332(_0x4086d0-_0x81a99._0x350fb5,_0x3d2ec1,_0x33fa73- -0xe1,_0x10c488-_0x81a99._0x4a1971);}function _0x48ea2d(_0x2957e0,_0x4acf47,_0x121e3a,_0x1ac39a){return _0x4c1332(_0x2957e0-0x9d,_0x4acf47,_0x2957e0-0x4bf,_0x1ac39a-_0x568f49._0x553229);}return await _0x45512f[_0x6b03b(0x161,_0xb9354._0x298590,_0xb9354._0x3a1cb1,_0xb9354._0x419210)](_0x48ea2d(0x6c9,_0xb9354._0x3c9364,0x57b,_0xb9354._0x420c1b),{'item':_0xdc36d5})??[];}},'waitForDiagnostics'({path:_0x360e17,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x3488af=uriForPath(_0x360e17);function _0x3c34e6(_0x1493c5,_0x5b6fb9,_0x39386c,_0x46aa18){return _0x4c1332(_0x1493c5-0x47,_0x1493c5,_0x39386c-0x1df,_0x46aa18-0x1e);}if(_0x4a7e34[_0x43df28(0x140,0x3cf,0x294,_0x4ab99d._0x1ae4ef)](_0x3488af))return Promise[_0x43df28(0x343,0x270,_0x4ab99d._0x3059aa,0x33d)]();function _0x43df28(_0x1799cd,_0x9c647f,_0x41a028,_0x449ec7){return _0x39418f(_0x9c647f,_0x41a028-_0x41272a._0x208f6a,_0x41a028-_0x41272a._0x4c3baf,_0x449ec7-_0x41272a._0x540ca9);}return new Promise(_0x24112b=>{const _0x1a0458={_0x47f759:0x1cc},_0x3e058b={_0x2d3511:0x182,_0x23f993:0x598,_0x7f4c68:0x645,_0x1b8f33:0x622,_0x22be2e:0x5f3,_0x2a0ebc:0x701},_0x509421={_0x1792bc:0x259},_0x40073a=setTimeout(()=>{function _0x1ac1cb(_0x4c872e,_0x2fdf80,_0x33404f,_0x25d78b){return _0x27a7(_0x4c872e- -0x54,_0x33404f);}const _0x5a2c25=_0x5e8b99[_0x1ac1cb(0x200,_0x3e058b._0x2d3511,0xef,0x256)](_0x3488af);_0x5a2c25?.['delete'](_0x4573a6);function _0x51d9cf(_0x3f0c8d,_0x2dc95d,_0x566a24,_0x352047){return _0x27a7(_0x3f0c8d-_0x509421._0x1792bc,_0x352047);}if(_0x5a2c25?.[_0x51d9cf(0x5c7,_0x3e058b._0x23f993,_0x3e058b._0x7f4c68,0x589)]===0x0)_0x5e8b99[_0x51d9cf(_0x3e058b._0x1b8f33,0x5e0,_0x3e058b._0x22be2e,_0x3e058b._0x2a0ebc)](_0x3488af);_0x24112b();},timeoutMs);function _0x1632c6(_0x147636,_0x56b059,_0x3abcdc,_0x3c5373){return _0x3c34e6(_0x3c5373,_0x56b059-0x1c8,_0x3abcdc- -0x108,_0x3c5373-_0x1a0458._0x47f759);}const _0x4573a6=()=>{clearTimeout(_0x40073a),_0x24112b();};function _0x427c4b(_0x4ef252,_0x14c604,_0x285119,_0x318c77){return _0x43df28(_0x4ef252-0x6c,_0x318c77,_0x14c604- -0x2bc,_0x318c77-0xa3);}const _0xb22245=_0x5e8b99['get'](_0x3488af)??new Set();_0xb22245[_0x427c4b(-0x4e,_0x2bd260._0x41d0af,-_0x2bd260._0x41918c,0x81)](_0x4573a6),_0x5e8b99[_0x427c4b(-0x14a,-0xe0,-0xfa,-_0x2bd260._0x4462d)](_0x3488af,_0xb22245);});},async 'shutdown'(){function _0x877100(_0x16eb01,_0x1e8ca1,_0x16f11f,_0x234585){return _0x4c1332(_0x16eb01-0xca,_0x234585,_0x1e8ca1-0xc8,_0x234585-_0x54336b._0x13de8a);}if(_0x13b2d1)return;_0x13b2d1=!![];function _0x5a87b5(_0x2c02d7,_0x738631,_0x5dbe9d,_0x1d876e){return _0x39418f(_0x1d876e,_0x738631- -0x1c7,_0x5dbe9d-_0x43bb70._0x35b24d,_0x1d876e-_0x43bb70._0x5072db);}try{await _0x45512f['sendRequest'](_0x5a87b5(-_0x101fd2._0x4da790,-0x21a,-_0x101fd2._0x53eebe,-_0x101fd2._0x67d5),null),_0x45512f[_0x877100(0x4f9,_0x101fd2._0x2fcdfa,_0x101fd2._0x1feb89,0x528)](_0x5a87b5(-_0x101fd2._0x3decb3,-_0x101fd2._0x67d5,-_0x101fd2._0x3f6103,-0x2a0));}catch{}finally{_0x45512f[_0x877100(_0x101fd2._0xb9f2d4,_0x101fd2._0xaf9759,0x4ce,0x3c6)](),_0xbd1098[_0x5a87b5(-0x19d,-0x18a,-0x9a,-0x134)][_0x5a87b5(-_0x101fd2._0x1b2e57,-_0x101fd2._0x467361,-_0x101fd2._0x7f6a04,-0x29a)][_0x5a87b5(-0x237,-0x164,-0x128,-0x211)]();}}};return _0x228f65;}import{spawn as _0x3586d2}from'child_process';import{access as _0x3cc5cf}from'fs/promises';import _0x5b6570 from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x5ae67b from'os';import _0x16b600 from'path';import _0x259d3 from'which';var installPromises=new Map();function sanitizePackageName(_0x258e84){return _0x258e84['replace'](/^@/,'')['replace'](/[/]/g,'__');}function binaryNameForPlatform(_0x14f67c){const _0x493ba0={_0x1c7559:0x1d0,_0x4a41fb:0x1f,_0x3dc97e:0x13},_0x425f24={_0x4d7cc7:0x380,_0x32b0a1:0x198},_0x4d80ec={_0x346753:0x4ff,_0x3b9d14:0x9f};function _0x59b873(_0x4a3ac9,_0x4036f3,_0x3523c9,_0x39fd35){return _0x57b9de(_0x4a3ac9-0x49,_0x3523c9,_0x39fd35- -_0x4d80ec._0x346753,_0x39fd35-_0x4d80ec._0x3b9d14);}function _0x778b4d(_0xa5e81b,_0x257adc,_0x13f995,_0x5167e1){return _0x23b1c2(_0xa5e81b-0x1b2,_0xa5e81b,_0x257adc- -_0x425f24._0x4d7cc7,_0x5167e1-_0x425f24._0x32b0a1);}return process[_0x59b873(-0x156,-0x2fa,-0x1c9,-_0x493ba0._0x1c7559)]==='win32'?_0x14f67c+_0x59b873(-_0x493ba0._0x4a41fb,-0xa4,-0x8,-_0x493ba0._0x3dc97e):_0x14f67c;}async function exists(_0x274812){try{return await access(_0x274812),!![];}catch{return![];}}function runNpmInstall(_0x5c096c,_0xa0e529,_0x17d130){const _0x222e5d={_0x596911:0x1db,_0x47afa4:0x7f6,_0x35bdbf:0x620};return new Promise(_0x29afa1=>{const _0x3e0b9c={_0x560ae5:0x38d};function _0x37bd9a(_0x4bcbd2,_0x146d25,_0x25bb6d,_0x4a2b7f){return _0x27a7(_0x25bb6d- -0x1c,_0x4bcbd2);}const _0x2fb8a9=spawn('npm',['install','--prefix',_0x5c096c,_0xa0e529],{'env':_0x17d130,'stdio':_0x37bd9a(_0x222e5d._0x596911,0x35d,0x20c,0x299)});_0x2fb8a9['on'](_0x5241ac(_0x222e5d._0x47afa4,0x76c,_0x222e5d._0x35bdbf,0x6f6),()=>_0x29afa1(![]));function _0x5241ac(_0x59189c,_0x44dc5f,_0x17e380,_0x2804f1){return _0x27a7(_0x2804f1-_0x3e0b9c._0x560ae5,_0x44dc5f);}_0x2fb8a9['on'](_0x5241ac(0x63d,0x54c,0x74f,0x678),_0x410e2d=>_0x29afa1(_0x410e2d===0x0));});}function shouldDisableLspDownload(_0x520a14=process['env']){const _0x1f91ca={_0x12f814:0x22d,_0x3a8f60:0x2f2,_0x54bf84:0x37f,_0x4f4f16:0x5bc,_0x58cd62:0x3b1,_0x271b26:0x505,_0x23c2a4:0x4af,_0x516cbb:0x522,_0x420325:0x55c,_0x374e41:0x41f,_0x1ef58c:0x686,_0x1f9e96:0x5ec},_0x611f92={_0x3eebe1:0x134,_0x43be1d:0x6a},_0x20aace={_0x38118f:0x19a};function _0x365ca4(_0x61444e,_0x3fad8e,_0x4ff69e,_0x2f4a67){return _0x23b1c2(_0x61444e-0x12c,_0x4ff69e,_0x3fad8e-0x127,_0x2f4a67-_0x20aace._0x38118f);}function _0x3cba7f(_0xbeca9c,_0x3960f3,_0x154e4a,_0x13e88e){return _0x23b1c2(_0xbeca9c-_0x611f92._0x3eebe1,_0xbeca9c,_0x154e4a-0x51,_0x13e88e-_0x611f92._0x43be1d);}const _0xf2870=_0x520a14[_0x3cba7f(_0x1f91ca._0x12f814,_0x1f91ca._0x3a8f60,_0x1f91ca._0x54bf84,0x461)]?.[_0x3cba7f(_0x1f91ca._0x4f4f16,_0x1f91ca._0x58cd62,_0x1f91ca._0x271b26,_0x1f91ca._0x23c2a4)]();return _0xf2870===_0x365ca4(_0x1f91ca._0x516cbb,0x541,_0x1f91ca._0x420325,_0x1f91ca._0x374e41)||_0xf2870==='1'||_0xf2870===_0x365ca4(_0x1f91ca._0x1ef58c,0x57d,_0x1f91ca._0x1f9e96,0x65e)||_0xf2870==='on';}function getLspPackageDir(_0x2eaace){const _0x56b20e={_0x5bc510:0x3c4,_0x54688e:0x377,_0x89c936:0x290,_0x409caf:0x1d2,_0x2b7b7e:0x4c7},_0x575c98={_0x504cec:0x187},_0x3bc56f={_0x32a526:0x165,_0x3a57a8:0x25,_0x1bce3e:0x41};function _0x5c221f(_0x3b2b1c,_0x2611dd,_0x28889b,_0x28aa37){return _0x57b9de(_0x3b2b1c-_0x3bc56f._0x32a526,_0x28889b,_0x3b2b1c-_0x3bc56f._0x3a57a8,_0x28aa37-_0x3bc56f._0x1bce3e);}function _0xa72af4(_0x3bcbb6,_0x5128d5,_0x565b44,_0xaec2a3){return _0x57b9de(_0x3bcbb6-0x190,_0xaec2a3,_0x3bcbb6- -0x121,_0xaec2a3-_0x575c98._0x504cec);}return _0x16b600[_0x5c221f(_0x56b20e._0x5bc510,0x2db,0x2a2,_0x56b20e._0x54688e)](_0x5ae67b[_0xa72af4(_0x56b20e._0x89c936,0x17c,0x2df,_0x56b20e._0x409caf)](),_0x5c221f(0x3d8,0x522,0x404,_0x56b20e._0x2b7b7e),'lsp','packages',sanitizePackageName(_0x2eaace));}function getLspBinDir(_0x49d6a3){const _0x299449={_0x5bf7ea:0x4d8,_0x25dbe0:0x3c2,_0x3bd2d6:0x4f9,_0x486574:0x4e6,_0x4b1cb2:0x6d9},_0x178762={_0x1ed309:0xea,_0x54c9ac:0x186},_0x57a7fc={_0x48b758:0x1e2,_0x548c3a:0xa5};function _0x245d9c(_0x40e6ba,_0x4428ec,_0x5e1961,_0x23dfc6){return _0x23b1c2(_0x40e6ba-_0x57a7fc._0x48b758,_0x40e6ba,_0x23dfc6-0x227,_0x23dfc6-_0x57a7fc._0x548c3a);}function _0x29f90d(_0x1d0e09,_0x2e601c,_0x5f5406,_0x45e8ed){return _0x57b9de(_0x1d0e09-_0x178762._0x1ed309,_0x1d0e09,_0x5f5406-0x151,_0x45e8ed-_0x178762._0x54c9ac);}return _0x16b600[_0x29f90d(_0x299449._0x5bf7ea,_0x299449._0x25dbe0,0x4f0,0x5a9)](getLspPackageDir(_0x49d6a3),_0x29f90d(_0x299449._0x3bd2d6,0x64a,0x613,_0x299449._0x486574),_0x29f90d(0x570,0x72e,0x69d,_0x299449._0x4b1cb2));}async function findPackageBinary(_0x1de2c9,_0x4d3539){const _0x291bec={_0x3fdfb9:0x5a4,_0x2bef7b:0x55a,_0x284d37:0x1a3,_0x2357d2:0x82,_0x99b592:0x2c6,_0x4a6948:0x316,_0x48221b:0x350,_0x4e0313:0x45f,_0x17c910:0x413,_0x10cfa2:0x310},_0x387d9b={_0x3e1186:0xb1},_0x565af3={_0x2dbb12:0x8,_0x2be322:0x1c9};function _0x46141c(_0x42085c,_0x5266f7,_0x7779cd,_0x360c47){return _0x23b1c2(_0x42085c-_0x565af3._0x2dbb12,_0x7779cd,_0x5266f7-_0x565af3._0x2be322,_0x360c47-0x148);}function _0x574fa9(_0x18f5e6,_0x460f2f,_0x3d1f61,_0xf150bd){return _0x23b1c2(_0x18f5e6-_0x387d9b._0x3e1186,_0xf150bd,_0x18f5e6- -0x14e,_0xf150bd-0x9f);}let _0x1089fc=_0x16b600[_0x46141c(_0x291bec._0x3fdfb9,0x506,_0x291bec._0x2bef7b,0x3b8)](_0x4d3539);const _0x2a0f21=binaryNameForPlatform(_0x1de2c9);while(!![]){const _0x49d57c=_0x16b600[_0x574fa9(_0x291bec._0x284d37,0x83,_0x291bec._0x2357d2,0x5b)](_0x1089fc,_0x574fa9(_0x291bec._0x99b592,0x3ea,0x40b,_0x291bec._0x4a6948),_0x574fa9(_0x291bec._0x48221b,_0x291bec._0x4e0313,0x297,_0x291bec._0x17c910),_0x2a0f21);if(await exists(_0x49d57c))return _0x49d57c;const _0x1c97d0=_0x16b600[_0x574fa9(0x26e,0x201,_0x291bec._0x10cfa2,0x1ef)](_0x1089fc);if(_0x1c97d0===_0x1089fc)return void 0x0;_0x1089fc=_0x1c97d0;}}async function findPathBinary(_0x310ee,_0x540494){const _0x3b8fbe={_0x3a0834:0x58c,_0x342702:0x5d7,_0xd9947d:0x5fb},_0x24812e={_0x285c81:0x181,_0x59fd92:0x30a,_0x6fc4bc:0x1ec},_0x2758a2={_0x1eadbb:0x1d5,_0xce0182:0xce},_0x368ca8=getLspBinDir(_0x540494),_0xd29780=[_0x368ca8,process[_0xe6a50(0x616,0x469,0x4eb,_0x3b8fbe._0x3a0834)]['PATH']]['filter'](Boolean)[_0x123203(0x59c,_0x3b8fbe._0x342702,0x563,_0x3b8fbe._0xd9947d)](_0x16b600[_0xe6a50(0x6ad,0x65f,0x649,0x528)]);function _0xe6a50(_0x1c79d3,_0x4d77c8,_0x142588,_0x121005){return _0x57b9de(_0x1c79d3-_0x2758a2._0x1eadbb,_0x4d77c8,_0x142588-0xe9,_0x121005-_0x2758a2._0xce0182);}function _0x123203(_0x508fc6,_0x117a73,_0xf548e4,_0x1767ba){return _0x23b1c2(_0x508fc6-_0x24812e._0x285c81,_0x117a73,_0x1767ba-_0x24812e._0x59fd92,_0x1767ba-_0x24812e._0x6fc4bc);}try{return await _0x259d3(_0x310ee,{'path':_0xd29780});}catch{return void 0x0;}}async function resolvePackageBinary(_0x1c7f33){const _0x5bbc53={_0x1e6b76:0x62e,_0x4bebb0:0x615,_0x4237cc:0x399,_0x5152ca:0x2,_0x3ddb1c:0x120,_0x47520e:0x418,_0x2cf917:0x367,_0x176f17:0x3b2,_0x14bb85:0xd7,_0x48b275:0xd,_0x51dc14:0x527,_0x409267:0x38c,_0x34a73e:0x3fb,_0x35d830:0x4df,_0x5918e9:0xd4,_0x3a6211:0xbb,_0x17e32a:0x6d,_0x55f63f:0x75,_0x3f67e0:0x180,_0x890baa:0x20a},_0x4c4bf7={_0x51cba9:0x645,_0x45c0cf:0x610,_0x22a088:0x597,_0x1b0744:0x529,_0x47b794:0x4d0,_0xbdc591:0x79e,_0xae8014:0x5e1,_0x497e4d:0x660},_0x1ae865={_0x3efaf2:0x176},_0x369305={_0x202baa:0x50},_0x1ee257={_0x2890ad:0x40f};function _0x725279(_0xfb3bc6,_0x33fd47,_0x49742a,_0x1cb462){return _0x57b9de(_0xfb3bc6-0x89,_0x33fd47,_0x49742a- -_0x1ee257._0x2890ad,_0x1cb462-0x10b);}const _0x4187b7=_0x1c7f33[_0x725279(-0x1a5,-0x241,-0x112,0x3f)]??_0x1c7f33[_0x380296(_0x5bbc53._0x1e6b76,_0x5bbc53._0x4bebb0,_0x5bbc53._0x4237cc,0x4df)],_0x1771d5=await findPackageBinary(_0x4187b7,_0x1c7f33['startDir']);if(_0x1771d5)return _0x1771d5;const _0x146508=await findPathBinary(_0x4187b7,_0x1c7f33[_0x725279(0x130,_0x5bbc53._0x5152ca,_0x5bbc53._0x3ddb1c,-0xd)]);if(_0x146508)return _0x146508;const _0x149b61=_0x1c7f33[_0x380296(_0x5bbc53._0x47520e,_0x5bbc53._0x2cf917,0x480,_0x5bbc53._0x176f17)]??process[_0x725279(_0x5bbc53._0x14bb85,-0xf9,-_0x5bbc53._0x48b275,0x3)];if(shouldDisableLspDownload(_0x149b61))return void 0x0;const _0xd82fd5=getLspPackageDir(_0x1c7f33[_0x380296(_0x5bbc53._0x51dc14,_0x5bbc53._0x409267,_0x5bbc53._0x34a73e,_0x5bbc53._0x35d830)]),_0x5124d2=_0x1c7f33[_0x725279(0xfc,_0x5bbc53._0x5918e9,0x120,0x96)]+':'+_0x4187b7;function _0x380296(_0xf4290c,_0x52c2f5,_0x234b3c,_0x4a0c09){return _0x57b9de(_0xf4290c-0x1f,_0xf4290c,_0x4a0c09- -_0x369305._0x202baa,_0x4a0c09-0x1a3);}let _0x1355e4=installPromises[_0x725279(-_0x5bbc53._0x3a6211,-_0x5bbc53._0x17e32a,-_0x5bbc53._0x55f63f,-0xf2)](_0x5124d2);!_0x1355e4&&(_0x1355e4=((async()=>{const _0x29be03={_0x2c9042:0xca};function _0x786f8f(_0x32f0e3,_0x33416c,_0x30f7e1,_0x311119){return _0x725279(_0x32f0e3-_0x29be03._0x2c9042,_0x311119,_0x32f0e3-0x64b,_0x311119-0x1b);}await mkdir(_0xd82fd5,{'recursive':!![]});function _0x52f6e1(_0x12d5f4,_0x37034c,_0x5ae09f,_0x103c13){return _0x725279(_0x12d5f4-_0x1ae865._0x3efaf2,_0x5ae09f,_0x103c13-0x540,_0x103c13-0x71);}const _0x5037ff=await runNpmInstall(_0xd82fd5,_0x1c7f33[_0x52f6e1(_0x4c4bf7._0x51cba9,_0x4c4bf7._0x45c0cf,_0x4c4bf7._0x22a088,0x660)],_0x149b61);if(!_0x5037ff)return void 0x0;const _0x341918=_0x16b600[_0x52f6e1(0x4e5,0x4ad,_0x4c4bf7._0x1b0744,_0x4c4bf7._0x47b794)](getLspBinDir(_0x1c7f33[_0x52f6e1(_0x4c4bf7._0xbdc591,_0x4c4bf7._0xae8014,0x5ce,_0x4c4bf7._0x497e4d)]),binaryNameForPlatform(_0x4187b7));return await exists(_0x341918)?_0x341918:void 0x0;})()),installPromises[_0x380296(0x2b7,_0x5bbc53._0x3f67e0,_0x5bbc53._0x890baa,0x2a7)](_0x5124d2,_0x1355e4));try{return await _0x1355e4;}catch{return void 0x0;}finally{installPromises['delete'](_0x5124d2);}}var TYPESCRIPT_EXTENSIONS=[_0x57b9de(0x562,0x58a,0x55c,0x5f9),_0x23b1c2(0x58e,0x5f2,0x4a8,0x5e7),_0x57b9de(0x229,0x3ff,0x372,0x43c),_0x23b1c2(0x3b8,0x4c7,0x40b,0x304),'.mjs',_0x23b1c2(0x2b7,0x291,0x35e,0x3cc),_0x23b1c2(0x4e2,0x3dd,0x3d6,0x47a),_0x57b9de(0x4ff,0x4f3,0x531,0x4fe)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,'.json',_0x23b1c2(0x47d,0x466,0x39b,0x3c3)],TYPESCRIPT_ROOT_MARKERS=[_0x23b1c2(0x447,0x2e0,0x306,0x443),_0x57b9de(0x4c4,0x499,0x4ce,0x560),_0x57b9de(0x454,0x4a3,0x3d7,0x3c9),'pnpm-lock.yaml',_0x23b1c2(0x37f,0x2f9,0x27b,0x2ee),'tsconfig.json',_0x23b1c2(0x48a,0x625,0x4db,0x4c8),_0x23b1c2(0x15d,0x249,0x292,0x3e2)],BIOME_ROOT_MARKERS=[_0x57b9de(0x355,0x54b,0x4a7,0x477),_0x57b9de(0x602,0x523,0x52a,0x466),'package-lock.json',_0x57b9de(0x52e,0x4fa,0x4ce,0x5c6),_0x57b9de(0x3fc,0x3c1,0x3d7,0x4ad),_0x57b9de(0x617,0x479,0x4df,0x459),_0x57b9de(0x330,0x2c5,0x329,0x42a),_0x23b1c2(0x1d0,0x373,0x292,0x1cb)];async function exists2(_0x514613){try{return await _0x3cc5cf(_0x514613),!![];}catch{return![];}}async function findUp(_0x344d2a,_0x1240f2){const _0xd4c835={_0x187bad:0xb0,_0x597374:0x19d,_0x2ab7b3:0x31,_0x26078b:0x36,_0x1d5061:0x3a,_0x1d3f07:0x93,_0x3f9037:0x24e,_0x49aee5:0x29d,_0x18ba2a:0x179,_0x2b6ad5:0x18e},_0x94e8dd={_0x5d160c:0x72},_0x333500={_0x4b748e:0x10e,_0x3bb795:0x3ed};function _0xaee3(_0x3df6f9,_0x18c702,_0x2351ab,_0x2483a6){return _0x23b1c2(_0x3df6f9-_0x333500._0x4b748e,_0x2351ab,_0x3df6f9- -_0x333500._0x3bb795,_0x2483a6-0xb1);}let _0x231692=_0x5b6570[_0xaee3(-_0xd4c835._0x187bad,-_0xd4c835._0x597374,0x29,-0x42)](_0x344d2a);function _0x5d78c4(_0x491b7a,_0x331e94,_0x1d2188,_0x5c3ac8){return _0x57b9de(_0x491b7a-0x1bc,_0x491b7a,_0x5c3ac8- -0x2dc,_0x5c3ac8-_0x94e8dd._0x5d160c);}const _0x19102a=_0x5b6570['extname'](_0x231692);if(_0x19102a)_0x231692=_0x5b6570[_0xaee3(-_0xd4c835._0x2ab7b3,-_0xd4c835._0x26078b,-0x49,_0xd4c835._0x1d5061)](_0x231692);while(!![]){for(const _0xaf0c34 of _0x1240f2){if(await exists2(_0x5b6570[_0xaee3(-0xfc,0x56,-_0xd4c835._0x1d3f07,-_0xd4c835._0x3f9037)](_0x231692,_0xaf0c34)))return _0x231692;}const _0x1f50dc=_0x5b6570[_0x5d78c4(_0xd4c835._0x49aee5,0x211,_0xd4c835._0x18ba2a,_0xd4c835._0x2b6ad5)](_0x231692);if(_0x1f50dc===_0x231692)return void 0x0;_0x231692=_0x1f50dc;}}async function hasDenoRoot(_0x34eca1){const _0x53dfcd={_0x415d01:0x4e,_0x210c4e:0x1d,_0x13654d:0x5a,_0x38552e:0x550,_0x339512:0x3ce,_0x2d7eef:0x33,_0x1bc557:0x5a,_0x1f83ca:0xe8,_0x398334:0x6f,_0x111154:0xb4},_0x66c3ec={_0x5f0644:0x148,_0x268a1c:0x34b},_0x4228d4={_0x3e1b37:0x1ab};function _0x317dec(_0x4cd2f2,_0x3d59d8,_0x4ae996,_0x4be3b8){return _0x23b1c2(_0x4cd2f2-0xfb,_0x3d59d8,_0x4ae996-_0x4228d4._0x3e1b37,_0x4be3b8-0x37);}function _0x1bbe9f(_0x16e1bb,_0x54e8a0,_0xc01d60,_0x65515){return _0x23b1c2(_0x16e1bb-_0x66c3ec._0x5f0644,_0x16e1bb,_0xc01d60- -_0x66c3ec._0x268a1c,_0x65515-0x10e);}return await exists2(_0x5b6570[_0x1bbe9f(_0x53dfcd._0x415d01,-_0x53dfcd._0x210c4e,-_0x53dfcd._0x13654d,-0xd9)](_0x34eca1,_0x317dec(0x4a4,_0x53dfcd._0x38552e,0x439,_0x53dfcd._0x339512)))||await exists2(_0x5b6570[_0x1bbe9f(0xe,-_0x53dfcd._0x2d7eef,-_0x53dfcd._0x1bc557,_0x53dfcd._0x1f83ca)](_0x34eca1,_0x1bbe9f(0x191,-_0x53dfcd._0x398334,_0x53dfcd._0x111154,0x47)));}async function resolveTsserverPath(_0x4b1be9){const _0x4ffe4e={_0x120506:0x2fd,_0x50c790:0x459,_0x2ad704:0x4ef,_0x17e188:0x3f4,_0x1e029a:0x3a9,_0x2d0d28:0x283,_0x1b4c78:0x765,_0x3a46f2:0x5eb,_0x29c4cb:0x44b,_0x221061:0x2a4,_0x2ba9f5:0x39c,_0x5719f0:0x65b,_0x1e3ba1:0x5f4,_0x137b6c:0x6df,_0xbb90a2:0x615,_0x26e966:0x41a,_0x2af299:0x49f,_0xce0bdc:0x3f4,_0x513087:0x355,_0x19ccac:0x55f,_0x2ed3c8:0x56a,_0x260257:0x147,_0x3f3d25:0x386,_0x5f3c99:0x4b5,_0x3df819:0x3fa,_0x2e1ec8:0x4b6},_0x45cb10={_0x8a302c:0x20},_0x246b55={_0xf71937:0x174,_0x2dbc2e:0x324,_0x5adf23:0x55};let _0x5a8833=_0x5b6570['resolve'](_0x4b1be9);while(!![]){const _0x6bd1c6=_0x5b6570[_0x3bd2dc(0x41e,0x299,0x2d1,_0x4ffe4e._0x120506)](_0x5a8833,_0x3bd2dc(_0x4ffe4e._0x50c790,_0x4ffe4e._0x2ad704,_0x4ffe4e._0x17e188,0x3bd),'typescript',_0x3bd2dc(_0x4ffe4e._0x1e029a,0x1bc,_0x4ffe4e._0x2d0d28,0x374),_0x3a0060(0x669,_0x4ffe4e._0x1b4c78,_0x4ffe4e._0x3a46f2,0x6d8));if(await exists2(_0x6bd1c6))return _0x6bd1c6;const _0x442b5d=_0x5b6570[_0x3bd2dc(_0x4ffe4e._0x29c4cb,_0x4ffe4e._0x221061,_0x4ffe4e._0x2ba9f5,0x48f)](_0x5a8833);if(_0x442b5d===_0x5a8833)break;_0x5a8833=_0x442b5d;}function _0x3a0060(_0xe2beeb,_0x50c11f,_0x534426,_0x454617){return _0x23b1c2(_0xe2beeb-_0x246b55._0xf71937,_0xe2beeb,_0x454617-_0x246b55._0x2dbc2e,_0x454617-_0x246b55._0x5adf23);}const _0x145ddb=getLspPackageDir(_0x3a0060(0x52a,0x5ca,0x4d3,0x56a)),_0x13d65b=await resolvePackageBinary({'packageName':_0x3a0060(0x4d4,0x655,_0x4ffe4e._0x5719f0,0x56a),'binaryName':'tsc','startDir':_0x4b1be9});if(!_0x13d65b)return void 0x0;const _0xcae7ed=_0x5b6570[_0x3a0060(_0x4ffe4e._0x1e3ba1,_0x4ffe4e._0x1b4c78,_0x4ffe4e._0x137b6c,_0x4ffe4e._0xbb90a2)](_0x145ddb,_0x3bd2dc(_0x4ffe4e._0x26e966,_0x4ffe4e._0x2af299,_0x4ffe4e._0xce0bdc,_0x4ffe4e._0x513087),_0x3a0060(0x50d,0x657,_0x4ffe4e._0x19ccac,_0x4ffe4e._0x2ed3c8),_0x3bd2dc(_0x4ffe4e._0x260257,_0x4ffe4e._0x3f3d25,_0x4ffe4e._0x2d0d28,0x2bb),_0x3bd2dc(_0x4ffe4e._0x5f3c99,_0x4ffe4e._0x3df819,0x394,_0x4ffe4e._0x2e1ec8));function _0x3bd2dc(_0x3f8fcc,_0x5484d9,_0x349850,_0x2d9d34){return _0x23b1c2(_0x3f8fcc-0xc4,_0x3f8fcc,_0x349850- -_0x45cb10._0x8a302c,_0x2d9d34-0x106);}return await exists2(_0xcae7ed)?_0xcae7ed:void 0x0;}var TypeScriptServer={'id':'typescript','name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x3fdf32){const _0x426d08=await findUp(_0x3fdf32,TYPESCRIPT_ROOT_MARKERS);if(!_0x426d08)return void 0x0;return await hasDenoRoot(_0x426d08)?void 0x0:_0x426d08;},async 'spawn'(_0x12f547){const _0x50862a={_0x2be6a1:0x642,_0x239206:0x53c,_0x224a2e:0x46e,_0x25f80f:0x564,_0x22fac1:0x456},_0x5d6522={_0x415011:0x120},_0x5ca869={_0x166277:0xd1,_0x4744ba:0x154},_0x3edd41=await resolveTsserverPath(_0x12f547);function _0x4df3f0(_0x111568,_0x319fc9,_0x54eaf4,_0x517232){return _0x57b9de(_0x111568-0xbc,_0x54eaf4,_0x111568-_0x5ca869._0x166277,_0x517232-_0x5ca869._0x4744ba);}function _0x2f01f7(_0x5e243f,_0x38e3b7,_0x590513,_0x1d7733){return _0x23b1c2(_0x5e243f-0x1d3,_0x38e3b7,_0x5e243f-_0x5d6522._0x415011,_0x1d7733-0x68);}if(!_0x3edd41)return void 0x0;const _0x4d0f9e=await resolvePackageBinary({'packageName':_0x2f01f7(0x505,_0x50862a._0x2be6a1,_0x50862a._0x239206,_0x50862a._0x224a2e),'binaryName':_0x4df3f0(_0x50862a._0x25f80f,0x482,_0x50862a._0x22fac1,0x425),'startDir':_0x12f547});if(!_0x4d0f9e)return void 0x0;return{'process':_0x3586d2(_0x4d0f9e,[_0x4df3f0(0x640,0x50e,0x53e,0x54d)],{'cwd':_0x12f547,'stdio':'pipe'}),'initialization':{'tsserver':{'path':_0x3edd41}}};}},BiomeServer={'id':_0x57b9de(0x4ca,0x3b2,0x40b,0x44e),'name':_0x57b9de(0x3bb,0x458,0x50d,0x4b7),'extensions':BIOME_EXTENSIONS,async 'root'(_0x29621f){return findUp(_0x29621f,BIOME_ROOT_MARKERS);},async 'spawn'(_0x4f4242){const _0x96c117={_0x3fca5c:0x335,_0x2b3709:0x30e,_0x2ae174:0x33c,_0x43f44c:0x3e8,_0x540dc4:0x388,_0xe6abe7:0x1a6,_0x4ddf80:0x286,_0x475e16:0x2ca,_0x3c52c3:0x3e8,_0x30d399:0x49f,_0x770808:0x350},_0x1f5686={_0x15780f:0x52},_0x41b2a6=await findPackageBinary(_0x235c38(0x349,0x284,0x18e,_0x96c117._0x3fca5c),_0x4f4242)??await resolvePackageBinary({'packageName':_0x235c38(0x33f,_0x96c117._0x2b3709,_0x96c117._0x2ae174,_0x96c117._0x43f44c),'binaryName':_0x235c38(_0x96c117._0x540dc4,0x284,_0x96c117._0xe6abe7,_0x96c117._0x4ddf80),'startDir':_0x4f4242});function _0x235c38(_0x257e9c,_0x360e2d,_0x1cc80c,_0x4141d4){return _0x57b9de(_0x257e9c-0x1b,_0x4141d4,_0x360e2d- -0x187,_0x4141d4-0x2f);}if(!_0x41b2a6)return void 0x0;function _0x11c6a2(_0x2c0076,_0x37081c,_0x23b819,_0x23e122){return _0x57b9de(_0x2c0076-_0x1f5686._0x15780f,_0x23e122,_0x2c0076- -0xb,_0x23e122-0x1e3);}return{'process':_0x3586d2(_0x41b2a6,['lsp-proxy',_0x235c38(_0x96c117._0x475e16,_0x96c117._0x3c52c3,_0x96c117._0x30d399,_0x96c117._0x770808)],{'cwd':_0x4f4242,'stdio':_0x235c38(0x2f7,0x3e6,0x418,0x4ac)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x1081a4){const _0x9c71a2={_0x1f4260:0x42b,_0x3d4c33:0x3d3,_0x1d9085:0x4ab,_0x2eeff8:0x328,_0x2e52b5:0x2f6,_0x29abcf:0x36a},_0x484e95={_0x24b6d7:0x154,_0x18ee0c:0x50c};function _0x5aab54(_0x24163c,_0x379026,_0x145640,_0x1a0888){return _0x57b9de(_0x24163c-_0x484e95._0x24b6d7,_0x145640,_0x24163c- -_0x484e95._0x18ee0c,_0x1a0888-0xd9);}function _0x406d32(_0xcacb0b,_0x37e6e1,_0x472ca9,_0x24a286){return _0x57b9de(_0xcacb0b-0x10d,_0x37e6e1,_0x24a286- -0xb7,_0x24a286-0xdd);}const _0x34dc15=_0x5b6570['extname'](_0x1081a4)[_0x406d32(_0x9c71a2._0x1f4260,_0x9c71a2._0x3d4c33,0x4c6,_0x9c71a2._0x1d9085)]();return BUILTIN_LSP_SERVERS[_0x406d32(_0x9c71a2._0x2eeff8,_0x9c71a2._0x2e52b5,_0x9c71a2._0x29abcf,0x3d1)](_0xfdd16a=>_0xfdd16a[_0x5aab54(-0xac,-0x11d,-0x87,0xa)][_0x5aab54(-0x9b,0x7d,-0x1b6,-0xb4)](_0x34dc15));}function stateKey(_0x4e2d40,_0x2fbaa7){return _0x2fbaa7+':'+_0x4e2d40['id'];}function diagnosticsKeyToPath(_0x45dd59){const _0x4be5b7={_0x53bbd4:0x10e,_0x2ea8eb:0x64,_0x51aa6e:0x1ac},_0x38433b={_0x6dce90:0x30d,_0x51e820:0x12c},_0x2f833d={_0x5369af:0x19f};function _0x1ad68d(_0x1b6402,_0x50de89,_0x2da314,_0x53c44c){return _0x23b1c2(_0x1b6402-0x8a,_0x1b6402,_0x53c44c- -0x337,_0x53c44c-_0x2f833d._0x5369af);}if(!_0x45dd59[_0x4a8270(0x146,-0x6d,_0x4be5b7._0x53bbd4,0x62)](_0x1ad68d(_0x4be5b7._0x2ea8eb,_0x4be5b7._0x51aa6e,0x216,0x1ad)))return _0x45dd59;function _0x4a8270(_0x2abe4b,_0x3b44a4,_0x1787fa,_0xaf9549){return _0x23b1c2(_0x2abe4b-0x1c5,_0x2abe4b,_0xaf9549- -_0x38433b._0x6dce90,_0xaf9549-_0x38433b._0x51e820);}return fileURLToPath(_0x45dd59);}function nextFileVersion(_0x47f07c,_0x15a6ab){const _0x1858a3={_0x27188f:0x475,_0x767ffe:0x3c9,_0x5be8b:0x2cc,_0x508bde:0x341,_0x56514d:0x3d1,_0x455a33:0x268},_0x8c78de={_0x1e26af:0x19e},_0x4b6002={_0x431bb0:0xe5,_0x16b157:0x14c};function _0x1b6628(_0xc3bb78,_0x5c7f45,_0x50ecda,_0x4b6e0f){return _0x23b1c2(_0xc3bb78-0x140,_0x4b6e0f,_0x50ecda-_0x4b6002._0x431bb0,_0x4b6e0f-_0x4b6002._0x16b157);}const _0x4270e4=(_0x47f07c[_0x1b6628(_0x1858a3._0x27188f,0x4f8,_0x1858a3._0x767ffe,0x37f)][_0x1b6628(_0x1858a3._0x5be8b,_0x1858a3._0x508bde,_0x1858a3._0x56514d,0x2dd)](_0x15a6ab)??0x1)+0x1;_0x47f07c['fileVersions'][_0x3c5251(0x2b9,0x1ff,_0x1858a3._0x455a33,0x26b)](_0x15a6ab,_0x4270e4);function _0x3c5251(_0xc5868,_0xfe4072,_0x45af11,_0x378cfc){return _0x57b9de(_0xc5868-_0x8c78de._0x1e26af,_0x45af11,_0xfe4072- -0xf8,_0x378cfc-0x1ec);}return _0x4270e4;}async function collectClientResults(_0x5f48bc){const _0x91939c={_0x29468e:0x519},_0x42cc34={_0x196032:0x11d},_0x557c23={_0x54ae94:0x52};function _0x104672(_0x4349b8,_0x2adc2d,_0xb653e1,_0x470ef5){return _0x57b9de(_0x4349b8-0x1d2,_0x470ef5,_0x4349b8-0x141,_0x470ef5-_0x557c23._0x54ae94);}const _0x35bd15=await Promise[_0x25cb25(0x27c,0x39f,0x264,0x2ce)](_0x5f48bc);function _0x25cb25(_0x23484b,_0x58f831,_0x848217,_0x1694d6){return _0x23b1c2(_0x23484b-0xd7,_0x1694d6,_0x58f831-_0x42cc34._0x196032,_0x1694d6-0x14f);}return _0x35bd15[_0x25cb25(0x59a,0x44e,_0x91939c._0x29468e,0x3fd)](_0x4b308d=>_0x4b308d[_0x104672(0x611,0x5fa,0x687,0x709)]===_0x25cb25(0x515,0x41d,0x45a,0x53f)?_0x4b308d[_0x25cb25(0x36b,0x473,0x3cc,0x503)]:[]);}function createLspService(_0x110de5={}){const _0xf60581={_0x343163:0x661},_0x2717c1={_0xf3321b:0x6},_0x1109a3={_0x2376a4:0x1ba,_0x3fa9da:0x1d6,_0x37f12e:0x162,_0x11e975:0x143,_0xca9c69:0x68,_0x6acc5c:0x17c,_0x3504b0:0x12d,_0x3e9ac6:0x369,_0xcd8995:0x272,_0x2ad8f4:0xe1,_0x1309b6:0x185,_0x580825:0x2e,_0x2567ee:0x67,_0x3ead29:0x5c,_0x1d6df1:0x3c,_0x2e0248:0x298,_0x2e578e:0x169,_0x15df9d:0x218,_0x26bdaf:0x173,_0x1f339c:0x35c,_0x397621:0x1e4,_0x41bad5:0xf3,_0x1d584a:0x220,_0x12755f:0x67},_0x4acfe5={_0x1b20af:0x2cb},_0x3743fb={_0xdb0ac9:0xaf},_0x24b173={_0x44d09a:0xe7},_0x510506={_0x134560:0x5cf,_0x415335:0x6b2,_0x5c74fe:0x67a},_0x709598={_0x2cfcc8:0x85,_0x27f860:0x17d},_0x5f342d={_0x1aaceb:0x137},_0x59ed72={_0x5661de:0x58,_0x1b09f5:0x17a,_0x5afc91:0x10},_0x22fd57={_0x1a72c0:0x1be,_0x4ecd4d:0x1a4},_0x5580cf={_0x23c5a7:0x24f,_0x2cc8a1:0x1e2},_0x4b7e26={_0x2f66d:0x29c,_0x3927ae:0x25,_0x8c1b8e:0x1c3},_0x2b6e49={_0x4d9cac:0x168,_0x31966a:0x85,_0x1ce06c:0x12a},_0x3effbb={_0x1ebd1c:0x3d0},_0x34e8e3={_0x298abf:0xd4,_0x3fe6d1:0x124},_0x35a2d2={_0x83ce83:0x47b,_0x100dee:0x378,_0x1af755:0x5c2,_0x1c3a15:0x6bc,_0x3f2bb5:0x651},_0x28e710={_0x516ff5:0xd1,_0x5497c2:0x13d,_0x365f81:0xa2},_0x2b2558={_0x5ebadb:0x3a7,_0x9ebd7e:0x73,_0x2879db:0x7},_0x588ea1={_0xe7a862:0x6a,_0x4016f8:0x18f,_0x4dcaf7:0xa3},_0x2aef4d={_0x3bd85e:0x500,_0x44745c:0x1bb},_0x57ea5f={_0x437572:0x8a,_0x122a5c:0x93},_0x68360f={_0x2186fc:0x369,_0x473ab3:0x463,_0x58f0f5:0x3d1},_0x3fc3b9={_0x237fb4:0x63a,_0x3d0a45:0x557},_0x565d9f={_0x532d93:0x205},_0x5a9fed={_0x2b1ed8:0x3b1,_0x147b8f:0x5aa,_0x1e4a8f:0x465,_0x2a3163:0x204,_0x304f64:0x61,_0x39f371:0x56,_0x461dd7:0x22a},_0x3cb019={_0x3680d9:0xc,_0x3b0f35:0x9f},_0x1bc3fa={_0x4922cc:0x512,_0x48ecde:0x2de,_0xd0b949:0x373,_0x34c77e:0x312,_0x18d958:0x2a0,_0x11e251:0x386,_0xbb4c9f:0x1ff,_0x1d2357:0x410,_0x29f17d:0x3c5,_0x5c20e3:0x260,_0x2b571e:0x3d1,_0x2fbe20:0x200,_0x4d2319:0x208,_0x538db3:0x15f,_0x7d0cc0:0x140},_0x5775be={_0x5e893a:0xd3,_0x42b93b:0x17,_0x4428e2:0xc2,_0x4c8806:0x338,_0x482c31:0x2e7,_0x379581:0x245,_0x14994f:0x4ae,_0x395fa2:0x44a,_0x557c79:0x7e,_0x249b49:0x2f,_0x2739cf:0xaa,_0xb3cdbc:0x88,_0x345006:0x184,_0x4bf2cd:0x10a,_0x10d8af:0xde,_0x5dcd04:0x44a,_0x50243e:0x43f,_0x2d8b95:0x4d4,_0xcb3360:0x379,_0x42cc0a:0x290,_0x1dd5c7:0x2f3,_0x4a249c:0x331,_0x309dfe:0x284},_0x30f2f4={_0x5b3823:0x6f},_0x5b87e9={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x178edb=()=>_0x110de5[_0x5cb44f(0x581,0x4e6,0x504,0x531)]!==![];async function _0x1a93a8(_0x11acdd,_0x10b95f){const _0x1a7194={_0x4eed62:0x1c5,_0x49f9a3:0x1e0};function _0x5d81b0(_0x2ddace,_0x53365b,_0x1ce3fd,_0x1988d5){return _0x5cb44f(_0x1ce3fd- -0x122,_0x53365b,_0x1ce3fd-0x1cb,_0x1988d5-_0x30f2f4._0x5b3823);}const _0x22f8d6=stateKey(_0x11acdd,_0x10b95f),_0x89f392=_0x5b87e9[_0x35c87c(0x534,0x574,_0x1bc3fa._0x4922cc,0x663)][_0x5d81b0(_0x1bc3fa._0x48ecde,_0x1bc3fa._0xd0b949,0x268,0x347)](_0x2f2ef8=>_0x2f2ef8[_0x5d81b0(0x16b,0x2c5,0x23d,0x216)]===_0x11acdd['id']&&_0x2f2ef8[_0x5d81b0(0x3f1,0x40a,0x2ba,0x304)]===_0x10b95f);if(_0x89f392)return _0x89f392;if(_0x5b87e9[_0x5d81b0(_0x1bc3fa._0x34c77e,_0x1bc3fa._0x18d958,0x2b0,0x2bb)][_0x5d81b0(_0x1bc3fa._0x11e251,_0x1bc3fa._0xbb4c9f,0x296,0x16b)](_0x22f8d6))return void 0x0;const _0x59c55b=_0x5b87e9[_0x35c87c(_0x1bc3fa._0x1d2357,_0x1bc3fa._0x29f17d,0x358,_0x1bc3fa._0x5c20e3)][_0x35c87c(0x3cf,0x487,_0x1bc3fa._0x2b571e,0x31f)](_0x22f8d6);if(_0x59c55b)return _0x59c55b;const _0x12d118=((async()=>{const _0xb429ba={_0x44bfcc:0x2fd,_0x5c3353:0xcb},_0x2eb498={_0x2adaff:0x1e4};function _0x16e43c(_0x3e78c9,_0x44335b,_0xc942b8,_0x442c80){return _0x35c87c(_0x3e78c9-_0x2eb498._0x2adaff,_0x44335b,_0x3e78c9- -0xc8,_0x442c80-0xe1);}function _0x5ca48d(_0x516ded,_0x23809e,_0x16e662,_0x2cd10b){return _0x5d81b0(_0x516ded-0x12d,_0x2cd10b,_0x16e662- -_0xb429ba._0x44bfcc,_0x2cd10b-_0xb429ba._0x5c3353);}try{const _0x2a085c=await _0x11acdd[_0x5ca48d(_0x5775be._0x5e893a,_0x5775be._0x42b93b,_0x5775be._0x4428e2,0x6a)](_0x10b95f);if(!_0x2a085c)return _0x5b87e9[_0x16e43c(_0x5775be._0x4c8806,_0x5775be._0x482c31,0x379,_0x5775be._0x379581)][_0x16e43c(0x444,_0x5775be._0x14994f,0x559,0x541)](_0x22f8d6),void 0x0;const _0x12df42=await createLspClient({'server':_0x11acdd,'root':_0x10b95f,'handle':_0x2a085c}),_0x312020=_0x5b87e9[_0x16e43c(_0x5775be._0x395fa2,0x49c,0x50e,0x31a)][_0x5ca48d(-_0x5775be._0x557c79,-_0x5775be._0x249b49,-0x95,-_0x5775be._0x2739cf)](_0x45c001=>_0x45c001[_0x5ca48d(-0x17,-0x8e,-0xc0,-0x1c)]===_0x11acdd['id']&&_0x45c001[_0x5ca48d(0x4,0x3d,-0x43,-0xd)]===_0x10b95f);if(_0x312020)return await _0x12df42[_0x5ca48d(-_0x5775be._0xb3cdbc,-_0x5775be._0x345006,-_0x5775be._0x4bf2cd,-_0x5775be._0x10d8af)](),_0x312020;return _0x5b87e9[_0x16e43c(_0x5775be._0x5dcd04,0x378,0x47e,_0x5775be._0x50243e)][_0x16e43c(0x3b2,0x360,_0x5775be._0x2d8b95,_0x5775be._0xcb3360)](_0x12df42),_0x12df42;}catch{return _0x5b87e9['broken']['add'](_0x22f8d6),void 0x0;}finally{_0x5b87e9[_0x16e43c(_0x5775be._0x42cc0a,_0x5775be._0x1dd5c7,_0x5775be._0x4a249c,_0x5775be._0x309dfe)][_0x16e43c(0x47e,0x597,0x480,0x3a3)](_0x22f8d6);}})());_0x5b87e9[_0x5d81b0(0x286,_0x1bc3fa._0x2fbe20,_0x1bc3fa._0x4d2319,_0x1bc3fa._0x538db3)][_0x5d81b0(_0x1bc3fa._0x7d0cc0,0x197,0x1de,0x252)](_0x22f8d6,_0x12d118);function _0x35c87c(_0x540f3f,_0x324358,_0x393525,_0x1af389){return _0x5cb44f(_0x393525-0x2e,_0x324358,_0x393525-_0x1a7194._0x4eed62,_0x1af389-_0x1a7194._0x49f9a3);}return _0x12d118;}function _0x5cb44f(_0x4cf5dc,_0x3e9518,_0x20f3b8,_0x5b0422){return _0x57b9de(_0x4cf5dc-_0x3cb019._0x3680d9,_0x3e9518,_0x4cf5dc-0x9,_0x5b0422-_0x3cb019._0x3b0f35);}async function _0x14fa3e(_0x27e8f6,_0xf0a19e){const _0x12519e={_0xfdecda:0x34e,_0x3b8394:0x190};function _0x37ed00(_0x86cacf,_0x1862ae,_0x13d1c0,_0x4948b4){return _0x5cb44f(_0x13d1c0-0x93,_0x1862ae,_0x13d1c0-0x5b,_0x4948b4-0x5);}function _0x27efb5(_0x2ec4d9,_0x3b1405,_0x6c84e9,_0x242f39){return _0x5cb44f(_0x6c84e9- -_0x12519e._0xfdecda,_0x3b1405,_0x6c84e9-_0x12519e._0x3b8394,_0x242f39-0xf);}if(!_0x178edb())return[];const _0x3d2475=[];for(const _0x17cd4b of getServersForFile(_0x27e8f6)){const _0x33f9ce=await _0x17cd4b['root'](_0x27e8f6);if(!_0x33f9ce)continue;const _0x1083f4=stateKey(_0x17cd4b,_0x33f9ce);if(_0x5b87e9[_0x37ed00(_0x5a9fed._0x2b1ed8,_0x5a9fed._0x147b8f,_0x5a9fed._0x1e4a8f,0x527)]['has'](_0x1083f4))continue;const _0x4cfbbf=_0x5b87e9[_0x27efb5(0x16a,_0x5a9fed._0x2a3163,0x196,0x230)][_0x27efb5(-_0x5a9fed._0x304f64,-_0x5a9fed._0x39f371,0x3c,-0xa2)](_0x3a3fa5=>_0x3a3fa5[_0x27efb5(0x159,0xe8,0x11,-0x69)]===_0x17cd4b['id']&&_0x3a3fa5[_0x37ed00(0x48c,0x499,0x46f,0x3ca)]===_0x33f9ce);if(_0x4cfbbf){_0x3d2475['push'](_0x4cfbbf);continue;}if(!_0xf0a19e)continue;const _0x201598=await _0x1a93a8(_0x17cd4b,_0x33f9ce);if(_0x201598)_0x3d2475[_0x27efb5(_0x5a9fed._0x461dd7,0x1cb,0xfe,0xfa)](_0x201598);}return _0x3d2475;}async function _0x1f13e7(_0x3f10ec,_0x1908cd=![]){const _0x559739={_0x34f4da:0x29c,_0x14a21d:0x3b9,_0x2fba7f:0x2de,_0x133461:0x206,_0x169874:0x35b,_0x1c1f57:0x210,_0x4ff6de:0x36c,_0x22372f:0x404,_0x1f0fab:0x24a,_0x3a1af0:0x268,_0xecad46:0x3d0,_0x56452b:0x481,_0x9af658:0x415,_0x2b69b0:0x35b,_0x120241:0x256,_0x41fe6e:0x41c,_0x1ef368:0x33f,_0x2410af:0x4dc};function _0x4f782d(_0x188173,_0x151ae8,_0x14eceb,_0x2f70d2){return _0x5cb44f(_0x151ae8-_0x565d9f._0x532d93,_0x14eceb,_0x14eceb-0x4,_0x2f70d2-0x18c);}const _0x1a0e03=await _0x14fa3e(_0x3f10ec,!![]);await Promise[_0x4f782d(0x5c7,_0x3fc3b9._0x237fb4,_0x3fc3b9._0x3d0a45,0x62a)](_0x1a0e03['map'](async _0x474be3=>{const _0x32ac82={_0x3b1edc:0x13d,_0x13f0b5:0x286,_0x49a4fa:0x1ca},_0x429ba8={_0x2ba757:0x313,_0x3f16b3:0xb9};!_0x5b87e9[_0x5cb5d5(_0x559739._0x34f4da,0x2e2,_0x559739._0x14a21d,0x2a7)]['has'](_0x474be3[_0x5cb5d5(0x29c,_0x559739._0x2fba7f,_0x559739._0x133461,0x1cd)]+':'+_0x474be3[_0x5cb5d5(0x2ac,_0x559739._0x169874,0x430,_0x559739._0x1c1f57)]+':'+_0x3f10ec)&&(await _0x474be3[_0x5cb5d5(0x2e3,_0x559739._0x4ff6de,_0x559739._0x22372f,_0x559739._0x1f0fab)][_0x10bdd4(0x376,_0x559739._0x3a1af0,0x323,0x241)]({'path':_0x3f10ec}),_0x5b87e9['openFiles'][_0x10bdd4(_0x559739._0xecad46,_0x559739._0x56452b,0x342,0x494)](_0x474be3['serverId']+':'+_0x474be3[_0x5cb5d5(_0x559739._0x9af658,_0x559739._0x2b69b0,0x2f5,_0x559739._0x120241)]+':'+_0x3f10ec));function _0x10bdd4(_0x13b7b5,_0x211ac8,_0x279541,_0x16b08a){return _0x4f782d(_0x13b7b5-0x124,_0x13b7b5- -_0x429ba8._0x2ba757,_0x16b08a,_0x16b08a-_0x429ba8._0x3f16b3);}function _0x5cb5d5(_0x29fd45,_0x480fe5,_0x6916b4,_0x3c9c91){return _0x4f782d(_0x29fd45-_0x32ac82._0x3b1edc,_0x480fe5- -_0x32ac82._0x13f0b5,_0x29fd45,_0x3c9c91-_0x32ac82._0x49a4fa);}await _0x474be3[_0x10bdd4(0x2df,0x3c2,0x19d,_0x559739._0x41fe6e)][_0x5cb5d5(_0x559739._0x1ef368,0x3d7,_0x559739._0x2410af,0x31c)]({'path':_0x3f10ec,'version':nextFileVersion(_0x5b87e9,_0x3f10ec)});if(_0x1908cd)await _0x474be3['waitForDiagnostics']({'path':_0x3f10ec});}));}async function _0x230e0b(_0x3f7b35){await _0x1f13e7(_0x3f7b35[_0x5cbce6(_0x68360f._0x2186fc,0x340,_0x68360f._0x473ab3,_0x68360f._0x58f0f5)],![]);function _0x5cbce6(_0x2abc44,_0x4fd132,_0x399e42,_0x53af16){return _0x5cb44f(_0x4fd132- -0x230,_0x2abc44,_0x399e42-0x172,_0x53af16-0x5a);}return _0x14fa3e(_0x3f7b35['file'],![]);}async function _0x3f45ce(_0x24c149){const _0x1bd115={_0xbca3f6:0x17,_0x576041:0xb4};function _0x4182e5(_0x5ddb38,_0x1c61f2,_0x5b2785,_0x304a51){return _0x5cb44f(_0x304a51-_0x1bd115._0xbca3f6,_0x5b2785,_0x5b2785-_0x1bd115._0x576041,_0x304a51-0xe3);}function _0x3d00a2(_0x20e28a,_0x4de9f0,_0x44d649,_0x4a02ab){return _0x5cb44f(_0x4de9f0- -0x4b3,_0x20e28a,_0x44d649-0x86,_0x4a02ab-0x2f);}const _0x244278=await _0x230e0b(_0x24c149);return collectClientResults(_0x244278[_0x3d00a2(-0x9b,_0x57ea5f._0x437572,0xf7,-_0x57ea5f._0x122a5c)](_0x5eb96f=>_0x5eb96f[_0x3d00a2(-0x12c,-0x111,-0x23d,-0x25d)][_0x4182e5(0x2a4,0x357,0x30a,0x33a)](_0x24c149)));}return{'isEnabled':_0x178edb,async 'hasClients'(_0x2a2efc){function _0x47084c(_0x29782d,_0x4dee17,_0x578db2,_0x496b77){return _0x5cb44f(_0x496b77- -0x11a,_0x29782d,_0x578db2-0xd6,_0x496b77-0x84);}function _0x12f12b(_0x3566e8,_0x585c1b,_0x3971ad,_0x2b9be6){return _0x5cb44f(_0x585c1b- -_0x2aef4d._0x3bd85e,_0x2b9be6,_0x3971ad-0x1a7,_0x2b9be6-_0x2aef4d._0x44745c);}return(await _0x14fa3e(_0x2a2efc,![]))[_0x12f12b(-_0x588ea1._0xe7a862,0x60,_0x588ea1._0x4016f8,-0x14)]>0x0||getServersForFile(_0x2a2efc)[_0x12f12b(-0xac,0x60,0xdd,-_0x588ea1._0x4dcaf7)]>0x0;},'touchFile':_0x1f13e7,async 'diagnostics'(){const _0x371afc={_0x33dc6c:0x166},_0x26b206={};function _0x4d7a28(_0x18aad5,_0xae0dac,_0x25fe3a,_0x5563c7){return _0x5cb44f(_0x5563c7- -0x504,_0x25fe3a,_0x25fe3a-0x1ba,_0x5563c7-_0x371afc._0x33dc6c);}for(const _0x116d97 of _0x5b87e9[_0x296f16(_0x28e710._0x516ff5,0x8f,0x74,_0x28e710._0x5497c2)]){for(const [_0x22210c,_0xab4a7d]of _0x116d97[_0x296f16(-0xfc,0x70,-0xb1,-_0x28e710._0x365f81)]){_0x26b206[diagnosticsKeyToPath(_0x22210c)]=_0xab4a7d;}}function _0x296f16(_0x1ce34e,_0x301415,_0x3e021a,_0x2eb44a){return _0x5cb44f(_0x2eb44a- -_0x2b2558._0x5ebadb,_0x3e021a,_0x3e021a-_0x2b2558._0x9ebd7e,_0x2eb44a-_0x2b2558._0x2879db);}return _0x26b206;},async 'diagnosticsForFile'(_0x16aad3){const _0x479250={_0x581472:0x3f0,_0x1e9516:0x6e};await _0x1f13e7(_0x16aad3,!![]);const _0x5cb80a=[];function _0x11fedc(_0x3f13b4,_0x55754a,_0x51fd97,_0x1f14fb){return _0x5cb44f(_0x3f13b4-0x176,_0x1f14fb,_0x51fd97-0x190,_0x1f14fb-0x1d3);}for(const _0x399bec of await _0x14fa3e(_0x16aad3,![])){for(const [_0x430b19,_0x5cbb9b]of _0x399bec[_0x11fedc(_0x35a2d2._0x83ce83,0x529,_0x35a2d2._0x100dee,0x575)]){if(diagnosticsKeyToPath(_0x430b19)===_0x16aad3)_0x5cb80a[_0x11fedc(_0x35a2d2._0x1af755,0x64a,_0x35a2d2._0x1c3a15,_0x35a2d2._0x3f2bb5)](..._0x5cbb9b);}}function _0x38e275(_0x91371e,_0x502df3,_0x1800cf,_0x13239d){return _0x5cb44f(_0x502df3- -_0x479250._0x581472,_0x91371e,_0x1800cf-_0x479250._0x1e9516,_0x13239d-0x176);}return _0x5cb80a;},async 'definition'(_0x370f0b){const _0x92052e={_0x26e236:0x48c,_0x5dc73e:0x70};function _0x5ed218(_0x220cfd,_0x334cd6,_0x48efda,_0x5a3cb3){return _0x5cb44f(_0x220cfd- -_0x92052e._0x26e236,_0x5a3cb3,_0x48efda-0x13c,_0x5a3cb3-_0x92052e._0x5dc73e);}function _0x27490c(_0x33a2d9,_0x43b5d0,_0x31280f,_0x4fa2fa){return _0x5cb44f(_0x4fa2fa- -0xd2,_0x33a2d9,_0x31280f-_0x34e8e3._0x298abf,_0x4fa2fa-_0x34e8e3._0x3fe6d1);}return collectClientResults((await _0x230e0b(_0x370f0b))[_0x27490c(0x528,_0x3effbb._0x1ebd1c,0x4e3,0x46b)](_0x563f04=>_0x563f04['request'][_0x27490c(0x31a,0x2b7,0x394,0x3cb)](_0x370f0b)));},async 'references'(_0x227d01){const _0x30be5f={_0x1a9d37:0x1d,_0x4148a4:0x1e9},_0x527b28={_0x3feb08:0x4b8};function _0x2659a0(_0x5830a6,_0x948013,_0x3afd86,_0x5b1561){return _0x5cb44f(_0x3afd86- -_0x527b28._0x3feb08,_0x5830a6,_0x3afd86-0xe1,_0x5b1561-0x136);}function _0x5a1b3b(_0x5b9fe9,_0x33709a,_0x17dc81,_0x3f37fc){return _0x5cb44f(_0x5b9fe9- -_0x30be5f._0x1a9d37,_0x33709a,_0x17dc81-_0x30be5f._0x4148a4,_0x3f37fc-0x1b9);}return collectClientResults((await _0x230e0b(_0x227d01))[_0x2659a0(0x174,_0x2b6e49._0x4d9cac,_0x2b6e49._0x31966a,_0x2b6e49._0x1ce06c)](_0x246678=>_0x246678[_0x5a1b3b(0x385,0x32a,0x2a0,0x236)][_0x5a1b3b(0x361,0x3bb,0x326,0x2f4)](_0x227d01)));},async 'hover'(_0x4d82fd){function _0x20e601(_0xf75f67,_0xf25b0b,_0x59a35f,_0x495d14){return _0x5cb44f(_0x59a35f- -_0x4b7e26._0x2f66d,_0xf75f67,_0x59a35f-_0x4b7e26._0x3927ae,_0x495d14-_0x4b7e26._0x8c1b8e);}function _0x4c0e05(_0x2e342e,_0x303c2b,_0xcf24ba,_0x14de7d){return _0x5cb44f(_0x303c2b- -_0x5580cf._0x23c5a7,_0x2e342e,_0xcf24ba-0xb8,_0x14de7d-_0x5580cf._0x2cc8a1);}const _0xcb003e=await Promise[_0x4c0e05(-0x52,0xea,-0xf,0x128)]((await _0x230e0b(_0x4d82fd))[_0x4c0e05(0x204,0x2ee,0x38e,0x3ff)](_0x2248e2=>_0x2248e2[_0x20e601(0x15c,0x94,0x106,0x43)]['hover'](_0x4d82fd)));return _0xcb003e[_0x20e601(_0x22fd57._0x1a72c0,0x210,0x14c,_0x22fd57._0x4ecd4d)](_0x3953ec=>_0x3953ec[_0x20e601(0x34c,0x11e,0x23d,0x2eb)]===_0x20e601(0x1be,0x1a5,0x11b,0xaa)&&_0x3953ec[_0x20e601(0xff,0x35,0x171,0xe7)]?[_0x3953ec[_0x20e601(0x5c,0x296,0x171,0x4b)]]:[]);},async 'documentSymbol'(_0x459cc1){const _0x1ba461={_0x2190d9:0x453,_0x4b6b84:0xe8};function _0x5a3781(_0x238fdb,_0x3cf343,_0x3339f1,_0x31f438){return _0x5cb44f(_0x3cf343- -_0x1ba461._0x2190d9,_0x3339f1,_0x3339f1-0x197,_0x31f438-_0x1ba461._0x4b6b84);}await _0x1f13e7(_0x459cc1,![]);function _0x2fe696(_0x7ba4af,_0x4ba00f,_0x2ec6d8,_0x563240){return _0x5cb44f(_0x563240- -_0x59ed72._0x5661de,_0x4ba00f,_0x2ec6d8-_0x59ed72._0x1b09f5,_0x563240-_0x59ed72._0x5afc91);}return collectClientResults((await _0x14fa3e(_0x459cc1,![]))['map'](_0x5337a8=>_0x5337a8[_0x5a3781(-0xbf,-0xb1,-0x171,-0x3d)][_0x5a3781(-0x24,-0x6a,-0x81,0xa7)](_0x459cc1)));},async 'workspaceSymbol'(_0x7e0b34){function _0x530b0e(_0x2e38d2,_0x3694eb,_0x4015f6,_0x151c9b){return _0x5cb44f(_0x3694eb- -0x48b,_0x4015f6,_0x4015f6-0xe0,_0x151c9b-_0x5f342d._0x1aaceb);}function _0x446f69(_0x57bf4a,_0x1cf3b1,_0x42608b,_0x19da68){return _0x5cb44f(_0x19da68-0xc1,_0x1cf3b1,_0x42608b-_0x709598._0x2cfcc8,_0x19da68-_0x709598._0x27f860);}return collectClientResults(_0x5b87e9[_0x446f69(0x6a1,0x54a,_0x510506._0x134560,0x5a5)][_0x446f69(_0x510506._0x415335,_0x510506._0x5c74fe,0x585,0x5fe)](_0x2cc006=>_0x2cc006[_0x446f69(0x51b,0x36e,0x3b3,0x463)][_0x530b0e(0x18,0xcd,0x85,0x1ac)](_0x7e0b34)));},async 'implementation'(_0x15c6bc){const _0x2d9496={_0x1110a3:0x13a};function _0x540725(_0x229177,_0x103ba5,_0x475acc,_0x289c52){return _0x5cb44f(_0x475acc- -0x197,_0x103ba5,_0x475acc-_0x2d9496._0x1110a3,_0x289c52-0xd7);}return collectClientResults((await _0x230e0b(_0x15c6bc))['map'](_0x1626e5=>_0x1626e5[_0x540725(0x325,0x112,0x20b,0x100)]['implementation'](_0x15c6bc)));},async 'prepareCallHierarchy'(_0x564a73){return _0x3f45ce(_0x564a73);},async 'incomingCalls'(_0x2aaa63){const _0x1331a6={_0x46b4b6:0x73},_0x2b359b={_0x36d78c:0x24,_0x5b6304:0x2a};function _0xc3f349(_0xf3fd63,_0x13b543,_0x9f60cd,_0x40f173){return _0x5cb44f(_0x40f173- -_0x2b359b._0x36d78c,_0xf3fd63,_0x9f60cd-_0x2b359b._0x5b6304,_0x40f173-0xb2);}const _0x5a5ac9=await _0x3f45ce(_0x2aaa63),_0xf40907=await _0x230e0b(_0x2aaa63);function _0x16c51e(_0x2a61e5,_0xb0def0,_0x14b44a,_0x40b423){return _0x5cb44f(_0xb0def0- -0x345,_0x14b44a,_0x14b44a-0x1e3,_0x40b423-_0x1331a6._0x46b4b6);}return collectClientResults(_0xf40907[_0x16c51e(0x156,0xa3,0x101,_0x24b173._0x44d09a)](_0xa62f6=>_0x5a5ac9[_0x16c51e(0xdd,0x1f8,0x179,0x161)](_0x150f6c=>_0xa62f6[_0xc3f349(0x2a7,0x319,0x40d,0x37e)]['incomingCalls'](_0x150f6c))));},async 'outgoingCalls'(_0x238351){const _0xf28b56={_0x109694:0x1e1,_0x7b54c9:0x1d1};function _0x1e0971(_0x11c4be,_0xc7ae6a,_0x4dc6b9,_0x209f48){return _0x5cb44f(_0x209f48- -_0x3743fb._0xdb0ac9,_0x4dc6b9,_0x4dc6b9-0xe8,_0x209f48-0x168);}const _0xe26948=await _0x3f45ce(_0x238351),_0x4c6898=await _0x230e0b(_0x238351);function _0x42fb6f(_0x3aa9c7,_0x40008a,_0xa43167,_0x4e35f4){return _0x5cb44f(_0x4e35f4-0x1e4,_0x3aa9c7,_0xa43167-_0xf28b56._0x109694,_0x4e35f4-_0xf28b56._0x7b54c9);}return collectClientResults(_0x4c6898[_0x42fb6f(0x6a0,0x65c,0x5d7,0x5cc)](_0x4e08ad=>_0xe26948[_0x1e0971(0x4d4,0x3a6,0x57d,0x48e)](_0x3b9c71=>_0x4e08ad['request'][_0x42fb6f(0x7e5,0x681,0x809,0x6d1)](_0x3b9c71))));},async 'shutdown'(){const _0xdf8e68={_0x5792b9:0x47c,_0x321c96:0x6e};if(_0x5b87e9['shutdownStarted'])return;_0x5b87e9[_0x49aea3(_0x1109a3._0x2376a4,0x24f,0xe5,_0x1109a3._0x3fa9da)]=!![];function _0x49aea3(_0x4435fe,_0x3cf694,_0x3a2d4d,_0x366847){return _0x5cb44f(_0x366847- -_0x4acfe5._0x1b20af,_0x3cf694,_0x3a2d4d-0x8a,_0x366847-0xd6);}await Promise[_0x516e8b(-_0x1109a3._0x37f12e,-_0x1109a3._0x11e975,-0x26b,-0x165)](_0x5b87e9[_0x516e8b(0xde,_0x1109a3._0xca9c69,_0x1109a3._0x6acc5c,-0x81)][_0x49aea3(0x37a,_0x1109a3._0x3504b0,_0x1109a3._0x3e9ac6,_0x1109a3._0xcd8995)](_0x482412=>_0x482412['shutdown']()));function _0x516e8b(_0x102e8a,_0x525e49,_0x1f29bb,_0x49081e){return _0x5cb44f(_0x525e49- -_0xdf8e68._0x5792b9,_0x1f29bb,_0x1f29bb-_0xdf8e68._0x321c96,_0x49081e-0x198);}_0x5b87e9[_0x516e8b(-_0x1109a3._0x2ad8f4,0x68,_0x1109a3._0x1309b6,-0xe4)]=[],_0x5b87e9['spawning'][_0x516e8b(-_0x1109a3._0x580825,_0x1109a3._0x2567ee,-0x20,-_0x1109a3._0x3ead29)](),_0x5b87e9[_0x49aea3(0x130,0x115,_0x1109a3._0x1d6df1,0x107)][_0x49aea3(_0x1109a3._0x2e0248,0x2e9,_0x1109a3._0x2e578e,_0x1109a3._0x15df9d)](),_0x5b87e9[_0x49aea3(_0x1109a3._0x26bdaf,0xdf,0xc9,0xd0)][_0x49aea3(_0x1109a3._0x1f339c,_0x1109a3._0x397621,0x2e3,0x218)](),_0x5b87e9[_0x516e8b(-_0x1109a3._0x41bad5,-0x119,-_0x1109a3._0x1d584a,0x29)][_0x516e8b(-0x83,_0x1109a3._0x12755f,0xb5,0xe5)]();},'status'(){function _0x59ae0f(_0x34eddf,_0x1e91aa,_0x593f9a,_0x2b266d){return _0x5cb44f(_0x593f9a-0x1aa,_0x34eddf,_0x593f9a-0x108,_0x2b266d-_0x2717c1._0xf3321b);}return{'connectedClients':_0x5b87e9['clients'][_0x59ae0f(_0xf60581._0x343163,0x6cc,0x70a,0x5fc)]};}};}function createQuestionId(){const _0x54052e={_0x4871b7:0x34a,_0x9a0024:0x280,_0x576c6e:0x423,_0x2e1217:0x13c,_0x4d3d79:0x274,_0x49d0ad:0x185,_0x4167cf:0x3c5,_0x5dea4e:0x2a4,_0x2fb370:0x222,_0x59b5de:0x2c8,_0x3e7b0d:0x483,_0x2d8bdc:0x100,_0x2c9675:0xd6},_0x2d3893={_0xa2f510:0x178,_0x3e0537:0x177},_0x2b1e54={_0x4e3159:0x3cf,_0x548c85:0x15d};function _0x53ebb8(_0x52897b,_0x3f3271,_0x278683,_0x368ac3){return _0x57b9de(_0x52897b-0x1b5,_0x3f3271,_0x52897b- -_0x2b1e54._0x4e3159,_0x368ac3-_0x2b1e54._0x548c85);}function _0x2354e2(_0x2279c8,_0x49ec98,_0x3223dd,_0x52e2bc){return _0x57b9de(_0x2279c8-_0x2d3893._0xa2f510,_0x3223dd,_0x49ec98- -0x152,_0x52e2bc-_0x2d3893._0x3e0537);}return _0x2354e2(0x254,_0x54052e._0x4871b7,_0x54052e._0x9a0024,_0x54052e._0x576c6e)+Date[_0x2354e2(_0x54052e._0x2e1217,_0x54052e._0x4d3d79,_0x54052e._0x49d0ad,_0x54052e._0x4167cf)]()+'-'+Math[_0x2354e2(0x169,_0x54052e._0x5dea4e,_0x54052e._0x2fb370,_0x54052e._0x59b5de)]()[_0x2354e2(0x30e,0x39e,_0x54052e._0x3e7b0d,0x4d2)](0x24)[_0x53ebb8(0x71,_0x54052e._0x2d8bdc,-0x5f,_0x54052e._0x2c9675)](0x2,0x9);}function validateInput(_0x21fda0){const _0x4fa5fc={_0x46b4d3:0x1ff,_0x4da47c:0x2cc,_0x2b5fc7:0x32b,_0xfde35b:0x3ee,_0x5e69b8:0x2f7,_0x6b2f69:0x38a,_0x57ce34:0xe9,_0x91fbe1:0x269,_0x148a80:0x198,_0x159a67:0x198,_0x5c58ef:0x1cb,_0x3a64e:0x273,_0x35160d:0x244,_0x42ac42:0x18d,_0x21a5d8:0x314,_0x2fcf26:0x296,_0xb8e1e4:0x2be,_0x42ff31:0x1f6,_0x32e7de:0x198,_0x20c2da:0x1f7,_0x53e453:0x197,_0x3df213:0x198,_0x4a1a26:0x36b,_0x275d7d:0x335,_0x2885e8:0x38a,_0x4e6d7e:0x2a4,_0xd2a26f:0x3de,_0x504d65:0x178,_0x426724:0x1ca,_0x581bce:0xe8,_0x3309bb:0x2ce,_0x1a3eee:0x25e,_0x191a83:0x23,_0x28b891:0x10e,_0x16cb56:0x1e8,_0x5e1f76:0xe6,_0x46cb7b:0x1da,_0x46eb6b:0x232,_0x16f9b9:0x385,_0x2eb354:0x3f9,_0x416166:0x218,_0x5cc93f:0x252,_0x12f800:0x251,_0x32d5ef:0x248,_0x420592:0x332,_0x1caebc:0x20c,_0xc75437:0x2fd,_0x34da61:0x410,_0x1cb284:0x1f9,_0x5dc43a:0x312,_0x399810:0x141,_0x45fb70:0x1e1,_0x324b8a:0x36d,_0xe6c632:0x283,_0x454e2d:0xe5,_0x58c292:0x20c,_0x356774:0x1d3,_0x3d13d9:0x2d4,_0xcf7da1:0x3c6,_0x1efe91:0x1fd,_0x90622d:0x3f7,_0x567755:0x270,_0x28a96f:0x93,_0x3c650b:0x68,_0x944bb:0x10,_0x513fec:0xe1,_0x2288e7:0x27c,_0x4646ef:0x23c,_0x43c28e:0x22c,_0x283205:0x3cb,_0x57fc48:0x238,_0x1a7d27:0x287,_0x452351:0x175},_0x52e84f={_0x34b320:0x225},_0x542535={_0x17c35c:0x8e,_0x4a70f9:0x384};function _0x176134(_0x3d7b72,_0x3b7016,_0x5e3241,_0x18d396){return _0x57b9de(_0x3d7b72-_0x542535._0x17c35c,_0x5e3241,_0x18d396- -_0x542535._0x4a70f9,_0x18d396-0x68);}function _0x4703c2(_0x3afce2,_0x3a550e,_0x4471d0,_0x18b348){return _0x57b9de(_0x3afce2-0x7c,_0x3afce2,_0x3a550e- -_0x52e84f._0x34b320,_0x18b348-0x1aa);}if(!Array[_0x4703c2(_0x4fa5fc._0x46b4d3,_0x4fa5fc._0x4da47c,0x1ed,_0x4fa5fc._0x2b5fc7)](_0x21fda0[_0x4703c2(_0x4fa5fc._0xfde35b,_0x4fa5fc._0x5e69b8,0x2e2,_0x4fa5fc._0x6b2f69)])||_0x21fda0[_0x176134(_0x4fa5fc._0x57ce34,0x210,_0x4fa5fc._0x91fbe1,_0x4fa5fc._0x148a80)]['length']<0x1||_0x21fda0[_0x176134(0x88,0x1a1,0xbf,_0x4fa5fc._0x159a67)]['length']>0xa)throw new ToolExecutionError(_0x4703c2(0x2cf,_0x4fa5fc._0x5c58ef,0x1da,_0x4fa5fc._0x3a64e),{'error':_0x4703c2(0x1a8,_0x4fa5fc._0x35160d,_0x4fa5fc._0x42ac42,_0x4fa5fc._0x21a5d8)});for(let _0x1f7d2d=0x0;_0x1f7d2d<_0x21fda0[_0x176134(_0x4fa5fc._0x2fcf26,_0x4fa5fc._0xb8e1e4,_0x4fa5fc._0x42ff31,_0x4fa5fc._0x32e7de)][_0x176134(0x2fe,_0x4fa5fc._0x20c2da,0x253,0x1d3)];_0x1f7d2d+=0x1){const _0x21b8aa=_0x21fda0[_0x176134(0x9c,0x276,_0x4fa5fc._0x53e453,_0x4fa5fc._0x3df213)][_0x1f7d2d];if(!_0x21b8aa[_0x4703c2(_0x4fa5fc._0x4a1a26,0x2a4,0x155,_0x4fa5fc._0x275d7d)]||typeof _0x21b8aa[_0x4703c2(_0x4fa5fc._0x2885e8,_0x4fa5fc._0x4e6d7e,0x3bf,_0x4fa5fc._0xd2a26f)]!=='string')throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x504d65,_0x4fa5fc._0x426724,0x1a6,0x1ca));if(!_0x21b8aa[_0x176134(0xb2,_0x4fa5fc._0x581bce,0x17b,0x16f)]||typeof _0x21b8aa[_0x4703c2(0x1b8,_0x4fa5fc._0x3309bb,0x2a5,_0x4fa5fc._0x1a3eee)]!==_0x4703c2(_0x4fa5fc._0x191a83,_0x4fa5fc._0x28b891,_0x4fa5fc._0x16cb56,0x1b4))throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x5e1f76,_0x4fa5fc._0x46cb7b,_0x4fa5fc._0x46eb6b,0x31e));if(_0x21b8aa[_0x4703c2(_0x4fa5fc._0x16f9b9,_0x4fa5fc._0x3309bb,0x1b5,_0x4fa5fc._0x2eb354)]['length']>0x1e)throw new ToolExecutionError(_0x4703c2(0x426,0x2d4,_0x4fa5fc._0x416166,_0x4fa5fc._0x5cc93f)+(_0x1f7d2d+0x1)+_0x4703c2(_0x4fa5fc._0x12f800,0x139,_0x4fa5fc._0x32d5ef,0x37)+_0x21b8aa['topic'][_0x4703c2(0x32e,_0x4fa5fc._0x420592,0x368,0x276)]);if(!Array[_0x4703c2(_0x4fa5fc._0x1caebc,_0x4fa5fc._0x4da47c,0x37a,_0x4fa5fc._0xc75437)](_0x21b8aa[_0x4703c2(0x315,0x36b,0x37e,_0x4fa5fc._0x34da61)])||_0x21b8aa[_0x176134(_0x4fa5fc._0x1cb284,_0x4fa5fc._0x5dc43a,_0x4fa5fc._0x399810,0x20c)][_0x4703c2(_0x4fa5fc._0x45fb70,0x332,_0x4fa5fc._0x324b8a,0x28f)]<0x2||_0x21b8aa[_0x176134(0xc3,_0x4fa5fc._0xe6c632,_0x4fa5fc._0x454e2d,_0x4fa5fc._0x58c292)][_0x176134(0x2ad,0x2a2,0x272,_0x4fa5fc._0x356774)]>0x4)throw new ToolExecutionError(_0x4703c2(0x338,_0x4fa5fc._0x3d13d9,0x41c,_0x4fa5fc._0xcf7da1)+(_0x1f7d2d+0x1)+':\x20must\x20have\x202-4\x20options');for(let _0x47768f=0x0;_0x47768f<_0x21b8aa['options'][_0x4703c2(_0x4fa5fc._0x1efe91,0x332,0x46d,_0x4fa5fc._0x90622d)];_0x47768f+=0x1){const _0x5d4207=_0x21b8aa[_0x176134(0xd8,_0x4fa5fc._0x567755,0x18f,_0x4fa5fc._0x58c292)][_0x47768f];if(!_0x5d4207[_0x176134(-_0x4fa5fc._0x28a96f,-0x71,-_0x4fa5fc._0x3c650b,_0x4fa5fc._0x944bb)]||!_0x5d4207['description'])throw new ToolExecutionError('Question\x20'+(_0x1f7d2d+0x1)+_0x4703c2(0x1c3,_0x4fa5fc._0x513fec,_0x4fa5fc._0x426724,0x25)+(_0x47768f+0x1)+_0x4703c2(_0x4fa5fc._0x2288e7,0x225,_0x4fa5fc._0x4646ef,0x1ec));}if(typeof _0x21b8aa[_0x4703c2(_0x4fa5fc._0x43c28e,_0x4fa5fc._0xe6c632,0x34d,_0x4fa5fc._0x283205)]!=='boolean')throw new ToolExecutionError(_0x176134(0x50,_0x4fa5fc._0x57fc48,_0x4fa5fc._0x1a7d27,_0x4fa5fc._0x452351)+(_0x1f7d2d+0x1)+_0x176134(0xb9,-0x10a,_0x4fa5fc._0x454e2d,-0x68));}}function buildQuestions(_0x246c31){const _0x1ace1a={_0x2d1e9b:0x10,_0xbad679:0xc1},_0x274d27={_0x5b4988:0x71,_0x195d82:0x344,_0x13a514:0xad},_0x43762f={_0x3f9994:0xb,_0x1ce2e5:0x367,_0x1e2342:0x18c};function _0xa729e4(_0x99e0b8,_0x564247,_0xc0f5f8,_0x25636f){return _0x23b1c2(_0x99e0b8-_0x43762f._0x3f9994,_0x564247,_0xc0f5f8- -_0x43762f._0x1ce2e5,_0x25636f-_0x43762f._0x1e2342);}function _0x2bd618(_0x5521bc,_0x35d5e9,_0x4d3aad,_0x168b60){return _0x23b1c2(_0x5521bc-_0x274d27._0x5b4988,_0x4d3aad,_0x35d5e9- -_0x274d27._0x195d82,_0x168b60-_0x274d27._0x13a514);}return _0x246c31['questions'][_0x2bd618(0x267,0x142,_0x1ace1a._0x2d1e9b,_0x1ace1a._0xbad679)]((_0x368024,_0x30fa24)=>({'id':'q'+_0x30fa24,'question':_0x368024[_0xa729e4(-0x3b,-0x7f,0xb4,-0x9)],'topic':_0x368024[_0x2bd618(0x153,0x101,-0x33,0x66)],'options':_0x368024[_0x2bd618(0x2c6,0x19e,0x136,0x101)],'multiSelect':_0x368024[_0x2bd618(-0x53,0xb6,-0x9a,0x60)]}));}function createResult(_0x2bbf44,_0x5aaa9e,_0x2e6dd4){const _0x1e6e68={_0x3910d7:0xc9,_0x5ad9cf:0xcd,_0x1a9c6b:0x50,_0x3f2102:0x10e,_0x585790:0x1a,_0x3be268:0x2d,_0xd13e9e:0xc4},_0x30f499={_0x2cf071:0x3ef,_0x29f27c:0x130},_0x58424a={_0x10382a:0x1ab,_0x41b579:0x34d,_0x1d6eda:0x1b3},_0xb0fbf={'questionId':_0x2bbf44,'questionCount':_0x5aaa9e,'answers':_0x2e6dd4};function _0x1e869a(_0x553759,_0x326517,_0x1aea15,_0x306af9){return _0x57b9de(_0x553759-_0x58424a._0x10382a,_0x553759,_0x306af9- -_0x58424a._0x41b579,_0x306af9-_0x58424a._0x1d6eda);}function _0xde61e0(_0x524639,_0x39b237,_0xd6b7d0,_0x575d02){return _0x57b9de(_0x524639-0x164,_0x39b237,_0xd6b7d0- -_0x30f499._0x2cf071,_0x575d02-_0x30f499._0x29f27c);}return createToolOutput(_0x1e869a(_0x1e6e68._0x3910d7,_0x1e6e68._0x5ad9cf,_0x1e6e68._0x1a9c6b,0x76)+JSON[_0xde61e0(-_0x1e6e68._0x3f2102,_0x1e6e68._0x585790,_0x1e6e68._0x3be268,_0x1e6e68._0xd13e9e)](_0x2e6dd4,null,0x2),_0xb0fbf);}function createAskUserTool(){const _0xd6f1a5={_0x1c8850:0xd5,_0x3ae371:0xf5,_0x1edff9:0x104,_0x1695bd:0x7,_0x1cf108:0x78,_0x512492:0xd0,_0xc68223:0x167,_0x1ca0f7:0x2de,_0x4d3973:0x1a9,_0xd02490:0x52,_0x410485:0xde,_0x406b6a:0x1e,_0x340521:0x4f,_0x5daf01:0x14,_0x185a13:0xa3,_0x15b788:0x1bc,_0x466a5f:0x6f,_0x27045f:0xe6,_0x2ae5db:0x153,_0x58f818:0x66,_0x373674:0x3e,_0x109d75:0x14,_0x28acba:0xf0,_0xa72054:0xa4,_0xaa6a1e:0x11b,_0x40c30e:0x119},_0x22dacb={_0x1e8aba:0x25c,_0x2c09bc:0x221,_0x58f4cd:0x118,_0x5dff67:0x186,_0x4802bc:0x107,_0x3fb359:0x12,_0x3218d0:0xa0,_0x2d247d:0x89,_0x6d76fe:0x43e,_0x26644e:0x2c8,_0x2ed027:0x2,_0x5c8ec9:0x1eb,_0x1350ba:0x18e,_0x173be6:0x384,_0x5bc736:0x317,_0x5c905e:0x3bc,_0x2280aa:0x4be,_0x2304b1:0xa2,_0x5df90f:0x65,_0x5b6474:0x3f5,_0x2c7e09:0x2e5},_0x2bbc7e={_0x3ea4c5:0x1d6},_0xbc3c44={_0x4c6382:0x63,_0x157be3:0x166};function _0x4d38ae(_0x48aa48,_0x2662db,_0xdadaae,_0x35e8ea){return _0x57b9de(_0x48aa48-_0xbc3c44._0x4c6382,_0x35e8ea,_0xdadaae- -0x403,_0x35e8ea-_0xbc3c44._0x157be3);}function _0x28808f(_0x489f04,_0x56f0de,_0x1f30bd,_0x53bfba){return _0x57b9de(_0x489f04-0x19f,_0x53bfba,_0x1f30bd- -0x4dc,_0x53bfba-_0x2bbc7e._0x3ea4c5);}return defineTool({'name':'AskUserTool','description':_0x28808f(0xfc,0x118,0xa3,0x131),'inputSchema':{'type':'object','properties':{'questions':{'type':_0x28808f(-_0xd6f1a5._0x1c8850,-_0xd6f1a5._0x3ae371,-_0xd6f1a5._0x1edff9,-0x241),'items':{'type':'object','properties':{'question':{'type':_0x4d38ae(-_0xd6f1a5._0x1695bd,_0xd6f1a5._0x1cf108,-_0xd6f1a5._0x512492,0x7c)},'topic':{'type':_0x28808f(-_0xd6f1a5._0xc68223,-_0xd6f1a5._0x1ca0f7,-_0xd6f1a5._0x4d3973,-0xfa)},'options':{'type':'array','items':{'type':_0x28808f(0x15,-0x9b,-_0xd6f1a5._0xd02490,_0xd6f1a5._0x410485),'properties':{'label':{'type':_0x4d38ae(-_0xd6f1a5._0x406b6a,_0xd6f1a5._0x340521,-0xd0,-0x65)},'description':{'type':_0x4d38ae(0x31,-_0xd6f1a5._0x5daf01,-0xd0,0x5f)}},'required':[_0x4d38ae(_0xd6f1a5._0x185a13,-_0xd6f1a5._0x15b788,-_0xd6f1a5._0x466a5f,-0xfd),'description']}},'multiSelect':{'type':_0x28808f(-_0xd6f1a5._0x27045f,_0xd6f1a5._0x2ae5db,_0xd6f1a5._0x58f818,-0xe8)}},'required':[_0x28808f(-0x107,-0x3c,-0x13,_0xd6f1a5._0x373674),_0x4d38ae(-_0xd6f1a5._0x109d75,0x132,_0xd6f1a5._0x28acba,_0xd6f1a5._0xa72054),'options','multiSelect']}},'answers':{'type':_0x4d38ae(_0xd6f1a5._0xaa6a1e,-0x9,0x87,0xad),'properties':{}}},'required':[_0x4d38ae(0x1c,0x1eb,_0xd6f1a5._0x40c30e,0x186)]},async *'execute'(_0x121c79,_0x4515bb){const _0x1eaa20={_0x3a4053:0xe1,_0x5e3f32:0x25},_0x1c63f2={_0x4dc1da:0x37a},_0x219d6e=_0x121c79;validateInput(_0x219d6e);const _0x4bc2f4=_0x4515bb[_0x528f82(0x2c1,0x402,_0x22dacb._0x1e8aba,_0x22dacb._0x2c09bc)]??createQuestionId();function _0x528f82(_0x29df6c,_0x246e9f,_0x181271,_0x22ad3f){return _0x28808f(_0x29df6c-0x43,_0x246e9f-0x145,_0x29df6c-_0x1c63f2._0x4dc1da,_0x246e9f);}if(_0x219d6e[_0xb720dc(-_0x22dacb._0x58f4cd,-_0x22dacb._0x5dff67,-_0x22dacb._0x4802bc,-0x239)]&&Object[_0xb720dc(-0x13b,-0x89,0x82,_0x22dacb._0x3fb359)](_0x219d6e[_0xb720dc(-0x27e,-_0x22dacb._0x5dff67,-0x3d,-0x158)])[_0xb720dc(0xd7,_0x22dacb._0x3218d0,_0x22dacb._0x2d247d,0xfe)]>0x0)return createResult(_0x4bc2f4,_0x219d6e[_0x528f82(0x3ba,_0x22dacb._0x6d76fe,0x375,_0x22dacb._0x26644e)][_0xb720dc(-_0x22dacb._0x2ed027,0xa0,_0x22dacb._0x5c8ec9,_0x22dacb._0x1350ba)],_0x219d6e['answers']);if(!_0x4515bb[_0x528f82(0x3c7,_0x22dacb._0x173be6,_0x22dacb._0x5bc736,0x3c5)])throw new ToolExecutionError(_0x528f82(0x32a,0x1e2,0x392,0x460));const _0x3a634d=buildQuestions(_0x219d6e),_0x3e03c0=await _0x4515bb[_0x528f82(0x3c7,_0x22dacb._0x5c905e,_0x22dacb._0x2280aa,0x2e3)]({'questionId':_0x4bc2f4,'questions':_0x3a634d});function _0xb720dc(_0x5e71d6,_0x149dce,_0x11fe5d,_0xd119ba){return _0x28808f(_0x5e71d6-_0x1eaa20._0x3a4053,_0x149dce-0xa4,_0x149dce-_0x1eaa20._0x5e3f32,_0x11fe5d);}yield createResult(_0x4bc2f4,_0x219d6e[_0xb720dc(-_0x22dacb._0x2304b1,_0x22dacb._0x5df90f,-0x24,-0x2e)][_0x528f82(_0x22dacb._0x5b6474,0x3a9,_0x22dacb._0x2c7e09,0x49b)],_0x3e03c0);}});}import{spawn as _0x4be518}from'child_process';import{statSync}from'fs';import*as _0x1eb728 from'os';import*as _0x181fe3 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x412fb5 from'path';function isPathInside(_0x55dce9,_0x5e7de4){const _0x486e5d={_0x206d04:0x675,_0x4ded9f:0x690,_0x8e8de:0x5ac,_0x470c98:0x7ba},_0x1022b8={_0x56c232:0x53},_0x4e9115={_0x24f78a:0x1a6,_0x745555:0x258,_0xfa17e7:0x82},_0x3bb2d9=_0x412fb5['resolve'](_0x55dce9);function _0x53db91(_0x28e160,_0x5d18af,_0xb79ab2,_0x171c77){return _0x57b9de(_0x28e160-_0x4e9115._0x24f78a,_0x5d18af,_0x28e160-_0x4e9115._0x745555,_0x171c77-_0x4e9115._0xfa17e7);}const _0x510683=_0x412fb5['relative'](_0x3bb2d9,_0x5e7de4);function _0x1e705a(_0x527530,_0x3d6a8d,_0x37e62a,_0x367838){return _0x23b1c2(_0x527530-0x7b,_0x37e62a,_0x527530- -0x371,_0x367838-_0x1022b8._0x56c232);}return _0x510683===''||!_0x510683[_0x53db91(_0x486e5d._0x206d04,0x646,_0x486e5d._0x4ded9f,0x6d1)]('..')&&!_0x412fb5[_0x53db91(0x6d0,0x78a,_0x486e5d._0x8e8de,_0x486e5d._0x470c98)](_0x510683);}function resolveWorkspacePath(_0x4380e8,_0x3721cf){return resolveAllowedPath(_0x4380e8,[],_0x3721cf);}function resolveAllowedPath(_0x1d05da,_0x5811e7,_0x4b551d){const _0x3d5fa6={_0x1b6030:0x545,_0x5a1e7d:0x401,_0x93d131:0x411,_0x389a8d:0x54a,_0xe5ab54:0x5be,_0x27b64d:0x5a1,_0x3bf7d8:0x41a,_0x61b83f:0x50b,_0x28b51f:0x4e0,_0x2480af:0x548,_0x18434f:0x4d1},_0x167f7a={_0x229fea:0xbd},_0x2a3c32={_0xec226:0x9,_0x2a1625:0x16},_0x254dbc=_0x412fb5[_0x317f82(0x4aa,_0x3d5fa6._0x1b6030,_0x3d5fa6._0x5a1e7d,0x329)](_0x1d05da);function _0x317f82(_0x55b01e,_0x130ab4,_0x1498fb,_0x3e41bb){return _0x57b9de(_0x55b01e-_0x2a3c32._0xec226,_0x130ab4,_0x1498fb-_0x2a3c32._0x2a1625,_0x3e41bb-0xc9);}function _0x57c3f5(_0x17db19,_0x44ea82,_0x23877b,_0x14ae78){return _0x57b9de(_0x17db19-0x19c,_0x44ea82,_0x14ae78-0x154,_0x14ae78-_0x167f7a._0x229fea);}const _0x52fa15=_0x412fb5['resolve'](_0x254dbc,_0x4b551d),_0x5d4a2c=[_0x254dbc,..._0x5811e7[_0x317f82(_0x3d5fa6._0x93d131,0x67d,_0x3d5fa6._0x389a8d,_0x3d5fa6._0xe5ab54)](_0x2127e7=>_0x412fb5[_0x57c3f5(0x5fa,0x5b4,0x4b2,0x53f)](_0x2127e7))];if(_0x5d4a2c[_0x317f82(_0x3d5fa6._0x27b64d,_0x3d5fa6._0x3bf7d8,_0x3d5fa6._0x61b83f,0x542)](_0x3e43fd=>isPathInside(_0x3e43fd,_0x52fa15)))return _0x52fa15;throw new ToolExecutionError(_0x57c3f5(0x584,_0x3d5fa6._0x28b51f,_0x3d5fa6._0x2480af,_0x3d5fa6._0x18434f)+_0x4b551d,{'path':_0x4b551d,'rootDir':_0x254dbc,'allowedDirs':_0x5d4a2c});}async function assertWorkspaceFile(_0x1715bb){const _0x5617cc={_0x547e05:0x344,_0xbf75ba:0x3fe,_0x170cf3:0x487,_0x3c71a5:0x36,_0x50598e:0x20,_0x520558:0x91},_0x187439={_0x810167:0x411,_0x29dffb:0x27},_0x2ed0a7={_0x13ab94:0xff};function _0x275a58(_0xad228e,_0x1fdc38,_0x3b0600,_0x42a815){return _0x23b1c2(_0xad228e-0x15a,_0xad228e,_0x1fdc38-0x178,_0x42a815-_0x2ed0a7._0x13ab94);}const _0x235f5b=await stat(_0x1715bb);function _0x1628aa(_0x1736bf,_0x339f12,_0x29dae0,_0x4cd363){return _0x23b1c2(_0x1736bf-0x67,_0x339f12,_0x1736bf- -_0x187439._0x810167,_0x4cd363-_0x187439._0x29dffb);}if(!_0x235f5b[_0x275a58(_0x5617cc._0x547e05,_0x5617cc._0xbf75ba,_0x5617cc._0x170cf3,0x4ba)]())throw new ToolExecutionError(_0x1628aa(-_0x5617cc._0x3c71a5,-0x39,-_0x5617cc._0x50598e,_0x5617cc._0x520558)+_0x1715bb,{'path':_0x1715bb});}function isProbablyBinary(_0xfd22a8){const _0x4a0689={_0x2c6708:0xd2,_0x4074a5:0x15d},_0x275b6e={_0x10eb47:0x314,_0x8ef873:0x83};function _0x419d38(_0x13a958,_0x1c07d9,_0x27a43a,_0xc64209){return _0x57b9de(_0x13a958-0xf8,_0x1c07d9,_0xc64209- -_0x275b6e._0x10eb47,_0xc64209-_0x275b6e._0x8ef873);}return _0xfd22a8[_0x419d38(0x284,_0x4a0689._0x2c6708,0x78,_0x4a0689._0x4074a5)](0x0);}var DEFAULT_DESCRIPTION=_0x57b9de(0x642,0x511,0x518,0x667),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x202c65){return _0x202c65 instanceof Error;}function shellExists(_0x7154c6){try{const _0x36c634=statSync(_0x7154c6);return _0x36c634['isFile']()&&(_0x36c634['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x39252c){const _0x34eb91={_0x58df23:0x40,_0x2d9d54:0x10,_0x2226a9:0x1,_0x2a3640:0x113,_0x46e1ad:0x0,_0x255eb3:0xb5,_0xbe8630:0x1ce,_0x20ae68:0x162,_0xb6d078:0x2b5,_0x501661:0x2b3,_0x21032e:0x15d,_0xfa691c:0x1fe,_0x41c458:0x368,_0x557a42:0x1f3,_0x3b0bd6:0xc6,_0x650bfd:0x2f6,_0x21e8d3:0x1df,_0x218aec:0x184,_0x3921aa:0x1d2},_0x28b11e={_0x40b63a:0x175,_0x1db512:0x18a};function _0x35fbdf(_0x191889,_0x122970,_0x429766,_0x4969b5){return _0x23b1c2(_0x191889-0xe2,_0x429766,_0x191889- -0x241,_0x4969b5-0x162);}if(_0x39252c)return _0x39252c;if(_0x1eb728[_0x35fbdf(_0x34eb91._0x58df23,0xc6,-_0x34eb91._0x2d9d54,_0x34eb91._0x2226a9)]()==='win32')return process[_0x35fbdf(_0x34eb91._0x2a3640,_0x34eb91._0x46e1ad,_0x34eb91._0x255eb3,_0x34eb91._0xbe8630)][_0x35fbdf(_0x34eb91._0x20ae68,_0x34eb91._0xb6d078,_0x34eb91._0x501661,0x67)]||'cmd.exe';const _0x48288a=[_0x35fbdf(_0x34eb91._0x21032e,_0x34eb91._0xfa691c,0x132,0x1a1),_0x35fbdf(0x52,-0x15,0x149,0xd9),_0x3e2446(0x22d,0x440,0x316,_0x34eb91._0x41c458),_0x35fbdf(0x239,0x107,_0x34eb91._0x557a42,0x384)];for(const _0x3e749f of _0x48288a){if(shellExists(_0x3e749f))return _0x3e749f;}const _0x36def1=process[_0x3e2446(_0x34eb91._0x3b0bd6,0x293,_0x34eb91._0x650bfd,_0x34eb91._0x21e8d3)]['SHELL'];function _0x3e2446(_0x1e4f79,_0x52e5ad,_0xb2e898,_0x3eda11){return _0x23b1c2(_0x1e4f79-0xa3,_0x1e4f79,_0x3eda11- -_0x28b11e._0x40b63a,_0x3eda11-_0x28b11e._0x1db512);}if(_0x36def1&&shellExists(_0x36def1))return _0x36def1;return _0x3e2446(0x366,_0x34eb91._0x218aec,_0x34eb91._0x3921aa,0x229);}function buildShellArgs(_0x2314d0,_0x1f07a3){const _0x52eecb={_0x22ea0b:0x54e,_0x51bb59:0x44a,_0x180ec6:0x2fd,_0x1f9b32:0x4ba,_0x114329:0x550,_0x33709d:0x410,_0x20558e:0x6df,_0x39c26c:0x659,_0x21f036:0x420,_0x2862b6:0x498,_0x1c00bb:0x4b1,_0x427ee8:0x581,_0x100249:0x3ac,_0x665bdc:0x4f8,_0x214ff8:0x4bf},_0x96bd83={_0x5842ef:0xac,_0x193ce3:0xdc,_0x4b506d:0x104};function _0x73ecfa(_0x4094ca,_0x1082dc,_0x311a31,_0x1be2ca){return _0x57b9de(_0x4094ca-0x8,_0x4094ca,_0x311a31-0x11b,_0x1be2ca-0x1d4);}function _0x278c67(_0x4e285b,_0x2ca4ff,_0x32850d,_0x334d0f){return _0x23b1c2(_0x4e285b-_0x96bd83._0x5842ef,_0x334d0f,_0x32850d-_0x96bd83._0x193ce3,_0x334d0f-_0x96bd83._0x4b506d);}if(_0x1eb728[_0x73ecfa(0x2fd,_0x52eecb._0x22ea0b,_0x52eecb._0x51bb59,_0x52eecb._0x180ec6)]()===_0x73ecfa(_0x52eecb._0x1f9b32,_0x52eecb._0x114329,_0x52eecb._0x33709d,0x43b)){const _0x7a0dd=/cmd(\.exe)?$/i[_0x73ecfa(_0x52eecb._0x20558e,0x514,0x5ed,_0x52eecb._0x39c26c)](_0x1f07a3);return _0x7a0dd?['/d','/s','/c',_0x2314d0]:['-NoLogo',_0x73ecfa(_0x52eecb._0x21f036,_0x52eecb._0x2862b6,_0x52eecb._0x1c00bb,_0x52eecb._0x427ee8),_0x278c67(0x52a,_0x52eecb._0x100249,_0x52eecb._0x665bdc,_0x52eecb._0x214ff8),_0x2314d0];}return['-c',_0x2314d0];}function resolveCarriageReturns(_0xfed06a){const _0x5e8fe4={_0x33a6a9:0x107,_0x367c81:0xf6,_0x4974ee:0x43,_0x4ca582:0x100,_0x2610cb:0x72,_0x296381:0x127,_0x8748fa:0xe0},_0x5997a={_0x3f0dce:0x265,_0x246561:0x1bb,_0x1765b8:0x15c},_0x24fa03={_0x5e65ef:0x8b,_0x1c5c52:0x3d1},_0x31885b={_0x289020:0x376,_0x26c74c:0x85};function _0x310290(_0x3c3e88,_0x3c5435,_0x54e13b,_0x1d045c){return _0x23b1c2(_0x3c3e88-0xc7,_0x3c3e88,_0x54e13b- -_0x31885b._0x289020,_0x1d045c-_0x31885b._0x26c74c);}function _0x250a03(_0x1e59f9,_0x144a3e,_0x20726e,_0x59b69e){return _0x23b1c2(_0x1e59f9-_0x24fa03._0x5e65ef,_0x1e59f9,_0x59b69e- -_0x24fa03._0x1c5c52,_0x59b69e-0x63);}return _0xfed06a[_0x310290(0x56,_0x5e8fe4._0x33a6a9,_0x5e8fe4._0x367c81,-_0x5e8fe4._0x4974ee)]('\x0a')[_0x250a03(0x181,-0x31,_0x5e8fe4._0x4ca582,0xb5)](_0x24cf0b=>{const _0x5687fc={_0x5bb5fc:0xa2,_0x24e1d8:0x18e,_0x2cbd1a:0x204};if(!_0x24cf0b[_0x46e4ce(0x135,0x1f6,_0x5997a._0x3f0dce,_0x5997a._0x246561)]('\x0d'))return _0x24cf0b;function _0x46e4ce(_0x20e477,_0x51d3c4,_0x4fd67a,_0xe5eb05){return _0x250a03(_0x20e477,_0x51d3c4-_0x5687fc._0x5bb5fc,_0x4fd67a-_0x5687fc._0x24e1d8,_0x51d3c4-_0x5687fc._0x2cbd1a);}function _0x452fa1(_0x10f636,_0x5c2d31,_0x4fed59,_0x544982){return _0x310290(_0x5c2d31,_0x5c2d31-0x1b8,_0x4fed59-0x98,_0x544982-0x1e0);}const _0x5cf7e6=_0x24cf0b['split']('\x0d');return _0x5cf7e6[_0x5cf7e6[_0x452fa1(_0x5997a._0x1765b8,0x1c6,0x1cb,0x178)]-0x1]??'';})[_0x250a03(-0x162,_0x5e8fe4._0x2610cb,-_0x5e8fe4._0x296381,-_0x5e8fe4._0x8748fa)]('\x0a');}function resolveBackspaces(_0x16e683){const _0x1847a4={_0x31fece:0x150,_0x37eecd:0x3,_0x217199:0xbf,_0x14bbb1:0x6e,_0x7e589:0x85,_0x162d09:0x161},_0x32f4bb={_0xddf269:0x9f,_0x66fffa:0x452,_0x16c10f:0x1ac},_0x3b1cc0={_0x3b23e6:0x1dc,_0x22a0c8:0x468};function _0x20e2aa(_0x227c63,_0x3465ab,_0x416109,_0x5b62a1){return _0x57b9de(_0x227c63-_0x3b1cc0._0x3b23e6,_0x416109,_0x227c63- -_0x3b1cc0._0x22a0c8,_0x5b62a1-0x9f);}function _0x24f0ac(_0xc722c6,_0x5cea96,_0x150a95,_0x3a9f55){return _0x23b1c2(_0xc722c6-_0x32f4bb._0xddf269,_0x5cea96,_0x3a9f55- -_0x32f4bb._0x66fffa,_0x3a9f55-_0x32f4bb._0x16c10f);}const _0x3ef72c=[];for(const _0x15881b of Array['from'](_0x16e683)){_0x15881b==='\x08'?_0x3ef72c[_0x20e2aa(-0xee,0x1,-0x22c,-_0x1847a4._0x31fece)]():_0x3ef72c[_0x24f0ac(_0x1847a4._0x37eecd,-_0x1847a4._0x217199,_0x1847a4._0x14bbb1,-0xbd)](_0x15881b);}return _0x3ef72c[_0x24f0ac(-_0x1847a4._0x7e589,-0x21c,-0x1c5,-_0x1847a4._0x162d09)]('');}function _0x27a7(_0x59f3f6,_0x2c8001){_0x59f3f6=_0x59f3f6-0x1a7;const _0x3d53d4=_0x3d53();let _0x27a7e7=_0x3d53d4[_0x59f3f6];if(_0x27a7['Tryhwh']===undefined){var _0x509f0c=function(_0x33be50){const _0x408d87='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x323bca='',_0x3586d2='';for(let _0x3cc5cf=0x0,_0x5b6570,_0x5ae67b,_0x16b600=0x0;_0x5ae67b=_0x33be50['charAt'](_0x16b600++);~_0x5ae67b&&(_0x5b6570=_0x3cc5cf%0x4?_0x5b6570*0x40+_0x5ae67b:_0x5ae67b,_0x3cc5cf++%0x4)?_0x323bca+=String['fromCharCode'](0xff&_0x5b6570>>(-0x2*_0x3cc5cf&0x6)):0x0){_0x5ae67b=_0x408d87['indexOf'](_0x5ae67b);}for(let _0x259d3=0x0,_0x4be518=_0x323bca['length'];_0x259d3<_0x4be518;_0x259d3++){_0x3586d2+='%'+('00'+_0x323bca['charCodeAt'](_0x259d3)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3586d2);};_0x27a7['PfaliV']=_0x509f0c,_0x27a7['wMeNQS']={},_0x27a7['Tryhwh']=!![];}const _0x25d84d=_0x3d53d4[0x0],_0x63a7a1=_0x59f3f6+_0x25d84d,_0x5b22bb=_0x27a7['wMeNQS'][_0x63a7a1];return!_0x5b22bb?(_0x27a7e7=_0x27a7['PfaliV'](_0x27a7e7),_0x27a7['wMeNQS'][_0x63a7a1]=_0x27a7e7):_0x27a7e7=_0x5b22bb,_0x27a7e7;}function stripAnsiAndControls(_0x18fe4c){const _0x1f859f={_0x23a328:0x8f,_0x1a33c4:0x16f,_0x2a403d:0x131,_0x52ade2:0x5d,_0x29a9c1:0x59,_0x1e3aa3:0x60,_0x25b220:0x28a,_0x2745fa:0x233,_0x4a6075:0x321,_0xda3cb9:0xb0,_0x3bcf66:0x143,_0x4aa7ee:0x3cb,_0x34e7d5:0x326,_0x41d1fc:0x1d3,_0x292f6b:0xb8,_0x58daf4:0x61,_0x47f086:0x101,_0x866db4:0x27,_0x421ec2:0x10e},_0x24430a={_0x5b21dc:0x119};function _0x416360(_0x4be6da,_0x49632b,_0x378bbf,_0x481d25){return _0x23b1c2(_0x4be6da-0x152,_0x481d25,_0x49632b- -0x3b0,_0x481d25-0x63);}function _0x206ee1(_0x45a2e4,_0x59020b,_0x1cacb1,_0x57fd4e){return _0x23b1c2(_0x45a2e4-0xc2,_0x59020b,_0x1cacb1- -_0x24430a._0x5b21dc,_0x57fd4e-0x76);}_0x18fe4c=resolveCarriageReturns(_0x18fe4c),_0x18fe4c=resolveBackspaces(_0x18fe4c),_0x18fe4c=stripVTControlCharacters(_0x18fe4c);const _0x361220='\x1b',_0x1029b3='\x07';return _0x18fe4c=_0x18fe4c[_0x416360(0x18f,_0x1f859f._0x23a328,_0x1f859f._0x1a33c4,_0x1f859f._0x2a403d)](new RegExp(_0x416360(0x13e,0x19,0x2d,0xa0)+_0x1029b3+_0x416360(-0x13e,-_0x1f859f._0x52ade2,_0x1f859f._0x29a9c1,-0x2d)+_0x1029b3,'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(-_0x1f859f._0x1e3aa3,_0x1f859f._0x23a328,-0x22,-0x25)](new RegExp(_0x206ee1(_0x1f859f._0x25b220,_0x1f859f._0x2745fa,0x37e,_0x1f859f._0x4a6075)+_0x361220+'\x5c\x5c','g'),''),_0x18fe4c=_0x18fe4c['replace'](new RegExp(_0x1029b3,'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(0x98,0x8f,_0x1f859f._0xda3cb9,_0x1f859f._0x3bcf66)](new RegExp(_0x361220+'[P_^][\x5cs\x5cS]*?'+_0x361220+'\x5c\x5c','g'),''),_0x18fe4c=_0x18fe4c[_0x206ee1(0x462,_0x1f859f._0x4aa7ee,_0x1f859f._0x34e7d5,_0x1f859f._0x41d1fc)](new RegExp(_0x361220+_0x416360(-0xf0,-_0x1f859f._0x292f6b,-0x6e,-_0x1f859f._0x58daf4),'g'),''),_0x18fe4c=_0x18fe4c[_0x416360(0x3b,0x8f,0x0,_0x1f859f._0x47f086)](/[\u0080-\u009F]/g,''),_0x18fe4c=_0x18fe4c[_0x206ee1(0x326,0x205,0x326,0x248)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x18fe4c=_0x18fe4c[_0x416360(-_0x1f859f._0x866db4,0x8f,_0x1f859f._0x421ec2,0x8d)](/[\u23CE\u2424]/g,''),_0x18fe4c;}function resolveWorkingDirectory(_0x447afb,_0x37b372,_0x1d017f){const _0x7d438d={_0x32fcc6:0x26},_0x5bf951={_0x1b39b5:0x72},_0x218733={_0x3fe06c:0x105};function _0x12b63d(_0x390cc9,_0x49d080,_0x13d3f4,_0x217df2){return _0x57b9de(_0x390cc9-0x9e,_0x390cc9,_0x13d3f4- -0x49,_0x217df2-_0x218733._0x3fe06c);}const _0x5d113e=resolveAllowedPath(_0x37b372,_0x1d017f,_0x447afb??'.');function _0x1a54fb(_0x183c0c,_0x131b3b,_0x47e2da,_0x4f43d2){return _0x57b9de(_0x183c0c-_0x5bf951._0x1b39b5,_0x4f43d2,_0x131b3b- -0x2ad,_0x4f43d2-0x14d);}try{const _0x47f054=statSync(_0x5d113e);if(!_0x47f054[_0x1a54fb(0x9e,0x158,0x155,0xd6)]())throw new ToolExecutionError(_0x1a54fb(0x33e,0x269,0x15d,0x23b)+_0x5d113e,{'cwd':_0x5d113e});return _0x5d113e;}catch(_0x4fa75d){if(_0x4fa75d instanceof ToolExecutionError)throw _0x4fa75d;throw new ToolExecutionError(_0x1a54fb(0x202,0xdd,0x133,-_0x7d438d._0x32fcc6)+_0x5d113e,{'cwd':_0x5d113e});}}function killProcessGroup(_0x2cb3c6,_0x5994b9,_0x3730d8=_0x23b1c2(0x29e,0x41c,0x330,0x1e0)){const _0x310c4d={_0x36ef7f:0xc4,_0x146f33:0x15c,_0x2df8df:0x1c2,_0x2dd576:0x29,_0xdc4430:0x1b1,_0x485225:0x167,_0x5db02c:0x73,_0xad9322:0x166,_0x2ffadf:0x5d5,_0x79eb9:0x734,_0x3fad6e:0x4b9,_0x3279f7:0x485,_0x4f7b12:0x45b},_0x27db4f={_0x57c52d:0xf0,_0x53809f:0x387},_0x2b9dd4={_0x44e41e:0x175};function _0x5081e3(_0x142927,_0x349bb4,_0x3d63f0,_0x5937d4){return _0x57b9de(_0x142927-0xfc,_0x3d63f0,_0x142927-_0x2b9dd4._0x44e41e,_0x5937d4-0x1c7);}if(!_0x2cb3c6['pid'])return;if(_0x5994b9)try{_0x4be518(_0x15843d(0xc9,_0x310c4d._0x36ef7f,_0x310c4d._0x146f33,_0x310c4d._0x2df8df),[_0x15843d(-0xa0,0x15b,0x3d,0xa1),_0x2cb3c6['pid']['toString'](),'/T','/F'],{'stdio':_0x15843d(-0x188,-0xa1,-0xc7,_0x310c4d._0x2dd576)});return;}catch{_0x2cb3c6['kill'](_0x3730d8);return;}function _0x15843d(_0x204477,_0x1b1f1e,_0x2bbf7d,_0x1806d5){return _0x23b1c2(_0x204477-_0x27db4f._0x57c52d,_0x204477,_0x2bbf7d- -_0x27db4f._0x53809f,_0x1806d5-0x187);}try{process[_0x15843d(-_0x310c4d._0xdc4430,-_0x310c4d._0x485225,-_0x310c4d._0x5db02c,-_0x310c4d._0xad9322)](-_0x2cb3c6[_0x5081e3(0x6f5,0x725,_0x310c4d._0x2ffadf,_0x310c4d._0x79eb9)],_0x3730d8);}catch{_0x2cb3c6[_0x5081e3(0x537,_0x310c4d._0x3fad6e,_0x310c4d._0x3279f7,_0x310c4d._0x4f7b12)](_0x3730d8);}}function appendChunk(_0x4bbca7,_0x3b1b91,_0x1c96cc,_0x273d6d,_0x1f7206){const _0x3e8143={_0x11f2b2:0x393,_0x4e1523:0x340,_0x259b05:0x427},_0x5b17ad={_0x1d1e85:0x115,_0x5d47c0:0x39},_0x461be5=_0x273d6d?stripAnsiAndControls(_0x1c96cc):_0x1c96cc;function _0x19b1a3(_0x3a9363,_0x4b14b4,_0x391a3b,_0x301d1a){return _0x23b1c2(_0x3a9363-0x172,_0x391a3b,_0x3a9363- -_0x5b17ad._0x1d1e85,_0x301d1a-_0x5b17ad._0x5d47c0);}if(_0x461be5[_0x19b1a3(0x394,_0x3e8143._0x11f2b2,_0x3e8143._0x4e1523,_0x3e8143._0x259b05)]===0x0)return;_0x4bbca7['push'](_0x461be5),_0x3b1b91['push'](_0x461be5),_0x1f7206();}function createBashTool(_0x2bc824={}){const _0x11ffde={_0x2bb5c1:0x3d5,_0x34971d:0x38b,_0x3d3806:0x323,_0x736844:0x308,_0x51d501:0x2d1,_0x560955:0x396,_0x181091:0x3e9,_0x250f82:0x413,_0x2e8a6b:0x428,_0x5310c5:0x4d9,_0x3b598f:0x448,_0x2fca52:0x61a,_0x8b61bd:0x4d4,_0x4e4632:0x434,_0x488320:0x451,_0x1926ac:0x3cb,_0x2a4e78:0x308,_0x134220:0x1d7,_0x158545:0x27e,_0x4056cf:0x2e9,_0xfdccea:0x26e,_0x114d13:0x511,_0xe4b22b:0x3f0,_0x3751f8:0x348,_0x22a647:0x2d3,_0xdb5a6a:0x3f3},_0x56e15b={_0x2d6a5b:0x66f,_0xd59e72:0x613,_0x3e1c7a:0x64e,_0x3d3d0f:0x51c,_0x4e278d:0x369,_0x984fb:0x3c9,_0x45e0e2:0x4b1,_0x13fc5c:0x616,_0x1acba8:0x55c,_0x240a72:0x63e,_0x2dadaf:0x735,_0x12d7b9:0x663,_0x2d5bf4:0x528,_0x1898f5:0x5da,_0x51fbba:0x3ed,_0x3ada6d:0x4b7,_0x184e7a:0x4d6,_0x4ad758:0x62a,_0x598b03:0x54c,_0x4a3f8d:0x69a,_0x4deae6:0x63f,_0x246b67:0x4dc,_0x4af58d:0x4d2,_0x1bc46c:0x2d0,_0x1106fa:0x46e,_0x4dcffe:0x369,_0x50d1ca:0x4ab,_0x46c723:0x519,_0x260183:0x458,_0x201275:0x417,_0x438025:0x8bb,_0x3aaeb5:0x89e,_0x53a0d5:0x8d0,_0x10d0e4:0x798,_0x3f812e:0x7f0,_0x509ebc:0x6cd,_0x15134e:0x6ce,_0x480813:0x86d,_0x223d7b:0x814,_0x558924:0x761,_0x3c6868:0x4ef,_0x2c333e:0x4d5,_0x6d9842:0x4eb,_0x2b7e8d:0x704,_0xbbae97:0x89a,_0x417973:0x875,_0x3b7872:0x53e,_0x39aed4:0x611,_0x2f6217:0x40c,_0x5e9968:0x542,_0xdefba:0x600,_0x2b833b:0x5e5,_0x1a1ba7:0x57b,_0x44b961:0x4a9,_0x510c4d:0x717,_0x299378:0x5ed,_0x2849ef:0x593,_0x4bbf34:0x5df,_0xd324ad:0x5fa,_0xd37019:0x61c,_0x3a3fc2:0x5ca,_0x30edf6:0x5a1,_0x3db712:0x68a,_0x5a913e:0x4db,_0x561a18:0x567,_0x407843:0x522,_0xd6773f:0x55a,_0x4aed3e:0x730,_0x5c8e28:0x887,_0x4e2843:0x5f9,_0x32ca25:0x4b0,_0x10d329:0x5e7,_0x2c326a:0x4a0,_0x31c793:0x57b,_0x11e085:0x451,_0x39da56:0x77c,_0x3d7e4f:0x655,_0x3a6b1d:0x6d0,_0x4da60f:0x5ea,_0x3fdc95:0x55c,_0x542eb7:0x608,_0x27a9fb:0x6a9,_0x2014ff:0x419,_0x29f75a:0x594,_0x3ac561:0x6af,_0x2046e3:0x517,_0x529c04:0x786,_0x56e86a:0x438,_0x185855:0x611,_0x1b5c9b:0x53f},_0x2d4c4a={_0x4173b5:0x126},_0x134f3e={_0x3710ae:0x77b},_0x5e2487={_0x5d37cc:0x156},_0x2f0011={_0x509989:0x90,_0x495aba:0x15c},_0x4440d5={_0x50c0b0:0x141,_0x4df927:0x84},_0x35863f={_0xf6e7c:0xc0,_0x3db76a:0x78},_0x341f79=_0x181fe3[_0x532c59(_0x11ffde._0x2bb5c1,0x267,0x26f,_0x11ffde._0x34971d)](_0x2bc824[_0x24ac5f(_0x11ffde._0x3d3806,0x408,_0x11ffde._0x736844,0x227)]??process[_0x24ac5f(_0x11ffde._0x51d501,_0x11ffde._0x560955,0x32d,_0x11ffde._0x181091)]());function _0x24ac5f(_0xf2634a,_0x2c97fd,_0x30a171,_0x2aa6d2){return _0x57b9de(_0xf2634a-0x10e,_0x2c97fd,_0xf2634a- -_0x35863f._0xf6e7c,_0x2aa6d2-_0x35863f._0x3db76a);}const _0x431ac8=(_0x2bc824[_0x24ac5f(_0x11ffde._0x250f82,_0x11ffde._0x2e8a6b,_0x11ffde._0x5310c5,0x50c)]??[])[_0x532c59(0x3fc,_0x11ffde._0x3b598f,_0x11ffde._0x2fca52,_0x11ffde._0x8b61bd)](_0x651871=>_0x181fe3[_0x532c59(0x357,0x446,0x3df,0x38b)](_0x651871)),_0x2f7efd=_0x2bc824[_0x24ac5f(_0x11ffde._0x4e4632,0x339,_0x11ffde._0x488320,_0x11ffde._0x1926ac)]??DEFAULT_TIMEOUT_MS;function _0x532c59(_0x4725f5,_0x5480a0,_0x476aa3,_0x5a3f40){return _0x23b1c2(_0x4725f5-_0x4440d5._0x50c0b0,_0x4725f5,_0x5a3f40-0x4e,_0x5a3f40-_0x4440d5._0x4df927);}const _0x2ab0aa=_0x2bc824[_0x24ac5f(_0x11ffde._0x2a4e78,_0x11ffde._0x134220,_0x11ffde._0x158545,0x3c8)]??!![],_0x136543=_0x2bc824['name']??_0x24ac5f(0x27b,_0x11ffde._0x4056cf,0x36f,_0x11ffde._0xfdccea);return defineTool({'name':_0x136543,'description':_0x2bc824['description']??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x24ac5f(0x3ca,_0x11ffde._0x114d13,0x283,0x29e),'properties':{'command':{'type':'string'},'cwd':{'type':_0x532c59(_0x11ffde._0xe4b22b,0x3b5,_0x11ffde._0x3751f8,_0x11ffde._0x22a647)},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':'boolean'}},'required':[_0x24ac5f(_0x11ffde._0xdb5a6a,0x425,0x2bf,0x2c4)]},async *'execute'(_0x4da20f,_0xa525ab){const _0x30e10d={_0x2a3580:0x44b,_0x577603:0x2e8,_0x4f235e:0x40c,_0x233b30:0x54b,_0x950af0:0x680},_0x52ece7={_0x34ca94:0x127,_0x3d1344:0xa2,_0x196d57:0x21a},_0x519994={_0xf1fac:0x2d3,_0x1f8134:0x426,_0x19f457:0x3b3},_0x491138={_0x4cfc61:0x2d2,_0x1815fb:0x1c7},_0x598cad={_0x2c800e:0x603},_0x466be3={_0x2708f6:0x1bc},_0x12ded6={_0xf33a6d:0x1e7,_0xf609f4:0xb0},_0x1ab551=_0x4da20f[_0x50cf3b(_0x56e15b._0x2d6a5b,_0x56e15b._0xd59e72,_0x56e15b._0x3e1c7a,_0x56e15b._0x3d3d0f)]??_0x2f7efd;if(!Number[_0x284a54(_0x56e15b._0x4e278d,_0x56e15b._0x984fb,0x3a7,0x440)](_0x1ab551)||_0x1ab551<0x1)throw new ToolExecutionError('Invalid\x20timeoutMs:\x20expected\x20a\x20positive\x20number',{'command':_0x4da20f[_0x284a54(_0x56e15b._0x45e0e2,_0x56e15b._0x13fc5c,_0x56e15b._0x1acba8,0x489)]});throwIfAborted(_0xa525ab[_0x50cf3b(0x62e,_0x56e15b._0x240a72,_0x56e15b._0x2dadaf,_0x56e15b._0x12d7b9)]);const _0x22e319=resolveWorkingDirectory(_0x4da20f[_0x284a54(0x348,0x508,0x43a,_0x56e15b._0x2d5bf4)],_0x341f79,_0x431ac8),_0xf73d3d=_0x4da20f[_0x284a54(_0x56e15b._0x1898f5,_0x56e15b._0x51fbba,_0x56e15b._0x3ada6d,_0x56e15b._0x184e7a)]??![],_0x3dff44=resolveDefaultShell(_0x2bc824[_0x50cf3b(_0x56e15b._0x4ad758,_0x56e15b._0x598b03,_0x56e15b._0x4a3f8d,_0x56e15b._0x4deae6)]),_0x45ea53=buildShellArgs(_0x4da20f['command'],_0x3dff44),_0x3bdb06=_0x1eb728[_0x50cf3b(0x598,0x573,_0x56e15b._0x246b67,0x55a)]()===_0x284a54(_0x56e15b._0x4af58d,_0x56e15b._0x1bc46c,0x39e,_0x56e15b._0x1106fa);let _0x25fb16;try{_0x25fb16=_0x4be518(_0x3dff44,_0x45ea53,{'cwd':_0x22e319,'env':{...process[_0x284a54(0x3cc,_0x56e15b._0x4dcffe,0x4ab,0x5f3)],..._0x2bc824[_0x284a54(0x362,0x5d6,_0x56e15b._0x50d1ca,0x502)]??{}},'stdio':_0xf73d3d?['ignore',_0x284a54(_0x56e15b._0x46c723,0x56a,0x417,0x337),_0x284a54(0x3dc,_0x56e15b._0x260183,0x417,0x34c)]:[_0x284a54(0x334,0x2df,_0x56e15b._0x201275,0x337),_0x50cf3b(_0x56e15b._0x438025,_0x56e15b._0x3aaeb5,_0x56e15b._0x53a0d5,_0x56e15b._0x10d0e4),_0x50cf3b(_0x56e15b._0x3f812e,_0x56e15b._0x509ebc,_0x56e15b._0x15134e,_0x56e15b._0x10d0e4)],'shell':![],'windowsHide':!![],'detached':!_0x3bdb06});}catch(_0x3c1ccb){if(isErrnoException(_0x3c1ccb)&&_0x3c1ccb[_0x50cf3b(0x6ad,_0x56e15b._0x480813,_0x56e15b._0x223d7b,_0x56e15b._0x558924)]==='ENOENT')throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0x3dff44,{'command':_0x4da20f['command'],'cwd':_0x22e319,'shellPath':_0x3dff44});throw new ToolExecutionError(_0x3c1ccb instanceof Error?_0x3c1ccb['message']:String(_0x3c1ccb),{'command':_0x4da20f['command'],'cwd':_0x22e319,'shellPath':_0x3dff44});}function _0x50cf3b(_0xa82835,_0x2f8fcf,_0x3c4ddd,_0xa427c8){return _0x532c59(_0x2f8fcf,_0x2f8fcf-_0x2f0011._0x509989,_0x3c4ddd-_0x2f0011._0x495aba,_0xa427c8-0x28b);}const _0x189567=[],_0x16de8e=[],_0x4c0cd9=new StringDecoder('utf8'),_0x2d4da6=new StringDecoder('utf8');let _0x226bed,_0x295f9e=![],_0x11b86f;const _0x135874=()=>{if(!_0x226bed)return;const _0x3fb3e4=_0x226bed;_0x226bed=void 0x0,_0x3fb3e4();};function _0x284a54(_0x1754e4,_0x4e8ce2,_0x5aa4c0,_0x7d036d){return _0x532c59(_0x1754e4,_0x4e8ce2-0x15c,_0x5aa4c0-_0x5e2487._0x5d37cc,_0x5aa4c0-0x109);}const _0x35dc71=async()=>{function _0x32f7dc(_0x30efce,_0x226e1a,_0x5729ea,_0x1d0fd1){return _0x284a54(_0x226e1a,_0x226e1a-_0x12ded6._0xf33a6d,_0x30efce-0x3e,_0x1d0fd1-_0x12ded6._0xf609f4);}if(_0x16de8e[_0x32f7dc(0x63e,_0x134f3e._0x3710ae,0x5f7,0x553)]>0x0||_0x295f9e)return;await new Promise(_0x30ddd3=>{_0x226bed=_0x30ddd3;});},_0xf7f030=_0x4d7a2a=>{function _0x3b95aa(_0x573993,_0x5a218,_0x4768d2,_0x562656){return _0x50cf3b(_0x573993-0x180,_0x5a218,_0x4768d2-_0x466be3._0x2708f6,_0x4768d2- -0x1e2);}appendChunk(_0x189567,_0x16de8e,_0x4c0cd9[_0x3b95aa(_0x598cad._0x2c800e,0x5d9,0x4f5,0x5aa)](_0x4d7a2a),_0x2ab0aa,_0x135874);},_0x393ac4=_0x2e2c89=>{const _0x32e020={_0x28ef00:0x131,_0x30fdbc:0x38e,_0x353419:0x66};function _0x495454(_0x40b9e0,_0x50b6c1,_0x265a70,_0x1c1fc3){return _0x284a54(_0x1c1fc3,_0x50b6c1-_0x32e020._0x28ef00,_0x50b6c1- -_0x32e020._0x30fdbc,_0x1c1fc3-_0x32e020._0x353419);}appendChunk(_0x189567,_0x16de8e,_0x2d4da6[_0x495454(_0x491138._0x4cfc61,_0x491138._0x1815fb,0x2c8,0x108)](_0x2e2c89),_0x2ab0aa,_0x135874);};_0x25fb16[_0x284a54(_0x56e15b._0x3c6868,_0x56e15b._0x2c333e,_0x56e15b._0x6d9842,0x537)]?.['on'](_0x50cf3b(0x674,0x79f,_0x56e15b._0x2b7e8d,0x793),_0xf7f030),_0x25fb16[_0x50cf3b(_0x56e15b._0xbbae97,_0x56e15b._0x417973,0x74f,0x786)]?.['on'](_0x284a54(_0x56e15b._0x3b7872,0x6cc,_0x56e15b._0x39aed4,0x575),_0x393ac4);let _0x47dcc9=![],_0x257e51;const _0x159ec6=addAbortListener(_0xa525ab[_0x284a54(0x461,_0x56e15b._0x2f6217,0x4e1,0x56f)],()=>{const _0x5c5d5d={_0x5132ff:0x91,_0x1458b3:0x533};function _0x5304f5(_0x27b089,_0x5a594b,_0x308584,_0x3f561c){return _0x284a54(_0x3f561c,_0x5a594b-_0x5c5d5d._0x5132ff,_0x308584- -_0x5c5d5d._0x1458b3,_0x3f561c-0x68);}_0x11b86f=toAbortError(_0xa525ab['signal'][_0x5304f5(-0x103,0x2,-_0x2d4c4a._0x4173b5,-0xec)]),_0x295f9e=!![],_0x135874();try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}});try{const _0x75572c=new Promise((_0x30e2d9,_0x3a76cc)=>{const _0x380100={_0x260c34:0x13b,_0x2a09db:0x243,_0xcb8f13:0x269,_0x5e34d8:0x1f7,_0x19b000:0x244,_0x3ab8d6:0xd3,_0x3af6e8:0x1a0,_0xc3ed38:0x57},_0x5335fc={_0x618d16:0x72,_0x178137:0xbe,_0xb86091:0x1e4,_0xcc8acd:0x21a,_0x28fa69:0x73,_0x5e93ff:0x385,_0x42ad0a:0x336,_0x2bec24:0x33c},_0x32c5be={_0x3cc23e:0x1a6};function _0x2f808c(_0x57ba6b,_0x211ac0,_0x2c2365,_0xfa09c7){return _0x284a54(_0x57ba6b,_0x211ac0-0x126,_0x211ac0-_0x32c5be._0x3cc23e,_0xfa09c7-0x154);}const _0x14db04=()=>{function _0xd88536(_0x57c2c9,_0x41b5b0,_0x5b179d,_0x47473e){return _0x27a7(_0x57c2c9-0x9a,_0x47473e);}_0x257e51&&(clearTimeout(_0x257e51),_0x257e51=void 0x0);function _0x2d0d3f(_0x1bcd4a,_0x34c40f,_0x184a38,_0xdc600b){return _0x27a7(_0x34c40f- -0x185,_0x1bcd4a);}_0x25fb16[_0x2d0d3f(-0x89,_0x5335fc._0x618d16,_0x5335fc._0x178137,0x13e)](_0x2d0d3f(0x235,_0x5335fc._0xb86091,_0x5335fc._0xcc8acd,0x94),_0x1e63a7),_0x25fb16[_0x2d0d3f(0x137,0x72,_0x5335fc._0x28fa69,0x1b7)](_0xd88536(_0x5335fc._0x5e93ff,0x270,_0x5335fc._0x42ad0a,_0x5335fc._0x2bec24),_0x5963ea);},_0x1e63a7=_0x1d6adc=>{_0x295f9e=!![],_0x135874(),_0x14db04(),_0x3a76cc(_0x11b86f??_0x1d6adc);},_0x5963ea=(_0x997ca7,_0xe562bd)=>{function _0x18e246(_0x4ba1b1,_0x34206a,_0x5c3455,_0x4a909f){return _0x27a7(_0x4ba1b1-0x11a,_0x5c3455);}_0x47dcc9=!![],appendChunk(_0x189567,_0x16de8e,_0x4c0cd9['end'](),_0x2ab0aa,_0x135874),appendChunk(_0x189567,_0x16de8e,_0x2d4da6[_0x18e246(_0x519994._0xf1fac,0x1d8,_0x519994._0x1f8134,_0x519994._0x19f457)](),_0x2ab0aa,_0x135874),_0x295f9e=!![],_0x135874(),_0x14db04();if(_0x11b86f){_0x3a76cc(_0x11b86f);return;}_0x30e2d9({'code':_0x997ca7,'signal':_0xe562bd});};_0x257e51=setTimeout(()=>{_0x295f9e=!![],_0x135874(),_0x14db04();function _0xba8e1b(_0x2e2539,_0x4f7bc8,_0x500877,_0x3b24d0){return _0x27a7(_0x500877- -0x1cd,_0x3b24d0);}try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}function _0x1df7e3(_0x964003,_0x328294,_0x575a35,_0x41e1ff){return _0x27a7(_0x964003-0x39,_0x41e1ff);}_0x3a76cc(new ToolExecutionError(_0xba8e1b(0x1fb,0x94,_0x380100._0x260c34,0x1c8)+_0x1ab551+_0x1df7e3(_0x380100._0x2a09db,_0x380100._0xcb8f13,0x1c5,_0x380100._0x5e34d8),{'command':_0x4da20f[_0xba8e1b(_0x380100._0x19b000,_0x380100._0x3ab8d6,_0x380100._0x3af6e8,_0x380100._0xc3ed38)],'cwd':_0x22e319,'shellPath':_0x3dff44,'timeoutMs':_0x1ab551,'timedOut':!![]}));},_0x1ab551);function _0x3eea33(_0xf8acbf,_0x4ef3fa,_0x39abaf,_0x2131a7){return _0x50cf3b(_0xf8acbf-_0x52ece7._0x34ca94,_0xf8acbf,_0x39abaf-_0x52ece7._0x3d1344,_0x39abaf- -_0x52ece7._0x196d57);}_0x25fb16[_0x3eea33(_0x30e10d._0x2a3580,0x402,0x39c,_0x30e10d._0x577603)](_0x3eea33(0x4ea,0x5b1,0x4c0,_0x30e10d._0x4f235e),_0x1e63a7),_0x25fb16['once'](_0x2f808c(_0x30e10d._0x233b30,_0x30e10d._0x950af0,0x5ca,0x5ab),_0x5963ea);});while(_0x16de8e[_0x284a54(0x740,_0x56e15b._0x5e9968,_0x56e15b._0xdefba,_0x56e15b._0x2b833b)]>0x0||!_0x295f9e){if(_0x16de8e['length']===0x0){await _0x35dc71();continue;}const _0x4f6e54=_0x16de8e[_0x284a54(_0x56e15b._0x1a1ba7,0x4f7,_0x56e15b._0x44b961,0x389)]();_0x4f6e54!==void 0x0&&(yield _0x4f6e54);}const _0x4185d2=await _0x75572c,_0x1c6bd2=_0xf73d3d?_0x284a54(_0x56e15b._0x510c4d,0x709,_0x56e15b._0x299378,0x678)+(_0x4185d2[_0x284a54(0x4d2,_0x56e15b._0x2849ef,_0x56e15b._0x4bbf34,_0x56e15b._0xd324ad)]??0x0):_0x189567[_0x50cf3b(0x487,_0x56e15b._0xd37019,0x5ca,_0x56e15b._0x3a3fc2)](''),_0x14f461={'command':_0x4da20f[_0x50cf3b(_0x56e15b._0x30edf6,0x68e,0x7c7,0x6de)],'cwd':_0x22e319,'exitCode':_0x4185d2['code']??0x0,'signal':_0x4185d2[_0x50cf3b(0x61c,_0x56e15b._0x3db712,0x55e,0x663)],'ignoreOutput':_0xf73d3d,'shellPath':_0x3dff44,'timeoutMs':_0x1ab551};if(_0x4185d2['code']!==0x0)throw new ToolExecutionError(_0x1c6bd2||'Command\x20exited\x20with\x20code\x20'+(_0x4185d2[_0x284a54(_0x56e15b._0x5a913e,0x510,0x5df,_0x56e15b._0x561a18)]??0x0),_0x14f461);return createToolOutput(_0x1c6bd2,_0x14f461);}catch(_0x128a5b){while(_0x16de8e[_0x284a54(0x50b,_0x56e15b._0x407843,0x600,_0x56e15b._0xd6773f)]>0x0){const _0x331d59=_0x16de8e['shift']();_0x331d59!==void 0x0&&(yield _0x331d59);}if(_0x128a5b instanceof ToolExecutionError)throw _0x128a5b;if(_0x11b86f)throw _0x11b86f;if(isErrnoException(_0x128a5b)&&_0x128a5b[_0x50cf3b(_0x56e15b._0x4aed3e,0x890,_0x56e15b._0x5c8e28,0x761)]===_0x284a54(0x4b8,_0x56e15b._0x4e2843,_0x56e15b._0x32ca25,0x4f2))throw new ToolExecutionError(_0x284a54(0x616,0x598,_0x56e15b._0x10d329,0x722)+_0x3dff44,{'command':_0x4da20f[_0x284a54(_0x56e15b._0x2c326a,_0x56e15b._0x31c793,_0x56e15b._0x1acba8,_0x56e15b._0x11e085)],'cwd':_0x22e319,'shellPath':_0x3dff44});throw new ToolExecutionError(_0x128a5b instanceof Error?_0x128a5b[_0x50cf3b(_0x56e15b._0x39da56,_0x56e15b._0x3d7e4f,0x794,_0x56e15b._0x3a6b1d)]:String(_0x128a5b),{'command':_0x4da20f[_0x284a54(_0x56e15b._0x4da60f,0x592,_0x56e15b._0x3fdc95,_0x56e15b._0x542eb7)],'cwd':_0x22e319,'shellPath':_0x3dff44});}finally{_0x257e51&&clearTimeout(_0x257e51);_0x159ec6(),_0x25fb16[_0x284a54(0x39f,0x637,0x4eb,0x5ae)]?.[_0x50cf3b(_0x56e15b._0x27a9fb,_0x56e15b._0x2014ff,_0x56e15b._0x29f75a,0x568)](_0x284a54(_0x56e15b._0x3ac561,0x568,_0x56e15b._0x39aed4,_0x56e15b._0x2046e3),_0xf7f030),_0x25fb16[_0x50cf3b(0x656,0x664,0x80b,_0x56e15b._0x529c04)]?.[_0x50cf3b(0x44d,0x5cb,_0x56e15b._0x56e86a,0x568)](_0x284a54(0x55f,0x5c2,_0x56e15b._0x185855,0x73b),_0x393ac4);if(!_0x47dcc9&&_0x25fb16[_0x284a54(0x618,_0x56e15b._0x1b5c9b,0x629,0x609)]&&!_0x25fb16['killed'])try{killProcessGroup(_0x25fb16,_0x3bdb06);}catch{}}}});}function createShellExecTool(_0x301293={}){return createBashTool(_0x301293);}import{readdir,readFile as _0x2e547c}from'fs/promises';import{extname,join as _0x50860e}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0xcae7df,join,relative as _0x76c7e4,resolve as _0x4c8a54}from'path';import{readdir as _0x2cc386,readFile as _0x299a8d}from'fs/promises';import{join as _0x2a6f36,relative as _0x13780c,sep}from'path';import{delimiter}from'path';import{mkdir as _0x554e1b,rm,stat as _0x5d7b2d,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0x366b9f}from'path';function _0x23b1c2(_0x3bf939,_0x538070,_0x3ce014,_0x1e7a6e){const _0x3fa5b1={_0x2b344e:0x98};return _0x27a7(_0x3ce014-_0x3fa5b1._0x2b344e,_0x538070);}import{unwatchFile,watchFile}from'fs';import{readFile as _0x14c8b9,rename,writeFile as _0x5adb06}from'fs/promises';import{homedir as _0x126b8c}from'os';import{dirname as _0x4da8c1,isAbsolute as _0x1bf174,join as _0x2c4418,resolve as _0x3f8134}from'path';import{parse as _0x22d8a9,stringify as _0x8dc396}from'yaml';import{cp,mkdir as _0x2618bb,readFile as _0x1c5dce,rm as _0x5d6a99,writeFile as _0x4f7c10}from'fs/promises';import{homedir}from'os';function _0x57b9de(_0x868b3,_0x3890f3,_0x54eaf0,_0x54e61d){return _0x27a7(_0x54eaf0-0x146,_0x3890f3);}import{join as _0x7226ea}from'path';import{parse as _0x4165ec,stringify as _0x107e68}from'yaml';import{z}from'zod';import{readdir as _0x4c4a93,readFile as _0x185b1b}from'fs/promises';import{join as _0x3759ee}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x73a299){const _0x35e952={_0x44b22a:0x1e9,_0x3bfac6:0xe8,_0x381594:0x329,_0x379324:0x101,_0x214806:0x1e9,_0x3849eb:0x457,_0x35d626:0x2c9,_0x5602a2:0x3dd,_0x1f6a01:0x319,_0x3f7901:0x371,_0x121162:0x27e},_0x2baebc={_0x339c70:0x36e,_0x4ecf0a:0x1ba},_0x30989f={_0x3e4285:0x12f,_0x1aef7d:0x92};function _0x1a61e9(_0x22b62d,_0x5a9127,_0x18d251,_0x5ca85c){return _0x57b9de(_0x22b62d-_0x30989f._0x3e4285,_0x5ca85c,_0x5a9127- -0x12a,_0x5ca85c-_0x30989f._0x1aef7d);}function _0x507276(_0x28f641,_0x473231,_0x3a5511,_0x37186b){return _0x57b9de(_0x28f641-0x1ba,_0x28f641,_0x3a5511- -_0x2baebc._0x339c70,_0x37186b-_0x2baebc._0x4ecf0a);}const _0x2494bd=[];let _0x2109c8='',_0x332a02=0x0;while(_0x332a02<_0x73a299[_0x507276(0x207,0x12f,_0x35e952._0x44b22a,_0x35e952._0x3bfac6)]){const _0x398295=_0x73a299[_0x332a02];if(_0x398295==='\x5c'&&_0x332a02+0x1<_0x73a299[_0x507276(_0x35e952._0x381594,_0x35e952._0x379324,_0x35e952._0x214806,0x320)])_0x2109c8+=_0x73a299[_0x332a02+0x1],_0x332a02+=0x2;else{if(_0x398295==='\x22'||_0x398295==='\x27'){const _0xc678e6=_0x398295;_0x332a02++;while(_0x332a02<_0x73a299['length']&&_0x73a299[_0x332a02]!==_0xc678e6){_0x73a299[_0x332a02]==='\x5c'&&_0x332a02+0x1<_0x73a299['length']?(_0x2109c8+=_0x73a299[_0x332a02+0x1],_0x332a02+=0x2):(_0x2109c8+=_0x73a299[_0x332a02],_0x332a02++);}_0x332a02++;}else _0x398295!==void 0x0&&/\s/['test'](_0x398295)?(_0x2109c8&&(_0x2494bd[_0x1a61e9(_0x35e952._0x3849eb,0x319,_0x35e952._0x35d626,_0x35e952._0x5602a2)](_0x2109c8),_0x2109c8=''),_0x332a02++):(_0x2109c8+=_0x398295,_0x332a02++);}}if(_0x2109c8)_0x2494bd[_0x1a61e9(0x36a,_0x35e952._0x1f6a01,_0x35e952._0x3f7901,_0x35e952._0x121162)](_0x2109c8);return _0x2494bd;}function renderCommandInstructions(_0x21f573){const _0x5a53f3={_0x1322c5:0x43,_0x1a2a02:0x17b,_0x46da99:0x112,_0xbb535c:0x3,_0x7fbe8:0xd0,_0x37afa9:0x118,_0x59c863:0x68,_0x41d69d:0xa3,_0x4ee3e7:0x4b,_0xad9823:0x147,_0x5dc170:0xa3,_0x372403:0x72,_0x5b84a0:0x148,_0x4a99bf:0x13a,_0x54e28d:0x33,_0x4d4e4a:0x2b9,_0x48a6ae:0x288,_0x7267a1:0x2f2,_0x2c9249:0x3a5,_0x3ad266:0x1d1,_0xf518e:0x1db,_0x5a9690:0x18,_0x10fd46:0x17},_0x39f955={_0x5112e4:0xe1,_0x32930e:0x41d,_0x4ff2d4:0x1b1},_0x439301={_0x3387b5:0x65,_0x3e1223:0x63},_0x293f68={_0x4d31d6:0x1fe},_0x4aca09={_0x32817d:0x14c};let _0xf6275d=_0x21f573['instructions'],_0xc5e18f=![];const _0x2e552a=tokenizeCommandArguments(_0x21f573[_0x118467(_0x5a53f3._0x1322c5,0x80,0xde,_0x5a53f3._0x1a2a02)]);_0xf6275d=_0xf6275d[_0x118467(0x30b,0x213,0x2b5,0x1fd)](/\$ARGUMENTS\[(\d+)\]/g,(_0x5bca90,_0x271f3f)=>{return _0xc5e18f=!![],_0x2e552a[Number(_0x271f3f)]??'';}),_0xf6275d=_0xf6275d[_0x6f4ac2(_0x5a53f3._0x46da99,-_0x5a53f3._0xbb535c,_0x5a53f3._0x7fbe8,_0x5a53f3._0x37afa9)](/\$ARGUMENTS\b/g,()=>{_0xc5e18f=!![];function _0x39c494(_0x534077,_0x7844b8,_0x54ca6b,_0x1f7651){return _0x118467(_0x534077,_0x7844b8-0x126,_0x1f7651-0x43,_0x1f7651-_0x4aca09._0x32817d);}return _0x21f573[_0x39c494(_0x293f68._0x4d31d6,0xb2,-0x19,0x121)];});function _0x118467(_0x2d80ae,_0x587920,_0x14d2c0,_0x4b5c4e){return _0x23b1c2(_0x2d80ae-_0x439301._0x3387b5,_0x2d80ae,_0x14d2c0- -0x18a,_0x4b5c4e-_0x439301._0x3e1223);}if(_0x21f573[_0x6f4ac2(0xec,-_0x5a53f3._0x59c863,_0x5a53f3._0x41d69d,-_0x5a53f3._0x4ee3e7)]&&_0x21f573[_0x6f4ac2(_0x5a53f3._0xad9823,0x109,_0x5a53f3._0x5dc170,_0x5a53f3._0x372403)][_0x6f4ac2(_0x5a53f3._0x5b84a0,0xc3,_0x5a53f3._0x4a99bf,_0x5a53f3._0x54e28d)]>0x0)for(let _0x52b2ec=0x0;_0x52b2ec<_0x21f573[_0x118467(0x1a8,_0x5a53f3._0x4d4e4a,_0x5a53f3._0x48a6ae,0x2d3)][_0x118467(_0x5a53f3._0x7267a1,0x1e8,0x31f,0x2d7)];_0x52b2ec++){const _0x3768db=_0x21f573['argumentNames'][_0x52b2ec];if(_0x3768db){const _0x188db1=new RegExp('\x5c$'+_0x3768db+'\x5cb','g');_0xf6275d=_0xf6275d['replace'](_0x188db1,()=>{return _0xc5e18f=!![],_0x2e552a[_0x52b2ec]??'';});}}function _0x6f4ac2(_0x2cba47,_0x2701bd,_0x396d98,_0x5d5ebe){return _0x57b9de(_0x2cba47-_0x39f955._0x5112e4,_0x5d5ebe,_0x396d98- -_0x39f955._0x32930e,_0x5d5ebe-_0x39f955._0x4ff2d4);}return _0xf6275d=_0xf6275d[_0x118467(0x198,0x3f3,0x2b5,_0x5a53f3._0x2c9249)](/\$(\d+)\b/g,(_0x5cc107,_0x1cd89d)=>{return _0xc5e18f=!![],_0x2e552a[Number(_0x1cd89d)]??'';}),!_0xc5e18f&&_0x21f573['argumentsText'][_0x6f4ac2(-_0x5a53f3._0x3ad266,-_0x5a53f3._0xf518e,-0xbc,-_0x5a53f3._0x5a9690)]()&&(_0xf6275d=_0xf6275d+'\x0a\x0aARGUMENTS:\x20'+_0x21f573[_0x118467(-_0x5a53f3._0x10fd46,0x206,0xde,0x196)]),_0xf6275d;}var chatModelAuthSchemeSchema=z[_0x57b9de(0x5e1,0x6b4,0x58e,0x5b0)]([_0x57b9de(0x26e,0x256,0x346,0x276),_0x23b1c2(0x451,0x30e,0x339,0x44e)]),apiKeyAuthSchema=z['object']({'type':z[_0x57b9de(0x590,0x365,0x4a2,0x53a)](_0x57b9de(0x2d2,0x382,0x3b0,0x4e3)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x57b9de(0x44a,0x494,0x427,0x43f)]()})[_0x57b9de(0x4f8,0x3f8,0x4e5,0x452)](),oauthAuthSchema=z[_0x23b1c2(0x2a2,0x3fb,0x3dc,0x2f9)]({'type':z['literal'](_0x23b1c2(0x495,0x53d,0x4a7,0x450)),'access':z[_0x23b1c2(0x39e,0x21d,0x285,0x2ac)](),'refresh':z[_0x57b9de(0x39f,0x3cf,0x333,0x258)](),'expires':z[_0x57b9de(0x560,0x45c,0x51d,0x624)]()[_0x23b1c2(0x416,0x2ea,0x379,0x3c1)](),'authScheme':chatModelAuthSchemeSchema['optional']()})[_0x23b1c2(0x2f5,0x404,0x437,0x57e)](),authMethodSchema=z[_0x23b1c2(0x3c8,0x4a8,0x42e,0x424)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z['object']({'id':z[_0x23b1c2(0x13d,0x37e,0x285,0x253)](),'name':z['string']()['optional']()})[_0x57b9de(0x58a,0x52b,0x4e5,0x3ec)](),modelConfigSchema=z[_0x57b9de(0x482,0x5b5,0x4dc,0x613)]([z[_0x23b1c2(0x42a,0x4de,0x3f4,0x378)](![]),z[_0x23b1c2(0x53f,0x338,0x3f4,0x4e9)](!![]),z[_0x23b1c2(0x343,0x2ff,0x285,0x3a7)](),z[_0x57b9de(0x495,0x35a,0x3d8,0x3f2)](z[_0x57b9de(0x2e3,0x370,0x333,0x24a)]()),z[_0x23b1c2(0x2d3,0x43e,0x32a,0x43d)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x23b1c2(0x4a0,0x3b1,0x4e0,0x585)]([_0x57b9de(0x3f0,0x394,0x418,0x3b3),'openai-chat-completions',_0x57b9de(0x3cf,0x3d7,0x3a3,0x4a0),_0x23b1c2(0x33e,0x343,0x455,0x582)]),providerConfigSchema=z[_0x23b1c2(0x433,0x3f3,0x3dc,0x42c)]({'apiKey':z[_0x23b1c2(0x218,0x28c,0x285,0x181)]()['optional'](),'token':z[_0x57b9de(0x258,0x39b,0x333,0x213)]()['optional'](),'defaultModel':z[_0x57b9de(0x241,0x348,0x333,0x29c)]()[_0x57b9de(0x3b8,0x44f,0x427,0x3ca)](),'smallModel':z['string']()[_0x57b9de(0x401,0x4fb,0x427,0x319)](),'currentAuth':z[_0x23b1c2(0x20a,0x2d9,0x285,0x319)]()[_0x57b9de(0x51e,0x4b7,0x427,0x2e3)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x23b1c2(0x48c,0x377,0x379,0x44e)](),'baseUrl':z['string']()['optional'](),'models':modelConfigSchema[_0x57b9de(0x42f,0x3da,0x427,0x4ab)](),'customHeaders':z[_0x23b1c2(0x524,0x312,0x40f,0x3d4)](z['string'](),z[_0x57b9de(0x462,0x421,0x333,0x203)]())[_0x23b1c2(0x3eb,0x4a1,0x379,0x4a1)]()})[_0x23b1c2(0x2e8,0x568,0x437,0x46c)](),mcpServerConfigSchema=z[_0x57b9de(0x407,0x5a1,0x48a,0x5b6)]({'command':z['string']()[_0x57b9de(0x547,0x4a3,0x427,0x419)](),'args':z[_0x57b9de(0x515,0x2e2,0x3d8,0x29d)](z['string']())['optional'](),'env':z[_0x57b9de(0x4e8,0x3bd,0x4bd,0x4cd)](z['string'](),z[_0x23b1c2(0x287,0x2c8,0x285,0x188)]())[_0x57b9de(0x564,0x3e4,0x427,0x33e)](),'transport':z[_0x23b1c2(0x581,0x555,0x4e0,0x3df)](['stdio',_0x23b1c2(0x4c1,0x535,0x450,0x360)])[_0x23b1c2(0x2b5,0x39d,0x379,0x2ca)](),'url':z[_0x57b9de(0x3ab,0x231,0x333,0x33c)]()[_0x57b9de(0x564,0x4cf,0x427,0x521)](),'headers':z[_0x57b9de(0x3a2,0x574,0x4bd,0x5b4)](z[_0x57b9de(0x1e5,0x404,0x333,0x319)](),z[_0x23b1c2(0x17b,0x322,0x285,0x1f6)]())[_0x23b1c2(0x2c5,0x39d,0x379,0x399)](),'prefix':z['string']()['optional'](),'timeoutMs':z['number']()[_0x57b9de(0x3dc,0x50b,0x427,0x2e5)](),'enabled':z[_0x23b1c2(0x351,0x53a,0x494,0x3bc)]()[_0x23b1c2(0x490,0x226,0x379,0x3a1)](),'auth':z[_0x23b1c2(0x527,0x4af,0x3dc,0x3fc)]({'type':z['enum']([_0x57b9de(0x500,0x44a,0x446,0x572),_0x57b9de(0x2ba,0x211,0x346,0x39d),_0x23b1c2(0x49d,0x5b2,0x4a7,0x499)]),'token':z['string']()['optional'](),'oauth':z[_0x57b9de(0x53d,0x481,0x48a,0x5ac)]({'clientId':z[_0x23b1c2(0x181,0x208,0x285,0x1e7)]()[_0x57b9de(0x4e8,0x574,0x427,0x3e7)](),'clientMetadataUrl':z[_0x57b9de(0x29e,0x1eb,0x333,0x2f5)]()[_0x23b1c2(0x2d9,0x410,0x379,0x49e)](),'authorizationServer':z['string']()[_0x23b1c2(0x2f0,0x377,0x379,0x3d7)](),'scopes':z[_0x57b9de(0x4c2,0x4fa,0x3d8,0x2cf)](z[_0x57b9de(0x2d5,0x36a,0x333,0x38b)]())[_0x23b1c2(0x235,0x399,0x379,0x22f)](),'tokenStorageKey':z[_0x57b9de(0x255,0x274,0x333,0x1f3)]()[_0x57b9de(0x418,0x38e,0x427,0x56b)]()})[_0x23b1c2(0x328,0x421,0x437,0x3ff)]()['optional']()})['passthrough']()['optional']()})[_0x23b1c2(0x2f0,0x3c0,0x437,0x3c0)](),mcpSettingsSchema=z[_0x57b9de(0x3ab,0x518,0x48a,0x340)]({'servers':z[_0x57b9de(0x4d2,0x5de,0x4bd,0x3e2)](z[_0x57b9de(0x2cf,0x280,0x333,0x1fd)](),mcpServerConfigSchema)['optional'](),'allowedTools':z[_0x57b9de(0x435,0x3c3,0x4bd,0x469)](z['string'](),z[_0x57b9de(0x5f6,0x460,0x4bd,0x4de)](z[_0x23b1c2(0x2ad,0x365,0x285,0x38f)](),z[_0x57b9de(0x598,0x4f1,0x542,0x655)]()))[_0x23b1c2(0x451,0x245,0x379,0x44c)](),'defaultTimeoutMs':z[_0x23b1c2(0x4e8,0x37d,0x46f,0x47f)]()['optional']()})['passthrough'](),skillsSettingsSchema=z['object']({'enabled':z['boolean']()['optional'](),'includeDefaults':z[_0x57b9de(0x46a,0x4bd,0x542,0x4af)]()['optional'](),'directories':z[_0x57b9de(0x525,0x460,0x3d8,0x2bc)](z[_0x57b9de(0x3cc,0x485,0x333,0x360)]())[_0x57b9de(0x3d4,0x3ab,0x427,0x4a1)](),'exclude':z[_0x23b1c2(0x361,0x2df,0x32a,0x1e2)](z[_0x57b9de(0x425,0x237,0x333,0x1ff)]())[_0x23b1c2(0x40a,0x35e,0x379,0x490)]()})[_0x57b9de(0x5ac,0x486,0x4e5,0x61f)](),commandsSettingsSchema=z[_0x23b1c2(0x2d8,0x347,0x3dc,0x4af)]({'enabled':z[_0x57b9de(0x454,0x3f9,0x542,0x675)]()['optional'](),'directories':z[_0x23b1c2(0x231,0x20c,0x32a,0x356)](z[_0x57b9de(0x445,0x40d,0x333,0x3f9)]())[_0x23b1c2(0x33e,0x404,0x379,0x387)]()})[_0x23b1c2(0x39b,0x4ad,0x437,0x39d)](),agentsSettingsSchema=z[_0x23b1c2(0x424,0x377,0x3dc,0x34b)]({'enabled':z['boolean']()[_0x23b1c2(0x446,0x421,0x379,0x294)](),'includeDefaults':z[_0x57b9de(0x588,0x40d,0x542,0x4e2)]()[_0x23b1c2(0x333,0x384,0x379,0x3bb)](),'directories':z[_0x23b1c2(0x25a,0x466,0x32a,0x334)](z[_0x57b9de(0x395,0x458,0x333,0x253)]())['optional']()})[_0x57b9de(0x464,0x576,0x4e5,0x5ca)](),uiThemeSettingsSchema=z['object']({'mode':z[_0x57b9de(0x576,0x48e,0x58e,0x4b8)](['auto',_0x23b1c2(0x1b6,0x274,0x2b4,0x1c6),'light'])[_0x23b1c2(0x233,0x3b6,0x379,0x43c)](),'colorLevel':z[_0x57b9de(0x54d,0x6cc,0x58e,0x567)]([_0x23b1c2(0x408,0x459,0x3d8,0x4a3),_0x23b1c2(0x2c1,0x305,0x398,0x38b),_0x57b9de(0x657,0x5f3,0x550,0x46b),_0x23b1c2(0x387,0x4b0,0x400,0x43a),_0x23b1c2(0x4c8,0x2d6,0x3eb,0x33f)])['optional'](),'backgrounds':z[_0x23b1c2(0x3ea,0x48d,0x4e0,0x4fe)](['auto','on',_0x57b9de(0x2d6,0x32d,0x33d,0x35d)])['optional'](),'messageStyle':z[_0x57b9de(0x48f,0x56e,0x58e,0x6db)](['plain','boxed'])['optional']()})[_0x23b1c2(0x475,0x492,0x437,0x53c)](),statuslineSegmentSchema=z[_0x57b9de(0x698,0x6d9,0x58e,0x596)]([_0x57b9de(0x46a,0x59d,0x4e7,0x52d),'session','thinking','sudo',_0x57b9de(0x549,0x309,0x42d,0x463),'context',_0x57b9de(0x3da,0x478,0x3f7,0x44c),_0x23b1c2(0x4ce,0x429,0x48d,0x3a8),_0x57b9de(0x421,0x39b,0x4e8,0x4c7),_0x57b9de(0x39d,0x2d3,0x3e1,0x531),_0x23b1c2(0x284,0x1c2,0x27d,0x3c1),_0x57b9de(0x41f,0x321,0x2fb,0x416),_0x57b9de(0x3f7,0x663,0x54a,0x4ae),_0x23b1c2(0x512,0x491,0x44d,0x47f),_0x23b1c2(0x36b,0x3b1,0x492,0x3eb)]),statuslineItemSchema=z[_0x23b1c2(0x45a,0x362,0x42e,0x559)]([statuslineSegmentSchema,z[_0x57b9de(0x5df,0x38a,0x4a2,0x4c9)]('|')]),statuslineRowSchema=z[_0x57b9de(0x48e,0x521,0x3d8,0x485)](statuslineItemSchema),statuslineConfigSchema=z['object']({'rows':z[_0x23b1c2(0x2ad,0x332,0x25b,0x189)]([statuslineRowSchema,statuslineRowSchema])[_0x57b9de(0x4bf,0x398,0x427,0x31c)]()})[_0x23b1c2(0x384,0x386,0x437,0x430)](),memorySettingsSchema=z[_0x57b9de(0x4f0,0x47a,0x48a,0x4ce)]({'version':z[_0x23b1c2(0x53a,0x335,0x3f4,0x399)](0x2)['optional'](),'retrieval':z['object']({'engine':z[_0x57b9de(0x4db,0x397,0x4a2,0x5de)]('bm25')[_0x23b1c2(0x357,0x363,0x379,0x477)](),'candidateLimit':z[_0x57b9de(0x3de,0x61b,0x51d,0x633)]()['optional'](),'activeCandidateLimit':z[_0x57b9de(0x41b,0x574,0x51d,0x5f8)]()[_0x57b9de(0x312,0x429,0x427,0x3d3)](),'activeEnabled':z[_0x57b9de(0x615,0x4d0,0x542,0x65a)]()[_0x23b1c2(0x262,0x3be,0x379,0x249)](),'maxQueriesPerTurn':z['number']()[_0x57b9de(0x536,0x2de,0x427,0x50d)](),'coreInjectTokenBudget':z['number']()[_0x23b1c2(0x406,0x426,0x379,0x237)](),'injectTokenBudget':z[_0x57b9de(0x41f,0x534,0x51d,0x585)]()['optional'](),'minScore':z[_0x23b1c2(0x349,0x32f,0x46f,0x38e)]()[_0x57b9de(0x3ea,0x31f,0x427,0x458)](),'freshnessHalfLifeDays':z[_0x57b9de(0x40b,0x5e3,0x51d,0x533)]()[_0x57b9de(0x4bd,0x425,0x427,0x306)]()})[_0x57b9de(0x45b,0x413,0x4e5,0x41d)]()[_0x57b9de(0x4f5,0x4dc,0x427,0x362)](),'extraction':z['object']({'enabled':z['boolean']()[_0x57b9de(0x53e,0x3c2,0x427,0x315)](),'provider':z['string']()[_0x57b9de(0x555,0x56d,0x427,0x3f1)](),'model':z['string']()[_0x23b1c2(0x4cb,0x29c,0x379,0x306)](),'sensitiveFilter':z['boolean']()[_0x57b9de(0x3f2,0x373,0x427,0x510)]()})['passthrough']()['optional'](),'index':z[_0x57b9de(0x3c3,0x39b,0x48a,0x401)]({'persisted':z[_0x23b1c2(0x554,0x41a,0x494,0x42a)]()['optional'](),'flushIntervalMs':z[_0x57b9de(0x515,0x648,0x51d,0x63b)]()[_0x57b9de(0x378,0x366,0x427,0x4e5)]()})[_0x23b1c2(0x3b9,0x498,0x437,0x3dc)]()[_0x57b9de(0x576,0x4b9,0x427,0x430)](),'enabled':z[_0x23b1c2(0x5e0,0x43d,0x494,0x409)]()[_0x57b9de(0x4c5,0x40e,0x427,0x518)](),'saveTool':z[_0x57b9de(0x48d,0x5bf,0x542,0x40e)]()[_0x57b9de(0x48f,0x425,0x427,0x497)](),'model':z['string']()[_0x23b1c2(0x32b,0x302,0x379,0x3b8)](),'provider':z[_0x57b9de(0x3ec,0x218,0x333,0x415)]()[_0x57b9de(0x31e,0x4ad,0x427,0x52d)](),'maxInjectionTokens':z['number']()['optional'](),'backgroundExtraction':z[_0x23b1c2(0x459,0x369,0x494,0x533)]()[_0x23b1c2(0x40c,0x321,0x379,0x431)]()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x23b1c2(0x2e4,0x1cc,0x285,0x3bc)](),'model':z[_0x23b1c2(0x235,0x328,0x285,0x147)](),'usedAt':z['number']()})[_0x57b9de(0x50b,0x45f,0x4e5,0x534)](),lspServerEntrySchema=z[_0x57b9de(0x5b8,0x3d4,0x48a,0x503)]({'disabled':z['boolean']()[_0x23b1c2(0x397,0x396,0x379,0x3b2)](),'command':z[_0x23b1c2(0x1bd,0x3d7,0x285,0x2a5)]()[_0x23b1c2(0x4c6,0x330,0x379,0x43e)](),'args':z[_0x23b1c2(0x2b4,0x2f9,0x32a,0x37b)](z[_0x23b1c2(0x23b,0x161,0x285,0x1ab)]())[_0x57b9de(0x2f3,0x468,0x427,0x445)](),'rootMarkers':z[_0x23b1c2(0x24b,0x472,0x32a,0x2ed)](z[_0x57b9de(0x421,0x277,0x333,0x239)]())['optional']()})[_0x57b9de(0x441,0x489,0x4e5,0x412)](),lspConfigSchema=z[_0x57b9de(0x449,0x364,0x48a,0x3b1)]({'enabled':z['boolean']()[_0x23b1c2(0x473,0x4c7,0x379,0x392)](),'servers':z[_0x23b1c2(0x39d,0x3b5,0x40f,0x384)](z[_0x23b1c2(0x1b6,0x285,0x285,0x3d1)](),lspServerEntrySchema)[_0x23b1c2(0x3fb,0x437,0x379,0x44f)]()})[_0x23b1c2(0x356,0x4c2,0x437,0x32f)](),serverEndpointSchema=z['object']({'url':z[_0x23b1c2(0x36f,0x159,0x285,0x261)](),'token':z[_0x23b1c2(0x3d1,0x33c,0x285,0x3be)]()['optional']()})[_0x57b9de(0x5a5,0x43a,0x4e5,0x45e)](),commandHookConfigSchema=z[_0x57b9de(0x558,0x379,0x48a,0x426)]({'type':z[_0x57b9de(0x5a8,0x571,0x4a2,0x3b9)](_0x23b1c2(0x332,0x428,0x405,0x3ee)),'command':z[_0x57b9de(0x47b,0x376,0x333,0x21d)](),'timeout':z['number']()[_0x57b9de(0x554,0x4af,0x427,0x535)]()}),hookMatcherGroupSchema=z[_0x57b9de(0x466,0x5d4,0x48a,0x50a)]({'matcher':z['string']()[_0x57b9de(0x3f5,0x40c,0x427,0x4c0)](),'hooks':z[_0x57b9de(0x4fc,0x4bf,0x3d8,0x3fa)](commandHookConfigSchema)}),hooksConfigSchema=z[_0x57b9de(0x503,0x4a2,0x48a,0x5b8)]({'PreToolUse':z[_0x57b9de(0x479,0x4f6,0x3d8,0x52b)](hookMatcherGroupSchema)[_0x23b1c2(0x46e,0x40e,0x379,0x379)](),'PostToolUse':z[_0x57b9de(0x333,0x4d6,0x3d8,0x355)](hookMatcherGroupSchema)[_0x23b1c2(0x340,0x2ec,0x379,0x37d)](),'UserPromptSubmit':z[_0x23b1c2(0x2b9,0x389,0x32a,0x360)](hookMatcherGroupSchema)[_0x23b1c2(0x3c2,0x312,0x379,0x2d6)](),'Stop':z[_0x23b1c2(0x2e6,0x1dd,0x32a,0x37b)](hookMatcherGroupSchema)[_0x23b1c2(0x393,0x3ee,0x379,0x3a9)](),'Notification':z[_0x23b1c2(0x1e6,0x245,0x32a,0x38e)](hookMatcherGroupSchema)[_0x23b1c2(0x27e,0x358,0x379,0x44b)](),'SessionStart':z[_0x57b9de(0x28d,0x38c,0x3d8,0x35e)](hookMatcherGroupSchema)['optional'](),'SessionEnd':z['array'](hookMatcherGroupSchema)[_0x57b9de(0x502,0x468,0x427,0x51e)]()}),cliConfigSchema=z[_0x23b1c2(0x495,0x28a,0x3dc,0x371)]({'activeProvider':z['string']()[_0x57b9de(0x2ec,0x3b9,0x427,0x564)](),'activeModel':z['string']()[_0x23b1c2(0x45b,0x2a0,0x379,0x4cb)](),'apiKey':z[_0x23b1c2(0x13c,0x35a,0x285,0x199)]()[_0x57b9de(0x4c5,0x3b8,0x427,0x32f)](),'providers':z[_0x57b9de(0x48f,0x3ce,0x4bd,0x5b6)](z[_0x23b1c2(0x39f,0x3c9,0x285,0x2b9)](),providerConfigSchema)[_0x23b1c2(0x471,0x289,0x379,0x30a)](),'mcp':mcpSettingsSchema[_0x23b1c2(0x312,0x3f3,0x379,0x346)](),'skills':skillsSettingsSchema[_0x57b9de(0x388,0x56a,0x427,0x3a3)](),'agents':agentsSettingsSchema[_0x23b1c2(0x40f,0x253,0x379,0x436)](),'commands':commandsSettingsSchema[_0x57b9de(0x30b,0x52f,0x427,0x304)](),'skillsEnabled':z['record'](z[_0x23b1c2(0x27c,0x2d5,0x285,0x15a)](),z[_0x23b1c2(0x3b4,0x480,0x494,0x42d)]())[_0x57b9de(0x332,0x35a,0x427,0x2df)](),'memory':memorySettingsSchema[_0x23b1c2(0x4a0,0x45a,0x379,0x310)](),'session':z[_0x23b1c2(0x453,0x31e,0x3dc,0x2e2)]({'memPersist':z['boolean']()[_0x57b9de(0x50c,0x403,0x427,0x357)](),'persistEventLog':z['boolean']()[_0x57b9de(0x551,0x547,0x427,0x4a4)](),'persistHttpLog':z[_0x57b9de(0x495,0x464,0x542,0x595)]()[_0x57b9de(0x35f,0x434,0x427,0x35e)]()})['passthrough']()[_0x57b9de(0x47e,0x4d1,0x427,0x39a)](),'requireToolApproval':z[_0x23b1c2(0x50e,0x34f,0x494,0x43a)]()[_0x23b1c2(0x28f,0x22e,0x379,0x2ec)](),'thinking':z[_0x57b9de(0x559,0x5ae,0x58e,0x6b7)]([_0x23b1c2(0x33c,0x1d1,0x2f6,0x3e2),_0x23b1c2(0x2cb,0x502,0x410,0x367),_0x23b1c2(0x401,0x402,0x2d1,0x39a),'HIGH'])[_0x23b1c2(0x4a1,0x3df,0x379,0x3f6)](),'streamingChunks':z[_0x57b9de(0x420,0x508,0x542,0x525)]()[_0x57b9de(0x53c,0x3f0,0x427,0x3f9)](),'agentsEnabled':z[_0x57b9de(0x501,0x5f9,0x4bd,0x560)](z['string'](),z['boolean']())[_0x57b9de(0x459,0x341,0x427,0x452)](),'recentModels':z[_0x57b9de(0x335,0x313,0x3d8,0x2f2)](recentModelSchema)['optional'](),'lsp':lspConfigSchema[_0x23b1c2(0x44e,0x451,0x379,0x2f5)](),'servers':z[_0x23b1c2(0x491,0x48d,0x40f,0x466)](z[_0x57b9de(0x435,0x278,0x333,0x39c)](),serverEndpointSchema)[_0x57b9de(0x4e8,0x4c4,0x427,0x46b)](),'ui':z[_0x23b1c2(0x430,0x2e9,0x3dc,0x4e4)]({'theme':uiThemeSettingsSchema['optional'](),'statusline':statuslineConfigSchema[_0x23b1c2(0x407,0x3b5,0x379,0x312)]()})[_0x23b1c2(0x402,0x457,0x437,0x377)]()['optional'](),'tools':z[_0x57b9de(0x55c,0x5f6,0x4bd,0x4fd)](z[_0x23b1c2(0x2df,0x2c8,0x285,0x3ae)](),z[_0x57b9de(0x4a1,0x57e,0x4dd,0x3b4)]())['optional'](),'hooks':hooksConfigSchema[_0x23b1c2(0x3e0,0x302,0x379,0x300)]()})[_0x57b9de(0x48a,0x448,0x4e5,0x3c7)]();function buildDescription(_0x52d0b4){const _0x1dc9a5={_0x117216:0xbe,_0x386085:0x16b,_0x3b3fed:0xa4,_0x5c5264:0x59,_0x3b1011:0x3,_0x2c849a:0x46,_0x1aec39:0x20,_0xa5966f:0xc3,_0x3b96f7:0x42,_0xb83396:0x17d,_0x4f8bee:0x3a,_0x391e8d:0x25e,_0x418de9:0x134,_0x2fe92a:0x5e,_0x280cb2:0x9b,_0x5bbcf4:0xc4,_0x4f3276:0x1e2,_0x5d667a:0x349,_0x17ad35:0x234,_0x339a26:0x1d4,_0x36ca97:0xcd,_0x547750:0x27d},_0x43ccef={_0x1a0ede:0x252},_0x117c2f={_0x3facb8:0x108};if(_0x52d0b4[_0x4bbcc6(0x3b,0x158,_0x1dc9a5._0x117216,_0x1dc9a5._0x386085)]===0x0)return[_0x4bbcc6(-0xe8,-_0x1dc9a5._0x3b3fed,-0x135,-0x1c0),_0x5aecf0(_0x1dc9a5._0x5c5264,0xcb,-_0x1dc9a5._0x3b1011,_0x1dc9a5._0x2c849a),_0x5aecf0(-0x10,_0x1dc9a5._0x1aec39,-_0x1dc9a5._0xa5966f,-_0x1dc9a5._0x3b96f7)][_0x4bbcc6(-_0x1dc9a5._0xb83396,-_0x1dc9a5._0x4f8bee,-_0x1dc9a5._0x391e8d,-0x1f9)]('\x0a');const _0x41dc55=[_0x5aecf0(0x99,_0x1dc9a5._0x418de9,_0x1dc9a5._0x2fe92a,_0x1dc9a5._0x117216),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x5aecf0(-0xb8,_0x1dc9a5._0x280cb2,_0x1dc9a5._0x5bbcf4,_0x1dc9a5._0x4f3276),..._0x52d0b4[_0x5aecf0(_0x1dc9a5._0x5d667a,_0x1dc9a5._0x17ad35,0x1db,_0x1dc9a5._0x339a26)](_0x3b0c22=>_0x3b0c22[_0x5aecf0(0x152,0x1ee,0x338,0x17d)]?'-\x20'+_0x3b0c22['name']+'\x20'+_0x3b0c22[_0x5aecf0(0x10a,0x1ee,0x334,0x1e4)]+':\x20'+_0x3b0c22[_0x4bbcc6(-0xb,0x4f,0x70,0x1b)]:'-\x20'+_0x3b0c22[_0x5aecf0(0x11,0x113,0xac,0x13c)]+':\x20'+_0x3b0c22[_0x5aecf0(0x345,0x211,0x2ae,0xfd)])];function _0x4bbcc6(_0x12b711,_0x51527f,_0x2a7066,_0x308b94){return _0x23b1c2(_0x12b711-0x12d,_0x51527f,_0x12b711- -0x46e,_0x308b94-_0x117c2f._0x3facb8);}function _0x5aecf0(_0x2416a5,_0xc32ab2,_0x1fa43e,_0x54c948){return _0x23b1c2(_0x2416a5-0x17c,_0x54c948,_0xc32ab2- -_0x43ccef._0x1a0ede,_0x54c948-0x14a);}return _0x41dc55[_0x4bbcc6(-0x17d,-0x11f,-_0x1dc9a5._0x36ca97,-_0x1dc9a5._0x547750)]('\x0a');}function createInvokeCommandTool(_0x270aa7){const _0x81b73={_0x3eda35:0x1e9,_0x1a2d1d:0xd6,_0x5b2f38:0xf5,_0x39c731:0x121,_0x2fa5d4:0xc0,_0x2b6e32:0x102,_0x525a5a:0xb5,_0x1c49c4:0x13c},_0x59c1ad={_0x574bfd:0x1a7,_0x34f1d8:0xc2,_0x29e36f:0x1f8,_0x46ed70:0x100,_0x3ab26f:0x178,_0x3ed8f5:0x42,_0x2ae696:0x38,_0xcb1cb3:0x277,_0x4647e4:0x3c9,_0x2f824f:0x398,_0x2334d3:0x3a9,_0x4300e0:0x251,_0x1f364f:0x379,_0x15ecbc:0x223,_0x1a4925:0x2c4,_0x4494fd:0x29a},_0x5aa269={_0x3f8b18:0x1bb},_0x33daf2={_0x34bc00:0x17b,_0x127841:0x135},_0x583ad9={_0x1c3a72:0x36d,_0xadfa15:0xb0};function _0x251a37(_0x113cd6,_0x17a967,_0x25826b,_0x58a5c5){return _0x23b1c2(_0x113cd6-0x1b2,_0x113cd6,_0x58a5c5- -_0x583ad9._0x1c3a72,_0x58a5c5-_0x583ad9._0xadfa15);}const _0x56ac0a=new Map(_0x270aa7[_0x4ebde9(0xfb,0x30,0x1bc,0x21b)]['map'](_0x28b31=>[_0x28b31['id'],_0x28b31]));function _0x4ebde9(_0x61b33f,_0x3360de,_0x3ca347,_0x5bc5a0){return _0x57b9de(_0x61b33f-0x1a9,_0x3ca347,_0x61b33f- -0x3c8,_0x5bc5a0-0x19d);}const _0x114178=buildDescription(_0x270aa7[_0x251a37(0x18b,0x46,_0x81b73._0x3eda35,0xa8)]);return defineTool({'name':_0x251a37(_0x81b73._0x1a2d1d,0xb,_0x81b73._0x5b2f38,_0x81b73._0x39c731),'description':_0x114178,'inputSchema':{'type':_0x251a37(-_0x81b73._0x2fa5d4,0xa1,0xae,0x6f),'properties':{'name':{'type':_0x251a37(0x27,-0x12c,-_0x81b73._0x2b6e32,-0xe8)},'args':{'type':_0x251a37(-0x235,-_0x81b73._0x525a5a,-_0x81b73._0x1c49c4,-0xe8)}},'required':[_0x251a37(-0x62,-0x14a,0xe1,-0x8)]},async *'execute'(_0xae8b66){const _0x34dbeb=_0x56ac0a[_0x22c189(0x2e0,0x2d3,0x1ca,0x18d)](_0xae8b66[_0x22c189(0x1d7,_0x59c1ad._0x574bfd,_0x59c1ad._0x34f1d8,0x206)]);function _0x1b6569(_0x110c8f,_0x13bb1e,_0x32a513,_0x4965d1){return _0x251a37(_0x110c8f,_0x13bb1e-_0x33daf2._0x34bc00,_0x32a513-_0x33daf2._0x127841,_0x4965d1- -0xcc);}if(!_0x34dbeb){const _0x406a54=Array[_0x22c189(0x162,0x137,0x1d9,0x1c8)](_0x56ac0a[_0x1b6569(-0x1af,-_0x59c1ad._0x29e36f,-0xa3,-0xb9)]())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0xae8b66['name']+_0x1b6569(-0x1a2,-_0x59c1ad._0x46ed70,-_0x59c1ad._0x3ab26f,-0x13f)+_0x406a54,{'name':_0xae8b66[_0x1b6569(-_0x59c1ad._0x3ed8f5,-_0x59c1ad._0x2ae696,-_0x59c1ad._0x46ed70,-0xd4)]});}const _0x34bba0=await _0x270aa7['loadCommand'](_0x34dbeb),_0x247860=_0xae8b66[_0x22c189(0xf3,0xe5,_0x59c1ad._0xcb1cb3,0x13e)]??'',_0x3e5337=renderCommandInstructions({'instructions':_0x34bba0[_0x22c189(_0x59c1ad._0x4647e4,_0x59c1ad._0x2f824f,_0x59c1ad._0x2334d3,0x315)],'argumentsText':_0x247860,'argumentNames':_0x34bba0[_0x1b6569(-0x288,-0x2b2,-0x235,-0x19e)]});yield createToolOutput(_0x3e5337,{'id':_0x34bba0['id'],'name':_0x34bba0[_0x22c189(_0x59c1ad._0x4300e0,0x275,0x291,0x206)],'path':_0x34dbeb[_0x22c189(0x30e,0x2a9,_0x59c1ad._0x1f364f,0x326)][_0x22c189(_0x59c1ad._0x15ecbc,_0x59c1ad._0x1a4925,_0x59c1ad._0x4494fd,0x31e)]});function _0x22c189(_0x4cedb3,_0x1337c9,_0x392a3f,_0x567ee3){return _0x4ebde9(_0x567ee3-_0x5aa269._0x3f8b18,_0x1337c9-0x5b,_0x1337c9,_0x567ee3-0x52);}return void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x163211,rename as _0x4e0a21,stat as _0x4e49fb,writeFile as _0xf2b371}from'fs/promises';import*as _0x4425ad from'path';function detectEol(_0x4ce07f){const _0x130c70={_0x2900f9:0x38d,_0x1483bc:0x1df,_0x2886c0:0x21c,_0x4c4d04:0x371,_0x38e03d:0x173,_0x5687f4:0x296};function _0x1d9b0f(_0x5baad2,_0xd869a4,_0x45468c,_0x159890){return _0x23b1c2(_0x5baad2-0x15f,_0xd869a4,_0x45468c- -0x143,_0x159890-0x148);}function _0x3e0f54(_0x586410,_0x4907d7,_0x4afdb2,_0x470edf){return _0x23b1c2(_0x586410-0x18f,_0x4afdb2,_0x470edf- -0x146,_0x470edf-0x1b6);}return/\r\n/[_0x3e0f54(0x1eb,0x364,0x369,0x2de)](_0x4ce07f[_0x3e0f54(0x3d9,_0x130c70._0x2900f9,_0x130c70._0x1483bc,0x2fc)](_0x1d9b0f(_0x130c70._0x2886c0,_0x130c70._0x4c4d04,0x2c5,_0x130c70._0x38e03d)))?_0x3e0f54(_0x130c70._0x5687f4,0x34d,0x38b,0x390):'lf';}function normalizeToLf(_0x1ec672){const _0x5e2b95={_0x2f96da:0x1d2,_0x2eee18:0x60},_0x5c55be={_0x3f96f1:0x1b4,_0x9eb6f4:0x50};function _0x4d04f5(_0x336e74,_0x197ffe,_0x5bea9e,_0x310c08){return _0x57b9de(_0x336e74-_0x5c55be._0x3f96f1,_0x336e74,_0x5bea9e- -0x434,_0x310c08-_0x5c55be._0x9eb6f4);}return _0x1ec672[_0x4d04f5(_0x5e2b95._0x2f96da,0x74,0xb9,-_0x5e2b95._0x2eee18)](/\r\n/g,'\x0a');}function convertEol(_0x64e79e,_0x1d21be){const _0xe0c9c1={_0x4ec55a:0x556,_0x49d9f:0x38e,_0x38ba33:0x4b5,_0x3d33ac:0x443},_0x5ebe6f={_0x168c1c:0x168,_0x493c92:0x38,_0x3b53f8:0x195};function _0x524471(_0x4ab2fc,_0x44ecf8,_0x4eca84,_0x353231){return _0x57b9de(_0x4ab2fc-_0x5ebe6f._0x168c1c,_0x353231,_0x4eca84- -_0x5ebe6f._0x493c92,_0x353231-_0x5ebe6f._0x3b53f8);}return _0x1d21be==='crlf'?_0x64e79e[_0x524471(_0xe0c9c1._0x4ec55a,_0xe0c9c1._0x49d9f,_0xe0c9c1._0x38ba33,_0xe0c9c1._0x3d33ac)](/\n/g,'\x0d\x0a'):_0x64e79e;}async function atomicWrite(_0x533d6e,_0x53a5b9){const _0x2c547f={_0x448b90:0x18d,_0x16f1dc:0x219,_0x1f36de:0xfa,_0x7ee874:0xc4,_0x717583:0xb1,_0x445c6d:0x157,_0x4e41f2:0x6,_0x1aed34:0xee,_0x57464d:0x274,_0x410fd7:0x31a},_0x1fd000={_0x243137:0x2dd},_0x19641b={_0x1e69a8:0xcb,_0xe5cc3b:0x1f7};function _0x102be5(_0x308d08,_0x485cbf,_0x2495b5,_0x107458){return _0x23b1c2(_0x308d08-_0x19641b._0x1e69a8,_0x2495b5,_0x485cbf- -_0x19641b._0xe5cc3b,_0x107458-0xe0);}const _0x14dc27=_0x4425ad[_0x4447be(_0x2c547f._0x448b90,_0x2c547f._0x16f1dc,0x13e,0x1ef)](_0x533d6e);function _0x4447be(_0x22acfc,_0x5203cf,_0x2707b4,_0x30225e){return _0x57b9de(_0x22acfc-0x1b7,_0x5203cf,_0x22acfc- -_0x1fd000._0x243137,_0x30225e-0x1b4);}const _0x46d1d3=_0x4425ad[_0x102be5(0x1b9,_0x2c547f._0x1f36de,0x6d,0x1f)](_0x14dc27,_0x102be5(_0x2c547f._0x7ee874,0xc4,-0x3,0x7e)+_0x4425ad[_0x4447be(0x71,_0x2c547f._0x717583,0x199,_0x2c547f._0x445c6d)](_0x533d6e)+'.'+Date[_0x102be5(0x2,0x121,_0x2c547f._0x4e41f2,_0x2c547f._0x1aed34)]()+'.'+Math[_0x102be5(_0x2c547f._0x57464d,0x151,0x55,0x24c)]()[_0x102be5(0x31f,0x24b,_0x2c547f._0x410fd7,0x12f)](0x24)['slice'](0x2));await _0xf2b371(_0x46d1d3,_0x53a5b9),await _0x4e0a21(_0x46d1d3,_0x533d6e);}function sha256(_0x400e65){const _0x5d4ca9={_0x32a783:0x394,_0x217a53:0x361,_0x210a06:0x4c5,_0xef6b2d:0x3e6,_0x412868:0x4bc,_0x24d677:0x1ee},_0xee6e54={_0xdd149c:0xc8},_0x26027c={_0x462721:0x506,_0x1c458a:0x4c};function _0x1b730d(_0x48b80b,_0x129b0b,_0x2a0c1a,_0x4bb69c){return _0x57b9de(_0x48b80b-0x18c,_0x129b0b,_0x48b80b- -_0x26027c._0x462721,_0x4bb69c-_0x26027c._0x1c458a);}function _0x3bb214(_0x559329,_0x3c13d4,_0x16ae15,_0x53c644){return _0x23b1c2(_0x559329-_0xee6e54._0xdd149c,_0x16ae15,_0x559329-0x30,_0x53c644-0x17b);}return createHash(_0x3bb214(_0x5d4ca9._0x32a783,_0x5d4ca9._0x217a53,_0x5d4ca9._0x210a06,_0x5d4ca9._0xef6b2d))[_0x3bb214(_0x5d4ca9._0x412868,0x39e,0x446,0x421)](_0x400e65)[_0x1b730d(-_0x5d4ca9._0x24d677,-0x244,-0xa4,-0x29a)]('hex');}function countLines(_0x3b861d){const _0x223d2f={_0x5be42e:0x387,_0xba6ae9:0x154,_0x4061a5:0x1ec,_0x478cdf:0x45f,_0x42a49b:0x584},_0x84e558={_0x1cb639:0xac};function _0x215bd9(_0x542c19,_0x30da18,_0x656fea,_0x2711fa){return _0x57b9de(_0x542c19-0x35,_0x30da18,_0x542c19- -_0x84e558._0x1cb639,_0x2711fa-0x50);}const _0x27f352=_0x3b861d['replace'](/\n$/,'');function _0x576c71(_0x20f592,_0x484e6f,_0x5528a9,_0x48e5a7){return _0x57b9de(_0x20f592-0x156,_0x5528a9,_0x484e6f- -0x30a,_0x48e5a7-0x1c6);}return _0x27f352[_0x576c71(_0x223d2f._0x5be42e,0x24d,_0x223d2f._0xba6ae9,_0x223d2f._0x4061a5)]===0x0?0x0:_0x27f352['split']('\x0a')[_0x215bd9(0x4ab,_0x223d2f._0x478cdf,_0x223d2f._0x42a49b,0x5f7)];}function calculateLineNumbers(_0x4f00bd,_0x5d1d69,_0x5c1f20,_0x8593fa){const _0x51baad={_0x20143b:0x4c1,_0x3a944c:0x500,_0x5b11c8:0x5e3,_0x2a42d7:0x50e,_0x4d8146:0x55b},_0x4f1018={_0x34f4c7:0x13a,_0x2f9d0b:0x164},_0x279010={_0x32f0e6:0x1b0,_0x132c23:0x6e,_0x49aa04:0xe2},_0x14d776=_0x4f00bd['slice'](0x0,_0x8593fa)[_0x27090a(0x588,0x58c,_0x51baad._0x20143b,_0x51baad._0x3a944c)]('\x0a')[_0x1d40f8(_0x51baad._0x5b11c8,0x632,_0x51baad._0x2a42d7,_0x51baad._0x4d8146)];function _0x27090a(_0x11c922,_0x4080ca,_0x34ba8e,_0x3e1de9){return _0x57b9de(_0x11c922-_0x279010._0x32f0e6,_0x4080ca,_0x11c922-_0x279010._0x132c23,_0x3e1de9-_0x279010._0x49aa04);}const _0x263cfb=countLines(_0x5d1d69);function _0x1d40f8(_0x1c55dc,_0x212fcd,_0x423441,_0x2ed640){return _0x23b1c2(_0x1c55dc-0x1df,_0x212fcd,_0x1c55dc-_0x4f1018._0x34f4c7,_0x2ed640-_0x4f1018._0x2f9d0b);}const _0x449348=countLines(_0x5c1f20);return{'oldStartLine':_0x14d776,'oldEndLine':_0x14d776+_0x263cfb-0x1,'newStartLine':_0x14d776,'newEndLine':_0x14d776+_0x449348-0x1,'oldLineCount':_0x263cfb,'newLineCount':_0x449348};}function createFileEditTool(_0x4876d0={}){const _0x22fbe0={_0x568aae:0x234,_0x2b33bf:0x113,_0x147e0c:0x163,_0x8fb36e:0x2c1,_0x3bb004:0x186,_0x3d11e:0x170,_0x5b2ba6:0x18e,_0xfafbde:0x276,_0x5254bc:0x1c9,_0x5b1361:0x3bf,_0x4dd1c0:0xa0,_0x3c963c:0x278,_0x511380:0x31b,_0x1a4b05:0x308,_0x295d20:0x280,_0x4abe99:0x22d,_0x415f7b:0x14e,_0x399d56:0x54,_0x42bac5:0x7d,_0x290521:0x220,_0x3d83b7:0x2ac,_0x283e07:0xfa,_0x56c894:0x103,_0x4d60c8:0x149,_0x5d8fb1:0x183,_0xe05615:0x31e,_0x48b7de:0x23f},_0xc23d22={_0x20fb14:0x375,_0x45cd3f:0x364,_0x4c6f2e:0x42e,_0x11a4d2:0x128,_0x5198d4:0x25d,_0x4e84ef:0x289,_0x2dfe89:0x39a,_0x348c07:0x4cc,_0x43e5ec:0x125,_0x5dae98:0x41c,_0x56a1a1:0xd,_0x179dfd:0x18f,_0x4bc14f:0x25c,_0x36c646:0x298,_0x32e608:0x42,_0x3f38d9:0x314,_0x59b33a:0x388,_0x1a7bf5:0x3bb,_0x4f611c:0x78,_0x43338f:0x130,_0x19eb75:0xb4,_0x2c1523:0x2a9,_0x40a728:0x3e1,_0x3fa16f:0x3ae,_0x62bc6:0xee,_0x446090:0x1a1,_0x4ae030:0x1ef,_0x1bda5a:0x21c,_0x269d01:0x93,_0x398748:0x17d,_0x29e06f:0x2d,_0x1737ec:0x52,_0x29483b:0x76,_0x5dc059:0xd6,_0x130cd6:0x19,_0x2023e7:0xa4,_0x511ac7:0x1,_0x440c1d:0x112,_0x3f89a4:0x409,_0x4b9775:0x477,_0x203fcf:0xc,_0x522a01:0xec,_0xf9ac4c:0x1e5,_0x2754bd:0x42b,_0x4b2e86:0x3be},_0x46dff2={_0x212aae:0xe0,_0x159a36:0x16b},_0x3d41b0={_0x370e3e:0xdc},_0x3def94={_0x35f0d0:0x11f,_0x3bf39d:0x4fe};function _0x19a0e1(_0x244dd5,_0x1f0996,_0x5742a0,_0x1a1937){return _0x57b9de(_0x244dd5-_0x3def94._0x35f0d0,_0x244dd5,_0x1f0996- -_0x3def94._0x3bf39d,_0x1a1937-0x92);}function _0x292d41(_0x347a45,_0x55384f,_0x3a79ef,_0x4a9763){return _0x23b1c2(_0x347a45-_0x3d41b0._0x370e3e,_0x347a45,_0x4a9763- -0x1af,_0x4a9763-0x108);}const _0xaea15a=_0x4425ad[_0x19a0e1(-_0x22fbe0._0x568aae,-_0x22fbe0._0x2b33bf,-0x1dc,-_0x22fbe0._0x147e0c)](_0x4876d0[_0x292d41(0x18b,_0x22fbe0._0x8fb36e,0xf1,_0x22fbe0._0x3bb004)]??process['cwd']()),_0x2d66ae=(_0x4876d0[_0x292d41(0x3b5,_0x22fbe0._0x3d11e,_0x22fbe0._0x5b2ba6,_0x22fbe0._0xfafbde)]??[])[_0x292d41(0x422,_0x22fbe0._0x5254bc,_0x22fbe0._0x5b1361,0x2d7)](_0x564a21=>_0x4425ad[_0x19a0e1(-0x163,-0x113,-0x125,0xc)](_0x564a21)),_0x4c3574=_0x4876d0[_0x292d41(0x290,0x302,0x81,0x1b6)]??_0x19a0e1(-_0x22fbe0._0x4dd1c0,-0x1ab,-0x227,-0x211);return defineTool({'name':_0x4c3574,'description':_0x292d41(0x22e,_0x22fbe0._0x3c963c,_0x22fbe0._0x511380,_0x22fbe0._0x1a4b05),'inputSchema':{'type':_0x292d41(0x342,0x21e,_0x22fbe0._0x295d20,_0x22fbe0._0x4abe99),'properties':{'filePath':{'type':_0x292d41(_0x22fbe0._0x415f7b,_0x22fbe0._0x399d56,0x131,0xd6)},'oldText':{'type':_0x19a0e1(-0x10b,-0x1cb,-0x2f5,-_0x22fbe0._0x42bac5)},'newText':{'type':_0x19a0e1(-_0x22fbe0._0x290521,-0x1cb,-0xfc,-_0x22fbe0._0x3d83b7)},'dryRun':{'type':_0x19a0e1(-_0x22fbe0._0x283e07,0x44,-_0x22fbe0._0x56c894,_0x22fbe0._0x4d60c8)}},'required':[_0x292d41(0x383,0x2f1,0x150,0x244),_0x19a0e1(-0x161,-0x118,-_0x22fbe0._0x5d8fb1,-0x160),_0x292d41(_0x22fbe0._0xe05615,_0x22fbe0._0x48b7de,0x16c,0x272)]},async *'execute'(_0x53c761){function _0x442ab0(_0x495193,_0x167e08,_0x3179d3,_0x1c527c){return _0x19a0e1(_0x3179d3,_0x495193-0x3d2,_0x3179d3-0x1c6,_0x1c527c-0x2b);}const _0x3e3938=resolveAllowedPath(_0xaea15a,_0x2d66ae,_0x53c761[_0x442ab0(_0xc23d22._0x20fb14,0x4b0,_0xc23d22._0x45cd3f,_0xc23d22._0x4c6f2e)]);await assertWorkspaceFile(_0x3e3938);const _0x49160d=await _0x4e49fb(_0x3e3938),_0x430960=await _0x163211(_0x3e3938);function _0x5e1c5b(_0x225289,_0x530482,_0x56be59,_0x105b9a){return _0x292d41(_0x530482,_0x530482-0x79,_0x56be59-_0x46dff2._0x212aae,_0x225289- -_0x46dff2._0x159a36);}const _0x286900=detectEol(_0x430960),_0x592e17=normalizeToLf(_0x430960[_0x5e1c5b(_0xc23d22._0x11a4d2,_0xc23d22._0x5198d4,-0x1a,0xc5)](_0x442ab0(0x38a,_0xc23d22._0x4e84ef,_0xc23d22._0x2dfe89,_0xc23d22._0x348c07))),_0x2ddcec=normalizeToLf(_0x53c761[_0x5e1c5b(0x1e,0x157,_0xc23d22._0x43e5ec,-0xbf)]),_0x2acde2=normalizeToLf(_0x53c761[_0x442ab0(0x3a3,0x2ed,0x443,_0xc23d22._0x5dae98)]),_0x20d999=_0x592e17['indexOf'](_0x2ddcec);if(_0x20d999===-0x1){const _0x37343e=_0x2ddcec['slice'](0x0,0x64)[_0x5e1c5b(0x125,0x71,-_0xc23d22._0x56a1a1,0x11)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x37343e+(_0x2ddcec[_0x5e1c5b(_0xc23d22._0x179dfd,_0xc23d22._0x4bc14f,0x1bd,_0xc23d22._0x36c646)]>0x64?'...':'')+'\x22',{'filePath':_0x53c761[_0x5e1c5b(0xd9,-0x45,0x138,_0xc23d22._0x32e608)]});}const _0x3d1ae0=_0x592e17[_0x442ab0(_0xc23d22._0x3f38d9,_0xc23d22._0x59b33a,0x2f6,_0xc23d22._0x1a7bf5)](0x0,_0x20d999)+_0x2acde2+_0x592e17[_0x5e1c5b(_0xc23d22._0x4f611c,_0xc23d22._0x43338f,-0xad,0x25)](_0x20d999+_0x2ddcec[_0x5e1c5b(_0xc23d22._0x179dfd,0xe5,0x1df,_0xc23d22._0x19eb75)]),_0x248c9f=convertEol(_0x3d1ae0,_0x286900),_0x4cb6b8=Buffer[_0x442ab0(_0xc23d22._0x2c1523,_0xc23d22._0x40a728,_0xc23d22._0x3fa16f,0x164)](_0x248c9f,_0x5e1c5b(_0xc23d22._0x62bc6,0x15f,_0xc23d22._0x446090,_0xc23d22._0x4ae030)),_0x3275b5=sha256(_0x430960),_0x41f06e=sha256(_0x4cb6b8),_0x3e75c7=_0x3275b5===_0x41f06e,_0x233db8=_0x53c761[_0x442ab0(0x24d,0x313,_0xc23d22._0x1bda5a,0x12e)]??![];return!_0x233db8&&!_0x3e75c7&&await atomicWrite(_0x3e3938,_0x4cb6b8),yield createToolOutput(_0x3e75c7?_0x5e1c5b(-_0xc23d22._0x269d01,-_0xc23d22._0x398748,_0xc23d22._0x29e06f,0x35):_0x233db8?'Validated\x20(dry\x20run:\x20no\x20write).':_0x5e1c5b(0xa,_0xc23d22._0x1737ec,0x105,-_0xc23d22._0x29483b),{'filePath':_0x53c761['filePath'],'resolvedPath':_0x3e3938,'created':_0x49160d[_0x5e1c5b(0x6e,_0xc23d22._0x5dc059,-_0xc23d22._0x130cd6,-_0xc23d22._0x2023e7)][_0x5e1c5b(0x122,-_0xc23d22._0x511ac7,-0xa,_0xc23d22._0x440c1d)](),'modified':_0x49160d[_0x442ab0(_0xc23d22._0x3f89a4,_0xc23d22._0x4b9775,0x30b,0x431)][_0x5e1c5b(0x122,-_0xc23d22._0x203fcf,0x37,0x123)](),'size':_0x49160d[_0x5e1c5b(_0xc23d22._0x522a01,_0xc23d22._0xf9ac4c,0x144,0x22d)],'eol':_0x286900,'oldTextLength':_0x2ddcec['length'],'newTextLength':_0x2acde2[_0x442ab0(_0xc23d22._0x2754bd,_0xc23d22._0x4b2e86,0x3e1,0x446)],'bytesWritten':_0x3e75c7||_0x233db8?0x0:_0x4cb6b8['length'],'beforeSha':_0x3275b5,'afterSha':_0x41f06e,'dryRun':_0x233db8,'noChange':_0x3e75c7,'lineNumbers':calculateLineNumbers(_0x592e17,_0x2ddcec,_0x2acde2,_0x20d999)}),void 0x0;}});}import{mkdir as _0xe67f0b,rename as _0x63dcd7,stat as _0x2784d6,writeFile as _0x1647fa}from'fs/promises';import*as _0x28e01c from'path';async function atomicWrite2(_0x514149,_0x443857){const _0x1806ca={_0x5407e0:0xd5,_0x3bed76:0x14d,_0x171ae1:0x5,_0x37ff37:0x62,_0x3a7f22:0x1fe,_0xe7b814:0x1a6,_0xe8b938:0xa9,_0x30fdd0:0x609,_0x190140:0x6ed,_0x5da66c:0x758},_0x5c9a58={_0x2afb61:0x172,_0x41d978:0x125},_0x131ddc=_0x28e01c[_0xe64478(_0x1806ca._0x5407e0,-_0x1806ca._0x3bed76,-_0x1806ca._0x171ae1,_0x1806ca._0x37ff37)](_0x514149);await _0xe67f0b(_0x131ddc,{'recursive':!![]});function _0x2671db(_0x1a4386,_0x533d08,_0x338874,_0x20c0a0){return _0x57b9de(_0x1a4386-_0x5c9a58._0x2afb61,_0x533d08,_0x338874-0x1fd,_0x20c0a0-_0x5c9a58._0x41d978);}function _0xe64478(_0x4589b8,_0x31cca1,_0x560a9a,_0x17aef8){return _0x23b1c2(_0x4589b8-0x71,_0x17aef8,_0x560a9a- -0x3c1,_0x17aef8-0x1d);}const _0x2cf906=_0x28e01c[_0xe64478(-0x164,-0x14a,-0xd0,-_0x1806ca._0x3a7f22)](_0x131ddc,_0xe64478(-0x141,-0x1df,-0x106,-0x56)+_0x28e01c[_0xe64478(0x2,-0x195,-0x121,-0x1b5)](_0x514149)+'.'+Date[_0xe64478(-_0x1806ca._0xe7b814,0x7d,-_0x1806ca._0xe8b938,-0x1cc)]()+'.'+Math[_0x2671db(0x583,0x699,0x5f3,_0x1806ca._0x30fdd0)]()[_0x2671db(0x6f4,0x692,_0x1806ca._0x190140,_0x1806ca._0x5da66c)](0x24)['slice'](0x2));await _0x1647fa(_0x2cf906,_0x443857),await _0x63dcd7(_0x2cf906,_0x514149);}function createFileNewTool(_0xa623b7={}){const _0x43d115={_0x36b0cb:0x63d,_0x3f2e82:0x648,_0x517fb8:0x67a,_0x1b9bef:0x494,_0x5c173e:0x27f,_0x49157f:0x1f3,_0x29fe3a:0x2f4,_0x3d3a76:0x349,_0x440dbf:0x4b3,_0x19192c:0x343,_0x1dc7f4:0x497,_0x1a65c2:0x3cf,_0xd916d7:0x3c8,_0x39ad0b:0x46e,_0x3656c1:0x4b5,_0x26c500:0x3da,_0x4657b0:0x3ed,_0x11d8c0:0x5d6,_0xaac425:0x4a5,_0x174de4:0x4bf},_0x17391c={_0x594ea9:0x340,_0x5adb20:0x2fc,_0x549685:0x20e,_0xe9db3e:0x278,_0x1d3311:0x8f,_0x40b3db:0x39f,_0x58ed63:0x34c,_0x4971b1:0x155,_0x1572f9:0x200,_0x1e8680:0x23b,_0x1f7bea:0x3eb,_0x11b572:0x3d1},_0x3429eb={_0x5e4709:0xb8},_0x1ecc93={_0x3a6a4f:0xf4,_0x9dedaa:0x252},_0x46b800={_0x19564e:0x11,_0x2d1987:0x125},_0x3f52b0=_0x28e01c[_0x3c10fd(_0x43d115._0x36b0cb,_0x43d115._0x3f2e82,_0x43d115._0x517fb8,0x519)](_0xa623b7[_0x5ab5dd(_0x43d115._0x1b9bef,0x46f,_0x43d115._0x5c173e,0x346)]??process[_0x5ab5dd(0x3bd,_0x43d115._0x49157f,0x2a7,_0x43d115._0x29fe3a)]());function _0x5ab5dd(_0x18210f,_0x59c06b,_0x328f47,_0x8fc253){return _0x23b1c2(_0x18210f-0x61,_0x328f47,_0x8fc253-_0x46b800._0x19564e,_0x8fc253-_0x46b800._0x2d1987);}function _0x3c10fd(_0x3fe2ad,_0x20b5e5,_0x12d53d,_0x38fde2){return _0x57b9de(_0x3fe2ad-_0x1ecc93._0x3a6a4f,_0x12d53d,_0x3fe2ad-_0x1ecc93._0x9dedaa,_0x38fde2-0x145);}const _0x1acd9f=(_0xa623b7[_0x5ab5dd(0x364,_0x43d115._0x3d3a76,0x3d4,0x436)]??[])[_0x5ab5dd(0x3fb,_0x43d115._0x440dbf,_0x43d115._0x19192c,_0x43d115._0x1dc7f4)](_0x225da6=>_0x28e01c['resolve'](_0x225da6)),_0x56cdbe=_0xa623b7['name']??'FileNew';return defineTool({'name':_0x56cdbe,'description':_0x5ab5dd(_0x43d115._0x1a65c2,_0x43d115._0xd916d7,_0x43d115._0x39ad0b,_0x43d115._0x3656c1),'inputSchema':{'type':_0x5ab5dd(0x358,_0x43d115._0x26c500,0x3ac,_0x43d115._0x4657b0),'properties':{'filePath':{'type':_0x3c10fd(0x585,_0x43d115._0x11d8c0,_0x43d115._0xaac425,_0x43d115._0x174de4)},'content':{'type':'string'}},'required':['filePath','content']},async *'execute'(_0x207036){const _0x242783={_0x427984:0x1c9,_0x3da49d:0xe9},_0x3b3745=resolveAllowedPath(_0x3f52b0,_0x1acd9f,_0x207036['filePath']),_0x5ae80e=await _0x2784d6(_0x3b3745)[_0x2677a3(_0x17391c._0x594ea9,0x216,0x2f7,_0x17391c._0x5adb20)](()=>!![])[_0x617256(0x320,_0x17391c._0x549685,0x1fb,0xc4)](()=>![]),_0x4a3596=Buffer[_0x2677a3(0x34d,0x1dc,0x1a4,0x24f)](_0x207036[_0x617256(0xb7,0x200,0x181,_0x17391c._0xe9db3e)],'utf8');await atomicWrite2(_0x3b3745,_0x4a3596);function _0x617256(_0x10c4bc,_0x7310f8,_0x10b7b8,_0x1922dc){return _0x5ab5dd(_0x10c4bc-0x121,_0x7310f8-0x77,_0x10c4bc,_0x7310f8- -_0x3429eb._0x5e4709);}function _0x2677a3(_0x434bd8,_0x2ff550,_0x294a93,_0x2f8a5c){return _0x5ab5dd(_0x434bd8-0x10f,_0x2ff550-_0x242783._0x427984,_0x2ff550,_0x2f8a5c- -_0x242783._0x3da49d);}return yield createToolOutput(_0x2677a3(_0x17391c._0x1d3311,0x242,0x134,0x1da)+_0x207036[_0x617256(_0x17391c._0x40b3db,_0x17391c._0x58ed63,0x430,0x46d)]+'.',{'filePath':_0x207036['filePath'],'resolvedPath':_0x3b3745,'bytes':_0x4a3596['length'],'lines':_0x207036[_0x617256(_0x17391c._0x4971b1,_0x17391c._0x1572f9,0x1c9,_0x17391c._0x1e8680)][_0x2677a3(0x3bc,0x46c,0x436,0x394)](/\r?\n/)[_0x2677a3(_0x17391c._0x1f7bea,0x4a8,0x3dd,_0x17391c._0x11b572)],'created':new Date()[_0x2677a3(0x2e4,0x41f,0x4b6,0x364)](),'overwritten':_0x5ae80e}),void 0x0;}});}import{readFile as _0x3016a9,stat as _0x6bb4f8}from'fs/promises';import*as _0x11816a from'path';function stripUtfBom(_0x1b50e4){const _0x5816d4={_0x55010f:0x335,_0x7283cd:0x288};function _0x562b63(_0x3af39d,_0xa1f77d,_0x5b9f5f,_0x1d0865){return _0x57b9de(_0x3af39d-0x11b,_0x1d0865,_0xa1f77d- -0x10b,_0x1d0865-0x8);}return _0x1b50e4['charCodeAt'](0x0)===0xfeff?_0x1b50e4[_0x562b63(0x1f8,_0x5816d4._0x55010f,0x2c6,_0x5816d4._0x7283cd)](0x1):_0x1b50e4;}function clampLine(_0x36eeff,_0x58a00c){const _0x468bd1={_0x16723b:0xd6,_0x50c3eb:0x9f,_0x5cc64a:0x1b2,_0x4d849a:0xb7,_0x1de3fe:0x99,_0x337ed8:0x34},_0x3178b1={_0x3bdbe5:0x95},_0x25f2fb={_0x1d63c6:0x136};function _0x3404eb(_0x1b1630,_0x482e6c,_0x5cfee9,_0x430446){return _0x57b9de(_0x1b1630-_0x25f2fb._0x1d63c6,_0x430446,_0x5cfee9-0x24,_0x430446-0x1ec);}if(!Number[_0x12177d(-0xc3,-0x15,-_0x468bd1._0x16723b,-0x61)](_0x36eeff))return 0x1;function _0x12177d(_0x367cbc,_0x1d7291,_0x16db22,_0x5baf8c){return _0x57b9de(_0x367cbc-0x84,_0x5baf8c,_0x1d7291- -0x313,_0x5baf8c-_0x3178b1._0x3bdbe5);}return Math[_0x12177d(0xdf,_0x468bd1._0x50c3eb,_0x468bd1._0x5cc64a,0x71)](0x1,Math[_0x12177d(0xbc,-0x1,-_0x468bd1._0x4d849a,-0x57)](Math[_0x12177d(-_0x468bd1._0x1de3fe,-0x25,-_0x468bd1._0x337ed8,-0x39)](_0x36eeff),_0x58a00c));}function createFileReadTool(_0x3b8946={}){const _0x45f49d={_0xa9aa78:0x447,_0x3dd5f0:0x42e,_0x3913e2:0x32e,_0x40c719:0x26e,_0x1a4261:0x1ec,_0x214a8b:0x130,_0xb1f15:0x2e9,_0x10e6d6:0x38e,_0x1ebd9d:0x1c7,_0x3c58db:0x131,_0x4526a6:0x19d,_0xe934c8:0x16b,_0x435e1f:0x545,_0x5e23b3:0x511,_0x371ce1:0x44d,_0x2e35c5:0x2a0,_0x189fc5:0x491,_0x20f963:0x48a,_0x4aa6a5:0x253,_0x6fa552:0x408,_0x16df77:0x550,_0x3fa2f7:0x55d},_0x54206f={_0x197061:0x6da,_0x23bbbd:0x6ae,_0xd44d81:0x1b0,_0x5eee69:0x19b,_0x465b35:0x29a,_0x9586d7:0x3b1,_0x759938:0x658,_0x7263a1:0x665,_0x4b3110:0x5cb,_0x38f301:0x780,_0x24fcce:0x62e,_0x2a30b3:0x736,_0x39f7c9:0x2d5,_0x2c3968:0x19e,_0x22b008:0x2e2,_0x2faf95:0x1ed,_0x1575a9:0x555,_0x12b6a5:0x699,_0x3f67a1:0x2df,_0x18a852:0x25e,_0x257e0e:0x1ad,_0x1a1253:0x32b,_0x223310:0x32,_0x55c1f1:0x1c3,_0x5bff9e:0x244,_0x297dbd:0x271,_0x2ea67c:0x300,_0x167693:0x5c0,_0x147dbf:0x4b1,_0x97f8be:0x83f,_0x55ae71:0x706,_0x58f4e6:0x7a4,_0xd2e3e:0x2eb,_0x5640df:0xbc,_0x153d34:0x5b,_0x80f405:0x160,_0x256a1d:0x621,_0x379a31:0x561,_0x356e86:0x468,_0x590e3a:0x62c,_0x58f786:0x5e3,_0x4a713e:0x6e3,_0x2fe1ad:0x6fb},_0x2a03fc={_0x3f1fa8:0x1ab,_0x584c1d:0x27f,_0x10e33f:0xec},_0x1a27b6={_0x433e34:0xed},_0x1ff599={_0x369b44:0x11c,_0x34212e:0x6d};function _0x2219ec(_0x34bb72,_0x3be41f,_0x30f1e5,_0x451d48){return _0x23b1c2(_0x34bb72-_0x1ff599._0x369b44,_0x34bb72,_0x30f1e5- -0x22,_0x451d48-_0x1ff599._0x34212e);}const _0x3b72c4=_0x11816a[_0x2219ec(0x1de,_0x45f49d._0xa9aa78,0x31b,_0x45f49d._0x3dd5f0)](_0x3b8946['defaultCwd']??process['cwd']());function _0x240237(_0x239511,_0x4b761c,_0x54e29d,_0x37c4a5){return _0x57b9de(_0x239511-_0x1a27b6._0x433e34,_0x37c4a5,_0x239511- -0x1a5,_0x37c4a5-0x6);}const _0x56bcf5=(_0x3b8946[_0x240237(_0x45f49d._0x3913e2,0x3d0,0x3a0,0x30b)]??[])['map'](_0x412241=>_0x11816a['resolve'](_0x412241)),_0x244c76=_0x3b8946[_0x240237(_0x45f49d._0x40c719,_0x45f49d._0x1a4261,0x1c9,_0x45f49d._0x214a8b)]??_0x240237(_0x45f49d._0xb1f15,_0x45f49d._0x10e6d6,0x3e4,_0x45f49d._0x1ebd9d);return defineTool({'name':_0x244c76,'description':_0x2219ec(_0x45f49d._0x3c58db,_0x45f49d._0x4526a6,0x25d,_0x45f49d._0xe934c8),'inputSchema':{'type':_0x2219ec(0x3f3,0x4c1,0x3ba,0x4cc),'properties':{'path':{'type':'string'},'lineStart':{'type':_0x2219ec(_0x45f49d._0x435e1f,_0x45f49d._0x5e23b3,_0x45f49d._0x371ce1,0x568),'description':_0x240237(0x374,_0x45f49d._0x2e35c5,_0x45f49d._0x189fc5,_0x45f49d._0x20f963)},'lineEnd':{'type':_0x240237(0x378,_0x45f49d._0x4aa6a5,0x2fe,_0x45f49d._0x6fa552),'description':'Stop\x20reading\x20at\x20this\x20line\x20number\x20(1-based)'}},'required':[_0x2219ec(_0x45f49d._0x16df77,0x3ce,0x45b,_0x45f49d._0x3fa2f7)]},async *'execute'(_0x37581f){const _0x3e1ef6={_0x13c3f1:0xf4};function _0x299efe(_0x460729,_0x35c3c9,_0x464969,_0x378dad){return _0x240237(_0x460729- -0xb1,_0x35c3c9-_0x3e1ef6._0x13c3f1,_0x464969-0x1c,_0x464969);}const _0x1211ec=resolveAllowedPath(_0x3b72c4,_0x56bcf5,_0x37581f['path']);await assertWorkspaceFile(_0x1211ec);const _0x2fe373=await _0x6bb4f8(_0x1211ec),_0x3ede83=await _0x3016a9(_0x1211ec);function _0x2e282c(_0x569f46,_0x4f9649,_0x5e2568,_0x239875){return _0x2219ec(_0x569f46,_0x4f9649-_0x2a03fc._0x3f1fa8,_0x4f9649-_0x2a03fc._0x584c1d,_0x239875-_0x2a03fc._0x10e33f);}if(isProbablyBinary(_0x3ede83))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x37581f[_0x2e282c(0x643,_0x54206f._0x197061,0x7fb,_0x54206f._0x23bbbd)],{'path':_0x37581f[_0x299efe(0x2d5,_0x54206f._0xd44d81,_0x54206f._0x5eee69,0x385)]});let _0x3cd771=_0x3ede83[_0x299efe(_0x54206f._0x465b35,0x32a,0x371,_0x54206f._0x9586d7)](_0x2e282c(_0x54206f._0x759938,_0x54206f._0x7263a1,0x521,_0x54206f._0x4b3110));const _0x4617e7=_0x3cd771[_0x2e282c(_0x54206f._0x38f301,0x646,_0x54206f._0x24fcce,_0x54206f._0x2a30b3)](0x0)===0xfeff;_0x3cd771=stripUtfBom(_0x3cd771);const _0x197842=_0x3cd771['split'](/\r?\n/),_0x250b16={'path':_0x37581f[_0x299efe(_0x54206f._0x39f7c9,_0x54206f._0x2c3968,_0x54206f._0x22b008,_0x54206f._0x2faf95)],'resolvedPath':_0x1211ec,'created':_0x2fe373['birthtime'][_0x2e282c(_0x54206f._0x1575a9,_0x54206f._0x12b6a5,0x5d8,0x6c4)](),'modified':_0x2fe373[_0x299efe(_0x54206f._0x3f67a1,0x36c,0x2d7,0x23f)]['toISOString'](),'size':_0x2fe373[_0x299efe(_0x54206f._0x18a852,_0x54206f._0x257e0e,_0x54206f._0x1a1253,0x2a5)],'encoding':'utf8','bomStripped':_0x4617e7,'truncated':![],'totalLines':_0x197842['length']};if(_0x37581f[_0x299efe(0xac,-_0x54206f._0x223310,0x165,_0x54206f._0x55c1f1)]!==void 0x0||_0x37581f[_0x299efe(_0x54206f._0x5bff9e,_0x54206f._0x297dbd,_0x54206f._0x2ea67c,0x333)]!==void 0x0){const _0x447d0b=clampLine(_0x37581f[_0x2e282c(_0x54206f._0x167693,_0x54206f._0x147dbf,0x51e,0x600)]??0x1,_0x197842[_0x2e282c(_0x54206f._0x97f8be,_0x54206f._0x55ae71,0x6c3,_0x54206f._0x58f4e6)]),_0x415188=clampLine(_0x37581f[_0x299efe(_0x54206f._0x5bff9e,_0x54206f._0xd2e3e,0x20a,0x210)]??_0x197842['length'],_0x197842['length']),_0x11922c=Math[_0x299efe(_0x54206f._0x5640df,0x1db,-_0x54206f._0x153d34,_0x54206f._0x80f405)](_0x447d0b,_0x415188),_0x2ff441=Math[_0x2e282c(_0x54206f._0x256a1d,_0x54206f._0x379a31,_0x54206f._0x356e86,_0x54206f._0x590e3a)](_0x447d0b,_0x415188),_0x4a3c02=_0x197842['slice'](_0x11922c-0x1,_0x2ff441)[_0x2e282c(_0x54206f._0x58f786,_0x54206f._0x4a713e,_0x54206f._0x2fe1ad,0x829)]((_0x5c323c,_0x31e506)=>_0x11922c+_0x31e506+'|'+_0x5c323c)['join']('\x0a');return yield createToolOutput(_0x4a3c02,{..._0x250b16,'lineRange':{'lineStart':_0x11922c,'lineEnd':_0x2ff441,'linesTotal':_0x197842[_0x299efe(0x301,0x3b8,0x1e8,0x2ce)]}}),void 0x0;}return yield createToolOutput(_0x3cd771,_0x250b16),void 0x0;}});}import{stat as _0x534a77}from'fs/promises';import*as _0x1ac8bd from'path';import{execSync,spawn as _0x2f0fb2}from'child_process';import{existsSync}from'fs';import{stat as _0x449c50}from'fs/promises';import*as _0x7b38de from'os';import*as _0x415deb from'path';import{rgPath as _0x410a43}from'@vscode/ripgrep';var cachedRgPath=null;function _0x3d53(){const _0x5503ae=['DhLWzxnJCMLWDhjLywn0','B3jPz2LUywW','y2XVC2u','ndvKvKjtEva','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','y291BNq','yMLYDgH0Aw1L','AxntEw1IB2XPy0XPBMS','C2LNBMfS','rgv0ywLSoIa','Aw5JB21PBMDdywXSCW','vw5RBM93BIb0B29SoIa','Aw1Hz2vZ','y29UC3rYDwn0B3i','y29UBMvJDa','y29KzvzLCMLMAwvY','C2XPy2u','C2vHCMnOrgvWDgG','C3rKB3v0','ChvZAa','zgvMyxvSDa','Aw5PDgLHBgL6zwq','BM9Uzq','CxvLCNK','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','lMPZB25J','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','DhjHBNnMB3jTCW','l2jPBI9IyxnO','C2TPBgXZ','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','y2HHBMDL','y29UBMvJDgLVBG','q29Tu3bLyW','qMvHCMvYia','CNvUswq','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','ChvIBgLZAgvKqxq','CMvNAw9U','zw5NAw5LCW','AxnjBNrLz2vY','zw50CMLLCW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','rMv0y2GGDgLTzwqGB3v0','C3r5Bgu','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','BgLUzq','zxH0zw5ZAw9UCW','yNL0zuXLBMD0Aa','DhnZzxj2zxiUANm','y3jLyxrLzef0','BxrPBwvnCW','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','Aw1Hz2uVANbLzW','BMf2','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','Aw52ywXPzf9XDwvZDgLVBNm','zgLYBMfTzq','BgfUz18','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','qwXSia','C3vIyxjYyxK','v0vcua','Aw5JBhvKzxm','l3bPza','ywrKrxzLBNrmAxn0zw5LCG','ywXSB3DLzfrVB2XZ','Ag92zxi','BgLZDfrVB2XZ','o1TE','AxnbyNnVBhv0zq','B25szwrPCMvJDa','C25PChbLDa','B3bLBG','ihDHCYbHyM9YDgvKlG','z2nSAwq','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','ywn0AxzL','Aw1Hz2uVz2LM','zgLZy292zxj5u3rHDgu','DgHLBG','phn5C3rLBs1Yzw1PBMrLCJ4','lM10CW','ywjVCNrLza','yxv0BW','y29UDgvUDc10ExbL','zMLSDgvY','ugf0AcbPCYbUB3qGysbMAwXLoIa','B2jQzwn0','DgfZAW','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','l3vZCI9SB2nHBc9IAw4VCMC','rMLSzvjLywq','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','ls1OAwrKzw4','y2fSBgjHy2TvCMW','xsb0CMfUC3bVCNqGzxjYB3i6','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','zgvMAw5PDgLVBG','qgjPB21LANmVyMLVBwu','CgfNzw1HCa','y2HHCKnVzgvbDa','C2H1DgrVD25tDgfYDgvK','Dhj1zwnVBg9Y','BgLUzuvUza','oIbPzcbYzxf1AxjLza','CxvLC3rPB24T','BwfYA2rVD24','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','C2vUzfjLCxvLC3q','zMLSzvbHDgG','BgL0zxjHBa','BgLUAW','ignVBxbSzxrLzc4','BwvZC2fNzq','A2v5','yMLVBwuUANnVBG','BxvSDgLtzwXLy3q','vMLLD2vKigLTywDLigzPBgu6ia','yMfZzty0','BgLZDgvU','D3jPDgu','zgvUBY5QC29UyW','yw5ZAti1nG','zxjYB3i','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','Aw1WBgvTzw50yxrPB24','Dgf2AwX5qxbPs2v5','y29TBwfUza','C2L6zq','Dg9KB3ncEvnLC3nPB24','DxrMoa','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','y2fSBeLK','lMPZEa','twLJCM9ZB2z0','AhrTBfnUAxbWzxq','lMXVzW','CMvJB3jK','te9x','CMvZDwX0CW','yxjNDw1LBNroyw1LCW','yxr4','BM9Kzv9TB2r1BgvZ','y29TBwfUzhm','v2vIu2vHCMnO','ywDLBNrjza','Bg9JyxrPB24','zxjYB3jZ','Dhj1zq','CxvLC3rPB24','lunVBw1HBMq','C2v0vg9KB3m','te9dquXbufbeqvrb','y2XPzw50twv0ywrHDgfvCMW','yNvUlMXVy2TI','BMv3vgv4Da','C3rHDhvZ','Bwv0yq','DgvZDa','ywXSB3DLzerPCNm','BNvT','ywrK','tM8GBg9JyxrPB25ZigzVDw5K','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','C3bHD24','y29UDgv4Da','y2XLyxi','y2XPzw50CW','Dw5PB24','Dw5RBM93BG','C2vSzwn0Aw9UuMfUz2u','Cg5WBs1SB2nRlNLHBwW','ls1YzwDLEha','C3rHDhvZvgv4Da','vg9KBYa','yMfZAwm','B3v0z29PBMDdywXSCW','CgfZC3rOCM91z2G','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','Bw9KzwW','Dg9VBhm','ChjPB3jPDhK','Dg9ju09tDhjPBMC','zgLZywjSzwq','lMnTza','CMvWBgfJzq','yxjNDw1LBNriAw50','CMvZDwX0','Dg9tDhjPBMC','AxnbCNjHEq','thnW','Dg9WAwm','zgvMyxvSDfrPBwvVDxrnCW','C29Tzq','v2vIrMv0y2G','B25oB3rPzMLJyxrPB24','CMLWz3jLCcbMywLSzwq6ia','uxvLC3rPB24G','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','BwvTB3j5','Dg91y2HgAwXL','sfruuca','Ahr0Ca','C2vHCMnOugfYyw1Z','mJa5sLDIzuPt','lI4U','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','B3bLBMfPlxjLC3bVBNnLCY13CW','EwvZ','Ag9ZDa','lMPWzwC','C2vYDMvYtMfTzq','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','DxnLCM5HBwu','Dg9Rzw5tDg9YywDLs2v5','Cgf0Ag5HBwu','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','CMLWz3jLCa','zgvSzxrL','DhLWzq','zgvZy3jPChrPB24','tg9HzgvKigzYB206ia','sgLUDa','oIbJB250zw50ihjLCxvPCMvK','ugfJA2fNzxm','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','C2vZC2LVBKLK','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','u3rHCNqGCMvHzgLUzYbMCM9TihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','C3bSAxq','rM91BMqG','CxvLC3rPB25Z','BNvTyMvY','AwzYyw1L','A2LUza','y29TCgXLDgvK','zMjJBgLK','Aw5ZDhj1y3rPB25Z','pc9ZExn0zw0TCMvTAw5Kzxi+','igzHAwXLzc4','BwnWxW','Dg9Rzw4','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','l3vZCI9IAw4VC2G','yxnRvxnLCG','yMLVBwuUANnVBMm','Cgf0Aa','rNvSBcbVDxrWDxqGC2f2zwqGDg86ia','DgLTzvTKyxrLDgLTzv0','zgLYzwn0B3j5','CgfJA2fNzu5HBwu','Aw5FChjVz3jLC3m','lMn0CW','DxrTx2nVBNrLBNq','C291CMnL','BwfW','BxrPBwu','y29Kzq','C3jJl2fNzw50l2fNzw50lNrZ','zxjYB3jnzxnZywDL','DgL0Bgu','DxbKyxrL','CMvXDwvZDhm','sw52B2TLq29TBwfUza','Aw52ywXPzf90B2rVx2nVBNrLBNq','u2HLBgWGBM90igzVDw5KoIa','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','CNnZ','ChjVCgvYDgLLCW','yM9VBgvHBG','nde3ndy4u3bLDMjd','zxHPDcbJB2rLia','o1TExg5DkJ8','DhjPBuvUza','BM9Zy3jPChq','AxrLBxm','AgfZq2XPzw50CW','A2v5yMLUzgLUz3m','DxrTx3nVDxjJzq','lMjPBG','vMLLD0zPBgu','Bg93','D29YA3nWywnLu3LTyM9S','yw5ZAte2','Bg9JywXLq29TCgfYzq','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','cMbGya','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','B2f1DgG','lNrZEa','BgvUz3rO','l2jPBI9YzW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','C2nYAxb0','C3rKzxjY','lNrZ','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','Cgf0DgvYBG','zgvSAw1PDgvY','B3rOzxi','Dg9mB3DLCKnHC2u','B2zMC2v0','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','CMfUz2u','zMLSzq','zgf0yq','zNvUy3rPB24','u2TPBgWGjW','Aw1Hz2uVD2vICa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','CgLWzq','BgLUzvrLEhq','ls1ZDgrPBW','tM8GAg92zxiGAw5MB3jTyxrPB24','lMDPzG','ndu0ode4nhLqEeDKDq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','C3rVCMfNzurPCG','zw5NAw5L','BhnWu2vYDMLJzq','mJC2mJuXnurACKTqyq','zw5HyMXLza','Dgv4DerVy3vTzw50l2rPzenSB3nL','tgLUzsa','DxjS','BgfUz3vHz2u','DxbKyxrLvg9WAwm','l3vZCI9IAw4VCMC','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','CgLK','Bwf4qNL0zxm','C2vUze5VDgLMAwnHDgLVBG','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','y3jSzG','tunqihnLCNzLCIa','zgLZCg9Zzq','C2v2zxjPDhK','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','ANnJB25MAwCUANnVBG','zMvUy2vK','l3vZCI9IAw4VyMfZAa','Aw52ywXPzf90B2rVx2LK','w01duca','zw51Bq','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','B3b0Aw9UCW','DgfZA2TPBgW','zMLSztOVlW','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','C2vHCMnOvhLWzq','Dhj1BMm','C3rKAw4','z2XVyG','DgLTzw91De1Z','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','DhLWzxnJCMLWDa','D2LUmZi','m3L1vwHrwG','C2v0','igj5DgvZks4','ienHDxnLoIa','vg9WAwmGC2v0ihrVici','z2L0qNjHBMnO','zgLHz25VC3rPy3m','yMLUyxj5tMfTzq','AxngAw5PDgu','zw5K','zMLUywXnzxnZywDL','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','BgLUzvn0yxj0','zMLUzfjLzMvYzw5Jzxm','CgXHAw50zxH0','l29WDc9OB21LyNjLDY9IAw4VCMC','lcbpChrPB24G','vw50AxrSzwq','tM8GzgLHz25VC3rPy3m','DhvWBgu','Dg9VBfjLC3vSDhm','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','C2H1DgrVD24','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','zMfPBgvK','CgfYC2vjBNq','Aw1Hz2uVCg5N','CMvJzw5JEurHExm','BwLU','C2fMzq','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','D2HLCMuGCMC','yxjNDw1LBNrZvgv4Da','DMvYAwzPzxi','zgLNzxn0','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','ChjLCgfYzunHBgXiAwvYyxjJAhK','CMvMCMvZAf90B2TLBG','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','Aw5qCM9NCMvZCW','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','r0LgodLH','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','C3bHD25PBMC','AMf2yxnJCMLWDa','Aw5JBhvKzv9KB21HAw5Z','BwnFzwLK','yxv0Aa','BhmGlwXH','CM91BMq','Aw52ywXPzf90B2rVx2L0zw0','EwfYBI5SB2nR','D29YA3nWywnLl3n5BwjVBa','BhnW','u2L6ztOG','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','DxrTx2nHBxbHAwDU','CgXHDgzVCM0','ywXSu2v0DgXLza','yw5ZD2vYCW','yxnJAwK','C3rYAw5N','AxngAwXL','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','qMfZzsbKAxjLy3rVCNK6ia','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','ygbG','CgfYC2u','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','qMfZAa','zgvUBY5QC29U','B2zM','qxv0Ag9YAxPHDgLVBG','AxnfCNjVCG','CgfJA2fNzs5QC29U','l2jPBI9ZAa','AhLKCMf0zu1LDge','AgLNAa','z29Vz2XLlwnZzq','Bw9Kzq','yMvHCMvY','Dg9VBhmVy2fSBa','igj5DgvZicH0B3rHBdOG','yxjNDw1LBNrZ','mtbotgnLwMG','yxjNCW','zgLZy292zxj5','Dg9VBe5HBwu','yMfZzw5HBwu','ChjVy2vZCW','ig1Z','BgLI','igj5DgvZicHVCMLNAw5HBdOG','rMLSzuvKAxq','CgvUzgLUzW','y29UDgvUDa','C2vYDMvYswq','cGOTls0kcG','BwvKAxvT','Dgf2AwX5','B3bLBKzPBgvZ','Aw5PDgLHBgL6yxrPB24','D2HPy2GGCMC','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','CMvSyxrPDMu','rMLSzsb3CML0DgvUigf0ia','DhjPBq','zgfYAW','y2f0y2G','CMvHC29U','zM9VDgvY','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','y2XPzw50','Aw1Hz2u','lNrTCc4','Dg9VBa','z29Vz2XLq3nLs2v5','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','ue9tva','AwDUB3jL','mc4WlJa','z2v0vg9KB3m','mteXnZq0owTUv2DnDa','lMPZ','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','CMvMzxjLBMnLCW','qwDLBNqGCNvUia','yxnZAwDU','tNv2Aw4','zhj5uNvU','Cg9W','CNvUBMLUzW','v2fYBMLUzW','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','DxrTx3rLCM0','tuvesvvn','B3v0Chv0','zMLUza','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','C29YDa','CMvTB3zLrxzLBNrmAxn0zw5LCG','ugf0AcbUB3qGzM91BMq6ia','zhvWBgLJyxrLx3rVzg9FAwrZ','uhjVz3jHBuzPBgvZ','lNbUzW','uKLgrG','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','B25Jzq','BgLTAxq','Aw5WDxq','Dg9KB3m','C2vYDMvYCW','zxzLCNK','y3DK','zMLSzvzLCNnPB25Z','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','BgfIzwW','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','lu5VuhjVzMLSzq','lMPZB24','CMvXDwLYzwq','CMvXDwvZDa','z2v0','qxzHAwXHyMXLignVBw1HBMrZoG','AgfUzgXL','zgLHz25VC3rPy3ngB3jgAwXL','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','AM9PBG','rMv0y2GGywjVCNrLzcbIEsb1C2vY','C2v0vg9WAwm','ls1MB2XSB3C','B3bLBMfPlxjLC3bVBNnLCW','t0zg','zxHPDa','wZ0+nY04kcLD','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','tunqihrVB2WG','B3jPz2LUvg9VBenHBgXjza','y2XLyw51Ca','BgLUzu51Bq','ie9sia','zNvSzMLSBgvK','AgfZ','yxbPs2v5','Ag9TzwrPCG','Bwf4','lM51DMLU','CgfJA2fNzs1SB2nRlMPZB24','C3rHDgu','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','ywDLBNrZ','B2XSyw1H','yxbWBgLJyxrPB24VANnVBG','z29Vz2XLq3nLq3G','C2nVCgvZ','yxr0CG','DxrTx21LzgL1Bq','y29UDgvUDhm','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','rxjYB3i','A2LSBa','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','ChjVDg9JB2W','Aw52ywXPzf90B2rVx3n0yxr1CW','BM93','CMvTB3zL','C3rYAxbbBNnP','yNjVA2vU','CMCUzxHL','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','AxndB250zxH0','r2XVyG','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','tM8GC3vJAcbMAwXLoIaN','ls0T','zgv0ywLS','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','CM9VDa','Aw5JBhvKzq','zNjVBq','y29UBMvJDgvK','yNvUlMXVy2S','yxjYyxK','rgLHz25VC3rPyW','Aw5WDxrty2HLBwe','ywjVCNq','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','y29UzMLN','u0Lhs0Lmta','zMXHDe1HCa','zg9JDw1LBNrtEw1IB2W','y29ZDa','ANnVBG','zgvMyxvSDen3za','BM90Awz5','z2v0u3rHDhm','B2XKvgv4Da','Ec1HCgKTA2v5','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','ls1NBg9Ipq','lMPWzW','CMvZB2X2zq','y2HHCMfJDgvY','DhjHBNnWB3j0','C2vYDMvY','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','txvZDcbWCM92AwrLideTmtaGCxvLC3rPB25Z','r0LgodDH','zg9TywLUCW','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','AgvHzgvYCW','CMfUzg9T','y2fJAgvK','ls1JB2X1Bw4','C3LTBgLUAW','y2XPzw50sw5MB3jTyxrPB24','B3bLCMf0Aw9U','y2XPzw50x3nLy3jLDf9WB3n0','D2vI','C3rHCNq','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C2HPzNq','xg5DkJ8','zw52','Dgv4Da','DMfSDwu','AxneAxjLy3rVCNK','DhvYBMrVD24','ru5pru5u','CgfZC3DVCMq','ota4ode0A3Hzv2vR','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','yMLVBwu','lMnQCW','Dg90ywW','AwDUB3jLt3v0Chv0','yxv0Ag9YAxPHDgLVBL9JB2rL','otiXmZHSDLvTq3u','C2vUza','C2HHmJu2','BMfTzq','C2HLBgXqyxrO','lNDLyNa','C2L0ztO','oty4nJG4qwTICxnu','yw50AhjVCgLJlw1LC3nHz2vZ','ygbGANnVBGO','zgvSzwDHDgvKlxj1BI0','ofLAyNPkEq','C3rYAw5NAwz5','C3rHCNrZv2L0Aa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ChjLzML4','igj5DgvZ','y29Uy2f0','BgfUzW','Dg9VBenHBgXjza','z29uB0LTCgXLBwvUDgf0Aw9U','ig1HDgnO','DxjP','B3b0Aw9UywW','Bwf0y2HLCW','Aw52ywXPzf90B3bPyW','CMfUAW','Bwv0yvTUyw1LpsDKzxnJCMLWDgLVBIDD','ywXS','Dg9Rzw5Z','A2v5CW'];_0x3d53=function(){return _0x5503ae;};return _0x3d53();}function findSystemRipgrep(){const _0x49fc91={_0x1ebd75:0x194,_0x2731a7:0x1a1,_0x3c07da:0x1e7,_0x2aa7a0:0x15a,_0x2ee342:0x1d9,_0x38aa20:0x185,_0x42b3bc:0xb4,_0x575712:0xa0,_0x4e8808:0x331,_0x4d3ab4:0x31f,_0x2dda66:0x201,_0x567e06:0x134,_0x4797ca:0x318,_0xb8192d:0x10c,_0x1dc9da:0xb0,_0x3ba9f7:0x144,_0x5412e9:0x2c,_0x431612:0x373,_0x3ddf97:0x41e,_0x536a2d:0x291,_0x4d1ab8:0x124,_0x36acbd:0x68,_0x58ef1c:0x17f,_0x43f24f:0x179,_0x526349:0x223,_0x48e1ef:0x304,_0x2478ca:0x3bd,_0x151bf1:0x3fa,_0x4eb134:0x17a,_0x197e30:0xae,_0x5b6a3f:0x1ad,_0x498d0c:0x21,_0x548adb:0x1,_0x22c205:0x1ee,_0x46bb7b:0x126,_0x13267c:0xd8,_0x239834:0x460,_0x2e6210:0x46c,_0x484ee4:0x1d3,_0xbdbcf:0x91,_0x1cc082:0x1d,_0xe30e3c:0x6},_0x2a56d1={_0x263503:0x1b6},_0x436852={_0x5d5fa4:0x19b,_0x5c27d9:0x109},_0x4056f6=_0x7b38de[_0x141937(_0x49fc91._0x1ebd75,0x51,_0x49fc91._0x2731a7,_0x49fc91._0x3c07da)]()===_0x141937(_0x49fc91._0x2aa7a0,0x209,_0x49fc91._0x2ee342,_0x49fc91._0x38aa20);function _0x141937(_0x4af5bb,_0x1a59b8,_0x18ad9c,_0x406059){return _0x57b9de(_0x4af5bb-0x112,_0x18ad9c,_0x4af5bb- -_0x436852._0x5d5fa4,_0x406059-_0x436852._0x5c27d9);}const _0x4f7f85=_0x4056f6?[_0x415deb[_0x3f6475(-_0x49fc91._0x42b3bc,0x104,0x44,_0x49fc91._0x575712)](process['env'][_0x141937(_0x49fc91._0x4e8808,0x31f,0x263,0x207)]||'',_0x141937(_0x49fc91._0x4d3ab4,0x25f,_0x49fc91._0x2dda66,0x40b),'WinGet',_0x3f6475(0x22b,_0x49fc91._0x567e06,0x1ba,0x217)),_0x415deb[_0x141937(0x204,0x33b,0x291,_0x49fc91._0x4797ca)](process[_0x3f6475(0x26,_0x49fc91._0xb8192d,0xa7,0xc7)][_0x3f6475(_0x49fc91._0x1dc9da,_0x49fc91._0x3ba9f7,_0x49fc91._0x5412e9,0x134)]||'',_0x141937(_0x49fc91._0x431612,_0x49fc91._0x3ddf97,0x220,_0x49fc91._0x536a2d),'rg.exe'),_0x415deb[_0x141937(0x204,0x25d,0x2e3,0x21e)](process['env']['ProgramFiles(x86)']||'',_0x3f6475(0x1bb,0x175,0x1b3,0x2a2),_0x3f6475(_0x49fc91._0x4d1ab8,-_0x49fc91._0x36acbd,0x6f,_0x49fc91._0x58ef1c))]:[_0x3f6475(-0xea,-0x2b,-0x56,-_0x49fc91._0x43f24f),_0x3f6475(0x3f,0x129,0x132,0x261),_0x3f6475(0x1d0,0x240,_0x49fc91._0x526349,_0x49fc91._0x48e1ef),_0x141937(_0x49fc91._0x2478ca,_0x49fc91._0x151bf1,0x3c0,0x31a)];for(const _0x112e4f of _0x4f7f85){if(existsSync(_0x112e4f))return _0x112e4f;}function _0x3f6475(_0x48d56c,_0x402091,_0x321d33,_0x287759){return _0x57b9de(_0x48d56c-0x4d,_0x402091,_0x321d33- -0x35b,_0x287759-_0x2a56d1._0x263503);}try{const _0x43bb4c=_0x4056f6?_0x141937(_0x49fc91._0x4eb134,_0x49fc91._0x197e30,0x1cf,_0x49fc91._0x5b6a3f):_0x3f6475(0x10f,_0x49fc91._0x498d0c,_0x49fc91._0x548adb,-0x6e),_0x34bc43=execSync(_0x43bb4c,{'encoding':_0x141937(0x31b,0x413,0x447,_0x49fc91._0x22c205),'stdio':[_0x3f6475(_0x49fc91._0x46bb7b,_0x49fc91._0x13267c,0x212,0xd6),_0x141937(0x3d2,_0x49fc91._0x239834,0x4bb,_0x49fc91._0x2e6210),_0x141937(_0x49fc91._0x484ee4,_0x49fc91._0xbdbcf,0x2fc,0x181)]})[_0x3f6475(_0x49fc91._0x1cc082,0x77,_0x49fc91._0xe30e3c,-0xb1)]()[_0x3f6475(0x2f0,0x1b1,0x1bf,0x1d9)](/\r?\n/)[0x0];if(_0x34bc43&&existsSync(_0x34bc43))return _0x34bc43;}catch{return null;}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;if(_0x410a43&&existsSync(_0x410a43))return cachedRgPath=_0x410a43,_0x410a43;const _0x1c391a=findSystemRipgrep();if(!_0x1c391a)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x1c391a,_0x1c391a;}async function*files(_0x387d02){const _0x2ffc5b={_0x1ae3a4:0x8,_0x2cf09e:0x69,_0x4bee2c:0x70,_0x24c8e2:0x4af,_0x34d615:0x493,_0x50798e:0x46c,_0x2cd1a0:0x525,_0x453557:0x1b,_0x594435:0x152,_0x42f4de:0x171,_0x194946:0x7f,_0x3ad897:0x196,_0x30bb1e:0x14a,_0x56a045:0xcc,_0x2b4b5f:0x70,_0x3f1575:0x600,_0x252afc:0x507,_0x47c3af:0x58b,_0x331b67:0x50c,_0x127efd:0x48c,_0x3d3127:0x362,_0x32f940:0x1bf,_0xb7fb0b:0x227,_0x3f64d1:0x1a5,_0x23ed9e:0x1c3,_0x339ff2:0xfc,_0x16b7ae:0x100,_0x4628b6:0x1aa,_0x435d6d:0x31e,_0x4a6e60:0x1d4,_0x1876d2:0x298,_0x96b9ca:0x37a,_0xca1458:0x47f,_0x2800ef:0x1a,_0x4f8099:0x69,_0x396259:0x1b},_0x28cfcd={_0x27f587:0x1a4,_0x658dfc:0x1cc},_0x37e6bc={_0x32a926:0x346},_0x51e352=await filepath();function _0x44d2f2(_0x150a85,_0x44420c,_0x430b3a,_0x36628c){return _0x57b9de(_0x150a85-0x9a,_0x150a85,_0x430b3a- -_0x37e6bc._0x32a926,_0x36628c-0x1ef);}const _0x474733=await _0x449c50(_0x387d02[_0x44d2f2(-0xaf,0x4a,0x4b,_0x2ffc5b._0x1ae3a4)])['catch'](()=>null);if(!_0x474733?.['isDirectory']())throw Object['assign'](new Error(_0x44d2f2(-_0x2ffc5b._0x2cf09e,0x17c,0x88,_0x2ffc5b._0x4bee2c)+_0x387d02[_0x2254d6(0x5fb,_0x2ffc5b._0x24c8e2,_0x2ffc5b._0x34d615,_0x2ffc5b._0x50798e)]+'\x27'),{'code':_0x2254d6(0x62f,_0x2ffc5b._0x2cd1a0,0x434,0x423)});const _0x55f10f=['--files',_0x44d2f2(-_0x2ffc5b._0x453557,_0x2ffc5b._0x594435,0x5c,_0x2ffc5b._0x42f4de),_0x44d2f2(_0x2ffc5b._0x194946,_0x2ffc5b._0x3ad897,_0x2ffc5b._0x30bb1e,0xaf),'--glob=!.git/*'];for(const _0x2f627f of _0x387d02[_0x44d2f2(-_0x2ffc5b._0x56a045,0xc7,-0x56,-_0x2ffc5b._0x2b4b5f)]??[]){_0x55f10f['push'](_0x2254d6(_0x2ffc5b._0x3f1575,_0x2ffc5b._0x252afc,_0x2ffc5b._0x47c3af,0x3f4)+_0x2f627f);}const _0x23cade=_0x2f0fb2(_0x51e352,_0x55f10f,{'cwd':_0x387d02['cwd'],'stdio':[_0x2254d6(_0x2ffc5b._0x331b67,_0x2ffc5b._0x127efd,0x55b,0x4e8),_0x44d2f2(_0x2ffc5b._0x3d3127,_0x2ffc5b._0x32f940,_0x2ffc5b._0xb7fb0b,0x29e),_0x44d2f2(_0x2ffc5b._0x3f64d1,_0x2ffc5b._0x23ed9e,0x227,0x127)]});let _0x35c015='';function _0x2254d6(_0x457a57,_0x1d6496,_0x1382f1,_0x4651a0){return _0x23b1c2(_0x457a57-_0x28cfcd._0x27f587,_0x457a57,_0x1d6496-_0x28cfcd._0x658dfc,_0x4651a0-0xd9);}for await(const _0x2e3c25 of _0x23cade[_0x44d2f2(0x106,-0x44,_0x2ffc5b._0x339ff2,0x1f0)]??[]){_0x35c015+=_0x2e3c25[_0x44d2f2(_0x2ffc5b._0x16b7ae,0x280,_0x2ffc5b._0x4628b6,0x1f1)]();const _0x42d079=_0x35c015[_0x44d2f2(_0x2ffc5b._0x435d6d,0xb3,_0x2ffc5b._0x4a6e60,_0x2ffc5b._0x1876d2)](/\r?\n/);_0x35c015=_0x42d079['pop']()??'';for(const _0x2e1612 of _0x42d079){if(_0x2e1612[_0x44d2f2(0x2c5,0xea,0x211,0x358)]>0x0)yield _0x2e1612;}}_0x35c015[_0x2254d6(_0x2ffc5b._0x96b9ca,_0x2ffc5b._0xca1458,0x470,0x55d)]()['length']>0x0&&(yield _0x35c015[_0x44d2f2(-_0x2ffc5b._0x2800ef,-_0x2ffc5b._0x4f8099,_0x2ffc5b._0x396259,0x25)]());}function parseMatchLine(_0x21197e,_0x237e08){const _0x1d7acf={_0x117a02:0x36e,_0x2e240a:0x4b8,_0x3a60f4:0x4a5,_0x3a1af2:0x2df,_0x6a8f3f:0x2dd,_0x1db332:0x2ad,_0x46ee7b:0x296,_0x4656d4:0x235,_0x53cf96:0x189,_0x30646f:0x1cb,_0x4f834d:0x284,_0x1af63d:0x22d,_0x204729:0x1ae,_0x403dbb:0x30b,_0x245204:0xc,_0xfcd812:0x1bf,_0x17c971:0x476,_0x4dfbbc:0x33d,_0x4f4c01:0x42e,_0xd063d6:0x3ea},_0x46c2d9={_0x5e67bb:0x158,_0x4b84fc:0x4c,_0x3f3030:0x133},_0x410005={_0x303747:0x1c0,_0xe65cdb:0x157};function _0x4accda(_0x561db4,_0x16aa1e,_0x497022,_0x4e4066){return _0x23b1c2(_0x561db4-0x119,_0x4e4066,_0x561db4- -_0x410005._0x303747,_0x4e4066-_0x410005._0xe65cdb);}if(!_0x21197e||_0x21197e==='--')return null;function _0x5b2d02(_0x1cd304,_0x3f2f2a,_0x14bcb6,_0x316887){return _0x23b1c2(_0x1cd304-_0x46c2d9._0x5e67bb,_0x316887,_0x3f2f2a-_0x46c2d9._0x4b84fc,_0x316887-_0x46c2d9._0x3f3030);}const _0x5abd3e=_0x21197e[_0x5b2d02(_0x1d7acf._0x117a02,_0x1d7acf._0x2e240a,0x505,_0x1d7acf._0x3a60f4)]('|');if(_0x237e08&&_0x5abd3e[_0x4accda(0x2e9,0x3d8,_0x1d7acf._0x3a1af2,0x350)]>=0x4&&Number['isFinite'](Number[_0x5b2d02(_0x1d7acf._0x6a8f3f,_0x1d7acf._0x1db332,0x363,0x3fd)](_0x5abd3e[0x2]??'',0xa))){const _0x34fd9c=Number[_0x5b2d02(_0x1d7acf._0x46ee7b,0x2ad,0x2ec,_0x1d7acf._0x4656d4)](_0x5abd3e[0x1]??'',0xa);if(!Number[_0x4accda(0x90,0xbf,-0x5c,_0x1d7acf._0x53cf96)](_0x34fd9c)||!_0x5abd3e[0x0])return null;return{'filePath':_0x5abd3e[0x0],'lineNum':_0x34fd9c,'lineText':_0x5abd3e[_0x4accda(0x1d2,0x1bc,0x219,_0x1d7acf._0x30646f)](0x3)[_0x5b2d02(_0x1d7acf._0x4f834d,0x33d,0x36a,_0x1d7acf._0x1af63d)]('|')};}if(_0x5abd3e['length']>=0x3){const _0x1c0098=Number[_0x5b2d02(_0x1d7acf._0x204729,0x2ad,_0x1d7acf._0x403dbb,0x285)](_0x5abd3e[0x1]??'',0xa);if(!Number[_0x4accda(0x90,-_0x1d7acf._0x245204,0xfd,_0x1d7acf._0xfcd812)](_0x1c0098)||!_0x5abd3e[0x0])return null;return{'filePath':_0x5abd3e[0x0],'lineNum':_0x1c0098,'lineText':_0x5abd3e[_0x5b2d02(0x3a3,0x3de,0x344,_0x1d7acf._0x17c971)](0x2)[_0x5b2d02(0x3ee,_0x1d7acf._0x4dfbbc,_0x1d7acf._0x4f4c01,_0x1d7acf._0xd063d6)]('|'),..._0x237e08?{'isContext':!![]}:{}};}return null;}async function search(_0x4ab5d5){const _0x173245={_0x2669ea:0x160,_0x48a433:0xb0,_0x54b13a:0x5a,_0x11d853:0x2,_0x49dcf1:0x135,_0x2c71d7:0xcd,_0x3b1a22:0x0,_0x1b9eba:0xfd,_0x1d8362:0x1af,_0x15f1dd:0x18d,_0x58022b:0x13f,_0x5dd02f:0x248,_0x952897:0x1f3,_0x48ab8e:0x18b,_0x37fa34:0x190,_0x21f94c:0xd1,_0x164333:0x80,_0x25e806:0x55,_0x1e6ff9:0xd9,_0x5842ea:0x1e8,_0x26a919:0x1f2,_0x380788:0x9,_0x24244f:0x166,_0x29c7bc:0x397,_0x91b81:0x306,_0x49bdbd:0x1fc,_0x4b28f4:0x33e,_0x298fe8:0x1e1,_0x84c772:0xf,_0x201f22:0x17d,_0x49e685:0x10c,_0x44f0e6:0xf0,_0x3330af:0xa9,_0x132b5d:0x48,_0x28cd7f:0x154,_0x29890e:0x1bb,_0x5dad89:0x2a5,_0x59de7b:0x2a6,_0x59584a:0x320,_0x463f4a:0x335,_0x2a1085:0x76},_0x4871b4={_0x43c221:0x3d9,_0x292e21:0x3a8,_0x1f08a8:0xbf,_0x4386a9:0xcf,_0x18787d:0x674,_0x1ac2f6:0x633,_0x2bce97:0x5b0,_0x4a87c5:0x5b5,_0x5bf806:0x506,_0x56260d:0x690,_0xe03837:0x5a3,_0x1e565d:0x67c,_0x2ec541:0x5f4,_0x1d1fe9:0x23e,_0x5ca3ab:0x382,_0xa41ff3:0x320,_0x22247a:0x1a2,_0x252fed:0xe5,_0x1ec18e:0x185,_0x5113ec:0x1dc},_0x50932e={_0x56509f:0x28f,_0x228f51:0x29,_0x491e76:0xf7},_0x2b9607={_0x3d65e8:0xdd,_0x44f22f:0xf5,_0x2a078d:0x135},_0x1b13d0={_0x21eb09:0x359},_0x2b3fb2={_0x36c683:0x12d},_0x3d0fd2=await filepath();if(_0x4ab5d5['file']){const _0x3c2b26=await _0x449c50(_0x4ab5d5[_0x4fa8f1(_0x173245._0x2669ea,0x2a1,0x275,_0x173245._0x48a433)])[_0x3c25a8(0x11c,0x1b5,0x202,0x72)](()=>null);if(!_0x3c2b26?.[_0x3c25a8(0xed,0x1ec,_0x173245._0x54b13a,_0x173245._0x11d853)]())throw Object[_0x4fa8f1(-0x90,-_0x173245._0x49dcf1,-0x76,-0xdd)](new Error(_0x4fa8f1(-0x38,_0x173245._0x2c71d7,0xb7,-0x13a)+_0x4ab5d5['file']+'\x27'),{'code':_0x4fa8f1(_0x173245._0x3b1a22,0xdc,-_0x173245._0x1b9eba,0x77)});}else{const _0x3fcf40=await _0x449c50(_0x4ab5d5[_0x3c25a8(0x14a,0x17b,0x276,0x196)])[_0x3c25a8(0x11c,_0x173245._0x1d8362,0xe5,_0x173245._0x15f1dd)](()=>null);if(!_0x3fcf40?.[_0x4fa8f1(-0x2,-_0x173245._0x58022b,-0x85,0x1a)]())throw Object[_0x3c25a8(0x130,_0x173245._0x5dd02f,-0x21,_0x173245._0x952897)](new Error(_0x3c25a8(0x187,0x265,_0x173245._0x48ab8e,_0x173245._0x37fa34)+_0x4ab5d5[_0x3c25a8(0x14a,_0x173245._0x21f94c,0x126,_0x173245._0x164333)]+'\x27'),{'code':'ENOENT'});}const _0x384067=['-nH','--field-match-separator=|',_0x3c25a8(0xf0,0xc0,-_0x173245._0x25e806,0x1dc),_0x4fa8f1(_0x173245._0x1e6ff9,_0x173245._0x5842ea,_0x173245._0x26a919,-_0x173245._0x380788),_0x4ab5d5[_0x4fa8f1(0x158,0x1de,_0x173245._0x24244f,0x97)]];function _0x3c25a8(_0x3d3159,_0x3539be,_0x3bd4f8,_0x11c398){return _0x57b9de(_0x3d3159-0x135,_0x11c398,_0x3d3159- -0x247,_0x11c398-_0x2b3fb2._0x36c683);}const _0x54b4d1=typeof _0x4ab5d5[_0x3c25a8(0x292,_0x173245._0x29c7bc,0x33c,_0x173245._0x91b81)]===_0x4fa8f1(0x116,0x260,0x9e,0x4)&&_0x4ab5d5[_0x3c25a8(0x292,0x218,0x3a7,0x306)]>0x0;_0x54b4d1&&_0x384067[_0x3c25a8(_0x173245._0x49bdbd,_0x173245._0x4b28f4,_0x173245._0x298fe8,0x22c)]('-C',String(_0x4ab5d5['context']),_0x4fa8f1(-_0x173245._0x84c772,-0x13b,0xb,0x83));function _0x4fa8f1(_0x1914aa,_0x59e580,_0x515683,_0xd55da6){return _0x23b1c2(_0x1914aa-0x90,_0x59e580,_0x1914aa- -_0x1b13d0._0x21eb09,_0xd55da6-0x38);}return _0x4ab5d5[_0x3c25a8(0xa9,0xcf,0x196,_0x173245._0x201f22)]&&!_0x4ab5d5['file']&&_0x384067[_0x3c25a8(0x1fc,_0x173245._0x49e685,0x18a,_0x173245._0x44f0e6)]('--glob',_0x4ab5d5[_0x3c25a8(_0x173245._0x3330af,-_0x173245._0x132b5d,_0x173245._0x28cd7f,_0x173245._0x29890e)]),_0x384067[_0x3c25a8(0x1fc,0x163,_0x173245._0x5dad89,_0x173245._0x59de7b)](_0x4ab5d5[_0x3c25a8(_0x173245._0x59584a,_0x173245._0x463f4a,0x333,_0x173245._0x298fe8)]??_0x4ab5d5[_0x4fa8f1(-_0x173245._0x2a1085,-0x6c,-0x1bc,-0x24)]),await new Promise((_0x5bd18e,_0x35d264)=>{const _0x359639={_0x380136:0x52e,_0x2b21da:0x27f,_0x804d2d:0x372},_0x5564b0={_0x5759a1:0x107},_0x2c5eb3={_0x3971a2:0x20c},_0x3f45c1=_0x2f0fb2(_0x3d0fd2,_0x384067,{'cwd':_0x4ab5d5[_0x18f628(_0x4871b4._0x43c221,0x366,0x300,_0x4871b4._0x292e21)],'stdio':[_0x2aee43(0x44,-_0x4871b4._0x1f08a8,-0xef,_0x4871b4._0x4386a9),_0x18f628(0x5b5,0x5f0,_0x4871b4._0x18787d,_0x4871b4._0x1ac2f6),'pipe']});let _0x240060='',_0x333e37='';_0x3f45c1['stdout']?.['on'](_0x18f628(_0x4871b4._0x2bce97,_0x4871b4._0x4a87c5,_0x4871b4._0x5bf806,_0x4871b4._0x56260d),_0x11e87e=>{_0x240060+=_0x11e87e['toString']();}),_0x3f45c1[_0x18f628(_0x4871b4._0xe03837,_0x4871b4._0x1e565d,_0x4871b4._0x2ec541,0x4d3)]?.['on'](_0x2aee43(_0x4871b4._0x1d1fe9,0x23f,_0x4871b4._0x5ca3ab,_0x4871b4._0xa41ff3),_0x512e3b=>{_0x333e37+=_0x512e3b['toString']();});function _0x2aee43(_0x58c1ff,_0x36681c,_0x4e1fdb,_0x4ade04){return _0x4fa8f1(_0x58c1ff-_0x2b9607._0x3d65e8,_0x4e1fdb,_0x4e1fdb-_0x2b9607._0x44f22f,_0x4ade04-_0x2b9607._0x2a078d);}_0x3f45c1['on'](_0x2aee43(0x107,-0x34,_0x4871b4._0x22247a,_0x4871b4._0x252fed),_0x126267=>{if(_0x126267===0x1&&_0x240060===''){_0x5bd18e([]);return;}if(_0x126267!==0x0&&_0x126267!==0x1){_0x35d264(new Error(_0x245f95(0x54b,_0x359639._0x380136,0x44f,0x677)+_0x333e37));return;}const _0x56434c=_0x4ab5d5['limit']??0x64;function _0x18ce9a(_0xf795a4,_0x250674,_0x1d297b,_0x224184){return _0x18f628(_0x1d297b- -_0x2c5eb3._0x3971a2,_0x250674-0xf0,_0x1d297b-0x20,_0xf795a4);}const _0x4020f8=[];function _0x245f95(_0x4196df,_0x322714,_0x246376,_0x3ddebe){return _0x2aee43(_0x4196df-0x37d,_0x322714-_0x5564b0._0x5759a1,_0x3ddebe,_0x3ddebe-0x1d7);}for(const _0x1db71e of _0x240060['split'](/\r?\n/)){if(_0x4020f8['length']>=_0x56434c)break;const _0x3d160d=parseMatchLine(_0x1db71e,_0x54b4d1);if(_0x3d160d)_0x4020f8[_0x18ce9a(0x150,0x203,_0x359639._0x2b21da,_0x359639._0x804d2d)](_0x3d160d);}_0x5bd18e(_0x4020f8);});function _0x18f628(_0x345687,_0x227dfb,_0x105452,_0x490ea8){return _0x3c25a8(_0x345687-_0x50932e._0x56509f,_0x227dfb-_0x50932e._0x228f51,_0x105452-_0x50932e._0x491e76,_0x490ea8);}_0x3f45c1['on'](_0x2aee43(_0x4871b4._0x1ec18e,0x2c2,0x221,_0x4871b4._0x5113ec),_0x35d264);});}function createGlobTool(_0x1d8e72={}){const _0x184b24={_0x184501:0x430,_0x50d992:0x505,_0xef75b1:0x2be,_0x14699e:0x382,_0x154212:0x4d5,_0x42c8b2:0x296,_0x5cab2e:0x766,_0x27a801:0x7e9,_0x3f1f13:0x8cf,_0x8db879:0x71c,_0x929cb7:0x881,_0x2aab01:0x326,_0x4999af:0x4d0,_0x4a8969:0x3be,_0x3753ee:0x324,_0x5e11d8:0x46a},_0x347210={_0x39d5ae:0x22c,_0x5e4efd:0x25c,_0x1d4c13:0x181,_0x18bdb8:0x5e,_0x35bc8b:0x193,_0x5ed528:0xca,_0x50398a:0x254,_0x1947d6:0x1cc,_0x16ceb9:0x15e,_0x529506:0x217,_0x5f5b27:0xdf,_0x797911:0x708,_0x51af39:0x847,_0x54e1aa:0x228,_0x1da1bd:0x1a6,_0x1738b6:0x329,_0x55af1d:0xfa,_0x101113:0x17e,_0x13bbeb:0xb4,_0x1631c4:0xd7,_0x1ef839:0xaf,_0x504883:0x6a,_0x57296f:0x3fa,_0x1c75aa:0x485,_0x123043:0x2f5,_0x1f0bec:0x25c,_0x2c06fa:0x32f,_0x4b4103:0x263,_0x2ccae7:0x47,_0x13d1a1:0x235,_0x7b91df:0x140,_0x2bd7f6:0x50f,_0x5674ec:0x613,_0x96a096:0x531,_0x9dc739:0x7f0,_0x1a9e16:0x6e3,_0x3ebcb5:0x70c,_0x2a62e2:0x5df,_0x527668:0x706,_0xbeb2bc:0x71c,_0x44d762:0x53b,_0xe67712:0xdd,_0x72e260:0x9f,_0x2b32f5:0x755,_0x1cd904:0x6c,_0x4dc019:0x135,_0x2c0379:0x34c},_0x2fcb49={_0x4bfcc8:0x83,_0x3d178a:0x2f4,_0x8dc73:0x17a},_0xba2406={_0x1ad3d5:0x2b},_0x385c3e={_0x2f8ace:0x49,_0x296197:0x293,_0x9e2a3:0x37},_0x582b9d={_0x24d3a6:0x1ef},_0x19dd8a=_0x1ac8bd[_0x44dc22(_0x184b24._0x184501,0x3dc,0x310,_0x184b24._0x50d992)](_0x1d8e72['defaultCwd']??process[_0x44dc22(_0x184b24._0xef75b1,_0x184b24._0x14699e,_0x184b24._0x154212,_0x184b24._0x42c8b2)]());function _0x44dc22(_0x164416,_0x57744b,_0x2d1bf7,_0x491087){return _0x23b1c2(_0x164416-0x1bc,_0x491087,_0x57744b-0x9f,_0x491087-_0x582b9d._0x24d3a6);}const _0x44a736=(_0x1d8e72[_0x598f3a(0x65e,_0x184b24._0x5cab2e,0x624,_0x184b24._0x27a801)]??[])[_0x598f3a(_0x184b24._0x3f1f13,0x7c7,_0x184b24._0x8db879,_0x184b24._0x929cb7)](_0x425fa9=>_0x1ac8bd[_0x598f3a(0x5c5,0x67e,0x5c3,0x62d)](_0x425fa9)),_0x49a6bc=_0x1d8e72['limit']??0x64,_0x5afc4e=_0x1d8e72[_0x44dc22(0x481,0x404,0x403,_0x184b24._0x2aab01)]??_0x44dc22(_0x184b24._0x4999af,_0x184b24._0x4a8969,0x2be,0x495);function _0x598f3a(_0x34f929,_0x24a893,_0x3debf3,_0x804018){return _0x57b9de(_0x34f929-_0x385c3e._0x2f8ace,_0x34f929,_0x24a893-_0x385c3e._0x296197,_0x804018-_0x385c3e._0x9e2a3);}return defineTool({'name':_0x5afc4e,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':'object','properties':{'pattern':{'type':'string'},'path':{'type':_0x44dc22(0x2b7,_0x184b24._0x3753ee,0x23e,_0x184b24._0x5e11d8)},'limit':{'type':'number'}},'required':[_0x44dc22(0x649,0x550,0x567,0x553)]},async *'execute'(_0x3586ca){function _0x2b03c1(_0x5326fd,_0x1856a3,_0x3f5199,_0x236871){return _0x598f3a(_0x5326fd,_0x3f5199- -0xe4,_0x3f5199-_0xba2406._0x1ad3d5,_0x236871-0xd8);}if(_0x3586ca[_0x3ab088(_0x347210._0x39d5ae,_0x347210._0x5e4efd,0x124,0x282)][_0x3ab088(_0x347210._0x1d4c13,_0x347210._0x18bdb8,_0x347210._0x35bc8b,-_0x347210._0x5ed528)]()[_0x3ab088(0x213,_0x347210._0x50398a,0x179,0x20d)]===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x289986=resolveAllowedPath(_0x19dd8a,_0x44a736,_0x3586ca[_0x3ab088(_0x347210._0x1947d6,0x228,_0x347210._0x16ceb9,_0x347210._0x529506)]??'.'),_0x47b6cc=await _0x534a77(_0x289986)[_0x3ab088(-_0x347210._0x5f5b27,0x60,0xbb,0x10a)](()=>null);if(!_0x47b6cc?.['isDirectory']())throw new ToolExecutionError(_0x2b03c1(0x6b5,0x6eb,_0x347210._0x797911,_0x347210._0x51af39)+(_0x3586ca[_0x3ab088(0x200,_0x347210._0x54e1aa,_0x347210._0x1da1bd,0x21e)]??'.'),{'path':_0x3586ca[_0x3ab088(_0x347210._0x1738b6,_0x347210._0x54e1aa,_0x347210._0x55af1d,0x225)]??'.'});const _0x590185=_0x3586ca[_0x3ab088(-0x91,0x89,_0x347210._0x101113,_0x347210._0x13bbeb)]??_0x49a6bc;function _0x3ab088(_0x1b2a25,_0x2f7df3,_0x4b174d,_0x27fa16){return _0x44dc22(_0x1b2a25-_0x2fcb49._0x4bfcc8,_0x2f7df3- -_0x2fcb49._0x3d178a,_0x4b174d-_0x2fcb49._0x8dc73,_0x1b2a25);}const _0x1fcf0a=Math[_0x3ab088(_0x347210._0x1631c4,_0x347210._0x1ef839,0xcc,-_0x347210._0x504883)](0x1,Math[_0x2b03c1(_0x347210._0x57296f,0x583,0x49d,_0x347210._0x1c75aa)](_0x590185)),_0x24cdae=[];let _0x339083=![];for await(const _0x1adacd of files({'cwd':_0x289986,'glob':[_0x3586ca[_0x3ab088(_0x347210._0x123043,_0x347210._0x1f0bec,0x19f,0x217)]]})){if(_0x24cdae[_0x3ab088(_0x347210._0x2c06fa,0x254,0x14c,_0x347210._0x4b4103)]>=_0x1fcf0a){_0x339083=!![];break;}const _0x297a39=await _0x534a77(_0x1ac8bd[_0x3ab088(-_0x347210._0x2ccae7,0x9c,0x133,-0x72)](_0x289986,_0x1adacd))[_0x3ab088(-0x8f,0x60,0x36,0xa6)](()=>null);_0x24cdae[_0x3ab088(_0x347210._0x13d1a1,_0x347210._0x7b91df,0x244,0x12f)]({'path':_0x1adacd,'mtime':_0x297a39?.[_0x2b03c1(_0x347210._0x2bd7f6,0x6af,_0x347210._0x5674ec,_0x347210._0x96a096)]??0x0});}_0x24cdae['sort']((_0x40f6f9,_0x3e6a11)=>_0x3e6a11['mtime']-_0x40f6f9['mtime']);const _0x151f42=_0x24cdae[_0x2b03c1(_0x347210._0x9dc739,0x7d3,_0x347210._0x1a9e16,_0x347210._0x3ebcb5)](_0x4d99e4=>_0x4d99e4['path']),_0x131aa0=_0x151f42[_0x2b03c1(_0x347210._0x2a62e2,0x807,_0x347210._0x527668,_0x347210._0xbeb2bc)]===0x0?_0x2b03c1(0x66c,_0x347210._0x44d762,0x5a2,0x6f0)+_0x3586ca['pattern']:''+_0x151f42[_0x3ab088(0xdf,0x9c,_0x347210._0xe67712,0x1d5)]('\x0a')+(_0x339083?_0x3ab088(-0x3,0x92,0x25,-_0x347210._0x72e260):'');return yield createToolOutput(_0x131aa0,{'pattern':_0x3586ca[_0x2b03c1(0x83d,0x719,0x70e,_0x347210._0x2b32f5)],'searchPath':_0x1ac8bd[_0x3ab088(0x1a3,0x5c,-_0x347210._0x1cd904,0x75)](_0x19dd8a,_0x289986)||'.','matches':_0x151f42,'count':_0x151f42[_0x3ab088(0x159,0x254,_0x347210._0x4dc019,_0x347210._0x2c0379)],'truncated':_0x339083}),void 0x0;}});}import{stat as _0x55b491}from'fs/promises';import*as _0x529715 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x377c37={}){const _0x1e4b86={_0x3f3eeb:0x7c,_0x4cde2e:0xa1,_0x176030:0x166,_0x1b22b0:0x37,_0x15da0e:0x4a,_0x23d5c4:0xbc,_0x1a5f86:0x89,_0x5b2b43:0x19,_0x97530b:0xb9,_0x26bc0f:0x144,_0x81b8c0:0x11a,_0x3f7824:0x163,_0x481ca5:0x43,_0x59854e:0x8e,_0x1ea5a1:0x6d,_0x461956:0x448,_0x5d108c:0x2fc,_0x4c6c11:0x470,_0x2b42de:0x23b,_0x58e241:0x30d,_0x3c68b9:0x15c,_0x59d2f2:0x21c,_0x261e48:0x1ce,_0x18c457:0x21c,_0x48e5da:0x2f6,_0xf84b3e:0xbb,_0x36c338:0x103,_0x1f3c2f:0x93,_0x39c59e:0x404},_0x343f95={_0x4fc362:0x5ff,_0x29b2c6:0x57a,_0x498f0d:0x5f3,_0x17e079:0x632,_0x41e469:0x1d4,_0x3c0e79:0x127,_0x2fae78:0x4,_0x33ed89:0x518,_0x13ce91:0x59e,_0x21c356:0x669,_0x377ce0:0x737,_0x112295:0x69e,_0x5bad51:0x16d,_0x27891d:0x29d,_0x2c4c73:0x26e,_0x2f490f:0x23e,_0x3d675c:0x725,_0x11fa80:0x6f7,_0xb2e8cf:0x714,_0x388c81:0x709,_0x33041b:0x5a,_0x546d04:0x158,_0x59067b:0x39,_0x2843a7:0x5f7,_0xf86ef6:0x2a,_0x2c5fd5:0x4e,_0x4b2fab:0x227,_0x1428bf:0x2a4,_0x50f411:0x235,_0xc6e9d6:0x305,_0x478c1b:0x5d,_0xdf0c65:0x8b,_0x1866ec:0x526,_0x4af047:0x5b3,_0xa24fe4:0x64e,_0x4d057a:0x637,_0x49e23a:0x73,_0x56b42f:0x104,_0x5a1f36:0x16e,_0xe2bf99:0x682,_0x5030ed:0x5d4,_0x21376d:0x72,_0x2430a9:0x15a,_0x680a01:0x6a1,_0x3cd6d8:0x674,_0x1821a6:0x24,_0x3a7070:0x13f,_0x171d21:0x115,_0x457c2c:0x5e,_0x2018bb:0x66,_0x3db0bd:0x103,_0x42bac7:0xc0,_0x40af2d:0x125,_0x445b13:0x746,_0x13915c:0x76a,_0x14d370:0x63e,_0x538e8b:0x640,_0x3ffe6b:0x567,_0x3cb2ec:0x73b,_0x115cd4:0x586,_0x539959:0xd5,_0x17579c:0x2c,_0x5b722a:0x1b,_0xd4e21f:0x811,_0x3dc45e:0x78a,_0x552f1f:0x787,_0x4dd43b:0x555,_0x46ad2a:0x659,_0x467f8a:0x5af,_0x33a7fd:0xb9,_0x9fd3d2:0x84b,_0x15dae4:0x787,_0x1bcdaa:0x6d9,_0x66168a:0x5e5,_0x1ffe93:0x571,_0x15d29a:0x4a6,_0x5c88a9:0x4f4,_0x407ff6:0x568,_0x104e2d:0x261,_0x59a359:0x158,_0x4dd71e:0x6e6,_0x443f2e:0x5b0,_0x370c88:0x4fe,_0x2ac2db:0x633},_0x5861f7={_0x29d113:0x6b,_0x32ada4:0x117};function _0x5f5cc0(_0x4c35a1,_0xb9ba61,_0x268ca1,_0x5d8c9d){return _0x23b1c2(_0x4c35a1-0xc9,_0x5d8c9d,_0x268ca1- -0x36c,_0x5d8c9d-0x12);}const _0x4e56d5=_0x529715[_0x5f5cc0(-0xc6,0x7a,-0x2f,-_0x1e4b86._0x3f3eeb)](_0x377c37[_0x5f5cc0(-_0x1e4b86._0x4cde2e,-_0x1e4b86._0x176030,-_0x1e4b86._0x1b22b0,_0x1e4b86._0x15da0e)]??process[_0x5f5cc0(0x1c,_0x1e4b86._0x23d5c4,-_0x1e4b86._0x1a5f86,-_0x1e4b86._0x5b2b43)]()),_0x55c04c=(_0x377c37[_0x5f5cc0(0x8a,0x10e,_0x1e4b86._0x97530b,0x143)]??[])[_0x5f5cc0(0x41,_0x1e4b86._0x26bc0f,_0x1e4b86._0x81b8c0,-0x23)](_0x299cc8=>_0x529715['resolve'](_0x299cc8)),_0x59a345=_0x377c37[_0x5f5cc0(-_0x1e4b86._0x3f7824,-_0x1e4b86._0x481ca5,-_0x1e4b86._0x59854e,_0x1e4b86._0x1ea5a1)]??0x64;function _0x129b90(_0x474695,_0x49010f,_0x44dc1e,_0x4480c8){return _0x57b9de(_0x474695-_0x5861f7._0x29d113,_0x49010f,_0x44dc1e- -_0x5861f7._0x32ada4,_0x4480c8-0x115);}const _0xac5372=_0x377c37[_0x129b90(0x22f,_0x1e4b86._0x461956,_0x1e4b86._0x5d108c,0x1c8)]??'Grep';return defineTool({'name':_0xac5372,'description':_0x129b90(_0x1e4b86._0x4c6c11,_0x1e4b86._0x2b42de,0x378,0x256),'inputSchema':{'type':'object','properties':{'pattern':{'type':_0x129b90(_0x1e4b86._0x58e241,_0x1e4b86._0x3c68b9,_0x1e4b86._0x59d2f2,0x12f)},'path':{'type':'string'},'include':{'type':_0x129b90(0x241,_0x1e4b86._0x261e48,_0x1e4b86._0x18c457,_0x1e4b86._0x48e5da)},'limit':{'type':_0x5f5cc0(_0x1e4b86._0xf84b3e,0x167,_0x1e4b86._0x36c338,_0x1e4b86._0x1f3c2f)},'context':{'type':_0x5f5cc0(0xb6,0xae,_0x1e4b86._0x36c338,0x246)}},'required':[_0x129b90(_0x1e4b86._0x39c59e,0x4c3,0x448,0x4d5)]},async *'execute'(_0x29c7ff){const _0x5dca56={_0x138be3:0x63,_0x5ca67f:0x112},_0x1f58ec={_0x1bab3c:0x192,_0xfcce70:0x1c4};if(_0x29c7ff['pattern'][_0x96b5eb(0x578,_0x343f95._0x4fc362,_0x343f95._0x29b2c6,_0x343f95._0x498f0d)]()['length']===0x0)throw new ToolExecutionError('pattern\x20is\x20required',{});const _0x383b6f=resolveAllowedPath(_0x4e56d5,_0x55c04c,_0x29c7ff[_0x96b5eb(0x6ac,_0x343f95._0x17e079,0x744,0x6a1)]??'.'),_0xb7174f=await _0x55b491(_0x383b6f)['catch'](()=>null);function _0x96b5eb(_0x3cd4f4,_0x354278,_0x3ab474,_0x3eb4b3){return _0x5f5cc0(_0x3cd4f4-_0x1f58ec._0x1bab3c,_0x354278-_0x1f58ec._0xfcce70,_0x3ab474-0x633,_0x3eb4b3);}const _0x47a60f=_0xb7174f?.[_0x12a914(-0x16c,-0x1d9,-0x1f8,-0x27d)]()??![],_0x315821=_0xb7174f?.[_0x12a914(-_0x343f95._0x41e469,-0xbb,-_0x343f95._0x3c0e79,-_0x343f95._0x2fae78)]()??![];if(!_0x47a60f&&!_0x315821)throw new ToolExecutionError(_0x96b5eb(_0x343f95._0x33ed89,0x456,_0x343f95._0x13ce91,0x4d4)+(_0x29c7ff[_0x96b5eb(_0x343f95._0x21c356,0x6e0,0x744,0x647)]??'.'),{'path':_0x29c7ff[_0x96b5eb(_0x343f95._0x377ce0,_0x343f95._0x112295,0x744,0x61f)]??'.'});const _0x25e1e=_0x29c7ff['limit']??_0x59a345,_0x285e1d=Math[_0x12a914(-_0x343f95._0x5bad51,-0x11b,-0x17a,-_0x343f95._0x27891d)](0x1,Math[_0x12a914(-_0x343f95._0x2c4c73,-0x1fa,-_0x343f95._0x2f490f,-0x264)](_0x25e1e)),_0x5bedf0=await search({'cwd':_0x315821?_0x383b6f:_0x529715[_0x96b5eb(0x7cf,0x575,0x683,_0x343f95._0x3d675c)](_0x383b6f),'pattern':_0x29c7ff[_0x96b5eb(_0x343f95._0x11fa80,_0x343f95._0xb2e8cf,0x778,_0x343f95._0x388c81)],'glob':_0x315821?_0x29c7ff[_0x12a914(-_0x343f95._0x33041b,-0x1a3,-_0x343f95._0x546d04,-_0x343f95._0x59067b)]:void 0x0,'limit':_0x285e1d,'file':_0x47a60f?_0x383b6f:void 0x0,'context':_0x29c7ff['context']}),_0x40c24f=new Map();for(const _0x5965b4 of _0x5bedf0){if(!_0x40c24f[_0x96b5eb(0x5a7,_0x343f95._0x2843a7,0x5c8,0x6a9)](_0x5965b4[_0x12a914(_0x343f95._0xf86ef6,0x92,-0x8b,_0x343f95._0x2c5fd5)])){const _0x426c83=await _0x55b491(_0x5965b4['filePath'])[_0x12a914(-0x221,-_0x343f95._0x4b2fab,-0x1c9,-_0x343f95._0x1428bf)](()=>null);_0x40c24f[_0x12a914(-0xf1,-0xef,-_0x343f95._0x50f411,-_0x343f95._0xc6e9d6)](_0x5965b4[_0x12a914(-_0x343f95._0x478c1b,-0x109,-_0x343f95._0xdf0c65,0xa)],{'matches':[],'mtime':_0x426c83?.['mtimeMs']??0x0});}_0x40c24f[_0x96b5eb(_0x343f95._0x1866ec,0x4c4,_0x343f95._0x4af047,_0x343f95._0xa24fe4)](_0x5965b4[_0x96b5eb(_0x343f95._0x4d057a,0x68b,0x6ba,0x5cc)])?.[_0x12a914(0x13,-_0x343f95._0x49e23a,-_0x343f95._0x56b42f,-_0x343f95._0x5a1f36)][_0x96b5eb(_0x343f95._0xe2bf99,0x687,0x65c,_0x343f95._0x5030ed)](_0x5965b4);}const _0x5193b1=[..._0x40c24f[_0x12a914(0x7c,-0x1f9,-0xd3,_0x343f95._0x21376d)]()][_0x12a914(-_0x343f95._0x2430a9,-0x26f,-0x1a9,-0x233)]((_0x387cb0,_0x3b1bb6)=>_0x3b1bb6[0x1][_0x12a914(0xd4,0xb4,0x9,-0x110)]-_0x387cb0[0x1][_0x12a914(-0xbb,-0xbb,0x9,-0x12)]);function _0x12a914(_0xd8155d,_0x11ae62,_0x5f2030,_0x44ea73){return _0x5f5cc0(_0xd8155d-0x31,_0x11ae62-_0x5dca56._0x138be3,_0x5f2030- -_0x5dca56._0x5ca67f,_0xd8155d);}const _0x210b9e=_0x5bedf0[_0x96b5eb(0x783,0x71f,_0x343f95._0x680a01,_0x343f95._0x3cd6d8)](_0x20315e=>!_0x20315e['isContext'])['length'],_0x1b4fd2=_0x5bedf0[_0x12a914(_0x343f95._0x1821a6,_0x343f95._0x3a7070,0x2b,-_0x343f95._0x171d21)]>=_0x285e1d,_0x184a9e=_0x47a60f?_0x529715[_0x12a914(0x3f,-0x1ad,-0xc2,_0x343f95._0x457c2c)](_0x383b6f):_0x383b6f;let _0x382a1a='';if(_0x5bedf0[_0x12a914(-_0x343f95._0x2018bb,0x100,0x2b,-0x88)]===0x0)_0x382a1a=_0x12a914(-_0x343f95._0x3db0bd,-0xe7,-_0x343f95._0x42bac7,-_0x343f95._0x40af2d)+_0x29c7ff['pattern'];else{_0x382a1a=_0x96b5eb(_0x343f95._0x445b13,0x68e,0x734,_0x343f95._0x13915c)+_0x210b9e+_0x96b5eb(0x5f6,0x732,_0x343f95._0x14d370,_0x343f95._0x538e8b)+(_0x210b9e===0x1?'':'es')+'\x0a';for(const [_0x4f2464,_0x60ba1]of _0x5193b1){const _0x2359ad=_0x47a60f?_0x529715[_0x96b5eb(0x505,0x657,_0x343f95._0x3ffe6b,0x596)](_0x4f2464):_0x529715['relative'](_0x184a9e,_0x4f2464);_0x382a1a+='\x0a'+_0x2359ad+':\x0a';for(const _0x26f8a1 of _0x60ba1[_0x96b5eb(_0x343f95._0x3cb2ec,_0x343f95._0x115cd4,0x641,0x5de)]){const _0x333698=_0x26f8a1[_0x12a914(-_0x343f95._0x539959,-_0x343f95._0x17579c,0x42,_0x343f95._0x5b722a)]['length']>MAX_LINE_LENGTH?_0x26f8a1[_0x96b5eb(_0x343f95._0xd4e21f,_0x343f95._0x3dc45e,_0x343f95._0x552f1f,0x8ad)][_0x96b5eb(_0x343f95._0x4dd43b,0x687,_0x343f95._0x46ad2a,_0x343f95._0x467f8a)](0x0,MAX_LINE_LENGTH)+_0x12a914(-0x18,-0xa1,-0x2b,-_0x343f95._0x33a7fd):_0x26f8a1[_0x96b5eb(_0x343f95._0x9fd3d2,0x6dc,_0x343f95._0x15dae4,0x84e)],_0x121a30=_0x26f8a1[_0x96b5eb(_0x343f95._0x5030ed,_0x343f95._0x1bcdaa,_0x343f95._0x66168a,_0x343f95._0x1ffe93)]?'\x20\x20':'>\x20';_0x382a1a+=_0x121a30+_0x12a914(0xee,0xdd,0x4e,-0x30)+_0x26f8a1[_0x96b5eb(_0x343f95._0x15d29a,_0x343f95._0x5c88a9,0x5c5,0x6a9)]+':\x20'+_0x333698+'\x0a';}}_0x1b4fd2&&(_0x382a1a+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0xf1875b={'searchPath':_0x529715[_0x96b5eb(_0x343f95._0x407ff6,0x463,0x578,0x4e8)](_0x4e56d5,_0x383b6f)||'.','pattern':_0x29c7ff[_0x12a914(-0x21,0xbf,0x33,-0x76)],'matchCount':_0x210b9e,'fileCount':_0x40c24f[_0x96b5eb(0x5f5,0x626,0x6cd,0x69c)],'truncated':_0x1b4fd2};return _0x315821&&_0x29c7ff[_0x12a914(-_0x343f95._0x104e2d,-0xcd,-_0x343f95._0x59a359,-0x24c)]!==void 0x0&&(_0xf1875b[_0x12a914(-0x1fb,-0xad,-_0x343f95._0x59a359,-0x59)]=_0x29c7ff[_0x96b5eb(_0x343f95._0x4dd71e,_0x343f95._0x443f2e,0x5ed,_0x343f95._0x370c88)]),yield createToolOutput(_0x382a1a[_0x96b5eb(0x5af,_0x343f95._0x2ac2db,0x57a,0x4b5)](),_0xf1875b),void 0x0;}});}import{readdir as _0x330493,readFile as _0x21365,stat as _0x38f6f2}from'fs/promises';import*as _0x61565e from'path';import*as _0x56412e from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x1e6a1c,_0xa36605){const _0x59815e={_0x4ec8b4:0x86,_0x133879:0x13,_0x3d93f0:0x18b,_0x346d28:0x1b6,_0x4c9bde:0x121,_0x583b09:0x66d,_0x5a8a46:0x716,_0x4a5dbf:0x7ca,_0xd105aa:0x788,_0x4d53aa:0x1ae},_0x2d2c85={_0x4403a4:0x10a},_0xc1f2f1={_0x14e084:0xee,_0x15472b:0x2dd,_0xe45cb2:0xaa};if(_0xa36605>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x1b466d(_0x2c7e55,_0x6f363b,_0xa7975b,_0x24790c){return _0x57b9de(_0x2c7e55-_0xc1f2f1._0x14e084,_0x24790c,_0x2c7e55- -_0xc1f2f1._0x15472b,_0x24790c-_0xc1f2f1._0xe45cb2);}function _0x2d609a(_0x286e09,_0x5f46a7,_0x52e2b9,_0x2211ee){return _0x23b1c2(_0x286e09-0x8,_0x286e09,_0x52e2b9-0x31c,_0x2211ee-_0x2d2c85._0x4403a4);}const _0x56f5ca=await _0x21365(_0x1e6a1c)[_0x1b466d(_0x59815e._0x4ec8b4,_0x59815e._0x133879,_0x59815e._0x3d93f0,-0x1)](()=>null);if(!_0x56f5ca||isProbablyBinary(_0x56f5ca))return void 0x0;return _0x56f5ca[_0x1b466d(0x213,0x2dc,_0x59815e._0x346d28,_0x59815e._0x4c9bde)](_0x2d609a(_0x59815e._0x583b09,_0x59815e._0x5a8a46,0x724,0x6a9))[_0x2d609a(0x6c0,_0x59815e._0x4a5dbf,_0x59815e._0xd105aa,0x6eb)](/\r?\n/)[_0x1b466d(0x27a,0x3a7,0x13c,_0x59815e._0x4d53aa)];}function createLsTool(_0x363855={}){const _0x1901ed={_0x5a20c6:0x29b,_0xc7df89:0x3b3,_0xf92675:0x3d0,_0x40cec1:0x3df,_0x1587a9:0x293,_0x446288:0x283,_0x37b50e:0x241,_0x442dda:0x15e,_0x54fe1a:0x2f5,_0x9a8021:0x276,_0x4041a6:0x315,_0x5c6851:0x21a,_0x4cde4a:0x2a5,_0x148830:0x61},_0x2a1af={_0x47bfcc:0x1d0,_0x45317e:0x214,_0x3aa9ca:0x22,_0x5118f9:0x47,_0x451a20:0x107,_0x4e99bb:0x29f,_0xb19fb7:0x2ba,_0x3c7169:0x4f,_0x46908d:0x15,_0x442e60:0x742,_0x1a9e7d:0x142,_0x3d5d75:0x562,_0x1e2c8f:0x61b,_0x12163f:0x672,_0x3dbe78:0x65,_0x4929f5:0x2f3,_0x540a5a:0x5b0,_0x263bdd:0x107,_0x5b0734:0x4a,_0x2efb85:0x205,_0x27e61:0x139,_0x4e8636:0x1a,_0x5e7188:0x3a,_0x2f2f0d:0x3e,_0x3582a4:0x155,_0x4a6621:0x730,_0x1a0dbe:0x166,_0x5bf4f1:0x2ad,_0x1cce20:0x13d,_0x57f55a:0x19a,_0x39906d:0x209,_0x3986b8:0x7d1,_0x50d811:0x730,_0x5c1bf5:0x80f,_0x5e4e6f:0x59f,_0x4709db:0x6bf,_0x22610d:0x6d6,_0x10dce6:0x7d3,_0x1bca9c:0x785,_0x2c75c0:0x6f9,_0x3d6dc3:0x698,_0x5acfe1:0x8a9,_0x869dc1:0x7c2,_0xa67517:0x6ff,_0x54a53a:0x7fc,_0x28698f:0x7d4,_0x2d7f9c:0x7d3},_0x125bf1={_0x516239:0x150,_0x582c6f:0x4c},_0x34b4d8=_0x61565e[_0x1bc4f1(_0x1901ed._0x5a20c6,_0x1901ed._0xc7df89,_0x1901ed._0xf92675,_0x1901ed._0x40cec1)](_0x363855[_0x1bc4f1(_0x1901ed._0x1587a9,_0x1901ed._0x446288,0x35a,0x256)]??process[_0x1bc4f1(_0x1901ed._0x37b50e,_0x1901ed._0x442dda,_0x1901ed._0x54fe1a,_0x1901ed._0x9a8021)]()),_0x33931f=(_0x363855[_0x128e37(0x139,0x1c9,0x110,0xd7)]??[])['map'](_0x45c1f2=>_0x61565e['resolve'](_0x45c1f2)),_0x1cb02c=_0x363855['name']??'Ls';function _0x128e37(_0x4b7b4e,_0x422425,_0x312029,_0xcc9fac){return _0x23b1c2(_0x4b7b4e-0x29,_0xcc9fac,_0x4b7b4e- -0x2ec,_0xcc9fac-0x140);}function _0x1bc4f1(_0x4f276d,_0x7f840d,_0x321102,_0x104e35){return _0x57b9de(_0x4f276d-0xfd,_0x104e35,_0x4f276d- -_0x125bf1._0x516239,_0x104e35-_0x125bf1._0x582c6f);}return defineTool({'name':_0x1cb02c,'description':_0x1bc4f1(0x41c,0x3b9,_0x1901ed._0x4041a6,0x4f6),'inputSchema':{'type':'object','properties':{'path':{'type':_0x1bc4f1(0x1e3,_0x1901ed._0x5c6851,_0x1901ed._0x4cde4a,0x23e)},'limit':{'type':_0x128e37(0x183,0x8d,_0x1901ed._0x148830,0x13a)}}},async *'execute'(_0x49e2f1){const _0x987b7={_0x2707b7:0x616,_0x2e1ef8:0x4},_0x27ae3e=_0x49e2f1[_0x11cfba(0x22d,0x29c,_0x2a1af._0x47bfcc,_0x2a1af._0x45317e)]??'.',_0x4dfea7=resolveAllowedPath(_0x34b4d8,_0x33931f,_0x27ae3e),_0xaf3639=await _0x38f6f2(_0x4dfea7)[_0x11cfba(0x65,_0x2a1af._0x3aa9ca,0xca,_0x2a1af._0x5118f9)](()=>null);if(!_0xaf3639?.[_0x11cfba(_0x2a1af._0x451a20,0x1fc,0x12,_0x2a1af._0x47bfcc)]())throw new ToolExecutionError(_0x11cfba(0x25b,0x38d,_0x2a1af._0x4e99bb,_0x2a1af._0xb19fb7)+_0x27ae3e,{'path':_0x27ae3e});function _0x17050d(_0xc309e2,_0x2192c5,_0x9aeb66,_0x33e72c){return _0x128e37(_0x9aeb66-_0x987b7._0x2707b7,_0x2192c5-0x179,_0x9aeb66-_0x987b7._0x2e1ef8,_0x2192c5);}const _0x16ba10=_0x49e2f1[_0x11cfba(0x8e,0x177,_0x2a1af._0x3c7169,_0x2a1af._0x46908d)]??0x3e8;function _0x11cfba(_0x222e44,_0x18946b,_0x468d30,_0x35272e){return _0x1bc4f1(_0x222e44- -0x1ae,_0x18946b-0x10b,_0x468d30-0x198,_0x468d30);}const _0x431e76=Math['min'](Math[_0x17050d(0x58b,_0x2a1af._0x442e60,0x62e,0x6de)](Math['trunc'](_0x16ba10),0x1),0x2710),_0x2ac478=await _0x330493(_0x4dfea7),_0x225616=[];for(const _0x583fe1 of _0x2ac478[_0x11cfba(_0x2a1af._0x1a9e7d,0x227,0x1d1,0x37)](0x0,_0x431e76)){const _0x480ac8=_0x61565e[_0x17050d(_0x2a1af._0x3d5d75,0x6b9,_0x2a1af._0x1e2c8f,_0x2a1af._0x12163f)](_0x4dfea7,_0x583fe1),_0x1ef657=await _0x38f6f2(_0x480ac8)[_0x11cfba(_0x2a1af._0x3dbe78,-0x8d,-0x44,0x10f)](()=>null);if(!_0x1ef657)continue;let _0x2f82bb=_0x11cfba(0x263,_0x2a1af._0x4929f5,0x3ae,0x37d);if(_0x1ef657[_0x17050d(0x4b0,0x4e5,_0x2a1af._0x540a5a,0x614)]())_0x2f82bb=_0x17050d(0x6f0,0x900,0x7e3,0x7c1);else{if(_0x1ef657[_0x11cfba(_0x2a1af._0x263bdd,_0x2a1af._0x5b0734,_0x2a1af._0x2efb85,-0x4a)]())_0x2f82bb='directory';else{if(_0x1ef657[_0x11cfba(_0x2a1af._0x27e61,0x180,_0x2a1af._0x4e8636,_0x2a1af._0x5e7188)]())_0x2f82bb=_0x11cfba(0xfb,0x13d,_0x2a1af._0x2f2f0d,_0x2a1af._0x3582a4);}}const _0x380b2b={'name':_0x583fe1,'type':_0x2f82bb,'size':_0x1ef657[_0x17050d(0x85c,0x752,_0x2a1af._0x4a6621,0x748)],'mtime':_0x1ef657[_0x11cfba(_0x2a1af._0x1a0dbe,_0x2a1af._0x5bf4f1,_0x2a1af._0x1cce20,0x104)],'mode':_0x1ef657[_0x11cfba(0x47,0x100,-0x59,0x136)]},_0x52fd51=_0x2f82bb===_0x11cfba(0x269,_0x2a1af._0x57f55a,0x1bc,_0x2a1af._0x39906d)?await countTextLines(_0x480ac8,_0x1ef657[_0x17050d(0x7b4,_0x2a1af._0x3986b8,_0x2a1af._0x50d811,_0x2a1af._0x5c1bf5)]):void 0x0;if(_0x52fd51!==void 0x0)_0x380b2b['lines']=_0x52fd51;_0x225616[_0x17050d(_0x2a1af._0x5e4e6f,0x7b6,_0x2a1af._0x4709db,_0x2a1af._0x22610d)](_0x380b2b);}_0x225616['sort']((_0x264bb7,_0x5e4619)=>_0x264bb7[_0x11cfba(0x115,0x19,0x16c,0x217)][_0x11cfba(0x253,0x238,0x206,0x1ee)](_0x5e4619[_0x17050d(0x7aa,0x5e5,0x68f,0x775)]));const _0x427010={'path':_0x27ae3e,'total':_0x225616[_0x17050d(0x830,0x907,_0x2a1af._0x10dce6,_0x2a1af._0x1bca9c)],'truncated':_0x2ac478['length']>_0x431e76,'entries':_0x225616};return yield createToolOutput(_0x56412e[_0x17050d(0x5fc,_0x2a1af._0x2c75c0,_0x2a1af._0x3d6dc3,0x771)](_0x427010,{'indent':0x2,'lineWidth':0x0})[_0x17050d(_0x2a1af._0x5acfe1,0x7dc,_0x2a1af._0x869dc1,0x7a6)](),{'path':_0x27ae3e,'total':_0x225616[_0x17050d(0x6d9,0x683,0x7d3,_0x2a1af._0xa67517)],'truncated':_0x2ac478[_0x17050d(_0x2a1af._0x54a53a,_0x2a1af._0x28698f,_0x2a1af._0x2d7f9c,0x770)]>_0x431e76,'limit':_0x431e76,'entries':_0x225616}),void 0x0;}});}import{stat as _0x60fde}from'fs/promises';import _0x12fac7 from'path';import{fileURLToPath as _0x32cd3e}from'url';function severityName(_0x33ab94){const _0x5b72f1={_0x527e86:0x53a,_0x22b910:0x58a,_0x5adaca:0x4fa,_0x4845a5:0xd9,_0x3474b3:0xc2,_0x1d4f32:0x25,_0x12f4e3:0x17e,_0x49cf3b:0xbe,_0x12ebda:0x5c},_0xbbcff={_0x3ab245:0x10},_0x2763db={_0x4cffe0:0xc,_0x55228f:0x3a7};function _0xa0e07a(_0x5b9cf3,_0x5772c1,_0x512c0d,_0x28cdf3){return _0x23b1c2(_0x5b9cf3-_0x2763db._0x4cffe0,_0x5b9cf3,_0x28cdf3- -_0x2763db._0x55228f,_0x28cdf3-0x19c);}function _0xb25f45(_0x27c501,_0x291e71,_0x4cdc14,_0x54c24c){return _0x57b9de(_0x27c501-_0xbbcff._0x3ab245,_0x27c501,_0x291e71-0x179,_0x54c24c-0xd9);}switch(_0x33ab94){case 0x1:return _0xb25f45(0x4ab,_0x5b72f1._0x527e86,_0x5b72f1._0x22b910,_0x5b72f1._0x5adaca);case 0x2:return _0xa0e07a(-0xb8,-0xd0,-0x6a,-_0x5b72f1._0x4845a5);case 0x3:return'Information';case 0x4:return _0xa0e07a(_0x5b72f1._0x3474b3,_0x5b72f1._0x1d4f32,_0x5b72f1._0x12f4e3,_0x5b72f1._0x49cf3b);default:return _0xa0e07a(-0x115,-_0x5b72f1._0x12ebda,-0x137,-0x7c);}}function formatSingleHover(_0x5e45c4){const _0x49e709={_0xc274bb:0x77,_0x17e9b6:0x18b,_0x4f0355:0x185,_0x1570a6:0x19a,_0x4ecde5:0xdd,_0x491636:0x6f3,_0x34ec41:0x1a2,_0x3b0c07:0x48,_0x29d29e:0x172,_0xd31655:0x6f2,_0x5d9117:0x5c3,_0x218056:0x8a,_0x4ffd40:0x168,_0xb9ff41:0x4a8,_0x2ecd7d:0x409,_0x494afd:0x4f7,_0x52b874:0xe5,_0x23da21:0x180,_0x167773:0x78,_0x40f0de:0x8d,_0x5f516f:0x10,_0x1d9e9d:0x812,_0x322c29:0x6e7,_0x2d2f69:0x712,_0x1f2a49:0x93,_0x3f114c:0xff},_0x3f6322={_0x1f4643:0x67,_0x31b2a3:0x26d,_0x3aec06:0x35},_0x404e6f={_0x97fc3e:0x11c,_0x5977db:0x366,_0x4bfdc5:0xe2},_0x5cd6bd=_0x5e45c4[_0x583659(0x42f,0x51f,0x57d,0x676)];function _0x16b806(_0x1c3856,_0x10d345,_0x235fcf,_0x4af956){return _0x23b1c2(_0x1c3856-_0x404e6f._0x97fc3e,_0x1c3856,_0x4af956- -_0x404e6f._0x5977db,_0x4af956-_0x404e6f._0x4bfdc5);}if(typeof _0x5cd6bd===_0x16b806(-_0x49e709._0xc274bb,-_0x49e709._0x17e9b6,-_0x49e709._0x4f0355,-0xe1))return _0x5cd6bd;if(Array[_0x16b806(0x173,_0x49e709._0x1570a6,0x6f,_0x49e709._0x4ecde5)](_0x5cd6bd))return _0x5cd6bd[_0x583659(0x751,0x7c7,_0x49e709._0x491636,0x7ef)](_0x23888b=>typeof _0x23888b===_0x16b806(-0x160,-0x5,-0x171,-0xe1)?_0x23888b:_0x23888b[_0x583659(0x5f7,0x52c,0x5c3,0x545)])[_0x16b806(0x116,_0x49e709._0x34ec41,-_0x49e709._0x3b0c07,0x74)](Boolean)['join']('\x0a\x0a');function _0x583659(_0x581f93,_0x2aecdb,_0x3021f6,_0x3127c7){return _0x23b1c2(_0x581f93-_0x3f6322._0x1f4643,_0x2aecdb,_0x3021f6-_0x3f6322._0x31b2a3,_0x3127c7-_0x3f6322._0x3aec06);}if(_0x16b806(0xef,_0x49e709._0x29d29e,0x201,0x10b)in _0x5cd6bd)return _0x5cd6bd[_0x583659(0x4f3,_0x49e709._0xd31655,_0x49e709._0x5d9117,0x64d)];return _0x5cd6bd[_0x16b806(0x1af,_0x49e709._0x218056,0x14f,_0x49e709._0x4ffd40)]?_0x583659(_0x49e709._0xb9ff41,_0x49e709._0x2ecd7d,_0x49e709._0x494afd,0x4f7)+_0x5cd6bd[_0x16b806(_0x49e709._0x52b874,0x1a3,_0x49e709._0x23da21,_0x49e709._0x4ffd40)]+'\x0a'+_0x5cd6bd[_0x16b806(0x0,_0x49e709._0x167773,-_0x49e709._0x40f0de,-_0x49e709._0x5f516f)]+_0x583659(_0x49e709._0x1d9e9d,_0x49e709._0x322c29,_0x49e709._0x2d2f69,0x744):_0x5cd6bd[_0x16b806(_0x49e709._0x1f2a49,0x21,-_0x49e709._0x3f114c,-_0x49e709._0x5f516f)];}function formatHover(_0x1202e9){const _0x495e51={_0xb699f0:0x91,_0x1ae8db:0x13c,_0x37d474:0x17e,_0x335af5:0x2c1},_0x18559f={_0x396a31:0x97,_0xf5c091:0x510,_0x57484b:0x9c},_0x3889bb={_0x282fbf:0x2b,_0x3110eb:0x1a9};function _0x5ac679(_0x5a6a79,_0x222cdd,_0x1cc403,_0x29f464){return _0x57b9de(_0x5a6a79-0x1ef,_0x222cdd,_0x1cc403- -_0x3889bb._0x282fbf,_0x29f464-_0x3889bb._0x3110eb);}function _0x1db5e6(_0x9e8e35,_0x5bd177,_0x25e432,_0x1601d8){return _0x57b9de(_0x9e8e35-_0x18559f._0x396a31,_0x5bd177,_0x25e432- -_0x18559f._0xf5c091,_0x1601d8-_0x18559f._0x57484b);}if(_0x1202e9['length']===0x0)return _0x1db5e6(_0x495e51._0xb699f0,_0x495e51._0x1ae8db,0x60,_0x495e51._0x37d474);return _0x1202e9[_0x1db5e6(0xbf,0xcf,0x24,0xcf)](formatSingleHover)['join'](_0x1db5e6(-_0x495e51._0x335af5,-0x79,-0x1b9,-0xa2));}function locationPath(_0x448289){const _0x591c8a={_0x44e7c1:0x16e,_0x523e10:0x2e3,_0x32f89c:0x3d3,_0x12def2:0x1b1,_0x5e51bf:0x1b2},_0x48638c={_0x5d15ce:0x1b0,_0x5a31e8:0x192};function _0xc87195(_0x51dd4f,_0x1b68c6,_0x5ded73,_0x174178){return _0x23b1c2(_0x51dd4f-_0x48638c._0x5d15ce,_0x174178,_0x51dd4f- -0x201,_0x174178-_0x48638c._0x5a31e8);}function _0x555238(_0x9e91f0,_0xe8f9b7,_0x1e48ac,_0x2a2385){return _0x57b9de(_0x9e91f0-0xfa,_0x9e91f0,_0x1e48ac-0x18f,_0x2a2385-0x9b);}if(!_0x448289[_0xc87195(_0x591c8a._0x44e7c1,0x1e5,0x62,0x258)](_0xc87195(_0x591c8a._0x523e10,_0x591c8a._0x32f89c,_0x591c8a._0x12def2,_0x591c8a._0x5e51bf)))return _0x448289;return _0x32cd3e(_0x448289);}function formatLocations(_0xb27917){const _0x44c78a={_0x30ca1b:0x3fd,_0xa7c994:0x37c,_0x20f26c:0x2fa,_0xf4f9ea:0x4b4,_0xab2f34:0x3da},_0x1d404c={_0x41ebe4:0x6c0,_0x225acc:0x6ef,_0x439b9c:0x446,_0x3fc18f:0x1b,_0x21d651:0x110,_0x1a376d:0x52},_0x7697e3={_0x19bba6:0xa6},_0x5f2a7e={_0x19ce41:0x28},_0x272680={_0x6fd809:0x3d3};function _0x307848(_0x241833,_0x30acbc,_0x2b55de,_0x545679){return _0x57b9de(_0x241833-0xb,_0x30acbc,_0x545679- -_0x272680._0x6fd809,_0x545679-0x1f1);}function _0x2669a1(_0x39972e,_0x378c01,_0xbe639a,_0x40dda1){return _0x23b1c2(_0x39972e-0x11e,_0x40dda1,_0xbe639a- -0xac,_0x40dda1-_0x5f2a7e._0x19ce41);}if(_0xb27917[_0x2669a1(0x3ce,0x4a4,_0x44c78a._0x30ca1b,0x3f4)]===0x0)return _0x2669a1(0x30b,0x243,_0x44c78a._0xa7c994,0x2cf);return _0xb27917[_0x2669a1(_0x44c78a._0x20f26c,_0x44c78a._0xf4f9ea,_0x44c78a._0xab2f34,0x4e1)](_0x419903=>{const _0x57a60e={_0x407caa:0xbd};function _0x2972c5(_0x436b14,_0x369496,_0x5a0dcf,_0x36112d){return _0x2669a1(_0x436b14-_0x7697e3._0x19bba6,_0x369496-0x140,_0x369496- -0x310,_0x36112d);}const _0x22cadb=_0x419903[_0x1a8925(_0x1d404c._0x41ebe4,0x671,0x76e,_0x1d404c._0x225acc)][_0x1a8925(_0x1d404c._0x439b9c,0x4da,0x64d,0x587)];function _0x1a8925(_0x421766,_0xa90eac,_0x5457eb,_0x455483){return _0x307848(_0x421766-_0x57a60e._0x407caa,_0xa90eac,_0x5457eb-0x1e8,_0x455483-0x55c);}return locationPath(_0x419903['uri'])+':'+(_0x22cadb[_0x2972c5(0x11c,-0xb,_0x1d404c._0x3fc18f,_0x1d404c._0x21d651)]+0x1)+':'+(_0x22cadb[_0x2972c5(-0xb5,-0x7e,_0x1d404c._0x1a376d,-0xb1)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x3428f5){const _0x27c55d={_0x2eb787:0x29,_0xcd07a1:0xf9,_0xefa706:0x38,_0x423d8d:0xb0},_0x3f741b={_0x31d069:0x12b,_0x70e2bb:0x46d},_0x2e3d42={_0x5b6389:0x17b};function _0x519b39(_0x259f1d,_0x1c15ad,_0xbe9c29,_0x5dc784){return _0x23b1c2(_0x259f1d-_0x2e3d42._0x5b6389,_0x1c15ad,_0xbe9c29-0x245,_0x5dc784-0x22);}function _0x4b421a(_0x434e8f,_0x2c08da,_0x58d63e,_0x30929f){return _0x57b9de(_0x434e8f-_0x3f741b._0x31d069,_0x2c08da,_0x58d63e- -_0x3f741b._0x70e2bb,_0x30929f-0x101);}return _0x4b421a(0x24c,-_0x27c55d._0x2eb787,_0x27c55d._0xcd07a1,_0x27c55d._0xefa706)in _0x3428f5&&_0x4b421a(-0x4e,-_0x27c55d._0x423d8d,0x71,-0xce)in _0x3428f5;}function formatSymbols(_0x547e49){const _0xbb24cf={_0x297bf5:0x678,_0xbe7f82:0x4c0,_0x1ed307:0x57b},_0x3a6921={_0x1a4ada:0x62c,_0x4a5004:0x851,_0xa6de2f:0x733,_0x410d4a:0x83f,_0xe5f516:0x67f,_0x377344:0x8af,_0x15912a:0x729,_0x1fd8c1:0x656,_0x39d920:0x610,_0x44b182:0x626,_0x4c816c:0x74a,_0x573018:0x81b,_0x2bcfad:0x628,_0x58e9b3:0x6da,_0x4b91fe:0x542,_0x4ec5ae:0x6bb,_0x4d05ef:0x77e,_0x1970ad:0x736,_0x3bf609:0x6e2,_0x1a9aa8:0x625,_0x413daf:0x604,_0x545e98:0x6d8,_0x17abad:0x782,_0x3f3887:0x560,_0x2a8d38:0x547},_0x354318={_0x3d0db4:0xf3,_0x1ca3a0:0xd7},_0x4c8a83={_0x286afd:0x121},_0xb083f9={_0x1f1735:0x8c,_0x7ef860:0x3d9,_0x4d4084:0x6c};function _0x54af8e(_0x3fdfc3,_0x499a9d,_0x5d582f,_0x40820a){return _0x57b9de(_0x3fdfc3-_0xb083f9._0x1f1735,_0x5d582f,_0x499a9d- -_0xb083f9._0x7ef860,_0x40820a-_0xb083f9._0x4d4084);}if(_0x547e49[_0x3dd1de(_0xbb24cf._0x297bf5,0x734,0x596,0x7a7)]===0x0)return'No\x20symbols\x20found';function _0x3dd1de(_0x50e787,_0x578843,_0x2c2d65,_0x511e97){return _0x57b9de(_0x50e787-0x1a8,_0x2c2d65,_0x50e787-_0x4c8a83._0x286afd,_0x511e97-0x152);}return _0x547e49['map'](_0x5a017b=>{const _0x497afa={_0x27f85e:0xfb,_0x819ef:0x180};function _0x25a973(_0x4464ab,_0x21e5cf,_0x4faca2,_0x40686e){return _0x3dd1de(_0x21e5cf-_0x497afa._0x27f85e,_0x21e5cf-0x9d,_0x4464ab,_0x40686e-_0x497afa._0x819ef);}if(isDocumentSymbol(_0x5a017b))return _0x5a017b[_0x25a973(0x714,0x62f,_0x3a6921._0x1a4ada,0x541)]+'\x20('+_0x5a017b[_0xc326c4(_0x3a6921._0x4a5004,0x84f,_0x3a6921._0xa6de2f,0x886)]+')\x20['+(_0x5a017b[_0xc326c4(0x815,0x6bd,0x77a,_0x3a6921._0x410d4a)]['start'][_0xc326c4(_0x3a6921._0xe5f516,0x71a,0x673,0x676)]+0x1)+':'+(_0x5a017b[_0x25a973(_0x3a6921._0x377344,0x782,_0x3a6921._0x15912a,0x7d0)][_0xc326c4(0x5ac,_0x3a6921._0x1fd8c1,0x612,0x596)]['character']+0x1)+']';function _0xc326c4(_0x2c566e,_0x2a2f51,_0x1ad62f,_0x4d29e6){return _0x3dd1de(_0x1ad62f-_0x354318._0x3d0db4,_0x2a2f51-0x1b3,_0x4d29e6,_0x4d29e6-_0x354318._0x1ca3a0);}return _0x5a017b[_0xc326c4(_0x3a6921._0x39d920,0x5dc,0x627,_0x3a6921._0x44b182)]+'\x20('+_0x5a017b[_0xc326c4(_0x3a6921._0x4c816c,_0x3a6921._0x573018,0x733,_0x3a6921._0x2bcfad)]+')\x20'+locationPath(_0x5a017b[_0xc326c4(0x708,0x654,_0x3a6921._0x58e9b3,0x6d9)]['uri'])+':'+(_0x5a017b['location'][_0x25a973(0x862,0x782,0x81a,0x824)][_0x25a973(_0x3a6921._0x4b91fe,0x61a,0x69b,0x600)][_0xc326c4(_0x3a6921._0x4ec5ae,_0x3a6921._0x4d05ef,0x673,0x645)]+0x1)+':'+(_0x5a017b[_0x25a973(_0x3a6921._0x1970ad,_0x3a6921._0x3bf609,_0x3a6921._0x1a9aa8,_0x3a6921._0x413daf)][_0x25a973(_0x3a6921._0x545e98,_0x3a6921._0x17abad,_0x3a6921._0x3bf609,0x631)]['start'][_0x25a973(_0x3a6921._0x3f3887,0x608,0x4b4,_0x3a6921._0x2a8d38)]+0x1);})[_0x3dd1de(_0xbb24cf._0xbe7f82,0x3cc,_0xbb24cf._0x1ed307,0x521)]('\x0a');}function formatDiagnostics(_0x4ea36c){const _0x2b98af={_0x3c3e2f:0x2cf,_0x2c65f2:0x1ca,_0x1189ce:0x1db,_0x466105:0x34a,_0x9671a3:0x2e2},_0x25287b={_0x44495b:0x14a,_0x25f24d:0x323,_0x1f44a3:0x2a2,_0x5a6ae5:0x30e,_0x276d2f:0x35d,_0x17ff0f:0x4d,_0x2c4505:0x1a9,_0x1b0734:0x107,_0x8e3cfe:0x253,_0x52c9e0:0xea,_0x49ad6b:0x93,_0x339de2:0x7d},_0x236383={_0x254095:0x1ef,_0x168548:0xc5},_0x335b8d={_0x211769:0x18},_0x1dfa26={_0xc790f1:0x1e6,_0x573a73:0x1ea};function _0x1f7db3(_0xad55b9,_0x510cb8,_0x3547aa,_0x3559cb){return _0x57b9de(_0xad55b9-_0x1dfa26._0xc790f1,_0x510cb8,_0x3559cb- -_0x1dfa26._0x573a73,_0x3559cb-0x184);}function _0x2b2be2(_0x4d1fc6,_0x3f4fd0,_0x332ec4,_0x489d65){return _0x23b1c2(_0x4d1fc6-0x1a2,_0x489d65,_0x3f4fd0- -0xc7,_0x489d65-_0x335b8d._0x211769);}if(_0x4ea36c[_0x2b2be2(0x2e7,0x3e2,_0x2b98af._0x3c3e2f,0x524)]===0x0)return _0x2b2be2(_0x2b98af._0x2c65f2,0x193,_0x2b98af._0x1189ce,0x4e);return _0x4ea36c[_0x1f7db3(0x257,0x2f1,0x39f,_0x2b98af._0x466105)](_0x1b97b1=>{const _0x5740b2={_0x59c1b6:0x169,_0x137de0:0x173,_0x57863f:0x228};function _0x5ef726(_0x7d34cb,_0x11bb31,_0x5ac961,_0x51ffd7){return _0x1f7db3(_0x7d34cb-_0x236383._0x254095,_0x51ffd7,_0x5ac961-_0x236383._0x168548,_0x11bb31- -0xfb);}const _0x391649=_0x1b97b1['range'][_0xb7cbe9(0x2d,-0x102,-0x14,-_0x25287b._0x44495b)];function _0xb7cbe9(_0x55d990,_0x194042,_0x31a63a,_0x464188){return _0x1f7db3(_0x55d990-_0x5740b2._0x59c1b6,_0x55d990,_0x31a63a-_0x5740b2._0x137de0,_0x31a63a- -_0x5740b2._0x57863f);}return severityName(_0x1b97b1[_0x5ef726(_0x25287b._0x25f24d,_0x25287b._0x1f44a3,_0x25287b._0x5a6ae5,_0x25287b._0x276d2f)])+'\x20['+(_0x391649[_0xb7cbe9(-0xb8,-0xe7,_0x25287b._0x17ff0f,0x19f)]+0x1)+':'+(_0x391649[_0x5ef726(_0x25287b._0x2c4505,_0x25287b._0x1b0734,0x245,_0x25287b._0x8e3cfe)]+0x1)+']\x20'+_0x1b97b1[_0xb7cbe9(_0x25287b._0x52c9e0,0x1b4,_0x25287b._0x49ad6b,_0x25287b._0x339de2)];})[_0x2b2be2(0x36a,0x22a,0x285,_0x2b98af._0x9671a3)]('\x0a');}function formatIncomingCalls(_0x311e94){const _0x465d1e={_0xbe4565:0x6d7,_0x2ad426:0x57f,_0x288a05:0x6fe,_0x3c1722:0x2c1,_0x288d5c:0x200,_0x5c9a8e:0x2c4},_0x17e5ea={_0x3bfbe5:0x45,_0x73c03b:0x30,_0x2a6774:0xf4},_0x568c72={_0x4633e4:0x141};if(_0x311e94[_0x51275f(0x639,0x76e,0x698,_0x465d1e._0xbe4565)]===0x0)return'No\x20call\x20hierarchy\x20results';function _0x51275f(_0x1a73b5,_0x4509f6,_0x480e02,_0xf96010){return _0x57b9de(_0x1a73b5-0x10e,_0xf96010,_0x480e02-_0x568c72._0x4633e4,_0xf96010-0x1f3);}function _0x58a509(_0xd95fb5,_0x277abc,_0x5758b5,_0x2c2775){return _0x23b1c2(_0xd95fb5-_0x17e5ea._0x3bfbe5,_0x277abc,_0xd95fb5- -_0x17e5ea._0x73c03b,_0x2c2775-_0x17e5ea._0x2a6774);}return _0x311e94[_0x51275f(_0x465d1e._0x2ad426,0x598,0x675,_0x465d1e._0x288a05)](_0xafc35=>_0xafc35['from'][_0x58a509(0x335,0x26c,0x28d,0x2ad)])[_0x58a509(_0x465d1e._0x3c1722,_0x465d1e._0x288d5c,_0x465d1e._0x5c9a8e,0x29f)]('\x0a');}function formatOutgoingCalls(_0x537b4f){const _0xb7e62f={_0x26f841:0x7e6,_0x5a2a8a:0x80a,_0x4e1071:0x7b6,_0x2ba9c1:0x3c4,_0x524bfa:0x176},_0x176025={_0x3b9510:0x30d,_0x38305f:0x14},_0x3a5abd={_0x502ceb:0x5f,_0x39d4be:0xdd};function _0x25adaf(_0x18623a,_0x47c9e3,_0x1e0577,_0x50eaea){return _0x23b1c2(_0x18623a-_0x3a5abd._0x502ceb,_0x47c9e3,_0x18623a- -0x2d,_0x50eaea-_0x3a5abd._0x39d4be);}function _0xfc9fb(_0x5610af,_0x245e80,_0x486995,_0x1176e7){return _0x23b1c2(_0x5610af-0x2,_0x5610af,_0x1176e7-_0x176025._0x3b9510,_0x1176e7-_0x176025._0x38305f);}if(_0x537b4f[_0xfc9fb(0x6e1,_0xb7e62f._0x26f841,_0xb7e62f._0x5a2a8a,_0xb7e62f._0x4e1071)]===0x0)return'No\x20call\x20hierarchy\x20results';return _0x537b4f[_0x25adaf(0x459,0x32f,0x4fc,_0xb7e62f._0x2ba9c1)](_0x327dce=>_0x327dce['to']['name'])[_0x25adaf(0x2c4,0x258,0x1cd,_0xb7e62f._0x524bfa)]('\x0a');}function toStructured(_0xd0b86d){const _0x53b71c={_0x43f8c7:0x2e6,_0x23ef7d:0x2ea,_0xe78d53:0x403,_0x329d20:0x371,_0x4c02ca:0x45d},_0x164475={_0x1db286:0x115,_0x1689f6:0x55},_0x57da0e={_0x10f479:0xba,_0x841211:0x3c};function _0xffd5cd(_0x45fec9,_0xb3ebcb,_0x58c160,_0x2d5755){return _0x57b9de(_0x45fec9-_0x57da0e._0x10f479,_0xb3ebcb,_0x58c160- -_0x57da0e._0x841211,_0x2d5755-0x191);}function _0x202a2f(_0x419d64,_0x10757e,_0x540a5e,_0x4cc892){return _0x57b9de(_0x419d64-_0x164475._0x1db286,_0x10757e,_0x4cc892- -0x38d,_0x4cc892-_0x164475._0x1689f6);}return JSON[_0xffd5cd(0x40d,_0x53b71c._0x43f8c7,0x2fd,_0x53b71c._0x23ef7d)](JSON[_0xffd5cd(_0x53b71c._0xe78d53,_0x53b71c._0x329d20,0x3e0,_0x53b71c._0x4c02ca)](_0xd0b86d));}async function assertFile(_0x4fbd07){const _0x5150a4={_0x20d813:0x45e,_0x238fbe:0x59c,_0x11555b:0x487},_0x4d1a2e={_0x1ebb92:0x121},_0xab9b1b={_0x1aa034:0x201,_0x4e2670:0x141};function _0x3f6c96(_0x39c52a,_0x46ecdf,_0x57fdc6,_0x56d5e6){return _0x23b1c2(_0x39c52a-0x40,_0x46ecdf,_0x56d5e6-_0xab9b1b._0x1aa034,_0x56d5e6-_0xab9b1b._0x4e2670);}function _0x4fd9f1(_0x172fae,_0x4293fd,_0x11c437,_0x101636){return _0x23b1c2(_0x172fae-0x185,_0x172fae,_0x11c437- -0x5d,_0x101636-_0x4d1a2e._0x1ebb92);}const _0x295b63=await _0x60fde(_0x4fbd07);if(!_0x295b63[_0x3f6c96(_0x5150a4._0x20d813,_0x5150a4._0x238fbe,0x435,_0x5150a4._0x11555b)]())throw new ToolExecutionError(_0x3f6c96(0x6d3,0x712,0x4bf,0x5dc)+_0x4fbd07,{'path':_0x4fbd07});}function validatePosition(_0x4f9e10,_0x144336){const _0x35937d={_0xe31ca2:0x171,_0x4461aa:0x143,_0xadad1b:0x295,_0x323ace:0x758,_0x1a8f0c:0x7ea,_0x4a071c:0x73d},_0x3fde1a={_0x5ccbaf:0x2e7,_0x43f8b8:0xa8},_0x1564fb={_0x532dbd:0x26};function _0x5cc289(_0x4935a5,_0x12e7f1,_0xf73058,_0x32f449){return _0x57b9de(_0x4935a5-_0x1564fb._0x532dbd,_0x4935a5,_0x32f449-0x286,_0x32f449-0x5b);}if(!Number[_0x592f5d(_0x35937d._0xe31ca2,0x11b,_0x35937d._0x4461aa,_0x35937d._0xadad1b)](_0x4f9e10)||_0x4f9e10<0x1)throw new ToolExecutionError(_0x5cc289(_0x35937d._0x323ace,0x8e9,0x6f2,_0x35937d._0x1a8f0c),{'line':_0x4f9e10});function _0x592f5d(_0x18e6be,_0x2c32c6,_0x2be209,_0x2ab9e5){return _0x57b9de(_0x18e6be-0xb3,_0x2c32c6,_0x18e6be- -_0x3fde1a._0x5ccbaf,_0x2ab9e5-_0x3fde1a._0x43f8b8);}if(!Number[_0x5cc289(_0x35937d._0x4a071c,0x772,0x59c,0x6de)](_0x144336)||_0x144336<0x1)throw new ToolExecutionError(_0x592f5d(0x1ff,0xd3,0x10b,0x31a),{'character':_0x144336});}function createLspTool(_0x14d5c5={}){const _0x5a580b={_0x11ebf6:0x49f,_0x32a1d5:0x4b2,_0x196e42:0x558,_0x17b575:0x675,_0x452391:0x5cf,_0x683a37:0x534,_0x492270:0x561,_0x591d11:0x2af,_0x5d4246:0x18c,_0x37b3db:0x67a,_0x26e728:0x159,_0x8a6e25:0x11c,_0xc1bd6d:0xf6,_0x5c9b12:0x16d,_0x316e36:0x3b4,_0x1ae077:0x124,_0x132c6d:0x1a,_0x59e7c1:0xab,_0x19e077:0x158,_0x2c91e4:0x185,_0x14a0a5:0xc3,_0x68eba0:0x14e,_0xdd160b:0x12e,_0x55491b:0x32e,_0x1331cc:0x232,_0x4c30fd:0x545,_0x44d7d3:0x681,_0x2da9c2:0x61c,_0x50f758:0x435,_0x47958c:0xc0,_0x34903d:0x11d,_0x400b74:0x605,_0x23cf4e:0x67b,_0x3c2463:0x41d,_0x383679:0x502,_0x4a46f4:0x454,_0x3b18a3:0x3a3,_0x270d2b:0x12f,_0x20c41e:0xee,_0x1d82f0:0x106,_0x4767c3:0xf,_0x159a66:0x225,_0x4826ae:0x142,_0x243d01:0x141,_0x5e4434:0xcf},_0x1cf852={_0x4863db:0x9f,_0x580550:0x1e8,_0x2e880d:0x3dd,_0x58603a:0x4ef,_0x384903:0x31c,_0x1d1fce:0x3d4,_0x4194a7:0x445,_0x41f3be:0x19d,_0xd00a27:0x2da,_0x4f2682:0x2d6,_0xb3e757:0x49b,_0x63aa8e:0x555,_0x47713a:0x1b0,_0x2bd55a:0x8a,_0xfdeeb:0x4c8,_0xad53d:0x3bc,_0x3140e7:0x1df,_0xb78211:0x185,_0x26a920:0xd,_0x34582c:0x86,_0x3669bc:0x13b,_0x4c4f06:0x344,_0x2b2577:0x479,_0x1966c1:0x321,_0x21a51c:0x416,_0x4c3f10:0x48,_0x380fc6:0x16e,_0x397a1a:0x349,_0x8d91f6:0x377,_0x5f4c4c:0x3cf,_0x3e35d9:0x3ea,_0x19adea:0x36a,_0x500411:0x203,_0x7ca544:0x252,_0x5bd18a:0x3fd,_0x459ee3:0x77,_0x5b6111:0x2e,_0x3bef3c:0x96,_0x15b9ca:0x426,_0x26242f:0xb8,_0x40a332:0x145,_0x537ea2:0x286,_0x477dbf:0x43c,_0x14527c:0x247,_0x4c893b:0x2ca,_0x25e93c:0x28f,_0x4566e3:0x3af,_0x4d2571:0x4d4,_0x5a3d9f:0x44c,_0x228417:0x2fc,_0x99b707:0x3af,_0x1c9316:0x48a,_0x3b4e95:0x492,_0x2685a2:0x459,_0x101a95:0x45a,_0x2528b5:0x3ae},_0x2b68a5={_0x5de75b:0x163},_0x5841df={_0x38f4a9:0x22},_0x1ef455=_0x12fac7[_0x2aa790(0x50c,0x4b3,0x475,_0x5a580b._0x11ebf6)](_0x14d5c5['defaultCwd']??process[_0x2aa790(_0x5a580b._0x32a1d5,0x3aa,0x3f8,_0x5a580b._0x196e42)]());function _0x1d1511(_0x33f297,_0x4d08b6,_0x2dead4,_0x31681e){return _0x57b9de(_0x33f297-_0x5841df._0x38f4a9,_0x33f297,_0x31681e- -0x31d,_0x31681e-0x1d3);}const _0x1e5e26=(_0x14d5c5[_0x2aa790(0x5f4,_0x5a580b._0x17b575,_0x5a580b._0x452391,0x5ff)]??[])['map'](_0x594766=>_0x12fac7[_0x2aa790(0x50c,0x591,0x3c1,0x631)](_0x594766)),_0x204eb6=_0x14d5c5[_0x2aa790(_0x5a580b._0x683a37,_0x5a580b._0x492270,0x660,0x52f)]??_0x1d1511(_0x5a580b._0x591d11,_0x5a580b._0x5d4246,0x99,0x1d5);function _0x2aa790(_0x21eff0,_0x408f41,_0x301f01,_0x7518b){return _0x23b1c2(_0x21eff0-0xa7,_0x408f41,_0x21eff0-0x1cf,_0x7518b-_0x2b68a5._0x5de75b);}return defineTool({'name':_0x204eb6,'description':_0x2aa790(0x589,0x57e,_0x5a580b._0x37b3db,0x598),'inputSchema':{'type':_0x1d1511(_0x5a580b._0x26e728,_0x5a580b._0x8a6e25,_0x5a580b._0xc1bd6d,_0x5a580b._0x5c9b12),'properties':{'operation':{'type':_0x2aa790(0x454,_0x5a580b._0x316e36,0x435,0x3ed),'enum':['goToDefinition',_0x1d1511(_0x5a580b._0x1ae077,-0xac,-0xad,-_0x5a580b._0x132c6d),_0x1d1511(0x159,_0x5a580b._0x59e7c1,0x64,_0x5a580b._0x19e077),_0x1d1511(0x9b,_0x5a580b._0x2c91e4,0xd8,_0x5a580b._0x14a0a5),_0x1d1511(_0x5a580b._0x68eba0,_0x5a580b._0xdd160b,_0x5a580b._0x55491b,_0x5a580b._0x1331cc),_0x2aa790(_0x5a580b._0x4c30fd,_0x5a580b._0x44d7d3,_0x5a580b._0x2da9c2,_0x5a580b._0x50f758),_0x1d1511(-0x3c,-0xdf,0x81,-0x3),_0x1d1511(0x2c,_0x5a580b._0x47958c,0x35,_0x5a580b._0x34903d),_0x2aa790(_0x5a580b._0x400b74,0x536,_0x5a580b._0x23cf4e,0x724),_0x2aa790(_0x5a580b._0x3c2463,0x4bb,0x379,_0x5a580b._0x383679)]},'filePath':{'type':_0x2aa790(_0x5a580b._0x4a46f4,0x452,0x57a,_0x5a580b._0x3b18a3)},'line':{'type':_0x1d1511(0xc8,0xcd,0x20d,0x200)},'character':{'type':_0x1d1511(_0x5a580b._0x270d2b,0x1c0,_0x5a580b._0x20c41e,0x200)},'query':{'type':'string'}},'required':['operation','filePath',_0x1d1511(_0x5a580b._0x1d82f0,_0x5a580b._0x4767c3,_0x5a580b._0x159a66,_0x5a580b._0x4826ae),_0x1d1511(_0x5a580b._0x132c6d,_0x5a580b._0x243d01,-0x39,_0x5a580b._0x5e4434)]},async *'execute'(_0x3ead77){const _0x2fa996={_0xee8e6a:0x27},_0x1d6a33={_0x5b23fa:0x1ac,_0x55a506:0x1db,_0x18167d:0x6f},_0xb8c1c6=_0x14d5c5[_0x45effa(_0x1cf852._0x4863db,0x207,_0x1cf852._0x580550,0xdb)];function _0x550b68(_0x28f37d,_0x3ba9d9,_0x595676,_0x421893){return _0x2aa790(_0x421893- -_0x1d6a33._0x5b23fa,_0x28f37d,_0x595676-_0x1d6a33._0x55a506,_0x421893-_0x1d6a33._0x18167d);}if(!_0xb8c1c6)throw new ToolExecutionError(_0x550b68(0x573,0x521,0x515,0x508));if(!_0xb8c1c6['isEnabled']())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0x4d6cf3=_0x3ead77[_0x550b68(_0x1cf852._0x2e880d,0x429,0x42b,0x370)];validatePosition(_0x3ead77[_0x550b68(_0x1cf852._0x58603a,0x3ca,_0x1cf852._0x384903,_0x1cf852._0x1d1fce)],_0x3ead77['character']);if(_0x4d6cf3==='workspaceSymbol'){if(!_0x3ead77[_0x550b68(0x36a,_0x1cf852._0x4194a7,0x35f,0x3bc)]?.[_0x550b68(0x264,_0x1cf852._0x41f3be,_0x1cf852._0xd00a27,_0x1cf852._0x4f2682)]())throw new ToolExecutionError(_0x550b68(0x46a,_0x1cf852._0xb3e757,_0x1cf852._0x63aa8e,0x413));const _0x5647a4=await _0xb8c1c6['workspaceSymbol'](_0x3ead77[_0x45effa(_0x1cf852._0x47713a,0x9f,0xb9,_0x1cf852._0x2bd55a)]['trim']());return yield createToolOutput(formatSymbols(_0x5647a4),{'operation':_0x4d6cf3,'query':_0x3ead77[_0x550b68(_0x1cf852._0xfdeeb,0x3e7,0x4a4,_0x1cf852._0xad53d)],'symbols':_0x5647a4}),void 0x0;}const _0x4038e9=resolveAllowedPath(_0x1ef455,_0x1e5e26,_0x3ead77[_0x45effa(_0x1cf852._0x3140e7,_0x1cf852._0xb78211,0x113,-_0x1cf852._0x26a920)]);function _0x45effa(_0x1a21d5,_0x4959b6,_0x2ca31c,_0x4f8396){return _0x1d1511(_0x1a21d5,_0x4959b6-_0x2fa996._0xee8e6a,_0x2ca31c-0x4c,_0x2ca31c- -0x71);}await assertFile(_0x4038e9);if(!await _0xb8c1c6[_0x45effa(0x291,_0x1cf852._0x34582c,0x1bb,_0x1cf852._0x3669bc)](_0x4038e9))throw new ToolExecutionError('No\x20LSP\x20server\x20available\x20for\x20file:\x20'+_0x3ead77[_0x550b68(_0x1cf852._0x4c4f06,_0x1cf852._0x2b2577,_0x1cf852._0x1966c1,_0x1cf852._0x21a51c)],{'filePath':_0x3ead77['filePath']});await _0xb8c1c6[_0x45effa(0x298,_0x1cf852._0x4c3f10,_0x1cf852._0x380fc6,0x24b)](_0x4038e9,!![]);const _0xbaf245={'file':_0x4038e9,'line':_0x3ead77['line']-0x1,'character':_0x3ead77[_0x550b68(0x429,0x323,0x247,0x361)]-0x1};switch(_0x4d6cf3){case _0x550b68(_0x1cf852._0x397a1a,0x414,_0x1cf852._0x8d91f6,0x3ea):{const _0x2365a8=await _0xb8c1c6[_0x550b68(0x455,0x379,_0x1cf852._0x5f4c4c,_0x1cf852._0x3e35d9)](_0xbaf245);return yield createToolOutput(formatHover(_0x2365a8),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'hover':_0x2365a8}),void 0x0;}case'diagnostics':{const _0x2f6b93=await _0xb8c1c6[_0x550b68(_0x1cf852._0x19adea,0x30b,_0x1cf852._0x500411,0x312)](_0x4038e9);return yield createToolOutput(formatDiagnostics(_0x2f6b93),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'diagnostics':_0x2f6b93}),void 0x0;}case'goToDefinition':{const _0x137c55=await _0xb8c1c6['definition'](_0xbaf245);return yield createToolOutput(formatLocations(_0x137c55),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x137c55}),void 0x0;}case'findReferences':{const _0x5d7caf=await _0xb8c1c6[_0x550b68(0x271,_0x1cf852._0x7ca544,_0x1cf852._0x5bd18a,0x2ea)](_0xbaf245);return yield createToolOutput(formatLocations(_0x5d7caf),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x5d7caf}),void 0x0;}case _0x45effa(_0x1cf852._0x459ee3,-_0x1cf852._0x5b6111,_0x1cf852._0x3bef3c,0xa0):{const _0x41b55c=await _0xb8c1c6[_0x550b68(0x36b,0x4df,0x43f,_0x1cf852._0x15b9ca)](_0xbaf245);return yield createToolOutput(formatLocations(_0x41b55c),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'locations':_0x41b55c}),void 0x0;}case _0x45effa(-0xb9,_0x1cf852._0x26242f,0x52,_0x1cf852._0x40a332):{const _0x562e03=await _0xb8c1c6[_0x550b68(_0x1cf852._0x537ea2,_0x1cf852._0x477dbf,_0x1cf852._0x14527c,0x355)](_0x4038e9);return yield createToolOutput(formatSymbols(_0x562e03),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'symbols':_0x562e03}),void 0x0;}case _0x550b68(0x2d6,_0x1cf852._0x4c893b,0x1c8,_0x1cf852._0x25e93c):{const _0x488d6b=await _0xb8c1c6['prepareCallHierarchy'](_0xbaf245);return yield createToolOutput(formatSymbols(_0x488d6b),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'symbols':toStructured(_0x488d6b)}),void 0x0;}case _0x550b68(0x4cb,0x4ce,0x445,_0x1cf852._0x4566e3):{const _0x5d4f7e=await _0xb8c1c6[_0x550b68(_0x1cf852._0x4d2571,_0x1cf852._0x5a3d9f,_0x1cf852._0x228417,_0x1cf852._0x99b707)](_0xbaf245);return yield createToolOutput(formatIncomingCalls(_0x5d4f7e),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'calls':toStructured(_0x5d4f7e)}),void 0x0;}case _0x550b68(_0x1cf852._0x1c9316,0x371,_0x1cf852._0x3b4e95,_0x1cf852._0x2685a2):{const _0x5b6860=await _0xb8c1c6[_0x550b68(_0x1cf852._0x101a95,_0x1cf852._0x2528b5,0x385,0x459)](_0xbaf245);return yield createToolOutput(formatOutgoingCalls(_0x5b6860),{'operation':_0x4d6cf3,'filePath':_0x4038e9,'calls':toStructured(_0x5b6860)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x2838f9,readFile as _0x22bd93,writeFile as _0x51c598}from'fs/promises';import{join as _0x12822a}from'path';function sanitizeStorageKey(_0x4db57c){const _0x4cc4e2={_0x47dfba:0x500,_0x1634c5:0x51f,_0x4eefe6:0x51e,_0x401d2a:0x664,_0x228ae1:0x51f,_0xb54f32:0x2e4,_0x6c0f53:0x29f},_0x27a2be={_0x37d5dd:0x14a,_0x3d8c8d:0x10a};function _0x5a4a97(_0x4e587d,_0x3e5d87,_0x1d37ad,_0x4559d9){return _0x57b9de(_0x4e587d-_0x27a2be._0x37d5dd,_0x4e587d,_0x3e5d87- -_0x27a2be._0x3d8c8d,_0x4559d9-0x1e8);}function _0x3fb393(_0x58c98e,_0x429b3f,_0x3525a5,_0x428516){return _0x23b1c2(_0x58c98e-0x7f,_0x429b3f,_0x3525a5-0xe0,_0x428516-0xcc);}return _0x4db57c[_0x3fb393(_0x4cc4e2._0x47dfba,0x52f,_0x4cc4e2._0x1634c5,_0x4cc4e2._0x4eefe6)](/[^a-zA-Z0-9_]+/g,'_')[_0x3fb393(_0x4cc4e2._0x401d2a,0x3d6,_0x4cc4e2._0x228ae1,0x4f1)](/^_+|_+$/g,'')||_0x5a4a97(0x20c,_0x4cc4e2._0xb54f32,_0x4cc4e2._0x6c0f53,0x2d3);}function storagePath(_0x9209c){const _0x1b0c65={_0x5253da:0x338,_0x220a73:0x305,_0x21a0e9:0x3e2,_0x5a141e:0x2dd,_0x3c7828:0x3c5,_0x52f95b:0x496,_0x49f174:0xb0},_0x41ce7f={_0x31386a:0x3ba,_0x124bc8:0x16c},_0x3c0853=sanitizeStorageKey(_0x9209c[_0x598c87(0x154,_0x1b0c65._0x5253da,_0x1b0c65._0x220a73,0x24d)][_0x598c87(_0x1b0c65._0x21a0e9,0x488,_0x1b0c65._0x5a141e,_0x1b0c65._0x3c7828)]?.[_0x598c87(0x227,0x3da,_0x1b0c65._0x52f95b,0x37a)]??_0x9209c['serverName']);function _0x11d45c(_0x2ea391,_0x1f8768,_0x5f3b4c,_0x1e3144){return _0x23b1c2(_0x2ea391-0x148,_0x1e3144,_0x2ea391- -_0x41ce7f._0x31386a,_0x1e3144-_0x41ce7f._0x124bc8);}function _0x598c87(_0x40434b,_0x3ed9d0,_0x3c5b69,_0x5670e4){return _0x57b9de(_0x40434b-0x1c6,_0x3c5b69,_0x5670e4- -0x190,_0x5670e4-0x139);}return _0x12822a(_0x9209c['storageDir'],_0x3c0853+_0x11d45c(-0xd1,-0xa6,-_0x1b0c65._0x49f174,-0x148));}async function readStore(_0x1fc9ae){const _0x348c25={_0x4f5c4c:0x137,_0x43443f:0x122,_0x51db72:0x5bd,_0x2ac182:0xdb,_0xfcc178:0x39c,_0x2eb604:0x3cd},_0x4c4c6c={_0x8fd1a2:0xe3,_0x97713:0x1b4},_0x13e776={_0x58824e:0x74,_0x1f0d5f:0x106};function _0x40f63d(_0x3769e3,_0x3874a3,_0x1ce5e5,_0x45bba3){return _0x23b1c2(_0x3769e3-0x51,_0x3874a3,_0x45bba3-_0x13e776._0x58824e,_0x45bba3-_0x13e776._0x1f0d5f);}function _0x321bb5(_0x409986,_0x16d394,_0x134ae9,_0x1a793a){return _0x23b1c2(_0x409986-_0x4c4c6c._0x8fd1a2,_0x1a793a,_0x134ae9- -0x3ad,_0x1a793a-_0x4c4c6c._0x97713);}try{return JSON[_0x321bb5(-_0x348c25._0x4f5c4c,-0x1b3,-_0x348c25._0x43443f,-0x11d)](await _0x22bd93(_0x1fc9ae,_0x40f63d(0x3e7,0x40e,_0x348c25._0x51db72,0x47c)));}catch(_0x2ab490){if(_0x2ab490 instanceof Error&&_0x321bb5(0x124,0x5e,_0x348c25._0x2ac182,0xff)in _0x2ab490&&_0x2ab490['code']===_0x40f63d(0x50c,_0x348c25._0xfcc178,0x3ac,_0x348c25._0x2eb604))return{};throw _0x2ab490;}}async function writeStore(_0x584432,_0x13a6bb){const _0x6a625a={_0x321b2d:0x256,_0x241cf6:0x299},_0x1bb30f={_0x75950d:0x1c6,_0x2e5b47:0x6c},_0x40ef85={_0x2d27bf:0x85,_0x1d8cf0:0x296};await _0x2838f9(_0x12822a(_0x584432,'..'),{'recursive':!![]});function _0x58337f(_0x1f51d5,_0x5551d6,_0x34787c,_0x516466){return _0x23b1c2(_0x1f51d5-_0x40ef85._0x2d27bf,_0x34787c,_0x5551d6- -_0x40ef85._0x1d8cf0,_0x516466-0x1ca);}function _0x1cc955(_0x149775,_0x1eaee1,_0x258a99,_0x2c2f7f){return _0x57b9de(_0x149775-0x1c,_0x1eaee1,_0x149775- -_0x1bb30f._0x75950d,_0x2c2f7f-_0x1bb30f._0x2e5b47);}await _0x51c598(_0x584432,JSON[_0x1cc955(_0x6a625a._0x321b2d,0x31c,0x16a,0x1a9)](_0x13a6bb,null,0x2),_0x58337f(0x1f4,0x172,_0x6a625a._0x241cf6,0x242));}async function updateStore(_0x3468ba,_0x5ab371){const _0x11b4df=await readStore(_0x3468ba);_0x5ab371(_0x11b4df),await writeStore(_0x3468ba,_0x11b4df);}function createMcpOAuthProvider(_0x41f603){const _0x3e41d0={_0x426fe0:0x278,_0x21322b:0x2ec,_0x217538:0x224,_0x13fb33:0x55,_0x58fabb:0x190,_0x156e76:0x16e,_0x1a5427:0xda,_0x4aff06:0x541,_0x4424c1:0x4f0,_0x49d9d5:0x14d,_0x33bbd2:0x294,_0x1730c9:0x160,_0x5ce730:0x4e0,_0x22588e:0x4ea,_0x2de006:0x1e4,_0x54f8ad:0x2a0,_0x55262a:0x9f,_0xb8d4b0:0x416,_0x225fd2:0x35f,_0x4ab439:0x55c,_0x57737b:0x120,_0x4f3a96:0x52e,_0x2c8538:0x60e,_0x4ec364:0x6a6,_0x592517:0x6ba,_0x8526c0:0x534,_0x105b5f:0x61e,_0x321cf1:0x584},_0x21e989={_0x2dcc7f:0x40d,_0x5f44b3:0x445},_0x54d50d={_0xb3e8a3:0x7c2,_0x5b6544:0x7c5,_0x57527e:0x6a7,_0x30ea1f:0x648,_0x4f9eb9:0x72c,_0x575d6f:0x787,_0x205cb4:0x6ac,_0x9c9ffc:0x77c,_0x5cfbb9:0x5af,_0x52229a:0x78f,_0x942036:0x695,_0x544ef9:0x5a5,_0x116148:0x592,_0xa832ac:0x5c7,_0x2a807c:0x58a,_0x32f8ea:0x6a2,_0xe63b1c:0x57c},_0x627ba0={_0x210e3d:0x1a7},_0x528f54={_0x3f65da:0x21a},_0x8e11de={_0x3f5e3e:0x5ae,_0x50c875:0x7a8,_0x22f88d:0x732},_0x46143b={_0x4c6982:0x12e},_0x463631={_0x3ccd6d:0x1db,_0x505743:0x74},_0x1bace0={_0x178cb8:0x1f7,_0x16695a:0xd6,_0x2b5ff2:0x3dc,_0x28640f:0x3e1},_0x3a05a0={_0x349b7f:0xae},_0xf93a1e={_0x5e8a6e:0x103,_0x2f14cc:0x1ae,_0x5b3cd3:0x30f},_0xf199a1={_0x271582:0x90,_0x4ae774:0x3f},_0x249ecb={_0x2f76af:0x126},_0xd3a969={_0x42145c:0x167},_0x20d400={_0x1d8a51:0x8a,_0x143a3c:0x22b,_0x3ada97:0xa8},_0x577d74=storagePath(_0x41f603),_0x358371=_0x41f603['config'][_0x4958c4(_0x3e41d0._0x426fe0,0x32a,_0x3e41d0._0x21322b,_0x3e41d0._0x217538)]?.[_0x4958c4(_0x3e41d0._0x13fb33,_0x3e41d0._0x58fabb,_0x3e41d0._0x156e76,_0x3e41d0._0x1a5427)]?.[_0x466343(0x5a2,_0x3e41d0._0x4aff06,_0x3e41d0._0x4424c1,0x400)]('\x20');function _0x4958c4(_0x532a28,_0x76241e,_0x421c1e,_0x107cfb){return _0x57b9de(_0x532a28-_0x20d400._0x1d8a51,_0x532a28,_0x76241e- -_0x20d400._0x143a3c,_0x107cfb-_0x20d400._0x3ada97);}const _0x376305={'client_name':_0x4958c4(0x200,_0x3e41d0._0x49d9d5,_0x3e41d0._0x33bbd2,_0x3e41d0._0x1730c9),'redirect_uris':[_0x41f603[_0x466343(_0x3e41d0._0x5ce730,0x5af,0x5e2,_0x3e41d0._0x22588e)]],'grant_types':[_0x4958c4(0x326,_0x3e41d0._0x2de006,_0x3e41d0._0x54f8ad,_0x3e41d0._0x55262a),_0x466343(_0x3e41d0._0xb8d4b0,_0x3e41d0._0x225fd2,0x46c,_0x3e41d0._0x4ab439)],'response_types':['code'],'token_endpoint_auth_method':_0x4958c4(0xe7,0x1d1,_0x3e41d0._0x57737b,0x2bf),..._0x358371?{'scope':_0x358371}:{}};function _0x466343(_0x2cf672,_0x3ae705,_0x35f10d,_0x297901){return _0x57b9de(_0x2cf672-_0xd3a969._0x42145c,_0x297901,_0x35f10d-0x151,_0x297901-0x10a);}return{'clientMetadataUrl':_0x41f603[_0x466343(0x411,0x542,_0x3e41d0._0x4f3a96,_0x3e41d0._0x2c8538)][_0x466343(0x7f6,0x6d1,_0x3e41d0._0x4ec364,_0x3e41d0._0x592517)]?.[_0x466343(0x725,_0x3e41d0._0x8526c0,_0x3e41d0._0x105b5f,_0x3e41d0._0x321cf1)],get 'redirectUrl'(){function _0xe95f21(_0x2e865a,_0x107347,_0x59fa37,_0x331449){return _0x466343(_0x2e865a-0x1d2,_0x107347-_0x249ecb._0x2f76af,_0x59fa37- -0x552,_0x2e865a);}return _0x41f603[_0xe95f21(0x1d9,0x18f,_0xf199a1._0x271582,_0xf199a1._0x4ae774)];},get 'clientMetadata'(){return _0x376305;},async 'state'(){const _0x418d52={_0xdba13:0x48f,_0x3693c0:0x594,_0x28c39e:0x593,_0x50f812:0x42b},_0x51144e=await readStore(_0x577d74);if(_0x51144e[_0x45993c(_0x1bace0._0x178cb8,0x333,0x25b,_0x1bace0._0x16695a)])return _0x51144e[_0x245570(0x557,_0x1bace0._0x2b5ff2,_0x1bace0._0x28640f,0x458)];function _0x45993c(_0x32f748,_0x5ca811,_0x3395ec,_0x41194f){return _0x466343(_0x32f748-_0xf93a1e._0x5e8a6e,_0x5ca811-_0xf93a1e._0x2f14cc,_0x32f748- -_0xf93a1e._0x5b3cd3,_0x41194f);}function _0x245570(_0x20c05d,_0x2b5e2f,_0x23fd1f,_0x1c5d81){return _0x466343(_0x20c05d-0x0,_0x2b5e2f-0xf8,_0x1c5d81- -_0x3a05a0._0x349b7f,_0x23fd1f);}const _0x5bf261=randomUUID();return await updateStore(_0x577d74,_0x16601a=>{function _0x470359(_0x20a9ba,_0x52ccdd,_0x235886,_0x58fe71){return _0x45993c(_0x20a9ba-0x298,_0x52ccdd-0x1db,_0x235886-0xc2,_0x52ccdd);}_0x16601a[_0x470359(_0x418d52._0xdba13,_0x418d52._0x3693c0,_0x418d52._0x28c39e,_0x418d52._0x50f812)]=_0x5bf261;}),_0x5bf261;},async 'clientInformation'(){function _0x46e736(_0x48f2ce,_0x18cc4f,_0x589883,_0x1ccc68){return _0x4958c4(_0x589883,_0x18cc4f-0x153,_0x589883-_0x463631._0x3ccd6d,_0x1ccc68-_0x463631._0x505743);}return(await readStore(_0x577d74))[_0x46e736(0x34e,0x322,0x21a,0x2e5)];},async 'saveClientInformation'(_0x37ed19){const _0x34a48b={_0x5137b9:0x123,_0x4fb053:0x1e7};await updateStore(_0x577d74,_0x47c2bc=>{function _0x22d12f(_0x350a78,_0x3b36e5,_0x2afc1b,_0xe4b8ef){return _0x27a7(_0x2afc1b- -0xcd,_0xe4b8ef);}_0x47c2bc[_0x22d12f(0x325,_0x34a48b._0x5137b9,_0x34a48b._0x4fb053,0x2bd)]=_0x37ed19;});},async 'tokens'(){function _0x936883(_0x57d2f2,_0x1c2edd,_0x16d42d,_0x4113c9){return _0x466343(_0x57d2f2-0x18b,_0x1c2edd-0x32,_0x57d2f2-_0x46143b._0x4c6982,_0x4113c9);}return(await readStore(_0x577d74))[_0x936883(0x6ac,_0x8e11de._0x3f5e3e,_0x8e11de._0x50c875,_0x8e11de._0x22f88d)];},async 'saveTokens'(_0x24564f){const _0x1f1a1d={_0x543f58:0x33f,_0x20ae1c:0x351,_0x5025ee:0x3bf};await updateStore(_0x577d74,_0x43491d=>{const _0x189e44={_0x159a82:0xd8};function _0x549505(_0x138df8,_0x255340,_0x35d4f2,_0x13f971){return _0x27a7(_0x13f971-_0x189e44._0x159a82,_0x138df8);}_0x43491d[_0x549505(_0x1f1a1d._0x543f58,_0x1f1a1d._0x20ae1c,0x2a4,_0x1f1a1d._0x5025ee)]=_0x24564f;});},async 'redirectToAuthorization'(_0x19cb8f){function _0x5635c2(_0x4ae91d,_0x3cac80,_0x4c2815,_0x3e2554){return _0x466343(_0x4ae91d-0xaa,_0x3cac80-0x8,_0x4ae91d- -0x262,_0x3e2554);}await _0x41f603[_0x5635c2(0x368,0x458,_0x528f54._0x3f65da,0x41a)](_0x19cb8f);},async 'saveCodeVerifier'(_0x1de1f6){await updateStore(_0x577d74,_0x16bd9d=>{function _0x402460(_0x1fc330,_0x17f17f,_0x5aca87,_0x14349c){return _0x27a7(_0x17f17f- -0x13d,_0x14349c);}_0x16bd9d[_0x402460(0x78,0x1bc,0x173,_0x627ba0._0x210e3d)]=_0x1de1f6;});},async 'codeVerifier'(){const _0x263f3f={_0xf6f766:0x19a,_0x7d2ec8:0x158};function _0x5abc35(_0x2604da,_0x1ac934,_0x2c4983,_0x3461ae){return _0x466343(_0x2604da-_0x263f3f._0xf6f766,_0x1ac934-0xc3,_0x1ac934- -_0x263f3f._0x7d2ec8,_0x2604da);}const _0x29e544=(await readStore(_0x577d74))['codeVerifier'];if(!_0x29e544)throw new Error(_0x5abc35(0x3eb,0x4fb,0x5ca,0x48c));return _0x29e544;},async 'invalidateCredentials'(_0x146c4a){const _0x172f13={_0x4fb7b2:0x24f};await updateStore(_0x577d74,_0x4f8fb6=>{const _0x5e6096={_0xf22636:0x3c1};(_0x146c4a===_0x5b13c6(0x595,_0x54d50d._0xb3e8a3,_0x54d50d._0x5b6544,_0x54d50d._0x57527e)||_0x146c4a==='client')&&(_0x4f8fb6[_0x5b13c6(_0x54d50d._0x30ea1f,0x6ad,_0x54d50d._0x4f9eb9,0x675)]=void 0x0);(_0x146c4a===_0x5b13c6(_0x54d50d._0x575d6f,_0x54d50d._0x205cb4,_0x54d50d._0x9c9ffc,0x6a7)||_0x146c4a===_0x5b13c6(0x605,0x6bc,_0x54d50d._0x5cfbb9,0x6a8))&&(_0x4f8fb6[_0x5b13c6(_0x54d50d._0x52229a,0x65e,0x658,0x6a8)]=void 0x0);(_0x146c4a===_0x5b13c6(_0x54d50d._0x942036,0x6d9,_0x54d50d._0x544ef9,0x6a7)||_0x146c4a===_0x5b13c6(0x564,0x636,0x479,_0x54d50d._0x116148))&&(_0x4f8fb6['codeVerifier']=void 0x0,_0x4f8fb6[_0x29b369(0x4be,0x44d,0x415,0x4a5)]=void 0x0);function _0x29b369(_0x3ebd61,_0x40c585,_0x5dcea9,_0x326c44){return _0x27a7(_0x3ebd61-_0x172f13._0x4fb7b2,_0x5dcea9);}function _0x5b13c6(_0x3ae9a2,_0x8311e3,_0x1e0d84,_0x18998c){return _0x27a7(_0x18998c-_0x5e6096._0xf22636,_0x1e0d84);}(_0x146c4a==='all'||_0x146c4a===_0x5b13c6(0x6f7,0x4ce,0x477,_0x54d50d._0xa832ac))&&(_0x4f8fb6[_0x29b369(_0x54d50d._0x2a807c,_0x54d50d._0x32f8ea,0x5f7,_0x54d50d._0xe63b1c)]=void 0x0);});},async 'saveDiscoveryState'(_0x3b37eb){await updateStore(_0x577d74,_0x3ad6d0=>{const _0x23abbb={_0x25a2e5:0x74};function _0x11356e(_0x21f743,_0x3773d2,_0x3a0ae3,_0x392ee1){return _0x27a7(_0x21f743-_0x23abbb._0x25a2e5,_0x392ee1);}_0x3ad6d0[_0x11356e(0x3af,_0x21e989._0x2dcc7f,_0x21e989._0x5f44b3,0x30f)]=_0x3b37eb;});},async 'discoveryState'(){return(await readStore(_0x577d74))['discoveryState'];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x172c03,_0x3170c5){const _0x11e8a8={_0x5c9509:0x4da},_0x440335={_0x4e6a8a:0xee};function _0x157e44(_0x264cae,_0x54be96,_0x566510,_0x53c162){return _0x57b9de(_0x264cae-0x1d7,_0x566510,_0x264cae- -0x3e7,_0x53c162-0xa0);}function _0x56759c(_0x246109,_0x28a531,_0x2bc05b,_0xae2a65){return _0x23b1c2(_0x246109-0x14e,_0x2bc05b,_0x246109-_0x440335._0x4e6a8a,_0xae2a65-0x163);}const _0x121c71=_0xe28efe=>_0xe28efe[_0x56759c(0x52d,0x46a,0x596,0x5e8)](/[^a-zA-Z0-9_]+/g,'_')[_0x56759c(0x52d,0x47e,0x407,0x42f)](/^_+|_+$/g,'');return _0x56759c(0x565,0x418,0x675,_0x11e8a8._0x5c9509)+_0x121c71(_0x172c03)+'_'+_0x121c71(_0x3170c5);}function isObject(_0x169aec){const _0x1b52e1={_0x52a664:0x241,_0x18a2ae:0x37a,_0x1c67d:0x3d6},_0x17a932={_0x48489b:0x1e7,_0x32d311:0xc9,_0x26b015:0xea},_0x14e127={_0x5110c9:0x4c0};function _0x3cb03d(_0x349610,_0x2927d7,_0x306e96,_0x3e9aed){return _0x57b9de(_0x349610-0x175,_0x3e9aed,_0x306e96- -_0x14e127._0x5110c9,_0x3e9aed-0x129);}function _0x15b352(_0x983321,_0x56c0bd,_0x2fbeb6,_0x29e8df){return _0x23b1c2(_0x983321-_0x17a932._0x48489b,_0x2fbeb6,_0x983321- -_0x17a932._0x32d311,_0x29e8df-_0x17a932._0x26b015);}return typeof _0x169aec===_0x15b352(0x313,_0x1b52e1._0x52a664,0x289,0x282)&&_0x169aec!==null&&!Array[_0x15b352(_0x1b52e1._0x18a2ae,0x256,_0x1b52e1._0x1c67d,0x4ca)](_0x169aec);}function toSupportedSchema(_0x3f227a){const _0x2fe0a6={_0x3eddf7:0x6c1,_0x34d452:0x693,_0xacd710:0x5cb,_0x26afb9:0x29c,_0x4cc5cf:0x334,_0x2bcff3:0x6fd,_0x4624f6:0x4b1,_0x37f5bf:0x511,_0x3ceee8:0x47f,_0x5dbd6d:0x558,_0x1ea83c:0x51e,_0x28c58a:0x42b,_0x230ac4:0x4e3,_0x2445ea:0x43b,_0x4c62fe:0x543,_0x4c9d1f:0x560,_0x41b1aa:0x5be,_0x3fe742:0x69c,_0x2e3b15:0x55b,_0xbd5e73:0x4d0,_0x5ea2b6:0x591,_0x26c706:0x6cb,_0x512bef:0x5d8,_0x289c97:0x701,_0x56b0ba:0x6d8,_0x105951:0x5f7},_0x42129e={_0x540e28:0xc,_0x458a9b:0x1bc},_0x5b2c82={_0x15b30e:0x18,_0x46e8ba:0xaf,_0x772a0d:0xd2};if(!isObject(_0x3f227a))return void 0x0;if(_0x3f227a[_0x5f1993(_0x2fe0a6._0x3eddf7,_0x2fe0a6._0x34d452,0x73a,_0x2fe0a6._0xacd710)]===_0x7b990d(_0x2fe0a6._0x26afb9,0x2c9,_0x2fe0a6._0x4cc5cf,0x389))return{'type':'string'};function _0x7b990d(_0x369e51,_0x143995,_0x32baaa,_0x58e670){return _0x23b1c2(_0x369e51-_0x5b2c82._0x15b30e,_0x369e51,_0x32baaa-_0x5b2c82._0x46e8ba,_0x58e670-_0x5b2c82._0x772a0d);}function _0x5f1993(_0x17dddd,_0xf5a8c2,_0x382650,_0x745169){return _0x23b1c2(_0x17dddd-_0x42129e._0x540e28,_0x382650,_0xf5a8c2-0x231,_0x745169-_0x42129e._0x458a9b);}if(_0x3f227a[_0x5f1993(0x69b,0x693,0x5a4,_0x2fe0a6._0x2bcff3)]==='number'||_0x3f227a[_0x7b990d(_0x2fe0a6._0x4624f6,0x4bc,_0x2fe0a6._0x37f5bf,_0x2fe0a6._0x3ceee8)]==='integer')return{'type':_0x7b990d(0x474,_0x2fe0a6._0x5dbd6d,_0x2fe0a6._0x1ea83c,_0x2fe0a6._0x28c58a)};if(_0x3f227a['type']==='boolean')return{'type':_0x7b990d(_0x2fe0a6._0x230ac4,_0x2fe0a6._0x2445ea,_0x2fe0a6._0x4c62fe,_0x2fe0a6._0x4c9d1f)};if(_0x3f227a[_0x7b990d(0x434,_0x2fe0a6._0x41b1aa,0x511,0x5a3)]===_0x5f1993(_0x2fe0a6._0x3fe742,_0x2fe0a6._0x2e3b15,0x602,0x5af))return{'type':_0x5f1993(_0x2fe0a6._0xbd5e73,0x55b,0x4ea,0x5be),'items':toSupportedSchema(_0x3f227a[_0x5f1993(_0x2fe0a6._0x5ea2b6,_0x2fe0a6._0x26c706,0x600,_0x2fe0a6._0x512bef)])??{'type':_0x7b990d(0x243,0x2eb,0x334,0x314)}};if(_0x3f227a[_0x5f1993(_0x2fe0a6._0x289c97,0x693,_0x2fe0a6._0x56b0ba,_0x2fe0a6._0x105951)]==='object')return toNuvinToolSchema(_0x3f227a);return void 0x0;}function toNuvinToolSchema(_0x4e7821){const _0x5ac8e6={_0x7e3a52:0x42c,_0x2399a9:0x3c8,_0x2d90fb:0x4c0,_0x1035b6:0x3e2,_0x56edb5:0x43a,_0x11a025:0x503,_0x413437:0x5f8,_0x1cd235:0x4c7,_0x31170c:0x585,_0x189ddc:0x2a7,_0x5396d3:0x2fa,_0x4c198d:0x377,_0x13b3ed:0x4a3,_0x31201c:0x4a1,_0x518d40:0x370,_0x2c9b6c:0x348,_0x5e72e3:0x4f8,_0x44e9a5:0x4b9,_0x59ad48:0x3bb,_0x58d1f7:0x54a},_0x53df7b={_0x1886d0:0x50},_0x3e2f3a={_0x3c2334:0x14a};if(!isObject(_0x4e7821)||_0x4e7821[_0x58066f(_0x5ac8e6._0x7e3a52,_0x5ac8e6._0x2399a9,0x4ed,_0x5ac8e6._0x2d90fb)]!==_0x58066f(0x4bb,_0x5ac8e6._0x1035b6,0x52d,0x43a))return{'type':_0x58066f(0x478,0x341,0x57e,_0x5ac8e6._0x56edb5),'properties':{}};const _0x4e3c71={},_0x153619=isObject(_0x4e7821[_0x35d9a0(0x4be,_0x5ac8e6._0x11a025,_0x5ac8e6._0x11a025,0x48b)])?_0x4e7821[_0x58066f(_0x5ac8e6._0x413437,_0x5ac8e6._0x1cd235,_0x5ac8e6._0x31170c,0x4f1)]:{};for(const [_0x2da11b,_0x11489]of Object[_0x35d9a0(0x3d6,0x3f6,_0x5ac8e6._0x189ddc,_0x5ac8e6._0x5396d3)](_0x153619)){const _0x405181=toSupportedSchema(_0x11489);if(_0x405181)_0x4e3c71[_0x2da11b]=_0x405181;}const _0x539b56=Array[_0x58066f(_0x5ac8e6._0x4c198d,_0x5ac8e6._0x13b3ed,0x368,_0x5ac8e6._0x31201c)](_0x4e7821['required'])?_0x4e7821[_0x58066f(_0x5ac8e6._0x518d40,0x2fd,0x281,_0x5ac8e6._0x2c9b6c)]['filter'](_0x589a59=>typeof _0x589a59===_0x35d9a0(0x2b0,0x3f9,0x24d,0x1e3)):void 0x0;function _0x35d9a0(_0x46f81f,_0x1c6bb1,_0x3b782e,_0xed7cec){return _0x23b1c2(_0x46f81f-_0x3e2f3a._0x3c2334,_0xed7cec,_0x46f81f-0x2b,_0xed7cec-0x1b2);}function _0x58066f(_0x35d1bd,_0xfae789,_0x2750da,_0x3f670c){return _0x23b1c2(_0x35d1bd-0x87,_0x2750da,_0x3f670c-0x5e,_0x3f670c-_0x53df7b._0x1886d0);}return _0x539b56?.['length']?{'type':_0x58066f(_0x5ac8e6._0x5e72e3,_0x5ac8e6._0x44e9a5,_0x5ac8e6._0x59ad48,_0x5ac8e6._0x56edb5),'properties':_0x4e3c71,'required':_0x539b56}:{'type':_0x35d9a0(0x407,_0x5ac8e6._0x58d1f7,0x410,0x51c),'properties':_0x4e3c71};}function isJsonObject(_0x5ef2f5){const _0x24cdd0={_0x2d8f76:0x380,_0x3fd187:0x31d,_0x5488e0:0x33e,_0x2074ed:0x376},_0xcc6bc={_0x284f23:0x1b9,_0x496690:0x5c,_0x377db8:0x88},_0x8e583b={_0x141cbd:0x62,_0x38d98a:0x1a4};function _0x4e01ef(_0x3e5e52,_0x1c1081,_0x1ddfb4,_0x3ae781){return _0x57b9de(_0x3e5e52-0x17b,_0x1c1081,_0x1ddfb4- -_0x8e583b._0x141cbd,_0x3ae781-_0x8e583b._0x38d98a);}function _0x3ff677(_0xe094da,_0x1a08ba,_0x4e2209,_0x50133a){return _0x23b1c2(_0xe094da-_0xcc6bc._0x284f23,_0x4e2209,_0x50133a- -_0xcc6bc._0x496690,_0x50133a-_0xcc6bc._0x377db8);}return typeof _0x5ef2f5===_0x3ff677(0x310,0x4a8,0x3df,_0x24cdd0._0x2d8f76)&&_0x5ef2f5!==null&&!Array[_0x3ff677(_0x24cdd0._0x3fd187,_0x24cdd0._0x5488e0,_0x24cdd0._0x2074ed,0x3e7)](_0x5ef2f5);}function formatMcpContent(_0x3f7610){const _0x2910fb={_0x1cfbb7:0x4c5,_0x519ca2:0x5d8,_0x1c50af:0x5c1,_0x166ae9:0x71f,_0x214448:0x54b,_0x2ce3e3:0x5a0,_0x5ebbba:0x451,_0x48b507:0x559,_0x207da5:0x76e,_0x7f2d7f:0x7b8,_0x41c8fa:0x66f},_0x19ad50={_0x1020d8:0x174},_0x42c4e0={_0x3e5726:0x191,_0xac6029:0x26c,_0x568843:0x14e},_0xa5b933={_0x524afd:0x790,_0x49ae10:0x741,_0x46e059:0x60b,_0x4d25d5:0x545,_0x34c63a:0x55b,_0x48a4da:0x5a2,_0x3b9e8d:0x53b,_0x55f7ff:0x427,_0x438ed5:0x60b,_0x46d168:0x50b,_0x465827:0x5cf,_0x37d19b:0x633},_0x44432e=Array['isArray'](_0x3f7610[_0x285f06(0x4ca,_0x2910fb._0x1cfbb7,_0x2910fb._0x519ca2,_0x2910fb._0x1c50af)])?_0x3f7610['content']:[],_0x1c6ccd=_0x44432e[_0x3b4ccb(0x5cf,0x616,_0x2910fb._0x166ae9,0x64c)](_0x3eb159=>{const _0x5adee7={_0x412fb7:0x1bd,_0x3ae39f:0x64},_0x4281cc={_0x545242:0x7d,_0x38c2a5:0x1ad};function _0x2d19e6(_0x512e56,_0x295dac,_0x5be512,_0xcb1cd){return _0x285f06(_0xcb1cd,_0x295dac-_0x4281cc._0x545242,_0x5be512-_0x4281cc._0x38c2a5,_0x295dac- -0x1ff);}function _0x5c0de8(_0x3dc336,_0x1754d8,_0x4dca57,_0x47099a){return _0x285f06(_0x47099a,_0x1754d8-0xb8,_0x4dca57-_0x5adee7._0x412fb7,_0x3dc336- -_0x5adee7._0x3ae39f);}if(!isObject(_0x3eb159))return'';if(_0x3eb159[_0x5c0de8(0x718,_0xa5b933._0x524afd,0x6df,_0xa5b933._0x49ae10)]===_0x5c0de8(_0xa5b933._0x46e059,_0xa5b933._0x4d25d5,_0xa5b933._0x34c63a,0x653)&&typeof _0x3eb159[_0x5c0de8(0x60b,_0xa5b933._0x48a4da,0x62e,0x548)]===_0x5c0de8(_0xa5b933._0x3b9e8d,0x61f,0x5b3,_0xa5b933._0x55f7ff))return _0x3eb159[_0x5c0de8(_0xa5b933._0x438ed5,0x4d6,_0xa5b933._0x46d168,_0xa5b933._0x465827)];return JSON[_0x5c0de8(0x624,0x646,_0xa5b933._0x37d19b,0x65e)](_0x3eb159);})[_0x3b4ccb(_0x2910fb._0x214448,0x47b,0x56e,_0x2910fb._0x2ce3e3)](_0xe8cf41=>_0xe8cf41[_0x3b4ccb(0x707,0x7b2,0x6a4,0x66f)]>0x0)[_0x3b4ccb(0x544,_0x2910fb._0x5ebbba,0x490,0x4b7)]('\x0a');function _0x285f06(_0x1c3519,_0x81877f,_0x41819b,_0x3e75cf){return _0x57b9de(_0x1c3519-_0x42c4e0._0x3e5726,_0x1c3519,_0x3e75cf-_0x42c4e0._0xac6029,_0x3e75cf-_0x42c4e0._0x568843);}function _0x3b4ccb(_0x2f79ca,_0x2d215a,_0x37daec,_0x145faf){return _0x23b1c2(_0x2f79ca-_0x19ad50._0x1020d8,_0x2d215a,_0x145faf-0x1c6,_0x145faf-0x17a);}if(_0x1c6ccd[_0x3b4ccb(_0x2910fb._0x48b507,_0x2910fb._0x207da5,_0x2910fb._0x7f2d7f,_0x2910fb._0x41c8fa)]>0x0)return _0x1c6ccd;return JSON['stringify'](_0x3f7610,null,0x2);}function createMcpTool(_0x1fa575){const _0x554b36={_0x3a9002:0x2ff,_0x59b3a1:0x44d,_0x18afd7:0x38a,_0x742d4d:0x18c,_0x4adcd8:0xaf,_0x111b4b:0x10d,_0x14a72e:0x141,_0x362c90:0x2f2,_0x43cd64:0x318,_0x411c8c:0x2ad,_0x50139d:0x1ed,_0x549724:0x136,_0x4e1222:0x28e,_0x2638d6:0x34f,_0x532489:0x22c,_0x3ca931:0x2e1,_0x563235:0x296,_0x37a48e:0x2b2,_0x4ede9f:0x27f,_0x439cd0:0x307,_0x23ef1f:0x126,_0x2f38ae:0x34c,_0x8191eb:0x25d},_0x70097c={_0x57d78c:0x233,_0x1bf76f:0x343,_0x5f0ffb:0xf1,_0x36c12c:0x236,_0x169f6b:0x364,_0x4e95be:0x2df,_0x4f49dc:0x25f,_0xb30b15:0xdd,_0x311e9d:0x19d,_0x5e07df:0x3ce,_0x2ea1f7:0x253,_0x3174cf:0x1c8,_0x4f0550:0x480,_0x410153:0xa4,_0x4e3933:0x252,_0x1b6ec5:0x15f,_0x4e3bf9:0x34b,_0xe0c0ab:0x271},_0x44f210={_0x44c6ab:0x49},_0x18f797={_0x5e34e7:0xd9},_0x311da7={_0x109487:0xcf,_0x585444:0xef},_0x315f2a={_0x2f8bd5:0xfa};function _0x11a366(_0x183900,_0x5e1755,_0x581600,_0x3e9906){return _0x57b9de(_0x183900-0x1e8,_0x5e1755,_0x183900- -0x4f6,_0x3e9906-_0x315f2a._0x2f8bd5);}function _0x25e932(_0x1f178a,_0x123e63,_0x180b34,_0x4d4552){return _0x23b1c2(_0x1f178a-0x131,_0x180b34,_0x4d4552- -_0x311da7._0x109487,_0x4d4552-_0x311da7._0x585444);}const _0x506262=createMcpToolName(_0x1fa575[_0x25e932(0x4ac,_0x554b36._0x3a9002,_0x554b36._0x59b3a1,_0x554b36._0x18afd7)],_0x1fa575[_0x11a366(-_0x554b36._0x742d4d,-0x76,-0x209,-_0x554b36._0x4adcd8)][_0x11a366(-0xe3,-_0x554b36._0x111b4b,-_0x554b36._0x14a72e,-0xc2)]);return defineTool({'name':_0x506262,'description':_0x1fa575[_0x25e932(_0x554b36._0x362c90,_0x554b36._0x43cd64,_0x554b36._0x411c8c,_0x554b36._0x50139d)][_0x25e932(0x4c0,0x400,0x374,0x394)]??_0x25e932(_0x554b36._0x549724,_0x554b36._0x4e1222,_0x554b36._0x2638d6,_0x554b36._0x532489)+_0x1fa575['tool'][_0x25e932(0x1b5,0x36b,_0x554b36._0x3ca931,_0x554b36._0x563235)]+'\x20from\x20'+_0x1fa575['serverName'],'inputSchema':toNuvinToolSchema(_0x1fa575[_0x11a366(-_0x554b36._0x742d4d,-_0x554b36._0x37a48e,-0x1ac,-_0x554b36._0x4ede9f)][_0x25e932(_0x554b36._0x439cd0,_0x554b36._0x23ef1f,_0x554b36._0x2f38ae,_0x554b36._0x8191eb)]),async *'execute'(_0x39fa8b){const _0x41448c=await _0x1fa575[_0x37a538(_0x70097c._0x57d78c,_0x70097c._0x1bf76f,0x1d4,_0x70097c._0x5f0ffb)]['callTool']({'name':_0x1fa575[_0x37a538(_0x70097c._0x36c12c,0x284,0x12a,_0x70097c._0x169f6b)][_0x37a538(_0x70097c._0x4e95be,0x383,0x301,_0x70097c._0x4f49dc)],'arguments':isJsonObject(_0x39fa8b)?_0x39fa8b:{}});if(_0x41448c[_0x2a9031(0xb4,_0x70097c._0xb30b15,0x250,_0x70097c._0x311e9d)])throw new ToolExecutionError(formatMcpContent(_0x41448c),{'serverName':_0x1fa575[_0x37a538(0x3d3,_0x70097c._0x5e07df,0x292,0x4f5)],'toolName':_0x1fa575[_0x2a9031(0x15f,0x1ca,_0x70097c._0x2ea1f7,_0x70097c._0x3174cf)]['name']});yield createToolOutput(formatMcpContent(_0x41448c),{'serverName':_0x1fa575[_0x37a538(0x3d3,_0x70097c._0x4f0550,0x455,0x47e)],'toolName':_0x1fa575[_0x2a9031(0x2b5,_0x70097c._0x410153,_0x70097c._0x4e3933,0x1c8)][_0x2a9031(0x1c9,_0x70097c._0x1b6ec5,_0x70097c._0x4e3bf9,_0x70097c._0xe0c0ab)],'result':_0x41448c});function _0x2a9031(_0x385ad0,_0x3fc921,_0x3470a4,_0x2e790d){return _0x25e932(_0x385ad0-_0x18f797._0x5e34e7,_0x3fc921-0xa9,_0x3fc921,_0x2e790d- -0x25);}function _0x37a538(_0x361f11,_0xe9f271,_0x1d52e2,_0x415e2e){return _0x25e932(_0x361f11-0xa0,_0xe9f271-0xdb,_0xe9f271,_0x361f11-_0x44f210._0x44c6ab);}return void 0x0;}});}function resolvePrefix(_0x2d2461,_0x124a9c){const _0x49ab1d={_0x57862a:0x3c9,_0x3c19bf:0x400,_0x1c9a94:0x3f7},_0x3c20e8={_0x3c952a:0x1f};function _0x29632b(_0x4b7091,_0x2b9736,_0x54e013,_0x19aa6d){return _0x57b9de(_0x4b7091-0x77,_0x19aa6d,_0x54e013- -_0x3c20e8._0x3c952a,_0x19aa6d-0xf4);}return _0x124a9c[_0x29632b(0x4cd,_0x49ab1d._0x57862a,_0x49ab1d._0x3c19bf,_0x49ab1d._0x1c9a94)]??_0x2d2461;}function buildMcpHttpHeaders(_0x3c0500){const _0x19c36b={_0x4bb8f0:0x3a0,_0x314883:0x269,_0x306df2:0x6c,_0x2320d5:0x115,_0x3f423e:0x1a1,_0x546dbc:0x16b,_0x700dd6:0x106,_0x52c131:0x1ef,_0x341fc4:0x15c,_0x54b360:0x16b,_0x5ef777:0xd0,_0x28f287:0x49f,_0x544fee:0x3ee,_0x57bffc:0x2a7,_0x2f47e5:0x5e1,_0x2bbdf8:0x470,_0x58750c:0x4c2,_0x57a980:0x18a,_0x1573db:0x35e,_0x89d69c:0x4a4,_0xc6afd9:0x4f3},_0x6e18b7={_0x52e525:0xec,_0x38e1cb:0x1d3,_0x418897:0xad},_0x471053={_0x539165:0x1ca},_0x255c87={..._0x3c0500['headers']??{}};_0x3c0500[_0xe6174c(_0x19c36b._0x4bb8f0,_0x19c36b._0x314883,0x2c1,0x1ed)]?.['type']==='bearer'&&_0x3c0500[_0x59e830(_0x19c36b._0x306df2,0x152,_0x19c36b._0x2320d5,_0x19c36b._0x3f423e)]['token']&&_0x255c87[_0x59e830(0x23b,_0x19c36b._0x546dbc,_0x19c36b._0x700dd6,_0x19c36b._0x52c131)]===void 0x0&&(_0x255c87[_0x59e830(_0x19c36b._0x341fc4,_0x19c36b._0x54b360,0x211,_0x19c36b._0x5ef777)]=_0xe6174c(0x2c0,_0x19c36b._0x28f287,_0x19c36b._0x544fee,_0x19c36b._0x57bffc)+_0x3c0500['auth'][_0xe6174c(_0x19c36b._0x2f47e5,_0x19c36b._0x2bbdf8,_0x19c36b._0x58750c,0x516)]);function _0xe6174c(_0x47bb5e,_0x522c46,_0x11089b,_0x31815f){return _0x57b9de(_0x47bb5e-0x1da,_0x47bb5e,_0x11089b- -0x64,_0x31815f-_0x471053._0x539165);}function _0x59e830(_0x2920d2,_0x52e29b,_0x55733a,_0x3ceb22){return _0x57b9de(_0x2920d2-_0x6e18b7._0x52e525,_0x55733a,_0x52e29b- -_0x6e18b7._0x38e1cb,_0x3ceb22-_0x6e18b7._0x418897);}return Object[_0x59e830(_0x19c36b._0x57a980,0x25b,0x381,_0x19c36b._0x1573db)](_0x255c87)[_0xe6174c(0x3e7,_0x19c36b._0x89d69c,_0x19c36b._0xc6afd9,0x49b)]>0x0?_0x255c87:void 0x0;}function getErrorMessage(_0x150eda){const _0x7aa58a={_0x58a5e1:0x142},_0x31223b={_0x539980:0x1c0};function _0x1abb0d(_0x50b5eb,_0x326c4f,_0x4ed810,_0x509355){return _0x23b1c2(_0x50b5eb-_0x31223b._0x539980,_0x326c4f,_0x4ed810- -0x20c,_0x509355-0x40);}return _0x150eda instanceof Error?_0x150eda[_0x1abb0d(_0x7aa58a._0x58a5e1,0x2b5,0x1eb,0x243)]:String(_0x150eda);}function isUnauthorizedError(_0x1c173f){const _0x288b62={_0x5d4127:0x671},_0x4b34dc={_0x23c647:0xd2};function _0x5b4140(_0x3f2965,_0x4ff178,_0x2a0d15,_0x57d898){return _0x57b9de(_0x3f2965-0x76,_0x2a0d15,_0x4ff178-0x19b,_0x57d898-_0x4b34dc._0x23c647);}return _0x1c173f instanceof Error&&_0x1c173f[_0x5b4140(_0x288b62._0x5d4127,0x5d8,0x6a2,0x4a7)]['name']==='UnauthorizedError';}async function connectMcpServer(_0x29baf0,_0x7eb2c1,_0x567a83){const _0x1ab17b={_0x1cafa7:0x178,_0x4e037c:0x129,_0x29b7f4:0x9a,_0x31f4d4:0x11e,_0x1be388:0x98,_0x26341c:0x1ab,_0x8a3025:0x237,_0x4bfb57:0x16d,_0x497d01:0xe1,_0x2d7048:0x1ff,_0x2ef114:0x190,_0x400717:0x181,_0x2e3b51:0x107,_0x273059:0x1ee,_0x394a64:0xb4,_0x5e8107:0x6e,_0x22ef70:0xa4,_0x568a44:0x169,_0xb59f7f:0xfe,_0x2389f7:0x2fc,_0xdd807c:0x1e1,_0x544e7c:0x71,_0x2c763f:0x18c,_0x1ed341:0x2a,_0x4db716:0x85,_0x703ebc:0xeb,_0x125812:0xe9,_0x2297eb:0xda,_0x25870a:0x9f,_0x5665c4:0x116,_0x191f06:0x292,_0x4d0a8f:0x1f2,_0x2591ad:0xd8,_0x283bf3:0x1a7,_0x2c3b9e:0xbd,_0x225f84:0x3c,_0x192903:0x14e,_0x242272:0x7c,_0x3ad86a:0x5f,_0x52a8bc:0x3b,_0x20e68c:0x1da,_0x28bca3:0x1e4,_0x6ab3bb:0xeb,_0x1367f1:0x11a},_0x1188d8={_0x4727ee:0x68d,_0x5e785a:0x621,_0x4b175d:0x704,_0x59cf63:0x5ca,_0x39bc3b:0x5cf},_0x24bfd8={_0x3062dd:0x65},_0x5233d5={_0x1a7f24:0xd7,_0x2d2a00:0x7,_0x238876:0x54},_0x2da1fe={_0x2e5e0a:0x16f,_0x6ff9c5:0xb9},_0x57866c={_0x110703:0x11d},_0x4eb8bc={_0x3add23:0x5d,_0x1c159b:0x2e5};function _0x36ac4a(_0x5db2f8,_0x2d6fbb,_0x218557,_0x5345fa){return _0x23b1c2(_0x5db2f8-_0x4eb8bc._0x3add23,_0x2d6fbb,_0x5345fa- -_0x4eb8bc._0x1c159b,_0x5345fa-0x92);}function _0x515faf(_0x5bc9b2,_0x59875d,_0x1222c8,_0x4aa348){return _0x57b9de(_0x5bc9b2-_0x57866c._0x110703,_0x5bc9b2,_0x1222c8- -0x353,_0x4aa348-0x11);}const _0x16526d=new Client({'name':'nuvin','version':_0x36ac4a(-_0x1ab17b._0x1cafa7,-0xec,-_0x1ab17b._0x4e037c,-0x24)});_0x16526d['onerror']=_0x5e171b=>{const _0x511791={_0x3afaf6:0x62,_0x48cef6:0xab};function _0x41c197(_0x37af79,_0x2b6b32,_0x28ef81,_0x9e891){return _0x36ac4a(_0x37af79-_0x511791._0x3afaf6,_0x2b6b32,_0x28ef81-0xd1,_0x9e891- -_0x511791._0x48cef6);}function _0x287543(_0x3ac181,_0x3ff5d9,_0x32886b,_0x5ee252){return _0x36ac4a(_0x3ac181-_0x2da1fe._0x2e5e0a,_0x3ac181,_0x32886b-0x146,_0x3ff5d9-_0x2da1fe._0x6ff9c5);}console['error'](_0x41c197(0x225,0x1f4,0xa9,0x14f)+_0x29baf0+_0x41c197(0xf4,_0x5233d5._0x1a7f24,_0x5233d5._0x2d2a00,_0x5233d5._0x238876),_0x5e171b[_0x41c197(0xbc,0xd,0xe9,0x67)]);};if(_0x7eb2c1[_0x515faf(0x1c,0x6,_0x1ab17b._0x29b7f4,_0x1ab17b._0x31f4d4)]===_0x515faf(_0x1ab17b._0x1be388,0x67,_0x1ab17b._0x26341c,0x70)||_0x7eb2c1[_0x36ac4a(0x13c,0x2e5,0x2e8,0x1e8)]){if(!_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x8a3025,0x109,_0x1ab17b._0x4bfb57,0x1e8)])throw new Error('MCP\x20server\x20'+_0x29baf0+'\x20requires\x20url\x20for\x20http\x20transport');if(_0x7eb2c1[_0x36ac4a(0x79,0x98,_0x1ab17b._0x497d01,-0x6e)]?.['type']==='oauth'&&!_0x567a83?.['oauth'])throw new Error(_0x515faf(0x11c,_0x1ab17b._0x2d7048,0x232,_0x1ab17b._0x2ef114)+_0x29baf0+_0x515faf(0xaa,_0x1ab17b._0x400717,_0x1ab17b._0x2e3b51,_0x1ab17b._0x273059));const _0x2d96a1=buildMcpHttpHeaders(_0x7eb2c1),_0x356bd3=_0x7eb2c1[_0x36ac4a(-_0x1ab17b._0x394a64,-0x165,0xb3,-_0x1ab17b._0x5e8107)]?.['type']==='oauth'&&_0x567a83?.['oauth']?createMcpOAuthProvider({'serverName':_0x29baf0,'callbackUrl':_0x567a83['oauth'][_0x36ac4a(0x95,_0x1ab17b._0x22ef70,_0x1ab17b._0x568a44,_0x1ab17b._0xb59f7f)],'storageDir':_0x567a83['oauth'][_0x36ac4a(_0x1ab17b._0x2389f7,0x2db,0xed,_0x1ab17b._0xdd807c)],'config':_0x7eb2c1[_0x36ac4a(-_0x1ab17b._0x544e7c,-_0x1ab17b._0x2c763f,-_0x1ab17b._0x1ed341,-_0x1ab17b._0x5e8107)],'onRedirect':_0x3c8e2f=>_0x567a83['oauth']?.[_0x515faf(0xc,0x15c,0x126,0x1bc)](_0x29baf0,_0x3c8e2f)}):void 0x0,_0x4b83e9=new StreamableHTTPClientTransport(new URL(_0x7eb2c1['url']),{'authProvider':_0x356bd3,'requestInit':_0x2d96a1?{'headers':_0x2d96a1}:void 0x0});await _0x16526d[_0x515faf(_0x1ab17b._0x4db716,0x154,_0x1ab17b._0x703ebc,-0x52)](_0x4b83e9);}else{if(!_0x7eb2c1[_0x515faf(0x73,_0x1ab17b._0x125812,0x160,_0x1ab17b._0x2297eb)])throw new Error(_0x36ac4a(_0x1ab17b._0x25870a,_0x1ab17b._0x5665c4,_0x1ab17b._0x191f06,_0x1ab17b._0x4d0a8f)+_0x29baf0+_0x515faf(0x183,_0x1ab17b._0x2591ad,_0x1ab17b._0x283bf3,0x2f6));const _0x5b8676=new StdioClientTransport({'command':_0x7eb2c1[_0x36ac4a(0xb,_0x1ab17b._0x2c3b9e,0x1f1,0x120)],'args':_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x225f84,-0xa9,-_0x1ab17b._0x192903,-0x48)]??[],'env':_0x7eb2c1[_0x36ac4a(_0x1ab17b._0x242272,_0x1ab17b._0x3ad86a,-_0x1ab17b._0x52a8bc,0x6f)],'stderr':_0x36ac4a(0xb9,0x120,0x20c,_0x1ab17b._0x20e68c)});await _0x16526d[_0x515faf(_0x1ab17b._0x28bca3,0x1ba,_0x1ab17b._0x6ab3bb,_0x1ab17b._0x1367f1)](_0x5b8676);}return{async 'listTools'(){const _0x2a4c52={_0x397231:0x90};function _0x1bcb90(_0x23c19d,_0x4f11ba,_0x337b0a,_0x3b6817){return _0x515faf(_0x3b6817,_0x4f11ba-0xf3,_0x23c19d- -0x9a,_0x3b6817-_0x2a4c52._0x397231);}return await _0x16526d[_0x1bcb90(0x89,-0xb,-0x1d,_0x24bfd8._0x3062dd)]();},async 'callTool'(_0x5821e5){const _0x37a3b2={_0x51cd59:0xc8,_0x1e277a:0x97},_0x36689={_0x1045dc:0x70,_0x4d4b73:0x215,_0x24f621:0xa9};function _0x33ea09(_0x8ddce4,_0x3d9908,_0x310509,_0x47e40c){return _0x515faf(_0x8ddce4,_0x3d9908-_0x36689._0x1045dc,_0x47e40c-_0x36689._0x4d4b73,_0x47e40c-_0x36689._0x24f621);}function _0x4453fb(_0x2e4510,_0x4f33d3,_0x226a4e,_0x2b4c99){return _0x515faf(_0x2e4510,_0x4f33d3-_0x37a3b2._0x51cd59,_0x226a4e-0x5db,_0x2b4c99-_0x37a3b2._0x1e277a);}return await _0x16526d[_0x4453fb(_0x1188d8._0x4727ee,0x76d,_0x1188d8._0x5e785a,_0x1188d8._0x4b175d)]({'method':_0x4453fb(_0x1188d8._0x59cf63,0x4a7,_0x1188d8._0x39bc3b,0x502),'params':_0x5821e5},CallToolResultSchema);},async 'close'(){await _0x16526d['close']();}};}async function createMcpToolsFromServers(_0x27cdd5){const _0x420031={_0x1d5575:0x117,_0x3229ba:0xf0,_0x233626:0x6c,_0x2356a4:0x132,_0x48af4e:0x85,_0x4a75de:0x25c,_0x43d009:0x251,_0x3b37e3:0x298,_0x1911d1:0xd1,_0x3928e5:0x130,_0xfe28c5:0x14b,_0x29f7c1:0x129,_0x54fc86:0x44,_0x43fc89:0x76,_0x229d74:0xe2,_0x2a763a:0xec,_0x4cb129:0x142,_0x53178c:0xae,_0x20e5bb:0x88,_0x3d4259:0x3a,_0x2cc511:0x1ac,_0x1a657c:0x41,_0x2aec06:0xaf},_0x3aa75d={_0x2143e5:0x18,_0x46c269:0xb4},_0x12b1c6={_0x2d722f:0x327},_0x4ff510={_0x427301:0x1a,_0x26909f:0x3bb,_0x4fef5d:0x5d},_0x4c59c1=_0x27cdd5[_0x302a40(0xa4,-0xb,_0x420031._0x1d5575,0x99)]??connectMcpServer;function _0x5a0f89(_0x214dcb,_0x2b531f,_0x216f92,_0x1b91f6){return _0x57b9de(_0x214dcb-_0x4ff510._0x427301,_0x2b531f,_0x216f92- -_0x4ff510._0x26909f,_0x1b91f6-_0x4ff510._0x4fef5d);}const _0x3b8e64=[],_0x55b9da={};function _0x302a40(_0xd5a3a2,_0x45ea8c,_0x377a0c,_0x2f3d03){return _0x57b9de(_0xd5a3a2-0xe9,_0x2f3d03,_0x377a0c- -_0x12b1c6._0x2d722f,_0x2f3d03-0x10e);}const _0x3971f0=[];for(const [_0x243342,_0x3c0c24]of Object[_0x302a40(_0x420031._0x3229ba,_0x420031._0x233626,_0x420031._0x2356a4,0xc3)](_0x27cdd5[_0x5a0f89(-_0x420031._0x48af4e,-0x12e,-0x2c,0x109)]??{})){if(_0x3c0c24[_0x302a40(_0x420031._0x4a75de,0x2df,_0x420031._0x43d009,_0x420031._0x3b37e3)]===![]){_0x55b9da[_0x243342]={'status':_0x5a0f89(0x202,_0x420031._0x1911d1,_0x420031._0x3928e5,0x8f)};continue;}try{const _0x31a0c9=await _0x4c59c1(_0x243342,_0x3c0c24,_0x27cdd5[_0x302a40(_0x420031._0xfe28c5,0x10f,_0x420031._0x29f7c1,0x94)]);_0x3b8e64['push'](_0x31a0c9);const _0x5b83e5=await _0x31a0c9['listTools']();let _0x4f9682=0x0;for(const _0x4f7de8 of _0x5b83e5[_0x302a40(0x240,0x1d7,0x1c1,0x1db)]){const _0xf11e41=_0x27cdd5[_0x302a40(_0x420031._0x54fc86,_0x420031._0x43fc89,0x14d,0xa7)]?.[_0x243342]?.[_0x4f7de8[_0x302a40(_0x420031._0x229d74,0x1cb,_0x420031._0x2a763a,_0x420031._0x4cb129)]];if(_0xf11e41===![])continue;_0x4f9682+=0x1,_0x3971f0[_0x5a0f89(0x33,_0x420031._0x53178c,_0x420031._0x20e5bb,_0x420031._0x3d4259)](createMcpTool({'serverName':resolvePrefix(_0x243342,_0x3c0c24),'tool':_0x4f7de8,'client':_0x31a0c9}));}_0x55b9da[_0x243342]={'status':_0x302a40(_0x420031._0x2cc511,-_0x420031._0x1a657c,_0x420031._0x2aec06,0x1f6),'toolCount':_0x4f9682};}catch(_0x52392a){_0x55b9da[_0x243342]=isUnauthorizedError(_0x52392a)?{'status':'authRequired','message':getErrorMessage(_0x52392a)}:{'status':'error','message':getErrorMessage(_0x52392a)};}}return{'tools':_0x3971f0,'servers':_0x55b9da,async 'close'(){const _0x4e1d32={_0x42d6be:0x95,_0x67626:0x18b,_0x501759:0x2c};function _0x442043(_0xab4cb7,_0x57eba3,_0x4231e3,_0x2f1536){return _0x302a40(_0xab4cb7-_0x4e1d32._0x42d6be,_0x57eba3-_0x4e1d32._0x67626,_0x4231e3-_0x4e1d32._0x501759,_0xab4cb7);}function _0x5ee8e4(_0x36aa13,_0x32c38b,_0x4b64c1,_0x319c42){return _0x5a0f89(_0x36aa13-_0x3aa75d._0x2143e5,_0x36aa13,_0x319c42-0x462,_0x319c42-_0x3aa75d._0x46c269);}await Promise['all'](_0x3b8e64[_0x5ee8e4(0x56e,0x70b,0x500,0x5db)](_0x25682f=>_0x25682f[_0x442043(0x4f,0x269,0x136,0x1ee)]()));}};}function getCommand(_0x583344){const _0x527875={_0x1a58dd:0x4b7,_0x48601e:0x4a6,_0x340c90:0x457,_0x20d93f:0x555,_0x87c215:0x6b,_0x2cad2c:0x2d5,_0x27da4c:0x397,_0x478b23:0xb3,_0x15a128:0x46,_0x1a234a:0x444,_0x1af809:0x38a},_0x12d092={_0x49ba77:0x1b3,_0x9ab5e1:0x51e},_0xdf08b9={_0x274b3c:0x112,_0x506d75:0x106};function _0x35a4c7(_0x52a4af,_0x33fb0e,_0xb5cb2e,_0x302fd0){return _0x23b1c2(_0x52a4af-0x77,_0x52a4af,_0x302fd0-_0xdf08b9._0x274b3c,_0x302fd0-_0xdf08b9._0x506d75);}if(_0x583344&&typeof _0x583344===_0x35a4c7(0x54d,_0x527875._0x1a58dd,0x5b1,0x4ee)&&!Array[_0x35a4c7(_0x527875._0x48601e,0x4ab,_0x527875._0x340c90,_0x527875._0x20d93f)](_0x583344)&&typeof _0x583344[_0x3d38d8(0x67,-_0x527875._0x87c215,-0x1f,-0x74)]===_0x35a4c7(0x29d,0x25c,_0x527875._0x2cad2c,_0x527875._0x27da4c))return _0x583344[_0x3d38d8(_0x527875._0x478b23,-0x6b,_0x527875._0x15a128,-0x83)];function _0x3d38d8(_0x31ea0d,_0x10be9c,_0x2ecfdb,_0xbaec6f){return _0x57b9de(_0x31ea0d-_0x12d092._0x49ba77,_0x2ecfdb,_0x10be9c- -_0x12d092._0x9ab5e1,_0xbaec6f-0xd2);}return _0x35a4c7(_0x527875._0x1a234a,0x299,0x367,_0x527875._0x1af809);}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x23b1c2(0x538,0x3f0,0x45e,0x3ac),'docs/plans/2026-04-16-public-tools-api-implementation.md',_0x57b9de(0x38c,0x299,0x340,0x390),_0x23b1c2(0x3c4,0x3f5,0x489,0x512),_0x57b9de(0x338,0x30f,0x3a7,0x258),'src/examples/demo.ts',_0x57b9de(0x66e,0x4bf,0x53f,0x5f9),_0x57b9de(0x34b,0x2a7,0x374,0x340),_0x57b9de(0x2f4,0x3c3,0x41e,0x3a2),'src/formats/provider-adapters.ts',_0x23b1c2(0x4f1,0x4d0,0x4af,0x5ef),'src/shared/types.ts','src/agent/agent.test.ts',_0x23b1c2(0x4d6,0x456,0x39a,0x461),_0x57b9de(0x47a,0x633,0x508,0x654),_0x57b9de(0x30e,0x51d,0x45d,0x4b3)]['join']('\x0a'),SHELL_EXEC_TOOL={'name':_0x23b1c2(0x349,0x2c9,0x28d,0x2e2),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x23b1c2(0x4eb,0x4aa,0x3dc,0x37f),'properties':{'command':{'type':_0x57b9de(0x385,0x431,0x333,0x25f)}},'required':[_0x57b9de(0x4b4,0x3f1,0x4b3,0x528)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x6053ad){return{'output':_0x6053ad,'structured':{'value':_0x6053ad}};}function createUnknownToolResult(_0x202379){const _0x4c8230={_0x399ed7:0x3d0,_0x2b78c5:0x2b8,_0x46e87d:0x3c6,_0x3d4083:0x15f,_0x3e821d:0x2f,_0x1961b6:0xe0,_0x2ef8ac:0x46,_0x1ea9cf:0x3f,_0x14e0de:0x3b,_0x443662:0x73,_0x235340:0xaf},_0x18c471={_0x1d4da2:0x36,_0x4dd1ad:0x43};function _0x3015bf(_0x277180,_0x2819ea,_0x432d12,_0x4ed1f8){return _0x57b9de(_0x277180-_0x18c471._0x1d4da2,_0x4ed1f8,_0x277180- -_0x18c471._0x4dd1ad,_0x4ed1f8-0x53);}function _0x422463(_0x1cdf07,_0x4c9770,_0x257365,_0x4145b4){return _0x57b9de(_0x1cdf07-0x172,_0x257365,_0x4c9770- -0x4de,_0x4145b4-0x113);}return{'callId':_0x202379['id'],'toolName':_0x202379[_0x3015bf(_0x4c8230._0x399ed7,0x50f,_0x4c8230._0x2b78c5,_0x4c8230._0x46e87d)],'status':_0x422463(-_0x4c8230._0x3d4083,-_0x4c8230._0x3e821d,_0x4c8230._0x1961b6,_0x4c8230._0x2ef8ac),'output':_0x422463(0x22,-0xa3,-0x1ec,-_0x4c8230._0x1ea9cf)+_0x202379[_0x422463(-_0x4c8230._0x14e0de,-0xcb,-_0x4c8230._0x443662,-_0x4c8230._0x235340)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x122e97,_0x105747){const _0x486757={_0x5c9fde:0x11e,_0x3f3883:0x251,_0x140b7c:0x12a,_0x49f847:0x98},_0x2c9e1b={_0x48c545:0xfa,_0x4a1981:0x1c2},_0xe704b5={_0x3be016:0x5f,_0x9f4650:0x2ac};function _0x442911(_0x50921a,_0x38719c,_0x5581ad,_0x45969c){return _0x57b9de(_0x50921a-_0xe704b5._0x3be016,_0x5581ad,_0x45969c- -_0xe704b5._0x9f4650,_0x45969c-0xa1);}function _0x2a699e(_0x591ec4,_0x36ddea,_0x9e8e06,_0x319eed){return _0x57b9de(_0x591ec4-_0x2c9e1b._0x48c545,_0x9e8e06,_0x36ddea- -_0x2c9e1b._0x4a1981,_0x319eed-0x3e);}return{'callId':_0x122e97['id'],'toolName':_0x122e97[_0x2a699e(_0x486757._0x5c9fde,_0x486757._0x3f3883,0x19b,_0x486757._0x140b7c)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x122e97[_0x2a699e(_0x486757._0x49f847,0x1cb,0x2e4,0x223)]),'exitCode':0x0},'chunks':[_0x105747],'meta':createMeta()};}function createMockToolRuntime(){const _0x415df8={_0x536d0a:0x1fe,_0x32898e:0x21c,_0x12ba3f:0x26a,_0x8a401d:0x64a,_0x4a212b:0x845,_0x3108c0:0x70f,_0x21d499:0x72d},_0x2c9ce1={_0x4b52ba:0x47},_0xea2f8e={_0x67b700:0x4,_0x44168b:0xc2,_0x262a92:0xc0,_0x568d7f:0x98,_0x4b3fb2:0x71,_0x4d9928:0x117},_0x3ba677=async(_0x1abc5e,_0x579ea2)=>{const _0x3b2d0e={_0x3919fa:0x266};if(_0x1abc5e[_0x9a34e7(0xad,-_0xea2f8e._0x67b700,_0xea2f8e._0x44168b,0x143)]!==_0x1fc56b(_0xea2f8e._0x262a92,_0xea2f8e._0x568d7f,-_0xea2f8e._0x4b3fb2,-_0xea2f8e._0x4d9928))return createUnknownToolResult(_0x1abc5e);const _0x16042a=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0x9a34e7(_0x2216bf,_0x34e921,_0x3c9ed4,_0x568db6){return _0x27a7(_0x3c9ed4- -0x20b,_0x2216bf);}function _0x1fc56b(_0x53fc58,_0x3ec89f,_0x2caa64,_0x4204d5){return _0x27a7(_0x2caa64- -_0x3b2d0e._0x3919fa,_0x4204d5);}return createSuccessToolResult(_0x1abc5e,_0x16042a);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x110e07,_0x26af5d){function _0x420993(_0xa17c4c,_0x420e9e,_0x53517f,_0x161101){return _0x27a7(_0x161101-0x33f,_0x53517f);}function _0x2b3f23(_0x1b9763,_0x539bc1,_0x3cfe8d,_0x3a80d2){return _0x27a7(_0x3cfe8d- -_0x2c9ce1._0x4b52ba,_0x3a80d2);}return await Promise[_0x2b3f23(_0x415df8._0x536d0a,_0x415df8._0x32898e,0x29f,_0x415df8._0x12ba3f)](_0x110e07[_0x420993(_0x415df8._0x8a401d,_0x415df8._0x4a212b,_0x415df8._0x3108c0,_0x415df8._0x21d499)](async _0x42ced9=>{return await _0x3ba677(_0x42ced9,_0x26af5d);}));},async 'execute'(_0x46e8ff,_0x253e1f){return await _0x3ba677(_0x46e8ff,_0x253e1f);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0xbc0068={_0x508d45:0x4a,_0x4256f8:0x11d},_0x31ea1e={_0x53bcdf:0xb0,_0x41979c:0x3f2,_0x3f4813:0x91};function _0x42196d(_0x336d72,_0x3be039,_0x87ab10,_0x6507c7){return _0x57b9de(_0x336d72-_0x31ea1e._0x53bcdf,_0x6507c7,_0x336d72- -_0x31ea1e._0x41979c,_0x6507c7-_0x31ea1e._0x3f4813);}return delegatedRunCounter+=0x1,_0x42196d(0x28,_0xbc0068._0x508d45,-_0xbc0068._0x4256f8,0xef)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x523a62,_0x48232a){const _0x2d16b7={_0x4da543:0x1e7,_0x58e0f4:0x258,_0x40eded:0x14b},_0x54a26d={_0x22383f:0x15f,_0x45c158:0x125};function _0x40dfde(_0x541243,_0x577678,_0x44d38e,_0x3540b3){return _0x23b1c2(_0x541243-_0x54a26d._0x22383f,_0x3540b3,_0x541243- -0x2d4,_0x3540b3-_0x54a26d._0x45c158);}return typeof _0x523a62===_0x40dfde(_0x2d16b7._0x4da543,_0x2d16b7._0x58e0f4,_0x2d16b7._0x40eded,0x21d)?await _0x523a62(_0x48232a):_0x523a62;}function getDelegatedAgentDefinition(_0x447840,_0x49ff95){const _0x2e42a2={_0x5ebb5b:0x39b,_0xc9e26b:0x3ac},_0x13d4eb={_0x183245:0xfb};function _0x41c1d9(_0x182c73,_0x2840a5,_0x49cef6,_0x50c5f4){return _0x57b9de(_0x182c73-_0x13d4eb._0x183245,_0x2840a5,_0x50c5f4- -0xb,_0x50c5f4-0x1c8);}return _0x447840[_0x41c1d9(_0x2e42a2._0x5ebb5b,0x421,0x2b4,_0x2e42a2._0xc9e26b)]?.[_0x49ff95];}function createRunSummary(_0x1ccac3){const _0x4c91bb={_0x531c63:0x27b,_0x546756:0x11e,_0x43eabd:0x101,_0x356af2:0xe0,_0x16e947:0x1b7,_0x3b7d59:0x1af,_0x24fd1d:0x56c,_0x1d05b4:0x5c4,_0x2fe7c7:0xb0,_0x274950:0x94,_0x4ebc37:0x243,_0x4379af:0x222,_0x1625a4:0x5d4,_0x467407:0x688,_0x53c389:0x9c,_0x70c0d5:0x96,_0x13bc23:0x98,_0x2b21b8:0xea,_0x27acf0:0x16,_0x2326be:0x58b},_0x4c76de={_0xbe3e2a:0x18b,_0x820186:0x316,_0x28bbbd:0x142},_0xaee1e={_0x3e68cb:0x22};function _0x199c2f(_0x286602,_0x1ba2a0,_0x3b6c81,_0x55c84b){return _0x57b9de(_0x286602-0x157,_0x55c84b,_0x286602-0x9c,_0x55c84b-_0xaee1e._0x3e68cb);}function _0x13f967(_0x446d0e,_0x1fd661,_0x5e1dad,_0x2776e1){return _0x57b9de(_0x446d0e-_0x4c76de._0xbe3e2a,_0x446d0e,_0x2776e1- -_0x4c76de._0x820186,_0x2776e1-_0x4c76de._0x28bbbd);}return{'runId':_0x1ccac3[_0x13f967(_0x4c91bb._0x531c63,_0x4c91bb._0x546756,_0x4c91bb._0x43eabd,0x13d)],'agentId':_0x1ccac3[_0x13f967(_0x4c91bb._0x356af2,0x21c,_0x4c91bb._0x16e947,_0x4c91bb._0x3b7d59)],'sessionId':_0x1ccac3['sessionId'],'status':_0x1ccac3[_0x199c2f(_0x4c91bb._0x24fd1d,_0x4c91bb._0x1d05b4,0x675,0x481)],'parentSessionId':_0x1ccac3['parentSessionId'],..._0x1ccac3['originToolCallId']!==void 0x0?{'originToolCallId':_0x1ccac3[_0x13f967(-_0x4c91bb._0x2fe7c7,0xcb,-0xbe,_0x4c91bb._0x274950)]}:{},..._0x1ccac3[_0x13f967(_0x4c91bb._0x4ebc37,0x198,0x1e0,_0x4c91bb._0x4379af)]!==void 0x0?{'errorMessage':_0x1ccac3[_0x199c2f(_0x4c91bb._0x1625a4,_0x4c91bb._0x467407,0x5c4,0x4fe)]}:{},..._0x1ccac3[_0x13f967(0xde,0xd2,_0x4c91bb._0x53c389,0x1d9)]?.[_0x13f967(-_0x4c91bb._0x70c0d5,_0x4c91bb._0x13bc23,-_0x4c91bb._0x2b21b8,-_0x4c91bb._0x27acf0)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1ccac3[_0x199c2f(_0x4c91bb._0x2326be,0x635,0x5e3,0x52a)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x4feb58,_0x1bb58c){const _0x1b6e27={_0x3290c4:0x3ad,_0x2fa2fb:0x2a0,_0x1e370a:0x256},_0x23aff9={_0x3fe228:0x35,_0x381a9f:0x179,_0x2bc99d:0xe2},_0x39fdbb=createRunSummary(_0x4feb58),_0xc33369=_0x39fdbb['finalMessageText'];function _0x37a153(_0x454392,_0x88c370,_0x59b0ea,_0x394704){return _0x23b1c2(_0x454392-_0x23aff9._0x3fe228,_0x454392,_0x88c370- -_0x23aff9._0x381a9f,_0x394704-_0x23aff9._0x2bc99d);}return createToolOutput(typeof _0xc33369==='string'&&_0xc33369[_0x37a153(_0x1b6e27._0x3290c4,0x330,_0x1b6e27._0x2fa2fb,_0x1b6e27._0x1e370a)]>0x0?_0xc33369:_0x1bb58c,_0x39fdbb);}function getRunTerminalErrorMessage(_0x91cff9){const _0x56a8c2={_0x48b2a3:0x383,_0x2174a2:0x4f1,_0x45c2b5:0x4f6,_0x12816f:0x49e,_0x1ea6c9:0x259,_0x38eabf:0x1fa,_0x463413:0x22f,_0x337fd8:0x300,_0x14afa8:0x44f},_0x443471={_0x3dfcd4:0x154,_0x56f2ab:0x18a,_0x948093:0x56};function _0x2651fb(_0x53f4d3,_0x39519e,_0x3796d9,_0x2c341b){return _0x23b1c2(_0x53f4d3-0x112,_0x53f4d3,_0x39519e- -0x5a,_0x2c341b-0x13a);}const _0x5d59fc=_0x91cff9?.['state'][_0x2651fb(0x1f3,0x202,0x2fd,0x2c7)]['at'](-0x1);if(_0x5d59fc?.[_0x2651fb(_0x56a8c2._0x48b2a3,0x3c8,_0x56a8c2._0x2174a2,_0x56a8c2._0x45c2b5)]==='error'&&_0x5d59fc[_0x3430bc(0x484,0x420,_0x56a8c2._0x12816f,0x50a)][_0x2651fb(0x113,_0x56a8c2._0x1ea6c9,_0x56a8c2._0x38eabf,_0x56a8c2._0x463413)]()[_0x2651fb(_0x56a8c2._0x337fd8,_0x56a8c2._0x14afa8,0x4f6,0x46a)]>0x0)return _0x5d59fc['output'];function _0x3430bc(_0x9c68a0,_0x2693bf,_0x26a518,_0x4d60ed){return _0x57b9de(_0x9c68a0-_0x443471._0x3dfcd4,_0x26a518,_0x4d60ed-_0x443471._0x56f2ab,_0x4d60ed-_0x443471._0x948093);}return void 0x0;}function formatAbortedRunMessage(_0x268af6,_0x295b69){const _0x206f06={_0x82ea46:0x635,_0x5f32c1:0x4f6,_0x4682d5:0x638,_0x216320:0x76b,_0x4122a7:0x43c,_0x8c886b:0x4b5,_0x342d79:0x4d2},_0x4b63b1={_0x13fbfe:0x1e6};function _0x52cfa6(_0x300b16,_0x1becd7,_0x4c68e3,_0x1b9479){return _0x23b1c2(_0x300b16-0x131,_0x1b9479,_0x1becd7-0x26a,_0x1b9479-0xd6);}const _0x2d5444=_0x24838c(_0x206f06._0x82ea46,0x5b7,_0x206f06._0x5f32c1,0x52e)+_0x268af6+_0x52cfa6(0x66f,_0x206f06._0x4682d5,0x5ff,_0x206f06._0x216320);if(!_0x295b69||_0x295b69[_0x52cfa6(0x550,0x51d,0x652,0x5d9)]()['length']===0x0||_0x295b69===_0x2d5444)return _0x2d5444;function _0x24838c(_0x49d0b7,_0x4483e3,_0x5e67e7,_0x2d01da){return _0x23b1c2(_0x49d0b7-_0x4b63b1._0x13fbfe,_0x2d01da,_0x4483e3-0x2ef,_0x2d01da-0xe2);}return _0x2d5444+_0x52cfa6(_0x206f06._0x4122a7,_0x206f06._0x8c886b,_0x206f06._0x342d79,0x557)+_0x295b69;}function createAssignTaskTool(_0x10eda3){const _0xcc4bfc={_0x17a5b7:0x34b,_0x5b4317:0x45f,_0x23636f:0x3f7,_0x9429f1:0xff,_0x4e80ad:0x6c,_0xcd1388:0x30,_0x2666ef:0x2f3,_0x27198b:0x3f5,_0x5cb0d8:0x25b,_0x17fff7:0x112,_0x111ec2:0x190,_0x53268a:0x93,_0x2881c3:0x59,_0x10acfe:0x18c},_0x3e935a={_0x401a3b:0x34e,_0x260c2b:0x49a,_0x6b0b82:0x49c,_0x7422f4:0x62f,_0x543a4d:0x4e2,_0x784798:0x3f6,_0x2e22d3:0x63d,_0x4684ce:0x4ec,_0xf70e47:0x4e7,_0x29ef6f:0x477,_0x8a9602:0x421,_0x48330e:0x683,_0x5e404d:0x556,_0x2ff0dd:0x755,_0x236a72:0x574,_0x531896:0x2fb,_0x34bc1e:0x484,_0x54dfdf:0x2af,_0x585ee3:0x3f8,_0x1783f2:0x3d6,_0x4c5cbf:0x506,_0x5d302a:0x3da,_0x326276:0x489,_0x49dffd:0x6e4,_0x453b7c:0x5eb,_0xcd37ef:0x55f,_0xeb7f55:0x5f8,_0x425eb9:0x63c,_0x3bcec2:0x6c7,_0x5ede9f:0x659,_0x3999ab:0x437,_0x54347e:0x39b,_0x50ddad:0x463,_0x2eb864:0x3a8,_0x266ac6:0x40d,_0x34bb3e:0x76f,_0x2c47de:0x78e,_0x51dfbc:0x4f8,_0x1d0ef2:0x536,_0x36d018:0x4a5,_0x5366e6:0x4b4,_0x388ccc:0x610,_0x3b43cc:0x745,_0x25ee0f:0x6c3,_0x487f25:0x54a,_0x49afb8:0x664,_0x330eed:0x4b7,_0x56171a:0x6f9,_0x526daa:0x417,_0x9150c2:0x403,_0x5948e5:0x47a,_0x2889eb:0x5bf,_0x347bb8:0x4d5,_0x1e8f4b:0x585,_0x545833:0x679,_0x2bd1ac:0x4a4,_0x45c47f:0x4b5,_0x3112ff:0x2d4,_0xa28e6c:0x286,_0x342404:0x34b,_0x32a644:0x45d,_0x2c094b:0x4a7,_0x31815e:0x6de,_0x2169e6:0x1a5,_0x2f9a83:0x1e8,_0x12af66:0x2e3},_0x716ca4={_0x1635ec:0xc3},_0x1a46f4={_0x195ebb:0x1e6},_0x103fcc={_0x3fe8fe:0x53};function _0x52001a(_0x75755f,_0x29b5e4,_0x3605ee,_0x258c49){return _0x57b9de(_0x75755f-0x183,_0x29b5e4,_0x3605ee- -_0x103fcc._0x3fe8fe,_0x258c49-0x1d2);}function _0x17ddf7(_0x109652,_0x9e44d9,_0x1ef445,_0x41c9f3){return _0x23b1c2(_0x109652-_0x1a46f4._0x195ebb,_0x1ef445,_0x109652- -0x384,_0x41c9f3-0xe5);}return defineTool({'name':'AssignTask','description':_0x52001a(0x224,0x258,_0xcc4bfc._0x17a5b7,0x3e6),'inputSchema':{'type':_0x52001a(_0xcc4bfc._0x5b4317,0x503,0x437,_0xcc4bfc._0x23636f),'properties':{'agentId':{'type':_0x17ddf7(-_0xcc4bfc._0x9429f1,-_0xcc4bfc._0x4e80ad,0x31,_0xcc4bfc._0xcd1388)},'description':{'type':_0x52001a(_0xcc4bfc._0x2666ef,_0xcc4bfc._0x27198b,0x2e0,0x3bc)},'nickname':{'type':_0x52001a(0x3fe,0x242,0x2e0,_0xcc4bfc._0x5cb0d8)},'task':{'type':_0x17ddf7(-0xff,-_0xcc4bfc._0x17fff7,-_0xcc4bfc._0x111ec2,-0x21e)}},'required':[_0x17ddf7(_0xcc4bfc._0x53268a,0x56,0x8a,0xee),'description',_0x17ddf7(_0xcc4bfc._0x2881c3,_0xcc4bfc._0x10acfe,0x19,0x1a)]},async *'execute'(_0x49c8b9,_0x15e21e){const _0x4ce6da={_0x21ba00:0x155},_0x5f3a21={_0x1033ac:0x1bf,_0x12d045:0xd3},_0x673356=createDelegatedRunId(),_0x2a611f={'agentId':_0x49c8b9[_0x4d2c12(0x53a,_0x3e935a._0x401a3b,0x4d2,_0x3e935a._0x260c2b)],'parentSessionId':_0x15e21e[_0x4d2c12(_0x3e935a._0x6b0b82,_0x3e935a._0x7422f4,0x613,0x4ec)],'runId':_0x673356,..._0x15e21e[_0x4d2c12(0x543,0x2d4,_0x3e935a._0x543a4d,0x3f8)]!==void 0x0?{'toolCallId':_0x15e21e['toolCallId']}:{}};function _0x242a8e(_0xe7bfc4,_0x54dae0,_0x4be76c,_0x2598f9){return _0x52001a(_0xe7bfc4-0xda,_0x54dae0,_0xe7bfc4-_0x5f3a21._0x1033ac,_0x2598f9-_0x5f3a21._0x12d045);}const _0x4f8089=getDelegatedAgentDefinition(_0x10eda3,_0x49c8b9['agentId']);if(!_0x4f8089)throw new ToolExecutionError(_0x4d2c12(0x475,_0x3e935a._0x784798,0x4a3,0x38b)+_0x49c8b9['agentId'],{'agentId':_0x49c8b9['agentId']});const _0x57b220=new Agent(await resolveDelegatedAgentOptions(_0x4f8089,_0x2a611f));let _0x1b8715={'runId':_0x673356,'agentId':_0x49c8b9['agentId'],'sessionId':_0x57b220[_0x4d2c12(_0x3e935a._0x2e22d3,0x58f,0x459,_0x3e935a._0x4684ce)],'status':_0x242a8e(_0x3e935a._0xf70e47,_0x3e935a._0x29ef6f,_0x3e935a._0x8a9602,0x451),'parentSessionId':_0x15e21e[_0x242a8e(_0x3e935a._0x48330e,_0x3e935a._0x5e404d,_0x3e935a._0x2ff0dd,_0x3e935a._0x236a72)],..._0x15e21e[_0x4d2c12(_0x3e935a._0x531896,_0x3e935a._0x34bc1e,_0x3e935a._0x54dfdf,_0x3e935a._0x585ee3)]!==void 0x0?{'originToolCallId':_0x15e21e[_0x4d2c12(0x4c3,_0x3e935a._0x1783f2,_0x3e935a._0x4c5cbf,0x3f8)]}:{}};const _0x4a2f74=new AbortController(),_0x13e463=addAbortListener(_0x15e21e['signal'],()=>{const _0x43de05={_0x24fdae:0x1c0,_0x5035eb:0x19a};function _0x526566(_0x618f2a,_0x454664,_0x39461b,_0x5b0b1c){return _0x242a8e(_0x618f2a- -0x593,_0x39461b,_0x39461b-_0x43de05._0x24fdae,_0x5b0b1c-_0x43de05._0x5035eb);}_0x4a2f74['abort'](_0x15e21e['signal']?.[_0x526566(-_0x716ca4._0x1635ec,-0x1b9,-0x1fa,-0x160)]);});function _0x4d2c12(_0xc53b88,_0x5ae476,_0x22af8d,_0x49c44e){return _0x52001a(_0xc53b88-0x158,_0x22af8d,_0x49c44e-0x28,_0x49c44e-_0x4ce6da._0x21ba00);}yield createToolOutput('Started\x20agent\x20run\x20'+_0x1b8715[_0x4d2c12(_0x3e935a._0x5d302a,_0x3e935a._0x326276,0x46c,0x428)]+'.',{'runId':_0x1b8715[_0x242a8e(0x5bf,0x688,_0x3e935a._0x49dffd,0x648)],'agentId':_0x1b8715[_0x4d2c12(_0x3e935a._0x453b7c,_0x3e935a._0xcd37ef,0x59b,0x49a)],'sessionId':_0x1b8715[_0x242a8e(0x683,0x772,0x671,_0x3e935a._0xeb7f55)],'status':_0x1b8715[_0x242a8e(_0x3e935a._0x425eb9,_0x3e935a._0x3bcec2,0x74b,_0x3e935a._0x5ede9f)]});try{const _0xfeeb71=await _0x57b220[_0x242a8e(0x57d,0x46b,_0x3e935a._0x3999ab,0x498)](_0x49c8b9['task'],{'signal':_0x4a2f74[_0x4d2c12(_0x3e935a._0x54347e,_0x3e935a._0x50ddad,_0x3e935a._0x2eb864,_0x3e935a._0x266ac6)]});_0x1b8715={..._0x1b8715,'status':_0xfeeb71[_0x242a8e(0x63c,_0x3e935a._0x34bb3e,_0x3e935a._0x2c47de,_0x3e935a._0x51dfbc)],'result':_0xfeeb71};if(_0xfeeb71[_0x4d2c12(0x5bc,0x54e,_0x3e935a._0x1d0ef2,_0x3e935a._0x36d018)]!=='completed'){const _0x38927b=getRunTerminalErrorMessage(_0xfeeb71),_0x5161e8=formatAbortedRunMessage(_0x1b8715[_0x242a8e(0x5bf,0x546,0x4b5,_0x3e935a._0x5366e6)],_0x38927b);throw new ToolExecutionError(_0x5161e8,{...createRunSummary(_0x1b8715),'aborted':!![],'errorMessage':_0x5161e8});}return createRunSummaryOutput(_0x1b8715,'Agent\x20run\x20'+_0x1b8715['runId']+_0x242a8e(_0x3e935a._0x388ccc,_0x3e935a._0x3b43cc,_0x3e935a._0x25ee0f,0x518));}catch(_0x352756){if(_0x352756 instanceof ToolExecutionError)throw _0x352756;if(isAbortError(_0x352756)||_0x4a2f74[_0x242a8e(0x5a4,0x4ef,0x5c0,_0x3e935a._0x487f25)][_0x242a8e(0x5f1,_0x3e935a._0x49afb8,0x536,_0x3e935a._0x330eed)]||_0x15e21e['signal']['aborted']){const _0x1266df=getRunTerminalErrorMessage(_0x1b8715[_0x242a8e(0x65b,0x7a0,_0x3e935a._0x56171a,0x65b)])??(_0x352756 instanceof Error?_0x352756[_0x4d2c12(0x484,_0x3e935a._0x526daa,_0x3e935a._0x9150c2,_0x3e935a._0x5948e5)]:String(_0x352756)),_0x174496=formatAbortedRunMessage(_0x1b8715[_0x242a8e(_0x3e935a._0x2889eb,0x658,_0x3e935a._0x347bb8,_0x3e935a._0x1e8f4b)],_0x1266df);_0x1b8715={..._0x1b8715,'status':_0x242a8e(0x5f1,0x693,_0x3e935a._0x545833,0x6dc),'errorMessage':_0x174496};throw new ToolExecutionError(_0x174496,{...createRunSummary(_0x1b8715),'aborted':!![],'errorMessage':_0x174496});}const _0x1ce07a=getRunTerminalErrorMessage(_0x1b8715[_0x4d2c12(_0x3e935a._0x2bd1ac,_0x3e935a._0x45c47f,0x609,0x4c4)])??(_0x352756 instanceof Error?_0x352756['message']:String(_0x352756))??_0x4d2c12(_0x3e935a._0x3112ff,0x3a0,_0x3e935a._0xa28e6c,_0x3e935a._0x342404)+_0x1b8715[_0x4d2c12(_0x3e935a._0x32a644,0x407,_0x3e935a._0x2c094b,0x428)]+_0x242a8e(0x690,0x602,0x6be,_0x3e935a._0x31815e);_0x1b8715={..._0x1b8715,'status':_0x4d2c12(_0x3e935a._0x2169e6,0x2e6,_0x3e935a._0x2f9a83,_0x3e935a._0x12af66),'errorMessage':_0x1ce07a};throw new ToolExecutionError(_0x1ce07a,{...createRunSummary(_0x1b8715),'errorMessage':_0x1ce07a});}finally{_0x13e463();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x446a1f){return[createAssignTaskTool(_0x446a1f)];}import*as _0x441627 from'path';function buildDescription2(_0x449352){const _0x2daec7={_0xeac6e1:0x342,_0x57176e:0x1da,_0x4f5768:0x299,_0x4b6436:0x233,_0x3f1303:0x27c,_0x36c3eb:0x173,_0x54984d:0x17a,_0x51fe5c:0x4b,_0xb13eb1:0x19,_0x538deb:0x9b,_0x4eec75:0x139,_0x191ada:0x19,_0x18dc8f:0x6a,_0x2bbd8b:0x8f,_0x1d921f:0xea,_0x1dd88d:0x31},_0x16bcf8={_0x3d996c:0x321,_0x2b5242:0x8c},_0x3edde8={_0x1632d8:0xc6,_0x5189a7:0xa1};if(_0x449352[_0xc4238(0x22a,0x2f4,0x236,_0x2daec7._0xeac6e1)]===0x0)return _0xc4238(_0x2daec7._0x57176e,_0x2daec7._0x4f5768,_0x2daec7._0x4b6436,_0x2daec7._0x3f1303);function _0x3fc2c5(_0x274aa2,_0x2121c0,_0x393d36,_0x46577e){return _0x23b1c2(_0x274aa2-_0x3edde8._0x1632d8,_0x274aa2,_0x46577e- -0x455,_0x46577e-_0x3edde8._0x5189a7);}function _0xc4238(_0x326daf,_0x2c2fad,_0xe0ec24,_0x5c6161){return _0x57b9de(_0x326daf-0x4a,_0x5c6161,_0xe0ec24- -_0x16bcf8._0x3d996c,_0x5c6161-_0x16bcf8._0x2b5242);}const _0x4b5a8b=[_0xc4238(_0x2daec7._0x36c3eb,_0x2daec7._0x54984d,_0x2daec7._0x51fe5c,_0x2daec7._0xb13eb1),_0x3fc2c5(-0x1a2,-0xd3,-0xbd,-0x10f),_0xc4238(_0x2daec7._0x538deb,_0x2daec7._0x4eec75,_0x2daec7._0x191ada,_0x2daec7._0x18dc8f),_0xc4238(0x1f0,0x45,0x112,_0x2daec7._0x2bbd8b),..._0x449352[_0x3fc2c5(0x103,0x91,-_0x2daec7._0x1d921f,_0x2daec7._0x1dd88d)](_0x12f75e=>'-\x20'+_0x12f75e['name']+':\x20'+_0x12f75e[_0xc4238(0x20c,0x303,0x1f0,0x1a1)])];return _0x4b5a8b['join']('\x0a');}function createLoadSkillTool(_0x2f1aae){const _0x2cbbe4={_0x4097cb:0x97,_0x56518e:0xb3,_0x3adb8d:0x7c,_0x5b7908:0xed,_0x655dea:0xc3,_0x47c102:0xd5,_0x40b372:0xd2,_0x43db9a:0x42,_0x5af711:0xe8},_0x82e3ef={_0x4f334d:0x51,_0x5747fb:0x3cc,_0x308c06:0x83,_0xaca3c6:0xa3,_0x569ab0:0xe0,_0x4b2521:0x51d,_0x26713c:0x2b9,_0x33b53b:0x1c5,_0x6a6515:0x33d,_0x42d0cb:0xdf,_0x57f35d:0x92,_0x1488a9:0x41d,_0x57720b:0x3ed,_0x5995de:0x88,_0x182f15:0x178,_0x28c555:0x3b6,_0x341ad9:0x34e,_0xdc4ff4:0x2bf,_0x2408e8:0x264,_0x21b2da:0x194,_0x17b5a3:0x19a,_0xf5b106:0x373,_0x3b9fad:0x187,_0x49fb29:0x2be,_0xf1f013:0x3bf,_0x1694c5:0x45b,_0x50cc41:0x1ca,_0x52a9b4:0xdf,_0x1459ec:0xe7,_0x2f03dd:0xc6,_0xb6a464:0x2cd,_0x2a6eea:0x101,_0x13df64:0x43e,_0x2d7b21:0x3ff},_0x50c5b7={_0x1fb405:0x1f2,_0x52e852:0x3c},_0x3aa0e6={_0x46321f:0x32,_0x1e77d7:0x4bc,_0x5a7183:0x1ea},_0x18c8d6={_0x3dd105:0xd4};function _0x1076d3(_0x118511,_0xd40ef1,_0x4546c5,_0x32c06e){return _0x23b1c2(_0x118511-0x19a,_0x32c06e,_0x4546c5- -0x319,_0x32c06e-_0x18c8d6._0x3dd105);}const _0x304c38=new Map(_0x2f1aae[_0x1076d3(0xd,_0x2cbbe4._0x4097cb,0x86,_0x2cbbe4._0x56518e)]['map'](_0x794ad3=>[_0x794ad3[_0x1076d3(0xdc,0x11c,0x4c,-0xd)],_0x794ad3])),_0x1ee448=buildDescription2(_0x2f1aae[_0x376d7d(-0x6f,0xd0,_0x2cbbe4._0x3adb8d,-0x129)]);function _0x376d7d(_0xc5c365,_0x5ac631,_0x58c6d1,_0x3c41a6){return _0x57b9de(_0xc5c365-_0x3aa0e6._0x46321f,_0x58c6d1,_0xc5c365- -_0x3aa0e6._0x1e77d7,_0x3c41a6-_0x3aa0e6._0x5a7183);}return defineTool({'name':'LoadSkill','description':_0x1ee448,'inputSchema':{'type':_0x1076d3(0x2f,_0x2cbbe4._0x5b7908,_0x2cbbe4._0x655dea,0x77),'properties':{'name':{'type':_0x376d7d(-0x189,-_0x2cbbe4._0x47c102,-_0x2cbbe4._0x40b372,-0x1d3)}},'required':[_0x376d7d(-0xa9,-_0x2cbbe4._0x43db9a,-0x133,-_0x2cbbe4._0x5af711)]},async *'execute'(_0x5abec9){const _0x262afa=_0x304c38[_0x54eb06(-_0x82e3ef._0x4f334d,0xf,0x73,0x154)](_0x5abec9[_0x14db13(0x2a7,_0x82e3ef._0x5747fb,0x259,0x1a4)]);if(!_0x262afa){const _0xe84659=Array[_0x54eb06(-_0x82e3ef._0x308c06,0x4a,0xb5,0x160)](_0x304c38[_0x54eb06(0x1dc,_0x82e3ef._0xaca3c6,0x19c,_0x82e3ef._0x569ab0)]())['join'](',\x20');throw new ToolExecutionError(_0x14db13(0x3fe,_0x82e3ef._0x4b2521,0x2e4,0x4b0)+_0x5abec9['name']+_0x14db13(0x27c,_0x82e3ef._0x26713c,_0x82e3ef._0x33b53b,0x2f3)+_0xe84659,{'name':_0x5abec9['name']});}const _0x25c08e=await _0x2f1aae['loadSkill'](_0x262afa);function _0x14db13(_0x4e8a1c,_0x22a4e4,_0x23a966,_0x3fd723){return _0x1076d3(_0x4e8a1c-0x47,_0x22a4e4-0x196,_0x4e8a1c-0x25b,_0x23a966);}const _0x5aa372=_0x262afa[_0x14db13(0x3c7,_0x82e3ef._0x6a6515,0x481,0x2c8)][_0x14db13(0x3c2,0x388,0x367,0x4c6)]??_0x441627[_0x54eb06(0xdb,_0x82e3ef._0x42d0cb,-0x62,_0x82e3ef._0x57f35d)](_0x262afa[_0x14db13(0x3c7,0x385,_0x82e3ef._0x1488a9,_0x82e3ef._0x57720b)]['path']),_0x289bd7=['##\x20Skill:\x20'+_0x25c08e[_0x54eb06(0xb2,_0x82e3ef._0x5995de,0x7c,_0x82e3ef._0x182f15)],'',_0x25c08e[_0x14db13(_0x82e3ef._0x28c555,0x45a,_0x82e3ef._0x341ad9,_0x82e3ef._0xdc4ff4)],'',_0x14db13(_0x82e3ef._0x2408e8,_0x82e3ef._0x21b2da,_0x82e3ef._0x17b5a3,_0x82e3ef._0xf5b106),_0x54eb06(0x1c5,_0x82e3ef._0x3b9fad,_0x82e3ef._0x49fb29,0x21f)+_0x262afa['source'][_0x14db13(_0x82e3ef._0xf1f013,0x499,0x40a,_0x82e3ef._0x1694c5)],_0x14db13(_0x82e3ef._0x50cc41,_0x82e3ef._0x52a9b4,_0x82e3ef._0x1459ec,_0x82e3ef._0x2f03dd)+_0x5aa372]['join']('\x0a');function _0x54eb06(_0x2e2c6b,_0x1464a3,_0x51ce2d,_0x5878be){return _0x1076d3(_0x2e2c6b-0x8b,_0x1464a3-_0x50c5b7._0x1fb405,_0x1464a3-_0x50c5b7._0x52e852,_0x2e2c6b);}return yield createToolOutput(_0x289bd7,{'id':_0x25c08e['id'],'name':_0x25c08e['name'],'path':_0x262afa[_0x54eb06(0x23e,0x1a8,_0x82e3ef._0xb6a464,_0x82e3ef._0x2a6eea)][_0x14db13(0x3bf,0x3de,_0x82e3ef._0x13df64,_0x82e3ef._0x2d7b21)],'baseDirectory':_0x5aa372}),void 0x0;}});}var TODO_STATUSES=new Set([_0x57b9de(0x318,0x3d9,0x354,0x257),_0x57b9de(0x58c,0x44b,0x530,0x669),'completed']),TODO_PRIORITIES=new Set([_0x23b1c2(0x166,0x3b9,0x295,0x1ec),_0x57b9de(0x3b4,0x47d,0x358,0x39b),_0x57b9de(0x5e3,0x5d4,0x54e,0x46a)]);function isTodoStatus(_0x5516c7){const _0x31a80c={_0x3a0eb8:0x3f6,_0xe738ec:0x2f6,_0x270f11:0x472,_0x5023ff:0x55c,_0x827c7b:0x3b7},_0x4fd7be={_0x160382:0x171,_0x1319ad:0xa6},_0x3ff1ea={_0x1f351d:0xf2,_0x49c723:0x35b};function _0x51e061(_0xdea2b0,_0x40c9e5,_0x17fb51,_0x2b82c5){return _0x57b9de(_0xdea2b0-_0x3ff1ea._0x1f351d,_0xdea2b0,_0x17fb51- -_0x3ff1ea._0x49c723,_0x2b82c5-0x38);}function _0x1430fb(_0x376d61,_0x4df81e,_0x42c13b,_0x4bb96d){return _0x23b1c2(_0x376d61-0xe2,_0x4df81e,_0x376d61-_0x4fd7be._0x160382,_0x4bb96d-_0x4fd7be._0x1319ad);}return typeof _0x5516c7===_0x1430fb(_0x31a80c._0x3a0eb8,0x4a5,0x2de,_0x31a80c._0xe738ec)&&TODO_STATUSES[_0x1430fb(_0x31a80c._0x270f11,_0x31a80c._0x5023ff,0x3c6,_0x31a80c._0x827c7b)](_0x5516c7);}function isTodoPriority(_0x13635d){const _0x5a5b6c={_0x5009dc:0x55};function _0x14c7c0(_0x314b8d,_0x3ae717,_0x22e7ff,_0x5050c8){return _0x23b1c2(_0x314b8d-0xf7,_0x314b8d,_0x22e7ff- -0x279,_0x5050c8-0x100);}return typeof _0x13635d==='string'&&TODO_PRIORITIES[_0x14c7c0(-0x1e,_0x5a5b6c._0x5009dc,0x88,0x2f)](_0x13635d);}var TodoStore=class{[_0x57b9de(0x40e,0x3a7,0x4b5,0x36b)]=new Map();[_0x57b9de(0x291,0x274,0x370,0x3aa)](_0x499400){const _0x586eff={_0x25de2c:0x276,_0x1dfd30:0x203,_0x580ca3:0x290,_0x13261f:0x183},_0xe1bc59={_0x519dce:0x169,_0x467e9b:0xfe},_0x28a71c={_0x5c0028:0x2c,_0xa973d8:0x2e6};function _0x57d0d8(_0x12e244,_0x1d0c67,_0x102c91,_0x3cdfea){return _0x57b9de(_0x12e244-_0x28a71c._0x5c0028,_0x1d0c67,_0x3cdfea- -_0x28a71c._0xa973d8,_0x3cdfea-0xfb);}function _0x4bfa0b(_0x5efd82,_0x1cdeb5,_0x356e4c,_0x41cd75){return _0x23b1c2(_0x5efd82-0x70,_0x5efd82,_0x356e4c- -_0xe1bc59._0x519dce,_0x41cd75-_0xe1bc59._0x467e9b);}return this[_0x4bfa0b(0x2cc,_0x586eff._0x25de2c,0x29e,0x303)][_0x4bfa0b(_0x586eff._0x1dfd30,_0x586eff._0x580ca3,_0x586eff._0x13261f,0x11a)](_0x499400)??[];}[_0x57b9de(0x391,0x46e,0x4cb,0x558)](_0x14a1e4,_0x4ccca4){const _0x8dd809={_0x281b01:0x335,_0x17c68f:0xd1,_0x45706f:0x124},_0xb2c61a={_0x5e0c1d:0x1f0,_0x16b3a6:0x9c},_0x1fe58e={_0x54f2eb:0x110};function _0x2cb87a(_0x2cac03,_0x2cbfb1,_0x1bcfee,_0x2e5a2f){return _0x23b1c2(_0x2cac03-0xee,_0x2cac03,_0x2cbfb1- -0xd2,_0x2e5a2f-_0x1fe58e._0x54f2eb);}function _0x2a526d(_0x41bd8f,_0x584257,_0x4b4b6e,_0x1ed85e){return _0x57b9de(_0x41bd8f-_0xb2c61a._0x5e0c1d,_0x4b4b6e,_0x584257- -0x461,_0x1ed85e-_0xb2c61a._0x16b3a6);}this[_0x2cb87a(0x3e8,_0x8dd809._0x281b01,0x251,0x2ba)][_0x2cb87a(_0x8dd809._0x17c68f,0x177,0x1d1,_0x8dd809._0x45706f)](_0x14a1e4,_0x4ccca4);}[_0x57b9de(0x3a8,0x348,0x3e5,0x3cb)](_0x3d3923){const _0x3dea51={_0xc567d4:0x22f,_0x4b453f:0x13a,_0x454cc2:0x270,_0x55f15d:0xad,_0x54eb79:0x85,_0x3cd251:0xc1,_0x33beac:0x159,_0x152980:0x10e,_0x444904:0xd4,_0x344e50:0x8f,_0x1e1e1d:0x26,_0x25a9d7:0x41,_0x12f491:0x9,_0x1c4b86:0x174};function _0x31d5b9(_0x3fe2f7,_0xa45dbf,_0x48c26c,_0x463f72){return _0x57b9de(_0x3fe2f7-0xe,_0x463f72,_0x48c26c- -0x4aa,_0x463f72-0xa8);}function _0x473d7c(_0x33971d,_0x34779b,_0x5de767,_0x2f6b12){return _0x57b9de(_0x33971d-0x12,_0x5de767,_0x2f6b12- -0x462,_0x2f6b12-0x122);}const _0xd73013=this[_0x31d5b9(-0x258,-_0x3dea51._0xc567d4,-_0x3dea51._0x4b453f,-_0x3dea51._0x454cc2)](_0x3d3923),_0x411f24={'total':_0xd73013[_0x31d5b9(0x16f,0x71,_0x3dea51._0x55f15d,0x46)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xf509f3 of _0xd73013){if(_0xf509f3[_0x31d5b9(_0x3dea51._0x54eb79,_0x3dea51._0x3cd251,0x26,0xa3)]===_0x473d7c(-0x1ed,-0x1e1,-_0x3dea51._0x33beac,-_0x3dea51._0x152980))_0x411f24[_0x31d5b9(-_0x3dea51._0x444904,-0xd4,-0x156,-_0x3dea51._0x344e50)]+=0x1;else{if(_0xf509f3[_0x31d5b9(0x65,-0x8b,_0x3dea51._0x1e1e1d,-0x5c)]==='in_progress')_0x411f24[_0x473d7c(-_0x3dea51._0x25a9d7,-0x1d,-_0x3dea51._0x12f491,-0x145)]+=0x1;else _0x411f24[_0x473d7c(0x106,_0x3dea51._0x1c4b86,-0x60,0xbe)]+=0x1;}}return _0x411f24;}};function validateTodos(_0x454c84){const _0x5d85c2={_0x449ede:0x31e,_0x1de68f:0x35b,_0x241d2a:0x406,_0x46c2a2:0x8,_0x26b383:0x130,_0x5e0200:0xa4,_0xc20c82:0x94,_0x5b3da3:0x2d2,_0x505c8c:0x1a5,_0x380fb5:0x8c,_0xed6b9b:0x212,_0x1b8f4c:0x251,_0x3729de:0x1ad,_0x38d1bd:0x1a1,_0x4b68af:0x363,_0x4cc1e2:0x1f3,_0x42a38b:0x13f,_0x1aa6da:0x25f,_0x442730:0xe0,_0x59973f:0x137,_0x5409eb:0x178,_0x3528e0:0x1fa,_0x5698ba:0x448,_0x214f96:0x219,_0x181905:0x2b2,_0x338ab7:0x2a9,_0x458db1:0x30c,_0x101582:0x50,_0x4f5354:0x1a0,_0x4acc90:0x1ca,_0x4653ba:0x238,_0x59e5aa:0x295,_0x322e81:0x44e,_0x22423f:0x2f9,_0x1e0b7e:0x326,_0x449d5b:0x3ec,_0x533d67:0x3d1,_0x32f1a8:0x341,_0x6c141c:0x20d,_0x50ea3e:0x33d,_0x3b595d:0x236,_0x1134d5:0x2d4,_0xa6f6bf:0x278,_0x550368:0x32d,_0x3cc4f0:0x3ca,_0xc81d99:0x1dc,_0x1e75f1:0x175,_0x4456b0:0x43f,_0x279574:0x205,_0x4d4848:0x29d,_0x2806a3:0x34b,_0x466192:0x218,_0x36ad34:0x3d5,_0x58e9ef:0x1d0,_0x7100be:0x220,_0x56ac03:0x36e,_0x5722b7:0x3a1,_0x36eb6c:0x470,_0x5723bb:0x2a,_0x476e4b:0x15b,_0x3a26ea:0x24b,_0x28feca:0x18a},_0xb73ffc={_0x45008a:0x13a,_0x4a32f0:0x13b};if(!Array['isArray'](_0x454c84['todos'])||_0x454c84['todos'][_0x10ed1d(0x42a,_0x5d85c2._0x449ede,_0x5d85c2._0x1de68f,_0x5d85c2._0x241d2a)]===0x0)throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x46c2a2,_0x5d85c2._0x26b383,_0x5d85c2._0x5e0200,_0x5d85c2._0xc20c82),{'error':'invalid_todos'});for(let _0x33030d=0x0;_0x33030d<_0x454c84[_0x12c6d2(_0x5d85c2._0x5b3da3,_0x5d85c2._0x505c8c,_0x5d85c2._0x380fb5,0x20c)][_0x10ed1d(0x31e,0x297,0x35b,0x4a5)];_0x33030d+=0x1){const _0x2ab691=_0x454c84[_0x12c6d2(_0x5d85c2._0xed6b9b,0x1a5,_0x5d85c2._0x1b8f4c,_0x5d85c2._0x3729de)][_0x33030d];if(!_0x2ab691||typeof _0x2ab691!==_0x10ed1d(_0x5d85c2._0x38d1bd,0x39a,0x28e,0x30f))throw new ToolExecutionError(_0x10ed1d(0x341,0x3ec,0x2e6,_0x5d85c2._0x4b68af)+(_0x33030d+0x1)+_0x12c6d2(0x106,0x118,_0x5d85c2._0x4cc1e2,0x26b),{'error':_0x12c6d2(0xf3,_0x5d85c2._0x42a38b,_0x5d85c2._0x1aa6da,0xc6)});if(typeof _0x2ab691['id']!==_0x10ed1d(0x259,_0x5d85c2._0x442730,_0x5d85c2._0x59973f,0x189)||_0x2ab691['id'][_0x12c6d2(0x8c,_0x5d85c2._0x5409eb,_0x5d85c2._0x3528e0,0x213)]()[_0x10ed1d(0x3dd,_0x5d85c2._0x5698ba,0x35b,0x428)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x33030d+0x1)+_0x12c6d2(_0x5d85c2._0x214f96,_0x5d85c2._0x181905,0x2d1,_0x5d85c2._0x338ab7),{'error':_0x10ed1d(0x31d,0x30a,0x390,_0x5d85c2._0x458db1)});if(typeof _0x2ab691['content']!==_0x10ed1d(0xcc,0xf3,0x137,_0x5d85c2._0x101582)||_0x2ab691[_0x12c6d2(_0x5d85c2._0x4f5354,0x16c,_0x5d85c2._0x4acc90,0x20f)][_0x12c6d2(_0x5d85c2._0x4653ba,0x178,0x294,0x24a)]()[_0x12c6d2(_0x5d85c2._0x59e5aa,0x36e,0x396,_0x5d85c2._0x322e81)]===0x0)throw new ToolExecutionError(_0x12c6d2(0x435,_0x5d85c2._0x22423f,0x1cf,_0x5d85c2._0x1e0b7e)+(_0x33030d+0x1)+_0x10ed1d(0x238,_0x5d85c2._0x449d5b,0x318,0x398),{'error':_0x10ed1d(0x312,_0x5d85c2._0x533d67,_0x5d85c2._0x32f1a8,_0x5d85c2._0x6c141c)});if(!isTodoStatus(_0x2ab691[_0x10ed1d(_0x5d85c2._0x50ea3e,_0x5d85c2._0x3b595d,_0x5d85c2._0x1134d5,_0x5d85c2._0xa6f6bf)]))throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x550368,0x2f9,0x28a,_0x5d85c2._0x3cc4f0)+(_0x33030d+0x1)+':\x20invalid\x20status',{'error':_0x12c6d2(0x2e2,_0x5d85c2._0xc81d99,_0x5d85c2._0x1e75f1,0xa3)});if(!isTodoPriority(_0x2ab691[_0x12c6d2(0x391,0x300,_0x5d85c2._0x4456b0,_0x5d85c2._0x279574)]))throw new ToolExecutionError(_0x10ed1d(_0x5d85c2._0x4d4848,0x1e6,0x2e6,0x254)+(_0x33030d+0x1)+':\x20invalid\x20priority',{'error':'invalid_todo_priority'});}function _0x12c6d2(_0x41edc9,_0x5df231,_0x3b51eb,_0x12cd4f){return _0x23b1c2(_0x41edc9-_0xb73ffc._0x45008a,_0x41edc9,_0x5df231- -_0xb73ffc._0x4a32f0,_0x12cd4f-0x97);}function _0x10ed1d(_0x2b8d90,_0x11049c,_0x213e5d,_0x3f8476){return _0x23b1c2(_0x2b8d90-0x181,_0x11049c,_0x213e5d- -0x14e,_0x3f8476-0x33);}const _0x5d4c0d=_0x454c84[_0x12c6d2(0x177,_0x5d85c2._0x505c8c,0x2db,0x2ee)][_0x12c6d2(0x39f,_0x5d85c2._0x2806a3,_0x5d85c2._0x466192,_0x5d85c2._0x36ad34)](_0x59a497=>_0x59a497['id']);if(new Set(_0x5d4c0d)[_0x12c6d2(0x26a,0x2cb,0x1de,_0x5d85c2._0x58e9ef)]!==_0x5d4c0d[_0x12c6d2(_0x5d85c2._0x7100be,_0x5d85c2._0x56ac03,_0x5d85c2._0x5722b7,_0x5d85c2._0x36eb6c)])throw new ToolExecutionError(_0x12c6d2(_0x5d85c2._0x5723bb,0x12b,_0x5d85c2._0x476e4b,_0x5d85c2._0x3a26ea),{'error':_0x10ed1d(_0x5d85c2._0x4f5354,0x2d6,_0x5d85c2._0x28feca,0x167)});}function createStatsProgress(_0x236530){const _0x2e87f6={_0x462dbc:0x176,_0x14c609:0x16b,_0x3674a:0x1eb,_0x538eba:0x1d7,_0x5dad82:0xe2,_0x23ea30:0x398,_0x3a87a6:0x2fe,_0x3821c1:0x11f,_0x3e1ee5:0xb0,_0x91a501:0x1f3,_0x104c14:0x1c8},_0x24550c={_0x540d78:0x4d,_0x5873c1:0x1a0},_0x2021b2={_0x2c8783:0x1b7};function _0x268649(_0x5dc541,_0x534b25,_0x15ff03,_0x4fd0f4){return _0x23b1c2(_0x5dc541-_0x2021b2._0x2c8783,_0x15ff03,_0x4fd0f4- -0x174,_0x4fd0f4-0x71);}function _0x5cf10c(_0x14f5f0,_0xd5afbb,_0x58f2f2,_0x4df89c){return _0x23b1c2(_0x14f5f0-_0x24550c._0x540d78,_0xd5afbb,_0x4df89c- -0x197,_0x4df89c-_0x24550c._0x5873c1);}return _0x236530[_0x268649(0x2a3,_0x2e87f6._0x462dbc,_0x2e87f6._0x14c609,_0x2e87f6._0x3674a)]>0x0?Math[_0x5cf10c(0x15f,0x87,_0x2e87f6._0x538eba,_0x2e87f6._0x5dad82)](_0x236530[_0x268649(0x43a,_0x2e87f6._0x23ea30,0x304,_0x2e87f6._0x3a87a6)]/_0x236530[_0x5cf10c(_0x2e87f6._0x3821c1,_0x2e87f6._0x3e1ee5,_0x2e87f6._0x91a501,_0x2e87f6._0x104c14)]*0x64)+'%':'0%';}function createReminderItems(_0x53adab){const _0x1f9262={_0x540ab9:0x47e,_0xfdcc86:0x2e9},_0x179561={_0x5d719c:0x100,_0x67c910:0xc},_0x207249={_0x139ca9:0xf7,_0x7948ce:0x16};function _0x28f948(_0xc776f4,_0x5eda0e,_0x538f36,_0x311c33){return _0x57b9de(_0xc776f4-_0x207249._0x139ca9,_0x311c33,_0x538f36- -_0x207249._0x7948ce,_0x311c33-0x1e7);}function _0x47ba5d(_0x47ff69,_0x340619,_0x47b183,_0x451ba1){return _0x23b1c2(_0x47ff69-0x122,_0x451ba1,_0x47b183- -_0x179561._0x5d719c,_0x451ba1-_0x179561._0x67c910);}return _0x53adab[_0x47ba5d(_0x1f9262._0x540ab9,_0x1f9262._0xfdcc86,0x386,0x378)](_0x4f883c=>({'content':_0x4f883c['content'],'status':_0x4f883c[_0x28f948(0x435,0x501,0x4ba,0x48b)],'id':_0x4f883c['id']}));}function createStructuredResult(_0x1a0671,_0xbf4049,_0x4cbe5b,_0x2b8a87){const _0x1a4dc3={_0x1e26c7:0x748,_0x2779a6:0x65a,_0x4c12f6:0x73e,_0x1ad5e1:0x67d},_0x4a0667={_0x382835:0x8a},_0x23ec93={_0x314275:0x24a,_0x247a6c:0x1c7};function _0x48c938(_0x34efed,_0x95c5c8,_0x1334e3,_0x4dd509){return _0x23b1c2(_0x34efed-0x52,_0x95c5c8,_0x1334e3- -_0x23ec93._0x314275,_0x4dd509-_0x23ec93._0x247a6c);}function _0x579180(_0x40ddf1,_0x1377bb,_0x6096ec,_0x580265){return _0x57b9de(_0x40ddf1-_0x4a0667._0x382835,_0x40ddf1,_0x1377bb-0x126,_0x580265-0xd6);}return{'allCompleted':_0x2b8a87,'items':_0xbf4049[_0x579180(_0x1a4dc3._0x1e26c7,_0x1a4dc3._0x2779a6,0x5ed,0x56c)](_0x39edd4=>({'id':_0x39edd4['id'],'content':_0x39edd4[_0x48c938(0xd9,-0x8e,0x5d,0x2b)],'status':_0x39edd4[_0x579180(0x5eb,0x5f6,0x692,0x513)],'priority':_0x39edd4[_0x579180(0x661,0x60f,0x664,0x646)],'createdAt':_0x39edd4[_0x579180(0x520,0x589,0x61b,0x6ae)]})),'progress':createStatsProgress(_0x4cbe5b),'recentChanges':!![],'sessionId':_0x1a0671,'stats':_0x4cbe5b,'todosWritten':_0xbf4049[_0x579180(_0x1a4dc3._0x4c12f6,_0x1a4dc3._0x1ad5e1,0x641,0x6d2)]};}function createOutputText(_0x464a1e,_0x4f6b91){const _0xd88794={_0x218c9f:0xc7,_0x45555a:0x1e,_0x3b6d19:0x126,_0x12dbdb:0x86,_0x303884:0x2f,_0x275256:0xba,_0xc5cc6e:0x10a,_0x27fcad:0xb8},_0x1cc6ec={_0x2cd203:0x1ee},_0x3865bc={_0x369ac4:0x4f,_0x58145a:0x420,_0x4d2992:0x15e},_0x4ff7c2=JSON[_0x478f6f(0xe7,-0x4,0xf7,-_0xd88794._0x218c9f)](createReminderItems(_0x464a1e));function _0x478f6f(_0x2c909f,_0xab3541,_0x4a3386,_0x513f36){return _0x57b9de(_0x2c909f-_0x3865bc._0x369ac4,_0x513f36,_0xab3541- -_0x3865bc._0x58145a,_0x513f36-_0x3865bc._0x4d2992);}function _0x5037cc(_0x18cf96,_0x3ad9c8,_0x45d08c,_0x332d96){return _0x57b9de(_0x18cf96-_0x1cc6ec._0x2cd203,_0x332d96,_0x18cf96- -0x48c,_0x332d96-0xae);}if(_0x4f6b91)return _0x5037cc(-_0xd88794._0x45555a,-0x17,0xda,-_0xd88794._0x3b6d19)+_0x464a1e[_0x478f6f(_0xd88794._0x12dbdb,0x137,0x153,0x3e)]+_0x478f6f(-0x17e,-0x113,-_0xd88794._0x303884,-0x220)+_0x4ff7c2+_0x478f6f(-0x1bc,-_0xd88794._0x275256,0x6d,0x95);return _0x5037cc(-_0xd88794._0xc5cc6e,-0x1a9,-0x235,-0x17e)+_0x4ff7c2+_0x478f6f(-0x87,-_0xd88794._0x275256,0x70,-_0xd88794._0x27fcad);}function createTodoWriteTool(_0x59b13a=new TodoStore()){const _0x4570e6={_0x1bc465:0x41f,_0x1c1d3f:0x3ac,_0x35a20c:0x3c2,_0x4ca9d3:0x1f3,_0x338335:0x2c8,_0x2b205c:0x42f,_0x23cc70:0x766,_0x2d475d:0x6bc,_0x3cee75:0x7a0,_0x39e151:0x565,_0x21ba3f:0x43b,_0x319d93:0x267,_0xc03161:0x26b,_0x5b6e82:0x34c,_0x324e0a:0x470,_0x4dc681:0x3a4,_0xdd7f02:0x398,_0x4c0a54:0x28d,_0x7d79df:0x2d5,_0x41fb60:0x408,_0x51f8c4:0x539,_0x90de58:0x537,_0x53adda:0x55c,_0x5566d8:0x421,_0x327987:0x315,_0x4d108a:0x4e3,_0x529df2:0x5c0,_0x400cef:0x6bb},_0x2cd3d2={_0x4c59c4:0x3c8,_0x4c4478:0x56d,_0x459b24:0x334,_0x207766:0x385,_0x31e95d:0x18b,_0x1ffaf2:0x7b8,_0x5b7a4e:0x8f9,_0xa17fa1:0x632,_0x39f18c:0x7db,_0xef34c3:0x7b2,_0x1bd48b:0x72f,_0x309c68:0x19f,_0x2e015f:0x3c9,_0x36d89d:0x2d1},_0x1d2a5a={_0x4d6cb5:0x193},_0x1e066d={_0x442332:0x1a},_0x4eef56={_0x52d03a:0x127,_0x53d4a0:0x11};function _0xa23f57(_0x68f189,_0x1e6b80,_0x1ce547,_0x37e3c4){return _0x57b9de(_0x68f189-_0x4eef56._0x52d03a,_0x37e3c4,_0x1e6b80-0x232,_0x37e3c4-_0x4eef56._0x53d4a0);}function _0x5db649(_0x3eca21,_0x4df638,_0x22a210,_0xb63033){return _0x23b1c2(_0x3eca21-0x141,_0x4df638,_0x22a210- -_0x1e066d._0x442332,_0xb63033-0x1c3);}return defineTool({'name':'TodoWrite','description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':_0x5db649(_0x4570e6._0x1bc465,_0x4570e6._0x1c1d3f,_0x4570e6._0x35a20c,0x4c9),'properties':{'todos':{'type':_0x5db649(_0x4570e6._0x4ca9d3,_0x4570e6._0x338335,0x310,_0x4570e6._0x2b205c),'items':{'type':_0xa23f57(_0x4570e6._0x23cc70,_0x4570e6._0x2d475d,_0x4570e6._0x3cee75,0x72d),'properties':{'content':{'type':_0xa23f57(0x671,_0x4570e6._0x39e151,0x639,_0x4570e6._0x21ba3f)},'status':{'type':_0x5db649(0x236,_0x4570e6._0x319d93,_0x4570e6._0xc03161,_0x4570e6._0x5b6e82)},'priority':{'type':'string'},'id':{'type':_0xa23f57(0x513,_0x4570e6._0x39e151,_0x4570e6._0x324e0a,0x681)},'createdAt':{'type':_0xa23f57(0x60f,0x565,0x4ad,0x599)}},'required':[_0x5db649(_0x4570e6._0x4dc681,_0x4570e6._0xdd7f02,_0x4570e6._0x4c0a54,0x365),_0x5db649(_0x4570e6._0x7d79df,0x4af,_0x4570e6._0x41fb60,_0x4570e6._0x51f8c4),_0x5db649(_0x4570e6._0x90de58,_0x4570e6._0x53adda,_0x4570e6._0x5566d8,_0x4570e6._0x327987),'id']}}},'required':[_0xa23f57(_0x4570e6._0x4d108a,_0x4570e6._0x529df2,0x55f,_0x4570e6._0x400cef)]},async *'execute'(_0x4f0d2d,_0x30aaad){const _0x1b2ab4={_0x1a34ab:0x108},_0x5573cd=_0x4f0d2d;validateTodos(_0x5573cd);function _0x399ec5(_0x4de88,_0x7a9854,_0x25ef95,_0x3c0d28){return _0x5db649(_0x4de88-_0x1d2a5a._0x4d6cb5,_0x3c0d28,_0x7a9854-0x34c,_0x3c0d28-0x118);}const _0x1ea25a=_0x30aaad[_0x4f7f11(_0x2cd3d2._0x4c59c4,0x546,_0x2cd3d2._0x4c4478,0x458)]||_0x4f7f11(0x45c,_0x2cd3d2._0x459b24,0x49b,_0x2cd3d2._0x207766),_0x90825b=new Date()['toISOString'](),_0x193626=_0x5573cd[_0x4f7f11(_0x2cd3d2._0x31e95d,0x2dc,0x181,0x2cf)][_0x399ec5(0x745,_0x2cd3d2._0x1ffaf2,0x7f3,_0x2cd3d2._0x5b7a4e)](_0x28ee60=>({'id':_0x28ee60['id'],'content':_0x28ee60[_0x399ec5(0x6e4,0x5d9,0x6d5,0x5a6)],'status':_0x28ee60['status'],'priority':_0x28ee60['priority'],'sessionId':_0x1ea25a,'createdAt':_0x28ee60[_0x4f7f11(0x482,0x4b7,0x271,0x3a4)]||_0x90825b,'updatedAt':_0x90825b}));_0x59b13a['setTodos'](_0x1ea25a,_0x193626);function _0x4f7f11(_0x228f67,_0x124baf,_0x1db3e8,_0x3af841){return _0xa23f57(_0x228f67-0x1c9,_0x3af841- -0x2f1,_0x1db3e8-_0x1b2ab4._0x1a34ab,_0x1db3e8);}const _0x580702=_0x59b13a[_0x399ec5(0x60f,0x669,_0x2cd3d2._0xa17fa1,0x7b3)](_0x1ea25a),_0x33f964=_0x193626[_0x399ec5(0x7c8,_0x2cd3d2._0x39f18c,_0x2cd3d2._0xef34c3,_0x2cd3d2._0x1bd48b)]>0x0&&_0x193626[_0x4f7f11(0x2c5,_0x2cd3d2._0x309c68,_0x2cd3d2._0x2e015f,_0x2cd3d2._0x36d89d)](_0x211c04=>_0x211c04[_0x4f7f11(0x3b7,0x550,0x41c,0x411)]===_0x4f7f11(0x567,0x42f,0x47b,0x461));return createToolOutput(createOutputText(_0x193626,_0x33f964),createStructuredResult(_0x1ea25a,_0x193626,_0x580702,_0x33f964));}});}import{mkdir as _0x48a198,writeFile as _0x232dcc}from'fs/promises';import*as _0x2c1959 from'path';function sanitizeFileName(_0x399c84){const _0x254c42={_0x2bcec8:0x609},_0x340a17={_0x2caa16:0xd5};function _0x49659b(_0xa3f4f2,_0x5d9811,_0x5f06f7,_0x527add){return _0x57b9de(_0xa3f4f2-0x1b0,_0x5d9811,_0x5f06f7-_0x340a17._0x2caa16,_0x527add-0xcf);}return _0x399c84[_0x49659b(0x576,_0x254c42._0x2bcec8,0x5c2,0x69b)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x36c3bd,_0x2bd157){const _0x41f08c={_0x5810eb:0x355,_0x56440f:0x31b,_0x57459e:0x310,_0x274a0:0x2ab,_0x3f822c:0x3af,_0x186311:0x43e,_0x195b27:0x40b,_0x126afb:0x438,_0x3baab6:0x3ce,_0x457acd:0x46f,_0x4fb2bc:0x2ef,_0x1edacd:0x11b,_0x138baa:0x152,_0x47f94e:0x509,_0x3cfb9e:0x462,_0xef11ea:0x645,_0x1bcd8d:0x494,_0x1a2a3:0x500,_0x68158d:0x259,_0x526bd8:0x23f,_0x161589:0x256,_0x41c225:0x307,_0x19b12f:0x2eb,_0x48e017:0x3b1,_0x2462f6:0x492,_0x2f53ab:0x198,_0x3cbe3f:0x388,_0x292e0f:0x374,_0x15344e:0x321,_0x3dff67:0xb,_0x30d9a9:0x383,_0x2702f1:0x327,_0xebf1ab:0x659,_0x2b780e:0x5df,_0x267b2b:0x3ce,_0x5739a1:0x459,_0x398402:0x182,_0x2e5eea:0x2c6},{maxBytes:_0x387120,sessionDir:_0x1725d4}=_0x2bd157;if(!_0x36c3bd['output']||Buffer[_0xb40652(_0x41f08c._0x5810eb,_0x41f08c._0x56440f,0x2d2,0x256)](_0x36c3bd['output'],_0xb40652(_0x41f08c._0x57459e,0x330,0x20c,_0x41f08c._0x274a0))<=_0x387120)return _0x36c3bd;const _0x2ff1d2=Buffer['byteLength'](_0x36c3bd[_0xa89635(0x390,0x479,0x2ea,_0x41f08c._0x3f822c)],_0xa89635(_0x41f08c._0x186311,_0x41f08c._0x195b27,_0x41f08c._0x126afb,0x4e5));if(!_0x1725d4){const _0x4a2e8b=_0x36c3bd['output'][_0xa89635(_0x41f08c._0x3baab6,0x595,_0x41f08c._0x195b27,_0x41f08c._0x457acd)](0x0,_0x387120);return{..._0x36c3bd,'output':_0x4a2e8b+(_0xb40652(_0x41f08c._0x4fb2bc,0x447,0x301,0x384)+_0x387120+_0xb40652(0x5,_0x41f08c._0x1edacd,_0x41f08c._0x138baa,0x147)+_0x2ff1d2+_0xa89635(_0x41f08c._0x47f94e,_0x41f08c._0x3cfb9e,0x3c0,0x3ee)),'meta':{..._0x36c3bd[_0xa89635(_0x41f08c._0xef11ea,_0x41f08c._0x1bcd8d,0x44f,_0x41f08c._0x1a2a3)],'truncated':!![],'originalBytes':_0x2ff1d2,'transforms':[..._0x36c3bd['meta'][_0xb40652(0x243,_0x41f08c._0x68158d,0x197,0x240)],'tool-output-offload']}};}const _0x5e6ee5=_0x36c3bd[_0xb40652(_0x41f08c._0x526bd8,0x276,_0x41f08c._0x161589,0x142)]+'_'+sanitizeFileName(_0x36c3bd[_0xb40652(0x2f9,0x333,0x1c0,0x2ad)])+_0xb40652(0x227,_0x41f08c._0x41c225,0x286,0x2b1),_0xee88f4=_0x2c1959[_0xa89635(_0x41f08c._0x19b12f,0x3bf,0x2c9,0x3ce)](_0x1725d4,_0x5e6ee5);await _0x48a198(_0x1725d4,{'recursive':!![]}),await _0x232dcc(_0xee88f4,_0x36c3bd['output'],'utf8');let _0x3db081=_0x36c3bd[_0xb40652(0x24a,0x124,0x289,0x175)]['slice'](0x0,_0x387120);const _0x484a26=_0x3db081['lastIndexOf']('\x0a');function _0xa89635(_0x552495,_0x296b72,_0x46e475,_0x35a175){return _0x57b9de(_0x552495-0x96,_0x46e475,_0x35a175-0x2f,_0x35a175-0x31);}function _0xb40652(_0x1d12f9,_0x27b25e,_0x122bf7,_0xbb0514){return _0x57b9de(_0x1d12f9-0x1e6,_0x122bf7,_0xbb0514- -0x20b,_0xbb0514-0xb3);}_0x484a26>_0x387120*0.5&&(_0x3db081=_0x3db081[_0xa89635(0x4e2,_0x41f08c._0x48e017,_0x41f08c._0x2462f6,0x46f)](0x0,_0x484a26));const _0x3b90d6=['',_0xb40652(0x28b,0x238,_0x41f08c._0x2f53ab,0x278),_0xa89635(_0x41f08c._0x3cbe3f,_0x41f08c._0x292e0f,0x38b,_0x41f08c._0x15344e)+_0x387120+_0xb40652(-0x7,0x6c,-_0x41f08c._0x3dff67,0x13d)+_0x2ff1d2+_0xa89635(0x1d4,0x397,_0x41f08c._0x30d9a9,_0x41f08c._0x2702f1),_0xb40652(0x3a0,0x35d,0x31e,_0x41f08c._0x15344e)+_0xee88f4,'Use\x20FileRead\x20with\x20lineStart/lineEnd\x20to\x20inspect\x20specific\x20sections\x20of\x20the\x20full\x20output.',_0xa89635(0x51d,_0x41f08c._0xebf1ab,_0x41f08c._0x2b780e,0x552)][_0xa89635(0x31f,0x488,0x29a,_0x41f08c._0x267b2b)]('\x0a');return{..._0x36c3bd,'output':_0x3db081+_0x3b90d6,'meta':{..._0x36c3bd[_0xa89635(_0x41f08c._0x5739a1,0x3b2,0x4e5,_0x41f08c._0x1a2a3)],'truncated':!![],'originalBytes':_0x2ff1d2,'transforms':[..._0x36c3bd[_0xb40652(0x3f5,_0x41f08c._0x398402,0x344,_0x41f08c._0x2e5eea)][_0xa89635(0x40d,0x350,0x491,0x47a)],'tool-output-offload']}};}function createUpdateTopicTool(){const _0x5e96af={_0x5aa5ae:0x4a4,_0x39834e:0x3a2,_0x49654c:0x3bc,_0x5e92af:0x53a},_0x44db01={_0x4769f3:0x6d,_0x35a666:0xa3,_0x25dfa4:0x43,_0x4d338a:0xab,_0xf4e9a0:0xa0,_0x5d5fc1:0x131,_0x3f2957:0x8c,_0x5221a1:0x1dd,_0x2f1607:0x128,_0x3b692b:0x1bf,_0x11df10:0xe0,_0x3d7321:0x57,_0x3da634:0x1d7,_0x3c52bb:0x13,_0x2d15e9:0x72},_0x398246={_0x31c02a:0x16b,_0x336013:0x5f8},_0x161538={_0x2514f5:0x59},_0x55f92c={_0x2e8ce0:0x106,_0x10cf81:0x1db};function _0x55dc36(_0x2dcf82,_0x51ded2,_0x2fa4a1,_0x12e72d){return _0x57b9de(_0x2dcf82-_0x55f92c._0x2e8ce0,_0x12e72d,_0x2fa4a1- -_0x55f92c._0x10cf81,_0x12e72d-0x2e);}function _0xa3ec82(_0x396554,_0x34fb29,_0x2cd8ab,_0x2f56a2){return _0x23b1c2(_0x396554-0x183,_0x2cd8ab,_0x34fb29-0x265,_0x2f56a2-_0x161538._0x2514f5);}return defineTool({'name':_0x55dc36(0x4d3,_0x5e96af._0x5aa5ae,_0x5e96af._0x39834e,_0x5e96af._0x49654c),'description':'Update\x20the\x20session\x20topic\x20to\x20a\x20concise\x203-6\x20word\x20noun\x20phrase\x20that\x20captures\x20the\x20current\x20subject.\x0a\x0aCall\x20this\x20tool\x20when\x20the\x20session\x27s\x20subject\x20becomes\x20clear\x20or\x20shifts\x20to\x20something\x20clearly\x20different\x20—\x20not\x20for\x20minor\x20tangents\x20or\x20clarifying\x20sub-questions.\x20If\x20nothing\x20has\x20meaningfully\x20changed,\x20do\x20not\x20call\x20it.\x0a\x0aGood\x20topic\x20(noun\x20phrase,\x203-6\x20words):\x0a\x20\x20\x22Debug\x20TS\x20generics\x20error\x22\x0a\x20\x20\x22Refactor\x20auth\x20middleware\x22\x0a\x20\x20\x22Add\x20Stripe\x20webhook\x20handler\x22\x0a\x0aBad\x20topic\x20(full\x20sentence\x20or\x20vague):\x0a\x20\x20\x22The\x20user\x20wants\x20to\x20debug\x20a\x20TypeScript\x20generics\x20error\x20in\x20their\x20project\x22\x0a\x20\x20\x22coding\x22','inputSchema':{'type':_0xa3ec82(0x556,0x641,_0x5e96af._0x5e92af,0x751),'properties':{'topic':{'type':'string'}},'required':['topic']},async *'execute'(_0x4f1461,_0x3a9f1d){const _0x40a726={_0x35f17d:0x43f,_0x5e7e9a:0x35},{topic:_0x93f87a}=_0x4f1461;function _0x3e4548(_0x11f214,_0x2632ea,_0x5655a4,_0x4d069f){return _0xa3ec82(_0x11f214-_0x398246._0x31c02a,_0x2632ea- -_0x398246._0x336013,_0x5655a4,_0x4d069f-0x12);}if(typeof _0x93f87a!==_0xf01f15(_0x44db01._0x4769f3,-_0x44db01._0x35a666,_0x44db01._0x25dfa4,_0x44db01._0x4d338a)||_0x93f87a[_0xf01f15(_0x44db01._0xf4e9a0,_0x44db01._0x5d5fc1,0x160,0xd9)]()['length']===0x0)throw new ToolExecutionError(_0xf01f15(_0x44db01._0x3f2957,0x2ea,0x2b4,_0x44db01._0x5221a1),{'error':_0x3e4548(_0x44db01._0x2f1607,-0x18,-0xb4,-0xbc)});const _0x1ac517=_0x93f87a[_0x3e4548(-_0x44db01._0x3b692b,-_0x44db01._0x11df10,-0x12d,_0x44db01._0x3d7321)]();_0x3a9f1d[_0x3e4548(-0x12b,-0xa0,-0x15c,-_0x44db01._0x3da634)]?.(_0x1ac517);function _0xf01f15(_0x5b6a9b,_0x46fedc,_0x5ef94b,_0x6e26da){return _0xa3ec82(_0x5b6a9b-0x1a6,_0x6e26da- -_0x40a726._0x35f17d,_0x5b6a9b,_0x6e26da-_0x40a726._0x5e7e9a);}return yield createToolOutput(_0xf01f15(_0x44db01._0x3c52bb,0xe8,0x1c6,_0x44db01._0x2d15e9)+_0x1ac517+'\x22',{'topic':_0x1ac517}),void 0x0;}});}import{readFile as _0x23ce0a,stat as _0x47bea6}from'fs/promises';import*as _0x2b47fc from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set(['auto',_0x23b1c2(0x309,0x36e,0x295,0x2ae),_0x23b1c2(0x53c,0x523,0x4a0,0x5b0),_0x57b9de(0x484,0x4a2,0x430,0x4f7)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x2c39a8,_0x2c7e5f){const _0x354f25={_0x38800f:0x30c,_0x171741:0x3fc,_0x358851:0x360,_0x24ad3f:0x592,_0x194c12:0x4ea,_0xbe22dd:0x371,_0x536dab:0x549,_0x4cf27c:0x5d8,_0x4b18ea:0x4ff,_0x505c9f:0x1cf,_0x252dec:0x1f4,_0x4ad770:0x9c,_0x2c08ed:0x1bd,_0x190fc0:0x28e,_0x17d553:0x38f,_0x3373f7:0x2d9,_0x316cab:0x256,_0x32b64a:0x33d,_0x405cf1:0x498,_0x26f231:0x48f,_0x13a6eb:0x23e,_0x387fe6:0x378,_0x239f77:0x2c8,_0x37b74a:0x38d,_0x2ebac9:0x2ae,_0x1332a8:0x265,_0x356e60:0x162,_0x4233d0:0x1b8,_0x2214e4:0x47f,_0x5254a3:0x408,_0x113d36:0x4d8,_0x249650:0x336,_0x1ebe6d:0x3ff,_0x1ae6e6:0x2b2,_0x5d8a30:0x3b8,_0x38cd67:0x1a3,_0x4aea48:0x44e,_0x516d26:0x4f0,_0x2e41b0:0x308,_0x22049f:0x356,_0x564d4e:0x272,_0x51aeb9:0x3a5,_0xe45f9:0x424,_0x149b21:0x334,_0xd9beea:0x382,_0x13a8ce:0x4c8},_0x3ffe07={_0x2dd10e:0xb5};function _0x46f072(_0x52408a,_0x4a0a9a,_0x5c1d4b,_0x34f178){return _0x57b9de(_0x52408a-0x98,_0x4a0a9a,_0x34f178-0xf,_0x34f178-0x183);}if(_0x2c39a8[_0x17044a(_0x354f25._0x38800f,0x22c,0x340,_0x354f25._0x171741)](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x46f072(_0x354f25._0x358851,0x270,0x1f7,0x31f);function _0x17044a(_0xa8c121,_0x3669b9,_0x26d8d6,_0x54a6af){return _0x23b1c2(_0xa8c121-0x1b1,_0x26d8d6,_0xa8c121- -_0x3ffe07._0x2dd10e,_0x54a6af-0x116);}if(_0x2c39a8[0x0]===0xff&&_0x2c39a8[0x1]===0xd8&&_0x2c39a8[0x2]===0xff)return _0x46f072(_0x354f25._0x24ad3f,_0x354f25._0x194c12,_0x354f25._0xbe22dd,0x475);const _0x41497e=_0x2c39a8['subarray'](0x0,0x6)[_0x46f072(_0x354f25._0x536dab,0x60b,_0x354f25._0x4cf27c,_0x354f25._0x4b18ea)](_0x17044a(_0x354f25._0x505c9f,_0x354f25._0x252dec,_0x354f25._0x4ad770,_0x354f25._0x2c08ed));if(_0x41497e===_0x17044a(_0x354f25._0x190fc0,_0x354f25._0x17d553,0x14e,_0x354f25._0x3373f7)||_0x41497e===_0x46f072(_0x354f25._0x316cab,0x246,_0x354f25._0x32b64a,0x32e))return _0x46f072(_0x354f25._0x405cf1,0x451,0x491,_0x354f25._0x26f231);if(_0x2c39a8[_0x17044a(0x30c,_0x354f25._0x13a6eb,_0x354f25._0x387fe6,_0x354f25._0x239f77)](0x0,0x4)['toString']('ascii')===_0x17044a(0x226,0xf1,0x343,0x20d)&&_0x2c39a8[_0x46f072(0x41b,0x476,0x515,0x47e)](0x8,0xc)[_0x17044a(_0x354f25._0x37b74a,0x393,0x3ba,_0x354f25._0x2ebac9)](_0x17044a(_0x354f25._0x505c9f,_0x354f25._0x1332a8,_0x354f25._0x356e60,_0x354f25._0x4233d0))===_0x46f072(0x450,0x4de,0x3e1,_0x354f25._0x2214e4))return _0x17044a(_0x354f25._0x5254a3,0x2f4,_0x354f25._0x113d36,_0x354f25._0x249650);const _0x25e11e=_0x2b47fc['extname'](_0x2c7e5f)[_0x17044a(_0x354f25._0x1ebe6d,0x338,_0x354f25._0x1ae6e6,0x526)]();if(_0x25e11e==='.png')return'image/png';if(_0x25e11e===_0x17044a(0x287,_0x354f25._0x5d8a30,0x241,_0x354f25._0x38cd67)||_0x25e11e==='.jpeg')return _0x46f072(_0x354f25._0x4aea48,_0x354f25._0x516d26,0x535,0x475);if(_0x25e11e===_0x17044a(0x40e,0x440,0x536,_0x354f25._0x2e41b0))return _0x17044a(0x31d,_0x354f25._0x22049f,_0x354f25._0x564d4e,0x464);if(_0x25e11e===_0x46f072(_0x354f25._0x51aeb9,0x4b7,0x350,_0x354f25._0xe45f9))return _0x17044a(0x408,_0x354f25._0x149b21,_0x354f25._0xd9beea,_0x354f25._0x13a8ce);return void 0x0;}function normalizeDetail(_0x5d54bc){const _0x39ac0c={_0x57cf4b:0x1b5,_0x7bd54f:0x96,_0x2f5171:0x314,_0x37567b:0x42d,_0x488783:0x451,_0x4c5261:0x1f9,_0x295549:0x4d,_0xe64959:0x27e},_0x53a93e={_0x10d41b:0x5c},_0xd0783f={_0x52307a:0x1bf,_0x3d4e92:0x21d,_0x384796:0xc5};if(_0x5d54bc===void 0x0)return void 0x0;const _0x3be967=_0x5d54bc[_0x17276b(0x1f,_0x39ac0c._0x57cf4b,0x103,_0x39ac0c._0x7bd54f)]()[_0x4ff22b(0x44b,_0x39ac0c._0x2f5171,_0x39ac0c._0x37567b,_0x39ac0c._0x488783)]();function _0x17276b(_0x5267fe,_0x2aec2c,_0x2cfe5f,_0xc7de32){return _0x23b1c2(_0x5267fe-_0xd0783f._0x52307a,_0x5267fe,_0xc7de32- -_0xd0783f._0x3d4e92,_0xc7de32-_0xd0783f._0x384796);}function _0x4ff22b(_0x51cdbf,_0x20601b,_0x52dab8,_0x256a00){return _0x23b1c2(_0x51cdbf-0x41,_0x20601b,_0x52dab8- -0x87,_0x256a00-_0x53a93e._0x10d41b);}if(!SUPPORTED_DETAILS[_0x17276b(0x12d,_0x39ac0c._0x4c5261,-_0x39ac0c._0x295549,0xe4)](_0x3be967))throw new ToolExecutionError(_0x4ff22b(0x2a5,0x361,0x329,_0x39ac0c._0xe64959)+_0x5d54bc,{'detail':_0x5d54bc});return _0x3be967;}function createViewFileTool(_0x5689d9={}){const _0x590c53={_0x120bc9:0x3f0,_0x5b75ad:0x3f1,_0x58d605:0x5e8,_0x4ef0a6:0x5eb,_0x4b4fcf:0x4e8,_0x57eb3b:0x4e1,_0xb49139:0x27c,_0xa72a40:0x456,_0x30bc6a:0x55b,_0x1d7b64:0x343,_0x441f1e:0x444,_0x364555:0x403,_0x1459a7:0x2db,_0x297087:0x217,_0x367717:0x341,_0x4a92a7:0x340,_0x1f1635:0x33d,_0x315e49:0x425},_0x1109c4={_0x1609ec:0x478,_0x1b8efa:0x362,_0x3cb660:0x43c,_0x36e333:0x274,_0x1c6d61:0x30b,_0x126609:0x3cf,_0x1a3744:0x549,_0x40ab50:0x380,_0x2ff7bd:0x41a,_0x109bc6:0x4ed,_0x25e502:0x1a5,_0x1dcf32:0x10,_0x5dbb4e:0x97,_0x5d1929:0x5c5,_0x4f2fbf:0x3a4,_0x1a348d:0x4f6,_0x405486:0x487,_0x4fcd0c:0x417,_0x3b1446:0x24b,_0x5eae10:0x24c,_0xc6d201:0x328,_0x25fcbd:0x118,_0x4b7340:0x273,_0xda9f2d:0x183,_0x10eed0:0xde,_0x5a7ff2:0x453,_0x2e9ced:0x40f,_0x507863:0x40e,_0x5bb34c:0x3d5,_0xfee5e8:0x491,_0x2a36a6:0x558,_0x58b687:0x292,_0x39cb95:0x2e2,_0x5c3006:0x3c6,_0x370582:0x41a,_0x295b22:0x487,_0x20d6ed:0x362,_0x549b57:0x387,_0x515af5:0x39f,_0x1dde94:0x2f9,_0xfdcb34:0x1d3,_0xb79d48:0x2a5,_0x57f3b1:0x305,_0x4190f5:0x321,_0x4bad3b:0x42a,_0x5a9e65:0x1ea,_0x2f0e02:0x362,_0x58ccb5:0x2d5,_0x3340ee:0x39c,_0x2677bf:0x4a9,_0x2dc3b6:0x450,_0xdee3dc:0x313,_0x856837:0x1f1,_0x3ef9c6:0x25d},_0x33a36b={_0xfea12b:0x305},_0x45227d={_0x1096a0:0x12e};function _0x2856e5(_0x30489,_0x26d8f1,_0xbbd2b0,_0x332e91){return _0x57b9de(_0x30489-0xf8,_0x30489,_0x332e91-0xe,_0x332e91-_0x45227d._0x1096a0);}const _0x59f93e=_0x2b47fc['resolve'](_0x5689d9[_0x2856e5(0x3e6,0x42f,_0x590c53._0x120bc9,_0x590c53._0x5b75ad)]??process['cwd']());function _0x533466(_0x1be127,_0x36c32b,_0x299e31,_0x292e17){return _0x57b9de(_0x1be127-0x162,_0x36c32b,_0x1be127- -_0x33a36b._0xfea12b,_0x292e17-0xcd);}const _0x252bff=(_0x5689d9[_0x2856e5(_0x590c53._0x58d605,_0x590c53._0x4ef0a6,_0x590c53._0x4b4fcf,_0x590c53._0x57eb3b)]??[])['map'](_0x16a00c=>_0x2b47fc[_0x533466(0xe6,0x2c,0x0,0x168)](_0x16a00c)),_0x3bc25d=_0x5689d9[_0x533466(_0x590c53._0xb49139,0x29e,0x1d4,0x180)]??DEFAULT_MAX_BYTES,_0x4366ac=_0x5689d9['name']??_0x2856e5(_0x590c53._0xa72a40,0x535,0x50b,_0x590c53._0x30bc6a);return defineTool({'name':_0x4366ac,'description':_0x2856e5(_0x590c53._0x1d7b64,_0x590c53._0x441f1e,0x3d7,0x381),'inputSchema':{'type':_0x2856e5(0x506,0x49d,_0x590c53._0x364555,0x498),'properties':{'path':{'type':_0x2856e5(0x44c,_0x590c53._0x1459a7,_0x590c53._0x297087,_0x590c53._0x367717)},'detail':{'type':_0x2856e5(_0x590c53._0x4a92a7,_0x590c53._0x1f1635,_0x590c53._0x315e49,_0x590c53._0x367717)}},'required':['path']},async *'execute'(_0x4a6c09){const _0x5c951c={_0xbc3093:0x13c},_0x2ba856=resolveAllowedPath(_0x59f93e,_0x252bff,_0x4a6c09[_0x1abd52(0x362,0x3d5,_0x1109c4._0x1609ec,0x2ae)]);await assertWorkspaceFile(_0x2ba856);const _0x27de60=await _0x47bea6(_0x2ba856);if(_0x27de60[_0xea2e66(0x2fb,0x2f1,0x41a,0x31e)]>_0x3bc25d)throw new ToolExecutionError('Image\x20file\x20is\x20too\x20large:\x20'+_0x4a6c09[_0x1abd52(_0x1109c4._0x1b8efa,_0x1109c4._0x3cb660,_0x1109c4._0x36e333,_0x1109c4._0x1c6d61)],{'path':_0x4a6c09[_0x1abd52(0x362,_0x1109c4._0x126609,0x2a4,0x334)],'maxBytes':_0x3bc25d,'size':_0x27de60[_0xea2e66(_0x1109c4._0x1a3744,_0x1109c4._0x40ab50,_0x1109c4._0x2ff7bd,_0x1109c4._0x109bc6)]});const _0x1f4e1b=await _0x23ce0a(_0x2ba856),_0x4a84ba=detectImageMediaType(_0x1f4e1b,_0x2ba856);function _0xea2e66(_0x2a0cf9,_0x2597dd,_0x39187a,_0xa0f2){return _0x2856e5(_0x2597dd,_0x2597dd-0x6b,_0x39187a-0x177,_0x39187a- -0xa8);}if(!_0x4a84ba)throw new ToolExecutionError(_0x1abd52(0x12a,_0x1109c4._0x25e502,_0x1109c4._0x1dcf32,_0x1109c4._0x5dbb4e)+_0x4a6c09[_0xea2e66(0x475,0x4cd,0x491,_0x1109c4._0x5d1929)],{'path':_0x4a6c09[_0xea2e66(0x4d2,0x37d,0x491,0x447)],'supported':[_0x1abd52(0x3a8,_0x1109c4._0x4f2fbf,_0x1109c4._0x1a348d,_0x1109c4._0x405486),_0xea2e66(0x41e,0x35d,0x46c,0x4cc),'.jpg',_0xea2e66(_0x1109c4._0x4fcd0c,_0x1109c4._0x3b1446,0x2ee,0x2d2),_0x1abd52(_0x1109c4._0x5eae10,_0x1109c4._0xc6d201,_0x1109c4._0x25fcbd,_0x1109c4._0x4b7340)]});const _0x4d2b37=normalizeDetail(_0x4a6c09[_0x1abd52(0x208,0x12e,_0x1109c4._0xda9f2d,_0x1109c4._0x10eed0)]);function _0x1abd52(_0x26bd62,_0x33655f,_0x183356,_0x4bff14){return _0x533466(_0x26bd62-_0x5c951c._0xbc3093,_0x33655f,_0x183356-0x170,_0x4bff14-0x58);}const _0x3b8144=[_0xea2e66(0x417,_0x1109c4._0x5a7ff2,_0x1109c4._0x2e9ced,_0x1109c4._0x507863)+_0x4a6c09[_0xea2e66(_0x1109c4._0x5bb34c,0x4df,_0x1109c4._0xfee5e8,_0x1109c4._0x2a36a6)],'MIME:\x20'+_0x4a84ba,_0xea2e66(0x26a,0x318,_0x1109c4._0x58b687,_0x1109c4._0x39cb95)+_0x27de60[_0xea2e66(_0x1109c4._0x5c3006,0x3ce,_0x1109c4._0x370582,0x519)]+_0xea2e66(_0x1109c4._0x295b22,0x2d8,0x386,0x25a)][_0xea2e66(0x282,_0x1109c4._0x20d6ed,_0x1109c4._0x549b57,0x3b4)](_0x4d2b37?[_0xea2e66(0x4ba,0x441,_0x1109c4._0x515af5,_0x1109c4._0x1dde94)+_0x4d2b37]:[])[_0xea2e66(_0x1109c4._0xfdcb34,_0x1109c4._0xb79d48,_0x1109c4._0x57f3b1,_0x1109c4._0x4190f5)]('\x0a'),_0x146fed=[{'type':'image','source':{'type':_0x1abd52(0x2e1,_0x1109c4._0x4bad3b,0x2b3,_0x1109c4._0x5a9e65),'media_type':_0x4a84ba,'data':_0x1f4e1b[_0x1abd52(0x327,0x363,0x2b0,_0x1109c4._0x2f0e02)]('base64')}},{'type':'text','text':_0x3b8144}];return yield createToolOutput(_0x3b8144,{'path':_0x4a6c09[_0x1abd52(0x362,_0x1109c4._0x58ccb5,0x43b,0x3b7)],'resolvedPath':_0x2ba856,'created':_0x27de60[_0xea2e66(_0x1109c4._0x1609ec,0x406,_0x1109c4._0x3340ee,0x3fc)][_0xea2e66(0x419,_0x1109c4._0x2677bf,_0x1109c4._0x2dc3b6,_0x1109c4._0xdee3dc)](),'modified':_0x27de60['mtime']['toISOString'](),'size':_0x27de60[_0x1abd52(0x2eb,_0x1109c4._0x856837,0x23b,_0x1109c4._0x3ef9c6)],'mimeType':_0x4a84ba,'encoding':'base64',..._0x4d2b37?{'detail':_0x4d2b37}:{}},_0x146fed),void 0x0;}});}import _0x19509e from'turndown';var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x1f2483){const _0x4f1452={_0x5f434a:0xfa,_0x2f687b:0x15,_0x320824:0x83,_0x5185dc:0x16e,_0x3a8fd0:0x359,_0x4ac7fb:0x46,_0x3cb737:0xc7,_0x37bc39:0x2b0,_0x563bd5:0x127,_0x319566:0x336,_0x27d3b6:0x2fd,_0x25c228:0x355,_0x221005:0x30c,_0x160efe:0x1ca},_0x124ea7={_0x4761a5:0x181},_0x56426b={_0x1fb453:0x341};function _0x2454ad(_0xc744ee,_0x43f5c9,_0x1a26f0,_0xf38861){return _0x57b9de(_0xc744ee-0xc5,_0x1a26f0,_0xf38861- -_0x56426b._0x1fb453,_0xf38861-0x1b3);}let _0x3b601e;try{_0x3b601e=new URL(_0x1f2483);}catch{throw new ToolExecutionError('Invalid\x20URL\x20parameter',{'url':_0x1f2483});}if(_0x3b601e[_0x2454ad(_0x4f1452._0x5f434a,_0x4f1452._0x2f687b,0x2b,_0x4f1452._0x320824)]!=='http:'&&_0x3b601e['protocol']!=='https:')throw new ToolExecutionError(_0x59cb5b(0x121,_0x4f1452._0x5185dc,0x4d,0x1b9),{'url':_0x1f2483});function _0x59cb5b(_0x5b4503,_0x58b3c2,_0x322fdd,_0x2caea5){return _0x23b1c2(_0x5b4503-_0x124ea7._0x4761a5,_0x5b4503,_0x58b3c2- -0x102,_0x2caea5-0x99);}if(_0x3b601e[_0x59cb5b(0x29c,_0x4f1452._0x3a8fd0,0x383,0x257)]||_0x3b601e[_0x2454ad(0x143,_0x4f1452._0x4ac7fb,0x12a,_0x4f1452._0x3cb737)])throw new ToolExecutionError('URLs\x20must\x20not\x20include\x20usernames\x20or\x20passwords',{'url':_0x3b601e[_0x59cb5b(_0x4f1452._0x37bc39,0x214,_0x4f1452._0x563bd5,_0x4f1452._0x319566)]+'//'+_0x3b601e[_0x59cb5b(_0x4f1452._0x27d3b6,_0x4f1452._0x25c228,0x339,0x45a)]+_0x3b601e[_0x2454ad(_0x4f1452._0x221005,0x237,0x151,_0x4f1452._0x160efe)]});return _0x3b601e;}function createTimeoutSignal(_0x483608,_0x189eef){const _0x29d069={_0x398b59:0x387,_0x51b4fc:0x123,_0x504f78:0x22d,_0x23cd60:0x1fa,_0x38fc27:0x375,_0x1320de:0x273,_0x34fb7d:0x271},_0x41c227={_0x4ff212:0x3ea,_0x6ca69c:0x342,_0x431038:0x27,_0x381b7f:0x138,_0x25e272:0x10,_0xf8137a:0x133},_0x1a787c={_0x374b09:0x193},_0x191f75={_0x56f3e0:0x1dd,_0x4a4483:0x16a,_0x52f705:0x64},_0x9b0b76={_0x4a83e3:0x26,_0x55e51d:0x90},_0x4f716c=new AbortController();function _0x408d7b(_0x57f236,_0x38a153,_0x4636ad,_0x5a56f2){return _0x23b1c2(_0x57f236-_0x9b0b76._0x4a83e3,_0x5a56f2,_0x38a153- -_0x9b0b76._0x55e51d,_0x5a56f2-0x24);}function _0x3de33b(_0x3029f5,_0x2e14c8,_0x57e62a,_0x2aa440){return _0x57b9de(_0x3029f5-_0x191f75._0x56f3e0,_0x2e14c8,_0x2aa440- -_0x191f75._0x4a4483,_0x2aa440-_0x191f75._0x52f705);}const _0x1484c2=setTimeout(()=>_0x4f716c[_0x3de33b(0x397,0x359,0x145,0x271)](new Error(_0x3de33b(0x253,0x1bc,0x20b,0x2f1))),_0x189eef),_0x346a8f=()=>_0x4f716c['abort'](_0x483608['reason']);return _0x483608[_0x3de33b(0x3fd,_0x29d069._0x398b59,0x220,0x31b)]?_0x4f716c[_0x408d7b(0x1dc,0x29d,0x23d,0x3d9)](_0x483608[_0x3de33b(_0x29d069._0x51b4fc,_0x29d069._0x504f78,0xcc,_0x29d069._0x23cd60)]):_0x483608[_0x408d7b(0x371,0x335,_0x29d069._0x38fc27,0x46b)](_0x3de33b(0x387,0x30f,_0x29d069._0x1320de,_0x29d069._0x34fb7d),_0x346a8f,{'once':!![]}),{'signal':_0x4f716c['signal'],'cleanup':()=>{function _0x45b7fe(_0x207a26,_0x28d5c6,_0x2a4217,_0x17bcdd){return _0x408d7b(_0x207a26-0x142,_0x28d5c6-0xfc,_0x2a4217-_0x1a787c._0x374b09,_0x207a26);}clearTimeout(_0x1484c2);function _0x153ee7(_0xaa218d,_0x46a15e,_0x231aab,_0x3afe16){return _0x3de33b(_0xaa218d-0x186,_0xaa218d,_0x231aab-0x2e,_0x3afe16- -0x13e);}_0x483608[_0x45b7fe(_0x41c227._0x4ff212,_0x41c227._0x6ca69c,0x267,0x2d8)](_0x153ee7(_0x41c227._0x431038,_0x41c227._0x381b7f,-_0x41c227._0x25e272,_0x41c227._0xf8137a),_0x346a8f);}};}function createWebFetchTool(_0x249c9b={}){const _0x5e78df={_0x4f6f9e:0x60e,_0x22e5cb:0x5e2,_0x362846:0x720,_0x2dd342:0x5e6,_0x52fbcc:0x600,_0x1622a5:0x769,_0x523bea:0x6af,_0x33db7b:0x497,_0x590fcf:0x525,_0x42bc18:0x60d,_0x1b76ec:0x581,_0x4234e2:0x716,_0x512512:0x66c,_0x16cab3:0x7c4,_0xc6585b:0x6b6,_0x4dda63:0x6b5,_0x1faab7:0x459,_0x11cdc4:0x631,_0x4d9c87:0x58c,_0x4346d6:0x3fe,_0x1375e5:0x785,_0x375a6d:0x5fe,_0x32ff88:0x595,_0x2bf98f:0x5af,_0x1bc7fc:0x517,_0x106590:0x458,_0x386cf6:0x67d,_0x494254:0x6eb},_0x1ab502={_0x1a102e:0x4cd,_0xd09acd:0x287,_0x2a4ede:0x458,_0xc8d0a4:0x2ec,_0x2bbad0:0x1f8,_0x3b4b68:0x23e,_0x252ff9:0x3e2,_0x37268a:0x352,_0xb4c918:0x13c,_0x4b28e7:0x2a9,_0x1256e9:0x2db,_0x530635:0x397,_0x4e5597:0x3c8,_0x1a39cd:0x2b1,_0x1f1154:0x353,_0x4d50c0:0x1e3,_0x7fca4b:0x1e6,_0x7e8619:0x168,_0x263c7d:0x20b,_0x2a334f:0x298,_0x840c96:0x2da,_0x5dff1c:0x2e2,_0x3ba2d3:0xf5,_0x4f116f:0x249,_0x542f55:0x2c0,_0x3b6df0:0x24f,_0x37c337:0x37f,_0x1c5ddc:0x2d8,_0x10f7bb:0x2d0,_0x27bbfd:0x190,_0x2a355b:0x370,_0x58bee9:0x353,_0x305f1a:0x173,_0x533268:0x132,_0x265804:0x3b5,_0xfeaddd:0x3c4,_0x1f06a6:0x357,_0x4be075:0x27d,_0x117962:0x277,_0x10fd59:0x2e4,_0x1fde3f:0x31b,_0x49bfe5:0x226,_0x385ab0:0x1a2,_0x57466c:0x129,_0x4accc9:0x1cb,_0x318961:0xde,_0x20a7f0:0x422,_0xfda1b0:0x354,_0x41076f:0x42d},_0x5e8773={_0x22d652:0x1d3,_0x5ac1e1:0x36};function _0x1b8fd6(_0x4b69d3,_0x1f7429,_0x5b05b5,_0x2844f7){return _0x23b1c2(_0x4b69d3-0xe4,_0x4b69d3,_0x2844f7-_0x5e8773._0x22d652,_0x2844f7-_0x5e8773._0x5ac1e1);}function _0x577d95(_0x3153cf,_0x33955e,_0x3b0281,_0x2c5387){return _0x23b1c2(_0x3153cf-0x10b,_0x33955e,_0x2c5387-0x245,_0x2c5387-0x1ee);}const _0x2d1753=_0x249c9b['name']??_0x577d95(0x73a,0x65a,_0x5e78df._0x4f6f9e,0x68d),_0x18788f=_0x249c9b['timeoutMs']??DEFAULT_TIMEOUT_MS2,_0x572ab0=new _0x19509e({'headingStyle':_0x1b8fd6(_0x5e78df._0x22e5cb,0x5e8,_0x5e78df._0x362846,_0x5e78df._0x2dd342),'codeBlockStyle':_0x1b8fd6(_0x5e78df._0x52fbcc,_0x5e78df._0x1622a5,0x6f0,_0x5e78df._0x523bea),'bulletListMarker':'-'});return _0x572ab0[_0x1b8fd6(0x566,0x5b1,_0x5e78df._0x33db7b,0x4ec)]([_0x577d95(0x714,0x621,0x626,0x6f1),_0x1b8fd6(0x566,_0x5e78df._0x590fcf,_0x5e78df._0x42bc18,_0x5e78df._0x1b76ec),_0x1b8fd6(0x59c,_0x5e78df._0x4234e2,0x66b,_0x5e78df._0x512512),_0x577d95(_0x5e78df._0x16cab3,_0x5e78df._0xc6585b,0x725,_0x5e78df._0x4dda63),_0x1b8fd6(_0x5e78df._0x1faab7,_0x5e78df._0x11cdc4,0x5eb,_0x5e78df._0x4d9c87),_0x1b8fd6(0x597,_0x5e78df._0x4346d6,0x43c,0x48a),'header','aside']),defineTool({'name':_0x2d1753,'description':_0x577d95(0x615,_0x5e78df._0x1375e5,0x66d,0x6f5),'inputSchema':{'type':_0x1b8fd6(0x468,_0x5e78df._0x375a6d,_0x5e78df._0x32ff88,_0x5e78df._0x2bf98f),'properties':{'description':{'type':'string'},'url':{'type':_0x1b8fd6(_0x5e78df._0x1bc7fc,0x436,0x499,_0x5e78df._0x106590)}},'required':[_0x577d95(_0x5e78df._0x386cf6,0x7d2,_0x5e78df._0x494254,0x712)]},async *'execute'(_0x4a7052,_0x25e86b){const _0x3a2758={_0xc9153c:0x7,_0x4a41f6:0x1a6,_0x3ee4b4:0x35d},_0x3bf023=assertFetchableUrl(_0x4a7052['url'])[_0x45cde3(0x3bb,_0x1ab502._0x1a102e,_0x1ab502._0xd09acd,_0x1ab502._0x2a4ede)]();function _0x7bb6d7(_0x150dc9,_0x5bc847,_0x237311,_0xb81d7f){return _0x1b8fd6(_0x5bc847,_0x5bc847-_0x3a2758._0xc9153c,_0x237311-_0x3a2758._0x4a41f6,_0x150dc9- -_0x3a2758._0x3ee4b4);}if(_0x25e86b[_0x45cde3(0x303,_0x1ab502._0xc8d0a4,_0x1ab502._0x2bbad0,_0x1ab502._0x3b4b68)][_0x45cde3(0x350,_0x1ab502._0x252ff9,_0x1ab502._0x37268a,0x3ba)])throw new ToolExecutionError(_0x7bb6d7(0x168,0x26d,_0x1ab502._0xb4c918,0x62),{'url':_0x3bf023});const _0x49bf03=createTimeoutSignal(_0x25e86b[_0x45cde3(0x303,_0x1ab502._0x4b28e7,0x2de,0x25e)],_0x18788f);let _0x5075b4='',_0x52cff2=0x0,_0x3736d0;try{const _0x1c9e84=await fetch(_0x3bf023,{'headers':{'User-Agent':USER_AGENT},'signal':_0x49bf03[_0x45cde3(0x303,_0x1ab502._0x1256e9,0x31c,_0x1ab502._0x530635)]});if(!_0x1c9e84['ok'])throw new ToolExecutionError(_0x45cde3(_0x1ab502._0x4e5597,0x4df,0x38a,_0x1ab502._0x1a39cd)+_0x1c9e84[_0x7bb6d7(0x298,_0x1ab502._0x1f1154,0x2aa,_0x1ab502._0x4d50c0)]+'\x20'+_0x1c9e84[_0x7bb6d7(_0x1ab502._0x4b28e7,_0x1ab502._0x7fca4b,_0x1ab502._0x7e8619,_0x1ab502._0x263c7d)],{'url':_0x3bf023,'statusCode':_0x1c9e84[_0x7bb6d7(_0x1ab502._0x2a334f,0x257,_0x1ab502._0x840c96,_0x1ab502._0x5dff1c)]});_0x5075b4=_0x1c9e84[_0x7bb6d7(0x1bd,0x159,_0x1ab502._0x3ba2d3,0xd4)][_0x45cde3(0x265,0x229,_0x1ab502._0x4f116f,_0x1ab502._0x542f55)](_0x7bb6d7(_0x1ab502._0x3b6df0,0x2d7,_0x1ab502._0x37c337,_0x1ab502._0x1c5ddc))??'',_0x52cff2=_0x1c9e84[_0x45cde3(0x39b,0x380,0x4a3,_0x1ab502._0x10f7bb)],_0x3736d0=await _0x1c9e84[_0x45cde3(0x2ce,0x3ab,_0x1ab502._0x27bbfd,0x265)]();}catch(_0x4470ec){if(_0x4470ec instanceof ToolExecutionError)throw _0x4470ec;const _0x4c9175=_0x4470ec instanceof Error?_0x4470ec[_0x45cde3(_0x1ab502._0x2a355b,_0x1ab502._0x58bee9,0x21e,0x276)]:String(_0x4470ec);throw new ToolExecutionError(_0x4c9175,{'url':_0x3bf023});}finally{_0x49bf03[_0x7bb6d7(_0x1ab502._0x305f1a,_0x1ab502._0x533268,0x61,0xd7)]();}function _0x45cde3(_0x317f18,_0xcc7261,_0x7eb4a0,_0x219195){return _0x577d95(_0x317f18-0x1ac,_0xcc7261,_0x7eb4a0-0x13c,_0x317f18- -0x2cc);}const _0x47de77=new Date()[_0x45cde3(_0x1ab502._0x265804,_0x1ab502._0xfeaddd,0x31a,0x49a)]();let _0x36a3e4,_0xaedbb;if(_0x5075b4[_0x7bb6d7(0x239,_0x1ab502._0x1f06a6,_0x1ab502._0x4be075,0x32d)](_0x45cde3(0x284,_0x1ab502._0x117962,0x19d,0x17d)))_0x36a3e4=_0x45cde3(_0x1ab502._0x10fd59,0x35f,0x34a,0x2fb)+_0x3736d0+_0x7bb6d7(_0x1ab502._0x1fde3f,_0x1ab502._0x49bfe5,0x239,0x2c7),_0xaedbb=_0x7bb6d7(0x1aa,_0x1ab502._0x385ab0,0x2d8,_0x1ab502._0x57466c);else _0x5075b4[_0x45cde3(0x33c,0x1ef,0x430,0x2b6)]('text/html')?(_0x36a3e4=_0x572ab0[_0x7bb6d7(0x1ce,0x1a9,0x134,_0x1ab502._0x1c5ddc)](_0x3736d0),_0xaedbb=_0x45cde3(0x368,0x37e,0x280,0x332)):(_0x36a3e4=_0x3736d0,_0xaedbb=_0x7bb6d7(_0x1ab502._0x4accc9,0x25a,0x208,_0x1ab502._0x318961));return yield createToolOutput(_0x36a3e4,{'url':_0x3bf023,'contentType':_0x5075b4,'statusCode':_0x52cff2,'format':_0xaedbb,'size':_0x3736d0[_0x45cde3(_0x1ab502._0x20a7f0,_0x1ab502._0xfda1b0,_0x1ab502._0x41076f,0x4d9)],'fetchedAt':_0x47de77}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x23b1c2(0x427,0x43c,0x4da,0x3cd);function normalizeUrl(_0x1dcbd2){const _0x5b6ce8={_0x730e52:0x5be,_0xe35992:0x33b,_0x4d4f27:0x325,_0x49cff2:0x470,_0x1a18e6:0x3a0,_0x2e8d26:0x431,_0x4d9221:0x2ce,_0x767961:0x541,_0x12ca94:0x4ef,_0x9114a8:0x48f,_0xf236b1:0x4c8,_0x438625:0x28f,_0x2773de:0x397,_0x3b126e:0x457,_0x49bc28:0x589,_0xdf7de:0x4f1},_0x354cbb={_0x1cd7b5:0x5d,_0xd6a30e:0x1d3},_0x71017a={_0x1ac091:0x9b,_0x51ca61:0x120,_0x523ced:0x52};function _0x1f911c(_0x319373,_0x2d145d,_0x26d1f4,_0x1315fd){return _0x23b1c2(_0x319373-_0x71017a._0x1ac091,_0x2d145d,_0x1315fd-_0x71017a._0x51ca61,_0x1315fd-_0x71017a._0x523ced);}function _0x16f71c(_0x479375,_0x5643f0,_0x315499,_0x16577a){return _0x57b9de(_0x479375-_0x354cbb._0x1cd7b5,_0x16577a,_0x5643f0-0x73,_0x16577a-_0x354cbb._0xd6a30e);}try{const _0x3b4651=new URL(_0x1dcbd2);for(const _0x15b9a9 of[_0x16f71c(0x536,_0x5b6ce8._0x730e52,0x4c1,0x553),_0x1f911c(0x386,0x332,_0x5b6ce8._0xe35992,0x42f),_0x1f911c(_0x5b6ce8._0x4d4f27,_0x5b6ce8._0x49cff2,0x37b,_0x5b6ce8._0x1a18e6),_0x16f71c(_0x5b6ce8._0x2e8d26,0x3f1,0x53b,_0x5b6ce8._0x4d9221),_0x16f71c(0x451,0x5a5,0x67f,0x60d),_0x1f911c(0x5c2,0x564,_0x5b6ce8._0x767961,_0x5b6ce8._0x12ca94),_0x1f911c(_0x5b6ce8._0x9114a8,_0x5b6ce8._0xf236b1,0x5a0,0x593),'mc_cid',_0x16f71c(_0x5b6ce8._0x438625,_0x5b6ce8._0x2773de,_0x5b6ce8._0x3b126e,0x279)]){_0x3b4651['searchParams'][_0x1f911c(_0x5b6ce8._0x49bc28,_0x5b6ce8._0xdf7de,0x5ac,0x581)](_0x15b9a9);}return _0x3b4651['toString']();}catch{return _0x1dcbd2;}}function cseDateRestrict(_0x1713bd){if(_0x1713bd<=0x0)return void 0x0;if(_0x1713bd<=0x1e)return'd'+Math['max'](0x1,Math['floor'](_0x1713bd));if(_0x1713bd<=0x16d)return'm'+Math['ceil'](_0x1713bd/0x1e);return'y'+Math['ceil'](_0x1713bd/0x16d);}function addSiteFilters(_0x2e7fac,_0x2ddce4){const _0x410f0c={_0x28e596:0x2df,_0x4a9e35:0x2f1,_0x457b97:0x151,_0x3ea86c:0x3,_0x60ddcd:0x3ae,_0x15d770:0x414,_0x5c3e52:0x2ce,_0x45fe89:0x9f,_0x171ac7:0x112,_0x533a2a:0x139,_0x596973:0x147},_0x1730be={_0x2e3031:0x1d0},_0x4662cd={_0x2b3f96:0xb4};if(_0x2ddce4[_0x1893f8(0x41b,_0x410f0c._0x28e596,0x40f,_0x410f0c._0x4a9e35)]===0x0)return _0x2e7fac[_0x1893f8(_0x410f0c._0x457b97,_0x410f0c._0x3ea86c,0x9a,0xfb)]();function _0xddba7d(_0x47e557,_0x7b8b11,_0x45f6c0,_0x14c4f0){return _0x23b1c2(_0x47e557-0x198,_0x7b8b11,_0x47e557-0x129,_0x14c4f0-_0x4662cd._0x2b3f96);}function _0x1893f8(_0x54fbae,_0x4c188a,_0x134180,_0x4e5c6f){return _0x23b1c2(_0x54fbae-_0x1730be._0x2e3031,_0x134180,_0x4e5c6f- -0x1b8,_0x4e5c6f-0x17d);}return(_0x2e7fac+'\x20('+_0x2ddce4[_0x1893f8(0x2e1,_0x410f0c._0x60ddcd,_0x410f0c._0x15d770,_0x410f0c._0x5c3e52)](_0x28cc10=>_0xddba7d(0x491,0x3b5,0x432,0x4da)+_0x28cc10)[_0x1893f8(_0x410f0c._0x45fe89,0x23b,_0x410f0c._0x171ac7,_0x410f0c._0x533a2a)](_0x1893f8(0x196,0x1c6,0x1b5,_0x410f0c._0x596973))+')')['trim']();}function normalizeType(_0x1990ba){const _0x1fde64={_0x42d399:0x6be,_0x2301bd:0x727,_0x1c56cf:0x6c2,_0xa23e8e:0x2b0,_0x561bd3:0x22d},_0x3b77b1={_0x318d7d:0x42},_0x49a6f7={_0x44892b:0x1a2};function _0x42d6ff(_0x16c835,_0x11874c,_0x11f903,_0x2cb8e6){return _0x23b1c2(_0x16c835-0x1f4,_0x2cb8e6,_0x11f903-0x330,_0x2cb8e6-_0x49a6f7._0x44892b);}function _0x22b459(_0x8dee66,_0x3a03b,_0x4a2fa6,_0x1b0ae6){return _0x57b9de(_0x8dee66-0x71,_0x8dee66,_0x4a2fa6- -0x20d,_0x1b0ae6-_0x3b77b1._0x318d7d);}return _0x1990ba===_0x42d6ff(0x7e3,0x6bf,_0x1fde64._0x42d399,0x78c)?_0x42d6ff(_0x1fde64._0x2301bd,_0x1fde64._0x1c56cf,_0x1fde64._0x42d399,0x58b):_0x22b459(_0x1fde64._0xa23e8e,_0x1fde64._0x561bd3,0x1f0,0x109);}async function fetchJson(_0xe74c52,_0x2dd37c,_0x3546f5){const _0xe929a9={_0x4064f1:0x10f,_0xbdc4a3:0x21e,_0x22a118:0x1f0,_0x5e1c00:0x159,_0xbb257e:0x1b1,_0x2c926d:0x26c,_0x12f092:0x35,_0x3b8e10:0x22b,_0x4cd5c9:0x1e0,_0x4dc729:0x2b5,_0x1baebe:0x1e8,_0x2df3e7:0x2c2,_0x2f6f65:0x1fb,_0x19718f:0x476,_0x5f5282:0x3f9,_0x5308a0:0x47c,_0x20bde4:0x2a1,_0x55d5da:0x208,_0x5ba3c3:0x3ab,_0x43e04f:0x458,_0x3acdda:0x277,_0x2f34de:0x37e,_0x5a9ead:0x4a1},_0x18a5fa={_0x4be85f:0x194,_0x16a066:0x2aa,_0x5ded9c:0xda},_0x5efc73={_0xcc4387:0x150,_0xfdc764:0xa4,_0x5a53e0:0x1ac},_0x4d0924=await fetch(_0xe74c52,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x30e2b3(_0xe929a9._0x4064f1,_0xe929a9._0xbdc4a3,_0xe929a9._0x22a118,_0xe929a9._0x5e1c00),..._0x3546f5?.[_0x30e2b3(0x14b,_0xe929a9._0xbb257e,0x29a,_0xe929a9._0x2c926d)]},'signal':_0x2dd37c,..._0x3546f5});function _0x329b18(_0x39a085,_0x18de0e,_0x99d89b,_0x2757a1){return _0x23b1c2(_0x39a085-_0x5efc73._0xcc4387,_0x2757a1,_0x39a085- -_0x5efc73._0xfdc764,_0x2757a1-_0x5efc73._0x5a53e0);}function _0x30e2b3(_0x109b1f,_0x2daa9e,_0x51249,_0x5b731b){return _0x57b9de(_0x109b1f-_0x18a5fa._0x4be85f,_0x2daa9e,_0x109b1f- -_0x18a5fa._0x16a066,_0x5b731b-_0x18a5fa._0x5ded9c);}if(!_0x4d0924['ok']){let _0xd7a744,_0x5a19c1;try{_0xd7a744=await _0x4d0924[_0x329b18(0x2b1,0x268,0x3c4,0x166)]();const _0x4bdd1c=JSON[_0x30e2b3(0x8f,0x16f,-0x27,-_0xe929a9._0x12f092)](_0xd7a744),_0x14bd92=typeof _0x4bdd1c[_0x30e2b3(0x127,0xbb,_0xe929a9._0x3b8e10,0x237)]===_0x30e2b3(_0xe929a9._0x4cd5c9,0x266,0x1c1,_0xe929a9._0x4dc729)?_0x4bdd1c['detail'][_0x30e2b3(0x205,_0xe929a9._0x1baebe,0x1eb,_0xe929a9._0x2df3e7)]:void 0x0;_0x5a19c1=_0x4bdd1c['error']?.[_0x30e2b3(_0xe929a9._0x2f6f65,0x34e,0x10e,0xed)]??_0x4bdd1c[_0x329b18(0x35d,_0xe929a9._0x19718f,_0xe929a9._0x5f5282,_0xe929a9._0x5308a0)]?.[_0x329b18(0x375,0x3a0,_0xe929a9._0x20bde4,0x32d)]?.[0x0]?.[_0x30e2b3(_0xe929a9._0x2f6f65,_0xe929a9._0x55d5da,0x141,0x257)]??_0x14bd92;}catch{}const _0x5a83c6=_0x5a19c1?_0x329b18(_0xe929a9._0x5ba3c3,0x34d,0x2f4,_0xe929a9._0x43e04f)+_0x4d0924[_0x329b18(0x37e,_0xe929a9._0x3acdda,0x277,0x2e2)]+':\x20'+_0x5a19c1:'HTTP\x20'+_0x4d0924['status']+'\x20'+_0x4d0924['statusText'];throw new ToolExecutionError(_0x5a83c6,{'statusCode':_0x4d0924[_0x329b18(_0xe929a9._0x2f34de,_0xe929a9._0x5a9ead,0x305,0x4c4)],..._0xd7a744?{'body':_0xd7a744}:{}});}return await _0x4d0924['json']();}async function hydrateResults(_0x3bc08a,_0x38dbe6,_0x51ef6a){const _0x3969b6={_0x7b8b9a:0x5d3,_0x53b657:0x604,_0x7d41d1:0x72b,_0x419357:0x36b,_0x2f890f:0x453,_0x5251c2:0x618,_0xcfa53a:0x4b6,_0xb189ca:0x547},_0x3af462={_0x5b426b:0x1d3},_0x4513c3={_0x338bee:0x418,_0x2d1b33:0x470,_0x4c5c01:0x168,_0x58321b:0x7b,_0x27dab9:0x429,_0x4359ff:0x33e,_0x5eb0ca:0x1a1,_0x3151cb:0x3e7,_0x375913:0x2a2,_0x44cb5c:0x110,_0x1066ae:0x13a,_0x12eddf:0x10f,_0x2c74ed:0x25f,_0x33b19e:0x24d,_0x36735c:0x34,_0x2bc8e9:0x18f,_0x27d6e5:0x269,_0x54bdab:0x25d,_0x1eb8d6:0x2a2,_0x107bd4:0x2d1,_0x152f1f:0x1df,_0x47aca5:0x2c0,_0x1d35f0:0x46a,_0x21416b:0x45d,_0x33958b:0x56d,_0x4ed5d4:0x376,_0x528578:0x48a,_0x9c76f3:0x246,_0x1ca93d:0x2e9,_0x4e2559:0x30f,_0x116345:0x358,_0x35f242:0x32b,_0x4951bc:0x39e,_0x50d3eb:0x294,_0x59ac7b:0x2c5,_0x334f0d:0x341,_0x157a06:0x3d7,_0x550fe9:0x296,_0x4506d3:0x15a,_0x59d505:0x26a,_0x5a1e15:0x2e0,_0x1915d0:0x255},_0x527bbf={_0x5baac4:0x154},_0x23bd24={_0x21674b:0x286,_0x3d251b:0x1bd};function _0x550717(_0x1d8aab,_0x48ec4e,_0x7903ba,_0x27f4ed){return _0x23b1c2(_0x1d8aab-0x173,_0x27f4ed,_0x48ec4e-_0x23bd24._0x21674b,_0x27f4ed-_0x23bd24._0x3d251b);}const _0xc72679=await Promise[_0x550717(_0x3969b6._0x7b8b9a,_0x3969b6._0x53b657,_0x3969b6._0x7d41d1,0x587)](_0x3bc08a[_0x4a7fed(0x4ff,_0x3969b6._0x419357,_0x3969b6._0x2f890f,0x459)](0x0,0xa)['map'](async _0x4e4338=>{function _0x57fcb2(_0x241d35,_0x49e28c,_0x142a9e,_0x118923){return _0x4a7fed(_0x241d35-0x52,_0x49e28c-0x3f,_0x241d35- -0x59,_0x142a9e);}function _0x4b004d(_0x35449f,_0x2e9e,_0x2e2ccd,_0x19865c){return _0x4a7fed(_0x35449f-_0x527bbf._0x5baac4,_0x2e9e-0x92,_0x2e2ccd- -0x2ae,_0x35449f);}try{const _0x18ce53=await fetch(_0x4e4338[_0x57fcb2(0x535,_0x4513c3._0x338bee,_0x4513c3._0x2d1b33,0x448)],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x38dbe6,'Accept':'text/html'},'signal':_0x51ef6a});if(!_0x18ce53['ok'])return _0x4e4338;const _0x5779b6=await _0x18ce53[_0x4b004d(0xf8,0x1f3,_0x4513c3._0x4c5c01,0x161)](),_0x4c87e6=load(_0x5779b6),_0x528b4a=_0x4c87e6('meta[property=\x27og:title\x27]')[_0x4b004d(0xb,_0x4513c3._0x58321b,0x121,0x145)](_0x57fcb2(0x30f,0x334,_0x4513c3._0x27dab9,0x2b0))||_0x4c87e6(_0x4b004d(0x1ee,_0x4513c3._0x4359ff,0x29e,0x298))['first']()[_0x4b004d(_0x4513c3._0x5eb0ca,0x19,0x168,0xc3)]()[_0x57fcb2(0x31b,_0x4513c3._0x3151cb,0x30e,_0x4513c3._0x375913)](),_0x409abf=_0x4c87e6(_0x4b004d(_0x4513c3._0x44cb5c,_0x4513c3._0x1066ae,0x190,0x253))['attr'](_0x4b004d(_0x4513c3._0x12eddf,0x18e,0xba,0x103))||_0x4c87e6(_0x57fcb2(0x317,0x433,_0x4513c3._0x2c74ed,_0x4513c3._0x33b19e))[_0x4b004d(_0x4513c3._0x36735c,_0x4513c3._0x2bc8e9,0x121,_0x4513c3._0x27d6e5)](_0x57fcb2(0x30f,_0x4513c3._0x54bdab,_0x4513c3._0x1eb8d6,0x321))||_0x4e4338[_0x4b004d(_0x4513c3._0x107bd4,0x290,_0x4513c3._0x152f1f,_0x4513c3._0x47aca5)],_0x15c919=_0x4c87e6(_0x57fcb2(_0x4513c3._0x1d35f0,_0x4513c3._0x21416b,0x49a,_0x4513c3._0x33958b))[_0x57fcb2(_0x4513c3._0x4ed5d4,_0x4513c3._0x528578,_0x4513c3._0x9c76f3,_0x4513c3._0x1ca93d)](_0x57fcb2(_0x4513c3._0x4e2559,_0x4513c3._0x116345,_0x4513c3._0x35f242,0x2f8))||_0x4c87e6(_0x4b004d(_0x4513c3._0x4951bc,0x283,0x292,_0x4513c3._0x50d3eb))['attr']('datetime')||_0x4e4338[_0x57fcb2(0x40f,0x546,0x346,0x53c)],_0x187d0b=_0x4c87e6(_0x57fcb2(_0x4513c3._0x59ac7b,_0x4513c3._0x334f0d,_0x4513c3._0x157a06,0x1f1))[_0x57fcb2(0x376,0x36d,_0x4513c3._0x550fe9,0x2d1)]('href');return{..._0x4e4338,'title':_0x528b4a||_0x4e4338[_0x4b004d(0x27e,_0x4513c3._0x4506d3,0x29e,_0x4513c3._0x59d505)],'snippet':_0x409abf,'url':_0x187d0b?normalizeUrl(new URL(_0x187d0b,_0x4e4338[_0x4b004d(0x230,0x1a0,_0x4513c3._0x5a1e15,0x1c2)])[_0x4b004d(0x28f,0x247,_0x4513c3._0x1915d0,0x2e1)]()):_0x4e4338['url'],'publishedAt':_0x15c919};}catch{return _0x4e4338;}})),_0x55b116=new Map(_0x3bc08a[_0x550717(0x737,_0x3969b6._0x5251c2,0x610,0x561)](0x0,0xa)[_0x4a7fed(0x4e6,0x47e,0x547,0x613)]((_0x1e63c0,_0x430d7b)=>[_0x1e63c0[_0x4a7fed(0x5e0,0x4b4,0x58e,0x4df)],_0xc72679[_0x430d7b]]));function _0x4a7fed(_0x470e94,_0x439eab,_0x351b47,_0x8e5986){return _0x23b1c2(_0x470e94-_0x3af462._0x5b426b,_0x8e5986,_0x351b47-0xc1,_0x8e5986-0x186);}return _0x3bc08a[_0x4a7fed(_0x3969b6._0xcfa53a,0x51f,_0x3969b6._0xb189ca,0x541)](_0x280be8=>_0x55b116[_0x4a7fed(0x2b0,0x42c,0x3ad,0x41c)](_0x280be8['url'])??_0x280be8);}function formatResults(_0x295825){const _0x4a87a6={_0x251f2d:0x72f,_0x3b0f43:0x6be,_0x15831d:0x707,_0x4838da:0x6cd,_0xc570cd:0x5c6,_0x90a868:0x6ef,_0x1f2c23:0x31f,_0x186f61:0x2a0,_0x423768:0x33f,_0x45afc1:0x30c,_0x4aa93:0x17d,_0x332a84:0x21e,_0x439f60:0x20a,_0x39af08:0x1f9,_0x49bb3c:0x2fc,_0x59dfe4:0x614,_0x4fabeb:0x5b3,_0xf9c213:0x5f1,_0x2cbc86:0x5e8},_0x8e0050={_0x3238cd:0x1e4},_0x2c02a1={_0x10773c:0x140},_0x124c83={_0xcf6b28:0x13d},_0xaca992={_0x19f7a9:0xe0,_0x14a32d:0x126};function _0x4d7212(_0x3ddf59,_0x58e716,_0x522991,_0x30c8d5){return _0x23b1c2(_0x3ddf59-0x19a,_0x3ddf59,_0x30c8d5- -_0xaca992._0x19f7a9,_0x30c8d5-_0xaca992._0x14a32d);}if(_0x295825[_0x4d7212(0x2e1,0x2ae,0x3d6,0x3c9)]===0x0)return'No\x20results\x20found.';function _0x45b9df(_0x18ce1e,_0x4b1e7e,_0x1e4d0b,_0x5296b8){return _0x57b9de(_0x18ce1e-0x30,_0x5296b8,_0x1e4d0b- -0x56,_0x5296b8-_0x124c83._0xcf6b28);}return _0x295825['map'](_0x25b91d=>{const _0x42f40d=[_0x25b91d[_0x9b586e(_0x4a87a6._0x251f2d,_0x4a87a6._0x3b0f43,_0x4a87a6._0x15831d,0x6cf)][_0x9b586e(0x4e8,_0x4a87a6._0x4838da,0x603,_0x4a87a6._0xc570cd)]+'.\x20'+_0x25b91d[_0x9b586e(_0x4a87a6._0x90a868,0x7f1,0x58e,0x6d5)],_0x25b91d[_0x22116f(_0x4a87a6._0x1f2c23,0x207,_0x4a87a6._0x186f61,_0x4a87a6._0x423768)]];function _0x22116f(_0x481fbf,_0xbe61af,_0x334790,_0x590d45){return _0x4d7212(_0xbe61af,_0xbe61af-0xc5,_0x334790-_0x2c02a1._0x10773c,_0x481fbf- -0xce);}if(_0x25b91d[_0x22116f(0x21e,_0x4a87a6._0x45afc1,0x198,0x330)])_0x42f40d[_0x22116f(0x1e7,0x248,_0x4a87a6._0x4aa93,0xde)](_0x25b91d[_0x22116f(_0x4a87a6._0x332a84,_0x4a87a6._0x439f60,_0x4a87a6._0x39af08,_0x4a87a6._0x49bb3c)]);function _0x9b586e(_0x1b50f8,_0x331fbd,_0x4eb088,_0x4e59f3){return _0x4d7212(_0x1b50f8,_0x331fbd-_0x8e0050._0x3238cd,_0x4eb088-0x116,_0x4e59f3-0x32a);}if(_0x25b91d['publishedAt'])_0x42f40d[_0x9b586e(_0x4a87a6._0x59dfe4,0x6d9,0x506,0x5df)]('Published:\x20'+_0x25b91d[_0x9b586e(0x4ab,0x73d,_0x4a87a6._0x4fabeb,_0x4a87a6._0xf9c213)]);return _0x42f40d[_0x9b586e(0x497,0x48c,_0x4a87a6._0x2cbc86,0x53b)]('\x0a');})[_0x4d7212(0x196,0x24d,0x362,0x211)]('\x0a\x0a');}async function searchOllama(_0x432d1c,_0x17c5e5,_0x587681){const _0x527e95={_0x1caeb6:0x480,_0x327c17:0x525,_0x43075a:0x582,_0xc031cf:0x4cf,_0x2d2cef:0x55c,_0x18bd1e:0x4e2,_0x1133d0:0x3cc,_0x35fba1:0x38e,_0x362eeb:0x211,_0x1a7e49:0x53a,_0x1893f4:0x334,_0x3b3d77:0x286,_0x12c035:0x2f3,_0x410fd1:0x270,_0x455c71:0x24c,_0x224e82:0x6cf,_0x401f26:0x596,_0x2f84fa:0x588,_0x53fc74:0x5dd,_0x2ce63e:0x530,_0x22f5fd:0x681,_0x45f036:0x20d},_0x511b6c={_0x3f128c:0x4d,_0x5d3646:0xb0,_0x4197ce:0x294,_0x306b9:0x30e,_0x55db1d:0x2a0},_0x51e640={_0x772a1:0x1b1},_0x232ef5={_0x414c80:0xc8,_0x204b07:0x1ba},_0x1dfd9a={_0x5370c2:0x185,_0x185fe2:0xf0,_0x1d2004:0x1a9},_0xe9aec9=Math[_0x5cb0ab(0x401,_0x527e95._0x1caeb6,0x4a2,0x5ec)](0x1,Math['min'](0xa,_0x17c5e5[_0x5cb0ab(0x44b,0x5d9,_0x527e95._0x327c17,_0x527e95._0x43075a)]));function _0x5cb0ab(_0x69aac3,_0x319aaa,_0x42d7bf,_0x39ea3e){return _0x57b9de(_0x69aac3-_0x1dfd9a._0x5370c2,_0x319aaa,_0x42d7bf-_0x1dfd9a._0x185fe2,_0x39ea3e-_0x1dfd9a._0x1d2004);}const _0x7f734d=addSiteFilters(_0x17c5e5['query'],_0x17c5e5[_0x5cb0ab(_0x527e95._0xc031cf,_0x527e95._0x2d2cef,_0x527e95._0x18bd1e,_0x527e95._0x1133d0)]),_0x590c55=await fetchJson(_0x1261d2(0x2d2,_0x527e95._0x35fba1,0x1f2,_0x527e95._0x362eeb),_0x587681,{'method':_0x5cb0ab(0x503,0x3ab,0x45d,_0x527e95._0x1a7e49),'headers':{'Authorization':_0x1261d2(0x2a6,_0x527e95._0x1893f4,_0x527e95._0x3b3d77,_0x527e95._0x12c035)+_0x432d1c['apiKey']},'body':JSON[_0x1261d2(_0x527e95._0x410fd1,0x28c,_0x527e95._0x455c71,0x336)]({'query':_0x7f734d,'max_results':_0xe9aec9})}),_0x14be0a=_0x590c55[_0x5cb0ab(0x5be,0x563,0x5af,_0x527e95._0x224e82)]??[];function _0x1261d2(_0x185d1b,_0x4d56e5,_0x3f82f0,_0x2f25a2){return _0x23b1c2(_0x185d1b-_0x232ef5._0x414c80,_0x3f82f0,_0x185d1b- -0xfe,_0x2f25a2-_0x232ef5._0x204b07);}const _0x4a0dac=_0x14be0a[_0x5cb0ab(0x6cd,_0x527e95._0x401f26,0x624,_0x527e95._0x2f84fa)]((_0x407c02,_0x144361)=>{const _0xab339e=_0x407c02['url']||'';function _0xfcf81a(_0x4e95e9,_0x3260c9,_0x328204,_0xdc6f2b){return _0x5cb0ab(_0x4e95e9-0x27,_0x328204,_0x3260c9- -_0x51e640._0x772a1,_0xdc6f2b-0x53);}let _0x1199c1;try{_0x1199c1=new URL(_0xab339e)[_0x54f75d(0x9c,0xd9,_0x511b6c._0x3f128c,_0x511b6c._0x5d3646)];}catch{_0x1199c1=null;}function _0x54f75d(_0x14c111,_0x27e3aa,_0x4619e2,_0x3247a8){return _0x1261d2(_0x3247a8- -0x2a9,_0x27e3aa-0x163,_0x4619e2,_0x3247a8-0x1e9);}return{'title':_0x407c02['title']||'Untitled','url':normalizeUrl(_0xab339e),'snippet':_0x407c02[_0xfcf81a(0x209,_0x511b6c._0x4197ce,_0x511b6c._0x306b9,0x19c)]??null,'displayUrl':_0x1199c1,'favicon':null,'publishedAt':null,'source':{'engine':_0xfcf81a(0x389,0x2f7,_0x511b6c._0x55db1d,0x3d3),'rank':_0x144361+0x1}};});return{'items':_0x4a0dac[_0x5cb0ab(_0x527e95._0x53fc74,0x4d7,_0x527e95._0x2ce63e,_0x527e95._0x22f5fd)](0x0,_0xe9aec9),'engine':_0x1261d2(0x20c,_0x527e95._0x45f036,0x239,0x22b)};}async function searchTavily(_0x25ab10,_0x19d7b2,_0x3561fc){const _0x3a6b16={_0xc03711:0x7c,_0x5307ae:0xb7,_0x35e23a:0x2a,_0x250c4d:0xf4,_0x30deee:0x24,_0x366ae0:0x504,_0x1b465f:0x255,_0x3b41a0:0x111,_0x48dc8b:0x1aa,_0x338d54:0x10b,_0x21ce0d:0xb7,_0x2af7e9:0x1ad,_0x5f08cb:0x4d5,_0x2b1b2d:0x438,_0x2cb7eb:0x3a2,_0x15fb63:0x645,_0x386aa9:0x453,_0x31e5d7:0x555,_0x5cf5a3:0x42d,_0x3c99a4:0x473,_0x1c4497:0x34f,_0x2417cf:0x47d,_0x2812f0:0x11c,_0x2a20a3:0x41d,_0x212cbc:0xe6,_0x20505c:0x189,_0x34f3c2:0x5ab,_0x303891:0x516,_0x31eb4b:0x94,_0x4e7d7:0x3cf},_0xd4005f={_0x55e1fe:0x430,_0x44a407:0x49f,_0x599779:0x4b4,_0x573412:0xb0,_0x2d9137:0xd0,_0x4e8441:0x82,_0x338b9d:0x1b,_0x1f7ade:0x28c,_0x4ee572:0x224},_0x91eda={_0x335b2f:0x288},_0x57b650={_0x4dbb7b:0x109,_0xf5b2be:0x1d2};function _0x749516(_0x5b8e72,_0xd734d4,_0x52f5c9,_0x54624e){return _0x57b9de(_0x5b8e72-_0x57b650._0x4dbb7b,_0xd734d4,_0x52f5c9- -0x1e,_0x54624e-_0x57b650._0xf5b2be);}const _0x624e04=Math[_0xe8b8ce(0x4c,0xc,0x15a,_0x3a6b16._0xc03711)](0x1,Math[_0xe8b8ce(_0x3a6b16._0x5307ae,-_0x3a6b16._0x35e23a,_0x3a6b16._0x250c4d,-_0x3a6b16._0x30deee)](0x14,_0x19d7b2['count'])),_0x1f9e27={'query':_0x19d7b2[_0x749516(_0x3a6b16._0x366ae0,0x49b,0x429,0x2ec)],'max_results':_0x624e04,'search_depth':_0x25ab10[_0xe8b8ce(_0x3a6b16._0x1b465f,_0x3a6b16._0x3b41a0,_0x3a6b16._0x48dc8b,_0x3a6b16._0x338d54)]??_0xe8b8ce(_0x3a6b16._0x21ce0d,0xa9,0xee,_0x3a6b16._0x2af7e9),'topic':_0x25ab10[_0x749516(0x387,0x3d1,_0x3a6b16._0x5f08cb,0x61b)]??'general'};if(_0x19d7b2[_0x749516(0x3b6,0x3c4,0x3d4,_0x3a6b16._0x2b1b2d)]['length']>0x0)_0x1f9e27[_0x749516(0x21d,_0x3a6b16._0x2cb7eb,0x305,0x2db)]=_0x19d7b2['domains'];const _0x5c972=await fetchJson(_0x749516(_0x3a6b16._0x15fb63,_0x3a6b16._0x386aa9,_0x3a6b16._0x31e5d7,0x679),_0x3561fc,{'method':_0x749516(_0x3a6b16._0x5cf5a3,_0x3a6b16._0x3c99a4,_0x3a6b16._0x1c4497,_0x3a6b16._0x2417cf),'headers':{'Authorization':_0xe8b8ce(0x19f,0x32,0x1d7,_0x3a6b16._0x2812f0)+_0x25ab10[_0x749516(0x363,_0x3a6b16._0x2a20a3,0x494,0x54d)],'Content-Type':'application/json'},'body':JSON[_0xe8b8ce(0x5d,0x6d,-0x11,_0x3a6b16._0x212cbc)](_0x1f9e27)}),_0x5a4b6c=_0x5c972[_0xe8b8ce(0x2be,0x214,0xe2,_0x3a6b16._0x20505c)]??[];function _0xe8b8ce(_0x1f44f9,_0x58c7e7,_0x247fa5,_0x242f38){return _0x23b1c2(_0x1f44f9-0x10e,_0x58c7e7,_0x242f38- -_0x91eda._0x335b2f,_0x242f38-0xa1);}const _0x2706da=_0x5a4b6c[_0x749516(0x62d,_0x3a6b16._0x34f3c2,_0x3a6b16._0x303891,0x425)]((_0xf27576,_0x43d363)=>{const _0x51d33c={_0x496dcc:0x11c,_0x5e9ed1:0x2c6,_0x1adf0e:0x175},_0x218f62=_0xf27576[_0x5a6260(0x3fb,_0xd4005f._0x55e1fe,_0xd4005f._0x44a407,0x446)]||'';function _0x5a6260(_0x42b704,_0x1d7013,_0x37ed7e,_0x3de4b0){return _0x749516(_0x42b704-0x1df,_0x1d7013,_0x3de4b0- -0x117,_0x3de4b0-0x65);}function _0x4bada5(_0xf70c1d,_0x4a84c3,_0x36e6be,_0x45d7f9){return _0x749516(_0xf70c1d-_0x51d33c._0x496dcc,_0x4a84c3,_0x45d7f9- -_0x51d33c._0x5e9ed1,_0x45d7f9-_0x51d33c._0x1adf0e);}let _0x295a8a;try{_0x295a8a=new URL(_0x218f62)[_0x5a6260(0x48b,_0xd4005f._0x599779,0x32f,0x3d0)];}catch{_0x295a8a=null;}return{'title':_0xf27576['title']||_0x4bada5(0xa4,-_0xd4005f._0x573412,-_0xd4005f._0x2d9137,0x23),'url':normalizeUrl(_0x218f62),'snippet':_0xf27576[_0x4bada5(-0x67,_0xd4005f._0x4e8441,-_0xd4005f._0x338b9d,0x71)]??null,'displayUrl':_0x295a8a,'favicon':null,'publishedAt':null,'source':{'engine':_0x5a6260(0x339,0x232,_0xd4005f._0x1f7ade,_0xd4005f._0x4ee572),'rank':_0x43d363+0x1}};});return{'items':_0x2706da[_0xe8b8ce(0xfe,0x221,_0x3a6b16._0x31eb4b,0x10a)](0x0,_0x624e04),'engine':_0x749516(_0x3a6b16._0x4e7d7,0x227,0x33b,0x293)};}async function searchGoogleCse(_0x441937,_0xe6c54c,_0x122309){const _0x22b004={_0x39720c:0x3b7,_0x4b8388:0x39b,_0x10617d:0x3d1,_0x5dfccb:0x4f7,_0x2e4e29:0x414,_0x149bac:0x61e,_0x7ca57c:0x434,_0xcbf0ce:0x41e,_0x205558:0x748,_0x309cc9:0x70d,_0x3b7c84:0x588,_0x5a20a7:0x418,_0x76d1ed:0x43d,_0x5f3b98:0x75a,_0x24e82b:0x83b,_0x588707:0x69c,_0x33a10d:0x523,_0x481507:0x6a6,_0x275c52:0x68f,_0x4b2727:0x679,_0x2d008c:0x54c,_0x4d0acd:0x456,_0x5c90bf:0x403,_0x2bbb9b:0x2bc,_0x1c6ecb:0x3d0,_0x579d12:0x2f6,_0x515d6f:0x563,_0x41a46b:0x48f,_0x45400a:0x49f,_0x1c4b01:0x354,_0x33d448:0x70c,_0x17aa7c:0x5b5,_0x55cee7:0x59f,_0x3d7999:0x4c7,_0x378e6d:0x5cc,_0x14caef:0x6e4,_0x4f925b:0x5d8,_0x5a1c57:0x4dc,_0x45ab91:0x458,_0x2cd2de:0x415,_0x3f6024:0x426,_0x19bf6e:0x4e8,_0x3c5751:0x340,_0x578af9:0x30f,_0x8bcfb1:0x2e0,_0x271af5:0x6b9,_0x10ea4f:0x7e1,_0x16212c:0x3d2,_0x3600ba:0x1e9,_0x2a8297:0x4d4,_0x580da2:0x40d,_0x531eb8:0x2ea,_0x325890:0x6e4,_0x415316:0x6a5,_0x4f7f30:0x294,_0x10d61a:0x1c2,_0x315b94:0x3d9,_0x3cf5b2:0x2fc,_0x2c15fd:0x6ae,_0x501020:0x682,_0x38148d:0x6f0,_0x2b73db:0x326,_0x1617f1:0x607,_0x291d33:0x6f1,_0x10bad5:0x42c,_0x3a1059:0x505,_0x177aa2:0x302,_0x4b377e:0x384,_0x48f2a8:0x484,_0x801b7c:0x1a5,_0x3aa8af:0x330,_0x3f6ac9:0x650,_0x545947:0x716,_0x1c053d:0x73b,_0x19bc13:0x319,_0x484bea:0x43f,_0x3f3c69:0x517,_0x28672a:0x471,_0x570afa:0x44a,_0x430259:0x4c4,_0x485844:0x5e7,_0x3b297e:0x6b0,_0x1ef6d3:0x359,_0x3c96ef:0x40c,_0x46fa49:0x452,_0x160745:0x39f,_0x47bfc4:0x2bb,_0x52b1aa:0x2e0,_0x170dff:0x4d2,_0x26d839:0x578,_0x3d759b:0x458,_0xa3022:0x207,_0x3a7929:0x247,_0x2b43e6:0x3d5,_0x11095c:0x6d5,_0x3ad71d:0x6ca,_0x43c5d6:0x6e7,_0x252fb7:0x73a,_0x5997b1:0x682,_0x2f3453:0x73c,_0x11091b:0x83c,_0x456592:0x588,_0x3ad4cb:0x6af,_0x53097a:0x6c9,_0x549a8d:0x54d,_0x276e42:0x5b8,_0xca77de:0x522,_0x5e0d8f:0x3eb,_0x193c24:0x4ec,_0x1708c8:0x5f0,_0x49efcf:0x65f,_0x1cc76b:0x6ea,_0x312399:0x7a6,_0x41002f:0x71a,_0x225864:0x80f,_0x42699a:0x67b,_0x103d85:0x643,_0x12402d:0x78e,_0x10f8f4:0x6ec,_0x550f9d:0x5a2,_0x143a7d:0x39a,_0x48ca8e:0x4fb,_0x413b00:0x69c,_0x3f16f1:0x2a3,_0x55ffdc:0x32d,_0x18e93e:0x338,_0x3d5bcb:0x625,_0x930510:0x732,_0x89a962:0x51f,_0xab0ced:0x738},_0x193aea={_0x233f88:0x1e5,_0x53ff9e:0x26},_0x5be0b2={_0x5515b3:0x3e},_0x2f1a94=Math[_0x158f0c(0x415,_0x22b004._0x39720c,_0x22b004._0x4b8388,_0x22b004._0x10617d)](0x1,Math[_0x5d65a5(_0x22b004._0x5dfccb,_0x22b004._0x2e4e29,_0x22b004._0x149bac,_0x22b004._0x7ca57c)](0x32,_0xe6c54c[_0x158f0c(0x33e,0x4e0,_0x22b004._0xcbf0ce,0x34c)]));if(_0xe6c54c[_0x5d65a5(_0x22b004._0x205558,0x6f4,_0x22b004._0x309cc9,0x746)]+_0x2f1a94>0x64)throw new ToolExecutionError(_0x158f0c(_0x22b004._0x3b7c84,_0x22b004._0x5a20a7,_0x22b004._0x76d1ed,0x440),{'offset':_0xe6c54c[_0x5d65a5(0x748,_0x22b004._0x5f3b98,_0x22b004._0x24e82b,_0x22b004._0x588707)],'count':_0x2f1a94,'maxResults':0x64});const _0x374f1e=cseDateRestrict(_0xe6c54c['recencyDays']),_0x1e9d21=addSiteFilters(_0xe6c54c[_0x5d65a5(0x62c,0x4fe,_0x22b004._0x33a10d,_0x22b004._0x481507)],_0xe6c54c['domains']);let _0x152d71=0x0;function _0x158f0c(_0x586c60,_0x53be6f,_0x53764a,_0x2667ce){return _0x57b9de(_0x586c60-0x117,_0x586c60,_0x53764a- -0x17,_0x2667ce-_0x5be0b2._0x5515b3);}let _0x6327d9=_0xe6c54c[_0x158f0c(_0x22b004._0x275c52,_0x22b004._0x4b2727,_0x22b004._0x2d008c,_0x22b004._0x4d0acd)]+0x1;const _0x49ece3=[];function _0x5d65a5(_0x31b7ef,_0x9f89af,_0x43896a,_0x16609f){return _0x57b9de(_0x31b7ef-0x19f,_0x43896a,_0x31b7ef-_0x193aea._0x233f88,_0x16609f-_0x193aea._0x53ff9e);}while(_0x152d71<_0x2f1a94){const _0x5a6f9e=Math[_0x158f0c(_0x22b004._0x5c90bf,_0x22b004._0x2bbb9b,0x2fb,0x2ab)](0xa,_0x2f1a94-_0x152d71),_0x382faf=new URL('https://www.googleapis.com/customsearch/v1');_0x382faf[_0x158f0c(0x5e8,0x4f5,0x4e8,_0x22b004._0x1c6ecb)][_0x158f0c(_0x22b004._0x579d12,0x279,0x2e0,0x284)](_0x158f0c(_0x22b004._0x515d6f,0x46b,_0x22b004._0x41a46b,0x4cb),_0x441937[_0x158f0c(_0x22b004._0x45400a,0x48a,_0x22b004._0x1c4b01,0x3bb)]),_0x382faf[_0x5d65a5(0x6e4,_0x22b004._0x33d448,_0x22b004._0x17aa7c,0x6e7)]['set']('cx',_0x441937[_0x5d65a5(_0x22b004._0x55cee7,_0x22b004._0x3d7999,0x45a,_0x22b004._0x378e6d)]),_0x382faf[_0x5d65a5(_0x22b004._0x14caef,0x7f9,_0x22b004._0x4f925b,0x76d)][_0x5d65a5(_0x22b004._0x5a1c57,_0x22b004._0x45ab91,_0x22b004._0x2cd2de,0x494)]('q',_0x1e9d21),_0x382faf[_0x158f0c(0x3fd,_0x22b004._0x3f6024,_0x22b004._0x19bf6e,0x49f)][_0x158f0c(_0x22b004._0x3c5751,_0x22b004._0x578af9,_0x22b004._0x8bcfb1,0x1c0)](_0x5d65a5(_0x22b004._0x271af5,0x69c,0x7e2,_0x22b004._0x10ea4f),String(_0x5a6f9e)),_0x382faf['searchParams'][_0x158f0c(_0x22b004._0x16212c,_0x22b004._0x3600ba,0x2e0,0x39d)](_0x158f0c(_0x22b004._0x2a8297,_0x22b004._0x580da2,0x3e7,_0x22b004._0x531eb8),String(_0x6327d9)),_0x382faf[_0x5d65a5(_0x22b004._0x325890,0x723,0x76d,_0x22b004._0x415316)][_0x158f0c(_0x22b004._0x4f7f30,_0x22b004._0x10d61a,0x2e0,0x3e3)]('safe',_0xe6c54c[_0x158f0c(0x3d8,_0x22b004._0x315b94,_0x22b004._0x3cf5b2,0x436)]?_0x5d65a5(0x664,_0x22b004._0x2c15fd,_0x22b004._0x501020,_0x22b004._0x38148d):_0x158f0c(0x2cc,0x375,_0x22b004._0x2b73db,0x35f));_0xe6c54c[_0x5d65a5(_0x22b004._0x1617f1,0x4ca,0x4f4,_0x22b004._0x291d33)]&&(_0x382faf[_0x158f0c(_0x22b004._0x10bad5,0x3f4,_0x22b004._0x19bf6e,_0x22b004._0x3a1059)][_0x158f0c(0x41b,_0x22b004._0x177aa2,0x2e0,_0x22b004._0x4b377e)]('hl',_0xe6c54c[_0x158f0c(0x471,0x545,0x40b,_0x22b004._0x48f2a8)]),_0x382faf['searchParams'][_0x158f0c(0x228,_0x22b004._0x801b7c,0x2e0,_0x22b004._0x3aa8af)]('lr',_0x5d65a5(_0x22b004._0x3f6ac9,0x721,0x57e,0x6e3)+_0xe6c54c[_0x5d65a5(_0x22b004._0x1617f1,_0x22b004._0x545947,_0x22b004._0x1c053d,_0x22b004._0x309cc9)]));if(_0xe6c54c[_0x158f0c(0x4b1,_0x22b004._0x19bc13,_0x22b004._0x484bea,_0x22b004._0x3f3c69)])_0x382faf[_0x158f0c(0x628,_0x22b004._0x28672a,0x4e8,_0x22b004._0x570afa)][_0x5d65a5(0x4dc,_0x22b004._0x430259,0x3f6,0x4f5)]('gl',_0xe6c54c['region']['toUpperCase']());if(_0xe6c54c[_0x5d65a5(0x6f5,_0x22b004._0x485844,_0x22b004._0x3b297e,0x5fd)]===_0x158f0c(_0x22b004._0x1ef6d3,0x426,0x425,_0x22b004._0x3c96ef))_0x382faf[_0x158f0c(_0x22b004._0x46fa49,0x604,0x4e8,0x44d)][_0x158f0c(_0x22b004._0x160745,_0x22b004._0x47bfc4,_0x22b004._0x52b1aa,0x20b)](_0x5d65a5(_0x22b004._0x170dff,0x590,_0x22b004._0x26d839,_0x22b004._0x3d759b),_0x158f0c(_0x22b004._0xa3022,0x34e,0x351,_0x22b004._0x3a7929));if(_0x374f1e)_0x382faf['searchParams'][_0x5d65a5(0x4dc,_0x22b004._0x2b43e6,0x574,0x5a5)]('dateRestrict',_0x374f1e);const _0x10cfed=await fetchJson(_0x382faf[_0x5d65a5(_0x22b004._0x11095c,_0x22b004._0x3ad71d,0x5a2,0x810)](),_0x122309),_0x44c384=_0x10cfed[_0x5d65a5(0x72d,_0x22b004._0x43c5d6,0x674,0x68a)]??[];if(_0x44c384[_0x5d65a5(0x73c,0x6cb,_0x22b004._0x252fb7,_0x22b004._0x5997b1)]===0x0)break;const _0x1eae5b=_0x152d71;for(let _0x2cc4ca=0x0;_0x2cc4ca<_0x44c384[_0x5d65a5(_0x22b004._0x2f3453,0x830,_0x22b004._0x11091b,0x674)];_0x2cc4ca++){const _0x40d39d=_0x44c384[_0x2cc4ca];if(!_0x40d39d)continue;const _0x16a5e4=_0x40d39d[_0x158f0c(0x5c9,0x3d8,0x48c,_0x22b004._0x456592)]||_0x40d39d['image']?.['contextLink']||'',_0x14a37b=_0x40d39d[_0x5d65a5(0x71e,_0x22b004._0x3ad4cb,0x5fd,_0x22b004._0x53097a)]||_0x40d39d[_0x5d65a5(_0x22b004._0x549a8d,0x67c,0x47e,0x4e5)]?.[_0x158f0c(_0x22b004._0x276e42,_0x22b004._0xca77de,0x522,_0x22b004._0x5e0d8f)]||_0x5d65a5(_0x22b004._0x193c24,_0x22b004._0x1708c8,0x548,0x4b9),_0x39fd1c=_0x40d39d[_0x5d65a5(_0x22b004._0x49efcf,0x658,0x6d8,_0x22b004._0x1cc76b)]||_0x40d39d[_0x5d65a5(0x6a0,_0x22b004._0x312399,0x6c9,_0x22b004._0x41002f)]?.[_0x5d65a5(0x6d2,0x6ca,_0x22b004._0x225864,_0x22b004._0x149bac)](/<[^>]+>/g,''),_0x29e0cd=_0x40d39d[_0x5d65a5(_0x22b004._0x42699a,_0x22b004._0x103d85,0x53c,_0x22b004._0x12402d)]?.['metatags']?.[0x0]??{};let _0x2b5a13;try{_0x2b5a13=new URL(_0x16a5e4)[_0x5d65a5(0x6ea,0x782,_0x22b004._0x10f8f4,_0x22b004._0x550f9d)];}catch{_0x2b5a13=null;}_0x49ece3[_0x158f0c(_0x22b004._0x143a7d,_0x22b004._0x48ca8e,_0x22b004._0x10bad5,0x3c0)]({'title':_0x14a37b,'url':normalizeUrl(_0x16a5e4),'snippet':_0x39fd1c??null,'displayUrl':_0x2b5a13,'favicon':null,'publishedAt':_0x29e0cd[_0x5d65a5(_0x22b004._0x413b00,0x723,0x6f8,0x79e)]||_0x29e0cd['og:updated_time']||null,'source':{'engine':_0x158f0c(0x41e,_0x22b004._0x3f16f1,_0x22b004._0x55ffdc,_0x22b004._0x18e93e),'rank':_0x1eae5b+_0x2cc4ca+0x1}});}_0x152d71+=_0x44c384['length'],_0x6327d9+=_0x44c384['length'];if(_0x44c384['length']<_0x5a6f9e)break;}return _0x49ece3[_0x5d65a5(_0x22b004._0x3d5bcb,_0x22b004._0x930510,_0x22b004._0x89a962,_0x22b004._0xab0ced)](0x0,_0x2f1a94);}function isGoogleCseEngine(_0x50e641){const _0x36e254={_0x399ad3:0x18c,_0x5192ef:0xc7},_0x4f0430={_0x1db009:0x1b8,_0x169eed:0xd9};function _0x44ec49(_0x2cc392,_0x2e9dd1,_0x4dfc64,_0x1e166c){return _0x23b1c2(_0x2cc392-_0x4f0430._0x1db009,_0x1e166c,_0x2e9dd1- -0x384,_0x1e166c-_0x4f0430._0x169eed);}return _0x44ec49(-_0x36e254._0x399ad3,-_0x36e254._0x5192ef,-0x6f,-0x174)in _0x50e641;}function isOllamaEngine(_0x45e4c9){return'apiKey'in _0x45e4c9;}function isTavilyEngine(_0xd032e5){const _0x2a453c={_0x28f1bc:0x690};function _0x3c2fe5(_0x58bb86,_0x174534,_0x401d7b,_0x37352f){return _0x57b9de(_0x58bb86-0x104,_0x37352f,_0x401d7b-0x1de,_0x37352f-0xbc);}return _0x3c2fe5(0x5dc,0x611,_0x2a453c._0x28f1bc,0x694)in _0xd032e5;}function createWebSearchTool(_0x12993a){const _0x36ceb2={_0x67c15b:0x654,_0x557b20:0x743,_0x332868:0x717,_0x2b2540:0x6d7,_0x4bdc46:0x7af,_0x142d9a:0x77b,_0x510392:0x112,_0x4f8b71:0x12d,_0xb1e135:0x715,_0x53201a:0x61,_0x3e4ae6:0x58,_0x1eb54f:0x16c,_0x28a401:0x18a,_0x260c16:0x8bc,_0x470ddd:0x629,_0x4dbbcb:0x157,_0x246c7d:0x22e,_0x3153db:0xd,_0x470a56:0x22f,_0x4e7c0c:0xf4,_0x39965a:0xa5,_0x24ab8a:0x4d,_0x1a1cb6:0xf6,_0xebc37:0x145,_0x256695:0xda,_0x2f8d2b:0x1a2,_0x4f9d50:0xb1,_0x37571b:0x15c,_0x5ceefb:0x119,_0x5a692c:0xaf,_0x150d42:0x206,_0x2ded2f:0x59,_0x4266bd:0x793,_0x1b59d2:0x875,_0x5bc2f6:0xd0,_0x494141:0x111,_0x5e5f6c:0x2a},_0x29d72c={_0x17d501:0x175,_0x57c809:0x103,_0x37faab:0xe4,_0xcbd030:0xb,_0x37a940:0x3b1,_0x44b345:0x186,_0x43c914:0x1e0,_0x1195f5:0x3f,_0x159d4d:0x93,_0x404bcd:0xcb,_0x183e4d:0x371,_0x47a051:0x21e,_0x526827:0x28,_0x267524:0x62,_0x211621:0x92,_0x8474e9:0x18d,_0x159606:0x2bc,_0x4290ce:0x4cc,_0x147d9c:0x34e,_0x5a7364:0x3d3,_0x4c8799:0x415,_0x433dae:0x5bc,_0x211e18:0xb2,_0x1e723d:0xaf,_0x557faa:0x109,_0x30cb9d:0x1cd,_0x32ad91:0x1b7,_0x40d513:0x386,_0x28dbeb:0x240,_0xc28553:0x189,_0xade75:0x1f2,_0x242e44:0x299,_0x45f87e:0x2b5,_0x4493f2:0x406,_0x5bccc1:0x467,_0x454431:0x8a,_0x1f5d14:0x1e9,_0x2faf14:0x9d,_0x5757f0:0x3cb,_0x22a0b0:0x3cf,_0x277ff0:0x534,_0x148219:0x4f6,_0x40b19c:0x609,_0x129868:0x416,_0x1af9ed:0x48a,_0x57d0ec:0x4cf,_0x2e9aec:0x358,_0x12817d:0x2a8,_0x4a8702:0x2fc,_0x1816e5:0x596,_0x46b5b1:0x435,_0x81b969:0x4e7,_0xf683e6:0x3e1,_0x19cac2:0x45d,_0x33075b:0x3f7,_0x3951b9:0x38c,_0xf2dd65:0xc4,_0x40c82e:0x2e4,_0x3ae904:0x119,_0x414e06:0x4f3,_0x2aef3f:0x474,_0x53b384:0x5e7,_0x43cac2:0x3b1,_0x4f4252:0x431,_0x5877b8:0x31c,_0x2d8ea5:0x2d0,_0x4a17ac:0x362,_0x329404:0x199,_0x568ab7:0x3db,_0x17016f:0x420,_0x153686:0x173,_0x4cce60:0x5d,_0x36061f:0x243,_0x3911e7:0x419,_0x4e60d1:0x402,_0x236954:0x500,_0x1959f6:0x53e,_0x560424:0x21b,_0x389629:0x2ce,_0x32d5ed:0x1db,_0x415cf9:0x24b,_0x2147a9:0x17f,_0x1f9c87:0x25f,_0x353d9f:0x522,_0x13e849:0x523,_0x2aec42:0x4cb,_0x199bf3:0x3b6,_0x460f29:0x52,_0x378f68:0x93},_0x55c7c9={_0x421548:0x678,_0x57df9f:0x321,_0x467570:0x3c0,_0x34c634:0x46f,_0x54ce0f:0x414,_0x106418:0x4ac,_0x10478b:0x4fe,_0x37bd31:0x294,_0x1aad42:0x26b,_0x270562:0x322,_0x3c098c:0x2c1},_0x170c42={_0x43e47c:0x429},_0x376412={_0x5e757b:0x6b};if(!_0x12993a[_0x19e07b(_0x36ceb2._0x67c15b,0x673,0x6a8,0x6c8)]||_0x12993a['engines'][_0x19e07b(_0x36ceb2._0x557b20,_0x36ceb2._0x332868,0x7a8,0x87b)]===0x0)throw new Error(_0x19e07b(_0x36ceb2._0x2b2540,_0x36ceb2._0x4bdc46,0x7d4,_0x36ceb2._0x142d9a));function _0x19e07b(_0x5ca470,_0x415a60,_0x43e4c2,_0x1733e7){return _0x23b1c2(_0x5ca470-0xd5,_0x1733e7,_0x43e4c2-0x2ff,_0x1733e7-_0x376412._0x5e757b);}function _0x41337a(_0x4980e2,_0x20d45e,_0x2c59b7,_0x53081e){return _0x57b9de(_0x4980e2-0xea,_0x2c59b7,_0x20d45e- -_0x170c42._0x43e47c,_0x53081e-0xbe);}const _0xbd4782=_0x12993a[_0x41337a(_0x36ceb2._0x510392,-0x16,_0x36ceb2._0x4f8b71,0x129)]??_0x19e07b(0x676,0x611,_0x36ceb2._0xb1e135,0x868);return defineTool({'name':_0xbd4782,'description':'Search\x20the\x20web\x20and\x20return\x20ranked\x20results.','inputSchema':{'type':_0x41337a(-0x63,_0x36ceb2._0x53201a,-0xa0,-_0x36ceb2._0x3e4ae6),'properties':{'description':{'type':_0x41337a(-0x30,-0xf6,-_0x36ceb2._0x1eb54f,-_0x36ceb2._0x28a401)},'query':{'type':'string'},'count':{'type':'number'},'offset':{'type':_0x19e07b(0x841,_0x36ceb2._0x260c16,0x76e,0x7c0)},'domains':{'type':_0x19e07b(0x5d1,0x69b,_0x36ceb2._0x470ddd,0x6da),'items':{'type':_0x41337a(-_0x36ceb2._0x4dbbcb,-0xf6,-_0x36ceb2._0x246c7d,_0x36ceb2._0x3153db)}},'recencyDays':{'type':_0x41337a(_0x36ceb2._0x470a56,_0x36ceb2._0x4e7c0c,_0x36ceb2._0x39965a,-_0x36ceb2._0x24ab8a)},'lang':{'type':_0x41337a(-0x1c7,-_0x36ceb2._0x1a1cb6,-_0x36ceb2._0xebc37,-_0x36ceb2._0x256695)},'region':{'type':_0x41337a(-_0x36ceb2._0x2f8d2b,-0xf6,-_0x36ceb2._0x4f9d50,-0x9d)},'safe':{'type':_0x41337a(_0x36ceb2._0x37571b,_0x36ceb2._0x5ceefb,_0x36ceb2._0x5a692c,_0x36ceb2._0x150d42)},'type':{'type':_0x41337a(-0x45,-_0x36ceb2._0x1a1cb6,_0x36ceb2._0x2ded2f,-0x1d4)},'hydrateMeta':{'type':_0x19e07b(0x89c,0x838,_0x36ceb2._0x4266bd,_0x36ceb2._0x1b59d2)}},'required':[_0x41337a(_0x36ceb2._0x5bc2f6,0x1e,-_0x36ceb2._0x494141,_0x36ceb2._0x5e5f6c)]},async *'execute'(_0x38d290,_0x3e6cb7){const _0x518ff8={_0x5bfb81:0x1e7},_0x3c92de={_0x4c80c5:0x10},_0x245408=_0x38d290['query']['trim']();function _0x396514(_0x3f48c7,_0x507ff1,_0x5f5c7f,_0xb98955){return _0x19e07b(_0x3f48c7-0xd3,_0x507ff1-0x39,_0x507ff1- -0x292,_0x5f5c7f);}if(!_0x245408)throw new ToolExecutionError(_0x396514(0x2c6,0x3c9,0x315,0x424));const _0x15112f={'query':_0x245408,'count':Math[_0x4bf507(_0x29d72c._0x17d501,_0x29d72c._0x57c809,_0x29d72c._0x37faab,0x121)](0x1,Math[_0x4bf507(0x106,0x63,0x161,_0x29d72c._0xcbd030)](0x32,Math[_0x396514(0x373,0x2ad,0x377,_0x29d72c._0x37a940)](_0x38d290[_0x4bf507(0x2c7,_0x29d72c._0x44b345,0x42,_0x29d72c._0x43c914)]??0xa))),'offset':Math['max'](0x0,Math[_0x4bf507(0x92,_0x29d72c._0x1195f5,-0x113,-_0x29d72c._0x159d4d)](_0x38d290['offset']??0x0)),'domains':_0x38d290[_0x4bf507(_0x29d72c._0x404bcd,0x143,0x1b4,0x279)]??[],'recencyDays':Math[_0x396514(0x3ba,_0x29d72c._0x183e4d,_0x29d72c._0x47a051,0x306)](0x0,Math[_0x4bf507(-0x28,_0x29d72c._0x1195f5,-_0x29d72c._0x526827,-0x14)](_0x38d290[_0x4bf507(0xca,_0x29d72c._0x267524,_0x29d72c._0x211621,_0x29d72c._0x8474e9)]??0x0)),'lang':_0x38d290[_0x396514(_0x29d72c._0x159606,0x3e1,_0x29d72c._0x4290ce,_0x29d72c._0x147d9c)]??'en','region':_0x38d290[_0x396514(_0x29d72c._0x5a7364,_0x29d72c._0x4c8799,0x32e,0x2d9)]??'','safe':_0x38d290['safe']??!![],'type':normalizeType(_0x38d290[_0x396514(0x425,0x4cf,0x5b2,_0x29d72c._0x433dae)]),'hydrateMeta':_0x38d290[_0x4bf507(0x11,0x93,_0x29d72c._0x211e18,-_0x29d72c._0x1e723d)]??![]};let _0xabe75a=[],_0x3cf1fa=_0x4bf507(_0x29d72c._0x557faa,0x22e,_0x29d72c._0x30cb9d,_0x29d72c._0x32ad91);for(const _0x443b80 of _0x12993a['engines']){try{if(isGoogleCseEngine(_0x443b80))_0xabe75a=await searchGoogleCse(_0x443b80,_0x15112f,_0x3e6cb7[_0x396514(_0x29d72c._0x40d513,0x3f7,0x456,0x32d)]),_0x3cf1fa=_0x4bf507(0x11a,0x95,0x55,-0x77);else{if(isOllamaEngine(_0x443b80)){const _0x5db316=await searchOllama(_0x443b80,_0x15112f,_0x3e6cb7[_0x4bf507(_0x29d72c._0x28dbeb,_0x29d72c._0xc28553,_0x29d72c._0xade75,0x1cd)]);_0xabe75a=_0x5db316[_0x4bf507(0x291,_0x29d72c._0x242e44,_0x29d72c._0x45f87e,0x22f)],_0x3cf1fa=_0x5db316[_0x396514(0x591,0x534,_0x29d72c._0x4493f2,_0x29d72c._0x5bccc1)];}else{if(isTavilyEngine(_0x443b80)){const _0x4a994c=await searchTavily(_0x443b80,_0x15112f,_0x3e6cb7[_0x4bf507(_0x29d72c._0x454431,0x189,_0x29d72c._0x1f5d14,_0x29d72c._0x2faf14)]);_0xabe75a=_0x4a994c[_0x396514(_0x29d72c._0x5757f0,0x507,0x5b6,_0x29d72c._0x22a0b0)],_0x3cf1fa=_0x4a994c[_0x396514(0x675,_0x29d72c._0x277ff0,_0x29d72c._0x148219,_0x29d72c._0x40b19c)];}}}if(_0xabe75a[_0x4bf507(0x314,0x2a8,0x2db,0x262)]>0x0)break;}catch(_0xd7bb4a){if(_0x443b80===_0x12993a[_0x396514(0x3ae,_0x29d72c._0x129868,_0x29d72c._0x1af9ed,_0x29d72c._0x57d0ec)][_0x12993a['engines'][_0x4bf507(_0x29d72c._0x2e9aec,_0x29d72c._0x12817d,0x2c6,_0x29d72c._0x4a8702)]-0x1])throw _0xd7bb4a;}}_0x15112f['hydrateMeta']&&_0xabe75a[_0x396514(0x427,0x516,_0x29d72c._0x1816e5,_0x29d72c._0x46b5b1)]>0x0&&(_0xabe75a=await hydrateResults(_0xabe75a,_0x15112f[_0x396514(_0x29d72c._0x81b969,_0x29d72c._0xf683e6,_0x29d72c._0x19cac2,0x324)],_0x3e6cb7[_0x396514(0x36c,_0x29d72c._0x33075b,_0x29d72c._0x3951b9,0x301)]));const _0x1751f6=new Set();_0xabe75a=_0xabe75a[_0x4bf507(_0x29d72c._0xf2dd65,0x1d9,_0x29d72c._0x40c82e,_0x29d72c._0x3ae904)](_0x27b747=>{const _0x210b6a={_0xb3158:0x200,_0x5f31e4:0x117},_0x8f679b=_0x27b747[_0x110d0b(0x621,0x55d,_0x55c7c9._0x421548,0x566)][_0x225e3b(_0x55c7c9._0x57df9f,0x2f3,_0x55c7c9._0x467570,_0x55c7c9._0x34c634)]();if(!_0x8f679b||_0x1751f6[_0x110d0b(_0x55c7c9._0x54ce0f,0x50c,_0x55c7c9._0x106418,_0x55c7c9._0x10478b)](_0x8f679b))return![];function _0x110d0b(_0x5d05ef,_0x3be13c,_0x5f2c2f,_0x4c57af){return _0x396514(_0x5d05ef-0xe7,_0x5f2c2f-0x13e,_0x4c57af,_0x4c57af-_0x3c92de._0x4c80c5);}_0x1751f6[_0x225e3b(_0x55c7c9._0x37bd31,_0x55c7c9._0x1aad42,_0x55c7c9._0x270562,_0x55c7c9._0x3c098c)](_0x8f679b);function _0x225e3b(_0x48066e,_0x23e888,_0x454b17,_0x8f7b2a){return _0x396514(_0x48066e-0x1a6,_0x48066e- -_0x210b6a._0xb3158,_0x23e888,_0x8f7b2a-_0x210b6a._0x5f31e4);}return!![];}),_0xabe75a=_0xabe75a[_0x396514(0x3a3,_0x29d72c._0x414e06,0x5fb,_0x29d72c._0x2aef3f)]((_0x9b5417,_0x618b79)=>({..._0x9b5417,'source':{..._0x9b5417[_0x4bf507(0x38a,0x284,0x270,0x2c6)],'rank':_0x618b79+0x1}}));const _0x4cc601={};if(_0x15112f['domains'][_0x396514(_0x29d72c._0x53b384,0x516,0x3cd,0x53e)]>0x0)_0x4cc601['domains']=_0x15112f[_0x396514(0x307,_0x29d72c._0x43cac2,_0x29d72c._0x4f4252,0x3a0)];if(_0x15112f[_0x396514(_0x29d72c._0x5877b8,_0x29d72c._0x2d8ea5,0x373,_0x29d72c._0x4a17ac)]>0x0)_0x4cc601[_0x396514(_0x29d72c._0x329404,_0x29d72c._0x2d8ea5,_0x29d72c._0x568ab7,0x17e)]=_0x15112f[_0x396514(0x304,0x2d0,_0x29d72c._0x17016f,0x329)];if(_0x15112f[_0x396514(0x35e,0x3e1,0x338,0x2ee)]!=='en')_0x4cc601[_0x4bf507(0x42,_0x29d72c._0x153686,_0x29d72c._0x4cce60,_0x29d72c._0x36061f)]=_0x15112f[_0x396514(_0x29d72c._0x3911e7,0x3e1,0x39a,0x2bb)];if(_0x15112f[_0x396514(0x477,0x415,_0x29d72c._0x4e60d1,0x30a)])_0x4cc601['region']=_0x15112f[_0x396514(0x2f3,0x415,_0x29d72c._0x236954,_0x29d72c._0x1959f6)];function _0x4bf507(_0x1318a9,_0x1b67b6,_0x341429,_0x468046){return _0x41337a(_0x1318a9-_0x518ff8._0x5bfb81,_0x1b67b6-0x17a,_0x1318a9,_0x468046-0x44);}return yield createToolOutput(formatResults(_0xabe75a),{'engine':_0x3cf1fa,'count':_0xabe75a[_0x4bf507(_0x29d72c._0x560424,_0x29d72c._0x12817d,_0x29d72c._0x389629,0x2b0)],'items':_0xabe75a,'query':_0x15112f[_0x4bf507(0x1e5,0x198,_0x29d72c._0x32d5ed,0x1da)],...Object[_0x4bf507(_0x29d72c._0x415cf9,_0x29d72c._0x2147a9,0x1a5,_0x29d72c._0x1f9c87)](_0x4cc601)['length']>0x0?{'appliedFilters':_0x4cc601}:{},'offset':_0x15112f[_0x396514(0x5df,_0x29d72c._0x353d9f,0x44e,0x52c)],'totalRequested':_0x15112f[_0x396514(_0x29d72c._0x13e849,0x3f4,_0x29d72c._0x2aec42,_0x29d72c._0x199bf3)],'hydrated':_0x15112f[_0x4bf507(-_0x29d72c._0x460f29,_0x29d72c._0x378f68,0xdf,0x1b0)]}),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,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|
|
1
|
+
(function(_0x514e06,_0x52f6db){const _0x306596={_0xcb70ff:0x366,_0x11c127:0x270,_0x319ab8:0x27f,_0x189eda:0x39d,_0x1e7057:0x4d,_0x1d9c66:0x8f,_0x5d7200:0x41,_0x364b3:0x221,_0x455c6d:0x228,_0x23f115:0x89,_0xe7af99:0x7b,_0x122e0f:0xb9,_0x2db421:0x212,_0x3bb3be:0x201,_0x256fb8:0x29a,_0x2c24e3:0x2e,_0x128441:0x2c,_0xfcfd5a:0x276,_0x51ea62:0x2a4,_0x1f04e2:0x1c5,_0x1223c9:0xce,_0x474430:0x33,_0x43c008:0x16},_0x225f01={_0x5ecf1a:0x15c};function _0x25ca45(_0x1be65e,_0x205e78,_0x407821,_0x35f7c5){return _0x4629(_0x205e78- -_0x225f01._0x5ecf1a,_0x35f7c5);}const _0x21899a=_0x514e06();function _0x388134(_0x3e78c9,_0x5f5aa5,_0x43c249,_0x303e89){return _0x4629(_0x5f5aa5- -0x255,_0x303e89);}while(!![]){try{const _0x285259=-parseInt(_0x25ca45(_0x306596._0xcb70ff,_0x306596._0x11c127,_0x306596._0x319ab8,_0x306596._0x189eda))/0x1+-parseInt(_0x25ca45(-_0x306596._0x1e7057,_0x306596._0x1d9c66,0xcf,-0x6c))/0x2+parseInt(_0x388134(0xc7,-_0x306596._0x5d7200,0xd0,-0x5a))/0x3+-parseInt(_0x388134(_0x306596._0x364b3,0x14c,_0x306596._0x455c6d,_0x306596._0x23f115))/0x4*(-parseInt(_0x388134(-_0x306596._0xe7af99,-0x74,-0x16d,_0x306596._0x122e0f))/0x5)+parseInt(_0x25ca45(0x2c0,0x2d9,_0x306596._0x2db421,0x433))/0x6*(-parseInt(_0x25ca45(_0x306596._0x3bb3be,0x272,_0x306596._0x256fb8,0x184))/0x7)+parseInt(_0x388134(-_0x306596._0x2c24e3,-0x20,0x4b,-_0x306596._0x128441))/0x8+-parseInt(_0x25ca45(_0x306596._0xfcfd5a,0x253,_0x306596._0x51ea62,_0x306596._0x1f04e2))/0x9*(parseInt(_0x388134(_0x306596._0x1223c9,-_0x306596._0x474430,-_0x306596._0x43c008,-0x127))/0xa);if(_0x285259===_0x52f6db)break;else _0x21899a['push'](_0x21899a['shift']());}catch(_0x3b054b){_0x21899a['push'](_0x21899a['shift']());}}}(_0x3a2b,0xa984e));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.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 _0x4eace7 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x211934(0x341,0x499,0x3d3,0x204),'.tsx':_0x4820c3(0x6fd,0x7e1,0x84f,0x715),'.js':_0x4820c3(0x4ff,0x61a,0x59a,0x642),'.jsx':_0x4820c3(0x66c,0x5ce,0x6e2,0x65d),'.mjs':_0x211934(0x3f6,0x3e8,0x437,0x488),'.cjs':'javascript','.mts':_0x4820c3(0x5e0,0x4df,0x531,0x58d),'.cts':_0x211934(0x341,0x3de,0x3bd,0x419),'.json':_0x4820c3(0x5bd,0x4ca,0x5b5,0x602),'.jsonc':_0x211934(0x4af,0x3fe,0x41b,0x4d8)};function getLanguageId(_0x1beb6a){const _0x1d0a0f={_0x10bb92:0x81,_0x1a157a:0x6a},_0x3b7822={_0x57a10d:0x4bf,_0x27e527:0x169};function _0x4c0244(_0x1f5beb,_0x11f427,_0x415439,_0x14949e){return _0x211934(_0x11f427- -_0x3b7822._0x57a10d,_0x11f427-0x40,_0x14949e,_0x14949e-_0x3b7822._0x27e527);}return EXTENSION_TO_LANGUAGE[_0x4eace7['extname'](_0x1beb6a)[_0x4c0244(_0x1d0a0f._0x10bb92,_0x1d0a0f._0x1a157a,-0x88,-0x5b)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x662931){const _0xf1ef80={_0x410618:0x195,_0x466a40:0x39};function _0x404708(_0x1f89ab,_0x47bfc2,_0x51ea30,_0x31a2d1){return _0x211934(_0x51ea30- -0x1e5,_0x47bfc2-_0xf1ef80._0x410618,_0x31a2d1,_0x31a2d1-_0xf1ef80._0x466a40);}return pathToFileURL(_0x662931)[_0x404708(0x2bc,0x3e2,0x2b1,0x3ec)]();}function textDocumentPosition(_0x20eea4){const _0x29f814={_0x5637f1:0x2bc,_0x2e2c7e:0x4f5,_0x4dd4c7:0x374,_0x3705ba:0x3a9,_0x88179:0x2a8},_0x1b1bcb={_0x344fb8:0x88,_0x56f94f:0x102},_0x37c327={_0x3644f7:0x10d,_0x21f260:0x148,_0x3c2c79:0x3b4};function _0x4e41be(_0x57bbc9,_0x1a38a9,_0x22d57c,_0x44b5ff){return _0x4820c3(_0x57bbc9-_0x37c327._0x3644f7,_0x1a38a9-_0x37c327._0x21f260,_0x57bbc9,_0x22d57c- -_0x37c327._0x3c2c79);}function _0x57e4c2(_0x4bd763,_0x50e14b,_0x1e556e,_0x387097){return _0x211934(_0x387097-_0x1b1bcb._0x344fb8,_0x50e14b-0xd7,_0x50e14b,_0x387097-_0x1b1bcb._0x56f94f);}return{'textDocument':{'uri':uriForPath(_0x20eea4[_0x4e41be(0x218,0x31a,_0x29f814._0x5637f1,0x164)])},'position':{'line':_0x20eea4[_0x57e4c2(0x6f8,_0x29f814._0x2e2c7e,0x713,0x5dc)],'character':_0x20eea4[_0x4e41be(0x2f6,_0x29f814._0x4dd4c7,_0x29f814._0x3705ba,_0x29f814._0x88179)]}};}function normalizeLocations(_0x599f0b){const _0x55b16a={_0x4315f6:0x721,_0x31281c:0x694};if(!_0x599f0b)return[];function _0x4ebd27(_0x1cb1e2,_0x4ff23b,_0x458540,_0x30e945){return _0x211934(_0x30e945-0x24c,_0x4ff23b-0x64,_0x458540,_0x30e945-0x6e);}return Array[_0x4ebd27(0x79e,0x76e,_0x55b16a._0x4315f6,_0x55b16a._0x31281c)](_0x599f0b)?_0x599f0b:[_0x599f0b];}async function createLspClient(_0x4a0e3b){const _0x18bc27={_0x3c2a6f:0x5c7,_0x3d7cb4:0x67f,_0x187045:0xcc,_0x1ea673:0x14c,_0x478aa0:0x58,_0x1528bb:0x31,_0x589406:0xf5,_0x548f35:0x1dd,_0x53f367:0xc6,_0x2c897d:0x1a2,_0x5daf89:0x220,_0x1d47df:0xa7,_0x26684f:0x12,_0x4b7431:0x4ea,_0x543ee6:0x4a0,_0x4d3016:0x5ee,_0x50c9e6:0x64f,_0x50b514:0x633,_0x1dc087:0x64e,_0x27a990:0x6ab,_0x3e67cd:0x4f8,_0xaeac60:0x7f2,_0x13a42e:0x6c0,_0x36f087:0x6d2,_0x10f7e7:0x5d3,_0x16af8e:0x4c9,_0x3ad80f:0x69f,_0x10a3f0:0x60a},_0x401150={_0x7e71fb:0x2b},_0x5d200e={_0x3e31d4:0x55a,_0x4c1136:0x480,_0x250301:0x2c1,_0x2be181:0x326,_0x32a167:0x60b,_0x50211f:0x341,_0x462ff7:0x3e4,_0x49e1aa:0x3e2,_0x1b8a0e:0x4e7,_0x2d61fc:0x56c},_0x5ef37b={_0x249fd1:0x13e,_0x35ac54:0x215},_0x44c576={_0x369c7c:0x30a},_0x421833={_0x5515f1:0x543},_0x1649cc={_0x228948:0x43,_0x3a51d0:0xbe},_0x4b2d3a={_0x3b4f4b:0x11e,_0x390e3f:0x66,_0x4a8b99:0xb2,_0x1da680:0xae,_0x488259:0x1f7},_0x5775fc={_0x57ef76:0x1ec,_0xb528d6:0x118},_0x57fc04={_0x36ded2:0x581},_0x27b6bc={_0x54a632:0x315,_0x550d61:0x364},_0x2f38d5={_0x5a635c:0x4c9},_0x490cf4={_0x13cc89:0x301,_0x3b05a2:0x3a6,_0x44ca2d:0x1ab},_0x452640={_0x421461:0x1b4,_0x530d84:0x545},_0x4c2efb={_0x193147:0x6e},_0x4d5b2d={_0x468081:0x43c,_0x32e681:0x4e6},_0x4c2c7b={_0x423104:0x6,_0x54e1b9:0xd5},_0x2360d9={_0x26e222:0x3d6,_0x440403:0x3ff,_0x30e697:0x311},_0x1eb68f={_0x332f58:0x8d},_0x35ba69={_0x5f123f:0x229,_0x259d98:0x270,_0x495fe7:0x189},_0x287234={_0x3dc733:0xea,_0x17f583:0x29,_0x2c2e3d:0x157},_0x413a00={_0x6b32b8:0x139,_0x51bdf0:0x1b4},_0x57d83f={_0x296978:0x282,_0x4cae39:0x1c4,_0x3f097f:0x93,_0x5d383c:0xb8,_0x4fcb76:0x48,_0x4cc3de:0x156},_0x2e62aa={_0x232683:0x22d,_0x38af76:0x292,_0x22f514:0x440,_0x31fb27:0x49b,_0x52d05a:0x366,_0x3fdd4c:0x64,_0x5c35fb:0xff,_0x3fa566:0x389,_0x392fae:0xfe},_0x374d40={_0x2b8e5b:0xc,_0x1ae141:0x19e,_0x21dfc9:0x1c9},_0x2f1b18={_0x220155:0x1a4,_0x59023b:0x7b},_0x31c35d=_0x4a0e3b['handle'][_0x3d439f(0x716,_0x18bc27._0x3c2a6f,0x6e3,_0x18bc27._0x3d7cb4)][_0x3f6af3(-0xef,_0x18bc27._0x187045,_0x18bc27._0x1ea673,_0x18bc27._0x478aa0)],_0x36c067=_0x4a0e3b['handle']['process'][_0x3f6af3(-0xce,-_0x18bc27._0x1528bb,_0x18bc27._0x589406,0x1)];if(!_0x31c35d||!_0x36c067)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x52eff2=createMessageConnection(new StreamMessageReader(_0x31c35d),new StreamMessageWriter(_0x36c067)),_0x226a79=new Map(),_0x3fd8ca=new Map();function _0x3d439f(_0x3ae4d4,_0x591a33,_0x3e6005,_0x29b873){return _0x211934(_0x29b873-0x280,_0x591a33-_0x2f1b18._0x220155,_0x3ae4d4,_0x29b873-_0x2f1b18._0x59023b);}let _0xfbfd5e=![];_0x52eff2[_0x3f6af3(_0x18bc27._0x548f35,_0x18bc27._0x53f367,0x86,_0x18bc27._0x2c897d)]('textDocument/publishDiagnostics',_0x2b9bed=>{const _0x302e9a={_0x1dd993:0x14e,_0x14ffaf:0x1a2};_0x226a79['set'](_0x2b9bed[_0x3528c6(_0x2e62aa._0x232683,_0x2e62aa._0x38af76,_0x2e62aa._0x22f514,0x314)],_0x2b9bed[_0x3528c6(_0x2e62aa._0x31fb27,0x4dc,_0x2e62aa._0x52d05a,0x3d2)]);const _0x20a6fa=_0x3fd8ca[_0x1ffd5e(-_0x2e62aa._0x3fdd4c,-0x6a,0xf0,-_0x2e62aa._0x5c35fb)](_0x2b9bed[_0x3528c6(0x244,0x1f6,_0x2e62aa._0x3fa566,0x314)]);if(!_0x20a6fa)return;function _0x1ffd5e(_0x17ba0a,_0x4c5a12,_0x40ecd1,_0x3784f9){return _0x3f6af3(_0x17ba0a-_0x302e9a._0x1dd993,_0x40ecd1,_0x40ecd1-_0x302e9a._0x14ffaf,_0x17ba0a- -0x193);}_0x3fd8ca[_0x1ffd5e(0x27,0x156,-0x3a,_0x2e62aa._0x392fae)](_0x2b9bed['uri']);function _0x3528c6(_0x37830f,_0x17205c,_0x25f522,_0x24514e){return _0x3f6af3(_0x37830f-_0x374d40._0x2b8e5b,_0x17205c,_0x25f522-_0x374d40._0x1ae141,_0x24514e-_0x374d40._0x21dfc9);}for(const _0x207d10 of _0x20a6fa)_0x207d10();}),_0x52eff2['listen']();const _0x212524=await _0x52eff2[_0x3f6af3(0x11a,0x10d,0x27b,_0x18bc27._0x5daf89)]('initialize',{'processId':process['pid'],'rootUri':uriForPath(_0x4a0e3b[_0x3f6af3(_0x18bc27._0x1d47df,-0xe0,-0xac,_0x18bc27._0x26684f)]),'workspaceFolders':[{'uri':uriForPath(_0x4a0e3b[_0x3d439f(0x6ff,_0x18bc27._0x4b7431,0x5e3,0x638)]),'name':_0x4a0e3b[_0x3d439f(0x664,0x500,_0x18bc27._0x543ee6,_0x18bc27._0x4d3016)]['id']}],'initializationOptions':_0x4a0e3b[_0x3d439f(0x5ae,0x554,0x62a,0x66e)][_0x3d439f(_0x18bc27._0x50c9e6,_0x18bc27._0x50b514,0x650,_0x18bc27._0x1dc087)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x3d439f(0x73f,_0x18bc27._0x27a990,_0x18bc27._0x3e67cd,0x5ea)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x52eff2['sendNotification'](_0x3d439f(_0x18bc27._0xaeac60,0x81e,_0x18bc27._0x13a42e,_0x18bc27._0x36f087),{});const _0x20dc2e={'serverId':_0x4a0e3b[_0x3d439f(_0x18bc27._0x10f7e7,0x5eb,_0x18bc27._0x16af8e,0x5ee)]['id'],'root':_0x4a0e3b['root'],'connection':_0x52eff2,'diagnostics':_0x226a79,'capabilities':_0x212524[_0x3d439f(_0x18bc27._0x3ad80f,0x58a,0x607,_0x18bc27._0x10a3f0)]??{},'notify':{async 'open'({path:_0x6b0311}){const _0x18d004={_0x40b27f:0x1c};function _0x2002c5(_0x4d2bdf,_0x4daa8c,_0x24a3e9,_0x4313fe){return _0x3d439f(_0x4313fe,_0x4daa8c-_0x18d004._0x40b27f,_0x24a3e9-0x1d5,_0x24a3e9- -0x5a2);}function _0x31420a(_0x4fb346,_0x2dc3c9,_0x17f7e7,_0xfb60ae){return _0x3d439f(_0x17f7e7,_0x2dc3c9-0x8b,_0x17f7e7-0x18f,_0x2dc3c9- -0x684);}const _0x5092da=await readFile(_0x6b0311,_0x2002c5(0x120,_0x57d83f._0x296978,_0x57d83f._0x4cae39,_0x57d83f._0x3f097f));_0x52eff2['sendNotification']('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x6b0311),'languageId':getLanguageId(_0x6b0311)??_0x2002c5(-0x31,_0x57d83f._0x5d383c,_0x57d83f._0x4fcb76,_0x57d83f._0x4cc3de),'version':0x1,'text':_0x5092da}});},async 'change'({path:_0x3a6571,version:_0x4608da}){const _0x5d6175=await readFile(_0x3a6571,'utf8');function _0x196d1(_0x4aba10,_0x12caa7,_0x7e1392,_0x5c9153){return _0x3d439f(_0x5c9153,_0x12caa7-_0x413a00._0x6b32b8,_0x7e1392-_0x413a00._0x51bdf0,_0x7e1392- -0x780);}_0x52eff2['sendNotification'](_0x196d1(_0x287234._0x3dc733,_0x287234._0x17f583,-0x10,-_0x287234._0x2c2e3d),{'textDocument':{'uri':uriForPath(_0x3a6571),'version':_0x4608da},'contentChanges':[{'text':_0x5d6175}]});},async 'close'({path:_0x4024e8}){const _0x54bbe0={_0x1efe34:0x15e,_0x534120:0x52,_0xd1b074:0x135};function _0x5d57ad(_0x4f25a0,_0x506051,_0x123bf1,_0x1a95bc){return _0x3f6af3(_0x4f25a0-_0x54bbe0._0x1efe34,_0x123bf1,_0x123bf1-_0x54bbe0._0x534120,_0x4f25a0-_0x54bbe0._0xd1b074);}_0x52eff2['sendNotification'](_0x5d57ad(_0x35ba69._0x5f123f,_0x35ba69._0x259d98,0x224,_0x35ba69._0x495fe7),{'textDocument':{'uri':uriForPath(_0x4024e8)}});}},'request':{async 'definition'(_0x3581f2){function _0x508f54(_0x5b7199,_0xbeb9c8,_0x32051b,_0x2a97fe){return _0x3f6af3(_0x5b7199-_0x1eb68f._0x332f58,_0x5b7199,_0x32051b-0x4e,_0x2a97fe-0xf1);}return normalizeLocations(await _0x52eff2[_0x508f54(0x381,_0x2360d9._0x26e222,_0x2360d9._0x440403,_0x2360d9._0x30e697)]('textDocument/definition',textDocumentPosition(_0x3581f2)));},async 'references'(_0x503c40){const _0x424797={_0x1ba352:0x1ad};function _0x258e70(_0x537950,_0x133d3a,_0x3d7241,_0x20bfb3){return _0x3f6af3(_0x537950-0x56,_0x537950,_0x3d7241-0x53,_0x133d3a- -0x15);}function _0x3df115(_0x100a34,_0x8dec00,_0x26b730,_0x264909){return _0x3d439f(_0x8dec00,_0x8dec00-0x1be,_0x26b730-0x22,_0x26b730- -_0x424797._0x1ba352);}return normalizeLocations(await _0x52eff2[_0x3df115(0x7f1,0x67c,0x699,0x7b8)](_0x258e70(_0x4c2c7b._0x423104,_0x4c2c7b._0x54e1b9,0x1cb,0xe8),{...textDocumentPosition(_0x503c40),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x5328bd){const _0x816749={_0x3873de:0x4a};function _0x4a8457(_0x4f4dce,_0x9b4562,_0x33397a,_0x590fea){return _0x3f6af3(_0x4f4dce-0x174,_0x33397a,_0x33397a-_0x816749._0x3873de,_0x9b4562-0x21c);}return await _0x52eff2[_0x4a8457(0x39f,_0x4d5b2d._0x468081,0x594,_0x4d5b2d._0x32e681)]('textDocument/hover',textDocumentPosition(_0x5328bd))??null;},async 'documentSymbol'(_0x5009d9){function _0x222edd(_0x17b785,_0x129b97,_0x2b7c54,_0x39b534){return _0x3f6af3(_0x17b785-_0x4c2efb._0x193147,_0x17b785,_0x2b7c54-0x84,_0x39b534-0xc0);}function _0x1aeccd(_0x1dd81c,_0x52d842,_0x4c1bd1,_0x359037){return _0x3d439f(_0x359037,_0x52d842-_0x452640._0x421461,_0x4c1bd1-0x1ed,_0x52d842- -_0x452640._0x530d84);}return await _0x52eff2[_0x1aeccd(0x2fe,_0x490cf4._0x13cc89,_0x490cf4._0x3b05a2,0x279)](_0x1aeccd(0x13a,_0x490cf4._0x44ca2d,0x297,0x2bc),{'textDocument':{'uri':uriForPath(_0x5009d9)}})??[];},async 'workspaceSymbol'(_0x381dbc){const _0x5c74f1={_0x38b8a6:0x4c0};function _0x4348bb(_0x488548,_0xaf9eac,_0x244855,_0x37f4bd){return _0x3d439f(_0x37f4bd,_0xaf9eac-0xc8,_0x244855-0xd3,_0x244855- -_0x5c74f1._0x38b8a6);}function _0xa9c298(_0x57f726,_0x2bab4f,_0x5232c3,_0x5deab5){return _0x3d439f(_0x5deab5,_0x2bab4f-0xb8,_0x5232c3-0x1ab,_0x57f726- -0x506);}return await _0x52eff2[_0x4348bb(0x249,0x29c,0x386,_0x2f38d5._0x5a635c)](_0xa9c298(0x135,0x250,0x138,0x283),{'query':_0x381dbc})??[];},async 'implementation'(_0x8a65c3){const _0x29f19e={_0x3bd517:0x98,_0xac1574:0x4e2};function _0x56242c(_0x4ada40,_0x54e67a,_0x38d318,_0x1a7e02){return _0x3d439f(_0x38d318,_0x54e67a-_0x29f19e._0x3bd517,_0x38d318-0x1eb,_0x1a7e02- -_0x29f19e._0xac1574);}return normalizeLocations(await _0x52eff2[_0x56242c(_0x27b6bc._0x54a632,0x4b0,0x386,_0x27b6bc._0x550d61)]('textDocument/implementation',textDocumentPosition(_0x8a65c3)));},async 'prepareCallHierarchy'(_0x2c073){const _0x5adcf8={_0x45c975:0x1c,_0x58a8dd:0x360};function _0x4c2bca(_0xad8d67,_0x57a3c4,_0xc8d353,_0x1d7de0){return _0x3d439f(_0x1d7de0,_0x57a3c4-0x1bd,_0xc8d353-_0x5adcf8._0x45c975,_0x57a3c4- -_0x5adcf8._0x58a8dd);}return await _0x52eff2[_0x4c2bca(0x5cc,0x4e6,0x39c,_0x57fc04._0x36ded2)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x2c073))??[];},async 'incomingCalls'(_0x720175){return await _0x52eff2['sendRequest']('callHierarchy/incomingCalls',{'item':_0x720175})??[];},async 'outgoingCalls'(_0x5e1c51){const _0x32785b={_0x1388d5:0x1e4,_0x41abf2:0x2ed};function _0x3c6aa7(_0x4b62a7,_0x5d9434,_0x55fb02,_0x3e1faa){return _0x3f6af3(_0x4b62a7-0x166,_0x3e1faa,_0x55fb02-_0x32785b._0x1388d5,_0x4b62a7-_0x32785b._0x41abf2);}function _0x2a3108(_0x41f4a8,_0x3ff1ce,_0x18d3d2,_0x401021){return _0x3f6af3(_0x41f4a8-_0x5775fc._0x57ef76,_0x401021,_0x18d3d2-_0x5775fc._0xb528d6,_0x18d3d2- -0x101);}return await _0x52eff2[_0x2a3108(_0x4b2d3a._0x3b4f4b,0xde,0x11f,0x15e)](_0x2a3108(-_0x4b2d3a._0x390e3f,-_0x4b2d3a._0x4a8b99,-_0x4b2d3a._0x1da680,-_0x4b2d3a._0x488259),{'item':_0x5e1c51})??[];}},'waitForDiagnostics'({path:_0x102aa6,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x4e66e5={_0x5097a1:0x138,_0x1a9ef8:0xf6,_0x3a1405:0x66,_0x3472da:0x48b,_0x58eb40:0x403},_0x3f0b7a=uriForPath(_0x102aa6);function _0x192e10(_0x215c0f,_0x597acf,_0x5d1f59,_0x253cf8){return _0x3d439f(_0x215c0f,_0x597acf-_0x1649cc._0x228948,_0x5d1f59-_0x1649cc._0x3a51d0,_0x597acf- -0x129);}if(_0x226a79[_0x1fb39f(0x744,0x6b9,0x51e,0x614)](_0x3f0b7a))return Promise[_0x192e10(0x5f3,0x5c5,0x639,0x4bd)]();function _0x1fb39f(_0x5f359c,_0x4df4c0,_0x4b1b0f,_0x100c69){return _0x3f6af3(_0x5f359c-0x10,_0x4df4c0,_0x4b1b0f-0x1cc,_0x100c69-_0x421833._0x5515f1);}return new Promise(_0x47cec9=>{const _0x162997={_0x2c7ad7:0xc1,_0x4f293e:0x108};function _0x3f7a06(_0xcb6f3,_0x2f50da,_0x223acd,_0x2043c8){return _0x192e10(_0xcb6f3,_0x2f50da- -0x3e9,_0x223acd-_0x162997._0x2c7ad7,_0x2043c8-_0x162997._0x4f293e);}const _0x530de6=setTimeout(()=>{const _0x12d62b={_0x3f13de:0x82};function _0x561c15(_0x12837d,_0x41d288,_0x1420f7,_0x570e94){return _0x4629(_0x12837d- -0x253,_0x570e94);}const _0x50ba3b=_0x3fd8ca[_0x561c15(0x12b,_0x4e66e5._0x5097a1,_0x4e66e5._0x1a9ef8,_0x4e66e5._0x3a1405)](_0x3f0b7a);function _0x2e285e(_0x41c9b0,_0x3b9ee8,_0x39365c,_0x5a6aeb){return _0x4629(_0x41c9b0-_0x12d62b._0x3f13de,_0x3b9ee8);}_0x50ba3b?.[_0x2e285e(_0x4e66e5._0x3472da,0x43e,0x489,_0x4e66e5._0x58eb40)](_0x24bd25);if(_0x50ba3b?.['size']===0x0)_0x3fd8ca['delete'](_0x3f0b7a);_0x47cec9();},timeoutMs),_0x24bd25=()=>{clearTimeout(_0x530de6),_0x47cec9();},_0x352dd5=_0x3fd8ca['get'](_0x3f0b7a)??new Set();_0x352dd5[_0x3f7a06(0x3ff,0x307,0x1aa,_0x44c576._0x369c7c)](_0x24bd25),_0x3fd8ca['set'](_0x3f0b7a,_0x352dd5);});},async 'shutdown'(){if(_0xfbfd5e)return;function _0x506891(_0x3f060f,_0xb43566,_0x5ef1bf,_0x2a5584){return _0x3d439f(_0x5ef1bf,_0xb43566-0x1da,_0x5ef1bf-0xd9,_0xb43566- -0x2ec);}function _0x2becac(_0x404399,_0x3b9fae,_0x4b2219,_0x38edec){return _0x3d439f(_0x4b2219,_0x3b9fae-0x1d8,_0x4b2219-_0x5ef37b._0x249fd1,_0x38edec- -_0x5ef37b._0x35ac54);}_0xfbfd5e=!![];try{await _0x52eff2[_0x506891(0x582,_0x5d200e._0x3e31d4,0x41c,0x5bc)]('shutdown',null),_0x52eff2[_0x506891(0x47c,0x380,_0x5d200e._0x4c1136,0x338)](_0x506891(_0x5d200e._0x250301,0x305,_0x5d200e._0x2be181,0x1b7));}catch{}finally{_0x52eff2[_0x2becac(_0x5d200e._0x32a167,0x3ab,0x457,0x4eb)](),_0x4a0e3b[_0x506891(_0x5d200e._0x50211f,0x382,_0x5d200e._0x462ff7,0x375)][_0x506891(0x2a0,0x393,_0x5d200e._0x49e1aa,_0x5d200e._0x1b8a0e)][_0x2becac(0x467,0x474,0x6a0,_0x5d200e._0x2d61fc)]();}}};function _0x3f6af3(_0x1eb968,_0x30f01b,_0x2b46d3,_0x4671c5){return _0x211934(_0x4671c5- -0x3a6,_0x30f01b-0x180,_0x30f01b,_0x4671c5-_0x401150._0x7e71fb);}return _0x20dc2e;}import{spawn as _0xba2f42}from'child_process';import{access as _0x19c94f}from'fs/promises';import _0x51ddee from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x25553a from'os';import _0x39d433 from'path';import _0x4417e0 from'which';var installPromises=new Map();function sanitizePackageName(_0x85793){const _0x5e2d18={_0x156584:0x16,_0x402b26:0x2fd,_0x50958a:0x455},_0x5dd15b={_0x447e67:0x2d5},_0x349943={_0x43f6e2:0x459};function _0x176bd6(_0x1202f9,_0x5a1de1,_0x308630,_0x1c0ab8){return _0x211934(_0x5a1de1- -_0x349943._0x43f6e2,_0x5a1de1-0x191,_0x1202f9,_0x1c0ab8-0x13d);}function _0xad85cb(_0x56c6f3,_0xf89c13,_0x3717e7,_0x122050){return _0x4820c3(_0x56c6f3-0x1bc,_0xf89c13-0x180,_0x122050,_0x3717e7- -_0x5dd15b._0x447e67);}return _0x85793[_0x176bd6(-0x148,-0x24,-0x2,_0x5e2d18._0x156584)](/^@/,'')[_0xad85cb(0x46e,_0x5e2d18._0x402b26,0x3ac,_0x5e2d18._0x50958a)](/[/]/g,'__');}function binaryNameForPlatform(_0x376122){const _0x366564={_0x4c10fb:0x55e,_0x7ce2d0:0x3b6,_0x80128f:0x388,_0x51d202:0x3f0},_0x256914={_0x3eccec:0x1ae},_0x284368={_0x317f50:0x1bc,_0x1fbe45:0x1de};function _0x59d0e3(_0x13ff41,_0x1045a5,_0x4d6b50,_0x1cf924){return _0x211934(_0x1045a5- -0x10e,_0x1045a5-_0x284368._0x317f50,_0x1cf924,_0x1cf924-_0x284368._0x1fbe45);}function _0x159ec8(_0x196e0e,_0x19b2e6,_0x2020dc,_0x11df09){return _0x211934(_0x2020dc-0x21,_0x19b2e6-0x19e,_0x196e0e,_0x11df09-_0x256914._0x3eccec);}return process[_0x59d0e3(0x317,0x336,0x2af,0x464)]===_0x159ec8(0x467,_0x366564._0x4c10fb,0x57e,0x4fa)?_0x376122+_0x59d0e3(0x433,_0x366564._0x7ce2d0,_0x366564._0x80128f,_0x366564._0x51d202):_0x376122;}async function exists(_0x5e5de7){try{return await access(_0x5e5de7),!![];}catch{return![];}}function runNpmInstall(_0x5bfc7f,_0x3c4326,_0x1ae6c9){const _0x2aeecd={_0x4a232a:0x2e5,_0x4f5430:0x2fa,_0x3620bd:0x326,_0xcd6b20:0x381,_0xc04860:0x3b7,_0x4e9233:0x4fd,_0x529c8e:0x18e,_0x59a458:0x230,_0x343afb:0x11c,_0x44436b:0x1d7,_0x431387:0x2d2,_0x43688c:0x52e},_0x59efde={_0x31f32c:0x2a7};return new Promise(_0x12d03a=>{const _0x132236=spawn(_0xbf935(_0x2aeecd._0x4a232a,0x1aa,0xc3,0x1dd),[_0xbf935(_0x2aeecd._0x4f5430,_0x2aeecd._0x3620bd,0x2f9,_0x2aeecd._0xcd6b20),_0x202510(0x3b0,0x573,_0x2aeecd._0xc04860,_0x2aeecd._0x4e9233),_0x5bfc7f,_0x3c4326],{'env':_0x1ae6c9,'stdio':_0xbf935(_0x2aeecd._0x529c8e,_0x2aeecd._0x59a458,0xaf,_0x2aeecd._0x343afb)});function _0x202510(_0x9b0667,_0x1b42fd,_0x284a7a,_0x5c823b){return _0x4629(_0x5c823b-_0x59efde._0x31f32c,_0x284a7a);}function _0xbf935(_0x4cfcd9,_0xe1b0eb,_0x4fabb8,_0x5d2002){return _0x4629(_0x5d2002- -0xad,_0x4fabb8);}_0x132236['on'](_0xbf935(0x2cb,_0x2aeecd._0x44436b,0x238,_0x2aeecd._0x431387),()=>_0x12d03a(![])),_0x132236['on'](_0x202510(_0x2aeecd._0x43688c,0x4de,0x472,0x5c3),_0x85d609=>_0x12d03a(_0x85d609===0x0));});}function shouldDisableLspDownload(_0x11b023=process[_0x211934(0x43f,0x57d,0x55a,0x452)]){const _0x549dda={_0x1f386f:0x43e,_0x5a0861:0x5aa,_0x55e49d:0x1bb,_0x2adc03:0x154,_0x15f8d8:0x261},_0x390d0c={_0x5c8cb6:0x67},_0x203636=_0x11b023[_0x5b9dce(0x611,_0x549dda._0x1f386f,_0x549dda._0x5a0861,0x4c9)]?.[_0x423025(_0x549dda._0x55e49d,0x342,_0x549dda._0x2adc03,0x291)]();function _0x5b9dce(_0x5d787b,_0x3bd867,_0x23dd46,_0x4e2a7a){return _0x211934(_0x4e2a7a- -0x93,_0x3bd867-0x135,_0x5d787b,_0x4e2a7a-_0x390d0c._0x5c8cb6);}function _0x423025(_0x1f6f87,_0x49a139,_0x1834dd,_0x17467b){return _0x211934(_0x17467b- -0x298,_0x49a139-0x13,_0x49a139,_0x17467b-0x130);}return _0x203636===_0x5b9dce(0x406,0x302,_0x549dda._0x15f8d8,0x34f)||_0x203636==='1'||_0x203636==='yes'||_0x203636==='on';}function getLspPackageDir(_0x576cd0){const _0x1114c6={_0x567a62:0x83,_0x113f72:0x25,_0xf532d9:0x40,_0xad0b2e:0x95,_0x2a6fc6:0x8b,_0x562ca7:0xd3,_0x4e6a94:0x3f,_0x2abe3e:0xbd,_0x2a2d92:0xac,_0x25e1fb:0x1d9},_0x31a698={_0x2cae63:0xac},_0x39fddf={_0x1f6576:0x1b5};function _0x1c5df3(_0x493071,_0x26fce2,_0x2dc73c,_0x441361){return _0x211934(_0x441361- -0x371,_0x26fce2-_0x39fddf._0x1f6576,_0x493071,_0x441361-0x30);}function _0x243b4d(_0x46c542,_0x44023f,_0x304691,_0x57ce05){return _0x211934(_0x44023f- -0x1b8,_0x44023f-0x5e,_0x304691,_0x57ce05-_0x31a698._0x2cae63);}return _0x39d433[_0x1c5df3(_0x1114c6._0x567a62,-0xf9,_0x1114c6._0x113f72,_0x1114c6._0xf532d9)](_0x25553a[_0x1c5df3(0xca,0xf4,_0x1114c6._0xad0b2e,_0x1114c6._0x2a6fc6)](),_0x1c5df3(_0x1114c6._0x562ca7,_0x1114c6._0x4e6a94,_0x1114c6._0x2abe3e,0x22),'lsp',_0x1c5df3(_0x1114c6._0x2a2d92,0xda,0xd3,_0x1114c6._0x25e1fb),sanitizePackageName(_0x576cd0));}function getLspBinDir(_0x503f7a){const _0x354419={_0x3f1b4b:0x49e,_0x4fc161:0x681,_0x1c0935:0x90,_0xadaf27:0x155,_0x182efc:0x1d6,_0x25fe5d:0x160},_0x431604={_0x4b7e85:0x7},_0x474251={_0x384501:0x24c,_0x3357c4:0x99};function _0x2a04de(_0x43372d,_0x3816f5,_0x2f35a7,_0x546385){return _0x211934(_0x2f35a7-_0x474251._0x384501,_0x3816f5-0x1a5,_0x3816f5,_0x546385-_0x474251._0x3357c4);}function _0x2bb93c(_0x21f038,_0xd6ce8,_0x5decd7,_0x27f9dd){return _0x4820c3(_0x21f038-0x1a3,_0xd6ce8-_0x431604._0x4b7e85,_0x27f9dd,_0x21f038- -0x4e2);}return _0x39d433[_0x2a04de(_0x354419._0x3f1b4b,0x711,0x5fd,_0x354419._0x4fc161)](getLspPackageDir(_0x503f7a),_0x2bb93c(0x9c,-_0x354419._0x1c0935,-0x24,_0x354419._0xadaf27),_0x2bb93c(0xf9,_0x354419._0x182efc,0x13a,_0x354419._0x25fe5d));}async function findPackageBinary(_0x1b2a6a,_0x2f5f69){const _0x56b0d8={_0x24689d:0x94,_0x208fd8:0xce,_0x1b27ab:0x325},_0x1bf6ae={_0x1ad101:0x1cc},_0x4c07cc={_0x4b4988:0x23,_0x2fdf3d:0x670};function _0x5c7da6(_0x25371a,_0x6825e8,_0x50050a,_0x28e8ce){return _0x4820c3(_0x25371a-0x59,_0x6825e8-_0x4c07cc._0x4b4988,_0x50050a,_0x28e8ce- -_0x4c07cc._0x2fdf3d);}let _0x356329=_0x39d433['resolve'](_0x2f5f69);function _0x5d406d(_0x50f3f7,_0x4d3f9b,_0x1d5213,_0x52e666){return _0x4820c3(_0x50f3f7-0x1cf,_0x4d3f9b-0xe7,_0x50f3f7,_0x4d3f9b- -_0x1bf6ae._0x1ad101);}const _0x144adf=binaryNameForPlatform(_0x1b2a6a);while(!![]){const _0x2e2aaf=_0x39d433[_0x5c7da6(0xa,-_0x56b0d8._0x24689d,_0x56b0d8._0x208fd8,-0x73)](_0x356329,_0x5d406d(0x2c8,0x3b2,_0x56b0d8._0x1b27ab,0x2ef),'.bin',_0x144adf);if(await exists(_0x2e2aaf))return _0x2e2aaf;const _0x507566=_0x39d433['dirname'](_0x356329);if(_0x507566===_0x356329)return void 0x0;_0x356329=_0x507566;}}async function findPathBinary(_0x4f10c6,_0x485e26){const _0x47da25={_0x3e87d3:0x26e,_0x120423:0x20d,_0x59b6dc:0x704,_0x40ab32:0x406,_0x5ebb08:0x421,_0x53d6b2:0x19d,_0x1d07e5:0x169},_0x53b51d={_0x47bc9f:0x1cf},_0x20a950={_0x1a6dce:0x1f2,_0x5b83e8:0x163,_0x34a0fb:0x455};function _0x4fac73(_0x5eba20,_0x4c67d0,_0xeb3bb7,_0x31b381){return _0x4820c3(_0x5eba20-_0x20a950._0x1a6dce,_0x4c67d0-_0x20a950._0x5b83e8,_0x5eba20,_0x31b381- -_0x20a950._0x34a0fb);}function _0x3f578b(_0x411abd,_0x25d034,_0xd2205c,_0x3637c9){return _0x4820c3(_0x411abd-_0x53b51d._0x47bc9f,_0x25d034-0x1ea,_0x411abd,_0x25d034- -0x1dc);}const _0x12f6ef=getLspBinDir(_0x485e26),_0x3ed246=[_0x12f6ef,process[_0x3f578b(0x39d,0x4af,0x37e,0x5ad)][_0x4fac73(0x1d7,_0x47da25._0x3e87d3,0x292,_0x47da25._0x120423)]][_0x3f578b(_0x47da25._0x59b6dc,0x5b0,0x4e2,0x548)](Boolean)[_0x3f578b(_0x47da25._0x40ab32,_0x47da25._0x5ebb08,0x313,0x2dc)](_0x39d433[_0x4fac73(0x32,0x1ef,_0x47da25._0x53d6b2,_0x47da25._0x1d07e5)]);try{return await _0x4417e0(_0x4f10c6,{'path':_0x3ed246});}catch{return void 0x0;}}async function resolvePackageBinary(_0x3553f1){const _0x2fc8fc={_0x3b30f7:0xa7,_0x2d904a:0x16,_0x1bd2ca:0x29,_0x400220:0x16,_0x3f9810:0xc1,_0x47d36f:0x577,_0x31a255:0xbb,_0x259972:0x93,_0x53a344:0x16,_0x52062b:0x5d7,_0xde33d4:0x50f,_0x40f69f:0xfb,_0x4bd145:0x3c,_0x32bf11:0x1fc,_0xe467e7:0x51,_0x388307:0x153,_0x4ea66e:0x38},_0x24b28b={_0x38c9c9:0x1fa,_0x1246f0:0x258,_0x1febc2:0x2f4,_0xa14dbf:0x1d4,_0x1b4b57:0x10a,_0x1273db:0x196,_0x1b0a7d:0xaf,_0x200a15:0x9c},_0x204b46={_0x23990c:0xe4},_0x428b40={_0x1a9215:0x335,_0x3119ae:0x53},_0x3471b5={_0x2a5507:0xf1},_0x27d8ef=_0x3553f1['binaryName']??_0x3553f1[_0x5beb4b(0xd1,-_0x2fc8fc._0x3b30f7,-_0x2fc8fc._0x2d904a,0x3d)],_0x6a163=await findPackageBinary(_0x27d8ef,_0x3553f1[_0x5beb4b(0x9,0x46,0xf,_0x2fc8fc._0x1bd2ca)]);if(_0x6a163)return _0x6a163;function _0x5beb4b(_0x4cbb2c,_0x575031,_0x437171,_0x563e05){return _0x4820c3(_0x4cbb2c-0xb3,_0x575031-0xb4,_0x4cbb2c,_0x437171- -0x659);}const _0x5934fc=await findPathBinary(_0x27d8ef,_0x3553f1[_0x5beb4b(0xb1,0xb1,-_0x2fc8fc._0x400220,-_0x2fc8fc._0x3f9810)]);function _0x5d941d(_0x13ea32,_0x4b2e19,_0x5098b9,_0x26f50b){return _0x211934(_0x13ea32-0x138,_0x4b2e19-0x155,_0x26f50b,_0x26f50b-_0x3471b5._0x2a5507);}if(_0x5934fc)return _0x5934fc;const _0x3f9eb8=_0x3553f1[_0x5d941d(_0x2fc8fc._0x47d36f,0x663,0x5ba,0x4c7)]??process['env'];if(shouldDisableLspDownload(_0x3f9eb8))return void 0x0;const _0x3afa53=getLspPackageDir(_0x3553f1[_0x5beb4b(-0xf,-0x139,-0x16,-0x16a)]),_0x2c11fd=_0x3553f1[_0x5beb4b(-_0x2fc8fc._0x31a255,-_0x2fc8fc._0x259972,-_0x2fc8fc._0x53a344,-0xa4)]+':'+_0x27d8ef;let _0x583490=installPromises[_0x5d941d(0x60d,_0x2fc8fc._0x52062b,_0x2fc8fc._0xde33d4,0x6a9)](_0x2c11fd);!_0x583490&&(_0x583490=((async()=>{await mkdir(_0x3afa53,{'recursive':!![]});const _0x27630a=await runNpmInstall(_0x3afa53,_0x3553f1[_0x3d9ea0(_0x24b28b._0x38c9c9,_0x24b28b._0x1246f0,_0x24b28b._0x1febc2,0x175)],_0x3f9eb8);function _0x3d9ea0(_0x17cba9,_0x40d22b,_0x4ee6f3,_0x58e098){return _0x5d941d(_0x17cba9- -_0x428b40._0x1a9215,_0x40d22b-_0x428b40._0x3119ae,_0x4ee6f3-0x9e,_0x58e098);}function _0x2a83a1(_0x45bb82,_0x185008,_0x4b5a27,_0x1d28a5){return _0x5d941d(_0x4b5a27- -0x5de,_0x185008-_0x204b46._0x23990c,_0x4b5a27-0x173,_0x1d28a5);}if(!_0x27630a)return void 0x0;const _0x44edee=_0x39d433[_0x3d9ea0(0x1b4,0xef,_0x24b28b._0xa14dbf,_0x24b28b._0x1b4b57)](getLspBinDir(_0x3553f1[_0x2a83a1(-0x1c3,-_0x24b28b._0x1273db,-_0x24b28b._0x1b0a7d,-_0x24b28b._0x200a15)]),binaryNameForPlatform(_0x27d8ef));return await exists(_0x44edee)?_0x44edee:void 0x0;})()),installPromises[_0x5beb4b(-_0x2fc8fc._0x40f69f,_0x2fc8fc._0x4bd145,-0x99,0x4a)](_0x2c11fd,_0x583490));try{return await _0x583490;}catch{return void 0x0;}finally{installPromises[_0x5beb4b(_0x2fc8fc._0x32bf11,_0x2fc8fc._0xe467e7,_0x2fc8fc._0x388307,_0x2fc8fc._0x4ea66e)](_0x2c11fd);}}var TYPESCRIPT_EXTENSIONS=[_0x211934(0x407,0x455,0x549,0x4e1),_0x4820c3(0x72a,0x687,0x87f,0x7d3),'.js',_0x4820c3(0x486,0x59e,0x6a9,0x560),_0x4820c3(0x88f,0x64d,0x863,0x757),'.cjs',_0x211934(0x484,0x40c,0x344,0x559),_0x211934(0x577,0x4e5,0x5e6,0x6d1)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x4820c3(0x760,0x86d,0x8e4,0x7f8),_0x211934(0x4bf,0x4de,0x5bf,0x565)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json','bun.lockb','bun.lock','pnpm-lock.yaml',_0x4820c3(0x810,0x670,0x732,0x6ca),_0x211934(0x53f,0x5ff,0x3ee,0x67f),_0x211934(0x43a,0x368,0x3c7,0x334),_0x4820c3(0x73e,0x6c8,0x700,0x7c6)],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc','package-lock.json',_0x211934(0x5ad,0x5e0,0x4a8,0x573),_0x4820c3(0x8aa,0x722,0x809,0x798),_0x211934(0x44f,0x3fc,0x37a,0x591),_0x211934(0x47e,0x5c0,0x33e,0x45f),_0x4820c3(0x890,0x6a8,0x79b,0x7c6)];async function exists2(_0x13da10){try{return await _0x19c94f(_0x13da10),!![];}catch{return![];}}async function findUp(_0x13d4b7,_0x44484d){const _0xb1d9ef={_0x4e9941:0x7e2,_0x129a79:0x88f,_0x45ab03:0xf,_0x5d05d7:0x36,_0x2fef67:0x23,_0x59debe:0x29,_0x1b39fa:0x28},_0x44ec7c={_0x4d9608:0x20,_0x22fff5:0x6f5},_0x5f0d81={_0x47375a:0x1c7};let _0x5e8e27=_0x51ddee['resolve'](_0x13d4b7);function _0x4451bc(_0x4b48fc,_0x8b6fac,_0x520079,_0x564466){return _0x211934(_0x8b6fac-_0x5f0d81._0x47375a,_0x8b6fac-0xbf,_0x564466,_0x564466-0x174);}const _0x200c6c=_0x51ddee[_0x4451bc(0x7c9,0x755,_0xb1d9ef._0x4e9941,_0xb1d9ef._0x129a79)](_0x5e8e27);if(_0x200c6c)_0x5e8e27=_0x51ddee[_0x5c9923(_0xb1d9ef._0x45ab03,-_0xb1d9ef._0x5d05d7,_0xb1d9ef._0x2fef67,-0x149)](_0x5e8e27);function _0x5c9923(_0x474478,_0x51c793,_0x302af7,_0x5df058){return _0x4820c3(_0x474478-0xee,_0x51c793-_0x44ec7c._0x4d9608,_0x5df058,_0x474478- -_0x44ec7c._0x22fff5);}while(!![]){for(const _0x1fe5c1 of _0x44484d){if(await exists2(_0x51ddee[_0x5c9923(-0xf8,-_0xb1d9ef._0x59debe,_0xb1d9ef._0x1b39fa,-0x20f)](_0x5e8e27,_0x1fe5c1)))return _0x5e8e27;}const _0x126e8a=_0x51ddee['dirname'](_0x5e8e27);if(_0x126e8a===_0x5e8e27)return void 0x0;_0x5e8e27=_0x126e8a;}}async function hasDenoRoot(_0x1743cd){const _0x55b38f={_0x11ddce:0x91,_0x26a5ec:0x3c,_0x15f431:0x101,_0x2f3d93:0x2c,_0x518ce2:0x6f9,_0x212f86:0x77e},_0x53b0cb={_0x3b87b9:0x130},_0x1ca179={_0x428493:0x375,_0x33dba1:0x162,_0x2c58fd:0xb1};function _0x14641f(_0x2ff1c1,_0x2394f8,_0x53d220,_0x2f33e7){return _0x211934(_0x2394f8- -_0x1ca179._0x428493,_0x2394f8-_0x1ca179._0x33dba1,_0x2ff1c1,_0x2f33e7-_0x1ca179._0x2c58fd);}function _0x595a39(_0x479848,_0x259f20,_0x204604,_0x57e9d9){return _0x4820c3(_0x479848-_0x53b0cb._0x3b87b9,_0x259f20-0x109,_0x204604,_0x479848- -0x10c);}return await exists2(_0x51ddee[_0x14641f(-_0x55b38f._0x11ddce,_0x55b38f._0x26a5ec,0x12f,-_0x55b38f._0x15f431)](_0x1743cd,'deno.json'))||await exists2(_0x51ddee[_0x14641f(_0x55b38f._0x2f3d93,_0x55b38f._0x26a5ec,0x4,-0x35)](_0x1743cd,_0x595a39(0x620,_0x55b38f._0x518ce2,0x4c6,_0x55b38f._0x212f86)));}async function resolveTsserverPath(_0x5c3996){const _0x480e18={_0x970f99:0x61e,_0x538ff2:0x77f,_0x385c10:0x7e2,_0x1930ce:0x6a7,_0x1ded1b:0x297,_0x15230d:0x36f,_0x212a95:0x653,_0xf025c4:0x71d,_0x1d5c0d:0x521,_0x2643bf:0x4b8,_0x5d1b6b:0x6a6,_0x3d38af:0x825,_0x359ffa:0x45c,_0x31940f:0x2ab,_0x34183a:0x4d8,_0x51ebb4:0x730,_0x40f822:0x633,_0x1b66c0:0x5f8,_0x4474e0:0x3cb,_0x37a2f3:0x47a},_0x4cb071={_0x3365f1:0x8};function _0xd319c9(_0x461cf5,_0x324504,_0x3ebfe8,_0x3bab84){return _0x211934(_0x3bab84-0x239,_0x324504-0x1a4,_0x461cf5,_0x3bab84-0xbb);}let _0x244341=_0x51ddee[_0xd319c9(_0x480e18._0x970f99,_0x480e18._0x538ff2,_0x480e18._0x385c10,_0x480e18._0x1930ce)](_0x5c3996);while(!![]){const _0x4c267a=_0x51ddee[_0x5d67c5(0x4be,_0x480e18._0x1ded1b,0x3a9,_0x480e18._0x15230d)](_0x244341,'node_modules','typescript',_0xd319c9(_0x480e18._0x212a95,0x828,0x608,_0x480e18._0xf025c4),_0xd319c9(_0x480e18._0x1d5c0d,_0x480e18._0x2643bf,_0x480e18._0x5d1b6b,0x60c));if(await exists2(_0x4c267a))return _0x4c267a;const _0x39e8d6=_0x51ddee[_0xd319c9(0x7a7,_0x480e18._0x3d38af,0x787,0x6f1)](_0x244341);if(_0x39e8d6===_0x244341)break;_0x244341=_0x39e8d6;}function _0x5d67c5(_0x4b1a53,_0xf354c6,_0xe7d071,_0x4febc8){return _0x211934(_0xe7d071- -_0x4cb071._0x3365f1,_0xf354c6-0xd8,_0xf354c6,_0x4febc8-0xfd);}const _0x50613b=getLspPackageDir(_0x5d67c5(_0x480e18._0x359ffa,_0x480e18._0x31940f,0x339,0x3ce)),_0x536a92=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x5c3996});if(!_0x536a92)return void 0x0;const _0x29d218=_0x51ddee[_0xd319c9(_0x480e18._0x34183a,0x50b,_0x480e18._0x51ebb4,0x5ea)](_0x50613b,'node_modules','typescript',_0x5d67c5(_0x480e18._0x40f822,0x60f,0x4dc,_0x480e18._0x1b66c0),_0x5d67c5(0x2a3,0x3bf,_0x480e18._0x4474e0,_0x480e18._0x37a2f3));return await exists2(_0x29d218)?_0x29d218:void 0x0;}var TypeScriptServer={'id':_0x211934(0x341,0x3ee,0x252,0x38c),'name':_0x4820c3(0x613,0x597,0x5a8,0x5e6),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x7bb8f2){const _0x6497b3=await findUp(_0x7bb8f2,TYPESCRIPT_ROOT_MARKERS);if(!_0x6497b3)return void 0x0;return await hasDenoRoot(_0x6497b3)?void 0x0:_0x6497b3;},async 'spawn'(_0x2f282e){const _0x510f0d={_0x109ff7:0x42b,_0x11c4f6:0x1e6,_0x28b58a:0x32e,_0x271847:0x1b3,_0x1a47a7:0x3c8,_0x327c0f:0x4e8,_0x4ad32f:0x4e9},_0x19e3f7={_0x58b2af:0xdb,_0x4b7d8d:0xd6},_0x203048={_0xa31c99:0xba,_0x1743f3:0x1e,_0x4dce77:0x673};function _0x5ee2ec(_0x3234df,_0x4363f5,_0xbeeba0,_0x19c01a){return _0x4820c3(_0x3234df-_0x203048._0xa31c99,_0x4363f5-_0x203048._0x1743f3,_0x3234df,_0x19c01a- -_0x203048._0x4dce77);}function _0x13ecb9(_0x2b7aa0,_0x2ca4a1,_0x14575d,_0x3c43d1){return _0x211934(_0x3c43d1- -0xda,_0x2ca4a1-_0x19e3f7._0x58b2af,_0x2b7aa0,_0x3c43d1-_0x19e3f7._0x4b7d8d);}const _0x1e00db=await resolveTsserverPath(_0x2f282e);if(!_0x1e00db)return void 0x0;const _0x1ab0bd=await resolvePackageBinary({'packageName':_0x13ecb9(_0x510f0d._0x109ff7,_0x510f0d._0x11c4f6,0x25e,0x30d),'binaryName':_0x13ecb9(_0x510f0d._0x28b58a,_0x510f0d._0x271847,0x204,0x30d),'startDir':_0x2f282e});if(!_0x1ab0bd)return void 0x0;return{'process':_0xba2f42(_0x1ab0bd,[_0x13ecb9(_0x510f0d._0x1a47a7,0x3ba,_0x510f0d._0x327c0f,_0x510f0d._0x4ad32f)],{'cwd':_0x2f282e,'stdio':_0x13ecb9(0x41b,0x4de,0x595,0x4e5)}),'initialization':{'tsserver':{'path':_0x1e00db}}};}},BiomeServer={'id':'biome','name':_0x211934(0x453,0x3be,0x5a7,0x5b1),'extensions':BIOME_EXTENSIONS,async 'root'(_0x481cd9){return findUp(_0x481cd9,BIOME_ROOT_MARKERS);},async 'spawn'(_0x11d593){const _0x7b65fe={_0x1735fd:0x5b5,_0xd58e8e:0x4f3,_0x5813ce:0x47e,_0x29da97:0x4f5,_0x16978b:0x4dd,_0x40d722:0x3ba,_0x313d24:0x450,_0x17c41c:0x47d,_0x113351:0x486,_0x59c3eb:0x50a,_0x1ca703:0x72b},_0x1df2b8={_0x3d8df4:0x29,_0x467dea:0x134},_0xbe4d84={_0x5802e6:0x119};function _0xbcb55(_0xa03748,_0xeec157,_0x15c111,_0x1c92fa){return _0x4820c3(_0xa03748-_0xbe4d84._0x5802e6,_0xeec157-0x1a6,_0x15c111,_0xeec157- -0x1c2);}const _0x18f197=await findPackageBinary(_0xbcb55(0x587,0x4ca,_0x7b65fe._0x1735fd,_0x7b65fe._0xd58e8e),_0x11d593)??await resolvePackageBinary({'packageName':_0x5e9c55(0x3de,0x516,0x54b,_0x7b65fe._0x5813ce),'binaryName':_0xbcb55(_0x7b65fe._0x29da97,0x4ca,_0x7b65fe._0x16978b,_0x7b65fe._0x40d722),'startDir':_0x11d593});if(!_0x18f197)return void 0x0;function _0x5e9c55(_0x47c9eb,_0x27d70c,_0x1190aa,_0x12e155){return _0x211934(_0x27d70c-_0x1df2b8._0x3d8df4,_0x27d70c-0x2e,_0x12e155,_0x12e155-_0x1df2b8._0x467dea);}return{'process':_0xba2f42(_0x18f197,[_0xbcb55(_0x7b65fe._0x313d24,_0x7b65fe._0x17c41c,_0x7b65fe._0x113351,_0x7b65fe._0x59c3eb),_0x5e9c55(0x4ae,0x5ec,0x528,0x49a)],{'cwd':_0x11d593,'stdio':_0xbcb55(_0x7b65fe._0x1ca703,0x649,0x4fc,0x5fa)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x184676){const _0x228f1b={_0x17dae5:0x67a,_0x44b069:0x770,_0x410fd4:0x804,_0x20723e:0x678,_0x52c49c:0x849},_0x21d320={_0x42728d:0x7c},_0x4e9496={_0x2e0cd0:0x7f,_0x39c18f:0xa1},_0x34c00f=_0x51ddee[_0x57475a(0x725,_0x228f1b._0x17dae5,_0x228f1b._0x44b069,0x756)](_0x184676)[_0x57475a(_0x228f1b._0x410fd4,_0x228f1b._0x20723e,_0x228f1b._0x52c49c,0x6f1)]();function _0x28b5f5(_0x2c946e,_0x476c30,_0x54abe7,_0x31ee50){return _0x211934(_0x476c30- -_0x4e9496._0x2e0cd0,_0x476c30-_0x4e9496._0x39c18f,_0x31ee50,_0x31ee50-0xed);}function _0x57475a(_0x9a7349,_0x2d25dc,_0x1bbfcd,_0x43572c){return _0x211934(_0x43572c-0x1c8,_0x2d25dc-_0x21d320._0x42728d,_0x9a7349,_0x43572c-0x196);}return BUILTIN_LSP_SERVERS['filter'](_0x2cf01b=>_0x2cf01b[_0x28b5f5(0x430,0x423,0x451,0x2eb)][_0x57475a(0x630,0x5d5,0x57c,0x64f)](_0x34c00f));}function stateKey(_0x1d196f,_0x10caca){return _0x10caca+':'+_0x1d196f['id'];}function diagnosticsKeyToPath(_0xee4619){const _0x1ad329={_0x6344f3:0x118};function _0x4b9e0e(_0x41fa9b,_0xd2e79d,_0x342837,_0x54a883){return _0x211934(_0x41fa9b- -0x92,_0xd2e79d-_0x1ad329._0x6344f3,_0x54a883,_0x54a883-0x9c);}if(!_0xee4619['startsWith'](_0x4b9e0e(0x357,0x2d6,0x35f,0x2ed)))return _0xee4619;return fileURLToPath(_0xee4619);}function nextFileVersion(_0x107c23,_0xe78f1){const _0x24440e={_0x48baef:0x14e,_0x1128d5:0x13b,_0x308973:0x552,_0x562c50:0x5c9,_0x309776:0x409},_0x2d2e28={_0x2dad9c:0x5e6},_0x2ab81b={_0x40cc6d:0x1d5,_0x55396d:0x76};function _0x4286ff(_0x45b7bc,_0x1dde51,_0x222533,_0x4dda93){return _0x211934(_0x45b7bc-_0x2ab81b._0x40cc6d,_0x1dde51-0x52,_0x222533,_0x4dda93-_0x2ab81b._0x55396d);}function _0x4910fd(_0x2898e8,_0x319720,_0x3cfd66,_0x2b6eea){return _0x4820c3(_0x2898e8-0x7b,_0x319720-0x34,_0x319720,_0x2b6eea- -_0x2d2e28._0x2dad9c);}const _0x32a755=(_0x107c23['fileVersions'][_0x4910fd(0xdd,_0x24440e._0x48baef,0x295,_0x24440e._0x1128d5)](_0xe78f1)??0x1)+0x1;return _0x107c23[_0x4286ff(_0x24440e._0x308973,_0x24440e._0x562c50,_0x24440e._0x309776,0x6ac)][_0x4910fd(0x109,0xc4,-0x4f,-0x26)](_0xe78f1,_0x32a755),_0x32a755;}function _0x4820c3(_0x39404d,_0x510920,_0x1ea00f,_0x23030f){const _0x49681c={_0x3075d0:0x3a3};return _0x4629(_0x23030f-_0x49681c._0x3075d0,_0x1ea00f);}async function collectClientResults(_0x257315){const _0x466fff={_0x340cd4:0x16a,_0x249339:0x2f,_0x2a2e31:0x5b6,_0x267c36:0x5f7,_0x15d2b6:0x62c},_0x19396e={_0x157224:0x27c,_0x395dc6:0x157,_0x16bb04:0x184},_0x582b6a={_0x3533c9:0x136};function _0x3a65d9(_0x1c2b9a,_0x8f7474,_0x505cd9,_0x4af82e){return _0x4820c3(_0x1c2b9a-0x146,_0x8f7474-_0x582b6a._0x3533c9,_0x8f7474,_0x505cd9- -0x1c8);}const _0x1dbcf4=await Promise[_0x2fc39f(0x1e2,_0x466fff._0x340cd4,_0x466fff._0x249339,0x16b)](_0x257315);function _0x2fc39f(_0x18607b,_0xe28cf1,_0x18bc1b,_0x5742ff){return _0x211934(_0xe28cf1- -_0x19396e._0x157224,_0xe28cf1-_0x19396e._0x395dc6,_0x18bc1b,_0x5742ff-_0x19396e._0x16bb04);}return _0x1dbcf4[_0x3a65d9(_0x466fff._0x2a2e31,0x4ad,_0x466fff._0x267c36,_0x466fff._0x15d2b6)](_0x2e66b5=>_0x2e66b5[_0x2fc39f(0x35f,0x286,0x33b,0x373)]===_0x2fc39f(0x86,0x15c,0x20a,0x18e)?_0x2e66b5[_0x2fc39f(-0x1e,0x99,0x7c,0xa0)]:[]);}function createLspService(_0x60bdc4={}){const _0x23a194={_0x11f8ef:0x528,_0x5a2e8d:0x588,_0x32f264:0x384,_0x34ec69:0x34b},_0x129435={_0x27ccda:0x37c},_0x4e7337={_0x3e4113:0x356,_0x58ddb5:0x333,_0x57db6d:0x502,_0xcd8c89:0x3b5,_0x26fbe0:0x50f,_0x282ec1:0x63c,_0x278d85:0x593,_0x44fc0a:0x5da,_0x4073f9:0x1c7,_0x39f187:0x260,_0x415cd3:0x420,_0x54c295:0x2e4,_0x388d65:0x538,_0x339c5a:0x4d2,_0x59b664:0x3a5,_0x3fe19c:0x520,_0x46d533:0x65f,_0x5c8586:0x61e,_0x1a44a5:0x580,_0x31635f:0x5a2,_0x1b086f:0x54f,_0x54f3d4:0x443,_0x4bfe43:0x432,_0x17fa1b:0x6e3,_0x2a7c15:0x676},_0x539ff6={_0x591c6b:0x21d},_0x1718cd={_0x523f33:0x57f,_0x357720:0x58f,_0x4d60d9:0x414,_0x241c00:0x4c0},_0x5eba4f={_0x512633:0x381},_0xb895d7={_0x34bf44:0x11,_0x2f452c:0xd3},_0x3c19c0={_0xe0c0f2:0x141},_0x26d3fa={_0x41257c:0x1be},_0x4f3c4e={_0x1b11dd:0x61c},_0x1b226a={_0x59156c:0x1cc},_0x427944={_0x29d96e:0x232,_0x2244a7:0x136,_0x106cfb:0x152},_0x4c3161={_0x31a3d1:0x563,_0x404821:0x41e},_0x424d4d={_0x528801:0x449,_0x338a17:0x41b},_0x5c279b={_0x596f03:0x28f,_0xaf63a8:0x4f9,_0x45e1e7:0x73f,_0xdf554d:0x776},_0x4c4133={_0x24b32c:0x4cb,_0x4d54d8:0x372,_0x3c12e2:0x3c0,_0x548d31:0x5fd},_0x48f963={_0x161643:0x1f9},_0x4a2c4e={_0x3c9d98:0x9d},_0x113afa={_0x2c364a:0x28a},_0x39bfc2={_0x417f09:0x309,_0x451528:0x36a},_0x24b288={_0x1aa12c:0x1d4,_0x17e11f:0x216,_0x596e8a:0x170,_0x1f9437:0x18,_0x55334b:0x257,_0x56ed8b:0x138,_0x2e6023:0x75},_0x1d6f7c={_0x5555bb:0x135,_0x2e94b9:0x8d,_0x3c7d91:0xd2,_0x53776b:0x65,_0x119b32:0x175,_0x2c1f4d:0x2a4,_0x574c3d:0x154,_0x1e9632:0x14c,_0x517270:0x193,_0x3cc2ee:0xd2,_0x304afd:0x199,_0x1ee8f3:0x5e,_0x306110:0x343,_0xcc9645:0x215,_0x1ca5ae:0x405,_0x286a08:0x115,_0x5d6ea9:0x161,_0x55a5eb:0x365,_0x28e629:0x6e,_0x5c7090:0x120,_0x4c3076:0x46e,_0x16e7b5:0x401,_0x270b60:0x5aa},_0x31b4cf={_0x322249:0x307},_0x2b4bf4={_0xde95ea:0x7ec,_0x46c292:0x555,_0x23b4ca:0x542,_0x63b01d:0x5ee,_0x2c8f6b:0x5df,_0x4b5a6d:0x596,_0x554847:0x51a,_0x38a5c3:0x606,_0x3cc7cc:0x7c6,_0x5cce67:0x707,_0x506d5d:0x5b1,_0x2a53c2:0x690,_0x3b158d:0x5f6},_0x2c0033={_0x1b2d6d:0x222},_0x3d3889={_0x5d3250:0x270,_0x110811:0x232,_0x1e4c5b:0x28c,_0x2f020e:0x14f,_0x597c91:0x8da,_0x1dc44f:0x880,_0x4e12ee:0x77d,_0x4bd20a:0x8b1,_0x2acbcd:0x31a,_0x3ad1a3:0x2e7,_0x2e8287:0x2dc,_0x34af2c:0x301,_0x54515b:0x2e9,_0x57069e:0x718,_0x2a8506:0x717,_0x5a8480:0x6e0,_0x54d2d3:0x6e2,_0x4bf74e:0x864,_0x4dc950:0x72c,_0x44f8f6:0x138,_0x40bd2a:0xcb},_0x23bcef={_0x12a9f9:0x14d},_0x452ebc={_0x38fb7b:0x399},_0x48ce25={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x364405=()=>_0x60bdc4['enabled']!==![];async function _0x14c2e2(_0x56ff51,_0x225505){const _0x5793f0={_0x32df2e:0x5a5,_0x2badbd:0x4f8,_0x3d1efc:0x84a,_0x37545b:0x8d3,_0x4b774d:0x7ab,_0x2325eb:0x793,_0x1a6435:0x762,_0x44b2b5:0x755,_0x324ed3:0x6fd,_0x20ae3b:0x815,_0x260b01:0x5db,_0x58567c:0x724,_0x1ed5db:0x5d5,_0x30674e:0x694,_0x59dfb3:0x67a,_0x5bb873:0x6be,_0x5860f4:0x684,_0x3bb42e:0x648,_0x462424:0x885,_0x4316aa:0x7cc,_0x332ba9:0x70f,_0x590d23:0x63e},_0x3df762=stateKey(_0x56ff51,_0x225505),_0x25e3e8=_0x48ce25[_0x53785e(_0x3d3889._0x5d3250,_0x3d3889._0x110811,_0x3d3889._0x1e4c5b,_0x3d3889._0x2f020e)][_0x3d9671(_0x3d3889._0x597c91,_0x3d3889._0x1dc44f,_0x3d3889._0x4e12ee,_0x3d3889._0x4bd20a)](_0x831de8=>_0x831de8[_0x53785e(0xa6,0x1b8,-0x47,0x185)]===_0x56ff51['id']&&_0x831de8[_0x3d9671(0x73c,0x5eb,0x5fa,0x501)]===_0x225505);if(_0x25e3e8)return _0x25e3e8;if(_0x48ce25['broken'][_0x53785e(0x1d3,_0x3d3889._0x2acbcd,_0x3d3889._0x3ad1a3,_0x3d3889._0x2e8287)](_0x3df762))return void 0x0;const _0x17d5a9=_0x48ce25[_0x53785e(0x246,_0x3d3889._0x34af2c,0x10c,_0x3d3889._0x54515b)][_0x3d9671(0x655,_0x3d3889._0x57069e,_0x3d3889._0x2a8506,_0x3d3889._0x5a8480)](_0x3df762);function _0x3d9671(_0x3e8789,_0x375353,_0x59bade,_0x381cbd){return _0x4629(_0x59bade-_0x452ebc._0x38fb7b,_0x375353);}if(_0x17d5a9)return _0x17d5a9;function _0x53785e(_0x2a932c,_0x9d24be,_0x5d9812,_0x11381a){return _0x4629(_0x2a932c- -_0x23bcef._0x12a9f9,_0x5d9812);}const _0x53cc26=((async()=>{const _0x233b3f={_0x5ae31a:0xe8,_0x48b207:0x41},_0x4adecc={_0x369e2c:0x41a,_0x2ab8a3:0x54};function _0x196ee4(_0x38fb6e,_0x3b5818,_0x304fdf,_0x28b329){return _0x53785e(_0x3b5818-_0x4adecc._0x369e2c,_0x3b5818-_0x4adecc._0x2ab8a3,_0x28b329,_0x28b329-0x2b);}function _0x5c2251(_0x1425f5,_0x4d9a87,_0x36ebd2,_0x41a4c2){return _0x3d9671(_0x1425f5-_0x233b3f._0x5ae31a,_0x4d9a87,_0x41a4c2- -0x59,_0x41a4c2-_0x233b3f._0x48b207);}try{const _0x5a20fc=await _0x56ff51[_0x196ee4(_0x5793f0._0x32df2e,0x5ac,0x6f5,_0x5793f0._0x2badbd)](_0x225505);if(!_0x5a20fc)return _0x48ce25[_0x5c2251(0x6f2,_0x5793f0._0x3d1efc,_0x5793f0._0x37545b,_0x5793f0._0x4b774d)][_0x196ee4(0x682,0x70f,0x636,0x6aa)](_0x3df762),void 0x0;const _0xd658c0=await createLspClient({'server':_0x56ff51,'root':_0x225505,'handle':_0x5a20fc}),_0x15ca28=_0x48ce25[_0x5c2251(_0x5793f0._0x2325eb,_0x5793f0._0x1a6435,_0x5793f0._0x44b2b5,_0x5793f0._0x324ed3)][_0x5c2251(_0x5793f0._0x20ae3b,_0x5793f0._0x260b01,0x816,_0x5793f0._0x58567c)](_0x14deee=>_0x14deee[_0x5c2251(0x670,0x3d5,0x675,0x533)]===_0x56ff51['id']&&_0x14deee[_0x196ee4(0x58f,0x52e,0x46f,0x591)]===_0x225505);if(_0x15ca28)return await _0xd658c0[_0x5c2251(_0x5793f0._0x1ed5db,_0x5793f0._0x30674e,0x60f,_0x5793f0._0x59dfb3)](),_0x15ca28;return _0x48ce25[_0x196ee4(_0x5793f0._0x5bb873,0x68a,_0x5793f0._0x5860f4,_0x5793f0._0x3bb42e)][_0x5c2251(0x71c,0x673,0x6c7,0x7ae)](_0xd658c0),_0xd658c0;}catch{return _0x48ce25[_0x5c2251(0x760,_0x5793f0._0x462424,_0x5793f0._0x4316aa,0x7ab)][_0x196ee4(0x5b7,_0x5793f0._0x332ba9,0x717,_0x5793f0._0x590d23)](_0x3df762),void 0x0;}finally{_0x48ce25['spawning']['delete'](_0x3df762);}})());return _0x48ce25[_0x3d9671(_0x3d3889._0x54d2d3,_0x3d3889._0x4bf74e,_0x3d3889._0x4dc950,0x65c)][_0x53785e(0xd0,_0x3d3889._0x44f8f6,_0x3d3889._0x40bd2a,0x46)](_0x3df762,_0x53cc26),_0x53cc26;}async function _0x41d2a1(_0x49c09e,_0x1c4b48){if(!_0x364405())return[];const _0x3ede3b=[];function _0x466a52(_0x4bcf54,_0x278462,_0x10ef8f,_0xbebfe3){return _0x4629(_0x278462-_0x2c0033._0x1b2d6d,_0x4bcf54);}for(const _0x4ca463 of getServersForFile(_0x49c09e)){const _0x159cdd=await _0x4ca463['root'](_0x49c09e);if(!_0x159cdd)continue;const _0x58169b=stateKey(_0x4ca463,_0x159cdd);if(_0x48ce25[_0x3170fc(_0x2b4bf4._0xde95ea,0x8dc,0x7c2,0x85e)][_0x466a52(_0x2b4bf4._0x46c292,_0x2b4bf4._0x23b4ca,0x58f,_0x2b4bf4._0x63b01d)](_0x58169b))continue;const _0x8ec257=_0x48ce25[_0x466a52(0x5c5,_0x2b4bf4._0x2c8f6b,_0x2b4bf4._0x4b5a6d,0x517)][_0x466a52(_0x2b4bf4._0x554847,_0x2b4bf4._0x38a5c3,0x56c,0x660)](_0x5d167b=>_0x5d167b[_0x466a52(0x556,0x415,0x2d7,0x31a)]===_0x4ca463['id']&&_0x5d167b[_0x466a52(0x466,0x483,0x3f5,0x4be)]===_0x159cdd);if(_0x8ec257){_0x3ede3b[_0x466a52(_0x2b4bf4._0x3cc7cc,0x690,0x6b2,_0x2b4bf4._0x5cce67)](_0x8ec257);continue;}if(!_0x1c4b48)continue;const _0xad5c3f=await _0x14c2e2(_0x4ca463,_0x159cdd);if(_0xad5c3f)_0x3ede3b[_0x466a52(_0x2b4bf4._0x506d5d,_0x2b4bf4._0x2a53c2,_0x2b4bf4._0x3b158d,0x659)](_0xad5c3f);}function _0x3170fc(_0x1217eb,_0x22988b,_0x4ac102,_0xf39270){return _0x4629(_0x4ac102-0x357,_0x22988b);}return _0x3ede3b;}async function _0xabdf5a(_0x27edf1,_0x2cfb45=![]){const _0x2f29b4={_0x562558:0x2bd,_0x2b7732:0x151},_0x302e2e={_0x57534f:0x3b7,_0x144e25:0xc1};function _0x1bcb1f(_0xffb3de,_0x5fd115,_0x345ecf,_0x4fea28){return _0x4629(_0x345ecf- -_0x31b4cf._0x322249,_0xffb3de);}function _0x4b9cc6(_0x454e62,_0xd2ddd5,_0x1bc458,_0x3a34d1){return _0x4629(_0xd2ddd5- -0xf0,_0x454e62);}const _0xf6cb12=await _0x41d2a1(_0x27edf1,!![]);await Promise[_0x4b9cc6(_0x24b288._0x1aa12c,_0x24b288._0x17e11f,0x1d4,_0x24b288._0x596e8a)](_0xf6cb12[_0x1bcb1f(_0x24b288._0x1f9437,-_0x24b288._0x55334b,-_0x24b288._0x56ed8b,-_0x24b288._0x2e6023)](async _0x280ae4=>{function _0x3612d2(_0x3715df,_0x250ae0,_0x2896b0,_0x2dc011){return _0x1bcb1f(_0x2dc011,_0x250ae0-0xb7,_0x3715df-_0x302e2e._0x57534f,_0x2dc011-_0x302e2e._0x144e25);}function _0x4b8dca(_0x3eff01,_0x9d2d06,_0x213e06,_0x31899c){return _0x4b9cc6(_0x31899c,_0x3eff01- -_0x2f29b4._0x562558,_0x213e06-0x44,_0x31899c-_0x2f29b4._0x2b7732);}!_0x48ce25[_0x4b8dca(0xac,0x12d,-0x81,_0x1d6f7c._0x5555bb)][_0x4b8dca(-_0x1d6f7c._0x2e94b9,-0xfc,-_0x1d6f7c._0x3c7d91,-_0x1d6f7c._0x53776b)](_0x280ae4[_0x4b8dca(-0x1ba,-_0x1d6f7c._0x119b32,-_0x1d6f7c._0x2c1f4d,-_0x1d6f7c._0x574c3d)]+':'+_0x280ae4[_0x4b8dca(-_0x1d6f7c._0x1e9632,-0x84,-_0x1d6f7c._0x517270,-0x1be)]+':'+_0x27edf1)&&(await _0x280ae4[_0x4b8dca(-_0x1d6f7c._0x3cc2ee,-_0x1d6f7c._0x304afd,-0x30,-_0x1d6f7c._0x1ee8f3)][_0x3612d2(_0x1d6f7c._0x306110,0x1f3,_0x1d6f7c._0xcc9645,_0x1d6f7c._0x1ca5ae)]({'path':_0x27edf1}),_0x48ce25['openFiles'][_0x4b8dca(0x95,0x1ee,-0x5b,-0x63)](_0x280ae4['serverId']+':'+_0x280ae4[_0x4b8dca(-0x14c,-0x27,-_0x1d6f7c._0x286a08,-_0x1d6f7c._0x5d6ea9)]+':'+_0x27edf1));await _0x280ae4[_0x3612d2(0x38b,_0x1d6f7c._0x55a5eb,0x3ae,0x3cb)][_0x4b8dca(0x19,-_0x1d6f7c._0x28e629,-_0x1d6f7c._0x5c7090,-0x5a)]({'path':_0x27edf1,'version':nextFileVersion(_0x48ce25,_0x27edf1)});if(_0x2cfb45)await _0x280ae4[_0x3612d2(_0x1d6f7c._0x4c3076,_0x1d6f7c._0x16e7b5,0x39c,_0x1d6f7c._0x270b60)]({'path':_0x27edf1});}));}async function _0x26711b(_0x59e734){function _0xcff4dc(_0x4ac8c6,_0x1ad2cc,_0xa92d4,_0x251577){return _0x4629(_0x1ad2cc-0x9d,_0xa92d4);}return await _0xabdf5a(_0x59e734['file'],![]),_0x41d2a1(_0x59e734[_0xcff4dc(_0x39bfc2._0x417f09,_0x39bfc2._0x451528,0x23f,0x278)],![]);}async function _0x560d90(_0x19ae93){const _0x57eb24=await _0x26711b(_0x19ae93);function _0x4e4d82(_0x4bf666,_0x286f4b,_0x4c49cd,_0x43adef){return _0x4629(_0x286f4b- -_0x113afa._0x2c364a,_0x43adef);}function _0x33f1d7(_0x33f00d,_0xebeb70,_0xd72554,_0x4fc8bf){return _0x4629(_0x33f00d- -0x3cc,_0xd72554);}return collectClientResults(_0x57eb24[_0x4e4d82(-0x147,-0xbb,_0x4a2c4e._0x3c9d98,-0x72)](_0x186ea2=>_0x186ea2['request'][_0x33f1d7(0x2a,-0x72,0x68,0x4f)](_0x19ae93)));}return{'isEnabled':_0x364405,async 'hasClients'(_0x57de37){function _0x118877(_0x38302f,_0x3811e3,_0x3bb44c,_0x338ac8){return _0x4629(_0x38302f-_0x48f963._0x161643,_0x338ac8);}return(await _0x41d2a1(_0x57de37,![]))[_0x118877(_0x4c4133._0x24b32c,_0x4c4133._0x4d54d8,_0x4c4133._0x3c12e2,_0x4c4133._0x548d31)]>0x0||getServersForFile(_0x57de37)['length']>0x0;},'touchFile':_0xabdf5a,async 'diagnostics'(){const _0x4c67d4={};for(const _0x44a7f1 of _0x48ce25['clients']){for(const [_0x5409bf,_0x340d08]of _0x44a7f1['diagnostics']){_0x4c67d4[diagnosticsKeyToPath(_0x5409bf)]=_0x340d08;}}return _0x4c67d4;},async 'diagnosticsForFile'(_0x214220){const _0x53b44e={_0x50c61b:0x97},_0x5730ba={_0x576ce2:0x308};await _0xabdf5a(_0x214220,!![]);function _0x283e38(_0x34aae7,_0x3c5912,_0x58c516,_0x4cf9cd){return _0x4629(_0x58c516-_0x5730ba._0x576ce2,_0x3c5912);}const _0x397f68=[];function _0x232450(_0x197f0a,_0x398ba1,_0x570f25,_0x1d966e){return _0x4629(_0x570f25- -_0x53b44e._0x50c61b,_0x1d966e);}for(const _0x48c14c of await _0x41d2a1(_0x214220,![])){for(const [_0x18d4c1,_0x4e347f]of _0x48c14c[_0x232450(0x3b3,_0x5c279b._0x596f03,0x3c1,_0x5c279b._0xaf63a8)]){if(diagnosticsKeyToPath(_0x18d4c1)===_0x214220)_0x397f68[_0x283e38(0x828,_0x5c279b._0x45e1e7,_0x5c279b._0xdf554d,0x731)](..._0x4e347f);}}return _0x397f68;},async 'definition'(_0x55a043){function _0x37b8ea(_0x27a570,_0x803f27,_0x4e87b3,_0x280898){return _0x4629(_0x4e87b3-0x24c,_0x803f27);}return collectClientResults((await _0x26711b(_0x55a043))[_0x37b8ea(_0x424d4d._0x528801,0x440,_0x424d4d._0x338a17,0x469)](_0x58f007=>_0x58f007['request']['definition'](_0x55a043)));},async 'references'(_0x1f5d9f){const _0x3cf300={_0x485393:0x2d3};function _0x26e843(_0x37b838,_0x1ea7c2,_0x4b1e7e,_0xfc7e0b){return _0x4629(_0x1ea7c2-_0x3cf300._0x485393,_0xfc7e0b);}return collectClientResults((await _0x26711b(_0x1f5d9f))[_0x26e843(_0x4c3161._0x31a3d1,0x4a2,0x58c,_0x4c3161._0x404821)](_0x390abb=>_0x390abb['request']['references'](_0x1f5d9f)));},async 'hover'(_0x3e2074){const _0xd7cc82=await Promise[_0x4a6338(0x690,0x659,0x587,0x45f)]((await _0x26711b(_0x3e2074))['map'](_0x4cfe53=>_0x4cfe53['request'][_0x41410c(0x51d,0x55b,0x53d,0x505)](_0x3e2074)));function _0x4a6338(_0x304105,_0x91461d,_0x1006cd,_0x24a817){return _0x4629(_0x1006cd-0x2f8,_0x91461d);}function _0x41410c(_0x506501,_0x72fddb,_0x1c7efc,_0x17e994){return _0x4629(_0x506501-0xc3,_0x17e994);}return _0xd7cc82['flatMap'](_0x57577f=>_0x57577f['status']==='fulfilled'&&_0x57577f[_0x4a6338(0x3a0,0x368,0x4b6,0x564)]?[_0x57577f['value']]:[]);},async 'documentSymbol'(_0x281592){const _0x5a07d1={_0x38286d:0x2a6};function _0x31d4ff(_0xb99384,_0x5adf18,_0x3e57aa,_0x48335c){return _0x4629(_0x3e57aa- -0x305,_0xb99384);}function _0x5e8629(_0x3f99d8,_0x1e72a8,_0x38ffb4,_0x163c3f){return _0x4629(_0x3f99d8- -_0x5a07d1._0x38286d,_0x38ffb4);}return await _0xabdf5a(_0x281592,![]),collectClientResults((await _0x41d2a1(_0x281592,![]))[_0x31d4ff(-_0x427944._0x29d96e,-0x215,-_0x427944._0x2244a7,-_0x427944._0x106cfb)](_0x234ee4=>_0x234ee4[_0x31d4ff(-0x1b4,-0x1a6,-0x5c,0x91)][_0x5e8629(0xbe,-0x26,0x66,0x1a5)](_0x281592)));},async 'workspaceSymbol'(_0x1dbb5e){const _0x4af36d={_0x2017d1:0x329};function _0x107622(_0x229eb5,_0x1836a5,_0x328fef,_0x4413c8){return _0x4629(_0x1836a5- -_0x1b226a._0x59156c,_0x229eb5);}function _0x286bda(_0x1bf019,_0x17c810,_0x361762,_0x2f2346){return _0x4629(_0x1bf019-_0x4af36d._0x2017d1,_0x17c810);}return collectClientResults(_0x48ce25['clients'][_0x286bda(0x4f8,_0x4f3c4e._0x1b11dd,0x592,0x622)](_0x4d0e38=>_0x4d0e38['request'][_0x286bda(0x69e,0x5d5,0x57d,0x7d2)](_0x1dbb5e)));},async 'implementation'(_0x3a84d1){function _0x6edae2(_0x33a219,_0x5f4e32,_0x4a5e57,_0x9429e3){return _0x4629(_0x33a219- -_0x26d3fa._0x41257c,_0x9429e3);}function _0x4a55a2(_0x1418dc,_0x11775f,_0x562859,_0x267325){return _0x4629(_0x267325- -_0x3c19c0._0xe0c0f2,_0x11775f);}return collectClientResults((await _0x26711b(_0x3a84d1))[_0x6edae2(_0xb895d7._0x34bf44,0xf6,0x59,_0xb895d7._0x2f452c)](_0x2856da=>_0x2856da[_0x6edae2(0xeb,-0x65,0x1d3,-0x25)][_0x4a55a2(0x232,0x18c,0x21e,0x2a9)](_0x3a84d1)));},async 'prepareCallHierarchy'(_0x52387e){return _0x560d90(_0x52387e);},async 'incomingCalls'(_0x32b396){const _0x352910=await _0x560d90(_0x32b396),_0x690391=await _0x26711b(_0x32b396);function _0x41d878(_0x3a7998,_0x3b2716,_0x16e6c5,_0x177bfc){return _0x4629(_0x3a7998- -_0x5eba4f._0x512633,_0x3b2716);}return collectClientResults(_0x690391['flatMap'](_0x3d49f0=>_0x352910[_0x41d878(-0x1b2,-0x23f,-0x28f,-0xd7)](_0x5e11c6=>_0x3d49f0['request']['incomingCalls'](_0x5e11c6))));},async 'outgoingCalls'(_0x48a6fb){const _0x2ef0b={_0x50d373:0xa4};function _0x799304(_0x5682e0,_0x593b3e,_0x583f7c,_0x3e3633){return _0x4629(_0x583f7c-0x272,_0x3e3633);}function _0x50aede(_0xd0b57c,_0x10f713,_0x172678,_0x4fcc3f){return _0x4629(_0x4fcc3f-_0x2ef0b._0x50d373,_0xd0b57c);}const _0x1e25a6=await _0x560d90(_0x48a6fb),_0x402742=await _0x26711b(_0x48a6fb);return collectClientResults(_0x402742[_0x50aede(_0x1718cd._0x523f33,_0x1718cd._0x357720,_0x1718cd._0x4d60d9,_0x1718cd._0x241c00)](_0x4d9701=>_0x1e25a6[_0x50aede(0x1bc,0x17e,0x2de,0x273)](_0x46a25e=>_0x4d9701[_0x799304(0x41d,0x55c,0x51b,0x463)]['outgoingCalls'](_0x46a25e))));},async 'shutdown'(){const _0x227a91={_0x35520:0x115};if(_0x48ce25[_0xbfc6e8(0x524,0x479,0x3ad,0x43b)])return;function _0x3abc6c(_0x35c0e4,_0x5f1edd,_0x44ae32,_0x4397f2){return _0x4629(_0x4397f2-_0x227a91._0x35520,_0x35c0e4);}function _0xbfc6e8(_0x46ddd1,_0x2f2373,_0x125a0e,_0x383184){return _0x4629(_0x383184-_0x539ff6._0x591c6b,_0x46ddd1);}_0x48ce25[_0x3abc6c(0x371,_0x4e7337._0x3e4113,0x3e7,_0x4e7337._0x58ddb5)]=!![],await Promise[_0xbfc6e8(0x5d0,_0x4e7337._0x57db6d,_0x4e7337._0xcd8c89,0x4ac)](_0x48ce25[_0xbfc6e8(_0x4e7337._0x26fbe0,_0x4e7337._0x282ec1,_0x4e7337._0x278d85,_0x4e7337._0x44fc0a)][_0x3abc6c(_0x4e7337._0x4073f9,_0x4e7337._0x39f187,_0x4e7337._0x415cd3,_0x4e7337._0x54c295)](_0x249ec2=>_0x249ec2[_0x3abc6c(0x492,0x4e7,0x408,0x44f)]())),_0x48ce25[_0x3abc6c(_0x4e7337._0x388d65,0x454,0x456,_0x4e7337._0x339c5a)]=[],_0x48ce25[_0x3abc6c(_0x4e7337._0x59b664,0x45c,_0x4e7337._0x3fe19c,0x4a8)]['clear'](),_0x48ce25[_0x3abc6c(_0x4e7337._0x46d533,_0x4e7337._0x5c8586,0x449,_0x4e7337._0x1a44a5)][_0xbfc6e8(_0x4e7337._0x31635f,0x4bc,0x382,0x479)](),_0x48ce25[_0xbfc6e8(_0x4e7337._0x1b086f,0x55c,0x314,_0x4e7337._0x54f3d4)][_0xbfc6e8(0x321,0x429,_0x4e7337._0x4bfe43,0x479)](),_0x48ce25[_0xbfc6e8(0x5e7,_0x4e7337._0x17fa1b,0x6d6,_0x4e7337._0x2a7c15)][_0xbfc6e8(0x525,0x48d,0x3ff,0x479)]();},'status'(){function _0x29a1bc(_0x57125c,_0x597895,_0x39a182,_0x252583){return _0x4629(_0x57125c- -_0x129435._0x27ccda,_0x597895);}function _0x577c10(_0x56fce8,_0x30a19,_0x5194cb,_0x3f7704){return _0x4629(_0x5194cb-0xb2,_0x30a19);}return{'connectedClients':_0x48ce25[_0x577c10(_0x23a194._0x11f8ef,_0x23a194._0x5a2e8d,0x46f,0x516)][_0x577c10(0x39b,0x477,_0x23a194._0x32f264,_0x23a194._0x34ec69)]};}};}function createQuestionId(){const _0xe8d611={_0x5d9423:0x413,_0x127c23:0x55d,_0x48c3c4:0x4cc,_0x138489:0x4e6,_0xcd632f:0x443,_0x39d6f4:0x31a,_0x436bdb:0x290},_0x537e97={_0x2ed221:0xa3,_0x373949:0xe0};function _0x5b9282(_0x560311,_0x808440,_0x579d82,_0x1235d4){return _0x4820c3(_0x560311-0x195,_0x808440-_0x537e97._0x2ed221,_0x560311,_0x579d82- -_0x537e97._0x373949);}function _0x94d819(_0x4d145d,_0x177b30,_0x2f5744,_0x27d03){return _0x211934(_0x27d03-0x2b,_0x177b30-0x17e,_0x4d145d,_0x27d03-0x89);}return _0x5b9282(_0xe8d611._0x5d9423,0x5d7,0x4a7,_0xe8d611._0x127c23)+Date['now']()+'-'+Math[_0x5b9282(_0xe8d611._0x48c3c4,0x4ca,_0xe8d611._0x138489,_0xe8d611._0xcd632f)]()[_0x5b9282(0x70e,0x541,0x602,0x605)](0x24)[_0x94d819(0x3ba,_0xe8d611._0x39d6f4,_0xe8d611._0x436bdb,0x357)](0x2,0x9);}function validateInput(_0x4ed060){const _0x2b8610={_0x1aa8fb:0x5f5,_0x355c51:0x18c,_0xb851b2:0x2b0,_0x1f7890:0x57a,_0x252b8a:0x685,_0x5646c4:0x785,_0x141de6:0x87,_0x48227a:0x2a,_0x4cd811:0x74,_0x1c9673:0x5ee,_0x593548:0x6e9,_0x39ba19:0x539,_0x35757d:0x69a,_0x26e845:0x5d1,_0x54c9fe:0xb4,_0x575d0d:0x73,_0x548b52:0x176,_0x41e21d:0xf5,_0x3ea7d4:0x5a9,_0x57fb3e:0x17e,_0x626838:0x2a5,_0x478be5:0x557,_0x1d9bf4:0x5f9,_0x2dcda9:0x3e0,_0xc89d31:0x789,_0x5018eb:0x810,_0x56111d:0x736,_0x4ec09c:0x5ed,_0xe96496:0x6ea,_0xea3609:0x7,_0x18fd2a:0xee,_0x554584:0x129,_0x3f07d1:0x39,_0x5644bf:0x2d1,_0x5641e3:0x20c,_0x4e0d9d:0x1fa,_0x2cc0f2:0x1ee,_0x29222a:0xa3,_0x1f8a8f:0x14e,_0x38110c:0x8e,_0x517b19:0x4a,_0x5d4c25:0xf1,_0x24df9b:0x2a9,_0x321bef:0x5bd,_0xef8b7e:0x182,_0x321057:0x1f8,_0x483d66:0xa6,_0x54b69a:0xa7,_0xd60a53:0x584,_0x5a8838:0x436,_0x564bb9:0x2e4,_0x173739:0x640,_0x974c49:0x259,_0x206456:0x1da,_0x5d9782:0x70,_0x130f16:0x171,_0x1622bc:0x12e,_0x567ec9:0x197,_0x421990:0xcf,_0x10d75f:0x530,_0x16ba99:0x151},_0xbecd6b={_0x45ae29:0x5f},_0x4656a9={_0x2b6908:0x11c,_0x1659e7:0x130};function _0x2d2f6b(_0x34c973,_0x46b877,_0x403f61,_0x483bb2){return _0x4820c3(_0x34c973-0x183,_0x46b877-_0x4656a9._0x2b6908,_0x46b877,_0x403f61- -_0x4656a9._0x1659e7);}function _0x17c42f(_0x411bb6,_0x188054,_0x132f2c,_0x32d47c){return _0x211934(_0x411bb6- -0x3a2,_0x188054-0xba,_0x32d47c,_0x32d47c-_0xbecd6b._0x45ae29);}if(!Array[_0x2d2f6b(0x5ec,_0x2b8610._0x1aa8fb,0x564,0x60d)](_0x4ed060[_0x17c42f(0x1c7,_0x2b8610._0x355c51,_0x2b8610._0xb851b2,0x292)])||_0x4ed060[_0x2d2f6b(0x5c5,_0x2b8610._0x1f7890,_0x2b8610._0x252b8a,_0x2b8610._0x5646c4)][_0x17c42f(_0x2b8610._0x141de6,-0x7a,_0x2b8610._0x48227a,-_0x2b8610._0x4cd811)]<0x1||_0x4ed060[_0x2d2f6b(_0x2b8610._0x1c9673,_0x2b8610._0x593548,0x685,0x61a)][_0x2d2f6b(_0x2b8610._0x39ba19,_0x2b8610._0x35757d,0x545,_0x2b8610._0x26e845)]>0xa)throw new ToolExecutionError('Must\x20provide\x201-10\x20questions',{'error':_0x17c42f(-0x53,_0x2b8610._0x54c9fe,-_0x2b8610._0x575d0d,-0x184)});for(let _0x12906c=0x0;_0x12906c<_0x4ed060[_0x17c42f(0x1c7,0x228,_0x2b8610._0x548b52,_0x2b8610._0x41e21d)][_0x2d2f6b(_0x2b8610._0x3ea7d4,0x50b,0x545,0x4c7)];_0x12906c+=0x1){const _0x3b6a05=_0x4ed060[_0x17c42f(0x1c7,_0x2b8610._0x57fb3e,_0x2b8610._0x626838,0x18e)][_0x12906c];if(!_0x3b6a05[_0x2d2f6b(_0x2b8610._0x478be5,0x512,0x49e,0x5cc)]||typeof _0x3b6a05[_0x2d2f6b(_0x2b8610._0x1d9bf4,0x40f,0x49e,_0x2b8610._0x2dcda9)]!==_0x17c42f(-0x3,0x62,-0x86,-0x8a))throw new ToolExecutionError(_0x2d2f6b(_0x2b8610._0xc89d31,_0x2b8610._0x5018eb,0x6b3,_0x2b8610._0x56111d)+(_0x12906c+0x1)+_0x2d2f6b(_0x2b8610._0x4ec09c,0x61e,0x681,_0x2b8610._0xe96496));if(!_0x3b6a05['topic']||typeof _0x3b6a05[_0x17c42f(0xb6,_0x2b8610._0xea3609,-0x3f,0x12b)]!==_0x17c42f(-0x3,-_0x2b8610._0x18fd2a,-_0x2b8610._0x554584,-_0x2b8610._0x3f07d1))throw new ToolExecutionError(_0x17c42f(0x1f5,0x203,_0x2b8610._0x5644bf,_0x2b8610._0x5641e3)+(_0x12906c+0x1)+_0x17c42f(_0x2b8610._0x4e0d9d,0xc9,0x1b0,_0x2b8610._0x2cc0f2));if(_0x3b6a05['topic']['length']>0x1e)throw new ToolExecutionError('Question\x20'+(_0x12906c+0x1)+_0x17c42f(_0x2b8610._0x29222a,_0x2b8610._0x1f8a8f,-_0x2b8610._0x38110c,-_0x2b8610._0x517b19)+_0x3b6a05[_0x2d2f6b(0x654,0x69c,0x574,0x439)]['length']);if(!Array['isArray'](_0x3b6a05[_0x17c42f(0x182,0x2a4,_0x2b8610._0x5d4c25,_0x2b8610._0x24df9b)])||_0x3b6a05[_0x2d2f6b(0x601,0x6b7,0x640,0x76a)][_0x2d2f6b(0x50d,_0x2b8610._0x321bef,0x545,0x5e7)]<0x2||_0x3b6a05[_0x17c42f(_0x2b8610._0xef8b7e,_0x2b8610._0x321057,_0x2b8610._0x483d66,0x1fa)][_0x17c42f(_0x2b8610._0x141de6,_0x2b8610._0x18fd2a,0x14e,0xb8)]>0x4)throw new ToolExecutionError(_0x17c42f(0x1f5,0x25e,_0x2b8610._0x54b69a,0x120)+(_0x12906c+0x1)+_0x2d2f6b(0x46e,_0x2b8610._0xd60a53,_0x2b8610._0x5a8838,_0x2b8610._0x564bb9));for(let _0x54f1ab=0x0;_0x54f1ab<_0x3b6a05[_0x2d2f6b(0x713,0x598,_0x2b8610._0x173739,0x65e)]['length'];_0x54f1ab+=0x1){const _0x3a683f=_0x3b6a05[_0x17c42f(_0x2b8610._0xef8b7e,_0x2b8610._0x974c49,_0x2b8610._0x5644bf,_0x2b8610._0x206456)][_0x54f1ab];if(!_0x3a683f[_0x17c42f(_0x2b8610._0x5d9782,_0x2b8610._0x130f16,_0x2b8610._0x1622bc,0xf1)]||!_0x3a683f['description'])throw new ToolExecutionError('Question\x20'+(_0x12906c+0x1)+_0x17c42f(_0x2b8610._0x567ec9,_0x2b8610._0x421990,0x72,0x24a)+(_0x54f1ab+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x3b6a05[_0x2d2f6b(_0x2b8610._0x10d75f,0x5fe,0x507,0x4e2)]!=='boolean')throw new ToolExecutionError('Question\x20'+(_0x12906c+0x1)+_0x17c42f(-0xb,_0x2b8610._0x16ba99,0xad,0xc5));}}function buildQuestions(_0x24c84e){const _0x4cfe88={_0x48d7f3:0x12,_0x227d6d:0x150},_0x425f36={_0x3bfdcc:0x5c};function _0x506826(_0x16b40e,_0x148809,_0x261f87,_0x1ca6b2){return _0x211934(_0x1ca6b2-0xf7,_0x148809-_0x425f36._0x3bfdcc,_0x261f87,_0x1ca6b2-0x181);}function _0xb3fbfb(_0x564fc5,_0x4cf90a,_0x55acea,_0x9453d5){return _0x211934(_0x564fc5- -0x3c7,_0x4cf90a-_0x4cfe88._0x48d7f3,_0x9453d5,_0x9453d5-_0x4cfe88._0x227d6d);}return _0x24c84e['questions']['map']((_0x5b6fd7,_0x5a2b03)=>({'id':'q'+_0x5a2b03,'question':_0x5b6fd7[_0xb3fbfb(-0x45,-0x18a,0x106,-0x16e)],'topic':_0x5b6fd7['topic'],'options':_0x5b6fd7[_0x506826(0x4c4,0x6d5,0x658,0x61b)],'multiSelect':_0x5b6fd7[_0x506826(0x553,0x5f7,0x5eb,0x4e2)]}));}function createResult(_0x5955dc,_0x5e3697,_0x3ee3fc){const _0x3a312d={_0x4360cc:0x4d3,_0x224613:0x373,_0x46c1af:0x222},_0x46953c={_0x31a81c:0x29f};function _0x1f6421(_0x4346c6,_0x1abf8e,_0x51707a,_0x4407ce){return _0x4820c3(_0x4346c6-0x4f,_0x1abf8e-0xfe,_0x4346c6,_0x4407ce- -_0x46953c._0x31a81c);}function _0x4600f1(_0x40cd43,_0x13d36e,_0x2a5514,_0x1b02f8){return _0x4820c3(_0x40cd43-0x52,_0x13d36e-0x70,_0x40cd43,_0x2a5514- -0x475);}const _0x3034c6={'questionId':_0x5955dc,'questionCount':_0x5e3697,'answers':_0x3ee3fc};return createToolOutput(_0x1f6421(0x39d,_0x3a312d._0x4360cc,0x2d2,_0x3a312d._0x224613)+JSON[_0x4600f1(_0x3a312d._0x46c1af,0x2e8,0x33a,0x305)](_0x3ee3fc,null,0x2),_0x3034c6);}function createAskUserTool(){const _0xd9e8d4={_0x8c5f4b:0x5fc,_0x1fd6dd:0x4d6,_0x443ce1:0x589,_0x431246:0x48e,_0x3b1bd5:0x485,_0x5d585f:0x497,_0x2cca11:0x388,_0x268ea8:0x3bd,_0xdba57b:0x3c8,_0x4d3772:0x3b6,_0x43300b:0x483,_0x45043a:0x4fb,_0x476946:0x45c,_0x181659:0x412,_0x2835d5:0x380,_0x47e657:0x3c1,_0x2ae8ca:0x4b9,_0x3df850:0x3f3,_0x230516:0x607,_0x2680c9:0x669,_0x31a968:0x592,_0x33053c:0x3b1,_0x764757:0x441,_0x34ed78:0x65c,_0x30362a:0x4ba,_0x46fca2:0x5d1,_0x1252a8:0x5e7,_0x37ec45:0x431,_0x9f0a21:0x54a},_0x122c44={_0x2f5445:0x127,_0x55e036:0x281,_0x8d2169:0x196,_0x2ba0bf:0x6b,_0x160fdc:0x6e,_0x4ed917:0x52,_0x51fbba:0x1b8,_0x38cda4:0x42,_0x5e879c:0xbc,_0x46cf0d:0xa6,_0x151cfb:0x13e,_0x3257ae:0x4a},_0x22d2b9={_0x4bdb31:0x426,_0x161adc:0xdb},_0x8ea2dd={_0x23851b:0x42,_0x24ffdb:0x392,_0xa08975:0x5e},_0x21818f={_0x3f2186:0x118,_0x376836:0x154},_0x4f2466={_0x370eca:0x1f,_0x2d4e30:0x2a};function _0x58bf3d(_0x4d42b2,_0x93cd56,_0x507ba7,_0x37b194){return _0x211934(_0x507ba7- -_0x4f2466._0x370eca,_0x93cd56-0x3,_0x4d42b2,_0x37b194-_0x4f2466._0x2d4e30);}function _0x809b4a(_0xdc5f63,_0x17c42b,_0x18f1bd,_0x2b6d86){return _0x4820c3(_0xdc5f63-0x2d,_0x17c42b-_0x21818f._0x3f2186,_0x2b6d86,_0xdc5f63- -_0x21818f._0x376836);}return defineTool({'name':_0x58bf3d(_0xd9e8d4._0x8c5f4b,_0xd9e8d4._0x1fd6dd,_0xd9e8d4._0x443ce1,0x500),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':'object','properties':{'questions':{'type':_0x809b4a(_0xd9e8d4._0x431246,_0xd9e8d4._0x3b1bd5,0x48b,0x5e8),'items':{'type':'object','properties':{'question':{'type':_0x809b4a(_0xd9e8d4._0x5d585f,_0xd9e8d4._0x2cca11,_0xd9e8d4._0x268ea8,0x50b)},'topic':{'type':_0x809b4a(_0xd9e8d4._0x5d585f,0x514,0x5bb,_0xd9e8d4._0xdba57b)},'options':{'type':_0x58bf3d(_0xd9e8d4._0x4d3772,0x375,0x377,0x4ab),'items':{'type':_0x809b4a(_0xd9e8d4._0x43300b,0x34a,_0xd9e8d4._0x45043a,0x58c),'properties':{'label':{'type':_0x809b4a(0x497,0x598,_0xd9e8d4._0x476946,0x394)},'description':{'type':_0x58bf3d(_0xd9e8d4._0x181659,0x4b0,_0xd9e8d4._0x2835d5,_0xd9e8d4._0x47e657)}},'required':[_0x58bf3d(0x4a7,_0xd9e8d4._0x2ae8ca,_0xd9e8d4._0x3df850,0x548),_0x809b4a(_0xd9e8d4._0x230516,0x512,_0xd9e8d4._0x2680c9,_0xd9e8d4._0x31a968)]}},'multiSelect':{'type':_0x58bf3d(0x335,_0xd9e8d4._0x33053c,_0xd9e8d4._0x764757,0x53e)}},'required':[_0x809b4a(0x47a,0x3ba,0x3c7,0x39a),_0x809b4a(0x550,0x52b,0x544,_0xd9e8d4._0x34ed78),'options',_0x809b4a(0x4e3,0x500,_0xd9e8d4._0x30362a,_0xd9e8d4._0x46fca2)]}},'answers':{'type':'object','properties':{}}},'required':[_0x58bf3d(_0xd9e8d4._0x1252a8,_0xd9e8d4._0x37ec45,_0xd9e8d4._0x9f0a21,0x41c)]},async *'execute'(_0x3f4d3b,_0x439e31){const _0x4601b6=_0x3f4d3b;validateInput(_0x4601b6);const _0x497cf8=_0x439e31[_0x1586c1(-_0x122c44._0x2f5445,-_0x122c44._0x55e036,-_0x122c44._0x8d2169,-0x160)]??createQuestionId();if(_0x4601b6['answers']&&Object['keys'](_0x4601b6[_0x1de057(_0x122c44._0x2ba0bf,-0x1c,-_0x122c44._0x160fdc,_0x122c44._0x4ed917)])['length']>0x0)return createResult(_0x497cf8,_0x4601b6[_0x1de057(0x20b,0x213,0x2f1,_0x122c44._0x51fbba)]['length'],_0x4601b6[_0x1586c1(-_0x122c44._0x38cda4,0x64,0x70,-_0x122c44._0x5e879c)]);function _0x1de057(_0x11e45f,_0x276f4f,_0x4c3e56,_0x158f57){return _0x58bf3d(_0x11e45f,_0x276f4f-_0x8ea2dd._0x23851b,_0x158f57- -_0x8ea2dd._0x24ffdb,_0x158f57-_0x8ea2dd._0xa08975);}if(!_0x439e31['askUser'])throw new ToolExecutionError('Context\x20does\x20not\x20support\x20user\x20questions');const _0x47b7a6=buildQuestions(_0x4601b6),_0x302a74=await _0x439e31[_0x1586c1(_0x122c44._0x46cf0d,0x22,-0x6b,0x1d6)]({'questionId':_0x497cf8,'questions':_0x47b7a6});function _0x1586c1(_0xf64a19,_0x5600a6,_0x20dcd7,_0x13469a){return _0x58bf3d(_0x13469a,_0x5600a6-0x1a1,_0xf64a19- -_0x22d2b9._0x4bdb31,_0x13469a-_0x22d2b9._0x161adc);}yield createResult(_0x497cf8,_0x4601b6[_0x1de057(0x1e0,0x1c4,0x212,0x1b8)][_0x1586c1(-0x1c,-0x47,-_0x122c44._0x151cfb,_0x122c44._0x3257ae)],_0x302a74);}});}import{spawn as _0x1a7104}from'child_process';import{statSync}from'fs';import*as _0x44f556 from'os';import*as _0x429d7e from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0xde39df from'path';function isPathInside(_0x6240eb,_0x4e239a){const _0x2e7863={_0x4d7ac4:0x258,_0x13852e:0x1d4,_0x4528a6:0x272,_0x3e8fd0:0x2e5,_0x2cd6b0:0x3b7,_0x2ff299:0x3c9,_0x1931d6:0x1df,_0x72177f:0x2f3,_0x2f4aec:0x1de},_0x2db7dd={_0x20027a:0x137,_0x516ed5:0x1c5,_0x1347fb:0x41c},_0x454f7b={_0x2662ee:0x1f1};function _0x26d74c(_0x4e88ee,_0x44d903,_0x40962f,_0x437655){return _0x4820c3(_0x4e88ee-0x1e1,_0x44d903-0x2a,_0x44d903,_0x40962f- -_0x454f7b._0x2662ee);}const _0x3addeb=_0xde39df[_0x1412d9(0x29e,0x3f7,0x241,_0x2e7863._0x4d7ac4)](_0x6240eb);function _0x1412d9(_0x51b134,_0x507f69,_0x46ea1b,_0x451a87){return _0x4820c3(_0x51b134-_0x2db7dd._0x20027a,_0x507f69-_0x2db7dd._0x516ed5,_0x46ea1b,_0x51b134- -_0x2db7dd._0x1347fb);}const _0x4de4e4=_0xde39df[_0x1412d9(_0x2e7863._0x13852e,0x2b0,0x1ad,_0x2e7863._0x4528a6)](_0x3addeb,_0x4e239a);return _0x4de4e4===''||!_0x4de4e4[_0x1412d9(_0x2e7863._0x3e8fd0,_0x2e7863._0x2cd6b0,0x29b,_0x2e7863._0x2ff299)]('..')&&!_0xde39df[_0x1412d9(_0x2e7863._0x1931d6,0x2d3,_0x2e7863._0x72177f,_0x2e7863._0x2f4aec)](_0x4de4e4);}function resolveWorkspacePath(_0x3c7f51,_0x1ecd0e){return resolveAllowedPath(_0x3c7f51,[],_0x1ecd0e);}function resolveAllowedPath(_0x9297d4,_0x2ffa92,_0x10b810){const _0x1ace30={_0x293e14:0x5aa,_0x4fa30e:0x81b,_0x581cc5:0x6eb,_0x2d44d8:0x4bf,_0x2fb2ae:0x783,_0x24c5e2:0x50b,_0xcc7f3e:0x482},_0x3da479={_0x29d7ec:0x91},_0x3a4cdf={_0x15c5e8:0x58,_0x35dbcf:0x31},_0x5781dc=_0xde39df[_0x723e1e(_0x1ace30._0x293e14,_0x1ace30._0x4fa30e,0x5b5,_0x1ace30._0x581cc5)](_0x9297d4),_0x2f3fa1=_0xde39df['resolve'](_0x5781dc,_0x10b810);function _0x723e1e(_0x3cdd77,_0x52ab20,_0x27d124,_0x154dd8){return _0x4820c3(_0x3cdd77-_0x3a4cdf._0x15c5e8,_0x52ab20-0xec,_0x3cdd77,_0x154dd8-_0x3a4cdf._0x35dbcf);}function _0x16ee17(_0x34d63b,_0x9f0cf4,_0x5bb7bc,_0x57b9ab){return _0x4820c3(_0x34d63b-0x15b,_0x9f0cf4-_0x3da479._0x29d7ec,_0x34d63b,_0x5bb7bc- -0xb3);}const _0x488773=[_0x5781dc,..._0x2ffa92[_0x16ee17(0x3c7,0x5e0,_0x1ace30._0x2d44d8,0x588)](_0x41f1d1=>_0xde39df[_0x16ee17(0x5b9,0x742,0x607,0x56c)](_0x41f1d1))];if(_0x488773[_0x723e1e(0x6d0,_0x1ace30._0x2fb2ae,0x69a,0x6e0)](_0x54d98e=>isPathInside(_0x54d98e,_0x2f3fa1)))return _0x2f3fa1;throw new ToolExecutionError(_0x16ee17(_0x1ace30._0x24c5e2,_0x1ace30._0xcc7f3e,0x5d7,0x4cc)+_0x10b810,{'path':_0x10b810,'rootDir':_0x5781dc,'allowedDirs':_0x488773});}async function assertWorkspaceFile(_0x2b6797){const _0x58d116={_0x21df97:0x49f,_0x3d1476:0x34};function _0x27d53a(_0x59aafd,_0x5b4c3d,_0x4f6645,_0x4d8817){return _0x211934(_0x4f6645- -_0x58d116._0x21df97,_0x5b4c3d-0x1f2,_0x59aafd,_0x4d8817-_0x58d116._0x3d1476);}const _0x2587db=await stat(_0x2b6797);if(!_0x2587db[_0x27d53a(-0x9,-0x1a7,-0x156,-0x15b)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x2b6797,{'path':_0x2b6797});}function isProbablyBinary(_0x51de4f){const _0x49ab05={_0x1ad213:0x162},_0x1fa839={_0x2f4cef:0x325};function _0x3804d1(_0x619889,_0x7647cd,_0x3f6cdc,_0x1c46fb){return _0x211934(_0x1c46fb- -_0x1fa839._0x2f4cef,_0x7647cd-0x1be,_0x7647cd,_0x1c46fb-0x4e);}return _0x51de4f[_0x3804d1(0x4c,0x7,0x150,_0x49ab05._0x1ad213)](0x0);}var DEFAULT_DESCRIPTION=_0x4820c3(0x6b3,0x6dd,0x751,0x810),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x1a996c){return _0x1a996c instanceof Error;}function shellExists(_0x4a68be){const _0x4683fd={_0x131386:0x67b,_0x1f8d38:0x648,_0x18e0f1:0x600},_0x35cfc5={_0x43f3ad:0x170,_0x3e72d5:0x11b};function _0x5a9824(_0x4f72ff,_0x5a5256,_0x3bfa8a,_0x42069b){return _0x4820c3(_0x4f72ff-_0x35cfc5._0x43f3ad,_0x5a5256-_0x35cfc5._0x3e72d5,_0x5a5256,_0x4f72ff- -0x213);}try{const _0x339472=statSync(_0x4a68be);return _0x339472['isFile']()&&(_0x339472[_0x5a9824(0x522,_0x4683fd._0x131386,_0x4683fd._0x1f8d38,_0x4683fd._0x18e0f1)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x33ecb0){const _0x188b4b={_0x52e630:0x2f,_0x490a52:0x3f,_0x461a4b:0x542,_0x56af9a:0x583,_0x5e227a:0x4f7,_0x5c59d7:0x40c,_0x254957:0x38e,_0x41625a:0x2b,_0x59b480:0x13,_0x5d46d8:0xe2,_0x5dba63:0x153,_0xcb5b71:0xe,_0x5b32c3:0x45,_0xf77b7e:0x162,_0xf9b76a:0xd,_0x8d082e:0x119,_0x2f2bd0:0x424,_0x553156:0x45e,_0x2df434:0x222,_0x557371:0xe7,_0x2ed0da:0x38c,_0x229fae:0x2ea},_0x59a589={_0x53d312:0x1b,_0x36a9eb:0x73},_0x1263c4={_0x45defa:0x68,_0xb110fe:0x67b};if(_0x33ecb0)return _0x33ecb0;function _0x103f3e(_0x32afa7,_0x45744e,_0x205e84,_0x4f2af7){return _0x4820c3(_0x32afa7-0x109,_0x45744e-_0x1263c4._0x45defa,_0x32afa7,_0x205e84- -_0x1263c4._0xb110fe);}function _0x21d0e6(_0x5c3ab9,_0x458f0b,_0x48389b,_0x80c321){return _0x211934(_0x48389b- -_0x59a589._0x53d312,_0x458f0b-0xad,_0x80c321,_0x80c321-_0x59a589._0x36a9eb);}if(_0x44f556[_0x103f3e(0x88,-_0x188b4b._0x52e630,0x15,_0x188b4b._0x490a52)]()===_0x21d0e6(0x57e,0x57c,_0x188b4b._0x461a4b,0x460))return process[_0x21d0e6(_0x188b4b._0x56af9a,0x31e,0x424,_0x188b4b._0x5e227a)][_0x21d0e6(0x32a,_0x188b4b._0x5c59d7,0x36e,_0x188b4b._0x254957)]||_0x103f3e(-0x1eb,0x34,-0xef,-0x130);const _0x451cb2=[_0x103f3e(-0xc3,-_0x188b4b._0x41625a,_0x188b4b._0x59b480,-0xeb),_0x103f3e(-_0x188b4b._0x5d46d8,_0x188b4b._0x5dba63,0x32,_0x188b4b._0xcb5b71),_0x103f3e(0xc0,0xad,-0x7d,_0x188b4b._0x5b32c3),_0x103f3e(-0x126,_0x188b4b._0xf77b7e,_0x188b4b._0xf9b76a,_0x188b4b._0x8d082e)];for(const _0x3d5d59 of _0x451cb2){if(shellExists(_0x3d5d59))return _0x3d5d59;}const _0x4f92a0=process[_0x21d0e6(0x437,0x3f6,_0x188b4b._0x2f2bd0,_0x188b4b._0x553156)][_0x103f3e(_0x188b4b._0x2df434,-0x5d,_0x188b4b._0x557371,-0x62)];if(_0x4f92a0&&shellExists(_0x4f92a0))return _0x4f92a0;return _0x21d0e6(_0x188b4b._0x2ed0da,0x537,0x427,_0x188b4b._0x229fae);}function buildShellArgs(_0x1a243c,_0xfe0398){const _0x347ba6={_0x5b5b50:0x17d,_0x5612bc:0x249,_0x44356f:0x3e,_0x18e181:0x5f,_0x4d29da:0x3f,_0xd53ae5:0x9,_0x4e1b7e:0x1eb,_0x3f6a46:0x3d,_0x30f191:0x46},_0x5b8904={_0x4d3a41:0x74a},_0x21a6df={_0x64308d:0x2b4};function _0x53617d(_0x11b12e,_0x59a250,_0x4e5c5d,_0x475dec){return _0x211934(_0x475dec- -_0x21a6df._0x64308d,_0x59a250-0x63,_0x59a250,_0x475dec-0x199);}if(_0x44f556[_0x53617d(_0x347ba6._0x5b5b50,_0x347ba6._0x5612bc,_0x347ba6._0x44356f,0x190)]()===_0xd40ac7(_0x347ba6._0x18e181,-0xf9,_0x347ba6._0x4d29da,-_0x347ba6._0xd53ae5)){const _0x5c10d1=/cmd(\.exe)?$/i[_0x53617d(_0x347ba6._0x4e1b7e,0x2df,0x2c5,0x20e)](_0xfe0398);return _0x5c10d1?['/d','/s','/c',_0x1a243c]:[_0xd40ac7(-0xa4,-0x1d,-0xc3,-0xb6),_0x53617d(-_0x347ba6._0x3f6a46,-0x21,0x6e,0x71),_0xd40ac7(-0xb2,_0x347ba6._0x30f191,-0x201,-0x12b),_0x1a243c];}function _0xd40ac7(_0x25a406,_0x147ecd,_0x5a68d3,_0x56958b){return _0x4820c3(_0x25a406-0x74,_0x147ecd-0x78,_0x5a68d3,_0x25a406- -_0x5b8904._0x4d3a41);}return['-c',_0x1a243c];}function resolveCarriageReturns(_0x20df1b){const _0x42ba77={_0x1815de:0x282},_0x183fff={_0x463c33:0x5b9,_0xb2e38b:0x55a,_0x19d8b0:0x54a,_0x38a962:0x5f2},_0x541496={_0x3eb183:0x385},_0x1d6b84={_0x5ea247:0x305},_0x544f7a={_0x162e42:0x35};function _0xbf8992(_0x6c33f6,_0x595c1b,_0x30c432,_0x36d871){return _0x211934(_0x30c432- -_0x544f7a._0x162e42,_0x595c1b-0xec,_0x36d871,_0x36d871-0x24);}return _0x20df1b['split']('\x0a')['map'](_0x3040e0=>{if(!_0x3040e0[_0x1587ed(0x7e9,_0x183fff._0x463c33,0x6b5,0x789)]('\x0d'))return _0x3040e0;const _0x26e7c8=_0x3040e0[_0x355897(0x502,_0x183fff._0xb2e38b,_0x183fff._0x19d8b0,0x561)]('\x0d');function _0x355897(_0x1f3b54,_0x335d36,_0x870385,_0x325356){return _0x4629(_0x870385-_0x1d6b84._0x5ea247,_0x1f3b54);}function _0x1587ed(_0x266e6a,_0x367b2d,_0x226991,_0x4533f1){return _0x4629(_0x226991-_0x541496._0x3eb183,_0x266e6a);}return _0x26e7c8[_0x26e7c8[_0x355897(0x70e,0x6ff,0x5d7,_0x183fff._0x38a962)]-0x1]??'';})[_0xbf8992(0x4c2,0x442,0x37c,_0x42ba77._0x1815de)]('\x0a');}function resolveBackspaces(_0x461022){const _0xc82425={_0x4f095f:0x61d,_0x47b774:0x660,_0x3b2afc:0x700,_0x3db912:0x553,_0x34e581:0x7a1,_0x6eced9:0x66e,_0x4b6c45:0x704},_0x24c1ff={_0xdec1cb:0xeb},_0x52ea96={_0x289340:0x197,_0x41380e:0x154};function _0x155b1d(_0x133b04,_0x457eff,_0x467ba9,_0x289780){return _0x4820c3(_0x133b04-_0x52ea96._0x289340,_0x457eff-_0x52ea96._0x41380e,_0x133b04,_0x457eff- -0x365);}function _0x3749d0(_0x1971ca,_0x4d6880,_0x2ee552,_0x12830c){return _0x4820c3(_0x1971ca-_0x24c1ff._0xdec1cb,_0x4d6880-0x2e,_0x4d6880,_0x1971ca- -0x70);}const _0x23c3eb=[];for(const _0x111142 of Array[_0x3749d0(0x60d,0x62f,0x5cc,0x605)](_0x461022)){_0x111142==='\x08'?_0x23c3eb[_0x3749d0(_0xc82425._0x4f095f,_0xc82425._0x47b774,_0xc82425._0x3b2afc,_0xc82425._0x3db912)]():_0x23c3eb[_0x3749d0(_0xc82425._0x34e581,0x701,_0xc82425._0x6eced9,_0xc82425._0x4b6c45)](_0x111142);}return _0x23c3eb[_0x3749d0(0x58d,0x682,0x48a,0x581)]('');}function stripAnsiAndControls(_0x3f9260){const _0x4e41cf={_0x59ce1e:0x4a7,_0x19854b:0x44a,_0xce04ad:0x3a5,_0xd60b49:0x541,_0x2e6bd6:0x407,_0x54cf06:0x4a1,_0xc81a02:0x32a,_0x12a72f:0x41d,_0x30d30a:0x4bc,_0x39f35a:0x292,_0x228b8f:0x3b3,_0x1b2b13:0x442,_0xc903ab:0x41c,_0x4bd42f:0x441,_0x192f3d:0x558},_0x4bc3fe={_0x531a9d:0x15f},_0x5d9af9={_0x2c7dc5:0xcb,_0x2d8b09:0x264};_0x3f9260=resolveCarriageReturns(_0x3f9260);function _0x3c7ced(_0x4548c9,_0x366076,_0x3c1be1,_0x15df19){return _0x4820c3(_0x4548c9-_0x5d9af9._0x2c7dc5,_0x366076-0xa0,_0x3c1be1,_0x15df19- -_0x5d9af9._0x2d8b09);}_0x3f9260=resolveBackspaces(_0x3f9260),_0x3f9260=stripVTControlCharacters(_0x3f9260);const _0x2b67da='\x1b',_0x3e765f='\x07';_0x3f9260=_0x3f9260[_0x543b5b(0x3c5,0x3fa,_0x4e41cf._0x59ce1e,_0x4e41cf._0x19854b)](new RegExp(';[^'+_0x3e765f+_0x543b5b(0x4b7,0x403,0x393,0x4dd)+_0x3e765f,'g'),''),_0x3f9260=_0x3f9260['replace'](new RegExp(_0x3c7ced(0x363,0x506,_0x4e41cf._0xce04ad,0x4c1)+_0x2b67da+'\x5c\x5c','g'),''),_0x3f9260=_0x3f9260[_0x3c7ced(0x4d7,_0x4e41cf._0xd60b49,0x30a,0x41d)](new RegExp(_0x3e765f,'g'),''),_0x3f9260=_0x3f9260[_0x543b5b(0x3dc,0x59c,0x527,0x44a)](new RegExp(_0x2b67da+_0x543b5b(_0x4e41cf._0x2e6bd6,0x410,0x442,0x3a6)+_0x2b67da+'\x5c\x5c','g'),''),_0x3f9260=_0x3f9260[_0x3c7ced(0x4c9,_0x4e41cf._0x54cf06,_0x4e41cf._0xc81a02,_0x4e41cf._0x12a72f)](new RegExp(_0x2b67da+_0x3c7ced(0x2c4,_0x4e41cf._0x30d30a,_0x4e41cf._0x39f35a,_0x4e41cf._0x228b8f),'g'),''),_0x3f9260=_0x3f9260[_0x3c7ced(_0x4e41cf._0x1b2b13,_0x4e41cf._0xc903ab,0x529,0x41d)](/[\u0080-\u009F]/g,''),_0x3f9260=_0x3f9260[_0x3c7ced(0x317,0x4af,0x499,0x41d)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x3f9260=_0x3f9260[_0x3c7ced(_0x4e41cf._0x4bd42f,0x3e3,_0x4e41cf._0x192f3d,0x41d)](/[\u23CE\u2424]/g,'');function _0x543b5b(_0x555070,_0x483f48,_0x1cbb33,_0x3acd8a){return _0x211934(_0x3acd8a-0x15,_0x483f48-_0x4bc3fe._0x531a9d,_0x483f48,_0x3acd8a-0x114);}return _0x3f9260;}function resolveWorkingDirectory(_0x482475,_0x1b2503,_0x429660){const _0xffef19={_0x1faec1:0x522,_0xbb8765:0x63d},_0x19d7bf=resolveAllowedPath(_0x1b2503,_0x429660,_0x482475??'.');function _0x45b7b0(_0x4fc05e,_0x58648b,_0x29db46,_0xa60ccf){return _0x4820c3(_0x4fc05e-0x1b2,_0x58648b-0x79,_0xa60ccf,_0x58648b- -0x1e1);}try{const _0x1c404c=statSync(_0x19d7bf);if(!_0x1c404c[_0x45b7b0(0x440,0x58c,_0xffef19._0x1faec1,_0xffef19._0xbb8765)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x19d7bf,{'cwd':_0x19d7bf});return _0x19d7bf;}catch(_0x57c7a5){if(_0x57c7a5 instanceof ToolExecutionError)throw _0x57c7a5;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x19d7bf,{'cwd':_0x19d7bf});}}function killProcessGroup(_0x48c075,_0x3f19f0,_0x38aa4e='SIGKILL'){const _0x583bfc={_0x1313ce:0x1d0,_0x52363e:0xf9,_0x4d8a7d:0x19c,_0x539ab0:0x26f,_0x230db6:0x32c,_0xc1c4dd:0x334,_0x1c8b2c:0x3a8,_0x5da9d6:0x438,_0x1544ab:0x349,_0x4cead1:0x420,_0x4f7d08:0x383,_0x47f6f4:0x3ed,_0xc2b54f:0x520,_0x395e3d:0x3ed,_0x5f3ed1:0x576,_0x42ba3e:0x2fb,_0x33a3b0:0xe4},_0x479680={_0x366755:0xee,_0x56f1c9:0x6d,_0x283fab:0x143},_0x909671={_0x150387:0x321,_0x3aa097:0x7c,_0x43f4ca:0x1d7};function _0x21570a(_0x131950,_0x2b3b0c,_0x1a1049,_0x29af8f){return _0x211934(_0x1a1049- -_0x909671._0x150387,_0x2b3b0c-_0x909671._0x3aa097,_0x29af8f,_0x29af8f-_0x909671._0x43f4ca);}if(!_0x48c075['pid'])return;function _0x573744(_0x216bbb,_0x380c86,_0x4ae9d6,_0x41f44f){return _0x211934(_0x216bbb- -_0x479680._0x366755,_0x380c86-_0x479680._0x56f1c9,_0x4ae9d6,_0x41f44f-_0x479680._0x283fab);}if(_0x3f19f0)try{_0x1a7104(_0x21570a(0x31,_0x583bfc._0x1313ce,_0x583bfc._0x52363e,_0x583bfc._0x4d8a7d),[_0x573744(0x266,0x354,0x3b7,_0x583bfc._0x539ab0),_0x48c075[_0x573744(0x43d,_0x583bfc._0x230db6,_0x583bfc._0xc1c4dd,0x34f)][_0x573744(_0x583bfc._0x1c8b2c,_0x583bfc._0x5da9d6,_0x583bfc._0x1544ab,_0x583bfc._0x4cead1)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x48c075[_0x573744(0x413,0x3cc,0x47d,_0x583bfc._0x4f7d08)](_0x38aa4e);return;}try{process[_0x573744(0x413,_0x583bfc._0x47f6f4,0x530,_0x583bfc._0xc2b54f)](-_0x48c075[_0x573744(0x43d,_0x583bfc._0x395e3d,_0x583bfc._0x5f3ed1,0x58f)],_0x38aa4e);}catch{_0x48c075[_0x21570a(0x1d2,_0x583bfc._0x42ba3e,0x1e0,_0x583bfc._0x33a3b0)](_0x38aa4e);}}function appendChunk(_0x531590,_0x36db05,_0xd8690b,_0x3b3e74,_0x271029){const _0x538b14={_0x5ae9f8:0x99,_0xef51ff:0x1b2,_0x30741b:0x2f3,_0x38d1cd:0x32b},_0x41e87f={_0x423734:0x277,_0x49b64e:0x5c},_0x321eba={_0x4dc5e9:0xf,_0x51ad34:0x9c},_0xfbe854=_0x3b3e74?stripAnsiAndControls(_0xd8690b):_0xd8690b;function _0x1a8fbc(_0xd99a00,_0x31ce26,_0x31ba1d,_0x332f88){return _0x211934(_0x31ce26-_0x321eba._0x4dc5e9,_0x31ce26-0x7a,_0xd99a00,_0x332f88-_0x321eba._0x51ad34);}if(_0xfbe854[_0x3658e2(0x2fa,_0x538b14._0x5ae9f8,_0x538b14._0xef51ff,0x2bf)]===0x0)return;_0x531590[_0x3658e2(_0x538b14._0x30741b,_0x538b14._0x38d1cd,0x34e,0x489)](_0xfbe854);function _0x3658e2(_0x161e31,_0x5c71b0,_0x319a52,_0x3f01f3){return _0x211934(_0x319a52- -_0x41e87f._0x423734,_0x5c71b0-0x15e,_0x3f01f3,_0x3f01f3-_0x41e87f._0x49b64e);}_0x36db05['push'](_0xfbe854),_0x271029();}function createBashTool(_0x3231f2={}){const _0x8ef30a={_0x524107:0x73f,_0x2d892e:0x657,_0x33bb69:0x641,_0x1f8078:0x31e,_0xaaead7:0x33b,_0x4469aa:0x68a,_0x570a3f:0x8e,_0x3fdc5f:0x52d,_0x510ec8:0x65a,_0x4816b8:0x50f,_0x4a91aa:0x525,_0x2304d8:0x555,_0x40e552:0x67a,_0x34818e:0x35f,_0x4539bd:0x357,_0x10d663:0x2e5,_0xa8124d:0x1d3,_0x1d0640:0x12a,_0xd92525:0x285,_0x34e973:0x11d,_0x46438e:0x4e3,_0x54e8d8:0x51f,_0x592253:0x60f,_0x10c560:0x1d4,_0x450e56:0x20c},_0x1b763f={_0x3e4d22:0x3ed,_0x19ccb8:0x312,_0x13a0db:0x3ab,_0x3e8b08:0x2e7,_0x17743b:0x403,_0x579c2e:0x33f,_0x1ca100:0x284,_0xff15c6:0x4bb,_0x2cc4c5:0x467,_0x48f127:0x3a5,_0x25a65b:0x547,_0x370431:0x540,_0x297f04:0x4e3,_0x39571c:0x5e2,_0x284010:0x51c,_0x337345:0x404,_0x30fce5:0x583,_0x4bf9e0:0x541,_0x8bd6a7:0x437,_0x373e00:0x350,_0x4e0a0e:0x504,_0x9446b0:0x4fd,_0x23d6a0:0x515,_0x1ab787:0x5a7,_0x273489:0x18e,_0x57b81e:0x1b2,_0x4a013d:0x56b,_0x480b8a:0x448,_0x101603:0x301,_0x1f1d45:0x20,_0x2fe2ad:0x329,_0x550d7e:0x27d,_0x48fb8f:0x383,_0x22d197:0x316,_0x8c754a:0x4d4,_0x2f9183:0x401,_0x279bfa:0x340,_0x5183b2:0x588,_0x5b7b78:0x403,_0x420e9e:0x3f6,_0x5e61a7:0x48c,_0xa9d611:0x47c,_0x1cd539:0x545,_0x1b166c:0x4ef,_0x439070:0x621,_0x43c8d5:0xa0,_0x5da0dd:0x117,_0x2a54b3:0x521,_0x23ced7:0x330,_0x1841da:0x407,_0x1d3042:0x71,_0x4241b2:0x18,_0x320e04:0x9b,_0x405cd8:0xbb,_0x1ae193:0x432,_0x3c49eb:0x4e4,_0x8331cc:0x369,_0x424fbe:0x4b1,_0x375eff:0x1c8,_0x260e8a:0x222,_0x401539:0x114,_0x2f8c14:0x14,_0x36702f:0x41,_0x3cbedc:0x2f4,_0x4b2749:0x2c8,_0x1abff6:0x42c,_0x516cca:0x302,_0x1f6e4e:0x3f5,_0x51fe8e:0x433,_0x165bfe:0x476,_0x55d17e:0x2b,_0x156275:0x114,_0x2bc546:0xb6,_0x178765:0x29,_0x2a57a4:0x493,_0x2e4974:0x8e,_0x516d20:0xc3,_0x2ab0ab:0x1e1,_0x4b3f8a:0x148,_0x54b91a:0x8a,_0x51fa78:0x8,_0x2206b5:0x4e,_0xd9363f:0xa8,_0x4a8bb2:0x17b,_0x702a3b:0x1e2,_0x26e6d9:0xfe,_0x45f220:0xa,_0x3551f1:0x456,_0x2987db:0x59a,_0x9b02fa:0x16c,_0x2110e6:0x26d,_0x2eaa0a:0x19e,_0x4a1c35:0x1d9,_0x3e39c9:0x20b},_0x146413={_0x1c2e13:0x651,_0x2aaf05:0x424,_0x55130c:0x50c,_0x1f453c:0x503,_0x19fb40:0x401},_0x55d6d2={_0x2405f0:0xac,_0x5d2fd1:0x16f,_0x52d0e1:0x7d},_0x10865d={_0x6105e2:0x39,_0x2f91da:0x57e},_0x248bfb={_0x3d0ec8:0x191,_0x2f0069:0x11d,_0x2a0be1:0x404},_0x5e5052={_0x489410:0x17d},_0xf430bf=_0x429d7e[_0x5a0f29(_0x8ef30a._0x524107,_0x8ef30a._0x2d892e,0x61d,_0x8ef30a._0x33bb69)](_0x3231f2[_0x20ee0f(_0x8ef30a._0x1f8078,0x215,0x337,_0x8ef30a._0xaaead7)]??process['cwd']()),_0x159cf4=(_0x3231f2[_0x5a0f29(0x748,0x5cc,_0x8ef30a._0x4469aa,0x762)]??[])[_0x20ee0f(0x1f1,0x16e,0x28f,_0x8ef30a._0x570a3f)](_0x5d9456=>_0x429d7e[_0x5a0f29(0x65b,0x539,0x61d,0x572)](_0x5d9456)),_0x21ab4b=_0x3231f2[_0x5a0f29(_0x8ef30a._0x3fdc5f,_0x8ef30a._0x510ec8,_0x8ef30a._0x4816b8,0x5cc)]??DEFAULT_TIMEOUT_MS;function _0x5a0f29(_0x1a9acc,_0x51889b,_0x21e53c,_0x57b15a){return _0x211934(_0x21e53c-0x1af,_0x51889b-_0x5e5052._0x489410,_0x51889b,_0x57b15a-0x1a2);}const _0x3af4a0=_0x3231f2['stripAnsi']??!![],_0x448122=_0x3231f2['name']??_0x5a0f29(_0x8ef30a._0x4a91aa,_0x8ef30a._0x2304d8,0x5f9,_0x8ef30a._0x40e552);function _0x20ee0f(_0x57b41c,_0x9bfc3,_0x3fbf37,_0x2a9ad0){return _0x4820c3(_0x57b41c-_0x248bfb._0x3d0ec8,_0x9bfc3-_0x248bfb._0x2f0069,_0x2a9ad0,_0x9bfc3- -_0x248bfb._0x2a0be1);}return defineTool({'name':_0x448122,'description':_0x3231f2[_0x20ee0f(_0x8ef30a._0x34818e,_0x8ef30a._0x4539bd,_0x8ef30a._0x10d663,0x3f5)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x20ee0f(0x314,_0x8ef30a._0xa8124d,0x142,_0x8ef30a._0x1d0640),'properties':{'command':{'type':_0x20ee0f(_0x8ef30a._0xd92525,0x1e7,_0x8ef30a._0x34e973,0xc0)},'cwd':{'type':'string'},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x5a0f29(_0x8ef30a._0x46438e,_0x8ef30a._0x54e8d8,_0x8ef30a._0x592253,0x589)}},'required':[_0x20ee0f(_0x8ef30a._0x10c560,0x2a6,_0x8ef30a._0x450e56,0x2d2)]},async *'execute'(_0x9703d0,_0x4224df){const _0x1229a0={_0x42d704:0x445,_0x54fb23:0x26e,_0x468f26:0x674,_0xa8a78d:0x55a,_0x521436:0x424},_0x3a2184={_0x25cf1c:0x14d,_0x569cd4:0x54a},_0x1a968f={_0x5ae8a5:0x1e1,_0x4352e2:0x5e},_0x28445c={_0x48a0e6:0x4c6,_0xd48ce3:0x48e},_0x4a2802={_0x4c5284:0x7a,_0x9237f1:0x3,_0x1d62b4:0x19a},_0x35c171={_0x39eb5a:0x195,_0x3887ab:0xb2},_0x96a292=_0x9703d0[_0x1fcc7d(0x39e,_0x1b763f._0x3e4d22,_0x1b763f._0x19ccb8,0x35a)]??_0x21ab4b;if(!Number[_0x1fcc7d(_0x1b763f._0x13a0db,_0x1b763f._0x3e8b08,0x335,_0x1b763f._0x17743b)](_0x96a292)||_0x96a292<0x1)throw new ToolExecutionError(_0x1fcc7d(0x3af,_0x1b763f._0x579c2e,_0x1b763f._0x1ca100,_0x1b763f._0xff15c6),{'command':_0x9703d0[_0x1fcc7d(_0x1b763f._0x2cc4c5,0x462,_0x1b763f._0x48f127,_0x1b763f._0x25a65b)]});throwIfAborted(_0x4224df[_0x1fcc7d(_0x1b763f._0x370431,_0x1b763f._0x297f04,_0x1b763f._0x39571c,_0x1b763f._0x284010)]);const _0x4773a6=resolveWorkingDirectory(_0x9703d0['cwd'],_0xf430bf,_0x159cf4),_0x4082f2=_0x9703d0[_0x1fcc7d(0x53d,_0x1b763f._0x337345,0x5e0,_0x1b763f._0x30fce5)]??![],_0x3bc6cf=resolveDefaultShell(_0x3231f2[_0x1fcc7d(_0x1b763f._0x4bf9e0,0x57b,0x4b2,_0x1b763f._0x8bd6a7)]),_0x4c0f14=buildShellArgs(_0x9703d0[_0x1fcc7d(0x467,_0x1b763f._0x373e00,_0x1b763f._0x4e0a0e,0x3a9)],_0x3bc6cf);function _0x16cfaa(_0x5b0cc9,_0x164ba5,_0x338ce1,_0x50ec23){return _0x5a0f29(_0x5b0cc9-_0x10865d._0x6105e2,_0x164ba5,_0x338ce1- -_0x10865d._0x2f91da,_0x50ec23-0x1);}const _0x2a4572=_0x44f556[_0x1fcc7d(0x44d,_0x1b763f._0x9446b0,_0x1b763f._0x23d6a0,_0x1b763f._0x1ab787)]()===_0x16cfaa(0x267,0xd2,_0x1b763f._0x273489,_0x1b763f._0x57b81e);let _0x29f136;try{_0x29f136=_0x1a7104(_0x3bc6cf,_0x4c0f14,{'cwd':_0x4773a6,'env':{...process[_0x1fcc7d(0x448,_0x1b763f._0x4a013d,0x464,0x385)],..._0x3231f2[_0x1fcc7d(_0x1b763f._0x480b8a,_0x1b763f._0x101603,0x3cf,0x328)]??{}},'stdio':_0x4082f2?[_0x16cfaa(-0x79,0x7d,-0xaf,_0x1b763f._0x1f1d45),_0x1fcc7d(_0x1b763f._0x2fe2ad,_0x1b763f._0x550d7e,0x33b,0x1f2),_0x1fcc7d(0x329,_0x1b763f._0x48fb8f,_0x1b763f._0x22d197,0x357)]:['ignore','pipe',_0x1fcc7d(0x5c8,0x5e3,_0x1b763f._0x8c754a,0x472)],'shell':![],'windowsHide':!![],'detached':!_0x2a4572});}catch(_0x517b53){if(isErrnoException(_0x517b53)&&_0x517b53[_0x1fcc7d(_0x1b763f._0x2f9183,0x4e4,0x517,_0x1b763f._0x279bfa)]===_0x1fcc7d(_0x1b763f._0x5183b2,0x4d6,0x5e5,0x6ac))throw new ToolExecutionError(_0x1fcc7d(_0x1b763f._0x5b7b78,_0x1b763f._0x420e9e,_0x1b763f._0x5e61a7,0x447)+_0x3bc6cf,{'command':_0x9703d0['command'],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});throw new ToolExecutionError(_0x517b53 instanceof Error?_0x517b53[_0x1fcc7d(0x520,_0x1b763f._0xa9d611,_0x1b763f._0x1cd539,0x4e4)]:String(_0x517b53),{'command':_0x9703d0['command'],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});}const _0x23d7ef=[],_0x29c353=[];function _0x1fcc7d(_0x1007e9,_0x403010,_0x517747,_0x11b2ed){return _0x5a0f29(_0x1007e9-_0x35c171._0x39eb5a,_0x403010,_0x1007e9- -0x1a6,_0x11b2ed-_0x35c171._0x3887ab);}const _0x22b5cc=new StringDecoder(_0x1fcc7d(_0x1b763f._0x1b166c,0x625,_0x1b763f._0x439070,0x58a)),_0x2ec93c=new StringDecoder(_0x16cfaa(_0x1b763f._0x43c8d5,0x26b,_0x1b763f._0x5da0dd,0xe));let _0x5edb92,_0x4846d1=![],_0xe17f5d;const _0x4dc8e9=()=>{if(!_0x5edb92)return;const _0x3d4e7d=_0x5edb92;_0x5edb92=void 0x0,_0x3d4e7d();},_0x4b945b=async()=>{if(_0x29c353['length']>0x0||_0x4846d1)return;await new Promise(_0x10e5a0=>{_0x5edb92=_0x10e5a0;});},_0x3a9c30=_0x35205c=>{function _0x2d4bbc(_0x2fd643,_0x292710,_0x4995c6,_0x16f714){return _0x1fcc7d(_0x16f714-_0x4a2802._0x4c5284,_0x4995c6,_0x4995c6-_0x4a2802._0x9237f1,_0x16f714-_0x4a2802._0x1d62b4);}appendChunk(_0x23d7ef,_0x29c353,_0x22b5cc[_0x2d4bbc(_0x28445c._0x48a0e6,0x490,_0x28445c._0xd48ce3,0x55a)](_0x35205c),_0x3af4a0,_0x4dc8e9);},_0x48eec2=_0x3a5630=>{function _0x153bd2(_0x3b200d,_0x4a8cc3,_0x5b654f,_0x38d687){return _0x16cfaa(_0x3b200d-0x1e0,_0x4a8cc3,_0x38d687- -0xba,_0x38d687-0x1ca);}appendChunk(_0x23d7ef,_0x29c353,_0x2ec93c[_0x153bd2(_0x55d6d2._0x2405f0,_0x55d6d2._0x5d2fd1,-_0x55d6d2._0x52d0e1,0x4e)](_0x3a5630),_0x3af4a0,_0x4dc8e9);};_0x29f136[_0x1fcc7d(0x407,0x368,_0x1b763f._0x2a54b3,0x41b)]?.['on'](_0x1fcc7d(_0x1b763f._0x23ced7,0x1f9,0x23b,_0x1b763f._0x1841da),_0x3a9c30),_0x29f136[_0x16cfaa(_0x1b763f._0x1d3042,0x131,0xfe,-_0x1b763f._0x4241b2)]?.['on'](_0x16cfaa(_0x1b763f._0x320e04,-0x6b,-0xa8,-_0x1b763f._0x405cd8),_0x48eec2);let _0x329a48=![],_0x25c0b1;const _0x499230=addAbortListener(_0x4224df[_0x1fcc7d(0x540,0x692,0x618,0x69f)],()=>{const _0x441919={_0x5a59f0:0x73,_0x16c39f:0x174};function _0x2880b7(_0x4de2e0,_0x295aec,_0x4ada0d,_0x497ee4){return _0x1fcc7d(_0x497ee4- -0x439,_0x295aec,_0x4ada0d-_0x441919._0x5a59f0,_0x497ee4-_0x441919._0x16c39f);}_0xe17f5d=toAbortError(_0x4224df[_0x2880b7(0x1f6,0x265,0x1e0,0x107)]['reason']),_0x4846d1=!![],_0x4dc8e9();try{killProcessGroup(_0x29f136,_0x2a4572);}catch{}});try{const _0x177f13=new Promise((_0x4e84ee,_0x30ec9a)=>{const _0x22a2ee={_0x50f553:0x4fe,_0x15344e:0x518,_0x322605:0x82,_0x10e370:0x1d3},_0x2316b3={_0x571353:0xb6,_0x62cf8b:0x1f9,_0x1e7c44:0xb0,_0x9fe4ac:0x105,_0x223c83:0x1ce,_0x4445e7:0x226,_0x21b0d6:0x1e6},_0x5146f3={_0x3a0d22:0x3c1};function _0x3bdc05(_0x34398b,_0x242a0c,_0x2deb23,_0x283cde){return _0x1fcc7d(_0x2deb23-0x87,_0x283cde,_0x2deb23-_0x1a968f._0x5ae8a5,_0x283cde-_0x1a968f._0x4352e2);}const _0x2afc81=()=>{function _0x2694f6(_0x51d578,_0x2bb5cb,_0x3a73e0,_0x499760){return _0x4629(_0x51d578- -0x217,_0x2bb5cb);}_0x25c0b1&&(clearTimeout(_0x25c0b1),_0x25c0b1=void 0x0);_0x29f136[_0x2694f6(0x1f9,0x282,0xa7,_0x2316b3._0x571353)]('error',_0x41c135);function _0x4717a9(_0x166a93,_0x1af5a4,_0x4dffe9,_0x4f526a){return _0x4629(_0x4dffe9-_0x5146f3._0x3a0d22,_0x1af5a4);}_0x29f136[_0x2694f6(_0x2316b3._0x62cf8b,_0x2316b3._0x1e7c44,0x16f,0xb4)](_0x2694f6(_0x2316b3._0x9fe4ac,_0x2316b3._0x223c83,_0x2316b3._0x4445e7,_0x2316b3._0x21b0d6),_0x2daa12);};function _0x48da79(_0xe3e746,_0x44e864,_0x3b7fff,_0x2b0a26){return _0x16cfaa(_0xe3e746-_0x3a2184._0x25cf1c,_0x44e864,_0x3b7fff-_0x3a2184._0x569cd4,_0x2b0a26-0x1e8);}const _0x41c135=_0x6108b6=>{_0x4846d1=!![],_0x4dc8e9(),_0x2afc81(),_0x30ec9a(_0xe17f5d??_0x6108b6);},_0x2daa12=(_0x28244c,_0x3a035e)=>{const _0x27e6e3={_0x23d533:0x24c};function _0x238fda(_0x26ce66,_0x145c0e,_0x1848cf,_0x36724a){return _0x4629(_0x36724a-_0x27e6e3._0x23d533,_0x1848cf);}_0x329a48=!![];function _0x459d78(_0x477308,_0x46253d,_0x21ae5a,_0x307615){return _0x4629(_0x477308- -0x34e,_0x46253d);}appendChunk(_0x23d7ef,_0x29c353,_0x22b5cc[_0x238fda(0x648,_0x22a2ee._0x50f553,0x65f,_0x22a2ee._0x15344e)](),_0x3af4a0,_0x4dc8e9),appendChunk(_0x23d7ef,_0x29c353,_0x2ec93c[_0x459d78(-_0x22a2ee._0x322605,0x72,0x61,-_0x22a2ee._0x10e370)](),_0x3af4a0,_0x4dc8e9),_0x4846d1=!![],_0x4dc8e9(),_0x2afc81();if(_0xe17f5d){_0x30ec9a(_0xe17f5d);return;}_0x4e84ee({'code':_0x28244c,'signal':_0x3a035e});};_0x25c0b1=setTimeout(()=>{const _0xdde0e5={_0x529b81:0x151};_0x4846d1=!![],_0x4dc8e9();function _0x1d10b9(_0x5ef2f2,_0x24758e,_0x519820,_0xcfa839){return _0x4629(_0x519820-_0xdde0e5._0x529b81,_0x24758e);}_0x2afc81();try{killProcessGroup(_0x29f136,_0x2a4572);}catch{}function _0x848c23(_0x3bf54d,_0x46cd34,_0x55b159,_0x464545){return _0x4629(_0x55b159-0x1ef,_0x464545);}_0x30ec9a(new ToolExecutionError(_0x848c23(0x3d3,_0x1229a0._0x42d704,0x3b5,_0x1229a0._0x54fb23)+_0x96a292+_0x848c23(0x52d,_0x1229a0._0x468f26,0x621,0x6b0),{'command':_0x9703d0[_0x1d10b9(0x409,_0x1229a0._0xa8a78d,0x458,_0x1229a0._0x521436)],'cwd':_0x4773a6,'shellPath':_0x3bc6cf,'timeoutMs':_0x96a292,'timedOut':!![]}));},_0x96a292),_0x29f136['once'](_0x48da79(0x56c,0x662,_0x146413._0x1c2e13,0x514),_0x41c135),_0x29f136[_0x3bdc05(0x333,0x2d1,_0x146413._0x2aaf05,0x563)](_0x3bdc05(_0x146413._0x55130c,0x43c,_0x146413._0x1f453c,_0x146413._0x19fb40),_0x2daa12);});while(_0x29c353[_0x1fcc7d(_0x1b763f._0x1ae193,_0x1b763f._0x3c49eb,_0x1b763f._0x8331cc,0x2fd)]>0x0||!_0x4846d1){if(_0x29c353[_0x1fcc7d(_0x1b763f._0x1ae193,0x38f,_0x1b763f._0x424fbe,0x472)]===0x0){await _0x4b945b();continue;}const _0x550234=_0x29c353[_0x16cfaa(_0x1b763f._0x375eff,_0x1b763f._0x260e8a,_0x1b763f._0x401539,0x95)]();_0x550234!==void 0x0&&(yield _0x550234);}const _0x48fb0d=await _0x177f13,_0x4a8d10=_0x4082f2?_0x16cfaa(0xd1,-_0x1b763f._0x2f8c14,-_0x1b763f._0x36702f,-0x9f)+(_0x48fb0d[_0x1fcc7d(0x401,_0x1b763f._0x3cbedc,_0x1b763f._0x4b2749,0x366)]??0x0):_0x23d7ef['join'](''),_0x48736f={'command':_0x9703d0['command'],'cwd':_0x4773a6,'exitCode':_0x48fb0d[_0x1fcc7d(0x401,_0x1b763f._0x1abff6,_0x1b763f._0x516cca,_0x1b763f._0x1f6e4e)]??0x0,'signal':_0x48fb0d['signal'],'ignoreOutput':_0x4082f2,'shellPath':_0x3bc6cf,'timeoutMs':_0x96a292};if(_0x48fb0d['code']!==0x0)throw new ToolExecutionError(_0x4a8d10||'Command\x20exited\x20with\x20code\x20'+(_0x48fb0d['code']??0x0),_0x48736f);return createToolOutput(_0x4a8d10,_0x48736f);}catch(_0x16fdb4){while(_0x29c353[_0x1fcc7d(_0x1b763f._0x1ae193,_0x1b763f._0x5b7b78,_0x1b763f._0x51fe8e,_0x1b763f._0x165bfe)]>0x0){const _0x5e7b5d=_0x29c353[_0x16cfaa(0x14c,-_0x1b763f._0x55d17e,_0x1b763f._0x156275,0x1d2)]();_0x5e7b5d!==void 0x0&&(yield _0x5e7b5d);}if(_0x16fdb4 instanceof ToolExecutionError)throw _0x16fdb4;if(_0xe17f5d)throw _0xe17f5d;if(isErrnoException(_0x16fdb4)&&_0x16fdb4[_0x16cfaa(_0x1b763f._0x2bc546,-0x2c,_0x1b763f._0x178765,0xc7)]===_0x1fcc7d(0x588,0x6cb,_0x1b763f._0x2a57a4,0x4ff))throw new ToolExecutionError(_0x16cfaa(0x90,0x17e,0x2b,0xf8)+_0x3bc6cf,{'command':_0x9703d0[_0x16cfaa(0x78,-_0x1b763f._0x2e4974,0x8f,-_0x1b763f._0x516d20)],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});throw new ToolExecutionError(_0x16fdb4 instanceof Error?_0x16fdb4[_0x16cfaa(_0x1b763f._0x2ab0ab,0x15b,_0x1b763f._0x4b3f8a,0x3b)]:String(_0x16fdb4),{'command':_0x9703d0[_0x16cfaa(-_0x1b763f._0x54b91a,-_0x1b763f._0x51fa78,0x8f,-0x72)],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});}finally{_0x25c0b1&&clearTimeout(_0x25c0b1);_0x499230(),_0x29f136['stdout']?.[_0x1fcc7d(0x570,0x42f,0x61c,0x66f)](_0x16cfaa(-_0x1b763f._0x2206b5,-0x19f,-_0x1b763f._0xd9363f,0x8c),_0x3a9c30),_0x29f136[_0x16cfaa(_0x1b763f._0x4a8bb2,_0x1b763f._0x702a3b,_0x1b763f._0x26e6d9,_0x1b763f._0x45f220)]?.[_0x1fcc7d(0x570,0x634,_0x1b763f._0x3551f1,_0x1b763f._0x2987db)](_0x1fcc7d(_0x1b763f._0x23ced7,0x2e6,0x373,0x354),_0x48eec2);if(!_0x329a48&&_0x29f136[_0x16cfaa(_0x1b763f._0x9b02fa,_0x1b763f._0x2110e6,0x15c,_0x1b763f._0x2eaa0a)]&&!_0x29f136[_0x16cfaa(_0x1b763f._0x4a1c35,0x134,0x1d5,_0x1b763f._0x3e39c9)])try{killProcessGroup(_0x29f136,_0x2a4572);}catch{}}}});}function createShellExecTool(_0xe2383d={}){return createBashTool(_0xe2383d);}import{readdir,readFile as _0x38be36}from'fs/promises';import{extname,join as _0x4cebd6}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x53ade5,join,relative as _0x4fcefd,resolve as _0x307ee1}from'path';import{readdir as _0x1f7460,readFile as _0x5cc048}from'fs/promises';import{join as _0x237d02,relative as _0x1900bb,sep}from'path';import{delimiter}from'path';import{mkdir as _0x243df4,rm,stat as _0x4519fa,writeFile}from'fs/promises';function _0x3a2b(){const _0x19155e=['BgLZDfrVB2XZ','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','D2LUmZi','BwfYA2rVD24','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','zgvSzxrL','qMvHCMvYia','AwzYyw1L','C3rYAw5NAwz5','zNvUy3rPB24','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','r2XVyG','B2zM','Aw52ywXPzf90B3bPyW','CxvLC3rPB25Z','C2vYDMvYtMfTzq','C3LTBgLUAW','tunqihnLCNzLCIa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','zgLZywjSzwq','yw50AhjVCgLJlw1LC3nHz2vZ','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','DxbKyxrL','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','zMXHDe1HCa','zgLYzwn0B3j5','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','z29Vz2XLq3nLq3G','lMn0CW','DxrTx3rLCM0','zgfYAW','CgfJA2fNzs5QC29U','v2vIu2vHCMnO','igzHAwXLzc4','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Ag9ZDa','ru5pru5u','sw52B2TLq29TBwfUza','CMvZDwX0CW','z2L0qNjHBMnO','AhrTBfnUAxbWzxq','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5ZDgfSBa','Aw5ZDhj1y3rPB25Z','lNrZEa','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','ig1Z','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','BgL0zxjHBa','mteYodi1ohjWywnQyW','D2HLCMuGCMC','zxH0BMfTzq','BMf2','vg9KB1DYAxrL','yxr4','ugf0AcbPCYbUB3qGysbMAwXLoIa','ChjLzML4','mtaWlJy0lJaUma','ywn0AxzL','lNDLyNa','uxvLC3rPB24G','DxrTx2nVBNrLBNq','ywrK','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','lNrTCc4','oIbPzcbYzxf1AxjLza','BgfUzW','igj5DgvZks4','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','uhvIBgLZAgvKoIa','A2LSBgvK','DhjHBNnMB3jTCW','ihDHCYbHyM9YDgvKlG','B2XKvgv4Da','qxnRvxnLCLrVB2W','B3jPz2LUvg9VBenHBgXjza','BNv2Aw4','cMbGya','lMPZB24','yNvUlMXVy2TI','qwXSia','zgLHz25VC3rPy3m','B3bLBKzPBgvZ','Ag92zxi','yMvHCMvY','yMLYDgH0Aw1L','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','tM8GC3vJAcbMAwXLoIaN','BMfTzq','sw52ywXPzcbvuKWGCgfYyw1LDgvY','lNbUzW','uhjVz3jHBuzPBgvZkhG4nIK','zMLUzfjLzMvYzw5Jzxm','CMLWz3jLCa','B3v0z29PBMDdywXSCW','y29UDgvUDc10ExbL','CM91BMq','CgLWzq','zgv0ywLS','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','yNjVA2vU','ls1ZDgrPBW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','ChvZAa','C2vUzfjLCxvLC3q','Ahr0Ca','AhLKCMf0zu1LDge','rMLSzsb3CML0DgvUigf0ia','mtK4lJe4lJaUma','C3r5Bgu','CgXHAw4','z2vUzxjHBa','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','yxv0Ag9YAxPHDgLVBL9JB2rL','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2TPBgXZ','C3jJl2fNzw50l2fNzw50lNrZ','lMPZEa','DMfSDwu','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','Aw5JBhvKzv9KB21HAw5Z','Aw5FChjVz3jLC3m','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','z29Vz2XLq3nLs2v5','igj5DgvZicHVCMLNAw5HBdOG','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Dg9VBenHBgXjza','lMPWzW','AwDUB3jL','Bg9VA3vW','rMLSzu5LDW','y29TCgXLDgvK','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','lu5VuhjVzMLSzq','BwfW','zgf0yq','z2nSAwq','C291CMnL','ksbB','tg9HzfnRAwXS','C2XPy2u','ls0T','r3jLCa','zMLYC3q','Dg9Rzw5Z','Aw52ywXPzf90B2rVCW','BM9Kzv9TB2r1BgvZ','y2XPzw50','Cgf0DgvYBG','lMPWzwC','CgvUzgLUzW','ywjVCNq','ntq2ody5mfnfs1v3vG','tg9HzgvKigzYB206ia','cGOTls0kcG','CxvLC3rPB24T','y2XPzw50x3nLy3jLDf9WB3n0','CMfUz2u','A2v5yMLUzgLUz3m','Dgf2AwX5qxbPs2v5','y21KlMv4zq','DhLWzxnJCMLWDa','ntaWmJq4ExLnEfPo','AgLNAa','ugfJA2fNzxm','CMLWz3jLCcbMywLSzwq6ia','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','y2fSBfrVB2W','CMvHC29U','AxngAwXL','C2vYDMvYswq','AxnfCNjVCG','CxvLCNK','yxr0CG','Dw5PB24','Aw52ywXPzf9XDwvZDgLVBNm','y3jSzG','BgLUzvn0yxj0','Aw52ywXPzf90B2rVx2L0zw0','C3rVCMfNzurPCG','l3bPza','w01duca','Aw5JBhvKzq','qxzHAwXHyMXLignVBw1HBMrZoG','Aw5qCM9NCMvZCW','igj5DgvZicH0B3rHBdOG','Dgf2AwX5','D2HPy2GGCMC','y29ZDa','z29uB0LTCgXLBwvUDgf0Aw9U','zMvUy2vK','B3v0Chv0','zgvMyxvSDfrPBwvVDxrnCW','tgLUzsa','yxjNDw1LBNroyw1LCW','r0LgodLH','BgLUzuvUza','yxnPzgu','Ahr0CdO','BgLUzvrLEhq','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','BMv3vgv4Da','CgXHAw50zxH0','mZqZmJu1ohvhq2ncvW','B2zMC2v0','ig1HDgnO','C2vYDMvY','v2LUr2v0','y29Uy2f0','zxHPDa','zgvSAw1PDgvY','Aw50zwDLCG','C2v0','C2H1DgrVD25tDgfYDgvK','yxjNDw1LBNrZvgv4Da','ls1MB2XSB3C','Bwv0yxrHz3m','nZa2mdy5mfLbAufutq','CMfUzg9T','l3vZCI9IAw4VCMC','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','zMLSzvzLCNnPB25Z','z2v0u3rHDhm','Dg9KB3ncEvnLC3nPB24','BwnFy2LK','vw50AxrSzwq','CxvLC3rPB24','C3rKAw8','C3jJl2v4yw1WBgvZl2rLBw8UDhm','BNvTyMvY','y29UBMvJDgLVBG','z29Vz2XLlwnZzq','Dg9VBfjLC3vSDhm','q29Tu3bLyW','y2fWywjPBgL0AwvZ','B2jQzwn0','mtK3nZGWmfjsrvfzCq','ls1NBg9I','zxHPDcbJB2rLia','lMjPBG','Bwv0yq','w1bFxL1BxhnCu10QpW','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','lM51DMLU','B25Jzq','DgLTzw91De1Z','yxjYyxK','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','igj5DgvZ','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','vg9KBYa','C3bSAxq','BgfZDeLUzgv4t2y','CMvMzxjLBMnLCW','C3rYAw5N','BgfUz3vHz2u','mty5lJi1nc4WlJa','AxngAw5PDgu','seLhsa','CMvSyxrPDMu','DgHLBG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','C3rKAw4','igzYB20G','DgfZAW','BwnWxW','vMLLD2vKigLTywDLigzPBgu6ia','AxndB250zxH0','ls1WCMvMAxG','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','AxnbyNnVBhv0zq','CMvTB3zLrxzLBNrmAxn0zw5LCG','AM9PBG','l3vZCI9IAw4VyMfZAa','y2XLyxi','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','l2jPBI9YzW','ANnVBG','BwLU','CM9VDa','ue9tva','y29UBMvJDa','D29YA3nWywnLl3n5BwjVBa','zgLHz25VC3rPy3ngB3jgAwXL','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','BM9Uzq','y29UDgvUDhm','y29KzvzLCMLMAwvY','Bg9JyxrPB24','qwDLBNqGCNvUia','B2f1DgG','CgfYzw50u2vZC2LVBKLK','Bwf0y2HLCW','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','BgfUz18','zgLZy292zxj5','Dg9VBe5HBwu','y2fJAgvK','wZ0+nY04kcLD','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','zgvMyxvSDen3za','Aw5PDgLHBgL6yxrPB24','rM91BMqG','DgLTzvTKyxrLDgLTzv0','zMLUywXnzxnZywDLvgv4Da','twLJCM9ZB2z0','DhnZzxj2zxiUANm','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','A2v5CW','mJi0lJaUmc4W','zNvSzMLSBgvK','C2vUza','zw5NAw5L','mti3lJaUmc4W','C3rHCNq','u3rHCNrLzcbHz2vUDcbYDw4G','rgv0ywLSoIa','lI4U','DhjPBq','BNbT','Dhj1zq','DxjS','CgfZC3rOCM91z2G','CgfZC3DVCMq','ywXSu2v0DgXLza','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','B3b0Aw9UywW','zMLSztOVlW','B3bLBG','BxvSDgLtzwXLy3q','C2vUze5VDgLMAwnHDgLVBG','BhnW','AgfUzgXL','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','C2vSzwn0Aw9UuMfUz2u','AxnjBNrLz2vY','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','BhnWlxbYB3H5','q29TBwfUzcaN','zw5HyMXLza','AMf2yxnJCMLWDa','CgfJA2fNzu5HBwu','y29Kzq','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','u2HLBgWGBM90igzVDw5KoIa','zM9VDgvY','Ag9TzwrPCG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','C3rKB3v0','ChjVy2vZCW','CMvXDwvZDa','A2LUza','Dg9VBhmVy2fSBa','yw5ZD2vYCW','uMvMDxnPBMCGDg8GzMv0y2GGysbUB24TChvIBgLJigfKzhjLC3m','zMfPBgvK','zhj5uNvU','lNrZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','te9x','Axnoyu4','ywjVCNrLza','te9dquXbufbeqvrb','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ChvIBgLZAgvKqxq','Dgv4Da','l29WDc9OB21LyNjLDY9IAw4VCMC','AMf2yxnJCMLWDhjLywn0','BgfIzwW','Cgf0DgvYBIbPCYbYzxf1AxjLza','lMDPzG','CNnZ','uefusa','Aw1Hz2uVD2vICa','C2vHCMnOugfYyw1Z','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','DgfZA2TPBgW','tNv2Aw4','C3rHCNreAxi','qxv0Ag9YAxPHDgLVBG','Dg9Rzw4','y2f0y2G','CMvJzw5JEurHExm','oIbPBNzHBgLKihn0yxr1CW','A2v5','zw5K','zMLSzq','ienHDxnLoIa','vMLLD0zPBgu','yxbPs2v5','zw5NAw5LCW','BgvUz3rO','C2vZC2LVBKLK','C2fMzq','tM8GzgLHz25VC3rPy3m','Cgf0Aa','Aw52ywXPzf90B2rVx3n0yxr1CW','C2L0ztO','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','zNjVBq','BM90Awz5','tunqihrVB2WG','zhvWBgLJyxrLx3rVzg9FAwrZ','CMvWBgfJzq','C3bHD24','CgfYC2vjBNq','BxrPBwvnCW','v2fYBMLUzW','ANnJB25MAwCUANnVBG','AgvHzgvY','l3vZCI9IAw4VC2G','BM93','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','zw52','yMLVBwu','Cg9W','l2jPBI9IyxnO','zgvMyxvSDa','CgXHDgzVCM0','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','Aw52ywXPzf90B2rVx2nVBNrLBNq','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','AxnbCNjHEq','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','qMfZAa','D2vI','lunVBw1HBMq','vg9WAwmGC2v0ihrVici','v0vcua','Cg5WBs1SB2nRlNLHBwW','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','ls1MAwXLCW','Aw5PDgLHBgL6zwq','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','CMvMCMvZAf90B2TLBG','zg5Zl3bYB21PC2vZ','lw5i','CMvZDwX0','Dg9WAwm','Dg9VBc1VDxrWDxqTB2zMBg9Hza','lu5Vtg9NBW','ls1JB2X1Bw4','B3bLBMfPlxjLC3bVBNnLCY13CW','ywXS','y29TBwfUza','Dw5RBM93BG','yM9VBgvHBG','l2jPBI9ZAa','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','C29Tzq','mtCYlJe2lJaUma','Aw5WDxq','DhLWzq','zgf0zvjLC3rYAwn0','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','B3jPz2LUywW','C3rHDhvZvgv4Da','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','AxrLBxm','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','CMvZB2X2zq','BwfUDwfS','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','B2XSyw1H','ywDLBNrjza','y2XVC2u','y2fSBeLK','ChjVCgvYDgLLCW','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','AgfZ','rgLHz25VC3rPyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','AxntEw1IB2XPy0XPBMS','AxnfBMfIBgvK','Dg9KB3m','C25PChbLDa','EwfYBI5SB2nR','BwvKAxvT','zgLZCg9Zzq','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','yNL0zuXLBMD0Aa','C2vHCMnOrgvWDgG','lM10CW','C3jJl3nOyxjLzc90ExbLCY50CW','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','Aw5JBhvKzxm','C2vYDMvYCW','yxv0AfjLCxvPCMvK','zxjYB3jnzxnZywDL','y3DK','Dg9Rzw5tDg9YywDLs2v5','yxv0Aa','CMfUAW','Cgf0Ag5HBwu','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','C2H1DgrVD24','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','y29UDgv4Da','vg9Vig1HBNKGCMvKAxjLy3rZ','Dg9tDhjPBMC','y291BNq','BwnFzwLK','zxf1ywXZ','Dgv4DerVy3vTzw50l2rPzenSB3nL','y2XPzw50twv0ywrHDgfvCMW','ie9sia','ls1OAwrKzw4','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Aw1Hz2uVz2LM','mtKYlJe2oc4WlJa','CMvXDwLYzwq','zxH0zw5ZAw9UCW','y2HHCKnVzgvbDa','zxzLCNK','CNvUswq','ygbGANnVBGO','C2nVCgvZ','Ec1HCgKTA2v5','B3bLCMf0Aw9U','C2HHmJu2','DxrTx2nHBxbHAwDU','q291BgqGBM90ihjLC29SDMuGAg9ZDa','Dg90ywW','Dhj1zwnVBg9Y','ANnVBMm','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','CMvNAw9U','Aw1Hz2vZ','sgLUDa','C2v0vg9KB3m','C3rHCNrZv2L0Aa','mtKYlJaUmc4W','zMv0y2HjBxbS','zgLYBMfTzq','Dg9VBa','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zg9JDw1LBNrtEw1IB2W','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','DgL0Bgu','BM9Zy3jPChq','lMPZB25J','BxrPBwu','Aw1Hz2uVANbLzW','DgvZDa','CMCUzxHL','lMnTza','B2C6DxbKyxrLzf90Aw1L','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C3vIyxjYyxK','xg5DkJ8','DhLWzxnJCMLWDhjLywn0','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','AgvHzgvYCW','D29YA3nWywnLu3LTyM9S','C3rKzxjY','cGPbuKDvtuvovfm6ia','CMvTB3zL','ChjPB3jPDhK','Dhj1BMm','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','yMfZzty0','zMXVB3i','z2v0','zxjYB3i','D3jPDgu','yxjNDw1LBNrZ','o1TExg5DkJ8','yxjNDw1LBNriAw50','ywXSB3DLzerPCNm','B25szwrPCMvJDa','Aw5KzxHpzG','zMLSzvbHDgG','t0zg','zgvUBY5QC29UyW','Aw1Hz2uVCg5N','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','C2HPzNq','BgLI','y2fSBgjHy2TvCMW','DxrMoa','mc4WlJa','yxnJAwK','Bw9Kzq','C3bHD25PBMC','yxnRvxnLCG','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','qgjPB21LANmVyMLVBwu','BgLTAxq','ls1YzwDLEha','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','DxjP','yxnZAwDU','r0LgodDH','Dg9vChbLCKnHC2u','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','yw5ZAte2','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','nhHbDu1ftq','AhjLzG','yxv0BW','y29TBwfUzhm','Aw1Hz2u','y2vPBa','Bwf4','BNvT','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','A2LSBa','C3rHDhvZ','CgfYC2u','Ag9ZDg5HBwu','B3rOzxi','owrPtvPbsq','thnW','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','yMfZzw5HBwu','CNvUBMLUzW','lM1QCW','zMjJBgLK','DxnLCM5HBwu','sw5MB3jTyxrPB24','zgvZy3jPChrPB24','zgvMAw5PDgLVBG','y2HHCMfJDgvY','uhjVz3jHBuzPBgvZ','DxrTx21LzgL1Bq','y2XPzw50CW','D2fPDezVCKrPywDUB3n0AwnZ','u0HfteW','BwvZC2fNzq','C3rHDgu','Bg9HzenVBw1HBMq','y2XPzw50sw5MB3jTyxrPB24','zg9TywLUCW','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','y2HHBMDL','yM0Ynq','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','rMv0y2GGDgLTzwqGB3v0','AxneAxjLy3rVCNK','sfruuca','mJCWndC3twnUr05j','B3b0Aw9UCW','mJfJC1bPvwC','yxbWBgLJyxrPB24VANnVBG','ChjVDg9JB2W','DxrTx3nVDxjJzq','Dg9mB3DLCKnHC2u','oIbPBNzHBgLKihbYAw9YAxr5','CgLK','C2nYAxb0','BgLNAhq','Aw5JB21PBMDdywXSCW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','zw51Bq','zgLNzxn0','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','y3jLyxrLzef0','AwDUB3jLt3v0Chv0','y29UDgvUDa','C2vZC2LVBG','C2LNBMfS','C2HLBgXqyxrO','lcbpChrPB24G','Bwf4uMvKAxjLy3rZ','zMLUza','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','z29uB0rLzMLUAxrPB24','DhnJB25MAwCUANnVBG','zMLSDgvY','Aw1WBgvTzw50yxrPB24','Dg9VBhm','y29UzMLN','iYmGu2TPBgW6ia','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','tM8GC3LTyM9SCYbMB3vUza','B25oB3rPzMLJyxrPB24','Dg9ju09tDhjPBMC','CgfJA2fNzxm','C29YDa','yNvUlMXVy2S','ChjLCgfYzunHBgXiAwvYyxjJAhK','tM8GBg9JyxrPB25ZigzVDw5K','DhjHBNnWB3j0','vw5RBM93BIb0B29SoIa','tM8GAg92zxiGAw5MB3jTyxrPB24','C2L6zq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','BgLUzq','CMvJB3jK','zgLZy292zxj5u3rHDgu','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','zMLUywXnzxnZywDL','l3vZCI9SB2nHBc9IAw4VCMC','z2XVyG'];_0x3a2b=function(){return _0x19155e;};return _0x3a2b();}import{hostname}from'os';import{dirname as _0xf63fd4}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x45b7bd,rename,writeFile as _0x15b1e8}from'fs/promises';import{homedir as _0x240544}from'os';import{dirname as _0x379f91,isAbsolute as _0x136393,join as _0x23fef1,resolve as _0x1d15ec}from'path';import{parse as _0x38fe83,stringify as _0x394367}from'yaml';import{cp,mkdir as _0x3d5cfb,readFile as _0x54b925,rm as _0x925072,writeFile as _0x41379f}from'fs/promises';import{homedir}from'os';import{join as _0xc386}from'path';import{parse as _0x5f2537,stringify as _0x24ed21}from'yaml';import{z}from'zod';import{readdir as _0x5c39ec,readFile as _0x46f4ea}from'fs/promises';import{join as _0x2323a8}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x332017){const _0x249590={_0x3f393d:0xd,_0x24ac3b:0x386,_0x165482:0x2b6,_0x55aebd:0x2ef,_0x3684bd:0x1f5,_0x476e6f:0x1eb},_0x87f9dd={_0x3f1c00:0xfb},_0x5f5b77={_0xa18f0b:0xb3};function _0x21a72a(_0x18fbcb,_0x34c313,_0x16dbb6,_0x5f806f){return _0x4820c3(_0x18fbcb-0x24,_0x34c313-_0x5f5b77._0xa18f0b,_0x18fbcb,_0x5f806f- -0x519);}const _0x1e926d=[];let _0x1c2f65='',_0x30ca73=0x0;function _0x2589ca(_0x5294e7,_0x16030e,_0x3ba1a7,_0x52ce21){return _0x4820c3(_0x5294e7-_0x87f9dd._0x3f1c00,_0x16030e-0x77,_0x5294e7,_0x16030e- -0x383);}while(_0x30ca73<_0x332017['length']){const _0x3ee8dc=_0x332017[_0x30ca73];if(_0x3ee8dc==='\x5c'&&_0x30ca73+0x1<_0x332017[_0x21a72a(0x27f,_0x249590._0x3f393d,0x185,0x15c)])_0x1c2f65+=_0x332017[_0x30ca73+0x1],_0x30ca73+=0x2;else{if(_0x3ee8dc==='\x22'||_0x3ee8dc==='\x27'){const _0x5c6fa2=_0x3ee8dc;_0x30ca73++;while(_0x30ca73<_0x332017[_0x21a72a(0xc1,0x273,0x212,0x15c)]&&_0x332017[_0x30ca73]!==_0x5c6fa2){_0x332017[_0x30ca73]==='\x5c'&&_0x30ca73+0x1<_0x332017[_0x2589ca(_0x249590._0x24ac3b,0x2f2,_0x249590._0x165482,0x2e7)]?(_0x1c2f65+=_0x332017[_0x30ca73+0x1],_0x30ca73+=0x2):(_0x1c2f65+=_0x332017[_0x30ca73],_0x30ca73++);}_0x30ca73++;}else _0x3ee8dc!==void 0x0&&/\s/[_0x21a72a(0x190,_0x249590._0x55aebd,0x259,_0x249590._0x3684bd)](_0x3ee8dc)?(_0x1c2f65&&(_0x1e926d[_0x21a72a(_0x249590._0x476e6f,0x355,0x43d,0x2f8)](_0x1c2f65),_0x1c2f65=''),_0x30ca73++):(_0x1c2f65+=_0x3ee8dc,_0x30ca73++);}}if(_0x1c2f65)_0x1e926d['push'](_0x1c2f65);return _0x1e926d;}function renderCommandInstructions(_0x8a592f){const _0xb589ec={_0x49555d:0x795,_0x192b57:0x733,_0x33ab55:0x644,_0xdd49d6:0x62a,_0x393789:0x66d,_0x442645:0x68e,_0x88339a:0x561,_0x1dec3d:0x511,_0x440414:0x443,_0x80593e:0x3b8,_0x1516b6:0x4c4,_0x45b1c9:0x504,_0x42555c:0x374,_0x24b5b3:0x45f,_0x1b8942:0x447,_0x20afc5:0x4f0,_0x5eb05e:0x417,_0x50d81d:0x684,_0x25b1c3:0x6e2,_0x2cdadd:0x613,_0x2a27d0:0x67b},_0x281e28={_0x29ecf9:0x77,_0x210104:0x23a},_0x2fc125={_0x283890:0x491,_0x5e38c8:0x356},_0x13e077={_0x1de382:0x113,_0x53a734:0x112},_0x436b57={_0x5c1107:0x9f};function _0x2446a9(_0xb97394,_0x137291,_0x5af450,_0x492847){return _0x4820c3(_0xb97394-0x1ea,_0x137291-0x1cd,_0x5af450,_0x492847- -_0x436b57._0x5c1107);}let _0x767db9=_0x8a592f[_0x2446a9(_0xb589ec._0x49555d,0x5e5,0x69b,_0xb589ec._0x192b57)],_0x7c7562=![];const _0x624a88=tokenizeCommandArguments(_0x8a592f[_0x2446a9(0x485,_0xb589ec._0x33ab55,0x59b,0x523)]);_0x767db9=_0x767db9[_0x2446a9(_0xb589ec._0xdd49d6,0x648,_0xb589ec._0x393789,0x5e2)](/\$ARGUMENTS\[(\d+)\]/g,(_0x3b075b,_0x4ca017)=>{return _0x7c7562=!![],_0x624a88[Number(_0x4ca017)]??'';}),_0x767db9=_0x767db9[_0x2446a9(_0xb589ec._0x442645,_0xb589ec._0x88339a,0x570,0x5e2)](/\$ARGUMENTS\b/g,()=>{function _0x44aa23(_0x1905fc,_0x211e27,_0x11e5d6,_0x2b4aea){return _0x2446a9(_0x1905fc-0x45,_0x211e27-_0x13e077._0x1de382,_0x2b4aea,_0x211e27- -_0x13e077._0x53a734);}return _0x7c7562=!![],_0x8a592f[_0x44aa23(0x2fc,0x411,_0x2fc125._0x283890,_0x2fc125._0x5e38c8)];});if(_0x8a592f[_0x2446a9(_0xb589ec._0x1dec3d,_0xb589ec._0x440414,0x660,0x50f)]&&_0x8a592f[_0x520cb4(0x21a,0x374,0x33d,_0xb589ec._0x80593e)][_0x2446a9(0x4e4,_0xb589ec._0x1516b6,0x6df,0x5d6)]>0x0)for(let _0xd885e8=0x0;_0xd885e8<_0x8a592f['argumentNames'][_0x520cb4(_0xb589ec._0x45b1c9,0x43b,0x51e,0x3cc)];_0xd885e8++){const _0x2255e7=_0x8a592f[_0x520cb4(0x4ce,_0xb589ec._0x42555c,0x43e,0x224)][_0xd885e8];if(_0x2255e7){const _0x2a8c35=new RegExp('\x5c$'+_0x2255e7+'\x5cb','g');_0x767db9=_0x767db9['replace'](_0x2a8c35,()=>{return _0x7c7562=!![],_0x624a88[_0xd885e8]??'';});}}function _0x520cb4(_0x16f1c7,_0x38dfd4,_0xe306c5,_0x556417){return _0x4820c3(_0x16f1c7-_0x281e28._0x29ecf9,_0x38dfd4-0x11a,_0xe306c5,_0x38dfd4- -_0x281e28._0x210104);}return _0x767db9=_0x767db9[_0x520cb4(_0xb589ec._0x24b5b3,_0xb589ec._0x1b8942,_0xb589ec._0x20afc5,_0xb589ec._0x5eb05e)](/\$(\d+)\b/g,(_0x180e70,_0x4744ed)=>{return _0x7c7562=!![],_0x624a88[Number(_0x4744ed)]??'';}),!_0x7c7562&&_0x8a592f['argumentsText'][_0x2446a9(0x5ba,0x494,_0xb589ec._0x50d81d,0x58d)]()&&(_0x767db9=_0x767db9+_0x2446a9(0x7b7,_0xb589ec._0x25b1c3,_0xb589ec._0x2cdadd,_0xb589ec._0x2a27d0)+_0x8a592f[_0x2446a9(0x5dd,0x589,0x644,0x523)]),_0x767db9;}var chatModelAuthSchemeSchema=z[_0x4820c3(0x793,0x6eb,0x83d,0x77c)]([_0x4820c3(0x79a,0x827,0x95c,0x7fe),_0x211934(0x4a8,0x571,0x534,0x594)]),apiKeyAuthSchema=z[_0x211934(0x38b,0x2ba,0x36f,0x2ad)]({'type':z[_0x211934(0x58b,0x4b0,0x585,0x4f7)](_0x211934(0x427,0x519,0x2f6,0x33a)),'apiKey':z[_0x211934(0x39f,0x3db,0x306,0x303)](),'authScheme':chatModelAuthSchemeSchema[_0x211934(0x3e8,0x499,0x28f,0x43b)]()})[_0x4820c3(0x6e6,0x53a,0x5c1,0x630)](),oauthAuthSchema=z['object']({'type':z[_0x4820c3(0x764,0x75d,0x8c9,0x7d7)](_0x4820c3(0x66d,0x550,0x761,0x60f)),'access':z[_0x4820c3(0x6e8,0x554,0x68c,0x5eb)](),'refresh':z[_0x211934(0x39f,0x466,0x3a6,0x294)](),'expires':z[_0x211934(0x385,0x448,0x26b,0x2c9)]()[_0x211934(0x3e8,0x3ef,0x348,0x360)](),'authScheme':chatModelAuthSchemeSchema['optional']()})['passthrough'](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x211934(0x38b,0x446,0x358,0x266)]({'id':z['string'](),'name':z[_0x211934(0x39f,0x388,0x4bd,0x2ab)]()[_0x4820c3(0x6b2,0x6e9,0x586,0x634)]()})[_0x4820c3(0x5fa,0x5f0,0x529,0x630)](),modelConfigSchema=z['union']([z[_0x4820c3(0x91d,0x843,0x856,0x7d7)](![]),z[_0x4820c3(0x6bf,0x841,0x6ac,0x7d7)](!![]),z[_0x4820c3(0x627,0x6cd,0x722,0x5eb)](),z[_0x211934(0x396,0x319,0x265,0x470)](z[_0x211934(0x39f,0x295,0x37d,0x278)]()),z[_0x211934(0x396,0x3d2,0x47b,0x307)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x211934(0x530,0x4c3,0x5bb,0x62b)]([_0x211934(0x56f,0x5cf,0x666,0x4d7),_0x4820c3(0x697,0x63f,0x609,0x55d),'openai-responses',_0x4820c3(0x5f0,0x7b9,0x562,0x6a8)]),providerConfigSchema=z['object']({'apiKey':z[_0x4820c3(0x523,0x6e9,0x574,0x5eb)]()['optional'](),'token':z[_0x4820c3(0x50c,0x615,0x58d,0x5eb)]()[_0x211934(0x3e8,0x368,0x30c,0x40d)](),'defaultModel':z['string']()[_0x211934(0x3e8,0x2ea,0x4e7,0x4cc)](),'smallModel':z[_0x4820c3(0x6b5,0x58f,0x701,0x5eb)]()['optional'](),'currentAuth':z['string']()['optional'](),'auth':z[_0x4820c3(0x494,0x64b,0x510,0x5e2)](authMethodSchema)[_0x4820c3(0x6cf,0x5da,0x629,0x634)](),'surface':chatModelSurfaceSchema[_0x4820c3(0x518,0x4e9,0x60d,0x634)](),'baseUrl':z[_0x4820c3(0x5b4,0x622,0x6b4,0x5eb)]()['optional'](),'models':modelConfigSchema['optional'](),'customHeaders':z[_0x4820c3(0x76e,0x8ed,0x6a9,0x7a1)](z['string'](),z[_0x4820c3(0x5fd,0x61d,0x530,0x5eb)]())[_0x4820c3(0x73b,0x5af,0x51b,0x634)]()})[_0x4820c3(0x54f,0x572,0x776,0x630)](),mcpServerConfigSchema=z['object']({'command':z[_0x4820c3(0x4f3,0x635,0x637,0x5eb)]()['optional'](),'args':z[_0x4820c3(0x66e,0x618,0x51c,0x5e2)](z[_0x211934(0x39f,0x42d,0x296,0x2d2)]())[_0x4820c3(0x616,0x5e6,0x677,0x634)](),'env':z[_0x211934(0x555,0x631,0x53e,0x665)](z[_0x211934(0x39f,0x2eb,0x476,0x272)](),z['string']())['optional'](),'transport':z[_0x4820c3(0x745,0x802,0x621,0x77c)]([_0x4820c3(0x69f,0x50b,0x690,0x5cf),_0x211934(0x5c7,0x61b,0x6cc,0x57d)])[_0x211934(0x3e8,0x2f0,0x4ab,0x363)](),'url':z[_0x4820c3(0x574,0x513,0x682,0x5eb)]()['optional'](),'headers':z['record'](z['string'](),z[_0x4820c3(0x632,0x662,0x4fb,0x5eb)]())[_0x4820c3(0x769,0x58d,0x741,0x634)](),'prefix':z[_0x211934(0x39f,0x4a4,0x43f,0x37a)]()[_0x4820c3(0x78b,0x6a3,0x64c,0x634)](),'timeoutMs':z['number']()['optional'](),'enabled':z[_0x4820c3(0x723,0x79a,0x691,0x6ac)]()[_0x4820c3(0x73a,0x506,0x774,0x634)](),'auth':z[_0x211934(0x38b,0x3fe,0x22b,0x435)]({'type':z[_0x4820c3(0x6dd,0x7ef,0x6e8,0x77c)]([_0x4820c3(0x6f0,0x62f,0x5c8,0x60a),_0x211934(0x5b2,0x5e1,0x50c,0x584),'oauth']),'token':z[_0x4820c3(0x4f0,0x61f,0x5e1,0x5eb)]()['optional'](),'oauth':z[_0x211934(0x38b,0x4ad,0x3a9,0x416)]({'clientId':z[_0x4820c3(0x507,0x5b0,0x5dc,0x5eb)]()[_0x211934(0x3e8,0x341,0x4c8,0x3a9)](),'clientMetadataUrl':z[_0x211934(0x39f,0x44b,0x2be,0x286)]()[_0x4820c3(0x6ab,0x5dc,0x6ad,0x634)](),'authorizationServer':z[_0x4820c3(0x577,0x4e2,0x53c,0x5eb)]()[_0x211934(0x3e8,0x4ab,0x2e6,0x33f)](),'scopes':z[_0x4820c3(0x5ef,0x658,0x5a8,0x5e2)](z[_0x211934(0x39f,0x4c8,0x408,0x243)]())[_0x4820c3(0x554,0x714,0x72d,0x634)](),'tokenStorageKey':z[_0x211934(0x39f,0x4fc,0x354,0x324)]()[_0x211934(0x3e8,0x49c,0x48d,0x4ae)]()})[_0x4820c3(0x61c,0x745,0x5ad,0x630)]()[_0x4820c3(0x659,0x6fd,0x5ec,0x634)]()})[_0x4820c3(0x6ea,0x5cc,0x574,0x630)]()[_0x211934(0x3e8,0x2cb,0x352,0x31e)]()})[_0x211934(0x3e4,0x2d8,0x4a2,0x3e8)](),mcpSettingsSchema=z['object']({'servers':z[_0x4820c3(0x7f2,0x86c,0x73e,0x7a1)](z[_0x211934(0x39f,0x44c,0x482,0x341)](),mcpServerConfigSchema)['optional'](),'allowedTools':z['record'](z['string'](),z[_0x4820c3(0x7f4,0x74a,0x764,0x7a1)](z[_0x4820c3(0x6d0,0x558,0x71d,0x5eb)](),z[_0x4820c3(0x724,0x6c9,0x74c,0x6ac)]()))[_0x211934(0x3e8,0x3e3,0x38e,0x45f)](),'defaultTimeoutMs':z[_0x211934(0x385,0x4a7,0x264,0x28b)]()[_0x211934(0x3e8,0x466,0x373,0x468)]()})['passthrough'](),skillsSettingsSchema=z[_0x211934(0x38b,0x2eb,0x369,0x457)]({'enabled':z[_0x211934(0x460,0x3bb,0x41a,0x33b)]()[_0x211934(0x3e8,0x505,0x468,0x40d)](),'includeDefaults':z[_0x211934(0x460,0x577,0x377,0x3fa)]()[_0x211934(0x3e8,0x394,0x443,0x34c)](),'directories':z[_0x4820c3(0x544,0x66f,0x5ad,0x5e2)](z[_0x211934(0x39f,0x4fd,0x460,0x4d5)]())[_0x4820c3(0x59f,0x640,0x605,0x634)](),'exclude':z[_0x4820c3(0x4f3,0x5d6,0x5cd,0x5e2)](z[_0x4820c3(0x634,0x509,0x692,0x5eb)]())[_0x211934(0x3e8,0x2f6,0x4f5,0x426)]()})[_0x211934(0x3e4,0x29f,0x3ba,0x4fc)](),commandsSettingsSchema=z[_0x4820c3(0x6f4,0x589,0x58a,0x5d7)]({'enabled':z['boolean']()[_0x211934(0x3e8,0x408,0x3ed,0x2b0)](),'directories':z['array'](z['string']())[_0x4820c3(0x4e5,0x4e1,0x670,0x634)]()})[_0x211934(0x3e4,0x2f2,0x51c,0x3c5)](),agentsSettingsSchema=z[_0x211934(0x38b,0x3b5,0x2c2,0x411)]({'enabled':z['boolean']()[_0x4820c3(0x73c,0x688,0x68d,0x634)](),'includeDefaults':z[_0x211934(0x460,0x423,0x452,0x34f)]()[_0x211934(0x3e8,0x45d,0x312,0x48e)](),'directories':z[_0x211934(0x396,0x3aa,0x322,0x29f)](z[_0x4820c3(0x66a,0x550,0x601,0x5eb)]())[_0x4820c3(0x5c5,0x748,0x605,0x634)]()})[_0x4820c3(0x5f0,0x667,0x4ec,0x630)](),uiThemeSettingsSchema=z['object']({'mode':z['enum'](['auto',_0x4820c3(0x7e5,0x902,0x85e,0x7c5),_0x4820c3(0x8ca,0x635,0x7eb,0x779)])[_0x4820c3(0x548,0x745,0x4ea,0x634)](),'colorLevel':z[_0x211934(0x530,0x4ce,0x67f,0x403)]([_0x211934(0x4fa,0x579,0x46b,0x4ff),_0x4820c3(0x590,0x521,0x739,0x60a),_0x211934(0x4f6,0x39d,0x5a6,0x5d5),'ansi256',_0x211934(0x4ae,0x523,0x49a,0x4b6)])[_0x4820c3(0x664,0x746,0x635,0x634)](),'backgrounds':z[_0x211934(0x530,0x4ce,0x589,0x62e)]([_0x4820c3(0x7d2,0x711,0x6c9,0x746),'on',_0x4820c3(0x6b3,0x851,0x69a,0x7b3)])[_0x4820c3(0x76f,0x506,0x607,0x634)](),'messageStyle':z[_0x211934(0x530,0x508,0x4b6,0x48a)]([_0x211934(0x30d,0x3a4,0x400,0x373),'boxed'])[_0x4820c3(0x78a,0x760,0x68b,0x634)]()})[_0x211934(0x3e4,0x331,0x422,0x2f3)](),statuslineSegmentSchema=z[_0x211934(0x530,0x4ff,0x4f0,0x593)](['model',_0x211934(0x536,0x624,0x591,0x67b),'thinking','sudo',_0x211934(0x330,0x373,0x21d,0x3b9),_0x4820c3(0x592,0x66a,0x649,0x6e0),_0x4820c3(0x708,0x700,0x657,0x616),'requests',_0x4820c3(0x690,0x8e7,0x758,0x78e),_0x4820c3(0x5b4,0x44e,0x60d,0x5a8),_0x4820c3(0x6d7,0x610,0x537,0x639),_0x211934(0x582,0x4d7,0x63d,0x638),_0x4820c3(0x589,0x50d,0x61b,0x58a),'memory',_0x4820c3(0x60d,0x62b,0x5ea,0x661)]),statuslineItemSchema=z[_0x211934(0x34e,0x209,0x497,0x289)]([statuslineSegmentSchema,z[_0x4820c3(0x804,0x8e0,0x7ea,0x7d7)]('|')]),statuslineRowSchema=z[_0x211934(0x396,0x38f,0x37c,0x34d)](statuslineItemSchema),statuslineConfigSchema=z[_0x211934(0x38b,0x2a6,0x390,0x2c1)]({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x4820c3(0x646,0x4f0,0x67e,0x634)]()})[_0x211934(0x3e4,0x35b,0x49d,0x2a8)](),memorySettingsSchema=z['object']({'version':z['literal'](0x2)['optional'](),'retrieval':z['object']({'engine':z[_0x211934(0x58b,0x6ac,0x6b6,0x5ed)](_0x211934(0x51e,0x3ca,0x665,0x4f7))['optional'](),'candidateLimit':z[_0x4820c3(0x564,0x69d,0x616,0x5d1)]()[_0x4820c3(0x54d,0x620,0x512,0x634)](),'activeCandidateLimit':z['number']()[_0x4820c3(0x4f1,0x672,0x793,0x634)](),'activeEnabled':z['boolean']()['optional'](),'maxQueriesPerTurn':z[_0x211934(0x385,0x2e8,0x390,0x30a)]()[_0x211934(0x3e8,0x4e3,0x43c,0x534)](),'coreInjectTokenBudget':z[_0x4820c3(0x596,0x71d,0x5d0,0x5d1)]()[_0x211934(0x3e8,0x426,0x37d,0x529)](),'injectTokenBudget':z[_0x211934(0x385,0x314,0x2ab,0x365)]()[_0x4820c3(0x750,0x78f,0x5e3,0x634)](),'minScore':z[_0x4820c3(0x6f5,0x673,0x69b,0x5d1)]()[_0x211934(0x3e8,0x3db,0x480,0x50f)](),'freshnessHalfLifeDays':z[_0x211934(0x385,0x4c4,0x2f7,0x281)]()[_0x4820c3(0x6bb,0x681,0x59f,0x634)]()})[_0x211934(0x3e4,0x457,0x2b8,0x395)]()[_0x4820c3(0x6cc,0x754,0x709,0x634)](),'extraction':z['object']({'enabled':z[_0x4820c3(0x655,0x68f,0x58e,0x6ac)]()[_0x211934(0x3e8,0x365,0x4c1,0x295)](),'provider':z[_0x4820c3(0x5ae,0x4d3,0x5bc,0x5eb)]()[_0x4820c3(0x6ba,0x58a,0x6e3,0x634)](),'model':z[_0x211934(0x39f,0x358,0x3ac,0x35d)]()[_0x4820c3(0x5ac,0x699,0x74a,0x634)](),'sensitiveFilter':z[_0x4820c3(0x721,0x5c5,0x62f,0x6ac)]()[_0x4820c3(0x5ee,0x59e,0x72e,0x634)]()})[_0x211934(0x3e4,0x504,0x3ea,0x3d2)]()['optional'](),'index':z['object']({'persisted':z[_0x4820c3(0x5f0,0x6e8,0x657,0x6ac)]()['optional'](),'flushIntervalMs':z[_0x4820c3(0x544,0x55b,0x610,0x5d1)]()['optional']()})[_0x211934(0x3e4,0x3d5,0x2d7,0x31b)]()[_0x4820c3(0x4f7,0x645,0x628,0x634)](),'enabled':z['boolean']()[_0x211934(0x3e8,0x2ef,0x493,0x3bd)](),'saveTool':z[_0x211934(0x460,0x43f,0x35e,0x4e6)]()[_0x211934(0x3e8,0x315,0x4f8,0x31e)](),'model':z[_0x4820c3(0x4e7,0x544,0x728,0x5eb)]()[_0x211934(0x3e8,0x53d,0x3e3,0x44e)](),'provider':z['string']()['optional'](),'maxInjectionTokens':z['number']()[_0x211934(0x3e8,0x399,0x4f8,0x51a)](),'backgroundExtraction':z[_0x211934(0x460,0x3f9,0x337,0x3f7)]()[_0x211934(0x3e8,0x387,0x423,0x2c3)]()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x211934(0x39f,0x2d3,0x366,0x430)](),'model':z[_0x211934(0x39f,0x3ad,0x3e8,0x4d2)](),'usedAt':z[_0x4820c3(0x570,0x4bb,0x6a4,0x5d1)]()})[_0x211934(0x3e4,0x380,0x32d,0x51e)](),lspServerEntrySchema=z[_0x211934(0x38b,0x2df,0x294,0x395)]({'disabled':z['boolean']()['optional'](),'command':z['string']()['optional'](),'args':z[_0x211934(0x396,0x3dc,0x404,0x37d)](z[_0x211934(0x39f,0x2a9,0x3bd,0x293)]())[_0x4820c3(0x6e6,0x5f9,0x5da,0x634)](),'rootMarkers':z[_0x211934(0x396,0x315,0x2e5,0x3f5)](z[_0x211934(0x39f,0x348,0x305,0x392)]())[_0x4820c3(0x67d,0x535,0x575,0x634)]()})['passthrough'](),lspConfigSchema=z[_0x211934(0x38b,0x250,0x30d,0x3ad)]({'enabled':z['boolean']()[_0x211934(0x3e8,0x421,0x2eb,0x374)](),'servers':z[_0x211934(0x555,0x641,0x610,0x590)](z[_0x211934(0x39f,0x402,0x289,0x354)](),lspServerEntrySchema)[_0x4820c3(0x70b,0x6a4,0x774,0x634)]()})[_0x211934(0x3e4,0x458,0x3b8,0x3a4)](),serverEndpointSchema=z[_0x211934(0x38b,0x304,0x479,0x335)]({'url':z[_0x4820c3(0x676,0x5ca,0x6bf,0x5eb)](),'token':z[_0x211934(0x39f,0x4f3,0x31a,0x350)]()[_0x4820c3(0x749,0x511,0x5e4,0x634)]()})[_0x4820c3(0x4e2,0x4f0,0x51a,0x630)](),commandHookConfigSchema=z['object']({'type':z[_0x211934(0x58b,0x585,0x49f,0x4e7)](_0x211934(0x45e,0x40b,0x3b1,0x461)),'command':z['string'](),'timeout':z['number']()[_0x211934(0x3e8,0x296,0x3f8,0x350)]()}),hookMatcherGroupSchema=z[_0x211934(0x38b,0x4c3,0x48d,0x3e4)]({'matcher':z['string']()['optional'](),'hooks':z['array'](commandHookConfigSchema)}),hooksConfigSchema=z[_0x211934(0x38b,0x237,0x309,0x4a3)]({'PreToolUse':z[_0x4820c3(0x698,0x712,0x51d,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x61c,0x5f1,0x657,0x634)](),'PostToolUse':z['array'](hookMatcherGroupSchema)[_0x4820c3(0x5a2,0x6e6,0x671,0x634)](),'UserPromptSubmit':z[_0x211934(0x396,0x330,0x2c8,0x323)](hookMatcherGroupSchema)['optional'](),'Stop':z[_0x4820c3(0x4a0,0x5ca,0x594,0x5e2)](hookMatcherGroupSchema)[_0x211934(0x3e8,0x2fb,0x415,0x532)](),'Notification':z[_0x4820c3(0x693,0x5c9,0x6fd,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x5ce,0x4f4,0x552,0x634)](),'SessionStart':z[_0x4820c3(0x69f,0x65e,0x6af,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x4e1,0x635,0x783,0x634)](),'SessionEnd':z[_0x4820c3(0x57e,0x49e,0x641,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x57a,0x4da,0x6f7,0x634)]()}),cliConfigSchema=z[_0x211934(0x38b,0x47d,0x2f8,0x3e6)]({'activeProvider':z[_0x211934(0x39f,0x485,0x241,0x445)]()['optional'](),'activeModel':z[_0x4820c3(0x63b,0x6a0,0x500,0x5eb)]()['optional'](),'apiKey':z[_0x211934(0x39f,0x3f1,0x281,0x375)]()['optional'](),'providers':z[_0x211934(0x555,0x531,0x489,0x5ee)](z[_0x211934(0x39f,0x38d,0x36c,0x448)](),providerConfigSchema)[_0x211934(0x3e8,0x383,0x3cb,0x4b2)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x4820c3(0x743,0x6aa,0x54c,0x634)](),'agents':agentsSettingsSchema[_0x211934(0x3e8,0x528,0x494,0x545)](),'commands':commandsSettingsSchema[_0x4820c3(0x72c,0x577,0x4ef,0x634)](),'skillsEnabled':z[_0x4820c3(0x73c,0x80b,0x8e4,0x7a1)](z[_0x4820c3(0x686,0x6f3,0x6e0,0x5eb)](),z[_0x4820c3(0x664,0x5df,0x6be,0x6ac)]())[_0x4820c3(0x59e,0x506,0x5eb,0x634)](),'memory':memorySettingsSchema['optional'](),'session':z['object']({'memPersist':z[_0x4820c3(0x62d,0x64c,0x7fa,0x6ac)]()[_0x211934(0x3e8,0x506,0x3d6,0x539)](),'persistEventLog':z[_0x4820c3(0x623,0x5b5,0x7a1,0x6ac)]()[_0x211934(0x3e8,0x43a,0x409,0x45a)](),'persistHttpLog':z[_0x211934(0x460,0x4f3,0x577,0x435)]()[_0x4820c3(0x71f,0x716,0x5ed,0x634)]()})[_0x211934(0x3e4,0x403,0x451,0x52d)]()[_0x211934(0x3e8,0x35a,0x478,0x3ff)](),'requireToolApproval':z[_0x4820c3(0x7b9,0x6bd,0x7a8,0x6ac)]()[_0x211934(0x3e8,0x4c7,0x37d,0x3ff)](),'thinking':z[_0x4820c3(0x73c,0x644,0x7ff,0x77c)]([_0x211934(0x4df,0x461,0x4b4,0x3a5),_0x4820c3(0x74d,0x6a3,0x506,0x655),'MEDIUM',_0x4820c3(0x5fb,0x6c9,0x5a4,0x5ef)])['optional'](),'streamingChunks':z[_0x211934(0x460,0x3d3,0x41f,0x461)]()[_0x211934(0x3e8,0x3d8,0x2c4,0x35e)](),'agentsEnabled':z[_0x211934(0x555,0x4f4,0x4c7,0x652)](z[_0x211934(0x39f,0x283,0x494,0x28d)](),z[_0x211934(0x460,0x590,0x4a7,0x53e)]())['optional'](),'recentModels':z[_0x4820c3(0x531,0x628,0x5aa,0x5e2)](recentModelSchema)[_0x211934(0x3e8,0x418,0x384,0x374)](),'lsp':lspConfigSchema[_0x4820c3(0x58d,0x534,0x62c,0x634)](),'servers':z[_0x4820c3(0x762,0x71a,0x8c7,0x7a1)](z[_0x211934(0x39f,0x39c,0x31a,0x3cc)](),serverEndpointSchema)[_0x211934(0x3e8,0x43c,0x2dd,0x394)](),'ui':z[_0x4820c3(0x5e7,0x54b,0x482,0x5d7)]({'theme':uiThemeSettingsSchema[_0x211934(0x3e8,0x369,0x4c2,0x4ad)](),'statusline':statuslineConfigSchema[_0x4820c3(0x706,0x530,0x722,0x634)]()})[_0x211934(0x3e4,0x4f1,0x3f1,0x485)]()[_0x211934(0x3e8,0x2fe,0x2b8,0x487)](),'tools':z[_0x4820c3(0x7fd,0x823,0x7de,0x7a1)](z[_0x211934(0x39f,0x37c,0x4d9,0x48a)](),z[_0x4820c3(0x77a,0x6b5,0x79d,0x6ab)]())[_0x4820c3(0x6b2,0x619,0x71b,0x634)](),'hooks':hooksConfigSchema[_0x4820c3(0x790,0x626,0x767,0x634)]()})['passthrough']();function buildDescription(_0xc0beda){const _0x12e527={_0x429b32:0x3d7,_0x222640:0x4e6,_0x17bf9e:0x2c0,_0x156970:0x383,_0x5f27c5:0x3ee,_0x173921:0x4c8,_0x178f7d:0x3ca,_0x5ae4d1:0x403,_0x5f0e84:0x73e,_0x6c0933:0x4f4,_0x2b6994:0x416,_0x2247b2:0x4b2,_0x41f14c:0x4af,_0x505c99:0x48f,_0x1411a9:0x48c,_0x43a771:0x2d4,_0x49d60e:0x3b6,_0x359b30:0x347},_0x1c2bab={_0x5d5966:0x18b};function _0x2b2d91(_0x26d279,_0x3ab8d4,_0x4d4a3e,_0xb1e380){return _0x211934(_0x26d279- -0x52,_0x3ab8d4-0x15e,_0xb1e380,_0xb1e380-_0x1c2bab._0x5d5966);}if(_0xc0beda[_0x2b2d91(_0x12e527._0x429b32,_0x12e527._0x222640,0x287,_0x12e527._0x17bf9e)]===0x0)return[_0x2b2d91(0x4a5,_0x12e527._0x156970,_0x12e527._0x5f27c5,0x514),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x2b2d91(0x3bb,_0x12e527._0x173921,_0x12e527._0x178f7d,_0x12e527._0x5ae4d1)]['join']('\x0a');function _0x3f7e33(_0x21a8e9,_0x5e2d59,_0x1068d7,_0x884d5e){return _0x211934(_0x884d5e-0x135,_0x5e2d59-0x12e,_0x21a8e9,_0x884d5e-0x82);}const _0x1f7dbf=[_0x3f7e33(0x55d,0x6e1,_0x12e527._0x5f0e84,0x62c),_0x2b2d91(_0x12e527._0x6c0933,0x3dc,_0x12e527._0x2b6994,0x45e),_0x3f7e33(_0x12e527._0x2247b2,_0x12e527._0x41f14c,_0x12e527._0x505c99,_0x12e527._0x1411a9),..._0xc0beda[_0x2b2d91(_0x12e527._0x43a771,_0x12e527._0x49d60e,0x428,_0x12e527._0x359b30)](_0x3d3bed=>_0x3d3bed[_0x3f7e33(0x4c2,0x6ac,0x6a2,0x60f)]?'-\x20'+_0x3d3bed[_0x3f7e33(0x7db,0x6dd,0x6e8,0x6eb)]+'\x20'+_0x3d3bed[_0x3f7e33(0x718,0x651,0x5de,0x60f)]+':\x20'+_0x3d3bed[_0x2b2d91(0x4bd,0x4a8,0x3bf,0x579)]:'-\x20'+_0x3d3bed[_0x2b2d91(0x564,0x5bf,0x61a,0x577)]+':\x20'+_0x3d3bed[_0x2b2d91(0x4bd,0x4a2,0x468,0x3b0)])];return _0x1f7dbf['join']('\x0a');}function createInvokeCommandTool(_0x21530c){const _0x3627d4={_0x5a1e72:0x62a,_0xe9bacc:0x837,_0x1f47b3:0x6fd,_0x5adca9:0x259,_0x302bcb:0x251,_0x349fae:0x294,_0x12fd7d:0x7c8,_0x3d8235:0x745},_0x2f7ec1={_0x312dae:0x522,_0x4d8b0e:0x5b8,_0x1d5b4d:0x499,_0x11dfd3:0x2b9,_0x2e4450:0x319,_0x12f90a:0x3d9,_0x1faf68:0xae,_0x32a0ff:0x149,_0x3831ed:0x15c,_0x3d05f4:0xb,_0x54ffab:0x46f,_0x540807:0x49f,_0x6f9719:0x5ba,_0x200c7a:0x77,_0x20e232:0x521,_0x12b34a:0x36,_0x43a829:0x6d,_0x30b5de:0x114,_0x177985:0x1f6,_0x50934b:0x1d2,_0x6b1dc3:0x75,_0x152dca:0xa4,_0x22b335:0xa2},_0x2d4c28={_0x384cb4:0x9d,_0x13b3c1:0x142},_0xcd6f57={_0x52d83e:0xb0};function _0x24de1f(_0x26cbe4,_0x1d4f8b,_0x3ce274,_0x123cb7){return _0x211934(_0x3ce274- -0xb4,_0x1d4f8b-_0xcd6f57._0x52d83e,_0x123cb7,_0x123cb7-0xaf);}const _0x1c240c=new Map(_0x21530c['commands']['map'](_0x517d43=>[_0x517d43['id'],_0x517d43]));function _0xd9b5e6(_0x321c6e,_0x516696,_0x6342da,_0x2e5326){return _0x211934(_0x6342da-0x1da,_0x516696-_0x2d4c28._0x384cb4,_0x516696,_0x2e5326-_0x2d4c28._0x13b3c1);}const _0x1f7d89=buildDescription(_0x21530c[_0xd9b5e6(0x6cf,_0x3627d4._0x5a1e72,0x6d5,0x59e)]);return defineTool({'name':_0xd9b5e6(_0x3627d4._0xe9bacc,_0x3627d4._0x1f47b3,0x75a,0x641),'description':_0x1f7d89,'inputSchema':{'type':_0xd9b5e6(0x6a8,0x49c,0x565,0x6b8),'properties':{'name':{'type':_0x24de1f(_0x3627d4._0x5adca9,_0x3627d4._0x302bcb,0x2eb,_0x3627d4._0x349fae)},'args':{'type':'string'}},'required':[_0xd9b5e6(0x84f,_0x3627d4._0x12fd7d,0x790,_0x3627d4._0x3d8235)]},async *'execute'(_0x2b115e){const _0xebbebb={_0x253a60:0x3ee};function _0x14b7e7(_0x57804a,_0x481216,_0x423de0,_0x29fa5d){return _0x24de1f(_0x57804a-0x81,_0x481216-0x173,_0x481216- -0x93,_0x57804a);}const _0x1ac9c=_0x1c240c['get'](_0x2b115e[_0x14b7e7(_0x2f7ec1._0x312dae,0x46f,_0x2f7ec1._0x4d8b0e,_0x2f7ec1._0x1d5b4d)]);function _0x11983(_0x408a50,_0x31e6db,_0x59e581,_0x34ac0d){return _0x24de1f(_0x408a50-0xd4,_0x31e6db-0xec,_0x408a50- -_0xebbebb._0x253a60,_0x34ac0d);}if(!_0x1ac9c){const _0x1f54a6=Array[_0x14b7e7(0x2b7,0x2ea,0x405,_0x2f7ec1._0x11dfd3)](_0x1c240c[_0x14b7e7(0x2aa,0x28f,_0x2f7ec1._0x2e4450,_0x2f7ec1._0x12f90a)]())['join'](',\x20');throw new ToolExecutionError(_0x11983(-_0x2f7ec1._0x1faf68,-_0x2f7ec1._0x32a0ff,0xb1,0x20)+_0x2b115e['name']+_0x11983(-_0x2f7ec1._0x3831ed,-0x26,-0x1c8,-_0x2f7ec1._0x3d05f4)+_0x1f54a6,{'name':_0x2b115e[_0x14b7e7(0x491,_0x2f7ec1._0x54ffab,_0x2f7ec1._0x540807,_0x2f7ec1._0x6f9719)]});}const _0x302e73=await _0x21530c[_0x11983(_0x2f7ec1._0x200c7a,-0x9a,0x54,0x11)](_0x1ac9c),_0x2bd4cb=_0x2b115e['args']??'',_0x40d62a=renderCommandInstructions({'instructions':_0x302e73[_0x14b7e7(0x4b4,0x43f,_0x2f7ec1._0x20e232,0x321)],'argumentsText':_0x2bd4cb,'argumentNames':_0x302e73[_0x11983(_0x2f7ec1._0x12b34a,-0x6e,_0x2f7ec1._0x43a829,-0x8b)]});return yield createToolOutput(_0x40d62a,{'id':_0x302e73['id'],'name':_0x302e73[_0x11983(_0x2f7ec1._0x30b5de,_0x2f7ec1._0x177985,_0x2f7ec1._0x50934b,0x1a6)],'path':_0x1ac9c['source'][_0x11983(-_0x2f7ec1._0x6b1dc3,-0xc1,-_0x2f7ec1._0x152dca,-_0x2f7ec1._0x22b335)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x58de13,rename as _0x2b9387,stat as _0x49ab56,writeFile as _0x4dc143}from'fs/promises';import*as _0x37a306 from'path';function _0x211934(_0x32fa57,_0x42b82f,_0x3d8290,_0x2bf896){return _0x4629(_0x32fa57-0x157,_0x3d8290);}function detectEol(_0x1525a1){const _0x2cc124={_0x9004f3:0x5bf,_0x5aa69c:0x627,_0x4680df:0x516,_0x53032b:0x746,_0x6cdb69:0x5fb,_0x3c732e:0x167,_0x6890d8:0xec,_0x45a529:0x52e,_0x5cf1a4:0x4b5},_0x29e9a6={_0x57cb2f:0x165,_0x201571:0x8d},_0x4731d2={_0x2cc74e:0x80};function _0x21ea17(_0x3b3776,_0x105e61,_0x3828b0,_0xf86695){return _0x211934(_0xf86695- -0x3fa,_0x105e61-0x155,_0x105e61,_0xf86695-_0x4731d2._0x2cc74e);}function _0x2b77ff(_0x570eed,_0x31f67c,_0x27dbf9,_0x1be823){return _0x211934(_0x27dbf9-_0x29e9a6._0x57cb2f,_0x31f67c-_0x29e9a6._0x201571,_0x1be823,_0x1be823-0xa6);}return/\r\n/[_0x2b77ff(0x5ed,_0x2cc124._0x9004f3,_0x2cc124._0x5aa69c,_0x2cc124._0x4680df)](_0x1525a1[_0x2b77ff(0x68a,_0x2cc124._0x53032b,_0x2cc124._0x6cdb69,0x527)](_0x21ea17(-0x31,_0x2cc124._0x3c732e,0x1b1,_0x2cc124._0x6890d8)))?_0x2b77ff(0x512,_0x2cc124._0x45a529,_0x2cc124._0x5cf1a4,0x5cf):'lf';}function normalizeToLf(_0x17303b){const _0x3ef1ba={_0x42c3a7:0x370,_0x37f12d:0x2f9,_0x279cfe:0x2ae},_0x565d94={_0x102350:0x56};function _0x517592(_0x3884da,_0x559fae,_0x3686a2,_0x2f7e76){return _0x4820c3(_0x3884da-0xf8,_0x559fae-_0x565d94._0x102350,_0x3884da,_0x3686a2- -0x2fe);}return _0x17303b[_0x517592(_0x3ef1ba._0x42c3a7,_0x3ef1ba._0x37f12d,0x383,_0x3ef1ba._0x279cfe)](/\r\n/g,'\x0a');}function convertEol(_0x327e29,_0x4b0287){const _0x53ff92={_0x41086f:0x3ab,_0x41443d:0x385},_0x3ad6e7={_0x3a6fb3:0x61,_0x2bf37b:0x10c};function _0xab7cd(_0xd5f6ae,_0x18d5d6,_0x1573d3,_0x3bf6a5){return _0x211934(_0xd5f6ae- -_0x3ad6e7._0x3a6fb3,_0x18d5d6-0x7e,_0x18d5d6,_0x3bf6a5-_0x3ad6e7._0x2bf37b);}return _0x4b0287===_0xab7cd(0x2ef,0x216,_0x53ff92._0x41086f,_0x53ff92._0x41443d)?_0x327e29['replace'](/\n/g,'\x0d\x0a'):_0x327e29;}async function atomicWrite(_0x118c07,_0x117d6d){const _0x4fda66={_0x18e23d:0x6be,_0x2fe016:0x59d,_0x5a6bb4:0x69d,_0x30d6b4:0x752,_0x224eb2:0x56b,_0xa7bd03:0x776,_0x3e0808:0x783,_0x501550:0x825,_0x1caeca:0x622,_0x2d4c8e:0x750,_0x187724:0x54d,_0x16e790:0x678,_0x3d4a79:0x650,_0xb0ad20:0x511,_0x17a574:0x5d4},_0x4b6983={_0x53f6fc:0x1e5},_0x51eced={_0x4fc21c:0x23};function _0x2dc4a7(_0x324490,_0x566309,_0x306924,_0x1acea6){return _0x211934(_0x306924-0x1ba,_0x566309-0x6a,_0x1acea6,_0x1acea6-_0x51eced._0x4fc21c);}const _0x283234=_0x37a306[_0x20e574(_0x4fda66._0x18e23d,_0x4fda66._0x2fe016,_0x4fda66._0x5a6bb4,_0x4fda66._0x30d6b4)](_0x118c07);function _0x20e574(_0x3c7507,_0x32fb16,_0x1da400,_0x4acdc2){return _0x211934(_0x1da400-_0x4b6983._0x53f6fc,_0x32fb16-0x25,_0x3c7507,_0x4acdc2-0x1b);}const _0x39394e=_0x37a306[_0x2dc4a7(0x697,0x66b,_0x4fda66._0x224eb2,0x583)](_0x283234,_0x20e574(0x7f7,_0x4fda66._0xa7bd03,_0x4fda66._0x3e0808,_0x4fda66._0x501550)+_0x37a306['basename'](_0x118c07)+'.'+Date[_0x20e574(0x540,0x57c,_0x4fda66._0x1caeca,_0x4fda66._0x2d4c8e)]()+'.'+Math[_0x2dc4a7(_0x4fda66._0x187724,0x578,0x534,0x54a)]()[_0x2dc4a7(_0x4fda66._0x16e790,0x6f8,_0x4fda66._0x3d4a79,0x4fe)](0x24)[_0x20e574(0x3e5,0x63a,_0x4fda66._0xb0ad20,_0x4fda66._0x17a574)](0x2));await _0x4dc143(_0x39394e,_0x117d6d),await _0x2b9387(_0x39394e,_0x118c07);}function sha256(_0x4c46b8){const _0x3a0ff3={_0x17bbb1:0x225,_0x15a22e:0x236,_0x58c4d1:0x209},_0x2c714f={_0x12773d:0x117,_0x25d38b:0x4c0},_0x83f64c={_0x52ce94:0x4bb};function _0x47f3f4(_0x4ac479,_0x118df9,_0x284741,_0x4b3367){return _0x211934(_0x4b3367- -_0x83f64c._0x52ce94,_0x118df9-0x1da,_0x284741,_0x4b3367-0x103);}function _0x4534a6(_0x1f3abf,_0xde7144,_0x4cb1c5,_0x43c76a){return _0x4820c3(_0x1f3abf-0x56,_0xde7144-_0x2c714f._0x12773d,_0x1f3abf,_0x43c76a- -_0x2c714f._0x25d38b);}return createHash(_0x4534a6(0x107,_0x3a0ff3._0x17bbb1,0x31f,_0x3a0ff3._0x15a22e))[_0x4534a6(0x1d1,_0x3a0ff3._0x58c4d1,0x43f,0x2fd)](_0x4c46b8)[_0x47f3f4(0x1c5,0x5d,-0x36,0x76)]('hex');}function countLines(_0x44cd9c){const _0x14bc80={_0x3cc3d5:0x2,_0x35d22b:0x26,_0x47ba75:0x78,_0x255fd3:0x122},_0x4b52c3={_0x58f9c1:0x5ec},_0x505123={_0x67a09e:0xa1};function _0x4f8149(_0x371598,_0x55370f,_0x19a6b7,_0x39a42d){return _0x4820c3(_0x371598-0x1e,_0x55370f-_0x505123._0x67a09e,_0x55370f,_0x371598- -0x677);}const _0x583375=_0x44cd9c['replace'](/\n$/,'');function _0x4cd8f7(_0x598566,_0x469b0a,_0x5ae93d,_0x5111a7){return _0x4820c3(_0x598566-0x1e8,_0x469b0a-0xe,_0x469b0a,_0x598566- -_0x4b52c3._0x58f9c1);}return _0x583375[_0x4f8149(-_0x14bc80._0x3cc3d5,-0xc0,-0x100,_0x14bc80._0x35d22b)]===0x0?0x0:_0x583375['split']('\x0a')[_0x4f8149(-_0x14bc80._0x3cc3d5,-_0x14bc80._0x47ba75,-0x13f,_0x14bc80._0x255fd3)];}function calculateLineNumbers(_0x15e5c8,_0x1deb7f,_0x30d5d8,_0x20e3c2){const _0x22dd9f={_0x11245f:0x254,_0x39c301:0x109,_0x58a91e:0xe3},_0x47c1a9={_0x4f1009:0x36c,_0x3b4ddf:0xc},_0x8617eb={_0x53efed:0x74},_0x23e9cd=_0x15e5c8[_0x3173bf(0x31a,0xf4,0x1c0,_0x22dd9f._0x11245f)](0x0,_0x20e3c2)[_0x42cfc6(0x30,0x2b,_0x22dd9f._0x39c301,-_0x22dd9f._0x58a91e)]('\x0a')[_0x3173bf(0x23e,0x475,0x1f7,0x351)],_0x55f09e=countLines(_0x1deb7f);function _0x3173bf(_0x5ed85b,_0x5e2302,_0x1a00f5,_0x47770f){return _0x4820c3(_0x5ed85b-_0x8617eb._0x53efed,_0x5e2302-0x3b,_0x1a00f5,_0x47770f- -0x324);}const _0x502519=countLines(_0x30d5d8);function _0x42cfc6(_0x233193,_0x36f8fe,_0x3e3ba8,_0x1ae793){return _0x211934(_0x233193- -_0x47c1a9._0x4f1009,_0x36f8fe-0xe2,_0x36f8fe,_0x1ae793-_0x47c1a9._0x3b4ddf);}return{'oldStartLine':_0x23e9cd,'oldEndLine':_0x23e9cd+_0x55f09e-0x1,'newStartLine':_0x23e9cd,'newEndLine':_0x23e9cd+_0x502519-0x1,'oldLineCount':_0x55f09e,'newLineCount':_0x502519};}function createFileEditTool(_0x6d452d={}){const _0x2c1b5a={_0x30e79:0x9d,_0x47db84:0x1af,_0x492634:0x279,_0x3fb7ad:0x253,_0xd56d50:0x34a,_0x32e686:0x33c,_0x3f90b:0xaa,_0x1408cf:0x95,_0x2e58bb:0xc4,_0x556a05:0x79,_0x4f602f:0x1d4,_0x6576ec:0x171,_0x3bafdb:0xd6,_0x52ecc8:0x41c,_0x41e4c4:0x301,_0x3db3b:0x2d,_0x4658e3:0x9f,_0x16085c:0x418,_0x28d454:0x3db,_0x3381cc:0x19c,_0x535971:0x293},_0x291192={_0x7f2a7e:0x44d,_0x2ba7d5:0x2d8,_0x51f4df:0x401,_0xfe3da2:0x543,_0x27518e:0x5c0,_0x4562aa:0x585,_0x315774:0x606,_0xea571a:0x409,_0x371e59:0x521,_0x31c3e0:0x4ca,_0x33e4d3:0x62e,_0x4cf995:0x494,_0x3d07c2:0x4d9,_0x4e4d1e:0x400,_0x5cff4b:0x367,_0x56e40f:0x38e,_0x5650b1:0x540,_0x46ead6:0x4f1,_0x5a3727:0x637,_0x2dbe35:0x5a5,_0x1f99cf:0x56a,_0x12dead:0x603,_0x1809c3:0x34c,_0x44fa18:0x114,_0x336760:0x33f,_0x1e46a1:0x19b,_0x2c09ce:0x69d,_0x39c0df:0x4ea,_0x3678c6:0x34d,_0x5ab4e8:0x30b,_0x40608f:0x329,_0x3b7a60:0x5eb,_0x28010f:0x7c1,_0x28e8b6:0x5dc,_0xd00679:0x62a,_0x3f1fa8:0x53b,_0x1687c9:0x401,_0x581572:0x627,_0x35057a:0x4f2,_0x13542b:0x5bb,_0x1e5fc7:0x6a9,_0x31824d:0x49f,_0xdf6349:0x6ee,_0x5b1981:0x7ab,_0x5b3e51:0x6a6,_0x1da242:0x4e5,_0x66a806:0x446,_0x271aa3:0x428,_0x2a32e0:0x34c,_0x4dc149:0x40c,_0x210df2:0x49a},_0x3259ce={_0x148fd1:0xc8},_0x479134={_0x3b492d:0xcf},_0x2ed959=_0x37a306[_0xd2556e(-0x110,-_0x2c1b5a._0x30e79,0x52,-_0x2c1b5a._0x47db84)](_0x6d452d[_0x1b08b7(_0x2c1b5a._0x492634,_0x2c1b5a._0x3fb7ad,_0x2c1b5a._0xd56d50,_0x2c1b5a._0x32e686)]??process['cwd']()),_0x367db2=(_0x6d452d[_0xd2556e(0xb5,-0x30,0x74,_0x2c1b5a._0x3f90b)]??[])[_0xd2556e(-_0x2c1b5a._0x1408cf,-0x1e5,-0x185,-_0x2c1b5a._0x2e58bb)](_0x206cdf=>_0x37a306[_0x1b08b7(0x31a,0x353,0x346,0x3d2)](_0x206cdf));function _0xd2556e(_0x418a88,_0x4a6378,_0xfd725a,_0x1479df){return _0x4820c3(_0x418a88-0x1c3,_0x4a6378-_0x479134._0x3b492d,_0x418a88,_0x4a6378- -0x757);}const _0x22b3d7=_0x6d452d['name']??'FileEdit';function _0x1b08b7(_0x212a1c,_0x544e8c,_0x362711,_0x39faaf){return _0x211934(_0x212a1c- -0x154,_0x544e8c-0x178,_0x544e8c,_0x39faaf-0x5c);}return defineTool({'name':_0x22b3d7,'description':_0xd2556e(0xe4,-_0x2c1b5a._0x556a05,0xd6,-_0x2c1b5a._0x4f602f),'inputSchema':{'type':_0xd2556e(-_0x2c1b5a._0x6576ec,-0x180,-_0x2c1b5a._0x3bafdb,-0x13b),'properties':{'filePath':{'type':_0xd2556e(-0x24c,-0x16c,-0x109,-0x63)},'oldText':{'type':'string'},'newText':{'type':'string'},'dryRun':{'type':_0x1b08b7(0x30c,_0x2c1b5a._0x52ecc8,_0x2c1b5a._0x41e4c4,0x2a1)}},'required':[_0xd2556e(0x32,-_0x2c1b5a._0x3db3b,-_0x2c1b5a._0x4658e3,0x25),_0x1b08b7(0x453,_0x2c1b5a._0x16085c,0x3be,_0x2c1b5a._0x28d454),_0xd2556e(-0x14c,-0x1a2,-_0x2c1b5a._0x3381cc,-_0x2c1b5a._0x535971)]},async *'execute'(_0x1e5690){const _0xbefd52={_0x5bc425:0x42e,_0x420196:0x147,_0x1f8f7e:0x82},_0x37829a=resolveAllowedPath(_0x2ed959,_0x367db2,_0x1e5690[_0x5b2c77(_0x291192._0x7f2a7e,_0x291192._0x2ba7d5,0x2af,_0x291192._0x51f4df)]);await assertWorkspaceFile(_0x37829a);const _0x7ee412=await _0x49ab56(_0x37829a),_0xc53eeb=await _0x58de13(_0x37829a);function _0x5b2c77(_0x13d716,_0x7e9aa7,_0x1b5706,_0x578521){return _0xd2556e(_0x7e9aa7,_0x578521-_0xbefd52._0x5bc425,_0x1b5706-_0xbefd52._0x420196,_0x578521-_0xbefd52._0x1f8f7e);}const _0x917cce=detectEol(_0xc53eeb),_0x45d28e=normalizeToLf(_0xc53eeb[_0x2dd620(_0x291192._0xfe3da2,_0x291192._0x27518e,_0x291192._0x4562aa,_0x291192._0x315774)](_0x5b2c77(0x386,0x4e5,0x440,_0x291192._0xea571a)));function _0x2dd620(_0x2aea84,_0x134b67,_0x433caa,_0x558647){return _0x1b08b7(_0x558647-0x2c4,_0x433caa,_0x433caa-0x18e,_0x558647-_0x3259ce._0x148fd1);}const _0x405d79=normalizeToLf(_0x1e5690[_0x5b2c77(0x4c8,0x3a4,_0x291192._0x371e59,_0x291192._0x31c3e0)]),_0x7c25a9=normalizeToLf(_0x1e5690[_0x2dd620(_0x291192._0x33e4d3,0x4a3,_0x291192._0x4cf995,_0x291192._0x3d07c2)]),_0x895463=_0x45d28e[_0x5b2c77(0x46a,0x4d5,0x2ea,_0x291192._0x4e4d1e)](_0x405d79);if(_0x895463===-0x1){const _0x315dc1=_0x405d79[_0x2dd620(_0x291192._0x5cff4b,_0x291192._0x56e40f,0x5bf,0x49c)](0x0,0x64)[_0x2dd620(_0x291192._0x5650b1,_0x291192._0x46ead6,_0x291192._0x5a3727,_0x291192._0x2dbe35)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x2dd620(0x6bd,0x583,_0x291192._0x1f99cf,_0x291192._0x12dead)+_0x315dc1+(_0x405d79[_0x5b2c77(0x241,0x396,0x3b4,_0x291192._0x1809c3)]>0x64?'...':'')+'\x22',{'filePath':_0x1e5690['filePath']});}const _0x32089a=_0x45d28e['slice'](0x0,_0x895463)+_0x7c25a9+_0x45d28e[_0x5b2c77(_0x291192._0x44fa18,_0x291192._0x336760,_0x291192._0x1e46a1,0x24f)](_0x895463+_0x405d79[_0x2dd620(_0x291192._0x2c09ce,0x45a,0x6a6,0x599)]),_0x459745=convertEol(_0x32089a,_0x917cce),_0xa60be3=Buffer[_0x2dd620(0x630,_0x291192._0x39c0df,0x5f9,0x5a1)](_0x459745,'utf8'),_0x325b1f=sha256(_0xc53eeb),_0x569eb3=sha256(_0xa60be3),_0x9eafa0=_0x325b1f===_0x569eb3,_0x7f1d28=_0x1e5690[_0x5b2c77(0x278,_0x291192._0x3678c6,_0x291192._0x5ab4e8,_0x291192._0x40608f)]??![];return!_0x7f1d28&&!_0x9eafa0&&await atomicWrite(_0x37829a,_0xa60be3),yield createToolOutput(_0x9eafa0?_0x2dd620(_0x291192._0x3b7a60,0x795,_0x291192._0x28010f,0x6ad):_0x7f1d28?'Validated\x20(dry\x20run:\x20no\x20write).':_0x2dd620(0x752,0x5de,_0x291192._0x28e8b6,_0x291192._0xd00679),{'filePath':_0x1e5690[_0x5b2c77(_0x291192._0x3f1fa8,0x355,0x334,_0x291192._0x1687c9)],'resolvedPath':_0x37829a,'created':_0x7ee412[_0x5b2c77(_0x291192._0x581572,0x43f,_0x291192._0x35057a,0x4d6)][_0x2dd620(_0x291192._0x13542b,_0x291192._0x1e5fc7,0x609,0x6b9)](),'modified':_0x7ee412[_0x5b2c77(0x3be,0x517,_0x291192._0x31824d,0x3e3)]['toISOString'](),'size':_0x7ee412[_0x2dd620(0x5af,_0x291192._0xdf6349,_0x291192._0x5b1981,0x6c2)],'eol':_0x917cce,'oldTextLength':_0x405d79[_0x2dd620(_0x291192._0x5b3e51,_0x291192._0x1da242,0x698,0x599)],'newTextLength':_0x7c25a9[_0x5b2c77(0x2ea,_0x291192._0x66a806,_0x291192._0x271aa3,_0x291192._0x2a32e0)],'bytesWritten':_0x9eafa0||_0x7f1d28?0x0:_0xa60be3[_0x5b2c77(_0x291192._0x4dc149,0x400,_0x291192._0x210df2,0x34c)],'beforeSha':_0x325b1f,'afterSha':_0x569eb3,'dryRun':_0x7f1d28,'noChange':_0x9eafa0,'lineNumbers':calculateLineNumbers(_0x45d28e,_0x405d79,_0x7c25a9,_0x895463)}),void 0x0;}});}import{mkdir as _0x1bc22d,rename as _0x22370b,stat as _0x561c90,writeFile as _0x29228f}from'fs/promises';import*as _0x51ddac from'path';async function atomicWrite2(_0x3d35be,_0x319251){const _0x50a16f={_0x212714:0x614,_0x141642:0x45d,_0x2c32c4:0x756,_0x57d06e:0x57c,_0x5c926d:0x1dd,_0xad52da:0x346,_0x279447:0x322,_0x1b739e:0x427,_0x58fa89:0x3f2},_0x403687={_0x53fdd6:0x12e,_0x1fc4cd:0xb2},_0x27cf1c={_0x38371b:0x174,_0x455e12:0x1eb},_0x6c48bd=_0x51ddac['dirname'](_0x3d35be);await _0x1bc22d(_0x6c48bd,{'recursive':!![]});const _0x7fa15a=_0x51ddac[_0x16ffa2(0x617,_0x50a16f._0x212714,0x54b,_0x50a16f._0x141642)](_0x6c48bd,'.tmp.'+_0x51ddac[_0x16ffa2(0x7af,_0x50a16f._0x2c32c4,0x6a3,_0x50a16f._0x57d06e)](_0x3d35be)+'.'+Date[_0x53d980(_0x50a16f._0x5c926d,0x2c9,0x28d,0x183)]()+'.'+Math[_0x16ffa2(0x46e,0x647,0x514,0x62e)]()[_0x53d980(_0x50a16f._0xad52da,_0x50a16f._0x279447,0x235,0x234)](0x24)[_0x16ffa2(_0x50a16f._0x1b739e,0x450,0x4c6,_0x50a16f._0x58fa89)](0x2));await _0x29228f(_0x7fa15a,_0x319251);function _0x53d980(_0x268828,_0x9ed6c8,_0x2c5f43,_0xc3061a){return _0x211934(_0x9ed6c8- -_0x27cf1c._0x38371b,_0x9ed6c8-0x169,_0xc3061a,_0xc3061a-_0x27cf1c._0x455e12);}function _0x16ffa2(_0x18d92a,_0x152b88,_0x2b0c7b,_0x2b5d6f){return _0x4820c3(_0x18d92a-_0x403687._0x53fdd6,_0x152b88-0x1da,_0x2b5d6f,_0x2b0c7b- -_0x403687._0x1fc4cd);}await _0x22370b(_0x7fa15a,_0x3d35be);}function createFileNewTool(_0x410770={}){const _0x2e0b88={_0x45c47d:0x3da,_0x41b8da:0x5c1,_0x2d36c2:0x4d2,_0x14d040:0x2d2,_0x54062d:0x4b,_0x862bd9:0x16b,_0x43d4de:0x7c,_0x4c56a6:0x304,_0x386e82:0x440,_0x4ad416:0x148,_0x567bce:0x157,_0x2ac981:0x376,_0x4a4760:0x26f,_0x49089a:0x31e,_0x4ab5fd:0x3cd,_0x4e2f33:0x92,_0x1d5a80:0x10e,_0x55697e:0x2a,_0x30eb7e:0x33,_0x279521:0xac,_0x5c156f:0x661,_0x14d953:0x3fd},_0x3328f3={_0x1b313f:0x1df,_0x24cd79:0xa6,_0x20a3e3:0xad,_0x3da1c9:0x255,_0x1f317e:0x23,_0x158471:0x11e,_0x549b6a:0x65,_0x3b48ba:0x1ea,_0x15217d:0x2b0,_0x1bd0a9:0x1c9,_0x5a57e2:0xcf,_0x211053:0x2c4,_0x47fbff:0x16f,_0x2e4247:0x1ee,_0x8166ae:0x2c0,_0x126639:0x28b,_0x367d5c:0x1b9,_0x211ea1:0x23d,_0x524476:0x53,_0x529c2b:0xb4,_0x39acc0:0x35,_0x518acb:0x251},_0x5ee3e7={_0xbff7f:0x14b,_0x349dcc:0x80},_0x431f62={_0x49b084:0x21};function _0x489ca6(_0x15a0b6,_0xc03141,_0x4cebf2,_0x4c2db1){return _0x4820c3(_0x15a0b6-_0x431f62._0x49b084,_0xc03141-0x18f,_0xc03141,_0x4c2db1- -0x6ab);}function _0x555abe(_0x448840,_0x11968d,_0x354ce6,_0x296669){return _0x211934(_0x448840-0x54,_0x11968d-0x55,_0x11968d,_0x296669-0x111);}const _0x24bdcd=_0x51ddac[_0x555abe(0x4c2,_0x2e0b88._0x45c47d,_0x2e0b88._0x41b8da,_0x2e0b88._0x2d36c2)](_0x410770[_0x555abe(0x421,0x36a,_0x2e0b88._0x14d040,0x33a)]??process[_0x489ca6(-_0x2e0b88._0x54062d,0xec,-0x105,0x2c)]()),_0xc96d49=(_0x410770[_0x489ca6(_0x2e0b88._0x862bd9,0x12d,0x77,_0x2e0b88._0x43d4de)]??[])[_0x555abe(0x37a,0x24d,_0x2e0b88._0x4c56a6,_0x2e0b88._0x386e82)](_0x34c3f7=>_0x51ddac[_0x555abe(0x4c2,0x3df,0x526,0x552)](_0x34c3f7)),_0x2e7f7c=_0x410770[_0x489ca6(0x19d,0x7,_0x2e0b88._0x4ad416,_0x2e0b88._0x567bce)]??_0x555abe(_0x2e0b88._0x2ac981,_0x2e0b88._0x4a4760,_0x2e0b88._0x49089a,_0x2e0b88._0x4ab5fd);return defineTool({'name':_0x2e7f7c,'description':_0x489ca6(_0x2e0b88._0x4e2f33,0x125,0x13c,_0x2e0b88._0x1d5a80),'inputSchema':{'type':_0x489ca6(_0x2e0b88._0x55697e,-0x13b,_0x2e0b88._0x30eb7e,-0xd4),'properties':{'filePath':{'type':'string'},'content':{'type':_0x489ca6(-0x21b,-_0x2e0b88._0x279521,-0x118,-0xc0)}},'required':[_0x555abe(0x532,_0x2e0b88._0x5c156f,_0x2e0b88._0x14d953,0x49a),'content']},async *'execute'(_0x3101aa){const _0x3f29f9={_0x3514a1:0x1a5},_0x318207=resolveAllowedPath(_0x24bdcd,_0xc96d49,_0x3101aa['filePath']),_0x4271cb=await _0x561c90(_0x318207)[_0x5308e9(_0x3328f3._0x1b313f,_0x3328f3._0x24cd79,0x1ae,_0x3328f3._0x20a3e3)](()=>!![])[_0x5308e9(_0x3328f3._0x3da1c9,_0x3328f3._0x1f317e,_0x3328f3._0x158471,0x127)](()=>![]);function _0x5308e9(_0x514969,_0x48fbf6,_0x4b22b1,_0x4a50d4){return _0x555abe(_0x4a50d4- -0x34c,_0x48fbf6,_0x4b22b1-_0x5ee3e7._0xbff7f,_0x4a50d4-_0x5ee3e7._0x349dcc);}const _0x1ad398=Buffer[_0x293c26(-_0x3328f3._0x549b6a,0x161,0xc5,_0x3328f3._0x3b48ba)](_0x3101aa[_0x293c26(_0x3328f3._0x15217d,0x142,_0x3328f3._0x1bd0a9,_0x3328f3._0x5a57e2)],_0x5308e9(_0x3328f3._0x211053,0x27f,_0x3328f3._0x47fbff,_0x3328f3._0x2e4247));await atomicWrite2(_0x318207,_0x1ad398);function _0x293c26(_0x37131e,_0x539943,_0x2a5fc1,_0x3d8fdd){return _0x555abe(_0x2a5fc1- -0x3c0,_0x3d8fdd,_0x2a5fc1-_0x3f29f9._0x3514a1,_0x3d8fdd-0x1c1);}return yield createToolOutput(_0x293c26(0x116,0x206,0x25d,0x323)+_0x3101aa[_0x293c26(0x263,_0x3328f3._0x8166ae,0x172,_0x3328f3._0x126639)]+'.',{'filePath':_0x3101aa['filePath'],'resolvedPath':_0x318207,'bytes':_0x1ad398['length'],'lines':_0x3101aa[_0x5308e9(0x2f3,_0x3328f3._0x367d5c,0x178,_0x3328f3._0x211ea1)][_0x293c26(-0x4e,_0x3328f3._0x524476,0x30,-_0x3328f3._0x529c2b)](/\r?\n/)[_0x5308e9(0x1c9,0x11d,_0x3328f3._0x39acc0,0x131)],'created':new Date()[_0x5308e9(0x24d,0x266,0x210,_0x3328f3._0x518acb)](),'overwritten':_0x4271cb}),void 0x0;}});}import{readFile as _0x1451f2,stat as _0x3c1072}from'fs/promises';import*as _0x3102e3 from'path';function stripUtfBom(_0x3a067b){const _0x212efc={_0x1c726a:0x3eb,_0x2075ea:0x5f5,_0x563aab:0x527,_0x188ff3:0x3fb},_0xf28c83={_0x5927ac:0x4ef,_0x3881e6:0x9b},_0x556724={_0x2cb256:0x1fb,_0x45e529:0xe8};function _0x1bf942(_0x58b2f7,_0x699414,_0x2b4488,_0x36a2d4){return _0x211934(_0x2b4488-_0x556724._0x2cb256,_0x699414-_0x556724._0x45e529,_0x699414,_0x36a2d4-0x11);}function _0x26428e(_0x5d1621,_0xdcfa41,_0x2b8416,_0x43053a){return _0x211934(_0xdcfa41- -_0xf28c83._0x5927ac,_0xdcfa41-_0xf28c83._0x3881e6,_0x5d1621,_0x43053a-0xa4);}return _0x3a067b[_0x1bf942(0x646,0x59b,0x69e,0x781)](0x0)===0xfeff?_0x3a067b[_0x1bf942(_0x212efc._0x1c726a,_0x212efc._0x2075ea,_0x212efc._0x563aab,_0x212efc._0x188ff3)](0x1):_0x3a067b;}function clampLine(_0xe240b3,_0x4df509){const _0x5f5841={_0x473e86:0x22f,_0x1d2cc7:0x245,_0x1e90ba:0x1e9,_0x5a0f6d:0x234},_0x40f7f2={_0x360dc9:0x479},_0xb075f7={_0xaf198f:0x4de};function _0x3ca5e7(_0x5840ca,_0x4b8371,_0xb90685,_0x2d2ea2){return _0x4820c3(_0x5840ca-0x181,_0x4b8371-0x177,_0xb90685,_0x2d2ea2- -_0xb075f7._0xaf198f);}function _0x448c3e(_0x24762f,_0x351c2a,_0x28b205,_0x374bb2){return _0x4820c3(_0x24762f-0xf,_0x351c2a-0x2e,_0x24762f,_0x28b205- -_0x40f7f2._0x360dc9);}if(!Number[_0x3ca5e7(0x92,_0x5f5841._0x473e86,0xc8,0x110)](_0xe240b3))return 0x1;return Math['max'](0x1,Math[_0x448c3e(_0x5f5841._0x1d2cc7,_0x5f5841._0x1e90ba,0x18a,0x20c)](Math[_0x448c3e(_0x5f5841._0x5a0f6d,0x1f2,0x2a4,0x3e7)](_0xe240b3),_0x4df509));}function createFileReadTool(_0x55aed2={}){const _0x1dd3fa={_0x3cf515:0xf7,_0x259b4d:0x82,_0x5af062:0x188,_0x42b4e6:0x1aa,_0x2c412:0x33b,_0x1801dd:0x2f2,_0x2fef54:0x23f,_0x464980:0xea,_0x253d12:0x80,_0x3f2c64:0x131,_0x238272:0x57,_0x16358a:0x27,_0x2b1089:0x615,_0x56abcf:0x691,_0x1278de:0x56a,_0x5a223d:0x683,_0x2679ad:0x7},_0x22adc2={_0xc5e715:0x61,_0x195bcc:0xe4,_0x5aa760:0xc2,_0x2f40e1:0x41,_0x269022:0x7b,_0x90ac16:0x32,_0x57b1e7:0x175,_0x17e137:0x50,_0x1a38a2:0x38,_0x443b00:0x9f,_0x1b772e:0x11,_0x1c1caf:0x27,_0x5d9348:0x771,_0x32b59c:0x5e5,_0x56d3a0:0x6c7,_0xb8355a:0x7d1,_0x39857c:0x76f,_0x4cdae4:0x6d0,_0xfba38b:0x2b,_0x4bf43a:0x55d,_0x2a1694:0x51a,_0x3d4f7a:0x4cf,_0x35b600:0x580,_0x45815b:0x4e2,_0x5a34e1:0x147,_0x1becc0:0xa9,_0x37358a:0x2c2,_0x273d3b:0x1ad,_0x550b1c:0x1f7,_0x39ff35:0x2c9,_0x2bf363:0x6dc,_0x11809e:0x5f5,_0x5ce393:0x5a7,_0x59c9d9:0x2,_0x22fa29:0x441,_0x2e4df8:0x535,_0xe0aab7:0x694,_0xb93b9c:0x67c,_0x58b5a1:0x160,_0xf83d2a:0xe8,_0x25435d:0x86},_0x4590ea={_0x2d1f51:0xa2,_0x51f381:0xaf},_0x38f485={_0x2597b5:0xcc,_0x988ac:0x5e0},_0x658a99={_0x583e10:0xe6,_0x260bcc:0x18f},_0x3f9c1f={_0x51360b:0x8,_0xd82b63:0x1bd},_0x52d1f9=_0x3102e3[_0x297abb(_0x1dd3fa._0x3cf515,_0x1dd3fa._0x259b4d,_0x1dd3fa._0x5af062,-0x3c)](_0x55aed2[_0x31cbfb(0x43e,0x47c,0x3ff,0x49c)]??process['cwd']()),_0x2dbf2e=(_0x55aed2[_0x297abb(0x164,_0x1dd3fa._0x42b4e6,0xe0,0x136)]??[])[_0x31cbfb(_0x1dd3fa._0x2c412,_0x1dd3fa._0x1801dd,0x459,0x3f5)](_0x2f766a=>_0x3102e3[_0x31cbfb(0x638,0x655,0x442,0x53d)](_0x2f766a)),_0x21650c=_0x55aed2[_0x297abb(_0x1dd3fa._0x2fef54,0x23d,_0x1dd3fa._0x464980,0x391)]??'FileRead';function _0x31cbfb(_0x4ce76d,_0x17ab38,_0x4bb10f,_0x47a879){return _0x211934(_0x47a879-0xcf,_0x17ab38-_0x3f9c1f._0x51360b,_0x4ce76d,_0x47a879-_0x3f9c1f._0xd82b63);}function _0x297abb(_0x39c5f5,_0x5de109,_0x34b21f,_0xd9acbb){return _0x211934(_0x39c5f5- -0x377,_0x5de109-_0x658a99._0x583e10,_0x5de109,_0xd9acbb-_0x658a99._0x260bcc);}return defineTool({'name':_0x21650c,'description':_0x297abb(0x1b,0xe6,_0x1dd3fa._0x253d12,0x138),'inputSchema':{'type':'object','properties':{'path':{'type':_0x297abb(0x28,_0x1dd3fa._0x3f2c64,-0x26,-_0x1dd3fa._0x238272)},'lineStart':{'type':'number','description':'Start\x20reading\x20from\x20this\x20line\x20number\x20(1-based)'},'lineEnd':{'type':_0x297abb(0xe,-0x132,-0x10c,-_0x1dd3fa._0x16358a),'description':_0x31cbfb(_0x1dd3fa._0x2b1089,_0x1dd3fa._0x56abcf,_0x1dd3fa._0x1278de,_0x1dd3fa._0x5a223d)}},'required':[_0x297abb(0xb6,0x76,-0x70,_0x1dd3fa._0x2679ad)]},async *'execute'(_0x419d60){const _0x491f7e=resolveAllowedPath(_0x52d1f9,_0x2dbf2e,_0x419d60[_0x2a3404(-0xe4,-0x25,0x69,-_0x22adc2._0xc5e715)]);await assertWorkspaceFile(_0x491f7e);function _0x2a3404(_0x364f01,_0xbf1b1f,_0x588b3d,_0x493b28){return _0x31cbfb(_0x493b28,_0xbf1b1f-0x7c,_0x588b3d-_0x38f485._0x2597b5,_0x364f01- -_0x38f485._0x988ac);}const _0x2a872e=await _0x3c1072(_0x491f7e);function _0x55f03f(_0x825dfd,_0x3ba24d,_0x502ec8,_0x4e3c86){return _0x31cbfb(_0x825dfd,_0x3ba24d-_0x4590ea._0x2d1f51,_0x502ec8-0x1bd,_0x4e3c86-_0x4590ea._0x51f381);}const _0x12c14d=await _0x1451f2(_0x491f7e);if(isProbablyBinary(_0x12c14d))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x419d60['path'],{'path':_0x419d60[_0x2a3404(-_0x22adc2._0x195bcc,0x28,-_0x22adc2._0x5aa760,-_0x22adc2._0x2f40e1)]});let _0x4caea1=_0x12c14d[_0x2a3404(-_0x22adc2._0x269022,-0xd4,-_0x22adc2._0x90ac16,-0x193)]('utf8');const _0x51c446=_0x4caea1['charCodeAt'](0x0)===0xfeff;_0x4caea1=stripUtfBom(_0x4caea1);const _0x1f4a47=_0x4caea1[_0x2a3404(-_0x22adc2._0x57b1e7,-0x2d0,-0x182,-0x8b)](/\r?\n/),_0x1b156d={'path':_0x419d60[_0x2a3404(-0xe4,-_0x22adc2._0x17e137,-0x1b0,-0x5)],'resolvedPath':_0x491f7e,'created':_0x2a872e['birthtime'][_0x2a3404(_0x22adc2._0x1a38a2,_0x22adc2._0xc5e715,0x2b,0xf0)](),'modified':_0x2a872e[_0x2a3404(-0x51,_0x22adc2._0x443b00,_0x22adc2._0x1b772e,-_0x22adc2._0x1c1caf)][_0x55f03f(_0x22adc2._0x5d9348,_0x22adc2._0x32b59c,0x688,_0x22adc2._0x56d3a0)](),'size':_0x2a872e[_0x55f03f(_0x22adc2._0xb8355a,0x6f4,_0x22adc2._0x39857c,_0x22adc2._0x4cdae4)],'encoding':_0x2a3404(-_0x22adc2._0xfba38b,-0x2e,-0x139,-0x3f),'bomStripped':_0x51c446,'truncated':![],'totalLines':_0x1f4a47['length']};if(_0x419d60[_0x55f03f(0x49c,_0x22adc2._0x4bf43a,_0x22adc2._0x2a1694,_0x22adc2._0x3d4f7a)]!==void 0x0||_0x419d60[_0x55f03f(0x5e1,0x554,_0x22adc2._0x35b600,_0x22adc2._0x45815b)]!==void 0x0){const _0x41b0fc=clampLine(_0x419d60[_0x2a3404(-0x1c0,-_0x22adc2._0x5a34e1,-_0x22adc2._0x1becc0,-_0x22adc2._0x37358a)]??0x1,_0x1f4a47['length']),_0x1e0f90=clampLine(_0x419d60[_0x2a3404(-_0x22adc2._0x273d3b,-_0x22adc2._0x550b1c,-0x28d,-_0x22adc2._0x39ff35)]??_0x1f4a47[_0x55f03f(_0x22adc2._0x2bf363,0x6f3,_0x22adc2._0x11809e,_0x22adc2._0x5ce393)],_0x1f4a47[_0x2a3404(-0xe8,_0x22adc2._0x59c9d9,-0x1c,-0x40)]),_0x14ab86=Math[_0x55f03f(0x60e,_0x22adc2._0x22fa29,0x52d,_0x22adc2._0x2e4df8)](_0x41b0fc,_0x1e0f90),_0x150c4a=Math[_0x55f03f(0x58e,0x646,_0x22adc2._0xe0aab7,_0x22adc2._0xb93b9c)](_0x41b0fc,_0x1e0f90),_0x16ee40=_0x1f4a47['slice'](_0x14ab86-0x1,_0x150c4a)['map']((_0x3cbd39,_0x50edcf)=>_0x14ab86+_0x50edcf+'|'+_0x3cbd39)[_0x2a3404(-_0x22adc2._0x58b5a1,-0x32,-0x1a1,-0x11a)]('\x0a');return yield createToolOutput(_0x16ee40,{..._0x1b156d,'lineRange':{'lineStart':_0x14ab86,'lineEnd':_0x150c4a,'linesTotal':_0x1f4a47[_0x2a3404(-_0x22adc2._0xf83d2a,-_0x22adc2._0x25435d,-0x70,-0x1a4)]}}),void 0x0;}return yield createToolOutput(_0x4caea1,_0x1b156d),void 0x0;}});}import{stat as _0x3cfeb9}from'fs/promises';import*as _0x118f30 from'path';import{execSync,spawn as _0x49a6b1}from'child_process';import{existsSync}from'fs';import{stat as _0x1972a1}from'fs/promises';import*as _0x1ceb4d from'os';import*as _0x5d2e6f from'path';import{rgPath as _0x47789a}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1ea936={_0x4c628a:0x45c,_0x54e416:0x32e,_0x32ab2c:0x2e4,_0x1a3d74:0x386,_0xe017dd:0x29b,_0x1bac7a:0x1ae,_0x44b409:0x25,_0x3b2af4:0x26,_0x2bdaa4:0x129,_0x3b5879:0x29,_0x390c51:0x155,_0x58d65c:0x84,_0x378888:0x2,_0x525ee1:0x12e,_0x5a5bc6:0xbb,_0x59109f:0xf9,_0x2649e3:0xcd,_0x1e08f8:0x2e3,_0x345591:0x2d9,_0x5e1676:0x275,_0x4a1f26:0x1f3,_0x247b29:0x1d3,_0x53f3e8:0x2e2,_0x357c80:0x3c9,_0x42a001:0x29b,_0x1ecd68:0xf9,_0x2ff978:0x67,_0x1b3e42:0x17d,_0x1b8150:0x263,_0x39105b:0xca,_0x372591:0xb3,_0x46a685:0x3ee,_0x3879d8:0x583,_0x3cb3f9:0x50c,_0x2c81a0:0x443,_0x775f11:0x35,_0x1f72ab:0x92,_0x307e85:0x5d,_0x982a13:0x6f,_0x497d63:0x90,_0x5e7a70:0x141,_0x982236:0x582,_0x32e292:0x400,_0x128761:0xb3,_0x5e66bf:0x36a,_0x5d25c7:0x505,_0x19c30a:0x4a9,_0x6dd83c:0x379,_0x3572d9:0x4a9,_0x282c4c:0x31e,_0x2b8cec:0x162,_0x4df19c:0x332,_0x24e58c:0x20a,_0x465b97:0x9a,_0x5c4cac:0x1a7},_0xbbde29={_0x39d2de:0x143,_0x2f4bdd:0xf7,_0x2fa3a0:0x592},_0x101d46={_0x26bbb2:0x1ce,_0x4da3b2:0x362};function _0x4259e2(_0x4008e0,_0x589fdd,_0x4ea9e5,_0xb61d0f){return _0x4820c3(_0x4008e0-_0x101d46._0x26bbb2,_0x589fdd-0x15,_0x589fdd,_0xb61d0f- -_0x101d46._0x4da3b2);}function _0x2a2f80(_0x31a948,_0x26266e,_0x55fd49,_0x4651d4){return _0x4820c3(_0x31a948-_0xbbde29._0x39d2de,_0x26266e-_0xbbde29._0x2f4bdd,_0x55fd49,_0x31a948- -_0xbbde29._0x2fa3a0);}const _0x78baaa=_0x1ceb4d[_0x4259e2(_0x1ea936._0x4c628a,0x3b4,0x3e2,_0x1ea936._0x54e416)]()==='win32',_0x2651e2=_0x78baaa?[_0x5d2e6f[_0x4259e2(_0x1ea936._0x32ab2c,0x379,_0x1ea936._0x1a3d74,_0x1ea936._0xe017dd)](process['env'][_0x4259e2(_0x1ea936._0x1bac7a,0x3ec,0x1a8,0x2f6)]||'',_0x2a2f80(0x8c,-_0x1ea936._0x44b409,_0x1ea936._0x3b2af4,_0x1ea936._0x2bdaa4),_0x2a2f80(_0x1ea936._0x3b5879,0x7b,_0x1ea936._0x390c51,_0x1ea936._0x58d65c),_0x2a2f80(-_0x1ea936._0x378888,_0x1ea936._0x525ee1,-0x23,0xdb)),_0x5d2e6f[_0x2a2f80(0x6b,-0xf,-0xa8,_0x1ea936._0x5a5bc6)](process[_0x2a2f80(_0x1ea936._0x59109f,_0x1ea936._0x2649e3,0xa1,0x170)][_0x4259e2(0x29d,_0x1ea936._0x1e08f8,_0x1ea936._0x345591,0x3fc)]||'',_0x2a2f80(_0x1ea936._0x5e1676,0x196,0x3d1,0x370),_0x2a2f80(0x17d,0x233,0x15e,_0x1ea936._0x4a1f26)),_0x5d2e6f[_0x4259e2(_0x1ea936._0x247b29,_0x1ea936._0x53f3e8,_0x1ea936._0x357c80,_0x1ea936._0x42a001)](process[_0x2a2f80(_0x1ea936._0x1ecd68,_0x1ea936._0x2ff978,0xdf,0xcb)][_0x4259e2(0x5f8,0x3a8,0x3f9,0x4a3)]||'',_0x2a2f80(0x275,0x359,0x1b9,0x11f),_0x2a2f80(_0x1ea936._0x1b3e42,0x2a8,_0x1ea936._0x1b8150,0x2d3))]:[_0x2a2f80(_0x1ea936._0x39105b,-0x49,_0x1ea936._0x372591,0xf4),_0x4259e2(_0x1ea936._0x46a685,_0x1ea936._0x3879d8,_0x1ea936._0x3cb3f9,_0x1ea936._0x2c81a0),_0x2a2f80(_0x1ea936._0x775f11,_0x1ea936._0x1f72ab,0x176,-_0x1ea936._0x307e85),_0x2a2f80(_0x1ea936._0x982a13,-_0x1ea936._0x497d63,_0x1ea936._0x5e7a70,-0x1f)];for(const _0x2e3828 of _0x2651e2){if(existsSync(_0x2e3828))return _0x2e3828;}try{const _0x57113a=_0x78baaa?_0x4259e2(_0x1ea936._0x982236,_0x1ea936._0x32e292,0x37a,0x477):_0x2a2f80(0x15,-0xb8,-0x51,_0x1ea936._0x128761),_0x7cc459=execSync(_0x57113a,{'encoding':_0x4259e2(0x3e9,_0x1ea936._0x5e66bf,0x27e,0x3d0),'stdio':[_0x4259e2(_0x1ea936._0x5d25c7,0x45a,0x40a,_0x1ea936._0x19c30a),_0x4259e2(0x56e,_0x1ea936._0x6dd83c,0x4b5,_0x1ea936._0x3572d9),_0x4259e2(_0x1ea936._0x282c4c,_0x1ea936._0x2b8cec,_0x1ea936._0x4df19c,_0x1ea936._0x24e58c)]})[_0x2a2f80(0x9a,_0x1ea936._0x465b97,0x153,_0x1ea936._0x5c4cac)]()['split'](/\r?\n/)[0x0];if(_0x7cc459&&existsSync(_0x7cc459))return _0x7cc459;}catch{return null;}return null;}async function filepath(){const _0x581a8b={_0x5815a3:0x103,_0xbc6f8d:0x28,_0x4a282c:0x94},_0x44282d={_0x7776c4:0x1a5,_0x55a531:0x15f,_0x53696f:0x5d8};if(cachedRgPath)return cachedRgPath;if(_0x47789a&&existsSync(_0x47789a))return cachedRgPath=_0x47789a,_0x47789a;const _0x14a9a6=findSystemRipgrep();if(!_0x14a9a6)throw new Error(_0x13cb26(_0x581a8b._0x5815a3,0xc8,_0x581a8b._0xbc6f8d,-_0x581a8b._0x4a282c));cachedRgPath=_0x14a9a6;function _0x13cb26(_0x2f7710,_0x502e1a,_0x23b739,_0x5c501a){return _0x4820c3(_0x2f7710-_0x44282d._0x7776c4,_0x502e1a-_0x44282d._0x55a531,_0x2f7710,_0x23b739- -_0x44282d._0x53696f);}return _0x14a9a6;}async function*files(_0x1a7dd1){const _0x57aaf8={_0x39e625:0x573,_0x48a5d1:0x5cb,_0x432fa0:0x5f8,_0x5ca615:0x659,_0x111617:0x282,_0x279f0e:0x78f,_0x252e04:0x715,_0x5153c4:0x11d,_0x5196e8:0x5cb,_0x383ef7:0x73d,_0x89feb2:0x45b,_0x53a566:0x341,_0x131237:0x3fe,_0x4e4c18:0x52e,_0x4cdc39:0x3b6,_0x1e0f28:0x768,_0x3ee07b:0x6e5,_0x5297e6:0x6ff,_0x1802ad:0x3f8,_0x20de08:0x37c,_0xa2813b:0x16b,_0x3c7caa:0x65c,_0x29e61d:0x4fb,_0x28d43b:0x581,_0x303120:0x492,_0x2a4dc3:0x569,_0x14a5cb:0x480,_0x341d26:0x5ad,_0x3b5fcf:0x45a,_0x41ac17:0x461},_0x177066={_0x375f06:0x1c7},_0x503cc4=await filepath(),_0x2881ea=await _0x1972a1(_0x1a7dd1[_0x5912c5(_0x57aaf8._0x39e625,0x62a,0x5aa,_0x57aaf8._0x48a5d1)])['catch'](()=>null);function _0x5912c5(_0x55ccc3,_0x5acc02,_0x29605f,_0xa62852){return _0x211934(_0xa62852-0x140,_0x5acc02-0x32,_0x55ccc3,_0xa62852-0xc8);}if(!_0x2881ea?.[_0x5912c5(_0x57aaf8._0x432fa0,_0x57aaf8._0x5ca615,0x56c,0x661)]())throw Object[_0x1a8754(0x281,0x1d9,_0x57aaf8._0x111617,0x32b)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x1a7dd1[_0x1a8754(0x1c6,0x171,0x414,0x2c4)]+'\x27'),{'code':_0x5912c5(_0x57aaf8._0x279f0e,_0x57aaf8._0x252e04,0x601,0x6bf)});function _0x1a8754(_0x1469dc,_0x5a514d,_0x3f4f95,_0x1d4352){return _0x211934(_0x1d4352- -_0x177066._0x375f06,_0x5a514d-0xd5,_0x5a514d,_0x1d4352-0x46);}const _0x43e857=[_0x5912c5(0x4e0,0x5d3,0x673,0x591),_0x1a8754(0x2a2,0x26c,_0x57aaf8._0x5153c4,0x1b0),_0x5912c5(_0x57aaf8._0x5196e8,_0x57aaf8._0x383ef7,0x59d,0x5dd),'--glob=!.git/*'];for(const _0x3617ae of _0x1a7dd1['glob']??[]){_0x43e857[_0x1a8754(0x406,_0x57aaf8._0x89feb2,_0x57aaf8._0x53a566,_0x57aaf8._0x131237)]('--glob='+_0x3617ae);}const _0x5bb24e=_0x49a6b1(_0x503cc4,_0x43e857,{'cwd':_0x1a7dd1['cwd'],'stdio':[_0x5912c5(0x3ce,_0x57aaf8._0x4e4c18,_0x57aaf8._0x4cdc39,0x460),_0x5912c5(_0x57aaf8._0x1e0f28,0x85f,_0x57aaf8._0x3ee07b,_0x57aaf8._0x5297e6),_0x1a8754(0x364,0x4eb,0x3c9,_0x57aaf8._0x1802ad)]});let _0x19889f='';for await(const _0x51c817 of _0x5bb24e[_0x1a8754(0x115,0x13b,_0x57aaf8._0x20de08,0x237)]??[]){_0x19889f+=_0x51c817['toString']();const _0x271a59=_0x19889f[_0x1a8754(_0x57aaf8._0xa2813b,0xd8,0x2cd,0x1d5)](/\r?\n/);_0x19889f=_0x271a59[_0x5912c5(0x6b0,_0x57aaf8._0x3c7caa,_0x57aaf8._0x29e61d,_0x57aaf8._0x28d43b)]()??'';for(const _0x438f7b of _0x271a59){if(_0x438f7b[_0x5912c5(_0x57aaf8._0x303120,0x58d,0x4fd,_0x57aaf8._0x2a4dc3)]>0x0)yield _0x438f7b;}}_0x19889f[_0x5912c5(0x5ed,_0x57aaf8._0x14a5cb,_0x57aaf8._0x14a5cb,0x520)]()[_0x5912c5(_0x57aaf8._0x341d26,_0x57aaf8._0x3b5fcf,_0x57aaf8._0x41ac17,_0x57aaf8._0x2a4dc3)]>0x0&&(yield _0x19889f[_0x1a8754(0x36a,0x19c,0xf4,0x219)]());}function parseMatchLine(_0x5d02ef,_0x54e3eb){const _0x575ecd={_0x5bba70:0x621,_0x3f2a2b:0xd9,_0x1ddf06:0x179,_0x37cd26:0x37,_0xa7f36d:0x222,_0x173637:0x167,_0x2b5494:0xfb,_0x17007f:0x257,_0x2d7d59:0xbd,_0x25b398:0x9,_0x115720:0xcb,_0x17f23a:0x1b7,_0x263e17:0x9f,_0x145cac:0x34,_0x1c559d:0x6db,_0x19fc7f:0x5b1,_0x44c8d8:0x9b,_0x20558a:0x80c,_0x18fa95:0x66c,_0x3a2db6:0x134,_0xd32244:0x4e,_0x3681bc:0x156,_0x2f6897:0x3d,_0x5c899b:0x53c,_0x5c8fe0:0x595,_0x37e836:0x61a,_0x19e9bb:0x5b1,_0x582dce:0x151,_0x4a610c:0x1a3,_0x4d6d7c:0x1f0},_0x572388={_0x4ed412:0xeb},_0x5e7bf9={_0x3344bf:0x502,_0x54f52a:0x1c1};function _0x1a5580(_0x1efa94,_0x258b30,_0x4369e3,_0x2004b0){return _0x211934(_0x1efa94- -_0x5e7bf9._0x3344bf,_0x258b30-_0x5e7bf9._0x54f52a,_0x4369e3,_0x2004b0-0x161);}if(!_0x5d02ef||_0x5d02ef==='--')return null;const _0x1a5381=_0x5d02ef[_0x106f1f(0x6a7,0x6d5,0x66a,_0x575ecd._0x5bba70)]('|');function _0x106f1f(_0x24f334,_0x39f94f,_0xd5425d,_0x4fd79b){return _0x211934(_0x4fd79b-0x285,_0x39f94f-0x170,_0xd5425d,_0x4fd79b-_0x572388._0x4ed412);}if(_0x54e3eb&&_0x1a5381[_0x1a5580(-_0x575ecd._0x3f2a2b,-_0x575ecd._0x1ddf06,_0x575ecd._0x37cd26,-_0x575ecd._0xa7f36d)]>=0x4&&Number[_0x1a5580(-0x160,-_0x575ecd._0x173637,-_0x575ecd._0x2b5494,-_0x575ecd._0x17007f)](Number[_0x1a5580(-0xcb,-_0x575ecd._0x2d7d59,-0xa7,-_0x575ecd._0x25b398)](_0x1a5381[0x2]??'',0xa))){const _0x2fb445=Number[_0x1a5580(-_0x575ecd._0x115720,-0x82,-_0x575ecd._0x17f23a,-_0x575ecd._0x263e17)](_0x1a5381[0x1]??'',0xa);if(!Number[_0x1a5580(-0x160,-0x1a0,-_0x575ecd._0x145cac,-0x1f9)](_0x2fb445)||!_0x1a5381[0x0])return null;return{'filePath':_0x1a5381[0x0],'lineNum':_0x2fb445,'lineText':_0x1a5381[_0x106f1f(_0x575ecd._0x1c559d,0x6cf,0x48e,_0x575ecd._0x19fc7f)](0x3)[_0x1a5580(-0x151,-0xa2,-_0x575ecd._0x44c8d8,-0x25d)]('|')};}if(_0x1a5381[_0x106f1f(_0x575ecd._0x20558a,_0x575ecd._0x18fa95,0x58b,0x6ae)]>=0x3){const _0x3651ba=Number[_0x1a5580(-_0x575ecd._0x115720,-0x111,-_0x575ecd._0x3a2db6,-_0x575ecd._0xd32244)](_0x1a5381[0x1]??'',0xa);if(!Number[_0x1a5580(-0x160,-_0x575ecd._0x3681bc,-0x95,-_0x575ecd._0x2f6897)](_0x3651ba)||!_0x1a5381[0x0])return null;return{'filePath':_0x1a5381[0x0],'lineNum':_0x3651ba,'lineText':_0x1a5381[_0x106f1f(_0x575ecd._0x5c899b,_0x575ecd._0x5c8fe0,_0x575ecd._0x37e836,_0x575ecd._0x19e9bb)](0x2)[_0x1a5580(-_0x575ecd._0x582dce,-0x55,-_0x575ecd._0x4a610c,-_0x575ecd._0x4d6d7c)]('|'),..._0x54e3eb?{'isContext':!![]}:{}};}return null;}async function search(_0x416ff3){const _0x1fd7c6={_0x1027b4:0x3b1,_0x332ad6:0x29f,_0x1d351c:0x2d5,_0x4a9a59:0x21f,_0x2656ca:0x31c,_0x2de3e6:0x2e7,_0x175d75:0x13c,_0x23a8f6:0x267,_0x37ffc3:0x2b8,_0x153198:0x66,_0x9c7739:0xbe,_0x3e353e:0x26a,_0x6141ca:0x181,_0x589801:0x103,_0x29395f:0x29f,_0x514044:0x170,_0x3a1d41:0x3f1,_0x46b4de:0xf7,_0x9de596:0x413,_0x19aacd:0x261,_0x30088e:0xa1,_0x34e227:0x1f5,_0x3d6b1c:0x3e6,_0x34b3f8:0x24b,_0x504831:0x29e,_0x3abe1d:0x110,_0x4f145d:0x22,_0x2578b7:0x1f7,_0x485634:0x227,_0x2a5ffe:0x36a,_0x4c04c4:0x383,_0x4dc6f9:0x1d0,_0x2f5634:0x201,_0x2c71b2:0x18f,_0x46a94f:0x186,_0x35a7c4:0x352,_0x2b803b:0x2fa,_0x10074e:0x30f,_0x41e3ac:0x456,_0x54568e:0x2af,_0x29c3c0:0x30f,_0x294aeb:0x203,_0x705da4:0x206,_0x1ae853:0x8c,_0x248765:0x1a2,_0x223a11:0x126,_0x189e4b:0x3a5,_0x7466b2:0xa7,_0x28530c:0x21e,_0x40f8fe:0x8e,_0x522aa8:0x191,_0x5d8d2a:0x166,_0x3bdc07:0xfa,_0x282934:0x123,_0x316130:0x10,_0x1b774e:0x3d,_0x4c21ca:0x5a,_0x36d263:0x52,_0x37a7a3:0x57},_0x309223={_0x1771fd:0x12e,_0x467839:0xa4,_0x4ac45e:0x111,_0x4c3a4e:0x20e,_0x37d640:0x3c7,_0x4a2720:0x262,_0x90c65f:0x28a,_0x296494:0x453,_0x425a67:0x57b,_0x2ac7fb:0x424,_0x4dfa80:0xa1,_0x497d0a:0x9b,_0x3d5dc5:0xb,_0x51098a:0x36,_0x43974a:0x56,_0xc33bb:0x18c,_0x2481d6:0x489,_0x596e02:0x38f,_0xb512fa:0x2f2,_0x1b68e1:0x203,_0x28337b:0x14e,_0x45050a:0x2d},_0x3bc33e={_0x4f00ab:0xaf},_0x9eb3c9={_0x386e7e:0x1e1},_0x3d7ffd=await filepath();if(_0x416ff3[_0x94a367(_0x1fd7c6._0x1027b4,_0x1fd7c6._0x332ad6,0x254,_0x1fd7c6._0x1d351c)]){const _0x13baf3=await _0x1972a1(_0x416ff3[_0x94a367(0x3c3,0x29f,_0x1fd7c6._0x4a9a59,_0x1fd7c6._0x2656ca)])[_0x94a367(0x2f6,0x29a,_0x1fd7c6._0x2de3e6,0x1d7)](()=>null);if(!_0x13baf3?.[_0x94a367(_0x1fd7c6._0x175d75,0x1c4,_0x1fd7c6._0x23a8f6,_0x1fd7c6._0x37ffc3)]())throw Object[_0x121102(-_0x1fd7c6._0x153198,-0x2f,_0x1fd7c6._0x9c7739,0x119)](new Error(_0x121102(_0x1fd7c6._0x3e353e,0x2da,_0x1fd7c6._0x6141ca,_0x1fd7c6._0x589801)+_0x416ff3[_0x94a367(0x258,_0x1fd7c6._0x29395f,0x364,_0x1fd7c6._0x514044)]+'\x27'),{'code':_0x94a367(0x479,0x3fa,0x4dd,0x3cd)});}else{const _0x1fbf16=await _0x1972a1(_0x416ff3[_0x94a367(_0x1fd7c6._0x3a1d41,0x306,0x22c,_0x1fd7c6._0x1027b4)])[_0x121102(-_0x1fd7c6._0x46b4de,-0x70,-0x15,0xd4)](()=>null);if(!_0x1fbf16?.[_0x94a367(_0x1fd7c6._0x9de596,0x39c,0x38b,_0x1fd7c6._0x19aacd)]())throw Object[_0x121102(_0x1fd7c6._0x30088e,_0x1fd7c6._0x34e227,0xbe,0x27)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x416ff3[_0x94a367(0x1d9,0x306,_0x1fd7c6._0x3d6b1c,_0x1fd7c6._0x34b3f8)]+'\x27'),{'code':_0x94a367(0x327,0x3fa,_0x1fd7c6._0x504831,0x4dc)});}function _0x121102(_0x3dcc63,_0x5efe5c,_0x2faa8e,_0x46e37f){return _0x4820c3(_0x3dcc63-_0x9eb3c9._0x386e7e,_0x5efe5c-0x45,_0x46e37f,_0x2faa8e- -0x680);}const _0x479a01=[_0x121102(0x72,-_0x1fd7c6._0x3abe1d,_0x1fd7c6._0x4f145d,0x83),'--field-match-separator=|',_0x94a367(0x274,_0x1fd7c6._0x2578b7,_0x1fd7c6._0x485634,0x17f),_0x94a367(0x266,_0x1fd7c6._0x2a5ffe,0x21b,_0x1fd7c6._0x4c04c4),_0x416ff3[_0x94a367(0x2b6,0x1af,_0x1fd7c6._0x4dc6f9,_0x1fd7c6._0x2f5634)]],_0xf8ceec=typeof _0x416ff3[_0x121102(_0x1fd7c6._0x2c71b2,-0xb4,0x60,_0x1fd7c6._0x46a94f)]===_0x94a367(_0x1fd7c6._0x35a7c4,0x200,0x26c,_0x1fd7c6._0x2b803b)&&_0x416ff3[_0x94a367(0x2d0,_0x1fd7c6._0x10074e,0x3e4,_0x1fd7c6._0x41e3ac)]>0x0;_0xf8ceec&&_0x479a01['push']('-C',String(_0x416ff3[_0x94a367(_0x1fd7c6._0x54568e,_0x1fd7c6._0x29c3c0,_0x1fd7c6._0x294aeb,_0x1fd7c6._0x705da4)]),_0x121102(_0x1fd7c6._0x1ae853,-0x10a,0x27,-0x8d));_0x416ff3[_0x121102(_0x1fd7c6._0x248765,0x13a,_0x1fd7c6._0x223a11,0xf3)]&&!_0x416ff3[_0x94a367(0x2a0,0x29f,0x2cb,_0x1fd7c6._0x189e4b)]&&_0x479a01[_0x94a367(0x345,0x440,0x560,0x317)](_0x121102(0x19,0xa2,-_0x1fd7c6._0x7466b2,0x7f),_0x416ff3[_0x121102(0x202,_0x1fd7c6._0x28530c,0x126,0xb9)]);function _0x94a367(_0x56f357,_0x2814ba,_0x4bf3c5,_0xb768e8){return _0x4820c3(_0x56f357-0x6f,_0x2814ba-_0x3bc33e._0x4f00ab,_0xb768e8,_0x2814ba- -0x3d1);}return _0x479a01[_0x121102(_0x1fd7c6._0x40f8fe,0x92,_0x1fd7c6._0x522aa8,_0x1fd7c6._0x5d8d2a)](_0x416ff3[_0x121102(_0x1fd7c6._0x3bdc07,-_0x1fd7c6._0x282934,-_0x1fd7c6._0x316130,_0x1fd7c6._0x1b774e)]??_0x416ff3[_0x121102(-_0x1fd7c6._0x4c21ca,-_0x1fd7c6._0x36d263,_0x1fd7c6._0x37a7a3,0xcc)]),await new Promise((_0x3d44b1,_0x43183f)=>{const _0x1ad6f4={_0x1b916e:0x175,_0x28f65a:0x29,_0x5b0d80:0x2a0,_0x15ab70:0x23a,_0x1430a0:0x370,_0x5592fa:0x259,_0x24c99a:0x254,_0x38cb9d:0x1e0,_0x386968:0x27c},_0x5947b9={_0x36cb44:0x1fb,_0x30e51d:0x1dd},_0x3c0bb0={_0x289524:0x8e},_0x5b5e01={_0x3efa5b:0x1d8,_0xec0eda:0x15e},_0x5d6287=_0x49a6b1(_0x3d7ffd,_0x479a01,{'cwd':_0x416ff3[_0x12b286(_0x309223._0x1771fd,_0x309223._0x467839,_0x309223._0x4ac45e,_0x309223._0x4c3a4e)],'stdio':[_0x2b730a(0x1ab,0x2dc,0x3dc,_0x309223._0x37d640),_0x12b286(_0x309223._0x4a2720,0x30c,0x2f5,_0x309223._0x90c65f),_0x2b730a(_0x309223._0x296494,_0x309223._0x425a67,_0x309223._0x2ac7fb,0x690)]});let _0x1652a1='',_0x31921b='';function _0x12b286(_0x5a886a,_0x28bc69,_0x478873,_0x2c4019){return _0x94a367(_0x5a886a-0xbe,_0x5a886a- -_0x5b5e01._0x3efa5b,_0x478873-_0x5b5e01._0xec0eda,_0x28bc69);}function _0x2b730a(_0x525f26,_0x5c3a23,_0x469931,_0x3fa102){return _0x94a367(_0x525f26-0xa8,_0x5c3a23-0x141,_0x469931-_0x3c0bb0._0x289524,_0x469931);}_0x5d6287[_0x12b286(_0x309223._0x4dfa80,0xae,_0x309223._0x497d0a,-_0x309223._0x3d5dc5)]?.['on'](_0x12b286(-_0x309223._0x51098a,-0x2,-_0x309223._0x43974a,-_0x309223._0xc33bb),_0x437b1b=>{_0x1652a1+=_0x437b1b['toString']();}),_0x5d6287[_0x2b730a(0x550,_0x309223._0x2481d6,_0x309223._0x596e02,0x464)]?.['on'](_0x2b730a(0x41b,0x2e3,_0x309223._0xb512fa,_0x309223._0x1b68e1),_0x2b22c4=>{_0x31921b+=_0x2b22c4['toString']();}),_0x5d6287['on']('close',_0x4b1d55=>{const _0x2cb7e7={_0x4560d2:0x166};if(_0x4b1d55===0x1&&_0x1652a1===''){_0x3d44b1([]);return;}function _0x1fdb83(_0x2a66e,_0x697f10,_0x3dc170,_0x248e18){return _0x2b730a(_0x2a66e-0x175,_0x2a66e- -0x18c,_0x697f10,_0x248e18-_0x2cb7e7._0x4560d2);}if(_0x4b1d55!==0x0&&_0x4b1d55!==0x1){_0x43183f(new Error(_0x1fdb83(_0x1ad6f4._0x1b916e,0x2ce,_0x1ad6f4._0x28f65a,_0x1ad6f4._0x5b0d80)+_0x31921b));return;}const _0x3177c4=_0x416ff3['limit']??0x64;function _0x14c00d(_0x438b94,_0x5088ae,_0x55fc9f,_0x4305c3){return _0x12b286(_0x438b94-_0x5947b9._0x36cb44,_0x4305c3,_0x55fc9f-0x109,_0x4305c3-_0x5947b9._0x30e51d);}const _0xb36b1e=[];for(const _0x3801b9 of _0x1652a1[_0x14c00d(_0x1ad6f4._0x15ab70,0x17e,_0x1ad6f4._0x1430a0,0x191)](/\r?\n/)){if(_0xb36b1e[_0x1fdb83(_0x1ad6f4._0x5592fa,_0x1ad6f4._0x24c99a,_0x1ad6f4._0x38cb9d,_0x1ad6f4._0x386968)]>=_0x3177c4)break;const _0x4212ca=parseMatchLine(_0x3801b9,_0xf8ceec);if(_0x4212ca)_0xb36b1e['push'](_0x4212ca);}_0x3d44b1(_0xb36b1e);}),_0x5d6287['on'](_0x12b286(0x179,_0x309223._0x28337b,_0x309223._0x45050a,0x4d),_0x43183f);});}function createGlobTool(_0x33c2ab={}){const _0x4c0047={_0x13cd37:0x28a,_0x4ab42a:0x2d5,_0x53e36d:0x323,_0xad996:0x15e,_0x6fa575:0x22e,_0x539b7f:0x529,_0x346c32:0x44e,_0x578cea:0x413,_0x210e5b:0x46e,_0x40d98c:0x39e,_0x2bfae6:0x2d9,_0x391544:0x3f4,_0x3ee74f:0x1d1,_0x3508a3:0x307,_0x113a88:0x2a7,_0x13d953:0x178,_0x3308c1:0x21d,_0x504177:0x2ef,_0x5b7707:0x12c,_0x53b1f7:0x10c},_0x4a30a3={_0xad2f70:0x1d7,_0x1489d4:0xd5,_0xf8fc1b:0x1b1,_0x4e1e58:0x13a,_0x29b749:0x54,_0x575b33:0x19f,_0x17dd2b:0x13f,_0x1f0780:0x221,_0x12c6ad:0x42,_0x3ed432:0x1c6,_0x4701de:0x85,_0x176a28:0x89,_0x5b1edc:0x408,_0xd56417:0x337,_0x324b41:0x98,_0x41ec27:0x10,_0x3ac1c2:0xcf,_0x351629:0x9f,_0x15d3ff:0x3f4,_0x37ce4d:0x1ca,_0x16578f:0x443,_0x416254:0x179,_0x5973e5:0x1f0,_0x5eb19d:0x20a,_0x3796d0:0xdf,_0x524fcb:0x7c,_0x21e736:0x175,_0x68cc50:0xc6,_0x2dfeb0:0x106,_0x5286c1:0x494,_0x7e0c6e:0x285,_0x3322aa:0x129,_0x21a76c:0x14d,_0x5899c8:0x190,_0x550e2f:0x277,_0x52054a:0x2cc,_0x43ff0e:0x1a1,_0x42d242:0x236,_0x61e290:0x386,_0x2c35cd:0x394},_0x128b97={_0x37c199:0x14a,_0x8a4828:0x1b0},_0x1f5e99={_0x44853d:0xed,_0xae151:0x38},_0xafcea4={_0x57685e:0xf5,_0xc0ae98:0x344};function _0x26f42e(_0x117a05,_0x52b3a2,_0x2c7bfc,_0xd7f37a){return _0x4820c3(_0x117a05-_0xafcea4._0x57685e,_0x52b3a2-0xf2,_0x117a05,_0xd7f37a- -_0xafcea4._0xc0ae98);}const _0x15fcc4=_0x118f30['resolve'](_0x33c2ab[_0x26f42e(0x3c1,0x2ca,_0x4c0047._0x13cd37,_0x4c0047._0x4ab42a)]??process[_0x102d65(0x320,_0x4c0047._0x53e36d,0x1e5,0x33c)]());function _0x102d65(_0x50093f,_0x3877b0,_0x28fb72,_0x4cf372){return _0x211934(_0x3877b0- -0x168,_0x3877b0-_0x1f5e99._0x44853d,_0x4cf372,_0x4cf372-_0x1f5e99._0xae151);}const _0x228666=(_0x33c2ab['allowedDirs']??[])[_0x26f42e(_0x4c0047._0xad996,0x1ef,0x341,_0x4c0047._0x6fa575)](_0x3fdf1a=>_0x118f30[_0x26f42e(0x42b,0x23d,0x23b,0x376)](_0x3fdf1a)),_0x4768c5=_0x33c2ab['limit']??0x64,_0x234c98=_0x33c2ab[_0x102d65(_0x4c0047._0x539b7f,_0x4c0047._0x346c32,0x54b,0x544)]??_0x26f42e(_0x4c0047._0x578cea,0x412,0x55d,_0x4c0047._0x210e5b);return defineTool({'name':_0x234c98,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':'object','properties':{'pattern':{'type':_0x26f42e(_0x4c0047._0x40d98c,_0x4c0047._0x2bfae6,_0x4c0047._0x391544,0x2a7)},'path':{'type':_0x26f42e(_0x4c0047._0x3ee74f,_0x4c0047._0x3508a3,0x3dc,_0x4c0047._0x113a88)},'limit':{'type':_0x102d65(_0x4c0047._0x13d953,_0x4c0047._0x3308c1,_0x4c0047._0x504177,0x263)}},'required':[_0x26f42e(_0x4c0047._0x5b7707,_0x4c0047._0x53b1f7,0x1c2,0x23c)]},async *'execute'(_0x477ffa){const _0x292491={_0x5c70e9:0xfe,_0x3c322d:0x396};if(_0x477ffa['pattern'][_0xb47b05(-0x153,-0x11e,-0x133,-_0x4a30a3._0xad2f70)]()[_0xb47b05(-0x157,-_0x4a30a3._0x1489d4,-_0x4a30a3._0xf8fc1b,-_0x4a30a3._0x4e1e58)]===0x0)throw new ToolExecutionError(_0xb47b05(-_0x4a30a3._0x29b749,-0xeb,-0xbb,-_0x4a30a3._0x575b33),{});const _0x5b07f3=resolveAllowedPath(_0x15fcc4,_0x228666,_0x477ffa['path']??'.'),_0x36efff=await _0x3cfeb9(_0x5b07f3)[_0xb47b05(-_0x4a30a3._0x17dd2b,-0xdf,-0x14c,-_0x4a30a3._0x1f0780)](()=>null);if(!_0x36efff?.[_0xb47b05(-_0x4a30a3._0x12c6ad,0x23,0x15,0xf9)]())throw new ToolExecutionError(_0xb47b05(-_0x4a30a3._0x3ed432,-_0x4a30a3._0x4701de,0x24,_0x4a30a3._0x176a28)+(_0x477ffa[_0x4188db(0x46f,0x40f,_0x4a30a3._0x5b1edc,_0x4a30a3._0xd56417)]??'.'),{'path':_0x477ffa['path']??'.'});function _0xb47b05(_0x124798,_0x43c2c8,_0x17afdb,_0x145a44){return _0x102d65(_0x124798-_0x292491._0x5c70e9,_0x43c2c8- -_0x292491._0x3c322d,_0x17afdb-0xe1,_0x145a44);}const _0x37951b=_0x477ffa[_0xb47b05(-_0x4a30a3._0x324b41,-_0x4a30a3._0x41ec27,-_0x4a30a3._0x3ac1c2,-_0x4a30a3._0x351629)]??_0x4768c5,_0x47b8f8=Math['max'](0x1,Math[_0x4188db(_0x4a30a3._0x15d3ff,0x4b3,0x55d,0x397)](_0x37951b)),_0x16554f=[];let _0xc6b85=![];for await(const _0x4ef8be of files({'cwd':_0x5b07f3,'glob':[_0x477ffa[_0xb47b05(-0x2c9,-_0x4a30a3._0x37ce4d,-0x127,-0xdc)]]})){if(_0x16554f[_0x4188db(0x40b,0x40b,_0x4a30a3._0x16578f,0x2b5)]>=_0x47b8f8){_0xc6b85=!![];break;}const _0x31defe=await _0x3cfeb9(_0x118f30[_0xb47b05(-_0x4a30a3._0x416254,-0x14d,-0x215,-_0x4a30a3._0x5973e5)](_0x5b07f3,_0x4ef8be))[_0xb47b05(-_0x4a30a3._0x5eb19d,-_0x4a30a3._0x3796d0,_0x4a30a3._0x524fcb,-_0x4a30a3._0x21e736)](()=>null);_0x16554f['push']({'path':_0x4ef8be,'mtime':_0x31defe?.[_0xb47b05(-0x153,-_0x4a30a3._0x68cc50,-0xc0,-_0x4a30a3._0x2dfeb0)]??0x0});}function _0x4188db(_0x111ca6,_0x65fb9c,_0x3e32e4,_0x244677){return _0x102d65(_0x111ca6-0xb0,_0x65fb9c-_0x128b97._0x37c199,_0x3e32e4-_0x128b97._0x8a4828,_0x3e32e4);}_0x16554f[_0x4188db(0x4bd,0x52d,0x596,_0x4a30a3._0x5286c1)]((_0x1dee17,_0x301a31)=>_0x301a31['mtime']-_0x1dee17[_0xb47b05(-0xab,-0x3e,-0xc4,0xc6)]);const _0x2e9bb9=_0x16554f[_0xb47b05(-0x30f,-0x1d8,-_0x4a30a3._0x7e0c6e,-_0x4a30a3._0x3322aa)](_0x120dc8=>_0x120dc8[_0x4188db(0x38c,0x40f,0x4d7,0x4a4)]),_0x31ab5b=_0x2e9bb9['length']===0x0?_0xb47b05(-0x60,0xc3,0x16e,-0x85)+_0x477ffa['pattern']:''+_0x2e9bb9[_0xb47b05(-0x1a8,-_0x4a30a3._0x21a76c,-_0x4a30a3._0x5899c8,-_0x4a30a3._0x550e2f)]('\x0a')+(_0xc6b85?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x31ab5b,{'pattern':_0x477ffa[_0xb47b05(-_0x4a30a3._0x52054a,-_0x4a30a3._0x37ce4d,-_0x4a30a3._0x43ff0e,-_0x4a30a3._0x42d242)],'searchPath':_0x118f30[_0x4188db(0x378,_0x4a30a3._0x61e290,0x431,_0x4a30a3._0x2c35cd)](_0x15fcc4,_0x5b07f3)||'.','matches':_0x2e9bb9,'count':_0x2e9bb9['length'],'truncated':_0xc6b85}),void 0x0;}});}import{stat as _0x46bd16}from'fs/promises';import*as _0x51c03b from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x51df7b={}){const _0x2f68a9={_0x6594a0:0x85,_0x2a2472:0x60,_0x345288:0x10f,_0x5a8a8:0x54,_0xdd1aca:0xd0,_0x5ec82a:0x9c,_0x4e3766:0xd,_0x5b808b:0x38,_0x207968:0x1cb,_0x4c1438:0xa3,_0x4280e8:0x16b,_0x26e0a8:0x1c8,_0x850f0c:0x1f0,_0x5b11f4:0x1a0,_0x2d4570:0x2cf,_0x570a3a:0x433,_0x40f3be:0x2ea,_0x195333:0x1b2,_0x19837b:0x241,_0x4f8889:0x26f},_0x55887b={_0x80b5e9:0x31b,_0x25f081:0x35d,_0x185a1d:0x1c7,_0xc613c7:0x3e9,_0x4748b8:0x350,_0x283546:0x307,_0x1e37fa:0x2e3,_0x4ab4ce:0x333,_0x3eeaa3:0x5a4,_0x17f682:0x4d9,_0x28632e:0x54d,_0x2f1045:0x64f,_0x4bdd32:0x2f4,_0x59e1fd:0x2fd,_0x193bbe:0x42b,_0x4db30b:0x536,_0x4c4e3e:0x55b,_0x72db87:0x582,_0x1324bc:0x61c,_0x2f4b07:0x285,_0x2922f4:0x3fc,_0x12d12c:0x3a1,_0x8635fe:0x388,_0x1777a4:0x4a5,_0x113e2d:0x199,_0x6fea08:0x204,_0x5515ff:0x406,_0x5a9f0c:0x484,_0x57fc87:0x5bf,_0x31a960:0x619,_0x2ed659:0x5c2,_0x3490c0:0x5d6,_0x21f0a2:0x259,_0x27dc2e:0x33b,_0x141066:0x2ef,_0x480b70:0x340,_0x3e2552:0x6b1,_0xa67b8b:0x6b6,_0x35e7f0:0x603,_0x2304e6:0x648,_0x92bb8a:0x604,_0x4901bd:0x527,_0x76d800:0x4cb,_0x28ad5a:0x22d,_0x26db64:0x57b,_0x4fa15c:0x263,_0x364f45:0x166,_0x237aa9:0x4a0,_0x493f6c:0x4f3,_0x3aa3ef:0x351,_0xac649a:0x695,_0x5de4a6:0x14d,_0x3f6690:0x37f,_0x30b06b:0x300,_0x2b6e12:0x5c4,_0x53ef19:0x2fb,_0x5bb99c:0x1d0,_0x310285:0xed,_0x312310:0x5b4,_0x571e80:0x5f4,_0x108f6b:0x26e,_0x16e1c9:0x321,_0x3eb408:0x303,_0x368b82:0x462,_0x3f72d8:0x395,_0xa6d423:0x3b5,_0x214afb:0x5d2,_0x3c41cf:0x2d9,_0x5adf50:0x34c},_0x100ecd={_0x96dce2:0x132,_0x3b12b5:0xb8},_0x5ebba8=_0x51c03b[_0x5c43b0(-_0x2f68a9._0x6594a0,-_0x2f68a9._0x2a2472,0x89,-_0x2f68a9._0x345288)](_0x51df7b[_0x5c43b0(-0x1b1,-0x101,-_0x2f68a9._0x5a8a8,-0x13d)]??process[_0x5c43b0(0x83,-0x43,-_0x2f68a9._0xdd1aca,0x23)]()),_0x3d8814=(_0x51df7b[_0x5c43b0(_0x2f68a9._0x5ec82a,_0x2f68a9._0x4e3766,_0x2f68a9._0x5b808b,0xf8)]??[])[_0x1a3654(_0x2f68a9._0x207968,_0x2f68a9._0x4c1438,_0x2f68a9._0x4280e8,_0x2f68a9._0x26e0a8)](_0x18965c=>_0x51c03b['resolve'](_0x18965c)),_0x4ddbea=_0x51df7b['limit']??0x64;function _0x5c43b0(_0x10bc0d,_0x1352e8,_0xa9897e,_0xc71842){return _0x211934(_0x1352e8- -0x4ce,_0x1352e8-0x9b,_0xc71842,_0xc71842-0x7);}function _0x1a3654(_0x31a977,_0x583693,_0x33dc06,_0x1a4ea8){return _0x4820c3(_0x31a977-_0x100ecd._0x96dce2,_0x583693-_0x100ecd._0x3b12b5,_0x33dc06,_0x1a4ea8- -0x3aa);}const _0x167f5e=_0x51df7b['name']??_0x5c43b0(-_0x2f68a9._0x850f0c,-_0x2f68a9._0x5b11f4,-0x1c6,-0x14f);return defineTool({'name':_0x167f5e,'description':_0x1a3654(_0x2f68a9._0x2d4570,_0x2f68a9._0x570a3a,_0x2f68a9._0x40f3be,0x30f),'inputSchema':{'type':'object','properties':{'pattern':{'type':'string'},'path':{'type':_0x1a3654(0x295,0x2fa,_0x2f68a9._0x195333,_0x2f68a9._0x19837b)},'include':{'type':_0x1a3654(0x20b,0x116,0x2ad,0x241)},'limit':{'type':_0x1a3654(_0x2f68a9._0x4f8889,0x158,0x199,0x227)},'context':{'type':'number'}},'required':['pattern']},async *'execute'(_0x301b47){const _0x23b63a={_0x574392:0x1f3,_0xc35d52:0x14f,_0x446cc1:0x28c};function _0x4333fe(_0x492b71,_0x5199db,_0x55f3db,_0x1e107d){return _0x1a3654(_0x492b71-0xab,_0x5199db-0x5f,_0x492b71,_0x55f3db-0x2e);}if(_0x301b47[_0x12cb16(0x362,_0x55887b._0x80b5e9,0x462,_0x55887b._0x25f081)][_0x4333fe(0x1b5,_0x55887b._0x185a1d,0x2b0,_0x55887b._0xc613c7)]()['length']===0x0)throw new ToolExecutionError(_0x4333fe(_0x55887b._0x4748b8,_0x55887b._0x283546,_0x55887b._0x1e37fa,_0x55887b._0x4ab4ce),{});const _0x4d441f=resolveAllowedPath(_0x5ebba8,_0x3d8814,_0x301b47[_0x12cb16(0x60a,0x6a7,0x55b,_0x55887b._0x3eeaa3)]??'.'),_0x5e07bc=await _0x46bd16(_0x4d441f)[_0x12cb16(_0x55887b._0x17f682,0x47d,_0x55887b._0x28632e,0x5a9)](()=>null),_0x294e99=_0x5e07bc?.['isFile']()??![],_0xd578f2=_0x5e07bc?.[_0x12cb16(0x6c0,0x799,_0x55887b._0x2f1045,0x764)]()??![];if(!_0x294e99&&!_0xd578f2)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x301b47[_0x4333fe(_0x55887b._0x4bdd32,0x1a4,_0x55887b._0x59e1fd,0x1c3)]??'.'),{'path':_0x301b47[_0x12cb16(_0x55887b._0x193bbe,_0x55887b._0x4db30b,_0x55887b._0x4c4e3e,_0x55887b._0x72db87)]??'.'});function _0x12cb16(_0x566ac5,_0x2d96ea,_0x5dd083,_0x399d2f){return _0x1a3654(_0x566ac5-_0x23b63a._0x574392,_0x2d96ea-_0x23b63a._0xc35d52,_0x399d2f,_0x5dd083-_0x23b63a._0x446cc1);}const _0x25b157=_0x301b47[_0x12cb16(_0x55887b._0x3eeaa3,0x5d9,_0x55887b._0x1324bc,0x6bc)]??_0x4ddbea,_0x4bdb3c=Math['max'](0x1,Math[_0x4333fe(_0x55887b._0x2f4b07,_0x55887b._0x2922f4,_0x55887b._0x12d12c,0x268)](_0x25b157)),_0x1c14e4=await search({'cwd':_0xd578f2?_0x4d441f:_0x51c03b[_0x4333fe(0x336,0x2d3,_0x55887b._0x8635fe,_0x55887b._0x1777a4)](_0x4d441f),'pattern':_0x301b47[_0x4333fe(0x1ad,_0x55887b._0x113e2d,_0x55887b._0x6fea08,0xbc)],'glob':_0xd578f2?_0x301b47[_0x12cb16(_0x55887b._0x5515ff,0x4d2,_0x55887b._0x5a9f0c,0x386)]:void 0x0,'limit':_0x4bdb3c,'file':_0x294e99?_0x4d441f:void 0x0,'context':_0x301b47[_0x12cb16(_0x55887b._0x57fc87,_0x55887b._0x31a960,_0x55887b._0x2ed659,_0x55887b._0x3490c0)]}),_0x151f19=new Map();for(const _0x39a15e of _0x1c14e4){if(!_0x151f19['has'](_0x39a15e[_0x12cb16(0x6c1,0x6b5,0x60c,0x4b4)])){const _0x30e5f7=await _0x46bd16(_0x39a15e[_0x4333fe(0x348,_0x55887b._0x21f0a2,0x3ae,_0x55887b._0xc613c7)])[_0x4333fe(_0x55887b._0x27dc2e,0x444,0x2ef,_0x55887b._0x141066)](()=>null);_0x151f19[_0x12cb16(0x463,0x3b2,0x4a2,0x5fb)](_0x39a15e['filePath'],{'matches':[],'mtime':_0x30e5f7?.[_0x4333fe(0x3ff,0x1ec,0x308,_0x55887b._0x480b70)]??0x0});}_0x151f19[_0x12cb16(_0x55887b._0x3e2552,_0x55887b._0xa67b8b,_0x55887b._0x35e7f0,_0x55887b._0x2304e6)](_0x39a15e[_0x12cb16(0x688,0x514,0x60c,_0x55887b._0x92bb8a)])?.['matches'][_0x4333fe(0x376,0x48b,0x495,0x3bd)](_0x39a15e);}const _0x103919=[..._0x151f19['entries']()][_0x4333fe(0x568,0x506,0x41b,_0x55887b._0x4901bd)]((_0x2f60c9,_0x538648)=>_0x538648[0x1][_0x12cb16(0x499,0x50b,0x5ee,0x626)]-_0x2f60c9[0x1]['mtime']),_0x3bab2e=_0x1c14e4[_0x12cb16(0x735,0x690,0x66e,0x597)](_0x38101a=>!_0x38101a[_0x12cb16(0x3e2,0x3df,0x4da,0x599)])['length'],_0x3238d3=_0x1c14e4[_0x12cb16(0x642,_0x55887b._0x76d800,0x557,0x4a0)]>=_0x4bdb3c,_0x2dfbe9=_0x294e99?_0x51c03b[_0x4333fe(0x498,_0x55887b._0x28ad5a,_0x55887b._0x8635fe,0x4bc)](_0x4d441f):_0x4d441f;let _0x379203='';if(_0x1c14e4[_0x12cb16(0x648,0x5fd,0x557,0x4e0)]===0x0)_0x379203=_0x12cb16(0x7d6,_0x55887b._0x26db64,0x6c8,0x6b7)+_0x301b47['pattern'];else{_0x379203=_0x4333fe(_0x55887b._0x4fa15c,0x35d,0x29f,_0x55887b._0x364f45)+_0x3bab2e+_0x12cb16(0x58a,_0x55887b._0x237aa9,0x49b,0x529)+(_0x3bab2e===0x1?'':'es')+'\x0a';for(const [_0x2c115b,_0x188da2]of _0x103919){const _0x2f1323=_0x294e99?_0x51c03b[_0x12cb16(0x70a,0x64a,0x637,0x4db)](_0x2c115b):_0x51c03b['relative'](_0x2dfbe9,_0x2c115b);_0x379203+='\x0a'+_0x2f1323+':\x0a';for(const _0x5341dd of _0x188da2[_0x12cb16(0x650,0x522,_0x55887b._0x493f6c,_0x55887b._0x5a9f0c)]){const _0x3a48a6=_0x5341dd[_0x12cb16(0x5e7,0x38f,0x495,_0x55887b._0x3aa3ef)][_0x12cb16(0x672,_0x55887b._0xac649a,0x557,0x5f3)]>MAX_LINE_LENGTH?_0x5341dd[_0x4333fe(_0x55887b._0x5de4a6,0x152,0x237,_0x55887b._0x3f6690)]['slice'](0x0,MAX_LINE_LENGTH)+_0x4333fe(_0x55887b._0x30b06b,0x200,0x2af,0x1e4):_0x5341dd[_0x12cb16(_0x55887b._0x2b6e12,0x429,0x495,0x473)],_0x3400a7=_0x5341dd[_0x4333fe(0x1b0,_0x55887b._0x53ef19,0x27c,0x1c3)]?'\x20\x20':'>\x20';_0x379203+=_0x3400a7+_0x4333fe(_0x55887b._0x5bb99c,0x168,0x231,_0x55887b._0x310285)+_0x5341dd['lineNum']+':\x20'+_0x3a48a6+'\x0a';}}_0x3238d3&&(_0x379203+=_0x12cb16(0x688,_0x55887b._0x312310,_0x55887b._0x571e80,0x57a));}const _0x171261={'searchPath':_0x51c03b[_0x4333fe(_0x55887b._0x108f6b,0x2f8,0x274,0x283)](_0x5ebba8,_0x4d441f)||'.','pattern':_0x301b47[_0x12cb16(_0x55887b._0x16e1c9,_0x55887b._0x3eb408,_0x55887b._0x368b82,_0x55887b._0x3f72d8)],'matchCount':_0x3bab2e,'fileCount':_0x151f19[_0x4333fe(0x569,_0x55887b._0xa6d423,0x422,0x388)],'truncated':_0x3238d3};return _0xd578f2&&_0x301b47['include']!==void 0x0&&(_0x171261['include']=_0x301b47[_0x12cb16(0x372,0x439,0x484,_0x55887b._0x214afb)]),yield createToolOutput(_0x379203[_0x4333fe(_0x55887b._0x3c41cf,_0x55887b._0x5adf50,0x2b0,0x182)](),_0x171261),void 0x0;}});}import{readdir as _0x425986,readFile as _0x488b54,stat as _0x2eb481}from'fs/promises';import*as _0x470351 from'path';import*as _0x29899c from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x126426,_0x2e52bb){const _0x3e4b51={_0x44af8e:0x2ed,_0x1efcd5:0x2eb,_0x21dd58:0x4c9,_0x1c1c97:0x362},_0x11b902={_0x597cd5:0xed,_0x2889b1:0x161},_0x2bd050={_0x1aaab7:0x1f1,_0x9cc69a:0x136,_0x48a4ee:0x75a};if(_0x2e52bb>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x5c8018(_0x17e626,_0x25f0cb,_0x3173a9,_0x39fd35){return _0x4820c3(_0x17e626-_0x2bd050._0x1aaab7,_0x25f0cb-_0x2bd050._0x9cc69a,_0x17e626,_0x3173a9- -_0x2bd050._0x48a4ee);}function _0x1d9a3a(_0x2c4b0a,_0x3914e9,_0xb8fc84,_0x5dd211){return _0x211934(_0x3914e9- -_0x11b902._0x597cd5,_0x3914e9-_0x11b902._0x2889b1,_0xb8fc84,_0x5dd211-0xfb);}const _0x501127=await _0x488b54(_0x126426)['catch'](()=>null);if(!_0x501127||isProbablyBinary(_0x501127))return void 0x0;return _0x501127[_0x1d9a3a(0x29e,0x3a9,_0x3e4b51._0x44af8e,_0x3e4b51._0x1efcd5)](_0x1d9a3a(0x4ba,0x3f9,0x43e,_0x3e4b51._0x21dd58))[_0x1d9a3a(0x1fe,0x2af,0x1a7,_0x3e4b51._0x1c1c97)](/\r?\n/)['length'];}function createLsTool(_0x32dea4={}){const _0x20e283={_0x54ae39:0x106,_0x2eabe7:0x35,_0xc3fc5b:0x80a,_0x5b8661:0x659,_0x5c9bc4:0x3e1,_0x23873d:0x3e8,_0x201b10:0x524,_0x536d05:0x4e2,_0x473694:0x868,_0x11c84b:0x7b4,_0x4be199:0x6d6,_0x5375a3:0x98,_0x566f83:0x131,_0x546963:0xb3,_0x5687c6:0x6f,_0x1087ed:0x94,_0x167cf4:0x42e,_0x331728:0x583},_0x5ce928={_0x8fc77c:0xa1,_0x283cea:0x36,_0xda389c:0x54c,_0x23d807:0x47e,_0x12c85f:0x1d4,_0xfbbb9f:0x6d,_0x59e7e5:0x187,_0x112ede:0x58,_0x18ebf8:0x67,_0x4cec10:0x160,_0x288240:0x53,_0x5d96d3:0x1bb,_0x39db80:0xd9,_0x266399:0x37,_0x8b4cb6:0xda,_0x2470ed:0xdd,_0x354e32:0x44b,_0x51817f:0x423,_0x335658:0x677,_0x54f3de:0x50a,_0x4e38aa:0x579,_0x532d6a:0x370,_0xd7c4b2:0x391,_0x30894c:0x493,_0x2aea33:0x570,_0x3d25dc:0x4e7,_0x5a4162:0x4a3,_0x404f0c:0x48b,_0x1a8821:0x1c,_0x16c2e2:0x3cb,_0x133da8:0x554,_0x13b873:0x429,_0x2d69fa:0x63e,_0x4bef1f:0x6b0,_0x59f35:0x4e,_0xb211e8:0xdf,_0x35dbb6:0x17a,_0x176b7c:0x3f9,_0x3849b5:0x42e,_0x50cd4e:0x4ab,_0x262b24:0x5b2,_0x2c0aac:0x5bf,_0x487708:0x2ec,_0x4e233a:0x42e,_0x4bc93c:0x477},_0x2c8ce6={_0x5166f5:0x146,_0x8ce923:0x1f9},_0x24333c={_0x15b5c3:0x145,_0xa48ccd:0x4e},_0x330974=_0x470351[_0x3e049a(0xa8,_0x20e283._0x54ae39,0x60,_0x20e283._0x2eabe7)](_0x32dea4['defaultCwd']??process['cwd']());function _0x4b7264(_0x5fbd8d,_0x56557f,_0x1acbd7,_0x124334){return _0x4820c3(_0x5fbd8d-_0x24333c._0x15b5c3,_0x56557f-0x1d5,_0x56557f,_0x1acbd7- -_0x24333c._0xa48ccd);}const _0x4a33b9=(_0x32dea4[_0x4b7264(_0x20e283._0xc3fc5b,_0x20e283._0x5b8661,0x6d9,0x820)]??[])[_0x4b7264(_0x20e283._0x5c9bc4,_0x20e283._0x23873d,_0x20e283._0x201b10,_0x20e283._0x536d05)](_0x12e05a=>_0x470351[_0x4b7264(0x6bb,0x619,0x66c,0x5ff)](_0x12e05a)),_0x4b9375=_0x32dea4[_0x4b7264(_0x20e283._0x473694,0x8da,_0x20e283._0x11c84b,_0x20e283._0x4be199)]??'Ls';function _0x3e049a(_0x1c216f,_0x29010d,_0x46e1dc,_0x23a7c1){return _0x211934(_0x46e1dc- -0x40e,_0x29010d-0xb4,_0x29010d,_0x23a7c1-0x98);}return defineTool({'name':_0x4b9375,'description':_0x3e049a(_0x20e283._0x5375a3,0x25,-0x11,-0x10e),'inputSchema':{'type':'object','properties':{'path':{'type':_0x3e049a(-_0x20e283._0x566f83,-_0x20e283._0x546963,-_0x20e283._0x5687c6,-_0x20e283._0x1087ed)},'limit':{'type':_0x4b7264(_0x20e283._0x167cf4,0x5f5,_0x20e283._0x331728,0x6dd)}}},async *'execute'(_0x22cba6){const _0x4cee9b={_0x4570ad:0xa3,_0xb66825:0x548,_0x4e3cb1:0x41},_0x2260a3=_0x22cba6[_0x5b58a1(0x213,0xe3,_0x5ce928._0x8fc77c,_0x5ce928._0x283cea)]??'.';function _0x5b58a1(_0x16cc09,_0x3a9731,_0x4125bb,_0x532f58){return _0x4b7264(_0x16cc09-_0x4cee9b._0x4570ad,_0x16cc09,_0x3a9731- -_0x4cee9b._0xb66825,_0x532f58-_0x4cee9b._0x4e3cb1);}const _0x1a8267=resolveAllowedPath(_0x330974,_0x4a33b9,_0x2260a3);function _0xf287a5(_0x5c8d5a,_0xbb011,_0x2c9086,_0x5da7b6){return _0x4b7264(_0x5c8d5a-_0x2c8ce6._0x5166f5,_0x5da7b6,_0x2c9086- -_0x2c8ce6._0x8ce923,_0x5da7b6-0x19f);}const _0x44dcb8=await _0x2eb481(_0x1a8267)['catch'](()=>null);if(!_0x44dcb8?.[_0x5b58a1(0x337,0x1d7,0x2ab,0x116)]())throw new ToolExecutionError(_0xf287a5(_0x5ce928._0xda389c,0x563,_0x5ce928._0x23d807,0x40e)+_0x2260a3,{'path':_0x2260a3});const _0x4dd698=_0x22cba6[_0x5b58a1(0x8d,0x1a4,_0x5ce928._0x12c85f,0x193)]??0x3e8,_0x4e7352=Math[_0x5b58a1(0x1c1,_0x5ce928._0xfbbb9f,0x27,0x103)](Math['max'](Math[_0x5b58a1(0x10d,_0x5ce928._0x59e7e5,0x128,0x2b6)](_0x4dd698),0x1),0x2710),_0x953ddd=await _0x425986(_0x1a8267),_0x3d7074=[];for(const _0x6ddd43 of _0x953ddd[_0x5b58a1(-0x173,-0x1e,-_0x5ce928._0x112ede,-0x58)](0x0,_0x4e7352)){const _0x248872=_0x470351[_0x5b58a1(0x162,_0x5ce928._0x18ebf8,_0x5ce928._0x4cec10,-_0x5ce928._0x288240)](_0x1a8267,_0x6ddd43),_0x57ceb2=await _0x2eb481(_0x248872)['catch'](()=>null);if(!_0x57ceb2)continue;let _0x49b66e=_0x5b58a1(0x102,_0x5ce928._0x5d96d3,0x146,0x1de);if(_0x57ceb2[_0x5b58a1(_0x5ce928._0x39db80,-0x1,0x14d,-_0x5ce928._0x266399)]())_0x49b66e=_0x5b58a1(0x1e5,_0x5ce928._0x8b4cb6,0x1e1,_0x5ce928._0x2470ed);else{if(_0x57ceb2[_0xf287a5(_0x5ce928._0x354e32,_0x5ce928._0x51817f,0x526,0x4f3)]())_0x49b66e=_0xf287a5(_0x5ce928._0x335658,_0x5ce928._0x54f3de,_0x5ce928._0x4e38aa,0x5dd);else{if(_0x57ceb2[_0xf287a5(_0x5ce928._0x532d6a,_0x5ce928._0xd7c4b2,0x47f,0x54b)]())_0x49b66e=_0xf287a5(0x468,_0x5ce928._0x30894c,_0x5ce928._0x2aea33,_0x5ce928._0x3d25dc);}}const _0x2ba333={'name':_0x6ddd43,'type':_0x49b66e,'size':_0x57ceb2[_0xf287a5(0x6b5,_0x5ce928._0x5a4162,0x557,_0x5ce928._0x404f0c)],'mtime':_0x57ceb2[_0x5b58a1(0x204,0xee,0xe9,_0x5ce928._0x1a8821)],'mode':_0x57ceb2[_0xf287a5(_0x5ce928._0x16c2e2,_0x5ce928._0x133da8,0x4ee,0x46b)]},_0x58d3a1=_0x49b66e===_0xf287a5(0x47b,0x2d1,_0x5ce928._0x13b873,0x354)?await countTextLines(_0x248872,_0x57ceb2[_0xf287a5(0x42e,_0x5ce928._0x2d69fa,0x557,0x623)]):void 0x0;if(_0x58d3a1!==void 0x0)_0x2ba333['lines']=_0x58d3a1;_0x3d7074[_0xf287a5(0x663,0x492,0x5ca,_0x5ce928._0x4bef1f)](_0x2ba333);}_0x3d7074['sort']((_0x2fcfd9,_0x364eb6)=>_0x2fcfd9[_0xf287a5(0x58f,0x6fc,0x5bb,0x520)]['localeCompare'](_0x364eb6[_0xf287a5(0x5c7,0x626,0x5bb,0x563)]));const _0x388147={'path':_0x2260a3,'total':_0x3d7074[_0x5b58a1(_0x5ce928._0x59f35,_0x5ce928._0xb211e8,0x12c,_0x5ce928._0x35dbb6)],'truncated':_0x953ddd[_0xf287a5(0x377,_0x5ce928._0x176b7c,_0x5ce928._0x3849b5,0x3e6)]>_0x4e7352,'entries':_0x3d7074};return yield createToolOutput(_0x29899c[_0xf287a5(_0x5ce928._0x50cd4e,_0x5ce928._0x262b24,0x568,_0x5ce928._0x2c0aac)](_0x388147,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x2260a3,'total':_0x3d7074[_0xf287a5(_0x5ce928._0x487708,0x554,_0x5ce928._0x4e233a,_0x5ce928._0x4bc93c)],'truncated':_0x953ddd['length']>_0x4e7352,'limit':_0x4e7352,'entries':_0x3d7074}),void 0x0;}});}import{stat as _0x4dc2fc}from'fs/promises';import _0x24262c from'path';import{fileURLToPath as _0x3d6d89}from'url';function severityName(_0x1a2a31){const _0x43748a={_0xce0801:0x3a2,_0x4c82f6:0x465,_0x3bf7ee:0x2c1,_0x21fa17:0x47,_0x19e07a:0x124,_0x4434cb:0x20d,_0x45871c:0x168},_0x310d4b={_0x6a0842:0x129,_0x91a5a7:0x185,_0x58d64f:0x65f};function _0x259a26(_0x4cc38d,_0xd01607,_0x4f374a,_0x3e9df6){return _0x4820c3(_0x4cc38d-_0x310d4b._0x6a0842,_0xd01607-_0x310d4b._0x91a5a7,_0x4cc38d,_0x3e9df6- -_0x310d4b._0x58d64f);}function _0x97b708(_0x169bf2,_0x4cb59c,_0x230b05,_0x2a13a9){return _0x211934(_0x169bf2- -0x1b8,_0x4cb59c-0x2b,_0x230b05,_0x2a13a9-0xcd);}switch(_0x1a2a31){case 0x1:return'Error';case 0x2:return _0x97b708(0x281,_0x43748a._0xce0801,0x359,0x361);case 0x3:return _0x97b708(0x356,_0x43748a._0x4c82f6,0x38a,_0x43748a._0x3bf7ee);case 0x4:return _0x259a26(_0x43748a._0x21fa17,0x1eb,_0x43748a._0x19e07a,0xa0);default:return _0x97b708(0x2c0,_0x43748a._0x4434cb,0x3b3,_0x43748a._0x45871c);}}function formatSingleHover(_0x5627bd){const _0x5bb484={_0x737a23:0x166,_0x4897ef:0x1f9,_0xae5bf6:0x330,_0x39ef87:0x24e,_0x3fcf24:0x20e,_0x206918:0x4ec,_0x46ad6e:0x454,_0x1e9dc2:0x416,_0x1a109d:0x57c,_0x3887df:0x52f,_0x3f8c65:0x58e,_0x4afd2d:0x6c9,_0x56767f:0x1d1,_0x3bd90f:0x3a2,_0x133f84:0x1fd,_0x40eef2:0x155,_0x442909:0x4a6,_0x638ed6:0x46f,_0x71b4d2:0x57d,_0x29a554:0x1fd,_0x286240:0x251,_0x506a12:0x493,_0x54d8e8:0x522,_0x2fb05d:0x399,_0x39e29c:0x4f2,_0x36ead4:0x651},_0x3dc596={_0x468eaf:0x118,_0x2b1d6:0xb7,_0x340ac8:0x194},_0x20dec6=_0x5627bd[_0x49f355(0x35c,0x2a7,0x2ce,_0x5bb484._0x737a23)];if(typeof _0x20dec6===_0x14ed8f(0x59c,0x4cc,0x57c,0x68e))return _0x20dec6;if(Array[_0x49f355(_0x5bb484._0x4897ef,_0x5bb484._0xae5bf6,0x473,0x3e1)](_0x20dec6))return _0x20dec6[_0x49f355(_0x5bb484._0x39ef87,_0x5bb484._0x3fcf24,0xb8,0x211)](_0x387766=>typeof _0x387766===_0x14ed8f(0x49f,0x68b,0x57c,0x65c)?_0x387766:_0x387766[_0x49f355(0x237,0x1fd,0x205,0xbb)])[_0x49f355(_0x5bb484._0x206918,0x428,_0x5bb484._0x46ad6e,_0x5bb484._0x1e9dc2)](Boolean)[_0x14ed8f(_0x5bb484._0x1a109d,_0x5bb484._0x3887df,_0x5bb484._0x3f8c65,_0x5bb484._0x4afd2d)]('\x0a\x0a');if(_0x49f355(_0x5bb484._0x56767f,0x2e9,0x197,_0x5bb484._0x3bd90f)in _0x20dec6)return _0x20dec6[_0x49f355(0xb3,_0x5bb484._0x133f84,_0x5bb484._0x40eef2,0xf5)];function _0x49f355(_0x34ea01,_0x5108dd,_0x418651,_0x1f5def){return _0x211934(_0x5108dd- -_0x3dc596._0x468eaf,_0x5108dd-_0x3dc596._0x2b1d6,_0x418651,_0x1f5def-_0x3dc596._0x340ac8);}function _0x14ed8f(_0x3c9cf0,_0x238e38,_0x3b2629,_0x461353){return _0x211934(_0x3b2629-0x1dd,_0x238e38-0x20,_0x238e38,_0x461353-0x139);}return _0x20dec6[_0x14ed8f(_0x5bb484._0x442909,_0x5bb484._0x638ed6,_0x5bb484._0x71b4d2,0x4cc)]?'```'+_0x20dec6['language']+'\x0a'+_0x20dec6[_0x49f355(0x136,_0x5bb484._0x29a554,_0x5bb484._0x286240,0x300)]+_0x49f355(0x3b5,_0x5bb484._0x506a12,0x547,0x5b9):_0x20dec6[_0x14ed8f(_0x5bb484._0x54d8e8,_0x5bb484._0x2fb05d,_0x5bb484._0x39e29c,_0x5bb484._0x36ead4)];}function formatHover(_0x467475){const _0x3366e1={_0x39e2d3:0x368,_0xc379d2:0x252,_0x257ef2:0x1c6,_0x22f3d6:0x316,_0x49ec5f:0x258,_0x1f0d24:0x439,_0x363c99:0x31b,_0x26f823:0x11f},_0x588c74={_0x4d893d:0x2ff,_0x5a78e0:0x126},_0x25503e={_0x1c9a4a:0x9b,_0x2b7d92:0x50};function _0x4bafc2(_0x27f315,_0x47f29e,_0x5aadb9,_0x213108){return _0x211934(_0x27f315- -_0x25503e._0x1c9a4a,_0x47f29e-0x18a,_0x213108,_0x213108-_0x25503e._0x2b7d92);}if(_0x467475['length']===0x0)return _0x240a9e(_0x3366e1._0x39e2d3,_0x3366e1._0xc379d2,0x252,_0x3366e1._0x257ef2);function _0x240a9e(_0x269a82,_0x29f80f,_0x5b1d08,_0x2c11df){return _0x211934(_0x29f80f- -_0x588c74._0x4d893d,_0x29f80f-0x13f,_0x269a82,_0x2c11df-_0x588c74._0x5a78e0);}return _0x467475[_0x240a9e(0x14e,0x27,0x31,0x112)](formatSingleHover)[_0x4bafc2(_0x3366e1._0x22f3d6,_0x3366e1._0x49ec5f,_0x3366e1._0x1f0d24,_0x3366e1._0x363c99)](_0x240a9e(-_0x3366e1._0x26f823,0x3b,0x15,-0x38));}function locationPath(_0x252b29){const _0x6b8755={_0x5e0c35:0x544,_0x2f167f:0x471,_0x385919:0x49a,_0x5dda09:0x5cb},_0x4c090f={_0x5a2e97:0x16b},_0x925804={_0x10a179:0x161,_0x3777f8:0x1c4};if(!_0x252b29[_0x3e21ac(-0x48,-0x31,-0xfb,-0x183)](_0x4bc289(_0x6b8755._0x5e0c35,_0x6b8755._0x2f167f,_0x6b8755._0x385919,_0x6b8755._0x5dda09)))return _0x252b29;function _0x4bc289(_0x2ceb80,_0xc916ae,_0x14d42a,_0x7d27a3){return _0x4820c3(_0x2ceb80-_0x925804._0x10a179,_0xc916ae-0x1ed,_0x14d42a,_0xc916ae- -_0x925804._0x3777f8);}function _0x3e21ac(_0x3e7a6b,_0x1a801c,_0x5a6898,_0x57e64b){return _0x211934(_0x1a801c- -0x4e6,_0x1a801c-_0x4c090f._0x5a2e97,_0x3e7a6b,_0x57e64b-0x195);}return _0x3d6d89(_0x252b29);}function formatLocations(_0x406c87){const _0x6a704a={_0x438daa:0x36e,_0x3b465a:0xdc},_0x54c657={_0x73dc05:0x83,_0x57f934:0x118,_0x4e6b42:0x221,_0x3793dd:0x257,_0x32027f:0x752,_0x15050a:0x6f1,_0x726c18:0x5e0},_0x42d624={_0x4e5858:0x107},_0x3b6f85={_0xc9d354:0x1f,_0x389f60:0x7b},_0x4abd80={_0x4bc4f0:0x118,_0x318346:0x398},_0xc3e591={_0x54e4c5:0x14b};function _0xeaa28e(_0xb7971a,_0xdb6ce4,_0x7e0fc8,_0xfd701e){return _0x4820c3(_0xb7971a-0x157,_0xdb6ce4-_0xc3e591._0x54e4c5,_0xb7971a,_0xdb6ce4- -0x4df);}function _0x252fb8(_0x8aec2a,_0x379477,_0x3a29b4,_0x47aa1d){return _0x4820c3(_0x8aec2a-0x2b,_0x379477-_0x4abd80._0x4bc4f0,_0x47aa1d,_0x8aec2a- -_0x4abd80._0x318346);}if(_0x406c87[_0x252fb8(0x2dd,0x19f,0x411,_0x6a704a._0x438daa)]===0x0)return _0x252fb8(0x402,0x34e,0x2ba,0x3d9);return _0x406c87[_0xeaa28e(0xbd,0x93,0x165,_0x6a704a._0x3b465a)](_0x2764f7=>{function _0x705f80(_0x5b9a44,_0x5727ee,_0x569d9b,_0x2da739){return _0x252fb8(_0x2da739- -_0x3b6f85._0xc9d354,_0x5727ee-0x8,_0x569d9b-_0x3b6f85._0x389f60,_0x5b9a44);}const _0x165197=_0x2764f7[_0x705f80(0x31e,_0x54c657._0x73dc05,_0x54c657._0x57f934,0x1d2)][_0x705f80(_0x54c657._0x4e6b42,_0x54c657._0x3793dd,0x140,0x271)];function _0x499ea2(_0x1f1118,_0x571fa8,_0x1dd54c,_0xe3ec3a){return _0x252fb8(_0x1dd54c-0x32c,_0x571fa8-0x11e,_0x1dd54c-_0x42d624._0x4e5858,_0x571fa8);}return locationPath(_0x2764f7['uri'])+':'+(_0x165197['line']+0x1)+':'+(_0x165197[_0x499ea2(0x616,_0x54c657._0x32027f,_0x54c657._0x15050a,_0x54c657._0x726c18)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x3893f7){const _0x2bdc32={_0xdb0cc1:0x327,_0x4b9aab:0x29f,_0x24d632:0x207,_0xcfca4:0x1c2,_0x39f714:0xc9},_0x147d2c={_0x2912e9:0x47a},_0x1b0a71={_0x5b6500:0x16};function _0x2f6c8e(_0x364940,_0x3ec74e,_0x16701f,_0x4d26a2){return _0x211934(_0x3ec74e- -_0x1b0a71._0x5b6500,_0x3ec74e-0xff,_0x364940,_0x4d26a2-0x15d);}function _0x41ff21(_0x3507aa,_0x504348,_0x43b143,_0x44770d){return _0x4820c3(_0x3507aa-0x16a,_0x504348-0xe4,_0x44770d,_0x504348- -_0x147d2c._0x2912e9);}return _0x2f6c8e(0x341,_0x2bdc32._0xdb0cc1,_0x2bdc32._0x4b9aab,_0x2bdc32._0x24d632)in _0x3893f7&&_0x41ff21(0x1e2,_0x2bdc32._0xcfca4,_0x2bdc32._0x39f714,0x20b)in _0x3893f7;}function formatSymbols(_0x442f51){const _0x5d3de8={_0x4a3073:0x66,_0x48b2df:0x1ae,_0xa6402:0x2c3,_0x3ea9ec:0x73,_0x41e856:0x76},_0x35313a={_0x6c1d1e:0x4e4,_0x44bf96:0x38b,_0x346289:0x1fb,_0xa40af:0x693,_0x1a6e8b:0x553,_0x274d6f:0x738,_0x5d529d:0x69e,_0x5c80d1:0x46e,_0x1960c2:0x47f,_0x32bdc1:0x4de,_0x41fd52:0x356,_0x288d9e:0xdf,_0x89a831:0x240,_0x540904:0x180,_0xfef50e:0x1fb,_0x2ba0f8:0x68b,_0x113a8f:0x695},_0x19674a={_0x177676:0x92},_0x14a1b9={_0x443ac3:0xed,_0x1e7c03:0x5e5};function _0x41b4d8(_0x4a49bf,_0x1b9608,_0x59c96e,_0x4464a8){return _0x4820c3(_0x4a49bf-0x1bf,_0x1b9608-_0x14a1b9._0x443ac3,_0x1b9608,_0x4a49bf- -_0x14a1b9._0x1e7c03);}if(_0x442f51[_0x29ce82(0xbc,_0x5d3de8._0x4a3073,0x118,0x21a)]===0x0)return _0x41b4d8(_0x5d3de8._0x48b2df,0xb1,_0x5d3de8._0xa6402,0xa9);function _0x29ce82(_0x20a758,_0x26e077,_0x5edc95,_0x21c8d0){return _0x211934(_0x20a758- -0x36d,_0x26e077-0x127,_0x26e077,_0x21c8d0-_0x19674a._0x177676);}return _0x442f51[_0x41b4d8(-_0x5d3de8._0x3ea9ec,0x75,-0x7,0x28)](_0x1b61c2=>{const _0x346db6={_0xef845b:0x4ef,_0x130367:0x152,_0x369208:0xe6},_0x4a8b44={_0x9ff324:0x190};if(isDocumentSymbol(_0x1b61c2))return _0x1b61c2['name']+'\x20('+_0x1b61c2['kind']+_0x2d6992(_0x35313a._0x6c1d1e,0x4ac,_0x35313a._0x44bf96,0x5cc)+(_0x1b61c2[_0x4cc0ee(0x17a,0xdd,0x136,0x1fb)]['start']['line']+0x1)+':'+(_0x1b61c2[_0x4cc0ee(0x32f,0x254,0x1f0,_0x35313a._0x346289)]['start'][_0x2d6992(0x7d4,_0x35313a._0xa40af,_0x35313a._0x1a6e8b,0x6bf)]+0x1)+']';function _0x4cc0ee(_0x15a61,_0x752bc0,_0x39d2d8,_0x4d06b8){return _0x29ce82(_0x4d06b8-0x22b,_0x15a61,_0x39d2d8-0x1b5,_0x4d06b8-_0x4a8b44._0x9ff324);}function _0x2d6992(_0x8db1c2,_0x15b128,_0x1afc18,_0x8fd314){return _0x29ce82(_0x15b128-_0x346db6._0xef845b,_0x1afc18,_0x1afc18-_0x346db6._0x130367,_0x8fd314-_0x346db6._0x369208);}return _0x1b61c2[_0x2d6992(0x7b9,_0x35313a._0x274d6f,0x698,0x825)]+'\x20('+_0x1b61c2[_0x2d6992(0x4af,0x583,_0x35313a._0x5d529d,_0x35313a._0x5c80d1)]+')\x20'+locationPath(_0x1b61c2[_0x2d6992(_0x35313a._0x1960c2,0x543,0x67d,_0x35313a._0x32bdc1)][_0x4cc0ee(_0x35313a._0x32bdc1,_0x35313a._0x41fd52,0x257,0x3af)])+':'+(_0x1b61c2['location']['range']['start']['line']+0x1)+':'+(_0x1b61c2['location'][_0x4cc0ee(_0x35313a._0x288d9e,_0x35313a._0x89a831,_0x35313a._0x540904,_0x35313a._0xfef50e)][_0x2d6992(0x64a,0x55e,_0x35313a._0x2ba0f8,0x639)][_0x2d6992(0x57f,_0x35313a._0xa40af,_0x35313a._0x113a8f,0x6d1)]+0x1);})[_0x29ce82(0x44,-0x4f,_0x5d3de8._0x41e856,-0x75)]('\x0a');}function formatDiagnostics(_0x52b089){const _0xa9163={_0x482a83:0x787,_0x4bd33a:0x5c9,_0x2cedee:0x62c,_0x4cfb67:0x1ce,_0x4c387c:0x1ca,_0x414d68:0x71,_0x2a8a8d:0x53f,_0x100bed:0x5b4,_0xd9d345:0x58e},_0xccbbc5={_0x5c71cf:0x638,_0x12c1ab:0x57d,_0x778426:0x5ba,_0x43e5d1:0x508,_0x34aa04:0x871,_0x2515ec:0x757,_0x7eb701:0x618},_0x5419ca={_0x238b9f:0x46,_0x74bbd6:0x1e0},_0x22b3ed={_0x43f600:0x203,_0x75a031:0x54,_0x5d5ead:0x135},_0x4c03b1={_0xd66ac5:0x6e};function _0x1bde6b(_0x8861ac,_0x1b88cf,_0x559e9f,_0x3c4caa){return _0x4820c3(_0x8861ac-0x14f,_0x1b88cf-_0x4c03b1._0xd66ac5,_0x1b88cf,_0x3c4caa- -0x607);}function _0x5c7e52(_0x3422d2,_0x299e1e,_0x1a3cd6,_0xb9167c){return _0x211934(_0x1a3cd6-_0x22b3ed._0x43f600,_0x299e1e-_0x22b3ed._0x75a031,_0x3422d2,_0xb9167c-_0x22b3ed._0x5d5ead);}if(_0x52b089[_0x5c7e52(_0xa9163._0x482a83,_0xa9163._0x4bd33a,_0xa9163._0x2cedee,0x65f)]===0x0)return _0x1bde6b(0x24,_0xa9163._0x4cfb67,_0xa9163._0x4c387c,_0xa9163._0x414d68);return _0x52b089['map'](_0x2c3e86=>{const _0x313507={_0x3a0131:0x128},_0x143e87=_0x2c3e86[_0x4d14c9(0x586,_0xccbbc5._0x5c71cf,0x5f3,_0xccbbc5._0x12c1ab)][_0x4d14c9(0x625,_0xccbbc5._0x778426,0x4d7,_0xccbbc5._0x43e5d1)];function _0x56bb44(_0x6b49f6,_0xf1db53,_0x501ded,_0x4a2e03){return _0x5c7e52(_0x6b49f6,_0xf1db53-0xa2,_0x501ded- -0x252,_0x4a2e03-_0x313507._0x3a0131);}function _0x4d14c9(_0x32f522,_0x42557c,_0x42aa99,_0x4c90b6){return _0x5c7e52(_0x4c90b6,_0x42557c-0x1ce,_0x32f522-_0x5419ca._0x238b9f,_0x4c90b6-_0x5419ca._0x74bbd6);}return severityName(_0x2c3e86['severity'])+'\x20['+(_0x143e87[_0x56bb44(0x60d,0x518,0x505,0x59d)]+0x1)+':'+(_0x143e87[_0x4d14c9(0x75a,_0xccbbc5._0x34aa04,0x639,_0xccbbc5._0x2515ec)]+0x1)+']\x20'+_0x2c3e86[_0x56bb44(_0xccbbc5._0x7eb701,0x37d,0x4c8,0x412)];})[_0x5c7e52(0x5f0,_0xa9163._0x2a8a8d,_0xa9163._0x100bed,_0xa9163._0xd9d345)]('\x0a');}function formatIncomingCalls(_0x50854d){const _0xb5dedb={_0x336475:0xea,_0x1b16e5:0x435,_0x30394d:0x468,_0x55efb6:0x216,_0x43fd13:0x1d5,_0x158d79:0x1c1},_0x3f5935={_0xbc4b3:0x110,_0x24469d:0xb3},_0x1d7fd0={_0x349a06:0x75,_0x1d29ee:0x5};function _0x58a3d5(_0x2e3a0c,_0x5ad6aa,_0x4831af,_0x1bbc48){return _0x4820c3(_0x2e3a0c-_0x1d7fd0._0x349a06,_0x5ad6aa-_0x1d7fd0._0x1d29ee,_0x4831af,_0x5ad6aa- -0x506);}if(_0x50854d[_0x58a3d5(0x1b9,0x16f,_0xb5dedb._0x336475,0x2bb)]===0x0)return _0x59a07c(_0xb5dedb._0x1b16e5,_0xb5dedb._0x30394d,0x45f,0x31c);function _0x59a07c(_0x34dcdc,_0x25929,_0x238565,_0x317b66){return _0x211934(_0x34dcdc- -_0x3f5935._0xbc4b3,_0x25929-_0x3f5935._0x24469d,_0x238565,_0x317b66-0x123);}return _0x50854d[_0x59a07c(_0xb5dedb._0x55efb6,0xf8,_0xb5dedb._0x43fd13,_0xb5dedb._0x158d79)](_0x554c36=>_0x554c36['from'][_0x59a07c(0x4a6,0x5e2,0x5ba,0x3a2)])['join']('\x0a');}function formatOutgoingCalls(_0x361a6e){const _0x3289c4={_0x35e5c8:0x649,_0x3ed368:0x5db,_0x5efd0d:0x76c,_0x332e30:0x765,_0x403f73:0x5b4,_0x42e861:0x456,_0x32d954:0x6e8,_0x2512ed:0x622,_0x3cb20b:0x4e6},_0x2a94cb={_0x21c083:0xba,_0x2c5259:0x2c},_0x550aa6={_0xd0696e:0x1f0,_0x5e75bc:0x171};function _0x39fe3c(_0x1a2b43,_0x21fc5b,_0x3115cd,_0x56c5cd){return _0x211934(_0x56c5cd-0x130,_0x21fc5b-_0x550aa6._0xd0696e,_0x1a2b43,_0x56c5cd-_0x550aa6._0x5e75bc);}if(_0x361a6e[_0x50009f(0x6c7,0x6fb,_0x3289c4._0x35e5c8,_0x3289c4._0x3ed368)]===0x0)return _0x50009f(0x851,_0x3289c4._0x5efd0d,_0x3289c4._0x332e30,0x65e);function _0x50009f(_0x409b3c,_0x4b3449,_0x5bf4f9,_0x1ffd14){return _0x4820c3(_0x409b3c-_0x2a94cb._0x21c083,_0x4b3449-0x1cc,_0x409b3c,_0x5bf4f9- -_0x2a94cb._0x2c5259);}return _0x361a6e[_0x39fe3c(0x503,0x396,_0x3289c4._0x403f73,_0x3289c4._0x42e861)](_0x4f03f8=>_0x4f03f8['to']['name'])[_0x50009f(_0x3289c4._0x32d954,_0x3289c4._0x2512ed,0x5d1,_0x3289c4._0x3cb20b)]('\x0a');}function toStructured(_0x55234b){const _0x3d1e98={_0x1b6c43:0x233,_0x3afdbe:0x176,_0x4992f1:0xfc,_0x1bee45:0x208},_0x3487b3={_0x313399:0x5a7};function _0x57b820(_0x11e0a7,_0x212c22,_0xef02b9,_0x211b61){return _0x4820c3(_0x11e0a7-0x180,_0x212c22-0xcc,_0x11e0a7,_0x211b61- -_0x3487b3._0x313399);}return JSON['parse'](JSON[_0x57b820(_0x3d1e98._0x1b6c43,_0x3d1e98._0x3afdbe,_0x3d1e98._0x4992f1,_0x3d1e98._0x1bee45)](_0x55234b));}async function assertFile(_0x299dfe){const _0x4a7b31={_0x2cd18b:0x372,_0x49571d:0x3c0,_0x503118:0x6ca},_0xe594eb={_0x7f94d5:0x118,_0x2518db:0x10f},_0xd6cb3b=await _0x4dc2fc(_0x299dfe);function _0x47c993(_0x419a1a,_0x71501,_0x4e1d8b,_0x39c865){return _0x211934(_0x39c865-0x77,_0x71501-_0xe594eb._0x7f94d5,_0x419a1a,_0x39c865-_0xe594eb._0x2518db);}function _0x415e36(_0x262169,_0x80765b,_0x344ca9,_0x196858){return _0x4820c3(_0x262169-0x119,_0x80765b-0x136,_0x196858,_0x344ca9- -0x40c);}if(!_0xd6cb3b[_0x47c993(0x333,0x4b0,_0x4a7b31._0x2cd18b,_0x4a7b31._0x49571d)]())throw new ToolExecutionError(_0x47c993(0x4d7,0x689,_0x4a7b31._0x503118,0x609)+_0x299dfe,{'path':_0x299dfe});}function validatePosition(_0x3b70fd,_0x185da3){const _0x5648ab={_0x2d2c6e:0x179,_0x572ad3:0x122,_0x508af3:0x34d},_0x578cd7={_0x2ce4cc:0xf8},_0x37f564={_0x52b9c6:0x513,_0x1bc53a:0xf7,_0x2446b1:0x1cb};function _0x300871(_0x1c4629,_0x6b4159,_0x4db40d,_0x50574d){return _0x211934(_0x4db40d- -_0x37f564._0x52b9c6,_0x6b4159-_0x37f564._0x1bc53a,_0x6b4159,_0x50574d-_0x37f564._0x2446b1);}if(!Number['isInteger'](_0x3b70fd)||_0x3b70fd<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x3b70fd});function _0x1a7848(_0x17674b,_0x3524ee,_0x55e4b2,_0x13c84a){return _0x211934(_0x55e4b2- -0xef,_0x3524ee-0x180,_0x3524ee,_0x13c84a-_0x578cd7._0x2ce4cc);}if(!Number[_0x300871(-_0x5648ab._0x2d2c6e,-0x281,-_0x5648ab._0x572ad3,-0xec)](_0x185da3)||_0x185da3<0x1)throw new ToolExecutionError(_0x1a7848(0x42f,_0x5648ab._0x508af3,0x397,0x285),{'character':_0x185da3});}function createLspTool(_0x29f855={}){const _0x5617e6={_0x11a86d:0x17f,_0x50a568:0x192,_0x234ca1:0x14,_0x5d74ef:0x24b,_0x54457c:0x70c,_0x568a82:0x557,_0x893ec2:0x6e7,_0x3e0ef1:0x6c3,_0x567ee1:0x2d3,_0x56a4c7:0x20d,_0x142a5c:0x181,_0x2e5ead:0x648,_0x160627:0x675,_0x5be723:0x767,_0x218f7:0x5bc,_0x15cd61:0x572,_0x4737ef:0x5d0,_0x3bbb4b:0x727,_0x5a10f9:0x7eb,_0x49e659:0x7e2,_0x2b1700:0x6c5,_0x559b32:0x70b,_0x4180df:0x114,_0x3797a9:0xd7,_0x3dfbc2:0x2b9,_0x30dd8d:0x6fd,_0x15f786:0x804,_0x254859:0x253,_0xc44240:0x3a0,_0x1d9cc1:0x2c2,_0x54998b:0x80f,_0x3c396b:0x83a,_0xbde1fa:0x912,_0xcf214e:0xa,_0x3b9e81:0x16c,_0x5c2368:0xa5,_0x54b5aa:0xe5,_0x254155:0x12c,_0x1d4ee3:0xb5,_0x4fc77f:0x1b9,_0x5bfcde:0x795,_0x42be9e:0x5e3},_0x1f155f={_0x3256db:0x4ba,_0x128def:0x519,_0x269020:0x12c,_0x36109a:0xd6,_0x18ee9e:0x728,_0x20178b:0x5c5,_0x3a848f:0x199,_0x154701:0xd0,_0x4e7dc7:0x193,_0x213e10:0x62,_0x171b6d:0x38,_0x678b5d:0x48,_0x4113ed:0xea,_0x4dc7fb:0x48,_0x142b87:0x138,_0x1b6fd8:0x236,_0x2b2aa5:0x176,_0x5ba9e6:0xee,_0x433f48:0xe6,_0x3cc4a3:0x92,_0x42698d:0x10f,_0x574103:0xd0,_0x4d9c9f:0x11c,_0x9f630b:0x189,_0xa2fb6b:0x75c,_0x2bc486:0x687,_0x5851fa:0x626,_0x17b0da:0x11d,_0x308c83:0xe8,_0x30445b:0xc8,_0x5c27a1:0xb9,_0x5426ee:0x7cb,_0x3fb8ed:0x608,_0xb0e22:0x6fb,_0x53dfe1:0x792,_0x3939cb:0x58,_0x394e43:0x222,_0x4e4e54:0x508,_0x42fe11:0x5a9,_0x2b92a5:0x3b1,_0x2dab97:0x3bf,_0xf42103:0x829,_0x165239:0x6fc,_0x5073f0:0x55,_0x162ab5:0x102,_0x5df4ec:0x1bd,_0x2f9a05:0xc9,_0x2587e0:0x1de,_0x433dac:0x8a,_0x332356:0x53,_0x15d526:0xaa,_0x5419b7:0x6d9,_0x942c9a:0x5b9,_0x1bff72:0x78c,_0x1cb4b5:0xb6,_0x16450f:0x138,_0x7778dc:0x7d1,_0x4d82f5:0x60e},_0x1bba0b={_0x5900eb:0x7},_0x373308={_0x37a0d5:0x7f,_0x44229e:0x1b},_0x423d7a={_0x7644d8:0xf2};function _0x62a993(_0x5daca2,_0x3233fa,_0x2fd315,_0x2f24d1){return _0x211934(_0x2fd315- -0x2fa,_0x3233fa-_0x423d7a._0x7644d8,_0x5daca2,_0x2f24d1-0x11a);}const _0x2d4734=_0x24262c[_0x62a993(_0x5617e6._0x11a86d,0x6d,0x174,_0x5617e6._0x50a568)](_0x29f855[_0x62a993(0x30,-_0x5617e6._0x234ca1,0xd3,0x17b)]??process[_0x62a993(0x6d,0xca,0x191,_0x5617e6._0x5d74ef)]()),_0x2e48d0=(_0x29f855[_0x3a0d97(_0x5617e6._0x54457c,0x5f3,0x5f2,0x77e)]??[])[_0x3a0d97(_0x5617e6._0x568a82,0x64e,0x421,0x50e)](_0x76988=>_0x24262c['resolve'](_0x76988)),_0x53f297=_0x29f855[_0x3a0d97(0x7e7,_0x5617e6._0x893ec2,_0x5617e6._0x3e0ef1,0x6bd)]??_0x62a993(_0x5617e6._0x567ee1,0x169,_0x5617e6._0x56a4c7,_0x5617e6._0x142a5c);function _0x3a0d97(_0x22c9cb,_0x2e5f03,_0x46a498,_0x3073d9){return _0x4820c3(_0x22c9cb-_0x373308._0x37a0d5,_0x2e5f03-0x67,_0x2e5f03,_0x22c9cb- -_0x373308._0x44229e);}return defineTool({'name':_0x53f297,'description':_0x3a0d97(0x713,_0x5617e6._0x2e5ead,_0x5617e6._0x160627,_0x5617e6._0x5be723),'inputSchema':{'type':_0x3a0d97(_0x5617e6._0x218f7,_0x5617e6._0x15cd61,0x66a,0x4d3),'properties':{'operation':{'type':_0x3a0d97(_0x5617e6._0x4737ef,0x563,0x4e2,_0x5617e6._0x3bbb4b),'enum':['goToDefinition',_0x3a0d97(_0x5617e6._0x5a10f9,0x714,0x820,0x943),_0x3a0d97(_0x5617e6._0x49e659,_0x5617e6._0x2b1700,_0x5617e6._0x559b32,0x7d9),_0x62a993(_0x5617e6._0x4180df,_0x5617e6._0x3797a9,0x1c1,_0x5617e6._0x3dfbc2),_0x3a0d97(_0x5617e6._0x30dd8d,0x78c,0x6c2,_0x5617e6._0x15f786),'goToImplementation',_0x62a993(0x132,0x36a,_0x5617e6._0x254859,_0x5617e6._0xc44240),'incomingCalls',_0x62a993(0x380,0x2bf,_0x5617e6._0x1d9cc1,0x21f),_0x3a0d97(0x7e0,_0x5617e6._0x54998b,_0x5617e6._0x3c396b,_0x5617e6._0xbde1fa)]},'filePath':{'type':_0x62a993(_0x5617e6._0xcf214e,_0x5617e6._0x3b9e81,_0x5617e6._0x5c2368,_0x5617e6._0x54b5aa)},'line':{'type':'number'},'character':{'type':'number'},'query':{'type':_0x62a993(_0x5617e6._0x254155,_0x5617e6._0x1d4ee3,0xa5,_0x5617e6._0x4fc77f)}},'required':['operation',_0x3a0d97(0x70f,_0x5617e6._0x5bfcde,_0x5617e6._0x42be9e,0x6be),'line','character']},async *'execute'(_0xc26a97){const _0x10a76e={_0x52aa72:0x143,_0x599afa:0x4a5,_0xd850ab:0xa7},_0x579133=_0x29f855['lspService'];if(!_0x579133)throw new ToolExecutionError(_0x2e1d2b(_0x1f155f._0x3256db,0x42f,0x410,_0x1f155f._0x128def));if(!_0x579133[_0x2a12b1(-0x4,-0x9,-_0x1f155f._0x269020,-_0x1f155f._0x36109a)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0xe17392=_0xc26a97[_0x2e1d2b(0x654,0x6fb,_0x1f155f._0x18ee9e,_0x1f155f._0x20178b)];validatePosition(_0xc26a97[_0x2a12b1(_0x1f155f._0x3a848f,_0x1f155f._0x154701,0x13e,0x224)],_0xc26a97[_0x2a12b1(-0xa4,0x8d,_0x1f155f._0x4e7dc7,-_0x1f155f._0x213e10)]);if(_0xe17392===_0x2e1d2b(0x677,0x593,0x617,_0x1f155f._0x20178b)){if(!_0xc26a97['query']?.['trim']())throw new ToolExecutionError(_0x2a12b1(0x5d,_0x1f155f._0x171b6d,_0x1f155f._0x678b5d,0xfb));const _0x1d87be=await _0x579133[_0x2a12b1(_0x1f155f._0x4113ed,_0x1f155f._0x4dc7fb,-0x3f,0x9f)](_0xc26a97[_0x2a12b1(-0x1ad,-_0x1f155f._0x142b87,-_0x1f155f._0x1b6fd8,-_0x1f155f._0x2b2aa5)]['trim']());return yield createToolOutput(formatSymbols(_0x1d87be),{'operation':_0xe17392,'query':_0xc26a97[_0x2a12b1(-_0x1f155f._0x5ba9e6,-_0x1f155f._0x142b87,-_0x1f155f._0x433f48,-0x39)],'symbols':_0x1d87be}),void 0x0;}const _0x28425a=resolveAllowedPath(_0x2d4734,_0x2e48d0,_0xc26a97['filePath']);await assertFile(_0x28425a);if(!await _0x579133['hasClients'](_0x28425a))throw new ToolExecutionError(_0x2a12b1(-0x140,-_0x1f155f._0x3cc4a3,-0x5e,-0x2d)+_0xc26a97[_0x2a12b1(_0x1f155f._0x42698d,0x5a,-0x2e,0xa5)],{'filePath':_0xc26a97['filePath']});function _0x2e1d2b(_0x79c36a,_0x549107,_0x75043b,_0xbc6d34){return _0x62a993(_0x75043b,_0x549107-_0x10a76e._0x52aa72,_0x79c36a-_0x10a76e._0x599afa,_0xbc6d34-_0x10a76e._0xd850ab);}function _0x2a12b1(_0x229ec8,_0x22f4ad,_0x479462,_0x5ea0cf){return _0x3a0d97(_0x22f4ad- -0x6b5,_0x5ea0cf,_0x479462-_0x1bba0b._0x5900eb,_0x5ea0cf-0x79);}await _0x579133['touchFile'](_0x28425a,!![]);const _0x1e7280={'file':_0x28425a,'line':_0xc26a97[_0x2a12b1(0xb,_0x1f155f._0x574103,_0x1f155f._0x4d9c9f,_0x1f155f._0x9f630b)]-0x1,'character':_0xc26a97['character']-0x1};switch(_0xe17392){case _0x2e1d2b(_0x1f155f._0xa2fb6b,0x70c,_0x1f155f._0x2bc486,_0x1f155f._0x5851fa):{const _0x97152b=await _0x579133['hover'](_0x1e7280);return yield createToolOutput(formatHover(_0x97152b),{'operation':_0xe17392,'filePath':_0x28425a,'hover':_0x97152b}),void 0x0;}case _0x2a12b1(0xa,0x12b,_0x1f155f._0x17b0da,0x16b):{const _0x117c02=await _0x579133[_0x2a12b1(-_0x1f155f._0x308c83,-_0x1f155f._0x30445b,-_0x1f155f._0x5c27a1,-0x20a)](_0x28425a);return yield createToolOutput(formatDiagnostics(_0x117c02),{'operation':_0xe17392,'filePath':_0x28425a,'diagnostics':_0x117c02}),void 0x0;}case _0x2e1d2b(0x6e9,_0x1f155f._0x5426ee,_0x1f155f._0x3fb8ed,_0x1f155f._0xb0e22):{const _0x2907a8=await _0x579133[_0x2e1d2b(0x6bb,0x587,0x770,0x6ba)](_0x1e7280);return yield createToolOutput(formatLocations(_0x2907a8),{'operation':_0xe17392,'filePath':_0x28425a,'locations':_0x2907a8}),void 0x0;}case _0x2e1d2b(0x765,0x6ec,0x62b,_0x1f155f._0x53dfe1):{const _0x2b5539=await _0x579133[_0x2a12b1(-0x22d,-_0x1f155f._0x433f48,_0x1f155f._0x3939cb,-_0x1f155f._0x394e43)](_0x1e7280);return yield createToolOutput(formatLocations(_0x2b5539),{'operation':_0xe17392,'filePath':_0x28425a,'locations':_0x2b5539}),void 0x0;}case _0x2e1d2b(_0x1f155f._0x4e4e54,_0x1f155f._0x42fe11,_0x1f155f._0x2b92a5,_0x1f155f._0x2dab97):{const _0x529ab7=await _0x579133[_0x2e1d2b(0x6ec,_0x1f155f._0xf42103,0x60c,_0x1f155f._0x165239)](_0x1e7280);return yield createToolOutput(formatLocations(_0x529ab7),{'operation':_0xe17392,'filePath':_0x28425a,'locations':_0x529ab7}),void 0x0;}case'documentSymbol':{const _0x103332=await _0x579133[_0x2a12b1(-_0x1f155f._0x5073f0,0x37,_0x1f155f._0x162ab5,-0x39)](_0x28425a);return yield createToolOutput(formatSymbols(_0x103332),{'operation':_0xe17392,'filePath':_0x28425a,'symbols':_0x103332}),void 0x0;}case _0x2a12b1(_0x1f155f._0x5df4ec,_0x1f155f._0x2f9a05,0x17f,0x174):{const _0x512ffa=await _0x579133[_0x2a12b1(0x3d,_0x1f155f._0x2f9a05,_0x1f155f._0x2587e0,_0x1f155f._0x433dac)](_0x1e7280);return yield createToolOutput(formatSymbols(_0x512ffa),{'operation':_0xe17392,'filePath':_0x28425a,'symbols':toStructured(_0x512ffa)}),void 0x0;}case _0x2a12b1(_0x1f155f._0x332356,_0x1f155f._0x15d526,0x11,0x3c):{const _0x41f7d2=await _0x579133[_0x2e1d2b(_0x1f155f._0x5419b7,_0x1f155f._0x942c9a,0x813,_0x1f155f._0x1bff72)](_0x1e7280);return yield createToolOutput(formatIncomingCalls(_0x41f7d2),{'operation':_0xe17392,'filePath':_0x28425a,'calls':toStructured(_0x41f7d2)}),void 0x0;}case _0x2a12b1(_0x1f155f._0x1cb4b5,_0x1f155f._0x16450f,0x1dc,0x293):{const _0x726c8e=await _0x579133[_0x2e1d2b(0x767,_0x1f155f._0x7778dc,0x6d5,_0x1f155f._0x4d82f5)](_0x1e7280);return yield createToolOutput(formatOutgoingCalls(_0x726c8e),{'operation':_0xe17392,'filePath':_0x28425a,'calls':toStructured(_0x726c8e)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x3c7e47,readFile as _0x3cf4c2,writeFile as _0x35db59}from'fs/promises';import{join as _0x187acc}from'path';function sanitizeStorageKey(_0x3bcf35){const _0x644a36={_0x25fadb:0x4d9,_0x5e2137:0x413,_0x386a39:0x45d},_0x529b33={_0x32ba00:0x1c7},_0x578d6e={_0xadb970:0x13c};function _0xd87fa2(_0x3d7541,_0x562ed6,_0xd2e55f,_0x43bc76){return _0x4820c3(_0x3d7541-0x118,_0x562ed6-_0x578d6e._0xadb970,_0x3d7541,_0x43bc76- -0x39c);}function _0x4b07be(_0x507ffe,_0x4195bf,_0x38f3f1,_0x4aed4c){return _0x4820c3(_0x507ffe-_0x529b33._0x32ba00,_0x4195bf-0x1e4,_0x4195bf,_0x507ffe- -0xe1);}return _0x3bcf35[_0xd87fa2(0x293,0x424,0x387,0x2e5)](/[^a-zA-Z0-9_]+/g,'_')[_0x4b07be(0x5a0,0x59d,0x68b,0x64e)](/^_+|_+$/g,'')||_0x4b07be(_0x644a36._0x25fadb,_0x644a36._0x5e2137,_0x644a36._0x386a39,0x599);}function storagePath(_0x1e613b){const _0x3b9d20={_0x3ccc17:0x2d9,_0x2e1f67:0x27d,_0x540878:0x40e,_0x20a3ab:0x49c},_0x58ab5c={_0x4b00b8:0x17a,_0x4fbc4a:0x18a},_0x411ead={_0x57bed8:0x118,_0x301fc1:0x3d6},_0x29ea8d=sanitizeStorageKey(_0x1e613b['config'][_0x33fdc3(0x1a8,0x267,0x228,_0x3b9d20._0x3ccc17)]?.[_0x591614(0x302,0x3f3,0x3be,_0x3b9d20._0x2e1f67)]??_0x1e613b[_0x33fdc3(0x35f,_0x3b9d20._0x540878,0x52a,_0x3b9d20._0x20a3ab)]);function _0x591614(_0x516f2f,_0x5e7100,_0x440ac3,_0x37e3f7){return _0x4820c3(_0x516f2f-0x9f,_0x5e7100-_0x411ead._0x57bed8,_0x440ac3,_0x516f2f- -_0x411ead._0x301fc1);}function _0x33fdc3(_0x53c770,_0x3d5d0b,_0x43c841,_0x3693f5){return _0x4820c3(_0x53c770-_0x58ab5c._0x4b00b8,_0x3d5d0b-_0x58ab5c._0x4fbc4a,_0x43c841,_0x3d5d0b- -0x3a8);}return _0x187acc(_0x1e613b['storageDir'],_0x29ea8d+'.json');}async function readStore(_0x29a68e){const _0x2cd359={_0x398af7:0x120,_0xef1702:0x70,_0x1f59a0:0x103,_0x209cf7:0xdb,_0x52e0e9:0x591,_0x2ce91d:0x4b8,_0xe773a0:0x4d9,_0x1886bc:0x5a0,_0x1d01ab:0xe4,_0x452df4:0xb2,_0x174beb:0x19c},_0x2face3={_0x23c325:0x84};function _0x323e5a(_0x52ddf2,_0x305d24,_0x1d0bd9,_0x4b750c){return _0x211934(_0x1d0bd9- -0x3e3,_0x305d24-_0x2face3._0x23c325,_0x4b750c,_0x4b750c-0x12);}function _0x455267(_0x1b3dd0,_0x572831,_0x450172,_0x5d38e9){return _0x4820c3(_0x1b3dd0-0x9b,_0x572831-0xb4,_0x1b3dd0,_0x572831- -0x18c);}try{return JSON[_0x323e5a(0x185,0x191,_0x2cd359._0x398af7,_0x2cd359._0xef1702)](await _0x3cf4c2(_0x29a68e,_0x323e5a(0xb1,0x247,_0x2cd359._0x1f59a0,_0x2cd359._0x209cf7)));}catch(_0x4e1946){if(_0x4e1946 instanceof Error&&'code'in _0x4e1946&&_0x4e1946[_0x455267(_0x2cd359._0x52e0e9,_0x2cd359._0x2ce91d,_0x2cd359._0xe773a0,_0x2cd359._0x1886bc)]===_0x323e5a(_0x2cd359._0x1d01ab,_0x2cd359._0x452df4,_0x2cd359._0x174beb,0x203))return{};throw _0x4e1946;}}async function writeStore(_0x89d40a,_0x2ebe10){const _0x247ece={_0x574d19:0x148,_0x77294a:0x38,_0x2b7578:0x2df},_0x4562a1={_0x593844:0x124},_0x4f22e6={_0x207151:0x109,_0x401645:0x47b};function _0x4a588d(_0x49d26e,_0x496d2a,_0x167991,_0x3b1cb8){return _0x4820c3(_0x49d26e-0x168,_0x496d2a-_0x4f22e6._0x207151,_0x496d2a,_0x49d26e- -_0x4f22e6._0x401645);}await _0x3c7e47(_0x187acc(_0x89d40a,'..'),{'recursive':!![]});function _0x37f735(_0x2bfcb6,_0x481b97,_0x17b6db,_0x323477){return _0x4820c3(_0x2bfcb6-_0x4562a1._0x593844,_0x481b97-0x58,_0x323477,_0x17b6db- -0x777);}await _0x35db59(_0x89d40a,JSON[_0x37f735(_0x247ece._0x574d19,0x13c,_0x247ece._0x77294a,0xf8)](_0x2ebe10,null,0x2),_0x4a588d(0x2b7,0x3a1,_0x247ece._0x2b7578,0x3eb));}async function updateStore(_0x5d8ae7,_0x1c14c6){const _0x80158c=await readStore(_0x5d8ae7);_0x1c14c6(_0x80158c),await writeStore(_0x5d8ae7,_0x80158c);}function createMcpOAuthProvider(_0x1f4a58){const _0x4b97c5={_0x2da069:0x43b,_0x5497fa:0x2f0,_0x38888b:0x54e,_0x2eeb9b:0x5a1,_0x28c20a:0x756,_0x41d73e:0x631,_0x15b558:0x651,_0x57e596:0x479,_0x57756c:0x59f,_0x71ebb3:0x3f0,_0x4a841b:0x419,_0x8bff16:0x546,_0x37212f:0x735,_0x3287c3:0x6d9,_0x855553:0x573,_0x2b43b4:0x6ea,_0x4503b2:0x62e,_0x67aff7:0x2d0,_0x509ce8:0x1d2,_0x283b35:0x270,_0x17ffb5:0x880,_0x198b50:0x779,_0x1509d1:0x357,_0x4086d6:0x305,_0x1b7cf9:0x4f7},_0x5df71b={_0x30763e:0x7b},_0x3f2f21={_0xeb6a9a:0x280,_0x1c6eb6:0x26c},_0x53adea={_0x2e5ff6:0x654,_0x34288c:0x318,_0x3df681:0x15a,_0x209f61:0x24f,_0x1b49ff:0x46,_0x1ea962:0x6a,_0x5bdf86:0xf4,_0xfb4abf:0x65,_0xd832b4:0x5ce,_0x118215:0x6c7,_0x13a06b:0x6a2,_0xec3c4d:0x192,_0x1151c6:0x2a3,_0x8c61f:0x24d,_0x3750b6:0x546},_0x588ef1={_0x4376a7:0x142,_0x32bfc6:0x80,_0x1d5849:0x13a,_0x2f96a2:0x73},_0x4f675a={_0x2125eb:0x324},_0x4d8f7d={_0x1caee6:0x3b3},_0x3e611c={_0x29de8e:0xbd,_0x267963:0xb7,_0x3d265f:0x67},_0x315aff={_0x10cc67:0x412,_0x3ef4c5:0x3fd,_0x4af6cc:0x409},_0x5875c7={_0xabe896:0x189,_0x49ce3e:0x2bd,_0x4e3f8a:0x1fc},_0x676ac5={_0x3c6f13:0xe5,_0x2260f4:0x15a,_0x47737e:0x21c},_0x40a79f={_0x2af6ba:0x226,_0x468cfc:0x260},_0x353e0f={_0x3e7de1:0x115,_0x346726:0x610},_0x5d4341={_0x338b5b:0x131},_0x4d7046={_0x5cf886:0x1a9,_0x4e5672:0xc2},_0x26797d=storagePath(_0x1f4a58),_0x4c0c59=_0x1f4a58['config'][_0x12751f(0x4bd,0x4b4,0x6b3,0x5f9)]?.[_0x2e4caa(_0x4b97c5._0x2da069,0x376,0x591,_0x4b97c5._0x5497fa)]?.[_0x12751f(0x5a6,_0x4b97c5._0x38888b,_0x4b97c5._0x2eeb9b,0x5e7)]('\x20');function _0x2e4caa(_0x147e55,_0x57d276,_0x392ce8,_0x32be8d){return _0x4820c3(_0x147e55-_0x4d7046._0x5cf886,_0x57d276-_0x4d7046._0x4e5672,_0x32be8d,_0x147e55- -0x2b8);}function _0x12751f(_0xcd3e20,_0x2442a8,_0x3630bc,_0x1dfe03){return _0x4820c3(_0xcd3e20-_0x5d4341._0x338b5b,_0x2442a8-0xf6,_0xcd3e20,_0x1dfe03- -0x16);}const _0x2c9023={'client_name':_0x12751f(_0x4b97c5._0x28c20a,0x5c1,_0x4b97c5._0x41d73e,_0x4b97c5._0x15b558),'redirect_uris':[_0x1f4a58[_0x2e4caa(_0x4b97c5._0x57e596,0x52c,_0x4b97c5._0x57756c,_0x4b97c5._0x71ebb3)]],'grant_types':[_0x12751f(0x65a,0x467,_0x4b97c5._0x4a841b,_0x4b97c5._0x8bff16),_0x12751f(0x69d,0x71d,_0x4b97c5._0x37212f,0x68a)],'response_types':[_0x12751f(_0x4b97c5._0x3287c3,_0x4b97c5._0x855553,_0x4b97c5._0x2b43b4,_0x4b97c5._0x4503b2)],'token_endpoint_auth_method':_0x2e4caa(_0x4b97c5._0x67aff7,0x39c,_0x4b97c5._0x509ce8,_0x4b97c5._0x283b35),..._0x4c0c59?{'scope':_0x4c0c59}:{}};return{'clientMetadataUrl':_0x1f4a58[_0x12751f(_0x4b97c5._0x17ffb5,0x6bf,0x76e,_0x4b97c5._0x198b50)][_0x2e4caa(_0x4b97c5._0x1509d1,0x356,0x22a,0x240)]?.[_0x2e4caa(0x42f,_0x4b97c5._0x4086d6,_0x4b97c5._0x1b7cf9,0x2fa)],get 'redirectUrl'(){return _0x1f4a58['callbackUrl'];},get 'clientMetadata'(){return _0x2c9023;},async 'state'(){const _0x4ce56c={_0x8a67c0:0x11e,_0x56a9b6:0x123},_0x3f149c=await readStore(_0x26797d);function _0x20b952(_0x2465ac,_0x20fbf6,_0x2d0451,_0x9bafc8){return _0x12751f(_0x9bafc8,_0x20fbf6-_0x4ce56c._0x8a67c0,_0x2d0451-_0x4ce56c._0x56a9b6,_0x2d0451- -0x343);}function _0x72c843(_0x1cf59d,_0x220af7,_0x4f1b5d,_0xc59a0e){return _0x12751f(_0x4f1b5d,_0x220af7-0x155,_0x4f1b5d-_0x353e0f._0x3e7de1,_0xc59a0e- -_0x353e0f._0x346726);}if(_0x3f149c[_0x72c843(_0x40a79f._0x2af6ba,0x1b4,0x159,0x13e)])return _0x3f149c[_0x72c843(_0x40a79f._0x468cfc,0x1a5,0x251,0x13e)];const _0x268993=randomUUID();return await updateStore(_0x26797d,_0x63ef34=>{_0x63ef34['state']=_0x268993;}),_0x268993;},async 'clientInformation'(){const _0x1049ed={_0xa748f:0x1c4,_0x430437:0x66b};function _0x37acc0(_0x4d594b,_0xfb9d46,_0x4108e2,_0x4d8024){return _0x12751f(_0x4108e2,_0xfb9d46-0xad,_0x4108e2-_0x1049ed._0xa748f,_0x4d594b- -_0x1049ed._0x430437);}return(await readStore(_0x26797d))[_0x37acc0(_0x676ac5._0x3c6f13,_0x676ac5._0x2260f4,_0x676ac5._0x47737e,0xf1)];},async 'saveClientInformation'(_0x4f9a4e){await updateStore(_0x26797d,_0x77128=>{function _0x5a28a8(_0x110548,_0xfb754c,_0x4202cb,_0x22bb94){return _0x4629(_0xfb754c- -0x106,_0x4202cb);}_0x77128[_0x5a28a8(_0x5875c7._0xabe896,_0x5875c7._0x49ce3e,_0x5875c7._0x4e3f8a,0x260)]=_0x4f9a4e;});},async 'tokens'(){const _0x587000={_0x2c8ebd:0x1bb,_0x25785c:0x154};function _0x5a4007(_0x34e284,_0x34f82c,_0x5eadec,_0x265c03){return _0x12751f(_0x34f82c,_0x34f82c-0x121,_0x5eadec-_0x587000._0x2c8ebd,_0x34e284- -_0x587000._0x25785c);}return(await readStore(_0x26797d))[_0x5a4007(_0x315aff._0x10cc67,_0x315aff._0x3ef4c5,0x3a5,_0x315aff._0x4af6cc)];},async 'saveTokens'(_0x25706a){const _0x33d3cd={_0x5d13c5:0x4c6,_0x32638e:0x46d},_0x4d30d8={_0x941c1e:0x294};await updateStore(_0x26797d,_0x27a7e2=>{function _0x345d16(_0xdfe8fa,_0x58fd1c,_0x5dbc0d,_0xf9f9f){return _0x4629(_0xf9f9f-_0x4d30d8._0x941c1e,_0x5dbc0d);}_0x27a7e2[_0x345d16(0x364,0x4cc,_0x33d3cd._0x5d13c5,_0x33d3cd._0x32638e)]=_0x25706a;});},async 'redirectToAuthorization'(_0x436252){function _0x5db5a1(_0x18f0b9,_0x39885c,_0x211af5,_0x18710a){return _0x2e4caa(_0x18710a- -_0x3e611c._0x29de8e,_0x39885c-_0x3e611c._0x267963,_0x211af5-_0x3e611c._0x3d265f,_0x39885c);}await _0x1f4a58[_0x5db5a1(0x263,0x39c,0x3ea,_0x4d8f7d._0x1caee6)](_0x436252);},async 'saveCodeVerifier'(_0x1d9879){const _0x4c03c3={_0x132e5d:0x566,_0x272121:0x3e3};await updateStore(_0x26797d,_0xc3ae14=>{const _0x3c7a0e={_0x43cb0d:0x1c6};function _0x14183d(_0x302264,_0x1a2dc7,_0x42bd58,_0x2ff390){return _0x4629(_0x42bd58-_0x3c7a0e._0x43cb0d,_0x1a2dc7);}_0xc3ae14[_0x14183d(0x48e,_0x4c03c3._0x132e5d,0x42f,_0x4c03c3._0x272121)]=_0x1d9879;});},async 'codeVerifier'(){const _0x598817={_0x5d59cc:0x83};function _0x38ada6(_0x48d1f7,_0xeac4a7,_0x244351,_0x4ed10d){return _0x2e4caa(_0x244351-0x191,_0xeac4a7-0x93,_0x244351-_0x598817._0x5d59cc,_0xeac4a7);}const _0x2db59d=(await readStore(_0x26797d))[_0x550443(0x115,0x30,_0x588ef1._0x4376a7,_0x588ef1._0x32bfc6)];if(!_0x2db59d)throw new Error(_0x550443(0x112,0xe6,_0x588ef1._0x1d5849,_0x588ef1._0x2f96a2));function _0x550443(_0x516180,_0x500873,_0x14f67d,_0x25ad79){return _0x2e4caa(_0x500873- -_0x4f675a._0x2125eb,_0x500873-0x1de,_0x14f67d-0x181,_0x25ad79);}return _0x2db59d;},async 'invalidateCredentials'(_0x1707c2){await updateStore(_0x26797d,_0x769260=>{function _0x5e71cd(_0x1446b3,_0x40a99c,_0x31608b,_0x4e36ed){return _0x4629(_0x4e36ed- -0x174,_0x31608b);}function _0x173eb8(_0x2fff30,_0x45ad2e,_0x310530,_0x57f135){return _0x4629(_0x2fff30-0x3c8,_0x45ad2e);}(_0x1707c2===_0x173eb8(0x6ce,0x5d8,_0x53adea._0x2e5ff6,0x758)||_0x1707c2==='client')&&(_0x769260[_0x5e71cd(0x188,_0x53adea._0x34288c,_0x53adea._0x3df681,_0x53adea._0x209f61)]=void 0x0),(_0x1707c2===_0x5e71cd(_0x53adea._0x1b49ff,0x1ed,_0x53adea._0x1ea962,0x192)||_0x1707c2===_0x5e71cd(0x1c,_0x53adea._0x5bdf86,0x135,_0x53adea._0xfb4abf))&&(_0x769260['tokens']=void 0x0),(_0x1707c2==='all'||_0x1707c2==='verifier')&&(_0x769260[_0x173eb8(0x631,_0x53adea._0xd832b4,_0x53adea._0x118215,_0x53adea._0x13a06b)]=void 0x0,_0x769260[_0x5e71cd(_0x53adea._0xec3c4d,0x31f,_0x53adea._0x1151c6,_0x53adea._0x8c61f)]=void 0x0),(_0x1707c2==='all'||_0x1707c2===_0x173eb8(0x639,_0x53adea._0x3750b6,0x5fd,0x751))&&(_0x769260['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x26164b){const _0x502cfd={_0x3c2d50:0x224};await updateStore(_0x26797d,_0x522144=>{function _0x21df55(_0x1beb5f,_0x2aa9bc,_0x42bfff,_0x91e209){return _0x4629(_0x91e209- -_0x502cfd._0x3c2d50,_0x2aa9bc);}_0x522144[_0x21df55(_0x3f2f21._0xeb6a9a,0xf8,_0x3f2f21._0x1c6eb6,0x1db)]=_0x26164b;});},async 'discoveryState'(){const _0xb63108={_0x2aca4:0x4c3};function _0x2e5342(_0x28da34,_0xe3ae00,_0x4a9f81,_0x355aa6){return _0x2e4caa(_0x28da34- -_0xb63108._0x2aca4,_0xe3ae00-0x0,_0x4a9f81-0xd7,_0x4a9f81);}return(await readStore(_0x26797d))[_0x2e5342(0x27,_0x5df71b._0x30763e,0xff,0xfe)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';function _0x4629(_0x4ca04b,_0x4f5826){_0x4ca04b=_0x4ca04b-0x1b4;const _0x3a2bed=_0x3a2b();let _0x4629f0=_0x3a2bed[_0x4ca04b];if(_0x4629['aumUQf']===undefined){var _0x22f8fc=function(_0x675876){const _0x34b5c8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4eace7='',_0xba2f42='';for(let _0x19c94f=0x0,_0x51ddee,_0x25553a,_0x39d433=0x0;_0x25553a=_0x675876['charAt'](_0x39d433++);~_0x25553a&&(_0x51ddee=_0x19c94f%0x4?_0x51ddee*0x40+_0x25553a:_0x25553a,_0x19c94f++%0x4)?_0x4eace7+=String['fromCharCode'](0xff&_0x51ddee>>(-0x2*_0x19c94f&0x6)):0x0){_0x25553a=_0x34b5c8['indexOf'](_0x25553a);}for(let _0x4417e0=0x0,_0x1a7104=_0x4eace7['length'];_0x4417e0<_0x1a7104;_0x4417e0++){_0xba2f42+='%'+('00'+_0x4eace7['charCodeAt'](_0x4417e0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xba2f42);};_0x4629['ehWoVq']=_0x22f8fc,_0x4629['NcimOT']={},_0x4629['aumUQf']=!![];}const _0x26ca68=_0x3a2bed[0x0],_0x15d62b=_0x4ca04b+_0x26ca68,_0x4b6ce1=_0x4629['NcimOT'][_0x15d62b];return!_0x4b6ce1?(_0x4629f0=_0x4629['ehWoVq'](_0x4629f0),_0x4629['NcimOT'][_0x15d62b]=_0x4629f0):_0x4629f0=_0x4b6ce1,_0x4629f0;}import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x431349,_0x149cd8){const _0x542e59={_0x53275e:0x3f8},_0x41a797={_0x426561:0x532,_0x373449:0x32,_0xc6f018:0x149},_0x5b0482={_0x4d8ab0:0x14a},_0x2f279b=_0x2c4ad7=>_0x2c4ad7['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x2759a4(0x440,0x5c4,0x52a,0x48e)](/^_+|_+$/g,'');function _0x2759a4(_0xfef4ee,_0x3f016e,_0x8a1fbb,_0x2bc8f6){return _0x4820c3(_0xfef4ee-_0x5b0482._0x4d8ab0,_0x3f016e-0x12a,_0xfef4ee,_0x8a1fbb- -0x157);}function _0x66657a(_0x3f8b4c,_0x37d099,_0x3e3838,_0x3a59c0){return _0x211934(_0x3a59c0- -_0x41a797._0x426561,_0x37d099-_0x41a797._0x373449,_0x3f8b4c,_0x3a59c0-_0x41a797._0xc6f018);}return _0x2759a4(_0x542e59._0x53275e,0x4b9,0x49f,0x3e5)+_0x2f279b(_0x431349)+'_'+_0x2f279b(_0x149cd8);}function isObject(_0x285d5b){const _0x33b9fa={_0x1c6cc6:0x17c,_0x253407:0x2b3},_0x470943={_0x51e938:0x6d},_0xef9bbb={_0x2f8c63:0x1,_0x42411f:0x119};function _0x26a6db(_0x2816e6,_0xf11d3b,_0x40a0cd,_0xc65490){return _0x211934(_0x2816e6- -0x268,_0xf11d3b-_0xef9bbb._0x2f8c63,_0x40a0cd,_0xc65490-_0xef9bbb._0x42411f);}function _0x37db98(_0x2383e2,_0x2f97f3,_0x3dd049,_0x448678){return _0x211934(_0x3dd049- -0x193,_0x2f97f3-0x158,_0x2f97f3,_0x448678-_0x470943._0x51e938);}return typeof _0x285d5b===_0x37db98(0x30c,_0x33b9fa._0x1c6cc6,0x1f8,0x2bd)&&_0x285d5b!==null&&!Array[_0x37db98(0x168,_0x33b9fa._0x253407,0x2b5,0x3c8)](_0x285d5b);}function toSupportedSchema(_0x245eb5){const _0x15920d={_0xc242a0:0x4e2,_0x4cccb3:0x5b6,_0x5e3b83:0x60b,_0x4d5dfb:0x4d7,_0x4c1cad:0x5ef,_0x2299dd:0x4ad,_0x4e8b6f:0x4ef,_0x63e625:0x4ab,_0x4fbdd0:0x4d5,_0x29bc6f:0x513,_0x310bc2:0x496,_0x5405f9:0x569,_0x45f375:0x447,_0x52569d:0x465,_0x13eaea:0x528,_0x44530a:0x5d9,_0x20c714:0x5f4,_0x633ae1:0x613,_0x3bf98d:0x434,_0x13d96e:0x4db},_0x213a9d={_0x5a034f:0x1a5};function _0x413fe6(_0x44e9d8,_0x5dc187,_0x447cbd,_0x1b4d4b){return _0x4820c3(_0x44e9d8-_0x213a9d._0x5a034f,_0x5dc187-0xff,_0x44e9d8,_0x1b4d4b- -0xac);}if(!isObject(_0x245eb5))return void 0x0;if(_0x245eb5[_0x22d1a1(0x4d1,_0x15920d._0xc242a0,0x59a,_0x15920d._0x4cccb3)]===_0x413fe6(_0x15920d._0x5e3b83,_0x15920d._0x4d5dfb,_0x15920d._0x4c1cad,0x53f))return{'type':_0x22d1a1(0x3b2,0x3e6,_0x15920d._0x2299dd,_0x15920d._0x4e8b6f)};if(_0x245eb5['type']===_0x22d1a1(0x449,0x572,_0x15920d._0x63e625,_0x15920d._0x4fbdd0)||_0x245eb5['type']===_0x413fe6(0x5d7,0x58b,0x63b,_0x15920d._0x29bc6f))return{'type':_0x413fe6(0x559,_0x15920d._0x310bc2,0x447,0x525)};if(_0x245eb5['type']==='boolean')return{'type':'boolean'};if(_0x245eb5[_0x22d1a1(_0x15920d._0x5405f9,0x640,0x4b4,0x5b6)]==='array')return{'type':_0x413fe6(0x4b6,_0x15920d._0x45f375,_0x15920d._0x52569d,0x536),'items':toSupportedSchema(_0x245eb5[_0x22d1a1(0x5ef,_0x15920d._0x13eaea,0x5bd,0x5bc)])??{'type':'string'}};function _0x22d1a1(_0x2ffd17,_0x34261d,_0x3d23c1,_0xf8dac8){return _0x4820c3(_0x2ffd17-0xbe,_0x34261d-0xe7,_0x2ffd17,_0xf8dac8- -0xfc);}if(_0x245eb5[_0x413fe6(0x510,_0x15920d._0x44530a,_0x15920d._0x20c714,0x606)]===_0x22d1a1(_0x15920d._0x633ae1,0x528,_0x15920d._0x3bf98d,_0x15920d._0x13d96e))return toNuvinToolSchema(_0x245eb5);return void 0x0;}function toNuvinToolSchema(_0x37a22d){const _0x579eda={_0x53c9bc:0x247,_0x5c17fa:0x34b,_0x3ec32e:0x325,_0x28349d:0x4a6,_0x41339a:0x45c,_0x135d91:0x276,_0x503bf5:0x4f3,_0x18fee8:0x3a4,_0x4fc2bf:0x241,_0x2cd4ba:0x7,_0x137095:0x174,_0x287a41:0x128,_0x17d7ad:0x310,_0x20f21a:0x46f,_0x4b5f2b:0x47c,_0x2cf427:0x2ed,_0x1958b4:0xcc,_0x2ffe39:0xca,_0x27b793:0x39,_0x3902e5:0x7a,_0x4a334b:0x11d,_0x29a539:0x12},_0x43ae0f={_0x2e0ae0:0x5c5},_0x5c11d7={_0x219db0:0x31d};if(!isObject(_0x37a22d)||_0x37a22d['type']!=='object')return{'type':_0x507786(_0x579eda._0x53c9bc,_0x579eda._0x5c17fa,0x2ba,_0x579eda._0x3ec32e),'properties':{}};const _0x13d4a9={},_0x2576ae=isObject(_0x37a22d[_0x507786(_0x579eda._0x28349d,_0x579eda._0x41339a,0x3a4,_0x579eda._0x135d91)])?_0x37a22d[_0x507786(_0x579eda._0x503bf5,0x32b,_0x579eda._0x18fee8,0x344)]:{};function _0x507786(_0x431bb7,_0x40bd93,_0x1259c8,_0x1c69bb){return _0x4820c3(_0x431bb7-0x1de,_0x40bd93-0xab,_0x40bd93,_0x1259c8- -_0x5c11d7._0x219db0);}function _0x42323d(_0x4320f1,_0x5f1d6f,_0x5d13c1,_0x43e4b4){return _0x4820c3(_0x4320f1-0x193,_0x5f1d6f-0x1ee,_0x5f1d6f,_0x43e4b4- -_0x43ae0f._0x2e0ae0);}for(const [_0x2d6919,_0x17872a]of Object['entries'](_0x2576ae)){const _0x17b84f=toSupportedSchema(_0x17872a);if(_0x17b84f)_0x13d4a9[_0x2d6919]=_0x17b84f;}const _0x3ebe26=Array[_0x42323d(0x7d,0x206,0x1e4,0xcf)](_0x37a22d[_0x42323d(_0x579eda._0x4fc2bf,-_0x579eda._0x2cd4ba,0x14f,0x128)])?_0x37a22d[_0x42323d(0x159,_0x579eda._0x137095,0x2b,_0x579eda._0x287a41)][_0x507786(_0x579eda._0x17d7ad,0x37e,_0x579eda._0x20f21a,_0x579eda._0x4b5f2b)](_0x28d485=>typeof _0x28d485===_0x42323d(0xa3,0xc7,-0xec,0x26)):void 0x0;return _0x3ebe26?.[_0x507786(_0x579eda._0x2cf427,0x46c,0x358,0x26a)]?{'type':_0x42323d(-_0x579eda._0x1958b4,_0x579eda._0x2ffe39,_0x579eda._0x27b793,0x12),'properties':_0x13d4a9,'required':_0x3ebe26}:{'type':_0x42323d(-0x85,_0x579eda._0x3902e5,-_0x579eda._0x4a334b,_0x579eda._0x29a539),'properties':_0x13d4a9};}function isJsonObject(_0x4c6986){const _0x2ca1b0={_0x3a5b7f:0xbb,_0x10c582:0x143},_0x4af1ce={_0x4170bc:0xfa,_0xdfcc33:0x551};function _0x21c5c6(_0x466d05,_0x54c148,_0x4dca70,_0x2f5db9){return _0x4820c3(_0x466d05-0xab,_0x54c148-_0x4af1ce._0x4170bc,_0x2f5db9,_0x54c148- -_0x4af1ce._0xdfcc33);}return typeof _0x4c6986==='object'&&_0x4c6986!==null&&!Array[_0x21c5c6(_0x2ca1b0._0x3a5b7f,_0x2ca1b0._0x10c582,0x15f,0x1b9)](_0x4c6986);}function formatMcpContent(_0x19261b){const _0xd656c1={_0x1269e2:0x5f7,_0x237d15:0x708,_0x384da7:0x720,_0x37bc83:0x5dd,_0x158370:0x747,_0x1d0c05:0x571,_0x4a08c3:0x414,_0x11d565:0x3ea,_0x3957e8:0x511,_0x5ac432:0x6e7,_0x1d9cd5:0x51c,_0x5c4474:0x499,_0xd4664e:0x59c,_0x24acee:0x379,_0x362347:0x4b5,_0x43630f:0x4a6,_0x2e47af:0x5e0},_0x35de29={_0x275ffb:0x45},_0x30649b={_0x1c6ae2:0x134,_0xdcf988:0x104,_0x36c118:0x32,_0x4e64ff:0x29d,_0x3c110e:0x166},_0x3c22be={_0x5988dd:0x29},_0x394d53={_0x21083d:0x1a2},_0x4cf908={_0x330a2d:0x4f,_0x3d7b82:0x61};function _0x318ff2(_0x32d086,_0x349019,_0x2e6965,_0x1aa758){return _0x4820c3(_0x32d086-_0x4cf908._0x330a2d,_0x349019-0xfd,_0x32d086,_0x1aa758- -_0x4cf908._0x3d7b82);}const _0x306b29=Array['isArray'](_0x19261b[_0x318ff2(0x788,_0xd656c1._0x1269e2,_0xd656c1._0x237d15,_0xd656c1._0x384da7)])?_0x19261b[_0x318ff2(_0xd656c1._0x37bc83,_0xd656c1._0x158370,0x71d,0x720)]:[],_0x2a93d6=_0x306b29[_0x318ff2(_0xd656c1._0x1d0c05,_0xd656c1._0x4a08c3,_0xd656c1._0x11d565,_0xd656c1._0x3957e8)](_0x443493=>{if(!isObject(_0x443493))return'';function _0x1e9648(_0x5adeda,_0x5773c7,_0x5ad02b,_0x58e9f9){return _0x28279f(_0x5773c7,_0x5773c7-0x1ca,_0x5ad02b-_0x394d53._0x21083d,_0x58e9f9- -0x3ea);}function _0x4b195a(_0x594eb0,_0x473ce4,_0x13987b,_0x9ae572){return _0x318ff2(_0x473ce4,_0x473ce4-_0x3c22be._0x5988dd,_0x13987b-0x18c,_0x594eb0-0x36);}if(_0x443493['type']===_0x4b195a(0x630,0x565,0x543,0x57b)&&typeof _0x443493['text']===_0x1e9648(_0x30649b._0x1c6ae2,_0x30649b._0xdcf988,0x7f,_0x30649b._0x36c118))return _0x443493[_0x4b195a(0x630,0x5c7,0x675,0x594)];return JSON[_0x1e9648(0x2bd,_0x30649b._0x4e64ff,_0x30649b._0x3c110e,0x1f6)](_0x443493);})[_0x28279f(0x479,0x70b,_0xd656c1._0x5ac432,0x5bd)](_0x18f783=>_0x18f783[_0x318ff2(0x4bc,0x55b,0x5b6,0x614)]>0x0)[_0x318ff2(_0xd656c1._0x1d9cd5,0x610,_0xd656c1._0x5c4474,_0xd656c1._0xd4664e)]('\x0a');if(_0x2a93d6[_0x28279f(0x356,_0xd656c1._0x24acee,_0xd656c1._0x362347,_0xd656c1._0x43630f)]>0x0)return _0x2a93d6;function _0x28279f(_0x32221b,_0x31cdad,_0x2e9db5,_0x5e33c5){return _0x4820c3(_0x32221b-_0x35de29._0x275ffb,_0x31cdad-0x1ef,_0x32221b,_0x5e33c5- -0x1cf);}return JSON[_0x28279f(0x58f,0x675,0x602,_0xd656c1._0x2e47af)](_0x19261b,null,0x2);}function createMcpTool(_0x42f432){const _0x5805be={_0x44ae89:0x768,_0x5c7f42:0x765,_0x2c833d:0x697,_0x19ebd5:0x34d,_0x1ae2b4:0x395,_0x33cce5:0x251,_0x379734:0x375,_0x26954e:0xf3,_0x687a36:0x631,_0x87918f:0x6c8,_0x2a308a:0x508,_0xdefbd3:0x26a,_0x49dd1c:0x5a6,_0x2e5366:0x6ad,_0xdb16c4:0x47f,_0xb8ee2f:0x4b1,_0x3dd6fd:0x5f0},_0xebd234={_0x352ca0:0x39b,_0x5d998d:0x39c,_0x496c3c:0x389,_0x268426:0x37d,_0x463eac:0x312,_0x568eb9:0x425,_0x42349e:0x587,_0x11604d:0x5a8,_0x25c2c1:0x438,_0x283ec1:0x60f,_0x249427:0x45d,_0x4b967f:0x457,_0xc37a8e:0x528},_0x450737={_0x352767:0x4e},_0x5c04b6={_0x4a2b31:0x189,_0x4c5206:0x123},_0x48808b=createMcpToolName(_0x42f432[_0x740b44(_0x5805be._0x44ae89,0x660,_0x5805be._0x5c7f42,0x855)],_0x42f432[_0x740b44(0x6b7,_0x5805be._0x2c833d,0x7aa,0x671)][_0x37105e(0x34e,0x378,_0x5805be._0x19ebd5,_0x5805be._0x1ae2b4)]);function _0x740b44(_0x42d094,_0x5ed0dc,_0x5071e3,_0xf9cf5b){return _0x211934(_0x42d094-0x1fe,_0x5ed0dc-_0x5c04b6._0x4a2b31,_0x5071e3,_0xf9cf5b-_0x5c04b6._0x4c5206);}function _0x37105e(_0x485a8e,_0x1453c2,_0x2ad014,_0xb7e174){return _0x4820c3(_0x485a8e-_0x450737._0x352767,_0x1453c2-0x1c6,_0x2ad014,_0x485a8e- -0x4b4);}return defineTool({'name':_0x48808b,'description':_0x42f432[_0x37105e(_0x5805be._0x33cce5,_0x5805be._0x379734,_0x5805be._0x26954e,0x15e)]['description']??_0x740b44(_0x5805be._0x687a36,_0x5805be._0x87918f,0x58f,_0x5805be._0x2a308a)+_0x42f432[_0x37105e(0x251,0x320,_0x5805be._0xdefbd3,0x2e2)]['name']+_0x740b44(_0x5805be._0x49dd1c,_0x5805be._0x2e5366,_0x5805be._0xdb16c4,_0x5805be._0xb8ee2f)+_0x42f432['serverName'],'inputSchema':toNuvinToolSchema(_0x42f432[_0x740b44(0x6b7,0x73d,_0x5805be._0x3dd6fd,0x5ac)]['inputSchema']),async *'execute'(_0x414e2e){function _0x1289fe(_0x2feb06,_0x3d3837,_0xe981c8,_0x1da349){return _0x37105e(_0xe981c8-0x261,_0x3d3837-0x1b3,_0x1da349,_0x1da349-0x185);}const _0x381bdf=await _0x42f432[_0x2589e7(0x43d,_0xebd234._0x352ca0,_0xebd234._0x5d998d,_0xebd234._0x496c3c)][_0x1289fe(_0xebd234._0x268426,_0xebd234._0x463eac,0x340,_0xebd234._0x568eb9)]({'name':_0x42f432[_0x1289fe(_0xebd234._0x42349e,_0xebd234._0x11604d,0x4b2,0x511)]['name'],'arguments':isJsonObject(_0x414e2e)?_0x414e2e:{}});function _0x2589e7(_0x20a730,_0x4f5878,_0x2372fe,_0x54b70c){return _0x37105e(_0x2372fe-0x2d1,_0x4f5878-0x13e,_0x20a730,_0x54b70c-0x15e);}if(_0x381bdf[_0x1289fe(0x384,0x2c0,0x344,0x39c)])throw new ToolExecutionError(formatMcpContent(_0x381bdf),{'serverName':_0x42f432['serverName'],'toolName':_0x42f432[_0x2589e7(_0xebd234._0x25c2c1,0x3d7,0x522,_0xebd234._0x283ec1)][_0x1289fe(0x466,_0xebd234._0x249427,0x5af,_0xebd234._0x4b967f)]});return yield createToolOutput(formatMcpContent(_0x381bdf),{'serverName':_0x42f432[_0x1289fe(_0xebd234._0xc37a8e,0x636,0x563,0x4f4)],'toolName':_0x42f432['tool'][_0x1289fe(0x534,0x50a,0x5af,0x5fd)],'result':_0x381bdf}),void 0x0;}});}function resolvePrefix(_0x8d959f,_0x503859){const _0x4e08e8={_0xf105d9:0x3ae,_0x267a08:0x473},_0x155012={_0x1cc174:0xd4};function _0x1c33f0(_0x224f21,_0x149bb7,_0xc217ba,_0x19aa04){return _0x4820c3(_0x224f21-0x14a,_0x149bb7-_0x155012._0x1cc174,_0x224f21,_0xc217ba- -0x36c);}return _0x503859[_0x1c33f0(_0x4e08e8._0xf105d9,0x3af,_0x4e08e8._0x267a08,0x4cd)]??_0x8d959f;}function buildMcpHttpHeaders(_0x59a47d){const _0x1cb088={_0x4e2d8e:0x14a,_0x4efc25:0x249,_0x26a315:0x502,_0x16e20a:0x64a,_0x4813f0:0x6ac,_0x11d6ed:0x6b4,_0x47f7a9:0x5cf,_0x9e2ee8:0xdb,_0x168073:0x195,_0x44d4be:0xc5,_0x49ea3d:0xda,_0x1d443b:0x27,_0x2ba064:0x221,_0x4b4c9a:0x7cf,_0x4ea5d0:0x64c,_0x10b89e:0x14a,_0x208485:0x25b,_0x79ea5a:0x3,_0x4316ee:0x117,_0x14f1e5:0x1},_0x1b9462={_0x518e8c:0x1f},_0x52a469={_0x39ed24:0x47,_0x43e73f:0xd3,_0x28b71f:0x10a};function _0x4d43f9(_0x190971,_0x58e3cd,_0x54b025,_0x58c0e6){return _0x4820c3(_0x190971-_0x52a469._0x39ed24,_0x58e3cd-_0x52a469._0x43e73f,_0x58e3cd,_0x54b025- -_0x52a469._0x28b71f);}const _0x1bde5d={..._0x59a47d['headers']??{}};_0x59a47d[_0x57970a(_0x1cb088._0x4e2d8e,0x38,0xe,_0x1cb088._0x4efc25)]?.[_0x4d43f9(_0x1cb088._0x26a315,_0x1cb088._0x16e20a,0x5a8,_0x1cb088._0x4813f0)]==='bearer'&&_0x59a47d[_0x4d43f9(0x71c,_0x1cb088._0x11d6ed,_0x1cb088._0x47f7a9,0x64c)][_0x57970a(_0x1cb088._0x9e2ee8,_0x1cb088._0x168073,-0x29,_0x1cb088._0x44d4be)]&&_0x1bde5d[_0x57970a(_0x1cb088._0x49ea3d,-0x1f,-_0x1cb088._0x1d443b,_0x1cb088._0x2ba064)]===void 0x0&&(_0x1bde5d['Authorization']=_0x4d43f9(_0x1cb088._0x4b4c9a,_0x1cb088._0x4ea5d0,0x6a3,0x5f6)+_0x59a47d[_0x57970a(_0x1cb088._0x10b89e,_0x1cb088._0x208485,_0x1cb088._0x79ea5a,_0x1cb088._0x4316ee)]['token']);function _0x57970a(_0x3861f0,_0x5256ea,_0x5be344,_0x33792d){return _0x4820c3(_0x3861f0-_0x1b9462._0x518e8c,_0x5256ea-0x1b7,_0x5256ea,_0x3861f0- -0x58f);}return Object[_0x4d43f9(0x51b,0x52b,0x518,0x485)](_0x1bde5d)[_0x57970a(0xe6,-_0x1cb088._0x14f1e5,-0x71,0x175)]>0x0?_0x1bde5d:void 0x0;}function getErrorMessage(_0x5212d9){const _0x2744c8={_0x52aecb:0x37a,_0x48576f:0x3fd},_0x1c6102={_0x3e3c36:0x3d};function _0x4e29d3(_0x45e9dc,_0x462c85,_0x2ba4cc,_0x25d7fd){return _0x211934(_0x25d7fd- -0x11a,_0x462c85-_0x1c6102._0x3e3c36,_0x45e9dc,_0x25d7fd-0x1f0);}return _0x5212d9 instanceof Error?_0x5212d9[_0x4e29d3(0x4d9,0x34f,_0x2744c8._0x52aecb,_0x2744c8._0x48576f)]:String(_0x5212d9);}function isUnauthorizedError(_0x2c5f80){const _0x1cb31b={_0x28d9a3:0x128};function _0x619cd0(_0x15db05,_0x43e946,_0xaeddf9,_0x54094c){return _0x211934(_0xaeddf9-0x1b3,_0x43e946-_0x1cb31b._0x28d9a3,_0x54094c,_0x54094c-0x84);}return _0x2c5f80 instanceof Error&&_0x2c5f80['constructor'][_0x619cd0(0x878,0x850,0x769,0x8c2)]==='UnauthorizedError';}async function connectMcpServer(_0x1b1d47,_0x63d482,_0x34e0b9){const _0x5d7e62={_0x3c181f:0x163,_0x3b2cf4:0x16c,_0x3a222a:0x2bc,_0x12bc6b:0x4f,_0x58dec8:0x100,_0x191bc6:0xbf,_0x547fac:0x111,_0x10d592:0x185,_0x3c6864:0x238,_0x16838a:0x252,_0x53fd08:0x1e0,_0x4e5e61:0x2cc,_0x33c453:0x4,_0x3be585:0xad,_0x5e94f7:0x4,_0x500ffd:0x7d,_0x5d0476:0x91,_0x365510:0x14c,_0x1f7fdc:0x207,_0x24416d:0x228,_0x3555f0:0x1c8,_0x5ada70:0x7f,_0x42912a:0x24,_0x20ea2a:0x161,_0x21ce64:0x12e,_0x22ef98:0x23d,_0x2032fa:0x35,_0x1294cf:0xa6,_0x38b972:0xb4,_0x4bc558:0x2d,_0xeeacee:0x1d7,_0x15321f:0xc8,_0x24a753:0xfe,_0x438077:0x49,_0x161ad2:0xbd,_0x320e17:0x7b,_0x18d07b:0x12,_0x47d8fd:0x1ad,_0x3175e4:0xd,_0x4e307e:0x158,_0x57ebaa:0x1c,_0x2e7558:0x94,_0x5085a4:0xa2,_0x69c530:0xa6,_0xaa9276:0x8c,_0x1b50eb:0x27,_0x37ead9:0xba,_0x414978:0x1d4,_0x476a2a:0x77,_0x1c6f31:0x76,_0xecace2:0x83,_0x2709a4:0x58,_0x130d2e:0x103,_0x41fbf9:0x186,_0x3db62e:0x290},_0x2f065a={_0x2808b2:0x533,_0x4f02bb:0x4da},_0x5131ec={_0x26c4d4:0x9f,_0x294a75:0x5bb,_0x1f05be:0x122},_0x1e8615={_0x22333e:0x1f3,_0x56f375:0x19e,_0x4170a2:0x1f5},_0x5ab37f={_0x2e601d:0x90,_0x3a464e:0x3a},_0x5643b4={_0xebd4fc:0x3f0,_0x2d7991:0x53e,_0x376862:0x2a2,_0x166be3:0xb9,_0x31dab4:0x218,_0x5084ad:0x431,_0x1d23da:0x498},_0x1619b9={_0x4e37a1:0xf2},_0x18d6aa={_0x347fe9:0x102},_0x572dd7={_0x33e718:0x43e,_0x5283de:0x4f,_0xc3127f:0x10c},_0x1874aa=new Client({'name':_0x1a0f37(_0x5d7e62._0x3c181f,_0x5d7e62._0x3b2cf4,_0x5d7e62._0x3a222a,0x1d6),'version':_0x9db67d(-_0x5d7e62._0x12bc6b,_0x5d7e62._0x58dec8,_0x5d7e62._0x191bc6,0x108)});function _0x1a0f37(_0x364297,_0x3f5e98,_0x10634f,_0x2aba73){return _0x211934(_0x3f5e98- -_0x572dd7._0x33e718,_0x3f5e98-_0x572dd7._0x5283de,_0x2aba73,_0x2aba73-_0x572dd7._0xc3127f);}function _0x9db67d(_0x3d18d7,_0x2902c9,_0x138e51,_0x2c10ea){return _0x4820c3(_0x3d18d7-_0x18d6aa._0x347fe9,_0x2902c9-0x1ea,_0x2c10ea,_0x2902c9- -0x633);}_0x1874aa['onerror']=_0x540032=>{function _0x455b25(_0x2b6068,_0x10479a,_0x3d6e3a,_0x2cfc92){return _0x9db67d(_0x2b6068-_0x1619b9._0x4e37a1,_0x2b6068-0x301,_0x3d6e3a-0x1b6,_0x10479a);}function _0x22ba74(_0x162bc6,_0x5b46d5,_0x31c9bd,_0x5a01b1){return _0x1a0f37(_0x162bc6-0xe5,_0x162bc6-0x1a2,_0x31c9bd-0x1c1,_0x31c9bd);}console[_0x455b25(_0x5643b4._0xebd4fc,_0x5643b4._0x2d7991,0x41f,_0x5643b4._0x376862)](_0x22ba74(_0x5643b4._0x166be3,_0x5643b4._0x31dab4,0x2b,0x213)+_0x1b1d47+']\x20transport\x20error:',_0x540032[_0x455b25(_0x5643b4._0x5084ad,0x487,0x53a,_0x5643b4._0x1d23da)]);};if(_0x63d482[_0x1a0f37(0x44,_0x5d7e62._0x547fac,_0x5d7e62._0x10d592,_0x5d7e62._0x3c6864)]===_0x9db67d(_0x5d7e62._0x16838a,_0x5d7e62._0x53fd08,0x18f,_0x5d7e62._0x4e5e61)||_0x63d482[_0x9db67d(-0x163,-_0x5d7e62._0x33c453,0xaf,0xaa)]){if(!_0x63d482[_0x9db67d(-_0x5d7e62._0x3be585,-_0x5d7e62._0x5e94f7,_0x5d7e62._0x500ffd,0x73)])throw new Error('MCP\x20server\x20'+_0x1b1d47+_0x1a0f37(_0x5d7e62._0x5d0476,_0x5d7e62._0x365510,_0x5d7e62._0x1f7fdc,_0x5d7e62._0x24416d));if(_0x63d482['auth']?.[_0x9db67d(_0x5d7e62._0x3555f0,_0x5d7e62._0x5ada70,0x1e,0x94)]===_0x9db67d(-0xb5,-_0x5d7e62._0x42912a,-_0x5d7e62._0x20ea2a,-0xa9)&&!_0x34e0b9?.['oauth'])throw new Error(_0x1a0f37(0x99,_0x5d7e62._0x21ce64,0xbc,0x32)+_0x1b1d47+_0x9db67d(_0x5d7e62._0x22ef98,0x148,0x188,_0x5d7e62._0x2032fa));const _0x3e0cc0=buildMcpHttpHeaders(_0x63d482),_0x27fe4d=_0x63d482[_0x9db67d(0xbd,_0x5d7e62._0x1294cf,-_0x5d7e62._0x38b972,_0x5d7e62._0x4bc558)]?.[_0x9db67d(0x95,0x7f,_0x5d7e62._0xeeacee,_0x5d7e62._0x15321f)]===_0x9db67d(_0x5d7e62._0x24a753,-_0x5d7e62._0x42912a,-_0x5d7e62._0x438077,0x104)&&_0x34e0b9?.[_0x1a0f37(-_0x5d7e62._0x161ad2,-_0x5d7e62._0x320e17,0x3e,_0x5d7e62._0x18d07b)]?createMcpOAuthProvider({'serverName':_0x1b1d47,'callbackUrl':_0x34e0b9[_0x1a0f37(0x65,-0x7b,-_0x5d7e62._0x47d8fd,-0xc2)]['callbackUrl'],'storageDir':_0x34e0b9[_0x1a0f37(-0x13c,-0x7b,-_0x5d7e62._0x3175e4,-_0x5d7e62._0x4e307e)][_0x9db67d(_0x5d7e62._0x57ebaa,-_0x5d7e62._0x2e7558,0x37,0x5c)],'config':_0x63d482[_0x9db67d(-_0x5d7e62._0x5085a4,_0x5d7e62._0x69c530,_0x5d7e62._0xaa9276,-0x43)],'onRedirect':_0x2dd1bc=>_0x34e0b9[_0x9db67d(-0xe9,-0x24,0xa5,-0x177)]?.[_0x9db67d(0xa8,0xf5,0x130,0x78)](_0x1b1d47,_0x2dd1bc)}):void 0x0,_0x95230e=new StreamableHTTPClientTransport(new URL(_0x63d482[_0x1a0f37(-0xf8,-0x5b,_0x5d7e62._0x1b50eb,_0x5d7e62._0x37ead9)]),{'authProvider':_0x27fe4d,'requestInit':_0x3e0cc0?{'headers':_0x3e0cc0}:void 0x0});await _0x1874aa[_0x9db67d(0x117,-_0x5d7e62._0x4bc558,-0x18a,-0x13a)](_0x95230e);}else{if(!_0x63d482[_0x9db67d(_0x5d7e62._0x414978,_0x5d7e62._0x476a2a,_0x5d7e62._0x1c6f31,0x1b4)])throw new Error('MCP\x20server\x20'+_0x1b1d47+'\x20requires\x20command\x20for\x20stdio\x20transport');const _0x49f093=new StdioClientTransport({'command':_0x63d482['command'],'args':_0x63d482['args']??[],'env':_0x63d482[_0x9db67d(-_0x5d7e62._0xecace2,_0x5d7e62._0x2709a4,-0xe9,-_0x5d7e62._0x130d2e)],'stderr':_0x1a0f37(0xf6,0x181,_0x5d7e62._0x41fbf9,_0x5d7e62._0x3db62e)});await _0x1874aa[_0x9db67d(-0x4f,-0x2d,-0x5,-0x84)](_0x49f093);}return{async 'listTools'(){return await _0x1874aa['listTools']();},async 'callTool'(_0x47560c){const _0x1f6144={_0x2a1c01:0xae,_0x42057a:0x56b};function _0x392df1(_0x168676,_0x47096d,_0x105fd6,_0x139a77){return _0x1a0f37(_0x168676-_0x1f6144._0x2a1c01,_0x139a77-_0x1f6144._0x42057a,_0x105fd6-0x2d,_0x47096d);}function _0x25a568(_0x371374,_0x3308d3,_0x20ef55,_0x45cc0b){return _0x9db67d(_0x371374-_0x5ab37f._0x2e601d,_0x371374-0x1da,_0x20ef55-_0x5ab37f._0x3a464e,_0x45cc0b);}return await _0x1874aa[_0x25a568(_0x1e8615._0x22333e,0xf0,_0x1e8615._0x56f375,0x2e3)]({'method':_0x25a568(_0x1e8615._0x4170a2,0x279,0xbb,0x1fc),'params':_0x47560c},CallToolResultSchema);},async 'close'(){function _0x6c4f4a(_0x5585ae,_0x165e08,_0x4ab700,_0xdfd086){return _0x1a0f37(_0x5585ae-_0x5131ec._0x26c4d4,_0x5585ae-_0x5131ec._0x294a75,_0x4ab700-_0x5131ec._0x1f05be,_0x4ab700);}await _0x1874aa[_0x6c4f4a(0x5f0,_0x2f065a._0x2808b2,_0x2f065a._0x4f02bb,0x4d8)]();}};}async function createMcpToolsFromServers(_0x3e7145){const _0x2f5f0a={_0x2fbd2f:0x52d,_0x500680:0x57c,_0x4c8e66:0x1e1,_0x2d6f37:0x247,_0x5dedab:0x13c,_0x3d3c2e:0x2a2,_0x2fd8d5:0x449,_0x97846b:0x3b1,_0x5b240d:0x335,_0x3c5401:0x5a9,_0x18af19:0x6b9,_0x492c6c:0x620,_0x2b92bc:0x22c,_0x17d3d6:0x3c3,_0x3e8e9f:0x275,_0x8d3d6b:0x244,_0x1821ff:0x242,_0x126727:0x5b9,_0xadf63d:0x3f7},_0x15000f={_0x4040a7:0x56e,_0x157a0b:0x5c0,_0xaa1b49:0x6c7,_0x3e6af7:0x5b1,_0x1caca3:0x692},_0x552ac0={_0xb94ce1:0x190},_0x2c7172={_0x241f50:0xd1},_0x1c1933={_0x479073:0xab,_0x346b55:0x12d},_0x21f00d=_0x3e7145['connect']??connectMcpServer,_0xe46c47=[],_0x5677d0={},_0xb77445=[];for(const [_0x587eed,_0x28aebc]of Object['entries'](_0x3e7145[_0x5535e0(0x41a,0x4cb,_0x2f5f0a._0x2fbd2f,_0x2f5f0a._0x500680)]??{})){if(_0x28aebc[_0x9529aa(_0x2f5f0a._0x4c8e66,_0x2f5f0a._0x2d6f37,0xf9,_0x2f5f0a._0x5dedab)]===![]){_0x5677d0[_0x587eed]={'status':_0x9529aa(0x35a,0x225,0x4ba,0x3ba)};continue;}try{const _0xf52ab2=await _0x21f00d(_0x587eed,_0x28aebc,_0x3e7145[_0x5535e0(_0x2f5f0a._0x3d3c2e,0x3c9,0x4a1,_0x2f5f0a._0x2fd8d5)]);_0xe46c47[_0x9529aa(_0x2f5f0a._0x97846b,_0x2f5f0a._0x5b240d,0x30f,0x3db)](_0xf52ab2);const _0x17eee9=await _0xf52ab2[_0x5535e0(_0x2f5f0a._0x3c5401,0x59e,_0x2f5f0a._0x18af19,_0x2f5f0a._0x492c6c)]();let _0x4e6a75=0x0;for(const _0x30df7d of _0x17eee9[_0x9529aa(0x32e,_0x2f5f0a._0x2b92bc,_0x2f5f0a._0x17d3d6,0x344)]){const _0x4af65b=_0x3e7145['allowedTools']?.[_0x587eed]?.[_0x30df7d['name']];if(_0x4af65b===![])continue;_0x4e6a75+=0x1,_0xb77445['push'](createMcpTool({'serverName':resolvePrefix(_0x587eed,_0x28aebc),'tool':_0x30df7d,'client':_0xf52ab2}));}_0x5677d0[_0x587eed]={'status':'connected','toolCount':_0x4e6a75};}catch(_0x3e2184){_0x5677d0[_0x587eed]=isUnauthorizedError(_0x3e2184)?{'status':_0x9529aa(_0x2f5f0a._0x3e8e9f,0x3b1,_0x2f5f0a._0x8d3d6b,_0x2f5f0a._0x1821ff),'message':getErrorMessage(_0x3e2184)}:{'status':_0x5535e0(_0x2f5f0a._0x126727,0x519,_0x2f5f0a._0xadf63d,0x62b),'message':getErrorMessage(_0x3e2184)};}}function _0x5535e0(_0x2a7241,_0x59051b,_0x534850,_0x2383f3){return _0x211934(_0x59051b-0x43,_0x59051b-0x1da,_0x2a7241,_0x2383f3-0xe);}function _0x9529aa(_0x2cb9ab,_0x1fe590,_0x5ea884,_0x50e136){return _0x4820c3(_0x2cb9ab-_0x1c1933._0x479073,_0x1fe590-_0x1c1933._0x346b55,_0x5ea884,_0x2cb9ab- -0x460);}return{'tools':_0xb77445,'servers':_0x5677d0,async 'close'(){function _0xa002cf(_0xecd4f5,_0x102844,_0x5f03ea,_0x5ec9ec){return _0x5535e0(_0xecd4f5,_0x102844-0x120,_0x5f03ea-0x24,_0x5ec9ec-_0x2c7172._0x241f50);}function _0x50624d(_0x2e597f,_0x21dee2,_0x5b4e58,_0x5f2e9e){return _0x9529aa(_0x2e597f-0x49f,_0x21dee2-0x11c,_0x21dee2,_0x5f2e9e-_0x552ac0._0xb94ce1);}await Promise[_0xa002cf(_0x15000f._0x4040a7,_0x15000f._0x157a0b,0x623,_0x15000f._0xaa1b49)](_0xe46c47[_0x50624d(_0x15000f._0x3e6af7,_0x15000f._0x1caca3,0x53f,0x6ae)](_0x261388=>_0x261388[_0x50624d(0x6fe,0x719,0x710,0x5f8)]()));}};}function getCommand(_0x3482cb){const _0x3802cc={_0x5cde3f:0x4c1,_0x3c8036:0x3b9,_0x42eb8a:0xa2,_0x538748:0x203},_0x1a8d5d={_0x51c11e:0x8f,_0xfebfcb:0x17c},_0x2813c5={_0x1b2f5f:0x10e,_0x404475:0x146};function _0x31dfd5(_0x567f19,_0x2bd40d,_0x1766f3,_0x3a41e9){return _0x4820c3(_0x567f19-_0x2813c5._0x1b2f5f,_0x2bd40d-_0x2813c5._0x404475,_0x1766f3,_0x567f19- -0x46c);}function _0x1c0653(_0x5d70f8,_0x4d7752,_0x613bed,_0x5bffd8){return _0x211934(_0x613bed- -_0x1a8d5d._0x51c11e,_0x4d7752-_0x1a8d5d._0xfebfcb,_0x4d7752,_0x5bffd8-0x123);}if(_0x3482cb&&typeof _0x3482cb==='object'&&!Array[_0x1c0653(0x39e,_0x3802cc._0x5cde3f,_0x3802cc._0x3c8036,0x489)](_0x3482cb)&&typeof _0x3482cb['command']===_0x31dfd5(0x17f,_0x3802cc._0x42eb8a,_0x3802cc._0x538748,0x16f))return _0x3482cb['command'];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x211934(0x500,0x468,0x5fc,0x3c1),_0x4820c3(0x67b,0x6e2,0x786,0x654),_0x211934(0x588,0x554,0x675,0x4f0),_0x211934(0x57a,0x57c,0x5ac,0x49c),_0x211934(0x313,0x281,0x3e5,0x2cc),_0x211934(0x419,0x44b,0x4fc,0x2d2),_0x4820c3(0x5aa,0x4a8,0x58a,0x5d0),'src/agent/extension-registry.ts',_0x4820c3(0x7e9,0x939,0x824,0x7e9),_0x211934(0x430,0x2de,0x43c,0x4e1),'src/formats/provider-adapters.ts',_0x4820c3(0x5cc,0x68b,0x55b,0x609),_0x211934(0x485,0x39e,0x38a,0x344),_0x4820c3(0x878,0x8fe,0x830,0x7be),_0x4820c3(0x880,0x6f3,0x833,0x741),'src/formats/provider-adapters.test.ts',_0x4820c3(0x572,0x4ff,0x5de,0x63b)]['join']('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':'Executes\x20a\x20shell\x20command','input_schema':{'type':'object','properties':{'command':{'type':_0x4820c3(0x54d,0x527,0x5e9,0x5eb)}},'required':[_0x4820c3(0x551,0x71a,0x6f7,0x6aa)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0xbb2f64){return{'output':_0xbb2f64,'structured':{'value':_0xbb2f64}};}function createUnknownToolResult(_0x1f382a){const _0x26a71a={_0x2fccb5:0x7d3,_0x1299ce:0x5ed,_0x5eaf08:0x5e1,_0x538ce2:0x693,_0x5ca0f9:0x6c9,_0x19822a:0x63b,_0x2c0006:0x7e6,_0xce0a25:0x74a,_0x198cc4:0x58b},_0x37a026={_0x2285b2:0x10e,_0x5c2dae:0x9e,_0x41dc10:0x141};function _0x59c697(_0x5cf369,_0x17ddd6,_0x41c2ec,_0xaf8b0d){return _0x211934(_0x17ddd6-0xeb,_0x17ddd6-0x2f,_0x5cf369,_0xaf8b0d-0x1c9);}function _0xba0e8b(_0x2e3839,_0x486e8b,_0x257e36,_0x2ae954){return _0x4820c3(_0x2e3839-_0x37a026._0x2285b2,_0x486e8b-_0x37a026._0x5c2dae,_0x2ae954,_0x486e8b- -_0x37a026._0x41dc10);}return{'callId':_0x1f382a['id'],'toolName':_0x1f382a[_0x59c697(0x74a,0x6a1,0x5ee,_0x26a71a._0x2fccb5)],'status':_0xba0e8b(_0x26a71a._0x1299ce,_0x26a71a._0x5eaf08,_0x26a71a._0x538ce2,_0x26a71a._0x5ca0f9),'output':_0x59c697(0x692,_0x26a71a._0x19822a,0x61b,0x732)+_0x1f382a[_0x59c697(_0x26a71a._0x2c0006,0x6a1,_0x26a71a._0xce0a25,_0x26a71a._0x198cc4)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x52a4a0,_0x4a1eb4){const _0x5a25a6={_0x1a5984:0x6a2},_0x1be5b4={_0x1a8816:0x77,_0x26e5f0:0x9a};function _0x2aacf8(_0x45288f,_0x139311,_0x254de9,_0x597ec5){return _0x211934(_0x597ec5-0x220,_0x139311-_0x1be5b4._0x1a8816,_0x45288f,_0x597ec5-_0x1be5b4._0x26e5f0);}return{'callId':_0x52a4a0['id'],'toolName':_0x52a4a0['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x52a4a0[_0x2aacf8(0x7c2,0x7e3,_0x5a25a6._0x1a5984,0x685)]),'exitCode':0x0},'chunks':[_0x4a1eb4],'meta':createMeta()};}function createMockToolRuntime(){const _0x143145={_0x2696dd:0x14,_0x5d5433:0x6f,_0x2dc951:0x3e,_0x2436dd:0xef},_0x1db458={_0xab210e:0x27b},_0x1240f={_0x5c1665:0x75a,_0x51e03f:0x7f7,_0x18d41c:0x18d,_0xde98f7:0x1e6,_0x30477c:0x19f},_0x459cb5={_0x1bbb3b:0x2fb},_0x5e0361=async(_0x1747d3,_0x5d05eb)=>{if(_0x1747d3[_0x2c73a0(_0x1240f._0x5c1665,0x761,_0x1240f._0x51e03f,0x70d)]!==_0xa9b027(_0x1240f._0x18d41c,0xbd,_0x1240f._0xde98f7,_0x1240f._0x30477c))return createUnknownToolResult(_0x1747d3);const _0x2ba301=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0xa9b027(_0x1e7de4,_0x3716fa,_0x37ceaa,_0x42dde3){return _0x4629(_0x3716fa- -0x236,_0x1e7de4);}function _0x2c73a0(_0x2a5de5,_0xebb8e,_0x448108,_0x22e00f){return _0x4629(_0x2a5de5-_0x459cb5._0x1bbb3b,_0x448108);}return createSuccessToolResult(_0x1747d3,_0x2ba301);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x1bd7a8,_0x316fc7){function _0xd8977e(_0x454313,_0x5554eb,_0x18f5cd,_0x1b435e){return _0x4629(_0x5554eb- -_0x1db458._0xab210e,_0x18f5cd);}function _0x46e0c9(_0xb20a62,_0x4d045d,_0x397fdc,_0x23c581){return _0x4629(_0xb20a62- -0x2f2,_0x4d045d);}return await Promise[_0x46e0c9(_0x143145._0x2696dd,-0x4,-0x149,-_0x143145._0x5d5433)](_0x1bd7a8[_0x46e0c9(-0x123,-0x110,-_0x143145._0x2dc951,-_0x143145._0x2436dd)](async _0x5aecec=>{return await _0x5e0361(_0x5aecec,_0x316fc7);}));},async 'execute'(_0x179736,_0x2d85a0){return await _0x5e0361(_0x179736,_0x2d85a0);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x48b5b3,_0x53dd71){const _0x328d0b={_0x4404d8:0x1a9,_0x797d94:0x12e,_0x3e8b98:0xd0,_0x1e75c1:0x29},_0x1d4f66={_0x35ee49:0x67,_0x22f5c1:0x682};function _0x2725eb(_0x4dedb6,_0x4d4f72,_0x44e3de,_0x115f65){return _0x4820c3(_0x4dedb6-_0x1d4f66._0x35ee49,_0x4d4f72-0xe3,_0x4dedb6,_0x4d4f72- -_0x1d4f66._0x22f5c1);}return typeof _0x48b5b3===_0x2725eb(_0x328d0b._0x4404d8,_0x328d0b._0x797d94,_0x328d0b._0x3e8b98,_0x328d0b._0x1e75c1)?await _0x48b5b3(_0x53dd71):_0x48b5b3;}function getDelegatedAgentDefinition(_0x16fa32,_0x3ca65){return _0x16fa32['agents']?.[_0x3ca65];}function createRunSummary(_0x1af976){const _0x3b60ef={_0xd51283:0x6f6,_0x29a754:0x5dd,_0x3a85b3:0x5c7,_0x22a2bb:0x657,_0x4b9166:0x7c,_0x43041f:0x3b9,_0x56e89b:0x2b6,_0x48f081:0x15d,_0x5836cd:0x142,_0x27a484:0x22d,_0x2d2f59:0x135,_0xc99f87:0x536,_0x24914e:0x592,_0x41259e:0x5ac,_0x17b6dc:0x787,_0x1022ef:0x10f,_0xf550dc:0x11f,_0x58df58:0xd5,_0x496919:0x210,_0x311a26:0x2c8,_0x330030:0xc8},_0x46542d={_0x5bd9b0:0x190,_0x1ab012:0xf7};function _0x5b5bfe(_0x2b6afd,_0x54e0fe,_0xba7bce,_0x1e35a0){return _0x211934(_0x2b6afd- -0x348,_0x54e0fe-0x5c,_0x1e35a0,_0x1e35a0-0x102);}function _0x44cc14(_0x1663cd,_0x2d9a61,_0x4f1fc2,_0x584aea){return _0x4820c3(_0x1663cd-_0x46542d._0x5bd9b0,_0x2d9a61-0xc,_0x4f1fc2,_0x584aea- -_0x46542d._0x1ab012);}return{'runId':_0x1af976['runId'],'agentId':_0x1af976[_0x44cc14(_0x3b60ef._0xd51283,0x4b2,_0x3b60ef._0x29a754,_0x3b60ef._0x3a85b3)],'sessionId':_0x1af976['sessionId'],'status':_0x1af976[_0x44cc14(0x63c,0x6f5,0x79c,_0x3b60ef._0x22a2bb)],'parentSessionId':_0x1af976[_0x5b5bfe(_0x3b60ef._0x4b9166,0x75,0x72,0x5c)],..._0x1af976[_0x5b5bfe(0x261,_0x3b60ef._0x43041f,0x284,0x320)]!==void 0x0?{'originToolCallId':_0x1af976[_0x5b5bfe(0x261,0x299,_0x3b60ef._0x56e89b,_0x3b60ef._0x48f081)]}:{},..._0x1af976[_0x5b5bfe(_0x3b60ef._0x5836cd,0x1a3,0xee,0xba)]!==void 0x0?{'errorMessage':_0x1af976[_0x5b5bfe(0x142,0x1c3,_0x3b60ef._0x27a484,_0x3b60ef._0x2d2f59)]}:{},..._0x1af976[_0x44cc14(_0x3b60ef._0xc99f87,0x69e,_0x3b60ef._0x24914e,_0x3b60ef._0x41259e)]?.[_0x44cc14(0x7a7,0x777,_0x3b60ef._0x17b6dc,0x6ad)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1af976[_0x5b5bfe(_0x3b60ef._0x1022ef,_0x3b60ef._0xf550dc,_0x3b60ef._0x58df58,0xab)][_0x5b5bfe(_0x3b60ef._0x496919,0x141,_0x3b60ef._0x311a26,_0x3b60ef._0x330030)])}:{}};}function createRunSummaryOutput(_0x4f3c9b,_0x310dad){const _0x727fa7={_0x2b34cd:0x70,_0x5c9258:0x1d5,_0x4eb3f9:0xe1,_0x172ed3:0x149,_0x46a532:0x194},_0x259ab8={_0x446eb9:0x10b,_0x3d1045:0x17f,_0x7cfa95:0x53c},_0x17c701={_0xf19844:0x1b4},_0x6e2473=createRunSummary(_0x4f3c9b),_0x416476=_0x6e2473[_0x415b61(_0x727fa7._0x2b34cd,0x197,_0x727fa7._0x5c9258,_0x727fa7._0x4eb3f9)];function _0x43398b(_0x40ac87,_0x43f278,_0x57a092,_0x14098a){return _0x211934(_0x40ac87-0x1b1,_0x43f278-0x144,_0x57a092,_0x14098a-_0x17c701._0xf19844);}function _0x415b61(_0x8ab082,_0x6bdcc7,_0x4e8ceb,_0x5033a2){return _0x4820c3(_0x8ab082-_0x259ab8._0x446eb9,_0x6bdcc7-_0x259ab8._0x3d1045,_0x8ab082,_0x5033a2- -_0x259ab8._0x7cfa95);}return createToolOutput(typeof _0x416476===_0x415b61(_0x727fa7._0x172ed3,0x1ed,_0x727fa7._0x46a532,0xaf)&&_0x416476['length']>0x0?_0x416476:_0x310dad,_0x6e2473);}function getRunTerminalErrorMessage(_0x589746){const _0x41a5ee={_0x35aeeb:0x2e6,_0x5f2f2a:0x26b,_0x4e426e:0x2f1,_0x4104df:0x4aa,_0x962cf2:0x101,_0x36f923:0x5,_0x19ae05:0x54,_0x3f861a:0x8b,_0x516e62:0x30e,_0x23dacd:0x265,_0x1c853a:0x1af,_0x1b0065:0x14a,_0x9d8a3a:0x1ff},_0x959a63={_0x2ed592:0x369},_0x898924={_0x552816:0x1ed,_0x46f93b:0x17d,_0x26f15a:0x776},_0x22b5b0=_0x589746?.[_0x10af64(0x3fb,0x4e5,_0x41a5ee._0x35aeeb,0x30b)][_0x10af64(_0x41a5ee._0x5f2f2a,0x299,0x35d,0x13a)]['at'](-0x1);if(_0x22b5b0?.[_0x10af64(0x3e5,0x37d,_0x41a5ee._0x4e426e,_0x41a5ee._0x4104df)]===_0x5d3089(-_0x41a5ee._0x962cf2,-_0x41a5ee._0x36f923,-0x6d,-_0x41a5ee._0x19ae05)&&_0x22b5b0[_0x5d3089(-0x200,-_0x41a5ee._0x3f861a,-_0x41a5ee._0x516e62,-0x1cb)][_0x5d3089(-_0x41a5ee._0x23dacd,-_0x41a5ee._0x1c853a,-0x122,-_0x41a5ee._0x1b0065)]()['length']>0x0)return _0x22b5b0[_0x10af64(0x242,_0x41a5ee._0x9d8a3a,0x24f,0x2c2)];function _0x5d3089(_0xc07248,_0x25c5f7,_0x56cbb0,_0x281178){return _0x4820c3(_0xc07248-_0x898924._0x552816,_0x25c5f7-_0x898924._0x46f93b,_0x25c5f7,_0x281178- -_0x898924._0x26f15a);}function _0x10af64(_0x1ef490,_0xcdbeb3,_0x48feac,_0x5d5967){return _0x4820c3(_0x1ef490-0x78,_0xcdbeb3-0x1b7,_0xcdbeb3,_0x1ef490- -_0x959a63._0x2ed592);}return void 0x0;}function formatAbortedRunMessage(_0x470fc1,_0x5651b1){const _0x41c414={_0x49d2de:0x585,_0x3e78db:0x758,_0x2e59fb:0x753,_0x4449f0:0x44f,_0x2a01d0:0x466,_0x401914:0x3d3,_0xb3117d:0x572},_0x1547e5={_0xcfe2e0:0x1ad,_0x51a4de:0x26,_0x37f1b4:0x10d},_0x29d3c2={_0x43a019:0x1c,_0xe7efcc:0x42};function _0x4016a0(_0x98babf,_0x4d2c08,_0x4f6172,_0x5bedcf){return _0x211934(_0x5bedcf- -_0x29d3c2._0x43a019,_0x4d2c08-0xe2,_0x4d2c08,_0x5bedcf-_0x29d3c2._0xe7efcc);}const _0x50f704=_0x9c88c8(_0x41c414._0x49d2de,0x56f,0x5ed,0x579)+_0x470fc1+_0x9c88c8(_0x41c414._0x3e78db,_0x41c414._0x2e59fb,0x6fe,0x62a);function _0x9c88c8(_0x223594,_0xcc83a,_0x5598f5,_0x50dbb1){return _0x211934(_0xcc83a-_0x1547e5._0xcfe2e0,_0xcc83a-_0x1547e5._0x51a4de,_0x50dbb1,_0x50dbb1-_0x1547e5._0x37f1b4);}if(!_0x5651b1||_0x5651b1[_0x4016a0(_0x41c414._0x4449f0,0x48c,_0x41c414._0x2a01d0,0x3c4)]()[_0x4016a0(0x2da,_0x41c414._0x401914,0x465,0x40d)]===0x0||_0x5651b1===_0x50f704)return _0x50f704;return _0x50f704+_0x9c88c8(0x548,0x5d2,0x5a3,_0x41c414._0xb3117d)+_0x5651b1;}function createAssignTaskTool(_0x17c670){const _0x1b5edc={_0x220556:0x456,_0x3a1390:0x40b,_0x22a3e5:0x476,_0x2dde15:0x2ff,_0x5f24ac:0x47a,_0x34bd6f:0x2bb,_0x11e83d:0x1b6,_0xf1ebd:0x6a,_0x4650fb:0x373,_0x70ddff:0x5a2,_0x112418:0x3d0,_0x21fce5:0x188,_0x59b3ec:0x14d,_0x1b35a1:0xd0},_0x18a7f4={_0x49d569:0x2a5,_0x3290a0:0x1ff,_0x4676e2:0x22,_0x5661a1:0x20,_0x527b2f:0x3ba,_0x1d4651:0x36e,_0x1ad5b6:0x3b6,_0xd1aaec:0x339,_0x56f67e:0x497,_0x36f82a:0x2bb,_0x6d1cb5:0x36e,_0x2c25c0:0x328,_0x1d4318:0x337,_0x43dbde:0x544,_0x4fb680:0x406,_0x1cabee:0x40d,_0x754b9e:0x1b,_0xcb5364:0x12c,_0x1577cc:0xca,_0x375f6e:0x21a,_0x563321:0xcf,_0x3db198:0xf0,_0x2b76ac:0x239,_0x33d864:0x1e7,_0x39d048:0x1c7,_0x2ac85c:0x130,_0x22cd3c:0x1a7,_0x5c922a:0x2db,_0x2b65e3:0x2b7,_0x2a670b:0x3a1,_0x4291a0:0x2da,_0xadfb5c:0x1d0,_0x241b13:0x174,_0x5bd0bf:0x20c,_0x2e6e93:0xfa,_0x3394c3:0x204,_0x37092e:0x177,_0x5b64a6:0x3bb,_0x31138d:0xab,_0x510616:0x4b8,_0x97f88f:0x3fe,_0x51f13d:0x4e9,_0x43a6df:0x97,_0x359311:0x25,_0x10c65e:0x59,_0x467db8:0xa7,_0x3793ef:0x2f8,_0x2aa5e4:0x2b2,_0x55c999:0x10b,_0x584225:0x36c,_0x19e002:0x27f,_0x498056:0x22e,_0x375f44:0x9,_0x47f2fd:0x17a,_0x577b2e:0x159,_0x4bfa0f:0x2f1,_0x464241:0x3a1,_0x42dc98:0x18,_0x55c297:0x2fd,_0x2126be:0x408,_0x483924:0x371,_0x65a609:0x2a2,_0x49cde1:0x175,_0x5d3fbd:0x2a3,_0x2429e3:0x27e,_0x1d9830:0x167,_0x51edb1:0x107,_0x190eab:0x54},_0x33c0da={_0x12e4a9:0x491,_0x1607f5:0x1b};function _0x53a5b3(_0x1447b0,_0x3b5525,_0x923738,_0x1a30f6){return _0x4820c3(_0x1447b0-0x118,_0x3b5525-0x102,_0x1447b0,_0x1a30f6- -0x247);}function _0x2239a9(_0x764a32,_0x3c3dda,_0x3d370f,_0x10b20f){return _0x211934(_0x10b20f- -_0x33c0da._0x12e4a9,_0x3c3dda-_0x33c0da._0x1607f5,_0x3c3dda,_0x10b20f-0x74);}return defineTool({'name':'AssignTask','description':_0x53a5b3(_0x1b5edc._0x220556,_0x1b5edc._0x3a1390,_0x1b5edc._0x22a3e5,0x4a3),'inputSchema':{'type':'object','properties':{'agentId':{'type':'string'},'description':{'type':'string'},'nickname':{'type':_0x53a5b3(_0x1b5edc._0x2dde15,_0x1b5edc._0x5f24ac,_0x1b5edc._0x34bd6f,0x3a4)},'task':{'type':_0x2239a9(-0xe5,-_0x1b5edc._0x11e83d,-_0x1b5edc._0xf1ebd,-0xf2)}},'required':[_0x53a5b3(_0x1b5edc._0x4650fb,_0x1b5edc._0x70ddff,_0x1b5edc._0x112418,0x477),_0x2239a9(_0x1b5edc._0x21fce5,_0x1b5edc._0x59b3ec,-_0x1b5edc._0x1b35a1,0x7e),'task']},async *'execute'(_0xe3dbd2,_0x261f9c){const _0x1bc06c={_0xfd2d94:0x30f,_0x32e12c:0x7c7,_0x3d478f:0x7b8,_0xd60eb6:0x7f5,_0x9a0789:0x515,_0x43c189:0x3d7,_0x1d71fd:0x53d},_0x3017e6={_0x25baeb:0x4cb},_0x2b4499={_0x4d54a1:0x130,_0x3de15d:0x1e7,_0x406bf3:0x1d},_0x42d15e={_0x1f8dec:0xb9,_0x2fccfd:0x108,_0xcbdfe8:0x109},_0x3aa9b0=createDelegatedRunId(),_0x569dc9={'agentId':_0xe3dbd2[_0x55bf28(_0x18a7f4._0x49d569,0x188,0x174,_0x18a7f4._0x3290a0)],'parentSessionId':_0x261f9c['sessionId'],'runId':_0x3aa9b0,..._0x261f9c['toolCallId']!==void 0x0?{'toolCallId':_0x261f9c[_0x55bf28(-0xcb,-_0x18a7f4._0x4676e2,_0x18a7f4._0x5661a1,-0xca)]}:{}};function _0x55bf28(_0x5a3314,_0x430c3d,_0x24c5e0,_0x2dcfe5){return _0x2239a9(_0x5a3314-0x162,_0x430c3d,_0x24c5e0-0x183,_0x24c5e0-0x193);}const _0x5f0dd5=getDelegatedAgentDefinition(_0x17c670,_0xe3dbd2[_0x3879b6(_0x18a7f4._0x527b2f,_0x18a7f4._0x1d4651,_0x18a7f4._0x1ad5b6,_0x18a7f4._0xd1aaec)]);if(!_0x5f0dd5)throw new ToolExecutionError(_0x3879b6(0x529,_0x18a7f4._0x56f67e,0x4cb,0x519)+_0xe3dbd2[_0x3879b6(_0x18a7f4._0x36f82a,_0x18a7f4._0x6d1cb5,_0x18a7f4._0x2c25c0,0x486)],{'agentId':_0xe3dbd2[_0x3879b6(0x3c2,0x36e,0x4a7,_0x18a7f4._0x1d4318)]});function _0x3879b6(_0x171e62,_0x1bf9be,_0x5a49ca,_0x3b5649){return _0x53a5b3(_0x3b5649,_0x1bf9be-_0x42d15e._0x1f8dec,_0x5a49ca-_0x42d15e._0x2fccfd,_0x1bf9be- -_0x42d15e._0xcbdfe8);}const _0x2ed4e6=new Agent(await resolveDelegatedAgentOptions(_0x5f0dd5,_0x569dc9));let _0x27c128={'runId':_0x3aa9b0,'agentId':_0xe3dbd2['agentId'],'sessionId':_0x2ed4e6[_0x3879b6(0x223,0x326,0x439,0x227)],'status':_0x3879b6(_0x18a7f4._0x43dbde,_0x18a7f4._0x4fb680,0x319,_0x18a7f4._0x1cabee),'parentSessionId':_0x261f9c[_0x55bf28(-_0x18a7f4._0x754b9e,0x246,_0x18a7f4._0xcb5364,_0x18a7f4._0x1577cc)],..._0x261f9c[_0x3879b6(0x362,_0x18a7f4._0x375f6e,0xc6,0x134)]!==void 0x0?{'originToolCallId':_0x261f9c[_0x3879b6(0x1bd,_0x18a7f4._0x375f6e,0x361,_0x18a7f4._0x563321)]}:{}};const _0x38fa82=new AbortController(),_0x21c001=addAbortListener(_0x261f9c[_0x55bf28(0x19b,_0x18a7f4._0x3db198,_0x18a7f4._0x2b76ac,0x16f)],()=>{function _0x33eda0(_0x24d0f2,_0x1d98c5,_0x2aeb62,_0x4f2537){return _0x55bf28(_0x24d0f2-_0x2b4499._0x4d54a1,_0x2aeb62,_0x24d0f2-_0x2b4499._0x3de15d,_0x4f2537-_0x2b4499._0x406bf3);}function _0x5c7ffb(_0x48f99d,_0x2af49c,_0x4c0f0f,_0x350964){return _0x55bf28(_0x48f99d-0x162,_0x2af49c,_0x48f99d-_0x3017e6._0x25baeb,_0x350964-0x16);}_0x38fa82[_0x33eda0(0x220,_0x1bc06c._0xfd2d94,0x16f,0x121)](_0x261f9c[_0x5c7ffb(0x704,_0x1bc06c._0x32e12c,_0x1bc06c._0x3d478f,_0x1bc06c._0xd60eb6)]?.[_0x5c7ffb(_0x1bc06c._0x9a0789,_0x1bc06c._0x43c189,0x475,_0x1bc06c._0x1d71fd)]);});yield createToolOutput(_0x3879b6(_0x18a7f4._0x33d864,0x2d9,0x2f9,_0x18a7f4._0x39d048)+_0x27c128[_0x55bf28(0x186,_0x18a7f4._0x2ac85c,_0x18a7f4._0x22cd3c,_0x18a7f4._0x5c922a)]+'.',{'runId':_0x27c128[_0x3879b6(_0x18a7f4._0x2b65e3,_0x18a7f4._0x2a670b,_0x18a7f4._0x4291a0,0x2e3)],'agentId':_0x27c128[_0x55bf28(0x133,_0x18a7f4._0xadfb5c,_0x18a7f4._0x241b13,_0x18a7f4._0x5bd0bf)],'sessionId':_0x27c128['sessionId'],'status':_0x27c128[_0x55bf28(0x19f,_0x18a7f4._0x2e6e93,_0x18a7f4._0x3394c3,0x297)]});try{const _0x2feeed=await _0x2ed4e6[_0x3879b6(0x22a,0x2d5,_0x18a7f4._0x37092e,_0x18a7f4._0x5b64a6)](_0xe3dbd2[_0x55bf28(0x11a,0xa4,_0x18a7f4._0x31138d,0x13a)],{'signal':_0x38fa82['signal']});_0x27c128={..._0x27c128,'status':_0x2feeed[_0x3879b6(_0x18a7f4._0x510616,_0x18a7f4._0x97f88f,0x3e4,0x306)],'result':_0x2feeed};if(_0x2feeed[_0x3879b6(0x31e,0x3fe,_0x18a7f4._0x51f13d,0x426)]!==_0x55bf28(_0x18a7f4._0x43a6df,-0x21,_0x18a7f4._0x359311,-0x4f)){const _0x3d692d=getRunTerminalErrorMessage(_0x2feeed),_0x21a7cb=formatAbortedRunMessage(_0x27c128[_0x55bf28(0x2fb,0x1da,0x1a7,0x2a4)],_0x3d692d);throw new ToolExecutionError(_0x21a7cb,{...createRunSummary(_0x27c128),'aborted':!![],'errorMessage':_0x21a7cb});}return createRunSummaryOutput(_0x27c128,_0x55bf28(0x185,0x87,0xc4,-_0x18a7f4._0x10c65e)+_0x27c128[_0x55bf28(_0x18a7f4._0x467db8,0x2cc,_0x18a7f4._0x22cd3c,_0x18a7f4._0x3793ef)]+'\x20completed.');}catch(_0x21118a){if(_0x21118a instanceof ToolExecutionError)throw _0x21118a;if(isAbortError(_0x21118a)||_0x38fa82[_0x55bf28(0x2a2,_0x18a7f4._0x2aa5e4,0x239,_0x18a7f4._0x55c999)][_0x55bf28(0xfc,0x16a,0x10d,0x1ae)]||_0x261f9c[_0x55bf28(_0x18a7f4._0x584225,_0x18a7f4._0x19e002,0x239,0x181)][_0x55bf28(0x147,_0x18a7f4._0x498056,0x10d,0xfc)]){const _0x4e2125=getRunTerminalErrorMessage(_0x27c128[_0x55bf28(_0x18a7f4._0x375f44,_0x18a7f4._0x47f2fd,_0x18a7f4._0x577b2e,0x60)])??(_0x21118a instanceof Error?_0x21118a['message']:String(_0x21118a)),_0x57e0fd=formatAbortedRunMessage(_0x27c128[_0x3879b6(_0x18a7f4._0x4bfa0f,_0x18a7f4._0x464241,0x2cf,0x273)],_0x4e2125);_0x27c128={..._0x27c128,'status':'aborted','errorMessage':_0x57e0fd};throw new ToolExecutionError(_0x57e0fd,{...createRunSummary(_0x27c128),'aborted':!![],'errorMessage':_0x57e0fd});}const _0x4e9883=getRunTerminalErrorMessage(_0x27c128[_0x55bf28(0xd5,0x6a,_0x18a7f4._0x577b2e,_0x18a7f4._0x42dc98)])??(_0x21118a instanceof Error?_0x21118a[_0x3879b6(0x2b9,0x413,_0x18a7f4._0x55c297,_0x18a7f4._0x2126be)]:String(_0x21118a))??'Agent\x20run\x20'+_0x27c128[_0x3879b6(0x3d2,_0x18a7f4._0x2a670b,_0x18a7f4._0x483924,_0x18a7f4._0x65a609)]+_0x55bf28(_0x18a7f4._0x49cde1,_0x18a7f4._0x5d3fbd,_0x18a7f4._0x2429e3,0x261);_0x27c128={..._0x27c128,'status':_0x55bf28(-0x41,_0x18a7f4._0x1d9830,_0x18a7f4._0x51edb1,-_0x18a7f4._0x190eab),'errorMessage':_0x4e9883};throw new ToolExecutionError(_0x4e9883,{...createRunSummary(_0x27c128),'errorMessage':_0x4e9883});}finally{_0x21c001();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x28c7be){return[createAssignTaskTool(_0x28c7be)];}import*as _0x3cfe98 from'path';function buildDescription2(_0x4b0edf){const _0x5870a3={_0x405a85:0x2ae,_0x2498a8:0x335,_0x231325:0x7a1,_0x1775bc:0x736,_0x4338e4:0x885,_0x315309:0x38d,_0x3179d8:0x434},_0x42005e={_0x333ad:0x1b9,_0x593dd1:0x2b},_0x134ca3={_0x59f330:0x49,_0x1430fd:0x340};function _0x5015b1(_0x3b376b,_0x41d90a,_0x4b7eac,_0x3dcadc){return _0x4820c3(_0x3b376b-0x1bb,_0x41d90a-_0x134ca3._0x59f330,_0x41d90a,_0x4b7eac- -_0x134ca3._0x1430fd);}if(_0x4b0edf[_0x5015b1(_0x5870a3._0x405a85,0x2a9,_0x5870a3._0x2498a8,0x29e)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x2cf09c(_0x113443,_0x19d107,_0x4ea969,_0x552b47){return _0x211934(_0x19d107-_0x42005e._0x333ad,_0x19d107-_0x42005e._0x593dd1,_0x4ea969,_0x552b47-0xb7);}const _0x2db37a=[_0x2cf09c(0x72d,0x683,0x668,_0x5870a3._0x231325),_0x2cf09c(0x752,_0x5870a3._0x1775bc,0x69d,_0x5870a3._0x4338e4),'Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.',_0x5015b1(0x323,0x27b,_0x5870a3._0x315309,_0x5870a3._0x3179d8),..._0x4b0edf['map'](_0x564a58=>'-\x20'+_0x564a58['name']+':\x20'+_0x564a58['description'])];return _0x2db37a['join']('\x0a');}function createLoadSkillTool(_0x59ff45){const _0x5bcf30={_0xac8743:0xd7,_0x2fa40e:0x169,_0x13594c:0x81,_0x2da5f2:0x17,_0x41644d:0x51,_0x4bc643:0x46,_0x309efd:0x2a2,_0x2f95c7:0x18b,_0x2c3458:0x20c},_0x8008de={_0x6877b5:0x4a6,_0x10467b:0x52b,_0x3b9e7b:0x60c,_0x261c11:0x622,_0x430ff8:0x5bc,_0x5d662f:0x412,_0x33786f:0x42c,_0x10cca2:0x57f,_0x359429:0x51a,_0x953daf:0x618,_0xff9e4e:0x315,_0x4d10a9:0x37f,_0x139bb6:0x61a,_0x3003e2:0x4f4,_0x318031:0x5c2,_0x31820d:0x59a,_0x56762e:0x7d6,_0x524ad0:0x6dc,_0x23b820:0x5dc,_0x46c97a:0x4b8,_0x22098e:0x2b3,_0x1e624f:0x38f,_0x20e3da:0x5de,_0x5950cf:0x565,_0x4d8631:0x46a,_0x40cc07:0x316,_0x26a962:0x407,_0x2f00e3:0x706,_0x44dfe2:0x55e,_0x53fcfc:0x520,_0x2666d2:0x567,_0x298be4:0x483},_0x4accc4={_0xa7909a:0x69,_0x120ebe:0x6c7};function _0x2bcc5a(_0x2f95d9,_0x4c7974,_0x394f03,_0x4c41be){return _0x4820c3(_0x2f95d9-_0x4accc4._0xa7909a,_0x4c7974-0x1b,_0x2f95d9,_0x4c7974- -_0x4accc4._0x120ebe);}const _0x28dd23=new Map(_0x59ff45[_0x2bcc5a(-_0x5bcf30._0xac8743,-_0x5bcf30._0x2fa40e,-_0x5bcf30._0x13594c,-0x124)]['map'](_0x3072ae=>[_0x3072ae[_0x2bcc5a(0x155,0x13b,0x1c5,0x153)],_0x3072ae]));function _0x66813e(_0x52f280,_0x309257,_0x452fc5,_0xe33712){return _0x4820c3(_0x52f280-0x91,_0x309257-0x177,_0xe33712,_0x452fc5- -0x702);}const _0x56d6ed=buildDescription2(_0x59ff45[_0x2bcc5a(-_0x5bcf30._0x2da5f2,-_0x5bcf30._0x2fa40e,-_0x5bcf30._0x41644d,-_0x5bcf30._0x4bc643)]);return defineTool({'name':_0x66813e(-0x91,-_0x5bcf30._0x309efd,-_0x5bcf30._0x2f95c7,-_0x5bcf30._0x2c3458),'description':_0x56d6ed,'inputSchema':{'type':'object','properties':{'name':{'type':'string'}},'required':['name']},async *'execute'(_0x1c4f8b){const _0x463ffd={_0x5b6df6:0x4d1,_0xcd4955:0x1ed,_0x1a0579:0xa4},_0x202946={_0x193c52:0x40,_0x57b7c0:0x641},_0x5f0979=_0x28dd23[_0xb74485(_0x8008de._0x6877b5,0x5e4,0x3dc,_0x8008de._0x10467b)](_0x1c4f8b[_0xb74485(0x51b,0x673,0x5e0,_0x8008de._0x3b9e7b)]);if(!_0x5f0979){const _0x3c88ce=Array[_0x7a25ae(_0x8008de._0x261c11,0x461,0x586,_0x8008de._0x430ff8)](_0x28dd23[_0xb74485(0x4dc,_0x8008de._0x5d662f,0x30a,_0x8008de._0x33786f)]())['join'](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x1c4f8b[_0x7a25ae(0x7da,0x6ab,0x624,0x741)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x3c88ce,{'name':_0x1c4f8b[_0xb74485(_0x8008de._0x10cca2,_0x8008de._0x359429,_0x8008de._0x953daf,_0x8008de._0x3b9e7b)]});}const _0x1278ad=await _0x59ff45['loadSkill'](_0x5f0979);function _0x7a25ae(_0x3720ff,_0x4b4293,_0x8ef175,_0x5e301f){return _0x66813e(_0x3720ff-_0x202946._0x193c52,_0x4b4293-0x3f,_0x5e301f-_0x202946._0x57b7c0,_0x3720ff);}const _0x2c1aad=_0x5f0979[_0xb74485(0x2f8,_0x8008de._0xff9e4e,0x275,_0x8008de._0x4d10a9)][_0xb74485(_0x8008de._0x139bb6,0x53b,0x635,0x5ca)]??_0x3cfe98['dirname'](_0x5f0979['source'][_0x7a25ae(0x6f8,0x477,0x5b8,0x5b8)]),_0x128e30=[_0xb74485(0x496,_0x8008de._0x3003e2,_0x8008de._0x318031,_0x8008de._0x31820d)+_0x1278ad[_0x7a25ae(_0x8008de._0x56762e,_0x8008de._0x524ad0,0x725,0x741)],'',_0x1278ad[_0xb74485(0x64c,0x493,0x6d0,_0x8008de._0x23b820)],'',_0x7a25ae(0x5db,0x544,0x603,_0x8008de._0x46c97a),_0xb74485(0x2b7,_0x8008de._0x22098e,0x3b9,_0x8008de._0x1e624f)+_0x5f0979['source'][_0xb74485(_0x8008de._0x20e3da,_0x8008de._0x5950cf,_0x8008de._0x4d8631,0x483)],'Base\x20directory:\x20'+_0x2c1aad][_0xb74485(0x2ad,_0x8008de._0x40cc07,0x4e3,_0x8008de._0x26a962)]('\x0a');yield createToolOutput(_0x128e30,{'id':_0x1278ad['id'],'name':_0x1278ad[_0xb74485(0x6f7,_0x8008de._0x2f00e3,0x6da,0x60c)],'path':_0x5f0979['source'][_0xb74485(_0x8008de._0x44dfe2,_0x8008de._0x53fcfc,_0x8008de._0x2666d2,_0x8008de._0x298be4)],'baseDirectory':_0x2c1aad});function _0xb74485(_0x3a40b5,_0x2f1df5,_0x3e4b3f,_0x381e51){return _0x2bcc5a(_0x3a40b5,_0x381e51-_0x463ffd._0x5b6df6,_0x3e4b3f-_0x463ffd._0xcd4955,_0x381e51-_0x463ffd._0x1a0579);}return void 0x0;}});}var TODO_STATUSES=new Set([_0x211934(0x336,0x2f6,0x376,0x295),_0x211934(0x319,0x351,0x34b,0x315),_0x4820c3(0x553,0x5aa,0x529,0x56f)]),TODO_PRIORITIES=new Set([_0x4820c3(0x586,0x592,0x4a5,0x58f),_0x211934(0x47f,0x3b1,0x3fc,0x3ea),'low']);function isTodoStatus(_0x5e4723){const _0x2f66cd={_0x5ac29b:0x29a,_0x4105ec:0x23c},_0x7cd27b={_0x48c911:0x26},_0x133d0e={_0x4a9f1f:0x1f9,_0x316dc9:0x170};function _0x265905(_0x1039ae,_0x35dc48,_0x5bb3fa,_0x486bcc){return _0x211934(_0x486bcc- -_0x133d0e._0x4a9f1f,_0x35dc48-_0x133d0e._0x316dc9,_0x35dc48,_0x486bcc-0xfc);}function _0x33af75(_0x572ec9,_0xbb92d8,_0x2c12f1,_0x31b8b6){return _0x4820c3(_0x572ec9-_0x7cd27b._0x48c911,_0xbb92d8-0x19f,_0xbb92d8,_0x572ec9- -0x351);}return typeof _0x5e4723===_0x33af75(_0x2f66cd._0x5ac29b,0x3cc,_0x2f66cd._0x4105ec,0x230)&&TODO_STATUSES[_0x33af75(0x372,0x433,0x34e,0x436)](_0x5e4723);}function isTodoPriority(_0xbca952){const _0x3a2f28={_0x11fcac:0x1bd,_0x50ca0f:0xfa,_0x59ab2e:0x248,_0x261766:0x35},_0x4de907={_0x362814:0x31},_0x2ed3d5={_0xa9e233:0x60,_0x2c0ffc:0x64};function _0x7e4ac3(_0x33d83c,_0x1e37e4,_0x4e1ec4,_0x3b0c4b){return _0x4820c3(_0x33d83c-_0x2ed3d5._0xa9e233,_0x1e37e4-_0x2ed3d5._0x2c0ffc,_0x4e1ec4,_0x3b0c4b- -0x3a3);}function _0x26b428(_0x4d6044,_0x12082d,_0x550db3,_0x52caa5){return _0x211934(_0x52caa5- -0x350,_0x12082d-_0x4de907._0x362814,_0x12082d,_0x52caa5-0x18e);}return typeof _0xbca952===_0x7e4ac3(_0x3a2f28._0x11fcac,_0x3a2f28._0x50ca0f,0x104,_0x3a2f28._0x59ab2e)&&TODO_PRIORITIES[_0x26b428(0x6e,-_0x3a2f28._0x261766,0x1b4,0x127)](_0xbca952);}var TodoStore=class{[_0x4820c3(0x526,0x6e9,0x6f8,0x5cb)]=new Map();['getTodos'](_0xdca371){const _0x365009={_0x42150c:0x3c0,_0x2af619:0x4f3,_0x3852ea:0x45e},_0x47e481={_0x31e84a:0x16,_0x2fccc4:0x1f0,_0x51cc2e:0x22e};function _0x5be389(_0x565ed6,_0xc4e6c4,_0x25b7bd,_0x4e8876){return _0x4820c3(_0x565ed6-_0x47e481._0x31e84a,_0xc4e6c4-_0x47e481._0x2fccc4,_0x565ed6,_0x25b7bd- -_0x47e481._0x51cc2e);}return this['todosBySession'][_0x5be389(_0x365009._0x42150c,0x39b,_0x365009._0x2af619,_0x365009._0x3852ea)](_0xdca371)??[];}[_0x4820c3(0x74b,0x744,0x840,0x700)](_0x13b380,_0x5a9b94){const _0x48f3d0={_0x2acfd1:0x1b9,_0x5062d7:0x7e,_0x190b54:0x209,_0x32c38d:0x2,_0x4e91ce:0x12d},_0x2d7462={_0x2eeff9:0x4a1,_0x3256d6:0xc8},_0x30c1d1={_0x5386fa:0x151,_0x2ca401:0x1d5};function _0x15538e(_0x1cf36c,_0x151e3b,_0x3fbb9c,_0x2252f0){return _0x211934(_0x3fbb9c- -0x3fd,_0x151e3b-_0x30c1d1._0x5386fa,_0x2252f0,_0x2252f0-_0x30c1d1._0x2ca401);}function _0x138719(_0x52ac0a,_0x1bbca8,_0x1edb4e,_0x28a714){return _0x211934(_0x28a714- -_0x2d7462._0x2eeff9,_0x1bbca8-_0x2d7462._0x3256d6,_0x52ac0a,_0x28a714-0x18d);}this[_0x15538e(-0x26,-_0x48f3d0._0x2acfd1,-_0x48f3d0._0x5062d7,-0x13d)][_0x138719(-_0x48f3d0._0x190b54,-0x1d7,-_0x48f3d0._0x32c38d,-_0x48f3d0._0x4e91ce)](_0x13b380,_0x5a9b94);}[_0x211934(0x37e,0x274,0x38f,0x330)](_0xeeee81){const _0x5ac600={_0x401ad6:0x314,_0x106afe:0x394,_0x31eaf0:0x3fb,_0x4c8b53:0x30c,_0x7f7513:0x382,_0x26a672:0x28c,_0x1f0418:0x2a1,_0x4aa71c:0x21,_0x12b6ba:0x4c,_0x385dbd:0xc0,_0x27b54f:0x378,_0x373626:0x2cd,_0x50af9f:0x17,_0x53ad94:0x14e,_0x4caedb:0x31f,_0xedbe39:0x28e},_0x503ef6={_0x3113d0:0xc1},_0x18d643={_0x311a10:0x2e1};function _0xe8da93(_0x2eba6d,_0x382cf8,_0x216f4d,_0x242b13){return _0x4820c3(_0x2eba6d-0xf6,_0x382cf8-0x19,_0x242b13,_0x382cf8- -_0x18d643._0x311a10);}const _0x22ab1f=this['getTodos'](_0xeeee81),_0xcffc72={'total':_0x22ab1f[_0xe8da93(_0x5ac600._0x401ad6,_0x5ac600._0x106afe,_0x5ac600._0x31eaf0,_0x5ac600._0x4c8b53)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xad7bb5 of _0x22ab1f){if(_0xad7bb5[_0xbd4354(0x37b,0x3e8,_0x5ac600._0x7f7513,_0x5ac600._0x26a672)]===_0xe8da93(0x216,_0x5ac600._0x1f0418,0x32e,0x2cf))_0xcffc72[_0xbd4354(_0x5ac600._0x4aa71c,0x4a,-_0x5ac600._0x12b6ba,_0x5ac600._0x385dbd)]+=0x1;else{if(_0xad7bb5[_0xbd4354(0x321,_0x5ac600._0x27b54f,_0x5ac600._0x373626,_0x5ac600._0x26a672)]==='in_progress')_0xcffc72[_0xbd4354(0x56,-_0x5ac600._0x50af9f,_0x5ac600._0x53ad94,0xe2)]+=0x1;else _0xcffc72[_0xe8da93(_0x5ac600._0x4caedb,_0x5ac600._0xedbe39,0x39b,0x2c2)]+=0x1;}}function _0xbd4354(_0x41b1b0,_0x37d13e,_0x5e85de,_0x3f6f4b){return _0x4820c3(_0x41b1b0-0x1c6,_0x37d13e-_0x503ef6._0x3113d0,_0x37d13e,_0x3f6f4b- -0x4c2);}return _0xcffc72;}};function validateTodos(_0x13d54d){const _0x3f1efa={_0x2846e3:0x4f9,_0x520095:0x4c8,_0x424109:0x49f,_0x212e09:0x613,_0x908c77:0x61f,_0x373893:0x576,_0x1d3a75:0x292,_0x5c0951:0x2d4,_0x362df5:0x428,_0x5631e2:0x4f9,_0x1cb3d5:0x1a8,_0x4ec037:0x1a4,_0x57a099:0x10c,_0x5bdd81:0x388,_0x3f2a9e:0x3eb,_0x5c5b03:0x53e,_0x314d74:0x3df,_0x4bb7cb:0x245,_0x109808:0x258,_0x313439:0x164,_0x5e6a8c:0x213,_0x3e8d90:0x418,_0x280017:0x396,_0x51a438:0x2eb,_0x1352de:0x323,_0x25468d:0x306,_0x419236:0x15f,_0xdbfa8d:0x319,_0x5e9265:0x281,_0x48c6ee:0x45d,_0xbc7ba5:0x339,_0x12150e:0x58a,_0x244877:0x4b1,_0x32a40f:0x4ba,_0x34e48e:0x4f1,_0x150d12:0x476,_0x574524:0x4c3,_0x508650:0x4d0,_0x5d9dc1:0x55c,_0x45be01:0x4e1,_0x30c3bf:0x3b3,_0x40d2ed:0x3a8,_0x4ce3b5:0x254,_0x74e8c0:0x18c,_0x4cf4b5:0x275,_0x33796a:0x24e,_0x45f0ec:0x335,_0x2a5ea9:0xed,_0x4c9fcb:0x25a,_0xbbc8e2:0x2c2,_0xdf5595:0x4f2,_0x59b4d3:0x56b,_0x23cd74:0x57a,_0x4de2d5:0x498,_0x4e3dc4:0x1ce,_0x50db1b:0x42a,_0x232c2b:0x321,_0x398de2:0x4b1,_0x80b4b:0x52f},_0x34e02f={_0x3b07ee:0x1cf},_0x3593ae={_0xa02ea9:0x1de,_0x4ac2f8:0x393};if(!Array[_0x2448d2(0x4c5,0x411,0x466,0x5d6)](_0x13d54d[_0x5e3bfa(0x2da,0x296,0x335,0x44d)])||_0x13d54d[_0x2448d2(_0x3f1efa._0x2846e3,_0x3f1efa._0x520095,_0x3f1efa._0x424109,_0x3f1efa._0x212e09)][_0x5e3bfa(0x395,0x255,0x2e2,0x294)]===0x0)throw new ToolExecutionError(_0x2448d2(_0x3f1efa._0x908c77,0x572,0x66b,_0x3f1efa._0x373893),{'error':_0x5e3bfa(0x29f,_0x3f1efa._0x1d3a75,0x1ea,_0x3f1efa._0x5c0951)});for(let _0x414080=0x0;_0x414080<_0x13d54d[_0x5e3bfa(0x28b,_0x3f1efa._0x362df5,0x335,0x28c)]['length'];_0x414080+=0x1){const _0x4befbc=_0x13d54d[_0x2448d2(_0x3f1efa._0x5631e2,0x63c,0x407,0x5f2)][_0x414080];if(!_0x4befbc||typeof _0x4befbc!=='object')throw new ToolExecutionError(_0x5e3bfa(_0x3f1efa._0x1cb3d5,_0x3f1efa._0x4ec037,0x254,_0x3f1efa._0x57a099)+(_0x414080+0x1)+_0x5e3bfa(0x434,_0x3f1efa._0x5bdd81,_0x3f1efa._0x3f2a9e,_0x3f1efa._0x5c5b03),{'error':_0x2448d2(0x3cf,0x4b5,0x432,_0x3f1efa._0x314d74)});if(typeof _0x4befbc['id']!==_0x5e3bfa(0x331,_0x3f1efa._0x4bb7cb,_0x3f1efa._0x109808,_0x3f1efa._0x313439)||_0x4befbc['id']['trim']()[_0x5e3bfa(0x3e8,0x363,0x2e2,_0x3f1efa._0x5e6a8c)]===0x0)throw new ToolExecutionError(_0x2448d2(_0x3f1efa._0x3e8d90,_0x3f1efa._0x280017,_0x3f1efa._0x51a438,0x466)+(_0x414080+0x1)+_0x5e3bfa(_0x3f1efa._0x1352de,_0x3f1efa._0x25468d,0x458,0x49b),{'error':'invalid_todo_id'});if(typeof _0x4befbc['content']!==_0x5e3bfa(_0x3f1efa._0x419236,_0x3f1efa._0xdbfa8d,0x258,_0x3f1efa._0x5e9265)||_0x4befbc[_0x5e3bfa(0x4d4,0x3de,0x3ee,0x2bd)][_0x2448d2(_0x3f1efa._0x48c6ee,_0x3f1efa._0xbc7ba5,_0x3f1efa._0x12150e,_0x3f1efa._0x244877)]()[_0x2448d2(0x4a6,_0x3f1efa._0x32a40f,_0x3f1efa._0x34e48e,_0x3f1efa._0x150d12)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x414080+0x1)+':\x20content\x20required',{'error':_0x2448d2(_0x3f1efa._0x574524,_0x3f1efa._0x508650,_0x3f1efa._0x5d9dc1,0x514)});if(!isTodoStatus(_0x4befbc[_0x5e3bfa(0x323,_0x3f1efa._0x45be01,0x3bb,0x3e4)]))throw new ToolExecutionError(_0x2448d2(0x418,0x54d,_0x3f1efa._0x30c3bf,0x4ae)+(_0x414080+0x1)+_0x2448d2(0x49e,0x3e8,0x3ed,0x45d),{'error':_0x5e3bfa(0x205,0x2d9,0x2e7,_0x3f1efa._0x40d2ed)});if(!isTodoPriority(_0x4befbc['priority']))throw new ToolExecutionError(_0x5e3bfa(0xf5,0x2cb,_0x3f1efa._0x4ce3b5,_0x3f1efa._0x74e8c0)+(_0x414080+0x1)+_0x2448d2(0x5a7,0x6a6,0x486,0x4b4),{'error':'invalid_todo_priority'});}const _0x149138=_0x13d54d[_0x5e3bfa(_0x3f1efa._0x4cf4b5,_0x3f1efa._0x33796a,_0x3f1efa._0x45f0ec,0x2bf)][_0x5e3bfa(_0x3f1efa._0x2a5ea9,0x29d,0x1df,_0x3f1efa._0x4c9fcb)](_0x4e9d2a=>_0x4e9d2a['id']);function _0x5e3bfa(_0x426212,_0x642865,_0x4b7fc1,_0x3ea5f5){return _0x4820c3(_0x426212-0x16c,_0x642865-_0x3593ae._0xa02ea9,_0x3ea5f5,_0x4b7fc1- -_0x3593ae._0x4ac2f8);}function _0x2448d2(_0x15663e,_0x35f265,_0xa79061,_0x56924f){return _0x4820c3(_0x15663e-0xe1,_0x35f265-0x5f,_0x56924f,_0x15663e- -_0x34e02f._0x3b07ee);}if(new Set(_0x149138)[_0x5e3bfa(_0x3f1efa._0xbbc8e2,_0x3f1efa._0xdf5595,0x40b,_0x3f1efa._0x59b4d3)]!==_0x149138[_0x2448d2(0x4a6,_0x3f1efa._0x23cd74,0x5f3,_0x3f1efa._0x4de2d5)])throw new ToolExecutionError(_0x5e3bfa(_0x3f1efa._0x4e3dc4,_0x3f1efa._0x50db1b,_0x3f1efa._0x232c2b,_0x3f1efa._0x150d12),{'error':_0x2448d2(_0x3f1efa._0x398de2,_0x3f1efa._0x80b4b,0x4b7,0x3ba)});}function createStatsProgress(_0x595315){const _0x223f17={_0xd759f9:0x77,_0x2b5f42:0x4d,_0x51affc:0xfe,_0x4d5c5c:0xfe,_0x510510:0x113,_0x11dffa:0x8b},_0x34e7ec={_0x241683:0x48a,_0x3d6ba2:0x104},_0x591588={_0xa1278b:0x39,_0x2a8225:0x132};function _0x41ff40(_0x44fe09,_0xdfbc0e,_0x400a8f,_0x35000d){return _0x4820c3(_0x44fe09-_0x591588._0xa1278b,_0xdfbc0e-_0x591588._0x2a8225,_0xdfbc0e,_0x44fe09- -0x682);}function _0x4df258(_0x324c00,_0x48da22,_0x6e0305,_0x37362f){return _0x211934(_0x6e0305- -_0x34e7ec._0x241683,_0x48da22-0x97,_0x48da22,_0x37362f-_0x34e7ec._0x3d6ba2);}return _0x595315[_0x41ff40(_0x223f17._0xd759f9,-_0x223f17._0x2b5f42,_0x223f17._0x51affc,_0x223f17._0x4d5c5c)]>0x0?Math[_0x41ff40(0x188,0x1a5,0x1fb,0x29)](_0x595315[_0x41ff40(-_0x223f17._0x510510,-0x1da,-_0x223f17._0x11dffa,-0x142)]/_0x595315['total']*0x64)+'%':'0%';}function createReminderItems(_0x3602bd){const _0x2bb621={_0x52fb2b:0x0};function _0x5edbb6(_0x26fd70,_0x40382a,_0x5bc110,_0x240c4a){return _0x211934(_0x40382a-0x1a8,_0x40382a-0x79,_0x240c4a,_0x240c4a-_0x2bb621._0x52fb2b);}function _0x8996d1(_0x5695eb,_0x3e0458,_0x494108,_0x4cf016){return _0x211934(_0x5695eb-0x10,_0x3e0458-0x98,_0x494108,_0x4cf016-0x4a);}return _0x3602bd[_0x5edbb6(0x5a7,0x4ce,0x3c5,0x543)](_0x15e4ce=>({'content':_0x15e4ce[_0x8996d1(0x545,0x685,0x59b,0x56e)],'status':_0x15e4ce[_0x5edbb6(0x6ef,0x6aa,0x744,0x644)],'id':_0x15e4ce['id']}));}function createStructuredResult(_0x4cfe26,_0x32fb3b,_0x40e2d4,_0x2ea81f){const _0x318b59={_0x27657a:0x14d,_0x3774d1:0x7,_0x4a54a5:0xa2},_0x29710c={_0x37aa0f:0x5},_0x5ea821={_0x47a85a:0x433,_0x4cdb2e:0xe2};function _0x2afebc(_0x611fdd,_0x5bf045,_0x3468b5,_0x4351c1){return _0x211934(_0x611fdd- -_0x5ea821._0x47a85a,_0x5bf045-_0x5ea821._0x4cdb2e,_0x3468b5,_0x4351c1-0x1c5);}function _0x31d89b(_0x3b65fd,_0x4b6436,_0x2a080e,_0x25a2f7){return _0x211934(_0x25a2f7- -0x3c8,_0x4b6436-0x70,_0x4b6436,_0x25a2f7-_0x29710c._0x37aa0f);}return{'allCompleted':_0x2ea81f,'items':_0x32fb3b[_0x31d89b(-_0x318b59._0x27657a,_0x318b59._0x3774d1,-0x1bf,-_0x318b59._0x4a54a5)](_0xef9baa=>({'id':_0xef9baa['id'],'content':_0xef9baa[_0x2afebc(0x102,0x17a,0x21e,0xa7)],'status':_0xef9baa['status'],'priority':_0xef9baa[_0x31d89b(0x204,0x13a,0x250,0x108)],'createdAt':_0xef9baa[_0x31d89b(0x22a,0x183,0x102,0x16b)]})),'progress':createStatsProgress(_0x40e2d4),'recentChanges':!![],'sessionId':_0x4cfe26,'stats':_0x40e2d4,'todosWritten':_0x32fb3b['length']};}function createOutputText(_0x3927ea,_0x1235bd){const _0x33f46b={_0x13b20e:0x6d6,_0x2d87c8:0x702,_0x37b58f:0x631,_0x456a9c:0x1f4,_0x542718:0x24f,_0x48f05d:0x19d,_0x462f6e:0xca,_0x4c4e78:0xf1,_0x403d3b:0x1a6,_0x33240c:0x1ed,_0x3cf914:0x64,_0x2b3b25:0x590,_0x5ce8ca:0x433},_0x223104={_0x14b92d:0x5ab},_0x99c26={_0x41310d:0x182,_0x3cad07:0x17e},_0xb32015=JSON[_0x5acae0(_0x33f46b._0x13b20e,_0x33f46b._0x2d87c8,0x73a,_0x33f46b._0x37b58f)](createReminderItems(_0x3927ea));if(_0x1235bd)return _0x6c45ff(_0x33f46b._0x456a9c,0x2c0,0x342,_0x33f46b._0x542718)+_0x3927ea[_0x6c45ff(_0x33f46b._0x48f05d,0x139,0xfe,_0x33f46b._0x462f6e)]+_0x6c45ff(_0x33f46b._0x4c4e78,_0x33f46b._0x403d3b,0x120,0x1bd)+_0xb32015+_0x6c45ff(_0x33f46b._0x33240c,0x7,-_0x33f46b._0x3cf914,_0x33f46b._0x4c4e78);function _0x5acae0(_0x7bf1d,_0xe395ec,_0x1f2f9d,_0x3a29bf){return _0x4820c3(_0x7bf1d-_0x99c26._0x41310d,_0xe395ec-0xb1,_0xe395ec,_0x3a29bf- -_0x99c26._0x3cad07);}function _0x6c45ff(_0x442e63,_0xbe3547,_0x488af3,_0x349da0){return _0x4820c3(_0x442e63-0x140,_0xbe3547-0x54,_0xbe3547,_0x349da0- -_0x223104._0x14b92d);}return _0x5acae0(_0x33f46b._0x2b3b25,_0x33f46b._0x5ce8ca,0x53e,0x467)+_0xb32015+'.\x0a</system-reminder>';}function createTodoWriteTool(_0x1eea24=new TodoStore()){const _0x539177={_0x47f80b:0x85,_0x46fcd8:0x22,_0x1073eb:0x1ed,_0x5f3ad1:0x18a,_0x2e1a72:0xbe,_0x5163d9:0xa3,_0x4b4f7a:0x17f,_0x3b5c46:0x1a7,_0x93477:0x10d,_0x50e228:0xcc,_0x3da725:0x16b,_0x37e949:0x9f,_0x5c455d:0x8e,_0x316483:0x5b,_0x56279c:0x3a,_0x528b66:0x8,_0x2184b8:0x22f,_0x4ac480:0x282},_0x3c099c={_0x4e6561:0x441,_0x2e53f2:0x37a,_0x2a6866:0x550,_0xc40e2a:0x5f5,_0x151db6:0x414,_0x3038fb:0x55b,_0x13dc03:0x368,_0x4d647d:0x47d,_0xbe3188:0x427,_0x9f786a:0x2cd,_0x11fcbe:0x424,_0x2db67c:0x4a2},_0x42a3b8={_0x3f3b3e:0x360,_0x54dea7:0x54},_0x138c44={_0x50948e:0x23},_0x23e7bf={_0x48cdf7:0x34,_0x3acfe0:0x1a0,_0x1b521e:0x756};function _0xbf0ac2(_0x3e086a,_0x2428bd,_0x813351,_0x2eee72){return _0x4820c3(_0x3e086a-_0x23e7bf._0x48cdf7,_0x2428bd-_0x23e7bf._0x3acfe0,_0x2428bd,_0x2eee72- -_0x23e7bf._0x1b521e);}function _0x10690f(_0xf55fbc,_0x2ea23b,_0x3b39b5,_0x3bf0bb){return _0x211934(_0xf55fbc- -0x24d,_0x2ea23b-_0x138c44._0x50948e,_0x3b39b5,_0x3bf0bb-0x14b);}return defineTool({'name':_0xbf0ac2(-_0x539177._0x47f80b,0x110,-0x2c,0x86),'description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':'object','properties':{'todos':{'type':_0x10690f(0x149,_0x539177._0x46fcd8,_0x539177._0x1073eb,_0x539177._0x5f3ad1),'items':{'type':_0xbf0ac2(-_0x539177._0x2e1a72,-0x195,-_0x539177._0x5163d9,-_0x539177._0x4b4f7a),'properties':{'content':{'type':_0xbf0ac2(-_0x539177._0x3b5c46,-0x27a,-0x251,-0x16b)},'status':{'type':_0xbf0ac2(-0x26b,-_0x539177._0x93477,-_0x539177._0x50e228,-_0x539177._0x3da725)},'priority':{'type':'string'},'id':{'type':_0x10690f(0x152,_0x539177._0x37e949,_0x539177._0x5c455d,_0x539177._0x316483)},'createdAt':{'type':'string'}},'required':[_0xbf0ac2(0x15,-0x35,0x173,0x2b),_0xbf0ac2(_0x539177._0x56279c,-0x99,0x40,-_0x539177._0x528b66),_0x10690f(0x283,0x230,0x124,0x34b),'id']}}},'required':[_0x10690f(_0x539177._0x2184b8,0x10e,_0x539177._0x4ac480,0x1a5)]},async *'execute'(_0xb8157c,_0x19a05f){const _0x4fb86c={_0x1ce5bb:0x175,_0x5a0cdc:0x39,_0x425142:0x508},_0x33deaa=_0xb8157c;validateTodos(_0x33deaa);const _0x332fdc=_0x19a05f['sessionId']||_0x50629a(_0x3c099c._0x4e6561,_0x3c099c._0x2e53f2,_0x3c099c._0x2a6866,0x2f0),_0x17fec8=new Date()[_0x50629a(0x547,0x500,_0x3c099c._0xc40e2a,_0x3c099c._0x151db6)](),_0x449dbf=_0x33deaa[_0x50629a(0x47a,0x466,0x53b,_0x3c099c._0x3038fb)]['map'](_0x5b7d17=>({'id':_0x5b7d17['id'],'content':_0x5b7d17[_0x50629a(0x533,0x430,0x479,0x666)],'status':_0x5b7d17[_0x50629a(0x500,0x612,0x649,0x417)],'priority':_0x5b7d17[_0x4c0386(0x548,0x4de,0x5e3,0x5fe)],'sessionId':_0x332fdc,'createdAt':_0x5b7d17[_0x4c0386(0x72c,0x6b2,0x646,0x4fc)]||_0x17fec8,'updatedAt':_0x17fec8}));_0x1eea24[_0x50629a(0x4b2,0x412,_0x3c099c._0x13dc03,_0x3c099c._0x4d647d)](_0x332fdc,_0x449dbf);const _0x49564b=_0x1eea24['getStats'](_0x332fdc);function _0x50629a(_0x2cf5c5,_0x5d5f5b,_0xbdb81a,_0x253416){return _0xbf0ac2(_0x2cf5c5-_0x4fb86c._0x1ce5bb,_0xbdb81a,_0xbdb81a-_0x4fb86c._0x5a0cdc,_0x2cf5c5-_0x4fb86c._0x425142);}function _0x4c0386(_0x46eb7f,_0x32de6e,_0xf3633a,_0x4ad377){return _0x10690f(_0xf3633a-_0x42a3b8._0x3f3b3e,_0x32de6e-0x166,_0x4ad377,_0x4ad377-_0x42a3b8._0x54dea7);}const _0x3d4233=_0x449dbf[_0x50629a(_0x3c099c._0xbe3188,_0x3c099c._0x9f786a,0x34b,_0x3c099c._0x11fcbe)]>0x0&&_0x449dbf[_0x50629a(_0x3c099c._0x2db67c,0x3b8,0x42e,0x41f)](_0x1d82b6=>_0x1d82b6[_0x4c0386(0x5dc,0x517,0x615,0x522)]===_0x50629a(0x321,0x406,0x402,0x44c));return createToolOutput(createOutputText(_0x449dbf,_0x3d4233),createStructuredResult(_0x332fdc,_0x449dbf,_0x49564b,_0x3d4233));}});}import{mkdir as _0x20469a,writeFile as _0x55e403}from'fs/promises';import*as _0x1630d0 from'path';function sanitizeFileName(_0x327766){const _0x7d5a70={_0x1459d0:0x125,_0xeae8f:0x1c1,_0x1e7965:0x52},_0x9ef13b={_0x20c18b:0x336,_0x5c3170:0x17d};function _0x2c221d(_0x34352c,_0x2cee8c,_0x310b29,_0x1166ba){return _0x211934(_0x1166ba- -_0x9ef13b._0x20c18b,_0x2cee8c-0x192,_0x310b29,_0x1166ba-_0x9ef13b._0x5c3170);}return _0x327766[_0x2c221d(_0x7d5a70._0x1459d0,_0x7d5a70._0xeae8f,-_0x7d5a70._0x1e7965,0xff)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x45f235,_0x490a03){const _0x57bf96={_0x1699c3:0x1b7,_0x2e3c44:0x164,_0x1bdc94:0x12e,_0x245e7f:0x427,_0x24a4b3:0x4d5,_0x50470c:0x552,_0x2508dc:0x55b,_0x147e91:0x418,_0x47948e:0x12,_0x86da0d:0x131,_0x5d7902:0x38e,_0x43fc69:0x29c,_0x48860c:0x30b,_0xcff438:0x451,_0x27dcb8:0x30f,_0x15cb49:0x9c,_0x24326a:0x1c0,_0x13c7e7:0x36,_0x25f4d6:0x4b3,_0xf0235d:0x4eb,_0x2fe68c:0x3da,_0x4d36f6:0x164,_0x2b7484:0x18f,_0x2b51f8:0x5db,_0x19f67f:0x577,_0x463b97:0x34e,_0x3b0f00:0x3e7,_0x525d2d:0x31b,_0x567c7f:0x3c3,_0x13a8c0:0x218,_0x50fd60:0x1e3,_0x507dbf:0x538,_0x1d643c:0x467,_0x45a85b:0x2d,_0xb78559:0x15e,_0x3ec3ad:0x26d,_0x554cbb:0x590,_0x42af2d:0x6a6,_0x5ad2a7:0x64c,_0x3b1425:0x345,_0x1db93e:0x3a0,_0x550936:0x46e,_0x13d8e2:0x594,_0x48d1cb:0x547,_0x59799c:0x600,_0x33cc68:0x390},_0x48086b={_0x35c71b:0x64},_0x31fe73={_0x11ce44:0x26,_0x27f458:0x447},{maxBytes:_0x517bdc,sessionDir:_0x441168}=_0x490a03;function _0x2496d0(_0x428636,_0x391977,_0x31091f,_0x1ffc2f){return _0x4820c3(_0x428636-0xa4,_0x391977-_0x31fe73._0x11ce44,_0x1ffc2f,_0x391977- -_0x31fe73._0x27f458);}if(!_0x45f235['output']||Buffer['byteLength'](_0x45f235[_0x2496d0(_0x57bf96._0x1699c3,_0x57bf96._0x2e3c44,0x200,_0x57bf96._0x1bdc94)],_0x47e628(0x4d5,0x498,0x433,0x4ce))<=_0x517bdc)return _0x45f235;function _0x47e628(_0xe4cfac,_0x117526,_0x3249bd,_0x4b195f){return _0x211934(_0xe4cfac- -0x11,_0x117526-0x1be,_0x117526,_0x4b195f-_0x48086b._0x35c71b);}const _0x1acaf4=Buffer[_0x47e628(0x471,0x317,_0x57bf96._0x245e7f,0x3e0)](_0x45f235['output'],_0x47e628(_0x57bf96._0x24a4b3,_0x57bf96._0x50470c,_0x57bf96._0x2508dc,0x432));if(!_0x441168){const _0x4fe254=_0x45f235[_0x47e628(0x34e,0x463,_0x57bf96._0x147e91,0x47d)][_0x2496d0(_0x57bf96._0x47948e,_0x57bf96._0x86da0d,0x148,0x244)](0x0,_0x517bdc);return{..._0x45f235,'output':_0x4fe254+(_0x47e628(0x39d,_0x57bf96._0x5d7902,_0x57bf96._0x43fc69,0x459)+_0x517bdc+_0x47e628(_0x57bf96._0x48860c,0x1c3,0x245,0x273)+_0x1acaf4+_0x47e628(_0x57bf96._0xcff438,0x4fe,0x397,_0x57bf96._0x27dcb8)),'meta':{..._0x45f235[_0x2496d0(_0x57bf96._0x15cb49,0x195,0x115,0x91)],'truncated':!![],'originalBytes':_0x1acaf4,'transforms':[..._0x45f235[_0x2496d0(0x1a2,0x195,_0x57bf96._0x24326a,_0x57bf96._0x13c7e7)]['transforms'],_0x2496d0(0x299,0x25e,0x1f9,0x14c)]}};}const _0x58f46c=_0x45f235[_0x47e628(0x3b8,_0x57bf96._0x25f4d6,0x36d,0x4c6)]+'_'+sanitizeFileName(_0x45f235[_0x47e628(0x463,_0x57bf96._0xf0235d,0x46f,0x443)])+'.log',_0x353d90=_0x1630d0[_0x47e628(0x3a0,0x3c1,_0x57bf96._0x2fe68c,0x369)](_0x441168,_0x58f46c);await _0x20469a(_0x441168,{'recursive':!![]}),await _0x55e403(_0x353d90,_0x45f235[_0x2496d0(0x14a,_0x57bf96._0x4d36f6,0x207,_0x57bf96._0x2b7484)],_0x47e628(0x4d5,_0x57bf96._0x2b51f8,_0x57bf96._0x19f67f,0x620));let _0x5e5545=_0x45f235[_0x47e628(_0x57bf96._0x463b97,0x2d2,_0x57bf96._0x3b0f00,0x29b)][_0x47e628(_0x57bf96._0x525d2d,_0x57bf96._0x567c7f,_0x57bf96._0x13a8c0,0x1ec)](0x0,_0x517bdc);const _0x5e9474=_0x5e5545[_0x2496d0(0x1ca,0x1a2,0x21c,_0x57bf96._0x50fd60)]('\x0a');_0x5e9474>_0x517bdc*0.5&&(_0x5e5545=_0x5e5545['slice'](0x0,_0x5e9474));const _0xa96ea0=['','<system-reminder>',_0x47e628(0x55f,0x4c4,_0x57bf96._0x507dbf,_0x57bf96._0x1d643c)+_0x517bdc+_0x2496d0(_0x57bf96._0x45a85b,_0x57bf96._0xb78559,_0x57bf96._0x3ec3ad,0xb2)+_0x1acaf4+_0x47e628(_0x57bf96._0x554cbb,_0x57bf96._0x42af2d,0x607,_0x57bf96._0x5ad2a7),'Full\x20output\x20saved\x20to:\x20'+_0x353d90,_0x47e628(0x306,0x316,0x426,_0x57bf96._0x3b1425),'</system-reminder>'][_0x47e628(_0x57bf96._0x1db93e,_0x57bf96._0x550936,0x26c,0x2e0)]('\x0a');return{..._0x45f235,'output':_0x5e5545+_0xa96ea0,'meta':{..._0x45f235['meta'],'truncated':!![],'originalBytes':_0x1acaf4,'transforms':[..._0x45f235['meta'][_0x47e628(_0x57bf96._0x13d8e2,_0x57bf96._0x48d1cb,_0x57bf96._0x59799c,0x5fb)],_0x47e628(0x448,_0x57bf96._0x33cc68,0x3ae,0x506)]}};}function createUpdateTopicTool(){const _0x561dfa={_0x1caea3:0x61a,_0x786b22:0x5a0,_0x34874c:0x3c8,_0x28f6c9:0x382,_0x3267a6:0x48e},_0x356614={_0x530b1:0x384,_0xaf3add:0x304,_0x20e1a6:0x133,_0x1f356f:0x9c,_0xde19d9:0x2bb,_0x234928:0x3ba,_0x3933d4:0x28b,_0xacb4b5:0x528,_0x83a48e:0x48b},_0x60d14e={_0x43c5fa:0x8c,_0x148345:0x1e4},_0x55c941={_0x120389:0xd4},_0x49ddae={_0x44fab5:0x11d};function _0x17d485(_0x16ef39,_0x5534a8,_0x5f0d02,_0x5df44f){return _0x211934(_0x5df44f-0xce,_0x5534a8-0x3c,_0x16ef39,_0x5df44f-_0x49ddae._0x44fab5);}function _0x5001fd(_0x56c3e8,_0x116a29,_0x4c65c9,_0x5ea5f8){return _0x211934(_0x116a29- -0x4e,_0x116a29-_0x55c941._0x120389,_0x56c3e8,_0x5ea5f8-0x135);}return defineTool({'name':'updateTopic','description':_0x17d485(0x63f,0x52c,_0x561dfa._0x1caea3,_0x561dfa._0x786b22),'inputSchema':{'type':_0x17d485(_0x561dfa._0x34874c,_0x561dfa._0x28f6c9,_0x561dfa._0x3267a6,0x459),'properties':{'topic':{'type':'string'}},'required':['topic']},async *'execute'(_0xfb221b,_0x7ae357){const _0x4b6e8c={_0x572967:0x12d};function _0x204d94(_0x43211e,_0x5a12bd,_0x3e0911,_0x3ae6f0){return _0x5001fd(_0x43211e,_0x3e0911-_0x60d14e._0x43c5fa,_0x3e0911-0x15c,_0x3ae6f0-_0x60d14e._0x148345);}const {topic:_0xccf4cc}=_0xfb221b;if(typeof _0xccf4cc!==_0x204d94(0x34d,_0x356614._0x530b1,0x3dd,_0x356614._0xaf3add)||_0xccf4cc[_0x16d9f7(0x1a8,_0x356614._0x20e1a6,0x1b6,_0x356614._0x1f356f)]()['length']===0x0)throw new ToolExecutionError(_0x16d9f7(_0x356614._0xde19d9,0x2aa,_0x356614._0x234928,_0x356614._0x3933d4),{'error':_0x204d94(0x692,0x6bc,0x5a6,0x622)});const _0x33267e=_0xccf4cc['trim']();_0x7ae357['setTopic']?.(_0x33267e);function _0x16d9f7(_0x356f2a,_0xf530d6,_0xb506a8,_0x8d2d91){return _0x5001fd(_0x8d2d91,_0xf530d6- -0x25f,_0xb506a8-0x15f,_0x8d2d91-_0x4b6e8c._0x572967);}return yield createToolOutput(_0x204d94(_0x356614._0xacb4b5,0x40f,_0x356614._0x83a48e,0x423)+_0x33267e+'\x22',{'topic':_0x33267e}),void 0x0;}});}import{readFile as _0x2ede02,stat as _0x5779c3}from'fs/promises';import*as _0x5273b0 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x211934(0x4fa,0x469,0x4e4,0x51d),_0x211934(0x343,0x201,0x329,0x3dc),'low',_0x4820c3(0x570,0x6ff,0x767,0x6b5)]),PNG_SIGNATURE=Buffer[_0x211934(0x431,0x3a0,0x398,0x476)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x3fe40f,_0x1ff259){const _0x57b88b={_0x2fc309:0x239,_0x44b1ca:0x366,_0x3b06b7:0x178,_0x5bfb6f:0x261,_0x38113a:0x1e2,_0x26eafe:0x267,_0x4e2bc7:0x11e,_0x259756:0x23c,_0x47c4bb:0x165,_0x1ebb6d:0x288,_0x8ca16e:0x224,_0xbaea54:0x73,_0x131378:0x29d,_0x2642c8:0x19a,_0x29d0af:0x2d5,_0x2c1e20:0x97,_0x4aa68d:0x154,_0x1ed94f:0x191,_0x5218e8:0x152,_0x574e60:0x148,_0xa09115:0x196,_0x3ef422:0x2c6,_0x37740b:0x123,_0x1ba216:0x10,_0x4b784c:0x112,_0x1b77d4:0x151,_0x5c9e69:0x32e,_0x3dedc8:0x2ed,_0x4a1736:0x358,_0x28af0b:0x40d,_0x1d573:0x488,_0x2e3326:0x33f,_0x46db4b:0x204,_0x423494:0x2,_0x29d3cf:0x1a,_0x1d4447:0x30,_0x2eec95:0x63,_0x5b63c8:0x1ac,_0x3d8089:0x127,_0x3a670f:0x29c,_0x47d217:0x15e},_0x3e884d={_0x5610b8:0x551},_0x4fb38a={_0x530918:0x260};if(_0x3fe40f['subarray'](0x0,0x8)[_0x7e4842(_0x57b88b._0x2fc309,0x1a3,_0x57b88b._0x44b1ca,_0x57b88b._0x3b06b7)](PNG_SIGNATURE))return _0x3e3a66(0xb8,0x250,0x1dc,0x2fe);if(_0x3fe40f[0x0]===0xff&&_0x3fe40f[0x1]===0xd8&&_0x3fe40f[0x2]===0xff)return _0x7e4842(_0x57b88b._0x5bfb6f,_0x57b88b._0x38113a,0x2b6,0x2fb);const _0x10ef75=_0x3fe40f[_0x7e4842(_0x57b88b._0x26eafe,0x2d4,_0x57b88b._0x4e2bc7,_0x57b88b._0x259756)](0x0,0x6)[_0x7e4842(0x236,0x396,_0x57b88b._0x47c4bb,0x15c)](_0x7e4842(_0x57b88b._0x1ebb6d,0x33e,_0x57b88b._0x8ca16e,0x2d4));function _0x7e4842(_0x2b857f,_0x573bb2,_0x31475d,_0x2a19df){return _0x211934(_0x2b857f- -_0x4fb38a._0x530918,_0x573bb2-0xd8,_0x573bb2,_0x2a19df-0x163);}if(_0x10ef75===_0x3e3a66(0x230,0x1cb,0x1ee,0x11d)||_0x10ef75===_0x3e3a66(0x15f,_0x57b88b._0xbaea54,0x5e,0xaf))return _0x3e3a66(0x69,_0x57b88b._0x131378,_0x57b88b._0x2642c8,0x117);if(_0x3fe40f['subarray'](0x0,0x4)['toString']('ascii')==='RIFF'&&_0x3fe40f[_0x3e3a66(_0x57b88b._0x29d0af,_0x57b88b._0x2c1e20,0x1c2,0xd4)](0x8,0xc)[_0x3e3a66(0x2c9,_0x57b88b._0x4aa68d,_0x57b88b._0x1ed94f,_0x57b88b._0x5218e8)](_0x7e4842(_0x57b88b._0x1ebb6d,0x31d,_0x57b88b._0x574e60,_0x57b88b._0xa09115))===_0x7e4842(0x1ee,_0x57b88b._0x3ef422,0xff,0x1be))return _0x3e3a66(_0x57b88b._0x37740b,-_0x57b88b._0x1ba216,_0x57b88b._0x4b784c,_0x57b88b._0x1b77d4);const _0x2d63e7=_0x5273b0[_0x7e4842(_0x57b88b._0x5c9e69,_0x57b88b._0x3dedc8,0x2ea,0x428)](_0x1ff259)['toLowerCase']();if(_0x2d63e7===_0x7e4842(_0x57b88b._0x4a1736,_0x57b88b._0x28af0b,0x459,_0x57b88b._0x1d573))return _0x7e4842(0x281,0x322,_0x57b88b._0x2e3326,_0x57b88b._0x46db4b);if(_0x2d63e7===_0x3e3a66(0x16e,_0x57b88b._0x423494,_0x57b88b._0x29d3cf,0x16c)||_0x2d63e7===_0x3e3a66(-0x38,0x16f,_0x57b88b._0x1d4447,0x4a))return _0x3e3a66(_0x57b88b._0x2eec95,0x23a,0x1bc,0x1ac);if(_0x2d63e7===_0x3e3a66(_0x57b88b._0x5b63c8,-0x1f,0x10f,_0x57b88b._0x3d8089))return _0x3e3a66(0x16b,_0x57b88b._0x3a670f,0x19a,0x182);function _0x3e3a66(_0x344c6b,_0x46f2fa,_0x4ac2dd,_0x53c864){return _0x4820c3(_0x344c6b-0xc5,_0x46f2fa-0x184,_0x53c864,_0x4ac2dd- -_0x3e884d._0x5610b8);}if(_0x2d63e7==='.webp')return _0x3e3a66(0x179,-0x29,0x112,_0x57b88b._0x47d217);return void 0x0;}function normalizeDetail(_0x4198bf){const _0x383630={_0x5ca9ff:0x4ad,_0x4c41aa:0x842,_0x575dce:0x718,_0x4d335c:0x76a,_0x5bb47d:0x557,_0x330e91:0x76c,_0x344ecd:0x666,_0x40ef76:0x621,_0x26405e:0x5db,_0x3afc07:0x6f7},_0x46e4b0={_0x2e47ce:0xdd,_0x473fa9:0x144},_0x2d8120={_0x3e0668:0x1e4};if(_0x4198bf===void 0x0)return void 0x0;const _0x1c5413=_0x4198bf[_0x26a201(0x5ee,0x6d5,0x5cf,_0x383630._0x5ca9ff)]()[_0x26a201(_0x383630._0x4c41aa,0x77d,_0x383630._0x575dce,_0x383630._0x4d335c)]();function _0x26a201(_0x1acebf,_0x280cd1,_0x2cc9ae,_0x4289f1){return _0x4820c3(_0x1acebf-0x81,_0x280cd1-_0x2d8120._0x3e0668,_0x280cd1,_0x2cc9ae- -0x5d);}if(!SUPPORTED_DETAILS[_0x26a201(_0x383630._0x5bb47d,_0x383630._0x330e91,_0x383630._0x344ecd,_0x383630._0x40ef76)](_0x1c5413))throw new ToolExecutionError(_0x26a201(0x6db,_0x383630._0x26405e,_0x383630._0x3afc07,0x676)+_0x4198bf,{'detail':_0x4198bf});function _0x37d177(_0x545968,_0x412fa3,_0x2dfd49,_0x3f9ad5){return _0x4820c3(_0x545968-_0x46e4b0._0x2e47ce,_0x412fa3-0xba,_0x412fa3,_0x2dfd49- -_0x46e4b0._0x473fa9);}return _0x1c5413;}function createViewFileTool(_0x28f6c1={}){const _0x3a3412={_0x5a67ed:0x182,_0x31a417:0x106,_0x242241:0x154,_0x21ab1d:0x11f,_0x38215f:0xbb,_0x409d5a:0x27,_0x574ae4:0x173,_0x2deb18:0x38,_0x483f2c:0xc,_0x14dca5:0x369,_0x1a2bb8:0x3b8,_0x57aa3d:0x3f0,_0x261e44:0x185,_0x3bdf51:0x10c,_0x972967:0x136,_0x171e97:0xf9,_0x2ad01c:0x1b,_0x51f4f6:0x66,_0x4f27b8:0x15c,_0x39d5f3:0xee,_0x269809:0x10a,_0x9e26ce:0x83,_0x457d3f:0x113},_0x292118={_0x51d9cd:0x259,_0x402200:0x38e,_0x404245:0x369,_0xa730a:0x45a,_0x14f05b:0x304,_0x502b63:0x349,_0x4537ef:0x32a,_0x3aaf62:0x303,_0xc1fb7e:0x2d3,_0xbe6b0f:0x20c,_0x4698ab:0x1f6,_0x48916f:0x33f,_0x30631c:0x48f,_0x4b8c56:0x54f,_0x5fd355:0x597,_0x3e37b8:0x4af,_0x3921df:0x3c3,_0x2d7d75:0x429,_0x574dd6:0x351,_0x91ce71:0x458,_0x4edd8b:0x124,_0x3ea793:0x247,_0x2dc128:0x100,_0x14f4ba:0x2ca,_0x288e90:0x355,_0x3632ac:0x4b5,_0x2e7a7c:0x49b,_0xa56937:0x44a,_0x4c56c4:0x35a,_0x3a3b99:0x4e7,_0x28ac1f:0x4f7,_0x3c99f0:0x2f9,_0x5a3d2f:0x4d3,_0x4a4c1d:0x302,_0x13c053:0x408,_0x3d1e38:0x3e4,_0x2a2255:0x53b,_0x1ad529:0x56c,_0x522344:0x693,_0x3fe9ef:0x502,_0x81ee7a:0x578,_0x2a3d6d:0x464,_0x175af5:0x50b,_0x46f2ef:0x64c,_0x4d6c2c:0x3d0,_0x89592b:0x431,_0x48a002:0x50b},_0x4dd083={_0x1f4e93:0x5f2},_0x47d909={_0x414b3f:0x1ed,_0x4d95dd:0x115,_0x180526:0x566},_0x36cd59=_0x5273b0[_0x4515f6(_0x3a3412._0x5a67ed,_0x3a3412._0x31a417,0x43,_0x3a3412._0x242241)](_0x28f6c1[_0x11b903(_0x3a3412._0x21ab1d,-_0x3a3412._0x38215f,_0x3a3412._0x409d5a,_0x3a3412._0x574ae4)]??process['cwd']()),_0x50ace=(_0x28f6c1['allowedDirs']??[])[_0x4515f6(0x136,-_0x3a3412._0x2deb18,0xa6,_0x3a3412._0x483f2c)](_0x1ab7b5=>_0x5273b0[_0x11b903(0xa1,0x1cf,0xc8,0x213)](_0x1ab7b5)),_0x1f3e72=_0x28f6c1['maxBytes']??DEFAULT_MAX_BYTES,_0x310f3f=_0x28f6c1[_0x4515f6(_0x3a3412._0x14dca5,_0x3a3412._0x1a2bb8,_0x3a3412._0x57aa3d,0x29c)]??_0x4515f6(0xd,_0x3a3412._0x261e44,0x8e,_0x3a3412._0x3bdf51);function _0x4515f6(_0xbc1179,_0x4255bc,_0x1e7188,_0x137350){return _0x4820c3(_0xbc1179-_0x47d909._0x414b3f,_0x4255bc-_0x47d909._0x4d95dd,_0x1e7188,_0x137350- -_0x47d909._0x180526);}function _0x11b903(_0x44bb2f,_0x5e0121,_0x47ed1a,_0x11f76e){return _0x4820c3(_0x44bb2f-0x13b,_0x5e0121-0x13,_0x11f76e,_0x47ed1a- -_0x4dd083._0x1f4e93);}return defineTool({'name':_0x310f3f,'description':_0x4515f6(0x119,_0x3a3412._0x972967,_0x3a3412._0x171e97,0x12f),'inputSchema':{'type':_0x11b903(0x26,0x11b,-_0x3a3412._0x2ad01c,-_0x3a3412._0x51f4f6),'properties':{'path':{'type':'string'},'detail':{'type':_0x11b903(-_0x3a3412._0x4f27b8,_0x3a3412._0x39d5f3,-0x7,-0x123)}},'required':[_0x4515f6(0x191,_0x3a3412._0x269809,_0x3a3412._0x9e26ce,_0x3a3412._0x457d3f)]},async *'execute'(_0x4cdfa1){const _0x8c9143={_0x5293ba:0x155,_0x74ae66:0x1cb,_0x4a7cc0:0x1f1},_0x33a237={_0x3adf83:0xc5,_0x55894d:0x35},_0x43c258=resolveAllowedPath(_0x36cd59,_0x50ace,_0x4cdfa1['path']);await assertWorkspaceFile(_0x43c258);const _0x1d3ac4=await _0x5779c3(_0x43c258);if(_0x1d3ac4['size']>_0x1f3e72)throw new ToolExecutionError(_0x1227ad(_0x292118._0x51d9cd,_0x292118._0x402200,0x46b,0x32b)+_0x4cdfa1[_0x257ec0(_0x292118._0x404245,_0x292118._0xa730a,_0x292118._0x14f05b,0x27f)],{'path':_0x4cdfa1['path'],'maxBytes':_0x1f3e72,'size':_0x1d3ac4['size']});function _0x1227ad(_0x57e2de,_0x1a98b9,_0x590473,_0x30dda0){return _0x11b903(_0x57e2de-_0x33a237._0x3adf83,_0x1a98b9-_0x33a237._0x55894d,_0x1a98b9-0x35f,_0x57e2de);}const _0x2257ff=await _0x2ede02(_0x43c258),_0x4d017b=detectImageMediaType(_0x2257ff,_0x43c258);if(!_0x4d017b)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x4cdfa1['path'],{'path':_0x4cdfa1['path'],'supported':[_0x1227ad(_0x292118._0x502b63,0x3cd,0x502,_0x292118._0x4537ef),_0x257ec0(_0x292118._0x3aaf62,_0x292118._0xc1fb7e,_0x292118._0xbe6b0f,0x2c2),_0x257ec0(0xe0,0xad,_0x292118._0x4698ab,_0x292118._0x48916f),_0x257ec0(0x503,0x5b2,_0x292118._0x30631c,0x4ca),_0x1227ad(0x475,_0x292118._0x4b8c56,0x466,_0x292118._0x5fd355)]});const _0x3ac947=normalizeDetail(_0x4cdfa1['detail']),_0x1bb1ca=[_0x1227ad(0x3ed,0x364,0x25d,0x3f9)+_0x4cdfa1[_0x1227ad(_0x292118._0x3e37b8,0x3e6,0x50d,_0x292118._0x3921df)],'MIME:\x20'+_0x4d017b,'Size:\x20'+_0x1d3ac4[_0x257ec0(0x2d7,0x579,_0x292118._0x2d7d75,0x47f)]+_0x1227ad(0x2a7,_0x292118._0x574dd6,_0x292118._0x91ce71,0x28c)][_0x257ec0(0x2b6,_0x292118._0x4edd8b,_0x292118._0x3ea793,_0x292118._0x2dc128)](_0x3ac947?[_0x257ec0(0x389,0x19f,0x2b5,0x1d0)+_0x3ac947]:[])[_0x257ec0(_0x292118._0x14f4ba,_0x292118._0x288e90,0x288,0x19f)]('\x0a');function _0x257ec0(_0x5c36e4,_0x1f79a7,_0x2823f0,_0x8c00a1){return _0x4515f6(_0x5c36e4-_0x8c9143._0x5293ba,_0x1f79a7-_0x8c9143._0x74ae66,_0x5c36e4,_0x2823f0-_0x8c9143._0x4a7cc0);}const _0x57d8eb=[{'type':_0x1227ad(0x5b0,_0x292118._0x3632ac,_0x292118._0x2e7a7c,_0x292118._0xa56937),'source':{'type':_0x257ec0(_0x292118._0x4c56c4,0x3be,0x3aa,_0x292118._0x3a3b99),'media_type':_0x4d017b,'data':_0x2257ff['toString'](_0x1227ad(0x417,0x48c,0x536,_0x292118._0x28ac1f))}},{'type':_0x1227ad(_0x292118._0x3c99f0,0x3c8,_0x292118._0x5a3d2f,_0x292118._0x4a4c1d),'text':_0x1bb1ca}];return yield createToolOutput(_0x1bb1ca,{'path':_0x4cdfa1[_0x1227ad(_0x292118._0x13c053,0x3e6,_0x292118._0x3d1e38,_0x292118._0x2a2255)],'resolvedPath':_0x43c258,'created':_0x1d3ac4[_0x1227ad(0x523,_0x292118._0x1ad529,_0x292118._0x522344,0x466)][_0x1227ad(0x5e6,0x502,0x5b7,0x52c)](),'modified':_0x1d3ac4['mtime'][_0x1227ad(0x3f3,_0x292118._0x3fe9ef,_0x292118._0x81ee7a,0x4f1)](),'size':_0x1d3ac4[_0x1227ad(_0x292118._0x2a3d6d,_0x292118._0x175af5,_0x292118._0x46f2ef,_0x292118._0x4d6c2c)],'mimeType':_0x4d017b,'encoding':_0x1227ad(_0x292118._0x89592b,0x48c,0x5d7,_0x292118._0x48a002),..._0x3ac947?{'detail':_0x3ac947}:{}},_0x57d8eb),void 0x0;}});}import _0x22c2a2 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x106a95=>{const _0x2400b3={_0x2c39a0:0x5f8,_0x1bbf22:0x6c1,_0x17d037:0x47b},_0x2ae993={_0x4761b0:0x183,_0x17ffac:0x3b},{lookup:_0x1b0ddf}=await import(_0x180809(0x5d8,_0x2400b3._0x2c39a0,_0x2400b3._0x1bbf22,_0x2400b3._0x17d037));function _0x180809(_0x44c46d,_0x2bfc1c,_0x29964,_0xd1fe6d){return _0x211934(_0x44c46d-_0x2ae993._0x4761b0,_0x2bfc1c-_0x2ae993._0x17ffac,_0x2bfc1c,_0xd1fe6d-0x16);}return _0x1b0ddf(_0x106a95,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x3617b8){const _0x63a3b2={_0x2a100d:0x185,_0xd23a67:0x134,_0x25487f:0x3cd,_0x25ff17:0x9a,_0x5d2e94:0xe},_0x313b9b={_0x5e3f88:0xc3},_0xcbc2df={_0x4ab61b:0x71c};function _0x207f62(_0x2f7095,_0x42d217,_0x504ef2,_0x2a7816){return _0x4820c3(_0x2f7095-0x15a,_0x42d217-0x15d,_0x42d217,_0x504ef2- -_0xcbc2df._0x4ab61b);}const _0x4c50ee=_0x3617b8[_0x207f62(0x1a,-_0x63a3b2._0x2a100d,-_0x63a3b2._0xd23a67,-0x55)]('.');if(_0x4c50ee[_0x479af8(_0x63a3b2._0x25487f,0x2b7,0x3a0,0x3ef)]!==0x4)return null;let _0x19f2cf=0x0;function _0x479af8(_0x3b3d64,_0x3715e1,_0xc764b6,_0xd8eaed){return _0x4820c3(_0x3b3d64-0xc3,_0x3715e1-_0x313b9b._0x5e3f88,_0xc764b6,_0xd8eaed- -0x286);}for(const _0x877657 of _0x4c50ee){if(!/^\d{1,3}$/[_0x207f62(-0x1f,_0x63a3b2._0x25ff17,-_0x63a3b2._0x5d2e94,-0x115)](_0x877657))return null;const _0xd2ba22=Number(_0x877657);if(_0xd2ba22>0xff)return null;_0x19f2cf=_0x19f2cf*0x100+_0xd2ba22;}return _0x19f2cf>>>0x0;}function isBlockedIpv4(_0x37d632){const _0x9b6343={_0x43f9aa:0x85b,_0x40d1b8:0x707,_0x3d4ad0:0x6e0,_0x41ad67:0x553,_0xcf2cdd:0x497,_0x368a3e:0xdd,_0x44813e:0x88,_0x4c496a:0x38b,_0x4d246e:0x1a3,_0x4a5dfa:0x2d0,_0x4705cf:0x2b3,_0x13ac9b:0x45b,_0x5d7e2f:0x666,_0x20783d:0x524,_0x59864a:0x123,_0x37a195:0x1ea},_0x379fd2={_0xa91fb8:0x219,_0xb8ed8a:0x1c2},_0x1f80c0={_0x4efb15:0x123},_0x574cee=ipv4ToInt(_0x37d632);if(_0x574cee===null)return!![];function _0x475e8d(_0x2d6644,_0x5421ca,_0x21fbf8,_0x56ed26){return _0x4820c3(_0x2d6644-_0x1f80c0._0x4efb15,_0x5421ca-0x1b8,_0x21fbf8,_0x56ed26- -0x439);}function _0x5c8eba(_0x596ee1,_0x335693,_0x2c14f7,_0x194e2b){return _0x211934(_0x194e2b-_0x379fd2._0xa91fb8,_0x335693-0xd2,_0x2c14f7,_0x194e2b-_0x379fd2._0xb8ed8a);}const _0x1cb992=(_0x40e38e,_0x25b521)=>{const _0x56cdb1=ipv4ToInt(_0x40e38e);if(_0x56cdb1===null)return![];const _0x4b2788=_0x25b521===0x0?0x0:0xffffffff<<0x20-_0x25b521>>>0x0;return(_0x574cee&_0x4b2788)===(_0x56cdb1&_0x4b2788);};return _0x1cb992('0.0.0.0',0x8)||_0x1cb992('10.0.0.0',0x8)||_0x1cb992(_0x5c8eba(0x710,_0x9b6343._0x43f9aa,_0x9b6343._0x40d1b8,0x7ad),0xa)||_0x1cb992(_0x5c8eba(_0x9b6343._0x3d4ad0,_0x9b6343._0x41ad67,_0x9b6343._0xcf2cdd,0x5f4),0x8)||_0x1cb992(_0x475e8d(_0x9b6343._0x368a3e,0x106,_0x9b6343._0x44813e,0x1b4),0x10)||_0x1cb992(_0x475e8d(0x25c,0x23f,0x1ee,0x277),0xc)||_0x1cb992(_0x475e8d(0x2ab,_0x9b6343._0x4c496a,0x256,0x2c9),0x18)||_0x1cb992(_0x475e8d(_0x9b6343._0x4d246e,_0x9b6343._0x4a5dfa,0x413,_0x9b6343._0x4705cf),0x10)||_0x1cb992(_0x5c8eba(0x450,_0x9b6343._0x13ac9b,_0x9b6343._0x5d7e2f,_0x9b6343._0x20783d),0xf)||_0x1cb992(_0x475e8d(0x196,0x1b7,_0x9b6343._0x59864a,_0x9b6343._0x37a195),0x4)||_0x1cb992('240.0.0.0',0x4);}function expandIpv6(_0x300f6e){const _0x23b6a2={_0x4e09dc:0x310,_0x1ba6d0:0x5a5,_0x3d495d:0x501,_0xc24ec9:0x6e0,_0x2d236c:0x789,_0x3df337:0x48c,_0x33a74d:0x590,_0x5136bc:0x70d,_0x495f29:0x599,_0x5623ce:0x682,_0x233e25:0x698,_0x5e79ff:0x649,_0x4a20cc:0x583,_0x15d55f:0x4a5},_0x345a99={_0x3bf15e:0x4a,_0x59cbb7:0x1d0};let _0x2cb8e5=_0x300f6e,_0x79ea69;const _0xc6fc7a=_0x2cb8e5[_0x56bda9(0x4cc,0x419,_0x23b6a2._0x4e09dc,0x2fd)](':');_0x2cb8e5[_0x48a189(0x585,_0x23b6a2._0x1ba6d0,0x59c,_0x23b6a2._0x3d495d)](_0xc6fc7a+0x1)[_0x48a189(_0x23b6a2._0xc24ec9,0x6a5,_0x23b6a2._0x2d236c,0x661)]('.')&&(_0x79ea69=_0x2cb8e5['slice'](_0xc6fc7a+0x1),_0x2cb8e5=_0x2cb8e5[_0x48a189(0x585,_0x23b6a2._0x3df337,_0x23b6a2._0x33a74d,0x636)](0x0,_0xc6fc7a+0x1));const _0x54a006=_0x2cb8e5[_0x48a189(0x5f5,0x4c4,0x69a,_0x23b6a2._0x5136bc)]('::');if(_0x54a006['length']>0x2)return null;const _0x1e493e=_0x1e01f2=>_0x1e01f2['split'](':')[_0x56bda9(0x49e,0x5bc,0x5ba,0x45f)](_0x233ae2=>_0x233ae2[_0x56bda9(0x4b4,0x4a5,0x4ea,0x364)]>0x0)[_0x48a189(0x57f,0x5d2,0x585,0x465)](_0x11aa9d=>Number['parseInt'](_0x11aa9d,0x10));function _0x56bda9(_0x4e8567,_0x1d83d5,_0x287728,_0x2ce166){return _0x4820c3(_0x4e8567-0x1ef,_0x1d83d5-_0x345a99._0x3bf15e,_0x2ce166,_0x1d83d5- -_0x345a99._0x59cbb7);}const _0x1cdbf8=_0x54a006[0x0]?_0x1e493e(_0x54a006[0x0]):[],_0x3bb009=_0x54a006[_0x56bda9(_0x23b6a2._0x495f29,0x4a5,0x3f3,0x461)]===0x2&&_0x54a006[0x1]?_0x1e493e(_0x54a006[0x1]):[],_0x4560ac=[];if(_0x79ea69){const _0xb7c1eb=ipv4ToInt(_0x79ea69);if(_0xb7c1eb===null)return null;_0x4560ac['push'](_0xb7c1eb>>>0x10&0xffff,_0xb7c1eb&0xffff);}const _0x10fd8f=[..._0x3bb009,..._0x4560ac],_0x170652=0x8-_0x1cdbf8['length']-_0x10fd8f[_0x48a189(_0x23b6a2._0x5623ce,0x72f,_0x23b6a2._0x233e25,0x677)];if(_0x54a006['length']===0x1)return _0x1cdbf8[_0x48a189(_0x23b6a2._0x5623ce,0x587,_0x23b6a2._0x5e79ff,_0x23b6a2._0x4a20cc)]+_0x10fd8f[_0x56bda9(0x3e5,_0x23b6a2._0x15d55f,0x552,0x428)]===0x8?[..._0x1cdbf8,..._0x10fd8f]:null;if(_0x170652<0x0)return null;function _0x48a189(_0xc86c66,_0x3c1aae,_0x14743d,_0x19f5a2){return _0x211934(_0xc86c66-0x259,_0x3c1aae-0x105,_0x14743d,_0x19f5a2-0xb1);}return[..._0x1cdbf8,...new Array(_0x170652)['fill'](0x0),..._0x10fd8f];}function isBlockedIpv6(_0xc9f6a0){const _0x3f3be2={_0x2934ab:0x165,_0x36adc7:0x8a,_0x21d380:0x1c6,_0x4550df:0x1fe,_0x5428c5:0x1eb,_0x9217df:0x402,_0x7aa28:0x371},_0x427188={_0x2941dd:0x40},_0x232130={_0x22e9e4:0x27},_0x13833f=expandIpv6(_0xc9f6a0);if(!_0x13833f||_0x13833f[_0x3ce231(_0x3f3be2._0x2934ab,0x2aa,0x1bd,0x11b)](_0x2053f9=>Number[_0x3ce231(0x21a,0x88,0x164,0x132)](_0x2053f9)))return!![];function _0x3ce231(_0x259f7b,_0x27f9ab,_0x1e8cef,_0x56ac57){return _0x211934(_0x1e8cef- -0x2a6,_0x27f9ab-_0x232130._0x22e9e4,_0x27f9ab,_0x56ac57-0x89);}const _0x1f4e5d=_0x13833f['slice'](0x0,0x7)['every'](_0x198f65=>_0x198f65===0x0);if(_0x1f4e5d&&(_0x13833f[0x7]===0x0||_0x13833f[0x7]===0x1))return!![];if(_0x13833f[_0x3ce231(_0x3f3be2._0x36adc7,_0x3f3be2._0x21d380,0x86,-0xa)](0x0,0x5)[_0x3ce231(0x34b,0x354,_0x3f3be2._0x4550df,_0x3f3be2._0x5428c5)](_0xf15d6a=>_0xf15d6a===0x0)&&(_0x13833f[0x5]===0xffff||_0x13833f[0x5]===0x0)){const _0x5f3c3c=(_0x13833f[0x6]<<0x10|_0x13833f[0x7])>>>0x0,_0x2c9ac9=[_0x5f3c3c>>>0x18&0xff,_0x5f3c3c>>>0x10&0xff,_0x5f3c3c>>>0x8&0xff,_0x5f3c3c&0xff][_0x294aff(_0x3f3be2._0x9217df,_0x3f3be2._0x7aa28,0x303,0x2a2)]('.');return isBlockedIpv4(_0x2c9ac9);}function _0x294aff(_0xee9f25,_0x1bd7e5,_0x5d8312,_0x3bfef2){return _0x211934(_0x1bd7e5- -_0x427188._0x2941dd,_0x1bd7e5-0x11f,_0xee9f25,_0x3bfef2-0xf7);}const _0x3a3efe=_0x13833f[0x0];if((_0x3a3efe&0xff00)===0xfc00||(_0x3a3efe&0xfe00)===0xfc00)return!![];if((_0x3a3efe&0xffc0)===0xfe80)return!![];if((_0x3a3efe&0xff00)===0xff00)return!![];return![];}function isBlockedAddress(_0x4195d8){const _0x4eb8c0=isIP(_0x4195d8);if(_0x4eb8c0===0x4)return isBlockedIpv4(_0x4195d8);if(_0x4eb8c0===0x6)return isBlockedIpv6(_0x4195d8);return!![];}async function assertPublicUrl(_0x1bc84a,_0x39c0e1={}){const _0x445dbb={_0x40cb1a:0x30f,_0x2920ad:0x2d2,_0x4683e1:0x2f2,_0x1c9874:0x72,_0x5735f0:0x15f,_0x2ee3b8:0x55e,_0x23ba02:0x4ec,_0x220c92:0x410,_0x39abb2:0x53c,_0x327612:0x5,_0x123474:0x69,_0x3bb0d4:0x10e,_0x5cb2fb:0x39a,_0x3c4995:0x35a,_0x29f725:0x199,_0x1157a2:0xee,_0xcead05:0x369,_0x5e33ea:0x4ec,_0x3b979a:0x2fa,_0x341643:0x3fa,_0x797b4e:0x344,_0x333e24:0x316,_0x1ee086:0x242,_0x170252:0x4e6,_0x401c4d:0x543,_0x5888ee:0x1d7,_0x39b113:0x16e,_0x5cb9c2:0xa7,_0x1be11c:0x480,_0x105460:0x284,_0x43d467:0x3c9,_0x4af5f9:0x40d,_0x2f7ed1:0xe,_0x54e3a4:0x1aa,_0x21234d:0x1cc,_0x493fce:0x1c7},_0x565ccc={_0x8ebe10:0x2e5,_0x1094fd:0x2b,_0x502cd8:0x1f},_0x5cd0c9={_0x57ddf0:0x166};function _0x2d8696(_0x24f155,_0x415106,_0x38426b,_0x2e0ec9){return _0x211934(_0x38426b- -0x3b,_0x415106-_0x5cd0c9._0x57ddf0,_0x2e0ec9,_0x2e0ec9-0xf8);}let _0x6bdc38;function _0x1cc4b0(_0x113fd0,_0x5579c8,_0x53d7fd,_0x59e431){return _0x211934(_0x53d7fd- -_0x565ccc._0x8ebe10,_0x5579c8-_0x565ccc._0x1094fd,_0x113fd0,_0x59e431-_0x565ccc._0x502cd8);}try{_0x6bdc38=new URL(_0x1bc84a);}catch{throw new ToolExecutionError(_0x1cc4b0(_0x445dbb._0x40cb1a,0x279,_0x445dbb._0x2920ad,_0x445dbb._0x4683e1),{'url':_0x1bc84a});}if(_0x6bdc38[_0x2d8696(0x5e8,0x398,0x4ec,0x4c5)]!==_0x1cc4b0(_0x445dbb._0x1c9874,-0x65,0x81,_0x445dbb._0x5735f0)&&_0x6bdc38[_0x2d8696(_0x445dbb._0x2ee3b8,0x3c4,_0x445dbb._0x23ba02,0x4ae)]!=='https:')throw new ToolExecutionError('Only\x20http://\x20and\x20https://\x20URLs\x20are\x20supported',{'url':_0x1bc84a});if(_0x6bdc38[_0x2d8696(0x40b,_0x445dbb._0x220c92,0x4d2,_0x445dbb._0x39abb2)]||_0x6bdc38[_0x1cc4b0(0x159,-0x10,0x100,_0x445dbb._0x327612)])throw new ToolExecutionError(_0x1cc4b0(0xc2,0x1be,0xef,-_0x445dbb._0x123474),{'url':_0x6bdc38[_0x1cc4b0(_0x445dbb._0x3bb0d4,0x25e,0x242,_0x445dbb._0x5cb2fb)]+'//'+_0x6bdc38[_0x1cc4b0(0x2da,0x145,0x299,_0x445dbb._0x3c4995)]+_0x6bdc38[_0x1cc4b0(0x270,_0x445dbb._0x29f725,0x1aa,_0x445dbb._0x1157a2)]});const _0x520766=_0x6bdc38[_0x2d8696(0x5b5,0x401,0x4c9,_0x445dbb._0xcead05)][_0x2d8696(_0x445dbb._0x5e33ea,_0x445dbb._0x3b979a,_0x445dbb._0x341643,0x52b)](/^\[|\]$/g,''),_0x5ccbde=_0x6bdc38[_0x1cc4b0(_0x445dbb._0x797b4e,_0x445dbb._0x333e24,_0x445dbb._0x1ee086,0x13b)]+'//'+_0x6bdc38[_0x2d8696(_0x445dbb._0x170252,0x5bb,_0x445dbb._0x401c4d,0x451)]+_0x6bdc38[_0x1cc4b0(_0x445dbb._0x5888ee,_0x445dbb._0x39b113,0x1aa,_0x445dbb._0x5cb9c2)];if(isIP(_0x520766)){if(isBlockedAddress(_0x520766))throw new ToolExecutionError(_0x2d8696(_0x445dbb._0x1be11c,_0x445dbb._0x105460,_0x445dbb._0x43d467,_0x445dbb._0x4af5f9),{'url':_0x5ccbde});return _0x6bdc38;}const _0x286a92=_0x39c0e1['lookup']??defaultLookup;let _0x3533a6;try{_0x3533a6=await _0x286a92(_0x520766);}catch{throw new ToolExecutionError('Could\x20not\x20resolve\x20host',{'url':_0x5ccbde});}if(_0x3533a6[_0x1cc4b0(0x190,-_0x445dbb._0x2f7ed1,0x144,_0x445dbb._0x54e3a4)]===0x0)throw new ToolExecutionError(_0x1cc4b0(0x2d3,_0x445dbb._0x21234d,_0x445dbb._0x493fce,0x1c5),{'url':_0x5ccbde});for(const {address:_0x2cce7c}of _0x3533a6){if(isBlockedAddress(_0x2cce7c))throw new ToolExecutionError(_0x2d8696(0x450,0x575,0x430,0x51d),{'url':_0x5ccbde});}return _0x6bdc38;}async function safeFetch(_0x17d2c9,_0x8974a3={},_0x1e4b37={}){const _0x2beffb={_0x2481d8:0x4d4,_0x220210:0x421,_0x40586e:0x31f,_0x28e59e:0x302,_0x595826:0x3ad,_0x431296:0x46f,_0x15e3bb:0x53f,_0x39b5ee:0x360,_0x39033f:0x2df,_0xc983b2:0x48f,_0xc292ce:0x2ba,_0x5c6b01:0x3b1,_0x1dc9f7:0x31d,_0x191e6f:0x402,_0x557bb7:0x406,_0x521df2:0x28d,_0x2af2c6:0x3ee,_0x10df7a:0x55e,_0x5448a5:0x3aa,_0x28d28e:0x4e7,_0x51f8ef:0x45c,_0x38f86a:0x362,_0x2ffe97:0x34c,_0xcb89f5:0x3d4,_0x152aed:0x44e,_0x50add3:0x3ef,_0x272311:0x32a},_0x4dfa47={_0x249532:0xeb,_0x2f25b:0xa4,_0xa53c5b:0x30e},_0x395c5b={_0x4cde92:0x161};function _0x204145(_0xa55f9a,_0x40dda8,_0x40b5c7,_0x5a9000){return _0x211934(_0xa55f9a- -0x10,_0x40dda8-_0x395c5b._0x4cde92,_0x40dda8,_0x5a9000-0x164);}function _0x8af8b5(_0x37883f,_0x58b3fe,_0x5c3f2a,_0x121e49){return _0x4820c3(_0x37883f-_0x4dfa47._0x249532,_0x58b3fe-_0x4dfa47._0x2f25b,_0x37883f,_0x5c3f2a- -_0x4dfa47._0xa53c5b);}const _0x358553=_0x1e4b37[_0x8af8b5(_0x2beffb._0x2481d8,_0x2beffb._0x220210,0x3f5,0x3a6)]??fetch,_0x37ab9c=_0x1e4b37[_0x8af8b5(0x51d,0x568,0x478,_0x2beffb._0x40586e)]??DEFAULT_MAX_REDIRECTS;let _0x56f382=_0x17d2c9;for(let _0x55d973=0x0;;_0x55d973+=0x1){const _0x2ea092=await assertPublicUrl(_0x56f382,_0x1e4b37),_0x50dc60=await _0x358553(_0x2ea092['toString'](),{..._0x8974a3,'redirect':_0x8af8b5(_0x2beffb._0x28e59e,0x2a0,_0x2beffb._0x595826,_0x2beffb._0x431296)}),_0x2d8fff=_0x50dc60[_0x8af8b5(_0x2beffb._0x15e3bb,_0x2beffb._0x39b5ee,0x409,_0x2beffb._0x39033f)][_0x8af8b5(0x349,_0x2beffb._0xc983b2,0x413,_0x2beffb._0xc292ce)](_0x204145(_0x2beffb._0x5c6b01,0x318,_0x2beffb._0x1dc9f7,_0x2beffb._0x191e6f));if(!REDIRECT_STATUSES[_0x8af8b5(_0x2beffb._0x557bb7,_0x2beffb._0x521df2,0x3b5,_0x2beffb._0x2af2c6)](_0x50dc60[_0x204145(0x4f2,_0x2beffb._0x10df7a,_0x2beffb._0x5448a5,_0x2beffb._0x28d28e)])||!_0x2d8fff)return _0x50dc60;if(_0x55d973>=_0x37ab9c)throw new ToolExecutionError(_0x8af8b5(_0x2beffb._0x51f8ef,_0x2beffb._0x38f86a,0x3d3,_0x2beffb._0x2ffe97),{'url':_0x2ea092[_0x8af8b5(0x3ed,0x28c,_0x2beffb._0xcb89f5,_0x2beffb._0x152aed)]()});_0x56f382=new URL(_0x2d8fff,_0x2ea092)[_0x8af8b5(0x281,_0x2beffb._0x50add3,0x3d4,_0x2beffb._0x272311)]();}}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 createTimeoutSignal(_0x48b6f1,_0x47c6ce){const _0x3e0d2f={_0x2fd4c9:0x3ca,_0x21ded5:0x499,_0x7a9d8f:0x2dc,_0xe688c1:0xb9,_0x1713c0:0x1e7,_0x472850:0x106},_0x40a740={_0x4eddd1:0x205,_0x3ca505:0x2cf,_0x231036:0x22a,_0x5eee05:0x350,_0x124b6b:0x129,_0x1271b6:0x1e6},_0x3a9545={_0xd1d701:0x2e,_0x117b04:0x1c3},_0x282d71={_0x38549e:0x99,_0x4d2b82:0x1},_0x13eb75={_0x218ecf:0x41,_0x5a2634:0x1c8},_0x2e1739={_0x1bb1f5:0x1bc},_0x3a2d72=new AbortController();function _0x47f06b(_0x1eda9a,_0x14440d,_0x3328c8,_0x4d6698){return _0x211934(_0x1eda9a- -0x27e,_0x14440d-_0x2e1739._0x1bb1f5,_0x14440d,_0x4d6698-0x1c0);}const _0x1d2a23=setTimeout(()=>_0x3a2d72[_0x47f06b(0xb9,0xd,-0x24,-0x4)](new Error(_0x47f06b(0x2a2,0x2e5,0x3bf,0x29b))),_0x47c6ce),_0x292724=()=>_0x3a2d72[_0x50033a(0x2f6,0x3bc,0x1f1,0x374)](_0x48b6f1[_0x50033a(0x307,0x283,0x36b,0x3a3)]);_0x48b6f1[_0x50033a(_0x3e0d2f._0x2fd4c9,0x3e1,_0x3e0d2f._0x21ded5,_0x3e0d2f._0x7a9d8f)]?_0x3a2d72[_0x47f06b(_0x3e0d2f._0xe688c1,_0x3e0d2f._0x1713c0,_0x3e0d2f._0x472850,0x1c)](_0x48b6f1[_0x47f06b(0xca,0x133,0x1d5,0xf0)]):_0x48b6f1['addEventListener'](_0x50033a(0x2f6,0x3b2,0x339,0x266),_0x292724,{'once':!![]});function _0x50033a(_0x36d5b9,_0x13e6a4,_0x195144,_0x5d2650){return _0x211934(_0x36d5b9- -_0x13eb75._0x218ecf,_0x13e6a4-0x23,_0x13e6a4,_0x5d2650-_0x13eb75._0x5a2634);}return{'signal':_0x3a2d72['signal'],'cleanup':()=>{function _0x2b391d(_0x2a51a5,_0x342477,_0xff2364,_0x334d10){return _0x47f06b(_0xff2364-0xf8,_0x342477,_0xff2364-_0x282d71._0x38549e,_0x334d10-_0x282d71._0x4d2b82);}clearTimeout(_0x1d2a23);function _0x3d63f9(_0x4f0cf7,_0x389a2e,_0x2396a1,_0x1c5981){return _0x47f06b(_0x4f0cf7-_0x3a9545._0xd1d701,_0x1c5981,_0x2396a1-_0x3a9545._0x117b04,_0x1c5981-0xdc);}_0x48b6f1[_0x2b391d(_0x40a740._0x4eddd1,_0x40a740._0x3ca505,_0x40a740._0x231036,_0x40a740._0x5eee05)](_0x2b391d(0x2ed,_0x40a740._0x124b6b,0x1b1,_0x40a740._0x1271b6),_0x292724);}};}function createWebFetchTool(_0x395269={}){const _0x43ac5f={_0x1cc2ab:0x6bc,_0x2ccb41:0x49b,_0x2cfde2:0x35d,_0x36528e:0x591,_0xbf169a:0x33f,_0x4dfa5a:0x172,_0x1d1753:0x1f2,_0x30fd91:0x7f,_0x302fd6:0xbf,_0x1b1207:0x5fa,_0x509ee1:0x102,_0x204661:0x2,_0x4b4531:0x412,_0xc632fd:0x3ca,_0x1330fb:0x41,_0x37a513:0xa6,_0x285412:0x299,_0x21f2bd:0x14a,_0x5f5979:0xd0,_0x37dd43:0x19c,_0x3c2cf1:0x177,_0x8965bc:0x501,_0x4a884b:0x5b8,_0x560d00:0x683,_0x2f70a6:0x46b,_0x1ba39c:0x3d4,_0x11eb63:0xb8,_0x1c2c92:0x491,_0x46c37f:0x4cf,_0x27f279:0x3da,_0x45b8c8:0x4a5,_0x2ed3cb:0x388,_0x3cdfc3:0x5d9,_0x1312d8:0x4e9,_0x5dfa1c:0x621},_0x335c31={_0x3b1967:0x285,_0x2db71e:0x30,_0x30c188:0x52,_0x470319:0x140,_0x1199a9:0x3d1,_0x369cf8:0x34e,_0x4396d9:0x30e,_0x304c02:0xb9,_0x10e71a:0x99,_0x126b59:0x42b,_0x2e2350:0x57a,_0x6a8169:0x396,_0xccc8d5:0x13,_0x200422:0x9c,_0x3135b8:0xf0,_0x34056d:0x19c,_0x3c99f6:0x491,_0x24246d:0x374,_0x2831a9:0x420,_0x392b76:0x5fa,_0x28401a:0x461,_0x34668a:0x157,_0x4583dd:0x21,_0x21ce02:0x30,_0x58d482:0x119,_0x124543:0x1d,_0x2d18a1:0x4ec,_0x2b317b:0x64b,_0x9d20e1:0x51e,_0x47fe3a:0x4ba,_0x3f267c:0x145,_0x592dbd:0x270,_0x27f646:0xa3,_0x494083:0x29,_0x393b4e:0x148,_0x755b08:0x6,_0x40aa85:0xed,_0x1dafaa:0x3d5,_0x595b38:0x36c,_0x33351e:0x3a8,_0x3b5c67:0x3b,_0x3c071b:0x81,_0x57a2eb:0x11e},_0x4ce080={_0x25bfbd:0x1a1,_0x42ab82:0x3de},_0x5c3c96={_0x337b92:0x56c,_0x552e0c:0x116},_0x1e82c0={_0x21929a:0x74,_0x553855:0x1cd,_0x4712a8:0x146},_0x37dc3d={_0x2dfc2e:0x8b,_0xf1bb58:0x77};function _0x1a1b9a(_0x356cbe,_0xab13d,_0x52ce48,_0x17060a){return _0x4820c3(_0x356cbe-_0x37dc3d._0x2dfc2e,_0xab13d-_0x37dc3d._0xf1bb58,_0xab13d,_0x52ce48- -0x664);}const _0x36d4a0=_0x395269[_0x3ee25e(_0x43ac5f._0x1cc2ab,0x71a,0x58d,0x80a)]??'WebFetch',_0x5edbfe=_0x395269[_0x3ee25e(_0x43ac5f._0x2ccb41,_0x43ac5f._0x2cfde2,_0x43ac5f._0x36528e,_0x43ac5f._0xbf169a)]??DEFAULT_TIMEOUT_MS2,_0x47fc1c=_0x395269['lookup'],_0x4a372d=new _0x22c2a2({'headingStyle':_0x1a1b9a(_0x43ac5f._0x4dfa5a,_0x43ac5f._0x1d1753,0x179,_0x43ac5f._0x30fd91),'codeBlockStyle':_0x1a1b9a(0x8f,0x4,-0xba,-_0x43ac5f._0x302fd6),'bulletListMarker':'-'});function _0x3ee25e(_0x1eb253,_0x5c051f,_0x4e6b1d,_0x2955ac){return _0x4820c3(_0x1eb253-_0x1e82c0._0x21929a,_0x5c051f-_0x1e82c0._0x553855,_0x5c051f,_0x1eb253- -_0x1e82c0._0x4712a8);}return _0x4a372d[_0x3ee25e(0x5d5,_0x43ac5f._0x1b1207,0x6ef,0x688)]([_0x1a1b9a(_0x43ac5f._0x509ee1,-_0x43ac5f._0x204661,0x114,0x1c0),_0x3ee25e(_0x43ac5f._0x4b4531,0x453,_0x43ac5f._0xc632fd,0x54f),_0x1a1b9a(_0x43ac5f._0x1330fb,0x4e,_0x43ac5f._0x37a513,0xab),_0x1a1b9a(0x3c,_0x43ac5f._0x285412,_0x43ac5f._0x21f2bd,_0x43ac5f._0x5f5979),_0x1a1b9a(_0x43ac5f._0x37dd43,0x16c,_0x43ac5f._0x3c2cf1,0x25d),_0x3ee25e(_0x43ac5f._0x8965bc,0x43c,0x4e3,_0x43ac5f._0x4a884b),_0x3ee25e(0x541,_0x43ac5f._0x560d00,0x61f,0x660),_0x3ee25e(_0x43ac5f._0x2f70a6,0x4d5,0x508,_0x43ac5f._0x1ba39c)]),defineTool({'name':_0x36d4a0,'description':_0x1a1b9a(-0x6b,-0x4c,-0x4c,_0x43ac5f._0x11eb63),'inputSchema':{'type':_0x3ee25e(_0x43ac5f._0x1c2c92,0x3b4,_0x43ac5f._0x46c37f,_0x43ac5f._0x27f279),'properties':{'description':{'type':'string'},'url':{'type':_0x3ee25e(_0x43ac5f._0x45b8c8,_0x43ac5f._0x2ed3cb,_0x43ac5f._0x3cdfc3,0x5c2)}},'required':[_0x3ee25e(_0x43ac5f._0x1312d8,0x4d1,0x5b7,_0x43ac5f._0x5dfa1c)]},async *'execute'(_0x44dc55,_0x36b687){const _0x4a96e3=(await assertPublicUrl(_0x44dc55[_0x111886(0x3a9,0x34e,_0x335c31._0x3b1967,0x418)],{'lookup':_0x47fc1c}))[_0x1bdf69(_0x335c31._0x2db71e,_0x335c31._0x30c188,_0x335c31._0x470319,-0x9c)]();if(_0x36b687['signal'][_0x111886(_0x335c31._0x1199a9,_0x335c31._0x369cf8,0x4a1,_0x335c31._0x4396d9)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x4a96e3});const _0x3a7d86=createTimeoutSignal(_0x36b687[_0x1bdf69(0xd1,_0x335c31._0x304c02,0x1b5,_0x335c31._0x10e71a)],_0x5edbfe);let _0x5126a2='',_0x54138c=0x0,_0x449033;function _0x1bdf69(_0x490456,_0x18c9bd,_0x2b3217,_0x440c6c){return _0x3ee25e(_0x490456- -_0x5c3c96._0x337b92,_0x2b3217,_0x2b3217-0xf8,_0x440c6c-_0x5c3c96._0x552e0c);}try{const _0x395b7d=await safeFetch(_0x4a96e3,{'headers':{'User-Agent':USER_AGENT},'signal':_0x3a7d86[_0x111886(0x4fd,0x5e7,0x4b6,_0x335c31._0x126b59)]},{'lookup':_0x47fc1c});if(!_0x395b7d['ok'])throw new ToolExecutionError(_0x111886(0x4e8,_0x335c31._0x2e2350,_0x335c31._0x6a8169,0x3cb)+_0x395b7d[_0x1bdf69(0x9c,_0x335c31._0xccc8d5,0x107,0x60)]+'\x20'+_0x395b7d['statusText'],{'url':_0x4a96e3,'statusCode':_0x395b7d[_0x1bdf69(_0x335c31._0x200422,_0x335c31._0x3135b8,0x5f,_0x335c31._0x34056d)]});_0x5126a2=_0x395b7d[_0x111886(_0x335c31._0x3c99f6,0x3b9,0x445,_0x335c31._0x24246d)][_0x111886(0x49b,_0x335c31._0x2831a9,_0x335c31._0x392b76,_0x335c31._0x28401a)](_0x1bdf69(_0x335c31._0x34668a,0x189,0xfb,0x83))??'',_0x54138c=_0x395b7d['status'],_0x449033=await _0x395b7d[_0x1bdf69(-0x57,-0x8d,0x47,-0x15d)]();}catch(_0x5af190){if(_0x5af190 instanceof ToolExecutionError)throw _0x5af190;const _0x3e5a73=_0x5af190 instanceof Error?_0x5af190['message']:String(_0x5af190);throw new ToolExecutionError(_0x3e5a73,{'url':_0x4a96e3});}finally{_0x3a7d86['cleanup']();}const _0x2afe64=new Date()['toISOString']();let _0x4d85c2,_0x5c4f51;function _0x111886(_0x31fe69,_0x1e9426,_0x2123b8,_0x7a7626){return _0x1a1b9a(_0x31fe69-_0x4ce080._0x25bfbd,_0x7a7626,_0x31fe69-_0x4ce080._0x42ab82,_0x7a7626-0x7c);}if(_0x5126a2[_0x1bdf69(_0x335c31._0x4583dd,_0x335c31._0x21ce02,-_0x335c31._0x58d482,_0x335c31._0x124543)](_0x111886(_0x335c31._0x2d18a1,0x4ac,0x475,_0x335c31._0x2b317b)))_0x4d85c2=_0x111886(0x46c,0x47a,_0x335c31._0x9d20e1,_0x335c31._0x47fe3a)+_0x449033+_0x1bdf69(_0x335c31._0x3f267c,0xff,_0x335c31._0x592dbd,0x20f),_0x5c4f51=_0x1bdf69(-0xb0,-0x183,-_0x335c31._0x27f646,0x66);else _0x5126a2[_0x1bdf69(_0x335c31._0x4583dd,-_0x335c31._0x494083,_0x335c31._0x393b4e,_0x335c31._0x755b08)]('text/html')?(_0x4d85c2=_0x4a372d['turndown'](_0x449033),_0x5c4f51=_0x1bdf69(0xf8,0x106,-0x17,_0x335c31._0x40aa85)):(_0x4d85c2=_0x449033,_0x5c4f51=_0x111886(_0x335c31._0x1dafaa,0x3f6,_0x335c31._0x595b38,_0x335c31._0x33351e));return yield createToolOutput(_0x4d85c2,{'url':_0x4a96e3,'contentType':_0x5126a2,'statusCode':_0x54138c,'format':_0x5c4f51,'size':_0x449033[_0x1bdf69(-0x3d,-_0x335c31._0x3b5c67,-_0x335c31._0x3c071b,-_0x335c31._0x57a2eb)],'fetchedAt':_0x2afe64}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x4820c3(0x56f,0x75e,0x7a4,0x693);function normalizeUrl(_0x3d4656){const _0x2b4efa={_0x1ca75e:0x7a2,_0x317edd:0x64f,_0x4e2493:0x872,_0x3c7e83:0x714,_0x22ce8f:0xa4,_0x36fb65:0x62,_0x5adde5:0x191,_0xdfde3a:0x6c1,_0x561d11:0x1b6,_0x428bc6:0x5d,_0x4099a2:0xb7,_0x5637b0:0xbf,_0x70c3c:0x160,_0x5de17e:0x125,_0x4875c5:0xef,_0x3868b2:0x67,_0x113b77:0x712,_0x29c07c:0x747,_0x1464b6:0x730,_0x517071:0xdb,_0x42bd81:0x13e,_0x33f52a:0x7da,_0x12a21d:0x850,_0x3463e2:0x86a},_0x450d56={_0x628a63:0x115,_0x47b8a:0xd6,_0xd7082:0x633},_0x9cc969={_0x400de3:0x2e};function _0x25a826(_0x5c093d,_0xb680a0,_0x341717,_0xfc6183){return _0x4820c3(_0x5c093d-0x1da,_0xb680a0-0x175,_0x341717,_0xb680a0-_0x9cc969._0x400de3);}function _0x662be(_0x470495,_0x5d0ab9,_0x53008d,_0x1eaca4){return _0x4820c3(_0x470495-_0x450d56._0x628a63,_0x5d0ab9-_0x450d56._0x47b8a,_0x53008d,_0x1eaca4- -_0x450d56._0xd7082);}try{const _0x1f19c5=new URL(_0x3d4656);for(const _0x5b97c2 of[_0x25a826(0x7cc,_0x2b4efa._0x1ca75e,0x64a,_0x2b4efa._0x317edd),_0x25a826(0x7c5,0x78d,0x8e7,_0x2b4efa._0x4e2493),_0x25a826(_0x2b4efa._0x3c7e83,0x725,0x655,0x728),_0x662be(0x237,_0x2b4efa._0x22ce8f,_0x2b4efa._0x36fb65,_0x2b4efa._0x5adde5),_0x25a826(_0x2b4efa._0xdfde3a,0x812,0x874,0x7d0),_0x662be(-_0x2b4efa._0x561d11,-_0x2b4efa._0x428bc6,-_0x2b4efa._0x4099a2,-_0x2b4efa._0x5637b0),_0x662be(0x1cf,_0x2b4efa._0x70c3c,0xd0,_0x2b4efa._0x5de17e),_0x662be(-0xb6,-0x16f,_0x2b4efa._0x4875c5,-_0x2b4efa._0x3868b2),_0x25a826(0x678,_0x2b4efa._0x113b77,_0x2b4efa._0x29c07c,_0x2b4efa._0x1464b6)]){_0x1f19c5[_0x662be(-_0x2b4efa._0x517071,0x61,_0x2b4efa._0x42bd81,0x31)][_0x25a826(0x6cd,_0x2b4efa._0x33f52a,_0x2b4efa._0x12a21d,_0x2b4efa._0x3463e2)](_0x5b97c2);}return _0x1f19c5['toString']();}catch{return _0x3d4656;}}function cseDateRestrict(_0x19b746){const _0x31d356={_0x3f35b2:0x3bb,_0x1fd524:0x374,_0x4fa53e:0x440,_0x3aec12:0x304},_0x25037e={_0x2326b4:0x5a},_0x39e3ef={_0x547664:0x25,_0x2bb3d1:0x309};if(_0x19b746<=0x0)return void 0x0;if(_0x19b746<=0x1e)return'd'+Math['max'](0x1,Math[_0x37b0b6(0x38b,0x2b7,_0x31d356._0x3f35b2,0x24c)](_0x19b746));function _0x4cf951(_0x3706fd,_0x34e34f,_0x2bd3f1,_0x39f59f){return _0x4820c3(_0x3706fd-_0x39e3ef._0x547664,_0x34e34f-0xa8,_0x39f59f,_0x3706fd- -_0x39e3ef._0x2bb3d1);}if(_0x19b746<=0x16d)return'm'+Math[_0x4cf951(0x440,0x4fb,0x32d,_0x31d356._0x1fd524)](_0x19b746/0x1e);function _0x37b0b6(_0x2bcd10,_0x5e38ca,_0x15195d,_0x382415){return _0x4820c3(_0x2bcd10-0x173,_0x5e38ca-_0x25037e._0x2326b4,_0x2bcd10,_0x5e38ca- -0x469);}return'y'+Math[_0x4cf951(_0x31d356._0x4fa53e,0x39c,_0x31d356._0x3aec12,0x4c7)](_0x19b746/0x16d);}function addSiteFilters(_0x39afce,_0x373b77){const _0x55ddf8={_0xbf0e70:0xc4,_0x523ba0:0x41,_0x411c11:0x45b,_0x5848d4:0x508,_0x57f397:0x422,_0x29d48c:0x169,_0x153f44:0x1d,_0x14270d:0x4c9,_0x14adc1:0x486},_0x521f8f={_0x2ca9bd:0x1a9,_0xe7558a:0x636},_0x4cb757={_0x56f161:0xc0,_0x3f3fd5:0x18c,_0x14e4dd:0x1db};if(_0x373b77['length']===0x0)return _0x39afce['trim']();function _0x494f6f(_0x185207,_0x59e69d,_0x1b2a05,_0x5cf33e){return _0x4820c3(_0x185207-_0x4cb757._0x56f161,_0x59e69d-_0x4cb757._0x3f3fd5,_0x59e69d,_0x5cf33e- -_0x4cb757._0x14e4dd);}function _0x3709d8(_0x2a834b,_0x16a0b4,_0x12899c,_0x332ea2){return _0x4820c3(_0x2a834b-_0x521f8f._0x2ca9bd,_0x16a0b4-0x1d7,_0x16a0b4,_0x2a834b- -_0x521f8f._0xe7558a);}return(_0x39afce+'\x20('+_0x373b77[_0x3709d8(-_0x55ddf8._0xbf0e70,-0x1ef,-0xd8,_0x55ddf8._0x523ba0)](_0x46aeca=>_0x3709d8(0x45,0xba,-0x54,0x131)+_0x46aeca)[_0x494f6f(0x3c1,_0x55ddf8._0x411c11,_0x55ddf8._0x5848d4,_0x55ddf8._0x57f397)](_0x3709d8(0xb2,0x1ef,_0x55ddf8._0x29d48c,-_0x55ddf8._0x153f44))+')')[_0x494f6f(_0x55ddf8._0x14270d,0x55e,_0x55ddf8._0x14adc1,0x451)]();}function normalizeType(_0x1325a3){const _0x2ffb81={_0x47e01f:0x227,_0x50ffa6:0x1c8,_0x44b885:0x183,_0x47b99f:0x123,_0x1ccc53:0x2c9,_0x47db6a:0xf6,_0x22762d:0x64},_0x86da65={_0x181efa:0x1a,_0x5c3782:0x5,_0x336d5c:0x633},_0x1f3bb0={_0xcf7229:0xbf,_0xe7d93f:0x1ba};function _0x28a0db(_0x5b5b54,_0x2c1c46,_0x2b3e82,_0x3d3b90){return _0x211934(_0x5b5b54- -0x32f,_0x2c1c46-_0x1f3bb0._0xcf7229,_0x3d3b90,_0x3d3b90-_0x1f3bb0._0xe7d93f);}function _0x11f12b(_0x4d2c27,_0x2b5af6,_0x4d932c,_0x1287c7){return _0x4820c3(_0x4d2c27-_0x86da65._0x181efa,_0x2b5af6-_0x86da65._0x5c3782,_0x4d2c27,_0x4d932c- -_0x86da65._0x336d5c);}return _0x1325a3===_0x11f12b(0x125,_0x2ffb81._0x47e01f,0xcb,_0x2ffb81._0x50ffa6)?_0x28a0db(_0x2ffb81._0x44b885,0x104,_0x2ffb81._0x47b99f,_0x2ffb81._0x1ccc53):_0x11f12b(-_0x2ffb81._0x47db6a,0x169,_0x2ffb81._0x22762d,0x105);}async function fetchJson(_0x15f822,_0x1b685a,_0x3a030b){const _0x3f26ad={_0x7f5ad1:0x1a5,_0x48d851:0x133,_0x21ac49:0x1bf,_0x2bb330:0x195,_0x277e39:0x2d4,_0xa6e5a3:0x1ed,_0x56ffa8:0x252,_0x3ad2ca:0x19e,_0x14fc93:0x29,_0x568276:0x47c,_0x1655c7:0x50a,_0x4d3bc9:0x4c3,_0x1ddc8f:0x3a2,_0x26720e:0x3a4,_0x1fe73a:0x1c2,_0x42f027:0x1cb,_0x509503:0x315,_0x1d5add:0x187,_0x1974aa:0x1b4,_0x52efe0:0x22e,_0x3433e1:0x37f,_0x503f9d:0x300,_0x2cdb98:0x301,_0x171d53:0x2dd,_0x99d0b1:0x292,_0xe00103:0x283,_0x4cb191:0x48,_0x526fa2:0xfe},_0x311ccb={_0x32657d:0x34},_0x585930={_0x5c8c62:0x188,_0x21f0aa:0x5ba},_0x446b9d=await fetch(_0x15f822,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x458af1(0x1b8,0x64,_0x3f26ad._0x7f5ad1,0x1ca),..._0x3a030b?.['headers']},'signal':_0x1b685a,..._0x3a030b});function _0x458af1(_0x33677a,_0xe844b4,_0x3bf54e,_0x2373a1){return _0x4820c3(_0x33677a-_0x585930._0x5c8c62,_0xe844b4-0x42,_0x3bf54e,_0x33677a- -_0x585930._0x21f0aa);}if(!_0x446b9d['ok']){let _0x4f7bf7,_0x315f15;try{_0x4f7bf7=await _0x446b9d[_0x316002(_0x3f26ad._0x48d851,_0x3f26ad._0x21ac49,0x20d,0x105)]();const _0x22475f=JSON[_0x458af1(_0x3f26ad._0x2bb330,_0x3f26ad._0x277e39,0x218,_0x3f26ad._0xa6e5a3)](_0x4f7bf7),_0x2793fd=typeof _0x22475f[_0x458af1(_0x3f26ad._0x56ffa8,0x20f,0x11e,_0x3f26ad._0x3ad2ca)]===_0x458af1(0x1d,-0x120,-_0x3f26ad._0x14fc93,-0xbf)?_0x22475f[_0x316002(_0x3f26ad._0x568276,_0x3f26ad._0x1655c7,0x3be,_0x3f26ad._0x4d3bc9)][_0x316002(_0x3f26ad._0x1ddc8f,_0x3f26ad._0x26720e,0x2d4,0x204)]:void 0x0;_0x315f15=_0x22475f[_0x458af1(0x168,0x28d,0x16f,0x261)]?.[_0x316002(_0x3f26ad._0x1fe73a,_0x3f26ad._0x42f027,_0x3f26ad._0x509503,0x40c)]??_0x22475f[_0x458af1(0x168,_0x3f26ad._0x1d5add,0x63,0x233)]?.['errors']?.[0x0]?.[_0x458af1(0x1a9,0x201,0x2d1,0x27c)]??_0x2793fd;}catch{}const _0xef3dff=_0x315f15?_0x458af1(_0x3f26ad._0x1974aa,0x296,0x247,_0x3f26ad._0x52efe0)+_0x446b9d[_0x316002(0x26f,0x3c2,0x300,0x336)]+':\x20'+_0x315f15:'HTTP\x20'+_0x446b9d[_0x316002(_0x3f26ad._0x3433e1,0x211,_0x3f26ad._0x503f9d,_0x3f26ad._0x2cdb98)]+'\x20'+_0x446b9d[_0x316002(0x309,_0x3f26ad._0x171d53,0x268,_0x3f26ad._0x99d0b1)];throw new ToolExecutionError(_0xef3dff,{'statusCode':_0x446b9d[_0x316002(_0x3f26ad._0xe00103,0x1f3,0x300,0x395)],..._0x4f7bf7?{'body':_0x4f7bf7}:{}});}function _0x316002(_0x557c81,_0x20e17e,_0x3b961a,_0x492719){return _0x4820c3(_0x557c81-_0x311ccb._0x32657d,_0x20e17e-0x17,_0x20e17e,_0x3b961a- -0x44e);}return await _0x446b9d[_0x458af1(_0x3f26ad._0x4cb191,-0xb6,0x171,-_0x3f26ad._0x526fa2)]();}async function hydrateResults(_0x507144,_0x6d6ec3,_0x24a0fb,_0x5d2a81){const _0x556737={_0x3488a8:0x745,_0x20815c:0x61b,_0x3b46dc:0x6a2,_0x1fafc7:0x19d,_0x3c622d:0x165,_0x41f26f:0x2cb,_0x33bfad:0x3db,_0x299fd0:0x57a,_0x26fbf4:0x1aa,_0x2b5897:0xde,_0x58b12e:0x4e4,_0x45b7ca:0x3b7,_0x35b3f9:0x3cd},_0x5e7548={_0x80e175:0x372,_0x4cbaf7:0x332,_0x3dd039:0x2ac,_0x1911c7:0x4ac,_0x2c5413:0x4f5,_0x5bba10:0x10c,_0x2821f5:0xe1,_0x44b0f5:0xdd,_0x184e6b:0x121,_0x2e0cd3:0x33f,_0x446864:0x5c5,_0x437467:0x494,_0x58abcc:0x52e,_0xda11ff:0x5e4,_0x56a16c:0x4d4,_0x37e58d:0x450,_0x229827:0xd,_0x3ca79a:0x37,_0x40782d:0x18d,_0x2a7e3d:0x193,_0x119bc0:0x81,_0x5d30ee:0x9,_0x28c59c:0x3e9,_0x41a3c1:0xbf,_0x1ef00d:0xa8,_0x27576b:0x37,_0x16db24:0x104,_0x2b9443:0x5f,_0x8454f7:0x3fd,_0x419c62:0x2ac,_0x31cbc6:0x2fc,_0x48019c:0x4a6,_0x2a9697:0x5e7,_0x18c9b3:0x1c3,_0x5b6877:0x17d,_0x5b7bf2:0x173,_0x3b5b7a:0x8b,_0x2ae347:0x7d,_0x5c8e25:0x39b,_0x249798:0x2ff,_0x20b274:0x3f5,_0x525a54:0x41f,_0x3bed8a:0x49a,_0x3ac25c:0x254},_0x421397={_0x1b8e6d:0x6f5},_0x537781={_0x32fdde:0x43};function _0x915e9f(_0x39f792,_0x3a916b,_0x5a18dc,_0x3bfa8d){return _0x211934(_0x3a916b-0x1be,_0x3a916b-0xbc,_0x39f792,_0x3bfa8d-_0x537781._0x32fdde);}function _0x2f0bd4(_0x53c7eb,_0x48c3be,_0x59ac60,_0x5287e6){return _0x4820c3(_0x53c7eb-0xea,_0x48c3be-0xcc,_0x59ac60,_0x53c7eb- -_0x421397._0x1b8e6d);}const _0x355de2=await Promise[_0x915e9f(_0x556737._0x3488a8,_0x556737._0x20815c,0x61d,_0x556737._0x3b46dc)](_0x507144['slice'](0x0,0xa)[_0x2f0bd4(-0x183,-_0x556737._0x1fafc7,-_0x556737._0x3c622d,-_0x556737._0x41f26f)](async _0x164377=>{const _0x375e86={_0x506a48:0x1e3,_0x18342c:0x151},_0x1e3721={_0x331d8a:0x408,_0x22f45d:0x158};function _0x2e0555(_0x3b6b59,_0x402e04,_0x43dbbb,_0x5a8708){return _0x2f0bd4(_0x43dbbb-_0x1e3721._0x331d8a,_0x402e04-_0x1e3721._0x22f45d,_0x5a8708,_0x5a8708-0x11);}function _0x17bec3(_0x5e524c,_0x31d6b5,_0x512b63,_0x8c1070){return _0x915e9f(_0x5e524c,_0x512b63- -0x6bc,_0x512b63-_0x375e86._0x506a48,_0x8c1070-_0x375e86._0x18342c);}try{const _0x150b1b=await safeFetch(_0x164377['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x6d6ec3,'Accept':'text/html'},'signal':_0x24a0fb},{'lookup':_0x5d2a81});if(!_0x150b1b['ok'])return _0x164377;const _0x58f983=await _0x150b1b['text'](),_0x43bf50=load(_0x58f983),_0x575164=_0x43bf50(_0x2e0555(_0x5e7548._0x80e175,0x4f6,0x4be,0x555))[_0x2e0555(_0x5e7548._0x4cbaf7,0x399,_0x5e7548._0x3dd039,0x267)](_0x2e0555(_0x5e7548._0x1911c7,0x4d8,0x494,_0x5e7548._0x2c5413))||_0x43bf50(_0x17bec3(_0x5e7548._0x5bba10,_0x5e7548._0x2821f5,-0x41,0xbd))[_0x17bec3(-_0x5e7548._0x44b0f5,-0xf0,-0x1cf,-_0x5e7548._0x184e6b)]()['text']()[_0x2e0555(0x49c,0x33d,_0x5e7548._0x2e0cd3,0x337)](),_0x564e92=_0x43bf50('meta[name=\x27description\x27]')['attr'](_0x2e0555(_0x5e7548._0x446864,0x4fc,_0x5e7548._0x437467,0x452))||_0x43bf50(_0x2e0555(_0x5e7548._0x58abcc,_0x5e7548._0xda11ff,_0x5e7548._0x56a16c,_0x5e7548._0x37e58d))['attr'](_0x17bec3(-0xf6,-_0x5e7548._0x229827,_0x5e7548._0x3ca79a,_0x5e7548._0x40782d))||_0x164377[_0x17bec3(-_0x5e7548._0x2a7e3d,-0x80,-_0x5e7548._0x119bc0,-_0x5e7548._0x5d30ee)],_0x422c8d=_0x43bf50('meta[property=\x27article:published_time\x27]')[_0x2e0555(_0x5e7548._0x28c59c,0x245,0x2ac,0x20b)](_0x17bec3(_0x5e7548._0x41a3c1,_0x5e7548._0x1ef00d,_0x5e7548._0x27576b,0x78))||_0x43bf50(_0x17bec3(-_0x5e7548._0x16db24,-_0x5e7548._0x2b9443,-0x12e,-0x1af))[_0x2e0555(0x3f1,_0x5e7548._0x8454f7,_0x5e7548._0x419c62,_0x5e7548._0x31cbc6)]('datetime')||_0x164377['publishedAt'],_0x58fdcc=_0x43bf50(_0x2e0555(_0x5e7548._0x48019c,_0x5e7548._0x2a9697,0x4e3,0x418))[_0x2e0555(_0x5e7548._0x18c9b3,_0x5e7548._0x5b6877,_0x5e7548._0x3dd039,_0x5e7548._0x5b7bf2)](_0x17bec3(0x3b,-0x162,-0x5,0xd6));return{..._0x164377,'title':_0x575164||_0x164377[_0x17bec3(-0x154,-_0x5e7548._0x3b5b7a,-0x41,_0x5e7548._0x2ae347)],'snippet':_0x564e92,'url':_0x58fdcc?normalizeUrl(new URL(_0x58fdcc,_0x164377['url'])[_0x2e0555(_0x5e7548._0x5c8e25,_0x5e7548._0x249798,_0x5e7548._0x20b274,_0x5e7548._0x525a54)]()):_0x164377[_0x2e0555(0x267,_0x5e7548._0x3bed8a,0x342,_0x5e7548._0x3ac25c)],'publishedAt':_0x422c8d};}catch{return _0x164377;}})),_0x388529=new Map(_0x507144[_0x915e9f(_0x556737._0x33bfad,0x4ea,0x3db,_0x556737._0x299fd0)](0x0,0xa)[_0x2f0bd4(-0x183,-0x162,-_0x556737._0x26fbf4,-_0x556737._0x2b5897)]((_0x55fddf,_0x1fb44a)=>[_0x55fddf[_0x2f0bd4(-0xc6,-0x1fd,-0x4d,-0x6f)],_0x355de2[_0x1fb44a]]));return _0x507144[_0x915e9f(0x4fe,_0x556737._0x58b12e,_0x556737._0x45b7ca,_0x556737._0x35b3f9)](_0x232f36=>_0x388529[_0x2f0bd4(0x2c,-0x8b,0x47,-0x3d)](_0x232f36[_0x2f0bd4(-0xc6,0x81,-0x4a,-0xdb)])??_0x232f36);}function formatResults(_0x2190a8){const _0x346bb0={_0x2a8b1e:0x1fa,_0x2ee647:0x2c8,_0x2a5b9:0x300},_0x2737b0={_0x2ac413:0x261,_0x488dc5:0x449,_0xe2b514:0x3bf,_0x247048:0x431,_0x3cd029:0x392,_0x199bf1:0x460,_0x28ed38:0x65d,_0x2eb396:0x530,_0x5b6366:0x44f,_0x2c8b94:0x420,_0x5766c5:0x473,_0x271173:0x598,_0x1a05f5:0x790,_0x151ca9:0x713,_0x2169b4:0x4ae,_0x5e8766:0x563,_0x3a3059:0x546,_0x2a617b:0x534,_0xd2ea2a:0x631,_0x41a05c:0x354,_0x5d48ca:0x369},_0x32d7f3={_0x4dd183:0x14a,_0x463ef4:0x1c4},_0x40acb8={_0x48075a:0x362},_0x35d9cb={_0x4eadf2:0x221,_0x12cd1c:0x2b,_0x937f65:0x113};if(_0x2190a8[_0x3d162f(_0x346bb0._0x2a8b1e,0x208,_0x346bb0._0x2ee647,_0x346bb0._0x2a5b9)]===0x0)return'No\x20results\x20found.';function _0x3d162f(_0x44451c,_0x38b298,_0x51c637,_0x51b3b2){return _0x211934(_0x38b298- -_0x35d9cb._0x4eadf2,_0x38b298-_0x35d9cb._0x12cd1c,_0x51c637,_0x51b3b2-_0x35d9cb._0x937f65);}return _0x2190a8['map'](_0x467530=>{function _0x55fda7(_0x5eda04,_0x4d4d36,_0x592fa4,_0x5fd75c){return _0x3d162f(_0x5eda04-0x98,_0x5fd75c-_0x40acb8._0x48075a,_0x5eda04,_0x5fd75c-0x5d);}const _0x1fe2cf=[_0x467530[_0x296eed(0x254,0x20c,0x2cc,_0x2737b0._0x2ac413)][_0x296eed(_0x2737b0._0x488dc5,_0x2737b0._0xe2b514,_0x2737b0._0x247048,0x332)]+'.\x20'+_0x467530[_0x296eed(0x456,_0x2737b0._0x3cd029,_0x2737b0._0x199bf1,0x39b)],_0x467530[_0x55fda7(_0x2737b0._0x28ed38,_0x2737b0._0x2eb396,0x404,0x524)]];if(_0x467530[_0x296eed(_0x2737b0._0x5b6366,0x42c,_0x2737b0._0x2c8b94,0x552)])_0x1fe2cf[_0x296eed(0x4f3,0x552,0x568,_0x2737b0._0x5766c5)](_0x467530['snippet']);if(_0x467530[_0x55fda7(_0x2737b0._0x271173,0x670,0x488,0x54f)])_0x1fe2cf[_0x55fda7(_0x2737b0._0x1a05f5,_0x2737b0._0x151ca9,0x7d4,0x706)](_0x296eed(_0x2737b0._0x2169b4,_0x2737b0._0x5e8766,_0x2737b0._0x3a3059,0x658)+_0x467530[_0x55fda7(0x468,_0x2737b0._0x2a617b,_0x2737b0._0xd2ea2a,0x54f)]);function _0x296eed(_0x370ac4,_0x4323a0,_0x41b833,_0x48b73c){return _0x3d162f(_0x370ac4-_0x32d7f3._0x4dd183,_0x41b833-_0x32d7f3._0x463ef4,_0x48b73c,_0x48b73c-0x13d);}return _0x1fe2cf[_0x296eed(0x277,0x281,_0x2737b0._0x41a05c,_0x2737b0._0x5d48ca)]('\x0a');})['join']('\x0a\x0a');}async function searchOllama(_0xa890d5,_0x443e05,_0x358ce6){const _0x3f5183={_0x457fe1:0x263,_0x68f119:0x28e,_0x3b3beb:0x43b,_0x2fadbd:0x43d,_0x3c3dc5:0x389,_0x55095f:0x459,_0x2c5747:0x30b,_0xcf6918:0x298,_0x1c3b50:0x216,_0xbee883:0x1d2,_0x524f0b:0x481,_0x2f56d7:0x3eb,_0x24c753:0x235,_0x46d6f5:0x3de,_0x22c37b:0x2c7,_0x1c82ab:0x5a},_0x531b85={_0x1f6f78:0x23b,_0x42c83f:0x310,_0x126757:0x283,_0x12a576:0x25c,_0x180026:0x346,_0x568f3d:0x315,_0x4e3ef4:0x2ab,_0x4ae6a6:0x1d9,_0x1e1ceb:0x2cf,_0x5a9bc0:0x38d,_0x4b7f7c:0x68e,_0x47c4ec:0x62b,_0x395855:0x77e},_0x5d542f={_0xd1832a:0x18,_0xc75eb1:0x3ef},_0x256f3f=Math['max'](0x1,Math['min'](0xa,_0x443e05[_0x4bad0a(_0x3f5183._0x457fe1,0x3b7,_0x3f5183._0x68f119,0x4cd)])),_0x426eab=addSiteFilters(_0x443e05[_0x519155(0xea,0x158,0x1a9,0x23b)],_0x443e05[_0x4bad0a(0x45c,_0x3f5183._0x3b3beb,0x331,_0x3f5183._0x2fadbd)]);function _0x4bad0a(_0x3cc889,_0x493522,_0x18fe4b,_0x434168){return _0x211934(_0x493522- -0xe0,_0x493522-0x63,_0x18fe4b,_0x434168-0xf);}function _0x519155(_0x5bb9de,_0x45d691,_0x5b88c5,_0x38f69f){return _0x4820c3(_0x5bb9de-0x1d8,_0x45d691-_0x5d542f._0xd1832a,_0x38f69f,_0x5b88c5- -_0x5d542f._0xc75eb1);}const _0x3a5304=await fetchJson(_0x4bad0a(0x436,0x45c,_0x3f5183._0x3c3dc5,_0x3f5183._0x55095f),_0x358ce6,{'method':_0x519155(_0x3f5183._0x2c5747,_0x3f5183._0xcf6918,_0x3f5183._0x1c3b50,_0x3f5183._0xbee883),'headers':{'Authorization':_0x4bad0a(0x42a,_0x3f5183._0x524f0b,_0x3f5183._0x2f56d7,0x51e)+_0xa890d5[_0x4bad0a(0x349,0x347,0x289,_0x3f5183._0x24c753)]},'body':JSON['stringify']({'query':_0x426eab,'max_results':_0x256f3f})}),_0x1a2958=_0x3a5304[_0x519155(0x37a,0x4fb,_0x3f5183._0x46d6f5,0x3ac)]??[],_0x2c9dec=_0x1a2958[_0x519155(_0x3f5183._0x22c37b,0x263,0x183,_0x3f5183._0x1c82ab)]((_0x14e181,_0x20d33e)=>{const _0x3c6fbc={_0x196590:0x10d},_0x2a8c33=_0x14e181[_0x3f544b(0x24b,0x1c5,0x2b4,_0x531b85._0x1f6f78)]||'';let _0x631afb;function _0x3f544b(_0x3ca24b,_0x1facda,_0x39e164,_0x19e3d0){return _0x519155(_0x3ca24b-0x18,_0x1facda-_0x3c6fbc._0x196590,_0x19e3d0- -0x5,_0x3ca24b);}function _0x265524(_0x5b5c14,_0x44d26f,_0x35616d,_0x5dbbe5){return _0x519155(_0x5b5c14-0x15,_0x44d26f-0x127,_0x44d26f-0x3c0,_0x5dbbe5);}try{_0x631afb=new URL(_0x2a8c33)[_0x3f544b(_0x531b85._0x42c83f,_0x531b85._0x126757,0x2e2,0x3d6)];}catch{_0x631afb=null;}return{'title':_0x14e181[_0x3f544b(0x3c4,_0x531b85._0x12a576,_0x531b85._0x180026,_0x531b85._0x568f3d)]||_0x3f544b(_0x531b85._0x4e3ef4,0x1f0,0x2c0,_0x531b85._0x4ae6a6),'url':normalizeUrl(_0x2a8c33),'snippet':_0x14e181[_0x3f544b(0x4a3,0x4b1,_0x531b85._0x1e1ceb,_0x531b85._0x5a9bc0)]??null,'displayUrl':_0x631afb,'favicon':null,'publishedAt':null,'source':{'engine':_0x265524(0x5ab,_0x531b85._0x4b7f7c,_0x531b85._0x47c4ec,_0x531b85._0x395855),'rank':_0x20d33e+0x1}};});return{'items':_0x2c9dec['slice'](0x0,_0x256f3f),'engine':'ollama'};}async function searchTavily(_0x232144,_0x25111d,_0x4bccd1){const _0x561e25={_0x302331:0x6e9,_0x555d16:0x668,_0x39a57a:0x6a6,_0x478712:0x4e8,_0x1c00ea:0x450,_0x33c29e:0x47e,_0x321ad7:0x5d8,_0x5c012b:0x537,_0x2fcefe:0x507,_0x224801:0x567,_0x405035:0x413,_0x23b536:0x4dc,_0x9a0320:0x514,_0xbd793e:0x446,_0x6db32e:0x498,_0x3b7b3b:0x527,_0x426496:0x4f9,_0x4024a3:0x5d7,_0x48866b:0x706,_0x50ce61:0x3d1,_0x172d41:0x35a,_0x2a4412:0x69e,_0x3058f7:0x7c8,_0x4fad2f:0x73e,_0x5d1d59:0x43d,_0x1e7891:0x372,_0x1c66d0:0x3c3,_0x11de48:0x3ca,_0x30d526:0x5d1,_0x56909e:0x5e7,_0x5aa11d:0x606,_0x539914:0x43f,_0x2ca3a5:0x511,_0x3537ed:0x3b0,_0x2643a2:0x349,_0x1b5293:0x434},_0x579b8f={_0x3d5de1:0x122,_0x11b0e6:0x31,_0x11e428:0xc8,_0x7954f1:0x37f,_0x17981c:0x2bc,_0x5bbd10:0x45e,_0x34e3e0:0xe3,_0x569a33:0x481,_0x41e025:0x2f5,_0x30db8d:0x192,_0x27dde0:0x190},_0x3c5905={_0x3d856f:0x44,_0xce8f6d:0x59d},_0x184d85={_0x3051cc:0x1c6},_0x5ad49d={_0x376758:0x84,_0x4a7b65:0xcb},_0x5f0b24={_0x490502:0x1d5};function _0x2a006e(_0x53da6c,_0x3eec62,_0x141ed7,_0xe419d4){return _0x211934(_0x141ed7-0x1eb,_0x3eec62-0xd8,_0x53da6c,_0xe419d4-_0x5f0b24._0x490502);}const _0x5d21e3=Math[_0x2a006e(0x832,0x7ce,_0x561e25._0x302331,_0x561e25._0x555d16)](0x1,Math[_0x2a006e(_0x561e25._0x39a57a,_0x561e25._0x478712,0x5a2,_0x561e25._0x1c00ea)](0x14,_0x25111d['count'])),_0x51b06e={'query':_0x25111d[_0x2a006e(_0x561e25._0x33c29e,_0x561e25._0x321ad7,_0x561e25._0x5c012b,_0x561e25._0x33c29e)],'max_results':_0x5d21e3,'search_depth':_0x232144[_0x230669(0x553,_0x561e25._0x2fcefe,_0x561e25._0x224801,0x545)]??'basic','topic':_0x232144[_0x230669(_0x561e25._0x405035,_0x561e25._0x23b536,_0x561e25._0x9a0320,_0x561e25._0xbd793e)]??_0x2a006e(_0x561e25._0x6db32e,_0x561e25._0x3b7b3b,_0x561e25._0x426496,0x56b)};if(_0x25111d[_0x2a006e(_0x561e25._0x4024a3,0x6c9,_0x561e25._0x48866b,0x601)][_0x230669(0x559,0x4ad,0x383,_0x561e25._0x50ce61)]>0x0)_0x51b06e[_0x230669(_0x561e25._0x172d41,0x39c,0x296,0x4f2)]=_0x25111d[_0x230669(0x638,0x59f,_0x561e25._0x2a4412,0x5aa)];const _0x36328d=await fetchJson(_0x2a006e(_0x561e25._0x3058f7,0x88c,_0x561e25._0x4fad2f,0x5f1),_0x4bccd1,{'method':_0x230669(0x46b,_0x561e25._0x5d1d59,0x3dd,_0x561e25._0x1e7891),'headers':{'Authorization':'Bearer\x20'+_0x232144[_0x230669(0x395,_0x561e25._0x1c66d0,_0x561e25._0x11de48,0x39b)],'Content-Type':_0x230669(0x59a,0x5aa,0x566,0x540)},'body':JSON[_0x230669(_0x561e25._0x30d526,_0x561e25._0x56909e,_0x561e25._0x5aa11d,0x62d)](_0x51b06e)});function _0x230669(_0x5b81b6,_0x1245ed,_0x444ef4,_0x58d72e){return _0x211934(_0x1245ed-_0x5ad49d._0x376758,_0x1245ed-0x145,_0x5b81b6,_0x58d72e-_0x5ad49d._0x4a7b65);}const _0xe1b605=_0x36328d['results']??[],_0x556673=_0xe1b605[_0x2a006e(0x3ef,_0x561e25._0x539914,_0x561e25._0x2ca3a5,0x4ab)]((_0x2abcbb,_0x3dca9c)=>{const _0x5de213=_0x2abcbb[_0x89be5e(0x165,-_0x579b8f._0x3d5de1,_0x579b8f._0x11b0e6,-_0x579b8f._0x11e428)]||'';function _0x27b808(_0x12fad9,_0x49054a,_0xea0b9b,_0x3d6573){return _0x230669(_0x12fad9,_0xea0b9b- -0x24c,_0xea0b9b-0x31,_0x3d6573-_0x184d85._0x3051cc);}function _0x89be5e(_0x9dc080,_0x10b28f,_0x5b5f1a,_0x95fbe8){return _0x2a006e(_0x10b28f,_0x10b28f-_0x3c5905._0x3d856f,_0x5b5f1a- -_0x3c5905._0xce8f6d,_0x95fbe8-0xc8);}let _0x44acc4;try{_0x44acc4=new URL(_0x5de213)[_0x27b808(_0x579b8f._0x7954f1,_0x579b8f._0x17981c,0x3b6,_0x579b8f._0x5bbd10)];}catch{_0x44acc4=null;}return{'title':_0x2abcbb['title']||_0x89be5e(_0x579b8f._0x11b0e6,-0x190,-0x31,_0x579b8f._0x34e3e0),'url':normalizeUrl(_0x5de213),'snippet':_0x2abcbb[_0x27b808(_0x579b8f._0x569a33,_0x579b8f._0x41e025,0x36d,0x2e9)]??null,'displayUrl':_0x44acc4,'favicon':null,'publishedAt':null,'source':{'engine':_0x27b808(0xb6,0xd4,_0x579b8f._0x30db8d,_0x579b8f._0x27dde0),'rank':_0x3dca9c+0x1}};});return{'items':_0x556673[_0x230669(0x46f,_0x561e25._0x3537ed,_0x561e25._0x2643a2,_0x561e25._0x1b5293)](0x0,_0x5d21e3),'engine':'tavily'};}async function searchGoogleCse(_0x39240d,_0x25fde6,_0x2d3877){const _0x35f3f9={_0x45c08d:0x1ec,_0x33a61f:0x209,_0x2d10cb:0x126,_0x1fe94e:0x1b6,_0x49f99c:0x1f5,_0x300357:0x44e,_0x48b137:0x321,_0x139da2:0x375,_0x49901a:0x2d,_0x3f2602:0x11f,_0x5382e5:0x46,_0x15855e:0xa4,_0x4ccad2:0x65,_0x457952:0x34e,_0x1aae38:0x233,_0x1ad376:0x2e1,_0xee2a8e:0x2f8,_0x4de31a:0x12,_0x1246f4:0xc4,_0x5b06ea:0x112,_0x5994f0:0x6d,_0x519f0b:0x38d,_0xca8597:0x2ab,_0x4d5bbc:0x3ab,_0xcfd285:0x1c4,_0x553529:0x2ca,_0xc4c5f:0x3bd,_0x55fbaf:0x266,_0x277340:0x211,_0x54aaab:0x26f,_0x4cb714:0x1fd,_0x437510:0x2a1,_0x595367:0x199,_0x349ea6:0x151,_0x3f60cb:0xcf,_0x48859f:0x129,_0x4b9139:0xb2,_0xe82f:0x1a,_0x358873:0x111,_0x25241d:0x20c,_0xc9a75:0x1a2,_0xa0502f:0x170,_0x34c3c0:0x265,_0x48e304:0x1fd,_0x3821ce:0x2b4,_0x2cc4f9:0x556,_0x297d16:0x3eb,_0x3a3226:0x32c,_0x58d934:0x41e,_0x4bf217:0x2d9,_0x16d013:0x484,_0x1bb2c6:0x429,_0x168afd:0x2ba,_0x4e21de:0x2cd,_0x25f2f2:0x2f7,_0x2de3e7:0x318,_0x1a3767:0x1d3,_0x57811e:0x279,_0x258ac6:0x2de,_0x31db82:0x4f1,_0x13c8bf:0x429,_0x441ca8:0x18d,_0x40cda1:0xb8,_0x3052ee:0x182,_0x18281a:0x222,_0x389d06:0x1c1,_0x5b7b07:0x317,_0x1432d5:0x173,_0x3eb12d:0x2f5,_0x4c2675:0x1af,_0x2f6447:0x111,_0x4fdf40:0x87,_0x2d54cf:0x141,_0x33763c:0x25b,_0x247a49:0x372,_0x1d283e:0x1de,_0x53d7c9:0x459,_0x3405b1:0x31f,_0x987c4f:0x1a9,_0x464fe6:0x164,_0x120cff:0x165,_0x1b5314:0x355,_0x38cf7a:0x38a,_0x37da3a:0x3af,_0x3bb7c4:0x2b2,_0x58ac30:0x169,_0x2cc69a:0x480,_0x46f227:0x354,_0xe014ce:0x346,_0x4c0bc8:0x17b,_0x43b5ac:0x46e,_0xdefe52:0x405,_0x3ebd0a:0x456,_0x5a603b:0x346,_0x30bf7f:0x306,_0x30a45e:0x2a5,_0xa9cbe4:0x1bc,_0x1c354d:0x26c,_0xf7019f:0x3a4,_0x37b74d:0x307,_0x49916d:0x2be,_0x49007e:0x1c8,_0x25f9b5:0x94,_0x8cc289:0x71,_0x50087c:0x177,_0x508a42:0x143,_0x1b725e:0x49c,_0x58f965:0x34e,_0x35390a:0x407,_0x5a50f7:0x18f,_0xc7c631:0x122,_0x4ab501:0x2c},_0x1ba7ef={_0x58b57c:0x177};function _0x44d06b(_0x5a9cff,_0x3f713f,_0x3307eb,_0x4665da){return _0x211934(_0x4665da- -_0x1ba7ef._0x58b57c,_0x3f713f-0x109,_0x3307eb,_0x4665da-0xc0);}const _0x1eadb5=Math['max'](0x1,Math['min'](0x32,_0x25fde6[_0x44d06b(_0x35f3f9._0x45c08d,_0x35f3f9._0x33a61f,0x1f8,0x320)]));if(_0x25fde6[_0x44d06b(0x15e,_0x35f3f9._0x2d10cb,_0x35f3f9._0x1fe94e,_0x35f3f9._0x49f99c)]+_0x1eadb5>0x64)throw new ToolExecutionError(_0x44d06b(_0x35f3f9._0x300357,0x308,_0x35f3f9._0x48b137,_0x35f3f9._0x139da2),{'offset':_0x25fde6[_0x5e6416(_0x35f3f9._0x49901a,_0x35f3f9._0x3f2602,0x1bc,0x65)],'count':_0x1eadb5,'maxResults':0x64});const _0x46fe95=cseDateRestrict(_0x25fde6['recencyDays']),_0x2eb2d4=addSiteFilters(_0x25fde6[_0x5e6416(-_0x35f3f9._0x5382e5,0xf0,0x181,0x45)],_0x25fde6['domains']);let _0x47de41=0x0,_0x336a8a=_0x25fde6[_0x5e6416(0x153,-_0x35f3f9._0x15855e,0xcd,_0x35f3f9._0x4ccad2)]+0x1;function _0x5e6416(_0x501e08,_0x5d1a7b,_0x580bfa,_0x1334f3){return _0x4820c3(_0x501e08-0x8e,_0x5d1a7b-0x19c,_0x5d1a7b,_0x1334f3- -0x553);}const _0x610453=[];while(_0x47de41<_0x1eadb5){const _0x3bc123=Math[_0x44d06b(0x272,_0x35f3f9._0x457952,_0x35f3f9._0x1aae38,0x240)](0xa,_0x1eadb5-_0x47de41),_0x2cce1c=new URL(_0x44d06b(0x2a3,0x313,_0x35f3f9._0x1ad376,0x339));_0x2cce1c[_0x44d06b(0x214,0x2d5,_0x35f3f9._0xee2a8e,0x2a1)][_0x5e6416(_0x35f3f9._0x4de31a,_0x35f3f9._0x1246f4,_0x35f3f9._0x5b06ea,_0x35f3f9._0x5994f0)](_0x44d06b(0x2be,_0x35f3f9._0x519f0b,0x3fe,_0x35f3f9._0xca8597),_0x39240d['googleCseKey']),_0x2cce1c[_0x44d06b(_0x35f3f9._0x4d5bbc,_0x35f3f9._0xcfd285,_0x35f3f9._0x553529,0x2a1)]['set']('cx',_0x39240d[_0x5e6416(_0x35f3f9._0xc4c5f,_0x35f3f9._0x55fbaf,_0x35f3f9._0x277340,_0x35f3f9._0x54aaab)]),_0x2cce1c['searchParams'][_0x44d06b(0x214,0x133,0x1de,_0x35f3f9._0x4cb714)]('q',_0x2eb2d4),_0x2cce1c[_0x44d06b(0x3ae,0x3ad,0x32d,_0x35f3f9._0x437510)][_0x44d06b(_0x35f3f9._0x595367,_0x35f3f9._0x349ea6,0xf4,_0x35f3f9._0x4cb714)](_0x5e6416(0x1a7,_0x35f3f9._0x3f60cb,_0x35f3f9._0x48859f,0x1f8),String(_0x3bc123)),_0x2cce1c[_0x5e6416(_0x35f3f9._0x4b9139,-_0x35f3f9._0xe82f,0x170,_0x35f3f9._0x358873)][_0x44d06b(_0x35f3f9._0x25241d,0x2ad,0xcf,0x1fd)](_0x44d06b(_0x35f3f9._0xc9a75,0x3b4,_0x35f3f9._0xa0502f,_0x35f3f9._0x34c3c0),String(_0x336a8a)),_0x2cce1c['searchParams'][_0x44d06b(0x1f6,0x1c7,0x133,_0x35f3f9._0x48e304)](_0x44d06b(0x373,0x31d,0x1dc,_0x35f3f9._0x3821ce),_0x25fde6['safe']?_0x44d06b(_0x35f3f9._0x2cc4f9,_0x35f3f9._0x297d16,_0x35f3f9._0x3a3226,_0x35f3f9._0x58d934):_0x5e6416(_0x35f3f9._0x4bf217,0x31e,0x2a9,0x260));_0x25fde6[_0x44d06b(0x4cd,0x3df,_0x35f3f9._0x297d16,0x429)]&&(_0x2cce1c[_0x44d06b(0x236,0x180,0x27a,_0x35f3f9._0x437510)]['set']('hl',_0x25fde6[_0x44d06b(_0x35f3f9._0x16d013,0x443,0x57f,_0x35f3f9._0x1bb2c6)]),_0x2cce1c[_0x44d06b(0x249,0x3e7,_0x35f3f9._0x168afd,0x2a1)][_0x44d06b(_0x35f3f9._0x4e21de,_0x35f3f9._0x25f2f2,0x191,0x1fd)]('lr',_0x44d06b(_0x35f3f9._0x2de3e7,_0x35f3f9._0x1a3767,_0x35f3f9._0x57811e,0x250)+_0x25fde6[_0x44d06b(_0x35f3f9._0x258ac6,_0x35f3f9._0x31db82,0x36b,_0x35f3f9._0x13c8bf)]));if(_0x25fde6['region'])_0x2cce1c[_0x5e6416(-0x2c,0x12e,_0x35f3f9._0x441ca8,_0x35f3f9._0x358873)][_0x44d06b(0x1cc,_0x35f3f9._0x40cda1,_0x35f3f9._0x3052ee,_0x35f3f9._0x48e304)]('gl',_0x25fde6[_0x5e6416(0x250,_0x35f3f9._0x18281a,_0x35f3f9._0x389d06,0x1aa)][_0x5e6416(_0x35f3f9._0x5b7b07,_0x35f3f9._0x1432d5,_0x35f3f9._0x3eb12d,0x1ed)]());if(_0x25fde6['type']==='images')_0x2cce1c[_0x5e6416(0x167,_0x35f3f9._0x4c2675,-0xc,_0x35f3f9._0x2f6447)][_0x5e6416(0xd9,_0x35f3f9._0x4fdf40,_0x35f3f9._0x2d54cf,0x6d)]('searchType',_0x5e6416(0x340,0xc0,_0x35f3f9._0x33763c,_0x35f3f9._0x49f99c));if(_0x46fe95)_0x2cce1c['searchParams'][_0x5e6416(0x5b,-0x8d,0x10f,0x6d)](_0x44d06b(0x413,0x3f1,_0x35f3f9._0x247a49,0x2f0),_0x46fe95);const _0x56e261=await fetchJson(_0x2cce1c[_0x44d06b(_0x35f3f9._0x1d283e,0x228,_0x35f3f9._0x53d7c9,_0x35f3f9._0x3405b1)](),_0x2d3877),_0x22d918=_0x56e261[_0x5e6416(0x91,_0x35f3f9._0x987c4f,_0x35f3f9._0x464fe6,_0x35f3f9._0x120cff)]??[];if(_0x22d918[_0x44d06b(0x156,_0x35f3f9._0x1b5314,_0x35f3f9._0x38cf7a,0x2b2)]===0x0)break;const _0x4b57cd=_0x47de41;for(let _0x209573=0x0;_0x209573<_0x22d918[_0x44d06b(0x3e6,0x18c,_0x35f3f9._0x37da3a,_0x35f3f9._0x3bb7c4)];_0x209573++){const _0x513cfe=_0x22d918[_0x209573];if(!_0x513cfe)continue;const _0x2bc325=_0x513cfe['link']||_0x513cfe[_0x5e6416(_0x35f3f9._0x58ac30,0x25a,0x2c7,0x1f5)]?.['contextLink']||'',_0x4c5907=_0x513cfe[_0x44d06b(_0x35f3f9._0x2cc69a,_0x35f3f9._0x46f227,0x2e7,_0x35f3f9._0xe014ce)]||_0x513cfe[_0x5e6416(_0x35f3f9._0x4c0bc8,0x13e,0x262,0x1f5)]?.[_0x44d06b(_0x35f3f9._0x43b5ac,_0x35f3f9._0xdefe52,_0x35f3f9._0x3ebd0a,_0x35f3f9._0x5a603b)]||'Untitled',_0x275ef0=_0x513cfe[_0x44d06b(0x44c,0x27e,0x435,_0x35f3f9._0x30bf7f)]||_0x513cfe[_0x5e6416(_0x35f3f9._0x30a45e,_0x35f3f9._0xa9cbe4,_0x35f3f9._0x1c354d,0x27c)]?.[_0x44d06b(_0x35f3f9._0xf7019f,_0x35f3f9._0x37b74d,0x24c,_0x35f3f9._0x49916d)](/<[^>]+>/g,''),_0x2f1f28=_0x513cfe['pagemap']?.[_0x5e6416(_0x35f3f9._0x49007e,0x178,-_0x35f3f9._0x25f9b5,_0x35f3f9._0x8cc289)]?.[0x0]??{};let _0x353235;try{_0x353235=new URL(_0x2bc325)['host'];}catch{_0x353235=null;}_0x610453['push']({'title':_0x4c5907,'url':normalizeUrl(_0x2bc325),'snippet':_0x275ef0??null,'displayUrl':_0x353235,'favicon':null,'publishedAt':_0x2f1f28[_0x44d06b(_0x35f3f9._0x50087c,0x19b,_0x35f3f9._0x508a42,0x19f)]||_0x2f1f28[_0x44d06b(_0x35f3f9._0x1b725e,0x476,0x24e,_0x35f3f9._0x58f965)]||null,'source':{'engine':'google-cse','rank':_0x4b57cd+_0x209573+0x1}});}_0x47de41+=_0x22d918[_0x44d06b(0x194,_0x35f3f9._0x1fe94e,0x27b,_0x35f3f9._0x3bb7c4)],_0x336a8a+=_0x22d918[_0x44d06b(0x3c2,_0x35f3f9._0x35390a,0x16c,0x2b2)];if(_0x22d918[_0x5e6416(0x9,0xd1,_0x35f3f9._0x5a50f7,_0x35f3f9._0xc7c631)]<_0x3bc123)break;}return _0x610453[_0x5e6416(_0x35f3f9._0x4ab501,0x5a,-0x105,0x25)](0x0,_0x1eadb5);}function isGoogleCseEngine(_0x1e71b8){const _0x288f25={_0x40396d:0x115,_0xb05088:0x112,_0xcb9d45:0x16f};function _0x14c182(_0x41d2f,_0x277b06,_0x9618d6,_0x3f08e4){return _0x4820c3(_0x41d2f-0x5c,_0x277b06-0x1ed,_0x41d2f,_0x277b06- -0x679);}return _0x14c182(-_0x288f25._0x40396d,-_0x288f25._0xb05088,-0x7f,-_0x288f25._0xcb9d45)in _0x1e71b8;}function isOllamaEngine(_0x5a7bc8){const _0x42726f={_0x5ac4e9:0x470,_0x4cb14b:0x4fd},_0x7f611c={_0x102da0:0x27,_0x3687b1:0x186,_0x2ac43a:0x1b3};function _0x512d93(_0x171c49,_0x1cf2b3,_0x24a9c1,_0x384e1e){return _0x211934(_0x384e1e- -_0x7f611c._0x102da0,_0x1cf2b3-_0x7f611c._0x3687b1,_0x171c49,_0x384e1e-_0x7f611c._0x2ac43a);}return _0x512d93(_0x42726f._0x5ac4e9,0x2f5,_0x42726f._0x4cb14b,0x400)in _0x5a7bc8;}function isTavilyEngine(_0xe1e089){const _0x2c3930={_0x50bf38:0x237,_0x3cf863:0x1f9},_0x3628e5={_0x3186e1:0x20};function _0x3eca07(_0x599a47,_0x3f5f80,_0x3913b1,_0x2ba3e7){return _0x4820c3(_0x599a47-_0x3628e5._0x3186e1,_0x3f5f80-0x14a,_0x599a47,_0x3913b1- -0x392);}return _0x3eca07(0xa1,_0x2c3930._0x50bf38,_0x2c3930._0x3cf863,0x15b)in _0xe1e089;}function createWebSearchTool(_0x46f70c){const _0x6d0fab={_0x341dbc:0x149,_0x325080:0x18c,_0x2c36c9:0x18,_0x2837d2:0x162,_0x59548d:0xe8,_0x340e12:0x114,_0xdbd4ce:0x3e,_0x534833:0x10,_0x31804e:0x27,_0x37f691:0x129,_0x5c7793:0x32,_0x50c3c1:0x33d,_0x43bea9:0x292,_0x1e08ff:0x15f,_0xbd495b:0xe1,_0x5415b4:0x6e,_0x56bad6:0xb,_0x228b0e:0x4a,_0x344201:0x3f,_0x171f98:0x0,_0x4e591e:0x54,_0xacada8:0x3b,_0x3b8c0b:0x5a,_0x4f0b3a:0x44,_0x2f682c:0x17a,_0x493d89:0x55,_0x46744a:0x68,_0x87caa4:0xc4,_0x335795:0x12b,_0x51b7f3:0x50,_0x57a115:0x2a,_0x391a4c:0x57,_0x1ffbfc:0x11f,_0x737e79:0x1c7,_0x2e59b0:0x101},_0xa917de={_0x2a6154:0x27d,_0x1ca938:0x255,_0x4d90b8:0x246,_0x56cf1f:0x366,_0x7f7938:0x3a6,_0x1c63e4:0x2ec,_0x4b6748:0x344,_0x5bacb2:0x378,_0x69fb16:0x402,_0x43d9a6:0x377,_0xecef40:0x436,_0x11754d:0x2ba,_0x5c6cce:0x53d,_0x5f36a1:0x500,_0x1767aa:0x40a,_0x279814:0x31b,_0x20fbe1:0x41e,_0x55725d:0x35f,_0xdfd21f:0x347,_0x318ef3:0x401,_0x1f3a8a:0x2f3,_0xd36180:0x312,_0x382ec0:0x23f,_0xf496bb:0x323,_0x208692:0x5bb,_0x36b755:0x4a3,_0x273cf4:0x2a9,_0x13d960:0x43a,_0x116cbf:0x437,_0x38c7a8:0x472,_0x540644:0x5a1,_0x578631:0x499,_0x51152c:0x4e4,_0x1b5030:0x323,_0x3b0444:0x3da,_0x351f10:0x446,_0x339f47:0x2b8,_0x13b88d:0x1b0,_0xc7e3a5:0x192,_0x5e67fc:0x468,_0x3d81b1:0x5a2,_0x134573:0x32b,_0x3f2406:0x299,_0x470231:0x393,_0x2ba02a:0x407,_0x1285fd:0x359,_0x25a22e:0x2ec,_0x4c86e6:0x3e4,_0x108248:0x215,_0x2d5c27:0x41d,_0x5bf387:0x49d,_0x18a9fe:0x4db,_0x45d972:0x58c,_0x5b9ed7:0x4cb,_0x50ca2f:0x38f,_0x54a502:0x413,_0x5ee0e9:0x468,_0x49f826:0x3a8,_0x4b7a2c:0x59f,_0x4cc9e9:0x443,_0x3b300e:0x1ff,_0x2bc447:0x269,_0x2d6801:0x33e,_0x3c939d:0x3ea,_0x1c9fca:0x3ac,_0x4b0517:0x3c8,_0x258a5d:0x41c,_0xf728e1:0x351,_0x44b107:0x360,_0x7f1982:0x3c5,_0x2a5780:0x354,_0xab6e4f:0x355,_0x101652:0x405,_0x598fda:0x3b4,_0x26498f:0x428,_0x425299:0x492,_0x1a82c0:0x32f,_0x2296d9:0x408,_0x1a1a12:0x295,_0x42b311:0x3ba,_0x3baa67:0x32c,_0x31bab1:0x34c,_0x3469f2:0x24f,_0x89cc0b:0x1eb,_0x1e663c:0x414,_0x597628:0x39a,_0x57209f:0x4f9,_0x4729b0:0x4de},_0x3c054c={_0x22322c:0x244,_0x5eb34c:0xa8,_0x218125:0x15d};if(!_0x46f70c[_0x22379b(_0x6d0fab._0x341dbc,0x15f,0xcd,0xe0)]||_0x46f70c[_0x1729d0(_0x6d0fab._0x325080,0xe7,-_0x6d0fab._0x2c36c9,0x37)][_0x1729d0(_0x6d0fab._0x2837d2,_0x6d0fab._0x59548d,_0x6d0fab._0x340e12,-_0x6d0fab._0xdbd4ce)]===0x0)throw new Error(_0x1729d0(_0x6d0fab._0x534833,_0x6d0fab._0x31804e,_0x6d0fab._0x37f691,-_0x6d0fab._0x5c7793));const _0x29445f=_0x46f70c['name']??_0x1729d0(_0x6d0fab._0x50c3c1,0x23a,_0x6d0fab._0x43bea9,0x2e3);function _0x1729d0(_0xad564d,_0x225a14,_0x2e7fd4,_0x17aec8){return _0x211934(_0x225a14- -0x341,_0x225a14-0x1c8,_0xad564d,_0x17aec8-0x1a2);}function _0x22379b(_0x37c959,_0x229ca5,_0x20d1ab,_0xbef898){return _0x211934(_0x20d1ab- -0x35b,_0x229ca5-0x61,_0x229ca5,_0xbef898-0x74);}const _0x49925c=_0x46f70c[_0x1729d0(0xe7,-0x20,-_0x6d0fab._0x1e08ff,-_0x6d0fab._0xbd495b)];return defineTool({'name':_0x29445f,'description':_0x22379b(_0x6d0fab._0x5415b4,-0x82,-0x37,-_0x6d0fab._0x56bad6),'inputSchema':{'type':_0x1729d0(-0x115,_0x6d0fab._0x228b0e,-0xaf,-0x2c),'properties':{'description':{'type':'string'},'query':{'type':_0x22379b(_0x6d0fab._0x344201,0xd9,0x44,_0x6d0fab._0x171f98)},'count':{'type':_0x22379b(_0x6d0fab._0x4e591e,-0x100,0x2a,-_0x6d0fab._0xacada8)},'offset':{'type':_0x1729d0(_0x6d0fab._0x3b8c0b,_0x6d0fab._0x4f0b3a,_0x6d0fab._0x56bad6,0x95)},'domains':{'type':_0x1729d0(_0x6d0fab._0x2f682c,_0x6d0fab._0x493d89,0x1b0,0x16a),'items':{'type':_0x1729d0(_0x6d0fab._0x46744a,0x5e,_0x6d0fab._0x87caa4,0x6a)}},'recencyDays':{'type':_0x22379b(-_0x6d0fab._0x335795,_0x6d0fab._0x51b7f3,_0x6d0fab._0x57a115,-0x4e)},'lang':{'type':_0x22379b(0xf,-_0x6d0fab._0x391a4c,0x44,0x173)},'region':{'type':_0x22379b(-0x1,-0xef,0x44,0x1a)},'safe':{'type':_0x1729d0(0x1d8,_0x6d0fab._0x1ffbfc,-0x7,_0x6d0fab._0x737e79)},'type':{'type':'string'},'hydrateMeta':{'type':'boolean'}},'required':[_0x22379b(0xed,0x72,-0xf,-_0x6d0fab._0x2e59b0)]},async *'execute'(_0x3f37bd,_0xa90830){const _0x400d73={_0x2bba3a:0x633,_0x4d0cfc:0x5d0,_0x30599f:0x82f,_0x254c1a:0x749,_0x2ea7df:0x60c,_0x5eca45:0x8b,_0x1555e5:0xb6},_0xc76fb0={_0x2b6dd9:0x69,_0x432020:0x127},_0x1fd702={_0x33bf97:0x1a3},_0x26c1c1=_0x3f37bd[_0x2e5825(_0xa917de._0x2a6154,_0xa917de._0x1ca938,_0xa917de._0x4d90b8,_0xa917de._0x56cf1f)][_0x2e5825(0x311,_0xa917de._0x7f7938,_0xa917de._0x1c63e4,0x3a9)]();function _0x2e5825(_0x2adee6,_0x4674ca,_0x40a75e,_0x195692){return _0x22379b(_0x2adee6-_0x1fd702._0x33bf97,_0x195692,_0x2adee6-0x28c,_0x195692-0x43);}if(!_0x26c1c1)throw new ToolExecutionError(_0x25a367(0x2f5,0x526,0x561,0x422));const _0x3b3e06={'query':_0x26c1c1,'count':Math['max'](0x1,Math[_0x25a367(0x21a,_0xa917de._0x4b6748,_0xa917de._0x5bacb2,0x2ba)](0x32,Math[_0x2e5825(_0xa917de._0x69fb16,0x31a,0x431,_0xa917de._0x43d9a6)](_0x3f37bd[_0x25a367(_0xa917de._0xecef40,0x4c5,_0xa917de._0x11754d,0x39a)]??0xa))),'offset':Math[_0x25a367(0x2af,0x4f5,_0xa917de._0x5c6cce,0x401)](0x0,Math['trunc'](_0x3f37bd['offset']??0x0)),'domains':_0x3f37bd[_0x25a367(_0xa917de._0x5f36a1,_0xa917de._0x1767aa,_0xa917de._0x279814,_0xa917de._0x20fbe1)]??[],'recencyDays':Math[_0x25a367(_0xa917de._0x55725d,0x37a,_0xa917de._0xdfd21f,_0xa917de._0x318ef3)](0x0,Math[_0x25a367(_0xa917de._0x1f3a8a,0x521,_0xa917de._0xd36180,0x3d4)](_0x3f37bd[_0x25a367(0x377,_0xa917de._0x382ec0,0x2b3,_0xa917de._0xf496bb)]??0x0)),'lang':_0x3f37bd[_0x25a367(0x367,_0xa917de._0x208692,0x432,_0xa917de._0x36b755)]??'en','region':_0x3f37bd['region']??'','safe':_0x3f37bd[_0x25a367(0x362,_0xa917de._0x273cf4,_0xa917de._0x13d960,0x32e)]??!![],'type':normalizeType(_0x3f37bd[_0x2e5825(0x397,0x2a9,_0xa917de._0x116cbf,_0xa917de._0x38c7a8)]),'hydrateMeta':_0x3f37bd[_0x25a367(_0xa917de._0x540644,_0xa917de._0x578631,_0xa917de._0x51152c,0x4cb)]??![]};let _0x5a5895=[],_0x22e140=_0x2e5825(0x390,_0xa917de._0x1b5030,_0xa917de._0x3b0444,_0xa917de._0x351f10);for(const _0x204c68 of _0x46f70c[_0x2e5825(0x359,0x3ec,0x498,0x20d)]){try{if(isGoogleCseEngine(_0x204c68))_0x5a5895=await searchGoogleCse(_0x204c68,_0x3b3e06,_0xa90830['signal']),_0x22e140=_0x2e5825(_0xa917de._0x339f47,_0xa917de._0x13b88d,_0xa917de._0xc7e3a5,0x2a1);else{if(isOllamaEngine(_0x204c68)){const _0x5552be=await searchOllama(_0x204c68,_0x3b3e06,_0xa90830[_0x2e5825(_0xa917de._0x5e67fc,0x46a,0x421,_0xa917de._0x3d81b1)]);_0x5a5895=_0x5552be[_0x25a367(_0xa917de._0x134573,_0xa917de._0x3f2406,0x39a,0x36f)],_0x22e140=_0x5552be[_0x2e5825(0x30b,_0xa917de._0x470231,0x2cd,0x449)];}else{if(isTavilyEngine(_0x204c68)){const _0x5c21b4=await searchTavily(_0x204c68,_0x3b3e06,_0xa90830[_0x2e5825(0x468,_0xa917de._0x2ba02a,0x46b,_0xa917de._0x1285fd)]);_0x5a5895=_0x5c21b4['items'],_0x22e140=_0x5c21b4['engine'];}}}if(_0x5a5895[_0x25a367(_0xa917de._0x25a22e,0x237,_0xa917de._0x4c86e6,0x32c)]>0x0)break;}catch(_0x4d6b58){if(_0x204c68===_0x46f70c['engines'][_0x46f70c[_0x2e5825(0x359,0x33d,0x39a,_0xa917de._0x108248)][_0x2e5825(0x35a,_0xa917de._0x2d5c27,_0xa917de._0x5bf387,0x415)]-0x1])throw _0x4d6b58;}}_0x3b3e06[_0x25a367(_0xa917de._0x18a9fe,0x5da,_0xa917de._0x45d972,_0xa917de._0x5b9ed7)]&&_0x5a5895[_0x2e5825(0x35a,_0xa917de._0x50ca2f,0x3b3,0x464)]>0x0&&(_0x5a5895=await hydrateResults(_0x5a5895,_0x3b3e06[_0x25a367(0x4a5,_0xa917de._0x54a502,0x549,_0xa917de._0x36b755)],_0xa90830[_0x2e5825(_0xa917de._0x5ee0e9,_0xa917de._0x49f826,0x5b0,_0xa917de._0x4b7a2c)],_0x49925c));function _0x25a367(_0x268879,_0x38e3be,_0x3270f4,_0x274948){return _0x1729d0(_0x38e3be,_0x274948-_0x3c054c._0x22322c,_0x3270f4-_0x3c054c._0x5eb34c,_0x274948-_0x3c054c._0x218125);}const _0x5ab7d7=new Set();_0x5a5895=_0x5a5895[_0x25a367(0x332,0x3f8,0x4e8,_0xa917de._0x4cc9e9)](_0x615762=>{const _0xbce00e=_0x615762[_0x1d7b4d(_0x400d73._0x2bba3a,0x746,_0x400d73._0x4d0cfc,0x4fc)][_0x1d7b4d(0x779,_0x400d73._0x30599f,_0x400d73._0x254c1a,0x748)]();if(!_0xbce00e||_0x5ab7d7[_0x1d7b4d(0x6c7,_0x400d73._0x2ea7df,0x611,0x7ae)](_0xbce00e))return![];function _0x3cb845(_0x1d9c1c,_0x3f0c17,_0x5d54ef,_0x34c04f){return _0x25a367(_0x1d9c1c-0x8,_0x34c04f,_0x5d54ef-0x122,_0x5d54ef- -0x411);}function _0x1d7b4d(_0x29a37f,_0x159c1a,_0x96f891,_0x1420d8){return _0x2e5825(_0x29a37f-0x31f,_0x159c1a-_0xc76fb0._0x2b6dd9,_0x96f891-_0xc76fb0._0x432020,_0x96f891);}return _0x5ab7d7[_0x3cb845(0x19d,0xbd,_0x400d73._0x5eca45,_0x400d73._0x1555e5)](_0xbce00e),!![];}),_0x5a5895=_0x5a5895[_0x2e5825(0x257,_0xa917de._0x3b300e,_0xa917de._0x2bc447,_0xa917de._0x2d6801)]((_0x314383,_0x39e9b1)=>({..._0x314383,'source':{..._0x314383['source'],'rank':_0x39e9b1+0x1}}));const _0x4c8898={};if(_0x3b3e06['domains'][_0x25a367(_0xa917de._0x3c939d,0x447,0x419,0x32c)]>0x0)_0x4c8898[_0x2e5825(0x44c,0x445,_0xa917de._0x1c9fca,_0xa917de._0x4b0517)]=_0x3b3e06[_0x2e5825(0x44c,_0xa917de._0x258a5d,0x321,0x571)];if(_0x3b3e06[_0x2e5825(_0xa917de._0xf728e1,0x2f0,0x2eb,_0xa917de._0x44b107)]>0x0)_0x4c8898[_0x25a367(_0xa917de._0x7f1982,_0xa917de._0x2a5780,_0xa917de._0xab6e4f,_0xa917de._0xf496bb)]=_0x3b3e06['recencyDays'];if(_0x3b3e06[_0x25a367(_0xa917de._0x101652,0x480,0x5ed,0x4a3)]!=='en')_0x4c8898[_0x2e5825(0x4d1,0x5d1,0x50d,_0xa917de._0x598fda)]=_0x3b3e06['lang'];if(_0x3b3e06[_0x25a367(_0xa917de._0x26498f,0x3f2,0x3a1,0x3b4)])_0x4c8898[_0x25a367(_0xa917de._0x425299,_0xa917de._0x1a82c0,_0xa917de._0x54a502,0x3b4)]=_0x3b3e06[_0x2e5825(0x3e2,_0xa917de._0x2296d9,0x4aa,0x538)];return yield createToolOutput(formatResults(_0x5a5895),{'engine':_0x22e140,'count':_0x5a5895[_0x25a367(_0xa917de._0x1a1a12,0x3e0,_0xa917de._0x42b311,_0xa917de._0x3baa67)],'items':_0x5a5895,'query':_0x3b3e06[_0x25a367(0x16d,_0xa917de._0x31bab1,0x18f,_0xa917de._0x3469f2)],...Object[_0x25a367(0x2dc,_0xa917de._0x89cc0b,0x235,0x2d9)](_0x4c8898)['length']>0x0?{'appliedFilters':_0x4c8898}:{},'offset':_0x3b3e06['offset'],'totalRequested':_0x3b3e06[_0x25a367(0x278,_0xa917de._0x1e663c,0x4f3,_0xa917de._0x597628)],'hydrated':_0x3b3e06[_0x2e5825(_0xa917de._0x57209f,0x5e4,0x4f7,_0xa917de._0x4729b0)]}),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,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|