@nuvin/agent-core 0.1.0-rc.12 → 0.1.0-rc.13

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.
@@ -1 +1 @@
1
- (function(_0x1d7ba4,_0x4b86b5){const _0x493e56={_0x26aced:0x7c,_0x268951:0x477,_0x4fd6da:0x46f,_0x1fc6f1:0x496,_0xeaa5cd:0x17,_0x5e54a4:0x45,_0x51780e:0x3f,_0x1b3357:0x462,_0x26f7dd:0x3e2,_0x5564f8:0x47c,_0xb683fa:0x448,_0x5d1c37:0x9a,_0x5288a3:0xe5,_0x144d72:0x7d,_0x1fdbda:0x71,_0x9d73a4:0x3d8,_0x3ed474:0x459,_0x24212e:0x416,_0x311a39:0x409,_0x1dc95f:0x62,_0x5c8da9:0x3c,_0x261299:0x8,_0x3549b6:0x455},_0x36c14d={_0x433d56:0x252},_0x415ce0={_0x2c7edf:0x25f},_0x153fd8=_0x1d7ba4();function _0x14a6ef(_0x15d9f7,_0x4a3072,_0xe84fb9,_0x395d27){return _0x504c(_0x15d9f7- -_0x415ce0._0x2c7edf,_0x395d27);}function _0x2674c5(_0x1f8811,_0x224e19,_0x4a45ea,_0x485676){return _0x504c(_0x485676-_0x36c14d._0x433d56,_0x224e19);}while(!![]){try{const _0xe87925=-parseInt(_0x14a6ef(-0x6c,-0x97,-0x6b,-_0x493e56._0x26aced))/0x1*(-parseInt(_0x2674c5(0x474,0x466,_0x493e56._0x268951,0x4b2))/0x2)+parseInt(_0x2674c5(0x4ac,_0x493e56._0x4fd6da,_0x493e56._0x1fc6f1,0x45e))/0x3+-parseInt(_0x14a6ef(-0x14,-_0x493e56._0xeaa5cd,-_0x493e56._0x5e54a4,-_0x493e56._0x51780e))/0x4*(parseInt(_0x2674c5(0x417,_0x493e56._0x1b3357,_0x493e56._0x26f7dd,0x421))/0x5)+parseInt(_0x2674c5(0x45a,0x440,_0x493e56._0x5564f8,_0x493e56._0xb683fa))/0x6+-parseInt(_0x14a6ef(-_0x493e56._0x5d1c37,-_0x493e56._0x5288a3,-_0x493e56._0x144d72,-_0x493e56._0x1fdbda))/0x7*(parseInt(_0x2674c5(_0x493e56._0x9d73a4,_0x493e56._0x3ed474,_0x493e56._0x24212e,_0x493e56._0x311a39))/0x8)+-parseInt(_0x14a6ef(-_0x493e56._0x1dc95f,-0x94,-_0x493e56._0x5c8da9,-0x77))/0x9*(parseInt(_0x14a6ef(-0x65,-_0x493e56._0x261299,-0x9f,-0x4d))/0xa)+-parseInt(_0x2674c5(0x496,0x47f,_0x493e56._0x3549b6,0x457))/0xb;if(_0xe87925===_0x4b86b5)break;else _0x153fd8['push'](_0x153fd8['shift']());}catch(_0x5d4734){_0x153fd8['push'](_0x153fd8['shift']());}}}(_0x105a,0xe52b0));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YWQXXHHU.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x25296f){const _0x25b489={_0x2addc1:0x203};function _0x67caa6(_0x446d3d,_0x4f17a5,_0x3c91fa,_0x22cb3f){return _0x504c(_0x446d3d- -0x25,_0x4f17a5);}return typeof _0x25296f===_0x67caa6(_0x25b489._0x2addc1,0x1e6,0x248,0x1bf)&&_0x25296f!==null&&!Array['isArray'](_0x25296f);}function _0x477ada(_0x4ee34d,_0x2ab91d,_0x2787b1,_0x2afe0d){const _0x5e7f4f={_0x4524b4:0x380};return _0x504c(_0x2afe0d- -_0x5e7f4f._0x4524b4,_0x4ee34d);}function _0x39c515(_0x154391,_0x5b3ccb,_0x93ab03,_0x160d53){return _0x504c(_0x154391- -0xab,_0x160d53);}function isToolOutputEnvelope(_0x1516ea){const _0x419a92={_0x179c88:0x45a,_0x93f074:0x3d6,_0x4d3989:0x3f5,_0x2710c7:0x3d3,_0x7d0768:0x3b9,_0x169ae3:0x449},_0x4647ef={_0x2ffeb3:0x1fa},_0xe9cea={_0x226d48:0x40};if(typeof _0x1516ea!==_0x55bf69(_0x419a92._0x179c88,_0x419a92._0x93f074,0x3fd,0x422)||_0x1516ea===null||Array[_0x55bf69(_0x419a92._0x4d3989,0x40b,0x3b9,0x411)](_0x1516ea))return![];if(typeof _0x1516ea[_0x55bf69(0x401,_0x419a92._0x2710c7,0x361,_0x419a92._0x7d0768)]!=='string')return![];const _0x1dd3ae=_0x1516ea[_0x55bf69(0x45f,0x3ec,0x415,_0x419a92._0x169ae3)];function _0x37663d(_0x572132,_0x1f4f63,_0x341298,_0x448241){return _0x504c(_0x341298-_0xe9cea._0x226d48,_0x1f4f63);}function _0x55bf69(_0x31ae53,_0x47302e,_0x30c312,_0x49cc5d){return _0x504c(_0x49cc5d-_0x4647ef._0x2ffeb3,_0x31ae53);}return _0x1dd3ae===void 0x0||isJsonObject(_0x1dd3ae);}function validateAgainstSchema(_0x352314,_0x202380,_0x209db5){const _0x858a76={_0x1bbb97:0x20e,_0x3ceec3:0x2b8,_0x219d34:0x25e,_0x4df99c:0x2d6,_0x4477e9:0x257,_0x12f6f5:0x42c,_0x365521:0x42d,_0x203654:0x318,_0x589e93:0x2d1,_0x114f17:0x435,_0x2071b6:0x43d,_0x52aeb9:0x3ee,_0x4500d4:0x42f,_0x3a5b51:0x3fe,_0x509160:0x427,_0x47fc09:0x3e5,_0x4ab24e:0x41a,_0x52788b:0x32b,_0x33a763:0x2b2,_0x58ea22:0x2a1,_0x229bbb:0x3fb,_0x2c380c:0x3a6,_0x2ff7e2:0x44a,_0x41a27f:0x404,_0x49435a:0x40a,_0x359363:0x449,_0x47391c:0x2af,_0xcb4195:0x29d,_0x1590aa:0x27a,_0x2254ae:0x302,_0x37eb79:0x2ba,_0x316651:0x230,_0x219252:0x2bb,_0x391095:0x403,_0x561630:0x447,_0x4b8df6:0x428,_0x2552af:0x450,_0x439c17:0x2f8},_0x41398a={_0x15fdcc:0x232,_0x4ef9ca:0x247},_0x585f85={_0xe42c1b:0x163,_0xe0d509:0xe2,_0x515b10:0xe};function _0x403b50(_0x1d9dd0,_0x5a882a,_0x5ecce6,_0x14e256){return _0x504c(_0x1d9dd0-0x233,_0x5ecce6);}function _0x1a2480(_0x4b7ecd,_0x56e8b9,_0x51c52f,_0x3d323f){return _0x504c(_0x51c52f-0xa1,_0x3d323f);}switch(_0x209db5[_0x1a2480(_0x858a76._0x1bbb97,_0x858a76._0x3ceec3,_0x858a76._0x219d34,0x296)]){case _0x1a2480(_0x858a76._0x4df99c,0x2a5,0x29a,_0x858a76._0x4477e9):if(typeof _0x202380!==_0x403b50(_0x858a76._0x12f6f5,_0x858a76._0x365521,0x42c,0x484))throw new Error(_0x1a2480(0x305,_0x858a76._0x203654,_0x858a76._0x589e93,0x277)+_0x352314+':\x20expected\x20string');return;case _0x403b50(_0x858a76._0x114f17,0x3da,_0x858a76._0x2071b6,_0x858a76._0x52aeb9):if(typeof _0x202380!=='number')throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x352314+_0x403b50(_0x858a76._0x4500d4,0x43c,0x43a,_0x858a76._0x3a5b51));return;case _0x403b50(_0x858a76._0x509160,_0x858a76._0x47fc09,0x459,0x45e):if(typeof _0x202380!==_0x403b50(0x427,_0x858a76._0x4ab24e,0x45c,0x3e7))throw new Error(_0x1a2480(_0x858a76._0x52788b,_0x858a76._0x33a763,0x2d1,0x315)+_0x352314+_0x1a2480(0x223,0x229,0x272,_0x858a76._0x58ea22));return;case _0x403b50(_0x858a76._0x229bbb,0x3a0,0x415,_0x858a76._0x2c380c):if(!Array[_0x403b50(_0x858a76._0x2ff7e2,0x42f,_0x858a76._0x41a27f,0x480)](_0x202380))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x352314+':\x20expected\x20array');_0x202380[_0x403b50(_0x858a76._0x49435a,_0x858a76._0x359363,0x424,0x403)]((_0x55e518,_0x49878d)=>{function _0x1a7ec0(_0x36076f,_0x2d608c,_0x10805f,_0x4fe164){return _0x1a2480(_0x36076f-_0x585f85._0xe42c1b,_0x2d608c-_0x585f85._0xe0d509,_0x36076f-_0x585f85._0x515b10,_0x4fe164);}validateAgainstSchema(_0x352314+'['+_0x49878d+']',_0x55e518,_0x209db5[_0x1a7ec0(0x28d,_0x41398a._0x15fdcc,0x2a1,_0x41398a._0x4ef9ca)]);});return;case _0x1a2480(_0x858a76._0x47391c,_0x858a76._0xcb4195,0x2c9,_0x858a76._0x1590aa):if(!isJsonObject(_0x202380))throw new Error(_0x1a2480(_0x858a76._0x2254ae,0x2ee,0x2d1,_0x858a76._0x37eb79)+_0x352314+':\x20expected\x20object');for(const _0x2c2cf7 of _0x209db5[_0x1a2480(0x262,_0x858a76._0x316651,0x284,_0x858a76._0x219252)]??[]){if(!(_0x2c2cf7 in _0x202380))throw new Error(_0x1a2480(0x2cc,0x2e7,0x2d1,0x29f)+_0x352314+_0x403b50(_0x858a76._0x391095,_0x858a76._0x561630,_0x858a76._0x4b8df6,_0x858a76._0x2552af)+_0x2c2cf7+'\x22');}for(const [_0x56ef62,_0x3f0cc1]of Object[_0x1a2480(0x2ce,0x2cb,_0x858a76._0x439c17,0x33a)](_0x209db5[_0x403b50(0x3fe,0x446,0x3b4,0x441)])){_0x56ef62 in _0x202380&&validateAgainstSchema(_0x352314+'.'+_0x56ef62,_0x202380[_0x56ef62],_0x3f0cc1);}}}function normalizeToolOutputValue(_0xdfee3d){const _0x26e21f={_0x33a383:0x146,_0x57e0c7:0x131,_0x578cf9:0x1dc,_0x576389:0x183,_0x13c174:0x1c5,_0x237951:0x1b5,_0xe90085:0x17a,_0x12faec:0x108,_0x726945:0x13a,_0x5886f7:0x157,_0xf4221a:0x15a,_0x479ed4:0x11e,_0x9b772:0x128,_0x119d87:0x14c,_0x572f90:0x139,_0x15b9d2:0x11d,_0x250a25:0xfe,_0xc70ad2:0xd9,_0x260cbe:0x101,_0x4391dc:0x134},_0x2a9ada={_0x537100:0x350};if(isToolOutputEnvelope(_0xdfee3d))return{'output':_0xdfee3d[_0x28227f(-0x185,-_0x26e21f._0x33a383,-_0x26e21f._0x57e0c7,-0x15b)],'structured':_0xdfee3d['structured']??{'value':_0xdfee3d['output']},..._0xdfee3d[_0x28227f(-0x183,-0x1d8,-_0x26e21f._0x578cf9,-0x179)]!==void 0x0?{'content':_0xdfee3d[_0x28227f(-_0x26e21f._0x576389,-_0x26e21f._0x13c174,-0x131,-_0x26e21f._0x237951)]}:{}};function _0x28227f(_0x5eb369,_0x35e6bf,_0x357710,_0x2e2ccd){return _0x504c(_0x5eb369- -0x344,_0x2e2ccd);}if(typeof _0xdfee3d===_0x449743(-_0x26e21f._0xe90085,-_0x26e21f._0x12faec,-_0x26e21f._0x726945,-_0x26e21f._0x5886f7))return{'output':_0xdfee3d,'structured':{'value':_0xdfee3d}};if(typeof _0xdfee3d===_0x449743(-0x101,-_0x26e21f._0xf4221a,-_0x26e21f._0x479ed4,-_0x26e21f._0x9b772)&&_0xdfee3d!==null&&!Array[_0x449743(-0xf9,-_0x26e21f._0x119d87,-0x11b,-_0x26e21f._0x572f90)](_0xdfee3d))return{'output':JSON[_0x449743(-_0x26e21f._0x15b9d2,-0xd3,-0xc0,-_0x26e21f._0x250a25)](_0xdfee3d,null,0x2),'structured':_0xdfee3d};function _0x449743(_0x3b8855,_0x319dfe,_0x19abb2,_0x362f52){return _0x504c(_0x362f52- -_0x2a9ada._0x537100,_0x3b8855);}return{'output':JSON[_0x449743(-_0x26e21f._0xc70ad2,-_0x26e21f._0x260cbe,-_0x26e21f._0x4391dc,-0xfe)](_0xdfee3d,null,0x2),'structured':{'value':_0xdfee3d}};}function createToolOutput(_0x32ea99,_0x9b838={'value':_0x32ea99},_0x14be5a){return{'output':_0x32ea99,'structured':_0x9b838,..._0x14be5a!==void 0x0?{'content':_0x14be5a}:{}};}var ToolExecutionError=class extends Error{['structured'];constructor(_0x5d8201,_0x468811={}){const _0x1819eb={_0x3384c3:0x169,_0x5a9482:0x187},_0x449497={_0x46bbea:0xe6};super(_0x5d8201);function _0x455e82(_0x176263,_0xa3d17a,_0x1a50d3,_0x2b1954){return _0x504c(_0x1a50d3- -_0x449497._0x46bbea,_0x176263);}this['name']='ToolExecutionError',this[_0x455e82(0x154,0x16b,_0x1819eb._0x3384c3,_0x1819eb._0x5a9482)]=_0x468811;}};function defineTool(_0x1e813d){return _0x1e813d;}var ToolRegistry=class{['toolsByName']=new Map();constructor(_0x1073ec=[]){for(const _0x424b33 of _0x1073ec){this['register'](_0x424b33);}}[_0x39c515(0x10e,0xf4,0xf0,0x142)](_0x108bbc){const _0x303a70={_0x4832ed:0x427,_0x5113dd:0x3ed,_0x1e6ee0:0x47f,_0x3b01e0:0x5c,_0x2fa6db:0x3c},_0x52cd00={_0x21fe85:0x125},_0x1a7e58={_0x182223:0x279,_0x49f0c3:0x130};function _0x554e50(_0x388e28,_0x78762e,_0x11d687,_0x2e353e){return _0x39c515(_0x78762e-_0x1a7e58._0x182223,_0x78762e-_0x1a7e58._0x49f0c3,_0x11d687-0x62,_0x11d687);}function _0x517ad0(_0x54784d,_0x7efb6f,_0x47148f,_0x186ac5){return _0x39c515(_0x54784d- -0x105,_0x7efb6f-_0x52cd00._0x21fe85,_0x47148f-0x5d,_0x7efb6f);}this['toolsByName'][_0x554e50(0x46e,_0x303a70._0x4832ed,_0x303a70._0x5113dd,_0x303a70._0x1e6ee0)](_0x108bbc[_0x517ad0(0x6d,_0x303a70._0x3b01e0,0xa5,_0x303a70._0x2fa6db)],_0x108bbc);}['get'](_0xcb2ade){const _0x3f8aa4={_0x5a74ea:0x59d},_0x5baca8={_0x39d689:0x17f};function _0x183de1(_0x503166,_0x49d56c,_0x36e494,_0x4bb5a8){return _0x39c515(_0x4bb5a8-0x47c,_0x49d56c-0x1a4,_0x36e494-0x17d,_0x503166);}function _0xd09cef(_0x198097,_0x4faf3b,_0x3a6b7f,_0x361b9a){return _0x39c515(_0x3a6b7f-0x1eb,_0x4faf3b-_0x5baca8._0x39d689,_0x3a6b7f-0x195,_0x198097);}return this[_0x183de1(0x5bc,0x53d,_0x3f8aa4._0x5a74ea,0x57c)][_0xd09cef(0x2d3,0x321,0x30e,0x2f9)](_0xcb2ade);}[_0x477ada(-0x14e,-0x1b7,-0x1a8,-0x194)](){const _0x1898df={_0x2c0cc2:0x28a,_0x43b513:0x29f,_0x49ffb1:0x249,_0x1a92f4:0x221,_0x16fb9a:0x17d},_0x5d9577={_0x581e7d:0xfd,_0x27fd7b:0x474},_0x28aa84={_0x34576c:0x5e,_0x5e18d7:0x196,_0x3589f2:0xe};function _0x11f2e3(_0x34c5fd,_0x196960,_0x581957,_0x59af2c){return _0x477ada(_0x196960,_0x196960-_0x28aa84._0x34576c,_0x581957-_0x28aa84._0x5e18d7,_0x581957- -_0x28aa84._0x3589f2);}function _0x1b543e(_0x180f49,_0x78772b,_0x414427,_0x34a3ef){return _0x477ada(_0x414427,_0x78772b-_0x5d9577._0x581e7d,_0x414427-0xd8,_0x78772b-_0x5d9577._0x27fd7b);}return[...this[_0x1b543e(_0x1898df._0x2c0cc2,_0x1898df._0x43b513,0x26e,_0x1898df._0x49ffb1)][_0x11f2e3(-_0x1898df._0x1a92f4,-0x19a,-0x1ca,-_0x1898df._0x16fb9a)]()];}[_0x477ada(-0x16b,-0x190,-0x147,-0x19b)](){const _0x44252e={_0x34718a:0x17d,_0x445056:0x1c8,_0x8f0f9:0x22,_0xdef19a:0x1e,_0x583bea:0x24},_0x37f6d7={_0x10e0cc:0x62,_0x311df7:0xc3,_0x411604:0xbe,_0x553a2e:0x6d,_0x1aace6:0x19,_0x3b0676:0x29,_0x101655:0x207},_0x114420={_0x95a83e:0x1a6,_0x3704b5:0x44},_0x3f995f={_0x449153:0xc3,_0x21b432:0x11c},_0x12c831={_0x36e14f:0x1a4},_0x189f0f={_0x1f3e38:0xd0,_0x5467aa:0x13e};function _0x13e114(_0x51b45b,_0x153071,_0x22d739,_0x203e98){return _0x477ada(_0x51b45b,_0x153071-_0x189f0f._0x1f3e38,_0x22d739-_0x189f0f._0x5467aa,_0x203e98-0x1e6);}function _0x13f460(_0x5b68c7,_0x955a0d,_0x9db13b,_0x2c0663){return _0x39c515(_0x2c0663- -0x2dd,_0x955a0d-0xe6,_0x9db13b-_0x12c831._0x36e14f,_0x955a0d);}return this[_0x13f460(-_0x44252e._0x34718a,-0x174,-_0x44252e._0x445056,-0x19c)]()[_0x13e114(_0x44252e._0x8f0f9,-0xf,-_0x44252e._0xdef19a,_0x44252e._0x583bea)](_0x3dd425=>{function _0x105765(_0x1737e1,_0x4657a0,_0x1f3d0a,_0x24afef){return _0x13e114(_0x1f3d0a,_0x4657a0-_0x3f995f._0x449153,_0x1f3d0a-0x120,_0x1737e1- -_0x3f995f._0x21b432);}function _0x225dc0(_0x23da18,_0x51b348,_0x32977b,_0x168bb5){return _0x13f460(_0x23da18-_0x114420._0x95a83e,_0x23da18,_0x32977b-0xdb,_0x32977b- -_0x114420._0x3704b5);}return{'name':_0x3dd425[_0x105765(-0x99,-_0x37f6d7._0x10e0cc,-_0x37f6d7._0x311df7,-_0x37f6d7._0x411604)],'description':_0x3dd425[_0x105765(-_0x37f6d7._0x553a2e,-0x92,-_0x37f6d7._0x1aace6,-_0x37f6d7._0x3b0676)],'input_schema':_0x3dd425[_0x225dc0(-0x1f6,-_0x37f6d7._0x101655,-0x216,-0x20e)]};});}};function validateToolInput(_0x3b775c,_0x39d6f5){return validateAgainstSchema('input',_0x3b775c,_0x39d6f5),_0x3b775c;}function deriveFinalToolOutput(_0x3da35a){const _0x412d03={_0x3c31f1:0x172,_0x470eea:0x12d,_0x531f76:0x15b,_0x1517d0:0x1e8,_0x5365f1:0x1e9,_0x353030:0x1c5,_0x4aefa5:0x14f,_0x370043:0x16a,_0x42d873:0x170,_0x107656:0x1a3,_0x3b54c6:0x201,_0x120522:0x218,_0x41fac9:0x1e0,_0x35268a:0x222,_0x3e9369:0xb2,_0x76e086:0xd6,_0x1eb847:0xf7,_0x1c80e6:0xd6,_0x298abd:0x13f,_0x1ffe69:0x102,_0x5258e9:0xd6,_0x51fd2b:0x15f},_0x1700a3={_0x8000cd:0x1ad,_0x2b4ad1:0x9e},_0x4bdc27={_0x40c7be:0xf0};if(_0x3da35a[_0x53be2a(-0x187,-_0x412d03._0x3c31f1,-_0x412d03._0x470eea,-_0x412d03._0x531f76)]===0x0)return{'output':'','structured':{}};if(_0x3da35a[_0x2d993d(-_0x412d03._0x1517d0,-0x1e9,-0x212,-0x23e)]===0x1)return{'output':_0x3da35a[0x0][_0x2d993d(-0x1c8,-0x1df,-_0x412d03._0x5365f1,-_0x412d03._0x353030)],'structured':_0x3da35a[0x0][_0x2d993d(-0x198,-_0x412d03._0x4aefa5,-_0x412d03._0x370043,-_0x412d03._0x42d873)],..._0x3da35a[0x0]['content']!==void 0x0?{'content':_0x3da35a[0x0]['content']}:{}};function _0x2d993d(_0x5dbac6,_0x2e71d9,_0x1c2afa,_0x4e3b46){return _0x39c515(_0x2e71d9- -0x2f3,_0x2e71d9-0x1ef,_0x1c2afa-_0x4bdc27._0x40c7be,_0x1c2afa);}function _0x53be2a(_0x9f7d69,_0x28b374,_0x3d0fef,_0x1ba348){return _0x477ada(_0x1ba348,_0x28b374-0x1ce,_0x3d0fef-_0x1700a3._0x8000cd,_0x3d0fef-_0x1700a3._0x2b4ad1);}const _0xd387bf=_0x3da35a[_0x2d993d(-0x1e9,-_0x412d03._0x107656,-_0x412d03._0x3b54c6,-0x1bd)](_0x204b65=>_0x204b65[_0x53be2a(-0x118,-0x177,-0x121,-0x103)]!==void 0x0);return{'output':_0x3da35a[_0x2d993d(-_0x412d03._0x120522,-_0x412d03._0x41fac9,-_0x412d03._0x35268a,-0x196)](_0x1a905d=>_0x1a905d[_0x2d993d(-0x1ff,-0x1df,-0x236,-0x1e8)])[_0x53be2a(-_0x412d03._0x3e9369,-0x96,-0xbc,-_0x412d03._0x76e086)](''),'structured':{'chunks':_0x3da35a[_0x53be2a(-0x12c,-_0x412d03._0x1eb847,-0x124,-_0x412d03._0x76e086)](_0x103c21=>_0x103c21['structured'])},..._0xd387bf[_0x53be2a(-0x103,-_0x412d03._0x1c80e6,-0x12d,-_0x412d03._0x298abd)]===0x1?{'content':_0xd387bf[0x0][_0x53be2a(-_0x412d03._0x1ffe69,-_0x412d03._0x5258e9,-0x121,-_0x412d03._0x51fd2b)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x197f4a,_0x35bb10,_0x508935,_0x5478a6=[]){const _0x23dc60={_0xd585c6:0x4d2,_0xa852f2:0x4aa},_0x1ee039={_0x3a62bc:0x1e1,_0x3f70f7:0x5e9},_0x137228={_0xfb3a24:0x1e4,_0x20cc73:0x63,_0xfd1a22:0x1be};function _0x329c7d(_0x3fc1d3,_0x56a0c9,_0x31620f,_0xbdc15f){return _0x39c515(_0x3fc1d3-_0x137228._0xfb3a24,_0x56a0c9-_0x137228._0x20cc73,_0x31620f-_0x137228._0xfd1a22,_0x31620f);}function _0x2c241f(_0x1503e4,_0x27c5e6,_0x1c40eb,_0x239eaf){return _0x477ada(_0x27c5e6,_0x27c5e6-_0x1ee039._0x3a62bc,_0x1c40eb-0xba,_0x239eaf-_0x1ee039._0x3f70f7);}return{'callId':_0x197f4a['id'],'toolName':_0x197f4a[_0x2c241f(0x4b6,0x443,_0x23dc60._0xd585c6,0x486)],'status':_0x2c241f(_0x23dc60._0xa852f2,0x4b4,0x4a3,0x470),'output':_0x35bb10,'structured':_0x508935,'chunks':_0x5478a6,'meta':createToolMeta()};}function createRejectedToolResult(_0x278ffd,_0x536b68){const _0x23a7bd={_0x178a7c:0x481,_0x377fb3:0x453,_0x1b2a68:0x4a9,_0x37d18e:0x42f,_0x3d0360:0x465,_0x34f154:0x45a,_0x44e505:0x50e},_0x25104c={_0x3f8b96:0x35b},_0xe17a1b={_0x4d49ef:0x174,_0x4f50f1:0x77},_0x1d7998=_0x536b68?.[_0x2a2fc7(_0x23a7bd._0x178a7c,0x486,_0x23a7bd._0x377fb3,_0x23a7bd._0x1b2a68)]()[_0x231bf3(0x475,_0x23a7bd._0x37d18e,_0x23a7bd._0x3d0360,_0x23a7bd._0x34f154)]?_0x536b68:'Tool\x20execution\x20rejected\x20for\x20'+_0x278ffd[_0x2a2fc7(0x50d,0x553,_0x23a7bd._0x44e505,0x4fd)];function _0x2a2fc7(_0x143b6b,_0x24b1c7,_0xf80235,_0x3223fb){return _0x477ada(_0xf80235,_0x24b1c7-_0xe17a1b._0x4d49ef,_0xf80235-_0xe17a1b._0x4f50f1,_0x3223fb-0x660);}function _0x231bf3(_0xb0c130,_0x2ec423,_0x28643f,_0x39810f){return _0x39c515(_0x28643f-_0x25104c._0x3f8b96,_0x2ec423-0x194,_0x28643f-0x187,_0x39810f);}return createErrorToolResult(_0x278ffd,_0x1d7998,{'error':'tool_rejected',..._0x536b68?.['trim']()['length']?{'reason':_0x536b68}:{}});}function _0x504c(_0x566c3d,_0x568f14){_0x566c3d=_0x566c3d-0x1a8;const _0x105a0e=_0x105a();let _0x504cab=_0x105a0e[_0x566c3d];if(_0x504c['NZMpae']===undefined){var _0x132d51=function(_0x2c9731){const _0x49563f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x25296f='',_0x1516ea='';for(let _0x1dd3ae=0x0,_0x352314,_0x202380,_0x209db5=0x0;_0x202380=_0x2c9731['charAt'](_0x209db5++);~_0x202380&&(_0x352314=_0x1dd3ae%0x4?_0x352314*0x40+_0x202380:_0x202380,_0x1dd3ae++%0x4)?_0x25296f+=String['fromCharCode'](0xff&_0x352314>>(-0x2*_0x1dd3ae&0x6)):0x0){_0x202380=_0x49563f['indexOf'](_0x202380);}for(let _0x55e518=0x0,_0x49878d=_0x25296f['length'];_0x55e518<_0x49878d;_0x55e518++){_0x1516ea+='%'+('00'+_0x25296f['charCodeAt'](_0x55e518)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1516ea);};_0x504c['AdpimM']=_0x132d51,_0x504c['qKhXkr']={},_0x504c['NZMpae']=!![];}const _0x5cda07=_0x105a0e[0x0],_0x41543f=_0x566c3d+_0x5cda07,_0x5b86ee=_0x504c['qKhXkr'][_0x41543f];return!_0x5b86ee?(_0x504cab=_0x504c['AdpimM'](_0x504cab),_0x504c['qKhXkr'][_0x41543f]=_0x504cab):_0x504cab=_0x5b86ee,_0x504cab;}function createAbortedToolResult(_0x871c92,_0x3e75bb,_0x24ac1f=[]){const _0x572fb5={_0x3ca160:0xfb,_0x1549b7:0xf0,_0x1be933:0x15a,_0x1ca2df:0x109},_0x53426d=toAbortError(_0x3e75bb);function _0x4e506b(_0x12fb75,_0x4d89c3,_0x52adbb,_0x5b781f){return _0x39c515(_0x5b781f- -0x67,_0x4d89c3-0x1ec,_0x52adbb-0x151,_0x52adbb);}return createErrorToolResult(_0x871c92,_0x53426d['message'],{'error':_0x53426d[_0x4e506b(_0x572fb5._0x3ca160,_0x572fb5._0x1549b7,_0x572fb5._0x1be933,_0x572fb5._0x1ca2df)],'aborted':!![]},_0x24ac1f);}function createSuccessToolResult(_0x4d6ee9,_0x30d89a,_0x35ce4e){const _0x209a4d={_0x3437dc:0x47e,_0x162759:0x4a5,_0x388b73:0x479,_0x1246a2:0x51b,_0x209e62:0x421,_0x4d40d2:0x449,_0x196dff:0x491},_0x262c9a={_0x54ab6a:0x1c7,_0x97abfd:0x1c2},_0x36d7e6={_0x589db7:0x28,_0xb090d8:0x2f1};function _0x2767f5(_0x49b064,_0x1831ae,_0x4874e6,_0x2ee0d0){return _0x477ada(_0x4874e6,_0x1831ae-_0x36d7e6._0x589db7,_0x4874e6-0x18d,_0x1831ae-_0x36d7e6._0xb090d8);}function _0x2c2fa1(_0x35edfd,_0x23137a,_0x49a08c,_0x22b707){return _0x39c515(_0x23137a-0x333,_0x23137a-_0x262c9a._0x54ab6a,_0x49a08c-_0x262c9a._0x97abfd,_0x49a08c);}return{'callId':_0x4d6ee9['id'],'toolName':_0x4d6ee9[_0x2c2fa1(_0x209a4d._0x3437dc,_0x209a4d._0x162759,0x495,_0x209a4d._0x388b73)],'status':'ok','output':_0x30d89a['output'],'structured':_0x30d89a[_0x2c2fa1(0x4d0,0x4d7,_0x209a4d._0x1246a2,0x48c)],..._0x30d89a[_0x2c2fa1(0x455,0x449,0x3eb,_0x209a4d._0x209e62)]!==void 0x0?{'content':_0x30d89a[_0x2c2fa1(0x46c,_0x209a4d._0x4d40d2,_0x209a4d._0x196dff,0x464)]}:{},'chunks':_0x35ce4e,'meta':createToolMeta()};}function createUnknownToolResult(_0x46f095){const _0x110516={_0x328b8a:0x60,_0xdcf9fd:0xa6},_0x563f91={_0xe5eca5:0x1d5};function _0xa7cfee(_0x3adc55,_0x3e6799,_0x118eb2,_0x37e401){return _0x477ada(_0x118eb2,_0x3e6799-0xb4,_0x118eb2-0xe8,_0x3e6799-_0x563f91._0xe5eca5);}function _0x5493d0(_0x2be4e7,_0x1b8a9f,_0x4a2b42,_0x1975fd){return _0x39c515(_0x4a2b42-0x2e9,_0x1b8a9f-0x50,_0x4a2b42-0x19d,_0x1975fd);}return createErrorToolResult(_0x46f095,_0x5493d0(0x472,0x407,0x45c,0x420)+_0x46f095[_0xa7cfee(0xb7,0x72,_0x110516._0x328b8a,_0x110516._0xdcf9fd)],{'error':'unknown_tool'});}function isDispatchDecision(_0x408273){const _0x459578={_0x4954e6:0xc5,_0x210ce3:0x2,_0x225fc1:0x4d,_0x14748f:0x84,_0x4fc471:0x31,_0x3b8bdf:0x4a,_0x5c2ae3:0x1f,_0x1b0597:0x33,_0x3bc5c1:0x8},_0x5905e5={_0x450f45:0x70};function _0x264820(_0xda3485,_0x2439ef,_0x58e456,_0x1ae08a){return _0x39c515(_0x2439ef- -0x17b,_0x2439ef-0x1e3,_0x58e456-_0x5905e5._0x450f45,_0x1ae08a);}if(typeof _0x408273!==_0xb5cea3(_0x459578._0x4954e6,0xa2,0xef,0xf3)||_0x408273===null)return![];function _0xb5cea3(_0x484bff,_0x30ffa8,_0x4d057f,_0x574d4f){return _0x477ada(_0x30ffa8,_0x30ffa8-0x49,_0x4d057f-0x131,_0x484bff-0x21d);}return _0x408273[_0x264820(-_0x459578._0x210ce3,-_0x459578._0x225fc1,-_0x459578._0x14748f,-_0x459578._0x4fc471)]===_0x264820(_0x459578._0x3b8bdf,0x1f,-0xc,-0x9)||_0x408273[_0xb5cea3(0x76,_0x459578._0x5c2ae3,0xb7,0x5f)]===_0x264820(-_0x459578._0x1b0597,-0x4a,0x4,_0x459578._0x3bc5c1);}function normalizeExecutionError(_0x66feaa){const _0x173fcf={_0x330809:0x1df,_0x63f195:0x1a1,_0x4e9c3f:0x1a0,_0x4cd0af:0x1ad,_0xcc6de4:0x17c,_0x559203:0x173,_0x22135f:0x2b1,_0x2531bf:0x239},_0x351507={_0x15b46b:0xae};if(_0x66feaa instanceof ToolExecutionError)return{'errorMessage':_0x66feaa[_0x84dba5(-0x1af,-0x18c,-_0x173fcf._0x330809,-0x1a7)],'structured':{'error':_0x66feaa[_0x84dba5(-_0x173fcf._0x63f195,-0x1c5,-_0x173fcf._0x4e9c3f,-0x1a7)],..._0x66feaa[_0x84dba5(-_0x173fcf._0x4cd0af,-_0x173fcf._0xcc6de4,-0x137,-_0x173fcf._0x559203)]}};function _0x204963(_0x34f279,_0x1c578d,_0x5104a0,_0x1fb185){return _0x39c515(_0x5104a0-0x118,_0x1c578d-_0x351507._0x15b46b,_0x5104a0-0x9d,_0x1fb185);}if(_0x66feaa instanceof Error)return{'errorMessage':_0x66feaa['message'],'structured':{'error':_0x66feaa[_0x204963(_0x173fcf._0x22135f,_0x173fcf._0x2531bf,0x288,0x26b)]}};function _0x84dba5(_0x195c83,_0x39fceb,_0xc2c0b8,_0x409dc5){return _0x39c515(_0x409dc5- -0x317,_0x39fceb-0x108,_0xc2c0b8-0x162,_0x195c83);}const _0x51409c=String(_0x66feaa);return{'errorMessage':_0x51409c,'structured':{'error':_0x51409c}};}async function emitEvent(_0x5b23af,_0x38ab32,_0x3ba856){await _0x5b23af?.(_0x38ab32,_0x3ba856);}async function resolveDispatchDecision(_0x5346b6,_0x1a1000,_0x16968b){const _0x3e132e={_0x293b22:0x160,_0x249579:0x10b,_0x512166:0x136,_0x2876bd:0x55f,_0x8fa36c:0x53a,_0x3d5a88:0x5b7,_0x39cd09:0x57f,_0x509a9b:0x538,_0xd81711:0x59c,_0x398034:0xc5,_0x349cfe:0x10b,_0x99c610:0x151},_0xd4077a={_0x145f02:0xeb,_0x4d3ad5:0xb8,_0x17f6a9:0xa0,_0x1bda1c:0xcb,_0x381210:0x94,_0x46d9a7:0x4ef,_0x42e0c0:0x4c9,_0xba6b3d:0x4c8,_0x8cee38:0x10c,_0x277d45:0x48a,_0x2aeb8c:0x49a,_0x346e1f:0x4bd},_0x5c1817={_0x29e44b:0xb1},_0x3ae8cb={_0x2f4813:0x26,_0x140c3c:0x1c5},_0x4927a7={_0x36726d:0x7f,_0x2bfb0c:0x3b};if(!_0x5346b6)return{'action':_0x1208f4(_0x3e132e._0x293b22,0xb5,_0x3e132e._0x249579,_0x3e132e._0x512166)};const _0x5ec34c=Promise[_0x222aaa(_0x3e132e._0x2876bd,0x59b,0x5e7,0x597)]()[_0x222aaa(0x57a,_0x3e132e._0x8fa36c,_0x3e132e._0x3d5a88,_0x3e132e._0x39cd09)](()=>_0x5346b6(_0x1a1000,_0x16968b));function _0x222aaa(_0x1ab2f1,_0x270654,_0x3e7ac2,_0x4e2811){return _0x477ada(_0x3e7ac2,_0x270654-_0x4927a7._0x36726d,_0x3e7ac2-_0x4927a7._0x2bfb0c,_0x4e2811-0x6f0);}if(!_0x16968b[_0x222aaa(_0x3e132e._0x509a9b,0x59e,_0x3e132e._0xd81711,0x578)]){const _0x22a55c=await _0x5ec34c;return isDispatchDecision(_0x22a55c)?_0x22a55c:{'action':'run'};}function _0x1208f4(_0x5c40c4,_0x161442,_0x200fcf,_0x4ae4df){return _0x39c515(_0x200fcf- -_0x3ae8cb._0x2f4813,_0x161442-_0x3ae8cb._0x140c3c,_0x200fcf-0x93,_0x161442);}const _0x2cc68f=new Promise((_0x1e69eb,_0x4833fe)=>{const _0x2c3f0f={_0x22b5de:0x2f,_0x5d9471:0x56c,_0x41a06d:0x53c,_0x4e6534:0x58e,_0xe9360d:0x5e2,_0x4708df:0x5b3,_0x14e1e8:0x55c},_0x146c27=()=>{const _0x598674={_0x324723:0x3aa};function _0x562d9c(_0x48a28f,_0x1bc388,_0x16671f,_0x3d8481){return _0x504c(_0x16671f- -0x1bd,_0x1bc388);}function _0x26bc98(_0x467ed9,_0x37af07,_0x23c975,_0x4c27eb){return _0x504c(_0x467ed9-_0x598674._0x324723,_0x37af07);}_0x16968b[_0x562d9c(-0x11,0x1c,0x4b,_0x2c3f0f._0x22b5de)]?.['removeEventListener'](_0x26bc98(_0x2c3f0f._0x5d9471,0x57f,_0x2c3f0f._0x41a06d,_0x2c3f0f._0x4e6534),_0x146c27),_0x4833fe(toAbortError(_0x16968b[_0x26bc98(0x5b2,_0x2c3f0f._0xe9360d,0x594,0x5d5)]?.[_0x26bc98(_0x2c3f0f._0x4708df,0x58c,_0x2c3f0f._0x14e1e8,0x5a6)]));};function _0x285a45(_0x4618fb,_0xda08c4,_0x55de1e,_0x36c2bd){return _0x1208f4(_0x4618fb-0x152,_0x4618fb,_0x55de1e- -0x1ef,_0x36c2bd-0x198);}function _0x4faabe(_0x1be62d,_0x5a0b87,_0x59ccd0,_0x5a088f){return _0x222aaa(_0x1be62d-0x12,_0x5a0b87-0x157,_0x59ccd0,_0x5a088f- -_0x5c1817._0x29e44b);}if(_0x16968b[_0x285a45(-_0xd4077a._0x145f02,-0x70,-_0xd4077a._0x4d3ad5,-_0xd4077a._0x17f6a9)]?.[_0x285a45(-_0xd4077a._0x1bda1c,-0x48,-_0xd4077a._0x381210,-0xd8)]){_0x4833fe(toAbortError(_0x16968b['signal'][_0x4faabe(_0xd4077a._0x46d9a7,_0xd4077a._0x42e0c0,0x46f,_0xd4077a._0xba6b3d)]));return;}_0x16968b[_0x285a45(-_0xd4077a._0x8cee38,-0x5b,-_0xd4077a._0x4d3ad5,-0xb2)]?.[_0x4faabe(0x47d,_0xd4077a._0x277d45,_0xd4077a._0x2aeb8c,_0xd4077a._0x346e1f)]('abort',_0x146c27,{'once':!![]});}),_0xdbb888=await Promise['race']([_0x5ec34c,_0x2cc68f]);return isDispatchDecision(_0xdbb888)?_0xdbb888:{'action':_0x1208f4(_0x3e132e._0x398034,0xb8,_0x3e132e._0x349cfe,_0x3e132e._0x99c610)};}async function executeToolCall(_0x45cccf,_0x19870b,_0x427faf,_0x551431,_0x4823d5){const _0x4e245a={_0x26b820:0x30d,_0x4025d6:0x2dc,_0x1a2740:0x266,_0xfb5fd7:0x2c1,_0xb75ccb:0x2b0,_0x203659:0x2c7,_0x157e0e:0x2b7,_0x1fc0cb:0x2a9,_0x471bfc:0x2c2,_0x1cc46d:0x22b,_0x57c5c0:0x1d2,_0x546b8d:0x1c4,_0x5ed5f2:0x1e4,_0x44931e:0x28a,_0x526557:0x26f,_0x14fb53:0x1c1,_0x5a2f93:0x184,_0x32ac29:0x2e1,_0x913442:0x2ad,_0x33e7cb:0x298,_0x5346e2:0x1d4,_0x47a74e:0x1f1,_0x250fbb:0x200,_0x851ff6:0x216,_0x183c41:0x20a,_0x2d7c84:0x239,_0x1c727c:0x154,_0x27caf1:0x19a,_0x55f015:0x1a6,_0x316954:0x1a1,_0x9d0076:0x2c8,_0x20df16:0x2f0,_0x2e17e7:0x27d,_0x5690fc:0x254,_0x2c3314:0x1aa,_0x585da4:0x24d,_0x6ad68a:0x1cb,_0x2022c2:0x248,_0xef341d:0x2b8,_0x5a99eb:0x294},_0x1d2613={_0x3d1bea:0xdd},_0x4d5961={_0x1f25ab:0x164,_0x2e3a1d:0xef,_0x25df68:0x12},_0x3f71ed={_0x503094:0x32f,_0x3b9192:0xc},_0x14e604={..._0x427faf,'toolCallId':_0x19870b['id']};throwIfAborted(_0x14e604[_0x208d26(_0x4e245a._0x26b820,_0x4e245a._0x4025d6,0x2d4,0x2c1)]);let _0x4c2c3c;try{_0x4c2c3c=await resolveDispatchDecision(_0x551431,_0x19870b,_0x14e604);}catch(_0x3c3c48){if(isAbortError(_0x3c3c48)){const _0x25c5d0=createAbortedToolResult(_0x19870b,_0x3c3c48);return await emitEvent(_0x4823d5,{'type':'tool_completed','toolCall':_0x19870b,'result':_0x25c5d0},_0x14e604),_0x25c5d0;}const {errorMessage:_0x1ac49f,structured:_0x31d2f9}=normalizeExecutionError(_0x3c3c48),_0x3c15f8=createErrorToolResult(_0x19870b,_0x1ac49f,_0x31d2f9);return await emitEvent(_0x4823d5,{'type':_0x208d26(_0x4e245a._0x1a2740,0x29a,0x2d7,0x294),'toolCall':_0x19870b,'result':_0x3c15f8},_0x14e604),_0x3c15f8;}throwIfAborted(_0x14e604[_0x208d26(0x266,0x310,0x315,_0x4e245a._0xfb5fd7)]);if(_0x4c2c3c[_0x208d26(0x244,0x29d,0x27c,0x292)]===_0x208d26(_0x4e245a._0xb75ccb,0x332,_0x4e245a._0x203659,0x2fe)){const _0x1f4c5b=createRejectedToolResult(_0x19870b,_0x4c2c3c[_0x208d26(_0x4e245a._0x203659,_0x4e245a._0x157e0e,_0x4e245a._0x1fc0cb,_0x4e245a._0x471bfc)]);return await emitEvent(_0x4823d5,{'type':'tool_rejected','toolCall':_0x19870b,'result':_0x1f4c5b},_0x14e604),_0x1f4c5b;}const _0x48e7bd=_0x45cccf[_0x35a171(-0x225,-_0x4e245a._0x1cc46d,-0x20c,-0x267)](_0x19870b[_0x35a171(-0x16a,-0x206,-0x1bd,-0x162)]);function _0x35a171(_0x571a92,_0x1b84ed,_0x1b2a1c,_0x29a578){return _0x39c515(_0x1b2a1c- -_0x3f71ed._0x503094,_0x1b84ed-_0x3f71ed._0x3b9192,_0x1b2a1c-0xcb,_0x571a92);}function _0x208d26(_0x115e19,_0x513a1f,_0x54a1cb,_0x3db088){return _0x39c515(_0x3db088-_0x4d5961._0x1f25ab,_0x513a1f-_0x4d5961._0x2e3a1d,_0x54a1cb-_0x4d5961._0x25df68,_0x54a1cb);}if(!_0x48e7bd){const _0x741069=createUnknownToolResult(_0x19870b);return await emitEvent(_0x4823d5,{'type':'tool_completed','toolCall':_0x19870b,'result':_0x741069},_0x14e604),_0x741069;}throwIfAborted(_0x14e604[_0x35a171(-0x218,-0x20c,-_0x4e245a._0x57c5c0,-0x1b4)]),await emitEvent(_0x4823d5,{'type':_0x35a171(-_0x4e245a._0x546b8d,-_0x4e245a._0x5ed5f2,-0x192,-0x17d),'toolCall':_0x19870b},_0x14e604);try{throwIfAborted(_0x14e604['signal']);const _0x5bd37d=validateToolInput(_0x19870b['input'],_0x48e7bd[_0x208d26(0x21b,_0x4e245a._0x44931e,0x260,_0x4e245a._0x526557)]),_0x20f201=await _0x48e7bd[_0x35a171(-0x208,-_0x4e245a._0x14fb53,-0x1b1,-0x168)](_0x5bd37d,_0x14e604),_0x463e80=[],_0x14871c=addAbortListener(_0x14e604[_0x35a171(-0x221,-0x1a3,-_0x4e245a._0x57c5c0,-0x1d4)],()=>{const _0x3ecce6={_0x17a82e:0x91};function _0x1b87ce(_0xcd2f33,_0x947d14,_0x396b94,_0x174da1){return _0x35a171(_0x174da1,_0x947d14-0x1f3,_0xcd2f33-0x2d6,_0x174da1-_0x3ecce6._0x17a82e);}void _0x20f201[_0x1b87ce(0xb7,0xdd,0x99,_0x1d2613._0x3d1bea)](void 0x0)['catch'](()=>{});});try{throwIfAborted(_0x14e604[_0x35a171(-0x189,-0x1d4,-0x1d2,-_0x4e245a._0x5a2f93)]);let _0x13ad5c=await _0x20f201['next']();while(!_0x13ad5c[_0x208d26(0x25e,_0x4e245a._0x32ac29,_0x4e245a._0x913442,_0x4e245a._0x33e7cb)]){throwIfAborted(_0x14e604[_0x208d26(0x308,0x2c0,0x2aa,0x2c1)]);const _0x4accfc=normalizeToolOutputValue(_0x13ad5c[_0x35a171(-0x162,-_0x4e245a._0x5346e2,-0x1a6,-0x176)]);_0x463e80['push'](_0x4accfc),await emitEvent(_0x4823d5,{'type':_0x35a171(-0x222,-_0x4e245a._0x47a74e,-_0x4e245a._0x250fbb,-_0x4e245a._0x851ff6),'toolCall':_0x19870b,'chunk':_0x4accfc},_0x14e604),throwIfAborted(_0x14e604[_0x35a171(-0x210,-0x207,-0x1d2,-_0x4e245a._0x183c41)]),_0x13ad5c=await _0x20f201[_0x35a171(-0x216,-_0x4e245a._0x2d7c84,-0x229,-0x1d9)]();}throwIfAborted(_0x14e604['signal']);const _0x305127=_0x13ad5c[_0x35a171(-_0x4e245a._0x1c727c,-_0x4e245a._0x27caf1,-_0x4e245a._0x55f015,-0x162)]===void 0x0?deriveFinalToolOutput(_0x463e80):normalizeToolOutputValue(_0x13ad5c[_0x35a171(-0x1f3,-_0x4e245a._0x316954,-0x1a6,-0x1c7)]),_0x1e591d=createSuccessToolResult(_0x19870b,_0x305127,_0x463e80);return await emitEvent(_0x4823d5,{'type':_0x208d26(_0x4e245a._0x9d0076,_0x4e245a._0x20df16,0x2da,0x294),'toolCall':_0x19870b,'result':_0x1e591d},_0x14e604),_0x1e591d;}catch(_0x187a3e){if(isAbortError(_0x187a3e)){const _0xdc70d1=createAbortedToolResult(_0x19870b,_0x187a3e,_0x463e80);return await emitEvent(_0x4823d5,{'type':_0x208d26(_0x4e245a._0x2e17e7,0x28b,_0x4e245a._0x5690fc,0x294),'toolCall':_0x19870b,'result':_0xdc70d1},_0x14e604),_0xdc70d1;}const {errorMessage:_0x403fc9,structured:_0x15a768}=normalizeExecutionError(_0x187a3e),_0x31a7a5=createErrorToolResult(_0x19870b,_0x403fc9,_0x15a768,_0x463e80);return await emitEvent(_0x4823d5,{'type':_0x35a171(-_0x4e245a._0x2c3314,-_0x4e245a._0x585da4,-0x1ff,-_0x4e245a._0x6ad68a),'toolCall':_0x19870b,'result':_0x31a7a5},_0x14e604),_0x31a7a5;}finally{_0x14871c();}}catch(_0x5de73e){if(isAbortError(_0x5de73e)){const _0x2a8c28=createAbortedToolResult(_0x19870b,_0x5de73e);return await emitEvent(_0x4823d5,{'type':'tool_completed','toolCall':_0x19870b,'result':_0x2a8c28},_0x14e604),_0x2a8c28;}const {errorMessage:_0x52bb9b,structured:_0x197ca5}=normalizeExecutionError(_0x5de73e),_0x2cba7a=createErrorToolResult(_0x19870b,_0x52bb9b,_0x197ca5);return await emitEvent(_0x4823d5,{'type':_0x208d26(_0x4e245a._0x2022c2,_0x4e245a._0x32ac29,_0x4e245a._0xef341d,_0x4e245a._0x5a99eb),'toolCall':_0x19870b,'result':_0x2cba7a},_0x14e604),_0x2cba7a;}}function createInternalToolRuntime(_0x20fc34=[],_0x1758f5={}){const _0x4bff36={_0x506f2b:0x1e,_0x91879f:0x47},_0x1b5932={_0x3284a1:0x1a0,_0xdf955:0x17f},_0x1baad0={_0x555bff:0x365},_0x397984={_0x3a3a37:0x1b5};let _0xe75e39=new ToolRegistry(_0x20fc34);return{'listToolSchemas'(){function _0x4733f5(_0x531d97,_0x1c15bc,_0x508a43,_0x42de8f){return _0x504c(_0x1c15bc-_0x397984._0x3a3a37,_0x42de8f);}return _0xe75e39[_0x4733f5(_0x1baad0._0x555bff,0x39a,0x3e5,0x34f)]();},'setTools'(_0xa989b7){_0xe75e39=new ToolRegistry(_0xa989b7);},async 'executeCalls'(_0x3a9e82,_0x2ff9a2){const _0x51ea2a={_0x16b452:0x89,_0x4b42a8:0x33};function _0x115040(_0x2a8661,_0x1f2ebe,_0x27fd50,_0x25984e){return _0x504c(_0x2a8661- -0x20b,_0x1f2ebe);}return await Promise[_0x115040(0x0,-_0x4bff36._0x506f2b,_0x4bff36._0x91879f,-0x43)](_0x3a9e82['map'](async _0x4c0c3d=>{function _0x4a16b1(_0x5c9442,_0x3886fa,_0x7a6a41,_0x34176a){return _0x115040(_0x3886fa-0x2b6,_0x7a6a41,_0x7a6a41-0xe3,_0x34176a-0x158);}function _0x3e8849(_0x5b7483,_0x5bdf6c,_0x31c417,_0x448cb1){return _0x115040(_0x5bdf6c-0x194,_0x31c417,_0x31c417-_0x51ea2a._0x16b452,_0x448cb1-_0x51ea2a._0x4b42a8);}return await executeToolCall(_0xe75e39,_0x4c0c3d,_0x2ff9a2,_0x1758f5[_0x4a16b1(0x251,0x2ae,0x2ce,0x289)],_0x1758f5[_0x3e8849(_0x1b5932._0x3284a1,0x176,_0x1b5932._0xdf955,0x181)]);}));},async 'execute'(_0x328bae,_0x206136){const _0x197054={_0x2d5383:0x362};function _0x46f496(_0x457d6e,_0xbf11c0,_0x228afc,_0x1da176){return _0x504c(_0x1da176-_0x197054._0x2d5383,_0x457d6e);}const [_0x59b857]=await this[_0x46f496(0x5b8,0x557,0x5cc,0x5b0)]([_0x328bae],_0x206136);return _0x59b857;}};}function getOrderedObserverExtensions(_0x3822bd,_0x4af783){const _0x383398={_0x4b709a:0x5c6,_0x8bcaa8:0x5b3},_0x35d05e={_0x38cb6e:0x2bf,_0x53dabf:0x282,_0x4f2451:0x428,_0x5b8cbb:0x4c5,_0xcc1ee2:0x465},_0x408f0d={_0x1fde5e:0x371},_0x57e042={_0x35bdee:0x74b},_0x4fcfbf={_0x2e2a29:0x57,_0x211df5:0x569};function _0x5bd460(_0x5a7287,_0x1727dd,_0x49e8f8,_0x532355){return _0x477ada(_0x5a7287,_0x1727dd-_0x4fcfbf._0x2e2a29,_0x49e8f8-0x192,_0x532355-_0x4fcfbf._0x211df5);}function _0x1956f5(_0x4def8b,_0x1c20d6,_0xc46aac,_0x4982de){return _0x477ada(_0xc46aac,_0x1c20d6-0xbb,_0xc46aac-0xa5,_0x4def8b-_0x57e042._0x35bdee);}return _0x3822bd[_0x1956f5(_0x383398._0x4b709a,0x61e,0x578,_0x383398._0x8bcaa8)](_0x233a8c=>{const _0x1bab23={_0x134469:0x1f2};function _0x32bbfe(_0x284635,_0x276597,_0x5083df,_0x87ce97){return _0x1956f5(_0x284635- -0x15e,_0x276597-0xbf,_0x87ce97,_0x87ce97-_0x1bab23._0x134469);}function _0x3b9157(_0xb0e1a7,_0x203889,_0x576ad6,_0x19fe1b){return _0x1956f5(_0x19fe1b- -_0x408f0d._0x1fde5e,_0x203889-0x13,_0x576ad6,_0x19fe1b-0x3e);}return _0x233a8c[_0x3b9157(_0x35d05e._0x38cb6e,_0x35d05e._0x53dabf,0x24b,0x295)]!==![]&&_0x233a8c[_0x32bbfe(0x440,_0x35d05e._0x4f2451,0x49d,0x466)]===_0x4af783&&_0x233a8c[_0x32bbfe(0x4cb,0x4bf,_0x35d05e._0x5b8cbb,0x4ff)]===_0x32bbfe(0x44f,_0x35d05e._0xcc1ee2,0x448,0x45e);})['sort']((_0x5f1bd3,_0xdd19e1)=>_0x5f1bd3[_0x5bd460(0x411,0x3c4,0x42e,0x416)]-_0xdd19e1[_0x5bd460(0x436,0x3e6,0x401,0x416)]);}function getOrderedTransformerExtensions(_0x2b578a,_0x5478fa){const _0x53f6e6={_0x82c37a:0x189,_0x4fce47:0x16a,_0x296023:0x118,_0x2cbb49:0x40d,_0x5e1643:0x396},_0x3a7565={_0x5db96b:0x72,_0x5adc01:0x3b,_0x3437b1:0x12e,_0x7941f9:0xf2},_0x527ad8={_0x51eb81:0x166,_0x58a3c9:0x1f5,_0x48f693:0x10a},_0x469565={_0x4495a5:0x2cf,_0x80dd65:0xea};function _0x12d3f6(_0x396860,_0x1b8d75,_0x4f42f3,_0x5b9412){return _0x39c515(_0x4f42f3-_0x469565._0x4495a5,_0x1b8d75-_0x469565._0x80dd65,_0x4f42f3-0x178,_0x5b9412);}function _0x52f66e(_0x3758e6,_0x5edc9f,_0xabc475,_0x23f2f7){return _0x477ada(_0xabc475,_0x5edc9f-0x70,_0xabc475-0x9f,_0x5edc9f-0x1b);}return _0x2b578a[_0x52f66e(-_0x53f6e6._0x82c37a,-_0x53f6e6._0x4fce47,-_0x53f6e6._0x296023,-0x1c4)](_0x3415ea=>{const _0x381484={_0x72b350:0x6e,_0x244c23:0x27};function _0x57c345(_0x4157df,_0xa924d2,_0x2d3af5,_0x1e25bd){return _0x52f66e(_0x4157df-_0x381484._0x72b350,_0x2d3af5- -_0x381484._0x244c23,_0x1e25bd,_0x1e25bd-0x2d);}function _0x2a35ef(_0x3246d0,_0x14e7df,_0x5dceaa,_0x3a74b4){return _0x52f66e(_0x3246d0-_0x527ad8._0x51eb81,_0x3246d0-_0x527ad8._0x58a3c9,_0x14e7df,_0x3a74b4-_0x527ad8._0x48f693);}return _0x3415ea['enabled']!==![]&&_0x3415ea[_0x2a35ef(0x63,0x38,_0x3a7565._0x5db96b,_0x3a7565._0x5adc01)]===_0x5478fa&&_0x3415ea[_0x57c345(-0xfa,-0x153,-_0x3a7565._0x3437b1,-_0x3a7565._0x7941f9)]==='transformer';})[_0x12d3f6(_0x53f6e6._0x2cbb49,0x3e3,0x3d7,_0x53f6e6._0x5e1643)]((_0x504135,_0x479c29)=>_0x504135[_0x52f66e(-0x14e,-0x138,-0x12a,-0x11b)]-_0x479c29[_0x12d3f6(0x486,0x47c,0x451,0x419)]);}function createExtensionRegistry(){const _0x35103e={_0x501860:0x135,_0x20e064:0xe9},_0x18a4d8={_0x253a64:0x543,_0x5be520:0x546},_0x29bdc7={_0x5296ef:0x37e},_0x11191d={_0x4ed73e:0x167,_0x3755e8:0x149},_0x4861da=[];return{'register'(_0xac0f9){const _0x649416={_0x501f43:0x382};function _0x45852b(_0x7c2d31,_0x7d4a1c,_0x376d9f,_0x16bcc2){return _0x504c(_0x7c2d31- -_0x649416._0x501f43,_0x376d9f);}_0x4861da[_0x45852b(-0x150,-_0x11191d._0x4ed73e,-0x19e,-_0x11191d._0x3755e8)](_0xac0f9);},async 'runTransformers'(_0x49d3ae,_0x2d202e,_0x38f039){function _0x19c8a1(_0x3a89b7,_0x6f6149,_0xf722ed,_0x3ae373){return _0x504c(_0x6f6149-_0x29bdc7._0x5296ef,_0x3a89b7);}let _0x4cd9f3=_0x2d202e;for(const _0x363c75 of getOrderedTransformerExtensions(_0x4861da,_0x49d3ae)){_0x4cd9f3=await _0x363c75[_0x19c8a1(_0x18a4d8._0x253a64,0x55a,0x501,_0x18a4d8._0x5be520)](_0x4cd9f3,_0x38f039);}return _0x4cd9f3;},async 'runObservers'(_0xfc611d,_0x49eead,_0x23eddf){function _0xb9f6c2(_0x2c175c,_0x4c2a04,_0x1a9e65,_0x5dd8df){return _0x504c(_0x5dd8df- -0xf3,_0x1a9e65);}for(const _0x40685e of getOrderedObserverExtensions(_0x4861da,_0xfc611d)){await _0x40685e[_0xb9f6c2(0x8f,_0x35103e._0x501860,0x13c,_0x35103e._0x20e064)](_0x49eead,_0x23eddf);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function createAgentMetrics(_0x39b820={}){const _0x154d35={_0x11ec54:0x45c},_0x5a4a20={_0x8e3c2b:0x273},_0x367bda={_0x904b4d:0x304,_0x515ae0:0x2da,_0x4e30cf:0x20c,_0x2b6d93:0x1fb,_0x1f075a:0x363,_0x1a5d3d:0x33f,_0x241715:0x2ff,_0x4e5b7e:0x1aa,_0x468886:0x1f2,_0x33606a:0x304,_0x4aeb37:0x37d,_0x19af28:0x37c,_0xdc8528:0x2d7,_0x44210d:0x321,_0x31406e:0x1f9,_0x12ff77:0x208,_0x556715:0x216,_0x444ecf:0x1d2,_0x3dd8fd:0x1b0,_0x517be0:0x1d3,_0x3b1cdf:0x35c,_0xc6b18d:0x364,_0x5cece0:0x1b6,_0x5812ef:0x17b,_0xe89f8:0x39b,_0x3c5fa3:0x3a1,_0x2e6bde:0x352,_0x3c7422:0x325,_0x281b0f:0x388,_0x2c7adf:0x338,_0x2beabf:0x2fd,_0x48f0a3:0x2ea,_0x1b849b:0x2cf,_0xfc4f1d:0x2ee,_0x1456e3:0x1ba,_0x13a1ef:0x203,_0x51c29d:0x1c0,_0x3d319a:0x1e2,_0x4a0a2e:0x173,_0x3c45bd:0x350};let _0x1b1c91=createEmptySnapshot();const _0x1789a3=new Set();let _0x26678e;const _0x4a8f55=()=>{const _0x358320={..._0x1b1c91};for(const _0x5ec97b of _0x1789a3)_0x5ec97b(_0x358320);};return{'getSnapshot'(){return{..._0x1b1c91};},'recordEvent'(_0x27e583){function _0x5051ff(_0x5dc6d9,_0x3d1008,_0x3abf55,_0x212a0d){return _0x504c(_0x5dc6d9-0x147,_0x212a0d);}if(_0x27e583[_0x5051ff(_0x367bda._0x904b4d,_0x367bda._0x515ae0,0x2b6,0x2dc)]===_0x45b97f(_0x367bda._0x4e30cf,0x236,0x236,_0x367bda._0x2b6d93)){_0x26678e=Date[_0x5051ff(_0x367bda._0x1f075a,0x34d,_0x367bda._0x1a5d3d,0x340)]();const _0x5c9087=_0x39b820[_0x5051ff(0x354,0x368,_0x367bda._0x241715,0x317)]?.(_0x27e583[_0x45b97f(0x1ad,0x16f,_0x367bda._0x4e5b7e,_0x367bda._0x468886)]);_0x5c9087!==void 0x0&&(_0x1b1c91={..._0x1b1c91,'contextWindowLimit':_0x5c9087},_0x4a8f55());return;}if(_0x27e583[_0x5051ff(_0x367bda._0x33606a,0x2ec,0x34d,0x345)]===_0x5051ff(_0x367bda._0x4aeb37,_0x367bda._0x19af28,0x342,0x3d6)){const _0x385b18=_0x27e583['response'][_0x5051ff(0x2ff,_0x367bda._0xdc8528,0x2e9,_0x367bda._0x44210d)]['inputTokens'],_0x3f8b64=_0x27e583['response'][_0x5051ff(0x2ff,0x2cb,0x352,0x2da)][_0x45b97f(_0x367bda._0x31406e,_0x367bda._0x12ff77,0x217,_0x367bda._0x556715)],_0x26608e=_0x27e583['response']['usage'][_0x5051ff(0x361,0x390,0x369,0x345)]??0x0,_0x40a909=_0x385b18+_0x3f8b64,_0x2356fe=_0x26678e===void 0x0?0x0:Date[_0x45b97f(_0x367bda._0x444ecf,0x1d7,_0x367bda._0x3dd8fd,_0x367bda._0x517be0)]()-_0x26678e;_0x26678e=void 0x0,_0x1b1c91={..._0x1b1c91,'totalTokens':_0x1b1c91[_0x5051ff(0x376,_0x367bda._0x3b1cdf,0x359,_0x367bda._0xc6b18d)]+_0x40a909,'totalInputTokens':_0x1b1c91[_0x45b97f(_0x367bda._0x5cece0,_0x367bda._0x5812ef,0x19b,0x18d)]+_0x385b18,'totalOutputTokens':_0x1b1c91[_0x45b97f(0x207,0x24f,0x1cb,0x1b9)]+_0x3f8b64,'totalReasoningTokens':_0x1b1c91[_0x5051ff(_0x367bda._0xe89f8,0x370,_0x367bda._0x3c5fa3,_0x367bda._0x2e6bde)]+_0x26608e,'modelCallCount':_0x1b1c91[_0x5051ff(0x359,_0x367bda._0x3c7422,_0x367bda._0x281b0f,0x34c)]+0x1,'totalModelTimeMs':_0x1b1c91[_0x5051ff(_0x367bda._0x2c7adf,0x2f9,_0x367bda._0x2beabf,_0x367bda._0x48f0a3)]+_0x2356fe,'currentTokens':_0x40a909,'currentInputTokens':_0x385b18,'currentOutputTokens':_0x3f8b64,'currentReasoningTokens':_0x26608e,'currentModelTimeMs':_0x2356fe,..._0x1b1c91['contextWindowLimit']&&_0x40a909>0x0?{'contextWindowUsage':_0x40a909/_0x1b1c91['contextWindowLimit']}:{}},_0x4a8f55();return;}function _0x45b97f(_0x742020,_0x5d5ba0,_0x451e20,_0x3f77a7){return _0x504c(_0x742020- -0x4a,_0x5d5ba0);}if(_0x27e583[_0x5051ff(_0x367bda._0x33606a,0x32b,_0x367bda._0x1b849b,_0x367bda._0xfc4f1d)]===_0x45b97f(0x20e,_0x367bda._0x1456e3,0x1f3,_0x367bda._0x13a1ef)){_0x1b1c91={..._0x1b1c91,'toolCallCount':_0x1b1c91[_0x45b97f(_0x367bda._0x51c29d,0x19e,0x17b,_0x367bda._0x3d319a)]+0x1},_0x4a8f55();return;}_0x27e583[_0x45b97f(_0x367bda._0x4a0a2e,0x1c8,0x150,0x149)]===_0x5051ff(0x3a9,0x402,0x364,_0x367bda._0x3c45bd)&&(_0x1b1c91={..._0x1b1c91,'requestCount':_0x1b1c91['requestCount']+0x1},_0x4a8f55());},'reset'(){_0x1b1c91=createEmptySnapshot(),_0x26678e=void 0x0,_0x4a8f55();},'subscribe'(_0x434ac8){const _0x2db408={_0x4b80a2:0x534,_0x21f131:0x56d};_0x1789a3[_0x118f06(0x438,0x436,0x3eb,_0x154d35._0x11ec54)](_0x434ac8);function _0x118f06(_0x501c05,_0x2de2ad,_0x471e4e,_0x385880){return _0x504c(_0x2de2ad-_0x5a4a20._0x8e3c2b,_0x471e4e);}return()=>{const _0x57cc01={_0x44eb4b:0x110,_0x4e4d16:0xe7,_0x5c3624:0xa1};function _0x426481(_0x3970be,_0x2ab049,_0x2ed11b,_0x5bb266){return _0x118f06(_0x3970be-_0x57cc01._0x44eb4b,_0x5bb266-_0x57cc01._0x4e4d16,_0x2ab049,_0x5bb266-_0x57cc01._0x5c3624);}_0x1789a3[_0x426481(0x527,_0x2db408._0x4b80a2,0x54f,_0x2db408._0x21f131)](_0x434ac8);};}};}function makeExtensionContext(_0x36656c){return{'state':_0x36656c};}async function runStage(_0x220939,_0x41ffaf,_0x5f4bba,_0x436cff){const _0x5c097a={_0x52e77f:0x190,_0x142d95:0x1fb,_0x27e51b:0x20e,_0x22fbe1:0x1b3,_0x5677cd:0x187},_0x2ba41f={_0x32ec32:0x1ea},_0x236ce5={_0x14ef65:0x31d,_0x41665c:0x90,_0x24a5b1:0x21},_0x1e355a=await _0x220939[_0x19e9f5(-0x190,-0x1d0,-_0x5c097a._0x52e77f,-_0x5c097a._0x142d95)](_0x41ffaf,_0x5f4bba,_0x436cff);function _0x19e9f5(_0x257bf5,_0x4520c2,_0x526020,_0xf920df){return _0x39c515(_0x4520c2- -_0x236ce5._0x14ef65,_0x4520c2-_0x236ce5._0x41665c,_0x526020-_0x236ce5._0x24a5b1,_0x526020);}function _0xc2e748(_0x2a103d,_0x581fc4,_0x182fe6,_0x1c4a6f){return _0x39c515(_0x182fe6- -0x22c,_0x581fc4-0xc4,_0x182fe6-_0x2ba41f._0x32ec32,_0x1c4a6f);}return await _0x220939[_0x19e9f5(-_0x5c097a._0x27e51b,-_0x5c097a._0x22fbe1,-_0x5c097a._0x5677cd,-0x191)](_0x41ffaf,_0x1e355a,_0x436cff),_0x1e355a;}async function emitEvent2(_0x338e30,_0x23277a,_0x20b83d){await _0x338e30?.(_0x23277a,_0x20b83d);}function replaceToolUseBlocks(_0x40b00f,_0x5bbd0a){const _0xd6d7e1={_0x5007b6:0x28c,_0x111c8b:0x205,_0xae3456:0x232,_0x45900a:0x24c},_0x58d978={_0x1a6091:0x16c,_0x364bd4:0x145},_0x46a577={_0x1db4df:0xb8},_0x4d46e3={_0x283047:0x87,_0x133a94:0x3f1};function _0x11b786(_0x2bf8c5,_0x30c47c,_0xe6a886,_0x574f09){return _0x477ada(_0x30c47c,_0x30c47c-_0x4d46e3._0x283047,_0xe6a886-0x119,_0xe6a886-_0x4d46e3._0x133a94);}let _0x1e6957=0x0;return{..._0x40b00f,'content':_0x40b00f[_0x11b786(_0xd6d7e1._0x5007b6,_0xd6d7e1._0x111c8b,_0xd6d7e1._0xae3456,_0xd6d7e1._0x45900a)]['map'](_0x13c2e9=>{function _0x37e83d(_0x17e97a,_0x4058af,_0x8d04c5,_0x3ac87e){return _0x11b786(_0x17e97a-0x140,_0x17e97a,_0x3ac87e- -0xf3,_0x3ac87e-_0x46a577._0x1db4df);}if(_0x13c2e9['type']!==_0x37e83d(_0x58d978._0x1a6091,0x153,0x129,_0x58d978._0x364bd4))return _0x13c2e9;const _0x353c74=_0x5bbd0a[_0x1e6957];return _0x1e6957+=0x1,structuredClone(_0x353c74);})};}function createAssistantMessageId(_0x5c6f4b,_0x4afe0e){const _0x1121d7={_0x53ce69:0xcb},_0x19ab7d={_0x28317a:0x1b1};function _0x29dbe5(_0x103977,_0x519360,_0xc2bf30,_0x2f85f0){return _0x477ada(_0xc2bf30,_0x519360-_0x19ab7d._0x28317a,_0xc2bf30-0x16a,_0x519360-0x1fb);}return _0x5c6f4b+_0x29dbe5(0x9b,_0x1121d7._0x53ce69,0xe8,0xeb)+_0x4afe0e;}function _0x105a(){const _0x91f852=['CMfUzg9T','DhvYBL9JB21WBgv0zq','CMvHC29UAw5Nu3rHCNrLzef0','CMvZzxrnzxnZywDLCW','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','Dg9VBhncEu5HBwu','y2HHDe1VzgvS','x3n5C3rLBvbYB21WDa','DxnLCG','BwvZC2fNzxm','C3rYzwfT','BMv4Da','y29TCgXLDgvK','C29YDa','y2f1C2u','BgvUz3rO','Aw5WDxrty2HLBwe','mZjMtvHuvgy','DxnHz2u','CMvNAxn0zxi','B25vC2vYtwvZC2fNzq','CMv0DxjU','CMvHC29UAw5NtwvZC2fNzuLK','DhLWzq','BwfW','B3v0Chv0','C2vZC2LVBKLK','y29UDgvUDa','ywjVCNq','ywrK','DMfSDwvZ','mJG2ntiWnvjJBfDcvW','Dgv4Da','Dg9VBf91C2u','yxjYyxK','DhjPBq','C3rHDhvZ','ChjVCgvYDgLLCW','DhvYBI0','y29TCgXLDgu','z2v0','nuX5r1Hszq','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','oIbLEhbLy3rLzcbIB29SzwfU','oNjLyxnVBMLUzW','C3rHz2u','ywz0zxjnB2rLBfjLC3bVBNnL','CMvNAxn0CNK','DgHPBMTPBMC','zM9YrwfJAa','BgfZDfjLC3bVBNnL','ywn0Aw9U','Dg9VBf9VDxrWDxrFy2H1BMS','Dg9VBf9JB21WBgv0zwq','CNvU','C3rYzwfTAw5N','AxrLBxm','zg9Uzq','ywz0zxjuDxjUq29TCgXLDgu','ywz0zxjnzxnZywDLqxbWzw5K','B2jZzxj2zxi','CMvXDwLYzwq','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','BgLZDfrVB2Xty2HLBwfZ','AxrLBuLK','Dg9VBf91C2vFBwvZC2fNzq','Bw9KzwW','DhvYBKnVBxbSzxrLzef0','C3vTBwfYEuLUzgv4','yxnZAxn0yw50x2nODw5R','BgLZDa','B25fDMvUDa','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','CMvZCg9UC2u','Dg9VBfj1BNrPBwu','Dg90ywXnB2rLBfrPBwvnCW','ywz0zxjuB29SuMvZDwX0','nZyZowXvuM1fsa','yM9VBgvHBG','Dg9VBfjLC3vSDhm','mtaXntqYnZrnCMnLzfC','CMvXDwvZDa','CNvUvhjHBNnMB3jTzxjZ','C3rYAw5N','mtCZmtG3mtbks0D3C3C','zMLSDgvY','oIbLEhbLy3rLzcbUDw1Izxi','owjwrgr4Ea','ywrKrxzLBNrmAxn0zw5LCG','Dg9VBf91C2vFzgvSDge','Dg90ywXjBNb1DfrVA2vUCW','Bwv0CMLJCW','BNvTyMvY','B25uB29Sq2fSBa','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','ota0odm4zwvbtK5z','y29UDgvUDeLUzgv4','zxjYB3i','C2LNBMfS','CMvHC29U','Dg9VBenHBgXdB3vUDa','ywXS','ndq4mZm5nufprunYvq','z2v0q29UDgv4DfDPBMrVD0XPBwL0','yMvMB3jLtw9KzwXszxf1zxn0','DgHLBG','Dg9VBf9Yzxn1Bhq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','Bw9KzwXdywXSq291BNq','zgvSzxrL','ChjVDMLKzxjFCMv0CNK','CNvUt2jZzxj2zxjZ','zgvSDge','AxnbCNjHEq','z2v0vg9VBhm','zMLUywXFBwvZC2fNzq','CMvHC29UAw5Nvg9Rzw5Z','BwvZC2fNzq','BM93','BMfTzq','vw5RBM93BIb0B29SoIa','Dg9tDhjPBMC','DhvYBKLK','zxH0zw5ZAw9UCW','zNvUy3rPB24','CMvJB3jKrxzLBNq','CMvHC29UAw5Nq29TCgXLDgvKqxq','DhvYBLn0yxj0zwrbDa','AM9PBG','CMvZB2X2zq','B2jQzwn0','zxHLy3v0zq','Bwv0yq','zgvWCW','ywjVCNrLza','B3jKzxi','C3rHDgu','Dg90ywXuB2TLBNm','sw52ywXPzcb0B29SigLUChv0igf0ia','yxnZAxn0yw50x21LC3nHz2u','ChvZAa','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','DMfSDwu','C2vZC2LVBKrPCG','Bw9KzwXFCMvZCg9UC2u','ChjVDMLKzxi','B3v0Chv0sw5KzxG','C2v0u3LZDgvTuhjVBxb0','Aw5KzxG','zw5HyMXLza','CMvHC29UAw5Nx2nODw5R','Dg9VBhm','zMLUywXnzxnZywDL','Bwf4vg9Rzw5Z','B3v0Chv0rM9YBwf0','C3LZDgvT','C2v0u2vZC2LVBKLK','B3v0Chv0vg9Rzw5Z','Aw5WDxrezwX0yq','CMvQzwn0','yxnZAxn0yw50twvZC2fNzuLK','DhvYBKLUzgv4','Dg9VBf9ZDgfYDgvK','zgvZy3jPChrPB24','y29UDgvUDf9KzwX0yq','mta1mZG4ngvWu1PeEa','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','C2v0vg9VBhm','zxHLy3v0zunHBgXZ','C3rYDwn0DxjLza','oMfZC2LZDgfUDdO','Dg90ywXpDxrWDxruB2TLBNm','C3rYAw5NAwz5','C2vZC2LVBI0','Dg90ywXszwfZB25PBMDuB2TLBNm','Dg9VBf91C2vFy2H1BMS','Bw9KzwXFCMvXDwvZDa','zw50CMLLCW','Dg9VBf9JywXS','C2v0','C2v0vg9WAwm','C3LZDgvTuhjVBxb0','yMvMB3jLrMLUywXpDxrWDxq','zgvMyxvSDe1LC3nHz2u','A2LUza','yxnRvxnLCG','mZG0vxPyEvfS'];_0x105a=function(){return _0x91f852;};return _0x105a();}function createReasoningMessageId(_0x50b2f5){const _0x292ab4={_0x16f2bc:0x2d,_0x45c6fb:0x2c},_0x35bc9b={_0x46ecc5:0x1de,_0x2537cc:0x182};function _0x1335ee(_0x1710cb,_0x16836a,_0xb57cc8,_0x23b76b){return _0x477ada(_0x1710cb,_0x16836a-_0x35bc9b._0x46ecc5,_0xb57cc8-0x1e9,_0xb57cc8-_0x35bc9b._0x2537cc);}return _0x50b2f5+_0x1335ee(_0x292ab4._0x16f2bc,0x7,-_0x292ab4._0x45c6fb,-0x67);}function withMessageId(_0x14bd1b,_0x58c3d3){if(_0x14bd1b['id']===_0x58c3d3)return _0x14bd1b;return{..._0x14bd1b,'id':_0x58c3d3};}function createAssistantChunkEvent(_0x5c35b5,_0x567a92){const _0x575a5f={_0x4fbec1:0x1ac,_0xaa56c:0x16a,_0x7a8eb8:0x20c,_0x536049:0x1cd,_0x5357f9:0x260,_0x54884c:0x1bb,_0x1b05d1:0x141,_0x248634:0x18b,_0x1c4d2c:0x177,_0x1828f4:0x189,_0x3d3324:0x1bd,_0x2655c9:0x1a8,_0x585e32:0x199,_0x46dd2d:0x1f5,_0x30cb56:0x20d},_0x52fae6={_0x4441aa:0x53},_0x5b9422={_0xc264c2:0x2a};function _0xbe2a07(_0x4092d3,_0x257420,_0x1e4d1c,_0x41ea9c){return _0x477ada(_0x41ea9c,_0x257420-_0x5b9422._0xc264c2,_0x1e4d1c-0xa5,_0x1e4d1c-0x32d);}if(_0x5c35b5[_0xbe2a07(_0x575a5f._0x4fbec1,0x16f,_0x575a5f._0xaa56c,0x1bf)]!=='content_delta')return void 0x0;function _0x1ad410(_0xf1dd5e,_0x387ac9,_0x3acfe7,_0x2d99c1){return _0x477ada(_0xf1dd5e,_0x387ac9-0x89,_0x3acfe7-0x1e1,_0x3acfe7- -_0x52fae6._0x4441aa);}if(_0x5c35b5[_0x1ad410(-_0x575a5f._0x7a8eb8,-_0x575a5f._0x536049,-0x20d,-_0x575a5f._0x5357f9)]===void 0x0)return void 0x0;return{'type':_0xbe2a07(_0x575a5f._0x54884c,_0x575a5f._0x1b05d1,0x198,0x185),'index':_0x5c35b5['index']??0x0,'messageId':_0x567a92,'chunk':{'type':_0x1ad410(-_0x575a5f._0x248634,-_0x575a5f._0x1c4d2c,-_0x575a5f._0x1828f4,-_0x575a5f._0x3d3324),'index':_0x5c35b5[_0x1ad410(-_0x575a5f._0x2655c9,-_0x575a5f._0x1b05d1,-_0x575a5f._0x585e32,-_0x575a5f._0x46dd2d)]??0x0,'text':_0x5c35b5[_0x1ad410(-0x263,-0x268,-_0x575a5f._0x30cb56,-0x222)]}};}function createToolUseChunkEvent(_0x5cd8ea,_0x598973){const _0x5280a9={_0x12d3da:0xf3,_0x25903e:0x127,_0x1eb9dd:0x110,_0x35d31d:0x20d,_0x3a54c9:0x2b6,_0x486be5:0x220,_0x48a725:0x261,_0x4636ea:0x1bf,_0x50a795:0x1a1,_0x5ab1a2:0x1e4,_0x434ef7:0x182,_0x37c08a:0x1a4,_0xa1577d:0x1c5,_0x1034d8:0x195,_0x3d73a7:0x196,_0x22c069:0x186,_0x2bb2cc:0x18e,_0x328d18:0x15b,_0x4ae805:0x1ae,_0x294f06:0x1ab,_0x4d8dac:0x183,_0xd73724:0x194,_0x4677be:0x192},_0x428f24={_0x184070:0x15,_0x4c2ea6:0x10f},_0x49f78b={_0x5f18d0:0x10d};function _0x1d03c7(_0x55d96d,_0x23156f,_0x507017,_0x52afc3){return _0x39c515(_0x52afc3-_0x49f78b._0x5f18d0,_0x23156f-0x3e,_0x507017-0x180,_0x23156f);}function _0x316a6b(_0x5e4800,_0x4e6e28,_0x282236,_0x41f446){return _0x39c515(_0x4e6e28-_0x428f24._0x184070,_0x4e6e28-_0x428f24._0x4c2ea6,_0x282236-0x25,_0x5e4800);}if(_0x5cd8ea[_0x316a6b(_0x5280a9._0x12d3da,_0x5280a9._0x25903e,_0x5280a9._0x1eb9dd,0xe8)]!==_0x1d03c7(_0x5280a9._0x35d31d,_0x5280a9._0x3a54c9,_0x5280a9._0x486be5,_0x5280a9._0x48a725))return void 0x0;return{'type':_0x316a6b(0x21a,_0x5280a9._0x4636ea,_0x5280a9._0x50a795,_0x5280a9._0x5ab1a2),'index':_0x5cd8ea[_0x316a6b(_0x5280a9._0x434ef7,_0x5280a9._0x37c08a,_0x5280a9._0xa1577d,0x169)]??0x0,'messageId':_0x598973,'chunk':{'type':'tool_use_delta','id':_0x5cd8ea['id']??'','index':_0x5cd8ea[_0x316a6b(_0x5280a9._0x1034d8,0x1a4,0x1ea,_0x5280a9._0x3d73a7)]??0x0,..._0x5cd8ea['name']!==void 0x0?{'name':_0x5cd8ea[_0x316a6b(_0x5280a9._0x22c069,0x187,0x15a,_0x5280a9._0x2bb2cc)]}:{},..._0x5cd8ea[_0x316a6b(_0x5280a9._0x328d18,_0x5280a9._0x4ae805,_0x5280a9._0x294f06,_0x5280a9._0x4d8dac)]!==void 0x0?{'inputDelta':_0x5cd8ea[_0x316a6b(0x18e,_0x5280a9._0x4ae805,_0x5280a9._0xd73724,_0x5280a9._0x4677be)]}:{}}};}function createReasoningChunkEvent(_0x2dcbf8,_0x50fdb8){const _0x5785b3={_0x12b1d6:0x3d,_0x111899:0x10c,_0x14b28d:0x13f,_0x3eee53:0xee,_0x244873:0x13a,_0x5a11fe:0x146,_0x55a501:0xec,_0x49c68e:0x131,_0x201ed2:0x4a,_0x49aff2:0x3e,_0x553791:0x45,_0x56a002:0x80,_0x3da8c2:0x43,_0xf183b8:0x96,_0x4ca4f4:0xb2,_0x3f8561:0x4c,_0x442e9a:0xc,_0x42cf77:0x93,_0x1d9dc9:0x77,_0x128222:0x87,_0x47af8d:0xc4,_0x12b10c:0xfe,_0x1525e4:0xa2,_0x1e02e:0x6f,_0x565518:0x47,_0x140d49:0x79,_0x51ccd9:0x45,_0x4504ec:0x6a,_0x44277d:0x31,_0x4e10e2:0xed,_0x4e2582:0x126,_0x583efb:0xa7,_0xe25367:0xb8,_0x50df9a:0x74,_0x1c54a9:0xf7,_0x4d4de4:0xea,_0x5aa2f4:0x119,_0x3c8a3b:0xb7,_0x2298e3:0x3e,_0x108003:0xbd,_0x34b46e:0xb0},_0x3b885c={_0x265a4d:0x3c},_0x19f645={_0xd13369:0x5c};function _0x596ab1(_0xa32803,_0x5b08e2,_0x3ca3a7,_0x333451){return _0x477ada(_0x5b08e2,_0x5b08e2-0x157,_0x3ca3a7-_0x19f645._0xd13369,_0x3ca3a7-0x232);}function _0x5e89ea(_0x117049,_0x1c1369,_0x19878a,_0x2e965f){return _0x477ada(_0x2e965f,_0x1c1369-_0x3b885c._0x265a4d,_0x19878a-0x7d,_0x117049-0x103);}switch(_0x2dcbf8[_0x596ab1(0x14,_0x5785b3._0x12b1d6,0x6f,0x37)]){case _0x596ab1(_0x5785b3._0x111899,0xd1,0xe5,_0x5785b3._0x14b28d):return{'type':_0x596ab1(0x137,0xa4,_0x5785b3._0x3eee53,0xce),'index':_0x2dcbf8[_0x596ab1(_0x5785b3._0x244873,_0x5785b3._0x5a11fe,_0x5785b3._0x55a501,_0x5785b3._0x49c68e)],'messageId':_0x50fdb8,'chunk':{'type':_0x5e89ea(-_0x5785b3._0x201ed2,-_0x5785b3._0x49aff2,-_0x5785b3._0x553791,-_0x5785b3._0x56a002),'index':_0x2dcbf8[_0x5e89ea(-_0x5785b3._0x3da8c2,0x3,-0x8e,-_0x5785b3._0xf183b8)]??0x0,'thinking':_0x2dcbf8[_0x596ab1(_0x5785b3._0x4ca4f4,_0x5785b3._0x3f8561,0x88,0xdf)]??''},'text':_0x2dcbf8['thinking']??''};case _0x596ab1(0xec,0xdc,0xfe,0xa3):return{'type':_0x5e89ea(-0x41,_0x5785b3._0x442e9a,-_0x5785b3._0x42cf77,-0x4),'index':_0x2dcbf8[_0x5e89ea(-_0x5785b3._0x1d9dc9,-0x3f,-0x3c,-_0x5785b3._0x128222)],'messageId':_0x50fdb8,'chunk':{'type':_0x596ab1(_0x5785b3._0x47af8d,0x143,_0x5785b3._0x12b10c,0xfd),'contentIndex':_0x2dcbf8[_0x5e89ea(-0x77,-_0x5785b3._0x1525e4,-_0x5785b3._0x1e02e,-0xd0)]??0x0,'delta':_0x2dcbf8[_0x5e89ea(-0x67,-0x31,-0x3c,-0x18)]??'','itemId':_0x2dcbf8[_0x596ab1(0xc2,_0x5785b3._0x565518,0x98,0xf4)]??'','outputIndex':_0x2dcbf8[_0x5e89ea(-0x45,-0x40,-0x77,-0x59)]??0x0},'text':_0x2dcbf8[_0x5e89ea(-0x67,-_0x5785b3._0x12b1d6,-0x13,-0x6a)]??''};case'openai_reasoning_summary_delta':return{'type':'reasoning_chunk','index':_0x2dcbf8['summaryIndex'],'messageId':_0x50fdb8,'chunk':{'type':_0x5e89ea(-_0x5785b3._0x140d49,-_0x5785b3._0x51ccd9,-_0x5785b3._0x4504ec,-_0x5785b3._0x44277d),'delta':_0x2dcbf8[_0x596ab1(_0x5785b3._0x4e10e2,0x119,0xc8,_0x5785b3._0x4e2582)]??'','itemId':_0x2dcbf8[_0x5e89ea(-0x97,-_0x5785b3._0x583efb,-_0x5785b3._0xe25367,-_0x5785b3._0x50df9a)]??'','outputIndex':_0x2dcbf8[_0x596ab1(0x118,_0x5785b3._0x1c54a9,_0x5785b3._0x4d4de4,_0x5785b3._0x5aa2f4)]??0x0,'summaryIndex':_0x2dcbf8[_0x5e89ea(-0x93,-_0x5785b3._0x3c8a3b,-0x81,-_0x5785b3._0x2298e3)]??0x0},'text':_0x2dcbf8[_0x5e89ea(-0x67,-_0x5785b3._0x108003,-0x7b,-_0x5785b3._0x34b46e)]??''};default:return void 0x0;}}function isAbortedToolResult(_0x9d54c8){const _0x31b069={_0x2343d4:0x1a,_0x1f83b5:0x1,_0x3744e6:0x54,_0xc9d49d:0x66,_0x2e0fa6:0xa,_0x3383b1:0x19,_0x1e2c4a:0x73},_0x486d2c={_0x26ea2d:0x157,_0x206fab:0xe9,_0x3a926f:0x1e7},_0x1a7ec8={_0x583eec:0xcb,_0x16a6af:0x90};function _0x2106f0(_0x1121b6,_0x6e2dbc,_0x4bec8a,_0x419c0a){return _0x39c515(_0x4bec8a- -_0x1a7ec8._0x583eec,_0x6e2dbc-_0x1a7ec8._0x16a6af,_0x4bec8a-0x1df,_0x6e2dbc);}function _0x10906f(_0xce74f0,_0x6b1afb,_0x402472,_0x5e78e2){return _0x39c515(_0x5e78e2- -_0x486d2c._0x26ea2d,_0x6b1afb-_0x486d2c._0x206fab,_0x402472-_0x486d2c._0x3a926f,_0x402472);}return _0x9d54c8[_0x2106f0(_0x31b069._0x2343d4,-_0x31b069._0x1f83b5,_0x31b069._0x3744e6,_0x31b069._0xc9d49d)]==='error'&&_0x9d54c8['structured'][_0x10906f(-_0x31b069._0x2e0fa6,-_0x31b069._0x3383b1,_0x31b069._0x1e2c4a,0x2a)]===!![];}async function executeModelRequest(_0x111fa1,_0x57c3a3,_0x404f2b,_0x4a147e,_0x4ffc3b,_0x59a61e){const _0x4dd142={_0x5f2272:0xf9,_0x2fd355:0x101,_0x8b9f07:0xde,_0x42f612:0x110,_0x3d3b5a:0x386,_0x305dd7:0x39d,_0x48645f:0x36c,_0x245422:0x3c1,_0x2e12eb:0xa6,_0x4c7a83:0xad,_0x55ad13:0xcc,_0x40b5ac:0xbf,_0x352a5a:0xf6,_0x2bb0a3:0x142,_0x5f54c0:0xbb,_0x557333:0xd9,_0xf73a37:0xab,_0x149287:0x361,_0x5a74ac:0x109,_0x201f99:0x143,_0x1f2319:0x12e,_0x2d19e5:0x140,_0x4e7966:0x3a8,_0x3edf45:0x3bb,_0x12310:0x36e,_0x2f562c:0x406,_0x456d09:0x376,_0x322e93:0x3ac,_0x4dcd61:0x3a0,_0x236163:0x3b4,_0x2443cd:0x38c,_0x390cc3:0x394,_0x33eca9:0x9c,_0xe884cf:0xd9,_0x412b79:0x3c7,_0x153ca9:0x408,_0x1a2e4f:0x3d6,_0x1a06ae:0x37f,_0x597ce1:0x332,_0x23a71a:0x12b,_0x334f2f:0xff,_0x53f420:0x146,_0x2a99f6:0x104,_0x375828:0xdd,_0x548706:0xc4,_0xfc38e1:0x3ab,_0x4857b6:0x180,_0x376993:0x100,_0x3cd16e:0xda,_0xffe60d:0x162,_0x142346:0x175,_0x2770a5:0x114,_0x44e092:0x146,_0x42dfa8:0x361,_0x441836:0x333,_0x227114:0x32b,_0x226101:0x178,_0x141ed9:0xfc,_0x553f26:0x3ce,_0x34b74f:0x354,_0x1bbfb3:0x3cc},_0x20a140={_0x27958a:0x95,_0x34f0cb:0x70,_0x2fe006:0x539};function _0x54fdcf(_0x1420b6,_0x565df1,_0x1d0ab2,_0x210691){return _0x477ada(_0x1d0ab2,_0x565df1-_0x20a140._0x27958a,_0x1d0ab2-_0x20a140._0x34f0cb,_0x1420b6-_0x20a140._0x2fe006);}throwIfAborted(_0x57c3a3['signal']);if(!_0x57c3a3[_0x5d1988(0xc5,0x12d,_0x4dd142._0x5f2272,0x104)]||!_0x404f2b[_0x5d1988(_0x4dd142._0x2fd355,_0x4dd142._0x8b9f07,0xcc,_0x4dd142._0x42f612)])return await _0x404f2b[_0x54fdcf(_0x4dd142._0x3d3b5a,_0x4dd142._0x305dd7,_0x4dd142._0x48645f,0x3e2)](_0x111fa1,{'signal':_0x57c3a3[_0x54fdcf(_0x4dd142._0x245422,0x3cd,0x37e,0x3c0)]});let _0x1b1dfc;function _0x5d1988(_0x35c92b,_0x4ac2fe,_0x130aad,_0x51751c){return _0x39c515(_0x130aad- -0x39,_0x4ac2fe-0xc8,_0x130aad-0x1a5,_0x51751c);}for await(const _0x5594f3 of _0x404f2b[_0x5d1988(_0x4dd142._0x2e12eb,_0x4dd142._0x4c7a83,_0x4dd142._0x55ad13,_0x4dd142._0x40b5ac)](_0x111fa1,{'signal':_0x57c3a3[_0x54fdcf(0x3c1,0x3b5,0x37e,0x3bb)]})){throwIfAborted(_0x57c3a3[_0x5d1988(_0x4dd142._0x352a5a,0x115,0x124,_0x4dd142._0x2bb0a3)]);if(_0x5594f3[_0x5d1988(0x132,_0x4dd142._0x5f54c0,_0x4dd142._0x557333,0xa7)]===_0x5d1988(0xc5,_0x4dd142._0xf73a37,0xfb,0x9e)){_0x59a61e[_0x54fdcf(0x3e3,0x3b0,0x3e6,0x3db)][_0x54fdcf(_0x4dd142._0x149287,0x31b,0x3a1,0x3bb)]!==void 0x0&&_0x59a61e['meta'][_0x5d1988(0x186,_0x4dd142._0x5a74ac,0x140,_0x4dd142._0x201f99)]===void 0x0&&(_0x59a61e['meta'][_0x5d1988(_0x4dd142._0x1f2319,0x128,_0x4dd142._0x2d19e5,0x11b)]=Date['now']());_0x1b1dfc=_0x5594f3[_0x54fdcf(_0x4dd142._0x4e7966,_0x4dd142._0x3edf45,_0x4dd142._0x12310,_0x4dd142._0x2f562c)];continue;}if(_0x5594f3[_0x54fdcf(_0x4dd142._0x456d09,_0x4dd142._0x322e93,_0x4dd142._0x4dcd61,0x3c3)]===_0x54fdcf(0x3cd,0x3d1,_0x4dd142._0x236163,0x426)){await emitEvent2(_0x4a147e[_0x54fdcf(0x3a6,0x3d6,_0x4dd142._0x2443cd,0x378)],_0x5594f3,_0x4ffc3b);continue;}const _0x5b9732=createReasoningChunkEvent(_0x5594f3,_0x59a61e[_0x54fdcf(0x375,_0x4dd142._0x390cc3,0x39e,0x3ce)]);if(_0x5b9732&&_0x5b9732[_0x5d1988(_0x4dd142._0x33eca9,0xc7,_0x4dd142._0xe884cf,0xab)]===_0x54fdcf(0x3f5,_0x4dd142._0x412b79,_0x4dd142._0x153ca9,_0x4dd142._0x1a2e4f)&&_0x5b9732[_0x54fdcf(_0x4dd142._0x1a06ae,_0x4dd142._0x597ce1,0x363,0x361)]['length']>0x0){_0x59a61e[_0x5d1988(_0x4dd142._0x23a71a,_0x4dd142._0x334f2f,_0x4dd142._0x53f420,0x13b)][_0x5d1988(_0x4dd142._0x2a99f6,_0x4dd142._0x375828,_0x4dd142._0x548706,0xd7)]===void 0x0&&(_0x59a61e['meta'][_0x54fdcf(0x361,0x381,0x327,_0x4dd142._0xfc38e1)]=Date[_0x5d1988(0x191,_0x4dd142._0x4857b6,0x138,_0x4dd142._0x376993)]());await emitEvent2(_0x4a147e[_0x5d1988(0xff,0xfa,0x109,_0x4dd142._0x3cd16e)],_0x5b9732,_0x4ffc3b);continue;}const _0x25e0b6=createAssistantChunkEvent(_0x5594f3,_0x59a61e[_0x5d1988(0x158,0x133,_0x4dd142._0xffe60d,_0x4dd142._0x142346)]);if(_0x25e0b6){_0x59a61e[_0x5d1988(_0x4dd142._0x352a5a,_0x4dd142._0x2770a5,_0x4dd142._0x44e092,0x10c)][_0x54fdcf(_0x4dd142._0x42dfa8,0x396,_0x4dd142._0x441836,_0x4dd142._0x227114)]!==void 0x0&&_0x59a61e['meta'][_0x5d1988(_0x4dd142._0x226101,0x196,0x140,0x116)]===void 0x0&&(_0x59a61e['meta'][_0x5d1988(0x18f,_0x4dd142._0x141ed9,_0x4dd142._0x2d19e5,_0x4dd142._0x2a99f6)]=Date[_0x54fdcf(0x3d5,0x427,0x3d6,0x41e)]());await emitEvent2(_0x4a147e[_0x54fdcf(0x3a6,_0x4dd142._0x553f26,_0x4dd142._0x34b74f,0x3e3)],_0x25e0b6,_0x4ffc3b);continue;}const _0x56aebb=createToolUseChunkEvent(_0x5594f3,_0x59a61e[_0x54fdcf(0x3ff,_0x4dd142._0x1bbfb3,0x41b,0x43d)]);_0x56aebb&&await emitEvent2(_0x4a147e['onEvent'],_0x56aebb,_0x4ffc3b);}if(!_0x1b1dfc)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x1b1dfc;}function makeTurnGuards(_0x44731f,_0x5b9592,_0x371876,_0x4e8fed,_0x45e1d9){return{async 'stage'(_0x5edb37,_0x4945f6){return throwIfAborted(_0x44731f),await runStage(_0x5b9592,_0x5edb37,_0x4945f6,_0x4e8fed);},async 'emit'(_0x2b05ad){throwIfAborted(_0x44731f),await emitEvent2(_0x371876,_0x2b05ad,_0x45e1d9);},async 'stageUnchecked'(_0x5e5de2,_0x2c24fd){return await runStage(_0x5b9592,_0x5e5de2,_0x2c24fd,_0x4e8fed);},async 'emitUnchecked'(_0x28a18c){await emitEvent2(_0x371876,_0x28a18c,_0x45e1d9);}};}async function runTurn(_0x4b9335,_0x19b5ad){const _0x1e0eba={_0x1dc2fb:0x3d,_0x2225f6:0x99,_0x41c82c:0x7,_0x27fd71:0x94,_0x337e07:0x3d,_0x1825ae:0x3b0,_0x574e4b:0x3dc,_0x4af0b9:0x3fa,_0x3dc598:0x9,_0x3dfe64:0x4,_0x7a648:0x3e,_0x3ef655:0x3ad,_0x2590e9:0x37e,_0x5a09e4:0x3ef,_0x365ac9:0xb,_0x1d766b:0x16,_0x19eff0:0x446,_0x555cdf:0x412,_0x38c43e:0x449,_0x37fe31:0x403,_0x54eb62:0x425,_0x1865e2:0x3e8,_0x3fe22f:0x41f,_0x3c951e:0x44f,_0x56b816:0x404,_0x1b650a:0x403,_0x5c288f:0x468,_0x4c9852:0xa5,_0x149638:0xbd,_0x4ec23f:0x3f1,_0x5b6d2c:0x428,_0x58af75:0x52,_0x418a62:0x3f,_0x5b53cd:0x3d3,_0x1714ca:0x408,_0x226b5e:0x3d8,_0x47ad27:0x3d5,_0x1b463f:0x3aa,_0x1c6657:0x8,_0x5dbbbd:0xe,_0x436a2b:0x3a,_0x36d627:0x430,_0x38d42d:0x427,_0x37d8e2:0x4d,_0x38c6fd:0x13,_0x45087e:0x47e,_0x16c057:0x440,_0x4fb330:0x436,_0x5774f0:0x3e0,_0x524690:0x436,_0x216313:0x90,_0x27357a:0x5b,_0x2103b0:0x36,_0x542aa2:0xd3,_0x5a7ed7:0x1f,_0x154fee:0x25,_0x1a31b0:0x430,_0x11b2d9:0xf,_0x5531b8:0x45,_0x1462e0:0x5,_0x434626:0x3b,_0x570769:0x42b,_0x29e7f2:0x31,_0x37a693:0x1b,_0x1250bd:0x5c,_0x21f74b:0x40,_0x48023f:0x40c,_0x4b1929:0x3b1,_0x1d4362:0x43e,_0x47c8e5:0x43d,_0x65a2ea:0x39e,_0x1a4e7a:0x3c8,_0x5e58dd:0x38a,_0x586ed7:0x373,_0x98d447:0x8c,_0x74438:0x34,_0x1c2247:0x1d,_0x1fd280:0x49,_0x4f662a:0x3f2,_0x186261:0x3d0,_0x34a2e5:0x3a5,_0x3d8050:0x36e,_0x16fc88:0x61,_0x569f80:0x14,_0x53a8f9:0x1e,_0x5a5d84:0x8b,_0x37ce88:0x96,_0x2107ce:0x13,_0x30696d:0x392,_0x2938bd:0x386,_0x5bd4f0:0x13,_0x3330fe:0x2c,_0x41081d:0x68,_0x2f2c29:0x63,_0x2cf122:0x17,_0x5699d9:0x3e4,_0x27a222:0x42e,_0xb051b4:0x407,_0x49ae63:0xc3,_0x90d162:0x8f,_0x1bca09:0x3a8,_0x40ce59:0x3a5,_0x4610fc:0x463,_0x3f6b73:0x423,_0x59efb5:0x408,_0x52cbee:0x3c5,_0x5e2ddb:0x3e0,_0x304540:0x65,_0x27af6e:0x6c,_0x1ab16b:0x40f,_0x5d4b3d:0x434,_0x4ae2f7:0x368,_0x3aee0b:0x3a6,_0x558737:0x3e0,_0xda3c50:0x399,_0x2e9d4e:0x3fb,_0x15fb71:0x3c9,_0xe4e949:0x3ae,_0x2d9136:0x3fa,_0xdeaaa8:0x8d,_0x904084:0x35,_0x3c4d49:0x1f,_0x10dacd:0x37d,_0x46ae1e:0x39a,_0x354818:0x384,_0x236cc2:0x23,_0x19296c:0x49,_0x38d5a4:0x6,_0x12b24e:0x432,_0x39d14d:0x422,_0x32f44d:0x480,_0x4bbf2d:0x459,_0x274fb9:0x1b,_0x17dad9:0x3ed,_0x37f6cd:0x467,_0x5c6841:0x46d},_0x519dc8={_0x1ebe59:0x475},_0x28fec5={_0x390053:0x127},_0x26cf24={_0x2b32ae:0x19a,_0x406132:0x195,_0x3bfc45:0x25},_0x1ce554={_0x209bf2:0x4a},_0x206b21=_0x19b5ad[_0x5b5a7c(-0xcb,-_0x1e0eba._0x1dc2fb,-_0x1e0eba._0x2225f6,-0x9f)],_0x150219=_0x4b9335[_0x5b5a7c(-_0x1e0eba._0x41c82c,-_0x1e0eba._0x27fd71,-_0x1e0eba._0x337e07,-0x4)]??new AbortController()['signal'],_0x9b697={'sessionId':_0x4b9335[_0x371ec6(0x3b7,_0x1e0eba._0x1825ae,_0x1e0eba._0x574e4b,0x3db)],'turnId':_0x4b9335[_0x371ec6(0x3ed,0x410,_0x1e0eba._0x4af0b9,0x404)],'system':normalizeSystem(_0x4b9335[_0x5b5a7c(-_0x1e0eba._0x3dc598,0x9,-_0x1e0eba._0x3dfe64,_0x1e0eba._0x7a648)]),'messages':(_0x4b9335[_0x371ec6(0x3c7,0x39f,_0x1e0eba._0x3ef655,_0x1e0eba._0x2590e9)]??[])[_0x371ec6(_0x1e0eba._0x5a09e4,0x3ae,0x355,0x378)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x19b5ad[_0x5b5a7c(_0x1e0eba._0x365ac9,-_0x1e0eba._0x1d766b,-0x10,-0x63)]===_0x371ec6(_0x1e0eba._0x19eff0,_0x1e0eba._0x555cdf,0x3d5,_0x1e0eba._0x38c43e)?_0x19b5ad['sessionDir']():_0x19b5ad[_0x371ec6(_0x1e0eba._0x37fe31,_0x1e0eba._0x54eb62,_0x1e0eba._0x1865e2,0x3f2)]};function _0x371ec6(_0x17edf4,_0xc04690,_0x122564,_0xf8013a){return _0x477ada(_0x17edf4,_0xc04690-_0x1ce554._0x209bf2,_0x122564-0x4c,_0xc04690-0x570);}const _0x4943aa=makeExtensionContext(_0x9b697),_0x946a58={'sessionId':_0x9b697['sessionId'],'turnId':_0x9b697[_0x371ec6(0x403,0x410,_0x1e0eba._0x3fe22f,0x3d3)],'state':_0x9b697,'signal':_0x150219,..._0x19b5ad[_0x371ec6(0x477,_0x1e0eba._0x3c951e,0x46c,_0x1e0eba._0x56b816)]?{'askUser':_0x19b5ad[_0x371ec6(0x415,0x44f,0x49c,0x424)]}:{},..._0x19b5ad[_0x371ec6(0x4a3,0x44a,_0x1e0eba._0x3c951e,_0x1e0eba._0x1b650a)]?{'setTopic':_0x19b5ad[_0x371ec6(0x485,0x44a,0x48b,_0x1e0eba._0x5c288f)]}:{}},{stage:_0x3aba2b,emit:_0x338974,stageUnchecked:_0x1caaa7,emitUnchecked:_0x28d44b}=makeTurnGuards(_0x150219,_0x19b5ad[_0x5b5a7c(-_0x1e0eba._0x4c9852,-_0x1e0eba._0x149638,-0x70,-0x77)],_0x19b5ad[_0x371ec6(0x3c9,0x3dd,0x405,0x417)],_0x4943aa,_0x946a58);function _0x5b5a7c(_0xeae7c8,_0x4aade7,_0x374518,_0x268e19){return _0x39c515(_0x374518- -_0x26cf24._0x2b32ae,_0x4aade7-_0x26cf24._0x406132,_0x374518-_0x26cf24._0x3bfc45,_0xeae7c8);}const _0x362687=async(_0x2ab486,_0x1669d2)=>{const _0x39ea7c={_0x3568bf:0x106,_0xdd44cb:0x415},_0x34c4cc=_0x1669d2?{..._0x4943aa,'turnMeta':_0x1669d2}:_0x4943aa;function _0x278807(_0x169c7f,_0x160134,_0x1cd772,_0x21f903){return _0x5b5a7c(_0x21f903,_0x160134-_0x39ea7c._0x3568bf,_0x1cd772-_0x39ea7c._0xdd44cb,_0x21f903-0x1c7);}function _0x2d4e41(_0x56bb10,_0x4571ea,_0x1663ce,_0x243f89){return _0x371ec6(_0x4571ea,_0x243f89-0x2c,_0x1663ce-_0x28fec5._0x390053,_0x243f89-0x62);}await _0x19b5ad['registry'][_0x2d4e41(0x448,0x3f0,_0x519dc8._0x1ebe59,0x431)](_0x278807(0x358,0x38a,0x3b1,0x3cc),structuredClone(_0x2ab486),_0x34c4cc);};let _0x243d51=0x0;try{const _0x25a330=await _0x3aba2b(_0x371ec6(0x3ba,0x3aa,0x3b8,_0x1e0eba._0x4ec23f),normalizeMessage(_0x4b9335[_0x371ec6(0x3d0,0x40b,_0x1e0eba._0x5b6d2c,0x437)]));_0x9b697['messages'][_0x5b5a7c(-_0x1e0eba._0x58af75,-0x4d,-0x13,_0x1e0eba._0x418a62)](_0x25a330),await _0x362687(_0x25a330),await _0x338974({'type':'user_message','message':_0x25a330});while(!![]){throwIfAborted(_0x150219),_0x243d51+=0x1;const _0x2b00a3=createAssistantMessageId(_0x9b697[_0x371ec6(0x3ce,0x410,_0x1e0eba._0x5b53cd,0x459)],_0x243d51),_0x4de62b=createReasoningMessageId(_0x2b00a3),_0x22dba4={'model':_0x206b21[_0x371ec6(_0x1e0eba._0x1714ca,_0x1e0eba._0x226b5e,_0x1e0eba._0x47ad27,_0x1e0eba._0x1b463f)],..._0x206b21[_0x5b5a7c(-_0x1e0eba._0x1c6657,0x27,-_0x1e0eba._0x5dbbbd,_0x1e0eba._0x436a2b)]?{'provider':_0x206b21[_0x371ec6(_0x1e0eba._0x36d627,_0x1e0eba._0x38d42d,_0x1e0eba._0x1865e2,0x451)]}:{}};let _0x8fb60c={'model':_0x206b21['model'],..._0x206b21['maxTokens']!==void 0x0?{'maxTokens':_0x206b21[_0x5b5a7c(0x39,-_0x1e0eba._0x37d8e2,-0x6,-_0x1e0eba._0x38c6fd)]}:{},'system':structuredClone(_0x9b697[_0x371ec6(0x445,0x431,_0x1e0eba._0x45087e,_0x1e0eba._0x16c057)]),'messages':structuredClone(_0x9b697['messages']),'tools':_0x19b5ad[_0x371ec6(_0x1e0eba._0x4fb330,_0x1e0eba._0x5774f0,0x3b9,_0x1e0eba._0x524690)][_0x5b5a7c(-_0x1e0eba._0x216313,-_0x1e0eba._0x27357a,-0x60,-_0x1e0eba._0x2103b0)](),'metadata':{'sessionId':_0x9b697[_0x5b5a7c(-0x89,-_0x1e0eba._0x542aa2,-0x85,-0x40)],'turnId':_0x9b697[_0x5b5a7c(-0x11,-_0x1e0eba._0x5a7ed7,-_0x1e0eba._0x154fee,0x38)]},..._0x19b5ad[_0x371ec6(0x412,_0x1e0eba._0x1a31b0,0x40a,0x442)]?{'outputFormat':_0x19b5ad[_0x5b5a7c(_0x1e0eba._0x11b2d9,-_0x1e0eba._0x5531b8,-_0x1e0eba._0x1462e0,_0x1e0eba._0x434626)]}:{}};_0x8fb60c=await _0x3aba2b(_0x371ec6(_0x1e0eba._0x570769,0x3fe,0x3e0,0x3f8),_0x8fb60c),await _0x338974({'type':'model_request','request':_0x8fb60c}),_0x22dba4[_0x5b5a7c(-_0x1e0eba._0x1462e0,-0x66,-0x20,-_0x1e0eba._0x29e7f2)]=Date[_0x5b5a7c(-0x82,-0x4b,-0x29,-0x86)]();let _0x2c80b4=await executeModelRequest(_0x8fb60c,_0x4b9335,_0x206b21,_0x19b5ad,_0x946a58,{'assistantMessageId':_0x2b00a3,'reasoningMessageId':_0x4de62b,'meta':_0x22dba4});_0x22dba4[_0x5b5a7c(-_0x1e0eba._0x37a693,-0x2b,-_0x1e0eba._0x1250bd,-_0x1e0eba._0x21f74b)]=Date[_0x371ec6(0x40c,_0x1e0eba._0x48023f,0x416,_0x1e0eba._0x4b1929)](),_0x2c80b4=await _0x3aba2b(_0x5b5a7c(-_0x1e0eba._0x5531b8,-0xb3,-0x71,-0x8a),_0x2c80b4),await _0x338974({'type':_0x371ec6(_0x1e0eba._0x1d4362,0x426,0x44c,_0x1e0eba._0x47c8e5),'response':_0x2c80b4}),_0x9b697[_0x371ec6(_0x1e0eba._0x65a2ea,_0x1e0eba._0x1a4e7a,_0x1e0eba._0x5e58dd,_0x1e0eba._0x586ed7)]=_0x2c80b4;let _0xa6377d=await _0x3aba2b(_0x5b5a7c(-0x3e,-_0x1e0eba._0x98d447,-_0x1e0eba._0x74438,-_0x1e0eba._0x1c2247),withMessageId(responseToAssistantMessage(_0x2c80b4),_0x2b00a3));_0xa6377d=withMessageId(_0xa6377d,_0x2b00a3);const _0x584568=getToolUseBlocks(_0xa6377d),_0x54489f=await Promise[_0x5b5a7c(-0x8,-_0x1e0eba._0x1fd280,-_0x1e0eba._0x436a2b,-0x63)](_0x584568[_0x371ec6(0x3b2,0x3ae,_0x1e0eba._0x4f662a,_0x1e0eba._0x186261)](_0x31b04e=>_0x3aba2b('beforeToolExecution',_0x31b04e)));_0x54489f[_0x371ec6(0x380,_0x1e0eba._0x34a2e5,0x390,_0x1e0eba._0x3d8050)]>0x0&&(_0xa6377d=replaceToolUseBlocks(_0xa6377d,_0x54489f));const _0x533361=withMessageId(_0xa6377d,_0x2b00a3);_0xa6377d=_0x533361;const _0x51d24e=createReasoningMessage(_0xa6377d),_0x310ff8=createAssistantTextMessage(_0xa6377d),_0x5ec521=createToolUseMessage(_0xa6377d);_0x51d24e&&await _0x338974({'type':'reasoning_message','message':withMessageId(_0x51d24e,_0x4de62b)});_0x310ff8&&await _0x338974({'type':_0x5b5a7c(-_0x1e0eba._0x16fc88,-0x15,-_0x1e0eba._0x569f80,0x32),'message':withMessageId(_0x310ff8,_0x2b00a3)});_0x5ec521&&await _0x338974({'type':_0x5b5a7c(-0x45,-_0x1e0eba._0x53a8f9,-0x5e,-0x23),'message':withMessageId(_0x5ec521,_0x2b00a3)});_0x9b697[_0x5b5a7c(-0xac,-_0x1e0eba._0x5a5d84,-_0x1e0eba._0x37ce88,-0x7e)][_0x5b5a7c(0x4b,-0x10,-_0x1e0eba._0x2107ce,-0x16)](_0x533361);_0x54489f[_0x371ec6(0x3e8,_0x1e0eba._0x34a2e5,_0x1e0eba._0x30696d,_0x1e0eba._0x2938bd)]>0x0&&await _0x362687(_0x533361,_0x22dba4);for(const _0x260ec9 of _0x54489f){await _0x338974({'type':_0x5b5a7c(0x22,-_0x1e0eba._0x337e07,_0x1e0eba._0x5bd4f0,-_0x1e0eba._0x3330fe),'toolCall':_0x260ec9});}if(_0x54489f['length']===0x0){const _0x10fa01=await _0x3aba2b(_0x5b5a7c(_0x1e0eba._0x41081d,_0x1e0eba._0x2f2c29,_0x1e0eba._0x2cf122,0x6f),_0xa6377d),_0x459c82=withMessageId(_0x10fa01,_0x2b00a3);return _0x9b697[_0x371ec6(_0x1e0eba._0x5699d9,_0x1e0eba._0x27a222,0x3fb,_0x1e0eba._0xb051b4)]=_0x459c82,_0x9b697[_0x5b5a7c(-_0x1e0eba._0x49ae63,-_0x1e0eba._0x90d162,-0x96,-0xe8)][_0x9b697['messages'][_0x371ec6(_0x1e0eba._0x1bca09,_0x1e0eba._0x40ce59,0x399,_0x1e0eba._0x186261)]-0x1]=_0x459c82,await _0x362687(_0x459c82,_0x22dba4),await _0x338974({'type':_0x371ec6(_0x1e0eba._0x4610fc,0x409,_0x1e0eba._0x3f6b73,0x450),'message':_0x459c82}),throwIfAborted(_0x150219),await _0x19b5ad[_0x371ec6(_0x1e0eba._0x59efb5,_0x1e0eba._0x52cbee,_0x1e0eba._0x5e2ddb,0x3a1)]['runObservers'](_0x5b5a7c(-0x3c,-0x6c,-_0x1e0eba._0x304540,-_0x1e0eba._0x27af6e),_0x9b697,_0x4943aa),await _0x338974({'type':_0x371ec6(0x431,0x452,_0x1e0eba._0x1ab16b,_0x1e0eba._0x5d4b3d),'state':_0x9b697}),{'status':_0x371ec6(0x356,0x3a2,_0x1e0eba._0x4ae2f7,0x38d),'finalMessage':_0x459c82,'state':_0x9b697};}let _0x49652d=await _0x19b5ad[_0x371ec6(_0x1e0eba._0x3aee0b,_0x1e0eba._0x558737,_0x1e0eba._0xda3c50,0x393)]['executeCalls'](_0x54489f,_0x946a58);const _0x102ade=_0x49652d['some'](isAbortedToolResult),_0x24c91d=_0x102ade?_0x1caaa7:_0x3aba2b,_0x12edb6=_0x102ade?_0x28d44b:_0x338974;_0x49652d=await Promise[_0x371ec6(0x40b,_0x1e0eba._0x2e9d4e,_0x1e0eba._0x15fb71,0x3c6)](_0x49652d[_0x371ec6(0x362,_0x1e0eba._0xe4e949,_0x1e0eba._0x2d9136,0x365)](_0x349098=>_0x24c91d(_0x371ec6(0x416,0x3e2,0x404,0x3cb),_0x349098))),_0x9b697[_0x5b5a7c(-0x84,-_0x1e0eba._0xdeaaa8,-0x50,-0x6c)]['push'](..._0x49652d);for(const _0xa37a76 of _0x49652d){await _0x12edb6({'type':_0x5b5a7c(-_0x1e0eba._0x2cf122,0x29,-_0x1e0eba._0x904084,-_0x1e0eba._0x3c4d49),'result':_0xa37a76});}const _0x559952=await _0x24c91d(_0x371ec6(_0x1e0eba._0x10dacd,_0x1e0eba._0x46ae1e,0x3cf,_0x1e0eba._0x354818),createToolResultUserMessage(_0x49652d));await _0x12edb6({'type':_0x5b5a7c(-_0x1e0eba._0x236cc2,-_0x1e0eba._0x19296c,-0x61,-_0x1e0eba._0x38d5a4),'message':_0x559952}),_0x9b697[_0x371ec6(0x385,0x39f,0x3e4,0x365)][_0x371ec6(_0x1e0eba._0x12b24e,_0x1e0eba._0x39d14d,0x408,_0x1e0eba._0x32f44d)](_0x559952),await _0x362687(_0x559952);if(_0x102ade)return{'status':_0x371ec6(0x457,0x41c,_0x1e0eba._0x4bbf2d,0x3de),'state':_0x9b697};}}catch(_0xf81309){if(!_0x150219[_0x5b5a7c(-0x4,-_0x1e0eba._0x274fb9,-0x19,0x2b)])throw new TurnFailedError(_0xf81309,_0x9b697);return{'status':_0x371ec6(_0x1e0eba._0x17dad9,0x41c,_0x1e0eba._0x37f6cd,_0x1e0eba._0x5c6841),'state':_0x9b697};}}function createSessionId(){const _0x3ba071={_0x522a44:0x47b,_0x14082d:0x506,_0x588fbb:0x1b0,_0x571965:0x1b0,_0x5b500b:0x18b,_0x2fc131:0x228,_0x4258b7:0x15f,_0x38a41f:0x193,_0x4ed751:0x18e},_0x54a785={_0x2c88c4:0x1a,_0x463e82:0x10};function _0x316fe9(_0x5c881e,_0x1866f7,_0x5f532a,_0x30a5f6){return _0x39c515(_0x30a5f6-0x31a,_0x1866f7-0x3d,_0x5f532a-0xa4,_0x1866f7);}function _0x32635d(_0x1abc7e,_0x3b9afb,_0x51956d,_0x4657dd){return _0x39c515(_0x4657dd-_0x54a785._0x2c88c4,_0x3b9afb-0xe7,_0x51956d-_0x54a785._0x463e82,_0x51956d);}return _0x316fe9(_0x3ba071._0x522a44,0x4ae,_0x3ba071._0x14082d,0x4c2)+Date[_0x32635d(_0x3ba071._0x588fbb,_0x3ba071._0x571965,0x173,_0x3ba071._0x5b500b)]()+'-'+Math[_0x32635d(0x188,0x1c0,_0x3ba071._0x2fc131,0x1d0)]()[_0x32635d(_0x3ba071._0x4258b7,_0x3ba071._0x38a41f,0x138,_0x3ba071._0x4ed751)](0x10)['slice'](0x2,0xa);}function createTurnId(_0x288555){const _0x5e07db={_0x2f45a8:0x11b,_0x2388e3:0xf5},_0x581c85={_0x4522a0:0x1b6,_0x198e74:0x51,_0x5a69e3:0x287};function _0x493766(_0x40ce77,_0x13c56b,_0x14aa29,_0x56a8c4){return _0x477ada(_0x13c56b,_0x13c56b-_0x581c85._0x4522a0,_0x14aa29-_0x581c85._0x198e74,_0x40ce77-_0x581c85._0x5a69e3);}return _0x493766(0xd3,_0x5e07db._0x2f45a8,_0x5e07db._0x2388e3,0xf0)+_0x288555;}function createDefaultMessage(_0x34c3af){if(_0x34c3af===void 0x0)return void 0x0;return normalizeUserInput(_0x34c3af);}function normalizeUserInput(_0x143497){const _0x41199d={_0xfa61cd:0x159,_0x3f2ea2:0x1db,_0x3c931c:0x1c2,_0xd4ab24:0x2ae,_0x16e02d:0x2d8,_0x575cce:0x153,_0xfc6b39:0x1b0,_0x174791:0x161},_0x4ebbce={_0x1e7284:0x4b,_0x23cc25:0x1a6,_0x462ba3:0x313},_0xd639bf={_0x218b31:0x123,_0x540f8c:0x1ee,_0x557558:0x4aa};function _0x2a8f8c(_0x4c0061,_0xfa45fb,_0xda04b9,_0x801d9d){return _0x477ada(_0x4c0061,_0xfa45fb-_0xd639bf._0x218b31,_0xda04b9-_0xd639bf._0x540f8c,_0x801d9d-_0xd639bf._0x557558);}if(typeof _0x143497===_0x1f4983(_0x41199d._0xfa61cd,0x18c,_0x41199d._0x3f2ea2,_0x41199d._0x3c931c))return{'role':_0x2a8f8c(0x2b9,0x2f2,_0x41199d._0xd4ab24,_0x41199d._0x16e02d),'content':[{'type':_0x1f4983(_0x41199d._0x575cce,_0x41199d._0xfa61cd,_0x41199d._0xfc6b39,_0x41199d._0x174791),'text':_0x143497}]};function _0x1f4983(_0x2626a6,_0x238ee3,_0x1a06c2,_0x44bc3f){return _0x477ada(_0x2626a6,_0x238ee3-_0x4ebbce._0x1e7284,_0x1a06c2-_0x4ebbce._0x23cc25,_0x238ee3-_0x4ebbce._0x462ba3);}return normalizeMessage(_0x143497);}function resolveChatModel(_0xb7c108){const _0x595f43={_0x2138a9:0x5c4,_0x57362b:0x594,_0x50ace7:0x592,_0x43f44a:0x573,_0x461736:0x53f,_0x183a2f:0x4f6,_0x1abe61:0x57c,_0x52284c:0x4fd,_0x511799:0x4cf,_0x8d9492:0x542},_0x5e5ad9={_0x599e7e:0x1ad,_0x579589:0xb2,_0x55d0f1:0x6d1};if(!_0xb7c108[_0xea919a(_0x595f43._0x2138a9,_0x595f43._0x57362b,_0x595f43._0x50ace7,_0x595f43._0x43f44a)])throw new Error(_0x40a9a9(_0x595f43._0x461736,0x584,_0x595f43._0x183a2f,_0x595f43._0x1abe61));function _0x40a9a9(_0x163d3e,_0x251e14,_0x5921be,_0xbb656f){return _0x477ada(_0x251e14,_0x251e14-_0x5e5ad9._0x599e7e,_0x5921be-_0x5e5ad9._0x579589,_0x163d3e-_0x5e5ad9._0x55d0f1);}function _0xea919a(_0x266c14,_0x2ff9ca,_0x357ac8,_0x235127){return _0x39c515(_0x235127-0x472,_0x2ff9ca-0x19c,_0x357ac8-0x159,_0x2ff9ca);}return _0xb7c108[_0x40a9a9(_0x595f43._0x52284c,_0x595f43._0x511799,0x533,_0x595f43._0x8d9492)];}function createRegistry(_0x2a5bc6){const _0xe351e2={_0x55e7c9:0x34d,_0x88d68e:0x37b,_0x2e85c2:0x3c4,_0x212a92:0x38f,_0x361321:0x38c,_0x2d2992:0x337},_0x53c3d8={_0x958a36:0x14c},_0x4c3aea={_0x1bbde4:0x74};function _0x5a0197(_0xa3031a,_0x9b2bf4,_0x79e1d2,_0x987e06){return _0x477ada(_0x987e06,_0x9b2bf4-0x1a3,_0x79e1d2-_0x4c3aea._0x1bbde4,_0x9b2bf4-0x4b4);}if(_0x2a5bc6[_0xe570d2(0x340,0x36f,_0xe351e2._0x55e7c9,_0xe351e2._0x88d68e)])return _0x2a5bc6[_0xe570d2(0x32f,0x36f,_0xe351e2._0x2e85c2,0x3bb)];const _0x113d60=createExtensionRegistry();function _0xe570d2(_0x486ec1,_0x3c60d7,_0x3de65d,_0x3d072b){return _0x39c515(_0x3c60d7-0x245,_0x3c60d7-_0x53c3d8._0x958a36,_0x3de65d-0x47,_0x3d072b);}const _0x5163d7=_0x2a5bc6[_0xe570d2(0x3fe,0x3bb,_0xe351e2._0x212a92,_0xe351e2._0x361321)]??[];for(const _0x4baee2 of _0x5163d7){_0x113d60[_0x5a0197(0x2be,0x2ed,_0xe351e2._0x2d2992,0x327)](_0x4baee2);}return _0x113d60;}var Agent=class{[_0x477ada(-0x1c2,-0x221,-0x1d4,-0x1d3)];['deps'];[_0x477ada(-0x125,-0x165,-0x12c,-0x17f)];[_0x39c515(0x115,0xd4,0x124,0x112)];[_0x39c515(0x104,0xbf,0x11a,0x120)];[_0x39c515(0x1b2,0x20f,0x1ed,0x1c9)];['turnIndex'];constructor(_0x3ef698={}){const _0x2e9c28={_0x1ffff1:0x15a,_0xd81363:0x18f,_0x40ef2d:0xf1,_0x42a153:0x108,_0x488c27:0x1f9,_0x2d98b3:0x1a2,_0x3c2db3:0x27f,_0x384062:0x14b,_0x5db0af:0x191,_0x52ac90:0x192,_0x3e19a4:0x13f,_0x438d92:0x202,_0x5111a0:0x1d1,_0xdb1130:0x1ff,_0x91e6a6:0xfc,_0x288cf8:0x1a5,_0x1ba410:0x10c,_0x2365fd:0x10a,_0x28113c:0x112,_0x26655c:0x10f,_0x1cca03:0x15d,_0x564b57:0x1d8,_0x389fdd:0x1f7,_0x3e636d:0x226,_0x17a368:0xd5,_0x2483f9:0x124,_0x1b3577:0x137,_0x4bd20b:0xe9,_0x40dfa7:0x129,_0x161d6e:0x1fe,_0x13fdbf:0x1b4},_0x302e81={_0x1ffeb5:0x349},_0x5b3a5c={_0x3c65e3:0x111,_0x487056:0x10a,_0x54e664:0xac,_0x5c5fbc:0xac},_0x193506={_0x1ca589:0x3d,_0x4087f9:0x64},_0x2b8d3e={_0x327613:0x31};this[_0x2013e3(-0x1ba,-0x18f,-0x160,-_0x2e9c28._0x1ffff1)]=_0x3ef698[_0x2013e3(-0x165,-_0x2e9c28._0xd81363,-0x158,-0x1b2)]??createSessionId(),this[_0x2013e3(-_0x2e9c28._0x40ef2d,-_0x2e9c28._0x42a153,-0x160,-0x102)]=0x0,this[_0x2013e3(-_0x2e9c28._0x488c27,-_0x2e9c28._0x2d98b3,-0x1af,-0x189)]=_0x3ef698[_0x11ba6b(0x259,0x1d0,0x224,_0x2e9c28._0x3c2db3)]??'',this['messages']=(_0x3ef698[_0x2013e3(-0x1b0,-0x1a0,-0x177,-0x1a6)]??[])[_0x2013e3(-_0x2e9c28._0x384062,-_0x2e9c28._0x5db0af,-_0x2e9c28._0x52ac90,-_0x2e9c28._0x3e19a4)](normalizeMessage),this['defaultMessage']=createDefaultMessage(_0x3ef698[_0x11ba6b(_0x2e9c28._0x438d92,_0x2e9c28._0x5111a0,0x1e4,_0x2e9c28._0xdb1130)]),this[_0x2013e3(-_0x2e9c28._0x91e6a6,-0x14e,-_0x2e9c28._0x288cf8,-0x100)]=createAgentMetrics({'getContextWindowLimit':_0x3ef698['getContextWindowLimit']});const _0x3215a9=_0x3ef698[_0x2013e3(-0x139,-0x162,-_0x2e9c28._0x1ba410,-_0x2e9c28._0x2365fd)];function _0x2013e3(_0x504bf1,_0x58ae97,_0x41ffc5,_0xbfb8ea){return _0x477ada(_0x504bf1,_0x58ae97-0x4f,_0x41ffc5-0xdb,_0x58ae97-_0x2b8d3e._0x327613);}const _0x8a90cc=async(_0x4f81ad,_0x20c821)=>{const _0x13161c={_0x84d987:0xfd};function _0x34b6b9(_0x3f1a4d,_0x6d569f,_0xdf1b09,_0x11b794){return _0x11ba6b(_0x3f1a4d-0x182,_0x6d569f-_0x13161c._0x84d987,_0x3f1a4d- -0x301,_0x11b794);}function _0x3e2908(_0x4da00f,_0x312b39,_0x5cf229,_0x677344){return _0x2013e3(_0x312b39,_0x677344-0x80,_0x5cf229-_0x193506._0x1ca589,_0x677344-_0x193506._0x4087f9);}this[_0x34b6b9(-0x137,-_0x5b3a5c._0x3c65e3,-0x12d,-_0x5b3a5c._0x487056)][_0x3e2908(-0x9a,-_0x5b3a5c._0x54e664,-0xcc,-_0x5b3a5c._0x5c5fbc)](_0x4f81ad),await _0x3215a9?.(_0x4f81ad,_0x20c821);},_0x8c6aec=createInternalToolRuntime(_0x3ef698[_0x2013e3(-0x150,-_0x2e9c28._0x28113c,-_0x2e9c28._0x26655c,-_0x2e9c28._0x1cca03)]??[],{'onEvent':_0x8a90cc,'onToolCall':_0x3ef698[_0x11ba6b(_0x2e9c28._0x564b57,_0x2e9c28._0x389fdd,0x1cc,_0x2e9c28._0x3e636d)]});function _0x11ba6b(_0x4d9a3b,_0x5c1e83,_0x56cd9b,_0x1fa68a){return _0x477ada(_0x1fa68a,_0x5c1e83-0xd0,_0x56cd9b-0x153,_0x56cd9b-_0x302e81._0x1ffeb5);}this[_0x2013e3(-_0x2e9c28._0x17a368,-_0x2e9c28._0x2483f9,-_0x2e9c28._0x1b3577,-_0x2e9c28._0x4bd20b)]={'registry':createRegistry(_0x3ef698),'chatModel':resolveChatModel(_0x3ef698),'toolRuntime':_0x8c6aec,'askUser':_0x3ef698[_0x2013e3(-0x13c,-0xf0,-_0x2e9c28._0x40dfa7,-0x12f)],'setTopic':_0x3ef698[_0x2013e3(-0xb2,-0xf5,-0x9d,-_0x2e9c28._0x1b3577)],'onEvent':_0x8a90cc,'sessionDir':_0x3ef698[_0x11ba6b(0x22a,0x1fe,_0x2e9c28._0x161d6e,_0x2e9c28._0x13fdbf)],'outputFormat':_0x3ef698['outputFormat']};}get[_0x477ada(-0xda,-0x174,-0x17c,-0x125)](){return this['_systemPrompt'];}['setTools'](_0x3b6371=[]){const _0x39716f={_0x2c8d17:0x15,_0xb1c186:0x8f,_0x34dde2:0x3f,_0x40fb50:0x7a,_0x1f94c6:0x5ee},_0x34c281={_0x1c056a:0x55},_0xa005a3={_0x2f1da7:0x12e,_0x12897f:0x116};function _0x2bd6b3(_0x262b44,_0x37a389,_0x966f68,_0x63a6a){return _0x477ada(_0x37a389,_0x37a389-0x3d,_0x966f68-_0xa005a3._0x2f1da7,_0x63a6a-_0xa005a3._0x12897f);}function _0x6e7d3(_0x1af06d,_0x18a3bc,_0x167af2,_0x95ec97){return _0x477ada(_0x1af06d,_0x18a3bc-_0x34c281._0x1c056a,_0x167af2-0x22,_0x18a3bc-0x721);}this[_0x2bd6b3(_0x39716f._0x2c8d17,0x1,-_0x39716f._0xb1c186,-_0x39716f._0x34dde2)][_0x2bd6b3(-0x39,-0x98,-0x9e,-_0x39716f._0x40fb50)][_0x6e7d3(0x5ea,_0x39716f._0x1f94c6,0x5bd,0x638)](_0x3b6371);}[_0x39c515(0x16d,0x160,0x148,0x170)](){const _0x22628a={_0x3c6f9e:0x8,_0x58b301:0x18,_0x211402:0x1,_0x26c9f1:0x26},_0x31ac54={_0x4cce8:0x19a};function _0xbb8a7d(_0x424194,_0x2db374,_0x3aee22,_0xdbdc35){return _0x39c515(_0x424194- -0x13d,_0x2db374-0x82,_0x3aee22-0x1d3,_0xdbdc35);}function _0x5bc1f7(_0x49b018,_0x53b417,_0x494fc7,_0x3fb441){return _0x477ada(_0x3fb441,_0x53b417-0x51,_0x494fc7-0xee,_0x53b417-_0x31ac54._0x4cce8);}return this['deps'][_0xbb8a7d(_0x22628a._0x3c6f9e,-_0x22628a._0x58b301,-0x42,-0xc)][_0x5bc1f7(0x14,-_0x22628a._0x211402,-0x6,-_0x22628a._0x26c9f1)]();}[_0x477ada(-0x14f,-0x12c,-0x118,-0x147)](_0x45df9d,_0x3cef4e={}){const _0x4c9b90={_0x474245:0x39b,_0x2ab2f3:0x3dd,_0x30a16c:0x144,_0x45af1e:0x154,_0x2894bd:0xea,_0xb391d5:0x117,_0x470477:0x128,_0x12b89e:0x435,_0x327a81:0x410,_0x7eb9a9:0x476,_0x101e68:0x3e7},_0x28ec76={_0x3cb948:0x14d,_0x563599:0x56e},_0x1b3944={_0x2433e7:0xa9};this[_0x403167(0x39b,_0x4c9b90._0x474245,0x363,_0x4c9b90._0x2ab2f3)]=_0x45df9d;function _0x420349(_0x2211f5,_0x291078,_0x2ad1a4,_0x5e789a){return _0x477ada(_0x2211f5,_0x291078-0xf5,_0x2ad1a4-0x62,_0x291078-_0x1b3944._0x2433e7);}function _0x403167(_0x31e610,_0x191715,_0x37fb9e,_0x336a4b){return _0x477ada(_0x336a4b,_0x191715-0x17d,_0x37fb9e-_0x28ec76._0x3cb948,_0x31e610-_0x28ec76._0x563599);}_0x3cef4e[_0x420349(-_0x4c9b90._0x30a16c,-0x12e,-_0x4c9b90._0x45af1e,-_0x4c9b90._0x2894bd)]===!![]&&(this[_0x420349(-_0x4c9b90._0xb391d5,-_0x4c9b90._0x470477,-0x119,-0xf8)]=[],this[_0x403167(_0x4c9b90._0x12b89e,_0x4c9b90._0x327a81,_0x4c9b90._0x7eb9a9,_0x4c9b90._0x101e68)]=0x0);}[_0x477ada(-0x18f,-0x177,-0x13c,-0x13e)](_0x33c353){const _0x46ebcb={_0x2164f9:0x5b8,_0x3daeae:0x58e},_0x5c812a={_0x63abf1:0x45e,_0x5984f8:0x15d};function _0x2dffd3(_0x49e36d,_0xd1e856,_0x227b59,_0x3b7254){return _0x39c515(_0x49e36d-_0x5c812a._0x63abf1,_0xd1e856-0x6c,_0x227b59-_0x5c812a._0x5984f8,_0x227b59);}this[_0x2dffd3(0x573,0x5b2,_0x46ebcb._0x2164f9,_0x46ebcb._0x3daeae)]=_0x33c353;}['setChatModel'](_0x2dd688){const _0x165b44={_0x54ed70:0x16b,_0x45075f:0x201,_0x1265fa:0x20c},_0x1765c6={_0x547b89:0x9e},_0x5dfab5={_0x5b517d:0xbe};function _0x52aca4(_0x217a2f,_0x369651,_0x2a8f9d,_0x2ea5f4){return _0x477ada(_0x369651,_0x369651-_0x5dfab5._0x5b517d,_0x2a8f9d-0x1f,_0x2ea5f4-0x6bf);}function _0x2ff610(_0x38804a,_0x24e9e6,_0xe2f5e,_0x35bba0){return _0x39c515(_0x35bba0- -0x30d,_0x24e9e6-0x2f,_0xe2f5e-_0x1765c6._0x547b89,_0xe2f5e);}this[_0x2ff610(-_0x165b44._0x54ed70,-0x134,-0x133,-0x18d)][_0x2ff610(-0x217,-0x205,-_0x165b44._0x45075f,-_0x165b44._0x1265fa)]=_0x2dd688;}async['send'](_0x2edd52=this['defaultMessage'],_0x48c13c={}){const _0x230955={_0x47e8ec:0x520,_0x4a5f20:0x505,_0x2311ac:0x54d,_0x286172:0x3e8,_0x503c45:0x336,_0x105cf4:0x2ec,_0xe50be8:0x302,_0x2fa88f:0x31a,_0x496c6d:0x395,_0x14b659:0x3b4,_0x2e95c6:0x3f4,_0x25031b:0x38b,_0xbdc7d1:0x308,_0x2aa56b:0x2df,_0x764769:0x36a,_0x4e7590:0x384,_0x4f5e3f:0x317,_0x3cb7eb:0x311,_0x16efad:0x33a,_0x6e375d:0x308,_0x43358b:0x345,_0x1ca789:0x583,_0x244182:0x591,_0x39929c:0x534,_0x268a17:0x4f4,_0x4ab505:0x48b,_0x3ae732:0x4b5,_0x280881:0x4c4,_0x3b2887:0x4cd,_0x36d386:0x48b},_0x298850={_0x530ee1:0x3b1,_0xcf2646:0x102},_0x3967af={_0x26d3f0:0x1be};function _0x4e1aa8(_0x207934,_0x107a20,_0x437806,_0x501c9f){return _0x39c515(_0x207934-0x204,_0x107a20-0xc0,_0x437806-_0x3967af._0x26d3f0,_0x501c9f);}function _0x4ed5c9(_0x5ade08,_0xbed54,_0xb136ce,_0x407ef6){return _0x39c515(_0x407ef6-_0x298850._0x530ee1,_0xbed54-_0x298850._0xcf2646,_0xb136ce-0x14,_0xb136ce);}if(!_0x2edd52)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');this[_0x4ed5c9(_0x230955._0x47e8ec,_0x230955._0x4a5f20,0x529,_0x230955._0x2311ac)]+=0x1;try{const _0x57ffe8=await runTurn({'sessionId':this['sessionId'],'turnId':createTurnId(this[_0x4e1aa8(0x3a0,0x3ee,0x3a5,_0x230955._0x286172)]),'streaming':_0x48c13c[_0x4e1aa8(_0x230955._0x503c45,_0x230955._0x105cf4,0x2dc,_0x230955._0xe50be8)],'signal':_0x48c13c[_0x4e1aa8(0x361,0x347,_0x230955._0x2fa88f,_0x230955._0x496c6d)],'system':this[_0x4e1aa8(_0x230955._0x14b659,_0x230955._0x2e95c6,_0x230955._0x25031b,0x392)],'messages':this[_0x4e1aa8(_0x230955._0xbdc7d1,_0x230955._0x2aa56b,0x304,0x2af)],'message':normalizeUserInput(_0x2edd52)},this['deps']);return this[_0x4ed5c9(0x50c,0x4b9,0x4b3,0x4b5)]=_0x57ffe8[_0x4e1aa8(0x387,0x355,_0x230955._0x764769,_0x230955._0x4e7590)]['messages'][_0x4e1aa8(_0x230955._0x4f5e3f,0x33f,_0x230955._0x3cb7eb,_0x230955._0x16efad)](normalizeMessage),_0x57ffe8;}catch(_0x46eebe){if(_0x46eebe instanceof TurnFailedError){this[_0x4e1aa8(_0x230955._0x6e375d,0x311,_0x230955._0x43358b,0x32d)]=synthesizeMissingToolResults(_0x46eebe[_0x4ed5c9(0x512,_0x230955._0x1ca789,_0x230955._0x244182,_0x230955._0x39929c)][_0x4ed5c9(0x498,_0x230955._0x268a17,_0x230955._0x4ab505,_0x230955._0x3ae732)][_0x4ed5c9(0x4fc,0x4c5,0x494,_0x230955._0x280881)](normalizeMessage));throw _0x46eebe[_0x4ed5c9(_0x230955._0x3b2887,_0x230955._0x36d386,0x46d,0x4ba)];}throw _0x46eebe;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
1
+ (function(_0x20f332,_0x542e37){const _0x130b0f={_0x450cb3:0x161,_0x137a30:0x11e,_0x3001ff:0x137,_0x23bcb0:0x198,_0x5d982c:0x1a6,_0x45070b:0x14d,_0x4bca5e:0x14e,_0x3aeefa:0x1d2,_0x3eeffc:0x17f,_0x5e247d:0x144,_0x56a0f5:0x1d7,_0x58b7f5:0xc8,_0x59436e:0x199,_0x172185:0x1ff,_0x30f0cb:0x21a,_0x8f3c97:0x114,_0x48b053:0x113,_0x3e14da:0x126,_0x1f223c:0x179,_0x494d07:0x14f,_0x583397:0xd3};function _0xa9d8fa(_0x4213b5,_0x168b41,_0x4b40f8,_0x21fb67){return _0x52ff(_0x21fb67- -0x9b,_0x4b40f8);}function _0x21ceff(_0xba9b9a,_0x3ef8a4,_0x1dd798,_0x4fed07){return _0x52ff(_0xba9b9a- -0x33e,_0x1dd798);}const _0x456fe8=_0x20f332();while(!![]){try{const _0x35096f=-parseInt(_0x21ceff(-_0x130b0f._0x450cb3,-_0x130b0f._0x137a30,-_0x130b0f._0x3001ff,-_0x130b0f._0x23bcb0))/0x1*(-parseInt(_0x21ceff(-0x1ff,-0x257,-0x23d,-0x1b5))/0x2)+parseInt(_0x21ceff(-_0x130b0f._0x5d982c,-_0x130b0f._0x45070b,-_0x130b0f._0x4bca5e,-_0x130b0f._0x3aeefa))/0x3*(parseInt(_0x21ceff(-_0x130b0f._0x3eeffc,-_0x130b0f._0x5e247d,-_0x130b0f._0x56a0f5,-0x14d))/0x4)+parseInt(_0xa9d8fa(_0x130b0f._0x58b7f5,0xe6,0xaa,0xb7))/0x5+-parseInt(_0x21ceff(-0x14c,-0x112,-0x115,-_0x130b0f._0x59436e))/0x6*(-parseInt(_0x21ceff(-0x1c1,-0x1b4,-_0x130b0f._0x172185,-_0x130b0f._0x30f0cb))/0x7)+-parseInt(_0xa9d8fa(0xaf,_0x130b0f._0x8f3c97,0xc6,0xd7))/0x8+-parseInt(_0xa9d8fa(0xd4,_0x130b0f._0x48b053,0x138,_0x130b0f._0x3e14da))/0x9*(-parseInt(_0x21ceff(-_0x130b0f._0x1f223c,-_0x130b0f._0x494d07,-0x196,-0x1c9))/0xa)+-parseInt(_0xa9d8fa(_0x130b0f._0x583397,0x105,0x107,0x12b))/0xb;if(_0x35096f===_0x542e37)break;else _0x456fe8['push'](_0x456fe8['shift']());}catch(_0x7916d6){_0x456fe8['push'](_0x456fe8['shift']());}}}(_0x38a5,0x74ed8));import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YWQXXHHU.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x3668fb){const _0x1a1312={_0x3b1c2d:0x15e,_0x4dff12:0x107,_0x29d0e0:0x133,_0x95c157:0x157},_0x1d6beb={_0x509e35:0x52};function _0x3c7a2e(_0xe3502b,_0x182917,_0x364db0,_0x49ff73){return _0x52ff(_0xe3502b- -_0x1d6beb._0x509e35,_0x49ff73);}return typeof _0x3668fb==='object'&&_0x3668fb!==null&&!Array[_0x3c7a2e(_0x1a1312._0x3b1c2d,_0x1a1312._0x4dff12,_0x1a1312._0x29d0e0,_0x1a1312._0x95c157)](_0x3668fb);}function _0x52ff(_0x2ad575,_0x48c59a){_0x2ad575=_0x2ad575-0x13e;const _0x38a573=_0x38a5();let _0x52ff04=_0x38a573[_0x2ad575];if(_0x52ff['OmzLnP']===undefined){var _0x4eac89=function(_0x2b5172){const _0x3a3468='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3668fb='',_0x344d51='';for(let _0xf29413=0x0,_0x335f8f,_0x339373,_0xd8eebc=0x0;_0x339373=_0x2b5172['charAt'](_0xd8eebc++);~_0x339373&&(_0x335f8f=_0xf29413%0x4?_0x335f8f*0x40+_0x339373:_0x339373,_0xf29413++%0x4)?_0x3668fb+=String['fromCharCode'](0xff&_0x335f8f>>(-0x2*_0xf29413&0x6)):0x0){_0x339373=_0x3a3468['indexOf'](_0x339373);}for(let _0x427ca7=0x0,_0x543240=_0x3668fb['length'];_0x427ca7<_0x543240;_0x427ca7++){_0x344d51+='%'+('00'+_0x3668fb['charCodeAt'](_0x427ca7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x344d51);};_0x52ff['PscuyG']=_0x4eac89,_0x52ff['rEkJSx']={},_0x52ff['OmzLnP']=!![];}const _0x415c89=_0x38a573[0x0],_0x308049=_0x2ad575+_0x415c89,_0x396243=_0x52ff['rEkJSx'][_0x308049];return!_0x396243?(_0x52ff04=_0x52ff['PscuyG'](_0x52ff04),_0x52ff['rEkJSx'][_0x308049]=_0x52ff04):_0x52ff04=_0x396243,_0x52ff04;}function isToolOutputEnvelope(_0x344d51){const _0x3bb948={_0x166384:0x2cc,_0x4dfaf0:0x2af,_0x16bd36:0x58,_0x2e8b95:0x46,_0x4355c4:0xa,_0x373a28:0x295,_0x2d998b:0x288,_0x18664b:0x75},_0x35f93c={_0x3ef8f5:0x11c};if(typeof _0x344d51!=='object'||_0x344d51===null||Array[_0x4cec5d(_0x3bb948._0x166384,_0x3bb948._0x4dfaf0,0x297,0x28e)](_0x344d51))return![];function _0x71d392(_0x17729b,_0x3991a0,_0x2ba9aa,_0x273cce){return _0x52ff(_0x273cce- -0x1dc,_0x2ba9aa);}if(typeof _0x344d51[_0x71d392(_0x3bb948._0x16bd36,_0x3bb948._0x2e8b95,-_0x3bb948._0x4355c4,0x15)]!==_0x4cec5d(0x2c5,_0x3bb948._0x373a28,_0x3bb948._0x2d998b,0x2c8))return![];const _0xf29413=_0x344d51[_0x71d392(-_0x3bb948._0x18664b,-0x45,-0x9c,-0x42)];function _0x4cec5d(_0x3049ad,_0x58103f,_0x5c31b2,_0x21a385){return _0x52ff(_0x3049ad-_0x35f93c._0x3ef8f5,_0x58103f);}return _0xf29413===void 0x0||isJsonObject(_0xf29413);}function validateAgainstSchema(_0x335f8f,_0x339373,_0xd8eebc){const _0x20171c={_0x47b420:0x2ef,_0x556781:0x2a9,_0x2d0276:0x2cd,_0x132b0b:0x2a5,_0x463e3a:0x256,_0x33047f:0x21c,_0x526500:0x2b6,_0x53097a:0x25d,_0x1f27d9:0x301,_0x3b1102:0x2ec,_0xf34f53:0x212,_0x289e1a:0x263,_0x393130:0x26e,_0x2991fc:0x311,_0x1e51d4:0x322,_0x33ba49:0x27e,_0x21c729:0x2c0,_0x47e765:0x264,_0x344685:0x2b0,_0x9c49ed:0x250,_0x24001f:0x2dc,_0x1108f3:0x2eb,_0x39d971:0x28f,_0x5f3d2f:0x252,_0x21d2f7:0x1bb,_0x24db3c:0x208,_0x1d2151:0x24f,_0x53c7ba:0x2ca,_0x208f57:0x260,_0xd4f0f3:0x2a2,_0x214e0a:0x29f,_0x59128d:0x259,_0x48eeee:0x290,_0x45a1a7:0x2a3,_0x4a43b6:0x221,_0x454ffe:0x248,_0x15fa81:0x252,_0x4eb8ec:0x24c},_0xa971ce={_0xcd6620:0x17a,_0x5cf6c4:0x199},_0x46af01={_0x53ca92:0xb8};function _0x3029f4(_0xfa433c,_0x540163,_0x57308f,_0xa2b0ca){return _0x52ff(_0x57308f-0x100,_0xa2b0ca);}function _0x204f07(_0x3ef0c1,_0x13f6e5,_0x30dc75,_0xcb2704){return _0x52ff(_0x30dc75-_0x46af01._0x53ca92,_0x13f6e5);}switch(_0xd8eebc['type']){case'string':if(typeof _0x339373!==_0x3029f4(0x302,_0x20171c._0x47b420,_0x20171c._0x556781,_0x20171c._0x2d0276))throw new Error(_0x3029f4(0x2f0,0x258,_0x20171c._0x132b0b,0x2c3)+_0x335f8f+_0x204f07(_0x20171c._0x463e3a,0x249,_0x20171c._0x33047f,0x1fb));return;case'number':if(typeof _0x339373!=='number')throw new Error(_0x3029f4(0x2d8,_0x20171c._0x526500,_0x20171c._0x132b0b,_0x20171c._0x53097a)+_0x335f8f+':\x20expected\x20number');return;case _0x3029f4(_0x20171c._0x1f27d9,_0x20171c._0x3b1102,0x2d3,0x2e4):if(typeof _0x339373!=='boolean')throw new Error(_0x204f07(_0x20171c._0xf34f53,0x202,0x25d,_0x20171c._0x289e1a)+_0x335f8f+_0x204f07(0x221,0x263,0x262,_0x20171c._0x393130));return;case _0x3029f4(_0x20171c._0x2991fc,_0x20171c._0x1e51d4,0x2d6,_0x20171c._0x33ba49):if(!Array[_0x3029f4(_0x20171c._0x21c729,_0x20171c._0x47e765,_0x20171c._0x344685,0x2b6)](_0x339373))throw new Error(_0x3029f4(0x2c5,_0x20171c._0x9c49ed,0x2a5,0x2f4)+_0x335f8f+_0x3029f4(_0x20171c._0x24001f,0x31c,_0x20171c._0x1108f3,_0x20171c._0x39d971));_0x339373['forEach']((_0x427ca7,_0x543240)=>{const _0x56821f={_0x2a9eed:0xf9};function _0x9ddcf4(_0x35fd17,_0x593334,_0x36672e,_0x103837){return _0x204f07(_0x35fd17-_0x56821f._0x2a9eed,_0x35fd17,_0x103837- -0xfa,_0x103837-0x45);}validateAgainstSchema(_0x335f8f+'['+_0x543240+']',_0x427ca7,_0xd8eebc[_0x9ddcf4(_0xa971ce._0xcd6620,_0xa971ce._0x5cf6c4,0x1d3,0x181)]);});return;case _0x204f07(_0x20171c._0x5f3d2f,_0x20171c._0x21d2f7,_0x20171c._0x24db3c,_0x20171c._0x1d2151):if(!isJsonObject(_0x339373))throw new Error(_0x3029f4(0x2ec,_0x20171c._0x53c7ba,0x2a5,_0x20171c._0x208f57)+_0x335f8f+':\x20expected\x20object');for(const _0x49a230 of _0xd8eebc[_0x3029f4(0x26f,_0x20171c._0xd4f0f3,_0x20171c._0x214e0a,0x2d1)]??[]){if(!(_0x49a230 in _0x339373))throw new Error(_0x204f07(_0x20171c._0x59128d,_0x20171c._0x48eeee,0x25d,_0x20171c._0x45a1a7)+_0x335f8f+':\x20missing\x20required\x20field\x20\x22'+_0x49a230+'\x22');}for(const [_0x47d50b,_0x500009]of Object[_0x204f07(_0x20171c._0x4a43b6,0x248,_0x20171c._0x454ffe,_0x20171c._0x15fa81)](_0xd8eebc[_0x204f07(0x20c,_0x20171c._0x4eb8ec,0x234,0x1ef)])){_0x47d50b in _0x339373&&validateAgainstSchema(_0x335f8f+'.'+_0x47d50b,_0x339373[_0x47d50b],_0x500009);}}}function normalizeToolOutputValue(_0xa7c818){const _0x1d446a={_0x42f176:0x414,_0x2d0509:0x3d8,_0x389b4c:0x3b4,_0x5d2a81:0x3f0,_0x573661:0x19,_0x243ec6:0x5c,_0x5e22d9:0x2c,_0x405b72:0x3bd,_0xdc9579:0x3ed,_0x2d0395:0x377,_0x5dc217:0x1a,_0x333401:0x64},_0x37dbcd={_0x2f1948:0x150};if(isToolOutputEnvelope(_0xa7c818))return{'output':_0xa7c818[_0x577007(0x3f6,_0x1d446a._0x42f176,0x410,_0x1d446a._0x2d0509)],'structured':_0xa7c818['structured']??{'value':_0xa7c818[_0x577007(0x3f6,0x3b6,0x3f1,0x3b2)]},..._0xa7c818[_0x577007(_0x1d446a._0x389b4c,_0x1d446a._0x5d2a81,0x397,0x3a2)]!==void 0x0?{'content':_0xa7c818['content']}:{}};if(typeof _0xa7c818==='string')return{'output':_0xa7c818,'structured':{'value':_0xa7c818}};if(typeof _0xa7c818===_0x2942ca(-_0x1d446a._0x573661,-_0x1d446a._0x243ec6,0x0,-_0x1d446a._0x5e22d9)&&_0xa7c818!==null&&!Array[_0x577007(0x3b5,_0x1d446a._0x405b72,_0x1d446a._0xdc9579,_0x1d446a._0x2d0395)](_0xa7c818))return{'output':JSON['stringify'](_0xa7c818,null,0x2),'structured':_0xa7c818};function _0x2942ca(_0x3f23f7,_0x49a6bc,_0x16b5b2,_0x22ac3b){return _0x52ff(_0x16b5b2- -_0x37dbcd._0x2f1948,_0x49a6bc);}function _0x577007(_0x454071,_0x12b22d,_0x94a813,_0x40599e){return _0x52ff(_0x454071-0x205,_0x40599e);}return{'output':JSON[_0x2942ca(_0x1d446a._0x5dc217,0x35,_0x1d446a._0x333401,0x83)](_0xa7c818,null,0x2),'structured':{'value':_0xa7c818}};}function createToolOutput(_0x266bfd,_0xe3509b={'value':_0x266bfd},_0x3fd2f8){return{'output':_0x266bfd,'structured':_0xe3509b,..._0x3fd2f8!==void 0x0?{'content':_0x3fd2f8}:{}};}var ToolExecutionError=class extends Error{[_0x3de5c2(0x253,0x226,0x27f,0x28a)];constructor(_0x803366,_0x16fcf1={}){const _0x54c17a={_0x566c00:0x34c,_0x441f17:0x3d4,_0x207a97:0x3a5,_0x2e345f:0x312,_0x55def8:0x3b3,_0x2d91b9:0x36a,_0x48d2ab:0x387,_0x5155df:0x34f},_0x379b76={_0x1cae5c:0x13c,_0x69e00d:0x6d},_0xf40dd7={_0x37cc20:0x77,_0x35a3a7:0xc9,_0x323606:0x1df};function _0x42c137(_0x4c3335,_0x282686,_0x3c2b1c,_0x345deb){return _0x3de5c2(_0x345deb,_0x282686-_0xf40dd7._0x37cc20,_0x3c2b1c-_0xf40dd7._0x35a3a7,_0x345deb-_0xf40dd7._0x323606);}super(_0x803366);function _0x5aff18(_0xb6e20e,_0x373e5e,_0x1c6395,_0x2c421c){return _0x3de5c2(_0x373e5e,_0x373e5e-0x1c3,_0x1c6395-_0x379b76._0x1cae5c,_0x2c421c-_0x379b76._0x69e00d);}this[_0x5aff18(_0x54c17a._0x566c00,_0x54c17a._0x441f17,_0x54c17a._0x207a97,0x3b1)]=_0x5aff18(_0x54c17a._0x2e345f,_0x54c17a._0x55def8,_0x54c17a._0x2d91b9,_0x54c17a._0x48d2ab),this[_0x42c137(0x35b,0x35a,0x348,_0x54c17a._0x5155df)]=_0x16fcf1;}};function defineTool(_0x5aa7b8){return _0x5aa7b8;}var ToolRegistry=class{[_0x186b58(0x4b6,0x472,0x4de,0x4a3)]=new Map();constructor(_0x267fad=[]){const _0x7de31={_0x4c8a2e:0x189,_0x5e00f1:0x1e0},_0x525584={_0x148984:0xf0,_0x3c2836:0xa7};function _0x4f0209(_0x2cda02,_0x1e7ce5,_0xaa4838,_0x15b0f2){return _0x3de5c2(_0xaa4838,_0x1e7ce5-_0x525584._0x148984,_0x15b0f2- -0x489,_0x15b0f2-_0x525584._0x3c2836);}for(const _0x2fbb33 of _0x267fad){this[_0x4f0209(-0x18d,-_0x7de31._0x4c8a2e,-0x217,-_0x7de31._0x5e00f1)](_0x2fbb33);}}['register'](_0x39f4c1){const _0x1d3807={_0x3eef86:0x4a9,_0x1b5cd6:0x504,_0xc0a919:0x4d8,_0x38e759:0x49b},_0x5e38e7={_0x2adb32:0xea},_0x4fc913={_0x334db2:0x219,_0x2ff854:0x1b0};function _0x3bea20(_0x3e1bdb,_0x291679,_0x30c22e,_0x57f700){return _0x3de5c2(_0x57f700,_0x291679-0x34,_0x291679-_0x4fc913._0x334db2,_0x57f700-_0x4fc913._0x2ff854);}function _0x3688b4(_0x523830,_0x2b1ff9,_0x446492,_0x2f1a85){return _0x3de5c2(_0x446492,_0x2b1ff9-_0x5e38e7._0x2adb32,_0x2b1ff9-0x28d,_0x2f1a85-0xe5);}this[_0x3688b4(0x491,0x4d1,_0x1d3807._0x3eef86,0x4ce)][_0x3688b4(_0x1d3807._0x1b5cd6,_0x1d3807._0xc0a919,0x517,_0x1d3807._0x38e759)](_0x39f4c1['name'],_0x39f4c1);}[_0x186b58(0x533,0x4b3,0x509,0x4db)](_0x367847){const _0x5f0993={_0x510cef:0x240,_0x2492b0:0x394,_0x496a4c:0x373},_0x5b58ae={_0x2a2147:0x26,_0x2b2432:0x4,_0x30089a:0x15d},_0x24b4aa={_0x3282aa:0x8a,_0x455bfc:0xbf,_0x3b7be8:0x1c7};function _0x2731da(_0x2a400b,_0x2edddc,_0x4cc34b,_0x224419){return _0x3de5c2(_0x2a400b,_0x2edddc-_0x24b4aa._0x3282aa,_0x2edddc-_0x24b4aa._0x455bfc,_0x224419-_0x24b4aa._0x3b7be8);}function _0x151612(_0x4cdb77,_0x156788,_0x2a9499,_0x24b1ba){return _0x3de5c2(_0x4cdb77,_0x156788-_0x5b58ae._0x2a2147,_0x24b1ba- -_0x5b58ae._0x2b2432,_0x24b1ba-_0x5b58ae._0x30089a);}return this[_0x151612(0x261,0x200,0x296,_0x5f0993._0x510cef)][_0x2731da(_0x5f0993._0x2492b0,0x33b,0x392,_0x5f0993._0x496a4c)](_0x367847);}[_0x186b58(0x4e0,0x4fb,0x4d5,0x4a6)](){const _0x3ab75f={_0x1d3c73:0x25a,_0xec7d87:0x22c},_0x4605c5={_0x49a031:0x1dc,_0x5a1fd1:0xc,_0x2d1a90:0x96},_0x4e6487={_0x21fb8c:0xa2,_0x415873:0x7e,_0x1438e2:0x4c7};function _0x114b8a(_0x6abdb7,_0x11a075,_0xc0ef87,_0x536547){return _0x186b58(_0x6abdb7-_0x4e6487._0x21fb8c,_0x11a075-_0x4e6487._0x415873,_0x6abdb7,_0x536547- -_0x4e6487._0x1438e2);}function _0x12fc2b(_0x264ad3,_0x5b0edd,_0xc1a2c,_0x3168ef){return _0x3de5c2(_0x5b0edd,_0x5b0edd-_0x4605c5._0x49a031,_0x264ad3-_0x4605c5._0x5a1fd1,_0x3168ef-_0x4605c5._0x2d1a90);}return[...this[_0x12fc2b(0x250,_0x3ab75f._0x1d3c73,0x254,_0x3ab75f._0xec7d87)][_0x12fc2b(0x27a,0x233,0x250,0x289)]()];}['listToolSchemas'](){const _0x11c750={_0x4c871a:0x419,_0x486c8a:0x172,_0x13c879:0x3a8},_0x1213c4={_0x3281fb:0x26d};return this['list']()['map'](_0x2848c6=>{function _0x53d9cf(_0xea4781,_0x21522b,_0x176e2c,_0x54f736){return _0x52ff(_0x54f736-_0x1213c4._0x3281fb,_0x176e2c);}function _0x3911c1(_0xe30a50,_0x3684fb,_0x28dda3,_0x4f3b1b){return _0x52ff(_0xe30a50- -0xc4,_0x4f3b1b);}return{'name':_0x2848c6[_0x53d9cf(0x3ff,0x41a,_0x11c750._0x4c871a,0x3f1)],'description':_0x2848c6[_0x3911c1(0x11e,0x12f,0x113,_0x11c750._0x486c8a)],'input_schema':_0x2848c6[_0x53d9cf(_0x11c750._0x13c879,0x39f,0x38a,0x3c4)]};});}};function validateToolInput(_0x4c8211,_0x40765d){const _0x286b80={_0x566b72:0x253,_0x308d35:0x276,_0x96516b:0x281};validateAgainstSchema(_0x2a477d(_0x286b80._0x566b72,_0x286b80._0x308d35,0x29a,_0x286b80._0x96516b),_0x4c8211,_0x40765d);function _0x2a477d(_0x223970,_0x3e03eb,_0x1d65a2,_0x5385d0){return _0x3de5c2(_0x223970,_0x3e03eb-0x1b8,_0x5385d0-0x42,_0x5385d0-0xcd);}return _0x4c8211;}function deriveFinalToolOutput(_0x2b68bd){const _0x14a815={_0x535fdb:0x2ef,_0x439cf4:0x3d1,_0x1df702:0x38f,_0x47adb5:0x382,_0x4ba8bb:0x387,_0x282c78:0x1f3,_0x3413cb:0x19f,_0x2db178:0x1d1,_0x1a5c79:0x12e,_0x3aedb7:0x15d,_0x527a0d:0x148},_0x1f456d={_0x2b9cc5:0x6c},_0x317372={_0x486e55:0xa0,_0x3fa9af:0xed};function _0x3e4e87(_0x71ea09,_0x58f740,_0x3bb714,_0x4143a8){return _0x3de5c2(_0x4143a8,_0x58f740-_0x317372._0x486e55,_0x58f740- -_0x317372._0x3fa9af,_0x4143a8-0x12d);}if(_0x2b68bd[_0x16d65a(0x376,_0x14a815._0x535fdb,0x34d,0x345)]===0x0)return{'output':'','structured':{}};if(_0x2b68bd['length']===0x1)return{'output':_0x2b68bd[0x0][_0x16d65a(0x3c6,0x3cd,0x37f,_0x14a815._0x439cf4)],'structured':_0x2b68bd[0x0]['structured'],..._0x2b68bd[0x0][_0x16d65a(0x3e4,0x358,0x33c,_0x14a815._0x1df702)]!==void 0x0?{'content':_0x2b68bd[0x0]['content']}:{}};function _0x16d65a(_0x147117,_0x4940ac,_0x5cbda6,_0xc7b81d){return _0x186b58(_0x147117-_0x1f456d._0x2b9cc5,_0x4940ac-0xd9,_0x147117,_0xc7b81d- -0x164);}const _0xb26349=_0x2b68bd['filter'](_0x21e9f8=>_0x21e9f8[_0x16d65a(0x3db,0x38c,0x363,0x38f)]!==void 0x0);return{'output':_0x2b68bd[_0x16d65a(0x3d3,_0x14a815._0x47adb5,0x3ae,_0x14a815._0x4ba8bb)](_0x5d4e1e=>_0x5d4e1e[_0x16d65a(0x42c,0x416,0x3cf,0x3d1)])['join'](''),'structured':{'chunks':_0x2b68bd[_0x3e4e87(_0x14a815._0x282c78,_0x14a815._0x3413cb,_0x14a815._0x2db178,0x1d6)](_0x5304c2=>_0x5304c2[_0x3e4e87(0x144,0x192,0x1de,0x1d1)])},..._0xb26349[_0x3e4e87(_0x14a815._0x1a5c79,_0x14a815._0x3aedb7,_0x14a815._0x527a0d,0x13e)]===0x1?{'content':_0xb26349[0x0]['content']}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x5132ae,_0x52804c,_0x42a67a,_0x4bf063=[]){const _0x33d7de={_0x4d8616:0xc9,_0x2c5f4e:0x7a,_0x5497fd:0xf1,_0x23ff35:0x117},_0x3dbd96={_0x2f86d2:0x1c2,_0x711c16:0x5b0};function _0x4ad44f(_0x25e95e,_0x4e586c,_0x55bfbb,_0x4d5b4f){return _0x186b58(_0x25e95e-_0x3dbd96._0x2f86d2,_0x4e586c-0xff,_0x4d5b4f,_0x25e95e- -_0x3dbd96._0x711c16);}return{'callId':_0x5132ae['id'],'toolName':_0x5132ae['name'],'status':_0x4ad44f(-_0x33d7de._0x4d8616,-_0x33d7de._0x2c5f4e,-_0x33d7de._0x5497fd,-_0x33d7de._0x23ff35),'output':_0x52804c,'structured':_0x42a67a,'chunks':_0x4bf063,'meta':createToolMeta()};}function createRejectedToolResult(_0x5235d7,_0x1e97c6){const _0x46b8b8={_0x58141d:0x4cc,_0x4ec822:0x552,_0x552a8a:0x518,_0x323d95:0x550,_0x475501:0x521,_0x3403ce:0x50f,_0x4f0c65:0x566,_0x35ea67:0x51d,_0x11cfcd:0x540,_0x2e5fe2:0x556,_0x592650:0x4f0,_0x55122e:0x514,_0x396a1c:0x51d,_0x180d03:0x528},_0x2e2203={_0xd79064:0x10,_0x3cae25:0x1da},_0x2995bc={_0x8bdf0d:0xa4,_0x593306:0x14e};function _0x50c2b2(_0x23fa25,_0x10e222,_0x5a0c5f,_0x3b08c9){return _0x186b58(_0x23fa25-_0x2995bc._0x8bdf0d,_0x10e222-_0x2995bc._0x593306,_0x5a0c5f,_0x3b08c9-0x64);}function _0x2640f7(_0x59c9c6,_0xf371c8,_0x19ec25,_0x40507c){return _0x186b58(_0x59c9c6-_0x2e2203._0xd79064,_0xf371c8-_0x2e2203._0x3cae25,_0x19ec25,_0xf371c8-0x78);}const _0x57861d=_0x1e97c6?.[_0x50c2b2(0x54c,_0x46b8b8._0x58141d,_0x46b8b8._0x4ec822,_0x46b8b8._0x552a8a)]()[_0x2640f7(_0x46b8b8._0x323d95,_0x46b8b8._0x475501,_0x46b8b8._0x3403ce,_0x46b8b8._0x4f0c65)]?_0x1e97c6:'Tool\x20execution\x20rejected\x20for\x20'+_0x5235d7[_0x2640f7(_0x46b8b8._0x35ea67,_0x46b8b8._0x11cfcd,0x509,0x592)];return createErrorToolResult(_0x5235d7,_0x57861d,{'error':_0x2640f7(0x521,_0x46b8b8._0x35ea67,_0x46b8b8._0x2e5fe2,_0x46b8b8._0x592650),..._0x1e97c6?.[_0x2640f7(0x52a,0x52c,0x518,_0x46b8b8._0x55122e)]()[_0x2640f7(_0x46b8b8._0x396a1c,0x521,0x560,_0x46b8b8._0x180d03)]?{'reason':_0x1e97c6}:{}});}function createAbortedToolResult(_0x4b6b2c,_0x2556c9,_0x1d63bb=[]){const _0x33969f={_0x26c5d4:0xe4,_0x342e62:0xd5},_0x550a56={_0x20676:0x1e6},_0x4f8d37=toAbortError(_0x2556c9);function _0x888cd9(_0x38cf04,_0x501fba,_0x5ebf9e,_0x1f24a0){return _0x186b58(_0x38cf04-0x129,_0x501fba-_0x550a56._0x20676,_0x38cf04,_0x1f24a0- -0x438);}return createErrorToolResult(_0x4b6b2c,_0x4f8d37['message'],{'error':_0x4f8d37[_0x888cd9(0x131,0x119,_0x33969f._0x26c5d4,_0x33969f._0x342e62)],'aborted':!![]},_0x1d63bb);}function createSuccessToolResult(_0x1b14b1,_0x4849f6,_0x369947){const _0x11da53={_0x5832c0:0x2bd,_0x1a04f8:0x2ad,_0x21b968:0x2b5,_0x1de32d:0x27c,_0x574be2:0x234},_0x2fe122={_0x46316e:0x74,_0x2a26bc:0x27d},_0x2dd86b={_0x2b4eb1:0x1d5,_0x25e04f:0x69};function _0x3585a4(_0x33c98c,_0x1c04ef,_0x1c49c5,_0xb6654e){return _0x3de5c2(_0x1c49c5,_0x1c04ef-_0x2dd86b._0x2b4eb1,_0xb6654e-0xf2,_0xb6654e-_0x2dd86b._0x25e04f);}function _0x5f501e(_0x1f7a75,_0x318711,_0x59c1e8,_0x5c999c){return _0x186b58(_0x1f7a75-_0x2fe122._0x46316e,_0x318711-0x1c8,_0x318711,_0x1f7a75- -_0x2fe122._0x2a26bc);}return{'callId':_0x1b14b1['id'],'toolName':_0x1b14b1['name'],'status':'ok','output':_0x4849f6[_0x3585a4(0x3f0,0x38c,0x3c4,0x3c8)],'structured':_0x4849f6[_0x5f501e(0x261,_0x11da53._0x5832c0,_0x11da53._0x1a04f8,0x223)],..._0x4849f6[_0x5f501e(0x276,0x2a1,_0x11da53._0x21b968,_0x11da53._0x1de32d)]!==void 0x0?{'content':_0x4849f6[_0x5f501e(0x276,0x287,_0x11da53._0x574be2,0x2a1)]}:{},'chunks':_0x369947,'meta':createToolMeta()};}function createUnknownToolResult(_0x5ac6c9){const _0x32e17b={_0x49cf7a:0x104,_0x577833:0xea,_0x17bb3e:0x21f,_0x56097f:0x239,_0x233bcc:0x22e},_0x15de3f={_0xf9936f:0xdd,_0x213b0c:0x26,_0x287a5e:0x3c7},_0x34453e={_0x4de547:0x8d};function _0x41d8b6(_0x2dc44b,_0x4e79c6,_0x3d79b1,_0xe5561f){return _0x3de5c2(_0xe5561f,_0x4e79c6-0xc9,_0x4e79c6- -0x488,_0xe5561f-_0x34453e._0x4de547);}function _0x558559(_0x590393,_0x170e56,_0x398823,_0x5af9af){return _0x186b58(_0x590393-_0x15de3f._0xf9936f,_0x170e56-_0x15de3f._0x213b0c,_0x590393,_0x398823- -_0x15de3f._0x287a5e);}return createErrorToolResult(_0x5ac6c9,_0x558559(_0x32e17b._0x49cf7a,0xad,_0x32e17b._0x577833,0xc7)+_0x5ac6c9[_0x41d8b6(-0x1f5,-_0x32e17b._0x17bb3e,-0x21a,-_0x32e17b._0x56097f)],{'error':_0x41d8b6(-0x22b,-0x24f,-_0x32e17b._0x233bcc,-0x264)});}function isDispatchDecision(_0x4df572){const _0x287339={_0x34fcdb:0x108,_0x57dd0b:0x10f,_0x51c492:0xce,_0x3795c6:0x78,_0x3ff3be:0x63,_0x433978:0x87,_0x4e7caa:0x7f},_0x345040={_0x3756a6:0xfc};if(typeof _0x4df572!==_0x42f7c7(-_0x287339._0x34fcdb,-0xfa,-_0x287339._0x57dd0b,-0x100)||_0x4df572===null)return![];function _0x42f7c7(_0x23b771,_0x205d96,_0x2905a3,_0x50d4ee){return _0x186b58(_0x23b771-0x91,_0x205d96-0x67,_0x23b771,_0x2905a3- -0x5a3);}function _0x2a4996(_0x2097a2,_0x3c08dd,_0x3b777f,_0x301a6f){return _0x186b58(_0x2097a2-0x104,_0x3c08dd-0x11,_0x2097a2,_0x301a6f- -_0x345040._0x3756a6);}return _0x4df572['action']===_0x42f7c7(-0x6f,-_0x287339._0x51c492,-_0x287339._0x3795c6,-_0x287339._0x3ff3be)||_0x4df572[_0x42f7c7(-0x4f,-0xcb,-0x80,-0x89)]===_0x42f7c7(-_0x287339._0x433978,-0xac,-_0x287339._0x4e7caa,-0xa0);}function normalizeExecutionError(_0x291e86){const _0x8573f1={_0x551d6e:0xa9,_0x4961ec:0xd1,_0x4f4c0c:0xa2,_0x1a094b:0x4b0,_0x3686f5:0x4be,_0x4d6bd8:0x468},_0x5b1dbf={_0x150086:0xf5};if(_0x291e86 instanceof ToolExecutionError)return{'errorMessage':_0x291e86['message'],'structured':{'error':_0x291e86[_0x3efcee(-_0x8573f1._0x551d6e,-_0x8573f1._0x4961ec,-_0x8573f1._0x4f4c0c,-0x70)],..._0x291e86[_0x2f7ac9(_0x8573f1._0x1a094b,_0x8573f1._0x3686f5,0x4ac,0x490)]}};function _0x2f7ac9(_0x5a0a44,_0x1a978a,_0x36e892,_0x36f07d){return _0x3de5c2(_0x36e892,_0x1a978a-_0x5b1dbf._0x150086,_0x36f07d-0x211,_0x36f07d-0x124);}function _0x3efcee(_0xa9ced2,_0x1e719e,_0x4ebcfe,_0xf856e9){return _0x186b58(_0xa9ced2-0x4,_0x1e719e-0x137,_0x4ebcfe,_0xa9ced2- -0x5b6);}if(_0x291e86 instanceof Error)return{'errorMessage':_0x291e86['message'],'structured':{'error':_0x291e86[_0x2f7ac9(0x4e2,0x47e,_0x8573f1._0x4d6bd8,0x4bf)]}};const _0x1c863a=String(_0x291e86);return{'errorMessage':_0x1c863a,'structured':{'error':_0x1c863a}};}async function emitEvent(_0xe3fe3f,_0x30c7e4,_0x35a0d3){await _0xe3fe3f?.(_0x30c7e4,_0x35a0d3);}async function resolveDispatchDecision(_0x4abc31,_0x457a6e,_0x533325){const _0x2bc5d4={_0xaa4072:0x563,_0x3d6f6d:0x51c,_0x284834:0x521,_0x13fbae:0x588,_0x22c39e:0x515,_0x3175b0:0x563,_0x160a5c:0x514},_0x937533={_0x2fa1f3:0x3f},_0x45ac8e={_0x5a8fbc:0x17b},_0x2c2267={_0x10b785:0x44d,_0x57a20a:0x480,_0x5aa443:0x425,_0x55433d:0x444,_0x161fd0:0x501,_0x500633:0x52d,_0x544784:0x4b7,_0xf90a1f:0x540,_0x1d84d8:0x4d1,_0x574ed2:0x4c5,_0x196e89:0x4a9,_0x53ce81:0x54d,_0x41b0a1:0x462,_0xabf83a:0x410,_0x3ffa6a:0x415};if(!_0x4abc31)return{'action':_0x152668(_0x2bc5d4._0xaa4072,_0x2bc5d4._0x3d6f6d,0x557,_0x2bc5d4._0x284834)};const _0x2d0f91=Promise[_0x152668(0x564,0x550,_0x2bc5d4._0x13fbae,0x586)]()['then'](()=>_0x4abc31(_0x457a6e,_0x533325));if(!_0x533325['signal']){const _0x50db4d=await _0x2d0f91;return isDispatchDecision(_0x50db4d)?_0x50db4d:{'action':'run'};}const _0x45e21e=new Promise((_0xd42bee,_0x6e50e9)=>{const _0x122eed={_0x50ef8b:0x2ca,_0x43be0b:0x2c1,_0x152d55:0x2a7},_0x121f5c={_0xbd47bc:0x1b5,_0x44ade3:0x62,_0x1fd251:0xd6},_0xaa2d4={_0x3120ed:0xa3,_0x2423d1:0x110,_0x1e7c78:0x18a};function _0xdc66b2(_0xacbe1b,_0x281d8c,_0x445a59,_0x21cdd8){return _0x2c9ebf(_0x21cdd8,_0x281d8c-_0xaa2d4._0x3120ed,_0x445a59-_0xaa2d4._0x2423d1,_0xacbe1b-_0xaa2d4._0x1e7c78);}function _0x5c693f(_0x530df1,_0x10e64d,_0x27414d,_0x44e837){return _0x2c9ebf(_0x44e837,_0x10e64d-_0x121f5c._0xbd47bc,_0x27414d-_0x121f5c._0x44ade3,_0x530df1-_0x121f5c._0x1fd251);}const _0x33c453=()=>{function _0x8e092a(_0x5b7661,_0x6f2f81,_0xf872da,_0x2ac7ff){return _0x52ff(_0xf872da-0x113,_0x2ac7ff);}_0x533325[_0x8e092a(0x2b5,_0x122eed._0x50ef8b,_0x122eed._0x43be0b,_0x122eed._0x152d55)]?.['removeEventListener']('abort',_0x33c453),_0x6e50e9(toAbortError(_0x533325['signal']?.['reason']));};if(_0x533325[_0x5c693f(_0x2c2267._0x10b785,_0x2c2267._0x57a20a,0x3f4,0x402)]?.[_0x5c693f(_0x2c2267._0x5aa443,0x455,_0x2c2267._0x55433d,0x45d)]){_0x6e50e9(toAbortError(_0x533325[_0xdc66b2(_0x2c2267._0x161fd0,_0x2c2267._0x500633,_0x2c2267._0x544784,_0x2c2267._0xf90a1f)][_0xdc66b2(_0x2c2267._0x1d84d8,_0x2c2267._0x574ed2,_0x2c2267._0x196e89,0x4a7)]));return;}_0x533325[_0xdc66b2(0x501,0x4bb,0x4d2,_0x2c2267._0x53ce81)]?.['addEventListener'](_0x5c693f(0x406,_0x2c2267._0x41b0a1,_0x2c2267._0xabf83a,_0x2c2267._0x3ffa6a),_0x33c453,{'once':!![]});});function _0x2c9ebf(_0x5c44d3,_0x33d46a,_0x59dbaf,_0x4e4675){return _0x186b58(_0x5c44d3-0x180,_0x33d46a-0xad,_0x5c44d3,_0x4e4675- -_0x45ac8e._0x5a8fbc);}const _0x507772=await Promise[_0x152668(0x52e,0x52c,_0x2bc5d4._0x22c39e,0x4d6)]([_0x2d0f91,_0x45e21e]);function _0x152668(_0x29175a,_0x18201c,_0x5c91e5,_0x1140a7){return _0x186b58(_0x29175a-0x141,_0x18201c-0x97,_0x5c91e5,_0x29175a-_0x937533._0x2fa1f3);}return isDispatchDecision(_0x507772)?_0x507772:{'action':_0x152668(_0x2bc5d4._0x3175b0,_0x2bc5d4._0x160a5c,0x56a,_0x2bc5d4._0x160a5c)};}async function executeToolCall(_0x59ebfb,_0x38bccc,_0x1dfd0c,_0x2d5a99,_0x448fda){const _0x5a3bd6={_0x252c49:0x24d,_0x2584a7:0x204,_0x2b7fa1:0x225,_0x4983f4:0x54d,_0x2e9b48:0x4be,_0x70b670:0x50e,_0x42c40e:0x503,_0x552982:0x529,_0x4eca86:0x4f9,_0x8bb53:0x4ed,_0x110b55:0x587,_0xa5a99c:0x52f,_0x3c47c5:0x55b,_0x4c0b45:0x1fa,_0x2f8c7e:0x25b,_0x310f61:0x253,_0x5b7880:0x225,_0x10b547:0x52c,_0x5b231f:0x557,_0x55dcf5:0x539,_0x3a5eee:0x266,_0x38d7f7:0x505,_0x4ff276:0x52e,_0x2912fd:0x242,_0x4de0b2:0x25e,_0x2a6b6f:0x295,_0x383a48:0x2a9,_0x3c12a1:0x262,_0x30ed3f:0x25e,_0x4f30a1:0x286,_0xda3de0:0x53d,_0x3be09e:0x278,_0x3605e9:0x22c,_0x258b36:0x22d,_0x3c28a1:0x286,_0x35d1a5:0x265,_0x3ef799:0x25a,_0x2e5de7:0x55a,_0x3dffa7:0x577,_0x5cc139:0x247,_0x324484:0x26c,_0x5d5cf4:0x24f,_0x3c446e:0x549,_0xe1dbd7:0x53e,_0x310610:0x1e6,_0x455ae5:0x535,_0x733bac:0x4ea,_0x1a0634:0x574},_0x40c9e8={_0x1d4702:0x200,_0x44c658:0x203},_0x16ef7f={_0x7ac1cd:0x10f,_0x50ada:0x1d,_0x1949a8:0x403},_0x4ff5cf={_0x9d10a2:0x35,_0x21c21f:0x525},_0x10b899={_0x24ab57:0x1d1},_0x437f07={_0x3781a4:0x19d,_0x5b08bb:0x1f},_0x293ad2={..._0x1dfd0c,'toolCallId':_0x38bccc['id']};throwIfAborted(_0x293ad2[_0x4b1c67(-0x272,-_0x5a3bd6._0x252c49,-_0x5a3bd6._0x2584a7,-_0x5a3bd6._0x2b7fa1)]);let _0x5d8069;try{_0x5d8069=await resolveDispatchDecision(_0x2d5a99,_0x38bccc,_0x293ad2);}catch(_0x5b0aba){if(isAbortError(_0x5b0aba)){const _0xa59700=createAbortedToolResult(_0x38bccc,_0x5b0aba);return await emitEvent(_0x448fda,{'type':'tool_completed','toolCall':_0x38bccc,'result':_0xa59700},_0x293ad2),_0xa59700;}const {errorMessage:_0x9ecca1,structured:_0xa0d49b}=normalizeExecutionError(_0x5b0aba),_0x2b4f85=createErrorToolResult(_0x38bccc,_0x9ecca1,_0xa0d49b);return await emitEvent(_0x448fda,{'type':_0x4b1c67(-0x27d,-0x220,-0x228,-0x233),'toolCall':_0x38bccc,'result':_0x2b4f85},_0x293ad2),_0x2b4f85;}throwIfAborted(_0x293ad2['signal']);function _0x4b1c67(_0x1ce627,_0x3e26fc,_0x3c5ff3,_0x589360){return _0x186b58(_0x1ce627-_0x437f07._0x3781a4,_0x3e26fc-_0x437f07._0x5b08bb,_0x3e26fc,_0x589360- -0x717);}if(_0x5d8069[_0x14e332(0x556,_0x5a3bd6._0x4983f4,0x52d,0x577)]==='reject'){const _0x541ead=createRejectedToolResult(_0x38bccc,_0x5d8069[_0x14e332(_0x5a3bd6._0x2e9b48,_0x5a3bd6._0x70b670,0x4bd,0x516)]);return await emitEvent(_0x448fda,{'type':_0x14e332(_0x5a3bd6._0x42c40e,_0x5a3bd6._0x552982,0x4cd,_0x5a3bd6._0x4eca86),'toolCall':_0x38bccc,'result':_0x541ead},_0x293ad2),_0x541ead;}const _0x33223b=_0x59ebfb[_0x14e332(_0x5a3bd6._0x8bb53,0x513,_0x5a3bd6._0x110b55,_0x5a3bd6._0xa5a99c)](_0x38bccc[_0x14e332(_0x5a3bd6._0x3c47c5,0x516,0x54f,0x51c)]);if(!_0x33223b){const _0x4cdb7c=createUnknownToolResult(_0x38bccc);return await emitEvent(_0x448fda,{'type':_0x4b1c67(-0x210,-_0x5a3bd6._0x4c0b45,-0x207,-0x233),'toolCall':_0x38bccc,'result':_0x4cdb7c},_0x293ad2),_0x4cdb7c;}throwIfAborted(_0x293ad2[_0x4b1c67(-_0x5a3bd6._0x2f8c7e,-_0x5a3bd6._0x310f61,-0x27e,-_0x5a3bd6._0x5b7880)]),await emitEvent(_0x448fda,{'type':_0x14e332(_0x5a3bd6._0x10b547,_0x5a3bd6._0x5b231f,0x56f,_0x5a3bd6._0x55dcf5),'toolCall':_0x38bccc},_0x293ad2);function _0x14e332(_0x4b45da,_0x2b77d7,_0x43a8ce,_0x5261bb){return _0x3de5c2(_0x4b45da,_0x2b77d7-0xb5,_0x5261bb-0x2b3,_0x5261bb-_0x10b899._0x24ab57);}try{throwIfAborted(_0x293ad2[_0x4b1c67(-0x27e,-_0x5a3bd6._0x3a5eee,-0x268,-_0x5a3bd6._0x2b7fa1)]);const _0x3a3485=validateToolInput(_0x38bccc['input'],_0x33223b[_0x4b1c67(-0x2c5,-0x2b8,-0x243,-0x27c)]),_0x21de6e=await _0x33223b[_0x14e332(0x50d,_0x5a3bd6._0x38d7f7,0x566,_0x5a3bd6._0x4ff276)](_0x3a3485,_0x293ad2),_0x242179=[],_0x25bf41=addAbortListener(_0x293ad2[_0x4b1c67(-_0x5a3bd6._0x2912fd,-0x244,-0x21b,-0x225)],()=>{function _0x573644(_0x2c8f9a,_0x1890e4,_0x478503,_0x3ab001){return _0x4b1c67(_0x2c8f9a-_0x4ff5cf._0x9d10a2,_0x1890e4,_0x478503-0x70,_0x2c8f9a-_0x4ff5cf._0x21c21f);}function _0x1fba56(_0x9fca3e,_0x4b4a2e,_0x1b67a3,_0xe78169){return _0x4b1c67(_0x9fca3e-_0x16ef7f._0x7ac1cd,_0x9fca3e,_0x1b67a3-_0x16ef7f._0x50ada,_0x4b4a2e-_0x16ef7f._0x1949a8);}void _0x21de6e[_0x1fba56(0x20d,0x1ba,0x19f,0x1a3)](void 0x0)[_0x1fba56(0x1fe,_0x40c9e8._0x1d4702,_0x40c9e8._0x44c658,0x225)](()=>{});});try{throwIfAborted(_0x293ad2['signal']);let _0x6e039a=await _0x21de6e[_0x4b1c67(-0x2c0,-_0x5a3bd6._0x4de0b2,-0x261,-_0x5a3bd6._0x2a6b6f)]();while(!_0x6e039a[_0x4b1c67(-_0x5a3bd6._0x383a48,-_0x5a3bd6._0x3c12a1,-_0x5a3bd6._0x30ed3f,-_0x5a3bd6._0x4f30a1)]){throwIfAborted(_0x293ad2[_0x14e332(0x515,_0x5a3bd6._0xda3de0,0x4f8,0x546)]);const _0x482549=normalizeToolOutputValue(_0x6e039a[_0x4b1c67(-0x1fe,-_0x5a3bd6._0x3be09e,-_0x5a3bd6._0x3605e9,-_0x5a3bd6._0x258b36)]);_0x242179[_0x4b1c67(-0x2b5,-_0x5a3bd6._0x3c28a1,-_0x5a3bd6._0x35d1a5,-_0x5a3bd6._0x3ef799)](_0x482549),await emitEvent(_0x448fda,{'type':_0x14e332(0x581,_0x5a3bd6._0x2e5de7,_0x5a3bd6._0x3dffa7,0x565),'toolCall':_0x38bccc,'chunk':_0x482549},_0x293ad2),throwIfAborted(_0x293ad2[_0x4b1c67(-0x222,-_0x5a3bd6._0x5cc139,-_0x5a3bd6._0x324484,-0x225)]),_0x6e039a=await _0x21de6e['next']();}throwIfAborted(_0x293ad2[_0x4b1c67(-_0x5a3bd6._0x5d5cf4,-0x20a,-0x1d0,-0x225)]);const _0x360be6=_0x6e039a[_0x14e332(0x55d,_0x5a3bd6._0x3c446e,0x556,0x53e)]===void 0x0?deriveFinalToolOutput(_0x242179):normalizeToolOutputValue(_0x6e039a[_0x14e332(0x514,0x51b,0x58a,_0x5a3bd6._0xe1dbd7)]),_0xdb2387=createSuccessToolResult(_0x38bccc,_0x360be6,_0x242179);return await emitEvent(_0x448fda,{'type':_0x4b1c67(-0x1ec,-_0x5a3bd6._0x30ed3f,-_0x5a3bd6._0x310610,-0x233),'toolCall':_0x38bccc,'result':_0xdb2387},_0x293ad2),_0xdb2387;}catch(_0x1b19d6){if(isAbortError(_0x1b19d6)){const _0x1306ff=createAbortedToolResult(_0x38bccc,_0x1b19d6,_0x242179);return await emitEvent(_0x448fda,{'type':'tool_completed','toolCall':_0x38bccc,'result':_0x1306ff},_0x293ad2),_0x1306ff;}const {errorMessage:_0x1d85eb,structured:_0x97011e}=normalizeExecutionError(_0x1b19d6),_0x2cae47=createErrorToolResult(_0x38bccc,_0x1d85eb,_0x97011e,_0x242179);return await emitEvent(_0x448fda,{'type':_0x14e332(_0x5a3bd6._0x455ae5,_0x5a3bd6._0x733bac,_0x5a3bd6._0x1a0634,0x538),'toolCall':_0x38bccc,'result':_0x2cae47},_0x293ad2),_0x2cae47;}finally{_0x25bf41();}}catch(_0x3b3cae){if(isAbortError(_0x3b3cae)){const _0x328cd6=createAbortedToolResult(_0x38bccc,_0x3b3cae);return await emitEvent(_0x448fda,{'type':'tool_completed','toolCall':_0x38bccc,'result':_0x328cd6},_0x293ad2),_0x328cd6;}const {errorMessage:_0x22da52,structured:_0x5e78e1}=normalizeExecutionError(_0x3b3cae),_0x2e20c1=createErrorToolResult(_0x38bccc,_0x22da52,_0x5e78e1);return await emitEvent(_0x448fda,{'type':'tool_completed','toolCall':_0x38bccc,'result':_0x2e20c1},_0x293ad2),_0x2e20c1;}}function createInternalToolRuntime(_0x1070af=[],_0x4cd08c={}){const _0x2f36b3={_0x45bc65:0x3a6,_0x3f7aab:0x34a,_0x1ab198:0x37c},_0x334ea1={_0x381470:0x248,_0x5c1207:0x256},_0x1166e1={_0x4d7d1f:0x1d5},_0x428dc1={_0x281a49:0x391},_0x47d8c3={_0x14424a:0xda},_0x4d6898={_0x1d88b4:0x8f};let _0x2933cd=new ToolRegistry(_0x1070af);return{'listToolSchemas'(){function _0x1e3ec1(_0x2dedc1,_0x5b6dea,_0x57e1c3,_0x412fa4){return _0x52ff(_0x5b6dea- -_0x4d6898._0x1d88b4,_0x2dedc1);}return _0x2933cd[_0x1e3ec1(0xc8,0x119,0x14d,_0x47d8c3._0x14424a)]();},'setTools'(_0x45bcab){_0x2933cd=new ToolRegistry(_0x45bcab);},async 'executeCalls'(_0xe43ed2,_0xa9a535){function _0x573daf(_0x13d68f,_0x20a486,_0x514128,_0x27c8e1){return _0x52ff(_0x27c8e1-_0x428dc1._0x281a49,_0x13d68f);}function _0x5ac2a6(_0x398f36,_0x3c2102,_0x126ae4,_0x4bf0a2){return _0x52ff(_0x398f36-_0x1166e1._0x4d7d1f,_0x3c2102);}return await Promise[_0x5ac2a6(_0x2f36b3._0x45bc65,0x380,0x387,_0x2f36b3._0x3f7aab)](_0xe43ed2[_0x5ac2a6(_0x2f36b3._0x1ab198,0x3ba,0x322,0x37c)](async _0x32a538=>{const _0x55492a={_0x56db95:0x19a,_0x20d0cf:0x2ac};function _0x3a64af(_0x18b588,_0x1dbee7,_0x3814e0,_0x202c71){return _0x573daf(_0x202c71,_0x1dbee7-_0x55492a._0x56db95,_0x3814e0-0x3b,_0x1dbee7- -_0x55492a._0x20d0cf);}return await executeToolCall(_0x2933cd,_0x32a538,_0xa9a535,_0x4cd08c['onToolCall'],_0x4cd08c[_0x3a64af(_0x334ea1._0x381470,0x259,_0x334ea1._0x5c1207,0x25f)]);}));},async 'execute'(_0x4a4404,_0x4eb351){const [_0x5c9be9]=await this['executeCalls']([_0x4a4404],_0x4eb351);return _0x5c9be9;}};}function getOrderedObserverExtensions(_0x3726fa,_0x3cfccd){const _0xe5593e={_0x3ff6cf:0x4a},_0x36d0a8={_0x2322a6:0x332,_0x411889:0xcd},_0x363b14={_0x58ab50:0x107,_0x2b46ec:0x1e7};function _0x1cbde9(_0x1b4411,_0x379a19,_0x4c2f02,_0x12b3d9){return _0x3de5c2(_0x379a19,_0x379a19-_0x363b14._0x58ab50,_0x1b4411- -0x80,_0x12b3d9-_0x363b14._0x2b46ec);}function _0x29f4cc(_0x4110e2,_0xe76d11,_0x26f7de,_0x2ef8b1){return _0x3de5c2(_0x26f7de,_0xe76d11-0xca,_0x2ef8b1- -_0x36d0a8._0x2322a6,_0x2ef8b1-_0x36d0a8._0x411889);}return _0x3726fa['filter'](_0x3e0934=>{const _0x290494={_0x4fa2c7:0xe9};function _0x114f11(_0x2730a0,_0x42ce42,_0x46cf71,_0x8144ce){return _0x52ff(_0x8144ce- -_0x290494._0x4fa2c7,_0x42ce42);}return _0x3e0934['enabled']!==![]&&_0x3e0934[_0x114f11(0x6e,_0xe5593e._0x3ff6cf,0xa9,0x91)]===_0x3cfccd&&_0x3e0934['kind']==='observer';})[_0x29f4cc(-0xe9,-0x78,-0x45,-0x95)]((_0x8c1329,_0x31f5de)=>_0x8c1329[_0x29f4cc(-0xa1,-0xc5,-0xa7,-0xfa)]-_0x31f5de[_0x1cbde9(0x1b8,0x19e,0x1fc,0x1f1)]);}function _0x38a5(){const _0xf30549=['C3vTBwfYEuLUzgv4','AxrLBuLK','Bw9KzwW','C29YDa','z2v0q29UDgv4DfDPBMrVD0XPBwL0','DhvYBL9JB21WBgv0zq','zgvSDge','C2v0u2vZC2LVBKLK','C2vZC2LVBKLK','BwvZC2fNzxm','mJu1mtzlzKXYvKS','Dg9VBf9Yzxn1Bhq','owvXu1fxrW','ywz0zxjuB29SuMvZDwX0','AxrLBxm','CMvNAxn0zxi','nZuZodKWAvDKs2DA','nde4ntK3m3rvENPtvW','Bwv0CMLJCW','zgvWCW','BwvZC2fNzq','oMfZC2LZDgfUDdO','DhvYBKLUzgv4','CMvHC29UAw5Nx21LC3nHz2u','Dg9VBf9VDxrWDxrFy2H1BMS','BM93','C3rHDgu','y2f0y2G','ywXS','ChjVDMLKzxjFCMv0CNK','yM9VBgvHBG','yxnRvxnLCG','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','yxjYyxK','Dgv4Da','Dg9VBf91C2vFzgvSDge','y29UDgvUDf9KzwX0yq','A2LUza','Dg9VBhm','C2XPy2u','nJfpseDuz2u','DhvYBKnVBxbSzxrLzef0','ywn0Aw9U','CNvU','CMvZB2X2zq','zgvZy3jPChrPB24','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','C2v0vg9VBhm','yMvMB3jLrMLUywXpDxrWDxq','y2HHDe1VzgvS','CMvQzwn0','B3v0Chv0rM9YBwf0','DgHPBMTPBMC','C3rYzwfTAw5N','oIbLEhbLy3rLzcbHCNjHEq','CMvHC29UAw5Nvg9Rzw5Z','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','Dg90ywXnB2rLBfrPBwvnCW','Dg9VBf91C2vFy2H1BMS','Dg9VBenHBgXdB3vUDa','B3v0Chv0','nJzmuuvoEwi','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','CMvZzxrnzxnZywDLCW','ywz0zxjnB2rLBfjLC3bVBNnL','BMv4Da','ntbcDe9oCuu','C2v0q2HHDe1VzgvS','C29Tzq','DhLWzq','CMfUzg9T','zw5HyMXLza','B25uB29Sq2fSBa','y2f1C2u','CNvUt2jZzxj2zxjZ','C2v0u3LZDgvTuhjVBxb0','vg9VBev4zwn1DgLVBKvYCM9Y','Aw5KzxG','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','yxnZAxn0yw50twvZC2fNzuLK','zg9Uzq','Dg90ywXpDxrWDxruB2TLBNm','CMvXDwvZDenVDw50','B2jQzwn0','yxnZAxn0yw50x2nODw5R','mtK5mdyZnxrZr2jLEG','B3jKzxi','Dw5RBM93BL90B29S','CMvHC29UAw5NtwvZC2fNzuLK','y29UDgvUDeLUzgv4','Aw5WDxrty2HLBwe','Bwf4vg9Rzw5Z','zgvMyxvSDe1LC3nHz2u','Aw5WDxq','zMLUywXFBwvZC2fNzq','DhvYBKLK','Aw5WDxrezwX0yq','Dg9tDhjPBMC','Dg9VBhncEu5HBwu','Aw5WDxruB2TLBNm','Dg9VBf9YzwPLy3rLza','BgLZDa','z2v0vg9VBhm','oIbLEhbLy3rLzcbZDhjPBMC','BgvUz3rO','C2v0','ywjVCNq','zMLSDgvY','Bwv0yq','Dg9VBfjLC3vSDhm','C3LZDgvTuhjVBxb0','Dg9VBf9JywXS','vw5RBM93BIb0B29SoIa','C2v0vg9WAwm','zNvUy3rPB24','DhjPBq','DxnLCG','nJq4mJGZmLfMwvvOyW','DhvYBI0','B25fDMvUDa','C3rHDhvZ','CMvXDwvZDa','zxH0zw5ZAw9UCW','C3rYzwfT','ChvZAa','C3rHz2u','Bw9KzwXFCMvZCg9UC2u','ChjVCgvYDgLLCW','ndiZmZK1z2fuze10','CMvHC29U','DxnLCL9TzxnZywDL','Dg9VBf91C2u','CMvHC29UAw5Nu3rHCNrLzef0','C3LZDgvT','zxHLy3v0zunHBgXZ','BMfTzq','Dg9VBf91C2vFBwvZC2fNzq','ywjVCNrLza','yMvMB3jLvg9VBev4zwn1DgLVBG','CMvHC29UAw5Nx2nODw5R','DMfSDwvZ','CMv0DxjU','B25vC2vYtwvZC2fNzq','Dg9VBfj1BNrPBwu','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','CMvJB3jKrxzLBNq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','zw50CMLLCW','CMvHC29UAw5Nq29TCgXLDgvKqxq','ChjVDMLKzxi','x3n5C3rLBvbYB21WDa','B3v0Chv0sw5KzxG','Dg90ywXuB2TLBNm','zxHLy3v0zq','z2v0','mJq5ChDyCxrH','B3v0Chv0vg9Rzw5Z','C3rYDwn0DxjLza','Dg90ywXszwfZB25PBMDuB2TLBNm','BgfZDfjLC3bVBNnL','oNjLyxnVBMLUzW','y29UDgv4DfDPBMrVD0XPBwL0','CMvXDwLYzwq','Dg9VBf9JB21WBgv0zwq','Dg9VBf9ZDgfYDgvK','CMvNAxn0CNK','zxjYB3i','Dg90ywXjBNb1DfrVA2vUCW','sw52ywXPzcb0B29SigLUChv0igf0ia','DMfSDwu','BwfW','BgLZDfrVB2Xty2HLBwfZ','C3rYAw5N','oIbLEhbLy3rLzcbIB29SzwfU','CMfJzq','DxnHz2u','CMvZCg9UC2u','C2LNBMfS','y29UDgvUDa','AxnbCNjHEq','Bw9KzwXFCMvXDwvZDa','y29TCgXLDgvK','C2vZC2LVBKrPCG','C3rYAw5NAwz5'];_0x38a5=function(){return _0xf30549;};return _0x38a5();}function getOrderedTransformerExtensions(_0x16b713,_0x1e5345){const _0x353393={_0x432cbd:0x53,_0x1de3b1:0x4,_0x50755f:0x2d,_0x3167a0:0x535,_0x42ffd9:0x55f,_0x50da9d:0x5c4},_0x1e823f={_0x122e25:0x29a,_0x14132e:0x25e,_0x4087d0:0x2a0,_0x5c02a3:0x67,_0x1cf0dc:0x5e,_0x6b1b5:0xa8,_0x9768ea:0xa2,_0xc15044:0x42},_0xdd4658={_0x5d9f7a:0x288},_0x5803d5={_0x1be606:0x1b4,_0x5aa154:0x16c,_0x336895:0x86},_0x5f3522={_0x41d734:0x73,_0x2a3396:0x1c8};function _0x472309(_0x2f4a76,_0x4807ce,_0x571f86,_0x3be512){return _0x3de5c2(_0x571f86,_0x4807ce-_0x5f3522._0x41d734,_0x2f4a76- -0x253,_0x3be512-_0x5f3522._0x2a3396);}function _0x475484(_0x4495ba,_0x56c5e0,_0x411fd6,_0x4d45df){return _0x186b58(_0x4495ba-_0x5803d5._0x1be606,_0x56c5e0-_0x5803d5._0x5aa154,_0x56c5e0,_0x411fd6-_0x5803d5._0x336895);}return _0x16b713[_0x472309(-0x6,_0x353393._0x432cbd,_0x353393._0x1de3b1,-_0x353393._0x50755f)](_0x29590b=>{const _0x1a1bf6={_0xda54ee:0x106,_0x2c2fc1:0x64};function _0xd7739d(_0x2b753b,_0x457372,_0xbce0fc,_0x5114a1){return _0x472309(_0x5114a1- -0xae,_0x457372-_0x1a1bf6._0xda54ee,_0x457372,_0x5114a1-_0x1a1bf6._0x2c2fc1);}function _0x51b0a5(_0x4127fd,_0x3fcb14,_0x407f28,_0x316e3d){return _0x472309(_0x3fcb14-_0xdd4658._0x5d9f7a,_0x3fcb14-0x16e,_0x316e3d,_0x316e3d-0xfa);}return _0x29590b[_0x51b0a5(_0x1e823f._0x122e25,_0x1e823f._0x14132e,0x25a,_0x1e823f._0x4087d0)]!==![]&&_0x29590b[_0xd7739d(-_0x1e823f._0x5c02a3,-_0x1e823f._0x1cf0dc,-_0x1e823f._0x6b1b5,-_0x1e823f._0x9768ea)]===_0x1e5345&&_0x29590b[_0xd7739d(-0x75,-0x86,-0x98,-_0x1e823f._0xc15044)]==='transformer';})[_0x475484(_0x353393._0x3167a0,_0x353393._0x42ffd9,0x582,_0x353393._0x50da9d)]((_0x52903d,_0x40054e)=>_0x52903d[_0x472309(-0x1b,-0x56,0x3f,-0xf)]-_0x40054e['order']);}function createExtensionRegistry(){const _0x38b408={_0x10c819:0x74,_0x2af361:0xe8,_0x1447db:0xc1},_0x5a40bd={_0x2f9acc:0x145,_0x54f277:0x134,_0x293a25:0x141},_0x29dd33=[];return{'register'(_0x57b17f){function _0x4b1220(_0x1dc16d,_0x39a205,_0x503759,_0x9dd77c){return _0x52ff(_0x39a205- -0x2ad,_0x1dc16d);}_0x29dd33[_0x4b1220(-_0x5a40bd._0x2f9acc,-_0x5a40bd._0x54f277,-_0x5a40bd._0x293a25,-0x13f)](_0x57b17f);},async 'runTransformers'(_0x5e78c1,_0x52956b,_0x346d3f){function _0x396581(_0x47116e,_0x1a89b4,_0x56314d,_0x48bb7d){return _0x52ff(_0x48bb7d- -0x11f,_0x56314d);}let _0x13550b=_0x52956b;for(const _0x2c2c7e of getOrderedTransformerExtensions(_0x29dd33,_0x5e78c1)){_0x13550b=await _0x2c2c7e[_0x396581(_0x38b408._0x10c819,_0x38b408._0x2af361,0xbf,_0x38b408._0x1447db)](_0x13550b,_0x346d3f);}return _0x13550b;},async 'runObservers'(_0x18f7ff,_0x4f1d9c,_0x206719){function _0x327bc3(_0x316bde,_0x33059c,_0x15c7b0,_0xd78396){return _0x52ff(_0x15c7b0-0x378,_0x33059c);}for(const _0x4f7349 of getOrderedObserverExtensions(_0x29dd33,_0x18f7ff)){await _0x4f7349[_0x327bc3(0x587,0x59c,0x558,0x57c)](_0x4f1d9c,_0x206719);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function _0x186b58(_0x4cba6d,_0x1eb825,_0x172ad2,_0x3c6fa6){return _0x52ff(_0x3c6fa6-0x344,_0x172ad2);}function createAgentMetrics(_0x3cd75e={}){const _0x1202a9={_0x590225:0x46e,_0x55764f:0xac,_0x5c0b27:0x547,_0x2f0ba3:0x528,_0x199784:0x494,_0x51890c:0x4f0,_0x4ca3ee:0x512,_0x5dca92:0x4dd,_0x58a5b0:0x4f5,_0xd0918d:0x93,_0x461b09:0x65,_0x12498c:0x32,_0x881ef7:0x77,_0x2f9f1a:0x2f,_0x4c94fc:0xba,_0x3b8d99:0x574,_0x303a70:0x526,_0x1f4f46:0x5b8,_0x33615f:0x53f,_0x1afc63:0x51f,_0x5d761c:0x71,_0xc8f7c3:0x9d,_0x1d3e83:0x4ec,_0x208570:0x521,_0x41599d:0x7e,_0x5c1512:0xbb,_0xb4168:0x46f,_0x24f759:0x4e5,_0x3a294c:0x51b,_0x438890:0x530,_0x1a098d:0x515,_0x530435:0x544,_0x36e9ae:0x4d6,_0x14659d:0x4cc,_0x3f2cb4:0x4c6,_0x4cbd64:0x518,_0x207f13:0x53e,_0x318875:0x4e6,_0xa7f247:0x5af,_0x384a07:0x5bb,_0xafee57:0x5a7,_0x205a99:0x56a,_0xe6e8b4:0x39,_0x3d5cf5:0x41,_0x5aa131:0x3,_0x4b0e36:0x1e};let _0x4dd18a=createEmptySnapshot();const _0x40dae8=new Set();let _0xc8dc6b;const _0x4eaed2=()=>{const _0x198837={..._0x4dd18a};for(const _0x9c57bc of _0x40dae8)_0x9c57bc(_0x198837);};return{'getSnapshot'(){return{..._0x4dd18a};},'recordEvent'(_0x16dca1){const _0x3bc5b1={_0xabe079:0x37a},_0x58aa25={_0x1b4568:0x131};function _0x3d7d42(_0x30030d,_0x5ab439,_0x122ec9,_0x5b9750){return _0x52ff(_0x5b9750- -_0x58aa25._0x1b4568,_0x5ab439);}if(_0x16dca1[_0x47a464(0x47f,0x49b,_0x1202a9._0x590225,0x4bc)]===_0x3d7d42(_0x1202a9._0x55764f,0xd9,0x53,0x80)){_0xc8dc6b=Date['now']();const _0x2e1ec5=_0x3cd75e[_0x47a464(_0x1202a9._0x5c0b27,_0x1202a9._0x2f0ba3,0x52a,0x533)]?.(_0x16dca1[_0x47a464(0x4ac,_0x1202a9._0x199784,0x4e8,_0x1202a9._0x51890c)]);_0x2e1ec5!==void 0x0&&(_0x4dd18a={..._0x4dd18a,'contextWindowLimit':_0x2e1ec5},_0x4eaed2());return;}function _0x47a464(_0x28c98d,_0xbd20bf,_0x290843,_0x29515c){return _0x52ff(_0x29515c-_0x3bc5b1._0xabe079,_0x290843);}if(_0x16dca1[_0x47a464(_0x1202a9._0x4ca3ee,0x488,_0x1202a9._0x5dca92,0x4bc)]===_0x47a464(0x4e6,0x534,0x4cf,_0x1202a9._0x58a5b0)){const _0x355135=_0x16dca1[_0x3d7d42(_0x1202a9._0xd0918d,_0x1202a9._0x461b09,_0x1202a9._0x12498c,0x7c)]['usage'][_0x3d7d42(-0x22,_0x1202a9._0x881ef7,0x6b,_0x1202a9._0x2f9f1a)],_0x1d515e=_0x16dca1['response'][_0x3d7d42(0xba,0xc9,_0x1202a9._0x4c94fc,0x7b)][_0x47a464(0x4ca,0x55f,0x513,0x513)],_0x1d11c8=_0x16dca1['response'][_0x47a464(_0x1202a9._0x3b8d99,0x55c,0x534,_0x1202a9._0x303a70)][_0x47a464(_0x1202a9._0x1f4f46,_0x1202a9._0x33615f,_0x1202a9._0x1afc63,0x566)]??0x0,_0x5be13a=_0x355135+_0x1d515e,_0x580100=_0xc8dc6b===void 0x0?0x0:Date[_0x3d7d42(0xb9,_0x1202a9._0x5d761c,0xe7,_0x1202a9._0xc8f7c3)]()-_0xc8dc6b;_0xc8dc6b=void 0x0,_0x4dd18a={..._0x4dd18a,'totalTokens':_0x4dd18a[_0x47a464(0x55d,_0x1202a9._0x1d3e83,_0x1202a9._0x208570,0x50f)]+_0x5be13a,'totalInputTokens':_0x4dd18a[_0x3d7d42(0xcf,_0x1202a9._0x41599d,_0x1202a9._0x5c1512,0x73)]+_0x355135,'totalOutputTokens':_0x4dd18a[_0x47a464(_0x1202a9._0xb4168,_0x1202a9._0x24f759,_0x1202a9._0x3a294c,0x4c8)]+_0x1d515e,'totalReasoningTokens':_0x4dd18a[_0x47a464(_0x1202a9._0x438890,0x517,0x521,_0x1202a9._0x1a098d)]+_0x1d11c8,'modelCallCount':_0x4dd18a['modelCallCount']+0x1,'totalModelTimeMs':_0x4dd18a[_0x47a464(0x5ac,_0x1202a9._0x530435,0x523,0x568)]+_0x580100,'currentTokens':_0x5be13a,'currentInputTokens':_0x355135,'currentOutputTokens':_0x1d515e,'currentReasoningTokens':_0x1d11c8,'currentModelTimeMs':_0x580100,..._0x4dd18a[_0x47a464(0x4c4,0x4d2,_0x1202a9._0x36e9ae,0x518)]&&_0x5be13a>0x0?{'contextWindowUsage':_0x5be13a/_0x4dd18a[_0x47a464(_0x1202a9._0x14659d,0x4ea,_0x1202a9._0x3f2cb4,_0x1202a9._0x4cbd64)]}:{}},_0x4eaed2();return;}if(_0x16dca1['type']===_0x47a464(0x4b5,_0x1202a9._0x207f13,0x523,_0x1202a9._0x318875)){_0x4dd18a={..._0x4dd18a,'toolCallCount':_0x4dd18a[_0x47a464(_0x1202a9._0xa7f247,_0x1202a9._0x384a07,_0x1202a9._0xafee57,_0x1202a9._0x205a99)]+0x1},_0x4eaed2();return;}_0x16dca1['type']===_0x3d7d42(_0x1202a9._0xe6e8b4,_0x1202a9._0x3d5cf5,0x83,0x89)&&(_0x4dd18a={..._0x4dd18a,'requestCount':_0x4dd18a[_0x3d7d42(_0x1202a9._0x5aa131,0xe,0x1e,_0x1202a9._0x4b0e36)]+0x1},_0x4eaed2());},'reset'(){_0x4dd18a=createEmptySnapshot(),_0xc8dc6b=void 0x0,_0x4eaed2();},'subscribe'(_0x3750bd){return _0x40dae8['add'](_0x3750bd),()=>{_0x40dae8['delete'](_0x3750bd);};}};}function makeExtensionContext(_0x572a49){return{'state':_0x572a49};}async function runStage(_0x20c8b0,_0x5d2a6a,_0x5f2abb,_0x247709){const _0x5a8a58={_0x29d083:0x3a4,_0xdfe56f:0x31b,_0xa89b06:0x35a},_0x300ade={_0x51bf5d:0xcc,_0xac0846:0x136},_0x41558c=await _0x20c8b0['runTransformers'](_0x5d2a6a,_0x5f2abb,_0x247709);function _0x1a450c(_0x2016ad,_0x429a08,_0x1ad1f0,_0x559e2a){return _0x3de5c2(_0x559e2a,_0x429a08-_0x300ade._0x51bf5d,_0x2016ad-_0x300ade._0xac0846,_0x559e2a-0x25);}return await _0x20c8b0[_0x1a450c(0x362,_0x5a8a58._0x29d083,_0x5a8a58._0xdfe56f,_0x5a8a58._0xa89b06)](_0x5d2a6a,_0x41558c,_0x247709),_0x41558c;}async function emitEvent2(_0x86bab1,_0xb1276e,_0x210085){await _0x86bab1?.(_0xb1276e,_0x210085);}function replaceToolUseBlocks(_0x493291,_0x58ad42){const _0x1adbe3={_0x5726be:0x12c,_0x32c852:0xd6,_0x2268f6:0x14f,_0x22747b:0x2be,_0x151b51:0x32d,_0x5bb97b:0x2ed},_0x3f0f71={_0xd0245e:0xa2,_0xdad8c9:0x11b,_0x28e8b7:0x11d,_0x33cda2:0x169},_0x5e65f5={_0x2c6500:0x97},_0x21c179={_0x39eb99:0x40};function _0x2024f4(_0x58ab22,_0x300435,_0x5e7472,_0x19e406){return _0x3de5c2(_0x58ab22,_0x300435-0xcd,_0x19e406-0x61,_0x19e406-0x16c);}let _0x1638a5=0x0;function _0xd2ad63(_0xf93903,_0x428f3a,_0x13829c,_0x23d1dd){return _0x186b58(_0xf93903-0x32,_0x428f3a-_0x21c179._0x39eb99,_0x23d1dd,_0x428f3a- -0x3c7);}return{..._0x493291,'content':_0x493291[_0xd2ad63(0x12d,_0x1adbe3._0x5726be,_0x1adbe3._0x32c852,_0x1adbe3._0x2268f6)][_0x2024f4(_0x1adbe3._0x22747b,_0x1adbe3._0x151b51,0x332,_0x1adbe3._0x5bb97b)](_0x11300c=>{const _0x1320d8={_0x5920c8:0x79};function _0x5f0c86(_0xd12aef,_0x5c8e91,_0x5bf548,_0x2bd5ef){return _0xd2ad63(_0xd12aef-_0x1320d8._0x5920c8,_0x5c8e91-0x20,_0x5bf548-0x115,_0x2bd5ef);}if(_0x11300c[_0x5f0c86(0x134,0xdf,_0x3f0f71._0xd0245e,_0x3f0f71._0xdad8c9)]!==_0x5f0c86(0xfb,_0x3f0f71._0x28e8b7,0xd7,_0x3f0f71._0x33cda2))return _0x11300c;function _0x5e8b1a(_0x5d8900,_0x5d0438,_0x12fb52,_0x3f739c){return _0xd2ad63(_0x5d8900-_0x5e65f5._0x2c6500,_0x12fb52- -0x1d5,_0x12fb52-0x184,_0x5d8900);}const _0x4965b2=_0x58ad42[_0x1638a5];return _0x1638a5+=0x1,structuredClone(_0x4965b2);})};}function createAssistantMessageId(_0x11aa2d,_0x590d59){const _0x14c973={_0x3369ba:0x59b,_0x15c7d9:0x5d3},_0x5648d1={_0x285feb:0x132,_0x4e7b12:0x2d5};function _0x508c81(_0x4352ad,_0x1e4999,_0x5658fa,_0x4dabe7){return _0x3de5c2(_0x5658fa,_0x1e4999-_0x5648d1._0x285feb,_0x4352ad-_0x5648d1._0x4e7b12,_0x4dabe7-0xb6);}return _0x11aa2d+_0x508c81(0x584,0x5be,_0x14c973._0x3369ba,_0x14c973._0x15c7d9)+_0x590d59;}function createReasoningMessageId(_0x531c76){const _0x1eb44f={_0x3f78b3:0x345,_0x30ca06:0x34b,_0x2694ba:0x31e},_0x2b6284={_0x5d7235:0xc9};function _0xe4fb28(_0x2558d0,_0x814926,_0x35b7e5,_0x1ce17c){return _0x3de5c2(_0x2558d0,_0x814926-0xdb,_0x814926-_0x2b6284._0x5d7235,_0x1ce17c-0x170);}return _0x531c76+_0xe4fb28(_0x1eb44f._0x3f78b3,_0x1eb44f._0x30ca06,_0x1eb44f._0x2694ba,0x398);}function withMessageId(_0x5c84f8,_0x34b752){if(_0x5c84f8['id']===_0x34b752)return _0x5c84f8;return{..._0x5c84f8,'id':_0x34b752};}function createAssistantChunkEvent(_0x19de0c,_0x1524ac){const _0x3e79fd={_0x2bd866:0x101,_0x12a999:0x121,_0x2942ab:0x115,_0x45ee08:0xfb,_0x491307:0x106,_0x2bb47b:0x221,_0x1bc3fe:0x239,_0xd7a91b:0x1ff,_0x467395:0x2b1,_0x7fd705:0x282,_0x38752d:0x26c,_0x5df8ee:0x235,_0xcf611d:0x1cc},_0x22d7be={_0x4b0f30:0xb3},_0x2d06f2={_0x4d6ac7:0x10f,_0x3fbd6c:0x59b};if(_0x19de0c[_0x3d2e10(-_0x3e79fd._0x2bd866,-_0x3e79fd._0x12a999,-_0x3e79fd._0x2942ab,-0xd1)]!=='content_delta')return void 0x0;if(_0x19de0c['text']===void 0x0)return void 0x0;function _0x3d2e10(_0x45a1a8,_0x39ba43,_0x4aaa40,_0x49a716){return _0x186b58(_0x45a1a8-_0x2d06f2._0x4d6ac7,_0x39ba43-0x1d6,_0x45a1a8,_0x4aaa40- -_0x2d06f2._0x3fbd6c);}function _0x2d287b(_0x410b91,_0x4bf27e,_0x5b2cf1,_0x30d2a7){return _0x3de5c2(_0x5b2cf1,_0x4bf27e-_0x22d7be._0x4b0f30,_0x30d2a7- -0x49b,_0x30d2a7-0xc);}return{'type':_0x3d2e10(-0x142,-_0x3e79fd._0x45ee08,-_0x3e79fd._0x491307,-0xf1),'index':_0x19de0c[_0x2d287b(-_0x3e79fd._0x2bb47b,-0x29e,-0x27c,-0x26c)]??0x0,'messageId':_0x1524ac,'chunk':{'type':_0x2d287b(-_0x3e79fd._0x1bc3fe,-0x1de,-_0x3e79fd._0xd7a91b,-0x1dd),'index':_0x19de0c[_0x2d287b(-_0x3e79fd._0x467395,-_0x3e79fd._0x7fd705,-0x27c,-_0x3e79fd._0x38752d)]??0x0,'text':_0x19de0c[_0x2d287b(-0x21b,-_0x3e79fd._0x5df8ee,-_0x3e79fd._0xcf611d,-0x1df)]}};}function createToolUseChunkEvent(_0x147b65,_0x1cf03b){const _0x237753={_0x2335aa:0x330,_0xb0d740:0x341,_0xb89516:0x172,_0x32be12:0x126,_0x4657a3:0x438,_0x1e2368:0x3ee,_0x48765f:0x3a4,_0x2495bc:0x384,_0x2c65ac:0x3d7,_0x1b324b:0x16a,_0x298d94:0x162,_0x218d46:0x1cd,_0x12c6da:0x1c6,_0x24aeee:0x33f,_0x30e02d:0x32e,_0x56b536:0x367,_0x34ea54:0x308},_0x15763e={_0x38c399:0x178,_0x72f257:0x3e3,_0x552adc:0x84};function _0x384fa2(_0x2724b6,_0x5a43ea,_0x351b24,_0x3083eb){return _0x3de5c2(_0x3083eb,_0x5a43ea-_0x15763e._0x38c399,_0x351b24- -_0x15763e._0x72f257,_0x3083eb-_0x15763e._0x552adc);}function _0x4b389f(_0x3e6e89,_0x4f95ad,_0x4a59ae,_0x12e930){return _0x186b58(_0x3e6e89-0x1a3,_0x4f95ad-0x5,_0x4f95ad,_0x4a59ae- -0x145);}if(_0x147b65[_0x4b389f(_0x237753._0x2335aa,0x385,_0x237753._0xb0d740,0x347)]!==_0x384fa2(-_0x237753._0xb89516,-0x181,-_0x237753._0x32be12,-0xec))return void 0x0;return{'type':_0x4b389f(0x3e5,_0x237753._0x4657a3,_0x237753._0x1e2368,0x430),'index':_0x147b65[_0x4b389f(0x37a,0x2fa,0x349,_0x237753._0x48765f)]??0x0,'messageId':_0x1cf03b,'chunk':{'type':_0x4b389f(0x3f0,_0x237753._0x2495bc,_0x237753._0x2c65ac,0x3b2),'id':_0x147b65['id']??'','index':_0x147b65[_0x384fa2(-0x1c3,-_0x237753._0x1b324b,-0x1b4,-_0x237753._0x298d94)]??0x0,..._0x147b65[_0x384fa2(-_0x237753._0x218d46,-_0x237753._0x12c6da,-0x17a,-0x165)]!==void 0x0?{'name':_0x147b65['name']}:{},..._0x147b65[_0x4b389f(_0x237753._0x24aeee,_0x237753._0x48765f,0x35c,_0x237753._0x30e02d)]!==void 0x0?{'inputDelta':_0x147b65[_0x4b389f(_0x237753._0x56b536,_0x237753._0x34ea54,0x35c,0x348)]}:{}}};}function createReasoningChunkEvent(_0x93c6ee,_0x1419e9){const _0x46ab14={_0xa16e5a:0x5c,_0x399b84:0x51,_0x5173ba:0x3a5,_0x50e6a6:0x60,_0x25f028:0x4c,_0x1c89d5:0x3f8,_0x36bc86:0x405,_0x5dedb0:0x401,_0x39e568:0xeb,_0x5840ef:0x3b8,_0x168d5f:0x388,_0x1fe1c8:0x326,_0x5123a5:0x34a,_0x1e1ff2:0x2e0,_0x3e1f6b:0x318,_0x17178e:0x13e,_0x3ea24d:0x8b,_0x18ddb7:0x58,_0x29ee1c:0x328,_0xadffac:0xad,_0x2a6309:0xc5,_0x2673ce:0x96,_0x49e2a4:0x331,_0x10ef38:0x36b,_0x1cfffa:0x38c,_0xda05f8:0x396,_0x16b8c2:0x5a,_0x53e24a:0x97,_0x45f1b8:0x9e,_0x31b6b6:0x385,_0x34e1d2:0x3c9,_0x3d623e:0x377,_0x1cfd8c:0xa5,_0xc2e419:0xbd},_0x46bcc8={_0x168562:0x9c},_0x443de4={_0x6b73ee:0x1e7,_0x41c253:0x1e3};function _0x55d6ad(_0x33e857,_0x163e2f,_0x12c24c,_0x98c3a1){return _0x3de5c2(_0x12c24c,_0x163e2f-_0x443de4._0x6b73ee,_0x98c3a1- -_0x443de4._0x41c253,_0x98c3a1-0x9b);}function _0x19308f(_0x390371,_0x10d40f,_0x4c1677,_0x50e484){return _0x186b58(_0x390371-_0x46bcc8._0x168562,_0x10d40f-0xf,_0x390371,_0x4c1677- -0x182);}switch(_0x93c6ee[_0x55d6ad(_0x46ab14._0xa16e5a,_0x46ab14._0x399b84,0x4,0x44)]){case _0x19308f(0x38f,0x3ec,_0x46ab14._0x5173ba,0x392):return{'type':_0x19308f(0x39c,0x311,0x34a,0x39a),'index':_0x93c6ee['index'],'messageId':_0x1419e9,'chunk':{'type':_0x19308f(0x36f,0x372,0x3a5,0x368),'index':_0x93c6ee[_0x55d6ad(0x34,_0x46ab14._0x50e6a6,0x5d,_0x46ab14._0x25f028)]??0x0,'thinking':_0x93c6ee[_0x19308f(_0x46ab14._0x1c89d5,_0x46ab14._0x36bc86,0x3ab,_0x46ab14._0x5dedb0)]??''},'text':_0x93c6ee[_0x55d6ad(0x136,0xbc,0xce,_0x46ab14._0x39e568)]??''};case _0x19308f(_0x46ab14._0x5840ef,0x3cc,0x3af,_0x46ab14._0x168d5f):return{'type':_0x19308f(_0x46ab14._0x1fe1c8,0x34e,_0x46ab14._0x5123a5,0x373),'index':_0x93c6ee[_0x19308f(_0x46ab14._0x1e1ff2,0x2cc,_0x46ab14._0x3e1f6b,0x36c)],'messageId':_0x1419e9,'chunk':{'type':_0x55d6ad(0x111,0xe2,_0x46ab14._0x17178e,0xef),'contentIndex':_0x93c6ee[_0x55d6ad(0xad,0x4e,_0x46ab14._0x3ea24d,_0x46ab14._0x18ddb7)]??0x0,'delta':_0x93c6ee['delta']??'','itemId':_0x93c6ee[_0x19308f(_0x46ab14._0x29ee1c,0x38d,0x378,0x326)]??'','outputIndex':_0x93c6ee[_0x55d6ad(0xe0,_0x46ab14._0xadffac,_0x46ab14._0x2a6309,_0x46ab14._0x2673ce)]??0x0},'text':_0x93c6ee['delta']??''};case _0x19308f(0x34d,_0x46ab14._0x49e2a4,0x34f,_0x46ab14._0x10ef38):return{'type':'reasoning_chunk','index':_0x93c6ee['summaryIndex'],'messageId':_0x1419e9,'chunk':{'type':_0x19308f(_0x46ab14._0x1cfffa,_0x46ab14._0xda05f8,0x34f,0x36f),'delta':_0x93c6ee['delta']??'','itemId':_0x93c6ee['itemId']??'','outputIndex':_0x93c6ee[_0x55d6ad(_0x46ab14._0x16b8c2,_0x46ab14._0x53e24a,_0x46ab14._0x45f1b8,_0x46ab14._0x2673ce)]??0x0,'summaryIndex':_0x93c6ee[_0x19308f(_0x46ab14._0x31b6b6,_0x46ab14._0x34e1d2,_0x46ab14._0x3d623e,0x36f)]??0x0},'text':_0x93c6ee[_0x55d6ad(_0x46ab14._0x1cfd8c,0x82,0x88,_0x46ab14._0xc2e419)]??''};default:return void 0x0;}}function _0x3de5c2(_0x1b451a,_0xd4f00,_0x106da1,_0x20c9dd){return _0x52ff(_0x106da1-0xe5,_0x1b451a);}function isAbortedToolResult(_0x49494e){const _0x5403b2={_0x2af865:0x19c,_0x5c2f74:0x147,_0x5cb151:0x1ec,_0x1647b2:0x259,_0x512f25:0x219},_0x269603={_0x5c8bfa:0x3,_0xf237eb:0x285};function _0x3f57cb(_0x56c1b7,_0x57d1a6,_0x4d1b06,_0x5ae6c1){return _0x3de5c2(_0x57d1a6,_0x57d1a6-0x2c,_0x56c1b7- -0xbe,_0x5ae6c1-0x5d);}function _0x40d351(_0x444cc0,_0x5cba78,_0xf803dd,_0x166481){return _0x186b58(_0x444cc0-0x143,_0x5cba78-_0x269603._0x5c8bfa,_0x444cc0,_0xf803dd- -_0x269603._0xf237eb);}return _0x49494e[_0x3f57cb(_0x5403b2._0x2af865,0x1bc,_0x5403b2._0x5c2f74,_0x5403b2._0x5cb151)]===_0x40d351(0x298,0x28d,0x262,0x25d)&&_0x49494e[_0x40d351(0x29b,0x289,_0x5403b2._0x1647b2,_0x5403b2._0x512f25)]['aborted']===!![];}async function executeModelRequest(_0xcc82ac,_0x5f4bf9,_0x1da2c2,_0x13f22c,_0x500ffd,_0x39490c){const _0x13ee9c={_0x5ac23e:0x328,_0x21771d:0x3bc,_0x4eb272:0x394,_0x2945ca:0x3a8,_0x3579d8:0x3d1,_0x2de43e:0x247,_0x430c7a:0x23e,_0x4f17cc:0x3c3,_0x2cc9b4:0x36c,_0x3cf15b:0x3aa,_0xbdcb9c:0x223,_0x136a13:0x273,_0x817cab:0x347,_0x3d72ae:0x32a,_0x23bec8:0x226,_0xa140ad:0x24c,_0x409d39:0x35f,_0x4b5eb3:0x33f,_0x5d6595:0x34f,_0x35fa85:0x320,_0x2ca0f9:0x205,_0x5de09b:0x25d,_0x5ecb69:0x1ba,_0x34d94a:0x1a7,_0x492ba4:0x1d5,_0x466d83:0x202,_0x1581e3:0x241,_0x4d9e17:0x260,_0x17d813:0x273,_0x41b7e6:0x398,_0x354a3d:0x38d,_0x4e094f:0x368,_0x33726c:0x395,_0x52ddd6:0x3ec,_0x5b7f7c:0x2a8,_0x414afc:0x276,_0x4ec9ca:0x2f8,_0x13bc62:0x375,_0x4dedbe:0x366,_0x4b561a:0x2ed,_0x496531:0x378,_0x4d8220:0x309,_0x16e393:0x327,_0x25d368:0x2b9,_0x57507c:0x29d,_0x4dcb16:0x234,_0x966caf:0x1f7,_0x43ec0e:0x24c,_0x3e30c5:0x214,_0xcc2ad3:0x234,_0x25b4d7:0x334,_0x176a47:0x37e,_0x20b9b2:0x280,_0x5e0fc0:0x224,_0x52a3a7:0x260,_0x706c5c:0x232,_0x5c043c:0x216,_0x478bb1:0x390,_0x32611d:0x396,_0x5ddfb4:0x332,_0xd2a603:0x337,_0x124abf:0x30a,_0x141704:0x253,_0x12ea72:0x278},_0x16ff21={_0x1ac474:0x49a,_0x31bc44:0x1ca};throwIfAborted(_0x5f4bf9[_0x34c5d3(_0x13ee9c._0x5ac23e,0x385,0x36c,_0x13ee9c._0x21771d)]);if(!_0x5f4bf9[_0x34c5d3(0x3f6,_0x13ee9c._0x4eb272,_0x13ee9c._0x2945ca,_0x13ee9c._0x3579d8)]||!_0x1da2c2[_0x4873f9(-_0x13ee9c._0x2de43e,-_0x13ee9c._0x430c7a,-0x22a,-0x23d)])return await _0x1da2c2['complete'](_0xcc82ac,{'signal':_0x5f4bf9[_0x34c5d3(_0x13ee9c._0x4f17cc,0x38e,_0x13ee9c._0x2cc9b4,_0x13ee9c._0x3cf15b)]});let _0x49e48a;function _0x34c5d3(_0x176ef8,_0x5d8056,_0x442e74,_0x41903e){return _0x3de5c2(_0x5d8056,_0x5d8056-0x14c,_0x442e74-0xd9,_0x41903e-0x19b);}for await(const _0x186c69 of _0x1da2c2['stream'](_0xcc82ac,{'signal':_0x5f4bf9['signal']})){throwIfAborted(_0x5f4bf9['signal']);if(_0x186c69[_0x4873f9(-0x2cb,-_0x13ee9c._0xbdcb9c,-0x2b5,-_0x13ee9c._0x136a13)]===_0x34c5d3(_0x13ee9c._0x817cab,0x2f0,0x30b,_0x13ee9c._0x3d72ae)){_0x39490c[_0x4873f9(-0x244,-0x24a,-_0x13ee9c._0x23bec8,-_0x13ee9c._0xa140ad)][_0x34c5d3(_0x13ee9c._0x409d39,_0x13ee9c._0x3d72ae,_0x13ee9c._0x4b5eb3,0x368)]!==void 0x0&&_0x39490c['meta'][_0x34c5d3(0x3a6,0x34c,_0x13ee9c._0x5d6595,0x35c)]===void 0x0&&(_0x39490c['meta'][_0x34c5d3(0x391,_0x13ee9c._0x35fa85,0x34f,0x345)]=Date['now']());_0x49e48a=_0x186c69[_0x4873f9(-_0x13ee9c._0x2ca0f9,-_0x13ee9c._0x5de09b,-0x262,-0x208)];continue;}if(_0x186c69[_0x4873f9(-0x23e,-0x2ab,-0x26c,-0x273)]===_0x4873f9(-_0x13ee9c._0x5ecb69,-_0x13ee9c._0x34d94a,-_0x13ee9c._0x492ba4,-0x1e3)){await emitEvent2(_0x13f22c[_0x4873f9(-0x237,-0x213,-_0x13ee9c._0x466d83,-_0x13ee9c._0x1581e3)],_0x186c69,_0x500ffd);continue;}const _0x1fac40=createReasoningChunkEvent(_0x186c69,_0x39490c[_0x4873f9(-0x2b1,-0x25f,-0x2af,-_0x13ee9c._0x4d9e17)]);if(_0x1fac40&&_0x1fac40[_0x4873f9(-0x240,-0x275,-0x2a2,-_0x13ee9c._0x17d813)]===_0x34c5d3(_0x13ee9c._0x41b7e6,0x384,0x346,_0x13ee9c._0x354a3d)&&_0x1fac40[_0x34c5d3(0x3da,_0x13ee9c._0x4e094f,_0x13ee9c._0x33726c,_0x13ee9c._0x52ddd6)][_0x4873f9(-_0x13ee9c._0x5b7f7c,-0x256,-_0x13ee9c._0x414afc,-0x250)]>0x0){_0x39490c[_0x34c5d3(0x35a,_0x13ee9c._0x4ec9ca,0x327,_0x13ee9c._0x13bc62)][_0x34c5d3(0x373,_0x13ee9c._0x4dedbe,0x33f,_0x13ee9c._0x4b561a)]===void 0x0&&(_0x39490c[_0x34c5d3(_0x13ee9c._0x496531,_0x13ee9c._0x4d8220,0x327,_0x13ee9c._0x16e393)]['reasoningStartedAt']=Date['now']());await emitEvent2(_0x13f22c[_0x34c5d3(0x385,0x38d,0x332,0x350)],_0x1fac40,_0x500ffd);continue;}const _0x4a6a6b=createAssistantChunkEvent(_0x186c69,_0x39490c[_0x4873f9(-_0x13ee9c._0x25d368,-_0x13ee9c._0x57507c,-0x232,-0x269)]);if(_0x4a6a6b){_0x39490c[_0x4873f9(-_0x13ee9c._0x4dcb16,-0x257,-_0x13ee9c._0x966caf,-_0x13ee9c._0x43ec0e)][_0x4873f9(-_0x13ee9c._0x3e30c5,-0x200,-0x20d,-_0x13ee9c._0xcc2ad3)]!==void 0x0&&_0x39490c[_0x34c5d3(_0x13ee9c._0x25b4d7,_0x13ee9c._0x176a47,0x327,0x341)][_0x4873f9(-_0x13ee9c._0x20b9b2,-0x200,-0x240,-_0x13ee9c._0x5e0fc0)]===void 0x0&&(_0x39490c[_0x4873f9(-_0x13ee9c._0x52a3a7,-_0x13ee9c._0x706c5c,-_0x13ee9c._0x5c043c,-0x24c)][_0x34c5d3(0x3a6,_0x13ee9c._0x478bb1,0x34f,0x376)]=Date[_0x34c5d3(0x3b1,0x3b6,0x38c,_0x13ee9c._0x32611d)]());await emitEvent2(_0x13f22c[_0x34c5d3(0x31d,0x35c,_0x13ee9c._0x5ddfb4,0x2d6)],_0x4a6a6b,_0x500ffd);continue;}const _0x561a41=createToolUseChunkEvent(_0x186c69,_0x39490c[_0x34c5d3(0x2ea,_0x13ee9c._0xd2a603,_0x13ee9c._0x124abf,0x340)]);_0x561a41&&await emitEvent2(_0x13f22c[_0x4873f9(-_0x13ee9c._0x141704,-0x1eb,-_0x13ee9c._0x12ea72,-_0x13ee9c._0x1581e3)],_0x561a41,_0x500ffd);}function _0x4873f9(_0x3b5c80,_0x472094,_0x348055,_0x2d9284){return _0x3de5c2(_0x3b5c80,_0x472094-0x1e0,_0x2d9284- -_0x16ff21._0x1ac474,_0x2d9284-_0x16ff21._0x31bc44);}if(!_0x49e48a)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x49e48a;}function makeTurnGuards(_0x203952,_0x155afa,_0x3cabe5,_0x449f81,_0x2a6295){return{async 'stage'(_0x53203d,_0x4595cf){return throwIfAborted(_0x203952),await runStage(_0x155afa,_0x53203d,_0x4595cf,_0x449f81);},async 'emit'(_0x51d354){throwIfAborted(_0x203952),await emitEvent2(_0x3cabe5,_0x51d354,_0x2a6295);},async 'stageUnchecked'(_0x41cded,_0x400a70){return await runStage(_0x155afa,_0x41cded,_0x400a70,_0x449f81);},async 'emitUnchecked'(_0x36e58e){await emitEvent2(_0x3cabe5,_0x36e58e,_0x2a6295);}};}async function runTurn(_0x456432,_0xe28e31){const _0x7c1f1f={_0x3dc13c:0x22f,_0x1c6763:0x27b,_0x1a22c8:0x2d6,_0x2bcedd:0x22b,_0x16495d:0x207,_0x599dbc:0x44,_0x37afd0:0x3b,_0x33783d:0x1b,_0x2d5840:0x59,_0x48ee06:0x38,_0x166e94:0x2a,_0xe76561:0x1f1,_0x40a46d:0x1a4,_0x5ca498:0x2e,_0x359f40:0xa,_0x26eabd:0x13,_0x2dcc74:0x20,_0x30eea3:0x212,_0x376359:0x6a,_0x19ad37:0x20,_0x3af93c:0x20a,_0x328aa6:0x236,_0x508ab7:0x5e,_0x1cb024:0x43,_0x133683:0x5f,_0x5d57ad:0x58,_0x43c4bc:0x89,_0x5c7167:0x27,_0x5b9914:0x41,_0x3bdef2:0x6e,_0x2ca11a:0x2c,_0x355f82:0x203,_0xfee337:0x208,_0x1153fd:0x209,_0x32941e:0x1cf,_0x109c84:0x20b,_0x24593a:0x220,_0x406ee4:0x21c,_0x1fa91e:0x25e,_0x21acc8:0x2a8,_0x76950:0x20f,_0x1d7247:0x2b,_0x18d85b:0x3e,_0x1dd013:0x1a,_0x4b0f60:0x17,_0x5e8b01:0x14,_0x2338a8:0x2c,_0x19a490:0x22e,_0x589f18:0x227,_0x519fcc:0x201,_0x1672a3:0x3,_0x17e810:0x23b,_0x1879c9:0x1ed,_0x33199d:0x17,_0x441e8a:0x7,_0x5eb4d9:0x15,_0x253a2e:0x7b,_0x407daa:0x2a,_0x10f8f2:0x230,_0x52212e:0x269,_0x5c9e0b:0x2c8,_0x3c3294:0x226,_0x3cb616:0x2cd,_0x26fa63:0x273,_0x15aa10:0x232,_0x3a9658:0x2bd,_0x4f7a04:0x274,_0x9298a8:0xaa,_0x18b9af:0x62,_0x5e364a:0x82,_0x529053:0x1f,_0x4d911d:0x18,_0x77ab96:0x18,_0x262300:0x9,_0x2978bd:0x1e9,_0x1e8249:0x224,_0x3a867d:0x1d2,_0x12062a:0x8,_0x151ec8:0x20e,_0xe5c712:0x1fa,_0x5cce49:0x23d,_0x1a8599:0x288,_0x3092bd:0x59,_0x566ac4:0xe,_0x553658:0x11,_0x572108:0x48,_0x502ba1:0x35,_0x443b1e:0x34,_0x47f815:0x0,_0x12f5f6:0x1c,_0x3ccfb0:0x0,_0x13b4af:0xa5,_0x8d8dcd:0xa5,_0x450a9d:0x23e,_0x900130:0x206,_0x50b3e8:0x51,_0x172e0d:0x2f,_0x220388:0x7c,_0x1e0cb6:0x21,_0x467614:0x40,_0xb716bc:0x57,_0x5f52ca:0x15,_0x7c66c1:0x9a,_0x3c9a31:0x4c,_0x314a51:0x27d,_0x16c212:0x272,_0x1e541a:0x221,_0x259bae:0x252,_0x1772c1:0x275,_0x4120ba:0x218,_0x303584:0x192,_0x386dea:0x266,_0x3d67a2:0x228,_0x36a078:0x256,_0x1f03df:0x1ff,_0x2b20aa:0x235,_0x8dc7ac:0x25c,_0x42da89:0x245,_0x3aa2fd:0x266,_0x2887bc:0x284,_0x3b2774:0x0,_0x417cfd:0x12,_0x428cec:0x76,_0x12919c:0x48,_0x39daba:0x8b,_0x3cbb56:0x16,_0x452ed6:0x2b,_0x1b5377:0x1a,_0x190734:0xe,_0x8259c8:0xd},_0x360a1d={_0x3ed7d2:0x46b,_0x40af81:0x416,_0xced841:0x8f,_0x308243:0xfe,_0x55bb5d:0xe7},_0x50149c={_0x4a0f88:0x2b8,_0x451990:0x24},_0x5dcb3c={_0x25c05d:0x69,_0x24991b:0x50},_0x463451={_0x2bea3d:0x278},_0x55c3f7=_0xe28e31[_0x3dfc15(_0x7c1f1f._0x3dc13c,_0x7c1f1f._0x1c6763,_0x7c1f1f._0x1a22c8,_0x7c1f1f._0x2bcedd)];function _0x25e7f5(_0x458236,_0x36f21e,_0x2e0664,_0x10e8c9){return _0x3de5c2(_0x10e8c9,_0x36f21e-0xe2,_0x2e0664- -_0x463451._0x2bea3d,_0x10e8c9-0x1ea);}const _0x356fe0=_0x456432[_0x3dfc15(0x236,0x243,_0x7c1f1f._0x16495d,0x24d)]??new AbortController()[_0x25e7f5(_0x7c1f1f._0x599dbc,_0x7c1f1f._0x37afd0,_0x7c1f1f._0x33783d,_0x7c1f1f._0x2d5840)],_0x3c783c={'sessionId':_0x456432[_0x25e7f5(0x62,_0x7c1f1f._0x48ee06,_0x7c1f1f._0x166e94,0x48)],'turnId':_0x456432[_0x3dfc15(0x1a2,_0x7c1f1f._0xe76561,0x21d,_0x7c1f1f._0x40a46d)],'system':normalizeSystem(_0x456432[_0x25e7f5(-_0x7c1f1f._0x5ca498,-0x51,-0x11,0x3e)]),'messages':(_0x456432['messages']??[])[_0x25e7f5(-0x3c,0x32,0x14,-0x2b)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0xe28e31[_0x25e7f5(-_0x7c1f1f._0x359f40,-_0x7c1f1f._0x26eabd,_0x7c1f1f._0x2dcc74,0x61)]===_0x3dfc15(_0x7c1f1f._0x30eea3,0x204,0x202,0x1b3)?_0xe28e31[_0x25e7f5(_0x7c1f1f._0x376359,-0x35,_0x7c1f1f._0x19ad37,0x7a)]():_0xe28e31['sessionDir']},_0x1a022e=makeExtensionContext(_0x3c783c);function _0x3dfc15(_0x14252e,_0x4d4a6d,_0x346180,_0x2728b0){return _0x3de5c2(_0x14252e,_0x4d4a6d-_0x5dcb3c._0x25c05d,_0x4d4a6d- -_0x5dcb3c._0x24991b,_0x2728b0-0xca);}const _0x465b8b={'sessionId':_0x3c783c[_0x3dfc15(_0x7c1f1f._0x3af93c,0x252,_0x7c1f1f._0x328aa6,0x22b)],'turnId':_0x3c783c[_0x25e7f5(-_0x7c1f1f._0x508ab7,-_0x7c1f1f._0x1cb024,-0x37,-_0x7c1f1f._0x133683)],'state':_0x3c783c,'signal':_0x356fe0,..._0xe28e31[_0x25e7f5(_0x7c1f1f._0x5d57ad,_0x7c1f1f._0x43c4bc,0x41,0x1f)]?{'askUser':_0xe28e31[_0x25e7f5(-0x8,_0x7c1f1f._0x5c7167,_0x7c1f1f._0x5b9914,-0x13)]}:{},..._0xe28e31[_0x25e7f5(-_0x7c1f1f._0x3bdef2,-0x24,-0x25,-_0x7c1f1f._0x2ca11a)]?{'setTopic':_0xe28e31[_0x3dfc15(0x1d5,_0x7c1f1f._0x355f82,0x1fd,_0x7c1f1f._0xfee337)]}:{}},{stage:_0x2f5ea7,emit:_0x427b64,stageUnchecked:_0x33eabc,emitUnchecked:_0x5c2e71}=makeTurnGuards(_0x356fe0,_0xe28e31['registry'],_0xe28e31[_0x3dfc15(0x245,_0x7c1f1f._0x1153fd,_0x7c1f1f._0x32941e,0x21d)],_0x1a022e,_0x465b8b),_0x111f31=async(_0x237503,_0x485b60)=>{function _0x5f50d6(_0x5e1390,_0x3d4709,_0x2c0c07,_0x52ab12){return _0x3dfc15(_0x3d4709,_0x2c0c07- -_0x50149c._0x4a0f88,_0x2c0c07-_0x50149c._0x451990,_0x52ab12-0x10e);}const _0x411f10=_0x485b60?{..._0x1a022e,'turnMeta':_0x485b60}:_0x1a022e;function _0x3e64f9(_0x2ea234,_0x2b7225,_0x5462cf,_0x2fe120){return _0x3dfc15(_0x5462cf,_0x2b7225-0x234,_0x5462cf-0x1d5,_0x2fe120-0x6f);}await _0xe28e31[_0x3e64f9(0x47d,_0x360a1d._0x3ed7d2,0x447,_0x360a1d._0x40af81)][_0x5f50d6(-_0x360a1d._0xced841,-_0x360a1d._0x308243,-0xdc,-_0x360a1d._0x55bb5d)]('afterMessageAppend',structuredClone(_0x237503),_0x411f10);};let _0x34e38=0x0;try{const _0x3a89e4=await _0x2f5ea7(_0x3dfc15(_0x7c1f1f._0x109c84,_0x7c1f1f._0x24593a,_0x7c1f1f._0x406ee4,0x227),normalizeMessage(_0x456432[_0x3dfc15(0x279,_0x7c1f1f._0x1fa91e,_0x7c1f1f._0x21acc8,_0x7c1f1f._0x76950)]));_0x3c783c[_0x25e7f5(0x75,-_0x7c1f1f._0x166e94,_0x7c1f1f._0x1d7247,0x43)][_0x25e7f5(0x15,_0x7c1f1f._0x18d85b,-_0x7c1f1f._0x1dd013,0x8)](_0x3a89e4),await _0x111f31(_0x3a89e4),await _0x427b64({'type':_0x25e7f5(-_0x7c1f1f._0x4b0f60,0x14,-_0x7c1f1f._0x5e8b01,-_0x7c1f1f._0x2338a8),'message':_0x3a89e4});while(!![]){throwIfAborted(_0x356fe0),_0x34e38+=0x1;const _0x5d1752=createAssistantMessageId(_0x3c783c[_0x3dfc15(0x217,0x1f1,0x1b1,0x245)],_0x34e38),_0x53e88d=createReasoningMessageId(_0x5d1752),_0x438851={'model':_0x55c3f7['model'],..._0x55c3f7['provider']?{'provider':_0x55c3f7[_0x3dfc15(_0x7c1f1f._0x19a490,_0x7c1f1f._0x589f18,_0x7c1f1f._0x519fcc,0x1fb)]}:{}};let _0xb93642={'model':_0x55c3f7[_0x25e7f5(-0x9,_0x7c1f1f._0x1672a3,0x24,0xe)],..._0x55c3f7[_0x3dfc15(_0x7c1f1f._0x17e810,_0x7c1f1f._0x1879c9,0x1c7,0x216)]!==void 0x0?{'maxTokens':_0x55c3f7['maxTokens']}:{},'system':structuredClone(_0x3c783c['system']),'messages':structuredClone(_0x3c783c['messages']),'tools':_0xe28e31[_0x25e7f5(-_0x7c1f1f._0x33199d,-0x5a,-_0x7c1f1f._0x441e8a,-_0x7c1f1f._0x2dcc74)][_0x25e7f5(-0x6,-0x1,_0x7c1f1f._0x5eb4d9,_0x7c1f1f._0x5eb4d9)](),'metadata':{'sessionId':_0x3c783c[_0x25e7f5(0x62,_0x7c1f1f._0x253a2e,_0x7c1f1f._0x407daa,0x46)],'turnId':_0x3c783c['turnId']},..._0xe28e31[_0x3dfc15(_0x7c1f1f._0x10f8f2,0x27d,_0x7c1f1f._0x52212e,_0x7c1f1f._0x5c9e0b)]?{'outputFormat':_0xe28e31[_0x3dfc15(0x246,0x27d,_0x7c1f1f._0x3c3294,0x2a6)]}:{}};_0xb93642=await _0x2f5ea7('beforeModelRequest',_0xb93642),await _0x427b64({'type':_0x3dfc15(0x294,0x246,0x293,0x292),'request':_0xb93642}),_0x438851['turnStartedAt']=Date[_0x25e7f5(-0x4,0x1,0x3b,0x5d)]();let _0xff7aef=await executeModelRequest(_0xb93642,_0x456432,_0x55c3f7,_0xe28e31,_0x465b8b,{'assistantMessageId':_0x5d1752,'reasoningMessageId':_0x53e88d,'meta':_0x438851});_0x438851[_0x3dfc15(_0x7c1f1f._0x3cb616,_0x7c1f1f._0x26fa63,_0x7c1f1f._0x15aa10,0x2c0)]=Date[_0x3dfc15(0x273,0x263,_0x7c1f1f._0x3a9658,_0x7c1f1f._0x4f7a04)](),_0xff7aef=await _0x2f5ea7(_0x25e7f5(_0x7c1f1f._0x9298a8,0x2c,_0x7c1f1f._0x18b9af,_0x7c1f1f._0x5e364a),_0xff7aef),await _0x427b64({'type':_0x25e7f5(_0x7c1f1f._0x529053,-_0x7c1f1f._0x4d911d,-_0x7c1f1f._0x77ab96,-0x54),'response':_0xff7aef}),_0x3c783c[_0x25e7f5(0x35,0x32,_0x7c1f1f._0x262300,0xa)]=_0xff7aef;let _0x18d8c8=await _0x2f5ea7(_0x3dfc15(_0x7c1f1f._0x2978bd,_0x7c1f1f._0x1e8249,_0x7c1f1f._0x3a867d,0x271),withMessageId(responseToAssistantMessage(_0xff7aef),_0x5d1752));_0x18d8c8=withMessageId(_0x18d8c8,_0x5d1752);const _0x54abba=getToolUseBlocks(_0x18d8c8),_0x2d4812=await Promise[_0x25e7f5(-0x5,0x88,_0x7c1f1f._0x18d85b,-_0x7c1f1f._0x12062a)](_0x54abba['map'](_0x147e58=>_0x2f5ea7(_0x3dfc15(0x1e6,0x21c,0x232,0x271),_0x147e58)));_0x2d4812[_0x3dfc15(_0x7c1f1f._0x151ec8,_0x7c1f1f._0xe5c712,_0x7c1f1f._0x5cce49,0x1e2)]>0x0&&(_0x18d8c8=replaceToolUseBlocks(_0x18d8c8,_0x2d4812));const _0x3bdfd3=withMessageId(_0x18d8c8,_0x5d1752);_0x18d8c8=_0x3bdfd3;const _0x5eb6bf=createReasoningMessage(_0x18d8c8),_0x2fbe07=createAssistantTextMessage(_0x18d8c8),_0xc841a6=createToolUseMessage(_0x18d8c8);_0x5eb6bf&&await _0x427b64({'type':_0x3dfc15(0x298,0x261,0x2ba,_0x7c1f1f._0x1a8599),'message':withMessageId(_0x5eb6bf,_0x53e88d)});_0x2fbe07&&await _0x427b64({'type':'assistant_message','message':withMessageId(_0x2fbe07,_0x5d1752)});_0xc841a6&&await _0x427b64({'type':_0x25e7f5(-_0x7c1f1f._0x3092bd,0x3a,-_0x7c1f1f._0x566ac4,-0xd),'message':withMessageId(_0xc841a6,_0x5d1752)});_0x3c783c[_0x25e7f5(_0x7c1f1f._0x553658,-0x16,_0x7c1f1f._0x1d7247,_0x7c1f1f._0x572108)][_0x25e7f5(0x1c,_0x7c1f1f._0x502ba1,-0x1a,_0x7c1f1f._0x443b1e)](_0x3bdfd3);_0x2d4812[_0x25e7f5(0x21,_0x7c1f1f._0x47f815,-_0x7c1f1f._0x5ca498,0x22)]>0x0&&await _0x111f31(_0x3bdfd3,_0x438851);for(const _0x3a8ece of _0x2d4812){await _0x427b64({'type':'tool_call','toolCall':_0x3a8ece});}if(_0x2d4812[_0x25e7f5(-_0x7c1f1f._0x12f5f6,0x1a,-0x2e,_0x7c1f1f._0x3ccfb0)]===0x0){const _0x1ac4ac=await _0x2f5ea7(_0x25e7f5(_0x7c1f1f._0x13b4af,0x72,0x52,_0x7c1f1f._0x8d8dcd),_0x18d8c8),_0x366f30=withMessageId(_0x1ac4ac,_0x5d1752);return _0x3c783c['finalMessage']=_0x366f30,_0x3c783c['messages'][_0x3c783c[_0x3dfc15(_0x7c1f1f._0x450a9d,0x253,_0x7c1f1f._0x900130,0x22f)][_0x25e7f5(-_0x7c1f1f._0x50b3e8,-_0x7c1f1f._0x172e0d,-0x2e,_0x7c1f1f._0x553658)]-0x1]=_0x366f30,await _0x111f31(_0x366f30,_0x438851),await _0x427b64({'type':_0x25e7f5(-_0x7c1f1f._0x220388,_0x7c1f1f._0x1e0cb6,-0x38,-_0x7c1f1f._0x467614),'message':_0x366f30}),throwIfAborted(_0x356fe0),await _0xe28e31[_0x25e7f5(_0x7c1f1f._0xb716bc,-_0x7c1f1f._0x5f52ca,0xf,0x6b)][_0x25e7f5(-_0x7c1f1f._0x7c66c1,-0x53,-_0x7c1f1f._0x3c9a31,-_0x7c1f1f._0x18b9af)]('afterTurnComplete',_0x3c783c,_0x1a022e),await _0x427b64({'type':'turn_complete','state':_0x3c783c}),{'status':_0x3dfc15(0x243,0x247,0x227,_0x7c1f1f._0x314a51),'finalMessage':_0x366f30,'state':_0x3c783c};}let _0x2736d0=await _0xe28e31[_0x3dfc15(_0x7c1f1f._0x16c212,_0x7c1f1f._0x1e541a,_0x7c1f1f._0x259bae,_0x7c1f1f._0x1772c1)][_0x3dfc15(0x212,_0x7c1f1f._0x4120ba,0x1c1,0x1eb)](_0x2d4812,_0x465b8b);const _0x558fbb=_0x2736d0[_0x3dfc15(0x1ce,0x1d6,_0x7c1f1f._0x303584,0x1ea)](isAbortedToolResult),_0x212403=_0x558fbb?_0x33eabc:_0x2f5ea7,_0x5bf79c=_0x558fbb?_0x5c2e71:_0x427b64;_0x2736d0=await Promise[_0x3dfc15(_0x7c1f1f._0x4120ba,_0x7c1f1f._0x386dea,_0x7c1f1f._0x3d67a2,_0x7c1f1f._0x36a078)](_0x2736d0['map'](_0x54051b=>_0x212403(_0x25e7f5(0x2b,0x71,0x2f,0x3f),_0x54051b))),_0x3c783c[_0x3dfc15(0x23e,_0x7c1f1f._0x1f03df,_0x7c1f1f._0x2b20aa,0x1aa)][_0x3dfc15(0x240,0x20e,_0x7c1f1f._0x8dc7ac,_0x7c1f1f._0x42da89)](..._0x2736d0);for(const _0x465317 of _0x2736d0){await _0x5bf79c({'type':_0x3dfc15(_0x7c1f1f._0x3aa2fd,0x255,_0x7c1f1f._0x2887bc,0x293),'result':_0x465317});}const _0x3474ef=await _0x212403(_0x25e7f5(-0xa,_0x7c1f1f._0x3b2774,0x42,_0x7c1f1f._0x417cfd),createToolResultUserMessage(_0x2736d0));await _0x5bf79c({'type':_0x25e7f5(-_0x7c1f1f._0x428cec,-_0x7c1f1f._0x572108,-_0x7c1f1f._0x12919c,-_0x7c1f1f._0x39daba),'message':_0x3474ef}),_0x3c783c[_0x25e7f5(_0x7c1f1f._0x3cbb56,-0x26,_0x7c1f1f._0x452ed6,0x3e)][_0x25e7f5(0x2a,_0x7c1f1f._0x48ee06,-_0x7c1f1f._0x1b5377,0x20)](_0x3474ef),await _0x111f31(_0x3474ef);if(_0x558fbb)return{'status':_0x25e7f5(-0x3f,-_0x7c1f1f._0x133683,-0xd,_0x7c1f1f._0x190734),'state':_0x3c783c};}}catch(_0x35eddd){if(!_0x356fe0[_0x3dfc15(0x214,0x21b,_0x7c1f1f._0xe76561,0x1ef)])throw new TurnFailedError(_0x35eddd,_0x3c783c);return{'status':_0x25e7f5(-0x2b,_0x7c1f1f._0x8259c8,-0xd,_0x7c1f1f._0x33199d),'state':_0x3c783c};}}function createSessionId(){const _0x353937={_0x500237:0x11f,_0x18ab7a:0x193,_0x2fc064:0x15e,_0x1d4ad3:0x17c,_0x1917f9:0x277,_0x368d5b:0x284,_0x5d000f:0x2d4,_0x2d90c3:0x239,_0x55c26b:0x2ad,_0x2eca63:0x269,_0xd0999:0x1eb,_0x1c5bf6:0x222},_0x3f5538={_0x339c76:0x1d1,_0x458ff7:0x155,_0x3839c3:0x15a},_0x210f9e={_0x1ec2d7:0x37,_0x15221b:0x70b};function _0x2db173(_0x10b52f,_0x44eb54,_0x34f8a1,_0x151aa2){return _0x186b58(_0x10b52f-_0x210f9e._0x1ec2d7,_0x44eb54-0x8b,_0x34f8a1,_0x44eb54- -_0x210f9e._0x15221b);}function _0x559da8(_0x20fcac,_0x1e4d18,_0x10e5d8,_0x45be23){return _0x3de5c2(_0x45be23,_0x1e4d18-_0x3f5538._0x339c76,_0x10e5d8- -_0x3f5538._0x458ff7,_0x45be23-_0x3f5538._0x3839c3);}return'session-'+Date[_0x559da8(_0x353937._0x500237,_0x353937._0x18ab7a,_0x353937._0x2fc064,_0x353937._0x1d4ad3)]()+'-'+Math[_0x2db173(-_0x353937._0x1917f9,-_0x353937._0x368d5b,-_0x353937._0x5d000f,-_0x353937._0x2d90c3)]()[_0x2db173(-_0x353937._0x55c26b,-_0x353937._0x2eca63,-0x2a4,-0x2ad)](0x10)[_0x2db173(-0x199,-_0x353937._0xd0999,-0x20f,-_0x353937._0x1c5bf6)](0x2,0xa);}function createTurnId(_0x29ffd1){const _0x4de1df={_0x303420:0x278,_0x5202c2:0x25e,_0x94331e:0x256},_0xe15898={_0x3b857e:0x1a};function _0x528c3c(_0x2aa652,_0x4b5ba9,_0x104c8f,_0x45b764){return _0x3de5c2(_0x45b764,_0x4b5ba9-0x14,_0x2aa652-0x20,_0x45b764-_0xe15898._0x3b857e);}return _0x528c3c(_0x4de1df._0x303420,_0x4de1df._0x5202c2,_0x4de1df._0x94331e,0x2c8)+_0x29ffd1;}function createDefaultMessage(_0x5e9525){if(_0x5e9525===void 0x0)return void 0x0;return normalizeUserInput(_0x5e9525);}function normalizeUserInput(_0x14bc74){const _0x31d2dc={_0xbe998f:0x524,_0x162e78:0x537,_0x3aacaa:0x560,_0xc121b1:0x563,_0x3bb665:0x50f,_0x5e7080:0x53e,_0x2b0bea:0x593,_0x5d243a:0x57b},_0x7ebb7d={_0x3557ce:0x13b},_0x24a81c={_0x2ebe97:0x1cd};function _0x351584(_0x1934b0,_0x4a05e3,_0x45ccb5,_0x4a9d6f){return _0x3de5c2(_0x4a05e3,_0x4a05e3-_0x24a81c._0x2ebe97,_0x1934b0-0x31,_0x4a9d6f-0xa6);}if(typeof _0x14bc74===_0x273e1e(0x4fa,_0x31d2dc._0xbe998f,0x547,_0x31d2dc._0x162e78))return{'role':_0x273e1e(_0x31d2dc._0x3aacaa,_0x31d2dc._0xc121b1,_0x31d2dc._0x3bb665,_0x31d2dc._0x5e7080),'content':[{'type':_0x273e1e(_0x31d2dc._0x2b0bea,_0x31d2dc._0x5d243a,0x575,0x52c),'text':_0x14bc74}]};function _0x273e1e(_0x2368bf,_0x4c2f9b,_0x3fac74,_0x3b291e){return _0x3de5c2(_0x3b291e,_0x4c2f9b-_0x7ebb7d._0x3557ce,_0x3fac74-0x2b9,_0x3b291e-0x1dd);}return normalizeMessage(_0x14bc74);}function resolveChatModel(_0x142301){if(!_0x142301['chatModel'])throw new Error('Agent\x20requires\x20a\x20chatModel');return _0x142301['chatModel'];}function createRegistry(_0x19d3e3){const _0x42d90c={_0x18d087:0x413,_0x123460:0x181,_0x1cb245:0xd5,_0x1968a7:0x14c,_0x1bdfaf:0xb5,_0xc872f:0x3b5},_0x3744d7={_0x45007e:0x1bb,_0x57a9d2:0xfd};if(_0x19d3e3[_0x474b6c(0x3ff,0x3c5,0x3e9,_0x42d90c._0x18d087)])return _0x19d3e3[_0x18ce05(0x12b,_0x42d90c._0x123460,0xfe,_0x42d90c._0x1cb245)];function _0x18ce05(_0x51ac34,_0x39c78e,_0x4a8905,_0x256402){return _0x3de5c2(_0x256402,_0x39c78e-0x1b7,_0x51ac34- -0x15c,_0x256402-0x7c);}function _0x474b6c(_0x2c5c17,_0x256fe3,_0x1dc9da,_0x483d26){return _0x186b58(_0x2c5c17-_0x3744d7._0x45007e,_0x256fe3-0x90,_0x2c5c17,_0x1dc9da- -_0x3744d7._0x57a9d2);}const _0x3453cf=createExtensionRegistry(),_0x49fca6=_0x19d3e3[_0x18ce05(0x100,_0x42d90c._0x1968a7,0x117,_0x42d90c._0x1bdfaf)]??[];for(const _0xabfce8 of _0x49fca6){_0x3453cf[_0x474b6c(_0x42d90c._0xc872f,0x40e,0x40b,0x461)](_0xabfce8);}return _0x3453cf;}var Agent=class{['_systemPrompt'];[_0x3de5c2(0x275,0x28d,0x2ad,0x2df)];['metrics'];[_0x3de5c2(0x28e,0x2dc,0x2a2,0x24f)];[_0x186b58(0x50a,0x547,0x4c7,0x502)];['defaultMessage'];[_0x3de5c2(0x2e1,0x29e,0x2b0,0x2be)];constructor(_0x505224={}){const _0x3aa259={_0x4f180f:0x434,_0x4ab7c6:0x4bb,_0xd96c8e:0x481,_0x2b7095:0x447,_0x3d8078:0x484,_0x3fefb7:0x44f,_0x25af40:0x405,_0x101c10:0x49a,_0x4debff:0x49c,_0x372c0e:0x4dc,_0x41db3b:0x4e5,_0x29abb7:0x48b,_0xec0f77:0x495,_0x93dfe6:0x457,_0x4bd3e4:0x442,_0x31f09a:0x444,_0x4ab1aa:0x450,_0xbe024b:0x49d,_0x28af9c:0x4ae,_0x577e87:0x3c9,_0x409a9a:0x47e,_0x5c8c3f:0x48c,_0x305174:0x4b1,_0x403805:0x498,_0x1ca7c1:0x4a7,_0x5aeb92:0x4c3},_0xbe68c4={_0x4bfa32:0x1bf,_0x5d2a05:0x87,_0x29401b:0x80},_0x2977b7={_0xaba5c8:0x1f5,_0x2af0fc:0x24c,_0x50667c:0x25a},_0x1c550b={_0x568bd2:0x680},_0x2dbbe6={_0x305bf5:0x1bc};this[_0x1dd505(_0x3aa259._0x4f180f,0x481,_0x3aa259._0x4ab7c6,0x4a2)]=_0x505224[_0x1dd505(0x46e,_0x3aa259._0xd96c8e,0x4d4,0x46a)]??createSessionId(),this['turnIndex']=0x0,this['_systemPrompt']=_0x505224[_0x2ead5a(_0x3aa259._0x2b7095,_0x3aa259._0x3d8078,_0x3aa259._0x3fefb7,_0x3aa259._0x25af40)]??'',this[_0x2ead5a(_0x3aa259._0x101c10,_0x3aa259._0x4debff,_0x3aa259._0x101c10,0x4ef)]=(_0x505224[_0x2ead5a(_0x3aa259._0x101c10,0x4d9,0x47f,0x483)]??[])['map'](normalizeMessage);function _0x2ead5a(_0x39ad8f,_0x34c4fe,_0x3ec80d,_0x399abd){return _0x186b58(_0x39ad8f-_0x2dbbe6._0x305bf5,_0x34c4fe-0x16c,_0x399abd,_0x39ad8f- -0x68);}this['defaultMessage']=createDefaultMessage(_0x505224[_0x1dd505(_0x3aa259._0x372c0e,0x48d,0x45a,0x49e)]),this[_0x1dd505(_0x3aa259._0x41db3b,_0x3aa259._0x29abb7,0x4c9,0x4a9)]=createAgentMetrics({'getContextWindowLimit':_0x505224[_0x2ead5a(_0x3aa259._0xec0f77,_0x3aa259._0x93dfe6,_0x3aa259._0x4bd3e4,_0x3aa259._0x31f09a)]});const _0x17037f=_0x505224[_0x2ead5a(_0x3aa259._0x4ab1aa,0x46b,0x42d,_0x3aa259._0xbe024b)],_0x38162e=async(_0x49906a,_0x381ea8)=>{const _0x1cdbd7={_0x26be1b:0x33};function _0x8d00f1(_0x3bdc19,_0x4d06f5,_0x342835,_0x170571){return _0x2ead5a(_0x4d06f5- -0x4ee,_0x4d06f5-_0x1cdbd7._0x26be1b,_0x342835-0xcd,_0x3bdc19);}this[_0x4c4788(-0x203,-0x1b7,-_0x2977b7._0xaba5c8,-0x1e2)][_0x4c4788(-0x25c,-_0x2977b7._0x2af0fc,-0x22e,-_0x2977b7._0x50667c)](_0x49906a);function _0x4c4788(_0x4a411a,_0x285bd6,_0x1c5c33,_0x14aaf2){return _0x1dd505(_0x4a411a-0x40,_0x1c5c33- -_0x1c550b._0x568bd2,_0x1c5c33-0x47,_0x285bd6);}await _0x17037f?.(_0x49906a,_0x381ea8);},_0x5cb37a=createInternalToolRuntime(_0x505224[_0x1dd505(0x4d3,0x49f,0x4c1,_0x3aa259._0x28af9c)]??[],{'onEvent':_0x38162e,'onToolCall':_0x505224[_0x1dd505(0x440,0x409,0x434,_0x3aa259._0x577e87)]});function _0x1dd505(_0x4be98b,_0x1b21e7,_0xa7ca7a,_0x3563bd){return _0x186b58(_0x4be98b-_0xbe68c4._0x4bfa32,_0x1b21e7-_0xbe68c4._0x5d2a05,_0x3563bd,_0x1b21e7- -_0xbe68c4._0x29401b);}this[_0x1dd505(_0x3aa259._0x409a9a,_0x3aa259._0x5c8c3f,0x4bb,_0x3aa259._0x305174)]={'registry':createRegistry(_0x505224),'chatModel':resolveChatModel(_0x505224),'toolRuntime':_0x5cb37a,'askUser':_0x505224[_0x1dd505(0x48b,_0x3aa259._0x403805,0x471,0x4b1)],'setTopic':_0x505224[_0x2ead5a(0x44a,0x432,0x466,0x45d)],'onEvent':_0x38162e,'sessionDir':_0x505224['sessionDir'],'outputFormat':_0x505224[_0x1dd505(_0x3aa259._0x1ca7c1,0x4ac,0x468,_0x3aa259._0x5aeb92)]};}get[_0x186b58(0x4fb,0x46b,0x462,0x4af)](){return this['_systemPrompt'];}[_0x186b58(0x524,0x561,0x50e,0x528)](_0xae1c01=[]){const _0x184e73={_0x576f04:0x22f,_0x496b6a:0x1ca,_0x31cf66:0x33a,_0x56ea85:0x2f4,_0x2ebb2c:0x36e},_0x31bfc5={_0x363c1a:0x156,_0x1b701f:0x73,_0x58c053:0x4c},_0xa86dd={_0x5cb722:0x4c,_0x141eb1:0x148};function _0x1e9cac(_0x21631d,_0x461f1a,_0x374e4b,_0x4b2aa5){return _0x3de5c2(_0x461f1a,_0x461f1a-0xc9,_0x21631d-_0xa86dd._0x5cb722,_0x4b2aa5-_0xa86dd._0x141eb1);}function _0x3106d1(_0xf2c517,_0x5b088c,_0x2830cb,_0x102570){return _0x3de5c2(_0xf2c517,_0x5b088c-_0x31bfc5._0x363c1a,_0x5b088c- -_0x31bfc5._0x1b701f,_0x102570-_0x31bfc5._0x58c053);}this['deps'][_0x3106d1(_0x184e73._0x576f04,0x1fe,_0x184e73._0x496b6a,0x22f)][_0x1e9cac(0x315,_0x184e73._0x31cf66,_0x184e73._0x56ea85,_0x184e73._0x2ebb2c)](_0xae1c01);}[_0x186b58(0x455,0x4f1,0x49e,0x4a7)](){const _0x4a636b={_0x2c6ddd:0x4c7,_0x1a0ef9:0x51c,_0x7f7216:0x123,_0x592b77:0x132,_0x14de25:0xfd},_0x4b2ba3={_0x3b0b6b:0x16d},_0x14e18e={_0x514498:0x3bf,_0x475b76:0xcd};function _0x2666e4(_0x34be54,_0xd0e867,_0x4d86af,_0x282f4d){return _0x3de5c2(_0xd0e867,_0xd0e867-0x165,_0x4d86af- -_0x14e18e._0x514498,_0x282f4d-_0x14e18e._0x475b76);}function _0x544e68(_0x174f65,_0x57c11e,_0x1c15b5,_0x3519e0){return _0x186b58(_0x174f65-0x16f,_0x57c11e-_0x4b2ba3._0x3b0b6b,_0x174f65,_0x1c15b5-0xe);}return this[_0x544e68(_0x4a636b._0x2c6ddd,_0x4a636b._0x1a0ef9,0x51a,0x4c3)]['toolRuntime'][_0x2666e4(-_0x4a636b._0x7f7216,-0x149,-_0x4a636b._0x592b77,-_0x4a636b._0x14de25)]();}[_0x186b58(0x4b1,0x445,0x4d5,0x48c)](_0x24750e,_0x430a01={}){const _0xb65f0={_0x4e88fb:0x9,_0x342fd0:0x35,_0x1c84f4:0x12,_0x216094:0x13,_0x346717:0x48,_0x4a1eb1:0x3b,_0x44558a:0x53},_0x393492={_0x2ec873:0xc3},_0x15114f={_0x4e2279:0x15c};function _0x6774e0(_0x1f764c,_0x4e62a8,_0x556939,_0x2c6337){return _0x3de5c2(_0x1f764c,_0x4e62a8-0x17b,_0x556939- -0x2eb,_0x2c6337-_0x15114f._0x4e2279);}this[_0x53b363(-0x22,-0x16,_0xb65f0._0x4e88fb,-0x23)]=_0x24750e;function _0x53b363(_0x1a3dc6,_0x1b67f3,_0x510961,_0x272b0a){return _0x186b58(_0x1a3dc6-_0x393492._0x2ec873,_0x1b67f3-0xbb,_0x1a3dc6,_0x510961- -0x4ce);}_0x430a01[_0x6774e0(_0xb65f0._0x342fd0,0x36,-_0xb65f0._0x1c84f4,-0x4e)]===!![]&&(this[_0x6774e0(_0xb65f0._0x216094,-0x8c,-_0xb65f0._0x346717,-0xa0)]=[],this[_0x6774e0(-0x5d,0x1a,-_0xb65f0._0x4a1eb1,-_0xb65f0._0x44558a)]=0x0);}[_0x3de5c2(0x25e,0x29a,0x2a1,0x2bc)](_0x4b77ff){const _0x4c5e33={_0xd2c3d5:0x6b,_0x514f48:0x48,_0x2d1821:0x9},_0x3bf036={_0x5dfcf4:0x2ea};function _0x2b5512(_0x5a87c3,_0x98cf04,_0x3cdc03,_0x164d48){return _0x3de5c2(_0x5a87c3,_0x98cf04-0x6b,_0x98cf04- -_0x3bf036._0x5dfcf4,_0x164d48-0x5c);}this[_0x2b5512(-_0x4c5e33._0xd2c3d5,-_0x4c5e33._0x514f48,_0x4c5e33._0x2d1821,0xd)]=_0x4b77ff;}[_0x3de5c2(0x1ff,0x270,0x225,0x202)](_0x1002a9){const _0x5f22fb={_0x2721fb:0x39c,_0x55840b:0x370,_0x326a6b:0x346,_0x3b0b74:0x358},_0x488ee8={_0x5f130b:0x45,_0x45f6cb:0xab,_0xdde3da:0x1de};function _0x2ec8b3(_0x2f6445,_0x510022,_0xe74267,_0x1349b9){return _0x3de5c2(_0xe74267,_0x510022-_0x488ee8._0x5f130b,_0x1349b9-_0x488ee8._0x45f6cb,_0x1349b9-_0x488ee8._0xdde3da);}this[_0x2ec8b3(_0x5f22fb._0x2721fb,_0x5f22fb._0x55840b,_0x5f22fb._0x326a6b,_0x5f22fb._0x3b0b74)]['chatModel']=_0x1002a9;}async['send'](_0x21251a=this[_0x3de5c2(0x28b,0x28e,0x23e,0x219)],_0xc5d45c={}){const _0x1c642e={_0x415827:0x17f,_0x3b2b26:0x1f5,_0x14649a:0x230,_0x10110d:0x240,_0x47e673:0x1f8,_0x39d2b4:0x14c,_0x58175e:0x11c,_0x5a5916:0xe1,_0x229c37:0xe4,_0x24b99b:0x77,_0x3e80d0:0x242,_0x559ca7:0x209,_0x2e843f:0x23e,_0x4294de:0x1e2,_0x3e61f6:0xa5,_0x361137:0x1d1,_0x442182:0x222,_0x370e5f:0xae,_0x2cc546:0x102,_0x22ecf2:0xf3,_0x5b22ad:0x1b7,_0x214418:0x190,_0x4dcb3a:0x1d6,_0x2774c9:0x191},_0x28bdf2={_0x557439:0x43},_0x2470b7={_0x1eb893:0x2f9};function _0x7f7def(_0x145bcb,_0x439109,_0x427e36,_0x4b1b11){return _0x186b58(_0x145bcb-0xe4,_0x439109-0xc9,_0x145bcb,_0x4b1b11- -_0x2470b7._0x1eb893);}function _0x3f4d19(_0x35d596,_0x29a3c4,_0xbcd0dc,_0x266e45){return _0x186b58(_0x35d596-0x72,_0x29a3c4-_0x28bdf2._0x557439,_0xbcd0dc,_0x266e45- -0x411);}if(!_0x21251a)throw new Error(_0x3f4d19(0x124,_0x1c642e._0x415827,0xe7,0x126));this[_0x7f7def(_0x1c642e._0x3b2b26,0x24f,_0x1c642e._0x14649a,0x216)]+=0x1;try{const _0x353266=await runTurn({'sessionId':this[_0x7f7def(_0x1c642e._0x10110d,0x1b9,_0x1c642e._0x47e673,0x208)],'turnId':createTurnId(this[_0x3f4d19(0x11e,_0x1c642e._0x39d2b4,0xa4,0xfe)]),'streaming':_0xc5d45c[_0x3f4d19(0xf0,_0x1c642e._0x58175e,0x157,0x11d)],'signal':_0xc5d45c[_0x3f4d19(0x139,0xf4,0x139,_0x1c642e._0x5a5916)],'system':this[_0x3f4d19(_0x1c642e._0x229c37,_0x1c642e._0x24b99b,0xa7,0x9e)],'messages':this[_0x7f7def(0x1f5,0x20f,_0x1c642e._0x3e80d0,_0x1c642e._0x559ca7)],'message':normalizeUserInput(_0x21251a)},this['deps']);return this['messages']=_0x353266[_0x7f7def(0x1d7,_0x1c642e._0x2e843f,_0x1c642e._0x4294de,0x21a)]['messages'][_0x3f4d19(_0x1c642e._0x3e61f6,0x128,0x90,0xda)](normalizeMessage),_0x353266;}catch(_0x308bc1){if(_0x308bc1 instanceof TurnFailedError){this[_0x7f7def(0x232,_0x1c642e._0x361137,_0x1c642e._0x442182,0x209)]=synthesizeMissingToolResults(_0x308bc1[_0x3f4d19(_0x1c642e._0x370e5f,0xd4,0x120,_0x1c642e._0x2cc546)][_0x3f4d19(0x144,0x107,_0x1c642e._0x22ecf2,0xf1)][_0x7f7def(0x232,0x24c,_0x1c642e._0x5b22ad,0x1f2)](normalizeMessage));throw _0x308bc1[_0x7f7def(_0x1c642e._0x214418,_0x1c642e._0x4dcb3a,0x153,_0x1c642e._0x2774c9)];}throw _0x308bc1;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
@@ -1 +1 @@
1
- (function(_0x59138e,_0x3dd790){var _0x2cf187={_0x12e70a:0xed,_0x18174e:0xf7,_0x2b5407:0xf6,_0x132ede:0x3c8,_0xdeb397:0x3c9,_0xe0f362:0x3d2,_0x588a69:0xf0,_0x2e8552:0x101,_0x297508:0x3dc,_0x572e4c:0x3d4,_0x3e1b8b:0x3d9,_0x5e171d:0x3d1,_0x57ac1b:0x3d1,_0x20c24f:0xff,_0x31a675:0x100,_0x10e83e:0xf3,_0xd1cfeb:0xf6,_0x2daae5:0xfe,_0x1d156e:0xfc,_0x510d22:0x104,_0x3b533a:0xf4,_0x23f486:0xf4,_0x23fe71:0xf0},_0x1e74a9={_0x40f2f3:0x1f1},_0x353ff8=_0x59138e();function _0x136741(_0x1f9c19,_0x500674,_0x6a85b0,_0xbcaf86){return _0x31a5(_0x6a85b0-0x2d5,_0xbcaf86);}function _0x3aa6d2(_0x2019ce,_0x58b2c4,_0x29fef3,_0x49f009){return _0x31a5(_0x2019ce- -_0x1e74a9._0x40f2f3,_0x49f009);}while(!![]){try{var _0x235fa7=parseInt(_0x3aa6d2(-0xf8,-_0x2cf187._0x12e70a,-_0x2cf187._0x18174e,-_0x2cf187._0x2b5407))/0x1*(-parseInt(_0x136741(0x3ca,0x3d0,0x3cc,_0x2cf187._0x132ede))/0x2)+parseInt(_0x136741(0x3d2,_0x2cf187._0xdeb397,0x3c8,_0x2cf187._0xe0f362))/0x3+parseInt(_0x3aa6d2(-0xfb,-0xff,-0xf7,-0x106))/0x4*(parseInt(_0x3aa6d2(-0xf9,-_0x2cf187._0x588a69,-0x104,-_0x2cf187._0x2e8552))/0x5)+parseInt(_0x3aa6d2(-_0x2cf187._0x2b5407,-_0x2cf187._0x2b5407,-0x101,-0xeb))/0x6*(parseInt(_0x136741(_0x2cf187._0x297508,0x3dc,_0x2cf187._0x572e4c,_0x2cf187._0x3e1b8b))/0x7)+-parseInt(_0x136741(_0x2cf187._0x5e171d,0x3cf,_0x2cf187._0x57ac1b,0x3c7))/0x8*(-parseInt(_0x3aa6d2(-_0x2cf187._0x20c24f,-0xfd,-_0x2cf187._0x31a675,-0xf6))/0x9)+-parseInt(_0x3aa6d2(-_0x2cf187._0x10e83e,-_0x2cf187._0xd1cfeb,-0xea,-_0x2cf187._0x2daae5))/0xa+parseInt(_0x3aa6d2(-_0x2cf187._0x1d156e,-_0x2cf187._0x510d22,-_0x2cf187._0x3b533a,-_0x2cf187._0x2daae5))/0xb*(-parseInt(_0x3aa6d2(-_0x2cf187._0x23f486,-0xf4,-0xfd,-_0x2cf187._0x23fe71))/0xc);if(_0x235fa7===_0x3dd790)break;else _0x353ff8['push'](_0x353ff8['shift']());}catch(_0x462fc2){_0x353ff8['push'](_0x353ff8['shift']());}}}(_0x3d16,0xdad8f));function _0x31a5(_0x258aa3,_0x182246){_0x258aa3=_0x258aa3-0xee;var _0x3d1647=_0x3d16();var _0x31a562=_0x3d1647[_0x258aa3];if(_0x31a5['Xxpmmw']===undefined){var _0x1d64ea=function(_0x390897){var _0x2a83b1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5978ab='',_0x1cb13b='';for(var _0x29f566=0x0,_0x537b0f,_0x43004b,_0x29f214=0x0;_0x43004b=_0x390897['charAt'](_0x29f214++);~_0x43004b&&(_0x537b0f=_0x29f566%0x4?_0x537b0f*0x40+_0x43004b:_0x43004b,_0x29f566++%0x4)?_0x5978ab+=String['fromCharCode'](0xff&_0x537b0f>>(-0x2*_0x29f566&0x6)):0x0){_0x43004b=_0x2a83b1['indexOf'](_0x43004b);}for(var _0x27e352=0x0,_0x5463f7=_0x5978ab['length'];_0x27e352<_0x5463f7;_0x27e352++){_0x1cb13b+='%'+('00'+_0x5978ab['charCodeAt'](_0x27e352)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cb13b);};_0x31a5['YxRxUF']=_0x1d64ea,_0x31a5['iSpFHm']={},_0x31a5['Xxpmmw']=!![];}var _0x14db99=_0x3d1647[0x0],_0x3dace8=_0x258aa3+_0x14db99,_0x4150c9=_0x31a5['iSpFHm'][_0x3dace8];return!_0x4150c9?(_0x31a562=_0x31a5['YxRxUF'](_0x31a562),_0x31a5['iSpFHm'][_0x3dace8]=_0x31a562):_0x31a562=_0x4150c9,_0x31a562;}function _0x22d36c(_0x5ba721,_0x2adeee,_0x37429c,_0xff1f6a){return _0x31a5(_0xff1f6a-0x2b9,_0x5ba721);}function _0x3d16(){var _0x30495a=['CMvTB3zLrxzLBNrmAxn0zw5LCG','nJy2qLDcDuvQ','ntm3ndKYnMfny3nOsG','t3bLCMf0Aw9UigfIB3j0zwq','ntvlvNv4uwe','ndrnAg1uAhy','nLbRqwr4wq','mtG1mZvkshjUsxy','nteWnZa5vKrlvNrq','qwjVCNrfCNjVCG','mtG4nfL1uvv5DG','mtGYmtuYALfSyNz1','mte5mtq4zLDxBNDS','mtqWnti3odbVChv6s0K','ode2mLHLvvjSwq','y29Kzq','BMfTzq','qujpuLrFrvjs','BwvZC2fNzq','ywjVCNq','C3rYAw5N','ywjVCNrLza'];_0x3d16=function(){return _0x30495a;};return _0x3d16();}var OperationAbortedError=class extends Error{[_0x3af67a(-0x59,-0x4b,-0x5c,-0x52)]=_0x22d36c(0x3bd,0x3b8,0x3b5,0x3bb);constructor(_0x5978ab=_0x3af67a(-0x65,-0x65,-0x5e,-0x5e)){var _0x5ce9f5={_0x3ce0fd:0xc6,_0xf9104c:0xbf,_0x2d3117:0xb4},_0x19fbb8={_0xb198df:0x117},_0x2c9f4a={_0x5ddabb:0x25,_0x564a8b:0x140,_0x547492:0x175};function _0x1a4a7a(_0x44a1e1,_0x4b6830,_0x22b021,_0x4c845b){return _0x3af67a(_0x44a1e1-_0x2c9f4a._0x5ddabb,_0x4b6830-_0x2c9f4a._0x564a8b,_0x44a1e1,_0x4c845b- -_0x2c9f4a._0x547492);}super(_0x5978ab);function _0x1e7763(_0x115a33,_0x2921f0,_0x168855,_0x1e8eed){return _0x3af67a(_0x115a33-0xf8,_0x2921f0-0x14,_0x2921f0,_0x115a33-_0x19fbb8._0xb198df);}this[_0x1e7763(0xc6,0xcf,_0x5ce9f5._0x3ce0fd,0xc7)]=_0x1e7763(_0x5ce9f5._0xf9104c,0xc2,_0x5ce9f5._0x2d3117,0xbd);}};function toAbortError(_0x1cb13b){var _0xfb5844={_0x50fca1:0x488,_0x5ade36:0x482,_0x2a29bf:0x478},_0x298134={_0x5f29ec:0xa9},_0x1c0278={_0x587a54:0xfc,_0x5a5a8d:0xf6};function _0x4498cd(_0x2696d7,_0x1e18bb,_0x4a00ab,_0x52547a){return _0x3af67a(_0x2696d7-_0x1c0278._0x587a54,_0x1e18bb-0x1a2,_0x4a00ab,_0x1e18bb- -_0x1c0278._0x5a5a8d);}if(isAbortError(_0x1cb13b))return _0x1cb13b;if(_0x1cb13b instanceof Error)return new OperationAbortedError(_0x1cb13b[_0x8aec7b(0x478,_0xfb5844._0x50fca1,_0xfb5844._0x5ade36,0x478)]);if(typeof _0x1cb13b===_0x8aec7b(_0xfb5844._0x2a29bf,0x472,0x46e,0x46a)&&_0x1cb13b['length']>0x0)return new OperationAbortedError(_0x1cb13b);function _0x8aec7b(_0x5ca89a,_0x2f8ede,_0x3ec339,_0x414119){return _0x22d36c(_0x5ca89a,_0x2f8ede-0x15b,_0x3ec339-_0x298134._0x5f29ec,_0x3ec339-0xc6);}return new OperationAbortedError();}function isAbortError(_0x29f566){var _0x5455f2={_0x2abb8c:0x225,_0x4da39a:0x22a,_0x2b7f85:0x13f,_0x3fa0fd:0x139,_0x41a076:0x13c,_0x42e68f:0x136},_0xcbc70f={_0x136b9e:0x56},_0x5eb4a2={_0x93a58e:0x55,_0x253216:0xbe};function _0x5d6425(_0x1d2e33,_0x2719a4,_0x218c12,_0x572722){return _0x22d36c(_0x572722,_0x2719a4-_0x5eb4a2._0x93a58e,_0x218c12-_0x5eb4a2._0x253216,_0x218c12- -0x5dd);}function _0x3d16a4(_0x274967,_0xb3fccb,_0x1f0c3e,_0x4a3e7a){return _0x22d36c(_0xb3fccb,_0xb3fccb-_0xcbc70f._0x136b9e,_0x1f0c3e-0x1d7,_0x1f0c3e- -0x285);}return _0x29f566 instanceof OperationAbortedError||_0x29f566 instanceof Error&&(_0x29f566[_0x5d6425(-_0x5455f2._0x2abb8c,-_0x5455f2._0x4da39a,-0x223,-0x218)]==='AbortError'||_0x3d16a4(0x134,0x135,0x134,_0x5455f2._0x2b7f85)in _0x29f566&&_0x29f566[_0x3d16a4(0x137,0x136,0x134,_0x5455f2._0x3fa0fd)]===_0x3d16a4(0x12c,_0x5455f2._0x41a076,_0x5455f2._0x42e68f,0x130));}function _0x3af67a(_0x5d0646,_0x5b6601,_0x3495eb,_0x488c00){var _0x3cf5ec={_0x3e8cb4:0x152};return _0x31a5(_0x488c00- -_0x3cf5ec._0x3e8cb4,_0x3495eb);}function throwIfAborted(_0x537b0f){var _0x3de2da={_0x322fee:0x7f,_0x45f0fd:0x88},_0x1feaab={_0x2e675b:0x1c2,_0x230334:0x89};function _0x20b978(_0x289f6e,_0x1d36e2,_0x44f50e,_0x4496dd){return _0x3af67a(_0x289f6e-_0x1feaab._0x2e675b,_0x1d36e2-_0x1feaab._0x230334,_0x289f6e,_0x1d36e2-0xe1);}if(!_0x537b0f?.[_0x20b978(0x79,_0x3de2da._0x322fee,0x85,_0x3de2da._0x45f0fd)])return;throw toAbortError(_0x537b0f['reason']);}function addAbortListener(_0x43004b,_0x29f214){var _0x26e166={_0x43a1c5:0x496,_0x20fe09:0x4a6,_0x386ece:0x4a0,_0x50d085:0x24e,_0x4d7154:0x250,_0x1b393c:0x246},_0x2d98a3={_0xb74e32:0x1d6,_0x463d7e:0x2ad};if(!_0x43004b)return()=>{};if(_0x43004b[_0x7c2bdf(0x249,0x250,0x244,0x24b)])return _0x29f214(),()=>{};const _0x27e352=()=>{_0x29f214();};_0x43004b['addEventListener']('abort',_0x27e352,{'once':!![]});function _0x7c2bdf(_0x2b5de9,_0x57371e,_0x234098,_0x17d138){return _0x3af67a(_0x2b5de9-_0x2d98a3._0xb74e32,_0x57371e-0x72,_0x2b5de9,_0x17d138-_0x2d98a3._0x463d7e);}return()=>{var _0x42038e={_0x1acd83:0x1b6,_0x317628:0x493};function _0x16d9bf(_0x2dcb50,_0x2096dd,_0x464e86,_0x5f762f){return _0x7c2bdf(_0x2dcb50,_0x2096dd-0x1ae,_0x464e86-0x4d,_0x5f762f-0x251);}function _0x15cd44(_0x53f73b,_0x40d1b0,_0x43b479,_0x69b922){return _0x7c2bdf(_0x53f73b,_0x40d1b0-_0x42038e._0x1acd83,_0x43b479-0xa5,_0x40d1b0- -_0x42038e._0x317628);}_0x43004b[_0x16d9bf(_0x26e166._0x43a1c5,_0x26e166._0x20fe09,_0x26e166._0x386ece,0x49d)](_0x15cd44(-_0x26e166._0x50d085,-0x24a,-_0x26e166._0x4d7154,-_0x26e166._0x1b393c),_0x27e352);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ (function(_0x24bbdf,_0x2c87ad){var _0x5611aa={_0x465a5e:0x4e0,_0x59d965:0x2de,_0x112816:0x2f5,_0x56ab3a:0x2e5,_0x335d11:0x2e1,_0x16cc1c:0x2f0,_0x5b6f81:0x2e3,_0x5643a0:0x4cd,_0x541328:0x4c7,_0x3e00a4:0x2e8,_0x5222d9:0x2f2,_0x12e24e:0x4df,_0xdd785:0x4d8,_0x1f0eb3:0x4df,_0x1432a2:0x4d6,_0x543d51:0x4cc,_0x5aa473:0x4e4,_0x36d947:0x4d9},_0xdc0726={_0x222793:0x157},_0x36b6e8={_0x37ce11:0x341},_0x430037=_0x24bbdf();function _0x47fdce(_0x4f345a,_0x599420,_0x2a24f1,_0x4f4e2e){return _0x1dc7(_0x599420-_0x36b6e8._0x37ce11,_0x2a24f1);}function _0x9d1ed8(_0x4f9d78,_0x303fd8,_0x21f60c,_0x3855ec){return _0x1dc7(_0x303fd8-_0xdc0726._0x222793,_0x3855ec);}while(!![]){try{var _0x133a50=-parseInt(_0x47fdce(0x4de,0x4d9,0x4d3,_0x5611aa._0x465a5e))/0x1*(parseInt(_0x47fdce(0x4d6,0x4d2,0x4ce,0x4d9))/0x2)+-parseInt(_0x9d1ed8(_0x5611aa._0x59d965,0x2e9,_0x5611aa._0x112816,0x2ee))/0x3+parseInt(_0x9d1ed8(0x2e4,0x2ea,0x2f6,0x2f4))/0x4*(-parseInt(_0x9d1ed8(0x2ed,_0x5611aa._0x56ab3a,_0x5611aa._0x335d11,_0x5611aa._0x16cc1c))/0x5)+-parseInt(_0x9d1ed8(0x2e1,_0x5611aa._0x5b6f81,0x2d7,0x2e1))/0x6*(-parseInt(_0x47fdce(_0x5611aa._0x5643a0,0x4d0,0x4db,_0x5611aa._0x541328))/0x7)+parseInt(_0x9d1ed8(_0x5611aa._0x16cc1c,0x2eb,_0x5611aa._0x3e00a4,_0x5611aa._0x5222d9))/0x8*(parseInt(_0x47fdce(_0x5611aa._0x12e24e,0x4dd,0x4e6,0x4e2))/0x9)+parseInt(_0x47fdce(0x4d9,_0x5611aa._0xdd785,_0x5611aa._0x1f0eb3,0x4dd))/0xa+-parseInt(_0x47fdce(0x4d1,_0x5611aa._0x1432a2,_0x5611aa._0x543d51,0x4cb))/0xb*(-parseInt(_0x47fdce(_0x5611aa._0x5aa473,0x4dc,_0x5611aa._0x36d947,0x4d1))/0xc);if(_0x133a50===_0x2c87ad)break;else _0x430037['push'](_0x430037['shift']());}catch(_0x5ec74f){_0x430037['push'](_0x430037['shift']());}}}(_0x160a,0x19c40));function _0x1dc7(_0x4fc94a,_0x1ae502){_0x4fc94a=_0x4fc94a-0x18c;var _0x160a36=_0x160a();var _0x1dc7c8=_0x160a36[_0x4fc94a];if(_0x1dc7['xnBhVc']===undefined){var _0x2a6094=function(_0x2d3952){var _0x203458='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x490601='',_0x796fb4='';for(var _0x2ef410=0x0,_0x4c412b,_0x319fd9,_0x52168d=0x0;_0x319fd9=_0x2d3952['charAt'](_0x52168d++);~_0x319fd9&&(_0x4c412b=_0x2ef410%0x4?_0x4c412b*0x40+_0x319fd9:_0x319fd9,_0x2ef410++%0x4)?_0x490601+=String['fromCharCode'](0xff&_0x4c412b>>(-0x2*_0x2ef410&0x6)):0x0){_0x319fd9=_0x203458['indexOf'](_0x319fd9);}for(var _0x141406=0x0,_0x989ec=_0x490601['length'];_0x141406<_0x989ec;_0x141406++){_0x796fb4+='%'+('00'+_0x490601['charCodeAt'](_0x141406)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x796fb4);};_0x1dc7['oKUwAb']=_0x2a6094,_0x1dc7['VevoQO']={},_0x1dc7['xnBhVc']=!![];}var _0x44ddcf=_0x160a36[0x0],_0x31313c=_0x4fc94a+_0x44ddcf,_0x57a5fe=_0x1dc7['VevoQO'][_0x31313c];return!_0x57a5fe?(_0x1dc7c8=_0x1dc7['oKUwAb'](_0x1dc7c8),_0x1dc7['VevoQO'][_0x31313c]=_0x1dc7c8):_0x1dc7c8=_0x57a5fe,_0x1dc7c8;}function _0xf6049d(_0x4ee81a,_0xe29a74,_0x4e53a1,_0x1ed027){var _0x54d7e8={_0x154afc:0x49};return _0x1dc7(_0x1ed027-_0x54d7e8._0x154afc,_0xe29a74);}var OperationAbortedError=class extends Error{[_0x4edb2b(-0xef,-0xeb,-0xef,-0xe9)]=_0x4edb2b(-0xe7,-0xe4,-0xda,-0xdb);constructor(_0x490601=_0xf6049d(0x1e8,0x1e0,0x1e3,0x1e2)){var _0x1a28dd={_0x1aede2:0x25,_0x3ec2f3:0x56d,_0x3598fd:0x578},_0x428290={_0x35f980:0x652,_0x3f768a:0x12c};function _0x4ba137(_0x24bd3d,_0xdc1723,_0x25e6eb,_0x2f39dd){return _0x4edb2b(_0x24bd3d-0xe3,_0x24bd3d-_0x428290._0x35f980,_0xdc1723,_0x2f39dd-_0x428290._0x3f768a);}super(_0x490601);function _0xdfca62(_0x522b5e,_0x737e11,_0x17e971,_0x3b91b9){return _0xf6049d(_0x522b5e-0x105,_0x522b5e,_0x17e971-0x16d,_0x3b91b9- -0x1ca);}this[_0xdfca62(0x19,0x21,_0x1a28dd._0x1aede2,0x21)]=_0x4ba137(_0x1a28dd._0x3ec2f3,_0x1a28dd._0x3598fd,0x56a,0x56a);}};function toAbortError(_0x796fb4){var _0x1a0905={_0x526978:0x6e,_0x3bc623:0x66},_0x1329b2={_0x9bd258:0x28,_0x506b08:0x190,_0x42bf96:0x1a0},_0x479260={_0x50c793:0x18f,_0x1d9507:0x81};function _0x3ffcd4(_0x4c6383,_0x23eccc,_0x190ab6,_0x1f6b86){return _0x4edb2b(_0x4c6383-_0x479260._0x50c793,_0x23eccc-_0x479260._0x1d9507,_0x1f6b86,_0x1f6b86-0x137);}if(isAbortError(_0x796fb4))return _0x796fb4;function _0x59d309(_0x40fa8d,_0x245760,_0x77fc07,_0x2107a3){return _0x4edb2b(_0x40fa8d-_0x1329b2._0x9bd258,_0x77fc07-_0x1329b2._0x506b08,_0x245760,_0x2107a3-_0x1329b2._0x42bf96);}if(_0x796fb4 instanceof Error)return new OperationAbortedError(_0x796fb4[_0x3ffcd4(-0x73,-_0x1a0905._0x526978,-0x75,-0x79)]);if(typeof _0x796fb4===_0x3ffcd4(-0x62,-_0x1a0905._0x3bc623,-0x5c,-0x6c)&&_0x796fb4['length']>0x0)return new OperationAbortedError(_0x796fb4);return new OperationAbortedError();}function isAbortError(_0x2ef410){var _0x172d1a={_0x42cc3d:0x410,_0x2159be:0x418,_0x14858b:0x41c,_0x4af358:0x541,_0x3ed653:0x543},_0x472cf6={_0x43d1f6:0x1b9,_0xb8aab8:0x1a9,_0x5c7640:0x238},_0x3c043e={_0x356934:0x627,_0x1b0a59:0x54};function _0x26b080(_0x529a90,_0x5d9efc,_0x52406b,_0x48897e){return _0x4edb2b(_0x529a90-0x21,_0x529a90-_0x3c043e._0x356934,_0x48897e,_0x48897e-_0x3c043e._0x1b0a59);}function _0x5e536e(_0x5c1286,_0x5e014c,_0x39e9c3,_0x58d2a4){return _0xf6049d(_0x5c1286-_0x472cf6._0x43d1f6,_0x5c1286,_0x39e9c3-_0x472cf6._0xb8aab8,_0x58d2a4-_0x472cf6._0x5c7640);}return _0x2ef410 instanceof OperationAbortedError||_0x2ef410 instanceof Error&&(_0x2ef410[_0x5e536e(0x41c,0x42b,0x417,0x423)]==='AbortError'||_0x5e536e(_0x172d1a._0x42cc3d,_0x172d1a._0x2159be,_0x172d1a._0x14858b,0x41b)in _0x2ef410&&_0x2ef410[_0x26b080(0x53c,_0x172d1a._0x4af358,0x535,0x53b)]===_0x26b080(_0x172d1a._0x3ed653,0x54d,0x54b,0x544));}function _0x160a(){var _0x406bc9=['BMfTzq','mtqWodG2t2LKv0r2','ywrKrxzLBNrmAxn0zw5LCG','odbqALbMBMK','n05LzfLkyq','CMvTB3zLrxzLBNrmAxn0zw5LCG','mJeYrfzsCvnT','mZi2mdeZvu9MtKPq','ndq5odbQDgD4zNu','odG5mZzWALbOrLq','odqYndm1ug5Zt0fW','BwvZC2fNzq','otC5mtbrrLrLvvO','nJuXq1znvvfU','t3bLCMf0Aw9UigfIB3j0zwq','y29Kzq','mZzfAeDotNG','mtyYv2fly2Ly','ywjVCNq','C3rYAw5N','ywjVCNrLza','qwjVCNrfCNjVCG','qujpuLrFrvjs'];_0x160a=function(){return _0x406bc9;};return _0x160a();}function _0x4edb2b(_0x214500,_0x5b37f8,_0x509651,_0x5df56d){return _0x1dc7(_0x5b37f8- -0x285,_0x509651);}function throwIfAborted(_0x4c412b){var _0x329922={_0x160be6:0x139,_0x494e6d:0x14c},_0x49b95d={_0x1596b3:0x1dd,_0x3d92bf:0x142,_0x43db30:0xa4};if(!_0x4c412b?.[_0x3513fe(_0x329922._0x160be6,0x144,_0x329922._0x494e6d,0x140)])return;function _0x3513fe(_0x8d4381,_0x26c194,_0x4e573c,_0x371255){return _0xf6049d(_0x8d4381-_0x49b95d._0x1596b3,_0x371255,_0x4e573c-_0x49b95d._0x3d92bf,_0x26c194- -_0x49b95d._0x43db30);}throw toAbortError(_0x4c412b['reason']);}function addAbortListener(_0x319fd9,_0x52168d){var _0x261e3b={_0x43f12a:0xb7,_0x30b7a2:0x65,_0x2fcbc7:0x62},_0x5d7fc2={_0x259c31:0x1ed,_0x14ed9f:0x1e4,_0xaba7f0:0x1e2,_0x6f1d29:0x181,_0x930442:0x182,_0x28a042:0x178},_0x248d7e={_0x30919:0x4d},_0x52f2ed={_0x3d8810:0x14d,_0x4720bd:0xa8},_0x211083={_0x34f90f:0x166,_0x1af93f:0x16e};if(!_0x319fd9)return()=>{};function _0x26248d(_0x46fc26,_0x249a08,_0x41fcca,_0x3ffb49){return _0xf6049d(_0x46fc26-_0x211083._0x34f90f,_0x41fcca,_0x41fcca-_0x211083._0x1af93f,_0x46fc26- -0x28d);}if(_0x319fd9[_0x26248d(-0xa5,-0x9b,-0xa2,-0x9f)])return _0x52168d(),()=>{};const _0x141406=()=>{_0x52168d();};function _0x19fe87(_0x527461,_0x4a32e5,_0x4de626,_0x5d8352){return _0x4edb2b(_0x527461-0x38,_0x4a32e5-_0x52f2ed._0x3d8810,_0x4de626,_0x5d8352-_0x52f2ed._0x4720bd);}return _0x319fd9[_0x26248d(-_0x261e3b._0x43f12a,-0xba,-0xc0,-0xc2)](_0x19fe87(0x6d,_0x261e3b._0x30b7a2,0x64,_0x261e3b._0x2fcbc7),_0x141406,{'once':!![]}),()=>{var _0x4bd7ca={_0x168f91:0xda,_0x5983fa:0xa2};function _0x154bb9(_0x5754f8,_0x24b9e0,_0x25e272,_0x104077){return _0x26248d(_0x5754f8- -_0x4bd7ca._0x168f91,_0x24b9e0-_0x4bd7ca._0x5983fa,_0x25e272,_0x104077-0x17a);}function _0x3cf69c(_0x3e072f,_0x2f9077,_0x29582c,_0x3b2d3a){return _0x26248d(_0x3e072f-0x2a1,_0x2f9077-0x105,_0x3b2d3a,_0x3b2d3a-_0x248d7e._0x30919);}_0x319fd9[_0x3cf69c(_0x5d7fc2._0x259c31,_0x5d7fc2._0x14ed9f,_0x5d7fc2._0xaba7f0,0x1e6)](_0x154bb9(-_0x5d7fc2._0x6f1d29,-0x186,-_0x5d7fc2._0x930442,-_0x5d7fc2._0x28a042),_0x141406);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};