@nuvin/agent-core 0.0.0-rc.0 → 0.0.0-rc.10
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/LICENSE +202 -0
- package/dist/VERSION +2 -2
- package/dist/agent/index.d.ts +54 -5
- package/dist/agent/index.js +1 -1
- package/dist/chunk-3OMYFJLN.js +1 -0
- package/dist/chunk-4DNIDCX7.js +1 -0
- package/dist/chunk-G2FR4UGO.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/index.d.ts +6 -3
- package/dist/formats/index.js +1 -1
- package/dist/models/index.d.ts +15 -12
- package/dist/models/index.js +1 -1
- package/dist/{provider-adapters-BHDQNPHa.d.ts → provider-adapters-CURkQPbY.d.ts} +1 -1
- package/dist/shared/index.d.ts +2 -2
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.d.ts +482 -8
- package/dist/tools/index.js +1 -1
- package/dist/{types-BueDJWnx.d.ts → types-Df0vlfj-.d.ts} +76 -27
- package/package.json +22 -11
- package/dist/chunk-C6OLKGP6.js +0 -1
- package/dist/chunk-EJTTW4JQ.js +0 -1
- package/dist/chunk-U2BLX7Y5.js +0 -1
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xa4c7a0,_0x372e8e){const _0x488dc8={_0x19b44c:0x40e,_0x495002:0x3ca,_0x454c3e:0x384,_0x82abe2:0x3c8,_0x2e97f8:0x402,_0x3fcb2c:0x3d6,_0x5ee9ec:0x3ec,_0x2b7e81:0x3d0,_0x4d8a1f:0x38f,_0x4f1365:0x32c,_0x31ec4b:0x394,_0x22fc35:0x354,_0x3b8611:0x412,_0xce374:0x3b1,_0x2a455a:0x3ff,_0x3c6667:0x441,_0x1b0bc1:0x404,_0x534fa0:0x3ee},_0x1245b2={_0x57e3ab:0x1e7};function _0x1221a1(_0x2d5bcc,_0x30ab54,_0x5c9335,_0xd84154){return _0xdaaf(_0x30ab54-_0x1245b2._0x57e3ab,_0x2d5bcc);}const _0x72d5e2=_0xa4c7a0();function _0x1dcc07(_0x444c45,_0x2d88c3,_0x1eaa0d,_0x4b9aa3){return _0xdaaf(_0x2d88c3-0x1c6,_0x4b9aa3);}while(!![]){try{const _0x13f1b5=-parseInt(_0x1221a1(_0x488dc8._0x19b44c,_0x488dc8._0x495002,_0x488dc8._0x454c3e,_0x488dc8._0x82abe2))/0x1+parseInt(_0x1dcc07(0x460,0x40e,0x417,0x3bc))/0x2*(parseInt(_0x1221a1(_0x488dc8._0x2e97f8,0x458,0x413,0x417))/0x3)+parseInt(_0x1221a1(0x421,_0x488dc8._0x3fcb2c,0x412,_0x488dc8._0x5ee9ec))/0x4*(-parseInt(_0x1221a1(0x38f,_0x488dc8._0x2b7e81,0x3ee,_0x488dc8._0x4d8a1f))/0x5)+-parseInt(_0x1221a1(_0x488dc8._0x4f1365,_0x488dc8._0x31ec4b,_0x488dc8._0x22fc35,0x37b))/0x6+-parseInt(_0x1dcc07(0x35d,0x387,0x38d,0x3a7))/0x7+-parseInt(_0x1dcc07(0x352,0x398,0x36a,0x34f))/0x8*(parseInt(_0x1221a1(_0x488dc8._0x3b8611,0x3be,0x3fa,_0x488dc8._0xce374))/0x9)+-parseInt(_0x1221a1(_0x488dc8._0x2a455a,_0x488dc8._0x3c6667,0x3f3,0x479))/0xa*(-parseInt(_0x1dcc07(0x455,_0x488dc8._0x1b0bc1,0x448,_0x488dc8._0x534fa0))/0xb);if(_0x13f1b5===_0x372e8e)break;else _0x72d5e2['push'](_0x72d5e2['shift']());}catch(_0x44e4fa){_0x72d5e2['push'](_0x72d5e2['shift']());}}}(_0x39d0,0xda6c6));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-EJTTW4JQ.js';import{getTextFromMessage}from'../chunk-C6OLKGP6.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';function _0x39d0(){const _0x26b7be=['ugf0AcbPCYbUB3qGysbMAwXLoIa','igzHAwXLzc4','zMLSzq','zxHPDcbJB2rLia','ru5pru5u','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','ugfJA2fNzxm','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','zNjVBq','Aw5KzxHpzG','CgLK','CMfUzg9T','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','z2XVyG','ls1NBg9I','mteYotK3nvnPweHwtW','yxnZAwDU','A2LSBa','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','y29Kzq','B2zM','BNvTyMvY','DxbKyxrL','CNvUswq','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','u2HLBgWGBM90igzVDw5KoIa','y21KlMv4zq','C3rYAw5N','Cgf0DgvYBIbPCYbYzxf1AxjLza','zNvUy3rPB24','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','l3vZCI9IAw4VyMfZAa','mJrrrKPVu1O','ls1NBg9IpseUz2L0lYO','B3v0Chv0','AgfZ','z2v0','mtmXmJi5ow5JwNLrAa','B3rOzxi','BgLUzuvUza','ihDHCYbHyM9YDgvKlG','C3rHCNrZv2L0Aa','zgf0yq','uhjVz3jHBuzPBgvZ','tM8GC3vJAcbMAwXLoIaN','wZ0+nY04kcLD','q29Tu3bLyW','C3LTBgLUAW','Bwf4','mZKWmZG1yMzUsxzW','C3jJl2v4yw1WBgvZl2rLBw8UDhm','Aw5WDxq','C2vZC2LVBKLK','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','CgfJA2fNzs5QC29U','mZi1vu5lB3vs','DgvZDa','C3jJl2fNzw50l2fNzw50lNrZ','ywDLBNrZ','ls1YzwDLEha','A2LSBgvK','nZq3nJrNuMrWzLa','B2XKvgv4Da','C3rYAw5NAwz5','CMvZDwX0','AxngAwXL','l3vZCI9IAw4VCMC','CMLWz3jLCcbMywLSzwq6ia','yM9VBgvHBG','CMLWz3jLCa','xg5DkJ8','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','ywjVCNrLza','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','zxjYB3jnzxnZywDL','CMvHC29U','BM93','C2L6zq','rMLSzuvKAxq','rMLSzu5LDW','BgvUz3rO','l2jPBI9YzW','BgLUzvn0yxj0','y3jSzG','zw52','v2LUr2v0','C2LNBMfS','C3rKB3v0','ChvZAa','y2XVC2u','BMfTzq','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','zMLSDgvY','C3rKzxjY','yMLYDgH0Aw1L','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','l2jPBI9ZAa','zMLSzvbHDgG','Bg9JywXLq29TCgfYzq','zMLUywXnzxnZywDLvgv4Da','twLJCM9ZB2z0','ls1MAwXLCW','AxnbyNnVBhv0zq','D2LUmZi','CMvZB2X2zq','uhjVz3jHBuzPBgvZkhG4nIK','BxrPBwu','BwfW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','AxngAw5PDgu','zxjYB3i','CMvWBgfJzq','l3vZCI9IAw4VC2G','u0HfteW','D3jPDgu','y29TBwfUza','C2XPy2u','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','CgXHDgzVCM0','lNrTCc4','l29WDc9OB21LyNjLDY9IAw4VCMC','AxneAxjLy3rVCNK','zw50CMLLCW','lI4U','BxrPBwvnCW','zgvSzwDHDgvKlxj1BI0','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','y2HHCKnVzgvbDa','ig1HDgnO','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uUie9WDgLVBMfSBhKGC3bLy2LMEsbSAw5LihjHBMDLCY4','DhjPBuvUza','y29UDgv4Da','AxndB250zxH0','DgHLBG','B3jPz2LUvg9VBenHBgXjza','r3jLCa','C3rHDhvZ','DhjPBq','mti0m3D4v3PQzW','lu5VuhjVzMLSzq','Aw5JBhvKzq','AwDUB3jL','qMfZAa','C2v0','Dg9tDhjPBMC','ls1MAwvSzc1TyxrJAc1ZzxbHCMf0B3i9Fa','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','mJH4ywLUv04','y3DK','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','CgfYzw50u2vZC2LVBKLK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','vw5RBM93BIb0B29SoIa','BgLTAxq','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','Dg9ju09tDhjPBMC','C3bSAxq','l2jPBI9IyxnO','BMv3vgv4Da','yMfZzw5HBwu','Dhj1BMm','zw5K','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','rMLSzsb3CML0DgvUigf0ia','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','mJe5ntqWwMXWrgnM','l3bPza','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','AxnbCNjHEq','CgLWzq','C3jJl3nOyxjLzc90ExbLCY50CW','DxrMoa','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Agv4','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','C29YDa','BgLUzvrLEhq','zMLUywXnzxnZywDL','D2HLCMuGCMC','AM9PBG','CMvSyxrPDMu','y2f0y2G','rM91BMqG','Cgf0DgvYBG','qxnZAwDUvgfZAW','ienHDxnLoIa','B2jQzwn0','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4Gysb3B3jRC3bHy2uGzgLYzwn0B3j5lG','mJC3odGXvxPbwKvn','lw5i','o1TE','zgvMyxvSDfrPBwvVDxrnCW','BwvZC2fNzq','CNvUBMLUzW','Dg9VBfjLC3vSDhm','BwLU','u0Lhs0Lmta','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','DgfZAW','qwDLBNqGCNvUia','C3rYAxbbBNnP','zgvZy3jPChrPB24','C2HLBgXqyxrO','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','CgfYC2vjBNq','B25Jzq','y29UDgvUDa','ywDLBNrjza','Bw9Kzq','C2HPzNq','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','nda3mJu2mhvKzNDMCq','zgLYBMfTzq','CMCUzxHL','zgvMyxvSDen3za','Cgf0Aa'];_0x39d0=function(){return _0x26b7be;};return _0x39d0();}import{spawn}from'child_process';import{statSync}from'fs';import*as _0x20a4fc from'os';import*as _0x366479 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x5c1169(0x542,0x520,0x526,0x58f),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x11bf24){return _0x11bf24 instanceof Error;}function shellExists(_0x438b4a){const _0x5f1475={_0x53b3e9:0x330,_0x4e1b2f:0x375,_0x6d5bc2:0x3ba,_0x1de1e6:0x408,_0x185715:0x3c2},_0x3187c9={_0x339904:0x175,_0xa388c1:0x1e0},_0x157d26={_0x2dbda4:0x1a4,_0xce0638:0xe7,_0x5ca49c:0x31};function _0x40d64c(_0x1c6128,_0x2a1f19,_0x363dbf,_0x185f23){return _0x5c1169(_0x1c6128-_0x157d26._0x2dbda4,_0x2a1f19,_0x185f23- -_0x157d26._0xce0638,_0x185f23-_0x157d26._0x5ca49c);}function _0x3196a1(_0x254c71,_0x233afa,_0x52c792,_0xb42134){return _0x5c1169(_0x254c71-_0x3187c9._0x339904,_0x254c71,_0x52c792- -_0x3187c9._0xa388c1,_0xb42134-0x82);}try{const _0x467da1=statSync(_0x438b4a);return _0x467da1[_0x3196a1(_0x5f1475._0x53b3e9,0x30c,_0x5f1475._0x4e1b2f,_0x5f1475._0x6d5bc2)]()&&(_0x467da1[_0x3196a1(0x3b7,0x411,_0x5f1475._0x1de1e6,_0x5f1475._0x185715)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x12cc19){const _0x2cbd9a={_0x204435:0x51b,_0x25a58a:0x526,_0x14abed:0x5e3,_0x265928:0x578,_0xf6088f:0x590,_0x2850ed:0x601,_0x4404f1:0x5f3,_0x5d43a9:0x5a2,_0x3ab781:0x604,_0x1ad2d0:0x572,_0xc9892a:0x4ba,_0xef696c:0x58b,_0x2fa882:0x5e8,_0x762be9:0x4d9,_0xc04007:0x4c4,_0x303f44:0x619,_0x54afdd:0x5fa,_0x449f20:0x621,_0x4ec8d0:0x4db,_0x16d048:0x4f1,_0x5a377c:0x5fb,_0x3d5f04:0x63d,_0x493599:0x68c},_0x2e49b7={_0x3998cf:0x34,_0xc1088d:0x190};if(_0x12cc19)return _0x12cc19;function _0x594779(_0x24d8bb,_0x157ecb,_0x479037,_0x49cf31){return _0x5c1169(_0x24d8bb-0x14a,_0x49cf31,_0x24d8bb- -0x8f,_0x49cf31-0xbd);}if(_0x20a4fc[_0x594779(0x4fd,0x551,_0x2cbd9a._0x204435,0x4a3)]()===_0x594779(0x4ec,0x480,0x497,_0x2cbd9a._0x25a58a))return process[_0x5be598(_0x2cbd9a._0x14abed,0x5dc,_0x2cbd9a._0x265928,0x583)][_0x5be598(_0x2cbd9a._0xf6088f,0x5b6,_0x2cbd9a._0x2850ed,0x559)]||_0x5be598(_0x2cbd9a._0x4404f1,_0x2cbd9a._0x5d43a9,_0x2cbd9a._0x3ab781,_0x2cbd9a._0x1ad2d0);const _0x5dc622=[_0x594779(0x525,0x567,_0x2cbd9a._0xc9892a,_0x2cbd9a._0xef696c),_0x5be598(0x59b,_0x2cbd9a._0x2fa882,0x610,0x59c),_0x594779(0x4a4,_0x2cbd9a._0x762be9,0x4cb,_0x2cbd9a._0xc04007),_0x5be598(_0x2cbd9a._0x303f44,_0x2cbd9a._0x54afdd,0x5a4,_0x2cbd9a._0x449f20)];for(const _0x3c50fc of _0x5dc622){if(shellExists(_0x3c50fc))return _0x3c50fc;}function _0x5be598(_0x2a7613,_0x2d406b,_0x1162ee,_0x2fae29){return _0x5c1169(_0x2a7613-_0x2e49b7._0x3998cf,_0x1162ee,_0x2d406b-0x74,_0x2fae29-_0x2e49b7._0xc1088d);}const _0x45a9da=process[_0x594779(0x4d9,_0x2cbd9a._0x4ec8d0,0x4da,_0x2cbd9a._0x16d048)][_0x5be598(0x657,_0x2cbd9a._0x5a377c,0x5ff,0x5ea)];if(_0x45a9da&&shellExists(_0x45a9da))return _0x45a9da;return _0x5be598(0x648,0x628,_0x2cbd9a._0x3d5f04,_0x2cbd9a._0x493599);}function buildShellArgs(_0x51665e,_0x5e4b9a){const _0x229b56={_0x20cee1:0x54a,_0x5c357f:0x5a1,_0x5fbb57:0x345,_0x4fba15:0x321,_0x273d18:0x5b6},_0x1cf18d={_0x206a2a:0xc7,_0x3fb01d:0x95},_0x5cf37b={_0x504af1:0x13d};function _0x3d97f6(_0x46246e,_0x33fb30,_0x645062,_0x4470f3){return _0x5c1169(_0x46246e-_0x5cf37b._0x504af1,_0x46246e,_0x645062- -0x207,_0x4470f3-0xe8);}function _0x24ba44(_0xabe06c,_0x26dddb,_0x499ee,_0x323533){return _0x5c1169(_0xabe06c-_0x1cf18d._0x206a2a,_0x499ee,_0x26dddb-0x15,_0x323533-_0x1cf18d._0x3fb01d);}if(_0x20a4fc[_0x24ba44(_0x229b56._0x20cee1,_0x229b56._0x5c357f,0x599,0x577)]()==='win32'){const _0x91550d=/cmd(\.exe)?$/i[_0x3d97f6(0x2ff,0x2e6,_0x229b56._0x5fbb57,_0x229b56._0x4fba15)](_0x5e4b9a);return _0x91550d?['/d','/s','/c',_0x51665e]:['-NoLogo',_0x24ba44(0x5ea,_0x229b56._0x273d18,0x55f,0x5b1),'-Command',_0x51665e];}return['-c',_0x51665e];}function stripAnsiAndControls(_0x28b2e4){const _0xf8a4d3={_0x55a481:0x44c,_0x21df4c:0x34,_0x40970b:0x28,_0x36130a:0x1,_0x54e880:0x6b,_0x505bbf:0x53,_0x4c9d7f:0x59,_0x528f90:0x496,_0x4ea447:0x47,_0x1d4836:0x4c,_0x2f449e:0x70,_0x557948:0x3fc,_0x5dd147:0x72,_0x484c5f:0x52},_0x3639ad={_0xcfbdb5:0x198,_0x4a7152:0x1c4},_0x394402={_0x88bd50:0x1a1,_0x2e5176:0x7};function _0x3431b9(_0x13dfc5,_0x36f858,_0x658ab3,_0x3c4566){return _0x5c1169(_0x13dfc5-_0x394402._0x88bd50,_0x3c4566,_0x658ab3- -0x139,_0x3c4566-_0x394402._0x2e5176);}function _0xc81508(_0x5152e7,_0x14453a,_0x2a487f,_0x169388){return _0x5c1169(_0x5152e7-_0x3639ad._0xcfbdb5,_0x169388,_0x14453a- -0x5ad,_0x169388-_0x3639ad._0x4a7152);}_0x28b2e4=stripVTControlCharacters(_0x28b2e4);const _0x5277b1='\x1b',_0x7d470c='\x07';return _0x28b2e4=_0x28b2e4[_0x3431b9(0x461,0x493,_0xf8a4d3._0x55a481,0x481)](new RegExp(_0xc81508(-_0xf8a4d3._0x21df4c,_0xf8a4d3._0x40970b,-_0xf8a4d3._0x36130a,_0xf8a4d3._0x54e880)+_0x7d470c+_0xc81508(0x7,-_0xf8a4d3._0x505bbf,-0x98,-_0xf8a4d3._0x4c9d7f)+_0x7d470c,'g'),''),_0x28b2e4=_0x28b2e4[_0xc81508(-0x1f,-0x28,-0x88,-0x65)](new RegExp(';[^\x5cn]*?'+_0x5277b1+'\x5c\x5c','g'),''),_0x28b2e4=_0x28b2e4['replace'](new RegExp(_0x7d470c,'g'),''),_0x28b2e4=_0x28b2e4[_0x3431b9(0x3f0,_0xf8a4d3._0x528f90,_0xf8a4d3._0x55a481,0x3ef)](new RegExp(_0x5277b1+'[P_^][\x5cs\x5cS]*?'+_0x5277b1+'\x5c\x5c','g'),''),_0x28b2e4=_0x28b2e4['replace'](new RegExp(_0x5277b1+_0xc81508(-_0xf8a4d3._0x4ea447,-0x6c,-_0xf8a4d3._0x1d4836,-_0xf8a4d3._0x2f449e),'g'),''),_0x28b2e4=_0x28b2e4[_0x3431b9(_0xf8a4d3._0x557948,0x4b4,_0xf8a4d3._0x55a481,0x478)](/[\u0080-\u009F]/g,''),_0x28b2e4=_0x28b2e4[_0xc81508(-0x13,-0x28,-_0xf8a4d3._0x2f449e,-0x62)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x28b2e4=_0x28b2e4[_0xc81508(-_0xf8a4d3._0x5dd147,-0x28,-_0xf8a4d3._0x484c5f,-0x15)](/[\u23CE\u2424]/g,''),_0x28b2e4;}function resolveWorkingDirectory(_0x2b62a4,_0x295b68){const _0x21ed79={_0x19b1ff:0x328,_0x3c226b:0x391,_0x47578b:0x3de,_0x21a009:0x371,_0x5c208a:0x37b},_0x1bb1b1={_0x4f0825:0x1e7,_0x1e3fcc:0x252,_0x5c7353:0x181},_0x110cb2={_0x4151ba:0x157};function _0x1a646c(_0x3fd529,_0xbad02c,_0xb76aa0,_0x45d2f1){return _0x5c1169(_0x3fd529-_0x110cb2._0x4151ba,_0xbad02c,_0x45d2f1- -0x673,_0x45d2f1-0x11d);}const _0x68e62f=_0x2b62a4?_0x366479[_0x263d23(0x32e,_0x21ed79._0x19b1ff,0x36e,0x345)](_0x2b62a4)?_0x2b62a4:_0x366479['resolve'](_0x295b68,_0x2b62a4):_0x295b68;function _0x263d23(_0x4776b8,_0x42a3a8,_0x3cc89e,_0x1a9268){return _0x5c1169(_0x4776b8-_0x1bb1b1._0x4f0825,_0x1a9268,_0x42a3a8- -_0x1bb1b1._0x1e3fcc,_0x1a9268-_0x1bb1b1._0x5c7353);}try{const _0x59b5a4=statSync(_0x68e62f);if(!_0x59b5a4['isDirectory']())throw new ToolExecutionError(_0x263d23(0x33b,_0x21ed79._0x3c226b,_0x21ed79._0x47578b,0x39f)+_0x68e62f,{'cwd':_0x68e62f});return _0x68e62f;}catch(_0x21836e){if(_0x21836e instanceof ToolExecutionError)throw _0x21836e;throw new ToolExecutionError(_0x263d23(_0x21ed79._0x21a009,0x38a,_0x21ed79._0x5c208a,0x33e)+_0x68e62f,{'cwd':_0x68e62f});}}function killProcessGroup(_0x5bb2a6,_0x35c00b,_0x2b5595=_0x27a792(0x374,0x2f9,0x31e,0x362)){const _0x787b45={_0x4017d2:0x474,_0x2f1a8e:0x297,_0x3d53f9:0x2a3,_0x30b058:0x2a8,_0x5d035c:0x1cb,_0x4ff041:0x19e,_0x2036b0:0x24b,_0x2d4f09:0x4dd,_0x43a897:0x49f,_0x34e36d:0x417,_0x20e4be:0x452,_0x22004e:0x247,_0x5e2d46:0x1bf},_0x15d354={_0x1beb82:0x107,_0x2a0c6b:0x198},_0x191bdf={_0x4638c6:0xa7,_0x40c701:0xad};function _0x242c57(_0x406745,_0x12b424,_0x4e3483,_0x2a7279){return _0x27a792(_0x406745-_0x191bdf._0x4638c6,_0x12b424-0x66,_0x2a7279,_0x12b424- -_0x191bdf._0x40c701);}if(!_0x5bb2a6[_0x2b10e8(0x443,_0x787b45._0x4017d2,0x417,0x42c)])return;if(_0x35c00b)try{spawn('taskkill',[_0x242c57(0x262,_0x787b45._0x2f1a8e,_0x787b45._0x3d53f9,_0x787b45._0x30b058),_0x5bb2a6[_0x242c57(_0x787b45._0x5d035c,0x1f8,_0x787b45._0x4ff041,_0x787b45._0x2036b0)][_0x2b10e8(_0x787b45._0x2d4f09,0x4d2,_0x787b45._0x43a897,0x4a6)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x5bb2a6['kill'](_0x2b5595);return;}function _0x2b10e8(_0x504788,_0x9656f6,_0x42f821,_0x509657){return _0x5c1169(_0x504788-0xf6,_0x9656f6,_0x42f821- -_0x15d354._0x1beb82,_0x509657-_0x15d354._0x2a0c6b);}try{process['kill'](-_0x5bb2a6[_0x2b10e8(0x3ab,0x483,_0x787b45._0x34e36d,_0x787b45._0x20e4be)],_0x2b5595);}catch{_0x5bb2a6[_0x242c57(0x234,0x1ff,_0x787b45._0x22004e,_0x787b45._0x5e2d46)](_0x2b5595);}}function appendChunk(_0x36fbe2,_0x9371a3,_0x3c90df,_0x2a8ad0,_0x554e4b){const _0x109f2b={_0x53a400:0x13e,_0x552f41:0x10f,_0x21c80b:0x11f,_0x251b53:0x16d,_0x337fa0:0x16b,_0x2b93b6:0x117,_0x2c2613:0x137},_0x1fd205={_0x2f468c:0x683,_0x454d53:0x1dd},_0x2c8fca={_0x13969c:0x1d6},_0x584020=_0x2a8ad0?stripAnsiAndControls(_0x3c90df):_0x3c90df;if(_0x584020[_0xb24e35(-_0x109f2b._0x53a400,-_0x109f2b._0x552f41,-_0x109f2b._0x21c80b,-_0x109f2b._0x251b53)]===0x0)return;_0x36fbe2[_0xb24e35(-0xe9,-_0x109f2b._0x337fa0,-_0x109f2b._0x2b93b6,-0xc0)](_0x584020);function _0x149387(_0x4ee6cd,_0x1284ee,_0x3c0b48,_0x204d7f){return _0x5c1169(_0x4ee6cd-0x1c1,_0x4ee6cd,_0x3c0b48- -0x486,_0x204d7f-_0x2c8fca._0x13969c);}_0x9371a3[_0xb24e35(-0xf9,-0x16c,-0x117,-_0x109f2b._0x2c2613)](_0x584020);function _0xb24e35(_0x1fe90d,_0x50998b,_0x343aec,_0x2ae4e2){return _0x5c1169(_0x1fe90d-0x15,_0x1fe90d,_0x343aec- -_0x1fd205._0x2f468c,_0x2ae4e2-_0x1fd205._0x454d53);}_0x554e4b();}function createBashTool(_0x5abb13={}){const _0x3c8840={_0x43556b:0x9c,_0xd00d22:0x89,_0x495022:0x46,_0x22c4b1:0x10,_0x537118:0x117,_0x242df7:0xbc,_0x3897be:0x7,_0x22f418:0xc,_0x28e4c4:0x1d,_0x5744b5:0x1c7,_0x304d8c:0x10e,_0x857ec4:0x139,_0x4d1864:0x119,_0x52e53c:0x177,_0x21e2ec:0xfd,_0x296ba9:0xef,_0x1ed0f3:0x10c,_0x5a2b37:0xe5,_0x3eb73d:0x1ae,_0x1219ff:0x200,_0x38c2a3:0x1b4,_0x5bdb7a:0x193,_0x4cf10c:0x152},_0xdd6db7={_0x3b3d14:0x24c,_0x1b28e6:0x257,_0x195ebb:0x280,_0x50ae63:0x212,_0x17ccb5:0x1a8,_0x58dfe0:0x163,_0x3be162:0x185,_0x517acd:0xe3,_0x9b271e:0x19d,_0x4f3737:0x140,_0x482e09:0x10e,_0x5a2bc6:0x167,_0x526b78:0x15f,_0x4d5624:0x295,_0x2f6a24:0x249,_0x2c52a5:0x28a,_0x3a69b2:0x20b,_0x356ba5:0x266,_0x853a91:0x271,_0x3b198e:0x13c,_0x4292d5:0x13e,_0x4dcaf8:0xde,_0x521568:0x2f4,_0x1df949:0x258,_0x43ddfe:0x239,_0x58964a:0x2d5,_0x21c12f:0x2a1,_0x335075:0x2db,_0x488075:0x1c1,_0xf08114:0x142,_0x9d877a:0x1a9,_0x3cbb2c:0x196,_0x40ea18:0x97,_0x377586:0xee,_0x5b5a6e:0xfa,_0x4b3692:0x113,_0x6497a2:0x2bd,_0x55ce32:0x340,_0x57a34a:0x152,_0xc85ac3:0x153,_0xe733ea:0x178,_0x308a10:0x2c5,_0x525538:0x269,_0x211b93:0x143,_0x2a7021:0x114,_0x550874:0xc7,_0x59032f:0x280,_0x2c9285:0x265,_0x3da564:0xf3,_0x29a4e2:0xfd,_0x5e3cc4:0x130,_0x3a0e01:0x118,_0x283c10:0x18c,_0x552012:0x166,_0xdb7757:0x145,_0x295b53:0x140,_0x208dbc:0x16c,_0x12024a:0x280,_0x4abc04:0x25b,_0x45adc7:0x168,_0x125e1d:0x1a7,_0x14021d:0x121,_0x3cfd82:0x202,_0x12c464:0x290,_0xcd659c:0x2d1,_0x1e62f4:0x2e7,_0x21a994:0x9a,_0x31e601:0xf3,_0x1d9818:0x1da,_0x576ef1:0x2b0,_0x24323c:0x27e,_0x122a4c:0x32f,_0x221327:0x2d5,_0x191427:0x273,_0x142e7c:0x287,_0x35b134:0x2ec,_0x2e1ade:0x178,_0x3543c4:0x132,_0x457c06:0x174,_0x562c41:0x217,_0x4c1717:0x1ea,_0x33325e:0x20f},_0x5f5348={_0x46c82d:0x284},_0x31a161={_0x441b81:0x125,_0x10ece8:0x169},_0x20c809={_0x2bf95b:0x1ce,_0x84516b:0x2},_0x4f34ab={_0x2f6b0c:0x159};function _0x247c90(_0x520824,_0x477dc3,_0x4a65a1,_0x24a09b){return _0x27a792(_0x520824-0x72,_0x477dc3-_0x4f34ab._0x2f6b0c,_0x520824,_0x24a09b- -0x31a);}const _0x3cda1e=_0x366479[_0x247c90(-0x1c,-0x4f,-0x63,-0x17)](_0x5abb13[_0x247c90(-_0x3c8840._0x43556b,-0x75,-_0x3c8840._0xd00d22,-0x81)]??process[_0x247c90(0x1a,-_0x3c8840._0x495022,_0x3c8840._0x22c4b1,0x18)]()),_0x1318ed=_0x5abb13[_0x376fe0(-0x107,-_0x3c8840._0x537118,-_0x3c8840._0x242df7,-0xdc)]??DEFAULT_TIMEOUT_MS,_0x7bf0a6=_0x5abb13[_0x247c90(_0x3c8840._0x3897be,_0x3c8840._0x22f418,-_0x3c8840._0x28e4c4,0x4c)]??!![],_0x3fd812=_0x5abb13[_0x376fe0(-0x16f,-_0x3c8840._0x5744b5,-_0x3c8840._0x304d8c,-0x17c)]??_0x376fe0(-_0x3c8840._0x857ec4,-_0x3c8840._0x4d1864,-_0x3c8840._0x52e53c,-0x1a6);function _0x376fe0(_0x1047cf,_0x1e0b3e,_0x757d3e,_0x4cdd3c){return _0x27a792(_0x1047cf-_0x20c809._0x2bf95b,_0x1e0b3e-_0x20c809._0x84516b,_0x1e0b3e,_0x1047cf- -0x464);}return defineTool({'name':_0x3fd812,'description':_0x5abb13[_0x376fe0(-_0x3c8840._0x21e2ec,-_0x3c8840._0x296ba9,-0xcf,-0x113)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x376fe0(-_0x3c8840._0x1ed0f3,-0x15b,-0xf6,-_0x3c8840._0x5a2b37),'properties':{'command':{'type':_0x376fe0(-_0x3c8840._0x3eb73d,-0x155,-0x15c,-_0x3c8840._0x1219ff)},'cwd':{'type':_0x376fe0(-_0x3c8840._0x3eb73d,-0x1af,-0x1cd,-0x189)},'timeoutMs':{'type':_0x376fe0(-_0x3c8840._0x38c2a3,-0x216,-0x197,-_0x3c8840._0x5bdb7a)},'ignoreOutput':{'type':_0x376fe0(-0x185,-0x1aa,-0x13f,-_0x3c8840._0x4cf10c)}},'required':['command']},async *'execute'(_0x1626de,_0x4a3525){const _0x392ec8={_0x1d72a9:0x47a,_0x5b4ca7:0x48c,_0x281641:0x4bd,_0x2fe79d:0x4db,_0x3f8337:0x474,_0x1c4d9b:0x4df,_0x3580dd:0x1bd,_0x1bf3b2:0x1fa},_0x3f169c={_0x1a801b:0x1bb,_0x4a9fbb:0x1e7,_0x24146c:0x1c5,_0x26c68f:0x1b9},_0xf3a95d={_0x2d2719:0x570},_0x126911={_0x45a1f2:0x1a9,_0x1eebcb:0x8a,_0x685939:0x1b},_0x36091d={_0x52ba76:0x2f9,_0x38ad13:0x306,_0x4a8a3c:0x35e},_0x32c36c={_0x2d9c61:0x53,_0x126d41:0x20},_0x2457fd={_0x43dc5a:0x110},_0x100a62={_0x1f7b92:0x137,_0x1ac03a:0x1a5},_0x3b7765={_0x1c653c:0x291};function _0x4b4e0f(_0x37492c,_0x5ad077,_0x1c1f30,_0x5025bd){return _0x247c90(_0x37492c,_0x5ad077-0x7c,_0x1c1f30-0xcf,_0x1c1f30-_0x3b7765._0x1c653c);}const _0x5e622a=_0x1626de['timeoutMs']??_0x1318ed;if(!Number['isFinite'](_0x5e622a)||_0x5e622a<0x1)throw new ToolExecutionError(_0x4b4e0f(_0xdd6db7._0x3b3d14,_0xdd6db7._0x1b28e6,_0xdd6db7._0x195ebb,_0xdd6db7._0x50ae63),{'command':_0x1626de[_0x139f2f(_0xdd6db7._0x17ccb5,_0xdd6db7._0x58dfe0,0x15f,_0xdd6db7._0x3be162)]});throwIfAborted(_0x4a3525[_0x139f2f(_0xdd6db7._0x517acd,_0xdd6db7._0x9b271e,_0xdd6db7._0x4f3737,_0xdd6db7._0x482e09)]);const _0x155efa=resolveWorkingDirectory(_0x1626de['cwd'],_0x3cda1e),_0x3a546d=_0x1626de['ignoreOutput']??![],_0x417f89=resolveDefaultShell(_0x5abb13[_0x139f2f(0x17d,0x174,0x1b7,_0xdd6db7._0x5a2bc6)]),_0x455837=buildShellArgs(_0x1626de[_0x139f2f(_0xdd6db7._0x4f3737,0x145,_0xdd6db7._0x526b78,0x10b)],_0x417f89),_0x34492e=_0x20a4fc[_0x4b4e0f(_0xdd6db7._0x4d5624,_0xdd6db7._0x2f6a24,_0xdd6db7._0x2c52a5,0x2a1)]()==='win32';let _0x4102ee;try{_0x4102ee=spawn(_0x417f89,_0x455837,{'cwd':_0x155efa,'env':{...process[_0x4b4e0f(0x215,_0xdd6db7._0x3a69b2,_0xdd6db7._0x356ba5,_0xdd6db7._0x853a91)],..._0x5abb13[_0x139f2f(_0xdd6db7._0x3b198e,0xeb,_0xdd6db7._0x4292d5,_0xdd6db7._0x4dcaf8)]??{}},'stdio':_0x3a546d?['ignore',_0x4b4e0f(_0xdd6db7._0x521568,0x2dd,0x2a1,_0xdd6db7._0x1df949),_0x4b4e0f(_0xdd6db7._0x43ddfe,_0xdd6db7._0x58964a,_0xdd6db7._0x21c12f,_0xdd6db7._0x335075)]:['ignore',_0x139f2f(_0xdd6db7._0x488075,0x19c,0x196,_0xdd6db7._0xf08114),_0x139f2f(_0xdd6db7._0x9d877a,0x161,_0xdd6db7._0x3cbb2c,0x13d)],'shell':![],'windowsHide':!![],'detached':!_0x34492e});}catch(_0x33e305){if(isErrnoException(_0x33e305)&&_0x33e305['code']===_0x139f2f(0xd8,_0xdd6db7._0x40ea18,_0xdd6db7._0x377586,0xf7))throw new ToolExecutionError(_0x139f2f(_0xdd6db7._0x5b5a6e,0xf2,0x103,0xbf)+_0x417f89,{'command':_0x1626de[_0x139f2f(0x110,_0xdd6db7._0x4b3692,0x15f,0xf8)],'cwd':_0x155efa,'shellPath':_0x417f89});throw new ToolExecutionError(_0x33e305 instanceof Error?_0x33e305[_0x4b4e0f(0x277,_0xdd6db7._0x6497a2,0x2d5,_0xdd6db7._0x55ce32)]:String(_0x33e305),{'command':_0x1626de['command'],'cwd':_0x155efa,'shellPath':_0x417f89});}const _0x5fe90=[],_0x5f2e4=[],_0x1d580b=new StringDecoder(_0x139f2f(_0xdd6db7._0x57a34a,_0xdd6db7._0xc85ac3,0x198,_0xdd6db7._0xe733ea)),_0x283fba=new StringDecoder(_0x4b4e0f(0x2f7,0x25b,0x2c0,0x2c4));let _0x530cf5,_0x4b777f=![];function _0x139f2f(_0x8f2a1c,_0x2bca00,_0x2949f6,_0x706305){return _0x247c90(_0x2bca00,_0x2bca00-0x141,_0x2949f6-_0x31a161._0x441b81,_0x2949f6-_0x31a161._0x10ece8);}let _0x3fac91;const _0x560d03=()=>{if(!_0x530cf5)return;const _0x369627=_0x530cf5;_0x530cf5=void 0x0,_0x369627();},_0xd90139=async()=>{function _0x43eff2(_0xd07c01,_0x124bd4,_0x293409,_0x4db24a){return _0x4b4e0f(_0x4db24a,_0x124bd4-_0x100a62._0x1f7b92,_0x293409- -_0x100a62._0x1ac03a,_0x4db24a-0x135);}if(_0x5f2e4[_0x43eff2(0x57,0x11e,0xbd,_0x2457fd._0x43dc5a)]>0x0||_0x4b777f)return;await new Promise(_0x57c70d=>{_0x530cf5=_0x57c70d;});},_0x292dd7=_0x201040=>{appendChunk(_0x5fe90,_0x5f2e4,_0x1d580b['write'](_0x201040),_0x7bf0a6,_0x560d03);},_0x2bcb65=_0x42f88e=>{function _0x4d4957(_0x51097f,_0x359e3c,_0x26d631,_0x510129){return _0x4b4e0f(_0x510129,_0x359e3c-_0x32c36c._0x2d9c61,_0x359e3c-0x73,_0x510129-_0x32c36c._0x126d41);}appendChunk(_0x5fe90,_0x5f2e4,_0x283fba[_0x4d4957(0x2d3,_0x36091d._0x52ba76,_0x36091d._0x38ad13,_0x36091d._0x4a8a3c)](_0x42f88e),_0x7bf0a6,_0x560d03);};_0x4102ee[_0x4b4e0f(_0xdd6db7._0x308a10,0x2b3,_0xdd6db7._0x525538,0x241)]?.['on'](_0x139f2f(_0xdd6db7._0x211b93,0x100,_0xdd6db7._0x2a7021,_0xdd6db7._0x550874),_0x292dd7),_0x4102ee['stderr']?.['on'](_0x4b4e0f(0x224,0x1d9,0x23c,0x2a8),_0x2bcb65);let _0x276df8=![],_0x3c61df;const _0x590bea=addAbortListener(_0x4a3525[_0x4b4e0f(0x1fc,0x22d,0x268,0x25c)],()=>{const _0xada1e7={_0x70e543:0x1b1,_0x747bf8:0x59},_0x391017={_0x292a12:0x18e};_0x3fac91=toAbortError(_0x4a3525[_0xf04198(0x2ce,0x2ee,_0x5f5348._0x46c82d,0x2bc)][_0x5bef3c(0x1b6,0x18e,0x145,0x12e)]);function _0xf04198(_0x55776e,_0x238d03,_0x2c70cb,_0x8881ce){return _0x139f2f(_0x55776e-0x139,_0x8881ce,_0x55776e-_0x391017._0x292a12,_0x8881ce-0x79);}function _0x5bef3c(_0x5444cd,_0x7cdb81,_0x57d477,_0x2f63e4){return _0x139f2f(_0x5444cd-_0xada1e7._0x70e543,_0x57d477,_0x7cdb81-_0xada1e7._0x747bf8,_0x2f63e4-0x86);}_0x4b777f=!![],_0x560d03();try{killProcessGroup(_0x4102ee,_0x34492e);}catch{}});try{const _0xac1822=new Promise((_0x28edf3,_0x542e5d)=>{const _0x3fc633={_0x34369b:0x40},_0x13ac77={_0x3d3cdd:0x570,_0x10fa47:0x4bf,_0x3a6244:0x525,_0x1fedc3:0x51e},_0x3692ea={_0x28013c:0x122};function _0x51d7c4(_0x23f64e,_0x3ecb85,_0x229c7d,_0x5b6dd8){return _0x139f2f(_0x23f64e-_0x126911._0x45a1f2,_0x3ecb85,_0x229c7d-_0x126911._0x1eebcb,_0x5b6dd8-_0x126911._0x685939);}const _0x576f65=()=>{_0x3c61df&&(clearTimeout(_0x3c61df),_0x3c61df=void 0x0);function _0x868d11(_0x45470e,_0x1b30c1,_0x18f135,_0x322e75){return _0xdaaf(_0x322e75-_0x3692ea._0x28013c,_0x1b30c1);}_0x4102ee[_0x13b38f(_0x13ac77._0x3d3cdd,_0x13ac77._0x10fa47,0x587,_0x13ac77._0x3a6244)]('error',_0x46053e);function _0x13b38f(_0x400419,_0x2c3dfd,_0x53485a,_0xaa123b){return _0xdaaf(_0xaa123b-0x35f,_0x2c3dfd);}_0x4102ee[_0x13b38f(0x531,_0x13ac77._0x1fedc3,0x4c3,_0x13ac77._0x3a6244)]('close',_0x42814e);},_0x46053e=_0x45871f=>{_0x4b777f=!![],_0x560d03(),_0x576f65(),_0x542e5d(_0x3fac91??_0x45871f);};function _0x139bc9(_0x340221,_0x4e4f8b,_0x1956aa,_0x16b8b2){return _0x139f2f(_0x340221-0xcd,_0x16b8b2,_0x340221-0x320,_0x16b8b2-0x30);}const _0x42814e=(_0x16350c,_0x291496)=>{_0x276df8=!![],appendChunk(_0x5fe90,_0x5f2e4,_0x1d580b['end'](),_0x7bf0a6,_0x560d03),appendChunk(_0x5fe90,_0x5f2e4,_0x283fba[_0x2e0180(0x593,0x5ad,_0xf3a95d._0x2d2719,0x5d1)](),_0x7bf0a6,_0x560d03),_0x4b777f=!![];function _0x2e0180(_0x49925f,_0x38a711,_0x54ecfc,_0x1e2e61){return _0xdaaf(_0x1e2e61-0x37b,_0x49925f);}_0x560d03(),_0x576f65();if(_0x3fac91){_0x542e5d(_0x3fac91);return;}_0x28edf3({'code':_0x16350c,'signal':_0x291496});};_0x3c61df=setTimeout(()=>{const _0x71287c={_0x577a83:0x23d};_0x4b777f=!![];function _0x20f2e5(_0x57be85,_0x5a5637,_0x341918,_0x40c103){return _0xdaaf(_0x57be85- -_0x3fc633._0x34369b,_0x40c103);}_0x560d03(),_0x576f65();try{killProcessGroup(_0x4102ee,_0x34492e);}catch{}function _0x5c3448(_0x2c983c,_0x172942,_0x4005a7,_0x4554f7){return _0xdaaf(_0x4554f7-_0x71287c._0x577a83,_0x2c983c);}_0x542e5d(new ToolExecutionError(_0x20f2e5(_0x3f169c._0x1a801b,0x1fb,0x15f,0x1e0)+_0x5e622a+'\x20ms',{'command':_0x1626de[_0x20f2e5(_0x3f169c._0x4a9fbb,0x242,_0x3f169c._0x24146c,_0x3f169c._0x26c68f)],'cwd':_0x155efa,'shellPath':_0x417f89,'timeoutMs':_0x5e622a,'timedOut':!![]}));},_0x5e622a),_0x4102ee['once'](_0x139bc9(_0x392ec8._0x1d72a9,_0x392ec8._0x5b4ca7,0x4cf,_0x392ec8._0x281641),_0x46053e),_0x4102ee[_0x139bc9(_0x392ec8._0x2fe79d,0x497,_0x392ec8._0x3f8337,_0x392ec8._0x1c4d9b)](_0x51d7c4(0x20a,_0x392ec8._0x3580dd,0x1cd,_0x392ec8._0x1bf3b2),_0x42814e);});while(_0x5f2e4['length']>0x0||!_0x4b777f){if(_0x5f2e4[_0x4b4e0f(_0xdd6db7._0x59032f,_0xdd6db7._0x2c9285,0x262,0x2b5)]===0x0){await _0xd90139();continue;}const _0x23b0b5=_0x5f2e4['shift']();_0x23b0b5!==void 0x0&&(yield _0x23b0b5);}const _0x129b9c=await _0xac1822,_0x547611=_0x3a546d?_0x139f2f(0xdc,0x14d,0xed,_0xdd6db7._0x3da564)+(_0x129b9c[_0x139f2f(0x106,0x138,_0xdd6db7._0x29a4e2,_0xdd6db7._0x5e3cc4)]??0x0):_0x5fe90['join'](''),_0x585aaf={'command':_0x1626de[_0x139f2f(_0xdd6db7._0x3a0e01,_0xdd6db7._0x283c10,0x15f,_0xdd6db7._0x552012)],'cwd':_0x155efa,'exitCode':_0x129b9c['code']??0x0,'signal':_0x129b9c[_0x139f2f(0x160,_0xdd6db7._0xdb7757,_0xdd6db7._0x295b53,_0xdd6db7._0x208dbc)],'ignoreOutput':_0x3a546d,'shellPath':_0x417f89,'timeoutMs':_0x5e622a};if(_0x129b9c[_0x4b4e0f(0x1d9,_0xdd6db7._0x12024a,0x225,_0xdd6db7._0x4abc04)]!==0x0)throw new ToolExecutionError(_0x547611||_0x139f2f(_0xdd6db7._0x45adc7,0x225,0x1b8,_0xdd6db7._0x125e1d)+(_0x129b9c[_0x139f2f(0xb0,_0xdd6db7._0x14021d,_0xdd6db7._0x29a4e2,0x15b)]??0x0),_0x585aaf);return createToolOutput(_0x547611,_0x585aaf);}catch(_0x145030){while(_0x5f2e4[_0x4b4e0f(_0xdd6db7._0x3cfd82,_0xdd6db7._0x12c464,0x262,0x26b)]>0x0){const _0x1ad5ab=_0x5f2e4[_0x4b4e0f(_0xdd6db7._0xcd659c,0x353,_0xdd6db7._0x1e62f4,0x2d9)]();_0x1ad5ab!==void 0x0&&(yield _0x1ad5ab);}if(_0x145030 instanceof ToolExecutionError)throw _0x145030;if(_0x3fac91)throw _0x3fac91;if(isErrnoException(_0x145030)&&_0x145030[_0x139f2f(0x9e,_0xdd6db7._0x21a994,0xfd,_0xdd6db7._0x31e601)]===_0x4b4e0f(_0xdd6db7._0x1d9818,0x1d3,0x216,0x25d))throw new ToolExecutionError(_0x139f2f(0xee,_0xdd6db7._0x5b5a6e,0x103,0x104)+_0x417f89,{'command':_0x1626de[_0x4b4e0f(0x252,_0xdd6db7._0x576ef1,0x287,0x2c0)],'cwd':_0x155efa,'shellPath':_0x417f89});throw new ToolExecutionError(_0x145030 instanceof Error?_0x145030[_0x4b4e0f(_0xdd6db7._0x24323c,_0xdd6db7._0x122a4c,_0xdd6db7._0x221327,_0xdd6db7._0x191427)]:String(_0x145030),{'command':_0x1626de[_0x4b4e0f(_0xdd6db7._0x142e7c,_0xdd6db7._0x35b134,0x287,0x263)],'cwd':_0x155efa,'shellPath':_0x417f89});}finally{_0x3c61df&&clearTimeout(_0x3c61df);_0x590bea(),_0x4102ee[_0x139f2f(_0xdd6db7._0x2e1ade,_0xdd6db7._0x3543c4,0x141,_0xdd6db7._0x457c06)]?.['off'](_0x4b4e0f(0x231,_0xdd6db7._0x562c41,0x23c,0x266),_0x292dd7),_0x4102ee['stderr']?.['off'](_0x4b4e0f(0x20a,_0xdd6db7._0x4c1717,0x23c,0x280),_0x2bcb65);if(!_0x276df8&&_0x4102ee['pid']&&!_0x4102ee[_0x4b4e0f(0x248,0x281,0x24e,_0xdd6db7._0x33325e)])try{killProcessGroup(_0x4102ee,_0x34492e);}catch{}}}});}function _0x27a792(_0x26245a,_0x32adfa,_0x3ae8c9,_0x7d4956){const _0x357a40={_0x47335f:0xe9};return _0xdaaf(_0x7d4956-_0x357a40._0x47335f,_0x3ae8c9);}function createShellExecTool(_0x1c0c80={}){return createBashTool(_0x1c0c80);}import{createHash}from'crypto';import{readFile,rename,stat as _0x3a745a,writeFile}from'fs/promises';import*as _0x264aea from'path';import{stat}from'fs/promises';import*as _0x2b3c5c from'path';function resolveWorkspacePath(_0x420536,_0x26645b){const _0x5a5785={_0x10cdc7:0x283,_0x7ed7a7:0x28f,_0x3d391a:0x2a8,_0x2e3e4c:0x27e,_0x1eee7c:0xac,_0x106a85:0x28,_0x38930d:0x8d,_0x1d6158:0x5d,_0x962aef:0xa3,_0xfe6356:0xa6,_0x1fdf5f:0xae,_0x59fa5c:0x228},_0x308956={_0x428bb5:0x1b,_0x1c4d02:0x331},_0x2d8b90={_0x6ad815:0x1ec,_0x19c40d:0x628},_0x3fe959=_0x2b3c5c[_0x6d806b(_0x5a5785._0x10cdc7,_0x5a5785._0x7ed7a7,_0x5a5785._0x3d391a,0x24b)](_0x420536),_0x2acc59=_0x2b3c5c[_0x6d806b(_0x5a5785._0x2e3e4c,0x1e9,_0x5a5785._0x3d391a,0x24b)](_0x3fe959,_0x26645b);function _0x54ee2d(_0x4b90e1,_0x467734,_0x56f17f,_0x3fabcc){return _0x5c1169(_0x4b90e1-_0x2d8b90._0x6ad815,_0x56f17f,_0x3fabcc- -_0x2d8b90._0x19c40d,_0x3fabcc-0x109);}const _0x2b4303=_0x2b3c5c[_0x54ee2d(-_0x5a5785._0x1eee7c,-_0x5a5785._0x106a85,-_0x5a5785._0x38930d,-_0x5a5785._0x1d6158)](_0x3fe959,_0x2acc59);if(_0x2b4303===''||!_0x2b4303[_0x6d806b(0x25e,0x1f1,0x1d2,0x20c)]('..')&&!_0x2b3c5c[_0x54ee2d(-0x41,-_0x5a5785._0x962aef,-_0x5a5785._0xfe6356,-_0x5a5785._0x1fdf5f)](_0x2b4303))return _0x2acc59;function _0x6d806b(_0x450279,_0x59a4c1,_0x4d08e9,_0x46b5bb){return _0x5c1169(_0x450279-_0x308956._0x428bb5,_0x59a4c1,_0x46b5bb- -_0x308956._0x1c4d02,_0x46b5bb-0x1a5);}throw new ToolExecutionError(_0x6d806b(0x2b9,_0x5a5785._0x59fa5c,0x2b6,0x250)+_0x26645b,{'path':_0x26645b,'rootDir':_0x3fe959});}async function assertWorkspaceFile(_0xa1d3f7){const _0x502a1e={_0x5df1e:0x165,_0x1f16bb:0x1cb,_0x160337:0x21a,_0xbeaec1:0x1de},_0x4271a5={_0x2f732a:0x1c5,_0x568afa:0x15a},_0x57f153={_0x543db9:0x1e2,_0x569042:0x78,_0x301377:0x57};function _0x9068cb(_0x555ab9,_0x141caf,_0x5d9403,_0x200109){return _0x5c1169(_0x555ab9-_0x57f153._0x543db9,_0x555ab9,_0x5d9403- -_0x57f153._0x569042,_0x200109-_0x57f153._0x301377);}const _0x2f542f=await stat(_0xa1d3f7);function _0xe5dd69(_0x303b0b,_0x24b2c8,_0x3ed7ee,_0x3f7ee2){return _0x27a792(_0x303b0b-_0x4271a5._0x2f732a,_0x24b2c8-_0x4271a5._0x568afa,_0x303b0b,_0x24b2c8- -0x4a6);}if(!_0x2f542f[_0xe5dd69(-_0x502a1e._0x5df1e,-0x1ca,-_0x502a1e._0x1f16bb,-0x1cc)]())throw new ToolExecutionError(_0xe5dd69(-_0x502a1e._0x160337,-0x20b,-_0x502a1e._0xbeaec1,-0x226)+_0xa1d3f7,{'path':_0xa1d3f7});}function isProbablyBinary(_0x5c1884){return _0x5c1884['includes'](0x0);}function detectEol(_0x4d6b8b){const _0x3ba03c={_0x195370:0x364,_0xd11458:0x336,_0xa1d42f:0x352,_0x4a1433:0x335,_0x265a42:0x2f1},_0x1dc17a={_0x5f3664:0x1de};function _0x2d4604(_0x49292d,_0x1834ce,_0x331e71,_0x2c1c6b){return _0x27a792(_0x49292d-0x131,_0x1834ce-_0x1dc17a._0x5f3664,_0x1834ce,_0x49292d-0x263);}function _0x33429e(_0x29a03a,_0x57a587,_0x3c3caf,_0x3f5734){return _0x5c1169(_0x29a03a-0x98,_0x57a587,_0x3f5734- -0x219,_0x3f5734-0xce);}return/\r\n/[_0x33429e(_0x3ba03c._0x195370,0x36a,_0x3ba03c._0xd11458,0x333)](_0x4d6b8b['toString'](_0x33429e(0x3f6,_0x3ba03c._0xa1d42f,0x349,0x3a9)))?_0x33429e(_0x3ba03c._0x4a1433,0x357,_0x3ba03c._0x265a42,0x34e):'lf';}function normalizeToLf(_0x465768){return _0x465768['replace'](/\r\n/g,'\x0a');}function convertEol(_0x424b2e,_0x550a5a){const _0x5868d8={_0x1a8ab8:0x13c},_0x43eedf={_0x180e7c:0x111,_0x3a474d:0x211};function _0x39f9d6(_0x132170,_0x5a3f1d,_0x3047f4,_0x3f5000){return _0x27a792(_0x132170-0xa6,_0x5a3f1d-_0x43eedf._0x180e7c,_0x3047f4,_0x5a3f1d- -_0x43eedf._0x3a474d);}return _0x550a5a==='crlf'?_0x424b2e[_0x39f9d6(0x11d,0xfb,0x97,_0x5868d8._0x1a8ab8)](/\n/g,'\x0d\x0a'):_0x424b2e;}async function atomicWrite(_0x3d2501,_0x18658a){const _0x47c483={_0x18b971:0x32e,_0x243803:0x2f6,_0x32b148:0x3e8,_0x149e5f:0x38a,_0x44bb0d:0x1c8,_0x3607be:0x201,_0x3d1f70:0x1fb,_0x2ece24:0x1b4,_0x5dc2e4:0x258,_0x2ff023:0x1e3,_0x7f5a3f:0x19b,_0x1feb8c:0x180,_0x2b3ad2:0x33d,_0x2bc812:0x393,_0x4c5e25:0x366,_0x218add:0x1e1,_0xa8b322:0x1b7,_0x34a95a:0x1c5,_0x424cfa:0x233,_0x32c15a:0x160},_0x24d36e={_0x1984a0:0x4e};function _0x4a5668(_0x19c359,_0x56bdf4,_0x4e0947,_0x37d273){return _0x5c1169(_0x19c359-0x116,_0x37d273,_0x19c359- -0x1e2,_0x37d273-0x181);}const _0x1de9a3=_0x264aea[_0x4a5668(_0x47c483._0x18b971,0x386,0x2df,_0x47c483._0x243803)](_0x3d2501),_0xe4a0fc=_0x264aea[_0x4a5668(_0x47c483._0x32b148,0x423,_0x47c483._0x149e5f,0x416)](_0x1de9a3,_0x46ded3(0x22a,_0x47c483._0x44bb0d,_0x47c483._0x3607be,0x1d0)+_0x264aea[_0x46ded3(_0x47c483._0x3d1f70,0x1f1,_0x47c483._0x2ece24,_0x47c483._0x5dc2e4)](_0x3d2501)+'.'+Date[_0x46ded3(_0x47c483._0x2ff023,_0x47c483._0x7f5a3f,_0x47c483._0x1feb8c,0x161)]()+'.'+Math[_0x4a5668(_0x47c483._0x2b3ad2,_0x47c483._0x2bc812,0x321,_0x47c483._0x4c5e25)]()[_0x46ded3(0x1e9,_0x47c483._0x218add,_0x47c483._0xa8b322,0x198)](0x24)[_0x46ded3(0x185,_0x47c483._0x34a95a,_0x47c483._0x424cfa,_0x47c483._0x32c15a)](0x2));await writeFile(_0xe4a0fc,_0x18658a);function _0x46ded3(_0x5a397c,_0x3ff803,_0x5a02cf,_0x58ab8d){return _0x5c1169(_0x5a397c-_0x24d36e._0x1984a0,_0x58ab8d,_0x3ff803- -0x3c5,_0x58ab8d-0x1f4);}await rename(_0xe4a0fc,_0x3d2501);}function sha256(_0x4a7c04){const _0x24f86b={_0x175f16:0xcd,_0x15f615:0x60,_0x103204:0xf4,_0x47a291:0x27,_0x44ba52:0x53,_0x535a78:0x8a,_0x1c23e6:0x79},_0x13b9ac={_0x30f664:0x1a7},_0xb82b80={_0x34fdca:0x153};function _0x1c1ca1(_0x3c7634,_0x10a0c8,_0x47a549,_0x26cc88){return _0x27a792(_0x3c7634-0xf4,_0x10a0c8-_0xb82b80._0x34fdca,_0x10a0c8,_0x26cc88- -0x2d2);}function _0x401e24(_0x2421ef,_0x22a55d,_0x593172,_0x56812e){return _0x27a792(_0x2421ef-0x190,_0x22a55d-_0x13b9ac._0x30f664,_0x56812e,_0x2421ef- -0x37e);}return createHash('sha256')[_0x401e24(-_0x24f86b._0x175f16,-0x64,-_0x24f86b._0x15f615,-_0x24f86b._0x103204)](_0x4a7c04)['digest'](_0x1c1ca1(_0x24f86b._0x47a291,_0x24f86b._0x44ba52,_0x24f86b._0x535a78,_0x24f86b._0x1c23e6));}function countLines(_0x393949){const _0x16a653={_0x4f3fa3:0x307,_0x3742ae:0x454,_0x54bb81:0x3f5,_0x257bc5:0x462},_0x114463={_0x341e6c:0x6d,_0x5f2b8a:0x13},_0x2e838f={_0x2d40bf:0x37,_0x4d9566:0x102,_0x89029b:0x177};function _0x336086(_0x51d77a,_0x34b3a8,_0xf3a11f,_0x251fb5){return _0x27a792(_0x51d77a-_0x2e838f._0x2d40bf,_0x34b3a8-_0x2e838f._0x4d9566,_0x51d77a,_0x251fb5-_0x2e838f._0x89029b);}function _0x465799(_0x29e1ec,_0x264f6e,_0x1dd65b,_0x1c23a4){return _0x27a792(_0x29e1ec-_0x114463._0x341e6c,_0x264f6e-0x187,_0x264f6e,_0x1dd65b- -_0x114463._0x5f2b8a);}const _0x2d106b=_0x393949[_0x465799(0x291,_0x16a653._0x4f3fa3,0x2f9,0x29d)](/\n$/,'');return _0x2d106b[_0x336086(_0x16a653._0x3742ae,0x4bd,_0x16a653._0x54bb81,_0x16a653._0x257bc5)]===0x0?0x0:_0x2d106b['split']('\x0a')['length'];}function calculateLineNumbers(_0x43036d,_0x4dd6ab,_0x311d22,_0xf422aa){const _0x271f5d={_0x331ad2:0x3e9,_0x4ad363:0x390,_0x55af78:0x44b,_0x5c41dd:0x407,_0x21485a:0x427,_0x3fa1a7:0x44b,_0x33ea6c:0x36f,_0x31c749:0x374},_0x335b20={_0x413431:0x18c,_0xbaa5c0:0x173},_0x4dac2c={_0x21a129:0xee,_0x3005ca:0x1ad};function _0x528992(_0x4e0f08,_0x277c60,_0xf8d4dc,_0x7374c7){return _0x5c1169(_0x4e0f08-_0x4dac2c._0x21a129,_0xf8d4dc,_0x4e0f08- -0x1f5,_0x7374c7-_0x4dac2c._0x3005ca);}const _0x48e8bf=_0x43036d[_0xe5b287(_0x271f5d._0x331ad2,0x3fe,_0x271f5d._0x4ad363,_0x271f5d._0x55af78)](0x0,_0xf422aa)[_0xe5b287(_0x271f5d._0x5c41dd,_0x271f5d._0x21485a,_0x271f5d._0x3fa1a7,0x470)]('\x0a')[_0x528992(_0x271f5d._0x33ea6c,0x317,_0x271f5d._0x31c749,0x385)];function _0xe5b287(_0x146e8c,_0x5df28b,_0xfa003b,_0x52fbff){return _0x5c1169(_0x146e8c-0x28,_0x146e8c,_0x5df28b- -_0x335b20._0x413431,_0x52fbff-_0x335b20._0xbaa5c0);}const _0x5105d6=countLines(_0x4dd6ab),_0x2416f7=countLines(_0x311d22);return{'oldStartLine':_0x48e8bf,'oldEndLine':_0x48e8bf+_0x5105d6-0x1,'newStartLine':_0x48e8bf,'newEndLine':_0x48e8bf+_0x2416f7-0x1,'oldLineCount':_0x5105d6,'newLineCount':_0x2416f7};}function createFileEditTool(_0x426cb1={}){const _0x198dd5={_0x54c1c7:0x39,_0x41e99c:0x67,_0x2eaf10:0x7b,_0x504b22:0x82,_0x5a13ef:0x34,_0x20dbd4:0xaa,_0x19f536:0xb},_0x176de5={_0x5e0d02:0x45,_0x1fe539:0x5a,_0x3af165:0x9f,_0x3ed102:0x5b5,_0x306512:0x5e6,_0x2d761d:0x5a7,_0x489eee:0x59b,_0x39a9c6:0x57b,_0x2abe88:0x57b,_0x22a63b:0x57d,_0xd415bc:0x72,_0x1aa5f6:0x34,_0x5952eb:0x8b,_0x2a19d3:0x552,_0x2adff5:0x546,_0x5d42c4:0x556,_0x51864e:0x18,_0x5ca0fe:0x3e,_0x31a935:0x64,_0x5c65ac:0x574,_0xf5b696:0x5d1,_0xa83588:0x567,_0x48f59e:0x598,_0x28e922:0x5e7,_0x22d7e5:0x589,_0x252eb1:0x8d,_0x4ae912:0x1,_0x7626d:0x95,_0x281a60:0xcd,_0x53ef36:0x5eb,_0x5e0c78:0x60,_0x2ca196:0x2b,_0x5a20e5:0x78,_0x1df9a6:0x49,_0x3aecd5:0x74,_0x3a575f:0x52,_0x451237:0xb4,_0x28ab63:0xe0,_0x18b129:0x77,_0x12052a:0xdf,_0x295705:0x591,_0x3f9474:0x5ab,_0x46d93d:0x59c,_0x46f8be:0x58a,_0x7cb87b:0x5bc,_0x2f4dda:0x5aa,_0x2730ea:0x585,_0x56d22c:0x5c7,_0x475186:0x5ef,_0x12d1b6:0x57c},_0x12a20a={_0x22c62b:0xf9,_0x4e47b7:0x5d6},_0xbbb8c1={_0x414f2f:0x5ad,_0x5e0418:0x1c7},_0x53208b={_0x2736a3:0x117};function _0x3c5bf2(_0x88338b,_0x1cad53,_0x384cbc,_0x3c55ce){return _0x5c1169(_0x88338b-_0x53208b._0x2736a3,_0x384cbc,_0x88338b- -0x529,_0x3c55ce-0x9);}const _0x27556a=_0x264aea['resolve'](_0x426cb1['defaultCwd']??process['cwd']());function _0x363912(_0x64b3a1,_0x4daf90,_0x4ef969,_0x5a13ea){return _0x5c1169(_0x64b3a1-0xef,_0x4ef969,_0x5a13ea- -_0xbbb8c1._0x414f2f,_0x5a13ea-_0xbbb8c1._0x5e0418);}const _0x130c46=_0x426cb1['name']??_0x3c5bf2(_0x198dd5._0x54c1c7,_0x198dd5._0x41e99c,_0x198dd5._0x2eaf10,0x6b);return defineTool({'name':_0x130c46,'description':'Edit\x20a\x20UTF-8\x20text\x20file\x20by\x20replacing\x20the\x20first\x20exact\x20text\x20segment.','inputSchema':{'type':_0x363912(_0x198dd5._0x504b22,-0x29,-_0x198dd5._0x5a13ef,0x24),'properties':{'filePath':{'type':_0x3c5bf2(0x6,-0x60,-0x4,-0x24)},'oldText':{'type':'string'},'newText':{'type':'string'},'dryRun':{'type':_0x363912(-0xb2,-_0x198dd5._0x20dbd4,-0x63,-0x55)}},'required':[_0x3c5bf2(0x4c,0xb7,0x8e,0x80),_0x363912(-_0x198dd5._0x19f536,-0x99,-0xc,-0x5b),'newText']},async *'execute'(_0x1a0542){const _0x4fa251={_0x29cee8:0x3c},_0xf2cf63=resolveWorkspacePath(_0x27556a,_0x1a0542[_0x49a689(-_0x176de5._0x5e0d02,-_0x176de5._0x1fe539,-0x74,-_0x176de5._0x3af165)]);await assertWorkspaceFile(_0xf2cf63);const _0x26ba12=await _0x3a745a(_0xf2cf63),_0x4bd30c=await readFile(_0xf2cf63),_0x2abe24=detectEol(_0x4bd30c),_0xb503a0=normalizeToLf(_0x4bd30c[_0x3276d3(_0x176de5._0x3ed102,0x5a2,0x5cf,_0x176de5._0x306512)](_0x3276d3(_0x176de5._0x2d761d,0x5f8,0x5eb,_0x176de5._0x489eee))),_0x171cec=normalizeToLf(_0x1a0542[_0x3276d3(0x5cb,_0x176de5._0x39a9c6,_0x176de5._0x2abe88,_0x176de5._0x22a63b)]),_0x208951=normalizeToLf(_0x1a0542[_0x49a689(-_0x176de5._0xd415bc,-0x1b,-_0x176de5._0x1aa5f6,-_0x176de5._0x5952eb)]),_0x45b981=_0xb503a0[_0x3276d3(_0x176de5._0x2a19d3,0x539,_0x176de5._0x2adff5,_0x176de5._0x5d42c4)](_0x171cec);if(_0x45b981===-0x1){const _0x1af48d=_0x171cec[_0x49a689(-_0x176de5._0x51864e,-_0x176de5._0x5ca0fe,-0x5f,-0xc2)](0x0,0x64)[_0x49a689(-0x46,-0x45,-_0x176de5._0x31a935,-0x55)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x3276d3(0x596,_0x176de5._0x5c65ac,_0x176de5._0xf5b696,_0x176de5._0xa83588)+_0x1af48d+(_0x171cec['length']>0x64?_0x3276d3(0x5a6,_0x176de5._0x48f59e,0x5ba,0x612):'')+'\x22',{'filePath':_0x1a0542[_0x3276d3(_0x176de5._0x28e922,0x5f7,0x59e,0x549)]});}const _0x1dc252=_0xb503a0[_0x3276d3(0x56b,_0x176de5._0x22d7e5,0x5b3,0x615)](0x0,_0x45b981)+_0x208951+_0xb503a0[_0x49a689(-_0x176de5._0x252eb1,-_0x176de5._0x4ae912,-0x5f,-_0x176de5._0x7626d)](_0x45b981+_0x171cec['length']),_0x28832a=convertEol(_0x1dc252,_0x2abe24),_0x4ce533=Buffer[_0x49a689(-0xcd,-0xe3,-_0x176de5._0x281a60,-0xd2)](_0x28832a,_0x3276d3(0x5cb,0x59c,_0x176de5._0x53ef36,0x5a7)),_0x410b8f=sha256(_0x4bd30c),_0x54ebd2=sha256(_0x4ce533);function _0x49a689(_0x41f094,_0x533c1c,_0x4bca6f,_0x4a1d49){return _0x363912(_0x41f094-0x166,_0x533c1c-0x32,_0x533c1c,_0x4bca6f- -_0x4fa251._0x29cee8);}const _0x46fe72=_0x410b8f===_0x54ebd2,_0x2c9dac=_0x1a0542['dryRun']??![];function _0x3276d3(_0x496db7,_0xd3d7af,_0x513a37,_0x5baf35){return _0x363912(_0x496db7-_0x12a20a._0x22c62b,_0xd3d7af-0x73,_0x496db7,_0x513a37-_0x12a20a._0x4e47b7);}return!_0x2c9dac&&!_0x46fe72&&await atomicWrite(_0xf2cf63,_0x4ce533),yield createToolOutput(_0x46fe72?_0x3276d3(0x56c,0x5b3,0x5da,_0x176de5._0x22a63b):_0x2c9dac?_0x49a689(-_0x176de5._0x5e0c78,-0x20,-_0x176de5._0x2ca196,0x27):_0x49a689(-0x7d,-_0x176de5._0x5a20e5,-0x8e,-_0x176de5._0x1df9a6),{'filePath':_0x1a0542[_0x49a689(-0xc6,-0x24,-_0x176de5._0x3aecd5,-_0x176de5._0x3a575f)],'resolvedPath':_0xf2cf63,'created':_0x26ba12[_0x49a689(-_0x176de5._0x451237,-_0x176de5._0x28ab63,-_0x176de5._0x18b129,-_0x176de5._0x12052a)]['toISOString'](),'modified':_0x26ba12[_0x3276d3(0x604,_0x176de5._0x295705,0x5a7,0x5cd)]['toISOString'](),'size':_0x26ba12[_0x3276d3(_0x176de5._0x3f9474,_0x176de5._0x46d93d,_0x176de5._0x46f8be,0x54d)],'eol':_0x2abe24,'oldTextLength':_0x171cec[_0x3276d3(_0x176de5._0x7cb87b,0x587,0x58d,_0x176de5._0x2f4dda)],'newTextLength':_0x208951[_0x3276d3(0x55b,_0x176de5._0x2730ea,0x58d,_0x176de5._0x56d22c)],'bytesWritten':_0x46fe72||_0x2c9dac?0x0:_0x4ce533[_0x3276d3(_0x176de5._0x475186,_0x176de5._0x12d1b6,0x58d,0x55e)],'beforeSha':_0x410b8f,'afterSha':_0x54ebd2,'dryRun':_0x2c9dac,'noChange':_0x46fe72,'lineNumbers':calculateLineNumbers(_0xb503a0,_0x171cec,_0x208951,_0x45b981)}),void 0x0;}});}import{mkdir,rename as _0x1de27e,stat as _0x2a9f9e,writeFile as _0x2d3dfb}from'fs/promises';import*as _0x4d93dc from'path';async function atomicWrite2(_0x5d1494,_0x53496b){const _0x4649f6={_0x140934:0x116,_0x15a165:0xb7,_0x309978:0xa1,_0x23213c:0x107,_0x321893:0x160,_0x21fcb3:0x16e,_0x48daef:0x14c,_0x246736:0x14f,_0x591a19:0x1b8,_0x31db89:0x1d2,_0x1cec12:0x154,_0x13910c:0x1a2,_0x17c013:0x14c},_0x1e29f0={_0x5d0c90:0x36,_0x2e6365:0x1c5},_0x546434={_0x42a4d3:0x160,_0x4ca735:0x66b};function _0x28979b(_0x236f25,_0xd61d94,_0x35d9dc,_0x54de7f){return _0x5c1169(_0x236f25-_0x546434._0x42a4d3,_0x35d9dc,_0xd61d94- -_0x546434._0x4ca735,_0x54de7f-0xa1);}const _0x171bd8=_0x4d93dc[_0x28979b(-0xfd,-0x15b,-0x15d,-_0x4649f6._0x140934)](_0x5d1494);await mkdir(_0x171bd8,{'recursive':!![]});function _0x484a7c(_0x156505,_0xb1c95,_0x40a398,_0x7f9b14){return _0x27a792(_0x156505-0x18d,_0xb1c95-_0x1e29f0._0x5d0c90,_0x156505,_0x7f9b14- -_0x1e29f0._0x2e6365);}const _0x1d0d2a=_0x4d93dc[_0x28979b(-_0x4649f6._0x15a165,-_0x4649f6._0x309978,-_0x4649f6._0x23213c,-0xf3)](_0x171bd8,_0x484a7c(_0x4649f6._0x321893,_0x4649f6._0x21fcb3,_0x4649f6._0x48daef,_0x4649f6._0x246736)+_0x4d93dc[_0x484a7c(_0x4649f6._0x591a19,_0x4649f6._0x31db89,0x1d4,0x178)](_0x5d1494)+'.'+Date[_0x484a7c(_0x4649f6._0x1cec12,0x171,0x123,0x122)]()+'.'+Math[_0x28979b(-_0x4649f6._0x13910c,-_0x4649f6._0x17c013,-0x141,-0x134)]()['toString'](0x24)['slice'](0x2));await _0x2d3dfb(_0x1d0d2a,_0x53496b),await _0x1de27e(_0x1d0d2a,_0x5d1494);}function createFileNewTool(_0x3cecb6={}){const _0x1fd026={_0x138357:0x57e,_0x12b9c6:0x5e3,_0xf5387c:0x573,_0x45bfb7:0x537,_0x223dee:0x36a,_0x4f0599:0x3cd,_0x5d30d9:0x3b0,_0x22af71:0x3a7,_0x1f6abe:0x5e1,_0x4ada72:0x597,_0x1b649c:0x53b,_0x370c16:0x35e,_0x2b24c8:0x35f,_0xed0e2b:0x31b,_0x287a6f:0x361},_0x2052d0={_0x399866:0x3d1,_0x52c957:0x436,_0x2eec91:0x439,_0x49c96c:0x405,_0x43c309:0x3b7,_0xc60971:0x354,_0x498e02:0xa7,_0x44f4c6:0x115,_0x141a54:0x12c,_0x52321f:0x112,_0x34ec89:0x11d,_0x28bd6f:0xb0,_0xf75a44:0x19f,_0x5b78e5:0x106,_0x2309b3:0x3d1,_0x15e117:0x3b2,_0x5032cb:0x410,_0x2e6e6d:0x124,_0xa31a14:0x18d,_0x4dd40b:0x118,_0x23c0d3:0x18e},_0x20bdbe={_0xf4aac:0xf2},_0x3f2998={_0x3a57a6:0xa8,_0x23aeda:0x121,_0x463f8a:0xaf},_0x5b397c={_0x4ad124:0x46,_0x5b1e86:0x289},_0x568eb9={_0x231a5c:0x3b,_0x2014d7:0x214},_0x16de83=_0x4d93dc['resolve'](_0x3cecb6['defaultCwd']??process['cwd']());function _0x2408fc(_0x2b6498,_0x747e25,_0x209954,_0x3b5327){return _0x5c1169(_0x2b6498-_0x568eb9._0x231a5c,_0x209954,_0x3b5327- -_0x568eb9._0x2014d7,_0x3b5327-0x45);}const _0x173264=_0x3cecb6[_0x384d88(_0x1fd026._0x138357,_0x1fd026._0x12b9c6,0x54f,0x51d)]??_0x384d88(_0x1fd026._0xf5387c,_0x1fd026._0x45bfb7,0x59b,0x54c);function _0x384d88(_0x387605,_0x2b7970,_0x1875c7,_0xfd9dec){return _0x27a792(_0x387605-0x1b3,_0x2b7970-_0x5b397c._0x4ad124,_0x1875c7,_0x387605-_0x5b397c._0x5b1e86);}return defineTool({'name':_0x173264,'description':_0x2408fc(_0x1fd026._0x223dee,_0x1fd026._0x4f0599,_0x1fd026._0x5d30d9,_0x1fd026._0x22af71),'inputSchema':{'type':_0x384d88(_0x1fd026._0x1f6abe,_0x1fd026._0x4ada72,0x5c1,0x574),'properties':{'filePath':{'type':_0x384d88(0x53f,0x57c,_0x1fd026._0x1b649c,0x51a)},'content':{'type':_0x2408fc(0x37d,_0x1fd026._0x370c16,_0x1fd026._0x2b24c8,_0x1fd026._0xed0e2b)}},'required':[_0x2408fc(0x366,0x332,0x395,_0x1fd026._0x287a6f),_0x384d88(0x5f6,0x638,0x5ab,0x636)]},async *'execute'(_0x4de3cb){const _0x3d2870=resolveWorkspacePath(_0x16de83,_0x4de3cb['filePath']),_0x22841c=await _0x2a9f9e(_0x3d2870)[_0x4176bc(_0x2052d0._0x399866,0x447,_0x2052d0._0x52c957,0x447)](()=>!![])[_0x4176bc(_0x2052d0._0x2eec91,0x401,0x467,_0x2052d0._0x49c96c)](()=>![]),_0x7b6634=Buffer[_0x4176bc(0x3e3,0x3db,_0x2052d0._0x43c309,_0x2052d0._0xc60971)](_0x4de3cb[_0x30ce0a(-0xf1,-_0x2052d0._0x498e02,-0x150,-0x8d)],_0x30ce0a(-_0x2052d0._0x44f4c6,-_0x2052d0._0x141a54,-_0x2052d0._0x52321f,-0xa8));await atomicWrite2(_0x3d2870,_0x7b6634);function _0x4176bc(_0x4bad57,_0x279191,_0xb1f7a2,_0xe4544a){return _0x2408fc(_0x4bad57-_0x3f2998._0x3a57a6,_0x279191-_0x3f2998._0x23aeda,_0xe4544a,_0xb1f7a2-_0x3f2998._0x463f8a);}yield createToolOutput(_0x30ce0a(-_0x2052d0._0x34ec89,-_0x2052d0._0x28bd6f,-0x116,-0x187)+_0x4de3cb[_0x30ce0a(-0x162,-0x13c,-_0x2052d0._0xf75a44,-_0x2052d0._0x5b78e5)]+'.',{'filePath':_0x4de3cb[_0x4176bc(_0x2052d0._0x2309b3,_0x2052d0._0x15e117,_0x2052d0._0x5032cb,0x467)],'resolvedPath':_0x3d2870,'bytes':_0x7b6634['length'],'lines':_0x4de3cb['content'][_0x30ce0a(-_0x2052d0._0x2e6e6d,-0xd9,-_0x2052d0._0xa31a14,-0x174)](/\r?\n/)[_0x30ce0a(-0x173,-_0x2052d0._0x4dd40b,-_0x2052d0._0x23c0d3,-0x157)],'created':new Date()[_0x30ce0a(-0x125,-0x115,-0x15e,-0x15d)](),'overwritten':_0x22841c});function _0x30ce0a(_0x4045e0,_0x138882,_0x20479d,_0x2d077b){return _0x384d88(_0x4045e0- -0x6e7,_0x138882-_0x20bdbe._0xf4aac,_0x2d077b,_0x2d077b-0xd2);}return void 0x0;}});}import{readFile as _0xd465f0,stat as _0x2cbc2b}from'fs/promises';import*as _0x292625 from'path';function stripUtfBom(_0x3ea0a6){const _0x18aff3={_0x421d1b:0x3dc,_0x32592c:0x3e3},_0x9505a2={_0x559264:0x13c,_0x196846:0x1b9};function _0x1e5bc3(_0x4c669d,_0x58d0fd,_0x81b868,_0x39476f){return _0x5c1169(_0x4c669d-_0x9505a2._0x559264,_0x81b868,_0x58d0fd- -_0x9505a2._0x196846,_0x39476f-0x48);}return _0x3ea0a6[_0x1e5bc3(0x3ba,_0x18aff3._0x421d1b,0x3cd,_0x18aff3._0x32592c)](0x0)===0xfeff?_0x3ea0a6['slice'](0x1):_0x3ea0a6;}function clampLine(_0x8587fc,_0x3fcee4){const _0x592ad3={_0x2143c9:0x89,_0x13861a:0x5b,_0x522351:0xcf,_0x4abfba:0xaa,_0x1ad92d:0x20b,_0x359c79:0x153,_0x3e335d:0x187,_0x10c21b:0x1b3},_0x2738c5={_0x293fe3:0x17f},_0x1750a9={_0x4c7a01:0xc1,_0xd2c99c:0x155};function _0xd35bd2(_0x506259,_0x2518db,_0x235492,_0x1317fa){return _0x5c1169(_0x506259-_0x1750a9._0x4c7a01,_0x2518db,_0x235492- -0x404,_0x1317fa-_0x1750a9._0xd2c99c);}function _0x5d0fb6(_0x2233e3,_0x8780c4,_0x56a201,_0x37b625){return _0x27a792(_0x2233e3-0x1ce,_0x8780c4-_0x2738c5._0x293fe3,_0x37b625,_0x2233e3- -0x242);}if(!Number['isFinite'](_0x8587fc))return 0x1;return Math[_0x5d0fb6(_0x592ad3._0x2143c9,_0x592ad3._0x13861a,_0x592ad3._0x522351,_0x592ad3._0x4abfba)](0x1,Math[_0xd35bd2(_0x592ad3._0x1ad92d,0x20d,0x1d6,0x227)](Math[_0xd35bd2(_0x592ad3._0x359c79,_0x592ad3._0x3e335d,_0x592ad3._0x10c21b,0x1b9)](_0x8587fc),_0x3fcee4));}function createFileReadTool(_0x2bc8ea={}){const _0x4c420e={_0x4a93ed:0x529,_0x5d838f:0x545,_0x29fe63:0x54d,_0x2addc9:0x597,_0x1ef13f:0x591,_0x26539e:0x5ae,_0x2308d3:0x5e7,_0x499a85:0x606,_0x45f46e:0x614,_0x2c728e:0x356,_0x97e612:0x38e,_0x25a93b:0x32f,_0x341a90:0x398,_0x577872:0x350,_0x4dad3f:0x387,_0x38ce5b:0x3be},_0x17c7c8={_0x242f42:0x153,_0x41b252:0x370,_0x151d2d:0x3fa,_0x4c8760:0x4ae,_0x5f3a72:0x3fd,_0xc6876d:0x478,_0x30cb2e:0x19e,_0x4496f8:0x16a,_0x501278:0x1a0,_0xfcb87a:0x194,_0x82b9ef:0x129,_0x4e1314:0x464,_0x1cbcbe:0x3ea,_0x539791:0x434,_0xe28572:0x4a1,_0x2f0e53:0x15f,_0x3fd91a:0x18d,_0x4ebd2a:0x1a1,_0x26fa6e:0x1f0,_0xc900:0x155,_0x3139c5:0x160,_0x40fadb:0x140,_0x37413f:0x3f6,_0x4edf5d:0x154,_0x471b75:0x1b2,_0x2098e1:0x181,_0x584636:0x18d,_0x9b3c1d:0x203,_0x2d8c55:0x440,_0x4c87b1:0x227,_0x411a73:0x1f3,_0x552cdd:0x190},_0x32ea48={_0x366a0e:0x1e5},_0x55abe9={_0xce59ad:0x17},_0x28b4b6=_0x292625['resolve'](_0x2bc8ea[_0x483acd(_0x4c420e._0x4a93ed,_0x4c420e._0x5d838f,_0x4c420e._0x29fe63,0x55a)]??process[_0x483acd(0x5c2,0x5f0,_0x4c420e._0x2addc9,_0x4c420e._0x1ef13f)]()),_0x58627a=_0x2bc8ea['name']??'FileRead';function _0x483acd(_0x20554b,_0x897e9c,_0x5d80c6,_0x53da06){return _0x5c1169(_0x20554b-0x1cc,_0x53da06,_0x20554b-_0x55abe9._0xce59ad,_0x53da06-0xd2);}function _0x2b2e51(_0x36ba3d,_0x5863a4,_0x27a456,_0x37d6ec){return _0x5c1169(_0x36ba3d-0x83,_0x36ba3d,_0x5863a4- -0x1d9,_0x37d6ec-0x134);}return defineTool({'name':_0x58627a,'description':_0x483acd(_0x4c420e._0x26539e,0x5fb,0x5df,_0x4c420e._0x2308d3),'inputSchema':{'type':_0x483acd(0x5e8,_0x4c420e._0x499a85,_0x4c420e._0x45f46e,0x62c),'properties':{'path':{'type':_0x2b2e51(0x361,_0x4c420e._0x2c728e,_0x4c420e._0x97e612,_0x4c420e._0x25a93b)},'lineStart':{'type':_0x2b2e51(_0x4c420e._0x341a90,_0x4c420e._0x577872,0x3a1,0x314)},'lineEnd':{'type':_0x2b2e51(0x2ea,0x350,_0x4c420e._0x4dad3f,_0x4c420e._0x38ce5b)}},'required':['path']},async *'execute'(_0x19b940){const _0x3b6eb4={_0x350e0f:0x8f},_0x5ab7ce=resolveWorkspacePath(_0x28b4b6,_0x19b940[_0x63396a(0x102,0x13c,_0x17c7c8._0x242f42,0x17d)]);await assertWorkspaceFile(_0x5ab7ce);const _0xc28b76=await _0x2cbc2b(_0x5ab7ce);function _0x63396a(_0x5ce8ab,_0x3786b1,_0x23f4f9,_0x23400d){return _0x483acd(_0x3786b1- -0x3ee,_0x3786b1-_0x32ea48._0x366a0e,_0x23f4f9-0xd9,_0x23400d);}const _0x3659b4=await _0xd465f0(_0x5ab7ce);if(isProbablyBinary(_0x3659b4))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x19b940[_0x480bba(0x3c9,_0x17c7c8._0x41b252,0x39d,_0x17c7c8._0x151d2d)],{'path':_0x19b940['path']});let _0x2cd619=_0x3659b4[_0x480bba(0x45c,_0x17c7c8._0x4c8760,0x45b,_0x17c7c8._0x5f3a72)](_0x480bba(_0x17c7c8._0xc6876d,0x48b,0x482,0x42e));const _0x357c86=_0x2cd619[_0x63396a(_0x17c7c8._0x30cb2e,0x1be,_0x17c7c8._0x4496f8,0x15b)](0x0)===0xfeff;_0x2cd619=stripUtfBom(_0x2cd619);function _0x480bba(_0x4c63ed,_0x1fc522,_0x220424,_0x38f657){return _0x2b2e51(_0x1fc522,_0x4c63ed-_0x3b6eb4._0x350e0f,_0x220424-0x81,_0x38f657-0x6c);}const _0x2037ca=_0x2cd619[_0x63396a(0x17a,0x1dc,0x1a7,_0x17c7c8._0x501278)](/\r?\n/),_0x487c7d={'path':_0x19b940[_0x63396a(0x18d,0x13c,_0x17c7c8._0xfcb87a,_0x17c7c8._0x82b9ef)],'resolvedPath':_0x5ab7ce,'created':_0xc28b76[_0x480bba(0x428,_0x17c7c8._0x4e1314,0x3f6,_0x17c7c8._0x1cbcbe)]['toISOString'](),'modified':_0xc28b76[_0x480bba(_0x17c7c8._0x539791,0x43f,_0x17c7c8._0xe28572,0x43b)]['toISOString'](),'size':_0xc28b76['size'],'encoding':'utf8','bomStripped':_0x357c86,'truncated':![],'totalLines':_0x2037ca[_0x63396a(_0x17c7c8._0x2f0e53,_0x17c7c8._0x3fd91a,_0x17c7c8._0x4ebd2a,_0x17c7c8._0x26fa6e)]};if(_0x19b940[_0x63396a(0x15d,0x18f,0x1af,_0x17c7c8._0xc900)]!==void 0x0||_0x19b940['lineEnd']!==void 0x0){const _0x5a2456=clampLine(_0x19b940[_0x63396a(_0x17c7c8._0x3139c5,0x18f,0x1d9,_0x17c7c8._0x40fadb)]??0x1,_0x2037ca[_0x480bba(0x41a,_0x17c7c8._0x37413f,0x438,0x3be)]),_0x431402=clampLine(_0x19b940[_0x63396a(0x146,0x164,_0x17c7c8._0x4edf5d,_0x17c7c8._0x471b75)]??_0x2037ca[_0x63396a(_0x17c7c8._0x2098e1,_0x17c7c8._0x3fd91a,0x1c3,_0x17c7c8._0x584636)],_0x2037ca['length']),_0x5e6a70=Math[_0x63396a(0x1e8,_0x17c7c8._0x9b3c1d,0x1cf,0x1c6)](_0x5a2456,_0x431402),_0x8c9078=Math['max'](_0x5a2456,_0x431402),_0x55e7d4=_0x2037ca[_0x480bba(_0x17c7c8._0x2d8c55,0x427,0x3eb,0x479)](_0x5e6a70-0x1,_0x8c9078)[_0x480bba(0x435,0x408,0x461,0x442)]((_0x4cd5cf,_0x527da)=>_0x5e6a70+_0x527da+'|'+_0x4cd5cf)[_0x63396a(_0x17c7c8._0x4c87b1,_0x17c7c8._0x411a73,0x1fc,_0x17c7c8._0x552cdd)]('\x0a');return yield createToolOutput(_0x55e7d4,{..._0x487c7d,'lineRange':{'lineStart':_0x5e6a70,'lineEnd':_0x8c9078,'linesTotal':_0x2037ca['length']}}),void 0x0;}return yield createToolOutput(_0x2cd619,_0x487c7d),void 0x0;}});}function _0x5c1169(_0x4f6408,_0x1a6343,_0x186186,_0x141e78){const _0x3af1fd={_0x77a42a:0x362};return _0xdaaf(_0x186186-_0x3af1fd._0x77a42a,_0x1a6343);}import{stat as _0x172043}from'fs/promises';import*as _0x336f02 from'path';import{execSync,spawn as _0x3d42e5}from'child_process';import{existsSync}from'fs';import{stat as _0x38c437}from'fs/promises';import*as _0x1264af from'os';import*as _0x2eea10 from'path';var cachedRgPath=null;function findSystemRipgrep(){const _0x5f2c6d={_0x2cd808:0x605,_0xd468c2:0x5c7,_0x4b13bc:0x5c4,_0x4bfc49:0x61c,_0x29196d:0x632,_0x250f57:0x639,_0x101f38:0x5e1,_0x213eee:0x5b8,_0x4d8ae5:0x10b,_0xe7e5ac:0xaf,_0x57344f:0x6f,_0x109f37:0xcb,_0x4c309f:0x593,_0x288e2e:0x535,_0x24614e:0x6a,_0x54fbae:0xf9,_0x4027ba:0xdf,_0x1013f9:0xe9,_0x213f22:0x643,_0x4ae319:0x651,_0x1f6ccd:0x5e1,_0x933ce2:0x601,_0x373033:0x582,_0x4b7f52:0xbb,_0x165685:0x68,_0x445a70:0x119,_0x14b2af:0xbb,_0x73d36b:0x5d2,_0x211ea0:0xe2,_0x46b6a3:0x8e,_0x32faa8:0x614,_0x49aff7:0x5e4,_0x19bb72:0x6f,_0x3ed053:0x9f,_0x20c14c:0x81,_0x5b28b7:0x78,_0x2f3502:0x19,_0x2e9486:0x7a,_0x40ff02:0x63d,_0x419f75:0x99,_0x56665c:0xcf,_0xd58cfa:0x90,_0x1ba2af:0x62c},_0x17b6a7={_0xf420c6:0x32},_0x5f0d1d={_0x25b7f1:0x1de},_0x2ac3dc=_0x1264af[_0x302bef(_0x5f2c6d._0x2cd808,0x62a,_0x5f2c6d._0xd468c2,_0x5f2c6d._0x4b13bc)]()===_0x302bef(0x5f4,_0x5f2c6d._0x4bfc49,_0x5f2c6d._0x29196d,_0x5f2c6d._0x250f57),_0x39d288=_0x2ac3dc?[_0x2eea10['join'](process[_0x302bef(_0x5f2c6d._0x101f38,0x640,0x61d,_0x5f2c6d._0x213eee)]['LOCALAPPDATA']||'',_0x2c298e(-0xc0,-0x11d,-_0x5f2c6d._0x4d8ae5,-_0x5f2c6d._0xe7e5ac),_0x2c298e(-0xcf,-_0x5f2c6d._0x57344f,-0xfd,-_0x5f2c6d._0x109f37),_0x302bef(_0x5f2c6d._0x4c309f,0x5c5,0x573,_0x5f2c6d._0x288e2e)),_0x2eea10[_0x2c298e(-0x6e,-0x59,-_0x5f2c6d._0x24614e,-0x30)](process['env'][_0x2c298e(-_0x5f2c6d._0x54fbae,-0x13e,-0x11b,-0xac)]||'',_0x2c298e(-_0x5f2c6d._0x4027ba,-0xdb,-0xec,-_0x5f2c6d._0x1013f9),_0x302bef(0x58a,0x56d,0x52d,0x5ea)),_0x2eea10[_0x302bef(_0x5f2c6d._0x213f22,0x632,0x688,_0x5f2c6d._0x4ae319)](process[_0x302bef(_0x5f2c6d._0x1f6ccd,_0x5f2c6d._0x933ce2,_0x5f2c6d._0x373033,0x574)][_0x2c298e(-_0x5f2c6d._0x4b7f52,-_0x5f2c6d._0x165685,-_0x5f2c6d._0x445a70,-_0x5f2c6d._0x14b2af)]||'',_0x302bef(_0x5f2c6d._0x73d36b,0x5e2,0x613,0x633),_0x302bef(0x58a,0x580,0x5d9,0x5cc))]:[_0x302bef(0x607,0x5f5,0x666,0x5a8),'/usr/local/bin/rg',_0x2c298e(-_0x5f2c6d._0x211ea0,-0x11a,-0x9a,-_0x5f2c6d._0x46b6a3),_0x302bef(0x5de,_0x5f2c6d._0x32faa8,0x59e,_0x5f2c6d._0x49aff7)];for(const _0xa6a83f of _0x39d288){if(existsSync(_0xa6a83f))return _0xa6a83f;}try{const _0x272a89=_0x2ac3dc?_0x2c298e(-_0x5f2c6d._0x19bb72,-_0x5f2c6d._0x3ed053,-_0x5f2c6d._0x20c14c,-0xbd):'which\x20rg',_0x2bd0ac=execSync(_0x272a89,{'encoding':'utf8','stdio':[_0x2c298e(-_0x5f2c6d._0x5b28b7,-_0x5f2c6d._0x2f3502,-0x9c,-_0x5f2c6d._0x2e9486),_0x302bef(_0x5f2c6d._0x250f57,0x68b,_0x5f2c6d._0x40ff02,0x67b),'ignore']})[_0x2c298e(-_0x5f2c6d._0x419f75,-_0x5f2c6d._0x56665c,-_0x5f2c6d._0xd58cfa,-0x42)]()[_0x302bef(_0x5f2c6d._0x1ba2af,0x687,0x5da,0x67e)](/\r?\n/)[0x0];if(_0x2bd0ac&&existsSync(_0x2bd0ac))return _0x2bd0ac;}catch{return null;}function _0x2c298e(_0x4e6ad8,_0x3dcb5b,_0x26cdab,_0x1c76f7){return _0x27a792(_0x4e6ad8-_0x5f0d1d._0x25b7f1,_0x3dcb5b-0x41,_0x1c76f7,_0x4e6ad8- -0x3bf);}function _0x302bef(_0x1021c8,_0x2b131b,_0x425590,_0x5e5f53){return _0x27a792(_0x1021c8-0xf2,_0x2b131b-_0x17b6a7._0xf420c6,_0x2b131b,_0x1021c8-0x2f2);}return null;}async function filepath(){if(cachedRgPath)return cachedRgPath;const _0x4fb33a=findSystemRipgrep();if(!_0x4fb33a)throw new Error('ripgrep\x20executable\x20not\x20found.\x20Install\x20rg\x20to\x20use\x20Glob\x20and\x20Grep\x20tools.');return cachedRgPath=_0x4fb33a,_0x4fb33a;}async function*files(_0x2c8871){const _0x476ffc={_0xad8062:0x60f,_0xbc9630:0x2c8,_0x5099cb:0x265,_0x38bf54:0x28f,_0x1c4b58:0x217,_0x4ae431:0x21f,_0x326997:0x29e,_0x74b330:0x281,_0x438b44:0x25f,_0x3ed068:0x57c,_0x268ca7:0x530,_0x343e4f:0x5dd,_0xa644a7:0x5d0,_0x5a8aeb:0x58c,_0x472a7b:0x1e0,_0x652185:0x585,_0x1dd82b:0x58e,_0x22bbfd:0x636,_0x28bc8f:0x60f,_0x569f00:0x5b4,_0x2123ae:0x5c5,_0x313234:0x607,_0x3f2609:0x5aa,_0x2e30ac:0x635,_0x25adfc:0x23d,_0xaaffe3:0x296,_0x2e28bb:0x247,_0x329973:0x241,_0xf5b88a:0x28a,_0x420070:0x27c,_0xb5e750:0x289,_0x594cc2:0x248,_0x4e9830:0x5c8,_0x297a55:0x5fb,_0x2ae7d9:0x610,_0x58386d:0x5c8,_0x1b7daa:0x65f},_0x56d533={_0x2c2ca9:0x18b,_0x1df7ca:0xb1},_0x143999={_0x523d4b:0x1bc};function _0x3dcb90(_0x135289,_0x2d76be,_0x8eb835,_0x220fbc){return _0x5c1169(_0x135289-0xca,_0x2d76be,_0x135289-0x64,_0x220fbc-_0x143999._0x523d4b);}function _0x32f978(_0x4200ac,_0x255e03,_0x4e6625,_0x4cfa84){return _0x27a792(_0x4200ac-0x130,_0x255e03-_0x56d533._0x2c2ca9,_0x4cfa84,_0x4e6625- -_0x56d533._0x1df7ca);}const _0x14fae4=await filepath(),_0x20563c=await _0x38c437(_0x2c8871[_0x3dcb90(_0x476ffc._0xad8062,0x61d,0x639,0x5b7)])['catch'](()=>null);if(!_0x20563c?.[_0x32f978(0x292,_0x476ffc._0xbc9630,_0x476ffc._0x5099cb,_0x476ffc._0x38bf54)]())throw Object[_0x32f978(_0x476ffc._0x1c4b58,0x1aa,0x1fa,0x211)](new Error(_0x32f978(0x206,0x25b,_0x476ffc._0x4ae431,0x21e)+_0x2c8871[_0x32f978(0x264,_0x476ffc._0x326997,_0x476ffc._0x74b330,_0x476ffc._0x438b44)]+'\x27'),{'code':_0x3dcb90(_0x476ffc._0x3ed068,0x539,0x5c2,_0x476ffc._0x268ca7)});const _0x47b876=[_0x3dcb90(_0x476ffc._0x343e4f,_0x476ffc._0xa644a7,_0x476ffc._0x5a8aeb,0x5c8),'--follow','--hidden',_0x32f978(_0x476ffc._0x472a7b,0x22c,0x20b,0x250)];for(const _0x2c2827 of _0x2c8871[_0x3dcb90(_0x476ffc._0x652185,0x572,0x585,0x566)]??[]){_0x47b876[_0x3dcb90(0x5d0,0x5dd,_0x476ffc._0x1dd82b,_0x476ffc._0x22bbfd)]('--glob='+_0x2c2827);}const _0x55324c=_0x3d42e5(_0x14fae4,_0x47b876,{'cwd':_0x2c8871[_0x3dcb90(_0x476ffc._0x28bc8f,0x627,_0x476ffc._0x569f00,_0x476ffc._0x2123ae)],'stdio':[_0x3dcb90(_0x476ffc._0x313234,0x5c0,_0x476ffc._0x3f2609,_0x476ffc._0x2e30ac),'pipe',_0x32f978(_0x476ffc._0x25adfc,0x25c,_0x476ffc._0xaaffe3,_0x476ffc._0x2e28bb)]});let _0x4779b5='';for await(const _0x19b1d2 of _0x55324c[_0x32f978(0x1d5,0x254,_0x476ffc._0x329973,0x293)]??[]){_0x4779b5+=_0x19b1d2[_0x32f978(0x247,_0x476ffc._0xf5b88a,_0x476ffc._0x420070,0x23a)]();const _0x1cb701=_0x4779b5[_0x32f978(0x266,0x26e,_0x476ffc._0xb5e750,_0x476ffc._0x594cc2)](/\r?\n/);_0x4779b5=_0x1cb701['pop']()??'';for(const _0x47aee of _0x1cb701){if(_0x47aee[_0x3dcb90(_0x476ffc._0x4e9830,0x58b,_0x476ffc._0x297a55,_0x476ffc._0x2ae7d9)]>0x0)yield _0x47aee;}}_0x4779b5['trim']()[_0x3dcb90(_0x476ffc._0x58386d,0x5fb,0x61f,0x5e7)]>0x0&&(yield _0x4779b5[_0x3dcb90(0x603,_0x476ffc._0x1b7daa,0x5ed,0x5fc)]());}function parseMatchLine(_0x52278c,_0xa267b){const _0x8ba80e={_0x3f3f78:0x132,_0x2fa3a7:0x149,_0x5c493d:0x1af,_0x506c2a:0x1c9,_0x415071:0x1ad,_0x43a2ba:0xfb,_0x5370e4:0x30a,_0x2545e6:0x30e,_0x4e310e:0x174,_0x1c88aa:0x202,_0x437a39:0x2e4,_0x2ae1b4:0x34f,_0x93a561:0x364,_0x68c8c6:0x358,_0x2bc4bd:0x36c,_0xd3d9f4:0x176,_0x559cdf:0x168,_0x3bf1bf:0x2be},_0x38c416={_0x5acb4a:0x97,_0x590be1:0x280,_0x1b57d5:0x1e3},_0x2dccb0={_0x5390e9:0x1a2};if(!_0x52278c||_0x52278c==='--')return null;function _0x1f2867(_0xcc45ec,_0x2c5e2d,_0x240566,_0xb6322a){return _0x27a792(_0xcc45ec-0x11e,_0x2c5e2d-0x1ed,_0xb6322a,_0x2c5e2d- -_0x2dccb0._0x5390e9);}const _0x1de7ca=_0x52278c['split']('|');if(_0xa267b&&_0x1de7ca[_0x1f2867(_0x8ba80e._0x3f3f78,_0x8ba80e._0x2fa3a7,0x15d,0x136)]>=0x4&&Number['isFinite'](Number[_0x1f2867(_0x8ba80e._0x5c493d,_0x8ba80e._0x506c2a,_0x8ba80e._0x415071,0x193)](_0x1de7ca[0x2]??'',0xa))){const _0x2fba08=Number[_0x1f2867(0x231,_0x8ba80e._0x506c2a,0x187,0x1ad)](_0x1de7ca[0x1]??'',0xa);if(!Number[_0x1f2867(0x1c3,0x168,0x109,_0x8ba80e._0x43a2ba)](_0x2fba08)||!_0x1de7ca[0x0])return null;return{'filePath':_0x1de7ca[0x0],'lineNum':_0x2fba08,'lineText':_0x1de7ca[_0x1bb43c(_0x8ba80e._0x5370e4,0x2c1,0x300,_0x8ba80e._0x2545e6)](0x3)[_0x1f2867(_0x8ba80e._0x4e310e,_0x8ba80e._0x5c493d,_0x8ba80e._0x1c88aa,0x1b8)]('|')};}function _0x1bb43c(_0x19af6a,_0x575d6c,_0x63189c,_0x6ef7f9){return _0x5c1169(_0x19af6a-_0x38c416._0x5acb4a,_0x63189c,_0x19af6a- -_0x38c416._0x590be1,_0x6ef7f9-_0x38c416._0x1b57d5);}if(_0x1de7ca[_0x1bb43c(_0x8ba80e._0x437a39,0x287,0x32e,_0x8ba80e._0x2ae1b4)]>=0x3){const _0x3b9104=Number[_0x1bb43c(_0x8ba80e._0x93a561,_0x8ba80e._0x68c8c6,0x3b1,_0x8ba80e._0x2bc4bd)](_0x1de7ca[0x1]??'',0xa);if(!Number[_0x1f2867(_0x8ba80e._0xd3d9f4,_0x8ba80e._0x559cdf,0x179,0x169)](_0x3b9104)||!_0x1de7ca[0x0])return null;return{'filePath':_0x1de7ca[0x0],'lineNum':_0x3b9104,'lineText':_0x1de7ca[_0x1bb43c(0x30a,_0x8ba80e._0x3bf1bf,0x2a5,0x312)](0x2)['join']('|'),..._0xa267b?{'isContext':!![]}:{}};}return null;}async function search(_0x39ce02){const _0x5dcaba={_0x9902ca:0x4dc,_0x212e79:0x4f9,_0x1abbcf:0x482,_0x2907bb:0x487,_0x5f0ff4:0x4e2,_0xe6e00e:0x4b0,_0x231ac9:0x51c,_0x1cc578:0x43a,_0x4f67c0:0x562,_0x58d46a:0x517,_0x57576c:0x3f4,_0x2e333b:0x478,_0xa64474:0x491,_0x4393ca:0x42e,_0x180783:0x5a1,_0x1b7d4b:0x4e2,_0xbcb19f:0x568,_0x428a09:0x50f,_0x16ead4:0x55d,_0x18488b:0x589,_0x716970:0x509,_0x5f5c60:0x5d6,_0x27c454:0x569,_0x1b8857:0x59a,_0x2df119:0x590,_0x18c9d2:0x570,_0x11026b:0x44c,_0x4d5ee5:0x432,_0x221921:0x465,_0x5b924c:0x543,_0x16323b:0x4e4,_0x4ebe09:0x4d2,_0x5d2285:0x4d1,_0x61f79b:0x47a,_0x1427ac:0x4b4,_0xbfae7f:0x482,_0x264764:0x42d,_0x3aeb0d:0x45f,_0x51c501:0x437,_0x55f4cb:0x4c6,_0x52cad9:0x514,_0x3d5844:0x482,_0x200966:0x521,_0x3d08aa:0x4e7,_0x2893f9:0x4e7,_0x4d9974:0x4e6,_0x12ae87:0x4f6,_0x157b3d:0x532,_0x1ac452:0x542,_0x4caf5a:0x513,_0x9537c8:0x53c,_0x484bca:0x52f},_0x16bc20={_0x29cfc5:0x594,_0x2d4812:0x346,_0x127605:0x299,_0x57e0e2:0x503,_0x54494d:0x546,_0x5353ea:0x503,_0x5be50e:0x47e,_0x3ef498:0x2ad,_0xe158c0:0x258,_0x3fc148:0x273,_0x281eb0:0x279,_0x1be2d5:0x2d0,_0x582b64:0x530,_0x33c0c2:0x588},_0x163112={_0x3616ae:0x40,_0x25e88d:0x6e,_0x40e7da:0x3bf,_0x5f2a0a:0x22,_0x83de02:0x11},_0x5d62ac={_0x9673e7:0x45e,_0x1317d1:0x46d},_0x2d02ff={_0x2b3539:0x14b},_0x4eb282={_0x56a189:0x2a},_0x409cce={_0x445f04:0x84},_0x34c1e5={_0x2d06b2:0x1cf,_0x47a286:0x18f},_0x540194=await filepath();function _0x431d04(_0x271a53,_0xe92fd3,_0x346ae4,_0x24d84f){return _0x27a792(_0x271a53-0x1c4,_0xe92fd3-_0x34c1e5._0x2d06b2,_0xe92fd3,_0x24d84f-_0x34c1e5._0x47a286);}function _0x2eda91(_0x2220f9,_0x2448c6,_0x115a52,_0x3ed852){return _0x27a792(_0x2220f9-0x1aa,_0x2448c6-_0x409cce._0x445f04,_0x115a52,_0x2448c6-0x23f);}if(_0x39ce02[_0x2eda91(0x532,_0x5dcaba._0x9902ca,_0x5dcaba._0x212e79,_0x5dcaba._0x1abbcf)]){const _0x1a16de=await _0x38c437(_0x39ce02['file'])[_0x431d04(0x546,0x492,_0x5dcaba._0x2907bb,_0x5dcaba._0x5f0ff4)](()=>null);if(!_0x1a16de?.[_0x2eda91(0x503,0x51b,_0x5dcaba._0xe6e00e,_0x5dcaba._0x231ac9)]())throw Object[_0x431d04(0x3d3,0x474,0x446,_0x5dcaba._0x1cc578)](new Error(_0x2eda91(_0x5dcaba._0x4f67c0,0x506,_0x5dcaba._0x58d46a,0x519)+_0x39ce02[_0x431d04(_0x5dcaba._0x57576c,_0x5dcaba._0x2e333b,_0x5dcaba._0xa64474,0x42c)]+'\x27'),{'code':_0x431d04(_0x5dcaba._0x2907bb,0x40f,0x3e1,_0x5dcaba._0x4393ca)});}else{const _0x56db86=await _0x38c437(_0x39ce02[_0x2eda91(0x552,0x571,_0x5dcaba._0x180783,0x59a)])[_0x431d04(0x52e,0x47d,0x4f4,_0x5dcaba._0x1b7d4b)](()=>null);if(!_0x56db86?.[_0x2eda91(0x54b,0x555,0x508,0x516)]())throw Object['assign'](new Error(_0x2eda91(_0x5dcaba._0xbcb19f,_0x5dcaba._0x428a09,_0x5dcaba._0x16ead4,0x4cf)+_0x39ce02[_0x2eda91(_0x5dcaba._0x18488b,0x571,_0x5dcaba._0x716970,_0x5dcaba._0x5f5c60)]+'\x27'),{'code':'ENOENT'});}const _0x45a4aa=[_0x2eda91(_0x5dcaba._0x27c454,_0x5dcaba._0x1b8857,_0x5dcaba._0x2df119,0x5da),_0x2eda91(_0x5dcaba._0x18c9d2,0x56d,0x509,0x506),'--field-context-separator=|',_0x431d04(_0x5dcaba._0x11026b,0x41b,_0x5dcaba._0x4d5ee5,_0x5dcaba._0x221921),_0x39ce02[_0x431d04(_0x5dcaba._0x5b924c,0x47a,0x4a4,_0x5dcaba._0x16323b)]],_0x57351b=typeof _0x39ce02[_0x431d04(_0x5dcaba._0x4ebe09,0x50d,0x481,0x4af)]==='number'&&_0x39ce02[_0x431d04(0x4c8,_0x5dcaba._0x5d2285,0x45f,0x4af)]>0x0;return _0x57351b&&_0x45a4aa[_0x431d04(0x420,_0x5dcaba._0x61f79b,_0x5dcaba._0x1427ac,_0x5dcaba._0xbfae7f)]('-C',String(_0x39ce02['context']),'--column'),_0x39ce02[_0x431d04(0x479,_0x5dcaba._0x264764,_0x5dcaba._0x3aeb0d,_0x5dcaba._0x51c501)]&&!_0x39ce02[_0x2eda91(_0x5dcaba._0x55f4cb,_0x5dcaba._0x9902ca,0x476,_0x5dcaba._0x52cad9)]&&_0x45a4aa[_0x431d04(0x4be,0x424,0x47f,_0x5dcaba._0x3d5844)](_0x2eda91(_0x5dcaba._0x200966,0x4e8,0x4f9,0x4e0),_0x39ce02[_0x2eda91(_0x5dcaba._0x3d08aa,_0x5dcaba._0x2893f9,_0x5dcaba._0x4d9974,0x53f)]),_0x45a4aa[_0x2eda91(_0x5dcaba._0x12ae87,_0x5dcaba._0x157b3d,_0x5dcaba._0x1ac452,_0x5dcaba._0x4caf5a)](_0x39ce02[_0x2eda91(0x4f9,0x4dc,_0x5dcaba._0x9537c8,_0x5dcaba._0x484bca)]??_0x39ce02['cwd']),await new Promise((_0x2af48e,_0xeb017e)=>{const _0x1b0958={_0x2fcd23:0x19d,_0x45f140:0xe},_0x2007f2={_0x3c85e0:0xa9,_0xe7c907:0x53b},_0x2f3425={_0x161aa1:0x109},_0x6f45d6={_0x21614c:0x118,_0x10993d:0xd8},_0x19dd3c=_0x3d42e5(_0x540194,_0x45a4aa,{'cwd':_0x39ce02[_0x53777e(0x51a,_0x16bc20._0x29cfc5,0x54b,0x544)],'stdio':[_0xd2d608(0x2df,_0x16bc20._0x2d4812,0x2df,_0x16bc20._0x127605),'pipe',_0x53777e(_0x16bc20._0x57e0e2,_0x16bc20._0x54494d,0x52c,0x559)]});function _0x53777e(_0x48f6d7,_0x1c10ea,_0x317940,_0x29d014){return _0x2eda91(_0x48f6d7-0xce,_0x29d014- -0x2d,_0x1c10ea,_0x29d014-_0x4eb282._0x56a189);}let _0x226887='';function _0xd2d608(_0x4b26ec,_0x3cb226,_0x1224d2,_0x597c4f){return _0x431d04(_0x4b26ec-0x17c,_0x3cb226,_0x1224d2-_0x2d02ff._0x2b3539,_0x4b26ec- -0x1da);}let _0x3a0cee='';_0x19dd3c['stdout']?.['on'](_0x53777e(_0x16bc20._0x5353ea,0x46b,_0x16bc20._0x5be50e,0x4d7),_0x4f7e2b=>{function _0x2f4ad6(_0x3fce99,_0x1af2e5,_0x739fcd,_0x2714a1){return _0x53777e(_0x3fce99-_0x6f45d6._0x21614c,_0x3fce99,_0x739fcd-_0x6f45d6._0x10993d,_0x1af2e5- -0x342);}_0x226887+=_0x4f7e2b[_0x2f4ad6(0x218,0x1fd,0x1fa,0x25f)]();}),_0x19dd3c[_0xd2d608(_0x16bc20._0x3ef498,_0x16bc20._0xe158c0,0x29a,_0x16bc20._0x3fc148)]?.['on'](_0xd2d608(0x27a,_0x16bc20._0x281eb0,0x273,_0x16bc20._0x1be2d5),_0x5c5d69=>{function _0x423fd8(_0x266183,_0xead0d8,_0x19b08a,_0x98938b){return _0xd2d608(_0x19b08a-0x17c,_0x98938b,_0x19b08a-0x118,_0x98938b-_0x2f3425._0x161aa1);}_0x3a0cee+=_0x5c5d69[_0x423fd8(0x452,0x404,_0x5d62ac._0x9673e7,_0x5d62ac._0x1317d1)]();}),_0x19dd3c['on']('close',_0x52244f=>{if(_0x52244f===0x1&&_0x226887===''){_0x2af48e([]);return;}if(_0x52244f!==0x0&&_0x52244f!==0x1){_0xeb017e(new Error(_0x1cde94(-0xb1,-_0x163112._0x3616ae,-0x4b,-_0x163112._0x25e88d)+_0x3a0cee));return;}const _0x582f6e=_0x39ce02[_0x4430fb(0x39a,0x358,0x2fb,_0x163112._0x40e7da)]??0x64;function _0x1cde94(_0x23cbb1,_0x478398,_0x48328a,_0x3db709){return _0x53777e(_0x23cbb1-0x125,_0x478398,_0x48328a-_0x2007f2._0x3c85e0,_0x48328a- -_0x2007f2._0xe7c907);}const _0x13b137=[];for(const _0x4caf87 of _0x226887[_0x1cde94(_0x163112._0x5f2a0a,0x1f,_0x163112._0x83de02,0x30)](/\r?\n/)){if(_0x13b137['length']>=_0x582f6e)break;const _0x4f8cae=parseMatchLine(_0x4caf87,_0x57351b);if(_0x4f8cae)_0x13b137['push'](_0x4f8cae);}function _0x4430fb(_0x42d778,_0x44b8b4,_0x344093,_0x5bc160){return _0xd2d608(_0x44b8b4-0x6c,_0x344093,_0x344093-_0x1b0958._0x2fcd23,_0x5bc160-_0x1b0958._0x45f140);}_0x2af48e(_0x13b137);}),_0x19dd3c['on'](_0x53777e(0x527,_0x16bc20._0x582b64,_0x16bc20._0x33c0c2,0x51d),_0xeb017e);});}function createGlobTool(_0x370afe={}){const _0x1d083e={_0x2e8bc7:0x473,_0x5b9671:0x4c5,_0x592d52:0x4ff,_0x1aec7e:0x423,_0xc2db9:0x423,_0x38a398:0x434,_0x294545:0x42d,_0x2208fa:0x4c2,_0x1a4457:0x4f9},_0x15435a={_0x1df1ad:0x26e,_0x59bfd8:0x253,_0x5999dd:0x1d0,_0xbf5106:0x12f,_0x2f74ed:0x148,_0x241103:0x26c,_0x24d2ce:0x236,_0x2bebc2:0x2d9,_0x2a5992:0x2a3,_0x34513e:0xf8,_0x5db0de:0xb3,_0x36251d:0xd3,_0x1599d7:0x90,_0x118db4:0x18d,_0x5241f5:0x165,_0x2c4094:0x16f,_0x4ec693:0x115,_0x316aad:0x146,_0x4cf38d:0x92,_0x2793d7:0xdc,_0x4c50ef:0xef,_0x3408b9:0x16c,_0xb5242e:0x138,_0xd0019a:0x20a,_0x37aedd:0x2ac,_0x293a4c:0x19b,_0x1afa08:0x20b,_0x64bd51:0x26a,_0x32923c:0x8c,_0x2b630e:0x4d,_0xda01ce:0x78,_0x3b2de4:0x225,_0x193de6:0x10a,_0x2ac16c:0xb0,_0x5b2254:0xd6,_0x1b3a72:0x24f,_0x48386e:0x1dd,_0x2ada52:0x80,_0x42a215:0x64,_0x488208:0xcf,_0x2c632c:0x64,_0x26186a:0x231,_0x261644:0x217,_0x3aa0e0:0x1ec,_0x33d5ce:0x18c,_0xcfc37a:0x26e,_0x364ce7:0x280,_0x2f816a:0x224,_0x1a3362:0xa4,_0x17a46b:0x77,_0x50a336:0xee,_0x2b6c18:0x94},_0xd84848={_0x1ed2f0:0x1b2},_0x208b84={_0x1f7be1:0xb},_0xc514d0=_0x336f02['resolve'](_0x370afe['defaultCwd']??process['cwd']()),_0x115806=_0x370afe[_0xa26ce7(0x4a4,_0x1d083e._0x2e8bc7,0x436,0x4f8)]??0x64,_0x412c7e=_0x370afe['name']??'Glob';function _0xa26ce7(_0x5bbf36,_0x509fec,_0x864b09,_0x67cb8e){return _0x27a792(_0x5bbf36-_0x208b84._0x1f7be1,_0x509fec-0x158,_0x67cb8e,_0x5bbf36-0x16d);}function _0x2eb036(_0x34f571,_0x21e05f,_0x4d968e,_0x341f66){return _0x27a792(_0x34f571-0x197,_0x21e05f-0x15f,_0x4d968e,_0x34f571- -_0xd84848._0x1ed2f0);}return defineTool({'name':_0x412c7e,'description':'Find\x20workspace\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':_0xa26ce7(_0x1d083e._0x5b9671,0x4c5,_0x1d083e._0x592d52,0x46b),'properties':{'pattern':{'type':_0xa26ce7(_0x1d083e._0x1aec7e,0x42d,0x44b,0x476)},'path':{'type':_0xa26ce7(_0x1d083e._0xc2db9,_0x1d083e._0x38a398,0x3f4,_0x1d083e._0x294545)},'limit':{'type':'number'}},'required':[_0xa26ce7(_0x1d083e._0x2208fa,_0x1d083e._0x1a4457,0x515,0x4e7)]},async *'execute'(_0x46688c){const _0x40534c={_0x5e8625:0xcb,_0x643e51:0x1ce,_0x3ec17d:0x13c};if(_0x46688c[_0x99a921(_0x15435a._0x1df1ad,0x2cc,_0x15435a._0x59bfd8,0x252)]['trim']()['length']===0x0)throw new ToolExecutionError(_0x99a921(_0x15435a._0x5999dd,0x22d,0x21f,0x211),{});const _0x5c6b48=resolveWorkspacePath(_0xc514d0,_0x46688c[_0x312873(-0x132,-0xeb,-_0x15435a._0xbf5106,-_0x15435a._0x2f74ed)]??'.'),_0x15eef0=await _0x172043(_0x5c6b48)[_0x99a921(_0x15435a._0x241103,_0x15435a._0x24d2ce,_0x15435a._0x2bebc2,_0x15435a._0x2a5992)](()=>null);if(!_0x15eef0?.[_0x312873(-0x57,-_0x15435a._0x34513e,-_0x15435a._0x5db0de,-0xce)]())throw new ToolExecutionError(_0x312873(-0xeb,-0x137,-_0x15435a._0x36251d,-_0x15435a._0x1599d7)+(_0x46688c[_0x99a921(0x1b3,0x20d,_0x15435a._0x118db4,_0x15435a._0x5241f5)]??'.'),{'path':_0x46688c[_0x312873(-_0x15435a._0x2c4094,-_0x15435a._0x4ec693,-0x12f,-_0x15435a._0x316aad)]??'.'});const _0x3318f7=_0x46688c[_0x312873(-0x4f,-0x35,-_0x15435a._0x4cf38d,-_0x15435a._0x2793d7)]??_0x115806,_0x2dbee6=Math[_0x312873(-_0x15435a._0x4c50ef,-_0x15435a._0x3408b9,-0xfe,-_0x15435a._0xb5242e)](0x1,Math['trunc'](_0x3318f7)),_0x31fe14=[];let _0x3b7019=![];for await(const _0x4e6177 of files({'cwd':_0x5c6b48,'glob':[_0x46688c[_0x99a921(0x26e,_0x15435a._0xd0019a,_0x15435a._0x37aedd,0x21f)]]})){if(_0x31fe14[_0x99a921(0x204,_0x15435a._0x293a4c,_0x15435a._0x1afa08,_0x15435a._0x64bd51)]>=_0x2dbee6){_0x3b7019=!![];break;}const _0x57628d=await _0x172043(_0x336f02[_0x312873(-_0x15435a._0x32923c,-_0x15435a._0x2b630e,-_0x15435a._0xda01ce,-0xc)](_0x5c6b48,_0x4e6177))[_0x99a921(0x26c,0x21b,0x2c8,_0x15435a._0x3b2de4)](()=>null);_0x31fe14['push']({'path':_0x4e6177,'mtime':_0x57628d?.[_0x312873(-0xdb,-_0x15435a._0x193de6,-_0x15435a._0x2ac16c,-_0x15435a._0x5b2254)]??0x0});}_0x31fe14[_0x99a921(0x266,0x218,0x241,_0x15435a._0x1b3a72)]((_0x14796c,_0x40b964)=>_0x40b964['mtime']-_0x14796c[_0x99a921(0x21e,0x25e,0x1b6,0x27c)]);function _0x312873(_0x569bc3,_0x3a7a54,_0x2595db,_0x2d404f){return _0x2eb036(_0x2595db- -0x217,_0x3a7a54-0x1b,_0x569bc3,_0x2d404f-0xdd);}const _0x18b871=_0x31fe14[_0x99a921(0x21f,0x220,0x266,0x1e4)](_0xbb152b=>_0xbb152b['path']),_0x4799a6=_0x18b871[_0x99a921(0x204,_0x15435a._0x48386e,0x25d,0x1ad)]===0x0?_0x312873(-_0x15435a._0x2ada52,-_0x15435a._0x42a215,-_0x15435a._0x488208,-_0x15435a._0x2c632c)+_0x46688c[_0x99a921(0x26e,_0x15435a._0x26186a,0x210,0x203)]:''+_0x18b871[_0x99a921(0x26a,0x270,0x1fe,_0x15435a._0x261644)]('\x0a')+(_0x3b7019?_0x99a921(0x1d2,_0x15435a._0x3aa0e0,0x1b2,_0x15435a._0x33d5ce):'');function _0x99a921(_0x391afd,_0xbbb440,_0x2405c5,_0x209f7c){return _0x2eb036(_0x391afd-_0x40534c._0x5e8625,_0xbbb440-_0x40534c._0x643e51,_0x209f7c,_0x209f7c-_0x40534c._0x3ec17d);}return yield createToolOutput(_0x4799a6,{'pattern':_0x46688c[_0x99a921(_0x15435a._0xcfc37a,_0x15435a._0x364ce7,_0x15435a._0x2f816a,0x295)],'searchPath':_0x336f02[_0x312873(-_0x15435a._0x1a3362,-0x5e,-_0x15435a._0x17a46b,-0x25)](_0xc514d0,_0x5c6b48)||'.','matches':_0x18b871,'count':_0x18b871[_0x312873(-_0x15435a._0x50a336,-0x124,-0xde,-_0x15435a._0x2b6c18)],'truncated':_0x3b7019}),void 0x0;}});}import{stat as _0x5dd0c7}from'fs/promises';import*as _0x3d8664 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x4f6a82={}){const _0x550f83={_0x5ba71e:0x1c4,_0x1cc395:0x15f,_0x5d02e7:0x156,_0x2b3446:0x165,_0x1019ac:0x1ac,_0x4ed58a:0x177,_0x4e2f65:0x14b,_0x4eea3e:0x2b0,_0x1447cc:0x27c,_0x5885de:0x2a4,_0xb204b0:0x2ac,_0x1da4a0:0x1aa,_0x299ce0:0x2f4,_0x3c8f43:0x148,_0x19edf9:0x138,_0x43f3ce:0x1a2,_0x1ff649:0x261,_0x1a7f78:0x1b7,_0x25ab95:0x14c,_0x529008:0xf2,_0x54ebc6:0x143,_0x5c0916:0xdb,_0x551f5a:0x10a,_0x1c512e:0xfe,_0x14b2a5:0x1d7,_0x33e05a:0x222},_0x5b71f8={_0x54500e:0x1d8,_0x614b6d:0x1c9,_0x8fd5dd:0x422,_0x2b1dd5:0x4a6,_0x529239:0x41a,_0x1af0d0:0x43a,_0x2d0d4b:0x3dd,_0x26f437:0x42e,_0x488737:0x55,_0x393b46:0xb0,_0x5aecce:0x43f,_0x5cd3e9:0x413,_0x4f70c6:0x12c,_0x51965c:0x49a,_0x4a40a7:0x445,_0x1cb4a8:0x443,_0x4ff5af:0x4a1,_0x4b17cd:0x43d,_0x23f1a3:0x509,_0x1599ef:0x467,_0x41fe53:0x8e,_0xd5ede9:0xad,_0x48e059:0x48c,_0x3df7ed:0x481,_0x3731b7:0x4d1,_0x469ccd:0x407,_0x53fbe0:0x487,_0x4d8e55:0x45f,_0x2f3c5c:0x4c2,_0x3874b3:0x13e,_0x47476e:0x177,_0x133e7b:0x126,_0x3107c4:0x133,_0xd58037:0x125,_0x1ea0be:0x142,_0x24428f:0x41a,_0x22097e:0x4df,_0x28c74c:0x3ea,_0x4df14a:0x45f,_0x5de2c9:0x45a,_0x4eab20:0x4b3,_0x18cdb1:0x47a,_0x1b0484:0x4a3,_0x9e0a76:0x4cd,_0x13e18d:0x4e9,_0xe7beca:0xcb,_0x1d1f06:0x12e,_0x592a89:0x10d,_0x4c59f1:0x44e,_0x4a91d2:0x43c,_0x24dd81:0x4b8,_0x4bcf90:0x49b,_0x57497f:0x47e,_0xb32cf1:0x491,_0x483771:0x178,_0x26460f:0x133,_0x2c3a39:0x4e1,_0x27091a:0x45e,_0x591d0d:0x4b1,_0x4e1694:0x466,_0x1f5a8a:0x504,_0x535f94:0x14f,_0x5c3ea5:0x493,_0x5f4d1e:0x4b5,_0x2d0a47:0x508,_0x492154:0x480,_0x5b47c4:0x4a0,_0x19a03c:0x446,_0xcaca06:0x13f,_0x91594:0x48c,_0x56f921:0x4de,_0x14c7ba:0x105},_0x472b9d={_0x3f4852:0x4f},_0x32b4bf={_0x5a872d:0xa8},_0x54f7c0={_0x285557:0x5d,_0x59f432:0x17e},_0x21e9c4=_0x3d8664[_0x1a2d93(_0x550f83._0x5ba71e,0x1eb,0x185,0x1b6)](_0x4f6a82['defaultCwd']??process[_0x1a2d93(0x1c7,0x1d4,0x1b4,_0x550f83._0x1cc395)]()),_0x2574e7=_0x4f6a82[_0x1a2d93(_0x550f83._0x5d02e7,_0x550f83._0x2b3446,0x1b9,0x1ab)]??0x64;function _0x1a2d93(_0x197bf3,_0x4a99f0,_0x4c8739,_0x159bb3){return _0x27a792(_0x197bf3-0x119,_0x4a99f0-_0x54f7c0._0x285557,_0x197bf3,_0x4c8739- -_0x54f7c0._0x59f432);}const _0x4f454f=_0x4f6a82[_0x1a2d93(_0x550f83._0x1019ac,0x155,_0x550f83._0x4ed58a,_0x550f83._0x4e2f65)]??_0x316a14(_0x550f83._0x4eea3e,_0x550f83._0x1447cc,_0x550f83._0x5885de,_0x550f83._0xb204b0);function _0x316a14(_0x37ceb9,_0x270236,_0x55c6f9,_0x23af89){return _0x27a792(_0x37ceb9-0x160,_0x270236-0xc,_0x55c6f9,_0x270236- -_0x32b4bf._0x5a872d);}return defineTool({'name':_0x4f454f,'description':_0x316a14(0x1a9,0x1f8,0x23f,_0x550f83._0x1da4a0),'inputSchema':{'type':_0x316a14(_0x550f83._0x299ce0,0x2b0,0x24f,0x2aa),'properties':{'pattern':{'type':_0x1a2d93(_0x550f83._0x3c8f43,0x165,_0x550f83._0x19edf9,0x171)},'path':{'type':_0x316a14(_0x550f83._0x43f3ce,0x20e,_0x550f83._0x1ff649,_0x550f83._0x1a7f78)},'include':{'type':_0x1a2d93(_0x550f83._0x25ab95,_0x550f83._0x529008,_0x550f83._0x19edf9,0xd9)},'limit':{'type':_0x1a2d93(_0x550f83._0x54ebc6,0x152,0x132,_0x550f83._0x5c0916)},'context':{'type':_0x1a2d93(0x13b,_0x550f83._0x551f5a,0x132,_0x550f83._0x1c512e)}},'required':[_0x1a2d93(0x172,_0x550f83._0x1da4a0,_0x550f83._0x14b2a5,_0x550f83._0x33e05a)]},async *'execute'(_0x2c284c){const _0x3f0c9b={_0x12e64c:0x88,_0x5cf9c2:0x1a};if(_0x2c284c[_0x52abf6(_0x5b71f8._0x54500e,0x113,_0x5b71f8._0x614b6d,0x16b)]['trim']()[_0x468627(0x44e,0x424,_0x5b71f8._0x8fd5dd,_0x5b71f8._0x2b1dd5)]===0x0)throw new ToolExecutionError(_0x468627(_0x5b71f8._0x529239,_0x5b71f8._0x1af0d0,_0x5b71f8._0x2d0d4b,_0x5b71f8._0x26f437),{});const _0x5eb012=resolveWorkspacePath(_0x21e9c4,_0x2c284c[_0x52abf6(0x71,0xa8,_0x5b71f8._0x488737,_0x5b71f8._0x393b46)]??'.'),_0x2baec1=await _0x5dd0c7(_0x5eb012)['catch'](()=>null),_0x5cec4e=_0x2baec1?.[_0x468627(_0x5b71f8._0x5aecce,_0x5b71f8._0x5cd3e9,0x3d3,0x454)]()??![],_0x45f339=_0x2baec1?.[_0x52abf6(0x119,0x180,0x177,_0x5b71f8._0x4f70c6)]()??![];if(!_0x5cec4e&&!_0x45f339)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x2c284c['path']??'.'),{'path':_0x2c284c['path']??'.'});const _0x2ddf3e=_0x2c284c[_0x468627(_0x5b71f8._0x51965c,0x4e2,0x4bf,_0x5b71f8._0x4a40a7)]??_0x2574e7,_0x300b97=Math[_0x468627(0x42e,_0x5b71f8._0x1cb4a8,0x420,0x433)](0x1,Math[_0x468627(_0x5b71f8._0x4ff5af,_0x5b71f8._0x4b17cd,_0x5b71f8._0x23f1a3,_0x5b71f8._0x1599ef)](_0x2ddf3e)),_0x59801c=await search({'cwd':_0x45f339?_0x5eb012:_0x3d8664[_0x52abf6(0x9c,_0x5b71f8._0x41fe53,0xb3,_0x5b71f8._0xd5ede9)](_0x5eb012),'pattern':_0x2c284c['pattern'],'glob':_0x45f339?_0x2c284c[_0x468627(_0x5b71f8._0x48e059,_0x5b71f8._0x3df7ed,_0x5b71f8._0x3731b7,0x44d)]:void 0x0,'limit':_0x300b97,'file':_0x5cec4e?_0x5eb012:void 0x0,'context':_0x2c284c['context']}),_0x125635=new Map();for(const _0x2140cd of _0x59801c){if(!_0x125635[_0x468627(0x421,_0x5b71f8._0x469ccd,_0x5b71f8._0x53fbe0,0x43a)](_0x2140cd[_0x468627(_0x5b71f8._0x4d8e55,0x410,0x46b,_0x5b71f8._0x2f3c5c)])){const _0x451ef6=await _0x5dd0c7(_0x2140cd['filePath'])[_0x52abf6(_0x5b71f8._0x3874b3,0x106,_0x5b71f8._0x47476e,0x169)](()=>null);_0x125635[_0x52abf6(_0x5b71f8._0x133e7b,_0x5b71f8._0x3107c4,_0x5b71f8._0xd58037,_0x5b71f8._0x1ea0be)](_0x2140cd['filePath'],{'matches':[],'mtime':_0x451ef6?.[_0x468627(0x47c,_0x5b71f8._0x24428f,_0x5b71f8._0x22097e,_0x5b71f8._0x3df7ed)]??0x0});}_0x125635[_0x468627(0x422,_0x5b71f8._0x28c74c,0x413,0x41b)](_0x2140cd[_0x468627(_0x5b71f8._0x4df14a,0x46a,_0x5b71f8._0x5de2c9,_0x5b71f8._0x4eab20)])?.['matches']['push'](_0x2140cd);}const _0x6ac347=[..._0x125635[_0x468627(_0x5b71f8._0x18cdb1,_0x5b71f8._0x1b0484,_0x5b71f8._0x9e0a76,0x485)]()][_0x468627(0x4b0,0x46b,0x465,_0x5b71f8._0x13e18d)]((_0x5dd7b9,_0x50a0bf)=>_0x50a0bf[0x1][_0x52abf6(0x138,0x135,0xf4,0x11b)]-_0x5dd7b9[0x1][_0x52abf6(0xec,0xf8,0x173,0x11b)]),_0x3ba248=_0x59801c[_0x52abf6(_0x5b71f8._0xe7beca,_0x5b71f8._0x1d1f06,0xd9,_0x5b71f8._0x592a89)](_0x3ab134=>!_0x3ab134[_0x468627(0x484,0x47a,0x43e,0x48f)])['length'],_0x1937bf=_0x59801c[_0x468627(_0x5b71f8._0x4c59f1,0x46d,0x403,0x44f)]>=_0x300b97,_0x4ed8a9=_0x5cec4e?_0x3d8664['dirname'](_0x5eb012):_0x5eb012;function _0x52abf6(_0x3a3b1d,_0x3e6167,_0x4715d1,_0x374d3d){return _0x316a14(_0x3a3b1d-_0x3f0c9b._0x12e64c,_0x374d3d- -0x142,_0x3e6167,_0x374d3d-_0x3f0c9b._0x5cf9c2);}let _0x152840='';if(_0x59801c[_0x468627(0x44e,0x409,_0x5b71f8._0x4a91d2,0x4b4)]===0x0)_0x152840=_0x468627(0x40a,0x3e9,0x3b2,0x3d8)+_0x2c284c[_0x468627(_0x5b71f8._0x24dd81,0x4bd,_0x5b71f8._0x4bcf90,0x4aa)];else{_0x152840=_0x468627(0x4b7,0x4c1,_0x5b71f8._0x57497f,_0x5b71f8._0xb32cf1)+_0x3ba248+_0x52abf6(_0x5b71f8._0x483771,0x183,0x129,_0x5b71f8._0x26460f)+(_0x3ba248===0x1?'':'es')+'\x0a';for(const [_0x18a22b,_0x26c5aa]of _0x6ac347){const _0x2dd92b=_0x5cec4e?_0x3d8664[_0x468627(0x4a0,_0x5b71f8._0x2c3a39,0x4e6,_0x5b71f8._0x27091a)](_0x18a22b):_0x3d8664['relative'](_0x4ed8a9,_0x18a22b);_0x152840+='\x0a'+_0x2dd92b+':\x0a';for(const _0x1eaff7 of _0x26c5aa['matches']){const _0x1c98cc=_0x1eaff7['lineText']['length']>MAX_LINE_LENGTH?_0x1eaff7[_0x468627(_0x5b71f8._0x591d0d,_0x5b71f8._0x4e1694,0x4e3,_0x5b71f8._0x1f5a8a)][_0x52abf6(0x134,0xf7,_0x5b71f8._0x535f94,0x127)](0x0,MAX_LINE_LENGTH)+'...':_0x1eaff7[_0x468627(_0x5b71f8._0x591d0d,0x4e9,_0x5b71f8._0x5c3ea5,0x46f)],_0x317e2e=_0x1eaff7[_0x52abf6(0x129,0x12e,0xd0,0x137)]?'\x20\x20':'>\x20';_0x152840+=_0x317e2e+'Line\x20'+_0x1eaff7['lineNum']+':\x20'+_0x1c98cc+'\x0a';}}_0x1937bf&&(_0x152840+=_0x52abf6(0xf1,0x6e,0x105,0xcf));}const _0x13e3f2={'searchPath':_0x3d8664[_0x468627(_0x5b71f8._0x5f4d1e,_0x5b71f8._0x2d0a47,_0x5b71f8._0x492154,0x503)](_0x21e9c4,_0x5eb012)||'.','pattern':_0x2c284c[_0x468627(0x4b8,_0x5b71f8._0x5b47c4,_0x5b71f8._0x22097e,0x50e)],'matchCount':_0x3ba248,'fileCount':_0x125635[_0x468627(0x44b,_0x5b71f8._0x48e059,_0x5b71f8._0x19a03c,0x48a)],'truncated':_0x1937bf};function _0x468627(_0x4af0d1,_0x380840,_0x555585,_0x11d10d){return _0x1a2d93(_0x380840,_0x380840-_0x472b9d._0x3f4852,_0x4af0d1-0x2e1,_0x11d10d-0x192);}return _0x45f339&&_0x2c284c[_0x52abf6(0x189,0x162,0x12c,_0x5b71f8._0xcaca06)]!==void 0x0&&(_0x13e3f2[_0x468627(_0x5b71f8._0x91594,0x4e7,0x4b3,_0x5b71f8._0x56f921)]=_0x2c284c[_0x52abf6(0xfe,_0x5b71f8._0x14c7ba,0x155,0x13f)]),yield createToolOutput(_0x152840[_0x52abf6(0x13e,0xd3,0x199,0x13c)](),_0x13e3f2),void 0x0;}});}import{readdir,readFile as _0x17eab8,stat as _0x1b1301}from'fs/promises';function _0xdaaf(_0x399900,_0x351b45){_0x399900=_0x399900-0x1ac;const _0x39d05f=_0x39d0();let _0xdaaf81=_0x39d05f[_0x399900];if(_0xdaaf['lujMdu']===undefined){var _0x1e8ca6=function(_0x3096ef){const _0xa6b6b4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x20a4fc='',_0x366479='';for(let _0x3a745a=0x0,_0x264aea,_0x2b3c5c,_0x1de27e=0x0;_0x2b3c5c=_0x3096ef['charAt'](_0x1de27e++);~_0x2b3c5c&&(_0x264aea=_0x3a745a%0x4?_0x264aea*0x40+_0x2b3c5c:_0x2b3c5c,_0x3a745a++%0x4)?_0x20a4fc+=String['fromCharCode'](0xff&_0x264aea>>(-0x2*_0x3a745a&0x6)):0x0){_0x2b3c5c=_0xa6b6b4['indexOf'](_0x2b3c5c);}for(let _0x2a9f9e=0x0,_0x2d3dfb=_0x20a4fc['length'];_0x2a9f9e<_0x2d3dfb;_0x2a9f9e++){_0x366479+='%'+('00'+_0x20a4fc['charCodeAt'](_0x2a9f9e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x366479);};_0xdaaf['qzzoOz']=_0x1e8ca6,_0xdaaf['YgWjZL']={},_0xdaaf['lujMdu']=!![];}const _0x16f8f7=_0x39d05f[0x0],_0x199d02=_0x399900+_0x16f8f7,_0x32bb51=_0xdaaf['YgWjZL'][_0x199d02];return!_0x32bb51?(_0xdaaf81=_0xdaaf['qzzoOz'](_0xdaaf81),_0xdaaf['YgWjZL'][_0x199d02]=_0xdaaf81):_0xdaaf81=_0x32bb51,_0xdaaf81;}import*as _0x24d89d from'path';import*as _0x4e4793 from'yaml';async function countTextLines(_0x2b255f){const _0x5c18f8={_0x313599:0x4b6,_0x1da853:0x448,_0x25eee6:0x433,_0x99ab7c:0x422,_0x1895c0:0x3d6,_0x19c3df:0x43e,_0x3e2e6b:0x154,_0x1e07a0:0x112},_0x421e05={_0x248f90:0x1bd},_0x561e37={_0x5ab090:0x8,_0x2ac818:0xf5},_0x126ee9=await _0x17eab8(_0x2b255f)[_0x41db1a(_0x5c18f8._0x313599,_0x5c18f8._0x1da853,_0x5c18f8._0x25eee6,0x434)](()=>null);function _0x41db1a(_0x7b3b47,_0x489162,_0x1290d8,_0xc486a3){return _0x27a792(_0x7b3b47-0x78,_0x489162-_0x561e37._0x5ab090,_0x7b3b47,_0x489162-_0x561e37._0x2ac818);}if(!_0x126ee9||isProbablyBinary(_0x126ee9))return void 0x0;function _0xf067c5(_0x19fc5e,_0x11ad05,_0xcc323d,_0x24170c){return _0x5c1169(_0x19fc5e-0xe2,_0x19fc5e,_0xcc323d- -0x6ee,_0x24170c-_0x421e05._0x248f90);}return _0x126ee9[_0x41db1a(0x3e3,_0x5c18f8._0x99ab7c,0x46c,_0x5c18f8._0x1895c0)](_0x41db1a(0x3d8,_0x5c18f8._0x19c3df,0x422,0x4a2))[_0xf067c5(-_0x5c18f8._0x3e2e6b,-_0x5c18f8._0x1e07a0,-0x13b,-0x12d)](/\r?\n/)['length'];}function createLsTool(_0xa2f043={}){const _0x101985={_0x3cfda3:0xaf,_0xcf33d:0x162,_0x559af1:0xe4,_0x201085:0xaa,_0x2bed5f:0xe0,_0x23abc8:0xab,_0x1b4a8a:0x16f,_0x25aa55:0xe7,_0x117e21:0x14d},_0x1d866c={_0x2305ee:0x6c,_0x541afd:0x3d,_0x1b0332:0x99,_0x4d279c:0xc4,_0x50dd0c:0x5e0,_0x3fff3b:0x60c,_0x333d05:0x5a4,_0x44114c:0x5c0,_0x433f1f:0x607,_0x46c087:0x618,_0x5c414c:0x595,_0x25be3e:0x543,_0x5d0c9c:0x5e5,_0x1fe924:0x5db,_0x3635a9:0x5b5,_0x4738ab:0x161,_0x4b5d35:0x150,_0x1e33e5:0x58b,_0x11f9ee:0xac,_0x36fc5a:0xdb,_0x5e7ab3:0x111,_0x355d2e:0x94,_0xb840a5:0x9c,_0x4a0c37:0xb8,_0x118483:0x11c,_0x9e4702:0x14f,_0x21c697:0x180,_0x245e4f:0xa6,_0x285965:0xc9,_0x29496e:0x10e,_0x1e838e:0x5b2,_0x4624f0:0x554,_0x459cf7:0x611,_0x4415ed:0x5c3,_0x3aee36:0xd9,_0x14e547:0x13e,_0x26001a:0x16e,_0x13a0bd:0xe7,_0x130f18:0x120,_0x135308:0x617,_0x2e4d83:0x606,_0x4fa754:0xce,_0xdd94b6:0xbd,_0x48b50d:0xcd,_0xf3e20d:0x11d,_0x2939e5:0x11e,_0x5b0041:0x111,_0x9846da:0x5b5},_0x2dbee2={_0x127a7e:0xd3,_0x396dcd:0x1a},_0x4ca9f6={_0x2b2f62:0x118},_0x24a019={_0x3f8dec:0x4c,_0x23527e:0x1c2};function _0x130c5c(_0x5a62b7,_0x496cf8,_0x2dd3e3,_0x46f16f){return _0x5c1169(_0x5a62b7-_0x24a019._0x3f8dec,_0x5a62b7,_0x46f16f- -0x67c,_0x46f16f-_0x24a019._0x23527e);}const _0x38e1fa=_0x24d89d['resolve'](_0xa2f043['defaultCwd']??process['cwd']());function _0xd721e1(_0x312f8e,_0x58ef93,_0x3e667a,_0x119493){return _0x5c1169(_0x312f8e-0x9b,_0x3e667a,_0x312f8e- -0x2dc,_0x119493-_0x4ca9f6._0x2b2f62);}const _0x4a4a76=_0xa2f043[_0x130c5c(-_0x101985._0x3cfda3,-_0x101985._0xcf33d,-0x121,-0x10e)]??'Ls';return defineTool({'name':_0x4a4a76,'description':_0x130c5c(-_0x101985._0x559af1,-0x48,-0x10b,-_0x101985._0x201085),'inputSchema':{'type':_0x130c5c(-_0x101985._0x2bed5f,-0x4e,-0xfc,-_0x101985._0x23abc8),'properties':{'path':{'type':_0x130c5c(-0x161,-_0x101985._0x1b4a8a,-_0x101985._0x25aa55,-_0x101985._0x117e21)},'limit':{'type':_0x130c5c(-0xef,-0x148,-0x143,-0x153)}}},async *'execute'(_0xd46955){const _0x168c91={_0x117071:0x6b},_0x39ef91=_0xd46955[_0x1cdca9(_0x1d866c._0x2305ee,_0x1d866c._0x541afd,_0x1d866c._0x1b0332,_0x1d866c._0x4d279c)]??'.';function _0x1cdca9(_0x472dc4,_0x32e315,_0x4af19a,_0x34df52){return _0xd721e1(_0x4af19a- -0x19e,_0x32e315-_0x2dbee2._0x127a7e,_0x34df52,_0x34df52-_0x2dbee2._0x396dcd);}const _0x14f2b6=resolveWorkspacePath(_0x38e1fa,_0x39ef91),_0x263255=await _0x1b1301(_0x14f2b6)['catch'](()=>null);if(!_0x263255?.[_0x3bf0a3(_0x1d866c._0x50dd0c,_0x1d866c._0x3fff3b,0x5f2,_0x1d866c._0x333d05)]())throw new ToolExecutionError(_0x3bf0a3(_0x1d866c._0x44114c,_0x1d866c._0x433f1f,0x5fa,0x5f1)+_0x39ef91,{'path':_0x39ef91});const _0x2cc3b5=_0xd46955[_0x3bf0a3(0x601,0x5f2,_0x1d866c._0x46c087,0x5d1)]??0x3e8;function _0x3bf0a3(_0x2a0e61,_0x54add4,_0x3e0194,_0x45b05f){return _0xd721e1(_0x2a0e61-0x32d,_0x54add4-_0x168c91._0x117071,_0x45b05f,_0x45b05f-0x22);}const _0x719782=Math['min'](Math[_0x3bf0a3(_0x1d866c._0x5c414c,_0x1d866c._0x25be3e,0x5d1,_0x1d866c._0x5d0c9c)](Math['trunc'](_0x2cc3b5),0x1),0x2710),_0x10f39d=await readdir(_0x14f2b6),_0x27c245=[];for(const _0x15ad9e of _0x10f39d[_0x3bf0a3(_0x1d866c._0x1fe924,0x5cb,0x5a1,_0x1d866c._0x3635a9)](0x0,_0x719782)){const _0x1aef03=_0x24d89d[_0x1cdca9(_0x1d866c._0x4738ab,0x176,_0x1d866c._0x4b5d35,0x144)](_0x14f2b6,_0x15ad9e),_0x283cdd=await _0x1b1301(_0x1aef03)['catch'](()=>null);if(!_0x283cdd)continue;let _0x3f486d=_0x3bf0a3(_0x1d866c._0x1e33e5,0x55b,0x569,0x5e4);if(_0x283cdd[_0x1cdca9(0xfe,_0x1d866c._0x11f9ee,_0x1d866c._0x36fc5a,_0x1d866c._0x5e7ab3)]())_0x3f486d=_0x1cdca9(0xda,_0x1d866c._0x355d2e,_0x1d866c._0xb840a5,_0x1d866c._0x4a0c37);else{if(_0x283cdd[_0x1cdca9(_0x1d866c._0x118483,_0x1d866c._0x9e4702,0x115,_0x1d866c._0x21c697)]())_0x3f486d='directory';else{if(_0x283cdd['isSymbolicLink']())_0x3f486d=_0x1cdca9(0x89,_0x1d866c._0x245e4f,_0x1d866c._0x285965,_0x1d866c._0x29496e);}}const _0x19df9c={'name':_0x15ad9e,'type':_0x3f486d,'size':_0x283cdd[_0x3bf0a3(_0x1d866c._0x1e838e,_0x1d866c._0x4624f0,_0x1d866c._0x459cf7,_0x1d866c._0x4415ed)],'mtime':_0x283cdd[_0x1cdca9(0x15e,0x17e,0x118,_0x1d866c._0x3aee36)],'mode':_0x283cdd[_0x1cdca9(_0x1d866c._0x14e547,0x13e,_0x1d866c._0x26001a,0x13a)]},_0x1cd0b6=_0x3f486d===_0x1cdca9(0xfb,_0x1d866c._0x13a0bd,0x9c,0xa2)?await countTextLines(_0x1aef03):void 0x0;if(_0x1cd0b6!==void 0x0)_0x19df9c['lines']=_0x1cd0b6;_0x27c245[_0x1cdca9(0xa8,0xc4,0xf2,_0x1d866c._0x130f18)](_0x19df9c);}_0x27c245[_0x3bf0a3(_0x1d866c._0x135308,0x619,_0x1d866c._0x2e4d83,0x67d)]((_0x3c7368,_0x32eef3)=>_0x3c7368[_0x1cdca9(0x155,0x108,0xf4,0x136)][_0x3bf0a3(0x5c7,0x5a2,0x56a,0x583)](_0x32eef3[_0x1cdca9(0x86,0xb7,0xf4,0x86)]));const _0x3f1cda={'path':_0x39ef91,'total':_0x27c245[_0x1cdca9(0x88,_0x1d866c._0x4fa754,0xea,_0x1d866c._0xdd94b6)],'truncated':_0x10f39d['length']>_0x719782,'entries':_0x27c245};return yield createToolOutput(_0x4e4793[_0x1cdca9(0xea,0x13c,0xd9,_0x1d866c._0x48b50d)](_0x3f1cda,{'indent':0x2,'lineWidth':0x0})[_0x1cdca9(0x16b,_0x1d866c._0xf3e20d,_0x1d866c._0x2939e5,0x111)](),{'path':_0x39ef91,'total':_0x27c245[_0x1cdca9(0xe0,_0x1d866c._0x5b0041,0xea,0xb2)],'truncated':_0x10f39d[_0x3bf0a3(_0x1d866c._0x9846da,0x5ba,0x54f,0x5e0)]>_0x719782,'limit':_0x719782,'entries':_0x27c245}),void 0x0;}});}function getCommand(_0x1b4032){const _0x2e8241={_0x18eca9:0x11c,_0x1c708e:0x17b,_0xf30a38:0x140,_0x2dc83e:0x10a,_0x4bafe6:0x1a3,_0x270721:0x142,_0x2c7a9b:0x149},_0x57517f={_0x4c4c84:0x19b,_0x9a528c:0x459},_0x2213df={_0x32fdaa:0x3d,_0x49431f:0x474};function _0x5d186c(_0x36f824,_0x420a05,_0x30fb75,_0x4e70e7){return _0x27a792(_0x36f824-0x1d3,_0x420a05-_0x2213df._0x32fdaa,_0x36f824,_0x30fb75- -_0x2213df._0x49431f);}function _0x21bea6(_0x43a165,_0x3a628c,_0x100e20,_0x19838a){return _0x27a792(_0x43a165-0x139,_0x3a628c-_0x57517f._0x4c4c84,_0x43a165,_0x3a628c- -_0x57517f._0x9a528c);}if(_0x1b4032&&typeof _0x1b4032===_0x5d186c(-0xbc,-0x14d,-_0x2e8241._0x18eca9,-_0x2e8241._0x1c708e)&&!Array[_0x21bea6(-_0x2e8241._0xf30a38,-0x113,-_0x2e8241._0x2dc83e,-0x174)](_0x1b4032)&&typeof _0x1b4032['command']===_0x21bea6(-0x14f,-_0x2e8241._0x4bafe6,-0x20e,-0x19d))return _0x1b4032[_0x21bea6(-_0x2e8241._0x270721,-_0x2e8241._0x2c7a9b,-0x16f,-0x183)];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x27a792(0x337,0x347,0x342,0x335),_0x27a792(0x299,0x267,0x2cb,0x295),_0x5c1169(0x599,0x53d,0x54a,0x535),_0x27a792(0x2ab,0x311,0x308,0x2d4),'src/formats/message-format.ts',_0x5c1169(0x518,0x58c,0x546,0x5ae),_0x5c1169(0x58e,0x5e0,0x5b9,0x5b5),'src/models/mock-model.ts',_0x27a792(0x38a,0x334,0x341,0x333),_0x5c1169(0x55f,0x563,0x594,0x601),_0x5c1169(0x5a7,0x578,0x580,0x572),_0x5c1169(0x60b,0x612,0x5c1,0x58f),_0x5c1169(0x625,0x572,0x5c5,0x599),_0x5c1169(0x56a,0x540,0x52c,0x4bf),_0x27a792(0x308,0x248,0x295,0x2a2),_0x5c1169(0x552,0x547,0x58b,0x563)][_0x5c1169(0x5a1,0x5d1,0x5ca,0x5dc)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x5c1169(0x603,0x5b0,0x5a4,0x5a4),'description':_0x5c1169(0x555,0x5a8,0x5a9,0x57d),'input_schema':{'type':_0x27a792(0x3b6,0x340,0x38e,0x358),'properties':{'command':{'type':_0x5c1169(0x544,0x504,0x52f,0x535)}},'required':['command']}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x2ea5f7){return{'output':_0x2ea5f7,'structured':{'value':_0x2ea5f7}};}function createUnknownToolResult(_0x3b2f74){const _0x2eebdc={_0x3fd59a:0x276,_0xa2e3b7:0x296,_0x175d49:0x22e,_0x55a3fa:0x295,_0x4a5acc:0x2a6,_0x55f2ea:0x3ed,_0x4c39ae:0x3ea},_0x17f332={_0x5abbcb:0xbc,_0x33e74f:0xf8};function _0x1c645b(_0xc46338,_0x5dcd17,_0x3ead7a,_0x44c372){return _0x5c1169(_0xc46338-0x1f3,_0xc46338,_0x5dcd17- -0x31a,_0x44c372-0xb2);}function _0x2fb096(_0x11ac5e,_0x427698,_0xbfb7c1,_0x56a1a9){return _0x27a792(_0x11ac5e-_0x17f332._0x5abbcb,_0x427698-0x14c,_0x56a1a9,_0xbfb7c1-_0x17f332._0x33e74f);}return{'callId':_0x3b2f74['id'],'toolName':_0x3b2f74[_0x1c645b(0x2a2,0x254,_0x2eebdc._0x3fd59a,0x29f)],'status':_0x1c645b(0x248,0x26a,_0x2eebdc._0xa2e3b7,_0x2eebdc._0x175d49),'output':_0x1c645b(0x228,_0x2eebdc._0x55a3fa,_0x2eebdc._0x4a5acc,0x2ef)+_0x3b2f74[_0x2fb096(0x3a5,0x409,_0x2eebdc._0x55f2ea,_0x2eebdc._0x4c39ae)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x36b571,_0x3c100e){const _0x53d309={_0x4ed467:0x29c,_0x54b429:0x271},_0x13150b={_0x4ffabf:0x27},_0x30f6d7={_0x3afb26:0x186,_0x4fd0f2:0x12d};function _0x306358(_0x2cf4a9,_0x56df5d,_0x4a1cc2,_0x1fa79a){return _0x27a792(_0x2cf4a9-_0x30f6d7._0x3afb26,_0x56df5d-_0x30f6d7._0x4fd0f2,_0x2cf4a9,_0x1fa79a-0x1a2);}function _0x5b336e(_0x468877,_0x4591b4,_0x587c2e,_0x382b82){return _0x5c1169(_0x468877-_0x13150b._0x4ffabf,_0x468877,_0x382b82- -0x2fd,_0x382b82-0x7d);}return{'callId':_0x36b571['id'],'toolName':_0x36b571[_0x5b336e(_0x53d309._0x4ed467,0x206,0x26e,_0x53d309._0x54b429)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x36b571[_0x5b336e(0x291,0x29e,0x1f2,0x24a)]),'exitCode':0x0},'chunks':[_0x3c100e],'meta':createMeta()};}function createMockToolRuntime(){const _0x35372b={_0xa19804:0x63,_0x378c6d:0x88},_0x126ec9={_0x10b8e7:0x57b,_0x548bb1:0x593,_0x3af334:0x5c5,_0x155314:0x571},_0x1ce61d={_0x42bcf5:0x3c9},_0x3bdaeb=async(_0x469927,_0x640dab)=>{function _0xa78773(_0x2c0697,_0x84cca4,_0x1aee88,_0x252f19){return _0xdaaf(_0x2c0697-0x308,_0x252f19);}if(_0x469927[_0x59cc08(_0x126ec9._0x10b8e7,_0x126ec9._0x548bb1,0x5d5,_0x126ec9._0x3af334)]!==_0xa78773(0x54a,_0x126ec9._0x155314,0x588,0x58e))return createUnknownToolResult(_0x469927);function _0x59cc08(_0x31b4c8,_0x3d491d,_0x3400a8,_0x1d1637){return _0xdaaf(_0x3400a8-_0x1ce61d._0x42bcf5,_0x1d1637);}const _0x486b1b=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x469927,_0x486b1b);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},async 'executeCalls'(_0x488cac,_0x2150c7){function _0xca86dc(_0x319791,_0x14503f,_0x55baa6,_0x2a1b6a){return _0xdaaf(_0x2a1b6a- -0x176,_0x14503f);}return await Promise['all'](_0x488cac[_0xca86dc(_0x35372b._0xa19804,_0x35372b._0x378c6d,0x92,0xa7)](async _0x3f5047=>{return await _0x3bdaeb(_0x3f5047,_0x2150c7);}));},async 'execute'(_0x5138e7,_0x177207){return await _0x3bdaeb(_0x5138e7,_0x177207);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){const _0x2eb313={_0x446f51:0x1d6,_0x3b471a:0x1b2},_0x2e80a4={_0x6563a7:0x46,_0x432037:0x1bf};function _0x3d2c40(_0x23c1c5,_0x544052,_0x104150,_0x2d2141){return _0x27a792(_0x23c1c5-_0x2e80a4._0x6563a7,_0x544052-_0x2e80a4._0x432037,_0x23c1c5,_0x2d2141- -0x4cc);}return delegatedRunCounter+=0x1,_0x3d2c40(-_0x2eb313._0x446f51,-0x15f,-0x1fe,-_0x2eb313._0x3b471a)+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x44fa2c,_0x3fbb0d){const _0x518e90={_0x5456c5:0x473,_0x12fc3a:0x3fc},_0x4bf8f3={_0x4562c0:0x155};function _0x768a12(_0x29e9e6,_0x31591b,_0x47f524,_0x2cad71){return _0x27a792(_0x29e9e6-_0x4bf8f3._0x4562c0,_0x31591b-0x1d0,_0x31591b,_0x47f524-0x16c);}return typeof _0x44fa2c===_0x768a12(_0x518e90._0x5456c5,_0x518e90._0x12fc3a,0x424,0x3fe)?await _0x44fa2c(_0x3fbb0d):_0x44fa2c;}function getDelegatedAgentDefinition(_0x4cf1ca,_0x838328){const _0x2417aa={_0x387bf9:0x2ce,_0x20a4f9:0x304},_0x3ce15f={_0x23e737:0x2f};function _0x10421c(_0x132693,_0x1274f8,_0x47ac2f,_0x4ae1b0){return _0x27a792(_0x132693-0x130,_0x1274f8-0x145,_0x1274f8,_0x4ae1b0-_0x3ce15f._0x23e737);}return _0x4cf1ca[_0x10421c(0x354,0x362,_0x2417aa._0x387bf9,_0x2417aa._0x20a4f9)]?.[_0x838328];}function createRunSummary(_0x547db5){const _0x37ddd1={_0x3756c6:0x4b4,_0x35009:0x4d8,_0x11fed6:0x2a2,_0x5944cc:0x305,_0x2ad5d3:0x2a0,_0x527c38:0x29f,_0x1a062f:0x2c9,_0x518389:0x308,_0x423c0e:0x383,_0x57ac98:0x317,_0x564021:0x539,_0x40580e:0x539,_0x52ea9d:0x4ea,_0x15414d:0x516,_0x5725cb:0x46d,_0x20b7c9:0x503,_0x528b6f:0x4ac,_0x48958b:0x4f7,_0xbd598f:0x4bf,_0x25df0b:0x4e3,_0x3425e8:0x434,_0x27bbf5:0x457,_0x120c8d:0x4a2,_0x1bfbe4:0x346,_0x37e05a:0x33e,_0x5e37f7:0x332,_0x38bd8b:0x4ac},_0xfa4fa9={_0x1f6cf4:0x1c8,_0x5d934c:0x74,_0x5ec0f9:0x1c7},_0x47cac0={_0xe21dd5:0x196,_0x87e8ec:0x296,_0x44311d:0x12b};function _0x36eb5d(_0x46789a,_0x97d864,_0x981d11,_0x1f0a33){return _0x5c1169(_0x46789a-_0x47cac0._0xe21dd5,_0x981d11,_0x1f0a33- -_0x47cac0._0x87e8ec,_0x1f0a33-_0x47cac0._0x44311d);}function _0x3206a7(_0x4e3e65,_0x6b198b,_0x5400e3,_0x15ec9c){return _0x27a792(_0x4e3e65-_0xfa4fa9._0x1f6cf4,_0x6b198b-_0xfa4fa9._0x5d934c,_0x4e3e65,_0x15ec9c-_0xfa4fa9._0x5ec0f9);}return{'runId':_0x547db5[_0x3206a7(_0x37ddd1._0x3756c6,0x499,0x429,0x479)],'agentId':_0x547db5[_0x3206a7(0x4f5,_0x37ddd1._0x35009,0x519,0x535)],'sessionId':_0x547db5[_0x36eb5d(_0x37ddd1._0x11fed6,_0x37ddd1._0x5944cc,_0x37ddd1._0x2ad5d3,0x2b2)],'status':_0x547db5[_0x36eb5d(_0x37ddd1._0x527c38,0x34b,_0x37ddd1._0x1a062f,_0x37ddd1._0x518389)],'parentSessionId':_0x547db5[_0x36eb5d(0x2c4,0x328,_0x37ddd1._0x423c0e,_0x37ddd1._0x57ac98)],..._0x547db5['originToolCallId']!==void 0x0?{'originToolCallId':_0x547db5[_0x3206a7(_0x37ddd1._0x564021,_0x37ddd1._0x40580e,0x4c9,_0x37ddd1._0x52ea9d)]}:{},..._0x547db5[_0x3206a7(_0x37ddd1._0x15414d,_0x37ddd1._0x5725cb,_0x37ddd1._0x20b7c9,_0x37ddd1._0x528b6f)]!==void 0x0?{'errorMessage':_0x547db5[_0x3206a7(_0x37ddd1._0x48958b,0x485,_0x37ddd1._0xbd598f,0x4ac)]}:{},..._0x547db5[_0x3206a7(_0x37ddd1._0x25df0b,_0x37ddd1._0x3425e8,_0x37ddd1._0x27bbf5,_0x37ddd1._0x120c8d)]?.[_0x36eb5d(0x34a,_0x37ddd1._0x1bfbe4,_0x37ddd1._0x37e05a,_0x37ddd1._0x5e37f7)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x547db5[_0x3206a7(_0x37ddd1._0x38bd8b,0x4fa,0x49e,_0x37ddd1._0x120c8d)]['finalMessage'])}:{}};}function createRunSummaryOutput(_0x43cadb,_0xd7c991){const _0x32fcb2={_0x461d56:0x2c4,_0x4fb063:0x2b4,_0x320636:0x266,_0x435ff6:0x2a1},_0x18dde6={_0x34f249:0x190,_0x2b3d5a:0x2c3},_0x3d327b={_0x1207bd:0xd4};function _0x583d58(_0x47cd99,_0x2a1d18,_0x43215e,_0x491757){return _0x5c1169(_0x47cd99-0x19a,_0x2a1d18,_0x47cd99- -0x696,_0x491757-_0x3d327b._0x1207bd);}const _0x50e06f=createRunSummary(_0x43cadb);function _0x2d0be4(_0x1e9cb6,_0x258df3,_0x7bb56e,_0x82d225){return _0x5c1169(_0x1e9cb6-_0x18dde6._0x34f249,_0x258df3,_0x82d225- -_0x18dde6._0x2b3d5a,_0x82d225-0x160);}const _0x4da0e6=_0x50e06f[_0x2d0be4(0x272,_0x32fcb2._0x461d56,0x2c7,_0x32fcb2._0x4fb063)];return createToolOutput(typeof _0x4da0e6==='string'&&_0x4da0e6[_0x2d0be4(0x25d,_0x32fcb2._0x320636,0x24f,_0x32fcb2._0x435ff6)]>0x0?_0x4da0e6:_0xd7c991,_0x50e06f);}function getRunTerminalErrorMessage(_0x1caaf2){const _0xe7d3e8={_0x47862c:0x249,_0x24c5d0:0xa7,_0x2d4dc6:0x5a,_0x1ac5ad:0x8e,_0x548973:0x97,_0x1f3e1f:0xf,_0x2c97c2:0x1ea,_0x3a7a1a:0x1a6,_0x4e1848:0x1b9,_0x5a17e8:0xba,_0x5aed09:0x5b,_0xfd94e5:0xb,_0x1a73a5:0x1a6,_0x57b441:0x1b4},_0x4c2aaa={_0x305d48:0x1a0},_0x4266d8={_0x2fca0b:0xfd,_0x5c6a29:0xf1,_0x3183bb:0x2cb},_0x1739b2=_0x1caaf2?.['state'][_0x243c41(0x26c,_0xe7d3e8._0x47862c,0x270,0x239)]['at'](-0x1);function _0x2bd07b(_0x5d082e,_0x5ec0bc,_0x402bf7,_0xb540ee){return _0x27a792(_0x5d082e-_0x4266d8._0x2fca0b,_0x5ec0bc-_0x4266d8._0x5c6a29,_0xb540ee,_0x5ec0bc- -_0x4266d8._0x3183bb);}if(_0x1739b2?.[_0x2bd07b(_0xe7d3e8._0x24c5d0,_0xe7d3e8._0x2d4dc6,_0xe7d3e8._0x1ac5ad,0x36)]===_0x2bd07b(0x93,0x40,_0xe7d3e8._0x548973,-_0xe7d3e8._0x1f3e1f)&&_0x1739b2[_0x243c41(_0xe7d3e8._0x2c97c2,_0xe7d3e8._0x3a7a1a,_0xe7d3e8._0x4e1848,0x1b0)][_0x2bd07b(_0xe7d3e8._0x5a17e8,_0xe7d3e8._0x5aed09,0x58,_0xe7d3e8._0xfd94e5)]()['length']>0x0)return _0x1739b2[_0x243c41(0x1b5,_0xe7d3e8._0x1a73a5,_0xe7d3e8._0x57b441,0x192)];function _0x243c41(_0x8001c8,_0x23bc62,_0x103cdd,_0x117fa5){return _0x5c1169(_0x8001c8-_0x4c2aaa._0x305d48,_0x8001c8,_0x23bc62- -0x390,_0x117fa5-0xea);}return void 0x0;}function formatAbortedRunMessage(_0x2d493b,_0x2e2686){const _0x50778e={_0x3ef1e9:0x463,_0x40b093:0x47b,_0x36b072:0x339,_0x33d9df:0x40c,_0x20ea45:0x405,_0x39cdb2:0x43d,_0x4ea29f:0x495},_0x537eef={_0x11b624:0x9c},_0x3694a8={_0x5e9ef8:0xa4,_0x250137:0x88,_0x1cfb8a:0x76};function _0x4d10b2(_0x5d2143,_0xa17372,_0x4a1b7f,_0x4b401c){return _0x27a792(_0x5d2143-_0x3694a8._0x5e9ef8,_0xa17372-_0x3694a8._0x250137,_0x5d2143,_0xa17372-_0x3694a8._0x1cfb8a);}function _0x41b4af(_0x17c1e1,_0x80199d,_0x2b5243,_0x12d731){return _0x5c1169(_0x17c1e1-_0x537eef._0x11b624,_0x2b5243,_0x80199d- -0x193,_0x12d731-0x8e);}const _0x49b63a=_0x41b4af(_0x50778e._0x3ef1e9,0x44b,_0x50778e._0x40b093,0x436)+_0x2d493b+_0x4d10b2(0x361,_0x50778e._0x36b072,0x2f8,0x389);if(!_0x2e2686||_0x2e2686[_0x41b4af(0x3ad,_0x50778e._0x33d9df,0x431,0x3c9)]()[_0x41b4af(0x3e5,0x3d1,_0x50778e._0x20ea45,0x3eb)]===0x0||_0x2e2686===_0x49b63a)return _0x49b63a;return _0x49b63a+_0x41b4af(0x419,_0x50778e._0x39cdb2,0x42a,_0x50778e._0x4ea29f)+_0x2e2686;}function createAssignTaskTool(_0x4a3f3f){const _0xd35340={_0x3c95bc:0x7e,_0x39cfc9:0x6b,_0x5d4f95:0x518,_0x30fa4e:0x4e4,_0x560c7e:0x570,_0x359dbe:0x51e,_0x283a47:0x9b,_0x4bacac:0x6d,_0x26b4c9:0x5d,_0x1c54a6:0x61,_0x2801dc:0x4cd,_0x5ad928:0x46a,_0x1baf50:0x53c,_0x48b56d:0x516,_0x55dffe:0x59f,_0x59e62f:0xbe},_0x439660={_0x45f022:0x678,_0x397a92:0x6d1,_0x46acfd:0x6a8,_0x490a5e:0x670,_0x33d222:0x17e,_0x1bbe9a:0x1c5,_0x43172f:0x5ca,_0x50d542:0x62d,_0x242360:0x5d7,_0x3531c6:0x65a,_0x4da891:0x613,_0x567f3f:0x636,_0x52bc55:0x575,_0x2bc711:0x633,_0x44f2eb:0x63c,_0x54e6b6:0x10a,_0x2339f6:0xa7,_0x18f986:0xc1,_0x3d09a5:0x623,_0x2f39da:0x684,_0x33fcc3:0x17d,_0xba21c4:0x135,_0x12b3c7:0x609,_0xb760dd:0x1b4,_0x44af7e:0x618,_0x331f0c:0x65d,_0x37d88a:0x5c5,_0x15ed1:0x222,_0x37216c:0x5ad,_0x4c15e8:0x5b6,_0x5e438f:0x5b1,_0x57eaf7:0x5de,_0x536955:0x60e,_0x4a2fbd:0x61b,_0x37fa89:0x13b,_0x40abd2:0x138,_0x4ee72b:0x133,_0x12714f:0x659,_0x3b5cba:0x621,_0x4cbf6c:0x66e,_0x1526e9:0x672,_0x51d24b:0x137,_0x264e66:0x5d6,_0x4bb261:0x1b6,_0x5a9713:0x1eb,_0x3f9194:0x155,_0x4c2435:0x1bd,_0x1cfbb4:0x171,_0x4ad684:0x10a,_0x526cf7:0x162,_0x34d1f1:0x5e5,_0x2d5621:0x56a},_0x1f357e={_0x2bcf76:0x314,_0x5268db:0x36c,_0x17ba7a:0x33d},_0x13dff5={_0x4f0259:0xa1,_0x377b81:0x1ce},_0xa0cfd4={_0x137eee:0x15d};function _0x16b235(_0x36b2ea,_0x281e9a,_0x4b195d,_0x4e4319){return _0x27a792(_0x36b2ea-0x181,_0x281e9a-_0xa0cfd4._0x137eee,_0x36b2ea,_0x4b195d- -0x2eb);}function _0x188132(_0x28a789,_0x4237fd,_0x1fc0c0,_0x3d031e){return _0x27a792(_0x28a789-_0x13dff5._0x4f0259,_0x4237fd-0x1,_0x4237fd,_0x28a789-_0x13dff5._0x377b81);}return defineTool({'name':_0x16b235(0xa1,_0xd35340._0x3c95bc,_0xd35340._0x39cfc9,0x7),'description':_0x188132(_0xd35340._0x5d4f95,_0xd35340._0x30fa4e,_0xd35340._0x560c7e,_0xd35340._0x359dbe),'inputSchema':{'type':_0x16b235(_0xd35340._0x283a47,0x10,_0xd35340._0x4bacac,0xc6),'properties':{'agentId':{'type':_0x16b235(-_0xd35340._0x26b4c9,-0x30,-0x35,-_0xd35340._0x1c54a6)},'task':{'type':_0x188132(0x484,_0xd35340._0x2801dc,_0xd35340._0x5ad928,0x441)}},'required':[_0x188132(_0xd35340._0x1baf50,_0xd35340._0x48b56d,_0xd35340._0x55dffe,0x4ed),_0x16b235(_0xd35340._0x59e62f,0x4b,0x79,0x11)]},async *'execute'(_0x5a5fd2,_0x1b64dd){const _0x3c18c6={_0x467f1b:0x12d,_0x21b577:0x1c5},_0x57ad33={_0x3f0562:0x1be,_0x31ea7e:0x143,_0x5bada0:0x15};function _0x181417(_0x38ebee,_0x156be0,_0x135d39,_0x2eb016){return _0x16b235(_0x156be0,_0x156be0-_0x57ad33._0x3f0562,_0x38ebee-_0x57ad33._0x31ea7e,_0x2eb016-_0x57ad33._0x5bada0);}function _0x4ea3cf(_0x4245d6,_0x589563,_0x1645eb,_0x54235d){return _0x188132(_0x4245d6-_0x3c18c6._0x467f1b,_0x54235d,_0x1645eb-_0x3c18c6._0x21b577,_0x54235d-0x44);}const _0x525a41=createDelegatedRunId(),_0x2a6fbe={'agentId':_0x5a5fd2[_0x4ea3cf(0x669,_0x439660._0x45f022,0x663,_0x439660._0x397a92)],'parentSessionId':_0x1b64dd[_0x4ea3cf(0x5ca,0x5a2,0x5eb,0x5c7)],'runId':_0x525a41,..._0x1b64dd['toolCallId']!==void 0x0?{'toolCallId':_0x1b64dd['toolCallId']}:{}},_0x442fb0=getDelegatedAgentDefinition(_0x4a3f3f,_0x5a5fd2[_0x4ea3cf(0x669,_0x439660._0x46acfd,0x632,0x660)]);if(!_0x442fb0)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x5a5fd2[_0x4ea3cf(0x669,0x68c,_0x439660._0x490a5e,0x62d)],{'agentId':_0x5a5fd2[_0x181417(0x1c6,0x182,_0x439660._0x33d222,_0x439660._0x1bbe9a)]});const _0x23f9f8=new Agent(await resolveDelegatedAgentOptions(_0x442fb0,_0x2a6fbe));let _0x2f5664={'runId':_0x525a41,'agentId':_0x5a5fd2['agentId'],'sessionId':_0x23f9f8[_0x4ea3cf(_0x439660._0x43172f,0x5a1,_0x439660._0x50d542,_0x439660._0x242360)],'status':_0x4ea3cf(_0x439660._0x3531c6,_0x439660._0x4da891,0x671,0x5ff),'parentSessionId':_0x1b64dd[_0x4ea3cf(0x5ca,_0x439660._0x567f3f,_0x439660._0x52bc55,_0x439660._0x2bc711)],..._0x1b64dd['toolCallId']!==void 0x0?{'originToolCallId':_0x1b64dd['toolCallId']}:{}};const _0x144931=new AbortController(),_0x5db999=addAbortListener(_0x1b64dd[_0x4ea3cf(0x5ec,_0x439660._0x44f2eb,0x597,0x60c)],()=>{function _0x154296(_0xb8a555,_0x58cf88,_0x476560,_0x1a4779){return _0x4ea3cf(_0x1a4779- -0x2af,_0x58cf88-0x14b,_0x476560-0x29,_0x476560);}_0x144931['abort'](_0x1b64dd[_0x154296(_0x1f357e._0x2bcf76,_0x1f357e._0x5268db,0x339,_0x1f357e._0x17ba7a)]?.['reason']);});yield createToolOutput('Started\x20agent\x20run\x20'+_0x2f5664[_0x181417(_0x439660._0x54e6b6,_0x439660._0x2339f6,_0x439660._0x18f986,0x145)]+'.',{'runId':_0x2f5664['runId'],'agentId':_0x2f5664[_0x4ea3cf(0x669,0x64c,_0x439660._0x3d09a5,_0x439660._0x2f39da)],'sessionId':_0x2f5664['sessionId'],'status':_0x2f5664[_0x181417(_0x439660._0x33fcc3,0x132,_0x439660._0xba21c4,0x148)]});try{const _0x5df7b8=await _0x23f9f8['send'](_0x5a5fd2[_0x4ea3cf(0x65f,0x61a,_0x439660._0x12b3c7,0x625)],{'signal':_0x144931['signal']});_0x2f5664={..._0x2f5664,'status':_0x5df7b8[_0x181417(0x17d,0x1c8,_0x439660._0xb760dd,0x19b)],'result':_0x5df7b8};if(_0x5df7b8[_0x4ea3cf(0x620,_0x439660._0x44af7e,_0x439660._0x331f0c,_0x439660._0x37d88a)]!=='completed'){const _0x4f0101=getRunTerminalErrorMessage(_0x5df7b8),_0x64e5f9=formatAbortedRunMessage(_0x2f5664['runId'],_0x4f0101);throw new ToolExecutionError(_0x64e5f9,{...createRunSummary(_0x2f5664),'aborted':!![],'errorMessage':_0x64e5f9});}return createRunSummaryOutput(_0x2f5664,_0x181417(0x1bd,0x173,0x210,_0x439660._0x15ed1)+_0x2f5664[_0x4ea3cf(_0x439660._0x37216c,_0x439660._0x4c15e8,0x54d,_0x439660._0x5e438f)]+'\x20completed.');}catch(_0x28e240){if(_0x28e240 instanceof ToolExecutionError)throw _0x28e240;if(isAbortError(_0x28e240)||_0x144931['signal'][_0x4ea3cf(_0x439660._0x57eaf7,_0x439660._0x536955,_0x439660._0x4a2fbd,0x5e2)]||_0x1b64dd['signal'][_0x181417(_0x439660._0x37fa89,_0x439660._0x40abd2,0x10e,0x12b)]){const _0x22e07a=getRunTerminalErrorMessage(_0x2f5664[_0x181417(_0x439660._0x4ee72b,0xed,0x143,0x109)])??(_0x28e240 instanceof Error?_0x28e240[_0x4ea3cf(_0x439660._0x12714f,_0x439660._0x3b5cba,_0x439660._0x4cbf6c,_0x439660._0x1526e9)]:String(_0x28e240)),_0x286e18=formatAbortedRunMessage(_0x2f5664['runId'],_0x22e07a);_0x2f5664={..._0x2f5664,'status':_0x181417(_0x439660._0x37fa89,_0x439660._0x51d24b,0x144,0x140),'errorMessage':_0x286e18};throw new ToolExecutionError(_0x286e18,{...createRunSummary(_0x2f5664),'aborted':!![],'errorMessage':_0x286e18});}const _0x3ce55a=getRunTerminalErrorMessage(_0x2f5664[_0x4ea3cf(_0x439660._0x264e66,0x5fe,0x593,0x611)])??(_0x28e240 instanceof Error?_0x28e240[_0x181417(_0x439660._0x4bb261,_0x439660._0x5a9713,_0x439660._0x3f9194,0x1c2)]:String(_0x28e240))??_0x181417(_0x439660._0x4c2435,0x200,_0x439660._0x1cfbb4,0x1c9)+_0x2f5664[_0x181417(_0x439660._0x4ad684,0x11e,_0x439660._0x526cf7,0xf4)]+_0x4ea3cf(0x597,0x5ee,_0x439660._0x34d1f1,_0x439660._0x2d5621);_0x2f5664={..._0x2f5664,'status':'failed','errorMessage':_0x3ce55a};throw new ToolExecutionError(_0x3ce55a,{...createRunSummary(_0x2f5664),'errorMessage':_0x3ce55a});}finally{_0x5db999();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x1c270f){return[createAssignTaskTool(_0x1c270f)];}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createLsTool,createMockToolRuntime,createShellExecTool,createToolOutput,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,validateToolInput};
|
|
1
|
+
(function(_0x2abb92,_0x1b2089){const _0x32fbe4={_0x29e05a:0x2f,_0x2c8b59:0x175,_0x56e230:0x146,_0x25e2c0:0x74,_0x5e27ae:0x5e8,_0x5977ac:0x6cd,_0x19510e:0x65c,_0x586978:0x6d5,_0x4b08bc:0x537,_0xa039cb:0x6df,_0x2f354d:0x698,_0x1886d6:0x7ac,_0x3d0a1d:0x4fa,_0x536586:0x44a,_0x448c21:0x4a7,_0x10354e:0x459,_0x30df19:0x4ae,_0x259acf:0x1e4,_0x86c8a4:0xa1,_0x317f9b:0x4d,_0x1df30e:0x445},_0x24b080={_0x4ab1f2:0x38f},_0x556324=_0x2abb92();function _0xfd213e(_0x4447f9,_0x13b7e1,_0x594c3c,_0x473043){return _0x561a(_0x4447f9- -0x30b,_0x13b7e1);}function _0xcae470(_0x46424b,_0x55aa3c,_0x5dc9fa,_0x1e8117){return _0x561a(_0x55aa3c-_0x24b080._0x4ab1f2,_0x5dc9fa);}while(!![]){try{const _0x209618=parseInt(_0xfd213e(-_0x32fbe4._0x29e05a,-_0x32fbe4._0x2c8b59,-_0x32fbe4._0x56e230,_0x32fbe4._0x25e2c0))/0x1+parseInt(_0xcae470(_0x32fbe4._0x5e27ae,0x4af,0x467,0x36b))/0x2+parseInt(_0xcae470(_0x32fbe4._0x5977ac,_0x32fbe4._0x19510e,_0x32fbe4._0x586978,_0x32fbe4._0x4b08bc))/0x3+-parseInt(_0xcae470(_0x32fbe4._0xa039cb,_0x32fbe4._0x2f354d,0x756,_0x32fbe4._0x1886d6))/0x4*(-parseInt(_0xcae470(0x457,_0x32fbe4._0x3d0a1d,0x4f0,_0x32fbe4._0x536586))/0x5)+parseInt(_0xcae470(_0x32fbe4._0x448c21,0x4fd,0x53a,0x47b))/0x6+-parseInt(_0xcae470(_0x32fbe4._0x10354e,0x520,_0x32fbe4._0x30df19,0x583))/0x7+parseInt(_0xfd213e(-0xa3,-_0x32fbe4._0x259acf,_0x32fbe4._0x86c8a4,_0x32fbe4._0x317f9b))/0x8*(-parseInt(_0xcae470(0x400,0x50b,_0x32fbe4._0x1df30e,0x45e))/0x9);if(_0x209618===_0x1b2089)break;else _0x556324['push'](_0x556324['shift']());}catch(_0x2dd626){_0x556324['push'](_0x556324['shift']());}}}(_0x4008,0xd24b1));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-3OMYFJLN.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';function _0x4aa629(_0x1b5480,_0x3f7f9e,_0x115752,_0x54b16a){return _0x561a(_0x54b16a- -0x252,_0x3f7f9e);}import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x53c5d0 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x2f0acf(0x38f,0x453,0x28a,0x273),'.tsx':_0x2f0acf(0x211,0x2e2,0x10c,0x159),'.js':_0x2f0acf(0x218,0x14e,0x2ce,0x1ff),'.jsx':_0x4aa629(-0x1c6,0x75,-0x13d,-0xbf),'.mjs':_0x2f0acf(0x218,0x179,0x2d3,0x1fc),'.cjs':_0x2f0acf(0x218,0x115,0x243,0x10b),'.mts':_0x2f0acf(0x38f,0x45d,0x452,0x308),'.cts':_0x4aa629(-0x8c,-0x70,0x5d,0x52),'.json':'json','.jsonc':'jsonc'};function getLanguageId(_0x315478){const _0x8c9944={_0x113f16:0xdf,_0x56d2e5:0x11c,_0x140baa:0x241,_0x1e207c:0x1dd},_0x10121d={_0xdeef02:0x70};function _0x5b99ba(_0x4da6d4,_0x26fefd,_0x4edc01,_0x47a1f3){return _0x4aa629(_0x4da6d4-0xd8,_0x4edc01,_0x4edc01-_0x10121d._0xdeef02,_0x47a1f3-0x325);}return EXTENSION_TO_LANGUAGE[_0x53c5d0['extname'](_0x315478)[_0x5b99ba(_0x8c9944._0x113f16,_0x8c9944._0x56d2e5,_0x8c9944._0x140baa,_0x8c9944._0x1e207c)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x3981e9){const _0x1e2f7d={_0x74a2f7:0x1a1,_0x342f22:0x1e7},_0x192932={_0x5143b7:0x152};function _0x55f0a7(_0x3f8b8f,_0x163abd,_0x54470c,_0x51f07e){return _0x2f0acf(_0x54470c- -0x2b4,_0x163abd-0x14e,_0x163abd,_0x51f07e-_0x192932._0x5143b7);}return pathToFileURL(_0x3981e9)[_0x55f0a7(0x18b,0x263,_0x1e2f7d._0x74a2f7,_0x1e2f7d._0x342f22)]();}function textDocumentPosition(_0x2e379e){const _0x3f4fe0={_0x11e6cc:0x611,_0x36338e:0x4fc,_0x42cc4d:0x5c1,_0xfa2df5:0x274,_0x48b0bd:0x26a,_0xacaca6:0x461},_0x5151eb={_0x41fe95:0x1cb,_0x2c0cda:0x182},_0x10ba48={_0x3eecab:0x100,_0x1b6524:0x3a4};function _0x1a15ba(_0x414419,_0xef4e35,_0x40045b,_0x126b33){return _0x4aa629(_0x414419-0x15,_0x414419,_0x40045b-_0x10ba48._0x3eecab,_0xef4e35-_0x10ba48._0x1b6524);}function _0x4ee875(_0x3cb135,_0x3f0686,_0x278b1c,_0x2f1210){return _0x2f0acf(_0x3f0686-0x21b,_0x3f0686-_0x5151eb._0x41fe95,_0x2f1210,_0x2f1210-_0x5151eb._0x2c0cda);}return{'textDocument':{'uri':uriForPath(_0x2e379e[_0x4ee875(_0x3f4fe0._0x11e6cc,_0x3f4fe0._0x36338e,_0x3f4fe0._0x42cc4d,0x5d3)])},'position':{'line':_0x2e379e['line'],'character':_0x2e379e[_0x1a15ba(_0x3f4fe0._0xfa2df5,0x398,_0x3f4fe0._0x48b0bd,_0x3f4fe0._0xacaca6)]}};}function normalizeLocations(_0x3b1149){const _0x320568={_0x82bdc5:0x1c7,_0x3debae:0x17},_0x5b8992={_0x333fbf:0x484,_0x3e0a93:0x193};function _0x2472ce(_0x37f65f,_0x27877e,_0x75fa90,_0x91836a){return _0x2f0acf(_0x27877e- -_0x5b8992._0x333fbf,_0x27877e-_0x5b8992._0x3e0a93,_0x91836a,_0x91836a-0x6d);}if(!_0x3b1149)return[];return Array[_0x2472ce(-_0x320568._0x82bdc5,-0xc6,-_0x320568._0x3debae,-0xa)](_0x3b1149)?_0x3b1149:[_0x3b1149];}async function createLspClient(_0x413a99){const _0xa8d8a5={_0x5271db:0x174,_0x2a7d01:0x196,_0x39e737:0x328,_0x29f6f8:0xa1,_0x4439ff:0x7c,_0x50ec33:0x115,_0x4bc7df:0xf2,_0x2e2860:0x58,_0x5002b0:0xd0,_0x1a7693:0x217,_0x886087:0xa4,_0x157f4f:0x15f,_0x598c15:0x18a,_0x5a45a2:0x10d,_0x3dc501:0x2cd,_0x52a00c:0x279,_0x5fab3e:0x36f,_0x5bd313:0x100,_0xfce9ab:0x16b,_0x2d130d:0x22b,_0x5a60a9:0x21c,_0x34188b:0x33b,_0x2a0eb7:0x1c1,_0x16533c:0x3ce,_0x6de18c:0x2c2,_0x53d139:0x27d,_0x3467d5:0x6d,_0x135a71:0x177,_0x4f00ed:0x1c6},_0xace6d8={_0x75ea06:0x11b,_0x486834:0xb5,_0x38d2da:0x15c,_0x5d2fc7:0x1f8,_0x5057f0:0x1f1,_0x206447:0x393,_0x44c3da:0x3a5,_0x20fc0b:0x47f,_0xfcb1f4:0x382,_0x3c8cb6:0x445,_0x47f285:0x36c},_0x28a100={_0x4784d8:0x16,_0x477676:0x24},_0x3ef74b={_0x1c3ff0:0xbf,_0xc97df3:0xe3},_0x53459b={_0x539fb6:0x310,_0x4e32a5:0x2f3,_0x367ce1:0x1ad,_0x4955f7:0x4c9},_0x16e0e9={_0x580a51:0x5c4,_0x327c4a:0x530,_0x2f215e:0x51f,_0x1f2575:0x4c8},_0x3a451d={_0x3763e7:0x406,_0x43c2f0:0xd},_0x390737={_0xd8e36c:0x422,_0x51cbd1:0x53b,_0x1cc4de:0x520,_0x196bed:0x390,_0x415b81:0x417},_0x21dc5f={_0x25d7ae:0x2c4,_0xf2a1f1:0x16},_0x2327eb={_0x32464b:0x4c},_0x4daed6={_0x5778c5:0x349,_0x1a9de4:0x3aa,_0x203f7f:0x259,_0x400f32:0x3e4,_0x1829e9:0x41b},_0x4436fe={_0x48eb10:0x1a6,_0x40db99:0x14d},_0x39f73a={_0x2bd7fd:0xc1,_0x40c32e:0x11f,_0x53f79c:0x0,_0x10983b:0x13d,_0x37dc4c:0xff,_0x5a2b98:0x29},_0x1f9da3={_0x46dc2c:0xeb,_0x1969f7:0x25},_0x236a58={_0x209292:0x320,_0x1c0971:0x215,_0x59649d:0x2a4,_0x45b44e:0x122},_0x112a31={_0x1c6446:0x1f},_0x2faedd={_0x35b3a4:0x14,_0x8d9fe5:0xa8},_0xaf66a1={_0x184822:0xf7,_0x65f6b5:0x7c},_0x3c693d={_0x27ec11:0x363,_0x2afc4c:0x235,_0xa2a985:0x77},_0x27384d={_0x412584:0x56},_0x2c4dfc={_0x353411:0x25c,_0x222374:0x179,_0x30c5fb:0x32a,_0x11fc1b:0x36a,_0x9a044b:0x48a,_0x2d0975:0x3bd},_0xb3f3ae={_0x8d1218:0x154,_0x4ded7c:0x5f},_0x113014={_0x156040:0x2d9,_0x28fb5a:0x35f,_0x566180:0x3aa,_0x3137e9:0x19e,_0x210991:0x299},_0x5105de={_0x3e1c67:0x17,_0x3a4815:0xf5,_0x975925:0x1a1},_0x57115c={_0x5a839a:0x1b3},_0x5cf6c9={_0x1daab9:0x417,_0x1b8312:0x2b6,_0x55a604:0x289,_0x333560:0x3db,_0x4bc9b8:0x3de,_0x5510f5:0x3f7,_0x4584bb:0x434,_0x1b47c5:0x2d0,_0x57233f:0x440,_0x4e8d6f:0x262,_0x5df122:0x32c,_0xd1d8fc:0x505,_0x5d1331:0x522,_0x593a33:0x4db,_0x32d52f:0x436,_0x5adba6:0x34f},_0x223b81={_0x2f8968:0x123},_0x5d7a76={_0x47ee6a:0xbb},_0x9966de={_0x3e63a2:0x1a2,_0x5f2e8e:0x11e,_0x2d11af:0x1a3},_0xcb32e6=_0x413a99[_0x5f59a0(0x1ea,_0xa8d8a5._0x5271db,_0xa8d8a5._0x2a7d01,_0xa8d8a5._0x39e737)]['process'][_0x334034(0x118,0x9e,0x132,0x1c9)],_0x1c98ac=_0x413a99[_0x5f59a0(0x1ea,0x2c7,0x1be,0x233)][_0x334034(-0x33,0x74,_0xa8d8a5._0x29f6f8,-_0xa8d8a5._0x4439ff)]['stdin'];if(!_0xcb32e6||!_0x1c98ac)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');function _0x5f59a0(_0x2e0f8d,_0x2ce6b5,_0x4bdcf3,_0x4509f7){return _0x4aa629(_0x2e0f8d-_0x9966de._0x3e63a2,_0x4bdcf3,_0x4bdcf3-_0x9966de._0x5f2e8e,_0x2e0f8d-_0x9966de._0x2d11af);}const _0x1a0af3=createMessageConnection(new StreamMessageReader(_0xcb32e6),new StreamMessageWriter(_0x1c98ac)),_0x165de7=new Map();function _0x334034(_0x57f803,_0x2ce78a,_0x202b01,_0x1ea3c8){return _0x4aa629(_0x57f803-0x5c,_0x1ea3c8,_0x202b01-_0x5d7a76._0x47ee6a,_0x2ce78a-0x193);}const _0x1af466=new Map();let _0x1c733c=![];_0x1a0af3[_0x5f59a0(_0xa8d8a5._0x50ec33,0x132,0x165,0x139)](_0x5f59a0(_0xa8d8a5._0x4bc7df,-0x4b,0xcb,0x184),_0x56a327=>{const _0x1fadc5={_0xbb8a3c:0x9d};_0x165de7[_0x2ddc71(0x629,0x62c,_0x5cf6c9._0x1daab9,0x522)](_0x56a327[_0x1e4e64(0x357,_0x5cf6c9._0x1b8312,0x3f8,_0x5cf6c9._0x55a604)],_0x56a327['diagnostics']);const _0x34f03e=_0x1af466[_0x2ddc71(_0x5cf6c9._0x333560,_0x5cf6c9._0x4bc9b8,_0x5cf6c9._0x5510f5,_0x5cf6c9._0x4584bb)](_0x56a327[_0x2ddc71(_0x5cf6c9._0x1b47c5,_0x5cf6c9._0x57233f,_0x5cf6c9._0x4e8d6f,_0x5cf6c9._0x5df122)]);function _0x2ddc71(_0xe3a2e3,_0x41114a,_0x19f679,_0x3cb6b5){return _0x5f59a0(_0x3cb6b5-0x2ba,_0x41114a-_0x1fadc5._0xbb8a3c,_0x41114a,_0x3cb6b5-0x37);}if(!_0x34f03e)return;_0x1af466[_0x2ddc71(_0x5cf6c9._0xd1d8fc,_0x5cf6c9._0x5d1331,_0x5cf6c9._0x593a33,0x44a)](_0x56a327[_0x1e4e64(0x357,0x2e3,_0x5cf6c9._0x32d52f,_0x5cf6c9._0x5adba6)]);function _0x1e4e64(_0x52ced6,_0x3e4772,_0x1381c1,_0x34dc14){return _0x5f59a0(_0x52ced6-0x2e5,_0x3e4772-_0x223b81._0x2f8968,_0x3e4772,_0x34dc14-0x1);}for(const _0x25250d of _0x34f03e)_0x25250d();}),_0x1a0af3[_0x334034(_0xa8d8a5._0x2e2860,_0xa8d8a5._0x5002b0,_0xa8d8a5._0x1a7693,_0xa8d8a5._0x886087)]();const _0x6a9072=await _0x1a0af3['sendRequest'](_0x5f59a0(_0xa8d8a5._0x157f4f,_0xa8d8a5._0x598c15,0x25c,_0xa8d8a5._0x5a45a2),{'processId':process['pid'],'rootUri':uriForPath(_0x413a99[_0x334034(_0xa8d8a5._0x3dc501,0x2a0,0x363,0x24d)]),'workspaceFolders':[{'uri':uriForPath(_0x413a99[_0x334034(_0xa8d8a5._0x52a00c,0x2a0,_0xa8d8a5._0x5fab3e,0x28f)]),'name':_0x413a99['server']['id']}],'initializationOptions':_0x413a99['handle'][_0x334034(_0xa8d8a5._0x5bd313,0x68,0x182,_0xa8d8a5._0xfce9ab)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':[_0x5f59a0(0x21d,_0xa8d8a5._0x2d130d,0x2da,_0xa8d8a5._0x5a60a9),_0x5f59a0(0x2ac,_0xa8d8a5._0x34188b,_0xa8d8a5._0x2a0eb7,_0xa8d8a5._0x16533c)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x1a0af3[_0x5f59a0(_0xa8d8a5._0x6de18c,_0xa8d8a5._0x53d139,0x217,0x30f)](_0x5f59a0(_0xa8d8a5._0x3467d5,-0x5d,0x77,0x1b1),{});const _0x24b116={'serverId':_0x413a99[_0x5f59a0(_0xa8d8a5._0x135a71,0x11a,0xf1,_0xa8d8a5._0x4f00ed)]['id'],'root':_0x413a99['root'],'connection':_0x1a0af3,'diagnostics':_0x165de7,'capabilities':_0x6a9072['capabilities']??{},'notify':{async 'open'({path:_0x29d29a}){function _0x87d979(_0x10cb9f,_0x288570,_0x4642ca,_0x24b5b8){return _0x5f59a0(_0x10cb9f-0x37b,_0x288570-_0x57115c._0x5a839a,_0x288570,_0x24b5b8-0x24);}function _0x17701d(_0x3836d1,_0x357c3b,_0x25dc7b,_0x497de7){return _0x5f59a0(_0x3836d1-_0x5105de._0x3e1c67,_0x357c3b-_0x5105de._0x3a4815,_0x497de7,_0x497de7-_0x5105de._0x975925);}const _0xf0651b=await readFile(_0x29d29a,'utf8');_0x1a0af3[_0x17701d(_0x113014._0x156040,0x1b6,_0x113014._0x28fb5a,_0x113014._0x566180)]('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x29d29a),'languageId':getLanguageId(_0x29d29a)??_0x17701d(0x2c3,_0x113014._0x3137e9,0x248,_0x113014._0x210991),'version':0x1,'text':_0xf0651b}});},async 'change'({path:_0x2ec653,version:_0x1d78f5}){const _0x3b353e={_0x47a37a:0x8f,_0xe721b8:0x168},_0x4337e2=await readFile(_0x2ec653,_0x171511(_0x2c4dfc._0x353411,_0x2c4dfc._0x222374,0x17a,0x126));function _0x1f9e4(_0x45d0db,_0x2a411d,_0x320881,_0x4ae242){return _0x334034(_0x45d0db-0x169,_0x320881-_0xb3f3ae._0x8d1218,_0x320881-_0xb3f3ae._0x4ded7c,_0x2a411d);}function _0x171511(_0x2ad0a4,_0x385955,_0x321a6c,_0x5ae618){return _0x5f59a0(_0x321a6c-_0x3b353e._0x47a37a,_0x385955-0xe7,_0x5ae618,_0x5ae618-_0x3b353e._0xe721b8);}_0x1a0af3[_0x171511(_0x2c4dfc._0x30c5fb,_0x2c4dfc._0x11fc1b,0x351,0x288)](_0x1f9e4(_0x2c4dfc._0x9a044b,0x45c,0x3b2,_0x2c4dfc._0x2d0975),{'textDocument':{'uri':uriForPath(_0x2ec653),'version':_0x1d78f5},'contentChanges':[{'text':_0x4337e2}]});},async 'close'({path:_0x126b9e}){const _0x25fb31={_0x5d2d8a:0x2c6};function _0x5ef5a8(_0x2ca0a9,_0x443b45,_0x5cf575,_0xe0fa7c){return _0x5f59a0(_0x5cf575- -_0x25fb31._0x5d2d8a,_0x443b45-0x12b,_0x2ca0a9,_0xe0fa7c-0x79);}function _0x3b760a(_0x2e980d,_0x4b000a,_0x25261e,_0x129b83){return _0x334034(_0x2e980d-0x178,_0x2e980d- -0x41,_0x25261e-_0x27384d._0x412584,_0x4b000a);}_0x1a0af3[_0x3b760a(0x271,0x133,_0x3c693d._0x27ec11,_0x3c693d._0x2afc4c)](_0x5ef5a8(0xc,0x7b,-_0x3c693d._0xa2a985,-0x16f),{'textDocument':{'uri':uriForPath(_0x126b9e)}});}},'request':{async 'definition'(_0x577db2){function _0x524b66(_0x18d155,_0x54a6c7,_0x985f3b,_0x227341){return _0x5f59a0(_0x985f3b- -0xda,_0x54a6c7-_0xaf66a1._0x184822,_0x227341,_0x227341-_0xaf66a1._0x65f6b5);}return normalizeLocations(await _0x1a0af3['sendRequest'](_0x524b66(_0x2faedd._0x35b3a4,0x63,_0x2faedd._0x8d9fe5,0x18d),textDocumentPosition(_0x577db2)));},async 'references'(_0x6a3a8d){const _0x5a1c7f={_0xd08467:0x95,_0x79b0e3:0x187};function _0x5e0c38(_0x1b94d6,_0x36d36c,_0x419e57,_0x4fdfb7){return _0x5f59a0(_0x1b94d6- -_0x5a1c7f._0xd08467,_0x36d36c-0xc1,_0x36d36c,_0x4fdfb7-_0x5a1c7f._0x79b0e3);}function _0xb71b90(_0x50d44f,_0x4d313d,_0x320c05,_0x5ba86f){return _0x334034(_0x50d44f-_0x112a31._0x1c6446,_0x50d44f- -0x246,_0x320c05-0xc9,_0x4d313d);}return normalizeLocations(await _0x1a0af3[_0x5e0c38(0x1e2,0xdb,_0x236a58._0x209292,0xe7)](_0xb71b90(-_0x236a58._0x1c0971,-_0x236a58._0x59649d,-_0x236a58._0x45b44e,-0x31a),{...textDocumentPosition(_0x6a3a8d),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x2bd4f1){const _0x58f529={_0x3b311b:0x1e,_0x578298:0x59};function _0x2a77f2(_0x24e284,_0x504313,_0x3d46e9,_0x4891df){return _0x5f59a0(_0x24e284- -0x1b6,_0x504313-_0x1f9da3._0x46dc2c,_0x504313,_0x4891df-_0x1f9da3._0x1969f7);}function _0x52a266(_0x567281,_0x4da4da,_0x28eef4,_0x1c0f40){return _0x334034(_0x567281-_0x58f529._0x3b311b,_0x4da4da- -0x2f0,_0x28eef4-_0x58f529._0x578298,_0x28eef4);}return await _0x1a0af3[_0x2a77f2(_0x39f73a._0x2bd7fd,_0x39f73a._0x40c32e,_0x39f73a._0x53f79c,_0x39f73a._0x10983b)](_0x2a77f2(0xad,0x1a5,_0x39f73a._0x37dc4c,-_0x39f73a._0x5a2b98),textDocumentPosition(_0x2bd4f1))??null;},async 'documentSymbol'(_0x2dc604){const _0x34ce0c={_0x1c89b2:0x60};function _0x230acc(_0x8bc497,_0x42a56d,_0x3de021,_0x5b7ac6){return _0x334034(_0x8bc497-0x10a,_0x5b7ac6- -_0x34ce0c._0x1c89b2,_0x3de021-0x17e,_0x8bc497);}return await _0x1a0af3['sendRequest'](_0x230acc(_0x4436fe._0x48eb10,0x1ea,0x254,_0x4436fe._0x40db99),{'textDocument':{'uri':uriForPath(_0x2dc604)}})??[];},async 'workspaceSymbol'(_0x2f4eff){const _0x6961b7={_0x2fc837:0xa0},_0x494a62={_0x32ed08:0xe2};function _0x5c1b45(_0x5599aa,_0x2420cd,_0x29287a,_0x56950b){return _0x334034(_0x5599aa-0x119,_0x5599aa-_0x494a62._0x32ed08,_0x29287a-0x91,_0x56950b);}function _0x2688cf(_0x39b7f5,_0x353db7,_0x11ccd2,_0x26460e){return _0x334034(_0x39b7f5-_0x6961b7._0x2fc837,_0x11ccd2-0x298,_0x11ccd2-0x55,_0x353db7);}return await _0x1a0af3[_0x5c1b45(_0x4daed6._0x5778c5,0x248,_0x4daed6._0x1a9de4,_0x4daed6._0x203f7f)](_0x5c1b45(0x366,_0x4daed6._0x400f32,0x312,_0x4daed6._0x1829e9),{'query':_0x2f4eff})??[];},async 'implementation'(_0x48940f){function _0x53c4db(_0x33c4d1,_0x4d24f5,_0x4dea64,_0x1d2d2b){return _0x334034(_0x33c4d1-0xb7,_0x1d2d2b- -_0x2327eb._0x32464b,_0x4dea64-0xf8,_0x4dea64);}function _0x249f65(_0xc8d39,_0x55eb7a,_0x211463,_0x54b45f){return _0x5f59a0(_0x55eb7a-_0x21dc5f._0x25d7ae,_0x55eb7a-_0x21dc5f._0xf2a1f1,_0x211463,_0x54b45f-0x73);}return normalizeLocations(await _0x1a0af3[_0x249f65(_0x390737._0xd8e36c,_0x390737._0x51cbd1,_0x390737._0x1cc4de,0x52e)](_0x249f65(_0x390737._0x196bed,0x4bb,0x47e,_0x390737._0x415b81),textDocumentPosition(_0x48940f)));},async 'prepareCallHierarchy'(_0x118398){const _0x2ce9f2={_0x527db6:0x1ed,_0x466bc3:0x35d};function _0x4ddd73(_0x15b459,_0x490e3d,_0x226b44,_0x195095){return _0x334034(_0x15b459-_0x2ce9f2._0x527db6,_0x15b459-_0x2ce9f2._0x466bc3,_0x226b44-0x1e1,_0x226b44);}function _0x4d7f18(_0x2f2cd7,_0x19c5e1,_0x181154,_0x2d1678){return _0x5f59a0(_0x19c5e1-_0x3a451d._0x3763e7,_0x19c5e1-0x1dc,_0x2d1678,_0x2d1678-_0x3a451d._0x43c2f0);}return await _0x1a0af3[_0x4ddd73(_0x16e0e9._0x580a51,_0x16e0e9._0x327c4a,0x5d0,0x5a6)](_0x4ddd73(0x58a,0x672,_0x16e0e9._0x2f215e,_0x16e0e9._0x1f2575),textDocumentPosition(_0x118398))??[];},async 'incomingCalls'(_0x4663ca){return await _0x1a0af3['sendRequest']('callHierarchy/incomingCalls',{'item':_0x4663ca})??[];},async 'outgoingCalls'(_0xbd6333){const _0x9ab582={_0x2a5b38:0x8c},_0x29b797={_0x2a917a:0x116,_0x49d36f:0x27b};function _0xbdb3e(_0x1879f0,_0xab8a92,_0x241687,_0x2deec6){return _0x334034(_0x1879f0-_0x29b797._0x2a917a,_0x2deec6-_0x29b797._0x49d36f,_0x241687-0x3a,_0x1879f0);}function _0x4fa39f(_0x50776a,_0x2b8d26,_0x332da4,_0x3c2133){return _0x334034(_0x50776a-0x91,_0x2b8d26-_0x9ab582._0x2a5b38,_0x332da4-0x170,_0x50776a);}return await _0x1a0af3[_0x4fa39f(_0x53459b._0x539fb6,_0x53459b._0x4e32a5,_0x53459b._0x367ce1,0x1d6)](_0xbdb3e(0x389,0x47f,0x483,_0x53459b._0x4955f7),{'item':_0xbd6333})??[];}},'waitForDiagnostics'({path:_0x2645ab,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x3719cf={_0x41d2bc:0x53c},_0x33768d={_0x5619a3:0x98,_0x35c245:0x15b},_0x514016={_0x44e38d:0xee,_0x1fa2af:0x1a8,_0x139c27:0xb7,_0x3b15fb:0x18c,_0x8b5499:0x221},_0x45bc6b={_0x5aa0ef:0x1f7,_0x5bca56:0x40},_0x228c51=uriForPath(_0x2645ab);function _0x71af65(_0x7f815b,_0xddc9c,_0xa0c825,_0x4dd3a8){return _0x5f59a0(_0xa0c825- -_0x3ef74b._0x1c3ff0,_0xddc9c-0xa,_0x7f815b,_0x4dd3a8-_0x3ef74b._0xc97df3);}function _0x2c2b9c(_0x55f8f3,_0x4428db,_0x4690be,_0x1f6f51){return _0x5f59a0(_0x1f6f51- -_0x45bc6b._0x5aa0ef,_0x4428db-0x1b9,_0x55f8f3,_0x1f6f51-_0x45bc6b._0x5bca56);}if(_0x165de7[_0x2c2b9c(-_0x28a100._0x4784d8,-0x12a,-0xb9,-0x11d)](_0x228c51))return Promise[_0x2c2b9c(-0x95,-_0x28a100._0x477676,-0x216,-0x121)]();return new Promise(_0x282ea5=>{const _0x21b6d0={_0xeedd52:0x4f1},_0x3e68a9=setTimeout(()=>{function _0x368243(_0x8e7dcd,_0x1a2b67,_0x3e5062,_0x5b395d){return _0x561a(_0x5b395d- -0x270,_0x1a2b67);}const _0x22cf2b=_0x1af466['get'](_0x228c51);_0x22cf2b?.[_0x177368(-_0x514016._0x44e38d,-_0x514016._0x1fa2af,-_0x514016._0x139c27,0x0)](_0x72f1e8);function _0x177368(_0xdf2d91,_0x5c7bcf,_0x51420b,_0x16d823){return _0x561a(_0xdf2d91- -0x32d,_0x16d823);}if(_0x22cf2b?.[_0x177368(-0x202,-0x317,-_0x514016._0x3b15fb,-_0x514016._0x8b5499)]===0x0)_0x1af466['delete'](_0x228c51);_0x282ea5();},timeoutMs);function _0x1ebe98(_0x571d78,_0x2d54d2,_0x5689f5,_0x1907c1){return _0x2c2b9c(_0x1907c1,_0x2d54d2-0x74,_0x5689f5-0x1bb,_0x2d54d2-_0x21b6d0._0xeedd52);}const _0x72f1e8=()=>{clearTimeout(_0x3e68a9),_0x282ea5();},_0xe6f9a6=_0x1af466[_0x1ebe98(0x453,0x474,0x4fc,0x4cf)](_0x228c51)??new Set();function _0x53fed1(_0x41e171,_0x267b30,_0x1b2661,_0x20199b){return _0x71af65(_0x1b2661,_0x267b30-_0x33768d._0x5619a3,_0x20199b-0x2d3,_0x20199b-_0x33768d._0x35c245);}_0xe6f9a6[_0x1ebe98(_0x3719cf._0x41d2bc,0x440,0x418,0x370)](_0x72f1e8),_0x1af466['set'](_0x228c51,_0xe6f9a6);});},async 'shutdown'(){const _0x56e822={_0x2d9ce2:0x1ed},_0x120bc7={_0x410463:0x25b};if(_0x1c733c)return;function _0x241917(_0x4914b9,_0x31d39e,_0x33b41a,_0x1517d5){return _0x5f59a0(_0x4914b9-_0x120bc7._0x410463,_0x31d39e-0x1e3,_0x33b41a,_0x1517d5-0x187);}function _0x3333a4(_0x44d58b,_0x1d9af2,_0x7803b,_0x43c1a7){return _0x334034(_0x44d58b-0x1b6,_0x1d9af2- -0x1b2,_0x7803b-_0x56e822._0x2d9ce2,_0x7803b);}_0x1c733c=!![];try{await _0x1a0af3[_0x3333a4(_0xace6d8._0x75ea06,_0xace6d8._0x486834,0x1b6,0xb7)](_0x3333a4(-_0xace6d8._0x38d2da,-0x160,-_0xace6d8._0x5d2fc7,-_0xace6d8._0x5057f0),null),_0x1a0af3['sendNotification'](_0x241917(_0xace6d8._0x206447,_0xace6d8._0x44c3da,_0xace6d8._0x20fc0b,0x316));}catch{}finally{_0x1a0af3[_0x241917(0x391,0x336,_0xace6d8._0xfcb1f4,0x249)](),_0x413a99[_0x241917(_0xace6d8._0x3c8cb6,0x31e,0x543,0x44a)]['process'][_0x241917(0x301,0x3d2,0x437,_0xace6d8._0x47f285)]();}}};return _0x24b116;}import{spawn as _0x359d69}from'child_process';import{access as _0x29f37d}from'fs/promises';import _0x4f421d from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x1b4671 from'os';import _0x3ea862 from'path';import _0x26364b from'which';var installPromises=new Map();function sanitizePackageName(_0x1d4da1){const _0x311ef9={_0x56b18e:0x3b4,_0x5deb77:0x49f},_0x2229c3={_0xd5736d:0x1dd},_0x2f3355={_0x3bc9b6:0x235};function _0x33e4de(_0x32bc6f,_0x5f499e,_0x47f4b2,_0x21c187){return _0x4aa629(_0x32bc6f-0xb8,_0x47f4b2,_0x47f4b2-0x165,_0x32bc6f-_0x2f3355._0x3bc9b6);}function _0x13cb0b(_0x447027,_0x39fb4e,_0x2dc2c7,_0x5de3e9){return _0x2f0acf(_0x39fb4e-_0x2229c3._0xd5736d,_0x39fb4e-0x126,_0x447027,_0x5de3e9-0xf4);}return _0x1d4da1[_0x13cb0b(0x4f2,_0x311ef9._0x56b18e,0x277,0x330)](/^@/,'')[_0x13cb0b(_0x311ef9._0x5deb77,0x3b4,0x477,0x46c)](/[/]/g,'__');}function binaryNameForPlatform(_0x3cf928){const _0x8bedc7={_0x488695:0x195,_0x2d2be6:0x1ff,_0x2d6864:0x321,_0x983f28:0x1f8},_0x1ae881={_0xdef26e:0x183,_0x37c03f:0x267},_0x30d7a1={_0x25cf89:0x79,_0x76d36:0xb2};function _0xb839ca(_0xce8699,_0x58585a,_0x4f345a,_0x232cd0){return _0x2f0acf(_0x4f345a-_0x30d7a1._0x25cf89,_0x58585a-_0x30d7a1._0x76d36,_0xce8699,_0x232cd0-0x13d);}function _0x12b885(_0xe7677,_0x1ff5c1,_0x58d4b8,_0x4daf52){return _0x4aa629(_0xe7677-0x28,_0xe7677,_0x58d4b8-_0x1ae881._0xdef26e,_0x1ff5c1-_0x1ae881._0x37c03f);}return process[_0x12b885(0x10a,_0x8bedc7._0x488695,0x26b,0x1b6)]===_0x12b885(_0x8bedc7._0x2d2be6,_0x8bedc7._0x2d6864,_0x8bedc7._0x983f28,0x3bf)?_0x3cf928+_0x12b885(0xc4,0x123,0x192,0x118):_0x3cf928;}async function exists(_0x173fd6){try{return await access(_0x173fd6),!![];}catch{return![];}}function runNpmInstall(_0x365f53,_0x424459,_0x395ef1){const _0x2847a5={_0x5dbc4f:0x4f1,_0xc4adc8:0x4f6,_0x80acd9:0x541,_0xe6e260:0x4e1,_0x1aca92:0x538,_0xd70416:0x1db,_0x56fc50:0xf4,_0x172773:0xbd};return new Promise(_0xfaa0d5=>{const _0xb01bbc={_0x4dc8e0:0x37};function _0x336ea5(_0x3d3fba,_0x1ee151,_0x37111d,_0x2d94c0){return _0x561a(_0x2d94c0-0x2eb,_0x37111d);}function _0xa2b302(_0x1fd261,_0x1acc0a,_0x3a9f56,_0x131bed){return _0x561a(_0x1fd261- -_0xb01bbc._0x4dc8e0,_0x3a9f56);}const _0x3145c5=spawn(_0xa2b302(0xaa,-0x8,0x1b6,0xc7),[_0x336ea5(0x416,0x5e7,_0x2847a5._0x5dbc4f,_0x2847a5._0xc4adc8),'--prefix',_0x365f53,_0x424459],{'env':_0x395ef1,'stdio':_0x336ea5(_0x2847a5._0x80acd9,_0x2847a5._0xe6e260,0x4c5,_0x2847a5._0x1aca92)});_0x3145c5['on']('error',()=>_0xfaa0d5(![])),_0x3145c5['on'](_0xa2b302(_0x2847a5._0xd70416,0x259,_0x2847a5._0x56fc50,_0x2847a5._0x172773),_0x13b53d=>_0xfaa0d5(_0x13b53d===0x0));});}function shouldDisableLspDownload(_0x18e55f=process['env']){const _0x1cdde9={_0x4cc1ff:0x230,_0x389fd2:0x18b,_0x42c517:0x1e5,_0x34ab3e:0x553,_0x457db0:0x68f,_0x4c9756:0x637,_0x29f7a3:0x75e},_0x32569d={_0x1dbaa1:0x71},_0x2a917c={_0x2f89b5:0x132};function _0x1aa1f0(_0x4bc252,_0xe7938f,_0xaf0bee,_0x1c6186){return _0x2f0acf(_0xaf0bee- -0xac,_0xe7938f-0x71,_0x1c6186,_0x1c6186-_0x2a917c._0x2f89b5);}function _0x186602(_0x18be13,_0x46e98c,_0x39a5b0,_0x481b8c){return _0x2f0acf(_0x46e98c-0x2b5,_0x46e98c-_0x32569d._0x1dbaa1,_0x39a5b0,_0x481b8c-0x4a);}const _0x2ea616=_0x18e55f[_0x1aa1f0(_0x1cdde9._0x4cc1ff,_0x1cdde9._0x389fd2,0x1e4,_0x1cdde9._0x42c517)]?.[_0x186602(0x429,0x4aa,_0x1cdde9._0x34ab3e,0x4c9)]();return _0x2ea616===_0x186602(0x6f9,_0x1cdde9._0x457db0,_0x1cdde9._0x4c9756,0x682)||_0x2ea616==='1'||_0x2ea616===_0x186602(0x706,0x655,_0x1cdde9._0x29f7a3,0x707)||_0x2ea616==='on';}function getLspPackageDir(_0x413f41){const _0x5c5d54={_0x4bb7a0:0x415,_0x42eb52:0x2be,_0x1e2e57:0x2cc,_0x2436c7:0x28f,_0x529788:0x35e,_0x1686bb:0x386},_0xd51628={_0x3d1865:0xec,_0x13065c:0x93};function _0x508d40(_0x59d96f,_0xe050e6,_0x1c3478,_0x47695d){return _0x4aa629(_0x59d96f-_0xd51628._0x3d1865,_0x59d96f,_0x1c3478-_0xd51628._0x13065c,_0x1c3478-0x35d);}function _0x1ee4f6(_0x2af965,_0x7bebec,_0xc0f43f,_0x3e7621){return _0x4aa629(_0x2af965-0xf,_0x2af965,_0xc0f43f-0x94,_0xc0f43f-0x1d4);}return _0x3ea862[_0x508d40(_0x5c5d54._0x4bb7a0,0x264,0x2e9,0x247)](_0x1b4671['homedir'](),'.nuvin',_0x508d40(_0x5c5d54._0x42eb52,_0x5c5d54._0x1e2e57,_0x5c5d54._0x2436c7,_0x5c5d54._0x529788),_0x508d40(0x3fb,_0x5c5d54._0x1686bb,0x3ec,0x2a4),sanitizePackageName(_0x413f41));}function getLspBinDir(_0x51b175){const _0x3c7661={_0x1bfdfc:0x5a,_0xdb6922:0x156,_0x4391a3:0x104,_0x14a8c7:0x1e3},_0x17c493={_0x5f15bb:0x115,_0x5d6082:0x1ec},_0x2af81c={_0x434773:0x17};function _0x218da9(_0x50d6c4,_0x6748c3,_0x1b6b6f,_0x5ad075){return _0x4aa629(_0x50d6c4-0x1eb,_0x5ad075,_0x1b6b6f-_0x2af81c._0x434773,_0x6748c3-0x118);}function _0x3082df(_0x283fa0,_0x3f65cf,_0x37ee65,_0x1d753d){return _0x2f0acf(_0x1d753d- -0x47c,_0x3f65cf-_0x17c493._0x5f15bb,_0x3f65cf,_0x1d753d-_0x17c493._0x5d6082);}return _0x3ea862['join'](getLspPackageDir(_0x51b175),_0x3082df(-_0x3c7661._0x1bfdfc,-0xe0,-_0x3c7661._0xdb6922,-0x114),_0x3082df(-_0x3c7661._0x4391a3,-0xc1,-0x2f6,-_0x3c7661._0x14a8c7));}async function findPackageBinary(_0x42f7fd,_0x1c19bc){const _0x113742={_0x536d29:0xc0,_0x389317:0x1ad,_0x4bc634:0x46c,_0x51aace:0x40d,_0x27c68b:0x2d9,_0x3dd0bd:0x28,_0x247644:0xf2},_0x3cd77b={_0x17b895:0x44,_0x476e48:0x3e2},_0x4b3eba={_0x5468b:0xe0};function _0x53a94b(_0x35bc23,_0x166e10,_0x17961a,_0x2da33e){return _0x2f0acf(_0x166e10- -0x25e,_0x166e10-0xdb,_0x35bc23,_0x2da33e-_0x4b3eba._0x5468b);}function _0x35c89(_0x27aab4,_0x3e20b0,_0x142ae1,_0x5b43ce){return _0x4aa629(_0x27aab4-0xca,_0x27aab4,_0x142ae1-_0x3cd77b._0x17b895,_0x3e20b0-_0x3cd77b._0x476e48);}let _0x3d1cd2=_0x3ea862['resolve'](_0x1c19bc);const _0x226ea8=binaryNameForPlatform(_0x42f7fd);while(!![]){const _0xa3facd=_0x3ea862[_0x53a94b(_0x113742._0x536d29,0x6b,-0xb9,_0x113742._0x389317)](_0x3d1cd2,_0x35c89(_0x113742._0x4bc634,_0x113742._0x51aace,0x4f2,_0x113742._0x27c68b),_0x53a94b(0xe5,0x3b,_0x113742._0x3dd0bd,-_0x113742._0x247644),_0x226ea8);if(await exists(_0xa3facd))return _0xa3facd;const _0x3d64ef=_0x3ea862['dirname'](_0x3d1cd2);if(_0x3d64ef===_0x3d1cd2)return void 0x0;_0x3d1cd2=_0x3d64ef;}}async function findPathBinary(_0x5c7f47,_0x30d71e){const _0x205014={_0x1c8170:0x3f9,_0x4549ab:0x4f4,_0x3b2c79:0x46a,_0x3c8b92:0x48a,_0x20f0b1:0x43a,_0x1544bd:0x3ca,_0xa99512:0x452,_0x5cd29c:0x32d,_0x26f067:0x444,_0x568728:0x452,_0x15e518:0x2ea,_0x111353:0x42f},_0x1ceb9f={_0x515b0c:0x1d},_0x55d30c=getLspBinDir(_0x30d71e);function _0x429a65(_0x502175,_0x366bb0,_0x174be0,_0x599306){return _0x4aa629(_0x502175-0x1bc,_0x599306,_0x174be0-_0x1ceb9f._0x515b0c,_0x174be0- -0x173);}function _0x272732(_0x507250,_0x138fe4,_0x44c5d7,_0x3657c6){return _0x2f0acf(_0x44c5d7-0x64,_0x138fe4-0x8e,_0x138fe4,_0x3657c6-0x1dc);}const _0x5ef89b=[_0x55d30c,process[_0x272732(0x430,0x2c2,_0x205014._0x1c8170,_0x205014._0x4549ab)]['PATH']][_0x272732(_0x205014._0x3b2c79,_0x205014._0x3c8b92,_0x205014._0x20f0b1,0x305)](Boolean)[_0x272732(_0x205014._0x1544bd,_0x205014._0xa99512,_0x205014._0x5cd29c,_0x205014._0x26f067)](_0x3ea862[_0x272732(_0x205014._0x568728,_0x205014._0x15e518,0x41a,_0x205014._0x111353)]);try{return await _0x26364b(_0x5c7f47,{'path':_0x5ef89b});}catch{return void 0x0;}}async function resolvePackageBinary(_0x37ee15){const _0x3e7dfc={_0x4032db:0x46,_0x3889de:0x45,_0x18cfd0:0xba,_0x444017:0x61,_0x47f0ca:0x123,_0x32cc5d:0x241,_0x23aa3c:0x8f,_0x1b7ec5:0x17d,_0xb5ab5d:0x15,_0xcf2e7c:0x113,_0x5a3435:0x10b,_0xb8782d:0x220,_0x42a01b:0x201,_0x43a169:0x48,_0x46e6c1:0x92,_0x41e9be:0x1d3,_0x39a6bf:0xc1,_0x30185f:0x180,_0x4055c9:0xd5},_0x99e721={_0x2abe45:0x2bb,_0x2b8a54:0x26d,_0x4d092c:0x2ec},_0x1c91c8={_0x34ab5a:0x1ec,_0x382707:0x1},_0x151be0={_0x20b395:0x188,_0x49f0ea:0x71},_0x51dac6=_0x37ee15[_0x57a2cb(-_0x3e7dfc._0x4032db,_0x3e7dfc._0x3889de,0x6d,-_0x3e7dfc._0x18cfd0)]??_0x37ee15['packageName'],_0xf8c65a=await findPackageBinary(_0x51dac6,_0x37ee15[_0x57a2cb(_0x3e7dfc._0x444017,0x60,_0x3e7dfc._0x47f0ca,_0x3e7dfc._0x32cc5d)]);if(_0xf8c65a)return _0xf8c65a;function _0x57a2cb(_0x224969,_0x23cf0c,_0x3ec766,_0x34927c){return _0x4aa629(_0x224969-0x163,_0x224969,_0x3ec766-0x42,_0x3ec766-0xbb);}const _0x3169cd=await findPathBinary(_0x51dac6,_0x37ee15[_0x57a2cb(_0x3e7dfc._0x23aa3c,0x6,0x107,_0x3e7dfc._0x1b7ec5)]);function _0x20c3cb(_0x35fb5f,_0x3f592b,_0x1ae37d,_0x3593ce){return _0x2f0acf(_0x1ae37d- -_0x151be0._0x20b395,_0x3f592b-0x74,_0x35fb5f,_0x3593ce-_0x151be0._0x49f0ea);}if(_0x3169cd)return _0x3169cd;const _0x6c2b4d=_0x37ee15['env']??process[_0x57a2cb(0x13e,_0x3e7dfc._0xb5ab5d,_0x3e7dfc._0xcf2e7c,0x3a)];if(shouldDisableLspDownload(_0x6c2b4d))return void 0x0;const _0x1f2956=getLspPackageDir(_0x37ee15[_0x20c3cb(_0x3e7dfc._0x5a3435,_0x3e7dfc._0xb8782d,_0x3e7dfc._0x42a01b,0x28b)]),_0x3f75db=_0x37ee15['packageName']+':'+_0x51dac6;let _0x10db84=installPromises[_0x57a2cb(0x90,_0x3e7dfc._0x43a169,_0x3e7dfc._0x46e6c1,_0x3e7dfc._0x41e9be)](_0x3f75db);!_0x10db84&&(_0x10db84=((async()=>{function _0x179bd4(_0x52ec9d,_0x49ebf2,_0x41de6b,_0xcc6f21){return _0x57a2cb(_0x49ebf2,_0x49ebf2-0x17d,_0xcc6f21-0x15d,_0xcc6f21-0x1df);}await mkdir(_0x1f2956,{'recursive':!![]});const _0x20aec0=await runNpmInstall(_0x1f2956,_0x37ee15[_0x51ddbf(_0x99e721._0x2abe45,_0x99e721._0x2b8a54,_0x99e721._0x4d092c,0x2ed)],_0x6c2b4d);function _0x51ddbf(_0x1760b1,_0x4b0bd4,_0x2583fc,_0x55788d){return _0x20c3cb(_0x55788d,_0x4b0bd4-_0x1c91c8._0x34ab5a,_0x1760b1-0xba,_0x55788d-_0x1c91c8._0x382707);}if(!_0x20aec0)return void 0x0;const _0x1ad892=_0x3ea862['join'](getLspBinDir(_0x37ee15[_0x179bd4(0x32a,0x370,0x136,0x264)]),binaryNameForPlatform(_0x51dac6));return await exists(_0x1ad892)?_0x1ad892:void 0x0;})()),installPromises[_0x57a2cb(0x26e,_0x3e7dfc._0x39a6bf,_0x3e7dfc._0x30185f,_0x3e7dfc._0x4055c9)](_0x3f75db,_0x10db84));try{return await _0x10db84;}catch{return void 0x0;}finally{installPromises['delete'](_0x3f75db);}}var TYPESCRIPT_EXTENSIONS=[_0x4aa629(0x22,-0x10e,-0x201,-0x117),_0x2f0acf(0x289,0x143,0x34b,0x297),_0x4aa629(-0x1ed,-0x36,-0xf1,-0x122),_0x4aa629(-0xf9,-0x26a,-0x10b,-0x16f),'.mjs','.cjs',_0x4aa629(-0x81,-0x96,-0xe1,-0x2f),'.cts'],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x4aa629(-0xd0,0xc5,-0x17,-0x26),'.jsonc'],TYPESCRIPT_ROOT_MARKERS=['package-lock.json',_0x2f0acf(0x3c9,0x3e0,0x4af,0x3b9),_0x4aa629(0x1e0,0xea,-0x5a,0xb1),'pnpm-lock.yaml',_0x2f0acf(0x2c5,0x3fb,0x398,0x256),_0x4aa629(0x15,-0xd9,-0x19a,-0xa2),_0x2f0acf(0x2f5,0x40c,0x32c,0x404),'package.json'],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc',_0x2f0acf(0x236,0x149,0x350,0x1b7),_0x4aa629(0x168,-0xb3,0xee,0x8c),'bun.lock',_0x4aa629(0x167,0x1c3,0x1b9,0xa8),_0x2f0acf(0x2c5,0x370,0x2e3,0x239),_0x2f0acf(0x271,0x1c0,0x2d4,0x30c)];async function exists2(_0x437ab3){try{return await _0x29f37d(_0x437ab3),!![];}catch{return![];}}async function findUp(_0x4279af,_0x5a0deb){const _0x458bbf={_0x377578:0xe5,_0x8a792d:0x27c,_0x4fa631:0x656,_0x1aa659:0x6b4,_0x2cce26:0x616},_0x1775f7={_0x187280:0x11,_0x285464:0x1a6},_0x2faf2a={_0x5d13a5:0xb6,_0xa8d8e0:0xa9};let _0x12960a=_0x4f421d[_0x36341f(-_0x458bbf._0x377578,-0x74,-_0x458bbf._0x8a792d,-0x1a4)](_0x4279af);function _0x4a3615(_0x56d287,_0x2f0919,_0x442765,_0x4ea9c6){return _0x4aa629(_0x56d287-_0x2faf2a._0x5d13a5,_0x442765,_0x442765-_0x2faf2a._0xa8d8e0,_0x4ea9c6-0x5cd);}function _0x36341f(_0x38652a,_0xf0754f,_0x2e5f80,_0x3e7291){return _0x2f0acf(_0x3e7291- -0x414,_0xf0754f-_0x1775f7._0x187280,_0x38652a,_0x3e7291-_0x1775f7._0x285464);}const _0x4e41d3=_0x4f421d['extname'](_0x12960a);if(_0x4e41d3)_0x12960a=_0x4f421d['dirname'](_0x12960a);while(!![]){for(const _0xd1f959 of _0x5a0deb){if(await exists2(_0x4f421d[_0x4a3615(0x441,0x538,0x60f,0x559)](_0x12960a,_0xd1f959)))return _0x12960a;}const _0x5bdca5=_0x4f421d[_0x4a3615(_0x458bbf._0x4fa631,0x5f8,_0x458bbf._0x1aa659,_0x458bbf._0x2cce26)](_0x12960a);if(_0x5bdca5===_0x12960a)return void 0x0;_0x12960a=_0x5bdca5;}}async function hasDenoRoot(_0x1e5b48){const _0x162456={_0x1a460d:0x21,_0x54b709:0x5a,_0x4395e2:0xdd,_0x22997f:0x25e,_0x5f38e1:0x17,_0x5ece5e:0xb5,_0x43e53b:0x1d5},_0x49e5fc={_0x2dd39d:0x3c8,_0x56e28:0x1e6},_0x5a47ff={_0x2a5b52:0x182,_0x442888:0x1ca,_0x1b5ec6:0xd1};function _0x35fce2(_0x58c557,_0x3075da,_0x4275a8,_0x2f580d){return _0x2f0acf(_0x4275a8- -_0x5a47ff._0x2a5b52,_0x3075da-_0x5a47ff._0x442888,_0x58c557,_0x2f580d-_0x5a47ff._0x1b5ec6);}function _0x4354ab(_0x587b7e,_0x20f8c1,_0xe8f109,_0x19ed4d){return _0x2f0acf(_0x587b7e- -_0x49e5fc._0x2dd39d,_0x20f8c1-0x1ec,_0x20f8c1,_0x19ed4d-_0x49e5fc._0x56e28);}return await exists2(_0x4f421d[_0x35fce2(_0x162456._0x1a460d,0x36,0x147,_0x162456._0x54b709)](_0x1e5b48,_0x4354ab(-0x1b3,-0x2c2,-_0x162456._0x4395e2,-_0x162456._0x22997f)))||await exists2(_0x4f421d[_0x35fce2(_0x162456._0x5f38e1,_0x162456._0x5ece5e,0x147,_0x162456._0x43e53b)](_0x1e5b48,'deno.jsonc'));}async function resolveTsserverPath(_0x325be6){const _0x4961e0={_0x357e2a:0xad,_0x133a9d:0x443,_0x3888ec:0x320,_0x36d6e8:0x350,_0x30752b:0x1bd,_0x460625:0x1ca,_0x3c1485:0x41c,_0x3eb32b:0x506,_0x37118e:0x4f0,_0x4819dc:0x3f2,_0x35327f:0x417,_0x195049:0x20c,_0x5e649f:0x22d,_0x513e6b:0x1cc,_0x348cd1:0x48f,_0x50f279:0x60a,_0x303b89:0x449,_0x2ec9f5:0x666,_0xebcba7:0x578,_0x23af7e:0x1ca},_0x30214f={_0x47c09d:0x4b4},_0x5e6788={_0x2c57b4:0x240};function _0x235fd0(_0x4cd94b,_0x275b63,_0x14ed23,_0x58a852){return _0x4aa629(_0x4cd94b-0x6d,_0x4cd94b,_0x14ed23-0xc7,_0x58a852-_0x5e6788._0x2c57b4);}let _0x4aa647=_0x4f421d['resolve'](_0x325be6);while(!![]){const _0x5349e2=_0x4f421d[_0x235fd0(_0x4961e0._0x357e2a,0x10a,0x265,0x1cc)](_0x4aa647,'node_modules',_0x5abe2d(0x630,_0x4961e0._0x133a9d,0x506,0x3f1),_0x235fd0(_0x4961e0._0x3888ec,0x345,0x34d,_0x4961e0._0x36d6e8),_0x235fd0(_0x4961e0._0x30752b,0x302,0x276,_0x4961e0._0x460625));if(await exists2(_0x5349e2))return _0x5349e2;const _0x340c54=_0x4f421d['dirname'](_0x4aa647);if(_0x340c54===_0x4aa647)break;_0x4aa647=_0x340c54;}function _0x5abe2d(_0x28c5d2,_0x12f8bc,_0x5a0938,_0x547afe){return _0x4aa629(_0x28c5d2-0xa1,_0x547afe,_0x5a0938-0xa1,_0x5a0938-_0x30214f._0x47c09d);}const _0x40fe57=getLspPackageDir('typescript'),_0xa323fc=await resolvePackageBinary({'packageName':_0x5abe2d(0x578,_0x4961e0._0x3c1485,_0x4961e0._0x3eb32b,_0x4961e0._0x37118e),'binaryName':_0x5abe2d(_0x4961e0._0x4819dc,0x45c,0x42b,_0x4961e0._0x35327f),'startDir':_0x325be6});if(!_0xa323fc)return void 0x0;const _0x114a38=_0x4f421d[_0x235fd0(_0x4961e0._0x195049,_0x4961e0._0x5e649f,0x1e2,_0x4961e0._0x513e6b)](_0x40fe57,_0x5abe2d(_0x4961e0._0x348cd1,_0x4961e0._0x50f279,0x4df,_0x4961e0._0x303b89),'typescript',_0x5abe2d(_0x4961e0._0x2ec9f5,_0x4961e0._0xebcba7,0x5c4,0x4db),_0x235fd0(0x30c,0x15c,0x210,_0x4961e0._0x23af7e));return await exists2(_0x114a38)?_0x114a38:void 0x0;}var TypeScriptServer={'id':_0x4aa629(-0xc3,-0x60,0x198,0x52),'name':'TypeScript\x20Language\x20Server','extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x3b7d5c){const _0x49f8ed=await findUp(_0x3b7d5c,TYPESCRIPT_ROOT_MARKERS);if(!_0x49f8ed)return void 0x0;return await hasDenoRoot(_0x49f8ed)?void 0x0:_0x49f8ed;},async 'spawn'(_0xe60075){const _0x430b56={_0x213ec8:0x70,_0x9b8a22:0x16,_0x2be164:0x6c,_0x1d154d:0x2da,_0x538b91:0x1f1},_0x4818c1={_0x34b12b:0x17,_0x5be66a:0x11b},_0x9f8150={_0x4d0019:0x13d,_0x5dff69:0x91,_0x3a47e3:0x2c9},_0x232e27=await resolveTsserverPath(_0xe60075);if(!_0x232e27)return void 0x0;function _0xde4554(_0x163adb,_0x301af0,_0x12cf81,_0x4de6e9){return _0x4aa629(_0x163adb-_0x9f8150._0x4d0019,_0x12cf81,_0x12cf81-_0x9f8150._0x5dff69,_0x301af0-_0x9f8150._0x3a47e3);}function _0x352d03(_0x1598f9,_0x4fd123,_0x12c489,_0x18b559){return _0x4aa629(_0x1598f9-0xce,_0x4fd123,_0x12c489-_0x4818c1._0x34b12b,_0x18b559- -_0x4818c1._0x5be66a);}const _0x354e38=await resolvePackageBinary({'packageName':'typescript-language-server','binaryName':'typescript-language-server','startDir':_0xe60075});if(!_0x354e38)return void 0x0;return{'process':_0x359d69(_0x354e38,[_0x352d03(_0x430b56._0x213ec8,-0x100,_0x430b56._0x9b8a22,-_0x430b56._0x2be164)],{'cwd':_0xe60075,'stdio':_0xde4554(_0x430b56._0x1d154d,_0x430b56._0x538b91,0xf4,0x211)}),'initialization':{'tsserver':{'path':_0x232e27}}};}},BiomeServer={'id':_0x2f0acf(0x454,0x39a,0x535,0x3e6),'name':_0x2f0acf(0x34b,0x45a,0x34c,0x2c1),'extensions':BIOME_EXTENSIONS,async 'root'(_0x23ffba){return findUp(_0x23ffba,BIOME_ROOT_MARKERS);},async 'spawn'(_0x2a242b){const _0x5dfd54={_0x3aa046:0x749,_0x54d67d:0x57f,_0x591e57:0x658,_0x88f628:0x5f2,_0x4de363:0x63,_0x558cb1:0xcc,_0x555e26:0x16f},_0x418fcc={_0x191484:0x217,_0x191d95:0x9d},_0x4f014f={_0x293133:0xd4,_0x420c69:0x1d5},_0x172a98=await findPackageBinary(_0xa6a569(0x66b,0x783,_0x5dfd54._0x3aa046,0x6d8),_0x2a242b)??await resolvePackageBinary({'packageName':'@biomejs/biome','binaryName':_0xa6a569(0x66b,_0x5dfd54._0x54d67d,_0x5dfd54._0x591e57,_0x5dfd54._0x88f628),'startDir':_0x2a242b});if(!_0x172a98)return void 0x0;function _0x3a5fd0(_0x512bc4,_0x480f53,_0x1d9195,_0x26efaf){return _0x4aa629(_0x512bc4-_0x4f014f._0x293133,_0x26efaf,_0x1d9195-_0x4f014f._0x420c69,_0x1d9195-0x9f);}function _0xa6a569(_0x6386fe,_0x326f5f,_0x977914,_0x3aa0f8){return _0x2f0acf(_0x6386fe-_0x418fcc._0x191484,_0x326f5f-_0x418fcc._0x191d95,_0x977914,_0x3aa0f8-0x15c);}return{'process':_0x359d69(_0x172a98,[_0x3a5fd0(-0x1e2,-_0x5dfd54._0x4de363,-0xc9,-0x9b),_0x3a5fd0(0x1c5,_0x5dfd54._0x558cb1,0x14e,_0x5dfd54._0x555e26)],{'cwd':_0x2a242b,'stdio':'pipe'})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x5a4c13){const _0x428be6={_0x262d20:0x3eb,_0x13de99:0x525,_0x3ea8ec:0x3a8,_0x3ac6b5:0x66d,_0xf38f40:0x55a,_0x3b6317:0x50f},_0x3ace3a={_0x35649f:0x7a,_0x2d428c:0x7},_0x1d956a={_0x598e1d:0x60};function _0x5d00bd(_0x4816a4,_0x12830c,_0x4c24a1,_0x49c0c3){return _0x4aa629(_0x4816a4-0x6,_0x4816a4,_0x4c24a1-_0x1d956a._0x598e1d,_0x49c0c3-0x508);}function _0x387580(_0xae461e,_0xa2d744,_0x4d77dd,_0x543d94){return _0x4aa629(_0xae461e-_0x3ace3a._0x35649f,_0xae461e,_0x4d77dd-_0x3ace3a._0x2d428c,_0xa2d744-0x606);}const _0x49e53c=_0x4f421d[_0x387580(_0x428be6._0x262d20,0x49d,_0x428be6._0x13de99,_0x428be6._0x3ea8ec)](_0x5a4c13)[_0x5d00bd(0x345,0x34e,0x448,0x3c0)]();return BUILTIN_LSP_SERVERS[_0x5d00bd(_0x428be6._0x3ac6b5,_0x428be6._0xf38f40,_0x428be6._0x3b6317,0x5a1)](_0x21f18b=>_0x21f18b[_0x5d00bd(0x4c0,0x5c6,0x601,0x5e3)][_0x5d00bd(0x365,0x4a0,0x367,0x489)](_0x49e53c));}function stateKey(_0x21685b,_0xef02c){return _0xef02c+':'+_0x21685b['id'];}function diagnosticsKeyToPath(_0x1b897a){const _0x223048={_0xd5c510:0x3e9,_0x334c23:0x475,_0xd29266:0x2d4,_0x3f38d4:0x3a1},_0x407695={_0x487bdf:0x420};function _0x828b0c(_0x1f83b6,_0xad4b50,_0x75e808,_0x48ea40){return _0x4aa629(_0x1f83b6-0x14d,_0xad4b50,_0x75e808-0x1c4,_0x1f83b6-_0x407695._0x487bdf);}if(!_0x1b897a[_0x828b0c(_0x223048._0xd5c510,_0x223048._0x334c23,_0x223048._0xd29266,_0x223048._0x3f38d4)]('file://'))return _0x1b897a;return fileURLToPath(_0x1b897a);}function nextFileVersion(_0x1340c5,_0x5729cf){const _0x20684a={_0x31f5a7:0x3bf,_0x391205:0x4fb,_0x336531:0x51f,_0x375609:0x5e2,_0x3dda44:0x50b,_0x148057:0x40a,_0x3b6052:0x64d,_0x568a9f:0x5f9,_0x16a3e7:0x574},_0x56f6b6={_0x54b951:0x3ec},_0x52fd43={_0x5935a5:0x1f7};function _0x498bb8(_0x3da0f6,_0x24f5a4,_0x5f0de2,_0x190f99){return _0x2f0acf(_0x5f0de2-_0x52fd43._0x5935a5,_0x24f5a4-0x18c,_0x3da0f6,_0x190f99-0x7e);}function _0x45db43(_0x2ae733,_0x43a567,_0x2f43db,_0xbca7a7){return _0x4aa629(_0x2ae733-0x12,_0x2ae733,_0x2f43db-0x1c7,_0x43a567-_0x56f6b6._0x54b951);}const _0x452afc=(_0x1340c5[_0x45db43(0x3ef,_0x20684a._0x31f5a7,0x352,_0x20684a._0x391205)][_0x498bb8(_0x20684a._0x336531,_0x20684a._0x375609,_0x20684a._0x3dda44,_0x20684a._0x148057)](_0x5729cf)??0x1)+0x1;return _0x1340c5[_0x45db43(0x3bb,0x3bf,0x444,0x414)][_0x498bb8(_0x20684a._0x3b6052,0x6b1,_0x20684a._0x568a9f,_0x20684a._0x16a3e7)](_0x5729cf,_0x452afc),_0x452afc;}async function collectClientResults(_0x48ef17){const _0x32fc2a={_0x58a3ee:0x54,_0x2b8834:0x1d4},_0x469ce0={_0x29fb25:0x352};function _0x252153(_0x31a612,_0x378b61,_0x77414d,_0x18582b){return _0x2f0acf(_0x378b61- -_0x469ce0._0x29fb25,_0x378b61-0xe7,_0x18582b,_0x18582b-0x16);}function _0x1fd5d2(_0x217d77,_0x246205,_0x3987d1,_0x58be34){return _0x2f0acf(_0x217d77-0x94,_0x246205-_0x32fc2a._0x58a3ee,_0x246205,_0x58be34-_0x32fc2a._0x2b8834);}const _0x48a839=await Promise['allSettled'](_0x48ef17);return _0x48a839['flatMap'](_0x50766f=>_0x50766f[_0x1fd5d2(0x3ed,0x2f6,0x410,0x526)]===_0x1fd5d2(0x31a,0x40d,0x32c,0x458)?_0x50766f['value']:[]);}function createLspService(_0x4917a1={}){const _0x1f2cfa={_0x335d76:0x245,_0x4d15a5:0x244},_0x5586c5={_0x4c10cb:0x489,_0x397e9e:0x52c,_0xb30a5e:0x422,_0x44c6d1:0x282,_0x22fd9d:0x3ee,_0x4dab44:0x4cd,_0x1555ae:0x494,_0x551912:0x3a1,_0x3ac90b:0x494,_0x5737f8:0x4d0,_0x346612:0x43c,_0x4d0757:0x11c,_0x202926:0x18d,_0x39ea0d:0x4ca,_0x42a87f:0x48d,_0x4838e4:0x44f,_0x1ccbca:0x5aa},_0x73af96={_0x942055:0x21},_0x296659={_0x48d1c2:0xd},_0x4da914={_0x3e53e4:0x44a},_0x2547ab={_0x3d7432:0x65a,_0x1e5943:0x51f,_0x2d449f:0x120,_0x37bb8d:0x150,_0x3a552e:0x20d},_0x29ac73={_0x573214:0x175},_0x580e7b={_0x46787b:0x474,_0x43f461:0x2ea,_0x10aad0:0x3bf,_0x36794b:0x45c,_0x51e49c:0x408,_0x1541da:0x31d},_0x5ca25f={_0x49e6b6:0x320},_0x3f552f={_0x710415:0x13e,_0x342945:0xe7},_0x27c9c9={_0x43ff82:0x30,_0x1658d5:0x43,_0x52dd6e:0x1ad},_0x589095={_0x4a704c:0xe4},_0x27f51a={_0x1bf338:0x2ae},_0x1a0896={_0xc37941:0x209},_0x411c1e={_0x3f1dc5:0x293},_0x272e29={_0x183cbe:0x44,_0x45534f:0x42,_0x115f3b:0xd9},_0x4b108b={_0x299505:0x13a,_0x39bdfb:0x81,_0x602cc0:0xad,_0x51acc8:0x24e,_0xefffc2:0xd7},_0x4b8e88={_0x258818:0x4e0,_0x23771e:0x401,_0x132ef0:0x50d,_0x3d5db4:0x60b,_0x476e1c:0x41c,_0x39ca5e:0x56f,_0x469148:0x4e1,_0x39d7e1:0x4b3,_0x5a769e:0x55b,_0x10a242:0x644,_0x9f9575:0x61c,_0x5b3c2c:0x577,_0x268154:0x64d,_0x1b4c3b:0x60a,_0x19480e:0x541,_0x5d81d2:0x585,_0x2e9209:0x47a},_0x5eb9b5={_0x5526d3:0x4ad,_0x7fdca0:0x4ea,_0x219b4f:0x441,_0x4fc051:0x404,_0x1d9f9f:0x3e3,_0x374d30:0x312,_0x392804:0x4ec,_0x396a6b:0x3a2,_0x416f4a:0x3f4,_0x49d4b1:0x4f9,_0x519ce6:0x44c},_0x275ae8={_0x1ef200:0x56f,_0x3c9951:0x117,_0x36acca:0x11d,_0x5c5079:0x124,_0x1f979a:0x4b1,_0x205946:0x497,_0x357423:0x4a0,_0x19efd5:0x2e3,_0x511dfd:0x3ee,_0x559d00:0x3e,_0x54b541:0xef,_0x324972:0x10e,_0x320e93:0x4b,_0x3d3f0f:0xb0,_0x2f30f6:0x14c,_0x371659:0xf4,_0x155135:0x372,_0x5723e8:0x523},_0x48c09e={_0x1e4112:0x7,_0x45c2cc:0x244,_0x51b9de:0x3c9,_0x35a40d:0x303,_0x484ae6:0x437,_0x16574c:0x97,_0x210e18:0xec,_0x1b43f1:0x9b,_0xccc3c9:0x161,_0x1ca053:0x23,_0x78208e:0x148,_0x5ea693:0x3f8,_0x2df351:0x53d,_0x528a9d:0x1e2,_0x2d0c36:0x9b,_0x532949:0x8a,_0x577345:0x309,_0x2c0dc4:0x254,_0x3fbf6b:0x132,_0x8e0ed3:0x74,_0x5cc01d:0x1e7,_0x430134:0x17e,_0x2ddf8f:0x2cf,_0x34a1aa:0x3d6,_0x31bdaa:0x2c6,_0x24e11d:0x200,_0xa63dee:0x324,_0x5b5e9e:0x407},_0x29f99e={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x538179=()=>_0x4917a1['enabled']!==![];async function _0x1d6c59(_0x147feb,_0x58b00a){const _0x554dc7={_0x3b3abf:0x139},_0x550aee={_0x57c777:0x219},_0x3e4138=stateKey(_0x147feb,_0x58b00a),_0xb9cd=_0x29f99e[_0x165354(0x4d6,0x4f0,0x508,_0x275ae8._0x1ef200)][_0x4f9676(_0x275ae8._0x3c9951,_0x275ae8._0x36acca,0x145,_0x275ae8._0x5c5079)](_0x49a8c2=>_0x49a8c2['serverId']===_0x147feb['id']&&_0x49a8c2[_0x4f9676(0x146,0x14a,0xef,0x13b)]===_0x58b00a);if(_0xb9cd)return _0xb9cd;if(_0x29f99e[_0x165354(_0x275ae8._0x1f979a,0x453,_0x275ae8._0x205946,_0x275ae8._0x357423)][_0x165354(_0x275ae8._0x19efd5,0x49a,_0x275ae8._0x511dfd,0x40b)](_0x3e4138))return void 0x0;function _0x165354(_0x12a7e5,_0x93752d,_0x54af87,_0x417a4c){return _0x561a(_0x54af87-0x265,_0x93752d);}const _0xdc6fd1=_0x29f99e[_0x4f9676(-_0x275ae8._0x559d00,_0x275ae8._0x54b541,-_0x275ae8._0x324972,_0x275ae8._0x320e93)][_0x4f9676(0x10,-_0x275ae8._0x3d3f0f,_0x275ae8._0x2f30f6,_0x275ae8._0x371659)](_0x3e4138);function _0x4f9676(_0x2f3134,_0x5048b6,_0x440543,_0x435521){return _0x561a(_0x2f3134- -_0x550aee._0x57c777,_0x440543);}if(_0xdc6fd1)return _0xdc6fd1;const _0x351179=((async()=>{const _0x862b5a={_0x56fdf7:0x32};function _0x3859e5(_0x592644,_0x4d8fda,_0x3823d6,_0xe815d7){return _0x165354(_0x592644-0x39,_0x3823d6,_0x592644- -0x5a3,_0xe815d7-_0x862b5a._0x56fdf7);}function _0x5b6867(_0x25e740,_0x54fafc,_0x1c1379,_0x423a9d){return _0x165354(_0x25e740-_0x554dc7._0x3b3abf,_0x25e740,_0x1c1379- -0x194,_0x423a9d-0x5b);}try{const _0x489e1b=await _0x147feb[_0x3859e5(-0xd5,-0x130,-0x106,_0x48c09e._0x1e4112)](_0x58b00a);if(!_0x489e1b)return _0x29f99e[_0x5b6867(_0x48c09e._0x45c2cc,_0x48c09e._0x51b9de,_0x48c09e._0x35a40d,_0x48c09e._0x484ae6)][_0x3859e5(-0x149,-_0x48c09e._0x16574c,-0x6a,-_0x48c09e._0x210e18)](_0x3e4138),void 0x0;const _0x505340=await createLspClient({'server':_0x147feb,'root':_0x58b00a,'handle':_0x489e1b}),_0x4c5733=_0x29f99e[_0x3859e5(-_0x48c09e._0x1b43f1,-_0x48c09e._0xccc3c9,-_0x48c09e._0x1ca053,-_0x48c09e._0x78208e)][_0x5b6867(_0x48c09e._0x5ea693,0x4a6,0x401,_0x48c09e._0x2df351)](_0x4cf3ed=>_0x4cf3ed[_0x3859e5(0x20,0xb4,0x119,0x44)]===_0x147feb['id']&&_0x4cf3ed[_0x5b6867(0x43c,0x563,0x430,0x522)]===_0x58b00a);if(_0x4c5733)return await _0x505340[_0x5b6867(0xb5,0x197,_0x48c09e._0x528a9d,0x1be)](),_0x4c5733;return _0x29f99e[_0x3859e5(-_0x48c09e._0x2d0c36,-0x53,-_0x48c09e._0x532949,-0x193)][_0x5b6867(0x388,_0x48c09e._0x577345,_0x48c09e._0x2c0dc4,_0x48c09e._0x3fbf6b)](_0x505340),_0x505340;}catch{return _0x29f99e[_0x3859e5(-0x10c,-_0x48c09e._0x8e0ed3,-_0x48c09e._0x5cc01d,-_0x48c09e._0x430134)][_0x5b6867(_0x48c09e._0x2ddf8f,_0x48c09e._0x34a1aa,_0x48c09e._0x31bdaa,_0x48c09e._0x24e11d)](_0x3e4138),void 0x0;}finally{_0x29f99e[_0x3859e5(-0x163,-0x106,-0x27b,-0x126)][_0x5b6867(_0x48c09e._0xa63dee,_0x48c09e._0x5b5e9e,0x310,0x2c7)](_0x3e4138);}})());return _0x29f99e[_0x165354(0x41a,_0x275ae8._0x155135,0x440,0x36e)][_0x165354(0x56e,0x505,0x57c,_0x275ae8._0x5723e8)](_0x3e4138,_0x351179),_0x351179;}async function _0x498a99(_0x1c232a,_0x27d143){function _0x3fc3ee(_0x359345,_0x49199c,_0x12e15a,_0x373bfc){return _0x561a(_0x359345-0x27b,_0x49199c);}if(!_0x538179())return[];const _0x329a9c=[];function _0x45215b(_0x33bc50,_0x1d36ee,_0x4c3346,_0x335be3){return _0x561a(_0x4c3346-0x151,_0x33bc50);}for(const _0x17babc of getServersForFile(_0x1c232a)){const _0x578e95=await _0x17babc['root'](_0x1c232a);if(!_0x578e95)continue;const _0x5e0399=stateKey(_0x17babc,_0x578e95);if(_0x29f99e[_0x3fc3ee(_0x5eb9b5._0x5526d3,_0x5eb9b5._0x7fdca0,_0x5eb9b5._0x219b4f,0x598)][_0x3fc3ee(_0x5eb9b5._0x4fc051,_0x5eb9b5._0x1d9f9f,0x441,_0x5eb9b5._0x374d30)](_0x5e0399))continue;const _0x1ba67f=_0x29f99e[_0x45215b(_0x5eb9b5._0x392804,_0x5eb9b5._0x396a6b,_0x5eb9b5._0x416f4a,_0x5eb9b5._0x49d4b1)][_0x3fc3ee(0x5ab,0x47a,0x50f,0x534)](_0x4c6a69=>_0x4c6a69[_0x45215b(0x43b,0x596,0x4af,0x5c7)]===_0x17babc['id']&&_0x4c6a69[_0x45215b(0x4e4,0x5a8,0x4b0,0x3a6)]===_0x578e95);if(_0x1ba67f){_0x329a9c['push'](_0x1ba67f);continue;}if(!_0x27d143)continue;const _0x50bc2e=await _0x1d6c59(_0x17babc,_0x578e95);if(_0x50bc2e)_0x329a9c[_0x3fc3ee(0x3fe,_0x5eb9b5._0x519ce6,0x4c1,0x38e)](_0x50bc2e);}return _0x329a9c;}async function _0x2f96a3(_0xf719c0,_0x533b93=![]){const _0x47f33f={_0x40ed3e:0x6c3},_0x6f564f={_0x282298:0x1d2};function _0x2c8d13(_0x42b8dd,_0x12def9,_0x5cedec,_0x1a59bd){return _0x561a(_0x42b8dd- -0x33c,_0x12def9);}function _0x8848a(_0x1b9ce5,_0x16ef53,_0x4f72f8,_0x112fdd){return _0x561a(_0x4f72f8- -_0x6f564f._0x282298,_0x1b9ce5);}const _0x8bf51f=await _0x498a99(_0xf719c0,!![]);await Promise[_0x8848a(-0x57,-_0x4b108b._0x299505,-_0x4b108b._0x39bdfb,_0x4b108b._0x602cc0)](_0x8bf51f[_0x2c8d13(-0x1f9,-_0x4b108b._0x51acc8,-_0x4b108b._0xefffc2,-0xf3)](async _0x1015d9=>{const _0x32f5fc={_0x26eaf8:0x147};function _0x430096(_0x32dd26,_0x425b0d,_0x4c205e,_0x2d948b){return _0x8848a(_0x2d948b,_0x425b0d-0x19f,_0x425b0d-0x393,_0x2d948b-_0x32f5fc._0x26eaf8);}function _0x5a1c5a(_0x47dea7,_0x28afae,_0x3c5e73,_0x352e40){return _0x2c8d13(_0x3c5e73-_0x47f33f._0x40ed3e,_0x352e40,_0x3c5e73-0x1d3,_0x352e40-0x1d0);}!_0x29f99e[_0x430096(0x600,0x4c5,_0x4b8e88._0x258818,_0x4b8e88._0x23771e)][_0x5a1c5a(_0x4b8e88._0x132ef0,_0x4b8e88._0x3d5db4,0x510,0x3f5)](_0x1015d9[_0x430096(0x61a,0x51f,0x45e,_0x4b8e88._0x476e1c)]+':'+_0x1015d9['root']+':'+_0xf719c0)&&(await _0x1015d9['notify'][_0x5a1c5a(_0x4b8e88._0x39ca5e,_0x4b8e88._0x469148,_0x4b8e88._0x39d7e1,0x596)]({'path':_0xf719c0}),_0x29f99e[_0x430096(0x3cd,0x4c5,0x42a,_0x4b8e88._0x5a769e)]['add'](_0x1015d9[_0x430096(_0x4b8e88._0x10a242,0x51f,0x3f5,0x592)]+':'+_0x1015d9[_0x430096(_0x4b8e88._0x9f9575,0x520,_0x4b8e88._0x5b3c2c,0x48c)]+':'+_0xf719c0));await _0x1015d9[_0x5a1c5a(0x660,_0x4b8e88._0x268154,0x577,_0x4b8e88._0x1b4c3b)][_0x5a1c5a(_0x4b8e88._0x19480e,0x46c,_0x4b8e88._0x5d81d2,_0x4b8e88._0x3d5db4)]({'path':_0xf719c0,'version':nextFileVersion(_0x29f99e,_0xf719c0)});if(_0x533b93)await _0x1015d9[_0x5a1c5a(0x52a,_0x4b8e88._0x2e9209,0x533,0x567)]({'path':_0xf719c0});}));}async function _0x376013(_0x2f28f8){const _0x195ec6={_0x4c7ba4:0x238};await _0x2f96a3(_0x2f28f8['file'],![]);function _0x2f310f(_0x5432c3,_0x1229c1,_0x3f4ba2,_0x4b0ea0){return _0x561a(_0x1229c1- -_0x195ec6._0x4c7ba4,_0x3f4ba2);}return _0x498a99(_0x2f28f8[_0x2f310f(-_0x272e29._0x183cbe,-_0x272e29._0x45534f,-0x5d,_0x272e29._0x115f3b)],![]);}async function _0x35bd37(_0x4e286e){const _0x5c7933=await _0x376013(_0x4e286e);function _0x58ad14(_0x1b42b0,_0x1d9188,_0x439cec,_0x20c886){return _0x561a(_0x439cec-_0x411c1e._0x3f1dc5,_0x1b42b0);}function _0x3faba3(_0x3d2e0f,_0x5f41f2,_0x320ab5,_0x2c84cb){return _0x561a(_0x3d2e0f-_0x1a0896._0xc37941,_0x320ab5);}return collectClientResults(_0x5c7933[_0x58ad14(0x2f0,_0x27f51a._0x1bf338,0x3d6,0x4c0)](_0x40b0b3=>_0x40b0b3[_0x3faba3(0x552,0x431,0x68b,0x5ed)][_0x3faba3(0x458,0x45e,0x3e0,0x358)](_0x4e286e)));}return{'isEnabled':_0x538179,async 'hasClients'(_0x5f4b15){function _0x4c83af(_0x51b29e,_0x35dc1d,_0x28db56,_0x197717){return _0x561a(_0x197717- -0xf9,_0x51b29e);}function _0x3bf73a(_0x350aea,_0x208cf8,_0x35a81f,_0x2c9518){return _0x561a(_0x35a81f- -_0x589095._0x4a704c,_0x350aea);}return(await _0x498a99(_0x5f4b15,![]))[_0x4c83af(-_0x27c9c9._0x43ff82,0x77,-_0x27c9c9._0x1658d5,0xdf)]>0x0||getServersForFile(_0x5f4b15)[_0x3bf73a(0x21d,-0xc,0xf4,_0x27c9c9._0x52dd6e)]>0x0;},'touchFile':_0x2f96a3,async 'diagnostics'(){function _0x146335(_0x24b260,_0x479af2,_0x1a9242,_0x19147d){return _0x561a(_0x24b260- -0xe8,_0x19147d);}const _0x268f19={};for(const _0xd06b17 of _0x29f99e[_0x146335(0x1bb,_0x3f552f._0x710415,0x17a,_0x3f552f._0x342945)]){for(const [_0x3baa02,_0xeaeb7b]of _0xd06b17['diagnostics']){_0x268f19[diagnosticsKeyToPath(_0x3baa02)]=_0xeaeb7b;}}return _0x268f19;},async 'diagnosticsForFile'(_0x3f6823){await _0x2f96a3(_0x3f6823,!![]);function _0x19b6b4(_0x301b58,_0x561e0c,_0x2f720c,_0x10e885){return _0x561a(_0x301b58-0x92,_0x561e0c);}const _0x2a3ae7=[];for(const _0x9adbc3 of await _0x498a99(_0x3f6823,![])){for(const [_0x1c78ff,_0x8acb2b]of _0x9adbc3['diagnostics']){if(diagnosticsKeyToPath(_0x1c78ff)===_0x3f6823)_0x2a3ae7[_0x19b6b4(0x215,_0x5ca25f._0x49e6b6,0x188,0x230)](..._0x8acb2b);}}return _0x2a3ae7;},async 'definition'(_0x13f1e8){function _0x10bf1c(_0x299ce8,_0x53a0b0,_0x2bcdca,_0x46c20b){return _0x561a(_0x46c20b- -0x289,_0x53a0b0);}return collectClientResults((await _0x376013(_0x13f1e8))['map'](_0x7d35b5=>_0x7d35b5[_0x10bf1c(-0x61,0x9c,0xa,0xc0)]['definition'](_0x13f1e8)));},async 'references'(_0x2b0004){const _0x46d1fd={_0x560ee8:0x2f8};function _0x47bd96(_0x2caf96,_0x232662,_0x451438,_0x50585c){return _0x561a(_0x50585c-_0x46d1fd._0x560ee8,_0x451438);}return collectClientResults((await _0x376013(_0x2b0004))['map'](_0x141c79=>_0x141c79['request'][_0x47bd96(0x517,0x4bc,0x508,0x434)](_0x2b0004)));},async 'hover'(_0x33b579){function _0x522030(_0x276e20,_0xc540b9,_0x33825d,_0x10603f){return _0x561a(_0xc540b9-0x1f9,_0x33825d);}const _0x395dcc=await Promise[_0x522030(_0x580e7b._0x46787b,0x408,_0x580e7b._0x43f461,_0x580e7b._0x10aad0)]((await _0x376013(_0x33b579))[_0x1fe9fb(0x315,_0x580e7b._0x36794b,_0x580e7b._0x51e49c,_0x580e7b._0x1541da)](_0x542be7=>_0x542be7[_0x1fe9fb(0x578,0x4c1,0x3db,0x523)][_0x522030(0x4c1,0x537,0x506,0x40f)](_0x33b579)));function _0x1fe9fb(_0x1528ae,_0x48baf9,_0x1504d9,_0x585938){return _0x561a(_0x585938-0x1da,_0x48baf9);}return _0x395dcc[_0x522030(0x50d,0x47e,0x3c4,0x4e0)](_0x2c5fd9=>_0x2c5fd9[_0x1fe9fb(0x475,0x349,0x540,0x448)]===_0x1fe9fb(0x498,0x2a0,0x2ed,0x375)&&_0x2c5fd9['value']?[_0x2c5fd9[_0x1fe9fb(0x3e3,0x35b,0x30c,0x328)]]:[]);},async 'documentSymbol'(_0x29e0a1){const _0x3e09d7={_0x18c8fc:0x2a0};function _0x52abc8(_0xbbf593,_0x579100,_0x4fb5d1,_0xf93950){return _0x561a(_0x579100-_0x3e09d7._0x18c8fc,_0xbbf593);}function _0x5afd8e(_0x4357dd,_0x2cbf04,_0x448287,_0x1ad9fb){return _0x561a(_0x4357dd- -_0x29ac73._0x573214,_0x2cbf04);}return await _0x2f96a3(_0x29e0a1,![]),collectClientResults((await _0x498a99(_0x29e0a1,![]))['map'](_0x37510f=>_0x37510f[_0x52abc8(0x692,0x5e9,0x649,0x4fa)][_0x5afd8e(0x60,0x3e,-0x9f,0x158)](_0x29e0a1)));},async 'workspaceSymbol'(_0x358a88){const _0xa77915={_0x250b22:0x2f6};function _0x25da54(_0x50a47f,_0x581686,_0x4abb31,_0x4460fd){return _0x561a(_0x581686-0xd,_0x4abb31);}function _0x244de4(_0x29b73e,_0x1f76cd,_0x540d0b,_0x2001ae){return _0x561a(_0x1f76cd-_0xa77915._0x250b22,_0x29b73e);}return collectClientResults(_0x29f99e[_0x244de4(0x62c,0x599,_0x2547ab._0x3d7432,_0x2547ab._0x1e5943)][_0x25da54(_0x2547ab._0x2d449f,_0x2547ab._0x37bb8d,0xd2,_0x2547ab._0x3a552e)](_0x1e993=>_0x1e993[_0x25da54(0x275,0x356,0x495,0x226)][_0x244de4(0x561,0x4e4,0x5c9,0x620)](_0x358a88)));},async 'implementation'(_0x2397bc){const _0x4207bb={_0x3d26da:0x30f};function _0x14e1ea(_0x1e304f,_0x2c0dee,_0x5e9c64,_0x549bee){return _0x561a(_0x5e9c64-0xca,_0x549bee);}function _0x146684(_0x4570f9,_0x562638,_0x5a1cfe,_0x68830d){return _0x561a(_0x4570f9-_0x4207bb._0x3d26da,_0x562638);}return collectClientResults((await _0x376013(_0x2397bc))['map'](_0x573044=>_0x573044[_0x14e1ea(0x535,0x552,0x413,0x4d1)][_0x14e1ea(0x342,0x32c,0x40a,0x314)](_0x2397bc)));},async 'prepareCallHierarchy'(_0x3b4c38){return _0x35bd37(_0x3b4c38);},async 'incomingCalls'(_0x4e2c0d){const _0xbdc72d=await _0x35bd37(_0x4e2c0d),_0x4ac9f6=await _0x376013(_0x4e2c0d);function _0x598bfa(_0x49de72,_0x5e73a8,_0x1e901b,_0x286cd5){return _0x561a(_0x286cd5-0x111,_0x1e901b);}return collectClientResults(_0x4ac9f6[_0x598bfa(0x443,_0x4da914._0x3e53e4,0x4bd,0x396)](_0x25ed89=>_0xbdc72d['map'](_0x3a91b6=>_0x25ed89['request']['incomingCalls'](_0x3a91b6))));},async 'outgoingCalls'(_0xe7ac97){function _0x2df09d(_0x4d33ea,_0x3b97aa,_0x1dfa8f,_0x383d63){return _0x561a(_0x1dfa8f- -0x327,_0x4d33ea);}function _0x34757d(_0x2f3b57,_0x3d2eca,_0x502096,_0x598a92){return _0x561a(_0x3d2eca- -0x22d,_0x2f3b57);}const _0x1cb97c=await _0x35bd37(_0xe7ac97),_0x101cd6=await _0x376013(_0xe7ac97);return collectClientResults(_0x101cd6[_0x2df09d(-0x1db,0x40,-0xa2,-_0x296659._0x48d1c2)](_0x2b3df6=>_0x1cb97c[_0x34757d(-0x148,-0xea,-0x8e,0x3)](_0x5b9010=>_0x2b3df6['request'][_0x2df09d(-0x265,-0x66,-0x19b,-0x145)](_0x5b9010))));},async 'shutdown'(){const _0x1a0251={_0x3f2cb3:0x2ab};if(_0x29f99e[_0x35a64d(0x41b,_0x5586c5._0x4c10cb,0x497,_0x5586c5._0x397e9e)])return;_0x29f99e[_0x35a64d(0x41b,0x340,_0x5586c5._0xb30a5e,0x50e)]=!![],await Promise['allSettled'](_0x29f99e[_0x3c3e74(0x1a8,0x21c,_0x5586c5._0x44c6d1,0x30c)][_0x35a64d(_0x5586c5._0x22fd9d,0x4aa,0x2e1,_0x5586c5._0x4dab44)](_0xee34c8=>_0xee34c8[_0x35a64d(0x3bc,0x41c,0x3cb,0x41e)]())),_0x29f99e[_0x3c3e74(0x318,0x15d,0x282,0x2d5)]=[];function _0x35a64d(_0x557768,_0x2765d1,_0x43501a,_0xb5cf82){return _0x561a(_0x557768-_0x1a0251._0x3f2cb3,_0x2765d1);}_0x29f99e[_0x3c3e74(0xf1,0x16e,0x1ba,0x2bf)]['clear']();function _0x3c3e74(_0x2b2ca7,_0x71bb8d,_0x421dae,_0x200742){return _0x561a(_0x421dae- -_0x73af96._0x942055,_0x71bb8d);}_0x29f99e[_0x35a64d(0x4dd,0x424,0x430,0x61b)][_0x35a64d(_0x5586c5._0x1555ae,_0x5586c5._0x551912,_0x5586c5._0x3ac90b,0x38f)](),_0x29f99e[_0x35a64d(_0x5586c5._0x5737f8,_0x5586c5._0x346612,0x41e,0x583)][_0x3c3e74(_0x5586c5._0x4d0757,_0x5586c5._0x202926,0x1c8,0x142)](),_0x29f99e[_0x35a64d(0x5af,_0x5586c5._0x39ea0d,0x53d,_0x5586c5._0x42a87f)][_0x35a64d(0x494,_0x5586c5._0x4838e4,_0x5586c5._0x1ccbca,0x4ec)]();},'status'(){function _0x5a9dda(_0x43d02e,_0x513ae3,_0x240cdb,_0x4ec1c1){return _0x561a(_0x4ec1c1- -0x5f,_0x43d02e);}return{'connectedClients':_0x29f99e[_0x5a9dda(0x2a9,0xfc,_0x1f2cfa._0x335d76,_0x1f2cfa._0x4d15a5)]['length']};}};}function createQuestionId(){const _0x9a7dc2={_0x14a772:0x53d,_0x573c5e:0x620,_0x16a2b5:0x741,_0x54cba7:0x16f,_0x2a45ab:0x5e2,_0x55ac79:0x67b,_0xba5a1f:0x463},_0x291f79={_0x3e3f03:0x113,_0x4ea547:0x563},_0x184d5d={_0x48d7b2:0xa1,_0x1da8af:0x3b5};function _0x39a963(_0x28ec32,_0x46e0bc,_0x3d1cb5,_0x1be18e){return _0x4aa629(_0x28ec32-0x1de,_0x46e0bc,_0x3d1cb5-_0x184d5d._0x48d7b2,_0x3d1cb5-_0x184d5d._0x1da8af);}function _0x524d98(_0x5a0c81,_0x238433,_0xf1f18,_0x2014e0){return _0x4aa629(_0x5a0c81-_0x291f79._0x3e3f03,_0x5a0c81,_0xf1f18-0x19e,_0xf1f18-_0x291f79._0x4ea547);}return'question-'+Date[_0x524d98(0x62d,_0x9a7dc2._0x14a772,_0x9a7dc2._0x573c5e,_0x9a7dc2._0x16a2b5)]()+'-'+Math[_0x39a963(_0x9a7dc2._0x54cba7,0x129,0x251,0x333)]()[_0x524d98(_0x9a7dc2._0x2a45ab,0x5cf,_0x9a7dc2._0x55ac79,0x795)](0x24)[_0x524d98(0x511,0x551,_0x9a7dc2._0xba5a1f,0x4c9)](0x2,0x9);}function validateInput(_0x330bfb){const _0x140c14={_0x4d4960:0xd2,_0x594ac8:0x209,_0x5f477a:0x6e3,_0x509a69:0x660,_0x4af163:0x531,_0x23cce1:0xe2,_0x528bbb:0x17,_0x2e93cd:0x114,_0x17d36d:0x14f,_0x12ba66:0x74b,_0x1ec573:0x54c,_0x2a610b:0x7c6,_0x567535:0x715,_0x4dbc7e:0x790,_0x517ab3:0x1a7,_0x31d367:0x140,_0x523299:0x657,_0xb2e46d:0x776,_0x2028b6:0x1aa,_0x5e648b:0x17e,_0x225147:0x21,_0x4a5c42:0x5b4,_0x39e47a:0x551,_0x5dfb0f:0x734,_0x14629d:0x71c,_0x40ace0:0x83b,_0x2e4ad9:0x707,_0x41a2db:0x566,_0x17f4ff:0x5aa,_0x2c6e49:0x4f6,_0x3cfd76:0x278,_0x17f036:0x2fe,_0x21976a:0x5bd,_0x4865d6:0x586,_0x5eaded:0x685,_0xe2ca7e:0x523,_0x15ab8c:0x548,_0x39a4a4:0x681,_0x2d4282:0x544,_0x269607:0x13d,_0x58f327:0x255,_0x31f302:0x5dd,_0x14dc45:0x2b7,_0x2275d1:0x19b,_0x12bde9:0x186,_0x6d4a83:0x586,_0x2af43f:0xc2,_0x441ad0:0x1fe,_0x13ee24:0x14c,_0x1abd72:0x5c,_0x15d8c7:0x15f,_0x1806d8:0xb5,_0x3520ce:0x1cb,_0xfe0a62:0x12d,_0x494174:0x15d,_0x2e4292:0xe2,_0x2829e1:0xb8,_0x314d37:0x179,_0x4204a5:0x183,_0x28c0a6:0x2aa,_0x4aa0cb:0xc2,_0x1cf96a:0x4c,_0x10943c:0x64a,_0x3e5802:0x75b,_0xa0ddca:0x176,_0x5ebb06:0x182,_0x3596f8:0x5b8,_0x234302:0x52f,_0x118cc4:0x27,_0x13e9f9:0x1ee,_0x1be158:0xb5,_0x44640c:0x20a},_0x1e24a6={_0x4f948c:0x197,_0x42e414:0x15c},_0x2b6ba5={_0x8bb306:0x2c3};function _0xeb84c8(_0x44f920,_0x49256b,_0x65c8b9,_0x26b56f){return _0x2f0acf(_0x49256b-_0x2b6ba5._0x8bb306,_0x49256b-0x1d7,_0x44f920,_0x26b56f-0x175);}function _0x34aa6b(_0x4a51b5,_0x19a228,_0x2a0253,_0x243d21){return _0x4aa629(_0x4a51b5-_0x1e24a6._0x4f948c,_0x19a228,_0x2a0253-0x173,_0x4a51b5-_0x1e24a6._0x42e414);}if(!Array[_0x34aa6b(0x1dd,0xb4,_0x140c14._0x4d4960,_0x140c14._0x594ac8)](_0x330bfb['questions'])||_0x330bfb[_0xeb84c8(_0x140c14._0x5f477a,0x65b,_0x140c14._0x509a69,_0x140c14._0x4af163)][_0x34aa6b(_0x140c14._0x23cce1,0x1a2,-_0x140c14._0x528bbb,0x1dc)]<0x1||_0x330bfb['questions'][_0x34aa6b(0xe2,_0x140c14._0x2e93cd,_0x140c14._0x17d36d,0x17d)]>0x4)throw new ToolExecutionError(_0xeb84c8(0x5d1,0x645,_0x140c14._0x12ba66,_0x140c14._0x1ec573),{'error':_0xeb84c8(_0x140c14._0x2a610b,_0x140c14._0x567535,0x74b,_0x140c14._0x4dbc7e)});for(let _0x2d18e4=0x0;_0x2d18e4<_0x330bfb[_0xeb84c8(0x640,0x65b,0x642,0x567)]['length'];_0x2d18e4+=0x1){const _0x1feec1=_0x330bfb['questions'][_0x2d18e4];if(!_0x1feec1[_0x34aa6b(_0x140c14._0x517ab3,_0x140c14._0x31d367,0x2aa,0x2ca)]||typeof _0x1feec1[_0xeb84c8(0x5f8,0x64b,_0x140c14._0x523299,_0x140c14._0xb2e46d)]!==_0x34aa6b(_0x140c14._0x2028b6,0x85,_0x140c14._0x5e648b,0x76))throw new ToolExecutionError(_0x34aa6b(0xc2,-0x69,-_0x140c14._0x225147,0x12b)+(_0x2d18e4+0x1)+_0xeb84c8(_0x140c14._0x4a5c42,0x4a4,0x421,_0x140c14._0x39e47a));if(!_0x1feec1['header']||typeof _0x1feec1[_0xeb84c8(_0x140c14._0x5dfb0f,_0x140c14._0x14629d,_0x140c14._0x40ace0,0x5eb)]!==_0xeb84c8(0x680,0x64e,_0x140c14._0x2e4ad9,0x514))throw new ToolExecutionError(_0xeb84c8(0x5d0,_0x140c14._0x41a2db,0x4b3,_0x140c14._0x17f4ff)+(_0x2d18e4+0x1)+_0xeb84c8(0x739,0x5fc,_0x140c14._0x2c6e49,0x508));if(_0x1feec1[_0x34aa6b(_0x140c14._0x3cfd76,0x20c,0x2af,_0x140c14._0x17f036)][_0xeb84c8(_0x140c14._0x21976a,_0x140c14._0x4865d6,_0x140c14._0x5eaded,0x562)]>0x14)throw new ToolExecutionError('Question\x20'+(_0x2d18e4+0x1)+':\x20\x22header\x22\x20must\x20be\x20max\x2020\x20characters,\x20got\x20'+_0x1feec1['header'][_0xeb84c8(_0x140c14._0xe2ca7e,0x586,0x62f,0x63a)]);if(!Array[_0xeb84c8(_0x140c14._0x15ab8c,_0x140c14._0x39a4a4,0x5a3,_0x140c14._0x2d4282)](_0x1feec1[_0x34aa6b(0x1cb,0x26c,_0x140c14._0x269607,_0x140c14._0x58f327)])||_0x1feec1['options'][_0xeb84c8(0x631,0x586,_0x140c14._0x31f302,0x488)]<0x2||_0x1feec1[_0x34aa6b(0x1cb,_0x140c14._0x14dc45,_0x140c14._0x2275d1,_0x140c14._0x12bde9)][_0xeb84c8(0x62b,_0x140c14._0x6d4a83,0x542,0x68f)]>0x4)throw new ToolExecutionError(_0x34aa6b(_0x140c14._0x2af43f,_0x140c14._0x441ad0,_0x140c14._0x13ee24,_0x140c14._0x1abd72)+(_0x2d18e4+0x1)+_0x34aa6b(_0x140c14._0x15d8c7,0x1b2,_0x140c14._0x1806d8,0x26c));for(let _0x2acdc9=0x0;_0x2acdc9<_0x1feec1[_0x34aa6b(_0x140c14._0x3520ce,_0x140c14._0xfe0a62,0x30b,_0x140c14._0x494174)][_0x34aa6b(_0x140c14._0x2e4292,_0x140c14._0x2829e1,0x148,_0x140c14._0x314d37)];_0x2acdc9+=0x1){const _0x782ca2=_0x1feec1[_0x34aa6b(0x1cb,0xe9,0xd6,_0x140c14._0x4204a5)][_0x2acdc9];if(!_0x782ca2[_0x34aa6b(0x212,0x272,_0x140c14._0x28c0a6,0x12f)]||!_0x782ca2['description'])throw new ToolExecutionError(_0x34aa6b(_0x140c14._0x4aa0cb,-0x73,0x17c,-_0x140c14._0x1cf96a)+(_0x2d18e4+0x1)+_0xeb84c8(0x6e0,_0x140c14._0x10943c,0x56b,_0x140c14._0x3e5802)+(_0x2acdc9+0x1)+_0x34aa6b(0xfd,_0x140c14._0xa0ddca,_0x140c14._0x5ebb06,0x1b8));}if(typeof _0x1feec1[_0xeb84c8(0x4ba,0x5cc,_0x140c14._0x3596f8,_0x140c14._0x234302)]!=='boolean')throw new ToolExecutionError(_0x34aa6b(0xc2,0x13f,_0x140c14._0x118cc4,0x190)+(_0x2d18e4+0x1)+_0x34aa6b(_0x140c14._0x13e9f9,0x12b,_0x140c14._0x1be158,_0x140c14._0x44640c));}}function buildQuestions(_0x4a64eb){const _0x54f9e9={_0x61bcb2:0x118};function _0x11d3fc(_0x194a8a,_0x44e4ae,_0x55cd96,_0x11b1e3){return _0x2f0acf(_0x55cd96- -0x3c3,_0x44e4ae-0x1f3,_0x194a8a,_0x11b1e3-0x91);}function _0x96e420(_0x1073ba,_0x1a7e9c,_0x4370e8,_0x3da87b){return _0x4aa629(_0x1073ba-_0x54f9e9._0x61bcb2,_0x1073ba,_0x4370e8-0xf9,_0x4370e8-0x50f);}return _0x4a64eb['questions']['map']((_0x22679b,_0x387a44)=>({'id':'q'+_0x387a44,'question':_0x22679b[_0x96e420(0x528,0x4eb,0x55a,0x47f)],'header':_0x22679b['header'],'options':_0x22679b[_0x11d3fc(0x5,0x30,-0x17,-0x81)],'multiSelect':_0x22679b['multiSelect']}));}function createResult(_0x4132c0,_0xccf3dc,_0x1b7a29){const _0x7c740e={_0x99e413:0x46d,_0x237760:0x575,_0x3123d7:0x4b5,_0x4228b0:0x529,_0x5a30ef:0x431,_0x53a9c2:0x37e},_0x418513={_0x44de79:0xa6},_0x31e8a4={_0x1cd644:0x1e0,_0x16040e:0xbc},_0x2e732b={'questionId':_0x4132c0,'questionCount':_0xccf3dc,'answers':_0x1b7a29};function _0x55cfdb(_0x226fe5,_0x577628,_0x7042e9,_0xe650c4){return _0x4aa629(_0x226fe5-_0x31e8a4._0x1cd644,_0x226fe5,_0x7042e9-_0x31e8a4._0x16040e,_0x7042e9-0x5d1);}function _0x12bdbf(_0x3b2165,_0x388a7e,_0x4d3169,_0x5dad12){return _0x4aa629(_0x3b2165-0x145,_0x4d3169,_0x4d3169-_0x418513._0x44de79,_0x388a7e-0x4a1);}return createToolOutput(_0x55cfdb(_0x7c740e._0x99e413,_0x7c740e._0x237760,_0x7c740e._0x3123d7,_0x7c740e._0x4228b0)+JSON[_0x12bdbf(_0x7c740e._0x5a30ef,0x468,0x3a5,_0x7c740e._0x53a9c2)](_0x1b7a29,null,0x2),_0x2e732b);}function createAskUserTool(){const _0x712520={_0x252a86:0x32e,_0x12c0d0:0x1b5,_0x58e873:0xec,_0x1c2af4:0x203,_0x1b6d05:0x170,_0x3588c5:0x13c,_0x112ed6:0x57,_0x1bae29:0x23,_0x54da63:0x13d,_0x7a958d:0xb2,_0x49ae61:0x181,_0x2aed7e:0x77,_0x1f93e1:0x1e9,_0x4947a9:0x12a,_0x213965:0x1c8,_0x231c58:0xd1,_0x21229e:0x9d,_0x563b62:0xba,_0x2c99aa:0x8d,_0xf225a4:0x102,_0x1af6bc:0x140,_0xd97b4f:0x7b,_0x506beb:0x1d5,_0x1db3d0:0x156,_0x225ae8:0x19d,_0x52ce9d:0x202,_0x1d5449:0xbd,_0x1bf1bc:0x3c,_0x3e4342:0xfe,_0x3cc58f:0x11c,_0x29a446:0x198,_0x231ca0:0x74},_0x46fe0e={_0x296a76:0x5f6,_0x42ab0e:0x581,_0x5229d8:0x684,_0xcf22cc:0x4cc,_0x4bc746:0x536,_0x2d6584:0x49d,_0x28c929:0x6b7,_0xc0cafc:0x4c4,_0x3ec666:0x460,_0x35e64b:0x340,_0x54c3f7:0x60b,_0x33ecd1:0x478,_0x386ede:0x482,_0x6d5be:0x425,_0x2ecda8:0x46a,_0x97d72f:0x572,_0x44e0d5:0x1be,_0x2558b5:0x133,_0xd63717:0x10a},_0x45f9cc={_0x50b2b8:0x61f,_0x581b5:0x99},_0x381607={_0x2b838c:0xe6,_0x3b8ff9:0x152},_0x170a9b={_0x3646e3:0x4c8,_0x26ff3b:0x1c4};function _0x4708d7(_0x386227,_0x253a59,_0x135fa6,_0x41938f){return _0x2f0acf(_0x386227- -_0x170a9b._0x3646e3,_0x253a59-0x34,_0x135fa6,_0x41938f-_0x170a9b._0x26ff3b);}function _0x28cb2a(_0x3450b5,_0x4a7d31,_0x285010,_0x18fad7){return _0x2f0acf(_0x3450b5- -0x445,_0x4a7d31-_0x381607._0x2b838c,_0x285010,_0x18fad7-_0x381607._0x3b8ff9);}return defineTool({'name':_0x28cb2a(-0x226,-_0x712520._0x252a86,-0x24b,-0x30c),'description':_0x28cb2a(-0x19c,-_0x712520._0x12c0d0,-_0x712520._0x58e873,-_0x712520._0x1c2af4),'inputSchema':{'type':_0x28cb2a(-0x145,-0x77,-_0x712520._0x1b6d05,-_0x712520._0x3588c5),'properties':{'questions':{'type':_0x28cb2a(-0xa7,-_0x712520._0x112ed6,-0x37,-_0x712520._0x1bae29),'items':{'type':'object','properties':{'question':{'type':_0x4708d7(-_0x712520._0x54da63,-_0x712520._0x7a958d,-_0x712520._0x49ae61,-_0x712520._0x2aed7e)},'header':{'type':_0x28cb2a(-0xba,-_0x712520._0x1f93e1,-0x49,-0x201)},'options':{'type':_0x4708d7(-_0x712520._0x4947a9,-0x7c,-0x1c,-0xac),'items':{'type':_0x4708d7(-_0x712520._0x213965,-_0x712520._0x231c58,-_0x712520._0x21229e,-0x2be),'properties':{'label':{'type':'string'},'description':{'type':_0x28cb2a(-_0x712520._0x563b62,-0x1f6,-_0x712520._0x2c99aa,-_0x712520._0xf225a4)}},'required':[_0x4708d7(-0xd5,-_0x712520._0x1af6bc,-_0x712520._0xd97b4f,-_0x712520._0x506beb),_0x28cb2a(-0x232,-0x127,-_0x712520._0x1db3d0,-_0x712520._0x225ae8)]}},'multiSelect':{'type':_0x4708d7(-0xe2,-_0x712520._0x52ce9d,-0x107,0x25)}},'required':[_0x28cb2a(-_0x712520._0x1d5449,-0x119,-0x146,_0x712520._0x1bf1bc),_0x28cb2a(0x14,_0x712520._0x3e4342,0x25,-0x91),_0x4708d7(-_0x712520._0x3cc58f,-0x20f,-0x112,-_0x712520._0x29a446),'multiSelect']}},'answers':{'type':'object','properties':{}}},'required':[_0x28cb2a(-0xad,_0x712520._0x231ca0,-0x184,0x3e)]},async *'execute'(_0x369896,_0x322b11){const _0x4238dd={_0x20a193:0x338},_0x1451dc=_0x369896;function _0x211894(_0x1b4524,_0x4658dc,_0x407744,_0x2b80c6){return _0x4708d7(_0x4658dc-_0x4238dd._0x20a193,_0x4658dc-0x159,_0x2b80c6,_0x2b80c6-0xd3);}validateInput(_0x1451dc);const _0x3db00b=_0x322b11['toolCallId']??createQuestionId();if(_0x1451dc[_0x46f999(_0x46fe0e._0x296a76,_0x46fe0e._0x42ab0e,_0x46fe0e._0x5229d8,_0x46fe0e._0x5229d8)]&&Object['keys'](_0x1451dc[_0x211894(0x1bf,0x217,0x139,0x172)])['length']>0x0)return createResult(_0x3db00b,_0x1451dc[_0x46f999(0x4cf,0x572,_0x46fe0e._0xcf22cc,_0x46fe0e._0x4bc746)][_0x46f999(0x38b,0x49d,0x45d,_0x46fe0e._0x2d6584)],_0x1451dc[_0x46f999(0x650,0x581,_0x46fe0e._0x28c929,_0x46fe0e._0xc0cafc)]);if(!_0x322b11[_0x46f999(_0x46fe0e._0x3ec666,0x453,0x434,_0x46fe0e._0x35e64b)])throw new ToolExecutionError(_0x46f999(0x64e,_0x46fe0e._0x54c3f7,0x5d0,0x55a));const _0x3113a0=buildQuestions(_0x1451dc),_0x2895a0=await _0x322b11[_0x46f999(_0x46fe0e._0x33ecd1,0x453,_0x46fe0e._0x386ede,_0x46fe0e._0x6d5be)]({'questionId':_0x3db00b,'questions':_0x3113a0});function _0x46f999(_0x2f886d,_0x420d1c,_0x574583,_0x20c6ee){return _0x28cb2a(_0x420d1c-_0x45f9cc._0x50b2b8,_0x420d1c-0xbf,_0x2f886d,_0x20c6ee-_0x45f9cc._0x581b5);}yield createResult(_0x3db00b,_0x1451dc[_0x46f999(_0x46fe0e._0x2ecda8,_0x46fe0e._0x97d72f,0x5f5,0x5f2)][_0x211894(_0x46fe0e._0x44e0d5,_0x46fe0e._0x2558b5,0xec,_0x46fe0e._0xd63717)],_0x2895a0);}});}import{spawn as _0x1744cf}from'child_process';import{statSync}from'fs';import*as _0xcb20a5 from'os';import*as _0x1d2251 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0x5ea9dc from'path';function isPathInside(_0x37a11,_0x49f12d){const _0x501943={_0x5e4195:0xf5},_0x2d9546=_0x5ea9dc['resolve'](_0x37a11),_0x5e2dee=_0x5ea9dc['relative'](_0x2d9546,_0x49f12d);function _0xd98cb2(_0x23287f,_0x3237f5,_0x66e9cc,_0x5a32a6){return _0x2f0acf(_0x66e9cc-0xa0,_0x3237f5-0xf8,_0x5a32a6,_0x5a32a6-_0x501943._0x5e4195);}return _0x5e2dee===''||!_0x5e2dee[_0xd98cb2(0x325,0x475,0x3a6,0x3b5)]('..')&&!_0x5ea9dc['isAbsolute'](_0x5e2dee);}function resolveWorkspacePath(_0x29b193,_0xc46a63){return resolveAllowedPath(_0x29b193,[],_0xc46a63);}function _0x4008(){const _0x27acd4=['rMLSzsb3CML0DgvUigf0ia','CMvXDwLYzwq','Dgv4Dc9ODg1S','AxnjBNrLz2vY','zgf0zxrPBwu','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','lI4U','txvZDcbWCM92AwrLideTncbXDwvZDgLVBNm','yxnPzgu','AgfUzgXL','AhLKCMf0zu1LDge','zgLYBMfTzq','lcbpChrPB24G','CxvLC3rPB24','CgfJA2fNzu5HBwu','vw5HDxrOB3jPEMvKrxjYB3i','C3rYAw5N','B2C6DxbKyxrLzf90Aw1L','B25Jzq','y2XPzw50CW','DhLWzxnJCMLWDa','vg9KBYa','Dgv4DerVy3vTzw50l2LTCgXLBwvUDgf0Aw9U','igj5DgvZicH0B3rHBdOG','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','zw52','C3rHDgu','Agv4','CxvLC3rPB25Z','tM8GC3vJAcbMAwXLoIaN','BgLUzq','yM9KEq','zgLZy292zxj5u3rHDgu','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','yxjYyxK','y2f0y2G','EwvZ','vMLLD2vKigLTywDLigzPBgu6ia','zgvMyxvSDa','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','qxzHAwXHyMXLignVBw1HBMrZoG','C3rHCNreAxi','CMfUz2u','yw5ZD2vYCW','CMvSyxrPDMu','yw50AhjVCgLJlw1LC3nHz2vZ','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','C3jJl3nOyxjLzc90ExbLCY50CW','B3b0Aw9UCW','DgL0Bgu','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','ChvIBgLZAgvKqxq','BgLZDfrVB2XZ','C3r5Bgu','tg9HzcbHihnRAwXSigj5ig5HBwuGDg8Gz2v0igrLDgfPBgvKihrHC2SGAw5ZDhj1y3rPB25ZlIboBYbZA2LSBhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','BgLUzu51Bq','Dg9VBc1VDxrWDxqTB2zMBg9Hza','xg5DkJ8','zgvSAw1PDgvY','BwfYA2rVD24','mtG4nJi4m2vkBvftyq','zgvMAw5PDgLVBG','yNL0zuXLBMD0Aa','ig1HDgnO','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','Bwf0y2HLCW','AxnbCNjHEq','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','CxvLCNK','q29Tu3bLyW','ru5pru5u','DhvYBMrVD24','CMvZDwX0','y29UDgv4Da','DMvYAwzPzxi','mJm1ntfjuMHkr2e','C3rHCNq','yNvUlMXVy2TI','DxrTx2nVBNrLBNq','zhvWBgLJyxrLx3rVzg9FAwrZ','CgfJA2fNzxm','y29KzvzLCMLMAwvY','y29UzMLN','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','Bwv0yvTWCM9Wzxj0Et0Nyxj0AwnSztPWDwjSAxnOzwrFDgLTzsDD','DxrTx3rLCM0','B2XKvgv4Da','C25PChbLDa','tuLnrtOG','tM8GCMvZDwX0CYbMB3vUzc4','zMLSDgvY','Dgv4DerVy3vTzw50l3bYzxbHCMvdywXSsgLLCMfYy2H5','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','y29TBwfUzhm','Dhj1zq','tM8GBg9JyxrPB25ZigzVDw5K','BgLUzvn0yxj0','Ahr0CdO','igj5DgvZ','l3vZCI9IAw4VyMfZAa','y29UDgvUDa','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','l2jPBI9IyxnO','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','qwXSia','Cg5WBs1SB2nRlNLHBwW','yM9VBgvHBG','DxrTx3nVDxjJzq','zgLNzxn0','Dgv4DerVy3vTzw50l2rPzenSB3nL','C3vIyxjYyxK','B25szwrPCMvJDa','ls1ZDgrPBW','B3bLCMf0Aw9U','yNvUlMXVy2S','B3bLBKzPBgvZ','zw5HyMXLza','Aw52ywXPzf90B2rVx3bYAw9YAxr5','ls1NBg9IpseUz2L0lYO','BgfIzwW','mtjPvwnSB1i','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','yxjNCW','D2LUmZi','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','ls1YzwDLEha','BM93','lMXVzW','AgvHzgvYCW','Dgv4DerVy3vTzw50l2HVDMvY','ywjVCNq','v2fYBMLUzW','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','yMLYDgH0Aw1L','C2v0','Aw1Hz2vZ','l3vZCI9IAw4VCMC','vw50AxrSzwq','yxnZAwDU','DgLTzw91De1Z','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','tg9HzgvKigzYB206ia','ienHDxnLoIa','BMv3vgv4Da','vw5RBM93BIb0B29SoIa','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','B2zMC2v0','B3b0Aw9UywW','BNvTyMvY','C2vUzfjLCxvLC3q','zgf0yq','z29Vz2XLq3nLs2v5','DxbKyxrL','v2vIrMv0y2G','C3bSAxq','uKLgrG','zxH0zw5ZAw9UCW','qxnZAwDUvgfZAW','rMLUzcb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCNKGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','zMLUza','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','Aw5JBhvKzq','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','DhjHBNnWB3j0','zMXVB3i','Bg9HzfnRAwXS','BgLUzvrLEhq','yxv0BW','qwDLBNqGCNvUia','Dhj1BMm','CMLWz3jLCcbMywLSzwq6ia','ugfJA2fNzxm','Bwf4qNL0zxm','Ag92zxi','B3jPz2LUywW','Aw1WBgvTzw50yxrPB24','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','zw51Bq','D29YA3nWywnLl3n5BwjVBa','uhjVz3jHBuzPBgvZ','B2zM','q29UDgv4DcbKB2vZig5VDcbZDxbWB3j0ihvZzxiGCxvLC3rPB25Z','AhrTBfnUAxbWzxq','CgfYC2vjBNq','CMvXDwvZDa','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','Aw5qCM9NCMvZCW','zxjYB3jnzxnZywDL','z2nSAwq','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','yM94zwq','ywXSB3DLzerPCNm','ignVBxbSzxrLzc4','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','BwvZC2fNzq','igj5DgvZks4','C2v0vg9KB3m','C29Tzq','D2HLCMuGCMC','yxv0Ag9YAxPHDgLVBL9JB2rL','A2v5CW','sgLUDa','CgXHAw50zxH0','z29uB0LTCgXLBwvUDgf0Aw9U','BgfUzW','C2vYDMvYswq','CM9VDa','oIbPBNzHBgLKihn0yxr1CW','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','BgLI','y3DK','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','y2XPzw50x3nLy3jLDf9WB3n0','DhLWzq','Aw52ywXPzf9XDwvZDgLVBNm','Aw5WDxq','yMLVBwu','Dg9tDhjPBMC','rgLHz25VC3rPyW','y29UDgv4DeXPBMS','l3vZCI9SB2nHBc9IAw4VCMC','AgvHzgvY','yMvHCMvY','jYbUB3qGzM91BMqUief2ywLSywjSzsbZA2LSBhm6ia','C2vUze5VDgLMAwnHDgLVBG','BNbT','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','lMPZEa','Dg9ju09tDhjPBMC','tunqihnLCNzLCIa','zgLHz25VC3rPy3m','BgLTAxq','C2fMzq','zxH0BMfTzq','BhnWlxbYB3H5','Dg9VBfjLC3vSDhm','CMvWBgfJzq','AxngAwXL','CMfUzg9T','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','sw52ywXPzcbvuKWGCgfYyw1LDgvY','Aw52ywXPzf90B2rVx2LK','AwzYyw1L','CM91BMq','C29YDa','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','rMv0y2GGDgLTzwqGB3v0','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','y29UBMvJDgLVBG','z29uB0rLzMLUAxrPB24','y29UDgvUDhm','Aw1Hz2uVz2LM','C3rHDhvZvgv4Da','Ec1HCgKTA2v5','twLJCM9ZB2z0','Ahr0Ca','CgLK','Aw1Hz2uVCg5N','pc9ZExn0zw0TCMvTAw5Kzxi+','DhjPBq','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','phn5C3rLBs1Yzw1PBMrLCJ4','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','tfnqihnLCNzPy2uGAxmGzgLZywjSzwq','ChjPB3jPDhK','Dg9mB3DLCKnHC2u','ie9sia','BhnWu2vYDMLJzq','zxf1ywXZ','lMnTza','B3rOzxi','vMLLD0zPBgu','C2H1DgrVD24','Aw52ywXPzf90B2rVx3n0yxr1CW','u2HLBgWGBM90igzVDw5KoIa','v2LUr2v0','CMvNAw9U','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','ywDLBNrZ','zgvMyxvSDfrPBwvVDxrnCW','lNbUzW','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','Aw5PDgLHBgL6zwq','lMPWzwC','BNv2Aw4','zgLHz25VC3rPy3ngB3jgAwXL','otu3mdK0zfz2rhL6','DxjP','z2L0qNjHBMnO','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','ChjVCgvYDgLLCW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','DhLWzxnJCMLWDhjLywn0','Aw5PDgLHBgL6yxrPB24','zgvZy3jPChrPB24','BwvKAxvT','zgvUBY5QC29U','C2L6zq','B3bLBG','AMf2yxnJCMLWDa','qMfZAa','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','lMPZ','y29Uy2f0','C3LTBgLUAW','ChjVy2vZCW','qxnRvxnLCLrVB2W','CgfZC3DVCMq','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','zMjJBgLK','oIbPzcbYzxf1AxjLza','BxrPBwvnCW','A2v5yMLUzgLUz3m','lNrZ','CMvMzxjLBMnLCW','yw5ZAte2','CgfNzw1HCa','rxHLy3v0zxmGysbZAgvSBcbJB21Tyw5K','zgv0ywLS','Dg9KB3m','l3bPza','BwfW','C2v2zxjPDhK','C2vSzwn0Aw9UuMfUz2u','BgLNAhq','zgfYAW','Aw1Hz2uVANbLzW','ls1MAwXLCW','yxjNDw1LBNroyw1LCW','CgfJA2fNzs1SB2nRlMPZB24','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','zMfPBgvK','DMfSDwu','ihDHCYbHyM9YDgvKlG','Dg9Rzw5Z','ywXS','C2XPy2u','zNjVBq','r2XVyG','A2LSBa','zM9VDgvY','CgfYC2u','qMvHCMvYia','Aw5ZDhj1y3rPB25Z','C2HPzNq','C2LNBMfS','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','C3rKB3v0','ChjLzML4','Aw5FChjVz3jLC3m','zhj5uNvU','CMvHC29U','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','BxrPBwu','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Ag9ZDa','z2XVyG','yxv0Aa','CgfZC3rOCM91z2G','yxr0CG','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','mJCYnZuWnvvIywPHva','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','w1bFxL1BxhnCu10QpW','ndK3ote3ognVqMDvCa','Aw52ywXPzf90B2rVCW','C2H1DgrVD25tDgfYDgvK','ygbGANnVBGO','zMLUzfjLzMvYzw5Jzxm','Dw5PB24','BgLUzxm','sw52B2TLq29TBwfUza','B3bLBMfPlxjLC3bVBNnLCY13CW','Dg90ywW','igzYB20G','ugf0AcbUB3qGzM91BMq6ia','CgLWzq','Bg9JyxrPB24','ovblq1jgEG','lu5Vtg9NBW','zxjYB3i','lMPWzW','CgXHDgzVCM0','BwnWxW','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','ChvZAa','BhnW','CMvZB2X2zq','CgfJA2fNzs5QC29U','rMv0y2GGywjVCNrLzcbIEsb1C2vY','CgfYzw50u2vZC2LVBKLK','AgfZ','yMfZzw5HBwu','tM8GC3LTyM9SCYbMB3vUza','B3v0z29PBMDdywXSCW','qMfZzsbKAxjLy3rVCNK6ia','yxnRvxnLCG','BgLZDgvU','y2fSBgjHy2TvCMW','nda4ndu0owXpDwndsW','zMLUywXnzxnZywDL','AMf2yxnJCMLWDhjLywn0','seLhsa','tw96AwXSys81lJaGke1Hy2LUDg9ZAdSGsw50zwWGtwfJie9tifGGmtbFmtvFnYKGqxbWBgvxzwjlAxqVntm3lJm2ie51DMLUqM90lZeUma','C2vHCMnOugfYyw1Z','B3v0Chv0','Dg9VBhm','DxrTx2nHBxbHAwDU','DxrMoa','zNvSzMLSBgvK','zgLYzwn0B3j5','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','lNrZEa','yMfZzty0','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','Dgv4DerVy3vTzw50l3b1yMXPC2HeAwfNBM9ZDgLJCW','AxngAw5PDgu','Dg9Rzw5tDg9YywDLs2v5','cGOTls0kcG','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','v0vcua','B3jPz2LUvg9VBenHBgXjza','ywn0AxzL','z2v0u3rHDhm','BgLUzsbTDxn0igjLigeGCg9ZAxrPDMuGAw50zwDLCG','rM91BMqG','D2fPDezVCKrPywDUB3n0AwnZ','tM8GzgLHz25VC3rPy3m','lMjPBG','y291BNq','DhnJB25MAwCUANnVBG','CMLWz3jLCa','y2XPzw50','vg9KB1DYAxrL','D2vI','Aw52ywXPzf90B2rVx2L0zw0','ywrKrxzLBNrmAxn0zw5LCG','C2nVCgvZ','uxvLC3rPB24G','y3jLyxrLzef0','l2jPBI9YzW','CMvTB3zLrxzLBNrmAxn0zw5LCG','CNvUBMLUzW','yxr4','vxnLihrOAxmGDg9VBcb3AgvUihLVDsbUzwvKihrVigfZAYb0AguGDxnLCIbXDwvZDgLVBNmGzhvYAw5Nigv4zwn1DgLVBI4GvgHPCYbHBgXVD3mGEw91ihrVoGOXlIbhyxrOzxiGDxnLCIbWCMvMzxjLBMnLCYbVCIbYzxf1AxjLBwvUDhmkmI4Gq2XHCMLMEsbHBwjPz3vVDxmGAw5ZDhj1y3rPB25ZcJmUieDLDcbKzwnPC2LVBNmGB24GAw1WBgvTzw50yxrPB24Gy2HVAwnLCYbHCYb5B3uGD29YAWO0lIbpzMzLCIbJAg9Py2vZihrVihrOzsb1C2vYigfIB3v0ihDOyxqGzgLYzwn0Aw9UihrVihrHA2uUcGPvC2fNzsbUB3rLCZOklsbvC2vYCYb3AwXSigfSD2f5CYbIzsbHyMXLihrVihnLBgvJDcaIt3rOzxiIihrVihbYB3zPzguGy3vZDg9TihrLEhqGAw5WDxqklsbvC2uGBxvSDgLtzwXLy3q6ihrYDwuGDg8GywXSB3CGBxvSDgLWBguGyw5ZD2vYCYb0BYbIzsbZzwXLy3rLzcbMB3iGysbXDwvZDgLVBGOTieLMihLVDsbYzwnVBw1LBMqGysbZCgvJAwzPyYbVChrPB24Sig1HA2uGDgHHDcb0AguGzMLYC3qGB3b0Aw9UigLUihrOzsbSAxn0igfUzcbHzgqGiIHszwnVBw1LBMrLzcKIigf0ihrOzsbLBMqGB2yGDgHLigXHyMvS','zMvUy2vK','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','DhjHBNnMB3jTCW','yxbPs2v5','DgHLBG','B25oB3rPzMLJyxrPB24','DxjS','C3rKzxjY','zw50CMLLCW','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','DhnJ','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','tunqihrVB2WG','y2XLyw51Ca','z29Vz2XLlwnZzq','C2TPBgXZ','Cgf0DgvYBIbPCYbYzxf1AxjLza','Cg9W','Ahr0Chm6','Dg9VBhmVy2fSBa','Aw5JBhvKzxm','y2fUy2vS','zg9JDw1LBNrtEw1IB2W','yM0Ynq','cGPbuKDvtuvovfm6ia','BgvUz3rO','ywDLBNrjza','EwfYBI5SB2nR','C3bHD25PBMC','DhnZzxj2zxiUANm','ls1JB2X1Bw4','AM9PBG','u3rHCNrLzcbHz2vUDcbYDw4G','D3jPDgu','zMLSzvbHDgG','DgvZDa','B2f1DgG','CgXHAw4','zgLZCg9Zzq','y29UDgvUDc10ExbL','zxHPDa','Bg9JywXLq29TCgfYzq','y2XLyxi','Dgv4Da','Aw1Hz2uVD2vICa','l29WDc9OB21LyNjLDY9IAw4VCMC','Bwf4','D29YA3nWywnLu3LTyM9S','Dg9KB3ncEvnLC3nPB24','BM90Awz5','Bg9HzenVBw1HBMq','ywjVCNrLza','oIbIB3rOicjSywjLBciGyw5KicjKzxnJCMLWDgLVBIiGyxjLihjLCxvPCMvK','BwLU','ywrK','zMLSzq','yxjNDw1LBNrZ','ls1NBg9I','rgv0ywLSoIa','y2XPzw50twv0ywrHDgfvCMW','C2HHmJu2','BgL0zxjHBa','AxrLBxm','y2HHBMDL','Cgf0Aa','tuvesvvn','oIbPBNzHBgLKihbYAw9YAxr5','zNvUy3rPB24','BgLUzuvUza','yMLUyxj5tMfTzq','z2v0vg9KB3m','Aw1Hz2u','yxjNDw1LBNrZvgv4Da','Dg91y2HgAwXL','AxndB250zxH0','ANnJB25MAwCUANnVBG','Aw5ZDgfSBa','Aw52ywXPzf90B2rVx2nVBNrLBNq','Dg9VBa','Aw5PDgLHBgL6zq','ywXSu2v0DgXLza','y2fSBeLK','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uGB3iGywXSB3DLzcbKAxjLy3rVCMLLCY4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqP','y2XVC2u','t25SEsbODhrWoI8VigfUzcbODhrWCZOVlYbvuKXZigfYzsbZDxbWB3j0zwq','zg9TywLUCW','B2jQzwn0','DgHPBMTPBMC','C3rYAxbbBNnP','BgfUz3vHz2u','C3rYAw5NAwz5','r0LgodDH','C3rHCNrZv2L0Aa','vxnLihrOAxmGDg9VBcb0BYbJCMvHDguGyw5Kig1HBMfNzsbHihn0CNvJDhvYzwqGDgfZAYbSAxn0igzVCIb5B3vYign1CNjLBNqGy29KAw5NihnLC3nPB24UifrOAxmGAgvSChmGEw91ihrYywnRihbYB2DYzxnZlcbVCMDHBML6zsbJB21WBgv4ihrHC2TZlcbHBMqGzgvTB25ZDhjHDguGDgHVCM91z2HUzxnZihrVihrOzsb1C2vYlGPjDcbHBhnVigHLBhbZihrOzsb1C2vYihvUzgvYC3rHBMqGDgHLihbYB2DYzxnZig9MihrOzsb0yxnRigfUzcbVDMvYywXSihbYB2DYzxnZig9MihrOzwLYihjLCxvLC3rZlGOkiYmGv2HLBIb0BYbvC2uGvgHPCYbuB29ScLvZzsb0AgLZihrVB2WGChjVywn0AxzLBhKGAw4GDgHLC2uGC2nLBMfYAw9ZoGOkms4Gq29TCgXLEcbTDwX0As1ZDgvWihrHC2TZic0Gv2HLBIbHihrHC2SGCMvXDwLYzxmGmYbVCIbTB3jLigrPC3rPBMn0ihn0zxbZig9YigfJDgLVBNmkmI4GtM9UlxrYAxzPywWGyw5KignVBxbSzxGGDgfZA3mGlsbuyxnRCYb0Agf0ihjLCxvPCMuGy2fYzwz1BcbWBgfUBMLUzYbVCIbTDwX0AxbSzsbVCgvYyxrPB25ZcJmUifvZzxiGzxHWBgLJAxrSEsbYzxf1zxn0CYb0B2rVigXPC3qGlsbxAgvUihrOzsb1C2vYigrPCMvJDgX5igfZA3mGEw91ihrVihvZzsb0AguGDg9KBYbSAxn0cJqUifvZzxiGChjVDMLKzxmGBxvSDgLWBguGDgfZA3mGlsbxAgvUihvZzxjZihbYB3zPzguGysbSAxn0ig9MihrOAw5NCYb0BYbIzsbKB25LicHUDw1IzxjLzcbVCIbJB21Tys1ZzxbHCMf0zwqPcJuUiefMDgvYihjLy2vPDMLUzYbUzxCGAw5ZDhj1y3rPB25Zic0Gsw1TzwrPyxrLBhKGy2fWDhvYzsb1C2vYihjLCxvPCMvTzw50CYbHCYb0B2rVCWO2lIbxAgvUihLVDsbZDgfYDcb3B3jRAw5Nig9UigeGDgfZAYaTie1HCMSGAxqGyxmGAw5FChjVz3jLC3mGqKvgt1jfigjLz2LUBMLUzYb3B3jRlIbjzgvHBgX5ihLVDsbZAg91BgqGB25SEsbOyxzLig9Uzsb0B2rVigfZigLUx3bYB2DYzxnZigf0igeGDgLTzqO3lIbbzNrLCIbJB21WBgv0Aw5NigeGDgfZAYaTie1HCMSGAxqGyxmGy29TCgXLDgvKigfUzcbHzgqGyw55ig5LDYbMB2XSB3CTDxaGDgfZA3mGzgLZy292zxjLzcbKDxjPBMCGAw1WBgvTzw50yxrPB24kcImJifDOzw4GtK9uihrVifvZzsbuAgLZifrVB2WkcLnRAxaGDxnPBMCGDgHPCYb0B29SihDOzw46cJeUifrOzxjLigLZig9UBhKGysbZAw5NBguSihn0CMfPz2H0zM9YD2fYzcb0yxnRcJiUifrOzsb0yxnRigLZihrYAxzPywWGyw5KihrYywnRAw5NigL0ihbYB3zPzgvZig5Vig9Yz2fUAxPHDgLVBMfSigjLBMvMAxqkmY4GvgHLihrHC2SGy2fUigjLignVBxbSzxrLzcbPBIbSzxnZihrOyw4GmYb0CML2AwfSihn0zxbZcJqUifrOzsb0yxnRigLZihb1CMvSEsbJB252zxjZyxrPB25HBcbVCIbPBMzVCM1HDgLVBMfScGPot1rfihrOyxqGEw91ihnOB3vSzcbUB3qGDxnLihrOAxmGDg9VBcbPzIb0AgvYzsbPCYbVBMX5ig9Uzsb0CML2AwfSihrHC2SGDg8Gzg8UieLUihrOAxmGy2fZzsb5B3uGyxjLigjLDhrLCIbVzMyGANvZDcbKB2LUzYb0AguGDgfZAYbKAxjLy3rSEs4kcImJifrHC2SGu3rHDgvZigfUzcbnyw5Hz2vTzw50cGOXlIaQkLrHC2SGu3rHDgvZkIO6ifvZzsb0AgvZzsbZDgf0zxmGDg8GDhjHy2SGChjVz3jLC3m6cI0GCgvUzgLUzZOGvgfZAYbUB3qGEwv0ihn0yxj0zwqklsbPBL9WCM9NCMvZCZOGq3vYCMvUDgX5ihDVCMTPBMCGB24GkgXPBwL0ihrVie9orsb0yxnRigf0igeGDgLTzsKklsbJB21WBgv0zwq6ifrHC2SGzMLUAxnOzwqGC3vJy2vZC2z1BgX5cGOYlIaQkLrHC2SGtwfUywDLBwvUDcOQoGOTifvWzgf0zsb0yxnRihn0yxr1CYbPBIbYzwfSlxrPBwuGyxmGEw91ihDVCMSklsbnyxjRihrHC2TZignVBxbSzxrLieLntuvesufuruXzigfMDgvYigzPBMLZAgLUzYaOzg9Uj3qGyMf0y2GGy29TCgXLDgLVBNmPcI0Gt25SEsbOyxzLie9orsb0yxnRigLUx3bYB2DYzxnZigf0igfUEsb0Aw1LcI0Gq29TCgXLDguGy3vYCMvUDcb0yxnRCYbIzwzVCMuGC3rHCNrPBMCGBMv3ig9Uzxmklsbszw1VDMuGDgfZA3mGDgHHDcbHCMuGBM8GBg9Uz2vYihjLBgv2yw50igzYB20GDgHLigXPC3qGzw50AxjLBhKkcJmUicOQvgfZAYbdB21WBgv0Aw9UifjLCxvPCMvTzw50CYOQoGOTie9otfKGBwfYAYbHihrHC2SGyxmGy29TCgXLDgvKihDOzw4GEw91igHHDMuGrLvmtfKGywnJB21WBgLZAgvKigL0cI0GswyGEw91igvUy291BNrLCIbLCNjVCNmSigjSB2nRzxjZlcbVCIbJyw5UB3qGzMLUAxnOlcbRzwvWihrOzsb0yxnRigfZigLUx3bYB2DYzxnZcI0Gv2HLBIbIBg9JA2vKlcbJCMvHDguGysbUzxCGDgfZAYbKzxnJCMLIAw5NihDOyxqGBMvLzhmGDg8GyMuGCMvZB2X2zwqklsbozxzLCIbTyxjRigeGDgfZAYbHCYbJB21WBgv0zwqGAwy6cI0GvgvZDhmGyxjLigzHAwXPBMCklsbjBxbSzw1LBNrHDgLVBIbPCYbWyxj0AwfScI0Gww91igvUy291BNrLCMvKihvUCMvZB2X2zwqGzxjYB3jZcI0Gww91ignVDwXKBID0igzPBMqGBMvJzxnZyxj5igzPBgvZig9YigrLCgvUzgvUy2LLCWOknc4GkIPuyxnRiejYzwfRzg93BIOQoGOTienYzwf0zsbZCgvJAwzPyYWGywn0Aw9UywjSzsbPDgvTCWOTiejYzwfRignVBxbSzxGGDgfZA3mGAw50BYbZBwfSBgvYlcbTyw5Hz2vHyMXLihn0zxbZcI0GvxnLignSzwfYlcbKzxnJCMLWDgL2zsb0yxnRig5HBwvZcGPxAgvUigLUigrVDwj0lcb1C2uGDgHPCYb0B29SlIbczwLUzYbWCM9Hy3rPDMuGD2L0Acb0yxnRig1HBMfNzw1LBNqGzgvTB25ZDhjHDgvZigf0DgvUDgL2zw5LC3mGyw5KigvUC3vYzxmGEw91ignVBxbSzxrLigfSBcbYzxf1AxjLBwvUDhmGC3vJy2vZC2z1BgX5lG','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','BxvSDgLtzwXLy3q','lNDLyNa','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','yxjNDw1LBNriAw50','AxnfBMfIBgvK','lM10CW','A2LUza','zMLSzvzLCNnPB25Z','C2vYDMvY','ANnVBG','Dhj1zwnVBg9Y','z2v0','C2HLBgXqyxrO','y2HHCKnVzgvbDa','lMPZB24','zgLZywjSzwq','AxneAxjLy3rVCNK','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','CMvJB3jK','Dgv4DerVy3vTzw50l2rLzMLUAxrPB24','yNjVA2vU','mc4WlJa','DhvWBgu','ls1OAwrKzw4','lNrTCc4','v2vIu2vHCMnOihjLCxvPCMvZieDpt0Dmrv9du0vFs0vz','tgLUzsa','CNvUswq','u2vHCMnOihrOzsb3zwiGDxnPBMCGr29Vz2XLien1C3rVBsbtzwfYy2GGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','zgLZy292zxj5','y29TCgXLDgvK','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','zgvSzxrL','BwnFzwLK','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','BwvTB3j5','AxntEw1IB2XPy0XPBMS','CMCUzxHL','ChjVDg9JB2W','y2HHCMfJDgvY','yxnJAwK','C3rVCMfNzurPCG','C3jJl2v4yw1WBgvZl2rLBw8UDhm','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','C2vUza','Dg9VBenHBgXjza','AwDUB3jL','oIaIAgvHzgvYiIbMAwvSzcbPCYbYzxf1AxjLzcbHBMqGBxvZDcbIzsbHihn0CMLUzW','ChjLCgfYzunHBgXiAwvYyxjJAhK','igj5DgvZicHVCMLNAw5HBdOG','C3jJl2fNzw50l2fNzw50lNrZ','Dg9Rzw4','Dg9vChbLCKnHC2u','Bwv0yq','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','l2jPBI9ZAa','DgLTzvTKyxrLDgLTzv0','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','ig1Z','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','y29UBMvJDa','y2XPzw50sw5MB3jTyxrPB24','tM8GAg92zxiGAw5MB3jTyxrPB24','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','Cgf0DgvYBG','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','BMfTzq','lMDPzG','thnW','sw5MB3jTyxrPB24','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','y2vPBa','DxrTx21LzgL1Bq','mtCYmtG4ntzfzhbNu0O','C3bHD24','C2vZC2LVBKLK','C2vYDMvYtMfTzq','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','zMLSztOVlW','C3rHDhvZ','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','yxbWBgLJyxrPB24VANnVBG','y3jSzG','y29Kzq','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','BgfUz18','C2vZC2LVBG','yxv0AfjLCxvPCMvK','r3jLCa','AgfZq2XPzw50CW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','BM9Zy3jPChq','Dw5RBM93BG','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','BM9Kzv9TB2r1BgvZ','DgfZAW','CgvUzgLUzW','C291CMnL','Bg93','te9x','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','BgLUAW','zMXHDe1HCa','CMfUAW','te9dquXbufbeqvrb','DgfZA2TPBgW','CMvJzw5JEurHExm','zgvMyxvSDen3za','y29TBwfUza','y29UBMvJDgvK','rMLSzuvKAxq','Aw5JB21PBMDdywXSCW','ls1MB2XSB3C'];_0x4008=function(){return _0x27acd4;};return _0x4008();}function resolveAllowedPath(_0x10755b,_0xc3c80d,_0x22b1f5){const _0x45f0bc={_0x5f5b9a:0x81,_0xe211d9:0x8c,_0x1e0311:0x60,_0x571dc1:0xaa,_0x32c502:0x168,_0x3e6ae9:0xf5,_0x51a601:0x60,_0x4814b1:0xcf,_0x3a5068:0x1d1,_0x530b43:0x1fe,_0x5964c6:0xda,_0x2fe64f:0x88},_0x599b9d={_0x551e66:0x39},_0x5bbb74={_0x8378af:0x1c3,_0x1ba5f5:0xb6},_0x417676=_0x5ea9dc[_0x5405ec(_0x45f0bc._0x5f5b9a,-_0x45f0bc._0xe211d9,-_0x45f0bc._0x1e0311,-_0x45f0bc._0x571dc1)](_0x10755b),_0x11ff6c=_0x5ea9dc[_0x5405ec(-_0x45f0bc._0x32c502,-_0x45f0bc._0x3e6ae9,-_0x45f0bc._0x51a601,-_0x45f0bc._0x4814b1)](_0x417676,_0x22b1f5),_0x289972=[_0x417676,..._0xc3c80d['map'](_0x1f59d1=>_0x5ea9dc[_0x5405ec(0x19,0xd,-0x60,-0x12b)](_0x1f59d1))];function _0x46c647(_0x386211,_0x1a8438,_0x5ca459,_0x1efd6c){return _0x4aa629(_0x386211-0x13a,_0x5ca459,_0x5ca459-_0x5bbb74._0x8378af,_0x386211-_0x5bbb74._0x1ba5f5);}if(_0x289972[_0x46c647(0x1ba,0x106,_0x45f0bc._0x3a5068,0x1ca)](_0x4c4292=>isPathInside(_0x4c4292,_0x11ff6c)))return _0x11ff6c;function _0x5405ec(_0x1d759b,_0x312711,_0x2e2da9,_0x13c4ec){return _0x2f0acf(_0x2e2da9- -0x2d0,_0x312711-_0x599b9d._0x551e66,_0x13c4ec,_0x13c4ec-0x12f);}throw new ToolExecutionError(_0x5405ec(0x67,_0x45f0bc._0x530b43,_0x45f0bc._0x5964c6,_0x45f0bc._0x2fe64f)+_0x22b1f5,{'path':_0x22b1f5,'rootDir':_0x417676,'allowedDirs':_0x289972});}async function assertWorkspaceFile(_0x2c0f14){const _0x400581=await stat(_0x2c0f14);if(!_0x400581['isFile']())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x2c0f14,{'path':_0x2c0f14});}function isProbablyBinary(_0x38db4f){return _0x38db4f['includes'](0x0);}var DEFAULT_DESCRIPTION=_0x4aa629(0xd1,0x12c,-0x88,0xc),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x15b125){return _0x15b125 instanceof Error;}function shellExists(_0x32f772){const _0x593b48={_0x2d2c5b:0x307,_0x4beba1:0x3f1},_0x12cb9b={_0x2e9b07:0x107,_0x2ac21c:0xad,_0x5ee842:0x5};function _0x50819a(_0x1590ed,_0xbaa23b,_0x486e68,_0x47c182){return _0x2f0acf(_0x1590ed-_0x12cb9b._0x2e9b07,_0xbaa23b-_0x12cb9b._0x2ac21c,_0x486e68,_0x47c182-_0x12cb9b._0x5ee842);}try{const _0x5d3bf8=statSync(_0x32f772);return _0x5d3bf8[_0x50819a(0x2df,_0x593b48._0x2d2c5b,0x2e8,_0x593b48._0x4beba1)]()&&(_0x5d3bf8['mode']&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x1d3ad4){const _0x2972d3={_0x345086:0x41b,_0x26e60a:0x32b,_0x5b3676:0x3ee,_0x215b1a:0x565,_0xda7136:0x548,_0x168011:0x568,_0x41246b:0x4f1,_0xa4fe25:0x4fc,_0x243670:0x35f,_0x4c7d98:0x5de,_0x2e969d:0x3ed,_0x18de48:0x5ef,_0xe2936b:0x5fd,_0x20d704:0x599,_0x7f5a34:0x456,_0x4d82c2:0x3d1,_0x3205bc:0x561,_0x50254f:0x41c,_0x2e9436:0x40d,_0x5c06ad:0x550,_0x5e6ffd:0x59a,_0x41fd37:0x4a2,_0x5b484e:0x3a1},_0x203462={_0x17f10e:0xe8},_0x3dd2cf={_0x1dd3db:0x13c,_0x1099fe:0xc7};if(_0x1d3ad4)return _0x1d3ad4;if(_0xcb20a5[_0x3317c1(_0x2972d3._0x345086,0x3fc,_0x2972d3._0x26e60a,_0x2972d3._0x5b3676)]()===_0x28e3a3(_0x2972d3._0x215b1a,_0x2972d3._0xda7136,_0x2972d3._0x168011,_0x2972d3._0x41246b))return process[_0x3317c1(_0x2972d3._0xa4fe25,0x471,0x455,_0x2972d3._0x243670)][_0x28e3a3(_0x2972d3._0x4c7d98,_0x2972d3._0x2e969d,0x532,_0x2972d3._0x18de48)]||'cmd.exe';const _0x3897bb=[_0x28e3a3(_0x2972d3._0xe2936b,0x585,0x553,_0x2972d3._0x20d704),_0x28e3a3(_0x2972d3._0x7f5a34,_0x2972d3._0x4d82c2,0x4b2,_0x2972d3._0x3205bc),_0x28e3a3(_0x2972d3._0x50254f,_0x2972d3._0x2e9436,_0x2972d3._0x5c06ad,0x56f),'/usr/bin/sh'];function _0x3317c1(_0xdf0fe6,_0x1dfcb1,_0x463c3d,_0x44ae62){return _0x2f0acf(_0x463c3d-0xc0,_0x1dfcb1-_0x3dd2cf._0x1dd3db,_0x1dfcb1,_0x44ae62-_0x3dd2cf._0x1099fe);}for(const _0x129345 of _0x3897bb){if(shellExists(_0x129345))return _0x129345;}const _0x38b1ba=process['env']['SHELL'];function _0x28e3a3(_0xa42635,_0x4d13e2,_0x9e8d50,_0x30289e){return _0x2f0acf(_0x9e8d50-0x171,_0x4d13e2-0x31,_0x30289e,_0x30289e-_0x203462._0x17f10e);}if(_0x38b1ba&&shellExists(_0x38b1ba))return _0x38b1ba;return _0x3317c1(_0x2972d3._0x5e6ffd,0x4e3,_0x2972d3._0x41fd37,_0x2972d3._0x5b484e);}function buildShellArgs(_0x42385d,_0x93d75f){const _0x5e0a8b={_0x2cd558:0x285,_0x2823f1:0x148,_0x40b5b9:0x22a,_0x40f41e:0x297,_0x358e37:0x2c7},_0x35eece={_0x17b04f:0x492,_0x15a54b:0x1d3},_0xdb27dd={_0x457d97:0x1df,_0x23b9f7:0x12,_0x3f64b6:0x3dc};function _0x55356b(_0x4b981c,_0x45f501,_0xd4c1c2,_0x83d8cc){return _0x4aa629(_0x4b981c-_0xdb27dd._0x457d97,_0x4b981c,_0xd4c1c2-_0xdb27dd._0x23b9f7,_0x83d8cc-_0xdb27dd._0x3f64b6);}if(_0xcb20a5['platform']()==='win32'){const _0x23b8eb=/cmd(\.exe)?$/i[_0xf50156(-0x1c5,-_0x5e0a8b._0x2cd558,-_0x5e0a8b._0x2823f1,-0xea)](_0x93d75f);return _0x23b8eb?['/d','/s','/c',_0x42385d]:[_0xf50156(-_0x5e0a8b._0x40b5b9,-_0x5e0a8b._0x40f41e,-0x179,-_0x5e0a8b._0x358e37),'-NoProfile','-Command',_0x42385d];}function _0xf50156(_0x1f8dfe,_0x1f0251,_0x1e7b89,_0x3cdefe){return _0x2f0acf(_0x1f8dfe- -_0x35eece._0x17b04f,_0x1f0251-_0x35eece._0x15a54b,_0x1e7b89,_0x3cdefe-0x169);}return['-c',_0x42385d];}function resolveCarriageReturns(_0x50dffd){const _0x2b7cf5={_0x4cfe0c:0x53f,_0x18ddf2:0x5d7,_0x79fb92:0x37c,_0x245405:0x445,_0xa48ed4:0x3c9},_0x373fa0={_0x1f477d:0x3cf,_0x10c624:0x39d},_0x3a8b01={_0x5e86c9:0x166,_0x5de10b:0x2b3,_0x4ab107:0x1a1},_0x40a6d9={_0x96b14a:0x1da},_0x236162={_0x24dfc7:0x24,_0x39132c:0x197,_0x568c85:0x23f};function _0x4c0446(_0x1dd2fd,_0x24b9cd,_0x4e1a6a,_0x1e71e5){return _0x4aa629(_0x1dd2fd-_0x236162._0x24dfc7,_0x4e1a6a,_0x4e1a6a-_0x236162._0x39132c,_0x1dd2fd-_0x236162._0x568c85);}function _0x20a844(_0xae7a93,_0x405d15,_0x246d20,_0x4b3f9d){return _0x4aa629(_0xae7a93-0x160,_0x4b3f9d,_0x246d20-_0x40a6d9._0x96b14a,_0x405d15-0x4fe);}return _0x50dffd[_0x20a844(_0x2b7cf5._0x4cfe0c,_0x2b7cf5._0x18ddf2,0x5b3,0x55a)]('\x0a')['map'](_0x1f1fda=>{if(!_0x1f1fda['includes']('\x0d'))return _0x1f1fda;const _0x23560e=_0x1f1fda[_0x2695c(0x324,_0x373fa0._0x1f477d,_0x373fa0._0x10c624,0x463)]('\x0d');function _0x2695c(_0x8c9e38,_0x1c3844,_0x2adfb9,_0xfc2d74){return _0x20a844(_0x8c9e38-_0x3a8b01._0x5e86c9,_0x8c9e38- -_0x3a8b01._0x5de10b,_0x2adfb9-_0x3a8b01._0x4ab107,_0xfc2d74);}return _0x23560e[_0x23560e['length']-0x1]??'';})[_0x20a844(_0x2b7cf5._0x79fb92,0x48a,_0x2b7cf5._0x245405,_0x2b7cf5._0xa48ed4)]('\x0a');}function resolveBackspaces(_0x3811a2){const _0x5a7172={_0x447340:0x51d,_0x2fb351:0x37b,_0x7b39d9:0x348,_0x3263b4:0x337,_0x47c6c7:0x480},_0x4970ec={_0x455626:0x7b},_0x111f05={_0x1fd799:0x203,_0x224c63:0x9c};function _0x47cfea(_0xb2ce5,_0x134cb9,_0x2fc27f,_0xf144cf){return _0x2f0acf(_0xf144cf- -_0x111f05._0x1fd799,_0x134cb9-0x25,_0x2fc27f,_0xf144cf-_0x111f05._0x224c63);}const _0x5bb776=[];for(const _0x55cd5f of Array['from'](_0x3811a2)){_0x55cd5f==='\x08'?_0x5bb776[_0x4c962c(_0x5a7172._0x447340,0x472,0x4ac,_0x5a7172._0x2fb351)]():_0x5bb776[_0x4c962c(_0x5a7172._0x7b39d9,0x425,_0x5a7172._0x3263b4,0x490)](_0x55cd5f);}function _0x4c962c(_0x39032f,_0x5dd4be,_0x350ac8,_0x3f3aa1){return _0x4aa629(_0x39032f-0xcb,_0x3f3aa1,_0x350ac8-_0x4970ec._0x455626,_0x5dd4be-0x4f4);}return _0x5bb776[_0x4c962c(0x3eb,_0x5a7172._0x47c6c7,0x530,0x33e)]('');}function stripAnsiAndControls(_0x21801f){const _0x4420c6={_0x558600:0x599,_0xaa5135:0x590,_0x2c9c64:0x37e,_0x376ff4:0x1c9,_0x2763a4:0x194,_0x3fdfc9:0x3f8,_0x3a32d2:0x462,_0x5e6318:0x4f2,_0x1ca097:0x92,_0x130c61:0x4b,_0x212f5b:0x16f,_0x474f05:0xc3,_0x52cab2:0xd8,_0x50f2c6:0x567,_0xd0e028:0x512,_0x1f4549:0x579,_0x4b0ef5:0x4f6,_0x8da365:0x455,_0x56338e:0x441,_0x334651:0x56a,_0x4b015d:0x33f},_0x28f9bc={_0x16335f:0x145,_0x190654:0xce},_0x27177f={_0x2bb2d5:0x75,_0x6d126e:0x5bb};function _0x6f225a(_0x1467fd,_0x2da729,_0x4fdc58,_0x59bdb0){return _0x4aa629(_0x1467fd-_0x27177f._0x2bb2d5,_0x59bdb0,_0x4fdc58-0x106,_0x2da729-_0x27177f._0x6d126e);}_0x21801f=resolveCarriageReturns(_0x21801f),_0x21801f=resolveBackspaces(_0x21801f),_0x21801f=stripVTControlCharacters(_0x21801f);const _0xa79c0d='\x1b',_0x4f5287='\x07';_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x558600,0x455,_0x4420c6._0xaa5135,_0x4420c6._0x2c9c64)](new RegExp(';[^'+_0x4f5287+_0x16ce46(0x270,_0x4420c6._0x376ff4,0x161,_0x4420c6._0x2763a4)+_0x4f5287,'g'),''),_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x3fdfc9,0x455,_0x4420c6._0x3a32d2,_0x4420c6._0x5e6318)](new RegExp(';[^\x5cn]*?'+_0xa79c0d+'\x5c\x5c','g'),''),_0x21801f=_0x21801f[_0x16ce46(_0x4420c6._0x1ca097,0x35,_0x4420c6._0x130c61,_0x4420c6._0x212f5b)](new RegExp(_0x4f5287,'g'),''),_0x21801f=_0x21801f[_0x16ce46(0x92,_0x4420c6._0x474f05,0x59,_0x4420c6._0x52cab2)](new RegExp(_0xa79c0d+_0x6f225a(_0x4420c6._0x50f2c6,0x4d6,_0x4420c6._0xd0e028,_0x4420c6._0x1f4549)+_0xa79c0d+'\x5c\x5c','g'),''),_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x4b0ef5,_0x4420c6._0x8da365,0x43e,0x3f9)](new RegExp(_0xa79c0d+'[=>7-8()]','g'),''),_0x21801f=_0x21801f[_0x6f225a(_0x4420c6._0x56338e,0x455,_0x4420c6._0x334651,_0x4420c6._0x4b015d)](/[\u0080-\u009F]/g,''),_0x21801f=_0x21801f['replace'](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x16ce46(_0x2553e9,_0x2f11ec,_0x42223c,_0x1c6ffe){return _0x2f0acf(_0x2553e9- -_0x28f9bc._0x16335f,_0x2f11ec-_0x28f9bc._0x190654,_0x1c6ffe,_0x1c6ffe-0x106);}return _0x21801f=_0x21801f[_0x16ce46(0x92,0x152,0x174,0x25)](/[\u23CE\u2424]/g,''),_0x21801f;}function resolveWorkingDirectory(_0x4a7f1f,_0x5c534d,_0x3e68e0){const _0x4cd6b1={_0x2436ee:0x385,_0x4c5569:0x3fa},_0x5351ae={_0x1469d8:0x7f,_0x9c8d59:0x40},_0x2a4715=resolveAllowedPath(_0x5c534d,_0x3e68e0,_0x4a7f1f??'.');function _0x4c8574(_0x80f3b1,_0x54a82a,_0x3b3d3a,_0x5299a9){return _0x2f0acf(_0x5299a9-0x10a,_0x54a82a-0xac,_0x3b3d3a,_0x5299a9-0x51);}function _0x10b565(_0x57c3e6,_0x5eb708,_0x323399,_0x39b8d4){return _0x2f0acf(_0x323399-0x12f,_0x5eb708-_0x5351ae._0x1469d8,_0x39b8d4,_0x39b8d4-_0x5351ae._0x9c8d59);}try{const _0x387d5f=statSync(_0x2a4715);if(!_0x387d5f[_0x10b565(0x4d9,0x541,0x448,_0x4cd6b1._0x2436ee)]())throw new ToolExecutionError(_0x10b565(0x2a8,0x425,0x31f,_0x4cd6b1._0x4c5569)+_0x2a4715,{'cwd':_0x2a4715});return _0x2a4715;}catch(_0x7d4723){if(_0x7d4723 instanceof ToolExecutionError)throw _0x7d4723;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x2a4715,{'cwd':_0x2a4715});}}function killProcessGroup(_0x45ac97,_0x380d8e,_0x3a3685='SIGKILL'){const _0x202af5={_0xaa3e31:0x2dd,_0x2412e3:0x381,_0x2e0d5c:0x195,_0x5b4478:0x380,_0x5ec2cc:0x464,_0x1bbb05:0x581,_0xc177db:0x329,_0x5e76ef:0x369,_0x255d80:0x400,_0x496568:0x40b,_0x542f10:0x5d,_0x4f11fd:0x133,_0x4e3446:0x388,_0x4eedf5:0x20c,_0x21e01f:0x2f5,_0x1527d3:0xff},_0x2cf2ce={_0x57d6d6:0x8a,_0x1cf28c:0x11c};function _0x32c9c8(_0x4d5025,_0x35d9da,_0x4f6b4d,_0x4aa1bc){return _0x2f0acf(_0x35d9da- -0x3f8,_0x35d9da-0x64,_0x4d5025,_0x4aa1bc-0x12);}function _0x2b3f4d(_0x295a2f,_0x3c8350,_0x4c0b21,_0x440dec){return _0x4aa629(_0x295a2f-_0x2cf2ce._0x57d6d6,_0x440dec,_0x4c0b21-_0x2cf2ce._0x1cf28c,_0x295a2f-0x42e);}if(!_0x45ac97[_0x2b3f4d(_0x202af5._0xaa3e31,_0x202af5._0x2412e3,_0x202af5._0x2e0d5c,_0x202af5._0x5b4478)])return;if(_0x380d8e)try{_0x1744cf(_0x2b3f4d(_0x202af5._0x5ec2cc,_0x202af5._0x1bbb05,_0x202af5._0xc177db,0x320),[_0x2b3f4d(0x31e,_0x202af5._0x5e76ef,0x3df,0x41d),_0x45ac97[_0x2b3f4d(0x2dd,_0x202af5._0x255d80,_0x202af5._0x496568,0x2e4)][_0x32c9c8(-0x24,_0x202af5._0x542f10,0x27,_0x202af5._0x4f11fd)](),'/T','/F'],{'stdio':_0x2b3f4d(0x429,0x30e,_0x202af5._0x4e3446,0x503)});return;}catch{_0x45ac97['kill'](_0x3a3685);return;}try{process['kill'](-_0x45ac97[_0x32c9c8(-0x125,-_0x202af5._0x4eedf5,-_0x202af5._0x21e01f,-0x168)],_0x3a3685);}catch{_0x45ac97[_0x32c9c8(-0x174,-0x1b8,-0x101,-_0x202af5._0x1527d3)](_0x3a3685);}}function appendChunk(_0x51130e,_0x23f32f,_0x5cb907,_0x37cce5,_0x1c973b){const _0x5599a9={_0x25512f:0x1fe,_0x2e0d41:0x1b6,_0x550e76:0x37,_0x417009:0x36},_0x5256b9={_0x443287:0x44d,_0x3b8caa:0x184},_0x1bfaf0={_0x5a510c:0x2a5,_0x2e98f4:0xdd},_0x4a2c5e=_0x37cce5?stripAnsiAndControls(_0x5cb907):_0x5cb907;if(_0x4a2c5e[_0x4fc49d(-_0x5599a9._0x25512f,-0xb3,-_0x5599a9._0x2e0d41,-0x18a)]===0x0)return;function _0x5b8975(_0x1c0584,_0x439e5f,_0x18c943,_0x15888a){return _0x2f0acf(_0x1c0584- -_0x1bfaf0._0x5a510c,_0x439e5f-0xf8,_0x15888a,_0x15888a-_0x1bfaf0._0x2e98f4);}_0x51130e['push'](_0x4a2c5e);function _0x4fc49d(_0x59277a,_0x23ffb0,_0x453da4,_0x2eb30f){return _0x2f0acf(_0x2eb30f- -_0x5256b9._0x443287,_0x23ffb0-_0x5256b9._0x3b8caa,_0x59277a,_0x2eb30f-0x12e);}_0x23f32f[_0x5b8975(-_0x5599a9._0x550e76,0xc0,-_0x5599a9._0x417009,-0x145)](_0x4a2c5e),_0x1c973b();}function createBashTool(_0x1fb303={}){const _0x1e6e72={_0x402c9a:0x70b,_0x51b590:0x6d3,_0x2ba574:0x63a,_0x9ba532:0x491,_0x172c64:0x39f,_0x25105b:0x275,_0x9684d2:0x3cb,_0x4f4132:0x446,_0x592b77:0x386,_0x488cc1:0x2ab,_0x4ac024:0x581,_0xea216e:0x5d1,_0x33898a:0x21a,_0x1c1224:0x2e2,_0x2c98e3:0x2dc,_0xc0b7b1:0x3b8,_0xe7eccc:0x3e6,_0x10306e:0x454,_0xf62dc2:0x4bf,_0x47dd5e:0x380,_0xf5aa96:0x4d9,_0x5c101c:0x5e7,_0x4aa0ad:0x4ae,_0xd5a52e:0x475,_0x487316:0x594,_0x5e56e1:0x67a,_0x3a1a6e:0x66b,_0x5483c0:0x6c6,_0x3bd405:0x5fb,_0x18652c:0x626},_0xf9956={_0x3e0841:0xe,_0x9c9e75:0x2b2,_0x442b6e:0x16b,_0x80693b:0x24,_0x2e48cc:0x154,_0x24da73:0x11a,_0x5dabd9:0x1ee,_0xdb98a6:0xb4,_0x1101eb:0x8f,_0x2a7f34:0x1bd,_0x572979:0x6f,_0x4bb3d9:0x2f,_0x5eaa0d:0xa1,_0x39c9f9:0x209,_0xd892d4:0x5b,_0x4769c8:0x12f,_0x22e382:0x9d,_0x47a078:0xe6,_0x17dabc:0x15,_0xe1728b:0x18c,_0x36a29a:0xd4,_0x27d844:0x205,_0x1df643:0x2a9,_0x59c151:0x16c,_0x3b331e:0x7d,_0x376036:0xe1,_0x23f64a:0x129,_0xcf3c30:0x73,_0x5054eb:0xf1,_0x40433b:0x3d,_0x3c873f:0x267,_0x4a5396:0x278,_0x3b41a7:0x2eb,_0x2fab66:0xb4,_0x43805e:0x32,_0x5c600f:0x329,_0x5c8bb8:0x3bb,_0xa5eb3b:0x2d0,_0x2e2b30:0x1c5,_0x4b11d8:0x13b,_0x3e44ec:0xb2,_0x5ae44d:0x16a,_0x1cbe54:0xd2,_0x468722:0x3c,_0x327dc1:0x9a,_0x3adb69:0x6e,_0x3db994:0x7f,_0x13fb95:0x78,_0x17916a:0x135,_0x263757:0x1d1,_0x1277a8:0x70,_0x35de81:0xd7,_0x232346:0x155,_0x439891:0x81,_0x262825:0x136,_0x31cb6d:0x21,_0x1a9c20:0xd1,_0x564995:0xfc,_0x2bd634:0xb0,_0x152fce:0x149,_0x5c0014:0x101,_0x2a4e9c:0x1d1,_0x2624a2:0x154,_0x25f0d1:0x213,_0x4dbcc8:0x322,_0x4edf21:0x127,_0x47c9b8:0x4b,_0x400f5d:0x185,_0x4ae788:0x259,_0x28501b:0x165,_0x34b102:0x6a,_0x34cd9a:0x4d,_0x1fccda:0x5f,_0x382b73:0x78},_0x5a1232={_0x4f1faf:0xfb},_0x2e56ba={_0x3e83df:0x17f},_0x2fbefd={_0x390ddb:0x488,_0x14daa1:0x378},_0x5d5c8e={_0x171b6f:0x257,_0x22e26b:0x20e},_0x53b945={_0x268476:0x3cf},_0x501510={_0xd28560:0x1b8,_0x1ee923:0x406},_0x5e36b6={_0x4b44cc:0x158,_0x58e223:0x189},_0x60cbfc=_0x1d2251[_0x547264(0x339,0x305,0x297,0x289)](_0x1fb303['defaultCwd']??process[_0x1df9f1(_0x1e6e72._0x402c9a,0x6a0,_0x1e6e72._0x51b590,0x7d1)]()),_0x74039c=(_0x1fb303[_0x1df9f1(0x5ac,_0x1e6e72._0x2ba574,0x6c0,0x61f)]??[])[_0x1df9f1(_0x1e6e72._0x9ba532,0x3b3,0x4b3,_0x1e6e72._0x172c64)](_0x1bc6a6=>_0x1d2251[_0x1df9f1(0x3df,0x556,0x4f5,0x52e)](_0x1bc6a6)),_0x7e8d85=_0x1fb303[_0x547264(0x2cd,0x1a2,_0x1e6e72._0x25105b,0x208)]??DEFAULT_TIMEOUT_MS;function _0x1df9f1(_0x3ea4bd,_0x3a9222,_0xf2f817,_0xdc7c71){return _0x4aa629(_0x3ea4bd-_0x5e36b6._0x4b44cc,_0x3ea4bd,_0xf2f817-_0x5e36b6._0x58e223,_0xf2f817-0x5c2);}function _0x547264(_0x2460a4,_0x199282,_0x8de4c4,_0x665e8a){return _0x4aa629(_0x2460a4-0xc7,_0x199282,_0x8de4c4-_0x501510._0xd28560,_0x2460a4-_0x501510._0x1ee923);}const _0x2e6b7b=_0x1fb303[_0x547264(_0x1e6e72._0x9684d2,_0x1e6e72._0x4f4132,_0x1e6e72._0x592b77,_0x1e6e72._0x488cc1)]??!![],_0x51a97a=_0x1fb303[_0x1df9f1(_0x1e6e72._0x4ac024,0x5c8,_0x1e6e72._0xea216e,0x64b)]??_0x547264(0x2e2,_0x1e6e72._0x33898a,0x1f6,_0x1e6e72._0x1c1224);return defineTool({'name':_0x51a97a,'description':_0x1fb303[_0x547264(_0x1e6e72._0x2c98e3,0x325,_0x1e6e72._0xc0b7b1,_0x1e6e72._0xe7eccc)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':'object','properties':{'command':{'type':_0x547264(_0x1e6e72._0x10306e,_0x1e6e72._0xf62dc2,_0x1e6e72._0x47dd5e,0x3fb)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x547264(_0x1e6e72._0xf5aa96,_0x1e6e72._0x5c101c,_0x1e6e72._0x4aa0ad,_0x1e6e72._0xd5a52e)},'ignoreOutput':{'type':_0x1df9f1(_0x1e6e72._0x487316,_0x1e6e72._0x5e56e1,_0x1e6e72._0x3a1a6e,0x62d)}},'required':[_0x1df9f1(_0x1e6e72._0x5483c0,0x70e,_0x1e6e72._0x3bd405,_0x1e6e72._0x18652c)]},async *'execute'(_0xf36a05,_0xb61f19){const _0xe2cc97={_0x646f6b:0x5b9,_0x11c8a7:0x454,_0x10c257:0x474,_0x57a54e:0x4c4,_0x4f7899:0x38d},_0x129a82={_0x1c7c24:0x77b,_0x16d35a:0x63f,_0x16cb1:0x524,_0x1e1f78:0x4ec,_0x32d1f9:0x678},_0x46c012={_0x41ca7b:0x11d,_0x35d3c4:0x511},_0x3bca7d={_0x5e598f:0x12e,_0x252c51:0x1e9},_0x5f25cf={_0x2406ad:0x11c,_0x1a5052:0xdd},_0x500e55=_0xf36a05[_0x5b61d3(-0x37,-_0xf9956._0x3e0841,-0xd6,0x6d)]??_0x7e8d85;if(!Number['isFinite'](_0x500e55)||_0x500e55<0x1)throw new ToolExecutionError(_0x41a855(_0xf9956._0x9c9e75,0x297,0x2ec,_0xf9956._0x442b6e),{'command':_0xf36a05[_0x5b61d3(0x15,-0x12f,-0x167,-_0xf9956._0x80693b)]});throwIfAborted(_0xb61f19[_0x5b61d3(-0x279,-0x1e7,-0x17c,-_0xf9956._0x2e48cc)]);const _0x176d92=resolveWorkingDirectory(_0xf36a05[_0x5b61d3(0x19e,_0xf9956._0x24da73,_0xf9956._0x5dabd9,_0xf9956._0xdb98a6)],_0x60cbfc,_0x74039c),_0x465507=_0xf36a05['ignoreOutput']??![],_0xdb8854=resolveDefaultShell(_0x1fb303[_0x5b61d3(0x82,_0xf9956._0x1101eb,-_0xf9956._0x2a7f34,-0x85)]);function _0x41a855(_0x4ea619,_0x5d62d1,_0x1497c9,_0x46a9de){return _0x1df9f1(_0x46a9de,_0x5d62d1-0x21,_0x5d62d1- -_0x53b945._0x268476,_0x46a9de-0xaf);}const _0x199b13=buildShellArgs(_0xf36a05[_0x5b61d3(_0xf9956._0x572979,-_0xf9956._0x4bb3d9,_0xf9956._0x5eaa0d,-0x24)],_0xdb8854);function _0x5b61d3(_0x4f6fcf,_0x358237,_0x174e17,_0x6f0f0){return _0x547264(_0x6f0f0- -0x463,_0x358237,_0x174e17-_0x5f25cf._0x2406ad,_0x6f0f0-_0x5f25cf._0x1a5052);}const _0x2f2976=_0xcb20a5[_0x5b61d3(-_0xf9956._0x39c9f9,-0xd,-_0xf9956._0xd892d4,-_0xf9956._0x4769c8)]()==='win32';let _0xb13729;try{_0xb13729=_0x1744cf(_0xdb8854,_0x199b13,{'cwd':_0x176d92,'env':{...process['env'],..._0x1fb303['env']??{}},'stdio':_0x465507?[_0x5b61d3(-_0xf9956._0x22e382,_0xf9956._0x47a078,0xcc,-0x62),_0x5b61d3(-0xe7,0x5d,_0xf9956._0x17dabc,-0x62),_0x5b61d3(-_0xf9956._0xe1728b,_0xf9956._0x36a29a,0x2d,-0x62)]:[_0x41a855(_0xf9956._0x27d844,0x1ee,_0xf9956._0x1df643,0x131),_0x5b61d3(-_0xf9956._0x59c151,-_0xf9956._0x3b331e,-_0xf9956._0x376036,-0x135),'pipe'],'shell':![],'windowsHide':!![],'detached':!_0x2f2976});}catch(_0x833a15){if(isErrnoException(_0x833a15)&&_0x833a15[_0x5b61d3(-_0xf9956._0x23f64a,-_0xf9956._0xcf3c30,-_0xf9956._0x5054eb,-_0xf9956._0x40433b)]===_0x41a855(_0xf9956._0x3c873f,_0xf9956._0x4a5396,_0xf9956._0x3b41a7,0x183))throw new ToolExecutionError(_0x41a855(0x11d,_0xf9956._0x2fab66,-_0xf9956._0x43805e,0x1d8)+_0xdb8854,{'command':_0xf36a05['command'],'cwd':_0x176d92,'shellPath':_0xdb8854});throw new ToolExecutionError(_0x833a15 instanceof Error?_0x833a15[_0x41a855(0x223,0x2f4,_0xf9956._0x5c600f,_0xf9956._0x5c8bb8)]:String(_0x833a15),{'command':_0xf36a05[_0x41a855(_0xf9956._0xa5eb3b,0x22c,_0xf9956._0x2e2b30,0x19f)],'cwd':_0x176d92,'shellPath':_0xdb8854});}const _0x1fee3d=[],_0x1aa3c5=[],_0x35abc2=new StringDecoder(_0x41a855(0x19d,_0xf9956._0x4b11d8,_0xf9956._0x3e44ec,_0xf9956._0x5ae44d)),_0x52b18b=new StringDecoder(_0x5b61d3(0x2,-_0xf9956._0x1cbe54,-_0xf9956._0x468722,-0x115));let _0x2dcf58,_0x4db235=![],_0x25bf13;const _0x3cf29a=()=>{if(!_0x2dcf58)return;const _0x212803=_0x2dcf58;_0x2dcf58=void 0x0,_0x212803();},_0x3ce3b0=async()=>{if(_0x1aa3c5[_0x4389ca(_0x5d5c8e._0x171b6f,0x2be,0x3eb,_0x5d5c8e._0x22e26b)]>0x0||_0x4db235)return;function _0x4389ca(_0x4c9ff7,_0x322995,_0x543948,_0x172ff6){return _0x5b61d3(_0x4c9ff7-_0x3bca7d._0x5e598f,_0x172ff6,_0x543948-_0x3bca7d._0x252c51,_0x322995-0x395);}await new Promise(_0x1ef375=>{_0x2dcf58=_0x1ef375;});},_0x33d881=_0x4418c0=>{function _0x50d8fc(_0x406ba5,_0x2d8cee,_0x3ccf45,_0x2fac59){return _0x5b61d3(_0x406ba5-0x1bb,_0x406ba5,_0x3ccf45-0x64,_0x2fac59-0x433);}appendChunk(_0x1fee3d,_0x1aa3c5,_0x35abc2[_0x50d8fc(_0x2fbefd._0x390ddb,_0x2fbefd._0x14daa1,0x3df,0x364)](_0x4418c0),_0x2e6b7b,_0x3cf29a);},_0x158449=_0x135f23=>{const _0x10fc74={_0x2abbf7:0x202};function _0xf375a0(_0x37c970,_0x44f9dd,_0x469a8d,_0x559bd5){return _0x41a855(_0x37c970-0x13d,_0x37c970- -_0x10fc74._0x2abbf7,_0x469a8d-0x167,_0x469a8d);}appendChunk(_0x1fee3d,_0x1aa3c5,_0x52b18b[_0xf375a0(-0x81,-_0x2e56ba._0x3e83df,-0x84,0x9)](_0x135f23),_0x2e6b7b,_0x3cf29a);};_0xb13729[_0x41a855(_0xf9956._0x327dc1,0xfe,0xd2,-0x25)]?.['on']('data',_0x33d881),_0xb13729['stderr']?.['on'](_0x5b61d3(_0xf9956._0x3adb69,0x161,-_0xf9956._0x3db994,_0xf9956._0x13fb95),_0x158449);let _0x3869eb=![],_0x17d4a0;const _0x3027a3=addAbortListener(_0xb61f19[_0x5b61d3(-_0xf9956._0x17916a,-0x3b,-_0xf9956._0x263757,-_0xf9956._0x2e48cc)],()=>{_0x25bf13=toAbortError(_0xb61f19[_0x556efc(0x154,0x28f,_0x5a1232._0x4f1faf,0x1b)]['reason']),_0x4db235=!![],_0x3cf29a();function _0x556efc(_0x2eca39,_0x26ba8c,_0x44b50c,_0x20090a){return _0x41a855(_0x2eca39-0x164,_0x2eca39-0x58,_0x44b50c-0xc1,_0x26ba8c);}try{killProcessGroup(_0xb13729,_0x2f2976);}catch{}});try{const _0x1ddaed=new Promise((_0x5224cc,_0x44bfa6)=>{const _0xf29937={_0x13f44b:0xa8,_0x49b54f:0x4ab},_0x3b180b={_0x31d9d1:0x21,_0x231d34:0x78,_0x5f3b1d:0x1ad,_0x5b0f32:0x100,_0x3a29d6:0x4},_0x383de7={_0x418f32:0x31},_0x35d1dd=()=>{function _0x36829d(_0x3b99fe,_0x5c9e45,_0x4c63a7,_0x1a2e99){return _0x561a(_0x5c9e45- -0x11f,_0x1a2e99);}function _0x53180e(_0x465e64,_0x5c0244,_0x2cb2ef,_0x21d07e){return _0x561a(_0x21d07e-_0x383de7._0x418f32,_0x5c0244);}_0x17d4a0&&(clearTimeout(_0x17d4a0),_0x17d4a0=void 0x0),_0xb13729['off'](_0x36829d(-0x72,0x5f,-_0x3b180b._0x31d9d1,-_0x3b180b._0x231d34),_0x17b6d8),_0xb13729[_0x36829d(0x2f7,0x226,_0x3b180b._0x5f3b1d,_0x3b180b._0x5b0f32)](_0x36829d(-0x54,0xf3,-_0x3b180b._0x3a29d6,0x1cc),_0x4dd5a5);},_0x17b6d8=_0x22f28c=>{_0x4db235=!![],_0x3cf29a(),_0x35d1dd(),_0x44bfa6(_0x25bf13??_0x22f28c);},_0x4dd5a5=(_0x1516f5,_0x285e82)=>{_0x3869eb=!![],appendChunk(_0x1fee3d,_0x1aa3c5,_0x35abc2['end'](),_0x2e6b7b,_0x3cf29a),appendChunk(_0x1fee3d,_0x1aa3c5,_0x52b18b['end'](),_0x2e6b7b,_0x3cf29a),_0x4db235=!![],_0x3cf29a(),_0x35d1dd();if(_0x25bf13){_0x44bfa6(_0x25bf13);return;}_0x5224cc({'code':_0x1516f5,'signal':_0x285e82});};function _0x30609b(_0x360b59,_0x2d3fe9,_0xcb1a33,_0xca780f){return _0x5b61d3(_0x360b59-0x1d4,_0xcb1a33,_0xcb1a33-_0x46c012._0x41ca7b,_0x2d3fe9-_0x46c012._0x35d3c4);}_0x17d4a0=setTimeout(()=>{const _0x729091={_0x21a770:0x37c};_0x4db235=!![];function _0x327d42(_0x432418,_0x3f6a05,_0x1c2085,_0x2a5bba){return _0x561a(_0x2a5bba-0x321,_0x432418);}_0x3cf29a(),_0x35d1dd();try{killProcessGroup(_0xb13729,_0x2f2976);}catch{}function _0x477f5e(_0x53c05a,_0x1316a9,_0x3f1636,_0x261793){return _0x561a(_0x1316a9-_0x729091._0x21a770,_0x3f1636);}_0x44bfa6(new ToolExecutionError(_0x477f5e(_0x129a82._0x1c7c24,_0x129a82._0x16d35a,0x580,_0x129a82._0x16cb1)+_0x500e55+_0x477f5e(0x4a9,0x5d5,0x627,0x4e7),{'command':_0xf36a05[_0x327d42(_0x129a82._0x1e1f78,_0x129a82._0x32d1f9,0x659,0x5ac)],'cwd':_0x176d92,'shellPath':_0xdb8854,'timeoutMs':_0x500e55,'timedOut':!![]}));},_0x500e55),_0xb13729[_0x30609b(0x4c9,0x504,_0xe2cc97._0x646f6b,_0xe2cc97._0x11c8a7)]('error',_0x17b6d8);function _0xd7fed0(_0x4e1137,_0xbdc2c1,_0x3b89f6,_0x391361){return _0x5b61d3(_0x4e1137-0x18b,_0x3b89f6,_0x3b89f6-_0xf29937._0x13f44b,_0x4e1137-_0xf29937._0x49b54f);}_0xb13729['once'](_0x30609b(0x4a0,_0xe2cc97._0x10c257,_0xe2cc97._0x57a54e,_0xe2cc97._0x4f7899),_0x4dd5a5);});while(_0x1aa3c5[_0x5b61d3(-0xe7,-0x21d,-_0xf9956._0x1277a8,-_0xf9956._0x35de81)]>0x0||!_0x4db235){if(_0x1aa3c5['length']===0x0){await _0x3ce3b0();continue;}const _0x24b02f=_0x1aa3c5[_0x5b61d3(-0x22f,-_0xf9956._0x4b11d8,-0x14c,-_0xf9956._0x232346)]();_0x24b02f!==void 0x0&&(yield _0x24b02f);}const _0x281715=await _0x1ddaed,_0x7b0656=_0x465507?'exit\x20code\x20'+(_0x281715['code']??0x0):_0x1fee3d[_0x5b61d3(-_0xf9956._0x439891,-_0xf9956._0x262825,_0xf9956._0x31cb6d,-_0xf9956._0x1a9c20)](''),_0x113adc={'command':_0xf36a05[_0x5b61d3(-_0xf9956._0x564995,-0xbf,_0xf9956._0x2bd634,-0x24)],'cwd':_0x176d92,'exitCode':_0x281715[_0x5b61d3(-_0xf9956._0x152fce,-0x130,-_0xf9956._0x5c0014,-_0xf9956._0x40433b)]??0x0,'signal':_0x281715[_0x5b61d3(-_0xf9956._0x27d844,-_0xf9956._0x2a4e9c,-0x130,-_0xf9956._0x2624a2)],'ignoreOutput':_0x465507,'shellPath':_0xdb8854,'timeoutMs':_0x500e55};if(_0x281715['code']!==0x0)throw new ToolExecutionError(_0x7b0656||'Command\x20exited\x20with\x20code\x20'+(_0x281715[_0x41a855(0x13d,_0xf9956._0x25f0d1,0x1fc,_0xf9956._0x4dbcc8)]??0x0),_0x113adc);return createToolOutput(_0x7b0656,_0x113adc);}catch(_0x45cea4){while(_0x1aa3c5[_0x5b61d3(-_0xf9956._0x4edf21,-_0xf9956._0x47c9b8,-0x6d,-0xd7)]>0x0){const _0x1a38b5=_0x1aa3c5[_0x5b61d3(-0x58,-_0xf9956._0x400f5d,-_0xf9956._0x4ae788,-0x155)]();_0x1a38b5!==void 0x0&&(yield _0x1a38b5);}if(_0x45cea4 instanceof ToolExecutionError)throw _0x45cea4;if(_0x25bf13)throw _0x25bf13;if(isErrnoException(_0x45cea4)&&_0x45cea4['code']===_0x41a855(0x36f,0x278,_0xf9956._0x28501b,0x2dc))throw new ToolExecutionError('Shell\x20not\x20found:\x20'+_0xdb8854,{'command':_0xf36a05[_0x41a855(0x1fb,0x22c,0x290,0x2ff)],'cwd':_0x176d92,'shellPath':_0xdb8854});throw new ToolExecutionError(_0x45cea4 instanceof Error?_0x45cea4[_0x5b61d3(-0x1,-0x27,-_0xf9956._0x34b102,0xa4)]:String(_0x45cea4),{'command':_0xf36a05['command'],'cwd':_0x176d92,'shellPath':_0xdb8854});}finally{_0x17d4a0&&clearTimeout(_0x17d4a0);_0x3027a3(),_0xb13729['stdout']?.['off'](_0x5b61d3(0x8b,_0xf9956._0x34cd9a,0x189,_0xf9956._0x13fb95),_0x33d881),_0xb13729[_0x5b61d3(_0xf9956._0x1fccda,-0xef,-0x230,-0xe9)]?.['off'](_0x5b61d3(-0x2c,-0xb9,0xf0,_0xf9956._0x382b73),_0x158449);if(!_0x3869eb&&_0xb13729['pid']&&!_0xb13729['killed'])try{killProcessGroup(_0xb13729,_0x2f2976);}catch{}}}});}function createShellExecTool(_0x24e5c3={}){return createBashTool(_0x24e5c3);}import{readdir,readFile as _0x497f98}from'fs/promises';import{extname,join as _0x574a62}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x4552f9,join,relative as _0x5d85c0,resolve as _0x4d21fe}from'path';import{readdir as _0x58c123,readFile as _0x233bc9}from'fs/promises';import{join as _0x1cea78,relative as _0x3bb228,sep}from'path';import{delimiter}from'path';import{mkdir as _0x101fea,rm,stat as _0x378dfe,writeFile}from'fs/promises';import{hostname}from'os';import{dirname as _0xea0fbd}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x4592d8,rename,writeFile as _0x7632f5}from'fs/promises';import{homedir as _0xb68284}from'os';import{dirname as _0x4b68eb,isAbsolute as _0x2c07dd,join as _0x55d185,resolve as _0x1743fd}from'path';import{parse as _0x383526,stringify as _0x103b1a}from'yaml';import{cp,mkdir as _0x46c9c8,readFile as _0xcf4efa,rm as _0x42bbd1,writeFile as _0x534423}from'fs/promises';import{homedir}from'os';import{join as _0x1d7816}from'path';import{parse as _0x162035,stringify as _0x8a9f9f}from'yaml';import{z}from'zod';import{readdir as _0x213317,readFile as _0x41861f}from'fs/promises';import{join as _0x5f5b71}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x3f91f0){const _0x1018c9={_0x36e308:0x4a0,_0x38be69:0x402,_0x5b5e33:0x43c,_0x37989e:0x4a0,_0xcc61f2:0x4a0,_0x21ded8:0x371,_0x3e7a87:0x47d},_0x314740={_0x3364ad:0x1c7,_0x2d0750:0x6e,_0x635f7e:0x87},_0x47b559={_0x43adfb:0x1dc,_0x411e25:0x51a},_0x4a810d=[];let _0x23a60f='';function _0x307979(_0x2dee6c,_0x43f132,_0x32fba5,_0xb42032){return _0x4aa629(_0x2dee6c-0x11d,_0x32fba5,_0x32fba5-_0x47b559._0x43adfb,_0x2dee6c-_0x47b559._0x411e25);}let _0x19eeb9=0x0;while(_0x19eeb9<_0x3f91f0[_0x307979(_0x1018c9._0x36e308,0x3c6,_0x1018c9._0x38be69,_0x1018c9._0x5b5e33)]){const _0x2067e2=_0x3f91f0[_0x19eeb9];if(_0x2067e2==='\x5c'&&_0x19eeb9+0x1<_0x3f91f0[_0x4dc0f6(-0x121,0x78,0xf8,0xd)])_0x23a60f+=_0x3f91f0[_0x19eeb9+0x1],_0x19eeb9+=0x2;else{if(_0x2067e2==='\x22'||_0x2067e2==='\x27'){const _0x523582=_0x2067e2;_0x19eeb9++;while(_0x19eeb9<_0x3f91f0[_0x307979(_0x1018c9._0x37989e,0x4d7,0x5a9,0x3d2)]&&_0x3f91f0[_0x19eeb9]!==_0x523582){_0x3f91f0[_0x19eeb9]==='\x5c'&&_0x19eeb9+0x1<_0x3f91f0[_0x307979(_0x1018c9._0xcc61f2,0x494,0x549,0x3e8)]?(_0x23a60f+=_0x3f91f0[_0x19eeb9+0x1],_0x19eeb9+=0x2):(_0x23a60f+=_0x3f91f0[_0x19eeb9],_0x19eeb9++);}_0x19eeb9++;}else _0x2067e2!==void 0x0&&/\s/['test'](_0x2067e2)?(_0x23a60f&&(_0x4a810d['push'](_0x23a60f),_0x23a60f=''),_0x19eeb9++):(_0x23a60f+=_0x2067e2,_0x19eeb9++);}}if(_0x23a60f)_0x4a810d[_0x307979(0x44b,_0x1018c9._0x21ded8,_0x1018c9._0x3e7a87,0x43b)](_0x23a60f);function _0x4dc0f6(_0x217a44,_0x4b1bda,_0x5e01af,_0x571871){return _0x4aa629(_0x217a44-_0x314740._0x3364ad,_0x4b1bda,_0x5e01af-_0x314740._0x2d0750,_0x571871-_0x314740._0x635f7e);}return _0x4a810d;}function renderCommandInstructions(_0x6ca64d){const _0xc925c4={_0x33f6ea:0x34c,_0x4cfeb0:0x190,_0x3db28a:0x4c,_0x3215a6:0x17a,_0x50dc5e:0x189,_0x2d02ce:0x31d,_0x44c889:0x24d,_0x23d7d6:0xf4,_0x48f1e4:0x2be,_0x1d6925:0x2d9,_0x48fb20:0x2f2,_0x4cd191:0x1ad,_0xe37a74:0x107,_0x35c5c0:0x3bf,_0x2129bf:0x2dd,_0x28f1ed:0x2b0,_0x213388:0x228,_0x2ea427:0x23f},_0x26bea5={_0x12aa92:0x482,_0x212392:0x172},_0x5ef97d={_0x35e881:0x10,_0x2f638a:0xc5},_0x178914={_0x302422:0x151,_0x374e5d:0xe5},_0x54d84f={_0x47231b:0x313};function _0x10b227(_0x364fe5,_0x57b92b,_0x690e9,_0x3404d3){return _0x4aa629(_0x364fe5-0x1b1,_0x3404d3,_0x690e9-0x132,_0x57b92b-_0x54d84f._0x47231b);}let _0x388613=_0x6ca64d[_0x10b227(_0xc925c4._0x33f6ea,0x21a,0x162,0x306)],_0x1df676=![];const _0x3477fe=tokenizeCommandArguments(_0x6ca64d[_0x18fd67(-0x256,-_0xc925c4._0x4cfeb0,-_0xc925c4._0x3db28a,-0x25c)]);_0x388613=_0x388613['replace'](/\$ARGUMENTS\[(\d+)\]/g,(_0xa13bdd,_0x46eba1)=>{return _0x1df676=!![],_0x3477fe[Number(_0x46eba1)]??'';}),_0x388613=_0x388613['replace'](/\$ARGUMENTS\b/g,()=>{function _0x365adf(_0x260da8,_0x156fe7,_0x445afb,_0x181a23){return _0x10b227(_0x260da8-_0x178914._0x302422,_0x445afb- -0x203,_0x445afb-_0x178914._0x374e5d,_0x156fe7);}return _0x1df676=!![],_0x6ca64d[_0x365adf(-_0x5ef97d._0x35e881,0x0,_0x5ef97d._0x2f638a,0x63)];});if(_0x6ca64d[_0x18fd67(-_0xc925c4._0x3215a6,-0x24d,-0x2c7,-0x36a)]&&_0x6ca64d[_0x10b227(_0xc925c4._0x50dc5e,0x20b,0x282,_0xc925c4._0x2d02ce)]['length']>0x0)for(let _0x55c4dc=0x0;_0x55c4dc<_0x6ca64d[_0x18fd67(-0x180,-_0xc925c4._0x44c889,-0x1f8,-0x183)][_0x18fd67(-_0xc925c4._0x23d7d6,-0x1bf,-0x104,-_0xc925c4._0x48f1e4)];_0x55c4dc++){const _0x3d637b=_0x6ca64d[_0x10b227(_0xc925c4._0x1d6925,0x20b,0x1bc,_0xc925c4._0x48fb20)][_0x55c4dc];if(_0x3d637b){const _0x394871=new RegExp('\x5c$'+_0x3d637b+'\x5cb','g');_0x388613=_0x388613['replace'](_0x394871,()=>{return _0x1df676=!![],_0x3477fe[_0x55c4dc]??'';});}}_0x388613=_0x388613[_0x10b227(0xe5,_0xc925c4._0x4cd191,0x2d6,_0xc925c4._0xe37a74)](/\$(\d+)\b/g,(_0x173886,_0x3c176e)=>{return _0x1df676=!![],_0x3477fe[Number(_0x3c176e)]??'';});function _0x18fd67(_0x2f2be3,_0x597491,_0x14cfc6,_0x24444e){return _0x2f0acf(_0x597491- -_0x26bea5._0x12aa92,_0x597491-_0x26bea5._0x212392,_0x2f2be3,_0x24444e-0x36);}return!_0x1df676&&_0x6ca64d['argumentsText'][_0x18fd67(-0x1b3,-0x293,-_0xc925c4._0x35c5c0,-_0xc925c4._0x2129bf)]()&&(_0x388613=_0x388613+_0x10b227(0x1ff,0x298,0x33d,0x309)+_0x6ca64d[_0x10b227(_0xc925c4._0x28f1ed,0x2c8,_0xc925c4._0x213388,_0xc925c4._0x2ea427)]),_0x388613;}var chatModelAuthSchemeSchema=z[_0x2f0acf(0x42d,0x3bc,0x569,0x3e9)]([_0x2f0acf(0x45a,0x471,0x541,0x36f),_0x4aa629(-0x89,-0x17e,-0x206,-0x154)]),apiKeyAuthSchema=z[_0x2f0acf(0x300,0x1dc,0x36a,0x266)]({'type':z[_0x4aa629(-0x78,-0xa0,-0x14b,-0x56)](_0x2f0acf(0x2ad,0x2a1,0x228,0x18a)),'apiKey':z['string'](),'authScheme':chatModelAuthSchemeSchema[_0x2f0acf(0x40f,0x3ca,0x307,0x4a7)]()})[_0x4aa629(0x54,0x2a,-0x8d,-0xea)](),oauthAuthSchema=z[_0x2f0acf(0x300,0x244,0x1cb,0x3e7)]({'type':z[_0x2f0acf(0x2e7,0x415,0x3dd,0x409)]('oauth'),'access':z[_0x2f0acf(0x38b,0x2f4,0x263,0x363)](),'refresh':z['string'](),'expires':z['number']()[_0x2f0acf(0x40f,0x491,0x525,0x458)](),'authScheme':chatModelAuthSchemeSchema[_0x2f0acf(0x40f,0x4b5,0x2fb,0x320)]()})[_0x2f0acf(0x253,0x2f6,0x154,0x122)](),authMethodSchema=z[_0x4aa629(-0x1c7,-0xaa,-0x176,-0xdf)]([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x2f0acf(0x300,0x424,0x388,0x2a7)]({'id':z[_0x2f0acf(0x38b,0x25a,0x48f,0x4aa)](),'name':z[_0x2f0acf(0x38b,0x4b7,0x471,0x40d)]()[_0x4aa629(0x115,0x18d,0x11b,0xd2)]()})['passthrough'](),modelConfigSchema=z['union']([z['literal'](![]),z[_0x2f0acf(0x2e7,0x258,0x33c,0x1fa)](!![]),z['string'](),z[_0x2f0acf(0x39e,0x341,0x4e2,0x2b9)](z[_0x4aa629(0xa0,0xb7,0x8d,0x4e)]()),z[_0x2f0acf(0x39e,0x425,0x2e9,0x320)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x2f0acf(0x42d,0x301,0x4f0,0x2e6)]([_0x2f0acf(0x3a9,0x445,0x4b3,0x26a),_0x4aa629(0x5f,0x150,0x72,0x8),'openai-responses',_0x2f0acf(0x261,0x136,0x127,0x239)]),providerConfigSchema=z['object']({'apiKey':z[_0x4aa629(-0x45,0x24,-0xae,0x4e)]()['optional'](),'token':z[_0x2f0acf(0x38b,0x247,0x417,0x444)]()[_0x2f0acf(0x40f,0x2f1,0x54e,0x380)](),'defaultModel':z[_0x2f0acf(0x38b,0x355,0x295,0x46d)]()['optional'](),'smallModel':z[_0x2f0acf(0x38b,0x2f5,0x36e,0x25c)]()['optional'](),'currentAuth':z[_0x4aa629(0x185,0x4b,0xeb,0x4e)]()[_0x4aa629(0x31,0x15f,0x2d,0xd2)](),'auth':z['array'](authMethodSchema)['optional'](),'surface':chatModelSurfaceSchema[_0x2f0acf(0x40f,0x50d,0x3b5,0x44f)](),'baseUrl':z['string']()[_0x2f0acf(0x40f,0x46e,0x2ef,0x394)](),'models':modelConfigSchema[_0x2f0acf(0x40f,0x3c9,0x2ce,0x436)](),'customHeaders':z['record'](z[_0x4aa629(0x7c,0x76,0x68,0x4e)](),z['string']())[_0x2f0acf(0x40f,0x3f5,0x45d,0x2cc)]()})[_0x2f0acf(0x253,0x2e0,0x366,0x29e)](),mcpServerConfigSchema=z['object']({'command':z[_0x2f0acf(0x38b,0x36f,0x2c4,0x433)]()[_0x4aa629(0x49,0x102,0x142,0xd2)](),'args':z[_0x4aa629(0xdc,0x172,-0xde,0x61)](z['string']())['optional'](),'env':z['record'](z[_0x4aa629(-0x45,0x123,-0x70,0x4e)](),z[_0x2f0acf(0x38b,0x3dc,0x391,0x47d)]())[_0x4aa629(0x190,0xad,-0x7,0xd2)](),'transport':z[_0x4aa629(0x1c1,0x11d,0x53,0xf0)](['stdio','http'])['optional'](),'url':z[_0x2f0acf(0x38b,0x383,0x4cf,0x470)]()[_0x2f0acf(0x40f,0x3c2,0x399,0x41c)](),'headers':z[_0x4aa629(-0x87,0x7a,-0x1b,-0x22)](z[_0x4aa629(0x6,0x17c,0x91,0x4e)](),z[_0x4aa629(-0xe4,-0x8f,0xce,0x4e)]())[_0x2f0acf(0x40f,0x46c,0x2ca,0x307)](),'prefix':z[_0x4aa629(0x4e,0x17e,0x114,0x4e)]()[_0x2f0acf(0x40f,0x362,0x37f,0x39a)](),'timeoutMs':z[_0x4aa629(0x0,0x58,0x1ee,0xd3)]()[_0x4aa629(0x170,0x1a6,-0x68,0xd2)](),'enabled':z[_0x4aa629(0x13e,0x78,0x161,0xa9)]()[_0x4aa629(0x29,0x5c,0x72,0xd2)](),'auth':z[_0x2f0acf(0x300,0x1f4,0x2dd,0x1b9)]({'type':z[_0x4aa629(0x1de,0x14c,0x1a,0xf0)](['none',_0x4aa629(0x183,0x14a,0xe9,0x11d),_0x2f0acf(0x2ce,0x240,0x21d,0x22a)]),'token':z[_0x4aa629(0xa0,0x4a,0xdc,0x4e)]()[_0x2f0acf(0x40f,0x4bd,0x319,0x362)](),'oauth':z[_0x2f0acf(0x300,0x3e7,0x26d,0x273)]({'clientId':z['string']()['optional'](),'clientMetadataUrl':z[_0x4aa629(0x110,0x15,0x141,0x4e)]()[_0x4aa629(0x1a7,0x157,-0x34,0xd2)](),'authorizationServer':z['string']()['optional'](),'scopes':z['array'](z[_0x2f0acf(0x38b,0x33d,0x266,0x492)]())[_0x2f0acf(0x40f,0x47f,0x386,0x3be)](),'tokenStorageKey':z[_0x4aa629(-0xd6,-0x67,0x11,0x4e)]()['optional']()})[_0x2f0acf(0x253,0x24c,0x30f,0x136)]()[_0x4aa629(0x12a,0x18d,0x1c0,0xd2)]()})['passthrough']()[_0x2f0acf(0x40f,0x3c9,0x48b,0x50b)]()})[_0x4aa629(-0xaf,0x10,-0x23,-0xea)](),mcpSettingsSchema=z['object']({'servers':z['record'](z[_0x2f0acf(0x38b,0x404,0x24a,0x2dd)](),mcpServerConfigSchema)[_0x4aa629(0x1fb,0x12a,-0x34,0xd2)](),'allowedTools':z[_0x2f0acf(0x31b,0x362,0x2f5,0x3cb)](z[_0x4aa629(0x2b,-0x5c,0x17b,0x4e)](),z[_0x2f0acf(0x31b,0x44d,0x27c,0x43e)](z[_0x4aa629(0x158,0x14f,0xce,0x4e)](),z[_0x2f0acf(0x3e6,0x4f9,0x41e,0x311)]()))[_0x4aa629(0x194,0x179,0x50,0xd2)](),'defaultTimeoutMs':z[_0x4aa629(0x80,0x16b,-0x4e,0xd3)]()['optional']()})[_0x4aa629(-0x1c5,-0x221,-0x18b,-0xea)](),skillsSettingsSchema=z[_0x4aa629(0x89,-0x4d,-0xf6,-0x3d)]({'enabled':z[_0x2f0acf(0x3e6,0x33e,0x4ab,0x3d2)]()[_0x2f0acf(0x40f,0x2d6,0x3b4,0x3c9)](),'includeDefaults':z[_0x4aa629(0x42,0xcd,0x86,0xa9)]()['optional'](),'directories':z['array'](z[_0x2f0acf(0x38b,0x4c6,0x27c,0x402)]())['optional'](),'exclude':z[_0x4aa629(-0x53,0x3f,0xf7,0x61)](z[_0x2f0acf(0x38b,0x4c7,0x47e,0x3a7)]())['optional']()})[_0x4aa629(-0x203,-0x1f0,-0x22,-0xea)](),commandsSettingsSchema=z[_0x2f0acf(0x300,0x2a2,0x269,0x317)]({'enabled':z[_0x2f0acf(0x3e6,0x503,0x3dc,0x2e7)]()[_0x2f0acf(0x40f,0x346,0x4b9,0x301)](),'directories':z[_0x2f0acf(0x39e,0x48b,0x383,0x319)](z[_0x2f0acf(0x38b,0x3a2,0x276,0x2c1)]())[_0x4aa629(0x1b2,0x104,0xb7,0xd2)]()})[_0x4aa629(0xe,-0x7f,-0x124,-0xea)](),agentsSettingsSchema=z[_0x2f0acf(0x300,0x3bc,0x204,0x317)]({'enabled':z[_0x2f0acf(0x3e6,0x36c,0x489,0x438)]()['optional'](),'includeDefaults':z[_0x4aa629(-0x1c,0x172,0x11e,0xa9)]()[_0x2f0acf(0x40f,0x2e3,0x512,0x362)](),'directories':z[_0x2f0acf(0x39e,0x300,0x2a3,0x2e8)](z[_0x4aa629(0x114,0x58,-0x63,0x4e)]())[_0x2f0acf(0x40f,0x318,0x3f8,0x443)]()})[_0x4aa629(0x35,-0x214,0x24,-0xea)](),uiThemeSettingsSchema=z[_0x2f0acf(0x300,0x224,0x1ba,0x3b5)]({'mode':z[_0x4aa629(0x1ef,0x3f,0x17d,0xf0)](['auto',_0x2f0acf(0x232,0x351,0x302,0x21a),_0x2f0acf(0x231,0x28b,0x1e8,0x206)])['optional'](),'colorLevel':z['enum']([_0x4aa629(0x179,0x80,-0x18,0xe6),'none',_0x4aa629(-0x140,-0xa0,-0x2f,-0x115),'ansi256',_0x2f0acf(0x313,0x360,0x3b1,0x301)])[_0x4aa629(0x1,0x154,0x1f2,0xd2)](),'backgrounds':z[_0x2f0acf(0x42d,0x525,0x35f,0x448)]([_0x2f0acf(0x423,0x2de,0x385,0x42d),'on','off'])[_0x2f0acf(0x40f,0x4f4,0x3c5,0x451)](),'messageStyle':z[_0x2f0acf(0x42d,0x4e9,0x355,0x36a)]([_0x4aa629(-0xf1,-0x1b3,-0x13f,-0x6e),_0x4aa629(0x4c,0x1bb,-0x41,0xfd)])[_0x4aa629(-0x7,0x1fb,0x1bf,0xd2)]()})['passthrough'](),statuslineSegmentSchema=z[_0x4aa629(-0xc,0x175,0x1b8,0xf0)](['model',_0x2f0acf(0x360,0x2a4,0x218,0x3fe),_0x4aa629(-0x13c,0xfa,0x28,-0x3c),'sudo','tokens',_0x4aa629(0x107,0x104,0x1bc,0x88),'cached','requests',_0x2f0acf(0x283,0x319,0x26b,0x3a3),'cost',_0x2f0acf(0x26f,0x21f,0x274,0x161),_0x2f0acf(0x20d,0x1d3,0x2f9,0x1b2),_0x2f0acf(0x225,0x364,0x24c,0x124),_0x2f0acf(0x32d,0x2c6,0x3f8,0x32d),'rss']),statuslineItemSchema=z[_0x4aa629(-0x140,-0x87,-0x209,-0xdf)]([statuslineSegmentSchema,z[_0x4aa629(0xe0,-0xcf,-0x177,-0x56)]('|')]),statuslineRowSchema=z[_0x2f0acf(0x39e,0x472,0x3c4,0x480)](statuslineItemSchema),statuslineConfigSchema=z[_0x2f0acf(0x300,0x220,0x2b6,0x1dc)]({'rows':z[_0x4aa629(0xf9,-0x76,0x66,-0x1e)]([statuslineRowSchema,statuslineRowSchema])[_0x2f0acf(0x40f,0x49c,0x542,0x35a)]()})[_0x2f0acf(0x253,0x303,0x14c,0x269)](),memorySettingsSchema=z[_0x2f0acf(0x300,0x300,0x423,0x248)]({'version':z['literal'](0x2)[_0x2f0acf(0x40f,0x4c2,0x4dc,0x466)](),'retrieval':z[_0x4aa629(0xdb,0x4a,-0x144,-0x3d)]({'engine':z[_0x4aa629(-0x17e,0x52,-0x11f,-0x56)](_0x2f0acf(0x2c1,0x1db,0x314,0x1f1))['optional'](),'candidateLimit':z[_0x2f0acf(0x410,0x3c2,0x392,0x54a)]()[_0x2f0acf(0x40f,0x2f9,0x3a8,0x48d)](),'activeCandidateLimit':z['number']()[_0x4aa629(-0x6e,0x79,0xa3,0xd2)](),'activeEnabled':z[_0x4aa629(0x2b,0x1bc,-0x4c,0xa9)]()[_0x2f0acf(0x40f,0x4cf,0x3ee,0x3d3)](),'maxQueriesPerTurn':z['number']()[_0x2f0acf(0x40f,0x487,0x3d6,0x4f4)](),'coreInjectTokenBudget':z['number']()[_0x4aa629(0x1ce,0x1b6,-0x2d,0xd2)](),'injectTokenBudget':z['number']()[_0x4aa629(0xd,0x143,0xb,0xd2)](),'minScore':z[_0x2f0acf(0x410,0x450,0x527,0x3c4)]()['optional'](),'freshnessHalfLifeDays':z['number']()['optional']()})[_0x2f0acf(0x253,0x11f,0x2ee,0x307)]()[_0x4aa629(-0x3a,0x6,0x8b,0xd2)](),'extraction':z[_0x2f0acf(0x300,0x235,0x241,0x342)]({'enabled':z[_0x2f0acf(0x3e6,0x42c,0x38f,0x34f)]()[_0x4aa629(-0x4e,0xe0,0x1b4,0xd2)](),'provider':z['string']()['optional'](),'model':z[_0x2f0acf(0x38b,0x313,0x381,0x2b0)]()[_0x2f0acf(0x40f,0x326,0x385,0x39a)](),'sensitiveFilter':z[_0x4aa629(0x7b,0x194,0x15d,0xa9)]()[_0x4aa629(0x15e,0x99,-0x10,0xd2)]()})[_0x4aa629(0x3e,-0x82,-0x1e9,-0xea)]()['optional'](),'index':z[_0x2f0acf(0x300,0x363,0x3a8,0x36b)]({'persisted':z[_0x2f0acf(0x3e6,0x3ac,0x2c0,0x2dd)]()['optional'](),'flushIntervalMs':z[_0x4aa629(0x17b,-0x6f,0x177,0xd3)]()[_0x2f0acf(0x40f,0x469,0x37e,0x375)]()})[_0x2f0acf(0x253,0x368,0x37c,0x1e4)]()[_0x4aa629(0x4d,0x139,0x207,0xd2)](),'enabled':z[_0x2f0acf(0x3e6,0x3cf,0x2e9,0x34c)]()[_0x4aa629(0x4c,-0x24,-0x58,0xd2)](),'saveTool':z[_0x4aa629(-0x9a,0xa8,-0x13,0xa9)]()['optional'](),'model':z[_0x4aa629(-0xbe,0x175,-0x54,0x4e)]()['optional'](),'provider':z[_0x2f0acf(0x38b,0x404,0x2dc,0x2a0)]()[_0x2f0acf(0x40f,0x416,0x4d9,0x2ff)](),'maxInjectionTokens':z[_0x2f0acf(0x410,0x3f8,0x335,0x3cb)]()[_0x2f0acf(0x40f,0x367,0x47d,0x551)](),'backgroundExtraction':z['boolean']()['optional']()})[_0x4aa629(-0x231,-0x143,-0x15e,-0xea)](),recentModelSchema=z[_0x4aa629(-0x10c,-0x185,-0x9d,-0x3d)]({'provider':z[_0x4aa629(0x2d,0xb1,0x18a,0x4e)](),'model':z[_0x2f0acf(0x38b,0x4b2,0x2c8,0x42b)](),'usedAt':z[_0x2f0acf(0x410,0x35d,0x46e,0x2df)]()})[_0x2f0acf(0x253,0x384,0x350,0x111)](),lspServerEntrySchema=z[_0x4aa629(-0x4d,0x5a,0xe1,-0x3d)]({'disabled':z[_0x4aa629(0x143,0x1ca,0xd3,0xa9)]()[_0x4aa629(0x1ab,0x17e,0xe7,0xd2)](),'command':z[_0x4aa629(0x18,-0x9e,0x11a,0x4e)]()[_0x2f0acf(0x40f,0x51f,0x543,0x35b)](),'args':z[_0x2f0acf(0x39e,0x346,0x3ef,0x45a)](z[_0x4aa629(0x195,0x98,0x1,0x4e)]())[_0x4aa629(0x158,0x48,0x15e,0xd2)](),'rootMarkers':z[_0x4aa629(0xa3,-0x8a,-0x97,0x61)](z[_0x4aa629(0x107,0x5b,0x150,0x4e)]())['optional']()})['passthrough'](),lspConfigSchema=z[_0x4aa629(-0xc9,-0x130,-0xb8,-0x3d)]({'enabled':z[_0x2f0acf(0x3e6,0x330,0x4ee,0x481)]()[_0x4aa629(0x10f,-0x22,0x10c,0xd2)](),'servers':z[_0x4aa629(-0x112,-0x2e,0x10c,-0x22)](z[_0x2f0acf(0x38b,0x2a0,0x39f,0x27b)](),lspServerEntrySchema)[_0x4aa629(0x199,0x33,0x11a,0xd2)]()})['passthrough'](),cliConfigSchema=z[_0x4aa629(-0xf0,-0x172,-0x110,-0x3d)]({'activeProvider':z[_0x4aa629(0x4b,-0x45,0x170,0x4e)]()[_0x4aa629(0x1d6,0x60,-0x4b,0xd2)](),'activeModel':z[_0x4aa629(-0x1d,0x137,-0xcb,0x4e)]()[_0x2f0acf(0x40f,0x413,0x4b7,0x3da)](),'apiKey':z[_0x2f0acf(0x38b,0x25d,0x3e7,0x43b)]()[_0x4aa629(0xf9,0x186,-0x18,0xd2)](),'providers':z[_0x4aa629(-0xe7,0x103,0x6d,-0x22)](z[_0x4aa629(0xf8,-0xa4,0x176,0x4e)](),providerConfigSchema)['optional'](),'mcp':mcpSettingsSchema[_0x4aa629(0x112,0xa1,0x41,0xd2)](),'skills':skillsSettingsSchema[_0x2f0acf(0x40f,0x2d6,0x431,0x506)](),'agents':agentsSettingsSchema[_0x2f0acf(0x40f,0x329,0x4e4,0x30e)](),'commands':commandsSettingsSchema['optional'](),'skillsEnabled':z[_0x2f0acf(0x31b,0x328,0x364,0x390)](z['string'](),z[_0x4aa629(0x190,0x56,0x1c,0xa9)]())[_0x4aa629(0x1e9,0x12e,0x1c1,0xd2)](),'memory':memorySettingsSchema['optional'](),'session':z[_0x2f0acf(0x300,0x28b,0x377,0x292)]({'memPersist':z[_0x4aa629(0xbb,0x57,-0x80,0xa9)]()[_0x2f0acf(0x40f,0x396,0x3ce,0x3d1)](),'persistEventLog':z['boolean']()['optional'](),'persistHttpLog':z['boolean']()[_0x2f0acf(0x40f,0x38d,0x3ac,0x3e0)]()})[_0x4aa629(-0xf,-0x4a,-0x1ee,-0xea)]()['optional'](),'requireToolApproval':z['boolean']()[_0x2f0acf(0x40f,0x464,0x54e,0x3c6)](),'thinking':z['enum'](['OFF',_0x2f0acf(0x36d,0x2c7,0x41b,0x469),_0x4aa629(-0xda,-0x31,-0x132,-0x52),_0x2f0acf(0x27f,0x379,0x379,0x1d2)])[_0x2f0acf(0x40f,0x2ea,0x4b5,0x3bb)](),'streamingChunks':z[_0x2f0acf(0x3e6,0x4a8,0x4c1,0x514)]()[_0x2f0acf(0x40f,0x515,0x467,0x3f4)](),'agentsEnabled':z[_0x4aa629(-0x6b,-0x6,0x4,-0x22)](z[_0x2f0acf(0x38b,0x445,0x270,0x364)](),z[_0x2f0acf(0x3e6,0x2e9,0x497,0x3d0)]())[_0x2f0acf(0x40f,0x35c,0x2ed,0x2d3)](),'recentModels':z[_0x2f0acf(0x39e,0x423,0x41f,0x31b)](recentModelSchema)[_0x2f0acf(0x40f,0x4f1,0x3e8,0x3b7)](),'lsp':lspConfigSchema[_0x2f0acf(0x40f,0x519,0x450,0x42b)](),'ui':z['object']({'theme':uiThemeSettingsSchema[_0x2f0acf(0x40f,0x3e8,0x370,0x2ca)](),'statusline':statuslineConfigSchema[_0x2f0acf(0x40f,0x3d5,0x457,0x367)]()})[_0x2f0acf(0x253,0x19f,0x1d8,0x233)]()[_0x4aa629(0x218,-0x31,0xc8,0xd2)](),'tools':z[_0x2f0acf(0x31b,0x1fe,0x320,0x265)](z[_0x2f0acf(0x38b,0x363,0x332,0x3db)](),z[_0x2f0acf(0x366,0x3ff,0x44d,0x42f)]())[_0x2f0acf(0x40f,0x36f,0x349,0x3df)]()})[_0x4aa629(-0xb8,0x22,-0x10f,-0xea)]();function buildDescription(_0x47cecc){const _0x47cbf9={_0x44c64c:0x1d0,_0x5b4ebe:0x308,_0x3e3e8b:0x336,_0x3fd66e:0x261,_0x4dcede:0x29,_0x441f99:0x17c,_0xa9329b:0xf9,_0x49ad53:0x61,_0x3944b5:0x6e,_0x44c36d:0x0,_0x1769a3:0x20,_0x198118:0x222,_0x10d973:0xcb,_0x357bb7:0x96,_0x51ce34:0x1e9,_0x2af82a:0x19e},_0x54a58={_0x7908d0:0x467,_0xdf33a2:0x134,_0x26d3a5:0x1bd},_0x4d6185={_0x2714f6:0x46};if(_0x47cecc[_0x5bdb68(-_0x47cbf9._0x44c64c,-0x1de,-0x1a9,-0x1a4)]===0x0)return[_0x5bdb68(-0x2d0,-_0x47cbf9._0x5b4ebe,-_0x47cbf9._0x3e3e8b,-_0x47cbf9._0x3fd66e),_0x5bdb68(-_0x47cbf9._0x4dcede,-0x67,-_0x47cbf9._0x441f99,-_0x47cbf9._0xa9329b),'No\x20commands\x20are\x20currently\x20available.'][_0x121797(_0x47cbf9._0x49ad53,-_0x47cbf9._0x3944b5,-0x7b,0x17e)]('\x0a');function _0x121797(_0x224db4,_0x15f8bd,_0xa2614a,_0x4c33c2){return _0x2f0acf(_0x224db4- -0x268,_0x15f8bd-_0x4d6185._0x2714f6,_0xa2614a,_0x4c33c2-0xf3);}const _0x449716=[_0x121797(-0x62,_0x47cbf9._0x44c36d,-_0x47cbf9._0x1769a3,-0x14),_0x5bdb68(-0x1e8,-_0x47cbf9._0x198118,-_0x47cbf9._0x10d973,-0xf9),_0x121797(0x13c,0x115,0x20e,_0x47cbf9._0x357bb7),..._0x47cecc['map'](_0x1438b2=>_0x1438b2[_0x5bdb68(-0x35,-0xce,-0xfa,-0x15b)]?'-\x20'+_0x1438b2['name']+'\x20'+_0x1438b2[_0x5bdb68(-0x55,-0x88,-0x122,-0x15b)]+':\x20'+_0x1438b2['description']:'-\x20'+_0x1438b2[_0x5bdb68(-0x1bf,-0x1bb,-0x184,-0x11b)]+':\x20'+_0x1438b2['description'])];function _0x5bdb68(_0x24204d,_0x2a872a,_0x4bccd1,_0xc8290e){return _0x2f0acf(_0xc8290e- -_0x54a58._0x7908d0,_0x2a872a-_0x54a58._0xdf33a2,_0x24204d,_0xc8290e-_0x54a58._0x26d3a5);}return _0x449716[_0x5bdb68(-_0x47cbf9._0x51ce34,-0x61,-0x149,-_0x47cbf9._0x2af82a)]('\x0a');}function createInvokeCommandTool(_0x65e5f7){const _0x26d494={_0x5ec990:0x484,_0x3a0d65:0x4f3,_0x3eaa8a:0x504,_0x49a3ee:0x6af,_0x26b645:0x660,_0x4424c4:0x5d6,_0xf1969d:0x661,_0x4010e6:0x594,_0x41f9b0:0x466,_0x584c73:0x3ab},_0x3244cd={_0x401feb:0x53c,_0x213c9b:0x459,_0x464c2b:0xab,_0x1f1455:0x60e,_0x41b78e:0xfc,_0x439e0e:0x8a,_0x528e57:0x5c9,_0x2d800c:0x53b,_0x4771ed:0x50d},_0x2c28b1={_0x493b65:0xbe,_0x414ebc:0xe8},_0x38eeeb={_0x5e5780:0x10e},_0x19e912={_0xc2f787:0x1d1,_0x708e1b:0x86};function _0x4fb08f(_0x242628,_0x4f4fa1,_0x1d473d,_0x434469){return _0x2f0acf(_0x4f4fa1-0x2d6,_0x4f4fa1-_0x19e912._0xc2f787,_0x242628,_0x434469-_0x19e912._0x708e1b);}const _0x12a187=new Map(_0x65e5f7[_0x57a58f(0x41f,_0x26d494._0x5ec990,_0x26d494._0x3a0d65,0x413)][_0x4fb08f(0x552,_0x26d494._0x3eaa8a,0x46d,0x579)](_0x3b1341=>[_0x3b1341['id'],_0x3b1341]));function _0x57a58f(_0x9b9cec,_0x2c574e,_0x43439d,_0x567e87){return _0x2f0acf(_0x43439d-0x11a,_0x2c574e-0xd7,_0x9b9cec,_0x567e87-_0x38eeeb._0x5e5780);}const _0x3f0a6a=buildDescription(_0x65e5f7[_0x4fb08f(0x5b6,_0x26d494._0x49a3ee,_0x26d494._0x26b645,0x5e3)]);return defineTool({'name':_0x4fb08f(0x643,0x536,0x601,0x4ed),'description':_0x3f0a6a,'inputSchema':{'type':_0x4fb08f(0x686,_0x26d494._0x4424c4,0x602,0x5f8),'properties':{'name':{'type':_0x4fb08f(0x687,_0x26d494._0xf1969d,0x6e7,0x575)},'args':{'type':'string'}},'required':[_0x57a58f(0x32d,_0x26d494._0x4010e6,_0x26d494._0x41f9b0,_0x26d494._0x584c73)]},async *'execute'(_0x259883){const _0x273252={_0x3c052e:0x1a2},_0x2d0dc8=_0x12a187['get'](_0x259883['name']);function _0x54cedd(_0xd9d9bf,_0x52fa9f,_0x5a0b59,_0xd0015c){return _0x4fb08f(_0xd9d9bf,_0x52fa9f- -0x53e,_0x5a0b59-0xa5,_0xd0015c-_0x273252._0x3c052e);}if(!_0x2d0dc8){const _0x4c0241=Array[_0x23d33c(0x456,_0x3244cd._0x401feb,_0x3244cd._0x213c9b,0x347)](_0x12a187['keys']())['join'](',\x20');throw new ToolExecutionError('Command\x20\x27'+_0x259883[_0x23d33c(0x564,0x4f3,0x473,0x557)]+'\x27\x20not\x20found.\x20Available\x20commands:\x20'+_0x4c0241,{'name':_0x259883['name']});}const _0xdf9013=await _0x65e5f7[_0x54cedd(-0x1a,0x74,0xfd,_0x3244cd._0x464c2b)](_0x2d0dc8),_0x3a7d90=_0x259883[_0x23d33c(_0x3244cd._0x1f1455,0x6a0,0x525,0x689)]??'',_0x35f5ed=renderCommandInstructions({'instructions':_0xdf9013[_0x54cedd(-_0x3244cd._0x41b78e,-0x24,-_0x3244cd._0x439e0e,0xaf)],'argumentsText':_0x3a7d90,'argumentNames':_0xdf9013[_0x54cedd(0x163,0x7a,-0xb0,-0xb1)]});function _0x23d33c(_0x490737,_0x18cdec,_0x354f58,_0x399880){return _0x4fb08f(_0x18cdec,_0x490737- -_0x2c28b1._0x493b65,_0x354f58-_0x2c28b1._0x414ebc,_0x399880-0x65);}return yield createToolOutput(_0x35f5ed,{'id':_0xdf9013['id'],'name':_0xdf9013[_0x23d33c(0x564,_0x3244cd._0x528e57,_0x3244cd._0x2d800c,_0x3244cd._0x4771ed)],'path':_0x2d0dc8['source']['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x14447b,rename as _0x46eec1,stat as _0x2ac566,writeFile as _0x4dd57f}from'fs/promises';import*as _0x3c64ec from'path';function detectEol(_0x24a4ee){const _0xdbd577={_0x3d92f7:0x1ea,_0x5035cb:0x231,_0x348096:0x8c,_0x355eac:0x8d},_0x11d843={_0x56e9b1:0x19,_0x17cfed:0x117},_0x3cf5d0={_0x299ded:0x9c,_0x6461e5:0x1bc,_0x4690ce:0x48};function _0x1f4088(_0x24068a,_0x7f02ee,_0x2e9402,_0x31551d){return _0x2f0acf(_0x2e9402- -_0x3cf5d0._0x299ded,_0x7f02ee-_0x3cf5d0._0x6461e5,_0x24068a,_0x31551d-_0x3cf5d0._0x4690ce);}function _0x4c0f61(_0xa1ef61,_0x2c22bc,_0x27756d,_0x2264fc){return _0x4aa629(_0xa1ef61-0x88,_0x27756d,_0x27756d-_0x11d843._0x56e9b1,_0x2264fc- -_0x11d843._0x17cfed);}return/\r\n/[_0x1f4088(_0xdbd577._0x3d92f7,0x22d,_0xdbd577._0x5035cb,0x1e4)](_0x24a4ee[_0x4c0f61(-_0xdbd577._0x348096,-0xfd,_0xdbd577._0x355eac,0x1)]('utf8'))?'crlf':'lf';}function normalizeToLf(_0x265aa9){const _0x1665ec={_0x31782c:0x230},_0x46f5f0={_0x3aa337:0x10b,_0x314056:0xad,_0x6fb4da:0x316};function _0x5a078a(_0x2fa2ef,_0x2abebf,_0xe73fb6,_0x27b486){return _0x4aa629(_0x2fa2ef-_0x46f5f0._0x3aa337,_0xe73fb6,_0xe73fb6-_0x46f5f0._0x314056,_0x27b486-_0x46f5f0._0x6fb4da);}return _0x265aa9[_0x5a078a(_0x1665ec._0x31782c,0x253,0x14a,0x1b0)](/\r\n/g,'\x0a');}function convertEol(_0x2525ae,_0x2d74f3){const _0x5cb63d={_0x3102ec:0x5a7,_0x465832:0x5f9,_0xc4b8:0x3eb,_0x1087bb:0x468},_0x353ea2={_0x5a7e75:0x588};function _0x1fa697(_0x97e66c,_0x16dc03,_0x376802,_0x186d95){return _0x4aa629(_0x97e66c-0x6b,_0x97e66c,_0x376802-0x10f,_0x376802-_0x353ea2._0x5a7e75);}function _0x46d9f7(_0x7cde16,_0x51e512,_0x4b1bc7,_0x465f31){return _0x4aa629(_0x7cde16-0x8,_0x465f31,_0x4b1bc7-0xcf,_0x51e512-0x5f9);}return _0x2d74f3===_0x1fa697(0x481,0x5cf,_0x5cb63d._0x3102ec,_0x5cb63d._0x465832)?_0x2525ae[_0x46d9f7(0x40f,0x493,_0x5cb63d._0xc4b8,_0x5cb63d._0x1087bb)](/\n/g,'\x0d\x0a'):_0x2525ae;}async function atomicWrite(_0xd1dc58,_0x220f48){const _0x5b69cd={_0x10dadf:0x226,_0x3dc2ed:0x2a6,_0x572bf8:0x345,_0x5d05a7:0x1fe,_0x3e061b:0x13,_0x221a77:0x6e,_0x50af72:0x131,_0x56e7db:0x164,_0x3c8a57:0xe5,_0x2d4993:0x81},_0xf0aff8={_0x5bfd52:0x2c9},_0x3edcf7=_0x3c64ec[_0x578f90(0x2e3,_0x5b69cd._0x10dadf,0x39d,_0x5b69cd._0x3dc2ed)](_0xd1dc58),_0xb031a4=_0x3c64ec[_0x578f90(_0x5b69cd._0x10dadf,0x1d8,_0x5b69cd._0x572bf8,_0x5b69cd._0x5d05a7)](_0x3edcf7,_0x211f71(-_0x5b69cd._0x3e061b,0x58,0x109,0x142)+_0x3c64ec['basename'](_0xd1dc58)+'.'+Date[_0x211f71(_0x5b69cd._0x221a77,_0x5b69cd._0x50af72,_0x5b69cd._0x56e7db,0x210)]()+'.'+Math['random']()[_0x211f71(0x282,0x18c,_0x5b69cd._0x3c8a57,0x1e5)](0x24)[_0x211f71(0xb,-0x8c,0xb0,-_0x5b69cd._0x2d4993)](0x2));await _0x4dd57f(_0xb031a4,_0x220f48);function _0x211f71(_0x1b280e,_0x1cf08a,_0x1c8c07,_0x17af87){return _0x2f0acf(_0x1cf08a- -_0xf0aff8._0x5bfd52,_0x1cf08a-0x10c,_0x1c8c07,_0x17af87-0x26);}function _0x578f90(_0x9bb914,_0x9711f2,_0x393d8a,_0x1a1953){return _0x2f0acf(_0x9bb914- -0xa3,_0x9711f2-0x66,_0x393d8a,_0x1a1953-0xbb);}await _0x46eec1(_0xb031a4,_0xd1dc58);}function sha256(_0xe0bf4b){const _0x2e0923={_0x4b0994:0x28b,_0x275fbf:0x1ed,_0x405f6f:0x2e7,_0xcceacc:0x25d,_0x2ad75c:0x7a,_0x45b1c4:0x115},_0x37ed85={_0x4573ec:0x1bf,_0x35208e:0x16f},_0x2b591a={_0x47279c:0x326};function _0x2ac583(_0x3e4afe,_0x560db1,_0x5d8bc0,_0x5ba858){return _0x4aa629(_0x3e4afe-0x1c1,_0x560db1,_0x5d8bc0-0x10d,_0x5d8bc0-_0x2b591a._0x47279c);}function _0x5c577d(_0x2675c4,_0x41f88a,_0x4cacb6,_0xbaa22f){return _0x4aa629(_0x2675c4-_0x37ed85._0x4573ec,_0x2675c4,_0x4cacb6-0x5,_0xbaa22f- -_0x37ed85._0x35208e);}return createHash(_0x5c577d(-_0x2e0923._0x4b0994,-_0x2e0923._0x275fbf,-0x2d1,-0x1c6))[_0x2ac583(0x358,0x4e5,0x3fd,_0x2e0923._0x405f6f)](_0xe0bf4b)[_0x5c577d(0x3,-0x3b,-0xb4,-0xc4)](_0x5c577d(0x7,-_0x2e0923._0xcceacc,-_0x2e0923._0x2ad75c,-_0x2e0923._0x45b1c4));}function countLines(_0x21d662){const _0x43217d={_0x342fd3:0x13f,_0xfed89:0x207,_0x35baf9:0x14c,_0x13ff6d:0x165},_0x10aba4=_0x21d662['replace'](/\n$/,'');function _0x3c4f36(_0x58fce2,_0x565175,_0x3b48cb,_0x6a2d4c){return _0x2f0acf(_0x6a2d4c- -0x15e,_0x565175-0x18,_0x565175,_0x6a2d4c-0x11c);}return _0x10aba4[_0x3c4f36(_0x43217d._0x342fd3,_0x43217d._0xfed89,_0x43217d._0x35baf9,_0x43217d._0x13ff6d)]===0x0?0x0:_0x10aba4['split']('\x0a')['length'];}function calculateLineNumbers(_0x4c84ec,_0x54d15f,_0x3f3345,_0x4610aa){const _0x301f68={_0x16de96:0x480,_0x49caa1:0x52,_0x36c664:0x74,_0x23e7bc:0x84},_0x4f5d5e={_0x3b2bed:0x8a,_0x33c25d:0x28},_0x547949={_0x21a79a:0x131};function _0x12e2ba(_0x254b33,_0x4b6888,_0x121e41,_0x38f87e){return _0x2f0acf(_0x4b6888-0x6a,_0x4b6888-0x8a,_0x121e41,_0x38f87e-_0x547949._0x21a79a);}const _0x368fe4=_0x4c84ec[_0x12e2ba(0x238,0x2a7,0x356,0x170)](0x0,_0x4610aa)[_0x12e2ba(0x461,_0x301f68._0x16de96,0x352,0x3ee)]('\x0a')[_0x1a0afd(-_0x301f68._0x49caa1,_0x301f68._0x36c664,_0x301f68._0x23e7bc,-0xe0)],_0xa8237a=countLines(_0x54d15f);function _0x1a0afd(_0x3720a3,_0x4a5a07,_0x1cb587,_0x4aedf8){return _0x4aa629(_0x3720a3-_0x4f5d5e._0x3b2bed,_0x4aedf8,_0x1cb587-0x11f,_0x3720a3-_0x4f5d5e._0x33c25d);}const _0x1cf6b5=countLines(_0x3f3345);return{'oldStartLine':_0x368fe4,'oldEndLine':_0x368fe4+_0xa8237a-0x1,'newStartLine':_0x368fe4,'newEndLine':_0x368fe4+_0x1cf6b5-0x1,'oldLineCount':_0xa8237a,'newLineCount':_0x1cf6b5};}function createFileEditTool(_0x1fc68e={}){const _0x3a14db={_0x53827e:0x352,_0x3a668c:0x25d,_0x48e580:0x3ed,_0x4c4000:0xbf,_0x4e594c:0x20b,_0x3538cc:0x134,_0x616b10:0x530,_0x33a11e:0x4ec,_0x89762:0x156,_0x4ab4ab:0x2d2,_0x2bc849:0x1d9,_0x438175:0x42e,_0x4ce325:0x35a,_0x4ab452:0x472,_0x5e767d:0x217,_0x4b1fbc:0x10,_0x568a70:0x4db,_0x33a6dd:0x49,_0x4159e3:0xe9,_0x192849:0xbf,_0x4962a9:0x14a,_0x2ff0ef:0x19c,_0x4a693c:0x14c,_0x10bbd9:0x165,_0x31d39a:0x12b,_0x18de17:0x1ca},_0x149913={_0x369560:0x1be,_0xde005c:0xab,_0x4d44cf:0x347,_0x10cf57:0x3d5,_0x441ae2:0x2a4,_0x1e43a5:0x31e,_0x59838a:0x330,_0x413130:0x30b,_0x199558:0x284,_0x307930:0x125,_0x65bcbb:0x9d,_0x452b1e:0xc9,_0x503860:0x1ee,_0x57c45a:0x211,_0x7dc36f:0xdc,_0x771424:0x2e0,_0x402bad:0x2cd,_0x5de2d6:0x18b,_0xa2f513:0x1c0,_0x36528a:0x17b,_0xbf38dd:0x1c,_0x1f814e:0x12f,_0x3d1876:0x13b,_0x57816c:0x1ad,_0x29589a:0x20f,_0xb5de2c:0x18a,_0x1c5c14:0x13d,_0x44ca9b:0x2f2,_0x49cdc0:0x31f,_0x282d8e:0x182,_0xe41b37:0x218,_0x1e9a7a:0x1ca,_0x3faab1:0x33d,_0x33b41d:0x34d,_0x376b95:0x3f3,_0x281ff1:0x26a,_0x57790b:0x20f},_0x2d8a5c={_0x5a8d20:0x188},_0x37ad11=_0x3c64ec[_0x990481(_0x3a14db._0x53827e,_0x3a14db._0x3a668c,_0x3a14db._0x48e580,0x262)](_0x1fc68e[_0x5adc36(_0x3a14db._0x4c4000,_0x3a14db._0x4e594c,0x269,_0x3a14db._0x3538cc)]??process[_0x990481(_0x3a14db._0x616b10,0x63a,0x50a,_0x3a14db._0x33a11e)]()),_0x587454=(_0x1fc68e[_0x5adc36(_0x3a14db._0x89762,_0x3a14db._0x4ab4ab,0x10d,0x1fa)]??[])[_0x990481(0x310,0x25a,0x1e3,_0x3a14db._0x2bc849)](_0x5ddf2e=>_0x3c64ec['resolve'](_0x5ddf2e));function _0x5adc36(_0xba999c,_0x423a92,_0x5b115e,_0x33810a){return _0x4aa629(_0xba999c-0xb6,_0x5b115e,_0x5b115e-0x81,_0x33810a-0xfc);}function _0x990481(_0x44506b,_0x33f09b,_0x325c88,_0x5b1c2f){return _0x2f0acf(_0x44506b-0xe2,_0x33f09b-0x1b,_0x325c88,_0x5b1c2f-_0x2d8a5c._0x5a8d20);}const _0x155254=_0x1fc68e[_0x990481(_0x3a14db._0x438175,_0x3a14db._0x4ce325,_0x3a14db._0x4ab452,0x420)]??_0x5adc36(_0x3a14db._0x5e767d,_0x3a14db._0x4b1fbc,0x16e,0x137);return defineTool({'name':_0x155254,'description':_0x990481(0x395,_0x3a14db._0x568a70,0x45e,0x377),'inputSchema':{'type':_0x5adc36(_0x3a14db._0x33a6dd,-0x24,_0x3a14db._0x4159e3,_0x3a14db._0x192849),'properties':{'filePath':{'type':'string'},'oldText':{'type':_0x5adc36(0x184,0x1fd,0xa3,_0x3a14db._0x4962a9)},'newText':{'type':'string'},'dryRun':{'type':'boolean'}},'required':[_0x5adc36(_0x3a14db._0x2ff0ef,0xad,_0x3a14db._0x4a693c,0x8b),'oldText',_0x5adc36(0x1b7,_0x3a14db._0x10bbd9,_0x3a14db._0x31d39a,_0x3a14db._0x18de17)]},async *'execute'(_0x363efc){const _0x4a9164={_0x18d545:0x136,_0x3685a7:0x133},_0x1886e9={_0x3cd475:0xbb},_0x197ada=resolveAllowedPath(_0x37ad11,_0x587454,_0x363efc[_0x2727c8(0x1dc,_0x149913._0x369560,_0x149913._0xde005c,0x191)]);await assertWorkspaceFile(_0x197ada);const _0x1f3c36=await _0x2ac566(_0x197ada),_0x1fc69b=await _0x14447b(_0x197ada),_0x35034d=detectEol(_0x1fc69b),_0x1ad443=normalizeToLf(_0x1fc69b[_0x2727c8(0x345,_0x149913._0x4d44cf,_0x149913._0x10cf57,0x332)]('utf8')),_0x45b580=normalizeToLf(_0x363efc[_0x79218e(_0x149913._0x441ae2,0x431,_0x149913._0x1e43a5,_0x149913._0x59838a)]),_0x8dcaaf=normalizeToLf(_0x363efc[_0x2727c8(_0x149913._0x413130,0x2fd,_0x149913._0x199558,0x221)]),_0x4b5111=_0x1ad443['indexOf'](_0x45b580);if(_0x4b5111===-0x1){const _0x40c668=_0x45b580[_0x2727c8(_0x149913._0x307930,0x12f,0x2e,0x1f)](0x0,0x64)[_0x2727c8(_0x149913._0x65bcbb,_0x149913._0x452b1e,0x99,_0x149913._0x503860)](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x40c668+(_0x45b580[_0x79218e(_0x149913._0x57c45a,_0x149913._0x7dc36f,0x20f,0x2b8)]>0x64?_0x79218e(_0x149913._0x771424,0x2b9,_0x149913._0x402bad,0x202):'')+'\x22',{'filePath':_0x363efc[_0x79218e(_0x149913._0x5de2d6,_0x149913._0xa2f513,0x218,_0x149913._0x36528a)]});}const _0x1f4d0e=_0x1ad443['slice'](0x0,_0x4b5111)+_0x8dcaaf+_0x1ad443[_0x2727c8(_0x149913._0xbf38dd,_0x149913._0x1f814e,0x242,_0x149913._0x3d1876)](_0x4b5111+_0x45b580[_0x79218e(_0x149913._0x57816c,0x1eb,_0x149913._0x29589a,0x16b)]),_0x3967cc=convertEol(_0x1f4d0e,_0x35034d),_0x3dea90=Buffer[_0x79218e(0x22b,0x5e,_0x149913._0xb5de2c,0x1d3)](_0x3967cc,'utf8'),_0x16f271=sha256(_0x1fc69b),_0x35eb4f=sha256(_0x3dea90),_0x1e9b52=_0x16f271===_0x35eb4f,_0x273ade=_0x363efc[_0x2727c8(0x46,_0x149913._0x1c5c14,0xb8,0x1a3)]??![];!_0x273ade&&!_0x1e9b52&&await atomicWrite(_0x197ada,_0x3dea90);function _0x79218e(_0x499e35,_0x51592a,_0x3aabd1,_0x1e8efd){return _0x990481(_0x3aabd1- -0x196,_0x51592a-_0x1886e9._0x3cd475,_0x51592a,_0x1e8efd-0x13e);}function _0x2727c8(_0x2b46b8,_0x554b3f,_0x5b55fb,_0x575174){return _0x5adc36(_0x2b46b8-0x56,_0x554b3f-_0x4a9164._0x18d545,_0x2b46b8,_0x554b3f-_0x4a9164._0x3685a7);}return yield createToolOutput(_0x1e9b52?'No\x20changes\x20(content\x20identical).':_0x273ade?'Validated\x20(dry\x20run:\x20no\x20write).':_0x2727c8(0x24e,_0x149913._0x44ca9b,0x305,_0x149913._0x49cdc0),{'filePath':_0x363efc[_0x79218e(0x296,_0x149913._0x282d8e,_0x149913._0xe41b37,_0x149913._0x1e9a7a)],'resolvedPath':_0x197ada,'created':_0x1f3c36[_0x79218e(0x320,_0x149913._0x3faab1,_0x149913._0x33b41d,_0x149913._0x376b95)]['toISOString'](),'modified':_0x1f3c36['mtime'][_0x79218e(0x13e,0x6d,0x11b,0xa6)](),'size':_0x1f3c36['size'],'eol':_0x35034d,'oldTextLength':_0x45b580['length'],'newTextLength':_0x8dcaaf[_0x79218e(_0x149913._0x281ff1,0x2b2,_0x149913._0x57790b,0x210)],'bytesWritten':_0x1e9b52||_0x273ade?0x0:_0x3dea90['length'],'beforeSha':_0x16f271,'afterSha':_0x35eb4f,'dryRun':_0x273ade,'noChange':_0x1e9b52,'lineNumbers':calculateLineNumbers(_0x1ad443,_0x45b580,_0x8dcaaf,_0x4b5111)}),void 0x0;}});}import{mkdir as _0xcffba8,rename as _0x355b12,stat as _0x1eec04,writeFile as _0x2791cb}from'fs/promises';import*as _0x51deba from'path';async function atomicWrite2(_0x52ad08,_0x1efda0){const _0x4159d5={_0x3e3228:0x558,_0x3a9594:0x1b9,_0x13edba:0x180,_0x300747:0x31,_0x1acc66:0x1a4,_0x4b5b37:0x30c,_0x426c37:0x3f3,_0x1976d3:0x4cc,_0x479ae9:0x550},_0x5ca33f={_0x583224:0x145,_0x1dbc5c:0x156,_0x7ced1f:0x19c},_0x2f2b65={_0xd60504:0xc0,_0x3b5f7e:0x13e,_0x254af5:0x5cc},_0xc3384d=_0x51deba['dirname'](_0x52ad08);await _0xcffba8(_0xc3384d,{'recursive':!![]});const _0x500b47=_0x51deba[_0x51113f(0x60a,_0x4159d5._0x3e3228,0x656,0x5ad)](_0xc3384d,_0x23744(_0x4159d5._0x3a9594,0xde,_0x4159d5._0x13edba,0xa0)+_0x51deba[_0x23744(0x1fb,-0x48,0xd4,-_0x4159d5._0x300747)](_0x52ad08)+'.'+Date[_0x23744(0x32f,_0x4159d5._0x1acc66,0x259,0x1dc)]()+'.'+Math['random']()[_0x23744(_0x4159d5._0x4b5b37,_0x4159d5._0x426c37,0x2b4,0x294)](0x24)[_0x51113f(0x567,_0x4159d5._0x1976d3,0x54b,_0x4159d5._0x479ae9)](0x2));function _0x51113f(_0x51fade,_0x4fe12a,_0x5c41fc,_0x7ab694){return _0x4aa629(_0x51fade-_0x2f2b65._0xd60504,_0x7ab694,_0x5c41fc-_0x2f2b65._0x3b5f7e,_0x4fe12a-_0x2f2b65._0x254af5);}function _0x23744(_0x3554d8,_0x72c6f3,_0x48d7d3,_0x403b5a){return _0x4aa629(_0x3554d8-_0x5ca33f._0x583224,_0x3554d8,_0x48d7d3-_0x5ca33f._0x1dbc5c,_0x48d7d3-_0x5ca33f._0x7ced1f);}await _0x2791cb(_0x500b47,_0x1efda0),await _0x355b12(_0x500b47,_0x52ad08);}function createFileNewTool(_0x39ecb4={}){const _0x5c0f51={_0x44648e:0x607,_0x328553:0x72c,_0x2d5aa0:0xcf,_0xb0066f:0x4f,_0x41db8c:0x77,_0x549504:0x70,_0x5a7dca:0xa1,_0x4122e0:0x1b7,_0x383892:0x4,_0x51ad8d:0xf7,_0x3da0ba:0x134,_0x28cc1b:0x40,_0x2b7136:0xfc,_0x49401f:0x175,_0x26fff6:0x1c,_0x1da621:0xff,_0x25fbd1:0x55e,_0x2d4b24:0x672,_0xd72773:0x6ba},_0x485664={_0x277fe1:0x5ab,_0x2a3b9e:0x691,_0x35f599:0x78d,_0x3d4cb3:0x5f4,_0x54ff2f:0x5a3,_0x36a296:0x631,_0x120327:0x4f8,_0x15e699:0x632,_0x155141:0x582,_0x45f219:0x620,_0x466c88:0x6fb,_0x1e698e:0x4a7,_0x1b846b:0x555,_0x2ecc5f:0x43a,_0x193356:0x6a9,_0x1b6e3a:0x803,_0x1f0ebb:0x6cb,_0x1034c2:0x6e3,_0x3e3512:0x6cc,_0x4bc33f:0x75d,_0x218c38:0x5c9,_0x1c0fbf:0x5ae},_0x4f060b={_0x146e95:0x141,_0x98e27f:0x59,_0x3afb45:0xb5},_0x51e809={_0x2b7eb2:0x681},_0x1a4b95={_0x3b4491:0x33,_0x331ece:0x178},_0xae4691={_0x1a81f8:0x292,_0x1ded61:0xa};function _0x52e8f3(_0x5da735,_0x46c854,_0x1561c3,_0xdb2551){return _0x2f0acf(_0x1561c3-_0xae4691._0x1a81f8,_0x46c854-_0xae4691._0x1ded61,_0x5da735,_0xdb2551-0xf2);}function _0x18d3c6(_0x59e5f3,_0x17291f,_0x55bb5b,_0x4c80e4){return _0x2f0acf(_0x4c80e4- -0x3cb,_0x17291f-_0x1a4b95._0x3b4491,_0x17291f,_0x4c80e4-_0x1a4b95._0x331ece);}const _0x1c014b=_0x51deba['resolve'](_0x39ecb4[_0x52e8f3(0x6e7,0x613,_0x5c0f51._0x44648e,0x597)]??process[_0x52e8f3(_0x5c0f51._0x328553,0x5d2,0x6e0,0x72f)]()),_0x5eba06=(_0x39ecb4[_0x18d3c6(_0x5c0f51._0x2d5aa0,_0x5c0f51._0xb0066f,-_0x5c0f51._0x41db8c,_0x5c0f51._0x549504)]??[])[_0x52e8f3(0x411,0x3b8,0x4c0,0x572)](_0x544a3b=>_0x51deba[_0x18d3c6(-0x1ac,-0x88,-0x194,-0x15b)](_0x544a3b)),_0x4aa7d9=_0x39ecb4[_0x18d3c6(_0x5c0f51._0x5a7dca,-_0x5c0f51._0x4122e0,-0x1c7,-0x7f)]??'FileNew';return defineTool({'name':_0x4aa7d9,'description':'Create\x20or\x20overwrite\x20a\x20UTF-8\x20text\x20file\x20in\x20the\x20workspace\x20or\x20allowed\x20directories.','inputSchema':{'type':_0x18d3c6(-0x41,-0x1a7,-_0x5c0f51._0x383892,-0xcb),'properties':{'filePath':{'type':_0x18d3c6(_0x5c0f51._0x51ad8d,-_0x5c0f51._0x3da0ba,-0x22,-_0x5c0f51._0x28cc1b)},'content':{'type':'string'}},'required':[_0x18d3c6(-_0x5c0f51._0x2b7136,-_0x5c0f51._0x49401f,_0x5c0f51._0x26fff6,-_0x5c0f51._0x1da621),_0x52e8f3(_0x5c0f51._0x25fbd1,0x59b,_0x5c0f51._0x2d4b24,_0x5c0f51._0xd72773)]},async *'execute'(_0x5d9426){const _0xae03ad=resolveAllowedPath(_0x1c014b,_0x5eba06,_0x5d9426['filePath']);function _0x1ce2b6(_0x385a54,_0x405418,_0x2d7527,_0x149455){return _0x18d3c6(_0x385a54-0x18b,_0x2d7527,_0x2d7527-0x1b8,_0x405418-_0x51e809._0x2b7eb2);}const _0x2f5630=await _0x1eec04(_0xae03ad)[_0x1ce2b6(0x619,0x564,_0x485664._0x277fe1,_0x485664._0x2a3b9e)](()=>!![])[_0x5d3d69(0x7ac,_0x485664._0x35f599,0x68a,0x595)](()=>![]),_0x2b277d=Buffer['from'](_0x5d9426[_0x5d3d69(0x653,_0x485664._0x3d4cb3,0x6cb,_0x485664._0x54ff2f)],'utf8');await atomicWrite2(_0xae03ad,_0x2b277d);function _0x5d3d69(_0x54dec1,_0x3987f5,_0x326ea7,_0x3ea739){return _0x52e8f3(_0x3987f5,_0x3987f5-_0x4f060b._0x146e95,_0x326ea7-_0x4f060b._0x98e27f,_0x3ea739-_0x4f060b._0x3afb45);}return yield createToolOutput(_0x1ce2b6(0x762,_0x485664._0x36a296,_0x485664._0x120327,_0x485664._0x15e699)+_0x5d9426[_0x1ce2b6(0x457,_0x485664._0x155141,0x4d8,_0x485664._0x45f219)]+'.',{'filePath':_0x5d9426[_0x5d3d69(_0x485664._0x466c88,0x696,0x5b7,_0x485664._0x1e698e)],'resolvedPath':_0xae03ad,'bytes':_0x2b277d[_0x1ce2b6(0x545,0x579,_0x485664._0x1b846b,_0x485664._0x2ecc5f)],'lines':_0x5d9426[_0x5d3d69(_0x485664._0x193356,_0x485664._0x1b6e3a,_0x485664._0x1f0ebb,_0x485664._0x1034c2)][_0x1ce2b6(0x60b,_0x485664._0x3e3512,_0x485664._0x4bc33f,0x733)](/\r?\n/)[_0x5d3d69(_0x485664._0x218c38,0x477,_0x485664._0x1c0fbf,0x533)],'created':new Date()[_0x5d3d69(0x573,0x451,0x4ba,0x432)](),'overwritten':_0x2f5630}),void 0x0;}});}import{readFile as _0x46f4da,stat as _0xddb0a4}from'fs/promises';import*as _0x5c6f0a from'path';function stripUtfBom(_0x51f155){const _0x6a952={_0x46fd54:0xfb,_0x171c37:0x19f,_0x4fa919:0x1c6},_0x555c94={_0x47d000:0xa,_0x2d970e:0xde},_0x2db325={_0x73b8e5:0x3f5,_0x3f3275:0x145,_0xf7862c:0x135};function _0x3d2e00(_0x2897b8,_0x48bc39,_0x592bc2,_0x1ccaac){return _0x2f0acf(_0x2897b8- -_0x2db325._0x73b8e5,_0x48bc39-_0x2db325._0x3f3275,_0x1ccaac,_0x1ccaac-_0x2db325._0xf7862c);}function _0x190c97(_0x1e0982,_0x215373,_0x386fb5,_0xb50d36){return _0x4aa629(_0x1e0982-_0x555c94._0x47d000,_0x386fb5,_0x386fb5-_0x555c94._0x2d970e,_0xb50d36-0xc);}return _0x51f155[_0x190c97(0xe3,0x6b,-_0x6a952._0x46fd54,-0x1b)](0x0)===0xfeff?_0x51f155[_0x190c97(-_0x6a952._0x171c37,0x1,-_0x6a952._0x4fa919,-0xf4)](0x1):_0x51f155;}function clampLine(_0x31a5c7,_0x3e72c9){const _0x32446d={_0x1c43e4:0x18a,_0x2702bb:0x179,_0x1ad5e8:0x52,_0x1ccb79:0xc,_0x53d5dd:0x190,_0x6d397c:0x119,_0xc71547:0x153,_0x92b91b:0x14d,_0x2d3db8:0x25f},_0x3d9378={_0x5b7576:0xd1,_0x44b0e0:0xf1};function _0x489ffa(_0x42627a,_0x5a9c5e,_0x51b1e7,_0x57ff0a){return _0x2f0acf(_0x57ff0a- -0x1c6,_0x5a9c5e-_0x3d9378._0x5b7576,_0x42627a,_0x57ff0a-_0x3d9378._0x44b0e0);}function _0x310197(_0x43b553,_0x5e9f7f,_0x1032e6,_0x1c3bde){return _0x4aa629(_0x43b553-0x18d,_0x1032e6,_0x1032e6-0x18e,_0x43b553- -0xda);}if(!Number[_0x310197(-_0x32446d._0x1c43e4,-0x1b1,-0x292,-0x112)](_0x31a5c7))return 0x1;return Math[_0x310197(-0x13f,-_0x32446d._0x2702bb,-0x126,-_0x32446d._0x1ad5e8)](0x1,Math[_0x489ffa(_0x32446d._0x1ccb79,_0x32446d._0x53d5dd,-0xb,_0x32446d._0x6d397c)](Math[_0x489ffa(0x244,_0x32446d._0xc71547,_0x32446d._0x92b91b,_0x32446d._0x2d3db8)](_0x31a5c7),_0x3e72c9));}function createFileReadTool(_0x3dfca4={}){const _0x5589aa={_0x137aaf:0x118,_0x403ab6:0x228,_0x2e85bb:0x21d,_0x242970:0x2f6,_0x421fb7:0x1bf,_0x39b0db:0x42a,_0x2f6eae:0x8d,_0x48d62c:0x1b8,_0x3b8a2e:0x116,_0x3e9406:0xd6,_0x3e8867:0x1a4,_0x515934:0x1a5,_0x37e786:0x19a,_0x5e790d:0x233,_0x59d545:0x326,_0x3e1294:0x2b8,_0x22d10c:0x2bd,_0x65a9b:0x1c4,_0x13ca52:0x21b},_0x1dd280={_0x3d8585:0x1c3,_0x41b25c:0x5f1,_0x2f85d8:0x6a,_0x3afbe0:0x10f,_0x34c68f:0xdd,_0x3e1111:0x22,_0x2b5ee9:0x28,_0x4f03ee:0x67,_0x4751c8:0x137,_0x42404b:0x10a,_0x22bca3:0x7be,_0xe59c4b:0x363,_0x1e9327:0x47d,_0x5402f1:0x56b,_0xc59ee4:0x3c2,_0x243a36:0x219,_0x26f1a1:0x1da,_0x1bd529:0x1e5,_0x1bacd2:0x7e,_0x25e341:0x16a,_0xb01577:0x6ff,_0x2861c5:0x682,_0xb22a44:0x571,_0x4ac273:0xa0,_0x27577b:0x486,_0x121821:0x58d,_0x452b73:0x561,_0x2626f3:0x586,_0x543908:0x528,_0x55c210:0x426,_0x55daa7:0x4eb,_0x3d4297:0x51a,_0x5acdab:0x21d,_0x3566d9:0x16c,_0x16d05f:0xe9},_0x50fa90={_0x5546b2:0x75c,_0x419367:0xbc},_0x347cea={_0x3992ca:0x155,_0x1deb04:0x1c4,_0x502ab2:0x1e5},_0x3673f6={_0xf55d67:0x171},_0xd63177=_0x5c6f0a[_0xaf97a7(0x13f,_0x5589aa._0x137aaf,-0x23,-0x28)](_0x3dfca4[_0xaf97a7(_0x5589aa._0x403ab6,_0x5589aa._0x2e85bb,0x240,0x115)]??process[_0xaf97a7(0x2f5,_0x5589aa._0x242970,_0x5589aa._0x421fb7,_0x5589aa._0x39b0db)]()),_0x29d48b=(_0x3dfca4[_0x476900(-0x73,-_0x5589aa._0x2f6eae,0x74,-_0x5589aa._0x48d62c)]??[])[_0xaf97a7(_0x5589aa._0x3b8a2e,_0x5589aa._0x3e9406,0x1ce,-0x1f)](_0x55b516=>_0x5c6f0a[_0x476900(-0x23e,-0x139,-0x290,-0x27a)](_0x55b516));function _0x476900(_0x362265,_0x147649,_0x176806,_0x521fbd){return _0x4aa629(_0x362265-0xb6,_0x521fbd,_0x176806-0xd8,_0x362265- -_0x3673f6._0xf55d67);}function _0xaf97a7(_0x21c2c3,_0x2687ff,_0x307d17,_0x334dc9){return _0x4aa629(_0x21c2c3-_0x347cea._0x3992ca,_0x307d17,_0x307d17-_0x347cea._0x1deb04,_0x2687ff-_0x347cea._0x502ab2);}const _0xc16378=_0x3dfca4['name']??'FileRead';return defineTool({'name':_0xc16378,'description':_0xaf97a7(0x1ba,_0x5589aa._0x3e8867,0x291,_0x5589aa._0x515934),'inputSchema':{'type':_0x476900(-0x1ae,-0x113,-0x275,-0x228),'properties':{'path':{'type':_0xaf97a7(_0x5589aa._0x37e786,_0x5589aa._0x5e790d,0x2b7,_0x5589aa._0x59d545)},'lineStart':{'type':_0xaf97a7(0x31e,_0x5589aa._0x3e1294,0x3f0,0x1f6)},'lineEnd':{'type':_0xaf97a7(_0x5589aa._0x22d10c,_0x5589aa._0x3e1294,0x3a3,0x286)}},'required':[_0x476900(-_0x5589aa._0x65a9b,-_0x5589aa._0x13ca52,-0x296,-0xe0)]},async *'execute'(_0x30096f){const _0x2b4164={_0x78e40f:0x81,_0x3c8dac:0x13c},_0x1933d1=resolveAllowedPath(_0xd63177,_0x29d48b,_0x30096f[_0x1eefc4(-_0x1dd280._0x3d8585,-0xd0,-0x135,-0x143)]);await assertWorkspaceFile(_0x1933d1);const _0x55070e=await _0xddb0a4(_0x1933d1),_0x1e4311=await _0x46f4da(_0x1933d1);if(isProbablyBinary(_0x1e4311))throw new ToolExecutionError(_0x19ff02(0x628,0x5b9,_0x1dd280._0x41b25c,0x505)+_0x30096f[_0x1eefc4(-_0x1dd280._0x2f85d8,-0xce,-_0x1dd280._0x3afbe0,-0x143)],{'path':_0x30096f['path']});function _0x19ff02(_0x25f4c7,_0x47b548,_0x405972,_0x4bfd6b){return _0x476900(_0x47b548-_0x50fa90._0x5546b2,_0x47b548-_0x50fa90._0x419367,_0x405972-0x18e,_0x405972);}let _0x3528fc=_0x1e4311[_0x1eefc4(-0x64,_0x1dd280._0x34c68f,-_0x1dd280._0x3e1111,_0x1dd280._0x2b5ee9)](_0x1eefc4(-0x25f,-0x132,-_0x1dd280._0x4f03ee,-0x1a8));const _0x103fcb=_0x3528fc[_0x1eefc4(-0x150,0x29,-_0x1dd280._0x4751c8,-0x117)](0x0)===0xfeff;_0x3528fc=stripUtfBom(_0x3528fc);const _0x1604f7=_0x3528fc['split'](/\r?\n/),_0x1ed720={'path':_0x30096f[_0x1eefc4(-0xe2,-0x159,-_0x1dd280._0x42404b,-0x143)],'resolvedPath':_0x1933d1,'created':_0x55070e[_0x19ff02(0x755,0x6af,0x676,_0x1dd280._0x22bca3)]['toISOString'](),'modified':_0x55070e[_0x1eefc4(-0x215,-0x1c4,-0x2d4,-0x1df)][_0x19ff02(_0x1dd280._0xe59c4b,_0x1dd280._0x1e9327,_0x1dd280._0x5402f1,_0x1dd280._0xc59ee4)](),'size':_0x55070e['size'],'encoding':_0x1eefc4(-_0x1dd280._0x243a36,-_0x1dd280._0x26f1a1,-_0x1dd280._0x1bd529,-0x1a8),'bomStripped':_0x103fcb,'truncated':![],'totalLines':_0x1604f7[_0x1eefc4(-_0x1dd280._0x1bacd2,-0x194,-0x1b6,-_0x1dd280._0x25e341)]};if(_0x30096f[_0x19ff02(0x579,0x68a,0x7ad,_0x1dd280._0xb01577)]!==void 0x0||_0x30096f[_0x19ff02(0x591,0x59c,0x6df,_0x1dd280._0x2861c5)]!==void 0x0){const _0x358d49=clampLine(_0x30096f['lineStart']??0x1,_0x1604f7['length']),_0x2d3b9f=clampLine(_0x30096f['lineEnd']??_0x1604f7[_0x19ff02(0x53d,_0x1dd280._0xb22a44,0x60f,0x4ac)],_0x1604f7[_0x1eefc4(-_0x1dd280._0x4ac273,-0x1f0,-0x271,-_0x1dd280._0x25e341)]),_0x475755=Math[_0x19ff02(_0x1dd280._0x27577b,_0x1dd280._0x121821,0x588,_0x1dd280._0x452b73)](_0x358d49,_0x2d3b9f),_0x3049f2=Math[_0x19ff02(0x660,_0x1dd280._0x2626f3,_0x1dd280._0x543908,0x58e)](_0x358d49,_0x2d3b9f),_0x68d349=_0x1604f7[_0x19ff02(_0x1dd280._0x55c210,_0x1dd280._0x55daa7,0x4ea,_0x1dd280._0x3d4297)](_0x475755-0x1,_0x3049f2)['map']((_0x55b6b4,_0x3df5e8)=>_0x475755+_0x3df5e8+'|'+_0x55b6b4)[_0x1eefc4(-_0x1dd280._0x5acdab,-_0x1dd280._0x3566d9,-_0x1dd280._0x16d05f,-0x164)]('\x0a');return yield createToolOutput(_0x68d349,{..._0x1ed720,'lineRange':{'lineStart':_0x475755,'lineEnd':_0x3049f2,'linesTotal':_0x1604f7['length']}}),void 0x0;}function _0x1eefc4(_0x274aaf,_0x318635,_0x529e0e,_0x178bbd){return _0x476900(_0x178bbd-_0x2b4164._0x78e40f,_0x318635-_0x2b4164._0x3c8dac,_0x529e0e-0xb1,_0x318635);}return yield createToolOutput(_0x3528fc,_0x1ed720),void 0x0;}});}import{stat as _0x431b3e}from'fs/promises';import*as _0xcae91e from'path';import{execSync,spawn as _0x2cfd50}from'child_process';import{existsSync}from'fs';import{stat as _0x27acd9}from'fs/promises';import*as _0x3be73 from'os';import*as _0x4bd6bb from'path';import{rgPath as _0x10a83a}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x36b770={_0x464573:0x16a,_0x508394:0x6,_0x10ecb3:0xe6,_0x313229:0x16f,_0x222755:0x255,_0x5ccac6:0xe4,_0xa677d:0xe9,_0x31034f:0x158,_0xfa3b11:0x2bd,_0x143205:0x3c6,_0x1c81c4:0x2a1,_0x5b49ac:0x7a,_0x535201:0x39c,_0x420ce5:0xe5,_0x4051aa:0x15c,_0x22259f:0x5c,_0x47d51a:0x2ed,_0x253af1:0x225,_0xa6b9bd:0x238,_0x27f1e2:0x1ef,_0x4c7592:0x1aa,_0x123f97:0x146,_0x4965e4:0xf7,_0xc5f8a:0x1c8,_0x43ad6e:0x144,_0x155a42:0x4e,_0x5c5223:0x187,_0x4466b9:0x1da,_0xea432d:0x1b4,_0x2f102b:0x9a,_0x5c3ae3:0x2c,_0x8c47f3:0x33,_0x1db4f3:0x1ee,_0x28642e:0x27f,_0x182c0f:0xf6,_0xbd52d5:0xa9,_0x1e71a7:0x15,_0x4325ab:0x1f7,_0x3f8512:0x206,_0x1dab57:0x180,_0x89eea4:0x66,_0x1487e8:0xe0,_0x49c082:0x5a,_0x5e5813:0x29c,_0xa98307:0x1ac,_0x181285:0x75},_0x399307={_0x4887a:0x48b,_0x1ee7c8:0x195},_0x3a7b2e={_0x19a87d:0x185},_0x45a565=_0x3be73[_0x5a3d04(_0x36b770._0x464573,-_0x36b770._0x508394,_0x36b770._0x10ecb3,0x1f3)]()===_0x5a3d04(_0x36b770._0x313229,_0x36b770._0x222755,0x272,0x15a),_0x35b12f=_0x45a565?[_0x4bd6bb[_0x31eb29(-_0x36b770._0x5ccac6,-0x1b4,-0x94,-0x1c2)](process['env'][_0x31eb29(-0x112,-_0x36b770._0xa677d,-_0x36b770._0x31034f,-0x119)]||'',_0x31eb29(-_0x36b770._0xfa3b11,-0x268,-_0x36b770._0x143205,-_0x36b770._0x1c81c4),_0x5a3d04(0x199,0xc9,_0x36b770._0x5b49ac,0x15b),_0x5a3d04(0x248,_0x36b770._0x535201,0x2a2,0x340)),_0x4bd6bb[_0x5a3d04(_0x36b770._0x420ce5,0x9b,0x144,0x101)](process['env'][_0x31eb29(-_0x36b770._0x4051aa,0xc,0x33,-_0x36b770._0x22259f)]||'',_0x31eb29(-_0x36b770._0x47d51a,-_0x36b770._0x253af1,-_0x36b770._0xa6b9bd,-_0x36b770._0x27f1e2),_0x5a3d04(0xda,0x128,_0x36b770._0x4c7592,_0x36b770._0x123f97)),_0x4bd6bb[_0x5a3d04(_0x36b770._0x4965e4,_0x36b770._0xc5f8a,_0x36b770._0x43ad6e,_0x36b770._0x155a42)](process['env']['ProgramFiles(x86)']||'','ripgrep','rg.exe')]:[_0x31eb29(-_0x36b770._0x5c5223,-0x2be,-_0x36b770._0x4466b9,-_0x36b770._0xea432d),_0x31eb29(-_0x36b770._0x2f102b,_0x36b770._0x5c3ae3,0xe6,-_0x36b770._0x8c47f3),_0x5a3d04(_0x36b770._0x1db4f3,0x23d,_0x36b770._0x28642e,_0x36b770._0x253af1),_0x31eb29(-0x303,-0x21a,-_0x36b770._0x182c0f,-0x1e6)];for(const _0x359890 of _0x35b12f){if(existsSync(_0x359890))return _0x359890;}function _0x5a3d04(_0xd56ea2,_0x1e4dee,_0x160e77,_0x58669b){return _0x2f0acf(_0x160e77- -_0x3a7b2e._0x19a87d,_0x1e4dee-0x5b,_0xd56ea2,_0x58669b-0x161);}function _0x31eb29(_0xa2aed7,_0x24a42c,_0x2c1120,_0x56d8e5){return _0x2f0acf(_0x56d8e5- -_0x399307._0x4887a,_0x24a42c-0x105,_0x2c1120,_0x56d8e5-_0x399307._0x1ee7c8);}try{const _0x3b678f=_0x45a565?_0x31eb29(-_0x36b770._0xbd52d5,-0x150,_0x36b770._0x1e71a7,-0x49):'which\x20rg',_0x3bb16b=execSync(_0x3b678f,{'encoding':_0x31eb29(-_0x36b770._0x4325ab,-0x2bd,-0x30c,-_0x36b770._0x3f8512),'stdio':[_0x5a3d04(_0x36b770._0x1dab57,-_0x36b770._0x89eea4,_0x36b770._0x1487e8,-0x21),_0x5a3d04(0xe4,-_0x36b770._0x49c082,0xe0,-0x17),'ignore']})[_0x31eb29(-0x223,-0x332,-0x335,-_0x36b770._0x5e5813)]()[_0x31eb29(-_0x36b770._0xa98307,-0x122,-_0x36b770._0x22259f,-_0x36b770._0x181285)](/\r?\n/)[0x0];if(_0x3bb16b&&existsSync(_0x3bb16b))return _0x3bb16b;}catch{return null;}return null;}async function filepath(){const _0x198027={_0x903180:0x57c,_0x31bb2c:0x311},_0x246ad3={_0x26538a:0xee,_0x42fd05:0x1ef};if(cachedRgPath)return cachedRgPath;if(_0x10a83a&&existsSync(_0x10a83a))return cachedRgPath=_0x10a83a,_0x10a83a;const _0x40ee51=findSystemRipgrep();if(!_0x40ee51)throw new Error(_0x507e6f(_0x198027._0x903180,0x531,_0x198027._0x31bb2c,0x43e));cachedRgPath=_0x40ee51;function _0x507e6f(_0xe5e82e,_0x5e74b2,_0x4d7b5e,_0x534774){return _0x2f0acf(_0x534774-_0x246ad3._0x26538a,_0x5e74b2-0xe2,_0x4d7b5e,_0x534774-_0x246ad3._0x42fd05);}return _0x40ee51;}async function*files(_0x42ef3a){const _0x4f5a2d={_0x58ede1:0xd1,_0x3c8aad:0x1a2,_0x13e84f:0x42,_0x5a1577:0x1ba,_0x4723a8:0x3c0,_0x5b1f66:0x2b4,_0x149a71:0x385,_0x5f1fd5:0x2c2,_0x393f51:0x174,_0x2c5f1b:0x21d,_0x39ae5c:0x19d,_0xae4d74:0x3,_0xf35722:0x15,_0x11745e:0xfe,_0x4b8937:0x2f2,_0x10eeca:0x1d6,_0x4a3a82:0x28f,_0x2b47f8:0x20,_0x1b1631:0x76,_0x3fe118:0x1b,_0x4f9303:0x212,_0x43c137:0xe2,_0x501531:0x60,_0xfb78f9:0x62,_0x59b0a0:0x191,_0x56ad53:0x1e2,_0x309fd0:0x172,_0x275da2:0x256,_0x5d668a:0xa0,_0xee49f4:0x2b6,_0x32af43:0x7e,_0x104105:0x199,_0x273253:0xc8,_0x378bf8:0x11c,_0x3617a9:0x15a,_0x320a85:0x242,_0x4c071d:0x1d8,_0x3d56e6:0x241,_0xabcc7a:0x16e,_0x14fd5e:0x1e8},_0x97f3dd={_0x232b5c:0x13d,_0x6b258b:0x252},_0x3f42e9={_0x31472d:0x9a};function _0x7afa9e(_0x57cd32,_0x5e711b,_0x43cef5,_0x364d8d){return _0x4aa629(_0x57cd32-0xb,_0x43cef5,_0x43cef5-0x191,_0x364d8d- -_0x3f42e9._0x31472d);}const _0x198dac=await filepath(),_0x33111e=await _0x27acd9(_0x42ef3a[_0x7afa9e(_0x4f5a2d._0x58ede1,_0x4f5a2d._0x3c8aad,_0x4f5a2d._0x13e84f,0x77)])[_0x2ced50(0x216,_0x4f5a2d._0x5a1577,_0x4f5a2d._0x4723a8,_0x4f5a2d._0x5b1f66)](()=>null);if(!_0x33111e?.['isDirectory']())throw Object[_0x2ced50(0x29b,0x452,_0x4f5a2d._0x149a71,0x31b)](new Error(_0x2ced50(_0x4f5a2d._0x5f1fd5,_0x4f5a2d._0x393f51,_0x4f5a2d._0x2c5f1b,_0x4f5a2d._0x39ae5c)+_0x42ef3a['cwd']+'\x27'),{'code':_0x7afa9e(-0xf6,_0x4f5a2d._0xae4d74,0x65,-_0x4f5a2d._0xf35722)});const _0x1006c0=[_0x2ced50(0x112,0x272,_0x4f5a2d._0x11745e,0x149),_0x2ced50(0x2ba,_0x4f5a2d._0x4b8937,_0x4f5a2d._0x10eeca,_0x4f5a2d._0x4a3a82),_0x7afa9e(-0xf6,-0x1f9,_0x4f5a2d._0x2b47f8,-0xb7),_0x7afa9e(0x1e,-0x95,-_0x4f5a2d._0x1b1631,_0x4f5a2d._0x3fe118)];for(const _0x5a066f of _0x42ef3a['glob']??[]){_0x1006c0[_0x2ced50(_0x4f5a2d._0x4f9303,0x263,_0x4f5a2d._0x43c137,0x183)]('--glob='+_0x5a066f);}const _0xd14028=_0x2cfd50(_0x198dac,_0x1006c0,{'cwd':_0x42ef3a[_0x7afa9e(-_0x4f5a2d._0x501531,0x4e,0xe2,0x77)],'stdio':[_0x7afa9e(-_0x4f5a2d._0xfb78f9,-0x19,-_0x4f5a2d._0x59b0a0,-0x9f),_0x7afa9e(-0x160,-0x14d,-_0x4f5a2d._0x56ad53,-_0x4f5a2d._0x309fd0),_0x2ced50(_0x4f5a2d._0x275da2,_0x4f5a2d._0x5d668a,0x1cb,0x17a)]});function _0x2ced50(_0x5f30c5,_0x1b9ed4,_0x15c373,_0x2c976b){return _0x4aa629(_0x5f30c5-_0x97f3dd._0x232b5c,_0x15c373,_0x15c373-0x191,_0x2c976b-_0x97f3dd._0x6b258b);}let _0x70f000='';for await(const _0x2fd152 of _0xd14028[_0x7afa9e(-0xbe,-_0x4f5a2d._0xee49f4,-0x1f7,-0x18f)]??[]){_0x70f000+=_0x2fd152[_0x7afa9e(0x64,-0x40,0x163,_0x4f5a2d._0x32af43)]();const _0x24f501=_0x70f000['split'](/\r?\n/);_0x70f000=_0x24f501[_0x7afa9e(-_0x4f5a2d._0x104105,-0x14a,-_0x4f5a2d._0x273253,-_0x4f5a2d._0x378bf8)]()??'';for(const _0xad37bc of _0x24f501){if(_0xad37bc[_0x2ced50(0x21c,_0x4f5a2d._0x3617a9,_0x4f5a2d._0x320a85,_0x4f5a2d._0x4c071d)]>0x0)yield _0xad37bc;}}_0x70f000['trim']()[_0x2ced50(_0x4f5a2d._0x3d56e6,0x238,0x1b8,0x1d8)]>0x0&&(yield _0x70f000[_0x7afa9e(-0x2ca,-0x300,-_0x4f5a2d._0xabcc7a,-_0x4f5a2d._0x14fd5e)]());}function parseMatchLine(_0x316c2a,_0x2c5481){const _0x211c3f={_0x3ce211:0x43b,_0x1c37e5:0x459,_0x382bc7:0x3af,_0x578d21:0x11a,_0x52613d:0x15d,_0x2fc516:0x2aa,_0x50ef92:0x539,_0x2b646c:0x5f2,_0x3979d9:0x67f,_0x49f2aa:0x2fc,_0xd6c2d9:0x40a,_0x23c422:0x3cc,_0x2a3f11:0x279,_0xde07d7:0x93,_0x2f4f7c:0x3a0,_0x778350:0x3cf,_0x5d86c3:0x3c7,_0x1fc629:0x362,_0x2566eb:0x3c9,_0x33e681:0x49b,_0x240257:0x35c,_0x36154f:0x408,_0x455278:0x343,_0x327797:0x3a4},_0x311318={_0xa3531c:0x5e,_0x5675f4:0x443},_0x2497a2={_0x5456c7:0x67,_0x34332c:0x15d,_0x1e3fb4:0x19b};function _0x560add(_0x486405,_0x8f91f5,_0x5f339b,_0x5ca29d){return _0x2f0acf(_0x5ca29d- -_0x2497a2._0x5456c7,_0x8f91f5-_0x2497a2._0x34332c,_0x5f339b,_0x5ca29d-_0x2497a2._0x1e3fb4);}function _0x335843(_0x52ce3a,_0x58fe4a,_0x1fdc1e,_0x98a511){return _0x4aa629(_0x52ce3a-_0x311318._0xa3531c,_0x1fdc1e,_0x1fdc1e-0x36,_0x58fe4a-_0x311318._0x5675f4);}if(!_0x316c2a||_0x316c2a==='--')return null;const _0xc1095e=_0x316c2a[_0x560add(_0x211c3f._0x3ce211,0x372,_0x211c3f._0x1c37e5,_0x211c3f._0x382bc7)]('|');if(_0x2c5481&&_0xc1095e[_0x560add(_0x211c3f._0x578d21,_0x211c3f._0x52613d,_0x211c3f._0x2fc516,0x25c)]>=0x4&&Number['isFinite'](Number[_0x335843(0x4b2,_0x211c3f._0x50ef92,_0x211c3f._0x2b646c,_0x211c3f._0x3979d9)](_0xc1095e[0x2]??'',0xa))){const _0x383581=Number[_0x560add(_0x211c3f._0x49f2aa,0x4de,_0x211c3f._0xd6c2d9,_0x211c3f._0x23c422)](_0xc1095e[0x1]??'',0xa);if(!Number['isFinite'](_0x383581)||!_0xc1095e[0x0])return null;return{'filePath':_0xc1095e[0x0],'lineNum':_0x383581,'lineText':_0xc1095e[_0x560add(_0x211c3f._0x2a3f11,0x25c,_0x211c3f._0xde07d7,0x1d6)](0x3)[_0x335843(_0x211c3f._0x2f4f7c,_0x211c3f._0x778350,_0x211c3f._0x5d86c3,0x517)]('|')};}if(_0xc1095e[_0x335843(_0x211c3f._0x1fc629,_0x211c3f._0x2566eb,_0x211c3f._0x33e681,0x307)]>=0x3){const _0x521396=Number['parseInt'](_0xc1095e[0x1]??'',0xa);if(!Number[_0x335843(_0x211c3f._0x240257,0x393,0x3ea,0x441)](_0x521396)||!_0xc1095e[0x0])return null;return{'filePath':_0xc1095e[0x0],'lineNum':_0x521396,'lineText':_0xc1095e[_0x335843(_0x211c3f._0x36154f,_0x211c3f._0x455278,_0x211c3f._0x327797,0x423)](0x2)[_0x335843(0x40a,0x3cf,_0x211c3f._0x2fc516,0x4bc)]('|'),..._0x2c5481?{'isContext':!![]}:{}};}return null;}async function search(_0x1f2ca2){const _0x1e7a0e={_0x4cc290:0x391,_0x301724:0x33d,_0x722251:0x32f,_0x451770:0x2dd,_0x51fdf6:0x39b,_0x1bce69:0x47f,_0x233c5b:0x430,_0x4fb743:0x38b,_0x149fed:0x298,_0x715f6e:0x393,_0x290c53:0x44a,_0x5313a2:0x52d,_0xbf512e:0x46f,_0x2760a0:0x4f7,_0x206c7e:0x50a,_0x47aee2:0x1f7,_0x48587b:0x5f4,_0x462c83:0x5ae,_0x3c49a5:0x49f,_0x5b9f53:0x417,_0x1bcd2d:0x400,_0x54d3a7:0x2ca,_0x60fb37:0x3ed,_0x52d65d:0x4a9,_0x5903ef:0x53e,_0x3040d6:0x4de,_0x518d73:0x3fa,_0x3fe099:0x37e,_0x5f090e:0x4cf,_0x22acd0:0x4db,_0x1115b6:0x475,_0x597066:0x5a7,_0x3e2ee1:0x359,_0x15488a:0x319,_0x35827e:0x410,_0x5d87b1:0x40c,_0xc75396:0x50b,_0x921982:0x4a8,_0xbfec85:0x42d,_0x1386b3:0x378,_0x2dddba:0x3d3,_0x19ce73:0x2a5,_0x2a4701:0x2c3,_0x325b18:0x2c5,_0x8248d4:0x24d,_0x5453e1:0x3ec,_0x2c5b3f:0x465,_0xfff3de:0x393,_0x5f6525:0x317,_0x1c2c4f:0x301,_0x2b8cee:0x1e8,_0x857298:0x3e0,_0x566c57:0x2c6,_0x4aac76:0x31e,_0x78a6b9:0x3a0,_0x4f3b87:0x269,_0x485990:0x269,_0x976e4b:0x23d,_0x472de1:0x22e,_0x5c339c:0x372},_0x2bd5c1={_0x449c22:0x46c,_0x2fd53c:0x260,_0x214948:0x108,_0x35950b:0x213,_0x5a5bb8:0xf2,_0x56e739:0x28d,_0x34dde5:0x3c9,_0x2ce012:0x323},_0x4c0bd8={_0x54f3bb:0x220,_0x1a0a9f:0x35c,_0x2ddd64:0x26d,_0x1803c0:0x203,_0x2a8683:0x108,_0x44d3dd:0x57f,_0x5ca8e9:0x5ee,_0xc7aaf:0x5d1},_0x2a28a7={_0x2a1744:0x36},_0x2e5de7={_0x2aaab6:0x482,_0x2e7378:0x573},_0x59e66a={_0x82fa0:0x96},_0x18d135={_0xfc1105:0x9a,_0x4ac9ea:0xd5},_0xbe74a0=await filepath();if(_0x1f2ca2[_0x183bb5(0x2f8,_0x1e7a0e._0x4cc290,_0x1e7a0e._0x301724,_0x1e7a0e._0x722251)]){const _0x469640=await _0x27acd9(_0x1f2ca2[_0x591749(0x1a8,0x350,_0x1e7a0e._0x451770,0x3a3)])[_0x591749(0x41d,0x421,_0x1e7a0e._0x51fdf6,_0x1e7a0e._0x1bce69)](()=>null);if(!_0x469640?.['isFile']())throw Object[_0x591749(0x30b,0x3fe,0x402,0x419)](new Error(_0x183bb5(0x44f,0x449,_0x1e7a0e._0x233c5b,0x3d1)+_0x1f2ca2[_0x591749(0x3a5,_0x1e7a0e._0x4fb743,0x2dd,0x309)]+'\x27'),{'code':_0x591749(0x434,_0x1e7a0e._0x149fed,0x3be,_0x1e7a0e._0x715f6e)});}else{const _0x1509fc=await _0x27acd9(_0x1f2ca2[_0x591749(0x46f,0x4cb,_0x1e7a0e._0x290c53,_0x1e7a0e._0x5313a2)])[_0x591749(0x3f8,_0x1e7a0e._0xbf512e,0x39b,0x439)](()=>null);if(!_0x1509fc?.['isDirectory']())throw Object[_0x591749(_0x1e7a0e._0x2760a0,_0x1e7a0e._0x206c7e,0x402,0x508)](new Error(_0x591749(_0x1e7a0e._0x47aee2,0x3c3,0x284,0x179)+_0x1f2ca2[_0x183bb5(0x444,0x4fe,_0x1e7a0e._0x48587b,_0x1e7a0e._0x462c83)]+'\x27'),{'code':_0x591749(0x4f2,_0x1e7a0e._0x3c49a5,0x3be,0x3f1)});}function _0x183bb5(_0x494471,_0x383acd,_0x483ac8,_0x2a2d72){return _0x4aa629(_0x494471-_0x18d135._0xfc1105,_0x494471,_0x483ac8-_0x18d135._0x4ac9ea,_0x383acd-0x3ed);}const _0x6feb8c=['-nH','--field-match-separator=|',_0x183bb5(_0x1e7a0e._0x5b9f53,0x365,_0x1e7a0e._0x1bcd2d,_0x1e7a0e._0x54d3a7),_0x183bb5(_0x1e7a0e._0x60fb37,_0x1e7a0e._0x52d65d,0x589,_0x1e7a0e._0x5903ef),_0x1f2ca2[_0x183bb5(_0x1e7a0e._0x3040d6,_0x1e7a0e._0x518d73,_0x1e7a0e._0x3fe099,_0x1e7a0e._0x5f090e)]],_0x18da8a=typeof _0x1f2ca2[_0x183bb5(_0x1e7a0e._0x22acd0,_0x1e7a0e._0x1115b6,_0x1e7a0e._0x597066,_0x1e7a0e._0x3e2ee1)]===_0x591749(_0x1e7a0e._0x15488a,_0x1e7a0e._0x35827e,_0x1e7a0e._0x5d87b1,_0x1e7a0e._0xc75396)&&_0x1f2ca2[_0x591749(_0x1e7a0e._0x921982,_0x1e7a0e._0xbfec85,0x3c1,0x4f2)]>0x0;_0x18da8a&&_0x6feb8c['push']('-C',String(_0x1f2ca2['context']),_0x183bb5(0x3e0,_0x1e7a0e._0x1386b3,_0x1e7a0e._0x2dddba,_0x1e7a0e._0x19ce73));_0x1f2ca2[_0x591749(_0x1e7a0e._0x2a4701,_0x1e7a0e._0x325b18,_0x1e7a0e._0x8248d4,0x142)]&&!_0x1f2ca2[_0x183bb5(0x46b,0x391,0x2b2,_0x1e7a0e._0x5453e1)]&&_0x6feb8c['push'](_0x183bb5(_0x1e7a0e._0x2c5b3f,_0x1e7a0e._0xfff3de,0x35c,0x3b5),_0x1f2ca2[_0x183bb5(_0x1e7a0e._0x5f6525,_0x1e7a0e._0x1c2c4f,_0x1e7a0e._0x2b8cee,_0x1e7a0e._0x857298)]);function _0x591749(_0x5790ff,_0xb7261e,_0x1a75d4,_0x56717e){return _0x2f0acf(_0x1a75d4- -0x4,_0xb7261e-_0x59e66a._0x82fa0,_0x5790ff,_0x56717e-0x16b);}return _0x6feb8c[_0x183bb5(_0x1e7a0e._0x566c57,_0x1e7a0e._0x4aac76,_0x1e7a0e._0x78a6b9,_0x1e7a0e._0x4f3b87)](_0x1f2ca2[_0x591749(_0x1e7a0e._0x485990,_0x1e7a0e._0x976e4b,_0x1e7a0e._0x451770,_0x1e7a0e._0x472de1)]??_0x1f2ca2[_0x591749(0x391,0x587,0x44a,_0x1e7a0e._0x5c339c)]),await new Promise((_0x111aae,_0x48ed21)=>{const _0x1e4d8e=_0x2cfd50(_0xbe74a0,_0x6feb8c,{'cwd':_0x1f2ca2[_0xeb3543(0x565,0x4e0,0x508,_0x2bd5c1._0x449c22)],'stdio':['ignore','pipe',_0x5cd60f(-_0x2bd5c1._0x2fd53c,-_0x2bd5c1._0x214948,-0x188,-0x56)]});let _0x1ed143='',_0xb9e02d='';_0x1e4d8e[_0x5cd60f(-0x20f,-_0x2bd5c1._0x35950b,-0x1a5,-_0x2bd5c1._0x5a5bb8)]?.['on']('data',_0x1dd3d6=>{_0x1ed143+=_0x1dd3d6['toString']();}),_0x1e4d8e['stderr']?.['on'](_0xeb3543(0x44d,0x4fa,0x4cc,0x41f),_0x208f8e=>{function _0x9018e8(_0x236521,_0x1a7f7b,_0x400b2e,_0x51370b){return _0x5cd60f(_0x236521-0xfc,_0x1a7f7b-0x192,_0x236521-0x41a,_0x400b2e);}_0xb9e02d+=_0x208f8e[_0x9018e8(_0x2e5de7._0x2aaab6,0x4c5,0x3d8,_0x2e5de7._0x2e7378)]();});function _0x5cd60f(_0xf3dc0c,_0x49316c,_0x63391c,_0x2e00a2){return _0x591749(_0x2e00a2,_0x49316c-0xdf,_0x63391c- -0x3e9,_0x2e00a2-0x1ef);}function _0xeb3543(_0x4604e3,_0x2f0922,_0x19c115,_0x458160){return _0x183bb5(_0x2f0922,_0x19c115-0xa,_0x19c115-0x1c7,_0x458160-_0x2a28a7._0x2a1744);}_0x1e4d8e['on']('close',_0x3b31ec=>{const _0x750daf={_0x11a720:0x1cf};function _0x28ead1(_0x1501c7,_0x4e5aa0,_0x8585df,_0x53fd75){return _0xeb3543(_0x1501c7-_0x750daf._0x11a720,_0x53fd75,_0x1501c7-0x202,_0x53fd75-0x115);}if(_0x3b31ec===0x1&&_0x1ed143===''){_0x111aae([]);return;}function _0x498f5a(_0x48b7c9,_0x22a543,_0x59a29f,_0x2ae491){return _0xeb3543(_0x48b7c9-0x6f,_0x48b7c9,_0x59a29f- -0x184,_0x2ae491-0xad);}if(_0x3b31ec!==0x0&&_0x3b31ec!==0x1){_0x48ed21(new Error(_0x498f5a(0x47a,_0x4c0bd8._0x54f3bb,_0x4c0bd8._0x1a0a9f,_0x4c0bd8._0x2ddd64)+_0xb9e02d));return;}const _0x56ee8f=_0x1f2ca2[_0x498f5a(_0x4c0bd8._0x1803c0,0x90,_0x4c0bd8._0x2a8683,0x46)]??0x64,_0x45b6dc=[];for(const _0xd149f0 of _0x1ed143[_0x28ead1(0x6d2,0x79a,0x592,0x701)](/\r?\n/)){if(_0x45b6dc[_0x28ead1(_0x4c0bd8._0x44d3dd,_0x4c0bd8._0x5ca8e9,0x621,_0x4c0bd8._0xc7aaf)]>=_0x56ee8f)break;const _0x3cef6a=parseMatchLine(_0xd149f0,_0x18da8a);if(_0x3cef6a)_0x45b6dc['push'](_0x3cef6a);}_0x111aae(_0x45b6dc);}),_0x1e4d8e['on'](_0xeb3543(_0x2bd5c1._0x56e739,_0x2bd5c1._0x34dde5,_0x2bd5c1._0x2ce012,0x2b9),_0x48ed21);});}function createGlobTool(_0x59b5fd={}){const _0x118a70={_0x35e8c4:0x115,_0x154072:0x131,_0x259a1f:0x20b,_0x43492d:0x236,_0x386849:0xc5,_0x5b2035:0x551,_0x489810:0x5ff,_0x3ddcdc:0xc4,_0x58f3eb:0x43f,_0x15811f:0x3e6,_0x103570:0x5da,_0x37f499:0x5ed,_0x19a83b:0x4e5,_0x1bf553:0x21f,_0x29d6ff:0x52,_0x20a95f:0x221,_0x4a7645:0x2b6,_0x4b0258:0x5eb,_0x2df46f:0x487,_0x2b07f7:0x2a6,_0x22b1f4:0x2f9},_0x21e416={_0x58a406:0x5a2,_0x190c23:0x517,_0x1f7d6d:0x258,_0x498704:0x72b,_0x343fd1:0x479,_0x2c3882:0x48f,_0xe7d5e9:0x53e,_0x697e9a:0x49f,_0x51fac9:0x24a,_0x38752d:0x156,_0x5a07d3:0x613,_0x157c5e:0x5bb,_0x23f9d6:0x698,_0x4d7048:0x61d,_0x198ba8:0x604,_0x5be211:0x517,_0x4d71cf:0x5dd,_0x487269:0x5b5,_0x1f5cda:0x48f,_0x38d573:0x4d3,_0x4f6cd5:0x4c2,_0x39671b:0x38d,_0x493ded:0x478,_0x47a790:0x36b,_0x1a8f57:0x25a,_0x115d7c:0x309,_0x3c2717:0x1e7,_0x895d12:0x309,_0x13e7c8:0x626,_0x3b8aa3:0x59e,_0x9a47c3:0x32c,_0x55805b:0x27e,_0x5650fa:0x21d,_0x3a760f:0x376,_0x383035:0x4a5,_0x22f754:0x3fa,_0x16e24f:0x5b6},_0x3b8869={_0x6a79e4:0x94,_0x3751bb:0x83},_0x43e942={_0x44d5dd:0x116,_0x4a9fa2:0x4fd},_0x4935f3={_0xf1358c:0x19d,_0x525db0:0xdb},_0x3fff7f=_0xcae91e[_0x477373(0x106,_0x118a70._0x35e8c4,0x160,_0x118a70._0x154072)](_0x59b5fd[_0x477373(_0x118a70._0x259a1f,_0x118a70._0x43492d,_0x118a70._0x386849,0x13f)]??process['cwd']());function _0x477373(_0xb254ad,_0x52bf88,_0x2f776d,_0x192039){return _0x4aa629(_0xb254ad-_0x4935f3._0xf1358c,_0x2f776d,_0x2f776d-_0x4935f3._0x525db0,_0xb254ad-0x1d3);}const _0x26726c=(_0x59b5fd[_0x45134e(_0x118a70._0x5b2035,0x5fb,0x52a,_0x118a70._0x489810)]??[])[_0x477373(_0x118a70._0x3ddcdc,0x1f9,0x141,0x43)](_0x294501=>_0xcae91e[_0x477373(0x106,0x164,0x11d,0xdd)](_0x294501)),_0x202189=_0x59b5fd['limit']??0x64;function _0x45134e(_0x4fa4c4,_0x394f76,_0xf341da,_0x2a2874){return _0x4aa629(_0x4fa4c4-0x37,_0x2a2874,_0xf341da-_0x43e942._0x44d5dd,_0x394f76-_0x43e942._0x4a9fa2);}const _0x201a0d=_0x59b5fd[_0x45134e(0x400,0x50c,_0x118a70._0x58f3eb,0x432)]??_0x45134e(0x4d4,0x3ff,_0x118a70._0x15811f,0x409);return defineTool({'name':_0x201a0d,'description':_0x45134e(0x54d,_0x118a70._0x103570,_0x118a70._0x37f499,_0x118a70._0x19a83b),'inputSchema':{'type':_0x477373(0x196,_0x118a70._0x1bf553,0x17b,_0x118a70._0x29d6ff),'properties':{'pattern':{'type':_0x477373(_0x118a70._0x20a95f,0x1fa,_0x118a70._0x4a7645,0x13e)},'path':{'type':_0x45134e(_0x118a70._0x4b0258,0x54b,0x4ea,_0x118a70._0x2df46f)},'limit':{'type':_0x477373(_0x118a70._0x2b07f7,0x3c3,_0x118a70._0x22b1f4,0x33e)}},'required':['pattern']},async *'execute'(_0x10d35e){const _0x505334={_0x97cca8:0x138,_0x12cf52:0xf4,_0x2d904e:0x1f2};if(_0x10d35e['pattern']['trim']()[_0x3a1854(_0x21e416._0x58a406,0x543,_0x21e416._0x190c23,0x422)]===0x0)throw new ToolExecutionError(_0x50e629(0x288,_0x21e416._0x1f7d6d,0x14c,0x1fa),{});const _0x5d8b38=resolveAllowedPath(_0x3fff7f,_0x26726c,_0x10d35e['path']??'.'),_0x49789a=await _0x431b3e(_0x5d8b38)[_0x3a1854(0x5de,0x53a,0x5f3,_0x21e416._0x498704)](()=>null);if(!_0x49789a?.[_0x3a1854(_0x21e416._0x343fd1,_0x21e416._0x2c3882,0x56d,0x6ae)]())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+(_0x10d35e[_0x3a1854(0x668,0x521,_0x21e416._0xe7d5e9,_0x21e416._0x697e9a)]??'.'),{'path':_0x10d35e['path']??'.'});const _0x28faa8=_0x10d35e[_0x50e629(0x1a0,_0x21e416._0x51fac9,_0x21e416._0x38752d,0x1ff)]??_0x202189,_0x4bfda6=Math['max'](0x1,Math[_0x50e629(0x3f3,0x46e,0x377,0x4dc)](_0x28faa8)),_0x38ff1b=[];let _0x52eaea=![];for await(const _0xde1304 of files({'cwd':_0x5d8b38,'glob':[_0x10d35e[_0x3a1854(_0x21e416._0x5a07d3,_0x21e416._0x157c5e,0x59e,_0x21e416._0x23f9d6)]]})){if(_0x38ff1b[_0x3a1854(_0x21e416._0x4d7048,_0x21e416._0x198ba8,_0x21e416._0x5be211,_0x21e416._0x4d71cf)]>=_0x4bfda6){_0x52eaea=!![];break;}const _0x5d1e48=await _0x431b3e(_0xcae91e[_0x3a1854(_0x21e416._0x487269,_0x21e416._0x1f5cda,0x51d,0x5cf)](_0x5d8b38,_0xde1304))[_0x3a1854(_0x21e416._0x38d573,0x56c,0x5f3,0x685)](()=>null);_0x38ff1b[_0x3a1854(0x5b3,0x3fa,_0x21e416._0x4f6cd5,0x5ab)]({'path':_0xde1304,'mtime':_0x5d1e48?.[_0x3a1854(_0x21e416._0x39671b,0x46f,_0x21e416._0x493ded,_0x21e416._0x47a790)]??0x0});}_0x38ff1b[_0x50e629(0x1ae,0x2c1,_0x21e416._0x1a8f57,0x2d6)]((_0x3ca06f,_0x3981b9)=>_0x3981b9[_0x3a1854(0x3f2,0x48f,0x4a2,0x3a1)]-_0x3ca06f[_0x3a1854(0x4e8,0x427,0x4a2,0x44f)]);const _0x55fe01=_0x38ff1b[_0x50e629(0x1fc,_0x21e416._0x115d7c,_0x21e416._0x3c2717,_0x21e416._0x895d12)](_0x2ce06f=>_0x2ce06f[_0x3a1854(0x479,0x651,0x53e,0x4e9)]),_0x23859e=_0x55fe01['length']===0x0?_0x3a1854(0x737,0x7a9,0x672,_0x21e416._0x13e7c8)+_0x10d35e[_0x3a1854(0x61d,0x529,_0x21e416._0x3b8aa3,0x4af)]:''+_0x55fe01['join']('\x0a')+(_0x52eaea?_0x50e629(_0x21e416._0x9a47c3,_0x21e416._0x55805b,0x30d,0x2b8):'');function _0x3a1854(_0x46ea9f,_0x590c93,_0x3d23ed,_0xf4287d){return _0x45134e(_0x46ea9f-0xea,_0x3d23ed-_0x3b8869._0x6a79e4,_0x3d23ed-_0x3b8869._0x3751bb,_0xf4287d);}yield createToolOutput(_0x23859e,{'pattern':_0x10d35e[_0x50e629(0x318,_0x21e416._0x5650fa,0x3f0,0x398)],'searchPath':_0xcae91e[_0x50e629(_0x21e416._0x3a760f,0x243,_0x21e416._0x383035,0x3ca)](_0x3fff7f,_0x5d8b38)||'.','matches':_0x55fe01,'count':_0x55fe01[_0x3a1854(_0x21e416._0x22f754,0x489,0x517,_0x21e416._0x16e24f)],'truncated':_0x52eaea});function _0x50e629(_0x220081,_0x5abe87,_0x12cc0c,_0x48a8c7){return _0x477373(_0x220081-_0x505334._0x97cca8,_0x5abe87-_0x505334._0x12cf52,_0x48a8c7,_0x48a8c7-_0x505334._0x2d904e);}return void 0x0;}});}import{stat as _0xe79f92}from'fs/promises';import*as _0x5dfc52 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0xef9f75={}){const _0x3d8f6c={_0x4acc48:0x12e,_0x1c76c2:0x1c1,_0x10cbc8:0x218,_0x14606a:0x20c,_0x28aa57:0x396,_0x42e855:0x3cb,_0x38e99b:0x1c3,_0x5a72b8:0x22f,_0x2f8fae:0x25b,_0x1c4458:0x251,_0x5cd3b9:0x1b9,_0x2846c9:0x297,_0x3a3722:0x1e7,_0x4458f6:0x2dc,_0x4ebf58:0x23b,_0x2ddcf6:0x315,_0x257962:0x3f2,_0xa73401:0x2dc,_0x4ca2cb:0x440,_0x524d55:0x361,_0x2cfae4:0x250,_0x5c0032:0x3ba,_0x306e17:0x271,_0x443419:0x203,_0x27fbe1:0x1ab,_0x22431e:0x239},_0x11c9aa={_0x738479:0x641,_0x15e0fc:0x51d,_0x42c10c:0x64a,_0x48ab76:0x341,_0x289c61:0x4b1,_0x5b02c6:0x443,_0x42dd7e:0x56a,_0x436f8e:0x566,_0x14b2d0:0x4ae,_0x15fb6a:0x4ab,_0x287746:0x39f,_0x29afc3:0x35c,_0x45974e:0x4c2,_0x92accd:0x4e0,_0x147d73:0x3f9,_0x55724e:0x4d3,_0x1f870d:0x42b,_0x508dc6:0x3fd,_0x93674e:0x499,_0x57d6b9:0x494,_0x4b5c8a:0x544,_0x90544d:0x569,_0x99295c:0x543,_0x44d368:0x5e0,_0x31c437:0x511,_0x425c81:0x645,_0xd5e7b3:0x677,_0x1c54d2:0x762,_0x52833d:0x5d5,_0x23c27a:0x739,_0x3c0f0b:0x705,_0x52f7e4:0x65c,_0x924bc0:0x749,_0x1cae8b:0x493,_0x2a7340:0x4a5,_0x4672e4:0x525,_0x307cdc:0x504,_0x5159f2:0x47e,_0x14aeca:0x6b2,_0x27a676:0x56e,_0x40bc09:0x493,_0x315ee3:0x692,_0x4dfbbe:0x5be,_0x5c396b:0x556,_0x25c833:0x44b,_0x54e518:0x522,_0x409270:0x50c,_0x4a66a5:0x604,_0x13170d:0x3a7,_0x534b7a:0x3c3,_0xf48c03:0x4c4,_0xd0ca86:0x59d,_0x2441d1:0x476,_0x5cfc55:0x50d,_0x4933a1:0x538,_0x46013b:0x48a,_0x17851d:0x429,_0x418f40:0x533,_0x4bafbd:0x516,_0x437360:0x49f,_0x47563b:0x60c,_0x235ee7:0x4d7,_0x501924:0x3d2,_0x1787f8:0x427,_0x387782:0x6e8,_0x1f9994:0x5bf,_0x538a56:0x6a0,_0x1cc3f0:0x557,_0x369682:0x5a4,_0x1fe2ff:0x5a2,_0x4b18ff:0x45d,_0x5371d:0x451,_0x418c11:0x582,_0x41e663:0x689,_0x2039f0:0x43c,_0x3cf60:0x432,_0x4ebaf6:0x46d,_0x490cdb:0x536,_0x1dca6c:0x66d,_0x2ecf35:0x617,_0x567913:0x5ea,_0x14c859:0x67c,_0x32e329:0x412,_0x5d4031:0x465,_0x1ed63c:0x639,_0x14c055:0x562,_0x1d17c5:0x7bf,_0x8fda0c:0x5b1,_0x4a0806:0x497,_0x3f4a42:0x429,_0x472d58:0x475,_0x315532:0x596,_0x5468a4:0x6a2,_0x37951e:0x4bb,_0x30bc60:0x4b4,_0x1ce2fb:0x428,_0x3a7f99:0x480,_0x308ade:0x45a,_0x26350e:0x56f,_0x41a967:0x454,_0x28e3e5:0x6e4,_0x5e4824:0x5a4,_0x5df377:0x64d,_0x40fcd8:0x43b,_0x31e367:0x48c,_0x3824ac:0x5d1,_0x189931:0x5e4,_0x5d3490:0x78a},_0xffdcf4={_0x4558fb:0x366},_0x37e1ee={_0x107663:0x18,_0x26302b:0x2a,_0x3bbac5:0x28e};function _0x433250(_0x2f1bb7,_0x1ba756,_0x4f03b8,_0x5008f8){return _0x4aa629(_0x2f1bb7-_0x37e1ee._0x107663,_0x1ba756,_0x4f03b8-_0x37e1ee._0x26302b,_0x5008f8-_0x37e1ee._0x3bbac5);}const _0x320190=_0x5dfc52[_0x433250(_0x3d8f6c._0x4acc48,0x1ca,0x2e9,_0x3d8f6c._0x1c76c2)](_0xef9f75[_0x433250(0x2c2,_0x3d8f6c._0x10cbc8,_0x3d8f6c._0x14606a,0x2c6)]??process[_0x432085(0x235,0x3bc,0x2af,0x273)]());function _0x432085(_0x164f71,_0x2aafeb,_0x28608a,_0x48c7a6){return _0x2f0acf(_0x28608a- -0x19f,_0x2aafeb-0x1b0,_0x164f71,_0x48c7a6-0x12c);}const _0x1a91c3=(_0xef9f75[_0x432085(0x3d4,_0x3d8f6c._0x28aa57,0x29c,_0x3d8f6c._0x42e855)]??[])[_0x432085(0x143,-0xa9,0x8f,0x1c5)](_0x15ed72=>_0x5dfc52[_0x432085(0x20c,0x4d,0xd1,0xa8)](_0x15ed72)),_0x429c89=_0xef9f75['limit']??0x64,_0x15515c=_0xef9f75['name']??_0x432085(0x223,0x164,_0x3d8f6c._0x38e99b,0x1b3);return defineTool({'name':_0x15515c,'description':_0x432085(_0x3d8f6c._0x5a72b8,0x243,0x29a,0x2b3),'inputSchema':{'type':_0x433250(0x21b,_0x3d8f6c._0x2f8fae,0x12e,_0x3d8f6c._0x1c4458),'properties':{'pattern':{'type':_0x433250(_0x3d8f6c._0x5cd3b9,_0x3d8f6c._0x2846c9,_0x3d8f6c._0x3a3722,_0x3d8f6c._0x4458f6)},'path':{'type':_0x432085(0x17c,0x257,0x1ec,_0x3d8f6c._0x4ebf58)},'include':{'type':_0x433250(_0x3d8f6c._0x2ddcf6,0x2b6,_0x3d8f6c._0x257962,_0x3d8f6c._0xa73401)},'limit':{'type':_0x433250(0x240,0x3c1,_0x3d8f6c._0x4ca2cb,_0x3d8f6c._0x524d55)},'context':{'type':_0x432085(_0x3d8f6c._0x2cfae4,_0x3d8f6c._0x5c0032,_0x3d8f6c._0x306e17,0x36f)}},'required':[_0x432085(0xf6,_0x3d8f6c._0x443419,_0x3d8f6c._0x27fbe1,_0x3d8f6c._0x22431e)]},async *'execute'(_0x309afe){const _0x2889a7={_0x5bd8bb:0x14c};if(_0x309afe['pattern']['trim']()[_0x3e3d44(0x4f2,_0x11c9aa._0x738479,_0x11c9aa._0x15e0fc,_0x11c9aa._0x42c10c)]===0x0)throw new ToolExecutionError(_0x931682(0x481,0x452,0x45a,_0x11c9aa._0x48ab76),{});const _0x3d6627=resolveAllowedPath(_0x320190,_0x1a91c3,_0x309afe[_0x931682(_0x11c9aa._0x289c61,_0x11c9aa._0x5b02c6,_0x11c9aa._0x42dd7e,0x5ba)]??'.'),_0x18ee37=await _0xe79f92(_0x3d6627)[_0x931682(_0x11c9aa._0x436f8e,_0x11c9aa._0x14b2d0,_0x11c9aa._0x15fb6a,0x65f)](()=>null),_0xa981af=_0x18ee37?.[_0x931682(_0x11c9aa._0x287746,_0x11c9aa._0x29afc3,0x365,_0x11c9aa._0x45974e)]()??![];function _0x931682(_0x2c81b1,_0x121ca9,_0x46f077,_0x4685d2){return _0x432085(_0x46f077,_0x121ca9-0x30,_0x2c81b1-_0xffdcf4._0x4558fb,_0x4685d2-0x2);}const _0x21f50d=_0x18ee37?.[_0x931682(_0x11c9aa._0x92accd,_0x11c9aa._0x147d73,0x5b9,_0x11c9aa._0x55724e)]()??![];if(!_0xa981af&&!_0x21f50d)throw new ToolExecutionError(_0x931682(_0x11c9aa._0x1f870d,0x490,_0x11c9aa._0x508dc6,0x4ce)+(_0x309afe[_0x931682(0x4b1,0x3e9,_0x11c9aa._0x93674e,0x3de)]??'.'),{'path':_0x309afe[_0x3e3d44(_0x11c9aa._0x57d6b9,0x3fe,_0x11c9aa._0x4b5c8a,0x44d)]??'.'});const _0x404bbe=_0x309afe['limit']??_0x429c89;function _0x3e3d44(_0x480721,_0x5d48b9,_0x15521f,_0x4e7239){return _0x432085(_0x480721,_0x5d48b9-0x1d3,_0x15521f-0x3f9,_0x4e7239-_0x2889a7._0x5bd8bb);}const _0x302c58=Math[_0x931682(0x49f,_0x11c9aa._0x90544d,0x3dc,0x581)](0x1,Math[_0x931682(0x5ec,0x51f,0x5ec,0x60c)](_0x404bbe)),_0x10db0e=await search({'cwd':_0x21f50d?_0x3d6627:_0x5dfc52[_0x3e3d44(0x689,_0x11c9aa._0x99295c,_0x11c9aa._0x44d368,0x4cd)](_0x3d6627),'pattern':_0x309afe[_0x931682(_0x11c9aa._0x31c437,0x580,_0x11c9aa._0x425c81,0x5d6)],'glob':_0x21f50d?_0x309afe[_0x3e3d44(0x716,0x536,_0x11c9aa._0xd5e7b3,0x703)]:void 0x0,'limit':_0x302c58,'file':_0xa981af?_0x3d6627:void 0x0,'context':_0x309afe[_0x3e3d44(0x74b,_0x11c9aa._0x1c54d2,0x61f,0x502)]}),_0x272711=new Map();for(const _0xc89ec5 of _0x10db0e){if(!_0x272711['has'](_0xc89ec5['filePath'])){const _0x4e4fdc=await _0xe79f92(_0xc89ec5[_0x3e3d44(0x53c,0x563,0x526,_0x11c9aa._0x52833d)])[_0x3e3d44(0x609,0x71b,0x5f9,_0x11c9aa._0x23c27a)](()=>null);_0x272711[_0x3e3d44(_0x11c9aa._0x3c0f0b,0x51b,_0x11c9aa._0x52f7e4,_0x11c9aa._0x924bc0)](_0xc89ec5[_0x931682(_0x11c9aa._0x1cae8b,_0x11c9aa._0x2a7340,0x3aa,_0x11c9aa._0x4672e4)],{'matches':[],'mtime':_0x4e4fdc?.[_0x3e3d44(_0x11c9aa._0x307cdc,0x449,_0x11c9aa._0x5159f2,0x5c3)]??0x0});}_0x272711[_0x3e3d44(_0x11c9aa._0x14aeca,0x66e,_0x11c9aa._0x27a676,0x454)](_0xc89ec5[_0x931682(_0x11c9aa._0x40bc09,0x521,0x4a2,0x49e)])?.[_0x931682(0x584,0x53c,_0x11c9aa._0x315ee3,_0x11c9aa._0x4dfbbe)][_0x3e3d44(_0x11c9aa._0x5c396b,0x467,0x4c8,_0x11c9aa._0x25c833)](_0xc89ec5);}const _0x2ccc23=[..._0x272711[_0x3e3d44(0x3d5,_0x11c9aa._0x54e518,_0x11c9aa._0x409270,_0x11c9aa._0x4a66a5)]()][_0x931682(_0x11c9aa._0x13170d,0x41c,_0x11c9aa._0x534b7a,_0x11c9aa._0xf48c03)]((_0x2836ae,_0x19c320)=>_0x19c320[0x1][_0x3e3d44(0x4ef,0x50f,0x4a8,0x5e7)]-_0x2836ae[0x1]['mtime']),_0x3a5bfd=_0x10db0e[_0x931682(_0x11c9aa._0xd0ca86,_0x11c9aa._0x2441d1,_0x11c9aa._0x5cfc55,_0x11c9aa._0x4933a1)](_0x1d9ec6=>!_0x1d9ec6[_0x3e3d44(0x57c,0x601,0x54e,0x537)])['length'],_0x3cbe9e=_0x10db0e[_0x931682(_0x11c9aa._0x46013b,_0x11c9aa._0x17851d,_0x11c9aa._0x418f40,_0x11c9aa._0x4bafbd)]>=_0x302c58,_0x497a69=_0xa981af?_0x5dfc52[_0x931682(0x54d,_0x11c9aa._0x437360,_0x11c9aa._0x47563b,_0x11c9aa._0x235ee7)](_0x3d6627):_0x3d6627;let _0x34a214='';if(_0x10db0e[_0x931682(_0x11c9aa._0x46013b,0x414,_0x11c9aa._0x501924,_0x11c9aa._0x1787f8)]===0x0)_0x34a214=_0x3e3d44(_0x11c9aa._0x387782,0x5d4,0x5da,_0x11c9aa._0x1f9994)+_0x309afe[_0x3e3d44(_0x11c9aa._0x538a56,_0x11c9aa._0x1cc3f0,_0x11c9aa._0x369682,_0x11c9aa._0x1fe2ff)];else{_0x34a214=_0x931682(_0x11c9aa._0x4b18ff,0x42e,0x472,_0x11c9aa._0x5371d)+_0x3a5bfd+_0x931682(_0x11c9aa._0x418c11,_0x11c9aa._0x41e663,0x5cb,_0x11c9aa._0x4a66a5)+(_0x3a5bfd===0x1?'':'es')+'\x0a';for(const [_0x45a842,_0x2f760e]of _0x2ccc23){const _0x54c095=_0xa981af?_0x5dfc52[_0x931682(_0x11c9aa._0x2039f0,_0x11c9aa._0x3cf60,_0x11c9aa._0x4ebaf6,0x44f)](_0x45a842):_0x5dfc52[_0x3e3d44(0x5e1,0x557,0x602,_0x11c9aa._0x490cdb)](_0x497a69,_0x45a842);_0x34a214+='\x0a'+_0x54c095+':\x0a';for(const _0xcb8ff1 of _0x2f760e[_0x3e3d44(0x5d5,_0x11c9aa._0x1dca6c,_0x11c9aa._0x2ecf35,0x691)]){const _0x311983=_0xcb8ff1[_0x3e3d44(_0x11c9aa._0x567913,0x614,_0x11c9aa._0x14c859,0x55d)][_0x931682(0x48a,_0x11c9aa._0x32e329,0x51c,_0x11c9aa._0x5d4031)]>MAX_LINE_LENGTH?_0xcb8ff1[_0x3e3d44(_0x11c9aa._0x1ed63c,_0x11c9aa._0x14c055,_0x11c9aa._0x14c859,_0x11c9aa._0x1d17c5)][_0x3e3d44(0x488,_0x11c9aa._0x8fda0c,_0x11c9aa._0x4a0806,_0x11c9aa._0x3f4a42)](0x0,MAX_LINE_LENGTH)+_0x931682(0x548,0x61d,_0x11c9aa._0x472d58,0x66e):_0xcb8ff1[_0x3e3d44(_0x11c9aa._0x315532,_0x11c9aa._0x5468a4,_0x11c9aa._0x14c859,0x71d)],_0x426788=_0xcb8ff1[_0x931682(_0x11c9aa._0x37951e,0x3b6,0x56c,_0x11c9aa._0x30bc60)]?'\x20\x20':'>\x20';_0x34a214+=_0x426788+_0x931682(0x4ea,_0x11c9aa._0x1ce2fb,0x3f7,_0x11c9aa._0x3a7f99)+_0xcb8ff1[_0x931682(0x57a,0x637,_0x11c9aa._0x308ade,0x530)]+':\x20'+_0x311983+'\x0a';}}_0x3cbe9e&&(_0x34a214+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x435bf3={'searchPath':_0x5dfc52[_0x931682(_0x11c9aa._0x26350e,_0x11c9aa._0x41a967,0x60b,0x662)](_0x320190,_0x3d6627)||'.','pattern':_0x309afe[_0x3e3d44(0x590,_0x11c9aa._0x28e3e5,_0x11c9aa._0x5e4824,_0x11c9aa._0x5df377)],'matchCount':_0x3a5bfd,'fileCount':_0x272711[_0x3e3d44(0x5a6,_0x11c9aa._0x40fcd8,0x470,_0x11c9aa._0x31e367)],'truncated':_0x3cbe9e};return _0x21f50d&&_0x309afe[_0x3e3d44(0x740,_0x11c9aa._0x3824ac,0x677,0x613)]!==void 0x0&&(_0x435bf3[_0x931682(_0x11c9aa._0x189931,0x4ac,0x511,0x6bd)]=_0x309afe[_0x3e3d44(0x5de,0x6e9,_0x11c9aa._0xd5e7b3,_0x11c9aa._0x5d3490)]),yield createToolOutput(_0x34a214['trim'](),_0x435bf3),void 0x0;}});}import{readdir as _0x3c37be,readFile as _0x5752f5,stat as _0x52f250}from'fs/promises';import*as _0x57dfe9 from'path';import*as _0x152137 from'yaml';async function countTextLines(_0x541010){const _0x151e6e={_0x224191:0x4d4,_0x17350e:0x41c,_0x881a49:0x4b0,_0x559e9f:0x355,_0x5b9609:0x3dd,_0x1b7f24:0x437},_0x26cbfe={_0x1dc33f:0x304},_0x18501a={_0xcfdce8:0x423};function _0x567c55(_0x2f2dbd,_0x24c70e,_0x11d113,_0x37bdd5){return _0x4aa629(_0x2f2dbd-0x56,_0x37bdd5,_0x11d113-0x1ce,_0x11d113-_0x18501a._0xcfdce8);}const _0x564db9=await _0x5752f5(_0x541010)['catch'](()=>null);if(!_0x564db9||isProbablyBinary(_0x564db9))return void 0x0;function _0x454f6b(_0xcc5572,_0x9c0385,_0x56d48a,_0x4be193){return _0x4aa629(_0xcc5572-0x13d,_0x4be193,_0x56d48a-0x144,_0x56d48a-_0x26cbfe._0x1dc33f);}return _0x564db9[_0x454f6b(_0x151e6e._0x224191,0x2f8,_0x151e6e._0x17350e,_0x151e6e._0x881a49)]('utf8')[_0x454f6b(_0x151e6e._0x559e9f,0x4d8,_0x151e6e._0x5b9609,_0x151e6e._0x1b7f24)](/\r?\n/)['length'];}function createLsTool(_0x9dc662={}){const _0x4b163b={_0x328cd3:0xe6,_0x4624bc:0x23,_0x44b6c1:0x19,_0x158c8b:0x134,_0x583057:0xfd,_0xc6f8ea:0x16d,_0x4864d6:0x124,_0x102366:0xfe,_0x4552cb:0x24,_0x353ec3:0x41c,_0x3a00f2:0x213,_0x36660d:0x1c3,_0x387369:0xcf,_0x5cfb19:0x174,_0x2ae541:0x1c7,_0x987556:0x1c6,_0x6bdb0e:0x153,_0x5907e8:0x309},_0x1c6e0e={_0x33fee3:0x29c,_0x4e36bc:0xb2,_0xb8c369:0x216,_0x42c41a:0x234,_0x172d67:0x2a5,_0x3dcdf1:0x11f,_0x42531a:0x28a,_0x3d0bec:0x241,_0x2fb51e:0x237,_0x1d46ea:0x14e,_0x4250e0:0x20b,_0x2ff476:0x1d0,_0x25074d:0xbd,_0x10c201:0x1b5,_0x5ba110:0x29e,_0x5d3ac8:0x29d,_0x5e9b47:0x2fe,_0x2e6ae6:0x3d4,_0x117fbb:0x159,_0x268209:0x16,_0x5be6a9:0x68,_0x29657f:0x137,_0x444a60:0xc1,_0x24846c:0x136,_0x3e62f8:0x1da,_0x1b0814:0x15d,_0x487400:0x14d,_0x561801:0x190,_0x22e1b7:0x28d,_0x14a7e8:0x391,_0x4e6b92:0x17c,_0x44891b:0x7b,_0x3a7c69:0x1bd,_0x2dc313:0x201,_0x919720:0x11a,_0x5d4a59:0x2a3,_0x46836e:0x183,_0x73838f:0x361,_0x167876:0x2e1,_0x58264a:0x233,_0x1f4181:0x2cc,_0x1d4865:0x237,_0x362225:0x8e,_0x53cb24:0x2c0,_0x592c2d:0x25b,_0x1cba9f:0x222,_0x39f172:0x238},_0x36c5f9={_0x390039:0x158,_0x1bb078:0x3d1},_0x59feb8={_0x24cbd6:0x102,_0x305690:0xef,_0x50d6ad:0x135},_0xeb63c={_0x255bf1:0x9b,_0x3c7b64:0xa2,_0x40380a:0x204};function _0x1bd38e(_0x57004f,_0x5859d2,_0x4df451,_0x21b43d){return _0x4aa629(_0x57004f-_0xeb63c._0x255bf1,_0x5859d2,_0x4df451-_0xeb63c._0x3c7b64,_0x4df451-_0xeb63c._0x40380a);}const _0x1ff04b=_0x57dfe9[_0x1bd38e(_0x4b163b._0x328cd3,_0x4b163b._0x4624bc,0x137,0x1c3)](_0x9dc662[_0x468e3b(-_0x4b163b._0x44b6c1,-_0x4b163b._0x158c8b,0x2,-_0x4b163b._0x583057)]??process[_0x468e3b(-_0x4b163b._0xc6f8ea,-_0x4b163b._0x4864d6,-_0x4b163b._0x102366,-_0x4b163b._0x4552cb)]()),_0x5dbef=(_0x9dc662[_0x1bd38e(_0x4b163b._0x353ec3,0x210,0x302,0x3f6)]??[])['map'](_0x3b4dae=>_0x57dfe9[_0x468e3b(-0x1dd,-0x30d,-0xf6,-0x202)](_0x3b4dae));function _0x468e3b(_0xd0058b,_0x81a6b,_0x2f3643,_0x27c77e){return _0x4aa629(_0xd0058b-_0x59feb8._0x24cbd6,_0x81a6b,_0x2f3643-_0x59feb8._0x305690,_0x27c77e- -_0x59feb8._0x50d6ad);}const _0x583819=_0x9dc662[_0x1bd38e(0xcf,0xe2,_0x4b163b._0x3a00f2,0xe0)]??'Ls';return defineTool({'name':_0x583819,'description':_0x468e3b(-_0x4b163b._0x36660d,-0x14f,-0x4e,-_0x4b163b._0x387369),'inputSchema':{'type':_0x1bd38e(0x206,_0x4b163b._0x5cfb19,_0x4b163b._0x2ae541,_0x4b163b._0x987556),'properties':{'path':{'type':_0x1bd38e(0x2b7,0x240,0x252,_0x4b163b._0x6bdb0e)},'limit':{'type':_0x1bd38e(0x354,0x306,0x2d7,_0x4b163b._0x5907e8)}}},async *'execute'(_0x411fe0){const _0x307f7e={_0x42a662:0x5b};function _0x1c5d45(_0x1e5848,_0x525f93,_0xf37c7,_0x35a4b5){return _0x468e3b(_0x1e5848-0x114,_0x1e5848,_0xf37c7-0x5f,_0xf37c7-_0x307f7e._0x42a662);}const _0x1b83df=_0x411fe0[_0x4de4d0(0x359,_0x1c6e0e._0x33fee3,0x249,0x1f3)]??'.',_0x326390=resolveAllowedPath(_0x1ff04b,_0x5dbef,_0x1b83df),_0x1cbfa7=await _0x52f250(_0x326390)['catch'](()=>null);function _0x4de4d0(_0x1de6c9,_0x54da4a,_0x220184,_0x383a65){return _0x468e3b(_0x1de6c9-_0x36c5f9._0x390039,_0x54da4a,_0x220184-0xa8,_0x220184-_0x36c5f9._0x1bb078);}if(!_0x1cbfa7?.[_0x1c5d45(-0xc4,-0x41,-0xfe,-_0x1c6e0e._0x4e36bc)]())throw new ToolExecutionError(_0x1c5d45(-0x1bc,-0xcf,-_0x1c6e0e._0xb8c369,-_0x1c6e0e._0x42c41a)+_0x1b83df,{'path':_0x1b83df});const _0x5b2995=_0x411fe0[_0x1c5d45(-_0x1c6e0e._0x172d67,-0x1d0,-0x245,-0x36f)]??0x3e8,_0x1a148d=Math[_0x4de4d0(0xfa,0x206,0x23e,_0x1c6e0e._0x3dcdf1)](Math[_0x4de4d0(_0x1c6e0e._0x42531a,_0x1c6e0e._0x3d0bec,_0x1c6e0e._0x2fb51e,_0x1c6e0e._0x1d46ea)](Math['trunc'](_0x5b2995),0x1),0x2710),_0x54ba5b=await _0x3c37be(_0x326390),_0x2aeaed=[];for(const _0x1fc73b of _0x54ba5b[_0x1c5d45(-_0x1c6e0e._0x4250e0,-_0x1c6e0e._0x2ff476,-0x1da,-_0x1c6e0e._0x25074d)](0x0,_0x1a148d)){const _0x539e4d=_0x57dfe9[_0x4de4d0(0x29a,_0x1c6e0e._0x10c201,0x228,_0x1c6e0e._0x5ba110)](_0x326390,_0x1fc73b),_0x15f6f2=await _0x52f250(_0x539e4d)[_0x4de4d0(0x3e7,_0x1c6e0e._0x5d3ac8,_0x1c6e0e._0x5e9b47,_0x1c6e0e._0x2e6ae6)](()=>null);if(!_0x15f6f2)continue;let _0x438078=_0x4de4d0(0xe4,0x71,_0x1c6e0e._0x117fbb,0x4a);if(_0x15f6f2[_0x4de4d0(_0x1c6e0e._0x268209,_0x1c6e0e._0x5be6a9,_0x1c6e0e._0x29657f,0xb5)]())_0x438078=_0x1c5d45(-_0x1c6e0e._0x444a60,-0x1c1,-_0x1c6e0e._0x24846c,-0xea);else{if(_0x15f6f2[_0x1c5d45(-0x1e8,-_0x1c6e0e._0x3e62f8,-0xfe,-_0x1c6e0e._0x1b0814)]())_0x438078=_0x1c5d45(-0x94,-_0x1c6e0e._0x487400,-_0x1c6e0e._0x561801,-0x1e2);else{if(_0x15f6f2[_0x4de4d0(0x183,0x1b8,_0x1c6e0e._0x22e1b7,_0x1c6e0e._0x14a7e8)]())_0x438078=_0x4de4d0(0x84,0x9e,_0x1c6e0e._0x4e6b92,_0x1c6e0e._0x44891b);}}const _0x514b8b={'name':_0x1fc73b,'type':_0x438078,'size':_0x15f6f2[_0x1c5d45(-0x14b,-_0x1c6e0e._0x3a7c69,-_0x1c6e0e._0x2dc313,-_0x1c6e0e._0x919720)],'mtime':_0x15f6f2[_0x4de4d0(_0x1c6e0e._0x5d4a59,0x70,_0x1c6e0e._0x46836e,0x1bc)],'mode':_0x15f6f2['mode']},_0x1389a3=_0x438078===_0x4de4d0(_0x1c6e0e._0x73838f,0x367,0x240,_0x1c6e0e._0x167876)?await countTextLines(_0x539e4d):void 0x0;if(_0x1389a3!==void 0x0)_0x514b8b[_0x4de4d0(_0x1c6e0e._0x58264a,0x13b,0x1be,_0x1c6e0e._0x1f4181)]=_0x1389a3;_0x2aeaed['push'](_0x514b8b);}_0x2aeaed[_0x1c5d45(-0x1f5,-0x27e,-_0x1c6e0e._0x1d4865,-0x186)]((_0x3295d6,_0x5a6758)=>_0x3295d6[_0x4de4d0(0x315,0x1b6,0x2ab,0x21e)][_0x4de4d0(0x378,0x1c1,0x232,0x364)](_0x5a6758[_0x1c5d45(-0x103,0x7a,-0xcb,-0x5a)]));const _0x3d1718={'path':_0x1b83df,'total':_0x2aeaed[_0x1c5d45(-_0x1c6e0e._0x362225,-0x5d,-0x154,-0x16f)],'truncated':_0x54ba5b['length']>_0x1a148d,'entries':_0x2aeaed};return yield createToolOutput(_0x152137['stringify'](_0x3d1718,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x1b83df,'total':_0x2aeaed[_0x4de4d0(0xdb,0x1dc,0x222,_0x1c6e0e._0x53cb24)],'truncated':_0x54ba5b[_0x4de4d0(0x17f,_0x1c6e0e._0x592c2d,_0x1c6e0e._0x1cba9f,_0x1c6e0e._0x39f172)]>_0x1a148d,'limit':_0x1a148d,'entries':_0x2aeaed}),void 0x0;}});}import{stat as _0xe0a42d}from'fs/promises';import _0x11df05 from'path';import{fileURLToPath as _0x9c441c}from'url';function severityName(_0x25a0bf){const _0x515d49={_0x1397c9:0x227,_0x3e0fc9:0x243,_0x5b2a63:0x274,_0x5abbb1:0x236,_0x290381:0x215,_0x2a90c3:0x327},_0xf8cdc5={_0x556d84:0xee},_0x4e9004={_0x37ca33:0x130,_0x315be1:0x169};function _0x7b8d89(_0x2d9e4b,_0x13b3c4,_0x1a0bbb,_0x3d0303){return _0x2f0acf(_0x2d9e4b- -0xdb,_0x13b3c4-_0x4e9004._0x37ca33,_0x13b3c4,_0x3d0303-_0x4e9004._0x315be1);}function _0x305943(_0x36ab52,_0x55e512,_0x20e86d,_0x25a2cb){return _0x4aa629(_0x36ab52-_0xf8cdc5._0x556d84,_0x20e86d,_0x20e86d-0x17f,_0x25a2cb-0x21f);}switch(_0x25a0bf){case 0x1:return'Error';case 0x2:return _0x305943(0x2c9,_0x515d49._0x1397c9,_0x515d49._0x3e0fc9,0x2e1);case 0x3:return _0x7b8d89(_0x515d49._0x5b2a63,0x2e2,_0x515d49._0x5abbb1,0x18c);case 0x4:return _0x305943(_0x515d49._0x290381,0x268,0x2e3,_0x515d49._0x2a90c3);default:return _0x7b8d89(0x37b,0x277,0x386,0x43c);}}function formatSingleHover(_0xe86a95){const _0x551652={_0x148fc7:0xf2,_0x33dba2:0xc3,_0x49befe:0x1c,_0x27a5a1:0x231,_0x4ae43d:0x340,_0x1ea942:0x21a,_0x56922a:0x2c8,_0xc570a6:0x219,_0x55b737:0x14b,_0xb8903d:0x3f,_0x17998f:0x7f,_0xf7e0f:0x57,_0x2c65c3:0x4,_0x227e8d:0x1b2,_0xa38f4b:0x18a,_0x41f1cc:0x1ce,_0x408bd7:0x73,_0x57951e:0x113},_0x1ee618={_0x57375b:0x1c6,_0x52e013:0x182},_0x45dfe8=_0xe86a95[_0x405d6f(0x20,-_0x551652._0x148fc7,-_0x551652._0x33dba2,_0x551652._0x49befe)];function _0x405d6f(_0x3bd392,_0x2b3de7,_0x5b4198,_0x2ad978){return _0x2f0acf(_0x3bd392- -_0x1ee618._0x57375b,_0x2b3de7-_0x1ee618._0x52e013,_0x5b4198,_0x2ad978-0x9f);}if(typeof _0x45dfe8==='string')return _0x45dfe8;if(Array[_0x5cfc29(_0x551652._0x27a5a1,0x30f,0x290,0x24f)](_0x45dfe8))return _0x45dfe8['map'](_0x3c99ef=>typeof _0x3c99ef==='string'?_0x3c99ef:_0x3c99ef[_0x5cfc29(0xcb,0x18a,0x42,0x1b1)])['filter'](Boolean)[_0x5cfc29(_0x551652._0x4ae43d,_0x551652._0x1ea942,_0x551652._0x56922a,_0x551652._0xc570a6)]('\x0a\x0a');function _0x5cfc29(_0x4d097b,_0x1ad9f3,_0x309b27,_0x408409){return _0x2f0acf(_0x1ad9f3- -0xaf,_0x1ad9f3-0x1c7,_0x4d097b,_0x408409-0xa0);}if(_0x5cfc29(0x2e4,0x260,0x377,0x228)in _0x45dfe8)return _0x45dfe8[_0x5cfc29(0x124,0x18a,_0x551652._0x55b737,0x2bb)];return _0x45dfe8[_0x405d6f(0x13d,_0x551652._0xb8903d,0x148,_0x551652._0x17998f)]?'```'+_0x45dfe8[_0x405d6f(0x13d,_0x551652._0xf7e0f,_0x551652._0x2c65c3,_0x551652._0x227e8d)]+'\x0a'+_0x45dfe8[_0x5cfc29(0x191,_0x551652._0xa38f4b,0x273,_0x551652._0x41f1cc)]+'\x0a```':_0x45dfe8[_0x405d6f(_0x551652._0x408bd7,0xa5,_0x551652._0x57951e,-0x1c)];}function formatHover(_0x44d659){const _0x41ebf2={_0x550979:0x6e,_0x1bd290:0x105,_0x584c8e:0x5b,_0x3178ab:0x5e,_0x8d2d34:0x56,_0x341323:0x80,_0x5768cc:0x153,_0x147fdf:0xa2,_0x1bfb12:0x12b,_0x3ac6c0:0xc9,_0xe2733d:0x1fa},_0x47410c={_0x5a6eed:0x99,_0x2230f1:0x8b},_0x462b8d={_0x590e3e:0x9f};function _0x101a5d(_0xe5aae,_0x5587af,_0x52fafb,_0x18c693){return _0x2f0acf(_0x18c693- -0x489,_0x5587af-_0x462b8d._0x590e3e,_0xe5aae,_0x18c693-0xac);}if(_0x44d659[_0x11a846(-_0x41ebf2._0x550979,-0x24c,-_0x41ebf2._0x1bd290,-_0x41ebf2._0x584c8e)]===0x0)return _0x11a846(_0x41ebf2._0x3178ab,-_0x41ebf2._0x8d2d34,-_0x41ebf2._0x341323,-0x1b1);function _0x11a846(_0x593c06,_0x2d9be9,_0x1516dd,_0x15c51d){return _0x4aa629(_0x593c06-_0x47410c._0x5a6eed,_0x2d9be9,_0x1516dd-0x13,_0x1516dd- -_0x47410c._0x2230f1);}return _0x44d659[_0x11a846(-_0x41ebf2._0x5768cc,-_0x41ebf2._0x147fdf,-0x19a,-0x95)](formatSingleHover)['join'](_0x101a5d(-_0x41ebf2._0x1bfb12,-_0x41ebf2._0x3ac6c0,-0x2e5,-_0x41ebf2._0xe2733d));}function locationPath(_0x49939f){const _0x3850ed={_0x491919:0x3ef,_0x51bc3d:0x34f,_0x844fd2:0x4c1,_0x5c0013:0x8c,_0x28757f:0x160},_0xa9c2f8={_0x161364:0x109},_0x178f04={_0x1f2ab1:0x426};if(!_0x49939f[_0xbf79a9(_0x3850ed._0x491919,_0x3850ed._0x51bc3d,0x4a2,_0x3850ed._0x844fd2)](_0x55049a(-_0x3850ed._0x5c0013,-0x215,-0x1d,-_0x3850ed._0x28757f)))return _0x49939f;function _0xbf79a9(_0x3565e7,_0x1d07f5,_0xe2a89a,_0x5986e7){return _0x4aa629(_0x3565e7-0x4f,_0xe2a89a,_0xe2a89a-0x170,_0x3565e7-_0x178f04._0x1f2ab1);}function _0x55049a(_0x502107,_0x415c69,_0x464354,_0x1b1eca){return _0x2f0acf(_0x1b1eca- -0x4b8,_0x415c69-_0xa9c2f8._0x161364,_0x464354,_0x1b1eca-0xee);}return _0x9c441c(_0x49939f);}function formatLocations(_0x2977b5){const _0x6e8962={_0x5876a0:0x31e,_0x5357a5:0x236,_0x525da4:0x365,_0x14da98:0x34e,_0x3470cb:0x28d,_0x2f20bb:0x3d9,_0x126e43:0x190,_0x2f9d71:0x1ef,_0x1a3c87:0x264,_0xda3977:0x23c,_0x400b4f:0x2bd},_0x5d646a={_0x1dc6a7:0x4fc,_0x55d225:0x4},_0x280179={_0x1d8964:0x1ce,_0x426901:0x13,_0x416814:0x2b0},_0x23826a={_0x155529:0xab};function _0x44a8e4(_0x44dc4e,_0x5e59e1,_0x2def0f,_0x3bc9f8){return _0x2f0acf(_0x3bc9f8- -0x492,_0x5e59e1-0xbd,_0x44dc4e,_0x3bc9f8-_0x23826a._0x155529);}if(_0x2977b5[_0x4af635(_0x6e8962._0x5876a0,_0x6e8962._0x5357a5,0x1a0,0x31c)]===0x0)return _0x4af635(_0x6e8962._0x525da4,_0x6e8962._0x14da98,_0x6e8962._0x3470cb,_0x6e8962._0x2f20bb);function _0x4af635(_0x1f9756,_0x5ed28c,_0x1fb919,_0x2f7b4e){return _0x4aa629(_0x1f9756-_0x280179._0x1d8964,_0x2f7b4e,_0x1fb919-_0x280179._0x426901,_0x5ed28c-_0x280179._0x416814);}return _0x2977b5[_0x44a8e4(-0x30b,-_0x6e8962._0x126e43,-_0x6e8962._0x2f9d71,-_0x6e8962._0x1a3c87)](_0x135c8b=>{const _0x1661b7={_0x5615ed:0x17,_0x156934:0x49b},_0x4b1af4={_0x306f66:0xdf,_0x3afa63:0x260};function _0x1d3428(_0x244aa4,_0x5a4898,_0x952f41,_0x2c25cd){return _0x44a8e4(_0x5a4898,_0x5a4898-0xa0,_0x952f41-_0x4b1af4._0x306f66,_0x952f41-_0x4b1af4._0x3afa63);}const _0x384f82=_0x135c8b['range'][_0x3f18f6(0x3e4,_0x5d646a._0x1dc6a7,0x3d1,0x3e1)];function _0x3f18f6(_0x567df1,_0x13bd46,_0x105420,_0x318918){return _0x44a8e4(_0x318918,_0x13bd46-_0x1661b7._0x5615ed,_0x105420-0x1a3,_0x105420-_0x1661b7._0x156934);}return locationPath(_0x135c8b['uri'])+':'+(_0x384f82['line']+0x1)+':'+(_0x384f82[_0x1d3428(_0x5d646a._0x55d225,0x167,0xff,0x1eb)]+0x1);})[_0x4af635(0x2bd,_0x6e8962._0xda3977,_0x6e8962._0x400b4f,0x1f1)]('\x0a');}function isDocumentSymbol(_0x2a8736){const _0x3c1b8c={_0x4ad56f:0x1b5,_0x4ab69f:0x18,_0x577b84:0x356,_0x53d141:0x24a,_0x8d111c:0x29b},_0x54e821={_0x84c239:0x182,_0x4cf47e:0x193},_0x2ca24d={_0x4f770c:0x6d,_0x36f2d1:0x13d};function _0xb1da27(_0x34b76e,_0x132ed3,_0x574ebd,_0xe07cdc){return _0x4aa629(_0x34b76e-_0x2ca24d._0x4f770c,_0x574ebd,_0x574ebd-0x6,_0x132ed3- -_0x2ca24d._0x36f2d1);}function _0x21b816(_0x5de0db,_0x47c822,_0x5aa396,_0x2456d2){return _0x2f0acf(_0x5de0db- -0x448,_0x47c822-_0x54e821._0x84c239,_0x2456d2,_0x2456d2-_0x54e821._0x4cf47e);}return _0x21b816(-0xa2,-_0x3c1b8c._0x4ad56f,-0x1a1,_0x3c1b8c._0x4ab69f)in _0x2a8736&&_0xb1da27(-_0x3c1b8c._0x577b84,-_0x3c1b8c._0x53d141,-0x258,-_0x3c1b8c._0x8d111c)in _0x2a8736;}function formatSymbols(_0x427a43){const _0x4cb7f2={_0x5e68b6:0x42c,_0x7634b9:0x2cf,_0x47c61a:0x331,_0x129896:0x28e,_0x2b7403:0x2fc,_0x29ebf9:0x1ea,_0x4d2293:0x24c,_0x35947a:0x3dc,_0x9d760f:0x3cd},_0x506df4={_0xbf2828:0x4db,_0x5e80c9:0x8e,_0x1f1c10:0x2d4,_0x4facb0:0x1ba,_0x4baafd:0x1b1,_0xd6aa66:0x82,_0x162c70:0x101,_0x23e3be:0x1a,_0xc21439:0x142,_0x3bbc43:0x198,_0x6d1ab7:0x56f,_0xde1b8b:0x6f8,_0x4b0ee9:0x4c3,_0x2f48dd:0x5d0,_0x59086a:0x4ff,_0x5ec81b:0x42c,_0x5a7063:0x577,_0x1ac1e1:0x3df,_0x32bbf6:0x4a8,_0x52a709:0x5bb,_0x55d0e2:0x5d6,_0x5cb875:0x689,_0xce6e05:0xbb,_0x597941:0x12d,_0x105f5f:0x4a1,_0x4c28b9:0x5f9,_0x10f3a0:0x527,_0x3318fd:0x224},_0x1c79a6={_0x19d62b:0x1a9},_0x2b8200={_0x577a95:0xda},_0x4b3414={_0x5b1498:0x70},_0x40eea1={_0xf7fd8c:0x378,_0x3b0a48:0x124};function _0x3f1837(_0x4b6b7e,_0x3df464,_0x110380,_0x332c0d){return _0x2f0acf(_0x4b6b7e- -_0x40eea1._0xf7fd8c,_0x3df464-_0x40eea1._0x3b0a48,_0x3df464,_0x332c0d-0xcb);}if(_0x427a43[_0x29b4a5(0x37e,_0x4cb7f2._0x5e68b6,0x467,_0x4cb7f2._0x7634b9)]===0x0)return _0x29b4a5(_0x4cb7f2._0x47c61a,_0x4cb7f2._0x129896,_0x4cb7f2._0x2b7403,0x3fc);function _0x29b4a5(_0x4aa49c,_0x523f4f,_0x4d7806,_0x5e42cd){return _0x2f0acf(_0x4aa49c-0xbb,_0x523f4f-_0x4b3414._0x5b1498,_0x4d7806,_0x5e42cd-0xe7);}return _0x427a43[_0x29b4a5(0x2e9,0x2c9,0x246,_0x4cb7f2._0x29ebf9)](_0x4f940b=>{function _0x3641e4(_0x5040ab,_0x52c5ca,_0x5935e4,_0x3c98ee){return _0x3f1837(_0x3c98ee-0x639,_0x5935e4,_0x5935e4-_0x2b8200._0x577a95,_0x3c98ee-0x2d);}if(isDocumentSymbol(_0x4f940b))return _0x4f940b[_0x3641e4(0x5f3,0x712,_0x506df4._0xbf2828,0x60d)]+'\x20('+_0x4f940b[_0x3b06ee(-_0x506df4._0x5e80c9,-_0x506df4._0x1f1c10,-_0x506df4._0x4facb0,-_0x506df4._0x4baafd)]+')\x20['+(_0x4f940b['range'][_0x3b06ee(-_0x506df4._0xd6aa66,-0x18,-_0x506df4._0x162c70,-_0x506df4._0x23e3be)]['line']+0x1)+':'+(_0x4f940b['range'][_0x3b06ee(-_0x506df4._0xc21439,0x2f,-0x101,-0x4b)][_0x3b06ee(-0x1dc,-0x276,-_0x506df4._0x3bbc43,-0x13f)]+0x1)+']';function _0x3b06ee(_0x35a35e,_0x234a5f,_0x3f70b9,_0x398b27){return _0x3f1837(_0x3f70b9- -0x151,_0x35a35e,_0x3f70b9-0x8d,_0x398b27-_0x1c79a6._0x19d62b);}return _0x4f940b[_0x3641e4(0x722,0x691,_0x506df4._0x6d1ab7,0x60d)]+'\x20('+_0x4f940b[_0x3641e4(0x5d7,_0x506df4._0xde1b8b,_0x506df4._0x4b0ee9,_0x506df4._0x2f48dd)]+')\x20'+locationPath(_0x4f940b[_0x3641e4(_0x506df4._0x59086a,0x66c,_0x506df4._0x5ec81b,0x527)][_0x3641e4(_0x506df4._0x5a7063,_0x506df4._0x1ac1e1,_0x506df4._0x32bbf6,0x4cd)])+':'+(_0x4f940b['location']['range'][_0x3641e4(0x68f,_0x506df4._0x52a709,_0x506df4._0x55d0e2,_0x506df4._0x5cb875)][_0x3b06ee(-_0x506df4._0xce6e05,-0x18e,-0x12f,-_0x506df4._0x597941)]+0x1)+':'+(_0x4f940b[_0x3641e4(_0x506df4._0x105f5f,0x5a5,_0x506df4._0x4c28b9,_0x506df4._0x10f3a0)]['range'][_0x3b06ee(-_0x506df4._0x3318fd,-0x3,-_0x506df4._0x162c70,-0x1fc)]['character']+0x1);})[_0x29b4a5(0x384,_0x4cb7f2._0x4d2293,_0x4cb7f2._0x35947a,_0x4cb7f2._0x9d760f)]('\x0a');}function formatDiagnostics(_0x53f68d){const _0x47424e={_0x2bb404:0x254,_0xc186cb:0x11c,_0x5a5be8:0x79,_0x350ad2:0x5b,_0xb02987:0x312},_0x363cc8={_0x49520c:0x102,_0x4ee15c:0x131,_0x17829a:0x85,_0xbca5cd:0x71,_0x3b2158:0x133,_0x155a9d:0x18e,_0x10a7eb:0xbb,_0x37d3bc:0xe},_0xc2e2cb={_0x6fd804:0x1cb,_0x3920c9:0x1df,_0x45debd:0x4b3},_0x2ca56d={_0x2e242f:0xf2,_0x33cdc5:0x12f},_0x2a1ca6={_0x4f98d2:0x49,_0x4481e5:0x178},_0x3d2f98={_0x3e2868:0x39a,_0x16ae0e:0x28};function _0x2421b3(_0x545e18,_0x339295,_0xd4b009,_0x1ab53f){return _0x2f0acf(_0xd4b009- -_0x3d2f98._0x3e2868,_0x339295-0xa1,_0x339295,_0x1ab53f-_0x3d2f98._0x16ae0e);}function _0x47abc5(_0x3666d1,_0x27e82a,_0x19a22b,_0x3e61e3){return _0x2f0acf(_0x19a22b-_0x2a1ca6._0x4f98d2,_0x27e82a-0xf,_0x3e61e3,_0x3e61e3-_0x2a1ca6._0x4481e5);}if(_0x53f68d[_0x47abc5(0x25d,_0x47424e._0x2bb404,0x30c,0x407)]===0x0)return _0x2421b3(-_0x47424e._0xc186cb,-_0x47424e._0x5a5be8,-0x102,-_0x47424e._0x350ad2);return _0x53f68d['map'](_0x58a682=>{const _0xd01390=_0x58a682[_0x4d5055(-0x1fa,-_0x363cc8._0x49520c,-0xc4,0x34)][_0x4d5055(-_0x363cc8._0x4ee15c,-_0x363cc8._0x17829a,-0xa2,-_0x363cc8._0xbca5cd)];function _0x2143d4(_0x2f2441,_0x2d2d2b,_0x424974,_0x5d75fa){return _0x2421b3(_0x2f2441-0x1cc,_0x5d75fa,_0x2f2441- -_0x2ca56d._0x2e242f,_0x5d75fa-_0x2ca56d._0x33cdc5);}function _0x4d5055(_0x2ea648,_0x2c91bc,_0x16d7bb,_0x2f222d){return _0x47abc5(_0x2ea648-_0xc2e2cb._0x6fd804,_0x2c91bc-_0xc2e2cb._0x3920c9,_0x16d7bb- -_0xc2e2cb._0x45debd,_0x2ea648);}return severityName(_0x58a682[_0x4d5055(-_0x363cc8._0x3b2158,-0x10d,-0x23b,-0x26a)])+'\x20['+(_0xd01390[_0x2143d4(-0xf2,-0xe7,-_0x363cc8._0x155a9d,-_0x363cc8._0x10a7eb)]+0x1)+':'+(_0xd01390['character']+0x1)+']\x20'+_0x58a682[_0x2143d4(-0x4e,-_0x363cc8._0x37d3bc,0xb8,0xac)];})[_0x47abc5(0x411,0x259,_0x47424e._0xb02987,0x2cd)]('\x0a');}function formatIncomingCalls(_0x54f83c){const _0x106803={_0x4195a2:0x6ff,_0x5ddf6c:0x1fb,_0x293e10:0x30b,_0x366848:0x1c0},_0x466d0d={_0x21eb9f:0xcb,_0x50cf92:0xcc};if(_0x54f83c['length']===0x0)return _0x2c15db(0x612,0x59a,_0x106803._0x4195a2,0x522);function _0x41de57(_0x1d9946,_0x336158,_0x593c60,_0x2aa8d9){return _0x4aa629(_0x1d9946-_0x466d0d._0x21eb9f,_0x593c60,_0x593c60-_0x466d0d._0x50cf92,_0x2aa8d9- -0x180);}function _0x2c15db(_0x3485c9,_0x36b1a1,_0x1626e4,_0x192eb3){return _0x4aa629(_0x3485c9-0x5,_0x1626e4,_0x1626e4-0x90,_0x3485c9-0x61a);}return _0x54f83c['map'](_0x7f29cd=>_0x7f29cd[_0x41de57(-0x22f,-0x182,-0x2ec,-0x27f)][_0x2c15db(0x629,0x727,0x5f9,0x50b)])[_0x41de57(-_0x106803._0x5ddf6c,-_0x106803._0x293e10,-_0x106803._0x366848,-0x1f4)]('\x0a');}function formatOutgoingCalls(_0x10337a){const _0x1472e9={_0x51ba28:0xc0,_0x31ce7b:0x21d,_0x29425c:0x1b8,_0x308a26:0x288,_0x387f82:0x1dd};function _0x228f9f(_0x5d711e,_0xf1d152,_0x21524d,_0x5e11fe){return _0x2f0acf(_0x5e11fe- -0x315,_0xf1d152-0x152,_0xf1d152,_0x5e11fe-0x1a3);}if(_0x10337a['length']===0x0)return _0xc09888(-0x16d,-_0x1472e9._0x51ba28,-_0x1472e9._0x31ce7b,-_0x1472e9._0x29425c);function _0xc09888(_0x84c772,_0x288432,_0x174fb3,_0x521973){return _0x4aa629(_0x84c772-0x1d8,_0x174fb3,_0x174fb3-0xc2,_0x84c772- -0x165);}return _0x10337a[_0xc09888(-0x274,-_0x1472e9._0x308a26,-0x1d7,-_0x1472e9._0x387f82)](_0x110997=>_0x110997['to'][_0xc09888(-0x156,-0x12d,-0x1b4,-0x1cf)])['join']('\x0a');}function toStructured(_0x2a6849){const _0x5c15a2={_0x3048b5:0x95,_0x1261ea:0x20b,_0x5a6f4e:0x8d},_0x38527b={_0x31a757:0xa6,_0x4a3535:0x1e3},_0x29370f={_0xc00ac3:0x8e,_0x4b175d:0x1b6};function _0x288f86(_0x5c5ae5,_0x1d3024,_0x15e078,_0x3ddc0d){return _0x2f0acf(_0x15e078- -0x389,_0x1d3024-_0x29370f._0xc00ac3,_0x3ddc0d,_0x3ddc0d-_0x29370f._0x4b175d);}function _0x1d3dcf(_0x50c2fc,_0x15e1f4,_0x2d6ab8,_0x2db1e0){return _0x4aa629(_0x50c2fc-_0x38527b._0x31a757,_0x50c2fc,_0x2d6ab8-_0x38527b._0x4a3535,_0x2d6ab8-0x49f);}return JSON[_0x288f86(-_0x5c15a2._0x3048b5,-_0x5c15a2._0x1261ea,-0x147,-0x26e)](JSON[_0x288f86(-_0x5c15a2._0x5a6f4e,-0x143,-0x85,-_0x5c15a2._0x3048b5)](_0x2a6849));}async function assertFile(_0x3fe91d){const _0x1fda00={_0x2155b2:0x118},_0x1e5d5f={_0x30c78d:0x22,_0x4273f2:0x18d},_0x29e576=await _0xe0a42d(_0x3fe91d);function _0x4fec73(_0x3f5743,_0x2244d5,_0x520935,_0x3ac51a){return _0x4aa629(_0x3f5743-_0x1e5d5f._0x30c78d,_0x520935,_0x520935-0xcb,_0x3ac51a-_0x1e5d5f._0x4273f2);}if(!_0x29e576[_0x4fec73(-0xb9,0x15,-_0x1fda00._0x2155b2,0x28)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x3fe91d,{'path':_0x3fe91d});}function validatePosition(_0xaee271,_0x36a0c9){const _0x3b2329={_0x57b678:0x1fa,_0x5e915e:0x2f6,_0x4b97f6:0x26c,_0x2e2121:0x65},_0x51ad8b={_0x5a3dae:0x64},_0x52566a={_0x2d2d1b:0xbc,_0x5d2975:0x9b,_0x15207c:0x8b};function _0x8cecbc(_0xb9b84d,_0x10b50b,_0x48fe19,_0x328d0e){return _0x2f0acf(_0x48fe19- -_0x52566a._0x2d2d1b,_0x10b50b-_0x52566a._0x5d2975,_0xb9b84d,_0x328d0e-_0x52566a._0x15207c);}function _0x3c7ee4(_0x3de815,_0x12454f,_0x271f92,_0x5a0d9e){return _0x2f0acf(_0x3de815- -0x471,_0x12454f-0xaa,_0x12454f,_0x5a0d9e-_0x51ad8b._0x5a3dae);}if(!Number['isInteger'](_0xaee271)||_0xaee271<0x1)throw new ToolExecutionError(_0x3c7ee4(-0x1dc,-_0x3b2329._0x57b678,-0x217,-_0x3b2329._0x5e915e),{'line':_0xaee271});if(!Number[_0x8cecbc(0x270,_0x3b2329._0x4b97f6,0x2c2,0x31c)](_0x36a0c9)||_0x36a0c9<0x1)throw new ToolExecutionError(_0x3c7ee4(-0x14b,-0xfe,-0x1fe,-_0x3b2329._0x2e2121),{'character':_0x36a0c9});}function createLspTool(_0x42dbbf={}){const _0x52c314={_0x24c29e:0x3e7,_0x40f742:0x3b1,_0x315aaa:0x5a0,_0x3d9c61:0x46d,_0x580151:0x110,_0x242aaa:0x4ab,_0x51edcf:0x309,_0x1a952e:0x49e,_0x437d1b:0x1cd,_0x30ad61:0x1e4,_0x1d4ce5:0x390,_0x585077:0x23b,_0x5b62ca:0x31f,_0x27250e:0x4d4,_0xdea4e6:0x3aa,_0x423cef:0x368,_0xbaedf2:0x280,_0x365e6d:0x2ac,_0x1370b9:0x1ac,_0x530a9b:0x2ae,_0x149faa:0x4e6,_0x23a130:0x3c6,_0x31994e:0x448,_0x21ede2:0x2d,_0x51f4d6:0x3e,_0x2191d6:0x135,_0x1c29f5:0x8f,_0x3c4b94:0x42b,_0x1a730c:0x398,_0x3bfc67:0x1fc,_0x595cfe:0x296,_0x3e35dd:0x17d,_0x55c30a:0x7e,_0x1317f5:0x9a,_0x458329:0x2a,_0x5aeb8c:0x129,_0x5735c4:0x7a,_0xc7f187:0x39,_0xb9015c:0x5d,_0xd498e6:0x2,_0x5a6510:0x5b,_0x46bf6e:0x1c,_0x2d7c08:0x13d,_0x4bd7c0:0xf9,_0x3e8cd1:0xea,_0x8dcb82:0xa},_0x12581e={_0x1fdeeb:0x351,_0x331dce:0x26a,_0x5b44fe:0x2d7,_0x54eca5:0x22a,_0x1907fa:0x303,_0xa58bca:0x484,_0x541d80:0x3bd,_0x137763:0x483,_0x2cc286:0x4de,_0x3e1e07:0x543,_0x4b489d:0x42a,_0x223f76:0x486,_0x31b301:0x3e8,_0x1fba2e:0x42e,_0x595814:0x3fe,_0x5b7ddb:0x428,_0x24f2ef:0x406,_0x78e907:0x265,_0x59071f:0x34b,_0x2d38d5:0x599,_0x312278:0x644,_0x2ecf65:0x592,_0x6caffb:0xbc,_0x385fc5:0xff,_0x50c8fb:0x69,_0x514511:0xa1,_0xca2429:0x17a,_0x50acea:0x184,_0x2fd93d:0x535,_0x4bcf45:0x4ab,_0x29e9a7:0x14d,_0x356d66:0x22a,_0x5054d6:0x8,_0x5663ae:0xae,_0x7171d1:0x3da,_0x4a3092:0xf5,_0x14f303:0x2a9,_0x5d1c7f:0xc7,_0x33b15c:0x68,_0x5953e2:0xb,_0x57b1fd:0x130,_0x1823d3:0x1cc,_0x17824b:0x2f3,_0x3dd96a:0x222,_0x575f65:0x335,_0x2d4838:0x273,_0x1d1c05:0x3b8,_0x45ddd8:0x628,_0x15b3d4:0x4c5,_0x261213:0x59c,_0x43e6ab:0x4fc,_0xe41972:0x580,_0x2684b0:0x415,_0x1744c6:0x21f,_0x34b057:0x103,_0x47e4f8:0x427,_0x45c886:0x390,_0x3d75ff:0x48f,_0xbf3302:0x1,_0x2ea85b:0x127,_0x158c73:0xcd,_0x45a144:0x2d,_0xaaff70:0x58d,_0x1c3bff:0x485,_0x4b5faf:0x48e,_0x45abd3:0xef,_0x9d8275:0x1ea,_0x440b95:0x145},_0x5e532d={_0x120808:0x17e,_0x1e541c:0x35c},_0x56f176={_0x54e39c:0x409,_0x24846a:0x173,_0x367b1e:0x167},_0x13bba0=_0x11df05['resolve'](_0x42dbbf['defaultCwd']??process[_0x4f9730(_0x52c314._0x24c29e,_0x52c314._0x40f742,_0x52c314._0x315aaa,_0x52c314._0x3d9c61)]()),_0x3514c7=(_0x42dbbf['allowedDirs']??[])[_0x4f9730(_0x52c314._0x580151,0x300,0x1df,0x24d)](_0x5027dd=>_0x11df05['resolve'](_0x5027dd));function _0x1b6e35(_0x271330,_0x2174b6,_0x3e13df,_0x2742df){return _0x2f0acf(_0x2174b6- -_0x56f176._0x54e39c,_0x2174b6-_0x56f176._0x24846a,_0x3e13df,_0x2742df-_0x56f176._0x367b1e);}function _0x4f9730(_0x5a8e03,_0x33571a,_0x43f981,_0x4df44a){return _0x4aa629(_0x5a8e03-0x116,_0x43f981,_0x43f981-_0x5e532d._0x120808,_0x4df44a-_0x5e532d._0x1e541c);}const _0x536416=_0x42dbbf[_0x4f9730(_0x52c314._0x242aaa,_0x52c314._0x51edcf,0x2b1,0x36b)]??_0x4f9730(0x46e,0x253,_0x52c314._0x1a952e,0x36d);return defineTool({'name':_0x536416,'description':_0x1b6e35(-_0x52c314._0x437d1b,-0x101,-_0x52c314._0x30ad61,0x2d),'inputSchema':{'type':_0x4f9730(0x241,_0x52c314._0x1d4ce5,_0x52c314._0x585077,_0x52c314._0x5b62ca),'properties':{'operation':{'type':_0x4f9730(_0x52c314._0x27250e,0x43d,0x43d,_0x52c314._0xdea4e6),'enum':[_0x1b6e35(-0x119,-0x224,-_0x52c314._0x423cef,-_0x52c314._0xbaedf2),_0x1b6e35(-_0x52c314._0x365e6d,-_0x52c314._0x1370b9,-0x7c,-_0x52c314._0x530a9b),_0x4f9730(_0x52c314._0x149faa,_0x52c314._0x23a130,0x562,_0x52c314._0x31994e),_0x1b6e35(-0x1de,-0x149,-0x273,-_0x52c314._0x21ede2),'workspaceSymbol',_0x1b6e35(-0xa0,_0x52c314._0x51f4d6,_0x52c314._0x2191d6,-0xff),_0x1b6e35(-0x182,-0xcf,-0x8d,-_0x52c314._0x1c29f5),_0x4f9730(_0x52c314._0x3c4b94,0x31f,0x436,_0x52c314._0x1a730c),_0x4f9730(0x2fc,_0x52c314._0x3bfc67,0x396,_0x52c314._0x595cfe),'diagnostics']},'filePath':{'type':_0x1b6e35(-_0x52c314._0x3e35dd,-_0x52c314._0x55c30a,-_0x52c314._0x1317f5,-0x162)},'line':{'type':_0x1b6e35(-_0x52c314._0x458329,0x7,_0x52c314._0x5aeb8c,0x106)},'character':{'type':'number'},'query':{'type':_0x1b6e35(-_0x52c314._0x5735c4,-0x7e,_0x52c314._0xc7f187,-_0x52c314._0xb9015c)}},'required':[_0x1b6e35(_0x52c314._0xd498e6,-0x1c,-_0x52c314._0x5a6510,_0x52c314._0x46bf6e),_0x1b6e35(-0xd8,-_0x52c314._0x2d7c08,-_0x52c314._0x4bd7c0,-0x10e),_0x1b6e35(0xd5,-0x6f,-0x10d,0xcf),_0x1b6e35(-_0x52c314._0x3e8cd1,-0xd8,-_0x52c314._0x8dcb82,0x19)]},async *'execute'(_0x58483e){const _0x2b6890={_0xbd020c:0x11e,_0x1b26e8:0x4a},_0x2501d6=_0x42dbbf[_0xae14f8(-_0x12581e._0x1fdeeb,-_0x12581e._0x331dce,-_0x12581e._0x5b44fe,-0x230)];if(!_0x2501d6)throw new ToolExecutionError(_0xae14f8(-0x246,-_0x12581e._0x54eca5,-0x255,-_0x12581e._0x1907fa));if(!_0x2501d6[_0xa2525b(_0x12581e._0xa58bca,0x5a1,0x529,0x462)]())throw new ToolExecutionError(_0xa2525b(_0x12581e._0x541d80,_0x12581e._0x137763,0x29f,0x348));const _0x3d9f70=_0x58483e[_0xa2525b(_0x12581e._0x2cc286,_0x12581e._0x3e1e07,0x63c,0x542)];validatePosition(_0x58483e['line'],_0x58483e[_0xa2525b(0x410,_0x12581e._0x4b489d,0x5a8,_0x12581e._0x223f76)]);if(_0x3d9f70===_0xa2525b(0x3c4,_0x12581e._0x31b301,0x3ed,_0x12581e._0x1fba2e)){if(!_0x58483e[_0xa2525b(_0x12581e._0x595814,_0x12581e._0x5b7ddb,_0x12581e._0x24f2ef,0x515)]?.[_0xa2525b(0x21b,_0x12581e._0x78e907,_0x12581e._0x59071f,0x344)]())throw new ToolExecutionError(_0xa2525b(_0x12581e._0x2d38d5,0x5ff,_0x12581e._0x312278,_0x12581e._0x2ecf65));const _0x3c00e1=await _0x2501d6[_0xae14f8(-0xd6,-0x188,-_0x12581e._0x6caffb,-_0x12581e._0x385fc5)](_0x58483e['query']['trim']());return yield createToolOutput(formatSymbols(_0x3c00e1),{'operation':_0x3d9f70,'query':_0x58483e[_0xae14f8(_0x12581e._0x50c8fb,-_0x12581e._0x514511,-_0x12581e._0xca2429,-_0x12581e._0x50acea)],'symbols':_0x3c00e1}),void 0x0;}const _0x24a59d=resolveAllowedPath(_0x13bba0,_0x3514c7,_0x58483e[_0xa2525b(_0x12581e._0x2fd93d,_0x12581e._0x4bcf45,0x3db,0x421)]);await assertFile(_0x24a59d);if(!await _0x2501d6[_0xae14f8(-_0x12581e._0x29e9a7,-0xfe,-_0x12581e._0x356d66,_0x12581e._0x5054d6)](_0x24a59d))throw new ToolExecutionError(_0xae14f8(-_0x12581e._0x5663ae,-0x2c,-0x6f,-0xae)+_0x58483e['filePath'],{'filePath':_0x58483e[_0xa2525b(0x2fd,0x50f,_0x12581e._0x7171d1,0x421)]});function _0xae14f8(_0x3a7462,_0x4547ba,_0x267f66,_0x25cacd){return _0x4f9730(_0x3a7462-_0x2b6890._0xbd020c,_0x4547ba-_0x2b6890._0x1b26e8,_0x25cacd,_0x4547ba- -0x480);}await _0x2501d6[_0xae14f8(-_0x12581e._0x4a3092,-0x16e,-0x12b,-_0x12581e._0x14f303)](_0x24a59d,!![]);function _0xa2525b(_0x2b3c1b,_0x3d9c30,_0x17f4dd,_0x53184f){return _0x1b6e35(_0x2b3c1b-0x177,_0x53184f-0x55e,_0x3d9c30,_0x53184f-0x199);}const _0x10d91d={'file':_0x24a59d,'line':_0x58483e[_0xae14f8(-0xe4,-_0x12581e._0x5d1c7f,-0x6d,_0x12581e._0x33b15c)]-0x1,'character':_0x58483e[_0xae14f8(-_0x12581e._0x5953e2,-_0x12581e._0x57b1fd,-0x275,-0x56)]-0x1};switch(_0x3d9f70){case'hover':{const _0x488752=await _0x2501d6['hover'](_0x10d91d);return yield createToolOutput(formatHover(_0x488752),{'operation':_0x3d9f70,'filePath':_0x24a59d,'hover':_0x488752}),void 0x0;}case _0xae14f8(-0x2f0,-0x290,-_0x12581e._0x1823d3,-_0x12581e._0x17824b):{const _0x510d2d=await _0x2501d6[_0xa2525b(_0x12581e._0x3dd96a,_0x12581e._0x575f65,0x3d2,0x35f)](_0x24a59d);return yield createToolOutput(formatDiagnostics(_0x510d2d),{'operation':_0x3d9f70,'filePath':_0x24a59d,'diagnostics':_0x510d2d}),void 0x0;}case _0xa2525b(0x414,_0x12581e._0x2d4838,_0x12581e._0x1d1c05,0x33a):{const _0x4a2746=await _0x2501d6[_0xa2525b(_0x12581e._0x45ddd8,0x5c9,0x568,0x50e)](_0x10d91d);return yield createToolOutput(formatLocations(_0x4a2746),{'operation':_0x3d9f70,'filePath':_0x24a59d,'locations':_0x4a2746}),void 0x0;}case'findReferences':{const _0x1d614b=await _0x2501d6['references'](_0x10d91d);return yield createToolOutput(formatLocations(_0x1d614b),{'operation':_0x3d9f70,'filePath':_0x24a59d,'locations':_0x1d614b}),void 0x0;}case _0xa2525b(0x4a4,0x618,_0x12581e._0x15b3d4,_0x12581e._0x261213):{const _0x2af517=await _0x2501d6[_0xa2525b(0x50e,0x560,_0x12581e._0x43e6ab,_0x12581e._0xe41972)](_0x10d91d);return yield createToolOutput(formatLocations(_0x2af517),{'operation':_0x3d9f70,'filePath':_0x24a59d,'locations':_0x2af517}),void 0x0;}case _0xa2525b(0x474,0x487,0x4e3,_0x12581e._0x2684b0):{const _0x392100=await _0x2501d6[_0xae14f8(-_0x12581e._0x1744c6,-0x1a1,-0x250,-_0x12581e._0x34b057)](_0x24a59d);return yield createToolOutput(formatSymbols(_0x392100),{'operation':_0x3d9f70,'filePath':_0x24a59d,'symbols':_0x392100}),void 0x0;}case _0xa2525b(_0x12581e._0x47e4f8,0x5a7,_0x12581e._0x45c886,_0x12581e._0x3d75ff):{const _0x45592c=await _0x2501d6[_0xae14f8(_0x12581e._0xbf3302,-_0x12581e._0x2ea85b,-_0x12581e._0x158c73,-_0x12581e._0x45a144)](_0x10d91d);return yield createToolOutput(formatSymbols(_0x45592c),{'operation':_0x3d9f70,'filePath':_0x24a59d,'symbols':toStructured(_0x45592c)}),void 0x0;}case _0xa2525b(0x5ed,0x570,0x47f,0x4ce):{const _0x160970=await _0x2501d6[_0xa2525b(_0x12581e._0xaaff70,_0x12581e._0x1c3bff,_0x12581e._0x4b5faf,0x4ce)](_0x10d91d);return yield createToolOutput(formatIncomingCalls(_0x160970),{'operation':_0x3d9f70,'filePath':_0x24a59d,'calls':toStructured(_0x160970)}),void 0x0;}case _0xae14f8(-_0x12581e._0x45abd3,-_0x12581e._0x9d8275,-_0x12581e._0x440b95,-0x206):{const _0x47f7d1=await _0x2501d6['outgoingCalls'](_0x10d91d);return yield createToolOutput(formatOutgoingCalls(_0x47f7d1),{'operation':_0x3d9f70,'filePath':_0x24a59d,'calls':toStructured(_0x47f7d1)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x4f1a5b,readFile as _0x430286,writeFile as _0x23a316}from'fs/promises';import{join as _0x472289}from'path';function sanitizeStorageKey(_0x42ea2c){const _0x316056={_0x1d3698:0x10f,_0x174c89:0x1fd,_0xcafe9a:0x11e,_0x2a221c:0x111};function _0x5b7fd9(_0x56a389,_0x342e6f,_0x422e2d,_0x436978){return _0x2f0acf(_0x436978- -0xc6,_0x342e6f-0x16e,_0x342e6f,_0x436978-0x5a);}function _0x5d40b8(_0x5c8a95,_0x4e8477,_0xc99235,_0x19b283){return _0x4aa629(_0x5c8a95-0x137,_0x4e8477,_0xc99235-0x166,_0xc99235-0x582);}return _0x42ea2c[_0x5b7fd9(_0x316056._0x1d3698,0x11b,_0x316056._0x174c89,0x111)](/[^a-zA-Z0-9_]+/g,'_')[_0x5b7fd9(_0x316056._0xcafe9a,0x18b,-0x8,_0x316056._0x2a221c)](/^_+|_+$/g,'')||_0x5d40b8(0x603,0x667,0x556,0x48e);}function storagePath(_0x144636){const _0x290436={_0x22ca57:0x2a6,_0x43ac2e:0x166,_0x343507:0x131,_0x550ae7:0x9e,_0x233cdf:0xef,_0x57be3d:0xd2},_0x3f0094={_0x9d8476:0x49,_0x32dc30:0x69};function _0x547c8c(_0x175a49,_0x1a9000,_0x77871,_0x5f262b){return _0x4aa629(_0x175a49-0x1b8,_0x1a9000,_0x77871-0x31,_0x175a49-0x215);}const _0x81bc7b=sanitizeStorageKey(_0x144636[_0x547c8c(_0x290436._0x22ca57,0x308,0x339,0x1a3)]['oauth']?.[_0x547c8c(_0x290436._0x43ac2e,0x2ad,_0x290436._0x343507,_0x290436._0x550ae7)]??_0x144636['serverName']);function _0x469051(_0x35e114,_0x5459b5,_0x491f2f,_0x1f4a19){return _0x4aa629(_0x35e114-_0x3f0094._0x9d8476,_0x1f4a19,_0x491f2f-_0x3f0094._0x32dc30,_0x5459b5-0x3d);}return _0x472289(_0x144636['storageDir'],_0x81bc7b+_0x469051(0x5e,0x17,-_0x290436._0x233cdf,-_0x290436._0x57be3d));}async function readStore(_0x52108e){const _0x387119={_0x2b2fbc:0xe0,_0x5a273d:0x216,_0x4f468c:0x1d3,_0x3db43f:0x191,_0x1ea39a:0x34,_0x319837:0xad,_0x4592c:0x58f,_0x258c36:0x449,_0x308d2c:0x58f,_0x2a4d8f:0x5c0,_0x32fc34:0x5a5},_0x56024c={_0x5df9bc:0x232,_0x483d63:0x1ea,_0x1d0a0e:0x37},_0x1c902b={_0x2b6e48:0xe6};function _0x1d99cd(_0x34faf9,_0x4bbcb7,_0x5f8612,_0xd2a0d2){return _0x2f0acf(_0x5f8612- -0x314,_0x4bbcb7-0x137,_0x34faf9,_0xd2a0d2-_0x1c902b._0x2b6e48);}function _0x6b3d4d(_0x354718,_0x5bee22,_0x225ab9,_0x4cb18f){return _0x2f0acf(_0x354718-_0x56024c._0x5df9bc,_0x5bee22-_0x56024c._0x483d63,_0x225ab9,_0x4cb18f-_0x56024c._0x1d0a0e);}try{return JSON[_0x1d99cd(-_0x387119._0x2b2fbc,-_0x387119._0x5a273d,-0xd2,-_0x387119._0x4f468c)](await _0x430286(_0x52108e,_0x1d99cd(-_0x387119._0x3db43f,_0x387119._0x1ea39a,-0x8f,-_0x387119._0x319837)));}catch(_0xeaa1d1){if(_0xeaa1d1 instanceof Error&&_0x6b3d4d(_0x387119._0x4592c,0x67c,0x465,_0x387119._0x258c36)in _0xeaa1d1&&_0xeaa1d1[_0x6b3d4d(_0x387119._0x308d2c,0x591,_0x387119._0x2a4d8f,_0x387119._0x32fc34)]==='ENOENT')return{};throw _0xeaa1d1;}}async function writeStore(_0x234d78,_0x1d33cc){const _0x275754={_0x37fe81:0x530,_0x22aea9:0x439},_0xb6c6ed={_0xb7a1e3:0x2d};await _0x4f1a5b(_0x472289(_0x234d78,'..'),{'recursive':!![]});function _0x499539(_0x4314b7,_0x84db65,_0x379970,_0x492a70){return _0x2f0acf(_0x492a70-0x1b4,_0x84db65-0xa8,_0x4314b7,_0x492a70-_0xb6c6ed._0xb7a1e3);}await _0x23a316(_0x234d78,JSON['stringify'](_0x1d33cc,null,0x2),_0x499539(0x3fe,_0x275754._0x37fe81,0x323,_0x275754._0x22aea9));}function _0x2f0acf(_0xff2276,_0xf2ccb,_0x5d1b7b,_0x193aa2){return _0x561a(_0xff2276-0xeb,_0x5d1b7b);}async function updateStore(_0x323e58,_0x4c0eb0){const _0xfffb5=await readStore(_0x323e58);_0x4c0eb0(_0xfffb5),await writeStore(_0x323e58,_0xfffb5);}function createMcpOAuthProvider(_0x2ac031){const _0x5b8c34={_0x379cc1:0x177,_0x307922:0x1bf,_0x408050:0x132,_0x14d953:0x209,_0x263968:0x28f,_0x5edf35:0x20c,_0x152dd5:0x306,_0x45050e:0x142,_0x5a299f:0x44,_0x167981:0x325,_0x60482a:0x243,_0x57f0dd:0xd6,_0x2c0eed:0x37,_0x45c526:0x1a2,_0x23ac2e:0xe5,_0x30f2b5:0x136,_0x1fbf76:0x21f},_0x4e2e4f={_0x215e87:0x278,_0x55b1aa:0x325,_0x67cf60:0x269},_0x2a09bf={_0x1277a9:0x111,_0x50577a:0x94,_0x14f013:0xa3,_0x364d0c:0x78,_0x2bf9ff:0x2a9,_0x131fe8:0x3dd,_0x14f32:0x3d8,_0x21dcce:0x481,_0x1a3961:0x13,_0xcc2dcf:0x19,_0x4ed865:0x170,_0x5914d4:0x94,_0x2b4186:0x2e9,_0x3b8bf4:0x3dc,_0x1280ab:0x41a,_0x1d8061:0x590,_0x56b591:0x4fa,_0x56f566:0x462,_0x268477:0x38f,_0x17d4fe:0x18e,_0x14e6c2:0x87},_0x18243e={_0x5832e5:0x6f6,_0x389c66:0x7a1,_0x3cf747:0x65c,_0xf4ac9a:0x726,_0x41fa06:0x6ee},_0x229bd0={_0x3d1bcd:0x146,_0x5b65c3:0xab,_0x572e47:0x209},_0x361868={_0x16c12a:0x11b,_0x1585d0:0x176},_0x3a8283={_0x106583:0x3dd,_0x49504d:0x409,_0x328c88:0x3ad},_0x19873a={_0x5e9212:0xae},_0x1a48df={_0xdcc4bc:0x56},_0x1916b5={_0x1a23d5:0x0,_0x3caec6:0x15a,_0x5b4342:0x1cd},_0x20b2cf=storagePath(_0x2ac031);function _0x5e2a90(_0x636891,_0x451f1e,_0x78544b,_0x4c3050){return _0x4aa629(_0x636891-_0x1916b5._0x1a23d5,_0x451f1e,_0x78544b-_0x1916b5._0x3caec6,_0x78544b-_0x1916b5._0x5b4342);}const _0x5cb648=_0x2ac031[_0xdaa4e(-_0x5b8c34._0x379cc1,-0x1f3,-0xb9,-0x137)]['oauth']?.[_0x5e2a90(0xa0,_0x5b8c34._0x307922,_0x5b8c34._0x408050,_0x5b8c34._0x14d953)]?.['join']('\x20'),_0x169335={'client_name':'Nuvin','redirect_uris':[_0x2ac031[_0xdaa4e(-0x282,-_0x5b8c34._0x263968,-_0x5b8c34._0x5edf35,-_0x5b8c34._0x152dd5)]],'grant_types':[_0xdaa4e(0x53,-_0x5b8c34._0x45050e,-_0x5b8c34._0x5a299f,-0x7c),'refresh_token'],'response_types':[_0x5e2a90(0x2db,_0x5b8c34._0x167981,0x1ed,_0x5b8c34._0x60482a)],'token_endpoint_auth_method':_0xdaa4e(0xb9,_0x5b8c34._0x57f0dd,-_0x5b8c34._0x2c0eed,-0x101),..._0x5cb648?{'scope':_0x5cb648}:{}};function _0xdaa4e(_0x48f058,_0x521890,_0x2c9d28,_0x3ab056){return _0x4aa629(_0x48f058-0xf5,_0x48f058,_0x2c9d28-_0x1a48df._0xdcc4bc,_0x2c9d28- -0x14a);}return{'clientMetadataUrl':_0x2ac031['config'][_0x5e2a90(0x206,0x297,0x15e,_0x5b8c34._0x45c526)]?.[_0x5e2a90(_0x5b8c34._0x23ac2e,_0x5b8c34._0x30f2b5,0x175,_0x5b8c34._0x1fbf76)],get 'redirectUrl'(){function _0x4745b2(_0x4ebb58,_0x27d097,_0x20f147,_0x20b27a){return _0x5e2a90(_0x4ebb58-0x4a,_0x20f147,_0x27d097-0x1b,_0x20b27a-_0x19873a._0x5e9212);}return _0x2ac031[_0x4745b2(0x62,0x126,0x150,0x1fb)];},get 'clientMetadata'(){return _0x169335;},async 'state'(){const _0x559610={_0x12cee8:0x124,_0x1b350f:0x1ff,_0x11d2d9:0x1ac},_0x3025eb={_0x127c92:0xed,_0x3b4ca4:0x2d},_0x249b26=await readStore(_0x20b2cf);function _0x38b598(_0x136487,_0x3516c3,_0x39906c,_0x5cff6e){return _0xdaa4e(_0x3516c3,_0x3516c3-0x114,_0x5cff6e-_0x3025eb._0x127c92,_0x5cff6e-_0x3025eb._0x3b4ca4);}if(_0x249b26['state'])return _0x249b26[_0x38b598(-0x52,0xbc,0x8,-0x4)];const _0x56fa74=randomUUID();return await updateStore(_0x20b2cf,_0x1e67d2=>{function _0x32f9a0(_0x598fff,_0xdd7509,_0x317ba2,_0x2ded89){return _0x38b598(_0x598fff-0x18b,_0x598fff,_0x317ba2-0x84,_0x317ba2- -0x12d);}_0x1e67d2[_0x32f9a0(-_0x559610._0x12cee8,-_0x559610._0x1b350f,-0x131,-_0x559610._0x11d2d9)]=_0x56fa74;}),_0x56fa74;},async 'clientInformation'(){return(await readStore(_0x20b2cf))['clientInformation'];},async 'saveClientInformation'(_0x4d3f25){await updateStore(_0x20b2cf,_0xdcdc3e=>{const _0x1e4ccc={_0x38c514:0x181};function _0x2a24fe(_0x3d3914,_0x73c5f4,_0x177d80,_0x2ac7fa){return _0x561a(_0x3d3914-_0x1e4ccc._0x38c514,_0x2ac7fa);}_0xdcdc3e[_0x2a24fe(_0x3a8283._0x106583,_0x3a8283._0x49504d,_0x3a8283._0x328c88,0x2f3)]=_0x4d3f25;});},async 'tokens'(){return(await readStore(_0x20b2cf))['tokens'];},async 'saveTokens'(_0x4d786e){await updateStore(_0x20b2cf,_0x177369=>{function _0x348e63(_0x20a037,_0x3cd85f,_0x36fd1e,_0x10fd0d){return _0x561a(_0x10fd0d- -0x2c6,_0x36fd1e);}_0x177369[_0x348e63(-_0x361868._0x16c12a,-0x201,-0x218,-_0x361868._0x1585d0)]=_0x4d786e;});},async 'redirectToAuthorization'(_0x2e8afb){function _0x46c2f7(_0x4e8521,_0xb773f7,_0x4bab06,_0x42b8bc){return _0x5e2a90(_0x4e8521-0x1e3,_0x4bab06,_0x4e8521- -0x135,_0x42b8bc-0x1c8);}await _0x2ac031[_0x46c2f7(_0x229bd0._0x3d1bcd,_0x229bd0._0x5b65c3,0x171,_0x229bd0._0x572e47)](_0x2e8afb);},async 'saveCodeVerifier'(_0x533486){const _0x261936={_0x50a94b:0x4cb,_0x3efcf1:0x73c};await updateStore(_0x20b2cf,_0x2e330d=>{function _0x383389(_0x2b21ab,_0x42b596,_0x4637df,_0x248085){return _0x561a(_0x248085-0x330,_0x42b596);}_0x2e330d[_0x383389(0x529,_0x261936._0x50a94b,_0x261936._0x3efcf1,0x612)]=_0x533486;});},async 'codeVerifier'(){const _0x315ed9={_0xce92cb:0xd1},_0x5bf2a0={_0x2f4109:0x192,_0x45804b:0x74};function _0x176ff6(_0x1edba2,_0xf44471,_0x22d616,_0x13410d){return _0xdaa4e(_0x1edba2,_0xf44471-_0x5bf2a0._0x2f4109,_0x13410d-0x726,_0x13410d-_0x5bf2a0._0x45804b);}const _0x3846c0=(await readStore(_0x20b2cf))[_0x176ff6(0x6b1,_0x18243e._0x5832e5,_0x18243e._0x389c66,0x66c)];function _0x5c64aa(_0x57c1ba,_0x35bc79,_0x36cc29,_0x312d10){return _0xdaa4e(_0x36cc29,_0x35bc79-_0x315ed9._0xce92cb,_0x312d10-0x759,_0x312d10-0x1e6);}if(!_0x3846c0)throw new Error(_0x5c64aa(_0x18243e._0x3cf747,_0x18243e._0xf4ac9a,0x6ee,_0x18243e._0x41fa06));return _0x3846c0;},async 'invalidateCredentials'(_0x3fed75){await updateStore(_0x20b2cf,_0x37d0e4=>{const _0x224642={_0x4cabec:0x28c};function _0x26245e(_0x325c35,_0x3ef331,_0x4dd648,_0xf247a7){return _0x561a(_0xf247a7- -0x1e4,_0x4dd648);}(_0x3fed75==='all'||_0x3fed75===_0x26245e(-0xd6,_0x2a09bf._0x1277a9,0xa,-0x32))&&(_0x37d0e4[_0x26245e(_0x2a09bf._0x50577a,_0x2a09bf._0x14f013,0x17f,_0x2a09bf._0x364d0c)]=void 0x0);(_0x3fed75===_0x21bf50(_0x2a09bf._0x2bf9ff,_0x2a09bf._0x131fe8,_0x2a09bf._0x14f32,_0x2a09bf._0x21dcce)||_0x3fed75===_0x26245e(_0x2a09bf._0x1a3961,_0x2a09bf._0xcc2dcf,-_0x2a09bf._0x4ed865,-_0x2a09bf._0x5914d4))&&(_0x37d0e4[_0x21bf50(_0x2a09bf._0x2b4186,_0x2a09bf._0x3b8bf4,0x4fc,_0x2a09bf._0x1280ab)]=void 0x0);(_0x3fed75===_0x21bf50(0x2d5,0x3dd,0x474,0x521)||_0x3fed75===_0x21bf50(0x532,0x567,0x48e,0x4d7))&&(_0x37d0e4['codeVerifier']=void 0x0,_0x37d0e4[_0x21bf50(0x5bd,0x537,_0x2a09bf._0x1d8061,_0x2a09bf._0x56b591)]=void 0x0);function _0x21bf50(_0x320372,_0x329bbb,_0x14a211,_0x52a3e1){return _0x561a(_0x329bbb-_0x224642._0x4cabec,_0x320372);}(_0x3fed75===_0x21bf50(0x34c,_0x2a09bf._0x131fe8,_0x2a09bf._0x56f566,_0x2a09bf._0x268477)||_0x3fed75===_0x26245e(_0x2a09bf._0x17d4fe,-_0x2a09bf._0x14e6c2,0x160,0x58))&&(_0x37d0e4['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x383f9b){const _0x23e31e={_0x467fac:0x390},_0xf71d60={_0x47f35b:0xa2};await updateStore(_0x20b2cf,_0x3f48c5=>{function _0x38683d(_0xeb561d,_0x566fc9,_0x45baa0,_0x5549f5){return _0x561a(_0xeb561d-_0xf71d60._0x47f35b,_0x45baa0);}_0x3f48c5[_0x38683d(0x353,_0x23e31e._0x467fac,0x30d,0x30e)]=_0x383f9b;});},async 'discoveryState'(){function _0xb6e649(_0x11a6f4,_0x48570d,_0x21ddfa,_0x1b2aa8){return _0x5e2a90(_0x11a6f4-0x9f,_0x21ddfa,_0x1b2aa8-0x3d,_0x1b2aa8-0x4a);}return(await readStore(_0x20b2cf))[_0xb6e649(_0x4e2e4f._0x215e87,0x385,_0x4e2e4f._0x55b1aa,_0x4e2e4f._0x67cf60)];}};}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(_0xe7563f,_0x55910f){const _0x16e7cf={_0x4aa879:0x16c,_0x38ae29:0x126},_0x3ed0d3={_0x22455b:0x1e8},_0x551ffb={_0x2918fc:0x1d4};function _0x43180d(_0x33e3f8,_0x49c0f7,_0x177bba,_0x244a8c){return _0x4aa629(_0x33e3f8-0x106,_0x244a8c,_0x177bba-_0x551ffb._0x2918fc,_0x177bba-0x2e2);}const _0x564f02=_0x276894=>_0x276894[_0x43180d(0x175,0xbc,0x17c,0x1b4)](/[^a-zA-Z0-9_]+/g,'_')[_0x43180d(0x6f,0x102,0x17c,0x24f)](/^_+|_+$/g,'');function _0x39d3eb(_0x15d104,_0xf21074,_0x54e67a,_0x5b5a6a){return _0x2f0acf(_0x54e67a- -0x392,_0xf21074-_0x3ed0d3._0x22455b,_0x15d104,_0x5b5a6a-0x14f);}return _0x39d3eb(-_0x16e7cf._0x4aa879,-0x1e3,-_0x16e7cf._0x38ae29,0x4)+_0x564f02(_0xe7563f)+'_'+_0x564f02(_0x55910f);}function isObject(_0x24b9a5){const _0x161394={_0x15d71f:0xde,_0x50426a:0x424},_0x294bd5={_0x4c9966:0xa1},_0x658589={_0x24d415:0x129,_0x3ade5f:0x86};function _0xc1d619(_0x43a885,_0x55a20a,_0x2b1007,_0xc7ce1){return _0x2f0acf(_0xc7ce1- -0x419,_0x55a20a-_0x658589._0x24d415,_0x2b1007,_0xc7ce1-_0x658589._0x3ade5f);}function _0x13db20(_0x22ca22,_0x3d8d0f,_0x4257ee,_0x23b511){return _0x4aa629(_0x22ca22-_0x294bd5._0x4c9966,_0x4257ee,_0x4257ee-0x4e,_0x3d8d0f-0x4bc);}return typeof _0x24b9a5===_0xc1d619(-0x1d3,-0x51,-_0x161394._0x15d71f,-0x119)&&_0x24b9a5!==null&&!Array[_0x13db20(0x582,0x53d,0x4be,_0x161394._0x50426a)](_0x24b9a5);}function _0x561a(_0x45670b,_0x4e6a08){_0x45670b=_0x45670b-0xe1;const _0x400895=_0x4008();let _0x561a29=_0x400895[_0x45670b];if(_0x561a['xRBonB']===undefined){var _0x255732=function(_0x5e5b51){const _0x456b3e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x53c5d0='',_0x359d69='';for(let _0x29f37d=0x0,_0x4f421d,_0x1b4671,_0x3ea862=0x0;_0x1b4671=_0x5e5b51['charAt'](_0x3ea862++);~_0x1b4671&&(_0x4f421d=_0x29f37d%0x4?_0x4f421d*0x40+_0x1b4671:_0x1b4671,_0x29f37d++%0x4)?_0x53c5d0+=String['fromCharCode'](0xff&_0x4f421d>>(-0x2*_0x29f37d&0x6)):0x0){_0x1b4671=_0x456b3e['indexOf'](_0x1b4671);}for(let _0x26364b=0x0,_0x1744cf=_0x53c5d0['length'];_0x26364b<_0x1744cf;_0x26364b++){_0x359d69+='%'+('00'+_0x53c5d0['charCodeAt'](_0x26364b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x359d69);};_0x561a['NDcCRG']=_0x255732,_0x561a['qAruZR']={},_0x561a['xRBonB']=!![];}const _0x3a22ef=_0x400895[0x0],_0x42b542=_0x45670b+_0x3a22ef,_0x2cb633=_0x561a['qAruZR'][_0x42b542];return!_0x2cb633?(_0x561a29=_0x561a['NDcCRG'](_0x561a29),_0x561a['qAruZR'][_0x42b542]=_0x561a29):_0x561a29=_0x2cb633,_0x561a29;}function toSupportedSchema(_0x391f86){const _0x48fa44={_0x9845d:0x3d4,_0x5ca0a0:0x409,_0x48e6bb:0x318,_0x162596:0x29c,_0x203421:0x180,_0x3fcb76:0x5d5,_0x38151b:0x5cb,_0x610b53:0x49c,_0x118d2a:0x471,_0x51441a:0x57c,_0x4a8ea0:0x49c,_0x1d4366:0x320,_0x229d52:0x321,_0x1cde4b:0x3b3,_0x54f899:0x22a,_0xf37002:0x2ba,_0x2b8d6d:0x335,_0xed51ef:0x302,_0x61b718:0x2f7,_0xeb1264:0x330,_0x325583:0x4b3,_0xb9213d:0x40a,_0x481a9c:0x50f,_0x2c5c1c:0x3e5,_0x3eb301:0x3d6,_0x3f4896:0x412,_0x1e2411:0x49c,_0x5a0ebd:0x460,_0x46238e:0x34b},_0x4e72d3={_0xd2d7ef:0x4b},_0x42f968={_0x198f97:0xef};if(!isObject(_0x391f86))return void 0x0;if(_0x391f86['type']===_0x2526d6(_0x48fa44._0x9845d,_0x48fa44._0x5ca0a0,_0x48fa44._0x48e6bb,0x3d6))return{'type':_0x342b13(0x247,_0x48fa44._0x162596,0x1a1,_0x48fa44._0x203421)};if(_0x391f86[_0x2526d6(_0x48fa44._0x3fcb76,_0x48fa44._0x38151b,0x41f,_0x48fa44._0x610b53)]==='number'||_0x391f86[_0x2526d6(0x48f,_0x48fa44._0x118d2a,_0x48fa44._0x51441a,_0x48fa44._0x4a8ea0)]==='integer')return{'type':_0x342b13(_0x48fa44._0x1d4366,_0x48fa44._0x229d52,_0x48fa44._0x1cde4b,_0x48fa44._0x54f899)};if(_0x391f86[_0x342b13(_0x48fa44._0xf37002,0x362,0x399,_0x48fa44._0x2b8d6d)]===_0x2526d6(0x50e,0x37a,0x34f,0x431))return{'type':_0x342b13(_0x48fa44._0xed51ef,_0x48fa44._0x61b718,0x1e7,0x1fc)};if(_0x391f86[_0x342b13(0x33a,0x362,0x373,_0x48fa44._0xeb1264)]==='array')return{'type':_0x2526d6(_0x48fa44._0x325583,_0x48fa44._0xb9213d,_0x48fa44._0x481a9c,0x3e9),'items':toSupportedSchema(_0x391f86[_0x2526d6(0x2c5,0x212,_0x48fa44._0x2c5c1c,0x333)])??{'type':_0x2526d6(0x380,0x330,0x487,_0x48fa44._0x3eb301)}};function _0x342b13(_0x4625d0,_0x6ac175,_0x52fd9b,_0x191949){return _0x2f0acf(_0x6ac175- -_0x42f968._0x198f97,_0x6ac175-0x17f,_0x191949,_0x191949-0xaf);}function _0x2526d6(_0x3596ae,_0x12ac9d,_0x38fbb3,_0x22166e){return _0x2f0acf(_0x22166e-_0x4e72d3._0xd2d7ef,_0x12ac9d-0x8c,_0x38fbb3,_0x22166e-0x13c);}if(_0x391f86[_0x2526d6(_0x48fa44._0x3f4896,0x53c,0x458,_0x48fa44._0x1e2411)]===_0x2526d6(0x344,_0x48fa44._0x5a0ebd,0x25c,_0x48fa44._0x46238e))return toNuvinToolSchema(_0x391f86);return void 0x0;}function toNuvinToolSchema(_0x414ba5){const _0x1e6dbd={_0x4028c6:0x6e1,_0x1c0d4c:0x860,_0x42d700:0x5e7,_0x182b06:0x492,_0x17a7c1:0x69c,_0x2828e9:0x26b,_0x3a9005:0x21e,_0xda0ee8:0x43e,_0x431d5a:0x4e0,_0x50dd39:0x57b,_0xf6699:0x583,_0x24979c:0x663,_0x1ee374:0xbc,_0x249775:0x7,_0x4ff201:0x1dd,_0x522cd3:0x190,_0x3f1195:0x21b},_0x1a6432={_0x270d3f:0x2d1,_0x5a3379:0x1d},_0x5d9745={_0x459ac8:0x47a};if(!isObject(_0x414ba5)||_0x414ba5[_0x489fbd(_0x1e6dbd._0x4028c6,_0x1e6dbd._0x1c0d4c,0x722,_0x1e6dbd._0x42d700)]!==_0x489fbd(_0x1e6dbd._0x182b06,_0x1e6dbd._0x17a7c1,0x5d1,0x586))return{'type':'object','properties':{}};const _0x4b086e={},_0xcd513b=isObject(_0x414ba5[_0x1f178b(-_0x1e6dbd._0x2828e9,-0x13a,-_0x1e6dbd._0x3a9005,-0x399)])?_0x414ba5[_0x489fbd(0x3e5,_0x1e6dbd._0xda0ee8,_0x1e6dbd._0x431d5a,0x4e2)]:{};function _0x1f178b(_0x1f261e,_0x38bf1a,_0x2168d7,_0x436b18){return _0x2f0acf(_0x1f261e- -_0x5d9745._0x459ac8,_0x38bf1a-0x14f,_0x436b18,_0x436b18-0x94);}function _0x489fbd(_0x4caced,_0x56db8e,_0x276a3c,_0x4ed011){return _0x2f0acf(_0x276a3c-_0x1a6432._0x270d3f,_0x56db8e-0x1d4,_0x56db8e,_0x4ed011-_0x1a6432._0x5a3379);}for(const [_0x5cf994,_0x2cb4ab]of Object[_0x489fbd(_0x1e6dbd._0x50dd39,0x4db,_0x1e6dbd._0xf6699,_0x1e6dbd._0x24979c)](_0xcd513b)){const _0x41cde1=toSupportedSchema(_0x2cb4ab);if(_0x41cde1)_0x4b086e[_0x5cf994]=_0x41cde1;}const _0x5af235=Array[_0x1f178b(-_0x1e6dbd._0x1ee374,-0xd1,_0x1e6dbd._0x249775,-0x1e4)](_0x414ba5['required'])?_0x414ba5[_0x1f178b(-0xfe,-0x121,-0x11a,-0x22c)]['filter'](_0x4df182=>typeof _0x4df182===_0x489fbd(0x519,0x783,0x65c,0x53b)):void 0x0;return _0x5af235?.[_0x1f178b(-0x1b7,-_0x1e6dbd._0x4ff201,-0x177,-0x2b2)]?{'type':_0x1f178b(-0x17a,-_0x1e6dbd._0x522cd3,-0x104,-0xec),'properties':_0x4b086e,'required':_0x5af235}:{'type':_0x1f178b(-0x17a,-_0x1e6dbd._0x3f1195,-0xeb,-0x21e),'properties':_0x4b086e};}function isJsonObject(_0x466554){const _0x162197={_0x6936d8:0x4d8,_0x185aef:0x60c,_0x5b635b:0x5ff,_0x1a834a:0x55f},_0x205383={_0x38c83d:0x5f,_0x59e253:0xa4},_0x395d57={_0x4f6326:0xb9};function _0x5c95f1(_0x57b0f1,_0x966127,_0x533b81,_0x5b195b){return _0x4aa629(_0x57b0f1-0xc7,_0x5b195b,_0x533b81-_0x395d57._0x4f6326,_0x57b0f1-0x58b);}function _0x11fde5(_0x6b618d,_0x23177d,_0x8fd810,_0x4171d5){return _0x4aa629(_0x6b618d-_0x205383._0x38c83d,_0x8fd810,_0x8fd810-_0x205383._0x59e253,_0x4171d5-0x4d6);}return typeof _0x466554===_0x11fde5(0x454,0x594,_0x162197._0x6936d8,0x499)&&_0x466554!==null&&!Array[_0x5c95f1(_0x162197._0x185aef,0x5f3,_0x162197._0x5b635b,_0x162197._0x1a834a)](_0x466554);}function formatMcpContent(_0x50469e){const _0xf0c6b5={_0x34b6f2:0x313,_0x118038:0x15d,_0x521e3f:0x240,_0x4d9245:0x1a3,_0x21afd0:0x1b2,_0x149e53:0x188,_0x634540:0x3b0,_0x3dcf60:0x296,_0xdb09f4:0x24f,_0x75f5eb:0x445,_0x28b8fc:0x52a},_0xbdedfa={_0x49b688:0x1f1,_0x5c0f52:0x22d,_0x181f37:0x2e8,_0x100016:0x2a8,_0x597a15:0x1e2,_0x4b36e4:0x2a7,_0x1e42b0:0x1af,_0x1f1177:0x315,_0x3fbcdf:0x220,_0x58c14c:0x18c},_0x1d1d1a={_0x38167f:0xce},_0x3c1183={_0x4e42ec:0x7f},_0x5429c7={_0x57f733:0xf7,_0x266d9e:0x3};function _0x293459(_0x370cc3,_0x6d517,_0x18598b,_0x361468){return _0x4aa629(_0x370cc3-_0x5429c7._0x57f733,_0x18598b,_0x18598b-_0x5429c7._0x266d9e,_0x370cc3-0x4bf);}const _0x5dd673=Array[_0x1521e4(0x289,0x30a,0x21e,0x10b)](_0x50469e[_0x1521e4(_0xf0c6b5._0x34b6f2,_0xf0c6b5._0x118038,_0xf0c6b5._0x521e3f,_0xf0c6b5._0x4d9245)])?_0x50469e[_0x1521e4(_0xf0c6b5._0x21afd0,_0xf0c6b5._0x149e53,_0xf0c6b5._0x521e3f,0x2fc)]:[];function _0x1521e4(_0x119d94,_0x26b30f,_0x3f857a,_0x272d7c){return _0x4aa629(_0x119d94-_0x3c1183._0x4e42ec,_0x272d7c,_0x3f857a-0x8b,_0x3f857a-0x19d);}const _0x43fa9b=_0x5dd673[_0x293459(_0xf0c6b5._0x634540,0x345,_0xf0c6b5._0x3dcf60,0x42b)](_0x5348ad=>{const _0x5b0eef={_0x271530:0x18b};if(!isObject(_0x5348ad))return'';function _0x1906e9(_0xb630d2,_0x2793bb,_0x2336f2,_0x475c13){return _0x1521e4(_0xb630d2-_0x5b0eef._0x271530,_0x2793bb-0x1ee,_0x2336f2-0xbc,_0xb630d2);}function _0x8078c9(_0x468441,_0x21b2ec,_0x25ef95,_0x504771){return _0x293459(_0x25ef95-_0x1d1d1a._0x38167f,_0x21b2ec-0x7a,_0x468441,_0x504771-0xdb);}if(_0x5348ad['type']===_0x1906e9(0x255,0x228,_0xbdedfa._0x49b688,_0xbdedfa._0x5c0f52)&&typeof _0x5348ad[_0x1906e9(_0xbdedfa._0x181f37,0x32d,_0xbdedfa._0x49b688,0x240)]===_0x1906e9(_0xbdedfa._0x100016,_0xbdedfa._0x597a15,_0xbdedfa._0x4b36e4,_0xbdedfa._0x1e42b0))return _0x5348ad['text'];return JSON[_0x1906e9(_0xbdedfa._0x1f1177,0x1eb,_0xbdedfa._0x3fbcdf,_0xbdedfa._0x58c14c)](_0x5348ad);})['filter'](_0x556df3=>_0x556df3[_0x293459(0x445,0x3e5,0x55b,0x419)]>0x0)[_0x1521e4(0x220,_0xf0c6b5._0xdb09f4,0x129,0x1bb)]('\x0a');if(_0x43fa9b[_0x293459(_0xf0c6b5._0x75f5eb,_0xf0c6b5._0x28b8fc,0x4ad,0x39e)]>0x0)return _0x43fa9b;return JSON['stringify'](_0x50469e,null,0x2);}function createMcpTool(_0xc3d72a){const _0x5ae8e5={_0x437604:0x59c,_0x48649d:0x452,_0x57dce6:0x480,_0x4877fc:0x42c,_0xef8fdb:0x699,_0x304f9a:0x63d,_0x4ba1b7:0x5db,_0x449340:0x37e,_0xea9eaf:0x3ce,_0x268f9b:0x3bc,_0x256a9a:0x43a,_0x399c38:0x45e,_0x40eeca:0x47d,_0x23bfac:0x475,_0x31b8a9:0x369,_0x450544:0x475,_0x3f00e7:0x28c,_0x24c45f:0x594,_0x4ec520:0x5d0,_0x53ddf8:0x5d5,_0x41b127:0x564,_0x459979:0x572},_0x2553b3={_0x2880ef:0x1e8,_0xca751c:0x3c5,_0x53a6e0:0x287,_0x1505f7:0x2f9,_0x3f8aa5:0x38e,_0x13c554:0x3ea,_0x2b6b1a:0x340,_0x3a47f5:0x426,_0x4b77f3:0x4c7,_0x32deff:0x500,_0x54b012:0x551,_0x245a3f:0x5fa,_0xf29a22:0x476,_0x4d9f52:0x41b,_0x1c0e2d:0x3cb,_0x46df55:0x336},_0x3efda6={_0x29e497:0x106,_0x3a91a2:0x104},_0x1242b9=createMcpToolName(_0xc3d72a['serverName'],_0xc3d72a[_0x33a31d(0x5c4,0x572,0x504,_0x5ae8e5._0x437604)][_0x25434d(_0x5ae8e5._0x48649d,_0x5ae8e5._0x57dce6,_0x5ae8e5._0x4877fc,0x40f)]);function _0x33a31d(_0x11afa3,_0x505dcc,_0x41be11,_0x5ac138){return _0x4aa629(_0x11afa3-0x1e9,_0x5ac138,_0x41be11-0xb1,_0x505dcc-0x5b7);}function _0x25434d(_0x58d606,_0x70d685,_0x140f16,_0x5667af){return _0x2f0acf(_0x58d606-_0x3efda6._0x29e497,_0x70d685-_0x3efda6._0x3a91a2,_0x5667af,_0x5667af-0x11);}return defineTool({'name':_0x1242b9,'description':_0xc3d72a[_0x33a31d(_0x5ae8e5._0xef8fdb,0x572,_0x5ae8e5._0x304f9a,_0x5ae8e5._0x4ba1b7)][_0x25434d(0x319,_0x5ae8e5._0x449340,0x23b,_0x5ae8e5._0xea9eaf)]??_0x25434d(_0x5ae8e5._0x268f9b,_0x5ae8e5._0x256a9a,_0x5ae8e5._0x399c38,_0x5ae8e5._0x40eeca)+_0xc3d72a[_0x33a31d(0x666,0x572,0x5bd,_0x5ae8e5._0x23bfac)]['name']+_0x25434d(_0x5ae8e5._0x31b8a9,_0x5ae8e5._0x450544,0x412,_0x5ae8e5._0x3f00e7)+_0xc3d72a[_0x33a31d(_0x5ae8e5._0x24c45f,_0x5ae8e5._0x4ec520,0x509,_0x5ae8e5._0x53ddf8)],'inputSchema':toNuvinToolSchema(_0xc3d72a[_0x33a31d(_0x5ae8e5._0x41b127,_0x5ae8e5._0x459979,0x4d7,0x5a6)]['inputSchema']),async *'execute'(_0x522eac){const _0x4d31cc={_0x116a11:0xc9,_0x3995f6:0x84};function _0x30030e(_0x413ef4,_0x366bfc,_0x13a49c,_0x3e47e5){return _0x25434d(_0x13a49c- -0x11c,_0x366bfc-0x1a4,_0x13a49c-0xcd,_0x366bfc);}function _0x4e4754(_0xf6bbf1,_0x4ccee3,_0x5e7cd9,_0x4d42b6){return _0x25434d(_0xf6bbf1-_0x4d31cc._0x116a11,_0x4ccee3-_0x4d31cc._0x3995f6,_0x5e7cd9-0x16b,_0x4d42b6);}const _0x2d8492=await _0xc3d72a[_0x30030e(_0x2553b3._0x2880ef,_0x2553b3._0xca751c,_0x2553b3._0x53a6e0,0x240)]['callTool']({'name':_0xc3d72a['tool'][_0x30030e(_0x2553b3._0x1505f7,_0x2553b3._0x3f8aa5,0x336,_0x2553b3._0x13c554)],'arguments':isJsonObject(_0x522eac)?_0x522eac:{}});if(_0x2d8492['isError'])throw new ToolExecutionError(formatMcpContent(_0x2d8492),{'serverName':_0xc3d72a[_0x30030e(0x40e,0x218,_0x2553b3._0x2b6b1a,_0x2553b3._0x3a47f5)],'toolName':_0xc3d72a[_0x4e4754(_0x2553b3._0x4b77f3,_0x2553b3._0x32deff,_0x2553b3._0x54b012,_0x2553b3._0x245a3f)][_0x4e4754(0x51b,_0x2553b3._0xf29a22,_0x2553b3._0x4d9f52,0x624)]});return yield createToolOutput(formatMcpContent(_0x2d8492),{'serverName':_0xc3d72a['serverName'],'toolName':_0xc3d72a['tool'][_0x30030e(_0x2553b3._0x1c0e2d,0x413,_0x2553b3._0x46df55,0x447)],'result':_0x2d8492}),void 0x0;}});}function resolvePrefix(_0x2c3503,_0x42eab6){const _0x45a6c0={_0x145847:0x545,_0x440423:0x516,_0x7ae575:0x4a1},_0x192fb0={_0xdb5e72:0x2cd};function _0x83c17c(_0x3c7db9,_0x19db0e,_0x5bd89b,_0x1e24dd){return _0x2f0acf(_0x19db0e-_0x192fb0._0xdb5e72,_0x19db0e-0x166,_0x3c7db9,_0x1e24dd-0x10e);}return _0x42eab6[_0x83c17c(_0x45a6c0._0x145847,_0x45a6c0._0x440423,_0x45a6c0._0x7ae575,0x490)]??_0x2c3503;}function buildMcpHttpHeaders(_0x2dd2dd){const _0xf8d501={_0x3a8b68:0x685,_0x2fdf94:0x5f9,_0x17680a:0x4c8,_0x5a64f1:0x4db,_0x18d0ee:0x22c,_0x1ed4ed:0x17e,_0x6fcb2:0x31a,_0x5cf5ef:0x799,_0x3fbc72:0x71f,_0x32ef9d:0x6e3,_0x533b73:0x1d3,_0xd87313:0x118,_0x2b143b:0x285,_0x27303e:0x21f,_0x1f3bd5:0x171,_0x578f01:0x47f,_0x2a816a:0x535},_0x355b43={_0x355ec9:0x6c},_0x20419e={_0x280767:0x118};function _0x48a0f0(_0x40ab70,_0x40afd3,_0x1d5753,_0x2208c2){return _0x4aa629(_0x40ab70-0x147,_0x40ab70,_0x1d5753-0x111,_0x40afd3-_0x20419e._0x280767);}function _0x452554(_0x4a9646,_0x56817e,_0x33ea3d,_0x31eb71){return _0x2f0acf(_0x31eb71-0x289,_0x56817e-_0x355b43._0x355ec9,_0x33ea3d,_0x31eb71-0x1eb);}const _0x28c8a5={..._0x2dd2dd[_0x452554(0x6ac,0x56e,0x70d,_0xf8d501._0x3a8b68)]??{}};return _0x2dd2dd[_0x452554(_0xf8d501._0x2fdf94,_0xf8d501._0x17680a,0x420,_0xf8d501._0x5a64f1)]?.[_0x48a0f0(0x1b7,_0xf8d501._0x18d0ee,_0xf8d501._0x1ed4ed,_0xf8d501._0x6fcb2)]===_0x452554(0x828,_0xf8d501._0x5cf5ef,_0xf8d501._0x3fbc72,_0xf8d501._0x32ef9d)&&_0x2dd2dd['auth'][_0x48a0f0(_0xf8d501._0x533b73,_0xf8d501._0xd87313,0xab,0x154)]&&_0x28c8a5['Authorization']===void 0x0&&(_0x28c8a5['Authorization']=_0x452554(0x46f,0x5ec,0x39d,0x4cc)+_0x2dd2dd['auth']['token']),Object[_0x48a0f0(_0xf8d501._0x2b143b,_0xf8d501._0x27303e,0x22d,_0xf8d501._0x1f3bd5)](_0x28c8a5)[_0x452554(0x467,_0xf8d501._0x578f01,_0xf8d501._0x2a816a,0x54c)]>0x0?_0x28c8a5:void 0x0;}function getErrorMessage(_0x2de815){return _0x2de815 instanceof Error?_0x2de815['message']:String(_0x2de815);}function isUnauthorizedError(_0x461700){const _0x31ab1d={_0x2928da:0x335,_0x1ca4fb:0x19a,_0xe3459e:0x23a,_0x3b098d:0x373},_0x1f124c={_0x48b2e4:0x150,_0x1ec70f:0x3a},_0x1967ff={_0x46f295:0xcf,_0x44f9c9:0xb9};function _0x1655d2(_0x259b13,_0x479efb,_0x58baf5,_0x4a1819){return _0x4aa629(_0x259b13-_0x1967ff._0x46f295,_0x479efb,_0x58baf5-_0x1967ff._0x44f9c9,_0x259b13-0x4ae);}function _0x449a8c(_0xca5467,_0x2822f8,_0x5aac7c,_0x42a275){return _0x2f0acf(_0xca5467- -_0x1f124c._0x48b2e4,_0x2822f8-0x14f,_0x2822f8,_0x42a275-_0x1f124c._0x1ec70f);}return _0x461700 instanceof Error&&_0x461700['constructor'][_0x449a8c(0x1fc,_0x31ab1d._0x2928da,0x2f1,_0x31ab1d._0x1ca4fb)]===_0x449a8c(_0x31ab1d._0xe3459e,_0x31ab1d._0x3b098d,0x2df,0x141);}async function connectMcpServer(_0x5c0dc2,_0x3d0dde,_0x199d62){const _0x5ad1b9={_0x2e2c69:0x62,_0x55ed7f:0x71,_0x1a1162:0x38,_0x28b73c:0x3cd,_0x164a9b:0x541,_0x422ccf:0x22d,_0xad38de:0x1ab,_0x39b53f:0x378,_0x4cbe44:0x584,_0x372ad8:0x2b3,_0x25c59f:0x35d,_0x367369:0x400,_0x231801:0x2b3,_0x2addb4:0x3da,_0x11eb23:0x4d0,_0x138641:0x280,_0x430772:0x1b0,_0x2e5689:0x1e9,_0x5c4494:0x16a,_0x4c9fa9:0x23e,_0x402a9d:0x2a3,_0x46a999:0x4da,_0x5e4548:0x61c,_0x2cd819:0x516,_0x4605f9:0x518,_0x52393a:0x42d,_0x38ecd3:0xfd,_0x1f459e:0x9e,_0x43cead:0xfd,_0x5a99aa:0x5e,_0x15ad69:0xca,_0x1f56a6:0x526,_0x2eb743:0xe5,_0x5376b3:0x81,_0x3dbfb3:0x76,_0x5f49d1:0x216,_0xdfb61f:0x175,_0x4e769e:0x267,_0x1a2378:0x2b8,_0x59cb68:0x1a5,_0x15885c:0x254,_0x39ce03:0x196,_0x3a83f7:0xc6,_0x2d2a62:0x637,_0x112e78:0x62c,_0x590a53:0x503,_0x281245:0x1ff,_0x396e21:0x361,_0x455c64:0x56b,_0x10dba4:0x5fe},_0xe699fe={_0x51f330:0x3e3,_0xf75078:0x47f,_0xb9ccd:0x3b5,_0x18078d:0xb8,_0x50f8f8:0x6},_0x46121d={_0x5d90ce:0x502,_0x5d19f5:0xf8},_0x2f79b9={_0x534f59:0x5de,_0x3c92a3:0x722},_0x5e594a={_0x35443a:0x81,_0x59e057:0x1d9},_0x3b3493={_0x390d37:0x1c5,_0x42bb5a:0x16c},_0x2adbae={_0x10e493:0x18a};function _0xb9250e(_0x77904f,_0xb889b6,_0x1b1327,_0x587d2b){return _0x4aa629(_0x77904f-_0x2adbae._0x10e493,_0xb889b6,_0x1b1327-0x134,_0x1b1327-0x4ca);}const _0xa4f944=new Client({'name':_0xcdfc0b(_0x5ad1b9._0x2e2c69,-_0x5ad1b9._0x55ed7f,_0x5ad1b9._0x1a1162,0xe4),'version':_0xb9250e(0x449,_0x5ad1b9._0x28b73c,0x4ab,_0x5ad1b9._0x164a9b)});if(_0x3d0dde[_0xcdfc0b(_0x5ad1b9._0x422ccf,0x1a2,0x24e,_0x5ad1b9._0xad38de)]===_0xb9250e(0x267,0x401,_0x5ad1b9._0x39b53f,0x413)||_0x3d0dde[_0xb9250e(0x39a,_0x5ad1b9._0x4cbe44,0x43d,0x4a2)]){if(!_0x3d0dde['url'])throw new Error(_0xb9250e(_0x5ad1b9._0x372ad8,0x250,_0x5ad1b9._0x25c59f,_0x5ad1b9._0x367369)+_0x5c0dc2+_0xb9250e(0x490,_0x5ad1b9._0x231801,_0x5ad1b9._0x2addb4,_0x5ad1b9._0x11eb23));if(_0x3d0dde['auth']?.[_0xcdfc0b(0x1fb,0x298,_0x5ad1b9._0x138641,0x36b)]===_0xcdfc0b(0x236,0x16c,0xfd,0x5f)&&!_0x199d62?.[_0xcdfc0b(_0x5ad1b9._0x430772,_0x5ad1b9._0x2e5689,0xfd,_0x5ad1b9._0x5c4494)])throw new Error(_0xb9250e(_0x5ad1b9._0x4c9fa9,_0x5ad1b9._0x402a9d,0x35d,0x3b2)+_0x5c0dc2+_0xcdfc0b(0x163,0x11d,0x49,-0x2));const _0x4f9a95=buildMcpHttpHeaders(_0x3d0dde),_0x3c3fd2=_0x3d0dde[_0xb9250e(0x383,_0x5ad1b9._0x46a999,0x3df,0x344)]?.[_0xb9250e(_0x5ad1b9._0x5e4548,_0x5ad1b9._0x2cd819,0x5de,0x666)]===_0xb9250e(0x48d,_0x5ad1b9._0x4605f9,0x45b,_0x5ad1b9._0x52393a)&&_0x199d62?.[_0xcdfc0b(0xe4,0x228,_0x5ad1b9._0x38ecd3,_0x5ad1b9._0x1f459e)]?createMcpOAuthProvider({'serverName':_0x5c0dc2,'callbackUrl':_0x199d62[_0xcdfc0b(0xc0,0x111,_0x5ad1b9._0x43cead,0x33)]['callbackUrl'],'storageDir':_0x199d62[_0xcdfc0b(_0x5ad1b9._0x5a99aa,0x189,0xfd,_0x5ad1b9._0x15ad69)][_0xb9250e(0x530,_0x5ad1b9._0x1f56a6,0x4c0,0x5d4)],'config':_0x3d0dde[_0xcdfc0b(0xd2,_0x5ad1b9._0x2eb743,_0x5ad1b9._0x5376b3,-_0x5ad1b9._0x3dbfb3)],'onRedirect':_0x49449e=>_0x199d62[_0xb9250e(0x38a,0x326,0x45b,0x378)]?.[_0xcdfc0b(0x18a,0x18d,0x21a,0xf3)](_0x5c0dc2,_0x49449e)}):void 0x0,_0x28a0f5=new StreamableHTTPClientTransport(new URL(_0x3d0dde['url']),{'authProvider':_0x3c3fd2,'requestInit':_0x4f9a95?{'headers':_0x4f9a95}:void 0x0});await _0xa4f944[_0xcdfc0b(0x11d,_0x5ad1b9._0x5f49d1,_0x5ad1b9._0xdfb61f,_0x5ad1b9._0x4e769e)](_0x28a0f5);}else{if(!_0x3d0dde[_0xcdfc0b(_0x5ad1b9._0x1a2378,0x226,_0x5ad1b9._0x59cb68,_0x5ad1b9._0x15885c)])throw new Error('MCP\x20server\x20'+_0x5c0dc2+_0xcdfc0b(0x12f,0x1a8,_0x5ad1b9._0x39ce03,_0x5ad1b9._0x3a83f7));const _0x5ebfd3=new StdioClientTransport({'command':_0x3d0dde[_0xb9250e(_0x5ad1b9._0x2d2a62,_0x5ad1b9._0x112e78,_0x5ad1b9._0x590a53,0x5b6)],'args':_0x3d0dde[_0xcdfc0b(_0x5ad1b9._0x281245,_0x5ad1b9._0x396e21,0x225,0x15b)]??[],'env':_0x3d0dde['env']});await _0xa4f944[_0xb9250e(0x587,_0x5ad1b9._0x455c64,0x4d3,_0x5ad1b9._0x10dba4)](_0x5ebfd3);}function _0xcdfc0b(_0x1cd52e,_0x9c807d,_0x15bc42,_0x2c4037){return _0x4aa629(_0x1cd52e-0x1ec,_0x1cd52e,_0x15bc42-_0x3b3493._0x390d37,_0x15bc42-_0x3b3493._0x42bb5a);}return{async 'listTools'(){function _0x360d0f(_0x2231d4,_0x41cd7a,_0x5b39b7,_0x1acc11){return _0xb9250e(_0x2231d4-_0x5e594a._0x35443a,_0x41cd7a,_0x1acc11-0x166,_0x1acc11-_0x5e594a._0x59e057);}return await _0xa4f944[_0x360d0f(0x59c,_0x2f79b9._0x534f59,_0x2f79b9._0x3c92a3,0x6a3)]();},async 'callTool'(_0x582453){const _0x41be47={_0x1e307f:0x6a,_0x1558db:0x19e};function _0xf74116(_0x6420ff,_0x42d663,_0x27eb7e,_0x707510){return _0xb9250e(_0x6420ff-_0x41be47._0x1e307f,_0x707510,_0x27eb7e- -0x142,_0x707510-_0x41be47._0x1558db);}function _0x27f541(_0x1b4f2f,_0x13b72f,_0x25bead,_0x82c7da){return _0xb9250e(_0x1b4f2f-0x13d,_0x1b4f2f,_0x13b72f- -_0x46121d._0x5d90ce,_0x82c7da-_0x46121d._0x5d19f5);}return await _0xa4f944[_0xf74116(_0xe699fe._0x51f330,0x581,_0xe699fe._0xf75078,_0xe699fe._0xb9ccd)]({'method':_0x27f541(-0x41,-_0xe699fe._0x18078d,-0x4e,_0xe699fe._0x50f8f8),'params':_0x582453},CallToolResultSchema);},async 'close'(){const _0x232fad={_0x92c452:0x1e3,_0x149a63:0x257,_0x4d1d1d:0xaa};function _0x47fa44(_0x2c7f4b,_0x4568b0,_0x1a9042,_0x46d87a){return _0xcdfc0b(_0x46d87a,_0x4568b0-_0x232fad._0x92c452,_0x4568b0-_0x232fad._0x149a63,_0x46d87a-_0x232fad._0x4d1d1d);}await _0xa4f944[_0x47fa44(0x39a,0x383,0x2e1,0x3f8)]();}};}async function createMcpToolsFromServers(_0x47b7bb){const _0x3caf0c={_0x236e2d:0x135,_0x27fc7b:0x31,_0x4fed95:0x9,_0x4bfe01:0x11,_0x5ab0be:0x1a,_0x386398:0x54,_0x51ec51:0x91,_0x5b588c:0x2d9,_0x2d5f61:0x203,_0x320ecd:0x1a5,_0x448978:0xc1,_0x58c040:0xfe,_0x223a4d:0x186,_0x363fd2:0x1f,_0x574723:0x7f,_0x5e65de:0xe9,_0x5902dd:0x8a,_0x4c65f7:0x20,_0x137aea:0xb,_0x2b0144:0x21,_0xb676df:0x18,_0x4cb088:0x1f8,_0x43b8e:0x1b},_0x52c81b={_0xe4d72b:0x50e,_0x2e3b49:0x474,_0x391ec6:0x3cf},_0x15ca97={_0x3aef25:0x50d},_0x3b4eb6={_0x15436d:0x88,_0x3af66d:0xd2,_0x2e9847:0xaa},_0x26b185={_0x562312:0x121},_0x1b0fd2=_0x47b7bb[_0x3db7c2(-0x26,-0x35,-0xf8,0xc)]??connectMcpServer;function _0x3db7c2(_0x54e78b,_0x374b79,_0x450317,_0x1ee76e){return _0x4aa629(_0x54e78b-0x175,_0x1ee76e,_0x450317-_0x26b185._0x562312,_0x54e78b- -0x2f);}const _0x2798d9=[],_0x18812f={},_0x2223cd=[];function _0x31ae10(_0x117a3c,_0x16fbfd,_0x4cd375,_0x33d5d2){return _0x4aa629(_0x117a3c-_0x3b4eb6._0x15436d,_0x117a3c,_0x4cd375-_0x3b4eb6._0x3af66d,_0x16fbfd- -_0x3b4eb6._0x2e9847);}for(const [_0x5a68ac,_0x46795b]of Object[_0x31ae10(-0x255,-_0x3caf0c._0x236e2d,-_0x3caf0c._0x27fc7b,-0x1b9)](_0x47b7bb['servers']??{})){if(_0x46795b[_0x31ae10(-0x4,_0x3caf0c._0x4fed95,-_0x3caf0c._0x4bfe01,_0x3caf0c._0x5ab0be)]===![]){_0x18812f[_0x5a68ac]={'status':_0x3db7c2(-_0x3caf0c._0x386398,-_0x3caf0c._0x27fc7b,_0x3caf0c._0x51ec51,-0x35)};continue;}try{const _0x1e5e14=await _0x1b0fd2(_0x5a68ac,_0x46795b,_0x47b7bb[_0x31ae10(-_0x3caf0c._0x5b588c,-_0x3caf0c._0x2d5f61,-_0x3caf0c._0x320ecd,-_0x3caf0c._0x448978)]);_0x2798d9[_0x3db7c2(-_0x3caf0c._0x58c040,-0x15,-_0x3caf0c._0x223a4d,-0x13f)](_0x1e5e14);const _0xeb6376=await _0x1e5e14[_0x31ae10(_0x3caf0c._0x363fd2,-0x37,0x58,_0x3caf0c._0x574723)]();let _0x6fbc6=0x0;for(const _0x4e6eaa of _0xeb6376[_0x3db7c2(-_0x3caf0c._0x5e65de,-_0x3caf0c._0x5902dd,-0x11d,-0x10e)]){const _0x595add=_0x47b7bb['allowedTools']?.[_0x5a68ac]?.[_0x4e6eaa[_0x3db7c2(-_0x3caf0c._0x4c65f7,-0xd2,-0x1e,0x5)]];if(_0x595add===![])continue;_0x6fbc6+=0x1,_0x2223cd['push'](createMcpTool({'serverName':resolvePrefix(_0x5a68ac,_0x46795b),'tool':_0x4e6eaa,'client':_0x1e5e14}));}_0x18812f[_0x5a68ac]={'status':_0x3db7c2(_0x3caf0c._0x137aea,-0x96,_0x3caf0c._0x2b0144,0x12d),'toolCount':_0x6fbc6};}catch(_0xc0e71){_0x18812f[_0x5a68ac]=isUnauthorizedError(_0xc0e71)?{'status':_0x3db7c2(-0xb,-_0x3caf0c._0xb676df,-0xae,-_0x3caf0c._0x5902dd),'message':getErrorMessage(_0xc0e71)}:{'status':_0x3db7c2(-0x103,-0x184,-_0x3caf0c._0x4cb088,_0x3caf0c._0x43b8e),'message':getErrorMessage(_0xc0e71)};}}return{'tools':_0x2223cd,'servers':_0x18812f,async 'close'(){function _0x1a62dc(_0x28ac9d,_0x23c7bb,_0x3b5dbf,_0x3de617){return _0x3db7c2(_0x3de617-_0x15ca97._0x3aef25,_0x23c7bb-0xb2,_0x3b5dbf-0x10a,_0x3b5dbf);}await Promise['all'](_0x2798d9[_0x1a62dc(0x48d,_0x52c81b._0xe4d72b,_0x52c81b._0x2e3b49,_0x52c81b._0x391ec6)](_0x4869bc=>_0x4869bc['close']()));}};}function getCommand(_0xf58eca){const _0x76f1c7={_0x4cef7a:0x21d,_0x2906a7:0x147,_0x3d109d:0x27a,_0x193353:0x268},_0x2d7457={_0x212cb4:0xc4},_0x472fb8={_0x517b1f:0x90,_0x368e9e:0x19f};function _0x4e874d(_0x4b3eff,_0x5ab5ac,_0x332e15,_0x25367d){return _0x2f0acf(_0x4b3eff- -0x4bd,_0x5ab5ac-_0x472fb8._0x517b1f,_0x5ab5ac,_0x25367d-_0x472fb8._0x368e9e);}function _0x46c613(_0x3276b3,_0x5d286d,_0x586981,_0x19ee45){return _0x4aa629(_0x3276b3-_0x2d7457._0x212cb4,_0x586981,_0x586981-0x6c,_0x5d286d- -0xe3);}if(_0xf58eca&&typeof _0xf58eca==='object'&&!Array[_0x4e874d(-0xff,-0x11f,-0x110,-_0x76f1c7._0x4cef7a)](_0xf58eca)&&typeof _0xf58eca[_0x4e874d(-_0x76f1c7._0x2906a7,-0x34,-0x28a,-_0x76f1c7._0x3d109d)]===_0x4e874d(-0x132,-0x8c,-0x227,-_0x76f1c7._0x193353))return _0xf58eca['command'];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=['docs/plans/2026-04-16-agent-loop-core-design.md',_0x2f0acf(0x329,0x31a,0x394,0x348),_0x2f0acf(0x1f2,0x1b0,0x1fc,0x2e0),_0x4aa629(0x4e,-0x195,-0x1e3,-0xcc),_0x2f0acf(0x33c,0x2b3,0x24a,0x27c),_0x2f0acf(0x28b,0x3ce,0x3aa,0x1f8),_0x4aa629(-0x6f,0xde,-0x28,-0x9),_0x2f0acf(0x44c,0x454,0x4da,0x590),'src/models/mock-model.ts',_0x2f0acf(0x26d,0x211,0x145,0x235),_0x4aa629(-0xae,-0x86,-0x2c,-0x12d),'src/agent/turn-engine.ts',_0x2f0acf(0x3ab,0x43c,0x43c,0x2bc),_0x2f0acf(0x31a,0x22a,0x3b3,0x373),_0x2f0acf(0x255,0x11f,0x38c,0x13d),_0x4aa629(-0x2,-0x53,0x39,0x27),_0x4aa629(-0x165,0x77,-0x1c7,-0x92)][_0x2f0acf(0x2c9,0x2a7,0x367,0x2db)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x2f0acf(0x219,0x31a,0x2f6,0x2fb),'description':_0x4aa629(-0x12e,-0x122,-0xbc,-0x113),'input_schema':{'type':_0x2f0acf(0x300,0x2cb,0x23f,0x2ca),'properties':{'command':{'type':'string'}},'required':[_0x2f0acf(0x376,0x30f,0x2b6,0x3e7)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x347acc){return{'output':_0x347acc,'structured':{'value':_0x347acc}};}function createUnknownToolResult(_0x661a18){const _0x1376de={_0x264a04:0x1d4,_0x5bff70:0x185,_0x4e2d42:0x2b4,_0x7704a2:0x2d5,_0x35ca91:0x3a5,_0x295819:0x120,_0xb6416e:0x242,_0x4bd278:0x197},_0x10a823={_0x289f2d:0x158,_0x5efeae:0x10c};function _0x3f6a79(_0x3acb41,_0x4c6631,_0xa557a0,_0xb09e1){return _0x2f0acf(_0x3acb41- -0x22c,_0x4c6631-0x71,_0x4c6631,_0xb09e1-0xe9);}function _0x20678b(_0x139428,_0x2fd748,_0x5461c4,_0x158421){return _0x2f0acf(_0x2fd748- -_0x10a823._0x289f2d,_0x2fd748-_0x10a823._0x5efeae,_0x5461c4,_0x158421-0x2e);}return{'callId':_0x661a18['id'],'toolName':_0x661a18[_0x20678b(0x21e,0x1f4,_0x1376de._0x264a04,0x120)],'status':_0x3f6a79(0x3d,0x6b,-0xa,0x168),'output':_0x20678b(_0x1376de._0x5bff70,_0x1376de._0x4e2d42,_0x1376de._0x7704a2,_0x1376de._0x35ca91)+_0x661a18[_0x3f6a79(_0x1376de._0x295819,0x219,_0x1376de._0xb6416e,_0x1376de._0x4bd278)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0xdc3b1a,_0x3193bd){const _0xca7e72={_0x4d8e4e:0x3d,_0x1e1a08:0x2a0,_0x1f08fe:0x1b7},_0x5b6b26={_0x52d875:0x46},_0x42185d={_0xf5aed9:0x29c,_0x3ee09a:0x182,_0x56096:0x167};function _0x1ac088(_0x12c1b5,_0xe6f145,_0x106ad8,_0x1bc594){return _0x2f0acf(_0xe6f145- -_0x42185d._0xf5aed9,_0xe6f145-_0x42185d._0x3ee09a,_0x106ad8,_0x1bc594-_0x42185d._0x56096);}function _0x53e4fe(_0x438576,_0x503acd,_0x35742e,_0x398352){return _0x2f0acf(_0x398352-0x174,_0x503acd-0x145,_0x503acd,_0x398352-_0x5b6b26._0x52d875);}return{'callId':_0xdc3b1a['id'],'toolName':_0xdc3b1a[_0x1ac088(0x14d,0xb0,_0xca7e72._0x4d8e4e,0x81)],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0xdc3b1a[_0x1ac088(_0xca7e72._0x1e1a08,_0xca7e72._0x1f08fe,0x76,0x228)]),'exitCode':0x0},'chunks':[_0x3193bd],'meta':createMeta()};}function createMockToolRuntime(){const _0x4c10cd={_0x5ac5f0:0x11b},_0x4560cf={_0x2b6d99:0x31c},_0x3ef494={_0x43f63d:0x21f,_0x11d45a:0x2a0},_0x3868c5={_0x53ff2a:0x66},_0x4e7ad0=async(_0x4338c2,_0x3d8537)=>{function _0x459acb(_0x3a1f1a,_0x4c5b4c,_0x1ef721,_0x50dc71){return _0x561a(_0x1ef721-_0x3868c5._0x53ff2a,_0x50dc71);}if(_0x4338c2['name']!==_0x459acb(_0x3ef494._0x43f63d,_0x3ef494._0x11d45a,0x194,0x15d))return createUnknownToolResult(_0x4338c2);const _0x295d87=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x4338c2,_0x295d87);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x4868e3,_0x13ff01){function _0x373eb9(_0x191931,_0x59f2ff,_0xd5809d,_0x2ea3b1){return _0x561a(_0xd5809d- -_0x4560cf._0x2b6d99,_0x191931);}return await Promise[_0x373eb9(-_0x4c10cd._0x5ac5f0,-0x250,-0x1cb,-0x17d)](_0x4868e3['map'](async _0x4fc22f=>{return await _0x4e7ad0(_0x4fc22f,_0x13ff01);}));},async 'execute'(_0x1cf507,_0x2e2366){return await _0x4e7ad0(_0x1cf507,_0x2e2366);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0xab5a0a,_0x3911a9){const _0xea5abf={_0x4544f7:0x45,_0x5a3f19:0x1b,_0xd05f99:0x49},_0x1d9b7c={_0x39d946:0x2d6};function _0x29532f(_0x3c6d98,_0x235a8e,_0x16ce74,_0x1c7f7e){return _0x2f0acf(_0x1c7f7e- -_0x1d9b7c._0x39d946,_0x235a8e-0x65,_0x3c6d98,_0x1c7f7e-0xa0);}return typeof _0xab5a0a===_0x29532f(_0xea5abf._0x4544f7,_0xea5abf._0x5a3f19,_0xea5abf._0xd05f99,0x17)?await _0xab5a0a(_0x3911a9):_0xab5a0a;}function getDelegatedAgentDefinition(_0x3fd96e,_0xe495c5){const _0x213630={_0x401ecc:0x174},_0x5899a4={_0x3fc5d9:0xe5};function _0x46fe0c(_0x192b07,_0x14c623,_0x2d0ae4,_0x192893){return _0x4aa629(_0x192b07-0x1b3,_0x2d0ae4,_0x2d0ae4-0x18a,_0x14c623- -_0x5899a4._0x3fc5d9);}return _0x3fd96e[_0x46fe0c(-_0x213630._0x401ecc,-0x21f,-0x17d,-0x251)]?.[_0xe495c5];}function createRunSummary(_0x5b32d1){const _0x3cfc78={_0x282a0d:0x1b6,_0x2b27fd:0x26f,_0x644bd3:0x2e4,_0x791b27:0x1c7,_0x413acb:0x2ae,_0x255242:0x3bf,_0x1aec63:0x1c0,_0xe5249a:0x152,_0xfa8343:0x1d3,_0x53012b:0x1eb,_0x49fd19:0xea,_0x49e8e1:0x2af,_0x35fce5:0x1bc,_0x539385:0x390,_0x34e5f3:0x363,_0x3878c4:0x410,_0xc1a386:0x225,_0x50bce7:0x17b,_0x1485df:0x1a2,_0x19eda1:0x126,_0x5bc5e1:0x1dd,_0x4c5765:0x3b4,_0x47b6bc:0x368,_0x9881f2:0x324,_0x411af1:0x2b1},_0x425c7e={_0xd8301f:0x15c,_0x26299c:0x52},_0x1cf5a8={_0x5f26b9:0xa0,_0x39897d:0xb1,_0x435cf7:0x176};function _0x36bdaf(_0x4d5c59,_0x451db2,_0x3bd0de,_0x35c047){return _0x2f0acf(_0x35c047- -_0x1cf5a8._0x5f26b9,_0x451db2-_0x1cf5a8._0x39897d,_0x3bd0de,_0x35c047-_0x1cf5a8._0x435cf7);}function _0x33c51f(_0x303b10,_0x210ca3,_0x16bcf0,_0x26573a){return _0x4aa629(_0x303b10-_0x425c7e._0xd8301f,_0x303b10,_0x16bcf0-_0x425c7e._0x26299c,_0x16bcf0-0x296);}return{'runId':_0x5b32d1['runId'],'agentId':_0x5b32d1[_0x36bdaf(_0x3cfc78._0x282a0d,_0x3cfc78._0x2b27fd,_0x3cfc78._0x644bd3,0x224)],'sessionId':_0x5b32d1[_0x33c51f(_0x3cfc78._0x791b27,0x252,_0x3cfc78._0x413acb,0x398)],'status':_0x5b32d1[_0x33c51f(0x2f2,0x1e6,0x2b2,_0x3cfc78._0x255242)],'parentSessionId':_0x5b32d1[_0x36bdaf(0xe7,_0x3cfc78._0x1aec63,_0x3cfc78._0xe5249a,_0x3cfc78._0xfa8343)],..._0x5b32d1[_0x33c51f(0x2c6,0xfa,_0x3cfc78._0x53012b,0x227)]!==void 0x0?{'originToolCallId':_0x5b32d1[_0x33c51f(_0x3cfc78._0x49fd19,_0x3cfc78._0x49e8e1,0x1eb,_0x3cfc78._0x35fce5)]}:{},..._0x5b32d1[_0x33c51f(0x3bc,0x461,_0x3cfc78._0x539385,0x3d7)]!==void 0x0?{'errorMessage':_0x5b32d1[_0x36bdaf(0x302,0x43e,_0x3cfc78._0x34e5f3,0x397)]}:{},..._0x5b32d1[_0x33c51f(0x2ee,_0x3cfc78._0x3878c4,0x31d,_0x3cfc78._0xc1a386)]?.[_0x36bdaf(_0x3cfc78._0x50bce7,_0x3cfc78._0x1485df,_0x3cfc78._0x19eda1,_0x3cfc78._0x5bc5e1)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x5b32d1[_0x36bdaf(_0x3cfc78._0x4c5765,_0x3cfc78._0x47b6bc,0x466,_0x3cfc78._0x9881f2)][_0x36bdaf(0x2ad,_0x3cfc78._0x411af1,0x2aa,_0x3cfc78._0x5bc5e1)])}:{}};}function createRunSummaryOutput(_0xeeb7d1,_0x5f40aa){const _0x56708f={_0x1046cf:0x26a,_0x3194e5:0x34a},_0x45d8d7={_0x16c958:0x147};function _0xebfd6c(_0xc97ee9,_0x163a92,_0x1fe1f7,_0x32787a){return _0x2f0acf(_0x1fe1f7- -0x1b,_0x163a92-_0x45d8d7._0x16c958,_0x32787a,_0x32787a-0xaa);}const _0x4a8cd8=createRunSummary(_0xeeb7d1),_0xddd1aa=_0x4a8cd8['finalMessageText'];return createToolOutput(typeof _0xddd1aa==='string'&&_0xddd1aa[_0xebfd6c(_0x56708f._0x1046cf,0x3d7,0x2a8,_0x56708f._0x3194e5)]>0x0?_0xddd1aa:_0x5f40aa,_0x4a8cd8);}function getRunTerminalErrorMessage(_0x427144){const _0x3d4625={_0x246a7a:0x429,_0x28e9e3:0x506,_0x4f2462:0x167,_0x267d2f:0x40,_0x40571a:0x1cf,_0x543b26:0x368,_0x5807c1:0x34e,_0x520c4b:0x226,_0x3efac0:0x3de,_0x1a9a17:0xec},_0x3d754b={_0xe84fd1:0xff,_0x494745:0x192},_0x1f3e6f=_0x427144?.[_0x56380e(0x47c,_0x3d4625._0x246a7a,_0x3d4625._0x28e9e3,0x4ef)][_0x240ff8(0x139,_0x3d4625._0x4f2462,_0x3d4625._0x267d2f,-0x9b)]['at'](-0x1);if(_0x1f3e6f?.[_0x240ff8(0x8a,0x9d,0x1c3,_0x3d4625._0x40571a)]===_0x240ff8(0x10b,_0x3d4625._0x267d2f,0xd3,0x185)&&_0x1f3e6f[_0x56380e(_0x3d4625._0x543b26,_0x3d4625._0x5807c1,0x2be,0x484)][_0x56380e(0x2d5,_0x3d4625._0x520c4b,_0x3d4625._0x3efac0,0x322)]()['length']>0x0)return _0x1f3e6f[_0x240ff8(0x11a,0x12f,_0x3d4625._0x1a9a17,0x162)];function _0x56380e(_0x197d78,_0x54a2bd,_0xe33742,_0x55d633){return _0x4aa629(_0x197d78-0x124,_0x54a2bd,_0xe33742-0x99,_0x197d78-0x423);}function _0x240ff8(_0x1cf06c,_0x506568,_0x2a4b13,_0x1180f4){return _0x2f0acf(_0x2a4b13- -0x196,_0x506568-_0x3d754b._0xe84fd1,_0x1180f4,_0x1180f4-_0x3d754b._0x494745);}return void 0x0;}function formatAbortedRunMessage(_0x26a5d6,_0x5980ed){const _0x4296ea={_0x5bcafd:0x4b1,_0x37cead:0x197,_0x1ce1ac:0x1fb,_0x5f2af4:0x2de,_0x535876:0x3df,_0x195520:0x117},_0x334d99={_0x55fc2e:0x6b,_0x68a399:0x17e,_0x2be984:0xd3},_0x13e987={_0x73a4bd:0xc,_0x5b9faa:0x9d};function _0x839577(_0x536f5f,_0x16d073,_0x394b69,_0x22a9eb){return _0x2f0acf(_0x22a9eb- -_0x13e987._0x73a4bd,_0x16d073-_0x13e987._0x5b9faa,_0x536f5f,_0x22a9eb-0x77);}const _0x49b769=_0x839577(0x3c6,_0x4296ea._0x5bcafd,0x322,0x418)+_0x26a5d6+_0xdf8759(-0x1b2,-0x1d6,-0x188,-0x1b8);function _0xdf8759(_0x50e50c,_0x5f07a1,_0x531205,_0x2ffcb0){return _0x4aa629(_0x50e50c-_0x334d99._0x55fc2e,_0x2ffcb0,_0x531205-_0x334d99._0x68a399,_0x5f07a1- -_0x334d99._0x2be984);}if(!_0x5980ed||_0x5980ed[_0xdf8759(-0xe8,-0x221,-_0x4296ea._0x37cead,-0x1d1)]()[_0x839577(_0x4296ea._0x1ce1ac,_0x4296ea._0x5f2af4,_0x4296ea._0x535876,0x2b7)]===0x0||_0x5980ed===_0x49b769)return _0x49b769;return _0x49b769+_0xdf8759(-0xa5,-0x6,-_0x4296ea._0x195520,0xf8)+_0x5980ed;}function createAssignTaskTool(_0x5b1088){const _0x3b188f={_0x44b592:0x36d,_0x16ffe1:0x2e7,_0x13a1ad:0x12c,_0x5ea1da:0x22d,_0x2deaf7:0x6a8,_0x280eaa:0x538,_0x5f38cf:0x59f,_0x171299:0x339,_0x3501f0:0x4a8,_0x549cb4:0x5f2,_0x1d9432:0x2c0,_0x1f410e:0x3d7,_0x4780a5:0x5f9,_0x2561d4:0x5f2,_0x35ac87:0x1f1},_0x59a32d={_0x3ff4d5:0x600,_0x390120:0x5b4,_0x1bb464:0xf8,_0x3684f1:0x1fa,_0x2748da:0x114,_0x399ad1:0x229,_0x3918a6:0x5e2,_0x42810b:0x593,_0x5372fa:0x16b,_0x3503be:0xed,_0x577336:0x16b,_0x22cb1b:0x4e,_0x3235c5:0x1e0,_0xdc53dd:0x5b0,_0x58099b:0x552,_0x50516c:0x4cf,_0x396998:0x5eb,_0x5e48be:0x4c1,_0x14e8f4:0x692,_0x30b9c0:0x59f,_0x451f8f:0xf8,_0x2eff36:0x1a8,_0x4ceaab:0x4f,_0x62e237:0x10b,_0x241498:0x174,_0x4eb34e:0x27,_0x564422:0x1c3,_0x3c0f96:0x52d,_0x529dfe:0x5d1,_0x1b8f02:0x554,_0x46c005:0xd6,_0x519fe8:0x1ee,_0x246799:0x13b,_0x559830:0xf9,_0x291bcc:0x197,_0x377992:0x143,_0x29563a:0x24,_0x2b3464:0x133,_0x381269:0x13e,_0x3e3b8d:0x2f8,_0x242895:0x2f,_0x5d80c2:0x1e8,_0x349c40:0xee,_0x70024:0x2b,_0x5e81bc:0x130,_0x16c807:0x152,_0x291428:0x1e9,_0x2d145b:0x19e,_0x8e1010:0x45b,_0x21ad75:0x5d7,_0x40cfed:0x57,_0x1fa160:0x92,_0x284896:0xd5,_0x51ce44:0x588,_0x415361:0x6c8,_0x13a0f8:0x66f,_0x155228:0x77e,_0x2ac33d:0x589,_0x55a020:0x6cf,_0x33800b:0x63a,_0x4ed819:0x110,_0x4e30c7:0x325},_0x288245={_0x271466:0x412,_0xf67c56:0x254,_0x3748df:0x26f},_0x540526={_0x56874b:0x44},_0x327924={_0x3fd84c:0x60,_0x471d90:0xb0},_0x29ccc9={_0x3861da:0x1cd};function _0x415a1b(_0x11d537,_0x57d102,_0x110172,_0x4f13d6){return _0x4aa629(_0x11d537-_0x29ccc9._0x3861da,_0x57d102,_0x110172-0xd1,_0x4f13d6-0x31b);}function _0xa4360f(_0x1fe72b,_0x5e5f11,_0x58ee4c,_0x403c30){return _0x4aa629(_0x1fe72b-_0x327924._0x3fd84c,_0x403c30,_0x58ee4c-_0x327924._0x471d90,_0x58ee4c-0x5a4);}return defineTool({'name':_0x415a1b(_0x3b188f._0x44b592,_0x3b188f._0x16ffe1,0x306,0x3f7),'description':_0x415a1b(0x1d5,0x16b,_0x3b188f._0x13a1ad,_0x3b188f._0x5ea1da),'inputSchema':{'type':_0xa4360f(_0x3b188f._0x2deaf7,_0x3b188f._0x280eaa,0x567,_0x3b188f._0x5f38cf),'properties':{'agentId':{'type':_0x415a1b(_0x3b188f._0x171299,_0x3b188f._0x3501f0,0x3fe,0x369)},'description':{'type':_0xa4360f(0x594,0x5a0,_0x3b188f._0x549cb4,0x4ca)},'nickname':{'type':_0x415a1b(0x437,_0x3b188f._0x1d9432,_0x3b188f._0x1f410e,0x369)},'task':{'type':_0xa4360f(_0x3b188f._0x4780a5,0x623,_0x3b188f._0x2561d4,0x4e3)}},'required':['agentId',_0x415a1b(0x2d5,0x1a2,0x275,_0x3b188f._0x35ac87),'task']},async *'execute'(_0x2a2bac,_0x380a3a){const _0x37932a={_0x1d6bdb:0x1ed,_0x4469c8:0x150},_0x4f21ba={_0x296fc2:0x1a},_0x241f3f=createDelegatedRunId(),_0x2aeb9c={'agentId':_0x2a2bac['agentId'],'parentSessionId':_0x380a3a[_0x12087e(0x735,_0x59a32d._0x3ff4d5,0x628,_0x59a32d._0x390120)],'runId':_0x241f3f,..._0x380a3a[_0x1fe51a(-_0x59a32d._0x1bb464,-_0x59a32d._0x3684f1,-_0x59a32d._0x2748da,-_0x59a32d._0x399ad1)]!==void 0x0?{'toolCallId':_0x380a3a[_0x12087e(0x5dd,_0x59a32d._0x3918a6,0x646,0x4c4)]}:{}},_0x3768ef=getDelegatedAgentDefinition(_0x5b1088,_0x2a2bac[_0x12087e(_0x59a32d._0x42810b,0x56f,0x47e,0x5ed)]);function _0x1fe51a(_0x5c3f08,_0x507dfc,_0x342293,_0x4d916b){return _0x415a1b(_0x5c3f08-_0x4f21ba._0x296fc2,_0x4d916b,_0x342293-0x96,_0x5c3f08- -0x40d);}function _0x12087e(_0x4811f5,_0x5d257a,_0x1f958,_0x10f5c3){return _0xa4360f(_0x4811f5-0x117,_0x5d257a-0x22,_0x5d257a-_0x540526._0x56874b,_0x4811f5);}if(!_0x3768ef)throw new ToolExecutionError('Unknown\x20delegated\x20agent:\x20'+_0x2a2bac[_0x1fe51a(-_0x59a32d._0x5372fa,-0x12a,-0x241,-_0x59a32d._0x3503be)],{'agentId':_0x2a2bac[_0x1fe51a(-_0x59a32d._0x577336,-_0x59a32d._0x22cb1b,-0x72,-_0x59a32d._0x3235c5)]});const _0x8eb589=new Agent(await resolveDelegatedAgentOptions(_0x3768ef,_0x2aeb9c));let _0x55af8c={'runId':_0x241f3f,'agentId':_0x2a2bac['agentId'],'sessionId':_0x8eb589[_0x12087e(_0x59a32d._0xdc53dd,0x600,0x72d,0x4c2)],'status':_0x12087e(0x4d2,_0x59a32d._0x58099b,_0x59a32d._0x50516c,_0x59a32d._0x396998),'parentSessionId':_0x380a3a[_0x12087e(0x52b,0x600,0x4fa,_0x59a32d._0x5e48be)],..._0x380a3a[_0x12087e(_0x59a32d._0x14e8f4,0x5e2,_0x59a32d._0x30b9c0,0x538)]!==void 0x0?{'originToolCallId':_0x380a3a[_0x1fe51a(-_0x59a32d._0x451f8f,-_0x59a32d._0x2eff36,-0x146,-_0x59a32d._0x4ceaab)]}:{}};const _0x1bf50e=new AbortController(),_0x267cfe=addAbortListener(_0x380a3a['signal'],()=>{function _0x24711f(_0x2dab91,_0x45b8de,_0x333424,_0x48b822){return _0x12087e(_0x2dab91,_0x48b822- -_0x37932a._0x1d6bdb,_0x333424-_0x37932a._0x4469c8,_0x48b822-0x98);}_0x1bf50e['abort'](_0x380a3a[_0x24711f(_0x288245._0x271466,_0x288245._0xf67c56,_0x288245._0x3748df,0x304)]?.['reason']);});yield createToolOutput(_0x12087e(0x4a3,0x575,0x640,0x64a)+_0x55af8c[_0x1fe51a(-_0x59a32d._0x62e237,-0x211,-0x1aa,-_0x59a32d._0x241498)]+'.',{'runId':_0x55af8c[_0x1fe51a(-_0x59a32d._0x62e237,-_0x59a32d._0x4eb34e,-_0x59a32d._0x564422,-0xc9)],'agentId':_0x55af8c[_0x12087e(_0x59a32d._0x3c0f96,0x56f,_0x59a32d._0x529dfe,0x519)],'sessionId':_0x55af8c[_0x12087e(0x6da,_0x59a32d._0x3ff4d5,0x4b8,_0x59a32d._0x1b8f02)],'status':_0x55af8c[_0x1fe51a(-_0x59a32d._0x46c005,-0x29,-_0x59a32d._0x519fe8,-_0x59a32d._0x246799)]});try{const _0x322672=await _0x8eb589[_0x1fe51a(-_0x59a32d._0x559830,-_0x59a32d._0x291bcc,-_0x59a32d._0x377992,_0x59a32d._0x29563a)](_0x2a2bac[_0x1fe51a(-0xc6,-0x1ea,-0xfc,-0xa0)],{'signal':_0x1bf50e[_0x1fe51a(-0x1e9,-_0x59a32d._0x2b3464,-_0x59a32d._0x381269,-_0x59a32d._0x3e3b8d)]});_0x55af8c={..._0x55af8c,'status':_0x322672['status'],'result':_0x322672};if(_0x322672[_0x1fe51a(-0xd6,-_0x59a32d._0x242895,-_0x59a32d._0x5d80c2,-0xa9)]!==_0x1fe51a(-0x107,-0x47,-_0x59a32d._0x349c40,-_0x59a32d._0x70024)){const _0x504f1a=getRunTerminalErrorMessage(_0x322672),_0x4b7b88=formatAbortedRunMessage(_0x55af8c['runId'],_0x504f1a);throw new ToolExecutionError(_0x4b7b88,{...createRunSummary(_0x55af8c),'aborted':!![],'errorMessage':_0x4b7b88});}return createRunSummaryOutput(_0x55af8c,'Agent\x20run\x20'+_0x55af8c['runId']+_0x1fe51a(0xd,_0x59a32d._0x5e81bc,0x1c,0xe9));}catch(_0x3060db){if(_0x3060db instanceof ToolExecutionError)throw _0x3060db;if(isAbortError(_0x3060db)||_0x1bf50e['signal'][_0x1fe51a(-_0x59a32d._0x16c807,-0x1e1,-0xe5,-0x192)]||_0x380a3a[_0x1fe51a(-_0x59a32d._0x291428,-0xd8,-0x319,-_0x59a32d._0x2d145b)][_0x12087e(0x571,0x588,_0x59a32d._0x8e1010,_0x59a32d._0x21ad75)]){const _0x34eae9=getRunTerminalErrorMessage(_0x55af8c[_0x1fe51a(-0x6b,-0x3f,_0x59a32d._0x40cfed,-_0x59a32d._0x1fa160)])??(_0x3060db instanceof Error?_0x3060db[_0x1fe51a(0xf,-0x39,_0x59a32d._0x284896,-0xfb)]:String(_0x3060db)),_0x187da3=formatAbortedRunMessage(_0x55af8c['runId'],_0x34eae9);_0x55af8c={..._0x55af8c,'status':_0x12087e(0x4f4,_0x59a32d._0x51ce44,0x515,_0x59a32d._0x415361),'errorMessage':_0x187da3};throw new ToolExecutionError(_0x187da3,{...createRunSummary(_0x55af8c),'aborted':!![],'errorMessage':_0x187da3});}const _0xda0a9b=getRunTerminalErrorMessage(_0x55af8c[_0x12087e(0x5ac,_0x59a32d._0x13a0f8,0x71d,_0x59a32d._0x155228)])??(_0x3060db instanceof Error?_0x3060db['message']:String(_0x3060db))??_0x12087e(_0x59a32d._0x2ac33d,_0x59a32d._0x55a020,0x682,_0x59a32d._0x33800b)+_0x55af8c['runId']+'\x20failed.';_0x55af8c={..._0x55af8c,'status':_0x1fe51a(-0x1f7,-_0x59a32d._0x4ed819,-0xe8,-_0x59a32d._0x4e30c7),'errorMessage':_0xda0a9b};throw new ToolExecutionError(_0xda0a9b,{...createRunSummary(_0x55af8c),'errorMessage':_0xda0a9b});}finally{_0x267cfe();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x204385){return[createAssignTaskTool(_0x204385)];}import*as _0x36ab3d from'path';function buildDescription2(_0x1060f2){const _0x40422c={_0x208aaf:0x51f,_0x375e47:0x603,_0x4d05e6:0x272,_0x37244a:0x3f4,_0x5100b8:0x345,_0x83f760:0xa3,_0x525281:0x173,_0x48a23d:0x161,_0x38bef2:0x651,_0xdac3ec:0x746,_0x759e5d:0x424,_0x41f282:0x361,_0x535023:0x280,_0x28b1cd:0x3a0,_0x4dbd80:0x134,_0x332912:0x1f0,_0x5ef7f5:0x25c},_0x9b34be={_0x5be2c6:0x2d0},_0x54c89c={_0x27670e:0x67};function _0x5b39e7(_0x2d59c0,_0x3b33d9,_0x291998,_0x52a1f8){return _0x4aa629(_0x2d59c0-_0x54c89c._0x27670e,_0x52a1f8,_0x291998-0x162,_0x2d59c0-0x599);}if(_0x1060f2[_0x5b39e7(_0x40422c._0x208aaf,0x3fc,_0x40422c._0x375e47,0x464)]===0x0)return _0x333647(_0x40422c._0x4d05e6,0x3c4,_0x40422c._0x37244a,_0x40422c._0x5100b8);const _0x322d63=[_0x333647(_0x40422c._0x83f760,_0x40422c._0x525281,_0x40422c._0x48a23d,0x160),_0x5b39e7(_0x40422c._0x38bef2,0x5a0,0x694,_0x40422c._0xdac3ec),_0x5b39e7(0x43f,0x452,0x523,_0x40422c._0x759e5d),_0x333647(_0x40422c._0x41f282,0x2a1,_0x40422c._0x535023,_0x40422c._0x28b1cd),..._0x1060f2['map'](_0x2d7f72=>'-\x20'+_0x2d7f72[_0x333647(0x333,0x405,0x3d2,0x2df)]+':\x20'+_0x2d7f72[_0x333647(0x67,0x2e3,0x135,0x1a6)])];function _0x333647(_0x2582da,_0x2b39bc,_0x343ad0,_0x489943){return _0x4aa629(_0x2582da-0x6d,_0x2582da,_0x343ad0-0x15b,_0x489943-_0x9b34be._0x5be2c6);}return _0x322d63[_0x333647(_0x40422c._0x4dbd80,0x134,_0x40422c._0x332912,_0x40422c._0x5ef7f5)]('\x0a');}function createLoadSkillTool(_0x448f1a){const _0x22fad5={_0x14d445:0x5e,_0x2dd0de:0x1ac,_0x144d63:0x93,_0x45ea2d:0x570,_0x34c6da:0x523,_0x3faeca:0x651,_0xfeb21:0x6fa},_0x26226f={_0x59fba1:0x491,_0x258439:0x45b,_0x18e46f:0x36e,_0x1956b5:0x2c1,_0x25842c:0x638,_0x168f9a:0x6b8,_0x2d2dce:0x2d0,_0x5ada54:0x3df,_0x127f8e:0x3a6,_0x2a01dc:0x360,_0x538f04:0x5b6,_0x35fea4:0x51e,_0x5697b1:0x56a,_0x768b8:0x50c,_0x1d377b:0x407,_0x45e122:0x55a,_0x45d439:0x5bb,_0x195219:0x302,_0x2520dc:0x3a6,_0x5085d7:0x4af,_0x286677:0x31b,_0x4134c3:0x55f,_0x19d4a7:0x542,_0x1c1759:0x566,_0x1b12cc:0x46c,_0xede82e:0x4fe,_0x1e28dc:0x432,_0x2c28b7:0x323,_0x307c83:0x1ec,_0x32b681:0x2c7,_0x3b897d:0x3c5,_0x20873e:0x419,_0x1b5b4b:0x3ca},_0x14c98f={_0x9419d2:0x100,_0xa7c78d:0x59d},_0x4cc460=new Map(_0x448f1a[_0x312482(-_0x22fad5._0x14d445,-_0x22fad5._0x2dd0de,-0x1b8,-_0x22fad5._0x144d63)][_0x468012(0x3e5,0x48e,0x4a9,0x587)](_0x5bfc1a=>[_0x5bfc1a[_0x468012(0x69b,0x5ac,0x6f4,0x618)],_0x5bfc1a])),_0x59249d=buildDescription2(_0x448f1a[_0x312482(-0xf1,-0x4c,-0x89,-_0x22fad5._0x144d63)]);function _0x312482(_0x5dd44b,_0x415af8,_0x2f7e6c,_0x1b6b97){return _0x4aa629(_0x5dd44b-0x12c,_0x415af8,_0x2f7e6c-0xc9,_0x1b6b97- -0xf);}function _0x468012(_0x28287f,_0x4dc289,_0x256351,_0x2666a5){return _0x4aa629(_0x28287f-_0x14c98f._0x9419d2,_0x2666a5,_0x256351-0xa5,_0x4dc289-_0x14c98f._0xa7c78d);}return defineTool({'name':'LoadSkill','description':_0x59249d,'inputSchema':{'type':_0x468012(_0x22fad5._0x45ea2d,0x560,_0x22fad5._0x34c6da,_0x22fad5._0x3faeca),'properties':{'name':{'type':_0x468012(0x5a9,0x5eb,0x4ce,_0x22fad5._0xfeb21)}},'required':[_0x468012(0x4b1,0x5ac,0x4b7,0x662)]},async *'execute'(_0x13acbb){const _0x34b12a={_0x3a385e:0xc9},_0x404a82={_0x420547:0x19b,_0x1feca6:0x6c},_0x2413d0=_0x4cc460[_0x20e46d(_0x26226f._0x59fba1,_0x26226f._0x258439,_0x26226f._0x18e46f,_0x26226f._0x1956b5)](_0x13acbb['name']);if(!_0x2413d0){const _0x109c67=Array[_0x20e46d(0x31a,0x174,0x298,0x24e)](_0x4cc460[_0xb01c36(_0x26226f._0x25842c,_0x26226f._0x168f9a,0x556,0x63d)]())['join'](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x13acbb[_0x20e46d(_0x26226f._0x2d2dce,_0x26226f._0x5ada54,_0x26226f._0x127f8e,_0x26226f._0x2a01dc)]+_0x20e46d(_0x26226f._0x538f04,0x436,0x4b5,0x4a9)+_0x109c67,{'name':_0x13acbb[_0xb01c36(0x540,0x4c0,0x4b3,_0x26226f._0x35fea4)]});}const _0x4ef76d=await _0x448f1a[_0xb01c36(0x615,_0x26226f._0x5697b1,0x5f7,_0x26226f._0x768b8)](_0x2413d0);function _0xb01c36(_0x24a6ac,_0x392f17,_0x3e56b5,_0x41489d){return _0x468012(_0x24a6ac-_0x404a82._0x420547,_0x24a6ac- -_0x404a82._0x1feca6,_0x3e56b5-0x44,_0x3e56b5);}function _0x20e46d(_0x4b4c4d,_0x3aded1,_0x284a73,_0x57a0fd){return _0x468012(_0x4b4c4d-0x151,_0x284a73- -0x206,_0x284a73-_0x34b12a._0x3a385e,_0x3aded1);}const _0x23a643=_0x2413d0['source'][_0xb01c36(0x47b,0x52c,_0x26226f._0x1d377b,0x4e9)]??_0x36ab3d['dirname'](_0x2413d0['source'][_0xb01c36(0x4de,0x5f0,_0x26226f._0x45e122,_0x26226f._0x45d439)]),_0x340aa2=['##\x20Skill:\x20'+_0x4ef76d[_0x20e46d(0x3ae,_0x26226f._0x195219,_0x26226f._0x2520dc,0x3be)],'',_0x4ef76d[_0x20e46d(0x1f0,0x22b,0x29e,0x260)],'','---',_0x20e46d(0x409,_0x26226f._0x5085d7,0x463,_0x26226f._0x286677)+_0x2413d0[_0xb01c36(_0x26226f._0x4134c3,_0x26226f._0x19d4a7,_0x26226f._0x1c1759,0x43b)]['path'],_0xb01c36(_0x26226f._0x1b12cc,0x4a4,_0x26226f._0xede82e,_0x26226f._0x18e46f)+_0x23a643][_0x20e46d(_0x26226f._0x1e28dc,0x3a5,_0x26226f._0x2c28b7,_0x26226f._0x307c83)]('\x0a');return yield createToolOutput(_0x340aa2,{'id':_0x4ef76d['id'],'name':_0x4ef76d['name'],'path':_0x2413d0[_0x20e46d(_0x26226f._0x32b681,0x4fc,_0x26226f._0x3b897d,_0x26226f._0x20873e)][_0x20e46d(0x357,_0x26226f._0x1b5b4b,0x344,0x472)],'baseDirectory':_0x23a643}),void 0x0;}});}var TODO_STATUSES=new Set([_0x4aa629(-0x95,0xfb,-0xe5,0x2d),_0x2f0acf(0x24a,0x1ee,0x30c,0x18b),_0x2f0acf(0x328,0x218,0x3b9,0x403)]),TODO_PRIORITIES=new Set(['high',_0x2f0acf(0x214,0x290,0x191,0x125),'low']);function isTodoStatus(_0x2e92d9){const _0x5e850c={_0x162513:0x1c4,_0x154373:0x86,_0x3d8474:0x16d,_0x547abe:0x5e9,_0x2c5309:0x582,_0x27017d:0x4ad},_0x346d8f={_0x3ce1a5:0x0};function _0x21120e(_0x550384,_0x372ea8,_0x1546ed,_0x4b1307){return _0x2f0acf(_0x1546ed-0x239,_0x372ea8-0x191,_0x4b1307,_0x4b1307-0x88);}function _0x3bcacd(_0x2fe950,_0x156da6,_0x2f7a5c,_0x54cfda){return _0x2f0acf(_0x156da6- -0x411,_0x156da6-_0x346d8f._0x3ce1a5,_0x54cfda,_0x54cfda-0x95);}return typeof _0x2e92d9===_0x3bcacd(-_0x5e850c._0x162513,-_0x5e850c._0x154373,-_0x5e850c._0x3d8474,0x5e)&&TODO_STATUSES[_0x21120e(_0x5e850c._0x547abe,_0x5e850c._0x2c5309,_0x5e850c._0x27017d,0x4e8)](_0x2e92d9);}function isTodoPriority(_0x475bde){const _0x1ceac2={_0x47a469:0x231},_0x534495={_0x102e52:0x107};function _0x3f8a8b(_0x540f62,_0xf0bb09,_0x41734c,_0x196ea3){return _0x4aa629(_0x540f62-0x94,_0xf0bb09,_0x41734c-_0x534495._0x102e52,_0x540f62- -0x168);}return typeof _0x475bde==='string'&&TODO_PRIORITIES[_0x3f8a8b(-_0x1ceac2._0x47a469,-0x31d,-0x1d5,-0x24c)](_0x475bde);}var TodoStore=class{[_0x4aa629(0xd1,-0xea,0x14,-0x63)]=new Map();['getTodos'](_0x564863){const _0x885c32={_0x38871e:0x354,_0x4d71ce:0x3d9,_0x27085c:0x372,_0x33c189:0x35e,_0x368273:0x320},_0x68bca2={_0x433544:0xe0};function _0x278025(_0x52b504,_0x17b076,_0x47cba1,_0x4d05fe){return _0x4aa629(_0x52b504-_0x68bca2._0x433544,_0x4d05fe,_0x47cba1-0x93,_0x52b504-0x3b7);}function _0x38e388(_0x31f1c6,_0xdbd1e0,_0x4bb7b8,_0x92d32c){return _0x4aa629(_0x31f1c6-0x48,_0x31f1c6,_0x4bb7b8-0x159,_0x92d32c- -0x31);}return this[_0x278025(_0x885c32._0x38871e,_0x885c32._0x4d71ce,0x2bd,_0x885c32._0x27085c)][_0x278025(0x38e,_0x885c32._0x33c189,_0x885c32._0x368273,0x283)](_0x564863)??[];}[_0x4aa629(0xeb,0x1af,0xb0,0x103)](_0x425c96,_0xe980a1){const _0x243bf0={_0x5be188:0x5d},_0x4d7617={_0xbee725:0x122,_0xa6d2a6:0xb6};function _0x4cac78(_0x4d69b4,_0x1f68a7,_0x3c131d,_0x4e7994){return _0x4aa629(_0x4d69b4-0x1df,_0x1f68a7,_0x3c131d-_0x4d7617._0xbee725,_0x4d69b4- -_0x4d7617._0xa6d2a6);}this['todosBySession'][_0x4cac78(0xf,0xe9,-_0x243bf0._0x5be188,-0x1e)](_0x425c96,_0xe980a1);}[_0x2f0acf(0x294,0x265,0x2cb,0x170)](_0x14da8d){const _0x60293c={_0xd76827:0x433,_0x4d8016:0x3f4,_0x42c354:0x57e,_0x5a817b:0x568,_0x37f5ce:0x436,_0x156df8:0x497,_0x38c971:0x411,_0x5ef078:0x46f,_0x5b0702:0x45e,_0x52650b:0x71b,_0x2e48b0:0x565,_0x43d0cb:0x54d},_0x501f01={_0x543d14:0x531},_0x3d10e1=this[_0x3b4bbc(0x3a0,_0x60293c._0xd76827,0x555,0x4e4)](_0x14da8d);function _0xd6bb8f(_0xf34ac6,_0x39a82a,_0x22bc6f,_0x2c43f2){return _0x4aa629(_0xf34ac6-0x1ee,_0x2c43f2,_0x22bc6f-0xd3,_0xf34ac6-0x562);}const _0x4b46d6={'total':_0x3d10e1[_0x3b4bbc(0x44c,_0x60293c._0x4d8016,0x470,0x4b7)],'pending':0x0,'inProgress':0x0,'completed':0x0};function _0x3b4bbc(_0x5ac107,_0x3425cb,_0x5d3d29,_0x3c13e2){return _0x4aa629(_0x5ac107-0x28,_0x3425cb,_0x5d3d29-0x99,_0x3c13e2-_0x501f01._0x543d14);}for(const _0x7511d4 of _0x3d10e1){if(_0x7511d4[_0xd6bb8f(_0x60293c._0x42c354,_0x60293c._0x5a817b,_0x60293c._0x37f5ce,0x491)]==='pending')_0x4b46d6[_0xd6bb8f(0x58f,0x69e,0x4d5,_0x60293c._0x156df8)]+=0x1;else{if(_0x7511d4[_0x3b4bbc(0x5ee,_0x60293c._0x38c971,0x413,0x54d)]===_0xd6bb8f(_0x60293c._0x5ef078,0x532,0x54d,_0x60293c._0x5b0702))_0x4b46d6[_0xd6bb8f(0x65b,_0x60293c._0x52650b,_0x60293c._0x2e48b0,0x605)]+=0x1;else _0x4b46d6[_0xd6bb8f(_0x60293c._0x43d0cb,0x5c0,0x5cd,0x514)]+=0x1;}}return _0x4b46d6;}};function validateTodos(_0x4f01d7){const _0x6be5a1={_0x2dc6df:0x1c7,_0x43ada7:0xf7,_0x2e1489:0x417,_0x3afd4f:0x32f,_0x31ab06:0x38e,_0x455d71:0x15c,_0x24bc0a:0x1b5,_0x3569b2:0x23e,_0x3c5835:0x30,_0x431b45:0x118,_0x32f2d9:0x146,_0x1d075a:0x2e0,_0x15dd69:0x375,_0x4d9c7f:0x1f2,_0x18a820:0x2c1,_0x91db72:0xff,_0x522885:0x367,_0xc95267:0x433,_0x456268:0x4b5,_0x2de547:0x4ad,_0x3e062b:0x4b1,_0x191b13:0x1a3,_0x5cd7be:0x124,_0x34798d:0x209,_0x3d6e62:0x252,_0x1b3761:0x49a,_0xf567c:0x3cc,_0x1507b2:0x3dc,_0x3b634c:0x4bd,_0x55108a:0x265,_0x4877b1:0x125,_0xdf8d4c:0x3f0,_0x4b3c04:0x511,_0x339ae1:0x539,_0x396786:0x2d2,_0xdc3e0d:0x3bb,_0x5a048f:0x334,_0x424160:0x17a,_0xed7d06:0x228,_0xe54d51:0x264,_0x4bbfec:0x108,_0x566048:0x3c1,_0x279220:0x3b6,_0x1092a7:0x339,_0x30758f:0x287,_0x3f5d5a:0x245,_0x33a511:0x236,_0xd1a921:0xc7,_0xfc46c6:0x3a9,_0x233f78:0x487},_0x456c49={_0x1e699c:0x7b,_0x4c1e24:0x178},_0x1cfa92={_0x4d3e87:0xd5,_0x5b3686:0x112,_0x5655be:0x132};function _0x4db6d2(_0x3c3421,_0x268fa1,_0x54aae8,_0x2c90d0){return _0x2f0acf(_0x268fa1-_0x1cfa92._0x4d3e87,_0x268fa1-_0x1cfa92._0x5b3686,_0x3c3421,_0x2c90d0-_0x1cfa92._0x5655be);}if(!Array[_0x5f5d11(-0x1d0,-_0x6be5a1._0x2dc6df,-_0x6be5a1._0x43ada7,-0x1d2)](_0x4f01d7[_0x5f5d11(-0x237,-0x1ca,-0x289,-0x24d)])||_0x4f01d7['todos'][_0x4db6d2(0x2b1,0x398,0x4d4,0x283)]===0x0)throw new ToolExecutionError('Parameter\x20\x22todos\x22\x20must\x20be\x20a\x20non-empty\x20array',{'error':_0x4db6d2(_0x6be5a1._0x2e1489,_0x6be5a1._0x3afd4f,0x3f4,_0x6be5a1._0x31ab06)});for(let _0x1e15cf=0x0;_0x1e15cf<_0x4f01d7['todos']['length'];_0x1e15cf+=0x1){const _0xb0b91a=_0x4f01d7['todos'][_0x1e15cf];if(!_0xb0b91a||typeof _0xb0b91a!==_0x5f5d11(-_0x6be5a1._0x455d71,-0x146,-_0x6be5a1._0x24bc0a,-0x8f))throw new ToolExecutionError(_0x5f5d11(-0x19a,-0xe,-0x125,-_0x6be5a1._0x3569b2)+(_0x1e15cf+0x1)+_0x5f5d11(-0x12c,_0x6be5a1._0x3c5835,-_0x6be5a1._0x431b45,-_0x6be5a1._0x32f2d9),{'error':_0x4db6d2(_0x6be5a1._0x1d075a,_0x6be5a1._0x15dd69,0x3d2,0x3e7)});if(typeof _0xb0b91a['id']!=='string'||_0xb0b91a['id']['trim']()[_0x5f5d11(-0x25b,-0x11d,-_0x6be5a1._0x4d9c7f,-_0x6be5a1._0x18a820)]===0x0)throw new ToolExecutionError(_0x5f5d11(-0x77,-0x29,-0x125,-_0x6be5a1._0x91db72)+(_0x1e15cf+0x1)+_0x5f5d11(-0x1f6,-0x1d7,-0x292,-0x259),{'error':_0x5f5d11(-_0x6be5a1._0x522885,-0x3a0,-0x2d8,-0x2bd)});if(typeof _0xb0b91a[_0x4db6d2(_0x6be5a1._0xc95267,_0x6be5a1._0x456268,_0x6be5a1._0x2de547,_0x6be5a1._0x3e062b)]!=='string'||_0xb0b91a[_0x5f5d11(-0x215,-_0x6be5a1._0x191b13,-0xd5,-_0x6be5a1._0x5cd7be)]['trim']()[_0x5f5d11(-0x2e3,-_0x6be5a1._0x34798d,-_0x6be5a1._0x4d9c7f,-_0x6be5a1._0x3d6e62)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x1e15cf+0x1)+':\x20content\x20required',{'error':_0x4db6d2(_0x6be5a1._0x1b3761,_0x6be5a1._0xf567c,_0x6be5a1._0x1507b2,_0x6be5a1._0x3b634c)});if(!isTodoStatus(_0xb0b91a['status']))throw new ToolExecutionError(_0x5f5d11(-_0x6be5a1._0x55108a,0x13,-_0x6be5a1._0x4877b1,-0x251)+(_0x1e15cf+0x1)+_0x4db6d2(_0x6be5a1._0xdf8d4c,0x520,_0x6be5a1._0x4b3c04,_0x6be5a1._0x339ae1),{'error':_0x4db6d2(0x3f7,_0x6be5a1._0x396786,_0x6be5a1._0xdc3e0d,_0x6be5a1._0x5a048f)});if(!isTodoPriority(_0xb0b91a[_0x5f5d11(-_0x6be5a1._0x424160,-_0x6be5a1._0xed7d06,-0x2c1,-0x409)]))throw new ToolExecutionError(_0x5f5d11(-_0x6be5a1._0xe54d51,-0x207,-0x125,-_0x6be5a1._0x4bbfec)+(_0x1e15cf+0x1)+_0x4db6d2(0x423,_0x6be5a1._0x566048,_0x6be5a1._0x279220,0x37f),{'error':_0x4db6d2(0x4fd,0x4c6,0x519,0x483)});}const _0x4da01e=_0x4f01d7['todos'][_0x5f5d11(-0x1e4,-_0x6be5a1._0x1092a7,-_0x6be5a1._0x30758f,-_0x6be5a1._0x3f5d5a)](_0xe42c9b=>_0xe42c9b['id']);function _0x5f5d11(_0x4376ec,_0xb25e58,_0x1d4361,_0x5a85e9){return _0x4aa629(_0x4376ec-0x2e,_0x4376ec,_0x1d4361-_0x456c49._0x1e699c,_0x1d4361- -_0x456c49._0x4c1e24);}if(new Set(_0x4da01e)['size']!==_0x4da01e[_0x5f5d11(-0xe5,-_0x6be5a1._0x33a511,-0x1f2,-_0x6be5a1._0xd1a921)])throw new ToolExecutionError('Todo\x20items\x20must\x20have\x20unique\x20IDs',{'error':_0x4db6d2(0x599,0x4a0,_0x6be5a1._0xfc46c6,_0x6be5a1._0x233f78)});}function createStatsProgress(_0x1529d8){const _0x3ea8e4={_0xfeff50:0x84,_0x29c178:0x2c,_0x3e68cb:0x1f1,_0x4fd9e8:0x66f,_0x1a78e4:0x681,_0x3335f0:0x6d2,_0x215727:0x60a,_0x8617db:0xc0},_0x55b9ef={_0x373947:0x2e2,_0x3362f9:0x1cc},_0x3c1576={_0x2fe9b3:0x3c};function _0x3a1aea(_0x1e7281,_0x38cf8b,_0x500be6,_0xb5eb20){return _0x2f0acf(_0x38cf8b- -0x322,_0x38cf8b-0x165,_0x500be6,_0xb5eb20-_0x3c1576._0x2fe9b3);}function _0x215f81(_0x5d359e,_0x2f263a,_0x71e6e3,_0x33e36e){return _0x2f0acf(_0x33e36e-_0x55b9ef._0x373947,_0x2f263a-0x182,_0x5d359e,_0x33e36e-_0x55b9ef._0x3362f9);}return _0x1529d8[_0x3a1aea(-0x8f,-0xc0,-_0x3ea8e4._0xfeff50,-0x2)]>0x0?Math[_0x3a1aea(-0xe1,-0x143,-_0x3ea8e4._0x29c178,-_0x3ea8e4._0x3e68cb)](_0x1529d8[_0x215f81(_0x3ea8e4._0x4fd9e8,_0x3ea8e4._0x1a78e4,_0x3ea8e4._0x3335f0,_0x3ea8e4._0x215727)]/_0x1529d8[_0x3a1aea(-0x1dc,-_0x3ea8e4._0x8617db,-0x129,-0x1c2)]*0x64)+'%':'0%';}function createReminderItems(_0x2d944b){const _0x305b18={_0x3e2183:0x188,_0x43f757:0x169},_0x51b046={_0x3d4277:0x139,_0x270b9c:0x297};function _0x27618b(_0x586e11,_0x1017a6,_0x1fb328,_0x56082a){return _0x4aa629(_0x586e11-0xd1,_0x56082a,_0x1fb328-0x195,_0x1017a6-0x148);}function _0x135841(_0x16eb93,_0x4c2d45,_0x2bb2ae,_0x506035){return _0x4aa629(_0x16eb93-_0x51b046._0x3d4277,_0x506035,_0x2bb2ae-0x133,_0x4c2d45-_0x51b046._0x270b9c);}return _0x2d944b[_0x135841(0x7d,_0x305b18._0x3e2183,0x2c4,_0x305b18._0x43f757)](_0x323748=>({'content':_0x323748[_0x27618b(0x25d,0x1eb,0x17e,0x17e)],'status':_0x323748[_0x135841(0x375,0x2b3,0x3c4,0x239)],'id':_0x323748['id']}));}function createStructuredResult(_0x468636,_0x3922e3,_0x65f8f6,_0x3c5f6f){const _0x406871={_0x39a856:0x26f,_0x1b916d:0x377},_0x58d036={_0x36585f:0x1c7,_0x2a52d8:0x45e};function _0x374b0f(_0x1e700d,_0x5af01d,_0x2ec661,_0x2c0586){return _0x4aa629(_0x1e700d-0x17b,_0x1e700d,_0x2ec661-0x111,_0x2c0586-0x2ae);}function _0xd51d15(_0xc3e3c,_0x24d8f0,_0x5892a6,_0x22ec70){return _0x4aa629(_0xc3e3c-0x15,_0x22ec70,_0x5892a6-_0x58d036._0x36585f,_0xc3e3c-_0x58d036._0x2a52d8);}return{'allCompleted':_0x3c5f6f,'items':_0x3922e3['map'](_0x448248=>({'id':_0x448248['id'],'content':_0x448248[_0xd51d15(0x501,0x524,0x3ed,0x553)],'status':_0x448248[_0xd51d15(0x47a,0x537,0x48a,0x3d5)],'priority':_0x448248[_0x374b0f(0x138,0xb6,0x14d,0x165)],'createdAt':_0x448248[_0xd51d15(0x3c5,0x2d6,0x46d,0x351)]})),'progress':createStatsProgress(_0x65f8f6),'recentChanges':!![],'sessionId':_0x468636,'stats':_0x65f8f6,'todosWritten':_0x3922e3[_0x374b0f(_0x406871._0x39a856,_0x406871._0x1b916d,0x148,0x234)]};}function createOutputText(_0x2dc47e,_0x5b42e3){const _0x57f990={_0x3aaa37:0x152,_0x45b3dc:0x173,_0x3d3f37:0x38e,_0x3dc203:0x3fc,_0x5a39f4:0x335,_0x26d8b9:0x377,_0x2dcf3f:0x268},_0x1a9bba={_0x553858:0x8b,_0x403447:0x1cd},_0x788849={_0x699371:0x10c,_0x37e356:0x371},_0xff360b=JSON['stringify'](createReminderItems(_0x2dc47e));function _0x59271e(_0xf0c2f9,_0x4a5a54,_0x24f0b3,_0x458c84){return _0x4aa629(_0xf0c2f9-_0x788849._0x699371,_0x24f0b3,_0x24f0b3-0x2c,_0x4a5a54-_0x788849._0x37e356);}if(_0x5b42e3)return _0x545b61(0x2ac,0x274,_0x57f990._0x3aaa37,0x2e3)+_0x2dc47e[_0x545b61(_0x57f990._0x45b3dc,0x153,0xce,0x116)]+'\x20todo\x20items\x20have\x20been\x20completed\x20successfully!\x0a\x0a<system-reminder>\x0aAll\x20todo\x20items\x20are\x20now\x20completed!\x20Ask\x20about\x20next\x20steps.\x20Completed\x20list:\x0a'+_0xff360b+_0x59271e(0x3a4,_0x57f990._0x3d3f37,_0x57f990._0x3dc203,_0x57f990._0x5a39f4);function _0x545b61(_0x4a2cbb,_0x38e8b4,_0x5e398d,_0xd3ec3e){return _0x4aa629(_0x4a2cbb-0x1dc,_0xd3ec3e,_0x5e398d-_0x1a9bba._0x553858,_0x38e8b4-_0x1a9bba._0x403447);}return _0x59271e(0x23f,_0x57f990._0x26d8b9,0x2f5,_0x57f990._0x2dcf3f)+_0xff360b+'.\x0a</system-reminder>';}function createTodoWriteTool(_0x3727ce=new TodoStore()){const _0x15c716={_0x18909e:0xf,_0x43e2d5:0xcd,_0xf00d01:0x2e5,_0x426aac:0x284,_0x22f8d5:0x2e3,_0x18931e:0x358,_0x2354d3:0x37c,_0x4f7305:0x257,_0x7b7884:0x45d,_0x115a83:0x2de,_0x3864fc:0x3e6,_0x2b3acc:0x369,_0x54845c:0x3d3,_0x3edf47:0x38d,_0x5d103e:0x44d,_0x457cd6:0x36b,_0x224c50:0x369,_0x456a0f:0x252,_0x3d6a03:0x44f,_0x363757:0x1ba,_0x270426:0x34d,_0x396bbf:0x188,_0x4c4245:0x29b,_0x5f25b4:0x99,_0x495150:0x5d,_0x5751de:0x5b},_0x14f2bd={_0x19c563:0x1f,_0x522122:0x569,_0x5563ab:0x644,_0x27bf59:0x5c8,_0x2104e9:0x4b0,_0x5532b1:0x6f,_0x58baa2:0xdc,_0x510111:0x1e5,_0x1fd50a:0x38,_0x46320f:0x1e},_0x1d09bb={_0x209555:0x3af,_0x1da055:0x1a4},_0x19a251={_0x116c24:0x22};function _0x258a85(_0x2db533,_0x31c01d,_0x1d8016,_0x29e2f5){return _0x4aa629(_0x2db533-0x1d0,_0x2db533,_0x1d8016-0x138,_0x1d8016-0x16c);}function _0x517340(_0x4ce3da,_0xdd5ab0,_0x3f5c38,_0x1b86cb){return _0x2f0acf(_0x4ce3da- -_0x19a251._0x116c24,_0xdd5ab0-0x143,_0x1b86cb,_0x1b86cb-0x1f);}return defineTool({'name':_0x258a85(_0x15c716._0x18909e,0xfd,_0x15c716._0x43e2d5,0x4),'description':_0x517340(_0x15c716._0xf00d01,0x2ad,0x402,0x203),'inputSchema':{'type':_0x517340(0x2de,_0x15c716._0x426aac,_0x15c716._0x22f8d5,_0x15c716._0x18931e),'properties':{'todos':{'type':_0x517340(_0x15c716._0x2354d3,_0x15c716._0x4f7305,0x296,_0x15c716._0x7b7884),'items':{'type':_0x517340(_0x15c716._0x115a83,_0x15c716._0x3864fc,0x2f2,0x21f),'properties':{'content':{'type':_0x517340(_0x15c716._0x2b3acc,_0x15c716._0x54845c,_0x15c716._0x3edf47,0x47b)},'status':{'type':_0x517340(_0x15c716._0x2b3acc,0x3eb,_0x15c716._0x5d103e,_0x15c716._0x457cd6)},'priority':{'type':'string'},'id':{'type':_0x517340(_0x15c716._0x224c50,0x327,_0x15c716._0x456a0f,_0x15c716._0x3d6a03)},'createdAt':{'type':_0x258a85(0x2b9,0x2d6,_0x15c716._0x363757,0x1cf)}},'required':[_0x258a85(0x21e,0x167,0x20f,_0x15c716._0x270426),_0x258a85(0x217,0x7b,_0x15c716._0x396bbf,0x130),_0x517340(0x1d2,_0x15c716._0x4c4245,0x122,0x1b8),'id']}}},'required':[_0x258a85(-_0x15c716._0x5f25b4,-_0x15c716._0x495150,_0x15c716._0x5751de,-0xcf)]},async *'execute'(_0x35206e,_0x2427c0){const _0x1ea1de={_0x302bea:0x2a4},_0x4d7e24=_0x35206e;validateTodos(_0x4d7e24);const _0x8b0c35=_0x2427c0[_0x364767(_0x14f2bd._0x19c563,0x7a,-0x7c,0x5e)]||_0x300649(_0x14f2bd._0x522122,0x713,_0x14f2bd._0x5563ab,0x624);function _0x300649(_0x2fb3d3,_0x7312bf,_0x1601b3,_0x467e3d){return _0x517340(_0x467e3d-_0x1ea1de._0x302bea,_0x7312bf-0x140,_0x1601b3-0xc0,_0x7312bf);}const _0x14b96f=new Date()['toISOString'](),_0x201de9=_0x4d7e24[_0x364767(-0x15c,-0x2e0,-0x1a5,-0x177)][_0x300649(0x546,0x48e,_0x14f2bd._0x27bf59,_0x14f2bd._0x2104e9)](_0x433314=>({'id':_0x433314['id'],'content':_0x433314[_0x364767(0xac,-0x56,0xf,-0x103)],'status':_0x433314[_0x364767(-0xa7,0x0,-0x78,-0xb9)],'priority':_0x433314[_0x300649(0x346,0x3b7,0x431,0x476)],'sessionId':_0x8b0c35,'createdAt':_0x433314[_0x300649(0x492,0x47b,0x652,0x526)]||_0x14b96f,'updatedAt':_0x14b96f}));_0x3727ce[_0x364767(-0x6a,0x15d,_0x14f2bd._0x5532b1,-0x46)](_0x8b0c35,_0x201de9);const _0x32f2f9=_0x3727ce[_0x364767(0xb,-_0x14f2bd._0x58baa2,-0x13d,-_0x14f2bd._0x510111)](_0x8b0c35);function _0x364767(_0x24fa67,_0x4f50a3,_0x3bd07e,_0x263926){return _0x517340(_0x3bd07e- -_0x1d09bb._0x209555,_0x4f50a3-0xfe,_0x3bd07e-_0x1d09bb._0x1da055,_0x24fa67);}const _0x4b2241=_0x201de9[_0x364767(_0x14f2bd._0x1fd50a,-0x60,-0x10e,-_0x14f2bd._0x46320f)]>0x0&&_0x201de9['every'](_0xd0f682=>_0xd0f682[_0x300649(0x706,0x5b1,0x668,0x5db)]===_0x364767(0x65,-0x58,-0xa9,0xf));return createToolOutput(createOutputText(_0x201de9,_0x4b2241),createStructuredResult(_0x8b0c35,_0x201de9,_0x32f2f9,_0x4b2241));}});}import{mkdir as _0x40131b,writeFile as _0x561199}from'fs/promises';import*as _0x29c4f1 from'path';function sanitizeFileName(_0x4616dc){const _0x399387={_0x4509e3:0x48a,_0x5023c2:0x424,_0x6a7a47:0x36d,_0x3f15cf:0x468},_0x1002b9={_0x484b63:0x24d,_0x4320e4:0x14};function _0x503c0c(_0x1a103b,_0x4dbcb8,_0x5b5622,_0x3d66f2){return _0x2f0acf(_0x4dbcb8-_0x1002b9._0x484b63,_0x4dbcb8-0x1dd,_0x1a103b,_0x3d66f2-_0x1002b9._0x4320e4);}return _0x4616dc[_0x503c0c(_0x399387._0x4509e3,_0x399387._0x5023c2,_0x399387._0x6a7a47,_0x399387._0x3f15cf)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x53a837,_0x278068){const _0x40298d={_0x27b762:0x31d,_0x2888dc:0x537,_0x1baed4:0x430,_0x542467:0x5d7,_0x1ed8c6:0x513,_0x4c0e8c:0x4ee,_0xd1ec80:0x3de,_0x2bd50d:0x37b,_0x2e9f4a:0x31d,_0x449079:0x3db,_0x37ae27:0x4f9,_0x5cda43:0x4d8,_0x14e6db:0x24f,_0x5858bf:0x29,_0xc511fc:0x32,_0x4f1a47:0x8e,_0x50cc21:0xcc,_0x1361bd:0x2f,_0x5cd046:0x6e,_0x2ee57c:0xc7,_0x393be3:0x8,_0x55c334:0x62,_0x2e25f7:0xbf,_0x5718a2:0x16a,_0x9047f8:0x97,_0x53d293:0x13,_0x496dac:0x54,_0x462f22:0x19,_0x446de7:0x2c0,_0xf05baf:0xe2,_0x3ef777:0x2f9,_0x288bb2:0x487,_0x271faa:0x5dc,_0x2bd38d:0x5ab,_0x4dfa09:0x4eb,_0x309f22:0x4a7,_0x3b964f:0x60,_0x2b7b8b:0x145,_0x4ccb71:0x1bc,_0x48ebfa:0x176,_0x2879ce:0x2af,_0x362ecf:0x90,_0x3178ba:0xa7,_0x3b7f41:0x107,_0xcff547:0x96,_0x1adfc9:0x25,_0x4a52e2:0x74,_0x55b447:0x6f,_0x1d5fdc:0x382,_0x270ad9:0x4f,_0x1fbe7f:0x50},_0x396e94={_0x593eba:0x102,_0x193f79:0x496},_0x2f7e0a={_0x13505f:0x364,_0x41fe6d:0x194};function _0x4cd00b(_0xc77a5b,_0x4ffe51,_0x58a567,_0x34f269){return _0x2f0acf(_0xc77a5b- -_0x2f7e0a._0x13505f,_0x4ffe51-_0x2f7e0a._0x41fe6d,_0x4ffe51,_0x34f269-0xe5);}const {maxBytes:_0x196991,sessionDir:_0x1ee6b2}=_0x278068;if(!_0x53a837[_0x4fe2f4(0x47f,_0x40298d._0x27b762,0x459,0x3db)]||Buffer[_0x4fe2f4(_0x40298d._0x2888dc,_0x40298d._0x1baed4,_0x40298d._0x542467,_0x40298d._0x1ed8c6)](_0x53a837[_0x4fe2f4(0x454,0x37c,_0x40298d._0x4c0e8c,0x3db)],_0x4fe2f4(0x317,0x40c,0x39f,_0x40298d._0xd1ec80))<=_0x196991)return _0x53a837;const _0x414c72=Buffer['byteLength'](_0x53a837[_0x4fe2f4(0x38e,_0x40298d._0x2bd50d,_0x40298d._0x2e9f4a,_0x40298d._0x449079)],_0x4fe2f4(0x3dc,_0x40298d._0x37ae27,0x39c,0x3de));if(!_0x1ee6b2){const _0x37997f=_0x53a837[_0x4fe2f4(_0x40298d._0x5cda43,0x489,0x459,0x3db)][_0x4fe2f4(0x44f,0x4c4,_0x40298d._0x14e6db,0x396)](0x0,_0x196991);return{..._0x53a837,'output':_0x37997f+('\x0a\x0a<system-reminder>\x0aTool\x20output\x20was\x20truncated\x20at\x20'+_0x196991+_0x4cd00b(-_0x40298d._0x5858bf,_0x40298d._0xc511fc,-_0x40298d._0x4f1a47,_0x40298d._0x50cc21)+_0x414c72+_0x4cd00b(_0x40298d._0x1361bd,-0xec,-0x31,_0x40298d._0x5cd046)),'meta':{..._0x53a837[_0x4fe2f4(0x4c4,0x509,0x477,0x498)],'truncated':!![],'originalBytes':_0x414c72,'transforms':[..._0x53a837['meta'][_0x4cd00b(-0xb8,-_0x40298d._0x2ee57c,-_0x40298d._0x393be3,_0x40298d._0x55c334)],'tool-output-offload']}};}const _0x3dc0b7=_0x53a837['toolName']+'_'+sanitizeFileName(_0x53a837[_0x4cd00b(-0x69,0xc6,_0x40298d._0x2e25f7,-_0x40298d._0x5718a2)])+_0x4cd00b(_0x40298d._0x9047f8,_0x40298d._0x53d293,_0x40298d._0x496dac,-_0x40298d._0x462f22),_0x423fda=_0x29c4f1['join'](_0x1ee6b2,_0x3dc0b7);await _0x40131b(_0x1ee6b2,{'recursive':!![]}),await _0x561199(_0x423fda,_0x53a837[_0x4fe2f4(0x2c9,_0x40298d._0x446de7,0x349,_0x40298d._0x449079)],'utf8');function _0x4fe2f4(_0xc1e56a,_0x24f53d,_0x217a41,_0x557e79){return _0x4aa629(_0xc1e56a-0x178,_0xc1e56a,_0x217a41-_0x396e94._0x593eba,_0x557e79-_0x396e94._0x193f79);}let _0x1296ce=_0x53a837[_0x4cd00b(-_0x40298d._0xf05baf,-0xd1,-0xd1,-0x17e)][_0x4fe2f4(0x433,0x4d0,0x468,0x396)](0x0,_0x196991);const _0x147e62=_0x1296ce['lastIndexOf']('\x0a');_0x147e62>_0x196991*0.5&&(_0x1296ce=_0x1296ce['slice'](0x0,_0x147e62));const _0x59a533=['',_0x4fe2f4(_0x40298d._0x3ef777,0x26f,0x3ac,0x34a),_0x4fe2f4(_0x40298d._0x288bb2,0x4b9,0x4a2,0x485)+_0x196991+_0x4fe2f4(_0x40298d._0x271faa,0x410,_0x40298d._0x2bd38d,_0x40298d._0x4dfa09)+_0x414c72+_0x4fe2f4(0x6d9,_0x40298d._0x309f22,0x4ca,0x598),'Full\x20output\x20saved\x20to:\x20'+_0x423fda,_0x4cd00b(-0x18a,-_0x40298d._0x3b964f,-_0x40298d._0x2b7b8b,-_0x40298d._0x4ccb71),_0x4cd00b(-_0x40298d._0x48ebfa,-_0x40298d._0x2879ce,-0x257,-_0x40298d._0x362ecf)][_0x4cd00b(-0x9b,-_0x40298d._0x3178ba,-_0x40298d._0x3b7f41,-_0x40298d._0xcff547)]('\x0a');return{..._0x53a837,'output':_0x1296ce+_0x59a533,'meta':{..._0x53a837[_0x4cd00b(-_0x40298d._0x1adfc9,_0x40298d._0x4a52e2,_0x40298d._0x55b447,-0x10e)],'truncated':!![],'originalBytes':_0x414c72,'transforms':[..._0x53a837[_0x4fe2f4(_0x40298d._0x1d5fdc,0x423,0x564,0x498)][_0x4cd00b(-0xb8,0x59,-0xdb,_0x40298d._0x270ad9)],_0x4cd00b(_0x40298d._0x1fbe7f,-0xf5,-0x6e,0x4b)]}};}import{readFile as _0x440696,stat as _0x5335a9}from'fs/promises';import*as _0x27feaf from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x2f0acf(0x423,0x4f5,0x430,0x40a),'high',_0x4aa629(0x113,-0x51,0x8b,0x2f),_0x4aa629(0xe0,0x115,-0x2c,0xed)]),PNG_SIGNATURE=Buffer['from']([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x5ab75d,_0xc399e9){const _0x7967d9={_0x53d0d6:0x358,_0x2d893b:0x41c,_0x528f11:0x7c,_0x16bcce:0x15,_0x4e102c:0x22,_0x591cd2:0x3f,_0x46e4ad:0x14d,_0x3fc2bb:0x30b,_0x2c9356:0x3ea,_0x1cc3d0:0x469,_0x3f9dc1:0x398,_0x1115e6:0x34f,_0x5d3eef:0x27a,_0x43580b:0x26f,_0x5a02d4:0x2f4,_0x16bc14:0x384,_0x4d7d5b:0x288,_0x4c0c47:0x1db,_0x1ffac5:0x2fb,_0x51241c:0x3ce,_0xe01593:0x466,_0xd76337:0x58a,_0x58f771:0x287,_0x404b82:0x36b,_0x395144:0x367,_0x380b28:0x1db,_0xdf6800:0x295,_0x3b9dba:0x1d3,_0x1754cc:0x1de,_0x533cf1:0x246,_0x1fd1d0:0x16a,_0x366471:0x82,_0x1aacdc:0x174,_0x2f431d:0x1,_0x47e611:0xc5,_0x1b2887:0x355,_0x44b315:0x1a,_0x5b294f:0xf1,_0x34bbeb:0x90,_0x3ffcd7:0xb3,_0x1933d3:0x2c3,_0x1f9497:0x154,_0x2ed1b5:0x1e9,_0x9fa9d8:0x63,_0xf01795:0x251,_0x1476d3:0x3b6,_0x5adab5:0x373,_0x120e4f:0x3e5,_0x48724b:0x13e,_0x26c8fc:0x9,_0x510d27:0x24e,_0x56c5fe:0x10d,_0x1d9148:0x28,_0x1f38b1:0x150,_0x4b00c1:0x35,_0x2e72d5:0xc7,_0x2c5e81:0x0,_0x1fe6e8:0x77},_0x39f7cf={_0x27c950:0x7f,_0x467b1e:0x22};function _0x376bdd(_0x5ca75a,_0x7609c8,_0x1e4603,_0x4b1744){return _0x2f0acf(_0x1e4603-_0x39f7cf._0x27c950,_0x7609c8-0xe9,_0x7609c8,_0x4b1744-_0x39f7cf._0x467b1e);}if(_0x5ab75d[_0x376bdd(0x38b,_0x7967d9._0x53d0d6,0x469,_0x7967d9._0x2d893b)](0x0,0x8)[_0x24514a(-0x17,-_0x7967d9._0x528f11,-_0x7967d9._0x16bcce,-0x24)](PNG_SIGNATURE))return _0x24514a(-_0x7967d9._0x4e102c,-_0x7967d9._0x591cd2,-0x10f,-_0x7967d9._0x46e4ad);if(_0x5ab75d[0x0]===0xff&&_0x5ab75d[0x1]===0xd8&&_0x5ab75d[0x2]===0xff)return _0x376bdd(0x173,0x38a,0x2b2,_0x7967d9._0x3fc2bb);const _0x677a=_0x5ab75d[_0x376bdd(0x53e,_0x7967d9._0x2c9356,_0x7967d9._0x1cc3d0,0x492)](0x0,0x6)[_0x376bdd(0x410,_0x7967d9._0x3f9dc1,0x4d4,0x540)](_0x376bdd(0x303,_0x7967d9._0x1115e6,0x3b1,_0x7967d9._0x5d3eef));if(_0x677a===_0x376bdd(_0x7967d9._0x43580b,_0x7967d9._0x5a02d4,_0x7967d9._0x16bc14,_0x7967d9._0x4d7d5b)||_0x677a==='GIF89a')return'image/gif';function _0x24514a(_0x2bc9c1,_0x64d523,_0x566774,_0x1e1810){return _0x4aa629(_0x2bc9c1-0xc6,_0x1e1810,_0x566774-0x32,_0x2bc9c1-0x12e);}if(_0x5ab75d[_0x24514a(_0x7967d9._0x4c0c47,0x153,0x23e,_0x7967d9._0x1ffac5)](0x0,0x4)[_0x376bdd(_0x7967d9._0x51241c,_0x7967d9._0xe01593,0x4d4,_0x7967d9._0xd76337)](_0x376bdd(_0x7967d9._0x58f771,_0x7967d9._0x404b82,0x3b1,0x4d7))===_0x376bdd(_0x7967d9._0x395144,0x4fe,0x496,0x531)&&_0x5ab75d[_0x24514a(_0x7967d9._0x380b28,_0x7967d9._0xdf6800,_0x7967d9._0x3b9dba,_0x7967d9._0x1754cc)](0x8,0xc)[_0x24514a(_0x7967d9._0x533cf1,0x1ad,_0x7967d9._0x1fd1d0,0x235)]('ascii')===_0x24514a(_0x7967d9._0x366471,_0x7967d9._0x1aacdc,-_0x7967d9._0x2f431d,_0x7967d9._0x47e611))return _0x376bdd(0x367,0x2be,_0x7967d9._0x1b2887,0x20f);const _0x1f2625=_0x27feaf['extname'](_0xc399e9)[_0x24514a(-_0x7967d9._0x44b315,-0x110,-0x15d,_0x7967d9._0x5b294f)]();if(_0x1f2625===_0x24514a(-0xa,-0xa5,_0x7967d9._0x34bbeb,-_0x7967d9._0x3ffcd7))return _0x376bdd(_0x7967d9._0x1933d3,_0x7967d9._0x1f9497,0x26c,_0x7967d9._0x2ed1b5);if(_0x1f2625===_0x24514a(0x5b,0x1a,-0x2a,_0x7967d9._0x9fa9d8)||_0x1f2625===_0x376bdd(0x144,0x31f,0x287,_0x7967d9._0xf01795))return _0x376bdd(_0x7967d9._0x1476d3,_0x7967d9._0x5adab5,0x2b2,_0x7967d9._0x120e4f);if(_0x1f2625===_0x24514a(_0x7967d9._0x48724b,-_0x7967d9._0x26c8fc,_0x7967d9._0x510d27,_0x7967d9._0x56c5fe))return _0x24514a(-_0x7967d9._0x1d9148,-_0x7967d9._0x1f38b1,-_0x7967d9._0x4b00c1,_0x7967d9._0x528f11);if(_0x1f2625==='.webp')return _0x24514a(_0x7967d9._0x2e72d5,_0x7967d9._0x2c5e81,0x37,_0x7967d9._0x1fe6e8);return void 0x0;}function normalizeDetail(_0x354df5){const _0x5eec46={_0x5cdad5:0x176,_0x299c4b:0xd3,_0x450a87:0x9d,_0xddc2be:0x5a,_0x103084:0x6c,_0x44c82b:0x1c,_0x2935f7:0x54,_0xefb9a9:0xa6,_0x4f43bc:0xb0,_0x40336c:0x10f},_0x3dcf0e={_0x5c50f7:0x17c,_0x58e69f:0x44a},_0x3cb1f8={_0x5338f8:0x148,_0x21f6cb:0x2e};if(_0x354df5===void 0x0)return void 0x0;const _0x5bc4ce=_0x354df5[_0x57792a(-_0x5eec46._0x5cdad5,-_0x5eec46._0x299c4b,-_0x5eec46._0x450a87,-_0x5eec46._0xddc2be)]()[_0x57792a(_0x5eec46._0x103084,_0x5eec46._0x44c82b,-0xdd,-_0x5eec46._0x2935f7)]();function _0x57792a(_0x5d23a1,_0x15f14e,_0x313ba9,_0x390a7a){return _0x4aa629(_0x5d23a1-_0x3cb1f8._0x5338f8,_0x313ba9,_0x313ba9-_0x3cb1f8._0x21f6cb,_0x390a7a-0xf4);}if(!SUPPORTED_DETAILS[_0x57792a(-0x3e,_0x5eec46._0xefb9a9,-_0x5eec46._0x4f43bc,0x2b)](_0x5bc4ce))throw new ToolExecutionError(_0x57792a(0xff,_0x5eec46._0x40336c,0x18,0x14b)+_0x354df5,{'detail':_0x354df5});function _0x3992d4(_0x2755e4,_0x468f19,_0x3860e6,_0x4a8d66){return _0x4aa629(_0x2755e4-_0x3dcf0e._0x5c50f7,_0x468f19,_0x3860e6-0x192,_0x4a8d66-_0x3dcf0e._0x58e69f);}return _0x5bc4ce;}function createViewFileTool(_0x5366ff={}){const _0x45e29f={_0x2ba0a7:0x4d9,_0x29b645:0x56e,_0xeb1f45:0x2b5,_0x40a00f:0x2e2,_0x1929f7:0x4fb,_0x422990:0x64a,_0x550e36:0x504,_0x36b08e:0x586,_0xfbec44:0x61e,_0x57e3ac:0x4b8,_0x3ac432:0x542,_0x56bb09:0x5ed,_0xc05012:0x2dc,_0x573436:0x225},_0x3babf2={_0x17c6a5:0x4ba,_0x9da4c2:0x49e,_0x670cd3:0x3e6,_0x2c7ad1:0x40a,_0x329c34:0x5be,_0x1dc7fd:0x5b3,_0x31255b:0x5bb,_0x1ffb84:0x340,_0x38e80e:0x3d1,_0x5506c4:0x44,_0x5b7b62:0x1d2,_0x16e85b:0x570,_0x1a0949:0x5de,_0x533537:0x5cc,_0xcedc6a:0xdb,_0x4acf1e:0x30,_0x28be6d:0x10c,_0x16b69c:0x1c6,_0x3e9410:0x24c,_0x132831:0xb3,_0x2aa120:0xc4,_0x4d0a5b:0x20d,_0x239f68:0x152,_0x453754:0x52,_0x9d2e98:0x129,_0x254c7e:0x57d,_0x1d43c5:0x466,_0x476c61:0x47c,_0x15f225:0x3e6,_0x353761:0x330,_0x467968:0x171,_0x4cf877:0x61,_0x4370ed:0x9f,_0x54d2ac:0x9c,_0x2e7dae:0x207,_0x1585c8:0x184,_0x43aa2c:0x122,_0x373403:0x4b4,_0x23e622:0x45b,_0x2e7ad3:0x499,_0x4a345f:0x499,_0x2bf401:0x4c1,_0x24f605:0x515,_0x4463d4:0x18f,_0x4a42c5:0x3c,_0x20f795:0x20b,_0x3d3863:0x45a,_0x3c93b8:0x4f1,_0xb4c885:0x45c,_0xd370ac:0x1c7,_0x555a94:0x84,_0x2ee7cc:0x39f,_0xad7002:0x314,_0x4cfb0b:0x353,_0x19b0c2:0x41d,_0x1275bc:0x41e,_0x22ebab:0x45f,_0x4cc829:0x303},_0x4a88a7={_0x1d2dcb:0x535,_0x11b599:0x27,_0x249d63:0x5e},_0x2fe471={_0x229869:0xaf},_0x344a3d={_0x598c1d:0x4f5};function _0x4c8a65(_0x5314e6,_0x16d9c3,_0x2f27a9,_0x166a8c){return _0x4aa629(_0x5314e6-0x13d,_0x5314e6,_0x2f27a9-0xf3,_0x16d9c3-_0x344a3d._0x598c1d);}const _0x564522=_0x27feaf[_0x4c8a65(_0x45e29f._0x2ba0a7,0x428,_0x45e29f._0x29b645,0x55e)](_0x5366ff['defaultCwd']??process['cwd']()),_0x4e5e7b=(_0x5366ff[_0x30de80(0x38c,0x417,_0x45e29f._0xeb1f45,_0x45e29f._0x40a00f)]??[])[_0x4c8a65(0x3b8,0x3e6,_0x45e29f._0x1929f7,0x3c3)](_0x3afda2=>_0x27feaf[_0x30de80(0x1c1,0x28c,0x1aa,0x1cd)](_0x3afda2)),_0x2381ce=_0x5366ff[_0x4c8a65(_0x45e29f._0x422990,0x5e0,0x4c6,0x6d9)]??DEFAULT_MAX_BYTES,_0x54a6e7=_0x5366ff[_0x4c8a65(0x646,_0x45e29f._0x550e36,_0x45e29f._0x36b08e,_0x45e29f._0xfbec44)]??_0x30de80(0x14c,0x1bf,0xce,0x7e);function _0x30de80(_0x5db07a,_0x41e2a4,_0x296728,_0x20f566){return _0x2f0acf(_0x5db07a- -_0x2fe471._0x229869,_0x41e2a4-0x2e,_0x296728,_0x20f566-0xda);}return defineTool({'name':_0x54a6e7,'description':'View\x20an\x20image\x20file\x20from\x20the\x20workspace\x20or\x20allowed\x20directories\x20so\x20the\x20model\x20can\x20inspect\x20its\x20visual\x20content.\x20Supports\x20PNG,\x20JPEG,\x20WebP,\x20and\x20GIF\x20images.\x20Use\x20this\x20for\x20screenshots,\x20diagrams,\x20photos,\x20and\x20other\x20image\x20files;\x20use\x20FileRead\x20for\x20text\x20files.','inputSchema':{'type':_0x4c8a65(0x4b7,_0x45e29f._0x57e3ac,_0x45e29f._0x3ac432,_0x45e29f._0x56bb09),'properties':{'path':{'type':_0x30de80(_0x45e29f._0xc05012,0x3d4,_0x45e29f._0x573436,0x324)},'detail':{'type':_0x30de80(_0x45e29f._0xc05012,0x32f,0x2b6,0x27d)}},'required':[_0x4c8a65(0x46c,0x4a2,0x5ac,0x4be)]},async *'execute'(_0x1bd44a){const _0x1bd781={_0x4f6039:0x18,_0x254af7:0x1d4},_0x516090=resolveAllowedPath(_0x564522,_0x4e5e7b,_0x1bd44a[_0x56e886(0x40d,_0x3babf2._0x17c6a5,0x50c,_0x3babf2._0x9da4c2)]);await assertWorkspaceFile(_0x516090);function _0x56e886(_0x460c12,_0x5e7b85,_0x53241c,_0x47645f){return _0x4c8a65(_0x53241c,_0x5e7b85-_0x1bd781._0x4f6039,_0x53241c-_0x1bd781._0x254af7,_0x47645f-0x22);}function _0x95fa14(_0x1ad3d7,_0x344127,_0x132eeb,_0x37f482){return _0x4c8a65(_0x132eeb,_0x344127- -_0x4a88a7._0x1d2dcb,_0x132eeb-_0x4a88a7._0x11b599,_0x37f482-_0x4a88a7._0x249d63);}const _0x1e4cf1=await _0x5335a9(_0x516090);if(_0x1e4cf1[_0x56e886(0x467,_0x3babf2._0x670cd3,_0x3babf2._0x2c7ad1,0x3e8)]>_0x2381ce)throw new ToolExecutionError(_0x56e886(_0x3babf2._0x329c34,_0x3babf2._0x1dc7fd,_0x3babf2._0x31255b,0x5ad)+_0x1bd44a['path'],{'path':_0x1bd44a['path'],'maxBytes':_0x2381ce,'size':_0x1e4cf1[_0x56e886(0x36c,0x3e6,_0x3babf2._0x1ffb84,0x453)]});const _0x76269f=await _0x440696(_0x516090),_0x1e931a=detectImageMediaType(_0x76269f,_0x516090);if(!_0x1e931a)throw new ToolExecutionError(_0x56e886(_0x3babf2._0x38e80e,0x427,0x4ed,0x380)+_0x1bd44a[_0x95fa14(-0x9,-0x93,-_0x3babf2._0x5506c4,-_0x3babf2._0x5b7b62)],{'path':_0x1bd44a[_0x56e886(_0x3babf2._0x16e85b,0x4ba,_0x3babf2._0x1a0949,_0x3babf2._0x533537)],'supported':[_0x95fa14(-_0x3babf2._0xcedc6a,-_0x3babf2._0x4acf1e,_0x3babf2._0x28be6d,0x86),_0x95fa14(-0x59,-0x175,-_0x3babf2._0x16b69c,-_0x3babf2._0x3e9410),_0x56e886(0x37b,0x43a,0x55f,0x37d),'.png',_0x95fa14(-0x4b,-0x73,-_0x3babf2._0x132831,-_0x3babf2._0x2aa120)]});const _0x2fbf4f=normalizeDetail(_0x1bd44a[_0x95fa14(-_0x3babf2._0x4d0a5b,-_0x3babf2._0x239f68,-_0x3babf2._0x453754,-_0x3babf2._0x9d2e98)]),_0xfc8af0=[_0x56e886(_0x3babf2._0x254c7e,0x571,_0x3babf2._0x1d43c5,0x5a9)+_0x1bd44a[_0x56e886(0x470,0x4ba,0x548,_0x3babf2._0x476c61)],_0x95fa14(0x13c,0x57,0x193,-0xe3)+_0x1e931a,'Size:\x20'+_0x1e4cf1[_0x56e886(0x3d1,_0x3babf2._0x15f225,0x2f1,_0x3babf2._0x353761)]+_0x95fa14(_0x3babf2._0x467968,_0x3babf2._0x4cf877,-_0x3babf2._0x4370ed,-_0x3babf2._0x54d2ac)][_0x95fa14(-_0x3babf2._0x2e7dae,-0x161,-_0x3babf2._0x1585c8,-_0x3babf2._0x43aa2c)](_0x2fbf4f?[_0x56e886(0x445,_0x3babf2._0x373403,0x49f,0x501)+_0x2fbf4f]:[])[_0x56e886(_0x3babf2._0x23e622,_0x3babf2._0x2e7ad3,_0x3babf2._0x4a345f,0x39b)]('\x0a'),_0x127537=[{'type':_0x56e886(0x5e9,_0x3babf2._0x2bf401,_0x3babf2._0x24f605,0x554),'source':{'type':'base64','media_type':_0x1e931a,'data':_0x76269f[_0x95fa14(_0x3babf2._0x4463d4,0xd8,_0x3babf2._0x4a42c5,_0x3babf2._0x20f795)](_0x56e886(0x35c,_0x3babf2._0x3d3863,_0x3babf2._0x3c93b8,0x31d))}},{'type':'text','text':_0xfc8af0}];return yield createToolOutput(_0xfc8af0,{'path':_0x1bd44a[_0x56e886(0x5ad,_0x3babf2._0x17c6a5,0x59d,_0x3babf2._0xb4c885)],'resolvedPath':_0x516090,'created':_0x1e4cf1[_0x95fa14(_0x3babf2._0xd370ac,_0x3babf2._0x555a94,0xe7,0x2)][_0x56e886(0x2ef,_0x3babf2._0x2ee7cc,_0x3babf2._0xad7002,_0x3babf2._0x4cfb0b)](),'modified':_0x1e4cf1[_0x56e886(_0x3babf2._0x19b0c2,_0x3babf2._0x1275bc,0x540,0x31f)][_0x56e886(0x457,0x39f,0x4d0,_0x3babf2._0x22ebab)](),'size':_0x1e4cf1[_0x56e886(0x4b2,0x3e6,0x522,_0x3babf2._0x4cc829)],'mimeType':_0x1e931a,'encoding':_0x56e886(0x57d,_0x3babf2._0x3d3863,0x4e2,0x50a),..._0x2fbf4f?{'detail':_0x2fbf4f}:{}},_0x127537),void 0x0;}});}import _0x84dbc9 from'turndown';var USER_AGENT=_0x4aa629(-0x1ab,-0xbe,-0x43,-0xbd),DEFAULT_TIMEOUT_MS2=0xea60;function assertFetchableUrl(_0x1a2894){const _0x5ed66c={_0x1f182a:0x44,_0x1f6dd7:0x232,_0x43af45:0x131,_0x23d005:0x11c,_0xde6255:0x13e,_0x521b80:0x38,_0x519b99:0x3f,_0x4870b4:0xeb,_0x48c1a8:0xf7,_0x41da08:0x51,_0x350609:0x108,_0x17bbb7:0x15a,_0x599d56:0x65,_0x37d991:0xed,_0x95e2e7:0x1c,_0x561514:0x10b,_0x4c080e:0x146,_0x2658d0:0x52},_0x1bb727={_0x327b1e:0x1d4},_0x3cd882={_0x19fb66:0xbb};let _0x3b9e0e;function _0x2a0975(_0x336548,_0x397516,_0x240cd5,_0x18a29e){return _0x2f0acf(_0x18a29e- -0x363,_0x397516-0x70,_0x240cd5,_0x18a29e-_0x3cd882._0x19fb66);}try{_0x3b9e0e=new URL(_0x1a2894);}catch{throw new ToolExecutionError(_0x257307(-0x167,-_0x5ed66c._0x1f182a,-_0x5ed66c._0x1f6dd7,-_0x5ed66c._0x43af45),{'url':_0x1a2894});}function _0x257307(_0x14f62c,_0x3b4731,_0x51f1ef,_0x18b2bc){return _0x4aa629(_0x14f62c-_0x1bb727._0x327b1e,_0x3b4731,_0x51f1ef-0x57,_0x18b2bc-0x30);}if(_0x3b9e0e['protocol']!==_0x2a0975(_0x5ed66c._0x23d005,0x106,_0x5ed66c._0xde6255,0x7a)&&_0x3b9e0e[_0x2a0975(-0x176,-0x107,-_0x5ed66c._0x521b80,-0x33)]!==_0x257307(-_0x5ed66c._0x519b99,-_0x5ed66c._0x4870b4,-_0x5ed66c._0x48c1a8,-_0x5ed66c._0x41da08))throw new ToolExecutionError(_0x2a0975(-_0x5ed66c._0x350609,-_0x5ed66c._0x17bbb7,0xe1,-_0x5ed66c._0x599d56),{'url':_0x1a2894});if(_0x3b9e0e['username']||_0x3b9e0e[_0x257307(0x16,-0x22f,-0x7a,-_0x5ed66c._0x37d991)])throw new ToolExecutionError(_0x257307(-_0x5ed66c._0x95e2e7,-0x234,-0xb4,-_0x5ed66c._0x561514),{'url':_0x3b9e0e[_0x2a0975(0xe6,-_0x5ed66c._0x4c080e,_0x5ed66c._0x2658d0,-0x33)]+'//'+_0x3b9e0e['host']+_0x3b9e0e['pathname']});return _0x3b9e0e;}function createTimeoutSignal(_0x346f09,_0x4b084a){const _0x1361b8={_0xec2e35:0x129,_0x589b4d:0x125,_0x3932d4:0xb8,_0x2ee058:0x234,_0x6475da:0x261,_0x3ceb53:0x74,_0x34290f:0x43,_0x460087:0x130,_0x29d57a:0x6e,_0x1f6362:0x180},_0x16be75={_0x158695:0x576,_0x581165:0x6af,_0x37fe3c:0x534},_0x5b4045={_0x3b3ef5:0x4d7,_0xb4001c:0xc2},_0x2718c9={_0x2b8db2:0x15d};function _0x3157fe(_0x486eb3,_0x2b709c,_0x3ffb39,_0x1f5131){return _0x4aa629(_0x486eb3-0x17b,_0x3ffb39,_0x3ffb39-_0x2718c9._0x2b8db2,_0x486eb3-0x189);}const _0x501ba8=new AbortController(),_0x3a7c21=setTimeout(()=>_0x501ba8[_0x34afa4(0x14,0x80,0xb7,-0x76)](new Error(_0x3157fe(0x2e,0x14c,0x14a,-0x89))),_0x4b084a),_0x3db41f=()=>_0x501ba8[_0x3157fe(0x24a,0x177,0x24d,0x28a)](_0x346f09[_0x34afa4(-0x1ee,-0xbc,-0xfb,-0x75)]);_0x346f09[_0x3157fe(_0x1361b8._0xec2e35,0x39,_0x1361b8._0x589b4d,_0x1361b8._0x3932d4)]?_0x501ba8[_0x3157fe(0x24a,0x13d,_0x1361b8._0x2ee058,_0x1361b8._0x6475da)](_0x346f09[_0x3157fe(0x98,0x1b8,_0x1361b8._0x3ceb53,-_0x1361b8._0x34290f)]):_0x346f09[_0x3157fe(0xed,_0x1361b8._0x460087,_0x1361b8._0x29d57a,_0x1361b8._0x1f6362)]('abort',_0x3db41f,{'once':!![]});function _0x34afa4(_0x683699,_0x2e7f2c,_0x34d663,_0x42ae9c){return _0x2f0acf(_0x34d663- -0x347,_0x2e7f2c-0x100,_0x2e7f2c,_0x42ae9c-0x39);}return{'signal':_0x501ba8['signal'],'cleanup':()=>{const _0x548d2e={_0x173f9f:0x392};function _0x40a8ac(_0x12e76d,_0x39ff08,_0x360072,_0x43f2f4){return _0x34afa4(_0x12e76d-0xb,_0x39ff08,_0x43f2f4-_0x5b4045._0x3b3ef5,_0x43f2f4-_0x5b4045._0xb4001c);}clearTimeout(_0x3a7c21);function _0x2e5d2a(_0x2ceec3,_0x5333c8,_0x497806,_0x3468cf){return _0x34afa4(_0x2ceec3-0x17a,_0x5333c8,_0x497806-_0x548d2e._0x173f9f,_0x3468cf-0x174);}_0x346f09[_0x40a8ac(0x4ad,_0x16be75._0x158695,0x31c,0x436)](_0x40a8ac(_0x16be75._0x581165,_0x16be75._0x37fe3c,0x4aa,0x58e),_0x3db41f);}};}function createWebFetchTool(_0x31d894={}){const _0x22382c={_0x418cf3:0xd0,_0x3bb96b:0x2a,_0x17493e:0x30,_0x35d17b:0xb2,_0x482081:0x679,_0x135b98:0x664,_0x364d47:0x75,_0x130ff5:0xa2,_0x548a2d:0x3fe,_0x43d13:0x4ce,_0x4ec772:0x40e,_0x209369:0x5c5,_0x304ac6:0x18,_0x14d2bc:0x10f,_0x53ffed:0x1ca,_0x43ef64:0x99,_0x2c0e35:0x372,_0x4138b5:0x42d,_0xac953d:0x38b,_0x177b01:0x490,_0x1a8dc2:0x69b,_0x9d11d8:0x6a8,_0x4dcad4:0x76,_0x46da82:0x7b,_0x46231b:0x45d,_0x13ef2b:0x115,_0x3ce55a:0x5d,_0x5c3ea3:0x233,_0x2aa1d4:0x73,_0x264f68:0x2b,_0x18e474:0x28,_0x3e2d01:0x14,_0x493442:0x73,_0x24679d:0x291,_0x48d559:0x14e},_0x41159a={_0x3f399d:0xdf,_0x1d68aa:0x226,_0x474666:0x263,_0x55a5f1:0x2ea,_0x26808c:0x132,_0x1e86c7:0x37,_0x21acc1:0xa4,_0x1d4d0b:0x33,_0xa8be39:0x50,_0x22ab3c:0x15c,_0x3d061f:0x38,_0x4deb77:0x3f,_0x4fe81d:0x83,_0x2e07d8:0x94,_0x1de98c:0x9f,_0x3c4df1:0x166,_0x3aef4c:0x4b,_0x190d68:0x130,_0x279caf:0x81,_0x3642cc:0xd9,_0x7ef439:0x15,_0x187d72:0x6a,_0x142906:0xd9,_0x3d6835:0x152,_0x546343:0x27,_0x4b0205:0x4e,_0x238290:0xdc,_0xc6613:0x1d8,_0x479044:0x7b,_0x429a64:0x2e,_0x9f7a5d:0xa,_0x1b51b3:0x5a,_0x5ac50f:0x14,_0x3caf8a:0x8,_0x3444f3:0x4,_0x3d503b:0x68,_0x3a398c:0x16,_0x38c693:0x14,_0x3e082d:0x202,_0x42bc28:0x54,_0x23c71f:0x180,_0x14a2a0:0x1c6,_0x1a1099:0x13b,_0x29d611:0x197,_0x48cbd8:0x1ba,_0x10bb9f:0x11e,_0x44a43c:0x115},_0x44fdaf={_0x3e5201:0x7e},_0x3820a2={_0xa40804:0xf5},_0xb15c5a={_0x46fc93:0x1c0,_0x205875:0x5a},_0x36b099={_0xfd7acb:0x14a,_0x4967bb:0xc1},_0x3739e8=_0x31d894[_0x52549c(-_0x22382c._0x418cf3,-_0x22382c._0x3bb96b,_0x22382c._0x17493e,-_0x22382c._0x35d17b)]??_0x44c77c(_0x22382c._0x482081,0x5a7,_0x22382c._0x135b98,0x720),_0x5ed3e7=_0x31d894[_0x52549c(-0x56,-_0x22382c._0x364d47,-_0x22382c._0x130ff5,0x9)]??DEFAULT_TIMEOUT_MS2,_0x3fe08a=new _0x84dbc9({'headingStyle':_0x44c77c(_0x22382c._0x548a2d,_0x22382c._0x43d13,0x4f7,0x614),'codeBlockStyle':_0x44c77c(_0x22382c._0x4ec772,0x452,0x4f9,_0x22382c._0x209369),'bulletListMarker':'-'});function _0x52549c(_0x461d22,_0x6eeb80,_0x2dd3e4,_0x16d99e){return _0x4aa629(_0x461d22-0x10f,_0x2dd3e4,_0x2dd3e4-_0x36b099._0xfd7acb,_0x16d99e- -_0x36b099._0x4967bb);}_0x3fe08a['remove'](['script',_0x52549c(-_0x22382c._0x304ac6,0xb,-_0x22382c._0x14d2bc,-0x4d),_0x52549c(-0x47,-_0x22382c._0x53ffed,0x39,-_0x22382c._0x43ef64),_0x44c77c(0x3f9,_0x22382c._0x2c0e35,_0x22382c._0x4138b5,0x50d),'nav',_0x44c77c(_0x22382c._0xac953d,0x35e,_0x22382c._0x177b01,0x420),_0x44c77c(0x5bb,_0x22382c._0x1a8dc2,_0x22382c._0x9d11d8,0x78d),_0x52549c(-_0x22382c._0x4dcad4,0xad,-0x1bc,-_0x22382c._0x46da82)]);function _0x44c77c(_0x3ec3e5,_0x3cacbf,_0x50b5d3,_0x3a3ccd){return _0x4aa629(_0x3ec3e5-_0xb15c5a._0x46fc93,_0x3cacbf,_0x50b5d3-_0xb15c5a._0x205875,_0x50b5d3-0x58c);}return defineTool({'name':_0x3739e8,'description':_0x44c77c(0x539,0x3da,_0x22382c._0x46231b,0x585),'inputSchema':{'type':_0x52549c(-_0x22382c._0x13ef2b,-_0x22382c._0x3ce55a,-_0x22382c._0x5c3ea3,-0xfe),'properties':{'description':{'type':_0x52549c(0x22,0x84,0x19,-_0x22382c._0x2aa1d4)},'url':{'type':_0x52549c(_0x22382c._0x264f68,-_0x22382c._0x18e474,_0x22382c._0x3e2d01,-_0x22382c._0x493442)}},'required':[_0x52549c(-_0x22382c._0x24679d,-0x34,-0x79,-_0x22382c._0x48d559)]},async *'execute'(_0x1c9e44,_0x34e816){const _0x5539af=assertFetchableUrl(_0x1c9e44[_0x38630b(_0x41159a._0x3f399d,0x13a,0x6,0x123)])[_0xe77905(_0x41159a._0x1d68aa,_0x41159a._0x474666,_0x41159a._0x55a5f1,0x258)]();if(_0x34e816[_0x38630b(-_0x41159a._0x26808c,-_0x41159a._0x1e86c7,-0x64,-0x131)][_0x38630b(0x156,-_0x41159a._0x21acc1,_0x41159a._0x1d4d0b,_0x41159a._0xa8be39)])throw new ToolExecutionError(_0x38630b(-0x3f,-_0x41159a._0x22ab3c,-_0x41159a._0x3d061f,-0xbe),{'url':_0x5539af});const _0x10e235=createTimeoutSignal(_0x34e816[_0xe77905(-_0x41159a._0x4deb77,0x6c,_0x41159a._0x4fe81d,0x49)],_0x5ed3e7);function _0x38630b(_0x52b457,_0x371b3d,_0x19299d,_0x3fdedf){return _0x44c77c(_0x52b457-0x1ec,_0x371b3d,_0x19299d- -0x4f9,_0x3fdedf-_0x3820a2._0xa40804);}let _0x2277a9='',_0x5a582e=0x0,_0x424271;function _0xe77905(_0x109e4d,_0x41ff17,_0x4c5c09,_0x139512){return _0x44c77c(_0x109e4d-0xeb,_0x109e4d,_0x139512- -0x44c,_0x139512-_0x44fdaf._0x3e5201);}try{const _0xb3287c=await fetch(_0x5539af,{'headers':{'User-Agent':USER_AGENT},'signal':_0x10e235[_0x38630b(-_0x41159a._0x2e07d8,_0x41159a._0x1de98c,-0x64,-_0x41159a._0x3c4df1)]});if(!_0xb3287c['ok'])throw new ToolExecutionError('HTTP\x20'+_0xb3287c[_0x38630b(-_0x41159a._0x3aef4c,_0x41159a._0x190d68,0xaf,_0x41159a._0x279caf)]+'\x20'+_0xb3287c[_0xe77905(0x4d,-0x13,_0x41159a._0x3642cc,-_0x41159a._0x7ef439)],{'url':_0x5539af,'statusCode':_0xb3287c['status']});_0x2277a9=_0xb3287c['headers'][_0x38630b(0x69,-0x82,_0x41159a._0x187d72,0x81)](_0x38630b(-_0x41159a._0x142906,_0x41159a._0x3d6835,_0x41159a._0x546343,-_0x41159a._0x4b0205))??'',_0x5a582e=_0xb3287c[_0xe77905(0x206,0x1e8,0x172,0x15c)],_0x424271=await _0xb3287c[_0x38630b(0x116,0x32,0x2b,_0x41159a._0x238290)]();}catch(_0x5a497a){if(_0x5a497a instanceof ToolExecutionError)throw _0x5a497a;const _0x568a50=_0x5a497a instanceof Error?_0x5a497a['message']:String(_0x5a497a);throw new ToolExecutionError(_0x568a50,{'url':_0x5539af});}finally{_0x10e235[_0xe77905(_0x41159a._0xc6613,0x1c9,0x186,0xba)]();}const _0x3f02ac=new Date()[_0xe77905(-0x66,-_0x41159a._0x479044,0xd8,-_0x41159a._0x429a64)]();let _0x246ffc,_0x9dc9c0;if(_0x2277a9[_0x38630b(_0x41159a._0x9f7a5d,_0x41159a._0x1b51b3,_0x41159a._0x5ac50f,-0xcc)]('application/json'))_0x246ffc=_0xe77905(0x18e,-0xea,-_0x41159a._0x3caf8a,0x5f)+_0x424271+'\x0a```',_0x9dc9c0=_0x38630b(_0x41159a._0x479044,_0x41159a._0x3444f3,_0x41159a._0x3d503b,_0x41159a._0x3a398c);else _0x2277a9[_0x38630b(0x13c,0x7f,_0x41159a._0x38c693,-0xf0)](_0xe77905(0x1af,_0x41159a._0x3e082d,_0x41159a._0x42bc28,_0x41159a._0x23c71f))?(_0x246ffc=_0x3fe08a[_0xe77905(0x8c,0x13c,0xa1,_0x41159a._0x14a2a0)](_0x424271),_0x9dc9c0=_0xe77905(0x244,_0x41159a._0x1a1099,_0x41159a._0x29d611,_0x41159a._0x48cbd8)):(_0x246ffc=_0x424271,_0x9dc9c0=_0x38630b(-0x6e,0xda,0x2b,_0x41159a._0x10bb9f));return yield createToolOutput(_0x246ffc,{'url':_0x5539af,'contentType':_0x2277a9,'statusCode':_0x5a582e,'format':_0x9dc9c0,'size':_0x424271[_0xe77905(0xe3,_0x41159a._0x44a43c,0x25,0xc6)],'fetchedAt':_0x3f02ac}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x4aa629(0x140,0x2b,-0x8e,0x9b);function normalizeUrl(_0x3c54e0){const _0x26f41c={_0x57f5eb:0xa2,_0x539ecc:0xfe,_0x2b0394:0xd,_0x3fc70f:0xe5,_0x2d3e6c:0xe2,_0x42eb7d:0x1e3,_0x2d9ade:0x4eb,_0x199541:0x430,_0x575f8e:0x3ce,_0x11fcd4:0xa0,_0x50f464:0xd2,_0x37bddc:0x9f,_0x4f590f:0x31a,_0x2a5317:0x281,_0x3e6f0a:0x261,_0x58b3e9:0x36c,_0x35c2d1:0x357,_0x33e563:0xef,_0xe44d3a:0x73},_0x47306e={_0x20905c:0x366,_0x48d2f3:0x16d},_0x509209={_0x4e3c47:0x153};function _0x3d19ca(_0x1414e3,_0x3bc96d,_0x2b6d07,_0x3c8880){return _0x2f0acf(_0x3bc96d-0x5f,_0x3bc96d-0x196,_0x1414e3,_0x3c8880-_0x509209._0x4e3c47);}function _0xb43c67(_0x325255,_0x4942cd,_0x3c9da1,_0x4c955c){return _0x2f0acf(_0x325255- -_0x47306e._0x20905c,_0x4942cd-_0x47306e._0x48d2f3,_0x4942cd,_0x4c955c-0xe0);}try{const _0x34a9ff=new URL(_0x3c54e0);for(const _0x4c980d of[_0xb43c67(0x81,_0x26f41c._0x57f5eb,0xce,0x10b),_0xb43c67(-0x14,_0x26f41c._0x539ecc,-_0x26f41c._0x2b0394,-_0x26f41c._0x3fc70f),_0xb43c67(-_0x26f41c._0x2d3e6c,-0xd6,-0x1e8,-_0x26f41c._0x42eb7d),_0x3d19ca(_0x26f41c._0x2d9ade,_0x26f41c._0x199541,0x325,_0x26f41c._0x575f8e),_0xb43c67(0x64,0xeb,0xdf,-_0x26f41c._0x11fcd4),_0xb43c67(_0x26f41c._0x50f464,_0x26f41c._0x37bddc,0xe2,0x166),_0x3d19ca(_0x26f41c._0x4f590f,_0x26f41c._0x2a5317,_0x26f41c._0x3e6f0a,0x151),'mc_cid',_0x3d19ca(_0x26f41c._0x58b3e9,0x38a,0x331,_0x26f41c._0x35c2d1)]){_0x34a9ff['searchParams']['delete'](_0x4c980d);}return _0x34a9ff[_0xb43c67(_0x26f41c._0x33e563,0x1ad,_0x26f41c._0xe44d3a,0xb8)]();}catch{return _0x3c54e0;}}function cseDateRestrict(_0x1a2eb6){const _0x2f9545={_0x585513:0x291,_0xa07045:0x194,_0xc76601:0x1ad,_0x20934c:0xa3,_0xb48e0c:0x98,_0x39af79:0x48,_0x4fbb1:0x17f,_0x5940a8:0xf4,_0x31fa05:0x134},_0x4af2ff={_0x49937b:0x485,_0x16cd51:0x5d},_0x5bf860={_0x2c483e:0x388,_0x37596f:0x15e,_0x572fd9:0x1c5};if(_0x1a2eb6<=0x0)return void 0x0;function _0x3e7d4b(_0x2d96d1,_0x2d9f48,_0x33218e,_0x3ff712){return _0x2f0acf(_0x2d9f48- -_0x5bf860._0x2c483e,_0x2d9f48-_0x5bf860._0x37596f,_0x33218e,_0x3ff712-_0x5bf860._0x572fd9);}if(_0x1a2eb6<=0x1e)return'd'+Math[_0x19123e(-0x145,-_0x2f9545._0x585513,-_0x2f9545._0xa07045,-_0x2f9545._0xc76601)](0x1,Math[_0x3e7d4b(_0x2f9545._0x20934c,_0x2f9545._0xb48e0c,_0x2f9545._0x39af79,0x2a)](_0x1a2eb6));if(_0x1a2eb6<=0x16d)return'm'+Math[_0x3e7d4b(0xac,-0x37,-_0x2f9545._0x4fbb1,_0x2f9545._0x5940a8)](_0x1a2eb6/0x1e);function _0x19123e(_0x5bc7de,_0x103528,_0x5935f4,_0x2b4000){return _0x2f0acf(_0x2b4000- -_0x4af2ff._0x49937b,_0x103528-0x19b,_0x103528,_0x2b4000-_0x4af2ff._0x16cd51);}return'y'+Math[_0x19123e(-0x22c,-0x175,-0x156,-_0x2f9545._0x31fa05)](_0x1a2eb6/0x16d);}function addSiteFilters(_0x37a446,_0xc1f2ac){const _0x3602f0={_0x55cd38:0x154,_0x222749:0x1db,_0x242a06:0x26b,_0x28603c:0x133,_0x437a4e:0x270,_0x2d539a:0x239,_0x5355c6:0xd0,_0xe7317f:0x1d5,_0x5a1249:0x1fc,_0x57324d:0x291,_0x36132b:0x1f5,_0x39e996:0x106,_0x4e9057:0x1d6},_0x9f2521={_0x37dfd2:0x128,_0x33dd7d:0x71};if(_0xc1f2ac[_0x1b8de3(-_0x3602f0._0x55cd38,-0x1e1,-0x2ef,-_0x3602f0._0x222749)]===0x0)return _0x37a446['trim']();function _0x4e3295(_0x4222b0,_0x31442d,_0x3dfbfc,_0x22f513){return _0x4aa629(_0x4222b0-0x29,_0x22f513,_0x3dfbfc-0x122,_0x4222b0-0x343);}function _0x1b8de3(_0x262c44,_0x2b31e1,_0x14ca3a,_0x5db9eb){return _0x2f0acf(_0x5db9eb- -0x49e,_0x2b31e1-_0x9f2521._0x37dfd2,_0x14ca3a,_0x5db9eb-_0x9f2521._0x33dd7d);}return(_0x37a446+'\x20('+_0xc1f2ac[_0x1b8de3(-_0x3602f0._0x242a06,-_0x3602f0._0x28603c,-0x239,-_0x3602f0._0x437a4e)](_0x20c2bc=>'site:'+_0x20c2bc)[_0x1b8de3(-0xad,-_0x3602f0._0x2d539a,-_0x3602f0._0x5355c6,-_0x3602f0._0xe7317f)](_0x4e3295(_0x3602f0._0x5a1249,_0x3602f0._0x57324d,0x1da,0x112))+')')[_0x4e3295(_0x3602f0._0x36132b,_0x3602f0._0x39e996,_0x3602f0._0x4e9057,0x1be)]();}function normalizeType(_0x41be0c){const _0x2d6cfe={_0x3a47eb:0x212,_0x556114:0x344,_0x4b09d7:0x14d,_0x5456af:0x135},_0x5b058c={_0x8684d5:0x318,_0x4d24e9:0x189,_0x3882c6:0x11},_0x8dd0fc={_0x21d1bf:0x39,_0x25a451:0x14c};function _0x31ab07(_0x2c64dc,_0x500b6b,_0x21992a,_0x5dba18){return _0x4aa629(_0x2c64dc-0x186,_0x21992a,_0x21992a-_0x8dd0fc._0x21d1bf,_0x2c64dc-_0x8dd0fc._0x25a451);}function _0x1d7c27(_0x1d545c,_0xd989b0,_0x55abea,_0x556e4b){return _0x2f0acf(_0x1d545c- -_0x5b058c._0x8684d5,_0xd989b0-_0x5b058c._0x4d24e9,_0xd989b0,_0x556e4b-_0x5b058c._0x3882c6);}return _0x41be0c==='images'?_0x31ab07(_0x2d6cfe._0x3a47eb,_0x2d6cfe._0x556114,_0x2d6cfe._0x4b09d7,0x215):_0x1d7c27(-0x79,-_0x2d6cfe._0x5456af,-0x10e,-0x122);}async function fetchJson(_0x442f05,_0x20c75b){const _0x7fff4a={_0x2eab7c:0x73b,_0x4bf6fc:0x623,_0x14cda9:0x6a5,_0x3e2411:0x659,_0x3b9b92:0x2c2,_0x1f6b3a:0x627,_0x3a644d:0x6a7,_0x3a1c4c:0x520},_0x2a3a92={_0x4450ee:0xe9},_0x4fe78e=await fetch(_0x442f05,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x4c7621(0x629,0x520,0x594,0x59b)},'signal':_0x20c75b});function _0x4c7621(_0x4b693f,_0x1a36f2,_0x412f67,_0x239381){return _0x2f0acf(_0x4b693f-0x2ce,_0x1a36f2-_0x2a3a92._0x4450ee,_0x412f67,_0x239381-0x1c8);}if(!_0x4fe78e['ok']){await _0x4fe78e[_0x4c7621(0x669,_0x7fff4a._0x2eab7c,_0x7fff4a._0x4bf6fc,0x787)]?.[_0x4c7621(0x58d,_0x7fff4a._0x14cda9,0x53d,0x4d8)]()[_0x4c7621(0x66d,0x549,0x75c,_0x7fff4a._0x3e2411)](()=>void 0x0);throw new ToolExecutionError('HTTP\x20'+_0x4fe78e['status']+'\x20'+_0x4fe78e[_0x20af44(-_0x7fff4a._0x3b9b92,-0x2d4,-0x3c9,-0x28e)],{'statusCode':_0x4fe78e[_0x4c7621(_0x7fff4a._0x1f6b3a,_0x7fff4a._0x3a644d,_0x7fff4a._0x3a1c4c,0x6b1)]});}function _0x20af44(_0x20fd00,_0x550f47,_0x381bf9,_0x2efb7c){return _0x2f0acf(_0x2efb7c- -0x476,_0x550f47-0x20,_0x20fd00,_0x2efb7c-0x67);}return await _0x4fe78e['json']();}async function hydrateResults(_0x8e4390,_0x46414d,_0x111962){const _0x4de188={_0x5e7346:0x308,_0x9c1a47:0x2bf,_0x3760b9:0x321,_0x5def9b:0x309,_0x32332f:0x148,_0x3e3caf:0x204,_0x700d1d:0x189,_0xf60c1e:0x26f,_0x944a06:0x299,_0x3214f3:0x198,_0x1b42ae:0x183,_0x2fcf51:0x293,_0x1fba33:0x3df,_0x34b719:0x2fa},_0x38df97={_0x172cdd:0x1ab,_0x494ba9:0x15e,_0x43b30c:0x128,_0x2ee095:0x24a,_0xd77a08:0x34a,_0x2466a1:0x3d6,_0x3c8772:0x35a,_0x33e861:0x311,_0x4e0d10:0x1e5,_0x1f1bc6:0x2f9,_0x158aa2:0x1c8,_0x4f7af2:0x362,_0x162f75:0x38e,_0x5134d7:0x307,_0x2b98ae:0x37e,_0x2625e2:0x2fd,_0x49b176:0x2da,_0xedafac:0x202,_0x1aaf2e:0x365,_0x2fe23d:0x23b,_0x3cd63:0x2eb,_0x453259:0x39f,_0x580812:0x2f0,_0x6e63f8:0x31f,_0xeb7746:0x42e,_0x4618d6:0x3a6,_0x28d31b:0x349,_0x1fba19:0x346,_0x7f934d:0x422,_0x5e0e17:0x390,_0x437f40:0x1bd,_0x16b9af:0x2f3,_0x3357ab:0x433,_0x52be35:0x35b,_0x3b43f4:0x241,_0x79f2ca:0x2e7,_0x5c669b:0x339,_0x599c61:0x2fc,_0x269f63:0x25e},_0x340217={_0x305aab:0x3bc,_0xee5f8c:0xcd},_0x433064={_0x78cfe1:0x17a,_0xc666eb:0x16d},_0xcde6c4={_0x4f2d9c:0x4d,_0x23cf48:0x3};function _0x570d43(_0x318508,_0xc443e5,_0x816c09,_0x1befb6){return _0x2f0acf(_0x816c09- -0x3c6,_0xc443e5-_0xcde6c4._0x4f2d9c,_0xc443e5,_0x1befb6-_0xcde6c4._0x23cf48);}const _0xb3a706=await Promise[_0x13a147(0x1e2,0x38c,0x2d8,_0x4de188._0x5e7346)](_0x8e4390[_0x13a147(_0x4de188._0x9c1a47,0x420,_0x4de188._0x3760b9,_0x4de188._0x5def9b)](0x0,0xa)['map'](async _0x444676=>{function _0x10cd38(_0xef4ea3,_0x4080de,_0x374b8c,_0x4863ef){return _0x570d43(_0xef4ea3-_0x433064._0x78cfe1,_0x374b8c,_0x4863ef-0x374,_0x4863ef-_0x433064._0xc666eb);}function _0x1d9867(_0x3f64f,_0x4ffac4,_0xb48d0b,_0x2fb5b1){return _0x570d43(_0x3f64f-0x1d1,_0x2fb5b1,_0xb48d0b-_0x340217._0x305aab,_0x2fb5b1-_0x340217._0xee5f8c);}try{const _0x1b7f63=await fetch(_0x444676['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x46414d,'Accept':'text/html'},'signal':_0x111962});if(!_0x1b7f63['ok'])return _0x444676;const _0x139c3a=await _0x1b7f63[_0x1d9867(_0x38df97._0x172cdd,0x223,0x2cb,0x214)](),_0x446291=load(_0x139c3a),_0x2d7e35=_0x446291('meta[property=\x27og:title\x27]')[_0x1d9867(_0x38df97._0x494ba9,_0x38df97._0x43b30c,_0x38df97._0x2ee095,0x2f4)](_0x1d9867(0x3a2,_0x38df97._0xd77a08,_0x38df97._0x2466a1,_0x38df97._0x3c8772))||_0x446291('title')['first']()[_0x10cd38(0x36c,_0x38df97._0x33e861,0x23d,0x283)]()[_0x1d9867(0x25d,0x192,_0x38df97._0x4e0d10,_0x38df97._0x1f1bc6)](),_0x491fbc=_0x446291('meta[name=\x27description\x27]')[_0x1d9867(_0x38df97._0x158aa2,0x300,_0x38df97._0x2ee095,_0x38df97._0x4f7af2)](_0x10cd38(0x340,0x485,0x274,_0x38df97._0x162f75))||_0x446291('meta[property=\x27og:description\x27]')['attr'](_0x1d9867(0x4f5,0x2ce,0x3d6,0x380))||_0x444676['snippet'],_0x2a298f=_0x446291(_0x10cd38(0x282,_0x38df97._0x5134d7,0x3ff,_0x38df97._0x2b98ae))[_0x10cd38(_0x38df97._0x2625e2,_0x38df97._0x49b176,0x143,_0x38df97._0xedafac)](_0x1d9867(_0x38df97._0x1aaf2e,0x4fa,0x3d6,0x32e))||_0x446291(_0x10cd38(_0x38df97._0x2fe23d,_0x38df97._0x3cd63,_0x38df97._0x453259,_0x38df97._0x580812))[_0x10cd38(0x22e,0x33c,_0x38df97._0x6e63f8,_0x38df97._0xedafac)](_0x1d9867(_0x38df97._0xeb7746,0x495,0x375,_0x38df97._0x4618d6))||_0x444676[_0x10cd38(_0x38df97._0x28d31b,0x406,0x247,0x35d)],_0x550043=_0x446291(_0x1d9867(_0x38df97._0x1fba19,0x477,_0x38df97._0x7f934d,_0x38df97._0x5e0e17))[_0x10cd38(_0x38df97._0x437f40,_0x38df97._0x16b9af,0x143,0x202)]('href');return{..._0x444676,'title':_0x2d7e35||_0x444676[_0x10cd38(0x35d,_0x38df97._0x3357ab,0x22f,_0x38df97._0x52be35)],'snippet':_0x491fbc,'url':_0x550043?normalizeUrl(new URL(_0x550043,_0x444676[_0x1d9867(0x272,_0x38df97._0x3b43f4,0x2a6,0x2e6)])[_0x10cd38(_0x38df97._0x79f2ca,_0x38df97._0x5c669b,0x432,0x403)]()):_0x444676[_0x10cd38(_0x38df97._0x599c61,0x32b,0x127,_0x38df97._0x269f63)],'publishedAt':_0x2a298f};}catch{return _0x444676;}}));function _0x13a147(_0x58fe86,_0x5c9ea9,_0x359ca6,_0x5b5728){return _0x2f0acf(_0x5b5728-0xcc,_0x5c9ea9-0x141,_0x5c9ea9,_0x5b5728-0x107);}const _0x2a2643=new Map(_0x8e4390[_0x570d43(-_0x4de188._0x32332f,-_0x4de188._0x3e3caf,-_0x4de188._0x700d1d,-_0x4de188._0xf60c1e)](0x0,0xa)[_0x570d43(-0x1a7,-_0x4de188._0x944a06,-_0x4de188._0x3214f3,-_0x4de188._0x1b42ae)]((_0x210e00,_0x2de016)=>[_0x210e00[_0x570d43(-0x5,-0x137,-0x116,-0x30)],_0xb3a706[_0x2de016]]));return _0x8e4390[_0x13a147(_0x4de188._0x2fcf51,_0x4de188._0x1fba33,0x1f6,_0x4de188._0x34b719)](_0x4c1d5f=>_0x2a2643[_0x570d43(-0x10c,-0x1db,-0xb2,-0xf9)](_0x4c1d5f[_0x570d43(-0x138,-0x37,-0x116,-0x187)])??_0x4c1d5f);}function formatResults(_0x1749ee){const _0x17e53f={_0x252a29:0x3fd,_0x42abc2:0x395,_0x18e5a6:0x2d5,_0x142603:0x439,_0x294e3e:0x3be,_0x4cbb37:0x49f},_0x3b818b={_0x54ee6d:0x42c,_0x3bb832:0x3d8,_0x3072be:0x41e,_0x17424d:0x512,_0x5cb2c1:0x401,_0x3268a3:0x2f1,_0x599872:0xb,_0x4fd25e:0x3cb,_0x342a6a:0x177,_0x41fbf4:0x3b6,_0x12aed9:0x3f0,_0x5d58fa:0x30d,_0x3b600f:0x30a,_0x37e318:0x255},_0x351ff9={_0x861e23:0x14e,_0x139f86:0x21f},_0x52598f={_0x4f2541:0x40,_0x4bcafb:0xea},_0x59f66b={_0x50af25:0x260,_0x22b903:0x11};if(_0x1749ee['length']===0x0)return _0x60ce8f(0x4a8,_0x17e53f._0x252a29,_0x17e53f._0x42abc2,_0x17e53f._0x18e5a6);function _0x567bd2(_0xed1201,_0x1874d4,_0x4a8fc1,_0x992d65){return _0x2f0acf(_0x1874d4-_0x59f66b._0x50af25,_0x1874d4-_0x59f66b._0x22b903,_0x4a8fc1,_0x992d65-0x87);}function _0x60ce8f(_0x2011c8,_0x166bac,_0x373b75,_0xaeb80f){return _0x2f0acf(_0x373b75- -_0x52598f._0x4f2541,_0x166bac-0xd0,_0xaeb80f,_0xaeb80f-_0x52598f._0x4bcafb);}return _0x1749ee[_0x567bd2(_0x17e53f._0x142603,0x48e,_0x17e53f._0x294e3e,_0x17e53f._0x4cbb37)](_0x3e3a24=>{const _0x28d57c=[_0x3e3a24[_0x218e28(_0x3b818b._0x54ee6d,0x499,0x3ac,0x317)][_0x218e28(0x4ec,0x3ad,0x3b2,0x429)]+'.\x20'+_0x3e3a24[_0x218e28(_0x3b818b._0x3bb832,_0x3b818b._0x3072be,0x3ee,_0x3b818b._0x17424d)],_0x3e3a24[_0x218e28(_0x3b818b._0x5cb2c1,0x3f5,_0x3b818b._0x3268a3,0x280)]];if(_0x3e3a24[_0x3264a4(0x11,-0x103,-0x84,_0x3b818b._0x599872)])_0x28d57c['push'](_0x3e3a24[_0x218e28(0x53f,0x32b,0x414,_0x3b818b._0x4fd25e)]);function _0x218e28(_0x6605e8,_0x5026a8,_0x26809c,_0x519320){return _0x567bd2(_0x6605e8-_0x351ff9._0x861e23,_0x26809c- -_0x351ff9._0x139f86,_0x519320,_0x519320-0x183);}function _0x3264a4(_0x3b6157,_0x18c960,_0x21c29c,_0x3ac6e4){return _0x567bd2(_0x3b6157-0x19e,_0x21c29c- -0x6b7,_0x18c960,_0x3ac6e4-0x19c);}if(_0x3e3a24['publishedAt'])_0x28d57c[_0x3264a4(-0x162,-_0x3b818b._0x342a6a,-0x1e9,-0x309)]('Published:\x20'+_0x3e3a24[_0x218e28(_0x3b818b._0x41fbf4,0x3cb,_0x3b818b._0x12aed9,0x41d)]);return _0x28d57c[_0x218e28(_0x3b818b._0x5d58fa,0x2b1,_0x3b818b._0x3b600f,_0x3b818b._0x37e318)]('\x0a');})['join']('\x0a\x0a');}async function searchGoogleCse(_0x4ee0a0,_0x27ffd8,_0xc88436){const _0x3abe6a={_0x2a2b5f:0x498,_0xdb16d4:0x397,_0x55b4cc:0x405,_0x36082d:0x4ad,_0x577410:0x35,_0x25eaa2:0x4b4,_0x5b2f1a:0x450,_0x1a2a00:0x534,_0x56ddf7:0x1b9,_0x1154f8:0x316,_0x4b8f4d:0x223,_0x36417f:0x1f2,_0x435544:0x1aa,_0x33542a:0x22b,_0x1e2db7:0x1a6,_0x56e38a:0x257,_0x4098ca:0x7d,_0x3ff728:0x11b,_0x288082:0x244,_0x49f12e:0xc2,_0x388b59:0x2d,_0x1d1493:0x2ed,_0x26c2c5:0x3a7,_0x421b0e:0x54d,_0x141e07:0x29,_0x30d5fe:0x5d5,_0x530149:0x264,_0x2200a2:0x3db,_0x43d6b1:0x332,_0x1900d8:0x330,_0xe144c8:0x2f5,_0x31c727:0x2e7,_0x11fc94:0x360,_0x29c208:0x238,_0x3c5b55:0x4ea,_0x59a4a2:0x456,_0x496d4f:0x3d7,_0x17746c:0x49f,_0x5392c1:0x4de,_0x24acde:0x66e,_0x3097ad:0x528,_0x2f7787:0x4da,_0x511701:0xfc,_0x3485b9:0x6,_0x40c9ab:0x9,_0x4600ff:0x341,_0x4b11e3:0x49d,_0x42aec5:0x586,_0x4ea9be:0x5ab,_0x2134b3:0x29d,_0x1a5031:0x296,_0x5a48cf:0x407,_0x3d3898:0x528,_0x25750b:0x57f,_0x1c80a6:0x2b6,_0x368ea1:0x34b,_0x16312f:0x4ba,_0x44393e:0x1ae,_0x138193:0x541,_0x3e90b4:0x4f7,_0x1c0c92:0x583,_0x166c8e:0x121,_0x27b552:0xc1,_0x257b56:0x124,_0x1e3c31:0x1e2,_0x2f8a9a:0x340,_0x584174:0x12f,_0x490eaf:0x36,_0x31cf56:0x102,_0x1bf195:0xde,_0x5ad6b7:0x174,_0x1b0fc0:0x158,_0x32d300:0x16d,_0x430917:0xd4,_0x59c297:0x110,_0x431c13:0x127,_0x127636:0x373,_0xf7d365:0x24c,_0x37f934:0x1e5,_0x390ef1:0x2fc,_0x1edb46:0x28b,_0x210aa2:0x215,_0x189434:0x59d,_0x5a3e98:0x73,_0x17dfb6:0xe,_0x26b48f:0x57d,_0x23767c:0x507,_0x210d61:0x317,_0x10c26b:0x4d0,_0x4e4a85:0x293,_0x43e6c1:0x322,_0x114d67:0x360,_0x3c3c5b:0x2a3,_0x5bb5a5:0x3c7,_0x511034:0x42c,_0xb37035:0x617,_0x362d29:0x624,_0xee1999:0x67f,_0x4ff1ea:0x20a,_0x136ea4:0x34f,_0x10919d:0x255,_0x81d74f:0x3f2,_0x19fac5:0x2ba,_0xc9203d:0x394,_0x37d378:0x386,_0x6ba042:0x1bd,_0x2aba45:0x25e,_0x2452e1:0x267,_0x3b96e6:0x20f,_0x431ad5:0x1f6,_0x10854e:0xf9,_0x1416c9:0x232,_0x4f8670:0x41,_0x50ccb5:0xf8},_0x3c7713={_0x5ea5aa:0x126},_0x55a809={_0x404880:0x173};function _0x3cd4ba(_0x285bb8,_0xbce911,_0x2d8ea5,_0x7d08b0){return _0x4aa629(_0x285bb8-0x1c8,_0x285bb8,_0x2d8ea5-0x7d,_0x7d08b0-_0x55a809._0x404880);}const _0x37400f=Math['max'](0x1,Math[_0x1490a9(_0x3abe6a._0x2a2b5f,_0x3abe6a._0xdb16d4,_0x3abe6a._0x55b4cc,_0x3abe6a._0x36082d)](0x32,_0x27ffd8[_0x3cd4ba(-0x52,0x6f,_0x3abe6a._0x577410,0xd0)]));if(_0x27ffd8[_0x1490a9(_0x3abe6a._0x25eaa2,_0x3abe6a._0x5b2f1a,_0x3abe6a._0x1a2a00,0x5e4)]+_0x37400f>0x64)throw new ToolExecutionError(_0x3cd4ba(_0x3abe6a._0x56ddf7,_0x3abe6a._0x1154f8,_0x3abe6a._0x4b8f4d,_0x3abe6a._0x36417f),{'offset':_0x27ffd8[_0x1490a9(0x422,0x60f,_0x3abe6a._0x1a2a00,0x3f8)],'count':_0x37400f,'maxResults':0x64});const _0x4f155e=cseDateRestrict(_0x27ffd8[_0x3cd4ba(0x27b,0x6d,0x1be,_0x3abe6a._0x435544)]),_0x6a0d4b=addSiteFilters(_0x27ffd8[_0x3cd4ba(0x143,_0x3abe6a._0x33542a,_0x3abe6a._0x1e2db7,0x1f6)],_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x56e38a,_0x3abe6a._0x4098ca,0xf8,0x135)]);let _0x1a6420=0x0,_0xb9e60=_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x3ff728,0x24c,0x23b,_0x3abe6a._0x288082)]+0x1;const _0x397b83=[];while(_0x1a6420<_0x37400f){const _0x5d3382=Math['min'](0xa,_0x37400f-_0x1a6420),_0x59d9ec=new URL(_0x3cd4ba(_0x3abe6a._0x49f12e,-_0x3abe6a._0x388b59,0x33,0x7d));_0x59d9ec[_0x1490a9(0x4c5,_0x3abe6a._0x1d1493,_0x3abe6a._0x26c2c5,0x265)]['set']('key',_0x4ee0a0['googleCseKey']),_0x59d9ec['searchParams'][_0x1490a9(_0x3abe6a._0x421b0e,0x64e,0x528,0x5d0)]('cx',_0x4ee0a0['googleCseCx']),_0x59d9ec[_0x3cd4ba(_0x3abe6a._0x141e07,0x1c2,0x1b3,0xb7)][_0x1490a9(_0x3abe6a._0x30d5fe,0x599,0x528,0x4eb)]('q',_0x6a0d4b),_0x59d9ec[_0x1490a9(_0x3abe6a._0x530149,_0x3abe6a._0x2200a2,0x3a7,_0x3abe6a._0x43d6b1)][_0x3cd4ba(0x344,_0x3abe6a._0x1900d8,_0x3abe6a._0xe144c8,0x238)]('num',String(_0x5d3382)),_0x59d9ec['searchParams'][_0x3cd4ba(_0x3abe6a._0x31c727,_0x3abe6a._0x11fc94,0x36b,_0x3abe6a._0x29c208)](_0x1490a9(_0x3abe6a._0x3c5b55,_0x3abe6a._0x59a4a2,0x4ee,_0x3abe6a._0x496d4f),String(_0xb9e60)),_0x59d9ec[_0x1490a9(0x46d,_0x3abe6a._0x17746c,_0x3abe6a._0x26c2c5,_0x3abe6a._0x5392c1)][_0x1490a9(0x4bf,_0x3abe6a._0x24acde,_0x3abe6a._0x3097ad,_0x3abe6a._0x2f7787)]('safe',_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x511701,0x135,-_0x3abe6a._0x3485b9,_0x3abe6a._0x40c9ab)]?_0x1490a9(_0x3abe6a._0x4600ff,0x4ab,0x3b9,0x351):_0x1490a9(_0x3abe6a._0x4b11e3,_0x3abe6a._0x42aec5,0x556,_0x3abe6a._0x4ea9be));_0x27ffd8['lang']&&(_0x59d9ec[_0x1490a9(_0x3abe6a._0x2134b3,0x3e4,0x3a7,_0x3abe6a._0x1a5031)][_0x1490a9(0x406,_0x3abe6a._0x5a48cf,_0x3abe6a._0x3d3898,_0x3abe6a._0x25750b)]('hl',_0x27ffd8[_0x3cd4ba(0x1c7,_0x3abe6a._0x1c80a6,0x3b6,0x27e)]),_0x59d9ec[_0x1490a9(0x4a2,_0x3abe6a._0x368ea1,_0x3abe6a._0x26c2c5,_0x3abe6a._0x16312f)][_0x3cd4ba(_0x3abe6a._0x530149,0x341,_0x3abe6a._0x44393e,0x238)]('lr',_0x1490a9(_0x3abe6a._0x138193,0x402,0x485,0x3fe)+_0x27ffd8[_0x1490a9(0x53b,_0x3abe6a._0x3e90b4,0x56e,_0x3abe6a._0x1c0c92)]));if(_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x166c8e,_0x3abe6a._0x27b552,-0x79,0x36)])_0x59d9ec[_0x3cd4ba(_0x3abe6a._0x257b56,_0x3abe6a._0x1e3c31,0x161,0xb7)][_0x3cd4ba(0x2d4,_0x3abe6a._0x2f8a9a,0x2d2,_0x3abe6a._0x29c208)]('gl',_0x27ffd8[_0x3cd4ba(_0x3abe6a._0x584174,-0x3f,0x14e,_0x3abe6a._0x490eaf)][_0x3cd4ba(_0x3abe6a._0x31cf56,0x18b,_0x3abe6a._0x1bf195,_0x3abe6a._0x5ad6b7)]());if(_0x27ffd8['type']==='images')_0x59d9ec['searchParams'][_0x3cd4ba(0x144,_0x3abe6a._0x1b0fc0,0xfd,_0x3abe6a._0x29c208)]('searchType',_0x3cd4ba(_0x3abe6a._0x32d300,_0x3abe6a._0x430917,_0x3abe6a._0x59c297,_0x3abe6a._0x431c13));if(_0x4f155e)_0x59d9ec['searchParams'][_0x3cd4ba(0x311,_0x3abe6a._0x127636,_0x3abe6a._0xf7d365,_0x3abe6a._0x29c208)]('dateRestrict',_0x4f155e);const _0x137d2f=await fetchJson(_0x59d9ec[_0x3cd4ba(_0x3abe6a._0x37f934,0x16b,_0x3abe6a._0x390ef1,_0x3abe6a._0x1edb46)](),_0xc88436),_0x1121a9=_0x137d2f['items']??[];if(_0x1121a9[_0x3cd4ba(0x20d,_0x3abe6a._0x210aa2,0xd,0xf9)]===0x0)break;const _0xc6820a=_0x1a6420;for(let _0x3e6626=0x0;_0x3e6626<_0x1121a9['length'];_0x3e6626++){const _0x6d1fe0=_0x1121a9[_0x3e6626];if(!_0x6d1fe0)continue;const _0x4ab84b=_0x6d1fe0[_0x1490a9(_0x3abe6a._0x189434,0x4e4,0x495,0x3c9)]||_0x6d1fe0[_0x3cd4ba(_0x3abe6a._0x5a3e98,_0x3abe6a._0x17dfb6,0x6e,_0x3abe6a._0x431c13)]?.[_0x1490a9(0x616,0x5a6,_0x3abe6a._0x26b48f,_0x3abe6a._0x23767c)]||'',_0x254c47=_0x6d1fe0[_0x3cd4ba(_0x3abe6a._0x210d61,0x236,0x1ef,0x1e3)]||_0x6d1fe0[_0x1490a9(_0x3abe6a._0x10c26b,0x3a8,0x417,0x465)]?.[_0x3cd4ba(_0x3abe6a._0x4e4a85,_0x3abe6a._0x43e6c1,0x9f,0x1e3)]||_0x3cd4ba(_0x3abe6a._0x114d67,_0x3abe6a._0x3c3c5b,0x321,0x23b),_0x928385=_0x6d1fe0[_0x1490a9(_0x3abe6a._0x5bb5a5,_0x3abe6a._0x511034,0x4f9,0x47d)]||_0x6d1fe0[_0x1490a9(_0x3abe6a._0xb37035,_0x3abe6a._0x362d29,0x558,_0x3abe6a._0xee1999)]?.['replace'](/<[^>]+>/g,''),_0x5be646=_0x6d1fe0[_0x1490a9(_0x3abe6a._0x56e38a,_0x3abe6a._0x4ff1ea,_0x3abe6a._0x136ea4,0x444)]?.['metatags']?.[0x0]??{};let _0xeb6b43;try{_0xeb6b43=new URL(_0x4ab84b)[_0x1490a9(_0x3abe6a._0x10919d,0x2dd,0x376,_0x3abe6a._0x81d74f)];}catch{_0xeb6b43=null;}_0x397b83[_0x1490a9(_0x3abe6a._0x19fac5,0x4ae,_0x3abe6a._0xc9203d,_0x3abe6a._0x37d378)]({'title':_0x254c47,'url':normalizeUrl(_0x4ab84b),'snippet':_0x928385??null,'displayUrl':_0xeb6b43,'favicon':null,'publishedAt':_0x5be646[_0x3cd4ba(0x2a9,_0x3abe6a._0x6ba042,_0x3abe6a._0x2aba45,0x285)]||_0x5be646[_0x3cd4ba(0x28a,_0x3abe6a._0x2452e1,_0x3abe6a._0x3b96e6,0x1c2)]||null,'source':{'engine':'google-cse','rank':_0xc6820a+_0x3e6626+0x1}});}_0x1a6420+=_0x1121a9[_0x3cd4ba(_0x3abe6a._0x431ad5,0x76,0x17f,_0x3abe6a._0x10854e)],_0xb9e60+=_0x1121a9[_0x3cd4ba(_0x3abe6a._0x1416c9,_0x3abe6a._0x4f8670,_0x3abe6a._0x50ccb5,0xf9)];if(_0x1121a9['length']<_0x5d3382)break;}function _0x1490a9(_0x2fdfca,_0x39e5e2,_0x35b8cc,_0x2c6a89){return _0x2f0acf(_0x35b8cc-_0x3c7713._0x5ea5aa,_0x39e5e2-0x110,_0x2fdfca,_0x2c6a89-0x3a);}return _0x397b83['slice'](0x0,_0x37400f);}function createWebSearchTool(_0x2ff3f8){const _0x1411e6={_0x2e1c37:0x40c,_0xd67bfd:0x315,_0xfe47ad:0x20d,_0x4da4e5:0x0,_0x163ee1:0x1b,_0x3781b7:0x196,_0x291b15:0x227,_0x32f8cd:0x15f,_0x4038e5:0x99,_0x40d745:0xe,_0x49d12b:0x28d,_0x52510a:0x366,_0x5e690f:0x253,_0x36fbd1:0x419,_0x3fb8b3:0x1fe,_0x28b203:0xb2,_0x3b18ed:0x312,_0x584b39:0x249,_0x4118fc:0x78,_0x23954a:0x112,_0x1bd31d:0x43,_0x489c27:0x7a,_0x45cc5d:0x167,_0x49d324:0x1e9,_0x38d9c0:0x2e8,_0x55b268:0x235,_0x3c56c9:0x3c3},_0x37971b={_0x48f0c3:0x287,_0x3787df:0xbe,_0x42078b:0x2a,_0x18db30:0x15f,_0x4b8bf5:0x14,_0x402096:0x225,_0x131592:0x145,_0x2dc963:0x71,_0x153ec6:0x3,_0x161e8a:0x76,_0x5ebed0:0xea,_0x589844:0xe8,_0x301391:0x1d,_0x5b9aac:0xb5,_0x1b2d7c:0xbc,_0x291166:0x14d,_0x261045:0x267,_0x415356:0x1ef,_0x3b9bc8:0x271,_0x425ba4:0xa8,_0x1864b6:0x65,_0x162a69:0x5c,_0x1fdd28:0x168,_0x30f00f:0xd6,_0x34f92e:0xd9,_0x896731:0x21e,_0xd49479:0xd3,_0x4d9d85:0x106,_0x8df52d:0x1ed,_0x508b36:0x2ef,_0x21a77c:0x14e,_0x38fbfa:0xda,_0x11dc18:0x4,_0x4dec56:0x173,_0x564906:0x44,_0x50c067:0x21,_0x39a9a3:0x115,_0x2bd021:0xff,_0x5c40c3:0x1b7,_0x2c3258:0x1a,_0x4d4044:0x54,_0x78eb0d:0xd0,_0x4e754c:0x7d,_0xe9c9b5:0xb0,_0x26bdfd:0x128,_0x420c61:0x120,_0x190478:0xcb,_0x44ede3:0x9,_0x1befac:0x11a,_0x3e338e:0x149,_0xde7a1e:0x16,_0x4539f1:0x102,_0x28031d:0x11f,_0x523377:0x4d,_0x2a6239:0x162,_0x314def:0x3e,_0x462124:0x127,_0x550667:0xab,_0x69631c:0x19b},_0x282f05={_0x1e0f8e:0x222,_0x1ec51f:0x152},_0x5ad502={_0xae87cf:0x1a0,_0x10238c:0x172,_0x34cc68:0x249},_0x35086d={_0x2ae74d:0xfe,_0x2a8168:0x100},_0x5c705a={_0x15293a:0x15a,_0x265e54:0x5c};if(!_0x2ff3f8[_0x3b549a(_0x1411e6._0x2e1c37,_0x1411e6._0xd67bfd,_0x1411e6._0xfe47ad,0x3ce)])throw new Error(_0x1a793b(-0x77,_0x1411e6._0x4da4e5,-_0x1411e6._0x163ee1,-_0x1411e6._0x3781b7));function _0x1a793b(_0x742cf9,_0x6a1659,_0x50bb17,_0x3e1917){return _0x4aa629(_0x742cf9-0x130,_0x3e1917,_0x50bb17-_0x5c705a._0x15293a,_0x742cf9- -_0x5c705a._0x265e54);}if(!_0x2ff3f8['googleCseCx'])throw new Error('WebSearch\x20requires\x20GOOGLE_CSE_CX');function _0x3b549a(_0x6f2025,_0x333195,_0x19f200,_0x385b03){return _0x2f0acf(_0x333195- -_0x35086d._0x2ae74d,_0x333195-_0x35086d._0x2a8168,_0x6f2025,_0x385b03-0x1d6);}const _0x352f9a=_0x2ff3f8['name']??'WebSearch';return defineTool({'name':_0x352f9a,'description':_0x3b549a(0x2cb,_0x1411e6._0x291b15,_0x1411e6._0x32f8cd,0x2e7),'inputSchema':{'type':_0x1a793b(-_0x1411e6._0x4038e5,-0x190,0x93,-0xd7),'properties':{'description':{'type':_0x1a793b(-_0x1411e6._0x40d745,-0x147,-0x156,0x6e)},'query':{'type':_0x3b549a(0x160,_0x1411e6._0x49d12b,0x279,_0x1411e6._0x52510a)},'count':{'type':_0x3b549a(_0x1411e6._0x5e690f,0x312,_0x1411e6._0x36fbd1,_0x1411e6._0x3fb8b3)},'offset':{'type':'number'},'domains':{'type':'array','items':{'type':_0x1a793b(-_0x1411e6._0x40d745,-_0x1411e6._0x28b203,-0x5e,-0xeb)}},'recencyDays':{'type':_0x3b549a(0x3b2,_0x1411e6._0x3b18ed,0x362,_0x1411e6._0x584b39)},'lang':{'type':_0x1a793b(-0xe,_0x1411e6._0x4118fc,-_0x1411e6._0x23954a,-_0x1411e6._0x1bd31d)},'region':{'type':_0x1a793b(-_0x1411e6._0x40d745,-0x6b,0x6d,_0x1411e6._0x489c27)},'safe':{'type':'boolean'},'type':{'type':_0x3b549a(0x1d4,_0x1411e6._0x49d12b,_0x1411e6._0x45cc5d,_0x1411e6._0x49d324)},'hydrateMeta':{'type':_0x3b549a(0x411,_0x1411e6._0x38d9c0,_0x1411e6._0x55b268,_0x1411e6._0x3c56c9)}},'required':['query']},async *'execute'(_0x315498,_0x3a90f8){const _0x429b40={_0x2e8ffe:0xf5,_0x1cdc91:0x17e},_0x2341e1={_0x1534c7:0x266,_0x683561:0xb5,_0x4eb649:0x35},_0x40dc0b=_0x315498[_0x127f2c(0x1d6,_0x37971b._0x48f0c3,_0x37971b._0x3787df,0x237)]['trim']();if(!_0x40dc0b)throw new ToolExecutionError(_0x3afb69(-_0x37971b._0x42078b,_0x37971b._0x18db30,0x9f,-0x86));const _0x462836={'query':_0x40dc0b,'count':Math['max'](0x1,Math['min'](0x32,Math[_0x3afb69(-0x7,0x6d,0x105,-_0x37971b._0x4b8bf5)](_0x315498[_0x3afb69(-0xdc,0x25,-0x86,0x4b)]??0xa))),'offset':Math['max'](0x0,Math[_0x3afb69(_0x37971b._0x402096,0x245,0x105,0x6b)](_0x315498['offset']??0x0)),'domains':_0x315498[_0x3afb69(-0xa8,-_0x37971b._0x131592,-0x21,_0x37971b._0x2dc963)]??[],'recencyDays':Math['max'](0x0,Math[_0x3afb69(-_0x37971b._0x153ec6,_0x37971b._0x161e8a,0x105,_0x37971b._0x5ebed0)](_0x315498[_0x3afb69(_0x37971b._0x589844,0xde,0x54,_0x37971b._0x301391)]??0x0)),'lang':_0x315498['lang']??'en','region':_0x315498[_0x127f2c(0x16,-_0x37971b._0x5b9aac,-0x4b,_0x37971b._0x1b2d7c)]??'','safe':_0x315498[_0x3afb69(-0x23e,-0xd2,-_0x37971b._0x291166,-0x135)]??!![],'type':normalizeType(_0x315498[_0x127f2c(_0x37971b._0x261045,0x1d1,_0x37971b._0x415356,_0x37971b._0x3b9bc8)]),'hydrateMeta':_0x315498[_0x3afb69(-0x3d,_0x37971b._0x425ba4,_0x37971b._0x1864b6,0x54)]??![]};let _0x45b9b8=await searchGoogleCse(_0x2ff3f8,_0x462836,_0x3a90f8[_0x127f2c(_0x37971b._0x162a69,_0x37971b._0x1fdd28,_0x37971b._0x30f00f,0xe7)]);_0x462836['hydrateMeta']&&_0x45b9b8[_0x127f2c(_0x37971b._0x34f92e,_0x37971b._0x896731,_0x37971b._0xd49479,_0x37971b._0x4d9d85)]>0x0&&(_0x45b9b8=await hydrateResults(_0x45b9b8,_0x462836[_0x127f2c(0x25e,0x22d,_0x37971b._0x8df52d,_0x37971b._0x508b36)],_0x3a90f8[_0x3afb69(-0x87,-_0x37971b._0x21a77c,-_0x37971b._0x38fbfa,-_0x37971b._0x11dc18)]));const _0x2830ee=new Set();_0x45b9b8=_0x45b9b8[_0x127f2c(0x1ec,0xa7,_0x37971b._0x4dec56,0x107)](_0x450f0=>{const _0x43b937=_0x450f0[_0x2573e8(-0x25f,-_0x5ad502._0xae87cf,-_0x5ad502._0x10238c,-0x285)]['toLowerCase']();if(!_0x43b937||_0x2830ee[_0x2573e8(-_0x5ad502._0x34cc68,-0x1dc,-0x1ab,-0x2c2)](_0x43b937))return![];function _0xecc925(_0x41110e,_0x5b3b35,_0x22f8af,_0x1178e9){return _0x3afb69(_0x41110e-0xe5,_0x5b3b35-0x7,_0x22f8af-0x5f,_0x41110e);}_0x2830ee[_0x2573e8(-0x38,-0x170,-0x1f2,-0x244)](_0x43b937);function _0x2573e8(_0xf7ce10,_0x39b2e1,_0x5bb280,_0x165d45){return _0x127f2c(_0x39b2e1- -_0x2341e1._0x1534c7,_0x5bb280,_0x5bb280-_0x2341e1._0x683561,_0x165d45-_0x2341e1._0x4eb649);}return!![];}),_0x45b9b8=_0x45b9b8[_0x127f2c(_0x37971b._0x564906,-0x14,_0x37971b._0x42078b,-0xdc)]((_0x47a9f0,_0x3ab09e)=>({..._0x47a9f0,'source':{..._0x47a9f0[_0x127f2c(0x181,0x1fd,0x21a,0x16a)],'rank':_0x3ab09e+0x1}}));function _0x3afb69(_0x3a168e,_0x496116,_0x1a3cdc,_0x2eeb85){return _0x3b549a(_0x2eeb85,_0x1a3cdc- -_0x282f05._0x1e0f8e,_0x1a3cdc-0x2a,_0x2eeb85-_0x282f05._0x1ec51f);}const _0x5e6226={};if(_0x462836[_0x3afb69(0x118,0xe1,-_0x37971b._0x50c067,0x1b)]['length']>0x0)_0x5e6226[_0x127f2c(_0x37971b._0x39a9a3,-0x16,_0x37971b._0x2bd021,_0x37971b._0x5c40c3)]=_0x462836['domains'];if(_0x462836[_0x3afb69(_0x37971b._0x2c3258,-0xee,_0x37971b._0x4d4044,-_0x37971b._0x78eb0d)]>0x0)_0x5e6226['recencyDays']=_0x462836[_0x3afb69(_0x37971b._0x4e754c,-_0x37971b._0xe9c9b5,_0x37971b._0x4d4044,-0xf)];function _0x127f2c(_0x4ea79a,_0x49edfc,_0x55c664,_0x194f88){return _0x3b549a(_0x49edfc,_0x4ea79a- -0xec,_0x55c664-_0x429b40._0x2e8ffe,_0x194f88-_0x429b40._0x1cdc91);}if(_0x462836['lang']!=='en')_0x5e6226[_0x3afb69(0x70,0xe8,_0x37971b._0x26bdfd,0x1b7)]=_0x462836['lang'];if(_0x462836[_0x3afb69(-0x90,-0xa1,-_0x37971b._0x420c61,-_0x37971b._0x190478)])_0x5e6226[_0x3afb69(_0x37971b._0x44ede3,-_0x37971b._0x1befac,-_0x37971b._0x420c61,-_0x37971b._0x3e338e)]=_0x462836[_0x127f2c(_0x37971b._0xde7a1e,-_0x37971b._0x4539f1,-_0x37971b._0x28031d,0x8)];return yield createToolOutput(formatResults(_0x45b9b8),{'engine':_0x3afb69(-_0x37971b._0x523377,0xcb,-0x68,-_0x37971b._0x2a6239),'count':_0x45b9b8['length'],'items':_0x45b9b8,'query':_0x462836[_0x3afb69(-0x9b,0x174,0xa0,0x5e)],...Object[_0x3afb69(0x11a,_0x37971b._0x314def,0x124,0x1e1)](_0x5e6226)[_0x127f2c(0xd9,-0x65,0x170,0x26)]>0x0?{'appliedFilters':_0x5e6226}:{},'offset':_0x462836[_0x3afb69(0xfc,_0x37971b._0x462124,0xee,0x205)],'totalRequested':_0x462836[_0x127f2c(0xb0,0x171,_0x37971b._0x301391,_0x37971b._0x550667)],'hydrated':_0x462836[_0x127f2c(_0x37971b._0x69631c,0x2d4,0x24f,0x8f)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|