@nuvin/agent-core 0.4.0-rc.6 → 0.4.0-rc.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nuvin/agent-core",
3
- "version": "0.4.0-rc.6",
3
+ "version": "0.4.0-rc.8",
4
4
  "private": false,
5
5
  "description": "Core agent, model, format, and tool primitives for Nuvin",
6
6
  "license": "Apache-2.0",
@@ -1 +0,0 @@
1
- (function(_0x270acb,_0x505033){const _0x25ddee={_0x4e2422:0x326,_0x897e3c:0xfb,_0x3026e2:0x1b3,_0x33b0ce:0x16a,_0x1eff82:0x2ad,_0x1da7a7:0x313,_0x5a122d:0x2c3,_0x2f5e2b:0x25,_0x30b323:0x299,_0x2359b9:0x1d,_0x2d0e84:0x9c,_0x208640:0x1ed,_0x1f4a0c:0x106,_0x209c75:0x65,_0x10eb34:0x102,_0x496d18:0x2d0};function _0x59c5a7(_0x3d9cf6,_0x2e88c5,_0x2a4d97,_0x675136){return _0x3bcc(_0x675136- -0x27b,_0x3d9cf6);}function _0x1bb244(_0x34c8ae,_0x3922c8,_0x39f6cf,_0x4fa694){return _0x3bcc(_0x39f6cf-0x173,_0x3922c8);}const _0x4eef0f=_0x270acb();while(!![]){try{const _0x16c84a=-parseInt(_0x1bb244(0x334,0x2a9,_0x25ddee._0x4e2422,0x2d2))/0x1*(-parseInt(_0x59c5a7(-_0x25ddee._0x897e3c,-0x12c,-0x22a,-_0x25ddee._0x3026e2))/0x2)+-parseInt(_0x59c5a7(-_0x25ddee._0x33b0ce,-0x15e,-0xad,-0xba))/0x3+-parseInt(_0x1bb244(0x2ff,_0x25ddee._0x1eff82,_0x25ddee._0x1da7a7,_0x25ddee._0x5a122d))/0x4*(parseInt(_0x59c5a7(-0x13e,-0x59,-_0x25ddee._0x2f5e2b,-0xb2))/0x5)+parseInt(_0x1bb244(_0x25ddee._0x30b323,0x24c,0x2d7,0x379))/0x6+-parseInt(_0x59c5a7(_0x25ddee._0x2359b9,0x20,-0xa1,-_0x25ddee._0x2d0e84))/0x7*(-parseInt(_0x59c5a7(-0x1a5,-_0x25ddee._0x208640,-0x266,-0x1ba))/0x8)+parseInt(_0x59c5a7(-_0x25ddee._0x1f4a0c,-_0x25ddee._0x209c75,-0x6b,-_0x25ddee._0x10eb34))/0x9+parseInt(_0x1bb244(0x35f,_0x25ddee._0x496d18,0x320,0x3e0))/0xa;if(_0x16c84a===_0x505033)break;else _0x4eef0f['push'](_0x4eef0f['shift']());}catch(_0x337e81){_0x4eef0f['push'](_0x4eef0f['shift']());}}}(_0x14fc,0x62cfa));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError,isAgentOnlyCoordinatorNotice}from'./chunk-YTDATWXW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';import{randomUUID}from'crypto';import{constants as _0x5b84e7}from'fs';import*as _0x5826ad from'fs/promises';import*as _0x27580f from'path';var BASH_OUTPUT_MAX_BYTES=0x4000000,OUTPUT_WRITE_HIGH_WATER_BYTES=0x40*0x400,MAX_STATUS_BYTES=0x10*0x400,MAX_ID_CHARS=0x80,MAX_ERROR_CHARS=0x40,MAX_PATH_CHARS=0x1000,EXECUTION_STATES=new Set([_0x28d661(0x1a6,0xf5,0x241,0x1a6),_0x28d661(0x2c8,0x185,0x234,0x215),_0x1ea0ad(0xff,0x87,-0x2,0x4c),_0x1ea0ad(0xf7,0xae,0x160,0x6b),'killed',_0x28d661(0x15a,0x162,0x148,0x1af),_0x1ea0ad(0x157,0xc9,0x35,0x177)]),CAPTURE_STATES=new Set([_0x28d661(0x21b,0xfd,0x19c,0x196),'complete','truncated',_0x1ea0ad(-0x89,-0x4,-0x16,-0x26),_0x1ea0ad(-0x95,-0x3,0xb8,-0x7e)]),TERMINAL_EXECUTION_STATES=new Set([_0x28d661(0x293,0x1df,0x2be,0x261),'killed',_0x28d661(0x120,0x25f,0x10a,0x1af),_0x1ea0ad(0x137,0xc9,0xc8,0x91)]);function createArtifactNormalizer(){const _0x459b6c={_0x58a596:0xab,_0x30896a:0x5d,_0x35ba7a:0x42},_0x799686={_0x2d58c1:0x162};let _0x5720fc=![],_0x473ffc=![];return{'write'(_0x1de8ab){if(_0x473ffc)return'';function _0x204a3a(_0x373d0f,_0x4e776b,_0x56e43c,_0x555e79){return _0x3bcc(_0x555e79- -0x1b8,_0x4e776b);}let _0x12e837='';for(const _0x136de3 of _0x1de8ab){if(_0x5720fc){_0x5720fc=![];if(_0x136de3==='\x0a')continue;}if(_0x136de3==='\x0d')_0x12e837+='\x0a',_0x5720fc=!![];else{if(_0x136de3==='\x0a'||_0x136de3==='\x09')_0x12e837+=_0x136de3;else{const _0x31eab2=_0x136de3[_0x204a3a(-0x16c,-0x51,-0xa0,-0xb4)](0x0)??0x0;_0x12e837+=_0x31eab2<0x20||_0x31eab2>=0x7f&&_0x31eab2<=0x9f?'\x5cu'+_0x31eab2['toString'](0x10)[_0x204a3a(-0xda,-_0x459b6c._0x58a596,_0x459b6c._0x30896a,-_0x459b6c._0x35ba7a)](0x4,'0'):_0x136de3;}}}function _0xd56c2b(_0x3f9d4d,_0x565eba,_0x1ec13c,_0x18e9d6){return _0x3bcc(_0x565eba- -_0x799686._0x2d58c1,_0x3f9d4d);}return _0x12e837;},'end'(){return _0x473ffc=!![],_0x5720fc=![],'';}};}function boundErrorCode(_0x56a2c6){const _0x2b44de={_0x1f2e3b:0xf1,_0x202477:0x110,_0x453d4c:0x38e,_0x877e8b:0x2d0},_0x39e4d7={_0x198132:0x8b};function _0x4d37ae(_0x2c3b47,_0xa17a5,_0x25d1c0,_0x49cb32){return _0x28d661(_0xa17a5,_0xa17a5-0x4b,_0x25d1c0-0x104,_0x25d1c0-0x71);}function _0xcc9c2e(_0x19be73,_0x2b3c4e,_0x14104e,_0x8780e3){return _0x1ea0ad(_0x2b3c4e,_0x8780e3-0x144,_0x14104e-_0x39e4d7._0x198132,_0x8780e3-0x157);}return _0x56a2c6[_0xcc9c2e(0x16f,0xaf,_0x2b44de._0x1f2e3b,_0x2b44de._0x202477)]<=MAX_ERROR_CHARS?_0x56a2c6:_0x56a2c6[_0x4d37ae(0x26e,_0x2b44de._0x453d4c,_0x2b44de._0x877e8b,0x320)](0x0,MAX_ERROR_CHARS);}function artifactError(_0x2f69bb,_0x464f90){const _0x130ad2={_0x115ee9:0x419},_0x136c48={_0x11d6eb:0x475};function _0x8163c0(_0x4e54fb,_0x18e480,_0x3aa509,_0x16f75b){return _0x1ea0ad(_0x16f75b,_0x3aa509-_0x136c48._0x11d6eb,_0x3aa509-0x1c9,_0x16f75b-0x183);}return Object[_0x8163c0(0x384,0x39c,0x405,_0x130ad2._0x115ee9)](new Error(_0x464f90),{'code':_0x2f69bb});}function stableErrorCode(_0x36cf08,_0x559098){const _0x2525a7={_0x555435:0x15,_0x10046d:0xc8,_0x15afa2:0x21,_0x2d9cc2:0x1f,_0x56e87c:0x2f,_0xa1adc9:0xee,_0x4fb31f:0x4a,_0x4a1bb4:0x2d,_0x57cdee:0x32,_0xa186da:0x35,_0x4a95e6:0x1d,_0x230ec6:0x72,_0x858f60:0x9b,_0x27df93:0x49},_0x329c35={_0x54e9a9:0x8f},_0x4e7620={_0x3fcb74:0x17b};function _0x44a52d(_0x24bd5a,_0x5a94c4,_0x4772ab,_0x14605e){return _0x28d661(_0x4772ab,_0x5a94c4-0xc2,_0x4772ab-0x171,_0x14605e- -_0x4e7620._0x3fcb74);}if(typeof _0x36cf08===_0x5da104(_0x2525a7._0x555435,_0x2525a7._0x10046d,_0x2525a7._0x15afa2,_0x2525a7._0x2d9cc2)&&_0x36cf08!==null&&'code'in _0x36cf08&&typeof _0x36cf08[_0x44a52d(0x90,_0x2525a7._0x56e87c,0x9f,0x49)]===_0x5da104(-_0x2525a7._0xa1adc9,0x46,-_0x2525a7._0x4fb31f,-0xf5)&&/^E[A-Z0-9_]{1,63}$/[_0x44a52d(-_0x2525a7._0x4a1bb4,-_0x2525a7._0x57cdee,_0x2525a7._0xa186da,-_0x2525a7._0x4a95e6)](_0x36cf08['code']))return _0x36cf08[_0x44a52d(_0x2525a7._0x230ec6,0xe5,_0x2525a7._0x858f60,_0x2525a7._0x27df93)];function _0x5da104(_0x3c2079,_0xf26738,_0x24c167,_0x3cd459){return _0x1ea0ad(_0xf26738,_0x24c167- -0x51,_0x24c167-_0x329c35._0x54e9a9,_0x3cd459-0xfc);}return _0x559098;}function throwMapped(_0x5785a4,_0x218c9b){const _0x36c18b=stableErrorCode(_0x5785a4,_0x218c9b);throw artifactError(_0x36c18b,_0x36c18b);}function isErrno(_0x31a53f,_0x54a8ac){const _0x449ce0={_0x10590f:0x8e,_0x59e9ab:0x69,_0x4456e0:0x109,_0x53e45a:0x2c8,_0x3266d1:0x22a,_0x44a76d:0x293},_0x7ae069={_0x1429a8:0x131};function _0x274de6(_0x16f900,_0x2d32b3,_0x4d68ec,_0x5ca639){return _0x1ea0ad(_0x2d32b3,_0x5ca639- -0xdb,_0x4d68ec-_0x7ae069._0x1429a8,_0x5ca639-0x1b0);}function _0x52d14e(_0x16a09a,_0x28e106,_0x8f2719,_0x258050){return _0x1ea0ad(_0x8f2719,_0x28e106- -0x250,_0x8f2719-0x88,_0x258050-0x150);}return typeof _0x31a53f===_0x274de6(-0xcf,-_0x449ce0._0x10590f,0xa,-_0x449ce0._0x59e9ab)&&_0x31a53f!==null&&_0x274de6(-_0x449ce0._0x4456e0,-0xde,-0xe6,-0xca)in _0x31a53f&&_0x31a53f[_0x52d14e(-_0x449ce0._0x53e45a,-0x23f,-_0x449ce0._0x3266d1,-_0x449ce0._0x44a76d)]===_0x54a8ac;}function exclusiveWriteFlags(){const _0x3dc482={_0x31ebee:0x2e8,_0x21b838:0x30b,_0x2ce527:0x1c6,_0x15c1fb:0x1ed,_0x2b2e47:0x13,_0x5b80a3:0x8c,_0x2deda7:0xe1,_0x313c9a:0x188,_0x9a9709:0x1e5,_0x97134f:0x16,_0x944d56:0x51,_0x3245d3:0x2b},_0x1d5b1b={_0x106c1d:0x1a7},_0x1824ea={_0x274729:0x128};let _0x336dee=_0x5b84e7[_0x3e8ab0(0x2ea,_0x3dc482._0x31ebee,0x2f7,0x2fc)]|_0x5b84e7['O_CREAT']|_0x5b84e7[_0x3e8ab0(0x263,_0x3dc482._0x21b838,_0x3dc482._0x2ce527,_0x3dc482._0x15c1fb)];function _0x3e482a(_0x779d22,_0x596849,_0xa455fc,_0x1f0ada){return _0x1ea0ad(_0x1f0ada,_0x596849-0x14,_0xa455fc-0x107,_0x1f0ada-_0x1824ea._0x274729);}function _0x3e8ab0(_0x421c42,_0x4c0060,_0x41d6be,_0xc55966){return _0x1ea0ad(_0xc55966,_0x421c42-0x296,_0x41d6be-0x20,_0xc55966-_0x1d5b1b._0x106c1d);}return typeof _0x5b84e7[_0x3e482a(_0x3dc482._0x2b2e47,-0x51,-_0x3dc482._0x5b80a3,-_0x3dc482._0x2deda7)]===_0x3e8ab0(0x220,0x2d4,_0x3dc482._0x313c9a,_0x3dc482._0x9a9709)&&(_0x336dee|=_0x5b84e7[_0x3e482a(-_0x3dc482._0x97134f,-_0x3dc482._0x944d56,0x3a,_0x3dc482._0x3245d3)]),_0x336dee;}function isBoundedString(_0x25d4e2,_0x198527,_0x2adb38=![]){const _0x50a440={_0x3f3388:0x141,_0x4e74a2:0xbe,_0x4a52c6:0x83,_0x295200:0xe1,_0x1c4ef8:0xdc,_0x293ba6:0x9f},_0x5e3e08={_0x2475dd:0x42},_0x59efdf={_0x4f2b07:0xa8,_0x4292dc:0x8d};function _0x4791f7(_0x1ab7f1,_0x423cac,_0x5934f8,_0x4cdfba){return _0x1ea0ad(_0x1ab7f1,_0x423cac- -_0x59efdf._0x4f2b07,_0x5934f8-_0x59efdf._0x4292dc,_0x4cdfba-0x1aa);}function _0x396fd1(_0x55b675,_0x26e657,_0x1390a5,_0x5e8c75){return _0x28d661(_0x1390a5,_0x26e657-0x1a6,_0x1390a5-_0x5e3e08._0x2475dd,_0x5e8c75- -0xd9);}return typeof _0x25d4e2===_0x4791f7(0xf,-0xa1,-0x128,-_0x50a440._0x3f3388)&&(_0x2adb38||_0x25d4e2[_0x396fd1(0xa2,_0x50a440._0x4e74a2,_0x50a440._0x4a52c6,0xa6)]>0x0)&&_0x25d4e2[_0x4791f7(-_0x50a440._0x295200,-_0x50a440._0x1c4ef8,-0x177,-_0x50a440._0x293ba6)]<=_0x198527&&!_0x25d4e2['includes']('\x00');}function isAbsolutePath(_0x33b66b){const _0x33fda4={_0x1d8c69:0x52f,_0x231172:0x48f,_0x1ccf94:0x4eb},_0x26db58={_0x3acfca:0x15,_0x2c82f7:0x16e,_0x47bdd9:0x29a},_0x151dfe={_0x2bd502:0x46,_0x502a4e:0xf6};function _0x44eda5(_0x25009b,_0x2de5b9,_0x170246,_0x569ed2){return _0x28d661(_0x569ed2,_0x2de5b9-0x12f,_0x170246-_0x151dfe._0x2bd502,_0x2de5b9- -_0x151dfe._0x502a4e);}function _0x118241(_0x5dbafb,_0x16514f,_0x5d30ae,_0x516d24){return _0x28d661(_0x5dbafb,_0x16514f-_0x26db58._0x3acfca,_0x5d30ae-_0x26db58._0x2c82f7,_0x516d24-_0x26db58._0x47bdd9);}return isBoundedString(_0x33b66b,MAX_PATH_CHARS)&&_0x27580f[_0x118241(0x417,0x47f,0x494,0x4b0)](_0x33b66b)&&_0x27580f[_0x118241(_0x33fda4._0x1d8c69,_0x33fda4._0x231172,_0x33fda4._0x1ccf94,0x4cc)](_0x33b66b)===_0x33b66b;}function isFiniteTime(_0x4006c7){const _0x3bf17e={_0x4d25d8:0x329,_0x5ba124:0x205,_0x5ed96f:0x289},_0xf244f7={_0x8e3af8:0xc6,_0x487c05:0x106};function _0x21503b(_0x27c039,_0x682966,_0xb1804c,_0xa56888){return _0x28d661(_0x27c039,_0x682966-0x83,_0xb1804c-_0xf244f7._0x8e3af8,_0xa56888-_0xf244f7._0x487c05);}return typeof _0x4006c7==='number'&&Number[_0x21503b(0x22d,_0x3bf17e._0x4d25d8,_0x3bf17e._0x5ba124,_0x3bf17e._0x5ed96f)](_0x4006c7);}function isNullableInteger(_0x521218){const _0x2fd8e2={_0x1e4902:0x76},_0x12e4ce={_0x184058:0x105};function _0x525ca3(_0xf087d2,_0x118fe7,_0x3c464e,_0x3039ba){return _0x28d661(_0x3c464e,_0x118fe7-_0x12e4ce._0x184058,_0x3c464e-0x15e,_0xf087d2- -0x9);}return _0x521218===null||typeof _0x521218===_0x525ca3(0x134,0x143,0xc7,_0x2fd8e2._0x1e4902)&&Number['isInteger'](_0x521218);}function isNullableBoundedString(_0x44ae7f,_0x4f4fc5){return _0x44ae7f===null||isBoundedString(_0x44ae7f,_0x4f4fc5);}function assertBoundedId(_0xa06739,_0x70cef){const _0x496332={_0x301982:0x5a,_0x1b48f5:0x2de,_0x179bbc:0x2fa,_0x1a8f88:0x274},_0x1cab0d={_0x50bad1:0x64,_0xa2ebfe:0x147},_0x3b7c26={_0x1c6469:0x1a5};function _0x194141(_0x2c8607,_0x539c78,_0x528e93,_0x24525a){return _0x1ea0ad(_0x528e93,_0x539c78-0x7e,_0x528e93-_0x3b7c26._0x1c6469,_0x24525a-0x163);}function _0x55b775(_0x302400,_0x5a0f99,_0xfda78d,_0x470403){return _0x28d661(_0xfda78d,_0x5a0f99-0x17d,_0xfda78d-_0x1cab0d._0x50bad1,_0x470403-_0x1cab0d._0xa2ebfe);}if(!isBoundedString(_0xa06739,MAX_ID_CHARS))throw artifactError(_0x194141(_0x496332._0x301982,0x93,0x84,0x14a),_0x55b775(_0x496332._0x1b48f5,_0x496332._0x179bbc,_0x496332._0x1a8f88,0x2b4)+_0x70cef);}function takeUtf8Prefix(_0x583e5a,_0x13f67b){const _0x131b7f={_0x340f68:0x174,_0x5ae332:0xfe,_0x467901:0x1e1,_0x8f26ee:0x20d,_0x3b8022:0xa4,_0x50b9d2:0x5b,_0x10e39c:0x115,_0x2e66b8:0xdb},_0x1ef68a={_0x56a8e6:0x159},_0x4f491f={_0x32b85b:0x67};if(_0x13f67b<=0x0)return'';let _0x2476fa=0x0;function _0xf28240(_0x2377c4,_0x4104c6,_0x5df0cb,_0x53f0f1){return _0x1ea0ad(_0x2377c4,_0x4104c6- -0xf0,_0x5df0cb-_0x4f491f._0x32b85b,_0x53f0f1-0x1b5);}let _0x43cdf6=0x0;for(const _0x2791af of _0x583e5a){const _0x4e9c3e=Buffer[_0xf28240(-0x204,-_0x131b7f._0x340f68,-_0x131b7f._0x5ae332,-0x12e)](_0x2791af,'utf8');if(_0x2476fa+_0x4e9c3e>_0x13f67b)break;_0x2476fa+=_0x4e9c3e,_0x43cdf6+=_0x2791af[_0xf07ed0(-_0x131b7f._0x467901,-_0x131b7f._0x8f26ee,-0x1f5,-0x1e7)];}function _0xf07ed0(_0x167612,_0x126209,_0x515783,_0x167978){return _0x1ea0ad(_0x167978,_0x515783- -0x1c1,_0x515783-_0x1ef68a._0x56a8e6,_0x167978-0x183);}return _0x583e5a[_0xf07ed0(-_0x131b7f._0x3b8022,-_0x131b7f._0x50b9d2,-_0x131b7f._0x10e39c,-_0x131b7f._0x2e66b8)](0x0,_0x43cdf6);}function boundNullableCode(_0x23a0c4){if(_0x23a0c4===null)return null;return boundErrorCode(_0x23a0c4);}async function writeAll(_0x564520,_0x43fbf0){const _0x44deb3={_0x4f0154:0xac,_0x54ce68:0x7b,_0x535e72:0x6d,_0x4d6918:0x4e,_0x353bab:0x7b,_0x2456b3:0x2b2,_0x1f1aa2:0x298},_0x115cc0={_0x5da7e5:0x40,_0x28cabf:0x35},_0x333374={_0x40ba5f:0x67};function _0x208f18(_0x2f8756,_0x2f8cbc,_0xa45f0f,_0x21636e){return _0x1ea0ad(_0xa45f0f,_0x21636e-0x9,_0xa45f0f-0x14c,_0x21636e-_0x333374._0x40ba5f);}function _0x486d00(_0x580ff9,_0x4fcc3d,_0x2635aa,_0x182cf1){return _0x1ea0ad(_0x4fcc3d,_0x580ff9-0x318,_0x2635aa-_0x115cc0._0x5da7e5,_0x182cf1-_0x115cc0._0x28cabf);}let _0x288a9f=0x0;while(_0x288a9f<_0x43fbf0[_0x208f18(-_0x44deb3._0x4f0154,-0x33,-0x120,-_0x44deb3._0x54ce68)]){const _0x430368=await _0x564520[_0x208f18(-_0x44deb3._0x535e72,-0x44,-0x5d,-_0x44deb3._0x4d6918)](_0x43fbf0,_0x288a9f,_0x43fbf0[_0x208f18(-0x2c,-0x1b,0x39,-_0x44deb3._0x353bab)]-_0x288a9f);if(_0x430368['bytesWritten']<=0x0)throw artifactError(_0x486d00(_0x44deb3._0x2456b3,_0x44deb3._0x1f1aa2,0x353,0x28e),'Output\x20write\x20wrote\x20no\x20bytes');_0x288a9f+=_0x430368['bytesWritten'];}}async function canonicalDirectory(_0x383bbe){const _0xfb505c={_0xfc8311:0x17b,_0x2dea4c:0x4ba,_0x1a61c8:0x4a3,_0x42a4df:0x4a0,_0x34fb72:0x420,_0x207763:0x413,_0x537cb3:0x10e,_0x24b830:0x9e,_0x20efb1:0x13c,_0x9ded75:0x3e0,_0x4557b1:0xd7,_0x4e9d35:0xb7},_0x5d2e4f={_0x1742e0:0x3e,_0x1b016f:0x159,_0x5a9ff4:0x2c9},_0x44d1c8={_0xa95e1:0x3ba,_0x2bbb7e:0xb2},_0x4419e5=await _0x5826ad['lstat'](_0x383bbe);if(_0x4419e5[_0x5051de(-0xec,-_0xfb505c._0xfc8311,-0x158,-0x1ee)]()||await _0x5826ad[_0x549a01(0x45f,_0xfb505c._0x2dea4c,_0xfb505c._0x1a61c8,_0xfb505c._0x42a4df)](_0x383bbe)!==_0x383bbe)throw artifactError(_0x549a01(0x3ed,_0xfb505c._0x34fb72,0x478,_0xfb505c._0x207763),_0x5051de(-0x10c,-_0xfb505c._0x537cb3,-_0xfb505c._0x24b830,-_0xfb505c._0x20efb1));if(!_0x4419e5[_0x549a01(0x349,_0xfb505c._0x9ded75,0x3cd,0x348)]())throw artifactError(_0x5051de(-_0xfb505c._0x4557b1,-0x19a,-0x14f,-0xf4),_0x5051de(-0xa1,-0xc0,-_0xfb505c._0x4e9d35,-0xa3));function _0x549a01(_0x59ced9,_0x173a01,_0x524230,_0x4a4c5e){return _0x1ea0ad(_0x59ced9,_0x4a4c5e-_0x44d1c8._0xa95e1,_0x524230-_0x44d1c8._0x2bbb7e,_0x4a4c5e-0xd1);}function _0x5051de(_0x5b6745,_0x4a9058,_0x597445,_0x4559c0){return _0x28d661(_0x4559c0,_0x4a9058-_0x5d2e4f._0x1742e0,_0x597445-_0x5d2e4f._0x1b016f,_0x597445- -_0x5d2e4f._0x5a9ff4);}return _0x4419e5;}async function ensureDirectory(_0x4e4601){const _0x3ca545={_0x237b26:0x3a4,_0x8d6d88:0x3cd,_0x224da5:0x3ac,_0x35f308:0x419,_0x5b4f9a:0x1fc,_0x333819:0x42e,_0x51915a:0x37d},_0x33a565={_0x2b2d15:0x0},_0x140b8a={_0x4eabe7:0x3e3};function _0x2720d4(_0x24f6b6,_0xa0342a,_0x378d3e,_0x489aae){return _0x1ea0ad(_0x489aae,_0xa0342a-_0x140b8a._0x4eabe7,_0x378d3e-0xb2,_0x489aae-0x171);}function _0x36a0cb(_0x4cd6bd,_0x31eedf,_0x13a608,_0x6d161c){return _0x28d661(_0x4cd6bd,_0x31eedf-0xcf,_0x13a608-_0x33a565._0x2b2d15,_0x31eedf- -0x3dd);}try{try{await _0x5826ad[_0x2720d4(_0x3ca545._0x237b26,_0x3ca545._0x8d6d88,0x45a,_0x3ca545._0x224da5)](_0x4e4601,{'mode':0x1c0});}catch(_0x286dff){if(!isErrno(_0x286dff,_0x2720d4(0x40d,0x384,0x3d4,_0x3ca545._0x35f308)))throw _0x286dff;}await canonicalDirectory(_0x4e4601),await _0x5826ad[_0x36a0cb(-0x219,-_0x3ca545._0x5b4f9a,-0x1a9,-0x25b)](_0x4e4601,0x1c0);}catch(_0x23c9ce){throwMapped(_0x23c9ce,_0x2720d4(_0x3ca545._0x333819,_0x3ca545._0x51915a,0x336,0x377));}}async function validateArtifactFiles(_0x55a0d0){const _0x2aa3ca={_0x5a1d32:0x2e1,_0x3beb01:0xfa,_0x537e1a:0x1b3,_0x1db334:0xb7,_0x619e2:0x177,_0x3bc264:0x159,_0x181816:0x1cf,_0x1b3f8c:0x178,_0x6d48cb:0x27d,_0x38a644:0x226,_0x21cdeb:0x20a,_0x3b6b5b:0x13b,_0x1ee981:0x1be,_0x306c20:0x200,_0x383583:0x27d,_0x38e0c1:0x1a9,_0x558748:0x229,_0x37596a:0x186,_0x106580:0x160},_0x204afe={_0x30b9fd:0xa0},_0x1f2963=_0x27580f[_0x503927(_0x2aa3ca._0x5a1d32,0x289,0x25f,0x2dc)](_0x55a0d0[_0x187f6b(0xf2,0x64,0x1ab,_0x2aa3ca._0x3beb01)]);function _0x187f6b(_0x4966f5,_0x4c6066,_0x1c15cc,_0x2dae50){return _0x1ea0ad(_0x2dae50,_0x4966f5-0x169,_0x1c15cc-0x1d8,_0x2dae50-0x97);}function _0x503927(_0x426e6c,_0x2f7a72,_0x34fa74,_0x1ed743){return _0x1ea0ad(_0x2f7a72,_0x1ed743-0x1ef,_0x34fa74-0x57,_0x1ed743-_0x204afe._0x30b9fd);}const _0x5a994=await canonicalDirectory(_0x1f2963);for(const _0x138893 of[_0x55a0d0[_0x503927(_0x2aa3ca._0x537e1a,0x1fc,_0x2aa3ca._0x1db334,_0x2aa3ca._0x619e2)],_0x55a0d0[_0x503927(_0x2aa3ca._0x3bc264,0x1d7,_0x2aa3ca._0x181816,_0x2aa3ca._0x1b3f8c)]]){try{const _0x553771=await _0x5826ad[_0x503927(_0x2aa3ca._0x6d48cb,0x163,_0x2aa3ca._0x38a644,0x1e0)](_0x138893);if(_0x553771[_0x503927(_0x2aa3ca._0x21cdeb,_0x2aa3ca._0x3b6b5b,0x15e,0x1ad)]())throw artifactError(_0x187f6b(0x1c2,0x1f6,_0x2aa3ca._0x1ee981,_0x2aa3ca._0x306c20),_0x187f6b(0x234,0x284,0x1ac,_0x2aa3ca._0x383583));if(!_0x553771[_0x503927(0x1ea,_0x2aa3ca._0x38e0c1,_0x2aa3ca._0x558748,0x246)]()||_0x553771['nlink']!==0x1)throw artifactError(_0x503927(0x2a5,_0x2aa3ca._0x37596a,0x170,0x204),_0x187f6b(0x1eb,0x1b4,0x17b,_0x2aa3ca._0x106580));}catch(_0xc7892b){if(!isErrno(_0xc7892b,_0x187f6b(0x247,0x1e5,0x198,0x264)))throw _0xc7892b;}}return _0x5a994;}var STATUS_KEYS=new Set(['version','artifactId','outputPath',_0x1ea0ad(0x9,-0x77,-0x122,-0xe9),_0x1ea0ad(0x61,0xa3,0x6a,0x146),_0x1ea0ad(-0xdd,-0x4d,0xe,-0xf0),_0x28d661(0x1c9,0xaa,0x193,0x153),_0x28d661(0x196,0x2af,0x24d,0x1f4),_0x1ea0ad(0x57,0x23,-0x80,-0x18),_0x1ea0ad(0x76,-0x1,0xa6,0x3c),'errorCode','finishedAt',_0x28d661(0x1a6,0x273,0x146,0x1df),'bytesRetained',_0x1ea0ad(0x83,0x6c,0x122,0x80),_0x1ea0ad(0x72,-0x44,-0xfd,-0x7e),_0x1ea0ad(0x2e,0xa0,-0xf,0x11d),'startedAt',_0x1ea0ad(0x57,0x50,-0x17,0xfd)]);function isRecord(_0x3c4ebe){const _0x993d8e={_0x4b383b:0x59b,_0x371af8:0x5ad},_0x50dd55={_0x838dc4:0x132};function _0x4e141d(_0x49149e,_0x48bfa0,_0x142281,_0x45b8de){return _0x28d661(_0x48bfa0,_0x48bfa0-0xda,_0x142281-_0x50dd55._0x838dc4,_0x45b8de-0x32e);}return typeof _0x3c4ebe==='object'&&_0x3c4ebe!==null&&!Array[_0x4e141d(_0x993d8e._0x4b383b,0x52c,0x5a9,_0x993d8e._0x371af8)](_0x3c4ebe);}function isBashArtifactStatus(_0x44f331){const _0x508bb5={_0x16c2c5:0x15c,_0x2167d4:0x2c8,_0x4b73f4:0x209,_0x42151a:0x2a4,_0x37b752:0x224,_0x17a627:0x348,_0x118a54:0x379,_0x3f538c:0x2e1,_0x17b2cd:0x208,_0x19fe43:0x29f,_0x8ef4bb:0x1ee,_0x2064b0:0x2c9,_0x471c28:0x2e1,_0x5ae018:0x235,_0x4a16f4:0x359,_0x551494:0x2a5,_0x42b26f:0x253,_0x515c72:0x371,_0x3df223:0x27b,_0xb4e70d:0x2fe,_0x187d22:0x295,_0x502aa1:0x1ae,_0x18b780:0x1dc,_0x5ed937:0x2a6,_0x5e70c5:0x305,_0x37aa4c:0x2d8,_0x47fbf8:0x2fd,_0x1ba52a:0x16d,_0x11b63a:0x219,_0x533245:0xec,_0x28ef27:0x25f,_0x110ea5:0x209,_0x6f401e:0x17b,_0x174ebc:0x245,_0x551b78:0x194,_0x3daac6:0x217,_0x3c4d3b:0x1c3,_0x3944f5:0x26a,_0x33ff04:0x1e4,_0x36e469:0x291,_0x814a55:0x25b,_0x2712b6:0x187,_0x471852:0x1e0,_0x351da7:0x1ad,_0x43c7ce:0x163,_0x5389ef:0x258,_0xb00d3d:0x216,_0x1a737e:0x186,_0x11f654:0x13e,_0x128256:0x201,_0x13cf85:0x23f,_0x4cd6a1:0x22d,_0x1ed3e1:0x229,_0x3a73ac:0x227,_0x23e918:0x1f1,_0x245d8b:0x19c,_0x28b922:0x298,_0x1196cd:0x211,_0x3b98e7:0x147,_0x1b4190:0x162,_0x3e3147:0x29c,_0x550149:0x277,_0x3a8194:0x1e6,_0x13de7f:0x1eb,_0x2e50d1:0x1e6,_0x2b0fdf:0x1ca,_0x44ea77:0x314,_0xa34ff4:0x29a,_0x4bbbd8:0x266,_0x2cadf7:0x1c8,_0x17aa82:0x1f2,_0x3c6de6:0x16a,_0x378da4:0x34f,_0x5423e7:0x3c9,_0x117818:0x3cb,_0x28c8d6:0x20e,_0x516fd0:0x1e7,_0x829206:0x22b,_0x41100c:0x2a1,_0xe649c5:0x274,_0x118fbc:0x3cd,_0x2fd3cf:0x324,_0x259cbd:0x30a,_0x35dfb1:0x26f},_0x47a6b3={_0x2bda07:0x1e3},_0x5b4313={_0x4db973:0x13e,_0x391892:0x8d};if(!isRecord(_0x44f331))return![];const _0x37eb83=_0x44f331;if(Object[_0x40ea4a(-_0x508bb5._0x16c2c5,-_0x508bb5._0x2167d4,-_0x508bb5._0x4b73f4,-_0x508bb5._0x42151a)](_0x37eb83)['some'](_0x4b8fd6=>!STATUS_KEYS[_0x16d066(0x2bc,0x289,0x287,0x2fb)](_0x4b8fd6)))return![];if(_0x37eb83[_0x16d066(0x2c4,_0x508bb5._0x37b752,0x22c,0x2b3)]!==0x1)return![];if(typeof _0x37eb83[_0x16d066(_0x508bb5._0x17a627,0x3a1,_0x508bb5._0x118a54,_0x508bb5._0x3f538c)]!==_0x40ea4a(-0x252,-_0x508bb5._0x17b2cd,-0x216,-_0x508bb5._0x19fe43)||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x16d066(0x269,0x1c4,_0x508bb5._0x8ef4bb,0x1eb)](_0x37eb83[_0x16d066(0x2e8,_0x508bb5._0x2064b0,0x222,_0x508bb5._0x471c28)]))return![];if(!isAbsolutePath(_0x37eb83['outputPath'])||!isAbsolutePath(_0x37eb83['statusPath']))return![];const _0x3d1f0f=_0x27580f['dirname'](_0x37eb83[_0x40ea4a(-0x2c4,-0x311,-0x294,-0x207)]);if(_0x27580f[_0x40ea4a(-_0x508bb5._0x5ae018,-0x345,-0x286,-0x247)](_0x3d1f0f)!==_0x37eb83[_0x16d066(_0x508bb5._0x4a16f4,_0x508bb5._0x551494,_0x508bb5._0x42b26f,_0x508bb5._0x3f538c)]||_0x27580f['basename'](_0x27580f['dirname'](_0x3d1f0f))!==_0x16d066(_0x508bb5._0x515c72,_0x508bb5._0x3df223,_0x508bb5._0xb4e70d,0x2c1))return![];if(_0x37eb83[_0x40ea4a(-0x339,-0x2f0,-_0x508bb5._0x187d22,-0x28b)]!==_0x27580f[_0x16d066(0x206,_0x508bb5._0x502aa1,0x1b5,_0x508bb5._0x18b780)](_0x3d1f0f,_0x16d066(_0x508bb5._0x5ed937,_0x508bb5._0x5e70c5,_0x508bb5._0x37aa4c,0x2f6))||_0x37eb83['statusPath']!==_0x27580f['join'](_0x3d1f0f,_0x16d066(0x2a9,0x380,0x2a7,_0x508bb5._0x47fbf8)))return![];if(!isRecord(_0x37eb83[_0x40ea4a(-_0x508bb5._0x1ba52a,-_0x508bb5._0x11b63a,-0x17a,-0x210)]))return![];const _0x5c8bb0=_0x37eb83[_0x40ea4a(-_0x508bb5._0x533245,-0x209,-0x17a,-0x153)];if(Object[_0x40ea4a(-_0x508bb5._0x28ef27,-0x2b7,-_0x508bb5._0x110ea5,-0x270)](_0x5c8bb0)[_0x16d066(0x1fc,0x18c,_0x508bb5._0x6f401e,0x216)](_0x4eb285=>![_0x16d066(0x27f,0x1cf,0x207,0x24e),_0x16d066(0x2ec,0x284,0x2f8,0x31a),_0x16d066(0x2b9,0x285,0x1e7,0x213)][_0x16d066(0x2cf,0x34d,0x2ce,0x2ff)](_0x4eb285)))return![];if(!isBoundedString(_0x5c8bb0[_0x16d066(_0x508bb5._0x174ebc,_0x508bb5._0x551b78,0x1de,0x24e)],MAX_ID_CHARS))return![];if(!isBoundedString(_0x5c8bb0['workspace'],MAX_ID_CHARS))return![];if(!isBoundedString(_0x5c8bb0[_0x40ea4a(-_0x508bb5._0x3daac6,-_0x508bb5._0x3c4d3b,-0x24a,-0x25d)],MAX_ID_CHARS))return![];if(!isBoundedString(_0x37eb83[_0x40ea4a(-0x2fc,-0x1b1,-_0x508bb5._0x3944f5,-0x1f7)],MAX_ID_CHARS))return![];if(_0x37eb83[_0x16d066(0x182,_0x508bb5._0x33ff04,0x18a,0x1e0)]!==void 0x0&&!isBoundedString(_0x37eb83[_0x16d066(_0x508bb5._0x36e469,_0x508bb5._0x814a55,_0x508bb5._0x2712b6,_0x508bb5._0x471852)],MAX_ID_CHARS))return![];if(typeof _0x37eb83[_0x40ea4a(-0x1c2,-_0x508bb5._0x351da7,-0x1dc,-0x162)]!==_0x40ea4a(-_0x508bb5._0x43c7ce,-_0x508bb5._0x5389ef,-_0x508bb5._0xb00d3d,-_0x508bb5._0x1a737e)||!EXECUTION_STATES['has'](_0x37eb83[_0x40ea4a(-_0x508bb5._0x11f654,-_0x508bb5._0x128256,-_0x508bb5._0x18b780,-_0x508bb5._0x13cf85)]))return![];if(!isNullableInteger(_0x37eb83['exitCode']))return![];if(!isNullableBoundedString(_0x37eb83['signal'],MAX_ERROR_CHARS))return![];if(!isNullableBoundedString(_0x37eb83[_0x40ea4a(-0x1c0,-_0x508bb5._0x4cd6a1,-0x16d,-0x182)],MAX_ERROR_CHARS))return![];if(!(_0x37eb83[_0x16d066(0x222,0x28b,_0x508bb5._0x1ed3e1,_0x508bb5._0x3a73ac)]===null||isFiniteTime(_0x37eb83['finishedAt'])))return![];if(typeof _0x37eb83[_0x40ea4a(-0x21b,-0x1a3,-_0x508bb5._0x23e918,-_0x508bb5._0x245d8b)]!==_0x40ea4a(-_0x508bb5._0x28b922,-0x23a,-0x216,-_0x508bb5._0x1196cd)||!CAPTURE_STATES[_0x40ea4a(-0x1f3,-_0x508bb5._0x3b98e7,-_0x508bb5._0x1b4190,-0x135)](_0x37eb83['captureState']))return![];if(typeof _0x37eb83[_0x16d066(_0x508bb5._0x3e3147,0x28a,0x328,_0x508bb5._0x550149)]!==_0x16d066(0x1af,0x1a6,0x283,0x1ca)||!Number[_0x40ea4a(-0x22e,-0x1a3,-0x187,-0x164)](_0x37eb83[_0x40ea4a(-_0x508bb5._0x42b26f,-0x215,-_0x508bb5._0x3a8194,-0x179)])||_0x37eb83[_0x40ea4a(-0x130,-_0x508bb5._0x13de7f,-_0x508bb5._0x2e50d1,-0x27b)]<0x0||_0x37eb83[_0x16d066(0x1ea,_0x508bb5._0x2b0fdf,_0x508bb5._0x44ea77,0x277)]>BASH_OUTPUT_MAX_BYTES)return![];if(_0x37eb83[_0x16d066(0x312,0x2bc,_0x508bb5._0xa34ff4,0x2ac)]!==BASH_OUTPUT_MAX_BYTES)return![];function _0x16d066(_0x58279b,_0x3794fe,_0x3be7d8,_0x14ad52){return _0x28d661(_0x3be7d8,_0x3794fe-0x33,_0x3be7d8-_0x5b4313._0x4db973,_0x14ad52-_0x5b4313._0x391892);}function _0x40ea4a(_0x1c466c,_0x49f5bf,_0x1ff988,_0x21a5fc){return _0x1ea0ad(_0x1c466c,_0x1ff988- -0x21d,_0x1ff988-_0x47a6b3._0x2bda07,_0x21a5fc-0x1d7);}if(typeof _0x37eb83[_0x16d066(0x150,_0x508bb5._0x2b0fdf,_0x508bb5._0x4bbbd8,0x1fc)]!==_0x40ea4a(-0x1f7,-_0x508bb5._0x2cadf7,-_0x508bb5._0x17aa82,-_0x508bb5._0x3c6de6))return![];if(!isNullableBoundedString(_0x37eb83['captureErrorCode'],MAX_ERROR_CHARS))return![];if(!isFiniteTime(_0x37eb83[_0x16d066(_0x508bb5._0x378da4,_0x508bb5._0x5423e7,_0x508bb5._0x117818,_0x508bb5._0x44ea77)])||!isFiniteTime(_0x37eb83[_0x40ea4a(-_0x508bb5._0x28c8d6,-_0x508bb5._0x516fd0,-0x1cd,-0x252)]))return![];return Buffer[_0x40ea4a(-0x28f,-_0x508bb5._0x829206,-_0x508bb5._0x41100c,-_0x508bb5._0xe649c5)](JSON[_0x16d066(_0x508bb5._0x118fbc,0x2df,0x3ab,_0x508bb5._0x2fd3cf)](_0x37eb83),_0x16d066(_0x508bb5._0x259cbd,0x266,_0x508bb5._0x35dfb1,0x2b7))<=MAX_STATUS_BYTES;}async function writeBashArtifactStatus(_0x5cd0dc){const _0x3dbbc2={_0x1aa3d2:0x48c,_0x599a3b:0x3e8,_0x5a494b:0x530,_0x346230:0x56b,_0x2e352e:0x3f6,_0x1ca9cb:0x44f,_0x5e41ea:0x448,_0x214f24:0x4ef,_0x19894e:0x620,_0x1413d3:0x5a6,_0x530c23:0x576,_0x3e27f9:0x5e4,_0x1c3008:0x4e1,_0x358df8:0x47b,_0x60b340:0x4b2,_0x193cca:0x425,_0x4583d0:0x378,_0xe4384b:0x36a,_0x204c69:0x628,_0xfe4810:0x405,_0x318d08:0x36f,_0x27fd80:0x461,_0x54bbdb:0x3d0,_0x282003:0x3b0,_0x54035e:0x573,_0x1431dc:0x546,_0x1ff4d6:0x4e6,_0x231af4:0x353,_0x1c66ad:0x551,_0x217bed:0x4a4,_0x35c46c:0x4d3,_0x4f6c46:0x42c,_0x3aee6a:0x491,_0x5895d8:0x44f,_0xd1bb1b:0x483,_0x14432d:0x322,_0x376e13:0x392,_0x5e0913:0x535,_0x2d7e59:0x482,_0x32ced5:0x5a2,_0x21aab8:0x588,_0x50b5ca:0x42a,_0x50b64c:0x4c0,_0x5ce447:0x421,_0x3bdc78:0x55a,_0x2cefb2:0x456,_0x13429d:0x33b,_0x290985:0x329,_0x3f3334:0x455,_0x38fb8b:0x57e,_0x38b4a8:0x57c,_0x43ca18:0x469,_0x1ac77d:0x3bc,_0x3981d2:0x444,_0x2a4101:0x38d,_0x3a10dc:0x3bc,_0x55cdcc:0x46d,_0xd37cd2:0x3bf,_0x41b52b:0x42c,_0x52c630:0x398,_0x198006:0x40d,_0x29258f:0x3db,_0x4fa435:0x3dd,_0x188c21:0x358,_0x37ac6f:0x5a8,_0x4b3f55:0x3fb,_0x2d0338:0x3b1,_0x3afe05:0x33d,_0x2c44b3:0x40a,_0x5e25d7:0x4e8,_0x2def9a:0x497,_0x2b4fcd:0x4e8,_0x132fdf:0x4c2,_0x3fa091:0x5a0,_0x2a619c:0x538,_0x4bbaaf:0x503,_0xf6f086:0x36d,_0x2a77ab:0x347,_0x4d72d0:0x3e3},_0x4f007a={_0x3ff808:0x148,_0x394df6:0x34c},_0x1c79f2={_0x4a3df0:0x127};if(!isBashArtifactStatus(_0x5cd0dc))throw artifactError(_0x4ad933(_0x3dbbc2._0x1aa3d2,_0x3dbbc2._0x599a3b,0x445,0x3ed),_0x404f2c(0x5d4,0x596,_0x3dbbc2._0x5a494b,_0x3dbbc2._0x346230));const _0x344ae0=Buffer[_0x4ad933(_0x3dbbc2._0x2e352e,_0x3dbbc2._0x1ca9cb,_0x3dbbc2._0x5e41ea,_0x3dbbc2._0x214f24)](JSON[_0x404f2c(0x5e3,_0x3dbbc2._0x19894e,_0x3dbbc2._0x1413d3,0x5a7)](_0x5cd0dc),_0x404f2c(_0x3dbbc2._0x530c23,0x5a0,_0x3dbbc2._0x3e27f9,_0x3dbbc2._0x1c3008));if(_0x344ae0[_0x404f2c(_0x3dbbc2._0x358df8,0x42e,0x468,0x3f8)]>MAX_STATUS_BYTES)throw artifactError(_0x404f2c(0x4c9,0x4e0,_0x3dbbc2._0x60b340,0x4e3),_0x4ad933(0x3d7,_0x3dbbc2._0x193cca,_0x3dbbc2._0x4583d0,_0x3dbbc2._0xe4384b));const _0x838f52=_0x27580f[_0x404f2c(0x5ec,_0x3dbbc2._0x204c69,_0x3dbbc2._0x530c23,0x54c)](_0x5cd0dc['statusPath']),_0x48cac6=_0x27580f[_0x4ad933(_0x3dbbc2._0xfe4810,_0x3dbbc2._0x318d08,0x2ae,0x3c3)](_0x838f52,_0x4ad933(0x4fc,_0x3dbbc2._0x27fd80,_0x3dbbc2._0x54bbdb,_0x3dbbc2._0x282003)+randomUUID()+_0x404f2c(0x532,_0x3dbbc2._0x54035e,0x57f,0x57f));let _0x478d09;function _0x4ad933(_0x3bb671,_0x3fb325,_0x3b2bbc,_0x329183){return _0x28d661(_0x329183,_0x3fb325-0x131,_0x3b2bbc-_0x1c79f2._0x4a3df0,_0x3fb325-0x220);}let _0x1a5ed8;function _0x404f2c(_0x474ad2,_0x544ef1,_0x1b6340,_0x55c44c){return _0x28d661(_0x544ef1,_0x544ef1-_0x4f007a._0x3ff808,_0x1b6340-0x78,_0x474ad2-_0x4f007a._0x394df6);}let _0x4cbe53;try{_0x1a5ed8=await validateArtifactFiles(_0x5cd0dc),_0x478d09=await _0x5826ad[_0x4ad933(_0x3dbbc2._0x1431dc,0x4a1,_0x3dbbc2._0x1ff4d6,0x3e1)](_0x48cac6,exclusiveWriteFlags(),0x180),_0x4cbe53=await _0x478d09[_0x4ad933(0x36a,_0x3dbbc2._0x231af4,0x40d,0x3cf)]();const _0x116f71=await canonicalDirectory(_0x838f52);if(_0x116f71[_0x404f2c(0x4dd,0x521,_0x3dbbc2._0x1c66ad,_0x3dbbc2._0x217bed)]!==_0x1a5ed8['dev']||_0x116f71[_0x404f2c(0x4e8,0x42d,_0x3dbbc2._0x35c46c,0x4fa)]!==_0x1a5ed8['ino'])throw artifactError(_0x4ad933(0x444,_0x3dbbc2._0x4f6c46,_0x3dbbc2._0x3aee6a,0x38a),_0x4ad933(0x3df,0x44b,0x48f,0x43a));await _0x478d09[_0x4ad933(_0x3dbbc2._0x5895d8,0x401,0x3df,_0x3dbbc2._0xd1bb1b)](0x180),await writeAll(_0x478d09,_0x344ae0),await _0x478d09[_0x404f2c(0x4c5,0x456,0x570,0x415)](),_0x478d09=void 0x0;const _0x126953=await validateArtifactFiles(_0x5cd0dc),_0x5d7e7b=await _0x5826ad['lstat'](_0x48cac6);if(_0x126953[_0x4ad933(_0x3dbbc2._0x14432d,0x3b1,_0x3dbbc2._0x376e13,0x333)]!==_0x1a5ed8[_0x404f2c(0x4dd,_0x3dbbc2._0x5e0913,_0x3dbbc2._0x2d7e59,0x57d)]||_0x126953[_0x404f2c(0x4e8,0x490,_0x3dbbc2._0x32ced5,_0x3dbbc2._0x21aab8)]!==_0x1a5ed8['ino']||!_0x5d7e7b[_0x4ad933(0x36a,_0x3dbbc2._0x50b5ca,_0x3dbbc2._0x50b64c,_0x3dbbc2._0x5ce447)]()||_0x5d7e7b[_0x404f2c(0x4d4,0x4ca,_0x3dbbc2._0x3bdc78,_0x3dbbc2._0x2cefb2)]!==0x1||_0x5d7e7b[_0x4ad933(_0x3dbbc2._0x13429d,0x3b1,_0x3dbbc2._0x290985,0x3c7)]!==_0x4cbe53[_0x404f2c(0x4dd,_0x3dbbc2._0x3f3334,_0x3dbbc2._0x38fb8b,_0x3dbbc2._0x38b4a8)]||_0x5d7e7b[_0x4ad933(_0x3dbbc2._0x43ca18,_0x3dbbc2._0x1ac77d,_0x3dbbc2._0x3981d2,0x37e)]!==_0x4cbe53[_0x4ad933(_0x3dbbc2._0x2a4101,_0x3dbbc2._0x3a10dc,0x42a,_0x3dbbc2._0x55cdcc)])throw artifactError(_0x4ad933(_0x3dbbc2._0xd37cd2,_0x3dbbc2._0x41b52b,0x372,_0x3dbbc2._0x52c630),_0x4ad933(0x3f9,_0x3dbbc2._0x198006,0x3ef,0x3f6));await _0x5826ad[_0x4ad933(_0x3dbbc2._0x29258f,_0x3dbbc2._0x4fa435,0x342,_0x3dbbc2._0x188c21)](_0x48cac6,_0x5cd0dc['statusPath']);}catch(_0x1eb3a7){if(_0x478d09!==void 0x0)await _0x478d09['close']()[_0x404f2c(_0x3dbbc2._0x37ac6f,0x503,0x531,0x59f)](()=>void 0x0);try{const _0x4961d9=await canonicalDirectory(_0x838f52),_0x275951=await _0x5826ad[_0x4ad933(0x41b,0x3c4,0x39e,_0x3dbbc2._0x4b3f55)](_0x48cac6);_0x4961d9[_0x4ad933(0x35d,_0x3dbbc2._0x2d0338,_0x3dbbc2._0x3afe05,_0x3dbbc2._0x2c44b3)]===_0x1a5ed8?.['dev']&&_0x4961d9['ino']===_0x1a5ed8?.[_0x404f2c(_0x3dbbc2._0x5e25d7,0x46c,0x508,0x4eb)]&&_0x275951[_0x4ad933(0x31d,0x3b1,0x2f5,0x391)]===_0x4cbe53?.[_0x404f2c(0x4dd,0x546,_0x3dbbc2._0x2def9a,0x4e5)]&&_0x275951[_0x404f2c(0x4e8,0x502,0x452,0x44d)]===_0x4cbe53?.[_0x404f2c(_0x3dbbc2._0x2b4fcd,0x49c,_0x3dbbc2._0x132fdf,_0x3dbbc2._0x3fa091)]&&await _0x5826ad[_0x404f2c(_0x3dbbc2._0x2a619c,_0x3dbbc2._0x4bbaaf,0x54d,0x4be)](_0x48cac6);}catch{}throwMapped(_0x1eb3a7,_0x4ad933(0x2e7,_0x3dbbc2._0xf6f086,_0x3dbbc2._0x2a77ab,_0x3dbbc2._0x4d72d0));}}async function createBashArtifact(_0x3d1c52){const _0xacad35={_0x20c37f:0x2dc,_0x2ae4cf:0x237,_0x101ed7:0x322,_0x375458:0x27f,_0x17764b:0x107,_0x387495:0x1c3,_0x204d58:0x23d,_0x4064b1:0x25d,_0x3144db:0x19c,_0x50c834:0x180,_0x20bab5:0x194,_0x1afe8e:0x1e0,_0x59128d:0x127,_0x566f85:0x181,_0x52d48c:0x1b1,_0x27d66e:0x2d0,_0x2db231:0x286,_0x1196f:0x2e4,_0x521b1b:0x2d4,_0x3a6659:0x1ee,_0x45c6bd:0x1e1,_0x5ad61d:0x18b,_0x37bf58:0x32d,_0x45ff1d:0x28d,_0x1bffdc:0x350,_0x3c59e6:0x2d2,_0x5a5bab:0x30a,_0x287123:0x2cc,_0x17f25a:0x216,_0x120cbe:0x24d,_0x160d3e:0x293,_0x48ccf9:0x274,_0x1cdb24:0x2c7,_0x44abd0:0x22c,_0x25d193:0x261,_0x118974:0x300,_0x583847:0x286,_0x27892:0x2e1,_0x39fd3f:0x32a,_0x2ca656:0x229,_0x325e47:0x2c1,_0xeeb3a0:0x2ba,_0x33cdc0:0x253,_0x2bfdce:0x288,_0x1ceb28:0x248,_0x4ef225:0x2e3,_0x2d5371:0x2b3,_0x166322:0x357,_0x31aa39:0x2a5,_0x1a0cce:0x1f0,_0x337122:0x232,_0x359d75:0x26e,_0x31dd7d:0x1cd,_0x4a7af8:0x1b0,_0x253e7c:0x1af,_0x336702:0x21d,_0x2d394c:0x21a,_0x342c39:0x29c,_0x2932ba:0x30b,_0x16eef1:0x2e6,_0x467b67:0x2ed,_0xbc8e1b:0x1eb,_0x199920:0x277,_0x2951e7:0x2ee,_0x30d429:0x349,_0x19aa44:0x2e0,_0x578f38:0x317,_0xbf1788:0x2c6,_0x64db21:0x263,_0x26d92a:0x2e9,_0x1467b0:0x390,_0x36e054:0x305,_0x1bf328:0x38c,_0x525262:0x2c8,_0x488b42:0x271,_0x4ae151:0x2d2,_0x4d927a:0x137,_0x205716:0x237,_0x404e7e:0x1d1,_0x147bdf:0x29f,_0x478858:0x1f5,_0x3f5385:0x2a1,_0x3834d5:0x23f,_0x7e5c10:0x2fd,_0x290617:0x167,_0x5b6774:0x1a0,_0x9997fb:0x30e,_0x112752:0x353,_0x1080ad:0x371,_0x3244de:0x20c,_0xfb40f4:0x302,_0x2015ca:0x2a3,_0x5d2a9d:0x2d6,_0x2a7b98:0x2c3,_0x241cac:0x373,_0x4df31a:0x1a3,_0x1d6910:0x245,_0x2f9d9f:0x25c,_0x3ab21c:0x28c,_0x1704f1:0x29a,_0x53ebba:0x38a,_0xffee3e:0x37c,_0x46d383:0x2b4,_0x354c27:0x250,_0x41b654:0x290,_0x287b71:0x295,_0x5c9bfc:0x166,_0x4fdb9a:0x2da,_0x2d0d31:0x36a,_0x3f8b7f:0x375,_0x3508a8:0x377,_0x23b9d4:0x388,_0x22426e:0x2b3,_0x354c2e:0x2b8,_0xf1751:0x1f2,_0x5b27ed:0x207,_0x1b07b2:0x25b,_0x6510d:0x299,_0x4d7581:0x2f4,_0x1470aa:0x1e6,_0x63dc3b:0x1a9,_0x274626:0x2a0,_0xb30e89:0x2de,_0x5d241a:0x2a3,_0xf1eb0e:0x26b,_0x1ac468:0x29a,_0x875fa:0x2fb,_0x5a5b09:0x25c,_0x120685:0x2d7,_0x57e0c2:0x255,_0x27d12d:0x20b,_0x3b50bd:0x29d,_0x36b213:0x1f4,_0x1bf862:0x1d4,_0x14fe36:0x169,_0x7e9e66:0x17b,_0x54ddad:0x269,_0x10385c:0x2a4,_0xecbcac:0x240,_0x104a0d:0x231,_0x5999ab:0x194,_0x14bf73:0x1f3,_0x5a9fd9:0x174,_0xc479b:0x2ac,_0x4741ac:0x255,_0x5070f1:0x341,_0x9898f:0x326,_0x4398c3:0x356,_0x1c16cd:0x2cd,_0x3ec0d5:0x2c7},_0x586673={_0x467e6a:0x43d,_0x2f8f0f:0x3df,_0x1f44b2:0x411,_0x44a7a4:0x4cd,_0x24ec55:0x414,_0x49c385:0x4a5,_0x569c61:0x497,_0x3ae6d9:0x408,_0x367572:0x436,_0x18395f:0x580,_0x4a27fd:0x380,_0xb04815:0x3cb,_0xd6f463:0x4bf,_0x501e6b:0x40f,_0x353eba:0x46f,_0x44d877:0x467},_0x4bdc17={_0x4e7dab:0xb4,_0x2c4eaf:0x15,_0x1cb5a3:0x69,_0x2e8048:0xf,_0x112f47:0x154,_0xc3090e:0x19f,_0x753361:0x200,_0xea0676:0x1bd,_0x532b97:0x138,_0x40da8a:0x193,_0x4555e:0x14b,_0x418a28:0x147,_0x1077ce:0xbe,_0x3e701f:0x7},_0x1e6c83={_0x2485ac:0x21f,_0x5eca20:0xfd},_0x2721bd={_0x2570fe:0x1d8,_0x29298e:0xbd},_0x5f4f06={_0x3b65f4:0x1d7,_0x5f3d59:0x133,_0x23e006:0x422,_0x5a7f0e:0x3d2,_0x50392d:0x426,_0x546e03:0x3b7},_0x20c8ad={_0x46f7e3:0xc3},_0x41127e={_0x4f59b8:0x2d0,_0x36e7b9:0x350,_0x5edf4c:0x33e,_0x28e950:0x14,_0x54d406:0x9,_0x2950e1:0xb0,_0x151c09:0x218,_0x5c1fab:0x241,_0x188471:0x2f7,_0x5a09f5:0x37b,_0x537c30:0x256,_0x25d79e:0xff,_0x543ec2:0x4},_0x40f62e={_0x3ba9c8:0xc,_0x40bb39:0x7f,_0x408614:0x133,_0x1475ca:0x99,_0x2e1751:0x20,_0x34dd6e:0x1a3,_0xa69bf0:0x8f,_0x3171b2:0x16a,_0x259e54:0x17a,_0x5aeefa:0xd,_0x390c44:0x70,_0x424f9b:0x78,_0x532e4a:0x3e,_0x669572:0x150,_0x5953de:0x164},_0x10fcf6={_0x26e76b:0x189},_0x56a2f1={_0x258794:0x38},_0x18b9da={_0x251688:0x414,_0x33d1b3:0x362,_0x43aa50:0x415,_0x5dc04d:0x370},_0x1b788f={_0x59885a:0x1da,_0x290332:0xc7,_0x5eec0f:0x184,_0xd5404:0x15c},_0x181238={_0x5d4d0e:0x17a},_0x5be127=Object['freeze']({'profile':_0x3d1c52[_0x3d1b37(0x1ee,0x26a,0x28a,0x22b)][_0x3d1b37(0x2d0,0x2de,0x307,_0xacad35._0x20c37f)][_0x15cc83(-0x264,-_0xacad35._0x2ae4cf,-_0xacad35._0x101ed7,-_0xacad35._0x375458)],'workspace':_0x3d1c52['destination']['owner'][_0x15cc83(-_0xacad35._0x17764b,-0x21f,-_0xacad35._0x387495,-0x1b3)],'sessionId':_0x3d1c52[_0x3d1b37(0x1ee,_0xacad35._0x204d58,_0xacad35._0x4064b1,_0xacad35._0x3144db)][_0x15cc83(-0x287,-_0xacad35._0x50c834,-_0xacad35._0x20bab5,-0x1ea)]['sessionId']}),_0x28e85a=_0x3d1c52[_0x3d1b37(_0xacad35._0x1afe8e,_0xacad35._0x59128d,_0xacad35._0x566f85,_0xacad35._0x52d48c)];assertBoundedId(_0x28e85a,'toolCallId'),assertBoundedId(_0x3d1c52[_0x15cc83(-0x317,-0x2ec,-0x29f,-0x2cc)][_0x3d1b37(_0xacad35._0x27d66e,0x32d,0x31a,0x2bc)][_0x15cc83(-_0xacad35._0x2db231,-_0xacad35._0x1196f,-0x306,-0x27f)],_0x3d1b37(0x292,0x308,0x218,_0xacad35._0x521b1b)),assertBoundedId(_0x3d1c52[_0x3d1b37(_0xacad35._0x3a6659,_0xacad35._0x45c6bd,0x173,_0xacad35._0x5ad61d)][_0x15cc83(-0x152,-0x1b9,-0x25a,-0x1ea)]['workspace'],_0x15cc83(-0x32b,-0x25e,-_0xacad35._0x37bf58,-_0xacad35._0x45ff1d)),assertBoundedId(_0x3d1c52[_0x15cc83(-_0xacad35._0x1bffdc,-_0xacad35._0x3c59e6,-_0xacad35._0x5a5bab,-_0xacad35._0x287123)][_0x3d1b37(0x2d0,0x241,_0xacad35._0x17f25a,0x244)][_0x15cc83(-_0xacad35._0x120cbe,-_0xacad35._0x160d3e,-0x2f3,-0x2ba)],_0x3d1b37(_0xacad35._0x48ccf9,_0xacad35._0x1cdb24,0x2b5,_0xacad35._0x44abd0));if(typeof _0x3d1c52[_0x15cc83(-_0xacad35._0x25d193,-0x345,-0x313,-0x2cc)]['sessionDir']!==_0x15cc83(-0x1e5,-_0xacad35._0x118974,-0x2a1,-_0xacad35._0x583847)||_0x3d1c52[_0x15cc83(-_0xacad35._0x27892,-0x2e9,-_0xacad35._0x39fd3f,-0x2cc)]['sessionDir'][_0x15cc83(-0x334,-_0xacad35._0x2ca656,-0x2e9,-_0xacad35._0x325e47)]===0x0)throw artifactError(_0x15cc83(-_0xacad35._0xeeb3a0,-0x243,-_0xacad35._0x33cdc0,-0x278),_0x3d1b37(0x1f1,_0xacad35._0x2bfdce,0x187,0x1d8));const _0x394264=_0x27580f[_0x3d1b37(0x2ac,_0xacad35._0x1ceb28,0x34a,0x23a)](_0x3d1c52[_0x3d1b37(_0xacad35._0x3a6659,0x2ac,0x1ea,0x19b)][_0x15cc83(-_0xacad35._0x4ef225,-0x341,-0x30d,-0x30f)]);if(_0x394264['length']>MAX_PATH_CHARS)throw artifactError('ENAMETOOLONG',_0x15cc83(-_0xacad35._0x2d5371,-0x207,-_0xacad35._0x166322,-_0xacad35._0x31aa39));let _0x17ddaa;try{_0x17ddaa=await _0x5826ad[_0x15cc83(-_0xacad35._0x1a0cce,-_0xacad35._0x337122,-0x251,-0x1a7)](_0x394264);}catch(_0x3f7dab){throwMapped(_0x3f7dab,_0x15cc83(-_0xacad35._0x359d75,-_0xacad35._0x31dd7d,-_0xacad35._0x4a7af8,-_0xacad35._0x253e7c));}let _0x4e9176;try{_0x4e9176=await _0x5826ad[_0x15cc83(-0x2cd,-_0xacad35._0x336702,-_0xacad35._0x2d394c,-_0xacad35._0x342c39)](_0x17ddaa);}catch(_0x2c0e44){throwMapped(_0x2c0e44,_0x3d1b37(_0xacad35._0x2932ba,_0xacad35._0x16eef1,_0xacad35._0x467b67,0x3ad));}if(_0x4e9176[_0x3d1b37(_0xacad35._0xbc8e1b,0x237,_0xacad35._0x199920,0x1d9)]())throw artifactError('ELOOP',_0x3d1b37(_0xacad35._0x2951e7,_0xacad35._0x30d429,_0xacad35._0x19aa44,0x2dd));if(!_0x4e9176['isDirectory']())throw artifactError(_0x15cc83(-0x2bf,-0x27d,-_0xacad35._0x578f38,-_0xacad35._0xbf1788),_0x15cc83(-0x2ca,-0x253,-0x23a,-0x24b));const _0x2164d5=0x24,_0xc3f9b9=_0x17ddaa[_0x15cc83(-0x348,-_0xacad35._0x64db21,-0x251,-0x2c1)]+_0x3d1b37(_0xacad35._0x26d92a,_0xacad35._0x1467b0,_0xacad35._0x36e054,_0xacad35._0x1bf328)[_0x15cc83(-_0xacad35._0x525262,-0x282,-_0xacad35._0x64db21,-0x2c1)]+_0x2164d5+'/output.log'[_0x15cc83(-_0xacad35._0x488b42,-_0xacad35._0x4ae151,-0x207,-0x2c1)],_0x5e276f=_0x17ddaa[_0x15cc83(-0x286,-0x296,-0x2c2,-0x2c1)]+_0x15cc83(-_0xacad35._0x4d927a,-_0xacad35._0x205716,-0x20c,-_0xacad35._0x404e7e)[_0x3d1b37(0x1f9,_0xacad35._0x147bdf,0x235,0x293)]+_0x2164d5+'/status.json'[_0x3d1b37(0x1f9,0x24b,0x1e7,0x183)];if(_0xc3f9b9>MAX_PATH_CHARS||_0x5e276f>MAX_PATH_CHARS)throw artifactError(_0x15cc83(-0x344,-0x361,-0x29a,-0x2c3),_0x3d1b37(0x215,_0xacad35._0x478858,_0xacad35._0x3f5385,_0xacad35._0x4a7af8));const _0x3016de=_0x27580f['join'](_0x17ddaa,_0x3d1b37(0x2ae,_0xacad35._0x3834d5,0x2a4,_0xacad35._0x7e5c10)),_0x23db4e=randomUUID(),_0x1b7d60=_0x27580f['join'](_0x3016de,_0x23db4e),_0x14bceb=_0x27580f[_0x3d1b37(0x1c9,_0xacad35._0x290617,_0xacad35._0x5b6774,0x254)](_0x1b7d60,_0x3d1b37(0x2e3,0x37f,0x398,0x223)),_0x17649d=_0x27580f['join'](_0x1b7d60,_0x3d1b37(0x2ea,_0xacad35._0x9997fb,_0xacad35._0x112752,_0xacad35._0x1080ad));function _0x15cc83(_0x152b9b,_0x21c0d9,_0x341a0b,_0x3dec9e){return _0x28d661(_0x152b9b,_0x21c0d9-0x1bf,_0x341a0b-_0x181238._0x5d4d0e,_0x3dec9e- -0x440);}if(_0x14bceb[_0x15cc83(-0x2b3,-_0xacad35._0x3244de,-_0xacad35._0xfb40f4,-_0xacad35._0x325e47)]>MAX_PATH_CHARS||_0x17649d[_0x3d1b37(0x1f9,0x20d,0x2ad,_0xacad35._0x2015ca)]>MAX_PATH_CHARS)throw artifactError(_0x15cc83(-0x360,-_0xacad35._0x5d2a9d,-0x365,-_0xacad35._0x2a7b98),_0x15cc83(-0x2b7,-0x1f4,-_0xacad35._0xeeb3a0,-_0xacad35._0x31aa39));const _0x46a416=Object[_0x3d1b37(0x306,_0xacad35._0x241cac,0x372,0x39b)]({'artifactId':_0x23db4e,'outputPath':_0x14bceb,'statusPath':_0x17649d}),_0x29623a=Date['now'](),_0x320102=createArtifactNormalizer(),_0x4f47db=createArtifactNormalizer();let _0x368b2d=0x0,_0x33fb7c=![],_0xf6c82f=null,_0x436fac=![],_0x2809fd=![],_0x3794f1=![],_0x9c5976=null,_0xc82312,_0x1e55b1=null,_0x4fb5e6=Promise[_0x15cc83(-_0xacad35._0x4df31a,-0x296,-_0xacad35._0x1d6910,-0x20e)]();const _0x464e7a=_0x273a03=>{const _0x367728={_0x51aae4:0xd1},_0x381534=_0x4fb5e6['then'](_0x273a03);function _0x34d290(_0x3cb0d8,_0x2238c5,_0x554dcd,_0xefae1b){return _0x3d1b37(_0xefae1b- -0x7f,_0x554dcd,_0x554dcd-_0x367728._0x51aae4,_0xefae1b-0x1da);}return _0x4fb5e6=_0x381534[_0x34d290(_0x1b788f._0x59885a,_0x1b788f._0x290332,_0x1b788f._0x5eec0f,_0x1b788f._0xd5404)](()=>void 0x0,()=>void 0x0),_0x381534;},_0x26c7ca=_0x4e3f2e=>{function _0x31c743(_0x143753,_0x521e02,_0xc8930d,_0x31d6f1){return _0x15cc83(_0x521e02,_0x521e02-0x103,_0xc8930d-0x175,_0x31d6f1-0x663);}_0xf6c82f===null&&(_0xf6c82f=stableErrorCode(_0x4e3f2e,_0x31c743(_0x18b9da._0x251688,_0x18b9da._0x33d1b3,_0x18b9da._0x43aa50,_0x18b9da._0x5dc04d)));};function _0x3d1b37(_0x294cdc,_0x3405ee,_0x250d05,_0xdef6a9){return _0x28d661(_0x3405ee,_0x3405ee-0xb8,_0x250d05-_0x56a2f1._0x258794,_0x294cdc-0x7a);}const _0x283fd6=async _0x571299=>{const _0x46a1d5={_0x277bc6:0x1d};if(_0x33fb7c||_0xf6c82f!==null||_0x9c5976===null||_0x571299[_0x1fe780(0x2c,0x68,-0x1d,-_0x40f62e._0x3ba9c8)]===0x0)return;const _0x38532b=BASH_OUTPUT_MAX_BYTES-_0x368b2d;if(_0x38532b<=0x0){_0x33fb7c=!![];return;}const _0x4346d9=takeUtf8Prefix(_0x571299,_0x38532b);Buffer[_0xaeb1a4(0xb2,-_0x40f62e._0x40bb39,0x20,0x33)](_0x4346d9,_0xaeb1a4(_0x40f62e._0x408614,0x10e,0x11b,_0x40f62e._0x1475ca))<Buffer[_0xaeb1a4(-0x1b,-0x41,_0x40f62e._0x2e1751,0x7e)](_0x571299,_0xaeb1a4(0x15d,_0x40f62e._0x34dd6e,0x11b,0x186))&&(_0x33fb7c=!![]);if(_0x4346d9[_0x1fe780(0x35,0x68,_0x40f62e._0xa69bf0,0xf7)]===0x0){_0x33fb7c=!![];return;}const _0x426b8b=Buffer[_0x1fe780(_0x40f62e._0x3171b2,0x118,0x78,_0x40f62e._0x259e54)](_0x4346d9,'utf8');function _0x1fe780(_0x52a7cf,_0x24e04d,_0x31624e,_0xd20352){return _0x15cc83(_0x31624e,_0x24e04d-0x1b4,_0x31624e-_0x46a1d5._0x277bc6,_0x24e04d-0x329);}function _0xaeb1a4(_0x8afc0f,_0x1eb2f8,_0x208ef4,_0x5ef068){return _0x3d1b37(_0x208ef4- -_0x10fcf6._0x26e76b,_0x1eb2f8,_0x208ef4-0x57,_0x5ef068-0x12a);}const _0x2556c7=_0x368b2d;let _0x1ff9fd=0x0;try{while(_0x1ff9fd<_0x426b8b[_0xaeb1a4(0x1c,_0x40f62e._0x5aeefa,_0x40f62e._0x390c44,0x10f)]){const {bytesWritten:_0x2ea27d}=await _0x9c5976['write'](_0x426b8b,_0x1ff9fd,_0x426b8b['length']-_0x1ff9fd);if(_0x2ea27d===0x0)throw artifactError(_0xaeb1a4(0xc2,-_0x40f62e._0x424f9b,_0x40f62e._0x532e4a,0xaa),_0x1fe780(_0x40f62e._0x669572,_0x40f62e._0x5953de,0xf2,0x140));_0x1ff9fd+=_0x2ea27d,_0x368b2d+=_0x2ea27d;}}catch(_0x388bd8){_0x26c7ca(_0x388bd8);let _0x6ab11b=_0x1ff9fd;while(_0x6ab11b>0x0&&_0x6ab11b<_0x426b8b['length']&&(_0x426b8b[_0x6ab11b]&0xc0)===0x80)_0x6ab11b--;if(_0x6ab11b!==_0x1ff9fd)try{await _0x9c5976['truncate'](_0x2556c7+_0x6ab11b),_0x368b2d=_0x2556c7+_0x6ab11b;}catch{}}},_0x46d6ce=async(_0x617e97,_0x37144e)=>{const _0x1b857f={_0xa746d9:0x5d,_0x20815f:0x5e},_0x40bbf0={_0x52cca3:0x2d5,_0x37f196:0x1ce};function _0x3a5b79(_0x46aa56,_0x1e8194,_0x37590f,_0x26a74d){return _0x3d1b37(_0x37590f- -_0x40bbf0._0x52cca3,_0x46aa56,_0x37590f-_0x40bbf0._0x37f196,_0x26a74d-0x4e);}const _0xdb494=_0x617e97===_0x474b2f(_0x41127e._0x4f59b8,_0x41127e._0x36e7b9,0x29c,_0x41127e._0x5edf4c)?_0x320102:_0x4f47db,_0x29e907=Math[_0x3a5b79(0x91,-_0x41127e._0x28e950,_0x41127e._0x54d406,-_0x41127e._0x2950e1)](OUTPUT_WRITE_HIGH_WATER_BYTES/0x6);function _0x474b2f(_0x17809b,_0x2a26e8,_0x3faf8f,_0x280eb5){return _0x3d1b37(_0x3faf8f-_0x1b857f._0xa746d9,_0x2a26e8,_0x3faf8f-0x158,_0x280eb5-_0x1b857f._0x20815f);}for(let _0x50d17d=0x0;_0x50d17d<_0x37144e['length'];){if(_0x33fb7c||_0xf6c82f!==null)return;let _0x3cf42a=Math[_0x3a5b79(-0x51,0x2c,-0x88,-0x101)](_0x50d17d+_0x29e907,_0x37144e[_0x474b2f(_0x41127e._0x151c09,0x1a7,0x256,_0x41127e._0x5c1fab)]);const _0x289e84=_0x37144e[_0x474b2f(_0x41127e._0x188471,_0x41127e._0x5a09f5,0x303,0x353)](_0x3cf42a-0x1);if(_0x3cf42a<_0x37144e[_0x474b2f(0x226,0x1e9,_0x41127e._0x537c30,0x1d6)]&&_0x289e84>=0xd800&&_0x289e84<=0xdbff)_0x3cf42a--;await _0x283fd6(_0xdb494[_0x3a5b79(-0x15c,-0x146,-_0x41127e._0x25d79e,-0xd5)](_0x37144e[_0x3a5b79(0x60,0x2b,_0x41127e._0x543ec2,-0x28)](_0x50d17d,_0x3cf42a))),_0x50d17d=_0x3cf42a;}},_0x421002=()=>{const _0x2768c3={_0x4f7e6d:0x1e9};if(_0xf6c82f!==null)return _0x243381(0x3da,0x3f9,0x43f,0x4c8);function _0x243381(_0x19d796,_0xda7581,_0x1474eb,_0x4b7fa1){return _0x3d1b37(_0x1474eb-0x216,_0x4b7fa1,_0x1474eb-_0x2768c3._0x4f7e6d,_0x4b7fa1-0xe3);}if(_0x436fac)return _0x29b09f(_0x5f4f06._0x3b65f4,0x1ce,0x167,_0x5f4f06._0x5f3d59);function _0x29b09f(_0x4f1025,_0x3ee48f,_0x43b48b,_0x8b8475){return _0x3d1b37(_0x43b48b- -_0x20c8ad._0x46f7e3,_0x3ee48f,_0x43b48b-0x1d3,_0x8b8475-0x21);}if(!_0x3794f1)return _0x243381(_0x5f4f06._0x23e006,_0x5f4f06._0x5a7f0e,_0x5f4f06._0x50392d,_0x5f4f06._0x546e03);if(_0x33fb7c)return'truncated';return'complete';},_0x402d8a=(_0x311355,_0x39a52c)=>{function _0x3c8db7(_0x3611fb,_0x34027e,_0x2b2696,_0x33e4a9){return _0x3d1b37(_0x34027e- -0x40d,_0x2b2696,_0x2b2696-_0x2721bd._0x2570fe,_0x33e4a9-_0x2721bd._0x29298e);}const _0x52457d={'version':0x1,'artifactId':_0x46a416[_0x195f28(0x52,0x16b,0xaf,_0x4bdc17._0x4e7dab)],'outputPath':_0x46a416['outputPath'],'statusPath':_0x46a416[_0x195f28(0x50,_0x4bdc17._0x2c4eaf,-_0x4bdc17._0x1cb5a3,_0x4bdc17._0x2e8048)],'state':_0x311355[_0x3c8db7(-_0x4bdc17._0x112f47,-_0x4bdc17._0xc3090e,-0x224,-0x23b)],'exitCode':_0x311355[_0x3c8db7(-_0x4bdc17._0x753361,-_0x4bdc17._0xea0676,-_0x4bdc17._0x532b97,-_0x4bdc17._0x40da8a)],'signal':boundNullableCode(_0x311355[_0x3c8db7(-_0x4bdc17._0x4555e,-0x1e1,-0x253,-0x144)]),'errorCode':boundNullableCode(_0x311355[_0x195f28(0x145,_0x4bdc17._0x418a28,_0x4bdc17._0x1077ce,_0x4bdc17._0x3e701f)]),'finishedAt':_0x311355['finishedAt'],'owner':_0x5be127,'toolCallId':_0x28e85a,'captureState':_0x421002(),'bytesRetained':_0x368b2d,'maxBytes':BASH_OUTPUT_MAX_BYTES,'truncated':_0x33fb7c,'captureErrorCode':_0xf6c82f,'startedAt':_0x29623a,'updatedAt':_0x39a52c};function _0x195f28(_0x48f689,_0x338035,_0x4cfdc6,_0x5eccf6){return _0x3d1b37(_0x4cfdc6- -_0x1e6c83._0x2485ac,_0x5eccf6,_0x4cfdc6-0x119,_0x5eccf6-_0x1e6c83._0x5eca20);}if(_0xc82312!==void 0x0)return{..._0x52457d,'shellId':_0xc82312};return _0x52457d;},_0x41471e=_0x402d8a({'state':_0x15cc83(-_0xacad35._0x2f9d9f,-0x2e1,-_0xacad35._0x3ab21c,-_0xacad35._0x1704f1),'exitCode':null,'signal':null,'errorCode':null,'finishedAt':null},_0x29623a),_0x1f2827={..._0x41471e,'shellId':'\x01'[_0x3d1b37(0x2da,0x254,_0xacad35._0x53ebba,_0xacad35._0xffee3e)](MAX_ID_CHARS),'state':_0x3d1b37(_0xacad35._0x46d383,0x238,0x325,0x1fe),'captureState':_0x15cc83(-_0xacad35._0x27892,-0x27b,-_0xacad35._0x354c27,-_0xacad35._0x41b654),'signal':'\x01'[_0x15cc83(-_0xacad35._0x287b71,-0x203,-_0xacad35._0x5c9bfc,-_0xacad35._0x1afe8e)](MAX_ERROR_CHARS),'errorCode':'\x01'[_0x3d1b37(_0xacad35._0x4fdb9a,0x25c,0x343,_0xacad35._0x2d0d31)](MAX_ERROR_CHARS),'captureErrorCode':'E'[_0x3d1b37(_0xacad35._0x4fdb9a,_0xacad35._0x3f8b7f,_0xacad35._0x3508a8,_0xacad35._0x23b9d4)](MAX_ERROR_CHARS),'bytesRetained':BASH_OUTPUT_MAX_BYTES,'exitCode':-Number[_0x3d1b37(_0xacad35._0x22426e,0x1ff,0x21c,0x240)],'startedAt':-Number[_0x15cc83(-0x199,-_0xacad35._0x354c2e,-_0xacad35._0xf1751,-_0xacad35._0x5b27ed)],'updatedAt':-Number[_0x3d1b37(0x2b3,0x33e,0x316,0x227)],'finishedAt':-Number['MAX_VALUE']};if(Buffer[_0x15cc83(-_0xacad35._0x1b07b2,-_0xacad35._0x6510d,-_0xacad35._0x4d7581,-0x311)](JSON[_0x15cc83(-0x1bc,-0x12e,-_0xacad35._0x1470aa,-_0xacad35._0x63dc3b)](_0x1f2827),_0x15cc83(-0x28a,-0x25e,-0x1ac,-0x216))>MAX_STATUS_BYTES)throw artifactError(_0x3d1b37(0x1f7,_0xacad35._0x274626,0x145,0x1de),'Artifact\x20status\x20exceeds\x20metadata\x20bound');await ensureDirectory(_0x3016de);try{await _0x5826ad[_0x15cc83(-0x2d6,-_0xacad35._0xb30e89,-0x1e4,-_0xacad35._0x5d241a)](_0x1b7d60,{'mode':0x1c0}),await canonicalDirectory(_0x1b7d60),await _0x5826ad['chmod'](_0x1b7d60,0x1c0);}catch(_0xe0767d){throwMapped(_0xe0767d,_0x15cc83(-_0xacad35._0xf1eb0e,-0x29d,-_0xacad35._0x1ac468,-0x2f3));}let _0x4bcc1a;try{const _0x2e9bf7=await canonicalDirectory(_0x1b7d60);_0x4bcc1a=await _0x5826ad[_0x3d1b37(_0xacad35._0x875fa,_0xacad35._0x5a5b09,0x355,0x3b6)](_0x14bceb,exclusiveWriteFlags(),0x180),await _0x4bcc1a['chmod'](0x180);const _0x4bf016=await canonicalDirectory(_0x1b7d60),_0x5187f5=await _0x4bcc1a[_0x15cc83(-0x2b9,-_0xacad35._0x120685,-0x2a5,-0x30d)](),_0x207dc1=await _0x5826ad[_0x3d1b37(0x21e,_0xacad35._0x57e0c2,0x21d,0x2b5)](_0x14bceb);if(_0x2e9bf7[_0x3d1b37(_0xacad35._0x27d12d,_0xacad35._0x3b50bd,_0xacad35._0x3b50bd,0x1e0)]!==_0x4bf016[_0x3d1b37(_0xacad35._0x27d12d,_0xacad35._0x36b213,_0xacad35._0x1bf862,0x1ea)]||_0x2e9bf7[_0x3d1b37(0x216,0x214,_0xacad35._0x14fe36,0x1b1)]!==_0x4bf016['ino']||!_0x207dc1['isFile']()||_0x207dc1['nlink']!==0x1||_0x207dc1['dev']!==_0x5187f5[_0x3d1b37(_0xacad35._0x27d12d,_0xacad35._0x7e9e66,0x24d,_0xacad35._0x54ddad)]||_0x207dc1[_0x15cc83(-0x25c,-0x2b9,-0x2ff,-_0xacad35._0x10385c)]!==_0x5187f5['ino'])throw artifactError(_0x3d1b37(0x286,0x2ed,_0xacad35._0xecbcac,0x1dd),_0x3d1b37(_0xacad35._0x104a0d,_0xacad35._0x5999ab,0x1ad,_0xacad35._0x33cdc0));}catch(_0x399b96){await _0x4bcc1a?.[_0x3d1b37(_0xacad35._0x14bf73,_0xacad35._0x5a9fd9,_0xacad35._0xc479b,_0xacad35._0x4741ac)]()[_0x3d1b37(_0xacad35._0x5d2a9d,_0xacad35._0x5070f1,_0xacad35._0x9898f,0x32e)](()=>void 0x0),throwMapped(_0x399b96,_0x15cc83(-_0xacad35._0x4398c3,-0x30a,-0x270,-0x2f3));}_0x9c5976=_0x4bcc1a;try{await writeBashArtifactStatus(_0x41471e);}catch(_0x1bc00a){await _0x4bcc1a[_0x15cc83(-_0xacad35._0x1c16cd,-0x299,-0x20f,-_0xacad35._0x3ec0d5)]()['catch'](()=>void 0x0);throw _0x1bc00a;}const _0x19996e=async(_0x400d31,_0x1000d6)=>{const _0x5894da={_0x347d91:0x159};_0x1000d6!==void 0x0&&(assertBoundedId(_0x1000d6,'shellId'),_0xc82312=_0x1000d6);function _0x547695(_0x26c758,_0x292454,_0x1b45a6,_0x2c5677){return _0x15cc83(_0x26c758,_0x292454-0x1db,_0x1b45a6-0xfb,_0x292454-0x6d5);}if(TERMINAL_EXECUTION_STATES['has'](_0x400d31[_0xcf5b04(_0x586673._0x467e6a,0x3d0,_0x586673._0x2f8f0f,_0x586673._0x2f8f0f)])&&!_0x3794f1)throw artifactError(_0xcf5b04(_0x586673._0x1f44b2,0x4c7,0x47b,_0x586673._0x44a7a4),_0x547695(_0x586673._0x24ec55,_0x586673._0x49c385,_0x586673._0x569c61,_0x586673._0x3ae6d9));const _0x49e191=Object[_0xcf5b04(0x4d5,_0x586673._0x367572,0x426,_0x586673._0x18395f)](_0x402d8a(_0x400d31,Date[_0xcf5b04(0x3a1,0x319,0x333,_0x586673._0x4a27fd)]()));if(!isBashArtifactStatus(_0x49e191))throw artifactError(_0x547695(_0x586673._0xb04815,0x45d,0x4bb,_0x586673._0xd6f463),_0x547695(_0x586673._0x501e6b,0x425,0x416,_0x586673._0x353eba));function _0xcf5b04(_0x1190e4,_0xef68db,_0x17a005,_0x1a9583){return _0x15cc83(_0xef68db,_0xef68db-0xd7,_0x17a005-_0x5894da._0x347d91,_0x1190e4-0x689);}let _0x4ffb6d;try{await writeBashArtifactStatus(_0x49e191),_0x4ffb6d={'status':_0x49e191,'statusErrorCode':null};}catch(_0x457324){_0x4ffb6d={'status':_0x49e191,'statusErrorCode':stableErrorCode(_0x457324,_0x547695(_0x586673._0x44d877,0x3e2,0x3df,0x43f))};}return _0x1e55b1=_0x4ffb6d,_0x4ffb6d;};let _0x5e35aa;const _0x2dd2c0=()=>{const _0x12d79f={_0x423cdb:0x3d5,_0x59209b:0x3d7,_0x5e65d:0x315,_0x31c268:0x278};if(_0x5e35aa)return _0x5e35aa;return _0x2809fd=!![],_0x5e35aa=_0x464e7a(async()=>{const _0x208173={_0x44744e:0x123};await _0x283fd6(_0x320102[_0x46fe85(_0x12d79f._0x423cdb,0x325,0x41b,_0x12d79f._0x59209b)]()),await _0x283fd6(_0x4f47db[_0x1d69bd(0x13,0x16f,0xd,0xcd)]());if(_0x9c5976!==null){try{await _0x9c5976[_0x46fe85(0x2db,0x2c7,_0x12d79f._0x5e65d,_0x12d79f._0x31c268)]();}catch(_0x3cec15){_0x26c7ca(_0x3cec15);}_0x9c5976=null;}function _0x1d69bd(_0x2e3ef7,_0x7780d8,_0x2ebdbe,_0x182a6d){return _0x3bcc(_0x182a6d- -_0x208173._0x44744e,_0x7780d8);}function _0x46fe85(_0x456e6d,_0x1321a7,_0x49d79c,_0x191c42){return _0x3bcc(_0x456e6d-0x1e5,_0x191c42);}_0x3794f1=!![];}),_0x5e35aa;};return{'ref':_0x46a416,'append'(_0x358eb1,_0x50da45){if(_0x2809fd)return Promise['resolve']();return _0x464e7a(()=>_0x46d6ce(_0x358eb1,_0x50da45));},'flush':_0x2dd2c0,'publish'(_0x2e10e8,_0x455502){const _0x3c7a22={..._0x2e10e8};return _0x464e7a(()=>_0x19996e(_0x3c7a22,_0x455502));},async 'interrupt'(){const _0xe0c043={_0x24742d:0x315,_0x47d80f:0x32b},_0x3ecc56={_0x423999:0x15b};return await _0x2dd2c0(),_0x464e7a(()=>{if(_0x1e55b1!==null&&TERMINAL_EXECUTION_STATES[_0x2debdf(0x346,_0xe0c043._0x24742d,0x3b4,_0xe0c043._0x47d80f)](_0x1e55b1['status']['state']))return _0x1e55b1;function _0x2debdf(_0x15c0da,_0x2f7c1f,_0x939beb,_0x5abdb0){return _0x3bcc(_0x15c0da-_0x3ecc56._0x423999,_0x5abdb0);}return _0x436fac=!![],_0x19996e({'state':'abandoned','exitCode':null,'signal':null,'errorCode':null,'finishedAt':Date['now']()});});}};}function isJsonObject(_0x4ec2d6){const _0x29e37c={_0x1747d6:0x390,_0x508c0d:0x416},_0x2dfd48={_0x4b5d9e:0x12d,_0x165f7d:0x1f1};function _0x43e026(_0x4c71ff,_0x45a7a6,_0xc9703a,_0x3b8d69){return _0x28d661(_0x4c71ff,_0x45a7a6-_0x2dfd48._0x4b5d9e,_0xc9703a-0x124,_0x3b8d69-_0x2dfd48._0x165f7d);}return typeof _0x4ec2d6===_0x43e026(0x48a,_0x29e37c._0x1747d6,0x44e,_0x29e37c._0x508c0d)&&_0x4ec2d6!==null&&!Array['isArray'](_0x4ec2d6);}function isToolOutputEnvelope(_0x525d74){const _0x18ee29={_0xfbff38:0x239,_0x1eda8e:0x224,_0x2f37f0:0x215,_0x2f851b:0x1d6,_0x6b2e49:0x2e7,_0x53eea7:0x272,_0x22669b:0xd9,_0x2fa5fa:0x1ec,_0x22039b:0x169,_0x1d4264:0x192,_0x136b9b:0x2a1,_0x4e211c:0x1bf,_0x85a405:0x276},_0x5d4761={_0x36c69e:0x1a6,_0x43c628:0x19f},_0x27658c={_0x56f059:0x1b2,_0x5863a4:0x1c2};function _0x2f3d7b(_0x479e36,_0xff4146,_0x3571da,_0x4b5369){return _0x1ea0ad(_0x479e36,_0x3571da-_0x27658c._0x56f059,_0x3571da-_0x27658c._0x5863a4,_0x4b5369-0xf6);}if(typeof _0x525d74!==_0x2f3d7b(0x29a,_0x18ee29._0xfbff38,_0x18ee29._0x1eda8e,_0x18ee29._0x2f37f0)||_0x525d74===null||Array[_0x51e10b(_0x18ee29._0x2f851b,0x2e5,_0x18ee29._0x6b2e49,_0x18ee29._0x53eea7)](_0x525d74))return![];if(typeof _0x525d74[_0x51e10b(_0x18ee29._0x22669b,_0x18ee29._0x2fa5fa,_0x18ee29._0x22039b,_0x18ee29._0x1d4264)]!=='string')return![];function _0x51e10b(_0x19c1c1,_0x32012d,_0x21820d,_0x4ddece){return _0x1ea0ad(_0x32012d,_0x4ddece-_0x5d4761._0x36c69e,_0x21820d-_0x5d4761._0x43c628,_0x4ddece-0x18a);}const _0x25b97a=_0x525d74[_0x51e10b(0x1cc,_0x18ee29._0x136b9b,_0x18ee29._0x4e211c,_0x18ee29._0x85a405)];return _0x25b97a===void 0x0||isJsonObject(_0x25b97a);}function _0x3bcc(_0x16d9cc,_0x33782f){_0x16d9cc=_0x16d9cc-0xa4;const _0x14fc9f=_0x14fc();let _0x3bcc9a=_0x14fc9f[_0x16d9cc];if(_0x3bcc['dGvlzF']===undefined){var _0x53998a=function(_0x4b0839){const _0x1a47e3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5b84e7='',_0x5826ad='';for(let _0x27580f=0x0,_0x5720fc,_0x473ffc,_0x1de8ab=0x0;_0x473ffc=_0x4b0839['charAt'](_0x1de8ab++);~_0x473ffc&&(_0x5720fc=_0x27580f%0x4?_0x5720fc*0x40+_0x473ffc:_0x473ffc,_0x27580f++%0x4)?_0x5b84e7+=String['fromCharCode'](0xff&_0x5720fc>>(-0x2*_0x27580f&0x6)):0x0){_0x473ffc=_0x1a47e3['indexOf'](_0x473ffc);}for(let _0x12e837=0x0,_0x136de3=_0x5b84e7['length'];_0x12e837<_0x136de3;_0x12e837++){_0x5826ad+='%'+('00'+_0x5b84e7['charCodeAt'](_0x12e837)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5826ad);};_0x3bcc['VdxBJw']=_0x53998a,_0x3bcc['ISbFZb']={},_0x3bcc['dGvlzF']=!![];}const _0x7ac548=_0x14fc9f[0x0],_0x12d7d8=_0x16d9cc+_0x7ac548,_0x23e73e=_0x3bcc['ISbFZb'][_0x12d7d8];return!_0x23e73e?(_0x3bcc9a=_0x3bcc['VdxBJw'](_0x3bcc9a),_0x3bcc['ISbFZb'][_0x12d7d8]=_0x3bcc9a):_0x3bcc9a=_0x23e73e,_0x3bcc9a;}function validateAgainstSchema(_0x1857f5,_0x3b3090,_0x3b429f){const _0x5ce0a8={_0x2491d3:0xb4,_0x55f55a:0x96,_0x4caf08:0x19f,_0x3af146:0x2ed,_0x446ff8:0x23a,_0x197119:0x2bd,_0x229fa6:0x239,_0x435e43:0x302,_0x3636c8:0x17c,_0x3ac609:0x2e1,_0x3f6e97:0x285,_0x3047c7:0x1e5,_0x5b9c38:0xa9,_0x4d6881:0x1c0,_0x13bd3f:0x184,_0x3d7556:0x145,_0x176c53:0x119,_0x423ea8:0x172,_0x27a120:0x209,_0x996fe4:0x1ce,_0xb44a7b:0x125,_0xc2ea98:0x159,_0xdc583c:0x1bf,_0x2961d4:0x7e,_0x3abb85:0xb0,_0x3fc614:0x1bf,_0x38e096:0x229,_0x304cf7:0x168,_0x110e4f:0x214,_0x240aca:0xfc,_0x25c933:0x148,_0x150bec:0x1f5,_0x5518a3:0x1cc,_0xf9190e:0x16f,_0x538f11:0xde,_0x35fc75:0x167,_0x5df350:0x14e,_0x23b952:0x1c3,_0x448537:0x175,_0x5609d3:0x24e,_0x1de784:0x1b1,_0x545e7b:0x301,_0x4fb8e9:0x363,_0x5475dc:0x99,_0x482c4f:0xe8,_0x49cd07:0x130,_0x27397a:0x2ef,_0x1aa4e3:0x31e,_0x2dd07d:0x252,_0x1d6148:0x1c1,_0x212573:0x216,_0x38d480:0x149,_0xcd54e5:0x11f,_0x4f2750:0x313,_0x54373b:0x123,_0x585d10:0x168,_0x48ef8c:0x225,_0x40829a:0x1a8,_0x113640:0x83,_0x4231e2:0x129,_0x28713d:0x222,_0x3cedbe:0x1eb,_0x54ad13:0x17f,_0x4b3329:0x161,_0x4d7bcf:0xfd,_0xa6d520:0xd6,_0x11e079:0x2bc,_0x346a1f:0x287,_0x58cec0:0x137,_0x5d97ad:0xe1,_0x3020c8:0xf4,_0x4c8512:0x2bc},_0x495612={_0x1a6324:0x187},_0x283eb0={_0x704c54:0xd6},_0x2d51ab={_0x5ddbd9:0x1aa},_0x30c7ab={_0x1b783b:0x14a};if('anyOf'in _0x3b429f){const _0x2467cc=_0x3b429f[_0x10b52e(_0x5ce0a8._0x2491d3,0x162,_0x5ce0a8._0x55f55a,0x119)]['some'](_0x1c1c3c=>{try{return validateAgainstSchema(_0x1857f5,_0x3b3090,_0x1c1c3c),!![];}catch{return![];}});if(!_0x2467cc)throw new Error(_0x10b52e(0x2d0,_0x5ce0a8._0x4caf08,_0x5ce0a8._0x3af146,_0x5ce0a8._0x446ff8)+_0x1857f5+_0x10b52e(0x23d,0x20a,0x1a2,0x1b7));return;}function _0x10b52e(_0x4baf88,_0x43b12a,_0x4d6645,_0x52cb41){return _0x1ea0ad(_0x43b12a,_0x52cb41-_0x30c7ab._0x1b783b,_0x4d6645-0xf1,_0x52cb41-0x1de);}function _0x163644(_0x36a91d,_0x2749d8,_0x3e2520,_0xe9a7ce){return _0x1ea0ad(_0x3e2520,_0x36a91d-0x223,_0x3e2520-0xfd,_0xe9a7ce-_0x2d51ab._0x5ddbd9);}switch(_0x3b429f[_0x163644(_0x5ce0a8._0x197119,_0x5ce0a8._0x229fa6,0x2c8,_0x5ce0a8._0x435e43)]){case _0x10b52e(0xac,0x1dc,_0x5ce0a8._0x3636c8,0x151):if(typeof _0x3b3090!=='string')throw new Error(_0x163644(0x313,_0x5ce0a8._0x3ac609,_0x5ce0a8._0x3f6e97,0x3c5)+_0x1857f5+_0x10b52e(0xd8,_0x5ce0a8._0x3047c7,_0x5ce0a8._0x5b9c38,0x163));if(_0x3b429f[_0x163644(_0x5ce0a8._0x4d6881,_0x5ce0a8._0x13bd3f,0x22c,_0x5ce0a8._0x3d7556)]!==void 0x0&&!_0x3b429f[_0x10b52e(0x199,_0x5ce0a8._0x176c53,_0x5ce0a8._0x423ea8,0xe7)][_0x10b52e(0x23e,0x205,0x213,_0x5ce0a8._0x27a120)](_0x3b3090))throw new Error(_0x10b52e(_0x5ce0a8._0x996fe4,0x2ab,0x253,0x23a)+_0x1857f5+_0x10b52e(_0x5ce0a8._0xb44a7b,0x10d,_0x5ce0a8._0xc2ea98,_0x5ce0a8._0xdc583c)+_0x3b429f[_0x10b52e(_0x5ce0a8._0x2961d4,_0x5ce0a8._0x3abb85,0xb2,0xe7)][_0x163644(_0x5ce0a8._0x3fc614,_0x5ce0a8._0x38e096,_0x5ce0a8._0x304cf7,_0x5ce0a8._0x110e4f)](',\x20'));return;case _0x10b52e(_0x5ce0a8._0x240aca,0x8a,_0x5ce0a8._0x25c933,0xd4):if(typeof _0x3b3090!=='number')throw new Error(_0x10b52e(_0x5ce0a8._0x150bec,0x1d9,_0x5ce0a8._0x5518a3,_0x5ce0a8._0x446ff8)+_0x1857f5+_0x10b52e(_0x5ce0a8._0xf9190e,0x166,0x8f,_0x5ce0a8._0x538f11));return;case _0x10b52e(_0x5ce0a8._0x35fc75,_0x5ce0a8._0x5df350,_0x5ce0a8._0x23b952,_0x5ce0a8._0x448537):if(typeof _0x3b3090!==_0x163644(_0x5ce0a8._0x5609d3,_0x5ce0a8._0x1de784,0x308,_0x5ce0a8._0x545e7b))throw new Error(_0x163644(0x313,_0x5ce0a8._0x4fb8e9,0x2f0,0x35c)+_0x1857f5+_0x10b52e(0x184,0x249,0x1a9,_0x5ce0a8._0x229fa6));return;case _0x10b52e(0x89,_0x5ce0a8._0x5475dc,_0x5ce0a8._0x482c4f,_0x5ce0a8._0x49cd07):if(!Array[_0x163644(_0x5ce0a8._0x27397a,0x250,_0x5ce0a8._0x1aa4e3,_0x5ce0a8._0x2dd07d)](_0x3b3090))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1857f5+_0x163644(_0x5ce0a8._0x1d6148,_0x5ce0a8._0x212573,0x102,0x115));_0x3b3090['forEach']((_0x330207,_0x187cfb)=>{function _0x271573(_0x52f279,_0x51b29c,_0x5b44a5,_0x4dc2dc){return _0x10b52e(_0x52f279-_0x283eb0._0x704c54,_0x52f279,_0x5b44a5-0x136,_0x51b29c- -0x1e7);}validateAgainstSchema(_0x1857f5+'['+_0x187cfb+']',_0x330207,_0x3b429f[_0x271573(-0x8b,-0x124,-_0x495612._0x1a6324,-0x95)]);});return;case _0x10b52e(0x278,_0x5ce0a8._0x38d480,_0x5ce0a8._0xcd54e5,0x1bc):if(!isJsonObject(_0x3b3090))throw new Error(_0x163644(_0x5ce0a8._0x4f2750,0x381,0x2cd,0x310)+_0x1857f5+_0x10b52e(_0x5ce0a8._0x54373b,_0x5ce0a8._0x585d10,_0x5ce0a8._0x48ef8c,_0x5ce0a8._0x40829a));for(const _0x1bbc82 of _0x3b429f[_0x10b52e(0x125,_0x5ce0a8._0x113640,0x1c3,_0x5ce0a8._0x4231e2)]??[]){if(!Object[_0x10b52e(_0x5ce0a8._0x28713d,0x1dd,0x229,0x1dc)](_0x3b3090,_0x1bbc82))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x1857f5+':\x20missing\x20required\x20field\x20\x22'+_0x1bbc82+'\x22');}if(_0x3b429f[_0x10b52e(_0x5ce0a8._0x3cedbe,0x168,0xcc,_0x5ce0a8._0x54ad13)]===![]){const _0x5a4262=Object[_0x10b52e(0xee,_0x5ce0a8._0x4b3329,0x1a5,0x15e)](_0x3b3090)[_0x10b52e(0x78,_0x5ce0a8._0x4d7bcf,0x101,_0x5ce0a8._0xa6d520)](_0x1f141c=>!Object[_0x163644(0x2b5,0x35a,0x347,0x249)](_0x3b429f[_0x10b52e(0xa1,0x16c,0x8d,0xc1)],_0x1f141c));if(_0x5a4262!==void 0x0)throw new Error(_0x10b52e(_0x5ce0a8._0x11e079,0x1e3,_0x5ce0a8._0x346a1f,_0x5ce0a8._0x446ff8)+_0x1857f5+_0x10b52e(_0x5ce0a8._0x58cec0,0x211,_0x5ce0a8._0x5d97ad,0x162)+_0x5a4262+'\x22');}for(const [_0x3514cc,_0x447ee7]of Object['entries'](_0x3b429f[_0x163644(0x19a,_0x5ce0a8._0x3020c8,0x216,0x213)])){Object[_0x163644(0x2b5,_0x5ce0a8._0x110e4f,0x252,_0x5ce0a8._0x4c8512)](_0x3b3090,_0x3514cc)&&validateAgainstSchema(_0x1857f5+'.'+_0x3514cc,_0x3b3090[_0x3514cc],_0x447ee7);}}}function normalizeToolOutputValue(_0x48b716){const _0x2cbc8e={_0x36e0b2:0x99,_0x4e9ebf:0xc6,_0x3b59bf:0x6b,_0x979e7:0x2d7,_0x38c603:0x32f,_0x23ec15:0x376,_0x27adab:0x2ff,_0x2b31e5:0x35d,_0x146123:0x3f1,_0x36ba7e:0x3ea,_0x3b67c9:0x50,_0x1debf2:0x57},_0x5af2e2={_0x3e9b50:0x2bd},_0x3a217b={_0x21a9bc:0x13b,_0x323367:0x194,_0x5043d9:0x1a5};if(isToolOutputEnvelope(_0x48b716))return{'output':_0x48b716['output'],'structured':_0x48b716[_0x553120(-_0x2cbc8e._0x36e0b2,-0xa1,-_0x2cbc8e._0x4e9ebf,-_0x2cbc8e._0x3b59bf)]??{'value':_0x48b716[_0x4355ec(0x2a9,0x1e9,0x28b,_0x2cbc8e._0x979e7)]},..._0x48b716['content']!==void 0x0?{'content':_0x48b716['content']}:{}};function _0x553120(_0x5b55af,_0x3f7c08,_0x226be5,_0x3c315d){return _0x1ea0ad(_0x5b55af,_0x3c315d- -_0x3a217b._0x21a9bc,_0x226be5-_0x3a217b._0x323367,_0x3c315d-_0x3a217b._0x5043d9);}if(typeof _0x48b716==='string')return{'output':_0x48b716,'structured':{'value':_0x48b716}};function _0x4355ec(_0xf1ff19,_0x5288f9,_0x487fa2,_0x9536e7){return _0x1ea0ad(_0x9536e7,_0xf1ff19-_0x5af2e2._0x3e9b50,_0x487fa2-0x13c,_0x9536e7-0x50);}if(typeof _0x48b716===_0x4355ec(_0x2cbc8e._0x38c603,_0x2cbc8e._0x23ec15,0x3b2,_0x2cbc8e._0x27adab)&&_0x48b716!==null&&!Array[_0x4355ec(0x389,_0x2cbc8e._0x2b31e5,_0x2cbc8e._0x146123,_0x2cbc8e._0x36ba7e)](_0x48b716))return{'output':JSON['stringify'](_0x48b716,null,0x2),'structured':_0x48b716};return{'output':JSON[_0x553120(0x57,-0x9f,_0x2cbc8e._0x3b67c9,-_0x2cbc8e._0x1debf2)](_0x48b716,null,0x2),'structured':{'value':_0x48b716}};}function createToolOutput(_0x413e06,_0x3372f4={'value':_0x413e06},_0x365e24){return{'output':_0x413e06,'structured':_0x3372f4,..._0x365e24!==void 0x0?{'content':_0x365e24}:{}};}var ToolExecutionError=class extends Error{[_0x28d661(0x28e,0x28f,0x266,0x283)];constructor(_0x1708f4,_0x4b5622={}){super(_0x1708f4),this['name']='ToolExecutionError',this['structured']=_0x4b5622;}};function defineTool(_0x503347){return _0x503347;}function resolveToolPermissionClass(_0x38e3b9){const _0x163eb1={_0x57962a:0x180,_0x11a203:0x76,_0x709456:0x1a7,_0x2fac9d:0x12b,_0x567c7c:0xbf,_0xf74f92:0x14f,_0x56d4e4:0xdf,_0x4839b5:0x146},_0x44eeef={_0x35ac8e:0x252},_0x24915a=_0x38e3b9?.[_0x3bf35d(-_0x163eb1._0x57962a,-0xf8,-_0x163eb1._0x11a203,-0x61)];if(_0x24915a===_0x3bf35d(-_0x163eb1._0x709456,-_0x163eb1._0x2fac9d,-0xf0,-_0x163eb1._0x567c7c)||_0x24915a==='write'||_0x24915a===_0xed1bc8(_0x163eb1._0xf74f92,0x11d,0x15f,_0x163eb1._0x56d4e4))return _0x24915a;function _0xed1bc8(_0x7b3942,_0x5cde5f,_0x164781,_0x2784ad){return _0x28d661(_0x5cde5f,_0x5cde5f-0x1a5,_0x164781-0xe7,_0x164781- -0x63);}function _0x3bf35d(_0x432f80,_0x347753,_0x53fdb4,_0x3880e0){return _0x28d661(_0x53fdb4,_0x347753-0x36,_0x53fdb4-0xe2,_0x347753- -_0x44eeef._0x35ac8e);}return _0xed1bc8(_0x163eb1._0x4839b5,0x17d,0x15f,0xf8);}var ToolRegistry=class{[_0x1ea0ad(-0x5c,0x32,0xce,0x2c)]=new Map();constructor(_0x226036=[]){const _0x39d6be={_0x561544:0x90,_0x3fe869:0xe0},_0x35be83={_0x5e684f:0xd0};function _0x5f4be4(_0x5020bd,_0x39edf0,_0x4bbc8e,_0x2b7161){return _0x1ea0ad(_0x5020bd,_0x39edf0-0x15,_0x4bbc8e-0x10,_0x2b7161-_0x35be83._0x5e684f);}for(const _0x374b01 of _0x226036){this[_0x5f4be4(0x36,_0x39d6be._0x561544,0x99,_0x39d6be._0x3fe869)](_0x374b01);}}['register'](_0x3584dd){const _0xfc24e8={_0x14334c:0x79,_0x149d17:0x135,_0xb798f3:0x257,_0x322e76:0x240,_0xa3a763:0x24b,_0x1a4339:0x1f1,_0x40a1ce:0x8d,_0x55ddbf:0x141},_0x2b864b={_0x44a2c3:0x65},_0xe35814={_0x460032:0x1a3,_0x13d7e4:0x35};function _0x4bf6b0(_0x1baf37,_0x319ce3,_0x104178,_0x2a68f0){return _0x28d661(_0x1baf37,_0x319ce3-_0xe35814._0x460032,_0x104178-_0xe35814._0x13d7e4,_0x104178- -0xb0);}function _0x3f746b(_0x369b9f,_0x991b15,_0x23c279,_0x49a90e){return _0x28d661(_0x49a90e,_0x991b15-_0x2b864b._0x44a2c3,_0x23c279-0xef,_0x369b9f- -0x23);}this[_0x4bf6b0(0x1f4,_0xfc24e8._0x14334c,_0xfc24e8._0x149d17,0x184)][_0x3f746b(_0xfc24e8._0xb798f3,_0xfc24e8._0x322e76,_0xfc24e8._0xa3a763,_0xfc24e8._0x1a4339)](_0x3584dd[_0x4bf6b0(_0xfc24e8._0x40a1ce,0x17c,_0xfc24e8._0x55ddbf,0x113)],_0x3584dd);}[_0x28d661(0x272,0x226,0x1fe,0x213)](_0xaf43e8){const _0x30a921={_0x175ca4:0x219,_0x1f48f3:0xe4,_0x3247ec:0x1c4,_0x50072f:0x246},_0x4e610a={_0x3e1416:0x4f},_0x458793={_0xada465:0xa3};function _0x4d6dd7(_0xb8a226,_0x4a73af,_0x262179,_0xd85f31){return _0x1ea0ad(_0x4a73af,_0xb8a226-_0x458793._0xada465,_0x262179-0xc5,_0xd85f31-0x32);}function _0x13a6e3(_0x160200,_0x5c1293,_0x1112fe,_0x16fded){return _0x28d661(_0x16fded,_0x5c1293-0x1b,_0x1112fe-0xa9,_0x5c1293- -_0x4e610a._0x3e1416);}return this[_0x13a6e3(0x252,0x196,_0x30a921._0x175ca4,_0x30a921._0x1f48f3)][_0x13a6e3(0x20a,_0x30a921._0x3247ec,0x111,_0x30a921._0x50072f)](_0xaf43e8);}[_0x1ea0ad(0x125,0x93,0x88,0x110)](){const _0x17ea37={_0x3e3206:0x43b,_0x50500d:0x3a8,_0x357e74:0x3db};function _0x15b4db(_0x38b5ff,_0x3ad938,_0x250719,_0x58afa6){return _0x1ea0ad(_0x58afa6,_0x38b5ff-0x409,_0x250719-0x170,_0x58afa6-0x10e);}return[...this[_0x15b4db(_0x17ea37._0x3e3206,_0x17ea37._0x50500d,_0x17ea37._0x357e74,0x3fe)]['values']()];}[_0x28d661(0x154,0x11e,0x214,0x1a1)](){const _0x281b4e={_0x468b17:0x176,_0x4cafe1:0x1e8,_0xafc6b1:0x202},_0x2f27dd={_0x4f0d1e:0x13,_0x26bd1e:0x62,_0x480214:0x70,_0x209a53:0x215,_0x522532:0x1e3,_0x35034f:0x1d4,_0x33efda:0x13f,_0x351c60:0x1d,_0x5ba61d:0x29},_0xc9f8de={_0x4babbe:0x194,_0x245b9a:0xe5,_0x1e0e93:0x133},_0x9672a8={_0x8b174b:0xe6};function _0x39cc98(_0x67652c,_0x2eb8b9,_0x4b8b07,_0x5dbf2c){return _0x1ea0ad(_0x67652c,_0x2eb8b9-_0x9672a8._0x8b174b,_0x4b8b07-0x23,_0x5dbf2c-0x17e);}return this[_0x39cc98(_0x281b4e._0x468b17,0x179,_0x281b4e._0x4cafe1,_0x281b4e._0xafc6b1)]()['map'](_0x3c83b9=>{const _0x2d527b={_0x35df37:0xe8};function _0x52ff1f(_0x5a6864,_0x3c05d3,_0x29595f,_0x113e45){return _0x39cc98(_0x29595f,_0x3c05d3-0xb0,_0x29595f-0x85,_0x113e45-_0x2d527b._0x35df37);}function _0x1b954d(_0x3bbb5a,_0xeb5ab4,_0x1a7a3f,_0x215707){return _0x39cc98(_0x215707,_0x1a7a3f- -_0xc9f8de._0x4babbe,_0x1a7a3f-_0xc9f8de._0x245b9a,_0x215707-_0xc9f8de._0x1e0e93);}return{'name':_0x3c83b9[_0x1b954d(-_0x2f27dd._0x4f0d1e,-_0x2f27dd._0x26bd1e,-_0x2f27dd._0x480214,0x25)],'description':_0x3c83b9[_0x52ff1f(_0x2f27dd._0x209a53,_0x2f27dd._0x522532,_0x2f27dd._0x35034f,_0x2f27dd._0x33efda)],'input_schema':_0x3c83b9[_0x1b954d(0xc9,_0x2f27dd._0x351c60,_0x2f27dd._0x5ba61d,0xd9)]};});}};function validateToolInput(_0x585517,_0xb6c03e){const _0x1a42ff={_0x22b611:0x2c3,_0x2a2b01:0x23e},_0x2a2282={_0x32fadb:0x232,_0x5e68a4:0xb4};validateAgainstSchema(_0x1a32c9(-_0x1a42ff._0x22b611,-0x1ae,-_0x1a42ff._0x2a2b01,-0x217),_0x585517,_0xb6c03e);function _0x1a32c9(_0x3f5d24,_0x586d92,_0x525c31,_0x5336ec){return _0x1ea0ad(_0x3f5d24,_0x5336ec- -_0x2a2282._0x32fadb,_0x525c31-0x1b0,_0x5336ec-_0x2a2282._0x5e68a4);}return _0x585517;}function deriveFinalToolOutput(_0x3cf342){const _0x94c7b5={_0xe4e6e7:0x3,_0x28170e:0xea,_0x14f8f5:0x19c,_0x3de55e:0x167,_0x40dc0:0x23,_0x56bdaa:0x1a,_0x10a690:0x85,_0x5923c4:0xa3,_0x16ff0a:0xd3,_0x409491:0xe9,_0x5c2c4b:0x3,_0x432e5c:0x19,_0x19ec4e:0xc6,_0x3f324a:0xcb,_0x563d5d:0x16b,_0x1b6c0c:0xea,_0x4ab17d:0x72,_0x2bb2f6:0x93,_0x3ebcf9:0x162},_0x1caa79={_0x1bae53:0x16f,_0x28ee0c:0x269},_0x131a0b={_0x15d1fc:0x118};if(_0x3cf342[_0x5992d0(-0x62,_0x94c7b5._0xe4e6e7,-0x76,0x6c)]===0x0)return{'output':'','structured':{}};function _0x5992d0(_0x38671d,_0x322f34,_0xd8b226,_0x1c6721){return _0x28d661(_0x38671d,_0x322f34-0x16,_0xd8b226-_0x131a0b._0x15d1fc,_0x322f34- -0x17c);}if(_0x3cf342[_0x5fa405(-_0x94c7b5._0x28170e,-_0x94c7b5._0x14f8f5,-0xd2,-_0x94c7b5._0x3de55e)]===0x1)return{'output':_0x3cf342[0x0][_0x5992d0(-0x89,_0x94c7b5._0x40dc0,0x7a,-0x7e)],'structured':_0x3cf342[0x0][_0x5fa405(_0x94c7b5._0x56bdaa,_0x94c7b5._0xe4e6e7,-_0x94c7b5._0x10a690,-_0x94c7b5._0x5923c4)],..._0x3cf342[0x0][_0x5fa405(-0x52,-_0x94c7b5._0x16ff0a,-_0x94c7b5._0x409491,0x54)]!==void 0x0?{'content':_0x3cf342[0x0][_0x5992d0(0x34,0x9b,_0x94c7b5._0x5c2c4b,-_0x94c7b5._0x432e5c)]}:{}};function _0x5fa405(_0x1f2a05,_0x278d3c,_0x495e13,_0x1d2d79){return _0x28d661(_0x1d2d79,_0x278d3c-0x1ed,_0x495e13-_0x1caa79._0x1bae53,_0x1f2a05- -_0x1caa79._0x28ee0c);}const _0x206aa6=_0x3cf342[_0x5992d0(_0x94c7b5._0x19ec4e,0x7a,0x13a,0x10)](_0x1d898a=>_0x1d898a[_0x5992d0(0x8f,0x9b,0x13,0xd6)]!==void 0x0);return{'output':_0x3cf342[_0x5fa405(-_0x94c7b5._0x3f324a,-_0x94c7b5._0x563d5d,-0x157,-0xa4)](_0x5bc874=>_0x5bc874[_0x5fa405(-0xca,-0x129,-0x119,-0x2b)])['join'](''),'structured':{'chunks':_0x3cf342['map'](_0x58d7f9=>_0x58d7f9[_0x5fa405(0x1a,-0x8e,0x4d,-0xf)])},..._0x206aa6[_0x5fa405(-_0x94c7b5._0x1b6c0c,-_0x94c7b5._0x4ab17d,-_0x94c7b5._0x2bb2f6,-_0x94c7b5._0x3ebcf9)]===0x1?{'content':_0x206aa6[0x0]['content']}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x3ef47c){const _0x4b2334={_0x4fcd68:0x2f9,_0xad88cb:0x2aa,_0x68673e:0x384,_0x2c739c:0x3ae,_0x371342:0x1b6,_0x4087a4:0x1b8},_0x3b1be8={_0x485151:0x2f8,_0x2e416f:0x1a6};function _0x201d17(_0x338d3c,_0x5a92d4,_0x5a4aca,_0x2db2ce){return _0x1ea0ad(_0x2db2ce,_0x5a92d4-0x100,_0x5a4aca-0x70,_0x2db2ce-0xc3);}function _0x11cbcb(_0xb455a7,_0x1db402,_0x567d9d,_0x247bcc){return _0x1ea0ad(_0x567d9d,_0x1db402-_0x3b1be8._0x485151,_0x567d9d-0x126,_0x247bcc-_0x3b1be8._0x2e416f);}super(_0x11cbcb(0x38c,_0x4b2334._0x4fcd68,0x295,_0x4b2334._0xad88cb),{'cause':_0x3ef47c}),this[_0x11cbcb(_0x4b2334._0x68673e,0x336,_0x4b2334._0x2c739c,0x332)]=_0x201d17(_0x4b2334._0x371342,0xf9,_0x4b2334._0x4087a4,0x12b);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x367340,_0x5bd2dc){const _0x354309={_0x10a48e:0x33f},_0x34b1c0={_0x3ec41f:0x100};function _0x862418(_0x206eae,_0x3a3264,_0x30405f,_0x11ee97){return _0x28d661(_0x206eae,_0x3a3264-_0x34b1c0._0x3ec41f,_0x30405f-0x24,_0x30405f-0x22d);}_0x367340&&boundNestedExecutionControls['get'](_0x367340)?.[_0x862418(0x42b,_0x354309._0x10a48e,0x3a6,0x3ea)](_0x5bd2dc);}async function drainBoundNestedToolPersistence(_0x43d4e5){const _0x2f905f={_0x5f1c6a:0x304,_0x4cbbad:0x2a3,_0x113782:0x278,_0xf1a1e8:0x2ba,_0x56425:0x316},_0x2603ea={_0x3d9da7:0x121};function _0xa97d9e(_0x230216,_0x1f737a,_0x56fc22,_0x7c9c68){return _0x28d661(_0x1f737a,_0x1f737a-0x189,_0x56fc22-0x2,_0x7c9c68-_0x2603ea._0x3d9da7);}function _0x1ae159(_0x12a7b2,_0x577981,_0x5a4c2d,_0x364d45){return _0x1ea0ad(_0x12a7b2,_0x5a4c2d-0x231,_0x5a4c2d-0x14f,_0x364d45-0x2c);}_0x43d4e5&&await boundNestedExecutionControls[_0xa97d9e(0x38c,_0x2f905f._0x5f1c6a,_0x2f905f._0x4cbbad,0x334)](_0x43d4e5)?.[_0x1ae159(_0x2f905f._0x113782,_0x2f905f._0xf1a1e8,_0x2f905f._0x56425,0x25e)]();}function commitBoundToolExecutionTerminalState(_0x7eff01){const _0x410fe4={_0x47f11a:0x272,_0x3176d3:0x244,_0x5c11cd:0x239,_0x10b093:0x22c,_0x48e06e:0x217},_0x3da9cd={_0x32dc0a:0x1d9,_0x58963e:0x102},_0x54f23e={_0x2d0803:0x13e,_0x2eb32d:0x18e};function _0x58ad8d(_0x3a49d9,_0x220d22,_0x228a6d,_0x1d306b){return _0x28d661(_0x1d306b,_0x220d22-_0x54f23e._0x2d0803,_0x228a6d-_0x54f23e._0x2eb32d,_0x220d22- -0x430);}function _0xae436c(_0x48472f,_0x1b6de1,_0x33bff4,_0x5e5ac9){return _0x1ea0ad(_0x33bff4,_0x5e5ac9-_0x3da9cd._0x32dc0a,_0x33bff4-0x178,_0x5e5ac9-_0x3da9cd._0x58963e);}_0x7eff01&&boundNestedExecutionControls[_0xae436c(0x2d9,_0x410fe4._0x47f11a,_0x410fe4._0x3176d3,_0x410fe4._0x5c11cd)](_0x7eff01)?.[_0x58ad8d(-_0x410fe4._0x10b093,-_0x410fe4._0x48e06e,-0x2ba,-0x24e)]();}function _0x1ea0ad(_0x3a15f5,_0x371d6d,_0xb8ad45,_0x49d7df){return _0x3bcc(_0x371d6d- -0x130,_0x3a15f5);}var PARENT_TOOL_SETTLED_MESSAGE=_0x28d661(0x6a,0xbd,0x1e1,0x12b);function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x6c213b,_0x1abbe8,_0x128459,_0x44eaaf,_0x580ddb=[]){const _0x530648={_0x592537:0x328,_0x29dce4:0x40c,_0x35f977:0x36e},_0x5b727c={_0x40f685:0x372};function _0x511f91(_0x463d54,_0x539f6f,_0x2547c2,_0xa36716){return _0x1ea0ad(_0x2547c2,_0xa36716-_0x5b727c._0x40f685,_0x2547c2-0x142,_0xa36716-0x88);}return{'callId':_0x6c213b,'toolName':_0x1abbe8,'status':_0x511f91(_0x530648._0x592537,0x402,_0x530648._0x29dce4,_0x530648._0x35f977),'output':_0x128459,'structured':_0x44eaaf,'chunks':_0x580ddb,'meta':createToolMeta()};}function createRejectedToolResult(_0x1b323a,_0x4ca855,_0x3c9d5f){const _0xec4538={_0x5f1e92:0x400,_0x2bd621:0x36d,_0x595e97:0x35b,_0x43211e:0x30a,_0x19b7f4:0x50d},_0x27392e={_0xbac417:0x89};function _0x2e5351(_0xa46793,_0x59a10d,_0xb3b94d,_0x2f008e){return _0x28d661(_0xb3b94d,_0x59a10d-0x4,_0xb3b94d-0xf6,_0x59a10d-0x211);}const _0x46b915=_0x3c9d5f?.[_0x4af0fd(_0xec4538._0x5f1e92,0x36d,_0xec4538._0x2bd621,_0xec4538._0x595e97)]()['length']?_0x3c9d5f:_0x4af0fd(_0xec4538._0x43211e,0x276,0x27d,0x1ce)+_0x4ca855;function _0x4af0fd(_0x2aaffc,_0x1641e0,_0x52bb9f,_0x5562bc){return _0x28d661(_0x1641e0,_0x1641e0-_0x27392e._0xbac417,_0x52bb9f-0x99,_0x52bb9f-0x108);}return createErrorToolResult(_0x1b323a,_0x4ca855,_0x46b915,{'error':'tool_rejected',..._0x3c9d5f?.[_0x2e5351(0x486,0x476,_0xec4538._0x19b7f4,0x411)]()[_0x4af0fd(0x219,0x281,0x287,0x2a6)]?{'reason':_0x3c9d5f}:{}});}function createAbortedToolResult(_0x3133ff,_0x211597,_0x391c11,_0x30a0c3=[]){const _0x1724bf={_0xd826fa:0x6c,_0x492de3:0x2de},_0x792152={_0xd77631:0x153,_0xdb7a04:0x144,_0x45b0e8:0x1ce};function _0x5aa044(_0x64a2aa,_0x9f0019,_0x5c1124,_0x1fc4eb){return _0x28d661(_0x64a2aa,_0x9f0019-_0x792152._0xd77631,_0x5c1124-_0x792152._0xdb7a04,_0x9f0019- -_0x792152._0x45b0e8);}if(_0x211597==='Program')return createErrorToolResult(_0x3133ff,_0x211597,'program\x20execution\x20was\x20aborted',{'error':'program-aborted','aborted':!![]},_0x30a0c3);const _0x3bda23=toAbortError(_0x391c11);function _0x4a63e2(_0x207639,_0x28dec3,_0x39c5b2,_0x5da631){return _0x1ea0ad(_0x28dec3,_0x207639-0x1be,_0x39c5b2-0x1ea,_0x5da631-0xec);}return createErrorToolResult(_0x3133ff,_0x211597,_0x3bda23['message'],{'error':_0x3bda23[_0x5aa044(-_0x1724bf._0xd826fa,-0x6a,-0xcf,-0x11b)],..._0x391c11 instanceof ToolExecutionError?_0x391c11[_0x4a63e2(0x28e,_0x1724bf._0x492de3,0x211,0x309)]:{},'aborted':!![]},_0x30a0c3);}function createSuccessToolResult(_0x230803,_0x585f49,_0x2747b2,_0x19c234){const _0x35b0dc={_0x24e4ed:0x217,_0x399b7f:0x19e,_0x373442:0x4e,_0x2eaa1c:0x6f,_0x7df90:0x2f,_0x3b953d:0x270,_0x5bc19d:0x138,_0x16f59d:0x1c5,_0x4ea82b:0x1ef},_0x27829b={_0x518fe7:0x3dc};function _0x2339dd(_0x347263,_0x199773,_0x8bd705,_0x5cb198){return _0x28d661(_0x5cb198,_0x199773-0x101,_0x8bd705-0x13e,_0x8bd705- -_0x27829b._0x518fe7);}function _0x32ab36(_0x47787a,_0x584324,_0x3b1dff,_0x4eedf1){return _0x1ea0ad(_0x3b1dff,_0x584324- -0x13f,_0x3b1dff-0x1e9,_0x4eedf1-0x10f);}return{'callId':_0x230803,'toolName':_0x585f49,'status':'ok','output':_0x2747b2[_0x2339dd(-_0x35b0dc._0x24e4ed,-_0x35b0dc._0x399b7f,-0x23d,-0x23a)],'structured':_0x2747b2[_0x32ab36(-_0x35b0dc._0x373442,-_0x35b0dc._0x2eaa1c,-0x122,_0x35b0dc._0x7df90)],..._0x2747b2[_0x2339dd(-_0x35b0dc._0x3b953d,-_0x35b0dc._0x5bc19d,-0x1c5,-0x113)]!==void 0x0?{'content':_0x2747b2[_0x2339dd(-0x24f,-0x26e,-_0x35b0dc._0x16f59d,-_0x35b0dc._0x4ea82b)]}:{},'chunks':_0x19c234,'meta':createToolMeta()};}function createUnknownToolResult(_0x17f439,_0x1f3007){const _0x127e6c={_0x450f6c:0x53,_0xa13fd:0x75,_0x9361d:0x3e3,_0x72f0e4:0x3d9},_0x20728c={_0x3336ee:0x393,_0x269803:0x5a};function _0x488ee3(_0x3229a1,_0xa615bd,_0x35f588,_0x2bbcdf){return _0x28d661(_0xa615bd,_0xa615bd-0xad,_0x35f588-0x14d,_0x3229a1- -0x1ba);}function _0x560d9d(_0x5f0f9c,_0x124fac,_0x8a660e,_0x2aef25){return _0x1ea0ad(_0x124fac,_0x8a660e-_0x20728c._0x3336ee,_0x8a660e-_0x20728c._0x269803,_0x2aef25-0x77);}return createErrorToolResult(_0x17f439,_0x1f3007,_0x488ee3(0xe3,0xb0,_0x127e6c._0x450f6c,_0x127e6c._0xa13fd)+_0x1f3007,{'error':_0x560d9d(0x3bb,_0x127e6c._0x9361d,0x350,_0x127e6c._0x72f0e4)});}function cloneToolCallForPublication(_0x5daa39,_0x750e0f,_0xc59abe){const _0x365f2b={_0x208e9e:0x151,_0x2443a9:0xe3},_0x512e9d={_0x37eb42:0x86,_0x13ff64:0x2c};function _0x25ca05(_0x38506c,_0x19b971,_0x3af1b2,_0x2a04bd){return _0x28d661(_0x38506c,_0x19b971-_0x512e9d._0x37eb42,_0x3af1b2-0x68,_0x2a04bd- -_0x512e9d._0x13ff64);}return{...structuredClone(_0x5daa39),'type':_0x25ca05(_0x365f2b._0x208e9e,0xb9,_0x365f2b._0x2443a9,0x137),'id':_0x750e0f,'name':_0xc59abe};}function cloneToolResultChunkForPublication(_0x39905a){return structuredClone(_0x39905a);}function cloneToolResultForPublication(_0x512aa4,_0x2960bb,_0x11d611){const {chunks:_0x43d840,..._0x403aad}=_0x512aa4;return{...structuredClone(_0x403aad),'callId':_0x2960bb,'toolName':_0x11d611,'chunks':_0x43d840['map'](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0xb2f3dd){const _0x5e33b8={_0x446e37:0x153,_0x5b81ae:0x2de,_0x42ce47:0x209,_0x1da575:0x34a,_0x7a0915:0x278},_0x58b206={_0x3f26ec:0x2ba},_0x487e27={_0xcdf62f:0x1c5};function _0x1f7843(_0x305d15,_0x509afc,_0x54d605,_0x5d5b8f){return _0x1ea0ad(_0x54d605,_0x509afc- -_0x487e27._0xcdf62f,_0x54d605-0xb,_0x5d5b8f-0x101);}if(typeof _0xb2f3dd!==_0x1f7843(-0x153,-_0x5e33b8._0x446e37,-0x18e,-0x1be)||_0xb2f3dd===null)return![];function _0x18fcde(_0x4f4927,_0x4353ae,_0x22373c,_0x215a3b){return _0x1ea0ad(_0x4353ae,_0x215a3b-_0x58b206._0x3f26ec,_0x22373c-0x17f,_0x215a3b-0x1e5);}return _0xb2f3dd['action']===_0x18fcde(0x2f7,_0x5e33b8._0x5b81ae,0x395,0x38d)||_0xb2f3dd[_0x18fcde(_0x5e33b8._0x42ce47,_0x5e33b8._0x1da575,_0x5e33b8._0x7a0915,0x2c5)]===_0x1f7843(-0x13d,-0x19c,-0xed,-0x25b);}function normalizeExecutionError(_0x266131){const _0x18ca27={_0x486f20:0x164,_0x29798f:0x1e3,_0x4723db:0x1b3,_0x34aa55:0x1c9,_0x3e4565:0x10b,_0x123ad7:0x23e,_0x19623a:0x108,_0x27225a:0x97,_0x21f368:0x255,_0x555914:0x21d,_0x598852:0x20b,_0x289bd8:0x201,_0x2484e5:0x23d,_0x25c57c:0x172,_0x260dd7:0x124},_0x2c90bc={_0x37ae28:0x129},_0x1864dc={_0x75cf6:0x12b,_0xaab936:0x32d};if(_0x266131 instanceof ToolExecutionError)return{'errorMessage':_0x266131['message'],'structured':{'error':_0x266131[_0x641472(-_0x18ca27._0x486f20,-_0x18ca27._0x29798f,-0x259,-_0x18ca27._0x4723db)],..._0x266131['structured']}};if(_0x266131 instanceof Error)return{'errorMessage':_0x266131[_0x4445de(-_0x18ca27._0x34aa55,-_0x18ca27._0x3e4565,-0x1a4,-_0x18ca27._0x123ad7)],'structured':{'error':_0x266131['message']}};if(typeof _0x266131===_0x4445de(-_0x18ca27._0x19623a,-_0x18ca27._0x27225a,-0x128,-0x121)&&_0x266131!==null&&_0x4445de(-0x1c9,-0x182,-0x16b,-_0x18ca27._0x21f368)in _0x266131&&typeof _0x266131['message']===_0x4445de(-0x173,-0x1a5,-_0x18ca27._0x555914,-_0x18ca27._0x598852))return{'errorMessage':_0x266131[_0x4445de(-0x1c9,-0x1b2,-_0x18ca27._0x289bd8,-_0x18ca27._0x2484e5)],'structured':{'error':_0x266131[_0x641472(-_0x18ca27._0x25c57c,-_0x18ca27._0x29798f,-0x292,-_0x18ca27._0x260dd7)]}};function _0x4445de(_0x2eb756,_0x5b3d3c,_0xa7be2e,_0x1c1ab2){return _0x28d661(_0x5b3d3c,_0x5b3d3c-_0x1864dc._0x75cf6,_0xa7be2e-0x1eb,_0x2eb756- -_0x1864dc._0xaab936);}const _0x41d413=String(_0x266131);function _0x641472(_0x42ff35,_0x227f3c,_0x3b48ec,_0x1f7394){return _0x1ea0ad(_0x1f7394,_0x227f3c- -0x194,_0x3b48ec-_0x2c90bc._0x37ae28,_0x1f7394-0xb8);}return{'errorMessage':_0x41d413,'structured':{'error':_0x41d413}};}function cloneToolEventForPublication(_0x359a1d){const _0x177d9e={_0x53e524:0x17b,_0x1322ae:0xba,_0x302652:0x29a,_0x269584:0x23b,_0x3bea63:0x176,_0x421e0f:0x27d,_0x4af277:0x2be,_0x30dcda:0x1c3,_0x49a48f:0x187,_0x320fe4:0xb6,_0x58ecd9:0x99,_0x190b8d:0x194,_0x48ceec:0x107,_0x369e08:0x27e,_0x1ed905:0x262,_0x3d0749:0x31a,_0x5c7997:0xee,_0x35f8d4:0x249,_0x585c40:0x171,_0x403ed3:0x1a5,_0x5dbae2:0x40,_0x578aee:0x1db,_0x4ae117:0x147,_0x3919a4:0x253,_0x332570:0x244,_0x22a6d7:0x262,_0x4a1f53:0x2e6,_0x31f217:0x160,_0x4dfb3a:0x174,_0x283941:0x1d3,_0x1df0e9:0x1a8,_0xc69555:0xa8,_0x353919:0x65,_0x3e9a8f:0xb3,_0x39b0f5:0x1c9,_0x262e03:0x215,_0x4fc9dc:0x13f,_0x4062f0:0x1d3,_0x595b4c:0x1c6,_0x27fd5c:0xfd,_0x23f0f7:0xaf,_0x29ee34:0x120,_0x4decb8:0x7c,_0x3aef4c:0x22,_0x3753d0:0xd7},_0x358796={_0x25b337:0x153,_0x229886:0x1e1};function _0x239767(_0x1b4ff9,_0x1ff727,_0x1c8ff3,_0x3eb803){return _0x28d661(_0x1c8ff3,_0x1ff727-_0x358796._0x25b337,_0x1c8ff3-_0x358796._0x229886,_0x3eb803- -0x396);}function _0x432e73(_0x45064c,_0x3b366f,_0x147622,_0x5ae304){return _0x1ea0ad(_0x45064c,_0x3b366f- -0xf4,_0x147622-0xb0,_0x5ae304-0x47);}switch(_0x359a1d[_0x239767(-0x1d8,-_0x177d9e._0x53e524,-_0x177d9e._0x1322ae,-0x149)]){case'tool_call':case _0x239767(-_0x177d9e._0x302652,-_0x177d9e._0x269584,-_0x177d9e._0x3bea63,-0x21b):return{..._0x359a1d,'toolCall':cloneToolCallForPublication(_0x359a1d[_0x239767(-_0x177d9e._0x421e0f,-_0x177d9e._0x4af277,-0x201,-0x262)],_0x359a1d['toolCall']['id'],_0x359a1d[_0x432e73(-_0x177d9e._0x30dcda,-0x173,-_0x177d9e._0x49a48f,-0xf4)][_0x432e73(-0xc4,-_0x177d9e._0x320fe4,-0x8d,-0x151)])};case _0x239767(-_0x177d9e._0x58ecd9,-0x5b,-_0x177d9e._0x190b8d,-_0x177d9e._0x48ceec):return{..._0x359a1d,'toolCall':cloneToolCallForPublication(_0x359a1d[_0x239767(-_0x177d9e._0x369e08,-0x2bd,-0x247,-_0x177d9e._0x1ed905)],_0x359a1d[_0x239767(-0x2ef,-0x21c,-_0x177d9e._0x3d0749,-_0x177d9e._0x1ed905)]['id'],_0x359a1d[_0x432e73(-0x199,-0x173,-0x14c,-_0x177d9e._0x5c7997)][_0x239767(-0x1ac,-_0x177d9e._0x35f8d4,-_0x177d9e._0x585c40,-_0x177d9e._0x403ed3)]),'chunk':cloneToolResultChunkForPublication(_0x359a1d['chunk'])};case _0x432e73(-0xaf,-_0x177d9e._0x5dbae2,-0x55,0x49):case _0x432e73(-0x1a6,-0x165,-_0x177d9e._0x578aee,-_0x177d9e._0x4ae117):return{..._0x359a1d,'toolCall':cloneToolCallForPublication(_0x359a1d[_0x239767(-_0x177d9e._0x3919a4,-_0x177d9e._0x332570,-0x2bf,-_0x177d9e._0x22a6d7)],_0x359a1d[_0x239767(-0x2a3,-_0x177d9e._0x4a1f53,-0x2ba,-0x262)]['id'],_0x359a1d[_0x432e73(-0xf2,-0x173,-0xbd,-0x1f1)][_0x239767(-0x257,-0x109,-_0x177d9e._0x31f217,-0x1a5)]),'result':cloneToolResultForPublication(_0x359a1d[_0x239767(-0x245,-_0x177d9e._0x4dfb3a,-0x15b,-_0x177d9e._0x283941)],_0x359a1d[_0x432e73(-0x122,-0x173,-0xd9,-_0x177d9e._0x1df0e9)]['id'],_0x359a1d['toolCall'][_0x432e73(-_0x177d9e._0xc69555,-0xb6,-_0x177d9e._0x353919,-0xf2)])};case _0x239767(-_0x177d9e._0x3e9a8f,-_0x177d9e._0x39b0f5,-0x105,-0x13e):return{..._0x359a1d,'result':cloneToolResultForPublication(_0x359a1d[_0x239767(-_0x177d9e._0x262e03,-0x1e4,-_0x177d9e._0x4fc9dc,-_0x177d9e._0x4062f0)],_0x359a1d[_0x239767(-0x1be,-_0x177d9e._0x595b4c,-0x24c,-0x1d3)][_0x432e73(-_0x177d9e._0x27fd5c,-0x150,-0x1f7,-_0x177d9e._0x23f0f7)],_0x359a1d[_0x432e73(-0x189,-0xe4,-_0x177d9e._0x29ee34,-_0x177d9e._0x4decb8)][_0x432e73(-0x5,-_0x177d9e._0x3aef4c,-_0x177d9e._0x3753d0,-0x2f)])};default:return _0x359a1d;}}var TERMINAL_LIFECYCLE_EVENT_TYPES=new Set([_0x28d661(0x271,0x305,0x224,0x267),_0x28d661(0x15e,0xec,0xe3,0x142)]);function isTerminalLifecycleEvent(_0x24f80a){return TERMINAL_LIFECYCLE_EVENT_TYPES['has'](_0x24f80a['type']);}async function emitEvent(_0x4d2584,_0x4e9706,_0x20bd18){try{await _0x4d2584?.(cloneToolEventForPublication(_0x4e9706),_0x20bd18);}catch(_0x1594a5){throw new ToolRuntimeInfrastructureError(_0x1594a5);}}function actualCancellationHasPrecedence(_0x3dea37,_0x524500){return _0x3dea37['signal']['aborted']&&!_0x524500;}function selectActualCancellationReason(_0x3464fb,_0x3ce30c,_0x3f263b){const _0x4e93b0={_0x1da563:0x9b,_0x2769a2:0x171,_0x7136b8:0x1bc,_0x3a78e7:0x202,_0x5ed44b:0x2b2,_0x3705a0:0x11,_0x1c6c38:0x70,_0x57f8c3:0x1,_0x5c3fba:0xaa,_0x4ff629:0x14},_0x10712c={_0x3f8133:0x19e,_0x2fe63f:0x2f5},_0x3140ea={_0x32763a:0x132,_0x1302cc:0x1e5};function _0x44b1a4(_0x5ef49c,_0xb33afa,_0x4ab44e,_0x5ac0b7){return _0x1ea0ad(_0x5ac0b7,_0x4ab44e-_0x3140ea._0x32763a,_0x4ab44e-_0x3140ea._0x1302cc,_0x5ac0b7-0x19d);}function _0x59513b(_0x432565,_0x64f6be,_0x39b57b,_0x51727c){return _0x28d661(_0x432565,_0x64f6be-_0x10712c._0x3f8133,_0x39b57b-0x11e,_0x39b57b- -_0x10712c._0x2fe63f);}if(_0x3f263b)return new ToolExecutionError(_0x3f263b[_0x44b1a4(_0x4e93b0._0x1da563,_0x4e93b0._0x2769a2,0x11e,0x11e)],{..._0x3f263b[_0x44b1a4(0x15d,_0x4e93b0._0x7136b8,_0x4e93b0._0x3a78e7,_0x4e93b0._0x5ed44b)],'aborted':!![]});return _0x3464fb instanceof ToolExecutionError&&_0x3464fb[_0x59513b(_0x4e93b0._0x3705a0,0x4f,-0x72,-0xf3)][_0x59513b(-_0x4e93b0._0x1c6c38,_0x4e93b0._0x57f8c3,-_0x4e93b0._0x5c3fba,-_0x4e93b0._0x4ff629)]===!![]?_0x3464fb:_0x3ce30c;}function selectedTerminalStateHasPrecedence(_0x2d3892,_0x4a3816,_0x5d1644,_0x249520){const _0x4db960={_0x4c585a:0x109,_0xd5b6cf:0xcd,_0x50e38d:0xfe,_0x580312:0x165,_0x189186:0x157,_0x4d9581:0x1ae,_0x51de6d:0x101,_0x2a134f:0x95,_0x4e26cd:0xe0,_0x1b974f:0x3,_0x1dd416:0x2f0,_0x215b21:0x212,_0x473760:0x26c,_0x3ac46b:0x169,_0x5be965:0xa9,_0x23e925:0xb0,_0x516dce:0x123,_0x2d4725:0x95,_0x249ec8:0x24,_0x201372:0x169,_0x3c3f84:0x1e9,_0x250abf:0x1cc},_0x4a04ee={_0x5a39c6:0x165,_0x50fbfd:0x1a4};if(_0x4a3816[_0x15e8c5(-_0x4db960._0x4c585a,-_0x4db960._0xd5b6cf,-_0x4db960._0x50e38d,-_0x4db960._0x580312)]!=='error')return![];function _0x179cd4(_0x2bc341,_0x4b9445,_0x35bfa9,_0x357ebb){return _0x1ea0ad(_0x357ebb,_0x35bfa9- -0x268,_0x35bfa9-0x4e,_0x357ebb-0x167);}if(!_0x249520)return _0x4a3816['structured'][_0x15e8c5(-0xcd,-0x10c,-0x162,-_0x4db960._0x189186)]===!![]&&actualCancellationHasPrecedence(_0x5d1644,_0x249520);if(_0x2d3892!==_0x15e8c5(-_0x4db960._0x4d9581,-0x23a,-_0x4db960._0x51de6d,-0x147))return![];function _0x15e8c5(_0x47b039,_0x179a5c,_0x32e0b9,_0x246b7f){return _0x1ea0ad(_0x246b7f,_0x47b039- -_0x4a04ee._0x5a39c6,_0x32e0b9-0x1c8,_0x246b7f-_0x4a04ee._0x50fbfd);}return _0x4a3816[_0x15e8c5(-_0x4db960._0x2a134f,-_0x4db960._0x4e26cd,-0x14f,-_0x4db960._0x1b974f)][_0x179cd4(-_0x4db960._0x1dd416,-_0x4db960._0x215b21,-_0x4db960._0x473760,-0x27a)]===_0x179cd4(-0x1eb,-0x192,-0x192,-0x146)||_0x4a3816['structured'][_0x15e8c5(-_0x4db960._0x3ac46b,-_0x4db960._0x5be965,-_0x4db960._0x5be965,-0x202)]===_0x15e8c5(-_0x4db960._0x23e925,-_0x4db960._0x516dce,-0x13f,-0x151)||_0x4a3816[_0x15e8c5(-_0x4db960._0x2d4725,-_0x4db960._0x249ec8,-0xbf,-0x113)][_0x15e8c5(-_0x4db960._0x201372,-_0x4db960._0x3c3f84,-_0x4db960._0x250abf,-0xdf)]===_0x15e8c5(-0x138,-0x1d5,-0x85,-0x13c);}async function emitToolCompletedEventWithTerminalPrecedence(_0x22e1a6,_0x3bb6c9,_0x418484,_0x237f22,_0x4728c9,_0x30c37e,_0x10f260=![]){const _0x4f027c={_0x29fd08:0x79,_0x2e4b27:0x86};function _0x207463(_0x3df63a,_0x1bbdea,_0x4e2839,_0x49d7a5){return _0x28d661(_0x1bbdea,_0x1bbdea-0x3c,_0x4e2839-_0x4f027c._0x29fd08,_0x4e2839-_0x4f027c._0x2e4b27);}try{await emitEvent(_0x22e1a6,{'type':_0x207463(0x2e3,0x306,0x2ed,0x309),'toolCall':cloneToolCallForPublication(_0x3bb6c9,_0x418484,_0x237f22),'result':_0x4728c9},_0x30c37e);}catch(_0x42857e){if(!(_0x42857e instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x237f22,_0x4728c9,_0x30c37e,_0x10f260))throw _0x42857e;}}async function awaitWithAbort(_0x37babd,_0x5933ba){const _0x16fe08={_0x3d56ed:0x27c,_0x28566c:0x260,_0x25b6dc:0x319,_0x18677b:0x1c3,_0x4edfb6:0x18f},_0x31fa1b={_0x2996a6:0x15a};let _0x44698e=()=>{};function _0x3a6457(_0x5176de,_0x38ada1,_0x1057b5,_0x344652){return _0x1ea0ad(_0x5176de,_0x38ada1-0x4c5,_0x1057b5-0x3e,_0x344652-0xfb);}let _0x374c23;function _0xdf839d(_0x2c0696,_0x18ac33,_0x467ed3,_0xf8947d){return _0x28d661(_0x18ac33,_0x18ac33-_0x31fa1b._0x2996a6,_0x467ed3-0x182,_0x467ed3-0x2e);}_0x5933ba&&(throwIfAborted(_0x5933ba),_0x374c23=new Promise((_0x4bd7e8,_0x101370)=>{const _0x2c71ca={_0x5183d5:0x2ab},_0x3b9e35={_0x71a830:0xdf},_0x225cd5={_0x5490e2:0x1a4};function _0x3d6048(_0xab1038,_0x5c5f0f,_0x398978,_0x269809){return _0x3bcc(_0x5c5f0f-_0x225cd5._0x5490e2,_0x269809);}const _0x38a935=()=>{function _0x124f4e(_0x1213a1,_0x10ea19,_0x3b08bc,_0x32aa7b){return _0x3bcc(_0x10ea19- -0x20a,_0x3b08bc);}_0x101370(toAbortError(_0x5933ba[_0x124f4e(-_0x3b9e35._0x71a830,-0x122,-0xc0,-0x64)]));};function _0x400ee6(_0x3ae2a7,_0x39a72e,_0x5d9d98,_0x307e33){return _0x3bcc(_0x5d9d98- -_0x2c71ca._0x5183d5,_0x307e33);}_0x5933ba['addEventListener']('abort',_0x38a935,{'once':!![]}),_0x44698e=()=>_0x5933ba[_0x3d6048(0x373,0x2fc,0x2ff,0x2ed)](_0x3d6048(0x329,0x28f,0x2f5,0x346),_0x38a935);}));const _0x3ae5ed=Promise[_0xdf839d(0x245,_0x16fe08._0x3d56ed,_0x16fe08._0x28566c,_0x16fe08._0x25b6dc)]()[_0xdf839d(0xed,_0x16fe08._0x18677b,_0x16fe08._0x4edfb6,0x1c2)](()=>{return throwIfAborted(_0x5933ba),_0x37babd();});try{return await(_0x374c23?Promise['race']([_0x3ae5ed,_0x374c23]):_0x3ae5ed);}finally{_0x44698e();}}function createNestedCallAdmissionGate(){const _0x3c1f43={_0x502ef6:0x7f},_0x2138af={_0x5520aa:0x2c5,_0x22d2cc:0x34f,_0x1cfb4b:0x370};function _0x19af6d(_0xb19675,_0x1c85b7,_0x217b60,_0x1986c1){return _0x28d661(_0x1c85b7,_0x1c85b7-0x1aa,_0x217b60-0x17b,_0x217b60- -0x192);}let _0x3e7643=0x1,_0x302b76=![],_0x4a5c3a,_0x14c84=Promise[_0x19af6d(_0x3c1f43._0x502ef6,0x112,0xa0,0x79)]();const _0x106c44=new Set(),_0x35f26e=_0x10d2c6=>{!_0x302b76&&(_0x302b76=!![],_0x4a5c3a=_0x10d2c6);for(const _0x10d9fb of[..._0x106c44]){_0x10d9fb();}};return{'register'(_0x477ffc){const _0x4ee22a={_0x5b0e2f:0x138,_0x1aaa85:0x3c5},_0x51ed37={_0xc6114c:0x1de};function _0x512bf8(_0x47186b,_0x365204,_0x2cd373,_0x29d38a){return _0x19af6d(_0x47186b-_0x51ed37._0xc6114c,_0x2cd373,_0x47186b-0x30c,_0x29d38a-0xa9);}if(_0x302b76)throw _0x4a5c3a;if(_0x477ffc!==_0x3e7643){const _0x5e6e02=new Error(_0x512bf8(0x2df,0x25a,_0x2138af._0x5520aa,0x2a1)+_0x477ffc+_0x512bf8(_0x2138af._0x22d2cc,0x367,0x389,_0x2138af._0x1cfb4b)+_0x3e7643);_0x35f26e(_0x5e6e02);throw _0x5e6e02;}function _0x110f91(_0x472b1d,_0x24b046,_0x37d13d,_0x259b7f){return _0x19af6d(_0x472b1d-_0x4ee22a._0x5b0e2f,_0x37d13d,_0x472b1d-_0x4ee22a._0x1aaa85,_0x259b7f-0x142);}_0x3e7643+=0x1;const _0xb5d6e6=_0x14c84;let _0x475be8;_0x14c84=new Promise(_0x3df42b=>{_0x475be8=_0x3df42b;});const _0x545da1=()=>{if(_0x475be8===void 0x0)return;const _0x4d2d9d=_0x475be8;_0x475be8=void 0x0,_0x106c44['delete'](_0x545da1),_0x4d2d9d();};return _0x106c44['add'](_0x545da1),{async 'admit'(_0x402900,_0x264f28){try{await awaitWithAbort(()=>_0xb5d6e6,_0x264f28);if(_0x302b76)throw _0x4a5c3a;await _0x402900();if(_0x302b76)throw _0x4a5c3a;}catch(_0x5c8162){_0x35f26e(_0x5c8162);throw _0x5c8162;}finally{_0x545da1();}},'fail'(_0x1189f5){_0x35f26e(_0x1189f5),_0x545da1();}};},'fail':_0x35f26e};}async function awaitRequiredPersistence(_0x5aeec9,_0xeeb939,_0x252b4f){const _0x4504ce={_0xb90b1d:0x279,_0x3bea90:0x284,_0x492e15:0x200};await awaitWithAbort(()=>{function _0x5ce6e1(_0x519521,_0x20ca21,_0x35c6f7,_0x7d1d){return _0x3bcc(_0x7d1d- -0x3af,_0x519521);}const _0x2b85a3=Promise[_0x5ce6e1(-_0x4504ce._0xb90b1d,-0x152,-_0x4504ce._0x3bea90,-_0x4504ce._0x492e15)]()['then'](_0x5aeec9);return _0x252b4f(_0x2b85a3),_0x2b85a3;},_0xeeb939);}async function awaitUncancellableAfterAdmission(_0x9823a8,_0x400c79){const _0x535c47={_0x3f6207:0x21f,_0x44f94e:0x216,_0x47e6e7:0x1d4,_0x1dfabf:0x159,_0x4a4ddf:0x2ff,_0x2982d8:0x276,_0x111f28:0x140,_0x346a79:0x1a4,_0x42fbcc:0x1f4,_0x27cd06:0x23d},_0x585535={_0x10089c:0x467},_0xbfc30d={_0x34c296:0x239};throwIfAborted(_0x400c79);const _0x58dd8b=()=>{};function _0x56659f(_0xf3ec99,_0x18c728,_0x1709ae,_0x104f51){return _0x1ea0ad(_0x104f51,_0x1709ae-_0xbfc30d._0x34c296,_0x1709ae-0x29,_0x104f51-0x9a);}function _0x551814(_0x22bfb8,_0x49e702,_0x69d5a5,_0xe940d){return _0x28d661(_0x49e702,_0x49e702-0xed,_0x69d5a5-0x1f0,_0x22bfb8- -_0x585535._0x10089c);}_0x400c79[_0x551814(-0x230,-0x230,-_0x535c47._0x3f6207,-_0x535c47._0x44f94e)](_0x56659f(_0x535c47._0x47e6e7,_0x535c47._0x1dfabf,0x1f4,0x20a),_0x58dd8b,{'once':!![]});try{return throwIfAborted(_0x400c79),await _0x9823a8();}finally{_0x400c79[_0x551814(-0x28c,-_0x535c47._0x4a4ddf,-_0x535c47._0x2982d8,-0x32f)](_0x56659f(_0x535c47._0x111f28,_0x535c47._0x346a79,_0x535c47._0x42fbcc,_0x535c47._0x27cd06),_0x58dd8b);}}async function resolveDispatchDecision(_0x4d78f6,_0x5125c7,_0x3cda28){const _0x54a5bb={_0x57a4ea:0x112,_0x2760af:0x1a9,_0x326131:0xb4,_0x56fb9a:0x1cc,_0x2e4c39:0x4e5,_0xd83611:0x48c,_0x1486dc:0x538},_0x57ee56={_0x221f5f:0xca};if(!_0x4d78f6)return{'action':_0x1e1e1b(_0x54a5bb._0x57a4ea,_0x54a5bb._0x2760af,_0x54a5bb._0x326131,_0x54a5bb._0x56fb9a)};function _0x1e1e1b(_0xcb6c3f,_0xaa9b7d,_0x32e1ac,_0x42186f){return _0x28d661(_0xaa9b7d,_0xaa9b7d-0x56,_0x32e1ac-0x11,_0xcb6c3f- -_0x57ee56._0x221f5f);}const _0x4211cc=await awaitWithAbort(()=>_0x4d78f6(_0x5125c7,_0x3cda28),_0x3cda28['signal']);function _0x57e9e2(_0x38bce1,_0x4d47a9,_0x9ef622,_0x889ac0){return _0x28d661(_0x4d47a9,_0x4d47a9-0xfb,_0x9ef622-0x1d8,_0x889ac0-0x35c);}return isDispatchDecision(_0x4211cc)?_0x4211cc:{'action':_0x57e9e2(_0x54a5bb._0x2e4c39,0x569,_0x54a5bb._0xd83611,_0x54a5bb._0x1486dc)};}async function prepareNestedToolCall(_0x4dd23b,_0x1a03f3,_0x25e6c5,_0x5a1008){const _0x3b05f5={_0x3a59e0:0x3e0,_0x5df2ad:0x12e};function _0x118271(_0x5b76fb,_0x532fe5,_0x109f9a,_0x55716e){return _0x28d661(_0x55716e,_0x532fe5-0x9f,_0x109f9a-0x1a4,_0x109f9a-0x244);}function _0x1712fe(_0xb96723,_0x4b8157,_0x575b6c,_0x2f8f1e){return _0x1ea0ad(_0x4b8157,_0xb96723-_0x3b05f5._0x3a59e0,_0x575b6c-_0x3b05f5._0x5df2ad,_0x2f8f1e-0x84);}if(!_0x4dd23b)return _0x1a03f3;const _0x4cc1a0=await awaitWithAbort(()=>_0x4dd23b['runTransformers'](_0x1712fe(0x410,0x4af,0x471,0x40d),_0x1a03f3,_0x25e6c5),_0x5a1008);return throwIfAborted(_0x5a1008),await awaitWithAbort(()=>_0x4dd23b[_0x118271(0x372,0x3f9,0x3f5,0x451)](_0x118271(0x492,0x3bc,0x427,0x4d5),_0x4cc1a0,_0x25e6c5),_0x5a1008),_0x4cc1a0;}async function transformNestedToolResult(_0x6b0fcc,_0x232b82,_0xffd7b9,_0x48379b){const _0x412964={_0x298746:0x178,_0xfc5583:0x90},_0x582232={_0x5b6a68:0x271};function _0x5141ac(_0x2ec8bb,_0xf139b1,_0x51d64d,_0x5df5a4){return _0x1ea0ad(_0x51d64d,_0xf139b1- -_0x582232._0x5b6a68,_0x51d64d-0x196,_0x5df5a4-0x140);}if(!_0x6b0fcc)return _0x232b82;const _0x319251=await awaitWithAbort(()=>_0x6b0fcc[_0x63eb32(0x143,0x22b,0x16e,0x20e)]('afterToolResult',_0x232b82,_0xffd7b9),_0x48379b);throwIfAborted(_0x48379b);function _0x63eb32(_0x101d94,_0x5d6621,_0x15150c,_0x5607a8){return _0x1ea0ad(_0x101d94,_0x15150c-_0x412964._0x298746,_0x15150c-0x19f,_0x5607a8-_0x412964._0xfc5583);}return await awaitWithAbort(()=>_0x6b0fcc['runObservers'](_0x5141ac(-0x1ba,-0x209,-0x216,-0x1a6),_0x319251,_0xffd7b9),_0x48379b),_0x319251;}function snapshotNestedToolRequest(_0x5df21a){const _0x5ece63={_0x579411:0x45b,_0x58415c:0x499,_0x1996e7:0x4b3,_0x2d7c8d:0x411,_0x29ed2d:0x48d,_0x382dc9:0x43d,_0x220b2f:0x494,_0x5972f4:0x308,_0x259bdb:0x37e,_0x45357c:0x3cf},_0x3aa6fd={_0x37c576:0xae,_0x2f14ec:0xe9},_0x575801=_0x5df21a[_0x474435(0x441,_0x5ece63._0x579411,0x470,_0x5ece63._0x58415c)],_0x3b3988=_0x5df21a['tool'],_0x5a20c2=_0x5df21a[_0x474435(0x371,_0x5ece63._0x1996e7,_0x5ece63._0x2d7c8d,_0x5ece63._0x29ed2d)]['id'],_0x452ac9=structuredClone(_0x5df21a[_0x474435(_0x5ece63._0x382dc9,_0x5ece63._0x220b2f,0x411,0x3a5)]),_0x2ad958=_0x5df21a[_0x474435(0x523,0x51c,0x468,0x406)];function _0x474435(_0x861892,_0x319eeb,_0x5d926f,_0x9a2a27){return _0x28d661(_0x861892,_0x319eeb-0x2,_0x5d926f-0x16e,_0x5d926f-0x2dd);}const _0x32fc4a=_0x5df21a[_0x474435(0x561,0x568,0x51c,0x49c)];if(_0x452ac9[_0x41d823(_0x5ece63._0x5972f4,_0x5ece63._0x259bdb,_0x5ece63._0x45357c,0x30b)]!==_0x575801||_0x3b3988!==void 0x0&&_0x3b3988['name']!==_0x575801)throw new Error('Nested\x20tool\x20call\x20and\x20definition\x20names\x20must\x20match\x20the\x20requested\x20name');function _0x41d823(_0x295321,_0xc2b989,_0x498e58,_0x4ff1b6){return _0x28d661(_0x295321,_0xc2b989-_0x3aa6fd._0x37c576,_0x498e58-_0x3aa6fd._0x2f14ec,_0xc2b989-0x18d);}return{'requestedName':_0x575801,'tool':_0x3b3988,'toolCall':_0x452ac9,'toolCallId':_0x5a20c2,'sequence':_0x2ad958,'trace':_0x32fc4a};}function createImmutableExecutionScope(_0x31a500,_0x31adfe){const _0x418cc5={_0x478aa9:0x274,_0x3f583f:0xcb},_0x4f2ed3={_0x1e2b98:0x14f,_0x58ae42:0x169},_0x22354c={_0x51986e:0x25b};function _0x230c1e(_0x1bfbe1,_0x2c9f6e,_0x5e6a77,_0xed32c5){return _0x1ea0ad(_0x5e6a77,_0x2c9f6e-_0x22354c._0x51986e,_0x5e6a77-0x106,_0xed32c5-0x1a4);}function _0x39e406(_0x399532,_0x35b55e,_0x4bbdfa,_0x56ebc2){return _0x1ea0ad(_0x35b55e,_0x4bbdfa- -_0x4f2ed3._0x1e2b98,_0x4bbdfa-_0x4f2ed3._0x58ae42,_0x56ebc2-0xf6);}return Object[_0x230c1e(0x37c,0x334,_0x418cc5._0x478aa9,0x331)]({'agentId':_0x31a500,'toolCallPath':Object[_0x39e406(-0x1c,-_0x418cc5._0x3f583f,-0x76,-0x128)]([..._0x31adfe])});}function isNestedBashResult(_0x9c9f46){const _0x2be59e={_0x51a11c:0x266,_0x4b3d07:0x240,_0x10b4d2:0x18f,_0x5389ab:0x28e,_0x502f89:0x1fe,_0x3fbcc7:0x192,_0x4f294b:0x14b,_0x41a960:0x135,_0x138921:0xcd,_0x250ab5:0x163,_0x24f408:0x181,_0x146598:0x10a,_0x563044:0x13d,_0x2564ad:0x21a,_0x43a828:0x107,_0x36ea26:0x13d,_0x2bde48:0x67,_0x2b02ff:0x7f,_0x1cd458:0x121,_0x58ad8f:0x179,_0x44ad54:0x12e},_0x55d921={_0x2f778e:0x191},_0x15e268={_0x164dc2:0x1a7};if(_0x9c9f46[_0x2970a2(_0x2be59e._0x51a11c,_0x2be59e._0x4b3d07,0x290,_0x2be59e._0x10b4d2)]!==_0x1fbb56(0x222,0x1d4,_0x2be59e._0x5389ab,0x2be))return![];const {artifactId:_0x573dbf,outputPath:_0x159062,statusPath:_0x434230,shellId:_0x1bddda,attemptId:_0x335488,toolCallId:_0x186d90,callId:_0x3f3ca9}=_0x9c9f46[_0x1fbb56(_0x2be59e._0x502f89,0x1d5,_0x2be59e._0x3fbcc7,0x159)];if(_0x186d90!==void 0x0&&_0x186d90!==_0x9c9f46['callId']||_0x3f3ca9!==void 0x0&&_0x3f3ca9!==_0x9c9f46['callId'])return![];function _0x2970a2(_0x39588b,_0x2ac2be,_0x42558e,_0x974406){return _0x28d661(_0x39588b,_0x2ac2be-0x81,_0x42558e-_0x15e268._0x164dc2,_0x2ac2be- -0x45);}if(_0x1bddda!==void 0x0||_0x335488!==void 0x0){if(typeof _0x1bddda!==_0x1fbb56(0x135,0x17a,_0x2be59e._0x4f294b,0x1e2)||typeof _0x335488!==_0x1fbb56(_0x2be59e._0x41a960,0x13a,_0x2be59e._0x138921,_0x2be59e._0x250ab5)||_0x335488['length']===0x0||_0x335488[_0x2970a2(0x14b,0x13a,_0x2be59e._0x24f408,_0x2be59e._0x146598)]>0x80||_0x335488[_0x1fbb56(0x1ed,_0x2be59e._0x563044,0x196,_0x2be59e._0x2564ad)]('\x00'))return![];}function _0x1fbb56(_0x6421ec,_0x5f45d7,_0x402e7b,_0x3d405a){return _0x1ea0ad(_0x3d405a,_0x6421ec-0x12e,_0x402e7b-0xd7,_0x3d405a-_0x55d921._0x2f778e);}if(_0x573dbf===void 0x0&&_0x159062===void 0x0&&_0x434230===void 0x0)return!![];return isBashArtifactStatus({'version':0x1,'artifactId':_0x573dbf,'outputPath':_0x159062,'statusPath':_0x434230,'owner':{'profile':_0x1fbb56(_0x2be59e._0x43a828,0x153,0xae,0x11d),'workspace':_0x2970a2(0xcf,0x147,_0x2be59e._0x36ea26,0x9f),'sessionId':_0x1fbb56(0x107,0xa7,0x10e,0xae)},'toolCallId':_0x9c9f46[_0x2970a2(_0x2be59e._0x2bde48,0x112,0x147,_0x2be59e._0x2b02ff)],..._0x1bddda===void 0x0?{}:{'shellId':_0x1bddda},'state':_0x1fbb56(_0x2be59e._0x1cd458,0xcc,0xf9,0x1ae),'exitCode':null,'signal':null,'errorCode':null,'finishedAt':null,'captureState':_0x1fbb56(0x111,_0x2be59e._0x58ad8f,0x162,_0x2be59e._0x44ad54),'bytesRetained':0x0,'maxBytes':BASH_OUTPUT_MAX_BYTES,'truncated':![],'captureErrorCode':null,'startedAt':0x0,'updatedAt':0x0});}async function executeNestedToolRequest(_0x191208,_0x7b7201,_0x4919ff,_0x5de53c,_0x387ec4,_0x1f727d,_0xf809d9,_0x119c1a){const _0x47531c={_0x48eeae:0x541,_0x51f421:0x5d4,_0x292a7d:0x1ef,_0x1393c2:0x4fb,_0x293668:0x1fd,_0x1218ff:0x5b4,_0x164a91:0x53e,_0x22f06e:0x20d,_0x2a8ffa:0x1d4,_0x167ff2:0x177,_0x59408:0x22d,_0x180a2d:0x17d,_0x1a3dd5:0x4ed,_0x26d492:0x61e,_0x248c45:0x16d,_0x3dd008:0x20b,_0x38cc36:0x173,_0x5b19ac:0x2df,_0x2fe884:0x330,_0x4cb631:0x22b,_0x1342fb:0x4e4,_0x3ab89a:0x487,_0x5b548d:0x531,_0x530e14:0x1a6,_0x317fec:0x212,_0x252078:0x232,_0x5cf097:0x1a7,_0x21aa0a:0x15e,_0x56e025:0x20b,_0x1970e0:0x1d5,_0x525fd8:0x4bd,_0xb5f1d0:0x4e0,_0x200ee3:0x58e,_0x2a8cfb:0x579,_0x5eaec8:0x5d6,_0x3f214a:0x577,_0x3b634d:0x47a,_0x339ccc:0x3c8,_0x77c476:0x4ce,_0x343ef2:0x131,_0x313708:0x5e9,_0x3758e:0x568,_0x233cac:0x4e0,_0x4090bc:0x42c,_0x1ab671:0x4a5,_0x38abab:0x1a5,_0x3d1e1a:0x15f,_0x31ad4b:0x113,_0x8b87a7:0x4ee,_0x5be21e:0x4e0,_0x434eb7:0x52f,_0x3dee9e:0x5d3,_0x2716bc:0x2c3,_0x3ff24c:0x306,_0x47bcc7:0x56e,_0x4f0c33:0x45a,_0xd5b42f:0x467,_0xecd403:0x1eb,_0x16c11e:0x1e3,_0x24a66f:0x547,_0x5f5687:0x1b9,_0x1e8e03:0x1d8,_0x4d63a2:0x1b1,_0x2c5480:0x15c,_0x402411:0x253,_0x33ac2b:0x58c,_0x3c1b15:0x51f,_0x25a4cf:0x58d,_0x4c35ff:0x48b,_0xa8ae5b:0x158,_0x4f5ab5:0x1de,_0x5444e1:0x29a,_0x479f73:0x15d,_0x1b2731:0x1aa,_0x3adf49:0x2b0,_0x1cac43:0x532,_0x33e314:0x5c4,_0x2b5763:0x636,_0x495eda:0x54f,_0x17ebeb:0x605,_0x55620e:0x44d,_0x470c5c:0x126,_0xe64d3:0x1de,_0x25a423:0x206,_0xd341b3:0x295,_0x169c3b:0x182,_0xdba3c0:0x19d,_0x223cac:0x237,_0x491ddc:0x2b7,_0xb01b37:0x32b,_0x1bf49f:0x5f0,_0x5768ca:0x60c,_0x4f4e14:0x28f,_0x2a5f99:0x2d0,_0x4d8abc:0x2ee,_0x4e4296:0x210,_0x5e9fcb:0x246},_0x43ff98={_0x249aa4:0x500,_0x5a083e:0x1b5,_0x4f1aa7:0x135},_0x12f168={_0x21fb5c:0x359,_0x34bbc2:0x313,_0x36d394:0x313,_0x1c8e59:0x48,_0x534830:0x3a,_0xab7b57:0x18,_0x4202e2:0x7c,_0x5354ba:0x2e7},_0x3c3694={_0x437a8d:0x4cb},_0x441155={_0x365d83:0x9d,_0x16abc4:0x46,_0x412ae4:0x71,_0x258988:0x507,_0x3d97d9:0x56f},_0x52b2c1={_0x45069a:0x527,_0x4f6f9f:0x99,_0x4ccefb:0x143},_0x55bf2a={'state':_0x7b7201[_0x2d1590(0x532,_0x47531c._0x48eeae,_0x47531c._0x51f421,0x5d2)],'delivery':_0x360e3e(_0x47531c._0x292a7d,0x1ae,0x1f2,0x1d9),'executionScope':_0x4919ff};let _0x47715b;try{_0x47715b=await prepareNestedToolCall(_0x1f727d['registry'],_0x191208[_0x2d1590(_0x47531c._0x1393c2,0x481,0x41e,0x50a)],_0x55bf2a,_0x5de53c);if(_0x47715b['id']!==_0x191208[_0x360e3e(_0x47531c._0x293668,0x1de,0x15e,0x1ad)]||_0x47715b[_0x2d1590(_0x47531c._0x1218ff,_0x47531c._0x164a91,0x55e,0x580)]!==_0x191208[_0x360e3e(_0x47531c._0x22f06e,0x20b,0x176,_0x47531c._0x2a8ffa)])throw new Error(_0x360e3e(_0x47531c._0x167ff2,_0x47531c._0x59408,0x2cb,_0x47531c._0x180a2d));}catch(_0x20b0a6){_0x387ec4['fail'](_0x20b0a6);throw _0x20b0a6;}const _0xdd79d={..._0x7b7201,'signal':_0x5de53c,'executionScope':_0x4919ff,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0};let _0x5ea31b=![];const _0x1d30c8=async(_0x3d7219,_0x77d18a)=>{const _0x51d990={_0x33a231:0x16c,_0x5a053a:0x96},_0x2fdd45={_0x5594b1:0xbd,_0x344f91:0x20b};function _0x5e779c(_0x30f1d3,_0x3f3a8b,_0x857b49,_0x4dca0b){return _0x2d1590(_0x857b49,_0x4dca0b- -_0x52b2c1._0x45069a,_0x857b49-_0x52b2c1._0x4f6f9f,_0x4dca0b-_0x52b2c1._0x4ccefb);}if(isTerminalLifecycleEvent(_0x3d7219)){await emitEvent(_0xf809d9,_0x3d7219,_0x77d18a);return;}if(_0x5de53c[_0x5e779c(0xd6,_0x441155._0x365d83,-_0x441155._0x16abc4,_0x441155._0x412ae4)])return;function _0x46177d(_0xa0f003,_0x2e893b,_0x417cff,_0x4fccbf){return _0x360e3e(_0xa0f003-_0x2fdd45._0x5594b1,_0x2e893b-_0x2fdd45._0x344f91,_0x417cff,_0x4fccbf-0xd4);}try{await awaitWithAbort(()=>{function _0x2e24a7(_0x2fa696,_0x3e1d6f,_0x2e3dee,_0x5d9dad){return _0x5e779c(_0x2fa696-0x19b,_0x3e1d6f-_0x51d990._0x33a231,_0x2e3dee,_0x3e1d6f- -_0x51d990._0x5a053a);}return _0x3d7219['type']===_0x2e24a7(-0x2,-0x9e,-0x129,-0xc5)&&_0xf809d9&&(_0x5ea31b=!![]),_0xf809d9?.(_0x3d7219,_0x77d18a);},_0x5de53c);}catch(_0x56f170){if(!isAbortError(_0x56f170)||!_0x5de53c[_0x46177d(0x562,0x4ce,_0x441155._0x258988,_0x441155._0x3d97d9)])throw _0x56f170;}};try{await _0x387ec4[_0x2d1590(_0x47531c._0x1a3dd5,0x5a6,_0x47531c._0x26d492,0x527)](async()=>{const _0x137009={_0x43c8ca:0x1df,_0x570679:0xf4};throwIfAborted(_0x5de53c);function _0x47579e(_0xf97954,_0x33f48d,_0x305a03,_0x4db28e){return _0x360e3e(_0xf97954-_0x137009._0x43c8ca,_0x33f48d-_0x137009._0x570679,_0x4db28e,_0x4db28e-0x152);}if(_0x191208[_0x47579e(_0x12f168._0x21fb5c,0x3ab,0x3b8,_0x12f168._0x34bbc2)]){const _0x52d736=_0x191208['trace'];await awaitRequiredPersistence(()=>_0x52d736[_0x177c0b(0x3c,-0x1e,0x1a,-0x2)](_0x191208['sequence'],cloneToolCallForPublication(_0x47715b,_0x191208[_0x47579e(0x32e,0x2d2,0x307,0x359)],_0x191208[_0x177c0b(-0x40,-0x6b,0x15,-0x7a)])),_0x5de53c,_0x119c1a);}function _0x177c0b(_0x4ef332,_0x2a657a,_0x5e4726,_0x4d3427){return _0x2d1590(_0x4ef332,_0x5e4726- -_0x3c3694._0x437a8d,_0x5e4726-0x92,_0x4d3427-0x12a);}await _0x1d30c8({'type':_0x47579e(0x313,0x33e,_0x12f168._0x36d394,0x29e),'toolCall':cloneToolCallForPublication(_0x47715b,_0x191208[_0x177c0b(-_0x12f168._0x1c8e59,_0x12f168._0x534830,-_0x12f168._0xab7b57,_0x12f168._0x4202e2)],_0x191208[_0x47579e(0x25a,0x2ff,0x379,_0x12f168._0x5354ba)])},_0xdd79d),throwIfAborted(_0x5de53c);},_0x5de53c);}catch(_0x3ec590){if(_0x5ea31b&&_0x5de53c['aborted']&&isAbortError(_0x3ec590)){const _0x37b292=createAbortedToolResult(_0x191208[_0x360e3e(0x180,0x1de,0x299,_0x47531c._0x248c45)],_0x191208[_0x360e3e(0x248,_0x47531c._0x3dd008,0x248,_0x47531c._0x38cc36)],_0x3ec590);try{await emitEvent(_0xf809d9,{'type':_0x360e3e(0x39e,_0x47531c._0x5b19ac,_0x47531c._0x2fe884,_0x47531c._0x4cb631),'toolCall':cloneToolCallForPublication(_0x47715b,_0x191208['toolCallId'],_0x191208[_0x2d1590(_0x47531c._0x1342fb,0x4e0,_0x47531c._0x3ab89a,0x572)]),'result':_0x37b292},_0xdd79d);}catch(_0x134f44){throw new Error(_0x2d1590(0x4e8,_0x47531c._0x5b548d,0x4b0,0x498),{'cause':_0x134f44});}}throw _0x3ec590;}const _0x2e6e6a=await executeCapturedToolCall(_0x191208[_0x360e3e(0x215,_0x47531c._0x530e14,_0x47531c._0x317fec,0xee)],_0x47715b,_0x191208[_0x360e3e(_0x47531c._0x252078,0x1de,0x11d,_0x47531c._0x5cf097)],_0x191208[_0x360e3e(_0x47531c._0x21aa0a,_0x47531c._0x56e025,_0x47531c._0x1970e0,0x244)],_0xdd79d,_0x1f727d,_0x1d30c8);if(isNestedBashResult(_0x2e6e6a)){const _0x2c0e49=cloneToolResultForPublication(_0x2e6e6a,_0x191208[_0x360e3e(0x1b4,0x1de,0x23f,0x154)],_0x191208[_0x2d1590(_0x47531c._0x525fd8,_0x47531c._0xb5f1d0,_0x47531c._0x200ee3,0x497)]);let _0x4f3e03;try{let _0x210ec3=_0x2c0e49;!_0x5de53c[_0x2d1590(_0x47531c._0x2a8cfb,0x598,_0x47531c._0x5eaec8,_0x47531c._0x3f214a)]&&_0x1f727d[_0x2d1590(0x4fd,_0x47531c._0x3b634d,_0x47531c._0x339ccc,_0x47531c._0x77c476)]&&(_0x210ec3=await _0x1f727d[_0x360e3e(0x140,0x1a5,0x243,_0x47531c._0x343ef2)][_0x2d1590(0x58a,0x4f6,0x598,0x44c)](_0x2d1590(_0x47531c._0x313708,_0x47531c._0x3758e,0x5d0,0x55f),cloneToolResultForPublication(_0x2c0e49,_0x191208['toolCallId'],_0x191208[_0x2d1590(0x51d,_0x47531c._0x233cac,_0x47531c._0x4090bc,_0x47531c._0x1ab671)]),_0x55bf2a),!_0x5de53c['aborted']&&await _0x1f727d[_0x360e3e(0x248,_0x47531c._0x38abab,_0x47531c._0x3d1e1a,_0x47531c._0x31ad4b)][_0x2d1590(0x47f,0x4fe,_0x47531c._0x8b87a7,_0x47531c._0x5be21e)](_0x2d1590(0x4c0,0x568,_0x47531c._0x434eb7,_0x47531c._0x3dee9e),_0x210ec3,_0x55bf2a));const _0x21ee12=_0x5de53c[_0x360e3e(0x319,_0x47531c._0x2716bc,0x277,_0x47531c._0x3ff24c)]?createAbortedToolResult(_0x191208[_0x2d1590(0x4d7,0x4b3,_0x47531c._0x47bcc7,0x54d)],_0x191208[_0x2d1590(_0x47531c._0x4f0c33,0x4e0,_0x47531c._0xd5b42f,0x564)],selectActualCancellationReason(void 0x0,_0x5de53c[_0x360e3e(_0x47531c._0xecd403,_0x47531c._0x16c11e,0x281,0x299)],_0x2c0e49),_0x2c0e49[_0x2d1590(0x5d7,0x538,0x4c9,_0x47531c._0x24a66f)]):_0x210ec3;_0x4f3e03=cloneToolResultForPublication(_0x21ee12,_0x191208[_0x360e3e(0x1d3,0x1de,_0x47531c._0x5f5687,0x14e)],_0x191208[_0x360e3e(_0x47531c._0x1e8e03,_0x47531c._0x3dd008,_0x47531c._0x4d63a2,_0x47531c._0x2c5480)]),_0x191208[_0x360e3e(0x21b,0x2b7,_0x47531c._0x402411,0x346)]&&await _0x191208[_0x2d1590(0x617,_0x47531c._0x33ac2b,_0x47531c._0x3c1b15,_0x47531c._0x25a4cf)][_0x2d1590(0x40d,_0x47531c._0x4c35ff,0x3ee,0x3e8)](_0x191208[_0x360e3e(0x1a2,0x203,_0x47531c._0xa8ae5b,0x2a5)],cloneToolResultForPublication(_0x4f3e03,_0x191208[_0x360e3e(0x29d,_0x47531c._0x4f5ab5,_0x47531c._0x5444e1,_0x47531c._0x479f73)],_0x191208[_0x360e3e(_0x47531c._0x59408,0x20b,_0x47531c._0x1b2731,_0x47531c._0x3adf49)])),await emitEvent(_0xf809d9,{'type':_0x2d1590(0x61d,0x5a5,0x4e7,_0x47531c._0x1cac43),'result':_0x4f3e03},_0xdd79d);}catch(_0x50575d){if(_0x5de53c[_0x2d1590(_0x47531c._0x33e314,0x598,_0x47531c._0x2b5763,0x580)])throw new Error(_0x2d1590(0x5d7,_0x47531c._0x495eda,0x562,_0x47531c._0x17ebeb),{'cause':_0x50575d});throw _0x50575d;}return throwIfAborted(_0x5de53c),_0x4f3e03;}throwIfAborted(_0x5de53c);function _0x2d1590(_0x377db1,_0x56c960,_0x1b8f3c,_0x5a0f32){return _0x1ea0ad(_0x377db1,_0x56c960-_0x43ff98._0x249aa4,_0x1b8f3c-_0x43ff98._0x5a083e,_0x5a0f32-_0x43ff98._0x4f1aa7);}const _0x18622d=await transformNestedToolResult(_0x1f727d[_0x2d1590(0x46a,0x47a,_0x47531c._0x55620e,0x4b7)],_0x2e6e6a,_0x55bf2a,_0x5de53c),_0x3be531=cloneToolResultForPublication(_0x18622d,_0x191208[_0x360e3e(_0x47531c._0x470c5c,_0x47531c._0xe64d3,_0x47531c._0x25a423,_0x47531c._0xd341b3)],_0x191208[_0x360e3e(0x1ef,_0x47531c._0x3dd008,_0x47531c._0x169c3b,_0x47531c._0xdba3c0)]);throwIfAborted(_0x5de53c);if(_0x191208[_0x360e3e(_0x47531c._0x223cac,_0x47531c._0x491ddc,_0x47531c._0xb01b37,0x239)]){const _0x399fe5=_0x191208[_0x2d1590(_0x47531c._0x1bf49f,0x58c,_0x47531c._0x5768ca,0x532)];await awaitRequiredPersistence(()=>_0x399fe5[_0x360e3e(0xf7,0x1b6,0x251,0x21b)](_0x191208[_0x360e3e(0x251,0x203,0x1bd,0x277)],cloneToolResultForPublication(_0x3be531,_0x191208['toolCallId'],_0x191208[_0x360e3e(0x23d,0x20b,0x24b,0x164)])),_0x5de53c,_0x119c1a);}await _0x1d30c8({'type':_0x360e3e(_0x47531c._0x4f4e14,_0x47531c._0x2a5f99,0x2b1,_0x47531c._0x4d8abc),'result':cloneToolResultForPublication(_0x3be531,_0x191208[_0x2d1590(0x430,0x4b3,0x4ca,0x56d)],_0x191208[_0x360e3e(0x1f5,_0x47531c._0x56e025,_0x47531c._0x4e4296,_0x47531c._0x5e9fcb)])},_0xdd79d),throwIfAborted(_0x5de53c);function _0x360e3e(_0x338147,_0x398a65,_0x3a99e5,_0x26d20e){return _0x1ea0ad(_0x3a99e5,_0x398a65-0x22b,_0x3a99e5-0x1cd,_0x26d20e-0x1dd);}return _0x3be531;}function createBoundToolExecutionControl(_0x47bc1a,_0x26e109,_0x16ea5d,_0x2ff70e){const _0x5e1963={_0x3ec779:0xcd,_0x41ca85:0x23f,_0x4325a2:0x18d,_0xdcc398:0x19c,_0x1279c5:0x14f,_0x4eab81:0x1b4,_0x9ca3b6:0x204,_0x9dde73:0x1d3,_0x447c03:0x65,_0x2ceafe:0xd1,_0x44795d:0x192},_0xa6cae3={_0x3dacfd:0x232,_0x16121c:0x1aa,_0x20e176:0x237,_0x3a7783:0x28c},_0x55d4f5={_0x3060cb:0x153},_0x3b9da3={_0x1337e7:0x13b},_0x55ee68={_0x3e3bd0:0x469,_0x40a371:0x5c,_0x10a908:0xd,_0x247e25:0x44d,_0x26b693:0x421,_0x14daef:0x60,_0x883749:0x80,_0x35ee13:0xf8,_0x541250:0xc8,_0x15841d:0x42,_0x26742e:0x452,_0x53fdef:0x404,_0x2618ec:0xd5,_0x53aff4:0x3f,_0x5434af:0x4b0,_0x1bd56f:0x51c,_0x5b3d83:0x1c,_0x1216b6:0x71,_0x552b4e:0xde,_0x335a3d:0x3c,_0x328905:0x20,_0x8a33e4:0x1f},_0x31aed7={_0x1129f5:0x1d0,_0x366e61:0x1c8},_0x25a4d7={_0x582db6:0xc9,_0x313f29:0x170},_0x39ea93={_0x17fb79:0x539,_0x1365bd:0x53f,_0x293ed1:0x3b9},_0x3244ce={_0x5b94aa:0x321},_0xeeed8f={_0x2002f9:0x1f4,_0xff5b7d:0x10c,_0x485610:0xe8},_0x4ed016={_0x507483:0x4ae,_0x27925f:0x4cf,_0x119d51:0x4ab,_0x5a446e:0x517,_0x1d5716:0x464,_0x36810b:0x418},_0x4caa53={_0x6cff9:0x15e,_0x1c493a:0x8c},_0x977a9e={_0x128bdb:0x3c0,_0x2597da:0x451},_0x2765ea={_0x5f2ce3:0x49,_0x1be231:0x72},_0x52f36a=createImmutableExecutionScope(_0x26e109[_0x485b57(0x168,0x20f,_0x5e1963._0x3ec779,0x169)]['agentId'],_0x26e109['executionScope'][_0x2a48e3(-0x174,-_0x5e1963._0x41ca85,-0x1af,-_0x5e1963._0x4325a2)]),_0x4a1b6d=new Set(),_0x31c49c=new Set(),_0x5c059c=new AbortController(),_0x2a6965=createNestedCallAdmissionGate();let _0x188a45=![],_0x725448=![],_0x1bca8f,_0xd7d9bf=![],_0x4aa9b3=()=>{};const _0x2b9a21=_0x140d4e=>{const _0x1bbb69={_0x4d2cd3:0x3cb,_0x386e82:0x50};function _0x2752de(_0x5e7c36,_0x5db046,_0xc9e9c2,_0x4c146a){return _0x485b57(_0x5db046-_0x1bbb69._0x4d2cd3,_0xc9e9c2,_0xc9e9c2-0x7b,_0x4c146a-_0x1bbb69._0x386e82);}if(_0x188a45)return;function _0x366f45(_0x101cdc,_0x23ba6c,_0x201e7a,_0x58f746){return _0x2a48e3(_0x201e7a,_0x23ba6c-_0x2765ea._0x5f2ce3,_0x58f746-0x338,_0x58f746-_0x2765ea._0x1be231);}_0x188a45=!![];const _0x185d8e=toAbortError(_0x140d4e??PARENT_TOOL_SETTLED_MESSAGE);_0x2a6965[_0x2752de(0x56a,0x4f7,0x540,0x4c5)](_0x185d8e),_0x5c059c[_0x2752de(_0x977a9e._0x128bdb,_0x977a9e._0x2597da,0x3bf,0x48d)](_0x185d8e);for(const _0x17c772 of _0x4a1b6d){_0x17c772['abort'](_0x185d8e);}_0x4aa9b3();};_0x4aa9b3=addAbortListener(_0x26e109[_0x2a48e3(-0xd3,-_0x5e1963._0xdcc398,-_0x5e1963._0x1279c5,-0x140)],()=>{function _0x539c2b(_0x1fd431,_0x950f5e,_0x50a5ab,_0xb96edc){return _0x485b57(_0x50a5ab-0x3e1,_0x1fd431,_0x50a5ab-0x1dc,_0xb96edc-0xd);}function _0x59ee87(_0x2100c5,_0x4f6d4e,_0x5449ac,_0x21556c){return _0x485b57(_0x21556c-_0x4caa53._0x6cff9,_0x2100c5,_0x5449ac-0xbe,_0x21556c-_0x4caa53._0x1c493a);}_0x2b9a21(_0x26e109[_0x539c2b(_0x4ed016._0x507483,_0x4ed016._0x27925f,_0x4ed016._0x119d51,_0x4ed016._0x5a446e)][_0x539c2b(0x484,0x4a7,_0x4ed016._0x1d5716,_0x4ed016._0x36810b)]);});function _0x485b57(_0x545145,_0x43ed98,_0x41a9fe,_0xe9fe5f){return _0x28d661(_0x43ed98,_0x43ed98-_0xeeed8f._0x2002f9,_0x41a9fe-_0xeeed8f._0xff5b7d,_0x545145- -_0xeeed8f._0x485610);}const _0x25a9c9=_0x415593=>{const _0x2c3b41={_0x29070e:0x18b};_0x31c49c[_0x319d31(_0x39ea93._0x17fb79,0x4d3,_0x39ea93._0x1365bd,0x532)](_0x415593);const _0x2ad9bc=()=>{_0x31c49c['delete'](_0x415593);};function _0x1dbc96(_0x1f70d6,_0x4354a3,_0x272783,_0x26bfdb){return _0x2a48e3(_0x1f70d6,_0x4354a3-_0x2c3b41._0x29070e,_0x272783-0x3f2,_0x26bfdb-0x123);}function _0x319d31(_0xef2f49,_0x1325ee,_0x4439bb,_0x5b42e6){return _0x485b57(_0x1325ee-_0x3244ce._0x5b94aa,_0x5b42e6,_0x4439bb-0x5,_0x5b42e6-0x57);}const _0x21d011=_0x4b66fa=>{!_0x725448&&(_0x725448=!![],_0x1bca8f=_0x4b66fa),_0x2ad9bc();};void _0x415593[_0x319d31(0x384,0x39a,_0x39ea93._0x293ed1,0x424)](_0x2ad9bc,_0x21d011);},_0x47df3f=async()=>{function _0x7ed894(_0x472424,_0x3dd0a8,_0x1fcb9b,_0x989c23){return _0x485b57(_0x1fcb9b-_0x25a4d7._0x582db6,_0x472424,_0x1fcb9b-_0x25a4d7._0x313f29,_0x989c23-0x6);}while(_0x31c49c['size']>0x0){await Promise[_0x7ed894(_0x31aed7._0x1129f5,_0x31aed7._0x366e61,0x26c,0x27d)]([..._0x31c49c]);}if(_0x725448)throw _0x1bca8f;},_0x2918d4=async _0x12bab8=>{const _0x3492d5={_0xd0f4ba:0x267},_0x16f5bf={_0x73e325:0x7a,_0x48070e:0x1ee},_0xaa7eb2={_0x475b61:0x116,_0x13d12f:0x12f},_0x45d1f7={_0x41fec0:0x62,_0x415818:0x597,_0x4bbcb6:0x1d0};if(_0x188a45)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x2b09ab;try{_0x2b09ab=snapshotNestedToolRequest(_0x12bab8);}catch(_0x4e7fa4){_0x2a6965[_0x553c61(_0x55ee68._0x3e3bd0,0x417,0x4aa,0x419)](_0x4e7fa4);throw _0x4e7fa4;}function _0x553c61(_0x544745,_0x4eb2f3,_0x10caa7,_0x1b4b59){return _0x2a48e3(_0x544745,_0x4eb2f3-_0x45d1f7._0x41fec0,_0x10caa7-_0x45d1f7._0x415818,_0x1b4b59-_0x45d1f7._0x4bbcb6);}const _0x3cfe7b=_0x2a6965[_0x6b8f87(-0x28,_0x55ee68._0x40a371,-0x2a,-_0x55ee68._0x10a908)](_0x2b09ab[_0x553c61(_0x55ee68._0x247e25,0x49a,_0x55ee68._0x26b693,0x465)]);function _0x6b8f87(_0x305907,_0x48e73d,_0x5cb8d8,_0x59fc29){return _0x2a48e3(_0x59fc29,_0x48e73d-_0xaa7eb2._0x475b61,_0x48e73d-_0xaa7eb2._0x13d12f,_0x59fc29-0x168);}const _0x9d46c6=createImmutableExecutionScope(_0x52f36a[_0x6b8f87(0x2b,-0x75,0x3d,-_0x55ee68._0x14daef)],[..._0x52f36a[_0x6b8f87(-0xa3,-_0x55ee68._0x883749,-0xc3,0xd)],_0x47bc1a]),_0x987526=new AbortController();_0x4a1b6d[_0x6b8f87(_0x55ee68._0x35ee13,_0x55ee68._0x541250,_0x55ee68._0x15841d,0xf1)](_0x987526);_0x188a45&&_0x987526[_0x553c61(_0x55ee68._0x26742e,0x423,_0x55ee68._0x53fdef,0x483)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x1074f9=executeNestedToolRequest(_0x2b09ab,_0x26e109,_0x9d46c6,_0x987526['signal'],_0x3cfe7b,_0x16ea5d,_0x2ff70e,_0x25a9c9);_0x2b09ab[_0x6b8f87(-_0x55ee68._0x2618ec,-_0x55ee68._0x53aff4,-0xa2,0x3a)]===_0x553c61(_0x55ee68._0x5434af,_0x55ee68._0x1bd56f,0x53d,0x4c8)&&_0x25a9c9(_0x1074f9[_0x6b8f87(_0x55ee68._0x5b3d83,-_0x55ee68._0x1216b6,-0x114,-_0x55ee68._0x552b4e)](()=>{},_0x5e5c8c=>{function _0x1bc41d(_0x3ba811,_0x158763,_0xee4ec8,_0x12a735){return _0x6b8f87(_0x3ba811-_0x16f5bf._0x73e325,_0x12a735-_0x16f5bf._0x48070e,_0xee4ec8-0x1ef,_0x3ba811);}if(!_0x987526['signal'][_0x1bc41d(0x324,0x276,0x23c,_0x3492d5._0xd0f4ba)]||!isAbortError(_0x5e5c8c))throw _0x5e5c8c;}));const _0x368d83=()=>{_0x4a1b6d['delete'](_0x987526);};return void _0x1074f9[_0x553c61(0x352,0x47d,0x3f7,0x4aa)](_0x368d83,_0x368d83),await awaitWithAbort(()=>_0x1074f9,_0x5c059c[_0x6b8f87(-_0x55ee68._0x335a3d,-_0x55ee68._0x328905,_0x55ee68._0x8a33e4,-0x92)]);};function _0x2a48e3(_0x1bc6a3,_0x4d8ec8,_0x45b560,_0x327846){return _0x1ea0ad(_0x1bc6a3,_0x45b560- -0x14e,_0x45b560-0xb3,_0x327846-_0x3b9da3._0x1337e7);}const _0x11ef80={'executeNestedTool':_0x2918d4},_0x590058=_0x16ea5d[_0x485b57(_0x5e1963._0x4eab81,0x1cb,_0x5e1963._0x9ca3b6,_0x5e1963._0x9dde73)];_0x590058&&(_0x11ef80[_0x2a48e3(-0xcb,-0x3c,-_0x5e1963._0x447c03,-_0x5e1963._0x2ceafe)]=async()=>{function _0x4b5f61(_0x272a52,_0x3363b7,_0x2ee7e8,_0x7aab83){return _0x485b57(_0x7aab83-0x378,_0x3363b7,_0x2ee7e8-0x0,_0x7aab83-0x13a);}function _0x4132e8(_0x2838aa,_0x587769,_0x267287,_0x45ef22){return _0x2a48e3(_0x45ef22,_0x587769-_0x55d4f5._0x3060cb,_0x267287-0x386,_0x45ef22-0x53);}if(_0x188a45)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);return await awaitUncancellableAfterAdmission(()=>_0x590058({'executionScope':createImmutableExecutionScope(_0x52f36a[_0x4132e8(0x1ef,0x20f,0x1e2,0x1f5)],_0x52f36a[_0x4132e8(0x223,0x230,0x1d7,0x22d)]),'programToolCallId':_0x47bc1a}),_0x5c059c[_0x4132e8(_0xa6cae3._0x3dacfd,_0xa6cae3._0x16121c,_0xa6cae3._0x20e176,_0xa6cae3._0x3a7783)]);});const _0x5132fb=()=>{_0xd7d9bf=!![],_0x2b9a21();},_0x243bb9=()=>_0xd7d9bf,_0x172f16={'capabilities':_0x11ef80,'close':_0x2b9a21,'commitTerminalState':_0x5132fb,'drainPersistence':_0x47df3f,'isTerminalStateCommitted':_0x243bb9};return boundNestedExecutionControls[_0x485b57(_0x5e1963._0x44795d,0x181,0x1f4,0xf4)](_0x2918d4,_0x172f16),_0x172f16;}async function executeCapturedToolCall(_0xb83919,_0x253430,_0x2f5543,_0x469803,_0x119669,_0x3befd8,_0x3705c2=_0x3befd8[_0x1ea0ad(-0x59,-0x58,0x37,-0xcf)]){const _0x20ebfe={_0x2c2304:0x12e,_0xa1626b:0x12b,_0x17384d:0x36,_0x45de5d:0x1ad,_0x453209:0x188,_0x5c2f3b:0x1a6,_0x184a42:0x41,_0x5a29e6:0x46,_0x5814ae:0x12d,_0x3f1b25:0x193,_0x3e0bf1:0xc9,_0x58a91e:0x6e},_0x41a5c0={_0x54b335:0x13f},_0x44c940={_0x3c084b:0x1a2,_0x543ecd:0x7e,_0x2b0b6b:0x2d5};function _0x3c22d4(_0x3faba8,_0x2d721f,_0x3ac076,_0xe8a459){return _0x28d661(_0x3faba8,_0x2d721f-_0x44c940._0x3c084b,_0x3ac076-_0x44c940._0x543ecd,_0x2d721f- -_0x44c940._0x2b0b6b);}const _0x1ee738={..._0x119669,'toolCallId':_0x2f5543,'permissionClass':resolveToolPermissionClass(_0xb83919),'executionAuthorization':void 0x0};if(_0x1ee738[_0x3c22d4(-_0x20ebfe._0x2c2304,-0x123,-_0x20ebfe._0xa1626b,-0x1c4)][_0x3c22d4(_0x20ebfe._0x17384d,-0x8a,-0x4d,-0xa1)]){const _0x4a8786=createAbortedToolResult(_0x2f5543,_0x469803,_0x1ee738[_0x284a4c(-_0x20ebfe._0x45de5d,-_0x20ebfe._0x453209,-0x161,-_0x20ebfe._0x5c2f3b)]['reason']);return await emitToolCompletedEventWithTerminalPrecedence(_0x3705c2,_0x253430,_0x2f5543,_0x469803,_0x4a8786,_0x1ee738),_0x4a8786;}let _0x1f9094;function _0x284a4c(_0x33ab70,_0x1209cd,_0x5ba68c,_0x5a72dc){return _0x28d661(_0x1209cd,_0x1209cd-_0x41a5c0._0x54b335,_0x5ba68c-0x17f,_0x5a72dc- -0x358);}try{_0x1f9094=_0xb83919?.[_0x3c22d4(-_0x20ebfe._0x184a42,-0x42,0xa,_0x20ebfe._0x5a29e6)]?.[_0x3c22d4(-_0x20ebfe._0x5814ae,-0xfd,-0x164,-_0x20ebfe._0x3f1b25)]();}catch(_0x243282){const _0x225399=isAbortError(_0x243282);let _0x21bfd3;if(_0x225399)_0x21bfd3=createAbortedToolResult(_0x2f5543,_0x469803,_0x243282);else{const {errorMessage:_0x1b22f3,structured:_0x229595}=normalizeExecutionError(_0x243282);_0x21bfd3=createErrorToolResult(_0x2f5543,_0x469803,_0x1b22f3,_0x229595);}return _0x225399?await emitToolCompletedEventWithTerminalPrecedence(_0x3705c2,_0x253430,_0x2f5543,_0x469803,_0x21bfd3,_0x1ee738):await emitEvent(_0x3705c2,{'type':_0x3c22d4(-_0x20ebfe._0x3e0bf1,-_0x20ebfe._0x58a91e,-0x9c,-0x41),'toolCall':cloneToolCallForPublication(_0x253430,_0x2f5543,_0x469803),'result':_0x21bfd3},_0x1ee738),_0x21bfd3;}try{return await executeAcquiredToolCall(_0xb83919,_0x253430,_0x2f5543,_0x469803,_0x119669,_0x3befd8,_0x3705c2);}finally{_0x1f9094?.();}}async function executeAcquiredToolCall(_0x4e585d,_0x5817cf,_0x388b3f,_0x58571a,_0xdad22e,_0x5b0a51,_0x4d94c0){const _0x15cf64={_0x3e6455:0x33,_0x57dce8:0x75,_0x4e3721:0x70,_0x172588:0x23d,_0x444276:0x1cd,_0x5532f7:0x378,_0x2d2540:0x343,_0x275277:0x2f6,_0x3b6d5f:0x31f,_0x2ef8d5:0x282,_0x416712:0x6b,_0x309cf1:0x9e,_0x29a63c:0x1a,_0x2b9860:0xf,_0x492ffb:0xac,_0x922723:0x4f,_0x56f172:0x16,_0x4abab3:0x57,_0x688369:0x12,_0x135250:0x33,_0x54af94:0xb5,_0x1e2088:0xda,_0x3708a9:0x0,_0x5323bb:0x382,_0x25e5a1:0x2b3,_0x5c1a92:0x27d,_0x1e723:0x6c,_0x1a18b7:0x22,_0x4d25b0:0x325,_0x4e9693:0x38d,_0x53371c:0x2e8,_0x16d943:0x379,_0x3bf590:0x33,_0x4c90d5:0x17,_0x57622c:0x5d,_0x4bf368:0x86,_0x426ba1:0x201,_0xb03247:0x282,_0xabf73f:0x4a,_0x4d4034:0xc,_0x212e4d:0x3a,_0x2b94d8:0x1bd,_0x4f66aa:0x239,_0x419e6d:0x1cd,_0x3d94f1:0x23a,_0x190111:0x33,_0x1fadc8:0xc8,_0x377f7b:0x16,_0x53f656:0x141,_0x2a8d16:0x27,_0x4450ac:0x1f2,_0x491bb4:0x248,_0x1a349b:0x237,_0x3ff5e9:0x20f,_0x527817:0x1bd,_0x5125a4:0x1ba,_0x28fd0c:0x201,_0x1925c3:0x2a2,_0x5767f4:0x329,_0x318ddd:0x22,_0x411003:0x59,_0xcb295a:0xa9,_0x197aa8:0x6d,_0x2276a1:0xd,_0xa4e912:0x244,_0x15c8fa:0x82,_0x51242e:0x31,_0x41a6af:0x222,_0x41d552:0x26c,_0x475e74:0x1ba,_0xb0fa57:0x13e,_0x5d252b:0x183,_0x56020d:0x16,_0x113d9b:0x1ba,_0x5017ea:0x16c,_0x220481:0x16c,_0x6c9f80:0x1e8,_0x3fc822:0x7,_0x2ffc1a:0x114,_0x4f8c61:0x329,_0x3fdee1:0x35a,_0x6b9eea:0x24,_0x7f4f30:0x24,_0x962635:0x1b,_0x566311:0x10f,_0x5e2c37:0x367,_0x48e337:0x7c,_0x51e938:0x3a6,_0x43793b:0x38b,_0x229cd3:0x3,_0x4938f4:0x2f9,_0x3c8e08:0x292,_0x2a99b5:0x28c,_0x1eb4c3:0x1f1,_0x24ed91:0x30e,_0x5354cd:0x25a,_0x59e5be:0x346,_0x23d339:0x38},_0x29eedb={_0x2b4e14:0x4f8,_0x3199eb:0x4ae,_0x37b72c:0x500,_0x2fd441:0x480,_0x499f14:0x465,_0xd2b5e5:0x517,_0x3a864b:0x4e8},_0x5de62c={_0x1740e7:0xae},_0x53bf8b={_0x594360:0x170},_0xdd6a1a={_0x3e655f:0x2ae,_0x1a03e4:0xaf},_0x117390={_0x3c531e:0x32,_0x694654:0x138},_0x300316={..._0xdad22e,'toolCallId':_0x388b3f,'permissionClass':resolveToolPermissionClass(_0x4e585d),'executionAuthorization':void 0x0};throwIfAborted(_0x300316[_0x28639d(-_0x15cf64._0x3e6455,_0x15cf64._0x57dce8,_0x15cf64._0x4e3721,-0xb8)]);let _0x2438c8;try{_0x2438c8=await resolveDispatchDecision(_0x5b0a51[_0x36fb32(-0x2f6,-0x2c6,-_0x15cf64._0x172588,-0x2f8)],_0x5817cf,_0x300316);}catch(_0x441e20){if(isAbortError(_0x441e20)){const _0x25a143=createAbortedToolResult(_0x388b3f,_0x58571a,_0x441e20);return await emitToolCompletedEventWithTerminalPrecedence(_0x4d94c0,_0x5817cf,_0x388b3f,_0x58571a,_0x25a143,_0x300316),_0x25a143;}const {errorMessage:_0x4e255b,structured:_0x398136}=normalizeExecutionError(_0x441e20),_0xfc2680=createErrorToolResult(_0x388b3f,_0x58571a,_0x4e255b,_0x398136);return await emitEvent(_0x4d94c0,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a),'result':_0xfc2680},_0x300316),_0xfc2680;}throwIfAborted(_0x300316['signal']);function _0x28639d(_0x144b7e,_0x26fc7e,_0x3885dc,_0x53d905){return _0x1ea0ad(_0x26fc7e,_0x144b7e- -_0x117390._0x3c531e,_0x3885dc-_0x117390._0x694654,_0x53d905-0x3);}if(_0x2438c8['action']===_0x36fb32(-0x125,-0x1be,-0x1db,-_0x15cf64._0x444276)){const _0x38dbb8=createRejectedToolResult(_0x388b3f,_0x58571a,_0x2438c8[_0x36fb32(-_0x15cf64._0x5532f7,-_0x15cf64._0x2d2540,-_0x15cf64._0x275277,-0x240)]);return await emitEvent(_0x4d94c0,{'type':_0x36fb32(-0x376,-0x3d0,-_0x15cf64._0x3b6d5f,-_0x15cf64._0x2ef8d5),'toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a),'result':_0x38dbb8},_0x300316),_0x38dbb8;}if(!_0x4e585d){const _0x5f325b=createUnknownToolResult(_0x388b3f,_0x58571a);return await emitEvent(_0x4d94c0,{'type':_0x28639d(0x82,_0x15cf64._0x416712,_0x15cf64._0x309cf1,-_0x15cf64._0x29a63c),'toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a),'result':_0x5f325b},_0x300316),_0x5f325b;}const _0x239b69=createBoundToolExecutionControl(_0x388b3f,_0x300316,_0x5b0a51,_0x4d94c0);function _0x36fb32(_0x3a12d4,_0x17bfc5,_0x117734,_0x13e9cf){return _0x1ea0ad(_0x3a12d4,_0x117734- -_0xdd6a1a._0x3e655f,_0x117734-_0xdd6a1a._0x1a03e4,_0x13e9cf-0x8b);}const _0x4bf3f4={..._0x300316,'executionAuthorization':_0x2438c8[_0x28639d(-0x99,-0xe0,-0x95,_0x15cf64._0x2b9860)],..._0x239b69['capabilities']};throwIfAborted(_0x4bf3f4['signal']);try{await emitEvent(_0x4d94c0,{'type':_0x28639d(-0x6a,-0x105,-_0x15cf64._0x492ffb,-_0x15cf64._0x922723),'toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a)},_0x4bf3f4);}catch(_0x39ea6b){const _0x19442c=_0x239b69[_0x28639d(-_0x15cf64._0x56f172,-0x44,-_0x15cf64._0x4abab3,-_0x15cf64._0x688369)]();if(actualCancellationHasPrecedence(_0x4bf3f4,_0x19442c)){const _0x20f92d=selectActualCancellationReason(_0x39ea6b,_0x4bf3f4[_0x28639d(-_0x15cf64._0x135250,-_0x15cf64._0x54af94,-_0x15cf64._0x1e2088,_0x15cf64._0x3708a9)][_0x36fb32(-_0x15cf64._0x5323bb,-_0x15cf64._0x25e5a1,-0x2f6,-_0x15cf64._0x5c1a92)]),_0x576bee=createAbortedToolResult(_0x388b3f,_0x58571a,_0x20f92d);return _0x239b69[_0x28639d(-_0x15cf64._0x1e723,-0x6c,0x15,_0x15cf64._0x1a18b7)](_0x20f92d),await emitToolCompletedEventWithTerminalPrecedence(_0x4d94c0,_0x5817cf,_0x388b3f,_0x58571a,_0x576bee,_0x4bf3f4,_0x19442c),_0x576bee;}_0x239b69[_0x36fb32(-_0x15cf64._0x4d25b0,-_0x15cf64._0x4e9693,-_0x15cf64._0x53371c,-_0x15cf64._0x16d943)](_0x39ea6b);throw _0x39ea6b;}let _0xb6c9ee;try{throwIfAborted(_0x4bf3f4[_0x28639d(-_0x15cf64._0x3bf590,-0x21,-0x9f,-0x8a)]);const _0x9ada4d=validateToolInput(_0x5817cf[_0x28639d(-_0x15cf64._0x4c90d5,-0x31,_0x15cf64._0x57622c,_0x15cf64._0x4bf368)],_0x4e585d[_0x36fb32(-_0x15cf64._0x426ba1,-0x1e6,-0x1d7,-_0x15cf64._0xb03247)]),_0x545d15=await _0x4e585d['execute'](_0x9ada4d,_0x4bf3f4),_0x2e2f4e=[],_0x36853e=addAbortListener(_0x4bf3f4[_0x28639d(-0x33,-_0x15cf64._0xabf73f,0x21,_0x15cf64._0x4d4034)],()=>{function _0x2ccd65(_0x550500,_0xa0aaf0,_0x1b6ab1,_0x44c5ee){return _0x28639d(_0x44c5ee-0x1a6,_0x1b6ab1,_0x1b6ab1-_0x53bf8b._0x594360,_0x44c5ee-0x5c);}function _0xae8aca(_0x211157,_0x3c39a4,_0x1295cd,_0x3c0e4d){return _0x36fb32(_0x211157,_0x3c39a4-_0x5de62c._0x1740e7,_0x3c0e4d-0x6f7,_0x3c0e4d-0x1c6);}_0x58571a!==_0xae8aca(_0x29eedb._0x2b4e14,0x5ab,_0x29eedb._0x3199eb,0x53d)&&!_0x239b69[_0xae8aca(_0x29eedb._0x37b72c,0x3d3,_0x29eedb._0x2fd441,_0x29eedb._0x499f14)]()&&void _0x545d15[_0xae8aca(0x4e5,0x4cf,_0x29eedb._0xd2b5e5,_0x29eedb._0x3a864b)](void 0x0)['catch'](()=>{});});try{throwIfAborted(_0x4bf3f4[_0x28639d(-_0x15cf64._0x3bf590,0xb,0xc,-_0x15cf64._0x212e4d)]);let _0x3abdc4=await _0x545d15[_0x36fb32(-0x255,-0x183,-_0x15cf64._0x2b94d8,-_0x15cf64._0x4f66aa)]();while(!_0x3abdc4[_0x36fb32(-_0x15cf64._0x419e6d,-0x2ac,-_0x15cf64._0x3d94f1,-0x1b2)]){throwIfAborted(_0x4bf3f4[_0x28639d(-_0x15cf64._0x190111,-_0x15cf64._0x1fadc8,-0x42,_0x15cf64._0x377f7b)]);const _0x5bf5b5=normalizeToolOutputValue(_0x3abdc4['value']);_0x2e2f4e[_0x28639d(-0xb5,-_0x15cf64._0x53f656,-_0x15cf64._0x2a8d16,-0x1c)](_0x5bf5b5),await emitEvent(_0x4d94c0,{'type':_0x36fb32(-_0x15cf64._0x4450ac,-_0x15cf64._0x491bb4,-0x1d2,-_0x15cf64._0x1a349b),'toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a),'chunk':_0x5bf5b5},_0x4bf3f4),throwIfAborted(_0x4bf3f4[_0x36fb32(-_0x15cf64._0x3ff5e9,-0x2e2,-0x2af,-0x36f)]),_0x3abdc4=await _0x545d15[_0x36fb32(-0x250,-0x27a,-_0x15cf64._0x527817,-0x19a)]();}_0x58571a===_0x36fb32(-0x260,-0xfd,-_0x15cf64._0x5125a4,-_0x15cf64._0x28fd0c)&&(_0xb6c9ee=_0x3abdc4[_0x36fb32(-_0x15cf64._0x1925c3,-0x3ba,-0x329,-0x2ee)]===void 0x0?deriveFinalToolOutput(_0x2e2f4e):normalizeToolOutputValue(_0x3abdc4[_0x36fb32(-0x35d,-0x3d7,-_0x15cf64._0x5767f4,-0x271)]));!_0x239b69[_0x28639d(-_0x15cf64._0x56f172,0x13,0xb,_0x15cf64._0x318ddd)]()&&throwIfAborted(_0x4bf3f4['signal']);const _0x5b0c60=_0xb6c9ee??(_0x3abdc4[_0x28639d(-0xad,-_0x15cf64._0x411003,-0x115,-_0x15cf64._0xcb295a)]===void 0x0?deriveFinalToolOutput(_0x2e2f4e):normalizeToolOutputValue(_0x3abdc4[_0x28639d(-0xad,-_0x15cf64._0x197aa8,-0x102,-_0x15cf64._0x2276a1)])),_0x2054e5=createSuccessToolResult(_0x388b3f,_0x58571a,_0x5b0c60,_0x2e2f4e);return _0x239b69[_0x36fb32(-_0x15cf64._0xa4e912,-0x2b6,-_0x15cf64._0x53371c,-0x239)](),await emitEvent(_0x4d94c0,{'type':_0x28639d(_0x15cf64._0x15c8fa,0x135,0x95,-_0x15cf64._0x51242e),'toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a),'result':_0x2054e5},_0x4bf3f4),_0x2054e5;}catch(_0x5e7117){_0x58571a===_0x36fb32(-_0x15cf64._0x41a6af,-_0x15cf64._0x41d552,-_0x15cf64._0x475e74,-_0x15cf64._0xb0fa57)&&_0x5e7117 instanceof ToolExecutionError&&(_0xb6c9ee={'output':_0x5e7117['message'],'structured':_0x5e7117[_0x36fb32(-_0x15cf64._0x5d252b,-0x12e,-0x1de,-0x1e1)]});const _0x253e9c=_0x239b69[_0x28639d(-_0x15cf64._0x56020d,-_0x15cf64._0x29a63c,-0x57,-0xbe)](),_0x4c4201=actualCancellationHasPrecedence(_0x4bf3f4,_0x253e9c);if(_0x4c4201||isAbortError(_0x5e7117)){let _0x133c0b=_0x5e7117;if(_0x58571a===_0x36fb32(-0x117,-0x1b1,-_0x15cf64._0x113d9b,-_0x15cf64._0x5017ea)&&_0x4c4201&&_0xb6c9ee===void 0x0)try{let _0x3a0cec=await _0x545d15[_0x36fb32(-0x262,-_0x15cf64._0x220481,-0x1bd,-0x21f)]();while(!_0x3a0cec[_0x36fb32(-0x2bc,-0x1ed,-_0x15cf64._0x3d94f1,-_0x15cf64._0x6c9f80)])_0x3a0cec=await _0x545d15[_0x28639d(0xbf,_0x15cf64._0x3fc822,_0x15cf64._0x2ffc1a,0x155)]();_0xb6c9ee=_0x3a0cec[_0x28639d(-0xad,-0x2c,-0x9e,0x10)]===void 0x0?deriveFinalToolOutput(_0x2e2f4e):normalizeToolOutputValue(_0x3a0cec[_0x36fb32(-0x3da,-_0x15cf64._0x275277,-_0x15cf64._0x4f8c61,-_0x15cf64._0x3fdee1)]);}catch(_0x75ad31){_0x75ad31 instanceof ToolExecutionError&&(_0xb6c9ee={'output':_0x75ad31[_0x28639d(-0x81,-0x9e,_0x15cf64._0x6b9eea,-_0x15cf64._0x7f4f30)],'structured':_0x75ad31[_0x28639d(0x9e,0x24,-_0x15cf64._0x962635,_0x15cf64._0x566311)]},_0x133c0b=_0x75ad31);}const _0x1168d0=_0x4c4201?selectActualCancellationReason(_0x133c0b,_0x4bf3f4[_0x36fb32(-_0x15cf64._0x5e2c37,-0x331,-0x2af,-0x36f)][_0x28639d(-0x7a,-0x6c,-_0x15cf64._0x48e337,-0x7e)],_0xb6c9ee):_0x133c0b,_0x6e4c55=createAbortedToolResult(_0x388b3f,_0x58571a,_0x1168d0,_0x2e2f4e);return _0x239b69[_0x36fb32(-0x27f,-_0x15cf64._0x51e938,-0x2e8,-_0x15cf64._0x43793b)](_0x1168d0),await emitToolCompletedEventWithTerminalPrecedence(_0x4d94c0,_0x5817cf,_0x388b3f,_0x58571a,_0x6e4c55,_0x4bf3f4,_0x253e9c),_0x6e4c55;}if(_0x5e7117 instanceof ToolRuntimeInfrastructureError)throw _0x5e7117;const {errorMessage:_0x2e7a7e,structured:_0x44cf0c}=normalizeExecutionError(_0x5e7117),_0x580880=createErrorToolResult(_0x388b3f,_0x58571a,_0x2e7a7e,_0x44cf0c,_0x2e2f4e);return _0x239b69[_0x28639d(-_0x15cf64._0x1e723,0x0,-0x92,_0x15cf64._0x229cd3)](_0x5e7117),await emitToolCompletedEventWithTerminalPrecedence(_0x4d94c0,_0x5817cf,_0x388b3f,_0x58571a,_0x580880,_0x4bf3f4,_0x239b69['isTerminalStateCommitted']()),_0x580880;}finally{_0x36853e();}}catch(_0x327305){const _0x171b82=_0x239b69[_0x36fb32(-_0x15cf64._0x4938f4,-0x232,-_0x15cf64._0x3c8e08,-0x2cf)](),_0xe80c53=actualCancellationHasPrecedence(_0x4bf3f4,_0x171b82);if(_0xe80c53||isAbortError(_0x327305)){const _0x5c6c4a=_0xe80c53?selectActualCancellationReason(_0x327305,_0x4bf3f4[_0x36fb32(-0x2a6,-_0x15cf64._0x2a99b5,-0x2af,-_0x15cf64._0x1eb4c3)][_0x36fb32(-_0x15cf64._0x24ed91,-_0x15cf64._0x5354cd,-0x2f6,-0x25c)],_0xb6c9ee):_0x327305,_0x366873=createAbortedToolResult(_0x388b3f,_0x58571a,_0x5c6c4a);return _0x239b69['close'](_0x5c6c4a),await emitToolCompletedEventWithTerminalPrecedence(_0x4d94c0,_0x5817cf,_0x388b3f,_0x58571a,_0x366873,_0x4bf3f4,_0x171b82),_0x366873;}if(_0x327305 instanceof ToolRuntimeInfrastructureError)throw _0x327305;const {errorMessage:_0x5b0a52,structured:_0xa04cd4}=normalizeExecutionError(_0x327305),_0x2c892d=createErrorToolResult(_0x388b3f,_0x58571a,_0x5b0a52,_0xa04cd4);return _0x239b69[_0x36fb32(-0x246,-0x372,-0x2e8,-_0x15cf64._0x59e5be)](_0x327305),await emitEvent(_0x4d94c0,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x5817cf,_0x388b3f,_0x58571a),'result':_0x2c892d},_0x4bf3f4),_0x2c892d;}finally{_0x239b69[_0x28639d(-0x6c,-0xfc,-0xbe,-_0x15cf64._0x23d339)]();}}async function executeRegisteredToolCall(_0x2aa456,_0x2ec369,_0x28b840,_0x24294e){const _0x2f93d8={_0x63b17c:0x226,_0x1f24dd:0x2b4,_0x5d1000:0x2c4,_0x172c0a:0x248,_0x4f37e7:0x18d,_0x58a790:0x17a},_0x196283={_0xe3bc02:0xac,_0x5646a7:0x3a0},_0x1b7577={_0x1c17a6:0xa2,_0x51114d:0x9e},_0x285d62=_0x2ec369['id'],_0x519a67=_0x2ec369[_0x12af86(_0x2f93d8._0x63b17c,_0x2f93d8._0x1f24dd,_0x2f93d8._0x5d1000,0x230)];function _0x12af86(_0x8b03d8,_0x292379,_0x432db9,_0x1e8303){return _0x28d661(_0x292379,_0x292379-_0x1b7577._0x1c17a6,_0x432db9-_0x1b7577._0x51114d,_0x8b03d8-0x35);}function _0x5e8fbd(_0x2bfaaf,_0x538e7e,_0x232990,_0x12f970){return _0x28d661(_0x2bfaaf,_0x538e7e-_0x196283._0xe3bc02,_0x232990-0x1ed,_0x538e7e- -_0x196283._0x5646a7);}const _0x2f7f2e=_0x2aa456[_0x5e8fbd(-_0x2f93d8._0x172c0a,-_0x2f93d8._0x4f37e7,-0x1b9,-_0x2f93d8._0x58a790)](_0x519a67);return await executeCapturedToolCall(_0x2f7f2e,_0x2ec369,_0x285d62,_0x519a67,_0x28b840,_0x24294e);}function createInternalToolRuntime(_0x2b6b62=[],_0x337bc3={}){const _0x1a87b1={_0x5d8f19:0x4e,_0xa7c5e7:0x9c},_0x4f9032={_0x3dba18:0x3f0,_0x2a6e3d:0x399,_0x21d5dc:0x3f7},_0x499a24={_0x4e09d8:0x355};let _0xe7a382=new ToolRegistry(_0x2b6b62);return{'listToolSchemas'(){return _0xe7a382['listToolSchemas']();},'setTools'(_0x47f5b7){_0xe7a382=new ToolRegistry(_0x47f5b7);},async 'executeCalls'(_0x46b3fa,_0x556d08){const _0x161f4a={_0x401016:0x1f5};function _0x40f0b2(_0x1c443a,_0x422286,_0x194332,_0x10e208){return _0x3bcc(_0x194332- -_0x161f4a._0x401016,_0x10e208);}function _0x11c569(_0x509194,_0x163520,_0x52906a,_0x36200e){return _0x3bcc(_0x509194-_0x499a24._0x4e09d8,_0x52906a);}return await Promise[_0x11c569(0x434,_0x4f9032._0x3dba18,0x48d,_0x4f9032._0x2a6e3d)](_0x46b3fa[_0x11c569(0x470,0x3d9,_0x4f9032._0x21d5dc,0x475)](async _0x1372b9=>{return await executeRegisteredToolCall(_0xe7a382,_0x1372b9,_0x556d08,_0x337bc3);}));},async 'execute'(_0x4f0fc5,_0x10346b){const _0x177c84={_0xad70b6:0x1e1},[_0x808a4f]=await this[_0x5cff95(-0x46,_0x1a87b1._0x5d8f19,-_0x1a87b1._0xa7c5e7,-0x89)]([_0x4f0fc5],_0x10346b);function _0x5cff95(_0x1380e3,_0x9d29ed,_0x478b6a,_0x4ad873){return _0x3bcc(_0x1380e3- -_0x177c84._0xad70b6,_0x478b6a);}return _0x808a4f;}};}function getOrderedObserverExtensions(_0x4fba37,_0x20108c){const _0x48a2f8={_0x1b6ee3:0x45e,_0x7ab3e1:0x3d2},_0x3f6cde={_0x4d62f7:0x26e,_0x1c3d7b:0x2df,_0x2d6385:0x19f,_0x47b3ef:0xf3,_0xdabd59:0x98},_0x2a4bbb={_0x163f49:0xcd,_0x21c4e5:0x1c7,_0xa6bc15:0x131,_0xbc6556:0x18a,_0xed8fdd:0x41,_0x4a0f7b:0x70,_0x5c95ab:0x110},_0x475806={_0x3c2f8c:0x88,_0x47bcd3:0x345},_0x3131c4={_0x2a8644:0xe1};function _0x3534da(_0x258fcc,_0x1ea25c,_0x2b0d86,_0x29fc5b){return _0x1ea0ad(_0x258fcc,_0x29fc5b-0x3ec,_0x2b0d86-0x19b,_0x29fc5b-_0x3131c4._0x2a8644);}return _0x4fba37[_0x3534da(0x371,_0x48a2f8._0x1b6ee3,_0x48a2f8._0x7ab3e1,0x42f)](_0x3ef071=>{const _0x31179c={_0x135f55:0x475};function _0x7a36ae(_0x3f3060,_0x55338f,_0x52b16b,_0x238cc9){return _0x3534da(_0x3f3060,_0x55338f-_0x475806._0x3c2f8c,_0x52b16b-0x43,_0x52b16b- -_0x475806._0x47bcd3);}function _0x2370c1(_0x11104a,_0x20cd94,_0x2c37e5,_0x56cacc){return _0x3534da(_0x11104a,_0x20cd94-0x111,_0x2c37e5-0x10f,_0x56cacc- -_0x31179c._0x135f55);}return _0x3ef071[_0x7a36ae(_0x2a4bbb._0x163f49,_0x2a4bbb._0x21c4e5,_0x2a4bbb._0xa6bc15,_0x2a4bbb._0xbc6556)]!==![]&&_0x3ef071[_0x7a36ae(0x66,-_0x2a4bbb._0xed8fdd,_0x2a4bbb._0x4a0f7b,0xae)]===_0x20108c&&_0x3ef071['kind']===_0x7a36ae(0x1e6,0x1ad,0x160,_0x2a4bbb._0x5c95ab);})['sort']((_0x27815b,_0x216800)=>{const _0x347064={_0x2628fa:0x101,_0x529068:0x1c8};function _0x53ec74(_0x237e3e,_0x2978b9,_0x4d9b76,_0x4eef13){return _0x3534da(_0x237e3e,_0x2978b9-_0x347064._0x2628fa,_0x4d9b76-_0x347064._0x529068,_0x4eef13- -0x357);}function _0xbbb180(_0x230d1d,_0x523174,_0x500618,_0x41dffd){return _0x3534da(_0x500618,_0x523174-0x9f,_0x500618-0x1d8,_0x230d1d- -0x19d);}if(_0x27815b['terminal']===!![]&&_0x216800[_0xbbb180(0x244,_0x3f6cde._0x4d62f7,_0x3f6cde._0x1c3d7b,0x29d)]!==!![])return 0x1;if(_0x27815b['terminal']!==!![]&&_0x216800[_0xbbb180(0x244,_0x3f6cde._0x2d6385,0x1dc,0x2c4)]===!![])return-0x1;return _0x27815b[_0x53ec74(0x94,_0x3f6cde._0x47b3ef,0x83,_0x3f6cde._0xdabd59)]-_0x216800['order'];});}function getOrderedTransformerExtensions(_0x4c5c6f,_0x50f52a){const _0x3b1cc3={_0x21e363:0x80,_0x5236ae:0xcb},_0x554709={_0x4d5deb:0x186,_0xe57ac2:0x117,_0x5641df:0x161,_0x32d2d6:0x78,_0xf3921c:0x122,_0x2420f2:0x18c,_0x393c9f:0x3d,_0x223e06:0x6d,_0x56b766:0x1f6,_0x56eac1:0x1af};function _0x17e906(_0x1cc694,_0x4ecc2b,_0x28cb89,_0x66abea){return _0x28d661(_0x28cb89,_0x4ecc2b-0x105,_0x28cb89-0x11e,_0x1cc694- -0x1b6);}return _0x4c5c6f[_0x17e906(0x40,0x89,-_0x3b1cc3._0x21e363,_0x3b1cc3._0x5236ae)](_0x834555=>{const _0x2f2b18={_0x142716:0x19e,_0x3f5728:0xfd},_0xbcc80={_0x24673f:0x16e};function _0x279b9d(_0x561339,_0x310303,_0x5c4af3,_0x38c8f1){return _0x17e906(_0x310303- -0xe8,_0x310303-0x1f0,_0x561339,_0x38c8f1-_0xbcc80._0x24673f);}function _0x400beb(_0x20fcdd,_0x7848c7,_0x42572e,_0x55c735){return _0x17e906(_0x42572e- -_0x2f2b18._0x142716,_0x7848c7-_0x2f2b18._0x3f5728,_0x20fcdd,_0x55c735-0xac);}return _0x834555[_0x400beb(-0x160,-_0x554709._0x4d5deb,-_0x554709._0xe57ac2,-_0x554709._0x5641df)]!==![]&&_0x834555[_0x279b9d(-_0x554709._0x32d2d6,-_0x554709._0xf3921c,-0xf7,-0x1c4)]===_0x50f52a&&_0x834555[_0x279b9d(-_0x554709._0x2420f2,-0xf0,-_0x554709._0x393c9f,-_0x554709._0x223e06)]===_0x279b9d(-0x13b,-0x13f,-_0x554709._0x56b766,-_0x554709._0x56eac1);})['sort']((_0x35d7b5,_0x41dc59)=>_0x35d7b5['order']-_0x41dc59['order']);}function createExtensionRegistry(){const _0x260473={_0x48af36:0x472,_0x4f6832:0x482},_0x1149af={_0x45e51d:0x24a,_0x5a58f2:0x54a,_0xde1ee1:0x4a2,_0x106f43:0x443,_0x197671:0x250,_0x4b58c4:0x262,_0x7e111c:0x2b9,_0x4d79ee:0x2d8,_0x2fb2e5:0x239,_0x475dbf:0x1fb,_0x4ff5e7:0x18c,_0x20dade:0x232,_0x272efb:0x27c,_0x35500a:0x1e0,_0xefbe62:0x224,_0x3ed8ee:0x4d4,_0x452811:0x474,_0x1dac33:0x2c8,_0x1e3347:0x2ab,_0x8d9a7e:0x37b,_0x672a1e:0x356},_0x314cf2={_0x565e63:0x2b9},_0x5c1354=[];return{'register'(_0x3135f3){if(_0x3135f3[_0x323240(-_0x1149af._0x45e51d,-0x2be,-0x247,-0x1aa)]===_0x177d10(_0x1149af._0x5a58f2,_0x1149af._0xde1ee1,0x4a5,0x3e4)&&_0x3135f3[_0x177d10(0x3c2,0x473,0x4c5,_0x1149af._0x106f43)]!==![]&&_0x3135f3[_0x323240(-_0x1149af._0x197671,-0x207,-0x208,-_0x1149af._0x4b58c4)]===!![]){const _0x22d5bc=_0x5c1354[_0x323240(-_0x1149af._0x7e111c,-_0x1149af._0x4d79ee,-_0x1149af._0x2fb2e5,-0x22b)](_0x138077=>_0x138077[_0x323240(-0x24a,-0x271,-0x2d6,-0x2c2)]===_0x323240(-0x18c,-0xe8,-0x105,-0x177)&&_0x138077[_0x323240(-0x1bb,-0x237,-0x154,-0x23d)]!==![]&&_0x138077[_0x177d10(0x31b,0x3b2,0x37b,0x325)]===_0x3135f3['stage']&&_0x138077[_0x323240(-0x250,-0x2b3,-0x26d,-0x2e7)]===!![]);if(_0x22d5bc)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x3135f3['id']+_0x323240(-_0x1149af._0x475dbf,-_0x1149af._0x4ff5e7,-0x1ee,-_0x1149af._0x20dade)+_0x3135f3[_0x323240(-_0x1149af._0x272efb,-_0x1149af._0x35500a,-0x20f,-_0x1149af._0xefbe62)]+':\x20terminal\x20observer\x20\x22'+_0x22d5bc['id']+_0x177d10(0x487,_0x1149af._0x3ed8ee,0x576,_0x1149af._0x452811));}function _0x323240(_0x20f6da,_0x2c128e,_0x38a37f,_0x5bbc3e){return _0x3bcc(_0x20f6da- -0x375,_0x5bbc3e);}function _0x177d10(_0x48d7dc,_0x48ed5c,_0xd8092,_0x55f0c5){return _0x3bcc(_0x48ed5c-_0x314cf2._0x565e63,_0x48d7dc);}_0x5c1354[_0x323240(-_0x1149af._0x1dac33,-_0x1149af._0x1e3347,-_0x1149af._0x8d9a7e,-_0x1149af._0x672a1e)]({..._0x3135f3});},async 'runTransformers'(_0x43bbdc,_0x2494dc,_0x1fe3dc){const _0x45d1fd={_0x2d8735:0x2b2};let _0x34fb05=_0x2494dc;function _0x740293(_0x2a7d0f,_0x3e5ea0,_0x2f0177,_0xa10da8){return _0x3bcc(_0x2f0177-_0x45d1fd._0x2d8735,_0xa10da8);}for(const _0x1a67dc of getOrderedTransformerExtensions(_0x5c1354,_0x43bbdc)){_0x34fb05=await _0x1a67dc[_0x740293(_0x260473._0x48af36,_0x260473._0x4f6832,0x40b,0x463)](_0x34fb05,_0x1fe3dc);}return _0x34fb05;},async 'runObservers'(_0x5f16b0,_0x1976e3,_0x537817){for(const _0xe0fd98 of getOrderedObserverExtensions(_0x5c1354,_0x5f16b0)){await _0xe0fd98['run'](_0x1976e3,_0x537817);}}};}var MODEL_USAGE_TOTAL_KEYS=[_0x1ea0ad(0x11e,0xee,0x176,0xaf),_0x28d661(0x267,0x258,0x178,0x1f7),'totalOutputTokens','totalReasoningTokens','requestCount',_0x1ea0ad(0x40,0x16,0x5c,0x1c),'totalModelTimeMs','totalCostUsdTicks',_0x28d661(0x1ca,0x31b,0x22d,0x25e),_0x28d661(0x1a3,0x1d7,0x1d7,0x1bf),_0x1ea0ad(0x7,0x76,0xaa,0x7),_0x1ea0ad(-0x60,0x40,0x59,0xc6),'unpricedModelCallCount',_0x28d661(0xc4,0x1c6,0xc0,0x16c),_0x28d661(0x19e,0x10d,0x11a,0x18e)],SUBAGENT_REPORT_META_KEYS=[_0x28d661(0x1d7,0x100,0x169,0x15d),'runId',_0x1ea0ad(0xb3,0x7e,0x1e,-0x25),_0x28d661(0x29e,0x16a,0x24a,0x20f),'turnUsage',_0x1ea0ad(0x67,0x85,0xc2,0xe4)],ModelUsageOverflowError=class extends RangeError{[_0x28d661(0x2a6,0x205,0x24a,0x1f1)]=_0x28d661(0x171,0x1b0,0x180,0x148);};function hasExactKeys(_0x2ecde1,_0x2fdbb8){const _0x498d64={_0x54c9f1:0x1d1,_0x1d9797:0x238,_0x4f17b3:0x14b,_0x23c141:0xb4,_0x23bf2a:0x1d6,_0x2846af:0x12b,_0x58b98f:0x14a,_0x464f79:0x10a},_0xbd89b2={_0x28414c:0x179,_0x100ca:0x17a};if(typeof _0x2ecde1!==_0x4bd285(_0x498d64._0x54c9f1,0x1a4,_0x498d64._0x1d9797,0x259)||_0x2ecde1===null||Array[_0x554a01(-0xb2,-0x149,-_0x498d64._0x4f17b3,-_0x498d64._0x23c141)](_0x2ecde1))return![];function _0x4bd285(_0x39694c,_0x9fab2e,_0x1621aa,_0x2d943f){return _0x28d661(_0x9fab2e,_0x9fab2e-_0xbd89b2._0x28414c,_0x1621aa-_0xbd89b2._0x100ca,_0x39694c- -0x54);}const _0x5b6e43=Object[_0x4bd285(0x173,_0x498d64._0x23bf2a,0x1ec,0x216)](_0x2ecde1);function _0x554a01(_0x49febf,_0x494e27,_0x12969a,_0xaa787c){return _0x28d661(_0xaa787c,_0x494e27-0x1b9,_0x12969a-0x39,_0x12969a- -0x3ca);}return _0x5b6e43['length']===_0x2fdbb8[_0x4bd285(_0x498d64._0x2846af,0x1d2,_0x498d64._0x58b98f,_0x498d64._0x464f79)]&&_0x5b6e43['every'](_0x4dd87d=>_0x2fdbb8[_0x554a01(-0x1ae,-0x20e,-0x158,-0x1eb)](_0x4dd87d));}function isNonNegativeSafeInteger(_0x977888){const _0x5918ef={_0x284810:0x3dd,_0x2f28de:0x375,_0x46a0ac:0x3e8,_0x58b0f9:0x3e9},_0x556410={_0x2e90a5:0x1cd};function _0x35eefc(_0x3e2215,_0x2bc88a,_0x268115,_0x28fd20){return _0x28d661(_0x3e2215,_0x2bc88a-0xe5,_0x268115-0xa2,_0x28fd20- -0x256);}function _0x3bb492(_0x565f01,_0x4b0633,_0xcd28e8,_0x4a90a6){return _0x1ea0ad(_0x4b0633,_0x4a90a6-0x420,_0xcd28e8-_0x556410._0x2e90a5,_0x4a90a6-0x185);}return typeof _0x977888===_0x3bb492(_0x5918ef._0x284810,0x42c,0x35d,0x3aa)&&Number[_0x3bb492(_0x5918ef._0x2f28de,_0x5918ef._0x46a0ac,_0x5918ef._0x58b0f9,0x3a4)](_0x977888)&&_0x977888>=0x0;}function requireModelUsageInteger(_0x37e55c){const _0x49ba79={_0xa8f5af:0x6,_0x37ba0f:0x5d},_0x293792={_0x106e86:0x12e,_0x25a2f0:0x13a};function _0x1da212(_0x112e29,_0x576230,_0x8dae9b,_0x17d582){return _0x1ea0ad(_0x576230,_0x8dae9b- -0x1d,_0x8dae9b-_0x293792._0x106e86,_0x17d582-_0x293792._0x25a2f0);}if(!isNonNegativeSafeInteger(_0x37e55c))throw new ModelUsageOverflowError(_0x1da212(0x5e,-_0x49ba79._0xa8f5af,_0x49ba79._0x37ba0f,0xb2));return _0x37e55c;}function _0x28d661(_0x4f5873,_0x4fcbac,_0x440cac,_0x448555){return _0x3bcc(_0x448555-0x83,_0x4f5873);}function addModelUsageInteger(_0x59d459,_0x25fa36){return requireModelUsageInteger(_0x59d459+_0x25fa36);}function emptyModelUsageTotals(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'totalModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function isModelUsageTotals(_0x41d4ef){const _0x16923f={_0x2a0ccd:0x256,_0x1f0daa:0x209,_0x1d9cc5:0x27d,_0x388383:0x205,_0xf4fcab:0x2f2,_0x440b6a:0x190,_0x158fca:0x1e3,_0xea72c2:0x144,_0x16167e:0xf8,_0x128e15:0x57,_0x41e9a9:0x2d5,_0x59f4d8:0x340,_0x51cf96:0x18d,_0x54f48f:0x1cc,_0x3db98f:0x2a4,_0x44d7ef:0x297,_0x4caf00:0x26d,_0x3dd8d9:0x19e,_0x4d9424:0x212,_0x15f745:0x1a1,_0x1fc7fd:0x220,_0x3b18df:0x2b2,_0x58a61d:0x1d0,_0x49d4f7:0x11a,_0x49c652:0x1ee};if(!hasExactKeys(_0x41d4ef,MODEL_USAGE_TOTAL_KEYS))return![];function _0x1ad6c3(_0x175438,_0x5ed98c,_0x413e24,_0x27c11f){return _0x28d661(_0x27c11f,_0x5ed98c-0x16c,_0x413e24-0x50,_0x413e24- -0x399);}for(const _0x43ff6a of MODEL_USAGE_TOTAL_KEYS){if(_0x43ff6a===_0x1ad6c3(-0x17e,-_0x16923f._0x2a0ccd,-0x22d,-_0x16923f._0x1f0daa))continue;if(!isNonNegativeSafeInteger(_0x41d4ef[_0x43ff6a]))return![];}function _0x243b57(_0x2cef4b,_0x372414,_0x49437f,_0x1b6b81){return _0x28d661(_0x1b6b81,_0x372414-0xfd,_0x49437f-0xd6,_0x2cef4b- -0x3e9);}if(typeof _0x41d4ef[_0x243b57(-_0x16923f._0x1d9cc5,-_0x16923f._0x388383,-0x1f6,-_0x16923f._0xf4fcab)]!==_0x1ad6c3(-_0x16923f._0x440b6a,-_0x16923f._0x158fca,-0x1bb,-0x22b))return![];const _0x50b4d7=_0x41d4ef;return _0x50b4d7[_0x1ad6c3(-_0x16923f._0xea72c2,-0x156,-_0x16923f._0x16167e,-_0x16923f._0x128e15)]===_0x50b4d7['totalInputTokens']+_0x50b4d7[_0x243b57(-0x2a4,-_0x16923f._0x41e9a9,-_0x16923f._0x59f4d8,-0x2bf)]&&_0x50b4d7[_0x1ad6c3(-0x27d,-_0x16923f._0x51cf96,-_0x16923f._0x54f48f,-0x114)]<=_0x50b4d7[_0x243b57(-_0x16923f._0x3db98f,-_0x16923f._0x44d7ef,-0x290,-0x316)]&&_0x50b4d7[_0x1ad6c3(-_0x16923f._0x4caf00,-_0x16923f._0x3dd8d9,-0x1d9,-_0x16923f._0x4d9424)]<=_0x50b4d7[_0x243b57(-0x220,-_0x16923f._0x15f745,-0x288,-0x2da)]&&_0x50b4d7['reportedCostCallCount']<=_0x50b4d7[_0x243b57(-_0x16923f._0x1fc7fd,-0x1bd,-_0x16923f._0x3b18df,-0x291)]&&_0x50b4d7['estimatedCostCallCount']<=_0x50b4d7[_0x1ad6c3(-0x1a4,-0x1fb,-_0x16923f._0x58a61d,-_0x16923f._0x49d4f7)]&&_0x50b4d7[_0x1ad6c3(-0x2b1,-0x199,-0x223,-0x222)]<=_0x50b4d7[_0x1ad6c3(-0x1eb,-0x1b7,-0x1d0,-0x1b1)]&&_0x50b4d7['historicalMetricsComplete']===(_0x50b4d7[_0x1ad6c3(-0x278,-0x293,-0x20b,-_0x16923f._0x49c652)]===0x0);}function isSubagentReportMeta(_0x571a02){const _0x270a62={_0x5dd7c9:0x1aa,_0x3c0e5f:0x226,_0x58bcc8:0x26f,_0x47b7f1:0x174,_0x3086bf:0x205,_0x3d18d2:0x294,_0x3f4335:0x1aa,_0x4cf1af:0x2c5,_0x51b09c:0x1dd,_0x5cbe62:0x19e,_0x24387e:0x19b,_0x2ce312:0x218,_0x257e36:0x1e8,_0x10ac4e:0x206,_0x399665:0x16b,_0x5723bb:0x1bc,_0x1612df:0x155,_0x16c0e3:0x14d,_0x205f6f:0x175,_0x469fbe:0x1de,_0x1c25e1:0x8e,_0x585f39:0x186,_0x21ca39:0x13f,_0x28841b:0x1c0,_0x312315:0x2fa,_0x2c5412:0x271,_0x221735:0x9c,_0x5e2468:0x12c,_0x55075a:0x199,_0x636b97:0xba,_0x33e7d1:0x24f,_0xb4c4fc:0x26c,_0x2df941:0x2c1,_0x5bb508:0x26c,_0x3c31e8:0x21d},_0x5f1c83={_0x23b559:0x1b1},_0x32a262={_0x5b37a4:0xd4};if(!hasExactKeys(_0x571a02,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x571a02['agentId']!==_0x27ed65(-0xea,-_0x270a62._0x5dd7c9,-0x1b9,-0x23e)||_0x571a02[_0x2587dc(-0x1f0,-_0x270a62._0x3c0e5f,-0x290,-_0x270a62._0x58bcc8)][_0x27ed65(-0x12c,-0x1e5,-0x17d,-_0x270a62._0x47b7f1)]===0x0)return![];if(typeof _0x571a02[_0x2587dc(-_0x270a62._0x3086bf,-_0x270a62._0x58bcc8,-_0x270a62._0x3d18d2,-0x23a)]!==_0x27ed65(-0x230,-_0x270a62._0x3f4335,-0x22a,-0x11f)||_0x571a02[_0x27ed65(-_0x270a62._0x4cf1af,-0x20b,-_0x270a62._0x51b09c,-_0x270a62._0x5cbe62)]['length']===0x0)return![];if(typeof _0x571a02[_0x2587dc(-_0x270a62._0x24387e,-0x110,-0x1bc,-_0x270a62._0x2ce312)]!==_0x2587dc(-_0x270a62._0x257e36,-0x1c4,-0x233,-_0x270a62._0x10ac4e)||_0x571a02[_0x2587dc(-0x1d8,-_0x270a62._0x399665,-_0x270a62._0x5723bb,-0x102)]['length']===0x0)return![];if(_0x571a02[_0x27ed65(-0x1da,-_0x270a62._0x1612df,-_0x270a62._0x16c0e3,-0xa4)]!=='completed'&&_0x571a02[_0x2587dc(-_0x270a62._0x205f6f,-0x1fb,-_0x270a62._0x469fbe,-0x277)]!==_0x27ed65(-0x5a,-0x113,-_0x270a62._0x1c25e1,-_0x270a62._0x585f39)&&_0x571a02[_0x27ed65(-_0x270a62._0x21ca39,-_0x270a62._0x1612df,-0x104,-_0x270a62._0x28841b)]!=='aborted')return![];if(!isModelUsageTotals(_0x571a02[_0x2587dc(-_0x270a62._0x312315,-0x21b,-0x26c,-_0x270a62._0x2c5412)]))return![];function _0x2587dc(_0x49bd5b,_0x3cdc8b,_0x534896,_0x1425c6){return _0x28d661(_0x3cdc8b,_0x3cdc8b-0x175,_0x534896-_0x32a262._0x5b37a4,_0x534896- -0x3ed);}if(!isModelUsageTotals(_0x571a02[_0x27ed65(-_0x270a62._0x221735,-_0x270a62._0x5e2468,-_0x270a62._0x55075a,-_0x270a62._0x636b97)]))return![];function _0x27ed65(_0x235217,_0xda3174,_0x57078e,_0xdf41ec){return _0x1ea0ad(_0x57078e,_0xda3174- -_0x5f1c83._0x23b559,_0x57078e-0x29,_0xdf41ec-0x1e9);}return _0x571a02[_0x2587dc(-_0x270a62._0x33e7d1,-0x2ce,-_0x270a62._0xb4c4fc,-0x2e6)]['historicalMetricsComplete']&&_0x571a02[_0x2587dc(-_0x270a62._0x2df941,-0x313,-_0x270a62._0x5bb508,-0x31a)][_0x2587dc(-_0x270a62._0x3c31e8,-0x2f0,-0x25f,-0x200)]===0x0;}function addModelUsageTotals(_0x2f4870,_0x3d175a){const _0x4b847b={_0x1edc54:0x1ce,_0x1128ce:0x137,_0xf3662d:0x235,_0x244201:0x1e8,_0x2dd3b6:0x2e6,_0x311bc0:0x23d,_0x20ade9:0x20b,_0x187389:0x281,_0x5cb089:0x2ef,_0x2568dc:0x282,_0xcb8eca:0x26f,_0x39fb65:0x3b9,_0x2038fc:0x27a,_0x1fdf9b:0x2fb,_0x2360d2:0x1d4,_0x12c247:0x13d,_0x53416c:0x1d8,_0x97b342:0x1a6,_0x1e48a6:0x1a8,_0x5e846e:0x26e,_0x3e9f8d:0x1ea,_0x2e3838:0x1d6,_0x34f213:0x13e,_0x2ac7d0:0x288,_0x530cf7:0x281,_0x4c2b45:0x304,_0x435d94:0x161,_0x546d7a:0x227,_0x39c022:0x21e,_0x3848a4:0x234,_0x264827:0x247,_0x2830f8:0x2d1,_0x590b41:0x29c,_0x5a6010:0x2b8,_0x4bbfbd:0x2db,_0x29badb:0x303,_0x114af6:0x30d,_0x7b6286:0x338,_0x5e3ec1:0x330,_0x494deb:0x238,_0x1b288e:0x2a6},_0x580496={_0x42a599:0x57,_0x5355d9:0x4e};function _0x28462b(_0x33cfa1,_0x3aa6c9,_0x5778fd,_0x17a43d){return _0x1ea0ad(_0x5778fd,_0x17a43d- -0x281,_0x5778fd-_0x580496._0x42a599,_0x17a43d-_0x580496._0x5355d9);}function _0x43bd7a(_0x7d58ac,_0x17d020,_0x391b26,_0x4d54aa){return _0x28d661(_0x4d54aa,_0x17d020-0x1a2,_0x391b26-0x1f0,_0x7d58ac- -0x447);}return{'totalTokens':addModelUsageInteger(_0x2f4870[_0x43bd7a(-0x1a6,-0x1e5,-_0x4b847b._0x1edc54,-_0x4b847b._0x1128ce)],_0x3d175a['totalTokens']),'totalInputTokens':addModelUsageInteger(_0x2f4870[_0x28462b(-_0x4b847b._0xf3662d,-_0x4b847b._0x244201,-_0x4b847b._0x2dd3b6,-_0x4b847b._0x311bc0)],_0x3d175a[_0x43bd7a(-0x250,-0x2fe,-0x2fd,-_0x4b847b._0x20ade9)]),'totalOutputTokens':addModelUsageInteger(_0x2f4870[_0x28462b(-0x235,-_0x4b847b._0x187389,-0x2d3,-_0x4b847b._0x5cb089)],_0x3d175a[_0x43bd7a(-0x302,-_0x4b847b._0x2568dc,-_0x4b847b._0xcb8eca,-_0x4b847b._0x39fb65)]),'totalReasoningTokens':addModelUsageInteger(_0x2f4870[_0x28462b(-0x209,-0x2dc,-0x29d,-0x267)],_0x3d175a[_0x43bd7a(-_0x4b847b._0x2038fc,-_0x4b847b._0x1fdf9b,-0x320,-0x2c0)]),'requestCount':addModelUsageInteger(_0x2f4870[_0x28462b(-0x271,-_0x4b847b._0x2360d2,-0x1f8,-0x274)],_0x3d175a['requestCount']),'modelCallCount':addModelUsageInteger(_0x2f4870['modelCallCount'],_0x3d175a['modelCallCount']),'totalModelTimeMs':addModelUsageInteger(_0x2f4870[_0x28462b(-0x16c,-_0x4b847b._0x12c247,-_0x4b847b._0x53416c,-_0x4b847b._0x97b342)],_0x3d175a[_0x43bd7a(-0x1b9,-0x1fb,-_0x4b847b._0x1e48a6,-0x248)]),'totalCostUsdTicks':addModelUsageInteger(_0x2f4870[_0x28462b(-0x22d,-0x26c,-0x1dd,-_0x4b847b._0x5e846e)],_0x3d175a[_0x28462b(-0x20b,-_0x4b847b._0x3e9f8d,-0x2d9,-_0x4b847b._0x5e846e)]),'totalReportedCostUsdTicks':addModelUsageInteger(_0x2f4870[_0x28462b(-0x266,-0x12a,-0x246,-_0x4b847b._0x2e3838)],_0x3d175a[_0x28462b(-0x26b,-0x23a,-_0x4b847b._0x34f213,-0x1d6)]),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x2f4870[_0x43bd7a(-_0x4b847b._0x2ac7d0,-0x292,-_0x4b847b._0x530cf7,-_0x4b847b._0x4c2b45)],_0x3d175a['totalEstimatedCostUsdTicks']),'reportedCostCallCount':addModelUsageInteger(_0x2f4870[_0x28462b(-0x2bc,-_0x4b847b._0x435d94,-_0x4b847b._0x546d7a,-_0x4b847b._0x20ade9)],_0x3d175a[_0x43bd7a(-_0x4b847b._0x39c022,-_0x4b847b._0x3848a4,-0x189,-_0x4b847b._0x2038fc)]),'estimatedCostCallCount':addModelUsageInteger(_0x2f4870[_0x28462b(-_0x4b847b._0x264827,-0x28c,-0x1c5,-0x241)],_0x3d175a['estimatedCostCallCount']),'unpricedModelCallCount':addModelUsageInteger(_0x2f4870['unpricedModelCallCount'],_0x3d175a[_0x43bd7a(-_0x4b847b._0x2830f8,-_0x4b847b._0x590b41,-_0x4b847b._0x5a6010,-0x29b)]),'historicalMetricsComplete':_0x2f4870[_0x43bd7a(-_0x4b847b._0x4bbfbd,-0x307,-0x309,-_0x4b847b._0x29badb)]&&_0x3d175a[_0x43bd7a(-_0x4b847b._0x4bbfbd,-_0x4b847b._0x114af6,-0x392,-_0x4b847b._0x7b6286)],'missingHistoricalModelCallCount':addModelUsageInteger(_0x2f4870['missingHistoricalModelCallCount'],_0x3d175a[_0x28462b(-_0x4b847b._0x5e3ec1,-_0x4b847b._0x494deb,-0x360,-_0x4b847b._0x1b288e)])};}function modelUsageTotalsEqual(_0x2161dc,_0x43cefd){const _0x398cd9={_0xbef464:0x3f5},_0x3414e7={_0x527a51:0x7};function _0x491b31(_0x49e642,_0x2fc92e,_0x3d6faf,_0xe63472){return _0x28d661(_0xe63472,_0x2fc92e-0xbb,_0x3d6faf-_0x3414e7._0x527a51,_0x2fc92e-0x229);}return MODEL_USAGE_TOTAL_KEYS[_0x491b31(0x467,0x42d,_0x398cd9._0xbef464,0x3fc)](_0x340b5b=>_0x2161dc[_0x340b5b]===_0x43cefd[_0x340b5b]);}function modelUsageTotalsFromSnapshot(_0x24558e){const _0x16f9e6={_0x2f48f3:0xee,_0x2dd8fd:0x50,_0x10697b:0x69,_0x298dae:0x84,_0x50de19:0x3e1,_0xa51041:0x361,_0x270b8f:0x3a4,_0xd18eaa:0x31a,_0x1128c8:0x1af,_0x430ffc:0xc4,_0x3a40d8:0x2e0,_0x185ecc:0x425,_0x36ab1b:0x146,_0x2d3b05:0x1d7,_0x62de64:0x34d,_0x599aca:0x3a8,_0x36236d:0x3ef,_0x145c8a:0x333,_0x541e42:0x365,_0x14366f:0x3f6,_0x16fd19:0x3dd,_0x53e884:0x364},_0x54db81={_0x39903a:0x1a,_0x29a03b:0x1d7},_0x418ebb={_0x3aa677:0x157,_0x227915:0x18a},_0x34fd3b={'totalTokens':_0x24558e[_0x5b97fb(-_0x16f9e6._0x2f48f3,_0x16f9e6._0x2dd8fd,-_0x16f9e6._0x10697b,-_0x16f9e6._0x298dae)],'totalInputTokens':_0x24558e[_0x5dbb3f(0x3ce,0x312,0x358,_0x16f9e6._0x50de19)],'totalOutputTokens':_0x24558e[_0x5dbb3f(0x31c,0x2f5,_0x16f9e6._0xa51041,0x265)],'totalReasoningTokens':_0x24558e[_0x5dbb3f(_0x16f9e6._0x270b8f,0x41b,_0x16f9e6._0xd18eaa,0x349)],'requestCount':_0x24558e['requestCount'],'modelCallCount':_0x24558e['modelCallCount'],'totalModelTimeMs':_0x24558e['totalModelTimeMs'],'totalCostUsdTicks':_0x24558e[_0x5b97fb(-_0x16f9e6._0x1128c8,-0x1e8,-0x144,-_0x16f9e6._0x430ffc)],'totalReportedCostUsdTicks':_0x24558e['totalReportedCostUsdTicks'],'totalEstimatedCostUsdTicks':_0x24558e[_0x5dbb3f(0x396,_0x16f9e6._0x3a40d8,0x2ea,0x3ba)],'reportedCostCallCount':_0x24558e[_0x5dbb3f(0x400,0x489,_0x16f9e6._0x185ecc,0x3da)],'estimatedCostCallCount':_0x24558e[_0x5b97fb(-0x5b,-_0x16f9e6._0x36ab1b,-0x117,-_0x16f9e6._0x2d3b05)],'unpricedModelCallCount':_0x24558e[_0x5dbb3f(_0x16f9e6._0x62de64,_0x16f9e6._0x599aca,0x2fa,0x388)],'historicalMetricsComplete':_0x24558e[_0x5dbb3f(0x343,_0x16f9e6._0x36236d,0x2f3,_0x16f9e6._0x145c8a)],'missingHistoricalModelCallCount':_0x24558e[_0x5dbb3f(_0x16f9e6._0x541e42,_0x16f9e6._0x14366f,0x2d1,0x3f6)]};function _0x5b97fb(_0x16a2a9,_0x5625c5,_0x29674d,_0x531f3d){return _0x1ea0ad(_0x5625c5,_0x29674d- -_0x418ebb._0x3aa677,_0x29674d-0xb1,_0x531f3d-_0x418ebb._0x227915);}function _0x5dbb3f(_0x4d3f4b,_0x56a89c,_0x2fe3ad,_0x4018b9){return _0x28d661(_0x2fe3ad,_0x56a89c-_0x54db81._0x39903a,_0x2fe3ad-0x18e,_0x4d3f4b-_0x54db81._0x29a03b);}for(const _0x236326 of MODEL_USAGE_TOTAL_KEYS){if(_0x236326===_0x5dbb3f(0x343,_0x16f9e6._0x16fd19,_0x16f9e6._0x53e884,0x380))continue;requireModelUsageInteger(_0x34fd3b[_0x236326]);}return _0x34fd3b;}function modelUsageTotalsFromCall(_0x4628b3){const _0x106f73={_0x25f14a:0x555,_0x5d7390:0x49a,_0x3a0737:0x3a0,_0x3c8077:0x2cf,_0x4d38af:0x2ee,_0x5f2e07:0x16f,_0x9ca734:0x177,_0x1a5119:0xeb,_0x39405c:0x6f,_0x31a55d:0x110,_0x2c9264:0x180,_0x5a4b47:0x186,_0x7808c6:0x154,_0x53c2fe:0x3f3,_0x45a6b7:0x3bf,_0x319ea6:0x4a7,_0x428b22:0x469,_0x42e5a7:0x42a,_0x233feb:0xd2,_0x1ab250:0x5e,_0x352d24:0xb6},_0x3980ae={_0x581755:0x130},_0x5a6e35={_0x34fcba:0x1a7,_0x8dc529:0xc0,_0x52df67:0x1f4},_0x37ab94=_0x4628b3[_0x22d3c1(_0x106f73._0x25f14a,_0x106f73._0x5d7390,0x499,0x45d)],_0x1204c0=requireModelUsageInteger(_0x37ab94[_0x22d3c1(_0x106f73._0x3a0737,_0x106f73._0x3c8077,0x31d,_0x106f73._0x4d38af)]),_0x3da8de=requireModelUsageInteger(_0x37ab94[_0x317e9f(-0x6a,-_0x106f73._0x5f2e07,-_0x106f73._0x9ca734,-_0x106f73._0x1a5119)]),_0x42aacb=Math[_0x317e9f(-_0x106f73._0x39405c,-0x12f,-0xd3,-_0x106f73._0x31a55d)](requireModelUsageInteger(_0x37ab94['reasoningTokens']??0x0),_0x3da8de);function _0x22d3c1(_0x3b150e,_0x576fea,_0x3d3798,_0x30f9bd){return _0x28d661(_0x576fea,_0x576fea-_0x5a6e35._0x34fcba,_0x3d3798-_0x5a6e35._0x8dc529,_0x3d3798-_0x5a6e35._0x52df67);}const _0x3466d4=requireModelUsageInteger(_0x4628b3[_0x317e9f(-_0x106f73._0x2c9264,-_0x106f73._0x5a4b47,-0xfe,-_0x106f73._0x7808c6)]),_0x53a411=addModelUsageInteger(_0x1204c0,_0x3da8de),_0x3228c9=_0x37ab94[_0x22d3c1(0x483,0x3f6,_0x106f73._0x53c2fe,_0x106f73._0x45a6b7)]?.[_0x22d3c1(_0x106f73._0x319ea6,_0x106f73._0x428b22,0x46d,_0x106f73._0x42e5a7)],_0x1565c6=_0x37ab94[_0x317e9f(-0xac,-_0x106f73._0x233feb,-_0x106f73._0x1ab250,-0x4d)]?.['amountUsdTicks'],_0x384017=_0x3228c9===void 0x0?void 0x0:requireModelUsageInteger(_0x3228c9),_0x16f86c=_0x1565c6===void 0x0?void 0x0:requireModelUsageInteger(_0x1565c6),_0x2900cb=_0x384017??_0x16f86c,_0xfe7c24={...emptyModelUsageTotals(),'totalTokens':_0x53a411,'totalInputTokens':_0x1204c0,'totalOutputTokens':_0x3da8de,'totalReasoningTokens':_0x42aacb,'requestCount':_0x4628b3[_0x22d3c1(0x3e8,0x45b,0x3b0,0x3e9)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x3466d4,'totalCostUsdTicks':_0x2900cb??0x0,'totalReportedCostUsdTicks':_0x384017??0x0,'totalEstimatedCostUsdTicks':_0x16f86c??0x0,'reportedCostCallCount':_0x384017===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x16f86c===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x384017===void 0x0&&_0x16f86c===void 0x0?0x1:0x0};function _0x317e9f(_0x31d98b,_0x28cc24,_0x321f01,_0x3d58cb){return _0x1ea0ad(_0x28cc24,_0x3d58cb- -_0x3980ae._0x581755,_0x321f01-0x5b,_0x3d58cb-0x135);}if(!isModelUsageTotals(_0xfe7c24))throw new ModelUsageOverflowError(_0x317e9f(-0xe3,-0xbd,-0x1,-_0x106f73._0x352d24));return _0xfe7c24;}function modelUsageTotalsFromHistory(_0x3f2085,_0x3ab7c4){const _0x5a1090={_0x245d81:0x4d9,_0x50c525:0x4a1,_0x4487e7:0x22f,_0x582576:0x23d,_0x541afe:0x1dd},_0x9f9c40={_0x2280c9:0x1a7,_0x2c1a2e:0x50,_0x254cf3:0x34a},_0x2d4359={_0x375b35:0x85};function _0x453417(_0x17b41e,_0x85650e,_0x374d44,_0xda3bdd){return _0x28d661(_0x374d44,_0x85650e-_0x2d4359._0x375b35,_0x374d44-0xa,_0x85650e-0x13);}function _0xd95d22(_0x2fd324,_0x6be543,_0x13a470,_0x30b147){return _0x28d661(_0x13a470,_0x6be543-_0x9f9c40._0x2280c9,_0x13a470-_0x9f9c40._0x2c1a2e,_0x6be543-_0x9f9c40._0x254cf3);}let _0xba2bef=emptyModelUsageTotals();for(const _0x33514c of _0x3f2085){_0xba2bef=addModelUsageTotals(_0xba2bef,modelUsageTotalsFromCall({'usage':_0x33514c[_0x453417(0x2a5,0x2b8,0x2d0,0x314)],'modelTimeMs':_0x33514c[_0xd95d22(0x455,_0x5a1090._0x245d81,_0x5a1090._0x50c525,0x4d4)],'completesRequest':_0x33514c[_0x453417(_0x5a1090._0x4487e7,0x1cf,_0x5a1090._0x582576,_0x5a1090._0x541afe)]}));}const _0x1a0e4b=requireModelUsageInteger(_0x3ab7c4);return{..._0xba2bef,'historicalMetricsComplete':_0x1a0e4b===0x0,'missingHistoricalModelCallCount':_0x1a0e4b};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x124521,_0x37e5cb){const _0x10e453={_0x15f153:0x53,_0x21bbd7:0xaa,_0x166ac6:0x130,_0x2a5586:0x1a2,_0x493180:0x1aa,_0x438261:0x20c,_0x5dbd90:0x1d6,_0x56854b:0x179,_0x14e83b:0x1c7,_0x5cfc7f:0x20d,_0x7d45a9:0x19d,_0x59462:0x158,_0xc14fe1:0x271,_0x3187db:0x1db,_0x21d5a6:0x2b7,_0x4fa7ba:0xf5,_0x50cbad:0xc1,_0x417d27:0x146,_0x1630b0:0x1f6,_0x557902:0x1bc,_0x140007:0x17e},_0x1acc0c={_0x2957a9:0xde},_0x31abc8={_0xaac562:0xe3,_0x5ab3df:0xe8,_0x443246:0xcf};function _0x279ba1(_0x34f40c,_0xe641b7,_0x2354e7,_0x547ff8){return _0x28d661(_0xe641b7,_0xe641b7-_0x31abc8._0xaac562,_0x2354e7-_0x31abc8._0x5ab3df,_0x34f40c- -_0x31abc8._0x443246);}const _0x138283=modelUsageTotalsFromCall(_0x37e5cb),_0x4dff63=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x124521),_0x138283),_0xdb0d85=_0x37e5cb[_0x22bc02(-0x119,-0xcf,-_0x10e453._0x15f153,-_0x10e453._0x21bbd7)][_0x279ba1(_0x10e453._0x166ac6,_0x10e453._0x2a5586,0x10d,0x162)]?.[_0x279ba1(_0x10e453._0x493180,0x13b,0x100,_0x10e453._0x438261)],_0x501e19=_0x37e5cb[_0x279ba1(_0x10e453._0x5dbd90,0x288,_0x10e453._0x56854b,0x1de)][_0x279ba1(_0x10e453._0x14e83b,0x10f,0x25d,_0x10e453._0x5cfc7f)]?.[_0x279ba1(0x1aa,0x1dd,0x1fa,_0x10e453._0x7d45a9)],{currentReportedCostUsdTicks:_0x30e1e3,currentEstimatedCostUsdTicks:_0x5671fa,..._0x22b203}=_0x124521;function _0x22bc02(_0x12cea3,_0x40864c,_0x318698,_0x315fc4){return _0x1ea0ad(_0x318698,_0x315fc4- -0x19c,_0x318698-0x165,_0x315fc4-_0x1acc0c._0x2957a9);}return{..._0x22b203,..._0x4dff63,'currentTokens':_0x138283[_0x279ba1(0x1d2,0x141,0x1a3,0x20b)],'currentInputTokens':_0x138283[_0x22bc02(-0xb0,-0x113,-0xbf,-_0x10e453._0x59462)],'currentOutputTokens':_0x138283[_0x22bc02(-_0x10e453._0xc14fe1,-_0x10e453._0x3187db,-_0x10e453._0x21d5a6,-0x20a)],'currentReasoningTokens':_0x138283['totalReasoningTokens'],'currentModelTimeMs':_0x138283[_0x22bc02(-0xdb,-0x132,-_0x10e453._0x4fa7ba,-_0x10e453._0x50cbad)],..._0x22b203['contextWindowLimit']&&_0x138283['totalTokens']>0x0?{'contextWindowUsage':_0x138283[_0x22bc02(-_0x10e453._0x417d27,-0x49,-0xef,-0xae)]/_0x22b203[_0x22bc02(-_0x10e453._0x1630b0,-0x1c4,-_0x10e453._0x557902,-_0x10e453._0x140007)]}:{},..._0xdb0d85!==void 0x0?{'currentReportedCostUsdTicks':_0xdb0d85}:{},..._0x501e19!==void 0x0?{'currentEstimatedCostUsdTicks':_0x501e19}:{}};}function mergeExternalUsage(_0x32b8e2,_0x4599ba){const _0x5ca756={_0x5e6811:0x165,_0x113a39:0xf1,_0x4539e8:0xc4},_0x3eac42={_0x63ad82:0xdd,_0x223987:0x158,_0xc9aed3:0x147};function _0x315dfa(_0x513218,_0x17acdd,_0x61015f,_0x2846be){return _0x28d661(_0x17acdd,_0x17acdd-_0x3eac42._0x63ad82,_0x61015f-_0x3eac42._0x223987,_0x2846be- -_0x3eac42._0xc9aed3);}if(!isModelUsageTotals(_0x4599ba))throw new TypeError(_0x315dfa(_0x5ca756._0x5e6811,_0x5ca756._0x113a39,0x10d,_0x5ca756._0x4539e8));const _0x477eb0=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x32b8e2),_0x4599ba);return{..._0x32b8e2,..._0x477eb0};}function createAgentMetrics(_0x54ac75={}){const _0xdb92c4={_0x295ae5:0x58f,_0x18c56d:0x57c},_0x43a81f={_0x187aff:0x3c4,_0x5ef5ee:0x42c,_0x3161b0:0x49b,_0x545d7c:0x41e,_0x16b8bf:0x326,_0x213ce3:0x2f7,_0x1ad3a1:0x2d2,_0x5157be:0x31a},_0xf37f3f={_0x3a4c39:0x380,_0x9f8276:0x30c,_0x10a47b:0x2bd,_0x18dfb6:0x220,_0x37b1be:0x29e,_0x465676:0x2f7,_0x2e5023:0x1f4,_0x43c027:0x361,_0x57083a:0x40b,_0x28afef:0x316,_0x400941:0x2a1,_0x4b338e:0x329,_0x3ca61d:0x3dc,_0x38f38e:0x2fd,_0x29b50c:0x384,_0x1a15c3:0x324,_0x4219ec:0x329,_0x1d232e:0x322,_0x2ee084:0x359,_0x29fb05:0x359,_0x4e3412:0x341};let _0x408f28=createEmptySnapshot();const _0x50fd45=new Set();let _0x57f89c;const _0x11d258=()=>{const _0x1e52bb={..._0x408f28};for(const _0x4c9ef5 of _0x50fd45)_0x4c9ef5(_0x1e52bb);};return{'getSnapshot'(){return{..._0x408f28};},'recordEvent'(_0xa42f5){if(_0xa42f5['type']===_0x1ff8cb(0x411,_0xf37f3f._0x3a4c39,0x3c0,_0xf37f3f._0x9f8276)){_0x57f89c=Date[_0x1a05ef(_0xf37f3f._0x10a47b,0x2be,0x234,0x1ed)]();const _0x4ef576=_0x54ac75[_0x1ff8cb(_0xf37f3f._0x18dfb6,_0xf37f3f._0x37b1be,_0xf37f3f._0x465676,_0xf37f3f._0x2e5023)]?.(_0xa42f5[_0x1a05ef(0x31b,0x333,0x27c,0x1f6)]);_0x4ef576!==void 0x0&&(_0x408f28={..._0x408f28,'contextWindowLimit':_0x4ef576},_0x11d258());return;}if(_0xa42f5[_0x1ff8cb(_0xf37f3f._0x43c027,0x378,0x3af,_0xf37f3f._0x57083a)]===_0x1ff8cb(0x35a,0x375,0x324,_0xf37f3f._0x28afef)){const _0x3af260=_0x57f89c===void 0x0?0x0:Date[_0x1ff8cb(0x1e1,0x283,0x2c2,0x25f)]()-_0x57f89c;_0x57f89c=void 0x0,_0x408f28=applyModelCall(_0x408f28,{'usage':_0xa42f5[_0x1a05ef(_0xf37f3f._0x400941,0x3f4,0x337,0x345)]['usage'],'modelTimeMs':_0xa42f5['modelTimeMs']??_0x3af260}),_0x11d258();return;}function _0x1ff8cb(_0x16ebc2,_0x394ffe,_0x24d58f,_0x297ec5){return _0x3bcc(_0x394ffe-0x1ae,_0x24d58f);}if(_0xa42f5[_0x1a05ef(0x276,0x387,_0xf37f3f._0x4b338e,_0xf37f3f._0x3ca61d)]===_0x1ff8cb(0x378,_0xf37f3f._0x38f38e,0x377,_0xf37f3f._0x29b50c)){_0x408f28={..._0x408f28,'toolCallCount':_0x408f28[_0x1a05ef(0x2e7,_0xf37f3f._0x38f38e,_0xf37f3f._0x1a15c3,0x2eb)]+0x1},_0x11d258();return;}function _0x1a05ef(_0x20929e,_0x289265,_0x3ee596,_0x165ac6){return _0x3bcc(_0x3ee596-0x15f,_0x289265);}_0xa42f5[_0x1a05ef(0x2b7,0x3a3,_0xf37f3f._0x4219ec,_0xf37f3f._0x1d232e)]===_0x1a05ef(_0xf37f3f._0x2ee084,0x342,_0xf37f3f._0x29fb05,_0xf37f3f._0x4e3412)&&(_0x408f28={..._0x408f28,'requestCount':addModelUsageInteger(_0x408f28['requestCount'],0x1)},_0x11d258());},'recordExternalUsage'(_0x83c5f7){const _0x612813=mergeExternalUsage(_0x408f28,_0x83c5f7);_0x408f28=_0x612813,_0x11d258();},'reset'(){_0x408f28=createEmptySnapshot(),_0x57f89c=void 0x0,_0x11d258();},'restore'(_0x3674b){const _0x25baf7={_0x278882:0x2a6};function _0x5e3e43(_0x25c9e9,_0x2b6777,_0x3050dc,_0x36b33e){return _0x3bcc(_0x25c9e9-0x1d7,_0x36b33e);}let _0x45db23=createEmptySnapshot();for(const _0xf77277 of _0x3674b[_0xb27da9(0x3ed,0x339,0x34b,0x396)]){_0x45db23=applyModelCall(_0x45db23,{'usage':_0xf77277['usage'],'modelTimeMs':_0xf77277['modelTimeMs'],'completesRequest':_0xf77277[_0x5e3e43(0x310,0x253,0x2d5,_0x43a81f._0x187aff)]});}const _0x4bce1a=requireModelUsageInteger(_0x3674b[_0xb27da9(_0x43a81f._0x5ef5ee,0x51a,_0x43a81f._0x3161b0,_0x43a81f._0x545d7c)]);_0x45db23={..._0x45db23,'toolCallCount':_0x3674b['toolCallCount'],'historicalMetricsComplete':_0x4bce1a===0x0,'missingHistoricalModelCallCount':_0x4bce1a};let _0x3a698e=_0x45db23;if(_0x3674b[_0x5e3e43(0x2d2,_0x43a81f._0x16b8bf,_0x43a81f._0x213ce3,0x38e)]!==void 0x0)try{_0x3a698e=mergeExternalUsage(_0x45db23,_0x3674b[_0x5e3e43(_0x43a81f._0x1ad3a1,_0x43a81f._0x5157be,0x26e,0x286)]);}catch(_0xc2c00a){if(!(_0xc2c00a instanceof ModelUsageOverflowError))throw _0xc2c00a;}_0x408f28=_0x3a698e,_0x57f89c=void 0x0;function _0xb27da9(_0x543c57,_0x57c464,_0x53d9e8,_0x25b6e6){return _0x3bcc(_0x53d9e8-_0x25baf7._0x278882,_0x543c57);}_0x11d258();},'subscribe'(_0x4c2277){return _0x50fd45['add'](_0x4c2277),()=>{function _0x3a471a(_0x5e95f1,_0x2de7fa,_0x4f3416,_0x251bd1){return _0x3bcc(_0x5e95f1-0x39b,_0x4f3416);}_0x50fd45[_0x3a471a(_0xdb92c4._0x295ae5,0x545,0x55a,_0xdb92c4._0x18c56d)](_0x4c2277);};}};}function normalizeExecutionScope(_0x3d758d){const _0x497a2d={_0x14ef9f:0xa9,_0x53cffd:0x1ab,_0x2ced7e:0xc3,_0xb97c70:0x156,_0x327f2f:0xe5,_0x3958c8:0x180},_0x2df0ee={_0x5207d6:0x19c,_0xe8e4e6:0xa0,_0x37ffaf:0x7},_0xb14b46={_0x1b2915:0x277,_0x241d63:0x148};function _0x583fab(_0x5a5930,_0x342de8,_0x38b06a,_0x3ff716){return _0x1ea0ad(_0x342de8,_0x38b06a-_0xb14b46._0x1b2915,_0x38b06a-0x115,_0x3ff716-_0xb14b46._0x241d63);}function _0x42e6ef(_0x13836f,_0xbf6722,_0xdf314d,_0x395685){return _0x28d661(_0xbf6722,_0xbf6722-_0x2df0ee._0x5207d6,_0xdf314d-_0x2df0ee._0xe8e4e6,_0x395685- -_0x2df0ee._0x37ffaf);}return{'agentId':_0x3d758d?.[_0x42e6ef(_0x497a2d._0x14ef9f,_0x497a2d._0x53cffd,_0x497a2d._0x2ced7e,_0x497a2d._0xb97c70)]??'assistant','toolCallPath':[..._0x3d758d?.[_0x42e6ef(_0x497a2d._0x327f2f,_0x497a2d._0x3958c8,0x118,0x14b)]??[]]};}function makeExtensionContext(_0x55072e,_0x46cf3b){return{'state':_0x55072e,'delivery':'model','executionScope':_0x46cf3b};}async function runStage(_0x2ab010,_0x2de175,_0x514e8f,_0x521aec){const _0xbc1d7f={_0x509297:0x351,_0x4b9fc7:0x3dd,_0x297a38:0x39d,_0x460c1b:0x35b,_0x5cf71a:0x301,_0x14a8bc:0x213},_0x4e8ca0={_0x5531af:0x4b,_0xac61a1:0x17c},_0x375785={_0x517951:0x156,_0x5625e1:0x1b5},_0x1f410a=await _0x2ab010[_0xb0b25a(_0xbc1d7f._0x509297,_0xbc1d7f._0x4b9fc7,_0xbc1d7f._0x297a38,_0xbc1d7f._0x460c1b)](_0x2de175,_0x514e8f,_0x521aec);await _0x2ab010[_0x4ce90f(-0x2b8,-0x331,-_0xbc1d7f._0x5cf71a,-_0xbc1d7f._0x14a8bc)](_0x2de175,_0x1f410a,_0x521aec);function _0xb0b25a(_0x30beb7,_0xe01dc,_0x3d4095,_0x2e2a0a){return _0x28d661(_0xe01dc,_0xe01dc-_0x375785._0x517951,_0x3d4095-_0x375785._0x5625e1,_0x30beb7-0x1a8);}function _0x4ce90f(_0x23e551,_0x4aec6e,_0x2613a3,_0x314416){return _0x28d661(_0x314416,_0x4aec6e-_0x4e8ca0._0x5531af,_0x2613a3-_0x4e8ca0._0xac61a1,_0x23e551- -0x469);}return _0x1f410a;}async function emitEvent2(_0x186903,_0xf5ba1c,_0x457ac3){await _0x186903?.(_0xf5ba1c,_0x457ac3);}function replaceToolUseBlocks(_0x2f1a9c,_0x13dd79){const _0x3ebf20={_0x2e94d3:0xb5,_0x40c10a:0x50,_0x3a32f5:0xa3,_0x4791b9:0x15,_0x44d81b:0x51,_0x479cba:0x29},_0x1d0c1a={_0x17595d:0xeb},_0x124324={_0x47829c:0x1e2},_0x452bec={_0x40b81c:0x32,_0xea0ea0:0x14a,_0x1fe841:0x1c7};let _0x25059d=0x0;function _0x1ada3b(_0x559a1f,_0xef0a88,_0x436a2c,_0xca7bbb){return _0x28d661(_0x559a1f,_0xef0a88-_0x452bec._0x40b81c,_0x436a2c-_0x452bec._0xea0ea0,_0x436a2c- -_0x452bec._0x1fe841);}function _0x2dcacd(_0x1fd4da,_0x24a287,_0x570456,_0xa685c2){return _0x28d661(_0xa685c2,_0x24a287-_0x124324._0x47829c,_0x570456-0x28,_0x24a287-0x269);}return{..._0x2f1a9c,'content':_0x2f1a9c[_0x1ada3b(_0x3ebf20._0x2e94d3,-0x49,_0x3ebf20._0x40c10a,_0x3ebf20._0x3a32f5)][_0x1ada3b(_0x3ebf20._0x4791b9,_0x3ebf20._0x44d81b,-_0x3ebf20._0x479cba,0x76)](_0x1aaf27=>{if(_0x1aaf27[_0x3e6646(0x125,0xe2,_0x1d0c1a._0x17595d,0x1a1)]!=='tool_use')return _0x1aaf27;const _0x124b6b=_0x13dd79[_0x25059d];function _0x3e6646(_0x1dda3c,_0x3385df,_0x49a57b,_0x177e23){return _0x2dcacd(_0x1dda3c-0x181,_0x3385df- -0x3d4,_0x49a57b-0x103,_0x177e23);}return _0x25059d+=0x1,structuredClone(_0x124b6b);})};}function createAssistantMessageId(_0x2dff80,_0x1e963b){return _0x2dff80+':assistant:'+_0x1e963b;}function createReasoningMessageId(_0x5d1dc9){const _0x2565fd={_0x2f3d4b:0xef},_0x151a78={_0x27e699:0x3};function _0x1adec3(_0x52cd4c,_0x2b49fa,_0x5f40fd,_0x6c330c){return _0x28d661(_0x52cd4c,_0x2b49fa-_0x151a78._0x27e699,_0x5f40fd-0x8b,_0x2b49fa- -0xc8);}return _0x5d1dc9+_0x1adec3(_0x2565fd._0x2f3d4b,0x155,0x154,0xed);}function withMessageId(_0x19047b,_0x218413){if(_0x19047b['id']===_0x218413)return _0x19047b;return{..._0x19047b,'id':_0x218413};}function createAssistantChunkEvent(_0x41d267,_0x270e7e){const _0x2bab21={_0x4b6cc3:0x408,_0x1c2f17:0x489,_0x5f2848:0x3e5,_0x49888c:0x413,_0x40f34d:0x4a0,_0x296294:0x43a,_0x4f5945:0x47d,_0x547fb6:0x2ae,_0x57c522:0x33e,_0x1c5e0a:0x356,_0x16da76:0x472,_0xb168dc:0x3e1,_0x34c9fc:0x339},_0x3e2413={_0x3dd24d:0x3de},_0xa90b82={_0x486c73:0x5a};if(_0x41d267['type']!==_0x29763b(_0x2bab21._0x4b6cc3,_0x2bab21._0x1c2f17,_0x2bab21._0x5f2848,_0x2bab21._0x49888c))return void 0x0;function _0x9b8c4f(_0x584cff,_0x24daaa,_0x57326a,_0xbdf24b){return _0x28d661(_0x57326a,_0x24daaa-0x1dd,_0x57326a-_0xa90b82._0x486c73,_0x24daaa-0xd1);}if(_0x41d267['text']===void 0x0)return void 0x0;function _0x29763b(_0x34a800,_0x552673,_0x5dfa78,_0x47dafc){return _0x1ea0ad(_0x552673,_0x34a800-_0x3e2413._0x3dd24d,_0x5dfa78-0x50,_0x47dafc-0x19b);}return{'type':_0x29763b(_0x2bab21._0x40f34d,_0x2bab21._0x296294,0x488,_0x2bab21._0x4f5945),'index':_0x41d267['index']??0x0,'messageId':_0x270e7e,'chunk':{'type':_0x9b8c4f(0x2e8,_0x2bab21._0x547fb6,_0x2bab21._0x57c522,_0x2bab21._0x1c5e0a),'index':_0x41d267[_0x29763b(_0x2bab21._0x16da76,_0x2bab21._0xb168dc,0x3eb,0x49e)]??0x0,'text':_0x41d267[_0x9b8c4f(0x28f,0x2cf,0x24f,_0x2bab21._0x34c9fc)]}};}function createToolUseChunkEvent(_0x1df8e7,_0x335ebe){const _0x21baf0={_0x1e09cd:0x15d,_0x1727e5:0xb7,_0x3ac760:0xfd,_0x3823f9:0x2bb,_0x2e5d53:0x103,_0x14d8f7:0x165,_0x356772:0x1f0,_0x9d0a9:0x1dd},_0x5688ba={_0x4b73f9:0x4b,_0x165f0f:0x1a5};function _0x45dc61(_0x362b06,_0xd28bb8,_0x46cd67,_0x2f9c33){return _0x28d661(_0x46cd67,_0xd28bb8-_0x5688ba._0x4b73f9,_0x46cd67-_0x5688ba._0x165f0f,_0x362b06- -0x3f1);}if(_0x1df8e7['type']!==_0x45dc61(-_0x21baf0._0x1e09cd,-_0x21baf0._0x1727e5,-_0x21baf0._0x3ac760,-0x175))return void 0x0;function _0x1ab98a(_0x4108c3,_0x15d889,_0x61d9b6,_0x2e025f){return _0x1ea0ad(_0x61d9b6,_0x2e025f- -0x175,_0x61d9b6-0x190,_0x2e025f-0x137);}return{'type':_0x45dc61(-0x244,-_0x21baf0._0x3823f9,-0x223,-0x2b2),'index':_0x1df8e7['index']??0x0,'messageId':_0x335ebe,'chunk':{'type':'tool_use_delta','id':_0x1df8e7['id']??'','index':_0x1df8e7[_0x45dc61(-0x1aa,-_0x21baf0._0x2e5d53,-0x18a,-0xed)]??0x0,..._0x1df8e7[_0x45dc61(-0x200,-_0x21baf0._0x14d8f7,-0x15b,-0x15e)]!==void 0x0?{'name':_0x1df8e7['name']}:{},..._0x1df8e7[_0x45dc61(-_0x21baf0._0x356772,-_0x21baf0._0x9d0a9,-0x1b9,-0x1e1)]!==void 0x0?{'inputDelta':_0x1df8e7['inputDelta']}:{}}};}function createReasoningChunkEvent(_0x572b70,_0x3458c0){const _0x5a9e32={_0x53ca69:0x277,_0x5389b5:0x1fe,_0x33f34f:0x1fa,_0x164528:0x215,_0x44f48a:0x2ce,_0x1729c9:0x28c,_0x5391f9:0x2aa,_0x384160:0x1ec,_0x195157:0x1e4,_0x45590c:0x34e,_0x3f93f3:0x2d7,_0x50a9e0:0x328,_0x3f91d6:0x2e8,_0x339a1c:0x2ee,_0xee3179:0x2ca,_0x4e5450:0x26d,_0x5e3f42:0x236,_0x5f1ce8:0x260,_0x5f49c4:0x1f1,_0xaa3d55:0x253,_0x4b62e6:0x224,_0x5474cc:0x23a,_0xa871d1:0x272,_0x34b637:0x1cb,_0x36875d:0x20a,_0x2b7126:0x24f,_0x2a804a:0x291,_0x16cb5e:0x35c,_0x2be9b2:0x149,_0x1332ec:0x1eb,_0x5e7826:0x2d9,_0x1e1761:0x244,_0x3769d7:0x381,_0x547096:0x1f2},_0x195e2b={_0x48245d:0x1b5,_0xd7a3e7:0x1be},_0x46c16b={_0x117b67:0x5e,_0x25f2da:0x137};function _0x439b79(_0x321e99,_0x5cb00c,_0x40450b,_0x2d7f39){return _0x28d661(_0x40450b,_0x5cb00c-_0x46c16b._0x117b67,_0x40450b-_0x46c16b._0x25f2da,_0x2d7f39-0x53);}function _0x3145d0(_0x59d90a,_0x3fe44d,_0x1c57a2,_0x381dbc){return _0x1ea0ad(_0x3fe44d,_0x1c57a2- -0x2a9,_0x1c57a2-_0x195e2b._0x48245d,_0x381dbc-_0x195e2b._0xd7a3e7);}switch(_0x572b70[_0x3145d0(-_0x5a9e32._0x53ca69,-_0x5a9e32._0x5389b5,-0x20f,-0x2a9)]){case'anthropic_thinking_delta':return{'type':'reasoning_chunk','index':_0x572b70[_0x3145d0(-0x232,-_0x5a9e32._0x33f34f,-_0x5a9e32._0x164528,-_0x5a9e32._0x44f48a)],'messageId':_0x3458c0,'chunk':{'type':'anthropic_thinking_delta','index':_0x572b70[_0x3145d0(-0x22e,-_0x5a9e32._0x1729c9,-_0x5a9e32._0x164528,-_0x5a9e32._0x5391f9)]??0x0,'thinking':_0x572b70[_0x3145d0(-0x267,-_0x5a9e32._0x384160,-0x219,-_0x5a9e32._0x195157)]??''},'text':_0x572b70[_0x3145d0(-0x274,-0x24f,-0x219,-0x299)]??''};case'openai_reasoning_delta':return{'type':'reasoning_chunk','index':_0x572b70[_0x439b79(0x294,_0x5a9e32._0x45590c,0x230,_0x5a9e32._0x3f93f3)],'messageId':_0x3458c0,'chunk':{'type':_0x439b79(_0x5a9e32._0x50a9e0,0x34c,_0x5a9e32._0x3f91d6,_0x5a9e32._0x339a1c),'contentIndex':_0x572b70[_0x439b79(0x387,_0x5a9e32._0xee3179,0x33b,0x2d7)]??0x0,'delta':_0x572b70[_0x439b79(_0x5a9e32._0x4e5450,0x1f0,_0x5a9e32._0x5e3f42,_0x5a9e32._0x5f1ce8)]??'','itemId':_0x572b70[_0x3145d0(-0x1ed,-_0x5a9e32._0x5f49c4,-_0x5a9e32._0xaa3d55,-_0x5a9e32._0x4b62e6)]??'','outputIndex':_0x572b70[_0x439b79(_0x5a9e32._0x5474cc,_0x5a9e32._0xa871d1,0x12a,_0x5a9e32._0x34b637)]??0x0},'text':_0x572b70[_0x3145d0(-0x230,-_0x5a9e32._0x36875d,-_0x5a9e32._0x2b7126,-0x25c)]??''};case'openai_reasoning_summary_delta':return{'type':_0x439b79(0x233,0x21a,0x2eb,_0x5a9e32._0x2a804a),'index':_0x572b70[_0x439b79(0x2d6,_0x5a9e32._0x16cb5e,0x2e5,0x2bd)],'messageId':_0x3458c0,'chunk':{'type':_0x3145d0(-0x28d,-_0x5a9e32._0x2be9b2,-_0x5a9e32._0x1332ec,-0x2a4),'delta':_0x572b70[_0x439b79(0x1b2,0x19f,0x312,0x260)]??'','itemId':_0x572b70[_0x3145d0(-_0x5a9e32._0x5e7826,-0x2cb,-0x253,-0x265)]??'','outputIndex':_0x572b70[_0x3145d0(-0x25b,-_0x5a9e32._0x1e1761,-0x2e4,-_0x5a9e32._0x3769d7)]??0x0,'summaryIndex':_0x572b70[_0x3145d0(-0x175,-0x1ab,-_0x5a9e32._0x547096,-0x232)]??0x0},'text':_0x572b70['delta']??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x4934f0){return structuredClone(_0x4934f0);}function cloneToolResultForPublication2(_0x2a9c84){const _0xe681c8={_0x4dc458:0x34b,_0x5b1205:0x311,_0x54818c:0x2eb},_0x20afdb={_0x258764:0x36d},_0x4ca2c9=_0x2a9c84[_0x1c2f21(0x37e,_0xe681c8._0x4dc458,_0xe681c8._0x5b1205,_0xe681c8._0x54818c)],_0x3677f7=_0x2a9c84['toolName'],{chunks:_0x3a4343,..._0x330dd6}=_0x2a9c84;function _0x1c2f21(_0x57ae3b,_0xc4d14d,_0x38339e,_0x48186c){return _0x1ea0ad(_0x48186c,_0x38339e-_0x20afdb._0x258764,_0x38339e-0x14c,_0x48186c-0xa7);}return{...structuredClone(_0x330dd6),'callId':_0x4ca2c9,'toolName':_0x3677f7,'chunks':_0x3a4343['map'](cloneToolResultChunkForPublication2)};}function _0x14fc(){const _0x43b4af=['Dg9VBf91C2vFy2H1BMS','A2LUza','zxjYB3i','Aw50zxjYDxb0zwq','CNvUt2jZzxj2zxjZ','C2LNBMfS','B3DUzxiUD29YA3nWywnL','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','tMvZDgvKigjLzM9YzvrVB2XfEgvJDxrPB24GzxH0zw5ZAw9UCYbTDxn0ihbYzxnLCNzLihrOzsbJywXSieLeigfUzcbYzxf1zxn0zwqGBMfTzq','B3jKzxi','qxj0AwzHy3qGB3v0Chv0ihDHCYbZDwjZDgL0DxrLza','ywz0zxjnzxnZywDLqxbWzw5K','yMvMB3jLrMLUywXpDxrWDxq','C3rYAw5N','yxnZAxn0yw50twvZC2fNzuLK','y29TCgXLDgvZuMvXDwvZDa','CMvUyw1L','ywn0Aw9U','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','CMvXDwvZDenVDw50','ChjVzMLSzq','ywX3yxLZlwnVBMzPCM0','CMvZDwX0','y29Kzq','C3rKB3v0','Dg90ywXdB3n0vxnKvgLJA3m','A2v5CW','ruLovKfm','Bw9KzwXdywXSq291BNq','C2v0u2vZC2LVBKLK','oIb1BMv4CgvJDgvKigzPzwXKici','oIbLEhbLy3rLzcbZDhjPBMC','Dg90ywXszwfZB25PBMDuB2TLBNm','Aw5WDxq','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','CMvHC29UAw5Nq29TCgXLDgvKqxq','y29UDgv4DfDPBMrVD0XPBwL0','Dg9VBf9JywXS','BwLU','Bwf4vg9Rzw5Z','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','zxHPDenVzgu','ChjVDMLKzxjtDgf0zq','ywnXDwLYzq','C2vZC2LVBI0','DhjHBNnJCMLWDfzPC2LIAwXPDhK','CMvTB3zLrxzLBNrmAxn0zw5LCG','CNvU','y29UDgvUDf9KzwX0yq','yM9VBgvHBG','y2fWDhvYzvn0yxrL','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa','y2HTB2q','C3rYzwfTAw5N','yMvMB3jLvg9VBev4zwn1DgLVBG','tMvZDgvKihrLCM1PBMfSigXPzMvJEwnSzsbJBgvHBNvWigzHAwXLza','Dg9VBhncEu5HBwu','lNrTCa','mtmYndi5nLjtDwzKwa','ywrKAxrPB25HBfbYB3bLCNrPzxm','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','yNL0zxnszxrHAw5Lza','y2H1BMTZ','Dw5SAw5R','qxj0AwzHy3qGzgLYzwn0B3j5ig9YihrLBxbVCMfYEsbMAwXLihDHCYbZDwjZDgL0DxrLza','C2vUza','Bwf4','zMLUywXnzxnZywDL','BMfTzq','y2HHDe1VzgvS','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','C3rHDgu','u2vZC2LVBIbKAxjLy3rVCNKGAxmGBM90igeGzgLYzwn0B3j5','zMLSDgvY','Dg90ywXjBNb1DfrVA2vUCW','B3v0Chv0vg9Rzw5Z','CgfKu3rHCNq','B3DUzxiUC2vZC2LVBKLK','C3LZDgvT','mJuYodC2nKfrAMvtBW','iIbMB3iG','Dgv4Da','CMvWB3j0zwrdB3n0','zgvZy3jPChrPB24','Aw5WDxrezwX0yq','qMfZAcbJyw5JzwXSyxrPB24GCMvZDwX0ignSzwfUDxaGzMfPBgvK','DxbKyxrLzef0','zxzLCNK','qMfZAcbHCNrPzMfJDcbZDgf0DxmGzxHJzwvKCYbTzxrHzgf0ysbIB3vUza','DhvYBKLUzgv4','t19xuK9otfK','ywz0zxjnB2rLBfjLC3bVBNnL','AxrLBuLK','AxngAwXL','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','ruXpt1a','zgvSDge','DxnLCL9TzxnZywDL','C3rHDhvZ','vgvYBwLUywWGyxj0AwzHy3qGC3rHDhvZihjLCxvPCMvZigzSDxnO','oIbLEhbLy3rLzcbVyMPLy3q','qxj0AwzHy3qGCgfYzw50igLZig5VDcbHigrPCMvJDg9YEq','z2v0','zMfPBa','CNvUBMLUzW','AxnbyNnVBhv0zq','y29UDgvUDa','B3DUzxiUChjVzMLSzq','y29TBwL0vgvYBwLUywXtDgf0zq','Dg9VBfj1BNrPBwu','ywz0zxjuB29SuMvZDwX0','C3LZDgvTuhjVBxb0','oNjLyxnVBMLUzW','zxHLy3v0zunHBgXZ','Bwf4qNL0zxm','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','DxnLCG','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','ngvNCvzLDW','B25uB29Sq2fSBa','B2jQzwn0','DMvYC2LVBG','zg9Uzq','oIbLEhbLy3rLzcbVBMuGB2yG','CMvWB3j0zwrdB3n0q2fSBenVDw50','DxrMoa','qxj0AwzHy3qGzgLYzwn0B3j5ihDHCYbZDwjZDgL0DxrLza','y2HHCKnVzgvbDa','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','CMvNAxn0zxi','zNjVBq','mta3odGWmgTQEvHTqq','DhvYBKLK','CMvZB2X2zq','zxH0zw5ZAw9UCW','yMfZAa','sw52ywXPzcbHCNrPzMfJDcbMAwXL','mxjzy0fSza','ywrKrxzLBNrmAxn0zw5LCG','y3vTDwXHDgL2zvvZywDL','tufyx1zbtfvf','DgvYBwLUyxrPBMC','y2f1C2u','x3n5C3rLBvbYB21WDa','zw5HyMXLza','CMvHC29UAw5Nx2nODw5R','DhjHy2u','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','lNn0yxr1CY4','z2v0vg9VBhm','DgHPBMTPBMC','mtyZmJyXmNPWCe9rqG','AgfZt3DU','BgLZDa','Aw5KzxG','Dg9VBenHBgXdB3vUDa','AxnjBNrLz2vY','Bw9KzwXFCMvZCg9UC2u','ywjVCNrLza','mZa2mJy3nu1NrxbpCa','DhLWzq','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','ywDLBNq','zxHLy3v0Aw9Uu2nVCgu','zMfPBgvK','CMv0DxjU','y2fWDhvYzuvYCM9Yq29Kzq','yxj0AwzHy3rjza','Bw9KzwXFCMvXDwvZDa','B3DUzxi','DhvYBKnVBxbSzxrLzef0','Dg9VBf9Yzxn1Bhq','ywrTAxq','Dg9VBfjLC3vSDhm','CMvZCg9UC2u','y2f0y2G','B3v0Chv0rM9YBwf0','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','C2XPy2u','CMvWzwf0','zxHPDgvK','mJGWmhDSwhzrtG','zxjYB3jdB2rL','zMXVB3i','DhjPBq','Bw9KzwXjzgvUDgL0Eq','Dg9VBf9JB21WBgv0zwq','ChjVz3jHBs10Aw1LB3v0','B3v0Chv0lMXVzW','C3vTBwfYEuLUzgv4','B3jPz2LU','B2jZzxj2zxi','ChjVDMLKzxi','AgfZ','l2jHC2GV','C3rHDhvZlMPZB24','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','Aw5JBhvKzxm','zw5K','u2vZC2LVBIbKAxjLy3rVCNKGAxmGysbZEw1SAw5RigfMDgvYignHBM9UAwnHBgL6yxrPB24','yxnZAxn0yw50x2nODw5R','Bw9KzwW','zgvSzxrL','BwLZC2LUz01VzgvSq2fSBenVDw50','yw1VDw50vxnKvgLJA3m','C2v0','t3v0Chv0ihDYAxrLihDYB3rLig5Vigj5DgvZ','ywjHBMrVBMvK','zMLUywXFBwvZC2fNzq','qxj0AwzHy3qGzMLSzsbPCYbHihn5BwXPBMS','AxnbCNjHEq','ChjPy2LUz1bYB3zPzgvYswq','B3bLBG','CMvJB3jKrxzLBNq','C3rYDwn0DxjLza','y29UDgvUDeLUzgv4','Dg9VBe5HBwu','CMvQzwn0','C3rHCNrLzef0','sw52ywXPzcbIyxnOigfYDgLMywn0ihn0yxr1CW','ChjVz3jHBs1HyM9YDgvK','Aw5WDxrty2HLBwe','ywXSu2v0DgXLza','zNjLzxPL','D29YA3nWywnL','Dg90ywXnB2rLBfrPBwvnCW','Dg9VBf9VDxrWDxrFy2H1BMS','zhjHAw5tDgvLCMLUzW','ru5pru5u','DhvYBLn0yxj0zwrbDa','Aw50zxjUywXmAwzLy3LJBgu','Dg9VBf91C2vFzgvSDge','C3vIBwLZC2LVBG','zxn0Aw1HDgvKq29ZDa','C3rYAw5NAwz5','zhjHAw5qzxjZAxn0zw5Jzq','CMvHBhbHDgG','ywrK','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','yMvNAw5qCM9NCMfTvhjHy2u','vw5RBM93BIb0B29SoIa','iIbPCYbHBhjLywr5igvUywjSzwq','ChjVDMLKzxjFCMv0CNK','zgLYBMfTzq','Dg90ywXuB2TLBNm','oIbLEhbLy3rLzcbIB29SzwfU','sw52ywXPzcb0B29SigLUChv0igf0ia','BMv4Da','DxnHz2u','BgfZDfjLC3bVBNnL','qMfZAa','CMvHza','Bw9KzwXdywXSCW','Aw5WDxruB2TLBNm','ChjVCgvYDgLLCW','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq','AxrLBxm','CMvNAxn0CNK','Dg9VBa','yNL0zuXLBMD0Aa','ChvZAa','C2vZC2LVBKrPCG','CMvHC29UAw5NtwvZC2fNzuLK','C3rHDa','Dg9VBenHBgW','Dg9VBf91C2vFBwvZC2fNzq','ChjVz3jHBs1PBNrLCM1LzgLHDgu','AxntywzLsw50zwDLCG','DMfSDwu','yxnZAxn0yw50x21LC3nHz2u','zgvWCW','B3v0Chv0ugf0Aa','C3rHDhvZugf0Aa','BNvTyMvY','CMvJB3jKvg9VBfjLC3vSDa','zMLUza','y29TCgXLDgu','AxneAxjLy3rVCNK','Dg9VBf9YzwPLy3rLza','yxnZAwDU','ntuWne5LzwD3yq','Dg90ywXpDxrWDxruB2TLBNm','y29TCgXLDgvK','oIbLEhbLy3rLzcbUDw1Izxi','tw9KzwXvC2fNzu92zxjMBg93rxjYB3i','C3vIywDLBNrszxbVCNq','yMfZzw5HBwu','mtm1mZm5ohnXEhfNDW','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','ruLp','t19ot0zpteXpvW','AM9PBG','zw51Bq','oIbLEhbLy3rLzcbHCNjHEq','Dg9VBenHBgXqyxrO','C2HLBgXjza','ruvysvnu','zNvUy3rPB24','Bwv0CMLJCW','y2fSBeLK','BM93','CNvUswq','CgvYBwLZC2LVBKnSyxnZ','B25fDMvUDa','D3jPDgu','ywDLBNrjza','DgvZDa','DhjHBNnMB3jTzxi','y29VCMrPBMf0B3i','DgHLBG','ywXS','Dg9VBf91C2u','BwvZC2fNzq','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','Dg9VBenHBgXjza','C2vUzgvYqwDLBNrjza','CMvHC29UAw5Nu3rHCNrLzef0','DhjHBNnPzw50sw5WDxq','uhjVz3jHBq','CMvHC29U','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','sw52ywXPzca','ywjVCNq','Dhj1BMnHDgvK','Dw5RBM93BL90B29S','AxntEw1IB2XPy0XPBMS','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','z2v0q29UDgv4DfDPBMrVD0XPBwL0','zgvZDgLUyxrPB24','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','sw52ywXPzcbZzxnZAw9UrgLY','B3v0Chv0sw5KzxG','y2XVC2u','ru5pverjuG','Dg9VBf9ZDgfYDgvK','C3rHz2u','ru5btuvut09mt05h','zxH0zxjUywXvC2fNzq','BgvUz3rO','t19fwenm','DhvYBLvZywDL','yw55t2y','AxngAw5PDgu','Bwv0yq','C2v0vg9VBhm','C2vZC2LVBKLK','y29KzvbVAw50qxq','BMXPBMS','C29Tzq','yxnRvxnLCG','C2vXDwvUy2u','DMfSAwrHDgLVBG','C2v0q2HHDe1VzgvS','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','Bw9KzwXuAw1Ltxm','sw52ywXPzcbLEgvJDxrPB24GC25HChnOB3q','zgv2','CMvXDwLYzwq','CMvXDwvZDgvKtMfTzq','BwvZC2fNzxm','DhvYBL9JB21WBgv0zq','y2fWDhvYAw5N','yxnZAxn0yw50','CMvJB3jKvg9VBenHBgW','yxjYyxK','zMLUAxnOzwrbDa','qxj0AwzHy3qGCgf0AcbLEgnLzwrZihrOzsbWyxrOigjVDw5K','Aw5V','BwTKAxi','BwfW','B3v0Chv0','CMvXDwvZDa','BgLZDfrVB2Xty2HLBwfZ','yMvMB3jLqxnZAxn0yw50qxbWzw5K','C3rYzwfT','Bhn0yxq','zgvMyxvSDe1LC3nHz2u','C3rHCNrPBMC','B25vC2vYtwvZC2fNzq','DgvYBwLUywW','CNvUvhjHBNnMB3jTzxjZ','yMvMB3jLtw9KzwXszxf1zxn0','Dg9tDhjPBMC','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y'];_0x14fc=function(){return _0x43b4af;};return _0x14fc();}function isAbortedToolResult(_0x4dee0e){const _0x136277={_0x240bf8:0x448,_0x34c5f7:0x424,_0x4b40b8:0x2bc,_0xbb02f1:0x37c,_0x273148:0x3c6},_0x2ef8eb={_0x455ed3:0x14c},_0x3a4fcc={_0x2db326:0xa7,_0x45c33b:0x221};function _0x1f9119(_0xfd4a4f,_0x6a6622,_0x32f9d7,_0x1683bf){return _0x28d661(_0x6a6622,_0x6a6622-0xd5,_0x32f9d7-_0x3a4fcc._0x2db326,_0x32f9d7-_0x3a4fcc._0x45c33b);}function _0x919863(_0x281ff4,_0x518957,_0x10483d,_0x36640a){return _0x1ea0ad(_0x10483d,_0x281ff4-0x1ec,_0x10483d-0x30,_0x36640a-_0x2ef8eb._0x455ed3);}return _0x4dee0e[_0x1f9119(0x46d,_0x136277._0x240bf8,0x430,_0x136277._0x34c5f7)]==='error'&&_0x4dee0e[_0x919863(_0x136277._0x4b40b8,0x34a,0x24a,_0x136277._0xbb02f1)][_0x1f9119(_0x136277._0x273148,0x4e0,0x46c,0x408)]===!![];}async function executeModelRequest(_0x5b6c49,_0x52e0c8,_0x527917,_0xcce07e,_0x2afe73,_0x1a166d){const _0x266d14={_0x4a3770:0x27e,_0xa7370a:0x33a,_0x482645:0x17,_0x42fbee:0x4,_0x49bfef:0x1c,_0x957ba5:0x67,_0x555529:0x2a2,_0x4b8783:0xb1,_0xb8eb40:0x56,_0x458582:0x49,_0x4a3238:0x70,_0x1d9a7a:0xb,_0x5e39aa:0x1a,_0x47ac88:0x2a5,_0x593186:0x22e,_0x4960be:0x2d9,_0x1db5b3:0x21a,_0x5507ee:0x261,_0x2d0862:0x212,_0x1dfcc9:0x1c2,_0x5d7bf4:0x1ed,_0x19f16f:0x279,_0x1ce829:0x171,_0x2bbdac:0x2df,_0x3d8cdc:0x311,_0x331910:0x28f,_0x4bbb7c:0x29b,_0x2c78bc:0x4f,_0x48f5b5:0x12c,_0x3c024a:0x7d,_0x3aacef:0x42,_0x28e632:0xb7,_0x4d0972:0x4c,_0x70e185:0x7f,_0x2b308f:0xf6,_0x1ec697:0x1ba,_0x26b38c:0x265,_0x3128a7:0x2a4,_0x4444f9:0xaf,_0x4bbdc8:0x7,_0x58d8db:0x280,_0x4a9b8f:0x1be,_0x50d0b7:0x228,_0x4b5d31:0x75,_0x1a833b:0x29,_0x5d56f0:0x2,_0x43df29:0xa6,_0x4a07bc:0x13f,_0x34616f:0x17e,_0x261792:0x2d5,_0xb307c0:0x11c,_0x1495ed:0x2a,_0x568e6e:0x64,_0x460195:0xa6,_0x4a2741:0x97,_0x5dd234:0x14f,_0x4ef380:0x142,_0x23207c:0x2a8,_0x248bf8:0x209,_0x2f2636:0x229,_0xc6bcf2:0x2db,_0x1e7348:0x271,_0x8e6647:0x292,_0x645c07:0x1cc,_0x1f4943:0x5b,_0x5d27ca:0x2,_0x4da1f2:0x74,_0x594dd4:0xdd,_0x1ab3db:0x38,_0x352393:0x23,_0x4783b1:0xc4,_0x503ec7:0x73,_0x2d7aa7:0x27a,_0x34a230:0x2d5,_0x39dac0:0x275,_0x3839db:0x27b,_0xccfea3:0xc,_0x517543:0x13,_0x561c37:0x99,_0x557cce:0x9f},_0xdb3485={_0x40a859:0x147,_0x3f7e5f:0x1e4},_0x1fdaf8={_0x2b2d46:0x27};throwIfAborted(_0x52e0c8[_0x49ded9(0x309,0x25c,0x2e9,0x2ab)]);if(!_0x52e0c8[_0x49ded9(_0x266d14._0x4a3770,0x28c,_0x266d14._0xa7370a,0x30d)]||!_0x527917[_0x1235db(-_0x266d14._0x482645,-_0x266d14._0x42fbee,_0x266d14._0x49bfef,0x31)])return await _0x527917[_0x1235db(-0x63,-_0x266d14._0x957ba5,-0xc8,-0x82)](_0x5b6c49,{'signal':_0x52e0c8[_0x49ded9(0x1c8,0x25c,0x1aa,_0x266d14._0x555529)]});function _0x49ded9(_0x35646c,_0x521917,_0x2d9cb5,_0x5a1288){return _0x28d661(_0x5a1288,_0x521917-_0x1fdaf8._0x2b2d46,_0x2d9cb5-0x56,_0x521917-0xaa);}function _0x1235db(_0x4f0ef9,_0x203171,_0x4191a6,_0x5ca26e){return _0x1ea0ad(_0x4f0ef9,_0x203171-0xc,_0x4191a6-_0xdb3485._0x40a859,_0x5ca26e-_0xdb3485._0x3f7e5f);}let _0x4c2f39;for await(const _0xe86205 of _0x527917[_0x1235db(-0x5f,-0x4,0x6f,-_0x266d14._0x4b8783)](_0x5b6c49,{'signal':_0x52e0c8[_0x1235db(-_0x266d14._0xb8eb40,0xb,_0x266d14._0x458582,0x52)]})){throwIfAborted(_0x52e0c8[_0x1235db(-_0x266d14._0x4a3238,_0x266d14._0x1d9a7a,_0x266d14._0x5e39aa,-0x23)]);if(_0xe86205['type']==='done'){_0x1a166d[_0x49ded9(_0x266d14._0x47ac88,_0x266d14._0x593186,_0x266d14._0x4960be,_0x266d14._0x1db5b3)][_0x49ded9(_0x266d14._0x5507ee,_0x266d14._0x2d0862,_0x266d14._0x1dfcc9,_0x266d14._0x5d7bf4)]!==void 0x0&&_0x1a166d[_0x49ded9(_0x266d14._0x19f16f,0x22e,_0x266d14._0x1ce829,_0x266d14._0x2bbdac)][_0x49ded9(_0x266d14._0x3d8cdc,0x27a,_0x266d14._0x331910,_0x266d14._0x4bbb7c)]===void 0x0&&(_0x1a166d[_0x49ded9(0x2be,0x22e,0x20b,0x182)]['reasoningCompletedAt']=Date[_0x1235db(-0xc0,-_0x266d14._0x2c78bc,-0x9c,-0xe4)]());_0x4c2f39=_0xe86205['response'];continue;}if(_0xe86205[_0x1235db(0x145,0xa6,0xda,_0x266d14._0x48f5b5)]===_0x1235db(-_0x266d14._0x3c024a,_0x266d14._0x3aacef,_0x266d14._0x28e632,-0x70)){await emitEvent2(_0xcce07e[_0x1235db(0x52,-_0x266d14._0x4d0972,-_0x266d14._0x70e185,-_0x266d14._0x2b308f)],{'type':'provider_stream_reset','assistantMessageId':_0x1a166d[_0x49ded9(_0x266d14._0x1ec697,_0x266d14._0x26b38c,_0x266d14._0x3128a7,0x2da)],'reasoningMessageId':_0x1a166d[_0x1235db(0x0,-0x75,-_0x266d14._0x4444f9,-_0x266d14._0x4bbdc8)]},_0x2afe73),delete _0x1a166d[_0x49ded9(0x2c3,0x22e,0x1f8,0x287)][_0x49ded9(0x183,0x212,_0x266d14._0x58d8db,0x2a1)],delete _0x1a166d[_0x49ded9(_0x266d14._0x4a9b8f,0x22e,0x186,_0x266d14._0x50d0b7)][_0x1235db(_0x266d14._0x4b5d31,_0x266d14._0x1a833b,0x45,_0x266d14._0x5d56f0)];continue;}if(_0xe86205[_0x1235db(-0x5,_0x266d14._0x43df29,0xf5,_0x266d14._0x4a07bc)]===_0x1235db(0x18b,0xf8,_0x266d14._0x34616f,0x90)){await emitEvent2(_0xcce07e['onEvent'],{..._0xe86205,'assistantMessageId':_0x1a166d[_0x49ded9(_0x266d14._0x261792,0x265,0x1fb,0x1ee)]},_0x2afe73);continue;}const _0x4eb9f8=createReasoningChunkEvent(_0xe86205,_0x1a166d[_0x1235db(-0x5e,-0x75,-_0x266d14._0xb307c0,_0x266d14._0x1495ed)]);if(_0x4eb9f8&&_0x4eb9f8[_0x1235db(_0x266d14._0x568e6e,_0x266d14._0x460195,0x107,0xd8)]===_0x1235db(0xf2,_0x266d14._0x4a2741,_0x266d14._0x5dd234,_0x266d14._0x4ef380)&&_0x4eb9f8[_0x49ded9(0x237,_0x266d14._0x23207c,_0x266d14._0x248bf8,0x20a)][_0x49ded9(0x262,_0x266d14._0x2f2636,0x27f,_0x266d14._0xc6bcf2)]>0x0){_0x1a166d[_0x49ded9(_0x266d14._0x1e7348,0x22e,0x284,_0x266d14._0x8e6647)][_0x49ded9(0x228,0x212,_0x266d14._0x645c07,0x172)]===void 0x0&&(_0x1a166d['meta'][_0x49ded9(0x2a3,0x212,0x1e9,0x1a3)]=Date['now']());await emitEvent2(_0xcce07e[_0x1235db(-_0x266d14._0x1f4943,-_0x266d14._0x4d0972,-0x50,_0x266d14._0x5d27ca)],_0x4eb9f8,_0x2afe73);continue;}const _0x42e665=createAssistantChunkEvent(_0xe86205,_0x1a166d['assistantMessageId']);if(_0x42e665){_0x1a166d['meta']['reasoningStartedAt']!==void 0x0&&_0x1a166d[_0x1235db(-_0x266d14._0x4da1f2,-0x23,-_0x266d14._0x594dd4,-0x4b)]['reasoningCompletedAt']===void 0x0&&(_0x1a166d[_0x1235db(-_0x266d14._0x1ab3db,-_0x266d14._0x352393,-_0x266d14._0x4783b1,-_0x266d14._0x503ec7)][_0x49ded9(0x238,_0x266d14._0x2d7aa7,_0x266d14._0x34a230,_0x266d14._0x39dac0)]=Date[_0x49ded9(0x297,0x202,0x1b8,_0x266d14._0x3839db)]());await emitEvent2(_0xcce07e[_0x1235db(_0x266d14._0xccfea3,-0x4c,-0xb1,-0x9a)],_0x42e665,_0x2afe73);continue;}const _0x1f88bb=createToolUseChunkEvent(_0xe86205,_0x1a166d['assistantMessageId']);_0x1f88bb&&await emitEvent2(_0xcce07e[_0x1235db(-0x8d,-_0x266d14._0x4d0972,_0x266d14._0x517543,0x67)],_0x1f88bb,_0x2afe73);}if(!_0x4c2f39)throw new Error(_0x1235db(0x78,_0x266d14._0x561c37,_0x266d14._0x557cce,0x96));return _0x4c2f39;}function makeTurnGuards(_0x4733a5,_0x242e76,_0x895a85,_0xf4d980,_0x4ac3d7){return{async 'stage'(_0x2b765e,_0x46e079){return throwIfAborted(_0x4733a5),await runStage(_0x242e76,_0x2b765e,_0x46e079,_0xf4d980);},async 'emit'(_0x157a6f){throwIfAborted(_0x4733a5),await emitEvent2(_0x895a85,_0x157a6f,_0x4ac3d7);},async 'stageUnchecked'(_0x452159,_0x40e611){return await runStage(_0x242e76,_0x452159,_0x40e611,_0xf4d980);},async 'emitUnchecked'(_0x94c758){await emitEvent2(_0x895a85,_0x94c758,_0x4ac3d7);}};}async function runTurn(_0x510e83,_0x2548e3){const _0x961334={_0x390c3b:0x3cb,_0x260308:0x3ca,_0x477319:0x37c,_0x1050de:0x74,_0x2419b6:0x2b,_0x27ee1e:0x106,_0x124465:0x338,_0x2c86e7:0x385,_0x98920a:0x31d,_0x5b50e5:0x3b7,_0x4eaf37:0x328,_0x440970:0x2ce,_0x315ec1:0xc0,_0xcaa415:0x19b,_0x2d3498:0x23f,_0x366b04:0x193,_0x435f07:0x13e,_0x2906d2:0x326,_0x2510f3:0x3d0,_0x3058cd:0x20,_0x3e5877:0x6b,_0x27f0bd:0xd1,_0x3c94b6:0x31e,_0x3ce111:0x355,_0x407af2:0x2ef,_0x25dfd5:0x160,_0x560dc6:0xbe,_0x57ac15:0x134,_0x409f16:0x14d,_0xee489a:0x169,_0x5a22a7:0x111,_0x397a52:0x1e3,_0xe14132:0x1d9,_0x47073a:0x3be,_0x1cbc5d:0x3ff,_0x44d62e:0x4d5,_0x3b7a55:0xb6,_0x10e74e:0xef,_0x2bef78:0xaf,_0x1451f1:0x4c8,_0x577743:0x382,_0x174ddc:0x11a,_0x2fb524:0x29,_0x20cc5f:0xe5,_0x545973:0x5e,_0x3f55d7:0x2f,_0x309c00:0x112,_0x193e1f:0x53,_0x544477:0x57,_0x38b9e7:0x29,_0x25eb54:0x76,_0x325ccb:0x3c8,_0x3e84bf:0x35e,_0x10e767:0x406,_0x231796:0x2cb,_0x33d1bf:0x153,_0x495c20:0x184,_0x1d18e9:0x308,_0x41a365:0x3a4,_0x1812e7:0x38c,_0x482607:0x39d,_0x380f64:0x32b,_0x20ee82:0x2fb,_0x5723da:0x424,_0x31b543:0x376,_0x16184f:0x40a,_0x4d5431:0x3af,_0x552db1:0x358,_0x592461:0x296,_0x3ffc01:0x357,_0x7861c3:0x334,_0xe6a75c:0x33d,_0x1b5513:0x35e,_0x16ea31:0x41b,_0x1231a9:0x40a,_0x228a1f:0x4a6,_0x20ded3:0x4,_0x5bef27:0x54,_0x525a85:0x402,_0x1956e1:0x3df,_0x524ded:0x3c2,_0x2c04d5:0x2e2,_0x438818:0x2f8,_0x1de797:0x3e4,_0x210d12:0x41c,_0x3bdfe0:0x48b,_0x5bbc49:0x109,_0x256348:0x327,_0xd632e7:0x3e1,_0x5f071e:0xff,_0x364474:0xb4,_0x335d0b:0xed,_0x2c7fbf:0x143,_0x19892f:0x3fd,_0x80dd69:0x3ec,_0x1ba5ba:0x427,_0x63d39d:0x42f,_0x1ef722:0x15,_0x5d6e85:0x7a,_0x3b40fa:0x4b1,_0x5c717c:0x32c,_0x47384e:0x353,_0x5e3606:0x2b2,_0xfb4f0f:0x2ec,_0x468094:0x309,_0x172526:0x14c,_0x5c3b51:0x1e1,_0x2aa13f:0x220,_0x211cd1:0x2bf,_0x384016:0x194,_0x516894:0x306,_0x45b60d:0x272,_0x3126ac:0x1ee,_0x2a0b78:0xcb,_0x4de12e:0x3cf,_0x128811:0x343,_0x335fe7:0x13a,_0x54cbb6:0x130,_0x44d3b0:0x94,_0x2a188d:0x407,_0x2efd97:0x3b9,_0x2b2e43:0x2bb,_0x325b78:0x33b,_0x4a4e6d:0x7c,_0x11fdb3:0x165,_0x1f0928:0x2d0,_0x58d989:0x2f1,_0x251844:0x3e8,_0x1f9913:0x13b,_0x88c683:0x91,_0x2f9ff3:0x28a,_0xbf35e6:0x396,_0x47ccd0:0xae,_0x3d17be:0x126,_0x1d2102:0x252,_0x8f1ead:0x136,_0x3abc74:0x378,_0x58ffa5:0x3e2,_0x555272:0x38c,_0x1d0aac:0x144,_0x379e0d:0x130,_0x52a363:0xb9,_0x1ef845:0x23d,_0x400114:0x1a0,_0x3b181e:0x195,_0x4c5fa4:0x46d,_0x8293f9:0x3d5,_0x4f1263:0x322,_0x19b90d:0x3d5},_0xe40616={_0xd19fb5:0xa,_0x54af24:0x3b0,_0x1b521b:0x497,_0xe1450a:0x1b5,_0x25dff4:0x18b,_0x24888e:0x514,_0x17564c:0x47c,_0x2740fa:0x1e6,_0x49c375:0x1ad,_0x26735e:0x1b2,_0x5e59ab:0x2bc,_0x130bb8:0x229,_0x3b2d01:0x2a2,_0x2ccfe2:0x44b,_0x266718:0x395},_0x4c36df={_0x3ad37b:0x119,_0x41c17c:0x10a},_0x503fd1={_0x4e408b:0xa8,_0x3ee6df:0x55,_0x5b68cd:0x2,_0x4841d8:0x8,_0x3db006:0x48,_0x3437da:0xd2,_0x17c2b5:0x15,_0x47fb5b:0x157,_0x1b793c:0x14e,_0x2c0350:0xbe,_0x1ccd88:0x82},_0x568f0b={_0x1c724c:0x46,_0x495dfd:0x32a},_0x54f9aa={_0x497fb9:0x1b7},_0x451fc6={_0x414753:0x111,_0x25d712:0x154},_0x24514e={_0x1a2745:0xa7,_0x30bf48:0x8c,_0x2bd4d2:0xd4,_0x71290f:0xd4,_0x1a0b72:0xbe},_0x581c5f=_0x2548e3[_0x44e503(_0x961334._0x390c3b,_0x961334._0x260308,_0x961334._0x477319,0x33d)],_0x5751a1=_0x510e83['signal']??new AbortController()['signal'],_0x4b82fd=normalizeExecutionScope(_0x2548e3[_0x47deb9(0x28,-_0x961334._0x1050de,-_0x961334._0x2419b6,-_0x961334._0x27ee1e)]),_0x116132={'sessionId':_0x510e83['sessionId'],'turnId':_0x510e83['turnId'],'system':normalizeSystem(_0x510e83[_0x44e503(_0x961334._0x124465,0x350,_0x961334._0x2c86e7,0x385)]),'messages':(_0x510e83['messages']??[])[_0x44e503(_0x961334._0x98920a,_0x961334._0x5b50e5,_0x961334._0x4eaf37,_0x961334._0x440970)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x2548e3['sessionDir']===_0x47deb9(-_0x961334._0x315ec1,-0x16f,-_0x961334._0xcaa415,-0xbf)?_0x2548e3['sessionDir']():_0x2548e3[_0x47deb9(-_0x961334._0x2d3498,-_0x961334._0x366b04,-_0x961334._0x435f07,-0x160)]};function _0x44e503(_0x86cc8d,_0x2298ad,_0x416cc3,_0x50b782){return _0x28d661(_0x50b782,_0x2298ad-0x36,_0x416cc3-0x9,_0x416cc3-0x18a);}const _0x1e9bd8=makeExtensionContext(_0x116132,_0x4b82fd),_0x593105={'sessionId':_0x116132[_0x44e503(_0x961334._0x2906d2,0x2e0,0x310,_0x961334._0x2510f3)],'turnId':_0x116132[_0x47deb9(_0x961334._0x3058cd,-0x93,-_0x961334._0x3e5877,-_0x961334._0x27f0bd)],'state':_0x116132,'executionScope':_0x4b82fd,'signal':_0x5751a1,..._0x2548e3[_0x44e503(0x3c8,_0x961334._0x3c94b6,0x314,_0x961334._0x3ce111)]?{'askUser':_0x2548e3['askUser']}:{}},{stage:_0x2831af,emit:_0x2a5f5c,stageUnchecked:_0x4fb6e2,emitUnchecked:_0xf45b50}=makeTurnGuards(_0x5751a1,_0x2548e3['registry'],_0x2548e3[_0x44e503(0x34b,_0x961334._0x407af2,0x2e5,0x276)],_0x1e9bd8,_0x593105),_0x38fc5c=async(_0x507ade,_0x206c5b)=>{function _0x4dd3b3(_0xfce2c0,_0x2a219a,_0x34e3ca,_0x412f87){return _0x47deb9(_0xfce2c0-0x14e,_0xfce2c0-0x144,_0x34e3ca,_0x412f87-0x1ee);}const _0x1cbf41=_0x206c5b?{..._0x1e9bd8,'turnMeta':_0x206c5b}:_0x1e9bd8;function _0x1a3810(_0x31ce56,_0x538f7b,_0x34722e,_0x40b42e){return _0x44e503(_0x31ce56-0xca,_0x538f7b-0x191,_0x40b42e- -0x38b,_0x538f7b);}await _0x2548e3[_0x1a3810(-_0x24514e._0x1a2745,-_0x24514e._0x30bf48,-0x57,-_0x24514e._0x2bd4d2)][_0x1a3810(0x2d,-_0x24514e._0x71290f,0x5c,-0x50)](_0x1a3810(-0xdd,-0xdc,-_0x24514e._0x1a0b72,-0x49),structuredClone(_0x507ade),_0x1cbf41);};function _0x47deb9(_0x10347e,_0x2fc50b,_0x5deda0,_0x22712d){return _0x1ea0ad(_0x5deda0,_0x2fc50b- -_0x451fc6._0x414753,_0x5deda0-_0x451fc6._0x25d712,_0x22712d-0x55);}const _0x1d83de=_0x15b220=>{if(_0x15b220?.[_0x123cb2(_0x503fd1._0x4e408b,0xda,_0x503fd1._0x3ee6df,0xa4)]===_0x123cb2(0x78,-0x31,-0x14,-0x94)){if(isAgentOnlyCoordinatorNotice(_0x15b220))return{'submissionOrigin':'coordinator','deliveryKind':_0x15b220['deliveryKind'],'transcriptVisibility':_0x15b220[_0x123cb2(0x31,0x49,-_0x503fd1._0x5b68cd,0x32)]};return{'submissionOrigin':_0x123cb2(-0xaf,-0x31,-_0x503fd1._0x4841d8,_0x503fd1._0x5b68cd),..._0x15b220['subagentReport']===void 0x0?{}:{'subagentReport':structuredClone(_0x15b220[_0x123cb2(-0x9e,-_0x503fd1._0x3db006,-_0x503fd1._0x3437da,-0x29)])}};}function _0x123cb2(_0x38df04,_0x1a1207,_0x5062a5,_0x3ebc40){return _0x44e503(_0x38df04-0xb1,_0x1a1207-_0x54f9aa._0x497fb9,_0x1a1207- -0x31b,_0x38df04);}function _0x228210(_0x15da89,_0x4124cd,_0x527d42,_0x1b4021){return _0x44e503(_0x15da89-0x44,_0x4124cd-_0x568f0b._0x1c724c,_0x1b4021- -_0x568f0b._0x495dfd,_0x15da89);}if(_0x15b220?.[_0x228210(_0x503fd1._0x17c2b5,_0x503fd1._0x47fb5b,_0x503fd1._0x1b793c,0xcb)]===_0x123cb2(0x161,_0x503fd1._0x2c0350,_0x503fd1._0x1ccd88,0x7))return{'submissionOrigin':'agent','senderAgentId':_0x15b220['senderAgentId']};return void 0x0;},_0x59724e=_0xc22a8b=>_0xc22a8b?.[_0x44e503(0x3f4,0x442,0x3f5,0x41a)]===_0x47deb9(-0xd6,-0x75,-0xca,-0x30)?{'senderAgentId':_0xc22a8b[_0x44e503(0x2c2,0x32b,0x2f1,0x28a)]}:void 0x0,_0x5cec4a=_0x5c193d=>typeof _0x5c193d===_0x47deb9(-0x65,-0x9f,-0xa6,-0x4a)&&_0x5c193d!==null&&'input'in _0x5c193d&&_0x44e503(0x375,0x44d,0x41f,0x4d9)in _0x5c193d,_0x3dc4f1=async _0x21d4ef=>{const _0x55f756={_0x4b3eb7:0x5e,_0x448110:0xf5};if(!_0x510e83['drainSteering'])return 0x0;const _0x1cde8c=await _0x510e83[_0x214029(-0xec,-0xd8,-0xc9,-_0xe40616._0xd19fb5)]();throwIfAborted(_0x5751a1);function _0x214029(_0x3052a7,_0x223e87,_0x4ed271,_0x350c9b){return _0x44e503(_0x3052a7-_0x4c36df._0x3ad37b,_0x223e87-_0x4c36df._0x41c17c,_0x4ed271- -0x4e3,_0x3052a7);}if(_0x1cde8c[_0x31f201(_0xe40616._0x54af24,0x3fe,0x39e,_0xe40616._0x1b521b)]===0x0)return 0x0;await _0x21d4ef?.();function _0x31f201(_0x4492f9,_0x35a8b4,_0x4e47ed,_0x8c67fb){return _0x44e503(_0x4492f9-_0x55f756._0x4b3eb7,_0x35a8b4-0xde,_0x35a8b4-_0x55f756._0x448110,_0x4e47ed);}for(const _0x5d013e of _0x1cde8c){const _0x53ded3=_0x5cec4a(_0x5d013e)?_0x5d013e[_0x214029(-_0xe40616._0xe1450a,-0x19d,-_0xe40616._0x25dff4,-0x19a)]:_0x5d013e,_0x39a31d=_0x5cec4a(_0x5d013e)?_0x5d013e[_0x31f201(0x56f,_0xe40616._0x24888e,0x4e7,_0xe40616._0x17564c)]:void 0x0,_0x4ff742=await _0x2831af(_0x214029(-_0xe40616._0x2740fa,-_0xe40616._0x49c375,-_0xe40616._0x26735e,-0x191),normalizeMessage(_0x53ded3));throwIfAborted(_0x5751a1),_0x116132[_0x214029(-0x1d6,-0x282,-0x1c5,-0x19b)][_0x214029(-_0xe40616._0x5e59ab,-0x194,-_0xe40616._0x130bb8,-_0xe40616._0x3b2d01)](_0x4ff742),await _0x38fc5c(_0x4ff742,_0x1d83de(_0x39a31d)),await _0x2a5f5c({'type':_0x214029(-0x1c1,-0x1e8,-0x14b,-0x1ea),'message':_0x4ff742,..._0x59724e(_0x39a31d)});}return _0x1cde8c[_0x31f201(_0xe40616._0x2ccfe2,0x3fe,_0xe40616._0x266718,0x484)];};let _0x316012=0x0;try{const _0x4aa82c=await _0x2831af('onUserMessage',normalizeMessage(_0x510e83[_0x47deb9(-0x21e,-_0x961334._0x25dfd5,-_0x961334._0x560dc6,-_0x961334._0x57ac15)]));_0x116132['messages'][_0x47deb9(-_0x961334._0x409f16,-0x194,-_0x961334._0xee489a,-_0x961334._0x5a22a7)](_0x4aa82c);_0x510e83[_0x47deb9(-_0x961334._0x397a52,-0x15b,-_0x961334._0xe14132,-0x1ae)]!==!![]&&await _0x38fc5c(_0x4aa82c,_0x1d83de(_0x510e83[_0x44e503(_0x961334._0x47073a,_0x961334._0x1cbc5d,0x41f,_0x961334._0x44d62e)]));await _0x2a5f5c({'type':_0x47deb9(-0xdf,-_0x961334._0x3b7a55,-_0x961334._0x10e74e,-_0x961334._0x2bef78),'message':_0x4aa82c,..._0x59724e(_0x510e83[_0x44e503(_0x961334._0x1451f1,0x3fd,0x41f,_0x961334._0x577743)])});while(!![]){throwIfAborted(_0x5751a1),_0x316012+=0x1;const _0x3e6342=createAssistantMessageId(_0x116132[_0x47deb9(-_0x961334._0x174ddc,-0x93,-_0x961334._0x2fb524,-_0x961334._0x20cc5f)],_0x316012),_0x3b4273=createReasoningMessageId(_0x3e6342),_0x553045={'model':_0x581c5f['model'],'modelIdentity':_0x581c5f[_0x47deb9(-0xc1,-_0x961334._0x545973,_0x961334._0x3f55d7,-_0x961334._0x309c00)],..._0x581c5f[_0x47deb9(_0x961334._0x193e1f,-_0x961334._0x544477,0x19,-0x34)]?{'provider':_0x581c5f[_0x47deb9(_0x961334._0x38b9e7,-0x57,-0x78,-_0x961334._0x25eb54)]}:{}};let _0x1426e1={'model':_0x581c5f[_0x44e503(0x3b3,0x486,0x400,_0x961334._0x325ccb)],..._0x581c5f['maxTokens']!==void 0x0?{'maxTokens':_0x581c5f[_0x44e503(0x37a,0x39f,_0x961334._0x3e84bf,_0x961334._0x10e767)]}:{},'system':structuredClone(_0x116132[_0x44e503(_0x961334._0x231796,0x3e7,0x385,0x31c)]),'messages':structuredClone(_0x116132[_0x47deb9(-_0x961334._0x33d1bf,-0x130,-_0x961334._0x495c20,-0x129)]),'tools':_0x2548e3[_0x44e503(_0x961334._0x1d18e9,0x356,_0x961334._0x41a365,_0x961334._0x1812e7)][_0x44e503(0x2fa,_0x961334._0x482607,_0x961334._0x380f64,_0x961334._0x20ee82)](),'metadata':{'sessionId':_0x116132['sessionId'],'turnId':_0x116132[_0x44e503(0x320,_0x961334._0x5723da,0x3bb,0x3c9)],'modelIdentity':_0x581c5f['modelIdentity'],..._0x581c5f[_0x44e503(_0x961334._0x31b543,0x360,_0x961334._0x16184f,0x450)]!==void 0x0?{'pricingProviderId':_0x581c5f['pricingProviderId']}:{}},..._0x2548e3[_0x44e503(_0x961334._0x4d5431,_0x961334._0x552db1,0x3e7,0x477)]?{'outputFormat':_0x2548e3['outputFormat']}:{}};_0x1426e1=await _0x2831af(_0x44e503(_0x961334._0x592461,_0x961334._0x3ffc01,_0x961334._0x7861c3,_0x961334._0xe6a75c),_0x1426e1);{const {pricingProviderId:_0x5bf1a4,..._0x350ba8}=_0x1426e1['metadata'];_0x1426e1={..._0x1426e1,'metadata':{..._0x350ba8,..._0x581c5f[_0x44e503(_0x961334._0x1b5513,_0x961334._0x16ea31,_0x961334._0x1231a9,_0x961334._0x228a1f)]!==void 0x0?{'pricingProviderId':_0x581c5f[_0x47deb9(_0x961334._0x20ded3,-0x44,-_0x961334._0x5bef27,-0x6d)]}:{}}};}await _0x2a5f5c({'type':_0x44e503(0x3ee,_0x961334._0x525a85,_0x961334._0x1956e1,_0x961334._0x524ded),'request':_0x1426e1});const _0x44cca7=Date[_0x44e503(0x238,0x22f,_0x961334._0x2c04d5,_0x961334._0x438818)]();_0x553045[_0x44e503(0x481,_0x961334._0x1de797,_0x961334._0x210d12,_0x961334._0x3bdfe0)]=_0x44cca7;let _0x4e0642=await executeModelRequest(_0x1426e1,_0x510e83,_0x581c5f,_0x2548e3,_0x593105,{'assistantMessageId':_0x3e6342,'reasoningMessageId':_0x3b4273,'meta':_0x553045});const _0x2eaca3=Date[_0x47deb9(-0x1a3,-0x16c,-0xeb,-_0x961334._0x5bbc49)]();_0x553045[_0x44e503(0x439,_0x961334._0x256348,_0x961334._0xd632e7,0x3c6)]=_0x2eaca3,_0x4e0642=await _0x2831af(_0x47deb9(-0xa7,-0xbc,-0x144,-_0x961334._0x5f071e),_0x4e0642);_0x4e0642[_0x47deb9(-_0x961334._0x364474,-_0x961334._0x335d0b,-0x1a2,-_0x961334._0x2c7fbf)]&&(_0x4e0642={..._0x4e0642,'providerState':{..._0x4e0642['providerState'],'originModelIdentity':_0x581c5f[_0x47deb9(-0xa,-0x5e,-0xfd,-0x11)]}});_0x4e0642=withEstimatedModelCost(_0x1426e1,_0x4e0642);const _0xf7c4c4=Math[_0x44e503(0x30c,0x403,0x379,_0x961334._0x19892f)](0x0,_0x2eaca3-_0x44cca7),_0x3e3dc4={'version':0x1,'usage':structuredClone(_0x4e0642[_0x44e503(_0x961334._0x80dd69,_0x961334._0x1ba5ba,_0x961334._0x63d39d,0x4a7)]),'modelTimeMs':_0xf7c4c4},_0xf05b61=_0x2a95af=>({..._0x553045,'metrics':{..._0x3e3dc4,'usage':structuredClone(_0x3e3dc4[_0x44e503(0x3e3,0x46f,0x42f,0x3fd)]),'completesRequest':_0x2a95af}});await _0x2a5f5c({'type':_0x47deb9(-_0x961334._0x1ef722,-_0x961334._0x5d6e85,-0xda,-0x12e),'response':_0x4e0642,'modelTimeMs':_0xf7c4c4}),_0x116132[_0x44e503(0x401,0x44d,0x430,_0x961334._0x3b40fa)]=_0x4e0642;let _0x42da86=await _0x2831af(_0x44e503(0x3df,0x27b,_0x961334._0x5c717c,_0x961334._0x47384e),withMessageId(responseToAssistantMessage(_0x4e0642),_0x3e6342));_0x42da86=withMessageId(_0x42da86,_0x3e6342);const _0x5524d0=getToolUseBlocks(_0x42da86),_0x4e8bee=await Promise[_0x44e503(0x32a,_0x961334._0x5e3606,_0x961334._0xfb4f0f,0x35c)](_0x5524d0[_0x44e503(0x373,0x28f,_0x961334._0x4eaf37,0x3e2)](_0x5af5ec=>_0x2831af(_0x44e503(0x33f,0x398,0x36d,0x3b3),_0x5af5ec)));_0x4e8bee[_0x44e503(0x27f,0x2e5,_0x961334._0x468094,0x329)]>0x0&&(_0x42da86=replaceToolUseBlocks(_0x42da86,_0x4e8bee));const _0x6ced4a=withMessageId(_0x42da86,_0x3e6342);_0x42da86=_0x6ced4a;const _0x439c48=createReasoningMessage(_0x42da86),_0x467649=createAssistantTextMessage(_0x42da86),_0x5ea8ad=createToolUseMessage(_0x42da86);_0x439c48&&await _0x2a5f5c({'type':'reasoning_message','message':withMessageId(_0x439c48,_0x3b4273)});_0x467649&&await _0x2a5f5c({'type':_0x47deb9(-_0x961334._0x172526,-0x18b,-0x1a6,-_0x961334._0x5c3b51),'message':withMessageId(_0x467649,_0x3e6342)});_0x5ea8ad&&await _0x2a5f5c({'type':_0x44e503(_0x961334._0x2aa13f,0x20c,_0x961334._0x211cd1,0x352),'message':withMessageId(_0x5ea8ad,_0x3e6342)});_0x116132['messages'][_0x47deb9(-0x239,-_0x961334._0x384016,-0x157,-0x226)](_0x6ced4a);_0x4e8bee[_0x44e503(_0x961334._0x516894,0x2f2,0x309,_0x961334._0x45b60d)]>0x0&&await _0x38fc5c(_0x6ced4a,_0xf05b61(![]));for(const _0x2ef0ca of _0x4e8bee){await _0x2a5f5c({'type':'tool_call','toolCall':structuredClone(_0x2ef0ca)});}if(_0x4e8bee[_0x47deb9(-0x1ef,-0x145,-_0x961334._0x3126ac,-_0x961334._0x2a0b78)]===0x0){const _0x54b451=await _0x3dc4f1(async()=>{await _0x38fc5c(_0x6ced4a,_0xf05b61(![]));});if(_0x54b451>0x0)continue;const _0x3abb4e=await _0x2831af(_0x44e503(0x291,_0x961334._0x4de12e,_0x961334._0x128811,0x291),_0x42da86),_0x324579=withMessageId(_0x3abb4e,_0x3e6342);return _0x116132[_0x47deb9(-0x28,-0xd4,-_0x961334._0x335fe7,-0x144)]=_0x324579,_0x116132[_0x47deb9(-0x1d5,-_0x961334._0x54cbb6,-_0x961334._0x44d3b0,-0x6f)][_0x116132['messages'][_0x44e503(0x377,0x29f,0x309,0x28d)]-0x1]=_0x324579,await _0x38fc5c(_0x324579,_0xf05b61(!![])),await _0xf45b50({'type':_0x44e503(0x39d,0x387,_0x961334._0x2a188d,_0x961334._0x2efd97),'message':_0x324579}),throwIfAborted(_0x5751a1),await _0x2548e3['registry'][_0x44e503(_0x961334._0x2b2e43,0x322,_0x961334._0x325b78,0x2f4)]('afterTurnComplete',_0x116132,_0x1e9bd8),await _0x2a5f5c({'type':_0x47deb9(-_0x961334._0x4a4e6d,-0x12f,-_0x961334._0x11fdb3,-0x71),'state':_0x116132}),{'status':_0x44e503(0x220,_0x961334._0x7861c3,_0x961334._0x1f0928,_0x961334._0x58d989),'finalMessage':_0x324579,'state':_0x116132};}let _0x52108b=await _0x2548e3[_0x47deb9(-0xfc,-0xaa,-0x83,-0x1f)][_0x44e503(0x43a,0x410,0x3a8,_0x961334._0x251844)](_0x4e8bee,_0x593105);const _0x2f7b05=_0x52108b[_0x47deb9(-0x194,-_0x961334._0x1f9913,-_0x961334._0x88c683,-0x134)](isAbortedToolResult),_0x4ef9b3=_0x2f7b05?_0x4fb6e2:_0x2831af,_0x29486a=_0x2f7b05?_0xf45b50:_0x2a5f5c;_0x52108b=await Promise[_0x44e503(_0x961334._0x2f9ff3,0x3aa,0x2ec,_0x961334._0xbf35e6)](_0x52108b[_0x47deb9(-_0x961334._0x47ccd0,-_0x961334._0x3d17be,-_0x961334._0x10e74e,-0x1a6)](_0x490c03=>_0x4ef9b3(_0x47deb9(-0x42,-0xa9,-0x5b,-0xf9),_0x490c03))),_0x116132[_0x47deb9(-0xde,-0x6a,-0x107,0x1a)][_0x47deb9(-_0x961334._0x1d2102,-0x194,-0x154,-_0x961334._0x8f1ead)](..._0x52108b);for(const _0x80cd46 of _0x52108b){await _0x29486a({'type':_0x44e503(_0x961334._0x3abc74,0x46c,_0x961334._0x58ffa5,0x407),'result':cloneToolResultForPublication2(_0x80cd46)});}const _0x279192=await _0x4ef9b3(_0x44e503(0x3ed,0x3fb,0x3d8,0x384),createToolResultUserMessage(_0x52108b));await _0x29486a({'type':_0x44e503(0x334,_0x961334._0x555272,0x2fc,0x322),'message':_0x279192}),_0x116132[_0x47deb9(-_0x961334._0x1d0aac,-_0x961334._0x379e0d,-0x7e,-_0x961334._0x52a363)][_0x47deb9(-_0x961334._0x1ef845,-_0x961334._0x384016,-_0x961334._0x400114,-_0x961334._0x3b181e)](_0x279192),await _0x38fc5c(_0x279192);if(_0x2f7b05)return{'status':_0x44e503(_0x961334._0x4c5fa4,0x3ae,_0x961334._0x8293f9,0x450),'state':_0x116132};await _0x3dc4f1();}}catch(_0x140833){if(!_0x5751a1['aborted'])throw new TurnFailedError(_0x140833,_0x116132);return{'status':_0x44e503(0x48e,_0x961334._0x4f1263,_0x961334._0x19b90d,0x322),'state':_0x116132};}}function createSessionId(){const _0x24c096={_0x17bdea:0x90,_0x172d11:0x16f,_0x5873e5:0x7b,_0x52578a:0x162},_0xefc41b={_0x1c2345:0xb4,_0x1d4f20:0x17f};function _0x338b22(_0x4c4397,_0x540cec,_0x32629,_0x2f50f8){return _0x28d661(_0x540cec,_0x540cec-0x4e,_0x32629-0x57,_0x2f50f8- -0x2f4);}function _0x14b086(_0x22a8e4,_0x26fce8,_0x10303a,_0x2e8be5){return _0x28d661(_0x2e8be5,_0x26fce8-_0xefc41b._0x1c2345,_0x10303a-_0xefc41b._0x1d4f20,_0x10303a- -0xfa);}return _0x338b22(-_0x24c096._0x17bdea,-_0x24c096._0x172d11,-_0x24c096._0x5873e5,-0x11b)+Date[_0x338b22(-0x1a9,-0x217,-0xf6,-0x19c)]()+'-'+Math['random']()[_0x14b086(0xb9,0x16b,0xb1,_0x24c096._0x52578a)](0x10)['slice'](0x2,0xa);}function createTurnId(_0x3e9df8){return'turn-'+_0x3e9df8;}function createDefaultMessage(_0x453e71){if(_0x453e71===void 0x0)return void 0x0;return normalizeUserInput(_0x453e71);}function normalizeUserInput(_0x5bc069){const _0x52b8cf={_0x44420e:0x528,_0xb93fe:0x542,_0x506593:0x55c,_0x2e31b8:0x598,_0x5ca401:0x46d,_0x27cebd:0x585},_0x5354b7={_0x116b09:0x17a,_0x41f9c1:0x321},_0x457efd={_0x1613b5:0x215,_0x31185f:0x18b};if(typeof _0x5bc069==='string')return{'role':_0xe1e851(0x503,_0x52b8cf._0x44420e,_0x52b8cf._0xb93fe,_0x52b8cf._0x506593),'content':[{'type':_0xe1e851(_0x52b8cf._0x2e31b8,_0x52b8cf._0x5ca401,0x51f,_0x52b8cf._0x27cebd),'text':_0x5bc069}]};function _0x2ad3f7(_0x43d4d9,_0x578c5b,_0x7baf9d,_0x4cd353){return _0x1ea0ad(_0x578c5b,_0x7baf9d-_0x457efd._0x1613b5,_0x7baf9d-_0x457efd._0x31185f,_0x4cd353-0x185);}function _0xe1e851(_0x2a45de,_0x19f301,_0x1b8fe6,_0x5a93a8){return _0x28d661(_0x5a93a8,_0x19f301-_0x5354b7._0x116b09,_0x1b8fe6-0x55,_0x1b8fe6-_0x5354b7._0x41f9c1);}return normalizeMessage(_0x5bc069);}function isTaggedSteeringInput(_0xa41365){const _0x2a95ed={_0x445f42:0x18c,_0x25b9a7:0x1fb,_0x3f9c46:0x336,_0x40ff99:0x2a1,_0x24ab6c:0x109,_0x3da720:0x1c6},_0x1abe6b={_0x22f18c:0x7},_0x245b08={_0x9a7887:0xcf};function _0x19de63(_0x1404e7,_0x34e71f,_0x1fefdd,_0x5e6fd6){return _0x28d661(_0x1404e7,_0x34e71f-0x1c2,_0x1fefdd-0x178,_0x1fefdd- -_0x245b08._0x9a7887);}function _0x1697c6(_0x509225,_0x4f9e93,_0x598655,_0x26d9c4){return _0x1ea0ad(_0x598655,_0x509225-0x289,_0x598655-0x12,_0x26d9c4-_0x1abe6b._0x22f18c);}return typeof _0xa41365===_0x19de63(_0x2a95ed._0x445f42,0x13a,0x156,0x16e)&&_0xa41365!==null&&_0x1697c6(0x2a4,_0x2a95ed._0x25b9a7,_0x2a95ed._0x3f9c46,_0x2a95ed._0x40ff99)in _0xa41365&&_0x19de63(0x154,_0x2a95ed._0x24ab6c,_0x2a95ed._0x3da720,0x236)in _0xa41365;}function resolveChatModel(_0x3e2f9c){const _0x402cb7={_0x55f5eb:0x4e2,_0x574128:0x43c,_0x1d6bb0:0x456,_0x4c215c:0x3c2,_0x5cbf03:0x426},_0x515baa={_0x5b5223:0x3e7,_0x59a8e7:0x50},_0x2c3355={_0x2c6542:0x16d,_0x5528dc:0x2b3};if(!_0x3e2f9c[_0x2543b5(0x52a,_0x402cb7._0x55f5eb,0x4a5,0x51b)])throw new Error(_0x5a82da(_0x402cb7._0x574128,0x4e0,0x47c,_0x402cb7._0x1d6bb0));function _0x2543b5(_0x335ba5,_0x266020,_0x3327f4,_0x36a0f9){return _0x28d661(_0x266020,_0x266020-_0x2c3355._0x2c6542,_0x3327f4-0x1d1,_0x3327f4-_0x2c3355._0x5528dc);}function _0x5a82da(_0x58c63,_0x47a285,_0x484e7f,_0x4a0619){return _0x1ea0ad(_0x47a285,_0x4a0619-_0x515baa._0x5b5223,_0x484e7f-0x2c,_0x4a0619-_0x515baa._0x59a8e7);}return _0x3e2f9c[_0x5a82da(0x39d,0x4d1,_0x402cb7._0x4c215c,_0x402cb7._0x5cbf03)];}function normalizeExecutionScope2(_0x179e02){const _0x39c1c9={_0x39e244:0x46,_0x36621d:0x69,_0x160b56:0xaf,_0x284f5a:0x420,_0x1f2ae6:0x440,_0xd7f193:0x489,_0x4db208:0x4da},_0x2a4849={_0xe3d63e:0x9},_0x2b57a5={_0x5466f9:0x134};function _0x2c0fd9(_0x1006a5,_0x5d75f0,_0x1ae4cd,_0x4e7bd8){return _0x1ea0ad(_0x4e7bd8,_0x5d75f0-0x4ea,_0x1ae4cd-_0x2b57a5._0x5466f9,_0x4e7bd8-0x1d6);}function _0x9eca0f(_0x532a04,_0x49c1ac,_0x75bfaa,_0x339ea4){return _0x1ea0ad(_0x49c1ac,_0x532a04-0x9c,_0x75bfaa-_0x2a4849._0xe3d63e,_0x339ea4-0x6);}return{'agentId':_0x179e02?.[_0x9eca0f(_0x39c1c9._0x39e244,_0x39c1c9._0x36621d,0x36,_0x39c1c9._0x160b56)]??_0x2c0fd9(_0x39c1c9._0x284f5a,0x4ce,0x507,_0x39c1c9._0x1f2ae6),'toolCallPath':[..._0x179e02?.[_0x2c0fd9(0x455,_0x39c1c9._0xd7f193,_0x39c1c9._0x4db208,0x3f2)]??[]]};}function createRegistry(_0x19f66f){const _0x323cda={_0x1557f7:0x1b6,_0x230686:0x2a1,_0xd4db72:0x458,_0x351667:0x322,_0x1c9bb0:0x39a,_0x148c1f:0x2e5,_0x2c866a:0x3ee,_0x505297:0x386},_0x349f0f={_0x5df5f6:0x1d9,_0x198f68:0x16c};if(_0x19f66f['registry'])return _0x19f66f[_0x4de848(0x26e,0x218,_0x323cda._0x1557f7,_0x323cda._0x230686)];const _0x571312=createExtensionRegistry(),_0x4afec8=_0x19f66f[_0x3e3a74(0x39f,_0x323cda._0xd4db72,_0x323cda._0x351667,0x331)]??[];for(const _0x2f4088 of _0x4afec8){_0x571312[_0x3e3a74(_0x323cda._0x1c9bb0,_0x323cda._0x148c1f,_0x323cda._0x2c866a,_0x323cda._0x505297)](_0x2f4088);}function _0x3e3a74(_0x588aed,_0x34b6b7,_0x30c1ad,_0x3bbb99){return _0x28d661(_0x3bbb99,_0x34b6b7-_0x349f0f._0x5df5f6,_0x30c1ad-0x7e,_0x588aed-_0x349f0f._0x198f68);}function _0x4de848(_0x126433,_0x1a38d0,_0x268ed1,_0x162f05){return _0x1ea0ad(_0x1a38d0,_0x126433-0x2f4,_0x268ed1-0x1e7,_0x162f05-0x8f);}return _0x571312;}var Agent=class{[_0x1ea0ad(0xda,0x89,0xc4,0x138)];[_0x1ea0ad(-0xae,-0x79,-0xbe,-0x134)];[_0x28d661(0x128,0x177,0xd8,0x156)];['sessionId'];[_0x28d661(0x231,0x1df,0xe8,0x194)];['defaultMessage'];[_0x28d661(0x23b,0x149,0x239,0x206)];constructor(_0x515363={}){const _0x5a518c={_0x253dfd:0x54,_0x53b6e1:0x4b,_0x1d31da:0x6b,_0x311d8a:0x340,_0x557fe2:0x3f6,_0x3ff89e:0x433,_0x4381b8:0x476,_0x201fd9:0x41e,_0x187409:0x4e5,_0x5e3bc4:0x48c,_0x46ecab:0x40e,_0x52063a:0x37d,_0xa6d5c7:0x36c,_0x542b6e:0x3d4,_0x4215b3:0x64,_0x35a360:0x45,_0x5293b7:0x3cb,_0x37bf67:0x349,_0x2d61d7:0x1c,_0x587411:0x421,_0x56dede:0x372,_0x391076:0x17,_0x215292:0x89,_0xe0da66:0x12b,_0x58c96e:0x1b0,_0x488e79:0x11b,_0x192407:0x16a,_0x3fa178:0xcf,_0x2c79b4:0x1b8},_0x44addc={_0x4cf0b1:0xe3,_0xdb9f42:0x195},_0x46d133={_0x51efa1:0x2e5},_0x1938ae={_0x1dd534:0x241,_0x48e731:0x1b9},_0x37ae91={_0x1ce123:0xdd,_0x540bb9:0x1d9,_0x4f969f:0x270},_0x220ac0={_0x210095:0xc0};this[_0x3e91c3(0xb0,_0x5a518c._0x253dfd,-_0x5a518c._0x53b6e1,-_0x5a518c._0x1d31da)]=_0x515363[_0x319d62(_0x5a518c._0x311d8a,_0x5a518c._0x557fe2,0x44e,0x3d8)]??createSessionId();function _0x3e91c3(_0x2b86cc,_0xacd505,_0x361ecc,_0x1d9950){return _0x1ea0ad(_0x2b86cc,_0xacd505-0x81,_0x361ecc-_0x220ac0._0x210095,_0x1d9950-0xdf);}this[_0x319d62(_0x5a518c._0x3ff89e,_0x5a518c._0x4381b8,_0x5a518c._0x201fd9,0x3c5)]=0x0,this[_0x3e91c3(0x16e,0x10a,0x8f,0xcc)]=_0x515363[_0x319d62(_0x5a518c._0x187409,_0x5a518c._0x5e3bc4,0x541,0x3d1)]??'',this['messages']=(_0x515363['messages']??[])[_0x319d62(0x363,_0x5a518c._0x46ecab,0x477,0x38f)](normalizeMessage),this[_0x319d62(0x35b,0x415,_0x5a518c._0x52063a,_0x5a518c._0xa6d5c7)]=createDefaultMessage(_0x515363[_0x319d62(0x3c3,_0x5a518c._0x542b6e,0x3f4,0x3f6)]);function _0x319d62(_0xa9a279,_0xac420b,_0x32038d,_0x5c7214){return _0x28d661(_0x32038d,_0xac420b-_0x37ae91._0x1ce123,_0x32038d-_0x37ae91._0x540bb9,_0xac420b-_0x37ae91._0x4f969f);}this['metrics']=createAgentMetrics({'getContextWindowLimit':_0x515363[_0x3e91c3(-_0x5a518c._0x4215b3,0x41,_0x5a518c._0x35a360,0xa2)]});const _0x2ae264=_0x515363[_0x319d62(0x379,_0x5a518c._0x5293b7,0x330,_0x5a518c._0x37bf67)],_0x5c615b=async(_0x218d0f,_0x1d6c2b)=>{function _0x3ee96a(_0x21e228,_0x3224df,_0xb2209f,_0x5c2fa2){return _0x319d62(_0x21e228-0xd,_0x3224df- -_0x1938ae._0x1dd534,_0x21e228,_0x5c2fa2-_0x1938ae._0x48e731);}this[_0x3ee96a(_0x44addc._0x4cf0b1,0x185,0x15d,0x169)][_0x25cf4c(-_0x44addc._0xdb9f42,-0x187,-0x187,-0x1f8)](_0x218d0f);function _0x25cf4c(_0x892b53,_0x385d6d,_0x4730a9,_0x4a7b4b){return _0x3e91c3(_0x4730a9,_0x892b53- -_0x46d133._0x51efa1,_0x4730a9-0xe6,_0x4a7b4b-0x8b);}await _0x2ae264?.(_0x218d0f,_0x1d6c2b);},_0x4b2bc1=createRegistry(_0x515363),_0x525b2e=createInternalToolRuntime(_0x515363['tools']??[],{'onEvent':_0x5c615b,'onToolCall':_0x515363['onToolCall'],'registry':_0x4b2bc1,'beginProgramTrace':_0x515363['beginProgramTrace']});this[_0x3e91c3(0x8d,0x8,_0x5a518c._0x2d61d7,0x3b)]={'registry':_0x4b2bc1,'chatModel':resolveChatModel(_0x515363),'toolRuntime':_0x525b2e,'askUser':_0x515363[_0x319d62(_0x5a518c._0x587411,0x3fa,_0x5a518c._0x56dede,0x366)],'onEvent':_0x5c615b,'sessionDir':_0x515363[_0x3e91c3(_0x5a518c._0x391076,-0x1,_0x5a518c._0x215292,-0xd)],'outputFormat':_0x515363[_0x3e91c3(0x1d8,_0x5a518c._0xe0da66,0x185,_0x5a518c._0x58c96e)],'executionScope':normalizeExecutionScope2(_0x515363['executionScope']),'beginProgramTrace':_0x515363[_0x3e91c3(_0x5a518c._0x488e79,_0x5a518c._0x192407,_0x5a518c._0x3fa178,_0x5a518c._0x2c79b4)]};}get['systemPrompt'](){return this['_systemPrompt'];}['setTools'](_0x3540c3=[]){const _0x10f1ff={_0x11132a:0xee,_0x4894c7:0x1ae,_0x53e66c:0x560},_0x4dde4d={_0xc26934:0xc2,_0x2a0707:0x31d},_0x24d0b0={_0x20ee00:0x16a,_0xed94da:0x164,_0x5e4de5:0x2e8};function _0x3e5358(_0x5c1ea1,_0x3a8619,_0x3872d2,_0x1e30f2){return _0x28d661(_0x5c1ea1,_0x3a8619-_0x24d0b0._0x20ee00,_0x3872d2-_0x24d0b0._0xed94da,_0x3872d2- -_0x24d0b0._0x5e4de5);}function _0x4f2cec(_0x544a80,_0x542f84,_0x508dd5,_0x35df94){return _0x28d661(_0x508dd5,_0x542f84-_0x4dde4d._0xc26934,_0x508dd5-0x16e,_0x542f84-_0x4dde4d._0x2a0707);}this[_0x3e5358(-0x173,-_0x10f1ff._0x11132a,-_0x10f1ff._0x4894c7,-0x153)]['toolRuntime'][_0x4f2cec(_0x10f1ff._0x53e66c,0x4a2,0x4fa,0x49d)](_0x3540c3);}[_0x1ea0ad(0x11b,0x8f,0x2a,0x51)](){const _0x15beef={_0x646f06:0x75,_0x1572cd:0x42},_0x4c8400={_0x333b97:0xa5,_0x2c1c8a:0x1ca};function _0x300ec7(_0x1dd91b,_0x1c9147,_0x2cf858,_0x4dc6b9){return _0x1ea0ad(_0x4dc6b9,_0x2cf858-0xbb,_0x2cf858-_0x4c8400._0x333b97,_0x4dc6b9-_0x4c8400._0x2c1c8a);}return this[_0x300ec7(_0x15beef._0x646f06,0x71,_0x15beef._0x1572cd,0x2a)]['toolRuntime']['listToolSchemas']();}['setSystemPrompt'](_0x43bd7d,_0x3989cd={}){const _0x1408c4={_0x552637:0x405,_0x5c82fc:0x388,_0x338e55:0x20,_0x46afe4:0x28,_0x3f7a39:0xa8,_0x43716a:0x5e},_0x592cdc={_0xfd008:0x7e},_0x49377f={_0x1ac8d0:0x2ff};function _0x224d85(_0x42f517,_0xe49013,_0x41d661,_0x344870){return _0x1ea0ad(_0x344870,_0xe49013-_0x49377f._0x1ac8d0,_0x41d661-0xb,_0x344870-0x56);}this[_0x224d85(_0x1408c4._0x552637,_0x1408c4._0x5c82fc,0x42b,0x3e0)]=_0x43bd7d;function _0x2a569b(_0x183fbe,_0x149a31,_0x3a6d80,_0x345e85){return _0x1ea0ad(_0x345e85,_0x183fbe-0x85,_0x3a6d80-0x11f,_0x345e85-_0x592cdc._0xfd008);}_0x3989cd['resetMessages']===!![]&&(this[_0x2a569b(0x66,_0x1408c4._0x338e55,0x127,_0x1408c4._0x46afe4)]=[],this[_0x2a569b(0xd8,0x79,_0x1408c4._0x3f7a39,_0x1408c4._0x43716a)]=0x0);}[_0x28d661(0x188,0x15e,0x156,0x1ca)](_0x4a7bfa){const _0x222424={_0x1852ed:0x82,_0x72acb3:0xdd},_0x18a6fa={_0x46004e:0x91};function _0x2872fe(_0x5d85e8,_0x2076ae,_0x5a6615,_0x10f18e){return _0x28d661(_0x10f18e,_0x2076ae-0xb9,_0x5a6615-_0x18a6fa._0x46004e,_0x5d85e8- -0xd6);}this[_0x2872fe(0xb0,0xcc,_0x222424._0x1852ed,_0x222424._0x72acb3)]=_0x4a7bfa;}[_0x28d661(0x192,0x1cc,0x1a5,0x18d)](_0x12635d){const _0x1e7eb3={_0x4d047d:0x2fc,_0x22f4f7:0x13a};function _0x585b9d(_0x8d31fc,_0x2cbec9,_0x443cd5,_0x2ed0a4){return _0x1ea0ad(_0x8d31fc,_0x443cd5-_0x1e7eb3._0x4d047d,_0x443cd5-0x1d6,_0x2ed0a4-_0x1e7eb3._0x22f4f7);}this[_0x585b9d(0x314,0x1f7,0x283,0x26d)]['chatModel']=_0x12635d;}async[_0x1ea0ad(-0xe,0x3b,0x4e,0x6c)](_0x25eb7d=this['defaultMessage'],_0x295147={}){const _0x35a113={_0x887874:0xcf,_0x36e1c0:0x4c,_0x1723ed:0x5a3,_0x4e825d:0x5b7,_0x530304:0x47b,_0x3e8445:0x50b,_0x53cb0a:0x612,_0x4f1506:0x175,_0x475037:0x65,_0x13288e:0x594,_0x40476b:0x4af,_0x1c9fb7:0x48a,_0x59a82c:0xde,_0x502e0c:0x16c,_0x34fcf9:0x5df,_0x136548:0x658,_0x4da317:0x5e3,_0x1b5895:0x3ef,_0x5766d8:0x4a1,_0x1d9f2c:0x169,_0x3e1c09:0x141,_0x10d59e:0x4d2,_0x5b2240:0x4c3,_0x25a686:0x4ec,_0x5dd022:0x4ce,_0xf82626:0x48e,_0xac89ba:0x5a9,_0x3a09e2:0x552,_0xb170b:0x4f9,_0x375966:0x31},_0xf19041={_0xb51a5d:0x122,_0x16cabc:0xee},_0x4ff651={_0x492a89:0x34e};if(!_0x25eb7d)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');function _0x23d0a9(_0x15bf99,_0x2b3a94,_0x144512,_0x491000){return _0x28d661(_0x2b3a94,_0x2b3a94-0x173,_0x144512-0xa3,_0x144512-_0x4ff651._0x492a89);}this[_0x273f0f(-0x1e,-0x56,-_0x35a113._0x887874,-_0x35a113._0x36e1c0)]+=0x1;const _0x1a5e4c=_0x295147[_0x23d0a9(_0x35a113._0x1723ed,_0x35a113._0x4e825d,0x5de,0x64d)];function _0x273f0f(_0x4701f1,_0x341d86,_0x376282,_0x6513e7){return _0x1ea0ad(_0x6513e7,_0x376282- -_0xf19041._0xb51a5d,_0x376282-0x95,_0x6513e7-_0xf19041._0x16cabc);}try{const _0x4afed6=await runTurn({'sessionId':this[_0x23d0a9(0x4c9,_0x35a113._0x530304,0x4d4,_0x35a113._0x3e8445)],'turnId':createTurnId(this[_0x23d0a9(0x530,_0x35a113._0x53cb0a,0x554,0x4b6)]),'streaming':_0x295147['streaming'],'signal':_0x295147[_0x273f0f(-_0x35a113._0x4f1506,-_0x35a113._0x475037,-0x123,-0xde)],'system':this[_0x23d0a9(_0x35a113._0x13288e,0x60c,0x56a,0x5e0)],'messages':this[_0x23d0a9(_0x35a113._0x40476b,0x4f3,0x4e2,_0x35a113._0x1c9fb7)],'message':normalizeUserInput(_0x25eb7d),..._0x295147[_0x273f0f(-_0x35a113._0x59a82c,-0x1be,-_0x35a113._0x502e0c,-0xe0)]===!![]?{'transientInput':!![]}:{},..._0x295147[_0x23d0a9(_0x35a113._0x34fcf9,_0x35a113._0x136548,_0x35a113._0x4da317,0x52c)]===void 0x0?{}:{'submission':_0x295147['submission']},..._0x1a5e4c?{'drainSteering':async()=>(await _0x1a5e4c())[_0x23d0a9(0x50a,0x580,0x4ec,0x525)](_0x192ddb=>isTaggedSteeringInput(_0x192ddb)?{'input':normalizeUserInput(_0x192ddb[_0x23d0a9(0x53c,0x50e,0x51c,0x5bc)]),'submission':_0x192ddb[_0x273f0f(0x3b,-0x12,-0x40,-0x33)]}:normalizeUserInput(_0x192ddb))}:{}},this[_0x23d0a9(_0x35a113._0x1b5895,_0x35a113._0x5766d8,0x488,0x44d)]);return this[_0x273f0f(-_0x35a113._0x1d9f2c,-0xbf,-_0x35a113._0x3e1c09,-0x10a)]=_0x4afed6[_0x273f0f(-0x181,-0x13c,-0xe1,-0xef)][_0x23d0a9(0x5a2,0x4aa,0x4e2,0x575)][_0x23d0a9(_0x35a113._0x10d59e,_0x35a113._0x5b2240,_0x35a113._0x25a686,0x517)](normalizeMessage),_0x4afed6;}catch(_0x484ef4){if(_0x484ef4 instanceof TurnFailedError){this[_0x23d0a9(0x42d,_0x35a113._0x5dd022,0x4e2,0x51a)]=synthesizeMissingToolResults(_0x484ef4[_0x23d0a9(_0x35a113._0xf82626,_0x35a113._0xac89ba,0x542,0x5d5)][_0x23d0a9(0x51c,_0x35a113._0x3a09e2,0x4e2,_0x35a113._0x1723ed)][_0x23d0a9(0x4d0,0x491,0x4ec,_0x35a113._0xb170b)](normalizeMessage));throw _0x484ef4[_0x273f0f(-_0x35a113._0x375966,-0x9b,-0x9a,-0xae)];}throw _0x484ef4;}}};export{BASH_OUTPUT_MAX_BYTES,isBashArtifactStatus,writeBashArtifactStatus,createBashArtifact,normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,closeBoundNestedToolExecution,drainBoundNestedToolPersistence,commitBoundToolExecutionTerminalState,createInternalToolRuntime,createExtensionRegistry,ModelUsageOverflowError,emptyModelUsageTotals,isModelUsageTotals,isSubagentReportMeta,addModelUsageTotals,modelUsageTotalsEqual,modelUsageTotalsFromSnapshot,modelUsageTotalsFromHistory,createAgentMetrics,runTurn,Agent};