@nuvin/agent-core 0.3.0 → 0.3.1-rc.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-FFIZ6TKW.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-NJFOEZ6V.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/routed-model.d.ts +1 -0
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/dist/tools/shell/bash-output-tool.d.ts +1 -4
- package/package.json +2 -2
package/dist/chunk-NJFOEZ6V.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0xdccbb3,_0xf24df0){const _0x2a8c94={_0x6727ba:0x17f,_0x43e2f0:0x1c4,_0x5f4aaa:0x186,_0x3b0677:0x13f,_0x4bd4ec:0x90,_0x4e70c4:0x1d8,_0x1954ad:0x2b2,_0x4e3a49:0x253,_0x12e3ba:0x21d,_0x15bfea:0x1fe,_0x36d1b2:0x183,_0x19cb2b:0x18d,_0x4c9fa1:0x169,_0xb39d77:0x18f,_0x376284:0x19b,_0x165d9:0x123,_0x24b0b5:0x296,_0x173a7a:0x287,_0x4744ee:0x20e,_0x581e7e:0x199,_0x519c83:0x126,_0x2f8d27:0x14c,_0x561f49:0x21b,_0x567c7e:0x1cb},_0x41c532=_0xdccbb3();function _0x37ddec(_0x43dad6,_0x49a745,_0x1a3c65,_0x9b86c5){return _0x24f0(_0x49a745- -0x31d,_0x9b86c5);}function _0x24c30d(_0x8e8af1,_0x2bfaac,_0x39a2a0,_0x38cc49){return _0x24f0(_0x2bfaac-0x61,_0x39a2a0);}while(!![]){try{const _0x288258=-parseInt(_0x24c30d(0x19c,0x1ee,0x1b7,_0x2a8c94._0x6727ba))/0x1+parseInt(_0x37ddec(-_0x2a8c94._0x43e2f0,-_0x2a8c94._0x5f4aaa,-_0x2a8c94._0x3b0677,-0x15d))/0x2*(parseInt(_0x37ddec(-0xf3,-0x10c,-0x16f,-_0x2a8c94._0x4bd4ec))/0x3)+parseInt(_0x37ddec(-0x1fa,-_0x2a8c94._0x4e70c4,-0x23e,-0x201))/0x4*(-parseInt(_0x24c30d(_0x2a8c94._0x1954ad,_0x2a8c94._0x4e3a49,_0x2a8c94._0x12e3ba,_0x2a8c94._0x15bfea))/0x5)+-parseInt(_0x37ddec(-0x17f,-_0x2a8c94._0x36d1b2,-_0x2a8c94._0x19cb2b,-0x14e))/0x6+parseInt(_0x37ddec(-_0x2a8c94._0x4c9fa1,-_0x2a8c94._0xb39d77,-_0x2a8c94._0x376284,-_0x2a8c94._0x165d9))/0x7+-parseInt(_0x24c30d(0x29b,_0x2a8c94._0x24b0b5,0x298,_0x2a8c94._0x173a7a))/0x8+parseInt(_0x24c30d(_0x2a8c94._0x4744ee,_0x2a8c94._0x581e7e,_0x2a8c94._0x519c83,_0x2a8c94._0x2f8d27))/0x9*(parseInt(_0x24c30d(0x271,_0x2a8c94._0x561f49,0x1db,_0x2a8c94._0x567c7e))/0xa);if(_0x288258===_0xf24df0)break;else _0x41c532['push'](_0x41c532['shift']());}catch(_0x58a172){_0x41c532['push'](_0x41c532['shift']());}}}(_0x4d5f,0xc0fff));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x273526){return typeof _0x273526==='object'&&_0x273526!==null&&!Array['isArray'](_0x273526);}function isToolOutputEnvelope(_0x1a5142){const _0x550f0e={_0x1f4521:0x133,_0x436488:0x140,_0xb06f27:0x114,_0x3db6c0:0x9f,_0x3c046:0xbb,_0x4dabdc:0x62},_0x36ae19={_0x5aac7e:0xa},_0x82fec5={_0x121804:0xf5};if(typeof _0x1a5142!=='object'||_0x1a5142===null||Array['isArray'](_0x1a5142))return![];if(typeof _0x1a5142[_0x35f5cf(_0x550f0e._0x1f4521,_0x550f0e._0x436488,0x114,0x195)]!==_0x35f5cf(0x100,_0x550f0e._0xb06f27,0xbe,0x16d))return![];function _0x35f5cf(_0x220650,_0x557368,_0xbb756f,_0x3aee8b){return _0x24f0(_0x220650- -_0x82fec5._0x121804,_0x3aee8b);}function _0x129464(_0xe7d581,_0x84b846,_0x1f3ed8,_0x376750){return _0x24f0(_0x1f3ed8- -_0x36ae19._0x5aac7e,_0x376750);}const _0x3292f7=_0x1a5142[_0x35f5cf(_0x550f0e._0x3db6c0,0x19,_0x550f0e._0x3c046,_0x550f0e._0x4dabdc)];return _0x3292f7===void 0x0||isJsonObject(_0x3292f7);}function validateAgainstSchema(_0x1a3083,_0x293e1e,_0x386d1c){const _0x4d14b7={_0x4ef629:0x225,_0x2c9520:0x243,_0x269a0a:0x559,_0x25132f:0x4f4,_0x34411e:0x49a,_0x32ce72:0x27c,_0x70f298:0x24b,_0xfbde06:0x4d6,_0x190392:0x2cd,_0x1e064a:0x2a2,_0x2d21b8:0x306,_0x406472:0x1e4,_0x2439ed:0x22b,_0x303dc1:0x215,_0x5a14be:0x224,_0x30c570:0x4eb,_0xd8f306:0x52e,_0x55be2b:0x4c5,_0x290a71:0x482,_0x53bc04:0x4b4,_0x158304:0x516,_0x555dff:0x1e4,_0x14e7c0:0x215,_0x35e42f:0x1b8,_0x44c97e:0x239,_0x49d297:0x278,_0x2460c3:0x2bc,_0x8a7e2e:0x250,_0x2dae27:0x2da,_0xf7b3e1:0x23e,_0x3ebe26:0x4af,_0x5d1daa:0x32f,_0x42409d:0x2d4,_0x7d619d:0x23a,_0x4aee34:0x2b7,_0x9cdaea:0x26c,_0x14e613:0x2b2,_0x1ea642:0x1b1,_0xc4684b:0x241,_0x3d38a3:0x495,_0x3c59b2:0x47e,_0x459ea2:0x29a,_0x624ad:0x319,_0x36c7ee:0x221,_0x481b3a:0x2a3,_0x39ae9f:0x275,_0x28a60f:0x2f6,_0x5e3d2d:0x2c7,_0x39ecb3:0x528,_0x4dde92:0x439,_0x48bea6:0x3ca,_0x3e919d:0x412,_0x4d420c:0x3d0,_0x3efe6a:0x500,_0x5f3902:0x497,_0x138aa8:0x3f8,_0x4bd73d:0x466,_0x1a1043:0x3ed,_0x5806ca:0x4a6,_0x4181a7:0x468,_0x4636f4:0x3a9,_0x567655:0x3fd,_0x186cdc:0x3da,_0xf0baaa:0x4e5,_0x4ac553:0x463,_0x7bfec1:0x37f,_0x3ebec4:0x319,_0x5f2cab:0x3f3,_0x195f53:0x493,_0x2e38df:0x499,_0x7c51d0:0x49b,_0x526916:0x3af,_0x5633a0:0x424,_0x40df3b:0x4f9,_0x5b4aef:0x507,_0x3c974a:0x398,_0x43639f:0x447},_0x3402de={_0x4f9f26:0x2f6,_0x3ea2e0:0x2b3,_0x9c138d:0x319},_0x49de85={_0x43e105:0x14f,_0x150907:0x43},_0x1ab372={_0x311115:0x2b3},_0x28b6e2={_0x43667f:0xd8};if(_0x5a5cd5(_0x4d14b7._0x4ef629,0x2e4,_0x4d14b7._0x2c9520,0x293)in _0x386d1c){const _0x1d7bbb=_0x386d1c['anyOf']['some'](_0x5dcefd=>{try{return validateAgainstSchema(_0x1a3083,_0x293e1e,_0x5dcefd),!![];}catch{return![];}});if(!_0x1d7bbb)throw new Error(_0x45a592(_0x4d14b7._0x269a0a,0x558,0x544,_0x4d14b7._0x25132f)+_0x1a3083+_0x45a592(0x4e2,0x4b4,_0x4d14b7._0x34411e,0x471));return;}function _0x5a5cd5(_0x39b14c,_0x1879ba,_0x529384,_0x207aac){return _0x24f0(_0x207aac-_0x28b6e2._0x43667f,_0x529384);}function _0x45a592(_0x4afd4d,_0x131591,_0x2979e0,_0x2413f9){return _0x24f0(_0x2413f9-_0x1ab372._0x311115,_0x131591);}switch(_0x386d1c[_0x5a5cd5(0x1fc,_0x4d14b7._0x32ce72,0x1c2,_0x4d14b7._0x70f298)]){case _0x45a592(0x4e6,0x438,_0x4d14b7._0xfbde06,0x4a8):if(typeof _0x293e1e!==_0x5a5cd5(0x28a,0x31c,0x2c7,_0x4d14b7._0x190392))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1a3083+_0x5a5cd5(0x336,_0x4d14b7._0x1e064a,0x2c1,_0x4d14b7._0x2d21b8));if(_0x386d1c[_0x5a5cd5(_0x4d14b7._0x406472,0x1c2,_0x4d14b7._0x2439ed,_0x4d14b7._0x303dc1)]!==void 0x0&&!_0x386d1c[_0x5a5cd5(_0x4d14b7._0x5a14be,0x1d2,0x192,0x215)][_0x45a592(0x4cc,_0x4d14b7._0x30c570,_0x4d14b7._0xd8f306,_0x4d14b7._0x55be2b)](_0x293e1e))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1a3083+_0x45a592(_0x4d14b7._0x290a71,_0x4d14b7._0x53bc04,_0x4d14b7._0x158304,0x4d6)+_0x386d1c[_0x5a5cd5(0x28b,0x1e1,_0x4d14b7._0x555dff,_0x4d14b7._0x14e7c0)][_0x5a5cd5(_0x4d14b7._0x35e42f,_0x4d14b7._0x44c97e,0x20e,0x21a)](',\x20'));return;case _0x5a5cd5(0x1d7,_0x4d14b7._0x49d297,_0x4d14b7._0x2460c3,_0x4d14b7._0x8a7e2e):if(typeof _0x293e1e!==_0x5a5cd5(_0x4d14b7._0x2dae27,_0x4d14b7._0xf7b3e1,0x2a2,0x250))throw new Error(_0x45a592(_0x4d14b7._0x3ebe26,0x498,0x51c,_0x4d14b7._0x25132f)+_0x1a3083+_0x5a5cd5(_0x4d14b7._0x5d1daa,_0x4d14b7._0x42409d,_0x4d14b7._0x7d619d,_0x4d14b7._0x4aee34));return;case _0x5a5cd5(0x1c4,_0x4d14b7._0x9cdaea,_0x4d14b7._0x14e613,0x231):if(typeof _0x293e1e!==_0x5a5cd5(_0x4d14b7._0x1ea642,0x206,_0x4d14b7._0xc4684b,0x231))throw new Error(_0x45a592(_0x4d14b7._0x3d38a3,0x47f,0x4b1,0x4f4)+_0x1a3083+_0x5a5cd5(0x2b9,0x2e0,0x2b7,0x2f6));return;case _0x45a592(0x505,_0x4d14b7._0x55be2b,0x40a,_0x4d14b7._0x3c59b2):if(!Array[_0x5a5cd5(0x20e,0x223,0x28b,0x28e)](_0x293e1e))throw new Error(_0x5a5cd5(0x376,0x2a1,_0x4d14b7._0x459ea2,_0x4d14b7._0x624ad)+_0x1a3083+':\x20expected\x20array');_0x293e1e[_0x5a5cd5(_0x4d14b7._0x36c7ee,_0x4d14b7._0x481b3a,0x2d9,_0x4d14b7._0x39ae9f)]((_0xb6c7eb,_0x1a433b)=>{function _0x5cd742(_0x593b66,_0x45e170,_0x11fb12,_0x33d51d){return _0x5a5cd5(_0x593b66-_0x49de85._0x43e105,_0x45e170-0x10e,_0x45e170,_0x11fb12-_0x49de85._0x150907);}validateAgainstSchema(_0x1a3083+'['+_0x1a433b+']',_0xb6c7eb,_0x386d1c[_0x5cd742(_0x3402de._0x4f9f26,0x302,_0x3402de._0x3ea2e0,_0x3402de._0x9c138d)]);});return;case _0x5a5cd5(_0x4d14b7._0x28a60f,0x28a,0x2e6,_0x4d14b7._0x5e3d2d):if(!isJsonObject(_0x293e1e))throw new Error(_0x45a592(0x501,_0x4d14b7._0x39ecb3,0x53c,0x4f4)+_0x1a3083+_0x45a592(_0x4d14b7._0x4dde92,_0x4d14b7._0x48bea6,0x4ab,0x429));for(const _0x305428 of _0x386d1c['required']??[]){if(!Object[_0x45a592(_0x4d14b7._0x3e919d,_0x4d14b7._0x4d420c,0x385,0x3e7)](_0x293e1e,_0x305428))throw new Error(_0x45a592(0x521,_0x4d14b7._0x3efe6a,_0x4d14b7._0x5f3902,0x4f4)+_0x1a3083+_0x45a592(_0x4d14b7._0x138aa8,0x3bb,_0x4d14b7._0x4bd73d,_0x4d14b7._0x1a1043)+_0x305428+'\x22');}if(_0x386d1c[_0x45a592(0x497,0x4ff,0x528,_0x4d14b7._0x5806ca)]===![]){const _0x998378=Object[_0x45a592(_0x4d14b7._0x4181a7,_0x4d14b7._0x4636f4,0x45a,_0x4d14b7._0x567655)](_0x293e1e)[_0x45a592(_0x4d14b7._0x186cdc,_0x4d14b7._0xf0baaa,0x408,_0x4d14b7._0x4ac553)](_0x3935e4=>!Object[_0x5a5cd5(0x1fd,0x1ed,0x1e5,0x20c)](_0x386d1c[_0x5a5cd5(0x26d,0x31b,0x2cd,0x2b4)],_0x3935e4));if(_0x998378!==void 0x0)throw new Error(_0x5a5cd5(_0x4d14b7._0x7bfec1,0x2a7,_0x4d14b7._0x14e613,_0x4d14b7._0x3ebec4)+_0x1a3083+_0x45a592(_0x4d14b7._0x5f2cab,_0x4d14b7._0x195f53,_0x4d14b7._0x2e38df,0x43d)+_0x998378+'\x22');}for(const [_0x3b30ae,_0x3a6568]of Object[_0x45a592(_0x4d14b7._0x7c51d0,0x428,_0x4d14b7._0x526916,_0x4d14b7._0x5633a0)](_0x386d1c[_0x45a592(0x4e4,_0x4d14b7._0x40df3b,_0x4d14b7._0x5b4aef,0x48f)])){Object[_0x45a592(_0x4d14b7._0x3c974a,_0x4d14b7._0x7bfec1,_0x4d14b7._0x43639f,0x3e7)](_0x293e1e,_0x3b30ae)&&validateAgainstSchema(_0x1a3083+'.'+_0x3b30ae,_0x293e1e[_0x3b30ae],_0x3a6568);}}}function normalizeToolOutputValue(_0x5153db){const _0x3ca988={_0x4db00d:0x342,_0x4b2503:0x3c5,_0x9aadb5:0x7,_0xe7b359:0x3d,_0x553692:0x53,_0x5a5b78:0x7b,_0x41d21e:0xfd,_0x33cf49:0x3a,_0x1e8083:0xad,_0x1972b0:0x355,_0x219515:0x274},_0x398bb4={_0x1f75a9:0x22f};function _0x34793e(_0x449cae,_0x187a83,_0xed4087,_0x1db067){return _0x24f0(_0x449cae- -_0x398bb4._0x1f75a9,_0x1db067);}if(isToolOutputEnvelope(_0x5153db))return{'output':_0x5153db['output'],'structured':_0x5153db[_0x53e43d(_0x3ca988._0x4db00d,_0x3ca988._0x4b2503,0x2d2,0x33f)]??{'value':_0x5153db[_0x34793e(-_0x3ca988._0x9aadb5,-_0x3ca988._0xe7b359,-_0x3ca988._0x553692,_0x3ca988._0x5a5b78)]},..._0x5153db['content']!==void 0x0?{'content':_0x5153db[_0x34793e(-_0x3ca988._0x41d21e,-0x12c,-0x7d,-0xc2)]}:{}};function _0x53e43d(_0x23b06f,_0x37f7c,_0x164deb,_0x4606b0){return _0x24f0(_0x23b06f-0x1ae,_0x37f7c);}if(typeof _0x5153db===_0x34793e(-_0x3ca988._0x33cf49,-0x38,-0x6e,-_0x3ca988._0x1e8083))return{'output':_0x5153db,'structured':{'value':_0x5153db}};if(typeof _0x5153db===_0x53e43d(0x39d,0x412,_0x3ca988._0x1972b0,0x3ea)&&_0x5153db!==null&&!Array['isArray'](_0x5153db))return{'output':JSON[_0x53e43d(0x2e1,0x2d6,_0x3ca988._0x219515,0x352)](_0x5153db,null,0x2),'structured':_0x5153db};return{'output':JSON['stringify'](_0x5153db,null,0x2),'structured':{'value':_0x5153db}};}function createToolOutput(_0x24cc8a,_0x23fd8c={'value':_0x24cc8a},_0x3ccb74){return{'output':_0x24cc8a,'structured':_0x23fd8c,..._0x3ccb74!==void 0x0?{'content':_0x3ccb74}:{}};}function _0x24f0(_0x468cc8,_0x5ee471){_0x468cc8=_0x468cc8-0x132;const _0x4d5f0e=_0x4d5f();let _0x24f011=_0x4d5f0e[_0x468cc8];if(_0x24f0['iGAGum']===undefined){var _0x5e2370=function(_0x4ff7ea){const _0x39faa9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x273526='',_0x1a5142='';for(let _0x3292f7=0x0,_0x1a3083,_0x293e1e,_0x386d1c=0x0;_0x293e1e=_0x4ff7ea['charAt'](_0x386d1c++);~_0x293e1e&&(_0x1a3083=_0x3292f7%0x4?_0x1a3083*0x40+_0x293e1e:_0x293e1e,_0x3292f7++%0x4)?_0x273526+=String['fromCharCode'](0xff&_0x1a3083>>(-0x2*_0x3292f7&0x6)):0x0){_0x293e1e=_0x39faa9['indexOf'](_0x293e1e);}for(let _0x1d7bbb=0x0,_0x5dcefd=_0x273526['length'];_0x1d7bbb<_0x5dcefd;_0x1d7bbb++){_0x1a5142+='%'+('00'+_0x273526['charCodeAt'](_0x1d7bbb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1a5142);};_0x24f0['SaIQHi']=_0x5e2370,_0x24f0['FIeCgZ']={},_0x24f0['iGAGum']=!![];}const _0x51c7a1=_0x4d5f0e[0x0],_0x2a3edc=_0x468cc8+_0x51c7a1,_0x2b6ad3=_0x24f0['FIeCgZ'][_0x2a3edc];return!_0x2b6ad3?(_0x24f011=_0x24f0['SaIQHi'](_0x24f011),_0x24f0['FIeCgZ'][_0x2a3edc]=_0x24f011):_0x24f011=_0x2b6ad3,_0x24f011;}var ToolExecutionError=class extends Error{[_0x39f914(-0x11b,-0x118,-0x21,-0xa6)];constructor(_0x4be2b5,_0x57dff9={}){const _0x1efbd4={_0x378acd:0xdf,_0x28dc02:0xe6,_0x3eee2:0xc7,_0xfbd2e:0x30,_0x381686:0x66,_0x3e01c3:0xad,_0x5da75f:0x67,_0x1bc61f:0x130,_0x3b6f9f:0x6c},_0x456d8d={_0x3a65fb:0x153};function _0x33c8ad(_0x26be67,_0x5093ee,_0x39d43d,_0x63c104){return _0x39f914(_0x26be67-0x161,_0x5093ee-0x188,_0x39d43d,_0x26be67-_0x456d8d._0x3a65fb);}super(_0x4be2b5),this[_0x33c8ad(_0x1efbd4._0x378acd,0x118,_0x1efbd4._0x28dc02,_0x1efbd4._0x3eee2)]=_0x404c0b(0x12,_0x1efbd4._0xfbd2e,0x27,_0x1efbd4._0x381686);function _0x404c0b(_0x27aa31,_0x30ddf1,_0x43f2ee,_0xa5c17d){return _0x39f914(_0x27aa31-0x3b,_0x30ddf1-0x15b,_0x43f2ee,_0x30ddf1-0x28);}this[_0x33c8ad(_0x1efbd4._0x3e01c3,_0x1efbd4._0x5da75f,_0x1efbd4._0x1bc61f,_0x1efbd4._0x3b6f9f)]=_0x57dff9;}};function defineTool(_0x6d3635){return _0x6d3635;}function resolveToolPermissionClass(_0x302069){const _0x5b52d5={_0x2a57ad:0x152,_0x55fff6:0xd2,_0x293f94:0x1c0,_0x4afb5d:0x206,_0xb78ad9:0xe6,_0x1f8901:0x13f,_0x136924:0x10e,_0x42554c:0xd1,_0xf00606:0x17a},_0x1f63a4={_0x3e0ca2:0xc1},_0x4bc402=_0x302069?.[_0x312815(_0x5b52d5._0x2a57ad,0x10c,0x191,_0x5b52d5._0x55fff6)];function _0x312815(_0x44fa13,_0xd07137,_0xabb13c,_0x105e49){return _0x39f914(_0x44fa13-_0x1f63a4._0x3e0ca2,_0xd07137-0x7,_0x44fa13,_0xd07137-0x1ea);}if(_0x4bc402===_0x312815(0x185,_0x5b52d5._0x293f94,_0x5b52d5._0x4afb5d,0x1d9)||_0x4bc402===_0xd00a9f(0x38,-0x42,-0x80,-0x27)||_0x4bc402===_0x312815(_0x5b52d5._0xb78ad9,_0x5b52d5._0x1f8901,_0x5b52d5._0x136924,0x17e))return _0x4bc402;function _0xd00a9f(_0x4f7261,_0x47d134,_0x1844ab,_0x241c96){return _0x39f914(_0x4f7261-0x16c,_0x47d134-0xd9,_0x4f7261,_0x47d134-0x34);}return _0x312815(0xc2,_0x5b52d5._0x1f8901,_0x5b52d5._0x42554c,_0x5b52d5._0xf00606);}var ToolRegistry=class{[_0x39f914(0x74,0x5f,0x6e,-0xf)]=new Map();constructor(_0x4925b2=[]){const _0x332d1d={_0x1ca010:0x63,_0x262443:0x14,_0x2fffc4:0x50},_0x4b1716={_0x483b0f:0x68,_0x11c259:0x87};function _0x2f4faa(_0x479225,_0x31c7bd,_0x31bc8e,_0x31df9f){return _0x39f914(_0x479225-0x17a,_0x31c7bd-_0x4b1716._0x483b0f,_0x31c7bd,_0x479225-_0x4b1716._0x11c259);}for(const _0x46df6b of _0x4925b2){this[_0x2f4faa(-_0x332d1d._0x1ca010,_0x332d1d._0x262443,-_0x332d1d._0x2fffc4,-0x94)](_0x46df6b);}}[_0x902988(0x3bc,0x440,0x3c6,0x379)](_0x16d032){const _0x29f7c5={_0x3ede7a:0x1aa,_0x36df4f:0x1ba,_0x3e9b96:0x1d,_0x592434:0x18,_0x524abe:0x9,_0x2587c6:0x41},_0x535962={_0x2d6dcd:0x134,_0x27f86f:0x1ea,_0x1d01aa:0x370},_0x816f8a={_0x4ee170:0x1cf,_0x435389:0xf5,_0x159cd2:0x493};function _0x439f50(_0x51f5a7,_0x6dad76,_0x36caad,_0x46352a){return _0x902988(_0x51f5a7-_0x816f8a._0x4ee170,_0x6dad76-_0x816f8a._0x435389,_0x36caad- -_0x816f8a._0x159cd2,_0x51f5a7);}function _0x5bf309(_0x42c770,_0x98ed47,_0x2e6328,_0x599784){return _0x902988(_0x42c770-_0x535962._0x2d6dcd,_0x98ed47-_0x535962._0x27f86f,_0x599784- -_0x535962._0x1d01aa,_0x42c770);}this[_0x5bf309(_0x29f7c5._0x3ede7a,0x127,_0x29f7c5._0x36df4f,0x131)][_0x439f50(-0x41,_0x29f7c5._0x3e9b96,-_0x29f7c5._0x592434,-_0x29f7c5._0x524abe)](_0x16d032[_0x5bf309(0x9a,0xec,_0x29f7c5._0x2587c6,0xcc)],_0x16d032);}[_0x902988(0x3c4,0x3fa,0x3b9,0x3bd)](_0x39c39f){const _0x28d566={_0x2185fc:0x1bf,_0x5dd860:0x177,_0x321491:0x16a},_0xaedff8={_0x449edc:0x19,_0x4baa56:0x2ee},_0x10de24={_0x2d8f5b:0x195,_0x260154:0x530};function _0x3e99a0(_0x2c706f,_0x1478fd,_0x2b84a2,_0x2f23ed){return _0x902988(_0x2c706f-_0x10de24._0x2d8f5b,_0x1478fd-0xfc,_0x2c706f- -_0x10de24._0x260154,_0x2f23ed);}function _0x580cdb(_0x4588e5,_0x329110,_0x2b3f65,_0x36361b){return _0x902988(_0x4588e5-0x9,_0x329110-_0xaedff8._0x449edc,_0x4588e5- -_0xaedff8._0x4baa56,_0x2b3f65);}return this[_0x580cdb(0x1b3,_0x28d566._0x2185fc,0x187,0x179)][_0x3e99a0(-_0x28d566._0x5dd860,-_0x28d566._0x321491,-0x1d4,-0x1ca)](_0x39c39f);}[_0x902988(0x449,0x4ff,0x485,0x451)](){const _0x5464c5={_0xdc1778:0x423},_0x2af1ab={_0x31bd23:0x5b};function _0x472512(_0x2e3909,_0x28ad9c,_0x54f3ca,_0x299ea1){return _0x902988(_0x2e3909-0x155,_0x28ad9c-0xb,_0x54f3ca- -_0x2af1ab._0x31bd23,_0x28ad9c);}return[...this['toolsByName'][_0x472512(_0x5464c5._0xdc1778,0x38a,0x404,0x442)]()];}[_0x902988(0x45f,0x36f,0x3d8,0x40c)](){const _0x2dc98c={_0x5dc171:0x1d2},_0x266aff={_0x4b0072:0x21f},_0x17ceb6={_0x475257:0xe7};function _0x1a84e6(_0x390389,_0xab3e92,_0x485c49,_0x1e330a){return _0x902988(_0x390389-0x6a,_0xab3e92-_0x17ceb6._0x475257,_0x1e330a- -0x284,_0x390389);}return this[_0x1a84e6(_0x2dc98c._0x5dc171,0x25f,0x17e,0x201)]()['map'](_0x478e56=>{const _0x518f13={_0x23af07:0xa9};function _0x558f8e(_0xd67663,_0x130d3f,_0x4d3d9b,_0x3dbbb5){return _0x1a84e6(_0x130d3f,_0x130d3f-_0x518f13._0x23af07,_0x4d3d9b-0x168,_0x3dbbb5-0x97);}return{'name':_0x478e56[_0x558f8e(0x28c,_0x266aff._0x4b0072,0x291,0x24f)],'description':_0x478e56['description'],'input_schema':_0x478e56['inputSchema']};});}};function _0x39f914(_0x30a88f,_0x1189b4,_0x3c5bb2,_0xb791e2){return _0x24f0(_0xb791e2- -0x23a,_0x3c5bb2);}function validateToolInput(_0x268a3b,_0x163137){return validateAgainstSchema('input',_0x268a3b,_0x163137),_0x268a3b;}function deriveFinalToolOutput(_0x1605cb){const _0x572e2b={_0x4cb434:0x38c,_0x1f5c7a:0x37b,_0x43078f:0x395,_0x32f975:0x3bb,_0x2ffe98:0x3d1,_0x317387:0x357,_0x2c5020:0x327,_0x54d4d8:0x3cf,_0x32010a:0x39f,_0x13cdb4:0x337,_0x320f73:0x33f,_0x2ba7cc:0x402,_0x806047:0x37c,_0x59ab26:0x3a7,_0x3f8520:0x327,_0x33fc8b:0x2b6,_0x38eb25:0x359},_0x4e9d91={_0xd751b1:0x1e9,_0x2b904a:0xbc,_0x4baabf:0x81},_0x918609={_0x5be589:0x1ac,_0x4db0ba:0xf7};if(_0x1605cb[_0x385976(_0x572e2b._0x4cb434,0x39e,0x40f,_0x572e2b._0x1f5c7a)]===0x0)return{'output':'','structured':{}};function _0x385976(_0x6a3ee0,_0x5c098c,_0x256178,_0x24b575){return _0x902988(_0x6a3ee0-0x2e,_0x5c098c-_0x918609._0x5be589,_0x6a3ee0- -_0x918609._0x4db0ba,_0x5c098c);}if(_0x1605cb[_0xacaf6f(0x455,0x402,0x3c1,_0x572e2b._0x43078f)]===0x1)return{'output':_0x1605cb[0x0][_0x385976(0x3a7,0x3e6,_0x572e2b._0x32f975,0x3cf)],'structured':_0x1605cb[0x0][_0xacaf6f(_0x572e2b._0x2ffe98,0x389,0x30a,0x3e8)],..._0x1605cb[0x0]['content']!==void 0x0?{'content':_0x1605cb[0x0][_0xacaf6f(_0x572e2b._0x317387,_0x572e2b._0x2c5020,0x3a5,0x326)]}:{}};const _0x169edc=_0x1605cb[_0xacaf6f(0x442,_0x572e2b._0x54d4d8,0x37b,0x433)](_0x31ff5a=>_0x31ff5a['content']!==void 0x0);function _0xacaf6f(_0x3f7750,_0x292134,_0x331af4,_0x56bf46){return _0x902988(_0x3f7750-_0x4e9d91._0xd751b1,_0x292134-_0x4e9d91._0x2b904a,_0x292134- -_0x4e9d91._0x4baabf,_0x3f7750);}return{'output':_0x1605cb[_0x385976(_0x572e2b._0x32010a,0x372,0x429,0x3b5)](_0x2d7622=>_0x2d7622[_0x385976(0x3a7,0x372,0x3a7,0x335)])[_0xacaf6f(0x323,_0x572e2b._0x13cdb4,_0x572e2b._0x320f73,0x384)](''),'structured':{'chunks':_0x1605cb['map'](_0x86eab=>_0x86eab[_0x385976(0x313,0x37c,0x2d1,0x374)])},..._0x169edc[_0xacaf6f(0x43e,_0x572e2b._0x2ba7cc,0x423,_0x572e2b._0x806047)]===0x1?{'content':_0x169edc[0x0][_0xacaf6f(_0x572e2b._0x59ab26,_0x572e2b._0x3f8520,_0x572e2b._0x33fc8b,_0x572e2b._0x38eb25)]}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x1b6004){const _0x50c201={_0x1b83b0:0xa0,_0x3578a2:0x130,_0x26ef1e:0x11,_0x5f03da:0x16,_0x1a4117:0x4fc,_0x9e8fe4:0x4f3},_0x592b0a={_0x3e8418:0x35};function _0xeabf6(_0x207868,_0x595cbe,_0xda4270,_0x5378a7){return _0x39f914(_0x207868-0x1ea,_0x595cbe-0x60,_0x207868,_0x5378a7-0x34);}function _0xe22b35(_0x410fdb,_0x4ca6c4,_0x557620,_0x49b56a){return _0x902988(_0x410fdb-0x1b2,_0x4ca6c4-_0x592b0a._0x3e8418,_0x557620-0x107,_0x4ca6c4);}super(_0xeabf6(-_0x50c201._0x1b83b0,-0x65,-_0x50c201._0x3578a2,-0xae),{'cause':_0x1b6004}),this[_0xeabf6(-0x15,_0x50c201._0x26ef1e,-_0x50c201._0x5f03da,-0x40)]=_0xe22b35(0x51d,_0x50c201._0x1a4117,0x562,_0x50c201._0x9e8fe4);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x3318b0,_0x4e78fd){const _0x2a51b7={_0x228e1e:0x11c,_0xca4fef:0x162},_0x3abee9={_0x4fcf36:0x36},_0x10dde9={_0x585255:0x92,_0x3c0fc4:0xa7};function _0x15b947(_0x43a288,_0x3a7594,_0x1e0689,_0x3a2def){return _0x902988(_0x43a288-_0x10dde9._0x585255,_0x3a7594-_0x10dde9._0x3c0fc4,_0x1e0689- -0x23b,_0x43a288);}function _0x5dfc1f(_0x3f6e35,_0x1652fd,_0x4cb923,_0x577c74){return _0x902988(_0x3f6e35-_0x3abee9._0x4fcf36,_0x1652fd-0x11b,_0x3f6e35- -0x1df,_0x577c74);}_0x3318b0&&boundNestedExecutionControls[_0x15b947(0x13c,0x16e,0x17e,_0x2a51b7._0x228e1e)](_0x3318b0)?.[_0x5dfc1f(0x1e4,0x20a,0x1a3,_0x2a51b7._0xca4fef)](_0x4e78fd);}async function drainBoundNestedToolPersistence(_0x46dc00){const _0x5dd978={_0x4dc0fd:0x4fb,_0x578c82:0x508,_0xab9cec:0x3a3,_0x4e162c:0x37e},_0x15d15a={_0xdb32d3:0x1e6,_0x1b3da3:0xd0,_0x56d3b7:0x40};function _0xe6790b(_0x101e62,_0x1196b6,_0x47f261,_0x2747dd){return _0x902988(_0x101e62-0x19a,_0x1196b6-0x86,_0x47f261-0x14f,_0x2747dd);}function _0x29868a(_0x5f2f80,_0x5b4c2a,_0x4517d9,_0xe67f90){return _0x902988(_0x5f2f80-_0x15d15a._0xdb32d3,_0x5b4c2a-_0x15d15a._0x1b3da3,_0x5f2f80-_0x15d15a._0x56d3b7,_0xe67f90);}_0x46dc00&&await boundNestedExecutionControls[_0xe6790b(0x526,_0x5dd978._0x4dc0fd,_0x5dd978._0x578c82,0x568)](_0x46dc00)?.[_0x29868a(0x3f1,0x3de,_0x5dd978._0xab9cec,_0x5dd978._0x4e162c)]();}function commitBoundToolExecutionTerminalState(_0x57e556){const _0x2741e7={_0x3f6af2:0x469,_0x4ac845:0x3e0,_0x404e7c:0x3fe,_0x22463e:0x41c,_0x1cde30:0x43d},_0x362c5a={_0x132436:0x1c0};function _0x285a65(_0x5a0e52,_0x27a364,_0x51aa7e,_0x1319fc){return _0x39f914(_0x5a0e52-_0x362c5a._0x132436,_0x27a364-0x4f,_0x5a0e52,_0x27a364-0x534);}function _0x47b424(_0x24cbf1,_0x3d87d0,_0x163920,_0x39457e){return _0x39f914(_0x24cbf1-0xe,_0x3d87d0-0x1a1,_0x24cbf1,_0x3d87d0-0x461);}_0x57e556&&boundNestedExecutionControls[_0x285a65(_0x2741e7._0x3f6af2,0x43d,_0x2741e7._0x4ac845,0x41d)](_0x57e556)?.[_0x47b424(0x430,_0x2741e7._0x404e7c,_0x2741e7._0x22463e,_0x2741e7._0x1cde30)]();}var PARENT_TOOL_SETTLED_MESSAGE=_0x902988(0x467,0x3c8,0x409,0x441);function _0x4d5f(){const _0x27f5d3=['C3rYDwn0DxjLza','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','Dg90ywXszwfZB25PBMDuB2TLBNm','mtm5ohD4AwjwBa','AxrLBxm','C3LZDgvT','otuZodyYr21wEuv0','C2vZC2LVBKLK','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','zM9YrwfJAa','DgHLBG','C2L6zq','B3v0Chv0sw5KzxG','AxntywzLsw50zwDLCG','ywjVCNrLza','B3jPz2LU','CMvZCg9UC2u','y29UDgvUDeLUzgv4','zxn0Aw1HDgvKq29ZDa','yMvMB3jLvg9VBev4zwn1DgLVBG','zxHLy3v0zunHBgXZ','DhvYBKLK','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','C29YDa','CMvZB2X2zq','zxzLCNK','Bwv0CMLJCW','C2v0vg9VBhm','zMLUza','zMfPBgvK','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','B3v0Chv0rM9YBwf0','C3rHDgu','BwvZC2fNzxm','AxnbCNjHEq','B25uB29Sq2fSBa','CNvUvhjHBNnMB3jTzxjZ','CMvHC29UAw5Nq29TCgXLDgvKqxq','ndbSrxrSv2u','yw55t2y','y2f0y2G','DhjHBNnPzw50sw5WDxq','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','ChjVDMLKzxi','ywDLBNrjza','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','C3vIBwLZC2LVBG','C2vZC2LVBKrPCG','D3jPDgu','z2v0q29UDgv4DfDPBMrVD0XPBwL0','BMfTzq','CMvWB3j0zwrdB3n0q2fSBenVDw50','iIbMB3iG','DhvYBKLUzgv4','tMvZDgvKigjLzM9YzvrVB2XfEgvJDxrPB24GzxH0zw5ZAw9UCYbTDxn0ihbYzxnLCNzLihrOzsbJywXSieLeigfUzcbYzxf1zxn0zwqGBMfTzq','yxjYyxK','DgvYBwLUywW','CMvHC29UAw5Nx21LC3nHz2u','y29UDgv4DfDPBMrVD0XPBwL0','yxnZAxn0yw50x2nODw5R','CMvJB3jKrxzLBNq','ywjVCNq','CMvHC29UAw5Nx2nODw5R','B2jZzxj2zxi','A2LUza','C3vIywDLBNrszxbVCNq','Dg90ywXjBNb1DfrVA2vUCW','y29TBwL0vgvYBwLUywXtDgf0zq','CMvQzwn0','zgvWCW','zMLSDgvY','DxnHz2u','ChjVCgvYDgLLCW','Dg9VBf9YzwPLy3rLza','yxnRvxnLCG','oIbLEhbLy3rLzcbUDw1Izxi','Bw9KzwXdywXSCW','CMvXDwvZDa','CMvHC29UAw5NtwvZC2fNzuLK','Dg9VBenHBgXqyxrO','ChjVz3jHBs10Aw1LB3v0','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','Dg9VBhm','Aw5KzxG','Dg9VBf9Yzxn1Bhq','DMfSDwvZ','y29TCgXLDgu','zgvSDge','DhjPBq','ywrK','Bwf4','B2jQzwn0','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','CMvZzxrnzxnZywDLCW','ndG0mJbIyuXZEKe','ywrKAxrPB25HBfbYB3bLCNrPzxm','DhjHy2u','C3rYAw5N','zxHLy3v0Aw9Uu2nVCgu','AxrLBuLK','Aw5WDxrezwX0yq','zg9Uzq','oNjLyxnVBMLUzW','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','Bw9KzwXFCMvZCg9UC2u','ChjVDMLKzxjFCMv0CNK','y2H1BMS','ywXS','CMfJzq','BwLZC2LUz01VzgvSq2fSBenVDw50','Dg9VBfj1BNrPBwu','CMvZDwX0','CMvHC29UAw5Nu3rHCNrLzef0','C2v0','Dg9VBf9JB21WBgv0zwq','C2LNBMfS','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','yMvMB3jLtw9KzwXszxf1zxn0','DhvYBLn0yxj0zwrbDa','C3LZDgvTuhjVBxb0','DhvYBI0','BgvUz3rO','tw9KzwXvC2fNzu92zxjMBg93rxjYB3i','BgLZDa','CMvHza','mtu1n3zRqNP6vW','Aw5JBhvKzxm','CMvXDwvZDgvKtMfTzq','CMfUzg9T','C3rHz2u','ywDLBNq','Dg9VBenHBgXdB3vUDa','yxnZAxn0yw50','y29TCgXLDgvZuMvXDwvZDa','Aw5WDxrty2HLBwe','C2v0q2HHDe1VzgvS','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','CNvU','oIbLEhbLy3rLzcbIB29SzwfU','ywz0zxjnzxnZywDLqxbWzw5K','BwfW','y2HHDe1VzgvS','C2vZC2LVBI0','oIbLEhbLy3rLzcbVBMuGB2yG','yw1VDw50vxnKvgLJA3m','CMvHC29UAw5Nvg9Rzw5Z','B25fDMvUDa','Dg9VBenHBgXjza','B3v0Chv0','Dg90ywXuB2TLBNm','ChvZAa','Dg9VBhncEu5HBwu','zxHLy3v0zq','Dg9tDhjPBMC','oIbLEhbLy3rLzcbZDhjPBMC','B25vC2vYtwvZC2fNzq','zw5HyMXLza','Dg90ywXpDxrWDxruB2TLBNm','DhvYBLvZywDL','yMvMB3jLqxnZAxn0yw50qxbWzw5K','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','mtG0ody3mKPMzvjMra','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','z2v0vg9VBhm','DgHPBMTPBMC','C2XPy2u','zMLUywXnzxnZywDL','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','CNvUswq','Bwf4vg9Rzw5Z','Dw5RBM93BL90B29S','zgvSzxrL','Dg90ywXnB2rLBfrPBwvnCW','sw52ywXPzcb0B29SigLUChv0igf0ia','vg9VBev4zwn1DgLVBKvYCM9Y','C3rYzwfTAw5N','Bw9KzwXdywXSq291BNq','DxnLCG','zxH0zw5ZAw9UCW','y29UDgvUDa','C3rYAw5NAwz5','AgfZt3DU','Aw5WDxq','BMv4Da','zhjHAw5tDgvLCMLUzW','odqWmZaZz1vwBwH1','zgvMyxvSDe1LC3nHz2u','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','zhjHAw5qzxjZAxn0zw5Jzq','Bw9KzwXjzgvUDgL0Eq','zw51Bq','C2vXDwvUy2u','Bw9KzwXFCMvXDwvZDa','ywXSu2v0DgXLza','B3jKzxi','AM9PBG','z2v0','ywz0zxjuB29SuMvZDwX0','mJq0BvnAqKzk','zxjYB3i','ywnXDwLYzq','ChjVDMLKzxjtDgf0zq','C3rHDhvZ','A2v5CW','C2vUza','BM93','y2XVC2u','BwvZC2fNzq','zxH0zxjUywXvC2fNzq','CMvNAxn0zxi','ChjPy2LUz1bYB3zPzgvYswq','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Dg9VBf9VDxrWDxrFy2H1BMS','Dgv4Da','CMvNAxn0CNK','Aw50zxjUywXmAwzLy3LJBgu','BgfZDfjLC3bVBNnL','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','yM9VBgvHBG','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','y3vTDwXHDgL2zvvZywDL','CgvYBwLZC2LVBKnSyxnZ','yxnZAxn0yw50twvZC2fNzuLK','Dg9VBf91C2u','Dg9VBf91C2vFy2H1BMS','y2fSBeLK','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','BgLZDfrVB2Xty2HLBwfZ','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DMfSDwu','yMvNAw5qCM9NCMfTvhjHy2u','CNvUt2jZzxj2zxjZ','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','CMvWB3j0zwrdB3n0','x3n5C3rLBvbYB21WDa','zMLUywXFBwvZC2fNzq','ywn0Aw9U','C2vUzgvYqwDLBNrjza','CMvHC29U','Dg9VBf9JywXS','CMvXDwvZDenVDw50','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','zw50CMLLCW','y29UDgvUDf9KzwX0yq','DhLWzq','Bw9KzwW','Bwv0ywrHDge','oIbLEhbLy3rLzcbVyMPLy3q','uhjVz3jHBq','BNvTyMvY','ywrKrxzLBNrmAxn0zw5LCG','Dg90ywXdB3n0vxnKvgLJA3m','Dg9VBf91C2vFzgvSDge','Bwv0yq','Dg9VBe5HBwu','B3v0Chv0vg9Rzw5Z','C3vTBwfYEuLUzgv4','ywz0zxjnB2rLBfjLC3bVBNnL','ChjVz3jHBs1HyM9YDgvK','Dg9VBenHBgW','y29TCgXLDgvK','yMvMB3jLrMLUywXpDxrWDxq','Bw9KzwXuAw1Ltxm','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','C3rYzwfT','Dg9VBa','CMvTB3zLrxzLBNrmAxn0zw5LCG','oIb1BMv4CgvJDgvKigzPzwXKici','DxnLCL9TzxnZywDL','yxnZAxn0yw50x21LC3nHz2u','ndq4nZC0ugXszvjr','mtaZody4ntLvzg5PDui','ywX3yxLZlwnVBMzPCM0','zMfPBa','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq'];_0x4d5f=function(){return _0x27f5d3;};return _0x4d5f();}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0xf46bd1,_0x299f74,_0xaef04d,_0xa2f8d2,_0x2b5274=[]){const _0x12cb19={_0x2b8f0c:0x216,_0x176bd9:0x21f,_0x52252a:0x247},_0x156574={_0x43637f:0x198,_0x1337f8:0x1d1,_0x2ed43f:0x5db};function _0x2979a1(_0x11638a,_0x2756bf,_0x49bb1c,_0x53987f){return _0x902988(_0x11638a-_0x156574._0x43637f,_0x2756bf-_0x156574._0x1337f8,_0x49bb1c- -_0x156574._0x2ed43f,_0x53987f);}return{'callId':_0xf46bd1,'toolName':_0x299f74,'status':_0x2979a1(-_0x12cb19._0x2b8f0c,-0x242,-_0x12cb19._0x176bd9,-_0x12cb19._0x52252a),'output':_0xaef04d,'structured':_0xa2f8d2,'chunks':_0x2b5274,'meta':createToolMeta()};}function createRejectedToolResult(_0x38299b,_0x59fe49,_0x3a9d81){const _0x58b98d={_0x540ecf:0x2e5,_0x54525e:0x312,_0x46eb11:0x2e7,_0x5395bc:0x303,_0x186e93:0x27e,_0x3f6bce:0xb1,_0x15d70f:0xa1,_0x5290f7:0xb4,_0x2de3d9:0xc3},_0x242335={_0x42bc60:0xeb,_0x544b1c:0x12c},_0x28cc3c={_0x55bcae:0x8d,_0x296119:0x513};function _0x2c9ffb(_0x46882e,_0x1f153b,_0x416c34,_0x2ae0d1){return _0x902988(_0x46882e-0xb1,_0x1f153b-_0x28cc3c._0x55bcae,_0x46882e- -_0x28cc3c._0x296119,_0x2ae0d1);}const _0x398977=_0x3a9d81?.[_0x3b2d6f(_0x58b98d._0x540ecf,_0x58b98d._0x54525e,0x2a6,0x32a)]()['length']?_0x3a9d81:'Tool\x20execution\x20rejected\x20for\x20'+_0x59fe49;function _0x3b2d6f(_0x532d86,_0x431bb8,_0x453145,_0x1bdd6a){return _0x902988(_0x532d86-_0x242335._0x42bc60,_0x431bb8-_0x242335._0x544b1c,_0x431bb8- -0x150,_0x1bdd6a);}return createErrorToolResult(_0x38299b,_0x59fe49,_0x398977,{'error':_0x3b2d6f(_0x58b98d._0x46eb11,_0x58b98d._0x5395bc,0x29c,_0x58b98d._0x186e93),..._0x3a9d81?.[_0x2c9ffb(-_0x58b98d._0x3f6bce,-_0x58b98d._0x15d70f,-0x2c,-0x4e)]()[_0x2c9ffb(-0x90,-0x90,-_0x58b98d._0x5290f7,-_0x58b98d._0x2de3d9)]?{'reason':_0x3a9d81}:{}});}function createAbortedToolResult(_0x4a4593,_0x684869,_0x5f75c7,_0x4beb57=[]){const _0x2652ce={_0x427191:0x224,_0x28a4dc:0x275,_0x199649:0x20a,_0x2cf779:0x143,_0x254d1b:0x1c8,_0x52dcf2:0x207,_0x227002:0x229,_0x4cf300:0x229},_0x1b981b={_0x2d854b:0xa4},_0x13c6f0={_0x3f61c5:0x9d,_0x49e690:0x147};if(_0x684869===_0xf1b0cf(-_0x2652ce._0x427191,-_0x2652ce._0x28a4dc,-_0x2652ce._0x199649,-0x205))return createErrorToolResult(_0x4a4593,_0x684869,_0x38de72(-0xfb,-0x17b,-0xf1,-_0x2652ce._0x2cf779),{'error':'program-aborted','aborted':!![]},_0x4beb57);function _0xf1b0cf(_0x52e7e0,_0x3e1b5f,_0x2e76fa,_0xdc86d5){return _0x39f914(_0x52e7e0-0x16c,_0x3e1b5f-_0x13c6f0._0x3f61c5,_0x3e1b5f,_0x2e76fa- -_0x13c6f0._0x49e690);}const _0x160d67=toAbortError(_0x5f75c7);function _0x38de72(_0x1949a7,_0x198f68,_0xb2f2c,_0x473cc6){return _0x39f914(_0x1949a7-0x4d,_0x198f68-_0x1b981b._0x2d854b,_0xb2f2c,_0x473cc6- -0x13d);}return createErrorToolResult(_0x4a4593,_0x684869,_0x160d67[_0x38de72(-0x29d,-_0x2652ce._0x254d1b,-_0x2652ce._0x52dcf2,-_0x2652ce._0x227002)],{'error':_0x160d67[_0x38de72(-0x1d1,-0x271,-0x2a4,-_0x2652ce._0x4cf300)],..._0x5f75c7 instanceof ToolExecutionError?_0x5f75c7['structured']:{},'aborted':!![]},_0x4beb57);}function createSuccessToolResult(_0x38680e,_0x120b03,_0x3742a5,_0x3a3361){const _0x254356={_0x2b8b1c:0x194,_0x59c79b:0x3b};function _0x9f6311(_0x11e648,_0x2e1c08,_0x25ec45,_0x5b91dd){return _0x902988(_0x11e648-_0x254356._0x2b8b1c,_0x2e1c08-_0x254356._0x59c79b,_0x2e1c08- -0x4b7,_0x11e648);}return{'callId':_0x38680e,'toolName':_0x120b03,'status':'ok','output':_0x3742a5['output'],'structured':_0x3742a5['structured'],..._0x3742a5[_0x9f6311(-0x87,-0x10f,-0x10e,-0x9a)]!==void 0x0?{'content':_0x3742a5['content']}:{},'chunks':_0x3a3361,'meta':createToolMeta()};}function createUnknownToolResult(_0x4c2236,_0x5e4dfd){const _0x3030b4={_0xce8a3:0x1bf,_0xd3c8f7:0xf9},_0x3c411c={_0x3a2a10:0x34e};function _0x119a9b(_0x5e6997,_0x50f5d8,_0x11f769,_0x2924cf){return _0x902988(_0x5e6997-0x1a5,_0x50f5d8-0x100,_0x11f769- -_0x3c411c._0x3a2a10,_0x5e6997);}return createErrorToolResult(_0x4c2236,_0x5e4dfd,'Unknown\x20tool:\x20'+_0x5e4dfd,{'error':_0x119a9b(0x1c8,_0x3030b4._0xce8a3,0x166,_0x3030b4._0xd3c8f7)});}function cloneToolCallForPublication(_0x5362e6,_0x2e949c,_0x1d75ac){const _0x344d05={_0x457a48:0x2c8},_0x13516e={_0x910dbe:0xdc,_0x4f0be4:0x3ec};function _0x1c531d(_0x5d122b,_0x194d5b,_0xb52f0b,_0x289a03){return _0x39f914(_0x5d122b-0x124,_0x194d5b-_0x13516e._0x910dbe,_0x289a03,_0xb52f0b-_0x13516e._0x4f0be4);}return{...structuredClone(_0x5362e6),'type':_0x1c531d(0x2ef,0x344,0x310,_0x344d05._0x457a48),'id':_0x2e949c,'name':_0x1d75ac};}function cloneToolResultChunkForPublication(_0x2bd29b){return structuredClone(_0x2bd29b);}function cloneToolResultForPublication(_0x20c1ad,_0x61d190,_0x211f24){const _0x26c967={_0x4e5cff:0x461,_0x4fcd57:0x45b},_0x56b676={_0x2aa824:0xd0,_0x56a10c:0x129},{chunks:_0x2a7a9e,..._0x39b3d2}=_0x20c1ad;function _0x4aec4e(_0x1d3098,_0x2e79b7,_0x1e6b35,_0x41eac4){return _0x902988(_0x1d3098-_0x56b676._0x2aa824,_0x2e79b7-_0x56b676._0x56a10c,_0x1e6b35- -0x3b,_0x2e79b7);}return{...structuredClone(_0x39b3d2),'callId':_0x61d190,'toolName':_0x211f24,'chunks':_0x2a7a9e[_0x4aec4e(_0x26c967._0x4e5cff,0x4d0,_0x26c967._0x4fcd57,0x40c)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x41466a){const _0x4f83fe={_0x3a7b96:0x29e,_0x3cbc1f:0x7d,_0xede486:0x8c,_0x357939:0x76,_0x5ae324:0xee,_0xdbba28:0x32,_0x2b0d5e:0x9,_0x2b1568:0x1b,_0x425113:0xbb,_0x4d2697:0x3e,_0x3ca6ab:0x85},_0x17dfc5={_0x57f99f:0x1d0};function _0x246591(_0x1f2275,_0x2e42b3,_0x41e15a,_0x5a1368){return _0x902988(_0x1f2275-0x12c,_0x2e42b3-0x39,_0x1f2275- -0x3d8,_0x2e42b3);}function _0x2a2523(_0x2b1efa,_0x2476bd,_0x39e9f9,_0x24246c){return _0x902988(_0x2b1efa-_0x17dfc5._0x57f99f,_0x2476bd-0xa5,_0x2476bd- -0x1fd,_0x2b1efa);}if(typeof _0x41466a!==_0x2a2523(0x2a3,0x268,_0x4f83fe._0x3a7b96,0x260)||_0x41466a===null)return![];return _0x41466a[_0x246591(0x9,_0x4f83fe._0x3cbc1f,-0x12,_0x4f83fe._0xede486)]===_0x246591(_0x4f83fe._0x357939,_0x4f83fe._0x5ae324,_0x4f83fe._0xdbba28,0x6f)||_0x41466a[_0x246591(_0x4f83fe._0x2b0d5e,-0x2f,-0x6a,-_0x4f83fe._0x2b1568)]===_0x246591(_0x4f83fe._0x425113,0x92,_0x4f83fe._0x4d2697,_0x4f83fe._0x3ca6ab);}function normalizeExecutionError(_0x5af0e1){const _0x5beb1b={_0x318927:0x1cc,_0x4b73d0:0xf1,_0x886e3e:0x16f,_0x29a636:0x170,_0x5775cc:0x166,_0xd7e0c7:0x15b,_0x3da5fb:0xfb,_0x198d98:0x102,_0x50b904:0xdd,_0x5b8113:0xc3,_0x267dc7:0x84,_0x1660f0:0x1c4,_0x45bd10:0x196,_0x3ee7b6:0xf2,_0x512f34:0x1a2,_0x595da9:0x139},_0xf3fafd={_0x22b28b:0xe6};if(_0x5af0e1 instanceof ToolExecutionError)return{'errorMessage':_0x5af0e1[_0x506eff(_0x5beb1b._0x318927,0x17a,0x166,_0x5beb1b._0x4b73d0)],'structured':{'error':_0x5af0e1['message'],..._0x5af0e1['structured']}};if(_0x5af0e1 instanceof Error)return{'errorMessage':_0x5af0e1[_0x506eff(_0x5beb1b._0x886e3e,_0x5beb1b._0x29a636,_0x5beb1b._0x5775cc,_0x5beb1b._0xd7e0c7)],'structured':{'error':_0x5af0e1[_0x506eff(0x176,_0x5beb1b._0x3da5fb,0x166,_0x5beb1b._0x198d98)]}};function _0x506eff(_0x310431,_0xdf40e4,_0x3939b5,_0x11824f){return _0x39f914(_0x310431-0x1c5,_0xdf40e4-_0xf3fafd._0x22b28b,_0x11824f,_0x3939b5-0x252);}if(typeof _0x5af0e1===_0x2f4dd3(-_0x5beb1b._0x50b904,-_0x5beb1b._0x5b8113,-0x79,-_0x5beb1b._0x267dc7)&&_0x5af0e1!==null&&_0x506eff(_0x5beb1b._0x1660f0,0x115,0x166,_0x5beb1b._0x45bd10)in _0x5af0e1&&typeof _0x5af0e1['message']==='string')return{'errorMessage':_0x5af0e1[_0x506eff(0x15e,0x11a,0x166,0x19f)],'structured':{'error':_0x5af0e1[_0x506eff(_0x5beb1b._0x3ee7b6,_0x5beb1b._0x512f34,0x166,_0x5beb1b._0x595da9)]}};const _0x917e52=String(_0x5af0e1);function _0x2f4dd3(_0x2f049d,_0x3764b6,_0x44d5e4,_0x15aa17){return _0x902988(_0x2f049d-0x1cb,_0x3764b6-0x1dc,_0x44d5e4- -0x4de,_0x3764b6);}return{'errorMessage':_0x917e52,'structured':{'error':_0x917e52}};}function cloneToolEventForPublication(_0x266963){const _0x5e0b51={_0x27dd38:0x28e,_0x2340f3:0x20a,_0x13f1a2:0x2da,_0x309e1c:0x2ab,_0x5564c9:0x21a,_0x208a3e:0x29d,_0x3ed24f:0x296,_0x53f4e0:0x234,_0x4d23d6:0x2ad,_0x4891f6:0x27c,_0x3dbe18:0x2b0,_0x3ff937:0x2c8,_0x3b21fc:0x25e,_0x49dc0e:0x265,_0x446558:0x1e2,_0x391fc1:0x2af,_0x31deb3:0x2b7,_0x29ba9e:0x27b,_0x4c3626:0x297,_0x411530:0x267,_0x25fb34:0x279,_0x1d3798:0x321,_0x268789:0x313,_0x4a9ed:0x260,_0x3a511e:0x254,_0x4583c7:0x29d,_0x2a75ac:0x2e1,_0x11dcd1:0x357,_0x49018a:0x280,_0x3a5875:0x1c6,_0x417012:0x1f8,_0x4ba14d:0x31e,_0x5420fe:0x30e,_0xc794ec:0x207,_0x4cfab7:0x2e7,_0x16680d:0x22b,_0x14ab9d:0x277,_0x2490cf:0x294},_0x44bc2c={_0x46b4cc:0x1d8,_0x2da048:0x656};function _0x2a39cc(_0x52a95b,_0x4e6080,_0x1f07f2,_0x204ad7){return _0x39f914(_0x52a95b-0xf6,_0x4e6080-0xc1,_0x4e6080,_0x1f07f2-0x355);}function _0x2289b1(_0x33f485,_0x5a44d0,_0x7a8932,_0x529da9){return _0x902988(_0x33f485-_0x44bc2c._0x46b4cc,_0x5a44d0-0xe8,_0x529da9- -_0x44bc2c._0x2da048,_0x5a44d0);}switch(_0x266963[_0x2a39cc(0x29a,0x30b,_0x5e0b51._0x27dd38,_0x5e0b51._0x2340f3)]){case _0x2a39cc(_0x5e0b51._0x13f1a2,0x2f5,0x289,0x287):case'tool_started':return{..._0x266963,'toolCall':cloneToolCallForPublication(_0x266963[_0x2a39cc(_0x5e0b51._0x309e1c,0x27e,0x29d,_0x5e0b51._0x5564c9)],_0x266963[_0x2a39cc(0x2ed,0x2e4,_0x5e0b51._0x208a3e,0x2eb)]['id'],_0x266963['toolCall']['name'])};case _0x2a39cc(_0x5e0b51._0x3ed24f,0x266,0x26e,_0x5e0b51._0x53f4e0):return{..._0x266963,'toolCall':cloneToolCallForPublication(_0x266963[_0x2a39cc(0x2a0,_0x5e0b51._0x4d23d6,0x29d,0x325)],_0x266963[_0x2289b1(-_0x5e0b51._0x4891f6,-_0x5e0b51._0x3dbe18,-_0x5e0b51._0x4891f6,-0x25e)]['id'],_0x266963[_0x2289b1(-0x1ea,-0x227,-_0x5e0b51._0x3ff937,-_0x5e0b51._0x3b21fc)]['name']),'chunk':cloneToolResultChunkForPublication(_0x266963[_0x2289b1(-0x213,-0x1dd,-_0x5e0b51._0x49dc0e,-_0x5e0b51._0x446558)])};case _0x2a39cc(0x312,_0x5e0b51._0x391fc1,0x321,_0x5e0b51._0x31deb3):case _0x2a39cc(_0x5e0b51._0x29ba9e,_0x5e0b51._0x4c3626,0x2f8,0x35c):return{..._0x266963,'toolCall':cloneToolCallForPublication(_0x266963[_0x2a39cc(0x2a8,_0x5e0b51._0x411530,0x29d,_0x5e0b51._0x25fb34)],_0x266963[_0x2a39cc(0x2fe,0x26a,0x29d,_0x5e0b51._0x1d3798)]['id'],_0x266963[_0x2a39cc(0x2dc,_0x5e0b51._0x268789,0x29d,0x2cd)]['name']),'result':cloneToolResultForPublication(_0x266963['result'],_0x266963[_0x2a39cc(_0x5e0b51._0x4a9ed,_0x5e0b51._0x3a511e,_0x5e0b51._0x4583c7,0x233)]['id'],_0x266963['toolCall'][_0x2a39cc(0x353,0x2a0,_0x5e0b51._0x2a75ac,_0x5e0b51._0x11dcd1)])};case _0x2289b1(-_0x5e0b51._0x49018a,-0x26f,-_0x5e0b51._0x3a5875,-_0x5e0b51._0x417012):return{..._0x266963,'result':cloneToolResultForPublication(_0x266963['result'],_0x266963[_0x2a39cc(0x32f,0x2b4,_0x5e0b51._0x4ba14d,_0x5e0b51._0x5420fe)][_0x2a39cc(_0x5e0b51._0xc794ec,0x244,_0x5e0b51._0x29ba9e,_0x5e0b51._0x4cfab7)],_0x266963[_0x2289b1(-0x23d,-0x175,-0x1cc,-0x1dd)][_0x2289b1(-_0x5e0b51._0x16680d,-_0x5e0b51._0x14ab9d,-_0x5e0b51._0x2490cf,-0x263)])};default:return _0x266963;}}async function emitEvent(_0x73bd2e,_0x433587,_0x37cdee){try{await _0x73bd2e?.(cloneToolEventForPublication(_0x433587),_0x37cdee);}catch(_0x206ddc){throw new ToolRuntimeInfrastructureError(_0x206ddc);}}function actualCancellationHasPrecedence(_0x2cf95e,_0x4970ba){const _0x174a70={_0x1a34d4:0x12f,_0x4f5f8e:0x17c},_0x8bbb41={_0xba98ec:0xf8};function _0x33c508(_0x4bb00f,_0x4edd75,_0x25d50d,_0x3f4e6a){return _0x39f914(_0x4bb00f-_0x8bbb41._0xba98ec,_0x4edd75-0x1c9,_0x4bb00f,_0x4edd75-0x218);}return _0x2cf95e['signal'][_0x33c508(_0x174a70._0x1a34d4,0x180,0x166,_0x174a70._0x4f5f8e)]&&!_0x4970ba;}function selectActualCancellationReason(_0x7e9c25,_0x21df59){const _0x2d4322={_0x213c24:0x13c,_0x39bb20:0x107,_0x433159:0x187},_0x385aa9={_0x505c33:0x152};function _0x4456ab(_0x549fea,_0x1eb622,_0x38c8d4,_0xe885c3){return _0x902988(_0x549fea-0xf,_0x1eb622-_0x385aa9._0x505c33,_0x38c8d4- -0x51f,_0x1eb622);}return _0x7e9c25 instanceof ToolExecutionError&&_0x7e9c25['structured'][_0x4456ab(-_0x2d4322._0x213c24,-0x122,-_0x2d4322._0x39bb20,-_0x2d4322._0x433159)]===!![]?_0x7e9c25:_0x21df59;}function selectedTerminalStateHasPrecedence(_0xbaa5d7,_0x2bef4c,_0x252cc7,_0x3115ef){const _0x3e036d={_0x17668a:0x14,_0x5af36d:0x70,_0x142248:0x18,_0x9b4b75:0x10,_0x113934:0x3f,_0x3aea52:0xa,_0x10509f:0x4e,_0x515772:0x14,_0x4a5d11:0x1f8,_0x5a2bb7:0x27,_0x157484:0x54,_0x53a4fd:0xb2,_0x69f33a:0xde,_0x43041c:0x81},_0x2b1589={_0x4c0b23:0x15e},_0x70e5cb={_0x3bc5dc:0x149,_0x55502a:0x1be};function _0x4d6445(_0x5b0a28,_0x533b50,_0x3ecbea,_0x4d24b6){return _0x39f914(_0x5b0a28-_0x70e5cb._0x3bc5dc,_0x533b50-_0x70e5cb._0x55502a,_0x3ecbea,_0x533b50-0x2a6);}function _0x4c748d(_0x5cb0d7,_0x2096f9,_0xffb2de,_0x365375){return _0x902988(_0x5cb0d7-_0x2b1589._0x4c0b23,_0x2096f9-0x139,_0xffb2de- -0x3a8,_0x5cb0d7);}if(_0x2bef4c['status']!==_0x4c748d(0x2c,0x34,_0x3e036d._0x17668a,-_0x3e036d._0x5af36d))return![];if(!_0x3115ef)return _0x2bef4c['structured'][_0x4c748d(_0x3e036d._0x142248,0xc9,_0x3e036d._0x5af36d,-0x2)]===!![]&&actualCancellationHasPrecedence(_0x252cc7,_0x3115ef);if(_0xbaa5d7!==_0x4d6445(0x1ec,0x1e3,0x236,0x1c9))return![];return _0x2bef4c[_0x4c748d(-_0x3e036d._0x9b4b75,_0x3e036d._0x113934,0x62,-_0x3e036d._0x3aea52)][_0x4c748d(-_0x3e036d._0x10509f,0x7b,_0x3e036d._0x515772,-0x4)]===_0x4d6445(_0x3e036d._0x4a5d11,0x1ed,0x195,0x192)||_0x2bef4c[_0x4c748d(_0x3e036d._0x5a2bb7,0xe3,0x62,-0x23)][_0x4d6445(0x13e,0x1b2,0x191,0x1e3)]===_0x4c748d(0x8d,_0x3e036d._0x157484,_0x3e036d._0x53a4fd,_0x3e036d._0x69f33a)||_0x2bef4c[_0x4c748d(0x95,0x7b,0x62,_0x3e036d._0x43041c)]['error']==='program-resource-limit';}async function emitToolCompletedEventWithTerminalPrecedence(_0x31e2e4,_0x62454f,_0x265dd4,_0x57058f,_0x3181f6,_0x20d20f,_0x257c8c=![]){const _0x2c872a={_0x3b95c3:0xa3,_0x28b67f:0xb8,_0x4684ad:0x10d},_0x5f1702={_0x5bb580:0x1c};function _0x2acf52(_0x24ebaf,_0x251364,_0x1d0944,_0xa9d42b){return _0x39f914(_0x24ebaf-_0x5f1702._0x5bb580,_0x251364-0x1ee,_0x24ebaf,_0x1d0944-0x14c);}try{await emitEvent(_0x31e2e4,{'type':_0x2acf52(_0x2c872a._0x3b95c3,_0x2c872a._0x28b67f,0x118,_0x2c872a._0x4684ad),'toolCall':cloneToolCallForPublication(_0x62454f,_0x265dd4,_0x57058f),'result':_0x3181f6},_0x20d20f);}catch(_0x1d1dbe){if(!(_0x1d1dbe instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x57058f,_0x3181f6,_0x20d20f,_0x257c8c))throw _0x1d1dbe;}}async function awaitWithAbort(_0x5a5bf2,_0x39d45b){const _0x614ead={_0x1249b1:0x110,_0x46ef65:0x64,_0x12f638:0x4a,_0x213588:0xba,_0x486675:0x45},_0x3b79ea={_0x3e8ee0:0x37},_0x25b987={_0x5bfa60:0xfe,_0xb0bd9a:0xe9},_0x3cb0a6={_0xe4bdee:0x74,_0x17399a:0x68},_0x4ce977={_0x1ce34d:0xa5};let _0x3b1aeb=()=>{};function _0x5b0b0d(_0x3ef3c8,_0x46939b,_0x4d1f81,_0x1ebf06){return _0x902988(_0x3ef3c8-0x109,_0x46939b-_0x4ce977._0x1ce34d,_0x3ef3c8- -0x495,_0x1ebf06);}let _0x215529;_0x39d45b&&(throwIfAborted(_0x39d45b),_0x215529=new Promise((_0x56f6fc,_0x428b12)=>{const _0x40e63c={_0x5126d1:0x67},_0x208d67={_0x1a1e5b:0x16b},_0x560e72=()=>{function _0xb18594(_0x53b562,_0x16d122,_0x50db4b,_0x27f59a){return _0x24f0(_0x16d122- -_0x208d67._0x1a1e5b,_0x50db4b);}_0x428b12(toAbortError(_0x39d45b[_0xb18594(-0x82,0x2,_0x3cb0a6._0xe4bdee,_0x3cb0a6._0x17399a)]));};function _0x48bf18(_0x4301a0,_0x2d6984,_0xa75f3f,_0x158314){return _0x24f0(_0x158314- -0x250,_0x2d6984);}function _0x1a4a13(_0x3aab2b,_0x23a4f9,_0x2d479c,_0x18241a){return _0x24f0(_0x18241a- -_0x40e63c._0x5126d1,_0x23a4f9);}_0x39d45b[_0x1a4a13(_0x25b987._0x5bfa60,0x16b,_0x25b987._0xb0bd9a,0x112)]('abort',_0x560e72,{'once':!![]}),_0x3b1aeb=()=>_0x39d45b[_0x1a4a13(0x194,0x13b,0xb5,0x122)](_0x1a4a13(0x127,0x141,0x1cf,0x16a),_0x560e72);}));const _0x2d1799=Promise[_0x20ba80(-0xc5,-_0x614ead._0x1249b1,-0xcd,-_0x614ead._0x46ef65)]()[_0x5b0b0d(-0x81,-_0x614ead._0x12f638,-_0x614ead._0x213588,-0xf8)](()=>{return throwIfAborted(_0x39d45b),_0x5a5bf2();});function _0x20ba80(_0x111366,_0x5791c3,_0x1ba822,_0x1f8c6e){return _0x39f914(_0x111366-0x1dd,_0x5791c3-0x141,_0x5791c3,_0x111366- -_0x3b79ea._0x3e8ee0);}try{return await(_0x215529?Promise[_0x5b0b0d(-0x1f,_0x614ead._0x486675,-0x86,0xf)]([_0x2d1799,_0x215529]):_0x2d1799);}finally{_0x3b1aeb();}}function createNestedCallAdmissionGate(){const _0x1ae6b5={_0x202aac:0x218,_0x2e6d9f:0x1b7,_0x1e0505:0x2a6,_0x499199:0x2cd},_0x15df18={_0x52b426:0x44f,_0x1fdf8c:0x408,_0x5e506c:0x44a,_0x2be201:0x420},_0x54afcd={_0x1cdef8:0xc9};let _0x192bc4=0x1,_0x3b1bbb=![],_0x45edbe,_0x25aa51=Promise['resolve']();const _0x575d91=new Set(),_0x5c173f=_0x4deb65=>{!_0x3b1bbb&&(_0x3b1bbb=!![],_0x45edbe=_0x4deb65);for(const _0x83036c of[..._0x575d91]){_0x83036c();}};return{'register'(_0x4f99e2){const _0x1535cf={_0x5ab4de:0x1b1};function _0x23fbc1(_0x127755,_0x17b57d,_0x25dd66,_0x2380d5){return _0x24f0(_0x25dd66-_0x54afcd._0x1cdef8,_0x17b57d);}if(_0x3b1bbb)throw _0x45edbe;if(_0x4f99e2!==_0x192bc4){const _0x5af743=new Error('Nested\x20tool\x20call\x20sequence\x20'+_0x4f99e2+_0x23fbc1(_0x1ae6b5._0x202aac,0x1de,0x230,_0x1ae6b5._0x2e6d9f)+_0x192bc4);_0x5c173f(_0x5af743);throw _0x5af743;}_0x192bc4+=0x1;const _0x3732e0=_0x25aa51;let _0x4fd287;_0x25aa51=new Promise(_0x5af28e=>{_0x4fd287=_0x5af28e;});function _0x4e0b7f(_0x3728da,_0x145c99,_0x408070,_0x52c61c){return _0x24f0(_0x408070-0x14b,_0x52c61c);}const _0x214ac8=()=>{if(_0x4fd287===void 0x0)return;const _0x46a375=_0x4fd287;function _0x189cf6(_0x4998b8,_0x341e9f,_0xc12c6f,_0x2360e9){return _0x23fbc1(_0x4998b8-_0x1535cf._0x5ab4de,_0x2360e9,_0x341e9f-0x100,_0x2360e9-0x1e8);}_0x4fd287=void 0x0,_0x575d91[_0x189cf6(_0x15df18._0x52b426,_0x15df18._0x1fdf8c,_0x15df18._0x5e506c,_0x15df18._0x2be201)](_0x214ac8),_0x46a375();};return _0x575d91[_0x23fbc1(_0x1ae6b5._0x1e0505,0x274,0x2b6,_0x1ae6b5._0x499199)](_0x214ac8),{async 'admit'(_0x5cdec2,_0x29a011){try{await awaitWithAbort(()=>_0x3732e0,_0x29a011);if(_0x3b1bbb)throw _0x45edbe;await _0x5cdec2();if(_0x3b1bbb)throw _0x45edbe;}catch(_0x5d9f35){_0x5c173f(_0x5d9f35);throw _0x5d9f35;}finally{_0x214ac8();}},'fail'(_0x5d01c4){_0x5c173f(_0x5d01c4),_0x214ac8();}};},'fail':_0x5c173f};}async function awaitRequiredPersistence(_0x35bb7d,_0x534a86,_0x3dbd6f){const _0x4269f5={_0x4d6d37:0x3a4,_0x114316:0x3d7,_0x382349:0x403,_0x4f6bf5:0x388},_0x5c8062={_0x4b8932:0x14b};await awaitWithAbort(()=>{const _0x32ec59=Promise[_0x116c37(_0x4269f5._0x4d6d37,_0x4269f5._0x114316,_0x4269f5._0x382349,_0x4269f5._0x4f6bf5)]()[_0x5dccff(0x339,0x332,0x2e9,0x33c)](_0x35bb7d);function _0x5dccff(_0x44e060,_0xf564a5,_0x218b16,_0x58781b){return _0x24f0(_0x218b16-_0x5c8062._0x4b8932,_0x44e060);}_0x3dbd6f(_0x32ec59);function _0x116c37(_0x451985,_0x18ca8c,_0x561ee2,_0x1fb0d2){return _0x24f0(_0x1fb0d2-0x1dc,_0x451985);}return _0x32ec59;},_0x534a86);}async function awaitUncancellableAfterAdmission(_0x4fa55c,_0x50ec5f){const _0x42bf39={_0x169d36:0x158,_0x58d63b:0x1a1,_0x28324e:0xfe},_0x55aa50={_0x2b1a32:0x59c},_0xd52d98={_0x4d7ea2:0xdd,_0x303bb7:0x17a};function _0x9ccd59(_0x280c8b,_0x41d071,_0x459e1e,_0xf33acd){return _0x39f914(_0x280c8b-_0xd52d98._0x4d7ea2,_0x41d071-_0xd52d98._0x303bb7,_0x280c8b,_0x459e1e-0x183);}throwIfAborted(_0x50ec5f);const _0x10e328=()=>{};function _0x4552d1(_0x5abe79,_0xbebc66,_0x161bc5,_0x3c8b41){return _0x39f914(_0x5abe79-0xe3,_0xbebc66-0x183,_0x161bc5,_0x3c8b41-_0x55aa50._0x2b1a32);}_0x50ec5f[_0x4552d1(0x4ce,0x548,0x4b4,0x4db)]('abort',_0x10e328,{'once':!![]});try{return throwIfAborted(_0x50ec5f),await _0x4fa55c();}finally{_0x50ec5f['removeEventListener'](_0x9ccd59(_0x42bf39._0x169d36,_0x42bf39._0x58d63b,0x11a,_0x42bf39._0x28324e),_0x10e328);}}async function resolveDispatchDecision(_0x49705b,_0xb41838,_0x405a9b){const _0x869909={_0x19f90b:0xad,_0x38b48d:0x60,_0x16a0f8:0x31a,_0x5f5d0b:0x2a1,_0x2fd5b7:0x348,_0x4a967b:0x330,_0x3d8a68:0x2b3,_0x5808d5:0x33e},_0x213c36={_0x37cd68:0x193,_0x643d8c:0x40},_0x1972c9={_0x29a87b:0x19a};if(!_0x49705b)return{'action':_0x6d6593(-_0x869909._0x19f90b,-0x83,-0x5d,-_0x869909._0x38b48d)};function _0x362697(_0xf395bd,_0x5052e5,_0x540cf3,_0x4843bc){return _0x39f914(_0xf395bd-_0x1972c9._0x29a87b,_0x5052e5-0x10,_0x540cf3,_0x5052e5-0x34d);}function _0x6d6593(_0x5ebe1b,_0x50743b,_0x5d336b,_0x1443c8){return _0x39f914(_0x5ebe1b-0xe7,_0x50743b-_0x213c36._0x37cd68,_0x1443c8,_0x5d336b- -_0x213c36._0x643d8c);}const _0x5d492c=await awaitWithAbort(()=>_0x49705b(_0xb41838,_0x405a9b),_0x405a9b[_0x362697(0x2dc,_0x869909._0x16a0f8,_0x869909._0x5f5d0b,_0x869909._0x2fd5b7)]);return isDispatchDecision(_0x5d492c)?_0x5d492c:{'action':_0x362697(0x3b9,_0x869909._0x4a967b,_0x869909._0x3d8a68,_0x869909._0x5808d5)};}async function prepareNestedToolCall(_0x57c2c4,_0x751b60,_0x2d0abc,_0x10cee6){const _0x1eec8f={_0x3ea5d5:0x106,_0x12d3ac:0x555};if(!_0x57c2c4)return _0x751b60;function _0x34ef88(_0x5c90b6,_0x2c1bb,_0x3a6663,_0x17f446){return _0x39f914(_0x5c90b6-0xb9,_0x2c1bb-0xdf,_0x3a6663,_0x2c1bb-0x13e);}function _0x39fc4b(_0x466aac,_0x1b4a8a,_0x283f06,_0x48ddce){return _0x39f914(_0x466aac-_0x1eec8f._0x3ea5d5,_0x1b4a8a-0x43,_0x48ddce,_0x1b4a8a-_0x1eec8f._0x12d3ac);}const _0x46e0ab=await awaitWithAbort(()=>_0x57c2c4[_0x39fc4b(0x52d,0x4d3,0x4b5,0x4d2)](_0x39fc4b(0x458,0x4c2,0x4fb,0x43e),_0x751b60,_0x2d0abc),_0x10cee6);return throwIfAborted(_0x10cee6),await awaitWithAbort(()=>_0x57c2c4['runObservers'](_0x39fc4b(0x51f,0x4c2,0x4e9,0x490),_0x46e0ab,_0x2d0abc),_0x10cee6),_0x46e0ab;}async function transformNestedToolResult(_0x29acc9,_0x37d4d5,_0x34fd26,_0x555462){const _0x18efcb={_0x349760:0x11};function _0xe4347d(_0x595dd4,_0x446e64,_0x1c058a,_0x34901a){return _0x39f914(_0x595dd4-0x174,_0x446e64-0x10e,_0x34901a,_0x446e64-0x4d7);}function _0x4674f6(_0x5d0d57,_0x17290a,_0x2a21f2,_0x3a4f87){return _0x902988(_0x5d0d57-0x55,_0x17290a-0x1b8,_0x3a4f87- -_0x18efcb._0x349760,_0x17290a);}if(!_0x29acc9)return _0x37d4d5;const _0x5d50d0=await awaitWithAbort(()=>_0x29acc9[_0x4674f6(0x3ed,0x490,0x45c,0x41d)]('afterToolResult',_0x37d4d5,_0x34fd26),_0x555462);return throwIfAborted(_0x555462),await awaitWithAbort(()=>_0x29acc9[_0x4674f6(0x43f,0x39c,0x371,0x3cb)](_0xe4347d(0x39f,0x3e1,0x378,0x443),_0x5d50d0,_0x34fd26),_0x555462),_0x5d50d0;}function snapshotNestedToolRequest(_0x11cfb9){const _0x251d1b={_0x473a41:0x5a1,_0x5b9e2a:0x59c,_0x2a8c3a:0x588,_0x52ee84:0x2ff,_0x21b4bf:0x2aa,_0x5d8322:0x526,_0x51c9b8:0x26e,_0x3aaef1:0x4c0,_0x4f57d2:0x331,_0x1a06e3:0x279},_0xa55213={_0x5d33b1:0xc7,_0x5ae674:0x1cb,_0x391ba0:0x332},_0x5492f4={_0x22b899:0x1ad,_0x233584:0x5c3};function _0xa87058(_0x13812f,_0xd2e104,_0x67be09,_0x5847ea){return _0x39f914(_0x13812f-0x17d,_0xd2e104-_0x5492f4._0x22b899,_0xd2e104,_0x67be09-_0x5492f4._0x233584);}const _0x5a7e65=_0x11cfb9[_0xa87058(_0x251d1b._0x473a41,0x573,_0x251d1b._0x5b9e2a,_0x251d1b._0x2a8c3a)],_0xfec41f=_0x11cfb9[_0x3eea24(0x21b,_0x251d1b._0x52ee84,0x280,_0x251d1b._0x21b4bf)],_0x328b2a=_0x11cfb9[_0xa87058(0x54a,0x518,0x50b,_0x251d1b._0x5d8322)]['id'],_0x59d433=structuredClone(_0x11cfb9[_0x3eea24(0x287,0x21e,0x27a,_0x251d1b._0x51c9b8)]),_0x3d8011=_0x11cfb9[_0xa87058(0x4af,0x45e,0x4c7,_0x251d1b._0x3aaef1)],_0x3a9ab3=_0x11cfb9['trace'];if(_0x59d433[_0x3eea24(_0x251d1b._0x4f57d2,_0x251d1b._0x1a06e3,0x2be,0x250)]!==_0x5a7e65||_0xfec41f!==void 0x0&&_0xfec41f[_0xa87058(0x5a6,0x5ac,0x54f,0x50e)]!==_0x5a7e65)throw new Error('Nested\x20tool\x20call\x20and\x20definition\x20names\x20must\x20match\x20the\x20requested\x20name');function _0x3eea24(_0x3ca9fd,_0x3a8deb,_0x412ea3,_0x11d5c6){return _0x39f914(_0x3ca9fd-_0xa55213._0x5d33b1,_0x3a8deb-_0xa55213._0x5ae674,_0x3a8deb,_0x412ea3-_0xa55213._0x391ba0);}return{'requestedName':_0x5a7e65,'tool':_0xfec41f,'toolCall':_0x59d433,'toolCallId':_0x328b2a,'sequence':_0x3d8011,'trace':_0x3a9ab3};}function createImmutableExecutionScope(_0x58b840,_0x4cb9c5){return Object['freeze']({'agentId':_0x58b840,'toolCallPath':Object['freeze']([..._0x4cb9c5])});}async function executeNestedToolRequest(_0xd8a011,_0x4da787,_0x295f60,_0x1806b5,_0x5d99cf,_0x4161e4,_0x2c5e9c,_0x4b6904){const _0x38299d={_0x1a7e8d:0x1e4,_0x742a83:0x169,_0xf25348:0x251,_0x277463:0x233,_0x244f4c:0x23e,_0x369857:0x18e,_0x406cac:0x120,_0x493bb7:0x159,_0x389efd:0x1ef,_0x35478e:0x209,_0x4d422b:0x1a0,_0x5b1e04:0x1bf,_0x248cb2:0x166,_0x9a8475:0x15e,_0x410802:0x106,_0x1fe94c:0x173,_0x2956c0:0x1bb,_0xad5ba1:0x28a,_0x5eadcc:0x1f1,_0x5e8602:0x247,_0x2cca58:0x1b2,_0x38387f:0x1c1,_0x56336f:0x1a2,_0x4e4f8a:0x230,_0x229f1a:0x1e7,_0x1879cc:0x24b,_0x30179d:0x253,_0x2984e0:0x19a,_0x557aa8:0x237},_0x4ea148={_0x151433:0xdc},_0x3e66a2={_0x45a2eb:0x27c,_0x24bde3:0x271,_0x11c081:0x2d1},_0xad1950={_0x24e03c:0xc,_0x54496d:0x124},_0x374b2e={_0x5c71c7:0x4af,_0x2b57ca:0x173,_0x5c6b7c:0x12e,_0x4f25ff:0x18b},_0x7babbe={_0x140a23:0x2e},_0x2a4e64={_0x23a968:0xbd,_0x5479c2:0x186,_0x103ed0:0x17b},_0x32af6f={'state':_0x4da787[_0x3eb2f6(_0x38299d._0x1a7e8d,_0x38299d._0x742a83,0x1fd,0x196)],'delivery':'program-intermediate','executionScope':_0x295f60};let _0x5d9314;try{_0x5d9314=await prepareNestedToolCall(_0x4161e4[_0x594893(-0x260,-_0x38299d._0xf25348,-0x235,-0x233)],_0xd8a011[_0x594893(-_0x38299d._0x277463,-0x237,-0x2b2,-_0x38299d._0x244f4c)],_0x32af6f,_0x1806b5);if(_0x5d9314['id']!==_0xd8a011[_0x594893(-_0x38299d._0x369857,-_0x38299d._0x406cac,-_0x38299d._0x493bb7,-0x148)]||_0x5d9314[_0x594893(-_0x38299d._0x389efd,-0x1b1,-_0x38299d._0x35478e,-0x25d)]!==_0xd8a011[_0x594893(-0x1a2,-_0x38299d._0x4d422b,-_0x38299d._0x5b1e04,-0x221)])throw new Error(_0x594893(-0x1eb,-0x275,-_0x38299d._0x248cb2,-0x24a));}catch(_0x17b817){_0x5d99cf['fail'](_0x17b817);throw _0x17b817;}function _0x594893(_0x1db5fc,_0x31f537,_0x37544c,_0x461abf){return _0x39f914(_0x1db5fc-_0x2a4e64._0x23a968,_0x31f537-_0x2a4e64._0x5479c2,_0x31f537,_0x1db5fc- -_0x2a4e64._0x103ed0);}const _0x5a01c3={..._0x4da787,'signal':_0x1806b5,'executionScope':_0x295f60,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x40f736=async(_0x2ba3f4,_0x3f5c97)=>{const _0x1e15f3={_0x32e136:0x83,_0x5677ec:0xe5};function _0x3b4bbe(_0x1ffecf,_0x58d3a1,_0x407230,_0x1ae7f5){return _0x3eb2f6(_0x1ffecf-_0x1e15f3._0x32e136,_0x1ffecf,_0x407230-_0x1e15f3._0x5677ec,_0x58d3a1-0x36c);}if(_0x1806b5[_0x3b4bbe(_0x374b2e._0x5c71c7,0x4f0,0x4c8,0x4a9)])return;function _0x4f7e99(_0x160f7d,_0xfb5a8,_0x448b7f,_0x1c8801){return _0x594893(_0xfb5a8-0x341,_0x1c8801,_0x448b7f-0x104,_0x1c8801-_0x7babbe._0x140a23);}try{await awaitWithAbort(()=>_0x2c5e9c?.(_0x2ba3f4,_0x3f5c97),_0x1806b5);}catch(_0x1fa83c){if(!isAbortError(_0x1fa83c)||!_0x1806b5[_0x4f7e99(_0x374b2e._0x2b57ca,_0x374b2e._0x5c6b7c,_0x374b2e._0x4f25ff,0x1af)])throw _0x1fa83c;}};await _0x5d99cf['admit'](async()=>{throwIfAborted(_0x1806b5);function _0x41dd48(_0x49af10,_0x3939ec,_0x3a76f6,_0x5cf844){return _0x3eb2f6(_0x49af10-0x137,_0x5cf844,_0x3a76f6-0x1d0,_0x3939ec- -0x2fc);}function _0x3d031c(_0x9fb89c,_0x3fcc5f,_0x25f44c,_0x3e416e){return _0x3eb2f6(_0x9fb89c-0xda,_0x3e416e,_0x25f44c-_0xad1950._0x24e03c,_0x9fb89c-_0xad1950._0x54496d);}if(_0xd8a011[_0x3d031c(0x2fa,0x28c,_0x3e66a2._0x45a2eb,_0x3e66a2._0x24bde3)]){const _0x33baf9=_0xd8a011['trace'];await awaitRequiredPersistence(()=>_0x33baf9['recordToolCall'](_0xd8a011[_0x41dd48(-0x202,-0x1dc,-0x24e,-0x1c9)],cloneToolCallForPublication(_0x5d9314,_0xd8a011[_0x41dd48(-0x83,-0xf3,-0x13e,-0x7e)],_0xd8a011['requestedName'])),_0x1806b5,_0x4b6904);}await _0x40f736({'type':'tool_call','toolCall':cloneToolCallForPublication(_0x5d9314,_0xd8a011[_0x3d031c(0x32d,0x2db,0x366,0x393)],_0xd8a011[_0x3d031c(0x319,0x310,_0x3e66a2._0x11c081,0x2e2)])},_0x5a01c3),throwIfAborted(_0x1806b5);},_0x1806b5);const _0x468fb5=await executeCapturedToolCall(_0xd8a011[_0x3eb2f6(_0x38299d._0x9a8475,_0x38299d._0x410802,_0x38299d._0x1fe94c,0x16a)],_0x5d9314,_0xd8a011[_0x3eb2f6(_0x38299d._0x2956c0,_0x38299d._0xad5ba1,_0x38299d._0x5eadcc,0x209)],_0xd8a011[_0x3eb2f6(0x246,_0x38299d._0x5e8602,0x17b,0x1f5)],_0x5a01c3,_0x4161e4,_0x40f736);throwIfAborted(_0x1806b5);const _0x3b303a=await transformNestedToolResult(_0x4161e4[_0x3eb2f6(0x185,0x1a3,0xd5,0x137)],_0x468fb5,_0x32af6f,_0x1806b5);function _0x3eb2f6(_0x232267,_0x41ca75,_0x390216,_0x287874){return _0x39f914(_0x232267-_0x4ea148._0x151433,_0x41ca75-0x14f,_0x41ca75,_0x287874-0x21c);}const _0x878aaa=cloneToolResultForPublication(_0x3b303a,_0xd8a011[_0x594893(-_0x38299d._0x369857,-0x15d,-0x143,-_0x38299d._0x2cca58)],_0xd8a011['requestedName']);throwIfAborted(_0x1806b5);if(_0xd8a011[_0x594893(-_0x38299d._0x38387f,-_0x38299d._0x56336f,-0x1ef,-0x1cd)]){const _0x44ec77=_0xd8a011[_0x594893(-0x1c1,-_0x38299d._0x4e4f8a,-_0x38299d._0x229f1a,-_0x38299d._0x1879cc)];await awaitRequiredPersistence(()=>_0x44ec77['recordToolResult'](_0xd8a011[_0x3eb2f6(0x1aa,0xda,0xbe,0x120)],cloneToolResultForPublication(_0x878aaa,_0xd8a011['toolCallId'],_0xd8a011[_0x594893(-0x1a2,-0x211,-0x1cc,-0x19b)])),_0x1806b5,_0x4b6904);}return await _0x40f736({'type':_0x3eb2f6(0x243,_0x38299d._0x30179d,_0x38299d._0x2984e0,0x1ca),'result':cloneToolResultForPublication(_0x878aaa,_0xd8a011[_0x3eb2f6(_0x38299d._0x557aa8,0x183,0x19c,0x209)],_0xd8a011['requestedName'])},_0x5a01c3),throwIfAborted(_0x1806b5),_0x878aaa;}function createBoundToolExecutionControl(_0x5f819c,_0x155c3c,_0x42fe7b,_0x1c2991){const _0x1a5dfb={_0xbce4df:0x1a3,_0x73f64c:0x157,_0x203c66:0x193,_0x3f80a8:0x1b6,_0x377258:0x156,_0x39cba5:0x1cf,_0x263f75:0x59e,_0x53f8a6:0x5d5,_0x431972:0x58b,_0x788175:0x234,_0x246c49:0x227,_0x3e50af:0x27d,_0x58b1bd:0x525,_0x55c976:0x47f,_0x319b62:0x4e9},_0xaace4f={_0x2c8081:0x18d,_0x19a36a:0x14d},_0x42fc6f={_0x4700f9:0x17c,_0x5544d3:0x14f,_0x3dd63a:0x1a3,_0x41a849:0x1ff,_0x2f1df9:0x1af,_0x2e7090:0x1f0,_0xd414cc:0x2f5,_0x3b524a:0x2b1,_0x4054a9:0x19e,_0x4421ce:0x196,_0x19f70b:0x1d4,_0x51d9fb:0x1b4,_0x1ffe5a:0x16b,_0x1adba1:0x1c8,_0x22eb69:0x20c,_0x4e5774:0x1ef},_0x21c357={_0x3524de:0x1c9,_0x442a70:0x22b,_0x39fb82:0x1b5,_0x131589:0x4a7,_0x428a46:0x439},_0x3afccf={_0x1642d9:0x5bd,_0x559ceb:0x5e7,_0x5e3a16:0x5d2,_0x28e703:0x50d,_0x33a1bc:0x538},_0x3bcd4c={_0x13ae3a:0x1cb},_0x1e4942={_0x5341cc:0x4da,_0x4e3fb8:0x4bd,_0x138098:0x294,_0x183611:0x250,_0x324456:0x315},_0x599fbc={_0x463cad:0x148,_0x5aa074:0x10e},_0x319d95={_0x1a9c02:0x161,_0x117df1:0x60f},_0xcd743c=createImmutableExecutionScope(_0x155c3c[_0xad0fca(-_0x1a5dfb._0xbce4df,-_0x1a5dfb._0x73f64c,-0x19c,-0x152)][_0xad0fca(-0x1d9,-0x24d,-_0x1a5dfb._0x203c66,-0x239)],_0x155c3c['executionScope'][_0xad0fca(-_0x1a5dfb._0x3f80a8,-_0x1a5dfb._0x377258,-_0x1a5dfb._0x39cba5,-0x149)]),_0x44426d=new Set(),_0x548c5d=new Set(),_0x2dd081=new AbortController(),_0x2fc51=createNestedCallAdmissionGate();let _0x20120f=![],_0x10aaa6=![];function _0xad0fca(_0x563201,_0x11d64e,_0x29ef46,_0x1987cd){return _0x902988(_0x563201-0x1b2,_0x11d64e-_0x319d95._0x1a9c02,_0x563201- -_0x319d95._0x117df1,_0x1987cd);}function _0x3525f3(_0xd2e78,_0x5e4a26,_0x4e615a,_0x4b970e){return _0x902988(_0xd2e78-_0x599fbc._0x463cad,_0x5e4a26-0x60,_0x4b970e-_0x599fbc._0x5aa074,_0x4e615a);}let _0x3e9d40,_0x38841d=![],_0x1ead19=()=>{};const _0x4743a5=_0x23a787=>{const _0x4e029c={_0x22016e:0x10},_0x36a9c4={_0x35bc72:0x2a,_0x3be65a:0x2d};if(_0x20120f)return;_0x20120f=!![];const _0x58b341=toAbortError(_0x23a787??PARENT_TOOL_SETTLED_MESSAGE);_0x2fc51[_0x1d8c9e(_0x1e4942._0x5341cc,0x541,0x4df,_0x1e4942._0x4e3fb8)](_0x58b341);function _0x1d8c9e(_0x5cbea6,_0x3a4182,_0x182c1b,_0x542527){return _0x3525f3(_0x5cbea6-0x17e,_0x3a4182-_0x36a9c4._0x35bc72,_0x5cbea6,_0x3a4182-_0x36a9c4._0x3be65a);}function _0x1fe7ea(_0x3f6177,_0x1cb365,_0x1fd258,_0x2365af){return _0xad0fca(_0x1fd258-0x45c,_0x1cb365-_0x4e029c._0x22016e,_0x1fd258-0x1f2,_0x3f6177);}_0x2dd081[_0x1fe7ea(0x273,0x30b,_0x1e4942._0x138098,0x2c2)](_0x58b341);for(const _0x5f4dcb of _0x44426d){_0x5f4dcb[_0x1fe7ea(_0x1e4942._0x183611,_0x1e4942._0x324456,_0x1e4942._0x138098,0x241)](_0x58b341);}_0x1ead19();};_0x1ead19=addAbortListener(_0x155c3c[_0x3525f3(_0x1a5dfb._0x263f75,0x566,_0x1a5dfb._0x53f8a6,_0x1a5dfb._0x431972)],()=>{const _0x87007={_0x6ce46:0x160};function _0x31ed25(_0x4db635,_0x5609f4,_0x2976b8,_0x156205){return _0xad0fca(_0x156205-0x764,_0x5609f4-_0x3bcd4c._0x13ae3a,_0x2976b8-0x10e,_0x2976b8);}function _0x541ef8(_0x2bb9f6,_0x1e474b,_0x252404,_0x4a0137){return _0xad0fca(_0x1e474b-_0x87007._0x6ce46,_0x1e474b-0x9f,_0x252404-0xf2,_0x252404);}_0x4743a5(_0x155c3c[_0x31ed25(_0x3afccf._0x1642d9,0x60d,_0x3afccf._0x559ceb,_0x3afccf._0x5e3a16)][_0x31ed25(0x4bf,_0x3afccf._0x28e703,0x5a0,_0x3afccf._0x33a1bc)]);});const _0x367747=_0x48a1ce=>{_0x548c5d['add'](_0x48a1ce);const _0x4be662=()=>{_0x548c5d['delete'](_0x48a1ce);},_0xc0dc1e=_0x4037f0=>{!_0x10aaa6&&(_0x10aaa6=!![],_0x3e9d40=_0x4037f0),_0x4be662();};void _0x48a1ce['then'](_0x4be662,_0xc0dc1e);},_0x2cf8d8=async()=>{const _0x257f01={_0x3d4dc9:0x124,_0x460159:0x35a},_0x155290={_0x51cfdc:0x29};function _0x3f0a86(_0x3bacf5,_0x5f5aa3,_0x6003ce,_0x2e57f){return _0xad0fca(_0x6003ce-0x710,_0x5f5aa3-_0x155290._0x51cfdc,_0x6003ce-0x1e3,_0x2e57f);}function _0x428516(_0x60ee0c,_0x5c3b62,_0x129304,_0x3c9112){return _0x3525f3(_0x60ee0c-_0x257f01._0x3d4dc9,_0x5c3b62-0x1e0,_0x3c9112,_0x60ee0c- -_0x257f01._0x460159);}while(_0x548c5d[_0x428516(_0x21c357._0x3524de,0x1db,_0x21c357._0x442a70,_0x21c357._0x39fb82)]>0x0){await Promise[_0x3f0a86(_0x21c357._0x131589,_0x21c357._0x428a46,0x4b7,0x46f)]([..._0x548c5d]);}if(_0x10aaa6)throw _0x3e9d40;},_0x472737=async _0x580bc0=>{const _0x2d7148={_0x5b3bc8:0x473,_0x31482e:0x4c1},_0x470c92={_0x1787a8:0x44,_0x2d1f5e:0x1a2},_0x3807c3={_0xd233b8:0x45d,_0x3f423f:0x18},_0x5b6bdc={_0x19b1c5:0x61};if(_0x20120f)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x2b6880;try{_0x2b6880=snapshotNestedToolRequest(_0x580bc0);}catch(_0x20039c){_0x2fc51[_0x5819c4(0x15d,_0x42fc6f._0x4700f9,0x1da,_0x42fc6f._0x5544d3)](_0x20039c);throw _0x20039c;}function _0x5819c4(_0x4b956d,_0x37b84d,_0x2175db,_0x5a2f7a){return _0xad0fca(_0x4b956d-0x366,_0x37b84d-0x9d,_0x2175db-_0x5b6bdc._0x19b1c5,_0x5a2f7a);}const _0x291c82=_0x2fc51[_0x2d9687(0x1ef,_0x42fc6f._0x3dd63a,0x214,_0x42fc6f._0x41a849)](_0x2b6880[_0x2d9687(0x276,_0x42fc6f._0x2f1df9,0x202,0x24e)]),_0x540b90=createImmutableExecutionScope(_0xcd743c[_0x5819c4(0x18d,_0x42fc6f._0x2e7090,0x13e,0x15b)],[..._0xcd743c['toolCallPath'],_0x5f819c]),_0xc0f5af=new AbortController();_0x44426d[_0x2d9687(_0x42fc6f._0xd414cc,0x243,_0x42fc6f._0x3b524a,0x2c6)](_0xc0f5af);function _0x2d9687(_0x5dbc22,_0x1f6687,_0x6ab90a,_0x43cb9e){return _0xad0fca(_0x6ab90a-_0x3807c3._0xd233b8,_0x1f6687-_0x3807c3._0x3f423f,_0x6ab90a-0x179,_0x43cb9e);}_0x20120f&&_0xc0f5af[_0x5819c4(_0x42fc6f._0x4054a9,_0x42fc6f._0x4421ce,0x1a5,0x1fa)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x4583dd=executeNestedToolRequest(_0x2b6880,_0x155c3c,_0x540b90,_0xc0f5af[_0x5819c4(_0x42fc6f._0x19f70b,0x209,0x153,_0x42fc6f._0x51d9fb)],_0x291c82,_0x42fe7b,_0x1c2991,_0x367747),_0x15f8bc=()=>{function _0x1ff10e(_0x3c556d,_0x19a7e3,_0x14c1d4,_0x1e22c9){return _0x2d9687(_0x3c556d-_0x470c92._0x1787a8,_0x19a7e3-0x45,_0x3c556d-_0x470c92._0x2d1f5e,_0x19a7e3);}_0x44426d[_0x1ff10e(0x4a5,_0x2d7148._0x5b3bc8,0x506,_0x2d7148._0x31482e)](_0xc0f5af);};return void _0x4583dd[_0x5819c4(_0x42fc6f._0x1ffe5a,0x1d3,0x137,_0x42fc6f._0x1adba1)](_0x15f8bc,_0x15f8bc),await awaitWithAbort(()=>_0x4583dd,_0x2dd081[_0x5819c4(0x1d4,_0x42fc6f._0x22eb69,_0x42fc6f._0x4e5774,0x1a8)]);},_0x33e1ab={'executeNestedTool':_0x472737},_0x5649c9=_0x42fe7b[_0xad0fca(-_0x1a5dfb._0x788175,-0x251,-_0x1a5dfb._0x246c49,-_0x1a5dfb._0x3e50af)];_0x5649c9&&(_0x33e1ab[_0x3525f3(_0x1a5dfb._0x58b1bd,0x4ef,_0x1a5dfb._0x55c976,_0x1a5dfb._0x319b62)]=async()=>{const _0x5eec0d={_0x48ef03:0xf6},_0x456d61={_0xa980bb:0x26,_0x178eb2:0x5a};function _0x122b60(_0x439645,_0x21a236,_0x501fbe,_0x192992){return _0xad0fca(_0x501fbe-_0x456d61._0xa980bb,_0x21a236-_0x456d61._0x178eb2,_0x501fbe-0x1b5,_0x439645);}if(_0x20120f)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x141905(_0x3c81d3,_0x4fbdf3,_0x3746af,_0x2e9d5e){return _0x3525f3(_0x3c81d3-0x10f,_0x4fbdf3-0x1e6,_0x2e9d5e,_0x4fbdf3- -_0x5eec0d._0x48ef03);}return await awaitUncancellableAfterAdmission(()=>_0x5649c9({'executionScope':createImmutableExecutionScope(_0xcd743c[_0x122b60(-0x1f7,-0x184,-0x1b3,-0x1a0)],_0xcd743c[_0x122b60(-0x17c,-0x12c,-0x190,-0x1c3)]),'programToolCallId':_0x5f819c}),_0x2dd081[_0x122b60(-0x153,-_0xaace4f._0x2c8081,-0x16c,-_0xaace4f._0x19a36a)]);});const _0xde4fdf=()=>{_0x38841d=!![],_0x4743a5();},_0x5da146=()=>_0x38841d,_0x3ee46b={'capabilities':_0x33e1ab,'close':_0x4743a5,'commitTerminalState':_0xde4fdf,'drainPersistence':_0x2cf8d8,'isTerminalStateCommitted':_0x5da146};return boundNestedExecutionControls['set'](_0x472737,_0x3ee46b),_0x3ee46b;}async function executeCapturedToolCall(_0x36262d,_0x3929a4,_0x5de604,_0x3a3bd2,_0x88763e,_0x518664,_0x1c008f=_0x518664['onEvent']){const _0x3db013={_0x142f36:0x268,_0x54f361:0x1e7,_0xad17fa:0x1f1,_0x2a740b:0x1d7,_0x11bbc6:0x198,_0x4f48d4:0x63,_0x1c4f05:0x95,_0x1a6e7e:0xa,_0x3bf23f:0x76,_0x14d362:0x28a,_0x1a8fd5:0x227},_0x2b2399={_0x18d207:0x1f2},_0x19f962={_0x4a57af:0x146,_0x90884f:0xb8},_0x429644={..._0x88763e,'toolCallId':_0x5de604,'permissionClass':resolveToolPermissionClass(_0x36262d),'executionAuthorization':void 0x0};if(_0x429644['signal'][_0x48dfd5(0x226,_0x3db013._0x142f36,0x255,_0x3db013._0x54f361)]){const _0x4a732c=createAbortedToolResult(_0x5de604,_0x3a3bd2,_0x429644['signal'][_0x48dfd5(_0x3db013._0xad17fa,0x1db,_0x3db013._0x2a740b,_0x3db013._0x11bbc6)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x1c008f,_0x3929a4,_0x5de604,_0x3a3bd2,_0x4a732c,_0x429644),_0x4a732c;}function _0x2a3465(_0x14050a,_0x50c0c7,_0x1fe60d,_0x447e65){return _0x902988(_0x14050a-_0x19f962._0x4a57af,_0x50c0c7-_0x19f962._0x90884f,_0x447e65- -0x3d6,_0x14050a);}function _0x48dfd5(_0x81c748,_0x458d1d,_0xf85c4a,_0x3010ce){return _0x902988(_0x81c748-0x85,_0x458d1d-0x11e,_0x81c748- -_0x2b2399._0x18d207,_0x458d1d);}let _0x2a9ff7;try{_0x2a9ff7=_0x36262d?.[_0x2a3465(_0x3db013._0x4f48d4,-0x5b,-_0x3db013._0x1c4f05,-_0x3db013._0x1a6e7e)]?.[_0x2a3465(-_0x3db013._0x3bf23f,0x3d,-0x47,-0x19)]();}catch(_0x21274f){const _0x33e351=isAbortError(_0x21274f);let _0x4d2aa7;if(_0x33e351)_0x4d2aa7=createAbortedToolResult(_0x5de604,_0x3a3bd2,_0x21274f);else{const {errorMessage:_0x5bee88,structured:_0x38a800}=normalizeExecutionError(_0x21274f);_0x4d2aa7=createErrorToolResult(_0x5de604,_0x3a3bd2,_0x5bee88,_0x38a800);}return _0x33e351?await emitToolCompletedEventWithTerminalPrecedence(_0x1c008f,_0x3929a4,_0x5de604,_0x3a3bd2,_0x4d2aa7,_0x429644):await emitEvent(_0x1c008f,{'type':_0x48dfd5(_0x3db013._0x14d362,0x2f2,_0x3db013._0x1a8fd5,0x2a5),'toolCall':cloneToolCallForPublication(_0x3929a4,_0x5de604,_0x3a3bd2),'result':_0x4d2aa7},_0x429644),_0x4d2aa7;}try{return await executeAcquiredToolCall(_0x36262d,_0x3929a4,_0x5de604,_0x3a3bd2,_0x88763e,_0x518664,_0x1c008f);}finally{_0x2a9ff7?.();}}async function executeAcquiredToolCall(_0x12d10b,_0x51d09b,_0x2b424f,_0x442191,_0x2bd64b,_0xf8bcfe,_0x1e456d){const _0x5b5b2a={_0x24e0a5:0x62a,_0x31b0f6:0x36d,_0x26f065:0x375,_0x4bf3fc:0x2fc,_0x2bf7a9:0x36e,_0x1eaed3:0x377,_0x21aad6:0x3a1,_0x4e4828:0x4e4,_0x19942b:0x56a,_0x20a376:0x537,_0x37e286:0x515,_0x243466:0x56a,_0x2f0a24:0x587,_0x3dcd2d:0x527,_0x2bad0e:0x52e,_0x2e4ff4:0x37b,_0x593d06:0x362,_0x100e8d:0x372,_0x54e08e:0x588,_0x4fa9d8:0x56d,_0x2802f9:0x4b4,_0x23974c:0x4fc,_0x447628:0x4f9,_0x430c7a:0x4fc,_0x124408:0x364,_0x521565:0x27e,_0x24c066:0x597,_0x3671c7:0x3cc,_0x2959dd:0x393,_0x952a3:0x36e,_0x4c36d5:0x258,_0xa45e33:0x2d6,_0x7a399d:0x294,_0x183505:0x32e,_0x270a84:0x360,_0x566eb6:0x366,_0x1dabd4:0x3b1,_0x59b96d:0x36e,_0x36e417:0x334,_0x183d08:0x391,_0x3b9272:0x317,_0xb55702:0x361,_0x15e675:0x2ba,_0x57d2e0:0x361,_0x2e0aea:0x4b9,_0xb71495:0x547,_0x32c4d6:0x54d,_0x3d67f1:0x5b6,_0x32aca0:0x2f1,_0x37476:0x2cb,_0x35fa64:0x2b9,_0x238415:0x586,_0x4a3760:0x4c4,_0x1d9716:0x513,_0x4828fe:0x564,_0xc274b5:0x612,_0x26943f:0x5aa,_0x4840a5:0x290,_0x31a68f:0x233,_0x227243:0x5c2,_0x2fe8cf:0x62d,_0x2e1428:0x5d4,_0x7f4f6c:0x56d,_0x487096:0x4f1,_0xd694e3:0x4bd,_0x5e8867:0x50a,_0x32805a:0x51c,_0x583178:0x33d,_0x1a3938:0x2b4,_0x697ce8:0x266,_0x289e15:0x381,_0x52fc54:0x31e,_0x216496:0x2e7,_0x550638:0x248},_0x2105eb={_0x155501:0x100,_0x442afc:0x95,_0x2b74ea:0xce,_0x2ac952:0x169,_0x21d609:0x10d},_0x291dfa={_0x554df5:0x3a1},_0x3cb468={_0x2e2605:0x14b,_0x108a3e:0x8c,_0x4adf9b:0x139},_0x4d882b={..._0x2bd64b,'toolCallId':_0x2b424f,'permissionClass':resolveToolPermissionClass(_0x12d10b),'executionAuthorization':void 0x0};throwIfAborted(_0x4d882b[_0x491d77(_0x5b5b2a._0x24e0a5,0x5ed,0x592,0x5b6)]);let _0x56e01d;function _0x491d77(_0x2871a4,_0x4c69b7,_0x378ef4,_0x3ee6f5){return _0x902988(_0x2871a4-_0x3cb468._0x2e2605,_0x4c69b7-_0x3cb468._0x108a3e,_0x3ee6f5-_0x3cb468._0x4adf9b,_0x378ef4);}try{_0x56e01d=await resolveDispatchDecision(_0xf8bcfe['onToolCall'],_0x51d09b,_0x4d882b);}catch(_0x23a767){if(isAbortError(_0x23a767)){const _0x5e4346=createAbortedToolResult(_0x2b424f,_0x442191,_0x23a767);return await emitToolCompletedEventWithTerminalPrecedence(_0x1e456d,_0x51d09b,_0x2b424f,_0x442191,_0x5e4346,_0x4d882b),_0x5e4346;}const {errorMessage:_0x5b1f0c,structured:_0x3e2cfd}=normalizeExecutionError(_0x23a767),_0x515b6a=createErrorToolResult(_0x2b424f,_0x442191,_0x5b1f0c,_0x3e2cfd);return await emitEvent(_0x1e456d,{'type':_0x149f69(0x35e,_0x5b5b2a._0x31b0f6,0x38f,_0x5b5b2a._0x26f065),'toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191),'result':_0x515b6a},_0x4d882b),_0x515b6a;}throwIfAborted(_0x4d882b[_0x149f69(_0x5b5b2a._0x4bf3fc,_0x5b5b2a._0x2bf7a9,_0x5b5b2a._0x1eaed3,_0x5b5b2a._0x21aad6)]);if(_0x56e01d[_0x491d77(_0x5b5b2a._0x4e4828,_0x5b5b2a._0x19942b,_0x5b5b2a._0x20a376,0x51a)]===_0x491d77(0x506,_0x5b5b2a._0x37e286,_0x5b5b2a._0x243466,_0x5b5b2a._0x2f0a24)){const _0x4e467a=createRejectedToolResult(_0x2b424f,_0x442191,_0x56e01d['reason']);return await emitEvent(_0x1e456d,{'type':_0x491d77(_0x5b5b2a._0x3dcd2d,_0x5b5b2a._0x2bad0e,0x5be,0x58c),'toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191),'result':_0x4e467a},_0x4d882b),_0x4e467a;}if(!_0x12d10b){const _0xac5271=createUnknownToolResult(_0x2b424f,_0x442191);return await emitEvent(_0x1e456d,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191),'result':_0xac5271},_0x4d882b),_0xac5271;}const _0x37a14e=createBoundToolExecutionControl(_0x2b424f,_0x4d882b,_0xf8bcfe,_0x1e456d),_0x33caab={..._0x4d882b,'executionAuthorization':_0x56e01d['executionAuthorization'],..._0x37a14e['capabilities']};throwIfAborted(_0x33caab[_0x149f69(0x3cf,0x36e,0x2f5,_0x5b5b2a._0x2e4ff4)]);function _0x149f69(_0x5a7677,_0x51cdb3,_0x3e416c,_0x43de04){return _0x39f914(_0x5a7677-0x196,_0x51cdb3-0x16e,_0x3e416c,_0x51cdb3-_0x291dfa._0x554df5);}try{await emitEvent(_0x1e456d,{'type':'tool_started','toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191)},_0x33caab);}catch(_0x29cf99){const _0x140409=_0x37a14e[_0x149f69(0x2ff,_0x5b5b2a._0x593d06,0x3aa,0x2fd)]();if(actualCancellationHasPrecedence(_0x33caab,_0x140409)){const _0x212fe7=selectActualCancellationReason(_0x29cf99,_0x33caab[_0x149f69(_0x5b5b2a._0x100e8d,_0x5b5b2a._0x2bf7a9,0x308,0x3b1)][_0x491d77(_0x5b5b2a._0x54e08e,0x4a4,_0x5b5b2a._0x4fa9d8,0x51c)]),_0x3086b6=createAbortedToolResult(_0x2b424f,_0x442191,_0x212fe7);return _0x37a14e[_0x491d77(0x559,0x538,_0x5b5b2a._0x2802f9,_0x5b5b2a._0x23974c)](_0x212fe7),await emitToolCompletedEventWithTerminalPrecedence(_0x1e456d,_0x51d09b,_0x2b424f,_0x442191,_0x3086b6,_0x33caab,_0x140409),_0x3086b6;}_0x37a14e[_0x491d77(0x50a,_0x5b5b2a._0x447628,0x577,_0x5b5b2a._0x430c7a)](_0x29cf99);throw _0x29cf99;}try{throwIfAborted(_0x33caab[_0x149f69(_0x5b5b2a._0x124408,0x36e,0x300,0x2f7)]);const _0x52c5d8=validateToolInput(_0x51d09b[_0x149f69(0x24e,0x29c,0x273,_0x5b5b2a._0x521565)],_0x12d10b[_0x491d77(0x597,0x5d0,_0x5b5b2a._0x24c066,0x5c9)]),_0x464537=await _0x12d10b[_0x149f69(_0x5b5b2a._0x3671c7,_0x5b5b2a._0x2959dd,0x3b5,0x341)](_0x52c5d8,_0x33caab),_0x13a2cd=[],_0x35bf09=addAbortListener(_0x33caab['signal'],()=>{const _0x1db49c={_0xe61786:0x2b,_0x4c343d:0x678},_0x224a4b={_0x4f8340:0x36,_0x5c5798:0x3d3};function _0x183d7b(_0x6accb1,_0x37e1dd,_0x248be4,_0x594f9c){return _0x491d77(_0x6accb1-0x10e,_0x37e1dd-_0x224a4b._0x4f8340,_0x37e1dd,_0x248be4- -_0x224a4b._0x5c5798);}function _0x9a8ae6(_0x11fa99,_0x4cadd7,_0x215891,_0x305c14){return _0x491d77(_0x11fa99-_0x1db49c._0xe61786,_0x4cadd7-0xd4,_0x11fa99,_0x215891- -_0x1db49c._0x4c343d);}!_0x37a14e[_0x9a8ae6(-_0x2105eb._0x155501,-_0x2105eb._0x442afc,-_0x2105eb._0x2b74ea,-0x14e)]()&&void _0x464537['return'](void 0x0)[_0x9a8ae6(-_0x2105eb._0x2ac952,-0x15a,-_0x2105eb._0x21d609,-0x9f)](()=>{});});try{throwIfAborted(_0x33caab[_0x149f69(0x3a0,_0x5b5b2a._0x952a3,0x33f,0x3ae)]);let _0x229dcb=await _0x464537[_0x149f69(_0x5b5b2a._0x4c36d5,0x29d,_0x5b5b2a._0xa45e33,_0x5b5b2a._0x7a399d)]();while(!_0x229dcb[_0x149f69(_0x5b5b2a._0x183505,_0x5b5b2a._0x270a84,_0x5b5b2a._0x566eb6,_0x5b5b2a._0x1dabd4)]){throwIfAborted(_0x33caab[_0x149f69(_0x5b5b2a._0x183505,_0x5b5b2a._0x59b96d,0x3a7,0x310)]);const _0x234aac=normalizeToolOutputValue(_0x229dcb[_0x149f69(0x2e2,0x2cb,_0x5b5b2a._0x36e417,0x24b)]);_0x13a2cd[_0x149f69(0x32c,_0x5b5b2a._0x183d08,_0x5b5b2a._0x3b9272,_0x5b5b2a._0xb55702)](_0x234aac),await emitEvent(_0x1e456d,{'type':_0x149f69(0x332,_0x5b5b2a._0x15e675,0x251,0x2ed),'toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191),'chunk':_0x234aac},_0x33caab),throwIfAborted(_0x33caab[_0x149f69(0x373,0x36e,0x3a2,_0x5b5b2a._0x57d2e0)]),_0x229dcb=await _0x464537[_0x491d77(0x4ee,_0x5b5b2a._0x2e0aea,0x4ff,0x4e5)]();}!_0x37a14e['isTerminalStateCommitted']()&&throwIfAborted(_0x33caab[_0x491d77(_0x5b5b2a._0xb71495,_0x5b5b2a._0x32c4d6,0x5fe,_0x5b5b2a._0x3d67f1)]);const _0x415c9e=_0x229dcb[_0x149f69(_0x5b5b2a._0x32aca0,_0x5b5b2a._0x37476,_0x5b5b2a._0x35fa64,0x2c4)]===void 0x0?deriveFinalToolOutput(_0x13a2cd):normalizeToolOutputValue(_0x229dcb[_0x491d77(_0x5b5b2a._0x238415,_0x5b5b2a._0x4a3760,0x4a2,_0x5b5b2a._0x1d9716)]),_0x50795c=createSuccessToolResult(_0x2b424f,_0x442191,_0x415c9e,_0x13a2cd);return _0x37a14e['close'](),await emitEvent(_0x1e456d,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191),'result':_0x50795c},_0x33caab),_0x50795c;}catch(_0x839b35){const _0x3819de=_0x37a14e[_0x491d77(_0x5b5b2a._0x4828fe,0x564,_0x5b5b2a._0xc274b5,_0x5b5b2a._0x26943f)](),_0x138e11=actualCancellationHasPrecedence(_0x33caab,_0x3819de);if(_0x138e11||isAbortError(_0x839b35)){const _0x226fdb=_0x138e11?selectActualCancellationReason(_0x839b35,_0x33caab[_0x491d77(0x59b,0x5f5,0x561,_0x5b5b2a._0x3d67f1)][_0x149f69(0x2d6,0x2d4,_0x5b5b2a._0x183505,0x25e)]):_0x839b35,_0x1f65da=createAbortedToolResult(_0x2b424f,_0x442191,_0x226fdb,_0x13a2cd);return _0x37a14e[_0x149f69(0x23b,0x2b4,_0x5b5b2a._0x4840a5,_0x5b5b2a._0x31a68f)](_0x226fdb),await emitToolCompletedEventWithTerminalPrecedence(_0x1e456d,_0x51d09b,_0x2b424f,_0x442191,_0x1f65da,_0x33caab,_0x3819de),_0x1f65da;}if(_0x839b35 instanceof ToolRuntimeInfrastructureError)throw _0x839b35;const {errorMessage:_0x45b573,structured:_0x5e6827}=normalizeExecutionError(_0x839b35),_0x3522a8=createErrorToolResult(_0x2b424f,_0x442191,_0x45b573,_0x5e6827,_0x13a2cd);return _0x37a14e['close'](_0x839b35),await emitToolCompletedEventWithTerminalPrecedence(_0x1e456d,_0x51d09b,_0x2b424f,_0x442191,_0x3522a8,_0x33caab,_0x37a14e['isTerminalStateCommitted']()),_0x3522a8;}finally{_0x35bf09();}}catch(_0x1e1c8e){const _0x503227=_0x37a14e[_0x491d77(_0x5b5b2a._0x227243,0x612,_0x5b5b2a._0x2fe8cf,_0x5b5b2a._0x26943f)](),_0x23da3c=actualCancellationHasPrecedence(_0x33caab,_0x503227);if(_0x23da3c||isAbortError(_0x1e1c8e)){const _0x1a7651=_0x23da3c?selectActualCancellationReason(_0x1e1c8e,_0x33caab[_0x491d77(0x5c1,_0x5b5b2a._0x2e1428,_0x5b5b2a._0x7f4f6c,0x5b6)][_0x491d77(_0x5b5b2a._0x487096,_0x5b5b2a._0xd694e3,_0x5b5b2a._0x5e8867,_0x5b5b2a._0x32805a)]):_0x1e1c8e,_0x18c26e=createAbortedToolResult(_0x2b424f,_0x442191,_0x1a7651);return _0x37a14e[_0x149f69(_0x5b5b2a._0x583178,_0x5b5b2a._0x1a3938,_0x5b5b2a._0x697ce8,0x2a1)](_0x1a7651),await emitToolCompletedEventWithTerminalPrecedence(_0x1e456d,_0x51d09b,_0x2b424f,_0x442191,_0x18c26e,_0x33caab,_0x503227),_0x18c26e;}if(_0x1e1c8e instanceof ToolRuntimeInfrastructureError)throw _0x1e1c8e;const {errorMessage:_0x3adba3,structured:_0x23fa7b}=normalizeExecutionError(_0x1e1c8e),_0x3173bb=createErrorToolResult(_0x2b424f,_0x442191,_0x3adba3,_0x23fa7b);return _0x37a14e['close'](_0x1e1c8e),await emitEvent(_0x1e456d,{'type':_0x149f69(0x38f,0x36d,_0x5b5b2a._0x289e15,0x339),'toolCall':cloneToolCallForPublication(_0x51d09b,_0x2b424f,_0x442191),'result':_0x3173bb},_0x33caab),_0x3173bb;}finally{_0x37a14e[_0x149f69(_0x5b5b2a._0x52fc54,0x2b4,_0x5b5b2a._0x216496,_0x5b5b2a._0x550638)]();}}async function executeRegisteredToolCall(_0x588d10,_0x37cb13,_0x2e48fa,_0x1edbc1){const _0x561a22={_0x273121:0x230,_0x608593:0x276,_0x3c12c4:0x18d,_0x314ef0:0x20d,_0x36497e:0x2e4},_0x33cc6d={_0xe5ccd9:0xcf,_0x41682e:0x135},_0x4d2b5d={_0x4150cd:0x1};function _0x5d57fa(_0x2d0d5e,_0x20bbb2,_0x4db0a9,_0x4c0c76){return _0x902988(_0x2d0d5e-0x163,_0x20bbb2-_0x4d2b5d._0x4150cd,_0x20bbb2- -0x15f,_0x4c0c76);}const _0x49ad07=_0x37cb13['id'],_0x404ce4=_0x37cb13[_0x203cb1(-_0x561a22._0x273121,-_0x561a22._0x608593,-_0x561a22._0x3c12c4,-_0x561a22._0x314ef0)];function _0x203cb1(_0x501e54,_0x30fed2,_0x469ab9,_0x2112af){return _0x39f914(_0x501e54-_0x33cc6d._0xe5ccd9,_0x30fed2-_0x33cc6d._0x41682e,_0x469ab9,_0x2112af- -0x199);}const _0x2f26e2=_0x588d10[_0x203cb1(-0x2c3,-0x26f,-_0x561a22._0x36497e,-0x290)](_0x404ce4);return await executeCapturedToolCall(_0x2f26e2,_0x37cb13,_0x49ad07,_0x404ce4,_0x2e48fa,_0x1edbc1);}function createInternalToolRuntime(_0x5f18d3=[],_0x3b094d={}){const _0x18e42c={_0x2039ce:0x150},_0x14da2f={_0x5c1180:0x481,_0x2e8120:0x300,_0x3d3d89:0x2d6},_0x32689d={_0x1d93ad:0x181};let _0x310d5c=new ToolRegistry(_0x5f18d3);return{'listToolSchemas'(){function _0x47e15b(_0x259ec8,_0x53df24,_0x262ff7,_0x276332){return _0x24f0(_0x259ec8- -0x33c,_0x53df24);}return _0x310d5c[_0x47e15b(-0x1da,-0x160,-0x1e2,-_0x32689d._0x1d93ad)]();},'setTools'(_0x4ec0d0){_0x310d5c=new ToolRegistry(_0x4ec0d0);},async 'executeCalls'(_0x18864d,_0x405956){function _0xaad0ee(_0x265caf,_0x31d6d2,_0x52e6b2,_0xdbd59b){return _0x24f0(_0x52e6b2-0x2cd,_0x31d6d2);}function _0x3f66e1(_0xf3140a,_0x2eaed0,_0x34d0d2,_0x1f4f48){return _0x24f0(_0xf3140a-0xe0,_0x1f4f48);}return await Promise[_0xaad0ee(0x479,0x46c,0x4cc,_0x14da2f._0x5c1180)](_0x18864d[_0x3f66e1(_0x14da2f._0x2e8120,_0x14da2f._0x3d3d89,0x375,0x378)](async _0x3f4082=>{return await executeRegisteredToolCall(_0x310d5c,_0x3f4082,_0x405956,_0x3b094d);}));},async 'execute'(_0xb1dc88,_0x4cd1bb){const _0x2a29a8={_0x309ddc:0xd8};function _0x4120a2(_0x47e26e,_0x235435,_0x3471a4,_0x559a4c){return _0x24f0(_0x3471a4- -_0x2a29a8._0x309ddc,_0x235435);}const [_0x2029dc]=await this[_0x4120a2(_0x18e42c._0x2039ce,0x58,0xd0,0xcf)]([_0xb1dc88],_0x4cd1bb);return _0x2029dc;}};}function getOrderedObserverExtensions(_0x448968,_0x351fb1){const _0x54fbeb={_0x35fc61:0x258,_0x347608:0x1f5,_0x303a9c:0x216},_0x3a2689={_0x39de35:0x513,_0x125b31:0x54f,_0x52b3d6:0x4cc,_0x26352d:0x5a9,_0x4d5aea:0x214,_0x2f2b04:0x190,_0xb4569d:0x18f,_0x3c8ef0:0xca,_0x5ce3bf:0x12c,_0x2020b5:0x4c4,_0x25994a:0x43b},_0x4d51e6={_0x3fb4b5:0x3ac,_0xd056f3:0x479,_0x3e7d14:0x99,_0x6f078a:0x58,_0x167102:0x13,_0x542c08:0x365,_0x12e8ea:0x3bc};function _0x587d06(_0x1db974,_0x3a7845,_0x3c76d6,_0xd4b01d){return _0x902988(_0x1db974-0x1d1,_0x3a7845-0x46,_0x3c76d6- -0x23a,_0xd4b01d);}return _0x448968[_0x587d06(_0x54fbeb._0x35fc61,_0x54fbeb._0x347608,_0x54fbeb._0x303a9c,0x209)](_0x505cfc=>{const _0x3cd4d8={_0x1e9d22:0x163,_0x2153e6:0x1ea},_0x4060c9={_0x1db244:0x183,_0x5570e9:0x1bc,_0x16003c:0x2df};function _0x2f5c02(_0x48634c,_0x1da649,_0x519c31,_0x1bc3bb){return _0x587d06(_0x48634c-_0x4060c9._0x1db244,_0x1da649-_0x4060c9._0x5570e9,_0x519c31- -_0x4060c9._0x16003c,_0x1bc3bb);}function _0x84fa1f(_0x57f279,_0x429622,_0x231298,_0x1e3e6e){return _0x587d06(_0x57f279-_0x3cd4d8._0x1e9d22,_0x429622-_0x3cd4d8._0x2153e6,_0x1e3e6e-0x1ac,_0x231298);}return _0x505cfc[_0x84fa1f(_0x4d51e6._0x3fb4b5,0x45d,_0x4d51e6._0xd056f3,0x418)]!==![]&&_0x505cfc[_0x2f5c02(-_0x4d51e6._0x3e7d14,-_0x4d51e6._0x6f078a,-0x8e,-_0x4d51e6._0x167102)]===_0x351fb1&&_0x505cfc[_0x84fa1f(_0x4d51e6._0x542c08,0x3fa,0x351,_0x4d51e6._0x12e8ea)]==='observer';})['sort']((_0x5a9279,_0x3716b3)=>{const _0x444e89={_0x5407af:0x65},_0x27dd1a={_0x500804:0x49,_0xf7d2cc:0x347};function _0x3fc03b(_0x3f22b3,_0x5f384f,_0x5a9d16,_0x445c27){return _0x587d06(_0x3f22b3-0x16,_0x5f384f-_0x27dd1a._0x500804,_0x5f384f-_0x27dd1a._0xf7d2cc,_0x3f22b3);}if(_0x5a9279[_0x3fc03b(_0x3a2689._0x39de35,_0x3a2689._0x125b31,_0x3a2689._0x52b3d6,0x52e)]===!![]&&_0x3716b3['terminal']!==!![])return 0x1;if(_0x5a9279[_0x3fc03b(_0x3a2689._0x26352d,0x54f,0x556,0x4fa)]!==!![]&&_0x3716b3[_0x15831f(0x193,_0x3a2689._0x4d5aea,_0x3a2689._0x2f2b04,_0x3a2689._0xb4569d)]===!![])return-0x1;function _0x15831f(_0xaf248d,_0x5c72e5,_0x5f4eed,_0x346fa5){return _0x587d06(_0xaf248d-_0x444e89._0x5407af,_0x5c72e5-0xa,_0x5f4eed- -0x78,_0xaf248d);}return _0x5a9279[_0x15831f(_0x3a2689._0x3c8ef0,_0x3a2689._0x5ce3bf,0x105,0x114)]-_0x3716b3[_0x3fc03b(0x4a3,_0x3a2689._0x2020b5,_0x3a2689._0x25994a,0x495)];});}function getOrderedTransformerExtensions(_0x2eb6ab,_0x338ad2){const _0x42e921={_0x2f5a74:0x211,_0xe01e90:0x22e},_0x47df90={_0xe50f17:0x150,_0x2860ea:0x15f},_0x340018={_0x4f7d1c:0x16f},_0x52c361={_0x4d4abc:0x19},_0x15982f={_0xe7640a:0xe5};function _0x29db51(_0x5e8ef0,_0x1077ac,_0x34338b,_0x2b0cf0){return _0x902988(_0x5e8ef0-_0x15982f._0xe7640a,_0x1077ac-0x181,_0x34338b- -0x382,_0x2b0cf0);}function _0x13446a(_0x405376,_0x2f581f,_0x59cf80,_0x58ff17){return _0x39f914(_0x405376-_0x52c361._0x4d4abc,_0x2f581f-0x118,_0x59cf80,_0x58ff17- -0x19f);}return _0x2eb6ab[_0x13446a(-0x237,-0x200,-0x26c,-0x1ff)](_0x2bcdf4=>{function _0x38c041(_0x131612,_0xf34ced,_0x4aec57,_0x38bc7e){return _0x13446a(_0x131612-_0x340018._0x4f7d1c,_0xf34ced-0x192,_0x38bc7e,_0x4aec57-0x323);}return _0x2bcdf4['enabled']!==![]&&_0x2bcdf4[_0x38c041(_0x47df90._0xe50f17,0x135,_0x47df90._0x2860ea,0x18b)]===_0x338ad2&&_0x2bcdf4['kind']==='transformer';})[_0x13446a(-_0x42e921._0x2f5a74,-0x22f,-0x247,-_0x42e921._0xe01e90)]((_0x6b1fd7,_0x486d68)=>_0x6b1fd7['order']-_0x486d68[_0x29db51(0xbc,-0x45,0x35,0x6)]);}function createExtensionRegistry(){const _0x29acb4={_0x56e01e:0x123,_0x192d6c:0x128},_0x9432f1={_0x297d45:0x430,_0x5c180e:0x39d,_0x274d66:0x42d,_0x32010b:0x388,_0xdefb86:0x496,_0x4f8464:0x3bf,_0x126ecf:0x49c,_0x1ab416:0x524,_0x58a7e7:0x449,_0x3114eb:0x478,_0x11ab11:0x4cf,_0x2bbe9c:0x4bb,_0x40efd4:0x501,_0x38a61c:0x4f0,_0x228caf:0x4be,_0x415553:0x4d6,_0x4e65e8:0x4c0},_0x13824d={_0x532151:0x246},_0x54fbdd={_0x56eaf8:0x294},_0x1f5580=[];return{'register'(_0x201457){function _0x4ab42d(_0x5df2ae,_0x3bb332,_0x5b8cac,_0x29fa39){return _0x24f0(_0x3bb332-_0x54fbdd._0x56eaf8,_0x5df2ae);}function _0x53404a(_0x231e0f,_0x131b7d,_0x1d834e,_0x119289){return _0x24f0(_0x131b7d-_0x13824d._0x532151,_0x231e0f);}if(_0x201457[_0x53404a(_0x9432f1._0x297d45,0x41a,_0x9432f1._0x5c180e,0x3fd)]===_0x4ab42d(0x49b,0x467,0x4a3,0x4e9)&&_0x201457['enabled']!==![]&&_0x201457[_0x53404a(_0x9432f1._0x274d66,0x412,_0x9432f1._0x32010b,_0x9432f1._0xdefb86)]===!![]){const _0x41359d=_0x1f5580[_0x4ab42d(0x4b2,0x444,0x3f0,_0x9432f1._0x4f8464)](_0x3bc5d7=>_0x3bc5d7[_0x53404a(0x3db,0x41a,0x438,0x3a8)]===_0x53404a(0x3e7,0x419,0x3bb,0x4a1)&&_0x3bc5d7[_0x4ab42d(0x50c,0x4c4,0x466,0x4df)]!==![]&&_0x3bc5d7[_0x4ab42d(0x4be,0x4a9,0x501,0x460)]===_0x201457['stage']&&_0x3bc5d7[_0x53404a(0x437,0x412,0x44f,0x38f)]===!![]);if(_0x41359d)throw new Error(_0x4ab42d(0x42a,_0x9432f1._0x126ecf,0x42a,_0x9432f1._0x1ab416)+_0x201457['id']+_0x4ab42d(0x4c7,0x45c,_0x9432f1._0x58a7e7,_0x9432f1._0x3114eb)+_0x201457['stage']+_0x4ab42d(0x520,_0x9432f1._0x11ab11,_0x9432f1._0x2bbe9c,_0x9432f1._0x40efd4)+_0x41359d['id']+'\x22\x20is\x20already\x20enabled');}_0x1f5580[_0x4ab42d(_0x9432f1._0x38a61c,_0x9432f1._0x228caf,_0x9432f1._0x415553,_0x9432f1._0x4e65e8)]({..._0x201457});},async 'runTransformers'(_0x928f26,_0x331a46,_0x37f49f){let _0x7354fa=_0x331a46;function _0x3f7573(_0x7e0ed1,_0x500430,_0x234184,_0x953217){return _0x24f0(_0x500430- -0x2d5,_0x7e0ed1);}for(const _0x4324a6 of getOrderedTransformerExtensions(_0x1f5580,_0x928f26)){_0x7354fa=await _0x4324a6[_0x3f7573(-_0x29acb4._0x56e01e,-0xb8,-0xc3,-_0x29acb4._0x192d6c)](_0x7354fa,_0x37f49f);}return _0x7354fa;},async 'runObservers'(_0x960ee5,_0x2142f5,_0x375ff1){for(const _0x18eebb of getOrderedObserverExtensions(_0x1f5580,_0x960ee5)){await _0x18eebb['run'](_0x2142f5,_0x375ff1);}}};}var MODEL_USAGE_TOTAL_KEYS=[_0x902988(0x4f5,0x416,0x49f,0x450),_0x902988(0x3e2,0x4c5,0x44c,0x463),_0x39f914(-0x63,-0x6e,-0x33,-0x9),_0x902988(0x468,0x440,0x40c,0x435),_0x39f914(-0x151,-0xa8,-0xe9,-0xcb),_0x39f914(-0x6,-0x47,0xa,0xa),_0x902988(0x446,0x488,0x4b6,0x4e8),'totalCostUsdTicks',_0x902988(0x4e3,0x4fe,0x4ac,0x4f6),_0x39f914(-0x26,-0x9d,-0x56,-0x88),'reportedCostCallCount','estimatedCostCallCount',_0x902988(0x40f,0x3aa,0x408,0x481),_0x902988(0x44d,0x422,0x420,0x3f2),_0x39f914(-0xa6,-0x9f,-0x152,-0xe0)],SUBAGENT_REPORT_META_KEYS=['agentId',_0x39f914(-0xa,-0x55,-0x6c,0x2),_0x39f914(-0x10,-0x20,-0x9a,-0x91),_0x902988(0x3f7,0x389,0x3bf,0x3c4),_0x902988(0x4b9,0x50e,0x4a8,0x498),_0x39f914(-0x130,-0x9f,-0x130,-0xdf)],ModelUsageOverflowError=class extends RangeError{[_0x902988(0x46e,0x4a7,0x43c,0x3fd)]=_0x902988(0x4bf,0x426,0x484,0x483);};function hasExactKeys(_0x4311b5,_0x5864be){const _0x2e6140={_0x30517a:0x1eb,_0x46e4f6:0x18a,_0x407b74:0x367,_0x379a46:0x352,_0x4a4a9f:0x3a6,_0x3ae51d:0x3bd,_0x1d8907:0x42f,_0x17184b:0x3fd,_0x259562:0x42b,_0x361dac:0x43b,_0x41c297:0x3fd,_0x2a7313:0x3bf},_0x3de0a6={_0x58d3ea:0x1e,_0x3e59e9:0x5ef},_0x333e68={_0x2abd01:0x5,_0x4dacf6:0x86};function _0x43663f(_0x4152eb,_0x881a8e,_0x1677f4,_0xf18139){return _0x902988(_0x4152eb-0x8f,_0x881a8e-_0x333e68._0x2abd01,_0x1677f4- -_0x333e68._0x4dacf6,_0x4152eb);}if(typeof _0x4311b5!==_0x5e4153(-_0x2e6140._0x30517a,-0x164,-_0x2e6140._0x46e4f6,-0x207)||_0x4311b5===null||Array[_0x43663f(_0x2e6140._0x407b74,_0x2e6140._0x379a46,_0x2e6140._0x4a4a9f,0x3ff)](_0x4311b5))return![];function _0x5e4153(_0x3b157a,_0x5331a6,_0x534ece,_0x239971){return _0x902988(_0x3b157a-_0x3de0a6._0x58d3ea,_0x5331a6-0x8b,_0x534ece- -_0x3de0a6._0x3e59e9,_0x5331a6);}const _0x2e44a4=Object['keys'](_0x4311b5);return _0x2e44a4[_0x43663f(_0x2e6140._0x3ae51d,_0x2e6140._0x1d8907,_0x2e6140._0x17184b,0x399)]===_0x5864be[_0x43663f(_0x2e6140._0x259562,_0x2e6140._0x361dac,_0x2e6140._0x41c297,_0x2e6140._0x2a7313)]&&_0x2e44a4['every'](_0x593bb1=>_0x5864be['includes'](_0x593bb1));}function isNonNegativeSafeInteger(_0x370343){const _0x3993c1={_0x6206e3:0x86,_0xbdfc50:0xfb,_0x5d0ba5:0xc8},_0x3d37d5={_0x3f67f9:0x7b};function _0x218f2b(_0x1cebc5,_0x49c370,_0x29be52,_0x2717e7){return _0x902988(_0x1cebc5-_0x3d37d5._0x3f67f9,_0x49c370-0x1db,_0x1cebc5- -0x391,_0x49c370);}return typeof _0x370343==='number'&&Number[_0x218f2b(_0x3993c1._0x6206e3,0x3a,_0x3993c1._0xbdfc50,_0x3993c1._0x5d0ba5)](_0x370343)&&_0x370343>=0x0;}function requireModelUsageInteger(_0x183905){if(!isNonNegativeSafeInteger(_0x183905))throw new ModelUsageOverflowError('Model\x20usage\x20total\x20overflow');return _0x183905;}function addModelUsageInteger(_0x359a4e,_0x2b3c22){return requireModelUsageInteger(_0x359a4e+_0x2b3c22);}function emptyModelUsageTotals(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'totalModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function isModelUsageTotals(_0x42a7b1){const _0x39c160={_0x14bac2:0x3d,_0xab9fef:0x18,_0x128d6c:0x25,_0x5413d4:0x9,_0x4cd4b6:0x32c,_0x265fc1:0x2d7,_0x1808d7:0x34e,_0x49629f:0x36,_0x236655:0x51,_0x4b57c7:0x31,_0x527bc5:0x2,_0x5e18b1:0x36c,_0x46cef1:0x3d5,_0x512486:0x8f,_0x31929d:0x86,_0x1af4aa:0x43,_0x2e4156:0x9f,_0x12ea39:0x59,_0x36dc3a:0xee,_0x5f34bd:0x31,_0xb81d7d:0x69,_0xa3e8c0:0x341,_0x4a4d27:0x36b,_0x59012b:0x9c,_0xc77f1f:0x93,_0x3dba86:0xce,_0x38a9fb:0x448,_0x3e2be5:0x365,_0xed88d3:0x442,_0x15bc71:0x3e8,_0x4f5bc2:0x2d2,_0x243b1c:0x94,_0x5632cf:0x6c,_0x37f330:0x2e,_0xb4e3a6:0xa2,_0x133ded:0x7e},_0x1d1c31={_0x239618:0x144,_0x3bd4cd:0xd6,_0x5b9da7:0x62};if(!hasExactKeys(_0x42a7b1,MODEL_USAGE_TOTAL_KEYS))return![];for(const _0x2e84c2 of MODEL_USAGE_TOTAL_KEYS){if(_0x2e84c2===_0x37d5ca(-_0x39c160._0x14bac2,_0x39c160._0xab9fef,-0x41,-0x2e))continue;if(!isNonNegativeSafeInteger(_0x42a7b1[_0x2e84c2]))return![];}function _0x12a078(_0x3fe7d9,_0xca080c,_0x613957,_0x1f9e16){return _0x902988(_0x3fe7d9-0xdc,_0xca080c-0xc8,_0x1f9e16- -0xd2,_0xca080c);}if(typeof _0x42a7b1[_0x37d5ca(0x8,_0x39c160._0x128d6c,_0x39c160._0x5413d4,-0x2e)]!==_0x12a078(_0x39c160._0x4cd4b6,_0x39c160._0x265fc1,_0x39c160._0x1808d7,0x2fd))return![];const _0x4614f7=_0x42a7b1;function _0x37d5ca(_0x5f1de9,_0x4aae7d,_0x1d9f5e,_0x37d232){return _0x39f914(_0x5f1de9-_0x1d1c31._0x239618,_0x4aae7d-_0x1d1c31._0x3bd4cd,_0x4aae7d,_0x37d232-_0x1d1c31._0x5b9da7);}return _0x4614f7[_0x37d5ca(-_0x39c160._0x49629f,0x85,0x2,_0x39c160._0x236655)]===_0x4614f7[_0x37d5ca(-0x7,-0x2a,-_0x39c160._0x4b57c7,-_0x39c160._0x527bc5)]+_0x4614f7[_0x12a078(0x392,_0x39c160._0x5e18b1,0x3cc,_0x39c160._0x46cef1)]&&_0x4614f7[_0x37d5ca(-_0x39c160._0x512486,-0x4a,-_0x39c160._0x31929d,-0x42)]<=_0x4614f7[_0x37d5ca(_0x39c160._0x1af4aa,_0x39c160._0x2e4156,0xb0,_0x39c160._0x12ea39)]&&_0x4614f7[_0x37d5ca(-_0x39c160._0x36dc3a,-0xc8,-_0x39c160._0x5f34bd,-_0x39c160._0xb81d7d)]<=_0x4614f7['modelCallCount']&&_0x4614f7[_0x12a078(_0x39c160._0xa3e8c0,0x384,0x301,_0x39c160._0x4a4d27)]<=_0x4614f7[_0x37d5ca(0x65,_0x39c160._0x59012b,_0x39c160._0xc77f1f,0x6c)]&&_0x4614f7[_0x37d5ca(0x22,-_0x39c160._0x3dba86,-0xba,-0x52)]<=_0x4614f7[_0x12a078(_0x39c160._0x38a9fb,_0x39c160._0x3e2be5,_0x39c160._0xed88d3,_0x39c160._0x15bc71)]&&_0x4614f7[_0x12a078(0x36f,_0x39c160._0x4f5bc2,0x2ba,0x336)]<=_0x4614f7[_0x37d5ca(_0x39c160._0x243b1c,0xe1,0x9a,_0x39c160._0x5632cf)]&&_0x4614f7[_0x37d5ca(-0xb3,-0x9e,-_0x39c160._0x37f330,-0x2e)]===(_0x4614f7[_0x37d5ca(-_0x39c160._0xb4e3a6,-0x4,-0x8a,-_0x39c160._0x133ded)]===0x0);}function isSubagentReportMeta(_0x1a35f9){const _0x5e96b2={_0x2d981f:0x83,_0xf5c49e:0xb7,_0x589aa5:0x16d,_0x1d2693:0xfc,_0x4607df:0xff,_0x169ada:0xf6,_0x5c3473:0x14a,_0x4e154a:0x130,_0x161ea4:0xf8,_0x233968:0x132,_0x1450c7:0x25,_0x217d34:0x6a,_0x48a4e5:0xc9,_0x57315b:0xb1,_0x402964:0xce,_0x33ccab:0x132,_0x1c98a1:0x9d,_0x356e68:0x7f,_0x37eb67:0xa4,_0x5d1f1f:0x140,_0x362c54:0xf9,_0xa2b863:0x64,_0x355768:0xd5,_0x1fe5f6:0x5c,_0x11c980:0x45,_0x26583f:0x97,_0x9812be:0x98,_0x34ef3c:0x60,_0xd633ab:0xcd,_0x5f0b18:0xed,_0x4a2179:0x11d},_0x5e3784={_0x3f8b72:0x125,_0x852188:0xd2},_0x8930a4={_0x4b1f21:0x12b,_0x46ea3d:0x91};if(!hasExactKeys(_0x1a35f9,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x1a35f9[_0x1ddcf0(-_0x5e96b2._0x2d981f,-0x8e,-0x83,-_0x5e96b2._0xf5c49e)]!=='string'||_0x1a35f9[_0x7c8c3f(_0x5e96b2._0x589aa5,_0x5e96b2._0x1d2693,0xb5,0xfd)][_0x7c8c3f(0x16e,_0x5e96b2._0x4607df,_0x5e96b2._0x169ada,_0x5e96b2._0x5c3473)]===0x0)return![];if(typeof _0x1a35f9['runId']!==_0x7c8c3f(_0x5e96b2._0x4e154a,0x128,_0x5e96b2._0x161ea4,_0x5e96b2._0x233968)||_0x1a35f9['runId'][_0x1ddcf0(-_0x5e96b2._0x1450c7,0x19,-0x57,-_0x5e96b2._0x217d34)]===0x0)return![];function _0x7c8c3f(_0x14310e,_0x43e0f4,_0x45d122,_0x24312d){return _0x39f914(_0x14310e-_0x8930a4._0x4b1f21,_0x43e0f4-_0x8930a4._0x46ea3d,_0x14310e,_0x24312d-0x177);}function _0x1ddcf0(_0x292684,_0x54d680,_0x1f09c5,_0x3881ea){return _0x39f914(_0x292684-_0x5e3784._0x3f8b72,_0x54d680-_0x5e3784._0x852188,_0x54d680,_0x3881ea- -0x3d);}if(typeof _0x1a35f9[_0x1ddcf0(-_0x5e96b2._0x48a4e5,-_0x5e96b2._0x57315b,-0x139,-_0x5e96b2._0x402964)]!==_0x7c8c3f(0x123,0xea,0x16f,_0x5e96b2._0x33ccab)||_0x1a35f9[_0x1ddcf0(-0x11e,-_0x5e96b2._0x1c98a1,-0xcb,-0xce)][_0x1ddcf0(-_0x5e96b2._0x356e68,-_0x5e96b2._0x37eb67,-0xdc,-_0x5e96b2._0x217d34)]===0x0)return![];if(_0x1a35f9['status']!=='completed'&&_0x1a35f9['status']!==_0x7c8c3f(0x168,0xe2,0xb6,0xee)&&_0x1a35f9[_0x1ddcf0(-0x103,-_0x5e96b2._0x5d1f1f,-_0x5e96b2._0x362c54,-0x12e)]!==_0x1ddcf0(-0x122,-_0x5e96b2._0xa2b863,-0x122,-_0x5e96b2._0x355768))return![];if(!isModelUsageTotals(_0x1a35f9[_0x1ddcf0(0x3e,0x20,-_0x5e96b2._0x1fe5f6,-_0x5e96b2._0x11c980)]))return![];if(!isModelUsageTotals(_0x1a35f9[_0x7c8c3f(0xa8,_0x5e96b2._0x26583f,0x23,_0x5e96b2._0x9812be)]))return![];return _0x1a35f9[_0x1ddcf0(-_0x5e96b2._0x34ef3c,-0x99,-0xbc,-0x45)][_0x1ddcf0(-0xd1,-0x76,-0xd0,-_0x5e96b2._0xd633ab)]&&_0x1a35f9['turnUsage'][_0x1ddcf0(-0x93,-0xf2,-_0x5e96b2._0x5f0b18,-_0x5e96b2._0x4a2179)]===0x0;}function addModelUsageTotals(_0x5a0cc6,_0x20eb3f){const _0x4288ad={_0x583bf3:0x671,_0xe8e438:0x631,_0xe1d8f3:0x5f2,_0xdd7fc1:0x615,_0x1fd4a1:0x59f,_0x2e1892:0x547,_0x1c2e3d:0xe8,_0x2eef09:0x70,_0x2d0412:0xb0,_0x3b1b39:0x61c,_0x561b68:0x62b,_0x1ab376:0x59b,_0x9dc1e3:0xa4,_0x1667f8:0x127,_0x1186c5:0xa8,_0x5684eb:0x30,_0x3a8d36:0x11,_0x4b95fd:0x538,_0x4c4ea2:0x4b3,_0x35f856:0x115,_0x297f14:0xd0,_0xa6d260:0xde,_0x1246b3:0x60d,_0x342fbc:0x587,_0x3448eb:0x58c,_0x3f7342:0x2c,_0x364a5a:0x53,_0xd0eae:0x14,_0x483973:0x141,_0x527d0b:0x47,_0x523ed4:0xd0,_0x516e14:0x5c0,_0xbc4c21:0x567,_0x12f551:0x581,_0x566b9d:0x2d,_0xd5a7ed:0x1e,_0x18b2de:0x577,_0x3dcf56:0x590,_0x233709:0x4e,_0x44c0b5:0xe,_0x3f6adc:0x61,_0x5bfc6d:0x66,_0x1d7ebc:0x4b,_0x1f2edd:0x5,_0x4e0c08:0x25,_0x26013d:0x5b8,_0x29b81e:0x55b,_0x2ba976:0xb9,_0x408af2:0x44,_0x307916:0x46,_0x38edb5:0x6f,_0x14a18b:0xc,_0xbaa8d3:0x6,_0x212a2b:0x5a3},_0x302165={_0x58dd79:0x1dc,_0x2dd07d:0x31,_0x5315a4:0x153},_0x30c862={_0x19e3ae:0xa7};function _0x3c54c(_0x48c671,_0x31eff4,_0x1f4433,_0x248cfa){return _0x902988(_0x48c671-0xa7,_0x31eff4-_0x30c862._0x19e3ae,_0x1f4433- -0x3dc,_0x48c671);}function _0x261708(_0x10ba63,_0xd0ef0b,_0x16a4aa,_0x213e31){return _0x902988(_0x10ba63-_0x302165._0x58dd79,_0xd0ef0b-_0x302165._0x2dd07d,_0x16a4aa-_0x302165._0x5315a4,_0x10ba63);}return{'totalTokens':addModelUsageInteger(_0x5a0cc6[_0x261708(_0x4288ad._0x583bf3,0x622,0x5f2,_0x4288ad._0xe8e438)],_0x20eb3f[_0x261708(0x665,0x5ff,_0x4288ad._0xe1d8f3,0x5fd)]),'totalInputTokens':addModelUsageInteger(_0x5a0cc6[_0x261708(0x51d,_0x4288ad._0xdd7fc1,_0x4288ad._0x1fd4a1,_0x4288ad._0x2e1892)],_0x20eb3f[_0x3c54c(_0x4288ad._0x1c2e3d,0x4a,_0x4288ad._0x2eef09,_0x4288ad._0x2d0412)]),'totalOutputTokens':addModelUsageInteger(_0x5a0cc6[_0x261708(_0x4288ad._0x3b1b39,_0x4288ad._0x561b68,0x5fa,_0x4288ad._0x1ab376)],_0x20eb3f[_0x3c54c(0x65,_0x4288ad._0x9dc1e3,0xcb,_0x4288ad._0x1667f8)]),'totalReasoningTokens':addModelUsageInteger(_0x5a0cc6['totalReasoningTokens'],_0x20eb3f[_0x3c54c(_0x4288ad._0x1186c5,-0x3f,_0x4288ad._0x5684eb,0x1f)]),'requestCount':addModelUsageInteger(_0x5a0cc6[_0x3c54c(-_0x4288ad._0x3a8d36,0x94,0x9,-0x10)],_0x20eb3f[_0x261708(0x547,0x4ef,_0x4288ad._0x4b95fd,_0x4288ad._0x4c4ea2)]),'modelCallCount':addModelUsageInteger(_0x5a0cc6[_0x3c54c(_0x4288ad._0x35f856,_0x4288ad._0x297f14,_0x4288ad._0xa6d260,0xae)],_0x20eb3f[_0x261708(0x5eb,0x5f4,_0x4288ad._0x1246b3,0x62b)]),'totalModelTimeMs':addModelUsageInteger(_0x5a0cc6[_0x261708(_0x4288ad._0x342fbc,0x5ec,0x609,_0x4288ad._0x3448eb)],_0x20eb3f['totalModelTimeMs']),'totalCostUsdTicks':addModelUsageInteger(_0x5a0cc6['totalCostUsdTicks'],_0x20eb3f[_0x3c54c(-_0x4288ad._0x3f7342,_0x4288ad._0x364a5a,_0x4288ad._0xd0eae,-0x36)]),'totalReportedCostUsdTicks':addModelUsageInteger(_0x5a0cc6[_0x3c54c(0x8d,_0x4288ad._0x483973,0xd0,0x111)],_0x20eb3f[_0x3c54c(0x15a,_0x4288ad._0x527d0b,_0x4288ad._0x523ed4,0x7f)]),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x5a0cc6[_0x261708(_0x4288ad._0x516e14,_0x4288ad._0xbc4c21,0x57b,_0x4288ad._0x12f551)],_0x20eb3f[_0x3c54c(0x2b,-_0x4288ad._0x566b9d,0x4c,_0x4288ad._0xd5a7ed)]),'reportedCostCallCount':addModelUsageInteger(_0x5a0cc6[_0x261708(_0x4288ad._0x18b2de,0x5f4,_0x4288ad._0x3dcf56,0x55d)],_0x20eb3f[_0x3c54c(_0x4288ad._0x233709,_0x4288ad._0x44c0b5,_0x4288ad._0x3f6adc,0x11)]),'estimatedCostCallCount':addModelUsageInteger(_0x5a0cc6[_0x3c54c(-0x3f,-_0x4288ad._0x5bfc6d,0x20,0x17)],_0x20eb3f['estimatedCostCallCount']),'unpricedModelCallCount':addModelUsageInteger(_0x5a0cc6[_0x3c54c(-_0x4288ad._0x1d7ebc,-_0x4288ad._0x1f2edd,0x2c,-_0x4288ad._0x4e0c08)],_0x20eb3f[_0x261708(_0x4288ad._0x26013d,0x579,_0x4288ad._0x29b81e,0x53b)]),'historicalMetricsComplete':_0x5a0cc6['historicalMetricsComplete']&&_0x20eb3f[_0x3c54c(0x90,_0x4288ad._0x2ba976,_0x4288ad._0x408af2,_0x4288ad._0x307916)],'missingHistoricalModelCallCount':addModelUsageInteger(_0x5a0cc6[_0x3c54c(0x25,_0x4288ad._0x38edb5,-_0x4288ad._0x14a18b,_0x4288ad._0xbaa8d3)],_0x20eb3f[_0x261708(0x527,_0x4288ad._0x212a2b,0x523,0x536)])};}function modelUsageTotalsEqual(_0x294f60,_0x149262){const _0x183825={_0x21351c:0xee,_0x2de0ed:0x7d},_0x444339={_0x1fab29:0x98,_0x274d12:0x10};function _0x3a5c5f(_0x4f7a14,_0x3c0079,_0x270f4d,_0x24e4b4){return _0x39f914(_0x4f7a14-_0x444339._0x1fab29,_0x3c0079-0xb,_0x24e4b4,_0x270f4d-_0x444339._0x274d12);}return MODEL_USAGE_TOTAL_KEYS[_0x3a5c5f(-_0x183825._0x21351c,-0xdc,-_0x183825._0x2de0ed,-0x98)](_0x57d57b=>_0x294f60[_0x57d57b]===_0x149262[_0x57d57b]);}function modelUsageTotalsFromSnapshot(_0x33fab2){const _0x5e50d8={_0x2cae93:0x4,_0x4229b0:0x37,_0x5254d8:0xa5,_0x4f1032:0x8a,_0x2aad2b:0xb4,_0x57d0e4:0x41,_0x84efcc:0x1c,_0x284156:0x35e,_0x3df4ca:0x419,_0x2df3b0:0x3cb,_0x4c5d07:0x4bd,_0x2f56e4:0x49b,_0x194e58:0xb0,_0x301868:0x3cd,_0x233565:0x3d7,_0x487d49:0x121,_0x3f497a:0x38,_0x19d93f:0xb6,_0x4fe412:0x178,_0x4af2d0:0x106,_0x3c72ca:0x153,_0x5ebf7d:0x7e,_0x14e67e:0x138,_0x47099b:0x61},_0x3ae9d8={_0x3fbe48:0x92,_0x222217:0x48b},_0x8017a3={_0x4040a4:0x4d6},_0x58ad19={'totalTokens':_0x33fab2[_0x4b8f42(_0x5e50d8._0x2cae93,-_0x5e50d8._0x4229b0,-0x37,-0x3c)],'totalInputTokens':_0x33fab2[_0x4b8f42(-_0x5e50d8._0x5254d8,-0xed,-_0x5e50d8._0x4f1032,-_0x5e50d8._0x2aad2b)],'totalOutputTokens':_0x33fab2['totalOutputTokens'],'totalReasoningTokens':_0x33fab2['totalReasoningTokens'],'requestCount':_0x33fab2[_0x4b8f42(-0x15e,-0x10c,-0xf1,-0xac)],'modelCallCount':_0x33fab2[_0x4b8f42(_0x5e50d8._0x57d0e4,-0x2,-_0x5e50d8._0x84efcc,0x49)],'totalModelTimeMs':_0x33fab2['totalModelTimeMs'],'totalCostUsdTicks':_0x33fab2[_0x18cbf1(_0x5e50d8._0x284156,_0x5e50d8._0x3df4ca,0x40a,_0x5e50d8._0x2df3b0)],'totalReportedCostUsdTicks':_0x33fab2[_0x18cbf1(_0x5e50d8._0x4c5d07,_0x5e50d8._0x2f56e4,0x435,0x487)],'totalEstimatedCostUsdTicks':_0x33fab2[_0x4b8f42(-_0x5e50d8._0x194e58,-0x3b,-0xae,-0x6a)],'reportedCostCallCount':_0x33fab2[_0x18cbf1(0x46a,0x3e5,0x497,0x418)],'estimatedCostCallCount':_0x33fab2[_0x18cbf1(0x353,_0x5e50d8._0x301868,0x422,_0x5e50d8._0x233565)],'unpricedModelCallCount':_0x33fab2[_0x4b8f42(-0xdb,-_0x5e50d8._0x487d49,-0xce,-0x137)],'historicalMetricsComplete':_0x33fab2[_0x4b8f42(-_0x5e50d8._0x3f497a,-0x59,-_0x5e50d8._0x19d93f,-0x117)],'missingHistoricalModelCallCount':_0x33fab2[_0x4b8f42(-0x179,-_0x5e50d8._0x4fe412,-_0x5e50d8._0x4af2d0,-_0x5e50d8._0x3c72ca)]};function _0x4b8f42(_0x5a16e4,_0x41fca1,_0x5ba036,_0x4eb45e){return _0x902988(_0x5a16e4-0x34,_0x41fca1-0x150,_0x5ba036- -_0x8017a3._0x4040a4,_0x4eb45e);}function _0x18cbf1(_0x1bebda,_0x21f0d3,_0x47b278,_0x4dc559){return _0x39f914(_0x1bebda-0x33,_0x21f0d3-_0x3ae9d8._0x3fbe48,_0x1bebda,_0x4dc559-_0x3ae9d8._0x222217);}for(const _0x53ae40 of MODEL_USAGE_TOTAL_KEYS){if(_0x53ae40===_0x4b8f42(-_0x5e50d8._0x5ebf7d,-_0x5e50d8._0x14e67e,-_0x5e50d8._0x19d93f,-_0x5e50d8._0x47099b))continue;requireModelUsageInteger(_0x58ad19[_0x53ae40]);}return _0x58ad19;}function modelUsageTotalsFromCall(_0x1debce){const _0x282f17={_0x13d487:0xe7,_0x4ebfa7:0xba,_0x2664bd:0x42,_0x3c9107:0x87,_0x6b0163:0x12e,_0x313497:0x254,_0x5a3555:0x1dd,_0x5010fb:0xc2,_0xd79357:0x1ea,_0xa0cc10:0x1ac,_0x5af260:0x12d,_0x1314cc:0x11b},_0x152f92={_0x4b4b22:0x11a,_0x458a5f:0x5dd},_0x54bd18={_0x5a5cbf:0x16a,_0x45fba2:0x58},_0x4972f5=_0x1debce[_0x32a9f3(_0x282f17._0x13d487,0x14b,_0x282f17._0x4ebfa7,0xe4)],_0x3b0a33=requireModelUsageInteger(_0x4972f5['inputTokens']),_0x32f051=requireModelUsageInteger(_0x4972f5[_0x32a9f3(0x100,0x46,_0x282f17._0x2664bd,_0x282f17._0x3c9107)]),_0x3a21f3=requireModelUsageInteger(_0x4972f5[_0x32a9f3(0xbf,0x111,0x164,_0x282f17._0x6b0163)]??0x0),_0x4b66fa=requireModelUsageInteger(_0x1debce['modelTimeMs']),_0xc18abe=addModelUsageInteger(_0x3b0a33,_0x32f051),_0x3b3934=_0x4972f5[_0x11406a(-_0x282f17._0x313497,-_0x282f17._0x5a3555,-0x259,-0x1ff)]?.[_0x32a9f3(0x164,_0x282f17._0x5010fb,0x1b2,0x12d)],_0x44bf53=_0x4972f5[_0x11406a(-0x1eb,-_0x282f17._0xd79357,-0x22c,-0x1c1)]?.[_0x32a9f3(0x195,0xbd,_0x282f17._0xa0cc10,_0x282f17._0x5af260)],_0x41fcd8=_0x3b3934===void 0x0?void 0x0:requireModelUsageInteger(_0x3b3934),_0x98d279=_0x44bf53===void 0x0?void 0x0:requireModelUsageInteger(_0x44bf53),_0x131483=_0x41fcd8??_0x98d279,_0x44f79f={...emptyModelUsageTotals(),'totalTokens':_0xc18abe,'totalInputTokens':_0x3b0a33,'totalOutputTokens':_0x32f051,'totalReasoningTokens':_0x3a21f3,'requestCount':_0x1debce[_0x32a9f3(0x187,0x10c,_0x282f17._0x1314cc,0x122)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x4b66fa,'totalCostUsdTicks':_0x131483??0x0,'totalReportedCostUsdTicks':_0x41fcd8??0x0,'totalEstimatedCostUsdTicks':_0x98d279??0x0,'reportedCostCallCount':_0x41fcd8===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x98d279===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x41fcd8===void 0x0&&_0x98d279===void 0x0?0x1:0x0};function _0x32a9f3(_0x122048,_0x28d376,_0x4b8c1a,_0x1e0baa){return _0x39f914(_0x122048-_0x54bd18._0x5a5cbf,_0x28d376-_0x54bd18._0x45fba2,_0x28d376,_0x1e0baa-0x143);}function _0x11406a(_0x18a415,_0x334ce5,_0x3bf09c,_0x220b4d){return _0x902988(_0x18a415-_0x152f92._0x4b4b22,_0x334ce5-0x143,_0x220b4d- -_0x152f92._0x458a5f,_0x18a415);}if(!isModelUsageTotals(_0x44f79f))throw new ModelUsageOverflowError('Model\x20usage\x20total\x20overflow');return _0x44f79f;}function modelUsageTotalsFromHistory(_0x4496e2,_0x583030){const _0x543322={_0x34b099:0x2fd,_0x3ea473:0x32c,_0x5a7341:0x1b8,_0x12a264:0x146,_0x44fdcf:0x39d,_0xd43618:0x306},_0xaa48a0={_0x4c62c6:0x26d},_0x575043={_0x48d7e1:0x192};let _0xfc5626=emptyModelUsageTotals();for(const _0x20b724 of _0x4496e2){_0xfc5626=addModelUsageTotals(_0xfc5626,modelUsageTotalsFromCall({'usage':_0x20b724[_0x2fca69(0x2c6,_0x543322._0x34b099,_0x543322._0x3ea473,0x2d2)],'modelTimeMs':_0x20b724[_0x4a2429(_0x543322._0x5a7341,0x173,_0x543322._0x12a264,0x169)],'completesRequest':_0x20b724[_0x2fca69(_0x543322._0x44fdcf,0x33b,0x384,_0x543322._0xd43618)]}));}function _0x2fca69(_0x539881,_0x4bf3a2,_0x3340bb,_0x41cc0c){return _0x902988(_0x539881-0x1d8,_0x4bf3a2-_0x575043._0x48d7e1,_0x4bf3a2- -0x154,_0x41cc0c);}function _0x4a2429(_0x49ac9f,_0x4661a9,_0x5638ee,_0x3d7a10){return _0x39f914(_0x49ac9f-0x1f3,_0x4661a9-0x5f,_0x5638ee,_0x49ac9f-_0xaa48a0._0x4c62c6);}const _0x463430=requireModelUsageInteger(_0x583030);return{..._0xfc5626,'historicalMetricsComplete':_0x463430===0x0,'missingHistoricalModelCallCount':_0x463430};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x344dfa,_0x492d95){const _0x2de90a={_0x20d4dd:0xed,_0x249cd3:0x11d,_0x4792ab:0x1c8,_0x59495b:0x13c,_0x16a032:0x5b3,_0x427059:0x543,_0x46a4b6:0x61a,_0x2fd77b:0x5a8,_0x18f447:0x535,_0x3e1663:0x557,_0x314c02:0x5cc,_0x3470b1:0x63f,_0x86a5f6:0x5c0,_0x11077d:0x576,_0x4f0619:0x58b,_0x31e185:0x88,_0x39833b:0x5a,_0x3007dd:0xcc,_0x3c09ac:0xaf},_0x3019af={_0x281a09:0x119},_0x1d4b1f={_0x1ff1c1:0x1ea,_0x481c50:0x8e},_0x3119ad=modelUsageTotalsFromCall(_0x492d95);function _0x17bd09(_0x2c1f9c,_0x25e4b0,_0x2557ce,_0x9cb48a){return _0x39f914(_0x2c1f9c-_0x1d4b1f._0x1ff1c1,_0x25e4b0-0xa5,_0x25e4b0,_0x2c1f9c- -_0x1d4b1f._0x481c50);}const _0x53ca59=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x344dfa),_0x3119ad),_0x41f5f1=_0x492d95[_0x17bd09(-_0x2de90a._0x20d4dd,-0x135,-0x154,-_0x2de90a._0x249cd3)][_0x17bd09(-0x160,-_0x2de90a._0x4792ab,-_0x2de90a._0x59495b,-0x138)]?.[_0x228a8a(_0x2de90a._0x16a032,0x63c,_0x2de90a._0x427059,_0x2de90a._0x46a4b6)];function _0x228a8a(_0x4ff62d,_0x5c8576,_0x391b41,_0x4583b4){return _0x902988(_0x4ff62d-0x8c,_0x5c8576-0xde,_0x4ff62d-_0x3019af._0x281a09,_0x4583b4);}const _0x36040a=_0x492d95[_0x228a8a(0x56a,0x585,0x508,_0x2de90a._0x2fd77b)][_0x228a8a(_0x2de90a._0x18f447,0x53c,0x4b8,0x4f8)]?.['amountUsdTicks'],{currentReportedCostUsdTicks:_0x346e03,currentEstimatedCostUsdTicks:_0x2ed42f,..._0x3a6424}=_0x344dfa;return{..._0x3a6424,..._0x53ca59,'currentTokens':_0x3119ad[_0x228a8a(0x5b8,_0x2de90a._0x3e1663,_0x2de90a._0x314c02,_0x2de90a._0x3470b1)],'currentInputTokens':_0x3119ad[_0x17bd09(-0xf2,-0x16d,-0x157,-0x16d)],'currentOutputTokens':_0x3119ad[_0x228a8a(_0x2de90a._0x86a5f6,_0x2de90a._0x11077d,0x621,_0x2de90a._0x4f0619)],'currentReasoningTokens':_0x3119ad[_0x228a8a(0x525,0x59a,0x54c,0x557)],'currentModelTimeMs':_0x3119ad[_0x17bd09(-_0x2de90a._0x31e185,-_0x2de90a._0x39833b,-0x60,-_0x2de90a._0x3007dd)],..._0x3a6424['contextWindowLimit']&&_0x3119ad['totalTokens']>0x0?{'contextWindowUsage':_0x3119ad['totalTokens']/_0x3a6424[_0x17bd09(-0xfa,-_0x2de90a._0x3c09ac,-0xa1,-0x183)]}:{},..._0x41f5f1!==void 0x0?{'currentReportedCostUsdTicks':_0x41f5f1}:{},..._0x36040a!==void 0x0?{'currentEstimatedCostUsdTicks':_0x36040a}:{}};}function mergeExternalUsage(_0x538c40,_0x27102f){const _0x4d6b97={_0xaad756:0x60,_0x1b8fb2:0xaa};function _0x3fad49(_0x4e3f07,_0x55bdab,_0x439b97,_0x55d807){return _0x39f914(_0x4e3f07-0x131,_0x55bdab-0x1e9,_0x55bdab,_0x439b97-0xb);}if(!isModelUsageTotals(_0x27102f))throw new TypeError(_0x3fad49(-0x55,-_0x4d6b97._0xaad756,-0xce,-_0x4d6b97._0x1b8fb2));const _0x1c1aeb=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x538c40),_0x27102f);return{..._0x538c40,..._0x1c1aeb};}function _0x902988(_0x55402a,_0x51da17,_0x45af19,_0x2c7b45){return _0x24f0(_0x45af19-0x276,_0x2c7b45);}function createAgentMetrics(_0x9d8f80={}){const _0x346138={_0x5686f1:0x1f9,_0x2c55c3:0x1e0},_0x344c97={_0x1bc105:0x1b7,_0x29c60b:0xdf,_0x5e5591:0x188,_0x584037:0x11a,_0x4aacee:0xc3,_0x168d38:0x178,_0x420bd0:0x13b,_0x481221:0x161,_0x1002f9:0x177,_0x54cfc3:0xbd,_0x37b83f:0xdf,_0x130464:0x96},_0x9a5cb1={_0x1f9995:0x393,_0x34b510:0x369,_0x544eb3:0x3e2,_0x2c966e:0x3fe,_0x4b72f8:0x473,_0x21a223:0x45a,_0x5bd10e:0x373,_0x8c8b86:0x478,_0x2c23ce:0x43d,_0x2ac4d3:0x3e8,_0x26e477:0x45f,_0x1d3aa9:0x4e1,_0x506f64:0x550,_0x5bb889:0x485,_0x531207:0x465};let _0x1d1699=createEmptySnapshot();const _0x2a3ed9=new Set();let _0x3de58e;const _0x24f8a6=()=>{const _0x35f967={..._0x1d1699};for(const _0xf91d of _0x2a3ed9)_0xf91d(_0x35f967);};return{'getSnapshot'(){return{..._0x1d1699};},'recordEvent'(_0x5f15e2){const _0x2c1225={_0x29f1ef:0x2ca};function _0x155fba(_0x304621,_0xf6ae5d,_0x33afb4,_0x19613b){return _0x24f0(_0xf6ae5d-_0x2c1225._0x29f1ef,_0x19613b);}if(_0x5f15e2[_0x52b988(0x390,_0x9a5cb1._0x1f9995,0x360,0x40b)]==='model_request'){_0x3de58e=Date[_0x52b988(_0x9a5cb1._0x34b510,0x3af,0x332,_0x9a5cb1._0x544eb3)]();const _0x31ac6f=_0x9d8f80['getContextWindowLimit']?.(_0x5f15e2[_0x52b988(_0x9a5cb1._0x2c966e,0x44b,_0x9a5cb1._0x4b72f8,_0x9a5cb1._0x21a223)]);_0x31ac6f!==void 0x0&&(_0x1d1699={..._0x1d1699,'contextWindowLimit':_0x31ac6f},_0x24f8a6());return;}function _0x52b988(_0x372ef5,_0x5c9f68,_0x5a4a07,_0x5d1223){return _0x24f0(_0x372ef5-0x21d,_0x5a4a07);}if(_0x5f15e2['type']==='model_response'){const _0xda9533=_0x3de58e===void 0x0?0x0:Date['now']()-_0x3de58e;_0x3de58e=void 0x0,_0x1d1699=applyModelCall(_0x1d1699,{'usage':_0x5f15e2[_0x155fba(0x4a5,0x46e,0x4f2,0x434)][_0x52b988(0x3f8,_0x9a5cb1._0x5bd10e,0x394,_0x9a5cb1._0x8c8b86)],'modelTimeMs':_0x5f15e2['modelTimeMs']??_0xda9533}),_0x24f8a6();return;}if(_0x5f15e2[_0x155fba(0x3bc,_0x9a5cb1._0x2c23ce,_0x9a5cb1._0x2ac4d3,0x3d4)]==='tool_call'){_0x1d1699={..._0x1d1699,'toolCallCount':_0x1d1699[_0x155fba(_0x9a5cb1._0x26e477,_0x9a5cb1._0x1d3aa9,_0x9a5cb1._0x506f64,_0x9a5cb1._0x5bb889)]+0x1},_0x24f8a6();return;}_0x5f15e2['type']===_0x155fba(0x405,0x434,_0x9a5cb1._0x531207,0x4a9)&&(_0x1d1699={..._0x1d1699,'requestCount':addModelUsageInteger(_0x1d1699['requestCount'],0x1)},_0x24f8a6());},'recordExternalUsage'(_0x56e827){const _0xab1e1b=mergeExternalUsage(_0x1d1699,_0x56e827);_0x1d1699=_0xab1e1b,_0x24f8a6();},'reset'(){_0x1d1699=createEmptySnapshot(),_0x3de58e=void 0x0,_0x24f8a6();},'restore'(_0x57db2b){let _0x1fb5f1=createEmptySnapshot();for(const _0x5c0eb0 of _0x57db2b[_0x3f44aa(0x140,_0x344c97._0x1bc105,_0x344c97._0x29c60b,_0x344c97._0x5e5591)]){_0x1fb5f1=applyModelCall(_0x1fb5f1,{'usage':_0x5c0eb0['usage'],'modelTimeMs':_0x5c0eb0[_0x3f44aa(0xe5,_0x344c97._0x584037,_0x344c97._0x4aacee,0x8c)],'completesRequest':_0x5c0eb0[_0x3f44aa(0x179,0x204,_0x344c97._0x168d38,_0x344c97._0x420bd0)]});}const _0x72d0ba=requireModelUsageInteger(_0x57db2b[_0x3f44aa(_0x344c97._0x481221,0x103,_0x344c97._0x1002f9,0x190)]);function _0x20e9c8(_0x4284eb,_0x494fdd,_0x1e0c62,_0x8433bf){return _0x24f0(_0x494fdd- -0x2d4,_0x8433bf);}_0x1fb5f1={..._0x1fb5f1,'toolCallCount':_0x57db2b[_0x20e9c8(-0xf0,-_0x344c97._0x54cfc3,-0xa9,-0x54)],'historicalMetricsComplete':_0x72d0ba===0x0,'missingHistoricalModelCallCount':_0x72d0ba};function _0x3f44aa(_0x56237b,_0x6e2e43,_0x4293a5,_0x511f86){return _0x24f0(_0x56237b- -0xa0,_0x6e2e43);}let _0x931322=_0x1fb5f1;if(_0x57db2b[_0x3f44aa(0xaf,_0x344c97._0x37b83f,0xaf,_0x344c97._0x130464)]!==void 0x0)try{_0x931322=mergeExternalUsage(_0x1fb5f1,_0x57db2b['externalUsage']);}catch(_0xdd0114){if(!(_0xdd0114 instanceof ModelUsageOverflowError))throw _0xdd0114;}_0x1d1699=_0x931322,_0x3de58e=void 0x0,_0x24f8a6();},'subscribe'(_0x4e93bc){const _0x282c04={_0x5e92a9:0x3cd};_0x2a3ed9[_0x2a0e45(-0x25d,-_0x346138._0x5686f1,-_0x346138._0x2c55c3,-0x231)](_0x4e93bc);function _0x2a0e45(_0x36041,_0xbdc507,_0x146644,_0x1e3894){return _0x24f0(_0x146644- -_0x282c04._0x5e92a9,_0xbdc507);}return()=>{_0x2a3ed9['delete'](_0x4e93bc);};}};}function normalizeExecutionScope(_0x14fe63){const _0x39c4b4={_0x3652b2:0x13e,_0xfde76b:0x112,_0x22d1d7:0x11a,_0x1e3494:0x32,_0x1d6e10:0x68},_0x4f30eb={_0x298051:0x148},_0x1a7b71={_0x289667:0xa3};function _0x68f7bc(_0x5fefc6,_0xbd9abb,_0x22918f,_0x15b4a8){return _0x902988(_0x5fefc6-0xde,_0xbd9abb-_0x1a7b71._0x289667,_0xbd9abb- -0x32b,_0x5fefc6);}function _0x13b849(_0x47d184,_0x4483d0,_0x1bb363,_0x14e489){return _0x902988(_0x47d184-_0x4f30eb._0x298051,_0x4483d0-0x12,_0x1bb363- -0x3a5,_0x47d184);}return{'agentId':_0x14fe63?.[_0x68f7bc(0xfc,0x10b,_0x39c4b4._0x3652b2,_0x39c4b4._0xfde76b)]??_0x13b849(0xea,0xdd,0xe9,_0x39c4b4._0x22d1d7),'toolCallPath':[..._0x14fe63?.[_0x13b849(_0x39c4b4._0x1e3494,0xff,0xb4,_0x39c4b4._0x1d6e10)]??[]]};}function makeExtensionContext(_0x4e9067,_0x4fa09d){const _0x2b08ec={_0x3b71b3:0x1f9,_0x76a4eb:0x241,_0x469000:0x233},_0x567ec1={_0x6315e8:0x1d};function _0x339bed(_0x1fd9a5,_0x48d4c9,_0x5b5205,_0x2cdf2e){return _0x39f914(_0x1fd9a5-_0x567ec1._0x6315e8,_0x48d4c9-0x47,_0x5b5205,_0x2cdf2e-0x2f9);}return{'state':_0x4e9067,'delivery':_0x339bed(0x1a8,_0x2b08ec._0x3b71b3,_0x2b08ec._0x76a4eb,_0x2b08ec._0x469000),'executionScope':_0x4fa09d};}async function runStage(_0x519184,_0x11a369,_0x2a511f,_0x3509fb){const _0x4a6cf1={_0x592666:0x0,_0xd43a87:0xa,_0x241783:0x79},_0x591825={_0x12e46a:0x149,_0x5587d2:0x1e5},_0x54318b={_0x2425b7:0x89};function _0x134b48(_0x582c23,_0x3c9690,_0x9ff5a2,_0x2571cc){return _0x39f914(_0x582c23-0x18e,_0x3c9690-_0x54318b._0x2425b7,_0x3c9690,_0x9ff5a2-0x5b);}const _0x190967=await _0x519184[_0x134b48(_0x4a6cf1._0x592666,0x23,-0x27,-0x9a)](_0x11a369,_0x2a511f,_0x3509fb);function _0x4e4cb5(_0x56cbec,_0x45e78f,_0x2a84e0,_0x1b8115){return _0x902988(_0x56cbec-_0x591825._0x12e46a,_0x45e78f-_0x591825._0x5587d2,_0x2a84e0- -0x160,_0x1b8115);}return await _0x519184[_0x134b48(-_0x4a6cf1._0xd43a87,-0x75,-_0x4a6cf1._0x241783,-0x2d)](_0x11a369,_0x190967,_0x3509fb),_0x190967;}async function emitEvent2(_0x32882e,_0x37da57,_0x3959a7){await _0x32882e?.(_0x37da57,_0x3959a7);}function replaceToolUseBlocks(_0x36b134,_0x28d357){const _0x33dc8f={_0x4bbb64:0x263,_0x5cd170:0x2f3,_0x3f34b0:0x330},_0x41115a={_0x2daeee:0x1a0,_0x1db30f:0x41},_0x14f4b8={_0xd59941:0xf2};function _0x9dcb79(_0xd74719,_0x4fcc09,_0x542db3,_0x42a9b6){return _0x902988(_0xd74719-0x8a,_0x4fcc09-0x5f,_0x42a9b6- -_0x14f4b8._0xd59941,_0x4fcc09);}let _0x51287d=0x0;function _0x200c56(_0x4b6943,_0x461f74,_0xee7947,_0x503a06){return _0x902988(_0x4b6943-0x1dc,_0x461f74-_0x41115a._0x2daeee,_0x503a06-_0x41115a._0x1db30f,_0xee7947);}return{..._0x36b134,'content':_0x36b134[_0x9dcb79(0x249,_0x33dc8f._0x4bbb64,_0x33dc8f._0x5cd170,0x2b6)][_0x9dcb79(0x31f,0x40e,_0x33dc8f._0x3f34b0,0x3a4)](_0x3b766e=>{if(_0x3b766e['type']!=='tool_use')return _0x3b766e;const _0x187615=_0x28d357[_0x51287d];return _0x51287d+=0x1,structuredClone(_0x187615);})};}function createAssistantMessageId(_0x46a6e3,_0x1e5a29){return _0x46a6e3+':assistant:'+_0x1e5a29;}function createReasoningMessageId(_0x211117){const _0xc02870={_0x29bbb6:0x12},_0x2e33a9={_0xc2b4e6:0x140};function _0x4f61d0(_0x1da375,_0x32354c,_0x1544ce,_0x358647){return _0x39f914(_0x1da375-0x139,_0x32354c-_0x2e33a9._0xc2b4e6,_0x32354c,_0x358647-0xc0);}return _0x211117+_0x4f61d0(0x48,0xf3,_0xc02870._0x29bbb6,0x80);}function withMessageId(_0x68d9c4,_0x3cfd21){if(_0x68d9c4['id']===_0x3cfd21)return _0x68d9c4;return{..._0x68d9c4,'id':_0x3cfd21};}function createAssistantChunkEvent(_0x24b752,_0x400b8a){const _0x588a44={_0x3bef9d:0x23d,_0x47e5f2:0x1b5,_0x2cbcba:0x186,_0x62896a:0x25a,_0x5e4fac:0x2c7,_0x14f0c4:0x245,_0x3b6a5:0x22e,_0x463cde:0xd6,_0x4ca8ae:0xdd,_0x496385:0x79,_0x59728f:0xc5,_0x5a3251:0x10c,_0x235809:0x158};if(_0x24b752[_0x368091(-0x23b,-0x2a9,-_0x588a44._0x3bef9d,-_0x588a44._0x47e5f2)]!==_0x5e8a15(-0x124,-0xc2,-0x13a,-_0x588a44._0x2cbcba))return void 0x0;function _0x5e8a15(_0x335b5a,_0x5ebd79,_0x3b339c,_0x243b32){return _0x902988(_0x335b5a-0xda,_0x5ebd79-0xb1,_0x3b339c- -0x522,_0x5ebd79);}function _0x368091(_0x1f0ad0,_0x2e3d54,_0x3cb768,_0x16e341){return _0x39f914(_0x1f0ad0-0x1de,_0x2e3d54-0x95,_0x2e3d54,_0x1f0ad0- -0x174);}if(_0x24b752[_0x368091(-_0x588a44._0x62896a,-_0x588a44._0x5e4fac,-_0x588a44._0x14f0c4,-_0x588a44._0x3b6a5)]===void 0x0)return void 0x0;return{'type':_0x5e8a15(-_0x588a44._0x463cde,-0x92,-_0x588a44._0x4ca8ae,-0x55),'index':_0x24b752[_0x5e8a15(-_0x588a44._0x496385,-0xd1,-_0x588a44._0x59728f,-0xa3)]??0x0,'messageId':_0x400b8a,'chunk':{'type':'content_delta','index':_0x24b752['index']??0x0,'text':_0x24b752[_0x5e8a15(-0x15d,-_0x588a44._0x5a3251,-_0x588a44._0x235809,-0x170)]}};}function createToolUseChunkEvent(_0x243e31,_0x11fd9b){const _0x7fb646={_0xc5e04a:0x339,_0x3b848b:0x31d,_0x3f9197:0x2cd,_0x1c0c13:0x37f,_0x2146d3:0x35c,_0x422d93:0x3a5,_0x2de84a:0x35f,_0x31368e:0x4f1,_0x307386:0x4fc,_0x7e1c65:0x303,_0x58198b:0x394,_0x4a89a3:0x302,_0x3c59bd:0x50d},_0x4b0f85={_0x2f501e:0x86},_0x5532ad={_0x44555f:0x565};function _0x4ff014(_0x218251,_0xe13ca6,_0xe3de2d,_0x2f916e){return _0x39f914(_0x218251-0xda,_0xe13ca6-0x1d9,_0x2f916e,_0xe3de2d-_0x5532ad._0x44555f);}function _0x54a57c(_0x36da02,_0x35c821,_0x373120,_0x9ad203){return _0x39f914(_0x36da02-0xcd,_0x35c821-_0x4b0f85._0x2f501e,_0x9ad203,_0x36da02-0x3f8);}if(_0x243e31['type']!==_0x54a57c(_0x7fb646._0xc5e04a,0x2df,0x346,0x380))return void 0x0;return{'type':_0x54a57c(_0x7fb646._0x3b848b,_0x7fb646._0x3f9197,0x2bd,0x2a6),'index':_0x243e31['index']??0x0,'messageId':_0x11fd9b,'chunk':{'type':_0x54a57c(0x339,_0x7fb646._0x1c0c13,0x349,_0x7fb646._0x2146d3),'id':_0x243e31['id']??'','index':_0x243e31[_0x54a57c(_0x7fb646._0x422d93,0x33d,_0x7fb646._0x2de84a,0x359)]??0x0,..._0x243e31[_0x4ff014(0x570,0x517,_0x7fb646._0x31368e,_0x7fb646._0x307386)]!==void 0x0?{'name':_0x243e31[_0x54a57c(0x384,_0x7fb646._0x7e1c65,_0x7fb646._0x58198b,_0x7fb646._0x4a89a3)]}:{},..._0x243e31[_0x54a57c(0x3b6,0x3e3,0x40b,0x42c)]!==void 0x0?{'inputDelta':_0x243e31[_0x4ff014(0x4f9,_0x7fb646._0x3c59bd,0x523,0x4ce)]}:{}}};}function createReasoningChunkEvent(_0x2ac4db,_0x3f06e4){const _0x8974f4={_0x494e32:0x4fe,_0x45fe43:0x441,_0x303117:0x34c,_0x34ceb1:0x345,_0x30429d:0x37f,_0x516eb1:0x4eb,_0x562607:0x399,_0x565504:0x3a9,_0x4cc554:0x3bb,_0x45ee30:0x541,_0x414306:0x59a,_0x377886:0x50c,_0x37e050:0x3aa,_0x1a75f:0x3b5,_0x7608fa:0x394,_0x167053:0x3ca,_0x214fa2:0x3cb,_0x3af88f:0x3d2,_0x4a0c58:0x3fd,_0x414977:0x3ad,_0x26ce86:0x381,_0x146bb5:0x37e,_0x5e0155:0x3cc,_0x3be42a:0x34c,_0x5d4875:0x3d7,_0x28f24c:0x42e,_0x542146:0x3e9,_0x552938:0x41f,_0x4c8711:0x4a4,_0x286e64:0x4b0,_0x39dbb1:0x469,_0x5b7353:0x451,_0x361fbe:0x3d4,_0xcbc681:0x443},_0x59310a={_0x309269:0x180,_0x49ecc2:0x8e},_0xe10198={_0xfc987:0x73,_0x1fa52c:0x1c,_0x44c25d:0x1e};function _0x90b452(_0x251fc1,_0x275748,_0x4b2b70,_0x4b85a2){return _0x902988(_0x251fc1-_0xe10198._0xfc987,_0x275748-_0xe10198._0x1fa52c,_0x4b85a2- -_0xe10198._0x44c25d,_0x4b2b70);}function _0x5bab85(_0x1b60b9,_0x135167,_0x8ce731,_0x26ed5b){return _0x902988(_0x1b60b9-0x8b,_0x135167-_0x59310a._0x309269,_0x1b60b9-_0x59310a._0x49ecc2,_0x8ce731);}switch(_0x2ac4db[_0x5bab85(0x477,0x41d,_0x8974f4._0x494e32,_0x8974f4._0x45fe43)]){case _0x90b452(_0x8974f4._0x303117,_0x8974f4._0x34ceb1,_0x8974f4._0x30429d,0x3bb):return{'type':'reasoning_chunk','index':_0x2ac4db[_0x5bab85(_0x8974f4._0x516eb1,0x543,0x56f,0x526)],'messageId':_0x3f06e4,'chunk':{'type':_0x90b452(_0x8974f4._0x562607,0x425,_0x8974f4._0x565504,_0x8974f4._0x4cc554),'index':_0x2ac4db[_0x5bab85(0x4eb,0x562,0x49a,_0x8974f4._0x45ee30)]??0x0,'thinking':_0x2ac4db[_0x5bab85(0x53c,0x507,_0x8974f4._0x414306,_0x8974f4._0x377886)]??''},'text':_0x2ac4db['thinking']??''};case _0x90b452(0x3e7,0x35b,0x3ba,_0x8974f4._0x37e050):return{'type':_0x90b452(_0x8974f4._0x1a75f,0x3e6,0x4b4,0x42a),'index':_0x2ac4db['contentIndex'],'messageId':_0x3f06e4,'chunk':{'type':_0x90b452(_0x8974f4._0x7608fa,_0x8974f4._0x167053,_0x8974f4._0x214fa2,_0x8974f4._0x37e050),'contentIndex':_0x2ac4db[_0x90b452(0x3f4,0x43c,_0x8974f4._0x3af88f,_0x8974f4._0x4a0c58)]??0x0,'delta':_0x2ac4db['delta']??'','itemId':_0x2ac4db['itemId']??'','outputIndex':_0x2ac4db[_0x90b452(0x463,_0x8974f4._0x414977,0x3fc,0x3f8)]??0x0},'text':_0x2ac4db['delta']??''};case _0x90b452(0x43f,_0x8974f4._0x26ce86,_0x8974f4._0x146bb5,0x3e9):return{'type':'reasoning_chunk','index':_0x2ac4db[_0x90b452(_0x8974f4._0x5e0155,0x3fd,_0x8974f4._0x3be42a,_0x8974f4._0x5d4875)],'messageId':_0x3f06e4,'chunk':{'type':_0x90b452(_0x8974f4._0x28f24c,0x42d,0x3d2,_0x8974f4._0x542146),'delta':_0x2ac4db['delta']??'','itemId':_0x2ac4db[_0x90b452(0x42e,_0x8974f4._0x552938,0x4ad,0x44f)]??'','outputIndex':_0x2ac4db[_0x5bab85(_0x8974f4._0x4c8711,0x452,0x4a6,_0x8974f4._0x286e64)]??0x0,'summaryIndex':_0x2ac4db[_0x5bab85(0x483,_0x8974f4._0x39dbb1,0x4be,0x4cb)]??0x0},'text':_0x2ac4db[_0x90b452(_0x8974f4._0x5b7353,0x44b,_0x8974f4._0x361fbe,_0x8974f4._0xcbc681)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x438f89){return structuredClone(_0x438f89);}function cloneToolResultForPublication2(_0x13031c){const _0x55560d={_0x35330a:0x30e,_0x3d573d:0x2a5,_0x5396af:0x307,_0xb54fde:0x41f,_0x52d340:0x41b,_0x240fe1:0x3a1,_0x1d1ab2:0x3aa},_0x36e3fb=_0x13031c['callId'],_0x544288=_0x13031c[_0x2443da(0x2a7,_0x55560d._0x35330a,_0x55560d._0x3d573d,_0x55560d._0x5396af)];function _0xff0f43(_0x3531c8,_0x2f335d,_0x54179c,_0x1fbf9f){return _0x39f914(_0x3531c8-0x96,_0x2f335d-0xb6,_0x54179c,_0x1fbf9f-0x1e5);}function _0x2443da(_0x41af92,_0x20deee,_0x3b5067,_0x345770){return _0x39f914(_0x41af92-0x17d,_0x20deee-0x1f2,_0x20deee,_0x345770-0x3c4);}const {chunks:_0x56ce4d,..._0x24d5fe}=_0x13031c;return{...structuredClone(_0x24d5fe),'callId':_0x36e3fb,'toolName':_0x544288,'chunks':_0x56ce4d[_0x2443da(_0x55560d._0xb54fde,_0x55560d._0x52d340,_0x55560d._0x240fe1,_0x55560d._0x1d1ab2)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x2afb93){const _0x152f47={_0xef6182:0x116,_0x39c676:0xf9,_0x50fc56:0xac,_0x20b09f:0xaf,_0x3eeaab:0xbb,_0x1990e8:0x7c,_0x5aecd3:0x9e,_0x283e9c:0x6e},_0x98009c={_0x5cb497:0xb8,_0x1b25c0:0xf4,_0x4926ab:0x2a},_0x1dcbe1={_0x259913:0x156};function _0x415c87(_0x407476,_0x5b4bcb,_0x2cb87c,_0x269543){return _0x902988(_0x407476-0x104,_0x5b4bcb-0xd2,_0x407476-_0x1dcbe1._0x259913,_0x5b4bcb);}function _0x214e56(_0x290c1b,_0x576f8e,_0x4383de,_0x26d1f7){return _0x39f914(_0x290c1b-_0x98009c._0x5cb497,_0x576f8e-_0x98009c._0x1b25c0,_0x4383de,_0x26d1f7-_0x98009c._0x4926ab);}return _0x2afb93[_0x214e56(-0x54,-_0x152f47._0xef6182,-_0x152f47._0x39c676,-0xc7)]==='error'&&_0x2afb93[_0x214e56(-_0x152f47._0x50fc56,-_0x152f47._0x20b09f,-_0x152f47._0x3eeaab,-_0x152f47._0x1990e8)][_0x214e56(-0x11,-0xe4,-_0x152f47._0x5aecd3,-_0x152f47._0x283e9c)]===!![];}async function executeModelRequest(_0x4a5f85,_0x5bd6ba,_0x24d587,_0x50a629,_0x327db3,_0x430f07){const _0x212466={_0x5bb81d:0x1a,_0xfee827:0x13,_0x2b89aa:0x52,_0x5f3832:0x2f,_0x2321c0:0x11e,_0x41b150:0x8d,_0x2eebb2:0x91,_0x6e1770:0x10,_0x56ff18:0x113,_0x14838b:0xc1,_0x132339:0x2a4,_0x36a703:0x2a4,_0x5e2569:0x2ed,_0x1c2ffd:0xd5,_0x5a95a0:0xa1,_0x5ac47b:0x8f,_0x4f7653:0xcc,_0x2c31b2:0xa7,_0x52fdc3:0x217,_0x428c0f:0x225,_0x40d55d:0x55,_0x2126fe:0x8b,_0x3449ab:0x2b8,_0x2c5237:0x1e9,_0x4294d2:0x16a,_0x1f2989:0x73,_0x5083ae:0x12c,_0x2c76dc:0xa4,_0x21d9a2:0x26b,_0x1d1e3d:0x28d,_0xdd5612:0x2d4,_0x39a375:0x347,_0x5568d7:0x26d,_0x1996f2:0x2c3,_0x42ae64:0x58,_0x11c045:0xe1,_0x211b71:0x19c,_0x1d9148:0x1e5,_0x57a316:0x2b6,_0x37c7ce:0x2ea,_0x5bc958:0x294,_0x2504e1:0x66,_0x104359:0xcc,_0x5dc836:0xa3,_0x498b4c:0x87,_0x2f0c28:0x230,_0x2c6bd7:0x228,_0x10b5fb:0x20b,_0x104ad2:0x258,_0x5dca80:0x24c,_0x143fec:0x210,_0x57b85a:0x269,_0x384ab0:0x4b,_0x18bf17:0x25b,_0x247faa:0x2d0,_0x4aa9d2:0x1d7,_0x231993:0x283,_0x323707:0x25d,_0x26cf7b:0x25e,_0x13a45a:0x47,_0x52c269:0xe3,_0x2c1ecd:0x76,_0x18ea34:0x239,_0x27696e:0x1f1,_0x121ca0:0x1c3,_0x1c3d71:0x219,_0x47d200:0x235,_0x1fbc5c:0x273,_0x46430f:0x2a1,_0x2bf73b:0x30b,_0x314246:0x114,_0x393753:0x179,_0x4c13ea:0xfc,_0x567ebc:0x85,_0x13d09b:0x86,_0x3ee8a5:0x3d,_0x483502:0xf4,_0x2d5448:0xcc,_0x3f5802:0x2dc,_0x2ecf8a:0x256,_0x46bb08:0x29d,_0x435b99:0x26d,_0x835fd:0x1ea,_0x488164:0x219,_0x35838d:0x112,_0x28f2f0:0x315,_0x31cf20:0x312,_0xad3fbe:0xeb,_0x573c1c:0xab,_0xb9b718:0xbc,_0x37589d:0xb3},_0x36aadf={_0x132cd4:0x19c,_0x52da94:0x4be},_0x391547={_0x7aa565:0x20};throwIfAborted(_0x5bd6ba[_0x593480(-0x41,-_0x212466._0x5bb81d,-0x41,_0x212466._0xfee827)]);if(!_0x5bd6ba[_0x593480(-_0x212466._0x2b89aa,_0x212466._0x5f3832,-0x5,0x4a)]||!_0x24d587[_0x593480(-_0x212466._0x2321c0,-_0x212466._0x41b150,-0xc1,-_0x212466._0x2eebb2)])return await _0x24d587[_0x593480(_0x212466._0x6e1770,-0x16,-0x5e,-0xe4)](_0x4a5f85,{'signal':_0x5bd6ba['signal']});let _0xdebfd5;for await(const _0x10335d of _0x24d587[_0x593480(-0x13b,-_0x212466._0x56ff18,-_0x212466._0x14838b,-0x124)](_0x4a5f85,{'signal':_0x5bd6ba[_0x30007d(0x2c7,0x23e,_0x212466._0x132339,0x28b)]})){throwIfAborted(_0x5bd6ba[_0x30007d(0x29d,0x275,_0x212466._0x36a703,_0x212466._0x5e2569)]);if(_0x10335d[_0x593480(-0x78,-0x77,-_0x212466._0x1c2ffd,-_0x212466._0x5a95a0)]==='done'){_0x430f07[_0x593480(-_0x212466._0x5ac47b,-0xd3,-_0x212466._0x4f7653,-_0x212466._0x2c31b2)][_0x30007d(_0x212466._0x52fdc3,_0x212466._0x428c0f,0x2a1,0x31b)]!==void 0x0&&_0x430f07['meta']['reasoningCompletedAt']===void 0x0&&(_0x430f07[_0x593480(-0x4c,-_0x212466._0x40d55d,-0xcc,-_0x212466._0x2126fe)][_0x30007d(0x242,_0x212466._0x3449ab,0x256,0x2d0)]=Date[_0x30007d(0x1e2,0x251,_0x212466._0x2c5237,_0x212466._0x4294d2)]());_0xdebfd5=_0x10335d[_0x593480(-_0x212466._0x1f2989,-_0x212466._0x5083ae,-_0x212466._0x2c76dc,-0x2f)];continue;}if(_0x10335d['type']===_0x30007d(0x303,_0x212466._0x21d9a2,_0x212466._0x1d1e3d,_0x212466._0xdd5612)){await emitEvent2(_0x50a629[_0x30007d(_0x212466._0x39a375,_0x212466._0x5568d7,_0x212466._0x1996f2,0x260)],{'type':_0x593480(-0x93,-0xd2,-_0x212466._0x42ae64,-_0x212466._0x11c045),'assistantMessageId':_0x430f07[_0x30007d(_0x212466._0x211b71,0x1d0,0x1fa,_0x212466._0x1d9148)],'reasoningMessageId':_0x430f07[_0x30007d(_0x212466._0x57a316,_0x212466._0x37c7ce,0x27f,_0x212466._0x5bc958)]},_0x327db3),delete _0x430f07[_0x593480(-_0x212466._0x2504e1,-0x146,-_0x212466._0x104359,-_0x212466._0x5dc836)][_0x593480(-_0x212466._0x498b4c,-0x86,-0x44,0xe)],delete _0x430f07['meta'][_0x30007d(_0x212466._0x2f0c28,_0x212466._0x2c6bd7,0x256,_0x212466._0x10b5fb)];continue;}if(_0x10335d[_0x30007d(_0x212466._0x104ad2,_0x212466._0x5dca80,_0x212466._0x143fec,_0x212466._0x57b85a)]===_0x593480(0xb,-0x70,-_0x212466._0x384ab0,-0x6d)){await emitEvent2(_0x50a629[_0x30007d(_0x212466._0x18bf17,_0x212466._0x21d9a2,_0x212466._0x1996f2,_0x212466._0x247faa)],{..._0x10335d,'assistantMessageId':_0x430f07[_0x30007d(0x240,_0x212466._0x4aa9d2,0x1fa,_0x212466._0x231993)]},_0x327db3);continue;}const _0x2ef1bc=createReasoningChunkEvent(_0x10335d,_0x430f07[_0x30007d(_0x212466._0x323707,0x2fb,0x27f,_0x212466._0x26cf7b)]);if(_0x2ef1bc&&_0x2ef1bc['type']===_0x593480(-_0x212466._0x13a45a,-_0x212466._0x52c269,-_0x212466._0x2c1ecd,-0x3d)&&_0x2ef1bc[_0x30007d(0x204,_0x212466._0x18ea34,_0x212466._0x27696e,_0x212466._0x121ca0)]['length']>0x0){_0x430f07[_0x30007d(0x27d,0x27e,_0x212466._0x1c3d71,0x1ca)][_0x30007d(_0x212466._0x47d200,_0x212466._0x1fbc5c,_0x212466._0x46430f,_0x212466._0x2bf73b)]===void 0x0&&(_0x430f07[_0x30007d(0x275,0x1d8,0x219,0x243)][_0x593480(-0x41,-0x77,-0x44,-0x18)]=Date[_0x593480(-_0x212466._0x314246,-_0x212466._0x393753,-_0x212466._0x4c13ea,-_0x212466._0x567ebc)]());await emitEvent2(_0x50a629[_0x593480(-0x5f,-_0x212466._0x13d09b,-0x22,_0x212466._0x3ee8a5)],_0x2ef1bc,_0x327db3);continue;}const _0x341671=createAssistantChunkEvent(_0x10335d,_0x430f07[_0x593480(-0xb3,-0x135,-0xeb,-0xde)]);if(_0x341671){_0x430f07['meta']['reasoningStartedAt']!==void 0x0&&_0x430f07[_0x593480(-_0x212466._0x483502,-0x145,-_0x212466._0x2d5448,-0x112)][_0x30007d(_0x212466._0x3f5802,0x21c,_0x212466._0x2ecf8a,_0x212466._0x46bb08)]===void 0x0&&(_0x430f07[_0x30007d(_0x212466._0x435b99,_0x212466._0x835fd,_0x212466._0x488164,0x1bf)]['reasoningCompletedAt']=Date[_0x593480(-0x105,-0x8b,-0xfc,-_0x212466._0x35838d)]());await emitEvent2(_0x50a629[_0x30007d(_0x212466._0x28f2f0,_0x212466._0x31cf20,_0x212466._0x1996f2,0x32b)],_0x341671,_0x327db3);continue;}const _0x13b0f5=createToolUseChunkEvent(_0x10335d,_0x430f07[_0x593480(-0x10a,-0x161,-_0x212466._0xad3fbe,-_0x212466._0x573c1c)]);_0x13b0f5&&await emitEvent2(_0x50a629['onEvent'],_0x13b0f5,_0x327db3);}function _0x30007d(_0x2b7325,_0x45fc9d,_0x48d1ad,_0x107101){return _0x39f914(_0x2b7325-0x65,_0x45fc9d-_0x391547._0x7aa565,_0x45fc9d,_0x48d1ad-0x2d7);}if(!_0xdebfd5)throw new Error(_0x593480(-0x12f,-_0x212466._0xb9b718,-_0x212466._0x37589d,-0xd8));function _0x593480(_0x4cd6cd,_0x2ab420,_0x29a586,_0x3eb08a){return _0x902988(_0x4cd6cd-0x97,_0x2ab420-_0x36aadf._0x132cd4,_0x29a586- -_0x36aadf._0x52da94,_0x3eb08a);}return _0xdebfd5;}function makeTurnGuards(_0x4a1e24,_0x1e8335,_0x44b13d,_0x41b40d,_0x438206){return{async 'stage'(_0x4f715,_0x241ffc){return throwIfAborted(_0x4a1e24),await runStage(_0x1e8335,_0x4f715,_0x241ffc,_0x41b40d);},async 'emit'(_0x5df460){throwIfAborted(_0x4a1e24),await emitEvent2(_0x44b13d,_0x5df460,_0x438206);},async 'stageUnchecked'(_0x6e6914,_0x581846){return await runStage(_0x1e8335,_0x6e6914,_0x581846,_0x41b40d);},async 'emitUnchecked'(_0x3684cc){await emitEvent2(_0x44b13d,_0x3684cc,_0x438206);}};}async function runTurn(_0x13f6c2,_0x2dab70){const _0x1d9c06={_0x255b2c:0x4fe,_0x1c5273:0x5af,_0x6046d7:0x4e2,_0x21c03a:0x440,_0x407094:0x46f,_0x38e169:0x550,_0x186a3e:0x45e,_0x393331:0x453,_0x2b9ffd:0x4a1,_0x5b3036:0x4f5,_0x3a7760:0x4ce,_0x525017:0x3f6,_0x55e5f2:0x481,_0x1c35db:0x46e,_0x2e502c:0x49b,_0x4116c9:0x4f8,_0x132625:0x558,_0x219f4b:0x558,_0x534e86:0x498,_0x4bb34f:0x458,_0x4d83bb:0x3ec,_0x22eab9:0x48e,_0x55ab3f:0x4b6,_0x1f781b:0x4cc,_0x578a4b:0x3e4,_0x139b2c:0x446,_0x5a9622:0x55b,_0x4f330b:0x38c,_0xe439d7:0x3e7,_0x4ea07a:0x3b6,_0x130ab0:0x3c9,_0x2a23da:0x48f,_0x233859:0x4e0,_0xe3caf7:0x474,_0x21ceea:0x3fc,_0x52c48c:0x41d,_0x53ad83:0x43f,_0x2c7324:0x38d,_0x1ef1ad:0x441,_0x1a88fa:0x3ea,_0x4c4943:0x3a2,_0x3c884a:0x3dc,_0x222919:0x3a4,_0x4d2c2a:0x3de,_0x44b1cd:0x4cb,_0x209154:0x554,_0x53dc0e:0x4f4,_0x5b9fac:0x393,_0x1dafff:0x45d,_0x2d9e4d:0x3eb,_0x11c0ed:0x3dc,_0x5de257:0x51e,_0x196ef7:0x41d,_0x317b98:0x469,_0x2227b9:0x476,_0x5dec67:0x384,_0x230f22:0x438,_0x4d7027:0x4bc,_0x428d75:0x389,_0x20635c:0x3be,_0x126329:0x433,_0x300fab:0x364,_0x4b13bf:0x3af,_0x5af307:0x3a8,_0x2a8b17:0x3a4,_0x4b4e3d:0x34a,_0x50046a:0x42d,_0x59f60d:0x4a9,_0x36f73c:0x479,_0x2a9614:0x4d1,_0xbed464:0x420,_0x952571:0x4aa,_0x260951:0x33c,_0xece9d3:0x3d9,_0x2f6f73:0x408,_0x3ec78e:0x4cc,_0x3d18aa:0x41c,_0x1b9374:0x486,_0x4fdc22:0x3a7,_0x3dd739:0x469,_0x5395f1:0x4ab,_0x3ba147:0x468,_0x2a5901:0x4b5,_0x5378bc:0x42d,_0x352ce9:0x3f0,_0x41d6f3:0x4a0,_0x160d03:0x47d,_0x370310:0x323,_0xc79ac5:0x3a4,_0x203442:0x50e,_0x3a2aac:0x523,_0x563a09:0x43a,_0x134ff0:0x3f3,_0xb9b331:0x463,_0x3e31e9:0x52f,_0x267c12:0x531,_0x497ab6:0x4e8,_0x53e707:0x4b1,_0x5be37f:0x48c,_0xa6dd80:0x4df,_0x702846:0x579,_0x333b40:0x562,_0x5d20e8:0x4e3,_0x26487c:0x45f,_0x584b3d:0x4d4,_0x283aec:0x475,_0x2b765f:0x4aa,_0x349d4b:0x470,_0x276c60:0x435,_0x438964:0x4c1,_0x1cdb54:0x53b,_0x44913a:0x575,_0x4bd4b2:0x55f,_0x4ade4d:0x44c,_0x2ad625:0x475,_0x1a7784:0x4f5,_0x129d70:0x475,_0x1fb8f7:0x464,_0x28b942:0x43a,_0x414558:0x5b4,_0x1e1b16:0x5df,_0x598e86:0x536,_0x35fe88:0x4fb,_0x2cd10d:0x51f,_0x173f8a:0x4d2,_0x3159de:0x4ea,_0x1d0577:0x3d2,_0x4562c1:0x491,_0x1c19fc:0x4c2,_0x45fc6b:0x46d,_0x5848ff:0x48a,_0x5f378a:0x4d5,_0x5d0945:0x45e,_0x19672f:0x448,_0x2907b9:0x3e5,_0x521465:0x589,_0x514fbf:0x575,_0x1aa264:0x53f,_0x39c8c1:0x4ec,_0x33403a:0x450,_0x49e09b:0x3fa,_0x1de351:0x429,_0x3f1198:0x43c,_0xd964af:0x484,_0x17b610:0x591,_0x1d5d11:0x516,_0x540beb:0x55f,_0x229806:0x3b9,_0x24765f:0x3bd,_0x343f73:0x493,_0x512c24:0x404},_0x366910={_0x332830:0x30a,_0x1d1c71:0x323,_0xec682e:0x36b,_0x3a97f6:0x363,_0x312981:0x35d,_0x4737ac:0x3c4,_0x1445ac:0x4e2,_0x1eb64f:0x42a,_0x267fda:0x45d,_0x3d914b:0x430,_0x5bcab0:0x4d2,_0x46bc8b:0x24e,_0x3d6985:0x20c},_0x256aa3={_0x5bea8e:0x12},_0xeb9cc4={_0x2d7403:0x3a5,_0x24fa12:0x3e0,_0x5c1afd:0x2f0,_0x5d0b20:0x3b8,_0x1feac9:0x573,_0x30b2e5:0x543,_0x1685b6:0x3a4,_0x326d9e:0x3f2},_0x5b8272={_0x766dcc:0x90,_0x420288:0x1f1},_0x19ba29={_0x2a2811:0x2f6,_0x220ce5:0x308},_0x1d96bd={_0x44fb48:0x13a,_0x359faf:0x24c},_0x50e962={_0x13cad2:0x149},_0x5610a7={_0x42ad3f:0x4a2},_0x19bbe5=_0x2dab70[_0x286695(_0x1d9c06._0x255b2c,_0x1d9c06._0x1c5273,_0x1d9c06._0x6046d7,0x556)],_0x29bbbd=_0x13f6c2[_0x592594(_0x1d9c06._0x21c03a,0x4af,0x41e,_0x1d9c06._0x407094)]??new AbortController()[_0x286695(0x527,_0x1d9c06._0x38e169,0x4d9,0x53c)],_0x5cf91f=normalizeExecutionScope(_0x2dab70[_0x592594(0x45a,0x3ff,0x3dc,_0x1d9c06._0x186a3e)]);function _0x592594(_0x21260d,_0x1611f0,_0x15c6fc,_0x494771){return _0x39f914(_0x21260d-0x1f3,_0x1611f0-0x34,_0x15c6fc,_0x494771-_0x5610a7._0x42ad3f);}const _0x101d82={'sessionId':_0x13f6c2['sessionId'],'turnId':_0x13f6c2['turnId'],'system':normalizeSystem(_0x13f6c2[_0x286695(_0x1d9c06._0x393331,_0x1d9c06._0x2b9ffd,_0x1d9c06._0x5b3036,_0x1d9c06._0x3a7760)]),'messages':(_0x13f6c2['messages']??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x2dab70[_0x592594(0x444,0x45e,_0x1d9c06._0x525017,0x42b)]==='function'?_0x2dab70[_0x286695(_0x1d9c06._0x55e5f2,_0x1d9c06._0x1c35db,_0x1d9c06._0x2e502c,_0x1d9c06._0x4116c9)]():_0x2dab70['sessionDir']};function _0x286695(_0x594032,_0x577b5d,_0xe87fa0,_0x12ddf3){return _0x902988(_0x594032-0x7c,_0x577b5d-_0x50e962._0x13cad2,_0x12ddf3-0xbf,_0x577b5d);}const _0x773fb3=makeExtensionContext(_0x101d82,_0x5cf91f),_0x1677bf={'sessionId':_0x101d82[_0x286695(_0x1d9c06._0x132625,_0x1d9c06._0x219f4b,_0x1d9c06._0x534e86,0x4d0)],'turnId':_0x101d82[_0x592594(0x3fa,_0x1d9c06._0x4bb34f,_0x1d9c06._0x4d83bb,0x411)],'state':_0x101d82,'executionScope':_0x5cf91f,'signal':_0x29bbbd,..._0x2dab70[_0x592594(_0x1d9c06._0x22eab9,0x3f9,_0x1d9c06._0x55ab3f,0x446)]?{'askUser':_0x2dab70[_0x592594(_0x1d9c06._0x1f781b,0x4a5,_0x1d9c06._0x578a4b,_0x1d9c06._0x139b2c)]}:{}},{stage:_0x3bcf96,emit:_0x5e6e39,stageUnchecked:_0x3c1791,emitUnchecked:_0x39be35}=makeTurnGuards(_0x29bbbd,_0x2dab70['registry'],_0x2dab70[_0x286695(0x5d4,0x5a9,0x5b7,_0x1d9c06._0x5a9622)],_0x773fb3,_0x1677bf),_0x43d1c8=async(_0x5da37f,_0x3093a5)=>{const _0x111324=_0x3093a5?{..._0x773fb3,'turnMeta':_0x3093a5}:_0x773fb3;function _0xbb4d31(_0x162e67,_0x1759a1,_0x1483f7,_0x25b2e6){return _0x286695(_0x162e67-_0x1d96bd._0x44fb48,_0x25b2e6,_0x1483f7-0x13e,_0x1759a1- -_0x1d96bd._0x359faf);}await _0x2dab70['registry']['runObservers'](_0xbb4d31(_0x19ba29._0x2a2811,_0x19ba29._0x220ce5,0x2c1,0x2d1),structuredClone(_0x5da37f),_0x111324);},_0x2c36f2=_0x3ec36e=>{const _0x3f2449={_0x987b2f:0x1a7};function _0x1f3faa(_0x4113d9,_0x38bcac,_0x209b5a,_0x4d19a3){return _0x286695(_0x4113d9-0x8b,_0x4113d9,_0x209b5a-0xf6,_0x38bcac- -_0x3f2449._0x987b2f);}function _0x5e21ea(_0x3fd315,_0x2f1987,_0x30eed7,_0x37670f){return _0x592594(_0x3fd315-_0x5b8272._0x766dcc,_0x2f1987-_0x5b8272._0x420288,_0x37670f,_0x3fd315-0x17a);}if(_0x3ec36e?.['origin']==='coordinator')return{'submissionOrigin':'coordinator',..._0x3ec36e[_0x1f3faa(0x2f0,0x363,0x347,_0xeb9cc4._0x2d7403)]===void 0x0?{}:{'subagentReport':structuredClone(_0x3ec36e[_0x1f3faa(_0xeb9cc4._0x24fa12,0x363,_0xeb9cc4._0x5c1afd,_0xeb9cc4._0x5d0b20)])}};if(_0x3ec36e?.[_0x5e21ea(0x585,0x5e0,_0xeb9cc4._0x1feac9,_0xeb9cc4._0x30b2e5)]===_0x1f3faa(0x3e8,_0xeb9cc4._0x1685b6,0x322,_0xeb9cc4._0x326d9e))return{'submissionOrigin':'agent','senderAgentId':_0x3ec36e['senderAgentId']};return void 0x0;},_0x44a0d0=_0x3e1f2b=>_0x3e1f2b?.[_0x592594(0x3e4,0x40f,0x47f,0x40b)]===_0x592594(0x480,0x428,0x4d6,0x47e)?{'senderAgentId':_0x3e1f2b[_0x286695(0x4d3,0x52b,0x4a7,0x4a1)]}:void 0x0,_0x4dc8cd=_0xf980d8=>typeof _0xf980d8==='object'&&_0xf980d8!==null&&_0x286695(0x4d7,0x408,0x4b5,0x46a)in _0xf980d8&&'submission'in _0xf980d8,_0xfe89c7=async _0x2b2084=>{const _0x8f3177={_0x1002c7:0x2e,_0x2f0c1a:0x6cc};if(!_0x13f6c2['drainSteering'])return 0x0;const _0x364166=await _0x13f6c2[_0x45548e(0x3d9,0x31e,0x365,_0x366910._0x332830)]();function _0x45548e(_0x278799,_0x27164f,_0x17350f,_0x58d288){return _0x592594(_0x278799-_0x256aa3._0x5bea8e,_0x27164f-0x18f,_0x27164f,_0x17350f- -0x3a);}throwIfAborted(_0x29bbbd);if(_0x364166['length']===0x0)return 0x0;await _0x2b2084?.();for(const _0xcd8ebe of _0x364166){const _0x1b289c=_0x4dc8cd(_0xcd8ebe)?_0xcd8ebe[_0x45548e(_0x366910._0x1d1c71,_0x366910._0xec682e,_0x366910._0x3a97f6,_0x366910._0x312981)]:_0xcd8ebe,_0x593443=_0x4dc8cd(_0xcd8ebe)?_0xcd8ebe[_0x45548e(0x3ee,0x3e2,0x3f0,_0x366910._0x4737ac)]:void 0x0,_0x20f7fa=await _0x3bcf96(_0x45548e(_0x366910._0x1445ac,_0x366910._0x1eb64f,_0x366910._0x267fda,_0x366910._0x3d914b),normalizeMessage(_0x1b289c));throwIfAborted(_0x29bbbd),_0x101d82['messages'][_0x45548e(_0x366910._0x5bcab0,0x3fd,0x458,0x479)](_0x20f7fa),await _0x43d1c8(_0x20f7fa,_0x2c36f2(_0x593443)),await _0x5e6e39({'type':_0x2ae99d(-0x1b1,-_0x366910._0x46bc8b,-_0x366910._0x3d6985,-0x209),'message':_0x20f7fa,..._0x44a0d0(_0x593443)});}function _0x2ae99d(_0x51e0de,_0x2c82ed,_0x38158d,_0x137334){return _0x286695(_0x51e0de-0x165,_0x137334,_0x38158d-_0x8f3177._0x1002c7,_0x38158d- -_0x8f3177._0x2f0c1a);}return _0x364166['length'];};let _0x1606a6=0x0;try{const _0x803aa3=await _0x3bcf96('onUserMessage',normalizeMessage(_0x13f6c2[_0x592594(0x3cc,_0x1d9c06._0x4f330b,_0x1d9c06._0xe439d7,_0x1d9c06._0x4ea07a)]));_0x101d82[_0x592594(_0x1d9c06._0x130ab0,0x456,_0x1d9c06._0x2a23da,0x41d)]['push'](_0x803aa3);_0x13f6c2[_0x286695(0x526,0x4eb,_0x1d9c06._0x233859,0x4f2)]!==!![]&&await _0x43d1c8(_0x803aa3,_0x2c36f2(_0x13f6c2[_0x592594(0x3ab,_0x1d9c06._0xe3caf7,_0x1d9c06._0x21ceea,0x42a)]));await _0x5e6e39({'type':_0x592594(_0x1d9c06._0x52c48c,_0x1d9c06._0x53ad83,0x43c,0x3f3),'message':_0x803aa3,..._0x44a0d0(_0x13f6c2['submission'])});while(!![]){throwIfAborted(_0x29bbbd),_0x1606a6+=0x1;const _0x56c480=createAssistantMessageId(_0x101d82[_0x592594(0x461,_0x1d9c06._0x2c7324,_0x1d9c06._0x1ef1ad,0x411)],_0x1606a6),_0x3c2e27=createReasoningMessageId(_0x56c480),_0x127a39={'model':_0x19bbe5[_0x592594(_0x1d9c06._0x1a88fa,_0x1d9c06._0x4c4943,0x41b,_0x1d9c06._0x3c884a)],'modelIdentity':_0x19bbe5[_0x592594(0x3c3,0x3bc,0x3b2,_0x1d9c06._0x222919)],..._0x19bbe5[_0x592594(0x3a7,_0x1d9c06._0x4d2c2a,0x3eb,0x427)]?{'provider':_0x19bbe5[_0x286695(0x515,_0x1d9c06._0x44b1cd,_0x1d9c06._0x209154,_0x1d9c06._0x53dc0e)]}:{}};let _0x3cfe9e={'model':_0x19bbe5[_0x592594(_0x1d9c06._0x5b9fac,_0x1d9c06._0x1dafff,_0x1d9c06._0x2d9e4d,_0x1d9c06._0x11c0ed)],..._0x19bbe5[_0x592594(_0x1d9c06._0x5de257,_0x1d9c06._0x196ef7,0x4c8,0x4a5)]!==void 0x0?{'maxTokens':_0x19bbe5['maxTokens']}:{},'system':structuredClone(_0x101d82[_0x592594(_0x1d9c06._0x317b98,_0x1d9c06._0x2227b9,_0x1d9c06._0x5dec67,0x401)]),'messages':structuredClone(_0x101d82[_0x592594(_0x1d9c06._0x230f22,0x485,_0x1d9c06._0x393331,0x41d)]),'tools':_0x2dab70[_0x592594(0x41a,_0x1d9c06._0x4d7027,0x475,0x46a)][_0x286695(0x505,0x49c,0x47f,0x497)](),'metadata':{'sessionId':_0x101d82[_0x592594(_0x1d9c06._0x428d75,_0x1d9c06._0x20635c,_0x1d9c06._0x126329,0x403)],'turnId':_0x101d82[_0x286695(_0x1d9c06._0x534e86,0x48f,0x4d8,0x4de)],'modelIdentity':_0x19bbe5[_0x592594(_0x1d9c06._0x300fab,_0x1d9c06._0x4b13bf,_0x1d9c06._0x5af307,_0x1d9c06._0x2a8b17)],..._0x19bbe5[_0x592594(_0x1d9c06._0x4b4e3d,0x436,_0x1d9c06._0x50046a,0x3b9)]!==void 0x0?{'pricingProviderId':_0x19bbe5[_0x286695(_0x1d9c06._0x59f60d,0x40a,0x4ae,0x486)]}:{}},..._0x2dab70[_0x286695(_0x1d9c06._0x36f73c,_0x1d9c06._0x2a9614,0x506,0x4e8)]?{'outputFormat':_0x2dab70[_0x592594(0x496,_0x1d9c06._0xbed464,0x467,0x41b)]}:{}};_0x3cfe9e=await _0x3bcf96(_0x286695(0x57a,0x4e3,0x4b9,0x53e),_0x3cfe9e);{const {pricingProviderId:_0x1bfa6e,..._0x3d4f40}=_0x3cfe9e[_0x286695(0x45a,0x4bd,0x44f,_0x1d9c06._0x952571)];_0x3cfe9e={..._0x3cfe9e,'metadata':{..._0x3d4f40,..._0x19bbe5[_0x592594(_0x1d9c06._0x260951,0x3a3,_0x1d9c06._0xece9d3,0x3b9)]!==void 0x0?{'pricingProviderId':_0x19bbe5[_0x286695(_0x1d9c06._0x2f6f73,_0x1d9c06._0x3ec78e,_0x1d9c06._0x3d18aa,_0x1d9c06._0x1b9374)]}:{}}};}await _0x5e6e39({'type':_0x592594(0x40d,0x422,0x3b3,_0x1d9c06._0x4fdc22),'request':_0x3cfe9e});const _0x3fcf6b=Date[_0x286695(_0x1d9c06._0x3dd739,0x3fc,0x49b,_0x1d9c06._0x55e5f2)]();_0x127a39[_0x592594(_0x1d9c06._0x5395f1,0x435,_0x1d9c06._0x5395f1,0x472)]=_0x3fcf6b;let _0x311560=await executeModelRequest(_0x3cfe9e,_0x13f6c2,_0x19bbe5,_0x2dab70,_0x1677bf,{'assistantMessageId':_0x56c480,'reasoningMessageId':_0x3c2e27,'meta':_0x127a39});const _0x1685f7=Date[_0x286695(0x408,0x42b,0x40a,_0x1d9c06._0x55e5f2)]();_0x127a39['turnCompletedAt']=_0x1685f7,_0x311560=await _0x3bcf96(_0x286695(0x45b,0x525,_0x1d9c06._0x3ba147,_0x1d9c06._0x2a5901),_0x311560);_0x311560[_0x592594(0x3cf,_0x1d9c06._0x5378bc,_0x1d9c06._0x352ce9,0x3b0)]&&(_0x311560={..._0x311560,'providerState':{..._0x311560[_0x286695(_0x1d9c06._0x41d6f3,0x4f2,0x489,_0x1d9c06._0x160d03)],'originModelIdentity':_0x19bbe5[_0x592594(0x3e2,0x41a,_0x1d9c06._0x370310,_0x1d9c06._0xc79ac5)]}});_0x311560=withEstimatedModelCost(_0x3cfe9e,_0x311560);const _0x51cf63=Math[_0x286695(0x4aa,_0x1d9c06._0x203442,0x583,_0x1d9c06._0x3a2aac)](0x0,_0x1685f7-_0x3fcf6b),_0xfa7aab={'version':0x1,'usage':structuredClone(_0x311560[_0x592594(_0x1d9c06._0x563a09,_0x1d9c06._0x134ff0,_0x1d9c06._0xb9b331,0x443)]),'modelTimeMs':_0x51cf63},_0x450965=_0x44af19=>({..._0x127a39,'metrics':{..._0xfa7aab,'usage':structuredClone(_0xfa7aab[_0x592594(0x4bf,0x3fc,0x3c1,0x443)]),'completesRequest':_0x44af19}});await _0x5e6e39({'type':_0x286695(0x5a3,0x4ae,_0x1d9c06._0x3e31e9,_0x1d9c06._0x267c12),'response':_0x311560,'modelTimeMs':_0x51cf63}),_0x101d82[_0x286695(0x4d0,_0x1d9c06._0x497ab6,_0x1d9c06._0x53e707,_0x1d9c06._0x5be37f)]=_0x311560;let _0x48dc74=await _0x3bcf96(_0x286695(0x5aa,_0x1d9c06._0xa6dd80,_0x1d9c06._0x702846,0x568),withMessageId(responseToAssistantMessage(_0x311560),_0x56c480));_0x48dc74=withMessageId(_0x48dc74,_0x56c480);const _0x490b23=getToolUseBlocks(_0x48dc74),_0x1546ed=await Promise[_0x286695(_0x1d9c06._0x333b40,_0x1d9c06._0x5d20e8,0x577,0x534)](_0x490b23['map'](_0xc16a4d=>_0x3bcf96('beforeToolExecution',_0xc16a4d)));_0x1546ed[_0x592594(_0x1d9c06._0x26487c,0x45b,_0x1d9c06._0x584b3d,_0x1d9c06._0x283aec)]>0x0&&(_0x48dc74=replaceToolUseBlocks(_0x48dc74,_0x1546ed));const _0x3485e2=withMessageId(_0x48dc74,_0x56c480);_0x48dc74=_0x3485e2;const _0x39d6de=createReasoningMessage(_0x48dc74),_0x357082=createAssistantTextMessage(_0x48dc74),_0x554a9a=createToolUseMessage(_0x48dc74);_0x39d6de&&await _0x5e6e39({'type':_0x592594(_0x1d9c06._0x2b765f,_0x1d9c06._0x349d4b,_0x1d9c06._0x2b9ffd,_0x1d9c06._0x276c60),'message':withMessageId(_0x39d6de,_0x3c2e27)});_0x357082&&await _0x5e6e39({'type':_0x286695(0x4e0,0x518,0x443,_0x1d9c06._0x438964),'message':withMessageId(_0x357082,_0x56c480)});_0x554a9a&&await _0x5e6e39({'type':'tool_use_message','message':withMessageId(_0x554a9a,_0x56c480)});_0x101d82['messages'][_0x286695(_0x1d9c06._0x1cdb54,0x503,_0x1d9c06._0x44913a,_0x1d9c06._0x4bd4b2)](_0x3485e2);_0x1546ed[_0x592594(0x406,_0x1d9c06._0x4ade4d,0x46f,_0x1d9c06._0x2ad625)]>0x0&&await _0x43d1c8(_0x3485e2,_0x450965(![]));for(const _0x5e28b3 of _0x1546ed){await _0x5e6e39({'type':_0x286695(0x496,_0x1d9c06._0x1a7784,0x45f,0x4a3),'toolCall':structuredClone(_0x5e28b3)});}if(_0x1546ed[_0x592594(0x4a5,0x406,0x40e,_0x1d9c06._0x129d70)]===0x0){const _0x2877c1=await _0xfe89c7(async()=>{await _0x43d1c8(_0x3485e2,_0x450965(![]));});if(_0x2877c1>0x0)continue;const _0x54cd2d=await _0x3bcf96(_0x592594(_0x1d9c06._0x1fb8f7,_0x1d9c06._0x28b942,0x420,0x3ec),_0x48dc74),_0x3369db=withMessageId(_0x54cd2d,_0x56c480);return _0x101d82[_0x286695(_0x1d9c06._0x414558,0x56e,_0x1d9c06._0x1e1b16,0x56f)]=_0x3369db,_0x101d82[_0x286695(0x486,_0x1d9c06._0x598e86,0x4ae,0x4ea)][_0x101d82[_0x286695(_0x1d9c06._0x35fe88,_0x1d9c06._0x2cd10d,_0x1d9c06._0x173f8a,_0x1d9c06._0x3159de)]['length']-0x1]=_0x3369db,await _0x43d1c8(_0x3369db,_0x450965(!![])),await _0x39be35({'type':_0x592594(0x3b2,0x435,_0x1d9c06._0x4bb34f,_0x1d9c06._0x1d0577),'message':_0x3369db}),throwIfAborted(_0x29bbbd),await _0x2dab70[_0x286695(_0x1d9c06._0x4562c1,_0x1d9c06._0x1c19fc,_0x1d9c06._0x45fc6b,_0x1d9c06._0x5848ff)][_0x286695(0x474,0x49d,_0x1d9c06._0x5f378a,0x49b)]('afterTurnComplete',_0x101d82,_0x773fb3),await _0x5e6e39({'type':'turn_complete','state':_0x101d82}),{'status':_0x286695(_0x1d9c06._0x5d0945,0x509,0x437,0x4b8),'finalMessage':_0x3369db,'state':_0x101d82};}let _0x1ed7d9=await _0x2dab70['toolRuntime'][_0x592594(0x40c,_0x1d9c06._0x19672f,_0x1d9c06._0x2907b9,0x410)](_0x1546ed,_0x1677bf);const _0x5b474d=_0x1ed7d9['some'](isAbortedToolResult),_0x149839=_0x5b474d?_0x3c1791:_0x3bcf96,_0x4e0723=_0x5b474d?_0x39be35:_0x5e6e39;_0x1ed7d9=await Promise[_0x286695(0x581,_0x1d9c06._0x521465,0x516,0x534)](_0x1ed7d9[_0x286695(_0x1d9c06._0x53dc0e,_0x1d9c06._0x514fbf,_0x1d9c06._0x1aa264,0x555)](_0x5bf5ce=>_0x149839(_0x286695(0x462,0x423,0x4d1,0x479),_0x5bf5ce))),_0x101d82['toolResults'][_0x286695(_0x1d9c06._0x39c8c1,0x5e6,0x5d0,_0x1d9c06._0x4bd4b2)](..._0x1ed7d9);for(const _0x5b255e of _0x1ed7d9){await _0x4e0723({'type':'tool_result','result':cloneToolResultForPublication2(_0x5b255e)});}const _0x3eb2d0=await _0x149839(_0x592594(0x42f,_0x1d9c06._0x33403a,_0x1d9c06._0x49e09b,_0x1d9c06._0x1de351),createToolResultUserMessage(_0x1ed7d9));await _0x4e0723({'type':_0x592594(0x4d2,0x41d,_0x1d9c06._0x3f1198,_0x1d9c06._0xd964af),'message':_0x3eb2d0}),_0x101d82[_0x286695(0x4bf,0x51c,0x528,0x4ea)][_0x286695(_0x1d9c06._0x17b610,_0x1d9c06._0x1d5d11,0x58e,_0x1d9c06._0x540beb)](_0x3eb2d0),await _0x43d1c8(_0x3eb2d0);if(_0x5b474d)return{'status':_0x592594(0x475,_0x1d9c06._0x229806,_0x1d9c06._0x24765f,0x40a),'state':_0x101d82};await _0xfe89c7();}}catch(_0x46f0bb){if(!_0x29bbbd['aborted'])throw new TurnFailedError(_0x46f0bb,_0x101d82);return{'status':_0x592594(_0x1d9c06._0x343f73,0x3d9,_0x1d9c06._0x512c24,0x40a),'state':_0x101d82};}}function createSessionId(){const _0x5686db={_0x33292a:0x60a,_0x4f79fa:0x632,_0x210a44:0x186,_0x14f0d8:0x1fc,_0x275813:0x192,_0x1a278f:0x124,_0x122353:0x5d0,_0x3b8ff5:0x575,_0x42447e:0x2cd,_0x215a94:0x234,_0x5a2ed1:0x1fb,_0x1209df:0x621,_0x4fb8c1:0x69d,_0x3b33a2:0x64f},_0x2f8c51={_0x43b37b:0xd5,_0x3eeff2:0x622},_0x120354={_0x38306a:0x100,_0x4f434a:0x230};function _0x16f220(_0x243c20,_0x22ac20,_0x37ae17,_0x59f008){return _0x902988(_0x243c20-0x16f,_0x22ac20-_0x120354._0x38306a,_0x37ae17- -_0x120354._0x4f434a,_0x22ac20);}function _0x2b1084(_0x32f2ff,_0x376322,_0x104c19,_0x40179b){return _0x39f914(_0x32f2ff-0x28,_0x376322-_0x2f8c51._0x43b37b,_0x104c19,_0x32f2ff-_0x2f8c51._0x3eeff2);}return _0x2b1084(_0x5686db._0x33292a,0x66c,_0x5686db._0x4f79fa,0x61d)+Date[_0x16f220(_0x5686db._0x210a44,_0x5686db._0x14f0d8,_0x5686db._0x275813,_0x5686db._0x1a278f)]()+'-'+Math[_0x2b1084(0x5fc,0x65b,_0x5686db._0x122353,_0x5686db._0x3b8ff5)]()[_0x16f220(_0x5686db._0x42447e,_0x5686db._0x215a94,0x273,_0x5686db._0x5a2ed1)](0x10)[_0x2b1084(_0x5686db._0x1209df,0x5f8,_0x5686db._0x4fb8c1,_0x5686db._0x3b33a2)](0x2,0xa);}function createTurnId(_0x433cc1){const _0x4715a4={_0x360f8b:0x66,_0x473e45:0x92},_0x41b0d8={_0x23e8b2:0x7b};function _0x26f0e4(_0xdd624c,_0x191e19,_0x6e0f5b,_0x268ba6){return _0x39f914(_0xdd624c-0x40,_0x191e19-0x156,_0x268ba6,_0x191e19-_0x41b0d8._0x23e8b2);}return _0x26f0e4(_0x4715a4._0x360f8b,0x4d,_0x4715a4._0x473e45,0x68)+_0x433cc1;}function createDefaultMessage(_0x42360d){if(_0x42360d===void 0x0)return void 0x0;return normalizeUserInput(_0x42360d);}function normalizeUserInput(_0x432403){const _0x52d193={_0x26f44b:0x12c,_0x9f87b:0x1ce,_0x46670c:0x3ae,_0x36471f:0x3ef,_0x4e88ff:0x303,_0x5e7cc4:0x2fe},_0x24b240={_0x384c8c:0x1d7,_0x20179b:0xb4},_0x302277={_0x54b492:0x1e3,_0x1df3e0:0xcc};function _0x3566ff(_0x2a8c98,_0x11abdb,_0x2c99c4,_0x141749){return _0x902988(_0x2a8c98-0x1e8,_0x11abdb-_0x302277._0x54b492,_0x2c99c4- -_0x302277._0x1df3e0,_0x2a8c98);}if(typeof _0x432403===_0x4a29bf(-_0x52d193._0x26f44b,-0x187,-_0x52d193._0x9f87b,-0x19e))return{'role':_0x3566ff(_0x52d193._0x46670c,0x3e0,_0x52d193._0x36471f,0x45a),'content':[{'type':_0x3566ff(0x2f6,_0x52d193._0x4e88ff,_0x52d193._0x5e7cc4,0x381),'text':_0x432403}]};function _0x4a29bf(_0x3b9037,_0xe88693,_0x52034f,_0x4e3f83){return _0x39f914(_0x3b9037-_0x24b240._0x384c8c,_0xe88693-_0x24b240._0x20179b,_0x4e3f83,_0xe88693- -0x142);}return normalizeMessage(_0x432403);}function isTaggedSteeringInput(_0x45670d){const _0x93e1fd={_0x4bd816:0x47b,_0x4aaba1:0x406,_0x1aed4d:0x3f7,_0x27401e:0x451},_0x5ddfc2={_0x244749:0x104},_0x12dd8e={_0x14323c:0x151,_0x594b30:0x197};function _0x4d76e9(_0x193730,_0x17afe9,_0x472834,_0x204627){return _0x39f914(_0x193730-_0x12dd8e._0x14323c,_0x17afe9-_0x12dd8e._0x594b30,_0x193730,_0x472834-0x46f);}function _0x597d87(_0x518005,_0x36147d,_0x1748ed,_0x5c7cff){return _0x39f914(_0x518005-_0x5ddfc2._0x244749,_0x36147d-0x99,_0x518005,_0x36147d-0x235);}return typeof _0x45670d===_0x4d76e9(_0x93e1fd._0x4bd816,0x476,0x424,0x39c)&&_0x45670d!==null&&'input'in _0x45670d&&_0x4d76e9(0x416,_0x93e1fd._0x4aaba1,_0x93e1fd._0x1aed4d,_0x93e1fd._0x27401e)in _0x45670d;}function resolveChatModel(_0x36a37e){const _0x4caf64={_0x12c310:0xaa,_0x5bdc72:0x94,_0x2e4ba0:0x90,_0x358e4c:0x65,_0x113d22:0x2b,_0x30892a:0x12a,_0x22ac01:0x186},_0x52ca6c={_0x57d7ff:0xd7,_0x48d151:0x1ca},_0x4c4f76={_0x30a208:0x7a,_0x1e03ef:0x312};function _0x375277(_0x432f75,_0x2d6a4c,_0x11b547,_0x616b9a){return _0x902988(_0x432f75-_0x4c4f76._0x30a208,_0x2d6a4c-0x114,_0x432f75- -_0x4c4f76._0x1e03ef,_0x11b547);}if(!_0x36a37e[_0x7bb6b9(0x21,_0x4caf64._0x12c310,0x55,_0x4caf64._0x5bdc72)])throw new Error(_0x7bb6b9(-_0x4caf64._0x2e4ba0,-_0x4caf64._0x358e4c,-_0x4caf64._0x113d22,-0x23));function _0x7bb6b9(_0x6f05a8,_0x57f156,_0x2728ce,_0x4337c4){return _0x902988(_0x6f05a8-_0x52ca6c._0x57d7ff,_0x57f156-_0x52ca6c._0x48d151,_0x6f05a8- -0x476,_0x57f156);}return _0x36a37e[_0x375277(0x185,_0x4caf64._0x30892a,0x12a,_0x4caf64._0x22ac01)];}function normalizeExecutionScope2(_0x48e5e6){const _0x1876f1={_0x23978f:0x4e4,_0x5d3b9b:0x550},_0x55dc8d={_0x56ed89:0x19d,_0x138630:0x121},_0x51a1a1={_0x2132bf:0x87};function _0x56d629(_0x2f66b2,_0x4dd4c2,_0x26d095,_0x5e6386){return _0x902988(_0x2f66b2-_0x51a1a1._0x2132bf,_0x4dd4c2-0x1e7,_0x4dd4c2-0xf7,_0x5e6386);}function _0xb3f113(_0x26a255,_0x4d739c,_0x2556b3,_0x4c89da){return _0x39f914(_0x26a255-_0x55dc8d._0x56ed89,_0x4d739c-_0x55dc8d._0x138630,_0x2556b3,_0x4d739c- -0x22);}return{'agentId':_0x48e5e6?.[_0x56d629(0x52b,0x52d,0x4d7,_0x1876f1._0x23978f)]??'assistant','toolCallPath':[..._0x48e5e6?.[_0x56d629(0x4c9,_0x1876f1._0x5d3b9b,0x4d0,0x4e4)]??[]]};}function createRegistry(_0x3f5ea4){const _0x478b55={_0x218799:0x30a,_0x1fd676:0x342,_0x36693a:0x35d,_0x286d63:0x405,_0x1efec7:0x4cc,_0x257f3e:0x42f,_0x5f4b48:0x40d},_0xda99e={_0x1d5ac2:0x164,_0x2918d4:0x41};function _0x5b34dd(_0x124257,_0x56be75,_0x394b8c,_0xd729b6){return _0x902988(_0x124257-0xba,_0x56be75-_0xda99e._0x1d5ac2,_0x394b8c- -_0xda99e._0x2918d4,_0xd729b6);}if(_0x3f5ea4[_0x5b34dd(_0x478b55._0x218799,_0x478b55._0x1fd676,0x38a,0x395)])return _0x3f5ea4[_0x5b34dd(0x343,_0x478b55._0x36693a,0x38a,0x398)];const _0x2c1692=createExtensionRegistry(),_0x5602b6=_0x3f5ea4[_0x5b34dd(_0x478b55._0x286d63,0x47e,0x47b,_0x478b55._0x1efec7)]??[];for(const _0xa8571a of _0x5602b6){_0x2c1692[_0x5d7fee(_0x478b55._0x257f3e,_0x478b55._0x5f4b48,0x3b2,0x460)](_0xa8571a);}function _0x5d7fee(_0x45945f,_0x17716b,_0xc1a235,_0x4207f5){return _0x39f914(_0x45945f-0x3c,_0x17716b-0xf4,_0x17716b,_0x45945f-0x519);}return _0x2c1692;}var Agent=class{['_systemPrompt'];[_0x39f914(-0xbb,-0xd3,-0xab,-0x61)];[_0x39f914(-0x91,-0x1a,-0x46,-0x8c)];[_0x39f914(-0x6f,-0x66,-0x5d,-0x9f)];[_0x902988(0x3c5,0x496,0x42b,0x498)];[_0x39f914(-0xde,-0x188,-0xbc,-0x101)];['turnIndex'];constructor(_0x555331={}){const _0x3074fb={_0x1a0a85:0x23e,_0x525a41:0x2b9,_0x524e69:0x255,_0x54e0f2:0x1cc,_0x5bae66:0x353,_0x11bdd6:0x3d8,_0x29565f:0x412,_0x376a8c:0x23c,_0x41ed88:0x274,_0x4cae08:0x26f,_0xdd92f0:0x26f,_0x4b10b5:0x2d9,_0x3eedd4:0x2da,_0x1ef096:0x2df,_0x3e66ba:0x27a,_0x47fa65:0x27f,_0x3b618c:0x294,_0xfd3e3b:0x2a0,_0x1dbd4c:0x3ec,_0x2c53f7:0x3bb,_0x3d478f:0x332,_0x4226c7:0x2d1,_0x3600c5:0x306,_0x42f2b3:0x2a9,_0x5e27ed:0x3a6,_0xfdf971:0x2bc,_0xd0618:0x2d6,_0x3bdf17:0x27d,_0x5a13d4:0x3a8},_0xb8c495={_0x5516df:0x12a,_0x3c125b:0xa9},_0x3060fb={_0x1e48c8:0x36c,_0x14e3e2:0x3cc,_0x4a6052:0x383},_0x468124={_0x55c8f0:0x137,_0x48e4dc:0x16},_0x2c0657={_0x20768c:0x405,_0xc3d784:0xd0},_0x20c4ef={_0x346528:0x10e,_0x8a98a3:0x2f4};this[_0x1664d8(_0x3074fb._0x1a0a85,_0x3074fb._0x525a41,_0x3074fb._0x524e69,0x2bd)]=_0x555331[_0x1664d8(_0x3074fb._0x54e0f2,0x2c2,_0x3074fb._0x524e69,0x1d9)]??createSessionId(),this['turnIndex']=0x0;function _0x1664d8(_0x1a8977,_0x141c22,_0x512964,_0x17bcfa){return _0x39f914(_0x1a8977-0x1d2,_0x141c22-_0x20c4ef._0x346528,_0x1a8977,_0x512964-_0x20c4ef._0x8a98a3);}this[_0x4e0400(0x336,0x31a,0x3ac,_0x3074fb._0x5bae66)]=_0x555331[_0x4e0400(_0x3074fb._0x11bdd6,0x37d,_0x3074fb._0x29565f,0x39c)]??'',this[_0x1664d8(_0x3074fb._0x376a8c,_0x3074fb._0x41ed88,_0x3074fb._0x4cae08,0x20f)]=(_0x555331[_0x1664d8(0x2df,0x1f4,_0x3074fb._0xdd92f0,_0x3074fb._0x4b10b5)]??[])[_0x1664d8(0x35f,0x323,_0x3074fb._0x3eedd4,0x2d5)](normalizeMessage),this[_0x4e0400(0x306,0x338,0x2b2,0x2f6)]=createDefaultMessage(_0x555331[_0x4e0400(0x31b,_0x3074fb._0x1ef096,0x36e,0x371)]),this[_0x1664d8(0x282,0x237,0x268,_0x3074fb._0x3e66ba)]=createAgentMetrics({'getContextWindowLimit':_0x555331[_0x1664d8(0x25b,0x2a1,_0x3074fb._0x47fa65,0x222)]});const _0x26179a=_0x555331['onEvent'],_0x355c35=async(_0xe07a0a,_0x38b601)=>{function _0x2045f9(_0x168882,_0x11f4b6,_0x4478f5,_0xf3c093){return _0x4e0400(_0x4478f5- -_0x2c0657._0x20768c,_0xf3c093,_0x4478f5-_0x2c0657._0xc3d784,_0xf3c093-0x115);}function _0x5b224a(_0x3edec2,_0x368e45,_0x554cf6,_0x13cffe){return _0x1664d8(_0x13cffe,_0x368e45-_0x468124._0x55c8f0,_0x554cf6-0xf9,_0x13cffe-_0x468124._0x48e4dc);}this[_0x5b224a(0x325,_0x3060fb._0x1e48c8,0x361,0x395)][_0x5b224a(0x3db,_0x3060fb._0x14e3e2,_0x3060fb._0x4a6052,0x3ee)](_0xe07a0a),await _0x26179a?.(_0xe07a0a,_0x38b601);},_0x3ed1ae=createRegistry(_0x555331),_0xebd06a=createInternalToolRuntime(_0x555331[_0x1664d8(0x24b,_0x3074fb._0x3b618c,_0x3074fb._0xfd3e3b,0x2b4)]??[],{'onEvent':_0x355c35,'onToolCall':_0x555331[_0x4e0400(0x384,_0x3074fb._0x1dbd4c,_0x3074fb._0x2c53f7,0x308)],'registry':_0x3ed1ae,'beginProgramTrace':_0x555331[_0x4e0400(_0x3074fb._0x3d478f,_0x3074fb._0x4226c7,_0x3074fb._0x3600c5,_0x3074fb._0x42f2b3)]});function _0x4e0400(_0x19ede5,_0x584d7d,_0x4ff81a,_0x1b1218){return _0x902988(_0x19ede5-0x47,_0x584d7d-_0xb8c495._0x5516df,_0x19ede5- -_0xb8c495._0x3c125b,_0x584d7d);}this[_0x4e0400(_0x3074fb._0x5e27ed,0x3f5,0x350,0x379)]={'registry':_0x3ed1ae,'chatModel':resolveChatModel(_0x555331),'toolRuntime':_0xebd06a,'askUser':_0x555331[_0x1664d8(0x2d9,0x28b,0x298,_0x3074fb._0xfdf971)],'onEvent':_0x355c35,'sessionDir':_0x555331[_0x1664d8(0x299,_0x3074fb._0xd0618,_0x3074fb._0x3bdf17,0x300)],'outputFormat':_0x555331[_0x4e0400(0x380,0x3e6,_0x3074fb._0x5a13d4,0x3c4)],'executionScope':normalizeExecutionScope2(_0x555331['executionScope']),'beginProgramTrace':_0x555331['beginProgramTrace']};}get[_0x39f914(-0xa7,0x1a,-0x72,-0x2f)](){const _0x5eaa8b={_0x546f7e:0xca,_0x136dd6:0x109,_0x1ada8c:0x112},_0x56351c={_0x3c281f:0x127,_0x4f583e:0x296};function _0x1921af(_0x34658c,_0x44c7e7,_0x249442,_0x4f556b){return _0x902988(_0x34658c-_0x56351c._0x3c281f,_0x44c7e7-0x25,_0x44c7e7- -_0x56351c._0x4f583e,_0x4f556b);}return this[_0x1921af(_0x5eaa8b._0x546f7e,0x149,_0x5eaa8b._0x136dd6,_0x5eaa8b._0x1ada8c)];}[_0x902988(0x477,0x3d9,0x425,0x428)](_0x1d1feb=[]){const _0x2ee270={_0x2b4fb7:0x5db,_0x1452b2:0x5f2,_0x5b33e8:0x529},_0x227104={_0x4c6d0e:0xd3,_0x492edc:0x158},_0x1528c2={_0x280f0c:0xbc,_0x31adb6:0x607};function _0x429973(_0x83e35a,_0x1d38f0,_0x99e9fd,_0x1696ea){return _0x39f914(_0x83e35a-0x58,_0x1d38f0-_0x1528c2._0x280f0c,_0x1d38f0,_0x99e9fd-_0x1528c2._0x31adb6);}function _0x4636c1(_0x277482,_0x334c48,_0x31932c,_0x25ae5f){return _0x902988(_0x277482-_0x227104._0x4c6d0e,_0x334c48-0x55,_0x277482- -_0x227104._0x492edc,_0x25ae5f);}this[_0x429973(0x5f4,0x5f3,0x5a6,_0x2ee270._0x2b4fb7)][_0x429973(0x5e2,0x63d,0x5cf,_0x2ee270._0x1452b2)][_0x429973(_0x2ee270._0x5b33e8,0x589,0x57c,0x54d)](_0x1d1feb);}[_0x902988(0x463,0x4a8,0x4ad,0x42e)](){const _0x35f975={_0x41d0b4:0x1f8,_0x2751e2:0x212},_0x22c9af={_0x1aa732:0x90,_0x3346fc:0x162,_0xb1b71c:0x221},_0x94eb9={_0x5024fe:0x151,_0x55f658:0x197};function _0x4ac179(_0x2124de,_0x103ebb,_0x42bc0f,_0x45ec48){return _0x39f914(_0x2124de-0xf,_0x103ebb-_0x94eb9._0x5024fe,_0x42bc0f,_0x103ebb- -_0x94eb9._0x55f658);}function _0x37fc09(_0x4f098a,_0x510d34,_0x4122a8,_0x347e70){return _0x902988(_0x4f098a-_0x22c9af._0x1aa732,_0x510d34-_0x22c9af._0x3346fc,_0x347e70- -_0x22c9af._0xb1b71c,_0x510d34);}return this[_0x4ac179(-0x267,-_0x35f975._0x41d0b4,-0x18e,-_0x35f975._0x2751e2)]['toolRuntime'][_0x4ac179(-0x2f7,-0x26f,-0x29e,-0x1f5)]();}['setSystemPrompt'](_0x322f96,_0x394ec8={}){const _0x2e2152={_0x464faa:0x164,_0x27c974:0x17b,_0x216c8f:0x119,_0x4e1f09:0x75,_0x4923f9:0x65,_0x3de445:0xf,_0x586ac5:0x121},_0x49e5bb={_0x2d6602:0xd0,_0xecfd95:0xc8};function _0x2f2d2b(_0x5937c8,_0x454757,_0x171441,_0x42705d){return _0x39f914(_0x5937c8-0x1d,_0x454757-0x17b,_0x5937c8,_0x171441- -0x2e);}this[_0x2f2d2b(-_0x2e2152._0x464faa,-_0x2e2152._0x27c974,-0xff,-_0x2e2152._0x216c8f)]=_0x322f96;function _0x5c145f(_0x2dd929,_0x5ec202,_0x34d329,_0x32ade5){return _0x902988(_0x2dd929-_0x49e5bb._0x2d6602,_0x5ec202-_0x49e5bb._0xecfd95,_0x32ade5- -0x41c,_0x34d329);}_0x394ec8[_0x2f2d2b(-0xf0,-0x4d,-0x77,-0x71)]===!![]&&(this[_0x5c145f(0xc,-_0x2e2152._0x4e1f09,-_0x2e2152._0x4923f9,_0x2e2152._0x3de445)]=[],this[_0x2f2d2b(-0x23,-_0x2e2152._0x586ac5,-0x9f,-0xc9)]=0x0);}['setSessionId'](_0x1121d1){this['sessionId']=_0x1121d1;}[_0x39f914(0x44,-0x81,0x5a,-0x1f)](_0x3eefb3){const _0x2ba400={_0x3d1ee7:0x10c,_0x2039ec:0x46},_0x5c8d97={_0x166c59:0x1ac,_0x5c5ab0:0x192};function _0x5e2009(_0x47a1e8,_0x10b1a4,_0x374fa5,_0x4888cd){return _0x39f914(_0x47a1e8-_0x5c8d97._0x166c59,_0x10b1a4-0xf1,_0x47a1e8,_0x374fa5-_0x5c8d97._0x5c5ab0);}function _0x23d23f(_0x48b220,_0x38d9bf,_0x48dffb,_0x3bfdc6){return _0x39f914(_0x48b220-0x59,_0x38d9bf-0x29,_0x38d9bf,_0x48b220- -0x2d);}this[_0x5e2009(0xb3,_0x2ba400._0x3d1ee7,0x131,0x133)][_0x23d23f(-_0x2ba400._0x2039ec,-0x90,-0x8b,-0x67)]=_0x3eefb3;}async[_0x39f914(-0x73,-0xd2,-0x152,-0xef)](_0x2e602f=this['defaultMessage'],_0x906b68={}){const _0x1a9049={_0x2ea602:0x100,_0x2a8268:0xc2,_0xa142b2:0xd4,_0x19440f:0xea,_0x830dea:0x104,_0x2ea7fb:0x15f,_0xb159ed:0x91,_0x3ea47a:0xfa,_0x4f9846:0x98,_0x564629:0x1f7,_0x431a5b:0x14b,_0x160c6e:0xbb,_0x52a22b:0xe1,_0x6930c4:0x146,_0x1caa87:0xf7,_0x56b511:0x113,_0x38d6a5:0x8d,_0xffa7bb:0xe9,_0x1d7223:0x85,_0x2e7b02:0x14c,_0x4d1cd5:0xde,_0x51a3b8:0x8b,_0x399b9d:0x11d,_0x404d01:0xdf,_0x39f904:0x109,_0x393f14:0xc9,_0x1959bc:0x14a,_0x45c198:0x178,_0x3581eb:0x124,_0x532acf:0x11d,_0x106767:0xa9,_0x375ee8:0xce,_0x42e7bc:0x151},_0x3036a8={_0x4c7cb0:0x156,_0x4269a8:0x164},_0x50a2ca={_0x58f71a:0x1e6};if(!_0x2e602f)throw new Error(_0x234461(-_0x1a9049._0x2ea602,-0x135,-_0x1a9049._0x2a8268,-_0x1a9049._0xa142b2));this[_0x419f8b(0xf3,_0x1a9049._0x19440f,_0x1a9049._0x830dea,_0x1a9049._0x2ea7fb)]+=0x1;function _0x234461(_0x2b727e,_0x1cc69c,_0x58d4a7,_0x1512cc){return _0x39f914(_0x2b727e-0xe0,_0x1cc69c-_0x50a2ca._0x58f71a,_0x2b727e,_0x58d4a7- -0x24);}function _0x419f8b(_0x12bbd7,_0x2c8ee6,_0x4e8b3d,_0x42abd9){return _0x39f914(_0x12bbd7-_0x3036a8._0x4c7cb0,_0x2c8ee6-0x15e,_0x4e8b3d,_0x12bbd7-_0x3036a8._0x4269a8);}const _0x2a4dc3=_0x906b68['drainSteering'];try{const _0x38d77b=await runTurn({'sessionId':this[_0x234461(-0xa7,-0x130,-0xc3,-_0x1a9049._0xb159ed)],'turnId':createTurnId(this[_0x419f8b(0xf3,_0x1a9049._0x3ea47a,0xb4,_0x1a9049._0x4f9846)]),'streaming':_0x906b68[_0x419f8b(0x16d,0x117,_0x1a9049._0x564629,_0x1a9049._0x431a5b)],'signal':_0x906b68['signal'],'system':this['systemPrompt'],'messages':this[_0x234461(-0x114,-_0x1a9049._0x160c6e,-0xa9,-_0x1a9049._0x52a22b)],'message':normalizeUserInput(_0x2e602f),..._0x906b68[_0x419f8b(0xe7,_0x1a9049._0x6930c4,_0x1a9049._0x1caa87,_0x1a9049._0x56b511)]===!![]?{'transientInput':!![]}:{},..._0x906b68['submission']===void 0x0?{}:{'submission':_0x906b68[_0x419f8b(0xec,_0x1a9049._0x38d6a5,_0x1a9049._0xffa7bb,0xc4)]},..._0x2a4dc3?{'drainSteering':async()=>(await _0x2a4dc3())[_0x419f8b(0x14a,0x1ca,0xd2,0x1c8)](_0x18b964=>isTaggedSteeringInput(_0x18b964)?{'input':normalizeUserInput(_0x18b964[_0x234461(-0x101,-0x130,-0x129,-0xca)]),'submission':_0x18b964[_0x419f8b(0xec,0x104,0x95,0xd5)]}:normalizeUserInput(_0x18b964))}:{}},this[_0x234461(-0xa0,-0xff,-_0x1a9049._0x1d7223,-0x89)]);return this[_0x419f8b(0xdf,0x107,0xea,_0x1a9049._0x2e7b02)]=_0x38d77b[_0x419f8b(_0x1a9049._0x4d1cd5,0xb3,_0x1a9049._0x51a3b8,_0x1a9049._0x399b9d)][_0x419f8b(_0x1a9049._0x404d01,_0x1a9049._0x39f904,_0x1a9049._0x393f14,0xe2)][_0x419f8b(_0x1a9049._0x1959bc,0x198,0x152,_0x1a9049._0x45c198)](normalizeMessage),_0x38d77b;}catch(_0x220a3e){if(_0x220a3e instanceof TurnFailedError){this[_0x419f8b(0xdf,_0x1a9049._0x3581eb,0x91,0x12e)]=synthesizeMissingToolResults(_0x220a3e['state'][_0x234461(-_0x1a9049._0x532acf,-0x29,-_0x1a9049._0x106767,-0xfc)][_0x419f8b(0x14a,_0x1a9049._0x375ee8,_0x1a9049._0x42e7bc,0x12c)](normalizeMessage));throw _0x220a3e['cause'];}throw _0x220a3e;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,ModelUsageOverflowError,emptyModelUsageTotals,isModelUsageTotals,isSubagentReportMeta,addModelUsageTotals,modelUsageTotalsEqual,modelUsageTotalsFromSnapshot,modelUsageTotalsFromHistory,createAgentMetrics,runTurn,Agent};
|
|
1
|
+
(function(_0x26359e,_0x1492e3){const _0x12a560={_0x17e1a2:0x261,_0x400c88:0x24b,_0x2ab4af:0x176,_0x1d1ed6:0x260,_0xa2ded1:0x28d,_0x5245f5:0x1cc,_0x3f3097:0x307,_0x168fca:0x215,_0x18af02:0x161,_0xb0397c:0x1d8,_0x2c5434:0x2fb,_0x7ab0be:0x27a,_0x26d4c7:0x282,_0x35754a:0x2f1,_0x18c50e:0x30c,_0x4fac83:0x2f4,_0x2c518e:0x2ba,_0x5c6d5d:0x250,_0x4d4115:0x22e,_0x39ee73:0x204,_0x1a73e9:0x27f,_0x5d322a:0x348,_0x5cf518:0x2de},_0x41db8b={_0x1d06bc:0xa1},_0x304f29={_0x2609b9:0x67};function _0x39b992(_0x207aff,_0x3d379b,_0x3cf3c8,_0x1be191){return _0x3519(_0x1be191- -_0x304f29._0x2609b9,_0x207aff);}const _0x427fc3=_0x26359e();function _0x328161(_0x1a58cc,_0x1eb066,_0x112fae,_0x13cb74){return _0x3519(_0x112fae-_0x41db8b._0x1d06bc,_0x13cb74);}while(!![]){try{const _0x1d5ea3=-parseInt(_0x39b992(_0x12a560._0x17e1a2,_0x12a560._0x400c88,_0x12a560._0x2ab4af,0x1dc))/0x1+-parseInt(_0x328161(0x1f3,0x26b,_0x12a560._0x1d1ed6,0x22f))/0x2*(-parseInt(_0x328161(_0x12a560._0xa2ded1,0x241,0x21d,_0x12a560._0x5245f5))/0x3)+-parseInt(_0x328161(0x2fe,0x383,_0x12a560._0x3f3097,0x2eb))/0x4+parseInt(_0x39b992(_0x12a560._0x168fca,_0x12a560._0x18af02,0x241,_0x12a560._0xb0397c))/0x5*(-parseInt(_0x328161(_0x12a560._0x2c5434,_0x12a560._0x7ab0be,_0x12a560._0x26d4c7,_0x12a560._0x35754a))/0x6)+-parseInt(_0x328161(_0x12a560._0x18c50e,0x272,_0x12a560._0x4fac83,_0x12a560._0x2c518e))/0x7+-parseInt(_0x328161(0x225,0x1da,_0x12a560._0x5c6d5d,0x2b4))/0x8*(parseInt(_0x328161(0x2fc,0x26d,0x2f2,0x31b))/0x9)+parseInt(_0x328161(_0x12a560._0x4d4115,_0x12a560._0x39ee73,_0x12a560._0x1a73e9,0x291))/0xa*(parseInt(_0x328161(_0x12a560._0x5d322a,0x337,_0x12a560._0x5cf518,0x363))/0xb);if(_0x1d5ea3===_0x1492e3)break;else _0x427fc3['push'](_0x427fc3['shift']());}catch(_0x224ef5){_0x427fc3['push'](_0x427fc3['shift']());}}}(_0xbcd2,0x7dcb8));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x1d5e55){const _0x5f121c={_0x8b09e5:0x3fb,_0x5ede16:0x3f5,_0x52958b:0x464},_0x1373bb={_0x171536:0x96},_0x19d9f2={_0x5b3ff9:0x2c1};function _0x42f966(_0x48f894,_0x576ce7,_0x15348e,_0x30e5ec){return _0x3519(_0x576ce7-_0x19d9f2._0x5b3ff9,_0x30e5ec);}function _0x571a9b(_0x3d91f8,_0x86fb74,_0x4a4481,_0x4474e1){return _0x3519(_0x4a4481- -_0x1373bb._0x171536,_0x86fb74);}return typeof _0x1d5e55===_0x42f966(0x435,0x451,_0x5f121c._0x8b09e5,_0x5f121c._0x5ede16)&&_0x1d5e55!==null&&!Array[_0x42f966(0x4ce,0x47a,0x47b,_0x5f121c._0x52958b)](_0x1d5e55);}function isToolOutputEnvelope(_0x30af11){const _0xeebfbe={_0x461f72:0x197,_0x4954e6:0x98,_0x51dc5c:0x14b,_0x4be9a0:0x1b4,_0x1a1ef1:0x388,_0x25a715:0x30d,_0x1a8711:0x372,_0x47d527:0x2e},_0x4bf903={_0x501741:0x29b};function _0x16196c(_0x3cec03,_0x4a3c36,_0x3e3c0e,_0x77bc90){return _0x3519(_0x3cec03- -_0x4bf903._0x501741,_0x4a3c36);}if(typeof _0x30af11!==_0x16196c(-0x10b,-_0xeebfbe._0x461f72,-_0xeebfbe._0x4954e6,-_0xeebfbe._0x51dc5c)||_0x30af11===null||Array[_0xdcc60f(0x2dd,0x344,0x320,0x2c4)](_0x30af11))return![];if(typeof _0x30af11[_0x16196c(-_0xeebfbe._0x51dc5c,-0xbd,-0x10f,-_0xeebfbe._0x4be9a0)]!==_0xdcc60f(_0xeebfbe._0x1a1ef1,_0xeebfbe._0x25a715,0x315,_0xeebfbe._0x1a8711))return![];function _0xdcc60f(_0x2e4f2b,_0x1f1c19,_0x37d74d,_0x50af63){return _0x3519(_0x1f1c19-0x18b,_0x2e4f2b);}const _0x58ced2=_0x30af11[_0x16196c(-0x88,-0x7f,-_0xeebfbe._0x47d527,-0x4c)];return _0x58ced2===void 0x0||isJsonObject(_0x58ced2);}function validateAgainstSchema(_0x1619d2,_0x3e7240,_0x405bf3){const _0x3c8c40={_0x2055f6:0x4bf,_0x5f56bf:0x448,_0x576e1c:0x4bb,_0x226e8b:0x51e,_0x23a2ee:0x559,_0x3e7248:0x4da,_0x220ea4:0x535,_0xb05911:0x545,_0x5e2fba:0x301,_0x558fb7:0x45a,_0x17f275:0x372,_0x59fc4c:0x29d,_0x260155:0x311,_0x412f5d:0x2a2,_0x5c873c:0x2bb,_0x26b05c:0x2d6,_0x28d3f7:0x4ae,_0x1981e5:0x48b,_0x48fb4f:0x4d9,_0x71ffb:0x236,_0x4bc8e5:0x2af,_0x1bc28d:0x337,_0x42e80b:0x4a4,_0x5c501c:0x48a,_0x49ccc2:0x2b8,_0xfda2f:0x300,_0x7eb18e:0x4e4,_0x2ce418:0x4b2,_0x33f0d7:0x2e5,_0x52fbda:0x30d,_0x1b4b05:0x2bb,_0x27c1c3:0x2ac,_0x395771:0x549,_0x202323:0x53f,_0x1c2c35:0x4b4,_0x29d52f:0x4e2,_0x5e4be7:0x4a2,_0x2a4032:0x307,_0x13c30c:0x26f,_0x1fc380:0x32d,_0x2decd6:0x52f,_0x5ac0c4:0x4f2,_0xb11ac0:0x584,_0x2394c3:0x2ab,_0x5f42fd:0x252,_0x278a5f:0x34e,_0x1f8ff3:0x32b,_0x5f253c:0x4e9,_0xc1496f:0x511,_0x110ab6:0x31e,_0x47abd5:0x2a0,_0x57997c:0x2f0,_0x6b4a3b:0x3ed,_0x41c6b3:0x36f,_0x54cffd:0x358,_0x7248c8:0x326,_0xf6ff99:0x38b,_0x5084a4:0x3ec,_0x4b5999:0x472,_0x308778:0x448,_0x4755af:0x4c5,_0x503407:0x274,_0x4bab32:0x26c,_0x462b9f:0x4d8,_0x38f90c:0x4d6,_0x303c92:0x522},_0x588a74={_0x4b6efe:0x563,_0x5c6bc2:0x50c,_0x85a348:0x4a3},_0x147600={_0x3462c0:0x2f6};function _0x3beeb1(_0x13df0d,_0x5d4dc5,_0x5124d8,_0x166222){return _0x3519(_0x5d4dc5-_0x147600._0x3462c0,_0x13df0d);}function _0x3876bd(_0x1c58e6,_0x5bcdd8,_0x67990c,_0x29a9a5){return _0x3519(_0x5bcdd8-0x11b,_0x29a9a5);}if(_0x3beeb1(_0x3c8c40._0x2055f6,0x4bb,0x48a,0x521)in _0x405bf3){const _0x5b7bf6=_0x405bf3[_0x3beeb1(_0x3c8c40._0x5f56bf,_0x3c8c40._0x576e1c,0x44f,_0x3c8c40._0x226e8b)][_0x3beeb1(_0x3c8c40._0x23a2ee,_0x3c8c40._0x3e7248,_0x3c8c40._0x220ea4,_0x3c8c40._0xb05911)](_0x3ce7dd=>{try{return validateAgainstSchema(_0x1619d2,_0x3e7240,_0x3ce7dd),!![];}catch{return![];}});if(!_0x5b7bf6)throw new Error(_0x3876bd(0x23f,0x2bb,0x314,_0x3c8c40._0x5e2fba)+_0x1619d2+_0x3beeb1(0x3dd,0x44e,0x3fe,_0x3c8c40._0x558fb7));return;}switch(_0x405bf3[_0x3876bd(0x2f9,_0x3c8c40._0x17f275,0x3c3,0x384)]){case _0x3876bd(0x22c,_0x3c8c40._0x59fc4c,0x21f,0x216):if(typeof _0x3e7240!==_0x3876bd(_0x3c8c40._0x260155,0x29d,0x325,0x30b))throw new Error(_0x3876bd(_0x3c8c40._0x412f5d,_0x3c8c40._0x5c873c,0x295,_0x3c8c40._0x26b05c)+_0x1619d2+_0x3beeb1(_0x3c8c40._0x28d3f7,0x4c1,_0x3c8c40._0x1981e5,_0x3c8c40._0x48fb4f));if(_0x405bf3[_0x3876bd(0x25f,0x2af,_0x3c8c40._0x71ffb,0x25c)]!==void 0x0&&!_0x405bf3[_0x3876bd(0x269,_0x3c8c40._0x4bc8e5,_0x3c8c40._0x1bc28d,0x327)]['includes'](_0x3e7240))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3beeb1(0x521,_0x3c8c40._0x42e80b,0x527,0x51c)+_0x405bf3[_0x3beeb1(0x407,_0x3c8c40._0x5c501c,0x4fa,0x416)][_0x3876bd(_0x3c8c40._0x49ccc2,_0x3c8c40._0xfda2f,0x2ec,0x358)](',\x20'));return;case _0x3beeb1(0x537,_0x3c8c40._0x7eb18e,_0x3c8c40._0x2ce418,0x4e3):if(typeof _0x3e7240!=='number')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3876bd(_0x3c8c40._0x33f0d7,0x365,_0x3c8c40._0x52fbda,0x3eb));return;case'boolean':if(typeof _0x3e7240!=='boolean')throw new Error(_0x3876bd(0x258,_0x3c8c40._0x1b4b05,_0x3c8c40._0x27c1c3,0x252)+_0x1619d2+_0x3beeb1(_0x3c8c40._0x395771,0x514,_0x3c8c40._0x202323,0x4fe));return;case _0x3beeb1(_0x3c8c40._0x1c2c35,_0x3c8c40._0x29d52f,0x53b,_0x3c8c40._0x5e4be7):if(!Array[_0x3876bd(0x27f,0x2d4,_0x3c8c40._0x2a4032,_0x3c8c40._0x13c30c)](_0x3e7240))throw new Error(_0x3876bd(0x343,0x2bb,0x2c3,_0x3c8c40._0x1fc380)+_0x1619d2+_0x3876bd(0x315,0x34f,0x322,0x2fb));_0x3e7240[_0x3beeb1(0x4d3,_0x3c8c40._0x2decd6,_0x3c8c40._0x5ac0c4,_0x3c8c40._0xb11ac0)]((_0xa1c242,_0x382801)=>{function _0x246dc7(_0x75c555,_0x39511a,_0x4f4016,_0x5bf33e){return _0x3876bd(_0x75c555-0x20,_0x4f4016-0x1cf,_0x4f4016-0xc1,_0x75c555);}validateAgainstSchema(_0x1619d2+'['+_0x382801+']',_0xa1c242,_0x405bf3[_0x246dc7(0x4c1,_0x588a74._0x4b6efe,_0x588a74._0x5c6bc2,_0x588a74._0x85a348)]);});return;case _0x3876bd(0x224,_0x3c8c40._0x2394c3,_0x3c8c40._0x5f42fd,0x256):if(!isJsonObject(_0x3e7240))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3876bd(0x2f1,_0x3c8c40._0x278a5f,0x3c8,_0x3c8c40._0x1f8ff3));for(const _0x2eda46 of _0x405bf3[_0x3beeb1(_0x3c8c40._0x5f253c,_0x3c8c40._0xc1496f,0x571,0x56b)]??[]){if(!Object[_0x3876bd(_0x3c8c40._0x110ab6,0x2fb,_0x3c8c40._0x47abd5,_0x3c8c40._0x57997c)](_0x3e7240,_0x2eda46))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3876bd(_0x3c8c40._0x6b4a3b,_0x3c8c40._0x41c6b3,_0x3c8c40._0x54cffd,_0x3c8c40._0x7248c8)+_0x2eda46+'\x22');}if(_0x405bf3[_0x3876bd(0x30b,0x312,_0x3c8c40._0xf6ff99,0x323)]===![]){const _0xdebd63=Object[_0x3beeb1(_0x3c8c40._0x5084a4,0x467,0x4da,_0x3c8c40._0x4b5999)](_0x3e7240)['find'](_0xd546e7=>!Object[_0x3876bd(0x301,0x2fb,0x2aa,0x2fc)](_0x405bf3[_0x3876bd(0x31d,0x302,0x325,0x377)],_0xd546e7));if(_0xdebd63!==void 0x0)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1619d2+_0x3beeb1(0x3e2,_0x3c8c40._0x308778,_0x3c8c40._0x4755af,0x4b6)+_0xdebd63+'\x22');}for(const [_0x9c784b,_0x2df4fb]of Object[_0x3876bd(0x298,_0x3c8c40._0x503407,0x1f6,_0x3c8c40._0x4bab32)](_0x405bf3['properties'])){Object[_0x3beeb1(_0x3c8c40._0x462b9f,_0x3c8c40._0x38f90c,_0x3c8c40._0x303c92,0x4bb)](_0x3e7240,_0x9c784b)&&validateAgainstSchema(_0x1619d2+'.'+_0x9c784b,_0x3e7240[_0x9c784b],_0x2df4fb);}}}function normalizeToolOutputValue(_0x275ad7){const _0x597a54={_0x546e8e:0x17b,_0x80a842:0xf8,_0x4844c1:0x12d,_0x204036:0x171,_0x29987f:0x1da,_0x209a04:0x211,_0x3ad9dd:0x164,_0x18994f:0x2b6,_0x399a61:0x190,_0x24dfeb:0xfc,_0x40d78a:0x1ff,_0x59b707:0x1b0,_0x2ac040:0x241,_0x3a3c43:0x21a,_0x5ccdcd:0x195,_0x49ebb5:0x196,_0x57173f:0x2a0,_0x5be20b:0x287,_0x50fb4e:0x2ec,_0x3807ea:0x2ed};if(isToolOutputEnvelope(_0x275ad7))return{'output':_0x275ad7[_0x26dd83(_0x597a54._0x546e8e,0x167,_0x597a54._0x80a842,_0x597a54._0x4844c1)],'structured':_0x275ad7['structured']??{'value':_0x275ad7[_0x2c64de(0x1bf,0x15e,0x200,_0x597a54._0x204036)]},..._0x275ad7[_0x26dd83(_0x597a54._0x29987f,_0x597a54._0x209a04,_0x597a54._0x3ad9dd,0x1b6)]!==void 0x0?{'content':_0x275ad7[_0x2c64de(0x248,_0x597a54._0x18994f,0x281,0x1de)]}:{}};if(typeof _0x275ad7===_0x26dd83(_0x597a54._0x399a61,_0x597a54._0x24dfeb,0x186,0x15f))return{'output':_0x275ad7,'structured':{'value':_0x275ad7}};if(typeof _0x275ad7===_0x2c64de(_0x597a54._0x40d78a,0x1a9,_0x597a54._0x59b707,_0x597a54._0x2ac040)&&_0x275ad7!==null&&!Array[_0x26dd83(_0x597a54._0x3a3c43,0x223,_0x597a54._0x5ccdcd,_0x597a54._0x49ebb5)](_0x275ad7))return{'output':JSON[_0x2c64de(0x287,0x269,_0x597a54._0x57173f,0x2c6)](_0x275ad7,null,0x2),'structured':_0x275ad7};function _0x2c64de(_0x2b4782,_0x46c7c2,_0x2b257d,_0x27a70b){return _0x3519(_0x2b4782-0x6f,_0x46c7c2);}function _0x26dd83(_0x445ed1,_0x9d35ba,_0x3e502e,_0x447b24){return _0x3519(_0x447b24- -0x23,_0x445ed1);}return{'output':JSON[_0x2c64de(_0x597a54._0x5be20b,_0x597a54._0x50fb4e,0x2e9,_0x597a54._0x3807ea)](_0x275ad7,null,0x2),'structured':{'value':_0x275ad7}};}function createToolOutput(_0x113b18,_0x266cb7={'value':_0x113b18},_0x2ce500){return{'output':_0x113b18,'structured':_0x266cb7,..._0x2ce500!==void 0x0?{'content':_0x2ce500}:{}};}var ToolExecutionError=class extends Error{[_0xf3454f(0x2c5,0x24f,0x2f8,0x2e2)];constructor(_0x353f61,_0xda1bbc={}){const _0x522e40={_0x574a94:0x3c9,_0x496544:0x429},_0x1cf4b1={_0x3849a9:0x164,_0x493ef8:0xfd},_0xb7d56d={_0x233629:0x17c,_0x339782:0x1b4};function _0x1946a9(_0x5b7887,_0x4df3f2,_0x64390c,_0x2cf1d4){return _0xf3454f(_0x64390c- -0x334,_0x4df3f2-_0xb7d56d._0x233629,_0x4df3f2,_0x2cf1d4-_0xb7d56d._0x339782);}super(_0x353f61);function _0x19ff61(_0x51a835,_0x3c2906,_0x172cd2,_0x1c36cf){return _0xf3454f(_0x1c36cf-_0x1cf4b1._0x3849a9,_0x3c2906-0x120,_0x51a835,_0x1c36cf-_0x1cf4b1._0x493ef8);}this[_0x19ff61(0x402,0x414,0x43d,_0x522e40._0x574a94)]='ToolExecutionError',this[_0x19ff61(0x43b,0x3f9,0x451,_0x522e40._0x496544)]=_0xda1bbc;}};function defineTool(_0x4e6177){return _0x4e6177;}function resolveToolPermissionClass(_0x20588c){const _0x2a9a42={_0x1c5bdd:0x1de,_0x53ba6b:0x198,_0x5c9c5e:0x558,_0x2f3cd0:0x513,_0xf8ff6c:0x178,_0x1bf4a0:0x1a7,_0x2d72c8:0x189},_0x31c8fd={_0x54da3a:0x28},_0x3c3b5b={_0x1c9d28:0x108,_0x26c253:0x159};function _0x169d28(_0x2c1e7e,_0x5691eb,_0x1706af,_0x5124c1){return _0xf3454f(_0x5124c1- -_0x3c3b5b._0x1c9d28,_0x5691eb-_0x3c3b5b._0x26c253,_0x5691eb,_0x5124c1-0x4c);}function _0x299fcf(_0x2b8387,_0x408d15,_0x300db4,_0x29288a){return _0xf3454f(_0x29288a-0x22a,_0x408d15-0x14f,_0x408d15,_0x29288a-_0x31c8fd._0x54da3a);}const _0x39b4bc=_0x20588c?.[_0x169d28(_0x2a9a42._0x1c5bdd,0xde,_0x2a9a42._0x53ba6b,0x15a)];if(_0x39b4bc===_0x299fcf(_0x2a9a42._0x5c9c5e,_0x2a9a42._0x2f3cd0,0x49d,0x4ce)||_0x39b4bc==='write'||_0x39b4bc===_0x169d28(0x12f,0x1bc,0x1fe,_0x2a9a42._0xf8ff6c))return _0x39b4bc;return _0x169d28(0x171,_0x2a9a42._0x1bf4a0,_0x2a9a42._0x2d72c8,0x178);}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x25dcf0=[]){for(const _0x3e9553 of _0x25dcf0){this['register'](_0x3e9553);}}['register'](_0x1c48eb){const _0x230d82={_0x2f9976:0x3b,_0xbdb889:0x5d,_0x2169e6:0x13,_0x440b81:0x53,_0x2aa60c:0xeb},_0x247056={_0x4beef7:0x325,_0x5f3f3a:0x16d},_0x1cacd1={_0x36a5d4:0xcb};function _0x574ba5(_0x2c376b,_0x20834f,_0x22d6a6,_0x342783){return _0xf3454f(_0x22d6a6-0x9b,_0x20834f-_0x1cacd1._0x36a5d4,_0x342783,_0x342783-0x189);}function _0x4c50c8(_0x88f40f,_0x32a6d4,_0x4723fe,_0x3e862c){return _0xf3454f(_0x88f40f- -_0x247056._0x4beef7,_0x32a6d4-_0x247056._0x5f3f3a,_0x3e862c,_0x3e862c-0x69);}this[_0x4c50c8(-_0x230d82._0x2f9976,-_0x230d82._0xbdb889,-_0x230d82._0x2169e6,_0x230d82._0x440b81)]['set'](_0x1c48eb[_0x4c50c8(-0xc0,-_0x230d82._0x2aa60c,-0xe0,-0x54)],_0x1c48eb);}['get'](_0x309293){const _0x357930={_0x56a598:0x22e,_0x451552:0x1e7,_0x1c30bb:0x265},_0x567bb0={_0x1aa043:0xd8};function _0x4e171f(_0xcd0c14,_0x1914ea,_0x907625,_0x478d1b){return _0xf3454f(_0x1914ea- -0x103,_0x1914ea-_0x567bb0._0x1aa043,_0x478d1b,_0x478d1b-0x1f4);}return this[_0x4e171f(_0x357930._0x56a598,_0x357930._0x451552,0x15d,_0x357930._0x1c30bb)]['get'](_0x309293);}['list'](){const _0x350df3={_0x346c28:0x25a,_0x81cee5:0x1ae},_0x3f0eba={_0x4281c1:0x1a3,_0x18196d:0xe6};function _0x24bb2b(_0x159c4a,_0x11dd74,_0x131378,_0xfd42ac){return _0xf3454f(_0x131378- -0xe3,_0x11dd74-_0x3f0eba._0x4281c1,_0x159c4a,_0xfd42ac-_0x3f0eba._0x18196d);}return[...this[_0x24bb2b(_0x350df3._0x346c28,_0x350df3._0x81cee5,0x207,0x203)]['values']()];}[_0xf3454f(0x2b8,0x343,0x338,0x264)](){const _0x30ce18={_0xe25a8e:0x16a};return this['list']()['map'](_0x49d65e=>{function _0x1f432a(_0xb36dec,_0x1fe0d3,_0x17514b,_0x332250){return _0x3519(_0x332250- -0x2ac,_0xb36dec);}return{'name':_0x49d65e[_0x1f432a(-_0x30ce18._0xe25a8e,-0x70,-0xec,-0xf9)],'description':_0x49d65e['description'],'input_schema':_0x49d65e['inputSchema']};});}};function validateToolInput(_0x4fca49,_0x3156e7){const _0x44d7f6={_0x402f6d:0xb5,_0x511a0a:0x9f},_0x26fb0f={_0x291e90:0x1ca};function _0x24f2dd(_0xf1f258,_0x1b420c,_0xc6fcd8,_0x60a0c0){return _0x3f402d(_0xf1f258-0xe4,_0x1b420c- -0x285,_0xc6fcd8-_0x26fb0f._0x291e90,_0xf1f258);}return validateAgainstSchema(_0x24f2dd(-0x8a,-_0x44d7f6._0x402f6d,-0x12a,-_0x44d7f6._0x511a0a),_0x4fca49,_0x3156e7),_0x4fca49;}function deriveFinalToolOutput(_0x34aadb){const _0x5b32bb={_0x81a0fc:0x90,_0x52dfcf:0x16f,_0x46b0f7:0xfe,_0x4148d9:0xc5,_0x3ad326:0xb4,_0x207d7d:0x11a,_0xc8bfb:0x75,_0x186832:0x97,_0x51574c:0x46,_0x2c1da6:0x5d,_0x6bd09:0xb9,_0x1fafe8:0x78,_0x15651c:0xed,_0x3398b3:0x69,_0xade348:0xe6,_0x187372:0x58,_0x5053fe:0xe,_0x72abb2:0x11,_0xff56c2:0x86,_0x521620:0xaf,_0x533d7e:0x16a,_0x8279ae:0x130},_0xf2b879={_0x4b0623:0x300,_0x21d51b:0x74},_0x48e702={_0x335d0a:0xd5,_0x3a791e:0x8};function _0x227b08(_0x4f15e1,_0x33cb4a,_0x4be732,_0x4cc583){return _0x3f402d(_0x4f15e1-0xcf,_0x4be732- -_0x48e702._0x335d0a,_0x4be732-_0x48e702._0x3a791e,_0x4f15e1);}if(_0x34aadb[_0x2b3eb8(-0x5f,-0x61,-0x14,-_0x5b32bb._0x81a0fc)]===0x0)return{'output':'','structured':{}};if(_0x34aadb[_0x227b08(_0x5b32bb._0x52dfcf,0xa4,0xf6,0x9d)]===0x1)return{'output':_0x34aadb[0x0][_0x2b3eb8(-_0x5b32bb._0x46b0f7,-0x159,-_0x5b32bb._0x4148d9,-_0x5b32bb._0x3ad326)],'structured':_0x34aadb[0x0][_0x227b08(0x180,0x113,_0x5b32bb._0x207d7d,0x192)],..._0x34aadb[0x0][_0x2b3eb8(-0x75,0x17,-0xa5,-0xd2)]!==void 0x0?{'content':_0x34aadb[0x0][_0x2b3eb8(-_0x5b32bb._0xc8bfb,-_0x5b32bb._0x186832,-0x3e,-0x37)]}:{}};const _0x337cf6=_0x34aadb[_0x227b08(_0x5b32bb._0x51574c,0xd6,_0x5b32bb._0x2c1da6,_0x5b32bb._0x6bd09)](_0x40216c=>_0x40216c[_0x227b08(0xa6,0x97,0xe0,0x12c)]!==void 0x0);function _0x2b3eb8(_0x24bb38,_0x12a053,_0x151ed8,_0x4a51cf){return _0xf3454f(_0x24bb38- -_0xf2b879._0x4b0623,_0x12a053-0xde,_0x4a51cf,_0x4a51cf-_0xf2b879._0x21d51b);}return{'output':_0x34aadb[_0x2b3eb8(-0xcf,-0x73,-_0x5b32bb._0x1fafe8,-_0x5b32bb._0x15651c)](_0x32f133=>_0x32f133[_0x227b08(0x6c,0x57,0x57,0x35)])[_0x2b3eb8(-_0x5b32bb._0x3398b3,-_0x5b32bb._0xade348,-_0x5b32bb._0x187372,-_0x5b32bb._0x5053fe)](''),'structured':{'chunks':_0x34aadb[_0x227b08(_0x5b32bb._0x72abb2,0x2b,_0x5b32bb._0xff56c2,_0x5b32bb._0x521620)](_0x19e6c9=>_0x19e6c9[_0x227b08(0xc5,0x19d,0x11a,0x92)])},..._0x337cf6[_0x227b08(_0x5b32bb._0x533d7e,0xf9,0xf6,_0x5b32bb._0x8279ae)]===0x1?{'content':_0x337cf6[0x0]['content']}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x489e3c){const _0x3906df={_0x581fa4:0x5f8,_0x51e9d7:0x5d6,_0x166994:0x61f,_0x3b0278:0x164,_0x55e056:0x1c5,_0x19de50:0x55b},_0x20cc7e={_0x1001c7:0x163,_0x45812a:0x3f5,_0x55f675:0xf1},_0x10087c={_0x32d33e:0x11d,_0x5ef2b3:0x2f3,_0x2ba854:0x12};function _0x466899(_0x153db2,_0x42cb56,_0x548b88,_0x245725){return _0x3f402d(_0x153db2-_0x10087c._0x32d33e,_0x153db2- -_0x10087c._0x5ef2b3,_0x548b88-_0x10087c._0x2ba854,_0x548b88);}super(_0xd05f9d(_0x3906df._0x581fa4,0x568,_0x3906df._0x51e9d7,_0x3906df._0x166994),{'cause':_0x489e3c});function _0xd05f9d(_0x52c504,_0x557bbe,_0x38f8ec,_0x457df2){return _0x3f402d(_0x52c504-_0x20cc7e._0x1001c7,_0x38f8ec-_0x20cc7e._0x45812a,_0x38f8ec-_0x20cc7e._0x55f675,_0x557bbe);}this[_0x466899(-_0x3906df._0x3b0278,-_0x3906df._0x55e056,-0x17d,-0x14d)]=_0xd05f9d(0x4ec,0x514,_0x3906df._0x19de50,0x518);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x5be311,_0x48bcd7){const _0x1f563c={_0x69f241:0xc0,_0x417955:0xe0};function _0x6464a3(_0x1efc98,_0x2dab43,_0x31a813,_0xfaab3d){return _0xf3454f(_0x1efc98-0x286,_0x2dab43-_0x1f563c._0x69f241,_0x2dab43,_0xfaab3d-_0x1f563c._0x417955);}_0x5be311&&boundNestedExecutionControls['get'](_0x5be311)?.[_0x6464a3(0x498,0x474,0x49b,0x4ed)](_0x48bcd7);}async function drainBoundNestedToolPersistence(_0x551eaf){const _0x98debd={_0x58a996:0x38c,_0x4494d2:0x31c,_0x1249fb:0x408},_0x4f7e8f={_0x114cbc:0x146};function _0x55416a(_0x4e7bec,_0x2f1ba6,_0x6dbec7,_0xe7f4c5){return _0x3f402d(_0x4e7bec-0x95,_0x4e7bec-_0x4f7e8f._0x114cbc,_0x6dbec7-0x101,_0xe7f4c5);}_0x551eaf&&await boundNestedExecutionControls['get'](_0x551eaf)?.[_0x55416a(_0x98debd._0x58a996,_0x98debd._0x4494d2,_0x98debd._0x1249fb,0x3f3)]();}function commitBoundToolExecutionTerminalState(_0x1b014e){const _0x31c703={_0x4caee5:0xb3,_0x2af00a:0x24,_0x362708:0x84,_0x18328b:0x181,_0x30f2d4:0x1b1,_0x4d9c80:0x198},_0x313071={_0xd86efb:0x1cc},_0x11b0a0={_0x876d2c:0xa4};function _0x2d0608(_0x3bfa22,_0xd9d78f,_0x185ab3,_0x18c7fe){return _0xf3454f(_0x18c7fe- -0x12e,_0xd9d78f-_0x11b0a0._0x876d2c,_0xd9d78f,_0x18c7fe-0x1d3);}function _0x4172a5(_0x3990b7,_0x82f0d,_0x1645a3,_0x7c71df){return _0xf3454f(_0x1645a3- -0x219,_0x82f0d-_0x313071._0xd86efb,_0x3990b7,_0x7c71df-0x107);}_0x1b014e&&boundNestedExecutionControls[_0x4172a5(_0x31c703._0x4caee5,_0x31c703._0x2af00a,_0x31c703._0x362708,0x97)](_0x1b014e)?.[_0x2d0608(_0x31c703._0x18328b,_0x31c703._0x30f2d4,0x223,_0x31c703._0x4d9c80)]();}var PARENT_TOOL_SETTLED_MESSAGE='Parent\x20tool\x20execution\x20settled';function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x5132ad,_0x301424,_0x41d735,_0x4861e4,_0x100736=[]){return{'callId':_0x5132ad,'toolName':_0x301424,'status':'error','output':_0x41d735,'structured':_0x4861e4,'chunks':_0x100736,'meta':createToolMeta()};}function _0xf3454f(_0x4df06c,_0x19be7e,_0x40aa7a,_0x1a53cf){return _0x3519(_0x4df06c-0xb2,_0x40aa7a);}function createRejectedToolResult(_0x419cca,_0x5944fe,_0x3f213b){const _0x19384d={_0x2d6471:0x4f6,_0x4b31a6:0x39f,_0x3d371c:0x32f,_0x38c100:0x4e4,_0x14c1b4:0x304,_0x3dde99:0x336,_0x1ee627:0x324,_0x419b1b:0x55b,_0x19a244:0x567,_0x313952:0x507},_0x15fe8c={_0x521055:0x269},_0xcd8c23={_0x407817:0xa0};function _0x5f1220(_0x1f07e5,_0x38d112,_0x5d8c7c,_0x1f7e96){return _0x3f402d(_0x1f07e5-_0xcd8c23._0x407817,_0x1f07e5-0x1d4,_0x5d8c7c-0x2b,_0x38d112);}function _0x4fa465(_0x158e88,_0x46821d,_0x3e7a20,_0xbca5d1){return _0xf3454f(_0x46821d-_0x15fe8c._0x521055,_0x46821d-0x1dd,_0xbca5d1,_0xbca5d1-0x37);}const _0x1e4eb9=_0x3f213b?.[_0x4fa465(0x4e7,_0x19384d._0x2d6471,0x48e,0x477)]()[_0x5f1220(_0x19384d._0x4b31a6,0x378,0x36c,_0x19384d._0x3d371c)]?_0x3f213b:'Tool\x20execution\x20rejected\x20for\x20'+_0x5944fe;return createErrorToolResult(_0x419cca,_0x5944fe,_0x1e4eb9,{'error':_0x4fa465(0x4f4,_0x19384d._0x38c100,0x551,0x566),..._0x3f213b?.[_0x5f1220(0x38b,_0x19384d._0x14c1b4,_0x19384d._0x3dde99,_0x19384d._0x1ee627)]()[_0x4fa465(_0x19384d._0x419b1b,0x50a,_0x19384d._0x19a244,_0x19384d._0x313952)]?{'reason':_0x3f213b}:{}});}function createAbortedToolResult(_0x43d943,_0x4287c9,_0x1a4f6a,_0x1792cc=[]){const _0x4ce384={_0x19700e:0x27f,_0xf55612:0x14d,_0x41a652:0x20e,_0x2de77f:0x1c2,_0x30cae4:0x1e2,_0x25634c:0x192,_0x6cf159:0x1c2,_0x26fa8e:0x99},_0x1cc910={_0xf77366:0x30},_0x328188={_0x27da08:0x16b};function _0x1e4b88(_0x54b1af,_0x316a45,_0x237e77,_0x2c3e74){return _0x3f402d(_0x54b1af-0x19b,_0x237e77- -0x156,_0x237e77-_0x328188._0x27da08,_0x54b1af);}function _0xaae409(_0x25fb2b,_0x587bf9,_0x1a2166,_0x337da9){return _0x3f402d(_0x25fb2b-0x1d9,_0x337da9- -_0x1cc910._0xf77366,_0x1a2166-0x175,_0x25fb2b);}if(_0x4287c9==='Program')return createErrorToolResult(_0x43d943,_0x4287c9,_0xaae409(0x19c,_0x4ce384._0x19700e,0x19a,0x206),{'error':_0xaae409(0x1d2,0x142,0xe2,_0x4ce384._0xf55612),'aborted':!![]},_0x1792cc);const _0x290e61=toAbortError(_0x1a4f6a);return createErrorToolResult(_0x43d943,_0x4287c9,_0x290e61[_0xaae409(0x201,_0x4ce384._0x41a652,0x216,_0x4ce384._0x2de77f)],{'error':_0x290e61[_0xaae409(0x16f,_0x4ce384._0x30cae4,_0x4ce384._0x25634c,_0x4ce384._0x6cf159)],..._0x1a4f6a instanceof ToolExecutionError?_0x1a4f6a[_0x1e4b88(0x62,0x7a,_0x4ce384._0x26fa8e,0xe)]:{},'aborted':!![]},_0x1792cc);}function createSuccessToolResult(_0x59104f,_0xb49fba,_0x53e08a,_0x39883b){const _0x11446c={_0x5e847a:0x2ce,_0x166f9b:0x279,_0x5dd5de:0x453,_0x5ab2db:0x446,_0x4bfa61:0x4b6,_0x2604ec:0x419,_0xaecf68:0x48c},_0x1dffe9={_0x2dea60:0xd9},_0x517a7c={_0xb80a47:0x14d,_0x4ac413:0xbc};function _0xde1f25(_0x50b21d,_0x4f4796,_0x15086b,_0x180aa7){return _0x3f402d(_0x50b21d-0x80,_0x180aa7-_0x517a7c._0xb80a47,_0x15086b-_0x517a7c._0x4ac413,_0x4f4796);}function _0x28bad1(_0x55f799,_0x3bd1b1,_0x238f29,_0x5cfcbe){return _0x3f402d(_0x55f799-0x1f2,_0x55f799-0x264,_0x238f29-_0x1dffe9._0x2dea60,_0x238f29);}return{'callId':_0x59104f,'toolName':_0xb49fba,'status':'ok','output':_0x53e08a[_0xde1f25(0x2e6,_0x11446c._0x5e847a,0x29c,_0x11446c._0x166f9b)],'structured':_0x53e08a[_0x28bad1(_0x11446c._0x5dd5de,0x424,_0x11446c._0x5ab2db,_0x11446c._0x4bfa61)],..._0x53e08a['content']!==void 0x0?{'content':_0x53e08a[_0x28bad1(_0x11446c._0x2604ec,0x41f,0x3b5,_0x11446c._0xaecf68)]}:{},'chunks':_0x39883b,'meta':createToolMeta()};}function createUnknownToolResult(_0x4ea6c2,_0x443460){const _0x1257bc={_0x58a77e:0x575,_0x17c74c:0x4f0,_0x30a14a:0x551},_0x25fddd={_0x40dafa:0xb9};function _0x5c3bf1(_0x5c9121,_0x3d135b,_0x55fe8d,_0x1e970e){return _0xf3454f(_0x3d135b-0x2b3,_0x3d135b-0x158,_0x5c9121,_0x1e970e-_0x25fddd._0x40dafa);}return createErrorToolResult(_0x4ea6c2,_0x443460,'Unknown\x20tool:\x20'+_0x443460,{'error':_0x5c3bf1(_0x1257bc._0x58a77e,_0x1257bc._0x17c74c,_0x1257bc._0x30a14a,0x48a)});}function cloneToolCallForPublication(_0x41e27e,_0x55c54b,_0x3a9960){const _0x2d2d68={_0x448a89:0x82,_0x4d99f4:0x22,_0x188b87:0xb},_0x5d2b6d={_0x36a0b6:0x2f,_0xc0aa1d:0x113};function _0x144bfc(_0x432e2e,_0x2aeda3,_0x135bf2,_0x258937){return _0x3f402d(_0x432e2e-_0x5d2b6d._0x36a0b6,_0x258937- -0x207,_0x135bf2-_0x5d2b6d._0xc0aa1d,_0x2aeda3);}return{...structuredClone(_0x41e27e),'type':_0x144bfc(_0x2d2d68._0x448a89,0x62,_0x2d2d68._0x4d99f4,_0x2d2d68._0x188b87),'id':_0x55c54b,'name':_0x3a9960};}function cloneToolResultChunkForPublication(_0x43f4a3){return structuredClone(_0x43f4a3);}function cloneToolResultForPublication(_0x3c1f9c,_0x193925,_0x20edc7){const _0xa9fa46={_0x213126:0x267,_0x1b82e7:0x224},_0x4cd242={_0x31f40d:0x396},{chunks:_0x38b496,..._0x4bb5f5}=_0x3c1f9c;function _0x283eae(_0xfdb3c8,_0xdbd7c9,_0x40013e,_0x79e6f2){return _0x3f402d(_0xfdb3c8-0x3e,_0x40013e- -_0x4cd242._0x31f40d,_0x40013e-0x62,_0x79e6f2);}return{...structuredClone(_0x4bb5f5),'callId':_0x193925,'toolName':_0x20edc7,'chunks':_0x38b496[_0x283eae(-0x26f,-_0xa9fa46._0x213126,-0x23b,-_0xa9fa46._0x1b82e7)](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x5a7009){const _0x2b89da={_0x246ffa:0x237,_0xc707fd:0x5a5,_0x5bb226:0x507},_0x4bb9a1={_0x365209:0x106,_0x632ee4:0x19d},_0x324c9c={_0x138093:0x141};function _0x1d8fa0(_0xfb9639,_0x3bca6e,_0x2fbd8b,_0x5224af){return _0x3f402d(_0xfb9639-_0x324c9c._0x138093,_0x2fbd8b-0x3b2,_0x2fbd8b-0x62,_0xfb9639);}if(typeof _0x5a7009!==_0x1d8fa0(0x4b5,0x50b,0x51e,0x4ca)||_0x5a7009===null)return![];function _0x3d67a1(_0x2c025a,_0x107690,_0x54570a,_0x221419){return _0xf3454f(_0x221419- -0x65,_0x107690-_0x4bb9a1._0x365209,_0x107690,_0x221419-_0x4bb9a1._0x632ee4);}return _0x5a7009['action']==='reject'||_0x5a7009[_0x3d67a1(0x1f6,_0x2b89da._0x246ffa,0x29a,0x24a)]===_0x1d8fa0(_0x2b89da._0xc707fd,0x4d4,0x51a,_0x2b89da._0x5bb226);}function normalizeExecutionError(_0x5c6056){const _0x445e72={_0x42c08a:0x42a,_0xd8adb9:0x44d,_0x154419:0x3ee,_0x19017a:0x36f,_0x547956:0x3c0,_0x51f9d5:0x325,_0x318b78:0x301,_0xac9fc4:0x457,_0x2d1ba7:0x361,_0x1521c6:0x3df,_0x21f17a:0x3f5,_0x317422:0x40d},_0x2764e9={_0x422127:0x15b};function _0x567e4d(_0x6455c8,_0x25e1a7,_0xcfc9c0,_0x56f62f){return _0x3f402d(_0x6455c8-0x7f,_0x56f62f-0x1b6,_0xcfc9c0-0xd2,_0x6455c8);}function _0x2c2cbf(_0x341bdb,_0x3e55d5,_0x52c848,_0x3704ba){return _0x3f402d(_0x341bdb-0x42,_0x341bdb-0x203,_0x52c848-_0x2764e9._0x422127,_0x3e55d5);}if(_0x5c6056 instanceof ToolExecutionError)return{'errorMessage':_0x5c6056['message'],'structured':{'error':_0x5c6056['message'],..._0x5c6056[_0x2c2cbf(0x3f2,0x473,0x448,_0x445e72._0x42c08a)]}};if(_0x5c6056 instanceof Error)return{'errorMessage':_0x5c6056[_0x2c2cbf(0x3f5,_0x445e72._0xd8adb9,0x434,0x3e0)],'structured':{'error':_0x5c6056[_0x2c2cbf(0x3f5,_0x445e72._0x154419,0x3dc,0x43e)]}};if(typeof _0x5c6056===_0x2c2cbf(_0x445e72._0x19017a,_0x445e72._0x547956,_0x445e72._0x51f9d5,_0x445e72._0x318b78)&&_0x5c6056!==null&&'message'in _0x5c6056&&typeof _0x5c6056[_0x2c2cbf(0x3f5,0x46c,0x3f1,_0x445e72._0xac9fc4)]===_0x2c2cbf(_0x445e72._0x2d1ba7,0x37e,0x371,_0x445e72._0x1521c6))return{'errorMessage':_0x5c6056[_0x2c2cbf(_0x445e72._0x21f17a,_0x445e72._0x317422,0x39a,0x374)],'structured':{'error':_0x5c6056['message']}};const _0xdf8bd=String(_0x5c6056);return{'errorMessage':_0xdf8bd,'structured':{'error':_0xdf8bd}};}function cloneToolEventForPublication(_0x54ecce){const _0x4ef3e5={_0x1ac7a8:0x107,_0x423ec2:0x97,_0x12e289:0x1ba,_0x3599d8:0x176,_0x22abcf:0x19e,_0x5e7221:0x1c4,_0x23c57a:0x160,_0x2a1389:0x177,_0x1c3e9f:0xf9,_0x17a8ee:0x9b,_0x123336:0x149,_0x5e35bc:0x12d,_0x36266c:0x1cc,_0x58a0cc:0x1a9,_0xe6544d:0x1ea,_0xcc18f4:0x109,_0x1d7b66:0x122,_0x43b353:0xe3,_0x3b11c9:0x16d,_0x2662cd:0x141,_0x4ced04:0x184,_0xcaee62:0x11f,_0x1cea0e:0x16c,_0x53b6a2:0x1d1,_0x4f3a66:0x141,_0x35fdf8:0x1b6,_0x3d4cb8:0x1ac,_0x5cf3bd:0x197,_0x312c76:0xfb,_0xa22567:0x1ca,_0xc0abbd:0x14f,_0x56ad54:0x13b,_0x385696:0x11d,_0x44236e:0x11e,_0x56ac5d:0x1ac,_0x4ecc4e:0x131,_0x3bcda9:0x94,_0x13d452:0x13c,_0x5edf89:0x186},_0x3b79f3={_0x53785c:0x136,_0x598527:0x6a},_0x2bda8e={_0x3b58b7:0x15c,_0x37b2b3:0x47,_0x1200cd:0x17e};function _0xe16f55(_0x4f6029,_0x11ee12,_0x2babc1,_0x441c22){return _0xf3454f(_0x11ee12- -_0x2bda8e._0x3b58b7,_0x11ee12-_0x2bda8e._0x37b2b3,_0x441c22,_0x441c22-_0x2bda8e._0x1200cd);}function _0x199f83(_0x1d2234,_0x3c114d,_0x15e72e,_0x36c2db){return _0x3f402d(_0x1d2234-_0x3b79f3._0x53785c,_0x1d2234- -_0x3b79f3._0x598527,_0x15e72e-0x1cf,_0x36c2db);}switch(_0x54ecce['type']){case _0xe16f55(0x163,_0x4ef3e5._0x1ac7a8,_0x4ef3e5._0x423ec2,0xf2):case _0xe16f55(0x149,0x183,_0x4ef3e5._0x12e289,_0x4ef3e5._0x3599d8):return{..._0x54ecce,'toolCall':cloneToolCallForPublication(_0x54ecce['toolCall'],_0x54ecce['toolCall']['id'],_0x54ecce[_0x199f83(_0x4ef3e5._0x22abcf,_0x4ef3e5._0x5e7221,_0x4ef3e5._0x23c57a,_0x4ef3e5._0x2a1389)][_0xe16f55(_0x4ef3e5._0x1c3e9f,0x109,_0x4ef3e5._0x17a8ee,0x189)])};case _0x199f83(_0x4ef3e5._0x123336,0x1c1,_0x4ef3e5._0x5e35bc,0x109):return{..._0x54ecce,'toolCall':cloneToolCallForPublication(_0x54ecce[_0x199f83(_0x4ef3e5._0x22abcf,_0x4ef3e5._0x36266c,0x160,0x1e3)],_0x54ecce['toolCall']['id'],_0x54ecce[_0x199f83(0x19e,_0x4ef3e5._0x58a0cc,_0x4ef3e5._0xe6544d,0x14d)][_0xe16f55(0xb8,_0x4ef3e5._0xcc18f4,_0x4ef3e5._0x1d7b66,_0x4ef3e5._0x43b353)]),'chunk':cloneToolResultChunkForPublication(_0x54ecce[_0x199f83(_0x4ef3e5._0x3b11c9,0x1b0,_0x4ef3e5._0x2662cd,0x1f9)])};case _0x199f83(0x1d1,0x1b4,0x189,0x241):case _0xe16f55(_0x4ef3e5._0x4ced04,_0x4ef3e5._0xcaee62,0x111,0x16f):return{..._0x54ecce,'toolCall':cloneToolCallForPublication(_0x54ecce[_0x199f83(0x19e,0x225,0x141,_0x4ef3e5._0x1cea0e)],_0x54ecce[_0x199f83(0x19e,0x17b,_0x4ef3e5._0x53b6a2,0x1d1)]['id'],_0x54ecce[_0x199f83(0x19e,0x21e,0x16c,_0x4ef3e5._0x4f3a66)]['name']),'result':cloneToolResultForPublication(_0x54ecce[_0xe16f55(_0x4ef3e5._0x35fdf8,_0x4ef3e5._0x3d4cb8,_0x4ef3e5._0x5cf3bd,0x23a)],_0x54ecce['toolCall']['id'],_0x54ecce[_0xe16f55(0x15d,0x182,_0x4ef3e5._0x312c76,_0x4ef3e5._0xa22567)][_0xe16f55(_0x4ef3e5._0xc0abbd,0x109,0xe6,_0x4ef3e5._0x56ad54)])};case _0xe16f55(_0x4ef3e5._0x385696,0x110,0x16f,0x112):return{..._0x54ecce,'result':cloneToolResultForPublication(_0x54ecce['result'],_0x54ecce[_0xe16f55(_0x4ef3e5._0x44236e,_0x4ef3e5._0x56ac5d,_0x4ef3e5._0x4ecc4e,0x148)][_0x199f83(0xe4,0x16d,0xe3,_0x4ef3e5._0x3bcda9)],_0x54ecce[_0xe16f55(0x1bb,0x1ac,0x125,_0x4ef3e5._0x13d452)][_0xe16f55(0x1a6,0x15d,0x17a,_0x4ef3e5._0x5edf89)])};default:return _0x54ecce;}}async function emitEvent(_0x59af70,_0x20af28,_0x10d415){try{await _0x59af70?.(cloneToolEventForPublication(_0x20af28),_0x10d415);}catch(_0x6b9db){throw new ToolRuntimeInfrastructureError(_0x6b9db);}}function actualCancellationHasPrecedence(_0x152dbf,_0x690ac6){const _0x246d03={_0x59c6d6:0x199,_0x42e8a4:0x1d7},_0x1d8a30={_0x26d3c6:0x11c,_0x29b0af:0x2f6,_0x5585aa:0x130};function _0x51c680(_0x65a95a,_0x9b3d48,_0x107735,_0xf20aa1){return _0x3f402d(_0x65a95a-_0x1d8a30._0x26d3c6,_0x107735- -_0x1d8a30._0x29b0af,_0x107735-_0x1d8a30._0x5585aa,_0xf20aa1);}function _0x7af85c(_0x3f5cb4,_0x27a6c2,_0xd80551,_0x525a98){return _0xf3454f(_0xd80551- -0x2d8,_0x27a6c2-0x190,_0x3f5cb4,_0x525a98-0x2b);}return _0x152dbf[_0x7af85c(-0x43,-0x57,-0x8a,-0x59)][_0x51c680(-0x170,-0x1c6,-_0x246d03._0x59c6d6,-_0x246d03._0x42e8a4)]&&!_0x690ac6;}function selectActualCancellationReason(_0x416b41,_0x2a71f1){const _0x5d7572={_0x44ef27:0xc8,_0x430ec2:0x154,_0x21997e:0xcd,_0x524dce:0x117,_0x3246c1:0x3bc,_0x4469ed:0x3c8},_0x2581db={_0x40e221:0x169,_0x3e0807:0xe,_0x1cc8ed:0x11},_0x53fb7f={_0x134cd2:0xaf,_0x3235df:0xd8,_0x35704:0x1e6};function _0x2a67bb(_0x4ba513,_0x469b95,_0x126494,_0x5b078f){return _0x3f402d(_0x4ba513-_0x53fb7f._0x134cd2,_0x5b078f- -_0x53fb7f._0x3235df,_0x126494-_0x53fb7f._0x35704,_0x469b95);}function _0x17085e(_0x47ffd2,_0x1f6b51,_0x8ccad7,_0x4cadf1){return _0xf3454f(_0x8ccad7-_0x2581db._0x40e221,_0x1f6b51-_0x2581db._0x3e0807,_0x4cadf1,_0x4cadf1-_0x2581db._0x1cc8ed);}return _0x416b41 instanceof ToolExecutionError&&_0x416b41[_0x2a67bb(_0x5d7572._0x44ef27,_0x5d7572._0x430ec2,_0x5d7572._0x21997e,_0x5d7572._0x524dce)][_0x17085e(_0x5d7572._0x3246c1,0x367,0x39c,_0x5d7572._0x4469ed)]===!![]?_0x416b41:_0x2a71f1;}function selectedTerminalStateHasPrecedence(_0x579f26,_0x47d411,_0xe7947d,_0x2bddc2){const _0x11f1c9={_0x4b4eb3:0xd2,_0x34cada:0xd5,_0x16bb5a:0x40,_0x179acd:0x22,_0x438302:0x28,_0x8afd2e:0x31,_0x51d72e:0x24,_0x3e3d3f:0xf1,_0x7f1a28:0x142,_0x53c7d9:0x8f,_0x34211a:0x12a,_0x2a6049:0x7f,_0x38025f:0xe5,_0x16e44e:0xd,_0xcdd043:0xb3,_0xd186b6:0x1c,_0x26ef9f:0x2f,_0x15df73:0x8a},_0x5ed68f={_0x307d1f:0xc8};if(_0x47d411['status']!==_0x4c5404(0x120,0x137,0x15b,0x121))return![];function _0x4c5404(_0x494099,_0x4e2ee6,_0x3b6242,_0x3a3d48){return _0xf3454f(_0x494099- -0x1f3,_0x4e2ee6-0x88,_0x3b6242,_0x3a3d48-_0x5ed68f._0x307d1f);}function _0x569dfd(_0x149af4,_0x1913fe,_0x1a7702,_0x783c17){return _0xf3454f(_0x149af4- -0x344,_0x1913fe-0x2b,_0x783c17,_0x783c17-0xc4);}if(!_0x2bddc2)return _0x47d411[_0x4c5404(_0x11f1c9._0x4b4eb3,0x110,0x104,_0x11f1c9._0x34cada)][_0x4c5404(_0x11f1c9._0x16bb5a,-0x4,_0x11f1c9._0x179acd,_0x11f1c9._0x438302)]===!![]&&actualCancellationHasPrecedence(_0xe7947d,_0x2bddc2);if(_0x579f26!=='Program')return![];return _0x47d411['structured'][_0x569dfd(-_0x11f1c9._0x8afd2e,0x6,-0x2d,-_0x11f1c9._0x51d72e)]===_0x569dfd(-_0x11f1c9._0x3e3d3f,-_0x11f1c9._0x7f1a28,-_0x11f1c9._0x53c7d9,-_0x11f1c9._0x34211a)||_0x47d411[_0x569dfd(-_0x11f1c9._0x2a6049,-0x10,-_0x11f1c9._0x38025f,-0x50)][_0x569dfd(-_0x11f1c9._0x8afd2e,-_0x11f1c9._0x16e44e,-_0x11f1c9._0xcdd043,-0xb4)]===_0x569dfd(-0x2b,0x36,-_0x11f1c9._0xd186b6,-0x54)||_0x47d411[_0x569dfd(-0x7f,-0xd6,0xa,-0x108)]['error']===_0x4c5404(_0x11f1c9._0x26ef9f,_0x11f1c9._0x15df73,0x85,0x18);}async function emitToolCompletedEventWithTerminalPrecedence(_0x4dd927,_0xb4e9b8,_0x524a48,_0x3d27fd,_0x2b197c,_0x1a54e8,_0x6d54a=![]){const _0x1da98e={_0x21dabf:0x4ee,_0x3c7980:0x4fb},_0x141ebf={_0x37fb11:0x2d7,_0x416608:0xe1};function _0x1c8723(_0x2184b6,_0x4724b0,_0x4f0198,_0x1e35e2){return _0x3f402d(_0x2184b6-0x10d,_0x2184b6-_0x141ebf._0x37fb11,_0x4f0198-_0x141ebf._0x416608,_0x4f0198);}try{await emitEvent(_0x4dd927,{'type':_0x1c8723(0x512,0x573,_0x1da98e._0x21dabf,_0x1da98e._0x3c7980),'toolCall':cloneToolCallForPublication(_0xb4e9b8,_0x524a48,_0x3d27fd),'result':_0x2b197c},_0x1a54e8);}catch(_0x56cfdf){if(!(_0x56cfdf instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x3d27fd,_0x2b197c,_0x1a54e8,_0x6d54a))throw _0x56cfdf;}}async function awaitWithAbort(_0x371176,_0x547990){const _0x554f71={_0x3055a2:0x38b,_0x391c30:0x549},_0x47cc4e={_0x5eda5e:0xde},_0x227604={_0x72de30:0x453,_0x31aae0:0x471},_0x4ef194={_0x9d303b:0x49b,_0x2136bd:0x4ac},_0x4d37c2={_0x22d4e2:0x22d},_0xc03afc={_0x5508cd:0xf3};let _0x207e01=()=>{};function _0xf1d8b2(_0x3f90bd,_0x2b4223,_0x1c4c98,_0x532af3){return _0xf3454f(_0x3f90bd-_0xc03afc._0x5508cd,_0x2b4223-0xbf,_0x1c4c98,_0x532af3-0x156);}let _0x100360;_0x547990&&(throwIfAborted(_0x547990),_0x100360=new Promise((_0x905b6e,_0x1a113c)=>{const _0x54f46f={_0x14ce8d:0xf6};function _0x2223b0(_0xa1e487,_0x527b77,_0x152857,_0x16c8d8){return _0x3519(_0x16c8d8- -_0x54f46f._0x14ce8d,_0x152857);}function _0x32c130(_0x50377e,_0x40e79f,_0x4458ff,_0x28c275){return _0x3519(_0x4458ff-_0x4d37c2._0x22d4e2,_0x28c275);}const _0x4cb697=()=>{const _0x266409={_0x3a29a1:0x25d};function _0x858562(_0xe0b8b9,_0x56572c,_0x5138bf,_0x29937b){return _0x3519(_0x29937b-_0x266409._0x3a29a1,_0x5138bf);}_0x1a113c(toAbortError(_0x547990[_0x858562(_0x4ef194._0x9d303b,_0x4ef194._0x2136bd,0x46a,0x4aa)]));};_0x547990[_0x32c130(0x45d,_0x227604._0x72de30,_0x227604._0x31aae0,0x3f7)](_0x32c130(0x389,0x3ad,0x405,0x409),_0x4cb697,{'once':!![]}),_0x207e01=()=>_0x547990[_0x32c130(0x3e9,0x410,0x3f0,0x402)]('abort',_0x4cb697);}));const _0x585b0f=Promise[_0xf1d8b2(0x3f0,0x3dd,_0x554f71._0x3055a2,0x408)]()['then'](()=>{return throwIfAborted(_0x547990),_0x371176();});function _0x4c6152(_0x5e6839,_0x3c482a,_0x347d57,_0x2ee273){return _0xf3454f(_0x2ee273-0x2d5,_0x3c482a-0x170,_0x347d57,_0x2ee273-_0x47cc4e._0x5eda5e);}try{return await(_0x100360?Promise[_0x4c6152(_0x554f71._0x391c30,0x579,0x5a4,0x54f)]([_0x585b0f,_0x100360]):_0x585b0f);}finally{_0x207e01();}}function createNestedCallAdmissionGate(){const _0x21eaa0={_0x52733b:0x1,_0xe73114:0x32,_0x26972c:0x557,_0x13366d:0x501},_0xf829bf={_0x2a1b8b:0x378};let _0x248ff0=0x1,_0xb7393a=![],_0x1f0368,_0x414e30=Promise['resolve']();const _0x59ae07=new Set(),_0x4fc485=_0x512964=>{!_0xb7393a&&(_0xb7393a=!![],_0x1f0368=_0x512964);for(const _0x9b44c2 of[..._0x59ae07]){_0x9b44c2();}};return{'register'(_0x3313f3){if(_0xb7393a)throw _0x1f0368;function _0x5bfee8(_0x2227cf,_0x2c2a4c,_0x3ae8d6,_0x313f1a){return _0x3519(_0x3ae8d6- -0x1cf,_0x2227cf);}if(_0x3313f3!==_0x248ff0){const _0x2d5bae=new Error(_0x5bfee8(-0x6a,_0x21eaa0._0x52733b,0x17,-_0x21eaa0._0xe73114)+_0x3313f3+_0x1a532c(_0x21eaa0._0x26972c,0x52a,0x4d9,0x59e)+_0x248ff0);_0x4fc485(_0x2d5bae);throw _0x2d5bae;}_0x248ff0+=0x1;function _0x1a532c(_0x52f364,_0x3335d7,_0x492168,_0x4e64ee){return _0x3519(_0x52f364-_0xf829bf._0x2a1b8b,_0x492168);}const _0x16ead6=_0x414e30;let _0x25cef8;_0x414e30=new Promise(_0x39060d=>{_0x25cef8=_0x39060d;});const _0x5b9c62=()=>{if(_0x25cef8===void 0x0)return;const _0x3acbb7=_0x25cef8;_0x25cef8=void 0x0,_0x59ae07['delete'](_0x5b9c62),_0x3acbb7();};return _0x59ae07[_0x1a532c(0x569,0x580,_0x21eaa0._0x13366d,0x55c)](_0x5b9c62),{async 'admit'(_0x23221b,_0x1f5cf4){try{await awaitWithAbort(()=>_0x16ead6,_0x1f5cf4);if(_0xb7393a)throw _0x1f0368;await _0x23221b();if(_0xb7393a)throw _0x1f0368;}catch(_0x5afa4e){_0x4fc485(_0x5afa4e);throw _0x5afa4e;}finally{_0x5b9c62();}},'fail'(_0x1e3c6e){_0x4fc485(_0x1e3c6e),_0x5b9c62();}};},'fail':_0x4fc485};}async function awaitRequiredPersistence(_0x11094f,_0x4ab527,_0x27bdf7){const _0x359889={_0x56ed8b:0x39f,_0x28a9a2:0x40a,_0x64411:0x116,_0x220f38:0xd7,_0x2cdd17:0xab},_0x19f4be={_0x169baf:0x143};await awaitWithAbort(()=>{const _0x8da957={_0x1dd3a8:0x154};function _0x20d1c1(_0x499842,_0x36aefe,_0x4f03d8,_0x1d0147){return _0x3519(_0x499842-_0x8da957._0x1dd3a8,_0x1d0147);}const _0x105891=Promise[_0x20d1c1(_0x359889._0x56ed8b,0x40e,0x353,_0x359889._0x28a9a2)]()[_0xedfb34(_0x359889._0x64411,_0x359889._0x220f38,0x116,_0x359889._0x2cdd17)](_0x11094f);function _0xedfb34(_0xe18fca,_0x488022,_0x54eb8c,_0x3c32c7){return _0x3519(_0x488022- -_0x19f4be._0x169baf,_0x54eb8c);}return _0x27bdf7(_0x105891),_0x105891;},_0x4ab527);}async function awaitUncancellableAfterAdmission(_0x146641,_0x3ba4ed){const _0x588ef6={_0x44fdaf:0xca,_0x342bee:0x146,_0x41c5dc:0x59,_0x1e433f:0x18,_0x2cc489:0x24,_0x54d25e:0x6f},_0x4f40d5={_0x846b08:0xc0,_0x293036:0x2ea},_0x1e9939={_0x427807:0x2d8,_0x25a079:0x18a};throwIfAborted(_0x3ba4ed);function _0x3aa969(_0x13220c,_0x2e79b2,_0x3a5320,_0x360317){return _0xf3454f(_0x360317- -_0x1e9939._0x427807,_0x2e79b2-_0x1e9939._0x25a079,_0x2e79b2,_0x360317-0x89);}function _0x1108bf(_0x41b32b,_0x88c81a,_0x58adbf,_0x3a3aa2){return _0x3f402d(_0x41b32b-_0x4f40d5._0x846b08,_0x88c81a- -_0x4f40d5._0x293036,_0x58adbf-0x173,_0x41b32b);}const _0x1e8ba7=()=>{};_0x3ba4ed[_0x1108bf(-0xc4,-_0x588ef6._0x44fdaf,-_0x588ef6._0x342bee,-_0x588ef6._0x41c5dc)](_0x3aa969(_0x588ef6._0x1e433f,-0x83,-0xd9,-0x4e),_0x1e8ba7,{'once':!![]});try{return throwIfAborted(_0x3ba4ed),await _0x146641();}finally{_0x3ba4ed[_0x3aa969(-0xdb,0x21,_0x588ef6._0x2cc489,-0x63)](_0x3aa969(-0x4b,-_0x588ef6._0x54d25e,-0x51,-0x4e),_0x1e8ba7);}}async function resolveDispatchDecision(_0xe79cd1,_0x27d741,_0x297cd1){const _0x5274fe={_0x2b4b9c:0x1cc,_0x57d2ce:0x17f,_0x5b75c5:0x1c3,_0x153976:0x1f1,_0x326864:0x206,_0x48fad7:0x1f0},_0x2f80a3={_0x53a78b:0x1d0,_0x47c392:0x149},_0x194f84={_0x2a387e:0x1d8,_0x251d84:0x10e};if(!_0xe79cd1)return{'action':_0x431a5d(-0x201,-_0x5274fe._0x2b4b9c,-_0x5274fe._0x57d2ce,-_0x5274fe._0x5b75c5)};function _0x267e77(_0x1b5ae8,_0x44dc8a,_0x569889,_0x42696f){return _0x3f402d(_0x1b5ae8-_0x194f84._0x2a387e,_0x44dc8a-0x9e,_0x569889-_0x194f84._0x251d84,_0x569889);}const _0x1b1921=await awaitWithAbort(()=>_0xe79cd1(_0x27d741,_0x297cd1),_0x297cd1[_0x431a5d(-_0x5274fe._0x153976,-0x186,-0x177,-_0x5274fe._0x326864)]);function _0x431a5d(_0x236465,_0x145bb5,_0x30464f,_0x56d648){return _0xf3454f(_0x236465- -0x43f,_0x145bb5-_0x2f80a3._0x53a78b,_0x145bb5,_0x56d648-_0x2f80a3._0x47c392);}return isDispatchDecision(_0x1b1921)?_0x1b1921:{'action':_0x267e77(0x197,0x206,0x180,_0x5274fe._0x48fad7)};}async function prepareNestedToolCall(_0x9c77ce,_0x3222cf,_0x2e9f1e,_0x30d3cf){const _0x59ac42={_0x386ade:0x1c5,_0x566c05:0x91};if(!_0x9c77ce)return _0x3222cf;const _0xba0921=await awaitWithAbort(()=>_0x9c77ce['runTransformers'](_0x34b5dc(0x511,0x4f9,0x5c1,0x562),_0x3222cf,_0x2e9f1e),_0x30d3cf);throwIfAborted(_0x30d3cf),await awaitWithAbort(()=>_0x9c77ce[_0x34b5dc(0x5ac,0x53a,0x53e,0x59a)]('beforeToolExecution',_0xba0921,_0x2e9f1e),_0x30d3cf);function _0x34b5dc(_0x351527,_0x16c0a1,_0x590e18,_0x2d337a){return _0xf3454f(_0x2d337a-0x332,_0x16c0a1-0x105,_0x590e18,_0x2d337a-0x1f0);}function _0xda051a(_0x47e9bf,_0x416d3b,_0x10e404,_0x227a95){return _0x3f402d(_0x47e9bf-_0x59ac42._0x386ade,_0x416d3b-_0x59ac42._0x566c05,_0x10e404-0x15d,_0x47e9bf);}return _0xba0921;}function _0xbcd2(){const _0x57a09a=['CMvHza','DgvYBwLUywW','Aw5WDxq','ywz0zxjnB2rLBfjLC3bVBNnL','CMvQzwn0','ywrKAxrPB25HBfbYB3bLCNrPzxm','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','B3v0Chv0sw5KzxG','C29YDa','y2H1BMS','zxHLy3v0Aw9Uu2nVCgu','ywn0Aw9U','CMvWB3j0zwrdB3n0q2fSBenVDw50','yxnRvxnLCG','C2vXDwvUy2u','C3vIywDLBNrszxbVCNq','C2vUzgvYqwDLBNrjza','Bwf4vg9Rzw5Z','y29UDgvUDf9KzwX0yq','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','BgLZDfrVB2Xty2HLBwfZ','Dg9VBe5HBwu','y29TCgXLDgvK','CMfUzg9T','Dg90ywXszwfZB25PBMDuB2TLBNm','ywnXDwLYzq','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','CMvHC29UAw5NtwvZC2fNzuLK','B25uB29Sq2fSBa','y2f0y2G','yMvMB3jLtw9KzwXszxf1zxn0','ywrTAxq','C3rHDhvZ','C3rYDwn0DxjLza','y29TBwL0vgvYBwLUywXtDgf0zq','ChjVDMLKzxi','BwvZC2fNzq','C3rYzwfTAw5N','C3rYAw5NAwz5','ywXS','DgHLBG','CMvXDwLYzwq','x3n5C3rLBvbYB21WDa','zgvWCW','oIbLEhbLy3rLzcbIB29SzwfU','Aw5JBhvKzxm','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','zxH0zxjUywXvC2fNzq','AxrLBxm','Bw9KzwXjzgvUDgL0Eq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','z2v0vg9VBhm','Dg9VBenHBgXqyxrO','CMvHC29UAw5Nx2nODw5R','y29TCgXLDgu','B25fDMvUDa','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','DxnHz2u','Dg9VBenHBgW','Dg9VBf9ZDgfYDgvK','Aw50zxjUywXmAwzLy3LJBgu','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','C3vIBwLZC2LVBG','zxn0Aw1HDgvKq29ZDa','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','oIbLEhbLy3rLzcbVyMPLy3q','oIbLEhbLy3rLzcbHCNjHEq','CNvUvhjHBNnMB3jTzxjZ','Dg9VBf91C2u','CNvUswq','Dg9VBhncEu5HBwu','zM9YrwfJAa','CMvXDwvZDa','DxnLCL9TzxnZywDL','C3vTBwfYEuLUzgv4','mJC1vNDuvNPQ','tMvZDgvKigjLzM9YzvrVB2XfEgvJDxrPB24GzxH0zw5ZAw9UCYbTDxn0ihbYzxnLCNzLihrOzsbJywXSieLeigfUzcbYzxf1zxn0zwqGBMfTzq','mJa1yMTMEvHo','BM93','zMLUywXFBwvZC2fNzq','y3vTDwXHDgL2zvvZywDL','ndyZmtC2A2DYtgfR','ywrKrxzLBNrmAxn0zw5LCG','iIbMB3iG','zMLUza','zgvSzxrL','zMfPBgvK','Dg9VBf91C2vFy2H1BMS','oIbLEhbLy3rLzcbUDw1Izxi','CMvZB2X2zq','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','CMvHC29U','CMvHC29UAw5Nx21LC3nHz2u','Bwv0CMLJCW','BMv4Da','mJDyC09Ntxq','CMvJB3jKvg9VBenHBgW','nJq5mZKWmfHACLfMCG','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','DhjHBNnPzw50sw5WDxq','CMvZDwX0','DhLWzq','A2LUza','DhjHy2u','ChjVz3jHBsbLEgvJDxrPB24GD2fZigfIB3j0zwq','Dg9VBf91C2vFzgvSDge','yxnZAxn0yw50x21LC3nHz2u','CMvJB3jKvg9VBfjLC3vSDa','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','Dg9VBf9JB21WBgv0zwq','CMvXDwvZDgvKtMfTzq','zxjYB3i','Dg9VBa','yMvNAw5qCM9NCMfTvhjHy2u','B2jZzxj2zxi','Dg9VBf91C2vFBwvZC2fNzq','mtC2nZuYmeDmCfztyG','ChjVz3jHBs10Aw1LB3v0','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','B3v0Chv0vg9Rzw5Z','zhjHAw5qzxjZAxn0zw5Jzq','Aw5WDxruB2TLBNm','B3v0Chv0','ChjVDMLKzxjFCMv0CNK','oIb1BMv4CgvJDgvKigzPzwXKici','ywz0zxjuB29SuMvZDwX0','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','Dg90ywXdB3n0vxnKvgLJA3m','zMLSDgvY','zxHLy3v0zq','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','zw50CMLLCW','zMfPBa','DhvYBLn0yxj0zwrbDa','AxntywzLsw50zwDLCG','tw9KzwXvC2fNzu92zxjMBg93rxjYB3i','y2HHDe1VzgvS','ChjPy2LUz1bYB3zPzgvYswq','y2XVC2u','C2XPy2u','CMvXDwvZDenVDw50','DhjHBNnMB3jTzxi','zgvMyxvSDe1LC3nHz2u','C3rYzwfT','ywXSu2v0DgXLza','CMv0DxjU','DhvYBKLUzgv4','ywz0zxjuDxjUq29TCgXLDgu','Dg90ywXpDxrWDxruB2TLBNm','DhvYBLvZywDL','y29UDgv4DfDPBMrVD0XPBwL0','C2L6zq','Dg90ywXjBNb1DfrVA2vUCW','zw5HyMXLza','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa','A2v5CW','y2fSBeLK','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','Dgv4Da','ChvZAa','B3jPz2LU','DMfSDwu','C3rHz2u','Bw9KzwXFCMvZCg9UC2u','C2vZC2LVBKrPCG','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','mJi5ntiWn1nHz3zZsq','zgvSDge','yMvMB3jLvg9VBev4zwn1DgLVBG','BwfW','Aw5KzxG','ywjVCNrLza','C3rYAw5N','C2vZC2LVBI0','C2vZC2LVBKLK','zxHLy3v0zunHBgXZ','Bw9KzwXuAw1Ltxm','C2v0vg9VBhm','yM9VBgvHBG','yxnZAxn0yw50x2nODw5R','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','Dw5RBM93BL90B29S','CNvU','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','oNjLyxnVBMLUzW','B2jQzwn0','zhjHAw5tDgvLCMLUzW','z2v0q29UDgv4DfDPBMrVD0XPBwL0','ywDLBNrjza','zw51Bq','CMvHC29UAw5Nq29TCgXLDgvKqxq','ChjVz3jHBs1PBNrLCM1LzgLHDgu','Dg9tDhjPBMC','Dg9VBfj1BNrPBwu','y29TCgXLDgvZuMvXDwvZDa','Dg9VBfjLC3vSDhm','C3rHDgu','C2LNBMfS','Bwv0ywrHDge','C3LZDgvT','zxzLCNK','sw52ywXPzcb0B29SigLUChv0igf0ia','ChjVz3jHBs1HyM9YDgvK','AxrLBuLK','y29VCMrPBMf0B3i','B3jKzxi','zNjLzxPL','iIbPCYbHBhjLywr5igvUywjSzwq','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','CMvWB3j0zwrdB3n0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DhvYBI0','yxnZAxn0yw50twvZC2fNzuLK','oIbLEhbLy3rLzcbVBMuGB2yG','oda1nZy4ANbyuw5K','CgvYBwLZC2LVBKnSyxnZ','Dg9VBf9JywXS','yMvMB3jLrMLUywXpDxrWDxq','BMfTzq','Dg9VBenHBgXjza','CMvZzxrnzxnZywDLCW','CNvUt2jZzxj2zxjZ','C2vUza','CMvHC29UAw5Nu3rHCNrLzef0','AxnbCNjHEq','Dg9VBf9Yzxn1Bhq','CMvJB3jKrxzLBNq','yw1VDw50vxnKvgLJA3m','C2v0q2HHDe1VzgvS','B25vC2vYtwvZC2fNzq','mK9zwLPesW','y29UDgvUDeLUzgv4','yxnZAxn0yw50','Bwv0yq','CMvTB3zLrxzLBNrmAxn0zw5LCG','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','yw55t2y','Bwf4','DhvYBKnVBxbSzxrLzef0','CMfJzq','Dg9VBf9YzwPLy3rLza','Dg90ywXuB2TLBNm','oIbLEhbLy3rLzcbZDhjPBMC','BwvZC2fNzxm','zxH0zw5ZAw9UCW','ywX3yxLZlwnVBMzPCM0','Aw5WDxrezwX0yq','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','Bw9KzwXdywXSCW','C3LZDgvTuhjVBxb0','Bw9KzwW','y2f1C2u','Bw9KzwXdywXSq291BNq','Aw5WDxrty2HLBwe','Dg9VBf9VDxrWDxrFy2H1BMS','ywjVCNq','y29UDgvUDa','CMvHC29UAw5Nvg9Rzw5Z','DhjPBq','CMvNAxn0CNK','ywz0zxjnzxnZywDLqxbWzw5K','oteZmJCWD3zTzNnQ','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','AgfZt3DU','ntGYntrQvMrYD0S','ywDLBNq','DgHPBMTPBMC','C29Tzq','AM9PBG','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','ChjVCgvYDgLLCW','Dg90ywXnB2rLBfrPBwvnCW','y2fWywjPBgL0AwvZ','DhvYBKLK','z2v0','yxjYyxK','CMvZCg9UC2u','BNvTyMvY','BgvUz3rO','ChjVDMLKzxjtDgf0zq','ywrK'];_0xbcd2=function(){return _0x57a09a;};return _0xbcd2();}function _0x3f402d(_0x4919a4,_0x2b792c,_0xe5c527,_0x39e3de){const _0x21b9da={_0x4ffc52:0x24};return _0x3519(_0x2b792c- -_0x21b9da._0x4ffc52,_0x39e3de);}async function transformNestedToolResult(_0x4b09ca,_0x3b1c44,_0x4ba05b,_0x51f52c){const _0x49aff6={_0x4bf70e:0x1f3,_0x473be0:0x181,_0x5ec443:0x2e};if(!_0x4b09ca)return _0x3b1c44;function _0x24b02d(_0x33252d,_0x640f30,_0x111356,_0x158ed6){return _0x3f402d(_0x33252d-_0x49aff6._0x4bf70e,_0x33252d-_0x49aff6._0x473be0,_0x111356-_0x49aff6._0x5ec443,_0x158ed6);}const _0x1a814f=await awaitWithAbort(()=>_0x4b09ca[_0x5e778e(0x502,0x575,0x588,0x557)](_0x24b02d(0x2b0,0x252,0x233,0x328),_0x3b1c44,_0x4ba05b),_0x51f52c);function _0x5e778e(_0x2b5223,_0x2af709,_0x5cf611,_0x440039){return _0x3f402d(_0x2b5223-0x18d,_0x5cf611-0x377,_0x5cf611-0x12a,_0x2af709);}return throwIfAborted(_0x51f52c),await awaitWithAbort(()=>_0x4b09ca[_0x24b02d(0x313,0x2a0,0x331,0x358)]('afterToolResult',_0x1a814f,_0x4ba05b),_0x51f52c),_0x1a814f;}function snapshotNestedToolRequest(_0x3f3d74){const _0x1ce90f={_0x5f5603:0x22f,_0x252225:0x1c9,_0x27055f:0x216,_0x1ce90d:0x380,_0x3a7ca7:0x161,_0x43eb5b:0x270,_0x317858:0x171,_0x2bf859:0x1ea,_0x3a3793:0x426,_0x26a248:0x411,_0x4502e1:0x3cf,_0x58fadf:0x480,_0x3db527:0x2a3,_0x2f3b73:0x219},_0x4d5439={_0x37b859:0x97},_0x1771bd={_0x5ea201:0xe},_0x388fd1=_0x3f3d74['requestedName'],_0x113bb4=_0x3f3d74['tool'],_0x11dc7f=_0x3f3d74[_0x799f92(0x262,_0x1ce90f._0x5f5603,_0x1ce90f._0x252225,_0x1ce90f._0x27055f)]['id'],_0x5ed6c7=structuredClone(_0x3f3d74[_0x214856(0x3f3,0x3e4,_0x1ce90f._0x1ce90d,0x388)]);function _0x799f92(_0x5ee628,_0x35de22,_0x3127d4,_0x561e98){return _0x3f402d(_0x5ee628-0x16e,_0x561e98-_0x1771bd._0x5ea201,_0x3127d4-0x20,_0x35de22);}function _0x214856(_0x38159c,_0x5a9dad,_0x13a3d1,_0x343c0b){return _0xf3454f(_0x5a9dad-0x106,_0x5a9dad-_0x4d5439._0x37b859,_0x38159c,_0x343c0b-0x156);}const _0x57c6bb=_0x3f3d74[_0x799f92(_0x1ce90f._0x3a7ca7,_0x1ce90f._0x43eb5b,_0x1ce90f._0x317858,_0x1ce90f._0x2bf859)],_0x14a551=_0x3f3d74[_0x214856(_0x1ce90f._0x3a3793,_0x1ce90f._0x26a248,_0x1ce90f._0x4502e1,_0x1ce90f._0x58fadf)];if(_0x5ed6c7['name']!==_0x388fd1||_0x113bb4!==void 0x0&&_0x113bb4['name']!==_0x388fd1)throw new Error(_0x799f92(_0x1ce90f._0x3db527,0x206,0x1ac,_0x1ce90f._0x2f3b73));return{'requestedName':_0x388fd1,'tool':_0x113bb4,'toolCall':_0x5ed6c7,'toolCallId':_0x11dc7f,'sequence':_0x57c6bb,'trace':_0x14a551};}function createImmutableExecutionScope(_0x282f68,_0x248013){const _0x9657aa={_0x126506:0x522},_0x1d7e44={_0x1e7ba8:0x1f,_0x19d794:0xca},_0x225edc={_0x1c2aff:0x1c3};function _0x3b260d(_0x50dc18,_0x465543,_0x7c2480,_0xcc8593){return _0xf3454f(_0x465543- -0x393,_0x465543-0x175,_0xcc8593,_0xcc8593-_0x225edc._0x1c2aff);}function _0x17f167(_0x37c286,_0x6ce7b3,_0x441a56,_0x98178){return _0x3f402d(_0x37c286-_0x1d7e44._0x1e7ba8,_0x37c286-0x3ea,_0x441a56-_0x1d7e44._0x19d794,_0x441a56);}return Object[_0x3b260d(-0x10c,-0x13c,-0x159,-0xe5)]({'agentId':_0x282f68,'toolCallPath':Object[_0x17f167(0x56b,0x50b,_0x9657aa._0x126506,0x5d3)]([..._0x248013])});}async function executeNestedToolRequest(_0x5a8d60,_0x41ceab,_0x447786,_0x21c61f,_0x33a913,_0x4f3f57,_0x25520c,_0x367220){const _0x490421={_0x165456:0x40e,_0x591587:0x3bd,_0x3f7b45:0x3ec,_0x2faaa8:0x6a,_0x5f1065:0x46,_0x358d46:0x40,_0x108f8a:0x47a,_0xd21d8e:0x4cf,_0x4dcf6c:0x40d,_0x55e5a6:0x3d6,_0x9ce59:0x105,_0x2e42e6:0xe5,_0x12f5f9:0x4b,_0x25f269:0x1a,_0x5e9ab6:0x95,_0x463a6e:0x43e,_0xb619ce:0x3b,_0x53c4ec:0x49,_0x47473b:0x4c9,_0x1d182c:0x4c5,_0x102a15:0x411,_0x3b64f2:0x472,_0x146d8c:0x482,_0x4bd79d:0x3f5,_0x1f552b:0x3d1,_0x146138:0x4ab,_0x108918:0x36,_0x3efaae:0x7e,_0x12a5c9:0x44,_0x3cbb7b:0x3dc,_0x1c6625:0xd0,_0x3dae71:0x92,_0x32ac9d:0x32,_0x24a6db:0x94,_0x5c73a7:0x3fe},_0x54205f={_0x125185:0x222,_0x1d46d4:0x102},_0x524685={_0x4f7991:0x15,_0x32f573:0xa,_0x35f51f:0x81,_0x326f3b:0x6f,_0x1eb4a7:0x9a,_0x359ff6:0x76,_0x25323c:0x26b},_0xc35a15={_0x35ed33:0x3a,_0x4444e0:0x471},_0x2eed32={_0x3a3b45:0x17e,_0x460eb3:0x1d9,_0x2a2671:0x1f3},_0x15c4df={'state':_0x41ceab[_0x46fa95(0x407,0x3c3,_0x490421._0x165456,_0x490421._0x591587)],'delivery':_0x46fa95(0x422,0x397,_0x490421._0x3f7b45,0x3b8),'executionScope':_0x447786};let _0x3f4c75;try{_0x3f4c75=await prepareNestedToolCall(_0x4f3f57[_0x55e61e(-0x22,-_0x490421._0x2faaa8,-_0x490421._0x5f1065,-_0x490421._0x358d46)],_0x5a8d60[_0x46fa95(_0x490421._0x108f8a,_0x490421._0xd21d8e,0x4b9,0x44e)],_0x15c4df,_0x21c61f);if(_0x3f4c75['id']!==_0x5a8d60[_0x46fa95(0x3d1,0x3cd,_0x490421._0x4dcf6c,_0x490421._0x55e5a6)]||_0x3f4c75[_0x55e61e(-_0x490421._0x9ce59,-0x93,-0x5a,-_0x490421._0x2e42e6)]!==_0x5a8d60[_0x55e61e(-_0x490421._0x12f5f9,_0x490421._0x25f269,_0x490421._0x5e9ab6,0x71)])throw new Error(_0x46fa95(0x422,0x3f7,_0x490421._0x463a6e,0x460));}catch(_0x14f4f7){_0x33a913['fail'](_0x14f4f7);throw _0x14f4f7;}const _0x5ac717={..._0x41ceab,'signal':_0x21c61f,'executionScope':_0x447786,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0},_0x4d8482=async(_0x51d1e4,_0xf688dc)=>{const _0x319f40={_0x25c413:0x113,_0x3c61e4:0x531};function _0x3c840c(_0x21a7bb,_0xd2a00a,_0x121fa9,_0x41b8df){return _0x46fa95(_0x21a7bb-0x4,_0x41b8df,_0x121fa9-_0x319f40._0x25c413,_0x21a7bb- -_0x319f40._0x3c61e4);}if(_0x21c61f[_0x3c840c(-0x18e,-_0x2eed32._0x3a3b45,-_0x2eed32._0x460eb3,-_0x2eed32._0x2a2671)])return;try{await awaitWithAbort(()=>_0x25520c?.(_0x51d1e4,_0xf688dc),_0x21c61f);}catch(_0x15cb81){if(!isAbortError(_0x15cb81)||!_0x21c61f['aborted'])throw _0x15cb81;}};await _0x33a913[_0x55e61e(-_0x490421._0xb619ce,-0x35,-_0x490421._0x53c4ec,-0x50)](async()=>{const _0x59aad9={_0x52d90a:0x57,_0x1af427:0xfb,_0x31ed84:0x21d};throwIfAborted(_0x21c61f);if(_0x5a8d60[_0x2fd6e4(-_0x524685._0x4f7991,0x43,_0x524685._0x32f573,-_0x524685._0x35f51f)]){const _0xfdbb40=_0x5a8d60[_0x2fd6e4(-0x52,0x26,_0x524685._0x32f573,_0x524685._0x326f3b)];await awaitRequiredPersistence(()=>_0xfdbb40[_0x108d5b(0x20b,0x2ba,0x21e,0x257)](_0x5a8d60[_0x2fd6e4(-0x36,-0xbc,-0x4f,-0xbb)],cloneToolCallForPublication(_0x3f4c75,_0x5a8d60[_0x2fd6e4(-0x23,-0x43,-0x9b,-0x8f)],_0x5a8d60[_0x2fd6e4(-0x62,-0xe,0x11,-0x64)])),_0x21c61f,_0x367220);}function _0x2fd6e4(_0x55223c,_0x140b99,_0x41ee91,_0x59d416){return _0x46fa95(_0x55223c-_0xc35a15._0x35ed33,_0x55223c,_0x41ee91-0x1f,_0x41ee91- -_0xc35a15._0x4444e0);}function _0x108d5b(_0x17adcb,_0x553ade,_0x21abfe,_0x4b7d33){return _0x46fa95(_0x17adcb-_0x59aad9._0x52d90a,_0x17adcb,_0x21abfe-_0x59aad9._0x1af427,_0x4b7d33- -_0x59aad9._0x31ed84);}await _0x4d8482({'type':'tool_call','toolCall':cloneToolCallForPublication(_0x3f4c75,_0x5a8d60[_0x2fd6e4(-_0x524685._0x1eb4a7,-_0x524685._0x359ff6,-0x9b,-0xa8)],_0x5a8d60[_0x108d5b(0x205,_0x524685._0x25323c,0x2e7,0x265)])},_0x5ac717),throwIfAborted(_0x21c61f);},_0x21c61f);const _0x436790=await executeCapturedToolCall(_0x5a8d60[_0x46fa95(0x3ff,0x4f1,_0x490421._0x47473b,0x484)],_0x3f4c75,_0x5a8d60['toolCallId'],_0x5a8d60[_0x46fa95(_0x490421._0x1d182c,_0x490421._0x102a15,_0x490421._0x3b64f2,_0x490421._0x146d8c)],_0x5ac717,_0x4f3f57,_0x4d8482);throwIfAborted(_0x21c61f);const _0x30c48d=await transformNestedToolResult(_0x4f3f57[_0x46fa95(_0x490421._0x4bd79d,0x3f7,_0x490421._0x1f552b,0x3fe)],_0x436790,_0x15c4df,_0x21c61f),_0x955dc9=cloneToolResultForPublication(_0x30c48d,_0x5a8d60['toolCallId'],_0x5a8d60[_0x46fa95(0x49e,_0x490421._0x146138,0x4f7,_0x490421._0x146d8c)]);throwIfAborted(_0x21c61f);if(_0x5a8d60[_0x55e61e(-_0x490421._0x108918,0x13,_0x490421._0x3efaae,-0x23)]){const _0x22db1e=_0x5a8d60[_0x55e61e(-0x33,0x13,_0x490421._0x12a5c9,-0x72)];await awaitRequiredPersistence(()=>_0x22db1e[_0x55e61e(-0x3,0x17,0xc,-0x23)](_0x5a8d60[_0x46fa95(0x497,0x493,0x430,0x422)],cloneToolResultForPublication(_0x955dc9,_0x5a8d60['toolCallId'],_0x5a8d60[_0x46fa95(0x4ec,0x4b6,0x45d,0x482)])),_0x21c61f,_0x367220);}function _0x46fa95(_0x106bbe,_0xb35550,_0x15e849,_0x3b39b8){return _0xf3454f(_0x3b39b8-0x170,_0xb35550-0x32,_0xb35550,_0x3b39b8-0x18);}await _0x4d8482({'type':_0x46fa95(0x40a,0x402,0x3e8,_0x490421._0x3cbb7b),'result':cloneToolResultForPublication(_0x955dc9,_0x5a8d60[_0x55e61e(-_0x490421._0x1c6625,-_0x490421._0x3dae71,-_0x490421._0x32ac9d,-_0x490421._0x24a6db)],_0x5a8d60[_0x46fa95(_0x490421._0x5c73a7,0x4ec,0x4cc,_0x490421._0x146d8c)])},_0x5ac717),throwIfAborted(_0x21c61f);function _0x55e61e(_0xdb4101,_0x52c6f7,_0x309bb9,_0x59c49f){return _0x3f402d(_0xdb4101-0x1ea,_0x52c6f7- -_0x54205f._0x125185,_0x309bb9-_0x54205f._0x1d46d4,_0xdb4101);}return _0x955dc9;}function createBoundToolExecutionControl(_0xc46cb4,_0x9130b6,_0x27fa7f,_0xf404ed){const _0x469a8a={_0x53c264:0x161,_0x1924e7:0x150,_0x4b3f5c:0x14e,_0x5d0d3f:0x540,_0x55d4d1:0x4d2,_0x1bd68d:0x472,_0x3a28b5:0x4d0,_0x4eb2bc:0x53b,_0xd36730:0x137,_0x12dc24:0xca,_0x41b252:0x562,_0x6f96f7:0x5a2,_0x2ab5b0:0x5c1},_0x466e9b={_0x1171b4:0x339},_0x52a020={_0x34cd03:0x28d},_0x1ec536={_0x385452:0x276,_0x2e0d2f:0x2ca},_0x13a2fb={_0x366339:0x49c,_0x1da525:0x463,_0x315834:0xc2,_0x2bcafc:0xf4,_0x56d939:0x50c,_0x11c3a2:0xfb,_0x2ec089:0x11c,_0x3becf7:0x4de,_0x43c14f:0xd4},_0x2df245={_0x1df7fa:0x179,_0x30cb8a:0x1c7},_0x5356cb={_0x240ab6:0x266,_0x2b505a:0x217,_0x1b6e1e:0x1d2,_0x41834c:0x1d1,_0xb6e38f:0x1cd},_0x4e697c={_0x3960a3:0x5},_0x4b197d={_0x1bd00f:0xd,_0xa7da41:0xd0,_0x2dfe59:0x9b,_0x2925d7:0xdd},_0x2c32b9={_0x280aac:0x161},_0x3d766a={_0x578388:0x174,_0x2a6e42:0x4bc,_0xf8c3a4:0x4ab,_0x50560f:0x4cc},_0x412098={_0x2740ed:0x1c5,_0x5beb5a:0x245,_0x11ef2d:0x2c6},_0x133b63=createImmutableExecutionScope(_0x9130b6[_0x4a217a(-_0x469a8a._0x53c264,-0x1a0,-_0x469a8a._0x1924e7,-_0x469a8a._0x4b3f5c)][_0x2f964f(_0x469a8a._0x5d0d3f,_0x469a8a._0x55d4d1,_0x469a8a._0x1bd68d,0x54b)],_0x9130b6[_0x2f964f(_0x469a8a._0x3a28b5,_0x469a8a._0x4eb2bc,0x4c1,0x5c3)][_0x4a217a(-_0x469a8a._0xd36730,-_0x469a8a._0x12dc24,-0x153,-0xb8)]),_0x52daee=new Set(),_0x1e405f=new Set(),_0x30f078=new AbortController(),_0xf23c65=createNestedCallAdmissionGate();let _0x629d79=![],_0x2fb497=![],_0x1b8572,_0x2dffe1=![],_0x3420df=()=>{};const _0x4ac607=_0x4fad87=>{function _0xd29e1(_0x202c0c,_0xc9d500,_0x2160fd,_0x2a6598){return _0x2f964f(_0x202c0c-0xcd,_0x2a6598-0x2d,_0xc9d500,_0x2a6598-0x6a);}if(_0x629d79)return;_0x629d79=!![];const _0x7cf680=toAbortError(_0x4fad87??PARENT_TOOL_SETTLED_MESSAGE);_0xf23c65[_0x4d5177(_0x412098._0x2740ed,0x18f,_0x412098._0x5beb5a,0x215)](_0x7cf680),_0x30f078[_0x4d5177(0x243,_0x412098._0x11ef2d,0x29d,0x1ce)](_0x7cf680);function _0x4d5177(_0x1510ae,_0x523fce,_0x17bc5a,_0x3d857c){return _0x2f964f(_0x1510ae-0x178,_0x1510ae- -0x2d4,_0x3d857c,_0x3d857c-0x11f);}for(const _0x206385 of _0x52daee){_0x206385['abort'](_0x7cf680);}_0x3420df();};_0x3420df=addAbortListener(_0x9130b6[_0x2f964f(0x490,0x4db,_0x469a8a._0x41b252,0x47d)],()=>{const _0x57ab2a={_0x25ab26:0x381,_0x2025c7:0x61};function _0x5555ac(_0x31b5db,_0x556939,_0x9ed0ae,_0x5545c6){return _0x2f964f(_0x31b5db-0x18,_0x556939- -_0x57ab2a._0x25ab26,_0x5545c6,_0x5545c6-_0x57ab2a._0x2025c7);}function _0x810bc7(_0x10e7c8,_0xb49cb7,_0x108882,_0x7ed2c6){return _0x2f964f(_0x10e7c8-0xfc,_0xb49cb7- -0xe1,_0x108882,_0x7ed2c6-0x78);}_0x4ac607(_0x9130b6[_0x5555ac(0x15d,0x15a,0xfd,_0x3d766a._0x578388)][_0x810bc7(_0x3d766a._0x2a6e42,_0x3d766a._0xf8c3a4,0x41d,_0x3d766a._0x50560f)]);});const _0x52dd5e=_0x51c324=>{const _0x1b6528={_0x212dff:0x367,_0x144906:0x21},_0x467e76={_0x5a3b53:0x28a,_0x230899:0x27d,_0x2e1c5a:0x2cc,_0x49e322:0x238};_0x1e405f[_0x59720c(-_0x4b197d._0x1bd00f,-_0x4b197d._0xa7da41,-0x54,-_0x4b197d._0x2dfe59)](_0x51c324);const _0x311621=()=>{const _0x2dd7c5={_0x4cebb9:0x1f0,_0x434f6f:0x2cf};function _0xdc254f(_0xcb1ed9,_0x46266d,_0x161a8c,_0x50e7f1){return _0x59720c(_0xcb1ed9-0xc4,_0x46266d,_0x161a8c-_0x2dd7c5._0x4cebb9,_0xcb1ed9-_0x2dd7c5._0x434f6f);}_0x1e405f[_0xdc254f(_0x467e76._0x5a3b53,_0x467e76._0x230899,_0x467e76._0x2e1c5a,_0x467e76._0x49e322)](_0x51c324);};function _0x59720c(_0x328905,_0x275207,_0x111d85,_0x193736){return _0x2f964f(_0x328905-_0x2c32b9._0x280aac,_0x193736- -0x5cb,_0x275207,_0x193736-0x5);}const _0x5da921=_0x4139e3=>{!_0x2fb497&&(_0x2fb497=!![],_0x1b8572=_0x4139e3),_0x311621();};function _0x31cf11(_0x159e57,_0x1fb098,_0x4518a3,_0x4f0fb7){return _0x4a217a(_0x1fb098-_0x1b6528._0x212dff,_0x4518a3,_0x4518a3-_0x1b6528._0x144906,_0x4f0fb7-0x133);}void _0x51c324[_0x59720c(-0x9f,-0xf9,-_0x4b197d._0x2925d7,-0x72)](_0x311621,_0x5da921);},_0x5b10fc=async()=>{const _0x197905={_0x188bef:0x36};function _0x25b7a4(_0x5bc036,_0x7cf570,_0x1fc276,_0x16aa96){return _0x4a217a(_0x16aa96-0x3c4,_0x5bc036,_0x1fc276-0x124,_0x16aa96-_0x4e697c._0x3960a3);}function _0x20ef19(_0x5e6c8c,_0x47e5ac,_0x159269,_0x5ce853){return _0x4a217a(_0x5e6c8c- -0x6,_0x5ce853,_0x159269-0xe6,_0x5ce853-_0x197905._0x188bef);}while(_0x1e405f[_0x20ef19(-0x1f6,-_0x5356cb._0x240ab6,-_0x5356cb._0x2b505a,-_0x5356cb._0x1b6e1e)]>0x0){await Promise[_0x25b7a4(0x201,0x22d,_0x5356cb._0x41834c,_0x5356cb._0xb6e38f)]([..._0x1e405f]);}if(_0x2fb497)throw _0x1b8572;},_0x16c75e=async _0x12720e=>{const _0x334a6c={_0x413989:0x36a,_0x1440a1:0x31d,_0x36eafb:0x32b,_0x198836:0x34a},_0x45a26e={_0x1d44d0:0x3},_0x10ae6c={_0x5b6bcb:0x1ae,_0x2d85d6:0x16c};if(_0x629d79)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x15cdce(_0x4eb144,_0x475d10,_0x37869a,_0x584275){return _0x2f964f(_0x4eb144-_0x10ae6c._0x5b6bcb,_0x584275- -0x633,_0x475d10,_0x584275-_0x10ae6c._0x2d85d6);}let _0x518108;try{_0x518108=snapshotNestedToolRequest(_0x12720e);}catch(_0x390340){_0xf23c65[_0x9cbe35(_0x13a2fb._0x366339,_0x13a2fb._0x1da525,0x44e,0x4b0)](_0x390340);throw _0x390340;}const _0x381e86=_0xf23c65['register'](_0x518108[_0x15cdce(-0x86,-0x7f,-_0x13a2fb._0x315834,-_0x13a2fb._0x2bcafc)]),_0x3f17b9=createImmutableExecutionScope(_0x133b63[_0x9cbe35(0x4d5,0x4fe,_0x13a2fb._0x56d939,0x505)],[..._0x133b63[_0x15cdce(-0xd9,-0x104,-0x95,-0xce)],_0xc46cb4]),_0x3dea47=new AbortController();_0x52daee[_0x9cbe35(0x533,0x4cb,0x4e8,0x4ec)](_0x3dea47);_0x629d79&&_0x3dea47[_0x15cdce(-0xeb,-0x13a,-_0x13a2fb._0x11c3a2,-_0x13a2fb._0x2ec089)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x4f9404=executeNestedToolRequest(_0x518108,_0x9130b6,_0x3f17b9,_0x3dea47[_0x9cbe35(_0x13a2fb._0x3becf7,0x49d,0x4b2,0x563)],_0x381e86,_0x27fa7f,_0xf404ed,_0x52dd5e);function _0x9cbe35(_0x3edc9a,_0x1bb842,_0x78d319,_0x3881da){return _0x4a217a(_0x3edc9a-0x69f,_0x3881da,_0x78d319-_0x2df245._0x1df7fa,_0x3881da-_0x2df245._0x30cb8a);}const _0x204056=()=>{function _0x2d33ae(_0x2a5a76,_0x1b2407,_0x164f5d,_0x29aff2){return _0x9cbe35(_0x164f5d- -0x25e,_0x1b2407-0x26,_0x164f5d-_0x45a26e._0x1d44d0,_0x29aff2);}_0x52daee[_0x2d33ae(_0x334a6c._0x413989,_0x334a6c._0x1440a1,_0x334a6c._0x36eafb,_0x334a6c._0x198836)](_0x3dea47);};return void _0x4f9404[_0x15cdce(-0x52,-_0x13a2fb._0x43c14f,-0x160,-0xda)](_0x204056,_0x204056),await awaitWithAbort(()=>_0x4f9404,_0x30f078[_0x9cbe35(0x4de,0x56c,0x538,0x54a)]);},_0x41f2a1={'executeNestedTool':_0x16c75e},_0x14fab9=_0x27fa7f[_0x2f964f(0x51c,0x5a2,0x5ef,0x557)];_0x14fab9&&(_0x41f2a1[_0x2f964f(0x621,_0x469a8a._0x6f96f7,0x5da,_0x469a8a._0x2ab5b0)]=async()=>{const _0x95bfb0={_0x5d68ac:0x1c7,_0xa22e52:0x163},_0x514a91={_0x27a127:0xe0};if(_0x629d79)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x33c097(_0x55ac4d,_0x3aa762,_0x2e24d3,_0x30d66f){return _0x2f964f(_0x55ac4d-0x119,_0x3aa762- -0x62f,_0x30d66f,_0x30d66f-_0x514a91._0x27a127);}function _0x34f50f(_0x1b4c08,_0x2aec9a,_0x40e6b5,_0x320b2d){return _0x2f964f(_0x1b4c08-_0x95bfb0._0x5d68ac,_0x1b4c08- -0x265,_0x40e6b5,_0x320b2d-_0x95bfb0._0xa22e52);}return await awaitUncancellableAfterAdmission(()=>_0x14fab9({'executionScope':createImmutableExecutionScope(_0x133b63[_0x34f50f(0x26d,0x27f,0x2b1,0x28e)],_0x133b63[_0x33c097(-0x5d,-0xca,-0xc3,-0x151)]),'programToolCallId':_0xc46cb4}),_0x30f078[_0x34f50f(_0x1ec536._0x385452,_0x1ec536._0x2e0d2f,0x258,0x2c5)]);});const _0x18b267=()=>{_0x2dffe1=!![],_0x4ac607();},_0xb5245f=()=>_0x2dffe1;function _0x2f964f(_0x568a0a,_0x484f40,_0xcd4965,_0xb036bf){return _0xf3454f(_0x484f40-_0x52a020._0x34cd03,_0x484f40-0xf4,_0xcd4965,_0xb036bf-0x1ee);}function _0x4a217a(_0x338e63,_0x5c77db,_0x4ee94c,_0x5a82bc){return _0x3f402d(_0x338e63-0x43,_0x338e63- -_0x466e9b._0x1171b4,_0x4ee94c-0x10d,_0x5c77db);}const _0x14dc67={'capabilities':_0x41f2a1,'close':_0x4ac607,'commitTerminalState':_0x18b267,'drainPersistence':_0x5b10fc,'isTerminalStateCommitted':_0xb5245f};return boundNestedExecutionControls['set'](_0x16c75e,_0x14dc67),_0x14dc67;}async function executeCapturedToolCall(_0x472202,_0x16404c,_0x18e1b9,_0x31b30a,_0x22efa5,_0x5a9503,_0x159b1b=_0x5a9503[_0x3f402d(0x222,0x205,0x20f,0x23b)]){const _0x1b573f={_0xc05874:0x7,_0x4c6b8c:0x4f,_0x18a4ab:0x5d,_0x5c0ee1:0x114,_0x4948b7:0x14c,_0x26f202:0x151,_0x227d48:0x6c,_0x5ceecd:0xaa,_0x3fd0d0:0x4c,_0x7b9e36:0xa0,_0x549659:0xcb,_0x81424b:0xa,_0x281b80:0xbc},_0x557d87={_0xd69c67:0xa},_0x49f6fc={_0x38409d:0x17f,_0x5caaaa:0xbe},_0x595771={..._0x22efa5,'toolCallId':_0x18e1b9,'permissionClass':resolveToolPermissionClass(_0x472202),'executionAuthorization':void 0x0};if(_0x595771[_0x3ee4a8(-_0x1b573f._0xc05874,-_0x1b573f._0x4c6b8c,0xc,-_0x1b573f._0x18a4ab)][_0x292abe(-_0x1b573f._0x5c0ee1,-_0x1b573f._0x4948b7,-_0x1b573f._0x26f202,-0x129)]){const _0x2def3e=createAbortedToolResult(_0x18e1b9,_0x31b30a,_0x595771[_0x3ee4a8(-0x7,_0x1b573f._0x227d48,-0x34,0x33)][_0x3ee4a8(_0x1b573f._0x5ceecd,0x95,0xb3,_0x1b573f._0x3fd0d0)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x159b1b,_0x16404c,_0x18e1b9,_0x31b30a,_0x2def3e,_0x595771),_0x2def3e;}function _0x3ee4a8(_0x1f0c37,_0xce1d36,_0x8170b5,_0x2292f7){return _0x3f402d(_0x1f0c37-0x177,_0x1f0c37- -_0x49f6fc._0x38409d,_0x8170b5-_0x49f6fc._0x5caaaa,_0x8170b5);}let _0x275b3a;try{_0x275b3a=_0x472202?.[_0x3ee4a8(0x8b,0x5b,_0x1b573f._0x7b9e36,0xd1)]?.[_0x3ee4a8(0x68,0x69,_0x1b573f._0x549659,_0x1b573f._0x81424b)]();}catch(_0x350145){const _0x40ed7a=isAbortError(_0x350145);let _0xac3bdc;if(_0x40ed7a)_0xac3bdc=createAbortedToolResult(_0x18e1b9,_0x31b30a,_0x350145);else{const {errorMessage:_0xb87cd9,structured:_0x5e90e6}=normalizeExecutionError(_0x350145);_0xac3bdc=createErrorToolResult(_0x18e1b9,_0x31b30a,_0xb87cd9,_0x5e90e6);}return _0x40ed7a?await emitToolCompletedEventWithTerminalPrecedence(_0x159b1b,_0x16404c,_0x18e1b9,_0x31b30a,_0xac3bdc,_0x595771):await emitEvent(_0x159b1b,{'type':_0x3ee4a8(_0x1b573f._0x281b80,0x83,0x127,0x11b),'toolCall':cloneToolCallForPublication(_0x16404c,_0x18e1b9,_0x31b30a),'result':_0xac3bdc},_0x595771),_0xac3bdc;}function _0x292abe(_0x1d9a13,_0x4da273,_0x43e64b,_0x4dd1ab){return _0xf3454f(_0x43e64b- -0x384,_0x4da273-_0x557d87._0xd69c67,_0x1d9a13,_0x4dd1ab-0x1f2);}try{return await executeAcquiredToolCall(_0x472202,_0x16404c,_0x18e1b9,_0x31b30a,_0x22efa5,_0x5a9503,_0x159b1b);}finally{_0x275b3a?.();}}async function executeAcquiredToolCall(_0x40835e,_0xaafac8,_0x709834,_0x235867,_0x1e94d6,_0x1db3ee,_0x323261){const _0x1c958d={_0x3a3936:0x1a2,_0x1d0bd2:0xa2,_0x3595f8:0x97,_0x3474a4:0x81,_0xef13eb:0x5a,_0x4a560d:0x16f,_0x2dd22f:0x109,_0xf14572:0x1f7,_0x34c643:0x1ab,_0x24b5d5:0xdc,_0x12ccd2:0x162,_0x3644af:0x155,_0x5689a3:0x237,_0x51bc53:0x195,_0x2becd7:0x22a,_0x91bdb7:0x1,_0x217428:0x78,_0x3e9447:0xc,_0x460d41:0x8b,_0x4acc9d:0xe0,_0x262dc9:0x17,_0x48af63:0x30,_0x335579:0x58,_0x35d068:0x177,_0x3e5fa9:0xda,_0x5b935c:0x145,_0x765b36:0x15d,_0xd18f72:0xec,_0x20d90a:0x10c,_0x17c048:0x199,_0x3f9a1e:0x109,_0x4ec59c:0x184,_0x30cf13:0x1b4,_0x4fed46:0x151,_0x5e9636:0x12b,_0x55f569:0x137,_0x3611d9:0x142,_0x429002:0x55,_0x17624a:0x1a,_0x50a024:0x16c,_0x11c1db:0x1ff,_0xacdc2:0x1fb,_0x44076a:0xb3,_0x3dc78a:0x205,_0x3f2975:0x16c,_0xe29c19:0x151,_0x2ae3ab:0xa6,_0x272969:0x7b,_0x11ab19:0x1e2,_0x2011da:0x205,_0x1aa227:0x17d,_0x1d7996:0x14e,_0x25cbe6:0x10d,_0x459df6:0x1d4,_0x1051b0:0x1ca,_0x534495:0x138,_0x5de605:0x154,_0x7ccbfb:0xe1,_0x3588b5:0xe6,_0x2cb2a8:0x12,_0x358699:0xc9,_0x4867dc:0x128,_0x3a4e3d:0xd8,_0x4ddcce:0x1e,_0x392faa:0x260,_0x49e993:0x241,_0x2a1f18:0x2c6,_0x4fa8c1:0x14e,_0x527b2b:0x152,_0x4773a1:0x191},_0x34a5a5={_0x4089c0:0x549,_0x1559a2:0x46f,_0x5da0e5:0x459,_0x479680:0xc1,_0x355baf:0xda},_0x1ea270={_0x51fda0:0x29,_0x2b0c67:0x1d0,_0x1aa040:0x253},_0x4ff44d={_0x3f4fbc:0x37d,_0x507392:0x7b},_0x17d4d4={_0x388b5e:0x357,_0x149fda:0x1e1,_0x7e9c2f:0x1e0};function _0x5c3d5e(_0x39f108,_0x216a0c,_0x365646,_0x512be0){return _0xf3454f(_0x365646- -_0x17d4d4._0x388b5e,_0x216a0c-_0x17d4d4._0x149fda,_0x216a0c,_0x512be0-_0x17d4d4._0x7e9c2f);}const _0x5d77d8={..._0x1e94d6,'toolCallId':_0x709834,'permissionClass':resolveToolPermissionClass(_0x40835e),'executionAuthorization':void 0x0};throwIfAborted(_0x5d77d8[_0x4ca0e1(-_0x1c958d._0x3a3936,-0x1c6,-0x205,-0x224)]);let _0x4f329b;function _0x4ca0e1(_0x2a1d0b,_0x1e61b6,_0x2d442b,_0xe8e16a){return _0x3f402d(_0x2a1d0b-0x144,_0x2d442b- -_0x4ff44d._0x3f4fbc,_0x2d442b-_0x4ff44d._0x507392,_0xe8e16a);}try{_0x4f329b=await resolveDispatchDecision(_0x1db3ee[_0x5c3d5e(-_0x1c958d._0x1d0bd2,-0x7a,-_0x1c958d._0x3595f8,-0xef)],_0xaafac8,_0x5d77d8);}catch(_0x2fd5ad){if(isAbortError(_0x2fd5ad)){const _0x4d6c48=createAbortedToolResult(_0x709834,_0x235867,_0x2fd5ad);return await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x4d6c48,_0x5d77d8),_0x4d6c48;}const {errorMessage:_0x1ad411,structured:_0x10d4f2}=normalizeExecutionError(_0x2fd5ad),_0x34612e=createErrorToolResult(_0x709834,_0x235867,_0x1ad411,_0x10d4f2);return await emitEvent(_0x323261,{'type':_0x5c3d5e(-_0x1c958d._0x3474a4,-_0x1c958d._0xef13eb,-0x46,-0x44),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0x34612e},_0x5d77d8),_0x34612e;}throwIfAborted(_0x5d77d8[_0x5c3d5e(-_0x1c958d._0x4a560d,-0x16b,-_0x1c958d._0x2dd22f,-0xea)]);if(_0x4f329b[_0x4ca0e1(-_0x1c958d._0xf14572,-0x1a0,-0x1a4,-0x204)]===_0x4ca0e1(-0x11f,-0x139,-_0x1c958d._0x34c643,-0x205)){const _0x4b7a4b=createRejectedToolResult(_0x709834,_0x235867,_0x4f329b['reason']);return await emitEvent(_0x323261,{'type':_0x5c3d5e(-0xa5,-0xbe,-_0x1c958d._0x24b5d5,-0x59),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0x4b7a4b},_0x5d77d8),_0x4b7a4b;}if(!_0x40835e){const _0xf80c8a=createUnknownToolResult(_0x709834,_0x235867);return await emitEvent(_0x323261,{'type':_0x4ca0e1(-_0x1c958d._0x12ccd2,-0x1b9,-0x142,-0x108),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0xf80c8a},_0x5d77d8),_0xf80c8a;}const _0x40d78b=createBoundToolExecutionControl(_0x709834,_0x5d77d8,_0x1db3ee,_0x323261),_0x1acdc1={..._0x5d77d8,'executionAuthorization':_0x4f329b[_0x4ca0e1(-0xec,-0xec,-_0x1c958d._0x3644af,-0x102)],..._0x40d78b[_0x4ca0e1(-_0x1c958d._0x5689a3,-0x12a,-0x1b8,-_0x1c958d._0x51bc53)]};throwIfAborted(_0x1acdc1[_0x4ca0e1(-0x264,-_0x1c958d._0x2becd7,-0x205,-0x1ec)]);try{await emitEvent(_0x323261,{'type':_0x5c3d5e(-0xb8,_0x1c958d._0x91bdb7,-_0x1c958d._0x217428,_0x1c958d._0x3e9447),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867)},_0x1acdc1);}catch(_0x4c3354){const _0x4e3b93=_0x40d78b[_0x5c3d5e(-0x14,-_0x1c958d._0x460d41,-0x7b,-_0x1c958d._0x4acc9d)]();if(actualCancellationHasPrecedence(_0x1acdc1,_0x4e3b93)){const _0x3ace55=selectActualCancellationReason(_0x4c3354,_0x1acdc1['signal'][_0x5c3d5e(_0x1c958d._0x262dc9,_0x1c958d._0x48af63,-_0x1c958d._0x335579,0x6)]),_0x19ffd1=createAbortedToolResult(_0x709834,_0x235867,_0x3ace55);return _0x40d78b[_0x5c3d5e(-_0x1c958d._0x35d068,-_0x1c958d._0x3e5fa9,-_0x1c958d._0x5b935c,-_0x1c958d._0x765b36)](_0x3ace55),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x19ffd1,_0x1acdc1,_0x4e3b93),_0x19ffd1;}_0x40d78b[_0x5c3d5e(-_0x1c958d._0xd18f72,-_0x1c958d._0x20d90a,-0x145,-_0x1c958d._0x17c048)](_0x4c3354);throw _0x4c3354;}try{throwIfAborted(_0x1acdc1[_0x5c3d5e(-0x177,-0x10b,-_0x1c958d._0x3f9a1e,-_0x1c958d._0x4ec59c)]);const _0x5f1d5c=validateToolInput(_0xaafac8[_0x4ca0e1(-0x1c2,-_0x1c958d._0x30cf13,-0x1ad,-0x22a)],_0x40835e[_0x5c3d5e(-_0x1c958d._0x4fed46,-0x109,-0xcf,-_0x1c958d._0x5e9636)]),_0x1fee10=await _0x40835e[_0x5c3d5e(-_0x1c958d._0x55f569,-0x1a3,-0x14e,-_0x1c958d._0x3611d9)](_0x5f1d5c,_0x1acdc1),_0x371b1c=[],_0x969ae2=addAbortListener(_0x1acdc1[_0x5c3d5e(-0x18c,-0x10f,-0x109,-_0x1c958d._0x4a560d)],()=>{const _0x3e3203={_0x5adbfe:0x1ad};function _0x2f91be(_0xfad6ad,_0x34e9b7,_0xe54619,_0x251698){return _0x4ca0e1(_0xfad6ad-_0x1ea270._0x51fda0,_0x34e9b7-_0x1ea270._0x2b0c67,_0xfad6ad-_0x1ea270._0x1aa040,_0x251698);}function _0x38f331(_0x4de45f,_0x3519c1,_0x3041fb,_0x509976){return _0x5c3d5e(_0x4de45f-_0x3e3203._0x5adbfe,_0x4de45f,_0x3519c1-0x5d3,_0x509976-0x79);}!_0x40d78b[_0x38f331(_0x34a5a5._0x4089c0,0x558,0x536,0x501)]()&&void _0x1fee10[_0x38f331(_0x34a5a5._0x1559a2,0x495,0x4ad,_0x34a5a5._0x5da0e5)](void 0x0)[_0x2f91be(_0x34a5a5._0x479680,0x34,_0x34a5a5._0x355baf,0x9f)](()=>{});});try{throwIfAborted(_0x1acdc1['signal']);let _0x480b28=await _0x1fee10[_0x5c3d5e(0x19,-_0x1c958d._0x3e5fa9,-_0x1c958d._0x429002,_0x1c958d._0x17624a)]();while(!_0x480b28['done']){throwIfAborted(_0x1acdc1[_0x5c3d5e(-0x18d,-_0x1c958d._0x50a024,-_0x1c958d._0x2dd22f,-0xdb)]);const _0x28c029=normalizeToolOutputValue(_0x480b28[_0x4ca0e1(-0x24d,-_0x1c958d._0x11c1db,-0x22a,-_0x1c958d._0xacdc2)]);_0x371b1c['push'](_0x28c029),await emitEvent(_0x323261,{'type':_0x5c3d5e(-0x85,-_0x1c958d._0x44076a,-0xce,-0x123),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'chunk':_0x28c029},_0x1acdc1),throwIfAborted(_0x1acdc1[_0x4ca0e1(-0x26d,-0x267,-_0x1c958d._0x3dc78a,-0x25c)]),_0x480b28=await _0x1fee10[_0x4ca0e1(-0x156,-_0x1c958d._0x3f2975,-_0x1c958d._0xe29c19,-0x159)]();}!_0x40d78b[_0x5c3d5e(-0x7b,-_0x1c958d._0x2ae3ab,-_0x1c958d._0x272969,-0xa7)]()&&throwIfAborted(_0x1acdc1[_0x4ca0e1(-_0x1c958d._0x11ab19,-0x1b7,-_0x1c958d._0x2011da,-_0x1c958d._0x1aa227)]);const _0x11e277=_0x480b28['value']===void 0x0?deriveFinalToolOutput(_0x371b1c):normalizeToolOutputValue(_0x480b28[_0x4ca0e1(-0x213,-_0x1c958d._0x30cf13,-0x22a,-0x297)]),_0xda31aa=createSuccessToolResult(_0x709834,_0x235867,_0x11e277,_0x371b1c);return _0x40d78b[_0x5c3d5e(-_0x1c958d._0x1d7996,-0xcf,-0x145,-0x1ce)](),await emitEvent(_0x323261,{'type':_0x4ca0e1(-_0x1c958d._0x25cbe6,-0xf9,-_0x1c958d._0x3611d9,-0x151),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0xda31aa},_0x1acdc1),_0xda31aa;}catch(_0x368072){const _0x530707=_0x40d78b[_0x5c3d5e(-0x55,-0xca,-0x7b,-0xcb)](),_0x5a242b=actualCancellationHasPrecedence(_0x1acdc1,_0x530707);if(_0x5a242b||isAbortError(_0x368072)){const _0x5ea5b6=_0x5a242b?selectActualCancellationReason(_0x368072,_0x1acdc1[_0x4ca0e1(-0x23b,-_0x1c958d._0x459df6,-0x205,-_0x1c958d._0x1051b0)][_0x4ca0e1(-0x110,-_0x1c958d._0x534495,-_0x1c958d._0x5de605,-0x12e)]):_0x368072,_0x190988=createAbortedToolResult(_0x709834,_0x235867,_0x5ea5b6,_0x371b1c);return _0x40d78b['close'](_0x5ea5b6),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x190988,_0x1acdc1,_0x530707),_0x190988;}if(_0x368072 instanceof ToolRuntimeInfrastructureError)throw _0x368072;const {errorMessage:_0x2b6cf0,structured:_0x67ccb2}=normalizeExecutionError(_0x368072),_0x398fad=createErrorToolResult(_0x709834,_0x235867,_0x2b6cf0,_0x67ccb2,_0x371b1c);return _0x40d78b[_0x5c3d5e(-0x1a6,-_0x1c958d._0x7ccbfb,-0x145,-0x183)](_0x368072),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x398fad,_0x1acdc1,_0x40d78b[_0x5c3d5e(-_0x1c958d._0x3588b5,_0x1c958d._0x2cb2a8,-0x7b,-_0x1c958d._0x358699)]()),_0x398fad;}finally{_0x969ae2();}}catch(_0x3d85dc){const _0x537fe1=_0x40d78b['isTerminalStateCommitted'](),_0x51c91d=actualCancellationHasPrecedence(_0x1acdc1,_0x537fe1);if(_0x51c91d||isAbortError(_0x3d85dc)){const _0x550086=_0x51c91d?selectActualCancellationReason(_0x3d85dc,_0x1acdc1[_0x5c3d5e(-0x195,-0xa1,-0x109,-_0x1c958d._0x4867dc)][_0x5c3d5e(-0x21,-_0x1c958d._0x3a4e3d,-0x58,_0x1c958d._0x4ddcce)]):_0x3d85dc,_0x585805=createAbortedToolResult(_0x709834,_0x235867,_0x550086);return _0x40d78b[_0x4ca0e1(-0x1fe,-_0x1c958d._0x392faa,-0x241,-0x2bb)](_0x550086),await emitToolCompletedEventWithTerminalPrecedence(_0x323261,_0xaafac8,_0x709834,_0x235867,_0x585805,_0x1acdc1,_0x537fe1),_0x585805;}if(_0x3d85dc instanceof ToolRuntimeInfrastructureError)throw _0x3d85dc;const {errorMessage:_0x22a24a,structured:_0x4af3da}=normalizeExecutionError(_0x3d85dc),_0x401129=createErrorToolResult(_0x709834,_0x235867,_0x22a24a,_0x4af3da);return _0x40d78b[_0x4ca0e1(-0x1ce,-0x289,-_0x1c958d._0x49e993,-_0x1c958d._0x2a1f18)](_0x3d85dc),await emitEvent(_0x323261,{'type':_0x4ca0e1(-_0x1c958d._0x4fa8c1,-_0x1c958d._0x527b2b,-0x142,-_0x1c958d._0x4773a1),'toolCall':cloneToolCallForPublication(_0xaafac8,_0x709834,_0x235867),'result':_0x401129},_0x1acdc1),_0x401129;}finally{_0x40d78b[_0x5c3d5e(-0x169,-0x189,-0x145,-0x198)]();}}async function executeRegisteredToolCall(_0x25ea03,_0x583f14,_0x432ac2,_0x5871bc){const _0x22e9b0=_0x583f14['id'],_0x9f433c=_0x583f14['name'],_0x3d9053=_0x25ea03['get'](_0x9f433c);return await executeCapturedToolCall(_0x3d9053,_0x583f14,_0x22e9b0,_0x9f433c,_0x432ac2,_0x5871bc);}function createInternalToolRuntime(_0x44cde9=[],_0x43dd5c={}){const _0x3cbf32={_0x1ca28d:0x484},_0xc8326d={_0x86c0e5:0x2ff},_0x34b252={_0x8c2fb8:0x1c1,_0xad9c09:0xba},_0x38bb67={_0x9bba94:0xc5},_0x236cce={_0x52aa82:0x9};let _0x257261=new ToolRegistry(_0x44cde9);return{'listToolSchemas'(){function _0x461764(_0x26f564,_0x401cb3,_0x479a23,_0x18211d){return _0x3519(_0x26f564- -0x251,_0x479a23);}return _0x257261[_0x461764(-0x4b,-0x38,-0x6a,_0x236cce._0x52aa82)]();},'setTools'(_0x3aa0b9){_0x257261=new ToolRegistry(_0x3aa0b9);},async 'executeCalls'(_0x30aeb9,_0x3af1b6){function _0x5042f2(_0x2665ab,_0x1a4e4a,_0x5c121a,_0x5de270){return _0x3519(_0x2665ab- -_0x38bb67._0x9bba94,_0x1a4e4a);}function _0x28ef63(_0x2befcb,_0x493224,_0x3c6f1e,_0x519b6f){return _0x3519(_0x3c6f1e-0x9d,_0x519b6f);}return await Promise[_0x5042f2(0x154,0x1c3,_0x34b252._0x8c2fb8,0x103)](_0x30aeb9[_0x5042f2(_0x34b252._0xad9c09,0xf1,0x57,0x105)](async _0x2c920d=>{return await executeRegisteredToolCall(_0x257261,_0x2c920d,_0x3af1b6,_0x43dd5c);}));},async 'execute'(_0x26b109,_0x5a46ce){function _0x3394cb(_0xe5a4ea,_0x52457b,_0xd2a2b9,_0x5f3b1){return _0x3519(_0x52457b-_0xc8326d._0x86c0e5,_0x5f3b1);}const [_0x4fbba4]=await this[_0x3394cb(0x435,_0x3cbf32._0x1ca28d,0x3fb,0x4e4)]([_0x26b109],_0x5a46ce);return _0x4fbba4;}};}function getOrderedObserverExtensions(_0xa1656b,_0x11e80c){const _0x29d673={_0x2bd066:0x1b5,_0x436eda:0x171},_0x1ec1b5={_0x22afe7:0x144,_0x597e85:0x72,_0x27c569:0x118,_0x3ec21a:0xe4,_0x29d06c:0xe3,_0x3f99d5:0x7b,_0x4e2d9c:0x18f,_0x33669d:0x11b,_0x389e58:0x133},_0x2d3571={_0x2bf6d8:0x148},_0xf873d9={_0x1c406b:0x15c,_0x1c1f22:0x3e2,_0x588de8:0x3d2,_0x46e452:0x59a,_0x21e794:0x4d6},_0x5543c7={_0xf61c77:0x379,_0x4c0e01:0x50};function _0x36a6e3(_0x2fae1f,_0x4f4245,_0x58e11c,_0x505ada){return _0xf3454f(_0x58e11c- -_0x5543c7._0xf61c77,_0x4f4245-_0x5543c7._0x4c0e01,_0x505ada,_0x505ada-0x5e);}return _0xa1656b[_0x36a6e3(-0x11d,-_0x29d673._0x2bd066,-_0x29d673._0x436eda,-0x190)](_0x5ddcdf=>{const _0x44cb14={_0x30afa2:0xb};function _0x149930(_0x3ca7a8,_0x357a09,_0xbb424e,_0xff3918){return _0x36a6e3(_0x3ca7a8-0x44,_0x357a09-0x5d,_0x357a09- -0x4,_0x3ca7a8);}function _0x5ce66c(_0x4ef9e8,_0x3deac3,_0x38c287,_0x338988){return _0x36a6e3(_0x4ef9e8-0x10d,_0x3deac3-_0x44cb14._0x30afa2,_0x4ef9e8-0x57f,_0x38c287);}return _0x5ddcdf[_0x149930(-0x166,-_0xf873d9._0x1c406b,-0x192,-0x1e2)]!==![]&&_0x5ddcdf[_0x5ce66c(0x430,0x3c5,_0xf873d9._0x1c1f22,_0xf873d9._0x588de8)]===_0x11e80c&&_0x5ddcdf[_0x5ce66c(0x510,0x4a7,_0xf873d9._0x46e452,_0xf873d9._0x21e794)]==='observer';})['sort']((_0x1ca85b,_0x47045d)=>{const _0x4addb4={_0x44a2ad:0x25,_0x2b9991:0x10};if(_0x1ca85b[_0x10ae73(-_0x1ec1b5._0x22afe7,-0x10d,-0xfd,-0xe4)]===!![]&&_0x47045d[_0x10ae73(-_0x1ec1b5._0x597e85,-_0x1ec1b5._0x27c569,-0x89,-_0x1ec1b5._0x3ec21a)]!==!![])return 0x1;function _0x10ae73(_0x278b11,_0x2970d6,_0x21b93b,_0x54cc62){return _0x36a6e3(_0x278b11-0x196,_0x2970d6-_0x4addb4._0x44a2ad,_0x54cc62- -_0x4addb4._0x2b9991,_0x21b93b);}function _0x26042c(_0xc63881,_0x50cbd3,_0x3c5c52,_0x4eac32){return _0x36a6e3(_0xc63881-0x13a,_0x50cbd3-_0x2d3571._0x2bf6d8,_0x50cbd3-0xa1,_0x4eac32);}if(_0x1ca85b[_0x10ae73(-_0x1ec1b5._0x29d06c,-_0x1ec1b5._0x3f99d5,-0xcc,-0xe4)]!==!![]&&_0x47045d[_0x10ae73(-0x170,-0xaa,-0xd6,-0xe4)]===!![])return-0x1;return _0x1ca85b[_0x10ae73(-_0x1ec1b5._0x4e2d9c,-0xab,-_0x1ec1b5._0x33669d,-_0x1ec1b5._0x389e58)]-_0x47045d['order'];});}function getOrderedTransformerExtensions(_0x479b9a,_0x559489){const _0x30452d={_0x1003ab:0x22b,_0x9fd3a9:0x1a4,_0x54c6af:0x27a},_0x5e3d38={_0x23dd2c:0x3f,_0x4e909f:0xe,_0x21b3da:0x6c,_0x5713e7:0x293,_0x501218:0x2ba,_0x51e58d:0x1f,_0x4c3fd1:0x2,_0x4ab55e:0x89},_0x3cef72={_0x7feae1:0xb6},_0x47d76b={_0x5a7720:0x181,_0x10f8a6:0x72};function _0x37b3a2(_0x6abd27,_0x3a4d29,_0x1e1572,_0xfd491d){return _0xf3454f(_0x6abd27- -0x463,_0x3a4d29-_0x47d76b._0x5a7720,_0x3a4d29,_0xfd491d-_0x47d76b._0x10f8a6);}function _0x35cd7e(_0xb837d2,_0x37a386,_0x2b43c0,_0x455394){return _0xf3454f(_0xb837d2- -_0x3cef72._0x7feae1,_0x37a386-0x1d5,_0x2b43c0,_0x455394-0xe6);}return _0x479b9a['filter'](_0x46c731=>{const _0x27d58f={_0x371676:0x161};function _0x3df50c(_0x489ccb,_0x2644a0,_0x38f640,_0x5c27e3){return _0x3519(_0x2644a0- -_0x27d58f._0x371676,_0x489ccb);}function _0x52b4fd(_0x15891d,_0x1cc65f,_0x4a031d,_0xeef13d){return _0x3519(_0x4a031d- -0x3c8,_0x1cc65f);}return _0x46c731[_0x3df50c(-_0x5e3d38._0x23dd2c,_0x5e3d38._0x4e909f,0x3,_0x5e3d38._0x21b3da)]!==![]&&_0x46c731[_0x52b4fd(-_0x5e3d38._0x5713e7,-0x274,-0x250,-_0x5e3d38._0x501218)]===_0x559489&&_0x46c731['kind']===_0x3df50c(-_0x5e3d38._0x51e58d,_0x5e3d38._0x4c3fd1,-_0x5e3d38._0x4ab55e,-0x47);})[_0x35cd7e(0x1f6,_0x30452d._0x1003ab,_0x30452d._0x9fd3a9,_0x30452d._0x54c6af)]((_0x5976ad,_0x3572a5)=>_0x5976ad[_0x37b3a2(-0x20d,-0x195,-0x216,-0x216)]-_0x3572a5[_0x35cd7e(0x1a0,0x1bb,0x1e6,0x215)]);}function createExtensionRegistry(){const _0x796c85={_0x32fad6:0x147},_0x157bc9={_0x53dde2:0x489},_0x3eb11d={_0x4a9d2f:0xed,_0x56b37f:0x1c1,_0x40c9d8:0x1d8,_0x5ba972:0x29e,_0x117d7f:0x2b9,_0x2a99e7:0x2f0,_0x5ed820:0x285,_0x1da3af:0x283,_0x5429ee:0x223,_0x17dba5:0x1c7,_0x32c1a9:0x205,_0x1d8d1a:0xc7,_0x24595b:0xcb,_0x6b2654:0x5},_0x301a7b={_0x1cf73f:0x145},_0x466b82=[];return{'register'(_0x41e7d3){function _0x337062(_0xd94b41,_0x2842db,_0x29baf2,_0x268088){return _0x3519(_0x29baf2- -_0x301a7b._0x1cf73f,_0x268088);}if(_0x41e7d3['kind']===_0x337062(0x14b,0x174,0x11f,_0x3eb11d._0x4a9d2f)&&_0x41e7d3[_0x2401e2(0x21a,_0x3eb11d._0x56b37f,0x295,_0x3eb11d._0x40c9d8)]!==![]&&_0x41e7d3[_0x2401e2(_0x3eb11d._0x5ba972,0x309,_0x3eb11d._0x117d7f,0x2a6)]===!![]){const _0x20ffc7=_0x466b82[_0x2401e2(0x2f1,0x26b,0x325,0x370)](_0x761b72=>_0x761b72[_0x2401e2(0x303,0x34a,0x31c,0x338)]===_0x2401e2(0x30f,0x38e,0x314,0x31f)&&_0x761b72[_0x337062(-0x51,0x45,0x2a,0x67)]!==![]&&_0x761b72[_0x337062(0x69,-0x4c,0x33,0x1)]===_0x41e7d3[_0x337062(0xb9,0xbe,0x33,0x78)]&&_0x761b72['terminal']===!![]);if(_0x20ffc7)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x41e7d3['id']+_0x2401e2(_0x3eb11d._0x2a99e7,_0x3eb11d._0x5ed820,_0x3eb11d._0x1da3af,0x2a5)+_0x41e7d3[_0x2401e2(_0x3eb11d._0x5429ee,_0x3eb11d._0x17dba5,_0x3eb11d._0x32c1a9,0x1e3)]+_0x337062(0xf9,0x9b,_0x3eb11d._0x1d8d1a,0x102)+_0x20ffc7['id']+_0x337062(_0x3eb11d._0x24595b,0xe0,0x61,_0x3eb11d._0x6b2654));}function _0x2401e2(_0x3c4e5b,_0x2e344d,_0x534474,_0xe19b7f){return _0x3519(_0x3c4e5b-0xab,_0x2e344d);}_0x466b82['push']({..._0x41e7d3});},async 'runTransformers'(_0x543582,_0x1b96c5,_0x171b68){let _0xf2c809=_0x1b96c5;for(const _0x45b9d1 of getOrderedTransformerExtensions(_0x466b82,_0x543582)){_0xf2c809=await _0x45b9d1[_0x2d0b4b(0x39f,_0x157bc9._0x53dde2,0x3fd,0x38c)](_0xf2c809,_0x171b68);}function _0x2d0b4b(_0x1484aa,_0x5ed49d,_0x263419,_0x21d3b1){return _0x3519(_0x263419-0x271,_0x21d3b1);}return _0xf2c809;},async 'runObservers'(_0x375104,_0x3d9bfb,_0xf881f6){function _0x376ea6(_0x4f448b,_0x33f509,_0x1187c3,_0x37b58a){return _0x3519(_0x1187c3- -0x2,_0x37b58a);}for(const _0x6b0d00 of getOrderedObserverExtensions(_0x466b82,_0x375104)){await _0x6b0d00[_0x376ea6(0x216,_0x796c85._0x32fad6,0x18a,0x132)](_0x3d9bfb,_0xf881f6);}}};}var MODEL_USAGE_TOTAL_KEYS=['totalTokens','totalInputTokens',_0xf3454f(0x21c,0x1d1,0x21a,0x242),_0xf3454f(0x2bc,0x30d,0x315,0x30d),'requestCount',_0xf3454f(0x287,0x2a9,0x2c4,0x282),_0xf3454f(0x29a,0x2d8,0x251,0x2d4),'totalCostUsdTicks',_0xf3454f(0x2d2,0x2c0,0x2a0,0x2fe),_0x3f402d(0x278,0x244,0x269,0x2ab),_0xf3454f(0x2b0,0x30f,0x2e3,0x298),_0xf3454f(0x282,0x24d,0x293,0x2a1),_0x3f402d(0x108,0x169,0x1b2,0x1c1),_0xf3454f(0x2aa,0x278,0x307,0x22b),_0xf3454f(0x25a,0x27a,0x1ef,0x2d4)],SUBAGENT_REPORT_META_KEYS=[_0xf3454f(0x245,0x281,0x20e,0x1e7),_0x3f402d(0x1b8,0x213,0x1b5,0x27f),'turnId',_0xf3454f(0x2c4,0x31e,0x2be,0x317),_0x3f402d(0x17b,0x147,0x152,0xbe),_0xf3454f(0x2f4,0x35a,0x366,0x2ec)],ModelUsageOverflowError=class extends RangeError{[_0x3f402d(0x149,0x18f,0x141,0x1e2)]=_0xf3454f(0x20f,0x23b,0x207,0x183);};function hasExactKeys(_0x186ae4,_0x1366f1){const _0x3eb90e={_0x46afab:0x14f,_0x58f57d:0x161,_0x42e06e:0x1f4,_0x4e3fa0:0x79,_0x5ee696:0x18d,_0x2299cf:0xfd,_0x269a07:0x102,_0x783516:0x125,_0x11097b:0x17a},_0x10feb6={_0xed3c1:0x2cd,_0x4f9329:0x54},_0x3cc398={_0x383352:0x101};function _0x1be8d8(_0x212c0d,_0x15d7e5,_0x45e953,_0x4616b5){return _0x3f402d(_0x212c0d-_0x3cc398._0x383352,_0x45e953-0x8d,_0x45e953-0xa8,_0x4616b5);}if(typeof _0x186ae4!==_0x23799c(-_0x3eb90e._0x46afab,-_0x3eb90e._0x58f57d,-0x170,-0x1b7)||_0x186ae4===null||Array[_0x1be8d8(0x1b7,0x26e,0x222,_0x3eb90e._0x42e06e)](_0x186ae4))return![];const _0x139b31=Object['keys'](_0x186ae4);function _0x23799c(_0x525972,_0x60cc8b,_0x134b77,_0x459e55){return _0x3f402d(_0x525972-0x1cd,_0x60cc8b- -_0x10feb6._0xed3c1,_0x134b77-_0x10feb6._0x4f9329,_0x134b77);}return _0x139b31[_0x23799c(-0xfa,-0x102,-_0x3eb90e._0x4e3fa0,-_0x3eb90e._0x5ee696)]===_0x1366f1[_0x23799c(-_0x3eb90e._0x2299cf,-_0x3eb90e._0x269a07,-_0x3eb90e._0x783516,-_0x3eb90e._0x11097b)]&&_0x139b31[_0x23799c(-0x1bb,-0x152,-0x120,-0x1cf)](_0x11693a=>_0x1366f1[_0x1be8d8(0x29d,0x228,0x288,0x2cf)](_0x11693a));}function isNonNegativeSafeInteger(_0x2fccee){const _0x1fc5cb={_0x23de24:0x4ac,_0x13e33d:0x49f};function _0x3708d2(_0x25761c,_0x2eaf68,_0x1d85d8,_0x342e85){return _0x3f402d(_0x25761c-0x3b,_0x2eaf68-0x341,_0x1d85d8-0x128,_0x25761c);}return typeof _0x2fccee==='number'&&Number[_0x3708d2(_0x1fc5cb._0x23de24,0x479,_0x1fc5cb._0x13e33d,0x47d)](_0x2fccee)&&_0x2fccee>=0x0;}function requireModelUsageInteger(_0x5221e6){const _0x5a5ca1={_0x54a19d:0xc0},_0x183fe3={_0x306d0e:0x1c0,_0x27e800:0xc5,_0x5ae966:0x14f};function _0x3de120(_0x4703c4,_0x4e39e9,_0x318053,_0x291015){return _0x3f402d(_0x4703c4-_0x183fe3._0x306d0e,_0x291015- -_0x183fe3._0x27e800,_0x318053-_0x183fe3._0x5ae966,_0x318053);}if(!isNonNegativeSafeInteger(_0x5221e6))throw new ModelUsageOverflowError(_0x3de120(0xfc,0x10f,0x84,_0x5a5ca1._0x54a19d));return _0x5221e6;}function addModelUsageInteger(_0x37af52,_0x757855){return requireModelUsageInteger(_0x37af52+_0x757855);}function emptyModelUsageTotals(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'totalModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function isModelUsageTotals(_0x327da3){const _0x4135d5={_0x3e8977:0x511,_0xf3d6ff:0x561,_0x18bdd3:0x5b,_0x2aab6a:0xf7,_0x15a5e7:0x97,_0x37f0d7:0x86,_0x2902b2:0x114,_0x185e2e:0x498,_0x2580b1:0x4fd,_0x451487:0x480,_0x5e085a:0x483,_0x825987:0x4ec,_0x2bbcaf:0x500,_0x1a33cc:0x4ee,_0xf55c4c:0xc9,_0x3e0cfc:0x170,_0x78f1b6:0x132,_0x3f23d4:0x10d,_0x434a4e:0xec,_0x3f6fa6:0x59,_0x2dc434:0x9c,_0x1c4d53:0xf1,_0x3b2ef6:0x168,_0x232338:0x119,_0x52fdba:0x140,_0x3b63d4:0x142,_0x373e77:0x107,_0x5be3b7:0x13c},_0x105c12={_0x5987aa:0x1d5},_0x573a04={_0x5daea6:0x1f3,_0x42a910:0x126};function _0x1ce682(_0x7e95d6,_0x1a40e2,_0x24778d,_0x45e302){return _0x3f402d(_0x7e95d6-_0x573a04._0x5daea6,_0x1a40e2-0x33d,_0x24778d-_0x573a04._0x42a910,_0x45e302);}if(!hasExactKeys(_0x327da3,MODEL_USAGE_TOTAL_KEYS))return![];for(const _0x1e8490 of MODEL_USAGE_TOTAL_KEYS){if(_0x1e8490==='historicalMetricsComplete')continue;if(!isNonNegativeSafeInteger(_0x327da3[_0x1e8490]))return![];}if(typeof _0x327da3[_0x1ce682(0x4da,_0x4135d5._0x3e8977,_0x4135d5._0xf3d6ff,0x573)]!==_0x810aae(_0x4135d5._0x18bdd3,_0x4135d5._0x2aab6a,0x2f,_0x4135d5._0x15a5e7))return![];const _0x3ebae0=_0x327da3;function _0x810aae(_0x532e00,_0x5474bb,_0x11abe,_0xc87045){return _0xf3454f(_0xc87045- -0x1a3,_0x5474bb-_0x105c12._0x5987aa,_0x532e00,_0xc87045-0x169);}return _0x3ebae0[_0x810aae(0x79,_0x4135d5._0x37f0d7,_0x4135d5._0x2902b2,0xd9)]===_0x3ebae0[_0x1ce682(_0x4135d5._0x185e2e,0x487,_0x4135d5._0x2580b1,0x4dd)]+_0x3ebae0[_0x1ce682(0x4b6,0x483,_0x4135d5._0x451487,0x49e)]&&_0x3ebae0['totalReasoningTokens']<=_0x3ebae0[_0x1ce682(0x400,_0x4135d5._0x5e085a,0x4b4,_0x4135d5._0x825987)]&&_0x3ebae0['requestCount']<=_0x3ebae0[_0x1ce682(_0x4135d5._0x2bbcaf,_0x4135d5._0x1a33cc,0x54d,0x544)]&&_0x3ebae0[_0x810aae(_0x4135d5._0xf55c4c,_0x4135d5._0x3e0cfc,_0x4135d5._0x78f1b6,_0x4135d5._0x3f23d4)]<=_0x3ebae0['modelCallCount']&&_0x3ebae0[_0x810aae(0x16a,_0x4135d5._0x434a4e,0x119,0xdf)]<=_0x3ebae0['modelCallCount']&&_0x3ebae0[_0x810aae(0xfe,0x90,_0x4135d5._0x3f6fa6,_0x4135d5._0x2dc434)]<=_0x3ebae0[_0x810aae(_0x4135d5._0x1c4d53,0x152,_0x4135d5._0x3b2ef6,0xe4)]&&_0x3ebae0[_0x810aae(_0x4135d5._0x232338,_0x4135d5._0x52fdba,_0x4135d5._0x3b63d4,_0x4135d5._0x373e77)]===(_0x3ebae0[_0x810aae(0xcc,0x138,_0x4135d5._0x5be3b7,0xb7)]===0x0);}function isSubagentReportMeta(_0x3760ac){const _0x243529={_0x4d4399:0x57d,_0x97f13c:0x3dd,_0x5ddd54:0x39b,_0xef2470:0x402,_0x2dc64a:0x43f,_0xb36639:0x50c,_0x169fcd:0x4de,_0x576eea:0x388,_0x3eb941:0x35d,_0x40f557:0x3bd,_0x4a2225:0x5f1,_0x309f3c:0x675,_0x163636:0x44a,_0x112755:0x5a1,_0x1a22c0:0x4b2,_0x2810eb:0x445,_0x48119a:0x610,_0x56ff80:0x5d6,_0x598215:0x49b,_0x40f6d9:0x46d,_0x52f631:0x457,_0x1f585a:0x5d4,_0x3e7246:0x554,_0x2c5a21:0x5dc,_0x2d0ac4:0x40d,_0x2b3945:0x58e,_0x314584:0x61c,_0x58f5d4:0x3ee,_0x52b9ef:0x457,_0x372430:0x3b9,_0x4bf737:0x63c,_0x42ad03:0x6a0,_0x416ac2:0x5ab,_0x5787a2:0x616,_0x159351:0x539,_0x46627b:0x4eb,_0x4a2e38:0x53f,_0x466bb2:0x3e7,_0x189bed:0x3c6,_0x55199e:0x368,_0xe72010:0x40b,_0xf60e6d:0x403,_0x5a44ca:0x41c},_0x97211={_0x486ddc:0xfa,_0x20b6d0:0x3f8},_0x47ef45={_0x502583:0x101};if(!hasExactKeys(_0x3760ac,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x3760ac[_0x11cd76(0x4da,0x5af,_0x243529._0x4d4399,0x567)]!==_0x23b2b1(0x3db,_0x243529._0x97f13c,0x3d7,0x3e4)||_0x3760ac[_0x23b2b1(0x372,0x3ee,0x3a8,_0x243529._0x5ddd54)][_0x23b2b1(0x408,0x44a,_0x243529._0xef2470,_0x243529._0x2dc64a)]===0x0)return![];if(typeof _0x3760ac[_0x23b2b1(_0x243529._0xb36639,0x492,0x44b,_0x243529._0x169fcd)]!==_0x23b2b1(_0x243529._0x576eea,0x3dd,_0x243529._0x3eb941,_0x243529._0x40f557)||_0x3760ac[_0x11cd76(_0x243529._0x4a2225,_0x243529._0x309f3c,0x5f1,0x60b)][_0x23b2b1(0x4ac,_0x243529._0x163636,0x442,0x463)]===0x0)return![];function _0x23b2b1(_0x1de0fa,_0x18b7f4,_0x16098f,_0x46e555){return _0xf3454f(_0x18b7f4-0x1a9,_0x18b7f4-0x9f,_0x16098f,_0x46e555-_0x47ef45._0x502583);}if(typeof _0x3760ac[_0x11cd76(_0x243529._0x112755,0x5df,0x61e,0x5be)]!=='string'||_0x3760ac[_0x23b2b1(_0x243529._0x1a22c0,_0x243529._0x2810eb,0x462,0x46a)][_0x11cd76(0x538,_0x243529._0x48119a,_0x243529._0x56ff80,0x5c3)]===0x0)return![];if(_0x3760ac[_0x23b2b1(_0x243529._0x598215,_0x243529._0x40f6d9,_0x243529._0x52f631,0x4e6)]!==_0x11cd76(0x669,_0x243529._0x1f585a,_0x243529._0x3e7246,_0x243529._0x2c5a21)&&_0x3760ac[_0x23b2b1(0x436,0x46d,_0x243529._0x2d0ac4,0x417)]!==_0x11cd76(0x5d6,_0x243529._0x2b3945,0x675,_0x243529._0x314584)&&_0x3760ac['status']!==_0x23b2b1(0x45b,0x3dc,_0x243529._0x58f5d4,_0x243529._0x52b9ef))return![];if(!isModelUsageTotals(_0x3760ac[_0x23b2b1(0x34e,0x3c6,0x39a,_0x243529._0x372430)]))return![];function _0x11cd76(_0x5c032b,_0x2c8939,_0x376998,_0xe87710){return _0x3f402d(_0x5c032b-_0x97211._0x486ddc,_0xe87710-_0x97211._0x20b6d0,_0x376998-0x136,_0x2c8939);}if(!isModelUsageTotals(_0x3760ac[_0x11cd76(_0x243529._0x4bf737,_0x243529._0x42ad03,_0x243529._0x416ac2,_0x243529._0x5787a2)]))return![];return _0x3760ac[_0x11cd76(_0x243529._0x159351,0x5c2,_0x243529._0x46627b,_0x243529._0x4a2e38)][_0x23b2b1(_0x243529._0x466bb2,0x453,0x430,0x3fe)]&&_0x3760ac[_0x23b2b1(0x376,_0x243529._0x189bed,_0x243529._0x55199e,_0x243529._0xe72010)][_0x23b2b1(_0x243529._0x189bed,_0x243529._0xf60e6d,0x460,_0x243529._0x5a44ca)]===0x0;}function addModelUsageTotals(_0x34f453,_0x218d5a){const _0x461676={_0x56676b:0x184,_0x5e174d:0x144,_0x8f3f32:0x16a,_0x59e6ed:0xf9,_0x11e141:0x1f8,_0x22042d:0xa3,_0xbfeaa:0x6c,_0x26dcdd:0xb6,_0x2d6285:0x190,_0x4aabd9:0xea,_0x107ca6:0x12a,_0x57d03b:0x16e,_0x19983c:0xf8,_0x596799:0x45,_0x4f4ea:0x1d2,_0xc3f61:0x19f,_0x48f5c7:0x29,_0x59a472:0x2c,_0x39219b:0x58,_0x5a7a16:0xb2,_0x366a80:0x1bf,_0x45aee6:0x209,_0x2d4d1c:0x266,_0x3d26e9:0x28,_0x2de327:0x57,_0x1606bd:0x19,_0x24bb78:0x136,_0x4fbb1c:0x129,_0x31ed67:0x100,_0x5a7832:0xe6,_0xa0581:0xd8,_0x405cca:0xda,_0x18f35c:0xef,_0x478d23:0xba,_0x443dc7:0x84,_0x10721a:0x46,_0x5e0f2:0xbd,_0x69cacb:0x3f,_0x4adc2d:0x12c,_0x309fb6:0x1a4},_0x49199a={_0x679951:0x2c3,_0x37b60a:0x5a},_0x26a336={_0x32d135:0x149};function _0x3ce439(_0x1546ff,_0x3362ac,_0x428ef0,_0xe1c7b4){return _0xf3454f(_0x1546ff- -0x3e6,_0x3362ac-0x9a,_0xe1c7b4,_0xe1c7b4-_0x26a336._0x32d135);}function _0x16670b(_0x2421d1,_0x5d78cd,_0x8cf71d,_0x49bab5){return _0xf3454f(_0x5d78cd- -_0x49199a._0x679951,_0x5d78cd-0x2a,_0x2421d1,_0x49bab5-_0x49199a._0x37b60a);}return{'totalTokens':addModelUsageInteger(_0x34f453[_0x3ce439(-0x16a,-_0x461676._0x56676b,-0x141,-_0x461676._0x5e174d)],_0x218d5a[_0x3ce439(-_0x461676._0x8f3f32,-_0x461676._0x59e6ed,-0x1e6,-_0x461676._0x11e141)]),'totalInputTokens':addModelUsageInteger(_0x34f453['totalInputTokens'],_0x218d5a[_0x16670b(-0x123,-_0x461676._0x22042d,-_0x461676._0xbfeaa,-_0x461676._0x26dcdd)]),'totalOutputTokens':addModelUsageInteger(_0x34f453['totalOutputTokens'],_0x218d5a['totalOutputTokens']),'totalReasoningTokens':addModelUsageInteger(_0x34f453[_0x3ce439(-0x12a,-0x116,-_0x461676._0x2d6285,-_0x461676._0x4aabd9)],_0x218d5a[_0x3ce439(-_0x461676._0x107ca6,-_0x461676._0x57d03b,-_0x461676._0x19983c,-0x1aa)]),'requestCount':addModelUsageInteger(_0x34f453[_0x16670b(-0xc9,-0xaf,-0x8e,-_0x461676._0x596799)],_0x218d5a[_0x3ce439(-_0x461676._0x4f4ea,-_0x461676._0xc3f61,-0x1a9,-0x194)]),'modelCallCount':addModelUsageInteger(_0x34f453['modelCallCount'],_0x218d5a['modelCallCount']),'totalModelTimeMs':addModelUsageInteger(_0x34f453[_0x16670b(-0x3e,-_0x461676._0x48f5c7,-0x10,-_0x461676._0x59a472)],_0x218d5a[_0x16670b(-0xa2,-0x29,_0x461676._0x39219b,-_0x461676._0x5a7a16)]),'totalCostUsdTicks':addModelUsageInteger(_0x34f453[_0x3ce439(-0x1df,-_0x461676._0x366a80,-0x20b,-0x21e)],_0x218d5a[_0x3ce439(-0x1df,-_0x461676._0x45aee6,-0x19c,-_0x461676._0x2d4d1c)]),'totalReportedCostUsdTicks':addModelUsageInteger(_0x34f453['totalReportedCostUsdTicks'],_0x218d5a[_0x16670b(0x42,0xf,0x8a,0x99)]),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x34f453[_0x16670b(-_0x461676._0x3d26e9,_0x461676._0x2de327,_0x461676._0x1606bd,0x76)],_0x218d5a['totalEstimatedCostUsdTicks']),'reportedCostCallCount':addModelUsageInteger(_0x34f453[_0x3ce439(-_0x461676._0x24bb78,-0x178,-_0x461676._0x4fbb1c,-0x104)],_0x218d5a[_0x3ce439(-0x136,-_0x461676._0x31ed67,-_0x461676._0x5a7832,-0x18a)]),'estimatedCostCallCount':addModelUsageInteger(_0x34f453['estimatedCostCallCount'],_0x218d5a[_0x3ce439(-0x164,-_0x461676._0xa0581,-_0x461676._0x405cca,-_0x461676._0x18f35c)]),'unpricedModelCallCount':addModelUsageInteger(_0x34f453['unpricedModelCallCount'],_0x218d5a[_0x16670b(-_0x461676._0x478d23,-_0x461676._0x443dc7,-0x9,-_0x461676._0x10721a)]),'historicalMetricsComplete':_0x34f453['historicalMetricsComplete']&&_0x218d5a['historicalMetricsComplete'],'missingHistoricalModelCallCount':addModelUsageInteger(_0x34f453[_0x16670b(-_0x461676._0x5e0f2,-0x69,-0xc4,-_0x461676._0x69cacb)],_0x218d5a[_0x3ce439(-0x18c,-_0x461676._0x4adc2d,-_0x461676._0x309fb6,-0x17b)])};}function modelUsageTotalsEqual(_0x1d8d35,_0x1a6200){const _0x1759b4={_0x153af4:0x381,_0x5b397b:0x39d,_0x59f89b:0x3b9,_0x7faa58:0x3e7},_0x3faba1={_0x523911:0x1ae,_0xaebc01:0x222,_0x1e1b0f:0x2f};function _0x14fef7(_0x511b32,_0x1da4f2,_0x22e075,_0x378c35){return _0x3f402d(_0x511b32-_0x3faba1._0x523911,_0x1da4f2-_0x3faba1._0xaebc01,_0x22e075-_0x3faba1._0x1e1b0f,_0x378c35);}return MODEL_USAGE_TOTAL_KEYS[_0x14fef7(_0x1759b4._0x153af4,_0x1759b4._0x5b397b,_0x1759b4._0x59f89b,_0x1759b4._0x7faa58)](_0x390eb7=>_0x1d8d35[_0x390eb7]===_0x1a6200[_0x390eb7]);}function modelUsageTotalsFromSnapshot(_0x2abe79){const _0x3479e3={_0x32650f:0x8e,_0x123752:0x9d,_0x18985f:0xa1,_0x11ba43:0xba,_0x5090c2:0xac,_0x49fbea:0x124,_0x273c0d:0xf4,_0x586758:0xf8,_0xd2dcd0:0x23,_0x177d82:0x31,_0xa34aee:0x138,_0x2851a5:0x2a,_0x11ee45:0x88,_0x5a1f91:0xe6,_0x4d7e45:0x4a,_0x4cc8e8:0x7e,_0x14058c:0x78,_0x2b7e22:0x14c,_0x1379c9:0xbe,_0x28e7ac:0x12d,_0x51513c:0xff},_0x38424b={_0x1bf316:0x292},_0x2503c5={_0x2fa0b5:0x2bd,_0x24489b:0x6c};function _0x4d90ff(_0x440272,_0x1e3705,_0x1a74b7,_0x586896){return _0xf3454f(_0x1a74b7- -_0x2503c5._0x2fa0b5,_0x1e3705-_0x2503c5._0x24489b,_0x440272,_0x586896-0x173);}const _0x2a09e6={'totalTokens':_0x2abe79['totalTokens'],'totalInputTokens':_0x2abe79[_0x4d90ff(-_0x3479e3._0x32650f,-0x119,-_0x3479e3._0x123752,-0x46)],'totalOutputTokens':_0x2abe79[_0x4d90ff(-0xe1,-0x10e,-_0x3479e3._0x18985f,-_0x3479e3._0x11ba43)],'totalReasoningTokens':_0x2abe79[_0x1f1f8f(-0x86,-_0x3479e3._0x5090c2,-0xac,-_0x3479e3._0x49fbea)],'requestCount':_0x2abe79['requestCount'],'modelCallCount':_0x2abe79[_0x1f1f8f(-0x109,-0xe1,-_0x3479e3._0x273c0d,-_0x3479e3._0x586758)],'totalModelTimeMs':_0x2abe79[_0x4d90ff(0x58,-0xf,-_0x3479e3._0xd2dcd0,_0x3479e3._0x177d82)],'totalCostUsdTicks':_0x2abe79[_0x1f1f8f(-0x1cb,-0x161,-_0x3479e3._0xa34aee,-0x1d2)],'totalReportedCostUsdTicks':_0x2abe79[_0x1f1f8f(-0xe2,-0x96,-0x43,-0xc6)],'totalEstimatedCostUsdTicks':_0x2abe79[_0x4d90ff(_0x3479e3._0x2851a5,_0x3479e3._0x11ee45,0x5d,_0x3479e3._0x5a1f91)],'reportedCostCallCount':_0x2abe79['reportedCostCallCount'],'estimatedCostCallCount':_0x2abe79[_0x4d90ff(-0xc4,0x17,-0x3b,_0x3479e3._0x4d7e45)],'unpricedModelCallCount':_0x2abe79[_0x4d90ff(-0x1,-0x102,-_0x3479e3._0x4cc8e8,-_0x3479e3._0x14058c)],'historicalMetricsComplete':_0x2abe79[_0x1f1f8f(-_0x3479e3._0x2b7e22,-_0x3479e3._0x1379c9,-_0x3479e3._0x28e7ac,-0xc2)],'missingHistoricalModelCallCount':_0x2abe79[_0x1f1f8f(-0x13c,-0x10e,-0xd6,-_0x3479e3._0x51513c)]};for(const _0x1b08e8 of MODEL_USAGE_TOTAL_KEYS){if(_0x1b08e8==='historicalMetricsComplete')continue;requireModelUsageInteger(_0x2a09e6[_0x1b08e8]);}function _0x1f1f8f(_0xadfab,_0x733e0a,_0x131637,_0x58f86d){return _0x3f402d(_0xadfab-0x1de,_0x733e0a- -_0x38424b._0x1bf316,_0x131637-0xf9,_0x131637);}return _0x2a09e6;}function modelUsageTotalsFromCall(_0x5e86fc){const _0x38e62f={_0x1a2a62:0x105,_0x32b7f3:0x2e6,_0x1d288f:0x2da,_0x198ec9:0x2ef,_0x1543a3:0x449,_0x1fb5a2:0x409,_0xaa38:0x349,_0x50d30b:0x34b,_0x8c36dd:0x3ac,_0x3e5874:0x1db,_0xe0bd5d:0x1e6,_0x58cccf:0x1c8,_0x38d81a:0x185,_0x519d07:0x174,_0x154b1e:0x188,_0x4843d8:0x394,_0x2048db:0x2e3,_0x48886d:0x324,_0x24471b:0x339},_0x43b488={_0x8a5d8e:0x1ae},_0x4ab50c={_0x5b40f2:0x51,_0x5f421e:0x30c,_0x5a06d5:0x1c0},_0x334d19=_0x5e86fc[_0x176123(-_0x38e62f._0x1a2a62,-0xda,-0xa5,-0x125)],_0x43435b=requireModelUsageInteger(_0x334d19[_0x5424e6(_0x38e62f._0x32b7f3,0x29e,_0x38e62f._0x1d288f,_0x38e62f._0x198ec9)]),_0x1a8d5e=requireModelUsageInteger(_0x334d19[_0x5424e6(0x414,0x3f9,_0x38e62f._0x1543a3,_0x38e62f._0x1fb5a2)]),_0x354a66=requireModelUsageInteger(_0x334d19[_0x5424e6(_0x38e62f._0xaa38,_0x38e62f._0x50d30b,_0x38e62f._0x8c36dd,0x37a)]??0x0),_0x5083e5=requireModelUsageInteger(_0x5e86fc[_0x176123(-0x1aa,-0x124,-_0x38e62f._0x3e5874,-0x22d)]),_0x3e7d59=addModelUsageInteger(_0x43435b,_0x1a8d5e);function _0x176123(_0x25d66d,_0x3cdb30,_0x2a5cdf,_0xcc4ecd){return _0x3f402d(_0x25d66d-_0x4ab50c._0x5b40f2,_0x25d66d- -_0x4ab50c._0x5f421e,_0x2a5cdf-_0x4ab50c._0x5a06d5,_0xcc4ecd);}const _0xa6953d=_0x334d19[_0x176123(-0x186,-_0x38e62f._0xe0bd5d,-_0x38e62f._0x58cccf,-_0x38e62f._0x38d81a)]?.[_0x176123(-_0x38e62f._0x519d07,-0x123,-_0x38e62f._0x154b1e,-0x17f)],_0x315e5f=_0x334d19[_0x5424e6(0x354,_0x38e62f._0x4843d8,0x3f8,0x3d1)]?.['amountUsdTicks'],_0x4c73cf=_0xa6953d===void 0x0?void 0x0:requireModelUsageInteger(_0xa6953d),_0x5aefb7=_0x315e5f===void 0x0?void 0x0:requireModelUsageInteger(_0x315e5f),_0x8749f6=_0x4c73cf??_0x5aefb7,_0x45a234={...emptyModelUsageTotals(),'totalTokens':_0x3e7d59,'totalInputTokens':_0x43435b,'totalOutputTokens':_0x1a8d5e,'totalReasoningTokens':_0x354a66,'requestCount':_0x5e86fc[_0x5424e6(_0x38e62f._0x2048db,_0x38e62f._0x48886d,0x39b,_0x38e62f._0x24471b)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x5083e5,'totalCostUsdTicks':_0x8749f6??0x0,'totalReportedCostUsdTicks':_0x4c73cf??0x0,'totalEstimatedCostUsdTicks':_0x5aefb7??0x0,'reportedCostCallCount':_0x4c73cf===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x5aefb7===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x4c73cf===void 0x0&&_0x5aefb7===void 0x0?0x1:0x0};function _0x5424e6(_0x305138,_0x1edf11,_0x206b73,_0x1e0cc9){return _0xf3454f(_0x1e0cc9-0xee,_0x1edf11-0xb2,_0x1edf11,_0x1e0cc9-_0x43b488._0x8a5d8e);}if(!isModelUsageTotals(_0x45a234))throw new ModelUsageOverflowError(_0x5424e6(0x354,0x2fe,0x2d5,0x349));return _0x45a234;}function modelUsageTotalsFromHistory(_0x11585c,_0x48f990){const _0x3ca6d9={_0x2feab2:0x440,_0x2b608a:0x458,_0x212964:0x476,_0x6cba42:0x426,_0x38f00e:0x490,_0xd49392:0x4fd,_0x684113:0x489},_0x4a4d3e={_0x98cc45:0x108,_0x41e805:0x24};let _0x11bfef=emptyModelUsageTotals();function _0x10757c(_0x5ae3d6,_0x5bb0a8,_0xb70706,_0x4751a6){return _0x3f402d(_0x5ae3d6-_0x4a4d3e._0x98cc45,_0x5ae3d6- -0x33b,_0xb70706-_0x4a4d3e._0x41e805,_0x5bb0a8);}for(const _0x22477f of _0x11585c){_0x11bfef=addModelUsageTotals(_0x11bfef,modelUsageTotalsFromCall({'usage':_0x22477f[_0x10757c(-0x134,-0xe1,-0x1b0,-0xe0)],'modelTimeMs':_0x22477f[_0x2184c8(_0x3ca6d9._0x2feab2,_0x3ca6d9._0x2b608a,0x44b,_0x3ca6d9._0x212964)],'completesRequest':_0x22477f[_0x2184c8(_0x3ca6d9._0x6cba42,_0x3ca6d9._0x38f00e,_0x3ca6d9._0xd49392,_0x3ca6d9._0x684113)]}));}const _0x563f26=requireModelUsageInteger(_0x48f990);function _0x2184c8(_0x50d500,_0x25b092,_0x31b7a5,_0x5c75ed){return _0x3f402d(_0x50d500-0xe1,_0x5c75ed-0x314,_0x31b7a5-0x17f,_0x25b092);}return{..._0x11bfef,'historicalMetricsComplete':_0x563f26===0x0,'missingHistoricalModelCallCount':_0x563f26};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x285a52,_0x1782aa){const _0x504002={_0x526093:0x569,_0x26a57b:0x589,_0x4b8646:0x5c0,_0x17844c:0x557,_0xe1aada:0x55d,_0x534dde:0x4bb,_0x44d2c8:0x4e8,_0x396317:0x56f,_0x5b93e5:0x501,_0x66acd7:0x4f4,_0x12762e:0x4d2,_0xe1c752:0x48c,_0x353c9f:0x4bc,_0x5edd5f:0x4c7,_0x5d41a5:0x498,_0x5e502b:0x5bf,_0x46a0e4:0x521,_0x4d80dc:0x476,_0x366633:0x498},_0x4ba843={_0x50fc35:0x1e4},_0x4555e8={_0x504b54:0xc0,_0x174b63:0x1e5};function _0xfdefb6(_0x14b520,_0x45ab29,_0x38abe0,_0x1ba9de){return _0x3f402d(_0x14b520-_0x4555e8._0x504b54,_0x1ba9de-0x350,_0x38abe0-_0x4555e8._0x174b63,_0x38abe0);}const _0x12b729=modelUsageTotalsFromCall(_0x1782aa),_0x3c9bd3=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x285a52),_0x12b729),_0xe8aeb1=_0x1782aa[_0xfdefb6(_0x504002._0x526093,_0x504002._0x26a57b,_0x504002._0x4b8646,_0x504002._0x17844c)]['reportedCost']?.['amountUsdTicks'],_0x1034d4=_0x1782aa['usage'][_0xfdefb6(0x52f,0x5c5,0x5af,_0x504002._0xe1aada)]?.[_0xfdefb6(0x45b,_0x504002._0x534dde,0x471,_0x504002._0x44d2c8)],{currentReportedCostUsdTicks:_0x51f44a,currentEstimatedCostUsdTicks:_0x486881,..._0x4c915f}=_0x285a52;function _0x5a2894(_0x3608ab,_0x1bae8c,_0x5c965b,_0x43767a){return _0xf3454f(_0x1bae8c-0x334,_0x1bae8c-_0x4ba843._0x50fc35,_0x5c965b,_0x43767a-0x54);}return{..._0x4c915f,..._0x3c9bd3,'currentTokens':_0x12b729[_0xfdefb6(_0x504002._0x396317,_0x504002._0x5b93e5,_0x504002._0x66acd7,0x4f6)],'currentInputTokens':_0x12b729[_0x5a2894(0x591,0x554,0x4ec,_0x504002._0x12762e)],'currentOutputTokens':_0x12b729['totalOutputTokens'],'currentReasoningTokens':_0x12b729['totalReasoningTokens'],'currentModelTimeMs':_0x12b729['totalModelTimeMs'],..._0x4c915f[_0xfdefb6(_0x504002._0xe1c752,_0x504002._0x353c9f,_0x504002._0x5edd5f,_0x504002._0x5d41a5)]&&_0x12b729[_0x5a2894(_0x504002._0x5e502b,0x5b0,0x581,0x62a)]>0x0?{'contextWindowUsage':_0x12b729['totalTokens']/_0x4c915f[_0xfdefb6(_0x504002._0x46a0e4,_0x504002._0xe1c752,_0x504002._0x4d80dc,_0x504002._0x366633)]}:{},..._0xe8aeb1!==void 0x0?{'currentReportedCostUsdTicks':_0xe8aeb1}:{},..._0x1034d4!==void 0x0?{'currentEstimatedCostUsdTicks':_0x1034d4}:{}};}function mergeExternalUsage(_0x5658e0,_0x563373){const _0x14e17f={_0xa49a88:0xc6,_0x13483a:0x59,_0x87382d:0xe6,_0x240ae5:0x91},_0x2c4d00={_0x42f844:0x369,_0x32ed92:0x1d3,_0x1ab984:0xb7};if(!isModelUsageTotals(_0x563373))throw new TypeError(_0x456660(-_0x14e17f._0xa49a88,-_0x14e17f._0x13483a,-_0x14e17f._0x87382d,-_0x14e17f._0x240ae5));const _0x206158=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x5658e0),_0x563373);function _0x456660(_0x4abf50,_0x41ec49,_0x118a9f,_0x35d052){return _0xf3454f(_0x41ec49- -_0x2c4d00._0x42f844,_0x41ec49-_0x2c4d00._0x32ed92,_0x118a9f,_0x35d052-_0x2c4d00._0x1ab984);}return{..._0x5658e0,..._0x206158};}function createAgentMetrics(_0x15eeff={}){const _0xd5f02b={_0x17bfed:0x48d,_0x1d9f38:0x436,_0xd37eb2:0x43f,_0x11a6d8:0x483},_0x50c30e={_0x7b5115:0x4ed,_0x3ac4ab:0x5ca,_0x499711:0x5e2,_0x105e0b:0x351,_0xfbbdaa:0x340,_0xf790aa:0x53b,_0x2d74a0:0x5aa,_0x444bb6:0x5c3,_0x1eb80f:0x61d},_0x20c6e2={_0x4d2a72:0x1cb},_0x4c4ef9={_0x414041:0x3a2},_0x3b934b={_0x427a46:0x170,_0x87654:0x122,_0x427b84:0x126,_0x3eadc3:0x48e,_0x371d3b:0x512,_0x47038d:0x66,_0x27a20d:0xd7,_0x1fc114:0x72,_0x44b588:0xd2,_0x2aeed1:0xbd,_0x580cd4:0x566,_0x3556e5:0x644,_0x501c7a:0x5c0,_0x462ddd:0x560,_0x1bcd66:0x4aa,_0x2edb0a:0x4c5,_0xa00e8a:0x506,_0x428a87:0xd5,_0x38a6ce:0x95,_0x23ec0c:0x588,_0x2a72e7:0x5a2,_0x5b7f68:0x5e1,_0x5a9873:0x5c1},_0x363680={_0x4f347e:0x163};let _0x8fc32a=createEmptySnapshot();const _0x19baba=new Set();let _0x49e98a;const _0x32bd86=()=>{const _0x72158d={..._0x8fc32a};for(const _0x5454e9 of _0x19baba)_0x5454e9(_0x72158d);};return{'getSnapshot'(){return{..._0x8fc32a};},'recordEvent'(_0x54e9f1){const _0x3a9ee2={_0x3a62c1:0x380};if(_0x54e9f1[_0x269d31(_0x3b934b._0x427a46,_0x3b934b._0x87654,0xf4,_0x3b934b._0x427b84)]==='model_request'){_0x49e98a=Date['now']();const _0x3add5b=_0x15eeff[_0x3c3e48(0x515,_0x3b934b._0x3eadc3,_0x3b934b._0x371d3b,0x53b)]?.(_0x54e9f1[_0x269d31(_0x3b934b._0x47038d,0x138,_0x3b934b._0x27a20d,_0x3b934b._0x1fc114)]);_0x3add5b!==void 0x0&&(_0x8fc32a={..._0x8fc32a,'contextWindowLimit':_0x3add5b},_0x32bd86());return;}if(_0x54e9f1[_0x269d31(_0x3b934b._0x44b588,0x14b,0xf4,_0x3b934b._0x2aeed1)]===_0x3c3e48(0x4f0,0x52a,0x4f9,_0x3b934b._0x580cd4)){const _0x2ce359=_0x49e98a===void 0x0?0x0:Date[_0x3c3e48(_0x3b934b._0x3556e5,0x538,_0x3b934b._0x501c7a,0x5cc)]()-_0x49e98a;_0x49e98a=void 0x0,_0x8fc32a=applyModelCall(_0x8fc32a,{'usage':_0x54e9f1[_0x3c3e48(_0x3b934b._0x462ddd,0x523,0x56d,0x4ec)][_0x3c3e48(0x55d,0x624,0x5ab,0x573)],'modelTimeMs':_0x54e9f1[_0x3c3e48(_0x3b934b._0x1bcd66,_0x3b934b._0x2edb0a,_0x3b934b._0xa00e8a,0x52f)]??_0x2ce359}),_0x32bd86();return;}if(_0x54e9f1[_0x269d31(0x175,0xc1,0xf4,0x136)]===_0x269d31(_0x3b934b._0x428a87,_0x3b934b._0x38a6ce,0x4e,0x30)){_0x8fc32a={..._0x8fc32a,'toolCallCount':_0x8fc32a['toolCallCount']+0x1},_0x32bd86();return;}function _0x3c3e48(_0x3f0249,_0x23c2a7,_0x2a86b6,_0x48e528){return _0x3519(_0x2a86b6-_0x3a9ee2._0x3a62c1,_0x48e528);}function _0x269d31(_0x3f1fe4,_0x17062f,_0x45ec35,_0x2e8cbf){return _0x3519(_0x45ec35- -_0x363680._0x4f347e,_0x2e8cbf);}_0x54e9f1[_0x3c3e48(_0x3b934b._0x23ec0c,_0x3b934b._0x2a72e7,0x5d7,0x5ea)]===_0x3c3e48(_0x3b934b._0x5b7f68,0x5de,_0x3b934b._0x5a9873,0x5f2)&&(_0x8fc32a={..._0x8fc32a,'requestCount':addModelUsageInteger(_0x8fc32a['requestCount'],0x1)},_0x32bd86());},'recordExternalUsage'(_0x1af3f7){const _0x3eaefa=mergeExternalUsage(_0x8fc32a,_0x1af3f7);_0x8fc32a=_0x3eaefa,_0x32bd86();},'reset'(){_0x8fc32a=createEmptySnapshot(),_0x49e98a=void 0x0,_0x32bd86();},'restore'(_0xebe56b){let _0x52896c=createEmptySnapshot();function _0x2e9c81(_0x1dd8fa,_0x208e7f,_0x36cb55,_0x4a7b8d){return _0x3519(_0x1dd8fa-_0x4c4ef9._0x414041,_0x4a7b8d);}for(const _0x52f567 of _0xebe56b[_0x2e9c81(0x573,_0x50c30e._0x7b5115,_0x50c30e._0x3ac4ab,_0x50c30e._0x499711)]){_0x52896c=applyModelCall(_0x52896c,{'usage':_0x52f567['usage'],'modelTimeMs':_0x52f567[_0x5b0ec0(0x2e1,_0x50c30e._0x105e0b,0x39e,_0x50c30e._0xfbbdaa)],'completesRequest':_0x52f567[_0x2e9c81(_0x50c30e._0xf790aa,_0x50c30e._0x2d74a0,0x4e8,0x4d9)]});}const _0xdbb13a=requireModelUsageInteger(_0xebe56b['missingModelCallCount']);_0x52896c={..._0x52896c,'toolCallCount':_0xebe56b['toolCallCount'],'historicalMetricsComplete':_0xdbb13a===0x0,'missingHistoricalModelCallCount':_0xdbb13a};let _0x17d64d=_0x52896c;if(_0xebe56b[_0x2e9c81(_0x50c30e._0x444bb6,0x5e3,0x631,0x564)]!==void 0x0)try{_0x17d64d=mergeExternalUsage(_0x52896c,_0xebe56b[_0x2e9c81(_0x50c30e._0x444bb6,0x5e0,_0x50c30e._0x1eb80f,0x631)]);}catch(_0x58022f){if(!(_0x58022f instanceof ModelUsageOverflowError))throw _0x58022f;}_0x8fc32a=_0x17d64d,_0x49e98a=void 0x0;function _0x5b0ec0(_0x33853c,_0x5a19fb,_0x12b7d6,_0x165765){return _0x3519(_0x5a19fb-_0x20c6e2._0x4d2a72,_0x165765);}_0x32bd86();},'subscribe'(_0x504ccd){const _0x2909ff={_0x543728:0x5b2,_0x333dbe:0x545},_0x12bed5={_0x29e90b:0x24e};_0x19baba[_0x44c8de(_0xd5f02b._0x17bfed,_0xd5f02b._0x1d9f38,_0xd5f02b._0xd37eb2,_0xd5f02b._0x11a6d8)](_0x504ccd);function _0x44c8de(_0x368bce,_0x3b2e5c,_0x355253,_0x5a6963){return _0x3519(_0x355253-_0x12bed5._0x29e90b,_0x3b2e5c);}return()=>{const _0x5dcee9={_0x3f2c77:0x11d};function _0xd02d24(_0x3d0c9c,_0x250517,_0x23cad1,_0x5075c1){return _0x44c8de(_0x3d0c9c-0x136,_0x5075c1,_0x3d0c9c-_0x5dcee9._0x3f2c77,_0x5075c1-0x170);}_0x19baba[_0xd02d24(_0x2909ff._0x543728,0x53e,_0x2909ff._0x333dbe,0x616)](_0x504ccd);};}};}function normalizeExecutionScope(_0x3fb0eb){const _0x4ff570={_0x244706:0x3ef,_0x7b44b1:0x41d,_0x212455:0x39a,_0x81f059:0x2ad,_0x26381d:0x323},_0x582c56={_0x4c2888:0x188,_0x43b476:0x104},_0x57388c={_0x290138:0x1aa};function _0x5865e4(_0x1b0623,_0x2e6751,_0x2c5285,_0x2a8ba3){return _0xf3454f(_0x2e6751-_0x57388c._0x290138,_0x2e6751-0xee,_0x1b0623,_0x2a8ba3-0x125);}function _0x2fb77e(_0x20419a,_0xe33636,_0x34573e,_0x157070){return _0x3f402d(_0x20419a-_0x582c56._0x4c2888,_0x34573e-0xeb,_0x34573e-_0x582c56._0x43b476,_0xe33636);}return{'agentId':_0x3fb0eb?.[_0x5865e4(0x468,_0x4ff570._0x244706,0x458,0x43c)]??_0x5865e4(0x3af,_0x4ff570._0x7b44b1,0x443,_0x4ff570._0x212455),'toolCallPath':[..._0x3fb0eb?.[_0x2fb77e(0x279,_0x4ff570._0x81f059,0x2ed,_0x4ff570._0x26381d)]??[]]};}function makeExtensionContext(_0x48d27c,_0x416baa){const _0x3721d7={_0x1ace2a:0x1f7},_0x1cfdbe={_0x5cfe4b:0x155,_0x2e35f0:0x3a6};function _0x3e5128(_0x1ce517,_0x1d34cb,_0x52d1c3,_0xd4ba0c){return _0x3f402d(_0x1ce517-_0x1cfdbe._0x5cfe4b,_0x52d1c3- -_0x1cfdbe._0x2e35f0,_0x52d1c3-0x60,_0x1d34cb);}return{'state':_0x48d27c,'delivery':_0x3e5128(-0x1b7,-0x1c3,-_0x3721d7._0x1ace2a,-0x199),'executionScope':_0x416baa};}async function runStage(_0xa48b5e,_0x3d1742,_0x1b0993,_0x4dc5e7){const _0x54c86d={_0x798696:0x41c,_0x5abf6c:0x419,_0x315288:0x427},_0x140df5={_0x1826fb:0x14c,_0x5acefd:0x1b6},_0xf7e5bb=await _0xa48b5e[_0x5df33e(0x433,_0x54c86d._0x798696,0x48e,0x3e4)](_0x3d1742,_0x1b0993,_0x4dc5e7);function _0x543edf(_0x5bd111,_0x2e9595,_0x180696,_0x36e9ee){return _0xf3454f(_0x180696-0x1b1,_0x2e9595-0xe7,_0x2e9595,_0x36e9ee-0x22);}function _0x5df33e(_0x4cd1be,_0x58db88,_0x290f6a,_0x170d24){return _0xf3454f(_0x4cd1be-_0x140df5._0x1826fb,_0x58db88-0x1d5,_0x290f6a,_0x170d24-_0x140df5._0x5acefd);}return await _0xa48b5e[_0x543edf(0x424,0x3de,_0x54c86d._0x5abf6c,_0x54c86d._0x315288)](_0x3d1742,_0xf7e5bb,_0x4dc5e7),_0xf7e5bb;}async function emitEvent2(_0x376cb0,_0xb79cea,_0x5713a7){await _0x376cb0?.(_0xb79cea,_0x5713a7);}function replaceToolUseBlocks(_0x4f437f,_0x59776d){const _0x439ebe={_0x4906ed:0x3c,_0x4c87c4:0x19,_0x568d64:0x25,_0x49d2f1:0x49},_0x4f1282={_0x2ef12c:0x229,_0x107c4c:0x30e,_0x482739:0x23b},_0x5c27ee={_0x370efb:0xbb,_0x170fe5:0x286,_0x46255f:0xd7},_0x5a707a={_0x420866:0x12a},_0x52f424={_0x194bdf:0x1f2,_0x19a610:0x19c};let _0x4e0d0f=0x0;function _0x220f63(_0x582940,_0x465ca6,_0x340e69,_0x1ef9c7){return _0x3f402d(_0x582940-_0x52f424._0x194bdf,_0x465ca6- -_0x52f424._0x19a610,_0x340e69-0xcd,_0x1ef9c7);}return{..._0x4f437f,'content':_0x4f437f[_0x220f63(_0x439ebe._0x4906ed,_0x439ebe._0x4c87c4,_0x439ebe._0x568d64,_0x439ebe._0x49d2f1)]['map'](_0x2919e9=>{if(_0x2919e9[_0x32f0b0(0x280,_0x4f1282._0x2ef12c,_0x4f1282._0x107c4c,_0x4f1282._0x482739)]!==_0x184cf4(0x33d,0x30d,0x281,0x2fc))return _0x2919e9;const _0x3f0eab=_0x59776d[_0x4e0d0f];_0x4e0d0f+=0x1;function _0x32f0b0(_0xfc11c5,_0x1470c5,_0x262ce9,_0x5261bb){return _0x220f63(_0xfc11c5-0x22,_0xfc11c5-0x1e9,_0x262ce9-_0x5a707a._0x420866,_0x1470c5);}function _0x184cf4(_0x3d6a6e,_0x237e90,_0x4a2a6b,_0x320235){return _0x220f63(_0x3d6a6e-_0x5c27ee._0x370efb,_0x320235-_0x5c27ee._0x170fe5,_0x4a2a6b-_0x5c27ee._0x46255f,_0x237e90);}return structuredClone(_0x3f0eab);})};}function createAssistantMessageId(_0x4155a3,_0x486dfa){return _0x4155a3+':assistant:'+_0x486dfa;}function createReasoningMessageId(_0x1f7a3b){const _0x158a31={_0x2c5456:0xc0,_0x1d2ca9:0x94,_0x4ee095:0xec},_0x3c208e={_0x560713:0x1ff};function _0xf36914(_0x343bfe,_0x26a973,_0x514686,_0x288822){return _0x3f402d(_0x343bfe-0xa8,_0x514686- -_0x3c208e._0x560713,_0x514686-0x1b,_0x288822);}return _0x1f7a3b+_0xf36914(-0x15,-_0x158a31._0x2c5456,-_0x158a31._0x1d2ca9,-_0x158a31._0x4ee095);}function withMessageId(_0x2be50c,_0x5b0d08){if(_0x2be50c['id']===_0x5b0d08)return _0x2be50c;return{..._0x2be50c,'id':_0x5b0d08};}function createAssistantChunkEvent(_0x57f95b,_0x48442f){const _0xae5410={_0x4636be:0x42,_0x1bca06:0x11,_0xe98a0b:0x21b,_0x3b08c8:0x1c5,_0x26d0bc:0x1d2,_0x53c7f7:0x154,_0x282224:0x202,_0x2ac4af:0x200,_0xeed6da:0x12e,_0x3047cc:0xbd,_0x25a00a:0xe8,_0x2f795b:0xb1,_0x3ff4fc:0xc6,_0x4c3e87:0x132,_0x6fedd5:0x7e,_0x57eedd:0x148,_0x538127:0x101,_0x181bd5:0x65},_0x149577={_0x96737a:0x10e},_0x30edb8={_0x55d819:0xd1};function _0x1cf832(_0x5957d4,_0xee3e1b,_0x354c2e,_0x1c012e){return _0xf3454f(_0xee3e1b- -0x2f8,_0xee3e1b-0xc,_0x1c012e,_0x1c012e-_0x30edb8._0x55d819);}function _0x96ae87(_0x2dd5e0,_0x1c6f9c,_0x3d54f1,_0x5cd8b6){return _0x3f402d(_0x2dd5e0-_0x149577._0x96737a,_0x3d54f1-0x5b,_0x3d54f1-0xc7,_0x5cd8b6);}if(_0x57f95b[_0x1cf832(_0xae5410._0x4636be,_0xae5410._0x1bca06,0x2b,-0x1d)]!==_0x96ae87(_0xae5410._0xe98a0b,_0xae5410._0x3b08c8,0x23b,_0xae5410._0x26d0bc))return void 0x0;if(_0x57f95b[_0x96ae87(_0xae5410._0x53c7f7,_0xae5410._0x282224,0x1ab,_0xae5410._0x2ac4af)]===void 0x0)return void 0x0;return{'type':_0x1cf832(-_0xae5410._0xeed6da,-_0xae5410._0x3047cc,-_0xae5410._0x25a00a,-0x104),'index':_0x57f95b[_0x1cf832(-_0xae5410._0x2f795b,-_0xae5410._0x3ff4fc,-0x65,-_0xae5410._0x4c3e87)]??0x0,'messageId':_0x48442f,'chunk':{'type':_0x1cf832(-0x5c,-_0xae5410._0x4636be,-0xc,-_0xae5410._0x6fedd5),'index':_0x57f95b[_0x1cf832(-_0xae5410._0x57eedd,-0xc6,-_0xae5410._0x538127,-0x84)]??0x0,'text':_0x57f95b[_0x1cf832(-0xc9,-0xd2,-0x9d,-_0xae5410._0x181bd5)]}};}function createToolUseChunkEvent(_0x207c62,_0x3bd85b){const _0x43d379={_0x5372a8:0xa2,_0x1083b2:0xb3,_0x3a821f:0xc,_0x560df4:0x3e,_0x118389:0xa6,_0x462586:0x6a,_0x4a8f4b:0x49,_0xeb4f14:0x31,_0x438d6b:0x5c,_0xd66d43:0xb,_0x35b3be:0x40},_0x3b6dc9={_0x5c94b8:0x1eb};function _0x280368(_0x229321,_0x35d3f3,_0xe85dc3,_0x20e2b9){return _0xf3454f(_0x20e2b9- -0x26d,_0x35d3f3-0x166,_0x35d3f3,_0x20e2b9-0x1bb);}function _0x3b704b(_0x306916,_0x5887f1,_0x457122,_0x50e74f){return _0x3f402d(_0x306916-0x199,_0x50e74f- -_0x3b6dc9._0x5c94b8,_0x457122-0x53,_0x306916);}if(_0x207c62[_0x280368(_0x43d379._0x5372a8,0x105,0xba,0x9c)]!==_0x3b704b(_0x43d379._0x1083b2,_0x43d379._0x3a821f,0x8b,0x4c))return void 0x0;return{'type':_0x3b704b(_0x43d379._0x560df4,0x5f,_0x43d379._0x118389,0x3a),'index':_0x207c62[_0x280368(-_0x43d379._0x462586,_0x43d379._0x4a8f4b,0x20,-0x3b)]??0x0,'messageId':_0x3bd85b,'chunk':{'type':'tool_use_delta','id':_0x207c62['id']??'','index':_0x207c62['index']??0x0,..._0x207c62['name']!==void 0x0?{'name':_0x207c62[_0x3b704b(-0xb6,0x10,_0x43d379._0xeb4f14,-_0x43d379._0x438d6b)]}:{},..._0x207c62[_0x3b704b(_0x43d379._0xd66d43,-0x80,-0xca,-_0x43d379._0x35b3be)]!==void 0x0?{'inputDelta':_0x207c62['inputDelta']}:{}}};}function createReasoningChunkEvent(_0x1e968a,_0x4af53c){const _0x1bfab4={_0x4041a8:0x30,_0x18aece:0x198,_0xba08da:0x25,_0x5ca043:0x20b,_0x406f51:0x1af,_0x1d3109:0x1c7,_0x29d088:0x54,_0xc4dd62:0x7c,_0x9b2de8:0x12,_0x1737a6:0xa7,_0xd88cfc:0xd2,_0x205f87:0x185,_0x772fbf:0x27,_0xa91e2e:0x5,_0x3bbfd2:0x22f,_0x596219:0x243,_0x44aade:0x21a,_0x1026d9:0x61,_0x57baf3:0x1cb,_0x585d12:0x20c,_0x2757c5:0x210,_0x59ccb3:0x67,_0x2ffa6f:0xe0,_0x4a051d:0xcd,_0x3c295b:0x131,_0x28a7a3:0x1e9,_0x239bf1:0x203,_0x153b85:0x1db,_0x4129e7:0x1d2,_0x157141:0x12a,_0x24a686:0xaa,_0x54b3e3:0x25,_0x432715:0x214,_0x154a51:0x164,_0x555186:0x1d3,_0x3d16dc:0x1e4,_0x153522:0x15d,_0x8d8299:0x85,_0x5a8572:0xd3,_0x33ec1c:0x50,_0x9b176a:0x31,_0x547b6b:0x5d,_0x425c01:0xb2},_0x23abfe={_0x2c59e5:0x14d},_0x41b58a={_0x3009f5:0x130};function _0x20e1af(_0x26c96b,_0x457355,_0x4b8ebd,_0x30351c){return _0xf3454f(_0x457355- -0x2d9,_0x457355-_0x41b58a._0x3009f5,_0x4b8ebd,_0x30351c-0x15f);}function _0x329645(_0x524911,_0x9dba0c,_0x533869,_0x513f34){return _0xf3454f(_0x524911- -0x43d,_0x9dba0c-_0x23abfe._0x2c59e5,_0x9dba0c,_0x513f34-0x9d);}switch(_0x1e968a[_0x20e1af(0x28,_0x1bfab4._0x4041a8,0x9,-0x17)]){case _0x329645(-0x1e0,-0x1c7,-0x22f,-_0x1bfab4._0x18aece):return{'type':_0x20e1af(0x0,0x0,-0x69,-_0x1bfab4._0xba08da),'index':_0x1e968a[_0x329645(-_0x1bfab4._0x5ca043,-_0x1bfab4._0x406f51,-0x208,-_0x1bfab4._0x1d3109)],'messageId':_0x4af53c,'chunk':{'type':_0x20e1af(-_0x1bfab4._0x29d088,-_0x1bfab4._0xc4dd62,-_0x1bfab4._0x9b2de8,-0x6),'index':_0x1e968a[_0x20e1af(-0x3f,-_0x1bfab4._0x1737a6,-0x12f,-_0x1bfab4._0xd88cfc)]??0x0,'thinking':_0x1e968a[_0x329645(-0x1a8,-_0x1bfab4._0x205f87,-0x21e,-0x22d)]??''},'text':_0x1e968a[_0x20e1af(-_0x1bfab4._0xba08da,-0x44,_0x1bfab4._0x772fbf,_0x1bfab4._0xa91e2e)]??''};case _0x329645(-0x210,-_0x1bfab4._0x3bbfd2,-_0x1bfab4._0x596219,-_0x1bfab4._0x44aade):return{'type':_0x20e1af(-0x18,0x0,-_0x1bfab4._0x1026d9,0x83),'index':_0x1e968a[_0x329645(-_0x1bfab4._0x57baf3,-0x201,-0x1bc,-_0x1bfab4._0x585d12)],'messageId':_0x4af53c,'chunk':{'type':_0x329645(-_0x1bfab4._0x2757c5,-0x214,-0x1aa,-0x237),'contentIndex':_0x1e968a[_0x20e1af(-0xa9,-_0x1bfab4._0x59ccb3,-0xf2,-0xe1)]??0x0,'delta':_0x1e968a[_0x20e1af(-_0x1bfab4._0x2ffa6f,-0xaa,-_0x1bfab4._0x4a051d,-_0x1bfab4._0x3c295b)]??'','itemId':_0x1e968a[_0x329645(-_0x1bfab4._0x28a7a3,-_0x1bfab4._0x239bf1,-_0x1bfab4._0x153b85,-_0x1bfab4._0x4129e7)]??'','outputIndex':_0x1e968a[_0x329645(-0x192,-_0x1bfab4._0x157141,-0x1e4,-0x133)]??0x0},'text':_0x1e968a[_0x20e1af(-0xc2,-_0x1bfab4._0x24a686,-0xfd,-_0x1bfab4._0x54b3e3)]??''};case _0x329645(-0x1e4,-0x1b1,-_0x1bfab4._0x432715,-0x23a):return{'type':_0x329645(-_0x1bfab4._0x154a51,-0x1e9,-_0x1bfab4._0x555186,-0x156),'index':_0x1e968a['summaryIndex'],'messageId':_0x4af53c,'chunk':{'type':_0x329645(-_0x1bfab4._0x3d16dc,-0x1c4,-_0x1bfab4._0x153522,-0x21c),'delta':_0x1e968a['delta']??'','itemId':_0x1e968a[_0x20e1af(-0xf0,-_0x1bfab4._0x8d8299,-_0x1bfab4._0x5a8572,-0x60)]??'','outputIndex':_0x1e968a['outputIndex']??0x0,'summaryIndex':_0x1e968a[_0x20e1af(-_0x1bfab4._0x772fbf,0x15,-_0x1bfab4._0x33ec1c,-_0x1bfab4._0x9b176a)]??0x0},'text':_0x1e968a[_0x20e1af(-_0x1bfab4._0x547b6b,-0xaa,-0x98,-_0x1bfab4._0x425c01)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x12431a){return structuredClone(_0x12431a);}function cloneToolResultForPublication2(_0x51f3d6){const _0x72102b={_0x1ecbbd:0x192,_0x545f56:0x18b,_0x38f01a:0x89},_0x358a59={_0x223fea:0x51},_0x3dffde={_0x31d81d:0x4f},_0x128431=_0x51f3d6['callId'],_0x3a31e6=_0x51f3d6[_0x43b0d5(_0x72102b._0x1ecbbd,0x11a,_0x72102b._0x545f56,0x1c5)];function _0x1fff83(_0x4a9e3c,_0x662afd,_0x463d8e,_0x13d8bf){return _0xf3454f(_0x662afd- -0x277,_0x662afd-0x1e7,_0x463d8e,_0x13d8bf-_0x3dffde._0x31d81d);}const {chunks:_0x4e1adc,..._0x32f8ce}=_0x51f3d6;function _0x43b0d5(_0x497b22,_0x39e64b,_0x840a46,_0x4edf8c){return _0x3f402d(_0x497b22-0x13c,_0x497b22- -_0x358a59._0x223fea,_0x840a46-0x177,_0x39e64b);}return{...structuredClone(_0x32f8ce),'callId':_0x128431,'toolName':_0x3a31e6,'chunks':_0x4e1adc[_0x43b0d5(0x10a,0xa9,0x138,_0x72102b._0x38f01a)](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x512f28){const _0x332c56={_0x22dc9:0x5b7,_0x236a52:0x52b,_0x35e05d:0x522,_0x4f1c77:0x27b,_0x9d12d2:0x247,_0x28371b:0x224,_0x3897ed:0x19b,_0x5c3add:0x181},_0x502644={_0x286dff:0x122,_0x34ba45:0x33d};function _0x26f242(_0x4dab35,_0x18705c,_0x432623,_0x2febd9){return _0x3f402d(_0x4dab35-_0x502644._0x286dff,_0x432623-_0x502644._0x34ba45,_0x432623-0x6c,_0x2febd9);}function _0x191f72(_0x7506e5,_0xf4c607,_0x7436d7,_0x564158){return _0x3f402d(_0x7506e5-0x104,_0x7506e5-0x3e,_0x7436d7-0x15c,_0x7436d7);}return _0x512f28[_0x26f242(0x520,_0x332c56._0x22dc9,_0x332c56._0x236a52,_0x332c56._0x35e05d)]===_0x191f72(_0x332c56._0x4f1c77,_0x332c56._0x9d12d2,_0x332c56._0x28371b,0x22b)&&_0x512f28['structured'][_0x191f72(_0x332c56._0x3897ed,_0x332c56._0x5c3add,0x1c9,0x186)]===!![];}async function executeModelRequest(_0x5a1aab,_0xcc09af,_0x2b0c45,_0x5367f5,_0x3dcc28,_0x132c94){const _0x75c90f={_0x4173d2:0x3c2,_0x48b073:0x2b7,_0xbf50a1:0x358,_0x263975:0x3bf,_0x3b4ba1:0x2cc,_0x2ff216:0x306,_0x2073c7:0xb1,_0x2929b0:0x1f,_0x154abc:0x24,_0x244598:0x6b,_0x11d4be:0x13,_0x4f42cc:0x26,_0xf326e2:0x13,_0x4cfbdb:0x3a2,_0x59e434:0x337,_0x473cec:0x387,_0x1a8bbd:0x344,_0x540b8c:0x350,_0x3def42:0x2fa,_0x3004ad:0x2f2,_0x26ff92:0x347,_0x3db659:0x2c4,_0x45885b:0x328,_0x568136:0x334,_0x24ba3f:0x2c5,_0x29b545:0x15,_0x8890dd:0x39,_0x3112fa:0x264,_0xf2b53e:0x322,_0x163050:0x2ab,_0x3288a7:0xde,_0xcdf3d5:0xb7,_0x236b2a:0x60,_0x1081ac:0x3b,_0x4c46c2:0x38,_0xe81051:0xa4,_0x40ee15:0x5d,_0x288586:0x28,_0x8a897d:0x8b,_0x198ac7:0x9,_0x2929cf:0x3ba,_0x48d2e1:0x21c,_0x213d48:0x281,_0xf3ab6c:0x22f,_0xf9265f:0x336,_0x4ad435:0xe6,_0xdc6d4:0x3cf,_0x56901a:0xf2,_0xabf28b:0x9e,_0x9f1318:0x31b,_0x3126c2:0x313,_0x294097:0x262,_0x5d6b74:0x26b,_0x4b81c3:0x2a6,_0x4757ed:0x2f2,_0x6b02:0x122,_0x46314e:0x100,_0x3ea75e:0xb9,_0x20eb05:0xa0,_0x4c94a8:0x2dd,_0x67d78a:0x35a,_0x1c1c1b:0x2fb,_0x1d0383:0x29e,_0x14ab27:0x18,_0x66eb41:0x2f,_0x129f92:0x33d,_0x127204:0x273,_0xb2e607:0x50,_0x1d8c10:0x16,_0x9e138d:0x39,_0x5a0e5e:0x3e,_0x3aca28:0x24},_0x3b8c5b={_0xa0a542:0x7e,_0x261807:0xfc};throwIfAborted(_0xcc09af['signal']);function _0x29b810(_0x5e0c05,_0x3a8443,_0x560948,_0x281155){return _0xf3454f(_0x560948-_0x3b8c5b._0xa0a542,_0x3a8443-_0x3b8c5b._0x261807,_0x281155,_0x281155-0x1c);}function _0x4d02a1(_0x55fed3,_0x4f1bdd,_0x2ae692,_0x22aa17){return _0xf3454f(_0x22aa17- -0x23b,_0x4f1bdd-0x190,_0x55fed3,_0x22aa17-0x5d);}if(!_0xcc09af[_0x29b810(_0x75c90f._0x4173d2,0x3c6,0x347,0x3aa)]||!_0x2b0c45[_0x29b810(0x2c3,_0x75c90f._0x48b073,0x295,0x2bc)])return await _0x2b0c45[_0x29b810(0x36a,0x2cb,_0x75c90f._0xbf50a1,_0x75c90f._0x263975)](_0x5a1aab,{'signal':_0xcc09af[_0x29b810(0x2aa,0x2b7,_0x75c90f._0x3b4ba1,_0x75c90f._0x2ff216)]});let _0x4d4434;for await(const _0x4816b4 of _0x2b0c45[_0x4d02a1(-_0x75c90f._0x2073c7,-0x8,-_0x75c90f._0x2929b0,-_0x75c90f._0x154abc)](_0x5a1aab,{'signal':_0xcc09af[_0x4d02a1(0x12,_0x75c90f._0x244598,0xb,_0x75c90f._0x11d4be)]})){throwIfAborted(_0xcc09af[_0x4d02a1(-0x1d,0xa1,-_0x75c90f._0x4f42cc,_0x75c90f._0xf326e2)]);if(_0x4816b4[_0x29b810(_0x75c90f._0x4cfbdb,_0x75c90f._0x59e434,_0x75c90f._0x473cec,_0x75c90f._0x1a8bbd)]==='done'){_0x132c94[_0x29b810(_0x75c90f._0x540b8c,_0x75c90f._0x3def42,_0x75c90f._0x3004ad,_0x75c90f._0x26ff92)]['reasoningStartedAt']!==void 0x0&&_0x132c94[_0x29b810(_0x75c90f._0x3db659,0x35e,_0x75c90f._0x3004ad,_0x75c90f._0x45885b)][_0x29b810(_0x75c90f._0x568136,0x2f7,_0x75c90f._0x24ba3f,0x2a3)]===void 0x0&&(_0x132c94[_0x4d02a1(-_0x75c90f._0x29b545,0x97,-0x1d,_0x75c90f._0x8890dd)][_0x29b810(_0x75c90f._0x3112fa,_0x75c90f._0xf2b53e,_0x75c90f._0x24ba3f,_0x75c90f._0x163050)]=Date['now']());_0x4d4434=_0x4816b4['response'];continue;}if(_0x4816b4[_0x4d02a1(_0x75c90f._0x3288a7,_0x75c90f._0xcdf3d5,0xa0,0xce)]===_0x4d02a1(0x35,0x93,_0x75c90f._0x236b2a,_0x75c90f._0x1081ac)){await emitEvent2(_0x5367f5['onEvent'],{'type':'provider_stream_reset','assistantMessageId':_0x132c94[_0x4d02a1(-_0x75c90f._0x4c46c2,0x19,_0x75c90f._0xe81051,_0x75c90f._0x154abc)],'reasoningMessageId':_0x132c94[_0x4d02a1(_0x75c90f._0x40ee15,0x33,_0x75c90f._0x288586,0x84)]},_0x3dcc28),delete _0x132c94[_0x4d02a1(0x46,-0x55,_0x75c90f._0x8a897d,_0x75c90f._0x8890dd)]['reasoningStartedAt'],delete _0x132c94['meta'][_0x4d02a1(_0x75c90f._0x198ac7,-0x3d,0x1b,0xc)];continue;}if(_0x4816b4[_0x29b810(0x366,0x35f,0x387,_0x75c90f._0x2929cf)]===_0x29b810(0x30f,_0x75c90f._0x48d2e1,_0x75c90f._0x213d48,_0x75c90f._0xf3ab6c)){await emitEvent2(_0x5367f5['onEvent'],{..._0x4816b4,'assistantMessageId':_0x132c94[_0x29b810(0x332,_0x75c90f._0xf9265f,0x2dd,0x2a3)]},_0x3dcc28);continue;}const _0x41d9e4=createReasoningChunkEvent(_0x4816b4,_0x132c94[_0x4d02a1(0xca,0xc8,_0x75c90f._0x4ad435,0x84)]);if(_0x41d9e4&&_0x41d9e4[_0x29b810(0x313,0x413,_0x75c90f._0x473cec,_0x75c90f._0xdc6d4)]===_0x4d02a1(_0x75c90f._0x56901a,0x2b,0x12c,_0x75c90f._0xabf28b)&&_0x41d9e4[_0x4d02a1(-0x12,-0x2b,-0x2c,-0x15)][_0x29b810(0x302,0x2f6,0x31f,0x2ca)]>0x0){_0x132c94[_0x29b810(_0x75c90f._0x9f1318,_0x75c90f._0x3126c2,_0x75c90f._0x3004ad,0x296)][_0x29b810(_0x75c90f._0x294097,0x2ca,0x2e8,_0x75c90f._0x5d6b74)]===void 0x0&&(_0x132c94[_0x29b810(_0x75c90f._0x4b81c3,0x315,_0x75c90f._0x4757ed,0x264)]['reasoningStartedAt']=Date[_0x4d02a1(0xad,_0x75c90f._0x6b02,_0x75c90f._0x46314e,0xb7)]());await emitEvent2(_0x5367f5[_0x4d02a1(0x1e,0x4a,_0x75c90f._0x3ea75e,_0x75c90f._0x20eb05)],_0x41d9e4,_0x3dcc28);continue;}const _0x5c421d=createAssistantChunkEvent(_0x4816b4,_0x132c94[_0x29b810(0x358,0x28f,_0x75c90f._0x4c94a8,_0x75c90f._0x67d78a)]);if(_0x5c421d){_0x132c94[_0x29b810(0x2b5,_0x75c90f._0x1c1c1b,0x2f2,_0x75c90f._0x1d0383)][_0x4d02a1(-0x30,0x73,_0x75c90f._0x14ab27,_0x75c90f._0x66eb41)]!==void 0x0&&_0x132c94['meta'][_0x29b810(_0x75c90f._0x129f92,0x31a,0x2c5,_0x75c90f._0x127204)]===void 0x0&&(_0x132c94[_0x4d02a1(_0x75c90f._0xb2e607,_0x75c90f._0x1d8c10,-0x49,_0x75c90f._0x9e138d)]['reasoningCompletedAt']=Date['now']());await emitEvent2(_0x5367f5['onEvent'],_0x5c421d,_0x3dcc28);continue;}const _0x2f42f9=createToolUseChunkEvent(_0x4816b4,_0x132c94[_0x4d02a1(_0x75c90f._0x5a0e5e,0x2a,0x1d,_0x75c90f._0x3aca28)]);_0x2f42f9&&await emitEvent2(_0x5367f5['onEvent'],_0x2f42f9,_0x3dcc28);}if(!_0x4d4434)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x4d4434;}function makeTurnGuards(_0x439ff4,_0x4a5b24,_0x119d00,_0x18bf55,_0x4ac387){return{async 'stage'(_0x4f80a0,_0x1a9823){return throwIfAborted(_0x439ff4),await runStage(_0x4a5b24,_0x4f80a0,_0x1a9823,_0x18bf55);},async 'emit'(_0x54e4d1){throwIfAborted(_0x439ff4),await emitEvent2(_0x119d00,_0x54e4d1,_0x4ac387);},async 'stageUnchecked'(_0x383bec,_0x1a1b60){return await runStage(_0x4a5b24,_0x383bec,_0x1a1b60,_0x18bf55);},async 'emitUnchecked'(_0x55bf36){await emitEvent2(_0x119d00,_0x55bf36,_0x4ac387);}};}async function runTurn(_0x14044c,_0x19b869){const _0x407311={_0x22f982:0xb5,_0xad146e:0xa3,_0x166519:0x59,_0x4775d7:0x10d,_0x2c20ba:0x45d,_0x38e703:0x65,_0x4f0605:0x177,_0x3b2087:0x1ac,_0x1a7e9e:0xf1,_0x36796:0xdb,_0x534f83:0x6b,_0x1d7091:0x85,_0x1d2fbc:0x488,_0x120b70:0x141,_0x449e6b:0x457,_0x36a79f:0x157,_0x11f0b3:0xe0,_0x2b061b:0x7e,_0x1c5069:0x110,_0x4fe659:0x449,_0x19efb5:0x474,_0x189626:0x48b,_0xbb8b58:0x4dd,_0x348420:0x19b,_0x5b1f5f:0x1b8,_0x36930c:0x1a2,_0x397707:0x506,_0x542089:0x55c,_0xabc565:0x466,_0x436dee:0x4e3,_0x4dc618:0x502,_0x295238:0x180,_0x456714:0x10e,_0xd55af4:0x4c5,_0x38ad7b:0x44e,_0x578b70:0x15e,_0x67c993:0x529,_0x2038bf:0x4d3,_0x39ea0a:0x4d2,_0x175267:0x4c5,_0xd05d00:0x1ac,_0x52ad7a:0x1c5,_0xae606c:0x135,_0x14202a:0x1c2,_0x5a13b0:0x4ff,_0x88fb45:0x4f1,_0x97ad00:0x4da,_0x2ff8f7:0x546,_0x325953:0x56f,_0x4129ac:0x4fa,_0x3c3cf8:0x16c,_0x4416cd:0x100,_0x1a75a4:0x14a,_0x2f2edb:0xd2,_0x207f50:0xfb,_0x2b561:0x50a,_0x3eb1b5:0x51d,_0x34deb7:0x4a5,_0x361ab2:0x435,_0x8376c5:0x4d4,_0x263f7f:0x47d,_0x233efa:0xfb,_0x42e03c:0x18f,_0x2940a1:0x1be,_0xd4df6f:0x155,_0x53b4bb:0x52a,_0x14b037:0x415,_0x1cc697:0x4a0,_0x58cefa:0xb6,_0x5f5220:0xa4,_0x2b454b:0x54e,_0x4d4bd3:0x4e9,_0x5ab96b:0x458,_0x27b237:0x12e,_0x15c094:0x1e6,_0x564cc2:0x3ec,_0x8d1ca4:0x4a7,_0x23eaac:0x46b,_0x16b275:0x506,_0x4da53c:0x547,_0x1357a2:0x4ce,_0x2c2693:0x4c8,_0x5d064e:0x147,_0xed4916:0xdd,_0x2c33e8:0x177,_0x399685:0xec,_0x4877e3:0xd9,_0x36216b:0x158,_0x5d9548:0x17a,_0x64231b:0x192,_0x1c2e24:0x469,_0x2528ae:0x4cd,_0x3b71ce:0x4c7,_0x3774a7:0x545,_0x66865d:0x532,_0x2c0a57:0x58f,_0x37ae2c:0x480,_0x4412f4:0x17b,_0x19831d:0x1e4,_0x165071:0x15c,_0xde3738:0xd6,_0x2cc4f8:0x13a,_0x13ae63:0xcf,_0x4fdd09:0x5aa,_0x486aee:0x54b,_0x278ac9:0x5a8,_0x348aae:0x597,_0x84b0ef:0x56c,_0x22a8e0:0x5f6,_0x3d8621:0x473,_0x347b8f:0x81,_0x2e81c8:0x51b,_0x154abb:0x576,_0x30459d:0x4f6,_0x457b26:0x109,_0x38c623:0xbe,_0x3e1324:0xe6,_0x19a731:0x50a,_0x595cc2:0x4d3,_0x53383f:0x540,_0x5e61f4:0x123,_0xfb30f1:0xb4,_0x49c1ed:0x15a,_0x3098dc:0x146,_0x3699ed:0x154,_0x489b18:0x562,_0x2c971b:0x4c6,_0x17d8e1:0x133,_0x1a4e6e:0xdc,_0x941596:0x4d0,_0x3ea2e8:0x43f,_0x204884:0xef,_0x4f0127:0x16f,_0x3bff5c:0xfd,_0x391d0e:0x447,_0x5e178a:0x4f9,_0x21bdbb:0x4f4,_0x488ba0:0x414,_0x3b8c77:0x419,_0x9c9ada:0x65,_0x30b7c5:0x142,_0x1846b9:0x466,_0x352180:0x189,_0x54d2ef:0x185,_0x2e544d:0x15d,_0xa0b523:0xd8,_0x48aac9:0xa3,_0x5aa5a9:0xdf,_0xd683a6:0xc8},_0x15fe41={_0x2c1cc4:0x57,_0x1ea991:0x77,_0x23cff7:0x7f,_0x2e2e5e:0x1bd,_0x2902ac:0x152,_0x168824:0x6a,_0x3c99d0:0xd,_0x3194a0:0x5e,_0x245288:0x91,_0x2f42b0:0x38,_0x45829d:0x86,_0x19c52c:0x15d},_0x43a1fa={_0x341035:0x11d,_0x33f9f0:0x4a},_0x354a17={_0x291f1f:0x18a,_0x21b6ca:0x137,_0xbf039b:0x51,_0x44d732:0xad,_0x7b002d:0xd,_0x5dbd7e:0x13,_0x29f152:0x1c3,_0x15da81:0x139,_0x2aeba8:0x230,_0x333f6f:0x125,_0x1f780e:0x142,_0x3bd0e8:0x1b9,_0x37bf7c:0x122,_0x34d0f4:0x176,_0x19e9e0:0x9e},_0x34256e={_0x1dd078:0x32b},_0xbab4fd={_0x5442f3:0x1d3,_0x4cf252:0x1ed,_0x26382a:0x3e4,_0x55b35a:0x378,_0x19618e:0x37e,_0x12f6dd:0x3c5},_0x45b28d={_0x29b1ed:0x82,_0x219703:0x1c0,_0x1a7f8c:0x6a3},_0x5ee743={_0x36baa9:0x159},_0x3cf0ae=_0x19b869[_0x46ede8(_0x407311._0x22f982,_0x407311._0xad146e,_0x407311._0x166519,_0x407311._0x4775d7)];function _0x46ede8(_0x1376fb,_0x75f645,_0x401322,_0x590aa5){return _0x3f402d(_0x1376fb-0x19,_0x1376fb- -0x85,_0x401322-_0x5ee743._0x36baa9,_0x401322);}const _0x1c2f46=_0x14044c[_0x2829cb(0x45e,_0x407311._0x2c20ba,0x4a3,0x447)]??new AbortController()[_0x46ede8(0xf3,0x70,_0x407311._0x38e703,_0x407311._0x4f0605)],_0x7af775=normalizeExecutionScope(_0x19b869[_0x46ede8(0x153,_0x407311._0x3b2087,0x15b,_0x407311._0x1a7e9e)]),_0x4dbedd={'sessionId':_0x14044c[_0x46ede8(_0x407311._0x36796,0x90,_0x407311._0x534f83,_0x407311._0x1d7091)],'turnId':_0x14044c[_0x2829cb(_0x407311._0x1d2fbc,0x4fe,0x4f1,0x541)],'system':normalizeSystem(_0x14044c[_0x46ede8(0xf5,_0x407311._0x120b70,0xd1,0x15f)]),'messages':(_0x14044c[_0x2829cb(_0x407311._0x1d2fbc,_0x407311._0x449e6b,0x4d3,0x48d)]??[])['map'](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x19b869[_0x46ede8(0xd1,_0x407311._0x36a79f,_0x407311._0x11f0b3,_0x407311._0x2b061b)]==='function'?_0x19b869[_0x46ede8(0xd1,0x6c,_0x407311._0x1c5069,0x9c)]():_0x19b869['sessionDir']},_0x2d5277=makeExtensionContext(_0x4dbedd,_0x7af775),_0x3ded47={'sessionId':_0x4dbedd[_0x2829cb(_0x407311._0x4fe659,_0x407311._0x19efb5,_0x407311._0x189626,_0x407311._0xbb8b58)],'turnId':_0x4dbedd['turnId'],'state':_0x4dbedd,'executionScope':_0x7af775,'signal':_0x1c2f46,..._0x19b869[_0x46ede8(0x156,_0x407311._0x348420,_0x407311._0x5b1f5f,_0x407311._0x36930c)]?{'askUser':_0x19b869[_0x2829cb(0x485,0x4f6,_0x407311._0x397707,0x555)]}:{}},{stage:_0x25bde7,emit:_0x2d2244,stageUnchecked:_0x4b6c68,emitUnchecked:_0x1ca68b}=makeTurnGuards(_0x1c2f46,_0x19b869[_0x2829cb(_0x407311._0x542089,_0x407311._0xabc565,_0x407311._0x436dee,_0x407311._0x4dc618)],_0x19b869[_0x46ede8(_0x407311._0x295238,0x123,0x192,_0x407311._0x456714)],_0x2d5277,_0x3ded47),_0x58b4f4=async(_0x1fd0cf,_0x34a188)=>{const _0x54b0dd={_0x1aae27:0x7,_0x49bbcf:0x10a},_0x35ffc6=_0x34a188?{..._0x2d5277,'turnMeta':_0x34a188}:_0x2d5277;function _0x324254(_0x339f86,_0x5da86b,_0x540a5b,_0x248d44){return _0x2829cb(_0x339f86-_0x45b28d._0x29b1ed,_0x5da86b-_0x45b28d._0x219703,_0x248d44- -_0x45b28d._0x1a7f8c,_0x540a5b);}function _0x420213(_0x1fc196,_0x1c534a,_0x4b8462,_0x281396){return _0x46ede8(_0x1fc196-0x2b0,_0x1c534a-_0x54b0dd._0x1aae27,_0x1c534a,_0x281396-_0x54b0dd._0x49bbcf);}await _0x19b869[_0x324254(-0x1c2,-_0xbab4fd._0x5442f3,-_0xbab4fd._0x4cf252,-0x1c0)]['runObservers'](_0x420213(_0xbab4fd._0x26382a,_0xbab4fd._0x55b35a,_0xbab4fd._0x19618e,_0xbab4fd._0x12f6dd),structuredClone(_0x1fd0cf),_0x35ffc6);};function _0x2829cb(_0x16a1a4,_0x1bac34,_0x314ec0,_0x4329a8){return _0x3f402d(_0x16a1a4-0x5,_0x314ec0-_0x34256e._0x1dd078,_0x314ec0-0x1d4,_0x4329a8);}const _0x559c5d=_0x31940b=>{const _0x17468d={_0x5a1a0e:0x62b},_0x1b521a={_0x168c93:0xd8};function _0x2dcfbc(_0x340cb0,_0x10b99f,_0x50e9d2,_0x12f564){return _0x2829cb(_0x340cb0-0x17a,_0x10b99f-_0x1b521a._0x168c93,_0x10b99f- -0x4fb,_0x12f564);}function _0x506a48(_0x3b31b8,_0x247210,_0x2ed8e0,_0x7dc41b){return _0x2829cb(_0x3b31b8-0x166,_0x247210-0x59,_0x3b31b8- -_0x17468d._0x5a1a0e,_0x7dc41b);}if(_0x31940b?.[_0x506a48(-0x1ae,-0x139,-_0x354a17._0x291f1f,-_0x354a17._0x21b6ca)]==='coordinator')return{'submissionOrigin':_0x2dcfbc(-0x1e,-_0x354a17._0xbf039b,-0x8b,-_0x354a17._0x44d732),..._0x31940b[_0x2dcfbc(0x6c,_0x354a17._0x7b002d,-0x32,_0x354a17._0x5dbd7e)]===void 0x0?{}:{'subagentReport':structuredClone(_0x31940b['subagentReport'])}};if(_0x31940b?.[_0x506a48(-0x1ae,-_0x354a17._0x29f152,-_0x354a17._0x15da81,-_0x354a17._0x2aeba8)]===_0x506a48(-0x142,-0x173,-_0x354a17._0x333f6f,-0x1b0))return{'submissionOrigin':_0x506a48(-_0x354a17._0x1f780e,-_0x354a17._0x3bd0e8,-0x156,-0x16d),'senderAgentId':_0x31940b[_0x506a48(-_0x354a17._0x37bf7c,-0x99,-_0x354a17._0x34d0f4,-_0x354a17._0x19e9e0)]};return void 0x0;},_0x2c2b74=_0xe01771=>_0xe01771?.[_0x46ede8(0xcd,0xf7,0x14d,0x7c)]==='agent'?{'senderAgentId':_0xe01771[_0x2829cb(0x513,0x542,0x509,0x552)]}:void 0x0,_0x9865bb=_0x2e875f=>typeof _0x2e875f===_0x46ede8(0xe7,0x125,0x13c,0x131)&&_0x2e875f!==null&&'input'in _0x2e875f&&_0x46ede8(0x187,0x1cf,0x178,0x214)in _0x2e875f,_0x32010a=async _0x46f881=>{const _0x54555c={_0x1e1ea1:0x35,_0x5028d6:0x117};if(!_0x14044c[_0x27ac8c(_0x15fe41._0x2c1cc4,_0x15fe41._0x1ea991,0xb3,_0x15fe41._0x23cff7)])return 0x0;function _0x393a50(_0xa4188e,_0x376dbc,_0xbf73fc,_0x5e0417){return _0x46ede8(_0xbf73fc- -_0x43a1fa._0x341035,_0x376dbc-_0x43a1fa._0x33f9f0,_0xa4188e,_0x5e0417-0x1cb);}const _0x2f75be=await _0x14044c['drainSteering']();function _0x27ac8c(_0x337ad2,_0x307be6,_0x11bf5b,_0x5998c3){return _0x46ede8(_0x11bf5b- -_0x54555c._0x1e1ea1,_0x307be6-0xb1,_0x337ad2,_0x5998c3-_0x54555c._0x5028d6);}throwIfAborted(_0x1c2f46);if(_0x2f75be['length']===0x0)return 0x0;await _0x46f881?.();for(const _0x28a84d of _0x2f75be){const _0x1ab04e=_0x9865bb(_0x28a84d)?_0x28a84d['input']:_0x28a84d,_0x349faf=_0x9865bb(_0x28a84d)?_0x28a84d[_0x27ac8c(_0x15fe41._0x2e2e5e,0x121,_0x15fe41._0x2902ac,0x16f)]:void 0x0,_0x26356d=await _0x25bde7(_0x393a50(-_0x15fe41._0x168824,0x72,-0x8,-_0x15fe41._0x3c99d0),normalizeMessage(_0x1ab04e));throwIfAborted(_0x1c2f46),_0x4dbedd[_0x393a50(-_0x15fe41._0x3194a0,_0x15fe41._0x245288,0x6,_0x15fe41._0x2f42b0)][_0x27ac8c(0xad,0xe4,0x97,_0x15fe41._0x45829d)](_0x26356d),await _0x58b4f4(_0x26356d,_0x559c5d(_0x349faf)),await _0x2d2244({'type':_0x27ac8c(0xe6,0x1ae,_0x15fe41._0x19c52c,0xe7),'message':_0x26356d,..._0x2c2b74(_0x349faf)});}return _0x2f75be['length'];};let _0x1045e4=0x0;try{const _0xf985fd=await _0x25bde7(_0x2829cb(0x54e,0x4b1,_0x407311._0xd55af4,_0x407311._0x38ad7b),normalizeMessage(_0x14044c[_0x46ede8(0x16d,0xe1,0x1f9,_0x407311._0x578b70)]));_0x4dbedd[_0x2829cb(_0x407311._0x67c993,0x464,_0x407311._0x2038bf,_0x407311._0x4dc618)][_0x2829cb(_0x407311._0x39ea0a,0x42e,0x47c,_0x407311._0x175267)](_0xf985fd);_0x14044c[_0x46ede8(_0x407311._0xd05d00,0x1e9,_0x407311._0x52ad7a,_0x407311._0xae606c)]!==!![]&&await _0x58b4f4(_0xf985fd,_0x559c5d(_0x14044c[_0x2829cb(0x5b4,0x593,0x537,0x4d7)]));await _0x2d2244({'type':_0x46ede8(0x192,0x139,_0x407311._0x14202a,0x1fc),'message':_0xf985fd,..._0x2c2b74(_0x14044c['submission'])});while(!![]){throwIfAborted(_0x1c2f46),_0x1045e4+=0x1;const _0x5033cd=createAssistantMessageId(_0x4dbedd[_0x2829cb(0x489,_0x407311._0x5a13b0,_0x407311._0x88fb45,0x50f)],_0x1045e4),_0x4e02b3=createReasoningMessageId(_0x5033cd),_0xf960ed={'model':_0x3cf0ae[_0x2829cb(0x45f,0x4f6,_0x407311._0x97ad00,0x4d3)],'modelIdentity':_0x3cf0ae[_0x2829cb(_0x407311._0x2ff8f7,_0x407311._0x325953,0x52a,_0x407311._0x4129ac)],..._0x3cf0ae['provider']?{'provider':_0x3cf0ae[_0x46ede8(_0x407311._0x3c3cf8,_0x407311._0x4416cd,_0x407311._0x1a75a4,0x15e)]}:{}};let _0x22e40a={'model':_0x3cf0ae[_0x46ede8(0x12a,_0x407311._0x2f2edb,0x16d,_0x407311._0x207f50)],..._0x3cf0ae[_0x2829cb(_0x407311._0x2b561,0x504,_0x407311._0x2b561,0x56f)]!==void 0x0?{'maxTokens':_0x3cf0ae['maxTokens']}:{},'system':structuredClone(_0x4dbedd[_0x2829cb(0x421,_0x407311._0x3eb1b5,_0x407311._0x34deb7,_0x407311._0x361ab2)]),'messages':structuredClone(_0x4dbedd[_0x2829cb(0x4e1,_0x407311._0x8376c5,0x4d3,_0x407311._0x263f7f)]),'tools':_0x19b869['toolRuntime'][_0x46ede8(0x15d,_0x407311._0x233efa,_0x407311._0x42e03c,_0x407311._0x2940a1)](),'metadata':{'sessionId':_0x4dbedd[_0x46ede8(_0x407311._0x36796,0xf1,0xf9,_0x407311._0xd4df6f)],'turnId':_0x4dbedd['turnId'],'modelIdentity':_0x3cf0ae[_0x2829cb(0x5af,0x4a3,_0x407311._0x53b4bb,0x590)],..._0x3cf0ae[_0x2829cb(_0x407311._0x14b037,_0x407311._0x1cc697,0x466,0x4c7)]!==void 0x0?{'pricingProviderId':_0x3cf0ae[_0x46ede8(_0x407311._0x58cefa,0xaf,_0x407311._0x5f5220,0x110)]}:{}},..._0x19b869['outputFormat']?{'outputFormat':_0x19b869['outputFormat']}:{}};_0x22e40a=await _0x25bde7(_0x2829cb(0x4b9,0x569,0x517,_0x407311._0x2b454b),_0x22e40a);{const {pricingProviderId:_0x12d238,..._0x5e4731}=_0x22e40a[_0x2829cb(_0x407311._0x4d4bd3,_0x407311._0x5ab96b,0x4a4,_0x407311._0xabc565)];_0x22e40a={..._0x22e40a,'metadata':{..._0x5e4731,..._0x3cf0ae[_0x2829cb(0x3e5,0x3ff,_0x407311._0xabc565,0x421)]!==void 0x0?{'pricingProviderId':_0x3cf0ae[_0x46ede8(_0x407311._0x58cefa,0x3e,0xcd,_0x407311._0x27b237)]}:{}}};}await _0x2d2244({'type':'model_request','request':_0x22e40a});const _0x1ce60f=Date[_0x46ede8(0x197,_0x407311._0x15c094,0x126,0x15b)]();_0xf960ed[_0x2829cb(_0x407311._0x564cc2,_0x407311._0x8d1ca4,0x462,_0x407311._0x23eaac)]=_0x1ce60f;let _0x1540a0=await executeModelRequest(_0x22e40a,_0x14044c,_0x3cf0ae,_0x19b869,_0x3ded47,{'assistantMessageId':_0x5033cd,'reasoningMessageId':_0x4e02b3,'meta':_0xf960ed});const _0x165acd=Date[_0x2829cb(0x4bf,_0x407311._0x16b275,_0x407311._0x4da53c,_0x407311._0x1357a2)]();_0xf960ed[_0x46ede8(0x11e,_0x407311._0xd4df6f,0x128,0xb3)]=_0x165acd,_0x1540a0=await _0x25bde7(_0x2829cb(0x53f,0x54b,0x4fc,_0x407311._0x2c2693),_0x1540a0);_0x1540a0[_0x46ede8(_0x407311._0x5d064e,_0x407311._0xed4916,_0x407311._0x2c33e8,_0x407311._0x399685)]&&(_0x1540a0={..._0x1540a0,'providerState':{..._0x1540a0[_0x46ede8(0x147,_0x407311._0x4877e3,_0x407311._0x36216b,0xf1)],'originModelIdentity':_0x3cf0ae[_0x46ede8(_0x407311._0x5d9548,_0x407311._0x64231b,0x1b9,0x1b6)]}});_0x1540a0=withEstimatedModelCost(_0x22e40a,_0x1540a0);const _0x2f692b=Math[_0x2829cb(_0x407311._0x1c2e24,0x4d4,_0x407311._0x2528ae,0x54c)](0x0,_0x165acd-_0x1ce60f),_0x3be766={'version':0x1,'usage':structuredClone(_0x1540a0[_0x2829cb(_0x407311._0x3b71ce,_0x407311._0x3774a7,_0x407311._0x66865d,_0x407311._0x2c0a57)]),'modelTimeMs':_0x2f692b},_0x544d36=_0x3a223f=>({..._0xf960ed,'metrics':{..._0x3be766,'usage':structuredClone(_0x3be766['usage']),'completesRequest':_0x3a223f}});await _0x2d2244({'type':_0x2829cb(0x4dc,0x4db,_0x407311._0x37ae2c,0x50e),'response':_0x1540a0,'modelTimeMs':_0x2f692b}),_0x4dbedd['lastResponse']=_0x1540a0;let _0x178eb3=await _0x25bde7(_0x46ede8(_0x407311._0x4412f4,0x1e7,_0x407311._0x19831d,_0x407311._0x165071),withMessageId(responseToAssistantMessage(_0x1540a0),_0x5033cd));_0x178eb3=withMessageId(_0x178eb3,_0x5033cd);const _0x2b836d=getToolUseBlocks(_0x178eb3),_0x25c95e=await Promise['all'](_0x2b836d[_0x46ede8(_0x407311._0xde3738,0x90,_0x407311._0x2cc4f8,_0x407311._0x13ae63)](_0x5531c7=>_0x25bde7('beforeToolExecution',_0x5531c7)));_0x25c95e['length']>0x0&&(_0x178eb3=replaceToolUseBlocks(_0x178eb3,_0x25c95e));const _0x1020be=withMessageId(_0x178eb3,_0x5033cd);_0x178eb3=_0x1020be;const _0x15cb4f=createReasoningMessage(_0x178eb3),_0x38a66c=createAssistantTextMessage(_0x178eb3),_0x3bec5e=createToolUseMessage(_0x178eb3);_0x15cb4f&&await _0x2d2244({'type':_0x2829cb(_0x407311._0x4fdd09,0x5d0,0x555,_0x407311._0x486aee),'message':withMessageId(_0x15cb4f,_0x4e02b3)});_0x38a66c&&await _0x2d2244({'type':_0x2829cb(0x541,0x4f2,0x563,0x587),'message':withMessageId(_0x38a66c,_0x5033cd)});_0x3bec5e&&await _0x2d2244({'type':_0x2829cb(_0x407311._0x278ac9,_0x407311._0x348aae,_0x407311._0x84b0ef,_0x407311._0x22a8e0),'message':withMessageId(_0x3bec5e,_0x5033cd)});_0x4dbedd[_0x2829cb(0x447,_0x407311._0x3d8621,0x4d3,0x44a)][_0x46ede8(0xcc,0x66,_0x407311._0x347b8f,0x82)](_0x1020be);_0x25c95e['length']>0x0&&await _0x58b4f4(_0x1020be,_0x544d36(![]));for(const _0x44c880 of _0x25c95e){await _0x2d2244({'type':'tool_call','toolCall':structuredClone(_0x44c880)});}if(_0x25c95e[_0x2829cb(_0x407311._0x2e81c8,_0x407311._0x154abb,_0x407311._0x30459d,0x4e4)]===0x0){const _0x1d841=await _0x32010a(async()=>{await _0x58b4f4(_0x1020be,_0x544d36(![]));});if(_0x1d841>0x0)continue;const _0x59137c=await _0x25bde7(_0x46ede8(_0x407311._0x457b26,_0x407311._0x38c623,_0x407311._0x3e1324,0x15a),_0x178eb3),_0x250f0e=withMessageId(_0x59137c,_0x5033cd);return _0x4dbedd['finalMessage']=_0x250f0e,_0x4dbedd[_0x2829cb(_0x407311._0x1cc697,_0x407311._0x19a731,_0x407311._0x595cc2,_0x407311._0x53383f)][_0x4dbedd[_0x46ede8(_0x407311._0x5e61f4,0x13d,_0x407311._0xfb30f1,_0x407311._0x49c1ed)][_0x46ede8(_0x407311._0x3098dc,0x11f,0x170,_0x407311._0x3699ed)]-0x1]=_0x250f0e,await _0x58b4f4(_0x250f0e,_0x544d36(!![])),await _0x1ca68b({'type':_0x2829cb(0x5d6,_0x407311._0x489b18,0x548,_0x407311._0x2c971b),'message':_0x250f0e}),throwIfAborted(_0x1c2f46),await _0x19b869[_0x46ede8(_0x407311._0x17d8e1,_0x407311._0x1a4e6e,0xe9,0xbb)]['runObservers'](_0x2829cb(0x3f7,_0x407311._0x941596,0x470,_0x407311._0x3ea2e8),_0x4dbedd,_0x2d5277),await _0x2d2244({'type':'turn_complete','state':_0x4dbedd}),{'status':'completed','finalMessage':_0x250f0e,'state':_0x4dbedd};}let _0x3c8572=await _0x19b869[_0x46ede8(_0x407311._0x204884,0x141,_0x407311._0x4f0127,_0x407311._0x3bff5c)][_0x2829cb(0x483,_0x407311._0x391d0e,0x48c,_0x407311._0x5e178a)](_0x25c95e,_0x3ded47);const _0x386044=_0x3c8572['some'](isAbortedToolResult),_0x1c1c45=_0x386044?_0x4b6c68:_0x25bde7,_0xc0908d=_0x386044?_0x1ca68b:_0x2d2244;_0x3c8572=await Promise['all'](_0x3c8572[_0x2829cb(_0x407311._0x21bdbb,_0x407311._0x488ba0,0x486,_0x407311._0x3b8c77)](_0x44750f=>_0x1c1c45(_0x46ede8(0xaa,0x134,0x38,0xdf),_0x44750f))),_0x4dbedd[_0x46ede8(_0x407311._0x1a7e9e,_0x407311._0x9c9ada,0x178,_0x407311._0x30b7c5)][_0x2829cb(0x4e5,0x494,0x47c,0x43d)](..._0x3c8572);for(const _0x4ba108 of _0x3c8572){await _0xc0908d({'type':_0x2829cb(0x4ce,0x514,0x4c1,_0x407311._0x1846b9),'result':cloneToolResultForPublication2(_0x4ba108)});}const _0x258583=await _0x1c1c45(_0x46ede8(_0x407311._0x352180,0x11d,0x198,_0x407311._0x54d2ef),createToolResultUserMessage(_0x3c8572));await _0xc0908d({'type':_0x46ede8(0xe5,0x7d,_0x407311._0x2e544d,0xe6),'message':_0x258583}),_0x4dbedd['messages']['push'](_0x258583),await _0x58b4f4(_0x258583);if(_0x386044)return{'status':_0x46ede8(_0x407311._0xa0b523,_0x407311._0x1c5069,_0x407311._0x48aac9,_0x407311._0x5aa5a9),'state':_0x4dbedd};await _0x32010a();}}catch(_0x4ca493){if(!_0x1c2f46['aborted'])throw new TurnFailedError(_0x4ca493,_0x4dbedd);return{'status':_0x46ede8(_0x407311._0xa0b523,_0x407311._0xd683a6,0x162,0x14a),'state':_0x4dbedd};}}function createSessionId(){const _0x4517d6={_0xffee5a:0x329,_0x491fbd:0x38b,_0x41a443:0x326,_0x18f34c:0x453,_0x5df2e1:0x3ea,_0x37ce2f:0x435,_0x446ab4:0x399,_0x2e80b9:0x3b3,_0x1925c1:0x31a,_0x1ed31d:0x341,_0x48b83b:0x308,_0x4b300c:0x89,_0x1ef93f:0xc2},_0x131828={_0x4b0168:0x133},_0x9351d5={_0x411852:0x195,_0x35e09:0x14d};function _0x1ed629(_0x1c3de1,_0x1440ab,_0x1b21b8,_0x4de8ab){return _0x3f402d(_0x1c3de1-_0x9351d5._0x411852,_0x4de8ab- -0x7b,_0x1b21b8-_0x9351d5._0x35e09,_0x1440ab);}function _0x5ca1ec(_0x3882c2,_0x303cea,_0x258562,_0x34b0ed){return _0x3f402d(_0x3882c2-_0x131828._0x4b0168,_0x303cea-0x1ce,_0x258562-0x21,_0x258562);}return _0x5ca1ec(_0x4517d6._0xffee5a,0x32d,_0x4517d6._0x491fbd,_0x4517d6._0x41a443)+Date[_0x5ca1ec(_0x4517d6._0x18f34c,_0x4517d6._0x5df2e1,0x438,_0x4517d6._0x37ce2f)]()+'-'+Math[_0x5ca1ec(_0x4517d6._0x446ab4,_0x4517d6._0x2e80b9,0x439,0x383)]()[_0x5ca1ec(_0x4517d6._0x1925c1,_0x4517d6._0x1ed31d,_0x4517d6._0x48b83b,0x3ae)](0x10)[_0x1ed629(_0x4517d6._0x4b300c,0x122,0x14f,_0x4517d6._0x1ef93f)](0x2,0xa);}function createTurnId(_0x70ee5e){const _0x29d14d={_0x28419b:0x183,_0x2acc34:0x103,_0x354018:0x123};function _0x57b493(_0x35abd8,_0xc22e48,_0x46330c,_0x4c523f){return _0x3f402d(_0x35abd8-0x33,_0x35abd8- -0x5,_0x46330c-0x42,_0x4c523f);}return _0x57b493(_0x29d14d._0x28419b,0x17b,_0x29d14d._0x2acc34,_0x29d14d._0x354018)+_0x70ee5e;}function createDefaultMessage(_0x31b26f){if(_0x31b26f===void 0x0)return void 0x0;return normalizeUserInput(_0x31b26f);}function normalizeUserInput(_0x594714){const _0x1f3575={_0x180d6d:0x152,_0x3f3375:0x9a,_0x53d848:0x9b,_0x2b7a2f:0x17},_0x4fff9e={_0xf26bed:0x2c1,_0x3ae61d:0x31},_0xf06835={_0x29a2ce:0x154,_0x480109:0xf9};function _0x379fcf(_0x5e0e32,_0x453bf2,_0x1f6d1d,_0x2b4fe3){return _0xf3454f(_0x2b4fe3- -0xd9,_0x453bf2-_0xf06835._0x29a2ce,_0x5e0e32,_0x2b4fe3-_0xf06835._0x480109);}if(typeof _0x594714===_0x379fcf(0x12f,0x1cd,_0x1f3575._0x180d6d,0x15b))return{'role':'user','content':[{'type':_0x1dd2a7(-_0x1f3575._0x3f3375,-_0x1f3575._0x53d848,-_0x1f3575._0x2b7a2f,-0x41),'text':_0x594714}]};function _0x1dd2a7(_0x5bd60b,_0x12e2fb,_0x4b9d83,_0x4119f7){return _0xf3454f(_0x12e2fb- -_0x4fff9e._0xf26bed,_0x12e2fb-0x68,_0x4b9d83,_0x4119f7-_0x4fff9e._0x3ae61d);}return normalizeMessage(_0x594714);}function isTaggedSteeringInput(_0x573711){const _0x26e447={_0x4f595e:0x137},_0x2c6d8c={_0x14bd1c:0x69},_0x4e002e={_0x2d4148:0x10a,_0x34591b:0x22};function _0x2e7996(_0x2a4284,_0x2b8be1,_0x3910c9,_0x34a367){return _0x3f402d(_0x2a4284-_0x4e002e._0x2d4148,_0x34a367- -_0x4e002e._0x34591b,_0x3910c9-0x124,_0x2a4284);}function _0x57c6b2(_0x302466,_0x39feec,_0x46bca7,_0x5e4535){return _0x3f402d(_0x302466-0xcf,_0x39feec- -0x2fd,_0x46bca7-_0x2c6d8c._0x14bd1c,_0x5e4535);}return typeof _0x573711===_0x2e7996(0xf3,0x128,_0x26e447._0x4f595e,0x14a)&&_0x573711!==null&&_0x57c6b2(-0x144,-0x12d,-0xbf,-0x156)in _0x573711&&'submission'in _0x573711;}function resolveChatModel(_0x5f42cb){const _0x2d28e1={_0x2ec809:0xf,_0x17a264:0x10e,_0x5c16d9:0xb4,_0x39f1b4:0x108,_0x2fb791:0xb4},_0x3ac136={_0x48de2b:0x22},_0x4495e6={_0x1d4b67:0x318,_0x551252:0x55};if(!_0x5f42cb['chatModel'])throw new Error(_0x20e1ab(-_0x2d28e1._0x2ec809,-0x30,-0x5f,-0x8c));function _0x5e5544(_0xa506d2,_0x5801ec,_0xd30ef8,_0xf746c9){return _0xf3454f(_0xd30ef8- -_0x4495e6._0x1d4b67,_0x5801ec-0x1a8,_0xa506d2,_0xf746c9-_0x4495e6._0x551252);}function _0x20e1ab(_0x3a6856,_0x11c52e,_0x1ca569,_0x544d94){return _0x3f402d(_0x3a6856-0x199,_0x544d94- -0x1bc,_0x1ca569-_0x3ac136._0x48de2b,_0x3a6856);}return _0x5f42cb[_0x5e5544(-_0x2d28e1._0x17a264,-_0x2d28e1._0x5c16d9,-_0x2d28e1._0x39f1b4,-_0x2d28e1._0x2fb791)];}function normalizeExecutionScope2(_0x51d2c4){const _0x47898e={_0x342904:0x114,_0x462079:0x145,_0x354b19:0x20f,_0x18ebe7:0x1cd},_0x4358d5={_0x5e0211:0xd5},_0x4e2b88={_0x19d5e2:0x65};function _0x22d8a7(_0x27f299,_0x120b5f,_0x4d854d,_0x156aa5){return _0xf3454f(_0x156aa5- -0x10b,_0x120b5f-_0x4e2b88._0x19d5e2,_0x4d854d,_0x156aa5-0x19a);}function _0xea63aa(_0x5aa12d,_0x2f69f6,_0x51651f,_0x942448){return _0xf3454f(_0x5aa12d- -_0x4358d5._0x5e0211,_0x2f69f6-0x110,_0x51651f,_0x942448-0x1d8);}return{'agentId':_0x51d2c4?.[_0xea63aa(0x170,0xf4,_0x47898e._0x342904,0xf7)]??'assistant','toolCallPath':[..._0x51d2c4?.[_0x22d8a7(_0x47898e._0x462079,_0x47898e._0x354b19,0x1fb,_0x47898e._0x18ebe7)]??[]]};}function createRegistry(_0x34f096){const _0x4fc620={_0x52b83e:0xf9,_0x278b46:0x179,_0x5d3b6b:0x95,_0x220300:0xc3,_0x2501e2:0x13f},_0x3cacc3={_0x3047b3:0x387,_0xb0c210:0x6d,_0x333930:0x69},_0xf59beb={_0x3487f6:0x30f,_0x151c73:0x15c,_0x243960:0xd};if(_0x34f096[_0x405082(-0x103,-0xca,-_0x4fc620._0x52b83e,-_0x4fc620._0x278b46)])return _0x34f096[_0x405082(-0xa4,-_0x4fc620._0x5d3b6b,-_0x4fc620._0x52b83e,-_0x4fc620._0x220300)];function _0x334761(_0x25ea08,_0x47c944,_0x5744f7,_0x50c5df){return _0xf3454f(_0x50c5df-_0xf59beb._0x3487f6,_0x47c944-_0xf59beb._0x151c73,_0x5744f7,_0x50c5df-_0xf59beb._0x243960);}const _0x39fdbc=createExtensionRegistry(),_0x7fbe43=_0x34f096[_0x405082(-0x13b,-_0x4fc620._0x2501e2,-0x108,-0x16c)]??[];function _0x405082(_0x2d8e6d,_0x4c4552,_0x4619f6,_0x59a7d0){return _0xf3454f(_0x4619f6- -_0x3cacc3._0x3047b3,_0x4c4552-_0x3cacc3._0xb0c210,_0x4c4552,_0x59a7d0-_0x3cacc3._0x333930);}for(const _0x5a56cb of _0x7fbe43){_0x39fdbc['register'](_0x5a56cb);}return _0x39fdbc;}var Agent=class{[_0x3f402d(0x1a6,0x1f8,0x205,0x182)];[_0xf3454f(0x2cf,0x247,0x332,0x25c)];[_0x3f402d(0x242,0x22b,0x1c8,0x28b)];[_0xf3454f(0x236,0x248,0x2be,0x206)];[_0x3f402d(0x191,0x1a8,0x138,0x173)];[_0xf3454f(0x216,0x228,0x249,0x27a)];[_0xf3454f(0x21a,0x29b,0x265,0x22a)];constructor(_0x30f38d={}){const _0x190b4f={_0x284a1f:0x46,_0x52e10f:0xc4,_0x5307eb:0x132,_0xad44fa:0x189,_0x3616f2:0x103,_0x149178:0x1f4,_0xfdb616:0x1b6,_0x55f2bf:0x8d,_0x1e096b:0xf4,_0x507379:0x6,_0x3b4c9d:0x66,_0x4486fd:0x17b,_0x27a53f:0x190,_0x5778c0:0x1f8,_0x12d919:0x3d,_0x120971:0x98,_0x2b31f1:0x16d,_0x1aca5c:0x242,_0x1912c2:0x20c,_0x5419ad:0x20c,_0x5add70:0x26b,_0x73ef6f:0x170,_0x69d060:0x173,_0x3fb441:0x184,_0x371e4b:0x1a8,_0x5ed60e:0x195,_0x38783c:0x78,_0x524ca7:0x50,_0x19e339:0x78,_0x43ea4f:0x4e,_0x5cf180:0xb4,_0x3f3a2b:0x258,_0x401de3:0x187,_0xed4ad3:0x20c,_0x38e27f:0x1e6},_0x59db5f={_0x3a6398:0x27c,_0x5af79a:0x5b},_0x4d350a={_0x3bbacc:0x33},_0x3093ed={_0x2f5bd6:0x1da,_0x42e420:0x15c,_0x26f53c:0x31e,_0x3cf2fd:0x34c};this[_0x51042d(-0x4b,-0x82,-0x46,-0x8)]=_0x30f38d[_0x51042d(-0x6c,0x5,-_0x190b4f._0x284a1f,-_0x190b4f._0x52e10f)]??createSessionId(),this[_0x466ae4(_0x190b4f._0x5307eb,0x95,0x111,_0x190b4f._0xad44fa)]=0x0,this['_systemPrompt']=_0x30f38d[_0x466ae4(_0x190b4f._0x3616f2,_0x190b4f._0x149178,0x17b,_0x190b4f._0xfdb616)]??'',this[_0x466ae4(0x1cc,0x173,0x175,0x18d)]=(_0x30f38d[_0x51042d(0x26,-0x14,0x2,_0x190b4f._0x55f2bf)]??[])['map'](normalizeMessage),this[_0x51042d(-_0x190b4f._0x1e096b,_0x190b4f._0x507379,-_0x190b4f._0x3b4c9d,-0xa)]=createDefaultMessage(_0x30f38d[_0x466ae4(0x1ac,_0x190b4f._0x4486fd,0x1bf,_0x190b4f._0x27a53f)]),this[_0x466ae4(0x1d2,0x267,_0x190b4f._0x5778c0,0x175)]=createAgentMetrics({'getContextWindowLimit':_0x30f38d[_0x51042d(0x3e,-_0x190b4f._0x12d919,-0x38,-_0x190b4f._0x120971)]});const _0x4bea33=_0x30f38d[_0x466ae4(_0x190b4f._0x2b31f1,_0x190b4f._0x1aca5c,0x1d2,0x1ad)],_0x5056a4=async(_0x440882,_0x1a8c81)=>{const _0x51a5e4={_0x112588:0xec,_0x5576bf:0x32d,_0x1bbda2:0xdb},_0xf074c8={_0x2f503e:0x103};this[_0x491420(-0x178,-_0x3093ed._0x2f5bd6,-0x130,-_0x3093ed._0x42e420)][_0x844dd1(_0x3093ed._0x26f53c,0x34a,_0x3093ed._0x3cf2fd,0x334)](_0x440882);function _0x491420(_0x4393f8,_0x46c92e,_0x419a5c,_0x11bce1){return _0x51042d(_0x4393f8-0xe3,_0x419a5c,_0x4393f8- -0x1fd,_0x11bce1-_0xf074c8._0x2f503e);}function _0x844dd1(_0x32c1f7,_0x1296b4,_0x301f55,_0x2b4e81){return _0x51042d(_0x32c1f7-_0x51a5e4._0x112588,_0x1296b4,_0x32c1f7-_0x51a5e4._0x5576bf,_0x2b4e81-_0x51a5e4._0x1bbda2);}await _0x4bea33?.(_0x440882,_0x1a8c81);};function _0x466ae4(_0x376743,_0x1733b5,_0x57f46a,_0x309620){return _0x3f402d(_0x376743-0x171,_0x57f46a- -_0x4d350a._0x3bbacc,_0x57f46a-0x19a,_0x376743);}const _0x2c5f5c=createRegistry(_0x30f38d);function _0x51042d(_0x483e0d,_0x2b46b2,_0x3cf87c,_0x30ebbf){return _0xf3454f(_0x3cf87c- -_0x59db5f._0x3a6398,_0x2b46b2-0xc5,_0x2b46b2,_0x30ebbf-_0x59db5f._0x5af79a);}const _0x126de1=createInternalToolRuntime(_0x30f38d['tools']??[],{'onEvent':_0x5056a4,'onToolCall':_0x30f38d['onToolCall'],'registry':_0x2c5f5c,'beginProgramTrace':_0x30f38d[_0x466ae4(_0x190b4f._0x1912c2,0x1c0,_0x190b4f._0x5419ad,_0x190b4f._0x5add70)]});this[_0x466ae4(0x161,_0x190b4f._0x73ef6f,0x1c6,0x191)]={'registry':_0x2c5f5c,'chatModel':resolveChatModel(_0x30f38d),'toolRuntime':_0x126de1,'askUser':_0x30f38d[_0x466ae4(_0x190b4f._0x69d060,_0x190b4f._0x3fb441,_0x190b4f._0x371e4b,_0x190b4f._0x5ed60e)],'onEvent':_0x5056a4,'sessionDir':_0x30f38d[_0x51042d(-_0x190b4f._0x38783c,-0x2e,-_0x190b4f._0x524ca7,-_0x190b4f._0x19e339)],'outputFormat':_0x30f38d['outputFormat'],'executionScope':normalizeExecutionScope2(_0x30f38d[_0x51042d(-0x4d,-_0x190b4f._0x43ea4f,0x32,_0x190b4f._0x5cf180)]),'beginProgramTrace':_0x30f38d[_0x466ae4(_0x190b4f._0x3f3a2b,_0x190b4f._0x401de3,_0x190b4f._0xed4ad3,_0x190b4f._0x38e27f)]};}get['systemPrompt'](){const _0x171db6={_0xe141b1:0x1ea,_0x99e6f5:0x1c1,_0x5f51a3:0x226},_0x245ebb={_0x2d6c7b:0xf2};function _0x2bff7e(_0x2a3854,_0x323e9c,_0x13335e,_0x5dd7c2){return _0x3f402d(_0x2a3854-0xdd,_0x5dd7c2-0x2e,_0x13335e-_0x245ebb._0x2d6c7b,_0x13335e);}return this[_0x2bff7e(_0x171db6._0xe141b1,_0x171db6._0x99e6f5,0x1c5,_0x171db6._0x5f51a3)];}[_0x3f402d(0x1b2,0x163,0x19d,0x1b4)](_0x55e04a=[]){const _0x400e34={_0x1feed7:0x27f,_0x5cdc1a:0x202,_0x406816:0x1f1,_0x26a60d:0x229},_0x2e045b={_0x1f4352:0x175,_0x1c01df:0x8e,_0x2d2a83:0x1de},_0x5def51={_0x947926:0x1b,_0x2c7a17:0x207,_0x4f49e3:0x1b};function _0x57a666(_0x49d4d2,_0x42bb48,_0xe517c1,_0x5ee62f){return _0x3f402d(_0x49d4d2-_0x5def51._0x947926,_0x5ee62f-_0x5def51._0x2c7a17,_0xe517c1-_0x5def51._0x4f49e3,_0x42bb48);}function _0x4fd381(_0x5368fd,_0x3e7612,_0x5a2930,_0x1139d9){return _0x3f402d(_0x5368fd-_0x2e045b._0x1f4352,_0x5a2930-_0x2e045b._0x1c01df,_0x5a2930-_0x2e045b._0x2d2a83,_0x3e7612);}this['deps'][_0x4fd381(0x1ba,_0x400e34._0x1feed7,_0x400e34._0x5cdc1a,0x28e)][_0x4fd381(0x205,0x199,_0x400e34._0x406816,_0x400e34._0x26a60d)](_0x55e04a);}[_0x3f402d(0x208,0x201,0x231,0x214)](){const _0x59eca0={_0x868e4a:0x167,_0x14e09d:0x1bb,_0x1448f6:0x190},_0x317094={_0x99a994:0xbb};function _0x12072e(_0x297396,_0x56483e,_0x5951bd,_0x3cdf2f){return _0xf3454f(_0x5951bd- -0x48a,_0x56483e-0x183,_0x3cdf2f,_0x3cdf2f-_0x317094._0x99a994);}return this[_0x12072e(-0x1e9,-_0x59eca0._0x868e4a,-_0x59eca0._0x14e09d,-_0x59eca0._0x1448f6)]['toolRuntime']['listToolSchemas']();}['setSystemPrompt'](_0x1987fc,_0x51b05c={}){const _0xcbc77d={_0x4b2333:0x4a3,_0x4be3fa:0x46b,_0x25e9df:0x4b0,_0xf0d906:0x43a,_0x32aee1:0x3c3,_0x1728c0:0x3ef,_0x839a37:0x39d,_0x17eeca:0x3c1},_0x22808a={_0x121cef:0x135};function _0x1bb6aa(_0x34b147,_0x4fd033,_0x226024,_0x3146cd){return _0xf3454f(_0x4fd033-0x145,_0x4fd033-0x39,_0x226024,_0x3146cd-0x36);}this[_0x4cf28d(_0xcbc77d._0x4b2333,_0xcbc77d._0x4be3fa,0x524,0x52e)]=_0x1987fc;function _0x4cf28d(_0x4669cd,_0x4a734f,_0x56db46,_0x10d3ac){return _0x3f402d(_0x4669cd-_0x22808a._0x121cef,_0x4669cd-0x2ab,_0x56db46-0x11a,_0x56db46);}_0x51b05c[_0x4cf28d(0x43c,_0xcbc77d._0x25e9df,_0xcbc77d._0xf0d906,0x3b6)]===!![]&&(this[_0x1bb6aa(0x374,_0xcbc77d._0x32aee1,0x391,0x3a6)]=[],this[_0x4cf28d(_0xcbc77d._0x1728c0,_0xcbc77d._0x839a37,_0xcbc77d._0x17eeca,0x417)]=0x0);}['setSessionId'](_0x7ad4d9){const _0x24d4e7={_0x3a9368:0x1d8,_0x82ea59:0x194,_0x8ce4cf:0x172},_0x533f7a={_0x1443bb:0x1cb};function _0x301eb2(_0x288e97,_0x424eae,_0x345c8a,_0x1ddeab){return _0x3f402d(_0x288e97-_0x533f7a._0x1443bb,_0x288e97- -0x338,_0x345c8a-0x90,_0x1ddeab);}this[_0x301eb2(-_0x24d4e7._0x3a9368,-0x1dd,-_0x24d4e7._0x82ea59,-_0x24d4e7._0x8ce4cf)]=_0x7ad4d9;}[_0xf3454f(0x26f,0x243,0x20b,0x21d)](_0x23d629){const _0x3116c8={_0x31ec98:0x22f,_0x551a6d:0x17b,_0x4c93aa:0x15e},_0x365812={_0x27bb76:0x5d,_0x510a4a:0x68};function _0x81715e(_0x4a705e,_0x470f44,_0x43222d,_0x2e3207){return _0x3f402d(_0x4a705e-_0x365812._0x27bb76,_0x470f44-_0x365812._0x510a4a,_0x43222d-0x165,_0x4a705e);}this['deps'][_0x81715e(_0x3116c8._0x31ec98,0x1a2,_0x3116c8._0x551a6d,_0x3116c8._0x4c93aa)]=_0x23d629;}async[_0xf3454f(0x269,0x2d7,0x2ea,0x204)](_0x12a5ac=this[_0x3f402d(0x141,0x140,0x1cd,0xf8)],_0x549c8a={}){const _0x200857={_0x52454e:0x181,_0x58e8a7:0x18c,_0x676c7c:0x1b8,_0x42ee14:0x148,_0x24c30e:0x1cb,_0x2b8754:0x1bc,_0x32da83:0x244,_0xba5fc:0x1aa,_0x5be22b:0x21c,_0x16dd46:0x267,_0x3f398a:0x243,_0x234289:0x23c,_0x1804be:0x250,_0x50f1a0:0x225,_0x20ae57:0x222,_0x2916be:0x23d,_0x3a9992:0x19d,_0x427abc:0x280,_0x385133:0x207,_0x419f2f:0x24a,_0x2c5bdc:0x2ac,_0x2944a2:0x280,_0x1cc69d:0x237,_0x168668:0x1b6,_0x49b902:0x1eb,_0x26a030:0x2a4,_0x4b3dd6:0x27f,_0x40f9ef:0x1ff,_0x38bbe3:0x280,_0x27bbf0:0x1d0,_0x2a0da2:0x1ed,_0x2fa543:0x29a,_0x591858:0x224},_0x1093ca={_0x40502d:0x83,_0x1851f:0xd8,_0x24199d:0xdf},_0x525f66={_0x33ac33:0xde};if(!_0x12a5ac)throw new Error(_0x4d7bca(0x1b3,0x1a4,0x1c3,_0x200857._0x52454e));this[_0x4d7bca(0x214,_0x200857._0x58e8a7,_0x200857._0x676c7c,_0x200857._0x42ee14)]+=0x1;function _0x4d7bca(_0x379d1f,_0x1f9ef2,_0x226751,_0x54a78f){return _0xf3454f(_0x226751- -0x62,_0x1f9ef2-_0x525f66._0x33ac33,_0x54a78f,_0x54a78f-0x56);}const _0x2d95e5=_0x549c8a[_0x1d9e97(0x1f1,0x20a,_0x200857._0x24c30e,0x245)];function _0x1d9e97(_0x1f7262,_0x48247b,_0x5f1cb5,_0x1079aa){return _0x3f402d(_0x1f7262-_0x1093ca._0x40502d,_0x1079aa-_0x1093ca._0x1851f,_0x5f1cb5-_0x1093ca._0x24199d,_0x1f7262);}try{const _0x488569=await runTurn({'sessionId':this[_0x1d9e97(0x1bd,_0x200857._0x2b8754,0x257,0x238)],'turnId':createTurnId(this[_0x1d9e97(_0x200857._0x32da83,0x194,_0x200857._0xba5fc,_0x200857._0x5be22b)]),'streaming':_0x549c8a[_0x4d7bca(0x2e0,0x219,_0x200857._0x16dd46,0x23a)],'signal':_0x549c8a[_0x1d9e97(0x271,_0x200857._0x3f398a,_0x200857._0x234289,_0x200857._0x1804be)],'system':this[_0x4d7bca(_0x200857._0x50f1a0,0x1f8,_0x200857._0x20ae57,0x28b)],'messages':this[_0x4d7bca(_0x200857._0x2916be,0x217,0x21c,_0x200857._0x3a9992)],'message':normalizeUserInput(_0x12a5ac),..._0x549c8a['transientInput']===!![]?{'transientInput':!![]}:{},..._0x549c8a[_0x4d7bca(0x2ed,0x2d9,_0x200857._0x427abc,0x1f4)]===void 0x0?{}:{'submission':_0x549c8a['submission']},..._0x2d95e5?{'drainSteering':async()=>(await _0x2d95e5())[_0x4d7bca(0x207,0x1d0,0x1cf,0x22a)](_0x5bb8e4=>isTaggedSteeringInput(_0x5bb8e4)?{'input':normalizeUserInput(_0x5bb8e4[_0x1d9e97(0x31e,0x2bb,0x2d5,0x2a8)]),'submission':_0x5bb8e4['submission']}:normalizeUserInput(_0x5bb8e4))}:{}},this[_0x4d7bca(0x231,_0x200857._0x385133,0x26d,0x2b9)]);return this[_0x1d9e97(_0x200857._0x419f2f,0x300,_0x200857._0x2c5bdc,_0x200857._0x2944a2)]=_0x488569[_0x4d7bca(_0x200857._0x1cc69d,_0x200857._0x168668,_0x200857._0x49b902,0x269)][_0x1d9e97(_0x200857._0x26a030,_0x200857._0x4b3dd6,_0x200857._0x40f9ef,_0x200857._0x2944a2)]['map'](normalizeMessage),_0x488569;}catch(_0x181f2d){if(_0x181f2d instanceof TurnFailedError){this[_0x1d9e97(0x27e,0x2c6,0x2a7,_0x200857._0x38bbe3)]=synthesizeMissingToolResults(_0x181f2d[_0x4d7bca(0x1db,_0x200857._0x27bbf0,0x1eb,_0x200857._0x2a0da2)]['messages'][_0x1d9e97(_0x200857._0x2fa543,0x1ca,0x253,0x233)](normalizeMessage));throw _0x181f2d[_0x4d7bca(0x264,0x1e6,_0x200857._0x591858,0x251)];}throw _0x181f2d;}}};function _0x3519(_0x459b0d,_0x37464c){_0x459b0d=_0x459b0d-0x14f;const _0xbcd2b1=_0xbcd2();let _0x351933=_0xbcd2b1[_0x459b0d];if(_0x3519['AWQouX']===undefined){var _0x2a86f5=function(_0x119680){const _0xd690f3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1d5e55='',_0x30af11='';for(let _0x58ced2=0x0,_0x1619d2,_0x3e7240,_0x405bf3=0x0;_0x3e7240=_0x119680['charAt'](_0x405bf3++);~_0x3e7240&&(_0x1619d2=_0x58ced2%0x4?_0x1619d2*0x40+_0x3e7240:_0x3e7240,_0x58ced2++%0x4)?_0x1d5e55+=String['fromCharCode'](0xff&_0x1619d2>>(-0x2*_0x58ced2&0x6)):0x0){_0x3e7240=_0xd690f3['indexOf'](_0x3e7240);}for(let _0x5b7bf6=0x0,_0x3ce7dd=_0x1d5e55['length'];_0x5b7bf6<_0x3ce7dd;_0x5b7bf6++){_0x30af11+='%'+('00'+_0x1d5e55['charCodeAt'](_0x5b7bf6)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30af11);};_0x3519['KKqIIJ']=_0x2a86f5,_0x3519['oHytgn']={},_0x3519['AWQouX']=!![];}const _0x1c8d4c=_0xbcd2b1[0x0],_0x208a9a=_0x459b0d+_0x1c8d4c,_0xa8ec46=_0x3519['oHytgn'][_0x208a9a];return!_0xa8ec46?(_0x351933=_0x3519['KKqIIJ'](_0x351933),_0x3519['oHytgn'][_0x208a9a]=_0x351933):_0x351933=_0xa8ec46,_0x351933;}export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,ModelUsageOverflowError,emptyModelUsageTotals,isModelUsageTotals,isSubagentReportMeta,addModelUsageTotals,modelUsageTotalsEqual,modelUsageTotalsFromSnapshot,modelUsageTotalsFromHistory,createAgentMetrics,runTurn,Agent};
|