@nuvin/agent-core 0.0.0-rc.2 → 0.0.0-rc.20
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/agent.d.ts +28 -0
- package/dist/agent/context-compactor.d.ts +8 -0
- package/dist/agent/extension-registry.d.ts +3 -0
- package/dist/agent/index.d.ts +8 -30
- package/dist/agent/index.js +1 -1
- package/dist/agent/messages-to-text.d.ts +3 -0
- package/dist/agent/metrics.d.ts +30 -0
- package/dist/agent/topic-reminder-extension.d.ts +32 -0
- package/dist/agent/turn-engine.d.ts +3 -0
- package/dist/chunk-FFIZ6TKW.js +1 -0
- package/dist/chunk-HRU363DY.js +1 -0
- package/dist/chunk-NHBKADBW.js +1 -0
- package/dist/chunk-NYZR4XKO.js +1 -1
- package/dist/chunk-QDOE7NWO.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/formats/base64-image-content.d.ts +4 -0
- package/dist/formats/index.d.ts +4 -25
- package/dist/formats/index.js +1 -1
- package/dist/formats/message-format.d.ts +33 -0
- package/dist/formats/provider-adapters.d.ts +3 -0
- package/dist/hooks/executor.d.ts +3 -0
- package/dist/hooks/extensions.d.ts +28 -0
- package/dist/hooks/index.d.ts +7 -0
- package/dist/hooks/index.js +1 -0
- package/dist/hooks/registry.d.ts +8 -0
- package/dist/hooks/types.d.ts +40 -0
- package/dist/lsp/client.d.ts +11 -0
- package/dist/lsp/index.d.ts +24 -0
- package/dist/lsp/installer.d.ts +11 -0
- package/dist/lsp/language.d.ts +2 -0
- package/dist/lsp/server.d.ts +6 -0
- package/dist/lsp/types.d.ts +68 -0
- package/dist/models/anthropic-model.d.ts +27 -0
- package/dist/models/anthropic-surface.d.ts +5 -0
- package/dist/models/chat-model.d.ts +31 -0
- package/dist/models/github-model.d.ts +32 -0
- package/dist/models/http-transport.d.ts +10 -0
- package/dist/models/index.d.ts +16 -344
- package/dist/models/index.js +1 -1
- package/dist/models/mock-model.d.ts +15 -0
- package/dist/models/model-errors.d.ts +16 -0
- package/dist/models/model-limits.d.ts +7 -0
- package/dist/models/model-registry.d.ts +44 -0
- package/dist/models/model-surface-router.d.ts +19 -0
- package/dist/models/model-transports.d.ts +17 -0
- package/dist/models/openai-model.d.ts +67 -0
- package/dist/models/openai-surfaces.d.ts +74 -0
- package/dist/models/provider-adapter.d.ts +23 -0
- package/dist/models/provider-session.d.ts +16 -0
- package/dist/models/routed-model.d.ts +90 -0
- package/dist/shared/abort.d.ts +9 -0
- package/dist/shared/index.d.ts +5 -17
- package/dist/shared/index.js +1 -1
- package/dist/shared/reasoning-config.d.ts +5 -0
- package/dist/shared/turn-failed.d.ts +6 -0
- package/dist/shared/types.d.ts +737 -0
- package/dist/tools/ask-user-tool.d.ts +55 -0
- package/dist/tools/bash-tool.d.ts +63 -0
- package/dist/tools/command-tool.d.ts +23 -0
- package/dist/tools/file-edit-tool.d.ts +29 -0
- package/dist/tools/file-new-tool.d.ts +21 -0
- package/dist/tools/file-read-tool.d.ts +27 -0
- package/dist/tools/glob-tool.d.ts +26 -0
- package/dist/tools/grep-tool.d.ts +34 -0
- package/dist/tools/index.d.ts +28 -480
- package/dist/tools/index.js +1 -1
- package/dist/tools/internal-tool-runtime.d.ts +8 -0
- package/dist/tools/ls-tool.d.ts +20 -0
- package/dist/tools/lsp-tool.d.ts +36 -0
- package/dist/tools/mcp-oauth-provider.d.ts +11 -0
- package/dist/tools/mcp-server-manager.d.ts +43 -0
- package/dist/tools/mcp-tool-adapter.d.ts +47 -0
- package/dist/tools/mock-tool-runtime.d.ts +3 -0
- package/dist/tools/ripgrep.d.ts +20 -0
- package/dist/tools/runtime-manager-tools.d.ts +58 -0
- package/dist/tools/safe-fetch.d.ts +36 -0
- package/dist/tools/skill-tool.d.ts +33 -0
- package/dist/tools/todo-write-tool.d.ts +66 -0
- package/dist/tools/tool-output-offload.d.ts +12 -0
- package/dist/tools/tools.d.ts +24 -0
- package/dist/tools/update-topic-tool.d.ts +12 -0
- package/dist/tools/view-file-tool.d.ts +22 -0
- package/dist/tools/web-fetch-tool.d.ts +23 -0
- package/dist/tools/web-search-tool.d.ts +75 -0
- package/dist/tools/workspace-paths.d.ts +5 -0
- package/package.json +17 -4
- package/dist/chunk-G2FR4UGO.js +0 -1
- package/dist/chunk-LXQDGX4K.js +0 -1
- package/dist/chunk-VFTQW5WK.js +0 -1
- package/dist/provider-adapters-Cb5hUJoD.d.ts +0 -5
- package/dist/types-QPBW5jHO.d.ts +0 -695
package/dist/tools/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x1ad655,_0x2f5a78){const _0xc3cde8={_0xbacc46:0x1a3,_0x4649f3:0x95,_0x1fa49e:0x1b0,_0x1ea531:0x162,_0x3c819f:0xd7,_0x5711f8:0x1ce,_0x25c649:0x1e9,_0x5ab0c6:0x215,_0x5e8ea5:0x129,_0x3002c4:0x194,_0x247184:0x16d,_0x1889bf:0xf8,_0xacc32f:0x9a,_0x57e7b7:0xe1,_0x52c3a2:0x8c,_0x11f852:0x146,_0x14aed9:0x136,_0x3a5de2:0x11d,_0x1f1764:0x158,_0x343950:0x119,_0x14f661:0x1ac,_0x1ca499:0x1bb,_0x5af842:0x186,_0x583062:0x136,_0x1dc58a:0x243},_0x2b2f87={_0x451b51:0x329},_0xc36003=_0x1ad655();function _0x394927(_0x4f21a1,_0x23ec7,_0x50dab8,_0x13aaf9){return _0x3e7e(_0x4f21a1- -_0x2b2f87._0x451b51,_0x23ec7);}function _0x27a1e8(_0x5f68a1,_0x184126,_0x405cf9,_0x37447b){return _0x3e7e(_0x405cf9- -0xbd,_0x37447b);}while(!![]){try{const _0x4926d8=parseInt(_0x27a1e8(_0xc3cde8._0xbacc46,_0xc3cde8._0x4649f3,0x130,0xff))/0x1*(-parseInt(_0x27a1e8(0x13c,_0xc3cde8._0x1fa49e,_0xc3cde8._0x1ea531,_0xc3cde8._0x3c819f))/0x2)+parseInt(_0x27a1e8(0x1d6,0x22a,_0xc3cde8._0x5711f8,_0xc3cde8._0x25c649))/0x3+-parseInt(_0x27a1e8(0x1a8,_0xc3cde8._0x5ab0c6,0x1af,0x114))/0x4*(parseInt(_0x27a1e8(_0xc3cde8._0x5e8ea5,_0xc3cde8._0x3002c4,_0xc3cde8._0x247184,0xce))/0x5)+parseInt(_0x394927(-_0xc3cde8._0x1889bf,-_0xc3cde8._0xacc32f,-0x143,-_0xc3cde8._0x57e7b7))/0x6*(parseInt(_0x394927(-0xfb,-0x5b,-0x113,-_0xc3cde8._0x52c3a2))/0x7)+parseInt(_0x394927(-_0xc3cde8._0x11f852,-0x184,-_0xc3cde8._0x14aed9,-_0xc3cde8._0x3a5de2))/0x8*(-parseInt(_0x394927(-_0xc3cde8._0x1f1764,-_0xc3cde8._0x343950,-0x194,-0x122))/0x9)+-parseInt(_0x394927(-_0xc3cde8._0x14f661,-0x118,-_0xc3cde8._0x1ca499,-_0xc3cde8._0x343950))/0xa+-parseInt(_0x27a1e8(0xb7,_0xc3cde8._0x5af842,_0xc3cde8._0x583062,0x109))/0xb*(-parseInt(_0x27a1e8(_0xc3cde8._0x1dc58a,0x241,0x19c,0x1b1))/0xc);if(_0x4926d8===_0x2f5a78)break;else _0xc36003['push'](_0xc36003['shift']());}catch(_0x5f3361){_0xc36003['push'](_0xc36003['shift']());}}}(_0x2dbf,0x3792b));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-VFTQW5WK.js';import{getTextFromMessage}from'../chunk-G2FR4UGO.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{spawn}from'child_process';import{statSync}from'fs';import*as _0x201fde from'os';import*as _0x239355 from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';var DEFAULT_DESCRIPTION=_0x256f33(0x3bb,0x388,0x35f,0x32a),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x2b25f0){return _0x2b25f0 instanceof Error;}function shellExists(_0x56f770){const _0x438a47={_0x71aa25:0x13e,_0x42fc9c:0xf2,_0x56ba1a:0x12e,_0x209ab8:0x33,_0x142029:0x42},_0xddd810={_0x305263:0x178},_0x856056={_0x3983a8:0x2e2};function _0xc3a736(_0x551685,_0x1c13f8,_0x208df9,_0x1e8b28){return _0x256f33(_0x551685,_0x1c13f8-0x72,_0x208df9- -_0x856056._0x3983a8,_0x1e8b28-0x7f);}function _0x279be3(_0x2cd222,_0xd7831f,_0x15e9f6,_0x22f865){return _0x256f33(_0x22f865,_0xd7831f-_0xddd810._0x305263,_0xd7831f- -0x52f,_0x22f865-0xe6);}try{const _0x4e2bd3=statSync(_0x56f770);return _0x4e2bd3[_0xc3a736(_0x438a47._0x71aa25,0x48,_0x438a47._0x42fc9c,_0x438a47._0x56ba1a)]()&&(_0x4e2bd3[_0xc3a736(-_0x438a47._0x209ab8,_0x438a47._0x142029,0x41,-0x3a)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x5979d8){const _0x35a7e7={_0x496e62:0x2d,_0x2dd25f:0x59,_0x4f105a:0x12,_0x4c2711:0x44,_0x43c6f6:0x37,_0x290f46:0x42,_0x4a1a54:0x6c,_0x8d03f1:0xeb,_0x52711f:0x3e,_0x4cc585:0x1d,_0xef53d6:0x3c,_0x4e227e:0x37,_0x26a8c7:0x68,_0x2c0f9b:0x46,_0x56442c:0xb1},_0x2e19d2={_0x2273eb:0x3d1},_0x727909={_0x4e83f0:0x9d};function _0x1b7904(_0x44c78d,_0x26c78f,_0x4e3656,_0x25074d){return _0x256f33(_0x44c78d,_0x26c78f-_0x727909._0x4e83f0,_0x26c78f- -0x3d1,_0x25074d-0x80);}if(_0x5979d8)return _0x5979d8;function _0x315ba7(_0x3540ca,_0x223da8,_0x552ea8,_0x2f11f9){return _0x256f33(_0x3540ca,_0x223da8-0x15c,_0x552ea8- -_0x2e19d2._0x2273eb,_0x2f11f9-0xcd);}if(_0x201fde[_0x315ba7(-0x135,-0x10b,-0xa3,-0x144)]()==='win32')return process[_0x315ba7(0x83,0x8,-0x5,0x87)][_0x1b7904(_0x35a7e7._0x496e62,-_0x35a7e7._0x2dd25f,_0x35a7e7._0x4f105a,-0xc2)]||'cmd.exe';const _0x5cc5ca=[_0x315ba7(0x61,0xb5,_0x35a7e7._0x4c2711,0x6d),_0x1b7904(-_0x35a7e7._0x43c6f6,-_0x35a7e7._0x290f46,-0xce,-_0x35a7e7._0x4a1a54),_0x315ba7(-0xc6,-_0x35a7e7._0x8d03f1,-_0x35a7e7._0x52711f,_0x35a7e7._0x4cc585),_0x1b7904(_0x35a7e7._0xef53d6,-0x47,-0xc5,-0x81)];for(const _0x578ca9 of _0x5cc5ca){if(shellExists(_0x578ca9))return _0x578ca9;}const _0x42f58e=process['env'][_0x1b7904(-_0x35a7e7._0x43c6f6,-_0x35a7e7._0x4e227e,0x28,-0x12)];if(_0x42f58e&&shellExists(_0x42f58e))return _0x42f58e;return _0x315ba7(_0x35a7e7._0x26a8c7,_0x35a7e7._0x2c0f9b,_0x35a7e7._0x4c2711,_0x35a7e7._0x56442c);}function _0x3e7e(_0x52683,_0x1e7d0b){_0x52683=_0x52683-0x139;const _0x2dbf10=_0x2dbf();let _0x3e7ef6=_0x2dbf10[_0x52683];if(_0x3e7e['FYNXnO']===undefined){var _0x4b729b=function(_0x3cdd88){const _0x32d611='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x201fde='',_0x239355='';for(let _0x45391b=0x0,_0x53d907,_0x15a2a1,_0xe33de0=0x0;_0x15a2a1=_0x3cdd88['charAt'](_0xe33de0++);~_0x15a2a1&&(_0x53d907=_0x45391b%0x4?_0x53d907*0x40+_0x15a2a1:_0x15a2a1,_0x45391b++%0x4)?_0x201fde+=String['fromCharCode'](0xff&_0x53d907>>(-0x2*_0x45391b&0x6)):0x0){_0x15a2a1=_0x32d611['indexOf'](_0x15a2a1);}for(let _0x975f79=0x0,_0x53331e=_0x201fde['length'];_0x975f79<_0x53331e;_0x975f79++){_0x239355+='%'+('00'+_0x201fde['charCodeAt'](_0x975f79)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x239355);};_0x3e7e['uzdnik']=_0x4b729b,_0x3e7e['wBaXkF']={},_0x3e7e['FYNXnO']=!![];}const _0x5eba02=_0x2dbf10[0x0],_0x7d8cc3=_0x52683+_0x5eba02,_0x1cbd0b=_0x3e7e['wBaXkF'][_0x7d8cc3];return!_0x1cbd0b?(_0x3e7ef6=_0x3e7e['uzdnik'](_0x3e7ef6),_0x3e7e['wBaXkF'][_0x7d8cc3]=_0x3e7ef6):_0x3e7ef6=_0x1cbd0b,_0x3e7ef6;}function buildShellArgs(_0x26adb3,_0x3ec7de){const _0xea1e18={_0x868f92:0x146,_0x1a2aa3:0xa3,_0x2e5d7e:0x34b,_0x2d0454:0x35c,_0x19d1e6:0x94,_0x49938f:0x95},_0x15904f={_0x579137:0xb8},_0x19505f={_0x203508:0x463,_0x5541b1:0xd5};function _0x2b92c9(_0x301f12,_0x5a7535,_0x4bce6a,_0x37e473){return _0x256f33(_0x5a7535,_0x5a7535-0xf4,_0x4bce6a- -_0x19505f._0x203508,_0x37e473-_0x19505f._0x5541b1);}function _0x1a2651(_0x352212,_0x59e441,_0x2bd32a,_0x3a7ec3){return _0x256f33(_0x352212,_0x59e441-_0x15904f._0x579137,_0x2bd32a- -0x6b,_0x3a7ec3-0x160);}if(_0x201fde['platform']()===_0x2b92c9(-0xf9,-0x1b1,-_0xea1e18._0x868f92,-_0xea1e18._0x1a2aa3)){const _0xd095c8=/cmd(\.exe)?$/i[_0x1a2651(_0xea1e18._0x2e5d7e,_0xea1e18._0x2d0454,0x31a,0x391)](_0x3ec7de);return _0xd095c8?['/d','/s','/c',_0x26adb3]:[_0x2b92c9(-0x70,0x10,-_0xea1e18._0x19d1e6,-0xac),'-NoProfile',_0x2b92c9(-_0xea1e18._0x49938f,0x12,-0x84,-0x7a),_0x26adb3];}return['-c',_0x26adb3];}function stripAnsiAndControls(_0x4cace5){const _0x1d7130={_0x6c63cd:0x152,_0x2243c7:0x18c,_0x4e3c7c:0x43,_0x358214:0xa7,_0x42d78d:0x41,_0x4be5d0:0x16e,_0x273728:0x2a,_0x1627a6:0xf,_0x435285:0x1e0,_0x1720f0:0x246,_0x3d62d0:0x6c,_0x2b719a:0x7d,_0x3b5a31:0x133,_0x23e7a8:0xb7,_0x418c71:0x149,_0x25a931:0x1bf,_0x5f4b38:0x1a4,_0x206b96:0x71,_0x3b7dad:0xea,_0x875e38:0x168,_0x342623:0x237,_0x4625ac:0x1ad},_0x32d9b7={_0x57f7ec:0x147,_0x2d3150:0x2b9},_0x1b9944={_0x54adba:0x1db,_0x3cf1df:0x373,_0x2c2230:0x18a};_0x4cace5=stripVTControlCharacters(_0x4cace5);const _0x19b6c8='\x1b',_0x5516ea='\x07';_0x4cace5=_0x4cace5[_0x54c943(_0x1d7130._0x6c63cd,_0x1d7130._0x2243c7,0xea,0x126)](new RegExp(';[^'+_0x5516ea+_0x54c943(-_0x1d7130._0x4e3c7c,-_0x1d7130._0x358214,-_0x1d7130._0x42d78d,0x69)+_0x5516ea,'g'),''),_0x4cace5=_0x4cace5[_0x54c943(_0x1d7130._0x4be5d0,0x165,0xea,0x60)](new RegExp(_0x54c943(-0x6e,-_0x1d7130._0x273728,-0x2f,_0x1d7130._0x1627a6)+_0x19b6c8+'\x5c\x5c','g'),''),_0x4cace5=_0x4cace5[_0x216afb(0x1a2,_0x1d7130._0x435285,_0x1d7130._0x1720f0,0x1a4)](new RegExp(_0x5516ea,'g'),''),_0x4cace5=_0x4cace5['replace'](new RegExp(_0x19b6c8+_0x54c943(-0xb0,-_0x1d7130._0x3d62d0,-0x26,_0x1d7130._0x2b719a)+_0x19b6c8+'\x5c\x5c','g'),''),_0x4cace5=_0x4cace5['replace'](new RegExp(_0x19b6c8+_0x216afb(0x199,_0x1d7130._0x3b5a31,_0x1d7130._0x23e7a8,_0x1d7130._0x418c71),'g'),'');function _0x54c943(_0x27241f,_0xb47953,_0x2d41db,_0x26c177){return _0x256f33(_0x26c177,_0xb47953-_0x1b9944._0x54adba,_0x2d41db- -_0x1b9944._0x3cf1df,_0x26c177-_0x1b9944._0x2c2230);}_0x4cace5=_0x4cace5[_0x216afb(0x222,0x1fe,_0x1d7130._0x25a931,_0x1d7130._0x5f4b38)](/[\u0080-\u009F]/g,''),_0x4cace5=_0x4cace5[_0x54c943(0xc5,_0x1d7130._0x206b96,_0x1d7130._0x3b7dad,_0x1d7130._0x875e38)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,'');function _0x216afb(_0x51aaee,_0x5db96e,_0x33baba,_0x4414f6){return _0x256f33(_0x5db96e,_0x5db96e-_0x32d9b7._0x57f7ec,_0x4414f6- -_0x32d9b7._0x2d3150,_0x4414f6-0x89);}return _0x4cace5=_0x4cace5[_0x216afb(_0x1d7130._0x342623,0x24b,_0x1d7130._0x4625ac,0x1a4)](/[\u23CE\u2424]/g,''),_0x4cace5;}function resolveWorkingDirectory(_0x43b442,_0x9a9268){const _0xe0df55={_0x4d7b06:0x2c4,_0x321d61:0x374,_0x4f0460:0x34a,_0x36cbb6:0x372,_0x3f83e0:0x209,_0x592e1f:0x165,_0x4fa0e7:0x136},_0x57f6fe={_0x4593ba:0xf2,_0x321552:0x2b},_0x6c5147={_0x426538:0x10b};function _0x570b8e(_0x48666d,_0xe6ccfe,_0x329517,_0x2eaf21){return _0x256f33(_0xe6ccfe,_0xe6ccfe-0x10,_0x329517- -0x472,_0x2eaf21-_0x6c5147._0x426538);}const _0x55be7e=_0x43b442?_0x239355[_0x570b8e(-0x156,-0x106,-0x106,-0x190)](_0x43b442)?_0x43b442:_0x239355['resolve'](_0x9a9268,_0x43b442):_0x9a9268;function _0x26c0c6(_0x1b60b4,_0x21afbb,_0x2e0126,_0x1b3719){return _0x256f33(_0x21afbb,_0x21afbb-_0x57f6fe._0x4593ba,_0x2e0126- -_0x57f6fe._0x321552,_0x1b3719-0x117);}try{const _0x14912e=statSync(_0x55be7e);if(!_0x14912e['isDirectory']())throw new ToolExecutionError(_0x26c0c6(_0xe0df55._0x4d7b06,_0xe0df55._0x321d61,_0xe0df55._0x4f0460,_0xe0df55._0x36cbb6)+_0x55be7e,{'cwd':_0x55be7e});return _0x55be7e;}catch(_0x5c6693){if(_0x5c6693 instanceof ToolExecutionError)throw _0x5c6693;throw new ToolExecutionError(_0x570b8e(-0x11a,-_0xe0df55._0x3f83e0,-_0xe0df55._0x592e1f,-_0xe0df55._0x4fa0e7)+_0x55be7e,{'cwd':_0x55be7e});}}function killProcessGroup(_0x49066b,_0xf217b2,_0xf1a09f=_0x379285(0x71,0x22,-0x20,0xe)){const _0x1b5252={_0xda283b:0x3ad,_0xc2c70b:0x354,_0x1fd016:0x381,_0x4034c9:0x3aa,_0x14016f:0x329,_0x4c37a6:0x459,_0xe8fa45:0x3e1,_0x136376:0x40d,_0xef32a2:0x401,_0x4302a0:0x3d9,_0x1ad4c6:0x357,_0x2a73b1:0x46d,_0x538878:0x3ea,_0x52b4bd:0x3c0},_0x4a6b55={_0x2e9c56:0x41a,_0x21c7c3:0xb4},_0x26d32c={_0x330233:0x156,_0x43b6e2:0x72};function _0x1df4e5(_0x2e19e7,_0xb28401,_0x53964e,_0x27eb29){return _0x256f33(_0xb28401,_0xb28401-0xca,_0x2e19e7-_0x26d32c._0x330233,_0x27eb29-_0x26d32c._0x43b6e2);}if(!_0x49066b['pid'])return;if(_0xf217b2)try{spawn(_0x412496(_0x1b5252._0xda283b,_0x1b5252._0xc2c70b,0x352,0x352),['/pid',_0x49066b[_0x412496(_0x1b5252._0x1fd016,0x454,_0x1b5252._0x4034c9,_0x1b5252._0x14016f)][_0x412496(_0x1b5252._0x4c37a6,0x3ee,_0x1b5252._0xe8fa45,0x37c)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x49066b[_0x412496(_0x1b5252._0x136376,_0x1b5252._0xef32a2,_0x1b5252._0x4302a0,0x34c)](_0xf1a09f);return;}function _0x412496(_0x1d651d,_0x4bfcbb,_0x14b014,_0x3ba58d){return _0x379285(_0x1d651d-0x70,_0x14b014-_0x4a6b55._0x2e9c56,_0x14b014-_0x4a6b55._0x21c7c3,_0x4bfcbb);}try{process[_0x412496(_0x1b5252._0x1ad4c6,_0x1b5252._0x2a73b1,0x3d9,0x450)](-_0x49066b[_0x1df4e5(0x510,0x544,0x539,0x51f)],_0xf1a09f);}catch{_0x49066b[_0x412496(0x410,_0x1b5252._0x538878,0x3d9,_0x1b5252._0x52b4bd)](_0xf1a09f);}}function appendChunk(_0x5a6f67,_0x1a3fce,_0x230d25,_0x257b73,_0x579ec8){const _0x30608e={_0xc3b003:0x24e,_0x5bf326:0x342,_0x1eba0c:0x5e6,_0x4894a3:0x49b},_0x3e66a3={_0x54f113:0x566},_0x3f87f2={_0x37e5be:0xfe};function _0x390deb(_0x4de953,_0x26b4a4,_0x24ecf3,_0x4144ea){return _0x256f33(_0x26b4a4,_0x26b4a4-0x58,_0x24ecf3- -0x62,_0x4144ea-_0x3f87f2._0x37e5be);}const _0x251dcf=_0x257b73?stripAnsiAndControls(_0x230d25):_0x230d25;function _0x4294ff(_0x531f12,_0x3d6610,_0x489914,_0x483fd6){return _0x379285(_0x531f12-0x38,_0x489914-_0x3e66a3._0x54f113,_0x489914-0x13c,_0x531f12);}if(_0x251dcf[_0x390deb(0x2e2,_0x30608e._0xc3b003,0x2a3,_0x30608e._0x5bf326)]===0x0)return;_0x5a6f67[_0x4294ff(0x5dd,0x634,0x58d,_0x30608e._0x1eba0c)](_0x251dcf),_0x1a3fce[_0x390deb(0x36d,_0x30608e._0x4894a3,0x3ef,0x3ae)](_0x251dcf),_0x579ec8();}function createBashTool(_0x553791={}){const _0x22558c={_0x4f590a:0x2b5,_0x318b8c:0x273,_0x25c993:0xb3,_0x43c827:0x60,_0x269b94:0x137,_0x8b3afc:0xa3,_0x4b28d5:0x165,_0x1a5921:0x9e,_0xbdab0d:0x4b,_0x4d4ad2:0x59,_0x3f68a2:0x7f,_0xfe8c88:0x6e,_0x1130f4:0x15,_0x1a330d:0x1e8,_0x1ea6af:0x1cf,_0x4a5c9a:0x39,_0xead4d1:0x55,_0x1c52cc:0x56,_0x3b0676:0xa5,_0x52bee9:0x70,_0x437ea3:0xac,_0x517be8:0x27,_0x323ef3:0x83},_0x4d5d05={_0x191a54:0x15d,_0x486012:0x111,_0x150323:0x7c,_0x186506:0x2c3,_0xe7a194:0x247,_0x335dfa:0x13e,_0x101083:0xa8,_0x1d2736:0xfb,_0x2d052:0x222,_0x16a231:0x1c5,_0x59f3b0:0x17a,_0x29c5b1:0x356,_0x43aa93:0x21e,_0x4a1e14:0x17b,_0x2b7475:0xfd,_0x15e8b2:0x158,_0x1d1bf3:0x229,_0x4da8a9:0x2a0,_0x326f5f:0x23d,_0x23f7d7:0x2a8,_0x436416:0x22d,_0x2d8c28:0x235,_0x3648ff:0xbd,_0x22de03:0x136,_0x4b27de:0x213,_0x347eca:0x75,_0x36182a:0x8,_0x25b30d:0x79,_0x8aa9e7:0x38,_0x3f5878:0x12,_0x3ead34:0x6d,_0x1636fb:0x10a,_0x2f1550:0x266,_0xe86bac:0x293,_0x199a69:0x2ba,_0xab4291:0x2c9,_0x377465:0x29c,_0x2750ed:0x250,_0x31097e:0xc2,_0x4278be:0xf3,_0x191edb:0xc0,_0x1ed714:0x162,_0x501fa7:0xdd,_0x25f542:0x93,_0x89840a:0x5e,_0x3f2e1e:0x56,_0x38a03a:0x5b,_0x3f4bd8:0xa8,_0x2df10b:0x17f,_0x4d93f2:0xb8,_0x44f20b:0xb3,_0x5dd983:0x17c,_0x15b99b:0xec,_0x2b0027:0xe9,_0x441ddc:0x185,_0x40babe:0x1c,_0x1ec407:0xb,_0x40399c:0x2ab,_0x1bc56c:0x26c,_0x287d87:0x32c,_0x34d581:0x1d4,_0x32fef7:0x75,_0x4bffe8:0x94,_0x103f9c:0x22,_0xef8532:0x24,_0x1a04c4:0x1d1,_0x3ed7f0:0x126,_0x23598c:0x153,_0x9e666e:0xc8,_0x4879e2:0x18d,_0x4f94d2:0x7d,_0x3dbbe6:0x218,_0x4eae21:0x1ce,_0x34f56d:0x23,_0x406803:0x4e,_0x5d4f95:0x44,_0x597130:0x240,_0x2b7b3a:0x1f0,_0x16d331:0x8a,_0xaf37c0:0x9,_0x48307d:0x2a0,_0x5826ff:0xc0,_0x52b266:0x114,_0x263d82:0x5,_0x5d2a30:0x53,_0xf8c630:0x152,_0x2283ad:0x123},_0x23e679={_0x103726:0x4ec,_0x413d38:0x571,_0x5cd29e:0x5b9},_0x1c5929={_0x2a4961:0x25c,_0x22910c:0x47,_0x216d60:0x1a1},_0x2c846a={_0x4e4893:0x71,_0x213aa9:0x191},_0x909039={_0x11cafd:0x25b},_0x13aeac=_0x239355[_0x4179f1(0x286,_0x22558c._0x4f590a,0x218,_0x22558c._0x318b8c)](_0x553791[_0x574674(_0x22558c._0x25c993,0xa5,0x8,_0x22558c._0x43c827)]??process[_0x4179f1(_0x22558c._0x269b94,_0x22558c._0x8b3afc,_0x22558c._0x4b28d5,0x102)]()),_0x542ae1=_0x553791[_0x574674(-_0x22558c._0x1a5921,_0x22558c._0xbdab0d,-_0x22558c._0x4d4ad2,-0xb5)]??DEFAULT_TIMEOUT_MS;function _0x4179f1(_0x8ce223,_0x3420bb,_0x4c5430,_0x38a962){return _0x379285(_0x8ce223-0xa9,_0x8ce223-_0x909039._0x11cafd,_0x4c5430-0x69,_0x4c5430);}const _0x19e7c7=_0x553791['stripAnsi']??!![],_0x3f76f2=_0x553791[_0x574674(0xcd,-0x11,_0x22558c._0x3f68a2,-0x5)]??_0x574674(-0x3d,_0x22558c._0xfe8c88,_0x22558c._0x1130f4,0x15);function _0x574674(_0x43f055,_0x440559,_0x5b0824,_0x1ee6f9){return _0x379285(_0x43f055-0x166,_0x5b0824-_0x2c846a._0x4e4893,_0x5b0824-_0x2c846a._0x213aa9,_0x43f055);}return defineTool({'name':_0x3f76f2,'description':_0x553791[_0x574674(0x4b,-0xd6,-0x49,-0xcb)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x4179f1(0x22f,0x1ce,_0x22558c._0x1a330d,_0x22558c._0x1ea6af),'properties':{'command':{'type':_0x4179f1(0x189,0x22d,0x1fc,0x145)},'cwd':{'type':'string'},'timeoutMs':{'type':_0x574674(-_0x22558c._0x4a5c9a,0x72,_0x22558c._0xead4d1,_0x22558c._0x1c52cc)},'ignoreOutput':{'type':_0x574674(-0x77,-_0x22558c._0x3b0676,-_0x22558c._0x52bee9,-_0x22558c._0x437ea3)}},'required':[_0x574674(0xb6,_0x22558c._0x517be8,0x95,_0x22558c._0x323ef3)]},async *'execute'(_0x244aa8,_0x2e8498){const _0x14523d={_0x171728:0x452,_0x4fdac2:0x49c,_0x5cac25:0x3cf,_0x4376de:0x45b},_0x3dde7f={_0x132bc1:0x26d,_0x1069b0:0x28c},_0x4aee6b={_0x2b9d9d:0x147},_0x1e332a={_0x5eeb9c:0x37a,_0x550e26:0x284,_0x156757:0x249},_0x432ba3={_0x5af964:0x2f0},_0xe6252a={_0x225ddf:0x157,_0x2da529:0xca,_0x264318:0x5c},_0x5e89a6={_0x247fac:0xcd},_0x349aec={_0x2b3a2a:0x216},_0x5b17df=_0x244aa8['timeoutMs']??_0x542ae1;if(!Number['isFinite'](_0x5b17df)||_0x5b17df<0x1)throw new ToolExecutionError(_0x4f59ad(-_0x4d5d05._0x191a54,-_0x4d5d05._0x486012,-_0x4d5d05._0x150323,-0x7c),{'command':_0x244aa8[_0x14a266(0x2ab,_0x4d5d05._0x186506,_0x4d5d05._0xe7a194,0x220)]});throwIfAborted(_0x2e8498[_0x4f59ad(-_0x4d5d05._0x335dfa,-_0x4d5d05._0x101083,-_0x4d5d05._0x1d2736,-0xd3)]);const _0x5a6823=resolveWorkingDirectory(_0x244aa8['cwd'],_0x13aeac),_0x6f86c6=_0x244aa8[_0x14a266(0x1d8,_0x4d5d05._0x2d052,_0x4d5d05._0x16a231,0x1d1)]??![],_0x65c42=resolveDefaultShell(_0x553791[_0x14a266(0x172,_0x4d5d05._0x59f3b0,0x1a3,0x1a8)]);function _0x14a266(_0x1fdcb5,_0xa65d97,_0x3946b7,_0x2f24ec){return _0x574674(_0x2f24ec,_0xa65d97-0x89,_0x1fdcb5-_0x349aec._0x2b3a2a,_0x2f24ec-0xab);}const _0x3e170d=buildShellArgs(_0x244aa8[_0x14a266(0x2ab,_0x4d5d05._0x29c5b1,_0x4d5d05._0x43aa93,0x34d)],_0x65c42),_0x5e6e04=_0x201fde[_0x4f59ad(-_0x4d5d05._0x4a1e14,-_0x4d5d05._0x2b7475,-0x15b,-_0x4d5d05._0x15e8b2)]()==='win32';let _0x1ef4be;try{_0x1ef4be=spawn(_0x65c42,_0x3e170d,{'cwd':_0x5a6823,'env':{...process[_0x14a266(_0x4d5d05._0x1d1bf3,_0x4d5d05._0x4da8a9,0x27f,_0x4d5d05._0x326f5f)],..._0x553791[_0x14a266(0x229,0x290,_0x4d5d05._0x23f7d7,0x224)]??{}},'stdio':_0x6f86c6?[_0x14a266(0x1cb,_0x4d5d05._0x436416,_0x4d5d05._0x2d8c28,0x1b2),'ignore',_0x4f59ad(-0xf2,-_0x4d5d05._0x3648ff,-_0x4d5d05._0x22de03,-0x10f)]:['ignore',_0x14a266(_0x4d5d05._0x4b27de,0x297,0x246,0x1b8),_0x4f59ad(-0xf0,-_0x4d5d05._0x347eca,-0xdf,0x5)],'shell':![],'windowsHide':!![],'detached':!_0x5e6e04});}catch(_0x1e5725){if(isErrnoException(_0x1e5725)&&_0x1e5725[_0x4f59ad(-0x44,-_0x4d5d05._0x36182a,-_0x4d5d05._0x25b30d,_0x4d5d05._0x8aa9e7)]===_0x4f59ad(_0x4d5d05._0x3f5878,-_0x4d5d05._0x3ead34,-_0x4d5d05._0x1636fb,-0x49))throw new ToolExecutionError(_0x14a266(_0x4d5d05._0x2f1550,_0x4d5d05._0xe86bac,_0x4d5d05._0x199a69,0x2b4)+_0x65c42,{'command':_0x244aa8['command'],'cwd':_0x5a6823,'shellPath':_0x65c42});throw new ToolExecutionError(_0x1e5725 instanceof Error?_0x1e5725['message']:String(_0x1e5725),{'command':_0x244aa8[_0x14a266(0x2ab,0x2a1,0x289,_0x4d5d05._0xab4291)],'cwd':_0x5a6823,'shellPath':_0x65c42});}const _0x1d52d9=[],_0x1903e1=[],_0x21ba8d=new StringDecoder(_0x4f59ad(-0x3f,0x14,0x62,0x7c)),_0x2f98ce=new StringDecoder(_0x14a266(_0x4d5d05._0x377465,_0x4d5d05._0x2750ed,0x1f5,0x1f6));let _0xf7b58d,_0x3d429f=![],_0x352a69;const _0x56665c=()=>{if(!_0xf7b58d)return;const _0x5c138e=_0xf7b58d;_0xf7b58d=void 0x0,_0x5c138e();},_0x335df0=async()=>{if(_0x1903e1['length']>0x0||_0x3d429f)return;await new Promise(_0x12ddb4=>{_0xf7b58d=_0x12ddb4;});},_0x1d2865=_0x41d63f=>{function _0x3a06a5(_0x41dc7d,_0x279d5c,_0x246185,_0x102ef4){return _0x14a266(_0x279d5c- -0x355,_0x279d5c-_0x5e89a6._0x247fac,_0x246185-0x10e,_0x41dc7d);}appendChunk(_0x1d52d9,_0x1903e1,_0x21ba8d[_0x3a06a5(-_0xe6252a._0x225ddf,-_0xe6252a._0x2da529,-_0xe6252a._0x264318,-0xc0)](_0x41d63f),_0x19e7c7,_0x56665c);},_0x398cdb=_0x16ba56=>{function _0x5583c8(_0x12ff8e,_0xb658a4,_0x2b31b9,_0x191d69){return _0x4f59ad(_0x12ff8e-0xfa,_0x191d69-_0x432ba3._0x5af964,_0x12ff8e,_0x191d69-0x53);}appendChunk(_0x1d52d9,_0x1903e1,_0x2f98ce[_0x5583c8(_0x1e332a._0x5eeb9c,_0x1e332a._0x550e26,_0x1e332a._0x156757,0x2f3)](_0x16ba56),_0x19e7c7,_0x56665c);};function _0x4f59ad(_0x5921e3,_0x27614a,_0x2d5d67,_0x432dae){return _0x4179f1(_0x27614a- -_0x1c5929._0x2a4961,_0x27614a-_0x1c5929._0x22910c,_0x2d5d67,_0x432dae-_0x1c5929._0x216d60);}_0x1ef4be[_0x4f59ad(-_0x4d5d05._0x31097e,-_0x4d5d05._0x4278be,-0x4a,-0x17a)]?.['on'](_0x4f59ad(-0x145,-_0x4d5d05._0x191edb,-_0x4d5d05._0x1ed714,-_0x4d5d05._0x501fa7),_0x1d2865),_0x1ef4be[_0x4f59ad(-0x5d,-_0x4d5d05._0x25f542,-0x119,-_0x4d5d05._0x89840a)]?.['on'](_0x4f59ad(-0x83,-0xc0,-_0x4d5d05._0x3f2e1e,-_0x4d5d05._0x38a03a),_0x398cdb);let _0x41918e=![],_0x466177;const _0x275be9=addAbortListener(_0x2e8498[_0x4f59ad(-0xab,-_0x4d5d05._0x3f4bd8,-0xc7,0x7)],()=>{_0x352a69=toAbortError(_0x2e8498['signal'][_0x3df23f(_0x23e679._0x103726,0x5fc,_0x23e679._0x413d38,_0x23e679._0x5cd29e)]),_0x3d429f=!![];function _0x3df23f(_0x27e004,_0x10beeb,_0x3166cf,_0x7a6239){return _0x4f59ad(_0x27e004-0xd2,_0x3166cf-0x648,_0x10beeb,_0x7a6239-_0x4aee6b._0x2b9d9d);}_0x56665c();try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}});try{const _0xe513b4=new Promise((_0x5db0ad,_0xf5348d)=>{const _0x297979={_0x573835:0x1bf},_0x103ba2={_0x288335:0xfe,_0x386d02:0x6e,_0x9c5c1a:0x17f,_0x23aa7d:0x465,_0xf0875d:0x488,_0x21e300:0x456},_0x3bc52a={_0x47d40f:0x249,_0x56c485:0x277,_0x1cc96e:0x182,_0x1fd1b1:0xc7},_0x4e1e35={_0x3c4964:0x228,_0x3dd2b9:0x155};function _0x59059a(_0x50ec82,_0x3a4502,_0x222484,_0x3b205f){return _0x14a266(_0x222484-_0x4e1e35._0x3c4964,_0x3a4502-0xd5,_0x222484-_0x4e1e35._0x3dd2b9,_0x3b205f);}const _0x236b86=()=>{function _0x5919dc(_0xce1556,_0x450139,_0x2e9d5c,_0x2811be){return _0x3e7e(_0x2e9d5c-0x68,_0x2811be);}function _0x196cf7(_0x4a6cbb,_0x4bad28,_0x24274c,_0x5e0b38){return _0x3e7e(_0x4bad28- -0x25c,_0x4a6cbb);}_0x466177&&(clearTimeout(_0x466177),_0x466177=void 0x0),_0x1ef4be['off'](_0x5919dc(0x1be,_0x3bc52a._0x47d40f,0x26d,_0x3bc52a._0x56c485),_0x3be897),_0x1ef4be['off'](_0x196cf7(-_0x3bc52a._0x1cc96e,-0x11b,-_0x3bc52a._0x1fd1b1,-0xc3),_0x376b68);},_0x3be897=_0x55629c=>{_0x3d429f=!![],_0x56665c(),_0x236b86(),_0xf5348d(_0x352a69??_0x55629c);},_0x376b68=(_0x34d4ab,_0x556290)=>{const _0xe1044e={_0x283c1d:0xfe};_0x41918e=!![];function _0x53c973(_0x31c16f,_0xd199d2,_0x38ef27,_0xbd5bde){return _0x3e7e(_0x31c16f-_0xe1044e._0x283c1d,_0xbd5bde);}appendChunk(_0x1d52d9,_0x1903e1,_0x21ba8d[_0x53c973(_0x3dde7f._0x132bc1,0x2ef,0x2f6,_0x3dde7f._0x1069b0)](),_0x19e7c7,_0x56665c),appendChunk(_0x1d52d9,_0x1903e1,_0x2f98ce['end'](),_0x19e7c7,_0x56665c),_0x3d429f=!![],_0x56665c(),_0x236b86();if(_0x352a69){_0xf5348d(_0x352a69);return;}_0x5db0ad({'code':_0x34d4ab,'signal':_0x556290});};_0x466177=setTimeout(()=>{const _0x13397e={_0x5e7204:0x31a};_0x3d429f=!![];function _0x5eb3cb(_0x2b96e9,_0xf4e43d,_0x414eb2,_0x37948e){return _0x3e7e(_0x37948e-0x1d0,_0x414eb2);}_0x56665c(),_0x236b86();function _0x56d4cb(_0x31ebdd,_0x500b02,_0x3604ee,_0x3af1a8){return _0x3e7e(_0x31ebdd- -_0x13397e._0x5e7204,_0x500b02);}try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}_0xf5348d(new ToolExecutionError(_0x56d4cb(-_0x103ba2._0x288335,-0xee,-_0x103ba2._0x386d02,-0xe6)+_0x5b17df+_0x56d4cb(-0x1a3,-_0x103ba2._0x9c5c1a,-0x24c,-0x221),{'command':_0x244aa8[_0x5eb3cb(0x407,_0x103ba2._0x23aa7d,_0x103ba2._0xf0875d,_0x103ba2._0x21e300)],'cwd':_0x5a6823,'shellPath':_0x65c42,'timeoutMs':_0x5b17df,'timedOut':!![]}));},_0x5b17df),_0x1ef4be['once'](_0x59059a(0x4c3,0x489,_0x14523d._0x171728,_0x14523d._0x4fdac2),_0x3be897);function _0x10af4b(_0x4793c8,_0x263004,_0x52c67f,_0x539368){return _0x14a266(_0x52c67f- -_0x297979._0x573835,_0x263004-0x9a,_0x52c67f-0x2e,_0x539368);}_0x1ef4be[_0x59059a(_0x14523d._0x5cac25,0x3ee,0x40b,_0x14523d._0x4376de)]('close',_0x376b68);});while(_0x1903e1[_0x14a266(0x162,_0x4d5d05._0x2df10b,_0x4d5d05._0x4d93f2,0x169)]>0x0||!_0x3d429f){if(_0x1903e1[_0x14a266(0x162,_0x4d5d05._0x44f20b,_0x4d5d05._0x5dd983,0x1da)]===0x0){await _0x335df0();continue;}const _0x5f3267=_0x1903e1[_0x4f59ad(-_0x4d5d05._0x15b99b,-_0x4d5d05._0x2b0027,-_0x4d5d05._0x441ddc,-0x190)]();_0x5f3267!==void 0x0&&(yield _0x5f3267);}const _0xdc7ea0=await _0xe513b4,_0x32a8c9=_0x6f86c6?_0x4f59ad(-_0x4d5d05._0x40babe,-0x3e,0x38,-_0x4d5d05._0x1ec407)+(_0xdc7ea0[_0x4f59ad(-0x5e,-0x8,-0x8c,0x9a)]??0x0):_0x1d52d9['join'](''),_0x3cf0b4={'command':_0x244aa8[_0x14a266(_0x4d5d05._0x40399c,0x231,_0x4d5d05._0x1bc56c,0x2cc)],'cwd':_0x5a6823,'exitCode':_0xdc7ea0[_0x14a266(0x280,_0x4d5d05._0x287d87,0x292,_0x4d5d05._0x34d581)]??0x0,'signal':_0xdc7ea0['signal'],'ignoreOutput':_0x6f86c6,'shellPath':_0x65c42,'timeoutMs':_0x5b17df};if(_0xdc7ea0[_0x4f59ad(0x35,-_0x4d5d05._0x36182a,-_0x4d5d05._0x32fef7,-_0x4d5d05._0x4bffe8)]!==0x0)throw new ToolExecutionError(_0x32a8c9||_0x4f59ad(_0x4d5d05._0x103f9c,-_0x4d5d05._0x8aa9e7,0x34,_0x4d5d05._0xef8532)+(_0xdc7ea0['code']??0x0),_0x3cf0b4);return createToolOutput(_0x32a8c9,_0x3cf0b4);}catch(_0x303480){while(_0x1903e1[_0x4f59ad(-_0x4d5d05._0x1a04c4,-_0x4d5d05._0x3ed7f0,-0x116,-_0x4d5d05._0x5dd983)]>0x0){const _0xe1061e=_0x1903e1[_0x4f59ad(-_0x4d5d05._0x23598c,-0xe9,-_0x4d5d05._0x9e666e,-_0x4d5d05._0x4879e2)]();_0xe1061e!==void 0x0&&(yield _0xe1061e);}if(_0x303480 instanceof ToolExecutionError)throw _0x303480;if(_0x352a69)throw _0x352a69;if(isErrnoException(_0x303480)&&_0x303480[_0x4f59ad(0x37,-0x8,0x81,-0x4d)]===_0x4f59ad(0x3d,-0x6d,-_0x4d5d05._0x4f94d2,-0x119))throw new ToolExecutionError(_0x14a266(0x266,_0x4d5d05._0x3dbbe6,_0x4d5d05._0x4eae21,0x2c1)+_0x65c42,{'command':_0x244aa8[_0x4f59ad(0x1c,_0x4d5d05._0x34f56d,-_0x4d5d05._0x406803,_0x4d5d05._0x5d4f95)],'cwd':_0x5a6823,'shellPath':_0x65c42});throw new ToolExecutionError(_0x303480 instanceof Error?_0x303480[_0x14a266(0x275,_0x4d5d05._0x597130,_0x4d5d05._0x2b7b3a,0x21a)]:String(_0x303480),{'command':_0x244aa8[_0x4f59ad(-_0x4d5d05._0x16d331,_0x4d5d05._0x34f56d,-_0x4d5d05._0xaf37c0,-0x2f)],'cwd':_0x5a6823,'shellPath':_0x65c42});}finally{_0x466177&&clearTimeout(_0x466177);_0x275be9(),_0x1ef4be['stdout']?.[_0x14a266(0x28d,0x2e2,_0x4d5d05._0x48307d,0x20d)](_0x4f59ad(-0x12d,-_0x4d5d05._0x5826ff,-_0x4d5d05._0x52b266,-0xbb),_0x1d2865),_0x1ef4be[_0x4f59ad(-0x6e,-0x93,-0x8d,-0xad)]?.[_0x4f59ad(0x6e,_0x4d5d05._0x263d82,-0x82,-_0x4d5d05._0x5d2a30)]('data',_0x398cdb);if(!_0x41918e&&_0x1ef4be['pid']&&!_0x1ef4be[_0x4f59ad(-_0x4d5d05._0xf8c630,-_0x4d5d05._0x2283ad,-0xfb,-0xb4)])try{killProcessGroup(_0x1ef4be,_0x5e6e04);}catch{}}}});}function createShellExecTool(_0x2a2315={}){return createBashTool(_0x2a2315);}import{renderCommandInstructions}from'@nuvin/config';function buildDescription(_0x583933){const _0x343f53={_0x19fc73:0x3fe,_0x317ac1:0x384,_0xb5b74a:0x368,_0x2e98ef:0x530,_0x28609a:0x501,_0x469cbd:0x4c3,_0x2dc67e:0x3ee,_0x520bea:0x493,_0x3e4698:0x53f,_0x329e7f:0x3f6,_0x4d6c94:0x446,_0x21548b:0x491,_0x4ee50d:0x4d7,_0x76fd67:0x4c5,_0x5e4621:0x3f8,_0x19a0b0:0x4ca,_0x165568:0x47b,_0xc9da71:0x40f,_0x3a072e:0x3e4,_0x1b6800:0x3f1,_0x539e3e:0x3f5,_0x4b7d5e:0x524,_0x5623f5:0x491,_0x43371e:0x507},_0x3f3344={_0x2dd5b3:0x13d,_0x168655:0x4a9},_0xa98e3d={_0x5a5ab6:0x12d};if(_0x583933[_0x47bc14(_0x343f53._0x19fc73,_0x343f53._0x317ac1,_0x343f53._0xb5b74a,0x3b0)]===0x0)return[_0x5ca373(0x45b,_0x343f53._0x2e98ef,_0x343f53._0x28609a,_0x343f53._0x469cbd),_0x5ca373(_0x343f53._0x2dc67e,0x44e,_0x343f53._0x520bea,_0x343f53._0x3e4698),_0x47bc14(_0x343f53._0x329e7f,_0x343f53._0x4d6c94,0x3ca,0x49d)][_0x5ca373(0x496,0x521,_0x343f53._0x21548b,0x4d0)]('\x0a');const _0x440841=[_0x5ca373(_0x343f53._0x4ee50d,0x4c7,_0x343f53._0x28609a,_0x343f53._0x76fd67),_0x47bc14(_0x343f53._0x5e4621,0x45b,_0x343f53._0x19a0b0,_0x343f53._0x165568),_0x47bc14(_0x343f53._0x19fc73,_0x343f53._0xc9da71,_0x343f53._0x3a072e,_0x343f53._0x1b6800),..._0x583933[_0x47bc14(0x47b,_0x343f53._0x539e3e,0x460,0x3eb)](_0x55cb24=>_0x55cb24[_0x5ca373(0x39e,0x38c,0x424,0x3af)]?'-\x20'+_0x55cb24[_0x5ca373(0x479,0x56f,0x4ef,0x535)]+'\x20'+_0x55cb24['argumentHint']+':\x20'+_0x55cb24['description']:'-\x20'+_0x55cb24['name']+':\x20'+_0x55cb24[_0x5ca373(0x3a6,0x422,0x427,0x469)])];function _0x5ca373(_0x1df1b0,_0x522ad3,_0x429fe4,_0x4b2fe3){return _0x379285(_0x1df1b0-_0xa98e3d._0x5a5ab6,_0x429fe4-0x4e1,_0x429fe4-0x1a4,_0x4b2fe3);}function _0x47bc14(_0x2c9aa5,_0x301d52,_0x3d4c2d,_0x18d0a0){return _0x379285(_0x2c9aa5-_0x3f3344._0x2dd5b3,_0x301d52-_0x3f3344._0x168655,_0x3d4c2d-0x10a,_0x3d4c2d);}return _0x440841[_0x5ca373(_0x343f53._0x4b7d5e,0x443,_0x343f53._0x5623f5,_0x343f53._0x43371e)]('\x0a');}function createInvokeCommandTool(_0x4f4e39){const _0x4ede8d={_0x3b0c92:0x8c,_0x20c37d:0x35,_0x59f622:0xe,_0xea530:0xbc,_0x519a64:0x13,_0x2431b7:0xc9,_0x3714b5:0x167,_0x3850db:0xd3,_0x489c77:0xc4},_0x121e30={_0x1ce922:0x3c3,_0x2244ac:0x3ee,_0xf17f69:0x73,_0x116662:0x4,_0x3ab040:0x1f,_0x3fb053:0x2,_0x37df07:0x92,_0x3af4fd:0x85,_0x9efe18:0x51,_0x1a3c03:0x9e,_0xc05d84:0xe2,_0x346b3c:0x430,_0x5aa773:0x73,_0x3c84f2:0x10c,_0x271d75:0x3f5,_0xfe7873:0x431,_0x41a78c:0x3d2,_0x482ff6:0x3c1,_0x16ea84:0x396,_0x2c138e:0x434,_0x38f084:0x48c,_0x230271:0x556,_0x559c9a:0x187},_0x18271c={_0x61af4e:0x395,_0x1b8141:0xfe},_0x3aa099={_0x1ed101:0x1c4},_0x25f7c2={_0x413b1b:0x1db},_0x40370f={_0x179251:0x41,_0x5337dd:0x113,_0x4ba441:0x1c},_0x2ec491=new Map(_0x4f4e39[_0x44a891(-0x21,-_0x4ede8d._0x3b0c92,-0x13,0x45)][_0x44a891(_0x4ede8d._0x20c37d,0x68,0x5f,_0x4ede8d._0x59f622)](_0x484706=>[_0x484706['id'],_0x484706])),_0x113357=buildDescription(_0x4f4e39[_0x44a891(-0x7,-_0x4ede8d._0xea530,-_0x4ede8d._0x519a64,-_0x4ede8d._0x20c37d)]);function _0x44a891(_0x2a2fd2,_0x4e1691,_0x431a4e,_0x52fed8){return _0x379285(_0x2a2fd2-_0x40370f._0x179251,_0x431a4e-_0x40370f._0x5337dd,_0x431a4e-_0x40370f._0x4ba441,_0x4e1691);}function _0x2cd82b(_0x3c47ca,_0x3aae7d,_0x125757,_0x784d14){return _0x256f33(_0x784d14,_0x3aae7d-_0x25f7c2._0x413b1b,_0x3c47ca- -0x2e7,_0x784d14-0x196);}return defineTool({'name':'InvokeCommand','description':_0x113357,'inputSchema':{'type':_0x2cd82b(0x117,_0x4ede8d._0x2431b7,_0x4ede8d._0x3714b5,0x1ba),'properties':{'name':{'type':'string'},'args':{'type':'string'}},'required':[_0x2cd82b(0x151,0x1b0,_0x4ede8d._0x3850db,_0x4ede8d._0x489c77)]},async *'execute'(_0x323ec2){const _0x731f40=_0x2ec491[_0x1e0a6f(0x467,0x43d,_0x121e30._0x1ce922,_0x121e30._0x2244ac)](_0x323ec2[_0x5b7379(-_0x121e30._0xf17f69,-_0x121e30._0x116662,-_0x121e30._0x3ab040,-_0x121e30._0x3fb053)]);if(!_0x731f40){const _0x332827=Array[_0x5b7379(-_0x121e30._0x37df07,-_0x121e30._0x3af4fd,-_0x121e30._0x9efe18,-_0x121e30._0x1a3c03)](_0x2ec491['keys']())['join'](',\x20');throw new ToolExecutionError(_0x5b7379(-_0x121e30._0xc05d84,-0xc8,-0xaf,-0xd3)+_0x323ec2['name']+_0x1e0a6f(0x45c,0x4d2,_0x121e30._0x346b3c,0x4cc)+_0x332827,{'name':_0x323ec2[_0x5b7379(-_0x121e30._0x5aa773,-_0x121e30._0x3c84f2,-0x18,-0xa0)]});}const _0x331178=await _0x4f4e39[_0x1e0a6f(_0x121e30._0x271d75,0x44a,0x44d,_0x121e30._0xfe7873)](_0x731f40);function _0x5b7379(_0x3eeef1,_0x103374,_0x20a273,_0x2e088f){return _0x2cd82b(_0x3eeef1- -_0x3aa099._0x1ed101,_0x103374-0x197,_0x20a273-0xe2,_0x2e088f);}const _0x2fef70=_0x323ec2['args']??'',_0x738393=renderCommandInstructions({'instructions':_0x331178[_0x1e0a6f(_0x121e30._0x41a78c,_0x121e30._0x482ff6,_0x121e30._0x16ea84,_0x121e30._0x2c138e)],'argumentsText':_0x2fef70,'argumentNames':_0x331178['arguments']});function _0x1e0a6f(_0x4ff3b7,_0x4defff,_0x5ad346,_0x1665cb){return _0x2cd82b(_0x4ff3b7-_0x18271c._0x61af4e,_0x4defff-_0x18271c._0x1b8141,_0x5ad346-0xd5,_0x5ad346);}return yield createToolOutput(_0x738393,{'id':_0x331178['id'],'name':_0x331178[_0x1e0a6f(0x4e6,0x50d,_0x121e30._0x38f084,_0x121e30._0x230271)],'path':_0x731f40[_0x5b7379(-0x103,-0x10e,-0xd3,-_0x121e30._0x559c9a)]['path']}),void 0x0;}});}import{createHash}from'crypto';import{readFile,rename,stat as _0x45391b,writeFile}from'fs/promises';import*as _0x53d907 from'path';import{stat}from'fs/promises';import*as _0x15a2a1 from'path';function resolveWorkspacePath(_0x2e2038,_0x31d6b5){const _0x206334={_0x3ebb17:0x3bc,_0x46e691:0x46d,_0x4c0dce:0x46f,_0x120fb6:0x45e,_0x405408:0x4ff},_0xb2f82f={_0x1e5d1b:0x152,_0x50b814:0x19c},_0x47dc5b=_0x15a2a1['resolve'](_0x2e2038);function _0x2be495(_0x391165,_0x35d515,_0x58ca35,_0x1024f3){return _0x379285(_0x391165-0xd4,_0x35d515-0x54d,_0x58ca35-0x1b,_0x1024f3);}const _0x408015=_0x15a2a1[_0x2be495(0x535,0x578,0x502,0x5d2)](_0x47dc5b,_0x31d6b5);function _0x12ed12(_0x5812ee,_0xdeb0e7,_0x5a530c,_0x160f48){return _0x256f33(_0x5a530c,_0xdeb0e7-0xb1,_0x160f48- -_0xb2f82f._0x1e5d1b,_0x160f48-_0xb2f82f._0x50b814);}const _0x34034f=_0x15a2a1[_0x2be495(0x3dd,0x443,_0x206334._0x3ebb17,_0x206334._0x46e691)](_0x47dc5b,_0x408015);if(_0x34034f===''||!_0x34034f[_0x2be495(0x465,0x4d3,_0x206334._0x4c0dce,_0x206334._0x120fb6)]('..')&&!_0x15a2a1[_0x12ed12(0x283,0x1e4,0x22f,0x21a)](_0x34034f))return _0x408015;throw new ToolExecutionError(_0x2be495(_0x206334._0x405408,0x45e,0x497,0x424)+_0x31d6b5,{'path':_0x31d6b5,'rootDir':_0x47dc5b});}async function assertWorkspaceFile(_0x15c6c7){const _0x597400={_0x38a60c:0x233},_0x28a975={_0x510567:0x23};function _0x503638(_0x5cab81,_0x39a9b3,_0x7d7081,_0x27fd89){return _0x379285(_0x5cab81-_0x28a975._0x510567,_0x39a9b3-0x269,_0x7d7081-0x14c,_0x7d7081);}const _0x120bf5=await stat(_0x15c6c7);if(!_0x120bf5['isFile']())throw new ToolExecutionError(_0x503638(_0x597400._0x38a60c,0x29a,0x329,0x334)+_0x15c6c7,{'path':_0x15c6c7});}function isProbablyBinary(_0x38f1b1){const _0x5b0b7a={_0x25c7b3:0x1e3},_0x648104={_0x26494c:0x19c,_0x174e8a:0xe4};function _0x2331a9(_0x3f5780,_0x291b76,_0x497b01,_0x508280){return _0x256f33(_0x3f5780,_0x291b76-0x1e3,_0x497b01- -_0x648104._0x26494c,_0x508280-_0x648104._0x174e8a);}return _0x38f1b1[_0x2331a9(0x149,0x277,_0x5b0b7a._0x25c7b3,0x1df)](0x0);}function detectEol(_0x39114b){const _0x5575f4={_0x5055d2:0x305,_0x37be8c:0x1be,_0x4707b2:0x378,_0x3a889b:0x349,_0x26896d:0x413},_0x4bf5e5={_0x461394:0x562,_0x541a31:0x139};function _0x2c6fe9(_0x4a465b,_0x5d991e,_0x45a398,_0x34e7e7){return _0x379285(_0x4a465b-0x1a1,_0x5d991e-0x431,_0x45a398-0xba,_0x34e7e7);}function _0x1acabe(_0x4f1514,_0x14d642,_0x12d4fd,_0x213f0b){return _0x256f33(_0x4f1514,_0x14d642-0x15d,_0x12d4fd- -_0x4bf5e5._0x461394,_0x213f0b-_0x4bf5e5._0x541a31);}return/\r\n/[_0x2c6fe9(_0x5575f4._0x5055d2,0x38c,0x3f9,0x35f)](_0x39114b['toString'](_0x1acabe(-_0x5575f4._0x37be8c,-0x143,-0x123,-0x18e)))?_0x2c6fe9(_0x5575f4._0x4707b2,0x36b,_0x5575f4._0x3a889b,_0x5575f4._0x26896d):'lf';}function normalizeToLf(_0x26dbc5){const _0x1a3169={_0xf6fc65:0x30e,_0x1bdd7:0x2da},_0x3d41f7={_0x5e1cd7:0x186};function _0x3c8dfe(_0x37794d,_0x26f29c,_0x32fe4b,_0x1a936d){return _0x256f33(_0x37794d,_0x26f29c-0x113,_0x1a936d- -0x1b9,_0x1a936d-_0x3d41f7._0x5e1cd7);}return _0x26dbc5[_0x3c8dfe(_0x1a3169._0xf6fc65,_0x1a3169._0x1bdd7,0x2b5,0x2a4)](/\r\n/g,'\x0a');}function convertEol(_0x117654,_0x513dcf){const _0x41f18d={_0x592fc0:0x32,_0x53906f:0xc0,_0x3e3534:0x1a,_0x2c96d8:0x82,_0x41bbbd:0x5b,_0x32aebe:0xdf},_0x347132={_0x254cf9:0x1ea,_0x37bb4e:0xc};function _0x479b64(_0x173e4a,_0x30e6d6,_0x4d088f,_0x54599d){return _0x379285(_0x173e4a-_0x347132._0x254cf9,_0x4d088f-0x223,_0x4d088f-_0x347132._0x37bb4e,_0x30e6d6);}function _0x365796(_0x3627da,_0x28e243,_0x3b4359,_0x4bb205){return _0x256f33(_0x28e243,_0x28e243-0x19f,_0x4bb205- -0x37e,_0x4bb205-0xce);}return _0x513dcf===_0x365796(0x48,-_0x41f18d._0x592fc0,-_0x41f18d._0x53906f,-_0x41f18d._0x3e3534)?_0x117654[_0x365796(_0x41f18d._0x2c96d8,_0x41f18d._0x41bbbd,0x78,_0x41f18d._0x32aebe)](/\n/g,'\x0d\x0a'):_0x117654;}async function atomicWrite(_0x4b64d6,_0x190759){const _0x5d4374={_0x2baef7:0x396,_0xef847d:0x36e,_0x517334:0x5b,_0x259c16:0x402,_0x580f54:0x3ea,_0x4b24cd:0x4a7,_0x3c146c:0x93,_0x358fab:0x1d,_0x16db3a:0x70,_0x4c89df:0x7b,_0x538af9:0x3ae,_0x487b15:0x2ed},_0x218db1={_0x5c1ce1:0xae,_0x9fcfd5:0xc0},_0x4887c6={_0x2fbb14:0x1e0,_0x486b02:0x93,_0x3a73b3:0x14b};function _0x2053db(_0x329731,_0x4b7432,_0xcc4143,_0xdeb2d0){return _0x379285(_0x329731-_0x4887c6._0x2fbb14,_0x329731- -_0x4887c6._0x486b02,_0xcc4143-_0x4887c6._0x3a73b3,_0xcc4143);}const _0x2c02fc=_0x53d907[_0x39a9ab(_0x5d4374._0x2baef7,_0x5d4374._0xef847d,0x344,0x2d8)](_0x4b64d6),_0x309e11=_0x53d907[_0x2053db(-0xe3,-_0x5d4374._0x517334,-0x9d,-0x9e)](_0x2c02fc,_0x39a9ab(0x483,_0x5d4374._0x259c16,_0x5d4374._0x580f54,_0x5d4374._0x4b24cd)+_0x53d907[_0x2053db(-_0x5d4374._0x3c146c,-0x19,-0x122,-_0x5d4374._0x358fab)](_0x4b64d6)+'.'+Date[_0x2053db(-_0x5d4374._0x16db3a,-0xab,-0xbc,-0x59)]()+'.'+Math[_0x2053db(-_0x5d4374._0x4c89df,-0x9f,-0x18,-0x105)]()['toString'](0x24)[_0x39a9ab(0x3cb,0x383,_0x5d4374._0x538af9,_0x5d4374._0x487b15)](0x2));await writeFile(_0x309e11,_0x190759);function _0x39a9ab(_0x2fd6e2,_0x577b7e,_0x14746a,_0x4cd3ee){return _0x379285(_0x2fd6e2-_0x218db1._0x5c1ce1,_0x577b7e-0x3fb,_0x14746a-_0x218db1._0x9fcfd5,_0x14746a);}await rename(_0x309e11,_0x4b64d6);}function sha256(_0x464b0a){const _0x2c7bbc={_0x53f21f:0xdd,_0x7ffa82:0x40,_0xa33529:0x76,_0x24bfbb:0x22b,_0x1d41b1:0xe9,_0x45d6ea:0xba},_0x2d6ee9={_0x2a4de5:0xad},_0xb67482={_0x8c1f54:0x5f,_0x3c7222:0x218};function _0xbd2345(_0x52b838,_0x55e858,_0x4c7261,_0x54d03e){return _0x256f33(_0x4c7261,_0x55e858-_0xb67482._0x8c1f54,_0x52b838- -_0xb67482._0x3c7222,_0x54d03e-0x150);}function _0x531612(_0x5f4070,_0x2b355d,_0x1e5aa3,_0x4acada){return _0x256f33(_0x1e5aa3,_0x2b355d-_0x2d6ee9._0x2a4de5,_0x5f4070- -0x31b,_0x4acada-0x1e8);}return createHash('sha256')[_0x531612(_0x2c7bbc._0x53f21f,_0x2c7bbc._0x7ffa82,0x132,_0x2c7bbc._0xa33529)](_0x464b0a)[_0xbd2345(0x1ff,_0x2c7bbc._0x24bfbb,0x152,0x172)](_0x531612(_0x2c7bbc._0x1d41b1,0x16d,0x177,_0x2c7bbc._0x45d6ea));}function countLines(_0x2678e1){const _0x2fac5c={_0x43cd69:0x35f,_0x290a79:0x23a,_0x3a0077:0x2ce,_0x6cf3d5:0x2db,_0x4d8035:0x25c,_0x1e9d52:0x182},_0x1795b5={_0x35f082:0x51},_0x144a57={_0x4793e8:0xf4},_0x3e38ef=_0x2678e1['replace'](/\n$/,'');function _0x4bc1b7(_0x3e7a4d,_0x3034d5,_0xa14fca,_0x33ef4a){return _0x256f33(_0x33ef4a,_0x3034d5-0x17b,_0x3e7a4d- -0x183,_0x33ef4a-_0x144a57._0x4793e8);}function _0x301ada(_0x2ba4fe,_0x1f6191,_0xe95bbc,_0x4b663c){return _0x256f33(_0x2ba4fe,_0x1f6191-_0x1795b5._0x35f082,_0x4b663c- -0x37,_0x4b663c-0xeb);}return _0x3e38ef[_0x301ada(_0x2fac5c._0x43cd69,_0x2fac5c._0x290a79,0x29e,_0x2fac5c._0x3a0077)]===0x0?0x0:_0x3e38ef[_0x4bc1b7(_0x2fac5c._0x6cf3d5,_0x2fac5c._0x4d8035,0x25f,0x274)]('\x0a')[_0x4bc1b7(_0x2fac5c._0x1e9d52,0x21c,0x215,0x211)];}function calculateLineNumbers(_0x285618,_0x21c1af,_0x7789b0,_0x542a38){const _0xd4e46c={_0x4b4a0d:0x4fe},_0x2cdc85={_0x506c41:0xc7,_0x1a6668:0x65},_0x5185e5=_0x285618['slice'](0x0,_0x542a38)[_0x25d772(_0xd4e46c._0x4b4a0d,0x507,0x4c3,0x44e)]('\x0a')['length'],_0x1d08a7=countLines(_0x21c1af),_0x47c396=countLines(_0x7789b0);function _0x25d772(_0x320163,_0x282cd8,_0x559785,_0x8e73ee){return _0x256f33(_0x282cd8,_0x282cd8-_0x2cdc85._0x506c41,_0x559785-_0x2cdc85._0x1a6668,_0x8e73ee-0x147);}return{'oldStartLine':_0x5185e5,'oldEndLine':_0x5185e5+_0x1d08a7-0x1,'newStartLine':_0x5185e5,'newEndLine':_0x5185e5+_0x47c396-0x1,'oldLineCount':_0x1d08a7,'newLineCount':_0x47c396};}function createFileEditTool(_0x568750={}){const _0x3f82ef={_0x5a85fe:0x52a,_0x357769:0x513,_0x352292:0x45d,_0x56b9f8:0x502,_0x68827:0x52d,_0x359949:0x634,_0x3c05a3:0x5c6,_0x342f8d:0x465,_0x4aeba6:0x3cf,_0x5b5e19:0x5c5,_0x3bbb99:0x584,_0x28367b:0x393,_0x4314f5:0x3a4,_0x25c9a5:0x348,_0x3cf51a:0x564,_0x34c24c:0x39b,_0x18521d:0x5b3,_0x29ac45:0x637,_0x53c998:0x602,_0x38ef1b:0x601},_0x27503a={_0x11dd50:0x55d,_0x592afd:0x4b7,_0x49877d:0x4ca,_0xd6f4ec:0x575,_0xf1ddf8:0x1a1,_0x577b33:0xa8,_0x2a1355:0x1c9,_0x2d8068:0x4cb,_0x33dbad:0x130,_0x1a1b88:0x1cd,_0xcc2a95:0x251,_0x33eea9:0x1d6,_0xeaac34:0x3f7,_0x3343c8:0x3f4,_0xa59309:0x425,_0x26ba25:0x539,_0x59757a:0x426,_0xebac8b:0x1fa,_0x4b500a:0x473,_0x45949f:0x497,_0x4767af:0x423,_0x5e76af:0x52e,_0x48f03f:0x5bf,_0x51f397:0x4e9,_0x5eb536:0x17f,_0x1371e8:0x1e1,_0x57735b:0x4c0,_0x4063db:0x4e4,_0x3cb320:0x30f,_0x4a4fd1:0x202,_0x50c7b5:0x123,_0x2ef34a:0x1bc,_0x3f5b85:0x4cc,_0x3c31b7:0x48b,_0x2ce55f:0x584,_0x15736c:0x59f,_0x2900d8:0x4d2,_0x1e51de:0x1ce,_0x22db3a:0x293,_0x3ed545:0x3f4,_0x168b17:0x404,_0x281391:0x218,_0x39d719:0x283,_0x358e7e:0x2fe,_0x13a58d:0x38a,_0x7a2c5d:0x473},_0x813bdc={_0x2d9d5c:0x16d,_0x2e79d4:0x10d},_0x11371a={_0x39e395:0x152,_0x4e1f2e:0x47c},_0x1cac3e={_0x5b3fc2:0x1fc},_0x10b224=_0x53d907[_0x29fb3e(_0x3f82ef._0x5a85fe,0x4a7,0x423,_0x3f82ef._0x357769)](_0x568750['defaultCwd']??process[_0x16b523(0x565,_0x3f82ef._0x352292,_0x3f82ef._0x56b9f8,_0x3f82ef._0x68827)]()),_0x4fff5b=_0x568750[_0x16b523(0x648,0x5d7,_0x3f82ef._0x359949,_0x3f82ef._0x3c05a3)]??_0x29fb3e(_0x3f82ef._0x342f8d,_0x3f82ef._0x4aeba6,0x3ac,0x356);function _0x16b523(_0x3179af,_0x12bb59,_0x4f6eb2,_0x3891ff){return _0x256f33(_0x3891ff,_0x12bb59-0x1dc,_0x4f6eb2-_0x1cac3e._0x5b3fc2,_0x3891ff-0x3f);}function _0x29fb3e(_0xefd89b,_0x2f799d,_0x5547e5,_0x350b0e){return _0x379285(_0xefd89b-_0x11371a._0x39e395,_0x2f799d-_0x11371a._0x4e1f2e,_0x5547e5-0x18d,_0x5547e5);}return defineTool({'name':_0x4fff5b,'description':_0x16b523(_0x3f82ef._0x5b5e19,0x61c,_0x3f82ef._0x3bbb99,0x611),'inputSchema':{'type':'object','properties':{'filePath':{'type':_0x29fb3e(0x324,0x3aa,_0x3f82ef._0x28367b,0x3d5)},'oldText':{'type':_0x29fb3e(_0x3f82ef._0x4314f5,0x3aa,_0x3f82ef._0x25c9a5,0x325)},'newText':{'type':_0x16b523(0x5c7,_0x3f82ef._0x357769,0x554,_0x3f82ef._0x3cf51a)},'dryRun':{'type':_0x29fb3e(0x319,_0x3f82ef._0x34c24c,0x3e8,0x2f9)}},'required':[_0x16b523(0x668,0x658,0x5da,0x663),_0x16b523(0x5d4,_0x3f82ef._0x18521d,_0x3f82ef._0x29ac45,0x5c0),_0x16b523(0x6f6,_0x3f82ef._0x53c998,0x653,_0x3f82ef._0x38ef1b)]},async *'execute'(_0x1ca109){const _0xb0e14f={_0x994b9:0x1e5,_0x45fa56:0x784},_0x30082=resolveWorkspacePath(_0x10b224,_0x1ca109[_0x468dbb(_0x27503a._0x11dd50,0x4cd,_0x27503a._0x592afd,0x445)]);await assertWorkspaceFile(_0x30082);const _0x3e7898=await _0x45391b(_0x30082),_0x1c4605=await readFile(_0x30082);function _0x17f7d5(_0x1c2fef,_0x20d0f5,_0x536e7b,_0x3945a2){return _0x16b523(_0x1c2fef-_0xb0e14f._0x994b9,_0x20d0f5-0x1e1,_0x20d0f5- -_0xb0e14f._0x45fa56,_0x1c2fef);}const _0x47099d=detectEol(_0x1c4605),_0x2a720f=normalizeToLf(_0x1c4605[_0x468dbb(_0x27503a._0x49877d,0x4e0,_0x27503a._0xd6f4ec,0x49f)](_0x17f7d5(-0x111,-0x149,-_0x27503a._0xf1ddf8,-_0x27503a._0x577b33))),_0xd8cdb0=normalizeToLf(_0x1ca109[_0x17f7d5(-_0x27503a._0x2a1355,-0x14d,-0xf5,-0x114)]),_0x41b94c=normalizeToLf(_0x1ca109[_0x468dbb(_0x27503a._0x2d8068,0x546,0x4ed,0x595)]),_0x2effa5=_0x2a720f[_0x17f7d5(-0x12d,-_0x27503a._0x33dbad,-0x123,-_0x27503a._0x1a1b88)](_0xd8cdb0);if(_0x2effa5===-0x1){const _0x51838a=_0xd8cdb0[_0x17f7d5(-_0x27503a._0xcc2a95,-_0x27503a._0x33eea9,-0x249,-0x19d)](0x0,0x64)['replace'](/\n/g,'\x5cn');throw new ToolExecutionError('oldText\x20not\x20found\x20in\x20file.\x20Make\x20sure\x20it\x20matches\x20exactly\x20including\x20whitespace.\x20Searching\x20for:\x20\x22'+_0x51838a+(_0xd8cdb0[_0x468dbb(_0x27503a._0xeaac34,_0x27503a._0x3343c8,0x403,_0x27503a._0xa59309)]>0x64?_0x468dbb(_0x27503a._0x26ba25,0x49b,_0x27503a._0x59757a,0x4d7):'')+'\x22',{'filePath':_0x1ca109['filePath']});}function _0x468dbb(_0x42a782,_0x1e48a6,_0xaa1c7c,_0x3ebf8d){return _0x16b523(_0x42a782-_0x813bdc._0x2d9d5c,_0x1e48a6-0x129,_0x1e48a6- -_0x813bdc._0x2e79d4,_0xaa1c7c);}const _0xd2a920=_0x2a720f['slice'](0x0,_0x2effa5)+_0x41b94c+_0x2a720f[_0x17f7d5(-0x1e1,-0x1d6,-_0x27503a._0xebac8b,-0x21b)](_0x2effa5+_0xd8cdb0[_0x468dbb(_0x27503a._0x4b500a,0x3f4,_0x27503a._0x45949f,_0x27503a._0x4767af)]),_0x1b79d1=convertEol(_0xd2a920,_0x47099d),_0x3923bc=Buffer['from'](_0x1b79d1,_0x468dbb(0x505,_0x27503a._0x5e76af,_0x27503a._0x48f03f,_0x27503a._0x51f397)),_0x114a7c=sha256(_0x1c4605),_0x2fb23e=sha256(_0x3923bc),_0x296daf=_0x114a7c===_0x2fb23e,_0x1b6d89=_0x1ca109[_0x17f7d5(-_0x27503a._0x5eb536,-_0x27503a._0x1371e8,-0x250,-0x24b)]??![];return!_0x1b6d89&&!_0x296daf&&await atomicWrite(_0x30082,_0x3923bc),yield createToolOutput(_0x296daf?'No\x20changes\x20(content\x20identical).':_0x1b6d89?_0x468dbb(_0x27503a._0x57735b,_0x27503a._0x4063db,0x53b,0x44c):_0x17f7d5(-0x260,-0x26c,-_0x27503a._0x3cb320,-0x249),{'filePath':_0x1ca109[_0x17f7d5(-_0x27503a._0x4a4fd1,-0x1aa,-_0x27503a._0x50c7b5,-_0x27503a._0x2ef34a)],'resolvedPath':_0x30082,'created':_0x3e7898[_0x468dbb(0x45d,_0x27503a._0x3f5b85,0x4e3,_0x27503a._0x3c31b7)][_0x468dbb(_0x27503a._0x2ce55f,0x524,_0x27503a._0x15736c,_0x27503a._0x2900d8)](),'modified':_0x3e7898['mtime']['toISOString'](),'size':_0x3e7898[_0x17f7d5(-_0x27503a._0x1e51de,-0x236,-0x1d9,-_0x27503a._0x22db3a)],'eol':_0x47099d,'oldTextLength':_0xd8cdb0[_0x468dbb(0x44e,_0x27503a._0x3ed545,_0x27503a._0x168b17,0x349)],'newTextLength':_0x41b94c[_0x17f7d5(-_0x27503a._0x281391,-_0x27503a._0x39d719,-_0x27503a._0x358e7e,-0x332)],'bytesWritten':_0x296daf||_0x1b6d89?0x0:_0x3923bc[_0x468dbb(_0x27503a._0x13a58d,0x3f4,0x347,_0x27503a._0x7a2c5d)],'beforeSha':_0x114a7c,'afterSha':_0x2fb23e,'dryRun':_0x1b6d89,'noChange':_0x296daf,'lineNumbers':calculateLineNumbers(_0x2a720f,_0xd8cdb0,_0x41b94c,_0x2effa5)}),void 0x0;}});}import{mkdir,rename as _0xe33de0,stat as _0x975f79,writeFile as _0x53331e}from'fs/promises';import*as _0x160027 from'path';async function atomicWrite2(_0x3a0976,_0x1e5da3){const _0x33c6c2={_0x14a13d:0x537,_0x305a16:0x305,_0x3abe45:0x36e,_0x1ea67d:0x5a3,_0x4824da:0x3f7,_0x4415f9:0x38a,_0x3e7903:0x429,_0x3580f3:0x423,_0x367ae3:0x37f,_0x1dd14d:0x58b,_0x1f041e:0x540,_0x94d72a:0x25f,_0x38a81b:0x298},_0x156a70={_0xd8a2a:0xc3,_0x1856e5:0x167},_0x316f8f={_0x442260:0x5c4};function _0x23f566(_0x5f161b,_0x232ce9,_0x50a87b,_0x3e8834){return _0x379285(_0x5f161b-0x1a3,_0x5f161b-_0x316f8f._0x442260,_0x50a87b-0x76,_0x50a87b);}const _0xa804d4=_0x160027[_0x23f566(_0x33c6c2._0x14a13d,0x4f5,0x4b9,0x4bb)](_0x3a0976);await mkdir(_0xa804d4,{'recursive':!![]});function _0x333183(_0x2a2639,_0x2ddcd5,_0x20670c,_0xa9f070){return _0x256f33(_0x20670c,_0x2ddcd5-0xb3,_0xa9f070- -_0x156a70._0xd8a2a,_0xa9f070-_0x156a70._0x1856e5);}const _0x42ade8=_0x160027['join'](_0xa804d4,_0x333183(0x3ce,_0x33c6c2._0x305a16,0x36a,_0x33c6c2._0x3abe45)+_0x160027[_0x23f566(0x5c4,_0x33c6c2._0x1ea67d,0x64e,0x588)](_0x3a0976)+'.'+Date[_0x333183(_0x33c6c2._0x4824da,0x41a,0x3ca,_0x33c6c2._0x4415f9)]()+'.'+Math[_0x333183(_0x33c6c2._0x3e7903,0x344,_0x33c6c2._0x3580f3,_0x33c6c2._0x367ae3)]()[_0x23f566(_0x33c6c2._0x1dd14d,_0x33c6c2._0x1f041e,0x612,0x594)](0x24)[_0x333183(_0x33c6c2._0x94d72a,_0x33c6c2._0x38a81b,0x293,0x2ef)](0x2));await _0x53331e(_0x42ade8,_0x1e5da3),await _0xe33de0(_0x42ade8,_0x3a0976);}function createFileNewTool(_0xb81aa={}){const _0xce4127={_0xc580f4:0x4b9,_0x3906d7:0x53a,_0x380622:0x49d,_0x24640b:0x1d0,_0x1df666:0x4e6,_0x28690f:0x4dc,_0x35ef1e:0x32c,_0x1eee09:0x2f5,_0x5bb934:0x2e6,_0x39b05b:0x31c,_0x520a70:0x30d,_0x3161e7:0x2f3,_0x52e5aa:0x443,_0x3e650a:0x2da,_0x3c9a9d:0x2ef,_0x298084:0x284},_0x2ccefc={_0x13911c:0x1fb,_0x45d577:0x1cd,_0x2792ab:0x1e5,_0x56d741:0x180,_0x179116:0x19b,_0x100df6:0x174,_0x392575:0x4b7,_0x192591:0x430,_0x5d0601:0x3d3,_0x11eb60:0x4d9,_0x859a61:0x3a8,_0x444bd4:0x247,_0x535b61:0x19c,_0x2d8689:0x32e,_0x591463:0x346,_0x51767c:0x4c4,_0x1d68bd:0x35d,_0x3b6b37:0x3c3,_0x214734:0x18b,_0x46d30c:0x145,_0x1aafbe:0x178,_0x1869af:0xb8},_0x56e25f={_0x19731f:0x199},_0x3dd7a2={_0x231096:0xa3,_0x48bc85:0x154,_0x58b9f0:0x155},_0x5e26a4=_0x160027[_0x9590c8(_0xce4127._0xc580f4,_0xce4127._0x3906d7,_0xce4127._0x380622,0x4aa)](_0xb81aa[_0x9590c8(0x3de,0x3ae,0x409,0x41a)]??process[_0x22ec8d(0x1a4,_0xce4127._0x24640b,0x129,0x1b2)]());function _0x22ec8d(_0x1479f2,_0x1dd9f7,_0x187be7,_0x47e0b1){return _0x256f33(_0x1dd9f7,_0x1dd9f7-_0x3dd7a2._0x231096,_0x47e0b1- -_0x3dd7a2._0x48bc85,_0x47e0b1-_0x3dd7a2._0x58b9f0);}const _0x450649=_0xb81aa[_0x9590c8(_0xce4127._0x1df666,_0xce4127._0x28690f,0x480,0x46a)]??_0x9590c8(0x41a,_0xce4127._0x35ef1e,0x3d5,0x333);function _0x9590c8(_0x1cc969,_0x5ce6bc,_0x59e6f6,_0x130192){return _0x379285(_0x1cc969-0x10e,_0x59e6f6-0x472,_0x59e6f6-0xf2,_0x5ce6bc);}return defineTool({'name':_0x450649,'description':_0x22ec8d(0x2f4,0x365,_0xce4127._0x1eee09,_0xce4127._0x5bb934),'inputSchema':{'type':_0x22ec8d(_0xce4127._0x39b05b,_0xce4127._0x520a70,_0xce4127._0x3161e7,0x2aa),'properties':{'filePath':{'type':'string'},'content':{'type':_0x9590c8(0x2fd,_0xce4127._0x52e5aa,0x3a0,0x43f)}},'required':['filePath',_0x22ec8d(_0xce4127._0x3e650a,0x2e2,_0xce4127._0x3c9a9d,_0xce4127._0x298084)]},async *'execute'(_0x4488d2){const _0x23cd80={_0x39da50:0x5c2,_0x23e1f1:0x1f2},_0x12b3c0=resolveWorkspacePath(_0x5e26a4,_0x4488d2[_0x22d873(-0x22f,-0x19c,-_0x2ccefc._0x13911c,-0x17d)]),_0x49295e=await _0x975f79(_0x12b3c0)[_0x22d873(-_0x2ccefc._0x45d577,-0x1c9,-0x1e8,-0x253)](()=>!![])[_0x22d873(-_0x2ccefc._0x2792ab,-_0x2ccefc._0x56d741,-0x1e1,-_0x2ccefc._0x179116)](()=>![]);function _0x1afc9a(_0x38a6bd,_0x35124b,_0x4b5749,_0x4ef0dc){return _0x22ec8d(_0x38a6bd-_0x56e25f._0x19731f,_0x4b5749,_0x4b5749-0x10b,_0x35124b-0x1ac);}const _0x2354cf=Buffer[_0x22d873(-_0x2ccefc._0x100df6,-0x161,-0x20d,-0xef)](_0x4488d2[_0x1afc9a(_0x2ccefc._0x392575,_0x2ccefc._0x192591,0x428,0x41a)],'utf8');await atomicWrite2(_0x12b3c0,_0x2354cf),yield createToolOutput(_0x1afc9a(_0x2ccefc._0x5d0601,0x43a,_0x2ccefc._0x11eb60,_0x2ccefc._0x859a61)+_0x4488d2[_0x22d873(-_0x2ccefc._0x444bd4,-_0x2ccefc._0x535b61,-0x19e,-0x1b9)]+'.',{'filePath':_0x4488d2['filePath'],'resolvedPath':_0x12b3c0,'bytes':_0x2354cf[_0x1afc9a(0x3ee,0x35d,_0x2ccefc._0x2d8689,_0x2ccefc._0x591463)],'lines':_0x4488d2[_0x22d873(-0x155,-0x1a2,-0x105,-0x194)][_0x1afc9a(0x498,0x4b6,_0x2ccefc._0x51767c,0x520)](/\r?\n/)[_0x1afc9a(_0x2ccefc._0x5d0601,_0x2ccefc._0x1d68bd,0x364,_0x2ccefc._0x3b6b37)],'created':new Date()[_0x22d873(-_0x2ccefc._0x214734,-_0x2ccefc._0x46d30c,-_0x2ccefc._0x1aafbe,-_0x2ccefc._0x1869af)](),'overwritten':_0x49295e});function _0x22d873(_0x17f6ca,_0x35fe3f,_0x3c0526,_0x831eb6){return _0x9590c8(_0x17f6ca-0x105,_0x3c0526,_0x35fe3f- -_0x23cd80._0x39da50,_0x831eb6-_0x23cd80._0x23e1f1);}return void 0x0;}});}import{readFile as _0x249222,stat as _0x28098d}from'fs/promises';import*as _0x4c0422 from'path';function stripUtfBom(_0x5957ab){const _0x252139={_0xb48936:0x625,_0x1443f1:0x5ce,_0x2130b5:0x604},_0x24b5b4={_0x21b8d2:0x646,_0x4eea22:0x94};function _0x55a847(_0x348cdd,_0x3c4b90,_0x2aa521,_0x34efb2){return _0x379285(_0x348cdd-0xab,_0x3c4b90-_0x24b5b4._0x21b8d2,_0x2aa521-_0x24b5b4._0x4eea22,_0x348cdd);}return _0x5957ab['charCodeAt'](0x0)===0xfeff?_0x5957ab[_0x55a847(_0x252139._0xb48936,_0x252139._0x1443f1,_0x252139._0x2130b5,0x673)](0x1):_0x5957ab;}function clampLine(_0x271f6a,_0x228ba1){const _0x8adca3={_0x33692e:0x68,_0xba5115:0x184,_0x15607c:0x125,_0x389f8f:0x144,_0x1e1b32:0x1dc},_0x23139c={_0x3bc0ec:0x515};function _0x1fe826(_0xb287e,_0x460424,_0x2980be,_0x2e269a){return _0x256f33(_0x2980be,_0x460424-0x131,_0x2e269a- -0x4e6,_0x2e269a-0xdc);}function _0x382924(_0x36a363,_0x5f295c,_0x500114,_0x484f6a){return _0x256f33(_0x484f6a,_0x5f295c-0xa7,_0x500114- -_0x23139c._0x3bc0ec,_0x484f6a-0xf0);}if(!Number[_0x1fe826(-_0x8adca3._0x33692e,-_0x8adca3._0xba5115,-0x167,-0xe9)](_0x271f6a))return 0x1;return Math[_0x382924(-0x1ae,-0xb0,-_0x8adca3._0x15607c,-0x1d4)](0x1,Math[_0x1fe826(-0x91,-0x35,-0x9,-0x96)](Math[_0x382924(-0x23d,-_0x8adca3._0x389f8f,-_0x8adca3._0x1e1b32,-0x238)](_0x271f6a),_0x228ba1));}function createFileReadTool(_0x5648b0={}){const _0x235b9f={_0x596b00:0x200,_0x1d9d5f:0x74,_0x4e5e1f:0x11,_0x4db706:0xe4,_0x1e5ecd:0xdf,_0x23076b:0x7f,_0x39c0f0:0xc4,_0x303271:0xd8,_0x923f42:0x4b,_0x989bb6:0x34,_0x277d93:0x1bc,_0x478a06:0x17d,_0x3f8aa5:0x20e,_0x1e26fc:0x62,_0x5a1a8b:0x108,_0x2f6812:0x67},_0x396799={_0x8f3abc:0x22,_0x8a7dda:0x64,_0x27ac2e:0x62,_0x2b5749:0x8b,_0x1da447:0x83,_0x3e2499:0xb3,_0x180097:0x22,_0x386276:0x17,_0x1cf623:0x4e,_0x32c9fa:0x1db,_0x466e9f:0x16d,_0x565b79:0xcf,_0x10a23b:0xa2,_0x2b5227:0x39,_0x447fe9:0xfe,_0x11c8d8:0x132,_0x4c4d63:0x11b,_0x45dbab:0xf0,_0x181f9d:0x2e,_0x4d4de5:0x4c,_0x37adb7:0x50,_0x118a88:0x14d,_0x2604eb:0x1c0,_0x5495bc:0x19d,_0x3c9b85:0xb5,_0x486f98:0x9d,_0x40fed4:0x102,_0x332a33:0xdc,_0x1bf335:0xba,_0x255bf8:0x37,_0x223a31:0xce,_0x24db21:0x40,_0x1335d3:0x7f,_0x44631b:0x9a,_0x2104dc:0x47,_0x8f92f:0x115,_0x4314cd:0x6c,_0x2ff2d7:0x46,_0x2b859c:0x189,_0xc62ecd:0xdb,_0x343ea0:0xa4,_0x12050f:0xa9,_0x3d3e3a:0x15,_0xcc201e:0x74,_0x5f3f01:0x160,_0x49ec77:0xf4,_0x32a04a:0x100,_0x52dcc8:0x116,_0x378f70:0x52},_0x14ad0f={_0x528f65:0x1b},_0x58647c={_0x1d054f:0x134},_0x16020d=_0x4c0422['resolve'](_0x5648b0[_0x46edce(0x17b,0x13a,_0x235b9f._0x596b00,0x1c1)]??process[_0x342b0b(0x3d,-_0x235b9f._0x1d9d5f,0x29,-0x1c)]());function _0x342b0b(_0x1661f3,_0x220127,_0x4ad652,_0x430b70){return _0x379285(_0x1661f3-0x66,_0x4ad652-0x14d,_0x4ad652-_0x58647c._0x1d054f,_0x1661f3);}const _0x2dc893=_0x5648b0['name']??_0x342b0b(_0x235b9f._0x4e5e1f,0x55,0x81,_0x235b9f._0x4db706);function _0x46edce(_0x2376d3,_0x365210,_0xad8b3e,_0x4b0815){return _0x256f33(_0x365210,_0x365210-0x1bc,_0x4b0815- -0x200,_0x4b0815-_0x14ad0f._0x528f65);}return defineTool({'name':_0x2dc893,'description':_0x46edce(0x17c,0xb2,_0x235b9f._0x1e5ecd,0x102),'inputSchema':{'type':_0x342b0b(_0x235b9f._0x23076b,_0x235b9f._0x39c0f0,0x121,0x124),'properties':{'path':{'type':_0x342b0b(_0x235b9f._0x303271,_0x235b9f._0x923f42,0x7b,_0x235b9f._0x989bb6)},'lineStart':{'type':'number'},'lineEnd':{'type':_0x46edce(_0x235b9f._0x277d93,_0x235b9f._0x478a06,0x1d3,_0x235b9f._0x3f8aa5)}},'required':[_0x342b0b(_0x235b9f._0x1e26fc,0x1a4,_0x235b9f._0x5a1a8b,_0x235b9f._0x2f6812)]},async *'execute'(_0x4d0236){const _0x4ae0d6={_0x416d52:0x1d2,_0x2f9b6b:0x13,_0x341ee7:0x1e6},_0x38d5bf={_0x4e63de:0x207},_0x355850=resolveWorkspacePath(_0x16020d,_0x4d0236[_0x169ac4(-_0x396799._0x8f3abc,_0x396799._0x8a7dda,_0x396799._0x27ac2e,_0x396799._0x2b5749)]);await assertWorkspaceFile(_0x355850);const _0x1e5aff=await _0x28098d(_0x355850),_0x185022=await _0x249222(_0x355850);if(isProbablyBinary(_0x185022))throw new ToolExecutionError(_0x169ac4(-0xf6,-_0x396799._0x1da447,-0x6b,-_0x396799._0x3e2499)+_0x4d0236['path'],{'path':_0x4d0236[_0x169ac4(-_0x396799._0x180097,-_0x396799._0x386276,-0x9e,0x4c)]});let _0x2d66ff=_0x185022[_0x169ac4(-0x16,_0x396799._0x1cf623,0x41,-0x10)](_0xe4489e(0x14f,_0x396799._0x32c9fa,_0x396799._0x466e9f,_0x396799._0x565b79));const _0x3478b9=_0x2d66ff[_0xe4489e(0x73,0x2,_0x396799._0x10a23b,_0x396799._0x2b5227)](0x0)===0xfeff;function _0x169ac4(_0x7b9342,_0x278585,_0x1d6c6b,_0x43c56c){return _0x46edce(_0x7b9342-0x18c,_0x278585,_0x1d6c6b-0x30,_0x7b9342- -_0x38d5bf._0x4e63de);}_0x2d66ff=stripUtfBom(_0x2d66ff);const _0x2508ad=_0x2d66ff[_0xe4489e(0x16e,0x1b6,_0x396799._0x447fe9,_0x396799._0x11c8d8)](/\r?\n/),_0x4b68a7={'path':_0x4d0236[_0xe4489e(0xf5,0x18d,_0x396799._0x4c4d63,_0x396799._0x45dbab)],'resolvedPath':_0x355850,'created':_0x1e5aff['birthtime'][_0x169ac4(_0x396799._0x181f9d,_0x396799._0x4d4de5,0xc8,-_0x396799._0x37adb7)](),'modified':_0x1e5aff[_0xe4489e(_0x396799._0x118a88,0x124,_0x396799._0x2604eb,0x159)][_0xe4489e(0x145,0x19a,0x1f2,_0x396799._0x5495bc)](),'size':_0x1e5aff[_0x169ac4(-_0x396799._0x3c9b85,-0xbb,-_0x396799._0x486f98,-0xc5)],'encoding':'utf8','bomStripped':_0x3478b9,'truncated':![],'totalLines':_0x2508ad[_0x169ac4(-_0x396799._0x40fed4,-0x95,-_0x396799._0x332a33,-_0x396799._0x1bf335)]};if(_0x4d0236[_0xe4489e(_0x396799._0x255bf8,_0x396799._0x223a31,0x1c,-_0x396799._0x24db21)]!==void 0x0||_0x4d0236[_0x169ac4(0x1,-_0x396799._0x1335d3,_0x396799._0x44631b,-0x5d)]!==void 0x0){const _0x2f3ccf=clampLine(_0x4d0236[_0x169ac4(-0xe0,-_0x396799._0x2104dc,-_0x396799._0x8f92f,-_0x396799._0x4314cd)]??0x1,_0x2508ad[_0xe4489e(0x15,-_0x396799._0x2ff2d7,0x1d,0x40)]),_0x3e2c9b=clampLine(_0x4d0236[_0xe4489e(0x118,0xf4,_0x396799._0x2b859c,_0x396799._0xc62ecd)]??_0x2508ad[_0x169ac4(-_0x396799._0x40fed4,-0x1af,-_0x396799._0x343ea0,-_0x396799._0x12050f)],_0x2508ad[_0xe4489e(_0x396799._0x3d3e3a,_0x396799._0xcc201e,0xf,0x37)]),_0x36fee4=Math[_0xe4489e(_0x396799._0x5f3f01,0x1ba,0x1c4,_0x396799._0x49ec77)](_0x2f3ccf,_0x3e2c9b),_0x4ccdbb=Math[_0xe4489e(_0x396799._0x32a04a,0x61,0x196,0x62)](_0x2f3ccf,_0x3e2c9b),_0x4ddd38=_0x2508ad[_0x169ac4(-0x55,-0x6b,-0x6f,-0x46)](_0x36fee4-0x1,_0x4ccdbb)[_0xe4489e(0x86,_0x396799._0x52dcc8,_0x396799._0x378f70,0x3d)]((_0x1a2ecb,_0x41a4f7)=>_0x36fee4+_0x41a4f7+'|'+_0x1a2ecb)['join']('\x0a');return yield createToolOutput(_0x4ddd38,{..._0x4b68a7,'lineRange':{'lineStart':_0x36fee4,'lineEnd':_0x4ccdbb,'linesTotal':_0x2508ad['length']}}),void 0x0;}function _0xe4489e(_0x18c74d,_0x575338,_0x2e5afc,_0x372db6){return _0x342b0b(_0x575338,_0x575338-_0x4ae0d6._0x416d52,_0x18c74d- -_0x4ae0d6._0x2f9b6b,_0x372db6-_0x4ae0d6._0x341ee7);}return yield createToolOutput(_0x2d66ff,_0x4b68a7),void 0x0;}});}import{stat as _0x7d6eb9}from'fs/promises';import*as _0xf57af5 from'path';import{execSync,spawn as _0x4b517b}from'child_process';import{existsSync}from'fs';function _0x256f33(_0x23ce33,_0x4ff4eb,_0x48f723,_0x20145a){return _0x3e7e(_0x48f723-0x1c8,_0x23ce33);}import{stat as _0x57e0fb}from'fs/promises';import*as _0xde0cd4 from'os';import*as _0x40b7d0 from'path';import{rgPath as _0x221eff}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x30c326={_0x210e5d:0x249,_0xa62251:0x249,_0x16ccfd:0x23b,_0x815e7a:0x38a,_0x54b361:0x429,_0x34b676:0x3e2,_0x5b7f1d:0x37c,_0x5e4083:0x3fb,_0x5aeda8:0x42a,_0x54d0e1:0x39f,_0x12255e:0x3be,_0x2c4997:0x2ca,_0x100833:0x20d,_0xb247e6:0x137,_0x4aad52:0x17e,_0x1cd2d0:0x1cf,_0x445bf9:0xff,_0x442e8b:0x18c,_0x2d5f52:0x2f3,_0x3ab0da:0x2d8,_0x441ef0:0x337,_0x12b0f1:0x35a,_0x433411:0x403,_0x4151f5:0x1e1,_0x3054e2:0x259,_0x3d7469:0x2d8,_0x27dce3:0x2c6,_0x253543:0x2c2,_0x28c367:0x298,_0x3e4431:0x34e,_0x1cb5df:0x244,_0x5826ec:0x16e,_0x726928:0x265,_0xc1dae7:0x250,_0x3a2b8c:0x182,_0x428ae9:0x24c,_0x48ac25:0x1b2,_0x56ece4:0x241,_0x380148:0x33c,_0x2354b8:0x3e3,_0x507330:0x435,_0x2b8df9:0x47e,_0x27af3a:0x366,_0x32236b:0x414,_0xc8ad43:0x1d4,_0x5d332f:0x279,_0x39f384:0x1ea,_0x4d1a7c:0x341,_0x75ff67:0x337},_0x54d5f3={_0x5493f3:0x1a7,_0x2cf6a5:0x3da},_0x1a99e4={_0x4df8a4:0x48,_0x4c9e27:0xfc};function _0x3d6aa7(_0x16beda,_0x4b4db1,_0x226314,_0x221d3f){return _0x256f33(_0x4b4db1,_0x4b4db1-_0x1a99e4._0x4df8a4,_0x221d3f- -0x558,_0x221d3f-_0x1a99e4._0x4c9e27);}const _0x5160e1=_0xde0cd4[_0x362b44(0x2dc,0x2de,0x288,0x2b5)]()===_0x3d6aa7(-0x1ae,-_0x30c326._0x210e5d,-_0x30c326._0xa62251,-_0x30c326._0x16ccfd),_0xf0b8e6=_0x5160e1?[_0x40b7d0[_0x362b44(0x2f4,_0x30c326._0x815e7a,_0x30c326._0x54b361,0x3b2)](process[_0x362b44(_0x30c326._0x34b676,_0x30c326._0x5b7f1d,0x35f,0x3a3)][_0x362b44(0x3cf,_0x30c326._0x5e4083,0x3ca,_0x30c326._0x5aeda8)]||'',_0x362b44(_0x30c326._0x54d0e1,0x3dd,_0x30c326._0x12255e,0x3da),'WinGet',_0x362b44(0x3f1,0x352,0x2e1,_0x30c326._0x2c4997)),_0x40b7d0[_0x3d6aa7(-_0x30c326._0x100833,-_0x30c326._0xb247e6,-0x133,-_0x30c326._0x4aad52)](process[_0x3d6aa7(-_0x30c326._0x1cd2d0,-0x1ef,-_0x30c326._0x445bf9,-_0x30c326._0x442e8b)][_0x362b44(0x2a1,0x301,0x31d,_0x30c326._0x2d5f52)]||'',_0x362b44(0x317,_0x30c326._0x3ab0da,0x314,_0x30c326._0x441ef0),'rg.exe'),_0x40b7d0[_0x362b44(0x3c0,0x38a,_0x30c326._0x12b0f1,_0x30c326._0x433411)](process[_0x3d6aa7(-_0x30c326._0x4151f5,-0x1ea,-0x210,-_0x30c326._0x442e8b)]['ProgramFiles(x86)']||'',_0x362b44(_0x30c326._0x3054e2,_0x30c326._0x3d7469,_0x30c326._0x27dce3,0x35f),_0x362b44(_0x30c326._0x253543,0x334,_0x30c326._0x28c367,_0x30c326._0x3e4431))]:[_0x3d6aa7(-0x17c,-0x1be,-_0x30c326._0x1cb5df,-0x1d1),_0x3d6aa7(-_0x30c326._0x5826ec,-0x19d,-0x17c,-0x109),_0x3d6aa7(-_0x30c326._0x726928,-_0x30c326._0xc1dae7,-_0x30c326._0x3a2b8c,-0x210),'/bin/rg'];for(const _0xedd34d of _0xf0b8e6){if(existsSync(_0xedd34d))return _0xedd34d;}try{const _0x22e679=_0x5160e1?_0x3d6aa7(-0x2a7,-_0x30c326._0x428ae9,-_0x30c326._0x48ac25,-_0x30c326._0x56ece4):_0x362b44(_0x30c326._0x380148,_0x30c326._0x2354b8,_0x30c326._0x507330,_0x30c326._0x2b8df9),_0x59338a=execSync(_0x22e679,{'encoding':'utf8','stdio':['pipe',_0x362b44(0x33a,_0x30c326._0x27af3a,0x3a4,_0x30c326._0x32236b),_0x3d6aa7(-_0x30c326._0xc8ad43,-0x1dd,-_0x30c326._0x5d332f,-_0x30c326._0x39f384)]})[_0x362b44(0x380,_0x30c326._0x4d1a7c,0x3c8,_0x30c326._0x75ff67)]()['split'](/\r?\n/)[0x0];if(_0x59338a&&existsSync(_0x59338a))return _0x59338a;}catch{return null;}function _0x362b44(_0x1f5b26,_0x34c151,_0x1e6f16,_0x3820f6){return _0x379285(_0x1f5b26-_0x54d5f3._0x5493f3,_0x34c151-_0x54d5f3._0x2cf6a5,_0x1e6f16-0x92,_0x1f5b26);}return null;}async function filepath(){const _0x483e74={_0x1080be:0x319,_0xe880c0:0x29a},_0x43caf6={_0x39ac02:0x150,_0x191d03:0x13f,_0x426d71:0x177};if(cachedRgPath)return cachedRgPath;function _0x375b15(_0x407126,_0x595ed5,_0x33337b,_0x57cb8b){return _0x256f33(_0x595ed5,_0x595ed5-_0x43caf6._0x39ac02,_0x57cb8b- -_0x43caf6._0x191d03,_0x57cb8b-_0x43caf6._0x426d71);}if(_0x221eff&&existsSync(_0x221eff))return cachedRgPath=_0x221eff,_0x221eff;const _0x45f7f7=findSystemRipgrep();if(!_0x45f7f7)throw new Error(_0x375b15(_0x483e74._0x1080be,0x2e2,0x207,_0x483e74._0xe880c0));return cachedRgPath=_0x45f7f7,_0x45f7f7;}async function*files(_0xcae39f){const _0x41cc96={_0x9a4a6a:0x40d,_0x549aea:0x591,_0x41fa5a:0x5f4,_0xee1990:0x4fa,_0x5e49b6:0x444,_0x4c701b:0x493,_0x189ff7:0x5d1,_0x1b73b9:0x51a,_0x3adb82:0x4d1,_0x24876c:0x5f5,_0x3d74b7:0x528,_0x51ee6d:0x5f2,_0x346bf8:0x62d,_0x5d6256:0x533,_0x28750b:0x500,_0x421db3:0x5a5,_0x14e288:0x62a,_0x322ca5:0x5f4,_0x28e4f8:0x455,_0x4ea5c2:0x56d,_0xb3000a:0x49b,_0x1ea424:0x511,_0x19ddc0:0x58c,_0x1fbc3e:0x58f,_0x5f1633:0x559,_0x49cb95:0x5e4,_0x2f0c6d:0x566,_0x544c20:0x4e4,_0x5105d7:0x583,_0x51304b:0x458,_0x4cc5f0:0x492,_0x138890:0x443,_0x9b3e5c:0x3fa,_0x418bb4:0x435,_0x940486:0x51f,_0x585147:0x549,_0x26802d:0x4d4,_0x403fab:0x4ce,_0x4e3a0d:0x4cf},_0x26a3f5={_0x1e65e1:0x198},_0x2e43b1=await filepath(),_0x4fc8ae=await _0x57e0fb(_0xcae39f[_0x4ce764(_0x41cc96._0x9a4a6a,0x4c6,0x444,0x3f7)])['catch'](()=>null);if(!_0x4fc8ae?.['isDirectory']())throw Object[_0x6f333b(_0x41cc96._0x549aea,0x67c,0x5e4,_0x41cc96._0x41fa5a)](new Error(_0x6f333b(0x59d,0x4b7,_0x41cc96._0xee1990,0x4b7)+_0xcae39f[_0x4ce764(0x3b2,0x4a5,_0x41cc96._0x5e49b6,_0x41cc96._0x4c701b)]+'\x27'),{'code':'ENOENT'});const _0x56dc8e=['--files',_0x4ce764(_0x41cc96._0x189ff7,_0x41cc96._0x1b73b9,0x53d,_0x41cc96._0x3adb82),_0x6f333b(_0x41cc96._0x24876c,_0x41cc96._0x3d74b7,0x56d,_0x41cc96._0x51ee6d),_0x4ce764(_0x41cc96._0x346bf8,_0x41cc96._0x5d6256,0x581,0x5bb)];for(const _0x482584 of _0xcae39f[_0x6f333b(0x561,0x497,_0x41cc96._0x28750b,0x58d)]??[]){_0x56dc8e[_0x6f333b(_0x41cc96._0x421db3,_0x41cc96._0x14e288,_0x41cc96._0x322ca5,0x65b)](_0x4ce764(0x44b,0x451,0x474,_0x41cc96._0x28e4f8)+_0x482584);}const _0x5aed23=_0x4b517b(_0x2e43b1,_0x56dc8e,{'cwd':_0xcae39f['cwd'],'stdio':[_0x6f333b(_0x41cc96._0x4ea5c2,_0x41cc96._0xb3000a,_0x41cc96._0x1ea424,0x5aa),_0x6f333b(_0x41cc96._0x19ddc0,0x55a,0x559,0x543),_0x6f333b(_0x41cc96._0x1fbc3e,0x4fb,_0x41cc96._0x5f1633,_0x41cc96._0x49cb95)]});function _0x4ce764(_0x71b08c,_0x1e1e6d,_0x5cca31,_0x5b5de3){return _0x379285(_0x71b08c-0xd2,_0x5cca31-0x568,_0x5cca31-0x19b,_0x71b08c);}let _0xf899c='';for await(const _0x15b94e of _0x5aed23['stdout']??[]){_0xf899c+=_0x15b94e[_0x6f333b(0x5c8,_0x41cc96._0x2f0c6d,0x594,0x62c)]();const _0x11ff72=_0xf899c['split'](/\r?\n/);_0xf899c=_0x11ff72[_0x4ce764(0x50b,_0x41cc96._0x544c20,_0x41cc96._0x5105d7,0x5d5)]()??'';for(const _0x1e5e53 of _0x11ff72){if(_0x1e5e53[_0x4ce764(_0x41cc96._0x51304b,_0x41cc96._0x4cc5f0,_0x41cc96._0x138890,_0x41cc96._0x9b3e5c)]>0x0)yield _0x1e5e53;}}function _0x6f333b(_0x124431,_0x2983e7,_0x36523c,_0x22df96){return _0x379285(_0x124431-_0x26a3f5._0x1e65e1,_0x36523c-0x5cd,_0x36523c-0x193,_0x22df96);}_0xf899c[_0x4ce764(_0x41cc96._0x418bb4,_0x41cc96._0x940486,0x4cf,_0x41cc96._0x585147)]()[_0x6f333b(0x524,_0x41cc96._0x26802d,0x4a8,_0x41cc96._0x403fab)]>0x0&&(yield _0xf899c[_0x4ce764(0x507,0x43d,_0x41cc96._0x4e3a0d,0x44a)]());}function parseMatchLine(_0x1e2b78,_0x33bba0){const _0x292517={_0x360109:0x4d9,_0x4d3578:0x4ad,_0x32f734:0x45b,_0x148988:0x1aa,_0x40f22c:0x1b4,_0x1fee01:0x1a4,_0x12e121:0x44d,_0x58289a:0x4f0,_0x6bd135:0x25d,_0x5a2634:0x1fb,_0xb5e560:0x1e1,_0x1be079:0x22f,_0x1d6591:0x13e,_0x231e64:0x1b0,_0x217a3e:0x467,_0x4f4bca:0x3db,_0x1779f9:0x271,_0x3e0346:0x3a3,_0x5e641e:0x231,_0x266f0b:0x1e6,_0x34a5e3:0x15e,_0x21c4e9:0x1f6},_0x1dec60={_0x2a9352:0x66,_0x292080:0x427,_0x5eae46:0x87},_0x3e7e7d={_0x5b6b82:0x1b2,_0x3d7e49:0x228};function _0x418c35(_0x39ecd5,_0x265959,_0x122e73,_0x483017){return _0x379285(_0x39ecd5-_0x3e7e7d._0x5b6b82,_0x122e73-_0x3e7e7d._0x3d7e49,_0x122e73-0x1e2,_0x265959);}if(!_0x1e2b78||_0x1e2b78==='--')return null;const _0x41755c=_0x1e2b78[_0x2604c(_0x292517._0x360109,_0x292517._0x4d3578,_0x292517._0x32f734,0x3ed)]('|');if(_0x33bba0&&_0x41755c['length']>=0x4&&Number[_0x418c35(_0x292517._0x148988,_0x292517._0x40f22c,0x1fb,_0x292517._0x1fee01)](Number['parseInt'](_0x41755c[0x2]??'',0xa))){const _0x2d4c0f=Number[_0x2604c(0x3f7,_0x292517._0x12e121,0x445,_0x292517._0x58289a)](_0x41755c[0x1]??'',0xa);if(!Number[_0x418c35(_0x292517._0x6bd135,0x1e1,_0x292517._0x5a2634,_0x292517._0xb5e560)](_0x2d4c0f)||!_0x41755c[0x0])return null;return{'filePath':_0x41755c[0x0],'lineNum':_0x2d4c0f,'lineText':_0x41755c[_0x418c35(_0x292517._0x1be079,_0x292517._0x1d6591,_0x292517._0x231e64,0x1e4)](0x3)[_0x2604c(_0x292517._0x217a3e,0x3e8,0x3d7,_0x292517._0x4f4bca)]('|')};}function _0x2604c(_0x394752,_0x1beab9,_0x32246b,_0x14b048){return _0x379285(_0x394752-_0x1dec60._0x2a9352,_0x32246b-_0x1dec60._0x292080,_0x32246b-_0x1dec60._0x5eae46,_0x394752);}if(_0x41755c[_0x2604c(_0x292517._0x1779f9,0x28a,0x302,_0x292517._0x3e0346)]>=0x3){const _0x45f809=Number[_0x418c35(_0x292517._0x5e641e,_0x292517._0x266f0b,0x246,0x22b)](_0x41755c[0x1]??'',0xa);if(!Number[_0x418c35(_0x292517._0x34a5e3,0x1a4,_0x292517._0x5a2634,0x17c)](_0x45f809)||!_0x41755c[0x0])return null;return{'filePath':_0x41755c[0x0],'lineNum':_0x45f809,'lineText':_0x41755c['slice'](0x2)[_0x418c35(0x26b,0x22f,0x1d8,_0x292517._0x21c4e9)]('|'),..._0x33bba0?{'isContext':!![]}:{}};}return null;}async function search(_0x5e1a10){const _0xf70c42={_0x91a382:0xdb,_0x3123ac:0x93,_0xc4f5b:0x5c6,_0x30269e:0x622,_0x553f9d:0x57e,_0x8e9a08:0x4ab,_0x31b716:0x54c,_0x57e487:0x4d9,_0x1b1961:0x4c5,_0x4910b9:0x460,_0xd4a7c9:0x1b,_0x19ed98:0x6f,_0x56a40c:0x2,_0x423585:0x26,_0x54b651:0x62,_0x278e0d:0x47,_0x524bd1:0x4b0,_0x24bee9:0x51e,_0x1df8f2:0x40e,_0x21502a:0x443,_0x4b72d2:0x2d,_0x282ec8:0x43,_0x9952db:0x526,_0x2818b6:0x47b,_0x4b54a7:0x4de,_0x4507ec:0x51f,_0x386c91:0x547,_0x3ed0db:0x4c8,_0x2ce88c:0x36,_0x6b34a5:0x36,_0x31365e:0x16,_0x1c6430:0x512,_0x1ae48d:0x68,_0x309af1:0xb8,_0xcce87e:0xcb,_0x41ca2:0x50a,_0x3e8e28:0xd9,_0x4b1c52:0x108},_0x3f7a6f={_0x47fabf:0x33d,_0x4c560a:0x278,_0x5aa664:0x37a,_0x459a34:0x321,_0xfc0a7c:0x368,_0x1393ab:0x3b9,_0x548ad1:0x37c,_0x509e66:0x40b,_0x43f542:0x3ab,_0x419f0a:0x451,_0x1f2fb3:0x38d,_0x59e97:0x312,_0x17c199:0x463,_0x2b432f:0x461,_0x342546:0x2d9,_0x5e7018:0x3db,_0x5d4d19:0x3c0,_0x4f8861:0x45c,_0xb4b26e:0x35e,_0x2f6ea2:0x2b3,_0x4776ad:0x3e0,_0x50894f:0x393},_0x209521={_0x3b9d28:0x67},_0x486228={_0x3d86ef:0x14a},_0x1afe23=await filepath();if(_0x5e1a10['file']){const _0x39de2f=await _0x57e0fb(_0x5e1a10[_0x341b6f(0x30,_0xf70c42._0x91a382,_0xf70c42._0x3123ac,-0x16)])['catch'](()=>null);if(!_0x39de2f?.['isFile']())throw Object[_0x24f402(_0xf70c42._0xc4f5b,_0xf70c42._0x30269e,_0xf70c42._0x553f9d,0x5d7)](new Error('No\x20such\x20file:\x20\x27'+_0x5e1a10[_0x24f402(0x54b,_0xf70c42._0x8e9a08,_0xf70c42._0x31b716,_0xf70c42._0x57e487)]+'\x27'),{'code':_0x24f402(_0xf70c42._0x1b1961,0x525,0x4fb,_0xf70c42._0x4910b9)});}else{const _0x571826=await _0x57e0fb(_0x5e1a10['cwd'])[_0x341b6f(_0xf70c42._0xd4a7c9,_0xf70c42._0x19ed98,0xbb,_0xf70c42._0x56a40c)](()=>null);if(!_0x571826?.[_0x341b6f(-0x51,-0x7d,-0x62,-_0xf70c42._0x423585)]())throw Object[_0x341b6f(_0xf70c42._0x54b651,0xee,-_0xf70c42._0x278e0d,-0x28)](new Error(_0x24f402(0x3f9,_0xf70c42._0x524bd1,0x494,_0xf70c42._0x24bee9)+_0x5e1a10[_0x24f402(_0xf70c42._0x1df8f2,0x47f,_0xf70c42._0x21502a,0x3f2)]+'\x27'),{'code':'ENOENT'});}const _0x1d7d80=[_0x341b6f(_0xf70c42._0x4b72d2,-0x6d,-_0xf70c42._0x54b651,-_0xf70c42._0x282ec8),'--field-match-separator=|','--field-context-separator=|',_0x24f402(_0xf70c42._0x9952db,0x4f0,0x505,0x49d),_0x5e1a10['pattern']],_0x2c79e2=typeof _0x5e1a10[_0x24f402(0x464,_0xf70c42._0x2818b6,_0xf70c42._0x4b54a7,_0xf70c42._0x4507ec)]==='number'&&_0x5e1a10[_0x24f402(0x46f,_0xf70c42._0x386c91,0x4de,_0xf70c42._0x3ed0db)]>0x0;_0x2c79e2&&_0x1d7d80[_0x341b6f(0x72,_0xf70c42._0x2ce88c,0x6c,-_0xf70c42._0x6b34a5)]('-C',String(_0x5e1a10[_0x341b6f(-0x3e,0x18,-_0xf70c42._0x31365e,-0x54)]),_0x24f402(_0xf70c42._0x1c6430,0x559,0x4bd,0x4f5));_0x5e1a10['glob']&&!_0x5e1a10['file']&&_0x1d7d80['push'](_0x341b6f(_0xf70c42._0x1ae48d,_0xf70c42._0x309af1,_0xf70c42._0xcce87e,0xec),_0x5e1a10[_0x24f402(0x3f8,_0xf70c42._0x41ca2,0x49a,0x490)]);_0x1d7d80['push'](_0x5e1a10['file']??_0x5e1a10[_0x341b6f(-_0xf70c42._0x3e8e28,-_0xf70c42._0x4b1c52,-0x6d,-0x124)]);function _0x24f402(_0x428f4b,_0x19afd4,_0x3f6476,_0x388cd5){return _0x256f33(_0x428f4b,_0x19afd4-_0x486228._0x3d86ef,_0x3f6476-0x13d,_0x388cd5-0x3c);}function _0x341b6f(_0x567ee7,_0x17e10a,_0x1771a2,_0x1d8029){return _0x256f33(_0x17e10a,_0x17e10a-0x56,_0x567ee7- -0x3df,_0x1d8029-_0x209521._0x3b9d28);}return await new Promise((_0x2c4fbd,_0x449a82)=>{const _0x1f9880={_0x42f54a:0x3a4,_0x12dc86:0x1be,_0x43d21e:0x22b,_0x54fdb1:0x36e,_0x250612:0x454,_0x626f8f:0x2fa,_0x2a9b1f:0x31d},_0x549725={_0x24a38c:0x148,_0x987775:0x3a,_0x1a8be2:0x41},_0x4d4efe={_0x50b82b:0x434,_0x45ef8b:0x48},_0x1f0da5={_0x2983cb:0x197,_0x13972f:0x1a3},_0x1aeb1d=_0x4b517b(_0x1afe23,_0x1d7d80,{'cwd':_0x5e1a10[_0x12bba1(_0x3f7a6f._0x47fabf,0x346,_0x3f7a6f._0x4c560a,0x2cc)],'stdio':[_0x4115a4(_0x3f7a6f._0x5aa664,0x3c3,_0x3f7a6f._0x459a34,0x3f3),_0x12bba1(_0x3f7a6f._0xfc0a7c,0x411,_0x3f7a6f._0x1393ab,_0x3f7a6f._0x548ad1),_0x4115a4(0x490,_0x3f7a6f._0x509e66,_0x3f7a6f._0x43f542,_0x3f7a6f._0x419f0a)]});let _0x41a616='',_0x4ed41b='';function _0x12bba1(_0x46daea,_0x39b39e,_0x2e5e25,_0x156d2e){return _0x341b6f(_0x156d2e-0x3a5,_0x46daea,_0x2e5e25-_0x1f0da5._0x2983cb,_0x156d2e-_0x1f0da5._0x13972f);}_0x1aeb1d[_0x4115a4(0x3c1,_0x3f7a6f._0x1f2fb3,_0x3f7a6f._0x59e97,0x36b)]?.['on'](_0x4115a4(0x43a,0x3c0,_0x3f7a6f._0x17c199,_0x3f7a6f._0x2b432f),_0x42cef5=>{_0x41a616+=_0x42cef5['toString']();});function _0x4115a4(_0x449f27,_0x4013fc,_0x215b32,_0x437435){return _0x341b6f(_0x4013fc-_0x4d4efe._0x50b82b,_0x215b32,_0x215b32-_0x4d4efe._0x45ef8b,_0x437435-0x1ca);}_0x1aeb1d[_0x12bba1(_0x3f7a6f._0x342546,0x2d1,_0x3f7a6f._0x5e7018,0x35e)]?.['on'](_0x4115a4(0x32b,_0x3f7a6f._0x5d4d19,0x398,_0x3f7a6f._0x4f8861),_0x5ca8c5=>{_0x4ed41b+=_0x5ca8c5['toString']();}),_0x1aeb1d['on'](_0x4115a4(0x368,_0x3f7a6f._0xb4b26e,_0x3f7a6f._0x2f6ea2,_0x3f7a6f._0x4776ad),_0x4af882=>{const _0x145cc5={_0x5d4511:0x102,_0x33bb60:0x54c,_0x453419:0x12};if(_0x4af882===0x1&&_0x41a616===''){_0x2c4fbd([]);return;}if(_0x4af882!==0x0&&_0x4af882!==0x1){_0x449a82(new Error(_0x22053a(0x35c,0x34d,_0x1f9880._0x42f54a,0x3ca)+_0x4ed41b));return;}const _0x6a1178=_0x5e1a10[_0x380f61(-_0x1f9880._0x12dc86,-0x1e3,-_0x1f9880._0x43d21e,-0x254)]??0x64;function _0x22053a(_0x20dcf9,_0x5c0bde,_0x3bfa13,_0x569fae){return _0x12bba1(_0x20dcf9,_0x5c0bde-_0x549725._0x24a38c,_0x3bfa13-_0x549725._0x987775,_0x3bfa13- -_0x549725._0x1a8be2);}function _0x380f61(_0x4d8fb9,_0x2fcd15,_0x1c1c88,_0x493a92){return _0x4115a4(_0x4d8fb9-_0x145cc5._0x5d4511,_0x2fcd15- -_0x145cc5._0x33bb60,_0x4d8fb9,_0x493a92-_0x145cc5._0x453419);}const _0x560377=[];for(const _0x34b206 of _0x41a616[_0x22053a(0x48c,_0x1f9880._0x54fdb1,0x3e3,_0x1f9880._0x250612)](/\r?\n/)){if(_0x560377[_0x22053a(0x265,_0x1f9880._0x626f8f,0x28a,_0x1f9880._0x2a9b1f)]>=_0x6a1178)break;const _0x5b1395=parseMatchLine(_0x34b206,_0x2c79e2);if(_0x5b1395)_0x560377['push'](_0x5b1395);}_0x2c4fbd(_0x560377);}),_0x1aeb1d['on'](_0x12bba1(0x414,0x36a,0x34b,_0x3f7a6f._0x50894f),_0x449a82);});}function createGlobTool(_0x2f174e={}){const _0x17ebdc={_0x42dd02:0xc4,_0x5c3a0d:0xe2,_0x35045e:0x6f,_0x253e9b:0xd9,_0x565a21:0x98,_0x3553ab:0x11c,_0x3eaf5e:0x8e,_0x2d2b2a:0x1aa,_0x25854f:0x1a5,_0x341929:0xb7,_0x6f17d1:0xa0,_0x1b2d0a:0x1cc,_0x16db6d:0x190,_0x508cd6:0x20d,_0x20213:0x236,_0x2034db:0x70,_0x5cf9f1:0x34,_0x1e308c:0x48,_0x470a48:0x72},_0x4b5423={_0x1a548d:0xaa,_0x10e400:0x1f1,_0x5c502c:0x142,_0x2a52c8:0x20b,_0x6606c:0x20d,_0x35a9bc:0x4a9,_0x984d99:0x53c,_0x4bd88c:0x53f,_0x44bd49:0x5bd,_0x1b89a0:0x645,_0x5a5a4b:0x432,_0x1aabcb:0x10f,_0x3f5ae4:0x5e4,_0x5044d8:0x565,_0xf0000:0x4b8,_0x2b80b2:0x514,_0x26d0ab:0x63a,_0x466df7:0x445,_0x2fb957:0x48f,_0x4f3e50:0x4dd,_0x2198c1:0x206,_0x461b33:0x158,_0x4a4420:0xca,_0x2a3ac8:0x421,_0x17f14a:0x57e,_0x404055:0x51d,_0x2f6201:0x641,_0x1d36fd:0xdb,_0xf4bb9c:0x70,_0x2f006b:0x103,_0x49f55a:0x1a1,_0xaa8ad3:0x562,_0x515fcd:0x4c6,_0x5eb637:0x568,_0x5f4161:0x509,_0x564618:0x1d8,_0x3309d8:0x135,_0x5b883e:0x553,_0x136a6f:0x5af,_0x548055:0x5a0,_0x5d6602:0x64d,_0x2c7fc2:0x1a5,_0x34f5c1:0x249,_0x2811f8:0x234,_0xcfe35f:0x2ae,_0x4edd4a:0x27a},_0x4a7241={_0x2bba5f:0x732,_0x3719f3:0xd4},_0x368d84={_0x52c69b:0x60,_0x3da3cb:0x164,_0x27d971:0x1ae},_0x3c8777={_0x2efcdf:0x1bb,_0x1b5d8b:0x6,_0x333016:0x75},_0x2e07f8=_0xf57af5[_0x5885cd(_0x17ebdc._0x42dd02,0x25,-0x1f,-0x20)](_0x2f174e[_0x5885cd(-_0x17ebdc._0x5c3a0d,-_0x17ebdc._0x35045e,0x36,-_0x17ebdc._0x253e9b)]??process['cwd']());function _0x5885cd(_0x24b0b4,_0x32bea5,_0x9035f8,_0x1b0fa8){return _0x379285(_0x24b0b4-_0x3c8777._0x2efcdf,_0x32bea5- -_0x3c8777._0x1b5d8b,_0x9035f8-_0x3c8777._0x333016,_0x24b0b4);}const _0x5b00ea=_0x2f174e[_0x5885cd(-_0x17ebdc._0x565a21,-_0x17ebdc._0x3553ab,-_0x17ebdc._0x3eaf5e,-_0x17ebdc._0x2d2b2a)]??0x64,_0x160d3f=_0x2f174e[_0x52cc33(-0x156,-0xd7,-0x12b,-_0x17ebdc._0x25854f)]??_0x5885cd(-0x97,-_0x17ebdc._0x341929,-_0x17ebdc._0x6f17d1,-0x4d);function _0x52cc33(_0x5695f5,_0x48cdaf,_0x41c755,_0x5d96bf){return _0x379285(_0x5695f5-_0x368d84._0x52c69b,_0x5695f5- -_0x368d84._0x3da3cb,_0x41c755-_0x368d84._0x27d971,_0x48cdaf);}return defineTool({'name':_0x160d3f,'description':_0x52cc33(-0x150,-_0x17ebdc._0x1b2d0a,-0xd4,-0xff),'inputSchema':{'type':_0x52cc33(-_0x17ebdc._0x16db6d,-0x108,-0x1c3,-0x1b5),'properties':{'pattern':{'type':_0x52cc33(-0x236,-_0x17ebdc._0x508cd6,-0x2b9,-0x292)},'path':{'type':_0x52cc33(-_0x17ebdc._0x20213,-0x22e,-0x1ff,-0x1d2)},'limit':{'type':'number'}},'required':[_0x5885cd(_0x17ebdc._0x2034db,-_0x17ebdc._0x5cf9f1,-_0x17ebdc._0x1e308c,-_0x17ebdc._0x470a48)]},async *'execute'(_0x131a72){function _0x511e41(_0x278e7d,_0x2a4b53,_0x524a8b,_0x378dac){return _0x52cc33(_0x524a8b-0x3a,_0x278e7d,_0x524a8b-0x92,_0x378dac-0x196);}if(_0x131a72[_0x511e41(-_0x4b5423._0x1a548d,-_0x4b5423._0x10e400,-0x158,-0xc0)][_0x511e41(-_0x4b5423._0x5c502c,-_0x4b5423._0x2a52c8,-0x1c3,-_0x4b5423._0x6606c)]()[_0x483bad(0x4c7,0x527,_0x4b5423._0x35a9bc,0x4ac)]===0x0)throw new ToolExecutionError(_0x483bad(_0x4b5423._0x984d99,0x4ef,_0x4b5423._0x4bd88c,0x5af),{});const _0x3a14ab=resolveWorkspacePath(_0x2e07f8,_0x131a72[_0x483bad(0x5b6,0x5d3,0x589,_0x4b5423._0x44bd49)]??'.'),_0x5330d9=await _0x7d6eb9(_0x3a14ab)[_0x483bad(0x588,_0x4b5423._0x1b89a0,0x59e,0x5cd)](()=>null);if(!_0x5330d9?.['isDirectory']())throw new ToolExecutionError(_0x483bad(0x551,0x55d,0x4cf,_0x4b5423._0x5a5a4b)+(_0x131a72[_0x511e41(-0x144,-_0x4b5423._0x1aabcb,-0x16f,-0x190)]??'.'),{'path':_0x131a72[_0x483bad(_0x4b5423._0x3f5ae4,0x5f5,0x589,0x50c)]??'.'});const _0x8e8849=_0x131a72[_0x483bad(0x4a4,_0x4b5423._0x5044d8,_0x4b5423._0xf0000,0x4aa)]??_0x5b00ea,_0x5f5daf=Math[_0x483bad(0x5f1,_0x4b5423._0x2b80b2,0x594,_0x4b5423._0x26d0ab)](0x1,Math[_0x483bad(_0x4b5423._0x466df7,_0x4b5423._0x2fb957,_0x4b5423._0x4f3e50,0x4fb)](_0x8e8849)),_0x5d5171=[];let _0xcda608=![];for await(const _0x2d7b78 of files({'cwd':_0x3a14ab,'glob':[_0x131a72[_0x511e41(-_0x4b5423._0x2198c1,-0x165,-_0x4b5423._0x461b33,-_0x4b5423._0x4a4420)]]})){if(_0x5d5171[_0x483bad(_0x4b5423._0x2a3ac8,0x4f9,0x4a9,0x3fa)]>=_0x5f5daf){_0xcda608=!![];break;}const _0x757ad=await _0x7d6eb9(_0xf57af5[_0x483bad(0x4f8,0x5d4,_0x4b5423._0x17f14a,_0x4b5423._0x404055)](_0x3a14ab,_0x2d7b78))[_0x483bad(0x532,0x529,0x59e,_0x4b5423._0x2f6201)](()=>null);_0x5d5171[_0x511e41(-_0x4b5423._0x1d36fd,-_0x4b5423._0xf4bb9c,-_0x4b5423._0x2f006b,-_0x4b5423._0x49f55a)]({'path':_0x2d7b78,'mtime':_0x757ad?.[_0x483bad(_0x4b5423._0xaa8ad3,_0x4b5423._0x515fcd,_0x4b5423._0x5eb637,_0x4b5423._0x5f4161)]??0x0});}_0x5d5171['sort']((_0x597f11,_0x4ecc15)=>_0x4ecc15[_0x511e41(-0x17c,-0x97,-0x117,-0xea)]-_0x597f11[_0x483bad(0x5a4,0x674,0x5e1,0x5a7)]);const _0xecf5ed=_0x5d5171[_0x511e41(-_0x4b5423._0x564618,-_0x4b5423._0x3309d8,-0x1de,-0x1cb)](_0x3f3d98=>_0x3f3d98[_0x483bad(0x5b1,0x601,0x589,0x598)]),_0x2fe03a=_0xecf5ed[_0x483bad(_0x4b5423._0x5b883e,0x4cf,0x4a9,0x42b)]===0x0?'No\x20files\x20found\x20matching\x20pattern:\x20'+_0x131a72[_0x483bad(_0x4b5423._0x136a6f,0x5b9,_0x4b5423._0x548055,_0x4b5423._0x5d6602)]:''+_0xecf5ed['join']('\x0a')+(_0xcda608?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');function _0x483bad(_0x128a8a,_0x516737,_0x394e88,_0x2eefa8){return _0x52cc33(_0x394e88-_0x4a7241._0x2bba5f,_0x516737,_0x394e88-_0x4a7241._0x3719f3,_0x2eefa8-0x18b);}return yield createToolOutput(_0x2fe03a,{'pattern':_0x131a72['pattern'],'searchPath':_0xf57af5[_0x511e41(-_0x4b5423._0x2c7fc2,-_0x4b5423._0x34f5c1,-_0x4b5423._0x2811f8,-_0x4b5423._0xcfe35f)](_0x2e07f8,_0x3a14ab)||'.','matches':_0xecf5ed,'count':_0xecf5ed[_0x511e41(-0x212,-0x236,-0x24f,-_0x4b5423._0x4edd4a)],'truncated':_0xcda608}),void 0x0;}});}import{stat as _0x23bbfb}from'fs/promises';import*as _0x5f05d7 from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x3015ff={}){const _0x452d69={_0x209a2c:0x231,_0x3a3436:0x2f0,_0x1ad966:0x1a0,_0x3e80ba:0x178,_0x2c5856:0x12b,_0x54226d:0x9c,_0x3121b6:0x11f,_0x5c3ffc:0x56,_0x17aac0:0x16c,_0xa7a587:0x211,_0x2f654d:0x215,_0x47b063:0x1ad,_0xfe8059:0x246,_0x42a8ac:0x225,_0x4a1f8d:0x213},_0x283306={_0x134004:0x10,_0x39ba0d:0xef,_0xc832e1:0x68,_0x3a0f0f:0x73,_0x21df52:0x19,_0x2ed134:0x145,_0x3d0041:0xa5,_0x569e10:0x9,_0x4059d0:0x3c,_0xa6626f:0x5b,_0x2a4cdf:0x3b,_0x27294e:0x32,_0xedf57f:0xe,_0x389190:0x50,_0x3d76a2:0x27,_0x38670e:0x75,_0x2909a7:0x11e,_0x4d16b8:0x129,_0x3e2ef5:0x8f,_0x2f8d6d:0x41,_0x4d83e4:0x21,_0x444c2a:0x23,_0x297775:0xa3,_0x2af1e4:0x6b,_0x281dcb:0x4a,_0x120e72:0x7,_0x363861:0x29,_0x293b8e:0x52,_0x188904:0x3a,_0x2c395f:0x19,_0x2b4fc7:0xf,_0x3d55be:0xb0,_0x123dbe:0xa0,_0x4dc2d2:0x8,_0x30df2b:0x69,_0x11bea5:0x1f,_0x1443e3:0x75,_0x31effa:0xd9,_0x3a2032:0x25,_0x3bd979:0x76,_0x1e7353:0x22,_0x1644cb:0x20,_0x1518f3:0xa7,_0x12418e:0x7f,_0x455444:0x19,_0xb6fab1:0x15,_0x5c9547:0x66,_0x5aacee:0xb5,_0x141eba:0x122,_0x1a4cd0:0x64,_0x3ae065:0x48,_0x4cf69a:0x1,_0x29cc28:0xe4,_0x6c3622:0x6c,_0x106488:0x5c,_0x19b464:0x52,_0x4c5817:0x108,_0x17602a:0xc,_0x1920d2:0x137,_0xe28944:0x128,_0x4009cd:0x7c,_0x588e4b:0x84,_0x5c2829:0x1d,_0x20c4ed:0x2a,_0x586694:0x5b,_0x21efc1:0xd,_0x24f77a:0x2a,_0x556d48:0x7b,_0x1e7618:0x65,_0x5778ab:0x18,_0x86ffa4:0x57,_0x3744d9:0xa2,_0x49b813:0x40,_0x3f17ec:0x59,_0x347424:0x41,_0x430fee:0x36,_0xf3993c:0xe7,_0xaea688:0xb1,_0x2217e0:0xce,_0x193262:0x52},_0x501d6b={_0x17abbe:0x5},_0x49ecda={_0x481fa1:0x154},_0x4ae5c7={_0x42b415:0x241,_0x45da48:0x8b},_0x4f3a31=_0x5f05d7['resolve'](_0x3015ff[_0x44b826(_0x452d69._0x209a2c,0x1d1,0x18d,0x1d8)]??process[_0x465979(-_0x452d69._0x3a3436,-0x1ac,-0x28a,-0x251)]());function _0x44b826(_0x3f4814,_0x3e4233,_0x2ccc9a,_0x47ac9f){return _0x379285(_0x3f4814-0xcd,_0x47ac9f-_0x4ae5c7._0x42b415,_0x2ccc9a-_0x4ae5c7._0x45da48,_0x2ccc9a);}const _0x1a7fba=_0x3015ff[_0x44b826(0x1aa,_0x452d69._0x1ad966,_0x452d69._0x3e80ba,_0x452d69._0x2c5856)]??0x64,_0x1739d7=_0x3015ff[_0x465979(-0x18d,-0x17b,-_0x452d69._0x54226d,-_0x452d69._0x3121b6)]??'Grep';function _0x465979(_0x4f9585,_0x358f62,_0x5e2fc4,_0x2de5eb){return _0x256f33(_0x5e2fc4,_0x358f62-_0x49ecda._0x481fa1,_0x2de5eb- -0x557,_0x2de5eb-0x97);}return defineTool({'name':_0x1739d7,'description':_0x465979(-0x192,-0x7e,-_0x452d69._0x5c3ffc,-0xfb),'inputSchema':{'type':_0x44b826(0x1a5,_0x452d69._0x17aac0,_0x452d69._0xa7a587,_0x452d69._0x2f654d),'properties':{'pattern':{'type':_0x44b826(_0x452d69._0x47b063,_0x452d69._0x2f654d,0xec,0x16f)},'path':{'type':_0x465979(-0x220,-0x204,-_0x452d69._0xfe8059,-0x1ff)},'include':{'type':'string'},'limit':{'type':_0x44b826(0x1c2,0x183,0x29d,_0x452d69._0x42a8ac)},'context':{'type':'number'}},'required':[_0x44b826(0x1e7,_0x452d69._0x2f654d,0x1ba,_0x452d69._0x4a1f8d)]},async *'execute'(_0x4a33b3){const _0x16e09e={_0xc24c72:0x1f4};if(_0x4a33b3[_0x385657(-_0x283306._0x134004,0xdd,_0x283306._0x39ba0d,0x52)][_0x385657(-_0x283306._0xc832e1,-0x3e,-_0x283306._0x3a0f0f,-_0x283306._0x21df52)]()[_0x385657(-0xb1,-0xb9,-_0x283306._0x2ed134,-_0x283306._0x3d0041)]===0x0)throw new ToolExecutionError(_0xefac3d(0x53,-_0x283306._0x569e10,-0x4a,-0x1d),{});const _0x35a248=resolveWorkspacePath(_0x4f3a31,_0x4a33b3[_0x385657(-_0x283306._0x4059d0,0xd2,_0x283306._0xa6626f,_0x283306._0x2a4cdf)]??'.'),_0xd18f0=await _0x23bbfb(_0x35a248)[_0x385657(_0x283306._0x27294e,_0x283306._0xedf57f,0xa4,_0x283306._0x389190)](()=>null),_0x53506d=_0xd18f0?.[_0x385657(_0x283306._0x3d76a2,-_0x283306._0x38670e,0x16,0x2a)]()??![],_0x257c8e=_0xd18f0?.['isDirectory']()??![];function _0x385657(_0x146b4e,_0x4608e6,_0xbdd40,_0xbfcc96){return _0x465979(_0x146b4e-0x179,_0x4608e6-_0x16e09e._0xc24c72,_0x146b4e,_0xbfcc96-0x1ad);}if(!_0x53506d&&!_0x257c8e)throw new ToolExecutionError(_0x385657(-_0x283306._0x2909a7,-0xe7,-_0x283306._0x4d16b8,-_0x283306._0x3e2ef5)+(_0x4a33b3[_0x385657(0x76,0xd5,0x42,0x3b)]??'.'),{'path':_0x4a33b3[_0xefac3d(0x33,_0x283306._0x2f8d6d,_0x283306._0x4d83e4,_0x283306._0x444c2a)]??'.'});const _0x4718ed=_0x4a33b3[_0xefac3d(-0x5,-0x90,-0x5,-0x13d)]??_0x1a7fba;function _0xefac3d(_0x41c6fe,_0x3a6210,_0x33263a,_0x424a86){return _0x465979(_0x41c6fe-_0x501d6b._0x17abbe,_0x3a6210-0x85,_0x424a86,_0x3a6210-0x1b3);}const _0x110bb0=Math[_0x385657(0x8b,0x4c,_0x283306._0x297775,0x46)](0x1,Math[_0xefac3d(-0xcb,-_0x283306._0x2af1e4,-_0x283306._0x281dcb,-0xad)](_0x4718ed)),_0x34a29c=await search({'cwd':_0x257c8e?_0x35a248:_0x5f05d7[_0xefac3d(0x9f,-_0x283306._0x120e72,_0x283306._0x363861,0x86)](_0x35a248),'pattern':_0x4a33b3['pattern'],'glob':_0x257c8e?_0x4a33b3[_0xefac3d(-_0x283306._0x293b8e,-0x74,-_0x283306._0x188904,-_0x283306._0x2c395f)]:void 0x0,'limit':_0x110bb0,'file':_0x53506d?_0x35a248:void 0x0,'context':_0x4a33b3[_0x385657(-0x8f,_0x283306._0x2b4fc7,-_0x283306._0x3d55be,-0x9)]}),_0x4e3ddb=new Map();for(const _0x49778f of _0x34a29c){if(!_0x4e3ddb[_0x385657(0x4b,_0x283306._0x123dbe,_0x283306._0x4dc2d2,_0x283306._0x30df2b)](_0x49778f[_0x385657(_0x283306._0x11bea5,_0x283306._0x1443e3,_0x283306._0x31effa,0x34)])){const _0x24b74c=await _0x23bbfb(_0x49778f[_0xefac3d(-0x5b,0x3a,0x53,-0x57)])[_0xefac3d(-0x9,0x56,-_0x283306._0x3a2032,-_0x283306._0x27294e)](()=>null);_0x4e3ddb[_0xefac3d(_0x283306._0x3bd979,0x5,_0x283306._0x1e7353,0x1c)](_0x49778f['filePath'],{'matches':[],'mtime':_0x24b74c?.[_0xefac3d(0xb7,_0x283306._0x1644cb,_0x283306._0x1518f3,_0x283306._0x12418e)]??0x0});}_0x4e3ddb[_0xefac3d(-_0x283306._0x455444,_0x283306._0xb6fab1,-0x4f,0x23)](_0x49778f[_0x385657(0xc0,_0x283306._0x5c9547,_0x283306._0x5aacee,0x34)])?.['matches'][_0x385657(_0x283306._0x141eba,_0x283306._0x1a4cd0,0x7f,0xa7)](_0x49778f);}const _0x14fa9e=[..._0x4e3ddb['entries']()]['sort']((_0x16309e,_0x2eb2cf)=>_0x2eb2cf[0x1][_0xefac3d(0x107,0x99,0x61,0xd4)]-_0x16309e[0x1][_0xefac3d(0x41,0x99,0xb1,0x67)]),_0x59a08d=_0x34a29c[_0xefac3d(_0x283306._0x3ae065,-0x61,-0x104,-0xde)](_0x286136=>!_0x286136[_0x385657(-0xd9,-0x3d,-0xd3,-0x5c)])[_0xefac3d(-0x92,-0x9f,-0xf5,-0x18)],_0x432e05=_0x34a29c['length']>=_0x110bb0,_0x2b76c0=_0x53506d?_0x5f05d7[_0x385657(0x58,-0x54,0x40,-0xd)](_0x35a248):_0x35a248;let _0x7ed387='';if(_0x34a29c[_0xefac3d(-_0x283306._0x4cf69a,-0x9f,0x8,_0x283306._0x4dc2d2)]===0x0)_0x7ed387=_0x385657(-0x97,-_0x283306._0x29cc28,-0x14,-_0x283306._0x6c3622)+_0x4a33b3[_0x385657(-_0x283306._0x106488,0xad,-0x37,_0x283306._0x19b464)];else{_0x7ed387=_0x385657(_0x283306._0x4c5817,0xd2,-_0x283306._0x17602a,0x63)+_0x59a08d+_0xefac3d(_0x283306._0x1920d2,0x93,_0x283306._0xe28944,_0x283306._0x4009cd)+(_0x59a08d===0x1?'':'es')+'\x0a';for(const [_0x55a622,_0x35ae22]of _0x14fa9e){const _0x3b93d7=_0x53506d?_0x5f05d7['basename'](_0x55a622):_0x5f05d7[_0xefac3d(-0x1,-_0x283306._0x588e4b,_0x283306._0x5c2829,-0x11)](_0x2b76c0,_0x55a622);_0x7ed387+='\x0a'+_0x3b93d7+':\x0a';for(const _0x489f45 of _0x35ae22['matches']){const _0x18c8b7=_0x489f45[_0xefac3d(-0x62,-_0x283306._0x20c4ed,-0x55,-_0x283306._0x586694)][_0x385657(-0x78,-_0x283306._0x21efc1,-0xd0,-0xa5)]>MAX_LINE_LENGTH?_0x489f45[_0xefac3d(0x78,-_0x283306._0x24f77a,-0x5c,-_0x283306._0x3a2032)][_0x385657(_0x283306._0x556d48,_0x283306._0x3bd979,-_0x283306._0x1e7618,0x8)](0x0,MAX_LINE_LENGTH)+_0x385657(0x1,0x5,-_0x283306._0x5778ab,0x2):_0x489f45['lineText'],_0x34afd3=_0x489f45[_0x385657(-_0x283306._0x86ffa4,-_0x283306._0x3744d9,-0x50,-_0x283306._0x106488)]?'\x20\x20':'>\x20';_0x7ed387+=_0x34afd3+_0x385657(0x4,0xd4,-_0x283306._0x49b813,_0x283306._0x3f17ec)+_0x489f45[_0x385657(-0x70,_0x283306._0x347424,0x5c,-_0x283306._0x430fee)]+':\x20'+_0x18c8b7+'\x0a';}}_0x432e05&&(_0x7ed387+='\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)');}const _0x129e8c={'searchPath':_0x5f05d7[_0x385657(-_0x283306._0xf3993c,-_0x283306._0xaea688,-0xb9,-0x8a)](_0x4f3a31,_0x35a248)||'.','pattern':_0x4a33b3['pattern'],'matchCount':_0x59a08d,'fileCount':_0x4e3ddb[_0xefac3d(-_0x283306._0x2217e0,-_0x283306._0x193262,_0x283306._0x134004,-0x87)],'truncated':_0x432e05};return _0x257c8e&&_0x4a33b3['include']!==void 0x0&&(_0x129e8c['include']=_0x4a33b3['include']),yield createToolOutput(_0x7ed387['trim'](),_0x129e8c),void 0x0;}});}import{readdir,readFile as _0x5f0278,stat as _0x52ee5c}from'fs/promises';import*as _0x2aee41 from'path';import*as _0x19893e from'yaml';async function countTextLines(_0x3d4902){const _0x272a7f={_0x32eef5:0x12f,_0x191f1b:0x94,_0x4ce39a:0xf2,_0x419a60:0x122,_0x55a9a9:0x14c,_0x1ce1b8:0xb7,_0xde929f:0xa4,_0x2d707f:0x85,_0x4df082:0x17a,_0x529ce2:0x200},_0xa29d05={_0x2bacee:0x1a},_0xb36858={_0x34fa2b:0x12e,_0x39b5d7:0x17a};function _0x4a3757(_0x27e12d,_0x55a067,_0x51f1fc,_0x51abd6){return _0x379285(_0x27e12d-_0xb36858._0x34fa2b,_0x51f1fc- -0x161,_0x51f1fc-_0xb36858._0x39b5d7,_0x51abd6);}function _0x2ff6e4(_0x443dbe,_0x3fcb33,_0x1aecd9,_0xe44d56){return _0x256f33(_0x443dbe,_0x3fcb33-0x187,_0xe44d56- -0x4e3,_0xe44d56-_0xa29d05._0x2bacee);}const _0x4056cc=await _0x5f0278(_0x3d4902)['catch'](()=>null);if(!_0x4056cc||isProbablyBinary(_0x4056cc))return void 0x0;return _0x4056cc[_0x2ff6e4(-_0x272a7f._0x32eef5,-_0x272a7f._0x191f1b,-0x143,-_0x272a7f._0x4ce39a)](_0x4a3757(-_0x272a7f._0x419a60,-_0x272a7f._0x419a60,-_0x272a7f._0x55a9a9,-_0x272a7f._0x1ce1b8))[_0x2ff6e4(-0x90,-0x132,-_0x272a7f._0xde929f,-_0x272a7f._0x2d707f)](/\r?\n/)[_0x2ff6e4(-_0x272a7f._0x4df082,-0x267,-_0x272a7f._0x529ce2,-0x1de)];}function createLsTool(_0x3a2e2c={}){const _0x2ef39d={_0x1af4c0:0x399,_0x576514:0x3ee,_0x43ce6:0x361,_0x34919c:0x462,_0x2c57b4:0x333,_0x8d90f0:0x2f8,_0x164c4e:0x123,_0xfd1866:0x3a5,_0x40cf01:0x168,_0x6608ae:0xd1},_0x16eee5={_0x23534c:0x49f,_0x28b92f:0x402,_0x2bb05a:0x38a,_0xcd424b:0x3d0,_0xbcd3d8:0x4ae,_0x12756a:0x52b,_0x3663bd:0x3aa,_0x24ff11:0x31b,_0x404f25:0x4d1,_0x1352e5:0x428,_0x2d8b08:0x415,_0x53f676:0x469,_0x281b49:0x43a,_0x31f253:0x4e7,_0x30aed6:0x565,_0x54e8a1:0x41f,_0x211fdd:0x472,_0x2a2dca:0x453,_0x48c651:0x474,_0xc9ae28:0x404,_0x3fde27:0x3bb,_0x11b759:0x48e,_0x42ad8c:0x451,_0x544b5a:0x43f,_0x1ee15e:0x447,_0x251762:0x41e,_0x5a7bd6:0x45a,_0x4b6c9a:0x44f,_0x266ed2:0x4d3,_0x18fd93:0x485,_0x4a7642:0x416,_0x500084:0x4fb,_0x4c5bcc:0x4f5,_0x53132f:0x588,_0x33b4a4:0x3b9,_0x4bfc99:0x3cd,_0x5cf637:0x370,_0x23b1ac:0x316,_0x2e2b3e:0x37b,_0x43c563:0x504,_0x424c60:0x3f2,_0xb82b:0x3b9,_0x3f5e49:0x37b,_0x2d09b5:0x368,_0x19aa1f:0x39d},_0x37b00f={_0xd3de4b:0x49},_0x8fa8a7={_0x3028d7:0x457,_0x1875d8:0x1c7},_0x14e1bd={_0x46fc4e:0x14f,_0x350413:0x1c9},_0x2b7661=_0x2aee41['resolve'](_0x3a2e2c[_0x8a3991(_0x2ef39d._0x1af4c0,_0x2ef39d._0x576514,_0x2ef39d._0x43ce6,_0x2ef39d._0x34919c)]??process[_0x8a3991(0x303,_0x2ef39d._0x2c57b4,_0x2ef39d._0x8d90f0,0x340)]());function _0x1a018c(_0x408269,_0x1c726b,_0xdcdfe9,_0x1c06e3){return _0x379285(_0x408269-0x1cb,_0xdcdfe9-_0x14e1bd._0x46fc4e,_0xdcdfe9-_0x14e1bd._0x350413,_0x1c06e3);}function _0x8a3991(_0x3a3478,_0x1f7059,_0x2785a8,_0x5d71f0){return _0x379285(_0x3a3478-0x19,_0x1f7059-_0x8fa8a7._0x3028d7,_0x2785a8-_0x8fa8a7._0x1875d8,_0x3a3478);}const _0x94823b=_0x3a2e2c['name']??'Ls';return defineTool({'name':_0x94823b,'description':'List\x20files\x20and\x20directories\x20in\x20a\x20workspace\x20directory.','inputSchema':{'type':_0x1a018c(0x140,0x8c,_0x2ef39d._0x164c4e,0x117),'properties':{'path':{'type':_0x8a3991(_0x2ef39d._0xfd1866,0x385,_0x2ef39d._0x2c57b4,0x3b5)},'limit':{'type':_0x1a018c(_0x2ef39d._0x40cf01,0xdf,0x133,_0x2ef39d._0x6608ae)}}},async *'execute'(_0x54a99e){const _0x396673={_0x2d0b1c:0xa1},_0x2bc236=_0x54a99e[_0x37e411(0x48f,_0x16eee5._0x23534c,0x459,0x3fa)]??'.',_0x15f293=resolveWorkspacePath(_0x2b7661,_0x2bc236);function _0x241013(_0x230526,_0x2cef5c,_0x4c3dbf,_0x207ab0){return _0x8a3991(_0x230526,_0x4c3dbf-_0x37b00f._0xd3de4b,_0x4c3dbf-0x123,_0x207ab0-0xca);}const _0x59e368=await _0x52ee5c(_0x15f293)['catch'](()=>null);if(!_0x59e368?.['isDirectory']())throw new ToolExecutionError('Directory\x20not\x20found:\x20'+_0x2bc236,{'path':_0x2bc236});const _0x1f475c=_0x54a99e[_0x241013(_0x16eee5._0x28b92f,0x2ea,_0x16eee5._0x2bb05a,_0x16eee5._0xcd424b)]??0x3e8,_0x226c7d=Math['min'](Math[_0x37e411(0x49a,_0x16eee5._0xbcd3d8,_0x16eee5._0x12756a,0x3f5)](Math[_0x241013(0x418,_0x16eee5._0x3663bd,0x3af,_0x16eee5._0x24ff11)](_0x1f475c),0x1),0x2710),_0xc3970d=await readdir(_0x15f293),_0x3b2bde=[];function _0x37e411(_0x274eb7,_0x2e90b7,_0x5ec9e3,_0xbe7092){return _0x1a018c(_0x274eb7-_0x396673._0x2d0b1c,_0x2e90b7-0x119,_0x274eb7-0x385,_0xbe7092);}for(const _0x5223ae of _0xc3970d[_0x241013(0x404,_0x16eee5._0x404f25,_0x16eee5._0x1352e5,_0x16eee5._0x2d8b08)](0x0,_0x226c7d)){const _0x2c6057=_0x2aee41['join'](_0x15f293,_0x5223ae),_0x17ae14=await _0x52ee5c(_0x2c6057)[_0x37e411(0x4a4,_0x16eee5._0x53f676,0x4a0,0x480)](()=>null);if(!_0x17ae14)continue;let _0x45437c=_0x37e411(0x4bb,_0x16eee5._0x281b49,_0x16eee5._0x31f253,_0x16eee5._0x30aed6);if(_0x17ae14[_0x241013(_0x16eee5._0x54e8a1,0x4d1,0x44a,_0x16eee5._0x211fdd)]())_0x45437c='file';else{if(_0x17ae14[_0x241013(_0x16eee5._0x2a2dca,_0x16eee5._0x48c651,_0x16eee5._0xc9ae28,_0x16eee5._0x3fde27)]())_0x45437c=_0x241013(0x3d3,_0x16eee5._0x11b759,_0x16eee5._0x42ad8c,_0x16eee5._0x544b5a);else{if(_0x17ae14[_0x241013(_0x16eee5._0x1ee15e,0x46f,0x447,0x42a)]())_0x45437c='symlink';}}const _0x4114e8={'name':_0x5223ae,'type':_0x45437c,'size':_0x17ae14[_0x241013(_0x16eee5._0x251762,0x44d,0x3c8,_0x16eee5._0x5a7bd6)],'mtime':_0x17ae14['mtimeMs'],'mode':_0x17ae14['mode']},_0x5d57ad=_0x45437c===_0x241013(_0x16eee5._0x4b6c9a,_0x16eee5._0x266ed2,_0x16eee5._0x18fd93,_0x16eee5._0x4a7642)?await countTextLines(_0x2c6057):void 0x0;if(_0x5d57ad!==void 0x0)_0x4114e8['lines']=_0x5d57ad;_0x3b2bde[_0x37e411(_0x16eee5._0x500084,_0x16eee5._0x4c5bcc,_0x16eee5._0x53132f,_0x16eee5._0x12756a)](_0x4114e8);}_0x3b2bde[_0x37e411(_0x16eee5._0x33b4a4,0x403,0x330,_0x16eee5._0x4bfc99)]((_0x4e3d31,_0x140423)=>_0x4e3d31[_0x241013(0x44e,0x4e0,0x4ae,0x4b0)][_0x37e411(0x411,0x392,0x368,0x458)](_0x140423[_0x37e411(0x4e2,0x45d,0x57b,0x4c6)]));const _0x2ffb37={'path':_0x2bc236,'total':_0x3b2bde[_0x241013(_0x16eee5._0x5cf637,0x361,0x37b,0x337)],'truncated':_0xc3970d[_0x241013(_0x16eee5._0x23b1ac,0x34f,_0x16eee5._0x2e2b3e,0x331)]>_0x226c7d,'entries':_0x3b2bde};return yield createToolOutput(_0x19893e[_0x241013(_0x16eee5._0x43c563,0x532,0x493,0x4b2)](_0x2ffb37,{'indent':0x2,'lineWidth':0x0})[_0x241013(_0x16eee5._0x424c60,_0x16eee5._0xb82b,0x3c2,0x437)](),{'path':_0x2bc236,'total':_0x3b2bde[_0x241013(0x320,0x3de,_0x16eee5._0x3f5e49,0x369)],'truncated':_0xc3970d[_0x37e411(0x3af,0x366,_0x16eee5._0x2d09b5,_0x16eee5._0x19aa1f)]>_0x226c7d,'limit':_0x226c7d,'entries':_0x3b2bde}),void 0x0;}});}import{randomUUID}from'crypto';import{mkdir as _0x4536a1,readFile as _0x5782e9,writeFile as _0x4ed649}from'fs/promises';import{join as _0x1b158c}from'path';function sanitizeStorageKey(_0x141828){const _0x1ea37d={_0x49dfa1:0x4d3,_0x34b4f0:0x4fb,_0x398808:0x57b,_0x6fd84a:0x4f5,_0x47de3d:0x454,_0x138625:0x45f,_0x255615:0x4d0},_0x54cb62={_0x33ae28:0x5e,_0x15c71f:0x1d9},_0xc9086={_0x281d39:0x127,_0x3fbabc:0x14d};function _0x2025c4(_0x4d5a9e,_0x10dd60,_0x3891a3,_0x123774){return _0x256f33(_0x123774,_0x10dd60-_0xc9086._0x281d39,_0x10dd60-0x2d,_0x123774-_0xc9086._0x3fbabc);}function _0x58adc6(_0x4f7c34,_0x1e17f2,_0x1c0a81,_0xff574e){return _0x256f33(_0xff574e,_0x1e17f2-_0x54cb62._0x33ae28,_0x4f7c34-0x9b,_0xff574e-_0x54cb62._0x15c71f);}return _0x141828[_0x58adc6(0x4f8,_0x1ea37d._0x49dfa1,_0x1ea37d._0x34b4f0,0x4f2)](/[^a-zA-Z0-9_]+/g,'_')[_0x58adc6(0x4f8,_0x1ea37d._0x398808,_0x1ea37d._0x6fd84a,_0x1ea37d._0x47de3d)](/^_+|_+$/g,'')||_0x2025c4(0x3ba,_0x1ea37d._0x138625,0x3b6,_0x1ea37d._0x255615);}function storagePath(_0x5302df){const _0x23c810={_0x6eecca:0x330},_0x1d69f8={_0x38c548:0x1b8},_0x35d0a0=sanitizeStorageKey(_0x5302df['config']['oauth']?.['tokenStorageKey']??_0x5302df['serverName']);function _0x38e942(_0x4361d8,_0x54a0e1,_0x3e6419,_0x244fec){return _0x379285(_0x4361d8-0x164,_0x54a0e1-0x481,_0x3e6419-_0x1d69f8._0x38c548,_0x3e6419);}function _0x1172be(_0x1a13ab,_0x888919,_0x31c675,_0x3942b5){return _0x379285(_0x1a13ab-0x97,_0x3942b5-0x17e,_0x31c675-0xe4,_0x31c675);}return _0x1b158c(_0x5302df[_0x38e942(0x464,0x446,0x4e7,0x4af)],_0x35d0a0+_0x38e942(0x45a,0x3bd,_0x23c810._0x6eecca,0x3ad));}async function readStore(_0x411ab9){const _0x9310ef={_0xd5fa25:0x4f9,_0x18b45a:0x423,_0x51d723:0x584,_0x30adcf:0x5dc,_0x4c676b:0x594,_0x308ff6:0x43f,_0x14f3ae:0x481,_0x271dfc:0x453,_0x17850a:0x51e,_0x1c7454:0x502,_0x28dbcd:0x526},_0x565eec={_0x50e88d:0xd8,_0x1544ae:0x5e,_0xcd7ec0:0x6d},_0x253362={_0x5eb1b8:0x154};function _0x1da6de(_0x1760cc,_0x1cf448,_0x4e23f9,_0x3df8f4){return _0x256f33(_0x4e23f9,_0x1cf448-0x1db,_0x1cf448-0x160,_0x3df8f4-_0x253362._0x5eb1b8);}function _0x4935a6(_0x230d22,_0x30d0bd,_0x1930b3,_0x4b8a6f){return _0x256f33(_0x230d22,_0x30d0bd-_0x565eec._0x50e88d,_0x1930b3-_0x565eec._0x1544ae,_0x4b8a6f-_0x565eec._0xcd7ec0);}try{return JSON['parse'](await _0x5782e9(_0x411ab9,_0x4935a6(0x4ae,_0x9310ef._0xd5fa25,0x49d,_0x9310ef._0x18b45a)));}catch(_0x3de9ef){if(_0x3de9ef instanceof Error&&_0x1da6de(_0x9310ef._0x51d723,0x583,_0x9310ef._0x30adcf,_0x9310ef._0x4c676b)in _0x3de9ef&&_0x3de9ef[_0x4935a6(_0x9310ef._0x308ff6,0x416,_0x9310ef._0x14f3ae,_0x9310ef._0x271dfc)]===_0x1da6de(0x533,_0x9310ef._0x17850a,_0x9310ef._0x1c7454,_0x9310ef._0x28dbcd))return{};throw _0x3de9ef;}}async function writeStore(_0x35c5b4,_0x32284a){const _0x1f977d={_0x1c3cf8:0xcf,_0x534003:0x180},_0x3d75a2={_0x430e10:0x1b3,_0x5dd770:0x235},_0x420a3f={_0x1d0c60:0xe4};function _0x27146e(_0x26de08,_0x38d824,_0x1a9da5,_0x164fe5){return _0x379285(_0x26de08-_0x420a3f._0x1d0c60,_0x1a9da5- -0x131,_0x1a9da5-0x1cf,_0x38d824);}await _0x4536a1(_0x1b158c(_0x35c5b4,'..'),{'recursive':!![]});function _0x410ebb(_0x121cd3,_0x2b2a6e,_0x4f4d81,_0x4d7145){return _0x379285(_0x121cd3-_0x3d75a2._0x430e10,_0x2b2a6e-_0x3d75a2._0x5dd770,_0x4f4d81-0x75,_0x4f4d81);}await _0x4ed649(_0x35c5b4,JSON[_0x27146e(-0xa9,-0x16a,-0x13e,-_0x1f977d._0x1c3cf8)](_0x32284a,null,0x2),_0x27146e(-0x107,-0xf2,-0x11c,-_0x1f977d._0x534003));}async function updateStore(_0x5f246a,_0x5e7d21){const _0x2731bb=await readStore(_0x5f246a);_0x5e7d21(_0x2731bb),await writeStore(_0x5f246a,_0x2731bb);}function _0x379285(_0x4e8f35,_0x2d5908,_0x49d7c3,_0x376412){return _0x3e7e(_0x2d5908- -0x262,_0x376412);}function createMcpOAuthProvider(_0x45e35f){const _0x2d4d98={_0x139456:0x8d,_0x521a5c:0xc7,_0x4784f5:0x575,_0x4efda0:0x5ad,_0x2c1eb9:0x256,_0xe22ab:0x238,_0x4c6321:0x1b0,_0x23c8c7:0x125,_0x53cd7a:0x192,_0x3aa3f8:0x85,_0x708920:0xea,_0x1e1b79:0x624,_0x499585:0x581,_0x37b9e6:0x5f8,_0x48d28c:0x299,_0x592988:0x21c,_0x53354f:0x582,_0xb75576:0x51b,_0x193fa0:0x48c,_0x50ea08:0x507},_0xddd4e3={_0x358f08:0x54c,_0x20083a:0x63a},_0x2c9f74={_0xecaf76:0x166,_0x30c35d:0x41b},_0x40c3ec={_0x31f505:0x56a,_0x860be7:0x503,_0x122ea6:0x2f,_0x2f8cb1:0x4b,_0x142bbe:0xb4,_0xe273ef:0x18,_0x593a9c:0x8a,_0x1cc84a:0x3b8,_0x57d700:0x41c,_0x15813a:0x4e5,_0x1f16f3:0x503,_0x1a28b7:0x12,_0x3ca61e:0x8e,_0x4a9c39:0xbd},_0xad440c={_0x4f8797:0x2d1,_0x3e65f9:0x257,_0xfdd703:0x295},_0x1cd880={_0x19c4b9:0x10a,_0x36cf87:0x125},_0x48f863={_0x228958:0x53e,_0xd7acf5:0x4d2,_0x208405:0x59f},_0x357b6e={_0x1f21bf:0x22d,_0x549a8e:0x1cc,_0x14625c:0x1cb},_0x166fa5={_0x3d83b3:0xf4,_0x30dca0:0xf1,_0xed2b81:0x32e},_0x162ab6={_0x4500d8:0x272,_0x3f8f1f:0x161},_0xafb8dd={_0x338cf8:0x471,_0x54ad16:0x4b4},_0x1f339a={_0x55b82b:0x40,_0x555ee7:0x1a},_0x273e43={_0x47cf73:0x118},_0x32383f={_0x19f624:0x89},_0x3bef52=storagePath(_0x45e35f);function _0x4fb5df(_0x58cf9,_0x355c9a,_0x12ede7,_0x44b306){return _0x256f33(_0x44b306,_0x355c9a-_0x32383f._0x19f624,_0x12ede7- -0x223,_0x44b306-0x119);}const _0xb019a9=_0x45e35f[_0x4fb5df(_0x2d4d98._0x139456,_0x2d4d98._0x521a5c,0x138,0x1b8)]['oauth']?.[_0x3f7ccb(0x62c,_0x2d4d98._0x4784f5,0x659,0x5e5)]?.[_0x3f7ccb(0x5b7,0x529,0x554,_0x2d4d98._0x4efda0)]('\x20');function _0x3f7ccb(_0x12c870,_0x5a644c,_0x240a61,_0x475862){return _0x379285(_0x12c870-0x180,_0x475862-0x5fd,_0x240a61-_0x273e43._0x47cf73,_0x240a61);}const _0x5d70c7={'client_name':_0x4fb5df(_0x2d4d98._0x2c1eb9,_0x2d4d98._0xe22ab,0x1c0,_0x2d4d98._0x4c6321),'redirect_uris':[_0x45e35f[_0x4fb5df(_0x2d4d98._0x23c8c7,_0x2d4d98._0x53cd7a,0x1cb,0x268)]],'grant_types':[_0x4fb5df(0x166,_0x2d4d98._0x3aa3f8,0x123,_0x2d4d98._0x708920),_0x3f7ccb(_0x2d4d98._0x1e1b79,0x5c8,_0x2d4d98._0x499585,_0x2d4d98._0x37b9e6)],'response_types':[_0x4fb5df(0x288,_0x2d4d98._0x48d28c,0x200,_0x2d4d98._0x592988)],'token_endpoint_auth_method':'client_secret_post',..._0xb019a9?{'scope':_0xb019a9}:{}};return{'clientMetadataUrl':_0x45e35f[_0x3f7ccb(0x489,_0x2d4d98._0x53354f,_0x2d4d98._0xb75576,0x52e)][_0x3f7ccb(0x48b,0x483,_0x2d4d98._0x193fa0,_0x2d4d98._0x50ea08)]?.[_0x3f7ccb(0x4ac,0x44b,0x514,0x4dd)],get 'redirectUrl'(){return _0x45e35f['callbackUrl'];},get 'clientMetadata'(){return _0x5d70c7;},async 'state'(){const _0x1adaa9={_0x352019:0x170,_0x3abd2b:0x2f9},_0x4a51ab=await readStore(_0x3bef52);if(_0x4a51ab['state'])return _0x4a51ab[_0x2e856e(_0x162ab6._0x4500d8,_0x162ab6._0x3f8f1f,0x1e3,0x246)];const _0x2bcdc7=randomUUID();function _0x2e856e(_0x6c989e,_0x8c4125,_0x2e8e7a,_0x1af963){return _0x4fb5df(_0x6c989e-0x1c5,_0x8c4125-_0x1f339a._0x55b82b,_0x2e8e7a- -_0x1f339a._0x555ee7,_0x6c989e);}return await updateStore(_0x3bef52,_0x1a1f8c=>{function _0x1d0054(_0x50503f,_0x1bf84f,_0x4c42fd,_0x3da561){return _0x2e856e(_0x1bf84f,_0x1bf84f-_0x1adaa9._0x352019,_0x50503f-_0x1adaa9._0x3abd2b,_0x3da561-0x1b8);}_0x1a1f8c[_0x1d0054(0x4dc,_0xafb8dd._0x338cf8,0x4b9,_0xafb8dd._0x54ad16)]=_0x2bcdc7;}),_0x2bcdc7;},async 'clientInformation'(){function _0x4220a7(_0xa1e5a9,_0x8db61d,_0x221399,_0x2fe6d3){return _0x3f7ccb(_0xa1e5a9-_0x166fa5._0x3d83b3,_0x8db61d-_0x166fa5._0x30dca0,_0xa1e5a9,_0x2fe6d3- -_0x166fa5._0xed2b81);}return(await readStore(_0x3bef52))[_0x4220a7(_0x357b6e._0x1f21bf,0x148,_0x357b6e._0x549a8e,_0x357b6e._0x14625c)];},async 'saveClientInformation'(_0x2552d6){const _0x1aa01b={_0x1a1893:0x4d7,_0x14f190:0x429};await updateStore(_0x3bef52,_0x19877d=>{function _0x1d3c83(_0x198beb,_0x3e0b8d,_0x4b6c41,_0x288cc6){return _0x3e7e(_0x288cc6-0x2cb,_0x198beb);}_0x19877d[_0x1d3c83(0x472,_0x1aa01b._0x1a1893,0x3a4,_0x1aa01b._0x14f190)]=_0x2552d6;});},async 'tokens'(){const _0x5c5fe7={_0x1f5026:0x104};function _0x1eebea(_0x16cc47,_0x395eb8,_0x75d17,_0x4d3f0c){return _0x4fb5df(_0x16cc47-0xe,_0x395eb8-_0x5c5fe7._0x1f5026,_0x16cc47-0x40c,_0x395eb8);}return(await readStore(_0x3bef52))[_0x1eebea(_0x48f863._0x228958,0x5ec,_0x48f863._0xd7acf5,_0x48f863._0x208405)];},async 'saveTokens'(_0x3c7989){const _0x4d03ce={_0x4c11ca:0x156,_0x221612:0x1a3};await updateStore(_0x3bef52,_0x216ac=>{function _0x1e1dde(_0x5d3da2,_0x2b32fd,_0x50c775,_0x21c004){return _0x3e7e(_0x50c775-0x16,_0x2b32fd);}_0x216ac[_0x1e1dde(0x170,_0x4d03ce._0x4c11ca,_0x4d03ce._0x221612,0x1e6)]=_0x3c7989;});},async 'redirectToAuthorization'(_0x3e89a4){function _0x38eb74(_0x3d2fa8,_0x2a21ff,_0x1ba0d3,_0x5ee701){return _0x4fb5df(_0x3d2fa8-0xe8,_0x2a21ff-0x1c7,_0x2a21ff- -0x166,_0x5ee701);}await _0x45e35f[_0x38eb74(-0x88,-0x7d,-_0x1cd880._0x19c4b9,-_0x1cd880._0x36cf87)](_0x3e89a4);},async 'saveCodeVerifier'(_0x49d9a7){await updateStore(_0x3bef52,_0x14e564=>{_0x14e564['codeVerifier']=_0x49d9a7;});},async 'codeVerifier'(){const _0x5e8d91={_0x4d0e8f:0x98};function _0x5de785(_0x2fe3fe,_0x2128f9,_0x3d93bd,_0x48f420){return _0x4fb5df(_0x2fe3fe-_0x5e8d91._0x4d0e8f,_0x2128f9-0x193,_0x48f420-0xe3,_0x3d93bd);}const _0x430d84=(await readStore(_0x3bef52))[_0x5de785(_0xad440c._0x4f8797,_0xad440c._0x3e65f9,0x215,_0xad440c._0xfdd703)];if(!_0x430d84)throw new Error('No\x20MCP\x20OAuth\x20code\x20verifier\x20saved');return _0x430d84;},async 'invalidateCredentials'(_0x5de60a){await updateStore(_0x3bef52,_0x502d37=>{const _0x1c3372={_0x37cb44:0x1a5};(_0x5de60a===_0x32a95f(_0x40c3ec._0x31f505,0x5ad,0x458,_0x40c3ec._0x860be7)||_0x5de60a===_0x33f865(-0x3d,_0x40c3ec._0x122ea6,-_0x40c3ec._0x2f8cb1,-0x67))&&(_0x502d37['clientInformation']=void 0x0);function _0x32a95f(_0x56a355,_0xfa87c2,_0x460a79,_0x1fc36e){return _0x3e7e(_0x1fc36e-0x28f,_0x56a355);}function _0x33f865(_0x5541bb,_0x276a69,_0x2c07b5,_0x45c1f7){return _0x3e7e(_0x2c07b5- -_0x1c3372._0x37cb44,_0x276a69);}(_0x5de60a==='all'||_0x5de60a===_0x33f865(0x84,-_0x40c3ec._0x142bbe,-_0x40c3ec._0xe273ef,-_0x40c3ec._0x593a9c))&&(_0x502d37[_0x32a95f(0x3f3,_0x40c3ec._0x1cc84a,0x48c,_0x40c3ec._0x57d700)]=void 0x0),(_0x5de60a===_0x32a95f(0x5a5,_0x40c3ec._0x15813a,0x540,_0x40c3ec._0x1f16f3)||_0x5de60a===_0x33f865(-_0x40c3ec._0x1a28b7,-0x33,0x39,0x79))&&(_0x502d37['codeVerifier']=void 0x0,_0x502d37[_0x33f865(0xb5,_0x40c3ec._0x3ca61e,0xb3,0x41)]=void 0x0),(_0x5de60a===_0x33f865(0x47,_0x40c3ec._0x4a9c39,0xcf,0x21)||_0x5de60a==='discovery')&&(_0x502d37['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x52219e){const _0x2546d6={_0x279a67:0x574,_0x27ba89:0x503};await updateStore(_0x3bef52,_0x1d98f4=>{function _0x33c705(_0x180b5b,_0x4c2f31,_0x1f20e3,_0x1b096e){return _0x3e7e(_0x1f20e3-0x3a5,_0x180b5b);}_0x1d98f4[_0x33c705(0x4c8,0x5f0,_0x2546d6._0x279a67,_0x2546d6._0x27ba89)]=_0x52219e;});},async 'discoveryState'(){function _0x43dbac(_0x1a47f7,_0x13ae04,_0x186cae,_0x33bcdf){return _0x4fb5df(_0x1a47f7-0x120,_0x13ae04-_0x2c9f74._0xecaf76,_0x13ae04-_0x2c9f74._0x30c35d,_0x33bcdf);}return(await readStore(_0x3bef52))[_0x43dbac(_0xddd4e3._0x358f08,0x58f,0x543,_0xddd4e3._0x20083a)];}};}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(_0x5413e3,_0x258c2b){const _0x4cc7f4={_0x6a621c:0x14e,_0x4c6961:0x1cd},_0x5165eb={_0x20323a:0x174};function _0x5e35af(_0x305199,_0x2c20a4,_0x40f9c2,_0x38f8a2){return _0x379285(_0x305199-0xda,_0x2c20a4-0x263,_0x40f9c2-_0x5165eb._0x20323a,_0x40f9c2);}const _0x2502b7=_0x19d349=>_0x19d349['replace'](/[^a-zA-Z0-9_]+/g,'_')['replace'](/^_+|_+$/g,'');return _0x5e35af(0x1cd,0x14f,_0x4cc7f4._0x6a621c,_0x4cc7f4._0x4c6961)+_0x2502b7(_0x5413e3)+'_'+_0x2502b7(_0x258c2b);}function isObject(_0x4cf332){const _0x530749={_0x8a2151:0x1e1,_0x575c98:0x177,_0x25ba0f:0x181},_0x280b67={_0x36eb4d:0x1e0,_0x5a3390:0x181};function _0x1f19d8(_0x2b31d8,_0x49978a,_0x400ffb,_0x2c37cd){return _0x256f33(_0x49978a,_0x49978a-_0x280b67._0x36eb4d,_0x2c37cd- -0x4be,_0x2c37cd-_0x280b67._0x5a3390);}return typeof _0x4cf332==='object'&&_0x4cf332!==null&&!Array[_0x1f19d8(-0x168,-_0x530749._0x8a2151,-_0x530749._0x575c98,-_0x530749._0x25ba0f)](_0x4cf332);}function toSupportedSchema(_0x121c49){const _0x5a12e1={_0x79ef04:0x447,_0x36efc9:0x3de,_0x29b377:0x39d,_0x273fa2:0x361,_0x59a5db:0x39d,_0x145773:0x341,_0x4a36e0:0x361,_0x3e936c:0x340,_0x252fa0:0x45f,_0x218b0d:0x342,_0xa07bd7:0x371,_0x2cddde:0x363,_0x5262b3:0x20f,_0x7c65c5:0x290,_0x28c625:0x2b7,_0x2e18b3:0x43d,_0x1699c7:0x480,_0x3cf3b9:0x366,_0x275057:0x363,_0x9536c1:0x3a7,_0x2ef132:0x1ef,_0x8e6b07:0x352,_0x322413:0x355,_0x32ad63:0x331,_0x3115bf:0x407,_0x2877bc:0x419,_0x261b70:0x363,_0x2d7cbb:0x2f8,_0x50ff86:0x46a},_0x4bf66f={_0x7ec498:0x66,_0x3ec4df:0xf3},_0x7ba6e3={_0x19e60e:0x88,_0x315f03:0xd0};if(!isObject(_0x121c49))return void 0x0;function _0x33e1e5(_0x168ad7,_0x2af910,_0x29605d,_0x2def8f){return _0x256f33(_0x2def8f,_0x2af910-_0x7ba6e3._0x19e60e,_0x29605d-0x9,_0x2def8f-_0x7ba6e3._0x315f03);}if(_0x121c49[_0x33e1e5(_0x5a12e1._0x79ef04,0x4bf,0x45f,0x41a)]===_0x33e1e5(_0x5a12e1._0x36efc9,_0x5a12e1._0x29b377,_0x5a12e1._0x273fa2,0x2e2))return{'type':_0x33e1e5(_0x5a12e1._0x59a5db,_0x5a12e1._0x145773,_0x5a12e1._0x4a36e0,_0x5a12e1._0x3e936c)};if(_0x121c49[_0x33e1e5(0x4d3,0x3e4,_0x5a12e1._0x252fa0,0x448)]===_0x2c22d0(_0x5a12e1._0x218b0d,0x320,0x31b,_0x5a12e1._0xa07bd7)||_0x121c49[_0x2c22d0(0x2f5,0x2dd,_0x5a12e1._0x2cddde,0x2be)]===_0x2c22d0(_0x5a12e1._0x5262b3,_0x5a12e1._0x7c65c5,0x218,_0x5a12e1._0x28c625))return{'type':_0x33e1e5(_0x5a12e1._0x2e18b3,0x43d,0x417,_0x5a12e1._0x1699c7)};if(_0x121c49[_0x2c22d0(_0x5a12e1._0x3cf3b9,0x341,_0x5a12e1._0x275057,_0x5a12e1._0x9536c1)]===_0x2c22d0(0x303,_0x5a12e1._0x2ef132,0x256,0x303))return{'type':'boolean'};if(_0x121c49[_0x2c22d0(_0x5a12e1._0x8e6b07,0x37b,0x363,_0x5a12e1._0x322413)]===_0x2c22d0(0x3c6,0x2b6,0x35f,_0x5a12e1._0x32ad63))return{'type':'array','items':toSupportedSchema(_0x121c49[_0x33e1e5(0x472,_0x5a12e1._0x3115bf,_0x5a12e1._0x2877bc,0x403)])??{'type':_0x33e1e5(0x3a7,_0x5a12e1._0x261b70,0x361,_0x5a12e1._0x2d7cbb)}};function _0x2c22d0(_0x375118,_0x1f8d66,_0x72a28c,_0x38602c){return _0x256f33(_0x1f8d66,_0x1f8d66-_0x4bf66f._0x7ec498,_0x72a28c- -_0x4bf66f._0x3ec4df,_0x38602c-0x131);}if(_0x121c49[_0x2c22d0(0x3a5,0x345,_0x5a12e1._0x275057,0x330)]===_0x33e1e5(0x3cc,_0x5a12e1._0x50ff86,0x407,0x3c8))return toNuvinToolSchema(_0x121c49);return void 0x0;}function toNuvinToolSchema(_0x13b657){const _0x413b94={_0x18f2db:0x180,_0x202082:0xb1,_0x4dedf6:0x1b9,_0x50d74c:0x126,_0x21eeb5:0x176,_0x12f8d8:0x15c,_0x581bd0:0x155,_0x41950f:0x100,_0x3bf419:0xc4,_0x5b31e3:0x8a,_0x2d9af1:0x7f,_0x2f9b7b:0x1bf,_0x381d52:0x20a,_0x3c5b98:0x1c0,_0x3aeac9:0x8e,_0x4fd2a4:0xc2,_0x11e1e0:0xd8,_0x4ee9cb:0xe1,_0x4a4b7c:0xb4,_0xff9510:0x23e,_0x60cc31:0x17c,_0x2c5dac:0x176,_0x593b10:0x21e,_0x157f85:0x176,_0x1294a6:0xef},_0x3d33d8={_0x5c48c5:0x1a2},_0x2267e9={_0x20097b:0x18a};if(!isObject(_0x13b657)||_0x13b657[_0x193c2a(-0xfd,-0x124,-_0x413b94._0x18f2db,-_0x413b94._0x202082)]!==_0x5d7e4e(_0x413b94._0x4dedf6,_0x413b94._0x50d74c,_0x413b94._0x21eeb5,_0x413b94._0x12f8d8))return{'type':_0x193c2a(-_0x413b94._0x581bd0,-0x142,-_0x413b94._0x41950f,-_0x413b94._0x3bf419),'properties':{}};const _0x4e10aa={};function _0x193c2a(_0x4789a2,_0x55e890,_0x20dba0,_0xc20541){return _0x256f33(_0x20dba0,_0x55e890-0x1f2,_0x4789a2- -0x553,_0xc20541-_0x2267e9._0x20097b);}function _0x5d7e4e(_0x3441dd,_0x3357cf,_0x4b9de0,_0x3e866d){return _0x379285(_0x3441dd-0x17b,_0x4b9de0-_0x3d33d8._0x5c48c5,_0x4b9de0-0x2e,_0x3357cf);}const _0x3db17b=isObject(_0x13b657[_0x5d7e4e(_0x413b94._0x5b31e3,_0x413b94._0x2d9af1,0xd4,0x90)])?_0x13b657['properties']:{};for(const [_0x5a4ae3,_0x10599c]of Object[_0x193c2a(-_0x413b94._0x2f9b7b,-_0x413b94._0x381d52,-_0x413b94._0x3c5b98,-0x148)](_0x3db17b)){const _0x4e7f83=toSupportedSchema(_0x10599c);if(_0x4e7f83)_0x4e10aa[_0x5a4ae3]=_0x4e7f83;}const _0x2dd4c1=Array['isArray'](_0x13b657['required'])?_0x13b657[_0x5d7e4e(0x41,_0x413b94._0x3aeac9,_0x413b94._0x4fd2a4,_0x413b94._0x11e1e0)][_0x5d7e4e(_0x413b94._0x4ee9cb,0xa2,0xbb,_0x413b94._0x4a4b7c)](_0xe0b6a4=>typeof _0xe0b6a4===_0x193c2a(-0x1fb,-0x1ef,-0x1b9,-0x1a6)):void 0x0;return _0x2dd4c1?.[_0x193c2a(-0x24e,-0x214,-0x260,-_0x413b94._0xff9510)]?{'type':_0x5d7e4e(0x20b,_0x413b94._0x60cc31,_0x413b94._0x2c5dac,_0x413b94._0x593b10),'properties':_0x4e10aa,'required':_0x2dd4c1}:{'type':_0x5d7e4e(0x188,0xf6,_0x413b94._0x157f85,_0x413b94._0x1294a6),'properties':_0x4e10aa};}function isJsonObject(_0x24560b){const _0x5c3c37={_0x2abdd8:0x1cb,_0x44927c:0x196,_0x4dc9fd:0x11b,_0x404c85:0x1a9},_0xc9af6a={_0x1b5788:0x31},_0x2bead2={_0x3b128b:0x1ef,_0x45321e:0xd1};function _0x2a1c11(_0x25895d,_0x42c154,_0x107c6f,_0x45cfed){return _0x379285(_0x25895d-_0x2bead2._0x3b128b,_0x107c6f-0x109,_0x107c6f-_0x2bead2._0x45321e,_0x45cfed);}function _0x2c9b91(_0x1bd116,_0x5c2893,_0x5b6b9f,_0x2ab759){return _0x256f33(_0x2ab759,_0x5c2893-0x2e,_0x5c2893- -0x268,_0x2ab759-_0xc9af6a._0x1b5788);}return typeof _0x24560b===_0x2c9b91(_0x5c3c37._0x2abdd8,_0x5c3c37._0x44927c,_0x5c3c37._0x4dc9fd,_0x5c3c37._0x404c85)&&_0x24560b!==null&&!Array[_0x2c9b91(0xbf,0xd5,0xad,0xe3)](_0x24560b);}function formatMcpContent(_0x4246bb){const _0x261830={_0x58c09d:0x53b,_0x19abb1:0x46a,_0x49d9c6:0x4c1,_0x12faaf:0x4ff,_0x5acc15:0x495,_0x1dce76:0x4f2,_0x2369c5:0x4c3,_0x3aad10:0x388,_0x216e3a:0x2ee,_0x3cf736:0x3db,_0x3bd54f:0x4e1,_0x52954d:0x450,_0x253e3b:0x469},_0x49a8e7={_0x1b8118:0xeb,_0x148968:0x7a},_0xec0314={_0x246e06:0x8b,_0x47313d:0x63,_0x2bfc94:0x4a,_0x39536e:0x7f,_0x90c53:0x69,_0x378ab8:0x49,_0x2cfaee:0x25,_0x448a2c:0x4fd,_0x5a8206:0x51b,_0xc348b9:0x567},_0x411c9d={_0x2ac415:0x1c0,_0x36bf1a:0x51},_0x2128a5=Array[_0x34248f(0x47e,_0x261830._0x58c09d,0x4a3,0x42c)](_0x4246bb[_0x221bec(0x4ca,0x417,0x424,_0x261830._0x19abb1)])?_0x4246bb[_0x221bec(_0x261830._0x49d9c6,0x4bf,0x424,0x40d)]:[];function _0x34248f(_0x324002,_0x278a5b,_0x11ff08,_0xce7dd7){return _0x379285(_0x324002-_0x411c9d._0x2ac415,_0x11ff08-0x590,_0x11ff08-_0x411c9d._0x36bf1a,_0xce7dd7);}const _0x4f2cc6=_0x2128a5[_0x34248f(0x4ca,0x4a4,0x4dc,_0x261830._0x12faaf)](_0x38de06=>{const _0x58eff1={_0x3358f5:0x115,_0x4306d5:0x5a1},_0x56ca7a={_0x345f62:0x198,_0x808ebb:0x74,_0x1a2d0a:0x86};if(!isObject(_0x38de06))return'';function _0x275a56(_0x3bfdab,_0x531c0d,_0x42a78d,_0x17eccd){return _0x34248f(_0x3bfdab-_0x56ca7a._0x345f62,_0x531c0d-_0x56ca7a._0x808ebb,_0x531c0d- -_0x56ca7a._0x1a2d0a,_0x17eccd);}function _0x34e344(_0x4191d6,_0x4c7cdf,_0xae9afb,_0x423fe4){return _0x34248f(_0x4191d6-_0x58eff1._0x3358f5,_0x4c7cdf-0x16a,_0x423fe4- -_0x58eff1._0x4306d5,_0x4c7cdf);}if(_0x38de06['type']===_0x34e344(-_0xec0314._0x246e06,_0xec0314._0x47313d,-_0xec0314._0x2bfc94,-0x25)&&typeof _0x38de06['text']===_0x34e344(-0x9c,-0x183,-_0xec0314._0x39536e,-0xe3))return _0x38de06[_0x34e344(_0xec0314._0x90c53,-_0xec0314._0x2bfc94,_0xec0314._0x378ab8,-_0xec0314._0x2cfaee)];return JSON[_0x275a56(0x52e,_0xec0314._0x448a2c,_0xec0314._0x5a8206,_0xec0314._0xc348b9)](_0x38de06);})[_0x221bec(0x39a,0x34f,0x38f,0x315)](_0x4fe85b=>_0x4fe85b[_0x221bec(0x351,0x378,0x351,0x3c7)]>0x0)[_0x34248f(_0x261830._0x5acc15,_0x261830._0x1dce76,0x540,_0x261830._0x2369c5)]('\x0a');if(_0x4f2cc6[_0x221bec(_0x261830._0x3aad10,_0x261830._0x216e3a,0x351,_0x261830._0x3cf736)]>0x0)return _0x4f2cc6;function _0x221bec(_0x6758ec,_0x1868ae,_0x3c05fd,_0x4d944b){return _0x256f33(_0x1868ae,_0x1868ae-_0x49a8e7._0x1b8118,_0x3c05fd-0x4c,_0x4d944b-_0x49a8e7._0x148968);}return JSON[_0x221bec(_0x261830._0x3bd54f,_0x261830._0x52954d,_0x261830._0x253e3b,0x406)](_0x4246bb,null,0x2);}function createMcpTool(_0x3ea129){const _0x5750b6={_0xe6594a:0x127,_0x5f063c:0x20e,_0x1ce6ed:0x18f,_0x48f217:0x1a1,_0x1b404c:0x113,_0x55905d:0x252,_0x23adb8:0x1e6,_0x372b47:0x1d3,_0x4f6793:0x226,_0x169488:0x1cf,_0x2cd664:0x192,_0x439212:0x114,_0x265af7:0xbd,_0x20d253:0x42,_0x478c87:0x66,_0x47a4c5:0xc1,_0x58f23f:0xd2},_0x1f32a1={_0x530951:0x3bc,_0x3e0155:0x375,_0xe7ba7d:0x4ab,_0x410d68:0x495,_0x3a30bd:0x440,_0x57a269:0x43a,_0x571abc:0x4cd,_0x5e7513:0x48e,_0x189690:0x496,_0x3bfbd5:0x436,_0x3d268b:0x427,_0x5280cf:0x4e5,_0x1f52cb:0x4c7,_0x31d711:0x4e1,_0x28eece:0x443,_0x216e2d:0x467},_0x3e9869={_0x25314b:0x113,_0x5bb42a:0x5c5},_0x422a97={_0x2b9c76:0x139},_0x3e047a={_0x6c117a:0x101},_0x4ef6a9={_0x25a6d0:0x556,_0x58c122:0xb6};function _0x4d28eb(_0x58ada3,_0x1ec83f,_0x5a7b79,_0x565708){return _0x256f33(_0x565708,_0x1ec83f-0x1f3,_0x5a7b79- -_0x4ef6a9._0x25a6d0,_0x565708-_0x4ef6a9._0x58c122);}const _0xb38765=createMcpToolName(_0x3ea129['serverName'],_0x3ea129[_0x4d28eb(-_0x5750b6._0xe6594a,-_0x5750b6._0x5f063c,-0x18b,-0x162)][_0x18d27c(0x161,0x12a,0x12d,_0x5750b6._0x1ce6ed)]);function _0x18d27c(_0x2ff948,_0x369dd5,_0x3d0a4f,_0x2081fe){return _0x379285(_0x2ff948-0xd2,_0x369dd5-0x11c,_0x3d0a4f-_0x3e047a._0x6c117a,_0x2ff948);}return defineTool({'name':_0xb38765,'description':_0x3ea129[_0x4d28eb(-0x14e,-_0x5750b6._0x48f217,-0x18b,-_0x5750b6._0x1b404c)][_0x4d28eb(-_0x5750b6._0x55905d,-0x22a,-_0x5750b6._0x23adb8,-_0x5750b6._0x372b47)]??_0x18d27c(0xef,0xc8,0x3d,0x8b)+_0x3ea129[_0x4d28eb(-_0x5750b6._0x4f6793,-_0x5750b6._0x169488,-0x18b,-_0x5750b6._0x2cd664)]['name']+'\x20from\x20'+_0x3ea129[_0x4d28eb(-0xca,-0x7c,-0x120,-_0x5750b6._0x439212)],'inputSchema':toNuvinToolSchema(_0x3ea129[_0x18d27c(0xe5,_0x5750b6._0x265af7,_0x5750b6._0x20d253,_0x5750b6._0x478c87)][_0x18d27c(_0x5750b6._0x47a4c5,0xd3,_0x5750b6._0x58f23f,0x45)]),async *'execute'(_0x162c0d){const _0x2add15=await _0x3ea129[_0x3f25dd(0x3cd,0x409,_0x1f32a1._0x530951,_0x1f32a1._0x3e0155)][_0x3f25dd(_0x1f32a1._0xe7ba7d,_0x1f32a1._0x410d68,0x3ff,_0x1f32a1._0x3a30bd)]({'name':_0x3ea129[_0x442178(_0x1f32a1._0x57a269,0x3a7,0x3a4,0x3d5)]['name'],'arguments':isJsonObject(_0x162c0d)?_0x162c0d:{}});if(_0x2add15[_0x3f25dd(_0x1f32a1._0x571abc,_0x1f32a1._0x5e7513,0x51c,_0x1f32a1._0x189690)])throw new ToolExecutionError(formatMcpContent(_0x2add15),{'serverName':_0x3ea129[_0x3f25dd(0x4e1,0x511,_0x1f32a1._0x3bfbd5,0x4ed)],'toolName':_0x3ea129[_0x3f25dd(0x476,0x3db,_0x1f32a1._0x3d268b,0x3cc)][_0x3f25dd(0x4e3,_0x1f32a1._0x5280cf,0x552,_0x1f32a1._0x1f52cb)]});function _0x3f25dd(_0x5b71cf,_0x159fc2,_0x25dccf,_0x1f0391){return _0x18d27c(_0x25dccf,_0x5b71cf-0x3b9,_0x25dccf-0x1bf,_0x1f0391-_0x422a97._0x2b9c76);}function _0x442178(_0x8c3f98,_0x2fc73e,_0x229805,_0x5973e8){return _0x4d28eb(_0x8c3f98-_0x3e9869._0x25314b,_0x2fc73e-0x1c5,_0x8c3f98-_0x3e9869._0x5bb42a,_0x5973e8);}return yield createToolOutput(formatMcpContent(_0x2add15),{'serverName':_0x3ea129[_0x3f25dd(_0x1f32a1._0x31d711,_0x1f32a1._0x28eece,_0x1f32a1._0x216e2d,0x453)],'toolName':_0x3ea129[_0x442178(0x43a,0x45e,0x466,0x3e1)]['name'],'result':_0x2add15}),void 0x0;}});}function resolvePrefix(_0x26bc2a,_0x1fa89e){const _0x1e0f7f={_0x5692fd:0xc6,_0x2eec03:0x1e5};function _0x3fc907(_0x2ac9bc,_0x26194f,_0x33df8e,_0x17395a){return _0x379285(_0x2ac9bc-0x1bd,_0x17395a- -0x162,_0x33df8e-0x12d,_0x2ac9bc);}return _0x1fa89e[_0x3fc907(-_0x1e0f7f._0x5692fd,-0x13d,-_0x1e0f7f._0x2eec03,-0x148)]??_0x26bc2a;}function buildMcpHttpHeaders(_0x3beaee){const _0x51cc22={_0x4e37f6:0x74,_0x2ad9ac:0x84,_0x1667bd:0x93,_0x4ef4e5:0xea,_0x47801f:0x116,_0x1d7d8a:0x63,_0x3e28df:0x199,_0x27f3ce:0x1cf,_0x591413:0x9b,_0x498578:0xb0,_0xe8274b:0x28,_0x307a45:0x62},_0x5228d1={_0x65de8d:0x12c,_0x4d6570:0x83,_0x209f1c:0xc8},_0x3d5251={_0x5404db:0x66,_0x2cf822:0x14a};function _0x873f2c(_0x1ad76e,_0x5307c5,_0x4f7a38,_0x57412f){return _0x379285(_0x1ad76e-_0x3d5251._0x5404db,_0x5307c5- -_0x3d5251._0x2cf822,_0x4f7a38-0x1b2,_0x57412f);}const _0x3b0e89={..._0x3beaee[_0x420eb3(-_0x51cc22._0x4e37f6,-0x5c,-_0x51cc22._0x2ad9ac,-0x119)]??{}};function _0x420eb3(_0x403cf5,_0x13b133,_0x2920ac,_0x4ea98a){return _0x379285(_0x403cf5-_0x5228d1._0x65de8d,_0x403cf5-_0x5228d1._0x4d6570,_0x2920ac-_0x5228d1._0x209f1c,_0x13b133);}return _0x3beaee[_0x873f2c(-0x195,-0x21e,-0x1f7,-0x253)]?.[_0x873f2c(-_0x51cc22._0x1667bd,-0x11e,-_0x51cc22._0x4ef4e5,-_0x51cc22._0x47801f)]===_0x420eb3(-0x29,-0x80,-0x7e,-_0x51cc22._0x1d7d8a)&&_0x3beaee['auth'][_0x873f2c(-_0x51cc22._0x3e28df,-0x20a,-_0x51cc22._0x27f3ce,-0x1be)]&&_0x3b0e89['Authorization']===void 0x0&&(_0x3b0e89[_0x420eb3(0x75,_0x51cc22._0x591413,0xe3,0x34)]=_0x420eb3(0x54,_0x51cc22._0x498578,0xde,-0x3b)+_0x3beaee['auth']['token']),Object[_0x420eb3(0x85,-_0x51cc22._0xe8274b,_0x51cc22._0x307a45,0x12f)](_0x3b0e89)['length']>0x0?_0x3b0e89:void 0x0;}function getErrorMessage(_0x49c531){const _0x2a1280={_0x39d392:0x185,_0x246de2:0x141,_0x4b004f:0x1e9},_0x58fcd5={_0x24552:0x156};function _0xe8f968(_0x55a55d,_0x494d8e,_0x38c8f1,_0x241086){return _0x379285(_0x55a55d-0x1de,_0x241086- -_0x58fcd5._0x24552,_0x38c8f1-0x10b,_0x55a55d);}return _0x49c531 instanceof Error?_0x49c531[_0xe8f968(-_0x2a1280._0x39d392,-_0x2a1280._0x246de2,-_0x2a1280._0x4b004f,-0x168)]:String(_0x49c531);}function isUnauthorizedError(_0x5176e0){const _0x5b3d4d={_0x2b5948:0x25},_0x5be173={_0x4d36bf:0xc8,_0x5f4b0d:0x15f},_0x5793fb={_0x1c7e44:0x26,_0x2ec5a2:0x197};function _0x57cfa9(_0x46fefb,_0x535cd8,_0x5ccc13,_0x443306){return _0x379285(_0x46fefb-_0x5793fb._0x1c7e44,_0x5ccc13-0x4b5,_0x5ccc13-_0x5793fb._0x2ec5a2,_0x46fefb);}function _0xd0f00f(_0x1e3d1b,_0x2e0260,_0x48d210,_0x2c728d){return _0x379285(_0x1e3d1b-0x1f2,_0x2c728d-_0x5be173._0x4d36bf,_0x48d210-_0x5be173._0x5f4b0d,_0x48d210);}return _0x5176e0 instanceof Error&&_0x5176e0[_0xd0f00f(0x5f,-0x6a,_0x5b3d4d._0x2b5948,0x2a)][_0x57cfa9(0x4c7,0x42d,0x4c3,0x474)]==='UnauthorizedError';}async function connectMcpServer(_0x212c98,_0x330ad6,_0xbd115a){const _0xfbfd53={_0x2b792b:0x1c1,_0x3fcc0f:0x20b,_0x41d1fb:0x29a,_0x5a34a4:0x271,_0x11aa48:0x2cb,_0x156883:0x222,_0xcb39c1:0x64,_0x28bde8:0x1e,_0x4b3ba1:0x177,_0x4bc2f6:0x224,_0x3a9f21:0xd1,_0x3c32d4:0xfd,_0x368b2f:0x45,_0x297a9a:0x1f,_0x5a9df6:0x206,_0x520ff8:0x13,_0x501a58:0x1,_0x5ae9d4:0x6a,_0x322250:0x185,_0xe80d49:0x101,_0x444bce:0x300,_0x1974f4:0x1dd,_0x100c11:0x31,_0xa54b1a:0x5e,_0x109310:0x219,_0x1f6f66:0x5c,_0x40f30e:0x1af,_0x2511db:0x190,_0x5cf743:0x12f,_0x35843e:0x2f0,_0x4cb0f3:0x1eb,_0x1fc3b7:0x2b5,_0x3f69cc:0x9a,_0xe5bf7c:0x78,_0x32ab7d:0x243,_0x40c523:0x2a2,_0x9e033c:0x2ed,_0x149699:0x211,_0x867a3d:0xe7,_0x4b315a:0x80,_0x29d633:0x151,_0x53e3a7:0x12e,_0xa090c7:0x1d1,_0x4c31de:0x14f},_0x398e84={_0x5b7c62:0xa5,_0x1bdc6f:0x105},_0x21d48f={_0x52681d:0xa7,_0x206356:0x92},_0x15c83d={_0x1216b4:0xea,_0x5369a0:0x159},_0x161fbb={_0x49af81:0x173},_0x1e1dc5={_0x213f59:0xed};function _0x4ede52(_0x290737,_0x27eb90,_0x445736,_0x12a37f){return _0x256f33(_0x12a37f,_0x27eb90-_0x1e1dc5._0x213f59,_0x27eb90- -0x355,_0x12a37f-0xb2);}function _0x11607a(_0x1974a8,_0x43f396,_0x144952,_0x26122b){return _0x379285(_0x1974a8-0x1c8,_0x1974a8- -_0x161fbb._0x49af81,_0x144952-0x24,_0x43f396);}const _0x5017e2=new Client({'name':_0x11607a(-0x1bd,-_0xfbfd53._0x2b792b,-0x120,-_0xfbfd53._0x3fcc0f),'version':_0x11607a(-_0xfbfd53._0x41d1fb,-_0xfbfd53._0x5a34a4,-_0xfbfd53._0x11aa48,-_0xfbfd53._0x156883)});if(_0x330ad6[_0x4ede52(-_0xfbfd53._0xcb39c1,-0x29,0x2b,_0xfbfd53._0x28bde8)]===_0x11607a(-0x1b3,-0x1af,-0x15d,-0x248)||_0x330ad6[_0x11607a(-_0xfbfd53._0x4b3ba1,-0x218,-0xd1,-_0xfbfd53._0x4bc2f6)]){if(!_0x330ad6[_0x4ede52(0xb8,_0xfbfd53._0x3a9f21,_0xfbfd53._0x3c32d4,0x145)])throw new Error(_0x4ede52(-_0xfbfd53._0x368b2f,0x1e,_0xfbfd53._0x297a9a,0x32)+_0x212c98+_0x11607a(-0x263,-_0xfbfd53._0x5a9df6,-0x26a,-0x218));if(_0x330ad6[_0x4ede52(-_0xfbfd53._0x520ff8,_0xfbfd53._0x501a58,-0x40,-_0xfbfd53._0x5ae9d4)]?.[_0x4ede52(_0xfbfd53._0x322250,_0xfbfd53._0xe80d49,0xdd,0x176)]===_0x11607a(-0x269,-0x2f5,-_0xfbfd53._0x444bce,-0x2c3)&&!_0xbd115a?.['oauth'])throw new Error(_0x11607a(-0x22a,-_0xfbfd53._0x1974f4,-0x1c8,-0x183)+_0x212c98+'\x20requires\x20OAuth\x20connection\x20options');const _0x3a66bb=buildMcpHttpHeaders(_0x330ad6),_0x394ac5=_0x330ad6[_0x4ede52(_0xfbfd53._0x100c11,0x1,-_0xfbfd53._0xa54b1a,-0x24)]?.['type']===_0x11607a(-0x269,-_0xfbfd53._0x109310,-0x2d5,-0x2ab)&&_0xbd115a?.['oauth']?createMcpOAuthProvider({'serverName':_0x212c98,'callbackUrl':_0xbd115a[_0x4ede52(0xd,-0x21,0x58,_0xfbfd53._0x1f6f66)][_0x11607a(-_0xfbfd53._0x40f30e,-_0xfbfd53._0x2511db,-0x175,-_0xfbfd53._0x5cf743)],'storageDir':_0xbd115a[_0x11607a(-0x269,-_0xfbfd53._0x35843e,-_0xfbfd53._0x4cb0f3,-_0xfbfd53._0x1fc3b7)][_0x4ede52(0xa7,_0xfbfd53._0x3f69cc,_0xfbfd53._0xe5bf7c,_0xfbfd53._0x3c32d4)],'config':_0x330ad6[_0x11607a(-0x247,-_0xfbfd53._0x32ab7d,-_0xfbfd53._0x40c523,-_0xfbfd53._0x9e033c)],'onRedirect':_0x2affa3=>_0xbd115a[_0x4ede52(0x75,-0x21,-0x97,0x78)]?.[_0x11607a(-0x291,-0x209,-0x324,-0x333)](_0x212c98,_0x2affa3)}):void 0x0,_0x47186a=new StreamableHTTPClientTransport(new URL(_0x330ad6[_0x11607a(-_0xfbfd53._0x4b3ba1,-_0xfbfd53._0x149699,-0xcb,-0x116)]),{'authProvider':_0x394ac5,'requestInit':_0x3a66bb?{'headers':_0x3a66bb}:void 0x0});await _0x5017e2[_0x11607a(-0x183,-0x168,-0xeb,-0x13f)](_0x47186a);}else{if(!_0x330ad6[_0x11607a(-0x14f,-0x167,-_0xfbfd53._0x867a3d,-_0xfbfd53._0x3c32d4)])throw new Error(_0x11607a(-0x22a,-0x27b,-0x25d,-0x1f4)+_0x212c98+_0x4ede52(0xa,0x22,0x1a,-_0xfbfd53._0x4b315a));const _0x52e13c=new StdioClientTransport({'command':_0x330ad6[_0x4ede52(_0xfbfd53._0x29d633,0xf9,0x4b,0x188)],'args':_0x330ad6[_0x4ede52(0x9b,0x9f,0xfc,_0xfbfd53._0x53e3a7)]??[],'env':_0x330ad6[_0x11607a(-_0xfbfd53._0xa090c7,-_0xfbfd53._0x4c31de,-0x1d6,-0x228)]});await _0x5017e2['connect'](_0x52e13c);}return{async 'listTools'(){const _0x30ae67={_0x2fbeae:0x30d,_0x4cc91c:0x61,_0x148e11:0xb5};function _0x3a2f06(_0x2f58d8,_0x3a57fc,_0x544f23,_0x44cf57){return _0x11607a(_0x2f58d8-_0x30ae67._0x2fbeae,_0x44cf57,_0x544f23-_0x30ae67._0x4cc91c,_0x44cf57-_0x30ae67._0x148e11);}return await _0x5017e2[_0x3a2f06(0xd5,_0x15c83d._0x1216b4,_0x15c83d._0x5369a0,0xdc)]();},async 'callTool'(_0x2f9fa9){function _0x4e87e8(_0x5b6091,_0x1015b4,_0x6ae893,_0x490e81){return _0x4ede52(_0x5b6091-_0x21d48f._0x52681d,_0x5b6091-_0x21d48f._0x206356,_0x6ae893-0xc,_0x490e81);}return await _0x5017e2[_0x4e87e8(_0x398e84._0x5b7c62,0x116,0xa,_0x398e84._0x1bdc6f)]({'method':'tools/call','params':_0x2f9fa9},CallToolResultSchema);},async 'close'(){await _0x5017e2['close']();}};}async function createMcpToolsFromServers(_0x3051ba){const _0x47bd50={_0x44a1a7:0x155,_0x99d16e:0x1d3,_0x19ce55:0x22a,_0x22b3ae:0x174,_0xf6acf7:0x2c6,_0x5c1c0a:0x1c7,_0x3fdd7a:0x20f,_0x2e879e:0x21a,_0x3089b:0x233,_0x1aa0a6:0x1b5,_0x572d36:0x1c6,_0x54b7d7:0x1f8,_0x4bc1a2:0x22d,_0x6eb8d4:0x227,_0xc93540:0x62,_0x51d270:0x29f,_0x150671:0x2ff,_0x2cafde:0x28c,_0x31b9bc:0x116,_0x2c8ab9:0x205,_0xad24c6:0x29a,_0x236774:0x213,_0x8320ba:0x1e7,_0x17d6e0:0xfa},_0x3c09e9={_0x54b3ed:0x235,_0x421b42:0x2a6},_0x49caeb={_0x15c48e:0x5af,_0x9631ff:0x12f},_0x1ca2be=_0x3051ba[_0x329c3b(-_0x47bd50._0x44a1a7,-_0x47bd50._0x99d16e,-0x12f,-0x12d)]??connectMcpServer,_0xd609ea=[];function _0x329c3b(_0x2d0ec7,_0xf19f6f,_0x4d357c,_0x26420){return _0x256f33(_0xf19f6f,_0xf19f6f-0x18e,_0x26420- -0x547,_0x26420-0xbb);}const _0x4c56fd={},_0x236b39=[];for(const [_0x18a894,_0x3a3db3]of Object[_0x329c3b(-_0x47bd50._0x19ce55,-_0x47bd50._0x22b3ae,-0x23f,-0x1b3)](_0x3051ba[_0x329c3b(-_0x47bd50._0xf6acf7,-_0x47bd50._0x5c1c0a,-_0x47bd50._0x3fdd7a,-_0x47bd50._0x2e879e)]??{})){if(_0x3a3db3[_0x329c3b(-_0x47bd50._0x3089b,-0x15e,-_0x47bd50._0x1aa0a6,-_0x47bd50._0x572d36)]===![]){_0x4c56fd[_0x18a894]={'status':_0x4a92da(-_0x47bd50._0x54b7d7,-_0x47bd50._0x4bc1a2,-0x220,-0x222)};continue;}try{const _0x1febd8=await _0x1ca2be(_0x18a894,_0x3a3db3,_0x3051ba[_0x329c3b(-_0x47bd50._0x6eb8d4,-_0x47bd50._0x99d16e,-0x245,-0x1e6)]);_0xd609ea[_0x329c3b(-0x11d,-0x87,-_0x47bd50._0xc93540,-0xf6)](_0x1febd8);const _0x50d522=await _0x1febd8['listTools']();let _0x531a1f=0x0;for(const _0x307f65 of _0x50d522[_0x4a92da(-_0x47bd50._0x51d270,-0x2f2,-0x205,-_0x47bd50._0x150671)]){const _0x12d39b=_0x3051ba[_0x329c3b(-_0x47bd50._0x2cafde,-0x27d,-0x2d4,-0x235)]?.[_0x18a894]?.[_0x307f65['name']];if(_0x12d39b===![])continue;_0x531a1f+=0x1,_0x236b39[_0x329c3b(-_0x47bd50._0x31b9bc,-0x97,-0x192,-0xf6)](createMcpTool({'serverName':resolvePrefix(_0x18a894,_0x3a3db3),'tool':_0x307f65,'client':_0x1febd8}));}_0x4c56fd[_0x18a894]={'status':_0x329c3b(-_0x47bd50._0x4bc1a2,-0x149,-0x183,-0x188),'toolCount':_0x531a1f};}catch(_0x4b6a5c){_0x4c56fd[_0x18a894]=isUnauthorizedError(_0x4b6a5c)?{'status':_0x4a92da(-_0x47bd50._0x2c8ab9,-_0x47bd50._0xad24c6,-0x223,-_0x47bd50._0x236774),'message':getErrorMessage(_0x4b6a5c)}:{'status':_0x329c3b(-_0x47bd50._0x8320ba,-0x1bc,-_0x47bd50._0x17d6e0,-0x17a),'message':getErrorMessage(_0x4b6a5c)};}}function _0x4a92da(_0xa13c06,_0x22b70d,_0x3b95f2,_0x58443b){return _0x256f33(_0x22b70d,_0x22b70d-0xf5,_0xa13c06- -_0x49caeb._0x15c48e,_0x58443b-_0x49caeb._0x9631ff);}return{'tools':_0x236b39,'servers':_0x4c56fd,async 'close'(){const _0x25af2f={_0x5b22d2:0x3a8,_0x4e1ea5:0xe7},_0x56acc7={_0x19573f:0x1f3,_0x4a9a6f:0x60,_0x28e182:0x25};function _0x5aca1c(_0x5dd534,_0x4c3886,_0x56f764,_0x439027){return _0x4a92da(_0x5dd534-_0x56acc7._0x19573f,_0x4c3886,_0x56f764-_0x56acc7._0x4a9a6f,_0x439027-_0x56acc7._0x28e182);}function _0x58e1d5(_0x4075e8,_0x54e9f9,_0x224289,_0xbcfdda){return _0x4a92da(_0x4075e8-_0x25af2f._0x5b22d2,_0x54e9f9,_0x224289-0xbc,_0xbcfdda-_0x25af2f._0x4e1ea5);}await Promise[_0x58e1d5(_0x3c09e9._0x54b3ed,_0x3c09e9._0x421b42,0x1db,0x1c4)](_0xd609ea['map'](_0x782ff0=>_0x782ff0[_0x58e1d5(0x102,0x11f,0xe8,0xea)]()));}};}function getCommand(_0x2a64c2){const _0x5aa126={_0x44f818:0x51b,_0x3f74c9:0x4b2,_0x5cadc2:0x5aa,_0x4800b2:0x6a7,_0x1895dc:0x4b6,_0x12b197:0x4f0,_0x5dd50c:0x581},_0xe6d824={_0x4e702b:0x607,_0x5a966a:0xb4},_0x7a99ec={_0x22cc96:0xad,_0x584935:0x1ae};function _0x259d8b(_0x386603,_0xd60d45,_0x1b97d2,_0x23928d){return _0x379285(_0x386603-_0x7a99ec._0x22cc96,_0x386603-0x5f6,_0x1b97d2-_0x7a99ec._0x584935,_0xd60d45);}function _0x5e511d(_0x2987fd,_0x4d14df,_0x5cdab1,_0x55510f){return _0x379285(_0x2987fd-0x1ad,_0x5cdab1-_0xe6d824._0x4e702b,_0x5cdab1-_0xe6d824._0x5a966a,_0x4d14df);}if(_0x2a64c2&&typeof _0x2a64c2==='object'&&!Array['isArray'](_0x2a64c2)&&typeof _0x2a64c2[_0x5e511d(0x5f8,0x69c,0x62b,0x66e)]===_0x5e511d(_0x5aa126._0x44f818,0x4ae,0x535,_0x5aa126._0x3f74c9))return _0x2a64c2[_0x259d8b(0x61a,_0x5aa126._0x5cadc2,0x640,_0x5aa126._0x4800b2)];return _0x5e511d(_0x5aa126._0x1895dc,0x593,_0x5aa126._0x12b197,_0x5aa126._0x5dd50c);}var MOCK_WORKSPACE_LISTING=[_0x379285(-0xeb,-0x7b,-0x96,-0x5b),_0x256f33(0x431,0x3a2,0x427,0x394),_0x256f33(0x4a3,0x439,0x454,0x3d1),_0x256f33(0x355,0x2c7,0x359,0x32d),_0x256f33(0x32e,0x3c9,0x382,0x2e9),_0x379285(-0x7,-0x33,-0x54,-0x8e),_0x379285(-0x5b,-0x23,-0xb9,-0x23),_0x256f33(0x48f,0x3d4,0x414,0x36c),_0x256f33(0x2fe,0x409,0x395,0x353),_0x256f33(0x35e,0x3ef,0x3e6,0x478),_0x256f33(0x306,0x3a8,0x3b3,0x38d),_0x379285(-0xee,-0x85,-0x2d,-0xb),_0x379285(-0x2b,-0x94,0x1,-0x32),_0x256f33(0x3f2,0x371,0x401,0x3da),_0x379285(0x31,-0x25,-0xa0,-0x9d),_0x379285(-0xb1,-0x86,-0x96,-0xcc),_0x379285(-0x141,-0xfb,-0x135,-0xa0)][_0x256f33(0x45a,0x3f5,0x3da,0x3b7)]('\x0a'),SHELL_EXEC_TOOL={'name':_0x256f33(0x44b,0x408,0x3ce,0x36c),'description':'Executes\x20a\x20shell\x20command','input_schema':{'type':_0x379285(-0xc0,-0x2c,-0xc4,-0x66),'properties':{'command':{'type':_0x379285(-0xef,-0xd2,-0x11a,-0xb8)}},'required':[_0x379285(-0x6c,0x24,0x3f,-0x53)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0x50eb32){return{'output':_0x50eb32,'structured':{'value':_0x50eb32}};}function createUnknownToolResult(_0x4681b6){const _0x549c46={_0xfe0b98:0xe0,_0x4fffb1:0x17f},_0x7c02cf={_0x5a74f4:0x42},_0x559dfb={_0x150b5a:0xe1};function _0x575988(_0x4e92a3,_0x437866,_0x3a8066,_0x575d87){return _0x256f33(_0x437866,_0x437866-0x38,_0x3a8066- -0x1d,_0x575d87-_0x559dfb._0x150b5a);}function _0x5db796(_0x559177,_0x320420,_0x14c1aa,_0x1d1a2e){return _0x256f33(_0x1d1a2e,_0x320420-0x97,_0x320420- -0x571,_0x1d1a2e-_0x7c02cf._0x5a74f4);}return{'callId':_0x4681b6['id'],'toolName':_0x4681b6[_0x5db796(-0x13c,-0x139,-_0x549c46._0xfe0b98,-_0x549c46._0x4fffb1)],'status':_0x5db796(-0x13e,-0x1a4,-0x175,-0x129),'output':'Unknown\x20tool:\x20'+_0x4681b6['name'],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x1e6ea3,_0x1321e4){return{'callId':_0x1e6ea3['id'],'toolName':_0x1e6ea3['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x1e6ea3['input']),'exitCode':0x0},'chunks':[_0x1321e4],'meta':createMeta()};}function createMockToolRuntime(){const _0x2938c1={_0x5d2f9e:0x2c7,_0x3fc773:0x24e,_0x56ce66:0x2af,_0x220a5e:0x46a,_0x414561:0x3dc,_0x34c780:0x34a},_0x2fcad8=async(_0x3e37f7,_0x1d052a)=>{function _0x3f34d4(_0x5ce891,_0x58de46,_0x4b81d0,_0x981c8c){return _0x3e7e(_0x981c8c-0x3f,_0x5ce891);}if(_0x3e37f7[_0x3f34d4(_0x2938c1._0x5d2f9e,_0x2938c1._0x3fc773,0x217,_0x2938c1._0x56ce66)]!==_0x15bfe9(0x453,_0x2938c1._0x220a5e,_0x2938c1._0x414561,_0x2938c1._0x34c780))return createUnknownToolResult(_0x3e37f7);function _0x15bfe9(_0x58f039,_0x324211,_0x5b0629,_0x46bb09){return _0x3e7e(_0x5b0629-0x1d6,_0x46bb09);}const _0x405964=createOutputChunk(MOCK_WORKSPACE_LISTING);return createSuccessToolResult(_0x3e37f7,_0x405964);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0xfc7860,_0x553cd6){function _0x582786(_0x7dfcaa,_0x4a427a,_0xb566ee,_0x219230){return _0x3e7e(_0x7dfcaa-0x2d1,_0x4a427a);}return await Promise[_0x582786(0x545,0x514,0x5ac,0x55a)](_0xfc7860['map'](async _0x2f602f=>{return await _0x2fcad8(_0x2f602f,_0x553cd6);}));},async 'execute'(_0x54e5e0,_0x47337d){return await _0x2fcad8(_0x54e5e0,_0x47337d);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x319604,_0x2ef346){const _0x502957={_0x21e6b9:0x1ad,_0x441857:0x11f},_0x2cc3d0={_0x2fde80:0x196,_0x33246a:0x159};function _0x329d84(_0x379642,_0x4fd4a1,_0x5c816f,_0x4201cb){return _0x256f33(_0x4fd4a1,_0x4fd4a1-_0x2cc3d0._0x2fde80,_0x5c816f- -_0x2cc3d0._0x33246a,_0x4201cb-0x8c);}return typeof _0x319604===_0x329d84(_0x502957._0x21e6b9,_0x502957._0x441857,0x1c6,0x196)?await _0x319604(_0x2ef346):_0x319604;}function getDelegatedAgentDefinition(_0x4e4df4,_0x131907){const _0x3691f0={_0x40f3b3:0x169,_0x35e4ee:0x210},_0x14c943={_0x2403cf:0x115,_0x4714d3:0x1a4};function _0x4d83d6(_0x676707,_0x32a412,_0x42d019,_0x2a2d05){return _0x379285(_0x676707-_0x14c943._0x2403cf,_0x32a412-_0x14c943._0x4714d3,_0x42d019-0xe4,_0x2a2d05);}return _0x4e4df4[_0x4d83d6(_0x3691f0._0x40f3b3,0x1ba,_0x3691f0._0x35e4ee,0x1d1)]?.[_0x131907];}function createRunSummary(_0x4263dc){const _0x2742b3={_0x53d8d2:0x182,_0x26803a:0x153,_0x17641a:0x13d,_0x48087f:0x1b2,_0x3695bb:0xd1,_0x5a7d81:0xfb,_0x56fe12:0x5a,_0x2a779d:0x1b6,_0x5f036c:0x129,_0x1dfdd4:0x187,_0x5b7f2f:0x20e,_0x2c378f:0x2e0,_0x4bd0c8:0x262,_0x103595:0x294,_0x3e552d:0x236,_0x3a8709:0x1d8,_0x51d376:0x1fe,_0x4ca3b4:0x1b9,_0x447e63:0x15e,_0x5528d2:0x13a},_0x1fefdd={_0x3e6616:0x1d1},_0x184c5={_0x319500:0x253};function _0x3ee08c(_0x47716b,_0x3bb423,_0x5375c1,_0xe34c67){return _0x379285(_0x47716b-0xc9,_0x5375c1-_0x184c5._0x319500,_0x5375c1-0x1aa,_0x3bb423);}function _0xece20c(_0x866434,_0x200479,_0x4a5645,_0x4fb35a){return _0x256f33(_0x4a5645,_0x200479-_0x1fefdd._0x3e6616,_0x200479- -0x299,_0x4fb35a-0xc1);}return{'runId':_0x4263dc['runId'],'agentId':_0x4263dc[_0x3ee08c(0x13b,_0x2742b3._0x53d8d2,_0x2742b3._0x26803a,0x1a4)],'sessionId':_0x4263dc[_0xece20c(_0x2742b3._0x17641a,0x12a,_0x2742b3._0x48087f,_0x2742b3._0x3695bb)],'status':_0x4263dc[_0xece20c(0xf7,0xe3,_0x2742b3._0x5a7d81,_0x2742b3._0x56fe12)],'parentSessionId':_0x4263dc[_0xece20c(_0x2742b3._0x2a779d,_0x2742b3._0x5f036c,0x16c,_0x2742b3._0x1dfdd4)],..._0x4263dc[_0x3ee08c(0x1e0,_0x2742b3._0x5b7f2f,0x262,0x2a4)]!==void 0x0?{'originToolCallId':_0x4263dc[_0x3ee08c(0x22e,_0x2742b3._0x2c378f,_0x2742b3._0x4bd0c8,_0x2742b3._0x103595)]}:{},..._0x4263dc[_0x3ee08c(_0x2742b3._0x3e552d,_0x2742b3._0x3a8709,0x215,0x263)]!==void 0x0?{'errorMessage':_0x4263dc['errorMessage']}:{},..._0x4263dc[_0x3ee08c(0x28c,0x1d4,0x247,_0x2742b3._0x51d376)]?.[_0xece20c(0xa7,0x13a,_0x2742b3._0x4ca3b4,0x156)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x4263dc['result'][_0xece20c(_0x2742b3._0x447e63,_0x2742b3._0x5528d2,0x157,0x1c1)])}:{}};}function createRunSummaryOutput(_0x42cee2,_0x4bf771){const _0x47713e={_0x58ac30:0x3e7,_0x5d42e5:0x41a,_0x3a947c:0x25f,_0x10d1da:0x1f4},_0x581882={_0x48e0b5:0xe4,_0x4c7cec:0x169},_0x2603ec={_0x174d29:0x1a0,_0xacb850:0xa6},_0x5227d2=createRunSummary(_0x42cee2);function _0x32edbe(_0x51a75d,_0x15462c,_0x15e229,_0x2cfc5f){return _0x256f33(_0x15462c,_0x15462c-_0x2603ec._0x174d29,_0x51a75d- -_0x2603ec._0xacb850,_0x2cfc5f-0x1e4);}function _0x35ac8d(_0x3ab1e6,_0xc84fb4,_0x585721,_0x295d8e){return _0x379285(_0x3ab1e6-_0x581882._0x48e0b5,_0x295d8e-0x53d,_0x585721-_0x581882._0x4c7cec,_0x585721);}const _0x25be20=_0x5227d2[_0x35ac8d(0x36b,_0x47713e._0x58ac30,0x3c4,_0x47713e._0x5d42e5)];return createToolOutput(typeof _0x25be20==='string'&&_0x25be20[_0x32edbe(_0x47713e._0x3a947c,_0x47713e._0x10d1da,0x2d3,0x2a3)]>0x0?_0x25be20:_0x4bf771,_0x5227d2);}function getRunTerminalErrorMessage(_0x1f158d){const _0x5a5dd0={_0x5c1967:0x1e9,_0x5980e6:0x202,_0x488e85:0x2d6,_0x5552ea:0x20a,_0x3c3289:0x20,_0x1bc4a8:0x15,_0x25c694:0x20f,_0xd6c1c0:0x1c1,_0x98da0f:0x242,_0x4e365d:0x248,_0x8a38e7:0x1ad,_0x4b58f0:0x126},_0xac59dc={_0x4f36bc:0x153,_0x10a2ec:0x237},_0xce030b={_0x38da81:0xd6,_0x355190:0x72,_0x45ad7f:0x157},_0x121317=_0x1f158d?.[_0x104ecb(_0x5a5dd0._0x5c1967,0x22d,_0x5a5dd0._0x5980e6,_0x5a5dd0._0x488e85)][_0x2cff27(0x7f,0x3d,0x5f,-0x19)]['at'](-0x1);function _0x2cff27(_0xec01e9,_0x494d5e,_0x55834f,_0x447d62){return _0x379285(_0xec01e9-_0xce030b._0x38da81,_0x447d62-_0xce030b._0x355190,_0x55834f-_0xce030b._0x45ad7f,_0xec01e9);}function _0x104ecb(_0x3b1814,_0x47e89c,_0x5d7b99,_0x10bab9){return _0x379285(_0x3b1814-_0xac59dc._0x4f36bc,_0x47e89c-_0xac59dc._0x10a2ec,_0x5d7b99-0x10,_0x10bab9);}if(_0x121317?.[_0x104ecb(_0x5a5dd0._0x5552ea,0x189,0x16c,0xfe)]===_0x2cff27(-0x1e,-_0x5a5dd0._0x3c3289,_0x5a5dd0._0x1bc4a8,_0x5a5dd0._0x1bc4a8)&&_0x121317['output'][_0x104ecb(_0x5a5dd0._0x25c694,0x19e,_0x5a5dd0._0xd6c1c0,_0x5a5dd0._0x98da0f)]()['length']>0x0)return _0x121317[_0x104ecb(_0x5a5dd0._0x4e365d,_0x5a5dd0._0x8a38e7,0x18a,_0x5a5dd0._0x4b58f0)];return void 0x0;}function formatAbortedRunMessage(_0x151c65,_0xb525aa){const _0x589337={_0x278d5c:0xae,_0x28e72b:0x109,_0x19e752:0x18c,_0x4f33d5:0x2b0,_0x277333:0x213,_0x474950:0x25a,_0x3bb039:0x297,_0x395c58:0x171,_0x2633f8:0xdb},_0x2ffde3={_0x269e85:0x175,_0x2f1f12:0x1ed,_0x50fdb3:0x83},_0x4b06be='Agent\x20run\x20'+_0x151c65+_0x312af5(_0x589337._0x278d5c,0x18e,_0x589337._0x28e72b,0x12c);function _0x1782c4(_0x1bea5d,_0x1c8cce,_0x5b6d48,_0x2195dd){return _0x256f33(_0x1bea5d,_0x1c8cce-0xec,_0x1c8cce- -0xf2,_0x2195dd-0x1d0);}function _0x312af5(_0x2da6eb,_0x3e5bde,_0x414fdf,_0x17b867){return _0x379285(_0x2da6eb-_0x2ffde3._0x269e85,_0x17b867-_0x2ffde3._0x2f1f12,_0x414fdf-_0x2ffde3._0x50fdb3,_0x2da6eb);}if(!_0xb525aa||_0xb525aa[_0x312af5(_0x589337._0x19e752,0x18f,0x1ef,0x154)]()[_0x1782c4(_0x589337._0x4f33d5,_0x589337._0x277333,_0x589337._0x474950,_0x589337._0x3bb039)]===0x0||_0xb525aa===_0x4b06be)return _0x4b06be;return _0x4b06be+_0x312af5(0xeb,0x119,_0x589337._0x395c58,_0x589337._0x2633f8)+_0xb525aa;}function createAssignTaskTool(_0x1202f8){const _0xd0f9f8={_0x245ec1:0x442,_0xbcfb98:0x500,_0x619704:0x4f7,_0x51556b:0x2e,_0x336144:0x74},_0x1e683d={_0x5ca5bb:0xf1,_0x2f3f98:0x14f,_0x219c80:0xea,_0x5657da:0x194,_0x5b3e41:0x195,_0x13175d:0x63,_0x5d2ab1:0xaf,_0x84ef4:0x34,_0xf840f7:0x148,_0x342bec:0x1b5,_0x24925a:0x17d,_0x33ec0e:0xd9,_0x3e5716:0xf0,_0x2c3aa4:0xd4,_0x3d2039:0x51,_0x2b8dd1:0x4b,_0x16ca18:0x1b1,_0x2838ba:0xdc,_0x352073:0xfd,_0x3633b8:0x10,_0x177203:0xf3,_0x439363:0x4f,_0x114f59:0x101,_0x149869:0xe0,_0x3c5b95:0x157,_0x132c35:0xdf,_0x4fa407:0x173,_0x39fd68:0x1d,_0x1b33d0:0x25,_0x4335fb:0x108,_0x6e00ca:0x9f,_0x1d4bde:0x10f,_0x17e697:0x16e,_0x286cf8:0x11a,_0xa3cb0b:0x3b,_0x1767b8:0x2,_0x206afa:0xa3,_0x222d4e:0xe2,_0x5d2aae:0xb5,_0x532de6:0xaa,_0x458658:0x143,_0x2bd3b:0xb1,_0x351041:0x98,_0x59031f:0x2c,_0x516586:0xbf,_0xb9eb8c:0xaa,_0x255d12:0x3,_0x7f352c:0xf,_0x108e60:0x16,_0x440b24:0x86,_0xbf1aa6:0x121,_0x1febd5:0x17c,_0x1448db:0x13a,_0x2cb7c8:0xaa,_0x27c2d6:0xf4,_0x1327b2:0xb4,_0x5b26f5:0x7d,_0x5341ad:0xd2,_0x43a3ce:0xef,_0x29766e:0x197,_0x311419:0x23,_0x458065:0x40},_0x1f354c={_0x26f23e:0xc9,_0x53205c:0x121,_0x5c4d41:0x1fb},_0x2763d7={_0x13a5ca:0x180};function _0x46041d(_0x3afc55,_0x1ee401,_0x13d049,_0x215881){return _0x379285(_0x3afc55-0xd5,_0x3afc55-0x5b3,_0x13d049-_0x2763d7._0x13a5ca,_0x215881);}function _0x20f632(_0x3b100e,_0xb3ef05,_0x182140,_0x5499ab){return _0x256f33(_0x182140,_0xb3ef05-0x12,_0x5499ab- -0x26f,_0x5499ab-0xb6);}return defineTool({'name':'AssignTask','description':'Delegates\x20a\x20task\x20to\x20another\x20agent\x20and\x20waits\x20for\x20completion','inputSchema':{'type':'object','properties':{'agentId':{'type':_0x46041d(0x4e1,0x58f,0x57f,_0xd0f9f8._0x245ec1)},'task':{'type':_0x46041d(0x4e1,_0xd0f9f8._0xbcfb98,_0xd0f9f8._0x619704,0x4ff)}},'required':[_0x20f632(_0xd0f9f8._0x51556b,_0xd0f9f8._0x336144,0xdf,0xbb),'task']},async *'execute'(_0x1c73bb,_0xd4b07d){const _0x4b58b0={_0x12665c:0x25a,_0x34914c:0x194},_0x5ef7e3={_0x2881ae:0x5a4},_0x3a6309={_0x3bce54:0x1cb,_0x3a33dc:0xc0},_0x2d6812=createDelegatedRunId(),_0x59ba52={'agentId':_0x1c73bb[_0x2430d1(-_0x1e683d._0x5ca5bb,-_0x1e683d._0x2f3f98,-0x19d,-0x75)],'parentSessionId':_0xd4b07d['sessionId'],'runId':_0x2d6812,..._0xd4b07d['toolCallId']!==void 0x0?{'toolCallId':_0xd4b07d[_0x2430d1(-_0x1e683d._0x219c80,-0xa3,-_0x1e683d._0x5657da,-_0x1e683d._0x5b3e41)]}:{}},_0x537c4f=getDelegatedAgentDefinition(_0x1202f8,_0x1c73bb['agentId']);if(!_0x537c4f)throw new ToolExecutionError(_0x2430d1(0x0,-_0x1e683d._0x13175d,0x99,-0x45)+_0x1c73bb['agentId'],{'agentId':_0x1c73bb[_0x11a455(_0x1e683d._0x5d2ab1,0x50,0x15e,_0x1e683d._0x84ef4)]});function _0x11a455(_0x457af5,_0xceae07,_0x14a58b,_0x3fbe3a){return _0x20f632(_0x457af5-_0x3a6309._0x3bce54,_0xceae07-_0x3a6309._0x3a33dc,_0xceae07,_0x457af5- -0xc);}const _0x363d6d=new Agent(await resolveDelegatedAgentOptions(_0x537c4f,_0x59ba52));let _0x1a37f4={'runId':_0x2d6812,'agentId':_0x1c73bb['agentId'],'sessionId':_0x363d6d[_0x11a455(_0x1e683d._0xf840f7,0xd8,_0x1e683d._0x342bec,_0x1e683d._0x24925a)],'status':_0x2430d1(-0xda,-0xce,-0x147,-_0x1e683d._0x33ec0e),'parentSessionId':_0xd4b07d[_0x2430d1(-0x58,-_0x1e683d._0x3e5716,-_0x1e683d._0x2c3aa4,_0x1e683d._0x3d2039)],..._0xd4b07d['toolCallId']!==void 0x0?{'originToolCallId':_0xd4b07d[_0x2430d1(-_0x1e683d._0x219c80,-0xc4,-_0x1e683d._0x2b8dd1,-0x17d)]}:{}};function _0x2430d1(_0x1be12e,_0x3eee41,_0x1deec1,_0x4b5050){return _0x46041d(_0x1be12e- -_0x5ef7e3._0x2881ae,_0x3eee41-0xe8,_0x1deec1-0x192,_0x3eee41);}const _0x473b20=new AbortController(),_0x761865=addAbortListener(_0xd4b07d[_0x11a455(0x108,0xc2,0x14a,0xa8)],()=>{const _0x53aa3b={_0x32cf31:0xea};function _0x5ab3ed(_0x1fed4e,_0x22bc59,_0x58b597,_0x4de07e){return _0x11a455(_0x4de07e- -_0x4b58b0._0x12665c,_0x22bc59,_0x58b597-0xce,_0x4de07e-_0x4b58b0._0x34914c);}function _0x5baf0b(_0xf50f84,_0x15289e,_0x2d6c79,_0x11dc55){return _0x11a455(_0x15289e-0x475,_0x2d6c79,_0x2d6c79-_0x53aa3b._0x32cf31,_0x11dc55-0x1a9);}_0x473b20[_0x5ab3ed(-0x190,-0x144,-_0x1f354c._0x26f23e,-_0x1f354c._0x53205c)](_0xd4b07d[_0x5ab3ed(-0x111,-_0x1f354c._0x5c4d41,-0x121,-0x152)]?.['reason']);});yield createToolOutput(_0x11a455(0x1ad,0x250,_0x1e683d._0x16ca18,0x120)+_0x1a37f4['runId']+'.',{'runId':_0x1a37f4[_0x2430d1(-0x7f,-_0x1e683d._0x2838ba,-_0x1e683d._0x352073,_0x1e683d._0x3633b8)],'agentId':_0x1a37f4[_0x11a455(_0x1e683d._0x5d2ab1,_0x1e683d._0x177203,0xe0,0x150)],'sessionId':_0x1a37f4[_0x2430d1(-0x58,0x27,-_0x1e683d._0x439363,-0xbf)],'status':_0x1a37f4[_0x11a455(_0x1e683d._0x114f59,_0x1e683d._0x149869,0x1a4,_0x1e683d._0x3c5b95)]});try{const _0x22a6f1=await _0x363d6d[_0x11a455(0xd5,_0x1e683d._0x132c35,_0x1e683d._0x4fa407,0x9d)](_0x1c73bb[_0x2430d1(-0x7d,-_0x1e683d._0x39fd68,-0xf,_0x1e683d._0x1b33d0)],{'signal':_0x473b20[_0x11a455(_0x1e683d._0x4335fb,0x173,0x18a,0x167)]});_0x1a37f4={..._0x1a37f4,'status':_0x22a6f1['status'],'result':_0x22a6f1};if(_0x22a6f1[_0x2430d1(-_0x1e683d._0x6e00ca,-0x85,-_0x1e683d._0x1d4bde,-0x7c)]!==_0x11a455(0x117,0x172,_0x1e683d._0x17e697,_0x1e683d._0x286cf8)){const _0x41b415=getRunTerminalErrorMessage(_0x22a6f1),_0x2969d4=formatAbortedRunMessage(_0x1a37f4[_0x2430d1(-0x7f,-0x7c,-_0x1e683d._0xa3cb0b,-_0x1e683d._0x1767b8)],_0x41b415);throw new ToolExecutionError(_0x2969d4,{...createRunSummary(_0x1a37f4),'aborted':!![],'errorMessage':_0x2969d4});}return createRunSummaryOutput(_0x1a37f4,_0x11a455(_0x1e683d._0x2c3aa4,0x168,_0x1e683d._0x206afa,_0x1e683d._0x222d4e)+_0x1a37f4[_0x11a455(0x121,0x19b,0x13a,0x127)]+'\x20completed.');}catch(_0x143442){if(_0x143442 instanceof ToolExecutionError)throw _0x143442;if(isAbortError(_0x143442)||_0x473b20[_0x11a455(0x108,0x143,0x62,_0x1e683d._0x5d2aae)][_0x11a455(_0x1e683d._0x532de6,_0x1e683d._0x458658,_0x1e683d._0x2bd3b,0x24)]||_0xd4b07d[_0x2430d1(-_0x1e683d._0x351041,-_0x1e683d._0x59031f,-0x104,-_0x1e683d._0x516586)][_0x11a455(_0x1e683d._0xb9eb8c,0x2a,0x14f,0x33)]){const _0x40c9f9=getRunTerminalErrorMessage(_0x1a37f4[_0x2430d1(_0x1e683d._0x255d12,-0xa6,0xa4,-_0x1e683d._0x7f352c)])??(_0x143442 instanceof Error?_0x143442[_0x2430d1(-0x3,-_0x1e683d._0x108e60,_0x1e683d._0x440b24,0x27)]:String(_0x143442)),_0x47aa53=formatAbortedRunMessage(_0x1a37f4[_0x11a455(_0x1e683d._0xbf1aa6,0x18d,_0x1e683d._0x1febd5,_0x1e683d._0x1448db)],_0x40c9f9);_0x1a37f4={..._0x1a37f4,'status':_0x11a455(_0x1e683d._0x2cb7c8,_0x1e683d._0x27c2d6,0x1,_0x1e683d._0x1327b2),'errorMessage':_0x47aa53};throw new ToolExecutionError(_0x47aa53,{...createRunSummary(_0x1a37f4),'aborted':!![],'errorMessage':_0x47aa53});}const _0x4344e9=getRunTerminalErrorMessage(_0x1a37f4['result'])??(_0x143442 instanceof Error?_0x143442[_0x11a455(0x19d,0x1ec,0x194,0x167)]:String(_0x143442))??_0x11a455(0xd4,0x157,0x58,_0x1e683d._0x5b26f5)+_0x1a37f4[_0x11a455(_0x1e683d._0xbf1aa6,_0x1e683d._0x5341ad,_0x1e683d._0x43a3ce,_0x1e683d._0x29766e)]+_0x11a455(0x18b,0xe1,0x1d0,0x120);_0x1a37f4={..._0x1a37f4,'status':_0x2430d1(0x2e,-_0x1e683d._0x311419,0x8,-_0x1e683d._0x458065),'errorMessage':_0x4344e9};throw new ToolExecutionError(_0x4344e9,{...createRunSummary(_0x1a37f4),'errorMessage':_0x4344e9});}finally{_0x761865();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x1eaeec){return[createAssignTaskTool(_0x1eaeec)];}function _0x2dbf(){const _0x885b49=['B2zM','lNrTCc4','C2vYDMvY','D2HPy2GGCMC','ody4oduYruPzAvbw','Dg9ju09tDhjPBMC','C2vYDMvYtMfTzq','ig1HDgnO','BMfTzq','B3jPz2LUvg9VBenHBgXjza','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLlG','B2XKvgv4Da','ywXS','BxrPBwu','rMLUzcb3B3jRC3bHy2uGzMLSzxmGBwf0y2HPBMCGysbNBg9IihbHDhrLCM4U','DxrMoa','ywDLBNrZ','yxnZAwDU','CMfUzg9T','ls1NBg9IpseUz2L0lYO','ChjLzML4','Cg9W','u2TPBgWGjW','ls1NBg9I','CgfYC2vjBNq','zMfPBgvK','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','te9dquXbufbeqvrb','u0Lhs0Lmta','BM93','y29TBwfUza','l3vZCI9SB2nHBc9IAw4VCMC','BwLU','ChvZAa','yxjYyxK','mJqZmdu0DwPdu1bZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','CMvZB2X2zq','DhLWzq','BMv3vgv4Da','Aw5KzxHpzG','C2TPBgXZ','yxv0BW','ugf0AcbPCYbUB3qGysbMAwXLoIa','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLigzPBguGy29UDgvUDhmU','CMvWBgfJzq','C3bSAxq','vMLLD2vKigLTywDLigzPBgu6ia','uMvHzcbHifvurI04ihrLEhqGzMLSzsbMCM9TihrOzsb3B3jRC3bHy2uUie9WDgLVBMfSBhKGC3bLy2LMEsbSAw5LihjHBMDLCY4','mc4WlJa','y29TBwfUzhm','BgvUz3rO','y3DK','zMLUywXnzxnZywDLvgv4Da','A2LSBgvK','y2XVC2u','y2XPzw50twv0ywrHDgfvCMW','Aw50zwDLCG','B25szwrPCMvJDa','v29YA2LUzYbKAxjLy3rVCNKGBM90igzVDw5KoIa','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','C29YDa','Dg9VBhm','rMLSzsbHChbLyxjZihrVigjLigjPBMfYEtOG','ywXSB3DLzfrVB2XZ','BhmGlwXH','BgLTAxq','C2HLBgXqyxrO','BwnWxW','D2HLCMuGCMC','ienHDxnLoIa','Aw1Hz2uVCg5N','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','ugf0AcbUB3qGzM91BMq6ia','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','D2LUmZi','rgv0ywLSoIa','zNvUy3rPB24','CMvSyxrPDMu','tuLnrtOG','y2XPzw50','Bw9Kzq','Aw5ZDhj1y3rPB25Z','ywjVCNrLza','y2XPzw50sw5MB3jTyxrPB24','BgLUzvn0yxj0','CMLWz3jLCa','lMPWzW','ywDLBNrjza','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','DhjHBNnWB3j0','C2vYDMvYCW','CgXHDgzVCM0','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','Aw5JBhvKzq','Dg9VBenHBgXjza','xg5DkJ8','AgvHzgvYCW','B2f1DgG','Dg9mB3DLCKnHC2u','ls1NBg9Ipq','zw5K','C3rKB3v0','Dhj1BMm','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','ugf0AcbPCYbVDxrZAwrLihDVCMTZCgfJztOG','tg9HzgvKigzYB206ia','AxnbCNjHEq','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','ig1Z','Aw1Hz2u','CNvUBMLUzW','C2HPzNq','zMLSDgvY','o1TExg5DkJ8','mZi2mZq2mfH6AgvKAa','yxv0Ag9YAxPHDgLVBL9JB2rL','Bg9HzenVBw1HBMq','l3vZCI9IAw4VCMC','yM9VBgvHBG','CMvXDwLYzwq','C3vIyxjYyxK','DhjPBuvUza','w1bFxL1BxhnCu10QpW','AxndB250zxH0','qwDLBNqGCNvUia','C2vUza','uhjVz3jHBuzPBgvZ','C2L6zq','lNDLyNa','CMvHC29U','Dg9Rzw5Z','yxv0Aa','tM8GC3vJAcbMAwXLig9YigrPCMvJDg9YEtOGjW','C3rYAw5N','CgfJA2fNzs5QC29U','Aw1Hz2uVD2vICa','y29UzMLN','ChjVCgvYDgLLCW','z2XVyG','rMLSzvjLywq','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4','zgvMyxvSDfrPBwvVDxrnCW','y29UBMvJDgLVBG','DgfZA2TPBgW','y2HHCKnVzgvbDa','y3jSzG','BgLZDfrVB2XZ','lMPZB24','Bg9JywXLq29TCgfYzq','CMvXDwvZDa','ihDHCYbHyM9YDgvKlG','Dg9Rzw4','zgf0yq','AxnbyNnVBhv0zq','yxjNDw1LBNriAw50','AwDUB3jL','AgLNAa','zgvZy3jPChrPB24','Bg9HzfnRAwXS','zgv0ywLS','tunqihnLCNzLCIa','BgLUzu51Bq','v29YA2LUzYbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5oIa','BwfW','ihjLCxvPCMvZignVBw1HBMqGzM9Yihn0zgLVihrYyw5ZCg9YDa','q29Tu3bLyW','r2XVyG','BgLUzvrLEhq','AwDUB3jLt3v0Chv0','C3rHDhvZ','rMLSzuvKAxq','yMvHCMvY','Aw5JBhvKzxm','ls1JB2X1Bw4','zw5HyMXLza','C3jJl2fNzw50l2fNzw50lNrZ','C2LNBMfS','CMCUzxHL','DgvZDa','B25Jzq','l29WDc9OB21LyNjLDY9IAw4VCMC','rwrPDcbHifvurI04ihrLEhqGzMLSzsbIEsbYzxbSywnPBMCGDgHLigzPCNn0igv4ywn0ihrLEhqGC2vNBwvUDc4','yxnJAwK','l3vZCI9IAw4VC2G','ls0T','y29UC3rYDwn0B3i','rMLSzu5LDW','AxneAxjLy3rVCNK','l2jPBI9ZAa','qxzHAwXHyMXLignVBw1HBMrZoG','DhjPBq','y29TCgXLDgvK','l3vZCI9IAw4VyMfZAa','zw50CMLLCW','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','C3jJl3nOyxjLzc90ExbLCY50CW','zgLZy292zxj5u3rHDgu','C3rKzxjY','ouLkr1PwyG','u0HfteW','Cgf0DgvYBIbPCYbYzxf1AxjLza','CNvUswq','zgLYBMfTzq','DgfZAW','Dg9VBfjLC3vSDhm','B3v0Chv0','y29UDgv4Da','ugfJA2fNzxm','B3jPz2LUywW','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDgvZDc50CW','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','DMvYAwzPzxi','zhj5uNvU','C291CMnL','C2v0','yxv0AfjLCxvPCMvK','mtC0odi0oeXfvKjJEa','lI4U','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbZBYb0AguGBw9KzwWGy2fUigLUC3bLy3qGAxrZihzPC3vHBcbJB250zw50lIbtDxbWB3j0CYbqtKCSiePqruCSifDLyLaSigfUzcbhsuyGAw1Hz2vZlIbvC2uGDgHPCYbMB3iGC2nYzwvUC2HVDhmSigrPywDYyw1ZlcbWAg90B3mSigfUzcbVDgHLCIbPBwfNzsbMAwXLCZSGDxnLiezPBgvszwfKigzVCIb0zxH0igzPBgvZlG','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','C3rHCNrZv2L0Aa','DgHLBG','C2XPy2u','C3jJl2zVCM1HDhmVChjVDMLKzxiTywrHChrLCNmUDhm','ywjVCNq','mxzOtwfPvW','CgLWzq','zgLZywjSzwq','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','z2v0','CgLK','mti1otK4nfnpBgTysa','vxnLihrOAxmGD2HLBIbHihrHC2SGBwf0y2HLCYbHBIbHDMfPBgfIBguGC2TPBgWGzgvZy3jPChrPB24U','lMDPzG','ru5pru5u','y29UBMvJDgvK','Aw1Hz2uVz2LM','zgvMyxvSDen3za','CgfYzw50u2vZC2LVBKLK','C2vZC2LVBKLK','BxrPBwvnCW','r0LgodLH','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ls1YzwDLEha','q29TBwfUzcaN','ls1OAwrKzw4','Dg9VBa','zw52','zxjYB3i','qMfZAa','lu5Vtg9NBW','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','AxntEw1IB2XPy0XPBMS','lMPWzwC','zMLUywXnzxnZywDL','AxngAwXL','y29KzvzLCMLMAwvY','tunqihrVB2WG','igj5DgvZ','y29UDgvUDa','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','AM9PBG','zgLYzwn0B3j5','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','yMLYDgH0Aw1L','zMLSzvbHDgG','lunVBw1HBMq','BNv2Aw4','Aw5WDxrty2HLBwe','rMLSzsb3CML0DgvUigf0ia','tNv2Aw4','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Cgf0Aa','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','nta2mZqWC2Hbwvvb','y29Uy2f0','A2LSBa','Ahr0Ca','uKLgrG','zxjYB3jnzxnZywDL','zxHPDcbJB2rLia','y2fSBgjHy2TvCMW','C3rVCMfNzurPCG','Bwf4','Dg9tDhjPBMC','nvzNuMrXsW','q29TBwfUzcbLEgL0zwqGD2L0AcbJB2rLia','yxjNCW','vMfSAwrHDgvKicHKCNKGCNvUoIbUBYb3CML0zsKU','mJfqzLH5qKe','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','DxbKyxrL','ndKXmdm0vMzhsxjy','y2f0y2G','qMvHCMvYia','Cgf0DgvYBG','AxngAw5PDgu','B2jQzwn0','ls1MB2XSB3C','y2fSBfrVB2W','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','wZ0+nY04kcLD','tgLUzsa','Agv4','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','igzHAwXLzc4','C3jJl2v4yw1WBgvZl2rLBw8UDhm','BgLUzuvUza','u2HLBgWGBM90igzVDw5KoIa','yMfZzty0','vMLLD0zPBgu','lw5i','rM91BMqG','BNvTyMvY','zMLSzq','AxrLBxm','B3rOzxi','C2nVCgvZ','AgfZ','C3jJl2fNzw50l2v4DgvUC2LVBI1YzwDPC3rYEs50CW','l2jPBI9IyxnO','Dgv4Da','zgLNzxn0','BwvZC2fNzq','zNjVBq','y29UBMvJDa','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','qxv0Ag9YAxPHDgLVBG','C3rYAw5NAwz5','CMvZDwX0','CMLWz3jLCcbMywLSzwq6ia','C3rHDgu','otzZsKfgvKK','AxnfCNjVCG','y29Kzq','Aw1Hz2uVANbLzW','CMvMCMvZAf90B2TLBG','DxjS','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','u3rHCNrLzcbHz2vUDcbYDw4G','vw5ZDxbWB3j0zwqGAw1Hz2uGzMLSztOG','yMfZzw5HBwu','Bg93','A2v5CW','twLJCM9ZB2z0','D3jPDgu','tg9HzfnRAwXS'];_0x2dbf=function(){return _0x885b49;};return _0x2dbf();}import*as _0x1583dd from'path';function buildDescription2(_0x44f5dc){const _0x4de9fe={_0x4baf3d:0x108,_0x1d4b6d:0x14d,_0x215711:0x1ef,_0x51f78a:0x275,_0x5f2017:0x231,_0x210db5:0x426,_0x1b15ca:0x3dc,_0x5da662:0x1ed,_0x2c83d1:0x204,_0x43847d:0x448,_0x4430ac:0x484},_0x42d3c6={_0x448af8:0x19d,_0x5e72b:0x272,_0x380c21:0xe8};if(_0x44f5dc[_0x2c1209(0x121,0x16f,_0x4de9fe._0x4baf3d,_0x4de9fe._0x1d4b6d)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x2c1209(_0x55a943,_0xeed7b,_0x2cc830,_0x2dcb22){return _0x379285(_0x55a943-_0x42d3c6._0x448af8,_0x2dcb22-_0x42d3c6._0x5e72b,_0x2cc830-_0x42d3c6._0x380c21,_0x2cc830);}const _0x3c3bfd=[_0x2c1209(_0x4de9fe._0x215711,_0x4de9fe._0x51f78a,_0x4de9fe._0x5f2017,0x218),_0x4d295a(0x457,0x45a,_0x4de9fe._0x210db5,_0x4de9fe._0x1b15ca),_0x2c1209(0x208,_0x4de9fe._0x5da662,0x1ba,_0x4de9fe._0x2c83d1),'Available\x20skills\x20(skill_name:\x20description):',..._0x44f5dc['map'](_0x3e2841=>'-\x20'+_0x3e2841[_0x2c1209(0x245,0x2d9,0x21f,0x280)]+':\x20'+_0x3e2841['description'])];function _0x4d295a(_0x18174e,_0x5da29e,_0x57aa57,_0x4ea9b3){return _0x379285(_0x18174e-0x14e,_0x57aa57-0x498,_0x57aa57-0x16d,_0x4ea9b3);}return _0x3c3bfd[_0x4d295a(0x47a,0x3bd,_0x4de9fe._0x43847d,_0x4de9fe._0x4430ac)]('\x0a');}function createLoadSkillTool(_0x50ca7a){const _0x2aa3c5={_0x51331c:0x94,_0x27bc83:0x6b,_0x350a0c:0x42e,_0x21356e:0x464,_0xc471ba:0x478,_0x1a9e8f:0x4f7,_0xf8efca:0x51d,_0x85a7a7:0x4c1,_0x282acb:0x595,_0x176caf:0x4ec,_0x419796:0x4fd,_0x5093f6:0x48e},_0xfd531f={_0x152c17:0x1fe,_0x15af96:0x297,_0x307e31:0x1ff,_0x10a264:0x19a,_0x557f2b:0x21f,_0x562d99:0x2f5,_0x399673:0xc4,_0x9caafc:0xdd,_0x36cb8f:0xa1,_0x2db11a:0x244,_0x493bb1:0x22f,_0xd36ec4:0x2f0,_0x13f4e7:0x5,_0x117e7a:0x5a,_0x22c3e2:0x65,_0x17231b:0x1d,_0xead245:0x46,_0x5945eb:0x28,_0x44ff4f:0x48,_0x426114:0x3b,_0x9f51b5:0x63,_0x439ce8:0x40,_0x2e3390:0x3c,_0x1e1770:0x25,_0x232094:0x1f1,_0x2d1b0c:0x206,_0x2d5e81:0x1d0,_0x4eb854:0x28c,_0x5eea0b:0x205,_0xff2b15:0x64,_0x5119cf:0xe9,_0x3dedaf:0x12a,_0xe708bf:0x197,_0x41e369:0xef,_0x221317:0x148,_0x4c0114:0x1f8,_0x25f0e7:0x196,_0x20cb0a:0x1d2,_0x5aa82c:0xb,_0x3b03b4:0x2f,_0x5c0169:0x98},_0x46523e={_0x260674:0x125},_0xf24e51={_0x58cf29:0x1d9,_0x566443:0x9a};function _0x1a58a3(_0x2a2cd8,_0x5eb572,_0x47accd,_0xdf4983){return _0x379285(_0x2a2cd8-_0xf24e51._0x58cf29,_0xdf4983- -_0xf24e51._0x566443,_0x47accd-0x39,_0x2a2cd8);}const _0x3561cf=new Map(_0x50ca7a[_0x1a58a3(-0x66,-0x109,-_0x2aa3c5._0x51331c,-_0x2aa3c5._0x27bc83)][_0x2c9237(_0x2aa3c5._0x350a0c,_0x2aa3c5._0x21356e,0x3e7,_0x2aa3c5._0xc471ba)](_0x5e7d92=>[_0x5e7d92[_0x2c9237(0x53b,0x526,0x4c7,0x52c)],_0x5e7d92])),_0xbaefd7=buildDescription2(_0x50ca7a['skills']);function _0x2c9237(_0x5b3e2d,_0x8e21ba,_0x108617,_0x2ec7b6){return _0x256f33(_0x2ec7b6,_0x8e21ba-0x1e,_0x8e21ba-0xee,_0x2ec7b6-_0x46523e._0x260674);}return defineTool({'name':_0x2c9237(_0x2aa3c5._0x1a9e8f,_0x2aa3c5._0xf8efca,0x55f,_0x2aa3c5._0x85a7a7),'description':_0xbaefd7,'inputSchema':{'type':_0x2c9237(_0x2aa3c5._0x282acb,_0x2aa3c5._0x176caf,0x4f6,_0x2aa3c5._0x419796),'properties':{'name':{'type':'string'}},'required':[_0x2c9237(0x4e9,0x526,0x574,_0x2aa3c5._0x5093f6)]},async *'execute'(_0x52369b){const _0x1db22f={_0x20653b:0x179,_0x4b7ff3:0x1a7},_0x388fb8={_0x160a54:0xf2},_0x197f69=_0x3561cf[_0x10035f(0x194,0x1c5,0x183,0x223)](_0x52369b[_0x10035f(_0xfd531f._0x152c17,0x244,_0xfd531f._0x15af96,_0xfd531f._0x307e31)]);function _0x10035f(_0x4a4fa8,_0x5b5e60,_0x1873ce,_0x5cb1fb){return _0x1a58a3(_0x5cb1fb,_0x5b5e60-_0x388fb8._0x160a54,_0x1873ce-0x120,_0x5b5e60-0x2d0);}if(!_0x197f69){const _0x41473e=Array[_0x10035f(0x2ac,0x225,_0xfd531f._0x10a264,0x1e6)](_0x3561cf['keys']())[_0x10035f(0x22d,0x1e6,_0xfd531f._0x557f2b,0x1db)](',\x20');throw new ToolExecutionError(_0x10035f(_0xfd531f._0x562d99,0x252,0x1e1,0x242)+_0x52369b[_0x4cdd22(0x85,_0xfd531f._0x399673,_0xfd531f._0x9caafc,_0xfd531f._0x36cb8f)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x41473e,{'name':_0x52369b[_0x10035f(0x20e,_0xfd531f._0x2db11a,_0xfd531f._0x493bb1,_0xfd531f._0xd36ec4)]});}function _0x4cdd22(_0x57d4cf,_0x3a176b,_0x148e1e,_0xda24e2){return _0x1a58a3(_0xda24e2,_0x3a176b-_0x1db22f._0x20653b,_0x148e1e-_0x1db22f._0x4b7ff3,_0x57d4cf-0x111);}const _0x56d4b3=await _0x50ca7a[_0x4cdd22(-0x42,_0xfd531f._0x13f4e7,-_0xfd531f._0x117e7a,-_0xfd531f._0x22c3e2)](_0x197f69),_0x355d32=_0x197f69[_0x4cdd22(-0xb,-_0xfd531f._0x17231b,_0xfd531f._0xead245,-0x57)][_0x4cdd22(_0xfd531f._0x5945eb,-_0xfd531f._0x44ff4f,_0xfd531f._0x426114,_0xfd531f._0x9f51b5)]??_0x1583dd[_0x4cdd22(-0x16,-_0xfd531f._0x439ce8,_0xfd531f._0x2e3390,-_0xfd531f._0x1e1770)](_0x197f69['source'][_0x10035f(0x28e,_0xfd531f._0x232094,_0xfd531f._0x2d1b0c,_0xfd531f._0x2d5e81)]),_0x21c780=['##\x20Skill:\x20'+_0x56d4b3[_0x10035f(0x226,0x244,_0xfd531f._0x4eb854,_0xfd531f._0x5eea0b)],'',_0x56d4b3[_0x4cdd22(-0x8f,-_0xfd531f._0xff2b15,-_0xfd531f._0x5119cf,-_0xfd531f._0x3dedaf)],'',_0x10035f(0x12f,_0xfd531f._0xe708bf,0x1c4,0x204),_0x10035f(_0xfd531f._0x41e369,_0xfd531f._0x221317,0x1d4,0x18c)+_0x197f69[_0x10035f(_0xfd531f._0x4c0114,0x1b4,0x1fa,0x175)][_0x10035f(_0xfd531f._0x25f0e7,0x1f1,_0xfd531f._0x20cb0a,0x298)],'Base\x20directory:\x20'+_0x355d32]['join']('\x0a');return yield createToolOutput(_0x21c780,{'id':_0x56d4b3['id'],'name':_0x56d4b3['name'],'path':_0x197f69[_0x4cdd22(-_0xfd531f._0x5aa82c,_0xfd531f._0x3b03b4,_0xfd531f._0x5c0169,-0x44)]['path'],'baseDirectory':_0x355d32}),void 0x0;}});}import{readFile as _0x161915,stat as _0x177acc}from'fs/promises';import*as _0x363047 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x379285(0x8b,0x30,0x17,0x3f),_0x256f33(0x386,0x3b0,0x36f,0x3ba),_0x256f33(0x3b7,0x41b,0x42b,0x461),_0x379285(-0xcf,-0x87,-0xd4,-0x44)]),PNG_SIGNATURE=Buffer[_0x379285(-0x56,-0x11,-0x9,0x82)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x1b0a41,_0x5c611b){const _0x80ed40={_0xfa31b4:0x151,_0x6c6c93:0x187,_0x592e46:0x193,_0x3e4d28:0x23d,_0x5e28ef:0x26d,_0x2c3346:0x25d,_0x23cd77:0x203,_0x18ac76:0x4b,_0x583f18:0x5,_0x23dc13:0x7c,_0x3d85ac:0xba,_0x530ba7:0x241,_0x21536d:0x1d7,_0x422163:0x21b,_0x580da5:0x189,_0x19f19a:0x1c5,_0x58fde5:0x2fa,_0x1c02f7:0x26b,_0x2ae7bb:0x114,_0xd2e5b:0xc4,_0xaa5ae6:0x26c,_0x2dcf55:0x1f2,_0x34c59f:0x1cf,_0x19e3de:0x16c,_0x1e11f6:0x23b,_0x20534e:0x1d4,_0x59c785:0x85,_0x195f3a:0x47,_0x51d87a:0x89,_0x3ef042:0x58,_0x3baf35:0x89,_0x5eeeae:0xd3,_0x530a16:0x1a4,_0x52052f:0x239,_0x1d93cb:0x1b9},_0x3fc258={_0x151e69:0x11f};if(_0x1b0a41['subarray'](0x0,0x8)['equals'](PNG_SIGNATURE))return _0x21dce8(0x1f1,_0x80ed40._0xfa31b4,_0x80ed40._0x6c6c93,_0x80ed40._0x592e46);if(_0x1b0a41[0x0]===0xff&&_0x1b0a41[0x1]===0xd8&&_0x1b0a41[0x2]===0xff)return _0x21dce8(0x256,0x344,_0x80ed40._0x3e4d28,0x29e);function _0x21dce8(_0x2e8fb2,_0x421484,_0x395c0c,_0x1c6b97){return _0x256f33(_0x395c0c,_0x421484-0x1c9,_0x1c6b97- -0x186,_0x1c6b97-0x168);}const _0x1f19ea=_0x1b0a41['subarray'](0x0,0x6)[_0x21dce8(_0x80ed40._0x5e28ef,0x1be,0x29d,0x26b)](_0x21dce8(0x1fa,_0x80ed40._0x2c3346,0x168,_0x80ed40._0x23cd77));if(_0x1f19ea==='GIF87a'||_0x1f19ea===_0x5bb3be(_0x80ed40._0x18ac76,-_0x80ed40._0x583f18,_0x80ed40._0x23dc13,_0x80ed40._0x3d85ac))return _0x21dce8(0x1d9,_0x80ed40._0x530ba7,_0x80ed40._0x21536d,0x23a);if(_0x1b0a41[_0x21dce8(_0x80ed40._0x422163,_0x80ed40._0x580da5,0x258,_0x80ed40._0x19f19a)](0x0,0x4)[_0x21dce8(0x297,0x1fd,_0x80ed40._0x58fde5,_0x80ed40._0x1c02f7)](_0x21dce8(0x1c1,0x175,0x236,0x203))===_0x5bb3be(_0x80ed40._0x2ae7bb,0xcf,0xa2,_0x80ed40._0xd2e5b)&&_0x1b0a41['subarray'](0x8,0xc)[_0x21dce8(0x1d6,_0x80ed40._0xaa5ae6,0x208,0x26b)](_0x21dce8(0x1b8,_0x80ed40._0x2dcf55,_0x80ed40._0x34c59f,0x203))==='WEBP')return _0x21dce8(_0x80ed40._0x19e3de,0x218,_0x80ed40._0x1e11f6,_0x80ed40._0x20534e);const _0x2208ce=_0x363047['extname'](_0x5c611b)[_0x5bb3be(_0x80ed40._0x59c785,-_0x80ed40._0x195f3a,-0x14,-0x7f)]();if(_0x2208ce==='.png')return'image/png';if(_0x2208ce===_0x5bb3be(_0x80ed40._0x51d87a,_0x80ed40._0x3ef042,-0x20,-0xd)||_0x2208ce===_0x5bb3be(0xd3,0x15,_0x80ed40._0x3baf35,_0x80ed40._0x5eeeae))return'image/jpeg';if(_0x2208ce===_0x21dce8(_0x80ed40._0x530a16,_0x80ed40._0x52052f,0x210,0x237))return _0x21dce8(0x266,0x26e,_0x80ed40._0x1d93cb,0x23a);function _0x5bb3be(_0x30d5ae,_0x57de9b,_0x180c30,_0x5e33fd){return _0x379285(_0x30d5ae-_0x3fc258._0x151e69,_0x180c30-0xe1,_0x180c30-0xab,_0x5e33fd);}if(_0x2208ce==='.webp')return _0x21dce8(0x244,0x1b2,0x25a,_0x80ed40._0x20534e);return void 0x0;}function normalizeDetail(_0x5d632c){const _0x46518b={_0x285f1e:0x1ab,_0x19cf82:0x240,_0x57b348:0x2b6,_0x5964cf:0x23c,_0x1fa0ba:0x224,_0xc032e9:0x2d0},_0x33a977={_0x3914ef:0x2d,_0x5179a3:0x167},_0x4afc35={_0x3417d4:0x2c,_0x5bad71:0x2a0};function _0x464b23(_0x585ef3,_0x11dfe8,_0x24f58c,_0x3e866a){return _0x379285(_0x585ef3-_0x4afc35._0x3417d4,_0x585ef3-_0x4afc35._0x5bad71,_0x24f58c-0x5b,_0x11dfe8);}function _0x4afda1(_0x5810a1,_0x10d362,_0x522220,_0x375587){return _0x256f33(_0x375587,_0x10d362-_0x33a977._0x3914ef,_0x522220-0xd5,_0x375587-_0x33a977._0x5179a3);}if(_0x5d632c===void 0x0)return void 0x0;const _0x48ed17=_0x5d632c['trim']()[_0x464b23(_0x46518b._0x285f1e,0x15d,_0x46518b._0x19cf82,0x115)]();if(!SUPPORTED_DETAILS[_0x464b23(0x289,_0x46518b._0x57b348,0x266,0x30d)](_0x48ed17))throw new ToolExecutionError(_0x464b23(_0x46518b._0x5964cf,_0x46518b._0x1fa0ba,_0x46518b._0xc032e9,0x20f)+_0x5d632c,{'detail':_0x5d632c});return _0x48ed17;}function createViewFileTool(_0x41588e={}){const _0x403a70={_0x42221c:0x2a6,_0x4a6c67:0x2f6,_0x189563:0x594,_0x2a2404:0x54b,_0x40ca88:0x504,_0x46263e:0x569,_0x3c4904:0x1ff,_0x2e9e5f:0x282,_0x424908:0x55a,_0x402d8e:0x5fe,_0x4fe735:0x4a3,_0x50cdd5:0x4b4,_0x3487fc:0x4dc,_0x31522c:0x254,_0x354f53:0x1e9,_0x3f8f0e:0x591,_0x49aabc:0x541,_0x2f74d8:0x521},_0x449640={_0x2edc37:0x383,_0x1f1baf:0x37e,_0x3653d3:0x228,_0x514a1f:0x2d7,_0x2af400:0x26f,_0x5a0aa3:0x2ff,_0x25deb2:0x32d,_0x4efd93:0x2cc,_0x348d08:0x77,_0x2e1741:0x3cf,_0x3d101a:0x67,_0x2ca8c1:0x71,_0x43a659:0x4b,_0x554f9f:0x20f,_0x270311:0x26d,_0x1fbfc7:0x20f,_0x43bcd3:0x2d2,_0xa80abd:0x28c,_0x507e92:0x2aa,_0x782af2:0x2b8,_0x46caec:0x21b,_0x32dd82:0x192,_0x26e4dc:0x1a2,_0x481258:0x21f,_0x54c565:0x199,_0x16a440:0x2f8,_0x59a13f:0x25e,_0x194319:0x2f1,_0x266f72:0xa5,_0x5346ea:0x1ea,_0x1233ee:0x2bb,_0x158c69:0x2a0,_0x365343:0x134,_0x2b8d6d:0x63,_0x48357a:0x7d,_0x499674:0x3c2,_0x70ea96:0x38f,_0x1ed00b:0xb6,_0x540e8f:0xee,_0x2f1bd1:0x3a8,_0x5bcdcb:0x251,_0x24292c:0xc2,_0x56432c:0xc1,_0x541dcc:0x34f,_0x4c7475:0x3cd,_0x3ada68:0x2be,_0x211cd7:0x14,_0x476c28:0x66,_0x532764:0x31},_0x47abd4={_0x22d389:0xc2,_0x79c50a:0x4c6,_0xd20844:0x1ba},_0x1309cc={_0x104f60:0x1a8,_0x4a0dfc:0x5ac};function _0x31763e(_0x435e1b,_0xcaa171,_0x94ff5c,_0x838665){return _0x256f33(_0x94ff5c,_0xcaa171-_0x1309cc._0x104f60,_0xcaa171- -_0x1309cc._0x4a0dfc,_0x838665-0x153);}const _0x516bff=_0x363047['resolve'](_0x41588e['defaultCwd']??process[_0x31763e(-0x269,-_0x403a70._0x42221c,-0x25e,-_0x403a70._0x4a6c67)]());function _0x46923b(_0x427f64,_0x3ce1be,_0x21a371,_0x1ddbab){return _0x256f33(_0x1ddbab,_0x3ce1be-0x183,_0x3ce1be-0x15c,_0x1ddbab-0x17c);}const _0x2806cd=_0x41588e['maxBytes']??DEFAULT_MAX_BYTES,_0x5b58de=_0x41588e[_0x46923b(0x58d,_0x403a70._0x189563,0x59c,_0x403a70._0x2a2404)]??_0x46923b(_0x403a70._0x40ca88,0x567,0x4f7,_0x403a70._0x46263e);return defineTool({'name':_0x5b58de,'description':_0x31763e(-0x221,-_0x403a70._0x3c4904,-_0x403a70._0x2e9e5f,-0x27b),'inputSchema':{'type':_0x46923b(0x50e,_0x403a70._0x424908,0x54f,_0x403a70._0x402d8e),'properties':{'path':{'type':_0x46923b(_0x403a70._0x4fe735,_0x403a70._0x50cdd5,_0x403a70._0x3487fc,0x480)},'detail':{'type':_0x31763e(-0x253,-_0x403a70._0x31522c,-0x2be,-_0x403a70._0x354f53)}},'required':[_0x46923b(_0x403a70._0x3f8f0e,_0x403a70._0x49aabc,0x5ad,_0x403a70._0x2f74d8)]},async *'execute'(_0x2aa89f){const _0x1e68b3={_0x472be2:0x1bd},_0x48ba46=resolveWorkspacePath(_0x516bff,_0x2aa89f[_0x2e9141(_0x449640._0x2edc37,0x2ff,_0x449640._0x1f1baf,0x3a4)]);await assertWorkspaceFile(_0x48ba46);const _0x54b400=await _0x177acc(_0x48ba46);if(_0x54b400['size']>_0x2806cd)throw new ToolExecutionError(_0x2e9141(0x2a1,_0x449640._0x3653d3,_0x449640._0x514a1f,_0x449640._0x2af400)+_0x2aa89f[_0x2e9141(0x36e,_0x449640._0x5a0aa3,_0x449640._0x25deb2,_0x449640._0x4efd93)],{'path':_0x2aa89f['path'],'maxBytes':_0x2806cd,'size':_0x54b400[_0x1cdf65(-0xe,0x12,-_0x449640._0x348d08,-0x22)]});function _0x2e9141(_0x2c7713,_0x4e3a7c,_0x350358,_0x251a6f){return _0x31763e(_0x2c7713-_0x47abd4._0x22d389,_0x4e3a7c-_0x47abd4._0x79c50a,_0x251a6f,_0x251a6f-_0x47abd4._0xd20844);}const _0x5f300e=await _0x161915(_0x48ba46),_0x172bff=detectImageMediaType(_0x5f300e,_0x48ba46);if(!_0x172bff)throw new ToolExecutionError(_0x2e9141(_0x449640._0x2e1741,0x343,0x397,0x3ec)+_0x2aa89f[_0x1cdf65(_0x449640._0x3d101a,0x8d,0x6f,_0x449640._0x2ca8c1)],{'path':_0x2aa89f[_0x1cdf65(0x61,0x98,0x10f,0x71)],'supported':['.gif','.jpeg',_0x1cdf65(-0x14,-0xd4,-0xf4,-_0x449640._0x43a659),'.png',_0x2e9141(_0x449640._0x554f9f,_0x449640._0x270311,0x28c,_0x449640._0x1fbfc7)]});const _0x4bf582=normalizeDetail(_0x2aa89f[_0x2e9141(_0x449640._0x43bcd3,_0x449640._0xa80abd,_0x449640._0x507e92,0x250)]);function _0x1cdf65(_0x19b490,_0x97f0cf,_0x4038e2,_0x471385){return _0x46923b(_0x19b490-0x10e,_0x471385- -0x4d0,_0x4038e2-_0x1e68b3._0x472be2,_0x4038e2);}const _0x4727f0=[_0x2e9141(_0x449640._0x782af2,_0x449640._0x46caec,_0x449640._0x32dd82,_0x449640._0x26e4dc)+_0x2aa89f[_0x2e9141(0x2e7,_0x449640._0x5a0aa3,0x33e,0x365)],_0x2e9141(_0x449640._0x481258,0x23b,0x1d4,_0x449640._0x54c565)+_0x172bff,'Size:\x20'+_0x54b400[_0x2e9141(0x24a,0x26c,0x243,_0x449640._0x16a440)]+_0x2e9141(_0x449640._0x59a13f,_0x449640._0x194319,0x383,0x399)][_0x1cdf65(-0x1e,_0x449640._0x266f72,0x50,0x74)](_0x4bf582?[_0x2e9141(_0x449640._0x3653d3,0x238,_0x449640._0x5346ea,0x259)+_0x4bf582]:[])['join']('\x0a'),_0x2632e0=[{'type':_0x2e9141(_0x449640._0x1233ee,0x25a,_0x449640._0x158c69,0x2d6),'source':{'type':_0x1cdf65(0x46,_0x449640._0x365343,-0x9,0x96),'media_type':_0x172bff,'data':_0x5f300e[_0x1cdf65(0x5e,0xe6,_0x449640._0x2b8d6d,_0x449640._0x48357a)](_0x2e9141(_0x449640._0x499674,0x324,0x283,_0x449640._0x70ea96))}},{'type':_0x1cdf65(_0x449640._0x1ed00b,0x149,_0x449640._0x540e8f,0xa2),'text':_0x4727f0}];return yield createToolOutput(_0x4727f0,{'path':_0x2aa89f[_0x2e9141(_0x449640._0x2f1bd1,_0x449640._0x5a0aa3,0x322,_0x449640._0x5bcdcb)],'resolvedPath':_0x48ba46,'created':_0x54b400['birthtime'][_0x1cdf65(0x1c,_0x449640._0x24292c,0x29,_0x449640._0x56432c)](),'modified':_0x54b400['mtime'][_0x2e9141(0x339,_0x449640._0x541dcc,_0x449640._0x4c7475,_0x449640._0x3ada68)](),'size':_0x54b400[_0x1cdf65(-_0x449640._0x211cd7,-_0x449640._0x476c28,_0x449640._0x532764,-0x22)],'mimeType':_0x172bff,'encoding':_0x1cdf65(0x100,0x5f,0xee,0x96),..._0x4bf582?{'detail':_0x4bf582}:{}},_0x2632e0),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createToolOutput,createViewFileTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveWorkspacePath,search,toNuvinToolSchema,validateToolInput};
|
|
1
|
+
(function(_0x514e06,_0x52f6db){const _0x306596={_0xcb70ff:0x366,_0x11c127:0x270,_0x319ab8:0x27f,_0x189eda:0x39d,_0x1e7057:0x4d,_0x1d9c66:0x8f,_0x5d7200:0x41,_0x364b3:0x221,_0x455c6d:0x228,_0x23f115:0x89,_0xe7af99:0x7b,_0x122e0f:0xb9,_0x2db421:0x212,_0x3bb3be:0x201,_0x256fb8:0x29a,_0x2c24e3:0x2e,_0x128441:0x2c,_0xfcfd5a:0x276,_0x51ea62:0x2a4,_0x1f04e2:0x1c5,_0x1223c9:0xce,_0x474430:0x33,_0x43c008:0x16},_0x225f01={_0x5ecf1a:0x15c};function _0x25ca45(_0x1be65e,_0x205e78,_0x407821,_0x35f7c5){return _0x4629(_0x205e78- -_0x225f01._0x5ecf1a,_0x35f7c5);}const _0x21899a=_0x514e06();function _0x388134(_0x3e78c9,_0x5f5aa5,_0x43c249,_0x303e89){return _0x4629(_0x5f5aa5- -0x255,_0x303e89);}while(!![]){try{const _0x285259=-parseInt(_0x25ca45(_0x306596._0xcb70ff,_0x306596._0x11c127,_0x306596._0x319ab8,_0x306596._0x189eda))/0x1+-parseInt(_0x25ca45(-_0x306596._0x1e7057,_0x306596._0x1d9c66,0xcf,-0x6c))/0x2+parseInt(_0x388134(0xc7,-_0x306596._0x5d7200,0xd0,-0x5a))/0x3+-parseInt(_0x388134(_0x306596._0x364b3,0x14c,_0x306596._0x455c6d,_0x306596._0x23f115))/0x4*(-parseInt(_0x388134(-_0x306596._0xe7af99,-0x74,-0x16d,_0x306596._0x122e0f))/0x5)+parseInt(_0x25ca45(0x2c0,0x2d9,_0x306596._0x2db421,0x433))/0x6*(-parseInt(_0x25ca45(_0x306596._0x3bb3be,0x272,_0x306596._0x256fb8,0x184))/0x7)+parseInt(_0x388134(-_0x306596._0x2c24e3,-0x20,0x4b,-_0x306596._0x128441))/0x8+-parseInt(_0x25ca45(_0x306596._0xfcfd5a,0x253,_0x306596._0x51ea62,_0x306596._0x1f04e2))/0x9*(parseInt(_0x388134(_0x306596._0x1223c9,-_0x306596._0x474430,-_0x306596._0x43c008,-0x127))/0xa);if(_0x285259===_0x52f6db)break;else _0x21899a['push'](_0x21899a['shift']());}catch(_0x3b054b){_0x21899a['push'](_0x21899a['shift']());}}}(_0x3a2b,0xa984e));import{Agent,ToolExecutionError,ToolRegistry,createInternalToolRuntime,createToolOutput,defineTool,deriveFinalToolOutput,normalizeToolOutputValue,validateToolInput}from'../chunk-HRU363DY.js';import{getTextFromMessage}from'../chunk-QDOE7NWO.js';import'../chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';import{fileURLToPath}from'url';import{readFile}from'fs/promises';import{pathToFileURL}from'url';import{createMessageConnection,StreamMessageReader,StreamMessageWriter}from'vscode-jsonrpc/node.js';import _0x4eace7 from'path';var EXTENSION_TO_LANGUAGE={'.ts':_0x211934(0x341,0x499,0x3d3,0x204),'.tsx':_0x4820c3(0x6fd,0x7e1,0x84f,0x715),'.js':_0x4820c3(0x4ff,0x61a,0x59a,0x642),'.jsx':_0x4820c3(0x66c,0x5ce,0x6e2,0x65d),'.mjs':_0x211934(0x3f6,0x3e8,0x437,0x488),'.cjs':'javascript','.mts':_0x4820c3(0x5e0,0x4df,0x531,0x58d),'.cts':_0x211934(0x341,0x3de,0x3bd,0x419),'.json':_0x4820c3(0x5bd,0x4ca,0x5b5,0x602),'.jsonc':_0x211934(0x4af,0x3fe,0x41b,0x4d8)};function getLanguageId(_0x1beb6a){const _0x1d0a0f={_0x10bb92:0x81,_0x1a157a:0x6a},_0x3b7822={_0x57a10d:0x4bf,_0x27e527:0x169};function _0x4c0244(_0x1f5beb,_0x11f427,_0x415439,_0x14949e){return _0x211934(_0x11f427- -_0x3b7822._0x57a10d,_0x11f427-0x40,_0x14949e,_0x14949e-_0x3b7822._0x27e527);}return EXTENSION_TO_LANGUAGE[_0x4eace7['extname'](_0x1beb6a)[_0x4c0244(_0x1d0a0f._0x10bb92,_0x1d0a0f._0x1a157a,-0x88,-0x5b)]()];}var DEFAULT_DIAGNOSTICS_TIMEOUT_MS=0x3e8;function uriForPath(_0x662931){const _0xf1ef80={_0x410618:0x195,_0x466a40:0x39};function _0x404708(_0x1f89ab,_0x47bfc2,_0x51ea30,_0x31a2d1){return _0x211934(_0x51ea30- -0x1e5,_0x47bfc2-_0xf1ef80._0x410618,_0x31a2d1,_0x31a2d1-_0xf1ef80._0x466a40);}return pathToFileURL(_0x662931)[_0x404708(0x2bc,0x3e2,0x2b1,0x3ec)]();}function textDocumentPosition(_0x20eea4){const _0x29f814={_0x5637f1:0x2bc,_0x2e2c7e:0x4f5,_0x4dd4c7:0x374,_0x3705ba:0x3a9,_0x88179:0x2a8},_0x1b1bcb={_0x344fb8:0x88,_0x56f94f:0x102},_0x37c327={_0x3644f7:0x10d,_0x21f260:0x148,_0x3c2c79:0x3b4};function _0x4e41be(_0x57bbc9,_0x1a38a9,_0x22d57c,_0x44b5ff){return _0x4820c3(_0x57bbc9-_0x37c327._0x3644f7,_0x1a38a9-_0x37c327._0x21f260,_0x57bbc9,_0x22d57c- -_0x37c327._0x3c2c79);}function _0x57e4c2(_0x4bd763,_0x50e14b,_0x1e556e,_0x387097){return _0x211934(_0x387097-_0x1b1bcb._0x344fb8,_0x50e14b-0xd7,_0x50e14b,_0x387097-_0x1b1bcb._0x56f94f);}return{'textDocument':{'uri':uriForPath(_0x20eea4[_0x4e41be(0x218,0x31a,_0x29f814._0x5637f1,0x164)])},'position':{'line':_0x20eea4[_0x57e4c2(0x6f8,_0x29f814._0x2e2c7e,0x713,0x5dc)],'character':_0x20eea4[_0x4e41be(0x2f6,_0x29f814._0x4dd4c7,_0x29f814._0x3705ba,_0x29f814._0x88179)]}};}function normalizeLocations(_0x599f0b){const _0x55b16a={_0x4315f6:0x721,_0x31281c:0x694};if(!_0x599f0b)return[];function _0x4ebd27(_0x1cb1e2,_0x4ff23b,_0x458540,_0x30e945){return _0x211934(_0x30e945-0x24c,_0x4ff23b-0x64,_0x458540,_0x30e945-0x6e);}return Array[_0x4ebd27(0x79e,0x76e,_0x55b16a._0x4315f6,_0x55b16a._0x31281c)](_0x599f0b)?_0x599f0b:[_0x599f0b];}async function createLspClient(_0x4a0e3b){const _0x18bc27={_0x3c2a6f:0x5c7,_0x3d7cb4:0x67f,_0x187045:0xcc,_0x1ea673:0x14c,_0x478aa0:0x58,_0x1528bb:0x31,_0x589406:0xf5,_0x548f35:0x1dd,_0x53f367:0xc6,_0x2c897d:0x1a2,_0x5daf89:0x220,_0x1d47df:0xa7,_0x26684f:0x12,_0x4b7431:0x4ea,_0x543ee6:0x4a0,_0x4d3016:0x5ee,_0x50c9e6:0x64f,_0x50b514:0x633,_0x1dc087:0x64e,_0x27a990:0x6ab,_0x3e67cd:0x4f8,_0xaeac60:0x7f2,_0x13a42e:0x6c0,_0x36f087:0x6d2,_0x10f7e7:0x5d3,_0x16af8e:0x4c9,_0x3ad80f:0x69f,_0x10a3f0:0x60a},_0x401150={_0x7e71fb:0x2b},_0x5d200e={_0x3e31d4:0x55a,_0x4c1136:0x480,_0x250301:0x2c1,_0x2be181:0x326,_0x32a167:0x60b,_0x50211f:0x341,_0x462ff7:0x3e4,_0x49e1aa:0x3e2,_0x1b8a0e:0x4e7,_0x2d61fc:0x56c},_0x5ef37b={_0x249fd1:0x13e,_0x35ac54:0x215},_0x44c576={_0x369c7c:0x30a},_0x421833={_0x5515f1:0x543},_0x1649cc={_0x228948:0x43,_0x3a51d0:0xbe},_0x4b2d3a={_0x3b4f4b:0x11e,_0x390e3f:0x66,_0x4a8b99:0xb2,_0x1da680:0xae,_0x488259:0x1f7},_0x5775fc={_0x57ef76:0x1ec,_0xb528d6:0x118},_0x57fc04={_0x36ded2:0x581},_0x27b6bc={_0x54a632:0x315,_0x550d61:0x364},_0x2f38d5={_0x5a635c:0x4c9},_0x490cf4={_0x13cc89:0x301,_0x3b05a2:0x3a6,_0x44ca2d:0x1ab},_0x452640={_0x421461:0x1b4,_0x530d84:0x545},_0x4c2efb={_0x193147:0x6e},_0x4d5b2d={_0x468081:0x43c,_0x32e681:0x4e6},_0x4c2c7b={_0x423104:0x6,_0x54e1b9:0xd5},_0x2360d9={_0x26e222:0x3d6,_0x440403:0x3ff,_0x30e697:0x311},_0x1eb68f={_0x332f58:0x8d},_0x35ba69={_0x5f123f:0x229,_0x259d98:0x270,_0x495fe7:0x189},_0x287234={_0x3dc733:0xea,_0x17f583:0x29,_0x2c2e3d:0x157},_0x413a00={_0x6b32b8:0x139,_0x51bdf0:0x1b4},_0x57d83f={_0x296978:0x282,_0x4cae39:0x1c4,_0x3f097f:0x93,_0x5d383c:0xb8,_0x4fcb76:0x48,_0x4cc3de:0x156},_0x2e62aa={_0x232683:0x22d,_0x38af76:0x292,_0x22f514:0x440,_0x31fb27:0x49b,_0x52d05a:0x366,_0x3fdd4c:0x64,_0x5c35fb:0xff,_0x3fa566:0x389,_0x392fae:0xfe},_0x374d40={_0x2b8e5b:0xc,_0x1ae141:0x19e,_0x21dfc9:0x1c9},_0x2f1b18={_0x220155:0x1a4,_0x59023b:0x7b},_0x31c35d=_0x4a0e3b['handle'][_0x3d439f(0x716,_0x18bc27._0x3c2a6f,0x6e3,_0x18bc27._0x3d7cb4)][_0x3f6af3(-0xef,_0x18bc27._0x187045,_0x18bc27._0x1ea673,_0x18bc27._0x478aa0)],_0x36c067=_0x4a0e3b['handle']['process'][_0x3f6af3(-0xce,-_0x18bc27._0x1528bb,_0x18bc27._0x589406,0x1)];if(!_0x31c35d||!_0x36c067)throw new Error('LSP\x20server\x20process\x20must\x20expose\x20stdout\x20and\x20stdin\x20streams');const _0x52eff2=createMessageConnection(new StreamMessageReader(_0x31c35d),new StreamMessageWriter(_0x36c067)),_0x226a79=new Map(),_0x3fd8ca=new Map();function _0x3d439f(_0x3ae4d4,_0x591a33,_0x3e6005,_0x29b873){return _0x211934(_0x29b873-0x280,_0x591a33-_0x2f1b18._0x220155,_0x3ae4d4,_0x29b873-_0x2f1b18._0x59023b);}let _0xfbfd5e=![];_0x52eff2[_0x3f6af3(_0x18bc27._0x548f35,_0x18bc27._0x53f367,0x86,_0x18bc27._0x2c897d)]('textDocument/publishDiagnostics',_0x2b9bed=>{const _0x302e9a={_0x1dd993:0x14e,_0x14ffaf:0x1a2};_0x226a79['set'](_0x2b9bed[_0x3528c6(_0x2e62aa._0x232683,_0x2e62aa._0x38af76,_0x2e62aa._0x22f514,0x314)],_0x2b9bed[_0x3528c6(_0x2e62aa._0x31fb27,0x4dc,_0x2e62aa._0x52d05a,0x3d2)]);const _0x20a6fa=_0x3fd8ca[_0x1ffd5e(-_0x2e62aa._0x3fdd4c,-0x6a,0xf0,-_0x2e62aa._0x5c35fb)](_0x2b9bed[_0x3528c6(0x244,0x1f6,_0x2e62aa._0x3fa566,0x314)]);if(!_0x20a6fa)return;function _0x1ffd5e(_0x17ba0a,_0x4c5a12,_0x40ecd1,_0x3784f9){return _0x3f6af3(_0x17ba0a-_0x302e9a._0x1dd993,_0x40ecd1,_0x40ecd1-_0x302e9a._0x14ffaf,_0x17ba0a- -0x193);}_0x3fd8ca[_0x1ffd5e(0x27,0x156,-0x3a,_0x2e62aa._0x392fae)](_0x2b9bed['uri']);function _0x3528c6(_0x37830f,_0x17205c,_0x25f522,_0x24514e){return _0x3f6af3(_0x37830f-_0x374d40._0x2b8e5b,_0x17205c,_0x25f522-_0x374d40._0x1ae141,_0x24514e-_0x374d40._0x21dfc9);}for(const _0x207d10 of _0x20a6fa)_0x207d10();}),_0x52eff2['listen']();const _0x212524=await _0x52eff2[_0x3f6af3(0x11a,0x10d,0x27b,_0x18bc27._0x5daf89)]('initialize',{'processId':process['pid'],'rootUri':uriForPath(_0x4a0e3b[_0x3f6af3(_0x18bc27._0x1d47df,-0xe0,-0xac,_0x18bc27._0x26684f)]),'workspaceFolders':[{'uri':uriForPath(_0x4a0e3b[_0x3d439f(0x6ff,_0x18bc27._0x4b7431,0x5e3,0x638)]),'name':_0x4a0e3b[_0x3d439f(0x664,0x500,_0x18bc27._0x543ee6,_0x18bc27._0x4d3016)]['id']}],'initializationOptions':_0x4a0e3b[_0x3d439f(0x5ae,0x554,0x62a,0x66e)][_0x3d439f(_0x18bc27._0x50c9e6,_0x18bc27._0x50b514,0x650,_0x18bc27._0x1dc087)]??{},'capabilities':{'textDocument':{'callHierarchy':{'dynamicRegistration':![]},'definition':{'dynamicRegistration':![]},'hover':{'dynamicRegistration':![],'contentFormat':['markdown',_0x3d439f(0x73f,_0x18bc27._0x27a990,_0x18bc27._0x3e67cd,0x5ea)]},'implementation':{'dynamicRegistration':![]},'references':{'dynamicRegistration':![]},'synchronization':{'didSave':!![],'dynamicRegistration':![],'willSave':![]}},'workspace':{'symbol':{'dynamicRegistration':![]},'workspaceFolders':!![]}}});_0x52eff2['sendNotification'](_0x3d439f(_0x18bc27._0xaeac60,0x81e,_0x18bc27._0x13a42e,_0x18bc27._0x36f087),{});const _0x20dc2e={'serverId':_0x4a0e3b[_0x3d439f(_0x18bc27._0x10f7e7,0x5eb,_0x18bc27._0x16af8e,0x5ee)]['id'],'root':_0x4a0e3b['root'],'connection':_0x52eff2,'diagnostics':_0x226a79,'capabilities':_0x212524[_0x3d439f(_0x18bc27._0x3ad80f,0x58a,0x607,_0x18bc27._0x10a3f0)]??{},'notify':{async 'open'({path:_0x6b0311}){const _0x18d004={_0x40b27f:0x1c};function _0x2002c5(_0x4d2bdf,_0x4daa8c,_0x24a3e9,_0x4313fe){return _0x3d439f(_0x4313fe,_0x4daa8c-_0x18d004._0x40b27f,_0x24a3e9-0x1d5,_0x24a3e9- -0x5a2);}function _0x31420a(_0x4fb346,_0x2dc3c9,_0x17f7e7,_0xfb60ae){return _0x3d439f(_0x17f7e7,_0x2dc3c9-0x8b,_0x17f7e7-0x18f,_0x2dc3c9- -0x684);}const _0x5092da=await readFile(_0x6b0311,_0x2002c5(0x120,_0x57d83f._0x296978,_0x57d83f._0x4cae39,_0x57d83f._0x3f097f));_0x52eff2['sendNotification']('textDocument/didOpen',{'textDocument':{'uri':uriForPath(_0x6b0311),'languageId':getLanguageId(_0x6b0311)??_0x2002c5(-0x31,_0x57d83f._0x5d383c,_0x57d83f._0x4fcb76,_0x57d83f._0x4cc3de),'version':0x1,'text':_0x5092da}});},async 'change'({path:_0x3a6571,version:_0x4608da}){const _0x5d6175=await readFile(_0x3a6571,'utf8');function _0x196d1(_0x4aba10,_0x12caa7,_0x7e1392,_0x5c9153){return _0x3d439f(_0x5c9153,_0x12caa7-_0x413a00._0x6b32b8,_0x7e1392-_0x413a00._0x51bdf0,_0x7e1392- -0x780);}_0x52eff2['sendNotification'](_0x196d1(_0x287234._0x3dc733,_0x287234._0x17f583,-0x10,-_0x287234._0x2c2e3d),{'textDocument':{'uri':uriForPath(_0x3a6571),'version':_0x4608da},'contentChanges':[{'text':_0x5d6175}]});},async 'close'({path:_0x4024e8}){const _0x54bbe0={_0x1efe34:0x15e,_0x534120:0x52,_0xd1b074:0x135};function _0x5d57ad(_0x4f25a0,_0x506051,_0x123bf1,_0x1a95bc){return _0x3f6af3(_0x4f25a0-_0x54bbe0._0x1efe34,_0x123bf1,_0x123bf1-_0x54bbe0._0x534120,_0x4f25a0-_0x54bbe0._0xd1b074);}_0x52eff2['sendNotification'](_0x5d57ad(_0x35ba69._0x5f123f,_0x35ba69._0x259d98,0x224,_0x35ba69._0x495fe7),{'textDocument':{'uri':uriForPath(_0x4024e8)}});}},'request':{async 'definition'(_0x3581f2){function _0x508f54(_0x5b7199,_0xbeb9c8,_0x32051b,_0x2a97fe){return _0x3f6af3(_0x5b7199-_0x1eb68f._0x332f58,_0x5b7199,_0x32051b-0x4e,_0x2a97fe-0xf1);}return normalizeLocations(await _0x52eff2[_0x508f54(0x381,_0x2360d9._0x26e222,_0x2360d9._0x440403,_0x2360d9._0x30e697)]('textDocument/definition',textDocumentPosition(_0x3581f2)));},async 'references'(_0x503c40){const _0x424797={_0x1ba352:0x1ad};function _0x258e70(_0x537950,_0x133d3a,_0x3d7241,_0x20bfb3){return _0x3f6af3(_0x537950-0x56,_0x537950,_0x3d7241-0x53,_0x133d3a- -0x15);}function _0x3df115(_0x100a34,_0x8dec00,_0x26b730,_0x264909){return _0x3d439f(_0x8dec00,_0x8dec00-0x1be,_0x26b730-0x22,_0x26b730- -_0x424797._0x1ba352);}return normalizeLocations(await _0x52eff2[_0x3df115(0x7f1,0x67c,0x699,0x7b8)](_0x258e70(_0x4c2c7b._0x423104,_0x4c2c7b._0x54e1b9,0x1cb,0xe8),{...textDocumentPosition(_0x503c40),'context':{'includeDeclaration':!![]}}));},async 'hover'(_0x5328bd){const _0x816749={_0x3873de:0x4a};function _0x4a8457(_0x4f4dce,_0x9b4562,_0x33397a,_0x590fea){return _0x3f6af3(_0x4f4dce-0x174,_0x33397a,_0x33397a-_0x816749._0x3873de,_0x9b4562-0x21c);}return await _0x52eff2[_0x4a8457(0x39f,_0x4d5b2d._0x468081,0x594,_0x4d5b2d._0x32e681)]('textDocument/hover',textDocumentPosition(_0x5328bd))??null;},async 'documentSymbol'(_0x5009d9){function _0x222edd(_0x17b785,_0x129b97,_0x2b7c54,_0x39b534){return _0x3f6af3(_0x17b785-_0x4c2efb._0x193147,_0x17b785,_0x2b7c54-0x84,_0x39b534-0xc0);}function _0x1aeccd(_0x1dd81c,_0x52d842,_0x4c1bd1,_0x359037){return _0x3d439f(_0x359037,_0x52d842-_0x452640._0x421461,_0x4c1bd1-0x1ed,_0x52d842- -_0x452640._0x530d84);}return await _0x52eff2[_0x1aeccd(0x2fe,_0x490cf4._0x13cc89,_0x490cf4._0x3b05a2,0x279)](_0x1aeccd(0x13a,_0x490cf4._0x44ca2d,0x297,0x2bc),{'textDocument':{'uri':uriForPath(_0x5009d9)}})??[];},async 'workspaceSymbol'(_0x381dbc){const _0x5c74f1={_0x38b8a6:0x4c0};function _0x4348bb(_0x488548,_0xaf9eac,_0x244855,_0x37f4bd){return _0x3d439f(_0x37f4bd,_0xaf9eac-0xc8,_0x244855-0xd3,_0x244855- -_0x5c74f1._0x38b8a6);}function _0xa9c298(_0x57f726,_0x2bab4f,_0x5232c3,_0x5deab5){return _0x3d439f(_0x5deab5,_0x2bab4f-0xb8,_0x5232c3-0x1ab,_0x57f726- -0x506);}return await _0x52eff2[_0x4348bb(0x249,0x29c,0x386,_0x2f38d5._0x5a635c)](_0xa9c298(0x135,0x250,0x138,0x283),{'query':_0x381dbc})??[];},async 'implementation'(_0x8a65c3){const _0x29f19e={_0x3bd517:0x98,_0xac1574:0x4e2};function _0x56242c(_0x4ada40,_0x54e67a,_0x38d318,_0x1a7e02){return _0x3d439f(_0x38d318,_0x54e67a-_0x29f19e._0x3bd517,_0x38d318-0x1eb,_0x1a7e02- -_0x29f19e._0xac1574);}return normalizeLocations(await _0x52eff2[_0x56242c(_0x27b6bc._0x54a632,0x4b0,0x386,_0x27b6bc._0x550d61)]('textDocument/implementation',textDocumentPosition(_0x8a65c3)));},async 'prepareCallHierarchy'(_0x2c073){const _0x5adcf8={_0x45c975:0x1c,_0x58a8dd:0x360};function _0x4c2bca(_0xad8d67,_0x57a3c4,_0xc8d353,_0x1d7de0){return _0x3d439f(_0x1d7de0,_0x57a3c4-0x1bd,_0xc8d353-_0x5adcf8._0x45c975,_0x57a3c4- -_0x5adcf8._0x58a8dd);}return await _0x52eff2[_0x4c2bca(0x5cc,0x4e6,0x39c,_0x57fc04._0x36ded2)]('textDocument/prepareCallHierarchy',textDocumentPosition(_0x2c073))??[];},async 'incomingCalls'(_0x720175){return await _0x52eff2['sendRequest']('callHierarchy/incomingCalls',{'item':_0x720175})??[];},async 'outgoingCalls'(_0x5e1c51){const _0x32785b={_0x1388d5:0x1e4,_0x41abf2:0x2ed};function _0x3c6aa7(_0x4b62a7,_0x5d9434,_0x55fb02,_0x3e1faa){return _0x3f6af3(_0x4b62a7-0x166,_0x3e1faa,_0x55fb02-_0x32785b._0x1388d5,_0x4b62a7-_0x32785b._0x41abf2);}function _0x2a3108(_0x41f4a8,_0x3ff1ce,_0x18d3d2,_0x401021){return _0x3f6af3(_0x41f4a8-_0x5775fc._0x57ef76,_0x401021,_0x18d3d2-_0x5775fc._0xb528d6,_0x18d3d2- -0x101);}return await _0x52eff2[_0x2a3108(_0x4b2d3a._0x3b4f4b,0xde,0x11f,0x15e)](_0x2a3108(-_0x4b2d3a._0x390e3f,-_0x4b2d3a._0x4a8b99,-_0x4b2d3a._0x1da680,-_0x4b2d3a._0x488259),{'item':_0x5e1c51})??[];}},'waitForDiagnostics'({path:_0x102aa6,timeoutMs:timeoutMs=DEFAULT_DIAGNOSTICS_TIMEOUT_MS}){const _0x4e66e5={_0x5097a1:0x138,_0x1a9ef8:0xf6,_0x3a1405:0x66,_0x3472da:0x48b,_0x58eb40:0x403},_0x3f0b7a=uriForPath(_0x102aa6);function _0x192e10(_0x215c0f,_0x597acf,_0x5d1f59,_0x253cf8){return _0x3d439f(_0x215c0f,_0x597acf-_0x1649cc._0x228948,_0x5d1f59-_0x1649cc._0x3a51d0,_0x597acf- -0x129);}if(_0x226a79[_0x1fb39f(0x744,0x6b9,0x51e,0x614)](_0x3f0b7a))return Promise[_0x192e10(0x5f3,0x5c5,0x639,0x4bd)]();function _0x1fb39f(_0x5f359c,_0x4df4c0,_0x4b1b0f,_0x100c69){return _0x3f6af3(_0x5f359c-0x10,_0x4df4c0,_0x4b1b0f-0x1cc,_0x100c69-_0x421833._0x5515f1);}return new Promise(_0x47cec9=>{const _0x162997={_0x2c7ad7:0xc1,_0x4f293e:0x108};function _0x3f7a06(_0xcb6f3,_0x2f50da,_0x223acd,_0x2043c8){return _0x192e10(_0xcb6f3,_0x2f50da- -0x3e9,_0x223acd-_0x162997._0x2c7ad7,_0x2043c8-_0x162997._0x4f293e);}const _0x530de6=setTimeout(()=>{const _0x12d62b={_0x3f13de:0x82};function _0x561c15(_0x12837d,_0x41d288,_0x1420f7,_0x570e94){return _0x4629(_0x12837d- -0x253,_0x570e94);}const _0x50ba3b=_0x3fd8ca[_0x561c15(0x12b,_0x4e66e5._0x5097a1,_0x4e66e5._0x1a9ef8,_0x4e66e5._0x3a1405)](_0x3f0b7a);function _0x2e285e(_0x41c9b0,_0x3b9ee8,_0x39365c,_0x5a6aeb){return _0x4629(_0x41c9b0-_0x12d62b._0x3f13de,_0x3b9ee8);}_0x50ba3b?.[_0x2e285e(_0x4e66e5._0x3472da,0x43e,0x489,_0x4e66e5._0x58eb40)](_0x24bd25);if(_0x50ba3b?.['size']===0x0)_0x3fd8ca['delete'](_0x3f0b7a);_0x47cec9();},timeoutMs),_0x24bd25=()=>{clearTimeout(_0x530de6),_0x47cec9();},_0x352dd5=_0x3fd8ca['get'](_0x3f0b7a)??new Set();_0x352dd5[_0x3f7a06(0x3ff,0x307,0x1aa,_0x44c576._0x369c7c)](_0x24bd25),_0x3fd8ca['set'](_0x3f0b7a,_0x352dd5);});},async 'shutdown'(){if(_0xfbfd5e)return;function _0x506891(_0x3f060f,_0xb43566,_0x5ef1bf,_0x2a5584){return _0x3d439f(_0x5ef1bf,_0xb43566-0x1da,_0x5ef1bf-0xd9,_0xb43566- -0x2ec);}function _0x2becac(_0x404399,_0x3b9fae,_0x4b2219,_0x38edec){return _0x3d439f(_0x4b2219,_0x3b9fae-0x1d8,_0x4b2219-_0x5ef37b._0x249fd1,_0x38edec- -_0x5ef37b._0x35ac54);}_0xfbfd5e=!![];try{await _0x52eff2[_0x506891(0x582,_0x5d200e._0x3e31d4,0x41c,0x5bc)]('shutdown',null),_0x52eff2[_0x506891(0x47c,0x380,_0x5d200e._0x4c1136,0x338)](_0x506891(_0x5d200e._0x250301,0x305,_0x5d200e._0x2be181,0x1b7));}catch{}finally{_0x52eff2[_0x2becac(_0x5d200e._0x32a167,0x3ab,0x457,0x4eb)](),_0x4a0e3b[_0x506891(_0x5d200e._0x50211f,0x382,_0x5d200e._0x462ff7,0x375)][_0x506891(0x2a0,0x393,_0x5d200e._0x49e1aa,_0x5d200e._0x1b8a0e)][_0x2becac(0x467,0x474,0x6a0,_0x5d200e._0x2d61fc)]();}}};function _0x3f6af3(_0x1eb968,_0x30f01b,_0x2b46d3,_0x4671c5){return _0x211934(_0x4671c5- -0x3a6,_0x30f01b-0x180,_0x30f01b,_0x4671c5-_0x401150._0x7e71fb);}return _0x20dc2e;}import{spawn as _0xba2f42}from'child_process';import{access as _0x19c94f}from'fs/promises';import _0x51ddee from'path';import{spawn}from'child_process';import{access,mkdir}from'fs/promises';import _0x25553a from'os';import _0x39d433 from'path';import _0x4417e0 from'which';var installPromises=new Map();function sanitizePackageName(_0x85793){const _0x5e2d18={_0x156584:0x16,_0x402b26:0x2fd,_0x50958a:0x455},_0x5dd15b={_0x447e67:0x2d5},_0x349943={_0x43f6e2:0x459};function _0x176bd6(_0x1202f9,_0x5a1de1,_0x308630,_0x1c0ab8){return _0x211934(_0x5a1de1- -_0x349943._0x43f6e2,_0x5a1de1-0x191,_0x1202f9,_0x1c0ab8-0x13d);}function _0xad85cb(_0x56c6f3,_0xf89c13,_0x3717e7,_0x122050){return _0x4820c3(_0x56c6f3-0x1bc,_0xf89c13-0x180,_0x122050,_0x3717e7- -_0x5dd15b._0x447e67);}return _0x85793[_0x176bd6(-0x148,-0x24,-0x2,_0x5e2d18._0x156584)](/^@/,'')[_0xad85cb(0x46e,_0x5e2d18._0x402b26,0x3ac,_0x5e2d18._0x50958a)](/[/]/g,'__');}function binaryNameForPlatform(_0x376122){const _0x366564={_0x4c10fb:0x55e,_0x7ce2d0:0x3b6,_0x80128f:0x388,_0x51d202:0x3f0},_0x256914={_0x3eccec:0x1ae},_0x284368={_0x317f50:0x1bc,_0x1fbe45:0x1de};function _0x59d0e3(_0x13ff41,_0x1045a5,_0x4d6b50,_0x1cf924){return _0x211934(_0x1045a5- -0x10e,_0x1045a5-_0x284368._0x317f50,_0x1cf924,_0x1cf924-_0x284368._0x1fbe45);}function _0x159ec8(_0x196e0e,_0x19b2e6,_0x2020dc,_0x11df09){return _0x211934(_0x2020dc-0x21,_0x19b2e6-0x19e,_0x196e0e,_0x11df09-_0x256914._0x3eccec);}return process[_0x59d0e3(0x317,0x336,0x2af,0x464)]===_0x159ec8(0x467,_0x366564._0x4c10fb,0x57e,0x4fa)?_0x376122+_0x59d0e3(0x433,_0x366564._0x7ce2d0,_0x366564._0x80128f,_0x366564._0x51d202):_0x376122;}async function exists(_0x5e5de7){try{return await access(_0x5e5de7),!![];}catch{return![];}}function runNpmInstall(_0x5bfc7f,_0x3c4326,_0x1ae6c9){const _0x2aeecd={_0x4a232a:0x2e5,_0x4f5430:0x2fa,_0x3620bd:0x326,_0xcd6b20:0x381,_0xc04860:0x3b7,_0x4e9233:0x4fd,_0x529c8e:0x18e,_0x59a458:0x230,_0x343afb:0x11c,_0x44436b:0x1d7,_0x431387:0x2d2,_0x43688c:0x52e},_0x59efde={_0x31f32c:0x2a7};return new Promise(_0x12d03a=>{const _0x132236=spawn(_0xbf935(_0x2aeecd._0x4a232a,0x1aa,0xc3,0x1dd),[_0xbf935(_0x2aeecd._0x4f5430,_0x2aeecd._0x3620bd,0x2f9,_0x2aeecd._0xcd6b20),_0x202510(0x3b0,0x573,_0x2aeecd._0xc04860,_0x2aeecd._0x4e9233),_0x5bfc7f,_0x3c4326],{'env':_0x1ae6c9,'stdio':_0xbf935(_0x2aeecd._0x529c8e,_0x2aeecd._0x59a458,0xaf,_0x2aeecd._0x343afb)});function _0x202510(_0x9b0667,_0x1b42fd,_0x284a7a,_0x5c823b){return _0x4629(_0x5c823b-_0x59efde._0x31f32c,_0x284a7a);}function _0xbf935(_0x4cfcd9,_0xe1b0eb,_0x4fabb8,_0x5d2002){return _0x4629(_0x5d2002- -0xad,_0x4fabb8);}_0x132236['on'](_0xbf935(0x2cb,_0x2aeecd._0x44436b,0x238,_0x2aeecd._0x431387),()=>_0x12d03a(![])),_0x132236['on'](_0x202510(_0x2aeecd._0x43688c,0x4de,0x472,0x5c3),_0x85d609=>_0x12d03a(_0x85d609===0x0));});}function shouldDisableLspDownload(_0x11b023=process[_0x211934(0x43f,0x57d,0x55a,0x452)]){const _0x549dda={_0x1f386f:0x43e,_0x5a0861:0x5aa,_0x55e49d:0x1bb,_0x2adc03:0x154,_0x15f8d8:0x261},_0x390d0c={_0x5c8cb6:0x67},_0x203636=_0x11b023[_0x5b9dce(0x611,_0x549dda._0x1f386f,_0x549dda._0x5a0861,0x4c9)]?.[_0x423025(_0x549dda._0x55e49d,0x342,_0x549dda._0x2adc03,0x291)]();function _0x5b9dce(_0x5d787b,_0x3bd867,_0x23dd46,_0x4e2a7a){return _0x211934(_0x4e2a7a- -0x93,_0x3bd867-0x135,_0x5d787b,_0x4e2a7a-_0x390d0c._0x5c8cb6);}function _0x423025(_0x1f6f87,_0x49a139,_0x1834dd,_0x17467b){return _0x211934(_0x17467b- -0x298,_0x49a139-0x13,_0x49a139,_0x17467b-0x130);}return _0x203636===_0x5b9dce(0x406,0x302,_0x549dda._0x15f8d8,0x34f)||_0x203636==='1'||_0x203636==='yes'||_0x203636==='on';}function getLspPackageDir(_0x576cd0){const _0x1114c6={_0x567a62:0x83,_0x113f72:0x25,_0xf532d9:0x40,_0xad0b2e:0x95,_0x2a6fc6:0x8b,_0x562ca7:0xd3,_0x4e6a94:0x3f,_0x2abe3e:0xbd,_0x2a2d92:0xac,_0x25e1fb:0x1d9},_0x31a698={_0x2cae63:0xac},_0x39fddf={_0x1f6576:0x1b5};function _0x1c5df3(_0x493071,_0x26fce2,_0x2dc73c,_0x441361){return _0x211934(_0x441361- -0x371,_0x26fce2-_0x39fddf._0x1f6576,_0x493071,_0x441361-0x30);}function _0x243b4d(_0x46c542,_0x44023f,_0x304691,_0x57ce05){return _0x211934(_0x44023f- -0x1b8,_0x44023f-0x5e,_0x304691,_0x57ce05-_0x31a698._0x2cae63);}return _0x39d433[_0x1c5df3(_0x1114c6._0x567a62,-0xf9,_0x1114c6._0x113f72,_0x1114c6._0xf532d9)](_0x25553a[_0x1c5df3(0xca,0xf4,_0x1114c6._0xad0b2e,_0x1114c6._0x2a6fc6)](),_0x1c5df3(_0x1114c6._0x562ca7,_0x1114c6._0x4e6a94,_0x1114c6._0x2abe3e,0x22),'lsp',_0x1c5df3(_0x1114c6._0x2a2d92,0xda,0xd3,_0x1114c6._0x25e1fb),sanitizePackageName(_0x576cd0));}function getLspBinDir(_0x503f7a){const _0x354419={_0x3f1b4b:0x49e,_0x4fc161:0x681,_0x1c0935:0x90,_0xadaf27:0x155,_0x182efc:0x1d6,_0x25fe5d:0x160},_0x431604={_0x4b7e85:0x7},_0x474251={_0x384501:0x24c,_0x3357c4:0x99};function _0x2a04de(_0x43372d,_0x3816f5,_0x2f35a7,_0x546385){return _0x211934(_0x2f35a7-_0x474251._0x384501,_0x3816f5-0x1a5,_0x3816f5,_0x546385-_0x474251._0x3357c4);}function _0x2bb93c(_0x21f038,_0xd6ce8,_0x5decd7,_0x27f9dd){return _0x4820c3(_0x21f038-0x1a3,_0xd6ce8-_0x431604._0x4b7e85,_0x27f9dd,_0x21f038- -0x4e2);}return _0x39d433[_0x2a04de(_0x354419._0x3f1b4b,0x711,0x5fd,_0x354419._0x4fc161)](getLspPackageDir(_0x503f7a),_0x2bb93c(0x9c,-_0x354419._0x1c0935,-0x24,_0x354419._0xadaf27),_0x2bb93c(0xf9,_0x354419._0x182efc,0x13a,_0x354419._0x25fe5d));}async function findPackageBinary(_0x1b2a6a,_0x2f5f69){const _0x56b0d8={_0x24689d:0x94,_0x208fd8:0xce,_0x1b27ab:0x325},_0x1bf6ae={_0x1ad101:0x1cc},_0x4c07cc={_0x4b4988:0x23,_0x2fdf3d:0x670};function _0x5c7da6(_0x25371a,_0x6825e8,_0x50050a,_0x28e8ce){return _0x4820c3(_0x25371a-0x59,_0x6825e8-_0x4c07cc._0x4b4988,_0x50050a,_0x28e8ce- -_0x4c07cc._0x2fdf3d);}let _0x356329=_0x39d433['resolve'](_0x2f5f69);function _0x5d406d(_0x50f3f7,_0x4d3f9b,_0x1d5213,_0x52e666){return _0x4820c3(_0x50f3f7-0x1cf,_0x4d3f9b-0xe7,_0x50f3f7,_0x4d3f9b- -_0x1bf6ae._0x1ad101);}const _0x144adf=binaryNameForPlatform(_0x1b2a6a);while(!![]){const _0x2e2aaf=_0x39d433[_0x5c7da6(0xa,-_0x56b0d8._0x24689d,_0x56b0d8._0x208fd8,-0x73)](_0x356329,_0x5d406d(0x2c8,0x3b2,_0x56b0d8._0x1b27ab,0x2ef),'.bin',_0x144adf);if(await exists(_0x2e2aaf))return _0x2e2aaf;const _0x507566=_0x39d433['dirname'](_0x356329);if(_0x507566===_0x356329)return void 0x0;_0x356329=_0x507566;}}async function findPathBinary(_0x4f10c6,_0x485e26){const _0x47da25={_0x3e87d3:0x26e,_0x120423:0x20d,_0x59b6dc:0x704,_0x40ab32:0x406,_0x5ebb08:0x421,_0x53d6b2:0x19d,_0x1d07e5:0x169},_0x53b51d={_0x47bc9f:0x1cf},_0x20a950={_0x1a6dce:0x1f2,_0x5b83e8:0x163,_0x34a0fb:0x455};function _0x4fac73(_0x5eba20,_0x4c67d0,_0xeb3bb7,_0x31b381){return _0x4820c3(_0x5eba20-_0x20a950._0x1a6dce,_0x4c67d0-_0x20a950._0x5b83e8,_0x5eba20,_0x31b381- -_0x20a950._0x34a0fb);}function _0x3f578b(_0x411abd,_0x25d034,_0xd2205c,_0x3637c9){return _0x4820c3(_0x411abd-_0x53b51d._0x47bc9f,_0x25d034-0x1ea,_0x411abd,_0x25d034- -0x1dc);}const _0x12f6ef=getLspBinDir(_0x485e26),_0x3ed246=[_0x12f6ef,process[_0x3f578b(0x39d,0x4af,0x37e,0x5ad)][_0x4fac73(0x1d7,_0x47da25._0x3e87d3,0x292,_0x47da25._0x120423)]][_0x3f578b(_0x47da25._0x59b6dc,0x5b0,0x4e2,0x548)](Boolean)[_0x3f578b(_0x47da25._0x40ab32,_0x47da25._0x5ebb08,0x313,0x2dc)](_0x39d433[_0x4fac73(0x32,0x1ef,_0x47da25._0x53d6b2,_0x47da25._0x1d07e5)]);try{return await _0x4417e0(_0x4f10c6,{'path':_0x3ed246});}catch{return void 0x0;}}async function resolvePackageBinary(_0x3553f1){const _0x2fc8fc={_0x3b30f7:0xa7,_0x2d904a:0x16,_0x1bd2ca:0x29,_0x400220:0x16,_0x3f9810:0xc1,_0x47d36f:0x577,_0x31a255:0xbb,_0x259972:0x93,_0x53a344:0x16,_0x52062b:0x5d7,_0xde33d4:0x50f,_0x40f69f:0xfb,_0x4bd145:0x3c,_0x32bf11:0x1fc,_0xe467e7:0x51,_0x388307:0x153,_0x4ea66e:0x38},_0x24b28b={_0x38c9c9:0x1fa,_0x1246f0:0x258,_0x1febc2:0x2f4,_0xa14dbf:0x1d4,_0x1b4b57:0x10a,_0x1273db:0x196,_0x1b0a7d:0xaf,_0x200a15:0x9c},_0x204b46={_0x23990c:0xe4},_0x428b40={_0x1a9215:0x335,_0x3119ae:0x53},_0x3471b5={_0x2a5507:0xf1},_0x27d8ef=_0x3553f1['binaryName']??_0x3553f1[_0x5beb4b(0xd1,-_0x2fc8fc._0x3b30f7,-_0x2fc8fc._0x2d904a,0x3d)],_0x6a163=await findPackageBinary(_0x27d8ef,_0x3553f1[_0x5beb4b(0x9,0x46,0xf,_0x2fc8fc._0x1bd2ca)]);if(_0x6a163)return _0x6a163;function _0x5beb4b(_0x4cbb2c,_0x575031,_0x437171,_0x563e05){return _0x4820c3(_0x4cbb2c-0xb3,_0x575031-0xb4,_0x4cbb2c,_0x437171- -0x659);}const _0x5934fc=await findPathBinary(_0x27d8ef,_0x3553f1[_0x5beb4b(0xb1,0xb1,-_0x2fc8fc._0x400220,-_0x2fc8fc._0x3f9810)]);function _0x5d941d(_0x13ea32,_0x4b2e19,_0x5098b9,_0x26f50b){return _0x211934(_0x13ea32-0x138,_0x4b2e19-0x155,_0x26f50b,_0x26f50b-_0x3471b5._0x2a5507);}if(_0x5934fc)return _0x5934fc;const _0x3f9eb8=_0x3553f1[_0x5d941d(_0x2fc8fc._0x47d36f,0x663,0x5ba,0x4c7)]??process['env'];if(shouldDisableLspDownload(_0x3f9eb8))return void 0x0;const _0x3afa53=getLspPackageDir(_0x3553f1[_0x5beb4b(-0xf,-0x139,-0x16,-0x16a)]),_0x2c11fd=_0x3553f1[_0x5beb4b(-_0x2fc8fc._0x31a255,-_0x2fc8fc._0x259972,-_0x2fc8fc._0x53a344,-0xa4)]+':'+_0x27d8ef;let _0x583490=installPromises[_0x5d941d(0x60d,_0x2fc8fc._0x52062b,_0x2fc8fc._0xde33d4,0x6a9)](_0x2c11fd);!_0x583490&&(_0x583490=((async()=>{await mkdir(_0x3afa53,{'recursive':!![]});const _0x27630a=await runNpmInstall(_0x3afa53,_0x3553f1[_0x3d9ea0(_0x24b28b._0x38c9c9,_0x24b28b._0x1246f0,_0x24b28b._0x1febc2,0x175)],_0x3f9eb8);function _0x3d9ea0(_0x17cba9,_0x40d22b,_0x4ee6f3,_0x58e098){return _0x5d941d(_0x17cba9- -_0x428b40._0x1a9215,_0x40d22b-_0x428b40._0x3119ae,_0x4ee6f3-0x9e,_0x58e098);}function _0x2a83a1(_0x45bb82,_0x185008,_0x4b5a27,_0x1d28a5){return _0x5d941d(_0x4b5a27- -0x5de,_0x185008-_0x204b46._0x23990c,_0x4b5a27-0x173,_0x1d28a5);}if(!_0x27630a)return void 0x0;const _0x44edee=_0x39d433[_0x3d9ea0(0x1b4,0xef,_0x24b28b._0xa14dbf,_0x24b28b._0x1b4b57)](getLspBinDir(_0x3553f1[_0x2a83a1(-0x1c3,-_0x24b28b._0x1273db,-_0x24b28b._0x1b0a7d,-_0x24b28b._0x200a15)]),binaryNameForPlatform(_0x27d8ef));return await exists(_0x44edee)?_0x44edee:void 0x0;})()),installPromises[_0x5beb4b(-_0x2fc8fc._0x40f69f,_0x2fc8fc._0x4bd145,-0x99,0x4a)](_0x2c11fd,_0x583490));try{return await _0x583490;}catch{return void 0x0;}finally{installPromises[_0x5beb4b(_0x2fc8fc._0x32bf11,_0x2fc8fc._0xe467e7,_0x2fc8fc._0x388307,_0x2fc8fc._0x4ea66e)](_0x2c11fd);}}var TYPESCRIPT_EXTENSIONS=[_0x211934(0x407,0x455,0x549,0x4e1),_0x4820c3(0x72a,0x687,0x87f,0x7d3),'.js',_0x4820c3(0x486,0x59e,0x6a9,0x560),_0x4820c3(0x88f,0x64d,0x863,0x757),'.cjs',_0x211934(0x484,0x40c,0x344,0x559),_0x211934(0x577,0x4e5,0x5e6,0x6d1)],BIOME_EXTENSIONS=[...TYPESCRIPT_EXTENSIONS,_0x4820c3(0x760,0x86d,0x8e4,0x7f8),_0x211934(0x4bf,0x4de,0x5bf,0x565)],TYPESCRIPT_ROOT_MARKERS=['package-lock.json','bun.lockb','bun.lock','pnpm-lock.yaml',_0x4820c3(0x810,0x670,0x732,0x6ca),_0x211934(0x53f,0x5ff,0x3ee,0x67f),_0x211934(0x43a,0x368,0x3c7,0x334),_0x4820c3(0x73e,0x6c8,0x700,0x7c6)],BIOME_ROOT_MARKERS=['biome.json','biome.jsonc','package-lock.json',_0x211934(0x5ad,0x5e0,0x4a8,0x573),_0x4820c3(0x8aa,0x722,0x809,0x798),_0x211934(0x44f,0x3fc,0x37a,0x591),_0x211934(0x47e,0x5c0,0x33e,0x45f),_0x4820c3(0x890,0x6a8,0x79b,0x7c6)];async function exists2(_0x13da10){try{return await _0x19c94f(_0x13da10),!![];}catch{return![];}}async function findUp(_0x13d4b7,_0x44484d){const _0xb1d9ef={_0x4e9941:0x7e2,_0x129a79:0x88f,_0x45ab03:0xf,_0x5d05d7:0x36,_0x2fef67:0x23,_0x59debe:0x29,_0x1b39fa:0x28},_0x44ec7c={_0x4d9608:0x20,_0x22fff5:0x6f5},_0x5f0d81={_0x47375a:0x1c7};let _0x5e8e27=_0x51ddee['resolve'](_0x13d4b7);function _0x4451bc(_0x4b48fc,_0x8b6fac,_0x520079,_0x564466){return _0x211934(_0x8b6fac-_0x5f0d81._0x47375a,_0x8b6fac-0xbf,_0x564466,_0x564466-0x174);}const _0x200c6c=_0x51ddee[_0x4451bc(0x7c9,0x755,_0xb1d9ef._0x4e9941,_0xb1d9ef._0x129a79)](_0x5e8e27);if(_0x200c6c)_0x5e8e27=_0x51ddee[_0x5c9923(_0xb1d9ef._0x45ab03,-_0xb1d9ef._0x5d05d7,_0xb1d9ef._0x2fef67,-0x149)](_0x5e8e27);function _0x5c9923(_0x474478,_0x51c793,_0x302af7,_0x5df058){return _0x4820c3(_0x474478-0xee,_0x51c793-_0x44ec7c._0x4d9608,_0x5df058,_0x474478- -_0x44ec7c._0x22fff5);}while(!![]){for(const _0x1fe5c1 of _0x44484d){if(await exists2(_0x51ddee[_0x5c9923(-0xf8,-_0xb1d9ef._0x59debe,_0xb1d9ef._0x1b39fa,-0x20f)](_0x5e8e27,_0x1fe5c1)))return _0x5e8e27;}const _0x126e8a=_0x51ddee['dirname'](_0x5e8e27);if(_0x126e8a===_0x5e8e27)return void 0x0;_0x5e8e27=_0x126e8a;}}async function hasDenoRoot(_0x1743cd){const _0x55b38f={_0x11ddce:0x91,_0x26a5ec:0x3c,_0x15f431:0x101,_0x2f3d93:0x2c,_0x518ce2:0x6f9,_0x212f86:0x77e},_0x53b0cb={_0x3b87b9:0x130},_0x1ca179={_0x428493:0x375,_0x33dba1:0x162,_0x2c58fd:0xb1};function _0x14641f(_0x2ff1c1,_0x2394f8,_0x53d220,_0x2f33e7){return _0x211934(_0x2394f8- -_0x1ca179._0x428493,_0x2394f8-_0x1ca179._0x33dba1,_0x2ff1c1,_0x2f33e7-_0x1ca179._0x2c58fd);}function _0x595a39(_0x479848,_0x259f20,_0x204604,_0x57e9d9){return _0x4820c3(_0x479848-_0x53b0cb._0x3b87b9,_0x259f20-0x109,_0x204604,_0x479848- -0x10c);}return await exists2(_0x51ddee[_0x14641f(-_0x55b38f._0x11ddce,_0x55b38f._0x26a5ec,0x12f,-_0x55b38f._0x15f431)](_0x1743cd,'deno.json'))||await exists2(_0x51ddee[_0x14641f(_0x55b38f._0x2f3d93,_0x55b38f._0x26a5ec,0x4,-0x35)](_0x1743cd,_0x595a39(0x620,_0x55b38f._0x518ce2,0x4c6,_0x55b38f._0x212f86)));}async function resolveTsserverPath(_0x5c3996){const _0x480e18={_0x970f99:0x61e,_0x538ff2:0x77f,_0x385c10:0x7e2,_0x1930ce:0x6a7,_0x1ded1b:0x297,_0x15230d:0x36f,_0x212a95:0x653,_0xf025c4:0x71d,_0x1d5c0d:0x521,_0x2643bf:0x4b8,_0x5d1b6b:0x6a6,_0x3d38af:0x825,_0x359ffa:0x45c,_0x31940f:0x2ab,_0x34183a:0x4d8,_0x51ebb4:0x730,_0x40f822:0x633,_0x1b66c0:0x5f8,_0x4474e0:0x3cb,_0x37a2f3:0x47a},_0x4cb071={_0x3365f1:0x8};function _0xd319c9(_0x461cf5,_0x324504,_0x3ebfe8,_0x3bab84){return _0x211934(_0x3bab84-0x239,_0x324504-0x1a4,_0x461cf5,_0x3bab84-0xbb);}let _0x244341=_0x51ddee[_0xd319c9(_0x480e18._0x970f99,_0x480e18._0x538ff2,_0x480e18._0x385c10,_0x480e18._0x1930ce)](_0x5c3996);while(!![]){const _0x4c267a=_0x51ddee[_0x5d67c5(0x4be,_0x480e18._0x1ded1b,0x3a9,_0x480e18._0x15230d)](_0x244341,'node_modules','typescript',_0xd319c9(_0x480e18._0x212a95,0x828,0x608,_0x480e18._0xf025c4),_0xd319c9(_0x480e18._0x1d5c0d,_0x480e18._0x2643bf,_0x480e18._0x5d1b6b,0x60c));if(await exists2(_0x4c267a))return _0x4c267a;const _0x39e8d6=_0x51ddee[_0xd319c9(0x7a7,_0x480e18._0x3d38af,0x787,0x6f1)](_0x244341);if(_0x39e8d6===_0x244341)break;_0x244341=_0x39e8d6;}function _0x5d67c5(_0x4b1a53,_0xf354c6,_0xe7d071,_0x4febc8){return _0x211934(_0xe7d071- -_0x4cb071._0x3365f1,_0xf354c6-0xd8,_0xf354c6,_0x4febc8-0xfd);}const _0x50613b=getLspPackageDir(_0x5d67c5(_0x480e18._0x359ffa,_0x480e18._0x31940f,0x339,0x3ce)),_0x536a92=await resolvePackageBinary({'packageName':'typescript','binaryName':'tsc','startDir':_0x5c3996});if(!_0x536a92)return void 0x0;const _0x29d218=_0x51ddee[_0xd319c9(_0x480e18._0x34183a,0x50b,_0x480e18._0x51ebb4,0x5ea)](_0x50613b,'node_modules','typescript',_0x5d67c5(_0x480e18._0x40f822,0x60f,0x4dc,_0x480e18._0x1b66c0),_0x5d67c5(0x2a3,0x3bf,_0x480e18._0x4474e0,_0x480e18._0x37a2f3));return await exists2(_0x29d218)?_0x29d218:void 0x0;}var TypeScriptServer={'id':_0x211934(0x341,0x3ee,0x252,0x38c),'name':_0x4820c3(0x613,0x597,0x5a8,0x5e6),'extensions':TYPESCRIPT_EXTENSIONS,async 'root'(_0x7bb8f2){const _0x6497b3=await findUp(_0x7bb8f2,TYPESCRIPT_ROOT_MARKERS);if(!_0x6497b3)return void 0x0;return await hasDenoRoot(_0x6497b3)?void 0x0:_0x6497b3;},async 'spawn'(_0x2f282e){const _0x510f0d={_0x109ff7:0x42b,_0x11c4f6:0x1e6,_0x28b58a:0x32e,_0x271847:0x1b3,_0x1a47a7:0x3c8,_0x327c0f:0x4e8,_0x4ad32f:0x4e9},_0x19e3f7={_0x58b2af:0xdb,_0x4b7d8d:0xd6},_0x203048={_0xa31c99:0xba,_0x1743f3:0x1e,_0x4dce77:0x673};function _0x5ee2ec(_0x3234df,_0x4363f5,_0xbeeba0,_0x19c01a){return _0x4820c3(_0x3234df-_0x203048._0xa31c99,_0x4363f5-_0x203048._0x1743f3,_0x3234df,_0x19c01a- -_0x203048._0x4dce77);}function _0x13ecb9(_0x2b7aa0,_0x2ca4a1,_0x14575d,_0x3c43d1){return _0x211934(_0x3c43d1- -0xda,_0x2ca4a1-_0x19e3f7._0x58b2af,_0x2b7aa0,_0x3c43d1-_0x19e3f7._0x4b7d8d);}const _0x1e00db=await resolveTsserverPath(_0x2f282e);if(!_0x1e00db)return void 0x0;const _0x1ab0bd=await resolvePackageBinary({'packageName':_0x13ecb9(_0x510f0d._0x109ff7,_0x510f0d._0x11c4f6,0x25e,0x30d),'binaryName':_0x13ecb9(_0x510f0d._0x28b58a,_0x510f0d._0x271847,0x204,0x30d),'startDir':_0x2f282e});if(!_0x1ab0bd)return void 0x0;return{'process':_0xba2f42(_0x1ab0bd,[_0x13ecb9(_0x510f0d._0x1a47a7,0x3ba,_0x510f0d._0x327c0f,_0x510f0d._0x4ad32f)],{'cwd':_0x2f282e,'stdio':_0x13ecb9(0x41b,0x4de,0x595,0x4e5)}),'initialization':{'tsserver':{'path':_0x1e00db}}};}},BiomeServer={'id':'biome','name':_0x211934(0x453,0x3be,0x5a7,0x5b1),'extensions':BIOME_EXTENSIONS,async 'root'(_0x481cd9){return findUp(_0x481cd9,BIOME_ROOT_MARKERS);},async 'spawn'(_0x11d593){const _0x7b65fe={_0x1735fd:0x5b5,_0xd58e8e:0x4f3,_0x5813ce:0x47e,_0x29da97:0x4f5,_0x16978b:0x4dd,_0x40d722:0x3ba,_0x313d24:0x450,_0x17c41c:0x47d,_0x113351:0x486,_0x59c3eb:0x50a,_0x1ca703:0x72b},_0x1df2b8={_0x3d8df4:0x29,_0x467dea:0x134},_0xbe4d84={_0x5802e6:0x119};function _0xbcb55(_0xa03748,_0xeec157,_0x15c111,_0x1c92fa){return _0x4820c3(_0xa03748-_0xbe4d84._0x5802e6,_0xeec157-0x1a6,_0x15c111,_0xeec157- -0x1c2);}const _0x18f197=await findPackageBinary(_0xbcb55(0x587,0x4ca,_0x7b65fe._0x1735fd,_0x7b65fe._0xd58e8e),_0x11d593)??await resolvePackageBinary({'packageName':_0x5e9c55(0x3de,0x516,0x54b,_0x7b65fe._0x5813ce),'binaryName':_0xbcb55(_0x7b65fe._0x29da97,0x4ca,_0x7b65fe._0x16978b,_0x7b65fe._0x40d722),'startDir':_0x11d593});if(!_0x18f197)return void 0x0;function _0x5e9c55(_0x47c9eb,_0x27d70c,_0x1190aa,_0x12e155){return _0x211934(_0x27d70c-_0x1df2b8._0x3d8df4,_0x27d70c-0x2e,_0x12e155,_0x12e155-_0x1df2b8._0x467dea);}return{'process':_0xba2f42(_0x18f197,[_0xbcb55(_0x7b65fe._0x313d24,_0x7b65fe._0x17c41c,_0x7b65fe._0x113351,_0x7b65fe._0x59c3eb),_0x5e9c55(0x4ae,0x5ec,0x528,0x49a)],{'cwd':_0x11d593,'stdio':_0xbcb55(_0x7b65fe._0x1ca703,0x649,0x4fc,0x5fa)})};}},BUILTIN_LSP_SERVERS=[TypeScriptServer,BiomeServer];function getServersForFile(_0x184676){const _0x228f1b={_0x17dae5:0x67a,_0x44b069:0x770,_0x410fd4:0x804,_0x20723e:0x678,_0x52c49c:0x849},_0x21d320={_0x42728d:0x7c},_0x4e9496={_0x2e0cd0:0x7f,_0x39c18f:0xa1},_0x34c00f=_0x51ddee[_0x57475a(0x725,_0x228f1b._0x17dae5,_0x228f1b._0x44b069,0x756)](_0x184676)[_0x57475a(_0x228f1b._0x410fd4,_0x228f1b._0x20723e,_0x228f1b._0x52c49c,0x6f1)]();function _0x28b5f5(_0x2c946e,_0x476c30,_0x54abe7,_0x31ee50){return _0x211934(_0x476c30- -_0x4e9496._0x2e0cd0,_0x476c30-_0x4e9496._0x39c18f,_0x31ee50,_0x31ee50-0xed);}function _0x57475a(_0x9a7349,_0x2d25dc,_0x1bbfcd,_0x43572c){return _0x211934(_0x43572c-0x1c8,_0x2d25dc-_0x21d320._0x42728d,_0x9a7349,_0x43572c-0x196);}return BUILTIN_LSP_SERVERS['filter'](_0x2cf01b=>_0x2cf01b[_0x28b5f5(0x430,0x423,0x451,0x2eb)][_0x57475a(0x630,0x5d5,0x57c,0x64f)](_0x34c00f));}function stateKey(_0x1d196f,_0x10caca){return _0x10caca+':'+_0x1d196f['id'];}function diagnosticsKeyToPath(_0xee4619){const _0x1ad329={_0x6344f3:0x118};function _0x4b9e0e(_0x41fa9b,_0xd2e79d,_0x342837,_0x54a883){return _0x211934(_0x41fa9b- -0x92,_0xd2e79d-_0x1ad329._0x6344f3,_0x54a883,_0x54a883-0x9c);}if(!_0xee4619['startsWith'](_0x4b9e0e(0x357,0x2d6,0x35f,0x2ed)))return _0xee4619;return fileURLToPath(_0xee4619);}function nextFileVersion(_0x107c23,_0xe78f1){const _0x24440e={_0x48baef:0x14e,_0x1128d5:0x13b,_0x308973:0x552,_0x562c50:0x5c9,_0x309776:0x409},_0x2d2e28={_0x2dad9c:0x5e6},_0x2ab81b={_0x40cc6d:0x1d5,_0x55396d:0x76};function _0x4286ff(_0x45b7bc,_0x1dde51,_0x222533,_0x4dda93){return _0x211934(_0x45b7bc-_0x2ab81b._0x40cc6d,_0x1dde51-0x52,_0x222533,_0x4dda93-_0x2ab81b._0x55396d);}function _0x4910fd(_0x2898e8,_0x319720,_0x3cfd66,_0x2b6eea){return _0x4820c3(_0x2898e8-0x7b,_0x319720-0x34,_0x319720,_0x2b6eea- -_0x2d2e28._0x2dad9c);}const _0x32a755=(_0x107c23['fileVersions'][_0x4910fd(0xdd,_0x24440e._0x48baef,0x295,_0x24440e._0x1128d5)](_0xe78f1)??0x1)+0x1;return _0x107c23[_0x4286ff(_0x24440e._0x308973,_0x24440e._0x562c50,_0x24440e._0x309776,0x6ac)][_0x4910fd(0x109,0xc4,-0x4f,-0x26)](_0xe78f1,_0x32a755),_0x32a755;}function _0x4820c3(_0x39404d,_0x510920,_0x1ea00f,_0x23030f){const _0x49681c={_0x3075d0:0x3a3};return _0x4629(_0x23030f-_0x49681c._0x3075d0,_0x1ea00f);}async function collectClientResults(_0x257315){const _0x466fff={_0x340cd4:0x16a,_0x249339:0x2f,_0x2a2e31:0x5b6,_0x267c36:0x5f7,_0x15d2b6:0x62c},_0x19396e={_0x157224:0x27c,_0x395dc6:0x157,_0x16bb04:0x184},_0x582b6a={_0x3533c9:0x136};function _0x3a65d9(_0x1c2b9a,_0x8f7474,_0x505cd9,_0x4af82e){return _0x4820c3(_0x1c2b9a-0x146,_0x8f7474-_0x582b6a._0x3533c9,_0x8f7474,_0x505cd9- -0x1c8);}const _0x1dbcf4=await Promise[_0x2fc39f(0x1e2,_0x466fff._0x340cd4,_0x466fff._0x249339,0x16b)](_0x257315);function _0x2fc39f(_0x18607b,_0xe28cf1,_0x18bc1b,_0x5742ff){return _0x211934(_0xe28cf1- -_0x19396e._0x157224,_0xe28cf1-_0x19396e._0x395dc6,_0x18bc1b,_0x5742ff-_0x19396e._0x16bb04);}return _0x1dbcf4[_0x3a65d9(_0x466fff._0x2a2e31,0x4ad,_0x466fff._0x267c36,_0x466fff._0x15d2b6)](_0x2e66b5=>_0x2e66b5[_0x2fc39f(0x35f,0x286,0x33b,0x373)]===_0x2fc39f(0x86,0x15c,0x20a,0x18e)?_0x2e66b5[_0x2fc39f(-0x1e,0x99,0x7c,0xa0)]:[]);}function createLspService(_0x60bdc4={}){const _0x23a194={_0x11f8ef:0x528,_0x5a2e8d:0x588,_0x32f264:0x384,_0x34ec69:0x34b},_0x129435={_0x27ccda:0x37c},_0x4e7337={_0x3e4113:0x356,_0x58ddb5:0x333,_0x57db6d:0x502,_0xcd8c89:0x3b5,_0x26fbe0:0x50f,_0x282ec1:0x63c,_0x278d85:0x593,_0x44fc0a:0x5da,_0x4073f9:0x1c7,_0x39f187:0x260,_0x415cd3:0x420,_0x54c295:0x2e4,_0x388d65:0x538,_0x339c5a:0x4d2,_0x59b664:0x3a5,_0x3fe19c:0x520,_0x46d533:0x65f,_0x5c8586:0x61e,_0x1a44a5:0x580,_0x31635f:0x5a2,_0x1b086f:0x54f,_0x54f3d4:0x443,_0x4bfe43:0x432,_0x17fa1b:0x6e3,_0x2a7c15:0x676},_0x539ff6={_0x591c6b:0x21d},_0x1718cd={_0x523f33:0x57f,_0x357720:0x58f,_0x4d60d9:0x414,_0x241c00:0x4c0},_0x5eba4f={_0x512633:0x381},_0xb895d7={_0x34bf44:0x11,_0x2f452c:0xd3},_0x3c19c0={_0xe0c0f2:0x141},_0x26d3fa={_0x41257c:0x1be},_0x4f3c4e={_0x1b11dd:0x61c},_0x1b226a={_0x59156c:0x1cc},_0x427944={_0x29d96e:0x232,_0x2244a7:0x136,_0x106cfb:0x152},_0x4c3161={_0x31a3d1:0x563,_0x404821:0x41e},_0x424d4d={_0x528801:0x449,_0x338a17:0x41b},_0x5c279b={_0x596f03:0x28f,_0xaf63a8:0x4f9,_0x45e1e7:0x73f,_0xdf554d:0x776},_0x4c4133={_0x24b32c:0x4cb,_0x4d54d8:0x372,_0x3c12e2:0x3c0,_0x548d31:0x5fd},_0x48f963={_0x161643:0x1f9},_0x4a2c4e={_0x3c9d98:0x9d},_0x113afa={_0x2c364a:0x28a},_0x39bfc2={_0x417f09:0x309,_0x451528:0x36a},_0x24b288={_0x1aa12c:0x1d4,_0x17e11f:0x216,_0x596e8a:0x170,_0x1f9437:0x18,_0x55334b:0x257,_0x56ed8b:0x138,_0x2e6023:0x75},_0x1d6f7c={_0x5555bb:0x135,_0x2e94b9:0x8d,_0x3c7d91:0xd2,_0x53776b:0x65,_0x119b32:0x175,_0x2c1f4d:0x2a4,_0x574c3d:0x154,_0x1e9632:0x14c,_0x517270:0x193,_0x3cc2ee:0xd2,_0x304afd:0x199,_0x1ee8f3:0x5e,_0x306110:0x343,_0xcc9645:0x215,_0x1ca5ae:0x405,_0x286a08:0x115,_0x5d6ea9:0x161,_0x55a5eb:0x365,_0x28e629:0x6e,_0x5c7090:0x120,_0x4c3076:0x46e,_0x16e7b5:0x401,_0x270b60:0x5aa},_0x31b4cf={_0x322249:0x307},_0x2b4bf4={_0xde95ea:0x7ec,_0x46c292:0x555,_0x23b4ca:0x542,_0x63b01d:0x5ee,_0x2c8f6b:0x5df,_0x4b5a6d:0x596,_0x554847:0x51a,_0x38a5c3:0x606,_0x3cc7cc:0x7c6,_0x5cce67:0x707,_0x506d5d:0x5b1,_0x2a53c2:0x690,_0x3b158d:0x5f6},_0x2c0033={_0x1b2d6d:0x222},_0x3d3889={_0x5d3250:0x270,_0x110811:0x232,_0x1e4c5b:0x28c,_0x2f020e:0x14f,_0x597c91:0x8da,_0x1dc44f:0x880,_0x4e12ee:0x77d,_0x4bd20a:0x8b1,_0x2acbcd:0x31a,_0x3ad1a3:0x2e7,_0x2e8287:0x2dc,_0x34af2c:0x301,_0x54515b:0x2e9,_0x57069e:0x718,_0x2a8506:0x717,_0x5a8480:0x6e0,_0x54d2d3:0x6e2,_0x4bf74e:0x864,_0x4dc950:0x72c,_0x44f8f6:0x138,_0x40bd2a:0xcb},_0x23bcef={_0x12a9f9:0x14d},_0x452ebc={_0x38fb7b:0x399},_0x48ce25={'clients':[],'spawning':new Map(),'broken':new Set(),'fileVersions':new Map(),'openFiles':new Set(),'shutdownStarted':![]},_0x364405=()=>_0x60bdc4['enabled']!==![];async function _0x14c2e2(_0x56ff51,_0x225505){const _0x5793f0={_0x32df2e:0x5a5,_0x2badbd:0x4f8,_0x3d1efc:0x84a,_0x37545b:0x8d3,_0x4b774d:0x7ab,_0x2325eb:0x793,_0x1a6435:0x762,_0x44b2b5:0x755,_0x324ed3:0x6fd,_0x20ae3b:0x815,_0x260b01:0x5db,_0x58567c:0x724,_0x1ed5db:0x5d5,_0x30674e:0x694,_0x59dfb3:0x67a,_0x5bb873:0x6be,_0x5860f4:0x684,_0x3bb42e:0x648,_0x462424:0x885,_0x4316aa:0x7cc,_0x332ba9:0x70f,_0x590d23:0x63e},_0x3df762=stateKey(_0x56ff51,_0x225505),_0x25e3e8=_0x48ce25[_0x53785e(_0x3d3889._0x5d3250,_0x3d3889._0x110811,_0x3d3889._0x1e4c5b,_0x3d3889._0x2f020e)][_0x3d9671(_0x3d3889._0x597c91,_0x3d3889._0x1dc44f,_0x3d3889._0x4e12ee,_0x3d3889._0x4bd20a)](_0x831de8=>_0x831de8[_0x53785e(0xa6,0x1b8,-0x47,0x185)]===_0x56ff51['id']&&_0x831de8[_0x3d9671(0x73c,0x5eb,0x5fa,0x501)]===_0x225505);if(_0x25e3e8)return _0x25e3e8;if(_0x48ce25['broken'][_0x53785e(0x1d3,_0x3d3889._0x2acbcd,_0x3d3889._0x3ad1a3,_0x3d3889._0x2e8287)](_0x3df762))return void 0x0;const _0x17d5a9=_0x48ce25[_0x53785e(0x246,_0x3d3889._0x34af2c,0x10c,_0x3d3889._0x54515b)][_0x3d9671(0x655,_0x3d3889._0x57069e,_0x3d3889._0x2a8506,_0x3d3889._0x5a8480)](_0x3df762);function _0x3d9671(_0x3e8789,_0x375353,_0x59bade,_0x381cbd){return _0x4629(_0x59bade-_0x452ebc._0x38fb7b,_0x375353);}if(_0x17d5a9)return _0x17d5a9;function _0x53785e(_0x2a932c,_0x9d24be,_0x5d9812,_0x11381a){return _0x4629(_0x2a932c- -_0x23bcef._0x12a9f9,_0x5d9812);}const _0x53cc26=((async()=>{const _0x233b3f={_0x5ae31a:0xe8,_0x48b207:0x41},_0x4adecc={_0x369e2c:0x41a,_0x2ab8a3:0x54};function _0x196ee4(_0x38fb6e,_0x3b5818,_0x304fdf,_0x28b329){return _0x53785e(_0x3b5818-_0x4adecc._0x369e2c,_0x3b5818-_0x4adecc._0x2ab8a3,_0x28b329,_0x28b329-0x2b);}function _0x5c2251(_0x1425f5,_0x4d9a87,_0x36ebd2,_0x41a4c2){return _0x3d9671(_0x1425f5-_0x233b3f._0x5ae31a,_0x4d9a87,_0x41a4c2- -0x59,_0x41a4c2-_0x233b3f._0x48b207);}try{const _0x5a20fc=await _0x56ff51[_0x196ee4(_0x5793f0._0x32df2e,0x5ac,0x6f5,_0x5793f0._0x2badbd)](_0x225505);if(!_0x5a20fc)return _0x48ce25[_0x5c2251(0x6f2,_0x5793f0._0x3d1efc,_0x5793f0._0x37545b,_0x5793f0._0x4b774d)][_0x196ee4(0x682,0x70f,0x636,0x6aa)](_0x3df762),void 0x0;const _0xd658c0=await createLspClient({'server':_0x56ff51,'root':_0x225505,'handle':_0x5a20fc}),_0x15ca28=_0x48ce25[_0x5c2251(_0x5793f0._0x2325eb,_0x5793f0._0x1a6435,_0x5793f0._0x44b2b5,_0x5793f0._0x324ed3)][_0x5c2251(_0x5793f0._0x20ae3b,_0x5793f0._0x260b01,0x816,_0x5793f0._0x58567c)](_0x14deee=>_0x14deee[_0x5c2251(0x670,0x3d5,0x675,0x533)]===_0x56ff51['id']&&_0x14deee[_0x196ee4(0x58f,0x52e,0x46f,0x591)]===_0x225505);if(_0x15ca28)return await _0xd658c0[_0x5c2251(_0x5793f0._0x1ed5db,_0x5793f0._0x30674e,0x60f,_0x5793f0._0x59dfb3)](),_0x15ca28;return _0x48ce25[_0x196ee4(_0x5793f0._0x5bb873,0x68a,_0x5793f0._0x5860f4,_0x5793f0._0x3bb42e)][_0x5c2251(0x71c,0x673,0x6c7,0x7ae)](_0xd658c0),_0xd658c0;}catch{return _0x48ce25[_0x5c2251(0x760,_0x5793f0._0x462424,_0x5793f0._0x4316aa,0x7ab)][_0x196ee4(0x5b7,_0x5793f0._0x332ba9,0x717,_0x5793f0._0x590d23)](_0x3df762),void 0x0;}finally{_0x48ce25['spawning']['delete'](_0x3df762);}})());return _0x48ce25[_0x3d9671(_0x3d3889._0x54d2d3,_0x3d3889._0x4bf74e,_0x3d3889._0x4dc950,0x65c)][_0x53785e(0xd0,_0x3d3889._0x44f8f6,_0x3d3889._0x40bd2a,0x46)](_0x3df762,_0x53cc26),_0x53cc26;}async function _0x41d2a1(_0x49c09e,_0x1c4b48){if(!_0x364405())return[];const _0x3ede3b=[];function _0x466a52(_0x4bcf54,_0x278462,_0x10ef8f,_0xbebfe3){return _0x4629(_0x278462-_0x2c0033._0x1b2d6d,_0x4bcf54);}for(const _0x4ca463 of getServersForFile(_0x49c09e)){const _0x159cdd=await _0x4ca463['root'](_0x49c09e);if(!_0x159cdd)continue;const _0x58169b=stateKey(_0x4ca463,_0x159cdd);if(_0x48ce25[_0x3170fc(_0x2b4bf4._0xde95ea,0x8dc,0x7c2,0x85e)][_0x466a52(_0x2b4bf4._0x46c292,_0x2b4bf4._0x23b4ca,0x58f,_0x2b4bf4._0x63b01d)](_0x58169b))continue;const _0x8ec257=_0x48ce25[_0x466a52(0x5c5,_0x2b4bf4._0x2c8f6b,_0x2b4bf4._0x4b5a6d,0x517)][_0x466a52(_0x2b4bf4._0x554847,_0x2b4bf4._0x38a5c3,0x56c,0x660)](_0x5d167b=>_0x5d167b[_0x466a52(0x556,0x415,0x2d7,0x31a)]===_0x4ca463['id']&&_0x5d167b[_0x466a52(0x466,0x483,0x3f5,0x4be)]===_0x159cdd);if(_0x8ec257){_0x3ede3b[_0x466a52(_0x2b4bf4._0x3cc7cc,0x690,0x6b2,_0x2b4bf4._0x5cce67)](_0x8ec257);continue;}if(!_0x1c4b48)continue;const _0xad5c3f=await _0x14c2e2(_0x4ca463,_0x159cdd);if(_0xad5c3f)_0x3ede3b[_0x466a52(_0x2b4bf4._0x506d5d,_0x2b4bf4._0x2a53c2,_0x2b4bf4._0x3b158d,0x659)](_0xad5c3f);}function _0x3170fc(_0x1217eb,_0x22988b,_0x4ac102,_0xf39270){return _0x4629(_0x4ac102-0x357,_0x22988b);}return _0x3ede3b;}async function _0xabdf5a(_0x27edf1,_0x2cfb45=![]){const _0x2f29b4={_0x562558:0x2bd,_0x2b7732:0x151},_0x302e2e={_0x57534f:0x3b7,_0x144e25:0xc1};function _0x1bcb1f(_0xffb3de,_0x5fd115,_0x345ecf,_0x4fea28){return _0x4629(_0x345ecf- -_0x31b4cf._0x322249,_0xffb3de);}function _0x4b9cc6(_0x454e62,_0xd2ddd5,_0x1bc458,_0x3a34d1){return _0x4629(_0xd2ddd5- -0xf0,_0x454e62);}const _0xf6cb12=await _0x41d2a1(_0x27edf1,!![]);await Promise[_0x4b9cc6(_0x24b288._0x1aa12c,_0x24b288._0x17e11f,0x1d4,_0x24b288._0x596e8a)](_0xf6cb12[_0x1bcb1f(_0x24b288._0x1f9437,-_0x24b288._0x55334b,-_0x24b288._0x56ed8b,-_0x24b288._0x2e6023)](async _0x280ae4=>{function _0x3612d2(_0x3715df,_0x250ae0,_0x2896b0,_0x2dc011){return _0x1bcb1f(_0x2dc011,_0x250ae0-0xb7,_0x3715df-_0x302e2e._0x57534f,_0x2dc011-_0x302e2e._0x144e25);}function _0x4b8dca(_0x3eff01,_0x9d2d06,_0x213e06,_0x31899c){return _0x4b9cc6(_0x31899c,_0x3eff01- -_0x2f29b4._0x562558,_0x213e06-0x44,_0x31899c-_0x2f29b4._0x2b7732);}!_0x48ce25[_0x4b8dca(0xac,0x12d,-0x81,_0x1d6f7c._0x5555bb)][_0x4b8dca(-_0x1d6f7c._0x2e94b9,-0xfc,-_0x1d6f7c._0x3c7d91,-_0x1d6f7c._0x53776b)](_0x280ae4[_0x4b8dca(-0x1ba,-_0x1d6f7c._0x119b32,-_0x1d6f7c._0x2c1f4d,-_0x1d6f7c._0x574c3d)]+':'+_0x280ae4[_0x4b8dca(-_0x1d6f7c._0x1e9632,-0x84,-_0x1d6f7c._0x517270,-0x1be)]+':'+_0x27edf1)&&(await _0x280ae4[_0x4b8dca(-_0x1d6f7c._0x3cc2ee,-_0x1d6f7c._0x304afd,-0x30,-_0x1d6f7c._0x1ee8f3)][_0x3612d2(_0x1d6f7c._0x306110,0x1f3,_0x1d6f7c._0xcc9645,_0x1d6f7c._0x1ca5ae)]({'path':_0x27edf1}),_0x48ce25['openFiles'][_0x4b8dca(0x95,0x1ee,-0x5b,-0x63)](_0x280ae4['serverId']+':'+_0x280ae4[_0x4b8dca(-0x14c,-0x27,-_0x1d6f7c._0x286a08,-_0x1d6f7c._0x5d6ea9)]+':'+_0x27edf1));await _0x280ae4[_0x3612d2(0x38b,_0x1d6f7c._0x55a5eb,0x3ae,0x3cb)][_0x4b8dca(0x19,-_0x1d6f7c._0x28e629,-_0x1d6f7c._0x5c7090,-0x5a)]({'path':_0x27edf1,'version':nextFileVersion(_0x48ce25,_0x27edf1)});if(_0x2cfb45)await _0x280ae4[_0x3612d2(_0x1d6f7c._0x4c3076,_0x1d6f7c._0x16e7b5,0x39c,_0x1d6f7c._0x270b60)]({'path':_0x27edf1});}));}async function _0x26711b(_0x59e734){function _0xcff4dc(_0x4ac8c6,_0x1ad2cc,_0xa92d4,_0x251577){return _0x4629(_0x1ad2cc-0x9d,_0xa92d4);}return await _0xabdf5a(_0x59e734['file'],![]),_0x41d2a1(_0x59e734[_0xcff4dc(_0x39bfc2._0x417f09,_0x39bfc2._0x451528,0x23f,0x278)],![]);}async function _0x560d90(_0x19ae93){const _0x57eb24=await _0x26711b(_0x19ae93);function _0x4e4d82(_0x4bf666,_0x286f4b,_0x4c49cd,_0x43adef){return _0x4629(_0x286f4b- -_0x113afa._0x2c364a,_0x43adef);}function _0x33f1d7(_0x33f00d,_0xebeb70,_0xd72554,_0x4fc8bf){return _0x4629(_0x33f00d- -0x3cc,_0xd72554);}return collectClientResults(_0x57eb24[_0x4e4d82(-0x147,-0xbb,_0x4a2c4e._0x3c9d98,-0x72)](_0x186ea2=>_0x186ea2['request'][_0x33f1d7(0x2a,-0x72,0x68,0x4f)](_0x19ae93)));}return{'isEnabled':_0x364405,async 'hasClients'(_0x57de37){function _0x118877(_0x38302f,_0x3811e3,_0x3bb44c,_0x338ac8){return _0x4629(_0x38302f-_0x48f963._0x161643,_0x338ac8);}return(await _0x41d2a1(_0x57de37,![]))[_0x118877(_0x4c4133._0x24b32c,_0x4c4133._0x4d54d8,_0x4c4133._0x3c12e2,_0x4c4133._0x548d31)]>0x0||getServersForFile(_0x57de37)['length']>0x0;},'touchFile':_0xabdf5a,async 'diagnostics'(){const _0x4c67d4={};for(const _0x44a7f1 of _0x48ce25['clients']){for(const [_0x5409bf,_0x340d08]of _0x44a7f1['diagnostics']){_0x4c67d4[diagnosticsKeyToPath(_0x5409bf)]=_0x340d08;}}return _0x4c67d4;},async 'diagnosticsForFile'(_0x214220){const _0x53b44e={_0x50c61b:0x97},_0x5730ba={_0x576ce2:0x308};await _0xabdf5a(_0x214220,!![]);function _0x283e38(_0x34aae7,_0x3c5912,_0x58c516,_0x4cf9cd){return _0x4629(_0x58c516-_0x5730ba._0x576ce2,_0x3c5912);}const _0x397f68=[];function _0x232450(_0x197f0a,_0x398ba1,_0x570f25,_0x1d966e){return _0x4629(_0x570f25- -_0x53b44e._0x50c61b,_0x1d966e);}for(const _0x48c14c of await _0x41d2a1(_0x214220,![])){for(const [_0x18d4c1,_0x4e347f]of _0x48c14c[_0x232450(0x3b3,_0x5c279b._0x596f03,0x3c1,_0x5c279b._0xaf63a8)]){if(diagnosticsKeyToPath(_0x18d4c1)===_0x214220)_0x397f68[_0x283e38(0x828,_0x5c279b._0x45e1e7,_0x5c279b._0xdf554d,0x731)](..._0x4e347f);}}return _0x397f68;},async 'definition'(_0x55a043){function _0x37b8ea(_0x27a570,_0x803f27,_0x4e87b3,_0x280898){return _0x4629(_0x4e87b3-0x24c,_0x803f27);}return collectClientResults((await _0x26711b(_0x55a043))[_0x37b8ea(_0x424d4d._0x528801,0x440,_0x424d4d._0x338a17,0x469)](_0x58f007=>_0x58f007['request']['definition'](_0x55a043)));},async 'references'(_0x1f5d9f){const _0x3cf300={_0x485393:0x2d3};function _0x26e843(_0x37b838,_0x1ea7c2,_0x4b1e7e,_0xfc7e0b){return _0x4629(_0x1ea7c2-_0x3cf300._0x485393,_0xfc7e0b);}return collectClientResults((await _0x26711b(_0x1f5d9f))[_0x26e843(_0x4c3161._0x31a3d1,0x4a2,0x58c,_0x4c3161._0x404821)](_0x390abb=>_0x390abb['request']['references'](_0x1f5d9f)));},async 'hover'(_0x3e2074){const _0xd7cc82=await Promise[_0x4a6338(0x690,0x659,0x587,0x45f)]((await _0x26711b(_0x3e2074))['map'](_0x4cfe53=>_0x4cfe53['request'][_0x41410c(0x51d,0x55b,0x53d,0x505)](_0x3e2074)));function _0x4a6338(_0x304105,_0x91461d,_0x1006cd,_0x24a817){return _0x4629(_0x1006cd-0x2f8,_0x91461d);}function _0x41410c(_0x506501,_0x72fddb,_0x1c7efc,_0x17e994){return _0x4629(_0x506501-0xc3,_0x17e994);}return _0xd7cc82['flatMap'](_0x57577f=>_0x57577f['status']==='fulfilled'&&_0x57577f[_0x4a6338(0x3a0,0x368,0x4b6,0x564)]?[_0x57577f['value']]:[]);},async 'documentSymbol'(_0x281592){const _0x5a07d1={_0x38286d:0x2a6};function _0x31d4ff(_0xb99384,_0x5adf18,_0x3e57aa,_0x48335c){return _0x4629(_0x3e57aa- -0x305,_0xb99384);}function _0x5e8629(_0x3f99d8,_0x1e72a8,_0x38ffb4,_0x163c3f){return _0x4629(_0x3f99d8- -_0x5a07d1._0x38286d,_0x38ffb4);}return await _0xabdf5a(_0x281592,![]),collectClientResults((await _0x41d2a1(_0x281592,![]))[_0x31d4ff(-_0x427944._0x29d96e,-0x215,-_0x427944._0x2244a7,-_0x427944._0x106cfb)](_0x234ee4=>_0x234ee4[_0x31d4ff(-0x1b4,-0x1a6,-0x5c,0x91)][_0x5e8629(0xbe,-0x26,0x66,0x1a5)](_0x281592)));},async 'workspaceSymbol'(_0x1dbb5e){const _0x4af36d={_0x2017d1:0x329};function _0x107622(_0x229eb5,_0x1836a5,_0x328fef,_0x4413c8){return _0x4629(_0x1836a5- -_0x1b226a._0x59156c,_0x229eb5);}function _0x286bda(_0x1bf019,_0x17c810,_0x361762,_0x2f2346){return _0x4629(_0x1bf019-_0x4af36d._0x2017d1,_0x17c810);}return collectClientResults(_0x48ce25['clients'][_0x286bda(0x4f8,_0x4f3c4e._0x1b11dd,0x592,0x622)](_0x4d0e38=>_0x4d0e38['request'][_0x286bda(0x69e,0x5d5,0x57d,0x7d2)](_0x1dbb5e)));},async 'implementation'(_0x3a84d1){function _0x6edae2(_0x33a219,_0x5f4e32,_0x4a5e57,_0x9429e3){return _0x4629(_0x33a219- -_0x26d3fa._0x41257c,_0x9429e3);}function _0x4a55a2(_0x1418dc,_0x11775f,_0x562859,_0x267325){return _0x4629(_0x267325- -_0x3c19c0._0xe0c0f2,_0x11775f);}return collectClientResults((await _0x26711b(_0x3a84d1))[_0x6edae2(_0xb895d7._0x34bf44,0xf6,0x59,_0xb895d7._0x2f452c)](_0x2856da=>_0x2856da[_0x6edae2(0xeb,-0x65,0x1d3,-0x25)][_0x4a55a2(0x232,0x18c,0x21e,0x2a9)](_0x3a84d1)));},async 'prepareCallHierarchy'(_0x52387e){return _0x560d90(_0x52387e);},async 'incomingCalls'(_0x32b396){const _0x352910=await _0x560d90(_0x32b396),_0x690391=await _0x26711b(_0x32b396);function _0x41d878(_0x3a7998,_0x3b2716,_0x16e6c5,_0x177bfc){return _0x4629(_0x3a7998- -_0x5eba4f._0x512633,_0x3b2716);}return collectClientResults(_0x690391['flatMap'](_0x3d49f0=>_0x352910[_0x41d878(-0x1b2,-0x23f,-0x28f,-0xd7)](_0x5e11c6=>_0x3d49f0['request']['incomingCalls'](_0x5e11c6))));},async 'outgoingCalls'(_0x48a6fb){const _0x2ef0b={_0x50d373:0xa4};function _0x799304(_0x5682e0,_0x593b3e,_0x583f7c,_0x3e3633){return _0x4629(_0x583f7c-0x272,_0x3e3633);}function _0x50aede(_0xd0b57c,_0x10f713,_0x172678,_0x4fcc3f){return _0x4629(_0x4fcc3f-_0x2ef0b._0x50d373,_0xd0b57c);}const _0x1e25a6=await _0x560d90(_0x48a6fb),_0x402742=await _0x26711b(_0x48a6fb);return collectClientResults(_0x402742[_0x50aede(_0x1718cd._0x523f33,_0x1718cd._0x357720,_0x1718cd._0x4d60d9,_0x1718cd._0x241c00)](_0x4d9701=>_0x1e25a6[_0x50aede(0x1bc,0x17e,0x2de,0x273)](_0x46a25e=>_0x4d9701[_0x799304(0x41d,0x55c,0x51b,0x463)]['outgoingCalls'](_0x46a25e))));},async 'shutdown'(){const _0x227a91={_0x35520:0x115};if(_0x48ce25[_0xbfc6e8(0x524,0x479,0x3ad,0x43b)])return;function _0x3abc6c(_0x35c0e4,_0x5f1edd,_0x44ae32,_0x4397f2){return _0x4629(_0x4397f2-_0x227a91._0x35520,_0x35c0e4);}function _0xbfc6e8(_0x46ddd1,_0x2f2373,_0x125a0e,_0x383184){return _0x4629(_0x383184-_0x539ff6._0x591c6b,_0x46ddd1);}_0x48ce25[_0x3abc6c(0x371,_0x4e7337._0x3e4113,0x3e7,_0x4e7337._0x58ddb5)]=!![],await Promise[_0xbfc6e8(0x5d0,_0x4e7337._0x57db6d,_0x4e7337._0xcd8c89,0x4ac)](_0x48ce25[_0xbfc6e8(_0x4e7337._0x26fbe0,_0x4e7337._0x282ec1,_0x4e7337._0x278d85,_0x4e7337._0x44fc0a)][_0x3abc6c(_0x4e7337._0x4073f9,_0x4e7337._0x39f187,_0x4e7337._0x415cd3,_0x4e7337._0x54c295)](_0x249ec2=>_0x249ec2[_0x3abc6c(0x492,0x4e7,0x408,0x44f)]())),_0x48ce25[_0x3abc6c(_0x4e7337._0x388d65,0x454,0x456,_0x4e7337._0x339c5a)]=[],_0x48ce25[_0x3abc6c(_0x4e7337._0x59b664,0x45c,_0x4e7337._0x3fe19c,0x4a8)]['clear'](),_0x48ce25[_0x3abc6c(_0x4e7337._0x46d533,_0x4e7337._0x5c8586,0x449,_0x4e7337._0x1a44a5)][_0xbfc6e8(_0x4e7337._0x31635f,0x4bc,0x382,0x479)](),_0x48ce25[_0xbfc6e8(_0x4e7337._0x1b086f,0x55c,0x314,_0x4e7337._0x54f3d4)][_0xbfc6e8(0x321,0x429,_0x4e7337._0x4bfe43,0x479)](),_0x48ce25[_0xbfc6e8(0x5e7,_0x4e7337._0x17fa1b,0x6d6,_0x4e7337._0x2a7c15)][_0xbfc6e8(0x525,0x48d,0x3ff,0x479)]();},'status'(){function _0x29a1bc(_0x57125c,_0x597895,_0x39a182,_0x252583){return _0x4629(_0x57125c- -_0x129435._0x27ccda,_0x597895);}function _0x577c10(_0x56fce8,_0x30a19,_0x5194cb,_0x3f7704){return _0x4629(_0x5194cb-0xb2,_0x30a19);}return{'connectedClients':_0x48ce25[_0x577c10(_0x23a194._0x11f8ef,_0x23a194._0x5a2e8d,0x46f,0x516)][_0x577c10(0x39b,0x477,_0x23a194._0x32f264,_0x23a194._0x34ec69)]};}};}function createQuestionId(){const _0xe8d611={_0x5d9423:0x413,_0x127c23:0x55d,_0x48c3c4:0x4cc,_0x138489:0x4e6,_0xcd632f:0x443,_0x39d6f4:0x31a,_0x436bdb:0x290},_0x537e97={_0x2ed221:0xa3,_0x373949:0xe0};function _0x5b9282(_0x560311,_0x808440,_0x579d82,_0x1235d4){return _0x4820c3(_0x560311-0x195,_0x808440-_0x537e97._0x2ed221,_0x560311,_0x579d82- -_0x537e97._0x373949);}function _0x94d819(_0x4d145d,_0x177b30,_0x2f5744,_0x27d03){return _0x211934(_0x27d03-0x2b,_0x177b30-0x17e,_0x4d145d,_0x27d03-0x89);}return _0x5b9282(_0xe8d611._0x5d9423,0x5d7,0x4a7,_0xe8d611._0x127c23)+Date['now']()+'-'+Math[_0x5b9282(_0xe8d611._0x48c3c4,0x4ca,_0xe8d611._0x138489,_0xe8d611._0xcd632f)]()[_0x5b9282(0x70e,0x541,0x602,0x605)](0x24)[_0x94d819(0x3ba,_0xe8d611._0x39d6f4,_0xe8d611._0x436bdb,0x357)](0x2,0x9);}function validateInput(_0x4ed060){const _0x2b8610={_0x1aa8fb:0x5f5,_0x355c51:0x18c,_0xb851b2:0x2b0,_0x1f7890:0x57a,_0x252b8a:0x685,_0x5646c4:0x785,_0x141de6:0x87,_0x48227a:0x2a,_0x4cd811:0x74,_0x1c9673:0x5ee,_0x593548:0x6e9,_0x39ba19:0x539,_0x35757d:0x69a,_0x26e845:0x5d1,_0x54c9fe:0xb4,_0x575d0d:0x73,_0x548b52:0x176,_0x41e21d:0xf5,_0x3ea7d4:0x5a9,_0x57fb3e:0x17e,_0x626838:0x2a5,_0x478be5:0x557,_0x1d9bf4:0x5f9,_0x2dcda9:0x3e0,_0xc89d31:0x789,_0x5018eb:0x810,_0x56111d:0x736,_0x4ec09c:0x5ed,_0xe96496:0x6ea,_0xea3609:0x7,_0x18fd2a:0xee,_0x554584:0x129,_0x3f07d1:0x39,_0x5644bf:0x2d1,_0x5641e3:0x20c,_0x4e0d9d:0x1fa,_0x2cc0f2:0x1ee,_0x29222a:0xa3,_0x1f8a8f:0x14e,_0x38110c:0x8e,_0x517b19:0x4a,_0x5d4c25:0xf1,_0x24df9b:0x2a9,_0x321bef:0x5bd,_0xef8b7e:0x182,_0x321057:0x1f8,_0x483d66:0xa6,_0x54b69a:0xa7,_0xd60a53:0x584,_0x5a8838:0x436,_0x564bb9:0x2e4,_0x173739:0x640,_0x974c49:0x259,_0x206456:0x1da,_0x5d9782:0x70,_0x130f16:0x171,_0x1622bc:0x12e,_0x567ec9:0x197,_0x421990:0xcf,_0x10d75f:0x530,_0x16ba99:0x151},_0xbecd6b={_0x45ae29:0x5f},_0x4656a9={_0x2b6908:0x11c,_0x1659e7:0x130};function _0x2d2f6b(_0x34c973,_0x46b877,_0x403f61,_0x483bb2){return _0x4820c3(_0x34c973-0x183,_0x46b877-_0x4656a9._0x2b6908,_0x46b877,_0x403f61- -_0x4656a9._0x1659e7);}function _0x17c42f(_0x411bb6,_0x188054,_0x132f2c,_0x32d47c){return _0x211934(_0x411bb6- -0x3a2,_0x188054-0xba,_0x32d47c,_0x32d47c-_0xbecd6b._0x45ae29);}if(!Array[_0x2d2f6b(0x5ec,_0x2b8610._0x1aa8fb,0x564,0x60d)](_0x4ed060[_0x17c42f(0x1c7,_0x2b8610._0x355c51,_0x2b8610._0xb851b2,0x292)])||_0x4ed060[_0x2d2f6b(0x5c5,_0x2b8610._0x1f7890,_0x2b8610._0x252b8a,_0x2b8610._0x5646c4)][_0x17c42f(_0x2b8610._0x141de6,-0x7a,_0x2b8610._0x48227a,-_0x2b8610._0x4cd811)]<0x1||_0x4ed060[_0x2d2f6b(_0x2b8610._0x1c9673,_0x2b8610._0x593548,0x685,0x61a)][_0x2d2f6b(_0x2b8610._0x39ba19,_0x2b8610._0x35757d,0x545,_0x2b8610._0x26e845)]>0xa)throw new ToolExecutionError('Must\x20provide\x201-10\x20questions',{'error':_0x17c42f(-0x53,_0x2b8610._0x54c9fe,-_0x2b8610._0x575d0d,-0x184)});for(let _0x12906c=0x0;_0x12906c<_0x4ed060[_0x17c42f(0x1c7,0x228,_0x2b8610._0x548b52,_0x2b8610._0x41e21d)][_0x2d2f6b(_0x2b8610._0x3ea7d4,0x50b,0x545,0x4c7)];_0x12906c+=0x1){const _0x3b6a05=_0x4ed060[_0x17c42f(0x1c7,_0x2b8610._0x57fb3e,_0x2b8610._0x626838,0x18e)][_0x12906c];if(!_0x3b6a05[_0x2d2f6b(_0x2b8610._0x478be5,0x512,0x49e,0x5cc)]||typeof _0x3b6a05[_0x2d2f6b(_0x2b8610._0x1d9bf4,0x40f,0x49e,_0x2b8610._0x2dcda9)]!==_0x17c42f(-0x3,0x62,-0x86,-0x8a))throw new ToolExecutionError(_0x2d2f6b(_0x2b8610._0xc89d31,_0x2b8610._0x5018eb,0x6b3,_0x2b8610._0x56111d)+(_0x12906c+0x1)+_0x2d2f6b(_0x2b8610._0x4ec09c,0x61e,0x681,_0x2b8610._0xe96496));if(!_0x3b6a05['topic']||typeof _0x3b6a05[_0x17c42f(0xb6,_0x2b8610._0xea3609,-0x3f,0x12b)]!==_0x17c42f(-0x3,-_0x2b8610._0x18fd2a,-_0x2b8610._0x554584,-_0x2b8610._0x3f07d1))throw new ToolExecutionError(_0x17c42f(0x1f5,0x203,_0x2b8610._0x5644bf,_0x2b8610._0x5641e3)+(_0x12906c+0x1)+_0x17c42f(_0x2b8610._0x4e0d9d,0xc9,0x1b0,_0x2b8610._0x2cc0f2));if(_0x3b6a05['topic']['length']>0x1e)throw new ToolExecutionError('Question\x20'+(_0x12906c+0x1)+_0x17c42f(_0x2b8610._0x29222a,_0x2b8610._0x1f8a8f,-_0x2b8610._0x38110c,-_0x2b8610._0x517b19)+_0x3b6a05[_0x2d2f6b(0x654,0x69c,0x574,0x439)]['length']);if(!Array['isArray'](_0x3b6a05[_0x17c42f(0x182,0x2a4,_0x2b8610._0x5d4c25,_0x2b8610._0x24df9b)])||_0x3b6a05[_0x2d2f6b(0x601,0x6b7,0x640,0x76a)][_0x2d2f6b(0x50d,_0x2b8610._0x321bef,0x545,0x5e7)]<0x2||_0x3b6a05[_0x17c42f(_0x2b8610._0xef8b7e,_0x2b8610._0x321057,_0x2b8610._0x483d66,0x1fa)][_0x17c42f(_0x2b8610._0x141de6,_0x2b8610._0x18fd2a,0x14e,0xb8)]>0x4)throw new ToolExecutionError(_0x17c42f(0x1f5,0x25e,_0x2b8610._0x54b69a,0x120)+(_0x12906c+0x1)+_0x2d2f6b(0x46e,_0x2b8610._0xd60a53,_0x2b8610._0x5a8838,_0x2b8610._0x564bb9));for(let _0x54f1ab=0x0;_0x54f1ab<_0x3b6a05[_0x2d2f6b(0x713,0x598,_0x2b8610._0x173739,0x65e)]['length'];_0x54f1ab+=0x1){const _0x3a683f=_0x3b6a05[_0x17c42f(_0x2b8610._0xef8b7e,_0x2b8610._0x974c49,_0x2b8610._0x5644bf,_0x2b8610._0x206456)][_0x54f1ab];if(!_0x3a683f[_0x17c42f(_0x2b8610._0x5d9782,_0x2b8610._0x130f16,_0x2b8610._0x1622bc,0xf1)]||!_0x3a683f['description'])throw new ToolExecutionError('Question\x20'+(_0x12906c+0x1)+_0x17c42f(_0x2b8610._0x567ec9,_0x2b8610._0x421990,0x72,0x24a)+(_0x54f1ab+0x1)+':\x20both\x20\x22label\x22\x20and\x20\x22description\x22\x20are\x20required');}if(typeof _0x3b6a05[_0x2d2f6b(_0x2b8610._0x10d75f,0x5fe,0x507,0x4e2)]!=='boolean')throw new ToolExecutionError('Question\x20'+(_0x12906c+0x1)+_0x17c42f(-0xb,_0x2b8610._0x16ba99,0xad,0xc5));}}function buildQuestions(_0x24c84e){const _0x4cfe88={_0x48d7f3:0x12,_0x227d6d:0x150},_0x425f36={_0x3bfdcc:0x5c};function _0x506826(_0x16b40e,_0x148809,_0x261f87,_0x1ca6b2){return _0x211934(_0x1ca6b2-0xf7,_0x148809-_0x425f36._0x3bfdcc,_0x261f87,_0x1ca6b2-0x181);}function _0xb3fbfb(_0x564fc5,_0x4cf90a,_0x55acea,_0x9453d5){return _0x211934(_0x564fc5- -0x3c7,_0x4cf90a-_0x4cfe88._0x48d7f3,_0x9453d5,_0x9453d5-_0x4cfe88._0x227d6d);}return _0x24c84e['questions']['map']((_0x5b6fd7,_0x5a2b03)=>({'id':'q'+_0x5a2b03,'question':_0x5b6fd7[_0xb3fbfb(-0x45,-0x18a,0x106,-0x16e)],'topic':_0x5b6fd7['topic'],'options':_0x5b6fd7[_0x506826(0x4c4,0x6d5,0x658,0x61b)],'multiSelect':_0x5b6fd7[_0x506826(0x553,0x5f7,0x5eb,0x4e2)]}));}function createResult(_0x5955dc,_0x5e3697,_0x3ee3fc){const _0x3a312d={_0x4360cc:0x4d3,_0x224613:0x373,_0x46c1af:0x222},_0x46953c={_0x31a81c:0x29f};function _0x1f6421(_0x4346c6,_0x1abf8e,_0x51707a,_0x4407ce){return _0x4820c3(_0x4346c6-0x4f,_0x1abf8e-0xfe,_0x4346c6,_0x4407ce- -_0x46953c._0x31a81c);}function _0x4600f1(_0x40cd43,_0x13d36e,_0x2a5514,_0x1b02f8){return _0x4820c3(_0x40cd43-0x52,_0x13d36e-0x70,_0x40cd43,_0x2a5514- -0x475);}const _0x3034c6={'questionId':_0x5955dc,'questionCount':_0x5e3697,'answers':_0x3ee3fc};return createToolOutput(_0x1f6421(0x39d,_0x3a312d._0x4360cc,0x2d2,_0x3a312d._0x224613)+JSON[_0x4600f1(_0x3a312d._0x46c1af,0x2e8,0x33a,0x305)](_0x3ee3fc,null,0x2),_0x3034c6);}function createAskUserTool(){const _0xd9e8d4={_0x8c5f4b:0x5fc,_0x1fd6dd:0x4d6,_0x443ce1:0x589,_0x431246:0x48e,_0x3b1bd5:0x485,_0x5d585f:0x497,_0x2cca11:0x388,_0x268ea8:0x3bd,_0xdba57b:0x3c8,_0x4d3772:0x3b6,_0x43300b:0x483,_0x45043a:0x4fb,_0x476946:0x45c,_0x181659:0x412,_0x2835d5:0x380,_0x47e657:0x3c1,_0x2ae8ca:0x4b9,_0x3df850:0x3f3,_0x230516:0x607,_0x2680c9:0x669,_0x31a968:0x592,_0x33053c:0x3b1,_0x764757:0x441,_0x34ed78:0x65c,_0x30362a:0x4ba,_0x46fca2:0x5d1,_0x1252a8:0x5e7,_0x37ec45:0x431,_0x9f0a21:0x54a},_0x122c44={_0x2f5445:0x127,_0x55e036:0x281,_0x8d2169:0x196,_0x2ba0bf:0x6b,_0x160fdc:0x6e,_0x4ed917:0x52,_0x51fbba:0x1b8,_0x38cda4:0x42,_0x5e879c:0xbc,_0x46cf0d:0xa6,_0x151cfb:0x13e,_0x3257ae:0x4a},_0x22d2b9={_0x4bdb31:0x426,_0x161adc:0xdb},_0x8ea2dd={_0x23851b:0x42,_0x24ffdb:0x392,_0xa08975:0x5e},_0x21818f={_0x3f2186:0x118,_0x376836:0x154},_0x4f2466={_0x370eca:0x1f,_0x2d4e30:0x2a};function _0x58bf3d(_0x4d42b2,_0x93cd56,_0x507ba7,_0x37b194){return _0x211934(_0x507ba7- -_0x4f2466._0x370eca,_0x93cd56-0x3,_0x4d42b2,_0x37b194-_0x4f2466._0x2d4e30);}function _0x809b4a(_0xdc5f63,_0x17c42b,_0x18f1bd,_0x2b6d86){return _0x4820c3(_0xdc5f63-0x2d,_0x17c42b-_0x21818f._0x3f2186,_0x2b6d86,_0xdc5f63- -_0x21818f._0x376836);}return defineTool({'name':_0x58bf3d(_0xd9e8d4._0x8c5f4b,_0xd9e8d4._0x1fd6dd,_0xd9e8d4._0x443ce1,0x500),'description':'Use\x20this\x20tool\x20when\x20you\x20need\x20to\x20ask\x20the\x20user\x20questions\x20during\x20execution.\x20This\x20allows\x20you\x20to:\x0a1.\x20Gather\x20user\x20preferences\x20or\x20requirements\x0a2.\x20Clarify\x20ambiguous\x20instructions\x0a3.\x20Get\x20decisions\x20on\x20implementation\x20choices\x20as\x20you\x20work\x0a4.\x20Offer\x20choices\x20to\x20the\x20user\x20about\x20what\x20direction\x20to\x20take.\x0a\x0aUsage\x20notes:\x0a-\x20Users\x20will\x20always\x20be\x20able\x20to\x20select\x20\x22Other\x22\x20to\x20provide\x20custom\x20text\x20input\x0a-\x20Use\x20multiSelect:\x20true\x20to\x20allow\x20multiple\x20answers\x20to\x20be\x20selected\x20for\x20a\x20question\x0a-\x20If\x20you\x20recommend\x20a\x20specific\x20option,\x20make\x20that\x20the\x20first\x20option\x20in\x20the\x20list\x20and\x20add\x20\x22(Recommended)\x22\x20at\x20the\x20end\x20of\x20the\x20label','inputSchema':{'type':'object','properties':{'questions':{'type':_0x809b4a(_0xd9e8d4._0x431246,_0xd9e8d4._0x3b1bd5,0x48b,0x5e8),'items':{'type':'object','properties':{'question':{'type':_0x809b4a(_0xd9e8d4._0x5d585f,_0xd9e8d4._0x2cca11,_0xd9e8d4._0x268ea8,0x50b)},'topic':{'type':_0x809b4a(_0xd9e8d4._0x5d585f,0x514,0x5bb,_0xd9e8d4._0xdba57b)},'options':{'type':_0x58bf3d(_0xd9e8d4._0x4d3772,0x375,0x377,0x4ab),'items':{'type':_0x809b4a(_0xd9e8d4._0x43300b,0x34a,_0xd9e8d4._0x45043a,0x58c),'properties':{'label':{'type':_0x809b4a(0x497,0x598,_0xd9e8d4._0x476946,0x394)},'description':{'type':_0x58bf3d(_0xd9e8d4._0x181659,0x4b0,_0xd9e8d4._0x2835d5,_0xd9e8d4._0x47e657)}},'required':[_0x58bf3d(0x4a7,_0xd9e8d4._0x2ae8ca,_0xd9e8d4._0x3df850,0x548),_0x809b4a(_0xd9e8d4._0x230516,0x512,_0xd9e8d4._0x2680c9,_0xd9e8d4._0x31a968)]}},'multiSelect':{'type':_0x58bf3d(0x335,_0xd9e8d4._0x33053c,_0xd9e8d4._0x764757,0x53e)}},'required':[_0x809b4a(0x47a,0x3ba,0x3c7,0x39a),_0x809b4a(0x550,0x52b,0x544,_0xd9e8d4._0x34ed78),'options',_0x809b4a(0x4e3,0x500,_0xd9e8d4._0x30362a,_0xd9e8d4._0x46fca2)]}},'answers':{'type':'object','properties':{}}},'required':[_0x58bf3d(_0xd9e8d4._0x1252a8,_0xd9e8d4._0x37ec45,_0xd9e8d4._0x9f0a21,0x41c)]},async *'execute'(_0x3f4d3b,_0x439e31){const _0x4601b6=_0x3f4d3b;validateInput(_0x4601b6);const _0x497cf8=_0x439e31[_0x1586c1(-_0x122c44._0x2f5445,-_0x122c44._0x55e036,-_0x122c44._0x8d2169,-0x160)]??createQuestionId();if(_0x4601b6['answers']&&Object['keys'](_0x4601b6[_0x1de057(_0x122c44._0x2ba0bf,-0x1c,-_0x122c44._0x160fdc,_0x122c44._0x4ed917)])['length']>0x0)return createResult(_0x497cf8,_0x4601b6[_0x1de057(0x20b,0x213,0x2f1,_0x122c44._0x51fbba)]['length'],_0x4601b6[_0x1586c1(-_0x122c44._0x38cda4,0x64,0x70,-_0x122c44._0x5e879c)]);function _0x1de057(_0x11e45f,_0x276f4f,_0x4c3e56,_0x158f57){return _0x58bf3d(_0x11e45f,_0x276f4f-_0x8ea2dd._0x23851b,_0x158f57- -_0x8ea2dd._0x24ffdb,_0x158f57-_0x8ea2dd._0xa08975);}if(!_0x439e31['askUser'])throw new ToolExecutionError('Context\x20does\x20not\x20support\x20user\x20questions');const _0x47b7a6=buildQuestions(_0x4601b6),_0x302a74=await _0x439e31[_0x1586c1(_0x122c44._0x46cf0d,0x22,-0x6b,0x1d6)]({'questionId':_0x497cf8,'questions':_0x47b7a6});function _0x1586c1(_0xf64a19,_0x5600a6,_0x20dcd7,_0x13469a){return _0x58bf3d(_0x13469a,_0x5600a6-0x1a1,_0xf64a19- -_0x22d2b9._0x4bdb31,_0x13469a-_0x22d2b9._0x161adc);}yield createResult(_0x497cf8,_0x4601b6[_0x1de057(0x1e0,0x1c4,0x212,0x1b8)][_0x1586c1(-0x1c,-0x47,-_0x122c44._0x151cfb,_0x122c44._0x3257ae)],_0x302a74);}});}import{spawn as _0x1a7104}from'child_process';import{statSync}from'fs';import*as _0x44f556 from'os';import*as _0x429d7e from'path';import{StringDecoder}from'string_decoder';import{stripVTControlCharacters}from'util';import{stat}from'fs/promises';import*as _0xde39df from'path';function isPathInside(_0x6240eb,_0x4e239a){const _0x2e7863={_0x4d7ac4:0x258,_0x13852e:0x1d4,_0x4528a6:0x272,_0x3e8fd0:0x2e5,_0x2cd6b0:0x3b7,_0x2ff299:0x3c9,_0x1931d6:0x1df,_0x72177f:0x2f3,_0x2f4aec:0x1de},_0x2db7dd={_0x20027a:0x137,_0x516ed5:0x1c5,_0x1347fb:0x41c},_0x454f7b={_0x2662ee:0x1f1};function _0x26d74c(_0x4e88ee,_0x44d903,_0x40962f,_0x437655){return _0x4820c3(_0x4e88ee-0x1e1,_0x44d903-0x2a,_0x44d903,_0x40962f- -_0x454f7b._0x2662ee);}const _0x3addeb=_0xde39df[_0x1412d9(0x29e,0x3f7,0x241,_0x2e7863._0x4d7ac4)](_0x6240eb);function _0x1412d9(_0x51b134,_0x507f69,_0x46ea1b,_0x451a87){return _0x4820c3(_0x51b134-_0x2db7dd._0x20027a,_0x507f69-_0x2db7dd._0x516ed5,_0x46ea1b,_0x51b134- -_0x2db7dd._0x1347fb);}const _0x4de4e4=_0xde39df[_0x1412d9(_0x2e7863._0x13852e,0x2b0,0x1ad,_0x2e7863._0x4528a6)](_0x3addeb,_0x4e239a);return _0x4de4e4===''||!_0x4de4e4[_0x1412d9(_0x2e7863._0x3e8fd0,_0x2e7863._0x2cd6b0,0x29b,_0x2e7863._0x2ff299)]('..')&&!_0xde39df[_0x1412d9(_0x2e7863._0x1931d6,0x2d3,_0x2e7863._0x72177f,_0x2e7863._0x2f4aec)](_0x4de4e4);}function resolveWorkspacePath(_0x3c7f51,_0x1ecd0e){return resolveAllowedPath(_0x3c7f51,[],_0x1ecd0e);}function resolveAllowedPath(_0x9297d4,_0x2ffa92,_0x10b810){const _0x1ace30={_0x293e14:0x5aa,_0x4fa30e:0x81b,_0x581cc5:0x6eb,_0x2d44d8:0x4bf,_0x2fb2ae:0x783,_0x24c5e2:0x50b,_0xcc7f3e:0x482},_0x3da479={_0x29d7ec:0x91},_0x3a4cdf={_0x15c5e8:0x58,_0x35dbcf:0x31},_0x5781dc=_0xde39df[_0x723e1e(_0x1ace30._0x293e14,_0x1ace30._0x4fa30e,0x5b5,_0x1ace30._0x581cc5)](_0x9297d4),_0x2f3fa1=_0xde39df['resolve'](_0x5781dc,_0x10b810);function _0x723e1e(_0x3cdd77,_0x52ab20,_0x27d124,_0x154dd8){return _0x4820c3(_0x3cdd77-_0x3a4cdf._0x15c5e8,_0x52ab20-0xec,_0x3cdd77,_0x154dd8-_0x3a4cdf._0x35dbcf);}function _0x16ee17(_0x34d63b,_0x9f0cf4,_0x5bb7bc,_0x57b9ab){return _0x4820c3(_0x34d63b-0x15b,_0x9f0cf4-_0x3da479._0x29d7ec,_0x34d63b,_0x5bb7bc- -0xb3);}const _0x488773=[_0x5781dc,..._0x2ffa92[_0x16ee17(0x3c7,0x5e0,_0x1ace30._0x2d44d8,0x588)](_0x41f1d1=>_0xde39df[_0x16ee17(0x5b9,0x742,0x607,0x56c)](_0x41f1d1))];if(_0x488773[_0x723e1e(0x6d0,_0x1ace30._0x2fb2ae,0x69a,0x6e0)](_0x54d98e=>isPathInside(_0x54d98e,_0x2f3fa1)))return _0x2f3fa1;throw new ToolExecutionError(_0x16ee17(_0x1ace30._0x24c5e2,_0x1ace30._0xcc7f3e,0x5d7,0x4cc)+_0x10b810,{'path':_0x10b810,'rootDir':_0x5781dc,'allowedDirs':_0x488773});}async function assertWorkspaceFile(_0x2b6797){const _0x58d116={_0x21df97:0x49f,_0x3d1476:0x34};function _0x27d53a(_0x59aafd,_0x5b4c3d,_0x4f6645,_0x4d8817){return _0x211934(_0x4f6645- -_0x58d116._0x21df97,_0x5b4c3d-0x1f2,_0x59aafd,_0x4d8817-_0x58d116._0x3d1476);}const _0x2587db=await stat(_0x2b6797);if(!_0x2587db[_0x27d53a(-0x9,-0x1a7,-0x156,-0x15b)]())throw new ToolExecutionError('Path\x20is\x20not\x20a\x20file:\x20'+_0x2b6797,{'path':_0x2b6797});}function isProbablyBinary(_0x51de4f){const _0x49ab05={_0x1ad213:0x162},_0x1fa839={_0x2f4cef:0x325};function _0x3804d1(_0x619889,_0x7647cd,_0x3f6cdc,_0x1c46fb){return _0x211934(_0x1c46fb- -_0x1fa839._0x2f4cef,_0x7647cd-0x1be,_0x7647cd,_0x1c46fb-0x4e);}return _0x51de4f[_0x3804d1(0x4c,0x7,0x150,_0x49ab05._0x1ad213)](0x0);}var DEFAULT_DESCRIPTION=_0x4820c3(0x6b3,0x6dd,0x751,0x810),DEFAULT_TIMEOUT_MS=0x7530;function isErrnoException(_0x1a996c){return _0x1a996c instanceof Error;}function shellExists(_0x4a68be){const _0x4683fd={_0x131386:0x67b,_0x1f8d38:0x648,_0x18e0f1:0x600},_0x35cfc5={_0x43f3ad:0x170,_0x3e72d5:0x11b};function _0x5a9824(_0x4f72ff,_0x5a5256,_0x3bfa8a,_0x42069b){return _0x4820c3(_0x4f72ff-_0x35cfc5._0x43f3ad,_0x5a5256-_0x35cfc5._0x3e72d5,_0x5a5256,_0x4f72ff- -0x213);}try{const _0x339472=statSync(_0x4a68be);return _0x339472['isFile']()&&(_0x339472[_0x5a9824(0x522,_0x4683fd._0x131386,_0x4683fd._0x1f8d38,_0x4683fd._0x18e0f1)]&0x49)!==0x0;}catch{return![];}}function resolveDefaultShell(_0x33ecb0){const _0x188b4b={_0x52e630:0x2f,_0x490a52:0x3f,_0x461a4b:0x542,_0x56af9a:0x583,_0x5e227a:0x4f7,_0x5c59d7:0x40c,_0x254957:0x38e,_0x41625a:0x2b,_0x59b480:0x13,_0x5d46d8:0xe2,_0x5dba63:0x153,_0xcb5b71:0xe,_0x5b32c3:0x45,_0xf77b7e:0x162,_0xf9b76a:0xd,_0x8d082e:0x119,_0x2f2bd0:0x424,_0x553156:0x45e,_0x2df434:0x222,_0x557371:0xe7,_0x2ed0da:0x38c,_0x229fae:0x2ea},_0x59a589={_0x53d312:0x1b,_0x36a9eb:0x73},_0x1263c4={_0x45defa:0x68,_0xb110fe:0x67b};if(_0x33ecb0)return _0x33ecb0;function _0x103f3e(_0x32afa7,_0x45744e,_0x205e84,_0x4f2af7){return _0x4820c3(_0x32afa7-0x109,_0x45744e-_0x1263c4._0x45defa,_0x32afa7,_0x205e84- -_0x1263c4._0xb110fe);}function _0x21d0e6(_0x5c3ab9,_0x458f0b,_0x48389b,_0x80c321){return _0x211934(_0x48389b- -_0x59a589._0x53d312,_0x458f0b-0xad,_0x80c321,_0x80c321-_0x59a589._0x36a9eb);}if(_0x44f556[_0x103f3e(0x88,-_0x188b4b._0x52e630,0x15,_0x188b4b._0x490a52)]()===_0x21d0e6(0x57e,0x57c,_0x188b4b._0x461a4b,0x460))return process[_0x21d0e6(_0x188b4b._0x56af9a,0x31e,0x424,_0x188b4b._0x5e227a)][_0x21d0e6(0x32a,_0x188b4b._0x5c59d7,0x36e,_0x188b4b._0x254957)]||_0x103f3e(-0x1eb,0x34,-0xef,-0x130);const _0x451cb2=[_0x103f3e(-0xc3,-_0x188b4b._0x41625a,_0x188b4b._0x59b480,-0xeb),_0x103f3e(-_0x188b4b._0x5d46d8,_0x188b4b._0x5dba63,0x32,_0x188b4b._0xcb5b71),_0x103f3e(0xc0,0xad,-0x7d,_0x188b4b._0x5b32c3),_0x103f3e(-0x126,_0x188b4b._0xf77b7e,_0x188b4b._0xf9b76a,_0x188b4b._0x8d082e)];for(const _0x3d5d59 of _0x451cb2){if(shellExists(_0x3d5d59))return _0x3d5d59;}const _0x4f92a0=process[_0x21d0e6(0x437,0x3f6,_0x188b4b._0x2f2bd0,_0x188b4b._0x553156)][_0x103f3e(_0x188b4b._0x2df434,-0x5d,_0x188b4b._0x557371,-0x62)];if(_0x4f92a0&&shellExists(_0x4f92a0))return _0x4f92a0;return _0x21d0e6(_0x188b4b._0x2ed0da,0x537,0x427,_0x188b4b._0x229fae);}function buildShellArgs(_0x1a243c,_0xfe0398){const _0x347ba6={_0x5b5b50:0x17d,_0x5612bc:0x249,_0x44356f:0x3e,_0x18e181:0x5f,_0x4d29da:0x3f,_0xd53ae5:0x9,_0x4e1b7e:0x1eb,_0x3f6a46:0x3d,_0x30f191:0x46},_0x5b8904={_0x4d3a41:0x74a},_0x21a6df={_0x64308d:0x2b4};function _0x53617d(_0x11b12e,_0x59a250,_0x4e5c5d,_0x475dec){return _0x211934(_0x475dec- -_0x21a6df._0x64308d,_0x59a250-0x63,_0x59a250,_0x475dec-0x199);}if(_0x44f556[_0x53617d(_0x347ba6._0x5b5b50,_0x347ba6._0x5612bc,_0x347ba6._0x44356f,0x190)]()===_0xd40ac7(_0x347ba6._0x18e181,-0xf9,_0x347ba6._0x4d29da,-_0x347ba6._0xd53ae5)){const _0x5c10d1=/cmd(\.exe)?$/i[_0x53617d(_0x347ba6._0x4e1b7e,0x2df,0x2c5,0x20e)](_0xfe0398);return _0x5c10d1?['/d','/s','/c',_0x1a243c]:[_0xd40ac7(-0xa4,-0x1d,-0xc3,-0xb6),_0x53617d(-_0x347ba6._0x3f6a46,-0x21,0x6e,0x71),_0xd40ac7(-0xb2,_0x347ba6._0x30f191,-0x201,-0x12b),_0x1a243c];}function _0xd40ac7(_0x25a406,_0x147ecd,_0x5a68d3,_0x56958b){return _0x4820c3(_0x25a406-0x74,_0x147ecd-0x78,_0x5a68d3,_0x25a406- -_0x5b8904._0x4d3a41);}return['-c',_0x1a243c];}function resolveCarriageReturns(_0x20df1b){const _0x42ba77={_0x1815de:0x282},_0x183fff={_0x463c33:0x5b9,_0xb2e38b:0x55a,_0x19d8b0:0x54a,_0x38a962:0x5f2},_0x541496={_0x3eb183:0x385},_0x1d6b84={_0x5ea247:0x305},_0x544f7a={_0x162e42:0x35};function _0xbf8992(_0x6c33f6,_0x595c1b,_0x30c432,_0x36d871){return _0x211934(_0x30c432- -_0x544f7a._0x162e42,_0x595c1b-0xec,_0x36d871,_0x36d871-0x24);}return _0x20df1b['split']('\x0a')['map'](_0x3040e0=>{if(!_0x3040e0[_0x1587ed(0x7e9,_0x183fff._0x463c33,0x6b5,0x789)]('\x0d'))return _0x3040e0;const _0x26e7c8=_0x3040e0[_0x355897(0x502,_0x183fff._0xb2e38b,_0x183fff._0x19d8b0,0x561)]('\x0d');function _0x355897(_0x1f3b54,_0x335d36,_0x870385,_0x325356){return _0x4629(_0x870385-_0x1d6b84._0x5ea247,_0x1f3b54);}function _0x1587ed(_0x266e6a,_0x367b2d,_0x226991,_0x4533f1){return _0x4629(_0x226991-_0x541496._0x3eb183,_0x266e6a);}return _0x26e7c8[_0x26e7c8[_0x355897(0x70e,0x6ff,0x5d7,_0x183fff._0x38a962)]-0x1]??'';})[_0xbf8992(0x4c2,0x442,0x37c,_0x42ba77._0x1815de)]('\x0a');}function resolveBackspaces(_0x461022){const _0xc82425={_0x4f095f:0x61d,_0x47b774:0x660,_0x3b2afc:0x700,_0x3db912:0x553,_0x34e581:0x7a1,_0x6eced9:0x66e,_0x4b6c45:0x704},_0x24c1ff={_0xdec1cb:0xeb},_0x52ea96={_0x289340:0x197,_0x41380e:0x154};function _0x155b1d(_0x133b04,_0x457eff,_0x467ba9,_0x289780){return _0x4820c3(_0x133b04-_0x52ea96._0x289340,_0x457eff-_0x52ea96._0x41380e,_0x133b04,_0x457eff- -0x365);}function _0x3749d0(_0x1971ca,_0x4d6880,_0x2ee552,_0x12830c){return _0x4820c3(_0x1971ca-_0x24c1ff._0xdec1cb,_0x4d6880-0x2e,_0x4d6880,_0x1971ca- -0x70);}const _0x23c3eb=[];for(const _0x111142 of Array[_0x3749d0(0x60d,0x62f,0x5cc,0x605)](_0x461022)){_0x111142==='\x08'?_0x23c3eb[_0x3749d0(_0xc82425._0x4f095f,_0xc82425._0x47b774,_0xc82425._0x3b2afc,_0xc82425._0x3db912)]():_0x23c3eb[_0x3749d0(_0xc82425._0x34e581,0x701,_0xc82425._0x6eced9,_0xc82425._0x4b6c45)](_0x111142);}return _0x23c3eb[_0x3749d0(0x58d,0x682,0x48a,0x581)]('');}function stripAnsiAndControls(_0x3f9260){const _0x4e41cf={_0x59ce1e:0x4a7,_0x19854b:0x44a,_0xce04ad:0x3a5,_0xd60b49:0x541,_0x2e6bd6:0x407,_0x54cf06:0x4a1,_0xc81a02:0x32a,_0x12a72f:0x41d,_0x30d30a:0x4bc,_0x39f35a:0x292,_0x228b8f:0x3b3,_0x1b2b13:0x442,_0xc903ab:0x41c,_0x4bd42f:0x441,_0x192f3d:0x558},_0x4bc3fe={_0x531a9d:0x15f},_0x5d9af9={_0x2c7dc5:0xcb,_0x2d8b09:0x264};_0x3f9260=resolveCarriageReturns(_0x3f9260);function _0x3c7ced(_0x4548c9,_0x366076,_0x3c1be1,_0x15df19){return _0x4820c3(_0x4548c9-_0x5d9af9._0x2c7dc5,_0x366076-0xa0,_0x3c1be1,_0x15df19- -_0x5d9af9._0x2d8b09);}_0x3f9260=resolveBackspaces(_0x3f9260),_0x3f9260=stripVTControlCharacters(_0x3f9260);const _0x2b67da='\x1b',_0x3e765f='\x07';_0x3f9260=_0x3f9260[_0x543b5b(0x3c5,0x3fa,_0x4e41cf._0x59ce1e,_0x4e41cf._0x19854b)](new RegExp(';[^'+_0x3e765f+_0x543b5b(0x4b7,0x403,0x393,0x4dd)+_0x3e765f,'g'),''),_0x3f9260=_0x3f9260['replace'](new RegExp(_0x3c7ced(0x363,0x506,_0x4e41cf._0xce04ad,0x4c1)+_0x2b67da+'\x5c\x5c','g'),''),_0x3f9260=_0x3f9260[_0x3c7ced(0x4d7,_0x4e41cf._0xd60b49,0x30a,0x41d)](new RegExp(_0x3e765f,'g'),''),_0x3f9260=_0x3f9260[_0x543b5b(0x3dc,0x59c,0x527,0x44a)](new RegExp(_0x2b67da+_0x543b5b(_0x4e41cf._0x2e6bd6,0x410,0x442,0x3a6)+_0x2b67da+'\x5c\x5c','g'),''),_0x3f9260=_0x3f9260[_0x3c7ced(0x4c9,_0x4e41cf._0x54cf06,_0x4e41cf._0xc81a02,_0x4e41cf._0x12a72f)](new RegExp(_0x2b67da+_0x3c7ced(0x2c4,_0x4e41cf._0x30d30a,_0x4e41cf._0x39f35a,_0x4e41cf._0x228b8f),'g'),''),_0x3f9260=_0x3f9260[_0x3c7ced(_0x4e41cf._0x1b2b13,_0x4e41cf._0xc903ab,0x529,0x41d)](/[\u0080-\u009F]/g,''),_0x3f9260=_0x3f9260[_0x3c7ced(0x317,0x4af,0x499,0x41d)](/[\u200B-\u200F\u2060-\u2069\u00A0]/g,''),_0x3f9260=_0x3f9260[_0x3c7ced(_0x4e41cf._0x4bd42f,0x3e3,_0x4e41cf._0x192f3d,0x41d)](/[\u23CE\u2424]/g,'');function _0x543b5b(_0x555070,_0x483f48,_0x1cbb33,_0x3acd8a){return _0x211934(_0x3acd8a-0x15,_0x483f48-_0x4bc3fe._0x531a9d,_0x483f48,_0x3acd8a-0x114);}return _0x3f9260;}function resolveWorkingDirectory(_0x482475,_0x1b2503,_0x429660){const _0xffef19={_0x1faec1:0x522,_0xbb8765:0x63d},_0x19d7bf=resolveAllowedPath(_0x1b2503,_0x429660,_0x482475??'.');function _0x45b7b0(_0x4fc05e,_0x58648b,_0x29db46,_0xa60ccf){return _0x4820c3(_0x4fc05e-0x1b2,_0x58648b-0x79,_0xa60ccf,_0x58648b- -0x1e1);}try{const _0x1c404c=statSync(_0x19d7bf);if(!_0x1c404c[_0x45b7b0(0x440,0x58c,_0xffef19._0x1faec1,_0xffef19._0xbb8765)]())throw new ToolExecutionError('Working\x20directory\x20is\x20not\x20a\x20directory:\x20'+_0x19d7bf,{'cwd':_0x19d7bf});return _0x19d7bf;}catch(_0x57c7a5){if(_0x57c7a5 instanceof ToolExecutionError)throw _0x57c7a5;throw new ToolExecutionError('Working\x20directory\x20not\x20found:\x20'+_0x19d7bf,{'cwd':_0x19d7bf});}}function killProcessGroup(_0x48c075,_0x3f19f0,_0x38aa4e='SIGKILL'){const _0x583bfc={_0x1313ce:0x1d0,_0x52363e:0xf9,_0x4d8a7d:0x19c,_0x539ab0:0x26f,_0x230db6:0x32c,_0xc1c4dd:0x334,_0x1c8b2c:0x3a8,_0x5da9d6:0x438,_0x1544ab:0x349,_0x4cead1:0x420,_0x4f7d08:0x383,_0x47f6f4:0x3ed,_0xc2b54f:0x520,_0x395e3d:0x3ed,_0x5f3ed1:0x576,_0x42ba3e:0x2fb,_0x33a3b0:0xe4},_0x479680={_0x366755:0xee,_0x56f1c9:0x6d,_0x283fab:0x143},_0x909671={_0x150387:0x321,_0x3aa097:0x7c,_0x43f4ca:0x1d7};function _0x21570a(_0x131950,_0x2b3b0c,_0x1a1049,_0x29af8f){return _0x211934(_0x1a1049- -_0x909671._0x150387,_0x2b3b0c-_0x909671._0x3aa097,_0x29af8f,_0x29af8f-_0x909671._0x43f4ca);}if(!_0x48c075['pid'])return;function _0x573744(_0x216bbb,_0x380c86,_0x4ae9d6,_0x41f44f){return _0x211934(_0x216bbb- -_0x479680._0x366755,_0x380c86-_0x479680._0x56f1c9,_0x4ae9d6,_0x41f44f-_0x479680._0x283fab);}if(_0x3f19f0)try{_0x1a7104(_0x21570a(0x31,_0x583bfc._0x1313ce,_0x583bfc._0x52363e,_0x583bfc._0x4d8a7d),[_0x573744(0x266,0x354,0x3b7,_0x583bfc._0x539ab0),_0x48c075[_0x573744(0x43d,_0x583bfc._0x230db6,_0x583bfc._0xc1c4dd,0x34f)][_0x573744(_0x583bfc._0x1c8b2c,_0x583bfc._0x5da9d6,_0x583bfc._0x1544ab,_0x583bfc._0x4cead1)](),'/T','/F'],{'stdio':'ignore'});return;}catch{_0x48c075[_0x573744(0x413,0x3cc,0x47d,_0x583bfc._0x4f7d08)](_0x38aa4e);return;}try{process[_0x573744(0x413,_0x583bfc._0x47f6f4,0x530,_0x583bfc._0xc2b54f)](-_0x48c075[_0x573744(0x43d,_0x583bfc._0x395e3d,_0x583bfc._0x5f3ed1,0x58f)],_0x38aa4e);}catch{_0x48c075[_0x21570a(0x1d2,_0x583bfc._0x42ba3e,0x1e0,_0x583bfc._0x33a3b0)](_0x38aa4e);}}function appendChunk(_0x531590,_0x36db05,_0xd8690b,_0x3b3e74,_0x271029){const _0x538b14={_0x5ae9f8:0x99,_0xef51ff:0x1b2,_0x30741b:0x2f3,_0x38d1cd:0x32b},_0x41e87f={_0x423734:0x277,_0x49b64e:0x5c},_0x321eba={_0x4dc5e9:0xf,_0x51ad34:0x9c},_0xfbe854=_0x3b3e74?stripAnsiAndControls(_0xd8690b):_0xd8690b;function _0x1a8fbc(_0xd99a00,_0x31ce26,_0x31ba1d,_0x332f88){return _0x211934(_0x31ce26-_0x321eba._0x4dc5e9,_0x31ce26-0x7a,_0xd99a00,_0x332f88-_0x321eba._0x51ad34);}if(_0xfbe854[_0x3658e2(0x2fa,_0x538b14._0x5ae9f8,_0x538b14._0xef51ff,0x2bf)]===0x0)return;_0x531590[_0x3658e2(_0x538b14._0x30741b,_0x538b14._0x38d1cd,0x34e,0x489)](_0xfbe854);function _0x3658e2(_0x161e31,_0x5c71b0,_0x319a52,_0x3f01f3){return _0x211934(_0x319a52- -_0x41e87f._0x423734,_0x5c71b0-0x15e,_0x3f01f3,_0x3f01f3-_0x41e87f._0x49b64e);}_0x36db05['push'](_0xfbe854),_0x271029();}function createBashTool(_0x3231f2={}){const _0x8ef30a={_0x524107:0x73f,_0x2d892e:0x657,_0x33bb69:0x641,_0x1f8078:0x31e,_0xaaead7:0x33b,_0x4469aa:0x68a,_0x570a3f:0x8e,_0x3fdc5f:0x52d,_0x510ec8:0x65a,_0x4816b8:0x50f,_0x4a91aa:0x525,_0x2304d8:0x555,_0x40e552:0x67a,_0x34818e:0x35f,_0x4539bd:0x357,_0x10d663:0x2e5,_0xa8124d:0x1d3,_0x1d0640:0x12a,_0xd92525:0x285,_0x34e973:0x11d,_0x46438e:0x4e3,_0x54e8d8:0x51f,_0x592253:0x60f,_0x10c560:0x1d4,_0x450e56:0x20c},_0x1b763f={_0x3e4d22:0x3ed,_0x19ccb8:0x312,_0x13a0db:0x3ab,_0x3e8b08:0x2e7,_0x17743b:0x403,_0x579c2e:0x33f,_0x1ca100:0x284,_0xff15c6:0x4bb,_0x2cc4c5:0x467,_0x48f127:0x3a5,_0x25a65b:0x547,_0x370431:0x540,_0x297f04:0x4e3,_0x39571c:0x5e2,_0x284010:0x51c,_0x337345:0x404,_0x30fce5:0x583,_0x4bf9e0:0x541,_0x8bd6a7:0x437,_0x373e00:0x350,_0x4e0a0e:0x504,_0x9446b0:0x4fd,_0x23d6a0:0x515,_0x1ab787:0x5a7,_0x273489:0x18e,_0x57b81e:0x1b2,_0x4a013d:0x56b,_0x480b8a:0x448,_0x101603:0x301,_0x1f1d45:0x20,_0x2fe2ad:0x329,_0x550d7e:0x27d,_0x48fb8f:0x383,_0x22d197:0x316,_0x8c754a:0x4d4,_0x2f9183:0x401,_0x279bfa:0x340,_0x5183b2:0x588,_0x5b7b78:0x403,_0x420e9e:0x3f6,_0x5e61a7:0x48c,_0xa9d611:0x47c,_0x1cd539:0x545,_0x1b166c:0x4ef,_0x439070:0x621,_0x43c8d5:0xa0,_0x5da0dd:0x117,_0x2a54b3:0x521,_0x23ced7:0x330,_0x1841da:0x407,_0x1d3042:0x71,_0x4241b2:0x18,_0x320e04:0x9b,_0x405cd8:0xbb,_0x1ae193:0x432,_0x3c49eb:0x4e4,_0x8331cc:0x369,_0x424fbe:0x4b1,_0x375eff:0x1c8,_0x260e8a:0x222,_0x401539:0x114,_0x2f8c14:0x14,_0x36702f:0x41,_0x3cbedc:0x2f4,_0x4b2749:0x2c8,_0x1abff6:0x42c,_0x516cca:0x302,_0x1f6e4e:0x3f5,_0x51fe8e:0x433,_0x165bfe:0x476,_0x55d17e:0x2b,_0x156275:0x114,_0x2bc546:0xb6,_0x178765:0x29,_0x2a57a4:0x493,_0x2e4974:0x8e,_0x516d20:0xc3,_0x2ab0ab:0x1e1,_0x4b3f8a:0x148,_0x54b91a:0x8a,_0x51fa78:0x8,_0x2206b5:0x4e,_0xd9363f:0xa8,_0x4a8bb2:0x17b,_0x702a3b:0x1e2,_0x26e6d9:0xfe,_0x45f220:0xa,_0x3551f1:0x456,_0x2987db:0x59a,_0x9b02fa:0x16c,_0x2110e6:0x26d,_0x2eaa0a:0x19e,_0x4a1c35:0x1d9,_0x3e39c9:0x20b},_0x146413={_0x1c2e13:0x651,_0x2aaf05:0x424,_0x55130c:0x50c,_0x1f453c:0x503,_0x19fb40:0x401},_0x55d6d2={_0x2405f0:0xac,_0x5d2fd1:0x16f,_0x52d0e1:0x7d},_0x10865d={_0x6105e2:0x39,_0x2f91da:0x57e},_0x248bfb={_0x3d0ec8:0x191,_0x2f0069:0x11d,_0x2a0be1:0x404},_0x5e5052={_0x489410:0x17d},_0xf430bf=_0x429d7e[_0x5a0f29(_0x8ef30a._0x524107,_0x8ef30a._0x2d892e,0x61d,_0x8ef30a._0x33bb69)](_0x3231f2[_0x20ee0f(_0x8ef30a._0x1f8078,0x215,0x337,_0x8ef30a._0xaaead7)]??process['cwd']()),_0x159cf4=(_0x3231f2[_0x5a0f29(0x748,0x5cc,_0x8ef30a._0x4469aa,0x762)]??[])[_0x20ee0f(0x1f1,0x16e,0x28f,_0x8ef30a._0x570a3f)](_0x5d9456=>_0x429d7e[_0x5a0f29(0x65b,0x539,0x61d,0x572)](_0x5d9456)),_0x21ab4b=_0x3231f2[_0x5a0f29(_0x8ef30a._0x3fdc5f,_0x8ef30a._0x510ec8,_0x8ef30a._0x4816b8,0x5cc)]??DEFAULT_TIMEOUT_MS;function _0x5a0f29(_0x1a9acc,_0x51889b,_0x21e53c,_0x57b15a){return _0x211934(_0x21e53c-0x1af,_0x51889b-_0x5e5052._0x489410,_0x51889b,_0x57b15a-0x1a2);}const _0x3af4a0=_0x3231f2['stripAnsi']??!![],_0x448122=_0x3231f2['name']??_0x5a0f29(_0x8ef30a._0x4a91aa,_0x8ef30a._0x2304d8,0x5f9,_0x8ef30a._0x40e552);function _0x20ee0f(_0x57b41c,_0x9bfc3,_0x3fbf37,_0x2a9ad0){return _0x4820c3(_0x57b41c-_0x248bfb._0x3d0ec8,_0x9bfc3-_0x248bfb._0x2f0069,_0x2a9ad0,_0x9bfc3- -_0x248bfb._0x2a0be1);}return defineTool({'name':_0x448122,'description':_0x3231f2[_0x20ee0f(_0x8ef30a._0x34818e,_0x8ef30a._0x4539bd,_0x8ef30a._0x10d663,0x3f5)]??DEFAULT_DESCRIPTION,'inputSchema':{'type':_0x20ee0f(0x314,_0x8ef30a._0xa8124d,0x142,_0x8ef30a._0x1d0640),'properties':{'command':{'type':_0x20ee0f(_0x8ef30a._0xd92525,0x1e7,_0x8ef30a._0x34e973,0xc0)},'cwd':{'type':'string'},'timeoutMs':{'type':'number'},'ignoreOutput':{'type':_0x5a0f29(_0x8ef30a._0x46438e,_0x8ef30a._0x54e8d8,_0x8ef30a._0x592253,0x589)}},'required':[_0x20ee0f(_0x8ef30a._0x10c560,0x2a6,_0x8ef30a._0x450e56,0x2d2)]},async *'execute'(_0x9703d0,_0x4224df){const _0x1229a0={_0x42d704:0x445,_0x54fb23:0x26e,_0x468f26:0x674,_0xa8a78d:0x55a,_0x521436:0x424},_0x3a2184={_0x25cf1c:0x14d,_0x569cd4:0x54a},_0x1a968f={_0x5ae8a5:0x1e1,_0x4352e2:0x5e},_0x28445c={_0x48a0e6:0x4c6,_0xd48ce3:0x48e},_0x4a2802={_0x4c5284:0x7a,_0x9237f1:0x3,_0x1d62b4:0x19a},_0x35c171={_0x39eb5a:0x195,_0x3887ab:0xb2},_0x96a292=_0x9703d0[_0x1fcc7d(0x39e,_0x1b763f._0x3e4d22,_0x1b763f._0x19ccb8,0x35a)]??_0x21ab4b;if(!Number[_0x1fcc7d(_0x1b763f._0x13a0db,_0x1b763f._0x3e8b08,0x335,_0x1b763f._0x17743b)](_0x96a292)||_0x96a292<0x1)throw new ToolExecutionError(_0x1fcc7d(0x3af,_0x1b763f._0x579c2e,_0x1b763f._0x1ca100,_0x1b763f._0xff15c6),{'command':_0x9703d0[_0x1fcc7d(_0x1b763f._0x2cc4c5,0x462,_0x1b763f._0x48f127,_0x1b763f._0x25a65b)]});throwIfAborted(_0x4224df[_0x1fcc7d(_0x1b763f._0x370431,_0x1b763f._0x297f04,_0x1b763f._0x39571c,_0x1b763f._0x284010)]);const _0x4773a6=resolveWorkingDirectory(_0x9703d0['cwd'],_0xf430bf,_0x159cf4),_0x4082f2=_0x9703d0[_0x1fcc7d(0x53d,_0x1b763f._0x337345,0x5e0,_0x1b763f._0x30fce5)]??![],_0x3bc6cf=resolveDefaultShell(_0x3231f2[_0x1fcc7d(_0x1b763f._0x4bf9e0,0x57b,0x4b2,_0x1b763f._0x8bd6a7)]),_0x4c0f14=buildShellArgs(_0x9703d0[_0x1fcc7d(0x467,_0x1b763f._0x373e00,_0x1b763f._0x4e0a0e,0x3a9)],_0x3bc6cf);function _0x16cfaa(_0x5b0cc9,_0x164ba5,_0x338ce1,_0x50ec23){return _0x5a0f29(_0x5b0cc9-_0x10865d._0x6105e2,_0x164ba5,_0x338ce1- -_0x10865d._0x2f91da,_0x50ec23-0x1);}const _0x2a4572=_0x44f556[_0x1fcc7d(0x44d,_0x1b763f._0x9446b0,_0x1b763f._0x23d6a0,_0x1b763f._0x1ab787)]()===_0x16cfaa(0x267,0xd2,_0x1b763f._0x273489,_0x1b763f._0x57b81e);let _0x29f136;try{_0x29f136=_0x1a7104(_0x3bc6cf,_0x4c0f14,{'cwd':_0x4773a6,'env':{...process[_0x1fcc7d(0x448,_0x1b763f._0x4a013d,0x464,0x385)],..._0x3231f2[_0x1fcc7d(_0x1b763f._0x480b8a,_0x1b763f._0x101603,0x3cf,0x328)]??{}},'stdio':_0x4082f2?[_0x16cfaa(-0x79,0x7d,-0xaf,_0x1b763f._0x1f1d45),_0x1fcc7d(_0x1b763f._0x2fe2ad,_0x1b763f._0x550d7e,0x33b,0x1f2),_0x1fcc7d(0x329,_0x1b763f._0x48fb8f,_0x1b763f._0x22d197,0x357)]:['ignore','pipe',_0x1fcc7d(0x5c8,0x5e3,_0x1b763f._0x8c754a,0x472)],'shell':![],'windowsHide':!![],'detached':!_0x2a4572});}catch(_0x517b53){if(isErrnoException(_0x517b53)&&_0x517b53[_0x1fcc7d(_0x1b763f._0x2f9183,0x4e4,0x517,_0x1b763f._0x279bfa)]===_0x1fcc7d(_0x1b763f._0x5183b2,0x4d6,0x5e5,0x6ac))throw new ToolExecutionError(_0x1fcc7d(_0x1b763f._0x5b7b78,_0x1b763f._0x420e9e,_0x1b763f._0x5e61a7,0x447)+_0x3bc6cf,{'command':_0x9703d0['command'],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});throw new ToolExecutionError(_0x517b53 instanceof Error?_0x517b53[_0x1fcc7d(0x520,_0x1b763f._0xa9d611,_0x1b763f._0x1cd539,0x4e4)]:String(_0x517b53),{'command':_0x9703d0['command'],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});}const _0x23d7ef=[],_0x29c353=[];function _0x1fcc7d(_0x1007e9,_0x403010,_0x517747,_0x11b2ed){return _0x5a0f29(_0x1007e9-_0x35c171._0x39eb5a,_0x403010,_0x1007e9- -0x1a6,_0x11b2ed-_0x35c171._0x3887ab);}const _0x22b5cc=new StringDecoder(_0x1fcc7d(_0x1b763f._0x1b166c,0x625,_0x1b763f._0x439070,0x58a)),_0x2ec93c=new StringDecoder(_0x16cfaa(_0x1b763f._0x43c8d5,0x26b,_0x1b763f._0x5da0dd,0xe));let _0x5edb92,_0x4846d1=![],_0xe17f5d;const _0x4dc8e9=()=>{if(!_0x5edb92)return;const _0x3d4e7d=_0x5edb92;_0x5edb92=void 0x0,_0x3d4e7d();},_0x4b945b=async()=>{if(_0x29c353['length']>0x0||_0x4846d1)return;await new Promise(_0x10e5a0=>{_0x5edb92=_0x10e5a0;});},_0x3a9c30=_0x35205c=>{function _0x2d4bbc(_0x2fd643,_0x292710,_0x4995c6,_0x16f714){return _0x1fcc7d(_0x16f714-_0x4a2802._0x4c5284,_0x4995c6,_0x4995c6-_0x4a2802._0x9237f1,_0x16f714-_0x4a2802._0x1d62b4);}appendChunk(_0x23d7ef,_0x29c353,_0x22b5cc[_0x2d4bbc(_0x28445c._0x48a0e6,0x490,_0x28445c._0xd48ce3,0x55a)](_0x35205c),_0x3af4a0,_0x4dc8e9);},_0x48eec2=_0x3a5630=>{function _0x153bd2(_0x3b200d,_0x4a8cc3,_0x5b654f,_0x38d687){return _0x16cfaa(_0x3b200d-0x1e0,_0x4a8cc3,_0x38d687- -0xba,_0x38d687-0x1ca);}appendChunk(_0x23d7ef,_0x29c353,_0x2ec93c[_0x153bd2(_0x55d6d2._0x2405f0,_0x55d6d2._0x5d2fd1,-_0x55d6d2._0x52d0e1,0x4e)](_0x3a5630),_0x3af4a0,_0x4dc8e9);};_0x29f136[_0x1fcc7d(0x407,0x368,_0x1b763f._0x2a54b3,0x41b)]?.['on'](_0x1fcc7d(_0x1b763f._0x23ced7,0x1f9,0x23b,_0x1b763f._0x1841da),_0x3a9c30),_0x29f136[_0x16cfaa(_0x1b763f._0x1d3042,0x131,0xfe,-_0x1b763f._0x4241b2)]?.['on'](_0x16cfaa(_0x1b763f._0x320e04,-0x6b,-0xa8,-_0x1b763f._0x405cd8),_0x48eec2);let _0x329a48=![],_0x25c0b1;const _0x499230=addAbortListener(_0x4224df[_0x1fcc7d(0x540,0x692,0x618,0x69f)],()=>{const _0x441919={_0x5a59f0:0x73,_0x16c39f:0x174};function _0x2880b7(_0x4de2e0,_0x295aec,_0x4ada0d,_0x497ee4){return _0x1fcc7d(_0x497ee4- -0x439,_0x295aec,_0x4ada0d-_0x441919._0x5a59f0,_0x497ee4-_0x441919._0x16c39f);}_0xe17f5d=toAbortError(_0x4224df[_0x2880b7(0x1f6,0x265,0x1e0,0x107)]['reason']),_0x4846d1=!![],_0x4dc8e9();try{killProcessGroup(_0x29f136,_0x2a4572);}catch{}});try{const _0x177f13=new Promise((_0x4e84ee,_0x30ec9a)=>{const _0x22a2ee={_0x50f553:0x4fe,_0x15344e:0x518,_0x322605:0x82,_0x10e370:0x1d3},_0x2316b3={_0x571353:0xb6,_0x62cf8b:0x1f9,_0x1e7c44:0xb0,_0x9fe4ac:0x105,_0x223c83:0x1ce,_0x4445e7:0x226,_0x21b0d6:0x1e6},_0x5146f3={_0x3a0d22:0x3c1};function _0x3bdc05(_0x34398b,_0x242a0c,_0x2deb23,_0x283cde){return _0x1fcc7d(_0x2deb23-0x87,_0x283cde,_0x2deb23-_0x1a968f._0x5ae8a5,_0x283cde-_0x1a968f._0x4352e2);}const _0x2afc81=()=>{function _0x2694f6(_0x51d578,_0x2bb5cb,_0x3a73e0,_0x499760){return _0x4629(_0x51d578- -0x217,_0x2bb5cb);}_0x25c0b1&&(clearTimeout(_0x25c0b1),_0x25c0b1=void 0x0);_0x29f136[_0x2694f6(0x1f9,0x282,0xa7,_0x2316b3._0x571353)]('error',_0x41c135);function _0x4717a9(_0x166a93,_0x1af5a4,_0x4dffe9,_0x4f526a){return _0x4629(_0x4dffe9-_0x5146f3._0x3a0d22,_0x1af5a4);}_0x29f136[_0x2694f6(_0x2316b3._0x62cf8b,_0x2316b3._0x1e7c44,0x16f,0xb4)](_0x2694f6(_0x2316b3._0x9fe4ac,_0x2316b3._0x223c83,_0x2316b3._0x4445e7,_0x2316b3._0x21b0d6),_0x2daa12);};function _0x48da79(_0xe3e746,_0x44e864,_0x3b7fff,_0x2b0a26){return _0x16cfaa(_0xe3e746-_0x3a2184._0x25cf1c,_0x44e864,_0x3b7fff-_0x3a2184._0x569cd4,_0x2b0a26-0x1e8);}const _0x41c135=_0x6108b6=>{_0x4846d1=!![],_0x4dc8e9(),_0x2afc81(),_0x30ec9a(_0xe17f5d??_0x6108b6);},_0x2daa12=(_0x28244c,_0x3a035e)=>{const _0x27e6e3={_0x23d533:0x24c};function _0x238fda(_0x26ce66,_0x145c0e,_0x1848cf,_0x36724a){return _0x4629(_0x36724a-_0x27e6e3._0x23d533,_0x1848cf);}_0x329a48=!![];function _0x459d78(_0x477308,_0x46253d,_0x21ae5a,_0x307615){return _0x4629(_0x477308- -0x34e,_0x46253d);}appendChunk(_0x23d7ef,_0x29c353,_0x22b5cc[_0x238fda(0x648,_0x22a2ee._0x50f553,0x65f,_0x22a2ee._0x15344e)](),_0x3af4a0,_0x4dc8e9),appendChunk(_0x23d7ef,_0x29c353,_0x2ec93c[_0x459d78(-_0x22a2ee._0x322605,0x72,0x61,-_0x22a2ee._0x10e370)](),_0x3af4a0,_0x4dc8e9),_0x4846d1=!![],_0x4dc8e9(),_0x2afc81();if(_0xe17f5d){_0x30ec9a(_0xe17f5d);return;}_0x4e84ee({'code':_0x28244c,'signal':_0x3a035e});};_0x25c0b1=setTimeout(()=>{const _0xdde0e5={_0x529b81:0x151};_0x4846d1=!![],_0x4dc8e9();function _0x1d10b9(_0x5ef2f2,_0x24758e,_0x519820,_0xcfa839){return _0x4629(_0x519820-_0xdde0e5._0x529b81,_0x24758e);}_0x2afc81();try{killProcessGroup(_0x29f136,_0x2a4572);}catch{}function _0x848c23(_0x3bf54d,_0x46cd34,_0x55b159,_0x464545){return _0x4629(_0x55b159-0x1ef,_0x464545);}_0x30ec9a(new ToolExecutionError(_0x848c23(0x3d3,_0x1229a0._0x42d704,0x3b5,_0x1229a0._0x54fb23)+_0x96a292+_0x848c23(0x52d,_0x1229a0._0x468f26,0x621,0x6b0),{'command':_0x9703d0[_0x1d10b9(0x409,_0x1229a0._0xa8a78d,0x458,_0x1229a0._0x521436)],'cwd':_0x4773a6,'shellPath':_0x3bc6cf,'timeoutMs':_0x96a292,'timedOut':!![]}));},_0x96a292),_0x29f136['once'](_0x48da79(0x56c,0x662,_0x146413._0x1c2e13,0x514),_0x41c135),_0x29f136[_0x3bdc05(0x333,0x2d1,_0x146413._0x2aaf05,0x563)](_0x3bdc05(_0x146413._0x55130c,0x43c,_0x146413._0x1f453c,_0x146413._0x19fb40),_0x2daa12);});while(_0x29c353[_0x1fcc7d(_0x1b763f._0x1ae193,_0x1b763f._0x3c49eb,_0x1b763f._0x8331cc,0x2fd)]>0x0||!_0x4846d1){if(_0x29c353[_0x1fcc7d(_0x1b763f._0x1ae193,0x38f,_0x1b763f._0x424fbe,0x472)]===0x0){await _0x4b945b();continue;}const _0x550234=_0x29c353[_0x16cfaa(_0x1b763f._0x375eff,_0x1b763f._0x260e8a,_0x1b763f._0x401539,0x95)]();_0x550234!==void 0x0&&(yield _0x550234);}const _0x48fb0d=await _0x177f13,_0x4a8d10=_0x4082f2?_0x16cfaa(0xd1,-_0x1b763f._0x2f8c14,-_0x1b763f._0x36702f,-0x9f)+(_0x48fb0d[_0x1fcc7d(0x401,_0x1b763f._0x3cbedc,_0x1b763f._0x4b2749,0x366)]??0x0):_0x23d7ef['join'](''),_0x48736f={'command':_0x9703d0['command'],'cwd':_0x4773a6,'exitCode':_0x48fb0d[_0x1fcc7d(0x401,_0x1b763f._0x1abff6,_0x1b763f._0x516cca,_0x1b763f._0x1f6e4e)]??0x0,'signal':_0x48fb0d['signal'],'ignoreOutput':_0x4082f2,'shellPath':_0x3bc6cf,'timeoutMs':_0x96a292};if(_0x48fb0d['code']!==0x0)throw new ToolExecutionError(_0x4a8d10||'Command\x20exited\x20with\x20code\x20'+(_0x48fb0d['code']??0x0),_0x48736f);return createToolOutput(_0x4a8d10,_0x48736f);}catch(_0x16fdb4){while(_0x29c353[_0x1fcc7d(_0x1b763f._0x1ae193,_0x1b763f._0x5b7b78,_0x1b763f._0x51fe8e,_0x1b763f._0x165bfe)]>0x0){const _0x5e7b5d=_0x29c353[_0x16cfaa(0x14c,-_0x1b763f._0x55d17e,_0x1b763f._0x156275,0x1d2)]();_0x5e7b5d!==void 0x0&&(yield _0x5e7b5d);}if(_0x16fdb4 instanceof ToolExecutionError)throw _0x16fdb4;if(_0xe17f5d)throw _0xe17f5d;if(isErrnoException(_0x16fdb4)&&_0x16fdb4[_0x16cfaa(_0x1b763f._0x2bc546,-0x2c,_0x1b763f._0x178765,0xc7)]===_0x1fcc7d(0x588,0x6cb,_0x1b763f._0x2a57a4,0x4ff))throw new ToolExecutionError(_0x16cfaa(0x90,0x17e,0x2b,0xf8)+_0x3bc6cf,{'command':_0x9703d0[_0x16cfaa(0x78,-_0x1b763f._0x2e4974,0x8f,-_0x1b763f._0x516d20)],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});throw new ToolExecutionError(_0x16fdb4 instanceof Error?_0x16fdb4[_0x16cfaa(_0x1b763f._0x2ab0ab,0x15b,_0x1b763f._0x4b3f8a,0x3b)]:String(_0x16fdb4),{'command':_0x9703d0[_0x16cfaa(-_0x1b763f._0x54b91a,-_0x1b763f._0x51fa78,0x8f,-0x72)],'cwd':_0x4773a6,'shellPath':_0x3bc6cf});}finally{_0x25c0b1&&clearTimeout(_0x25c0b1);_0x499230(),_0x29f136['stdout']?.[_0x1fcc7d(0x570,0x42f,0x61c,0x66f)](_0x16cfaa(-_0x1b763f._0x2206b5,-0x19f,-_0x1b763f._0xd9363f,0x8c),_0x3a9c30),_0x29f136[_0x16cfaa(_0x1b763f._0x4a8bb2,_0x1b763f._0x702a3b,_0x1b763f._0x26e6d9,_0x1b763f._0x45f220)]?.[_0x1fcc7d(0x570,0x634,_0x1b763f._0x3551f1,_0x1b763f._0x2987db)](_0x1fcc7d(_0x1b763f._0x23ced7,0x2e6,0x373,0x354),_0x48eec2);if(!_0x329a48&&_0x29f136[_0x16cfaa(_0x1b763f._0x9b02fa,_0x1b763f._0x2110e6,0x15c,_0x1b763f._0x2eaa0a)]&&!_0x29f136[_0x16cfaa(_0x1b763f._0x4a1c35,0x134,0x1d5,_0x1b763f._0x3e39c9)])try{killProcessGroup(_0x29f136,_0x2a4572);}catch{}}}});}function createShellExecTool(_0xe2383d={}){return createBashTool(_0xe2383d);}import{readdir,readFile as _0x38be36}from'fs/promises';import{extname,join as _0x4cebd6}from'path';import{open}from'fs/promises';import{dirname,isAbsolute as _0x53ade5,join,relative as _0x4fcefd,resolve as _0x307ee1}from'path';import{readdir as _0x1f7460,readFile as _0x5cc048}from'fs/promises';import{join as _0x237d02,relative as _0x1900bb,sep}from'path';import{delimiter}from'path';import{mkdir as _0x243df4,rm,stat as _0x4519fa,writeFile}from'fs/promises';function _0x3a2b(){const _0x19155e=['BgLZDfrVB2XZ','tLvwsu5FreLtqujmrv9mu1bFre9xtKXpquq','D2LUmZi','BwfYA2rVD24','Bwv0yvTWCM9Wzxj0Et0NB2C6DgL0BguNxq','zgvSzxrL','qMvHCMvYia','AwzYyw1L','C3rYAw5NAwz5','zNvUy3rPB24','oIaICxvLC3rPB24IigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','r2XVyG','B2zM','Aw52ywXPzf90B3bPyW','CxvLC3rPB25Z','C2vYDMvYtMfTzq','C3LTBgLUAW','tunqihnLCNzLCIa','q3jLyxrLig9Yig92zxj3CML0zsbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmU','zgLZywjSzwq','yw50AhjVCgLJlw1LC3nHz2vZ','vg9VBcbVDxrWDxqGD2fZihrYDw5JyxrLzcbHDca','DxbKyxrL','C3jJl2fNzw50l2fNzw50lNrLC3qUDhm','zMXHDe1HCa','zgLYzwn0B3j5','Bwv0yvTWCM9Wzxj0Et0NB2C6zgvZy3jPChrPB24Nxq','z29Vz2XLq3nLq3G','lMn0CW','DxrTx3rLCM0','zgfYAW','CgfJA2fNzs5QC29U','v2vIu2vHCMnO','igzHAwXLzc4','u2TPBgXZihbYB3zPzguGC3bLy2LHBgL6zwqGA25VD2XLzgDLigfUzcbZDgvWlwj5lxn0zxaGz3vPzgfUy2uU','Ag9ZDa','ru5pru5u','sw52B2TLq29TBwfUza','CMvZDwX0CW','z2L0qNjHBMnO','AhrTBfnUAxbWzxq','BgLUA1TYzwW9j2nHBM9UAwnHBcDD','Aw5ZDgfSBa','Aw5ZDhj1y3rPB25Z','lNrZEa','zg9JCY9WBgfUCY8Ymdi2lta0lte2lxb1yMXPyY10B29SCY1HCgKTAw1WBgvTzw50yxrPB24UBwq','ig1Z','ihjLCxvPCMvZihvYBcbMB3iGAhr0Ccb0CMfUC3bVCNq','BgL0zxjHBa','mteYodi1ohjWywnQyW','D2HLCMuGCMC','zxH0BMfTzq','BMf2','vg9KB1DYAxrL','yxr4','ugf0AcbPCYbUB3qGysbMAwXLoIa','ChjLzML4','mtaWlJy0lJaUma','ywn0AxzL','lNDLyNa','uxvLC3rPB24G','DxrTx2nVBNrLBNq','ywrK','tM8GBwf0y2HLCYbMB3vUzcbMB3iGCgf0DgvYBJOG','vw5RBM93BIbKzwXLz2f0zwqGywDLBNq6ia','oIaIDg9WAwmIigzPzwXKigLZihjLCxvPCMvKigfUzcbTDxn0igjLigeGC3rYAw5N','C3jJl21VzgvSCY9TB2nRlw1VzgvSlNrZ','lNrTCc4','oIbPzcbYzxf1AxjLza','BgfUzW','igj5DgvZks4','ugfYyw1LDgvYicj0B2rVCYiGBxvZDcbIzsbHig5VBI1LBxb0EsbHCNjHEq','uhvIBgLZAgvKoIa','A2LSBgvK','DhjHBNnMB3jTCW','ihDHCYbHyM9YDgvKlG','B2XKvgv4Da','qxnRvxnLCLrVB2W','B3jPz2LUvg9VBenHBgXjza','BNv2Aw4','cMbGya','lMPZB24','yNvUlMXVy2TI','qwXSia','zgLHz25VC3rPy3m','B3bLBKzPBgvZ','Ag92zxi','yMvHCMvY','yMLYDgH0Aw1L','u3rVCcbYzwfKAw5Nigf0ihrOAxmGBgLUzsbUDw1IzxiGkdeTyMfZzwqP','tM8GC3vJAcbMAwXLoIaN','BMfTzq','sw52ywXPzcbvuKWGCgfYyw1LDgvY','lNbUzW','uhjVz3jHBuzPBgvZkhG4nIK','zMLUzfjLzMvYzw5Jzxm','CMLWz3jLCa','B3v0z29PBMDdywXSCW','y29UDgvUDc10ExbL','CM91BMq','CgLWzq','zgv0ywLS','tM8GzMLSzxmGzM91BMqGBwf0y2HPBMCGCgf0DgvYBJOG','yNjVA2vU','ls1ZDgrPBW','rxHLy3v0zsbHihnOzwXSignVBw1HBMqGD2L0Acb0Aw1LB3v0ihbYB3rLy3rPB24UienHChr1CMvZihn0zg91DcbHBMqGC3rKzxjYlIbeBYbUB3qGDxnLigzVCIbPBNrLCMfJDgL2zsbJB21Tyw5KCYb0Agf0ihjLCxvPCMuGDxnLCIbPBNb1Dc4Grg8GBM90ihvZzsbMB3iGCMvHzgLUzYbMAwXLCYaODxnLiezPBgvszwfKigLUC3rLywqPlG','ChvZAa','C2vUzfjLCxvLC3q','Ahr0Ca','AhLKCMf0zu1LDge','rMLSzsb3CML0DgvUigf0ia','mtK4lJe4lJaUma','C3r5Bgu','CgXHAw4','z2vUzxjHBa','tfnqihnLCNzPy2uGAxmGBM90igf2ywLSywjSzq','yxv0Ag9YAxPHDgLVBL9JB2rL','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2TPBgXZ','C3jJl2fNzw50l2fNzw50lNrZ','lMPZEa','DMfSDwu','yxj0AwnSztPWDwjSAxnOzwrFDgLTzq','vxnLiezPBgvszwfKihDPDgGGBgLUzvn0yxj0l2XPBMvfBMqGDg8GAw5ZCgvJDcbZCgvJAwzPyYbZzwn0Aw9UCYbVzIb0AguGzNvSBcbVDxrWDxqU','Aw5JBhvKzv9KB21HAw5Z','Aw5FChjVz3jLC3m','oIbTDxn0igHHDMuGmI00ig9WDgLVBNm','z29Vz2XLq3nLs2v5','igj5DgvZicHVCMLNAw5HBdOG','q29TBwfUzcb0Aw1LzcbVDxqGywz0zxiG','Dg9VBenHBgXjza','lMPWzW','AwDUB3jL','Bg9VA3vW','rMLSzu5LDW','y29TCgXLDgvK','u2vHCMnOihrOzsb3zwiGyw5KihjLDhvYBIbYyw5RzwqGCMvZDwX0CY4','lu5VuhjVzMLSzq','BwfW','zgf0yq','z2nSAwq','C291CMnL','ksbB','tg9HzfnRAwXS','C2XPy2u','ls0T','r3jLCa','zMLYC3q','Dg9Rzw5Z','Aw52ywXPzf90B2rVCW','BM9Kzv9TB2r1BgvZ','y2XPzw50','Cgf0DgvYBG','lMPWzwC','CgvUzgLUzW','ywjVCNq','ntq2ody5mfnfs1v3vG','tg9HzgvKigzYB206ia','cGOTls0kcG','CxvLC3rPB24T','y2XPzw50x3nLy3jLDf9WB3n0','CMfUz2u','A2v5yMLUzgLUz3m','Dgf2AwX5qxbPs2v5','y21KlMv4zq','DhLWzxnJCMLWDa','ntaWmJq4ExLnEfPo','AgLNAa','ugfJA2fNzxm','CMLWz3jLCcbMywLSzwq6ia','jYbUB3qGzM91BMqUief2ywLSywjSzsbJB21Tyw5KCZOG','y2fSBfrVB2W','CMvHC29U','AxngAwXL','C2vYDMvYswq','AxnfCNjVCG','CxvLCNK','yxr0CG','Dw5PB24','Aw52ywXPzf9XDwvZDgLVBNm','y3jSzG','BgLUzvn0yxj0','Aw52ywXPzf90B2rVx2L0zw0','C3rVCMfNzurPCG','l3bPza','w01duca','Aw5JBhvKzq','qxzHAwXHyMXLignVBw1HBMrZoG','Aw5qCM9NCMvZCW','igj5DgvZicH0B3rHBdOG','Dgf2AwX5','D2HPy2GGCMC','y29ZDa','z29uB0LTCgXLBwvUDgf0Aw9U','zMvUy2vK','B3v0Chv0','zgvMyxvSDfrPBwvVDxrnCW','tgLUzsa','yxjNDw1LBNroyw1LCW','r0LgodLH','BgLUzuvUza','yxnPzgu','Ahr0CdO','BgLUzvrLEhq','v2vIu2vHCMnOihjLCxvPCMvZigf0igXLyxn0ig9UzsbZzwfYy2GGzw5NAw5LignVBMzPz3vYzwq','BMv3vgv4Da','CgXHAw50zxH0','mZqZmJu1ohvhq2ncvW','B2zMC2v0','ig1HDgnO','C2vYDMvY','v2LUr2v0','y29Uy2f0','zxHPDa','zgvSAw1PDgvY','Aw50zwDLCG','C2v0','C2H1DgrVD25tDgfYDgvK','yxjNDw1LBNrZvgv4Da','ls1MB2XSB3C','Bwv0yxrHz3m','nZa2mdy5mfLbAufutq','CMfUzg9T','l3vZCI9IAw4VCMC','ls1MAwvSzc1JB250zxH0lxnLCgfYyxrVCJ18','zMLSzvzLCNnPB25Z','z2v0u3rHDhm','Dg9KB3ncEvnLC3nPB24','BwnFy2LK','vw50AxrSzwq','CxvLC3rPB24','C3rKAw8','C3jJl2v4yw1WBgvZl2rLBw8UDhm','BNvTyMvY','y29UBMvJDgLVBG','z29Vz2XLlwnZzq','Dg9VBfjLC3vSDhm','q29Tu3bLyW','y2fWywjPBgL0AwvZ','B2jQzwn0','mtK3nZGWmfjsrvfzCq','ls1NBg9I','zxHPDcbJB2rLia','lMjPBG','Bwv0yq','w1bFxL1BxhnCu10QpW','uMvHzcbMAwXLCYbMCM9TihDVCMTZCgfJzs4Gt3b0Aw9UywXSEsbZCgvJAwz5igXPBMuGCMfUz2vZicHSAw5Lu3rHCNqSigXPBMvfBMqPlG','lM51DMLU','B25Jzq','DgLTzw91De1Z','yxjYyxK','oIaIBxvSDgLtzwXLy3qIig11C3qGyMuGysbIB29SzwfU','igj5DgvZ','vg9KB3mGAgf2zsbIzwvUig1VzgLMAwvKihn1y2nLC3nMDwXSEs4Gq29UDgLUDwuGD2L0AcbJDxjYzw50ihrHC2TZigLMigfWCgXPy2fIBguUcGO8C3LZDgvTlxjLBwLUzgvYpGPzB3vYihrVzg8GBgLZDcbOyxmGy2HHBMDLzc4Gre8GtK9uig1LBNrPB24GDgHPCYbLEhbSAwnPDgX5ihrVihrOzsb1C2vYlIbmyxrLC3qGy29UDgvUDhm6cG','vhLWzvnJCMLWDcbmyw5NDwfNzsbtzxj2zxi','vg9KBYa','C3bSAxq','BgfZDeLUzgv4t2y','CMvMzxjLBMnLCW','C3rYAw5N','BgfUz3vHz2u','mty5lJi1nc4WlJa','AxngAw5PDgu','seLhsa','CMvSyxrPDMu','DgHLBG','sw52ywXPzcb0Aw1LB3v0txm6igv4CgvJDgvKigeGCg9ZAxrPDMuGBNvTyMvY','C3rKAw4','igzYB20G','DgfZAW','BwnWxW','vMLLD2vKigLTywDLigzPBgu6ia','AxndB250zxH0','ls1WCMvMAxG','cGO8C3LZDgvTlxjLBwLUzgvYpGPuB29Sig91Dhb1Dcb3yxmGDhj1BMnHDgvKigf0ia','AxnbyNnVBhv0zq','CMvTB3zLrxzLBNrmAxn0zw5LCG','AM9PBG','l3vZCI9IAw4VyMfZAa','y2XLyxi','CMLWz3jLCcbLEgvJDxrHyMXLig5VDcbMB3vUzc4Gsw5ZDgfSBcbYzYb0BYb1C2uGr2XVyIbHBMqGr3jLCcb0B29SCY4','l2jPBI9YzW','ANnVBG','BwLU','CM9VDa','ue9tva','y29UBMvJDa','D29YA3nWywnLl3n5BwjVBa','zgLHz25VC3rPy3ngB3jgAwXL','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrZ','BM9Uzq','y29UDgvUDhm','y29KzvzLCMLMAwvY','Bg9JyxrPB24','qwDLBNqGCNvUia','B2f1DgG','CgfYzw50u2vZC2LVBKLK','Bwf0y2HLCW','vxnLCIbYzxnWB25ZzxmGCMvJzwL2zwq6ia','BgfUz18','zgLZy292zxj5','Dg9VBe5HBwu','y2fJAgvK','wZ0+nY04kcLD','rMv0y2GGD2vIihbHz2uGy29UDgvUDcbHBMqGy29UDMvYDcb0BYbnyxjRzg93BIbMB3jTyxq','zgvMyxvSDen3za','Aw5PDgLHBgL6yxrPB24','rM91BMqG','DgLTzvTKyxrLDgLTzv0','zMLUywXnzxnZywDLvgv4Da','twLJCM9ZB2z0','DhnZzxj2zxiUANm','vvjmCYbTDxn0ig5VDcbPBMnSDwrLihvZzxjUyw1LCYbVCIbWyxnZD29Yzhm','sw1Hz2uGzMLSzsbPCYb0B28GBgfYz2u6ia','A2v5CW','mJi0lJaUmc4W','zNvSzMLSBgvK','C2vUza','zw5NAw5L','mti3lJaUmc4W','C3rHCNq','u3rHCNrLzcbHz2vUDcbYDw4G','rgv0ywLSoIa','lI4U','DhjPBq','BNbT','Dhj1zq','DxjS','CgfZC3rOCM91z2G','CgfZC3DVCMq','ywXSu2v0DgXLza','DhLWzxnJCMLWDc1Syw5NDwfNzs1Zzxj2zxi','B3b0Aw9UywW','zMLSztOVlW','B3bLBG','BxvSDgLtzwXLy3q','C2vUze5VDgLMAwnHDgLVBG','BhnW','AgfUzgXL','C3jJl2fNzw50l3r1CM4Tzw5NAw5LlNrLC3qUDhm','C2vSzwn0Aw9UuMfUz2u','AxnjBNrLz2vY','tM8GtfnqihnLCNzLCIbHDMfPBgfIBguGzM9YigzPBgu6ia','BhnWlxbYB3H5','q29TBwfUzcaN','zw5HyMXLza','AMf2yxnJCMLWDa','CgfJA2fNzu5HBwu','y29Kzq','y2fSBeHPzxjHCMnOEs9VDxrNB2LUz0nHBgXZ','u2HLBgWGBM90igzVDw5KoIa','zM9VDgvY','Ag9TzwrPCG','tgLZDcbMAwXLCYbHBMqGzgLYzwn0B3jPzxmGAw4GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZlG','C3rKB3v0','ChjVy2vZCW','CMvXDwvZDa','A2LUza','Dg9VBhmVy2fSBa','yw5ZD2vYCW','uMvMDxnPBMCGDg8GzMv0y2GGysbUB24TChvIBgLJigfKzhjLC3m','zMfPBgvK','zhj5uNvU','lNrZ','zg9JCY9WBgfUCY8Ymdi2lta0lte2lw1Vy2STywDLBNqTBg9VCc1PBxbSzw1LBNrHDgLVBI5Tza','te9x','Axnoyu4','ywjVCNrLza','te9dquXbufbeqvrb','tM8Gy29TBwfUzhmGyxjLign1CNjLBNrSEsbHDMfPBgfIBguU','ChvIBgLZAgvKqxq','Dgv4Da','l29WDc9OB21LyNjLDY9IAw4VCMC','AMf2yxnJCMLWDhjLywn0','BgfIzwW','Cgf0DgvYBIbPCYbYzxf1AxjLza','lMDPzG','CNnZ','uefusa','Aw1Hz2uVD2vICa','C2vHCMnOugfYyw1Z','C3jJl2zVCM1HDhmVBwvZC2fNzs1MB3jTyxqUDhm','DgfZA2TPBgW','tNv2Aw4','C3rHCNreAxi','qxv0Ag9YAxPHDgLVBG','Dg9Rzw4','y2f0y2G','CMvJzw5JEurHExm','oIbPBNzHBgLKihn0yxr1CW','A2v5','zw5K','zMLSzq','ienHDxnLoIa','vMLLD0zPBgu','yxbPs2v5','zw5NAw5LCW','BgvUz3rO','C2vZC2LVBKLK','C2fMzq','tM8GzgLHz25VC3rPy3m','Cgf0Aa','Aw52ywXPzf90B2rVx3n0yxr1CW','C2L0ztO','C3jJl3rVB2XZl21Vy2STDg9VBc1YDw50Aw1LlNrZ','zNjVBq','BM90Awz5','tunqihrVB2WG','zhvWBgLJyxrLx3rVzg9FAwrZ','CMvWBgfJzq','C3bHD24','CgfYC2vjBNq','BxrPBwvnCW','v2fYBMLUzW','ANnJB25MAwCUANnVBG','AgvHzgvY','l3vZCI9IAw4VC2G','BM93','ugf0AcbPCYbVDxrZAwrLigfSBg93zwqGzgLYzwn0B3jPzxm6ia','zw52','yMLVBwu','Cg9W','l2jPBI9IyxnO','zgvMyxvSDa','CgXHDgzVCM0','oIaIDg9WAwmIig11C3qGyMuGBwf4idmWignOyxjHy3rLCNmSigDVDca','Aw52ywXPzf90B2rVx2nVBNrLBNq','tw96AwXSys81lJaGkfDPBMrVD3mGtLqGmtaUmdSGv2LUnJq7ihG2ncKGqxbWBgvxzwjlAxqVntm3lJm2ienOCM9Tzs8XmJmUmc4WlJaGu2fMyxjPlZuZnY4ZnIboDxzPBKjVDc8XlJa','AxnbCNjHEq','vMLLDYbHBIbPBwfNzsbMAwXLigzYB20GDgHLihDVCMTZCgfJzsbVCIbHBgXVD2vKigrPCMvJDg9YAwvZihnVihrOzsbTB2rLBcbJyw4GAw5ZCgvJDcbPDhmGDMLZDwfSignVBNrLBNqUifn1ChbVCNrZifborYWGsLbfrYWGv2vIucWGyw5KieDjrIbPBwfNzxmUifvZzsb0AgLZigzVCIbZy3jLzw5ZAg90CYWGzgLHz3jHBxmSihbOB3rVCYWGyw5Kig90AgvYigLTywDLigzPBgvZoYb1C2uGrMLSzvjLywqGzM9YihrLEhqGzMLSzxmU','qMfZAa','D2vI','lunVBw1HBMq','vg9WAwmGC2v0ihrVici','v0vcua','Cg5WBs1SB2nRlNLHBwW','lGO8l3n5C3rLBs1Yzw1PBMrLCJ4','ls1MAwXLCW','Aw5PDgLHBgL6zwq','qMLVBwuGtgfUz3vHz2uGu2vYDMvY','CMvMCMvZAf90B2TLBG','zg5Zl3bYB21PC2vZ','lw5i','CMvZDwX0','Dg9WAwm','Dg9VBc1VDxrWDxqTB2zMBg9Hza','lu5Vtg9NBW','ls1JB2X1Bw4','B3bLBMfPlxjLC3bVBNnLCY13CW','ywXS','y29TBwfUza','Dw5RBM93BG','yM9VBgvHBG','l2jPBI9ZAa','igj5DgvZks4GtM8GC2vZC2LVBIbKAxjLy3rVCNKGyxzHAwXHyMXLigzVCIbMAwXLig9MzMXVywqUcJWVC3LZDgvTlxjLBwLUzgvYpG','C29Tzq','mtCYlJe2lJaUma','Aw5WDxq','DhLWzq','zgf0zvjLC3rYAwn0','vg9KBYbPDgvTCYbTDxn0igHHDMuGDw5PCxvLieLeCW','B3jPz2LUywW','C3rHDhvZvgv4Da','uMvMDxnPBMCGDg8GzMv0y2GGysbOB3n0ihrOyxqGCMvZB2X2zxmGDg8GysbUB24TChvIBgLJigfKzhjLC3m','AxrLBxm','u2vHCMnOigzVCIbHihjLz2v4ihbHDhrLCM4GAw4GD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3j5igzPBguGy29UDgvUDhmU','CMvZB2X2zq','BwfUDwfS','Dgv4DerVy3vTzw50l2rVy3vTzw50u3LTyM9S','B2XSyw1H','ywDLBNrjza','y2XVC2u','y2fSBeLK','ChjVCgvYDgLLCW','tM8Gtunqie9bDxrOignVzguGDMvYAwzPzxiGC2f2zwq','AgfZ','rgLHz25VC3rPyW','rgLYzwn0B3j5ig5VDcbMB3vUzdOG','AxntEw1IB2XPy0XPBMS','AxnfBMfIBgvK','Dg9KB3m','C25PChbLDa','EwfYBI5SB2nR','BwvKAxvT','zgLZCg9Zzq','qxzHAwXHyMXLihnRAwXSCYaOC2TPBgXFBMfTztOGzgvZy3jPChrPB24PoG','yNL0zuXLBMD0Aa','C2vHCMnOrgvWDgG','lM10CW','C3jJl3nOyxjLzc90ExbLCY50CW','y2HHCMfJDgvYig11C3qGyMuGysbWB3nPDgL2zsbPBNrLz2vY','Aw5JBhvKzxm','C2vYDMvYCW','yxv0AfjLCxvPCMvK','zxjYB3jnzxnZywDL','y3DK','Dg9Rzw5tDg9YywDLs2v5','yxv0Aa','CMfUAW','Cgf0Ag5HBwu','Dgv4DerVy3vTzw50l3jLzMvYzw5Jzxm','C2H1DgrVD24','rwrPDcbHifvurI04ihrLEhqGzMLSzsbPBIb0AguGD29YA3nWywnLig9YigfSBg93zwqGzgLYzwn0B3jPzxmGyNKGCMvWBgfJAw5NihrOzsbMAxjZDcbLEgfJDcb0zxH0ihnLz21LBNqU','B2XKvgv4DcbUB3qGzM91BMqGAw4GzMLSzs4GtwfRzsbZDxjLigL0ig1HDgnOzxmGzxHHy3rSEsbPBMnSDwrPBMCGD2HPDgvZCgfJzs4Gu2vHCMnOAw5NigzVCJOGiG','y29UDgv4Da','vg9Vig1HBNKGCMvKAxjLy3rZ','Dg9tDhjPBMC','y291BNq','BwnFzwLK','zxf1ywXZ','Dgv4DerVy3vTzw50l2rPzenSB3nL','y2XPzw50twv0ywrHDgfvCMW','ie9sia','ls1OAwrKzw4','rgvSzwDHDgvZigeGDgfZAYb0BYbHBM90AgvYigfNzw50igfUzcb3ywL0CYbMB3iGy29TCgXLDgLVBG','Aw1Hz2uVz2LM','mtKYlJe2oc4WlJa','CMvXDwLYzwq','zxH0zw5ZAw9UCW','y2HHCKnVzgvbDa','zxzLCNK','CNvUswq','ygbGANnVBGO','C2nVCgvZ','Ec1HCgKTA2v5','B3bLCMf0Aw9U','C2HHmJu2','DxrTx2nHBxbHAwDU','q291BgqGBM90ihjLC29SDMuGAg9ZDa','Dg90ywW','Dhj1zwnVBg9Y','ANnVBMm','Ahr0Chm6lY93D3CUz29Vz2XLyxbPCY5JB20Vy3vZDg9TC2vHCMnOl3yX','CMvNAw9U','Aw1Hz2vZ','sgLUDa','C2v0vg9KB3m','C3rHCNrZv2L0Aa','mtKYlJaUmc4W','zMv0y2HjBxbS','zgLYBMfTzq','Dg9VBa','rwrPDcbHChbSAwvKihn1y2nLC3nMDwXSEs4','zg9JDw1LBNrtEw1IB2W','D29YA3nWywnLu3LTyM9SihjLCxvPCMvZigeGBM9UlwvTChr5ihf1zxj5','DgL0Bgu','BM9Zy3jPChq','lMPZB25J','BxrPBwu','Aw1Hz2uVANbLzW','DgvZDa','CMCUzxHL','lMnTza','B2C6DxbKyxrLzf90Aw1L','cIHszxn1BhrZigfYzsb0CNvUy2f0zwqUienVBNnPzgvYihvZAw5NigeGBw9YzsbZCgvJAwzPyYbWyxrOig9YihbHDhrLCM4Ukq','C3vIyxjYyxK','xg5DkJ8','DhLWzxnJCMLWDhjLywn0','tg9HzcbHihnRAwXSihrVigDLDcbKzxrHAwXLzcbPBNn0CNvJDgLVBNmGzM9YigeGC3bLy2LMAwmGDgfZAY4','AgvHzgvYCW','D29YA3nWywnLu3LTyM9S','C3rKzxjY','cGPbuKDvtuvovfm6ia','CMvTB3zL','ChjPB3jPDhK','Dhj1BMm','vxbKyxrLihrOzsbZzxnZAw9UihrVCgLJihrVigeGy29Uy2LZzsaZltyGD29YzcbUB3vUihbOCMfZzsb0Agf0ignHChr1CMvZihrOzsbJDxjYzw50ihn1yMPLy3qUcGPdywXSihrOAxmGDg9VBcb3AgvUihrOzsbZzxnZAw9Uj3mGC3vIAMvJDcbIzwnVBwvZignSzwfYig9YihnOAwz0CYb0BYbZB21LDgHPBMCGy2XLyxjSEsbKAwzMzxjLBNqG4Ocuig5VDcbMB3iGBwLUB3iGDgfUz2vUDhmGB3iGy2XHCMLMEwLUzYbZDwiTCxvLC3rPB25ZlIbjzIbUB3rOAw5NigHHCYbTzwfUAw5NzNvSBhKGy2HHBMDLzcWGzg8GBM90ignHBgWGAxqUcGPhB29KihrVCgLJicHUB3vUihbOCMfZzsWGmY02ihDVCMrZktOkicaIrgvIDwCGvfmGz2vUzxjPy3mGzxjYB3iIcIaGiLjLzMfJDg9Yigf1DgGGBwLKzgXLD2fYzsikicaIqwrKifn0CMLWzsb3zwjOB29RigHHBMrSzxiIcGPcywqGDg9WAwmGkgz1BgWGC2vUDgvUy2uGB3iGDMfNDwuPoGOGicjuAguGDxnLCIb3yw50CYb0BYbKzwj1zYbHifr5Cgvty3jPChqGz2vUzxjPy3mGzxjYB3iGAw4GDgHLAxiGChjVAMvJDcikicaIy29KAw5NiG','yMfZzty0','zMXVB3i','z2v0','zxjYB3i','D3jPDgu','yxjNDw1LBNrZ','o1TExg5DkJ8','yxjNDw1LBNriAw50','ywXSB3DLzerPCNm','B25szwrPCMvJDa','Aw5KzxHpzG','zMLSzvbHDgG','t0zg','zgvUBY5QC29UyW','Aw1Hz2uVCg5N','uxvLCNKGtgfUz3vHz2uGu2vYDMvYifbYB3rVy29SignVzguGAw50zwXSAwDLBMnLigzVCIb3B3jRC3bHy2uGzMLSzxm6igrLzMLUAxrPB25ZlcbYzwzLCMvUy2vZlcbOB3zLCIWGC3LTyM9SCYWGy2fSBcbOAwvYyxjJAhKSigfUzcbKAwfNBM9ZDgLJCY4','C2HPzNq','BgLI','y2fSBgjHy2TvCMW','DxrMoa','mc4WlJa','yxnJAwK','Bw9Kzq','C3bHD25PBMC','yxnRvxnLCG','r29Vz2XLientrsbZDxbWB3j0CYbHDcbTB3n0ihrOzsbMAxjZDcaXmdaGCMvZDwX0CW','qgjPB21LANmVyMLVBwu','BgLTAxq','ls1YzwDLEha','Dgv4DerVy3vTzw50l2rPzenOyw5Nzq','DxjP','yxnZAwDU','r0LgodDH','Dg9vChbLCKnHC2u','C3jJl21VzgvSCY9HBNrOCM9WAwmTBw9KzwWUDhm','yw5ZAte2','sw52B2TLigeGy3vZDg9TignVBw1HBMqGyNKGCMvUzgvYAw5NigL0CYbYzxvZywjSzsb3B3jRzMXVDYbPBNn0CNvJDgLVBNmU','nhHbDu1ftq','AhjLzG','yxv0BW','y29TBwfUzhm','Aw1Hz2u','y2vPBa','Bwf4','BNvT','zg9JCY9WBgfUCY8Ymdi2lta0lte2lwfNzw50lwXVB3aTy29Yzs1KzxnPz24UBwq','A2LSBa','C3rHDhvZ','CgfYC2u','Ag9ZDg5HBwu','B3rOzxi','owrPtvPbsq','thnW','vw5ZDxbWB3j0zwqGAw1Hz2uGzgv0ywLSigXLDMvSoIa','yMfZzw5HBwu','CNvUBMLUzW','lM1QCW','zMjJBgLK','DxnLCM5HBwu','sw5MB3jTyxrPB24','zgvZy3jPChrPB24','zgvMAw5PDgLVBG','y2HHCMfJDgvY','uhjVz3jHBuzPBgvZ','DxrTx21LzgL1Bq','y2XPzw50CW','D2fPDezVCKrPywDUB3n0AwnZ','u0HfteW','BwvZC2fNzq','C3rHDgu','Bg9HzenVBw1HBMq','y2XPzw50sw5MB3jTyxrPB24','zg9TywLUCW','ihrVzg8GAxrLBxmGAgf2zsbIzwvUignVBxbSzxrLzcbZDwnJzxnZzNvSBhKHcGO8C3LZDgvTlxjLBwLUzgvYpGPbBgWGDg9KBYbPDgvTCYbHCMuGBM93ignVBxbSzxrLzceGqxnRigfIB3v0ig5LEhqGC3rLChmUienVBxbSzxrLzcbSAxn0oGO','y2HHBMDL','yM0Ynq','twLZC2LUzYbYzxf1AxjLzcbWyxjHBwv0zxi6ihf1zxj5','rMv0y2GGDgLTzwqGB3v0','AxneAxjLy3rVCNK','sfruuca','mJCWndC3twnUr05j','B3b0Aw9UCW','mJfJC1bPvwC','yxbWBgLJyxrPB24VANnVBG','ChjVDg9JB2W','DxrTx3nVDxjJzq','Dg9mB3DLCKnHC2u','oIbPBNzHBgLKihbYAw9YAxr5','CgLK','C2nYAxb0','BgLNAhq','Aw5JB21PBMDdywXSCW','ihjLCxvPCMvZie9bDxrOignVBM5Ly3rPB24GB3b0Aw9UCW','zw51Bq','zgLNzxn0','oIb0B2rVigL0zw0GAxmGCMvXDwLYzwq','y3jLyxrLzef0','AwDUB3jLt3v0Chv0','y29UDgvUDa','C2vZC2LVBG','C2LNBMfS','C2HLBgXqyxrO','lcbpChrPB24G','Bwf4uMvKAxjLy3rZ','zMLUza','Ahr0Chm6lY9VBgXHBweUy29Tl2fWAs93zwjFC2vHCMnO','tM8Gy2HHBMDLCYaOy29UDgvUDcbPzgvUDgLJywWPlG','z29uB0rLzMLUAxrPB24','DhnJB25MAwCUANnVBG','zMLSDgvY','Aw1WBgvTzw50yxrPB24','Dg9VBhm','y29UzMLN','iYmGu2TPBgW6ia','tM8Gy2fSBcbOAwvYyxjJAhKGCMvZDwX0CW','vxnLihrOAxmGD2HLBIb0AguGDxnLCIDZihjLCxvLC3qGBwf0y2HLCYbHBIbHDMfPBgfIBguGy29TBwfUzcbKzxnJCMLWDgLVBIWGzxzLBIbPzIb0AguGDxnLCIbKAwqGBM90ihr5CguGDgHLihnSyxnOignVBw1HBMqGzxHWBgLJAxrSEs4','tM8GC3LTyM9SCYbMB3vUza','B25oB3rPzMLJyxrPB24','Dg9ju09tDhjPBMC','CgfJA2fNzxm','C29YDa','yNvUlMXVy2S','ChjLCgfYzunHBgXiAwvYyxjJAhK','tM8GBg9JyxrPB25ZigzVDw5K','DhjHBNnWB3j0','vw5RBM93BIb0B29SoIa','tM8GAg92zxiGAw5MB3jTyxrPB24','C2L6zq','Ahr0Chm6lY9HCgKUDgf2AwX5lMnVBs9ZzwfYy2G','BgLUzq','CMvJB3jK','zgLZy292zxj5u3rHDgu','Dg9WAwmGBxvZDcbIzsbHig5VBI1LBxb0EsbZDhjPBMC','zMLUywXnzxnZywDL','l3vZCI9SB2nHBc9IAw4VCMC','z2XVyG'];_0x3a2b=function(){return _0x19155e;};return _0x3a2b();}import{hostname}from'os';import{dirname as _0xf63fd4}from'path';import{unwatchFile,watchFile}from'fs';import{readFile as _0x45b7bd,rename,writeFile as _0x15b1e8}from'fs/promises';import{homedir as _0x240544}from'os';import{dirname as _0x379f91,isAbsolute as _0x136393,join as _0x23fef1,resolve as _0x1d15ec}from'path';import{parse as _0x38fe83,stringify as _0x394367}from'yaml';import{cp,mkdir as _0x3d5cfb,readFile as _0x54b925,rm as _0x925072,writeFile as _0x41379f}from'fs/promises';import{homedir}from'os';import{join as _0xc386}from'path';import{parse as _0x5f2537,stringify as _0x24ed21}from'yaml';import{z}from'zod';import{readdir as _0x5c39ec,readFile as _0x46f4ea}from'fs/promises';import{join as _0x2323a8}from'path';var MAX_FRONTMATTER_BYTES=0x40*0x400;function tokenizeCommandArguments(_0x332017){const _0x249590={_0x3f393d:0xd,_0x24ac3b:0x386,_0x165482:0x2b6,_0x55aebd:0x2ef,_0x3684bd:0x1f5,_0x476e6f:0x1eb},_0x87f9dd={_0x3f1c00:0xfb},_0x5f5b77={_0xa18f0b:0xb3};function _0x21a72a(_0x18fbcb,_0x34c313,_0x16dbb6,_0x5f806f){return _0x4820c3(_0x18fbcb-0x24,_0x34c313-_0x5f5b77._0xa18f0b,_0x18fbcb,_0x5f806f- -0x519);}const _0x1e926d=[];let _0x1c2f65='',_0x30ca73=0x0;function _0x2589ca(_0x5294e7,_0x16030e,_0x3ba1a7,_0x52ce21){return _0x4820c3(_0x5294e7-_0x87f9dd._0x3f1c00,_0x16030e-0x77,_0x5294e7,_0x16030e- -0x383);}while(_0x30ca73<_0x332017['length']){const _0x3ee8dc=_0x332017[_0x30ca73];if(_0x3ee8dc==='\x5c'&&_0x30ca73+0x1<_0x332017[_0x21a72a(0x27f,_0x249590._0x3f393d,0x185,0x15c)])_0x1c2f65+=_0x332017[_0x30ca73+0x1],_0x30ca73+=0x2;else{if(_0x3ee8dc==='\x22'||_0x3ee8dc==='\x27'){const _0x5c6fa2=_0x3ee8dc;_0x30ca73++;while(_0x30ca73<_0x332017[_0x21a72a(0xc1,0x273,0x212,0x15c)]&&_0x332017[_0x30ca73]!==_0x5c6fa2){_0x332017[_0x30ca73]==='\x5c'&&_0x30ca73+0x1<_0x332017[_0x2589ca(_0x249590._0x24ac3b,0x2f2,_0x249590._0x165482,0x2e7)]?(_0x1c2f65+=_0x332017[_0x30ca73+0x1],_0x30ca73+=0x2):(_0x1c2f65+=_0x332017[_0x30ca73],_0x30ca73++);}_0x30ca73++;}else _0x3ee8dc!==void 0x0&&/\s/[_0x21a72a(0x190,_0x249590._0x55aebd,0x259,_0x249590._0x3684bd)](_0x3ee8dc)?(_0x1c2f65&&(_0x1e926d[_0x21a72a(_0x249590._0x476e6f,0x355,0x43d,0x2f8)](_0x1c2f65),_0x1c2f65=''),_0x30ca73++):(_0x1c2f65+=_0x3ee8dc,_0x30ca73++);}}if(_0x1c2f65)_0x1e926d['push'](_0x1c2f65);return _0x1e926d;}function renderCommandInstructions(_0x8a592f){const _0xb589ec={_0x49555d:0x795,_0x192b57:0x733,_0x33ab55:0x644,_0xdd49d6:0x62a,_0x393789:0x66d,_0x442645:0x68e,_0x88339a:0x561,_0x1dec3d:0x511,_0x440414:0x443,_0x80593e:0x3b8,_0x1516b6:0x4c4,_0x45b1c9:0x504,_0x42555c:0x374,_0x24b5b3:0x45f,_0x1b8942:0x447,_0x20afc5:0x4f0,_0x5eb05e:0x417,_0x50d81d:0x684,_0x25b1c3:0x6e2,_0x2cdadd:0x613,_0x2a27d0:0x67b},_0x281e28={_0x29ecf9:0x77,_0x210104:0x23a},_0x2fc125={_0x283890:0x491,_0x5e38c8:0x356},_0x13e077={_0x1de382:0x113,_0x53a734:0x112},_0x436b57={_0x5c1107:0x9f};function _0x2446a9(_0xb97394,_0x137291,_0x5af450,_0x492847){return _0x4820c3(_0xb97394-0x1ea,_0x137291-0x1cd,_0x5af450,_0x492847- -_0x436b57._0x5c1107);}let _0x767db9=_0x8a592f[_0x2446a9(_0xb589ec._0x49555d,0x5e5,0x69b,_0xb589ec._0x192b57)],_0x7c7562=![];const _0x624a88=tokenizeCommandArguments(_0x8a592f[_0x2446a9(0x485,_0xb589ec._0x33ab55,0x59b,0x523)]);_0x767db9=_0x767db9[_0x2446a9(_0xb589ec._0xdd49d6,0x648,_0xb589ec._0x393789,0x5e2)](/\$ARGUMENTS\[(\d+)\]/g,(_0x3b075b,_0x4ca017)=>{return _0x7c7562=!![],_0x624a88[Number(_0x4ca017)]??'';}),_0x767db9=_0x767db9[_0x2446a9(_0xb589ec._0x442645,_0xb589ec._0x88339a,0x570,0x5e2)](/\$ARGUMENTS\b/g,()=>{function _0x44aa23(_0x1905fc,_0x211e27,_0x11e5d6,_0x2b4aea){return _0x2446a9(_0x1905fc-0x45,_0x211e27-_0x13e077._0x1de382,_0x2b4aea,_0x211e27- -_0x13e077._0x53a734);}return _0x7c7562=!![],_0x8a592f[_0x44aa23(0x2fc,0x411,_0x2fc125._0x283890,_0x2fc125._0x5e38c8)];});if(_0x8a592f[_0x2446a9(_0xb589ec._0x1dec3d,_0xb589ec._0x440414,0x660,0x50f)]&&_0x8a592f[_0x520cb4(0x21a,0x374,0x33d,_0xb589ec._0x80593e)][_0x2446a9(0x4e4,_0xb589ec._0x1516b6,0x6df,0x5d6)]>0x0)for(let _0xd885e8=0x0;_0xd885e8<_0x8a592f['argumentNames'][_0x520cb4(_0xb589ec._0x45b1c9,0x43b,0x51e,0x3cc)];_0xd885e8++){const _0x2255e7=_0x8a592f[_0x520cb4(0x4ce,_0xb589ec._0x42555c,0x43e,0x224)][_0xd885e8];if(_0x2255e7){const _0x2a8c35=new RegExp('\x5c$'+_0x2255e7+'\x5cb','g');_0x767db9=_0x767db9['replace'](_0x2a8c35,()=>{return _0x7c7562=!![],_0x624a88[_0xd885e8]??'';});}}function _0x520cb4(_0x16f1c7,_0x38dfd4,_0xe306c5,_0x556417){return _0x4820c3(_0x16f1c7-_0x281e28._0x29ecf9,_0x38dfd4-0x11a,_0xe306c5,_0x38dfd4- -_0x281e28._0x210104);}return _0x767db9=_0x767db9[_0x520cb4(_0xb589ec._0x24b5b3,_0xb589ec._0x1b8942,_0xb589ec._0x20afc5,_0xb589ec._0x5eb05e)](/\$(\d+)\b/g,(_0x180e70,_0x4744ed)=>{return _0x7c7562=!![],_0x624a88[Number(_0x4744ed)]??'';}),!_0x7c7562&&_0x8a592f['argumentsText'][_0x2446a9(0x5ba,0x494,_0xb589ec._0x50d81d,0x58d)]()&&(_0x767db9=_0x767db9+_0x2446a9(0x7b7,_0xb589ec._0x25b1c3,_0xb589ec._0x2cdadd,_0xb589ec._0x2a27d0)+_0x8a592f[_0x2446a9(0x5dd,0x589,0x644,0x523)]),_0x767db9;}var chatModelAuthSchemeSchema=z[_0x4820c3(0x793,0x6eb,0x83d,0x77c)]([_0x4820c3(0x79a,0x827,0x95c,0x7fe),_0x211934(0x4a8,0x571,0x534,0x594)]),apiKeyAuthSchema=z[_0x211934(0x38b,0x2ba,0x36f,0x2ad)]({'type':z[_0x211934(0x58b,0x4b0,0x585,0x4f7)](_0x211934(0x427,0x519,0x2f6,0x33a)),'apiKey':z[_0x211934(0x39f,0x3db,0x306,0x303)](),'authScheme':chatModelAuthSchemeSchema[_0x211934(0x3e8,0x499,0x28f,0x43b)]()})[_0x4820c3(0x6e6,0x53a,0x5c1,0x630)](),oauthAuthSchema=z['object']({'type':z[_0x4820c3(0x764,0x75d,0x8c9,0x7d7)](_0x4820c3(0x66d,0x550,0x761,0x60f)),'access':z[_0x4820c3(0x6e8,0x554,0x68c,0x5eb)](),'refresh':z[_0x211934(0x39f,0x466,0x3a6,0x294)](),'expires':z[_0x211934(0x385,0x448,0x26b,0x2c9)]()[_0x211934(0x3e8,0x3ef,0x348,0x360)](),'authScheme':chatModelAuthSchemeSchema['optional']()})['passthrough'](),authMethodSchema=z['union']([apiKeyAuthSchema,oauthAuthSchema]),modelDefinitionSchema=z[_0x211934(0x38b,0x446,0x358,0x266)]({'id':z['string'](),'name':z[_0x211934(0x39f,0x388,0x4bd,0x2ab)]()[_0x4820c3(0x6b2,0x6e9,0x586,0x634)]()})[_0x4820c3(0x5fa,0x5f0,0x529,0x630)](),modelConfigSchema=z['union']([z[_0x4820c3(0x91d,0x843,0x856,0x7d7)](![]),z[_0x4820c3(0x6bf,0x841,0x6ac,0x7d7)](!![]),z[_0x4820c3(0x627,0x6cd,0x722,0x5eb)](),z[_0x211934(0x396,0x319,0x265,0x470)](z[_0x211934(0x39f,0x295,0x37d,0x278)]()),z[_0x211934(0x396,0x3d2,0x47b,0x307)](modelDefinitionSchema)]),chatModelSurfaceSchema=z[_0x211934(0x530,0x4c3,0x5bb,0x62b)]([_0x211934(0x56f,0x5cf,0x666,0x4d7),_0x4820c3(0x697,0x63f,0x609,0x55d),'openai-responses',_0x4820c3(0x5f0,0x7b9,0x562,0x6a8)]),providerConfigSchema=z['object']({'apiKey':z[_0x4820c3(0x523,0x6e9,0x574,0x5eb)]()['optional'](),'token':z[_0x4820c3(0x50c,0x615,0x58d,0x5eb)]()[_0x211934(0x3e8,0x368,0x30c,0x40d)](),'defaultModel':z['string']()[_0x211934(0x3e8,0x2ea,0x4e7,0x4cc)](),'smallModel':z[_0x4820c3(0x6b5,0x58f,0x701,0x5eb)]()['optional'](),'currentAuth':z['string']()['optional'](),'auth':z[_0x4820c3(0x494,0x64b,0x510,0x5e2)](authMethodSchema)[_0x4820c3(0x6cf,0x5da,0x629,0x634)](),'surface':chatModelSurfaceSchema[_0x4820c3(0x518,0x4e9,0x60d,0x634)](),'baseUrl':z[_0x4820c3(0x5b4,0x622,0x6b4,0x5eb)]()['optional'](),'models':modelConfigSchema['optional'](),'customHeaders':z[_0x4820c3(0x76e,0x8ed,0x6a9,0x7a1)](z['string'](),z[_0x4820c3(0x5fd,0x61d,0x530,0x5eb)]())[_0x4820c3(0x73b,0x5af,0x51b,0x634)]()})[_0x4820c3(0x54f,0x572,0x776,0x630)](),mcpServerConfigSchema=z['object']({'command':z[_0x4820c3(0x4f3,0x635,0x637,0x5eb)]()['optional'](),'args':z[_0x4820c3(0x66e,0x618,0x51c,0x5e2)](z[_0x211934(0x39f,0x42d,0x296,0x2d2)]())[_0x4820c3(0x616,0x5e6,0x677,0x634)](),'env':z[_0x211934(0x555,0x631,0x53e,0x665)](z[_0x211934(0x39f,0x2eb,0x476,0x272)](),z['string']())['optional'](),'transport':z[_0x4820c3(0x745,0x802,0x621,0x77c)]([_0x4820c3(0x69f,0x50b,0x690,0x5cf),_0x211934(0x5c7,0x61b,0x6cc,0x57d)])[_0x211934(0x3e8,0x2f0,0x4ab,0x363)](),'url':z[_0x4820c3(0x574,0x513,0x682,0x5eb)]()['optional'](),'headers':z['record'](z['string'](),z[_0x4820c3(0x632,0x662,0x4fb,0x5eb)]())[_0x4820c3(0x769,0x58d,0x741,0x634)](),'prefix':z[_0x211934(0x39f,0x4a4,0x43f,0x37a)]()[_0x4820c3(0x78b,0x6a3,0x64c,0x634)](),'timeoutMs':z['number']()['optional'](),'enabled':z[_0x4820c3(0x723,0x79a,0x691,0x6ac)]()[_0x4820c3(0x73a,0x506,0x774,0x634)](),'auth':z[_0x211934(0x38b,0x3fe,0x22b,0x435)]({'type':z[_0x4820c3(0x6dd,0x7ef,0x6e8,0x77c)]([_0x4820c3(0x6f0,0x62f,0x5c8,0x60a),_0x211934(0x5b2,0x5e1,0x50c,0x584),'oauth']),'token':z[_0x4820c3(0x4f0,0x61f,0x5e1,0x5eb)]()['optional'](),'oauth':z[_0x211934(0x38b,0x4ad,0x3a9,0x416)]({'clientId':z[_0x4820c3(0x507,0x5b0,0x5dc,0x5eb)]()[_0x211934(0x3e8,0x341,0x4c8,0x3a9)](),'clientMetadataUrl':z[_0x211934(0x39f,0x44b,0x2be,0x286)]()[_0x4820c3(0x6ab,0x5dc,0x6ad,0x634)](),'authorizationServer':z[_0x4820c3(0x577,0x4e2,0x53c,0x5eb)]()[_0x211934(0x3e8,0x4ab,0x2e6,0x33f)](),'scopes':z[_0x4820c3(0x5ef,0x658,0x5a8,0x5e2)](z[_0x211934(0x39f,0x4c8,0x408,0x243)]())[_0x4820c3(0x554,0x714,0x72d,0x634)](),'tokenStorageKey':z[_0x211934(0x39f,0x4fc,0x354,0x324)]()[_0x211934(0x3e8,0x49c,0x48d,0x4ae)]()})[_0x4820c3(0x61c,0x745,0x5ad,0x630)]()[_0x4820c3(0x659,0x6fd,0x5ec,0x634)]()})[_0x4820c3(0x6ea,0x5cc,0x574,0x630)]()[_0x211934(0x3e8,0x2cb,0x352,0x31e)]()})[_0x211934(0x3e4,0x2d8,0x4a2,0x3e8)](),mcpSettingsSchema=z['object']({'servers':z[_0x4820c3(0x7f2,0x86c,0x73e,0x7a1)](z[_0x211934(0x39f,0x44c,0x482,0x341)](),mcpServerConfigSchema)['optional'](),'allowedTools':z['record'](z['string'](),z[_0x4820c3(0x7f4,0x74a,0x764,0x7a1)](z[_0x4820c3(0x6d0,0x558,0x71d,0x5eb)](),z[_0x4820c3(0x724,0x6c9,0x74c,0x6ac)]()))[_0x211934(0x3e8,0x3e3,0x38e,0x45f)](),'defaultTimeoutMs':z[_0x211934(0x385,0x4a7,0x264,0x28b)]()[_0x211934(0x3e8,0x466,0x373,0x468)]()})['passthrough'](),skillsSettingsSchema=z[_0x211934(0x38b,0x2eb,0x369,0x457)]({'enabled':z[_0x211934(0x460,0x3bb,0x41a,0x33b)]()[_0x211934(0x3e8,0x505,0x468,0x40d)](),'includeDefaults':z[_0x211934(0x460,0x577,0x377,0x3fa)]()[_0x211934(0x3e8,0x394,0x443,0x34c)](),'directories':z[_0x4820c3(0x544,0x66f,0x5ad,0x5e2)](z[_0x211934(0x39f,0x4fd,0x460,0x4d5)]())[_0x4820c3(0x59f,0x640,0x605,0x634)](),'exclude':z[_0x4820c3(0x4f3,0x5d6,0x5cd,0x5e2)](z[_0x4820c3(0x634,0x509,0x692,0x5eb)]())[_0x211934(0x3e8,0x2f6,0x4f5,0x426)]()})[_0x211934(0x3e4,0x29f,0x3ba,0x4fc)](),commandsSettingsSchema=z[_0x4820c3(0x6f4,0x589,0x58a,0x5d7)]({'enabled':z['boolean']()[_0x211934(0x3e8,0x408,0x3ed,0x2b0)](),'directories':z['array'](z['string']())[_0x4820c3(0x4e5,0x4e1,0x670,0x634)]()})[_0x211934(0x3e4,0x2f2,0x51c,0x3c5)](),agentsSettingsSchema=z[_0x211934(0x38b,0x3b5,0x2c2,0x411)]({'enabled':z['boolean']()[_0x4820c3(0x73c,0x688,0x68d,0x634)](),'includeDefaults':z[_0x211934(0x460,0x423,0x452,0x34f)]()[_0x211934(0x3e8,0x45d,0x312,0x48e)](),'directories':z[_0x211934(0x396,0x3aa,0x322,0x29f)](z[_0x4820c3(0x66a,0x550,0x601,0x5eb)]())[_0x4820c3(0x5c5,0x748,0x605,0x634)]()})[_0x4820c3(0x5f0,0x667,0x4ec,0x630)](),uiThemeSettingsSchema=z['object']({'mode':z['enum'](['auto',_0x4820c3(0x7e5,0x902,0x85e,0x7c5),_0x4820c3(0x8ca,0x635,0x7eb,0x779)])[_0x4820c3(0x548,0x745,0x4ea,0x634)](),'colorLevel':z[_0x211934(0x530,0x4ce,0x67f,0x403)]([_0x211934(0x4fa,0x579,0x46b,0x4ff),_0x4820c3(0x590,0x521,0x739,0x60a),_0x211934(0x4f6,0x39d,0x5a6,0x5d5),'ansi256',_0x211934(0x4ae,0x523,0x49a,0x4b6)])[_0x4820c3(0x664,0x746,0x635,0x634)](),'backgrounds':z[_0x211934(0x530,0x4ce,0x589,0x62e)]([_0x4820c3(0x7d2,0x711,0x6c9,0x746),'on',_0x4820c3(0x6b3,0x851,0x69a,0x7b3)])[_0x4820c3(0x76f,0x506,0x607,0x634)](),'messageStyle':z[_0x211934(0x530,0x508,0x4b6,0x48a)]([_0x211934(0x30d,0x3a4,0x400,0x373),'boxed'])[_0x4820c3(0x78a,0x760,0x68b,0x634)]()})[_0x211934(0x3e4,0x331,0x422,0x2f3)](),statuslineSegmentSchema=z[_0x211934(0x530,0x4ff,0x4f0,0x593)](['model',_0x211934(0x536,0x624,0x591,0x67b),'thinking','sudo',_0x211934(0x330,0x373,0x21d,0x3b9),_0x4820c3(0x592,0x66a,0x649,0x6e0),_0x4820c3(0x708,0x700,0x657,0x616),'requests',_0x4820c3(0x690,0x8e7,0x758,0x78e),_0x4820c3(0x5b4,0x44e,0x60d,0x5a8),_0x4820c3(0x6d7,0x610,0x537,0x639),_0x211934(0x582,0x4d7,0x63d,0x638),_0x4820c3(0x589,0x50d,0x61b,0x58a),'memory',_0x4820c3(0x60d,0x62b,0x5ea,0x661)]),statuslineItemSchema=z[_0x211934(0x34e,0x209,0x497,0x289)]([statuslineSegmentSchema,z[_0x4820c3(0x804,0x8e0,0x7ea,0x7d7)]('|')]),statuslineRowSchema=z[_0x211934(0x396,0x38f,0x37c,0x34d)](statuslineItemSchema),statuslineConfigSchema=z[_0x211934(0x38b,0x2a6,0x390,0x2c1)]({'rows':z['tuple']([statuslineRowSchema,statuslineRowSchema])[_0x4820c3(0x646,0x4f0,0x67e,0x634)]()})[_0x211934(0x3e4,0x35b,0x49d,0x2a8)](),memorySettingsSchema=z['object']({'version':z['literal'](0x2)['optional'](),'retrieval':z['object']({'engine':z[_0x211934(0x58b,0x6ac,0x6b6,0x5ed)](_0x211934(0x51e,0x3ca,0x665,0x4f7))['optional'](),'candidateLimit':z[_0x4820c3(0x564,0x69d,0x616,0x5d1)]()[_0x4820c3(0x54d,0x620,0x512,0x634)](),'activeCandidateLimit':z['number']()[_0x4820c3(0x4f1,0x672,0x793,0x634)](),'activeEnabled':z['boolean']()['optional'](),'maxQueriesPerTurn':z[_0x211934(0x385,0x2e8,0x390,0x30a)]()[_0x211934(0x3e8,0x4e3,0x43c,0x534)](),'coreInjectTokenBudget':z[_0x4820c3(0x596,0x71d,0x5d0,0x5d1)]()[_0x211934(0x3e8,0x426,0x37d,0x529)](),'injectTokenBudget':z[_0x211934(0x385,0x314,0x2ab,0x365)]()[_0x4820c3(0x750,0x78f,0x5e3,0x634)](),'minScore':z[_0x4820c3(0x6f5,0x673,0x69b,0x5d1)]()[_0x211934(0x3e8,0x3db,0x480,0x50f)](),'freshnessHalfLifeDays':z[_0x211934(0x385,0x4c4,0x2f7,0x281)]()[_0x4820c3(0x6bb,0x681,0x59f,0x634)]()})[_0x211934(0x3e4,0x457,0x2b8,0x395)]()[_0x4820c3(0x6cc,0x754,0x709,0x634)](),'extraction':z['object']({'enabled':z[_0x4820c3(0x655,0x68f,0x58e,0x6ac)]()[_0x211934(0x3e8,0x365,0x4c1,0x295)](),'provider':z[_0x4820c3(0x5ae,0x4d3,0x5bc,0x5eb)]()[_0x4820c3(0x6ba,0x58a,0x6e3,0x634)](),'model':z[_0x211934(0x39f,0x358,0x3ac,0x35d)]()[_0x4820c3(0x5ac,0x699,0x74a,0x634)](),'sensitiveFilter':z[_0x4820c3(0x721,0x5c5,0x62f,0x6ac)]()[_0x4820c3(0x5ee,0x59e,0x72e,0x634)]()})[_0x211934(0x3e4,0x504,0x3ea,0x3d2)]()['optional'](),'index':z['object']({'persisted':z[_0x4820c3(0x5f0,0x6e8,0x657,0x6ac)]()['optional'](),'flushIntervalMs':z[_0x4820c3(0x544,0x55b,0x610,0x5d1)]()['optional']()})[_0x211934(0x3e4,0x3d5,0x2d7,0x31b)]()[_0x4820c3(0x4f7,0x645,0x628,0x634)](),'enabled':z['boolean']()[_0x211934(0x3e8,0x2ef,0x493,0x3bd)](),'saveTool':z[_0x211934(0x460,0x43f,0x35e,0x4e6)]()[_0x211934(0x3e8,0x315,0x4f8,0x31e)](),'model':z[_0x4820c3(0x4e7,0x544,0x728,0x5eb)]()[_0x211934(0x3e8,0x53d,0x3e3,0x44e)](),'provider':z['string']()['optional'](),'maxInjectionTokens':z['number']()[_0x211934(0x3e8,0x399,0x4f8,0x51a)](),'backgroundExtraction':z[_0x211934(0x460,0x3f9,0x337,0x3f7)]()[_0x211934(0x3e8,0x387,0x423,0x2c3)]()})['passthrough'](),recentModelSchema=z['object']({'provider':z[_0x211934(0x39f,0x2d3,0x366,0x430)](),'model':z[_0x211934(0x39f,0x3ad,0x3e8,0x4d2)](),'usedAt':z[_0x4820c3(0x570,0x4bb,0x6a4,0x5d1)]()})[_0x211934(0x3e4,0x380,0x32d,0x51e)](),lspServerEntrySchema=z[_0x211934(0x38b,0x2df,0x294,0x395)]({'disabled':z['boolean']()['optional'](),'command':z['string']()['optional'](),'args':z[_0x211934(0x396,0x3dc,0x404,0x37d)](z[_0x211934(0x39f,0x2a9,0x3bd,0x293)]())[_0x4820c3(0x6e6,0x5f9,0x5da,0x634)](),'rootMarkers':z[_0x211934(0x396,0x315,0x2e5,0x3f5)](z[_0x211934(0x39f,0x348,0x305,0x392)]())[_0x4820c3(0x67d,0x535,0x575,0x634)]()})['passthrough'](),lspConfigSchema=z[_0x211934(0x38b,0x250,0x30d,0x3ad)]({'enabled':z['boolean']()[_0x211934(0x3e8,0x421,0x2eb,0x374)](),'servers':z[_0x211934(0x555,0x641,0x610,0x590)](z[_0x211934(0x39f,0x402,0x289,0x354)](),lspServerEntrySchema)[_0x4820c3(0x70b,0x6a4,0x774,0x634)]()})[_0x211934(0x3e4,0x458,0x3b8,0x3a4)](),serverEndpointSchema=z[_0x211934(0x38b,0x304,0x479,0x335)]({'url':z[_0x4820c3(0x676,0x5ca,0x6bf,0x5eb)](),'token':z[_0x211934(0x39f,0x4f3,0x31a,0x350)]()[_0x4820c3(0x749,0x511,0x5e4,0x634)]()})[_0x4820c3(0x4e2,0x4f0,0x51a,0x630)](),commandHookConfigSchema=z['object']({'type':z[_0x211934(0x58b,0x585,0x49f,0x4e7)](_0x211934(0x45e,0x40b,0x3b1,0x461)),'command':z['string'](),'timeout':z['number']()[_0x211934(0x3e8,0x296,0x3f8,0x350)]()}),hookMatcherGroupSchema=z[_0x211934(0x38b,0x4c3,0x48d,0x3e4)]({'matcher':z['string']()['optional'](),'hooks':z['array'](commandHookConfigSchema)}),hooksConfigSchema=z[_0x211934(0x38b,0x237,0x309,0x4a3)]({'PreToolUse':z[_0x4820c3(0x698,0x712,0x51d,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x61c,0x5f1,0x657,0x634)](),'PostToolUse':z['array'](hookMatcherGroupSchema)[_0x4820c3(0x5a2,0x6e6,0x671,0x634)](),'UserPromptSubmit':z[_0x211934(0x396,0x330,0x2c8,0x323)](hookMatcherGroupSchema)['optional'](),'Stop':z[_0x4820c3(0x4a0,0x5ca,0x594,0x5e2)](hookMatcherGroupSchema)[_0x211934(0x3e8,0x2fb,0x415,0x532)](),'Notification':z[_0x4820c3(0x693,0x5c9,0x6fd,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x5ce,0x4f4,0x552,0x634)](),'SessionStart':z[_0x4820c3(0x69f,0x65e,0x6af,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x4e1,0x635,0x783,0x634)](),'SessionEnd':z[_0x4820c3(0x57e,0x49e,0x641,0x5e2)](hookMatcherGroupSchema)[_0x4820c3(0x57a,0x4da,0x6f7,0x634)]()}),cliConfigSchema=z[_0x211934(0x38b,0x47d,0x2f8,0x3e6)]({'activeProvider':z[_0x211934(0x39f,0x485,0x241,0x445)]()['optional'](),'activeModel':z[_0x4820c3(0x63b,0x6a0,0x500,0x5eb)]()['optional'](),'apiKey':z[_0x211934(0x39f,0x3f1,0x281,0x375)]()['optional'](),'providers':z[_0x211934(0x555,0x531,0x489,0x5ee)](z[_0x211934(0x39f,0x38d,0x36c,0x448)](),providerConfigSchema)[_0x211934(0x3e8,0x383,0x3cb,0x4b2)](),'mcp':mcpSettingsSchema['optional'](),'skills':skillsSettingsSchema[_0x4820c3(0x743,0x6aa,0x54c,0x634)](),'agents':agentsSettingsSchema[_0x211934(0x3e8,0x528,0x494,0x545)](),'commands':commandsSettingsSchema[_0x4820c3(0x72c,0x577,0x4ef,0x634)](),'skillsEnabled':z[_0x4820c3(0x73c,0x80b,0x8e4,0x7a1)](z[_0x4820c3(0x686,0x6f3,0x6e0,0x5eb)](),z[_0x4820c3(0x664,0x5df,0x6be,0x6ac)]())[_0x4820c3(0x59e,0x506,0x5eb,0x634)](),'memory':memorySettingsSchema['optional'](),'session':z['object']({'memPersist':z[_0x4820c3(0x62d,0x64c,0x7fa,0x6ac)]()[_0x211934(0x3e8,0x506,0x3d6,0x539)](),'persistEventLog':z[_0x4820c3(0x623,0x5b5,0x7a1,0x6ac)]()[_0x211934(0x3e8,0x43a,0x409,0x45a)](),'persistHttpLog':z[_0x211934(0x460,0x4f3,0x577,0x435)]()[_0x4820c3(0x71f,0x716,0x5ed,0x634)]()})[_0x211934(0x3e4,0x403,0x451,0x52d)]()[_0x211934(0x3e8,0x35a,0x478,0x3ff)](),'requireToolApproval':z[_0x4820c3(0x7b9,0x6bd,0x7a8,0x6ac)]()[_0x211934(0x3e8,0x4c7,0x37d,0x3ff)](),'thinking':z[_0x4820c3(0x73c,0x644,0x7ff,0x77c)]([_0x211934(0x4df,0x461,0x4b4,0x3a5),_0x4820c3(0x74d,0x6a3,0x506,0x655),'MEDIUM',_0x4820c3(0x5fb,0x6c9,0x5a4,0x5ef)])['optional'](),'streamingChunks':z[_0x211934(0x460,0x3d3,0x41f,0x461)]()[_0x211934(0x3e8,0x3d8,0x2c4,0x35e)](),'agentsEnabled':z[_0x211934(0x555,0x4f4,0x4c7,0x652)](z[_0x211934(0x39f,0x283,0x494,0x28d)](),z[_0x211934(0x460,0x590,0x4a7,0x53e)]())['optional'](),'recentModels':z[_0x4820c3(0x531,0x628,0x5aa,0x5e2)](recentModelSchema)[_0x211934(0x3e8,0x418,0x384,0x374)](),'lsp':lspConfigSchema[_0x4820c3(0x58d,0x534,0x62c,0x634)](),'servers':z[_0x4820c3(0x762,0x71a,0x8c7,0x7a1)](z[_0x211934(0x39f,0x39c,0x31a,0x3cc)](),serverEndpointSchema)[_0x211934(0x3e8,0x43c,0x2dd,0x394)](),'ui':z[_0x4820c3(0x5e7,0x54b,0x482,0x5d7)]({'theme':uiThemeSettingsSchema[_0x211934(0x3e8,0x369,0x4c2,0x4ad)](),'statusline':statuslineConfigSchema[_0x4820c3(0x706,0x530,0x722,0x634)]()})[_0x211934(0x3e4,0x4f1,0x3f1,0x485)]()[_0x211934(0x3e8,0x2fe,0x2b8,0x487)](),'tools':z[_0x4820c3(0x7fd,0x823,0x7de,0x7a1)](z[_0x211934(0x39f,0x37c,0x4d9,0x48a)](),z[_0x4820c3(0x77a,0x6b5,0x79d,0x6ab)]())[_0x4820c3(0x6b2,0x619,0x71b,0x634)](),'hooks':hooksConfigSchema[_0x4820c3(0x790,0x626,0x767,0x634)]()})['passthrough']();function buildDescription(_0xc0beda){const _0x12e527={_0x429b32:0x3d7,_0x222640:0x4e6,_0x17bf9e:0x2c0,_0x156970:0x383,_0x5f27c5:0x3ee,_0x173921:0x4c8,_0x178f7d:0x3ca,_0x5ae4d1:0x403,_0x5f0e84:0x73e,_0x6c0933:0x4f4,_0x2b6994:0x416,_0x2247b2:0x4b2,_0x41f14c:0x4af,_0x505c99:0x48f,_0x1411a9:0x48c,_0x43a771:0x2d4,_0x49d60e:0x3b6,_0x359b30:0x347},_0x1c2bab={_0x5d5966:0x18b};function _0x2b2d91(_0x26d279,_0x3ab8d4,_0x4d4a3e,_0xb1e380){return _0x211934(_0x26d279- -0x52,_0x3ab8d4-0x15e,_0xb1e380,_0xb1e380-_0x1c2bab._0x5d5966);}if(_0xc0beda[_0x2b2d91(_0x12e527._0x429b32,_0x12e527._0x222640,0x287,_0x12e527._0x17bf9e)]===0x0)return[_0x2b2d91(0x4a5,_0x12e527._0x156970,_0x12e527._0x5f27c5,0x514),'Use\x20this\x20when\x20the\x20user\x27s\x20request\x20matches\x20an\x20available\x20command\x20description,\x20even\x20if\x20the\x20user\x20did\x20not\x20type\x20the\x20slash\x20command\x20explicitly.',_0x2b2d91(0x3bb,_0x12e527._0x173921,_0x12e527._0x178f7d,_0x12e527._0x5ae4d1)]['join']('\x0a');function _0x3f7e33(_0x21a8e9,_0x5e2d59,_0x1068d7,_0x884d5e){return _0x211934(_0x884d5e-0x135,_0x5e2d59-0x12e,_0x21a8e9,_0x884d5e-0x82);}const _0x1f7dbf=[_0x3f7e33(0x55d,0x6e1,_0x12e527._0x5f0e84,0x62c),_0x2b2d91(_0x12e527._0x6c0933,0x3dc,_0x12e527._0x2b6994,0x45e),_0x3f7e33(_0x12e527._0x2247b2,_0x12e527._0x41f14c,_0x12e527._0x505c99,_0x12e527._0x1411a9),..._0xc0beda[_0x2b2d91(_0x12e527._0x43a771,_0x12e527._0x49d60e,0x428,_0x12e527._0x359b30)](_0x3d3bed=>_0x3d3bed[_0x3f7e33(0x4c2,0x6ac,0x6a2,0x60f)]?'-\x20'+_0x3d3bed[_0x3f7e33(0x7db,0x6dd,0x6e8,0x6eb)]+'\x20'+_0x3d3bed[_0x3f7e33(0x718,0x651,0x5de,0x60f)]+':\x20'+_0x3d3bed[_0x2b2d91(0x4bd,0x4a8,0x3bf,0x579)]:'-\x20'+_0x3d3bed[_0x2b2d91(0x564,0x5bf,0x61a,0x577)]+':\x20'+_0x3d3bed[_0x2b2d91(0x4bd,0x4a2,0x468,0x3b0)])];return _0x1f7dbf['join']('\x0a');}function createInvokeCommandTool(_0x21530c){const _0x3627d4={_0x5a1e72:0x62a,_0xe9bacc:0x837,_0x1f47b3:0x6fd,_0x5adca9:0x259,_0x302bcb:0x251,_0x349fae:0x294,_0x12fd7d:0x7c8,_0x3d8235:0x745},_0x2f7ec1={_0x312dae:0x522,_0x4d8b0e:0x5b8,_0x1d5b4d:0x499,_0x11dfd3:0x2b9,_0x2e4450:0x319,_0x12f90a:0x3d9,_0x1faf68:0xae,_0x32a0ff:0x149,_0x3831ed:0x15c,_0x3d05f4:0xb,_0x54ffab:0x46f,_0x540807:0x49f,_0x6f9719:0x5ba,_0x200c7a:0x77,_0x20e232:0x521,_0x12b34a:0x36,_0x43a829:0x6d,_0x30b5de:0x114,_0x177985:0x1f6,_0x50934b:0x1d2,_0x6b1dc3:0x75,_0x152dca:0xa4,_0x22b335:0xa2},_0x2d4c28={_0x384cb4:0x9d,_0x13b3c1:0x142},_0xcd6f57={_0x52d83e:0xb0};function _0x24de1f(_0x26cbe4,_0x1d4f8b,_0x3ce274,_0x123cb7){return _0x211934(_0x3ce274- -0xb4,_0x1d4f8b-_0xcd6f57._0x52d83e,_0x123cb7,_0x123cb7-0xaf);}const _0x1c240c=new Map(_0x21530c['commands']['map'](_0x517d43=>[_0x517d43['id'],_0x517d43]));function _0xd9b5e6(_0x321c6e,_0x516696,_0x6342da,_0x2e5326){return _0x211934(_0x6342da-0x1da,_0x516696-_0x2d4c28._0x384cb4,_0x516696,_0x2e5326-_0x2d4c28._0x13b3c1);}const _0x1f7d89=buildDescription(_0x21530c[_0xd9b5e6(0x6cf,_0x3627d4._0x5a1e72,0x6d5,0x59e)]);return defineTool({'name':_0xd9b5e6(_0x3627d4._0xe9bacc,_0x3627d4._0x1f47b3,0x75a,0x641),'description':_0x1f7d89,'inputSchema':{'type':_0xd9b5e6(0x6a8,0x49c,0x565,0x6b8),'properties':{'name':{'type':_0x24de1f(_0x3627d4._0x5adca9,_0x3627d4._0x302bcb,0x2eb,_0x3627d4._0x349fae)},'args':{'type':'string'}},'required':[_0xd9b5e6(0x84f,_0x3627d4._0x12fd7d,0x790,_0x3627d4._0x3d8235)]},async *'execute'(_0x2b115e){const _0xebbebb={_0x253a60:0x3ee};function _0x14b7e7(_0x57804a,_0x481216,_0x423de0,_0x29fa5d){return _0x24de1f(_0x57804a-0x81,_0x481216-0x173,_0x481216- -0x93,_0x57804a);}const _0x1ac9c=_0x1c240c['get'](_0x2b115e[_0x14b7e7(_0x2f7ec1._0x312dae,0x46f,_0x2f7ec1._0x4d8b0e,_0x2f7ec1._0x1d5b4d)]);function _0x11983(_0x408a50,_0x31e6db,_0x59e581,_0x34ac0d){return _0x24de1f(_0x408a50-0xd4,_0x31e6db-0xec,_0x408a50- -_0xebbebb._0x253a60,_0x34ac0d);}if(!_0x1ac9c){const _0x1f54a6=Array[_0x14b7e7(0x2b7,0x2ea,0x405,_0x2f7ec1._0x11dfd3)](_0x1c240c[_0x14b7e7(0x2aa,0x28f,_0x2f7ec1._0x2e4450,_0x2f7ec1._0x12f90a)]())['join'](',\x20');throw new ToolExecutionError(_0x11983(-_0x2f7ec1._0x1faf68,-_0x2f7ec1._0x32a0ff,0xb1,0x20)+_0x2b115e['name']+_0x11983(-_0x2f7ec1._0x3831ed,-0x26,-0x1c8,-_0x2f7ec1._0x3d05f4)+_0x1f54a6,{'name':_0x2b115e[_0x14b7e7(0x491,_0x2f7ec1._0x54ffab,_0x2f7ec1._0x540807,_0x2f7ec1._0x6f9719)]});}const _0x302e73=await _0x21530c[_0x11983(_0x2f7ec1._0x200c7a,-0x9a,0x54,0x11)](_0x1ac9c),_0x2bd4cb=_0x2b115e['args']??'',_0x40d62a=renderCommandInstructions({'instructions':_0x302e73[_0x14b7e7(0x4b4,0x43f,_0x2f7ec1._0x20e232,0x321)],'argumentsText':_0x2bd4cb,'argumentNames':_0x302e73[_0x11983(_0x2f7ec1._0x12b34a,-0x6e,_0x2f7ec1._0x43a829,-0x8b)]});return yield createToolOutput(_0x40d62a,{'id':_0x302e73['id'],'name':_0x302e73[_0x11983(_0x2f7ec1._0x30b5de,_0x2f7ec1._0x177985,_0x2f7ec1._0x50934b,0x1a6)],'path':_0x1ac9c['source'][_0x11983(-_0x2f7ec1._0x6b1dc3,-0xc1,-_0x2f7ec1._0x152dca,-_0x2f7ec1._0x22b335)]}),void 0x0;}});}import{createHash}from'crypto';import{readFile as _0x58de13,rename as _0x2b9387,stat as _0x49ab56,writeFile as _0x4dc143}from'fs/promises';import*as _0x37a306 from'path';function _0x211934(_0x32fa57,_0x42b82f,_0x3d8290,_0x2bf896){return _0x4629(_0x32fa57-0x157,_0x3d8290);}function detectEol(_0x1525a1){const _0x2cc124={_0x9004f3:0x5bf,_0x5aa69c:0x627,_0x4680df:0x516,_0x53032b:0x746,_0x6cdb69:0x5fb,_0x3c732e:0x167,_0x6890d8:0xec,_0x45a529:0x52e,_0x5cf1a4:0x4b5},_0x29e9a6={_0x57cb2f:0x165,_0x201571:0x8d},_0x4731d2={_0x2cc74e:0x80};function _0x21ea17(_0x3b3776,_0x105e61,_0x3828b0,_0xf86695){return _0x211934(_0xf86695- -0x3fa,_0x105e61-0x155,_0x105e61,_0xf86695-_0x4731d2._0x2cc74e);}function _0x2b77ff(_0x570eed,_0x31f67c,_0x27dbf9,_0x1be823){return _0x211934(_0x27dbf9-_0x29e9a6._0x57cb2f,_0x31f67c-_0x29e9a6._0x201571,_0x1be823,_0x1be823-0xa6);}return/\r\n/[_0x2b77ff(0x5ed,_0x2cc124._0x9004f3,_0x2cc124._0x5aa69c,_0x2cc124._0x4680df)](_0x1525a1[_0x2b77ff(0x68a,_0x2cc124._0x53032b,_0x2cc124._0x6cdb69,0x527)](_0x21ea17(-0x31,_0x2cc124._0x3c732e,0x1b1,_0x2cc124._0x6890d8)))?_0x2b77ff(0x512,_0x2cc124._0x45a529,_0x2cc124._0x5cf1a4,0x5cf):'lf';}function normalizeToLf(_0x17303b){const _0x3ef1ba={_0x42c3a7:0x370,_0x37f12d:0x2f9,_0x279cfe:0x2ae},_0x565d94={_0x102350:0x56};function _0x517592(_0x3884da,_0x559fae,_0x3686a2,_0x2f7e76){return _0x4820c3(_0x3884da-0xf8,_0x559fae-_0x565d94._0x102350,_0x3884da,_0x3686a2- -0x2fe);}return _0x17303b[_0x517592(_0x3ef1ba._0x42c3a7,_0x3ef1ba._0x37f12d,0x383,_0x3ef1ba._0x279cfe)](/\r\n/g,'\x0a');}function convertEol(_0x327e29,_0x4b0287){const _0x53ff92={_0x41086f:0x3ab,_0x41443d:0x385},_0x3ad6e7={_0x3a6fb3:0x61,_0x2bf37b:0x10c};function _0xab7cd(_0xd5f6ae,_0x18d5d6,_0x1573d3,_0x3bf6a5){return _0x211934(_0xd5f6ae- -_0x3ad6e7._0x3a6fb3,_0x18d5d6-0x7e,_0x18d5d6,_0x3bf6a5-_0x3ad6e7._0x2bf37b);}return _0x4b0287===_0xab7cd(0x2ef,0x216,_0x53ff92._0x41086f,_0x53ff92._0x41443d)?_0x327e29['replace'](/\n/g,'\x0d\x0a'):_0x327e29;}async function atomicWrite(_0x118c07,_0x117d6d){const _0x4fda66={_0x18e23d:0x6be,_0x2fe016:0x59d,_0x5a6bb4:0x69d,_0x30d6b4:0x752,_0x224eb2:0x56b,_0xa7bd03:0x776,_0x3e0808:0x783,_0x501550:0x825,_0x1caeca:0x622,_0x2d4c8e:0x750,_0x187724:0x54d,_0x16e790:0x678,_0x3d4a79:0x650,_0xb0ad20:0x511,_0x17a574:0x5d4},_0x4b6983={_0x53f6fc:0x1e5},_0x51eced={_0x4fc21c:0x23};function _0x2dc4a7(_0x324490,_0x566309,_0x306924,_0x1acea6){return _0x211934(_0x306924-0x1ba,_0x566309-0x6a,_0x1acea6,_0x1acea6-_0x51eced._0x4fc21c);}const _0x283234=_0x37a306[_0x20e574(_0x4fda66._0x18e23d,_0x4fda66._0x2fe016,_0x4fda66._0x5a6bb4,_0x4fda66._0x30d6b4)](_0x118c07);function _0x20e574(_0x3c7507,_0x32fb16,_0x1da400,_0x4acdc2){return _0x211934(_0x1da400-_0x4b6983._0x53f6fc,_0x32fb16-0x25,_0x3c7507,_0x4acdc2-0x1b);}const _0x39394e=_0x37a306[_0x2dc4a7(0x697,0x66b,_0x4fda66._0x224eb2,0x583)](_0x283234,_0x20e574(0x7f7,_0x4fda66._0xa7bd03,_0x4fda66._0x3e0808,_0x4fda66._0x501550)+_0x37a306['basename'](_0x118c07)+'.'+Date[_0x20e574(0x540,0x57c,_0x4fda66._0x1caeca,_0x4fda66._0x2d4c8e)]()+'.'+Math[_0x2dc4a7(_0x4fda66._0x187724,0x578,0x534,0x54a)]()[_0x2dc4a7(_0x4fda66._0x16e790,0x6f8,_0x4fda66._0x3d4a79,0x4fe)](0x24)[_0x20e574(0x3e5,0x63a,_0x4fda66._0xb0ad20,_0x4fda66._0x17a574)](0x2));await _0x4dc143(_0x39394e,_0x117d6d),await _0x2b9387(_0x39394e,_0x118c07);}function sha256(_0x4c46b8){const _0x3a0ff3={_0x17bbb1:0x225,_0x15a22e:0x236,_0x58c4d1:0x209},_0x2c714f={_0x12773d:0x117,_0x25d38b:0x4c0},_0x83f64c={_0x52ce94:0x4bb};function _0x47f3f4(_0x4ac479,_0x118df9,_0x284741,_0x4b3367){return _0x211934(_0x4b3367- -_0x83f64c._0x52ce94,_0x118df9-0x1da,_0x284741,_0x4b3367-0x103);}function _0x4534a6(_0x1f3abf,_0xde7144,_0x4cb1c5,_0x43c76a){return _0x4820c3(_0x1f3abf-0x56,_0xde7144-_0x2c714f._0x12773d,_0x1f3abf,_0x43c76a- -_0x2c714f._0x25d38b);}return createHash(_0x4534a6(0x107,_0x3a0ff3._0x17bbb1,0x31f,_0x3a0ff3._0x15a22e))[_0x4534a6(0x1d1,_0x3a0ff3._0x58c4d1,0x43f,0x2fd)](_0x4c46b8)[_0x47f3f4(0x1c5,0x5d,-0x36,0x76)]('hex');}function countLines(_0x44cd9c){const _0x14bc80={_0x3cc3d5:0x2,_0x35d22b:0x26,_0x47ba75:0x78,_0x255fd3:0x122},_0x4b52c3={_0x58f9c1:0x5ec},_0x505123={_0x67a09e:0xa1};function _0x4f8149(_0x371598,_0x55370f,_0x19a6b7,_0x39a42d){return _0x4820c3(_0x371598-0x1e,_0x55370f-_0x505123._0x67a09e,_0x55370f,_0x371598- -0x677);}const _0x583375=_0x44cd9c['replace'](/\n$/,'');function _0x4cd8f7(_0x598566,_0x469b0a,_0x5ae93d,_0x5111a7){return _0x4820c3(_0x598566-0x1e8,_0x469b0a-0xe,_0x469b0a,_0x598566- -_0x4b52c3._0x58f9c1);}return _0x583375[_0x4f8149(-_0x14bc80._0x3cc3d5,-0xc0,-0x100,_0x14bc80._0x35d22b)]===0x0?0x0:_0x583375['split']('\x0a')[_0x4f8149(-_0x14bc80._0x3cc3d5,-_0x14bc80._0x47ba75,-0x13f,_0x14bc80._0x255fd3)];}function calculateLineNumbers(_0x15e5c8,_0x1deb7f,_0x30d5d8,_0x20e3c2){const _0x22dd9f={_0x11245f:0x254,_0x39c301:0x109,_0x58a91e:0xe3},_0x47c1a9={_0x4f1009:0x36c,_0x3b4ddf:0xc},_0x8617eb={_0x53efed:0x74},_0x23e9cd=_0x15e5c8[_0x3173bf(0x31a,0xf4,0x1c0,_0x22dd9f._0x11245f)](0x0,_0x20e3c2)[_0x42cfc6(0x30,0x2b,_0x22dd9f._0x39c301,-_0x22dd9f._0x58a91e)]('\x0a')[_0x3173bf(0x23e,0x475,0x1f7,0x351)],_0x55f09e=countLines(_0x1deb7f);function _0x3173bf(_0x5ed85b,_0x5e2302,_0x1a00f5,_0x47770f){return _0x4820c3(_0x5ed85b-_0x8617eb._0x53efed,_0x5e2302-0x3b,_0x1a00f5,_0x47770f- -0x324);}const _0x502519=countLines(_0x30d5d8);function _0x42cfc6(_0x233193,_0x36f8fe,_0x3e3ba8,_0x1ae793){return _0x211934(_0x233193- -_0x47c1a9._0x4f1009,_0x36f8fe-0xe2,_0x36f8fe,_0x1ae793-_0x47c1a9._0x3b4ddf);}return{'oldStartLine':_0x23e9cd,'oldEndLine':_0x23e9cd+_0x55f09e-0x1,'newStartLine':_0x23e9cd,'newEndLine':_0x23e9cd+_0x502519-0x1,'oldLineCount':_0x55f09e,'newLineCount':_0x502519};}function createFileEditTool(_0x6d452d={}){const _0x2c1b5a={_0x30e79:0x9d,_0x47db84:0x1af,_0x492634:0x279,_0x3fb7ad:0x253,_0xd56d50:0x34a,_0x32e686:0x33c,_0x3f90b:0xaa,_0x1408cf:0x95,_0x2e58bb:0xc4,_0x556a05:0x79,_0x4f602f:0x1d4,_0x6576ec:0x171,_0x3bafdb:0xd6,_0x52ecc8:0x41c,_0x41e4c4:0x301,_0x3db3b:0x2d,_0x4658e3:0x9f,_0x16085c:0x418,_0x28d454:0x3db,_0x3381cc:0x19c,_0x535971:0x293},_0x291192={_0x7f2a7e:0x44d,_0x2ba7d5:0x2d8,_0x51f4df:0x401,_0xfe3da2:0x543,_0x27518e:0x5c0,_0x4562aa:0x585,_0x315774:0x606,_0xea571a:0x409,_0x371e59:0x521,_0x31c3e0:0x4ca,_0x33e4d3:0x62e,_0x4cf995:0x494,_0x3d07c2:0x4d9,_0x4e4d1e:0x400,_0x5cff4b:0x367,_0x56e40f:0x38e,_0x5650b1:0x540,_0x46ead6:0x4f1,_0x5a3727:0x637,_0x2dbe35:0x5a5,_0x1f99cf:0x56a,_0x12dead:0x603,_0x1809c3:0x34c,_0x44fa18:0x114,_0x336760:0x33f,_0x1e46a1:0x19b,_0x2c09ce:0x69d,_0x39c0df:0x4ea,_0x3678c6:0x34d,_0x5ab4e8:0x30b,_0x40608f:0x329,_0x3b7a60:0x5eb,_0x28010f:0x7c1,_0x28e8b6:0x5dc,_0xd00679:0x62a,_0x3f1fa8:0x53b,_0x1687c9:0x401,_0x581572:0x627,_0x35057a:0x4f2,_0x13542b:0x5bb,_0x1e5fc7:0x6a9,_0x31824d:0x49f,_0xdf6349:0x6ee,_0x5b1981:0x7ab,_0x5b3e51:0x6a6,_0x1da242:0x4e5,_0x66a806:0x446,_0x271aa3:0x428,_0x2a32e0:0x34c,_0x4dc149:0x40c,_0x210df2:0x49a},_0x3259ce={_0x148fd1:0xc8},_0x479134={_0x3b492d:0xcf},_0x2ed959=_0x37a306[_0xd2556e(-0x110,-_0x2c1b5a._0x30e79,0x52,-_0x2c1b5a._0x47db84)](_0x6d452d[_0x1b08b7(_0x2c1b5a._0x492634,_0x2c1b5a._0x3fb7ad,_0x2c1b5a._0xd56d50,_0x2c1b5a._0x32e686)]??process['cwd']()),_0x367db2=(_0x6d452d[_0xd2556e(0xb5,-0x30,0x74,_0x2c1b5a._0x3f90b)]??[])[_0xd2556e(-_0x2c1b5a._0x1408cf,-0x1e5,-0x185,-_0x2c1b5a._0x2e58bb)](_0x206cdf=>_0x37a306[_0x1b08b7(0x31a,0x353,0x346,0x3d2)](_0x206cdf));function _0xd2556e(_0x418a88,_0x4a6378,_0xfd725a,_0x1479df){return _0x4820c3(_0x418a88-0x1c3,_0x4a6378-_0x479134._0x3b492d,_0x418a88,_0x4a6378- -0x757);}const _0x22b3d7=_0x6d452d['name']??'FileEdit';function _0x1b08b7(_0x212a1c,_0x544e8c,_0x362711,_0x39faaf){return _0x211934(_0x212a1c- -0x154,_0x544e8c-0x178,_0x544e8c,_0x39faaf-0x5c);}return defineTool({'name':_0x22b3d7,'description':_0xd2556e(0xe4,-_0x2c1b5a._0x556a05,0xd6,-_0x2c1b5a._0x4f602f),'inputSchema':{'type':_0xd2556e(-_0x2c1b5a._0x6576ec,-0x180,-_0x2c1b5a._0x3bafdb,-0x13b),'properties':{'filePath':{'type':_0xd2556e(-0x24c,-0x16c,-0x109,-0x63)},'oldText':{'type':'string'},'newText':{'type':'string'},'dryRun':{'type':_0x1b08b7(0x30c,_0x2c1b5a._0x52ecc8,_0x2c1b5a._0x41e4c4,0x2a1)}},'required':[_0xd2556e(0x32,-_0x2c1b5a._0x3db3b,-_0x2c1b5a._0x4658e3,0x25),_0x1b08b7(0x453,_0x2c1b5a._0x16085c,0x3be,_0x2c1b5a._0x28d454),_0xd2556e(-0x14c,-0x1a2,-_0x2c1b5a._0x3381cc,-_0x2c1b5a._0x535971)]},async *'execute'(_0x1e5690){const _0xbefd52={_0x5bc425:0x42e,_0x420196:0x147,_0x1f8f7e:0x82},_0x37829a=resolveAllowedPath(_0x2ed959,_0x367db2,_0x1e5690[_0x5b2c77(_0x291192._0x7f2a7e,_0x291192._0x2ba7d5,0x2af,_0x291192._0x51f4df)]);await assertWorkspaceFile(_0x37829a);const _0x7ee412=await _0x49ab56(_0x37829a),_0xc53eeb=await _0x58de13(_0x37829a);function _0x5b2c77(_0x13d716,_0x7e9aa7,_0x1b5706,_0x578521){return _0xd2556e(_0x7e9aa7,_0x578521-_0xbefd52._0x5bc425,_0x1b5706-_0xbefd52._0x420196,_0x578521-_0xbefd52._0x1f8f7e);}const _0x917cce=detectEol(_0xc53eeb),_0x45d28e=normalizeToLf(_0xc53eeb[_0x2dd620(_0x291192._0xfe3da2,_0x291192._0x27518e,_0x291192._0x4562aa,_0x291192._0x315774)](_0x5b2c77(0x386,0x4e5,0x440,_0x291192._0xea571a)));function _0x2dd620(_0x2aea84,_0x134b67,_0x433caa,_0x558647){return _0x1b08b7(_0x558647-0x2c4,_0x433caa,_0x433caa-0x18e,_0x558647-_0x3259ce._0x148fd1);}const _0x405d79=normalizeToLf(_0x1e5690[_0x5b2c77(0x4c8,0x3a4,_0x291192._0x371e59,_0x291192._0x31c3e0)]),_0x7c25a9=normalizeToLf(_0x1e5690[_0x2dd620(_0x291192._0x33e4d3,0x4a3,_0x291192._0x4cf995,_0x291192._0x3d07c2)]),_0x895463=_0x45d28e[_0x5b2c77(0x46a,0x4d5,0x2ea,_0x291192._0x4e4d1e)](_0x405d79);if(_0x895463===-0x1){const _0x315dc1=_0x405d79[_0x2dd620(_0x291192._0x5cff4b,_0x291192._0x56e40f,0x5bf,0x49c)](0x0,0x64)[_0x2dd620(_0x291192._0x5650b1,_0x291192._0x46ead6,_0x291192._0x5a3727,_0x291192._0x2dbe35)](/\n/g,'\x5cn');throw new ToolExecutionError(_0x2dd620(0x6bd,0x583,_0x291192._0x1f99cf,_0x291192._0x12dead)+_0x315dc1+(_0x405d79[_0x5b2c77(0x241,0x396,0x3b4,_0x291192._0x1809c3)]>0x64?'...':'')+'\x22',{'filePath':_0x1e5690['filePath']});}const _0x32089a=_0x45d28e['slice'](0x0,_0x895463)+_0x7c25a9+_0x45d28e[_0x5b2c77(_0x291192._0x44fa18,_0x291192._0x336760,_0x291192._0x1e46a1,0x24f)](_0x895463+_0x405d79[_0x2dd620(_0x291192._0x2c09ce,0x45a,0x6a6,0x599)]),_0x459745=convertEol(_0x32089a,_0x917cce),_0xa60be3=Buffer[_0x2dd620(0x630,_0x291192._0x39c0df,0x5f9,0x5a1)](_0x459745,'utf8'),_0x325b1f=sha256(_0xc53eeb),_0x569eb3=sha256(_0xa60be3),_0x9eafa0=_0x325b1f===_0x569eb3,_0x7f1d28=_0x1e5690[_0x5b2c77(0x278,_0x291192._0x3678c6,_0x291192._0x5ab4e8,_0x291192._0x40608f)]??![];return!_0x7f1d28&&!_0x9eafa0&&await atomicWrite(_0x37829a,_0xa60be3),yield createToolOutput(_0x9eafa0?_0x2dd620(_0x291192._0x3b7a60,0x795,_0x291192._0x28010f,0x6ad):_0x7f1d28?'Validated\x20(dry\x20run:\x20no\x20write).':_0x2dd620(0x752,0x5de,_0x291192._0x28e8b6,_0x291192._0xd00679),{'filePath':_0x1e5690[_0x5b2c77(_0x291192._0x3f1fa8,0x355,0x334,_0x291192._0x1687c9)],'resolvedPath':_0x37829a,'created':_0x7ee412[_0x5b2c77(_0x291192._0x581572,0x43f,_0x291192._0x35057a,0x4d6)][_0x2dd620(_0x291192._0x13542b,_0x291192._0x1e5fc7,0x609,0x6b9)](),'modified':_0x7ee412[_0x5b2c77(0x3be,0x517,_0x291192._0x31824d,0x3e3)]['toISOString'](),'size':_0x7ee412[_0x2dd620(0x5af,_0x291192._0xdf6349,_0x291192._0x5b1981,0x6c2)],'eol':_0x917cce,'oldTextLength':_0x405d79[_0x2dd620(_0x291192._0x5b3e51,_0x291192._0x1da242,0x698,0x599)],'newTextLength':_0x7c25a9[_0x5b2c77(0x2ea,_0x291192._0x66a806,_0x291192._0x271aa3,_0x291192._0x2a32e0)],'bytesWritten':_0x9eafa0||_0x7f1d28?0x0:_0xa60be3[_0x5b2c77(_0x291192._0x4dc149,0x400,_0x291192._0x210df2,0x34c)],'beforeSha':_0x325b1f,'afterSha':_0x569eb3,'dryRun':_0x7f1d28,'noChange':_0x9eafa0,'lineNumbers':calculateLineNumbers(_0x45d28e,_0x405d79,_0x7c25a9,_0x895463)}),void 0x0;}});}import{mkdir as _0x1bc22d,rename as _0x22370b,stat as _0x561c90,writeFile as _0x29228f}from'fs/promises';import*as _0x51ddac from'path';async function atomicWrite2(_0x3d35be,_0x319251){const _0x50a16f={_0x212714:0x614,_0x141642:0x45d,_0x2c32c4:0x756,_0x57d06e:0x57c,_0x5c926d:0x1dd,_0xad52da:0x346,_0x279447:0x322,_0x1b739e:0x427,_0x58fa89:0x3f2},_0x403687={_0x53fdd6:0x12e,_0x1fc4cd:0xb2},_0x27cf1c={_0x38371b:0x174,_0x455e12:0x1eb},_0x6c48bd=_0x51ddac['dirname'](_0x3d35be);await _0x1bc22d(_0x6c48bd,{'recursive':!![]});const _0x7fa15a=_0x51ddac[_0x16ffa2(0x617,_0x50a16f._0x212714,0x54b,_0x50a16f._0x141642)](_0x6c48bd,'.tmp.'+_0x51ddac[_0x16ffa2(0x7af,_0x50a16f._0x2c32c4,0x6a3,_0x50a16f._0x57d06e)](_0x3d35be)+'.'+Date[_0x53d980(_0x50a16f._0x5c926d,0x2c9,0x28d,0x183)]()+'.'+Math[_0x16ffa2(0x46e,0x647,0x514,0x62e)]()[_0x53d980(_0x50a16f._0xad52da,_0x50a16f._0x279447,0x235,0x234)](0x24)[_0x16ffa2(_0x50a16f._0x1b739e,0x450,0x4c6,_0x50a16f._0x58fa89)](0x2));await _0x29228f(_0x7fa15a,_0x319251);function _0x53d980(_0x268828,_0x9ed6c8,_0x2c5f43,_0xc3061a){return _0x211934(_0x9ed6c8- -_0x27cf1c._0x38371b,_0x9ed6c8-0x169,_0xc3061a,_0xc3061a-_0x27cf1c._0x455e12);}function _0x16ffa2(_0x18d92a,_0x152b88,_0x2b0c7b,_0x2b5d6f){return _0x4820c3(_0x18d92a-_0x403687._0x53fdd6,_0x152b88-0x1da,_0x2b5d6f,_0x2b0c7b- -_0x403687._0x1fc4cd);}await _0x22370b(_0x7fa15a,_0x3d35be);}function createFileNewTool(_0x410770={}){const _0x2e0b88={_0x45c47d:0x3da,_0x41b8da:0x5c1,_0x2d36c2:0x4d2,_0x14d040:0x2d2,_0x54062d:0x4b,_0x862bd9:0x16b,_0x43d4de:0x7c,_0x4c56a6:0x304,_0x386e82:0x440,_0x4ad416:0x148,_0x567bce:0x157,_0x2ac981:0x376,_0x4a4760:0x26f,_0x49089a:0x31e,_0x4ab5fd:0x3cd,_0x4e2f33:0x92,_0x1d5a80:0x10e,_0x55697e:0x2a,_0x30eb7e:0x33,_0x279521:0xac,_0x5c156f:0x661,_0x14d953:0x3fd},_0x3328f3={_0x1b313f:0x1df,_0x24cd79:0xa6,_0x20a3e3:0xad,_0x3da1c9:0x255,_0x1f317e:0x23,_0x158471:0x11e,_0x549b6a:0x65,_0x3b48ba:0x1ea,_0x15217d:0x2b0,_0x1bd0a9:0x1c9,_0x5a57e2:0xcf,_0x211053:0x2c4,_0x47fbff:0x16f,_0x2e4247:0x1ee,_0x8166ae:0x2c0,_0x126639:0x28b,_0x367d5c:0x1b9,_0x211ea1:0x23d,_0x524476:0x53,_0x529c2b:0xb4,_0x39acc0:0x35,_0x518acb:0x251},_0x5ee3e7={_0xbff7f:0x14b,_0x349dcc:0x80},_0x431f62={_0x49b084:0x21};function _0x489ca6(_0x15a0b6,_0xc03141,_0x4cebf2,_0x4c2db1){return _0x4820c3(_0x15a0b6-_0x431f62._0x49b084,_0xc03141-0x18f,_0xc03141,_0x4c2db1- -0x6ab);}function _0x555abe(_0x448840,_0x11968d,_0x354ce6,_0x296669){return _0x211934(_0x448840-0x54,_0x11968d-0x55,_0x11968d,_0x296669-0x111);}const _0x24bdcd=_0x51ddac[_0x555abe(0x4c2,_0x2e0b88._0x45c47d,_0x2e0b88._0x41b8da,_0x2e0b88._0x2d36c2)](_0x410770[_0x555abe(0x421,0x36a,_0x2e0b88._0x14d040,0x33a)]??process[_0x489ca6(-_0x2e0b88._0x54062d,0xec,-0x105,0x2c)]()),_0xc96d49=(_0x410770[_0x489ca6(_0x2e0b88._0x862bd9,0x12d,0x77,_0x2e0b88._0x43d4de)]??[])[_0x555abe(0x37a,0x24d,_0x2e0b88._0x4c56a6,_0x2e0b88._0x386e82)](_0x34c3f7=>_0x51ddac[_0x555abe(0x4c2,0x3df,0x526,0x552)](_0x34c3f7)),_0x2e7f7c=_0x410770[_0x489ca6(0x19d,0x7,_0x2e0b88._0x4ad416,_0x2e0b88._0x567bce)]??_0x555abe(_0x2e0b88._0x2ac981,_0x2e0b88._0x4a4760,_0x2e0b88._0x49089a,_0x2e0b88._0x4ab5fd);return defineTool({'name':_0x2e7f7c,'description':_0x489ca6(_0x2e0b88._0x4e2f33,0x125,0x13c,_0x2e0b88._0x1d5a80),'inputSchema':{'type':_0x489ca6(_0x2e0b88._0x55697e,-0x13b,_0x2e0b88._0x30eb7e,-0xd4),'properties':{'filePath':{'type':'string'},'content':{'type':_0x489ca6(-0x21b,-_0x2e0b88._0x279521,-0x118,-0xc0)}},'required':[_0x555abe(0x532,_0x2e0b88._0x5c156f,_0x2e0b88._0x14d953,0x49a),'content']},async *'execute'(_0x3101aa){const _0x3f29f9={_0x3514a1:0x1a5},_0x318207=resolveAllowedPath(_0x24bdcd,_0xc96d49,_0x3101aa['filePath']),_0x4271cb=await _0x561c90(_0x318207)[_0x5308e9(_0x3328f3._0x1b313f,_0x3328f3._0x24cd79,0x1ae,_0x3328f3._0x20a3e3)](()=>!![])[_0x5308e9(_0x3328f3._0x3da1c9,_0x3328f3._0x1f317e,_0x3328f3._0x158471,0x127)](()=>![]);function _0x5308e9(_0x514969,_0x48fbf6,_0x4b22b1,_0x4a50d4){return _0x555abe(_0x4a50d4- -0x34c,_0x48fbf6,_0x4b22b1-_0x5ee3e7._0xbff7f,_0x4a50d4-_0x5ee3e7._0x349dcc);}const _0x1ad398=Buffer[_0x293c26(-_0x3328f3._0x549b6a,0x161,0xc5,_0x3328f3._0x3b48ba)](_0x3101aa[_0x293c26(_0x3328f3._0x15217d,0x142,_0x3328f3._0x1bd0a9,_0x3328f3._0x5a57e2)],_0x5308e9(_0x3328f3._0x211053,0x27f,_0x3328f3._0x47fbff,_0x3328f3._0x2e4247));await atomicWrite2(_0x318207,_0x1ad398);function _0x293c26(_0x37131e,_0x539943,_0x2a5fc1,_0x3d8fdd){return _0x555abe(_0x2a5fc1- -0x3c0,_0x3d8fdd,_0x2a5fc1-_0x3f29f9._0x3514a1,_0x3d8fdd-0x1c1);}return yield createToolOutput(_0x293c26(0x116,0x206,0x25d,0x323)+_0x3101aa[_0x293c26(0x263,_0x3328f3._0x8166ae,0x172,_0x3328f3._0x126639)]+'.',{'filePath':_0x3101aa['filePath'],'resolvedPath':_0x318207,'bytes':_0x1ad398['length'],'lines':_0x3101aa[_0x5308e9(0x2f3,_0x3328f3._0x367d5c,0x178,_0x3328f3._0x211ea1)][_0x293c26(-0x4e,_0x3328f3._0x524476,0x30,-_0x3328f3._0x529c2b)](/\r?\n/)[_0x5308e9(0x1c9,0x11d,_0x3328f3._0x39acc0,0x131)],'created':new Date()[_0x5308e9(0x24d,0x266,0x210,_0x3328f3._0x518acb)](),'overwritten':_0x4271cb}),void 0x0;}});}import{readFile as _0x1451f2,stat as _0x3c1072}from'fs/promises';import*as _0x3102e3 from'path';function stripUtfBom(_0x3a067b){const _0x212efc={_0x1c726a:0x3eb,_0x2075ea:0x5f5,_0x563aab:0x527,_0x188ff3:0x3fb},_0xf28c83={_0x5927ac:0x4ef,_0x3881e6:0x9b},_0x556724={_0x2cb256:0x1fb,_0x45e529:0xe8};function _0x1bf942(_0x58b2f7,_0x699414,_0x2b4488,_0x36a2d4){return _0x211934(_0x2b4488-_0x556724._0x2cb256,_0x699414-_0x556724._0x45e529,_0x699414,_0x36a2d4-0x11);}function _0x26428e(_0x5d1621,_0xdcfa41,_0x2b8416,_0x43053a){return _0x211934(_0xdcfa41- -_0xf28c83._0x5927ac,_0xdcfa41-_0xf28c83._0x3881e6,_0x5d1621,_0x43053a-0xa4);}return _0x3a067b[_0x1bf942(0x646,0x59b,0x69e,0x781)](0x0)===0xfeff?_0x3a067b[_0x1bf942(_0x212efc._0x1c726a,_0x212efc._0x2075ea,_0x212efc._0x563aab,_0x212efc._0x188ff3)](0x1):_0x3a067b;}function clampLine(_0xe240b3,_0x4df509){const _0x5f5841={_0x473e86:0x22f,_0x1d2cc7:0x245,_0x1e90ba:0x1e9,_0x5a0f6d:0x234},_0x40f7f2={_0x360dc9:0x479},_0xb075f7={_0xaf198f:0x4de};function _0x3ca5e7(_0x5840ca,_0x4b8371,_0xb90685,_0x2d2ea2){return _0x4820c3(_0x5840ca-0x181,_0x4b8371-0x177,_0xb90685,_0x2d2ea2- -_0xb075f7._0xaf198f);}function _0x448c3e(_0x24762f,_0x351c2a,_0x28b205,_0x374bb2){return _0x4820c3(_0x24762f-0xf,_0x351c2a-0x2e,_0x24762f,_0x28b205- -_0x40f7f2._0x360dc9);}if(!Number[_0x3ca5e7(0x92,_0x5f5841._0x473e86,0xc8,0x110)](_0xe240b3))return 0x1;return Math['max'](0x1,Math[_0x448c3e(_0x5f5841._0x1d2cc7,_0x5f5841._0x1e90ba,0x18a,0x20c)](Math[_0x448c3e(_0x5f5841._0x5a0f6d,0x1f2,0x2a4,0x3e7)](_0xe240b3),_0x4df509));}function createFileReadTool(_0x55aed2={}){const _0x1dd3fa={_0x3cf515:0xf7,_0x259b4d:0x82,_0x5af062:0x188,_0x42b4e6:0x1aa,_0x2c412:0x33b,_0x1801dd:0x2f2,_0x2fef54:0x23f,_0x464980:0xea,_0x253d12:0x80,_0x3f2c64:0x131,_0x238272:0x57,_0x16358a:0x27,_0x2b1089:0x615,_0x56abcf:0x691,_0x1278de:0x56a,_0x5a223d:0x683,_0x2679ad:0x7},_0x22adc2={_0xc5e715:0x61,_0x195bcc:0xe4,_0x5aa760:0xc2,_0x2f40e1:0x41,_0x269022:0x7b,_0x90ac16:0x32,_0x57b1e7:0x175,_0x17e137:0x50,_0x1a38a2:0x38,_0x443b00:0x9f,_0x1b772e:0x11,_0x1c1caf:0x27,_0x5d9348:0x771,_0x32b59c:0x5e5,_0x56d3a0:0x6c7,_0xb8355a:0x7d1,_0x39857c:0x76f,_0x4cdae4:0x6d0,_0xfba38b:0x2b,_0x4bf43a:0x55d,_0x2a1694:0x51a,_0x3d4f7a:0x4cf,_0x35b600:0x580,_0x45815b:0x4e2,_0x5a34e1:0x147,_0x1becc0:0xa9,_0x37358a:0x2c2,_0x273d3b:0x1ad,_0x550b1c:0x1f7,_0x39ff35:0x2c9,_0x2bf363:0x6dc,_0x11809e:0x5f5,_0x5ce393:0x5a7,_0x59c9d9:0x2,_0x22fa29:0x441,_0x2e4df8:0x535,_0xe0aab7:0x694,_0xb93b9c:0x67c,_0x58b5a1:0x160,_0xf83d2a:0xe8,_0x25435d:0x86},_0x4590ea={_0x2d1f51:0xa2,_0x51f381:0xaf},_0x38f485={_0x2597b5:0xcc,_0x988ac:0x5e0},_0x658a99={_0x583e10:0xe6,_0x260bcc:0x18f},_0x3f9c1f={_0x51360b:0x8,_0xd82b63:0x1bd},_0x52d1f9=_0x3102e3[_0x297abb(_0x1dd3fa._0x3cf515,_0x1dd3fa._0x259b4d,_0x1dd3fa._0x5af062,-0x3c)](_0x55aed2[_0x31cbfb(0x43e,0x47c,0x3ff,0x49c)]??process['cwd']()),_0x2dbf2e=(_0x55aed2[_0x297abb(0x164,_0x1dd3fa._0x42b4e6,0xe0,0x136)]??[])[_0x31cbfb(_0x1dd3fa._0x2c412,_0x1dd3fa._0x1801dd,0x459,0x3f5)](_0x2f766a=>_0x3102e3[_0x31cbfb(0x638,0x655,0x442,0x53d)](_0x2f766a)),_0x21650c=_0x55aed2[_0x297abb(_0x1dd3fa._0x2fef54,0x23d,_0x1dd3fa._0x464980,0x391)]??'FileRead';function _0x31cbfb(_0x4ce76d,_0x17ab38,_0x4bb10f,_0x47a879){return _0x211934(_0x47a879-0xcf,_0x17ab38-_0x3f9c1f._0x51360b,_0x4ce76d,_0x47a879-_0x3f9c1f._0xd82b63);}function _0x297abb(_0x39c5f5,_0x5de109,_0x34b21f,_0xd9acbb){return _0x211934(_0x39c5f5- -0x377,_0x5de109-_0x658a99._0x583e10,_0x5de109,_0xd9acbb-_0x658a99._0x260bcc);}return defineTool({'name':_0x21650c,'description':_0x297abb(0x1b,0xe6,_0x1dd3fa._0x253d12,0x138),'inputSchema':{'type':'object','properties':{'path':{'type':_0x297abb(0x28,_0x1dd3fa._0x3f2c64,-0x26,-_0x1dd3fa._0x238272)},'lineStart':{'type':'number','description':'Start\x20reading\x20from\x20this\x20line\x20number\x20(1-based)'},'lineEnd':{'type':_0x297abb(0xe,-0x132,-0x10c,-_0x1dd3fa._0x16358a),'description':_0x31cbfb(_0x1dd3fa._0x2b1089,_0x1dd3fa._0x56abcf,_0x1dd3fa._0x1278de,_0x1dd3fa._0x5a223d)}},'required':[_0x297abb(0xb6,0x76,-0x70,_0x1dd3fa._0x2679ad)]},async *'execute'(_0x419d60){const _0x491f7e=resolveAllowedPath(_0x52d1f9,_0x2dbf2e,_0x419d60[_0x2a3404(-0xe4,-0x25,0x69,-_0x22adc2._0xc5e715)]);await assertWorkspaceFile(_0x491f7e);function _0x2a3404(_0x364f01,_0xbf1b1f,_0x588b3d,_0x493b28){return _0x31cbfb(_0x493b28,_0xbf1b1f-0x7c,_0x588b3d-_0x38f485._0x2597b5,_0x364f01- -_0x38f485._0x988ac);}const _0x2a872e=await _0x3c1072(_0x491f7e);function _0x55f03f(_0x825dfd,_0x3ba24d,_0x502ec8,_0x4e3c86){return _0x31cbfb(_0x825dfd,_0x3ba24d-_0x4590ea._0x2d1f51,_0x502ec8-0x1bd,_0x4e3c86-_0x4590ea._0x51f381);}const _0x12c14d=await _0x1451f2(_0x491f7e);if(isProbablyBinary(_0x12c14d))throw new ToolExecutionError('File\x20appears\x20to\x20be\x20binary:\x20'+_0x419d60['path'],{'path':_0x419d60[_0x2a3404(-_0x22adc2._0x195bcc,0x28,-_0x22adc2._0x5aa760,-_0x22adc2._0x2f40e1)]});let _0x4caea1=_0x12c14d[_0x2a3404(-_0x22adc2._0x269022,-0xd4,-_0x22adc2._0x90ac16,-0x193)]('utf8');const _0x51c446=_0x4caea1['charCodeAt'](0x0)===0xfeff;_0x4caea1=stripUtfBom(_0x4caea1);const _0x1f4a47=_0x4caea1[_0x2a3404(-_0x22adc2._0x57b1e7,-0x2d0,-0x182,-0x8b)](/\r?\n/),_0x1b156d={'path':_0x419d60[_0x2a3404(-0xe4,-_0x22adc2._0x17e137,-0x1b0,-0x5)],'resolvedPath':_0x491f7e,'created':_0x2a872e['birthtime'][_0x2a3404(_0x22adc2._0x1a38a2,_0x22adc2._0xc5e715,0x2b,0xf0)](),'modified':_0x2a872e[_0x2a3404(-0x51,_0x22adc2._0x443b00,_0x22adc2._0x1b772e,-_0x22adc2._0x1c1caf)][_0x55f03f(_0x22adc2._0x5d9348,_0x22adc2._0x32b59c,0x688,_0x22adc2._0x56d3a0)](),'size':_0x2a872e[_0x55f03f(_0x22adc2._0xb8355a,0x6f4,_0x22adc2._0x39857c,_0x22adc2._0x4cdae4)],'encoding':_0x2a3404(-_0x22adc2._0xfba38b,-0x2e,-0x139,-0x3f),'bomStripped':_0x51c446,'truncated':![],'totalLines':_0x1f4a47['length']};if(_0x419d60[_0x55f03f(0x49c,_0x22adc2._0x4bf43a,_0x22adc2._0x2a1694,_0x22adc2._0x3d4f7a)]!==void 0x0||_0x419d60[_0x55f03f(0x5e1,0x554,_0x22adc2._0x35b600,_0x22adc2._0x45815b)]!==void 0x0){const _0x41b0fc=clampLine(_0x419d60[_0x2a3404(-0x1c0,-_0x22adc2._0x5a34e1,-_0x22adc2._0x1becc0,-_0x22adc2._0x37358a)]??0x1,_0x1f4a47['length']),_0x1e0f90=clampLine(_0x419d60[_0x2a3404(-_0x22adc2._0x273d3b,-_0x22adc2._0x550b1c,-0x28d,-_0x22adc2._0x39ff35)]??_0x1f4a47[_0x55f03f(_0x22adc2._0x2bf363,0x6f3,_0x22adc2._0x11809e,_0x22adc2._0x5ce393)],_0x1f4a47[_0x2a3404(-0xe8,_0x22adc2._0x59c9d9,-0x1c,-0x40)]),_0x14ab86=Math[_0x55f03f(0x60e,_0x22adc2._0x22fa29,0x52d,_0x22adc2._0x2e4df8)](_0x41b0fc,_0x1e0f90),_0x150c4a=Math[_0x55f03f(0x58e,0x646,_0x22adc2._0xe0aab7,_0x22adc2._0xb93b9c)](_0x41b0fc,_0x1e0f90),_0x16ee40=_0x1f4a47['slice'](_0x14ab86-0x1,_0x150c4a)['map']((_0x3cbd39,_0x50edcf)=>_0x14ab86+_0x50edcf+'|'+_0x3cbd39)[_0x2a3404(-_0x22adc2._0x58b5a1,-0x32,-0x1a1,-0x11a)]('\x0a');return yield createToolOutput(_0x16ee40,{..._0x1b156d,'lineRange':{'lineStart':_0x14ab86,'lineEnd':_0x150c4a,'linesTotal':_0x1f4a47[_0x2a3404(-_0x22adc2._0xf83d2a,-_0x22adc2._0x25435d,-0x70,-0x1a4)]}}),void 0x0;}return yield createToolOutput(_0x4caea1,_0x1b156d),void 0x0;}});}import{stat as _0x3cfeb9}from'fs/promises';import*as _0x118f30 from'path';import{execSync,spawn as _0x49a6b1}from'child_process';import{existsSync}from'fs';import{stat as _0x1972a1}from'fs/promises';import*as _0x1ceb4d from'os';import*as _0x5d2e6f from'path';import{rgPath as _0x47789a}from'@vscode/ripgrep';var cachedRgPath=null;function findSystemRipgrep(){const _0x1ea936={_0x4c628a:0x45c,_0x54e416:0x32e,_0x32ab2c:0x2e4,_0x1a3d74:0x386,_0xe017dd:0x29b,_0x1bac7a:0x1ae,_0x44b409:0x25,_0x3b2af4:0x26,_0x2bdaa4:0x129,_0x3b5879:0x29,_0x390c51:0x155,_0x58d65c:0x84,_0x378888:0x2,_0x525ee1:0x12e,_0x5a5bc6:0xbb,_0x59109f:0xf9,_0x2649e3:0xcd,_0x1e08f8:0x2e3,_0x345591:0x2d9,_0x5e1676:0x275,_0x4a1f26:0x1f3,_0x247b29:0x1d3,_0x53f3e8:0x2e2,_0x357c80:0x3c9,_0x42a001:0x29b,_0x1ecd68:0xf9,_0x2ff978:0x67,_0x1b3e42:0x17d,_0x1b8150:0x263,_0x39105b:0xca,_0x372591:0xb3,_0x46a685:0x3ee,_0x3879d8:0x583,_0x3cb3f9:0x50c,_0x2c81a0:0x443,_0x775f11:0x35,_0x1f72ab:0x92,_0x307e85:0x5d,_0x982a13:0x6f,_0x497d63:0x90,_0x5e7a70:0x141,_0x982236:0x582,_0x32e292:0x400,_0x128761:0xb3,_0x5e66bf:0x36a,_0x5d25c7:0x505,_0x19c30a:0x4a9,_0x6dd83c:0x379,_0x3572d9:0x4a9,_0x282c4c:0x31e,_0x2b8cec:0x162,_0x4df19c:0x332,_0x24e58c:0x20a,_0x465b97:0x9a,_0x5c4cac:0x1a7},_0xbbde29={_0x39d2de:0x143,_0x2f4bdd:0xf7,_0x2fa3a0:0x592},_0x101d46={_0x26bbb2:0x1ce,_0x4da3b2:0x362};function _0x4259e2(_0x4008e0,_0x589fdd,_0x4ea9e5,_0xb61d0f){return _0x4820c3(_0x4008e0-_0x101d46._0x26bbb2,_0x589fdd-0x15,_0x589fdd,_0xb61d0f- -_0x101d46._0x4da3b2);}function _0x2a2f80(_0x31a948,_0x26266e,_0x55fd49,_0x4651d4){return _0x4820c3(_0x31a948-_0xbbde29._0x39d2de,_0x26266e-_0xbbde29._0x2f4bdd,_0x55fd49,_0x31a948- -_0xbbde29._0x2fa3a0);}const _0x78baaa=_0x1ceb4d[_0x4259e2(_0x1ea936._0x4c628a,0x3b4,0x3e2,_0x1ea936._0x54e416)]()==='win32',_0x2651e2=_0x78baaa?[_0x5d2e6f[_0x4259e2(_0x1ea936._0x32ab2c,0x379,_0x1ea936._0x1a3d74,_0x1ea936._0xe017dd)](process['env'][_0x4259e2(_0x1ea936._0x1bac7a,0x3ec,0x1a8,0x2f6)]||'',_0x2a2f80(0x8c,-_0x1ea936._0x44b409,_0x1ea936._0x3b2af4,_0x1ea936._0x2bdaa4),_0x2a2f80(_0x1ea936._0x3b5879,0x7b,_0x1ea936._0x390c51,_0x1ea936._0x58d65c),_0x2a2f80(-_0x1ea936._0x378888,_0x1ea936._0x525ee1,-0x23,0xdb)),_0x5d2e6f[_0x2a2f80(0x6b,-0xf,-0xa8,_0x1ea936._0x5a5bc6)](process[_0x2a2f80(_0x1ea936._0x59109f,_0x1ea936._0x2649e3,0xa1,0x170)][_0x4259e2(0x29d,_0x1ea936._0x1e08f8,_0x1ea936._0x345591,0x3fc)]||'',_0x2a2f80(_0x1ea936._0x5e1676,0x196,0x3d1,0x370),_0x2a2f80(0x17d,0x233,0x15e,_0x1ea936._0x4a1f26)),_0x5d2e6f[_0x4259e2(_0x1ea936._0x247b29,_0x1ea936._0x53f3e8,_0x1ea936._0x357c80,_0x1ea936._0x42a001)](process[_0x2a2f80(_0x1ea936._0x1ecd68,_0x1ea936._0x2ff978,0xdf,0xcb)][_0x4259e2(0x5f8,0x3a8,0x3f9,0x4a3)]||'',_0x2a2f80(0x275,0x359,0x1b9,0x11f),_0x2a2f80(_0x1ea936._0x1b3e42,0x2a8,_0x1ea936._0x1b8150,0x2d3))]:[_0x2a2f80(_0x1ea936._0x39105b,-0x49,_0x1ea936._0x372591,0xf4),_0x4259e2(_0x1ea936._0x46a685,_0x1ea936._0x3879d8,_0x1ea936._0x3cb3f9,_0x1ea936._0x2c81a0),_0x2a2f80(_0x1ea936._0x775f11,_0x1ea936._0x1f72ab,0x176,-_0x1ea936._0x307e85),_0x2a2f80(_0x1ea936._0x982a13,-_0x1ea936._0x497d63,_0x1ea936._0x5e7a70,-0x1f)];for(const _0x2e3828 of _0x2651e2){if(existsSync(_0x2e3828))return _0x2e3828;}try{const _0x57113a=_0x78baaa?_0x4259e2(_0x1ea936._0x982236,_0x1ea936._0x32e292,0x37a,0x477):_0x2a2f80(0x15,-0xb8,-0x51,_0x1ea936._0x128761),_0x7cc459=execSync(_0x57113a,{'encoding':_0x4259e2(0x3e9,_0x1ea936._0x5e66bf,0x27e,0x3d0),'stdio':[_0x4259e2(_0x1ea936._0x5d25c7,0x45a,0x40a,_0x1ea936._0x19c30a),_0x4259e2(0x56e,_0x1ea936._0x6dd83c,0x4b5,_0x1ea936._0x3572d9),_0x4259e2(_0x1ea936._0x282c4c,_0x1ea936._0x2b8cec,_0x1ea936._0x4df19c,_0x1ea936._0x24e58c)]})[_0x2a2f80(0x9a,_0x1ea936._0x465b97,0x153,_0x1ea936._0x5c4cac)]()['split'](/\r?\n/)[0x0];if(_0x7cc459&&existsSync(_0x7cc459))return _0x7cc459;}catch{return null;}return null;}async function filepath(){const _0x581a8b={_0x5815a3:0x103,_0xbc6f8d:0x28,_0x4a282c:0x94},_0x44282d={_0x7776c4:0x1a5,_0x55a531:0x15f,_0x53696f:0x5d8};if(cachedRgPath)return cachedRgPath;if(_0x47789a&&existsSync(_0x47789a))return cachedRgPath=_0x47789a,_0x47789a;const _0x14a9a6=findSystemRipgrep();if(!_0x14a9a6)throw new Error(_0x13cb26(_0x581a8b._0x5815a3,0xc8,_0x581a8b._0xbc6f8d,-_0x581a8b._0x4a282c));cachedRgPath=_0x14a9a6;function _0x13cb26(_0x2f7710,_0x502e1a,_0x23b739,_0x5c501a){return _0x4820c3(_0x2f7710-_0x44282d._0x7776c4,_0x502e1a-_0x44282d._0x55a531,_0x2f7710,_0x23b739- -_0x44282d._0x53696f);}return _0x14a9a6;}async function*files(_0x1a7dd1){const _0x57aaf8={_0x39e625:0x573,_0x48a5d1:0x5cb,_0x432fa0:0x5f8,_0x5ca615:0x659,_0x111617:0x282,_0x279f0e:0x78f,_0x252e04:0x715,_0x5153c4:0x11d,_0x5196e8:0x5cb,_0x383ef7:0x73d,_0x89feb2:0x45b,_0x53a566:0x341,_0x131237:0x3fe,_0x4e4c18:0x52e,_0x4cdc39:0x3b6,_0x1e0f28:0x768,_0x3ee07b:0x6e5,_0x5297e6:0x6ff,_0x1802ad:0x3f8,_0x20de08:0x37c,_0xa2813b:0x16b,_0x3c7caa:0x65c,_0x29e61d:0x4fb,_0x28d43b:0x581,_0x303120:0x492,_0x2a4dc3:0x569,_0x14a5cb:0x480,_0x341d26:0x5ad,_0x3b5fcf:0x45a,_0x41ac17:0x461},_0x177066={_0x375f06:0x1c7},_0x503cc4=await filepath(),_0x2881ea=await _0x1972a1(_0x1a7dd1[_0x5912c5(_0x57aaf8._0x39e625,0x62a,0x5aa,_0x57aaf8._0x48a5d1)])['catch'](()=>null);function _0x5912c5(_0x55ccc3,_0x5acc02,_0x29605f,_0xa62852){return _0x211934(_0xa62852-0x140,_0x5acc02-0x32,_0x55ccc3,_0xa62852-0xc8);}if(!_0x2881ea?.[_0x5912c5(_0x57aaf8._0x432fa0,_0x57aaf8._0x5ca615,0x56c,0x661)]())throw Object[_0x1a8754(0x281,0x1d9,_0x57aaf8._0x111617,0x32b)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x1a7dd1[_0x1a8754(0x1c6,0x171,0x414,0x2c4)]+'\x27'),{'code':_0x5912c5(_0x57aaf8._0x279f0e,_0x57aaf8._0x252e04,0x601,0x6bf)});function _0x1a8754(_0x1469dc,_0x5a514d,_0x3f4f95,_0x1d4352){return _0x211934(_0x1d4352- -_0x177066._0x375f06,_0x5a514d-0xd5,_0x5a514d,_0x1d4352-0x46);}const _0x43e857=[_0x5912c5(0x4e0,0x5d3,0x673,0x591),_0x1a8754(0x2a2,0x26c,_0x57aaf8._0x5153c4,0x1b0),_0x5912c5(_0x57aaf8._0x5196e8,_0x57aaf8._0x383ef7,0x59d,0x5dd),'--glob=!.git/*'];for(const _0x3617ae of _0x1a7dd1['glob']??[]){_0x43e857[_0x1a8754(0x406,_0x57aaf8._0x89feb2,_0x57aaf8._0x53a566,_0x57aaf8._0x131237)]('--glob='+_0x3617ae);}const _0x5bb24e=_0x49a6b1(_0x503cc4,_0x43e857,{'cwd':_0x1a7dd1['cwd'],'stdio':[_0x5912c5(0x3ce,_0x57aaf8._0x4e4c18,_0x57aaf8._0x4cdc39,0x460),_0x5912c5(_0x57aaf8._0x1e0f28,0x85f,_0x57aaf8._0x3ee07b,_0x57aaf8._0x5297e6),_0x1a8754(0x364,0x4eb,0x3c9,_0x57aaf8._0x1802ad)]});let _0x19889f='';for await(const _0x51c817 of _0x5bb24e[_0x1a8754(0x115,0x13b,_0x57aaf8._0x20de08,0x237)]??[]){_0x19889f+=_0x51c817['toString']();const _0x271a59=_0x19889f[_0x1a8754(_0x57aaf8._0xa2813b,0xd8,0x2cd,0x1d5)](/\r?\n/);_0x19889f=_0x271a59[_0x5912c5(0x6b0,_0x57aaf8._0x3c7caa,_0x57aaf8._0x29e61d,_0x57aaf8._0x28d43b)]()??'';for(const _0x438f7b of _0x271a59){if(_0x438f7b[_0x5912c5(_0x57aaf8._0x303120,0x58d,0x4fd,_0x57aaf8._0x2a4dc3)]>0x0)yield _0x438f7b;}}_0x19889f[_0x5912c5(0x5ed,_0x57aaf8._0x14a5cb,_0x57aaf8._0x14a5cb,0x520)]()[_0x5912c5(_0x57aaf8._0x341d26,_0x57aaf8._0x3b5fcf,_0x57aaf8._0x41ac17,_0x57aaf8._0x2a4dc3)]>0x0&&(yield _0x19889f[_0x1a8754(0x36a,0x19c,0xf4,0x219)]());}function parseMatchLine(_0x5d02ef,_0x54e3eb){const _0x575ecd={_0x5bba70:0x621,_0x3f2a2b:0xd9,_0x1ddf06:0x179,_0x37cd26:0x37,_0xa7f36d:0x222,_0x173637:0x167,_0x2b5494:0xfb,_0x17007f:0x257,_0x2d7d59:0xbd,_0x25b398:0x9,_0x115720:0xcb,_0x17f23a:0x1b7,_0x263e17:0x9f,_0x145cac:0x34,_0x1c559d:0x6db,_0x19fc7f:0x5b1,_0x44c8d8:0x9b,_0x20558a:0x80c,_0x18fa95:0x66c,_0x3a2db6:0x134,_0xd32244:0x4e,_0x3681bc:0x156,_0x2f6897:0x3d,_0x5c899b:0x53c,_0x5c8fe0:0x595,_0x37e836:0x61a,_0x19e9bb:0x5b1,_0x582dce:0x151,_0x4a610c:0x1a3,_0x4d6d7c:0x1f0},_0x572388={_0x4ed412:0xeb},_0x5e7bf9={_0x3344bf:0x502,_0x54f52a:0x1c1};function _0x1a5580(_0x1efa94,_0x258b30,_0x4369e3,_0x2004b0){return _0x211934(_0x1efa94- -_0x5e7bf9._0x3344bf,_0x258b30-_0x5e7bf9._0x54f52a,_0x4369e3,_0x2004b0-0x161);}if(!_0x5d02ef||_0x5d02ef==='--')return null;const _0x1a5381=_0x5d02ef[_0x106f1f(0x6a7,0x6d5,0x66a,_0x575ecd._0x5bba70)]('|');function _0x106f1f(_0x24f334,_0x39f94f,_0xd5425d,_0x4fd79b){return _0x211934(_0x4fd79b-0x285,_0x39f94f-0x170,_0xd5425d,_0x4fd79b-_0x572388._0x4ed412);}if(_0x54e3eb&&_0x1a5381[_0x1a5580(-_0x575ecd._0x3f2a2b,-_0x575ecd._0x1ddf06,_0x575ecd._0x37cd26,-_0x575ecd._0xa7f36d)]>=0x4&&Number[_0x1a5580(-0x160,-_0x575ecd._0x173637,-_0x575ecd._0x2b5494,-_0x575ecd._0x17007f)](Number[_0x1a5580(-0xcb,-_0x575ecd._0x2d7d59,-0xa7,-_0x575ecd._0x25b398)](_0x1a5381[0x2]??'',0xa))){const _0x2fb445=Number[_0x1a5580(-_0x575ecd._0x115720,-0x82,-_0x575ecd._0x17f23a,-_0x575ecd._0x263e17)](_0x1a5381[0x1]??'',0xa);if(!Number[_0x1a5580(-0x160,-0x1a0,-_0x575ecd._0x145cac,-0x1f9)](_0x2fb445)||!_0x1a5381[0x0])return null;return{'filePath':_0x1a5381[0x0],'lineNum':_0x2fb445,'lineText':_0x1a5381[_0x106f1f(_0x575ecd._0x1c559d,0x6cf,0x48e,_0x575ecd._0x19fc7f)](0x3)[_0x1a5580(-0x151,-0xa2,-_0x575ecd._0x44c8d8,-0x25d)]('|')};}if(_0x1a5381[_0x106f1f(_0x575ecd._0x20558a,_0x575ecd._0x18fa95,0x58b,0x6ae)]>=0x3){const _0x3651ba=Number[_0x1a5580(-_0x575ecd._0x115720,-0x111,-_0x575ecd._0x3a2db6,-_0x575ecd._0xd32244)](_0x1a5381[0x1]??'',0xa);if(!Number[_0x1a5580(-0x160,-_0x575ecd._0x3681bc,-0x95,-_0x575ecd._0x2f6897)](_0x3651ba)||!_0x1a5381[0x0])return null;return{'filePath':_0x1a5381[0x0],'lineNum':_0x3651ba,'lineText':_0x1a5381[_0x106f1f(_0x575ecd._0x5c899b,_0x575ecd._0x5c8fe0,_0x575ecd._0x37e836,_0x575ecd._0x19e9bb)](0x2)[_0x1a5580(-_0x575ecd._0x582dce,-0x55,-_0x575ecd._0x4a610c,-_0x575ecd._0x4d6d7c)]('|'),..._0x54e3eb?{'isContext':!![]}:{}};}return null;}async function search(_0x416ff3){const _0x1fd7c6={_0x1027b4:0x3b1,_0x332ad6:0x29f,_0x1d351c:0x2d5,_0x4a9a59:0x21f,_0x2656ca:0x31c,_0x2de3e6:0x2e7,_0x175d75:0x13c,_0x23a8f6:0x267,_0x37ffc3:0x2b8,_0x153198:0x66,_0x9c7739:0xbe,_0x3e353e:0x26a,_0x6141ca:0x181,_0x589801:0x103,_0x29395f:0x29f,_0x514044:0x170,_0x3a1d41:0x3f1,_0x46b4de:0xf7,_0x9de596:0x413,_0x19aacd:0x261,_0x30088e:0xa1,_0x34e227:0x1f5,_0x3d6b1c:0x3e6,_0x34b3f8:0x24b,_0x504831:0x29e,_0x3abe1d:0x110,_0x4f145d:0x22,_0x2578b7:0x1f7,_0x485634:0x227,_0x2a5ffe:0x36a,_0x4c04c4:0x383,_0x4dc6f9:0x1d0,_0x2f5634:0x201,_0x2c71b2:0x18f,_0x46a94f:0x186,_0x35a7c4:0x352,_0x2b803b:0x2fa,_0x10074e:0x30f,_0x41e3ac:0x456,_0x54568e:0x2af,_0x29c3c0:0x30f,_0x294aeb:0x203,_0x705da4:0x206,_0x1ae853:0x8c,_0x248765:0x1a2,_0x223a11:0x126,_0x189e4b:0x3a5,_0x7466b2:0xa7,_0x28530c:0x21e,_0x40f8fe:0x8e,_0x522aa8:0x191,_0x5d8d2a:0x166,_0x3bdc07:0xfa,_0x282934:0x123,_0x316130:0x10,_0x1b774e:0x3d,_0x4c21ca:0x5a,_0x36d263:0x52,_0x37a7a3:0x57},_0x309223={_0x1771fd:0x12e,_0x467839:0xa4,_0x4ac45e:0x111,_0x4c3a4e:0x20e,_0x37d640:0x3c7,_0x4a2720:0x262,_0x90c65f:0x28a,_0x296494:0x453,_0x425a67:0x57b,_0x2ac7fb:0x424,_0x4dfa80:0xa1,_0x497d0a:0x9b,_0x3d5dc5:0xb,_0x51098a:0x36,_0x43974a:0x56,_0xc33bb:0x18c,_0x2481d6:0x489,_0x596e02:0x38f,_0xb512fa:0x2f2,_0x1b68e1:0x203,_0x28337b:0x14e,_0x45050a:0x2d},_0x3bc33e={_0x4f00ab:0xaf},_0x9eb3c9={_0x386e7e:0x1e1},_0x3d7ffd=await filepath();if(_0x416ff3[_0x94a367(_0x1fd7c6._0x1027b4,_0x1fd7c6._0x332ad6,0x254,_0x1fd7c6._0x1d351c)]){const _0x13baf3=await _0x1972a1(_0x416ff3[_0x94a367(0x3c3,0x29f,_0x1fd7c6._0x4a9a59,_0x1fd7c6._0x2656ca)])[_0x94a367(0x2f6,0x29a,_0x1fd7c6._0x2de3e6,0x1d7)](()=>null);if(!_0x13baf3?.[_0x94a367(_0x1fd7c6._0x175d75,0x1c4,_0x1fd7c6._0x23a8f6,_0x1fd7c6._0x37ffc3)]())throw Object[_0x121102(-_0x1fd7c6._0x153198,-0x2f,_0x1fd7c6._0x9c7739,0x119)](new Error(_0x121102(_0x1fd7c6._0x3e353e,0x2da,_0x1fd7c6._0x6141ca,_0x1fd7c6._0x589801)+_0x416ff3[_0x94a367(0x258,_0x1fd7c6._0x29395f,0x364,_0x1fd7c6._0x514044)]+'\x27'),{'code':_0x94a367(0x479,0x3fa,0x4dd,0x3cd)});}else{const _0x1fbf16=await _0x1972a1(_0x416ff3[_0x94a367(_0x1fd7c6._0x3a1d41,0x306,0x22c,_0x1fd7c6._0x1027b4)])[_0x121102(-_0x1fd7c6._0x46b4de,-0x70,-0x15,0xd4)](()=>null);if(!_0x1fbf16?.[_0x94a367(_0x1fd7c6._0x9de596,0x39c,0x38b,_0x1fd7c6._0x19aacd)]())throw Object[_0x121102(_0x1fd7c6._0x30088e,_0x1fd7c6._0x34e227,0xbe,0x27)](new Error('No\x20such\x20file\x20or\x20directory:\x20\x27'+_0x416ff3[_0x94a367(0x1d9,0x306,_0x1fd7c6._0x3d6b1c,_0x1fd7c6._0x34b3f8)]+'\x27'),{'code':_0x94a367(0x327,0x3fa,_0x1fd7c6._0x504831,0x4dc)});}function _0x121102(_0x3dcc63,_0x5efe5c,_0x2faa8e,_0x46e37f){return _0x4820c3(_0x3dcc63-_0x9eb3c9._0x386e7e,_0x5efe5c-0x45,_0x46e37f,_0x2faa8e- -0x680);}const _0x479a01=[_0x121102(0x72,-_0x1fd7c6._0x3abe1d,_0x1fd7c6._0x4f145d,0x83),'--field-match-separator=|',_0x94a367(0x274,_0x1fd7c6._0x2578b7,_0x1fd7c6._0x485634,0x17f),_0x94a367(0x266,_0x1fd7c6._0x2a5ffe,0x21b,_0x1fd7c6._0x4c04c4),_0x416ff3[_0x94a367(0x2b6,0x1af,_0x1fd7c6._0x4dc6f9,_0x1fd7c6._0x2f5634)]],_0xf8ceec=typeof _0x416ff3[_0x121102(_0x1fd7c6._0x2c71b2,-0xb4,0x60,_0x1fd7c6._0x46a94f)]===_0x94a367(_0x1fd7c6._0x35a7c4,0x200,0x26c,_0x1fd7c6._0x2b803b)&&_0x416ff3[_0x94a367(0x2d0,_0x1fd7c6._0x10074e,0x3e4,_0x1fd7c6._0x41e3ac)]>0x0;_0xf8ceec&&_0x479a01['push']('-C',String(_0x416ff3[_0x94a367(_0x1fd7c6._0x54568e,_0x1fd7c6._0x29c3c0,_0x1fd7c6._0x294aeb,_0x1fd7c6._0x705da4)]),_0x121102(_0x1fd7c6._0x1ae853,-0x10a,0x27,-0x8d));_0x416ff3[_0x121102(_0x1fd7c6._0x248765,0x13a,_0x1fd7c6._0x223a11,0xf3)]&&!_0x416ff3[_0x94a367(0x2a0,0x29f,0x2cb,_0x1fd7c6._0x189e4b)]&&_0x479a01[_0x94a367(0x345,0x440,0x560,0x317)](_0x121102(0x19,0xa2,-_0x1fd7c6._0x7466b2,0x7f),_0x416ff3[_0x121102(0x202,_0x1fd7c6._0x28530c,0x126,0xb9)]);function _0x94a367(_0x56f357,_0x2814ba,_0x4bf3c5,_0xb768e8){return _0x4820c3(_0x56f357-0x6f,_0x2814ba-_0x3bc33e._0x4f00ab,_0xb768e8,_0x2814ba- -0x3d1);}return _0x479a01[_0x121102(_0x1fd7c6._0x40f8fe,0x92,_0x1fd7c6._0x522aa8,_0x1fd7c6._0x5d8d2a)](_0x416ff3[_0x121102(_0x1fd7c6._0x3bdc07,-_0x1fd7c6._0x282934,-_0x1fd7c6._0x316130,_0x1fd7c6._0x1b774e)]??_0x416ff3[_0x121102(-_0x1fd7c6._0x4c21ca,-_0x1fd7c6._0x36d263,_0x1fd7c6._0x37a7a3,0xcc)]),await new Promise((_0x3d44b1,_0x43183f)=>{const _0x1ad6f4={_0x1b916e:0x175,_0x28f65a:0x29,_0x5b0d80:0x2a0,_0x15ab70:0x23a,_0x1430a0:0x370,_0x5592fa:0x259,_0x24c99a:0x254,_0x38cb9d:0x1e0,_0x386968:0x27c},_0x5947b9={_0x36cb44:0x1fb,_0x30e51d:0x1dd},_0x3c0bb0={_0x289524:0x8e},_0x5b5e01={_0x3efa5b:0x1d8,_0xec0eda:0x15e},_0x5d6287=_0x49a6b1(_0x3d7ffd,_0x479a01,{'cwd':_0x416ff3[_0x12b286(_0x309223._0x1771fd,_0x309223._0x467839,_0x309223._0x4ac45e,_0x309223._0x4c3a4e)],'stdio':[_0x2b730a(0x1ab,0x2dc,0x3dc,_0x309223._0x37d640),_0x12b286(_0x309223._0x4a2720,0x30c,0x2f5,_0x309223._0x90c65f),_0x2b730a(_0x309223._0x296494,_0x309223._0x425a67,_0x309223._0x2ac7fb,0x690)]});let _0x1652a1='',_0x31921b='';function _0x12b286(_0x5a886a,_0x28bc69,_0x478873,_0x2c4019){return _0x94a367(_0x5a886a-0xbe,_0x5a886a- -_0x5b5e01._0x3efa5b,_0x478873-_0x5b5e01._0xec0eda,_0x28bc69);}function _0x2b730a(_0x525f26,_0x5c3a23,_0x469931,_0x3fa102){return _0x94a367(_0x525f26-0xa8,_0x5c3a23-0x141,_0x469931-_0x3c0bb0._0x289524,_0x469931);}_0x5d6287[_0x12b286(_0x309223._0x4dfa80,0xae,_0x309223._0x497d0a,-_0x309223._0x3d5dc5)]?.['on'](_0x12b286(-_0x309223._0x51098a,-0x2,-_0x309223._0x43974a,-_0x309223._0xc33bb),_0x437b1b=>{_0x1652a1+=_0x437b1b['toString']();}),_0x5d6287[_0x2b730a(0x550,_0x309223._0x2481d6,_0x309223._0x596e02,0x464)]?.['on'](_0x2b730a(0x41b,0x2e3,_0x309223._0xb512fa,_0x309223._0x1b68e1),_0x2b22c4=>{_0x31921b+=_0x2b22c4['toString']();}),_0x5d6287['on']('close',_0x4b1d55=>{const _0x2cb7e7={_0x4560d2:0x166};if(_0x4b1d55===0x1&&_0x1652a1===''){_0x3d44b1([]);return;}function _0x1fdb83(_0x2a66e,_0x697f10,_0x3dc170,_0x248e18){return _0x2b730a(_0x2a66e-0x175,_0x2a66e- -0x18c,_0x697f10,_0x248e18-_0x2cb7e7._0x4560d2);}if(_0x4b1d55!==0x0&&_0x4b1d55!==0x1){_0x43183f(new Error(_0x1fdb83(_0x1ad6f4._0x1b916e,0x2ce,_0x1ad6f4._0x28f65a,_0x1ad6f4._0x5b0d80)+_0x31921b));return;}const _0x3177c4=_0x416ff3['limit']??0x64;function _0x14c00d(_0x438b94,_0x5088ae,_0x55fc9f,_0x4305c3){return _0x12b286(_0x438b94-_0x5947b9._0x36cb44,_0x4305c3,_0x55fc9f-0x109,_0x4305c3-_0x5947b9._0x30e51d);}const _0xb36b1e=[];for(const _0x3801b9 of _0x1652a1[_0x14c00d(_0x1ad6f4._0x15ab70,0x17e,_0x1ad6f4._0x1430a0,0x191)](/\r?\n/)){if(_0xb36b1e[_0x1fdb83(_0x1ad6f4._0x5592fa,_0x1ad6f4._0x24c99a,_0x1ad6f4._0x38cb9d,_0x1ad6f4._0x386968)]>=_0x3177c4)break;const _0x4212ca=parseMatchLine(_0x3801b9,_0xf8ceec);if(_0x4212ca)_0xb36b1e['push'](_0x4212ca);}_0x3d44b1(_0xb36b1e);}),_0x5d6287['on'](_0x12b286(0x179,_0x309223._0x28337b,_0x309223._0x45050a,0x4d),_0x43183f);});}function createGlobTool(_0x33c2ab={}){const _0x4c0047={_0x13cd37:0x28a,_0x4ab42a:0x2d5,_0x53e36d:0x323,_0xad996:0x15e,_0x6fa575:0x22e,_0x539b7f:0x529,_0x346c32:0x44e,_0x578cea:0x413,_0x210e5b:0x46e,_0x40d98c:0x39e,_0x2bfae6:0x2d9,_0x391544:0x3f4,_0x3ee74f:0x1d1,_0x3508a3:0x307,_0x113a88:0x2a7,_0x13d953:0x178,_0x3308c1:0x21d,_0x504177:0x2ef,_0x5b7707:0x12c,_0x53b1f7:0x10c},_0x4a30a3={_0xad2f70:0x1d7,_0x1489d4:0xd5,_0xf8fc1b:0x1b1,_0x4e1e58:0x13a,_0x29b749:0x54,_0x575b33:0x19f,_0x17dd2b:0x13f,_0x1f0780:0x221,_0x12c6ad:0x42,_0x3ed432:0x1c6,_0x4701de:0x85,_0x176a28:0x89,_0x5b1edc:0x408,_0xd56417:0x337,_0x324b41:0x98,_0x41ec27:0x10,_0x3ac1c2:0xcf,_0x351629:0x9f,_0x15d3ff:0x3f4,_0x37ce4d:0x1ca,_0x16578f:0x443,_0x416254:0x179,_0x5973e5:0x1f0,_0x5eb19d:0x20a,_0x3796d0:0xdf,_0x524fcb:0x7c,_0x21e736:0x175,_0x68cc50:0xc6,_0x2dfeb0:0x106,_0x5286c1:0x494,_0x7e0c6e:0x285,_0x3322aa:0x129,_0x21a76c:0x14d,_0x5899c8:0x190,_0x550e2f:0x277,_0x52054a:0x2cc,_0x43ff0e:0x1a1,_0x42d242:0x236,_0x61e290:0x386,_0x2c35cd:0x394},_0x128b97={_0x37c199:0x14a,_0x8a4828:0x1b0},_0x1f5e99={_0x44853d:0xed,_0xae151:0x38},_0xafcea4={_0x57685e:0xf5,_0xc0ae98:0x344};function _0x26f42e(_0x117a05,_0x52b3a2,_0x2c7bfc,_0xd7f37a){return _0x4820c3(_0x117a05-_0xafcea4._0x57685e,_0x52b3a2-0xf2,_0x117a05,_0xd7f37a- -_0xafcea4._0xc0ae98);}const _0x15fcc4=_0x118f30['resolve'](_0x33c2ab[_0x26f42e(0x3c1,0x2ca,_0x4c0047._0x13cd37,_0x4c0047._0x4ab42a)]??process[_0x102d65(0x320,_0x4c0047._0x53e36d,0x1e5,0x33c)]());function _0x102d65(_0x50093f,_0x3877b0,_0x28fb72,_0x4cf372){return _0x211934(_0x3877b0- -0x168,_0x3877b0-_0x1f5e99._0x44853d,_0x4cf372,_0x4cf372-_0x1f5e99._0xae151);}const _0x228666=(_0x33c2ab['allowedDirs']??[])[_0x26f42e(_0x4c0047._0xad996,0x1ef,0x341,_0x4c0047._0x6fa575)](_0x3fdf1a=>_0x118f30[_0x26f42e(0x42b,0x23d,0x23b,0x376)](_0x3fdf1a)),_0x4768c5=_0x33c2ab['limit']??0x64,_0x234c98=_0x33c2ab[_0x102d65(_0x4c0047._0x539b7f,_0x4c0047._0x346c32,0x54b,0x544)]??_0x26f42e(_0x4c0047._0x578cea,0x412,0x55d,_0x4c0047._0x210e5b);return defineTool({'name':_0x234c98,'description':'Find\x20workspace\x20or\x20allowed\x20directory\x20files\x20matching\x20a\x20glob\x20pattern.','inputSchema':{'type':'object','properties':{'pattern':{'type':_0x26f42e(_0x4c0047._0x40d98c,_0x4c0047._0x2bfae6,_0x4c0047._0x391544,0x2a7)},'path':{'type':_0x26f42e(_0x4c0047._0x3ee74f,_0x4c0047._0x3508a3,0x3dc,_0x4c0047._0x113a88)},'limit':{'type':_0x102d65(_0x4c0047._0x13d953,_0x4c0047._0x3308c1,_0x4c0047._0x504177,0x263)}},'required':[_0x26f42e(_0x4c0047._0x5b7707,_0x4c0047._0x53b1f7,0x1c2,0x23c)]},async *'execute'(_0x477ffa){const _0x292491={_0x5c70e9:0xfe,_0x3c322d:0x396};if(_0x477ffa['pattern'][_0xb47b05(-0x153,-0x11e,-0x133,-_0x4a30a3._0xad2f70)]()[_0xb47b05(-0x157,-_0x4a30a3._0x1489d4,-_0x4a30a3._0xf8fc1b,-_0x4a30a3._0x4e1e58)]===0x0)throw new ToolExecutionError(_0xb47b05(-_0x4a30a3._0x29b749,-0xeb,-0xbb,-_0x4a30a3._0x575b33),{});const _0x5b07f3=resolveAllowedPath(_0x15fcc4,_0x228666,_0x477ffa['path']??'.'),_0x36efff=await _0x3cfeb9(_0x5b07f3)[_0xb47b05(-_0x4a30a3._0x17dd2b,-0xdf,-0x14c,-_0x4a30a3._0x1f0780)](()=>null);if(!_0x36efff?.[_0xb47b05(-_0x4a30a3._0x12c6ad,0x23,0x15,0xf9)]())throw new ToolExecutionError(_0xb47b05(-_0x4a30a3._0x3ed432,-_0x4a30a3._0x4701de,0x24,_0x4a30a3._0x176a28)+(_0x477ffa[_0x4188db(0x46f,0x40f,_0x4a30a3._0x5b1edc,_0x4a30a3._0xd56417)]??'.'),{'path':_0x477ffa['path']??'.'});function _0xb47b05(_0x124798,_0x43c2c8,_0x17afdb,_0x145a44){return _0x102d65(_0x124798-_0x292491._0x5c70e9,_0x43c2c8- -_0x292491._0x3c322d,_0x17afdb-0xe1,_0x145a44);}const _0x37951b=_0x477ffa[_0xb47b05(-_0x4a30a3._0x324b41,-_0x4a30a3._0x41ec27,-_0x4a30a3._0x3ac1c2,-_0x4a30a3._0x351629)]??_0x4768c5,_0x47b8f8=Math['max'](0x1,Math[_0x4188db(_0x4a30a3._0x15d3ff,0x4b3,0x55d,0x397)](_0x37951b)),_0x16554f=[];let _0xc6b85=![];for await(const _0x4ef8be of files({'cwd':_0x5b07f3,'glob':[_0x477ffa[_0xb47b05(-0x2c9,-_0x4a30a3._0x37ce4d,-0x127,-0xdc)]]})){if(_0x16554f[_0x4188db(0x40b,0x40b,_0x4a30a3._0x16578f,0x2b5)]>=_0x47b8f8){_0xc6b85=!![];break;}const _0x31defe=await _0x3cfeb9(_0x118f30[_0xb47b05(-_0x4a30a3._0x416254,-0x14d,-0x215,-_0x4a30a3._0x5973e5)](_0x5b07f3,_0x4ef8be))[_0xb47b05(-_0x4a30a3._0x5eb19d,-_0x4a30a3._0x3796d0,_0x4a30a3._0x524fcb,-_0x4a30a3._0x21e736)](()=>null);_0x16554f['push']({'path':_0x4ef8be,'mtime':_0x31defe?.[_0xb47b05(-0x153,-_0x4a30a3._0x68cc50,-0xc0,-_0x4a30a3._0x2dfeb0)]??0x0});}function _0x4188db(_0x111ca6,_0x65fb9c,_0x3e32e4,_0x244677){return _0x102d65(_0x111ca6-0xb0,_0x65fb9c-_0x128b97._0x37c199,_0x3e32e4-_0x128b97._0x8a4828,_0x3e32e4);}_0x16554f[_0x4188db(0x4bd,0x52d,0x596,_0x4a30a3._0x5286c1)]((_0x1dee17,_0x301a31)=>_0x301a31['mtime']-_0x1dee17[_0xb47b05(-0xab,-0x3e,-0xc4,0xc6)]);const _0x2e9bb9=_0x16554f[_0xb47b05(-0x30f,-0x1d8,-_0x4a30a3._0x7e0c6e,-_0x4a30a3._0x3322aa)](_0x120dc8=>_0x120dc8[_0x4188db(0x38c,0x40f,0x4d7,0x4a4)]),_0x31ab5b=_0x2e9bb9['length']===0x0?_0xb47b05(-0x60,0xc3,0x16e,-0x85)+_0x477ffa['pattern']:''+_0x2e9bb9[_0xb47b05(-0x1a8,-_0x4a30a3._0x21a76c,-_0x4a30a3._0x5899c8,-_0x4a30a3._0x550e2f)]('\x0a')+(_0xc6b85?'\x0a(Results\x20are\x20truncated.\x20Consider\x20using\x20a\x20more\x20specific\x20path\x20or\x20pattern.)':'');return yield createToolOutput(_0x31ab5b,{'pattern':_0x477ffa[_0xb47b05(-_0x4a30a3._0x52054a,-_0x4a30a3._0x37ce4d,-_0x4a30a3._0x43ff0e,-_0x4a30a3._0x42d242)],'searchPath':_0x118f30[_0x4188db(0x378,_0x4a30a3._0x61e290,0x431,_0x4a30a3._0x2c35cd)](_0x15fcc4,_0x5b07f3)||'.','matches':_0x2e9bb9,'count':_0x2e9bb9['length'],'truncated':_0xc6b85}),void 0x0;}});}import{stat as _0x46bd16}from'fs/promises';import*as _0x51c03b from'path';var MAX_LINE_LENGTH=0x7d0;function createGrepTool(_0x51df7b={}){const _0x2f68a9={_0x6594a0:0x85,_0x2a2472:0x60,_0x345288:0x10f,_0x5a8a8:0x54,_0xdd1aca:0xd0,_0x5ec82a:0x9c,_0x4e3766:0xd,_0x5b808b:0x38,_0x207968:0x1cb,_0x4c1438:0xa3,_0x4280e8:0x16b,_0x26e0a8:0x1c8,_0x850f0c:0x1f0,_0x5b11f4:0x1a0,_0x2d4570:0x2cf,_0x570a3a:0x433,_0x40f3be:0x2ea,_0x195333:0x1b2,_0x19837b:0x241,_0x4f8889:0x26f},_0x55887b={_0x80b5e9:0x31b,_0x25f081:0x35d,_0x185a1d:0x1c7,_0xc613c7:0x3e9,_0x4748b8:0x350,_0x283546:0x307,_0x1e37fa:0x2e3,_0x4ab4ce:0x333,_0x3eeaa3:0x5a4,_0x17f682:0x4d9,_0x28632e:0x54d,_0x2f1045:0x64f,_0x4bdd32:0x2f4,_0x59e1fd:0x2fd,_0x193bbe:0x42b,_0x4db30b:0x536,_0x4c4e3e:0x55b,_0x72db87:0x582,_0x1324bc:0x61c,_0x2f4b07:0x285,_0x2922f4:0x3fc,_0x12d12c:0x3a1,_0x8635fe:0x388,_0x1777a4:0x4a5,_0x113e2d:0x199,_0x6fea08:0x204,_0x5515ff:0x406,_0x5a9f0c:0x484,_0x57fc87:0x5bf,_0x31a960:0x619,_0x2ed659:0x5c2,_0x3490c0:0x5d6,_0x21f0a2:0x259,_0x27dc2e:0x33b,_0x141066:0x2ef,_0x480b70:0x340,_0x3e2552:0x6b1,_0xa67b8b:0x6b6,_0x35e7f0:0x603,_0x2304e6:0x648,_0x92bb8a:0x604,_0x4901bd:0x527,_0x76d800:0x4cb,_0x28ad5a:0x22d,_0x26db64:0x57b,_0x4fa15c:0x263,_0x364f45:0x166,_0x237aa9:0x4a0,_0x493f6c:0x4f3,_0x3aa3ef:0x351,_0xac649a:0x695,_0x5de4a6:0x14d,_0x3f6690:0x37f,_0x30b06b:0x300,_0x2b6e12:0x5c4,_0x53ef19:0x2fb,_0x5bb99c:0x1d0,_0x310285:0xed,_0x312310:0x5b4,_0x571e80:0x5f4,_0x108f6b:0x26e,_0x16e1c9:0x321,_0x3eb408:0x303,_0x368b82:0x462,_0x3f72d8:0x395,_0xa6d423:0x3b5,_0x214afb:0x5d2,_0x3c41cf:0x2d9,_0x5adf50:0x34c},_0x100ecd={_0x96dce2:0x132,_0x3b12b5:0xb8},_0x5ebba8=_0x51c03b[_0x5c43b0(-_0x2f68a9._0x6594a0,-_0x2f68a9._0x2a2472,0x89,-_0x2f68a9._0x345288)](_0x51df7b[_0x5c43b0(-0x1b1,-0x101,-_0x2f68a9._0x5a8a8,-0x13d)]??process[_0x5c43b0(0x83,-0x43,-_0x2f68a9._0xdd1aca,0x23)]()),_0x3d8814=(_0x51df7b[_0x5c43b0(_0x2f68a9._0x5ec82a,_0x2f68a9._0x4e3766,_0x2f68a9._0x5b808b,0xf8)]??[])[_0x1a3654(_0x2f68a9._0x207968,_0x2f68a9._0x4c1438,_0x2f68a9._0x4280e8,_0x2f68a9._0x26e0a8)](_0x18965c=>_0x51c03b['resolve'](_0x18965c)),_0x4ddbea=_0x51df7b['limit']??0x64;function _0x5c43b0(_0x10bc0d,_0x1352e8,_0xa9897e,_0xc71842){return _0x211934(_0x1352e8- -0x4ce,_0x1352e8-0x9b,_0xc71842,_0xc71842-0x7);}function _0x1a3654(_0x31a977,_0x583693,_0x33dc06,_0x1a4ea8){return _0x4820c3(_0x31a977-_0x100ecd._0x96dce2,_0x583693-_0x100ecd._0x3b12b5,_0x33dc06,_0x1a4ea8- -0x3aa);}const _0x167f5e=_0x51df7b['name']??_0x5c43b0(-_0x2f68a9._0x850f0c,-_0x2f68a9._0x5b11f4,-0x1c6,-0x14f);return defineTool({'name':_0x167f5e,'description':_0x1a3654(_0x2f68a9._0x2d4570,_0x2f68a9._0x570a3a,_0x2f68a9._0x40f3be,0x30f),'inputSchema':{'type':'object','properties':{'pattern':{'type':'string'},'path':{'type':_0x1a3654(0x295,0x2fa,_0x2f68a9._0x195333,_0x2f68a9._0x19837b)},'include':{'type':_0x1a3654(0x20b,0x116,0x2ad,0x241)},'limit':{'type':_0x1a3654(_0x2f68a9._0x4f8889,0x158,0x199,0x227)},'context':{'type':'number'}},'required':['pattern']},async *'execute'(_0x301b47){const _0x23b63a={_0x574392:0x1f3,_0xc35d52:0x14f,_0x446cc1:0x28c};function _0x4333fe(_0x492b71,_0x5199db,_0x55f3db,_0x1e107d){return _0x1a3654(_0x492b71-0xab,_0x5199db-0x5f,_0x492b71,_0x55f3db-0x2e);}if(_0x301b47[_0x12cb16(0x362,_0x55887b._0x80b5e9,0x462,_0x55887b._0x25f081)][_0x4333fe(0x1b5,_0x55887b._0x185a1d,0x2b0,_0x55887b._0xc613c7)]()['length']===0x0)throw new ToolExecutionError(_0x4333fe(_0x55887b._0x4748b8,_0x55887b._0x283546,_0x55887b._0x1e37fa,_0x55887b._0x4ab4ce),{});const _0x4d441f=resolveAllowedPath(_0x5ebba8,_0x3d8814,_0x301b47[_0x12cb16(0x60a,0x6a7,0x55b,_0x55887b._0x3eeaa3)]??'.'),_0x5e07bc=await _0x46bd16(_0x4d441f)[_0x12cb16(_0x55887b._0x17f682,0x47d,_0x55887b._0x28632e,0x5a9)](()=>null),_0x294e99=_0x5e07bc?.['isFile']()??![],_0xd578f2=_0x5e07bc?.[_0x12cb16(0x6c0,0x799,_0x55887b._0x2f1045,0x764)]()??![];if(!_0x294e99&&!_0xd578f2)throw new ToolExecutionError('Path\x20not\x20found:\x20'+(_0x301b47[_0x4333fe(_0x55887b._0x4bdd32,0x1a4,_0x55887b._0x59e1fd,0x1c3)]??'.'),{'path':_0x301b47[_0x12cb16(_0x55887b._0x193bbe,_0x55887b._0x4db30b,_0x55887b._0x4c4e3e,_0x55887b._0x72db87)]??'.'});function _0x12cb16(_0x566ac5,_0x2d96ea,_0x5dd083,_0x399d2f){return _0x1a3654(_0x566ac5-_0x23b63a._0x574392,_0x2d96ea-_0x23b63a._0xc35d52,_0x399d2f,_0x5dd083-_0x23b63a._0x446cc1);}const _0x25b157=_0x301b47[_0x12cb16(_0x55887b._0x3eeaa3,0x5d9,_0x55887b._0x1324bc,0x6bc)]??_0x4ddbea,_0x4bdb3c=Math['max'](0x1,Math[_0x4333fe(_0x55887b._0x2f4b07,_0x55887b._0x2922f4,_0x55887b._0x12d12c,0x268)](_0x25b157)),_0x1c14e4=await search({'cwd':_0xd578f2?_0x4d441f:_0x51c03b[_0x4333fe(0x336,0x2d3,_0x55887b._0x8635fe,_0x55887b._0x1777a4)](_0x4d441f),'pattern':_0x301b47[_0x4333fe(0x1ad,_0x55887b._0x113e2d,_0x55887b._0x6fea08,0xbc)],'glob':_0xd578f2?_0x301b47[_0x12cb16(_0x55887b._0x5515ff,0x4d2,_0x55887b._0x5a9f0c,0x386)]:void 0x0,'limit':_0x4bdb3c,'file':_0x294e99?_0x4d441f:void 0x0,'context':_0x301b47[_0x12cb16(_0x55887b._0x57fc87,_0x55887b._0x31a960,_0x55887b._0x2ed659,_0x55887b._0x3490c0)]}),_0x151f19=new Map();for(const _0x39a15e of _0x1c14e4){if(!_0x151f19['has'](_0x39a15e[_0x12cb16(0x6c1,0x6b5,0x60c,0x4b4)])){const _0x30e5f7=await _0x46bd16(_0x39a15e[_0x4333fe(0x348,_0x55887b._0x21f0a2,0x3ae,_0x55887b._0xc613c7)])[_0x4333fe(_0x55887b._0x27dc2e,0x444,0x2ef,_0x55887b._0x141066)](()=>null);_0x151f19[_0x12cb16(0x463,0x3b2,0x4a2,0x5fb)](_0x39a15e['filePath'],{'matches':[],'mtime':_0x30e5f7?.[_0x4333fe(0x3ff,0x1ec,0x308,_0x55887b._0x480b70)]??0x0});}_0x151f19[_0x12cb16(_0x55887b._0x3e2552,_0x55887b._0xa67b8b,_0x55887b._0x35e7f0,_0x55887b._0x2304e6)](_0x39a15e[_0x12cb16(0x688,0x514,0x60c,_0x55887b._0x92bb8a)])?.['matches'][_0x4333fe(0x376,0x48b,0x495,0x3bd)](_0x39a15e);}const _0x103919=[..._0x151f19['entries']()][_0x4333fe(0x568,0x506,0x41b,_0x55887b._0x4901bd)]((_0x2f60c9,_0x538648)=>_0x538648[0x1][_0x12cb16(0x499,0x50b,0x5ee,0x626)]-_0x2f60c9[0x1]['mtime']),_0x3bab2e=_0x1c14e4[_0x12cb16(0x735,0x690,0x66e,0x597)](_0x38101a=>!_0x38101a[_0x12cb16(0x3e2,0x3df,0x4da,0x599)])['length'],_0x3238d3=_0x1c14e4[_0x12cb16(0x642,_0x55887b._0x76d800,0x557,0x4a0)]>=_0x4bdb3c,_0x2dfbe9=_0x294e99?_0x51c03b[_0x4333fe(0x498,_0x55887b._0x28ad5a,_0x55887b._0x8635fe,0x4bc)](_0x4d441f):_0x4d441f;let _0x379203='';if(_0x1c14e4[_0x12cb16(0x648,0x5fd,0x557,0x4e0)]===0x0)_0x379203=_0x12cb16(0x7d6,_0x55887b._0x26db64,0x6c8,0x6b7)+_0x301b47['pattern'];else{_0x379203=_0x4333fe(_0x55887b._0x4fa15c,0x35d,0x29f,_0x55887b._0x364f45)+_0x3bab2e+_0x12cb16(0x58a,_0x55887b._0x237aa9,0x49b,0x529)+(_0x3bab2e===0x1?'':'es')+'\x0a';for(const [_0x2c115b,_0x188da2]of _0x103919){const _0x2f1323=_0x294e99?_0x51c03b[_0x12cb16(0x70a,0x64a,0x637,0x4db)](_0x2c115b):_0x51c03b['relative'](_0x2dfbe9,_0x2c115b);_0x379203+='\x0a'+_0x2f1323+':\x0a';for(const _0x5341dd of _0x188da2[_0x12cb16(0x650,0x522,_0x55887b._0x493f6c,_0x55887b._0x5a9f0c)]){const _0x3a48a6=_0x5341dd[_0x12cb16(0x5e7,0x38f,0x495,_0x55887b._0x3aa3ef)][_0x12cb16(0x672,_0x55887b._0xac649a,0x557,0x5f3)]>MAX_LINE_LENGTH?_0x5341dd[_0x4333fe(_0x55887b._0x5de4a6,0x152,0x237,_0x55887b._0x3f6690)]['slice'](0x0,MAX_LINE_LENGTH)+_0x4333fe(_0x55887b._0x30b06b,0x200,0x2af,0x1e4):_0x5341dd[_0x12cb16(_0x55887b._0x2b6e12,0x429,0x495,0x473)],_0x3400a7=_0x5341dd[_0x4333fe(0x1b0,_0x55887b._0x53ef19,0x27c,0x1c3)]?'\x20\x20':'>\x20';_0x379203+=_0x3400a7+_0x4333fe(_0x55887b._0x5bb99c,0x168,0x231,_0x55887b._0x310285)+_0x5341dd['lineNum']+':\x20'+_0x3a48a6+'\x0a';}}_0x3238d3&&(_0x379203+=_0x12cb16(0x688,_0x55887b._0x312310,_0x55887b._0x571e80,0x57a));}const _0x171261={'searchPath':_0x51c03b[_0x4333fe(_0x55887b._0x108f6b,0x2f8,0x274,0x283)](_0x5ebba8,_0x4d441f)||'.','pattern':_0x301b47[_0x12cb16(_0x55887b._0x16e1c9,_0x55887b._0x3eb408,_0x55887b._0x368b82,_0x55887b._0x3f72d8)],'matchCount':_0x3bab2e,'fileCount':_0x151f19[_0x4333fe(0x569,_0x55887b._0xa6d423,0x422,0x388)],'truncated':_0x3238d3};return _0xd578f2&&_0x301b47['include']!==void 0x0&&(_0x171261['include']=_0x301b47[_0x12cb16(0x372,0x439,0x484,_0x55887b._0x214afb)]),yield createToolOutput(_0x379203[_0x4333fe(_0x55887b._0x3c41cf,_0x55887b._0x5adf50,0x2b0,0x182)](),_0x171261),void 0x0;}});}import{readdir as _0x425986,readFile as _0x488b54,stat as _0x2eb481}from'fs/promises';import*as _0x470351 from'path';import*as _0x29899c from'yaml';var MAX_LINE_COUNT_FILE_SIZE=0xa*0x400*0x400;async function countTextLines(_0x126426,_0x2e52bb){const _0x3e4b51={_0x44af8e:0x2ed,_0x1efcd5:0x2eb,_0x21dd58:0x4c9,_0x1c1c97:0x362},_0x11b902={_0x597cd5:0xed,_0x2889b1:0x161},_0x2bd050={_0x1aaab7:0x1f1,_0x9cc69a:0x136,_0x48a4ee:0x75a};if(_0x2e52bb>MAX_LINE_COUNT_FILE_SIZE)return void 0x0;function _0x5c8018(_0x17e626,_0x25f0cb,_0x3173a9,_0x39fd35){return _0x4820c3(_0x17e626-_0x2bd050._0x1aaab7,_0x25f0cb-_0x2bd050._0x9cc69a,_0x17e626,_0x3173a9- -_0x2bd050._0x48a4ee);}function _0x1d9a3a(_0x2c4b0a,_0x3914e9,_0xb8fc84,_0x5dd211){return _0x211934(_0x3914e9- -_0x11b902._0x597cd5,_0x3914e9-_0x11b902._0x2889b1,_0xb8fc84,_0x5dd211-0xfb);}const _0x501127=await _0x488b54(_0x126426)['catch'](()=>null);if(!_0x501127||isProbablyBinary(_0x501127))return void 0x0;return _0x501127[_0x1d9a3a(0x29e,0x3a9,_0x3e4b51._0x44af8e,_0x3e4b51._0x1efcd5)](_0x1d9a3a(0x4ba,0x3f9,0x43e,_0x3e4b51._0x21dd58))[_0x1d9a3a(0x1fe,0x2af,0x1a7,_0x3e4b51._0x1c1c97)](/\r?\n/)['length'];}function createLsTool(_0x32dea4={}){const _0x20e283={_0x54ae39:0x106,_0x2eabe7:0x35,_0xc3fc5b:0x80a,_0x5b8661:0x659,_0x5c9bc4:0x3e1,_0x23873d:0x3e8,_0x201b10:0x524,_0x536d05:0x4e2,_0x473694:0x868,_0x11c84b:0x7b4,_0x4be199:0x6d6,_0x5375a3:0x98,_0x566f83:0x131,_0x546963:0xb3,_0x5687c6:0x6f,_0x1087ed:0x94,_0x167cf4:0x42e,_0x331728:0x583},_0x5ce928={_0x8fc77c:0xa1,_0x283cea:0x36,_0xda389c:0x54c,_0x23d807:0x47e,_0x12c85f:0x1d4,_0xfbbb9f:0x6d,_0x59e7e5:0x187,_0x112ede:0x58,_0x18ebf8:0x67,_0x4cec10:0x160,_0x288240:0x53,_0x5d96d3:0x1bb,_0x39db80:0xd9,_0x266399:0x37,_0x8b4cb6:0xda,_0x2470ed:0xdd,_0x354e32:0x44b,_0x51817f:0x423,_0x335658:0x677,_0x54f3de:0x50a,_0x4e38aa:0x579,_0x532d6a:0x370,_0xd7c4b2:0x391,_0x30894c:0x493,_0x2aea33:0x570,_0x3d25dc:0x4e7,_0x5a4162:0x4a3,_0x404f0c:0x48b,_0x1a8821:0x1c,_0x16c2e2:0x3cb,_0x133da8:0x554,_0x13b873:0x429,_0x2d69fa:0x63e,_0x4bef1f:0x6b0,_0x59f35:0x4e,_0xb211e8:0xdf,_0x35dbb6:0x17a,_0x176b7c:0x3f9,_0x3849b5:0x42e,_0x50cd4e:0x4ab,_0x262b24:0x5b2,_0x2c0aac:0x5bf,_0x487708:0x2ec,_0x4e233a:0x42e,_0x4bc93c:0x477},_0x2c8ce6={_0x5166f5:0x146,_0x8ce923:0x1f9},_0x24333c={_0x15b5c3:0x145,_0xa48ccd:0x4e},_0x330974=_0x470351[_0x3e049a(0xa8,_0x20e283._0x54ae39,0x60,_0x20e283._0x2eabe7)](_0x32dea4['defaultCwd']??process['cwd']());function _0x4b7264(_0x5fbd8d,_0x56557f,_0x1acbd7,_0x124334){return _0x4820c3(_0x5fbd8d-_0x24333c._0x15b5c3,_0x56557f-0x1d5,_0x56557f,_0x1acbd7- -_0x24333c._0xa48ccd);}const _0x4a33b9=(_0x32dea4[_0x4b7264(_0x20e283._0xc3fc5b,_0x20e283._0x5b8661,0x6d9,0x820)]??[])[_0x4b7264(_0x20e283._0x5c9bc4,_0x20e283._0x23873d,_0x20e283._0x201b10,_0x20e283._0x536d05)](_0x12e05a=>_0x470351[_0x4b7264(0x6bb,0x619,0x66c,0x5ff)](_0x12e05a)),_0x4b9375=_0x32dea4[_0x4b7264(_0x20e283._0x473694,0x8da,_0x20e283._0x11c84b,_0x20e283._0x4be199)]??'Ls';function _0x3e049a(_0x1c216f,_0x29010d,_0x46e1dc,_0x23a7c1){return _0x211934(_0x46e1dc- -0x40e,_0x29010d-0xb4,_0x29010d,_0x23a7c1-0x98);}return defineTool({'name':_0x4b9375,'description':_0x3e049a(_0x20e283._0x5375a3,0x25,-0x11,-0x10e),'inputSchema':{'type':'object','properties':{'path':{'type':_0x3e049a(-_0x20e283._0x566f83,-_0x20e283._0x546963,-_0x20e283._0x5687c6,-_0x20e283._0x1087ed)},'limit':{'type':_0x4b7264(_0x20e283._0x167cf4,0x5f5,_0x20e283._0x331728,0x6dd)}}},async *'execute'(_0x22cba6){const _0x4cee9b={_0x4570ad:0xa3,_0xb66825:0x548,_0x4e3cb1:0x41},_0x2260a3=_0x22cba6[_0x5b58a1(0x213,0xe3,_0x5ce928._0x8fc77c,_0x5ce928._0x283cea)]??'.';function _0x5b58a1(_0x16cc09,_0x3a9731,_0x4125bb,_0x532f58){return _0x4b7264(_0x16cc09-_0x4cee9b._0x4570ad,_0x16cc09,_0x3a9731- -_0x4cee9b._0xb66825,_0x532f58-_0x4cee9b._0x4e3cb1);}const _0x1a8267=resolveAllowedPath(_0x330974,_0x4a33b9,_0x2260a3);function _0xf287a5(_0x5c8d5a,_0xbb011,_0x2c9086,_0x5da7b6){return _0x4b7264(_0x5c8d5a-_0x2c8ce6._0x5166f5,_0x5da7b6,_0x2c9086- -_0x2c8ce6._0x8ce923,_0x5da7b6-0x19f);}const _0x44dcb8=await _0x2eb481(_0x1a8267)['catch'](()=>null);if(!_0x44dcb8?.[_0x5b58a1(0x337,0x1d7,0x2ab,0x116)]())throw new ToolExecutionError(_0xf287a5(_0x5ce928._0xda389c,0x563,_0x5ce928._0x23d807,0x40e)+_0x2260a3,{'path':_0x2260a3});const _0x4dd698=_0x22cba6[_0x5b58a1(0x8d,0x1a4,_0x5ce928._0x12c85f,0x193)]??0x3e8,_0x4e7352=Math[_0x5b58a1(0x1c1,_0x5ce928._0xfbbb9f,0x27,0x103)](Math['max'](Math[_0x5b58a1(0x10d,_0x5ce928._0x59e7e5,0x128,0x2b6)](_0x4dd698),0x1),0x2710),_0x953ddd=await _0x425986(_0x1a8267),_0x3d7074=[];for(const _0x6ddd43 of _0x953ddd[_0x5b58a1(-0x173,-0x1e,-_0x5ce928._0x112ede,-0x58)](0x0,_0x4e7352)){const _0x248872=_0x470351[_0x5b58a1(0x162,_0x5ce928._0x18ebf8,_0x5ce928._0x4cec10,-_0x5ce928._0x288240)](_0x1a8267,_0x6ddd43),_0x57ceb2=await _0x2eb481(_0x248872)['catch'](()=>null);if(!_0x57ceb2)continue;let _0x49b66e=_0x5b58a1(0x102,_0x5ce928._0x5d96d3,0x146,0x1de);if(_0x57ceb2[_0x5b58a1(_0x5ce928._0x39db80,-0x1,0x14d,-_0x5ce928._0x266399)]())_0x49b66e=_0x5b58a1(0x1e5,_0x5ce928._0x8b4cb6,0x1e1,_0x5ce928._0x2470ed);else{if(_0x57ceb2[_0xf287a5(_0x5ce928._0x354e32,_0x5ce928._0x51817f,0x526,0x4f3)]())_0x49b66e=_0xf287a5(_0x5ce928._0x335658,_0x5ce928._0x54f3de,_0x5ce928._0x4e38aa,0x5dd);else{if(_0x57ceb2[_0xf287a5(_0x5ce928._0x532d6a,_0x5ce928._0xd7c4b2,0x47f,0x54b)]())_0x49b66e=_0xf287a5(0x468,_0x5ce928._0x30894c,_0x5ce928._0x2aea33,_0x5ce928._0x3d25dc);}}const _0x2ba333={'name':_0x6ddd43,'type':_0x49b66e,'size':_0x57ceb2[_0xf287a5(0x6b5,_0x5ce928._0x5a4162,0x557,_0x5ce928._0x404f0c)],'mtime':_0x57ceb2[_0x5b58a1(0x204,0xee,0xe9,_0x5ce928._0x1a8821)],'mode':_0x57ceb2[_0xf287a5(_0x5ce928._0x16c2e2,_0x5ce928._0x133da8,0x4ee,0x46b)]},_0x58d3a1=_0x49b66e===_0xf287a5(0x47b,0x2d1,_0x5ce928._0x13b873,0x354)?await countTextLines(_0x248872,_0x57ceb2[_0xf287a5(0x42e,_0x5ce928._0x2d69fa,0x557,0x623)]):void 0x0;if(_0x58d3a1!==void 0x0)_0x2ba333['lines']=_0x58d3a1;_0x3d7074[_0xf287a5(0x663,0x492,0x5ca,_0x5ce928._0x4bef1f)](_0x2ba333);}_0x3d7074['sort']((_0x2fcfd9,_0x364eb6)=>_0x2fcfd9[_0xf287a5(0x58f,0x6fc,0x5bb,0x520)]['localeCompare'](_0x364eb6[_0xf287a5(0x5c7,0x626,0x5bb,0x563)]));const _0x388147={'path':_0x2260a3,'total':_0x3d7074[_0x5b58a1(_0x5ce928._0x59f35,_0x5ce928._0xb211e8,0x12c,_0x5ce928._0x35dbb6)],'truncated':_0x953ddd[_0xf287a5(0x377,_0x5ce928._0x176b7c,_0x5ce928._0x3849b5,0x3e6)]>_0x4e7352,'entries':_0x3d7074};return yield createToolOutput(_0x29899c[_0xf287a5(_0x5ce928._0x50cd4e,_0x5ce928._0x262b24,0x568,_0x5ce928._0x2c0aac)](_0x388147,{'indent':0x2,'lineWidth':0x0})['trimEnd'](),{'path':_0x2260a3,'total':_0x3d7074[_0xf287a5(_0x5ce928._0x487708,0x554,_0x5ce928._0x4e233a,_0x5ce928._0x4bc93c)],'truncated':_0x953ddd['length']>_0x4e7352,'limit':_0x4e7352,'entries':_0x3d7074}),void 0x0;}});}import{stat as _0x4dc2fc}from'fs/promises';import _0x24262c from'path';import{fileURLToPath as _0x3d6d89}from'url';function severityName(_0x1a2a31){const _0x43748a={_0xce0801:0x3a2,_0x4c82f6:0x465,_0x3bf7ee:0x2c1,_0x21fa17:0x47,_0x19e07a:0x124,_0x4434cb:0x20d,_0x45871c:0x168},_0x310d4b={_0x6a0842:0x129,_0x91a5a7:0x185,_0x58d64f:0x65f};function _0x259a26(_0x4cc38d,_0xd01607,_0x4f374a,_0x3e9df6){return _0x4820c3(_0x4cc38d-_0x310d4b._0x6a0842,_0xd01607-_0x310d4b._0x91a5a7,_0x4cc38d,_0x3e9df6- -_0x310d4b._0x58d64f);}function _0x97b708(_0x169bf2,_0x4cb59c,_0x230b05,_0x2a13a9){return _0x211934(_0x169bf2- -0x1b8,_0x4cb59c-0x2b,_0x230b05,_0x2a13a9-0xcd);}switch(_0x1a2a31){case 0x1:return'Error';case 0x2:return _0x97b708(0x281,_0x43748a._0xce0801,0x359,0x361);case 0x3:return _0x97b708(0x356,_0x43748a._0x4c82f6,0x38a,_0x43748a._0x3bf7ee);case 0x4:return _0x259a26(_0x43748a._0x21fa17,0x1eb,_0x43748a._0x19e07a,0xa0);default:return _0x97b708(0x2c0,_0x43748a._0x4434cb,0x3b3,_0x43748a._0x45871c);}}function formatSingleHover(_0x5627bd){const _0x5bb484={_0x737a23:0x166,_0x4897ef:0x1f9,_0xae5bf6:0x330,_0x39ef87:0x24e,_0x3fcf24:0x20e,_0x206918:0x4ec,_0x46ad6e:0x454,_0x1e9dc2:0x416,_0x1a109d:0x57c,_0x3887df:0x52f,_0x3f8c65:0x58e,_0x4afd2d:0x6c9,_0x56767f:0x1d1,_0x3bd90f:0x3a2,_0x133f84:0x1fd,_0x40eef2:0x155,_0x442909:0x4a6,_0x638ed6:0x46f,_0x71b4d2:0x57d,_0x29a554:0x1fd,_0x286240:0x251,_0x506a12:0x493,_0x54d8e8:0x522,_0x2fb05d:0x399,_0x39e29c:0x4f2,_0x36ead4:0x651},_0x3dc596={_0x468eaf:0x118,_0x2b1d6:0xb7,_0x340ac8:0x194},_0x20dec6=_0x5627bd[_0x49f355(0x35c,0x2a7,0x2ce,_0x5bb484._0x737a23)];if(typeof _0x20dec6===_0x14ed8f(0x59c,0x4cc,0x57c,0x68e))return _0x20dec6;if(Array[_0x49f355(_0x5bb484._0x4897ef,_0x5bb484._0xae5bf6,0x473,0x3e1)](_0x20dec6))return _0x20dec6[_0x49f355(_0x5bb484._0x39ef87,_0x5bb484._0x3fcf24,0xb8,0x211)](_0x387766=>typeof _0x387766===_0x14ed8f(0x49f,0x68b,0x57c,0x65c)?_0x387766:_0x387766[_0x49f355(0x237,0x1fd,0x205,0xbb)])[_0x49f355(_0x5bb484._0x206918,0x428,_0x5bb484._0x46ad6e,_0x5bb484._0x1e9dc2)](Boolean)[_0x14ed8f(_0x5bb484._0x1a109d,_0x5bb484._0x3887df,_0x5bb484._0x3f8c65,_0x5bb484._0x4afd2d)]('\x0a\x0a');if(_0x49f355(_0x5bb484._0x56767f,0x2e9,0x197,_0x5bb484._0x3bd90f)in _0x20dec6)return _0x20dec6[_0x49f355(0xb3,_0x5bb484._0x133f84,_0x5bb484._0x40eef2,0xf5)];function _0x49f355(_0x34ea01,_0x5108dd,_0x418651,_0x1f5def){return _0x211934(_0x5108dd- -_0x3dc596._0x468eaf,_0x5108dd-_0x3dc596._0x2b1d6,_0x418651,_0x1f5def-_0x3dc596._0x340ac8);}function _0x14ed8f(_0x3c9cf0,_0x238e38,_0x3b2629,_0x461353){return _0x211934(_0x3b2629-0x1dd,_0x238e38-0x20,_0x238e38,_0x461353-0x139);}return _0x20dec6[_0x14ed8f(_0x5bb484._0x442909,_0x5bb484._0x638ed6,_0x5bb484._0x71b4d2,0x4cc)]?'```'+_0x20dec6['language']+'\x0a'+_0x20dec6[_0x49f355(0x136,_0x5bb484._0x29a554,_0x5bb484._0x286240,0x300)]+_0x49f355(0x3b5,_0x5bb484._0x506a12,0x547,0x5b9):_0x20dec6[_0x14ed8f(_0x5bb484._0x54d8e8,_0x5bb484._0x2fb05d,_0x5bb484._0x39e29c,_0x5bb484._0x36ead4)];}function formatHover(_0x467475){const _0x3366e1={_0x39e2d3:0x368,_0xc379d2:0x252,_0x257ef2:0x1c6,_0x22f3d6:0x316,_0x49ec5f:0x258,_0x1f0d24:0x439,_0x363c99:0x31b,_0x26f823:0x11f},_0x588c74={_0x4d893d:0x2ff,_0x5a78e0:0x126},_0x25503e={_0x1c9a4a:0x9b,_0x2b7d92:0x50};function _0x4bafc2(_0x27f315,_0x47f29e,_0x5aadb9,_0x213108){return _0x211934(_0x27f315- -_0x25503e._0x1c9a4a,_0x47f29e-0x18a,_0x213108,_0x213108-_0x25503e._0x2b7d92);}if(_0x467475['length']===0x0)return _0x240a9e(_0x3366e1._0x39e2d3,_0x3366e1._0xc379d2,0x252,_0x3366e1._0x257ef2);function _0x240a9e(_0x269a82,_0x29f80f,_0x5b1d08,_0x2c11df){return _0x211934(_0x29f80f- -_0x588c74._0x4d893d,_0x29f80f-0x13f,_0x269a82,_0x2c11df-_0x588c74._0x5a78e0);}return _0x467475[_0x240a9e(0x14e,0x27,0x31,0x112)](formatSingleHover)[_0x4bafc2(_0x3366e1._0x22f3d6,_0x3366e1._0x49ec5f,_0x3366e1._0x1f0d24,_0x3366e1._0x363c99)](_0x240a9e(-_0x3366e1._0x26f823,0x3b,0x15,-0x38));}function locationPath(_0x252b29){const _0x6b8755={_0x5e0c35:0x544,_0x2f167f:0x471,_0x385919:0x49a,_0x5dda09:0x5cb},_0x4c090f={_0x5a2e97:0x16b},_0x925804={_0x10a179:0x161,_0x3777f8:0x1c4};if(!_0x252b29[_0x3e21ac(-0x48,-0x31,-0xfb,-0x183)](_0x4bc289(_0x6b8755._0x5e0c35,_0x6b8755._0x2f167f,_0x6b8755._0x385919,_0x6b8755._0x5dda09)))return _0x252b29;function _0x4bc289(_0x2ceb80,_0xc916ae,_0x14d42a,_0x7d27a3){return _0x4820c3(_0x2ceb80-_0x925804._0x10a179,_0xc916ae-0x1ed,_0x14d42a,_0xc916ae- -_0x925804._0x3777f8);}function _0x3e21ac(_0x3e7a6b,_0x1a801c,_0x5a6898,_0x57e64b){return _0x211934(_0x1a801c- -0x4e6,_0x1a801c-_0x4c090f._0x5a2e97,_0x3e7a6b,_0x57e64b-0x195);}return _0x3d6d89(_0x252b29);}function formatLocations(_0x406c87){const _0x6a704a={_0x438daa:0x36e,_0x3b465a:0xdc},_0x54c657={_0x73dc05:0x83,_0x57f934:0x118,_0x4e6b42:0x221,_0x3793dd:0x257,_0x32027f:0x752,_0x15050a:0x6f1,_0x726c18:0x5e0},_0x42d624={_0x4e5858:0x107},_0x3b6f85={_0xc9d354:0x1f,_0x389f60:0x7b},_0x4abd80={_0x4bc4f0:0x118,_0x318346:0x398},_0xc3e591={_0x54e4c5:0x14b};function _0xeaa28e(_0xb7971a,_0xdb6ce4,_0x7e0fc8,_0xfd701e){return _0x4820c3(_0xb7971a-0x157,_0xdb6ce4-_0xc3e591._0x54e4c5,_0xb7971a,_0xdb6ce4- -0x4df);}function _0x252fb8(_0x8aec2a,_0x379477,_0x3a29b4,_0x47aa1d){return _0x4820c3(_0x8aec2a-0x2b,_0x379477-_0x4abd80._0x4bc4f0,_0x47aa1d,_0x8aec2a- -_0x4abd80._0x318346);}if(_0x406c87[_0x252fb8(0x2dd,0x19f,0x411,_0x6a704a._0x438daa)]===0x0)return _0x252fb8(0x402,0x34e,0x2ba,0x3d9);return _0x406c87[_0xeaa28e(0xbd,0x93,0x165,_0x6a704a._0x3b465a)](_0x2764f7=>{function _0x705f80(_0x5b9a44,_0x5727ee,_0x569d9b,_0x2da739){return _0x252fb8(_0x2da739- -_0x3b6f85._0xc9d354,_0x5727ee-0x8,_0x569d9b-_0x3b6f85._0x389f60,_0x5b9a44);}const _0x165197=_0x2764f7[_0x705f80(0x31e,_0x54c657._0x73dc05,_0x54c657._0x57f934,0x1d2)][_0x705f80(_0x54c657._0x4e6b42,_0x54c657._0x3793dd,0x140,0x271)];function _0x499ea2(_0x1f1118,_0x571fa8,_0x1dd54c,_0xe3ec3a){return _0x252fb8(_0x1dd54c-0x32c,_0x571fa8-0x11e,_0x1dd54c-_0x42d624._0x4e5858,_0x571fa8);}return locationPath(_0x2764f7['uri'])+':'+(_0x165197['line']+0x1)+':'+(_0x165197[_0x499ea2(0x616,_0x54c657._0x32027f,_0x54c657._0x15050a,_0x54c657._0x726c18)]+0x1);})['join']('\x0a');}function isDocumentSymbol(_0x3893f7){const _0x2bdc32={_0xdb0cc1:0x327,_0x4b9aab:0x29f,_0x24d632:0x207,_0xcfca4:0x1c2,_0x39f714:0xc9},_0x147d2c={_0x2912e9:0x47a},_0x1b0a71={_0x5b6500:0x16};function _0x2f6c8e(_0x364940,_0x3ec74e,_0x16701f,_0x4d26a2){return _0x211934(_0x3ec74e- -_0x1b0a71._0x5b6500,_0x3ec74e-0xff,_0x364940,_0x4d26a2-0x15d);}function _0x41ff21(_0x3507aa,_0x504348,_0x43b143,_0x44770d){return _0x4820c3(_0x3507aa-0x16a,_0x504348-0xe4,_0x44770d,_0x504348- -_0x147d2c._0x2912e9);}return _0x2f6c8e(0x341,_0x2bdc32._0xdb0cc1,_0x2bdc32._0x4b9aab,_0x2bdc32._0x24d632)in _0x3893f7&&_0x41ff21(0x1e2,_0x2bdc32._0xcfca4,_0x2bdc32._0x39f714,0x20b)in _0x3893f7;}function formatSymbols(_0x442f51){const _0x5d3de8={_0x4a3073:0x66,_0x48b2df:0x1ae,_0xa6402:0x2c3,_0x3ea9ec:0x73,_0x41e856:0x76},_0x35313a={_0x6c1d1e:0x4e4,_0x44bf96:0x38b,_0x346289:0x1fb,_0xa40af:0x693,_0x1a6e8b:0x553,_0x274d6f:0x738,_0x5d529d:0x69e,_0x5c80d1:0x46e,_0x1960c2:0x47f,_0x32bdc1:0x4de,_0x41fd52:0x356,_0x288d9e:0xdf,_0x89a831:0x240,_0x540904:0x180,_0xfef50e:0x1fb,_0x2ba0f8:0x68b,_0x113a8f:0x695},_0x19674a={_0x177676:0x92},_0x14a1b9={_0x443ac3:0xed,_0x1e7c03:0x5e5};function _0x41b4d8(_0x4a49bf,_0x1b9608,_0x59c96e,_0x4464a8){return _0x4820c3(_0x4a49bf-0x1bf,_0x1b9608-_0x14a1b9._0x443ac3,_0x1b9608,_0x4a49bf- -_0x14a1b9._0x1e7c03);}if(_0x442f51[_0x29ce82(0xbc,_0x5d3de8._0x4a3073,0x118,0x21a)]===0x0)return _0x41b4d8(_0x5d3de8._0x48b2df,0xb1,_0x5d3de8._0xa6402,0xa9);function _0x29ce82(_0x20a758,_0x26e077,_0x5edc95,_0x21c8d0){return _0x211934(_0x20a758- -0x36d,_0x26e077-0x127,_0x26e077,_0x21c8d0-_0x19674a._0x177676);}return _0x442f51[_0x41b4d8(-_0x5d3de8._0x3ea9ec,0x75,-0x7,0x28)](_0x1b61c2=>{const _0x346db6={_0xef845b:0x4ef,_0x130367:0x152,_0x369208:0xe6},_0x4a8b44={_0x9ff324:0x190};if(isDocumentSymbol(_0x1b61c2))return _0x1b61c2['name']+'\x20('+_0x1b61c2['kind']+_0x2d6992(_0x35313a._0x6c1d1e,0x4ac,_0x35313a._0x44bf96,0x5cc)+(_0x1b61c2[_0x4cc0ee(0x17a,0xdd,0x136,0x1fb)]['start']['line']+0x1)+':'+(_0x1b61c2[_0x4cc0ee(0x32f,0x254,0x1f0,_0x35313a._0x346289)]['start'][_0x2d6992(0x7d4,_0x35313a._0xa40af,_0x35313a._0x1a6e8b,0x6bf)]+0x1)+']';function _0x4cc0ee(_0x15a61,_0x752bc0,_0x39d2d8,_0x4d06b8){return _0x29ce82(_0x4d06b8-0x22b,_0x15a61,_0x39d2d8-0x1b5,_0x4d06b8-_0x4a8b44._0x9ff324);}function _0x2d6992(_0x8db1c2,_0x15b128,_0x1afc18,_0x8fd314){return _0x29ce82(_0x15b128-_0x346db6._0xef845b,_0x1afc18,_0x1afc18-_0x346db6._0x130367,_0x8fd314-_0x346db6._0x369208);}return _0x1b61c2[_0x2d6992(0x7b9,_0x35313a._0x274d6f,0x698,0x825)]+'\x20('+_0x1b61c2[_0x2d6992(0x4af,0x583,_0x35313a._0x5d529d,_0x35313a._0x5c80d1)]+')\x20'+locationPath(_0x1b61c2[_0x2d6992(_0x35313a._0x1960c2,0x543,0x67d,_0x35313a._0x32bdc1)][_0x4cc0ee(_0x35313a._0x32bdc1,_0x35313a._0x41fd52,0x257,0x3af)])+':'+(_0x1b61c2['location']['range']['start']['line']+0x1)+':'+(_0x1b61c2['location'][_0x4cc0ee(_0x35313a._0x288d9e,_0x35313a._0x89a831,_0x35313a._0x540904,_0x35313a._0xfef50e)][_0x2d6992(0x64a,0x55e,_0x35313a._0x2ba0f8,0x639)][_0x2d6992(0x57f,_0x35313a._0xa40af,_0x35313a._0x113a8f,0x6d1)]+0x1);})[_0x29ce82(0x44,-0x4f,_0x5d3de8._0x41e856,-0x75)]('\x0a');}function formatDiagnostics(_0x52b089){const _0xa9163={_0x482a83:0x787,_0x4bd33a:0x5c9,_0x2cedee:0x62c,_0x4cfb67:0x1ce,_0x4c387c:0x1ca,_0x414d68:0x71,_0x2a8a8d:0x53f,_0x100bed:0x5b4,_0xd9d345:0x58e},_0xccbbc5={_0x5c71cf:0x638,_0x12c1ab:0x57d,_0x778426:0x5ba,_0x43e5d1:0x508,_0x34aa04:0x871,_0x2515ec:0x757,_0x7eb701:0x618},_0x5419ca={_0x238b9f:0x46,_0x74bbd6:0x1e0},_0x22b3ed={_0x43f600:0x203,_0x75a031:0x54,_0x5d5ead:0x135},_0x4c03b1={_0xd66ac5:0x6e};function _0x1bde6b(_0x8861ac,_0x1b88cf,_0x559e9f,_0x3c4caa){return _0x4820c3(_0x8861ac-0x14f,_0x1b88cf-_0x4c03b1._0xd66ac5,_0x1b88cf,_0x3c4caa- -0x607);}function _0x5c7e52(_0x3422d2,_0x299e1e,_0x1a3cd6,_0xb9167c){return _0x211934(_0x1a3cd6-_0x22b3ed._0x43f600,_0x299e1e-_0x22b3ed._0x75a031,_0x3422d2,_0xb9167c-_0x22b3ed._0x5d5ead);}if(_0x52b089[_0x5c7e52(_0xa9163._0x482a83,_0xa9163._0x4bd33a,_0xa9163._0x2cedee,0x65f)]===0x0)return _0x1bde6b(0x24,_0xa9163._0x4cfb67,_0xa9163._0x4c387c,_0xa9163._0x414d68);return _0x52b089['map'](_0x2c3e86=>{const _0x313507={_0x3a0131:0x128},_0x143e87=_0x2c3e86[_0x4d14c9(0x586,_0xccbbc5._0x5c71cf,0x5f3,_0xccbbc5._0x12c1ab)][_0x4d14c9(0x625,_0xccbbc5._0x778426,0x4d7,_0xccbbc5._0x43e5d1)];function _0x56bb44(_0x6b49f6,_0xf1db53,_0x501ded,_0x4a2e03){return _0x5c7e52(_0x6b49f6,_0xf1db53-0xa2,_0x501ded- -0x252,_0x4a2e03-_0x313507._0x3a0131);}function _0x4d14c9(_0x32f522,_0x42557c,_0x42aa99,_0x4c90b6){return _0x5c7e52(_0x4c90b6,_0x42557c-0x1ce,_0x32f522-_0x5419ca._0x238b9f,_0x4c90b6-_0x5419ca._0x74bbd6);}return severityName(_0x2c3e86['severity'])+'\x20['+(_0x143e87[_0x56bb44(0x60d,0x518,0x505,0x59d)]+0x1)+':'+(_0x143e87[_0x4d14c9(0x75a,_0xccbbc5._0x34aa04,0x639,_0xccbbc5._0x2515ec)]+0x1)+']\x20'+_0x2c3e86[_0x56bb44(_0xccbbc5._0x7eb701,0x37d,0x4c8,0x412)];})[_0x5c7e52(0x5f0,_0xa9163._0x2a8a8d,_0xa9163._0x100bed,_0xa9163._0xd9d345)]('\x0a');}function formatIncomingCalls(_0x50854d){const _0xb5dedb={_0x336475:0xea,_0x1b16e5:0x435,_0x30394d:0x468,_0x55efb6:0x216,_0x43fd13:0x1d5,_0x158d79:0x1c1},_0x3f5935={_0xbc4b3:0x110,_0x24469d:0xb3},_0x1d7fd0={_0x349a06:0x75,_0x1d29ee:0x5};function _0x58a3d5(_0x2e3a0c,_0x5ad6aa,_0x4831af,_0x1bbc48){return _0x4820c3(_0x2e3a0c-_0x1d7fd0._0x349a06,_0x5ad6aa-_0x1d7fd0._0x1d29ee,_0x4831af,_0x5ad6aa- -0x506);}if(_0x50854d[_0x58a3d5(0x1b9,0x16f,_0xb5dedb._0x336475,0x2bb)]===0x0)return _0x59a07c(_0xb5dedb._0x1b16e5,_0xb5dedb._0x30394d,0x45f,0x31c);function _0x59a07c(_0x34dcdc,_0x25929,_0x238565,_0x317b66){return _0x211934(_0x34dcdc- -_0x3f5935._0xbc4b3,_0x25929-_0x3f5935._0x24469d,_0x238565,_0x317b66-0x123);}return _0x50854d[_0x59a07c(_0xb5dedb._0x55efb6,0xf8,_0xb5dedb._0x43fd13,_0xb5dedb._0x158d79)](_0x554c36=>_0x554c36['from'][_0x59a07c(0x4a6,0x5e2,0x5ba,0x3a2)])['join']('\x0a');}function formatOutgoingCalls(_0x361a6e){const _0x3289c4={_0x35e5c8:0x649,_0x3ed368:0x5db,_0x5efd0d:0x76c,_0x332e30:0x765,_0x403f73:0x5b4,_0x42e861:0x456,_0x32d954:0x6e8,_0x2512ed:0x622,_0x3cb20b:0x4e6},_0x2a94cb={_0x21c083:0xba,_0x2c5259:0x2c},_0x550aa6={_0xd0696e:0x1f0,_0x5e75bc:0x171};function _0x39fe3c(_0x1a2b43,_0x21fc5b,_0x3115cd,_0x56c5cd){return _0x211934(_0x56c5cd-0x130,_0x21fc5b-_0x550aa6._0xd0696e,_0x1a2b43,_0x56c5cd-_0x550aa6._0x5e75bc);}if(_0x361a6e[_0x50009f(0x6c7,0x6fb,_0x3289c4._0x35e5c8,_0x3289c4._0x3ed368)]===0x0)return _0x50009f(0x851,_0x3289c4._0x5efd0d,_0x3289c4._0x332e30,0x65e);function _0x50009f(_0x409b3c,_0x4b3449,_0x5bf4f9,_0x1ffd14){return _0x4820c3(_0x409b3c-_0x2a94cb._0x21c083,_0x4b3449-0x1cc,_0x409b3c,_0x5bf4f9- -_0x2a94cb._0x2c5259);}return _0x361a6e[_0x39fe3c(0x503,0x396,_0x3289c4._0x403f73,_0x3289c4._0x42e861)](_0x4f03f8=>_0x4f03f8['to']['name'])[_0x50009f(_0x3289c4._0x32d954,_0x3289c4._0x2512ed,0x5d1,_0x3289c4._0x3cb20b)]('\x0a');}function toStructured(_0x55234b){const _0x3d1e98={_0x1b6c43:0x233,_0x3afdbe:0x176,_0x4992f1:0xfc,_0x1bee45:0x208},_0x3487b3={_0x313399:0x5a7};function _0x57b820(_0x11e0a7,_0x212c22,_0xef02b9,_0x211b61){return _0x4820c3(_0x11e0a7-0x180,_0x212c22-0xcc,_0x11e0a7,_0x211b61- -_0x3487b3._0x313399);}return JSON['parse'](JSON[_0x57b820(_0x3d1e98._0x1b6c43,_0x3d1e98._0x3afdbe,_0x3d1e98._0x4992f1,_0x3d1e98._0x1bee45)](_0x55234b));}async function assertFile(_0x299dfe){const _0x4a7b31={_0x2cd18b:0x372,_0x49571d:0x3c0,_0x503118:0x6ca},_0xe594eb={_0x7f94d5:0x118,_0x2518db:0x10f},_0xd6cb3b=await _0x4dc2fc(_0x299dfe);function _0x47c993(_0x419a1a,_0x71501,_0x4e1d8b,_0x39c865){return _0x211934(_0x39c865-0x77,_0x71501-_0xe594eb._0x7f94d5,_0x419a1a,_0x39c865-_0xe594eb._0x2518db);}function _0x415e36(_0x262169,_0x80765b,_0x344ca9,_0x196858){return _0x4820c3(_0x262169-0x119,_0x80765b-0x136,_0x196858,_0x344ca9- -0x40c);}if(!_0xd6cb3b[_0x47c993(0x333,0x4b0,_0x4a7b31._0x2cd18b,_0x4a7b31._0x49571d)]())throw new ToolExecutionError(_0x47c993(0x4d7,0x689,_0x4a7b31._0x503118,0x609)+_0x299dfe,{'path':_0x299dfe});}function validatePosition(_0x3b70fd,_0x185da3){const _0x5648ab={_0x2d2c6e:0x179,_0x572ad3:0x122,_0x508af3:0x34d},_0x578cd7={_0x2ce4cc:0xf8},_0x37f564={_0x52b9c6:0x513,_0x1bc53a:0xf7,_0x2446b1:0x1cb};function _0x300871(_0x1c4629,_0x6b4159,_0x4db40d,_0x50574d){return _0x211934(_0x4db40d- -_0x37f564._0x52b9c6,_0x6b4159-_0x37f564._0x1bc53a,_0x6b4159,_0x50574d-_0x37f564._0x2446b1);}if(!Number['isInteger'](_0x3b70fd)||_0x3b70fd<0x1)throw new ToolExecutionError('line\x20must\x20be\x20a\x20positive\x20integer',{'line':_0x3b70fd});function _0x1a7848(_0x17674b,_0x3524ee,_0x55e4b2,_0x13c84a){return _0x211934(_0x55e4b2- -0xef,_0x3524ee-0x180,_0x3524ee,_0x13c84a-_0x578cd7._0x2ce4cc);}if(!Number[_0x300871(-_0x5648ab._0x2d2c6e,-0x281,-_0x5648ab._0x572ad3,-0xec)](_0x185da3)||_0x185da3<0x1)throw new ToolExecutionError(_0x1a7848(0x42f,_0x5648ab._0x508af3,0x397,0x285),{'character':_0x185da3});}function createLspTool(_0x29f855={}){const _0x5617e6={_0x11a86d:0x17f,_0x50a568:0x192,_0x234ca1:0x14,_0x5d74ef:0x24b,_0x54457c:0x70c,_0x568a82:0x557,_0x893ec2:0x6e7,_0x3e0ef1:0x6c3,_0x567ee1:0x2d3,_0x56a4c7:0x20d,_0x142a5c:0x181,_0x2e5ead:0x648,_0x160627:0x675,_0x5be723:0x767,_0x218f7:0x5bc,_0x15cd61:0x572,_0x4737ef:0x5d0,_0x3bbb4b:0x727,_0x5a10f9:0x7eb,_0x49e659:0x7e2,_0x2b1700:0x6c5,_0x559b32:0x70b,_0x4180df:0x114,_0x3797a9:0xd7,_0x3dfbc2:0x2b9,_0x30dd8d:0x6fd,_0x15f786:0x804,_0x254859:0x253,_0xc44240:0x3a0,_0x1d9cc1:0x2c2,_0x54998b:0x80f,_0x3c396b:0x83a,_0xbde1fa:0x912,_0xcf214e:0xa,_0x3b9e81:0x16c,_0x5c2368:0xa5,_0x54b5aa:0xe5,_0x254155:0x12c,_0x1d4ee3:0xb5,_0x4fc77f:0x1b9,_0x5bfcde:0x795,_0x42be9e:0x5e3},_0x1f155f={_0x3256db:0x4ba,_0x128def:0x519,_0x269020:0x12c,_0x36109a:0xd6,_0x18ee9e:0x728,_0x20178b:0x5c5,_0x3a848f:0x199,_0x154701:0xd0,_0x4e7dc7:0x193,_0x213e10:0x62,_0x171b6d:0x38,_0x678b5d:0x48,_0x4113ed:0xea,_0x4dc7fb:0x48,_0x142b87:0x138,_0x1b6fd8:0x236,_0x2b2aa5:0x176,_0x5ba9e6:0xee,_0x433f48:0xe6,_0x3cc4a3:0x92,_0x42698d:0x10f,_0x574103:0xd0,_0x4d9c9f:0x11c,_0x9f630b:0x189,_0xa2fb6b:0x75c,_0x2bc486:0x687,_0x5851fa:0x626,_0x17b0da:0x11d,_0x308c83:0xe8,_0x30445b:0xc8,_0x5c27a1:0xb9,_0x5426ee:0x7cb,_0x3fb8ed:0x608,_0xb0e22:0x6fb,_0x53dfe1:0x792,_0x3939cb:0x58,_0x394e43:0x222,_0x4e4e54:0x508,_0x42fe11:0x5a9,_0x2b92a5:0x3b1,_0x2dab97:0x3bf,_0xf42103:0x829,_0x165239:0x6fc,_0x5073f0:0x55,_0x162ab5:0x102,_0x5df4ec:0x1bd,_0x2f9a05:0xc9,_0x2587e0:0x1de,_0x433dac:0x8a,_0x332356:0x53,_0x15d526:0xaa,_0x5419b7:0x6d9,_0x942c9a:0x5b9,_0x1bff72:0x78c,_0x1cb4b5:0xb6,_0x16450f:0x138,_0x7778dc:0x7d1,_0x4d82f5:0x60e},_0x1bba0b={_0x5900eb:0x7},_0x373308={_0x37a0d5:0x7f,_0x44229e:0x1b},_0x423d7a={_0x7644d8:0xf2};function _0x62a993(_0x5daca2,_0x3233fa,_0x2fd315,_0x2f24d1){return _0x211934(_0x2fd315- -0x2fa,_0x3233fa-_0x423d7a._0x7644d8,_0x5daca2,_0x2f24d1-0x11a);}const _0x2d4734=_0x24262c[_0x62a993(_0x5617e6._0x11a86d,0x6d,0x174,_0x5617e6._0x50a568)](_0x29f855[_0x62a993(0x30,-_0x5617e6._0x234ca1,0xd3,0x17b)]??process[_0x62a993(0x6d,0xca,0x191,_0x5617e6._0x5d74ef)]()),_0x2e48d0=(_0x29f855[_0x3a0d97(_0x5617e6._0x54457c,0x5f3,0x5f2,0x77e)]??[])[_0x3a0d97(_0x5617e6._0x568a82,0x64e,0x421,0x50e)](_0x76988=>_0x24262c['resolve'](_0x76988)),_0x53f297=_0x29f855[_0x3a0d97(0x7e7,_0x5617e6._0x893ec2,_0x5617e6._0x3e0ef1,0x6bd)]??_0x62a993(_0x5617e6._0x567ee1,0x169,_0x5617e6._0x56a4c7,_0x5617e6._0x142a5c);function _0x3a0d97(_0x22c9cb,_0x2e5f03,_0x46a498,_0x3073d9){return _0x4820c3(_0x22c9cb-_0x373308._0x37a0d5,_0x2e5f03-0x67,_0x2e5f03,_0x22c9cb- -_0x373308._0x44229e);}return defineTool({'name':_0x53f297,'description':_0x3a0d97(0x713,_0x5617e6._0x2e5ead,_0x5617e6._0x160627,_0x5617e6._0x5be723),'inputSchema':{'type':_0x3a0d97(_0x5617e6._0x218f7,_0x5617e6._0x15cd61,0x66a,0x4d3),'properties':{'operation':{'type':_0x3a0d97(_0x5617e6._0x4737ef,0x563,0x4e2,_0x5617e6._0x3bbb4b),'enum':['goToDefinition',_0x3a0d97(_0x5617e6._0x5a10f9,0x714,0x820,0x943),_0x3a0d97(_0x5617e6._0x49e659,_0x5617e6._0x2b1700,_0x5617e6._0x559b32,0x7d9),_0x62a993(_0x5617e6._0x4180df,_0x5617e6._0x3797a9,0x1c1,_0x5617e6._0x3dfbc2),_0x3a0d97(_0x5617e6._0x30dd8d,0x78c,0x6c2,_0x5617e6._0x15f786),'goToImplementation',_0x62a993(0x132,0x36a,_0x5617e6._0x254859,_0x5617e6._0xc44240),'incomingCalls',_0x62a993(0x380,0x2bf,_0x5617e6._0x1d9cc1,0x21f),_0x3a0d97(0x7e0,_0x5617e6._0x54998b,_0x5617e6._0x3c396b,_0x5617e6._0xbde1fa)]},'filePath':{'type':_0x62a993(_0x5617e6._0xcf214e,_0x5617e6._0x3b9e81,_0x5617e6._0x5c2368,_0x5617e6._0x54b5aa)},'line':{'type':'number'},'character':{'type':'number'},'query':{'type':_0x62a993(_0x5617e6._0x254155,_0x5617e6._0x1d4ee3,0xa5,_0x5617e6._0x4fc77f)}},'required':['operation',_0x3a0d97(0x70f,_0x5617e6._0x5bfcde,_0x5617e6._0x42be9e,0x6be),'line','character']},async *'execute'(_0xc26a97){const _0x10a76e={_0x52aa72:0x143,_0x599afa:0x4a5,_0xd850ab:0xa7},_0x579133=_0x29f855['lspService'];if(!_0x579133)throw new ToolExecutionError(_0x2e1d2b(_0x1f155f._0x3256db,0x42f,0x410,_0x1f155f._0x128def));if(!_0x579133[_0x2a12b1(-0x4,-0x9,-_0x1f155f._0x269020,-_0x1f155f._0x36109a)]())throw new ToolExecutionError('LSP\x20service\x20is\x20disabled');const _0xe17392=_0xc26a97[_0x2e1d2b(0x654,0x6fb,_0x1f155f._0x18ee9e,_0x1f155f._0x20178b)];validatePosition(_0xc26a97[_0x2a12b1(_0x1f155f._0x3a848f,_0x1f155f._0x154701,0x13e,0x224)],_0xc26a97[_0x2a12b1(-0xa4,0x8d,_0x1f155f._0x4e7dc7,-_0x1f155f._0x213e10)]);if(_0xe17392===_0x2e1d2b(0x677,0x593,0x617,_0x1f155f._0x20178b)){if(!_0xc26a97['query']?.['trim']())throw new ToolExecutionError(_0x2a12b1(0x5d,_0x1f155f._0x171b6d,_0x1f155f._0x678b5d,0xfb));const _0x1d87be=await _0x579133[_0x2a12b1(_0x1f155f._0x4113ed,_0x1f155f._0x4dc7fb,-0x3f,0x9f)](_0xc26a97[_0x2a12b1(-0x1ad,-_0x1f155f._0x142b87,-_0x1f155f._0x1b6fd8,-_0x1f155f._0x2b2aa5)]['trim']());return yield createToolOutput(formatSymbols(_0x1d87be),{'operation':_0xe17392,'query':_0xc26a97[_0x2a12b1(-_0x1f155f._0x5ba9e6,-_0x1f155f._0x142b87,-_0x1f155f._0x433f48,-0x39)],'symbols':_0x1d87be}),void 0x0;}const _0x28425a=resolveAllowedPath(_0x2d4734,_0x2e48d0,_0xc26a97['filePath']);await assertFile(_0x28425a);if(!await _0x579133['hasClients'](_0x28425a))throw new ToolExecutionError(_0x2a12b1(-0x140,-_0x1f155f._0x3cc4a3,-0x5e,-0x2d)+_0xc26a97[_0x2a12b1(_0x1f155f._0x42698d,0x5a,-0x2e,0xa5)],{'filePath':_0xc26a97['filePath']});function _0x2e1d2b(_0x79c36a,_0x549107,_0x75043b,_0xbc6d34){return _0x62a993(_0x75043b,_0x549107-_0x10a76e._0x52aa72,_0x79c36a-_0x10a76e._0x599afa,_0xbc6d34-_0x10a76e._0xd850ab);}function _0x2a12b1(_0x229ec8,_0x22f4ad,_0x479462,_0x5ea0cf){return _0x3a0d97(_0x22f4ad- -0x6b5,_0x5ea0cf,_0x479462-_0x1bba0b._0x5900eb,_0x5ea0cf-0x79);}await _0x579133['touchFile'](_0x28425a,!![]);const _0x1e7280={'file':_0x28425a,'line':_0xc26a97[_0x2a12b1(0xb,_0x1f155f._0x574103,_0x1f155f._0x4d9c9f,_0x1f155f._0x9f630b)]-0x1,'character':_0xc26a97['character']-0x1};switch(_0xe17392){case _0x2e1d2b(_0x1f155f._0xa2fb6b,0x70c,_0x1f155f._0x2bc486,_0x1f155f._0x5851fa):{const _0x97152b=await _0x579133['hover'](_0x1e7280);return yield createToolOutput(formatHover(_0x97152b),{'operation':_0xe17392,'filePath':_0x28425a,'hover':_0x97152b}),void 0x0;}case _0x2a12b1(0xa,0x12b,_0x1f155f._0x17b0da,0x16b):{const _0x117c02=await _0x579133[_0x2a12b1(-_0x1f155f._0x308c83,-_0x1f155f._0x30445b,-_0x1f155f._0x5c27a1,-0x20a)](_0x28425a);return yield createToolOutput(formatDiagnostics(_0x117c02),{'operation':_0xe17392,'filePath':_0x28425a,'diagnostics':_0x117c02}),void 0x0;}case _0x2e1d2b(0x6e9,_0x1f155f._0x5426ee,_0x1f155f._0x3fb8ed,_0x1f155f._0xb0e22):{const _0x2907a8=await _0x579133[_0x2e1d2b(0x6bb,0x587,0x770,0x6ba)](_0x1e7280);return yield createToolOutput(formatLocations(_0x2907a8),{'operation':_0xe17392,'filePath':_0x28425a,'locations':_0x2907a8}),void 0x0;}case _0x2e1d2b(0x765,0x6ec,0x62b,_0x1f155f._0x53dfe1):{const _0x2b5539=await _0x579133[_0x2a12b1(-0x22d,-_0x1f155f._0x433f48,_0x1f155f._0x3939cb,-_0x1f155f._0x394e43)](_0x1e7280);return yield createToolOutput(formatLocations(_0x2b5539),{'operation':_0xe17392,'filePath':_0x28425a,'locations':_0x2b5539}),void 0x0;}case _0x2e1d2b(_0x1f155f._0x4e4e54,_0x1f155f._0x42fe11,_0x1f155f._0x2b92a5,_0x1f155f._0x2dab97):{const _0x529ab7=await _0x579133[_0x2e1d2b(0x6ec,_0x1f155f._0xf42103,0x60c,_0x1f155f._0x165239)](_0x1e7280);return yield createToolOutput(formatLocations(_0x529ab7),{'operation':_0xe17392,'filePath':_0x28425a,'locations':_0x529ab7}),void 0x0;}case'documentSymbol':{const _0x103332=await _0x579133[_0x2a12b1(-_0x1f155f._0x5073f0,0x37,_0x1f155f._0x162ab5,-0x39)](_0x28425a);return yield createToolOutput(formatSymbols(_0x103332),{'operation':_0xe17392,'filePath':_0x28425a,'symbols':_0x103332}),void 0x0;}case _0x2a12b1(_0x1f155f._0x5df4ec,_0x1f155f._0x2f9a05,0x17f,0x174):{const _0x512ffa=await _0x579133[_0x2a12b1(0x3d,_0x1f155f._0x2f9a05,_0x1f155f._0x2587e0,_0x1f155f._0x433dac)](_0x1e7280);return yield createToolOutput(formatSymbols(_0x512ffa),{'operation':_0xe17392,'filePath':_0x28425a,'symbols':toStructured(_0x512ffa)}),void 0x0;}case _0x2a12b1(_0x1f155f._0x332356,_0x1f155f._0x15d526,0x11,0x3c):{const _0x41f7d2=await _0x579133[_0x2e1d2b(_0x1f155f._0x5419b7,_0x1f155f._0x942c9a,0x813,_0x1f155f._0x1bff72)](_0x1e7280);return yield createToolOutput(formatIncomingCalls(_0x41f7d2),{'operation':_0xe17392,'filePath':_0x28425a,'calls':toStructured(_0x41f7d2)}),void 0x0;}case _0x2a12b1(_0x1f155f._0x1cb4b5,_0x1f155f._0x16450f,0x1dc,0x293):{const _0x726c8e=await _0x579133[_0x2e1d2b(0x767,_0x1f155f._0x7778dc,0x6d5,_0x1f155f._0x4d82f5)](_0x1e7280);return yield createToolOutput(formatOutgoingCalls(_0x726c8e),{'operation':_0xe17392,'filePath':_0x28425a,'calls':toStructured(_0x726c8e)}),void 0x0;}}}});}import{randomUUID}from'crypto';import{mkdir as _0x3c7e47,readFile as _0x3cf4c2,writeFile as _0x35db59}from'fs/promises';import{join as _0x187acc}from'path';function sanitizeStorageKey(_0x3bcf35){const _0x644a36={_0x25fadb:0x4d9,_0x5e2137:0x413,_0x386a39:0x45d},_0x529b33={_0x32ba00:0x1c7},_0x578d6e={_0xadb970:0x13c};function _0xd87fa2(_0x3d7541,_0x562ed6,_0xd2e55f,_0x43bc76){return _0x4820c3(_0x3d7541-0x118,_0x562ed6-_0x578d6e._0xadb970,_0x3d7541,_0x43bc76- -0x39c);}function _0x4b07be(_0x507ffe,_0x4195bf,_0x38f3f1,_0x4aed4c){return _0x4820c3(_0x507ffe-_0x529b33._0x32ba00,_0x4195bf-0x1e4,_0x4195bf,_0x507ffe- -0xe1);}return _0x3bcf35[_0xd87fa2(0x293,0x424,0x387,0x2e5)](/[^a-zA-Z0-9_]+/g,'_')[_0x4b07be(0x5a0,0x59d,0x68b,0x64e)](/^_+|_+$/g,'')||_0x4b07be(_0x644a36._0x25fadb,_0x644a36._0x5e2137,_0x644a36._0x386a39,0x599);}function storagePath(_0x1e613b){const _0x3b9d20={_0x3ccc17:0x2d9,_0x2e1f67:0x27d,_0x540878:0x40e,_0x20a3ab:0x49c},_0x58ab5c={_0x4b00b8:0x17a,_0x4fbc4a:0x18a},_0x411ead={_0x57bed8:0x118,_0x301fc1:0x3d6},_0x29ea8d=sanitizeStorageKey(_0x1e613b['config'][_0x33fdc3(0x1a8,0x267,0x228,_0x3b9d20._0x3ccc17)]?.[_0x591614(0x302,0x3f3,0x3be,_0x3b9d20._0x2e1f67)]??_0x1e613b[_0x33fdc3(0x35f,_0x3b9d20._0x540878,0x52a,_0x3b9d20._0x20a3ab)]);function _0x591614(_0x516f2f,_0x5e7100,_0x440ac3,_0x37e3f7){return _0x4820c3(_0x516f2f-0x9f,_0x5e7100-_0x411ead._0x57bed8,_0x440ac3,_0x516f2f- -_0x411ead._0x301fc1);}function _0x33fdc3(_0x53c770,_0x3d5d0b,_0x43c841,_0x3693f5){return _0x4820c3(_0x53c770-_0x58ab5c._0x4b00b8,_0x3d5d0b-_0x58ab5c._0x4fbc4a,_0x43c841,_0x3d5d0b- -0x3a8);}return _0x187acc(_0x1e613b['storageDir'],_0x29ea8d+'.json');}async function readStore(_0x29a68e){const _0x2cd359={_0x398af7:0x120,_0xef1702:0x70,_0x1f59a0:0x103,_0x209cf7:0xdb,_0x52e0e9:0x591,_0x2ce91d:0x4b8,_0xe773a0:0x4d9,_0x1886bc:0x5a0,_0x1d01ab:0xe4,_0x452df4:0xb2,_0x174beb:0x19c},_0x2face3={_0x23c325:0x84};function _0x323e5a(_0x52ddf2,_0x305d24,_0x1d0bd9,_0x4b750c){return _0x211934(_0x1d0bd9- -0x3e3,_0x305d24-_0x2face3._0x23c325,_0x4b750c,_0x4b750c-0x12);}function _0x455267(_0x1b3dd0,_0x572831,_0x450172,_0x5d38e9){return _0x4820c3(_0x1b3dd0-0x9b,_0x572831-0xb4,_0x1b3dd0,_0x572831- -0x18c);}try{return JSON[_0x323e5a(0x185,0x191,_0x2cd359._0x398af7,_0x2cd359._0xef1702)](await _0x3cf4c2(_0x29a68e,_0x323e5a(0xb1,0x247,_0x2cd359._0x1f59a0,_0x2cd359._0x209cf7)));}catch(_0x4e1946){if(_0x4e1946 instanceof Error&&'code'in _0x4e1946&&_0x4e1946[_0x455267(_0x2cd359._0x52e0e9,_0x2cd359._0x2ce91d,_0x2cd359._0xe773a0,_0x2cd359._0x1886bc)]===_0x323e5a(_0x2cd359._0x1d01ab,_0x2cd359._0x452df4,_0x2cd359._0x174beb,0x203))return{};throw _0x4e1946;}}async function writeStore(_0x89d40a,_0x2ebe10){const _0x247ece={_0x574d19:0x148,_0x77294a:0x38,_0x2b7578:0x2df},_0x4562a1={_0x593844:0x124},_0x4f22e6={_0x207151:0x109,_0x401645:0x47b};function _0x4a588d(_0x49d26e,_0x496d2a,_0x167991,_0x3b1cb8){return _0x4820c3(_0x49d26e-0x168,_0x496d2a-_0x4f22e6._0x207151,_0x496d2a,_0x49d26e- -_0x4f22e6._0x401645);}await _0x3c7e47(_0x187acc(_0x89d40a,'..'),{'recursive':!![]});function _0x37f735(_0x2bfcb6,_0x481b97,_0x17b6db,_0x323477){return _0x4820c3(_0x2bfcb6-_0x4562a1._0x593844,_0x481b97-0x58,_0x323477,_0x17b6db- -0x777);}await _0x35db59(_0x89d40a,JSON[_0x37f735(_0x247ece._0x574d19,0x13c,_0x247ece._0x77294a,0xf8)](_0x2ebe10,null,0x2),_0x4a588d(0x2b7,0x3a1,_0x247ece._0x2b7578,0x3eb));}async function updateStore(_0x5d8ae7,_0x1c14c6){const _0x80158c=await readStore(_0x5d8ae7);_0x1c14c6(_0x80158c),await writeStore(_0x5d8ae7,_0x80158c);}function createMcpOAuthProvider(_0x1f4a58){const _0x4b97c5={_0x2da069:0x43b,_0x5497fa:0x2f0,_0x38888b:0x54e,_0x2eeb9b:0x5a1,_0x28c20a:0x756,_0x41d73e:0x631,_0x15b558:0x651,_0x57e596:0x479,_0x57756c:0x59f,_0x71ebb3:0x3f0,_0x4a841b:0x419,_0x8bff16:0x546,_0x37212f:0x735,_0x3287c3:0x6d9,_0x855553:0x573,_0x2b43b4:0x6ea,_0x4503b2:0x62e,_0x67aff7:0x2d0,_0x509ce8:0x1d2,_0x283b35:0x270,_0x17ffb5:0x880,_0x198b50:0x779,_0x1509d1:0x357,_0x4086d6:0x305,_0x1b7cf9:0x4f7},_0x5df71b={_0x30763e:0x7b},_0x3f2f21={_0xeb6a9a:0x280,_0x1c6eb6:0x26c},_0x53adea={_0x2e5ff6:0x654,_0x34288c:0x318,_0x3df681:0x15a,_0x209f61:0x24f,_0x1b49ff:0x46,_0x1ea962:0x6a,_0x5bdf86:0xf4,_0xfb4abf:0x65,_0xd832b4:0x5ce,_0x118215:0x6c7,_0x13a06b:0x6a2,_0xec3c4d:0x192,_0x1151c6:0x2a3,_0x8c61f:0x24d,_0x3750b6:0x546},_0x588ef1={_0x4376a7:0x142,_0x32bfc6:0x80,_0x1d5849:0x13a,_0x2f96a2:0x73},_0x4f675a={_0x2125eb:0x324},_0x4d8f7d={_0x1caee6:0x3b3},_0x3e611c={_0x29de8e:0xbd,_0x267963:0xb7,_0x3d265f:0x67},_0x315aff={_0x10cc67:0x412,_0x3ef4c5:0x3fd,_0x4af6cc:0x409},_0x5875c7={_0xabe896:0x189,_0x49ce3e:0x2bd,_0x4e3f8a:0x1fc},_0x676ac5={_0x3c6f13:0xe5,_0x2260f4:0x15a,_0x47737e:0x21c},_0x40a79f={_0x2af6ba:0x226,_0x468cfc:0x260},_0x353e0f={_0x3e7de1:0x115,_0x346726:0x610},_0x5d4341={_0x338b5b:0x131},_0x4d7046={_0x5cf886:0x1a9,_0x4e5672:0xc2},_0x26797d=storagePath(_0x1f4a58),_0x4c0c59=_0x1f4a58['config'][_0x12751f(0x4bd,0x4b4,0x6b3,0x5f9)]?.[_0x2e4caa(_0x4b97c5._0x2da069,0x376,0x591,_0x4b97c5._0x5497fa)]?.[_0x12751f(0x5a6,_0x4b97c5._0x38888b,_0x4b97c5._0x2eeb9b,0x5e7)]('\x20');function _0x2e4caa(_0x147e55,_0x57d276,_0x392ce8,_0x32be8d){return _0x4820c3(_0x147e55-_0x4d7046._0x5cf886,_0x57d276-_0x4d7046._0x4e5672,_0x32be8d,_0x147e55- -0x2b8);}function _0x12751f(_0xcd3e20,_0x2442a8,_0x3630bc,_0x1dfe03){return _0x4820c3(_0xcd3e20-_0x5d4341._0x338b5b,_0x2442a8-0xf6,_0xcd3e20,_0x1dfe03- -0x16);}const _0x2c9023={'client_name':_0x12751f(_0x4b97c5._0x28c20a,0x5c1,_0x4b97c5._0x41d73e,_0x4b97c5._0x15b558),'redirect_uris':[_0x1f4a58[_0x2e4caa(_0x4b97c5._0x57e596,0x52c,_0x4b97c5._0x57756c,_0x4b97c5._0x71ebb3)]],'grant_types':[_0x12751f(0x65a,0x467,_0x4b97c5._0x4a841b,_0x4b97c5._0x8bff16),_0x12751f(0x69d,0x71d,_0x4b97c5._0x37212f,0x68a)],'response_types':[_0x12751f(_0x4b97c5._0x3287c3,_0x4b97c5._0x855553,_0x4b97c5._0x2b43b4,_0x4b97c5._0x4503b2)],'token_endpoint_auth_method':_0x2e4caa(_0x4b97c5._0x67aff7,0x39c,_0x4b97c5._0x509ce8,_0x4b97c5._0x283b35),..._0x4c0c59?{'scope':_0x4c0c59}:{}};return{'clientMetadataUrl':_0x1f4a58[_0x12751f(_0x4b97c5._0x17ffb5,0x6bf,0x76e,_0x4b97c5._0x198b50)][_0x2e4caa(_0x4b97c5._0x1509d1,0x356,0x22a,0x240)]?.[_0x2e4caa(0x42f,_0x4b97c5._0x4086d6,_0x4b97c5._0x1b7cf9,0x2fa)],get 'redirectUrl'(){return _0x1f4a58['callbackUrl'];},get 'clientMetadata'(){return _0x2c9023;},async 'state'(){const _0x4ce56c={_0x8a67c0:0x11e,_0x56a9b6:0x123},_0x3f149c=await readStore(_0x26797d);function _0x20b952(_0x2465ac,_0x20fbf6,_0x2d0451,_0x9bafc8){return _0x12751f(_0x9bafc8,_0x20fbf6-_0x4ce56c._0x8a67c0,_0x2d0451-_0x4ce56c._0x56a9b6,_0x2d0451- -0x343);}function _0x72c843(_0x1cf59d,_0x220af7,_0x4f1b5d,_0xc59a0e){return _0x12751f(_0x4f1b5d,_0x220af7-0x155,_0x4f1b5d-_0x353e0f._0x3e7de1,_0xc59a0e- -_0x353e0f._0x346726);}if(_0x3f149c[_0x72c843(_0x40a79f._0x2af6ba,0x1b4,0x159,0x13e)])return _0x3f149c[_0x72c843(_0x40a79f._0x468cfc,0x1a5,0x251,0x13e)];const _0x268993=randomUUID();return await updateStore(_0x26797d,_0x63ef34=>{_0x63ef34['state']=_0x268993;}),_0x268993;},async 'clientInformation'(){const _0x1049ed={_0xa748f:0x1c4,_0x430437:0x66b};function _0x37acc0(_0x4d594b,_0xfb9d46,_0x4108e2,_0x4d8024){return _0x12751f(_0x4108e2,_0xfb9d46-0xad,_0x4108e2-_0x1049ed._0xa748f,_0x4d594b- -_0x1049ed._0x430437);}return(await readStore(_0x26797d))[_0x37acc0(_0x676ac5._0x3c6f13,_0x676ac5._0x2260f4,_0x676ac5._0x47737e,0xf1)];},async 'saveClientInformation'(_0x4f9a4e){await updateStore(_0x26797d,_0x77128=>{function _0x5a28a8(_0x110548,_0xfb754c,_0x4202cb,_0x22bb94){return _0x4629(_0xfb754c- -0x106,_0x4202cb);}_0x77128[_0x5a28a8(_0x5875c7._0xabe896,_0x5875c7._0x49ce3e,_0x5875c7._0x4e3f8a,0x260)]=_0x4f9a4e;});},async 'tokens'(){const _0x587000={_0x2c8ebd:0x1bb,_0x25785c:0x154};function _0x5a4007(_0x34e284,_0x34f82c,_0x5eadec,_0x265c03){return _0x12751f(_0x34f82c,_0x34f82c-0x121,_0x5eadec-_0x587000._0x2c8ebd,_0x34e284- -_0x587000._0x25785c);}return(await readStore(_0x26797d))[_0x5a4007(_0x315aff._0x10cc67,_0x315aff._0x3ef4c5,0x3a5,_0x315aff._0x4af6cc)];},async 'saveTokens'(_0x25706a){const _0x33d3cd={_0x5d13c5:0x4c6,_0x32638e:0x46d},_0x4d30d8={_0x941c1e:0x294};await updateStore(_0x26797d,_0x27a7e2=>{function _0x345d16(_0xdfe8fa,_0x58fd1c,_0x5dbc0d,_0xf9f9f){return _0x4629(_0xf9f9f-_0x4d30d8._0x941c1e,_0x5dbc0d);}_0x27a7e2[_0x345d16(0x364,0x4cc,_0x33d3cd._0x5d13c5,_0x33d3cd._0x32638e)]=_0x25706a;});},async 'redirectToAuthorization'(_0x436252){function _0x5db5a1(_0x18f0b9,_0x39885c,_0x211af5,_0x18710a){return _0x2e4caa(_0x18710a- -_0x3e611c._0x29de8e,_0x39885c-_0x3e611c._0x267963,_0x211af5-_0x3e611c._0x3d265f,_0x39885c);}await _0x1f4a58[_0x5db5a1(0x263,0x39c,0x3ea,_0x4d8f7d._0x1caee6)](_0x436252);},async 'saveCodeVerifier'(_0x1d9879){const _0x4c03c3={_0x132e5d:0x566,_0x272121:0x3e3};await updateStore(_0x26797d,_0xc3ae14=>{const _0x3c7a0e={_0x43cb0d:0x1c6};function _0x14183d(_0x302264,_0x1a2dc7,_0x42bd58,_0x2ff390){return _0x4629(_0x42bd58-_0x3c7a0e._0x43cb0d,_0x1a2dc7);}_0xc3ae14[_0x14183d(0x48e,_0x4c03c3._0x132e5d,0x42f,_0x4c03c3._0x272121)]=_0x1d9879;});},async 'codeVerifier'(){const _0x598817={_0x5d59cc:0x83};function _0x38ada6(_0x48d1f7,_0xeac4a7,_0x244351,_0x4ed10d){return _0x2e4caa(_0x244351-0x191,_0xeac4a7-0x93,_0x244351-_0x598817._0x5d59cc,_0xeac4a7);}const _0x2db59d=(await readStore(_0x26797d))[_0x550443(0x115,0x30,_0x588ef1._0x4376a7,_0x588ef1._0x32bfc6)];if(!_0x2db59d)throw new Error(_0x550443(0x112,0xe6,_0x588ef1._0x1d5849,_0x588ef1._0x2f96a2));function _0x550443(_0x516180,_0x500873,_0x14f67d,_0x25ad79){return _0x2e4caa(_0x500873- -_0x4f675a._0x2125eb,_0x500873-0x1de,_0x14f67d-0x181,_0x25ad79);}return _0x2db59d;},async 'invalidateCredentials'(_0x1707c2){await updateStore(_0x26797d,_0x769260=>{function _0x5e71cd(_0x1446b3,_0x40a99c,_0x31608b,_0x4e36ed){return _0x4629(_0x4e36ed- -0x174,_0x31608b);}function _0x173eb8(_0x2fff30,_0x45ad2e,_0x310530,_0x57f135){return _0x4629(_0x2fff30-0x3c8,_0x45ad2e);}(_0x1707c2===_0x173eb8(0x6ce,0x5d8,_0x53adea._0x2e5ff6,0x758)||_0x1707c2==='client')&&(_0x769260[_0x5e71cd(0x188,_0x53adea._0x34288c,_0x53adea._0x3df681,_0x53adea._0x209f61)]=void 0x0),(_0x1707c2===_0x5e71cd(_0x53adea._0x1b49ff,0x1ed,_0x53adea._0x1ea962,0x192)||_0x1707c2===_0x5e71cd(0x1c,_0x53adea._0x5bdf86,0x135,_0x53adea._0xfb4abf))&&(_0x769260['tokens']=void 0x0),(_0x1707c2==='all'||_0x1707c2==='verifier')&&(_0x769260[_0x173eb8(0x631,_0x53adea._0xd832b4,_0x53adea._0x118215,_0x53adea._0x13a06b)]=void 0x0,_0x769260[_0x5e71cd(_0x53adea._0xec3c4d,0x31f,_0x53adea._0x1151c6,_0x53adea._0x8c61f)]=void 0x0),(_0x1707c2==='all'||_0x1707c2===_0x173eb8(0x639,_0x53adea._0x3750b6,0x5fd,0x751))&&(_0x769260['discoveryState']=void 0x0);});},async 'saveDiscoveryState'(_0x26164b){const _0x502cfd={_0x3c2d50:0x224};await updateStore(_0x26797d,_0x522144=>{function _0x21df55(_0x1beb5f,_0x2aa9bc,_0x42bfff,_0x91e209){return _0x4629(_0x91e209- -_0x502cfd._0x3c2d50,_0x2aa9bc);}_0x522144[_0x21df55(_0x3f2f21._0xeb6a9a,0xf8,_0x3f2f21._0x1c6eb6,0x1db)]=_0x26164b;});},async 'discoveryState'(){const _0xb63108={_0x2aca4:0x4c3};function _0x2e5342(_0x28da34,_0xe3ae00,_0x4a9f81,_0x355aa6){return _0x2e4caa(_0x28da34- -_0xb63108._0x2aca4,_0xe3ae00-0x0,_0x4a9f81-0xd7,_0x4a9f81);}return(await readStore(_0x26797d))[_0x2e5342(0x27,_0x5df71b._0x30763e,0xff,0xfe)];}};}import{Client}from'@modelcontextprotocol/sdk/client/index.js';import{StdioClientTransport}from'@modelcontextprotocol/sdk/client/stdio.js';function _0x4629(_0x4ca04b,_0x4f5826){_0x4ca04b=_0x4ca04b-0x1b4;const _0x3a2bed=_0x3a2b();let _0x4629f0=_0x3a2bed[_0x4ca04b];if(_0x4629['aumUQf']===undefined){var _0x22f8fc=function(_0x675876){const _0x34b5c8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4eace7='',_0xba2f42='';for(let _0x19c94f=0x0,_0x51ddee,_0x25553a,_0x39d433=0x0;_0x25553a=_0x675876['charAt'](_0x39d433++);~_0x25553a&&(_0x51ddee=_0x19c94f%0x4?_0x51ddee*0x40+_0x25553a:_0x25553a,_0x19c94f++%0x4)?_0x4eace7+=String['fromCharCode'](0xff&_0x51ddee>>(-0x2*_0x19c94f&0x6)):0x0){_0x25553a=_0x34b5c8['indexOf'](_0x25553a);}for(let _0x4417e0=0x0,_0x1a7104=_0x4eace7['length'];_0x4417e0<_0x1a7104;_0x4417e0++){_0xba2f42+='%'+('00'+_0x4eace7['charCodeAt'](_0x4417e0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xba2f42);};_0x4629['ehWoVq']=_0x22f8fc,_0x4629['NcimOT']={},_0x4629['aumUQf']=!![];}const _0x26ca68=_0x3a2bed[0x0],_0x15d62b=_0x4ca04b+_0x26ca68,_0x4b6ce1=_0x4629['NcimOT'][_0x15d62b];return!_0x4b6ce1?(_0x4629f0=_0x4629['ehWoVq'](_0x4629f0),_0x4629['NcimOT'][_0x15d62b]=_0x4629f0):_0x4629f0=_0x4b6ce1,_0x4629f0;}import{StreamableHTTPClientTransport}from'@modelcontextprotocol/sdk/client/streamableHttp.js';import{CallToolResultSchema}from'@modelcontextprotocol/sdk/types.js';function createMcpToolName(_0x431349,_0x149cd8){const _0x542e59={_0x53275e:0x3f8},_0x41a797={_0x426561:0x532,_0x373449:0x32,_0xc6f018:0x149},_0x5b0482={_0x4d8ab0:0x14a},_0x2f279b=_0x2c4ad7=>_0x2c4ad7['replace'](/[^a-zA-Z0-9_]+/g,'_')[_0x2759a4(0x440,0x5c4,0x52a,0x48e)](/^_+|_+$/g,'');function _0x2759a4(_0xfef4ee,_0x3f016e,_0x8a1fbb,_0x2bc8f6){return _0x4820c3(_0xfef4ee-_0x5b0482._0x4d8ab0,_0x3f016e-0x12a,_0xfef4ee,_0x8a1fbb- -0x157);}function _0x66657a(_0x3f8b4c,_0x37d099,_0x3e3838,_0x3a59c0){return _0x211934(_0x3a59c0- -_0x41a797._0x426561,_0x37d099-_0x41a797._0x373449,_0x3f8b4c,_0x3a59c0-_0x41a797._0xc6f018);}return _0x2759a4(_0x542e59._0x53275e,0x4b9,0x49f,0x3e5)+_0x2f279b(_0x431349)+'_'+_0x2f279b(_0x149cd8);}function isObject(_0x285d5b){const _0x33b9fa={_0x1c6cc6:0x17c,_0x253407:0x2b3},_0x470943={_0x51e938:0x6d},_0xef9bbb={_0x2f8c63:0x1,_0x42411f:0x119};function _0x26a6db(_0x2816e6,_0xf11d3b,_0x40a0cd,_0xc65490){return _0x211934(_0x2816e6- -0x268,_0xf11d3b-_0xef9bbb._0x2f8c63,_0x40a0cd,_0xc65490-_0xef9bbb._0x42411f);}function _0x37db98(_0x2383e2,_0x2f97f3,_0x3dd049,_0x448678){return _0x211934(_0x3dd049- -0x193,_0x2f97f3-0x158,_0x2f97f3,_0x448678-_0x470943._0x51e938);}return typeof _0x285d5b===_0x37db98(0x30c,_0x33b9fa._0x1c6cc6,0x1f8,0x2bd)&&_0x285d5b!==null&&!Array[_0x37db98(0x168,_0x33b9fa._0x253407,0x2b5,0x3c8)](_0x285d5b);}function toSupportedSchema(_0x245eb5){const _0x15920d={_0xc242a0:0x4e2,_0x4cccb3:0x5b6,_0x5e3b83:0x60b,_0x4d5dfb:0x4d7,_0x4c1cad:0x5ef,_0x2299dd:0x4ad,_0x4e8b6f:0x4ef,_0x63e625:0x4ab,_0x4fbdd0:0x4d5,_0x29bc6f:0x513,_0x310bc2:0x496,_0x5405f9:0x569,_0x45f375:0x447,_0x52569d:0x465,_0x13eaea:0x528,_0x44530a:0x5d9,_0x20c714:0x5f4,_0x633ae1:0x613,_0x3bf98d:0x434,_0x13d96e:0x4db},_0x213a9d={_0x5a034f:0x1a5};function _0x413fe6(_0x44e9d8,_0x5dc187,_0x447cbd,_0x1b4d4b){return _0x4820c3(_0x44e9d8-_0x213a9d._0x5a034f,_0x5dc187-0xff,_0x44e9d8,_0x1b4d4b- -0xac);}if(!isObject(_0x245eb5))return void 0x0;if(_0x245eb5[_0x22d1a1(0x4d1,_0x15920d._0xc242a0,0x59a,_0x15920d._0x4cccb3)]===_0x413fe6(_0x15920d._0x5e3b83,_0x15920d._0x4d5dfb,_0x15920d._0x4c1cad,0x53f))return{'type':_0x22d1a1(0x3b2,0x3e6,_0x15920d._0x2299dd,_0x15920d._0x4e8b6f)};if(_0x245eb5['type']===_0x22d1a1(0x449,0x572,_0x15920d._0x63e625,_0x15920d._0x4fbdd0)||_0x245eb5['type']===_0x413fe6(0x5d7,0x58b,0x63b,_0x15920d._0x29bc6f))return{'type':_0x413fe6(0x559,_0x15920d._0x310bc2,0x447,0x525)};if(_0x245eb5['type']==='boolean')return{'type':'boolean'};if(_0x245eb5[_0x22d1a1(_0x15920d._0x5405f9,0x640,0x4b4,0x5b6)]==='array')return{'type':_0x413fe6(0x4b6,_0x15920d._0x45f375,_0x15920d._0x52569d,0x536),'items':toSupportedSchema(_0x245eb5[_0x22d1a1(0x5ef,_0x15920d._0x13eaea,0x5bd,0x5bc)])??{'type':'string'}};function _0x22d1a1(_0x2ffd17,_0x34261d,_0x3d23c1,_0xf8dac8){return _0x4820c3(_0x2ffd17-0xbe,_0x34261d-0xe7,_0x2ffd17,_0xf8dac8- -0xfc);}if(_0x245eb5[_0x413fe6(0x510,_0x15920d._0x44530a,_0x15920d._0x20c714,0x606)]===_0x22d1a1(_0x15920d._0x633ae1,0x528,_0x15920d._0x3bf98d,_0x15920d._0x13d96e))return toNuvinToolSchema(_0x245eb5);return void 0x0;}function toNuvinToolSchema(_0x37a22d){const _0x579eda={_0x53c9bc:0x247,_0x5c17fa:0x34b,_0x3ec32e:0x325,_0x28349d:0x4a6,_0x41339a:0x45c,_0x135d91:0x276,_0x503bf5:0x4f3,_0x18fee8:0x3a4,_0x4fc2bf:0x241,_0x2cd4ba:0x7,_0x137095:0x174,_0x287a41:0x128,_0x17d7ad:0x310,_0x20f21a:0x46f,_0x4b5f2b:0x47c,_0x2cf427:0x2ed,_0x1958b4:0xcc,_0x2ffe39:0xca,_0x27b793:0x39,_0x3902e5:0x7a,_0x4a334b:0x11d,_0x29a539:0x12},_0x43ae0f={_0x2e0ae0:0x5c5},_0x5c11d7={_0x219db0:0x31d};if(!isObject(_0x37a22d)||_0x37a22d['type']!=='object')return{'type':_0x507786(_0x579eda._0x53c9bc,_0x579eda._0x5c17fa,0x2ba,_0x579eda._0x3ec32e),'properties':{}};const _0x13d4a9={},_0x2576ae=isObject(_0x37a22d[_0x507786(_0x579eda._0x28349d,_0x579eda._0x41339a,0x3a4,_0x579eda._0x135d91)])?_0x37a22d[_0x507786(_0x579eda._0x503bf5,0x32b,_0x579eda._0x18fee8,0x344)]:{};function _0x507786(_0x431bb7,_0x40bd93,_0x1259c8,_0x1c69bb){return _0x4820c3(_0x431bb7-0x1de,_0x40bd93-0xab,_0x40bd93,_0x1259c8- -_0x5c11d7._0x219db0);}function _0x42323d(_0x4320f1,_0x5f1d6f,_0x5d13c1,_0x43e4b4){return _0x4820c3(_0x4320f1-0x193,_0x5f1d6f-0x1ee,_0x5f1d6f,_0x43e4b4- -_0x43ae0f._0x2e0ae0);}for(const [_0x2d6919,_0x17872a]of Object['entries'](_0x2576ae)){const _0x17b84f=toSupportedSchema(_0x17872a);if(_0x17b84f)_0x13d4a9[_0x2d6919]=_0x17b84f;}const _0x3ebe26=Array[_0x42323d(0x7d,0x206,0x1e4,0xcf)](_0x37a22d[_0x42323d(_0x579eda._0x4fc2bf,-_0x579eda._0x2cd4ba,0x14f,0x128)])?_0x37a22d[_0x42323d(0x159,_0x579eda._0x137095,0x2b,_0x579eda._0x287a41)][_0x507786(_0x579eda._0x17d7ad,0x37e,_0x579eda._0x20f21a,_0x579eda._0x4b5f2b)](_0x28d485=>typeof _0x28d485===_0x42323d(0xa3,0xc7,-0xec,0x26)):void 0x0;return _0x3ebe26?.[_0x507786(_0x579eda._0x2cf427,0x46c,0x358,0x26a)]?{'type':_0x42323d(-_0x579eda._0x1958b4,_0x579eda._0x2ffe39,_0x579eda._0x27b793,0x12),'properties':_0x13d4a9,'required':_0x3ebe26}:{'type':_0x42323d(-0x85,_0x579eda._0x3902e5,-_0x579eda._0x4a334b,_0x579eda._0x29a539),'properties':_0x13d4a9};}function isJsonObject(_0x4c6986){const _0x2ca1b0={_0x3a5b7f:0xbb,_0x10c582:0x143},_0x4af1ce={_0x4170bc:0xfa,_0xdfcc33:0x551};function _0x21c5c6(_0x466d05,_0x54c148,_0x4dca70,_0x2f5db9){return _0x4820c3(_0x466d05-0xab,_0x54c148-_0x4af1ce._0x4170bc,_0x2f5db9,_0x54c148- -_0x4af1ce._0xdfcc33);}return typeof _0x4c6986==='object'&&_0x4c6986!==null&&!Array[_0x21c5c6(_0x2ca1b0._0x3a5b7f,_0x2ca1b0._0x10c582,0x15f,0x1b9)](_0x4c6986);}function formatMcpContent(_0x19261b){const _0xd656c1={_0x1269e2:0x5f7,_0x237d15:0x708,_0x384da7:0x720,_0x37bc83:0x5dd,_0x158370:0x747,_0x1d0c05:0x571,_0x4a08c3:0x414,_0x11d565:0x3ea,_0x3957e8:0x511,_0x5ac432:0x6e7,_0x1d9cd5:0x51c,_0x5c4474:0x499,_0xd4664e:0x59c,_0x24acee:0x379,_0x362347:0x4b5,_0x43630f:0x4a6,_0x2e47af:0x5e0},_0x35de29={_0x275ffb:0x45},_0x30649b={_0x1c6ae2:0x134,_0xdcf988:0x104,_0x36c118:0x32,_0x4e64ff:0x29d,_0x3c110e:0x166},_0x3c22be={_0x5988dd:0x29},_0x394d53={_0x21083d:0x1a2},_0x4cf908={_0x330a2d:0x4f,_0x3d7b82:0x61};function _0x318ff2(_0x32d086,_0x349019,_0x2e6965,_0x1aa758){return _0x4820c3(_0x32d086-_0x4cf908._0x330a2d,_0x349019-0xfd,_0x32d086,_0x1aa758- -_0x4cf908._0x3d7b82);}const _0x306b29=Array['isArray'](_0x19261b[_0x318ff2(0x788,_0xd656c1._0x1269e2,_0xd656c1._0x237d15,_0xd656c1._0x384da7)])?_0x19261b[_0x318ff2(_0xd656c1._0x37bc83,_0xd656c1._0x158370,0x71d,0x720)]:[],_0x2a93d6=_0x306b29[_0x318ff2(_0xd656c1._0x1d0c05,_0xd656c1._0x4a08c3,_0xd656c1._0x11d565,_0xd656c1._0x3957e8)](_0x443493=>{if(!isObject(_0x443493))return'';function _0x1e9648(_0x5adeda,_0x5773c7,_0x5ad02b,_0x58e9f9){return _0x28279f(_0x5773c7,_0x5773c7-0x1ca,_0x5ad02b-_0x394d53._0x21083d,_0x58e9f9- -0x3ea);}function _0x4b195a(_0x594eb0,_0x473ce4,_0x13987b,_0x9ae572){return _0x318ff2(_0x473ce4,_0x473ce4-_0x3c22be._0x5988dd,_0x13987b-0x18c,_0x594eb0-0x36);}if(_0x443493['type']===_0x4b195a(0x630,0x565,0x543,0x57b)&&typeof _0x443493['text']===_0x1e9648(_0x30649b._0x1c6ae2,_0x30649b._0xdcf988,0x7f,_0x30649b._0x36c118))return _0x443493[_0x4b195a(0x630,0x5c7,0x675,0x594)];return JSON[_0x1e9648(0x2bd,_0x30649b._0x4e64ff,_0x30649b._0x3c110e,0x1f6)](_0x443493);})[_0x28279f(0x479,0x70b,_0xd656c1._0x5ac432,0x5bd)](_0x18f783=>_0x18f783[_0x318ff2(0x4bc,0x55b,0x5b6,0x614)]>0x0)[_0x318ff2(_0xd656c1._0x1d9cd5,0x610,_0xd656c1._0x5c4474,_0xd656c1._0xd4664e)]('\x0a');if(_0x2a93d6[_0x28279f(0x356,_0xd656c1._0x24acee,_0xd656c1._0x362347,_0xd656c1._0x43630f)]>0x0)return _0x2a93d6;function _0x28279f(_0x32221b,_0x31cdad,_0x2e9db5,_0x5e33c5){return _0x4820c3(_0x32221b-_0x35de29._0x275ffb,_0x31cdad-0x1ef,_0x32221b,_0x5e33c5- -0x1cf);}return JSON[_0x28279f(0x58f,0x675,0x602,_0xd656c1._0x2e47af)](_0x19261b,null,0x2);}function createMcpTool(_0x42f432){const _0x5805be={_0x44ae89:0x768,_0x5c7f42:0x765,_0x2c833d:0x697,_0x19ebd5:0x34d,_0x1ae2b4:0x395,_0x33cce5:0x251,_0x379734:0x375,_0x26954e:0xf3,_0x687a36:0x631,_0x87918f:0x6c8,_0x2a308a:0x508,_0xdefbd3:0x26a,_0x49dd1c:0x5a6,_0x2e5366:0x6ad,_0xdb16c4:0x47f,_0xb8ee2f:0x4b1,_0x3dd6fd:0x5f0},_0xebd234={_0x352ca0:0x39b,_0x5d998d:0x39c,_0x496c3c:0x389,_0x268426:0x37d,_0x463eac:0x312,_0x568eb9:0x425,_0x42349e:0x587,_0x11604d:0x5a8,_0x25c2c1:0x438,_0x283ec1:0x60f,_0x249427:0x45d,_0x4b967f:0x457,_0xc37a8e:0x528},_0x450737={_0x352767:0x4e},_0x5c04b6={_0x4a2b31:0x189,_0x4c5206:0x123},_0x48808b=createMcpToolName(_0x42f432[_0x740b44(_0x5805be._0x44ae89,0x660,_0x5805be._0x5c7f42,0x855)],_0x42f432[_0x740b44(0x6b7,_0x5805be._0x2c833d,0x7aa,0x671)][_0x37105e(0x34e,0x378,_0x5805be._0x19ebd5,_0x5805be._0x1ae2b4)]);function _0x740b44(_0x42d094,_0x5ed0dc,_0x5071e3,_0xf9cf5b){return _0x211934(_0x42d094-0x1fe,_0x5ed0dc-_0x5c04b6._0x4a2b31,_0x5071e3,_0xf9cf5b-_0x5c04b6._0x4c5206);}function _0x37105e(_0x485a8e,_0x1453c2,_0x2ad014,_0xb7e174){return _0x4820c3(_0x485a8e-_0x450737._0x352767,_0x1453c2-0x1c6,_0x2ad014,_0x485a8e- -0x4b4);}return defineTool({'name':_0x48808b,'description':_0x42f432[_0x37105e(_0x5805be._0x33cce5,_0x5805be._0x379734,_0x5805be._0x26954e,0x15e)]['description']??_0x740b44(_0x5805be._0x687a36,_0x5805be._0x87918f,0x58f,_0x5805be._0x2a308a)+_0x42f432[_0x37105e(0x251,0x320,_0x5805be._0xdefbd3,0x2e2)]['name']+_0x740b44(_0x5805be._0x49dd1c,_0x5805be._0x2e5366,_0x5805be._0xdb16c4,_0x5805be._0xb8ee2f)+_0x42f432['serverName'],'inputSchema':toNuvinToolSchema(_0x42f432[_0x740b44(0x6b7,0x73d,_0x5805be._0x3dd6fd,0x5ac)]['inputSchema']),async *'execute'(_0x414e2e){function _0x1289fe(_0x2feb06,_0x3d3837,_0xe981c8,_0x1da349){return _0x37105e(_0xe981c8-0x261,_0x3d3837-0x1b3,_0x1da349,_0x1da349-0x185);}const _0x381bdf=await _0x42f432[_0x2589e7(0x43d,_0xebd234._0x352ca0,_0xebd234._0x5d998d,_0xebd234._0x496c3c)][_0x1289fe(_0xebd234._0x268426,_0xebd234._0x463eac,0x340,_0xebd234._0x568eb9)]({'name':_0x42f432[_0x1289fe(_0xebd234._0x42349e,_0xebd234._0x11604d,0x4b2,0x511)]['name'],'arguments':isJsonObject(_0x414e2e)?_0x414e2e:{}});function _0x2589e7(_0x20a730,_0x4f5878,_0x2372fe,_0x54b70c){return _0x37105e(_0x2372fe-0x2d1,_0x4f5878-0x13e,_0x20a730,_0x54b70c-0x15e);}if(_0x381bdf[_0x1289fe(0x384,0x2c0,0x344,0x39c)])throw new ToolExecutionError(formatMcpContent(_0x381bdf),{'serverName':_0x42f432['serverName'],'toolName':_0x42f432[_0x2589e7(_0xebd234._0x25c2c1,0x3d7,0x522,_0xebd234._0x283ec1)][_0x1289fe(0x466,_0xebd234._0x249427,0x5af,_0xebd234._0x4b967f)]});return yield createToolOutput(formatMcpContent(_0x381bdf),{'serverName':_0x42f432[_0x1289fe(_0xebd234._0xc37a8e,0x636,0x563,0x4f4)],'toolName':_0x42f432['tool'][_0x1289fe(0x534,0x50a,0x5af,0x5fd)],'result':_0x381bdf}),void 0x0;}});}function resolvePrefix(_0x8d959f,_0x503859){const _0x4e08e8={_0xf105d9:0x3ae,_0x267a08:0x473},_0x155012={_0x1cc174:0xd4};function _0x1c33f0(_0x224f21,_0x149bb7,_0xc217ba,_0x19aa04){return _0x4820c3(_0x224f21-0x14a,_0x149bb7-_0x155012._0x1cc174,_0x224f21,_0xc217ba- -0x36c);}return _0x503859[_0x1c33f0(_0x4e08e8._0xf105d9,0x3af,_0x4e08e8._0x267a08,0x4cd)]??_0x8d959f;}function buildMcpHttpHeaders(_0x59a47d){const _0x1cb088={_0x4e2d8e:0x14a,_0x4efc25:0x249,_0x26a315:0x502,_0x16e20a:0x64a,_0x4813f0:0x6ac,_0x11d6ed:0x6b4,_0x47f7a9:0x5cf,_0x9e2ee8:0xdb,_0x168073:0x195,_0x44d4be:0xc5,_0x49ea3d:0xda,_0x1d443b:0x27,_0x2ba064:0x221,_0x4b4c9a:0x7cf,_0x4ea5d0:0x64c,_0x10b89e:0x14a,_0x208485:0x25b,_0x79ea5a:0x3,_0x4316ee:0x117,_0x14f1e5:0x1},_0x1b9462={_0x518e8c:0x1f},_0x52a469={_0x39ed24:0x47,_0x43e73f:0xd3,_0x28b71f:0x10a};function _0x4d43f9(_0x190971,_0x58e3cd,_0x54b025,_0x58c0e6){return _0x4820c3(_0x190971-_0x52a469._0x39ed24,_0x58e3cd-_0x52a469._0x43e73f,_0x58e3cd,_0x54b025- -_0x52a469._0x28b71f);}const _0x1bde5d={..._0x59a47d['headers']??{}};_0x59a47d[_0x57970a(_0x1cb088._0x4e2d8e,0x38,0xe,_0x1cb088._0x4efc25)]?.[_0x4d43f9(_0x1cb088._0x26a315,_0x1cb088._0x16e20a,0x5a8,_0x1cb088._0x4813f0)]==='bearer'&&_0x59a47d[_0x4d43f9(0x71c,_0x1cb088._0x11d6ed,_0x1cb088._0x47f7a9,0x64c)][_0x57970a(_0x1cb088._0x9e2ee8,_0x1cb088._0x168073,-0x29,_0x1cb088._0x44d4be)]&&_0x1bde5d[_0x57970a(_0x1cb088._0x49ea3d,-0x1f,-_0x1cb088._0x1d443b,_0x1cb088._0x2ba064)]===void 0x0&&(_0x1bde5d['Authorization']=_0x4d43f9(_0x1cb088._0x4b4c9a,_0x1cb088._0x4ea5d0,0x6a3,0x5f6)+_0x59a47d[_0x57970a(_0x1cb088._0x10b89e,_0x1cb088._0x208485,_0x1cb088._0x79ea5a,_0x1cb088._0x4316ee)]['token']);function _0x57970a(_0x3861f0,_0x5256ea,_0x5be344,_0x33792d){return _0x4820c3(_0x3861f0-_0x1b9462._0x518e8c,_0x5256ea-0x1b7,_0x5256ea,_0x3861f0- -0x58f);}return Object[_0x4d43f9(0x51b,0x52b,0x518,0x485)](_0x1bde5d)[_0x57970a(0xe6,-_0x1cb088._0x14f1e5,-0x71,0x175)]>0x0?_0x1bde5d:void 0x0;}function getErrorMessage(_0x5212d9){const _0x2744c8={_0x52aecb:0x37a,_0x48576f:0x3fd},_0x1c6102={_0x3e3c36:0x3d};function _0x4e29d3(_0x45e9dc,_0x462c85,_0x2ba4cc,_0x25d7fd){return _0x211934(_0x25d7fd- -0x11a,_0x462c85-_0x1c6102._0x3e3c36,_0x45e9dc,_0x25d7fd-0x1f0);}return _0x5212d9 instanceof Error?_0x5212d9[_0x4e29d3(0x4d9,0x34f,_0x2744c8._0x52aecb,_0x2744c8._0x48576f)]:String(_0x5212d9);}function isUnauthorizedError(_0x2c5f80){const _0x1cb31b={_0x28d9a3:0x128};function _0x619cd0(_0x15db05,_0x43e946,_0xaeddf9,_0x54094c){return _0x211934(_0xaeddf9-0x1b3,_0x43e946-_0x1cb31b._0x28d9a3,_0x54094c,_0x54094c-0x84);}return _0x2c5f80 instanceof Error&&_0x2c5f80['constructor'][_0x619cd0(0x878,0x850,0x769,0x8c2)]==='UnauthorizedError';}async function connectMcpServer(_0x1b1d47,_0x63d482,_0x34e0b9){const _0x5d7e62={_0x3c181f:0x163,_0x3b2cf4:0x16c,_0x3a222a:0x2bc,_0x12bc6b:0x4f,_0x58dec8:0x100,_0x191bc6:0xbf,_0x547fac:0x111,_0x10d592:0x185,_0x3c6864:0x238,_0x16838a:0x252,_0x53fd08:0x1e0,_0x4e5e61:0x2cc,_0x33c453:0x4,_0x3be585:0xad,_0x5e94f7:0x4,_0x500ffd:0x7d,_0x5d0476:0x91,_0x365510:0x14c,_0x1f7fdc:0x207,_0x24416d:0x228,_0x3555f0:0x1c8,_0x5ada70:0x7f,_0x42912a:0x24,_0x20ea2a:0x161,_0x21ce64:0x12e,_0x22ef98:0x23d,_0x2032fa:0x35,_0x1294cf:0xa6,_0x38b972:0xb4,_0x4bc558:0x2d,_0xeeacee:0x1d7,_0x15321f:0xc8,_0x24a753:0xfe,_0x438077:0x49,_0x161ad2:0xbd,_0x320e17:0x7b,_0x18d07b:0x12,_0x47d8fd:0x1ad,_0x3175e4:0xd,_0x4e307e:0x158,_0x57ebaa:0x1c,_0x2e7558:0x94,_0x5085a4:0xa2,_0x69c530:0xa6,_0xaa9276:0x8c,_0x1b50eb:0x27,_0x37ead9:0xba,_0x414978:0x1d4,_0x476a2a:0x77,_0x1c6f31:0x76,_0xecace2:0x83,_0x2709a4:0x58,_0x130d2e:0x103,_0x41fbf9:0x186,_0x3db62e:0x290},_0x2f065a={_0x2808b2:0x533,_0x4f02bb:0x4da},_0x5131ec={_0x26c4d4:0x9f,_0x294a75:0x5bb,_0x1f05be:0x122},_0x1e8615={_0x22333e:0x1f3,_0x56f375:0x19e,_0x4170a2:0x1f5},_0x5ab37f={_0x2e601d:0x90,_0x3a464e:0x3a},_0x5643b4={_0xebd4fc:0x3f0,_0x2d7991:0x53e,_0x376862:0x2a2,_0x166be3:0xb9,_0x31dab4:0x218,_0x5084ad:0x431,_0x1d23da:0x498},_0x1619b9={_0x4e37a1:0xf2},_0x18d6aa={_0x347fe9:0x102},_0x572dd7={_0x33e718:0x43e,_0x5283de:0x4f,_0xc3127f:0x10c},_0x1874aa=new Client({'name':_0x1a0f37(_0x5d7e62._0x3c181f,_0x5d7e62._0x3b2cf4,_0x5d7e62._0x3a222a,0x1d6),'version':_0x9db67d(-_0x5d7e62._0x12bc6b,_0x5d7e62._0x58dec8,_0x5d7e62._0x191bc6,0x108)});function _0x1a0f37(_0x364297,_0x3f5e98,_0x10634f,_0x2aba73){return _0x211934(_0x3f5e98- -_0x572dd7._0x33e718,_0x3f5e98-_0x572dd7._0x5283de,_0x2aba73,_0x2aba73-_0x572dd7._0xc3127f);}function _0x9db67d(_0x3d18d7,_0x2902c9,_0x138e51,_0x2c10ea){return _0x4820c3(_0x3d18d7-_0x18d6aa._0x347fe9,_0x2902c9-0x1ea,_0x2c10ea,_0x2902c9- -0x633);}_0x1874aa['onerror']=_0x540032=>{function _0x455b25(_0x2b6068,_0x10479a,_0x3d6e3a,_0x2cfc92){return _0x9db67d(_0x2b6068-_0x1619b9._0x4e37a1,_0x2b6068-0x301,_0x3d6e3a-0x1b6,_0x10479a);}function _0x22ba74(_0x162bc6,_0x5b46d5,_0x31c9bd,_0x5a01b1){return _0x1a0f37(_0x162bc6-0xe5,_0x162bc6-0x1a2,_0x31c9bd-0x1c1,_0x31c9bd);}console[_0x455b25(_0x5643b4._0xebd4fc,_0x5643b4._0x2d7991,0x41f,_0x5643b4._0x376862)](_0x22ba74(_0x5643b4._0x166be3,_0x5643b4._0x31dab4,0x2b,0x213)+_0x1b1d47+']\x20transport\x20error:',_0x540032[_0x455b25(_0x5643b4._0x5084ad,0x487,0x53a,_0x5643b4._0x1d23da)]);};if(_0x63d482[_0x1a0f37(0x44,_0x5d7e62._0x547fac,_0x5d7e62._0x10d592,_0x5d7e62._0x3c6864)]===_0x9db67d(_0x5d7e62._0x16838a,_0x5d7e62._0x53fd08,0x18f,_0x5d7e62._0x4e5e61)||_0x63d482[_0x9db67d(-0x163,-_0x5d7e62._0x33c453,0xaf,0xaa)]){if(!_0x63d482[_0x9db67d(-_0x5d7e62._0x3be585,-_0x5d7e62._0x5e94f7,_0x5d7e62._0x500ffd,0x73)])throw new Error('MCP\x20server\x20'+_0x1b1d47+_0x1a0f37(_0x5d7e62._0x5d0476,_0x5d7e62._0x365510,_0x5d7e62._0x1f7fdc,_0x5d7e62._0x24416d));if(_0x63d482['auth']?.[_0x9db67d(_0x5d7e62._0x3555f0,_0x5d7e62._0x5ada70,0x1e,0x94)]===_0x9db67d(-0xb5,-_0x5d7e62._0x42912a,-_0x5d7e62._0x20ea2a,-0xa9)&&!_0x34e0b9?.['oauth'])throw new Error(_0x1a0f37(0x99,_0x5d7e62._0x21ce64,0xbc,0x32)+_0x1b1d47+_0x9db67d(_0x5d7e62._0x22ef98,0x148,0x188,_0x5d7e62._0x2032fa));const _0x3e0cc0=buildMcpHttpHeaders(_0x63d482),_0x27fe4d=_0x63d482[_0x9db67d(0xbd,_0x5d7e62._0x1294cf,-_0x5d7e62._0x38b972,_0x5d7e62._0x4bc558)]?.[_0x9db67d(0x95,0x7f,_0x5d7e62._0xeeacee,_0x5d7e62._0x15321f)]===_0x9db67d(_0x5d7e62._0x24a753,-_0x5d7e62._0x42912a,-_0x5d7e62._0x438077,0x104)&&_0x34e0b9?.[_0x1a0f37(-_0x5d7e62._0x161ad2,-_0x5d7e62._0x320e17,0x3e,_0x5d7e62._0x18d07b)]?createMcpOAuthProvider({'serverName':_0x1b1d47,'callbackUrl':_0x34e0b9[_0x1a0f37(0x65,-0x7b,-_0x5d7e62._0x47d8fd,-0xc2)]['callbackUrl'],'storageDir':_0x34e0b9[_0x1a0f37(-0x13c,-0x7b,-_0x5d7e62._0x3175e4,-_0x5d7e62._0x4e307e)][_0x9db67d(_0x5d7e62._0x57ebaa,-_0x5d7e62._0x2e7558,0x37,0x5c)],'config':_0x63d482[_0x9db67d(-_0x5d7e62._0x5085a4,_0x5d7e62._0x69c530,_0x5d7e62._0xaa9276,-0x43)],'onRedirect':_0x2dd1bc=>_0x34e0b9[_0x9db67d(-0xe9,-0x24,0xa5,-0x177)]?.[_0x9db67d(0xa8,0xf5,0x130,0x78)](_0x1b1d47,_0x2dd1bc)}):void 0x0,_0x95230e=new StreamableHTTPClientTransport(new URL(_0x63d482[_0x1a0f37(-0xf8,-0x5b,_0x5d7e62._0x1b50eb,_0x5d7e62._0x37ead9)]),{'authProvider':_0x27fe4d,'requestInit':_0x3e0cc0?{'headers':_0x3e0cc0}:void 0x0});await _0x1874aa[_0x9db67d(0x117,-_0x5d7e62._0x4bc558,-0x18a,-0x13a)](_0x95230e);}else{if(!_0x63d482[_0x9db67d(_0x5d7e62._0x414978,_0x5d7e62._0x476a2a,_0x5d7e62._0x1c6f31,0x1b4)])throw new Error('MCP\x20server\x20'+_0x1b1d47+'\x20requires\x20command\x20for\x20stdio\x20transport');const _0x49f093=new StdioClientTransport({'command':_0x63d482['command'],'args':_0x63d482['args']??[],'env':_0x63d482[_0x9db67d(-_0x5d7e62._0xecace2,_0x5d7e62._0x2709a4,-0xe9,-_0x5d7e62._0x130d2e)],'stderr':_0x1a0f37(0xf6,0x181,_0x5d7e62._0x41fbf9,_0x5d7e62._0x3db62e)});await _0x1874aa[_0x9db67d(-0x4f,-0x2d,-0x5,-0x84)](_0x49f093);}return{async 'listTools'(){return await _0x1874aa['listTools']();},async 'callTool'(_0x47560c){const _0x1f6144={_0x2a1c01:0xae,_0x42057a:0x56b};function _0x392df1(_0x168676,_0x47096d,_0x105fd6,_0x139a77){return _0x1a0f37(_0x168676-_0x1f6144._0x2a1c01,_0x139a77-_0x1f6144._0x42057a,_0x105fd6-0x2d,_0x47096d);}function _0x25a568(_0x371374,_0x3308d3,_0x20ef55,_0x45cc0b){return _0x9db67d(_0x371374-_0x5ab37f._0x2e601d,_0x371374-0x1da,_0x20ef55-_0x5ab37f._0x3a464e,_0x45cc0b);}return await _0x1874aa[_0x25a568(_0x1e8615._0x22333e,0xf0,_0x1e8615._0x56f375,0x2e3)]({'method':_0x25a568(_0x1e8615._0x4170a2,0x279,0xbb,0x1fc),'params':_0x47560c},CallToolResultSchema);},async 'close'(){function _0x6c4f4a(_0x5585ae,_0x165e08,_0x4ab700,_0xdfd086){return _0x1a0f37(_0x5585ae-_0x5131ec._0x26c4d4,_0x5585ae-_0x5131ec._0x294a75,_0x4ab700-_0x5131ec._0x1f05be,_0x4ab700);}await _0x1874aa[_0x6c4f4a(0x5f0,_0x2f065a._0x2808b2,_0x2f065a._0x4f02bb,0x4d8)]();}};}async function createMcpToolsFromServers(_0x3e7145){const _0x2f5f0a={_0x2fbd2f:0x52d,_0x500680:0x57c,_0x4c8e66:0x1e1,_0x2d6f37:0x247,_0x5dedab:0x13c,_0x3d3c2e:0x2a2,_0x2fd8d5:0x449,_0x97846b:0x3b1,_0x5b240d:0x335,_0x3c5401:0x5a9,_0x18af19:0x6b9,_0x492c6c:0x620,_0x2b92bc:0x22c,_0x17d3d6:0x3c3,_0x3e8e9f:0x275,_0x8d3d6b:0x244,_0x1821ff:0x242,_0x126727:0x5b9,_0xadf63d:0x3f7},_0x15000f={_0x4040a7:0x56e,_0x157a0b:0x5c0,_0xaa1b49:0x6c7,_0x3e6af7:0x5b1,_0x1caca3:0x692},_0x552ac0={_0xb94ce1:0x190},_0x2c7172={_0x241f50:0xd1},_0x1c1933={_0x479073:0xab,_0x346b55:0x12d},_0x21f00d=_0x3e7145['connect']??connectMcpServer,_0xe46c47=[],_0x5677d0={},_0xb77445=[];for(const [_0x587eed,_0x28aebc]of Object['entries'](_0x3e7145[_0x5535e0(0x41a,0x4cb,_0x2f5f0a._0x2fbd2f,_0x2f5f0a._0x500680)]??{})){if(_0x28aebc[_0x9529aa(_0x2f5f0a._0x4c8e66,_0x2f5f0a._0x2d6f37,0xf9,_0x2f5f0a._0x5dedab)]===![]){_0x5677d0[_0x587eed]={'status':_0x9529aa(0x35a,0x225,0x4ba,0x3ba)};continue;}try{const _0xf52ab2=await _0x21f00d(_0x587eed,_0x28aebc,_0x3e7145[_0x5535e0(_0x2f5f0a._0x3d3c2e,0x3c9,0x4a1,_0x2f5f0a._0x2fd8d5)]);_0xe46c47[_0x9529aa(_0x2f5f0a._0x97846b,_0x2f5f0a._0x5b240d,0x30f,0x3db)](_0xf52ab2);const _0x17eee9=await _0xf52ab2[_0x5535e0(_0x2f5f0a._0x3c5401,0x59e,_0x2f5f0a._0x18af19,_0x2f5f0a._0x492c6c)]();let _0x4e6a75=0x0;for(const _0x30df7d of _0x17eee9[_0x9529aa(0x32e,_0x2f5f0a._0x2b92bc,_0x2f5f0a._0x17d3d6,0x344)]){const _0x4af65b=_0x3e7145['allowedTools']?.[_0x587eed]?.[_0x30df7d['name']];if(_0x4af65b===![])continue;_0x4e6a75+=0x1,_0xb77445['push'](createMcpTool({'serverName':resolvePrefix(_0x587eed,_0x28aebc),'tool':_0x30df7d,'client':_0xf52ab2}));}_0x5677d0[_0x587eed]={'status':'connected','toolCount':_0x4e6a75};}catch(_0x3e2184){_0x5677d0[_0x587eed]=isUnauthorizedError(_0x3e2184)?{'status':_0x9529aa(_0x2f5f0a._0x3e8e9f,0x3b1,_0x2f5f0a._0x8d3d6b,_0x2f5f0a._0x1821ff),'message':getErrorMessage(_0x3e2184)}:{'status':_0x5535e0(_0x2f5f0a._0x126727,0x519,_0x2f5f0a._0xadf63d,0x62b),'message':getErrorMessage(_0x3e2184)};}}function _0x5535e0(_0x2a7241,_0x59051b,_0x534850,_0x2383f3){return _0x211934(_0x59051b-0x43,_0x59051b-0x1da,_0x2a7241,_0x2383f3-0xe);}function _0x9529aa(_0x2cb9ab,_0x1fe590,_0x5ea884,_0x50e136){return _0x4820c3(_0x2cb9ab-_0x1c1933._0x479073,_0x1fe590-_0x1c1933._0x346b55,_0x5ea884,_0x2cb9ab- -0x460);}return{'tools':_0xb77445,'servers':_0x5677d0,async 'close'(){function _0xa002cf(_0xecd4f5,_0x102844,_0x5f03ea,_0x5ec9ec){return _0x5535e0(_0xecd4f5,_0x102844-0x120,_0x5f03ea-0x24,_0x5ec9ec-_0x2c7172._0x241f50);}function _0x50624d(_0x2e597f,_0x21dee2,_0x5b4e58,_0x5f2e9e){return _0x9529aa(_0x2e597f-0x49f,_0x21dee2-0x11c,_0x21dee2,_0x5f2e9e-_0x552ac0._0xb94ce1);}await Promise[_0xa002cf(_0x15000f._0x4040a7,_0x15000f._0x157a0b,0x623,_0x15000f._0xaa1b49)](_0xe46c47[_0x50624d(_0x15000f._0x3e6af7,_0x15000f._0x1caca3,0x53f,0x6ae)](_0x261388=>_0x261388[_0x50624d(0x6fe,0x719,0x710,0x5f8)]()));}};}function getCommand(_0x3482cb){const _0x3802cc={_0x5cde3f:0x4c1,_0x3c8036:0x3b9,_0x42eb8a:0xa2,_0x538748:0x203},_0x1a8d5d={_0x51c11e:0x8f,_0xfebfcb:0x17c},_0x2813c5={_0x1b2f5f:0x10e,_0x404475:0x146};function _0x31dfd5(_0x567f19,_0x2bd40d,_0x1766f3,_0x3a41e9){return _0x4820c3(_0x567f19-_0x2813c5._0x1b2f5f,_0x2bd40d-_0x2813c5._0x404475,_0x1766f3,_0x567f19- -0x46c);}function _0x1c0653(_0x5d70f8,_0x4d7752,_0x613bed,_0x5bffd8){return _0x211934(_0x613bed- -_0x1a8d5d._0x51c11e,_0x4d7752-_0x1a8d5d._0xfebfcb,_0x4d7752,_0x5bffd8-0x123);}if(_0x3482cb&&typeof _0x3482cb==='object'&&!Array[_0x1c0653(0x39e,_0x3802cc._0x5cde3f,_0x3802cc._0x3c8036,0x489)](_0x3482cb)&&typeof _0x3482cb['command']===_0x31dfd5(0x17f,_0x3802cc._0x42eb8a,_0x3802cc._0x538748,0x16f))return _0x3482cb['command'];return'ls\x20-la';}var MOCK_WORKSPACE_LISTING=[_0x211934(0x500,0x468,0x5fc,0x3c1),_0x4820c3(0x67b,0x6e2,0x786,0x654),_0x211934(0x588,0x554,0x675,0x4f0),_0x211934(0x57a,0x57c,0x5ac,0x49c),_0x211934(0x313,0x281,0x3e5,0x2cc),_0x211934(0x419,0x44b,0x4fc,0x2d2),_0x4820c3(0x5aa,0x4a8,0x58a,0x5d0),'src/agent/extension-registry.ts',_0x4820c3(0x7e9,0x939,0x824,0x7e9),_0x211934(0x430,0x2de,0x43c,0x4e1),'src/formats/provider-adapters.ts',_0x4820c3(0x5cc,0x68b,0x55b,0x609),_0x211934(0x485,0x39e,0x38a,0x344),_0x4820c3(0x878,0x8fe,0x830,0x7be),_0x4820c3(0x880,0x6f3,0x833,0x741),'src/formats/provider-adapters.test.ts',_0x4820c3(0x572,0x4ff,0x5de,0x63b)]['join']('\x0a'),SHELL_EXEC_TOOL={'name':'Bash','description':'Executes\x20a\x20shell\x20command','input_schema':{'type':'object','properties':{'command':{'type':_0x4820c3(0x54d,0x527,0x5e9,0x5eb)}},'required':[_0x4820c3(0x551,0x71a,0x6f7,0x6aa)]}};function createMeta(){return{'transforms':[]};}function createOutputChunk(_0xbb2f64){return{'output':_0xbb2f64,'structured':{'value':_0xbb2f64}};}function createUnknownToolResult(_0x1f382a){const _0x26a71a={_0x2fccb5:0x7d3,_0x1299ce:0x5ed,_0x5eaf08:0x5e1,_0x538ce2:0x693,_0x5ca0f9:0x6c9,_0x19822a:0x63b,_0x2c0006:0x7e6,_0xce0a25:0x74a,_0x198cc4:0x58b},_0x37a026={_0x2285b2:0x10e,_0x5c2dae:0x9e,_0x41dc10:0x141};function _0x59c697(_0x5cf369,_0x17ddd6,_0x41c2ec,_0xaf8b0d){return _0x211934(_0x17ddd6-0xeb,_0x17ddd6-0x2f,_0x5cf369,_0xaf8b0d-0x1c9);}function _0xba0e8b(_0x2e3839,_0x486e8b,_0x257e36,_0x2ae954){return _0x4820c3(_0x2e3839-_0x37a026._0x2285b2,_0x486e8b-_0x37a026._0x5c2dae,_0x2ae954,_0x486e8b- -_0x37a026._0x41dc10);}return{'callId':_0x1f382a['id'],'toolName':_0x1f382a[_0x59c697(0x74a,0x6a1,0x5ee,_0x26a71a._0x2fccb5)],'status':_0xba0e8b(_0x26a71a._0x1299ce,_0x26a71a._0x5eaf08,_0x26a71a._0x538ce2,_0x26a71a._0x5ca0f9),'output':_0x59c697(0x692,_0x26a71a._0x19822a,0x61b,0x732)+_0x1f382a[_0x59c697(_0x26a71a._0x2c0006,0x6a1,_0x26a71a._0xce0a25,_0x26a71a._0x198cc4)],'structured':{'exitCode':0x1},'chunks':[],'meta':createMeta()};}function createSuccessToolResult(_0x52a4a0,_0x4a1eb4){const _0x5a25a6={_0x1a5984:0x6a2},_0x1be5b4={_0x1a8816:0x77,_0x26e5f0:0x9a};function _0x2aacf8(_0x45288f,_0x139311,_0x254de9,_0x597ec5){return _0x211934(_0x597ec5-0x220,_0x139311-_0x1be5b4._0x1a8816,_0x45288f,_0x597ec5-_0x1be5b4._0x26e5f0);}return{'callId':_0x52a4a0['id'],'toolName':_0x52a4a0['name'],'status':'ok','output':MOCK_WORKSPACE_LISTING,'structured':{'command':getCommand(_0x52a4a0[_0x2aacf8(0x7c2,0x7e3,_0x5a25a6._0x1a5984,0x685)]),'exitCode':0x0},'chunks':[_0x4a1eb4],'meta':createMeta()};}function createMockToolRuntime(){const _0x143145={_0x2696dd:0x14,_0x5d5433:0x6f,_0x2dc951:0x3e,_0x2436dd:0xef},_0x1db458={_0xab210e:0x27b},_0x1240f={_0x5c1665:0x75a,_0x51e03f:0x7f7,_0x18d41c:0x18d,_0xde98f7:0x1e6,_0x30477c:0x19f},_0x459cb5={_0x1bbb3b:0x2fb},_0x5e0361=async(_0x1747d3,_0x5d05eb)=>{if(_0x1747d3[_0x2c73a0(_0x1240f._0x5c1665,0x761,_0x1240f._0x51e03f,0x70d)]!==_0xa9b027(_0x1240f._0x18d41c,0xbd,_0x1240f._0xde98f7,_0x1240f._0x30477c))return createUnknownToolResult(_0x1747d3);const _0x2ba301=createOutputChunk(MOCK_WORKSPACE_LISTING);function _0xa9b027(_0x1e7de4,_0x3716fa,_0x37ceaa,_0x42dde3){return _0x4629(_0x3716fa- -0x236,_0x1e7de4);}function _0x2c73a0(_0x2a5de5,_0xebb8e,_0x448108,_0x22e00f){return _0x4629(_0x2a5de5-_0x459cb5._0x1bbb3b,_0x448108);}return createSuccessToolResult(_0x1747d3,_0x2ba301);};return{'listToolSchemas'(){return[SHELL_EXEC_TOOL];},'setTools'(){return void 0x0;},async 'executeCalls'(_0x1bd7a8,_0x316fc7){function _0xd8977e(_0x454313,_0x5554eb,_0x18f5cd,_0x1b435e){return _0x4629(_0x5554eb- -_0x1db458._0xab210e,_0x18f5cd);}function _0x46e0c9(_0xb20a62,_0x4d045d,_0x397fdc,_0x23c581){return _0x4629(_0xb20a62- -0x2f2,_0x4d045d);}return await Promise[_0x46e0c9(_0x143145._0x2696dd,-0x4,-0x149,-_0x143145._0x5d5433)](_0x1bd7a8[_0x46e0c9(-0x123,-0x110,-_0x143145._0x2dc951,-_0x143145._0x2436dd)](async _0x5aecec=>{return await _0x5e0361(_0x5aecec,_0x316fc7);}));},async 'execute'(_0x179736,_0x2d85a0){return await _0x5e0361(_0x179736,_0x2d85a0);}};}var delegatedRunCounter=0x0;function createDelegatedRunId(){return delegatedRunCounter+=0x1,'delegated-run-'+delegatedRunCounter;}async function resolveDelegatedAgentOptions(_0x48b5b3,_0x53dd71){const _0x328d0b={_0x4404d8:0x1a9,_0x797d94:0x12e,_0x3e8b98:0xd0,_0x1e75c1:0x29},_0x1d4f66={_0x35ee49:0x67,_0x22f5c1:0x682};function _0x2725eb(_0x4dedb6,_0x4d4f72,_0x44e3de,_0x115f65){return _0x4820c3(_0x4dedb6-_0x1d4f66._0x35ee49,_0x4d4f72-0xe3,_0x4dedb6,_0x4d4f72- -_0x1d4f66._0x22f5c1);}return typeof _0x48b5b3===_0x2725eb(_0x328d0b._0x4404d8,_0x328d0b._0x797d94,_0x328d0b._0x3e8b98,_0x328d0b._0x1e75c1)?await _0x48b5b3(_0x53dd71):_0x48b5b3;}function getDelegatedAgentDefinition(_0x16fa32,_0x3ca65){return _0x16fa32['agents']?.[_0x3ca65];}function createRunSummary(_0x1af976){const _0x3b60ef={_0xd51283:0x6f6,_0x29a754:0x5dd,_0x3a85b3:0x5c7,_0x22a2bb:0x657,_0x4b9166:0x7c,_0x43041f:0x3b9,_0x56e89b:0x2b6,_0x48f081:0x15d,_0x5836cd:0x142,_0x27a484:0x22d,_0x2d2f59:0x135,_0xc99f87:0x536,_0x24914e:0x592,_0x41259e:0x5ac,_0x17b6dc:0x787,_0x1022ef:0x10f,_0xf550dc:0x11f,_0x58df58:0xd5,_0x496919:0x210,_0x311a26:0x2c8,_0x330030:0xc8},_0x46542d={_0x5bd9b0:0x190,_0x1ab012:0xf7};function _0x5b5bfe(_0x2b6afd,_0x54e0fe,_0xba7bce,_0x1e35a0){return _0x211934(_0x2b6afd- -0x348,_0x54e0fe-0x5c,_0x1e35a0,_0x1e35a0-0x102);}function _0x44cc14(_0x1663cd,_0x2d9a61,_0x4f1fc2,_0x584aea){return _0x4820c3(_0x1663cd-_0x46542d._0x5bd9b0,_0x2d9a61-0xc,_0x4f1fc2,_0x584aea- -_0x46542d._0x1ab012);}return{'runId':_0x1af976['runId'],'agentId':_0x1af976[_0x44cc14(_0x3b60ef._0xd51283,0x4b2,_0x3b60ef._0x29a754,_0x3b60ef._0x3a85b3)],'sessionId':_0x1af976['sessionId'],'status':_0x1af976[_0x44cc14(0x63c,0x6f5,0x79c,_0x3b60ef._0x22a2bb)],'parentSessionId':_0x1af976[_0x5b5bfe(_0x3b60ef._0x4b9166,0x75,0x72,0x5c)],..._0x1af976[_0x5b5bfe(0x261,_0x3b60ef._0x43041f,0x284,0x320)]!==void 0x0?{'originToolCallId':_0x1af976[_0x5b5bfe(0x261,0x299,_0x3b60ef._0x56e89b,_0x3b60ef._0x48f081)]}:{},..._0x1af976[_0x5b5bfe(_0x3b60ef._0x5836cd,0x1a3,0xee,0xba)]!==void 0x0?{'errorMessage':_0x1af976[_0x5b5bfe(0x142,0x1c3,_0x3b60ef._0x27a484,_0x3b60ef._0x2d2f59)]}:{},..._0x1af976[_0x44cc14(_0x3b60ef._0xc99f87,0x69e,_0x3b60ef._0x24914e,_0x3b60ef._0x41259e)]?.[_0x44cc14(0x7a7,0x777,_0x3b60ef._0x17b6dc,0x6ad)]!==void 0x0?{'finalMessageText':getTextFromMessage(_0x1af976[_0x5b5bfe(_0x3b60ef._0x1022ef,_0x3b60ef._0xf550dc,_0x3b60ef._0x58df58,0xab)][_0x5b5bfe(_0x3b60ef._0x496919,0x141,_0x3b60ef._0x311a26,_0x3b60ef._0x330030)])}:{}};}function createRunSummaryOutput(_0x4f3c9b,_0x310dad){const _0x727fa7={_0x2b34cd:0x70,_0x5c9258:0x1d5,_0x4eb3f9:0xe1,_0x172ed3:0x149,_0x46a532:0x194},_0x259ab8={_0x446eb9:0x10b,_0x3d1045:0x17f,_0x7cfa95:0x53c},_0x17c701={_0xf19844:0x1b4},_0x6e2473=createRunSummary(_0x4f3c9b),_0x416476=_0x6e2473[_0x415b61(_0x727fa7._0x2b34cd,0x197,_0x727fa7._0x5c9258,_0x727fa7._0x4eb3f9)];function _0x43398b(_0x40ac87,_0x43f278,_0x57a092,_0x14098a){return _0x211934(_0x40ac87-0x1b1,_0x43f278-0x144,_0x57a092,_0x14098a-_0x17c701._0xf19844);}function _0x415b61(_0x8ab082,_0x6bdcc7,_0x4e8ceb,_0x5033a2){return _0x4820c3(_0x8ab082-_0x259ab8._0x446eb9,_0x6bdcc7-_0x259ab8._0x3d1045,_0x8ab082,_0x5033a2- -_0x259ab8._0x7cfa95);}return createToolOutput(typeof _0x416476===_0x415b61(_0x727fa7._0x172ed3,0x1ed,_0x727fa7._0x46a532,0xaf)&&_0x416476['length']>0x0?_0x416476:_0x310dad,_0x6e2473);}function getRunTerminalErrorMessage(_0x589746){const _0x41a5ee={_0x35aeeb:0x2e6,_0x5f2f2a:0x26b,_0x4e426e:0x2f1,_0x4104df:0x4aa,_0x962cf2:0x101,_0x36f923:0x5,_0x19ae05:0x54,_0x3f861a:0x8b,_0x516e62:0x30e,_0x23dacd:0x265,_0x1c853a:0x1af,_0x1b0065:0x14a,_0x9d8a3a:0x1ff},_0x959a63={_0x2ed592:0x369},_0x898924={_0x552816:0x1ed,_0x46f93b:0x17d,_0x26f15a:0x776},_0x22b5b0=_0x589746?.[_0x10af64(0x3fb,0x4e5,_0x41a5ee._0x35aeeb,0x30b)][_0x10af64(_0x41a5ee._0x5f2f2a,0x299,0x35d,0x13a)]['at'](-0x1);if(_0x22b5b0?.[_0x10af64(0x3e5,0x37d,_0x41a5ee._0x4e426e,_0x41a5ee._0x4104df)]===_0x5d3089(-_0x41a5ee._0x962cf2,-_0x41a5ee._0x36f923,-0x6d,-_0x41a5ee._0x19ae05)&&_0x22b5b0[_0x5d3089(-0x200,-_0x41a5ee._0x3f861a,-_0x41a5ee._0x516e62,-0x1cb)][_0x5d3089(-_0x41a5ee._0x23dacd,-_0x41a5ee._0x1c853a,-0x122,-_0x41a5ee._0x1b0065)]()['length']>0x0)return _0x22b5b0[_0x10af64(0x242,_0x41a5ee._0x9d8a3a,0x24f,0x2c2)];function _0x5d3089(_0xc07248,_0x25c5f7,_0x56cbb0,_0x281178){return _0x4820c3(_0xc07248-_0x898924._0x552816,_0x25c5f7-_0x898924._0x46f93b,_0x25c5f7,_0x281178- -_0x898924._0x26f15a);}function _0x10af64(_0x1ef490,_0xcdbeb3,_0x48feac,_0x5d5967){return _0x4820c3(_0x1ef490-0x78,_0xcdbeb3-0x1b7,_0xcdbeb3,_0x1ef490- -_0x959a63._0x2ed592);}return void 0x0;}function formatAbortedRunMessage(_0x470fc1,_0x5651b1){const _0x41c414={_0x49d2de:0x585,_0x3e78db:0x758,_0x2e59fb:0x753,_0x4449f0:0x44f,_0x2a01d0:0x466,_0x401914:0x3d3,_0xb3117d:0x572},_0x1547e5={_0xcfe2e0:0x1ad,_0x51a4de:0x26,_0x37f1b4:0x10d},_0x29d3c2={_0x43a019:0x1c,_0xe7efcc:0x42};function _0x4016a0(_0x98babf,_0x4d2c08,_0x4f6172,_0x5bedcf){return _0x211934(_0x5bedcf- -_0x29d3c2._0x43a019,_0x4d2c08-0xe2,_0x4d2c08,_0x5bedcf-_0x29d3c2._0xe7efcc);}const _0x50f704=_0x9c88c8(_0x41c414._0x49d2de,0x56f,0x5ed,0x579)+_0x470fc1+_0x9c88c8(_0x41c414._0x3e78db,_0x41c414._0x2e59fb,0x6fe,0x62a);function _0x9c88c8(_0x223594,_0xcc83a,_0x5598f5,_0x50dbb1){return _0x211934(_0xcc83a-_0x1547e5._0xcfe2e0,_0xcc83a-_0x1547e5._0x51a4de,_0x50dbb1,_0x50dbb1-_0x1547e5._0x37f1b4);}if(!_0x5651b1||_0x5651b1[_0x4016a0(_0x41c414._0x4449f0,0x48c,_0x41c414._0x2a01d0,0x3c4)]()[_0x4016a0(0x2da,_0x41c414._0x401914,0x465,0x40d)]===0x0||_0x5651b1===_0x50f704)return _0x50f704;return _0x50f704+_0x9c88c8(0x548,0x5d2,0x5a3,_0x41c414._0xb3117d)+_0x5651b1;}function createAssignTaskTool(_0x17c670){const _0x1b5edc={_0x220556:0x456,_0x3a1390:0x40b,_0x22a3e5:0x476,_0x2dde15:0x2ff,_0x5f24ac:0x47a,_0x34bd6f:0x2bb,_0x11e83d:0x1b6,_0xf1ebd:0x6a,_0x4650fb:0x373,_0x70ddff:0x5a2,_0x112418:0x3d0,_0x21fce5:0x188,_0x59b3ec:0x14d,_0x1b35a1:0xd0},_0x18a7f4={_0x49d569:0x2a5,_0x3290a0:0x1ff,_0x4676e2:0x22,_0x5661a1:0x20,_0x527b2f:0x3ba,_0x1d4651:0x36e,_0x1ad5b6:0x3b6,_0xd1aaec:0x339,_0x56f67e:0x497,_0x36f82a:0x2bb,_0x6d1cb5:0x36e,_0x2c25c0:0x328,_0x1d4318:0x337,_0x43dbde:0x544,_0x4fb680:0x406,_0x1cabee:0x40d,_0x754b9e:0x1b,_0xcb5364:0x12c,_0x1577cc:0xca,_0x375f6e:0x21a,_0x563321:0xcf,_0x3db198:0xf0,_0x2b76ac:0x239,_0x33d864:0x1e7,_0x39d048:0x1c7,_0x2ac85c:0x130,_0x22cd3c:0x1a7,_0x5c922a:0x2db,_0x2b65e3:0x2b7,_0x2a670b:0x3a1,_0x4291a0:0x2da,_0xadfb5c:0x1d0,_0x241b13:0x174,_0x5bd0bf:0x20c,_0x2e6e93:0xfa,_0x3394c3:0x204,_0x37092e:0x177,_0x5b64a6:0x3bb,_0x31138d:0xab,_0x510616:0x4b8,_0x97f88f:0x3fe,_0x51f13d:0x4e9,_0x43a6df:0x97,_0x359311:0x25,_0x10c65e:0x59,_0x467db8:0xa7,_0x3793ef:0x2f8,_0x2aa5e4:0x2b2,_0x55c999:0x10b,_0x584225:0x36c,_0x19e002:0x27f,_0x498056:0x22e,_0x375f44:0x9,_0x47f2fd:0x17a,_0x577b2e:0x159,_0x4bfa0f:0x2f1,_0x464241:0x3a1,_0x42dc98:0x18,_0x55c297:0x2fd,_0x2126be:0x408,_0x483924:0x371,_0x65a609:0x2a2,_0x49cde1:0x175,_0x5d3fbd:0x2a3,_0x2429e3:0x27e,_0x1d9830:0x167,_0x51edb1:0x107,_0x190eab:0x54},_0x33c0da={_0x12e4a9:0x491,_0x1607f5:0x1b};function _0x53a5b3(_0x1447b0,_0x3b5525,_0x923738,_0x1a30f6){return _0x4820c3(_0x1447b0-0x118,_0x3b5525-0x102,_0x1447b0,_0x1a30f6- -0x247);}function _0x2239a9(_0x764a32,_0x3c3dda,_0x3d370f,_0x10b20f){return _0x211934(_0x10b20f- -_0x33c0da._0x12e4a9,_0x3c3dda-_0x33c0da._0x1607f5,_0x3c3dda,_0x10b20f-0x74);}return defineTool({'name':'AssignTask','description':_0x53a5b3(_0x1b5edc._0x220556,_0x1b5edc._0x3a1390,_0x1b5edc._0x22a3e5,0x4a3),'inputSchema':{'type':'object','properties':{'agentId':{'type':'string'},'description':{'type':'string'},'nickname':{'type':_0x53a5b3(_0x1b5edc._0x2dde15,_0x1b5edc._0x5f24ac,_0x1b5edc._0x34bd6f,0x3a4)},'task':{'type':_0x2239a9(-0xe5,-_0x1b5edc._0x11e83d,-_0x1b5edc._0xf1ebd,-0xf2)}},'required':[_0x53a5b3(_0x1b5edc._0x4650fb,_0x1b5edc._0x70ddff,_0x1b5edc._0x112418,0x477),_0x2239a9(_0x1b5edc._0x21fce5,_0x1b5edc._0x59b3ec,-_0x1b5edc._0x1b35a1,0x7e),'task']},async *'execute'(_0xe3dbd2,_0x261f9c){const _0x1bc06c={_0xfd2d94:0x30f,_0x32e12c:0x7c7,_0x3d478f:0x7b8,_0xd60eb6:0x7f5,_0x9a0789:0x515,_0x43c189:0x3d7,_0x1d71fd:0x53d},_0x3017e6={_0x25baeb:0x4cb},_0x2b4499={_0x4d54a1:0x130,_0x3de15d:0x1e7,_0x406bf3:0x1d},_0x42d15e={_0x1f8dec:0xb9,_0x2fccfd:0x108,_0xcbdfe8:0x109},_0x3aa9b0=createDelegatedRunId(),_0x569dc9={'agentId':_0xe3dbd2[_0x55bf28(_0x18a7f4._0x49d569,0x188,0x174,_0x18a7f4._0x3290a0)],'parentSessionId':_0x261f9c['sessionId'],'runId':_0x3aa9b0,..._0x261f9c['toolCallId']!==void 0x0?{'toolCallId':_0x261f9c[_0x55bf28(-0xcb,-_0x18a7f4._0x4676e2,_0x18a7f4._0x5661a1,-0xca)]}:{}};function _0x55bf28(_0x5a3314,_0x430c3d,_0x24c5e0,_0x2dcfe5){return _0x2239a9(_0x5a3314-0x162,_0x430c3d,_0x24c5e0-0x183,_0x24c5e0-0x193);}const _0x5f0dd5=getDelegatedAgentDefinition(_0x17c670,_0xe3dbd2[_0x3879b6(_0x18a7f4._0x527b2f,_0x18a7f4._0x1d4651,_0x18a7f4._0x1ad5b6,_0x18a7f4._0xd1aaec)]);if(!_0x5f0dd5)throw new ToolExecutionError(_0x3879b6(0x529,_0x18a7f4._0x56f67e,0x4cb,0x519)+_0xe3dbd2[_0x3879b6(_0x18a7f4._0x36f82a,_0x18a7f4._0x6d1cb5,_0x18a7f4._0x2c25c0,0x486)],{'agentId':_0xe3dbd2[_0x3879b6(0x3c2,0x36e,0x4a7,_0x18a7f4._0x1d4318)]});function _0x3879b6(_0x171e62,_0x1bf9be,_0x5a49ca,_0x3b5649){return _0x53a5b3(_0x3b5649,_0x1bf9be-_0x42d15e._0x1f8dec,_0x5a49ca-_0x42d15e._0x2fccfd,_0x1bf9be- -_0x42d15e._0xcbdfe8);}const _0x2ed4e6=new Agent(await resolveDelegatedAgentOptions(_0x5f0dd5,_0x569dc9));let _0x27c128={'runId':_0x3aa9b0,'agentId':_0xe3dbd2['agentId'],'sessionId':_0x2ed4e6[_0x3879b6(0x223,0x326,0x439,0x227)],'status':_0x3879b6(_0x18a7f4._0x43dbde,_0x18a7f4._0x4fb680,0x319,_0x18a7f4._0x1cabee),'parentSessionId':_0x261f9c[_0x55bf28(-_0x18a7f4._0x754b9e,0x246,_0x18a7f4._0xcb5364,_0x18a7f4._0x1577cc)],..._0x261f9c[_0x3879b6(0x362,_0x18a7f4._0x375f6e,0xc6,0x134)]!==void 0x0?{'originToolCallId':_0x261f9c[_0x3879b6(0x1bd,_0x18a7f4._0x375f6e,0x361,_0x18a7f4._0x563321)]}:{}};const _0x38fa82=new AbortController(),_0x21c001=addAbortListener(_0x261f9c[_0x55bf28(0x19b,_0x18a7f4._0x3db198,_0x18a7f4._0x2b76ac,0x16f)],()=>{function _0x33eda0(_0x24d0f2,_0x1d98c5,_0x2aeb62,_0x4f2537){return _0x55bf28(_0x24d0f2-_0x2b4499._0x4d54a1,_0x2aeb62,_0x24d0f2-_0x2b4499._0x3de15d,_0x4f2537-_0x2b4499._0x406bf3);}function _0x5c7ffb(_0x48f99d,_0x2af49c,_0x4c0f0f,_0x350964){return _0x55bf28(_0x48f99d-0x162,_0x2af49c,_0x48f99d-_0x3017e6._0x25baeb,_0x350964-0x16);}_0x38fa82[_0x33eda0(0x220,_0x1bc06c._0xfd2d94,0x16f,0x121)](_0x261f9c[_0x5c7ffb(0x704,_0x1bc06c._0x32e12c,_0x1bc06c._0x3d478f,_0x1bc06c._0xd60eb6)]?.[_0x5c7ffb(_0x1bc06c._0x9a0789,_0x1bc06c._0x43c189,0x475,_0x1bc06c._0x1d71fd)]);});yield createToolOutput(_0x3879b6(_0x18a7f4._0x33d864,0x2d9,0x2f9,_0x18a7f4._0x39d048)+_0x27c128[_0x55bf28(0x186,_0x18a7f4._0x2ac85c,_0x18a7f4._0x22cd3c,_0x18a7f4._0x5c922a)]+'.',{'runId':_0x27c128[_0x3879b6(_0x18a7f4._0x2b65e3,_0x18a7f4._0x2a670b,_0x18a7f4._0x4291a0,0x2e3)],'agentId':_0x27c128[_0x55bf28(0x133,_0x18a7f4._0xadfb5c,_0x18a7f4._0x241b13,_0x18a7f4._0x5bd0bf)],'sessionId':_0x27c128['sessionId'],'status':_0x27c128[_0x55bf28(0x19f,_0x18a7f4._0x2e6e93,_0x18a7f4._0x3394c3,0x297)]});try{const _0x2feeed=await _0x2ed4e6[_0x3879b6(0x22a,0x2d5,_0x18a7f4._0x37092e,_0x18a7f4._0x5b64a6)](_0xe3dbd2[_0x55bf28(0x11a,0xa4,_0x18a7f4._0x31138d,0x13a)],{'signal':_0x38fa82['signal']});_0x27c128={..._0x27c128,'status':_0x2feeed[_0x3879b6(_0x18a7f4._0x510616,_0x18a7f4._0x97f88f,0x3e4,0x306)],'result':_0x2feeed};if(_0x2feeed[_0x3879b6(0x31e,0x3fe,_0x18a7f4._0x51f13d,0x426)]!==_0x55bf28(_0x18a7f4._0x43a6df,-0x21,_0x18a7f4._0x359311,-0x4f)){const _0x3d692d=getRunTerminalErrorMessage(_0x2feeed),_0x21a7cb=formatAbortedRunMessage(_0x27c128[_0x55bf28(0x2fb,0x1da,0x1a7,0x2a4)],_0x3d692d);throw new ToolExecutionError(_0x21a7cb,{...createRunSummary(_0x27c128),'aborted':!![],'errorMessage':_0x21a7cb});}return createRunSummaryOutput(_0x27c128,_0x55bf28(0x185,0x87,0xc4,-_0x18a7f4._0x10c65e)+_0x27c128[_0x55bf28(_0x18a7f4._0x467db8,0x2cc,_0x18a7f4._0x22cd3c,_0x18a7f4._0x3793ef)]+'\x20completed.');}catch(_0x21118a){if(_0x21118a instanceof ToolExecutionError)throw _0x21118a;if(isAbortError(_0x21118a)||_0x38fa82[_0x55bf28(0x2a2,_0x18a7f4._0x2aa5e4,0x239,_0x18a7f4._0x55c999)][_0x55bf28(0xfc,0x16a,0x10d,0x1ae)]||_0x261f9c[_0x55bf28(_0x18a7f4._0x584225,_0x18a7f4._0x19e002,0x239,0x181)][_0x55bf28(0x147,_0x18a7f4._0x498056,0x10d,0xfc)]){const _0x4e2125=getRunTerminalErrorMessage(_0x27c128[_0x55bf28(_0x18a7f4._0x375f44,_0x18a7f4._0x47f2fd,_0x18a7f4._0x577b2e,0x60)])??(_0x21118a instanceof Error?_0x21118a['message']:String(_0x21118a)),_0x57e0fd=formatAbortedRunMessage(_0x27c128[_0x3879b6(_0x18a7f4._0x4bfa0f,_0x18a7f4._0x464241,0x2cf,0x273)],_0x4e2125);_0x27c128={..._0x27c128,'status':'aborted','errorMessage':_0x57e0fd};throw new ToolExecutionError(_0x57e0fd,{...createRunSummary(_0x27c128),'aborted':!![],'errorMessage':_0x57e0fd});}const _0x4e9883=getRunTerminalErrorMessage(_0x27c128[_0x55bf28(0xd5,0x6a,_0x18a7f4._0x577b2e,_0x18a7f4._0x42dc98)])??(_0x21118a instanceof Error?_0x21118a[_0x3879b6(0x2b9,0x413,_0x18a7f4._0x55c297,_0x18a7f4._0x2126be)]:String(_0x21118a))??'Agent\x20run\x20'+_0x27c128[_0x3879b6(0x3d2,_0x18a7f4._0x2a670b,_0x18a7f4._0x483924,_0x18a7f4._0x65a609)]+_0x55bf28(_0x18a7f4._0x49cde1,_0x18a7f4._0x5d3fbd,_0x18a7f4._0x2429e3,0x261);_0x27c128={..._0x27c128,'status':_0x55bf28(-0x41,_0x18a7f4._0x1d9830,_0x18a7f4._0x51edb1,-_0x18a7f4._0x190eab),'errorMessage':_0x4e9883};throw new ToolExecutionError(_0x4e9883,{...createRunSummary(_0x27c128),'errorMessage':_0x4e9883});}finally{_0x21c001();}}});}var createDelegateToAgentTool=createAssignTaskTool;function createDelegationTools(_0x28c7be){return[createAssignTaskTool(_0x28c7be)];}import*as _0x3cfe98 from'path';function buildDescription2(_0x4b0edf){const _0x5870a3={_0x405a85:0x2ae,_0x2498a8:0x335,_0x231325:0x7a1,_0x1775bc:0x736,_0x4338e4:0x885,_0x315309:0x38d,_0x3179d8:0x434},_0x42005e={_0x333ad:0x1b9,_0x593dd1:0x2b},_0x134ca3={_0x59f330:0x49,_0x1430fd:0x340};function _0x5015b1(_0x3b376b,_0x41d90a,_0x4b7eac,_0x3dcadc){return _0x4820c3(_0x3b376b-0x1bb,_0x41d90a-_0x134ca3._0x59f330,_0x41d90a,_0x4b7eac- -_0x134ca3._0x1430fd);}if(_0x4b0edf[_0x5015b1(_0x5870a3._0x405a85,0x2a9,_0x5870a3._0x2498a8,0x29e)]===0x0)return'Load\x20a\x20skill\x20by\x20name\x20to\x20get\x20detailed\x20task\x20instructions.\x20No\x20skills\x20are\x20currently\x20available.';function _0x2cf09c(_0x113443,_0x19d107,_0x4ea969,_0x552b47){return _0x211934(_0x19d107-_0x42005e._0x333ad,_0x19d107-_0x42005e._0x593dd1,_0x4ea969,_0x552b47-0xb7);}const _0x2db37a=[_0x2cf09c(0x72d,0x683,0x668,_0x5870a3._0x231325),_0x2cf09c(0x752,_0x5870a3._0x1775bc,0x69d,_0x5870a3._0x4338e4),'Use\x20this\x20when\x20a\x20task\x20matches\x20an\x20available\x20skill\x20description.',_0x5015b1(0x323,0x27b,_0x5870a3._0x315309,_0x5870a3._0x3179d8),..._0x4b0edf['map'](_0x564a58=>'-\x20'+_0x564a58['name']+':\x20'+_0x564a58['description'])];return _0x2db37a['join']('\x0a');}function createLoadSkillTool(_0x59ff45){const _0x5bcf30={_0xac8743:0xd7,_0x2fa40e:0x169,_0x13594c:0x81,_0x2da5f2:0x17,_0x41644d:0x51,_0x4bc643:0x46,_0x309efd:0x2a2,_0x2f95c7:0x18b,_0x2c3458:0x20c},_0x8008de={_0x6877b5:0x4a6,_0x10467b:0x52b,_0x3b9e7b:0x60c,_0x261c11:0x622,_0x430ff8:0x5bc,_0x5d662f:0x412,_0x33786f:0x42c,_0x10cca2:0x57f,_0x359429:0x51a,_0x953daf:0x618,_0xff9e4e:0x315,_0x4d10a9:0x37f,_0x139bb6:0x61a,_0x3003e2:0x4f4,_0x318031:0x5c2,_0x31820d:0x59a,_0x56762e:0x7d6,_0x524ad0:0x6dc,_0x23b820:0x5dc,_0x46c97a:0x4b8,_0x22098e:0x2b3,_0x1e624f:0x38f,_0x20e3da:0x5de,_0x5950cf:0x565,_0x4d8631:0x46a,_0x40cc07:0x316,_0x26a962:0x407,_0x2f00e3:0x706,_0x44dfe2:0x55e,_0x53fcfc:0x520,_0x2666d2:0x567,_0x298be4:0x483},_0x4accc4={_0xa7909a:0x69,_0x120ebe:0x6c7};function _0x2bcc5a(_0x2f95d9,_0x4c7974,_0x394f03,_0x4c41be){return _0x4820c3(_0x2f95d9-_0x4accc4._0xa7909a,_0x4c7974-0x1b,_0x2f95d9,_0x4c7974- -_0x4accc4._0x120ebe);}const _0x28dd23=new Map(_0x59ff45[_0x2bcc5a(-_0x5bcf30._0xac8743,-_0x5bcf30._0x2fa40e,-_0x5bcf30._0x13594c,-0x124)]['map'](_0x3072ae=>[_0x3072ae[_0x2bcc5a(0x155,0x13b,0x1c5,0x153)],_0x3072ae]));function _0x66813e(_0x52f280,_0x309257,_0x452fc5,_0xe33712){return _0x4820c3(_0x52f280-0x91,_0x309257-0x177,_0xe33712,_0x452fc5- -0x702);}const _0x56d6ed=buildDescription2(_0x59ff45[_0x2bcc5a(-_0x5bcf30._0x2da5f2,-_0x5bcf30._0x2fa40e,-_0x5bcf30._0x41644d,-_0x5bcf30._0x4bc643)]);return defineTool({'name':_0x66813e(-0x91,-_0x5bcf30._0x309efd,-_0x5bcf30._0x2f95c7,-_0x5bcf30._0x2c3458),'description':_0x56d6ed,'inputSchema':{'type':'object','properties':{'name':{'type':'string'}},'required':['name']},async *'execute'(_0x1c4f8b){const _0x463ffd={_0x5b6df6:0x4d1,_0xcd4955:0x1ed,_0x1a0579:0xa4},_0x202946={_0x193c52:0x40,_0x57b7c0:0x641},_0x5f0979=_0x28dd23[_0xb74485(_0x8008de._0x6877b5,0x5e4,0x3dc,_0x8008de._0x10467b)](_0x1c4f8b[_0xb74485(0x51b,0x673,0x5e0,_0x8008de._0x3b9e7b)]);if(!_0x5f0979){const _0x3c88ce=Array[_0x7a25ae(_0x8008de._0x261c11,0x461,0x586,_0x8008de._0x430ff8)](_0x28dd23[_0xb74485(0x4dc,_0x8008de._0x5d662f,0x30a,_0x8008de._0x33786f)]())['join'](',\x20');throw new ToolExecutionError('Skill\x20\x27'+_0x1c4f8b[_0x7a25ae(0x7da,0x6ab,0x624,0x741)]+'\x27\x20not\x20found.\x20Available\x20skills:\x20'+_0x3c88ce,{'name':_0x1c4f8b[_0xb74485(_0x8008de._0x10cca2,_0x8008de._0x359429,_0x8008de._0x953daf,_0x8008de._0x3b9e7b)]});}const _0x1278ad=await _0x59ff45['loadSkill'](_0x5f0979);function _0x7a25ae(_0x3720ff,_0x4b4293,_0x8ef175,_0x5e301f){return _0x66813e(_0x3720ff-_0x202946._0x193c52,_0x4b4293-0x3f,_0x5e301f-_0x202946._0x57b7c0,_0x3720ff);}const _0x2c1aad=_0x5f0979[_0xb74485(0x2f8,_0x8008de._0xff9e4e,0x275,_0x8008de._0x4d10a9)][_0xb74485(_0x8008de._0x139bb6,0x53b,0x635,0x5ca)]??_0x3cfe98['dirname'](_0x5f0979['source'][_0x7a25ae(0x6f8,0x477,0x5b8,0x5b8)]),_0x128e30=[_0xb74485(0x496,_0x8008de._0x3003e2,_0x8008de._0x318031,_0x8008de._0x31820d)+_0x1278ad[_0x7a25ae(_0x8008de._0x56762e,_0x8008de._0x524ad0,0x725,0x741)],'',_0x1278ad[_0xb74485(0x64c,0x493,0x6d0,_0x8008de._0x23b820)],'',_0x7a25ae(0x5db,0x544,0x603,_0x8008de._0x46c97a),_0xb74485(0x2b7,_0x8008de._0x22098e,0x3b9,_0x8008de._0x1e624f)+_0x5f0979['source'][_0xb74485(_0x8008de._0x20e3da,_0x8008de._0x5950cf,_0x8008de._0x4d8631,0x483)],'Base\x20directory:\x20'+_0x2c1aad][_0xb74485(0x2ad,_0x8008de._0x40cc07,0x4e3,_0x8008de._0x26a962)]('\x0a');yield createToolOutput(_0x128e30,{'id':_0x1278ad['id'],'name':_0x1278ad[_0xb74485(0x6f7,_0x8008de._0x2f00e3,0x6da,0x60c)],'path':_0x5f0979['source'][_0xb74485(_0x8008de._0x44dfe2,_0x8008de._0x53fcfc,_0x8008de._0x2666d2,_0x8008de._0x298be4)],'baseDirectory':_0x2c1aad});function _0xb74485(_0x3a40b5,_0x2f1df5,_0x3e4b3f,_0x381e51){return _0x2bcc5a(_0x3a40b5,_0x381e51-_0x463ffd._0x5b6df6,_0x3e4b3f-_0x463ffd._0xcd4955,_0x381e51-_0x463ffd._0x1a0579);}return void 0x0;}});}var TODO_STATUSES=new Set([_0x211934(0x336,0x2f6,0x376,0x295),_0x211934(0x319,0x351,0x34b,0x315),_0x4820c3(0x553,0x5aa,0x529,0x56f)]),TODO_PRIORITIES=new Set([_0x4820c3(0x586,0x592,0x4a5,0x58f),_0x211934(0x47f,0x3b1,0x3fc,0x3ea),'low']);function isTodoStatus(_0x5e4723){const _0x2f66cd={_0x5ac29b:0x29a,_0x4105ec:0x23c},_0x7cd27b={_0x48c911:0x26},_0x133d0e={_0x4a9f1f:0x1f9,_0x316dc9:0x170};function _0x265905(_0x1039ae,_0x35dc48,_0x5bb3fa,_0x486bcc){return _0x211934(_0x486bcc- -_0x133d0e._0x4a9f1f,_0x35dc48-_0x133d0e._0x316dc9,_0x35dc48,_0x486bcc-0xfc);}function _0x33af75(_0x572ec9,_0xbb92d8,_0x2c12f1,_0x31b8b6){return _0x4820c3(_0x572ec9-_0x7cd27b._0x48c911,_0xbb92d8-0x19f,_0xbb92d8,_0x572ec9- -0x351);}return typeof _0x5e4723===_0x33af75(_0x2f66cd._0x5ac29b,0x3cc,_0x2f66cd._0x4105ec,0x230)&&TODO_STATUSES[_0x33af75(0x372,0x433,0x34e,0x436)](_0x5e4723);}function isTodoPriority(_0xbca952){const _0x3a2f28={_0x11fcac:0x1bd,_0x50ca0f:0xfa,_0x59ab2e:0x248,_0x261766:0x35},_0x4de907={_0x362814:0x31},_0x2ed3d5={_0xa9e233:0x60,_0x2c0ffc:0x64};function _0x7e4ac3(_0x33d83c,_0x1e37e4,_0x4e1ec4,_0x3b0c4b){return _0x4820c3(_0x33d83c-_0x2ed3d5._0xa9e233,_0x1e37e4-_0x2ed3d5._0x2c0ffc,_0x4e1ec4,_0x3b0c4b- -0x3a3);}function _0x26b428(_0x4d6044,_0x12082d,_0x550db3,_0x52caa5){return _0x211934(_0x52caa5- -0x350,_0x12082d-_0x4de907._0x362814,_0x12082d,_0x52caa5-0x18e);}return typeof _0xbca952===_0x7e4ac3(_0x3a2f28._0x11fcac,_0x3a2f28._0x50ca0f,0x104,_0x3a2f28._0x59ab2e)&&TODO_PRIORITIES[_0x26b428(0x6e,-_0x3a2f28._0x261766,0x1b4,0x127)](_0xbca952);}var TodoStore=class{[_0x4820c3(0x526,0x6e9,0x6f8,0x5cb)]=new Map();['getTodos'](_0xdca371){const _0x365009={_0x42150c:0x3c0,_0x2af619:0x4f3,_0x3852ea:0x45e},_0x47e481={_0x31e84a:0x16,_0x2fccc4:0x1f0,_0x51cc2e:0x22e};function _0x5be389(_0x565ed6,_0xc4e6c4,_0x25b7bd,_0x4e8876){return _0x4820c3(_0x565ed6-_0x47e481._0x31e84a,_0xc4e6c4-_0x47e481._0x2fccc4,_0x565ed6,_0x25b7bd- -_0x47e481._0x51cc2e);}return this['todosBySession'][_0x5be389(_0x365009._0x42150c,0x39b,_0x365009._0x2af619,_0x365009._0x3852ea)](_0xdca371)??[];}[_0x4820c3(0x74b,0x744,0x840,0x700)](_0x13b380,_0x5a9b94){const _0x48f3d0={_0x2acfd1:0x1b9,_0x5062d7:0x7e,_0x190b54:0x209,_0x32c38d:0x2,_0x4e91ce:0x12d},_0x2d7462={_0x2eeff9:0x4a1,_0x3256d6:0xc8},_0x30c1d1={_0x5386fa:0x151,_0x2ca401:0x1d5};function _0x15538e(_0x1cf36c,_0x151e3b,_0x3fbb9c,_0x2252f0){return _0x211934(_0x3fbb9c- -0x3fd,_0x151e3b-_0x30c1d1._0x5386fa,_0x2252f0,_0x2252f0-_0x30c1d1._0x2ca401);}function _0x138719(_0x52ac0a,_0x1bbca8,_0x1edb4e,_0x28a714){return _0x211934(_0x28a714- -_0x2d7462._0x2eeff9,_0x1bbca8-_0x2d7462._0x3256d6,_0x52ac0a,_0x28a714-0x18d);}this[_0x15538e(-0x26,-_0x48f3d0._0x2acfd1,-_0x48f3d0._0x5062d7,-0x13d)][_0x138719(-_0x48f3d0._0x190b54,-0x1d7,-_0x48f3d0._0x32c38d,-_0x48f3d0._0x4e91ce)](_0x13b380,_0x5a9b94);}[_0x211934(0x37e,0x274,0x38f,0x330)](_0xeeee81){const _0x5ac600={_0x401ad6:0x314,_0x106afe:0x394,_0x31eaf0:0x3fb,_0x4c8b53:0x30c,_0x7f7513:0x382,_0x26a672:0x28c,_0x1f0418:0x2a1,_0x4aa71c:0x21,_0x12b6ba:0x4c,_0x385dbd:0xc0,_0x27b54f:0x378,_0x373626:0x2cd,_0x50af9f:0x17,_0x53ad94:0x14e,_0x4caedb:0x31f,_0xedbe39:0x28e},_0x503ef6={_0x3113d0:0xc1},_0x18d643={_0x311a10:0x2e1};function _0xe8da93(_0x2eba6d,_0x382cf8,_0x216f4d,_0x242b13){return _0x4820c3(_0x2eba6d-0xf6,_0x382cf8-0x19,_0x242b13,_0x382cf8- -_0x18d643._0x311a10);}const _0x22ab1f=this['getTodos'](_0xeeee81),_0xcffc72={'total':_0x22ab1f[_0xe8da93(_0x5ac600._0x401ad6,_0x5ac600._0x106afe,_0x5ac600._0x31eaf0,_0x5ac600._0x4c8b53)],'pending':0x0,'inProgress':0x0,'completed':0x0};for(const _0xad7bb5 of _0x22ab1f){if(_0xad7bb5[_0xbd4354(0x37b,0x3e8,_0x5ac600._0x7f7513,_0x5ac600._0x26a672)]===_0xe8da93(0x216,_0x5ac600._0x1f0418,0x32e,0x2cf))_0xcffc72[_0xbd4354(_0x5ac600._0x4aa71c,0x4a,-_0x5ac600._0x12b6ba,_0x5ac600._0x385dbd)]+=0x1;else{if(_0xad7bb5[_0xbd4354(0x321,_0x5ac600._0x27b54f,_0x5ac600._0x373626,_0x5ac600._0x26a672)]==='in_progress')_0xcffc72[_0xbd4354(0x56,-_0x5ac600._0x50af9f,_0x5ac600._0x53ad94,0xe2)]+=0x1;else _0xcffc72[_0xe8da93(_0x5ac600._0x4caedb,_0x5ac600._0xedbe39,0x39b,0x2c2)]+=0x1;}}function _0xbd4354(_0x41b1b0,_0x37d13e,_0x5e85de,_0x3f6f4b){return _0x4820c3(_0x41b1b0-0x1c6,_0x37d13e-_0x503ef6._0x3113d0,_0x37d13e,_0x3f6f4b- -0x4c2);}return _0xcffc72;}};function validateTodos(_0x13d54d){const _0x3f1efa={_0x2846e3:0x4f9,_0x520095:0x4c8,_0x424109:0x49f,_0x212e09:0x613,_0x908c77:0x61f,_0x373893:0x576,_0x1d3a75:0x292,_0x5c0951:0x2d4,_0x362df5:0x428,_0x5631e2:0x4f9,_0x1cb3d5:0x1a8,_0x4ec037:0x1a4,_0x57a099:0x10c,_0x5bdd81:0x388,_0x3f2a9e:0x3eb,_0x5c5b03:0x53e,_0x314d74:0x3df,_0x4bb7cb:0x245,_0x109808:0x258,_0x313439:0x164,_0x5e6a8c:0x213,_0x3e8d90:0x418,_0x280017:0x396,_0x51a438:0x2eb,_0x1352de:0x323,_0x25468d:0x306,_0x419236:0x15f,_0xdbfa8d:0x319,_0x5e9265:0x281,_0x48c6ee:0x45d,_0xbc7ba5:0x339,_0x12150e:0x58a,_0x244877:0x4b1,_0x32a40f:0x4ba,_0x34e48e:0x4f1,_0x150d12:0x476,_0x574524:0x4c3,_0x508650:0x4d0,_0x5d9dc1:0x55c,_0x45be01:0x4e1,_0x30c3bf:0x3b3,_0x40d2ed:0x3a8,_0x4ce3b5:0x254,_0x74e8c0:0x18c,_0x4cf4b5:0x275,_0x33796a:0x24e,_0x45f0ec:0x335,_0x2a5ea9:0xed,_0x4c9fcb:0x25a,_0xbbc8e2:0x2c2,_0xdf5595:0x4f2,_0x59b4d3:0x56b,_0x23cd74:0x57a,_0x4de2d5:0x498,_0x4e3dc4:0x1ce,_0x50db1b:0x42a,_0x232c2b:0x321,_0x398de2:0x4b1,_0x80b4b:0x52f},_0x34e02f={_0x3b07ee:0x1cf},_0x3593ae={_0xa02ea9:0x1de,_0x4ac2f8:0x393};if(!Array[_0x2448d2(0x4c5,0x411,0x466,0x5d6)](_0x13d54d[_0x5e3bfa(0x2da,0x296,0x335,0x44d)])||_0x13d54d[_0x2448d2(_0x3f1efa._0x2846e3,_0x3f1efa._0x520095,_0x3f1efa._0x424109,_0x3f1efa._0x212e09)][_0x5e3bfa(0x395,0x255,0x2e2,0x294)]===0x0)throw new ToolExecutionError(_0x2448d2(_0x3f1efa._0x908c77,0x572,0x66b,_0x3f1efa._0x373893),{'error':_0x5e3bfa(0x29f,_0x3f1efa._0x1d3a75,0x1ea,_0x3f1efa._0x5c0951)});for(let _0x414080=0x0;_0x414080<_0x13d54d[_0x5e3bfa(0x28b,_0x3f1efa._0x362df5,0x335,0x28c)]['length'];_0x414080+=0x1){const _0x4befbc=_0x13d54d[_0x2448d2(_0x3f1efa._0x5631e2,0x63c,0x407,0x5f2)][_0x414080];if(!_0x4befbc||typeof _0x4befbc!=='object')throw new ToolExecutionError(_0x5e3bfa(_0x3f1efa._0x1cb3d5,_0x3f1efa._0x4ec037,0x254,_0x3f1efa._0x57a099)+(_0x414080+0x1)+_0x5e3bfa(0x434,_0x3f1efa._0x5bdd81,_0x3f1efa._0x3f2a9e,_0x3f1efa._0x5c5b03),{'error':_0x2448d2(0x3cf,0x4b5,0x432,_0x3f1efa._0x314d74)});if(typeof _0x4befbc['id']!==_0x5e3bfa(0x331,_0x3f1efa._0x4bb7cb,_0x3f1efa._0x109808,_0x3f1efa._0x313439)||_0x4befbc['id']['trim']()[_0x5e3bfa(0x3e8,0x363,0x2e2,_0x3f1efa._0x5e6a8c)]===0x0)throw new ToolExecutionError(_0x2448d2(_0x3f1efa._0x3e8d90,_0x3f1efa._0x280017,_0x3f1efa._0x51a438,0x466)+(_0x414080+0x1)+_0x5e3bfa(_0x3f1efa._0x1352de,_0x3f1efa._0x25468d,0x458,0x49b),{'error':'invalid_todo_id'});if(typeof _0x4befbc['content']!==_0x5e3bfa(_0x3f1efa._0x419236,_0x3f1efa._0xdbfa8d,0x258,_0x3f1efa._0x5e9265)||_0x4befbc[_0x5e3bfa(0x4d4,0x3de,0x3ee,0x2bd)][_0x2448d2(_0x3f1efa._0x48c6ee,_0x3f1efa._0xbc7ba5,_0x3f1efa._0x12150e,_0x3f1efa._0x244877)]()[_0x2448d2(0x4a6,_0x3f1efa._0x32a40f,_0x3f1efa._0x34e48e,_0x3f1efa._0x150d12)]===0x0)throw new ToolExecutionError('Todo\x20'+(_0x414080+0x1)+':\x20content\x20required',{'error':_0x2448d2(_0x3f1efa._0x574524,_0x3f1efa._0x508650,_0x3f1efa._0x5d9dc1,0x514)});if(!isTodoStatus(_0x4befbc[_0x5e3bfa(0x323,_0x3f1efa._0x45be01,0x3bb,0x3e4)]))throw new ToolExecutionError(_0x2448d2(0x418,0x54d,_0x3f1efa._0x30c3bf,0x4ae)+(_0x414080+0x1)+_0x2448d2(0x49e,0x3e8,0x3ed,0x45d),{'error':_0x5e3bfa(0x205,0x2d9,0x2e7,_0x3f1efa._0x40d2ed)});if(!isTodoPriority(_0x4befbc['priority']))throw new ToolExecutionError(_0x5e3bfa(0xf5,0x2cb,_0x3f1efa._0x4ce3b5,_0x3f1efa._0x74e8c0)+(_0x414080+0x1)+_0x2448d2(0x5a7,0x6a6,0x486,0x4b4),{'error':'invalid_todo_priority'});}const _0x149138=_0x13d54d[_0x5e3bfa(_0x3f1efa._0x4cf4b5,_0x3f1efa._0x33796a,_0x3f1efa._0x45f0ec,0x2bf)][_0x5e3bfa(_0x3f1efa._0x2a5ea9,0x29d,0x1df,_0x3f1efa._0x4c9fcb)](_0x4e9d2a=>_0x4e9d2a['id']);function _0x5e3bfa(_0x426212,_0x642865,_0x4b7fc1,_0x3ea5f5){return _0x4820c3(_0x426212-0x16c,_0x642865-_0x3593ae._0xa02ea9,_0x3ea5f5,_0x4b7fc1- -_0x3593ae._0x4ac2f8);}function _0x2448d2(_0x15663e,_0x35f265,_0xa79061,_0x56924f){return _0x4820c3(_0x15663e-0xe1,_0x35f265-0x5f,_0x56924f,_0x15663e- -_0x34e02f._0x3b07ee);}if(new Set(_0x149138)[_0x5e3bfa(_0x3f1efa._0xbbc8e2,_0x3f1efa._0xdf5595,0x40b,_0x3f1efa._0x59b4d3)]!==_0x149138[_0x2448d2(0x4a6,_0x3f1efa._0x23cd74,0x5f3,_0x3f1efa._0x4de2d5)])throw new ToolExecutionError(_0x5e3bfa(_0x3f1efa._0x4e3dc4,_0x3f1efa._0x50db1b,_0x3f1efa._0x232c2b,_0x3f1efa._0x150d12),{'error':_0x2448d2(_0x3f1efa._0x398de2,_0x3f1efa._0x80b4b,0x4b7,0x3ba)});}function createStatsProgress(_0x595315){const _0x223f17={_0xd759f9:0x77,_0x2b5f42:0x4d,_0x51affc:0xfe,_0x4d5c5c:0xfe,_0x510510:0x113,_0x11dffa:0x8b},_0x34e7ec={_0x241683:0x48a,_0x3d6ba2:0x104},_0x591588={_0xa1278b:0x39,_0x2a8225:0x132};function _0x41ff40(_0x44fe09,_0xdfbc0e,_0x400a8f,_0x35000d){return _0x4820c3(_0x44fe09-_0x591588._0xa1278b,_0xdfbc0e-_0x591588._0x2a8225,_0xdfbc0e,_0x44fe09- -0x682);}function _0x4df258(_0x324c00,_0x48da22,_0x6e0305,_0x37362f){return _0x211934(_0x6e0305- -_0x34e7ec._0x241683,_0x48da22-0x97,_0x48da22,_0x37362f-_0x34e7ec._0x3d6ba2);}return _0x595315[_0x41ff40(_0x223f17._0xd759f9,-_0x223f17._0x2b5f42,_0x223f17._0x51affc,_0x223f17._0x4d5c5c)]>0x0?Math[_0x41ff40(0x188,0x1a5,0x1fb,0x29)](_0x595315[_0x41ff40(-_0x223f17._0x510510,-0x1da,-_0x223f17._0x11dffa,-0x142)]/_0x595315['total']*0x64)+'%':'0%';}function createReminderItems(_0x3602bd){const _0x2bb621={_0x52fb2b:0x0};function _0x5edbb6(_0x26fd70,_0x40382a,_0x5bc110,_0x240c4a){return _0x211934(_0x40382a-0x1a8,_0x40382a-0x79,_0x240c4a,_0x240c4a-_0x2bb621._0x52fb2b);}function _0x8996d1(_0x5695eb,_0x3e0458,_0x494108,_0x4cf016){return _0x211934(_0x5695eb-0x10,_0x3e0458-0x98,_0x494108,_0x4cf016-0x4a);}return _0x3602bd[_0x5edbb6(0x5a7,0x4ce,0x3c5,0x543)](_0x15e4ce=>({'content':_0x15e4ce[_0x8996d1(0x545,0x685,0x59b,0x56e)],'status':_0x15e4ce[_0x5edbb6(0x6ef,0x6aa,0x744,0x644)],'id':_0x15e4ce['id']}));}function createStructuredResult(_0x4cfe26,_0x32fb3b,_0x40e2d4,_0x2ea81f){const _0x318b59={_0x27657a:0x14d,_0x3774d1:0x7,_0x4a54a5:0xa2},_0x29710c={_0x37aa0f:0x5},_0x5ea821={_0x47a85a:0x433,_0x4cdb2e:0xe2};function _0x2afebc(_0x611fdd,_0x5bf045,_0x3468b5,_0x4351c1){return _0x211934(_0x611fdd- -_0x5ea821._0x47a85a,_0x5bf045-_0x5ea821._0x4cdb2e,_0x3468b5,_0x4351c1-0x1c5);}function _0x31d89b(_0x3b65fd,_0x4b6436,_0x2a080e,_0x25a2f7){return _0x211934(_0x25a2f7- -0x3c8,_0x4b6436-0x70,_0x4b6436,_0x25a2f7-_0x29710c._0x37aa0f);}return{'allCompleted':_0x2ea81f,'items':_0x32fb3b[_0x31d89b(-_0x318b59._0x27657a,_0x318b59._0x3774d1,-0x1bf,-_0x318b59._0x4a54a5)](_0xef9baa=>({'id':_0xef9baa['id'],'content':_0xef9baa[_0x2afebc(0x102,0x17a,0x21e,0xa7)],'status':_0xef9baa['status'],'priority':_0xef9baa[_0x31d89b(0x204,0x13a,0x250,0x108)],'createdAt':_0xef9baa[_0x31d89b(0x22a,0x183,0x102,0x16b)]})),'progress':createStatsProgress(_0x40e2d4),'recentChanges':!![],'sessionId':_0x4cfe26,'stats':_0x40e2d4,'todosWritten':_0x32fb3b['length']};}function createOutputText(_0x3927ea,_0x1235bd){const _0x33f46b={_0x13b20e:0x6d6,_0x2d87c8:0x702,_0x37b58f:0x631,_0x456a9c:0x1f4,_0x542718:0x24f,_0x48f05d:0x19d,_0x462f6e:0xca,_0x4c4e78:0xf1,_0x403d3b:0x1a6,_0x33240c:0x1ed,_0x3cf914:0x64,_0x2b3b25:0x590,_0x5ce8ca:0x433},_0x223104={_0x14b92d:0x5ab},_0x99c26={_0x41310d:0x182,_0x3cad07:0x17e},_0xb32015=JSON[_0x5acae0(_0x33f46b._0x13b20e,_0x33f46b._0x2d87c8,0x73a,_0x33f46b._0x37b58f)](createReminderItems(_0x3927ea));if(_0x1235bd)return _0x6c45ff(_0x33f46b._0x456a9c,0x2c0,0x342,_0x33f46b._0x542718)+_0x3927ea[_0x6c45ff(_0x33f46b._0x48f05d,0x139,0xfe,_0x33f46b._0x462f6e)]+_0x6c45ff(_0x33f46b._0x4c4e78,_0x33f46b._0x403d3b,0x120,0x1bd)+_0xb32015+_0x6c45ff(_0x33f46b._0x33240c,0x7,-_0x33f46b._0x3cf914,_0x33f46b._0x4c4e78);function _0x5acae0(_0x7bf1d,_0xe395ec,_0x1f2f9d,_0x3a29bf){return _0x4820c3(_0x7bf1d-_0x99c26._0x41310d,_0xe395ec-0xb1,_0xe395ec,_0x3a29bf- -_0x99c26._0x3cad07);}function _0x6c45ff(_0x442e63,_0xbe3547,_0x488af3,_0x349da0){return _0x4820c3(_0x442e63-0x140,_0xbe3547-0x54,_0xbe3547,_0x349da0- -_0x223104._0x14b92d);}return _0x5acae0(_0x33f46b._0x2b3b25,_0x33f46b._0x5ce8ca,0x53e,0x467)+_0xb32015+'.\x0a</system-reminder>';}function createTodoWriteTool(_0x1eea24=new TodoStore()){const _0x539177={_0x47f80b:0x85,_0x46fcd8:0x22,_0x1073eb:0x1ed,_0x5f3ad1:0x18a,_0x2e1a72:0xbe,_0x5163d9:0xa3,_0x4b4f7a:0x17f,_0x3b5c46:0x1a7,_0x93477:0x10d,_0x50e228:0xcc,_0x3da725:0x16b,_0x37e949:0x9f,_0x5c455d:0x8e,_0x316483:0x5b,_0x56279c:0x3a,_0x528b66:0x8,_0x2184b8:0x22f,_0x4ac480:0x282},_0x3c099c={_0x4e6561:0x441,_0x2e53f2:0x37a,_0x2a6866:0x550,_0xc40e2a:0x5f5,_0x151db6:0x414,_0x3038fb:0x55b,_0x13dc03:0x368,_0x4d647d:0x47d,_0xbe3188:0x427,_0x9f786a:0x2cd,_0x11fcbe:0x424,_0x2db67c:0x4a2},_0x42a3b8={_0x3f3b3e:0x360,_0x54dea7:0x54},_0x138c44={_0x50948e:0x23},_0x23e7bf={_0x48cdf7:0x34,_0x3acfe0:0x1a0,_0x1b521e:0x756};function _0xbf0ac2(_0x3e086a,_0x2428bd,_0x813351,_0x2eee72){return _0x4820c3(_0x3e086a-_0x23e7bf._0x48cdf7,_0x2428bd-_0x23e7bf._0x3acfe0,_0x2428bd,_0x2eee72- -_0x23e7bf._0x1b521e);}function _0x10690f(_0xf55fbc,_0x2ea23b,_0x3b39b5,_0x3bf0bb){return _0x211934(_0xf55fbc- -0x24d,_0x2ea23b-_0x138c44._0x50948e,_0x3b39b5,_0x3bf0bb-0x14b);}return defineTool({'name':_0xbf0ac2(-_0x539177._0x47f80b,0x110,-0x2c,0x86),'description':'Use\x20this\x20tool\x20to\x20create\x20and\x20manage\x20a\x20structured\x20task\x20list\x20for\x20your\x20current\x20coding\x20session.\x20This\x20helps\x20you\x20track\x20progress,\x20organize\x20complex\x20tasks,\x20and\x20demonstrate\x20thoroughness\x20to\x20the\x20user.\x0aIt\x20also\x20helps\x20the\x20user\x20understand\x20the\x20progress\x20of\x20the\x20task\x20and\x20overall\x20progress\x20of\x20their\x20requests.\x0a\x0a##\x20When\x20to\x20Use\x20This\x20Tool\x0aUse\x20this\x20tool\x20proactively\x20in\x20these\x20scenarios:\x0a\x0a1.\x20Complex\x20multi-step\x20tasks\x20-\x20When\x20a\x20task\x20requires\x203\x20or\x20more\x20distinct\x20steps\x20or\x20actions\x0a2.\x20Non-trivial\x20and\x20complex\x20tasks\x20-\x20Tasks\x20that\x20require\x20careful\x20planning\x20or\x20multiple\x20operations\x0a3.\x20User\x20explicitly\x20requests\x20todo\x20list\x20-\x20When\x20the\x20user\x20directly\x20asks\x20you\x20to\x20use\x20the\x20todo\x20list\x0a4.\x20User\x20provides\x20multiple\x20tasks\x20-\x20When\x20users\x20provide\x20a\x20list\x20of\x20things\x20to\x20be\x20done\x20(numbered\x20or\x20comma-separated)\x0a5.\x20After\x20receiving\x20new\x20instructions\x20-\x20Immediately\x20capture\x20user\x20requirements\x20as\x20todos\x0a6.\x20When\x20you\x20start\x20working\x20on\x20a\x20task\x20-\x20Mark\x20it\x20as\x20in_progress\x20BEFORE\x20beginning\x20work.\x20Ideally\x20you\x20should\x20only\x20have\x20one\x20todo\x20as\x20in_progress\x20at\x20a\x20time\x0a7.\x20After\x20completing\x20a\x20task\x20-\x20Mark\x20it\x20as\x20completed\x20and\x20add\x20any\x20new\x20follow-up\x20tasks\x20discovered\x20during\x20implementation\x0a\x0a##\x20When\x20NOT\x20to\x20Use\x20This\x20Tool\x0a\x0aSkip\x20using\x20this\x20tool\x20when:\x0a1.\x20There\x20is\x20only\x20a\x20single,\x20straightforward\x20task\x0a2.\x20The\x20task\x20is\x20trivial\x20and\x20tracking\x20it\x20provides\x20no\x20organizational\x20benefit\x0a3.\x20The\x20task\x20can\x20be\x20completed\x20in\x20less\x20than\x203\x20trivial\x20steps\x0a4.\x20The\x20task\x20is\x20purely\x20conversational\x20or\x20informational\x0a\x0aNOTE\x20that\x20you\x20should\x20not\x20use\x20this\x20tool\x20if\x20there\x20is\x20only\x20one\x20trivial\x20task\x20to\x20do.\x20In\x20this\x20case\x20you\x20are\x20better\x20off\x20just\x20doing\x20the\x20task\x20directly.\x0a\x0a##\x20Task\x20States\x20and\x20Management\x0a\x0a1.\x20**Task\x20States**:\x20Use\x20these\x20states\x20to\x20track\x20progress:\x0a-\x20pending:\x20Task\x20not\x20yet\x20started\x0a-\x20in_progress:\x20Currently\x20working\x20on\x20(limit\x20to\x20ONE\x20task\x20at\x20a\x20time)\x0a-\x20completed:\x20Task\x20finished\x20successfully\x0a\x0a2.\x20**Task\x20Management**:\x0a-\x20Update\x20task\x20status\x20in\x20real-time\x20as\x20you\x20work\x0a-\x20Mark\x20tasks\x20complete\x20IMMEDIATELY\x20after\x20finishing\x20(don\x27t\x20batch\x20completions)\x0a-\x20Only\x20have\x20ONE\x20task\x20in_progress\x20at\x20any\x20time\x0a-\x20Complete\x20current\x20tasks\x20before\x20starting\x20new\x20ones\x0a-\x20Remove\x20tasks\x20that\x20are\x20no\x20longer\x20relevant\x20from\x20the\x20list\x20entirely\x0a\x0a3.\x20**Task\x20Completion\x20Requirements**:\x0a-\x20ONLY\x20mark\x20a\x20task\x20as\x20completed\x20when\x20you\x20have\x20FULLY\x20accomplished\x20it\x0a-\x20If\x20you\x20encounter\x20errors,\x20blockers,\x20or\x20cannot\x20finish,\x20keep\x20the\x20task\x20as\x20in_progress\x0a-\x20When\x20blocked,\x20create\x20a\x20new\x20task\x20describing\x20what\x20needs\x20to\x20be\x20resolved\x0a-\x20Never\x20mark\x20a\x20task\x20as\x20completed\x20if:\x0a-\x20Tests\x20are\x20failing\x0a-\x20Implementation\x20is\x20partial\x0a-\x20You\x20encountered\x20unresolved\x20errors\x0a-\x20You\x20couldn\x27t\x20find\x20necessary\x20files\x20or\x20dependencies\x0a\x0a4.\x20**Task\x20Breakdown**:\x0a-\x20Create\x20specific,\x20actionable\x20items\x0a-\x20Break\x20complex\x20tasks\x20into\x20smaller,\x20manageable\x20steps\x0a-\x20Use\x20clear,\x20descriptive\x20task\x20names\x0a\x0aWhen\x20in\x20doubt,\x20use\x20this\x20tool.\x20Being\x20proactive\x20with\x20task\x20management\x20demonstrates\x20attentiveness\x20and\x20ensures\x20you\x20complete\x20all\x20requirements\x20successfully.','inputSchema':{'type':'object','properties':{'todos':{'type':_0x10690f(0x149,_0x539177._0x46fcd8,_0x539177._0x1073eb,_0x539177._0x5f3ad1),'items':{'type':_0xbf0ac2(-_0x539177._0x2e1a72,-0x195,-_0x539177._0x5163d9,-_0x539177._0x4b4f7a),'properties':{'content':{'type':_0xbf0ac2(-_0x539177._0x3b5c46,-0x27a,-0x251,-0x16b)},'status':{'type':_0xbf0ac2(-0x26b,-_0x539177._0x93477,-_0x539177._0x50e228,-_0x539177._0x3da725)},'priority':{'type':'string'},'id':{'type':_0x10690f(0x152,_0x539177._0x37e949,_0x539177._0x5c455d,_0x539177._0x316483)},'createdAt':{'type':'string'}},'required':[_0xbf0ac2(0x15,-0x35,0x173,0x2b),_0xbf0ac2(_0x539177._0x56279c,-0x99,0x40,-_0x539177._0x528b66),_0x10690f(0x283,0x230,0x124,0x34b),'id']}}},'required':[_0x10690f(_0x539177._0x2184b8,0x10e,_0x539177._0x4ac480,0x1a5)]},async *'execute'(_0xb8157c,_0x19a05f){const _0x4fb86c={_0x1ce5bb:0x175,_0x5a0cdc:0x39,_0x425142:0x508},_0x33deaa=_0xb8157c;validateTodos(_0x33deaa);const _0x332fdc=_0x19a05f['sessionId']||_0x50629a(_0x3c099c._0x4e6561,_0x3c099c._0x2e53f2,_0x3c099c._0x2a6866,0x2f0),_0x17fec8=new Date()[_0x50629a(0x547,0x500,_0x3c099c._0xc40e2a,_0x3c099c._0x151db6)](),_0x449dbf=_0x33deaa[_0x50629a(0x47a,0x466,0x53b,_0x3c099c._0x3038fb)]['map'](_0x5b7d17=>({'id':_0x5b7d17['id'],'content':_0x5b7d17[_0x50629a(0x533,0x430,0x479,0x666)],'status':_0x5b7d17[_0x50629a(0x500,0x612,0x649,0x417)],'priority':_0x5b7d17[_0x4c0386(0x548,0x4de,0x5e3,0x5fe)],'sessionId':_0x332fdc,'createdAt':_0x5b7d17[_0x4c0386(0x72c,0x6b2,0x646,0x4fc)]||_0x17fec8,'updatedAt':_0x17fec8}));_0x1eea24[_0x50629a(0x4b2,0x412,_0x3c099c._0x13dc03,_0x3c099c._0x4d647d)](_0x332fdc,_0x449dbf);const _0x49564b=_0x1eea24['getStats'](_0x332fdc);function _0x50629a(_0x2cf5c5,_0x5d5f5b,_0xbdb81a,_0x253416){return _0xbf0ac2(_0x2cf5c5-_0x4fb86c._0x1ce5bb,_0xbdb81a,_0xbdb81a-_0x4fb86c._0x5a0cdc,_0x2cf5c5-_0x4fb86c._0x425142);}function _0x4c0386(_0x46eb7f,_0x32de6e,_0xf3633a,_0x4ad377){return _0x10690f(_0xf3633a-_0x42a3b8._0x3f3b3e,_0x32de6e-0x166,_0x4ad377,_0x4ad377-_0x42a3b8._0x54dea7);}const _0x3d4233=_0x449dbf[_0x50629a(_0x3c099c._0xbe3188,_0x3c099c._0x9f786a,0x34b,_0x3c099c._0x11fcbe)]>0x0&&_0x449dbf[_0x50629a(_0x3c099c._0x2db67c,0x3b8,0x42e,0x41f)](_0x1d82b6=>_0x1d82b6[_0x4c0386(0x5dc,0x517,0x615,0x522)]===_0x50629a(0x321,0x406,0x402,0x44c));return createToolOutput(createOutputText(_0x449dbf,_0x3d4233),createStructuredResult(_0x332fdc,_0x449dbf,_0x49564b,_0x3d4233));}});}import{mkdir as _0x20469a,writeFile as _0x55e403}from'fs/promises';import*as _0x1630d0 from'path';function sanitizeFileName(_0x327766){const _0x7d5a70={_0x1459d0:0x125,_0xeae8f:0x1c1,_0x1e7965:0x52},_0x9ef13b={_0x20c18b:0x336,_0x5c3170:0x17d};function _0x2c221d(_0x34352c,_0x2cee8c,_0x310b29,_0x1166ba){return _0x211934(_0x1166ba- -_0x9ef13b._0x20c18b,_0x2cee8c-0x192,_0x310b29,_0x1166ba-_0x9ef13b._0x5c3170);}return _0x327766[_0x2c221d(_0x7d5a70._0x1459d0,_0x7d5a70._0xeae8f,-_0x7d5a70._0x1e7965,0xff)](/[^a-zA-Z0-9\-_]/g,'_');}async function truncateToolOutput(_0x45f235,_0x490a03){const _0x57bf96={_0x1699c3:0x1b7,_0x2e3c44:0x164,_0x1bdc94:0x12e,_0x245e7f:0x427,_0x24a4b3:0x4d5,_0x50470c:0x552,_0x2508dc:0x55b,_0x147e91:0x418,_0x47948e:0x12,_0x86da0d:0x131,_0x5d7902:0x38e,_0x43fc69:0x29c,_0x48860c:0x30b,_0xcff438:0x451,_0x27dcb8:0x30f,_0x15cb49:0x9c,_0x24326a:0x1c0,_0x13c7e7:0x36,_0x25f4d6:0x4b3,_0xf0235d:0x4eb,_0x2fe68c:0x3da,_0x4d36f6:0x164,_0x2b7484:0x18f,_0x2b51f8:0x5db,_0x19f67f:0x577,_0x463b97:0x34e,_0x3b0f00:0x3e7,_0x525d2d:0x31b,_0x567c7f:0x3c3,_0x13a8c0:0x218,_0x50fd60:0x1e3,_0x507dbf:0x538,_0x1d643c:0x467,_0x45a85b:0x2d,_0xb78559:0x15e,_0x3ec3ad:0x26d,_0x554cbb:0x590,_0x42af2d:0x6a6,_0x5ad2a7:0x64c,_0x3b1425:0x345,_0x1db93e:0x3a0,_0x550936:0x46e,_0x13d8e2:0x594,_0x48d1cb:0x547,_0x59799c:0x600,_0x33cc68:0x390},_0x48086b={_0x35c71b:0x64},_0x31fe73={_0x11ce44:0x26,_0x27f458:0x447},{maxBytes:_0x517bdc,sessionDir:_0x441168}=_0x490a03;function _0x2496d0(_0x428636,_0x391977,_0x31091f,_0x1ffc2f){return _0x4820c3(_0x428636-0xa4,_0x391977-_0x31fe73._0x11ce44,_0x1ffc2f,_0x391977- -_0x31fe73._0x27f458);}if(!_0x45f235['output']||Buffer['byteLength'](_0x45f235[_0x2496d0(_0x57bf96._0x1699c3,_0x57bf96._0x2e3c44,0x200,_0x57bf96._0x1bdc94)],_0x47e628(0x4d5,0x498,0x433,0x4ce))<=_0x517bdc)return _0x45f235;function _0x47e628(_0xe4cfac,_0x117526,_0x3249bd,_0x4b195f){return _0x211934(_0xe4cfac- -0x11,_0x117526-0x1be,_0x117526,_0x4b195f-_0x48086b._0x35c71b);}const _0x1acaf4=Buffer[_0x47e628(0x471,0x317,_0x57bf96._0x245e7f,0x3e0)](_0x45f235['output'],_0x47e628(_0x57bf96._0x24a4b3,_0x57bf96._0x50470c,_0x57bf96._0x2508dc,0x432));if(!_0x441168){const _0x4fe254=_0x45f235[_0x47e628(0x34e,0x463,_0x57bf96._0x147e91,0x47d)][_0x2496d0(_0x57bf96._0x47948e,_0x57bf96._0x86da0d,0x148,0x244)](0x0,_0x517bdc);return{..._0x45f235,'output':_0x4fe254+(_0x47e628(0x39d,_0x57bf96._0x5d7902,_0x57bf96._0x43fc69,0x459)+_0x517bdc+_0x47e628(_0x57bf96._0x48860c,0x1c3,0x245,0x273)+_0x1acaf4+_0x47e628(_0x57bf96._0xcff438,0x4fe,0x397,_0x57bf96._0x27dcb8)),'meta':{..._0x45f235[_0x2496d0(_0x57bf96._0x15cb49,0x195,0x115,0x91)],'truncated':!![],'originalBytes':_0x1acaf4,'transforms':[..._0x45f235[_0x2496d0(0x1a2,0x195,_0x57bf96._0x24326a,_0x57bf96._0x13c7e7)]['transforms'],_0x2496d0(0x299,0x25e,0x1f9,0x14c)]}};}const _0x58f46c=_0x45f235[_0x47e628(0x3b8,_0x57bf96._0x25f4d6,0x36d,0x4c6)]+'_'+sanitizeFileName(_0x45f235[_0x47e628(0x463,_0x57bf96._0xf0235d,0x46f,0x443)])+'.log',_0x353d90=_0x1630d0[_0x47e628(0x3a0,0x3c1,_0x57bf96._0x2fe68c,0x369)](_0x441168,_0x58f46c);await _0x20469a(_0x441168,{'recursive':!![]}),await _0x55e403(_0x353d90,_0x45f235[_0x2496d0(0x14a,_0x57bf96._0x4d36f6,0x207,_0x57bf96._0x2b7484)],_0x47e628(0x4d5,_0x57bf96._0x2b51f8,_0x57bf96._0x19f67f,0x620));let _0x5e5545=_0x45f235[_0x47e628(_0x57bf96._0x463b97,0x2d2,_0x57bf96._0x3b0f00,0x29b)][_0x47e628(_0x57bf96._0x525d2d,_0x57bf96._0x567c7f,_0x57bf96._0x13a8c0,0x1ec)](0x0,_0x517bdc);const _0x5e9474=_0x5e5545[_0x2496d0(0x1ca,0x1a2,0x21c,_0x57bf96._0x50fd60)]('\x0a');_0x5e9474>_0x517bdc*0.5&&(_0x5e5545=_0x5e5545['slice'](0x0,_0x5e9474));const _0xa96ea0=['','<system-reminder>',_0x47e628(0x55f,0x4c4,_0x57bf96._0x507dbf,_0x57bf96._0x1d643c)+_0x517bdc+_0x2496d0(_0x57bf96._0x45a85b,_0x57bf96._0xb78559,_0x57bf96._0x3ec3ad,0xb2)+_0x1acaf4+_0x47e628(_0x57bf96._0x554cbb,_0x57bf96._0x42af2d,0x607,_0x57bf96._0x5ad2a7),'Full\x20output\x20saved\x20to:\x20'+_0x353d90,_0x47e628(0x306,0x316,0x426,_0x57bf96._0x3b1425),'</system-reminder>'][_0x47e628(_0x57bf96._0x1db93e,_0x57bf96._0x550936,0x26c,0x2e0)]('\x0a');return{..._0x45f235,'output':_0x5e5545+_0xa96ea0,'meta':{..._0x45f235['meta'],'truncated':!![],'originalBytes':_0x1acaf4,'transforms':[..._0x45f235['meta'][_0x47e628(_0x57bf96._0x13d8e2,_0x57bf96._0x48d1cb,_0x57bf96._0x59799c,0x5fb)],_0x47e628(0x448,_0x57bf96._0x33cc68,0x3ae,0x506)]}};}function createUpdateTopicTool(){const _0x561dfa={_0x1caea3:0x61a,_0x786b22:0x5a0,_0x34874c:0x3c8,_0x28f6c9:0x382,_0x3267a6:0x48e},_0x356614={_0x530b1:0x384,_0xaf3add:0x304,_0x20e1a6:0x133,_0x1f356f:0x9c,_0xde19d9:0x2bb,_0x234928:0x3ba,_0x3933d4:0x28b,_0xacb4b5:0x528,_0x83a48e:0x48b},_0x60d14e={_0x43c5fa:0x8c,_0x148345:0x1e4},_0x55c941={_0x120389:0xd4},_0x49ddae={_0x44fab5:0x11d};function _0x17d485(_0x16ef39,_0x5534a8,_0x5f0d02,_0x5df44f){return _0x211934(_0x5df44f-0xce,_0x5534a8-0x3c,_0x16ef39,_0x5df44f-_0x49ddae._0x44fab5);}function _0x5001fd(_0x56c3e8,_0x116a29,_0x4c65c9,_0x5ea5f8){return _0x211934(_0x116a29- -0x4e,_0x116a29-_0x55c941._0x120389,_0x56c3e8,_0x5ea5f8-0x135);}return defineTool({'name':'updateTopic','description':_0x17d485(0x63f,0x52c,_0x561dfa._0x1caea3,_0x561dfa._0x786b22),'inputSchema':{'type':_0x17d485(_0x561dfa._0x34874c,_0x561dfa._0x28f6c9,_0x561dfa._0x3267a6,0x459),'properties':{'topic':{'type':'string'}},'required':['topic']},async *'execute'(_0xfb221b,_0x7ae357){const _0x4b6e8c={_0x572967:0x12d};function _0x204d94(_0x43211e,_0x5a12bd,_0x3e0911,_0x3ae6f0){return _0x5001fd(_0x43211e,_0x3e0911-_0x60d14e._0x43c5fa,_0x3e0911-0x15c,_0x3ae6f0-_0x60d14e._0x148345);}const {topic:_0xccf4cc}=_0xfb221b;if(typeof _0xccf4cc!==_0x204d94(0x34d,_0x356614._0x530b1,0x3dd,_0x356614._0xaf3add)||_0xccf4cc[_0x16d9f7(0x1a8,_0x356614._0x20e1a6,0x1b6,_0x356614._0x1f356f)]()['length']===0x0)throw new ToolExecutionError(_0x16d9f7(_0x356614._0xde19d9,0x2aa,_0x356614._0x234928,_0x356614._0x3933d4),{'error':_0x204d94(0x692,0x6bc,0x5a6,0x622)});const _0x33267e=_0xccf4cc['trim']();_0x7ae357['setTopic']?.(_0x33267e);function _0x16d9f7(_0x356f2a,_0xf530d6,_0xb506a8,_0x8d2d91){return _0x5001fd(_0x8d2d91,_0xf530d6- -0x25f,_0xb506a8-0x15f,_0x8d2d91-_0x4b6e8c._0x572967);}return yield createToolOutput(_0x204d94(_0x356614._0xacb4b5,0x40f,_0x356614._0x83a48e,0x423)+_0x33267e+'\x22',{'topic':_0x33267e}),void 0x0;}});}import{readFile as _0x2ede02,stat as _0x5779c3}from'fs/promises';import*as _0x5273b0 from'path';var DEFAULT_MAX_BYTES=0xa*0x400*0x400,SUPPORTED_DETAILS=new Set([_0x211934(0x4fa,0x469,0x4e4,0x51d),_0x211934(0x343,0x201,0x329,0x3dc),'low',_0x4820c3(0x570,0x6ff,0x767,0x6b5)]),PNG_SIGNATURE=Buffer[_0x211934(0x431,0x3a0,0x398,0x476)]([0x89,0x50,0x4e,0x47,0xd,0xa,0x1a,0xa]);function detectImageMediaType(_0x3fe40f,_0x1ff259){const _0x57b88b={_0x2fc309:0x239,_0x44b1ca:0x366,_0x3b06b7:0x178,_0x5bfb6f:0x261,_0x38113a:0x1e2,_0x26eafe:0x267,_0x4e2bc7:0x11e,_0x259756:0x23c,_0x47c4bb:0x165,_0x1ebb6d:0x288,_0x8ca16e:0x224,_0xbaea54:0x73,_0x131378:0x29d,_0x2642c8:0x19a,_0x29d0af:0x2d5,_0x2c1e20:0x97,_0x4aa68d:0x154,_0x1ed94f:0x191,_0x5218e8:0x152,_0x574e60:0x148,_0xa09115:0x196,_0x3ef422:0x2c6,_0x37740b:0x123,_0x1ba216:0x10,_0x4b784c:0x112,_0x1b77d4:0x151,_0x5c9e69:0x32e,_0x3dedc8:0x2ed,_0x4a1736:0x358,_0x28af0b:0x40d,_0x1d573:0x488,_0x2e3326:0x33f,_0x46db4b:0x204,_0x423494:0x2,_0x29d3cf:0x1a,_0x1d4447:0x30,_0x2eec95:0x63,_0x5b63c8:0x1ac,_0x3d8089:0x127,_0x3a670f:0x29c,_0x47d217:0x15e},_0x3e884d={_0x5610b8:0x551},_0x4fb38a={_0x530918:0x260};if(_0x3fe40f['subarray'](0x0,0x8)[_0x7e4842(_0x57b88b._0x2fc309,0x1a3,_0x57b88b._0x44b1ca,_0x57b88b._0x3b06b7)](PNG_SIGNATURE))return _0x3e3a66(0xb8,0x250,0x1dc,0x2fe);if(_0x3fe40f[0x0]===0xff&&_0x3fe40f[0x1]===0xd8&&_0x3fe40f[0x2]===0xff)return _0x7e4842(_0x57b88b._0x5bfb6f,_0x57b88b._0x38113a,0x2b6,0x2fb);const _0x10ef75=_0x3fe40f[_0x7e4842(_0x57b88b._0x26eafe,0x2d4,_0x57b88b._0x4e2bc7,_0x57b88b._0x259756)](0x0,0x6)[_0x7e4842(0x236,0x396,_0x57b88b._0x47c4bb,0x15c)](_0x7e4842(_0x57b88b._0x1ebb6d,0x33e,_0x57b88b._0x8ca16e,0x2d4));function _0x7e4842(_0x2b857f,_0x573bb2,_0x31475d,_0x2a19df){return _0x211934(_0x2b857f- -_0x4fb38a._0x530918,_0x573bb2-0xd8,_0x573bb2,_0x2a19df-0x163);}if(_0x10ef75===_0x3e3a66(0x230,0x1cb,0x1ee,0x11d)||_0x10ef75===_0x3e3a66(0x15f,_0x57b88b._0xbaea54,0x5e,0xaf))return _0x3e3a66(0x69,_0x57b88b._0x131378,_0x57b88b._0x2642c8,0x117);if(_0x3fe40f['subarray'](0x0,0x4)['toString']('ascii')==='RIFF'&&_0x3fe40f[_0x3e3a66(_0x57b88b._0x29d0af,_0x57b88b._0x2c1e20,0x1c2,0xd4)](0x8,0xc)[_0x3e3a66(0x2c9,_0x57b88b._0x4aa68d,_0x57b88b._0x1ed94f,_0x57b88b._0x5218e8)](_0x7e4842(_0x57b88b._0x1ebb6d,0x31d,_0x57b88b._0x574e60,_0x57b88b._0xa09115))===_0x7e4842(0x1ee,_0x57b88b._0x3ef422,0xff,0x1be))return _0x3e3a66(_0x57b88b._0x37740b,-_0x57b88b._0x1ba216,_0x57b88b._0x4b784c,_0x57b88b._0x1b77d4);const _0x2d63e7=_0x5273b0[_0x7e4842(_0x57b88b._0x5c9e69,_0x57b88b._0x3dedc8,0x2ea,0x428)](_0x1ff259)['toLowerCase']();if(_0x2d63e7===_0x7e4842(_0x57b88b._0x4a1736,_0x57b88b._0x28af0b,0x459,_0x57b88b._0x1d573))return _0x7e4842(0x281,0x322,_0x57b88b._0x2e3326,_0x57b88b._0x46db4b);if(_0x2d63e7===_0x3e3a66(0x16e,_0x57b88b._0x423494,_0x57b88b._0x29d3cf,0x16c)||_0x2d63e7===_0x3e3a66(-0x38,0x16f,_0x57b88b._0x1d4447,0x4a))return _0x3e3a66(_0x57b88b._0x2eec95,0x23a,0x1bc,0x1ac);if(_0x2d63e7===_0x3e3a66(_0x57b88b._0x5b63c8,-0x1f,0x10f,_0x57b88b._0x3d8089))return _0x3e3a66(0x16b,_0x57b88b._0x3a670f,0x19a,0x182);function _0x3e3a66(_0x344c6b,_0x46f2fa,_0x4ac2dd,_0x53c864){return _0x4820c3(_0x344c6b-0xc5,_0x46f2fa-0x184,_0x53c864,_0x4ac2dd- -_0x3e884d._0x5610b8);}if(_0x2d63e7==='.webp')return _0x3e3a66(0x179,-0x29,0x112,_0x57b88b._0x47d217);return void 0x0;}function normalizeDetail(_0x4198bf){const _0x383630={_0x5ca9ff:0x4ad,_0x4c41aa:0x842,_0x575dce:0x718,_0x4d335c:0x76a,_0x5bb47d:0x557,_0x330e91:0x76c,_0x344ecd:0x666,_0x40ef76:0x621,_0x26405e:0x5db,_0x3afc07:0x6f7},_0x46e4b0={_0x2e47ce:0xdd,_0x473fa9:0x144},_0x2d8120={_0x3e0668:0x1e4};if(_0x4198bf===void 0x0)return void 0x0;const _0x1c5413=_0x4198bf[_0x26a201(0x5ee,0x6d5,0x5cf,_0x383630._0x5ca9ff)]()[_0x26a201(_0x383630._0x4c41aa,0x77d,_0x383630._0x575dce,_0x383630._0x4d335c)]();function _0x26a201(_0x1acebf,_0x280cd1,_0x2cc9ae,_0x4289f1){return _0x4820c3(_0x1acebf-0x81,_0x280cd1-_0x2d8120._0x3e0668,_0x280cd1,_0x2cc9ae- -0x5d);}if(!SUPPORTED_DETAILS[_0x26a201(_0x383630._0x5bb47d,_0x383630._0x330e91,_0x383630._0x344ecd,_0x383630._0x40ef76)](_0x1c5413))throw new ToolExecutionError(_0x26a201(0x6db,_0x383630._0x26405e,_0x383630._0x3afc07,0x676)+_0x4198bf,{'detail':_0x4198bf});function _0x37d177(_0x545968,_0x412fa3,_0x2dfd49,_0x3f9ad5){return _0x4820c3(_0x545968-_0x46e4b0._0x2e47ce,_0x412fa3-0xba,_0x412fa3,_0x2dfd49- -_0x46e4b0._0x473fa9);}return _0x1c5413;}function createViewFileTool(_0x28f6c1={}){const _0x3a3412={_0x5a67ed:0x182,_0x31a417:0x106,_0x242241:0x154,_0x21ab1d:0x11f,_0x38215f:0xbb,_0x409d5a:0x27,_0x574ae4:0x173,_0x2deb18:0x38,_0x483f2c:0xc,_0x14dca5:0x369,_0x1a2bb8:0x3b8,_0x57aa3d:0x3f0,_0x261e44:0x185,_0x3bdf51:0x10c,_0x972967:0x136,_0x171e97:0xf9,_0x2ad01c:0x1b,_0x51f4f6:0x66,_0x4f27b8:0x15c,_0x39d5f3:0xee,_0x269809:0x10a,_0x9e26ce:0x83,_0x457d3f:0x113},_0x292118={_0x51d9cd:0x259,_0x402200:0x38e,_0x404245:0x369,_0xa730a:0x45a,_0x14f05b:0x304,_0x502b63:0x349,_0x4537ef:0x32a,_0x3aaf62:0x303,_0xc1fb7e:0x2d3,_0xbe6b0f:0x20c,_0x4698ab:0x1f6,_0x48916f:0x33f,_0x30631c:0x48f,_0x4b8c56:0x54f,_0x5fd355:0x597,_0x3e37b8:0x4af,_0x3921df:0x3c3,_0x2d7d75:0x429,_0x574dd6:0x351,_0x91ce71:0x458,_0x4edd8b:0x124,_0x3ea793:0x247,_0x2dc128:0x100,_0x14f4ba:0x2ca,_0x288e90:0x355,_0x3632ac:0x4b5,_0x2e7a7c:0x49b,_0xa56937:0x44a,_0x4c56c4:0x35a,_0x3a3b99:0x4e7,_0x28ac1f:0x4f7,_0x3c99f0:0x2f9,_0x5a3d2f:0x4d3,_0x4a4c1d:0x302,_0x13c053:0x408,_0x3d1e38:0x3e4,_0x2a2255:0x53b,_0x1ad529:0x56c,_0x522344:0x693,_0x3fe9ef:0x502,_0x81ee7a:0x578,_0x2a3d6d:0x464,_0x175af5:0x50b,_0x46f2ef:0x64c,_0x4d6c2c:0x3d0,_0x89592b:0x431,_0x48a002:0x50b},_0x4dd083={_0x1f4e93:0x5f2},_0x47d909={_0x414b3f:0x1ed,_0x4d95dd:0x115,_0x180526:0x566},_0x36cd59=_0x5273b0[_0x4515f6(_0x3a3412._0x5a67ed,_0x3a3412._0x31a417,0x43,_0x3a3412._0x242241)](_0x28f6c1[_0x11b903(_0x3a3412._0x21ab1d,-_0x3a3412._0x38215f,_0x3a3412._0x409d5a,_0x3a3412._0x574ae4)]??process['cwd']()),_0x50ace=(_0x28f6c1['allowedDirs']??[])[_0x4515f6(0x136,-_0x3a3412._0x2deb18,0xa6,_0x3a3412._0x483f2c)](_0x1ab7b5=>_0x5273b0[_0x11b903(0xa1,0x1cf,0xc8,0x213)](_0x1ab7b5)),_0x1f3e72=_0x28f6c1['maxBytes']??DEFAULT_MAX_BYTES,_0x310f3f=_0x28f6c1[_0x4515f6(_0x3a3412._0x14dca5,_0x3a3412._0x1a2bb8,_0x3a3412._0x57aa3d,0x29c)]??_0x4515f6(0xd,_0x3a3412._0x261e44,0x8e,_0x3a3412._0x3bdf51);function _0x4515f6(_0xbc1179,_0x4255bc,_0x1e7188,_0x137350){return _0x4820c3(_0xbc1179-_0x47d909._0x414b3f,_0x4255bc-_0x47d909._0x4d95dd,_0x1e7188,_0x137350- -_0x47d909._0x180526);}function _0x11b903(_0x44bb2f,_0x5e0121,_0x47ed1a,_0x11f76e){return _0x4820c3(_0x44bb2f-0x13b,_0x5e0121-0x13,_0x11f76e,_0x47ed1a- -_0x4dd083._0x1f4e93);}return defineTool({'name':_0x310f3f,'description':_0x4515f6(0x119,_0x3a3412._0x972967,_0x3a3412._0x171e97,0x12f),'inputSchema':{'type':_0x11b903(0x26,0x11b,-_0x3a3412._0x2ad01c,-_0x3a3412._0x51f4f6),'properties':{'path':{'type':'string'},'detail':{'type':_0x11b903(-_0x3a3412._0x4f27b8,_0x3a3412._0x39d5f3,-0x7,-0x123)}},'required':[_0x4515f6(0x191,_0x3a3412._0x269809,_0x3a3412._0x9e26ce,_0x3a3412._0x457d3f)]},async *'execute'(_0x4cdfa1){const _0x8c9143={_0x5293ba:0x155,_0x74ae66:0x1cb,_0x4a7cc0:0x1f1},_0x33a237={_0x3adf83:0xc5,_0x55894d:0x35},_0x43c258=resolveAllowedPath(_0x36cd59,_0x50ace,_0x4cdfa1['path']);await assertWorkspaceFile(_0x43c258);const _0x1d3ac4=await _0x5779c3(_0x43c258);if(_0x1d3ac4['size']>_0x1f3e72)throw new ToolExecutionError(_0x1227ad(_0x292118._0x51d9cd,_0x292118._0x402200,0x46b,0x32b)+_0x4cdfa1[_0x257ec0(_0x292118._0x404245,_0x292118._0xa730a,_0x292118._0x14f05b,0x27f)],{'path':_0x4cdfa1['path'],'maxBytes':_0x1f3e72,'size':_0x1d3ac4['size']});function _0x1227ad(_0x57e2de,_0x1a98b9,_0x590473,_0x30dda0){return _0x11b903(_0x57e2de-_0x33a237._0x3adf83,_0x1a98b9-_0x33a237._0x55894d,_0x1a98b9-0x35f,_0x57e2de);}const _0x2257ff=await _0x2ede02(_0x43c258),_0x4d017b=detectImageMediaType(_0x2257ff,_0x43c258);if(!_0x4d017b)throw new ToolExecutionError('Unsupported\x20image\x20file:\x20'+_0x4cdfa1['path'],{'path':_0x4cdfa1['path'],'supported':[_0x1227ad(_0x292118._0x502b63,0x3cd,0x502,_0x292118._0x4537ef),_0x257ec0(_0x292118._0x3aaf62,_0x292118._0xc1fb7e,_0x292118._0xbe6b0f,0x2c2),_0x257ec0(0xe0,0xad,_0x292118._0x4698ab,_0x292118._0x48916f),_0x257ec0(0x503,0x5b2,_0x292118._0x30631c,0x4ca),_0x1227ad(0x475,_0x292118._0x4b8c56,0x466,_0x292118._0x5fd355)]});const _0x3ac947=normalizeDetail(_0x4cdfa1['detail']),_0x1bb1ca=[_0x1227ad(0x3ed,0x364,0x25d,0x3f9)+_0x4cdfa1[_0x1227ad(_0x292118._0x3e37b8,0x3e6,0x50d,_0x292118._0x3921df)],'MIME:\x20'+_0x4d017b,'Size:\x20'+_0x1d3ac4[_0x257ec0(0x2d7,0x579,_0x292118._0x2d7d75,0x47f)]+_0x1227ad(0x2a7,_0x292118._0x574dd6,_0x292118._0x91ce71,0x28c)][_0x257ec0(0x2b6,_0x292118._0x4edd8b,_0x292118._0x3ea793,_0x292118._0x2dc128)](_0x3ac947?[_0x257ec0(0x389,0x19f,0x2b5,0x1d0)+_0x3ac947]:[])[_0x257ec0(_0x292118._0x14f4ba,_0x292118._0x288e90,0x288,0x19f)]('\x0a');function _0x257ec0(_0x5c36e4,_0x1f79a7,_0x2823f0,_0x8c00a1){return _0x4515f6(_0x5c36e4-_0x8c9143._0x5293ba,_0x1f79a7-_0x8c9143._0x74ae66,_0x5c36e4,_0x2823f0-_0x8c9143._0x4a7cc0);}const _0x57d8eb=[{'type':_0x1227ad(0x5b0,_0x292118._0x3632ac,_0x292118._0x2e7a7c,_0x292118._0xa56937),'source':{'type':_0x257ec0(_0x292118._0x4c56c4,0x3be,0x3aa,_0x292118._0x3a3b99),'media_type':_0x4d017b,'data':_0x2257ff['toString'](_0x1227ad(0x417,0x48c,0x536,_0x292118._0x28ac1f))}},{'type':_0x1227ad(_0x292118._0x3c99f0,0x3c8,_0x292118._0x5a3d2f,_0x292118._0x4a4c1d),'text':_0x1bb1ca}];return yield createToolOutput(_0x1bb1ca,{'path':_0x4cdfa1[_0x1227ad(_0x292118._0x13c053,0x3e6,_0x292118._0x3d1e38,_0x292118._0x2a2255)],'resolvedPath':_0x43c258,'created':_0x1d3ac4[_0x1227ad(0x523,_0x292118._0x1ad529,_0x292118._0x522344,0x466)][_0x1227ad(0x5e6,0x502,0x5b7,0x52c)](),'modified':_0x1d3ac4['mtime'][_0x1227ad(0x3f3,_0x292118._0x3fe9ef,_0x292118._0x81ee7a,0x4f1)](),'size':_0x1d3ac4[_0x1227ad(_0x292118._0x2a3d6d,_0x292118._0x175af5,_0x292118._0x46f2ef,_0x292118._0x4d6c2c)],'mimeType':_0x4d017b,'encoding':_0x1227ad(_0x292118._0x89592b,0x48c,0x5d7,_0x292118._0x48a002),..._0x3ac947?{'detail':_0x3ac947}:{}},_0x57d8eb),void 0x0;}});}import _0x22c2a2 from'turndown';import{isIP}from'net';var DEFAULT_MAX_REDIRECTS=0x8,REDIRECT_STATUSES=new Set([0x12d,0x12e,0x12f,0x133,0x134]),defaultLookup=async _0x106a95=>{const _0x2400b3={_0x2c39a0:0x5f8,_0x1bbf22:0x6c1,_0x17d037:0x47b},_0x2ae993={_0x4761b0:0x183,_0x17ffac:0x3b},{lookup:_0x1b0ddf}=await import(_0x180809(0x5d8,_0x2400b3._0x2c39a0,_0x2400b3._0x1bbf22,_0x2400b3._0x17d037));function _0x180809(_0x44c46d,_0x2bfc1c,_0x29964,_0xd1fe6d){return _0x211934(_0x44c46d-_0x2ae993._0x4761b0,_0x2bfc1c-_0x2ae993._0x17ffac,_0x2bfc1c,_0xd1fe6d-0x16);}return _0x1b0ddf(_0x106a95,{'all':!![],'verbatim':!![]});};function ipv4ToInt(_0x3617b8){const _0x63a3b2={_0x2a100d:0x185,_0xd23a67:0x134,_0x25487f:0x3cd,_0x25ff17:0x9a,_0x5d2e94:0xe},_0x313b9b={_0x5e3f88:0xc3},_0xcbc2df={_0x4ab61b:0x71c};function _0x207f62(_0x2f7095,_0x42d217,_0x504ef2,_0x2a7816){return _0x4820c3(_0x2f7095-0x15a,_0x42d217-0x15d,_0x42d217,_0x504ef2- -_0xcbc2df._0x4ab61b);}const _0x4c50ee=_0x3617b8[_0x207f62(0x1a,-_0x63a3b2._0x2a100d,-_0x63a3b2._0xd23a67,-0x55)]('.');if(_0x4c50ee[_0x479af8(_0x63a3b2._0x25487f,0x2b7,0x3a0,0x3ef)]!==0x4)return null;let _0x19f2cf=0x0;function _0x479af8(_0x3b3d64,_0x3715e1,_0xc764b6,_0xd8eaed){return _0x4820c3(_0x3b3d64-0xc3,_0x3715e1-_0x313b9b._0x5e3f88,_0xc764b6,_0xd8eaed- -0x286);}for(const _0x877657 of _0x4c50ee){if(!/^\d{1,3}$/[_0x207f62(-0x1f,_0x63a3b2._0x25ff17,-_0x63a3b2._0x5d2e94,-0x115)](_0x877657))return null;const _0xd2ba22=Number(_0x877657);if(_0xd2ba22>0xff)return null;_0x19f2cf=_0x19f2cf*0x100+_0xd2ba22;}return _0x19f2cf>>>0x0;}function isBlockedIpv4(_0x37d632){const _0x9b6343={_0x43f9aa:0x85b,_0x40d1b8:0x707,_0x3d4ad0:0x6e0,_0x41ad67:0x553,_0xcf2cdd:0x497,_0x368a3e:0xdd,_0x44813e:0x88,_0x4c496a:0x38b,_0x4d246e:0x1a3,_0x4a5dfa:0x2d0,_0x4705cf:0x2b3,_0x13ac9b:0x45b,_0x5d7e2f:0x666,_0x20783d:0x524,_0x59864a:0x123,_0x37a195:0x1ea},_0x379fd2={_0xa91fb8:0x219,_0xb8ed8a:0x1c2},_0x1f80c0={_0x4efb15:0x123},_0x574cee=ipv4ToInt(_0x37d632);if(_0x574cee===null)return!![];function _0x475e8d(_0x2d6644,_0x5421ca,_0x21fbf8,_0x56ed26){return _0x4820c3(_0x2d6644-_0x1f80c0._0x4efb15,_0x5421ca-0x1b8,_0x21fbf8,_0x56ed26- -0x439);}function _0x5c8eba(_0x596ee1,_0x335693,_0x2c14f7,_0x194e2b){return _0x211934(_0x194e2b-_0x379fd2._0xa91fb8,_0x335693-0xd2,_0x2c14f7,_0x194e2b-_0x379fd2._0xb8ed8a);}const _0x1cb992=(_0x40e38e,_0x25b521)=>{const _0x56cdb1=ipv4ToInt(_0x40e38e);if(_0x56cdb1===null)return![];const _0x4b2788=_0x25b521===0x0?0x0:0xffffffff<<0x20-_0x25b521>>>0x0;return(_0x574cee&_0x4b2788)===(_0x56cdb1&_0x4b2788);};return _0x1cb992('0.0.0.0',0x8)||_0x1cb992('10.0.0.0',0x8)||_0x1cb992(_0x5c8eba(0x710,_0x9b6343._0x43f9aa,_0x9b6343._0x40d1b8,0x7ad),0xa)||_0x1cb992(_0x5c8eba(_0x9b6343._0x3d4ad0,_0x9b6343._0x41ad67,_0x9b6343._0xcf2cdd,0x5f4),0x8)||_0x1cb992(_0x475e8d(_0x9b6343._0x368a3e,0x106,_0x9b6343._0x44813e,0x1b4),0x10)||_0x1cb992(_0x475e8d(0x25c,0x23f,0x1ee,0x277),0xc)||_0x1cb992(_0x475e8d(0x2ab,_0x9b6343._0x4c496a,0x256,0x2c9),0x18)||_0x1cb992(_0x475e8d(_0x9b6343._0x4d246e,_0x9b6343._0x4a5dfa,0x413,_0x9b6343._0x4705cf),0x10)||_0x1cb992(_0x5c8eba(0x450,_0x9b6343._0x13ac9b,_0x9b6343._0x5d7e2f,_0x9b6343._0x20783d),0xf)||_0x1cb992(_0x475e8d(0x196,0x1b7,_0x9b6343._0x59864a,_0x9b6343._0x37a195),0x4)||_0x1cb992('240.0.0.0',0x4);}function expandIpv6(_0x300f6e){const _0x23b6a2={_0x4e09dc:0x310,_0x1ba6d0:0x5a5,_0x3d495d:0x501,_0xc24ec9:0x6e0,_0x2d236c:0x789,_0x3df337:0x48c,_0x33a74d:0x590,_0x5136bc:0x70d,_0x495f29:0x599,_0x5623ce:0x682,_0x233e25:0x698,_0x5e79ff:0x649,_0x4a20cc:0x583,_0x15d55f:0x4a5},_0x345a99={_0x3bf15e:0x4a,_0x59cbb7:0x1d0};let _0x2cb8e5=_0x300f6e,_0x79ea69;const _0xc6fc7a=_0x2cb8e5[_0x56bda9(0x4cc,0x419,_0x23b6a2._0x4e09dc,0x2fd)](':');_0x2cb8e5[_0x48a189(0x585,_0x23b6a2._0x1ba6d0,0x59c,_0x23b6a2._0x3d495d)](_0xc6fc7a+0x1)[_0x48a189(_0x23b6a2._0xc24ec9,0x6a5,_0x23b6a2._0x2d236c,0x661)]('.')&&(_0x79ea69=_0x2cb8e5['slice'](_0xc6fc7a+0x1),_0x2cb8e5=_0x2cb8e5[_0x48a189(0x585,_0x23b6a2._0x3df337,_0x23b6a2._0x33a74d,0x636)](0x0,_0xc6fc7a+0x1));const _0x54a006=_0x2cb8e5[_0x48a189(0x5f5,0x4c4,0x69a,_0x23b6a2._0x5136bc)]('::');if(_0x54a006['length']>0x2)return null;const _0x1e493e=_0x1e01f2=>_0x1e01f2['split'](':')[_0x56bda9(0x49e,0x5bc,0x5ba,0x45f)](_0x233ae2=>_0x233ae2[_0x56bda9(0x4b4,0x4a5,0x4ea,0x364)]>0x0)[_0x48a189(0x57f,0x5d2,0x585,0x465)](_0x11aa9d=>Number['parseInt'](_0x11aa9d,0x10));function _0x56bda9(_0x4e8567,_0x1d83d5,_0x287728,_0x2ce166){return _0x4820c3(_0x4e8567-0x1ef,_0x1d83d5-_0x345a99._0x3bf15e,_0x2ce166,_0x1d83d5- -_0x345a99._0x59cbb7);}const _0x1cdbf8=_0x54a006[0x0]?_0x1e493e(_0x54a006[0x0]):[],_0x3bb009=_0x54a006[_0x56bda9(_0x23b6a2._0x495f29,0x4a5,0x3f3,0x461)]===0x2&&_0x54a006[0x1]?_0x1e493e(_0x54a006[0x1]):[],_0x4560ac=[];if(_0x79ea69){const _0xb7c1eb=ipv4ToInt(_0x79ea69);if(_0xb7c1eb===null)return null;_0x4560ac['push'](_0xb7c1eb>>>0x10&0xffff,_0xb7c1eb&0xffff);}const _0x10fd8f=[..._0x3bb009,..._0x4560ac],_0x170652=0x8-_0x1cdbf8['length']-_0x10fd8f[_0x48a189(_0x23b6a2._0x5623ce,0x72f,_0x23b6a2._0x233e25,0x677)];if(_0x54a006['length']===0x1)return _0x1cdbf8[_0x48a189(_0x23b6a2._0x5623ce,0x587,_0x23b6a2._0x5e79ff,_0x23b6a2._0x4a20cc)]+_0x10fd8f[_0x56bda9(0x3e5,_0x23b6a2._0x15d55f,0x552,0x428)]===0x8?[..._0x1cdbf8,..._0x10fd8f]:null;if(_0x170652<0x0)return null;function _0x48a189(_0xc86c66,_0x3c1aae,_0x14743d,_0x19f5a2){return _0x211934(_0xc86c66-0x259,_0x3c1aae-0x105,_0x14743d,_0x19f5a2-0xb1);}return[..._0x1cdbf8,...new Array(_0x170652)['fill'](0x0),..._0x10fd8f];}function isBlockedIpv6(_0xc9f6a0){const _0x3f3be2={_0x2934ab:0x165,_0x36adc7:0x8a,_0x21d380:0x1c6,_0x4550df:0x1fe,_0x5428c5:0x1eb,_0x9217df:0x402,_0x7aa28:0x371},_0x427188={_0x2941dd:0x40},_0x232130={_0x22e9e4:0x27},_0x13833f=expandIpv6(_0xc9f6a0);if(!_0x13833f||_0x13833f[_0x3ce231(_0x3f3be2._0x2934ab,0x2aa,0x1bd,0x11b)](_0x2053f9=>Number[_0x3ce231(0x21a,0x88,0x164,0x132)](_0x2053f9)))return!![];function _0x3ce231(_0x259f7b,_0x27f9ab,_0x1e8cef,_0x56ac57){return _0x211934(_0x1e8cef- -0x2a6,_0x27f9ab-_0x232130._0x22e9e4,_0x27f9ab,_0x56ac57-0x89);}const _0x1f4e5d=_0x13833f['slice'](0x0,0x7)['every'](_0x198f65=>_0x198f65===0x0);if(_0x1f4e5d&&(_0x13833f[0x7]===0x0||_0x13833f[0x7]===0x1))return!![];if(_0x13833f[_0x3ce231(_0x3f3be2._0x36adc7,_0x3f3be2._0x21d380,0x86,-0xa)](0x0,0x5)[_0x3ce231(0x34b,0x354,_0x3f3be2._0x4550df,_0x3f3be2._0x5428c5)](_0xf15d6a=>_0xf15d6a===0x0)&&(_0x13833f[0x5]===0xffff||_0x13833f[0x5]===0x0)){const _0x5f3c3c=(_0x13833f[0x6]<<0x10|_0x13833f[0x7])>>>0x0,_0x2c9ac9=[_0x5f3c3c>>>0x18&0xff,_0x5f3c3c>>>0x10&0xff,_0x5f3c3c>>>0x8&0xff,_0x5f3c3c&0xff][_0x294aff(_0x3f3be2._0x9217df,_0x3f3be2._0x7aa28,0x303,0x2a2)]('.');return isBlockedIpv4(_0x2c9ac9);}function _0x294aff(_0xee9f25,_0x1bd7e5,_0x5d8312,_0x3bfef2){return _0x211934(_0x1bd7e5- -_0x427188._0x2941dd,_0x1bd7e5-0x11f,_0xee9f25,_0x3bfef2-0xf7);}const _0x3a3efe=_0x13833f[0x0];if((_0x3a3efe&0xff00)===0xfc00||(_0x3a3efe&0xfe00)===0xfc00)return!![];if((_0x3a3efe&0xffc0)===0xfe80)return!![];if((_0x3a3efe&0xff00)===0xff00)return!![];return![];}function isBlockedAddress(_0x4195d8){const _0x4eb8c0=isIP(_0x4195d8);if(_0x4eb8c0===0x4)return isBlockedIpv4(_0x4195d8);if(_0x4eb8c0===0x6)return isBlockedIpv6(_0x4195d8);return!![];}async function assertPublicUrl(_0x1bc84a,_0x39c0e1={}){const _0x445dbb={_0x40cb1a:0x30f,_0x2920ad:0x2d2,_0x4683e1:0x2f2,_0x1c9874:0x72,_0x5735f0:0x15f,_0x2ee3b8:0x55e,_0x23ba02:0x4ec,_0x220c92:0x410,_0x39abb2:0x53c,_0x327612:0x5,_0x123474:0x69,_0x3bb0d4:0x10e,_0x5cb2fb:0x39a,_0x3c4995:0x35a,_0x29f725:0x199,_0x1157a2:0xee,_0xcead05:0x369,_0x5e33ea:0x4ec,_0x3b979a:0x2fa,_0x341643:0x3fa,_0x797b4e:0x344,_0x333e24:0x316,_0x1ee086:0x242,_0x170252:0x4e6,_0x401c4d:0x543,_0x5888ee:0x1d7,_0x39b113:0x16e,_0x5cb9c2:0xa7,_0x1be11c:0x480,_0x105460:0x284,_0x43d467:0x3c9,_0x4af5f9:0x40d,_0x2f7ed1:0xe,_0x54e3a4:0x1aa,_0x21234d:0x1cc,_0x493fce:0x1c7},_0x565ccc={_0x8ebe10:0x2e5,_0x1094fd:0x2b,_0x502cd8:0x1f},_0x5cd0c9={_0x57ddf0:0x166};function _0x2d8696(_0x24f155,_0x415106,_0x38426b,_0x2e0ec9){return _0x211934(_0x38426b- -0x3b,_0x415106-_0x5cd0c9._0x57ddf0,_0x2e0ec9,_0x2e0ec9-0xf8);}let _0x6bdc38;function _0x1cc4b0(_0x113fd0,_0x5579c8,_0x53d7fd,_0x59e431){return _0x211934(_0x53d7fd- -_0x565ccc._0x8ebe10,_0x5579c8-_0x565ccc._0x1094fd,_0x113fd0,_0x59e431-_0x565ccc._0x502cd8);}try{_0x6bdc38=new URL(_0x1bc84a);}catch{throw new ToolExecutionError(_0x1cc4b0(_0x445dbb._0x40cb1a,0x279,_0x445dbb._0x2920ad,_0x445dbb._0x4683e1),{'url':_0x1bc84a});}if(_0x6bdc38[_0x2d8696(0x5e8,0x398,0x4ec,0x4c5)]!==_0x1cc4b0(_0x445dbb._0x1c9874,-0x65,0x81,_0x445dbb._0x5735f0)&&_0x6bdc38[_0x2d8696(_0x445dbb._0x2ee3b8,0x3c4,_0x445dbb._0x23ba02,0x4ae)]!=='https:')throw new ToolExecutionError('Only\x20http://\x20and\x20https://\x20URLs\x20are\x20supported',{'url':_0x1bc84a});if(_0x6bdc38[_0x2d8696(0x40b,_0x445dbb._0x220c92,0x4d2,_0x445dbb._0x39abb2)]||_0x6bdc38[_0x1cc4b0(0x159,-0x10,0x100,_0x445dbb._0x327612)])throw new ToolExecutionError(_0x1cc4b0(0xc2,0x1be,0xef,-_0x445dbb._0x123474),{'url':_0x6bdc38[_0x1cc4b0(_0x445dbb._0x3bb0d4,0x25e,0x242,_0x445dbb._0x5cb2fb)]+'//'+_0x6bdc38[_0x1cc4b0(0x2da,0x145,0x299,_0x445dbb._0x3c4995)]+_0x6bdc38[_0x1cc4b0(0x270,_0x445dbb._0x29f725,0x1aa,_0x445dbb._0x1157a2)]});const _0x520766=_0x6bdc38[_0x2d8696(0x5b5,0x401,0x4c9,_0x445dbb._0xcead05)][_0x2d8696(_0x445dbb._0x5e33ea,_0x445dbb._0x3b979a,_0x445dbb._0x341643,0x52b)](/^\[|\]$/g,''),_0x5ccbde=_0x6bdc38[_0x1cc4b0(_0x445dbb._0x797b4e,_0x445dbb._0x333e24,_0x445dbb._0x1ee086,0x13b)]+'//'+_0x6bdc38[_0x2d8696(_0x445dbb._0x170252,0x5bb,_0x445dbb._0x401c4d,0x451)]+_0x6bdc38[_0x1cc4b0(_0x445dbb._0x5888ee,_0x445dbb._0x39b113,0x1aa,_0x445dbb._0x5cb9c2)];if(isIP(_0x520766)){if(isBlockedAddress(_0x520766))throw new ToolExecutionError(_0x2d8696(_0x445dbb._0x1be11c,_0x445dbb._0x105460,_0x445dbb._0x43d467,_0x445dbb._0x4af5f9),{'url':_0x5ccbde});return _0x6bdc38;}const _0x286a92=_0x39c0e1['lookup']??defaultLookup;let _0x3533a6;try{_0x3533a6=await _0x286a92(_0x520766);}catch{throw new ToolExecutionError('Could\x20not\x20resolve\x20host',{'url':_0x5ccbde});}if(_0x3533a6[_0x1cc4b0(0x190,-_0x445dbb._0x2f7ed1,0x144,_0x445dbb._0x54e3a4)]===0x0)throw new ToolExecutionError(_0x1cc4b0(0x2d3,_0x445dbb._0x21234d,_0x445dbb._0x493fce,0x1c5),{'url':_0x5ccbde});for(const {address:_0x2cce7c}of _0x3533a6){if(isBlockedAddress(_0x2cce7c))throw new ToolExecutionError(_0x2d8696(0x450,0x575,0x430,0x51d),{'url':_0x5ccbde});}return _0x6bdc38;}async function safeFetch(_0x17d2c9,_0x8974a3={},_0x1e4b37={}){const _0x2beffb={_0x2481d8:0x4d4,_0x220210:0x421,_0x40586e:0x31f,_0x28e59e:0x302,_0x595826:0x3ad,_0x431296:0x46f,_0x15e3bb:0x53f,_0x39b5ee:0x360,_0x39033f:0x2df,_0xc983b2:0x48f,_0xc292ce:0x2ba,_0x5c6b01:0x3b1,_0x1dc9f7:0x31d,_0x191e6f:0x402,_0x557bb7:0x406,_0x521df2:0x28d,_0x2af2c6:0x3ee,_0x10df7a:0x55e,_0x5448a5:0x3aa,_0x28d28e:0x4e7,_0x51f8ef:0x45c,_0x38f86a:0x362,_0x2ffe97:0x34c,_0xcb89f5:0x3d4,_0x152aed:0x44e,_0x50add3:0x3ef,_0x272311:0x32a},_0x4dfa47={_0x249532:0xeb,_0x2f25b:0xa4,_0xa53c5b:0x30e},_0x395c5b={_0x4cde92:0x161};function _0x204145(_0xa55f9a,_0x40dda8,_0x40b5c7,_0x5a9000){return _0x211934(_0xa55f9a- -0x10,_0x40dda8-_0x395c5b._0x4cde92,_0x40dda8,_0x5a9000-0x164);}function _0x8af8b5(_0x37883f,_0x58b3fe,_0x5c3f2a,_0x121e49){return _0x4820c3(_0x37883f-_0x4dfa47._0x249532,_0x58b3fe-_0x4dfa47._0x2f25b,_0x37883f,_0x5c3f2a- -_0x4dfa47._0xa53c5b);}const _0x358553=_0x1e4b37[_0x8af8b5(_0x2beffb._0x2481d8,_0x2beffb._0x220210,0x3f5,0x3a6)]??fetch,_0x37ab9c=_0x1e4b37[_0x8af8b5(0x51d,0x568,0x478,_0x2beffb._0x40586e)]??DEFAULT_MAX_REDIRECTS;let _0x56f382=_0x17d2c9;for(let _0x55d973=0x0;;_0x55d973+=0x1){const _0x2ea092=await assertPublicUrl(_0x56f382,_0x1e4b37),_0x50dc60=await _0x358553(_0x2ea092['toString'](),{..._0x8974a3,'redirect':_0x8af8b5(_0x2beffb._0x28e59e,0x2a0,_0x2beffb._0x595826,_0x2beffb._0x431296)}),_0x2d8fff=_0x50dc60[_0x8af8b5(_0x2beffb._0x15e3bb,_0x2beffb._0x39b5ee,0x409,_0x2beffb._0x39033f)][_0x8af8b5(0x349,_0x2beffb._0xc983b2,0x413,_0x2beffb._0xc292ce)](_0x204145(_0x2beffb._0x5c6b01,0x318,_0x2beffb._0x1dc9f7,_0x2beffb._0x191e6f));if(!REDIRECT_STATUSES[_0x8af8b5(_0x2beffb._0x557bb7,_0x2beffb._0x521df2,0x3b5,_0x2beffb._0x2af2c6)](_0x50dc60[_0x204145(0x4f2,_0x2beffb._0x10df7a,_0x2beffb._0x5448a5,_0x2beffb._0x28d28e)])||!_0x2d8fff)return _0x50dc60;if(_0x55d973>=_0x37ab9c)throw new ToolExecutionError(_0x8af8b5(_0x2beffb._0x51f8ef,_0x2beffb._0x38f86a,0x3d3,_0x2beffb._0x2ffe97),{'url':_0x2ea092[_0x8af8b5(0x3ed,0x28c,_0x2beffb._0xcb89f5,_0x2beffb._0x152aed)]()});_0x56f382=new URL(_0x2d8fff,_0x2ea092)[_0x8af8b5(0x281,_0x2beffb._0x50add3,0x3d4,_0x2beffb._0x272311)]();}}var USER_AGENT='Mozilla/5.0\x20(Macintosh;\x20Intel\x20Mac\x20OS\x20X\x2010_15_7)\x20AppleWebKit/537.36\x20NuvinBot/1.0',DEFAULT_TIMEOUT_MS2=0xea60;function createTimeoutSignal(_0x48b6f1,_0x47c6ce){const _0x3e0d2f={_0x2fd4c9:0x3ca,_0x21ded5:0x499,_0x7a9d8f:0x2dc,_0xe688c1:0xb9,_0x1713c0:0x1e7,_0x472850:0x106},_0x40a740={_0x4eddd1:0x205,_0x3ca505:0x2cf,_0x231036:0x22a,_0x5eee05:0x350,_0x124b6b:0x129,_0x1271b6:0x1e6},_0x3a9545={_0xd1d701:0x2e,_0x117b04:0x1c3},_0x282d71={_0x38549e:0x99,_0x4d2b82:0x1},_0x13eb75={_0x218ecf:0x41,_0x5a2634:0x1c8},_0x2e1739={_0x1bb1f5:0x1bc},_0x3a2d72=new AbortController();function _0x47f06b(_0x1eda9a,_0x14440d,_0x3328c8,_0x4d6698){return _0x211934(_0x1eda9a- -0x27e,_0x14440d-_0x2e1739._0x1bb1f5,_0x14440d,_0x4d6698-0x1c0);}const _0x1d2a23=setTimeout(()=>_0x3a2d72[_0x47f06b(0xb9,0xd,-0x24,-0x4)](new Error(_0x47f06b(0x2a2,0x2e5,0x3bf,0x29b))),_0x47c6ce),_0x292724=()=>_0x3a2d72[_0x50033a(0x2f6,0x3bc,0x1f1,0x374)](_0x48b6f1[_0x50033a(0x307,0x283,0x36b,0x3a3)]);_0x48b6f1[_0x50033a(_0x3e0d2f._0x2fd4c9,0x3e1,_0x3e0d2f._0x21ded5,_0x3e0d2f._0x7a9d8f)]?_0x3a2d72[_0x47f06b(_0x3e0d2f._0xe688c1,_0x3e0d2f._0x1713c0,_0x3e0d2f._0x472850,0x1c)](_0x48b6f1[_0x47f06b(0xca,0x133,0x1d5,0xf0)]):_0x48b6f1['addEventListener'](_0x50033a(0x2f6,0x3b2,0x339,0x266),_0x292724,{'once':!![]});function _0x50033a(_0x36d5b9,_0x13e6a4,_0x195144,_0x5d2650){return _0x211934(_0x36d5b9- -_0x13eb75._0x218ecf,_0x13e6a4-0x23,_0x13e6a4,_0x5d2650-_0x13eb75._0x5a2634);}return{'signal':_0x3a2d72['signal'],'cleanup':()=>{function _0x2b391d(_0x2a51a5,_0x342477,_0xff2364,_0x334d10){return _0x47f06b(_0xff2364-0xf8,_0x342477,_0xff2364-_0x282d71._0x38549e,_0x334d10-_0x282d71._0x4d2b82);}clearTimeout(_0x1d2a23);function _0x3d63f9(_0x4f0cf7,_0x389a2e,_0x2396a1,_0x1c5981){return _0x47f06b(_0x4f0cf7-_0x3a9545._0xd1d701,_0x1c5981,_0x2396a1-_0x3a9545._0x117b04,_0x1c5981-0xdc);}_0x48b6f1[_0x2b391d(_0x40a740._0x4eddd1,_0x40a740._0x3ca505,_0x40a740._0x231036,_0x40a740._0x5eee05)](_0x2b391d(0x2ed,_0x40a740._0x124b6b,0x1b1,_0x40a740._0x1271b6),_0x292724);}};}function createWebFetchTool(_0x395269={}){const _0x43ac5f={_0x1cc2ab:0x6bc,_0x2ccb41:0x49b,_0x2cfde2:0x35d,_0x36528e:0x591,_0xbf169a:0x33f,_0x4dfa5a:0x172,_0x1d1753:0x1f2,_0x30fd91:0x7f,_0x302fd6:0xbf,_0x1b1207:0x5fa,_0x509ee1:0x102,_0x204661:0x2,_0x4b4531:0x412,_0xc632fd:0x3ca,_0x1330fb:0x41,_0x37a513:0xa6,_0x285412:0x299,_0x21f2bd:0x14a,_0x5f5979:0xd0,_0x37dd43:0x19c,_0x3c2cf1:0x177,_0x8965bc:0x501,_0x4a884b:0x5b8,_0x560d00:0x683,_0x2f70a6:0x46b,_0x1ba39c:0x3d4,_0x11eb63:0xb8,_0x1c2c92:0x491,_0x46c37f:0x4cf,_0x27f279:0x3da,_0x45b8c8:0x4a5,_0x2ed3cb:0x388,_0x3cdfc3:0x5d9,_0x1312d8:0x4e9,_0x5dfa1c:0x621},_0x335c31={_0x3b1967:0x285,_0x2db71e:0x30,_0x30c188:0x52,_0x470319:0x140,_0x1199a9:0x3d1,_0x369cf8:0x34e,_0x4396d9:0x30e,_0x304c02:0xb9,_0x10e71a:0x99,_0x126b59:0x42b,_0x2e2350:0x57a,_0x6a8169:0x396,_0xccc8d5:0x13,_0x200422:0x9c,_0x3135b8:0xf0,_0x34056d:0x19c,_0x3c99f6:0x491,_0x24246d:0x374,_0x2831a9:0x420,_0x392b76:0x5fa,_0x28401a:0x461,_0x34668a:0x157,_0x4583dd:0x21,_0x21ce02:0x30,_0x58d482:0x119,_0x124543:0x1d,_0x2d18a1:0x4ec,_0x2b317b:0x64b,_0x9d20e1:0x51e,_0x47fe3a:0x4ba,_0x3f267c:0x145,_0x592dbd:0x270,_0x27f646:0xa3,_0x494083:0x29,_0x393b4e:0x148,_0x755b08:0x6,_0x40aa85:0xed,_0x1dafaa:0x3d5,_0x595b38:0x36c,_0x33351e:0x3a8,_0x3b5c67:0x3b,_0x3c071b:0x81,_0x57a2eb:0x11e},_0x4ce080={_0x25bfbd:0x1a1,_0x42ab82:0x3de},_0x5c3c96={_0x337b92:0x56c,_0x552e0c:0x116},_0x1e82c0={_0x21929a:0x74,_0x553855:0x1cd,_0x4712a8:0x146},_0x37dc3d={_0x2dfc2e:0x8b,_0xf1bb58:0x77};function _0x1a1b9a(_0x356cbe,_0xab13d,_0x52ce48,_0x17060a){return _0x4820c3(_0x356cbe-_0x37dc3d._0x2dfc2e,_0xab13d-_0x37dc3d._0xf1bb58,_0xab13d,_0x52ce48- -0x664);}const _0x36d4a0=_0x395269[_0x3ee25e(_0x43ac5f._0x1cc2ab,0x71a,0x58d,0x80a)]??'WebFetch',_0x5edbfe=_0x395269[_0x3ee25e(_0x43ac5f._0x2ccb41,_0x43ac5f._0x2cfde2,_0x43ac5f._0x36528e,_0x43ac5f._0xbf169a)]??DEFAULT_TIMEOUT_MS2,_0x47fc1c=_0x395269['lookup'],_0x4a372d=new _0x22c2a2({'headingStyle':_0x1a1b9a(_0x43ac5f._0x4dfa5a,_0x43ac5f._0x1d1753,0x179,_0x43ac5f._0x30fd91),'codeBlockStyle':_0x1a1b9a(0x8f,0x4,-0xba,-_0x43ac5f._0x302fd6),'bulletListMarker':'-'});function _0x3ee25e(_0x1eb253,_0x5c051f,_0x4e6b1d,_0x2955ac){return _0x4820c3(_0x1eb253-_0x1e82c0._0x21929a,_0x5c051f-_0x1e82c0._0x553855,_0x5c051f,_0x1eb253- -_0x1e82c0._0x4712a8);}return _0x4a372d[_0x3ee25e(0x5d5,_0x43ac5f._0x1b1207,0x6ef,0x688)]([_0x1a1b9a(_0x43ac5f._0x509ee1,-_0x43ac5f._0x204661,0x114,0x1c0),_0x3ee25e(_0x43ac5f._0x4b4531,0x453,_0x43ac5f._0xc632fd,0x54f),_0x1a1b9a(_0x43ac5f._0x1330fb,0x4e,_0x43ac5f._0x37a513,0xab),_0x1a1b9a(0x3c,_0x43ac5f._0x285412,_0x43ac5f._0x21f2bd,_0x43ac5f._0x5f5979),_0x1a1b9a(_0x43ac5f._0x37dd43,0x16c,_0x43ac5f._0x3c2cf1,0x25d),_0x3ee25e(_0x43ac5f._0x8965bc,0x43c,0x4e3,_0x43ac5f._0x4a884b),_0x3ee25e(0x541,_0x43ac5f._0x560d00,0x61f,0x660),_0x3ee25e(_0x43ac5f._0x2f70a6,0x4d5,0x508,_0x43ac5f._0x1ba39c)]),defineTool({'name':_0x36d4a0,'description':_0x1a1b9a(-0x6b,-0x4c,-0x4c,_0x43ac5f._0x11eb63),'inputSchema':{'type':_0x3ee25e(_0x43ac5f._0x1c2c92,0x3b4,_0x43ac5f._0x46c37f,_0x43ac5f._0x27f279),'properties':{'description':{'type':'string'},'url':{'type':_0x3ee25e(_0x43ac5f._0x45b8c8,_0x43ac5f._0x2ed3cb,_0x43ac5f._0x3cdfc3,0x5c2)}},'required':[_0x3ee25e(_0x43ac5f._0x1312d8,0x4d1,0x5b7,_0x43ac5f._0x5dfa1c)]},async *'execute'(_0x44dc55,_0x36b687){const _0x4a96e3=(await assertPublicUrl(_0x44dc55[_0x111886(0x3a9,0x34e,_0x335c31._0x3b1967,0x418)],{'lookup':_0x47fc1c}))[_0x1bdf69(_0x335c31._0x2db71e,_0x335c31._0x30c188,_0x335c31._0x470319,-0x9c)]();if(_0x36b687['signal'][_0x111886(_0x335c31._0x1199a9,_0x335c31._0x369cf8,0x4a1,_0x335c31._0x4396d9)])throw new ToolExecutionError('Fetch\x20aborted\x20by\x20user',{'url':_0x4a96e3});const _0x3a7d86=createTimeoutSignal(_0x36b687[_0x1bdf69(0xd1,_0x335c31._0x304c02,0x1b5,_0x335c31._0x10e71a)],_0x5edbfe);let _0x5126a2='',_0x54138c=0x0,_0x449033;function _0x1bdf69(_0x490456,_0x18c9bd,_0x2b3217,_0x440c6c){return _0x3ee25e(_0x490456- -_0x5c3c96._0x337b92,_0x2b3217,_0x2b3217-0xf8,_0x440c6c-_0x5c3c96._0x552e0c);}try{const _0x395b7d=await safeFetch(_0x4a96e3,{'headers':{'User-Agent':USER_AGENT},'signal':_0x3a7d86[_0x111886(0x4fd,0x5e7,0x4b6,_0x335c31._0x126b59)]},{'lookup':_0x47fc1c});if(!_0x395b7d['ok'])throw new ToolExecutionError(_0x111886(0x4e8,_0x335c31._0x2e2350,_0x335c31._0x6a8169,0x3cb)+_0x395b7d[_0x1bdf69(0x9c,_0x335c31._0xccc8d5,0x107,0x60)]+'\x20'+_0x395b7d['statusText'],{'url':_0x4a96e3,'statusCode':_0x395b7d[_0x1bdf69(_0x335c31._0x200422,_0x335c31._0x3135b8,0x5f,_0x335c31._0x34056d)]});_0x5126a2=_0x395b7d[_0x111886(_0x335c31._0x3c99f6,0x3b9,0x445,_0x335c31._0x24246d)][_0x111886(0x49b,_0x335c31._0x2831a9,_0x335c31._0x392b76,_0x335c31._0x28401a)](_0x1bdf69(_0x335c31._0x34668a,0x189,0xfb,0x83))??'',_0x54138c=_0x395b7d['status'],_0x449033=await _0x395b7d[_0x1bdf69(-0x57,-0x8d,0x47,-0x15d)]();}catch(_0x5af190){if(_0x5af190 instanceof ToolExecutionError)throw _0x5af190;const _0x3e5a73=_0x5af190 instanceof Error?_0x5af190['message']:String(_0x5af190);throw new ToolExecutionError(_0x3e5a73,{'url':_0x4a96e3});}finally{_0x3a7d86['cleanup']();}const _0x2afe64=new Date()['toISOString']();let _0x4d85c2,_0x5c4f51;function _0x111886(_0x31fe69,_0x1e9426,_0x2123b8,_0x7a7626){return _0x1a1b9a(_0x31fe69-_0x4ce080._0x25bfbd,_0x7a7626,_0x31fe69-_0x4ce080._0x42ab82,_0x7a7626-0x7c);}if(_0x5126a2[_0x1bdf69(_0x335c31._0x4583dd,_0x335c31._0x21ce02,-_0x335c31._0x58d482,_0x335c31._0x124543)](_0x111886(_0x335c31._0x2d18a1,0x4ac,0x475,_0x335c31._0x2b317b)))_0x4d85c2=_0x111886(0x46c,0x47a,_0x335c31._0x9d20e1,_0x335c31._0x47fe3a)+_0x449033+_0x1bdf69(_0x335c31._0x3f267c,0xff,_0x335c31._0x592dbd,0x20f),_0x5c4f51=_0x1bdf69(-0xb0,-0x183,-_0x335c31._0x27f646,0x66);else _0x5126a2[_0x1bdf69(_0x335c31._0x4583dd,-_0x335c31._0x494083,_0x335c31._0x393b4e,_0x335c31._0x755b08)]('text/html')?(_0x4d85c2=_0x4a372d['turndown'](_0x449033),_0x5c4f51=_0x1bdf69(0xf8,0x106,-0x17,_0x335c31._0x40aa85)):(_0x4d85c2=_0x449033,_0x5c4f51=_0x111886(_0x335c31._0x1dafaa,0x3f6,_0x335c31._0x595b38,_0x335c31._0x33351e));return yield createToolOutput(_0x4d85c2,{'url':_0x4a96e3,'contentType':_0x5126a2,'statusCode':_0x54138c,'format':_0x5c4f51,'size':_0x449033[_0x1bdf69(-0x3d,-_0x335c31._0x3b5c67,-_0x335c31._0x3c071b,-_0x335c31._0x57a2eb)],'fetchedAt':_0x2afe64}),void 0x0;}});}import{load}from'cheerio';var USER_AGENT2=_0x4820c3(0x56f,0x75e,0x7a4,0x693);function normalizeUrl(_0x3d4656){const _0x2b4efa={_0x1ca75e:0x7a2,_0x317edd:0x64f,_0x4e2493:0x872,_0x3c7e83:0x714,_0x22ce8f:0xa4,_0x36fb65:0x62,_0x5adde5:0x191,_0xdfde3a:0x6c1,_0x561d11:0x1b6,_0x428bc6:0x5d,_0x4099a2:0xb7,_0x5637b0:0xbf,_0x70c3c:0x160,_0x5de17e:0x125,_0x4875c5:0xef,_0x3868b2:0x67,_0x113b77:0x712,_0x29c07c:0x747,_0x1464b6:0x730,_0x517071:0xdb,_0x42bd81:0x13e,_0x33f52a:0x7da,_0x12a21d:0x850,_0x3463e2:0x86a},_0x450d56={_0x628a63:0x115,_0x47b8a:0xd6,_0xd7082:0x633},_0x9cc969={_0x400de3:0x2e};function _0x25a826(_0x5c093d,_0xb680a0,_0x341717,_0xfc6183){return _0x4820c3(_0x5c093d-0x1da,_0xb680a0-0x175,_0x341717,_0xb680a0-_0x9cc969._0x400de3);}function _0x662be(_0x470495,_0x5d0ab9,_0x53008d,_0x1eaca4){return _0x4820c3(_0x470495-_0x450d56._0x628a63,_0x5d0ab9-_0x450d56._0x47b8a,_0x53008d,_0x1eaca4- -_0x450d56._0xd7082);}try{const _0x1f19c5=new URL(_0x3d4656);for(const _0x5b97c2 of[_0x25a826(0x7cc,_0x2b4efa._0x1ca75e,0x64a,_0x2b4efa._0x317edd),_0x25a826(0x7c5,0x78d,0x8e7,_0x2b4efa._0x4e2493),_0x25a826(_0x2b4efa._0x3c7e83,0x725,0x655,0x728),_0x662be(0x237,_0x2b4efa._0x22ce8f,_0x2b4efa._0x36fb65,_0x2b4efa._0x5adde5),_0x25a826(_0x2b4efa._0xdfde3a,0x812,0x874,0x7d0),_0x662be(-_0x2b4efa._0x561d11,-_0x2b4efa._0x428bc6,-_0x2b4efa._0x4099a2,-_0x2b4efa._0x5637b0),_0x662be(0x1cf,_0x2b4efa._0x70c3c,0xd0,_0x2b4efa._0x5de17e),_0x662be(-0xb6,-0x16f,_0x2b4efa._0x4875c5,-_0x2b4efa._0x3868b2),_0x25a826(0x678,_0x2b4efa._0x113b77,_0x2b4efa._0x29c07c,_0x2b4efa._0x1464b6)]){_0x1f19c5[_0x662be(-_0x2b4efa._0x517071,0x61,_0x2b4efa._0x42bd81,0x31)][_0x25a826(0x6cd,_0x2b4efa._0x33f52a,_0x2b4efa._0x12a21d,_0x2b4efa._0x3463e2)](_0x5b97c2);}return _0x1f19c5['toString']();}catch{return _0x3d4656;}}function cseDateRestrict(_0x19b746){const _0x31d356={_0x3f35b2:0x3bb,_0x1fd524:0x374,_0x4fa53e:0x440,_0x3aec12:0x304},_0x25037e={_0x2326b4:0x5a},_0x39e3ef={_0x547664:0x25,_0x2bb3d1:0x309};if(_0x19b746<=0x0)return void 0x0;if(_0x19b746<=0x1e)return'd'+Math['max'](0x1,Math[_0x37b0b6(0x38b,0x2b7,_0x31d356._0x3f35b2,0x24c)](_0x19b746));function _0x4cf951(_0x3706fd,_0x34e34f,_0x2bd3f1,_0x39f59f){return _0x4820c3(_0x3706fd-_0x39e3ef._0x547664,_0x34e34f-0xa8,_0x39f59f,_0x3706fd- -_0x39e3ef._0x2bb3d1);}if(_0x19b746<=0x16d)return'm'+Math[_0x4cf951(0x440,0x4fb,0x32d,_0x31d356._0x1fd524)](_0x19b746/0x1e);function _0x37b0b6(_0x2bcd10,_0x5e38ca,_0x15195d,_0x382415){return _0x4820c3(_0x2bcd10-0x173,_0x5e38ca-_0x25037e._0x2326b4,_0x2bcd10,_0x5e38ca- -0x469);}return'y'+Math[_0x4cf951(_0x31d356._0x4fa53e,0x39c,_0x31d356._0x3aec12,0x4c7)](_0x19b746/0x16d);}function addSiteFilters(_0x39afce,_0x373b77){const _0x55ddf8={_0xbf0e70:0xc4,_0x523ba0:0x41,_0x411c11:0x45b,_0x5848d4:0x508,_0x57f397:0x422,_0x29d48c:0x169,_0x153f44:0x1d,_0x14270d:0x4c9,_0x14adc1:0x486},_0x521f8f={_0x2ca9bd:0x1a9,_0xe7558a:0x636},_0x4cb757={_0x56f161:0xc0,_0x3f3fd5:0x18c,_0x14e4dd:0x1db};if(_0x373b77['length']===0x0)return _0x39afce['trim']();function _0x494f6f(_0x185207,_0x59e69d,_0x1b2a05,_0x5cf33e){return _0x4820c3(_0x185207-_0x4cb757._0x56f161,_0x59e69d-_0x4cb757._0x3f3fd5,_0x59e69d,_0x5cf33e- -_0x4cb757._0x14e4dd);}function _0x3709d8(_0x2a834b,_0x16a0b4,_0x12899c,_0x332ea2){return _0x4820c3(_0x2a834b-_0x521f8f._0x2ca9bd,_0x16a0b4-0x1d7,_0x16a0b4,_0x2a834b- -_0x521f8f._0xe7558a);}return(_0x39afce+'\x20('+_0x373b77[_0x3709d8(-_0x55ddf8._0xbf0e70,-0x1ef,-0xd8,_0x55ddf8._0x523ba0)](_0x46aeca=>_0x3709d8(0x45,0xba,-0x54,0x131)+_0x46aeca)[_0x494f6f(0x3c1,_0x55ddf8._0x411c11,_0x55ddf8._0x5848d4,_0x55ddf8._0x57f397)](_0x3709d8(0xb2,0x1ef,_0x55ddf8._0x29d48c,-_0x55ddf8._0x153f44))+')')[_0x494f6f(_0x55ddf8._0x14270d,0x55e,_0x55ddf8._0x14adc1,0x451)]();}function normalizeType(_0x1325a3){const _0x2ffb81={_0x47e01f:0x227,_0x50ffa6:0x1c8,_0x44b885:0x183,_0x47b99f:0x123,_0x1ccc53:0x2c9,_0x47db6a:0xf6,_0x22762d:0x64},_0x86da65={_0x181efa:0x1a,_0x5c3782:0x5,_0x336d5c:0x633},_0x1f3bb0={_0xcf7229:0xbf,_0xe7d93f:0x1ba};function _0x28a0db(_0x5b5b54,_0x2c1c46,_0x2b3e82,_0x3d3b90){return _0x211934(_0x5b5b54- -0x32f,_0x2c1c46-_0x1f3bb0._0xcf7229,_0x3d3b90,_0x3d3b90-_0x1f3bb0._0xe7d93f);}function _0x11f12b(_0x4d2c27,_0x2b5af6,_0x4d932c,_0x1287c7){return _0x4820c3(_0x4d2c27-_0x86da65._0x181efa,_0x2b5af6-_0x86da65._0x5c3782,_0x4d2c27,_0x4d932c- -_0x86da65._0x336d5c);}return _0x1325a3===_0x11f12b(0x125,_0x2ffb81._0x47e01f,0xcb,_0x2ffb81._0x50ffa6)?_0x28a0db(_0x2ffb81._0x44b885,0x104,_0x2ffb81._0x47b99f,_0x2ffb81._0x1ccc53):_0x11f12b(-_0x2ffb81._0x47db6a,0x169,_0x2ffb81._0x22762d,0x105);}async function fetchJson(_0x15f822,_0x1b685a,_0x3a030b){const _0x3f26ad={_0x7f5ad1:0x1a5,_0x48d851:0x133,_0x21ac49:0x1bf,_0x2bb330:0x195,_0x277e39:0x2d4,_0xa6e5a3:0x1ed,_0x56ffa8:0x252,_0x3ad2ca:0x19e,_0x14fc93:0x29,_0x568276:0x47c,_0x1655c7:0x50a,_0x4d3bc9:0x4c3,_0x1ddc8f:0x3a2,_0x26720e:0x3a4,_0x1fe73a:0x1c2,_0x42f027:0x1cb,_0x509503:0x315,_0x1d5add:0x187,_0x1974aa:0x1b4,_0x52efe0:0x22e,_0x3433e1:0x37f,_0x503f9d:0x300,_0x2cdb98:0x301,_0x171d53:0x2dd,_0x99d0b1:0x292,_0xe00103:0x283,_0x4cb191:0x48,_0x526fa2:0xfe},_0x311ccb={_0x32657d:0x34},_0x585930={_0x5c8c62:0x188,_0x21f0aa:0x5ba},_0x446b9d=await fetch(_0x15f822,{'headers':{'User-Agent':USER_AGENT2,'Accept':_0x458af1(0x1b8,0x64,_0x3f26ad._0x7f5ad1,0x1ca),..._0x3a030b?.['headers']},'signal':_0x1b685a,..._0x3a030b});function _0x458af1(_0x33677a,_0xe844b4,_0x3bf54e,_0x2373a1){return _0x4820c3(_0x33677a-_0x585930._0x5c8c62,_0xe844b4-0x42,_0x3bf54e,_0x33677a- -_0x585930._0x21f0aa);}if(!_0x446b9d['ok']){let _0x4f7bf7,_0x315f15;try{_0x4f7bf7=await _0x446b9d[_0x316002(_0x3f26ad._0x48d851,_0x3f26ad._0x21ac49,0x20d,0x105)]();const _0x22475f=JSON[_0x458af1(_0x3f26ad._0x2bb330,_0x3f26ad._0x277e39,0x218,_0x3f26ad._0xa6e5a3)](_0x4f7bf7),_0x2793fd=typeof _0x22475f[_0x458af1(_0x3f26ad._0x56ffa8,0x20f,0x11e,_0x3f26ad._0x3ad2ca)]===_0x458af1(0x1d,-0x120,-_0x3f26ad._0x14fc93,-0xbf)?_0x22475f[_0x316002(_0x3f26ad._0x568276,_0x3f26ad._0x1655c7,0x3be,_0x3f26ad._0x4d3bc9)][_0x316002(_0x3f26ad._0x1ddc8f,_0x3f26ad._0x26720e,0x2d4,0x204)]:void 0x0;_0x315f15=_0x22475f[_0x458af1(0x168,0x28d,0x16f,0x261)]?.[_0x316002(_0x3f26ad._0x1fe73a,_0x3f26ad._0x42f027,_0x3f26ad._0x509503,0x40c)]??_0x22475f[_0x458af1(0x168,_0x3f26ad._0x1d5add,0x63,0x233)]?.['errors']?.[0x0]?.[_0x458af1(0x1a9,0x201,0x2d1,0x27c)]??_0x2793fd;}catch{}const _0xef3dff=_0x315f15?_0x458af1(_0x3f26ad._0x1974aa,0x296,0x247,_0x3f26ad._0x52efe0)+_0x446b9d[_0x316002(0x26f,0x3c2,0x300,0x336)]+':\x20'+_0x315f15:'HTTP\x20'+_0x446b9d[_0x316002(_0x3f26ad._0x3433e1,0x211,_0x3f26ad._0x503f9d,_0x3f26ad._0x2cdb98)]+'\x20'+_0x446b9d[_0x316002(0x309,_0x3f26ad._0x171d53,0x268,_0x3f26ad._0x99d0b1)];throw new ToolExecutionError(_0xef3dff,{'statusCode':_0x446b9d[_0x316002(_0x3f26ad._0xe00103,0x1f3,0x300,0x395)],..._0x4f7bf7?{'body':_0x4f7bf7}:{}});}function _0x316002(_0x557c81,_0x20e17e,_0x3b961a,_0x492719){return _0x4820c3(_0x557c81-_0x311ccb._0x32657d,_0x20e17e-0x17,_0x20e17e,_0x3b961a- -0x44e);}return await _0x446b9d[_0x458af1(_0x3f26ad._0x4cb191,-0xb6,0x171,-_0x3f26ad._0x526fa2)]();}async function hydrateResults(_0x507144,_0x6d6ec3,_0x24a0fb,_0x5d2a81){const _0x556737={_0x3488a8:0x745,_0x20815c:0x61b,_0x3b46dc:0x6a2,_0x1fafc7:0x19d,_0x3c622d:0x165,_0x41f26f:0x2cb,_0x33bfad:0x3db,_0x299fd0:0x57a,_0x26fbf4:0x1aa,_0x2b5897:0xde,_0x58b12e:0x4e4,_0x45b7ca:0x3b7,_0x35b3f9:0x3cd},_0x5e7548={_0x80e175:0x372,_0x4cbaf7:0x332,_0x3dd039:0x2ac,_0x1911c7:0x4ac,_0x2c5413:0x4f5,_0x5bba10:0x10c,_0x2821f5:0xe1,_0x44b0f5:0xdd,_0x184e6b:0x121,_0x2e0cd3:0x33f,_0x446864:0x5c5,_0x437467:0x494,_0x58abcc:0x52e,_0xda11ff:0x5e4,_0x56a16c:0x4d4,_0x37e58d:0x450,_0x229827:0xd,_0x3ca79a:0x37,_0x40782d:0x18d,_0x2a7e3d:0x193,_0x119bc0:0x81,_0x5d30ee:0x9,_0x28c59c:0x3e9,_0x41a3c1:0xbf,_0x1ef00d:0xa8,_0x27576b:0x37,_0x16db24:0x104,_0x2b9443:0x5f,_0x8454f7:0x3fd,_0x419c62:0x2ac,_0x31cbc6:0x2fc,_0x48019c:0x4a6,_0x2a9697:0x5e7,_0x18c9b3:0x1c3,_0x5b6877:0x17d,_0x5b7bf2:0x173,_0x3b5b7a:0x8b,_0x2ae347:0x7d,_0x5c8e25:0x39b,_0x249798:0x2ff,_0x20b274:0x3f5,_0x525a54:0x41f,_0x3bed8a:0x49a,_0x3ac25c:0x254},_0x421397={_0x1b8e6d:0x6f5},_0x537781={_0x32fdde:0x43};function _0x915e9f(_0x39f792,_0x3a916b,_0x5a18dc,_0x3bfa8d){return _0x211934(_0x3a916b-0x1be,_0x3a916b-0xbc,_0x39f792,_0x3bfa8d-_0x537781._0x32fdde);}function _0x2f0bd4(_0x53c7eb,_0x48c3be,_0x59ac60,_0x5287e6){return _0x4820c3(_0x53c7eb-0xea,_0x48c3be-0xcc,_0x59ac60,_0x53c7eb- -_0x421397._0x1b8e6d);}const _0x355de2=await Promise[_0x915e9f(_0x556737._0x3488a8,_0x556737._0x20815c,0x61d,_0x556737._0x3b46dc)](_0x507144['slice'](0x0,0xa)[_0x2f0bd4(-0x183,-_0x556737._0x1fafc7,-_0x556737._0x3c622d,-_0x556737._0x41f26f)](async _0x164377=>{const _0x375e86={_0x506a48:0x1e3,_0x18342c:0x151},_0x1e3721={_0x331d8a:0x408,_0x22f45d:0x158};function _0x2e0555(_0x3b6b59,_0x402e04,_0x43dbbb,_0x5a8708){return _0x2f0bd4(_0x43dbbb-_0x1e3721._0x331d8a,_0x402e04-_0x1e3721._0x22f45d,_0x5a8708,_0x5a8708-0x11);}function _0x17bec3(_0x5e524c,_0x31d6b5,_0x512b63,_0x8c1070){return _0x915e9f(_0x5e524c,_0x512b63- -0x6bc,_0x512b63-_0x375e86._0x506a48,_0x8c1070-_0x375e86._0x18342c);}try{const _0x150b1b=await safeFetch(_0x164377['url'],{'headers':{'User-Agent':USER_AGENT2,'Accept-Language':_0x6d6ec3,'Accept':'text/html'},'signal':_0x24a0fb},{'lookup':_0x5d2a81});if(!_0x150b1b['ok'])return _0x164377;const _0x58f983=await _0x150b1b['text'](),_0x43bf50=load(_0x58f983),_0x575164=_0x43bf50(_0x2e0555(_0x5e7548._0x80e175,0x4f6,0x4be,0x555))[_0x2e0555(_0x5e7548._0x4cbaf7,0x399,_0x5e7548._0x3dd039,0x267)](_0x2e0555(_0x5e7548._0x1911c7,0x4d8,0x494,_0x5e7548._0x2c5413))||_0x43bf50(_0x17bec3(_0x5e7548._0x5bba10,_0x5e7548._0x2821f5,-0x41,0xbd))[_0x17bec3(-_0x5e7548._0x44b0f5,-0xf0,-0x1cf,-_0x5e7548._0x184e6b)]()['text']()[_0x2e0555(0x49c,0x33d,_0x5e7548._0x2e0cd3,0x337)](),_0x564e92=_0x43bf50('meta[name=\x27description\x27]')['attr'](_0x2e0555(_0x5e7548._0x446864,0x4fc,_0x5e7548._0x437467,0x452))||_0x43bf50(_0x2e0555(_0x5e7548._0x58abcc,_0x5e7548._0xda11ff,_0x5e7548._0x56a16c,_0x5e7548._0x37e58d))['attr'](_0x17bec3(-0xf6,-_0x5e7548._0x229827,_0x5e7548._0x3ca79a,_0x5e7548._0x40782d))||_0x164377[_0x17bec3(-_0x5e7548._0x2a7e3d,-0x80,-_0x5e7548._0x119bc0,-_0x5e7548._0x5d30ee)],_0x422c8d=_0x43bf50('meta[property=\x27article:published_time\x27]')[_0x2e0555(_0x5e7548._0x28c59c,0x245,0x2ac,0x20b)](_0x17bec3(_0x5e7548._0x41a3c1,_0x5e7548._0x1ef00d,_0x5e7548._0x27576b,0x78))||_0x43bf50(_0x17bec3(-_0x5e7548._0x16db24,-_0x5e7548._0x2b9443,-0x12e,-0x1af))[_0x2e0555(0x3f1,_0x5e7548._0x8454f7,_0x5e7548._0x419c62,_0x5e7548._0x31cbc6)]('datetime')||_0x164377['publishedAt'],_0x58fdcc=_0x43bf50(_0x2e0555(_0x5e7548._0x48019c,_0x5e7548._0x2a9697,0x4e3,0x418))[_0x2e0555(_0x5e7548._0x18c9b3,_0x5e7548._0x5b6877,_0x5e7548._0x3dd039,_0x5e7548._0x5b7bf2)](_0x17bec3(0x3b,-0x162,-0x5,0xd6));return{..._0x164377,'title':_0x575164||_0x164377[_0x17bec3(-0x154,-_0x5e7548._0x3b5b7a,-0x41,_0x5e7548._0x2ae347)],'snippet':_0x564e92,'url':_0x58fdcc?normalizeUrl(new URL(_0x58fdcc,_0x164377['url'])[_0x2e0555(_0x5e7548._0x5c8e25,_0x5e7548._0x249798,_0x5e7548._0x20b274,_0x5e7548._0x525a54)]()):_0x164377[_0x2e0555(0x267,_0x5e7548._0x3bed8a,0x342,_0x5e7548._0x3ac25c)],'publishedAt':_0x422c8d};}catch{return _0x164377;}})),_0x388529=new Map(_0x507144[_0x915e9f(_0x556737._0x33bfad,0x4ea,0x3db,_0x556737._0x299fd0)](0x0,0xa)[_0x2f0bd4(-0x183,-0x162,-_0x556737._0x26fbf4,-_0x556737._0x2b5897)]((_0x55fddf,_0x1fb44a)=>[_0x55fddf[_0x2f0bd4(-0xc6,-0x1fd,-0x4d,-0x6f)],_0x355de2[_0x1fb44a]]));return _0x507144[_0x915e9f(0x4fe,_0x556737._0x58b12e,_0x556737._0x45b7ca,_0x556737._0x35b3f9)](_0x232f36=>_0x388529[_0x2f0bd4(0x2c,-0x8b,0x47,-0x3d)](_0x232f36[_0x2f0bd4(-0xc6,0x81,-0x4a,-0xdb)])??_0x232f36);}function formatResults(_0x2190a8){const _0x346bb0={_0x2a8b1e:0x1fa,_0x2ee647:0x2c8,_0x2a5b9:0x300},_0x2737b0={_0x2ac413:0x261,_0x488dc5:0x449,_0xe2b514:0x3bf,_0x247048:0x431,_0x3cd029:0x392,_0x199bf1:0x460,_0x28ed38:0x65d,_0x2eb396:0x530,_0x5b6366:0x44f,_0x2c8b94:0x420,_0x5766c5:0x473,_0x271173:0x598,_0x1a05f5:0x790,_0x151ca9:0x713,_0x2169b4:0x4ae,_0x5e8766:0x563,_0x3a3059:0x546,_0x2a617b:0x534,_0xd2ea2a:0x631,_0x41a05c:0x354,_0x5d48ca:0x369},_0x32d7f3={_0x4dd183:0x14a,_0x463ef4:0x1c4},_0x40acb8={_0x48075a:0x362},_0x35d9cb={_0x4eadf2:0x221,_0x12cd1c:0x2b,_0x937f65:0x113};if(_0x2190a8[_0x3d162f(_0x346bb0._0x2a8b1e,0x208,_0x346bb0._0x2ee647,_0x346bb0._0x2a5b9)]===0x0)return'No\x20results\x20found.';function _0x3d162f(_0x44451c,_0x38b298,_0x51c637,_0x51b3b2){return _0x211934(_0x38b298- -_0x35d9cb._0x4eadf2,_0x38b298-_0x35d9cb._0x12cd1c,_0x51c637,_0x51b3b2-_0x35d9cb._0x937f65);}return _0x2190a8['map'](_0x467530=>{function _0x55fda7(_0x5eda04,_0x4d4d36,_0x592fa4,_0x5fd75c){return _0x3d162f(_0x5eda04-0x98,_0x5fd75c-_0x40acb8._0x48075a,_0x5eda04,_0x5fd75c-0x5d);}const _0x1fe2cf=[_0x467530[_0x296eed(0x254,0x20c,0x2cc,_0x2737b0._0x2ac413)][_0x296eed(_0x2737b0._0x488dc5,_0x2737b0._0xe2b514,_0x2737b0._0x247048,0x332)]+'.\x20'+_0x467530[_0x296eed(0x456,_0x2737b0._0x3cd029,_0x2737b0._0x199bf1,0x39b)],_0x467530[_0x55fda7(_0x2737b0._0x28ed38,_0x2737b0._0x2eb396,0x404,0x524)]];if(_0x467530[_0x296eed(_0x2737b0._0x5b6366,0x42c,_0x2737b0._0x2c8b94,0x552)])_0x1fe2cf[_0x296eed(0x4f3,0x552,0x568,_0x2737b0._0x5766c5)](_0x467530['snippet']);if(_0x467530[_0x55fda7(_0x2737b0._0x271173,0x670,0x488,0x54f)])_0x1fe2cf[_0x55fda7(_0x2737b0._0x1a05f5,_0x2737b0._0x151ca9,0x7d4,0x706)](_0x296eed(_0x2737b0._0x2169b4,_0x2737b0._0x5e8766,_0x2737b0._0x3a3059,0x658)+_0x467530[_0x55fda7(0x468,_0x2737b0._0x2a617b,_0x2737b0._0xd2ea2a,0x54f)]);function _0x296eed(_0x370ac4,_0x4323a0,_0x41b833,_0x48b73c){return _0x3d162f(_0x370ac4-_0x32d7f3._0x4dd183,_0x41b833-_0x32d7f3._0x463ef4,_0x48b73c,_0x48b73c-0x13d);}return _0x1fe2cf[_0x296eed(0x277,0x281,_0x2737b0._0x41a05c,_0x2737b0._0x5d48ca)]('\x0a');})['join']('\x0a\x0a');}async function searchOllama(_0xa890d5,_0x443e05,_0x358ce6){const _0x3f5183={_0x457fe1:0x263,_0x68f119:0x28e,_0x3b3beb:0x43b,_0x2fadbd:0x43d,_0x3c3dc5:0x389,_0x55095f:0x459,_0x2c5747:0x30b,_0xcf6918:0x298,_0x1c3b50:0x216,_0xbee883:0x1d2,_0x524f0b:0x481,_0x2f56d7:0x3eb,_0x24c753:0x235,_0x46d6f5:0x3de,_0x22c37b:0x2c7,_0x1c82ab:0x5a},_0x531b85={_0x1f6f78:0x23b,_0x42c83f:0x310,_0x126757:0x283,_0x12a576:0x25c,_0x180026:0x346,_0x568f3d:0x315,_0x4e3ef4:0x2ab,_0x4ae6a6:0x1d9,_0x1e1ceb:0x2cf,_0x5a9bc0:0x38d,_0x4b7f7c:0x68e,_0x47c4ec:0x62b,_0x395855:0x77e},_0x5d542f={_0xd1832a:0x18,_0xc75eb1:0x3ef},_0x256f3f=Math['max'](0x1,Math['min'](0xa,_0x443e05[_0x4bad0a(_0x3f5183._0x457fe1,0x3b7,_0x3f5183._0x68f119,0x4cd)])),_0x426eab=addSiteFilters(_0x443e05[_0x519155(0xea,0x158,0x1a9,0x23b)],_0x443e05[_0x4bad0a(0x45c,_0x3f5183._0x3b3beb,0x331,_0x3f5183._0x2fadbd)]);function _0x4bad0a(_0x3cc889,_0x493522,_0x18fe4b,_0x434168){return _0x211934(_0x493522- -0xe0,_0x493522-0x63,_0x18fe4b,_0x434168-0xf);}function _0x519155(_0x5bb9de,_0x45d691,_0x5b88c5,_0x38f69f){return _0x4820c3(_0x5bb9de-0x1d8,_0x45d691-_0x5d542f._0xd1832a,_0x38f69f,_0x5b88c5- -_0x5d542f._0xc75eb1);}const _0x3a5304=await fetchJson(_0x4bad0a(0x436,0x45c,_0x3f5183._0x3c3dc5,_0x3f5183._0x55095f),_0x358ce6,{'method':_0x519155(_0x3f5183._0x2c5747,_0x3f5183._0xcf6918,_0x3f5183._0x1c3b50,_0x3f5183._0xbee883),'headers':{'Authorization':_0x4bad0a(0x42a,_0x3f5183._0x524f0b,_0x3f5183._0x2f56d7,0x51e)+_0xa890d5[_0x4bad0a(0x349,0x347,0x289,_0x3f5183._0x24c753)]},'body':JSON['stringify']({'query':_0x426eab,'max_results':_0x256f3f})}),_0x1a2958=_0x3a5304[_0x519155(0x37a,0x4fb,_0x3f5183._0x46d6f5,0x3ac)]??[],_0x2c9dec=_0x1a2958[_0x519155(_0x3f5183._0x22c37b,0x263,0x183,_0x3f5183._0x1c82ab)]((_0x14e181,_0x20d33e)=>{const _0x3c6fbc={_0x196590:0x10d},_0x2a8c33=_0x14e181[_0x3f544b(0x24b,0x1c5,0x2b4,_0x531b85._0x1f6f78)]||'';let _0x631afb;function _0x3f544b(_0x3ca24b,_0x1facda,_0x39e164,_0x19e3d0){return _0x519155(_0x3ca24b-0x18,_0x1facda-_0x3c6fbc._0x196590,_0x19e3d0- -0x5,_0x3ca24b);}function _0x265524(_0x5b5c14,_0x44d26f,_0x35616d,_0x5dbbe5){return _0x519155(_0x5b5c14-0x15,_0x44d26f-0x127,_0x44d26f-0x3c0,_0x5dbbe5);}try{_0x631afb=new URL(_0x2a8c33)[_0x3f544b(_0x531b85._0x42c83f,_0x531b85._0x126757,0x2e2,0x3d6)];}catch{_0x631afb=null;}return{'title':_0x14e181[_0x3f544b(0x3c4,_0x531b85._0x12a576,_0x531b85._0x180026,_0x531b85._0x568f3d)]||_0x3f544b(_0x531b85._0x4e3ef4,0x1f0,0x2c0,_0x531b85._0x4ae6a6),'url':normalizeUrl(_0x2a8c33),'snippet':_0x14e181[_0x3f544b(0x4a3,0x4b1,_0x531b85._0x1e1ceb,_0x531b85._0x5a9bc0)]??null,'displayUrl':_0x631afb,'favicon':null,'publishedAt':null,'source':{'engine':_0x265524(0x5ab,_0x531b85._0x4b7f7c,_0x531b85._0x47c4ec,_0x531b85._0x395855),'rank':_0x20d33e+0x1}};});return{'items':_0x2c9dec['slice'](0x0,_0x256f3f),'engine':'ollama'};}async function searchTavily(_0x232144,_0x25111d,_0x4bccd1){const _0x561e25={_0x302331:0x6e9,_0x555d16:0x668,_0x39a57a:0x6a6,_0x478712:0x4e8,_0x1c00ea:0x450,_0x33c29e:0x47e,_0x321ad7:0x5d8,_0x5c012b:0x537,_0x2fcefe:0x507,_0x224801:0x567,_0x405035:0x413,_0x23b536:0x4dc,_0x9a0320:0x514,_0xbd793e:0x446,_0x6db32e:0x498,_0x3b7b3b:0x527,_0x426496:0x4f9,_0x4024a3:0x5d7,_0x48866b:0x706,_0x50ce61:0x3d1,_0x172d41:0x35a,_0x2a4412:0x69e,_0x3058f7:0x7c8,_0x4fad2f:0x73e,_0x5d1d59:0x43d,_0x1e7891:0x372,_0x1c66d0:0x3c3,_0x11de48:0x3ca,_0x30d526:0x5d1,_0x56909e:0x5e7,_0x5aa11d:0x606,_0x539914:0x43f,_0x2ca3a5:0x511,_0x3537ed:0x3b0,_0x2643a2:0x349,_0x1b5293:0x434},_0x579b8f={_0x3d5de1:0x122,_0x11b0e6:0x31,_0x11e428:0xc8,_0x7954f1:0x37f,_0x17981c:0x2bc,_0x5bbd10:0x45e,_0x34e3e0:0xe3,_0x569a33:0x481,_0x41e025:0x2f5,_0x30db8d:0x192,_0x27dde0:0x190},_0x3c5905={_0x3d856f:0x44,_0xce8f6d:0x59d},_0x184d85={_0x3051cc:0x1c6},_0x5ad49d={_0x376758:0x84,_0x4a7b65:0xcb},_0x5f0b24={_0x490502:0x1d5};function _0x2a006e(_0x53da6c,_0x3eec62,_0x141ed7,_0xe419d4){return _0x211934(_0x141ed7-0x1eb,_0x3eec62-0xd8,_0x53da6c,_0xe419d4-_0x5f0b24._0x490502);}const _0x5d21e3=Math[_0x2a006e(0x832,0x7ce,_0x561e25._0x302331,_0x561e25._0x555d16)](0x1,Math[_0x2a006e(_0x561e25._0x39a57a,_0x561e25._0x478712,0x5a2,_0x561e25._0x1c00ea)](0x14,_0x25111d['count'])),_0x51b06e={'query':_0x25111d[_0x2a006e(_0x561e25._0x33c29e,_0x561e25._0x321ad7,_0x561e25._0x5c012b,_0x561e25._0x33c29e)],'max_results':_0x5d21e3,'search_depth':_0x232144[_0x230669(0x553,_0x561e25._0x2fcefe,_0x561e25._0x224801,0x545)]??'basic','topic':_0x232144[_0x230669(_0x561e25._0x405035,_0x561e25._0x23b536,_0x561e25._0x9a0320,_0x561e25._0xbd793e)]??_0x2a006e(_0x561e25._0x6db32e,_0x561e25._0x3b7b3b,_0x561e25._0x426496,0x56b)};if(_0x25111d[_0x2a006e(_0x561e25._0x4024a3,0x6c9,_0x561e25._0x48866b,0x601)][_0x230669(0x559,0x4ad,0x383,_0x561e25._0x50ce61)]>0x0)_0x51b06e[_0x230669(_0x561e25._0x172d41,0x39c,0x296,0x4f2)]=_0x25111d[_0x230669(0x638,0x59f,_0x561e25._0x2a4412,0x5aa)];const _0x36328d=await fetchJson(_0x2a006e(_0x561e25._0x3058f7,0x88c,_0x561e25._0x4fad2f,0x5f1),_0x4bccd1,{'method':_0x230669(0x46b,_0x561e25._0x5d1d59,0x3dd,_0x561e25._0x1e7891),'headers':{'Authorization':'Bearer\x20'+_0x232144[_0x230669(0x395,_0x561e25._0x1c66d0,_0x561e25._0x11de48,0x39b)],'Content-Type':_0x230669(0x59a,0x5aa,0x566,0x540)},'body':JSON[_0x230669(_0x561e25._0x30d526,_0x561e25._0x56909e,_0x561e25._0x5aa11d,0x62d)](_0x51b06e)});function _0x230669(_0x5b81b6,_0x1245ed,_0x444ef4,_0x58d72e){return _0x211934(_0x1245ed-_0x5ad49d._0x376758,_0x1245ed-0x145,_0x5b81b6,_0x58d72e-_0x5ad49d._0x4a7b65);}const _0xe1b605=_0x36328d['results']??[],_0x556673=_0xe1b605[_0x2a006e(0x3ef,_0x561e25._0x539914,_0x561e25._0x2ca3a5,0x4ab)]((_0x2abcbb,_0x3dca9c)=>{const _0x5de213=_0x2abcbb[_0x89be5e(0x165,-_0x579b8f._0x3d5de1,_0x579b8f._0x11b0e6,-_0x579b8f._0x11e428)]||'';function _0x27b808(_0x12fad9,_0x49054a,_0xea0b9b,_0x3d6573){return _0x230669(_0x12fad9,_0xea0b9b- -0x24c,_0xea0b9b-0x31,_0x3d6573-_0x184d85._0x3051cc);}function _0x89be5e(_0x9dc080,_0x10b28f,_0x5b5f1a,_0x95fbe8){return _0x2a006e(_0x10b28f,_0x10b28f-_0x3c5905._0x3d856f,_0x5b5f1a- -_0x3c5905._0xce8f6d,_0x95fbe8-0xc8);}let _0x44acc4;try{_0x44acc4=new URL(_0x5de213)[_0x27b808(_0x579b8f._0x7954f1,_0x579b8f._0x17981c,0x3b6,_0x579b8f._0x5bbd10)];}catch{_0x44acc4=null;}return{'title':_0x2abcbb['title']||_0x89be5e(_0x579b8f._0x11b0e6,-0x190,-0x31,_0x579b8f._0x34e3e0),'url':normalizeUrl(_0x5de213),'snippet':_0x2abcbb[_0x27b808(_0x579b8f._0x569a33,_0x579b8f._0x41e025,0x36d,0x2e9)]??null,'displayUrl':_0x44acc4,'favicon':null,'publishedAt':null,'source':{'engine':_0x27b808(0xb6,0xd4,_0x579b8f._0x30db8d,_0x579b8f._0x27dde0),'rank':_0x3dca9c+0x1}};});return{'items':_0x556673[_0x230669(0x46f,_0x561e25._0x3537ed,_0x561e25._0x2643a2,_0x561e25._0x1b5293)](0x0,_0x5d21e3),'engine':'tavily'};}async function searchGoogleCse(_0x39240d,_0x25fde6,_0x2d3877){const _0x35f3f9={_0x45c08d:0x1ec,_0x33a61f:0x209,_0x2d10cb:0x126,_0x1fe94e:0x1b6,_0x49f99c:0x1f5,_0x300357:0x44e,_0x48b137:0x321,_0x139da2:0x375,_0x49901a:0x2d,_0x3f2602:0x11f,_0x5382e5:0x46,_0x15855e:0xa4,_0x4ccad2:0x65,_0x457952:0x34e,_0x1aae38:0x233,_0x1ad376:0x2e1,_0xee2a8e:0x2f8,_0x4de31a:0x12,_0x1246f4:0xc4,_0x5b06ea:0x112,_0x5994f0:0x6d,_0x519f0b:0x38d,_0xca8597:0x2ab,_0x4d5bbc:0x3ab,_0xcfd285:0x1c4,_0x553529:0x2ca,_0xc4c5f:0x3bd,_0x55fbaf:0x266,_0x277340:0x211,_0x54aaab:0x26f,_0x4cb714:0x1fd,_0x437510:0x2a1,_0x595367:0x199,_0x349ea6:0x151,_0x3f60cb:0xcf,_0x48859f:0x129,_0x4b9139:0xb2,_0xe82f:0x1a,_0x358873:0x111,_0x25241d:0x20c,_0xc9a75:0x1a2,_0xa0502f:0x170,_0x34c3c0:0x265,_0x48e304:0x1fd,_0x3821ce:0x2b4,_0x2cc4f9:0x556,_0x297d16:0x3eb,_0x3a3226:0x32c,_0x58d934:0x41e,_0x4bf217:0x2d9,_0x16d013:0x484,_0x1bb2c6:0x429,_0x168afd:0x2ba,_0x4e21de:0x2cd,_0x25f2f2:0x2f7,_0x2de3e7:0x318,_0x1a3767:0x1d3,_0x57811e:0x279,_0x258ac6:0x2de,_0x31db82:0x4f1,_0x13c8bf:0x429,_0x441ca8:0x18d,_0x40cda1:0xb8,_0x3052ee:0x182,_0x18281a:0x222,_0x389d06:0x1c1,_0x5b7b07:0x317,_0x1432d5:0x173,_0x3eb12d:0x2f5,_0x4c2675:0x1af,_0x2f6447:0x111,_0x4fdf40:0x87,_0x2d54cf:0x141,_0x33763c:0x25b,_0x247a49:0x372,_0x1d283e:0x1de,_0x53d7c9:0x459,_0x3405b1:0x31f,_0x987c4f:0x1a9,_0x464fe6:0x164,_0x120cff:0x165,_0x1b5314:0x355,_0x38cf7a:0x38a,_0x37da3a:0x3af,_0x3bb7c4:0x2b2,_0x58ac30:0x169,_0x2cc69a:0x480,_0x46f227:0x354,_0xe014ce:0x346,_0x4c0bc8:0x17b,_0x43b5ac:0x46e,_0xdefe52:0x405,_0x3ebd0a:0x456,_0x5a603b:0x346,_0x30bf7f:0x306,_0x30a45e:0x2a5,_0xa9cbe4:0x1bc,_0x1c354d:0x26c,_0xf7019f:0x3a4,_0x37b74d:0x307,_0x49916d:0x2be,_0x49007e:0x1c8,_0x25f9b5:0x94,_0x8cc289:0x71,_0x50087c:0x177,_0x508a42:0x143,_0x1b725e:0x49c,_0x58f965:0x34e,_0x35390a:0x407,_0x5a50f7:0x18f,_0xc7c631:0x122,_0x4ab501:0x2c},_0x1ba7ef={_0x58b57c:0x177};function _0x44d06b(_0x5a9cff,_0x3f713f,_0x3307eb,_0x4665da){return _0x211934(_0x4665da- -_0x1ba7ef._0x58b57c,_0x3f713f-0x109,_0x3307eb,_0x4665da-0xc0);}const _0x1eadb5=Math['max'](0x1,Math['min'](0x32,_0x25fde6[_0x44d06b(_0x35f3f9._0x45c08d,_0x35f3f9._0x33a61f,0x1f8,0x320)]));if(_0x25fde6[_0x44d06b(0x15e,_0x35f3f9._0x2d10cb,_0x35f3f9._0x1fe94e,_0x35f3f9._0x49f99c)]+_0x1eadb5>0x64)throw new ToolExecutionError(_0x44d06b(_0x35f3f9._0x300357,0x308,_0x35f3f9._0x48b137,_0x35f3f9._0x139da2),{'offset':_0x25fde6[_0x5e6416(_0x35f3f9._0x49901a,_0x35f3f9._0x3f2602,0x1bc,0x65)],'count':_0x1eadb5,'maxResults':0x64});const _0x46fe95=cseDateRestrict(_0x25fde6['recencyDays']),_0x2eb2d4=addSiteFilters(_0x25fde6[_0x5e6416(-_0x35f3f9._0x5382e5,0xf0,0x181,0x45)],_0x25fde6['domains']);let _0x47de41=0x0,_0x336a8a=_0x25fde6[_0x5e6416(0x153,-_0x35f3f9._0x15855e,0xcd,_0x35f3f9._0x4ccad2)]+0x1;function _0x5e6416(_0x501e08,_0x5d1a7b,_0x580bfa,_0x1334f3){return _0x4820c3(_0x501e08-0x8e,_0x5d1a7b-0x19c,_0x5d1a7b,_0x1334f3- -0x553);}const _0x610453=[];while(_0x47de41<_0x1eadb5){const _0x3bc123=Math[_0x44d06b(0x272,_0x35f3f9._0x457952,_0x35f3f9._0x1aae38,0x240)](0xa,_0x1eadb5-_0x47de41),_0x2cce1c=new URL(_0x44d06b(0x2a3,0x313,_0x35f3f9._0x1ad376,0x339));_0x2cce1c[_0x44d06b(0x214,0x2d5,_0x35f3f9._0xee2a8e,0x2a1)][_0x5e6416(_0x35f3f9._0x4de31a,_0x35f3f9._0x1246f4,_0x35f3f9._0x5b06ea,_0x35f3f9._0x5994f0)](_0x44d06b(0x2be,_0x35f3f9._0x519f0b,0x3fe,_0x35f3f9._0xca8597),_0x39240d['googleCseKey']),_0x2cce1c[_0x44d06b(_0x35f3f9._0x4d5bbc,_0x35f3f9._0xcfd285,_0x35f3f9._0x553529,0x2a1)]['set']('cx',_0x39240d[_0x5e6416(_0x35f3f9._0xc4c5f,_0x35f3f9._0x55fbaf,_0x35f3f9._0x277340,_0x35f3f9._0x54aaab)]),_0x2cce1c['searchParams'][_0x44d06b(0x214,0x133,0x1de,_0x35f3f9._0x4cb714)]('q',_0x2eb2d4),_0x2cce1c[_0x44d06b(0x3ae,0x3ad,0x32d,_0x35f3f9._0x437510)][_0x44d06b(_0x35f3f9._0x595367,_0x35f3f9._0x349ea6,0xf4,_0x35f3f9._0x4cb714)](_0x5e6416(0x1a7,_0x35f3f9._0x3f60cb,_0x35f3f9._0x48859f,0x1f8),String(_0x3bc123)),_0x2cce1c[_0x5e6416(_0x35f3f9._0x4b9139,-_0x35f3f9._0xe82f,0x170,_0x35f3f9._0x358873)][_0x44d06b(_0x35f3f9._0x25241d,0x2ad,0xcf,0x1fd)](_0x44d06b(_0x35f3f9._0xc9a75,0x3b4,_0x35f3f9._0xa0502f,_0x35f3f9._0x34c3c0),String(_0x336a8a)),_0x2cce1c['searchParams'][_0x44d06b(0x1f6,0x1c7,0x133,_0x35f3f9._0x48e304)](_0x44d06b(0x373,0x31d,0x1dc,_0x35f3f9._0x3821ce),_0x25fde6['safe']?_0x44d06b(_0x35f3f9._0x2cc4f9,_0x35f3f9._0x297d16,_0x35f3f9._0x3a3226,_0x35f3f9._0x58d934):_0x5e6416(_0x35f3f9._0x4bf217,0x31e,0x2a9,0x260));_0x25fde6[_0x44d06b(0x4cd,0x3df,_0x35f3f9._0x297d16,0x429)]&&(_0x2cce1c[_0x44d06b(0x236,0x180,0x27a,_0x35f3f9._0x437510)]['set']('hl',_0x25fde6[_0x44d06b(_0x35f3f9._0x16d013,0x443,0x57f,_0x35f3f9._0x1bb2c6)]),_0x2cce1c[_0x44d06b(0x249,0x3e7,_0x35f3f9._0x168afd,0x2a1)][_0x44d06b(_0x35f3f9._0x4e21de,_0x35f3f9._0x25f2f2,0x191,0x1fd)]('lr',_0x44d06b(_0x35f3f9._0x2de3e7,_0x35f3f9._0x1a3767,_0x35f3f9._0x57811e,0x250)+_0x25fde6[_0x44d06b(_0x35f3f9._0x258ac6,_0x35f3f9._0x31db82,0x36b,_0x35f3f9._0x13c8bf)]));if(_0x25fde6['region'])_0x2cce1c[_0x5e6416(-0x2c,0x12e,_0x35f3f9._0x441ca8,_0x35f3f9._0x358873)][_0x44d06b(0x1cc,_0x35f3f9._0x40cda1,_0x35f3f9._0x3052ee,_0x35f3f9._0x48e304)]('gl',_0x25fde6[_0x5e6416(0x250,_0x35f3f9._0x18281a,_0x35f3f9._0x389d06,0x1aa)][_0x5e6416(_0x35f3f9._0x5b7b07,_0x35f3f9._0x1432d5,_0x35f3f9._0x3eb12d,0x1ed)]());if(_0x25fde6['type']==='images')_0x2cce1c[_0x5e6416(0x167,_0x35f3f9._0x4c2675,-0xc,_0x35f3f9._0x2f6447)][_0x5e6416(0xd9,_0x35f3f9._0x4fdf40,_0x35f3f9._0x2d54cf,0x6d)]('searchType',_0x5e6416(0x340,0xc0,_0x35f3f9._0x33763c,_0x35f3f9._0x49f99c));if(_0x46fe95)_0x2cce1c['searchParams'][_0x5e6416(0x5b,-0x8d,0x10f,0x6d)](_0x44d06b(0x413,0x3f1,_0x35f3f9._0x247a49,0x2f0),_0x46fe95);const _0x56e261=await fetchJson(_0x2cce1c[_0x44d06b(_0x35f3f9._0x1d283e,0x228,_0x35f3f9._0x53d7c9,_0x35f3f9._0x3405b1)](),_0x2d3877),_0x22d918=_0x56e261[_0x5e6416(0x91,_0x35f3f9._0x987c4f,_0x35f3f9._0x464fe6,_0x35f3f9._0x120cff)]??[];if(_0x22d918[_0x44d06b(0x156,_0x35f3f9._0x1b5314,_0x35f3f9._0x38cf7a,0x2b2)]===0x0)break;const _0x4b57cd=_0x47de41;for(let _0x209573=0x0;_0x209573<_0x22d918[_0x44d06b(0x3e6,0x18c,_0x35f3f9._0x37da3a,_0x35f3f9._0x3bb7c4)];_0x209573++){const _0x513cfe=_0x22d918[_0x209573];if(!_0x513cfe)continue;const _0x2bc325=_0x513cfe['link']||_0x513cfe[_0x5e6416(_0x35f3f9._0x58ac30,0x25a,0x2c7,0x1f5)]?.['contextLink']||'',_0x4c5907=_0x513cfe[_0x44d06b(_0x35f3f9._0x2cc69a,_0x35f3f9._0x46f227,0x2e7,_0x35f3f9._0xe014ce)]||_0x513cfe[_0x5e6416(_0x35f3f9._0x4c0bc8,0x13e,0x262,0x1f5)]?.[_0x44d06b(_0x35f3f9._0x43b5ac,_0x35f3f9._0xdefe52,_0x35f3f9._0x3ebd0a,_0x35f3f9._0x5a603b)]||'Untitled',_0x275ef0=_0x513cfe[_0x44d06b(0x44c,0x27e,0x435,_0x35f3f9._0x30bf7f)]||_0x513cfe[_0x5e6416(_0x35f3f9._0x30a45e,_0x35f3f9._0xa9cbe4,_0x35f3f9._0x1c354d,0x27c)]?.[_0x44d06b(_0x35f3f9._0xf7019f,_0x35f3f9._0x37b74d,0x24c,_0x35f3f9._0x49916d)](/<[^>]+>/g,''),_0x2f1f28=_0x513cfe['pagemap']?.[_0x5e6416(_0x35f3f9._0x49007e,0x178,-_0x35f3f9._0x25f9b5,_0x35f3f9._0x8cc289)]?.[0x0]??{};let _0x353235;try{_0x353235=new URL(_0x2bc325)['host'];}catch{_0x353235=null;}_0x610453['push']({'title':_0x4c5907,'url':normalizeUrl(_0x2bc325),'snippet':_0x275ef0??null,'displayUrl':_0x353235,'favicon':null,'publishedAt':_0x2f1f28[_0x44d06b(_0x35f3f9._0x50087c,0x19b,_0x35f3f9._0x508a42,0x19f)]||_0x2f1f28[_0x44d06b(_0x35f3f9._0x1b725e,0x476,0x24e,_0x35f3f9._0x58f965)]||null,'source':{'engine':'google-cse','rank':_0x4b57cd+_0x209573+0x1}});}_0x47de41+=_0x22d918[_0x44d06b(0x194,_0x35f3f9._0x1fe94e,0x27b,_0x35f3f9._0x3bb7c4)],_0x336a8a+=_0x22d918[_0x44d06b(0x3c2,_0x35f3f9._0x35390a,0x16c,0x2b2)];if(_0x22d918[_0x5e6416(0x9,0xd1,_0x35f3f9._0x5a50f7,_0x35f3f9._0xc7c631)]<_0x3bc123)break;}return _0x610453[_0x5e6416(_0x35f3f9._0x4ab501,0x5a,-0x105,0x25)](0x0,_0x1eadb5);}function isGoogleCseEngine(_0x1e71b8){const _0x288f25={_0x40396d:0x115,_0xb05088:0x112,_0xcb9d45:0x16f};function _0x14c182(_0x41d2f,_0x277b06,_0x9618d6,_0x3f08e4){return _0x4820c3(_0x41d2f-0x5c,_0x277b06-0x1ed,_0x41d2f,_0x277b06- -0x679);}return _0x14c182(-_0x288f25._0x40396d,-_0x288f25._0xb05088,-0x7f,-_0x288f25._0xcb9d45)in _0x1e71b8;}function isOllamaEngine(_0x5a7bc8){const _0x42726f={_0x5ac4e9:0x470,_0x4cb14b:0x4fd},_0x7f611c={_0x102da0:0x27,_0x3687b1:0x186,_0x2ac43a:0x1b3};function _0x512d93(_0x171c49,_0x1cf2b3,_0x24a9c1,_0x384e1e){return _0x211934(_0x384e1e- -_0x7f611c._0x102da0,_0x1cf2b3-_0x7f611c._0x3687b1,_0x171c49,_0x384e1e-_0x7f611c._0x2ac43a);}return _0x512d93(_0x42726f._0x5ac4e9,0x2f5,_0x42726f._0x4cb14b,0x400)in _0x5a7bc8;}function isTavilyEngine(_0xe1e089){const _0x2c3930={_0x50bf38:0x237,_0x3cf863:0x1f9},_0x3628e5={_0x3186e1:0x20};function _0x3eca07(_0x599a47,_0x3f5f80,_0x3913b1,_0x2ba3e7){return _0x4820c3(_0x599a47-_0x3628e5._0x3186e1,_0x3f5f80-0x14a,_0x599a47,_0x3913b1- -0x392);}return _0x3eca07(0xa1,_0x2c3930._0x50bf38,_0x2c3930._0x3cf863,0x15b)in _0xe1e089;}function createWebSearchTool(_0x46f70c){const _0x6d0fab={_0x341dbc:0x149,_0x325080:0x18c,_0x2c36c9:0x18,_0x2837d2:0x162,_0x59548d:0xe8,_0x340e12:0x114,_0xdbd4ce:0x3e,_0x534833:0x10,_0x31804e:0x27,_0x37f691:0x129,_0x5c7793:0x32,_0x50c3c1:0x33d,_0x43bea9:0x292,_0x1e08ff:0x15f,_0xbd495b:0xe1,_0x5415b4:0x6e,_0x56bad6:0xb,_0x228b0e:0x4a,_0x344201:0x3f,_0x171f98:0x0,_0x4e591e:0x54,_0xacada8:0x3b,_0x3b8c0b:0x5a,_0x4f0b3a:0x44,_0x2f682c:0x17a,_0x493d89:0x55,_0x46744a:0x68,_0x87caa4:0xc4,_0x335795:0x12b,_0x51b7f3:0x50,_0x57a115:0x2a,_0x391a4c:0x57,_0x1ffbfc:0x11f,_0x737e79:0x1c7,_0x2e59b0:0x101},_0xa917de={_0x2a6154:0x27d,_0x1ca938:0x255,_0x4d90b8:0x246,_0x56cf1f:0x366,_0x7f7938:0x3a6,_0x1c63e4:0x2ec,_0x4b6748:0x344,_0x5bacb2:0x378,_0x69fb16:0x402,_0x43d9a6:0x377,_0xecef40:0x436,_0x11754d:0x2ba,_0x5c6cce:0x53d,_0x5f36a1:0x500,_0x1767aa:0x40a,_0x279814:0x31b,_0x20fbe1:0x41e,_0x55725d:0x35f,_0xdfd21f:0x347,_0x318ef3:0x401,_0x1f3a8a:0x2f3,_0xd36180:0x312,_0x382ec0:0x23f,_0xf496bb:0x323,_0x208692:0x5bb,_0x36b755:0x4a3,_0x273cf4:0x2a9,_0x13d960:0x43a,_0x116cbf:0x437,_0x38c7a8:0x472,_0x540644:0x5a1,_0x578631:0x499,_0x51152c:0x4e4,_0x1b5030:0x323,_0x3b0444:0x3da,_0x351f10:0x446,_0x339f47:0x2b8,_0x13b88d:0x1b0,_0xc7e3a5:0x192,_0x5e67fc:0x468,_0x3d81b1:0x5a2,_0x134573:0x32b,_0x3f2406:0x299,_0x470231:0x393,_0x2ba02a:0x407,_0x1285fd:0x359,_0x25a22e:0x2ec,_0x4c86e6:0x3e4,_0x108248:0x215,_0x2d5c27:0x41d,_0x5bf387:0x49d,_0x18a9fe:0x4db,_0x45d972:0x58c,_0x5b9ed7:0x4cb,_0x50ca2f:0x38f,_0x54a502:0x413,_0x5ee0e9:0x468,_0x49f826:0x3a8,_0x4b7a2c:0x59f,_0x4cc9e9:0x443,_0x3b300e:0x1ff,_0x2bc447:0x269,_0x2d6801:0x33e,_0x3c939d:0x3ea,_0x1c9fca:0x3ac,_0x4b0517:0x3c8,_0x258a5d:0x41c,_0xf728e1:0x351,_0x44b107:0x360,_0x7f1982:0x3c5,_0x2a5780:0x354,_0xab6e4f:0x355,_0x101652:0x405,_0x598fda:0x3b4,_0x26498f:0x428,_0x425299:0x492,_0x1a82c0:0x32f,_0x2296d9:0x408,_0x1a1a12:0x295,_0x42b311:0x3ba,_0x3baa67:0x32c,_0x31bab1:0x34c,_0x3469f2:0x24f,_0x89cc0b:0x1eb,_0x1e663c:0x414,_0x597628:0x39a,_0x57209f:0x4f9,_0x4729b0:0x4de},_0x3c054c={_0x22322c:0x244,_0x5eb34c:0xa8,_0x218125:0x15d};if(!_0x46f70c[_0x22379b(_0x6d0fab._0x341dbc,0x15f,0xcd,0xe0)]||_0x46f70c[_0x1729d0(_0x6d0fab._0x325080,0xe7,-_0x6d0fab._0x2c36c9,0x37)][_0x1729d0(_0x6d0fab._0x2837d2,_0x6d0fab._0x59548d,_0x6d0fab._0x340e12,-_0x6d0fab._0xdbd4ce)]===0x0)throw new Error(_0x1729d0(_0x6d0fab._0x534833,_0x6d0fab._0x31804e,_0x6d0fab._0x37f691,-_0x6d0fab._0x5c7793));const _0x29445f=_0x46f70c['name']??_0x1729d0(_0x6d0fab._0x50c3c1,0x23a,_0x6d0fab._0x43bea9,0x2e3);function _0x1729d0(_0xad564d,_0x225a14,_0x2e7fd4,_0x17aec8){return _0x211934(_0x225a14- -0x341,_0x225a14-0x1c8,_0xad564d,_0x17aec8-0x1a2);}function _0x22379b(_0x37c959,_0x229ca5,_0x20d1ab,_0xbef898){return _0x211934(_0x20d1ab- -0x35b,_0x229ca5-0x61,_0x229ca5,_0xbef898-0x74);}const _0x49925c=_0x46f70c[_0x1729d0(0xe7,-0x20,-_0x6d0fab._0x1e08ff,-_0x6d0fab._0xbd495b)];return defineTool({'name':_0x29445f,'description':_0x22379b(_0x6d0fab._0x5415b4,-0x82,-0x37,-_0x6d0fab._0x56bad6),'inputSchema':{'type':_0x1729d0(-0x115,_0x6d0fab._0x228b0e,-0xaf,-0x2c),'properties':{'description':{'type':'string'},'query':{'type':_0x22379b(_0x6d0fab._0x344201,0xd9,0x44,_0x6d0fab._0x171f98)},'count':{'type':_0x22379b(_0x6d0fab._0x4e591e,-0x100,0x2a,-_0x6d0fab._0xacada8)},'offset':{'type':_0x1729d0(_0x6d0fab._0x3b8c0b,_0x6d0fab._0x4f0b3a,_0x6d0fab._0x56bad6,0x95)},'domains':{'type':_0x1729d0(_0x6d0fab._0x2f682c,_0x6d0fab._0x493d89,0x1b0,0x16a),'items':{'type':_0x1729d0(_0x6d0fab._0x46744a,0x5e,_0x6d0fab._0x87caa4,0x6a)}},'recencyDays':{'type':_0x22379b(-_0x6d0fab._0x335795,_0x6d0fab._0x51b7f3,_0x6d0fab._0x57a115,-0x4e)},'lang':{'type':_0x22379b(0xf,-_0x6d0fab._0x391a4c,0x44,0x173)},'region':{'type':_0x22379b(-0x1,-0xef,0x44,0x1a)},'safe':{'type':_0x1729d0(0x1d8,_0x6d0fab._0x1ffbfc,-0x7,_0x6d0fab._0x737e79)},'type':{'type':'string'},'hydrateMeta':{'type':'boolean'}},'required':[_0x22379b(0xed,0x72,-0xf,-_0x6d0fab._0x2e59b0)]},async *'execute'(_0x3f37bd,_0xa90830){const _0x400d73={_0x2bba3a:0x633,_0x4d0cfc:0x5d0,_0x30599f:0x82f,_0x254c1a:0x749,_0x2ea7df:0x60c,_0x5eca45:0x8b,_0x1555e5:0xb6},_0xc76fb0={_0x2b6dd9:0x69,_0x432020:0x127},_0x1fd702={_0x33bf97:0x1a3},_0x26c1c1=_0x3f37bd[_0x2e5825(_0xa917de._0x2a6154,_0xa917de._0x1ca938,_0xa917de._0x4d90b8,_0xa917de._0x56cf1f)][_0x2e5825(0x311,_0xa917de._0x7f7938,_0xa917de._0x1c63e4,0x3a9)]();function _0x2e5825(_0x2adee6,_0x4674ca,_0x40a75e,_0x195692){return _0x22379b(_0x2adee6-_0x1fd702._0x33bf97,_0x195692,_0x2adee6-0x28c,_0x195692-0x43);}if(!_0x26c1c1)throw new ToolExecutionError(_0x25a367(0x2f5,0x526,0x561,0x422));const _0x3b3e06={'query':_0x26c1c1,'count':Math['max'](0x1,Math[_0x25a367(0x21a,_0xa917de._0x4b6748,_0xa917de._0x5bacb2,0x2ba)](0x32,Math[_0x2e5825(_0xa917de._0x69fb16,0x31a,0x431,_0xa917de._0x43d9a6)](_0x3f37bd[_0x25a367(_0xa917de._0xecef40,0x4c5,_0xa917de._0x11754d,0x39a)]??0xa))),'offset':Math[_0x25a367(0x2af,0x4f5,_0xa917de._0x5c6cce,0x401)](0x0,Math['trunc'](_0x3f37bd['offset']??0x0)),'domains':_0x3f37bd[_0x25a367(_0xa917de._0x5f36a1,_0xa917de._0x1767aa,_0xa917de._0x279814,_0xa917de._0x20fbe1)]??[],'recencyDays':Math[_0x25a367(_0xa917de._0x55725d,0x37a,_0xa917de._0xdfd21f,_0xa917de._0x318ef3)](0x0,Math[_0x25a367(_0xa917de._0x1f3a8a,0x521,_0xa917de._0xd36180,0x3d4)](_0x3f37bd[_0x25a367(0x377,_0xa917de._0x382ec0,0x2b3,_0xa917de._0xf496bb)]??0x0)),'lang':_0x3f37bd[_0x25a367(0x367,_0xa917de._0x208692,0x432,_0xa917de._0x36b755)]??'en','region':_0x3f37bd['region']??'','safe':_0x3f37bd[_0x25a367(0x362,_0xa917de._0x273cf4,_0xa917de._0x13d960,0x32e)]??!![],'type':normalizeType(_0x3f37bd[_0x2e5825(0x397,0x2a9,_0xa917de._0x116cbf,_0xa917de._0x38c7a8)]),'hydrateMeta':_0x3f37bd[_0x25a367(_0xa917de._0x540644,_0xa917de._0x578631,_0xa917de._0x51152c,0x4cb)]??![]};let _0x5a5895=[],_0x22e140=_0x2e5825(0x390,_0xa917de._0x1b5030,_0xa917de._0x3b0444,_0xa917de._0x351f10);for(const _0x204c68 of _0x46f70c[_0x2e5825(0x359,0x3ec,0x498,0x20d)]){try{if(isGoogleCseEngine(_0x204c68))_0x5a5895=await searchGoogleCse(_0x204c68,_0x3b3e06,_0xa90830['signal']),_0x22e140=_0x2e5825(_0xa917de._0x339f47,_0xa917de._0x13b88d,_0xa917de._0xc7e3a5,0x2a1);else{if(isOllamaEngine(_0x204c68)){const _0x5552be=await searchOllama(_0x204c68,_0x3b3e06,_0xa90830[_0x2e5825(_0xa917de._0x5e67fc,0x46a,0x421,_0xa917de._0x3d81b1)]);_0x5a5895=_0x5552be[_0x25a367(_0xa917de._0x134573,_0xa917de._0x3f2406,0x39a,0x36f)],_0x22e140=_0x5552be[_0x2e5825(0x30b,_0xa917de._0x470231,0x2cd,0x449)];}else{if(isTavilyEngine(_0x204c68)){const _0x5c21b4=await searchTavily(_0x204c68,_0x3b3e06,_0xa90830[_0x2e5825(0x468,_0xa917de._0x2ba02a,0x46b,_0xa917de._0x1285fd)]);_0x5a5895=_0x5c21b4['items'],_0x22e140=_0x5c21b4['engine'];}}}if(_0x5a5895[_0x25a367(_0xa917de._0x25a22e,0x237,_0xa917de._0x4c86e6,0x32c)]>0x0)break;}catch(_0x4d6b58){if(_0x204c68===_0x46f70c['engines'][_0x46f70c[_0x2e5825(0x359,0x33d,0x39a,_0xa917de._0x108248)][_0x2e5825(0x35a,_0xa917de._0x2d5c27,_0xa917de._0x5bf387,0x415)]-0x1])throw _0x4d6b58;}}_0x3b3e06[_0x25a367(_0xa917de._0x18a9fe,0x5da,_0xa917de._0x45d972,_0xa917de._0x5b9ed7)]&&_0x5a5895[_0x2e5825(0x35a,_0xa917de._0x50ca2f,0x3b3,0x464)]>0x0&&(_0x5a5895=await hydrateResults(_0x5a5895,_0x3b3e06[_0x25a367(0x4a5,_0xa917de._0x54a502,0x549,_0xa917de._0x36b755)],_0xa90830[_0x2e5825(_0xa917de._0x5ee0e9,_0xa917de._0x49f826,0x5b0,_0xa917de._0x4b7a2c)],_0x49925c));function _0x25a367(_0x268879,_0x38e3be,_0x3270f4,_0x274948){return _0x1729d0(_0x38e3be,_0x274948-_0x3c054c._0x22322c,_0x3270f4-_0x3c054c._0x5eb34c,_0x274948-_0x3c054c._0x218125);}const _0x5ab7d7=new Set();_0x5a5895=_0x5a5895[_0x25a367(0x332,0x3f8,0x4e8,_0xa917de._0x4cc9e9)](_0x615762=>{const _0xbce00e=_0x615762[_0x1d7b4d(_0x400d73._0x2bba3a,0x746,_0x400d73._0x4d0cfc,0x4fc)][_0x1d7b4d(0x779,_0x400d73._0x30599f,_0x400d73._0x254c1a,0x748)]();if(!_0xbce00e||_0x5ab7d7[_0x1d7b4d(0x6c7,_0x400d73._0x2ea7df,0x611,0x7ae)](_0xbce00e))return![];function _0x3cb845(_0x1d9c1c,_0x3f0c17,_0x5d54ef,_0x34c04f){return _0x25a367(_0x1d9c1c-0x8,_0x34c04f,_0x5d54ef-0x122,_0x5d54ef- -0x411);}function _0x1d7b4d(_0x29a37f,_0x159c1a,_0x96f891,_0x1420d8){return _0x2e5825(_0x29a37f-0x31f,_0x159c1a-_0xc76fb0._0x2b6dd9,_0x96f891-_0xc76fb0._0x432020,_0x96f891);}return _0x5ab7d7[_0x3cb845(0x19d,0xbd,_0x400d73._0x5eca45,_0x400d73._0x1555e5)](_0xbce00e),!![];}),_0x5a5895=_0x5a5895[_0x2e5825(0x257,_0xa917de._0x3b300e,_0xa917de._0x2bc447,_0xa917de._0x2d6801)]((_0x314383,_0x39e9b1)=>({..._0x314383,'source':{..._0x314383['source'],'rank':_0x39e9b1+0x1}}));const _0x4c8898={};if(_0x3b3e06['domains'][_0x25a367(_0xa917de._0x3c939d,0x447,0x419,0x32c)]>0x0)_0x4c8898[_0x2e5825(0x44c,0x445,_0xa917de._0x1c9fca,_0xa917de._0x4b0517)]=_0x3b3e06[_0x2e5825(0x44c,_0xa917de._0x258a5d,0x321,0x571)];if(_0x3b3e06[_0x2e5825(_0xa917de._0xf728e1,0x2f0,0x2eb,_0xa917de._0x44b107)]>0x0)_0x4c8898[_0x25a367(_0xa917de._0x7f1982,_0xa917de._0x2a5780,_0xa917de._0xab6e4f,_0xa917de._0xf496bb)]=_0x3b3e06['recencyDays'];if(_0x3b3e06[_0x25a367(_0xa917de._0x101652,0x480,0x5ed,0x4a3)]!=='en')_0x4c8898[_0x2e5825(0x4d1,0x5d1,0x50d,_0xa917de._0x598fda)]=_0x3b3e06['lang'];if(_0x3b3e06[_0x25a367(_0xa917de._0x26498f,0x3f2,0x3a1,0x3b4)])_0x4c8898[_0x25a367(_0xa917de._0x425299,_0xa917de._0x1a82c0,_0xa917de._0x54a502,0x3b4)]=_0x3b3e06[_0x2e5825(0x3e2,_0xa917de._0x2296d9,0x4aa,0x538)];return yield createToolOutput(formatResults(_0x5a5895),{'engine':_0x22e140,'count':_0x5a5895[_0x25a367(_0xa917de._0x1a1a12,0x3e0,_0xa917de._0x42b311,_0xa917de._0x3baa67)],'items':_0x5a5895,'query':_0x3b3e06[_0x25a367(0x16d,_0xa917de._0x31bab1,0x18f,_0xa917de._0x3469f2)],...Object[_0x25a367(0x2dc,_0xa917de._0x89cc0b,0x235,0x2d9)](_0x4c8898)['length']>0x0?{'appliedFilters':_0x4c8898}:{},'offset':_0x3b3e06['offset'],'totalRequested':_0x3b3e06[_0x25a367(0x278,_0xa917de._0x1e663c,0x4f3,_0xa917de._0x597628)],'hydrated':_0x3b3e06[_0x2e5825(_0xa917de._0x57209f,0x5e4,0x4f7,_0xa917de._0x4729b0)]}),void 0x0;}});}export{ToolExecutionError,ToolRegistry,assertWorkspaceFile,buildMcpHttpHeaders,connectMcpServer,createAskUserTool,createAssignTaskTool,createBashTool,createDelegateToAgentTool,createDelegationTools,createFileEditTool,createFileNewTool,createFileReadTool,createGlobTool,createGrepTool,createInternalToolRuntime,createInvokeCommandTool,createLoadSkillTool,createLsTool,createLspService,createLspTool,createMcpOAuthProvider,createMcpTool,createMcpToolName,createMcpToolsFromServers,createMockToolRuntime,createShellExecTool,createTodoWriteTool,createToolOutput,createUpdateTopicTool,createViewFileTool,createWebFetchTool,createWebSearchTool,defineTool,deriveFinalToolOutput,filepath,files,isProbablyBinary,normalizeToolOutputValue,resolveAllowedPath,resolveDelegatedAgentOptions,resolveWorkspacePath,search,toNuvinToolSchema,truncateToolOutput,validateToolInput};
|