@nuvin/agent-core 0.4.0-rc.5 → 0.4.0-rc.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-WCUIFNCL.js +1 -0
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/chunk-YTDATWXW.js +1 -0
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/shared/bash-completion-visibility.d.ts +12 -0
- package/dist/shared/index.js +1 -1
- package/dist/shared/types.d.ts +13 -1
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-CVOXBVKH.js +0 -1
- package/dist/chunk-XNXDKQ47.js +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(_0x3d1fe6,_0x55c89d){const _0x199d95={_0x2a0c26:0x245,_0x3d371c:0x233,_0x5b3304:0x243,_0xaff4fe:0x25d,_0x187fd6:0x2fa,_0x433525:0x25d,_0xc0f35:0x1ad,_0x5afcba:0x258,_0x4fc5f3:0x26b,_0x2a0f73:0x254,_0x24d6ca:0x222,_0xffc1c2:0x310,_0x4c6944:0x227,_0x18c02c:0x293,_0x11ad49:0x250,_0x106f42:0x282,_0x3c5741:0x1af,_0x4e6e63:0x300,_0x31e298:0x32f,_0x446acd:0x27f,_0x1ead2a:0x1c1,_0x1ab392:0x21d,_0x874dd8:0x1e2,_0x3b5622:0x247,_0x1b8167:0x29a,_0x54e7ec:0x1ed,_0xabedb6:0x19b,_0x5ece2e:0x1f8,_0xf08917:0x150,_0x1b9e57:0x299,_0x3c21ee:0x376};function _0x5740e(_0x585c29,_0x3ded88,_0x548bca,_0x4f4954){return _0xd98e(_0x548bca-0xcd,_0x585c29);}const _0x3a4ea8=_0x3d1fe6();function _0x7bad(_0x5ec7d6,_0x55236c,_0x520a06,_0x35529d){return _0xd98e(_0x520a06-0xc8,_0x55236c);}while(!![]){try{const _0x2a2cd7=parseInt(_0x5740e(_0x199d95._0x2a0c26,0x2b3,_0x199d95._0x3d371c,_0x199d95._0x5b3304))/0x1+-parseInt(_0x7bad(_0x199d95._0xaff4fe,0x2a7,_0x199d95._0x187fd6,_0x199d95._0x433525))/0x2*(-parseInt(_0x5740e(_0x199d95._0xc0f35,0x1f8,_0x199d95._0x5afcba,_0x199d95._0x4fc5f3))/0x3)+parseInt(_0x7bad(0x325,_0x199d95._0x2a0f73,0x2fd,0x269))/0x4*(parseInt(_0x5740e(_0x199d95._0x24d6ca,_0x199d95._0xffc1c2,0x29a,_0x199d95._0x4c6944))/0x5)+parseInt(_0x7bad(_0x199d95._0x18c02c,0x29c,_0x199d95._0x11ad49,0x1bd))/0x6*(parseInt(_0x5740e(_0x199d95._0x106f42,0x1f8,0x1f7,_0x199d95._0x3c5741))/0x7)+parseInt(_0x5740e(0x2bc,_0x199d95._0x4e6e63,0x2ac,_0x199d95._0x31e298))/0x8*(-parseInt(_0x5740e(_0x199d95._0x446acd,_0x199d95._0x1ead2a,_0x199d95._0x1ab392,0x2a6))/0x9)+-parseInt(_0x5740e(0x258,_0x199d95._0x874dd8,0x221,_0x199d95._0x3b5622))/0xa*(-parseInt(_0x5740e(0x26a,_0x199d95._0x1b8167,0x295,_0x199d95._0x54e7ec))/0xb)+parseInt(_0x5740e(_0x199d95._0xabedb6,0x236,_0x199d95._0x5ece2e,_0x199d95._0xf08917))/0xc*(-parseInt(_0x7bad(_0x199d95._0x1b9e57,_0x199d95._0x3c21ee,0x2e2,0x375))/0xd);if(_0x2a2cd7===_0x55c89d)break;else _0x3a4ea8['push'](_0x3a4ea8['shift']());}catch(_0x5bc809){_0x3a4ea8['push'](_0x3a4ea8['shift']());}}}(_0x5624,0x40c78));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 _0x316912}from'fs';import*as _0x1b5d18 from'fs/promises';import*as _0x5c1b3c 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([_0x2f39af(0x22f,0x2cd,0x308,0x2e0),_0x2f39af(0x3a2,0x39c,0x38b,0x341),_0x3e74bf(-0x5e,-0x71,-0x3a,-0x119),_0x2f39af(0x23b,0x2ef,0x2fb,0x339),_0x3e74bf(-0x44,0x6e,0x119,0xf),'error',_0x2f39af(0x2d4,0x2b3,0x278,0x35a)]),CAPTURE_STATES=new Set([_0x2f39af(0x3fe,0x3ad,0x39a,0x322),_0x3e74bf(-0x5,-0x93,-0x60,-0xa),_0x3e74bf(-0x65,-0x2,0x93,0x5),_0x2f39af(0x301,0x30d,0x25b,0x261),'interrupted']),TERMINAL_EXECUTION_STATES=new Set([_0x2f39af(0x350,0x2ef,0x361,0x2d5),_0x2f39af(0x48d,0x3f2,0x359,0x44a),'error',_0x3e74bf(-0x15e,-0xd1,-0x94,-0xd0)]);function _0x3e74bf(_0x3b8c70,_0x4dc4cf,_0x170fac,_0x2b4588){return _0xd98e(_0x4dc4cf- -0x195,_0x170fac);}function createArtifactNormalizer(){const _0x2d47a7={_0x496199:0xf0,_0x94fefc:0xea,_0x3e6334:0x1fe,_0x50cbc1:0x210};let _0x5ce481=![],_0x33b2cd=![];return{'write'(_0x17a3f6){const _0xafc238={_0x4a5536:0x82};function _0x55c6b9(_0x55cd67,_0x151447,_0x308407,_0x1d953d){return _0xd98e(_0x1d953d- -_0xafc238._0x4a5536,_0x308407);}function _0x3e6743(_0x1c8abe,_0x30bc22,_0x232474,_0x5baafb){return _0xd98e(_0x232474-0x194,_0x30bc22);}if(_0x33b2cd)return'';let _0x24cbdf='';for(const _0x822209 of _0x17a3f6){if(_0x5ce481){_0x5ce481=![];if(_0x822209==='\x0a')continue;}if(_0x822209==='\x0d')_0x24cbdf+='\x0a',_0x5ce481=!![];else{if(_0x822209==='\x0a'||_0x822209==='\x09')_0x24cbdf+=_0x822209;else{const _0x4d6a07=_0x822209['codePointAt'](0x0)??0x0;_0x24cbdf+=_0x4d6a07<0x20||_0x4d6a07>=0x7f&&_0x4d6a07<=0x9f?'\x5cu'+_0x4d6a07[_0x55c6b9(0x1cf,_0x2d47a7._0x496199,_0x2d47a7._0x94fefc,0x131)](0x10)[_0x3e6743(_0x2d47a7._0x3e6334,_0x2d47a7._0x50cbc1,0x25e,0x2e7)](0x4,'0'):_0x822209;}}}return _0x24cbdf;},'end'(){return _0x33b2cd=!![],_0x5ce481=![],'';}};}function boundErrorCode(_0x474db8){const _0x27c503={_0x204a7b:0x3ad,_0x3ed703:0x3aa,_0x310167:0x440,_0x16fd64:0x3eb},_0x13cf9d={_0x2b040d:0x40c};function _0xd17721(_0x4ada83,_0x5ce11b,_0x133d61,_0x524f8f){return _0x3e74bf(_0x4ada83-0x1e0,_0x4ada83-_0x13cf9d._0x2b040d,_0x5ce11b,_0x524f8f-0x11e);}return _0x474db8['length']<=MAX_ERROR_CHARS?_0x474db8:_0x474db8[_0xd17721(_0x27c503._0x204a7b,_0x27c503._0x3ed703,_0x27c503._0x310167,_0x27c503._0x16fd64)](0x0,MAX_ERROR_CHARS);}function artifactError(_0x261169,_0x4841bf){const _0x16ce65={_0x48b514:0x491},_0x49a613={_0x1ff766:0x4b9,_0x16b2ad:0x97};function _0x329843(_0x298435,_0x40572f,_0x3cf2b5,_0x1861e6){return _0x3e74bf(_0x298435-0x13b,_0x40572f-_0x49a613._0x1ff766,_0x298435,_0x1861e6-_0x49a613._0x16b2ad);}return Object[_0x329843(0x3f7,_0x16ce65._0x48b514,0x3fe,0x51c)](new Error(_0x4841bf),{'code':_0x261169});}function stableErrorCode(_0x25abf2,_0x4cedd9){const _0x482e69={_0x53848b:0x3f,_0xc569cc:0x162,_0x111458:0x1fb,_0x48d7f5:0x10b,_0x1001f8:0xc5,_0xe10ed3:0x14c,_0x245e20:0x19,_0x771cb8:0x15f,_0x13ed06:0x116,_0x183fba:0xa9,_0x497372:0x1f2,_0x2b0194:0xfb,_0x503414:0x143},_0x495a0a={_0x440ed0:0x6b,_0x5e02b9:0x1a1},_0x2bbbfd={_0x41c8bc:0x90};function _0x9f173(_0x518e98,_0x3e9754,_0x568bac,_0x3801d1){return _0x3e74bf(_0x518e98-_0x2bbbfd._0x41c8bc,_0x3801d1-0xeb,_0x518e98,_0x3801d1-0x1d4);}if(typeof _0x25abf2==='object'&&_0x25abf2!==null&&_0x59e9c0(0xc3,0x129,0xd1,_0x482e69._0x53848b)in _0x25abf2&&typeof _0x25abf2[_0x9f173(_0x482e69._0xc569cc,_0x482e69._0x111458,_0x482e69._0x48d7f5,0x143)]===_0x59e9c0(_0x482e69._0x1001f8,_0x482e69._0xe10ed3,_0x482e69._0x245e20,0x14c)&&/^E[A-Z0-9_]{1,63}$/[_0x9f173(_0x482e69._0x771cb8,0x61,_0x482e69._0x13ed06,_0x482e69._0x183fba)](_0x25abf2['code']))return _0x25abf2[_0x9f173(0x142,_0x482e69._0x497372,_0x482e69._0x2b0194,_0x482e69._0x503414)];function _0x59e9c0(_0x13770b,_0x320f4e,_0x2f2115,_0x3006c4){return _0x3e74bf(_0x13770b-0x84,_0x13770b-_0x495a0a._0x440ed0,_0x320f4e,_0x3006c4-_0x495a0a._0x5e02b9);}return _0x4cedd9;}function throwMapped(_0x4ec095,_0x42d62b){const _0x281d7b=stableErrorCode(_0x4ec095,_0x42d62b);throw artifactError(_0x281d7b,_0x281d7b);}function isErrno(_0x1fc5d5,_0x1a0140){const _0x3e73ed={_0x76ee3e:0xb7},_0x3e6fc0={_0x5791bd:0x272},_0x4926c9={_0x4e5e6e:0x447,_0x1881c5:0xf1};function _0x3339cb(_0x4fd530,_0x544d18,_0x33af82,_0x558f94){return _0x2f39af(_0x558f94,_0x544d18- -_0x4926c9._0x4e5e6e,_0x33af82-0xf2,_0x558f94-_0x4926c9._0x1881c5);}function _0x379ead(_0x3b4df2,_0x4c82f0,_0x278bcc,_0xb14cdc){return _0x2f39af(_0x4c82f0,_0x278bcc- -_0x3e6fc0._0x5791bd,_0x278bcc-0x67,_0xb14cdc-0x10d);}return typeof _0x1fc5d5===_0x3339cb(0x49,-0x3b,-0x10,-_0x3e73ed._0x76ee3e)&&_0x1fc5d5!==null&&_0x3339cb(-0xea,-0x6b,-0x128,-0xda)in _0x1fc5d5&&_0x1fc5d5['code']===_0x1a0140;}function exclusiveWriteFlags(){const _0x3eccb1={_0x1c4aea:0x2bf,_0x2de140:0x2d4,_0x51ebd6:0x82,_0xf063d1:0x49,_0x342370:0x3a,_0x283b79:0x3d,_0x4468d1:0xf,_0x222219:0xeb,_0x554150:0x37,_0x2e30f6:0x14,_0x28077f:0x59,_0xbb1b8a:0x2,_0x60bcd7:0x3f1},_0x29c0c7={_0x493962:0x374},_0x2825b7={_0x19203e:0xf8,_0x412fa6:0x4a};function _0x1a428d(_0x132999,_0x2e51a6,_0x42da9d,_0x2a0cef){return _0x3e74bf(_0x132999-_0x2825b7._0x19203e,_0x132999- -_0x2825b7._0x412fa6,_0x2a0cef,_0x2a0cef-0xa3);}function _0x2174c2(_0x28082d,_0x375499,_0x5b5431,_0x1db239){return _0x3e74bf(_0x28082d-0x193,_0x5b5431-_0x29c0c7._0x493962,_0x1db239,_0x1db239-0x16);}let _0x48d695=_0x316912[_0x2174c2(_0x3eccb1._0x1c4aea,_0x3eccb1._0x2de140,0x356,0x32e)]|_0x316912[_0x1a428d(-0x1d,-_0x3eccb1._0x51ebd6,-_0x3eccb1._0xf063d1,-_0x3eccb1._0x342370)]|_0x316912[_0x1a428d(-_0x3eccb1._0x283b79,-0xbb,_0x3eccb1._0x4468d1,-_0x3eccb1._0x222219)];return typeof _0x316912['O_NOFOLLOW']===_0x1a428d(_0x3eccb1._0x554150,-_0x3eccb1._0x2e30f6,-_0x3eccb1._0x28077f,_0x3eccb1._0xbb1b8a)&&(_0x48d695|=_0x316912[_0x2174c2(0x423,0x342,_0x3eccb1._0x60bcd7,0x38e)]),_0x48d695;}function isBoundedString(_0x4c3f35,_0x515f54,_0x1a6e4a=![]){const _0x329f16={_0x46ba9e:0x88},_0x2eb1ec={_0x4c574c:0x13f,_0x261a70:0x30};function _0x1c029b(_0x470b9c,_0x454082,_0xac0374,_0x5a2674){return _0x3e74bf(_0x470b9c-0x183,_0x5a2674- -0x112,_0x454082,_0x5a2674-0x16a);}function _0x3fbca1(_0x2c8de0,_0x210be5,_0x1fc147,_0x1ebc54){return _0x3e74bf(_0x2c8de0-0xaf,_0x2c8de0- -_0x2eb1ec._0x4c574c,_0x210be5,_0x1ebc54-_0x2eb1ec._0x261a70);}return typeof _0x4c3f35==='string'&&(_0x1a6e4a||_0x4c3f35[_0x1c029b(-0x175,-0x1d6,-0x1b7,-0x1e2)]>0x0)&&_0x4c3f35['length']<=_0x515f54&&!_0x4c3f35[_0x1c029b(-0x17f,-_0x329f16._0x46ba9e,-0x120,-0xf1)]('\x00');}function isAbsolutePath(_0x1a241a){const _0x3be9c6={_0xd9882c:0xf1,_0x427f2c:0x1b5,_0x50860f:0x1aa,_0x43e8a0:0x175,_0x12d65e:0x1dc},_0x485773={_0x1e76f0:0x162,_0x3bded7:0x86},_0x2c294f={_0x1e89ad:0x86};function _0xaaa791(_0x46f435,_0x60c60,_0x30366e,_0x1e0d91){return _0x2f39af(_0x30366e,_0x1e0d91- -0x46a,_0x30366e-_0x2c294f._0x1e89ad,_0x1e0d91-0x173);}function _0x4da0d8(_0x2dd3d8,_0x410c3d,_0x2ad96f,_0x19f8cc){return _0x2f39af(_0x2ad96f,_0x19f8cc- -0xd3,_0x2ad96f-_0x485773._0x1e76f0,_0x19f8cc-_0x485773._0x3bded7);}return isBoundedString(_0x1a241a,MAX_PATH_CHARS)&&_0x5c1b3c[_0xaaa791(-_0x3be9c6._0xd9882c,-_0x3be9c6._0x427f2c,-_0x3be9c6._0x50860f,-_0x3be9c6._0x43e8a0)](_0x1a241a)&&_0x5c1b3c[_0x4da0d8(0x224,0x126,_0x3be9c6._0x50860f,_0x3be9c6._0x12d65e)](_0x1a241a)===_0x1a241a;}function isFiniteTime(_0xc33a09){const _0x9592e3={_0x58e570:0x6f,_0x2cc6a3:0x15,_0x13346f:0x69,_0x5984d4:0xcb},_0x52171f={_0xd2edeb:0x10e},_0x28169f={_0xc85547:0x19};function _0x5cea0e(_0x11d997,_0x12b21a,_0x4c9dbd,_0x460a87){return _0x3e74bf(_0x11d997-0xac,_0x12b21a- -_0x28169f._0xc85547,_0x460a87,_0x460a87-0x1c4);}function _0x2485fa(_0x319ad1,_0x5e7846,_0x3f6381,_0xc1edd8){return _0x3e74bf(_0x319ad1-0x1e9,_0xc1edd8-0x1f5,_0x319ad1,_0xc1edd8-_0x52171f._0xd2edeb);}return typeof _0xc33a09===_0x5cea0e(0x70,0x68,_0x9592e3._0x58e570,0xc0)&&Number[_0x5cea0e(_0x9592e3._0x2cc6a3,-_0x9592e3._0x13346f,-_0x9592e3._0x5984d4,-0xa1)](_0xc33a09);}function isNullableInteger(_0x418995){const _0x584059={_0x50e78b:0x6c,_0x2ab623:0xd2,_0x448094:0x35a,_0x5f49cb:0x372},_0x5ad007={_0x44bba3:0xe3,_0x4f38bb:0x37,_0xda8767:0x15b},_0x17b4bb={_0x559e1b:0x186};function _0x2add21(_0x159c5b,_0x5682ff,_0xb48951,_0x332b41){return _0x2f39af(_0x159c5b,_0x5682ff- -0x146,_0xb48951-0x161,_0x332b41-_0x17b4bb._0x559e1b);}function _0x296e36(_0x2770c1,_0x32d68e,_0x310a77,_0x1ee548){return _0x3e74bf(_0x2770c1-_0x5ad007._0x44bba3,_0x32d68e-_0x5ad007._0x4f38bb,_0x1ee548,_0x1ee548-_0x5ad007._0xda8767);}return _0x418995===null||typeof _0x418995===_0x296e36(_0x584059._0x50e78b,0xb8,0x16a,_0x584059._0x2ab623)&&Number[_0x2add21(0x29e,0x2ba,_0x584059._0x448094,_0x584059._0x5f49cb)](_0x418995);}function isNullableBoundedString(_0x1be10b,_0xd4dba3){return _0x1be10b===null||isBoundedString(_0x1be10b,_0xd4dba3);}function assertBoundedId(_0x5b9027,_0x2635e7){const _0x1d8f11={_0x1e71d6:0x32f,_0x13ded7:0x3da,_0x1c5c2f:0x408,_0x59cc14:0x3e9},_0x1529eb={_0x5e0b99:0xc1,_0x529e1d:0xd5,_0x21eb03:0x21},_0x23e486={_0x2a6d05:0x1c4};function _0x4b49ed(_0x3a5385,_0x5afc67,_0x53a27a,_0x526946){return _0x2f39af(_0x526946,_0x3a5385- -0x2a7,_0x53a27a-_0x23e486._0x2a6d05,_0x526946-0x1d7);}function _0x1e60b4(_0xf6d77c,_0x566b89,_0x2de877,_0x6bcf25){return _0x2f39af(_0x566b89,_0x2de877-_0x1529eb._0x5e0b99,_0x2de877-_0x1529eb._0x529e1d,_0x6bcf25-_0x1529eb._0x21eb03);}if(!isBoundedString(_0x5b9027,MAX_ID_CHARS))throw artifactError(_0x1e60b4(_0x1d8f11._0x1e71d6,_0x1d8f11._0x13ded7,0x385,_0x1d8f11._0x1c5c2f),_0x1e60b4(0x4a4,0x401,0x3f1,_0x1d8f11._0x59cc14)+_0x2635e7);}function takeUtf8Prefix(_0x280878,_0xb00dac){const _0x33be0c={_0x3dc646:0xc6,_0x4ed09a:0x8},_0x1aa309={_0x662697:0x10e};if(_0xb00dac<=0x0)return'';function _0x4b397d(_0x20b3ad,_0x67548e,_0x27f7c1,_0x4c4776){return _0x3e74bf(_0x20b3ad-0x176,_0x27f7c1-0xd8,_0x4c4776,_0x4c4776-_0x1aa309._0x662697);}let _0x2cd561=0x0,_0xe935fb=0x0;for(const _0x3eb402 of _0x280878){const _0x5e87b4=Buffer['byteLength'](_0x3eb402,'utf8');if(_0x2cd561+_0x5e87b4>_0xb00dac)break;_0x2cd561+=_0x5e87b4,_0xe935fb+=_0x3eb402[_0x4b397d(0x4b,_0x33be0c._0x3dc646,_0x33be0c._0x4ed09a,0x8f)];}return _0x280878['slice'](0x0,_0xe935fb);}function boundNullableCode(_0x5e0a39){if(_0x5e0a39===null)return null;return boundErrorCode(_0x5e0a39);}function _0xd98e(_0x47ae7a,_0x3df00f){_0x47ae7a=_0x47ae7a-0xba;const _0x562444=_0x5624();let _0xd98e6c=_0x562444[_0x47ae7a];if(_0xd98e['veaEzL']===undefined){var _0x249c06=function(_0x16f9f8){const _0x1f7cb1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x316912='',_0x1b5d18='';for(let _0x5c1b3c=0x0,_0x5ce481,_0x33b2cd,_0x17a3f6=0x0;_0x33b2cd=_0x16f9f8['charAt'](_0x17a3f6++);~_0x33b2cd&&(_0x5ce481=_0x5c1b3c%0x4?_0x5ce481*0x40+_0x33b2cd:_0x33b2cd,_0x5c1b3c++%0x4)?_0x316912+=String['fromCharCode'](0xff&_0x5ce481>>(-0x2*_0x5c1b3c&0x6)):0x0){_0x33b2cd=_0x1f7cb1['indexOf'](_0x33b2cd);}for(let _0x24cbdf=0x0,_0x822209=_0x316912['length'];_0x24cbdf<_0x822209;_0x24cbdf++){_0x1b5d18+='%'+('00'+_0x316912['charCodeAt'](_0x24cbdf)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1b5d18);};_0xd98e['tcYLLB']=_0x249c06,_0xd98e['OHSHsT']={},_0xd98e['veaEzL']=!![];}const _0x3f39e3=_0x562444[0x0],_0x5831fa=_0x47ae7a+_0x3f39e3,_0xde0dae=_0xd98e['OHSHsT'][_0x5831fa];return!_0xde0dae?(_0xd98e6c=_0xd98e['tcYLLB'](_0xd98e6c),_0xd98e['OHSHsT'][_0x5831fa]=_0xd98e6c):_0xd98e6c=_0xde0dae,_0xd98e6c;}async function writeAll(_0x1b5777,_0x497ebc){const _0x3dc87c={_0x589523:0x315,_0x45a5bf:0x276,_0x391122:0x26f,_0x46f3da:0x225,_0x419001:0x1f7,_0x328dad:0x4d9,_0xf33c2d:0x489,_0x502e5c:0x54e},_0x4487eb={_0x4dc038:0x167,_0x2a8e40:0x86,_0x30b7a7:0xe6},_0x159f48={_0x10988c:0x76,_0xd8966d:0x2};function _0x3dab7e(_0x3aa8dd,_0x394348,_0x540a8b,_0x46e80c){return _0x2f39af(_0x394348,_0x540a8b-0x166,_0x540a8b-_0x159f48._0x10988c,_0x46e80c-_0x159f48._0xd8966d);}function _0xf12f07(_0x52de6a,_0x2f0d65,_0x599df4,_0x448edc){return _0x2f39af(_0x448edc,_0x52de6a- -_0x4487eb._0x4dc038,_0x599df4-_0x4487eb._0x2a8e40,_0x448edc-_0x4487eb._0x30b7a7);}let _0x4049e8=0x0;while(_0x4049e8<_0x497ebc[_0xf12f07(0x276,0x1be,0x22f,_0x3dc87c._0x589523)]){const _0x59a436=await _0x1b5777['write'](_0x497ebc,_0x4049e8,_0x497ebc[_0xf12f07(_0x3dc87c._0x45a5bf,_0x3dc87c._0x391122,_0x3dc87c._0x46f3da,_0x3dc87c._0x419001)]-_0x4049e8);if(_0x59a436[_0x3dab7e(0x522,0x581,_0x3dc87c._0x328dad,0x525)]<=0x0)throw artifactError('EIO','Output\x20write\x20wrote\x20no\x20bytes');_0x4049e8+=_0x59a436[_0x3dab7e(0x54b,_0x3dc87c._0xf33c2d,0x4d9,_0x3dc87c._0x502e5c)];}}async function canonicalDirectory(_0x342f99){const _0x9563cc={_0x1eeff9:0x1be,_0x826b3b:0x11a,_0x365a97:0x1b7,_0x595277:0x250,_0x5e57b0:0x2dd,_0x971b36:0x195,_0x6c2fc1:0x145,_0x5210b7:0x16f,_0x36911e:0x26b,_0x2347df:0x219,_0x210203:0x264},_0x340ffe={_0x1cabd7:0x63,_0x13af7c:0x22f,_0x3b8d7c:0x1b3},_0x3815c5={_0x26eaf1:0x25},_0x2d41ef=await _0x1b5d18[_0x1efb28(_0x9563cc._0x1eeff9,_0x9563cc._0x826b3b,0x15c,_0x9563cc._0x365a97)](_0x342f99);if(_0x2d41ef[_0x1efb28(_0x9563cc._0x595277,0x1b6,0x222,0x1d9)]()||await _0x1b5d18[_0x1efb28(0x257,_0x9563cc._0x5e57b0,0x324,0x271)](_0x342f99)!==_0x342f99)throw artifactError(_0x152595(_0x9563cc._0x971b36,_0x9563cc._0x6c2fc1,0x169,_0x9563cc._0x5210b7),_0x1efb28(0x1bc,0x211,0x284,0x1dc));function _0x152595(_0x28f98e,_0x1240f2,_0x295cb5,_0x227837){return _0x3e74bf(_0x28f98e-_0x3815c5._0x26eaf1,_0x227837-0x242,_0x28f98e,_0x227837-0x67);}function _0x1efb28(_0x555d40,_0x40e4e9,_0x303e6,_0x115375){return _0x3e74bf(_0x555d40-_0x340ffe._0x1cabd7,_0x115375-_0x340ffe._0x13af7c,_0x555d40,_0x115375-_0x340ffe._0x3b8d7c);}if(!_0x2d41ef['isDirectory']())throw artifactError(_0x1efb28(0x263,0x234,0x283,0x26f),_0x152595(0x1b8,_0x9563cc._0x36911e,_0x9563cc._0x2347df,_0x9563cc._0x210203));return _0x2d41ef;}async function ensureDirectory(_0x3ac306){const _0x407498={_0x2beea6:0x534,_0x2a9306:0x521,_0x540e92:0x42f,_0x512135:0x524,_0xc9fb3:0x43a,_0x39ab43:0xf6,_0x2a832b:0xd7},_0x167a35={_0x511129:0x142,_0xb864b5:0x457,_0x46cf2d:0x1cd},_0x32aab9={_0x3300e1:0x1fb,_0x338eb2:0x142};function _0x29f372(_0x4b5f1d,_0x2e0cdc,_0x3eb15e,_0xf17c8e){return _0x2f39af(_0x2e0cdc,_0x3eb15e- -_0x32aab9._0x3300e1,_0x3eb15e-0x1f3,_0xf17c8e-_0x32aab9._0x338eb2);}function _0x4c0488(_0x35733c,_0x1a11a0,_0x3cfd8a,_0x167ab4){return _0x3e74bf(_0x35733c-_0x167a35._0x511129,_0x167ab4-_0x167a35._0xb864b5,_0x3cfd8a,_0x167ab4-_0x167a35._0x46cf2d);}try{try{await _0x1b5d18[_0x4c0488(_0x407498._0x2beea6,0x409,_0x407498._0x2a9306,0x4c1)](_0x3ac306,{'mode':0x1c0});}catch(_0x223ec0){if(!isErrno(_0x223ec0,_0x4c0488(_0x407498._0x540e92,0x38c,0x410,0x3b0)))throw _0x223ec0;}await canonicalDirectory(_0x3ac306),await _0x1b5d18[_0x4c0488(0x59b,_0x407498._0x512135,_0x407498._0xc9fb3,0x4ed)](_0x3ac306,0x1c0);}catch(_0x4be7aa){throwMapped(_0x4be7aa,_0x29f372(_0x407498._0x39ab43,_0x407498._0x2a832b,0x122,0x81));}}async function validateArtifactFiles(_0x4776ce){const _0x59f7ce={_0x49198e:0x163,_0x419d3d:0x289,_0x960534:0x1ea,_0x53a161:0x215,_0x21d136:0x251,_0x10c4cd:0x193,_0x222bbf:0x2ae,_0x8ef6db:0x28d,_0x58917c:0x107,_0x2ef8bf:0x1b9,_0x2fe4f6:0x164,_0x319228:0x112,_0x29b595:0x132,_0x4cf85d:0x2a8,_0x1fa515:0x247,_0x3ebf7c:0x245,_0x410863:0x32f,_0x4de33e:0x3db,_0x3548c1:0x407,_0x5a5e38:0x363},_0x301040={_0x4c72a2:0x157,_0x4a68ae:0x130},_0x3c49e5={_0x6d8dbf:0xdd,_0x54baaa:0x65};function _0xc5d4e8(_0x285a97,_0x2e705a,_0x5d2fbd,_0xb1062e){return _0x3e74bf(_0x285a97-_0x3c49e5._0x6d8dbf,_0x2e705a-0x350,_0x5d2fbd,_0xb1062e-_0x3c49e5._0x54baaa);}function _0xef12f9(_0x5292a4,_0x1c117c,_0x166a86,_0x36d791){return _0x2f39af(_0x36d791,_0x1c117c- -0x50e,_0x166a86-_0x301040._0x4c72a2,_0x36d791-_0x301040._0x4a68ae);}const _0x472e44=_0x5c1b3c[_0xef12f9(-0x17c,-_0x59f7ce._0x49198e,-0x1a1,-0x103)](_0x4776ce[_0xc5d4e8(0x237,_0x59f7ce._0x419d3d,_0x59f7ce._0x960534,_0x59f7ce._0x53a161)]),_0x230828=await canonicalDirectory(_0x472e44);for(const _0x328fcd of[_0x4776ce['outputPath'],_0x4776ce[_0xef12f9(-0x299,-_0x59f7ce._0x21d136,-0x262,-_0x59f7ce._0x10c4cd)]]){try{const _0x388394=await _0x1b5d18[_0xc5d4e8(0x2bf,0x2d8,0x295,0x29c)](_0x328fcd);if(_0x388394[_0xef12f9(-0x1f3,-0x1e0,-0x20b,-0x1eb)]())throw artifactError(_0xc5d4e8(0x1fe,0x27d,_0x59f7ce._0x222bbf,_0x59f7ce._0x8ef6db),_0xef12f9(-_0x59f7ce._0x58917c,-0x114,-0xd0,-_0x59f7ce._0x2ef8bf));if(!_0x388394[_0xef12f9(-_0x59f7ce._0x2fe4f6,-_0x59f7ce._0x319228,-_0x59f7ce._0x29b595,-0x178)]()||_0x388394[_0xc5d4e8(0x2e6,_0x59f7ce._0x4cf85d,_0x59f7ce._0x1fa515,0x348)]!==0x1)throw artifactError(_0xef12f9(-0x19a,-0x24a,-_0x59f7ce._0x3ebf7c,-0x2aa),_0xc5d4e8(_0x59f7ce._0x410863,_0x59f7ce._0x4de33e,_0x59f7ce._0x3548c1,_0x59f7ce._0x5a5e38));}catch(_0x1c349c){if(!isErrno(_0x1c349c,'ENOENT'))throw _0x1c349c;}}return _0x230828;}var STATUS_KEYS=new Set([_0x2f39af(0x31d,0x2ee,0x2f1,0x25d),_0x2f39af(0x44c,0x3c7,0x37e,0x327),'outputPath','statusPath',_0x2f39af(0x289,0x2aa,0x201,0x300),_0x3e74bf(0x68,0xc,0x30,0x13),_0x2f39af(0x33d,0x3ca,0x467,0x442),_0x2f39af(0x254,0x2d9,0x321,0x26c),_0x3e74bf(-0xc6,-0x4a,0x2f,0x64),_0x2f39af(0x24c,0x300,0x340,0x247),_0x2f39af(0x434,0x3a1,0x31b,0x3db),'finishedAt',_0x3e74bf(0x17,0x9a,0xd3,0x36),_0x3e74bf(0xb,0x3f,-0xd,0x74),_0x3e74bf(-0xc6,-0x86,-0xb,-0xe5),_0x3e74bf(0x16,-0x2,-0x39,-0x3c),_0x3e74bf(-0x7f,-0x2b,0x6a,0x3e),'startedAt',_0x2f39af(0x399,0x349,0x3cc,0x2de)]);function isRecord(_0x17f966){const _0x790e77={_0x59b453:0x3de,_0x5d5ee4:0x507,_0x40854a:0x3d2,_0xd06bcd:0x34e,_0x2a7db6:0x378,_0x579f4a:0x3f2},_0x1ba5b6={_0x2bede1:0x2ab,_0x304f8c:0x1c6},_0x25f681={_0x1f8637:0x5a,_0x5ac1bf:0x2e,_0xb9832c:0xff};function _0x32b988(_0x2471fd,_0x1b8e8d,_0x35b462,_0x12c7f7){return _0x2f39af(_0x12c7f7,_0x35b462-_0x25f681._0x1f8637,_0x35b462-_0x25f681._0x5ac1bf,_0x12c7f7-_0x25f681._0xb9832c);}function _0x5de807(_0x3ea88b,_0x20401a,_0x130d04,_0x5d01a9){return _0x3e74bf(_0x3ea88b-0xa9,_0x5d01a9-_0x1ba5b6._0x2bede1,_0x130d04,_0x5d01a9-_0x1ba5b6._0x304f8c);}return typeof _0x17f966===_0x32b988(_0x790e77._0x59b453,_0x790e77._0x5d5ee4,0x466,_0x790e77._0x40854a)&&_0x17f966!==null&&!Array[_0x32b988(_0x790e77._0xd06bcd,0x2de,_0x790e77._0x2a7db6,_0x790e77._0x579f4a)](_0x17f966);}function isBashArtifactStatus(_0x2d4f0f){const _0x522897={_0xf4cafc:0x251,_0x13619d:0x272,_0x779bb5:0x391,_0x354a9b:0x81,_0xa825d1:0x1f3,_0x35e72c:0x1de,_0x9cd91:0x242,_0x47f48e:0x1c4,_0xbc2fae:0x312,_0x1765f0:0x346,_0x365b2e:0x2ff,_0x24b69e:0xe0,_0x443564:0x212,_0x1b23b2:0x238,_0x260c6e:0x1f5,_0x4c6ca1:0xcc,_0xf957e1:0x2b,_0x4cde23:0x1ca,_0x5a38af:0x171,_0x818238:0x22f,_0x181fcb:0x2a9,_0x2fcbfc:0x272,_0x28e9fd:0x17f,_0x5cae55:0x4f,_0x41971a:0x386,_0x1b7b05:0x2ff,_0xb519ca:0xfa,_0x50bb3d:0x19a,_0x3c52a6:0x225,_0x20ba5c:0x270,_0x486c20:0xb8,_0x112b61:0x5c,_0x241ee7:0xd7,_0x4a3dcf:0x70,_0x5310ee:0xd5,_0xa2af4e:0x118,_0x2c2af7:0x245,_0x39f478:0x30f,_0x2c39a7:0x241,_0x1825ba:0xc3,_0x460012:0xe9,_0x115e8a:0x138,_0x95f428:0x90,_0x126b61:0x20,_0x3a4c4a:0x74,_0xf55cca:0x1c8,_0x330fd8:0x129,_0x1d7cc2:0x1bf,_0x338d22:0x1bd,_0x5530f6:0x261,_0x4ef8db:0x1ca,_0x5a85e6:0x154,_0x48915e:0x234,_0x175054:0x1fb,_0x56dc1a:0xe4,_0x2460a0:0x184,_0x5ec4f8:0x1b2,_0x57529b:0x1f9,_0x1d3e07:0x207,_0x26e540:0xde,_0x571dd1:0x109,_0xe68105:0x176,_0x200089:0x14a,_0x31e700:0x148,_0x399ae7:0x2a5,_0x40363e:0x158,_0x3dfe6c:0x186,_0x32f88d:0x194,_0x5b0693:0x219},_0x384fca={_0x34d4c5:0x4a1,_0x283aef:0x4};if(!isRecord(_0x2d4f0f))return![];const _0x3852df=_0x2d4f0f;if(Object[_0x575d48(-_0x522897._0xf4cafc,-0x2e6,-0x32b,-_0x522897._0x13619d)](_0x3852df)[_0x575d48(-_0x522897._0x779bb5,-0x2ae,-0x368,-0x2d7)](_0x1ebce5=>!STATUS_KEYS[_0x5b2091(-0x124,-0x90,-0xdd,-0x4a)](_0x1ebce5)))return![];if(_0x3852df['version']!==0x1)return![];if(typeof _0x3852df[_0x5b2091(-_0x522897._0x354a9b,-0xda,-0xa2,-0x136)]!==_0x575d48(-0x24b,-_0x522897._0xa825d1,-0x268,-_0x522897._0x35e72c)||!/^[0-9a-f]{8}-[0-9a-f]{4}-4[0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/[_0x575d48(-0x2e8,-_0x522897._0x9cd91,-_0x522897._0x47f48e,-0x27a)](_0x3852df['artifactId']))return![];if(!isAbsolutePath(_0x3852df[_0x575d48(-_0x522897._0xbc2fae,-0x2ea,-_0x522897._0x1765f0,-0x30c)])||!isAbsolutePath(_0x3852df[_0x575d48(-0x326,-0x395,-0x2e8,-_0x522897._0x365b2e)]))return![];const _0x1192b9=_0x5c1b3c['dirname'](_0x3852df[_0x5b2091(-0x20c,-0x1e4,-0x296,-0x247)]);if(_0x5c1b3c[_0x5b2091(-0x195,-_0x522897._0x24b69e,-0x7e,-0x177)](_0x1192b9)!==_0x3852df[_0x575d48(-_0x522897._0x443564,-0x174,-_0x522897._0x1b23b2,-_0x522897._0x260c6e)]||_0x5c1b3c[_0x5b2091(-0xa4,-0xe0,-_0x522897._0x4c6ca1,-_0x522897._0xf957e1)](_0x5c1b3c[_0x575d48(-_0x522897._0x4cde23,-_0x522897._0x5a38af,-0x228,-0x211)](_0x1192b9))!==_0x575d48(-0x22c,-0x1da,-0x1f9,-_0x522897._0x818238))return![];if(_0x3852df[_0x575d48(-_0x522897._0x181fcb,-_0x522897._0x2fcbfc,-0x2e9,-0x30c)]!==_0x5c1b3c[_0x5b2091(-0x26c,-0x1bd,-0x161,-0x17d)](_0x1192b9,_0x5b2091(-_0x522897._0x28e9fd,-0xe4,-0x122,-_0x522897._0x5cae55))||_0x3852df[_0x575d48(-0x267,-0x3ad,-_0x522897._0x41971a,-_0x522897._0x1b7b05)]!==_0x5c1b3c['join'](_0x1192b9,_0x5b2091(-_0x522897._0xb519ca,-_0x522897._0x50bb3d,-0x1dd,-_0x522897._0x3c52a6)))return![];if(!isRecord(_0x3852df[_0x575d48(-0x2e0,-0x381,-_0x522897._0x20ba5c,-_0x522897._0xbc2fae)]))return![];const _0x3a20e0=_0x3852df['owner'];if(Object[_0x575d48(-0x252,-0x32c,-0x1b5,-0x272)](_0x3a20e0)['some'](_0x3263f6=>![_0x5b2091(-0x243,-0x1d6,-0x1f4,-0x249),'workspace','sessionId'][_0x5b2091(-0x118,-0xfc,-0xc9,-0x1a0)](_0x3263f6)))return![];if(!isBoundedString(_0x3a20e0['profile'],MAX_ID_CHARS))return![];if(!isBoundedString(_0x3a20e0['workspace'],MAX_ID_CHARS))return![];if(!isBoundedString(_0x3a20e0[_0x5b2091(-0x114,-_0x522897._0x486c20,-0xf6,-0x49)],MAX_ID_CHARS))return![];function _0x5b2091(_0x10c8aa,_0x4de606,_0x29f542,_0x43b2ce){return _0x2f39af(_0x43b2ce,_0x4de606- -_0x384fca._0x34d4c5,_0x29f542-0xca,_0x43b2ce-_0x384fca._0x283aef);}if(!isBoundedString(_0x3852df[_0x5b2091(-0x102,-0x111,-0xfa,-_0x522897._0x112b61)],MAX_ID_CHARS))return![];if(_0x3852df[_0x5b2091(-0x194,-_0x522897._0x241ee7,-0xe9,-0x159)]!==void 0x0&&!isBoundedString(_0x3852df[_0x5b2091(-_0x522897._0x4a3dcf,-0xd7,-_0x522897._0x5310ee,-_0x522897._0xa2af4e)],MAX_ID_CHARS))return![];if(typeof _0x3852df[_0x575d48(-_0x522897._0x2c2af7,-_0x522897._0x39f478,-_0x522897._0x2c39a7,-0x2e3)]!==_0x5b2091(-0xfd,-_0x522897._0x1825ba,-_0x522897._0x460012,-0x17e)||!EXECUTION_STATES[_0x5b2091(-_0x522897._0x115e8a,-_0x522897._0x95f428,-_0x522897._0x126b61,-_0x522897._0x3a4c4a)](_0x3852df[_0x5b2091(-0x1a1,-_0x522897._0xf55cca,-_0x522897._0x330fd8,-0x1a3)]))return![];if(!isNullableInteger(_0x3852df[_0x5b2091(-_0x522897._0x1d7cc2,-0x167,-0xe6,-0x1e9)]))return![];if(!isNullableBoundedString(_0x3852df['signal'],MAX_ERROR_CHARS))return![];if(!isNullableBoundedString(_0x3852df[_0x575d48(-_0x522897._0x338d22,-_0x522897._0x5530f6,-_0x522897._0x4ef8db,-0x21b)],MAX_ERROR_CHARS))return![];if(!(_0x3852df[_0x575d48(-_0x522897._0x5a85e6,-0x1b6,-_0x522897._0x48915e,-0x1cc)]===null||isFiniteTime(_0x3852df['finishedAt'])))return![];if(typeof _0x3852df[_0x575d48(-_0x522897._0x175054,-_0x522897._0x56dc1a,-0x25b,-0x19e)]!=='string'||!CAPTURE_STATES['has'](_0x3852df['captureState']))return![];if(typeof _0x3852df[_0x575d48(-0x184,-_0x522897._0x2460a0,-_0x522897._0x5ec4f8,-_0x522897._0x57529b)]!==_0x575d48(-_0x522897._0x1d3e07,-0x235,-0x1c5,-0x1b7)||!Number['isInteger'](_0x3852df[_0x5b2091(-0x16d,-_0x522897._0x26e540,-0x126,-0x6b)])||_0x3852df['bytesRetained']<0x0||_0x3852df[_0x575d48(-0x29b,-0x182,-_0x522897._0x5a38af,-0x1f9)]>BASH_OUTPUT_MAX_BYTES)return![];if(_0x3852df['maxBytes']!==BASH_OUTPUT_MAX_BYTES)return![];if(typeof _0x3852df[_0x5b2091(-_0x522897._0x571dd1,-0x11f,-_0x522897._0xe68105,-0xea)]!==_0x5b2091(-_0x522897._0x200089,-0x198,-0x1db,-0x1c8))return![];if(!isNullableBoundedString(_0x3852df[_0x5b2091(-0xd2,-_0x522897._0x31e700,-0xce,-0x1b7)],MAX_ERROR_CHARS))return![];function _0x575d48(_0x5d5a58,_0x3e316d,_0xc04c3a,_0x1c6df1){return _0x2f39af(_0xc04c3a,_0x1c6df1- -0x5bc,_0xc04c3a-0xf8,_0x1c6df1-0xff);}if(!isFiniteTime(_0x3852df[_0x575d48(-0x1c7,-_0x522897._0x399ae7,-0x2b5,-0x26b)])||!isFiniteTime(_0x3852df[_0x5b2091(-0x17c,-_0x522897._0x40363e,-0x13d,-0x162)]))return![];return Buffer[_0x575d48(-0x273,-0x287,-_0x522897._0x3dfe6c,-0x1df)](JSON[_0x5b2091(-_0x522897._0x32f88d,-0x17a,-0x205,-_0x522897._0x5b0693)](_0x3852df),'utf8')<=MAX_STATUS_BYTES;}async function writeBashArtifactStatus(_0x100520){const _0x3ea6f4={_0x5ba3c9:0x208,_0x13d7f6:0x18b,_0x5a05d4:0x64,_0xa9ae61:0x16,_0x36b5c9:0x6b,_0x1fe538:0x27e,_0x5cbdb3:0x1ca,_0x7545cc:0xf8,_0x37866b:0x255,_0x5ef2fe:0x150,_0x3c3542:0x4f,_0x8ee8ba:0x100,_0x1e557c:0x23,_0x5c07a6:0x30,_0x255a55:0xc1,_0x1f26cc:0x11e,_0x3d4df3:0xfb,_0x2e861a:0x8a,_0x5683c8:0x20d,_0x769afa:0xd6,_0xdeba91:0x1f,_0x4c1c41:0xc9,_0x38fec2:0x49,_0x33fad3:0xf,_0x15dc19:0x3b,_0x242ca0:0xb8,_0x166f09:0x8e,_0x3cb843:0x216,_0x18408e:0xce,_0x120d5b:0xdb,_0x1ae5c2:0xee,_0x1e5ad5:0x46,_0xbbe812:0xd,_0x11fb1d:0x16d,_0x20265f:0x17,_0x135643:0xe7,_0x512072:0x2b,_0x231506:0x19,_0x38bd1b:0x4b,_0x3747b0:0x164,_0x2ee326:0x17d,_0x13de75:0x3a,_0x179ae4:0x44,_0x59e246:0x47,_0x387fb9:0x12,_0x13b793:0x19,_0x2ef15c:0x9b,_0x3db85e:0x55,_0x5b61ac:0x151,_0x1bf3ad:0x18a,_0x21ee9f:0x6e,_0x3dafd5:0x3a,_0x3b4a04:0x8f,_0xb6a6de:0x128,_0x5d2475:0x175,_0x145291:0x1be,_0x42c701:0x5e,_0x1efef4:0x6c,_0x1cdf3f:0xa0,_0x12661c:0x181,_0x552bb0:0x1de,_0x2a55c6:0x6c,_0x153104:0x210,_0x944f07:0x23d,_0x465632:0x3b,_0x14d25e:0x79},_0x3bd8a4={_0x1c35d5:0x4ca},_0x4877a3={_0x202daf:0x8f};if(!isBashArtifactStatus(_0x100520))throw artifactError(_0x34c5fd(-0x2a1,-_0x3ea6f4._0x5ba3c9,-0x206,-_0x3ea6f4._0x13d7f6),_0x127b71(_0x3ea6f4._0x5a05d4,-_0x3ea6f4._0xa9ae61,0x7f,-_0x3ea6f4._0x36b5c9));const _0x5a5cf4=Buffer[_0x34c5fd(-0x29d,-_0x3ea6f4._0x1fe538,-0x21f,-_0x3ea6f4._0x5cbdb3)](JSON[_0x34c5fd(-_0x3ea6f4._0x7545cc,-_0x3ea6f4._0x37866b,-0x1a3,-_0x3ea6f4._0x5ef2fe)](_0x100520),_0x127b71(0x3e,_0x3ea6f4._0x3c3542,0x2f,_0x3ea6f4._0x8ee8ba));if(_0x5a5cf4['byteLength']>MAX_STATUS_BYTES)throw artifactError('ENAMETOOLONG',_0x127b71(0x60,_0x3ea6f4._0x1e557c,_0x3ea6f4._0x5c07a6,_0x3ea6f4._0x255a55));function _0x127b71(_0x1a03d9,_0x1d866e,_0x31e67f,_0x235eae){return _0x3e74bf(_0x1a03d9-0x10c,_0x1d866e-_0x4877a3._0x202daf,_0x1a03d9,_0x235eae-0x183);}const _0x28301d=_0x5c1b3c[_0x127b71(_0x3ea6f4._0x1f26cc,0xb6,_0x3ea6f4._0x3d4df3,_0x3ea6f4._0x2e861a)](_0x100520[_0x34c5fd(-0x215,-0x188,-_0x3ea6f4._0x5683c8,-0x2a0)]),_0x85966a=_0x5c1b3c['join'](_0x28301d,_0x127b71(0x5b,_0x3ea6f4._0x769afa,0x34,0xfc)+randomUUID()+'.tmp');let _0x11fc12,_0xd8aebf,_0x903550;function _0x34c5fd(_0xc972be,_0x64e468,_0x4100ec,_0xa9a827){return _0x2f39af(_0xc972be,_0x4100ec- -_0x3bd8a4._0x1c35d5,_0x4100ec-0x104,_0xa9a827-0x1a5);}try{_0xd8aebf=await validateArtifactFiles(_0x100520),_0x11fc12=await _0x1b5d18[_0x127b71(_0x3ea6f4._0x769afa,_0x3ea6f4._0x1f26cc,0x73,0x190)](_0x85966a,exclusiveWriteFlags(),0x180),_0x903550=await _0x11fc12[_0x127b71(_0x3ea6f4._0xdeba91,-0x22,-_0x3ea6f4._0x4c1c41,-0x84)]();const _0x42cafa=await canonicalDirectory(_0x28301d);if(_0x42cafa[_0x127b71(_0x3ea6f4._0x38fec2,0x6c,0xe6,_0x3ea6f4._0x33fad3)]!==_0xd8aebf['dev']||_0x42cafa[_0x127b71(-0x67,-_0x3ea6f4._0x15dc19,-_0x3ea6f4._0x242ca0,0x44)]!==_0xd8aebf[_0x127b71(-0x6c,-0x3b,0x1,-0x98)])throw artifactError(_0x127b71(0x72,-0x44,-_0x3ea6f4._0x166f09,-0x51),_0x34c5fd(-_0x3ea6f4._0x3cb843,-0x1b5,-0x199,-0x167));await _0x11fc12[_0x34c5fd(-_0x3ea6f4._0x18408e,-_0x3ea6f4._0x120d5b,-0xb0,-0xd6)](0x180),await writeAll(_0x11fc12,_0x5a5cf4),await _0x11fc12[_0x127b71(0x131,0xe3,0x140,_0x3ea6f4._0x1ae5c2)](),_0x11fc12=void 0x0;const _0x1604e2=await validateArtifactFiles(_0x100520),_0xc8df40=await _0x1b5d18[_0x127b71(-0x97,0x17,_0x3ea6f4._0x1e5ad5,_0x3ea6f4._0xbbe812)](_0x85966a);if(_0x1604e2[_0x34c5fd(-_0x3ea6f4._0x11fb1d,-0x184,-0x169,-0xde)]!==_0xd8aebf[_0x127b71(0xab,0x6c,-_0x3ea6f4._0x20265f,0x49)]||_0x1604e2[_0x127b71(-_0x3ea6f4._0x135643,-0x3b,-_0x3ea6f4._0x512072,-0x52)]!==_0xd8aebf[_0x127b71(0x6d,-_0x3ea6f4._0x15dc19,-0xd6,-0x79)]||!_0xc8df40['isFile']()||_0xc8df40[_0x127b71(-0x56,-_0x3ea6f4._0x231506,_0x3ea6f4._0x38bd1b,-0x4d)]!==0x1||_0xc8df40['dev']!==_0x903550[_0x34c5fd(-0xf1,-0x11f,-0x169,-0x196)]||_0xc8df40['ino']!==_0x903550[_0x34c5fd(-0x1b9,-_0x3ea6f4._0x3747b0,-0x210,-_0x3ea6f4._0x2ee326)])throw artifactError(_0x127b71(_0x3ea6f4._0x13de75,-_0x3ea6f4._0x179ae4,-0x72,-_0x3ea6f4._0x59e246),'Artifact\x20directory\x20or\x20temporary\x20file\x20was\x20substituted');await _0x1b5d18[_0x127b71(_0x3ea6f4._0x387fb9,_0x3ea6f4._0x13b793,-_0x3ea6f4._0x2ef15c,_0x3ea6f4._0x3db85e)](_0x85966a,_0x100520[_0x34c5fd(-_0x3ea6f4._0x5b61ac,-0x280,-0x20d,-_0x3ea6f4._0x1bf3ad)]);}catch(_0x41b110){if(_0x11fc12!==void 0x0)await _0x11fc12[_0x34c5fd(-0x16d,-0x182,-0xf2,-0xf1)]()[_0x127b71(0xa6,_0x3ea6f4._0x21ee9f,_0x3ea6f4._0x3dafd5,_0x3ea6f4._0x3b4a04)](()=>void 0x0);try{const _0x4411be=await canonicalDirectory(_0x28301d),_0x4bf81f=await _0x1b5d18[_0x34c5fd(-_0x3ea6f4._0xb6a6de,-_0x3ea6f4._0x5d2475,-_0x3ea6f4._0x145291,-0x266)](_0x85966a);_0x4411be[_0x127b71(_0x3ea6f4._0x42c701,_0x3ea6f4._0x1efef4,0x1e,0xdd)]===_0xd8aebf?.[_0x127b71(0x53,0x6c,_0x3ea6f4._0x1cdf3f,-0x19)]&&_0x4411be[_0x34c5fd(-_0x3ea6f4._0x12661c,-0x2b0,-0x210,-_0x3ea6f4._0x552bb0)]===_0xd8aebf?.[_0x34c5fd(-0x189,-0x1a3,-0x210,-0x163)]&&_0x4bf81f['dev']===_0x903550?.[_0x127b71(0x8b,_0x3ea6f4._0x2a55c6,0xc3,0x3b)]&&_0x4bf81f['ino']===_0x903550?.[_0x34c5fd(-0x212,-0x207,-_0x3ea6f4._0x153104,-_0x3ea6f4._0x944f07)]&&await _0x1b5d18['unlink'](_0x85966a);}catch{}throwMapped(_0x41b110,_0x127b71(-_0x3ea6f4._0x465632,0x28,-_0x3ea6f4._0x14d25e,0x26));}}async function createBashArtifact(_0x59806b){const _0x529797={_0x142f2c:0x1b,_0x2b5d66:0xa,_0x325d93:0xf7,_0x57ccfa:0xef,_0x7fb742:0x109,_0x3f23fb:0x4e,_0x23542b:0x38,_0x42caa9:0x23,_0x589fc3:0x13d,_0x40d382:0x179,_0x5da01a:0x31,_0x2a73b2:0x2c0,_0x280d2d:0x2a6,_0x1b623c:0x239,_0x3c8309:0xfb,_0x489a25:0xed,_0x185216:0xec,_0x372c7c:0xfe,_0x50c8b9:0x6f,_0x4de51b:0x253,_0x2ffee7:0x238,_0x386f4d:0x16,_0x551eed:0xc9,_0x2e1de3:0x176,_0xddc546:0xdf,_0x7f3e10:0x1c2,_0x4a9c53:0x2b3,_0x5c1a36:0x1f9,_0x2a3d24:0x116,_0x5a7f3e:0xb2,_0x93fafe:0xb4,_0x1c2628:0xce,_0x4a896a:0x1b1,_0x16707e:0xfc,_0x4e92de:0x2cb,_0x444f72:0x239,_0x3e85bd:0x144,_0x54fe71:0x18a,_0x242422:0x29e,_0x4588de:0x1f9,_0xe5260d:0x1aa,_0x1d89cf:0x1c3,_0x10c822:0x12d,_0x16e726:0x154,_0x3c21cb:0x67,_0x469c8c:0xfc,_0x2a3b41:0x3e,_0xb70a8:0x2da,_0x5e7ce0:0x28c,_0x504676:0xab,_0x323a89:0x233,_0x4ac340:0x1be,_0x51f975:0x22f,_0x5c5f32:0x1f,_0x8e4153:0x25,_0x34791e:0xf5,_0x3be5cb:0x19b,_0x1462e2:0x174,_0xa1f061:0x76,_0x1d6cd0:0x4c,_0x1d6442:0xc2,_0x5e32dc:0x207,_0x129e09:0x1a0,_0x5295b2:0x230,_0x2ab368:0x1d7,_0x59a93a:0x2b,_0x16ebe1:0x32,_0x1831e2:0x48,_0x238486:0x2a1,_0x1ea0c9:0x195,_0x5661c1:0x232,_0x40c68b:0x1fa,_0x20f29a:0x1b4,_0x4606d0:0x72,_0x2b3946:0x40,_0x12606b:0xb5,_0x157423:0x137,_0x419e7d:0x113,_0x24e99f:0x11f,_0x5ec0e9:0x1b8,_0x5d8c07:0x1a6,_0x29e311:0x1bd,_0x4be1d7:0x85,_0x553338:0x42,_0x1c1c1c:0x81,_0x44afa1:0x0,_0xbcc520:0x1e2,_0x357bd2:0x16a,_0x1430c4:0x240,_0x1e3408:0x22f,_0x1e6a0d:0x2c8,_0x28115e:0x1c9,_0x4c1c05:0x1e7,_0x4df243:0x11b,_0x2d95dd:0x26e,_0x3b2356:0x46,_0x2a7af2:0x161,_0x5f1a80:0xf6,_0x47d28d:0x3e,_0x5cdb58:0x95,_0x3b40eb:0xac,_0x4b7a00:0x291,_0x140cac:0x1c5,_0x5bccd3:0x1c0,_0x2b51f8:0x1ff,_0x1bf6a5:0x221,_0x2e8c36:0xb7,_0x370b14:0xa3,_0x5ba787:0x173,_0x1f9ce7:0x151,_0x38a798:0x293,_0xba5a05:0x26b,_0x9e3bf5:0x22f,_0x4b6a6e:0x139,_0x411c63:0x1e1,_0x249830:0x2d,_0x5afd4d:0xc6,_0x1c5e6e:0x1,_0x1b804c:0x29,_0x7ddc34:0x199,_0x31490a:0x1d0,_0x558940:0x121,_0x31988b:0x70,_0x6e89c1:0x12d,_0x2f088f:0x33,_0x4651a4:0x2c,_0x107806:0xc1,_0x471d5d:0xa0,_0x2bd6d5:0x7c,_0x16c7eb:0xe4,_0x32792c:0x108,_0x4a8e4a:0xe3,_0x48a9eb:0xf1,_0x1465f8:0x134,_0x3e4d6a:0x9d,_0x4403a2:0x1b9,_0xdfb346:0x149,_0x548d7d:0x171,_0x49427f:0xbe,_0x3f6fec:0x18b,_0x5bda9c:0xc7,_0x23befe:0x162,_0x91bc3b:0x11,_0x5c1397:0x13,_0x1218a1:0xd0,_0x8cb936:0x19d,_0x13844d:0x44,_0x14b32c:0x69,_0x5ccf3a:0xc5,_0x1a7c72:0x15b,_0x58dcce:0x219,_0xe9a6bd:0xc4,_0xac312c:0x39,_0x379737:0x68,_0x238db7:0x3e,_0x3996f4:0x60,_0x44e756:0xdf,_0x4cfd36:0x1cc,_0x5eb647:0x164,_0x24ae96:0xd6,_0x170905:0x182,_0x31184e:0x1df,_0x3dc2e8:0x3e,_0x3254eb:0xed,_0x5d01ca:0x6c,_0x5f189e:0xd3,_0x2d7e9c:0x6b,_0x157658:0xfa,_0x4d0eb8:0x21e,_0x574947:0x1c6,_0x1c602b:0x15c},_0x1d1896={_0x2a529f:0x6e,_0x1e3824:0x10b,_0x39e8e4:0x14c,_0x2d2566:0x16d,_0x520b6f:0x339},_0x128f54={_0x556164:0x38,_0x857b77:0x1f},_0x29e7f7={_0x30487b:0xae,_0xcb655f:0xfe},_0x3ac5a1={_0x2bd9e7:0x4db,_0x443127:0x5c2,_0x577fa4:0x554,_0x345f7e:0x622,_0x908d1a:0x600,_0x2dd92c:0x16b,_0x2bdc53:0x3fe,_0x8409b8:0x4c6,_0x345ee9:0x48d,_0xcecd76:0x44e},_0x10147e={_0x21a179:0xde,_0x55c529:0x154,_0x56b929:0xc1},_0xd22a52={_0x19062f:0x420,_0x1f0146:0x46a,_0x2ac6cc:0x231,_0x17372b:0x316,_0x3415d9:0x439,_0x586068:0x369,_0x3dacd5:0x2e1,_0x1a3a7d:0x1c2,_0x33fdf8:0x227,_0x1dba3f:0x1f8,_0x2d27ba:0x23d,_0x1b81bc:0x11b,_0x300019:0x186,_0x5c6789:0x20c,_0x9251d8:0x178,_0x42a57c:0x3fb,_0x38b215:0x48c},_0x284328={_0x454fbe:0x304,_0x35381b:0x2c1},_0x14daf9={_0x438040:0x132,_0x171ad6:0x2ef,_0x1b15cf:0x165},_0x3224d7={_0x19b709:0x1a6,_0x50c4d8:0x548,_0x202ed1:0x32d,_0x4f7c60:0x3aa,_0x5307ea:0x481,_0x5e1c02:0x44e,_0x40cb1b:0x45d,_0x3bf619:0xf8,_0x32ec0c:0x17f,_0x19eba4:0xe5,_0x1ddbe2:0x36a,_0x528e81:0x414},_0x3ab76f={_0x2dcc71:0x151,_0x270531:0x11b},_0x1da1b9={_0x339082:0xd,_0x416c10:0x8a,_0x3ddfd6:0x51,_0x9a6c8a:0x148,_0x3a4bdc:0x1a9,_0x51bf72:0x17a,_0x4f2a16:0x197,_0x1b251f:0x2b1,_0x3626e9:0x254,_0xbee684:0x209,_0x30e0df:0x1bf,_0x412822:0x80,_0x48500f:0x1f2,_0x3b1297:0x12a,_0x4a7e27:0x25,_0x4e4990:0x196,_0x37366c:0xe1,_0x116d67:0x1c,_0x53141c:0xb,_0x17037d:0x28,_0xdd7fe6:0x1c2,_0x2f8918:0x14a,_0x25205a:0xda,_0xd4153e:0x4,_0x19eff5:0x9},_0xb3988d={_0x220658:0x95},_0x57402e={_0x48959d:0x4af},_0x3f90a6={_0x542e57:0x30b,_0x546f0b:0x37d,_0x1861f1:0x2df},_0x51e487={_0xe84c21:0x486},_0x512bdb={_0x366cdd:0x1b6},_0x196b12={_0x4e0225:0x2f8,_0x924d6f:0x83},_0x3fa06e=Object[_0x4de84c(-_0x529797._0x142f2c,_0x529797._0x2b5d66,0x5,-0x79)]({'profile':_0x59806b[_0x4de84c(_0x529797._0x325d93,_0x529797._0x57ccfa,_0x529797._0x7fb742,0x4e)][_0x4de84c(0x5f,-_0x529797._0x3f23fb,-_0x529797._0x23542b,-_0x529797._0x42caa9)]['profile'],'workspace':_0x59806b[_0x4de84c(_0x529797._0x589fc3,0xef,_0x529797._0x40d382,_0x529797._0x5da01a)]['owner']['workspace'],'sessionId':_0x59806b['destination'][_0x324ebe(-0x226,-_0x529797._0x2a73b2,-_0x529797._0x280d2d,-_0x529797._0x1b623c)][_0x4de84c(0x195,0xf1,_0x529797._0x3c8309,_0x529797._0x489a25)]}),_0x222e29=_0x59806b['toolCallId'];assertBoundedId(_0x222e29,_0x4de84c(0x6,0x98,_0x529797._0x185216,_0x529797._0x372c7c)),assertBoundedId(_0x59806b[_0x4de84c(_0x529797._0x50c8b9,_0x529797._0x57ccfa,0xf0,0x17c)][_0x324ebe(-_0x529797._0x4de51b,-_0x529797._0x2ffee7,-0x273,-_0x529797._0x1b623c)][_0x4de84c(-_0x529797._0x386f4d,-0x2d,-_0x529797._0x551eed,0x8c)],_0x324ebe(-_0x529797._0x2e1de3,-_0x529797._0xddc546,-0x20e,-0x160)),assertBoundedId(_0x59806b['destination'][_0x324ebe(-_0x529797._0x7f3e10,-_0x529797._0x4a9c53,-_0x529797._0x5c1a36,-0x239)][_0x324ebe(-_0x529797._0x2a3d24,-_0x529797._0x5a7f3e,-_0x529797._0x93fafe,-0xf2)],'owner.workspace'),assertBoundedId(_0x59806b[_0x324ebe(-_0x529797._0x1c2628,-0x160,-_0x529797._0x4a896a,-_0x529797._0x16707e)][_0x324ebe(-0x2a2,-_0x529797._0x4e92de,-0x1f7,-_0x529797._0x444f72)][_0x324ebe(-0x56,-0x186,-_0x529797._0x3e85bd,-0xfa)],_0x324ebe(-0x241,-_0x529797._0x54fe71,-_0x529797._0x242422,-_0x529797._0x4588de));if(typeof _0x59806b[_0x4de84c(0xc5,_0x529797._0x57ccfa,0x185,0x65)][_0x4de84c(_0x529797._0xe5260d,_0x529797._0x2a3d24,_0x529797._0x1d89cf,0x150)]!==_0x324ebe(-_0x529797._0x10c822,-0x101,-_0x529797._0x16e726,-0x105)||_0x59806b[_0x324ebe(-0x179,-_0x529797._0x3c21cb,-0xa6,-_0x529797._0x469c8c)][_0x324ebe(-0x13b,-0x102,-_0x529797._0x2a3b41,-0xd5)][_0x324ebe(-0x194,-0x2ba,-_0x529797._0xb70a8,-0x22f)]===0x0)throw artifactError('EINVAL','Invalid\x20sessionDir');const _0x2234b1=_0x5c1b3c[_0x324ebe(-_0x529797._0x5e7ce0,-0x256,-0x2e0,-0x234)](_0x59806b[_0x324ebe(-0x101,-0xbf,-0x15a,-0xfc)][_0x324ebe(-_0x529797._0x504676,-0x15d,-0x59,-0xd5)]);if(_0x2234b1[_0x324ebe(-_0x529797._0x323a89,-0x1e4,-_0x529797._0x4ac340,-_0x529797._0x51f975)]>MAX_PATH_CHARS)throw artifactError(_0x4de84c(0xa6,_0x529797._0x5c5f32,_0x529797._0x8e4153,-0x2b),_0x4de84c(0x8c,_0x529797._0x34791e,0x192,_0x529797._0x3be5cb));let _0x139774;try{_0x139774=await _0x1b5d18[_0x324ebe(-_0x529797._0x1462e2,-0x9f,-0x14f,-0x11d)](_0x2234b1);}catch(_0x4323eb){throwMapped(_0x4323eb,_0x4de84c(_0x529797._0xa1f061,0x43,_0x529797._0x1d6cd0,_0x529797._0x1d6442));}let _0x5ecd15;try{_0x5ecd15=await _0x1b5d18[_0x324ebe(-_0x529797._0x5e32dc,-_0x529797._0x129e09,-_0x529797._0x5295b2,-_0x529797._0x2ab368)](_0x139774);}catch(_0x3d5851){throwMapped(_0x3d5851,_0x4de84c(-_0x529797._0x59a93a,0x43,-_0x529797._0x16ebe1,_0x529797._0x1831e2));}function _0x4de84c(_0x429033,_0x552df8,_0x2514fa,_0x4abfea){return _0x2f39af(_0x4abfea,_0x552df8- -_0x196b12._0x4e0225,_0x2514fa-0x15f,_0x4abfea-_0x196b12._0x924d6f);}if(_0x5ecd15['isSymbolicLink']())throw artifactError(_0x324ebe(-0x2c8,-_0x529797._0x238486,-_0x529797._0x1ea0c9,-_0x529797._0x5661c1),_0x324ebe(-0x15e,-0xfe,-_0x529797._0x40c68b,-_0x529797._0x20f29a));if(!_0x5ecd15[_0x4de84c(_0x529797._0x4606d0,_0x529797._0x2b3946,0xbc,_0x529797._0x12606b)]())throw artifactError(_0x324ebe(-_0x529797._0x157423,-_0x529797._0x419e7d,-0xcd,-_0x529797._0x24e99f),'Session\x20directory\x20is\x20not\x20a\x20directory');const _0x4fee6f=0x24,_0x3b1d4e=_0x139774[_0x324ebe(-0x2dd,-_0x529797._0x5ec0e9,-_0x529797._0x5d8c07,-0x22f)]+_0x324ebe(-0x13d,-0x197,-_0x529797._0x29e311,-0x16a)['length']+_0x4fee6f+'/output.log'[_0x4de84c(-_0x529797._0x4be1d7,-0x44,_0x529797._0x553338,-_0x529797._0x1c1c1c)],_0x1f0463=_0x139774[_0x4de84c(-_0x529797._0x372c7c,-0x44,_0x529797._0x44afa1,-0xee)]+_0x324ebe(-_0x529797._0xbcc520,-0xbc,-0x1ec,-_0x529797._0x357bd2)[_0x324ebe(-0x233,-_0x529797._0x1430c4,-0x188,-_0x529797._0x1e3408)]+_0x4fee6f+'/status.json'[_0x324ebe(-_0x529797._0x1e6a0d,-_0x529797._0x28115e,-_0x529797._0x4c1c05,-0x22f)];if(_0x3b1d4e>MAX_PATH_CHARS||_0x1f0463>MAX_PATH_CHARS)throw artifactError(_0x324ebe(-_0x529797._0x4df243,-_0x529797._0x2d95dd,-_0x529797._0x16e726,-0x1cc),_0x324ebe(-_0x529797._0x3b2356,-_0x529797._0x50c8b9,-_0x529797._0x2a7af2,-_0x529797._0x5f1a80));const _0x468933=_0x5c1b3c[_0x4de84c(-0x8b,-0x14,-_0x529797._0x47d28d,-0x8c)](_0x139774,_0x4de84c(0x148,_0x529797._0x5cdb58,_0x529797._0x3b40eb,0x23)),_0x389878=randomUUID(),_0x59ced0=_0x5c1b3c[_0x324ebe(-_0x529797._0x4b7a00,-_0x529797._0x140cac,-_0x529797._0x5bccd3,-_0x529797._0x2b51f8)](_0x468933,_0x389878),_0x4bbaaa=_0x5c1b3c[_0x324ebe(-_0x529797._0x1bf6a5,-0x25d,-0x2bd,-_0x529797._0x2b51f8)](_0x59ced0,_0x324ebe(-_0x529797._0x2e8c36,-0x151,-_0x529797._0x370b14,-0x126)),_0x29591a=_0x5c1b3c[_0x324ebe(-_0x529797._0x5ba787,-_0x529797._0x1f9ce7,-_0x529797._0x38a798,-0x1ff)](_0x59ced0,_0x324ebe(-0x142,-_0x529797._0xba5a05,-0x187,-0x1dc));if(_0x4bbaaa['length']>MAX_PATH_CHARS||_0x29591a[_0x324ebe(-0x1a0,-0x1a7,-0x260,-_0x529797._0x9e3bf5)]>MAX_PATH_CHARS)throw artifactError(_0x324ebe(-0x121,-0x177,-0x176,-0x1cc),'Artifact\x20path\x20exceeds\x20the\x20path\x20bound');const _0x57f414=Object[_0x324ebe(-0x248,-0x1ae,-_0x529797._0x4b6a6e,-_0x529797._0x411c63)]({'artifactId':_0x389878,'outputPath':_0x4bbaaa,'statusPath':_0x29591a}),_0x52531b=Date[_0x324ebe(-0x166,-0x158,-_0x529797._0x249830,-_0x529797._0x5afd4d)]();function _0x324ebe(_0x348f91,_0x937dd7,_0x4db7e1,_0x323e33){return _0x3e74bf(_0x348f91-_0x512bdb._0x366cdd,_0x323e33- -0x15f,_0x4db7e1,_0x323e33-0xa5);}const _0x56f69e=createArtifactNormalizer(),_0x5969d2=createArtifactNormalizer();let _0x177760=0x0,_0x2c2a7c=![],_0x1712be=null,_0x3192a9=![],_0x422d81=![],_0x5a91d0=![],_0x19df5c=null,_0x4a3bb3,_0x2817cb=null,_0x15e9ab=Promise[_0x324ebe(-0x25c,-0x1e6,-0x1ed,-0x234)]();const _0x1f4bcf=_0x4c2d5a=>{function _0x3f6ed7(_0x5d6824,_0x5cbb39,_0xbcacbe,_0x412006){return _0x324ebe(_0x5d6824-0xea,_0x5cbb39-0x49,_0x5cbb39,_0x5d6824-_0x51e487._0xe84c21);}const _0x2e525c=_0x15e9ab[_0x3f6ed7(0x33e,_0x3f90a6._0x542e57,_0x3f90a6._0x546f0b,_0x3f90a6._0x1861f1)](_0x4c2d5a);return _0x15e9ab=_0x2e525c['then'](()=>void 0x0,()=>void 0x0),_0x2e525c;},_0x49bcf7=_0x47088e=>{const _0x1b9df2={_0x2f5e12:0x1a8,_0xb15247:0x48a,_0x5b60aa:0xb6};function _0x1f579d(_0x5be8da,_0x2041b1,_0xc139a6,_0x13ba3e){return _0x4de84c(_0x5be8da-_0x1b9df2._0x2f5e12,_0x2041b1-_0x1b9df2._0xb15247,_0xc139a6-_0x1b9df2._0x5b60aa,_0xc139a6);}_0x1712be===null&&(_0x1712be=stableErrorCode(_0x47088e,_0x1f579d(0x40a,_0x57402e._0x48959d,0x462,0x521)));},_0xc9d84=async _0x5b1836=>{const _0x3478c6={_0x20755e:0x1a,_0x51fe3f:0xbe};function _0x1b4986(_0x54b55b,_0x5e2656,_0x2eb97a,_0xd89b2){return _0x324ebe(_0x54b55b-_0x3478c6._0x20755e,_0x5e2656-_0x3478c6._0x51fe3f,_0x5e2656,_0x2eb97a-0x3f3);}if(_0x2c2a7c||_0x1712be!==null||_0x19df5c===null||_0x5b1836[_0x322f8f(_0x1da1b9._0x339082,0x6b,_0x1da1b9._0x416c10,_0x1da1b9._0x3ddfd6)]===0x0)return;const _0x4a77f1=BASH_OUTPUT_MAX_BYTES-_0x177760;if(_0x4a77f1<=0x0){_0x2c2a7c=!![];return;}const _0x5970d0=takeUtf8Prefix(_0x5b1836,_0x4a77f1);Buffer[_0x322f8f(0x212,_0x1da1b9._0x9a6c8a,_0x1da1b9._0x3a4bdc,_0x1da1b9._0x51bf72)](_0x5970d0,_0x1b4986(_0x1da1b9._0x4f2a16,_0x1da1b9._0x1b251f,_0x1da1b9._0x3626e9,0x2f8))<Buffer[_0x322f8f(_0x1da1b9._0xbee684,0x239,_0x1da1b9._0x30e0df,_0x1da1b9._0x51bf72)](_0x5b1836,_0x322f8f(0x74,_0x1da1b9._0x412822,0xb0,0xe1))&&(_0x2c2a7c=!![]);if(_0x5970d0[_0x1b4986(_0x1da1b9._0x48500f,_0x1da1b9._0x3b1297,0x1c4,0x1d2)]===0x0){_0x2c2a7c=!![];return;}const _0x53b24f=Buffer[_0x322f8f(_0x1da1b9._0x4a7e27,0xb,-0x72,0x48)](_0x5970d0,_0x322f8f(0xd0,0x185,_0x1da1b9._0x4e4990,_0x1da1b9._0x37366c)),_0x186f92=_0x177760;let _0x45067e=0x0;function _0x322f8f(_0x3484b6,_0x3e4d66,_0x596aba,_0x3cf1a7){return _0x4de84c(_0x3484b6-0xfe,_0x3cf1a7-_0xb3988d._0x220658,_0x596aba-0x154,_0x3e4d66);}try{while(_0x45067e<_0x53b24f[_0x322f8f(-_0x1da1b9._0x116d67,_0x1da1b9._0x53141c,-_0x1da1b9._0x17037d,0x51)]){const {bytesWritten:_0x407190}=await _0x19df5c[_0x1b4986(0x26f,0x143,_0x1da1b9._0xdd7fe6,_0x1da1b9._0x2f8918)](_0x53b24f,_0x45067e,_0x53b24f[_0x322f8f(0x43,_0x1da1b9._0x25205a,_0x1da1b9._0xd4153e,0x51)]-_0x45067e);if(_0x407190===0x0)throw artifactError('EIO','Output\x20write\x20wrote\x20no\x20bytes');_0x45067e+=_0x407190,_0x177760+=_0x407190;}}catch(_0x2eb375){_0x49bcf7(_0x2eb375);let _0x21ef42=_0x45067e;while(_0x21ef42>0x0&&_0x21ef42<_0x53b24f[_0x322f8f(-0x30,_0x1da1b9._0x19eff5,0xe5,_0x1da1b9._0x3ddfd6)]&&(_0x53b24f[_0x21ef42]&0xc0)===0x80)_0x21ef42--;if(_0x21ef42!==_0x45067e)try{await _0x19df5c['truncate'](_0x186f92+_0x21ef42),_0x177760=_0x186f92+_0x21ef42;}catch{}}},_0x47cea7=async(_0x577a2b,_0x43729d)=>{const _0x46ed81={_0x170ce8:0x5d},_0xf84295=_0x577a2b==='stdout'?_0x56f69e:_0x5969d2;function _0x4b0dde(_0x371046,_0x4d83d8,_0x9312a,_0x59177a){return _0x4de84c(_0x371046-_0x3ab76f._0x2dcc71,_0x4d83d8-0x3ee,_0x9312a-_0x3ab76f._0x270531,_0x371046);}const _0x156745=Math[_0x196cb4(0x1a2,0x8a,_0x3224d7._0x19b709,0x10b)](OUTPUT_WRITE_HIGH_WATER_BYTES/0x6);function _0x196cb4(_0xf31ad8,_0x59b183,_0x579b76,_0x43d1f3){return _0x324ebe(_0xf31ad8-_0x46ed81._0x170ce8,_0x59b183-0x187,_0xf31ad8,_0x43d1f3-0x316);}for(let _0x565670=0x0;_0x565670<_0x43729d['length'];){if(_0x2c2a7c||_0x1712be!==null)return;let _0x281a39=Math[_0x4b0dde(0x468,0x50f,0x5ba,_0x3224d7._0x50c4d8)](_0x565670+_0x156745,_0x43729d[_0x4b0dde(_0x3224d7._0x202ed1,_0x3224d7._0x4f7c60,0x43c,0x36f)]);const _0x5c70a9=_0x43729d[_0x4b0dde(_0x3224d7._0x5307ea,_0x3224d7._0x5e1c02,0x3a3,_0x3224d7._0x40cb1b)](_0x281a39-0x1);if(_0x281a39<_0x43729d['length']&&_0x5c70a9>=0xd800&&_0x5c70a9<=0xdbff)_0x281a39--;await _0xc9d84(_0xf84295[_0x196cb4(0x96,_0x3224d7._0x3bf619,_0x3224d7._0x32ec0c,_0x3224d7._0x19eba4)](_0x43729d[_0x4b0dde(0x431,0x41b,_0x3224d7._0x1ddbe2,_0x3224d7._0x528e81)](_0x565670,_0x281a39))),_0x565670=_0x281a39;}},_0x5c6787=()=>{if(_0x1712be!==null)return _0x496482(_0x284328._0x454fbe,0x388,0x2dd,_0x284328._0x35381b);function _0x496482(_0xc4c627,_0x5d7ffa,_0x5797af,_0x17ab2e){return _0x4de84c(_0xc4c627-_0x14daf9._0x438040,_0xc4c627-_0x14daf9._0x171ad6,_0x5797af-_0x14daf9._0x1b15cf,_0x17ab2e);}if(_0x3192a9)return'interrupted';if(!_0x5a91d0)return'capturing';if(_0x2c2a7c)return'truncated';return'complete';},_0x20ac3b=(_0x1e0d90,_0xe50159)=>{const _0xd64bb9={_0x575095:0xda},_0x297ec9={_0x2f8ded:0x54};function _0x4cfe7b(_0x20114e,_0x3e0580,_0x41c465,_0x46f355){return _0x4de84c(_0x20114e-_0x297ec9._0x2f8ded,_0x3e0580-0x351,_0x41c465-0x195,_0x41c465);}function _0x5c0b72(_0x5b78e5,_0x1ca03f,_0x235c74,_0x19bd9b){return _0x324ebe(_0x5b78e5-_0xd64bb9._0x575095,_0x1ca03f-0xab,_0x19bd9b,_0x1ca03f- -0x44);}const _0x5af58a={'version':0x1,'artifactId':_0x57f414[_0x4cfe7b(0x3ea,_0xd22a52._0x19062f,_0xd22a52._0x1f0146,0x418)],'outputPath':_0x57f414[_0x5c0b72(-0x319,-0x277,-0x309,-_0xd22a52._0x2ac6cc)],'statusPath':_0x57f414[_0x4cfe7b(0x371,_0xd22a52._0x17372b,0x293,0x37c)],'state':_0x1e0d90['state'],'exitCode':_0x1e0d90[_0x4cfe7b(_0xd22a52._0x3415d9,0x393,_0xd22a52._0x586068,_0xd22a52._0x3dacd5)],'signal':boundNullableCode(_0x1e0d90[_0x5c0b72(-_0xd22a52._0x1a3a7d,-_0xd22a52._0x33fdf8,-_0xd22a52._0x1dba3f,-_0xd22a52._0x2d27ba)]),'errorCode':boundNullableCode(_0x1e0d90[_0x5c0b72(-_0xd22a52._0x1b81bc,-_0xd22a52._0x300019,-_0xd22a52._0x5c6789,-_0xd22a52._0x9251d8)]),'finishedAt':_0x1e0d90[_0x4cfe7b(_0xd22a52._0x42a57c,0x449,0x4cc,_0xd22a52._0x38b215)],'owner':_0x3fa06e,'toolCallId':_0x222e29,'captureState':_0x5c6787(),'bytesRetained':_0x177760,'maxBytes':BASH_OUTPUT_MAX_BYTES,'truncated':_0x2c2a7c,'captureErrorCode':_0x1712be,'startedAt':_0x52531b,'updatedAt':_0xe50159};if(_0x4a3bb3!==void 0x0)return{..._0x5af58a,'shellId':_0x4a3bb3};return _0x5af58a;},_0x498109=_0x20ac3b({'state':_0x4de84c(-_0x529797._0x1c5e6e,-_0x529797._0x59a93a,-0x94,-_0x529797._0x1b804c),'exitCode':null,'signal':null,'errorCode':null,'finishedAt':null},_0x52531b),_0x48509b={..._0x498109,'shellId':'\x01'['repeat'](MAX_ID_CHARS),'state':_0x324ebe(-0x21e,-0x220,-_0x529797._0x7ddc34,-_0x529797._0x31490a),'captureState':_0x324ebe(-_0x529797._0x558940,-0x129,-_0x529797._0x31988b,-_0x529797._0x6e89c1),'signal':'\x01'[_0x4de84c(-_0x529797._0x2f088f,0x17,_0x529797._0x4651a4,_0x529797._0x107806)](MAX_ERROR_CHARS),'errorCode':'\x01'['repeat'](MAX_ERROR_CHARS),'captureErrorCode':'E'[_0x4de84c(-_0x529797._0x471d5d,0x17,0x7f,_0x529797._0x2bd6d5)](MAX_ERROR_CHARS),'bytesRetained':BASH_OUTPUT_MAX_BYTES,'exitCode':-Number[_0x324ebe(-_0x529797._0x16c7eb,-0xe1,-0xd3,-_0x529797._0x32792c)],'startedAt':-Number[_0x4de84c(0x4f,0xe3,0xf5,0x11f)],'updatedAt':-Number[_0x4de84c(0x4d,_0x529797._0x4a8e4a,0x127,0x37)],'finishedAt':-Number[_0x324ebe(-_0x529797._0x48a9eb,-_0x529797._0x1465f8,-0x11a,-0x108)]};if(Buffer['byteLength'](JSON['stringify'](_0x48509b),_0x4de84c(0x15,_0x529797._0x1d6cd0,_0x529797._0x3e4d6a,0x15))>MAX_STATUS_BYTES)throw artifactError('ENAMETOOLONG',_0x324ebe(-_0x529797._0x4403a2,-0x1dd,-_0x529797._0xdfb346,-_0x529797._0x548d7d));await ensureDirectory(_0x468933);try{await _0x1b5d18[_0x4de84c(_0x529797._0x49427f,0xf6,_0x529797._0x3f6fec,0x6d)](_0x59ced0,{'mode':0x1c0}),await canonicalDirectory(_0x59ced0),await _0x1b5d18[_0x4de84c(_0x529797._0x5bda9c,0x122,0xc6,_0x529797._0x23befe)](_0x59ced0,0x1c0);}catch(_0x34ff7e){throwMapped(_0x34ff7e,'EIO');}let _0x18175d;try{const _0x4adaef=await canonicalDirectory(_0x59ced0);_0x18175d=await _0x1b5d18[_0x324ebe(-_0x529797._0x91bc3b,-_0x529797._0x5c1397,-0x73,-_0x529797._0x1218a1)](_0x4bbaaa,exclusiveWriteFlags(),0x180),await _0x18175d[_0x4de84c(_0x529797._0x8cb936,0x122,0x13e,0x1c4)](0x180);const _0x43f13e=await canonicalDirectory(_0x59ced0),_0xad6ed3=await _0x18175d['stat'](),_0x5226f3=await _0x1b5d18[_0x324ebe(-0x291,-0x17a,-0x18e,-0x1d7)](_0x4bbaaa);if(_0x4adaef[_0x4de84c(_0x529797._0x13844d,_0x529797._0x14b32c,0xb1,_0x529797._0x5ccf3a)]!==_0x43f13e[_0x324ebe(-0x23d,-_0x529797._0x1a7c72,-_0x529797._0x58dcce,-0x182)]||_0x4adaef[_0x4de84c(-_0x529797._0xe9a6bd,-_0x529797._0x47d28d,_0x529797._0xac312c,-_0x529797._0x5c5f32)]!==_0x43f13e[_0x4de84c(-_0x529797._0x379737,-_0x529797._0x238db7,0x72,_0x529797._0x3996f4)]||!_0x5226f3[_0x4de84c(0x191,0x104,_0x529797._0x44e756,0x71)]()||_0x5226f3[_0x324ebe(-0x1e7,-0x25f,-_0x529797._0x4cfd36,-0x207)]!==0x1||_0x5226f3[_0x324ebe(-_0x529797._0x5eb647,-0x18a,-_0x529797._0x24ae96,-_0x529797._0x170905)]!==_0xad6ed3['dev']||_0x5226f3[_0x324ebe(-_0x529797._0x31184e,-0x1d2,-0x16f,-0x229)]!==_0xad6ed3[_0x4de84c(0x1f,-_0x529797._0x3dc2e8,-_0x529797._0x3254eb,0x5a)])throw artifactError('ELOOP',_0x4de84c(_0x529797._0x5d01ca,-_0x529797._0xac312c,-_0x529797._0x5f189e,-0xb6));}catch(_0x4860ae){await _0x18175d?.[_0x4de84c(0x133,0xe0,0x18b,0x138)]()[_0x4de84c(0x4f,_0x529797._0x2d7e9c,_0x529797._0x157658,-0x2)](()=>void 0x0),throwMapped(_0x4860ae,_0x324ebe(-0x202,-_0x529797._0x4d0eb8,-0x1ab,-_0x529797._0x574947));}_0x19df5c=_0x18175d;try{await writeBashArtifactStatus(_0x498109);}catch(_0x4e9be1){await _0x18175d[_0x4de84c(_0x529797._0x1d6442,0xe0,0x32,_0x529797._0x1c602b)]()['catch'](()=>void 0x0);throw _0x4e9be1;}const _0x401104=async(_0x347902,_0x46a6dd)=>{const _0x550ea={_0x2c1e4d:0x1ef};_0x46a6dd!==void 0x0&&(assertBoundedId(_0x46a6dd,_0x3aae55(0x5ef,_0x3ac5a1._0x2bd9e7,_0x3ac5a1._0x443127,_0x3ac5a1._0x577fa4)),_0x4a3bb3=_0x46a6dd);function _0x3aae55(_0x3bfabe,_0x1d17a7,_0x14917a,_0x3faa1b){return _0x4de84c(_0x3bfabe-_0x550ea._0x2c1e4d,_0x3faa1b-0x482,_0x14917a-0x1bf,_0x1d17a7);}if(TERMINAL_EXECUTION_STATES[_0x3aae55(0x532,_0x3ac5a1._0x345f7e,_0x3ac5a1._0x908d1a,0x59b)](_0x347902[_0x421e21(-0x10a,-0x105,-0x1fa,-0x149)])&&!_0x5a91d0)throw artifactError('EINVAL',_0x421e21(-0x1e2,-0x1a0,-_0x3ac5a1._0x2dd92c,-0x15c));const _0x38c5a2=Object['freeze'](_0x20ac3b(_0x347902,Date['now']()));if(!isBashArtifactStatus(_0x38c5a2))throw artifactError(_0x3aae55(_0x3ac5a1._0x2bdc53,_0x3ac5a1._0x8409b8,_0x3ac5a1._0x345ee9,_0x3ac5a1._0xcecd76),'Invalid\x20execution\x20snapshot');let _0xcce3ba;try{await writeBashArtifactStatus(_0x38c5a2),_0xcce3ba={'status':_0x38c5a2,'statusErrorCode':null};}catch(_0x5a0894){_0xcce3ba={'status':_0x38c5a2,'statusErrorCode':stableErrorCode(_0x5a0894,'EIO')};}_0x2817cb=_0xcce3ba;function _0x421e21(_0x1c3200,_0x40b93e,_0x1cd7ae,_0x4a68d6){return _0x324ebe(_0x1c3200-_0x10147e._0x21a179,_0x40b93e-_0x10147e._0x55c529,_0x1cd7ae,_0x4a68d6-_0x10147e._0x56b929);}return _0xcce3ba;};let _0x478a86;const _0x5a6437=()=>{if(_0x478a86)return _0x478a86;return _0x422d81=!![],_0x478a86=_0x1f4bcf(async()=>{function _0x2ef4db(_0x2477a6,_0xfaf2cf,_0x41ad3a,_0x39eb40){return _0xd98e(_0x41ad3a- -0x13f,_0x2477a6);}await _0xc9d84(_0x56f69e[_0x138bc7(-_0x29e7f7._0x30487b,-0x18a,-_0x29e7f7._0xcb655f,-0xa5)]()),await _0xc9d84(_0x5969d2['end']());if(_0x19df5c!==null){try{await _0x19df5c[_0x2ef4db(0x17,0x14c,0xaa,0x157)]();}catch(_0x455747){_0x49bcf7(_0x455747);}_0x19df5c=null;}function _0x138bc7(_0x3ab15f,_0x509241,_0x59e0dc,_0x5c8d97){return _0xd98e(_0x59e0dc- -0x1f2,_0x5c8d97);}_0x5a91d0=!![];}),_0x478a86;};return{'ref':_0x57f414,'append'(_0x3e3c17,_0x40eb47){const _0x29e5ac={_0x465e27:0x7f,_0x3d8843:0x1d6};if(_0x422d81)return Promise[_0x5e1c69(-0x50,0x40,_0x128f54._0x556164,_0x128f54._0x857b77)]();function _0x5e1c69(_0x3c55cc,_0x370681,_0x597b57,_0x4bbd21){return _0x324ebe(_0x3c55cc-_0x29e5ac._0x465e27,_0x370681-_0x29e5ac._0x3d8843,_0x370681,_0x4bbd21-0x253);}return _0x1f4bcf(()=>_0x47cea7(_0x3e3c17,_0x40eb47));},'flush':_0x5a6437,'publish'(_0x30d02a,_0x36bdde){const _0x43acff={..._0x30d02a};return _0x1f4bcf(()=>_0x401104(_0x43acff,_0x36bdde));},async 'interrupt'(){return await _0x5a6437(),_0x1f4bcf(()=>{const _0x28389c={_0x2800c1:0x1a1};if(_0x2817cb!==null&&TERMINAL_EXECUTION_STATES['has'](_0x2817cb[_0x3b553d(_0x1d1896._0x2a529f,0x138,_0x1d1896._0x1e3824,0xe7)]['state']))return _0x2817cb;function _0x3b553d(_0x89862c,_0x97a51e,_0x337dca,_0x20abe4){return _0xd98e(_0x337dca-0x2,_0x20abe4);}function _0x5802a1(_0x86c9b9,_0x139b16,_0x5d65ed,_0x3235cd){return _0xd98e(_0x139b16-_0x28389c._0x2800c1,_0x86c9b9);}return _0x3192a9=!![],_0x401104({'state':_0x3b553d(_0x1d1896._0x39e8e4,_0x1d1896._0x2d2566,0xc6,0x181),'exitCode':null,'signal':null,'errorCode':null,'finishedAt':Date[_0x5802a1(0x3ce,0x3cf,0x338,_0x1d1896._0x520b6f)]()});});}};}function isJsonObject(_0x4c5db1){const _0x279f34={_0x2d4974:0x536,_0x2c161c:0x553,_0x1863f7:0x527,_0x528132:0x548},_0x1b3f34={_0x5314dc:0x11b,_0x538862:0x1e3};function _0x453eff(_0x2da8e0,_0x671876,_0x5a1e2a,_0x532987){return _0x2f39af(_0x671876,_0x5a1e2a-_0x1b3f34._0x5314dc,_0x5a1e2a-0xbc,_0x532987-_0x1b3f34._0x538862);}return typeof _0x4c5db1===_0x453eff(_0x279f34._0x2d4974,_0x279f34._0x2c161c,_0x279f34._0x1863f7,_0x279f34._0x528132)&&_0x4c5db1!==null&&!Array['isArray'](_0x4c5db1);}function isToolOutputEnvelope(_0x50d350){const _0x17ade1={_0x4227eb:0x29b,_0x1ec3e8:0x1c7,_0x29f992:0x1e5,_0x397e4f:0x1f9,_0x26af36:0x251,_0x5ec73d:0x5ff,_0x22c10d:0x598,_0x224a53:0x5ec},_0x6219a={_0x46cad4:0x1ce,_0x5aa06d:0x31};if(typeof _0x50d350!==_0xb14b08(0x572,0x539,0x5da,0x577)||_0x50d350===null||Array[_0x291568(-_0x17ade1._0x4227eb,-_0x17ade1._0x1ec3e8,-_0x17ade1._0x29f992,-0x18e)](_0x50d350))return![];if(typeof _0x50d350[_0x291568(-0x1ad,-0x1b8,-_0x17ade1._0x397e4f,-_0x17ade1._0x26af36)]!==_0xb14b08(_0x17ade1._0x5ec73d,_0x17ade1._0x22c10d,0x5ac,_0x17ade1._0x224a53))return![];const _0x5821de=_0x50d350[_0x291568(-0x122,-0x1b9,-0x163,-0x1df)];function _0x291568(_0x412332,_0x504a9e,_0x3969ba,_0x22920d){return _0x3e74bf(_0x412332-0xc2,_0x3969ba- -0x17f,_0x412332,_0x22920d-0x175);}function _0xb14b08(_0x47d5a1,_0x459791,_0x352b30,_0x491000){return _0x2f39af(_0x491000,_0x352b30-_0x6219a._0x46cad4,_0x352b30-_0x6219a._0x5aa06d,_0x491000-0x89);}return _0x5821de===void 0x0||isJsonObject(_0x5821de);}function validateAgainstSchema(_0x5f4ea6,_0x4fb867,_0x2e97d5){const _0x598db9={_0x580630:0x200,_0x4d2db5:0x144,_0xfddc57:0x108,_0x48cfc0:0x7f,_0x40e88b:0xf6,_0xb75a89:0x10c,_0x55780c:0x18,_0x4fa394:0x9,_0x17a217:0x9e,_0xc1d166:0xe9,_0x22b2c1:0x84,_0x10770c:0x27,_0x4a3647:0x63,_0xb9f46f:0xdd,_0x26c47f:0x31,_0x1c97b5:0x1c1,_0x102f68:0x17e,_0x4ea67e:0x204,_0x147e76:0x155,_0x3eb9f6:0x117,_0x2e8858:0x84,_0x329009:0xbb,_0x26515b:0x101,_0x13ba6e:0x134,_0x2d9f10:0x120,_0x812f2d:0x144,_0x1b64b0:0x14c,_0x31d277:0x1a1,_0x34b149:0x144,_0x4e4177:0xb3,_0x1594bb:0xab,_0x4b2b39:0x70,_0x5e780d:0x240,_0x4be2e7:0xdb,_0x4577ff:0x126,_0x3cf1bc:0xf9,_0x2ec4cd:0x20a,_0x3598fd:0x168,_0x556144:0x168,_0xe5f947:0x6d,_0x22d3cf:0x174,_0x388d10:0x1cd,_0x2d00e5:0x116,_0x2dfd56:0x18b,_0x3011d0:0x16e,_0x377bf3:0x118,_0x24fb5a:0x194,_0x3f847e:0x1ce,_0x1b7ee6:0x17d,_0x57baa1:0x1e7,_0x1d9c85:0xb7,_0x1db89c:0x1e6,_0x1c61e3:0x9,_0x15fbb3:0x24,_0x3c3937:0xf4,_0x9afbfb:0x9d,_0x361f75:0x157,_0x1ecb1f:0x1af,_0x4264e9:0x196,_0x484e1b:0x1dc,_0x246617:0xa7,_0x2e972d:0x16c,_0x387a29:0x62,_0x43ef18:0x9,_0x34ab9f:0x3f,_0x4a247f:0x1,_0x473831:0x221,_0x18e6eb:0x17d,_0x16a30d:0x254,_0x56dd25:0x1bf,_0x5a624f:0x277,_0x10dd88:0x81,_0x20017c:0x167,_0x122e09:0x1c9},_0x1e5373={_0x33a79e:0x143};function _0x8a55c3(_0x1d9445,_0x55225b,_0x44e0d0,_0x3547cb){return _0x3e74bf(_0x1d9445-0x23,_0x44e0d0-0x1e3,_0x1d9445,_0x3547cb-0x170);}if('anyOf'in _0x2e97d5){const _0x48c515=_0x2e97d5[_0x4e624f(0x135,0xe2,0xb0,0x19d)][_0x8a55c3(0x1ce,_0x598db9._0x580630,_0x598db9._0x4d2db5,0x114)](_0x230a86=>{try{return validateAgainstSchema(_0x5f4ea6,_0x4fb867,_0x230a86),!![];}catch{return![];}});if(!_0x48c515)throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x5f4ea6+_0x4e624f(0x114,0xd1,0x71,_0x598db9._0xfddc57));return;}function _0x4e624f(_0x369f7c,_0x1588ec,_0x3c8e1f,_0x574806){return _0x2f39af(_0x1588ec,_0x369f7c- -0x2c1,_0x3c8e1f-0xdf,_0x574806-0x187);}switch(_0x2e97d5[_0x4e624f(_0x598db9._0x48cfc0,_0x598db9._0x40e88b,_0x598db9._0xb75a89,_0x598db9._0x55780c)]){case'string':if(typeof _0x4fb867!=='string')throw new Error(_0x4e624f(-_0x598db9._0x4fa394,-0xa5,-0xbc,0x4)+_0x5f4ea6+_0x4e624f(_0x598db9._0x17a217,_0x598db9._0xfddc57,0x11a,_0x598db9._0xc1d166));if(_0x2e97d5[_0x4e624f(_0x598db9._0x22b2c1,-_0x598db9._0x10770c,_0x598db9._0x4a3647,_0x598db9._0xb9f46f)]!==void 0x0&&!_0x2e97d5[_0x4e624f(0x84,0x128,0xfd,-_0x598db9._0x26c47f)][_0x8a55c3(_0x598db9._0x1c97b5,_0x598db9._0x102f68,_0x598db9._0x4ea67e,0x2ae)](_0x4fb867))throw new Error(_0x8a55c3(_0x598db9._0x147e76,0x165,_0x598db9._0x3eb9f6,0xe9)+_0x5f4ea6+':\x20expected\x20one\x20of\x20'+_0x2e97d5[_0x4e624f(_0x598db9._0x2e8858,0xa8,_0x598db9._0x329009,_0x598db9._0x26515b)][_0x8a55c3(0x154,_0x598db9._0x13ba6e,0x143,_0x598db9._0x2d9f10)](',\x20'));return;case _0x4e624f(_0x598db9._0x812f2d,0x107,_0x598db9._0x1b64b0,_0x598db9._0x31d277):if(typeof _0x4fb867!==_0x4e624f(_0x598db9._0x34b149,0x132,0xef,_0x598db9._0x4e4177))throw new Error(_0x4e624f(-0x9,_0x598db9._0x1594bb,0x35,_0x598db9._0x4b2b39)+_0x5f4ea6+_0x8a55c3(0x1ba,0x2ca,_0x598db9._0x5e780d,0x278));return;case _0x8a55c3(_0x598db9._0x4be2e7,_0x598db9._0x4577ff,0x168,_0x598db9._0x3cf1bc):if(typeof _0x4fb867!==_0x8a55c3(_0x598db9._0x2ec4cd,_0x598db9._0x3598fd,_0x598db9._0x556144,0xb4))throw new Error(_0x8a55c3(_0x598db9._0xe5f947,_0x598db9._0x22d3cf,_0x598db9._0x3eb9f6,_0x598db9._0x388d10)+_0x5f4ea6+_0x4e624f(_0x598db9._0x2d00e5,_0x598db9._0x2dfd56,0xa8,_0x598db9._0x3011d0));return;case _0x4e624f(_0x598db9._0x377bf3,_0x598db9._0x24fb5a,_0x598db9._0x3f847e,0x13a):if(!Array[_0x8a55c3(0x1f1,0xcb,_0x598db9._0x1b7ee6,_0x598db9._0x57baa1)](_0x4fb867))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x5f4ea6+_0x4e624f(0x21,0xdb,0x6e,-0x2a));_0x4fb867[_0x8a55c3(_0x598db9._0x1d9c85,0x12c,0x147,_0x598db9._0x1db89c)]((_0x18f544,_0x45b970)=>{function _0x152b2c(_0x457305,_0x307d65,_0x24f198,_0x222487){return _0x4e624f(_0x222487- -0x1a4,_0x307d65,_0x24f198-0x6b,_0x222487-0x1a7);}validateAgainstSchema(_0x5f4ea6+'['+_0x45b970+']',_0x18f544,_0x2e97d5[_0x152b2c(-0x123,-0x1ad,-_0x1e5373._0x33a79e,-0x162)]);});return;case'object':if(!isJsonObject(_0x4fb867))throw new Error(_0x4e624f(-_0x598db9._0x4fa394,-_0x598db9._0x1c61e3,-_0x598db9._0x15fbb3,-0x88)+_0x5f4ea6+_0x4e624f(_0x598db9._0x3c3937,_0x598db9._0x9afbfb,0x13c,0x12f));for(const _0x5164c0 of _0x2e97d5[_0x8a55c3(_0x598db9._0x361f75,_0x598db9._0x1ecb1f,_0x598db9._0x4264e9,_0x598db9._0x484e1b)]??[]){if(!Object[_0x8a55c3(_0x598db9._0x246617,_0x598db9._0x2e972d,0x120,_0x598db9._0x387a29)](_0x4fb867,_0x5164c0))throw new Error(_0x4e624f(-_0x598db9._0x43ef18,-0x9e,0x79,-_0x598db9._0x34ab9f)+_0x5f4ea6+':\x20missing\x20required\x20field\x20\x22'+_0x5164c0+'\x22');}if(_0x2e97d5['additionalProperties']===![]){const _0x3c7b93=Object[_0x8a55c3(0x1d0,0x1ad,0x1a9,0x108)](_0x4fb867)['find'](_0x20db83=>!Object[_0x4e624f(0x0,0x3e,-0x7c,-0x9e)](_0x2e97d5[_0x4e624f(0x25,-0x4,0x3d,-0x68)],_0x20db83));if(_0x3c7b93!==void 0x0)throw new Error(_0x4e624f(-0x9,_0x598db9._0x4a247f,0x96,0x14)+_0x5f4ea6+_0x8a55c3(_0x598db9._0x473831,_0x598db9._0x18e6eb,0x1dd,0x122)+_0x3c7b93+'\x22');}for(const [_0x2a5474,_0x3c2b1b]of Object[_0x8a55c3(0x232,_0x598db9._0x16a30d,_0x598db9._0x56dd25,_0x598db9._0x5a624f)](_0x2e97d5[_0x4e624f(0x25,0xa9,_0x598db9._0x10dd88,0x6b)])){Object[_0x8a55c3(_0x598db9._0x20017c,_0x598db9._0x122e09,0x120,0x127)](_0x4fb867,_0x2a5474)&&validateAgainstSchema(_0x5f4ea6+'.'+_0x2a5474,_0x4fb867[_0x2a5474],_0x3c2b1b);}}}function normalizeToolOutputValue(_0x15f167){const _0x4acced={_0x2216d4:0x31f,_0x5e1eb4:0x3bf,_0x438f3a:0x397,_0xe4e2b8:0x22a,_0x3054eb:0x288,_0x46a670:0x447},_0x465821={_0x2eee8b:0xa,_0x4e114a:0x237},_0xfe3bc3={_0x2eee10:0xb5};function _0x5ee7ac(_0x56b6f1,_0x3b43d1,_0x440787,_0x2c9452){return _0x2f39af(_0x56b6f1,_0x3b43d1-_0xfe3bc3._0x2eee10,_0x440787-0x1c3,_0x2c9452-0x14);}if(isToolOutputEnvelope(_0x15f167))return{'output':_0x15f167['output'],'structured':_0x15f167['structured']??{'value':_0x15f167[_0x5ee7ac(_0x4acced._0x2216d4,_0x4acced._0x5e1eb4,_0x4acced._0x438f3a,0x406)]},..._0x15f167['content']!==void 0x0?{'content':_0x15f167['content']}:{}};if(typeof _0x15f167===_0x2a77c3(-0x1dd,-_0x4acced._0xe4e2b8,-_0x4acced._0x3054eb,-0x135))return{'output':_0x15f167,'structured':{'value':_0x15f167}};if(typeof _0x15f167==='object'&&_0x15f167!==null&&!Array['isArray'](_0x15f167))return{'output':JSON['stringify'](_0x15f167,null,0x2),'structured':_0x15f167};function _0x2a77c3(_0x5b2e9e,_0x4f3e4a,_0x134fe2,_0x54ad8b){return _0x3e74bf(_0x5b2e9e-_0x465821._0x2eee8b,_0x5b2e9e- -_0x465821._0x4e114a,_0x4f3e4a,_0x54ad8b-0xda);}return{'output':JSON[_0x5ee7ac(0x377,0x3dc,0x42c,_0x4acced._0x46a670)](_0x15f167,null,0x2),'structured':{'value':_0x15f167}};}function createToolOutput(_0x7fb80d,_0x29654c={'value':_0x7fb80d},_0x3ce15b){return{'output':_0x7fb80d,'structured':_0x29654c,..._0x3ce15b!==void 0x0?{'content':_0x3ce15b}:{}};}var ToolExecutionError=class extends Error{[_0x2f39af(0x345,0x3a0,0x3dd,0x321)];constructor(_0x584c9d,_0x1f2fb6={}){const _0x763b3d={_0x3f0e18:0x190,_0x48ca90:0x186,_0x4883b8:0x14a,_0x503991:0xa6},_0x3b96eb={_0x462048:0x17e};super(_0x584c9d);function _0x457fef(_0x19818c,_0x114d07,_0x18fbad,_0x49314b){return _0x2f39af(_0x19818c,_0x18fbad- -0x14e,_0x18fbad-_0x3b96eb._0x462048,_0x49314b-0x15);}function _0x38b199(_0x1bfa22,_0x573927,_0xd4ff87,_0x57fc0d){return _0x3e74bf(_0x1bfa22-0x56,_0x573927-0x8c,_0xd4ff87,_0x57fc0d-0x6d);}this[_0x457fef(0x186,0x150,_0x763b3d._0x3f0e18,0x18c)]=_0x457fef(0x1de,0x194,_0x763b3d._0x48ca90,_0x763b3d._0x4883b8),this[_0x38b199(_0x763b3d._0x503991,0xa8,0x15f,0xd3)]=_0x1f2fb6;}};function defineTool(_0x1387bf){return _0x1387bf;}function resolveToolPermissionClass(_0x2710a1){const _0x3be52c={_0x6ce6fc:0x517,_0x2bcbdb:0x53d,_0x19945f:0x37c,_0x5cb946:0x3fb,_0x237599:0x23b,_0x5c4899:0x1c4,_0x3e3fd0:0x41b,_0xebe565:0x450},_0xa51f2a={_0x5573cc:0x149,_0x17046c:0xb6},_0x1c97c6=_0x2710a1?.[_0x3f7114(0x563,0x592,_0x3be52c._0x6ce6fc,_0x3be52c._0x2bcbdb)];function _0x468a94(_0x217ccd,_0x2ae0e6,_0x5a4984,_0x139028){return _0x2f39af(_0x217ccd,_0x139028- -0xc4,_0x5a4984-0x175,_0x139028-0xbd);}function _0x3f7114(_0x48d645,_0x29ea70,_0x5b4903,_0x4d0d0f){return _0x2f39af(_0x29ea70,_0x4d0d0f-_0xa51f2a._0x5573cc,_0x5b4903-_0xa51f2a._0x17046c,_0x4d0d0f-0x10e);}if(_0x1c97c6===_0x468a94(_0x3be52c._0x19945f,0x234,0x341,0x2df)||_0x1c97c6===_0x3f7114(0x470,0x43c,0x45f,_0x3be52c._0x5cb946)||_0x1c97c6===_0x468a94(_0x3be52c._0x237599,_0x3be52c._0x5c4899,0x18f,0x22e))return _0x1c97c6;return _0x3f7114(_0x3be52c._0x3e3fd0,0x4f1,_0x3be52c._0xebe565,0x43b);}var ToolRegistry=class{[_0x3e74bf(-0xb5,-0xd8,-0x51,-0x44)]=new Map();constructor(_0xabba2=[]){for(const _0x22b4e3 of _0xabba2){this['register'](_0x22b4e3);}}[_0x2f39af(0x40b,0x3e2,0x40c,0x413)](_0x555f6d){const _0x2c3588={_0x3af000:0x13,_0x3d7b03:0x55,_0x2d7a92:0xc6,_0x4c2c60:0x5a},_0x23f686={_0x50d521:0x19e},_0x59c7e5={_0x425653:0x37};function _0x5e60ad(_0x497dcb,_0x3a0be1,_0x47464e,_0x347c07){return _0x3e74bf(_0x497dcb-_0x59c7e5._0x425653,_0x47464e-0xb9,_0x497dcb,_0x347c07-0x1f2);}function _0x5f4a4a(_0x366bf1,_0x248174,_0x279f0d,_0x393f06){return _0x3e74bf(_0x366bf1-0x1a9,_0x393f06-_0x23f686._0x50d521,_0x366bf1,_0x393f06-0x1ab);}this[_0x5f4a4a(_0x2c3588._0x3af000,0x7b,_0x2c3588._0x3d7b03,_0x2c3588._0x2d7a92)]['set'](_0x555f6d[_0x5f4a4a(_0x2c3588._0x4c2c60,0x122,0x5d,0xf8)],_0x555f6d);}[_0x3e74bf(0x9,0x30,-0x81,-0x4b)](_0x1344c7){const _0x3a2681={_0x17db09:0x13f,_0x124816:0xa5,_0x224a35:0x12b,_0x4c83cc:0x1cd},_0x76e1ed={_0x24b19f:0x69,_0xbc0237:0x21e,_0x39f1fc:0x116},_0x6cbd89={_0x582e05:0x17d};function _0x4b4bd9(_0x1132b9,_0x4013a9,_0x2914a4,_0x2b28d4){return _0x3e74bf(_0x1132b9-0x195,_0x4013a9-_0x6cbd89._0x582e05,_0x1132b9,_0x2b28d4-0x1a8);}function _0x873af4(_0x4d1d78,_0x3d59e2,_0x3820f6,_0x333211){return _0x3e74bf(_0x4d1d78-_0x76e1ed._0x24b19f,_0x3d59e2-_0x76e1ed._0xbc0237,_0x3820f6,_0x333211-_0x76e1ed._0x39f1fc);}return this[_0x4b4bd9(_0x3a2681._0x17db09,_0x3a2681._0x124816,0x8c,_0x3a2681._0x224a35)][_0x873af4(0x195,0x24e,0x271,_0x3a2681._0x4c83cc)](_0x1344c7);}[_0x3e74bf(-0x94,-0x89,-0xa6,-0x130)](){const _0x26cd73={_0x38ebf3:0x219,_0x4b446f:0x142,_0x610679:0x1d3,_0x171e7c:0x1e3},_0x1bd3ae={_0x4513e6:0x1e};function _0x28f0e3(_0x3135b5,_0x149cf1,_0x4de9f6,_0x1e0b91){return _0x3e74bf(_0x3135b5-0xb5,_0x4de9f6- -0x1e9,_0x3135b5,_0x1e0b91-_0x1bd3ae._0x4513e6);}return[...this['toolsByName'][_0x28f0e3(-_0x26cd73._0x38ebf3,-_0x26cd73._0x4b446f,-_0x26cd73._0x610679,-_0x26cd73._0x171e7c)]()];}['listToolSchemas'](){const _0x53d95a={_0xd7f0bb:0x1da,_0x8088d7:0x1ea,_0x1a0a8c:0x214,_0x55881e:0x2b6,_0x165823:0x254,_0x3ffba4:0x2ec},_0x40d9d8={_0x4fd313:0x106,_0x122901:0xbd};function _0x42f34a(_0x24a9e7,_0x355102,_0x990d31,_0xce76b8){return _0x2f39af(_0x355102,_0x24a9e7- -0x25e,_0x990d31-_0x40d9d8._0x4fd313,_0xce76b8-_0x40d9d8._0x122901);}return this['list']()[_0x42f34a(0x12d,0x8b,0xc2,0x16b)](_0x363930=>{function _0x405d6f(_0x5aa37c,_0x1589b5,_0x1b7a62,_0x530537){return _0x42f34a(_0x1589b5-0x1de,_0x1b7a62,_0x1b7a62-0x30,_0x530537-0x185);}function _0x536406(_0x472e3e,_0x2e3039,_0x1a44d3,_0x5c3813){return _0x42f34a(_0x1a44d3- -0x26a,_0x5c3813,_0x1a44d3-0x1cd,_0x5c3813-0x11b);}return{'name':_0x363930[_0x536406(-0x1ab,-_0x53d95a._0xd7f0bb,-_0x53d95a._0x8088d7,-0x17e)],'description':_0x363930[_0x536406(-0x131,-0x193,-0x159,-_0x53d95a._0x1a0a8c)],'input_schema':_0x363930[_0x405d6f(0x24c,_0x53d95a._0x55881e,_0x53d95a._0x165823,_0x53d95a._0x3ffba4)]};});}};function validateToolInput(_0x3a2b52,_0x188f58){const _0xdcecd1={_0x16e99d:0x2b2,_0x702c17:0x225,_0x45a4a4:0x25f},_0x16da25={_0x15e81e:0xdc,_0x386cc9:0x34b,_0x57e746:0xb1};validateAgainstSchema(_0x5394f7(_0xdcecd1._0x16e99d,_0xdcecd1._0x702c17,_0xdcecd1._0x45a4a4,0x2bb),_0x3a2b52,_0x188f58);function _0x5394f7(_0x414f7c,_0x35c266,_0x29d697,_0x3ab0df){return _0x3e74bf(_0x414f7c-_0x16da25._0x15e81e,_0x3ab0df-_0x16da25._0x386cc9,_0x35c266,_0x3ab0df-_0x16da25._0x57e746);}return _0x3a2b52;}function deriveFinalToolOutput(_0xa6c1a4){const _0x272d21={_0x329f6b:0x1c,_0x226181:0x30,_0x5e215d:0x73,_0x4a2712:0xa4,_0x44b63d:0x13,_0x59bc12:0xad,_0x4c1cc2:0xce,_0x340a2f:0x5,_0xa955ce:0x1d,_0x1d721e:0x3c,_0x55528e:0xae},_0x272ce0={_0x5bad6c:0x125,_0x57cbe0:0x143,_0x32bad6:0x167};function _0x1cf311(_0x414ac7,_0x418bec,_0x105567,_0x57d964){return _0x2f39af(_0x418bec,_0x105567- -0x3c1,_0x105567-0x2b,_0x57d964-0x13f);}if(_0xa6c1a4[_0x433434(_0x272d21._0x329f6b,_0x272d21._0x226181,_0x272d21._0x5e215d,_0x272d21._0x4a2712)]===0x0)return{'output':'','structured':{}};if(_0xa6c1a4['length']===0x1)return{'output':_0xa6c1a4[0x0][_0x433434(0xfc,0x17d,0xc9,0x16f)],'structured':_0xa6c1a4[0x0]['structured'],..._0xa6c1a4[0x0][_0x433434(0x186,0x104,0xd3,0x36)]!==void 0x0?{'content':_0xa6c1a4[0x0][_0x1cf311(-_0x272d21._0x44b63d,-0x16a,-_0x272d21._0x59bc12,-0x83)]}:{}};const _0x30fa06=_0xa6c1a4['filter'](_0xc32d08=>_0xc32d08[_0x433434(0x15f,0xc3,0xd3,0x164)]!==void 0x0);function _0x433434(_0x5d225e,_0x3bb781,_0xf6f976,_0x9077a){return _0x3e74bf(_0x5d225e-_0x272ce0._0x5bad6c,_0xf6f976-_0x272ce0._0x57cbe0,_0x9077a,_0x9077a-_0x272ce0._0x32bad6);}return{'output':_0xa6c1a4['map'](_0x42bd16=>_0x42bd16[_0x433434(0x64,0x85,0xc9,0xc4)])[_0x433434(_0x272d21._0x4c1cc2,_0x272d21._0x340a2f,0xa3,_0x272d21._0xa955ce)](''),'structured':{'chunks':_0xa6c1a4[_0x1cf311(-0x7f,-_0x272d21._0x1d721e,-0x36,-_0x272d21._0x55528e)](_0x488fd8=>_0x488fd8[_0x433434(0x1a4,0x18d,0x15f,0x1fa)])},..._0x30fa06[_0x1cf311(-0x109,-0x11a,-0x10d,-0x165)]===0x1?{'content':_0x30fa06[0x0]['content']}:{}};}var ToolRuntimeInfrastructureError=class extends Error{constructor(_0x28714c){const _0x3c5b9d={_0x3faf3b:0x443,_0x1de346:0x48f,_0x404f2e:0xd1,_0x1ade79:0x11d,_0x4d6b03:0x28,_0x521bd5:0x2b},_0x4f3998={_0x338e06:0x10c},_0x554e0b={_0x55d734:0x45b};super(_0x44eb8b(0x414,_0x3c5b9d._0x3faf3b,0x450,_0x3c5b9d._0x1de346),{'cause':_0x28714c});function _0x44eb8b(_0x2fb261,_0xa4854d,_0x2ccbe2,_0x243ede){return _0x3e74bf(_0x2fb261-0x13c,_0xa4854d-_0x554e0b._0x55d734,_0x243ede,_0x243ede-0x5a);}function _0x1a57df(_0x55c456,_0x1481de,_0x36e19f,_0x2f4c97){return _0x3e74bf(_0x55c456-_0x4f3998._0x338e06,_0x55c456- -0x2b,_0x36e19f,_0x2f4c97-0x10c);}this[_0x1a57df(-_0x3c5b9d._0x404f2e,-_0x3c5b9d._0x1ade79,-0xad,-0x3d)]=_0x1a57df(0x16,_0x3c5b9d._0x4d6b03,_0x3c5b9d._0x521bd5,0x8);}},boundNestedExecutionControls=new WeakMap();function closeBoundNestedToolExecution(_0x212c62,_0x3ca008){const _0x8dd232={_0x4a962f:0xfb},_0x45cb80={_0x403391:0x490,_0xe86c32:0x134};function _0x37aa44(_0x29b7d4,_0x4701db,_0x2fe326,_0x5bda42){return _0x2f39af(_0x4701db,_0x2fe326- -_0x45cb80._0x403391,_0x2fe326-0x171,_0x5bda42-_0x45cb80._0xe86c32);}_0x212c62&&boundNestedExecutionControls['get'](_0x212c62)?.[_0x37aa44(-0x49,-_0x8dd232._0x4a962f,-0xb8,-0x175)](_0x3ca008);}async function drainBoundNestedToolPersistence(_0xea2c58){const _0x439c9d={_0x39a616:0x18f},_0x33bed3={_0x63922b:0x4b5,_0x29efc8:0x1e1};function _0x587ffd(_0x1d46a8,_0x383ca3,_0x44d63c,_0x3e28c0){return _0x2f39af(_0x383ca3,_0x1d46a8- -_0x33bed3._0x63922b,_0x44d63c-0x1d3,_0x3e28c0-_0x33bed3._0x29efc8);}_0xea2c58&&await boundNestedExecutionControls['get'](_0xea2c58)?.[_0x587ffd(-0x139,-0x118,-_0x439c9d._0x39a616,-0x1b5)]();}function commitBoundToolExecutionTerminalState(_0x84b234){const _0x19384c={_0xd6b87d:0xc6,_0x2e1f77:0x39,_0xd75de1:0x231,_0x24f44e:0x17d},_0x18ab51={_0x54d803:0xf6},_0x313830={_0xc6f431:0xed,_0x1c4827:0xc5};function _0x30eae9(_0x256b20,_0x50aeed,_0xdb7dbb,_0x3eba77){return _0x2f39af(_0x3eba77,_0xdb7dbb-_0x313830._0xc6f431,_0xdb7dbb-_0x313830._0x1c4827,_0x3eba77-0x17d);}function _0x34dad7(_0x1932e2,_0x25dc06,_0x34256d,_0x50a52a){return _0x3e74bf(_0x1932e2-0x108,_0x25dc06- -_0x18ab51._0x54d803,_0x1932e2,_0x50a52a-0x162);}_0x84b234&&boundNestedExecutionControls[_0x34dad7(-0x13d,-_0x19384c._0xd6b87d,-0x14e,-_0x19384c._0x2e1f77)](_0x84b234)?.[_0x34dad7(-_0x19384c._0xd75de1,-_0x19384c._0x24f44e,-0x17c,-0x1f8)]();}var PARENT_TOOL_SETTLED_MESSAGE=_0x2f39af(0x30b,0x394,0x3b7,0x3df);function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0xa2af3c,_0x195515,_0x163e37,_0x12175e,_0x225e78=[]){return{'callId':_0xa2af3c,'toolName':_0x195515,'status':'error','output':_0x163e37,'structured':_0x12175e,'chunks':_0x225e78,'meta':createToolMeta()};}function createRejectedToolResult(_0x28d4d5,_0x27d47c,_0x4ed989){const _0xa98df3={_0x3feb28:0x56,_0x3d2e36:0x55,_0x482364:0x22c,_0x379acc:0x177,_0x147033:0x1f},_0x176c7d={_0x492b0d:0x4c3},_0x417c3b={_0x1f630f:0x25e,_0x48dd6b:0xe4};function _0x5a7943(_0x8baeb,_0x5ace61,_0x4a9c72,_0x5058aa){return _0x2f39af(_0x4a9c72,_0x5ace61- -_0x417c3b._0x1f630f,_0x4a9c72-0x3a,_0x5058aa-_0x417c3b._0x48dd6b);}function _0xf0471b(_0xbfaf59,_0x887cb5,_0x4c3159,_0x2cd7ff){return _0x2f39af(_0x887cb5,_0x2cd7ff- -_0x176c7d._0x492b0d,_0x4c3159-0xe9,_0x2cd7ff-0x186);}const _0x27c306=_0x4ed989?.['trim']()[_0x5a7943(0x33,_0xa98df3._0x3feb28,-_0xa98df3._0x3d2e36,0x34)]?_0x4ed989:_0xf0471b(-_0xa98df3._0x482364,-0x18e,-0x115,-_0xa98df3._0x379acc)+_0x27d47c;return createErrorToolResult(_0x28d4d5,_0x27d47c,_0x27c306,{'error':'tool_rejected',..._0x4ed989?.['trim']()[_0x5a7943(_0xa98df3._0x147033,_0xa98df3._0x3feb28,0xc2,-0x28)]?{'reason':_0x4ed989}:{}});}function createAbortedToolResult(_0x2b4318,_0x56cc26,_0x2d81c3,_0x2207e0=[]){const _0x4e42fa={_0x3ee52b:0x48f,_0x12b66c:0x50d,_0x2b0af1:0x4fc,_0xb1d87:0x54b},_0x78d112={_0x599c89:0x1a3},_0x31a020={_0x1aad50:0xf2,_0x1d57e5:0x173};if(_0x56cc26===_0x1ad6d(0x454,0x50a,_0x4e42fa._0x3ee52b,_0x4e42fa._0x12b66c))return createErrorToolResult(_0x2b4318,_0x56cc26,'program\x20execution\x20was\x20aborted',{'error':'program-aborted','aborted':!![]},_0x2207e0);function _0x343399(_0x25a1dd,_0x27bc8f,_0x13fcf5,_0x2743f1){return _0x2f39af(_0x2743f1,_0x25a1dd- -0x1fa,_0x13fcf5-_0x31a020._0x1aad50,_0x2743f1-_0x31a020._0x1d57e5);}const _0x26c5a1=toAbortError(_0x2d81c3);function _0x1ad6d(_0x2d2865,_0x52af88,_0x7026b5,_0x253ab4){return _0x3e74bf(_0x2d2865-_0x78d112._0x599c89,_0x253ab4-0x4ea,_0x2d2865,_0x253ab4-0x10a);}return createErrorToolResult(_0x2b4318,_0x56cc26,_0x26c5a1['message'],{'error':_0x26c5a1[_0x1ad6d(_0x4e42fa._0x2b0af1,0x5b7,0x54a,_0x4e42fa._0xb1d87)],..._0x2d81c3 instanceof ToolExecutionError?_0x2d81c3[_0x1ad6d(0x464,0x53b,0x4d9,0x506)]:{},'aborted':!![]},_0x2207e0);}function createSuccessToolResult(_0x125d4c,_0x29e24d,_0x5f2392,_0x280b75){const _0x60173f={_0x573349:0x39f,_0x20bcf1:0x3d0,_0x540843:0x2d6,_0x47cc3b:0x18d},_0x144784={_0x111ef2:0x87};function _0x3822b1(_0x2a7dec,_0x2d516b,_0x317ad4,_0x2caf71){return _0x2f39af(_0x2caf71,_0x2d516b- -0x518,_0x317ad4-0x183,_0x2caf71-_0x144784._0x111ef2);}function _0x185941(_0x3f45da,_0x443c05,_0x488c2a,_0x3956ae){return _0x2f39af(_0x3956ae,_0x488c2a- -0x1,_0x488c2a-0xfa,_0x3956ae-0x93);}return{'callId':_0x125d4c,'toolName':_0x29e24d,'status':'ok','output':_0x5f2392['output'],'structured':_0x5f2392[_0x185941(0x359,0x416,_0x60173f._0x573349,_0x60173f._0x20bcf1)],..._0x5f2392[_0x185941(0x2cf,0x281,0x313,_0x60173f._0x540843)]!==void 0x0?{'content':_0x5f2392[_0x3822b1(-_0x60173f._0x47cc3b,-0x204,-0x19e,-0x2b4)]}:{},'chunks':_0x280b75,'meta':createToolMeta()};}function createUnknownToolResult(_0x1cccc4,_0x1521e7){const _0x251e39={_0x23df19:0x1af,_0xc0c76b:0x27e},_0x4bcb05={_0xcf083b:0x1a9,_0x3906ef:0x22e,_0x467e1e:0x2c};function _0x4cccd8(_0x2ee274,_0xef9007,_0x3dbd56,_0x3f3572){return _0x3e74bf(_0x2ee274-_0x4bcb05._0xcf083b,_0x3dbd56- -_0x4bcb05._0x3906ef,_0xef9007,_0x3f3572-_0x4bcb05._0x467e1e);}return createErrorToolResult(_0x1cccc4,_0x1521e7,'Unknown\x20tool:\x20'+_0x1521e7,{'error':_0x4cccd8(-_0x251e39._0x23df19,-_0x251e39._0xc0c76b,-0x1d8,-0x19d)});}function cloneToolCallForPublication(_0x14f2f9,_0x3bedd1,_0x5af3ee){const _0x296b76={_0x5b5e3c:0x22d,_0xe214e4:0x276,_0x393558:0x2c9},_0x5e4b8f={_0x4da3ea:0x16a,_0x46a967:0x4};function _0x36cef4(_0x190bae,_0x9076fe,_0x4f70b6,_0x470809){return _0x2f39af(_0x470809,_0x190bae- -_0x5e4b8f._0x4da3ea,_0x4f70b6-0x32,_0x470809-_0x5e4b8f._0x46a967);}return{...structuredClone(_0x14f2f9),'type':_0x36cef4(_0x296b76._0x5b5e3c,0x2af,_0x296b76._0xe214e4,_0x296b76._0x393558),'id':_0x3bedd1,'name':_0x5af3ee};}function cloneToolResultChunkForPublication(_0x3dad80){return structuredClone(_0x3dad80);}function cloneToolResultForPublication(_0x1fb216,_0x4ad120,_0x59c787){const {chunks:_0x436f2d,..._0x33a0ea}=_0x1fb216;return{...structuredClone(_0x33a0ea),'callId':_0x4ad120,'toolName':_0x59c787,'chunks':_0x436f2d['map'](cloneToolResultChunkForPublication)};}function isDispatchDecision(_0x148e7f){const _0x515624={_0x503219:0x386,_0x368725:0x353,_0x50d9ea:0x2ea,_0x27a9c3:0x2f3,_0x2c1f68:0xc0,_0x8db027:0xdc,_0x4a3291:0xee,_0x399a78:0x13,_0x4a54d8:0x120},_0x240054={_0x44a58d:0x16e,_0x676ede:0x175};function _0x5b379b(_0x13944a,_0xfc9b26,_0x1a7e75,_0x54ac10){return _0x2f39af(_0xfc9b26,_0x13944a- -0x425,_0x1a7e75-_0x240054._0x44a58d,_0x54ac10-_0x240054._0x676ede);}function _0x24a1e4(_0x34837b,_0x1144b4,_0x3cb579,_0x475955){return _0x2f39af(_0x1144b4,_0x34837b- -0x8c,_0x3cb579-0x1f0,_0x475955-0x180);}if(typeof _0x148e7f!=='object'||_0x148e7f===null)return![];return _0x148e7f[_0x24a1e4(_0x515624._0x503219,_0x515624._0x368725,_0x515624._0x50d9ea,_0x515624._0x27a9c3)]===_0x5b379b(-_0x515624._0x2c1f68,-0xf8,-_0x515624._0x8db027,-_0x515624._0x4a3291)||_0x148e7f[_0x5b379b(-_0x515624._0x399a78,0x74,0x79,0x22)]===_0x5b379b(-0x12f,-0xa9,-_0x515624._0x4a54d8,-0x97);}function normalizeExecutionError(_0x25f70a){const _0x2cfdc6={_0x3486d8:0x5b,_0x560584:0x7,_0x34e177:0x535,_0xe84329:0x471,_0x3a7fc1:0x480,_0x5d9bcf:0x464,_0x43f7b7:0x47,_0x26abd0:0x44a,_0x2e9aa8:0x23,_0x4aea4e:0x84,_0x22cc52:0x4a7,_0x5868ea:0x17,_0x20d56d:0xa3,_0xbf0226:0x9c,_0x4310ed:0x480,_0x35e40d:0x480},_0x553c8d={_0x515af7:0x61,_0x40c744:0x42,_0x1837a7:0x1a8},_0x486ebf={_0x2c6e0c:0x9b,_0x35f950:0x1d5};if(_0x25f70a instanceof ToolExecutionError)return{'errorMessage':_0x25f70a[_0x54f078(0x110,_0x2cfdc6._0x3486d8,-_0x2cfdc6._0x560584,0xa3)],'structured':{'error':_0x25f70a[_0x348e51(_0x2cfdc6._0x34e177,_0x2cfdc6._0xe84329,_0x2cfdc6._0x3a7fc1,_0x2cfdc6._0x5d9bcf)],..._0x25f70a[_0x54f078(0xab,-0x27,_0x2cfdc6._0x43f7b7,0x5e)]}};function _0x348e51(_0xf2ba0a,_0xcc1fb1,_0x19b5e8,_0x2f3dcc){return _0x2f39af(_0xcc1fb1,_0x19b5e8-_0x486ebf._0x2c6e0c,_0x19b5e8-0x46,_0x2f3dcc-_0x486ebf._0x35f950);}if(_0x25f70a instanceof Error)return{'errorMessage':_0x25f70a[_0x348e51(0x4ca,_0x2cfdc6._0x26abd0,0x480,0x45e)],'structured':{'error':_0x25f70a[_0x54f078(0x106,_0x2cfdc6._0x2e9aa8,_0x2cfdc6._0x4aea4e,0xa3)]}};function _0x54f078(_0x531c17,_0x536e7e,_0x35a4a2,_0x5be317){return _0x3e74bf(_0x531c17-_0x553c8d._0x515af7,_0x5be317-_0x553c8d._0x40c744,_0x35a4a2,_0x5be317-_0x553c8d._0x1837a7);}if(typeof _0x25f70a===_0x348e51(0x46a,0x4d8,_0x2cfdc6._0x22cc52,0x4cb)&&_0x25f70a!==null&&_0x54f078(-0xe,0x9e,_0x2cfdc6._0x5868ea,_0x2cfdc6._0x20d56d)in _0x25f70a&&typeof _0x25f70a['message']===_0x54f078(0xa2,0x13b,0x109,_0x2cfdc6._0xbf0226))return{'errorMessage':_0x25f70a[_0x348e51(0x479,0x3c4,_0x2cfdc6._0x4310ed,0x51e)],'structured':{'error':_0x25f70a[_0x348e51(0x49d,0x4fb,_0x2cfdc6._0x35e40d,0x52e)]}};const _0x522c4e=String(_0x25f70a);return{'errorMessage':_0x522c4e,'structured':{'error':_0x522c4e}};}function cloneToolEventForPublication(_0x577608){const _0x5505ae={_0x58a501:0x46,_0x2977f5:0x36,_0x5a884f:0x18,_0x11b2d7:0x73,_0x5e313a:0xa1,_0x669a9f:0x50,_0xfb31f3:0xc6,_0x1bcb5f:0x39,_0x4f5293:0x9b,_0x1dc96e:0xcd,_0x2b165e:0x13c,_0x256572:0x15a,_0x25d6bb:0x16,_0x403779:0x8c,_0x5a0ddb:0x147,_0x10cdbe:0x13d,_0x121d21:0x13f,_0x2d8a19:0x1e1,_0x313982:0x47,_0x153184:0x18,_0x55695d:0x90,_0x58d46e:0x69,_0x37391b:0x75,_0x13cc66:0x4e,_0x53f092:0x9,_0x2f5a24:0xa6,_0x648910:0xae,_0x5703d0:0x5a,_0x58061f:0xd1,_0x51b14e:0x10f,_0x1c6197:0x5c,_0x1ce16b:0x95},_0x337213={_0x99b3e3:0x1ea,_0x55f145:0x1e0},_0x8a4599={_0x999230:0x1cc};function _0xd57e0b(_0x5e72f4,_0x294cc4,_0x26e696,_0x7f6d72){return _0x3e74bf(_0x5e72f4-0xb7,_0x26e696- -0x2,_0x5e72f4,_0x7f6d72-_0x8a4599._0x999230);}function _0x1d13f4(_0x27727f,_0x1591c7,_0x2f4005,_0x2be0ff){return _0x3e74bf(_0x27727f-_0x337213._0x99b3e3,_0x1591c7-0xbc,_0x2f4005,_0x2be0ff-_0x337213._0x55f145);}switch(_0x577608[_0xd57e0b(0x3e,-0x37,-_0x5505ae._0x58a501,-0x1)]){case _0x1d13f4(0x3b,0x74,-_0x5505ae._0x2977f5,0x3a):case'tool_started':return{..._0x577608,'toolCall':cloneToolCallForPublication(_0x577608[_0x1d13f4(0xd6,_0x5505ae._0x5a884f,-_0x5505ae._0x11b2d7,_0x5505ae._0x5e313a)],_0x577608[_0xd57e0b(-_0x5505ae._0x669a9f,-_0x5505ae._0xfb31f3,-0xa6,-0x4d)]['id'],_0x577608[_0x1d13f4(-0x1f,_0x5505ae._0x5a884f,0x7,_0x5505ae._0x1bcb5f)][_0x1d13f4(-0x3e,0x16,_0x5505ae._0x4f5293,_0x5505ae._0x1dc96e)])};case'tool_output_chunk':return{..._0x577608,'toolCall':cloneToolCallForPublication(_0x577608['toolCall'],_0x577608[_0xd57e0b(-0xbc,-0x4e,-0xa6,-0x46)]['id'],_0x577608[_0xd57e0b(-_0x5505ae._0x2b165e,-0x24,-0xa6,-_0x5505ae._0x256572)][_0x1d13f4(-0x87,_0x5505ae._0x25d6bb,_0x5505ae._0x403779,-0x59)]),'chunk':cloneToolResultChunkForPublication(_0x577608['chunk'])};case _0x1d13f4(0x50,0xa6,0x101,_0x5505ae._0x5a0ddb):case _0x1d13f4(_0x5505ae._0x10cdbe,_0x5505ae._0x256572,_0x5505ae._0x121d21,_0x5505ae._0x2d8a19):return{..._0x577608,'toolCall':cloneToolCallForPublication(_0x577608['toolCall'],_0x577608[_0x1d13f4(-_0x5505ae._0x313982,_0x5505ae._0x153184,-_0x5505ae._0x55695d,-_0x5505ae._0x58d46e)]['id'],_0x577608['toolCall'][_0xd57e0b(-_0x5505ae._0x37391b,-0xf8,-0xa8,-_0x5505ae._0x13cc66)]),'result':cloneToolResultForPublication(_0x577608[_0xd57e0b(0x54,0x4d,_0x5505ae._0x53f092,0x87)],_0x577608['toolCall']['id'],_0x577608[_0xd57e0b(-0x8,-0x9e,-_0x5505ae._0x2f5a24,-_0x5505ae._0x648910)][_0x1d13f4(-_0x5505ae._0x5703d0,0x16,-0x8e,0x43)])};case _0xd57e0b(-_0x5505ae._0x58061f,-_0x5505ae._0x51b14e,-0x76,-_0x5505ae._0x1c6197):return{..._0x577608,'result':cloneToolResultForPublication(_0x577608[_0xd57e0b(_0x5505ae._0x153184,-_0x5505ae._0x1ce16b,_0x5505ae._0x53f092,0x1f)],_0x577608['result']['callId'],_0x577608['result']['toolName'])};default:return _0x577608;}}var TERMINAL_LIFECYCLE_EVENT_TYPES=new Set([_0x3e74bf(0x2f,-0x16,-0x62,-0x5a),'tool_rejected']);function isTerminalLifecycleEvent(_0x383d11){const _0x42fba3={_0x4387ea:0x59d,_0x205f03:0x524,_0xaeaaff:0x533,_0x5b80ef:0x47b,_0x49fb98:0xf6},_0x46b235={_0x4be277:0x436,_0x4f2ecd:0x127,_0xa864fc:0xe3},_0x5c3712={_0x5107bf:0x497,_0x1c124c:0x10};function _0x47ebc2(_0x3ce4e1,_0x399749,_0x27413f,_0xa620ad){return _0x3e74bf(_0x3ce4e1-0xf8,_0x399749-_0x5c3712._0x5107bf,_0x3ce4e1,_0xa620ad-_0x5c3712._0x1c124c);}function _0xb59802(_0x21f8e0,_0x396c19,_0x570971,_0x57a802){return _0x2f39af(_0x396c19,_0x57a802- -_0x46b235._0x4be277,_0x570971-_0x46b235._0x4f2ecd,_0x57a802-_0x46b235._0xa864fc);}return TERMINAL_LIFECYCLE_EVENT_TYPES[_0x47ebc2(_0x42fba3._0x4387ea,_0x42fba3._0x205f03,_0x42fba3._0xaeaaff,_0x42fba3._0x5b80ef)](_0x383d11[_0xb59802(-0xb6,-0x4e,-0x192,-_0x42fba3._0x49fb98)]);}async function emitEvent(_0x3cf7ae,_0x52f822,_0x455f21){try{await _0x3cf7ae?.(cloneToolEventForPublication(_0x52f822),_0x455f21);}catch(_0x4966db){throw new ToolRuntimeInfrastructureError(_0x4966db);}}function actualCancellationHasPrecedence(_0x5ca86a,_0x3873da){const _0x2ea8b8={_0x25f669:0x2c7,_0x436143:0x272},_0x4083e1={_0x144500:0x169,_0x1ce8e4:0x8d};function _0x3c1a4c(_0x374cc1,_0x23e41b,_0x3203bf,_0x1d2eed){return _0x2f39af(_0x3203bf,_0x23e41b- -0x572,_0x3203bf-_0x4083e1._0x144500,_0x1d2eed-_0x4083e1._0x1ce8e4);}return _0x5ca86a[_0x3c1a4c(-_0x2ea8b8._0x25f669,-_0x2ea8b8._0x436143,-0x2a1,-0x245)]['aborted']&&!_0x3873da;}function selectActualCancellationReason(_0x31c744,_0x30ebdc,_0x430151){const _0x10b0ba={_0x4b2cd4:0xac,_0x121301:0xc5,_0x13462a:0x69,_0x37fb07:0x3b,_0x11da45:0x211,_0x577612:0x228},_0x475973={_0x34d51d:0x22d},_0x49840c={_0x3a1b4f:0x3f,_0x34cbe2:0x1c9};function _0x2863c7(_0x51fc4a,_0x54557f,_0x31ec52,_0x222316){return _0x3e74bf(_0x51fc4a-0x18b,_0x222316-_0x49840c._0x3a1b4f,_0x51fc4a,_0x222316-_0x49840c._0x34cbe2);}if(_0x430151)return new ToolExecutionError(_0x430151[_0x2863c7(-_0x10b0ba._0x4b2cd4,-_0x10b0ba._0x121301,_0x10b0ba._0x13462a,-_0x10b0ba._0x37fb07)],{..._0x430151['structured'],'aborted':!![]});function _0x1de6f5(_0x3b56ab,_0x1089e2,_0x5442d8,_0xeaf80a){return _0x3e74bf(_0x3b56ab-0x70,_0x5442d8- -_0x475973._0x34d51d,_0x3b56ab,_0xeaf80a-0x8f);}return _0x31c744 instanceof ToolExecutionError&&_0x31c744[_0x1de6f5(-0x1e7,-0x2bb,-_0x10b0ba._0x11da45,-_0x10b0ba._0x577612)]['aborted']===!![]?_0x31c744:_0x30ebdc;}function selectedTerminalStateHasPrecedence(_0x2cd288,_0x4b2924,_0x419ddb,_0x489876){const _0x4b031e={_0x39e035:0x2dd,_0xf7daa2:0x2ea,_0x31db29:0x2ca,_0x5c93de:0x1fc,_0x28533f:0x30f,_0x1fb489:0x2b5,_0x3a506c:0x115,_0x45c5e4:0x144,_0x43f682:0x188,_0x5d0aaf:0x10e,_0x852c69:0x143,_0x4396ec:0x57,_0x4d8d04:0x2c7,_0x184e6f:0x2de,_0xc265df:0x1a8,_0x32e1e7:0x2f5,_0x15d2aa:0x162,_0x3e686b:0x192,_0x3d193d:0x194,_0x3095db:0xee,_0x58318e:0x113,_0x5f1fa3:0x34f,_0x4b261e:0x2d0,_0x485ba0:0x1d8,_0xf29335:0x2bd},_0x4e1019={_0x39bcb8:0x145,_0x2fafff:0x23e},_0x3f72ae={_0x333161:0x4b5,_0x5b8545:0x199};function _0x55c44f(_0x10c899,_0x4d0856,_0x5707ef,_0x17df6b){return _0x2f39af(_0x5707ef,_0x4d0856- -_0x3f72ae._0x333161,_0x5707ef-_0x3f72ae._0x5b8545,_0x17df6b-0x139);}if(_0x4b2924[_0x110475(-_0x4b031e._0x39e035,-0x367,-_0x4b031e._0xf7daa2,-_0x4b031e._0x31db29)]!==_0x110475(-_0x4b031e._0x5c93de,-0x26d,-_0x4b031e._0x28533f,-_0x4b031e._0x1fb489))return![];if(!_0x489876)return _0x4b2924[_0x55c44f(-0x1ba,-_0x4b031e._0x3a506c,-_0x4b031e._0x45c5e4,-0xc6)]['aborted']===!![]&&actualCancellationHasPrecedence(_0x419ddb,_0x489876);if(_0x2cd288!==_0x55c44f(-_0x4b031e._0x43f682,-_0x4b031e._0x5d0aaf,-_0x4b031e._0x852c69,-_0x4b031e._0x4396ec))return![];function _0x110475(_0x21c117,_0x2cd05d,_0x3f7921,_0x43baef){return _0x3e74bf(_0x21c117-_0x4e1019._0x39bcb8,_0x43baef- -_0x4e1019._0x2fafff,_0x21c117,_0x43baef-0x19);}return _0x4b2924[_0x110475(-_0x4b031e._0x4d8d04,-0x2dc,-_0x4b031e._0x184e6f,-0x222)][_0x55c44f(-0x16b,-_0x4b031e._0xc265df,-0x149,-0x164)]==='program-aborted'||_0x4b2924['structured'][_0x110475(-0x25c,-0x2dd,-_0x4b031e._0x32e1e7,-0x2b5)]===_0x55c44f(-_0x4b031e._0x15d2aa,-_0x4b031e._0x3e686b,-_0x4b031e._0x3d193d,-0x207)||_0x4b2924[_0x55c44f(-0x17d,-0x115,-_0x4b031e._0x3095db,-_0x4b031e._0x58318e)][_0x110475(-_0x4b031e._0x5f1fa3,-_0x4b031e._0x4b261e,-0x1fc,-_0x4b031e._0x1fb489)]===_0x110475(-_0x4b031e._0x485ba0,-_0x4b031e._0xf29335,-0x2a2,-0x272);}async function emitToolCompletedEventWithTerminalPrecedence(_0x2c4061,_0x229c72,_0x4f01ba,_0x19a82d,_0x1b204a,_0x43e92d,_0x19c607=![]){const _0x359bf8={_0x1fa7b2:0x157},_0x3482d3={_0x494aae:0xa1};function _0x7de09b(_0x108d17,_0x220c81,_0xe1039f,_0x53ed6c){return _0x3e74bf(_0x108d17-_0x3482d3._0x494aae,_0x108d17- -0x1de,_0x53ed6c,_0x53ed6c-0x147);}try{await emitEvent(_0x2c4061,{'type':_0x7de09b(-0x1f4,-0x288,-_0x359bf8._0x1fa7b2,-0x1cb),'toolCall':cloneToolCallForPublication(_0x229c72,_0x4f01ba,_0x19a82d),'result':_0x1b204a},_0x43e92d);}catch(_0x5af816){if(!(_0x5af816 instanceof ToolRuntimeInfrastructureError)||!selectedTerminalStateHasPrecedence(_0x19a82d,_0x1b204a,_0x43e92d,_0x19c607))throw _0x5af816;}}async function awaitWithAbort(_0xa8bb89,_0x25bea4){const _0x2e9766={_0x44d682:0x12,_0x5a01dd:0x26,_0x1e8fa8:0x5,_0x21cdf5:0x52,_0x3bf93b:0x8c,_0x466408:0xb1,_0x281874:0x15},_0x4567c1={_0x407d28:0x118,_0x506818:0x167},_0x1a7cc3={_0x59d5b2:0x26,_0x19d54d:0x30},_0x28d2dc={_0x38b138:0x15e},_0x17d505={_0x3dc483:0x391};let _0x31a849=()=>{};function _0x5a18ee(_0x264974,_0x248bd2,_0x522ab8,_0x4d7be7){return _0x3e74bf(_0x264974-0x1ed,_0x248bd2-0xaf,_0x4d7be7,_0x4d7be7-0x1a);}let _0x15692f;_0x25bea4&&(throwIfAborted(_0x25bea4),_0x15692f=new Promise((_0x423d20,_0x477faf)=>{function _0x218dc6(_0x15bf67,_0x456573,_0x1075dc,_0x3aa648){return _0xd98e(_0x3aa648- -_0x17d505._0x3dc483,_0x456573);}const _0x463445=()=>{_0x477faf(toAbortError(_0x25bea4['reason']));};function _0x27cf1b(_0x6149ae,_0x35598a,_0x5a971f,_0x4b59f6){return _0xd98e(_0x5a971f- -_0x28d2dc._0x38b138,_0x6149ae);}_0x25bea4['addEventListener'](_0x27cf1b(-_0x1a7cc3._0x59d5b2,_0x1a7cc3._0x19d54d,-0x5d,-0xf8),_0x463445,{'once':!![]}),_0x31a849=()=>_0x25bea4[_0x27cf1b(0x85,0x2b,0x2e,0xc0)](_0x27cf1b(-0xa2,0x35,-0x5d,-0xb3),_0x463445);}));function _0x33762f(_0x406731,_0x5da21f,_0x29a4c8,_0x3bfbee){return _0x2f39af(_0x3bfbee,_0x406731- -_0x4567c1._0x407d28,_0x29a4c8-_0x4567c1._0x506818,_0x3bfbee-0x41);}const _0xb51ecc=Promise[_0x5a18ee(_0x2e9766._0x44d682,-_0x2e9766._0x5a01dd,_0x2e9766._0x1e8fa8,-_0x2e9766._0x21cdf5)]()[_0x5a18ee(0xb3,0xc6,_0x2e9766._0x3bf93b,_0x2e9766._0x466408)](()=>{return throwIfAborted(_0x25bea4),_0xa8bb89();});try{return await(_0x15692f?Promise[_0x5a18ee(-0x33,-_0x2e9766._0x281874,0x74,0xa8)]([_0xb51ecc,_0x15692f]):_0xb51ecc);}finally{_0x31a849();}}function createNestedCallAdmissionGate(){const _0x3b63f0={_0x25980e:0x110,_0x5db441:0x1c1},_0x55484a={_0xc92d3e:0x50b,_0x192311:0x43f,_0x993b69:0x3fe};function _0x53afd2(_0x29818d,_0x4a5dc7,_0x11ebef,_0x2cb4c9){return _0x2f39af(_0x2cb4c9,_0x4a5dc7- -0x189,_0x11ebef-0xbe,_0x2cb4c9-0x3d);}let _0x3e15c5=0x1,_0x566237=![],_0x262731,_0x284773=Promise[_0x53afd2(_0x3b63f0._0x25980e,0x126,_0x3b63f0._0x5db441,0xb0)]();const _0xb4ca11=new Set(),_0x422899=_0x36d4f0=>{!_0x566237&&(_0x566237=!![],_0x262731=_0x36d4f0);for(const _0x1c09f9 of[..._0xb4ca11]){_0x1c09f9();}};return{'register'(_0x55a6e1){const _0x5903e5={_0x2b770e:0x14d,_0x16b9c7:0x30e},_0x477115={_0x28486e:0x1dc},_0x19d6fe={_0x55550d:0x36f,_0x58a095:0x160},_0xf90be9={_0x49ca79:0x181,_0x14271a:0x230,_0x43d365:0x190};if(_0x566237)throw _0x262731;if(_0x55a6e1!==_0x3e15c5){const _0x5df98c=new Error(_0x1f1dac(_0x55484a._0xc92d3e,0x4c6,0x4b2,_0x55484a._0x192311)+_0x55a6e1+_0x1f1dac(0x380,_0x55484a._0x993b69,0x3bc,0x30e)+_0x3e15c5);_0x422899(_0x5df98c);throw _0x5df98c;}_0x3e15c5+=0x1;const _0x25dc6f=_0x284773;let _0x4fb756;function _0x1f1dac(_0x2e02ee,_0x5a535f,_0x9e8ed0,_0x14a2ab){return _0x53afd2(_0x2e02ee-_0xf90be9._0x49ca79,_0x9e8ed0-_0xf90be9._0x14271a,_0x9e8ed0-_0xf90be9._0x43d365,_0x5a535f);}_0x284773=new Promise(_0xca1298=>{_0x4fb756=_0xca1298;});const _0x316592=()=>{if(_0x4fb756===void 0x0)return;const _0x1adcf9=_0x4fb756;_0x4fb756=void 0x0,_0xb4ca11[_0x280639(0x1b3,0x1a3,0x205,_0x477115._0x28486e)](_0x316592);function _0x280639(_0x527091,_0x5784d6,_0x2e9f6b,_0x23ce7b){return _0x263849(_0x527091-0xa0,_0x527091-_0x19d6fe._0x55550d,_0x2e9f6b-_0x19d6fe._0x58a095,_0x5784d6);}_0x1adcf9();};function _0x263849(_0x33e3de,_0x1cdbd1,_0x11657e,_0x4dc3c4){return _0x53afd2(_0x33e3de-_0x5903e5._0x2b770e,_0x1cdbd1- -_0x5903e5._0x16b9c7,_0x11657e-0x11c,_0x4dc3c4);}return _0xb4ca11['add'](_0x316592),{async 'admit'(_0x5106c7,_0x880a0c){try{await awaitWithAbort(()=>_0x25dc6f,_0x880a0c);if(_0x566237)throw _0x262731;await _0x5106c7();if(_0x566237)throw _0x262731;}catch(_0x3dcc77){_0x422899(_0x3dcc77);throw _0x3dcc77;}finally{_0x316592();}},'fail'(_0x5694f1){_0x422899(_0x5694f1),_0x316592();}};},'fail':_0x422899};}async function awaitRequiredPersistence(_0x48ce7a,_0x3b57ee,_0x135c70){const _0x7fe0a4={_0x3a7405:0x2ee,_0x5b300e:0x262};await awaitWithAbort(()=>{const _0x256aa8={_0x521c09:0x1a2},_0x37a022=Promise[_0x247a5b(_0x7fe0a4._0x3a7405,0x244,_0x7fe0a4._0x5b300e,0x265)]()['then'](_0x48ce7a);_0x135c70(_0x37a022);function _0x247a5b(_0x5b6e1e,_0x55ca81,_0x361a0d,_0x1afb1a){return _0xd98e(_0x361a0d-_0x256aa8._0x521c09,_0x55ca81);}return _0x37a022;},_0x3b57ee);}async function awaitUncancellableAfterAdmission(_0x54c105,_0x1225ed){const _0xb920a8={_0x3b43c0:0xd,_0x198787:0xae,_0x43c375:0xd7,_0x70ff91:0x48,_0x42d7e9:0x27,_0x2a23de:0x32},_0x3af99d={_0x5561f6:0x322,_0x182ffa:0x64},_0x404bfd={_0xdbbd9f:0x17f};throwIfAborted(_0x1225ed);const _0x4bf338=()=>{};_0x1225ed[_0x4ac830(0x6f,_0xb920a8._0x3b43c0,0x10,_0xb920a8._0x198787)](_0x4ac830(-_0xb920a8._0x43c375,-_0xb920a8._0x70ff91,_0xb920a8._0x42d7e9,-_0xb920a8._0x2a23de),_0x4bf338,{'once':!![]});function _0x36140c(_0x1246e6,_0x42520b,_0x2bfa0d,_0x1780de){return _0x3e74bf(_0x1246e6-0x1e8,_0x1780de-0x2a6,_0x2bfa0d,_0x1780de-_0x404bfd._0xdbbd9f);}function _0x4ac830(_0x1f1365,_0x561b48,_0x4e8f89,_0x235fd6){return _0x2f39af(_0x4e8f89,_0x235fd6- -_0x3af99d._0x5561f6,_0x4e8f89-_0x3af99d._0x182ffa,_0x235fd6-0x35);}try{return throwIfAborted(_0x1225ed),await _0x54c105();}finally{_0x1225ed['removeEventListener']('abort',_0x4bf338);}}async function resolveDispatchDecision(_0x4af55e,_0x4586cc,_0x275293){const _0x508063={_0x18e56b:0x199,_0x1967e0:0x25f,_0x148524:0x207,_0x4df839:0x1a6,_0x5b89ce:0x1f7},_0x1e7ccb={_0xe020a9:0x3},_0x2aebcb={_0x132cba:0x10b,_0x526abd:0x1ec};if(!_0x4af55e)return{'action':_0x530483(-0x17c,-0x182,-_0x508063._0x18e56b,-0xf5)};function _0x530483(_0xadf54f,_0xed5d4a,_0x135a87,_0x576e70){return _0x3e74bf(_0xadf54f-0xb6,_0x135a87- -_0x2aebcb._0x132cba,_0xed5d4a,_0x576e70-_0x2aebcb._0x526abd);}function _0x4cb707(_0x409b91,_0x3cda45,_0x205ac4,_0x1e21fc){return _0x2f39af(_0x1e21fc,_0x409b91- -0xef,_0x205ac4-_0x1e7ccb._0xe020a9,_0x1e21fc-0xe2);}const _0x657ee0=await awaitWithAbort(()=>_0x4af55e(_0x4586cc,_0x275293),_0x275293[_0x4cb707(0x211,0x2b9,0x2bc,_0x508063._0x1967e0)]);return isDispatchDecision(_0x657ee0)?_0x657ee0:{'action':_0x4cb707(_0x508063._0x148524,0x1f4,_0x508063._0x4df839,_0x508063._0x5b89ce)};}async function prepareNestedToolCall(_0xbe8c65,_0x118943,_0x148305,_0x187f24){const _0x9e97f9={_0x149d56:0x24b,_0x28214f:0xaa};function _0x251447(_0x416c74,_0x2182d3,_0x15e987,_0x5ac73b){return _0x2f39af(_0x416c74,_0x15e987- -_0x9e97f9._0x149d56,_0x15e987-0x10,_0x5ac73b-_0x9e97f9._0x28214f);}if(!_0xbe8c65)return _0x118943;const _0x3c883e=await awaitWithAbort(()=>_0xbe8c65[_0x77ec55(0x139,0x18c,0x20d,0x1c7)](_0x77ec55(0x15a,0x119,0x10d,0xb0),_0x118943,_0x148305),_0x187f24);function _0x77ec55(_0x54a5f5,_0x21c68f,_0x13a301,_0x3035ba){return _0x3e74bf(_0x54a5f5-0x197,_0x3035ba-0x17e,_0x54a5f5,_0x3035ba-0x161);}return throwIfAborted(_0x187f24),await awaitWithAbort(()=>_0xbe8c65[_0x251447(0xf7,0xdb,0x17e,0x1a2)](_0x77ec55(0x50,0x133,0x64,0xb0),_0x3c883e,_0x148305),_0x187f24),_0x3c883e;}async function transformNestedToolResult(_0x162e57,_0x580101,_0x5d0132,_0x493042){const _0x118a3b={_0xebd010:0xc0},_0x543abe={_0x2d24aa:0x10b};if(!_0x162e57)return _0x580101;const _0x1da2b4=await awaitWithAbort(()=>_0x162e57[_0x1cd285(0x422,0x36e,0x429,0x3f5)](_0x1cd285(0x305,0x35b,0x329,0x381),_0x580101,_0x5d0132),_0x493042);function _0x1cd285(_0x8ebaa2,_0x4fcd47,_0x33c70d,_0x49f83e){return _0x2f39af(_0x49f83e,_0x4fcd47- -0x5f,_0x33c70d-0x5c,_0x49f83e-_0x543abe._0x2d24aa);}throwIfAborted(_0x493042);function _0x28eb0f(_0x67f1b1,_0xee4fb5,_0x414561,_0x5b36cb){return _0x2f39af(_0xee4fb5,_0x414561-0x18b,_0x414561-0x1be,_0x5b36cb-_0x118a3b._0xebd010);}return await awaitWithAbort(()=>_0x162e57['runObservers'](_0x28eb0f(0x51d,0x542,0x545,0x5a2),_0x1da2b4,_0x5d0132),_0x493042),_0x1da2b4;}function snapshotNestedToolRequest(_0x2db2d4){const _0x546b9d={_0x461938:0x32d,_0x5cef12:0x305,_0x78cc85:0x369,_0x2526f0:0x34a,_0x340199:0x3c8,_0x107c22:0x506,_0x1babd1:0x434,_0x10282a:0x1cf,_0x3e9592:0x1ed,_0x5bb4f4:0x37f,_0x5ec2c5:0x3f0,_0x5c0663:0x4f3,_0xb74b2:0x48f},_0x3a45d0={_0x109f6b:0x114,_0x32fe36:0x2aa},_0x16405f=_0x2db2d4[_0x14654a(0x2de,_0x546b9d._0x461938,0x2ed,_0x546b9d._0x5cef12)];function _0x14654a(_0x51c211,_0x5c0e7b,_0x4d7418,_0x6dfcd){return _0x3e74bf(_0x51c211-_0x3a45d0._0x109f6b,_0x6dfcd-_0x3a45d0._0x32fe36,_0x5c0e7b,_0x6dfcd-0x1a9);}const _0x2bc5e8=_0x2db2d4[_0x141a82(_0x546b9d._0x78cc85,_0x546b9d._0x2526f0,0x381,0x370)],_0x1b1b55=_0x2db2d4[_0x14654a(0x1cd,0x2c1,0x148,0x206)]['id'];function _0x141a82(_0x1b596f,_0x2c989c,_0x43b8de,_0x2dfede){return _0x2f39af(_0x2c989c,_0x1b596f-0xa1,_0x43b8de-0x1dd,_0x2dfede-0x149);}const _0x5cde50=structuredClone(_0x2db2d4[_0x141a82(0x381,0x396,0x30b,0x354)]),_0x2576e0=_0x2db2d4[_0x141a82(0x44a,_0x546b9d._0x340199,_0x546b9d._0x107c22,_0x546b9d._0x1babd1)],_0x2a5bec=_0x2db2d4[_0x14654a(0x220,0x275,_0x546b9d._0x10282a,_0x546b9d._0x3e9592)];if(_0x5cde50['name']!==_0x16405f||_0x2bc5e8!==void 0x0&&_0x2bc5e8[_0x141a82(_0x546b9d._0x5bb4f4,0x2e5,_0x546b9d._0x5ec2c5,0x3ba)]!==_0x16405f)throw new Error(_0x141a82(0x4b5,0x4f0,_0x546b9d._0x5c0663,_0x546b9d._0xb74b2));return{'requestedName':_0x16405f,'tool':_0x2bc5e8,'toolCall':_0x5cde50,'toolCallId':_0x1b1b55,'sequence':_0x2576e0,'trace':_0x2a5bec};}function createImmutableExecutionScope(_0x118a42,_0x3936ef){const _0x43fa59={_0x3d2406:0x17c},_0x1b2f8a={_0x5075eb:0x15e};function _0x1b1ea0(_0x4ccad7,_0x2cc429,_0x24a40b,_0x58263d){return _0x2f39af(_0x4ccad7,_0x24a40b- -_0x1b2f8a._0x5075eb,_0x24a40b-0x189,_0x58263d-0xfc);}return Object['freeze']({'agentId':_0x118a42,'toolCallPath':Object[_0x1b1ea0(0x1b0,_0x43fa59._0x3d2406,0x1a4,0x1d6)]([..._0x3936ef])});}function isNestedBashResult(_0x1c54c2){const _0x19747e={_0x5ef058:0x1ff,_0x310b21:0x192,_0x27d804:0x24a,_0x499da3:0x161,_0x1c0037:0x15e,_0x52ba4b:0x20c,_0x393058:0x200,_0x2ac8e2:0x179,_0x41cc69:0x27c,_0x1a0b9c:0x134,_0x15cad4:0x220,_0x4bf61a:0x170,_0x5bd32e:0x111,_0x562838:0x75,_0xe369a1:0x33,_0x52de8c:0x30c,_0x273be6:0x3db,_0x102f94:0x1dc,_0x500a21:0x28b,_0x30859f:0x27f,_0x1fe720:0x2b5,_0x23717d:0x2b7,_0x4a7476:0x2f6,_0x5c90fa:0x1e9,_0x370b7a:0x28b,_0x37fc84:0x1f6,_0x2e4432:0x236,_0x14b99b:0x1e4,_0xd52d05:0x1e8},_0x57c96a={_0x2b90ca:0x18e},_0xa82dd5={_0x2f6a29:0x177,_0x5260be:0x304,_0x12f42b:0x6c};if(_0x1c54c2[_0x1eff7f(_0x19747e._0x5ef058,0x146,0x137,_0x19747e._0x310b21)]!==_0x1eff7f(_0x19747e._0x27d804,0x1c5,0x13d,0x251))return![];function _0x1ab125(_0x4e60cc,_0x4dc7c8,_0x5eb56e,_0x4b331b){return _0x3e74bf(_0x4e60cc-_0xa82dd5._0x2f6a29,_0x5eb56e-_0xa82dd5._0x5260be,_0x4b331b,_0x4b331b-_0xa82dd5._0x12f42b);}const {artifactId:_0x215777,outputPath:_0x9c295,statusPath:_0x3885e7,shellId:_0x1a7e94,attemptId:_0x44438b,toolCallId:_0x427ab7,callId:_0x47de7b}=_0x1c54c2[_0x1eff7f(0x199,_0x19747e._0x499da3,_0x19747e._0x1c0037,_0x19747e._0x52ba4b)];function _0x1eff7f(_0x27ae78,_0x3a43ac,_0x12d6e5,_0x19fb18){return _0x2f39af(_0x27ae78,_0x3a43ac- -0x23f,_0x12d6e5-_0x57c96a._0x2b90ca,_0x19fb18-0xdc);}if(_0x427ab7!==void 0x0&&_0x427ab7!==_0x1c54c2[_0x1eff7f(0x2a1,0x1e4,_0x19747e._0x393058,_0x19747e._0x2ac8e2)]||_0x47de7b!==void 0x0&&_0x47de7b!==_0x1c54c2[_0x1eff7f(_0x19747e._0x41cc69,0x1e4,_0x19747e._0x1a0b9c,0x137)])return![];if(_0x1a7e94!==void 0x0||_0x44438b!==void 0x0){if(typeof _0x1a7e94!=='string'||typeof _0x44438b!==_0x1eff7f(_0x19747e._0x15cad4,0x19f,0x144,_0x19747e._0x4bf61a)||_0x44438b['length']===0x0||_0x44438b[_0x1eff7f(_0x19747e._0x5bd32e,_0x19747e._0x562838,0xa,-_0x19747e._0xe369a1)]>0x80||_0x44438b[_0x1ab125(_0x19747e._0x52de8c,0x29a,0x325,_0x19747e._0x273be6)]('\x00'))return![];}if(_0x215777===void 0x0&&_0x9c295===void 0x0&&_0x3885e7===void 0x0)return!![];return isBashArtifactStatus({'version':0x1,'artifactId':_0x215777,'outputPath':_0x9c295,'statusPath':_0x3885e7,'owner':{'profile':_0x1ab125(0x32c,_0x19747e._0x102f94,_0x19747e._0x500a21,_0x19747e._0x30859f),'workspace':_0x1ab125(_0x19747e._0x1fe720,0x2b7,0x28b,_0x19747e._0x23717d),'sessionId':_0x1ab125(_0x19747e._0x4a7476,_0x19747e._0x5c90fa,_0x19747e._0x370b7a,_0x19747e._0x37fc84)},'toolCallId':_0x1c54c2[_0x1eff7f(_0x19747e._0x2e4432,_0x19747e._0x14b99b,0x24f,_0x19747e._0xd52d05)],..._0x1a7e94===void 0x0?{}:{'shellId':_0x1a7e94},'state':'starting','exitCode':null,'signal':null,'errorCode':null,'finishedAt':null,'captureState':'capturing','bytesRetained':0x0,'maxBytes':BASH_OUTPUT_MAX_BYTES,'truncated':![],'captureErrorCode':null,'startedAt':0x0,'updatedAt':0x0});}async function executeNestedToolRequest(_0x1326d5,_0x435edc,_0x3d36f7,_0x208178,_0xaab7ea,_0x9d00db,_0x51f78d,_0x5e1abd){const _0xf46a83={_0x88852e:0x2c7,_0x553c83:0x32c,_0xcfa776:0x3f6,_0x4bd68d:0x4a9,_0x26ca93:0x35b,_0x5e6bad:0x2c8,_0x253566:0x3ce,_0x17a1d2:0x419,_0x1a8bc5:0x456,_0x1c1678:0x316,_0x3dd91c:0x308,_0x71f11d:0x3a5,_0x71a0de:0x357,_0x24338b:0x413,_0x3b6ba9:0x496,_0x631054:0x47f,_0x2fd086:0x43d,_0x222a07:0x460,_0x436a60:0x464,_0x6f6abb:0x4d7,_0x3d49c1:0x3ba,_0x57b6f2:0x38e,_0x29a36d:0x3f3,_0x37b5b9:0x478,_0x3ddab4:0x4b3,_0x488102:0x468,_0xc7f568:0x413,_0x264491:0x477,_0x30f27b:0x433,_0x4e5a0d:0x548,_0x498285:0x2dc,_0x18ad63:0x48d,_0x42d73e:0x3f0,_0x4a67f0:0x415,_0xfd25e5:0x3da,_0x40954b:0x468,_0x3c68c3:0x44a,_0x50ca30:0x435,_0x29162e:0x3c8,_0x328599:0x3eb,_0x5ed7a2:0x460,_0x275899:0x4a4,_0x2b11bf:0x309,_0x59f6f5:0x2fb,_0x105468:0x37f,_0x563523:0x2fa,_0x4551c4:0x34d,_0x394c7b:0x443,_0x4f7610:0x4c5,_0x19157d:0x473,_0x1a4a9e:0x48a,_0x2b3e4a:0x415,_0x1c61d0:0x3ae,_0x5843e5:0x487,_0x2e4d09:0x44e,_0x338a20:0x3b6,_0x332de8:0x423,_0x3fcd24:0x47b,_0x158353:0x3d8,_0x5cba3d:0x464,_0x3819b1:0x31c,_0x3e9f13:0x3d9,_0x21a927:0x467,_0x22efa9:0x415,_0x87bc18:0x474,_0x1126a5:0x3b4,_0x360b90:0x47d,_0x58ced5:0x3c2,_0x13dbd1:0x3de,_0x5c43d8:0x34c,_0x3cb698:0x381,_0x22b608:0x426,_0x2596fe:0x428,_0x5e8b6c:0x371,_0x4cc58e:0x324,_0x5e1d9c:0x410,_0x3613c5:0x3e3,_0x251e8d:0x3b5,_0x2a6d14:0x3ec,_0x137c42:0x468,_0x20e72c:0x4bd,_0x231d12:0x38e,_0x59b31d:0x479,_0x5d8ac4:0x4b7,_0x2929f3:0x350,_0x580895:0x377,_0x3579a5:0x4a3,_0x3339df:0x399},_0x516bff={_0x34d685:0x2ab,_0xd0c016:0x204,_0x4120a4:0x4a5,_0x2cbe45:0x495,_0x5b1a82:0x4b8,_0x36b6a5:0x466,_0x4bf967:0x385,_0x772991:0x320,_0x37bc08:0x284,_0x59d9ca:0x603,_0x3bda25:0x58d},_0x47aedb={_0x20a33b:0x168,_0x2df39e:0x14f},_0x57ebee={_0x326dd6:0x157,_0x568cd3:0x1fe,_0xce894:0x19f,_0x400112:0x1b2},_0x22034a={_0x12f48e:0x181},_0x1786b3={_0x57a7f1:0x13e,_0x5c2f5a:0x124};function _0x437799(_0x1574c4,_0x4624f8,_0x186a61,_0x59678c){return _0x2f39af(_0x4624f8,_0x1574c4-0x89,_0x186a61-0x17b,_0x59678c-0x1c7);}const _0x2640c1={'state':_0x435edc[_0x437799(0x362,_0xf46a83._0x88852e,_0xf46a83._0x553c83,0x367)],'delivery':_0x437799(_0xf46a83._0xcfa776,_0xf46a83._0x4bd68d,0x473,0x37b),'executionScope':_0x3d36f7};let _0x2342a9;function _0x17bdcb(_0x470d04,_0x217aaa,_0x343906,_0x40518a){return _0x2f39af(_0x40518a,_0x343906-0x85,_0x343906-_0x1786b3._0x57a7f1,_0x40518a-_0x1786b3._0x5c2f5a);}try{_0x2342a9=await prepareNestedToolCall(_0x9d00db[_0x437799(_0xf46a83._0x26ca93,_0xf46a83._0x5e6bad,_0xf46a83._0x253566,0x3ab)],_0x1326d5['toolCall'],_0x2640c1,_0x208178);if(_0x2342a9['id']!==_0x1326d5[_0x437799(_0xf46a83._0x17a1d2,_0xf46a83._0x1a8bc5,0x43a,0x38b)]||_0x2342a9['name']!==_0x1326d5['requestedName'])throw new Error(_0x437799(0x3a5,_0xf46a83._0x1c1678,0x322,_0xf46a83._0x3dd91c));}catch(_0x555568){_0xaab7ea[_0x17bdcb(_0xf46a83._0x71f11d,_0xf46a83._0x71a0de,0x3e9,0x3c7)](_0x555568);throw _0x555568;}const _0x3022eb={..._0x435edc,'signal':_0x208178,'executionScope':_0x3d36f7,'toolCallId':void 0x0,'permissionClass':void 0x0,'executionAuthorization':void 0x0,'executeNestedTool':void 0x0,'beginProgramTrace':void 0x0};let _0x44130d=![];const _0x4ea4f8=async(_0x2baaa7,_0x13005b)=>{const _0x29b3da={_0x8e7368:0x8f,_0xc738c9:0x2d,_0x4d53be:0x89,_0x58d017:0x31},_0x3259f5={_0x360cc5:0x271},_0xcfa65e={_0x425db9:0x87,_0x1ea7ce:0x11c};if(isTerminalLifecycleEvent(_0x2baaa7)){await emitEvent(_0x51f78d,_0x2baaa7,_0x13005b);return;}function _0x1dcbaf(_0x5766f0,_0x3f181d,_0x2bb60a,_0x1bbb7f){return _0x17bdcb(_0x5766f0-0x79,_0x3f181d-0x50,_0x3f181d- -_0x22034a._0x12f48e,_0x2bb60a);}if(_0x208178[_0x1dcbaf(_0x57ebee._0x326dd6,_0x57ebee._0x568cd3,0x163,0x20c)])return;function _0x28ba8e(_0x4faaaf,_0x505769,_0x5f09a1,_0x24e733){return _0x17bdcb(_0x4faaaf-_0xcfa65e._0x425db9,_0x505769-_0xcfa65e._0x1ea7ce,_0x24e733- -0x285,_0x5f09a1);}try{await awaitWithAbort(()=>{const _0x1c5c5d={_0x3da435:0x1e0,_0x530100:0x139};function _0x44d2c2(_0x1657aa,_0x5a1299,_0x2ebabc,_0x35345c){return _0x1dcbaf(_0x1657aa-_0x1c5c5d._0x3da435,_0x35345c- -0x45c,_0x2ebabc,_0x35345c-_0x1c5c5d._0x530100);}_0x2baaa7[_0x36f64c(0x1e,-_0x29b3da._0x8e7368,0x17,-_0x29b3da._0xc738c9)]===_0x36f64c(-0x85,-0x3a,_0x29b3da._0x4d53be,-_0x29b3da._0x58d017)&&_0x51f78d&&(_0x44130d=!![]);function _0x36f64c(_0x1ce8af,_0x4f38c5,_0x583a88,_0x544751){return _0x1dcbaf(_0x1ce8af-0xdd,_0x544751- -_0x3259f5._0x360cc5,_0x4f38c5,_0x544751-0x65);}return _0x51f78d?.(_0x2baaa7,_0x13005b);},_0x208178);}catch(_0x1505f2){if(!isAbortError(_0x1505f2)||!_0x208178[_0x28ba8e(0xdb,_0x57ebee._0xce894,_0x57ebee._0x400112,0xfa)])throw _0x1505f2;}};try{await _0xaab7ea[_0x17bdcb(0x3a6,0x486,_0xf46a83._0x24338b,_0xf46a83._0x3b6ba9)](async()=>{const _0x27d245={_0x19907e:0xa5,_0xf2306a:0xed};function _0x37a47a(_0x313d92,_0x19b934,_0x9c4b38,_0x254ee6){return _0x437799(_0x9c4b38-_0x47aedb._0x20a33b,_0x19b934,_0x9c4b38-_0x47aedb._0x2df39e,_0x254ee6-0x11e);}function _0x5c259a(_0x4159cb,_0x411f36,_0x57a262,_0x2aed1e){return _0x437799(_0x57a262- -_0x27d245._0x19907e,_0x4159cb,_0x57a262-0x12c,_0x2aed1e-_0x27d245._0xf2306a);}throwIfAborted(_0x208178);if(_0x1326d5[_0x5c259a(0x262,0x2b0,_0x516bff._0x34d685,_0x516bff._0xd0c016)]){const _0xd6aef5=_0x1326d5[_0x37a47a(_0x516bff._0x4120a4,_0x516bff._0x2cbe45,_0x516bff._0x5b1a82,_0x516bff._0x36b6a5)];await awaitRequiredPersistence(()=>_0xd6aef5['recordToolCall'](_0x1326d5[_0x37a47a(0x52d,0x5b4,0x59a,0x5d6)],cloneToolCallForPublication(_0x2342a9,_0x1326d5[_0x5c259a(0x399,0x39c,0x374,0x2f8)],_0x1326d5[_0x5c259a(0x3a2,0x425,0x3c3,0x3eb)])),_0x208178,_0x5e1abd);}await _0x4ea4f8({'type':_0x5c259a(0x303,_0x516bff._0x4bf967,_0x516bff._0x772991,_0x516bff._0x37bc08),'toolCall':cloneToolCallForPublication(_0x2342a9,_0x1326d5[_0x37a47a(0x509,0x539,0x581,_0x516bff._0x59d9ca)],_0x1326d5[_0x37a47a(0x62a,0x581,0x5d0,_0x516bff._0x3bda25)])},_0x3022eb),throwIfAborted(_0x208178);},_0x208178);}catch(_0x296255){if(_0x44130d&&_0x208178['aborted']&&isAbortError(_0x296255)){const _0x5d2373=createAbortedToolResult(_0x1326d5[_0x17bdcb(_0xf46a83._0x631054,0x3cd,0x415,0x3d3)],_0x1326d5[_0x17bdcb(_0xf46a83._0x2fd086,_0xf46a83._0x222a07,_0xf46a83._0x436a60,_0xf46a83._0x6f6abb)],_0x296255);try{await emitEvent(_0x51f78d,{'type':_0x17bdcb(_0xf46a83._0x3d49c1,_0xf46a83._0x57b6f2,_0xf46a83._0x29a36d,_0xf46a83._0x37b5b9),'toolCall':cloneToolCallForPublication(_0x2342a9,_0x1326d5[_0x17bdcb(_0xf46a83._0x3ddab4,0x4bc,0x415,0x36b)],_0x1326d5[_0x437799(_0xf46a83._0x488102,_0xf46a83._0xc7f568,_0xf46a83._0x264491,0x436)]),'result':_0x5d2373},_0x3022eb);}catch(_0xb026b4){throw new Error(_0x437799(0x4a8,_0xf46a83._0x30f27b,_0xf46a83._0x4e5a0d,0x3ed),{'cause':_0xb026b4});}}throw _0x296255;}const _0xe7be2a=await executeCapturedToolCall(_0x1326d5[_0x437799(0x351,0x38a,0x33b,_0xf46a83._0x498285)],_0x2342a9,_0x1326d5[_0x17bdcb(_0xf46a83._0x18ad63,_0xf46a83._0x42d73e,_0xf46a83._0x4a67f0,_0xf46a83._0xfd25e5)],_0x1326d5[_0x437799(_0xf46a83._0x40954b,_0xf46a83._0x3c68c3,0x3ff,_0xf46a83._0x50ca30)],_0x3022eb,_0x9d00db,_0x4ea4f8);if(isNestedBashResult(_0xe7be2a)){const _0x778b76=cloneToolResultForPublication(_0xe7be2a,_0x1326d5[_0x437799(_0xf46a83._0x17a1d2,0x48e,_0xf46a83._0x29162e,_0xf46a83._0x328599)],_0x1326d5[_0x437799(0x468,_0xf46a83._0x5ed7a2,0x3b8,_0xf46a83._0x275899)]);let _0x84a918;try{let _0x32a34c=_0x778b76;!_0x208178[_0x17bdcb(0x37d,_0xf46a83._0x2b11bf,0x37f,_0xf46a83._0x59f6f5)]&&_0x9d00db[_0x437799(0x35b,_0xf46a83._0x105468,_0xf46a83._0x563523,_0xf46a83._0x4551c4)]&&(_0x32a34c=await _0x9d00db['registry']['runTransformers'](_0x437799(_0xf46a83._0x394c7b,_0xf46a83._0x4f7610,_0xf46a83._0x19157d,0x398),cloneToolResultForPublication(_0x778b76,_0x1326d5[_0x17bdcb(0x443,_0xf46a83._0x1a4a9e,_0xf46a83._0x2b3e4a,0x4b0)],_0x1326d5['requestedName']),_0x2640c1),!_0x208178[_0x17bdcb(_0xf46a83._0x1c61d0,0x438,_0xf46a83._0x105468,0x2fb)]&&await _0x9d00db['registry'][_0x17bdcb(0x44d,_0xf46a83._0x5843e5,_0xf46a83._0x2e4d09,_0xf46a83._0x338a20)](_0x17bdcb(0x459,0x4ba,0x43f,_0xf46a83._0x332de8),_0x32a34c,_0x2640c1));const _0xc2cf34=_0x208178[_0x17bdcb(0x43d,0x423,0x37f,0x307)]?createAbortedToolResult(_0x1326d5[_0x437799(0x419,_0xf46a83._0xcfa776,_0xf46a83._0x2b3e4a,0x4bb)],_0x1326d5[_0x17bdcb(_0xf46a83._0x3fcd24,_0xf46a83._0x158353,_0xf46a83._0x5cba3d,0x4c1)],selectActualCancellationReason(void 0x0,_0x208178[_0x437799(0x34e,0x361,_0xf46a83._0x3819b1,_0xf46a83._0x1c1678)],_0x778b76),_0x778b76[_0x437799(0x444,_0xf46a83._0x3e9f13,0x493,0x4e6)]):_0x32a34c;_0x84a918=cloneToolResultForPublication(_0xc2cf34,_0x1326d5[_0x17bdcb(0x3f6,_0xf46a83._0x21a927,_0xf46a83._0x22efa9,_0xf46a83._0x87bc18)],_0x1326d5[_0x437799(0x468,_0xf46a83._0x1126a5,_0xf46a83._0x360b90,0x521)]),_0x1326d5[_0x17bdcb(_0xf46a83._0x58ced5,_0xf46a83._0x13dbd1,_0xf46a83._0x5c43d8,0x358)]&&await _0x1326d5[_0x437799(0x350,_0xf46a83._0x3cb698,_0xf46a83._0x71f11d,0x2d1)][_0x17bdcb(_0xf46a83._0x22b608,_0xf46a83._0x2596fe,_0xf46a83._0x5e8b6c,_0xf46a83._0x4cc58e)](_0x1326d5[_0x17bdcb(_0xf46a83._0x5e1d9c,_0xf46a83._0x3613c5,0x42e,0x3aa)],cloneToolResultForPublication(_0x84a918,_0x1326d5[_0x437799(0x419,0x398,_0xf46a83._0x251e8d,_0xf46a83._0x2a6d14)],_0x1326d5[_0x437799(_0xf46a83._0x137c42,_0xf46a83._0x20e72c,0x3c1,0x4b1)])),await emitEvent(_0x51f78d,{'type':'tool_result','result':_0x84a918},_0x3022eb);}catch(_0x531d3e){if(_0x208178[_0x17bdcb(0x2c4,0x3e4,0x37f,_0xf46a83._0x231d12)])throw new Error(_0x17bdcb(_0xf46a83._0x59b31d,0x52a,0x49b,0x4e0),{'cause':_0x531d3e});throw _0x531d3e;}return throwIfAborted(_0x208178),_0x84a918;}throwIfAborted(_0x208178);const _0x3e7daf=await transformNestedToolResult(_0x9d00db[_0x437799(0x35b,0x35d,0x2de,0x360)],_0xe7be2a,_0x2640c1,_0x208178),_0x35922f=cloneToolResultForPublication(_0x3e7daf,_0x1326d5[_0x17bdcb(0x3bb,_0xf46a83._0x5d8ac4,0x415,0x3c7)],_0x1326d5['requestedName']);throwIfAborted(_0x208178);if(_0x1326d5[_0x437799(_0xf46a83._0x2929f3,0x304,0x38c,_0xf46a83._0x580895)]){const _0x3d5267=_0x1326d5['trace'];await awaitRequiredPersistence(()=>_0x3d5267['recordToolResult'](_0x1326d5[_0x437799(0x432,0x4b8,0x4ba,0x455)],cloneToolResultForPublication(_0x35922f,_0x1326d5[_0x17bdcb(0x380,0x40c,0x415,0x35a)],_0x1326d5[_0x17bdcb(0x3c7,0x4fb,0x464,0x4e1)])),_0x208178,_0x5e1abd);}return await _0x4ea4f8({'type':'tool_result','result':cloneToolResultForPublication(_0x35922f,_0x1326d5[_0x437799(0x419,_0xf46a83._0x3579a5,0x3eb,_0xf46a83._0x3339df)],_0x1326d5[_0x437799(0x468,0x498,0x436,0x425)])},_0x3022eb),throwIfAborted(_0x208178),_0x35922f;}function createBoundToolExecutionControl(_0x390135,_0x489968,_0xeb2baa,_0x378613){const _0x565c0c={_0x2de8a3:0x2ae,_0x290f37:0x342,_0x50ec41:0x2fe,_0x1b5130:0x2d2,_0xf89684:0x213,_0x36e283:0x346,_0x185ea9:0x28a,_0x414b37:0x215,_0x27c7a4:0x195,_0x216936:0x22d,_0x56e4ad:0x197,_0x2cf35f:0x239,_0x380f6c:0x23b,_0xc6b678:0x1d6,_0x2e4978:0x199},_0x5e6329={_0x41fd2a:0x9e,_0xbebc58:0x1ad},_0x1aec4b={_0x3bf575:0x5bf,_0x4d9a75:0x9b},_0x5ba35e={_0x59fd49:0xd8,_0xc198ab:0x152,_0x732eef:0x1a7,_0x3729ee:0x2de,_0x5129b4:0x250,_0x361ade:0x297,_0xbaa493:0xac,_0x150fe3:0x244,_0x2e4e0c:0x248,_0x56c513:0x273,_0x4424b0:0x218,_0x3706ed:0x60,_0x24e5fd:0x8a,_0x3aca83:0x1b1,_0x19b3fa:0x25a,_0x55051d:0x100,_0x2ae2cc:0xc9,_0x267f0f:0x140,_0x21cbd1:0x2bb},_0x3960d6={_0x43eaab:0x80},_0x4b5223={_0x52f23f:0x37},_0x16638e={_0x4f4f92:0x28b,_0x459a9f:0x1d9},_0x45c396={_0x3cc3e8:0x111,_0x35919c:0xf8},_0xbcdf17={_0x1f16e8:0xc4,_0x4a1480:0x37},_0x42141d={_0x1aef98:0x383,_0x5afcf5:0xdc},_0x59a4e9={_0xbe0e7a:0x1b},_0x479ae6={_0x16ae0c:0xcf,_0x290af0:0x2d,_0x4d7b4c:0xd9,_0xb1b2b3:0xd8,_0x38be9a:0x268,_0x24a711:0x1e4},_0x188905={_0x196997:0x114,_0x52fe9d:0x14,_0x4f9178:0x2f},_0x2dd1e3={_0x39addd:0x3c,_0x29af69:0x15e},_0x4b9ff8={_0x4d03c7:0x1e8,_0x1337df:0xe0},_0x33a1f9=createImmutableExecutionScope(_0x489968[_0xee20c5(-0x2cc,-_0x565c0c._0x2de8a3,-_0x565c0c._0x290f37,-_0x565c0c._0x50ec41)][_0xee20c5(-_0x565c0c._0x1b5130,-_0x565c0c._0xf89684,-_0x565c0c._0x36e283,-_0x565c0c._0x185ea9)],_0x489968['executionScope'][_0xee20c5(-_0x565c0c._0x414b37,-_0x565c0c._0x27c7a4,-0x23b,-0x19a)]),_0x1e0932=new Set(),_0x5c986c=new Set(),_0x39a048=new AbortController(),_0x300ea2=createNestedCallAdmissionGate();let _0xaab332=![];function _0x5f1e3f(_0x2cf977,_0x226a22,_0x5e6616,_0x2ee732){return _0x2f39af(_0x2ee732,_0x5e6616- -_0x4b9ff8._0x4d03c7,_0x5e6616-0x4,_0x2ee732-_0x4b9ff8._0x1337df);}let _0x59e314=![],_0x56b29d,_0x3ff115=![],_0x273bff=()=>{};const _0x2476a1=_0x3d9707=>{function _0x3a38f7(_0x240435,_0x3955cb,_0x3dc750,_0x2a2d6f){return _0xee20c5(_0x2a2d6f-0x4b3,_0x3955cb-_0x2dd1e3._0x39addd,_0x3dc750,_0x2a2d6f-_0x2dd1e3._0x29af69);}function _0x4039d3(_0x18f899,_0x276302,_0xa56d68,_0x372a4c){return _0x5f1e3f(_0x18f899-_0x188905._0x196997,_0x276302-_0x188905._0x52fe9d,_0xa56d68- -_0x188905._0x4f9178,_0x18f899);}if(_0xaab332)return;_0xaab332=!![];const _0x13112e=toAbortError(_0x3d9707??PARENT_TOOL_SETTLED_MESSAGE);_0x300ea2['fail'](_0x13112e),_0x39a048[_0x4039d3(_0x479ae6._0x16ae0c,_0x479ae6._0x290af0,_0x479ae6._0x4d7b4c,_0x479ae6._0xb1b2b3)](_0x13112e);for(const _0x52f450 of _0x1e0932){_0x52f450[_0x3a38f7(0x169,_0x479ae6._0x38be9a,0x1a7,_0x479ae6._0x24a711)](_0x13112e);}_0x273bff();};_0x273bff=addAbortListener(_0x489968['signal'],()=>{function _0x3698a8(_0x404fb5,_0x81b2e6,_0x591133,_0x349951){return _0xee20c5(_0x591133-_0x59a4e9._0xbe0e7a,_0x81b2e6-0x148,_0x404fb5,_0x349951-0x11d);}function _0x28ed3a(_0x25f498,_0x4872dd,_0x1c53e8,_0x4e0eeb){return _0xee20c5(_0x25f498-_0x42141d._0x1aef98,_0x4872dd-0xb2,_0x4e0eeb,_0x4e0eeb-_0x42141d._0x5afcf5);}_0x2476a1(_0x489968[_0x28ed3a(_0xbcdf17._0x1f16e8,_0xbcdf17._0x4a1480,0x102,0x140)][_0x3698a8(-0x226,-0x31e,-0x2df,-0x259)]);});const _0x23c6c6=_0x489a37=>{const _0x325635={_0x2b1853:0xb0,_0xb80656:0xa};_0x5c986c['add'](_0x489a37);const _0x4c2dff=()=>{function _0xb69aed(_0x5c9ec2,_0x283023,_0xd285d5,_0x11ca97){return _0xd98e(_0xd285d5- -0xe8,_0x11ca97);}_0x5c986c[_0xb69aed(-_0x325635._0x2b1853,0xb3,0x4,_0x325635._0xb80656)](_0x489a37);};function _0x27d921(_0x3b7020,_0x452dbb,_0x1edd45,_0xb81f4d){return _0x5f1e3f(_0x3b7020-_0x45c396._0x3cc3e8,_0x452dbb-_0x45c396._0x35919c,_0x3b7020-0xd8,_0x1edd45);}const _0x4821f5=_0x161425=>{!_0x59e314&&(_0x59e314=!![],_0x56b29d=_0x161425),_0x4c2dff();};void _0x489a37[_0x27d921(_0x16638e._0x4f4f92,0x2f0,0x2c7,_0x16638e._0x459a9f)](_0x4c2dff,_0x4821f5);},_0x34d3f4=async()=>{const _0x152af8={_0xc70935:0x135,_0x5b073c:0xe8,_0x52065c:0x11};function _0x30428d(_0x311a26,_0x17b141,_0x376891,_0x30b88c){return _0xee20c5(_0x376891-_0x152af8._0xc70935,_0x17b141-_0x152af8._0x5b073c,_0x30b88c,_0x30b88c-_0x152af8._0x52065c);}while(_0x5c986c[_0x30428d(-0x2,-0x90,-0x87,-_0x4b5223._0x52f23f)]>0x0){await Promise['allSettled']([..._0x5c986c]);}if(_0x59e314)throw _0x56b29d;},_0x3fa743=async _0x1bec9e=>{const _0x5770e8={_0x1fcdf8:0x30,_0x55a443:0x14c,_0x2a16ed:0xd2},_0x447f66={_0x142e96:0x3a,_0x1d6348:0x25};if(_0xaab332)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);let _0x278ff4;try{_0x278ff4=snapshotNestedToolRequest(_0x1bec9e);}catch(_0x585ad1){_0x300ea2['fail'](_0x585ad1);throw _0x585ad1;}const _0x1ea92c=_0x300ea2[_0x284cb3(0x168,_0x5ba35e._0x59fd49,_0x5ba35e._0xc198ab,_0x5ba35e._0x732eef)](_0x278ff4[_0xf453bc(_0x5ba35e._0x3729ee,0x1c7,_0x5ba35e._0x5129b4,_0x5ba35e._0x361ade)]),_0x588822=createImmutableExecutionScope(_0x33a1f9[_0x284cb3(0x9b,0x5e,0x5d,_0x5ba35e._0xbaa493)],[..._0x33a1f9[_0xf453bc(_0x5ba35e._0x150fe3,_0x5ba35e._0x2e4e0c,0x251,0x2d4)],_0x390135]);function _0x284cb3(_0x412620,_0x129a58,_0x13209e,_0x28517b){return _0xee20c5(_0x13209e-0x32f,_0x129a58-_0x447f66._0x142e96,_0x129a58,_0x28517b-_0x447f66._0x1d6348);}const _0x1409b6=new AbortController();_0x1e0932[_0xf453bc(0x16c,_0x5ba35e._0x56c513,_0x5ba35e._0x4424b0,0x2a3)](_0x1409b6);function _0xf453bc(_0xae03ed,_0x3cd227,_0x282fc6,_0x11f68c){return _0x5f1e3f(_0xae03ed-_0x3960d6._0x43eaab,_0x3cd227-0x71,_0x282fc6-0x8f,_0x11f68c);}_0xaab332&&_0x1409b6[_0x284cb3(-0x4f,0x0,_0x5ba35e._0x3706ed,_0x5ba35e._0x24e5fd)](toAbortError(PARENT_TOOL_SETTLED_MESSAGE));const _0x18d0a9=executeNestedToolRequest(_0x278ff4,_0x489968,_0x588822,_0x1409b6[_0xf453bc(0x14b,_0x5ba35e._0x3aca83,_0x5ba35e._0x732eef,_0x5ba35e._0x19b3fa)],_0x1ea92c,_0xeb2baa,_0x378613,_0x23c6c6);_0x278ff4[_0x284cb3(_0x5ba35e._0x55051d,0xa0,0x14f,_0x5ba35e._0x2ae2cc)]===_0x284cb3(_0x5ba35e._0x267f0f,0x158,0x174,0x165)&&_0x23c6c6(_0x18d0a9['then'](()=>{},_0x21454e=>{const _0x4c46aa={_0xa9ee45:0x281};function _0x1bd7a2(_0x378f47,_0x3f7b9a,_0x7861d,_0x2fc623){return _0xf453bc(_0x378f47-0x1b4,_0x3f7b9a-0x1b6,_0x7861d-_0x4c46aa._0xa9ee45,_0x378f47);}if(!_0x1409b6[_0x1bd7a2(0x489,0x392,0x428,0x4bd)]['aborted']||!isAbortError(_0x21454e))throw _0x21454e;}));const _0x53f139=()=>{function _0x43fd50(_0x35b6a6,_0x23423f,_0x34562f,_0x38a195){return _0xf453bc(_0x35b6a6-0x191,_0x23423f-0x1f2,_0x38a195- -0xb0,_0x23423f);}_0x1e0932[_0x43fd50(0x84,_0x5770e8._0x1fcdf8,_0x5770e8._0x55a443,_0x5770e8._0x2a16ed)](_0x1409b6);};return void _0x18d0a9[_0xf453bc(_0x5ba35e._0x21cbd1,0x1ec,0x242,0x23e)](_0x53f139,_0x53f139),await awaitWithAbort(()=>_0x18d0a9,_0x39a048['signal']);};function _0xee20c5(_0x2fd2e2,_0x294028,_0x59ba10,_0x557cbc){return _0x2f39af(_0x59ba10,_0x2fd2e2- -_0x1aec4b._0x3bf575,_0x59ba10-0x8a,_0x557cbc-_0x1aec4b._0x4d9a75);}const _0xedd45e={'executeNestedTool':_0x3fa743},_0x26817d=_0xeb2baa['beginProgramTrace'];_0x26817d&&(_0xedd45e[_0x5f1e3f(0x114,_0x565c0c._0x216936,_0x565c0c._0x56e4ad,_0x565c0c._0x2cf35f)]=async()=>{const _0x1f4b65={_0x445255:0xdd,_0x533a4f:0x36f};function _0x333b4a(_0x49ebc3,_0x355b82,_0x2cd361,_0x5b2cdc){return _0x5f1e3f(_0x49ebc3-_0x1f4b65._0x445255,_0x355b82-0x9f,_0x355b82- -_0x1f4b65._0x533a4f,_0x49ebc3);}if(_0xaab332)throw toAbortError(PARENT_TOOL_SETTLED_MESSAGE);function _0x4cc14f(_0x420487,_0x2cf33b,_0x34f4c0,_0x196cba){return _0xee20c5(_0x34f4c0-0x109,_0x2cf33b-_0x5e6329._0x41fd2a,_0x2cf33b,_0x196cba-_0x5e6329._0xbebc58);}return await awaitUncancellableAfterAdmission(()=>_0x26817d({'executionScope':createImmutableExecutionScope(_0x33a1f9[_0x333b4a(-0x254,-0x26a,-0x1f5,-0x2c2)],_0x33a1f9[_0x4cc14f(-0xff,-0xe5,-0x10c,-0x82)]),'programToolCallId':_0x390135}),_0x39a048[_0x333b4a(-0x1f8,-0x257,-0x1d8,-0x252)]);});const _0x183011=()=>{_0x3ff115=!![],_0x2476a1();},_0x4dea5a=()=>_0x3ff115,_0xe3dd0a={'capabilities':_0xedd45e,'close':_0x2476a1,'commitTerminalState':_0x183011,'drainPersistence':_0x34d3f4,'isTerminalStateCommitted':_0x4dea5a};return boundNestedExecutionControls[_0xee20c5(-_0x565c0c._0x380f6c,-_0x565c0c._0xc6b678,-_0x565c0c._0x2e4978,-0x1a7)](_0x3fa743,_0xe3dd0a),_0xe3dd0a;}async function executeCapturedToolCall(_0x4886fb,_0x4e8f9a,_0x1c9ce7,_0x3d000c,_0x4fe7a8,_0x408df2,_0x475b3f=_0x408df2[_0x3e74bf(0x2a,-0x5c,-0xe5,-0x5)]){const _0x4b756b={_0x25fb88:0x191,_0x31ddac:0x1c2,_0xa530aa:0xc3,_0x25e649:0xc1,_0x4bb2f9:0x139,_0x40bbc9:0x150,_0x373c3e:0xf7,_0xec9019:0x1b2,_0x315576:0x117,_0x15c4b3:0x162,_0x2e28f0:0x204,_0x443cef:0x287,_0x572d56:0x1e2,_0x4d488c:0x168,_0x5b2119:0x104,_0xa90604:0x1b1,_0x2a370d:0x154},_0x15bf10={_0x49ebda:0x1d6},_0x5dd008={_0x4aafb1:0x5c},_0x20f1ef={..._0x4fe7a8,'toolCallId':_0x1c9ce7,'permissionClass':resolveToolPermissionClass(_0x4886fb),'executionAuthorization':void 0x0};function _0x420d66(_0xa2c58c,_0xe79678,_0x41a3d0,_0x5a23b0){return _0x3e74bf(_0xa2c58c-_0x5dd008._0x4aafb1,_0x41a3d0-0x1d4,_0xa2c58c,_0x5a23b0-0x123);}if(_0x20f1ef[_0x420d66(0x1e3,_0x4b756b._0x25fb88,0x150,0x165)][_0x5ea35b(_0x4b756b._0x31ddac,0x14c,_0x4b756b._0xa530aa,_0x4b756b._0x25e649)]){const _0x2c1945=createAbortedToolResult(_0x1c9ce7,_0x3d000c,_0x20f1ef[_0x420d66(0xdc,_0x4b756b._0x4bb2f9,_0x4b756b._0x40bbc9,_0x4b756b._0x373c3e)][_0x5ea35b(_0x4b756b._0xec9019,_0x4b756b._0x315576,0x19a,0x120)]);return await emitToolCompletedEventWithTerminalPrecedence(_0x475b3f,_0x4e8f9a,_0x1c9ce7,_0x3d000c,_0x2c1945,_0x20f1ef),_0x2c1945;}function _0x5ea35b(_0x1c9bcd,_0x47c33b,_0x5f589a,_0x115906){return _0x3e74bf(_0x1c9bcd-0x69,_0x47c33b-_0x15bf10._0x49ebda,_0x1c9bcd,_0x115906-0x178);}let _0x3d2eb2;try{_0x3d2eb2=_0x4886fb?.[_0x5ea35b(_0x4b756b._0x15c4b3,_0x4b756b._0x2e28f0,_0x4b756b._0x443cef,_0x4b756b._0x572d56)]?.[_0x5ea35b(0x1ed,_0x4b756b._0x4d488c,0x1b1,_0x4b756b._0x5b2119)]();}catch(_0xfa8a98){const _0x1f8ec0=isAbortError(_0xfa8a98);let _0x7fae07;if(_0x1f8ec0)_0x7fae07=createAbortedToolResult(_0x1c9ce7,_0x3d000c,_0xfa8a98);else{const {errorMessage:_0x207db0,structured:_0x1de459}=normalizeExecutionError(_0xfa8a98);_0x7fae07=createErrorToolResult(_0x1c9ce7,_0x3d000c,_0x207db0,_0x1de459);}return _0x1f8ec0?await emitToolCompletedEventWithTerminalPrecedence(_0x475b3f,_0x4e8f9a,_0x1c9ce7,_0x3d000c,_0x7fae07,_0x20f1ef):await emitEvent(_0x475b3f,{'type':_0x5ea35b(_0x4b756b._0xa90604,0x1c0,_0x4b756b._0x2a370d,0x143),'toolCall':cloneToolCallForPublication(_0x4e8f9a,_0x1c9ce7,_0x3d000c),'result':_0x7fae07},_0x20f1ef),_0x7fae07;}try{return await executeAcquiredToolCall(_0x4886fb,_0x4e8f9a,_0x1c9ce7,_0x3d000c,_0x4fe7a8,_0x408df2,_0x475b3f);}finally{_0x3d2eb2?.();}}async function executeAcquiredToolCall(_0x20826e,_0x103bac,_0x672a87,_0x40d9e8,_0x344ae8,_0x18e922,_0x4c4da3){const _0x50371f={_0xbe706a:0x38,_0x29b2f7:0xb3,_0x38fdc4:0xa,_0x557a23:0x108,_0x5a6e0b:0x1,_0x3169d7:0x16,_0x444732:0x5b,_0x1fc97b:0x1d8,_0x2f8db9:0x123,_0x156858:0x117,_0x7c9503:0x105,_0x566231:0xc6,_0xdee1ec:0x138,_0xcdf63:0x1e6,_0x10a0a2:0x229,_0x52b890:0x0,_0x4234a7:0x60,_0x533f23:0x55,_0x43b7ef:0x1a5,_0x2191cf:0x1d0,_0x4a1955:0x1bb,_0x2b3d9c:0x13d,_0x2d624d:0x24b,_0x5571d2:0x17a,_0x150e1b:0x1a8,_0x442334:0x1ff,_0x526550:0x2a8,_0x54fd04:0x280,_0x3958a2:0x109,_0x458063:0x16d,_0x4a4912:0xd6,_0xe61d1:0x10c,_0x5478b3:0xce,_0x21f196:0x225,_0x2ecb6c:0x2ef,_0x336809:0x245,_0x8c264c:0xad,_0x4177f8:0x196,_0x414e72:0x17c,_0x4a08f2:0xc2,_0x23e75c:0xb5,_0x31be74:0xb6,_0x1b0726:0x3e,_0x371ed9:0x8f,_0x2f9fdd:0x206,_0x47d570:0x298,_0x439248:0x249,_0x132d5f:0x2ea,_0x4dc8e7:0x221,_0x1ee764:0x1b9,_0x248f0f:0x141,_0x1c37d2:0x61,_0x125437:0x100,_0x339ab3:0xe9,_0x1fba98:0x21e,_0x4c3383:0x1fe,_0x3dcd13:0x266,_0x2f70ed:0x1f,_0x108748:0xc0,_0x360d20:0x61,_0x25b3c6:0x79,_0x382859:0x10c,_0x305f44:0x191,_0x4a2d87:0x142,_0x204352:0x1aa,_0x1f7cd7:0x87,_0x588103:0xdb,_0x4d3557:0x202,_0x3aa151:0x13d,_0x98f5b:0x1a5,_0x2a51f9:0x131,_0x2c118f:0x1f5,_0x27c1a9:0x1a8,_0x503ccf:0x14a,_0x16cb22:0xe7,_0x51d250:0x6c,_0x3d52ce:0xfa,_0x592966:0xdc,_0x45771f:0xbf,_0x2bf67a:0x30,_0x5b9e8c:0x65,_0x12c2e7:0x74,_0x12ac11:0x5d,_0x2c98be:0x275,_0x80486:0x26b,_0x3607e4:0x1df,_0x3e78ab:0x36,_0x499277:0x61,_0x5b42af:0x1da,_0x6f8eda:0x1c6,_0x203f57:0x2b1,_0x101d3f:0x2da,_0x4b4bf0:0x15d,_0x39e489:0x17e,_0xa605ea:0x16d,_0x2eb06d:0x1ac,_0x51f67b:0x15f,_0xaf59bc:0x143,_0x2c0144:0xbb,_0x2fbc56:0xa6,_0x15004f:0x313,_0x30dc9f:0x24c,_0x4621a5:0x142,_0x317db8:0x44,_0x349593:0x7c},_0x35eb78={_0x590657:0x16c,_0x5ff8eb:0x105,_0x29f96d:0x108},_0x29f5fa={_0x5bd34f:0x1c9},_0x46da98={..._0x344ae8,'toolCallId':_0x672a87,'permissionClass':resolveToolPermissionClass(_0x20826e),'executionAuthorization':void 0x0};function _0x152fc8(_0x13073f,_0x2155fd,_0x44f79a,_0x153e4b){return _0x3e74bf(_0x13073f-0x1ee,_0x153e4b-0x7a,_0x44f79a,_0x153e4b-0x2c);}throwIfAborted(_0x46da98['signal']);let _0x256214;try{_0x256214=await resolveDispatchDecision(_0x18e922['onToolCall'],_0x103bac,_0x46da98);}catch(_0xb70985){if(isAbortError(_0xb70985)){const _0xf5a9f=createAbortedToolResult(_0x672a87,_0x40d9e8,_0xb70985);return await emitToolCompletedEventWithTerminalPrecedence(_0x4c4da3,_0x103bac,_0x672a87,_0x40d9e8,_0xf5a9f,_0x46da98),_0xf5a9f;}const {errorMessage:_0x5c28f5,structured:_0x133387}=normalizeExecutionError(_0xb70985),_0x475226=createErrorToolResult(_0x672a87,_0x40d9e8,_0x5c28f5,_0x133387);return await emitEvent(_0x4c4da3,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8),'result':_0x475226},_0x46da98),_0x475226;}throwIfAborted(_0x46da98[_0x152fc8(-_0x50371f._0xbe706a,_0x50371f._0x29b2f7,-0x56,-_0x50371f._0x38fdc4)]);if(_0x256214[_0x152fc8(0x1af,0x19a,0x78,_0x50371f._0x557a23)]===_0x152fc8(-_0x50371f._0x5a6e0b,-_0x50371f._0x3169d7,-0x1d,_0x50371f._0x444732)){const _0x31366b=createRejectedToolResult(_0x672a87,_0x40d9e8,_0x256214[_0x152fc8(0x39,-0x9e,-0x8d,-0x45)]);return await emitEvent(_0x4c4da3,{'type':_0x501988(-0x67,-_0x50371f._0x1fc97b,-_0x50371f._0x2f8db9,-_0x50371f._0x156858),'toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8),'result':_0x31366b},_0x46da98),_0x31366b;}if(!_0x20826e){const _0xb9ab6e=createUnknownToolResult(_0x672a87,_0x40d9e8);return await emitEvent(_0x4c4da3,{'type':'tool_completed','toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8),'result':_0xb9ab6e},_0x46da98),_0xb9ab6e;}const _0x54dfda=createBoundToolExecutionControl(_0x672a87,_0x46da98,_0x18e922,_0x4c4da3),_0x3f4f4c={..._0x46da98,'executionAuthorization':_0x256214[_0x501988(-_0x50371f._0x7c9503,-_0x50371f._0x566231,-_0x50371f._0xdee1ec,-_0x50371f._0xcdf63)],..._0x54dfda[_0x501988(-_0x50371f._0x10a0a2,-0x347,-0x289,-0x313)]};throwIfAborted(_0x3f4f4c[_0x152fc8(_0x50371f._0x52b890,_0x50371f._0x4234a7,-_0x50371f._0x533f23,-0xa)]);try{await emitEvent(_0x4c4da3,{'type':_0x501988(-_0x50371f._0x43b7ef,-_0x50371f._0x2191cf,-_0x50371f._0x4a1955,-_0x50371f._0x2b3d9c),'toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8)},_0x3f4f4c);}catch(_0x596bf7){const _0x108cad=_0x54dfda[_0x501988(-_0x50371f._0x2d624d,-_0x50371f._0x5571d2,-_0x50371f._0x150e1b,-_0x50371f._0x442334)]();if(actualCancellationHasPrecedence(_0x3f4f4c,_0x108cad)){const _0x31647b=selectActualCancellationReason(_0x596bf7,_0x3f4f4c['signal'][_0x501988(-_0x50371f._0x526550,-0x2c3,-_0x50371f._0x54fd04,-0x223)]),_0x95c91f=createAbortedToolResult(_0x672a87,_0x40d9e8,_0x31647b);return _0x54dfda[_0x501988(-_0x50371f._0x3958a2,-0xe3,-_0x50371f._0x458063,-0x1f6)](_0x31647b),await emitToolCompletedEventWithTerminalPrecedence(_0x4c4da3,_0x103bac,_0x672a87,_0x40d9e8,_0x95c91f,_0x3f4f4c,_0x108cad),_0x95c91f;}_0x54dfda[_0x152fc8(_0x50371f._0x4a4912,0x26,_0x50371f._0xe61d1,_0x50371f._0x5478b3)](_0x596bf7);throw _0x596bf7;}function _0x501988(_0x50e4d8,_0x5ed10e,_0x5eb630,_0x4fb926){return _0x3e74bf(_0x50e4d8-_0x29f5fa._0x5bd34f,_0x5eb630- -0x1c1,_0x50e4d8,_0x4fb926-0x174);}let _0x24539c;try{throwIfAborted(_0x3f4f4c[_0x501988(-_0x50371f._0x21f196,-_0x50371f._0x2ecb6c,-_0x50371f._0x336809,-0x255)]);const _0x55eba4=validateToolInput(_0x103bac[_0x152fc8(-_0x50371f._0x8c264c,-0xe,0x2d,-_0x50371f._0x3169d7)],_0x20826e[_0x501988(-_0x50371f._0x4177f8,-_0x50371f._0x414e72,-0x20f,-0x240)]),_0x298c49=await _0x20826e[_0x152fc8(_0x50371f._0x4a08f2,0x81,_0x50371f._0x23e75c,_0x50371f._0x31be74)](_0x55eba4,_0x3f4f4c),_0x6765a7=[],_0x3bce60=addAbortListener(_0x3f4f4c[_0x152fc8(_0x50371f._0x1b0726,-0x2,_0x50371f._0x371ed9,-0xa)],()=>{const _0x412a67={_0x1da9af:0x720,_0x94ec2d:0x9},_0x2ff422={_0x1228dc:0x2ad,_0x4145c0:0x14a};function _0x425b0d(_0x5c383d,_0x287de0,_0xa8303e,_0x3da7ba){return _0x501988(_0xa8303e,_0x287de0-0x28,_0x287de0-_0x2ff422._0x1228dc,_0x3da7ba-_0x2ff422._0x4145c0);}function _0x28579c(_0x1b9e75,_0xa7eaa8,_0x5592ed,_0x133260){return _0x501988(_0x5592ed,_0xa7eaa8-0xde,_0x133260-_0x412a67._0x1da9af,_0x133260-_0x412a67._0x94ec2d);}_0x40d9e8!==_0x425b0d(0x222,_0x35eb78._0x590657,0x209,0x117)&&!_0x54dfda[_0x425b0d(0x19a,_0x35eb78._0x5ff8eb,_0x35eb78._0x29f96d,0xef)]()&&void _0x298c49['return'](void 0x0)['catch'](()=>{});});try{throwIfAborted(_0x3f4f4c[_0x501988(-0x1ea,-0x2ee,-0x245,-0x237)]);let _0x2e85fc=await _0x298c49[_0x501988(-0x1f7,-0x2fb,-0x26b,-0x276)]();while(!_0x2e85fc[_0x501988(-_0x50371f._0x2f9fdd,-0x2f4,-_0x50371f._0x47d570,-0x2ff)]){throwIfAborted(_0x3f4f4c[_0x501988(-0x189,-_0x50371f._0x439248,-0x245,-_0x50371f._0x132d5f)]);const _0x9f726=normalizeToolOutputValue(_0x2e85fc['value']);_0x6765a7[_0x152fc8(-0x4a,-0x90,-0x7f,-0x5)](_0x9f726),await emitEvent(_0x4c4da3,{'type':'tool_output_chunk','toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8),'chunk':_0x9f726},_0x3f4f4c),throwIfAborted(_0x3f4f4c[_0x501988(-0x187,-0x1f3,-0x245,-0x1de)]),_0x2e85fc=await _0x298c49[_0x501988(-0x2dd,-_0x50371f._0x4dc8e7,-0x26b,-0x211)]();}_0x40d9e8===_0x501988(-0x1d5,-_0x50371f._0x1ee764,-_0x50371f._0x248f0f,-0x1fa)&&(_0x24539c=_0x2e85fc[_0x152fc8(0xa,-0x51,0x102,_0x50371f._0x1c37d2)]===void 0x0?deriveFinalToolOutput(_0x6765a7):normalizeToolOutputValue(_0x2e85fc[_0x152fc8(_0x50371f._0x125437,_0x50371f._0x339ab3,-0x3c,0x61)]));!_0x54dfda[_0x501988(-_0x50371f._0x1fba98,-_0x50371f._0x4c3383,-0x1a8,-_0x50371f._0x3dcd13)]()&&throwIfAborted(_0x3f4f4c[_0x152fc8(0x30,0x31,0x4a,-0xa)]);const _0x2228fd=_0x24539c??(_0x2e85fc[_0x152fc8(_0x50371f._0x125437,-_0x50371f._0x2f70ed,_0x50371f._0x108748,_0x50371f._0x360d20)]===void 0x0?deriveFinalToolOutput(_0x6765a7):normalizeToolOutputValue(_0x2e85fc['value'])),_0x497ae5=createSuccessToolResult(_0x672a87,_0x40d9e8,_0x2228fd,_0x6765a7);return _0x54dfda[_0x152fc8(_0x50371f._0x25b3c6,0x44,_0x50371f._0x382859,0xce)](),await emitEvent(_0x4c4da3,{'type':_0x501988(-_0x50371f._0x305f44,-_0x50371f._0x4a2d87,-0x1d7,-0x286),'toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8),'result':_0x497ae5},_0x3f4f4c),_0x497ae5;}catch(_0xc0d18c){_0x40d9e8===_0x152fc8(0x4f,_0x50371f._0x204352,0x42,0xfa)&&_0xc0d18c instanceof ToolExecutionError&&(_0x24539c={'output':_0xc0d18c[_0x152fc8(0xf1,0x17b,_0x50371f._0x1f7cd7,_0x50371f._0x588103)],'structured':_0xc0d18c[_0x501988(-_0x50371f._0x4d3557,-_0x50371f._0x3aa151,-_0x50371f._0x98f5b,-0x12b)]});const _0x3840db=_0x54dfda[_0x501988(-_0x50371f._0x2a51f9,-_0x50371f._0x2c118f,-_0x50371f._0x27c1a9,-_0x50371f._0x503ccf)](),_0x1e4b61=actualCancellationHasPrecedence(_0x3f4f4c,_0x3840db);if(_0x1e4b61||isAbortError(_0xc0d18c)){let _0x5eeef6=_0xc0d18c;if(_0x40d9e8===_0x152fc8(0x1a6,_0x50371f._0x16cb22,_0x50371f._0x51d250,_0x50371f._0x3d52ce)&&_0x1e4b61&&_0x24539c===void 0x0)try{let _0x2eb351=await _0x298c49[_0x152fc8(-_0x50371f._0x592966,0x29,-_0x50371f._0x45771f,-_0x50371f._0x2bf67a)]();while(!_0x2eb351[_0x152fc8(-0x33,-_0x50371f._0x5b9e8c,-_0x50371f._0x12c2e7,-_0x50371f._0x12ac11)])_0x2eb351=await _0x298c49[_0x501988(-_0x50371f._0x2c98be,-0x29d,-_0x50371f._0x80486,-_0x50371f._0x3607e4)]();_0x24539c=_0x2eb351[_0x152fc8(0xc7,0x4c,-_0x50371f._0x3e78ab,_0x50371f._0x499277)]===void 0x0?deriveFinalToolOutput(_0x6765a7):normalizeToolOutputValue(_0x2eb351[_0x501988(-0x1f4,-0x285,-_0x50371f._0x5b42af,-_0x50371f._0x6f8eda)]);}catch(_0x5f10fe){_0x5f10fe instanceof ToolExecutionError&&(_0x24539c={'output':_0x5f10fe['message'],'structured':_0x5f10fe['structured']},_0x5eeef6=_0x5f10fe);}const _0x3207f1=_0x1e4b61?selectActualCancellationReason(_0x5eeef6,_0x3f4f4c[_0x501988(-0x19f,-_0x50371f._0x203f57,-_0x50371f._0x336809,-_0x50371f._0x101d3f)]['reason'],_0x24539c):_0x5eeef6,_0xcbd816=createAbortedToolResult(_0x672a87,_0x40d9e8,_0x3207f1,_0x6765a7);return _0x54dfda[_0x501988(-0x131,-_0x50371f._0x4b4bf0,-_0x50371f._0x458063,-_0x50371f._0x39e489)](_0x3207f1),await emitToolCompletedEventWithTerminalPrecedence(_0x4c4da3,_0x103bac,_0x672a87,_0x40d9e8,_0xcbd816,_0x3f4f4c,_0x3840db),_0xcbd816;}if(_0xc0d18c instanceof ToolRuntimeInfrastructureError)throw _0xc0d18c;const {errorMessage:_0x4b7173,structured:_0x1b27b3}=normalizeExecutionError(_0xc0d18c),_0xf81199=createErrorToolResult(_0x672a87,_0x40d9e8,_0x4b7173,_0x1b27b3,_0x6765a7);return _0x54dfda[_0x501988(-0xfc,-0x1cd,-_0x50371f._0xa605ea,-0xb7)](_0xc0d18c),await emitToolCompletedEventWithTerminalPrecedence(_0x4c4da3,_0x103bac,_0x672a87,_0x40d9e8,_0xf81199,_0x3f4f4c,_0x54dfda[_0x501988(-_0x50371f._0x2eb06d,-0x1b9,-_0x50371f._0x150e1b,-_0x50371f._0x51f67b)]()),_0xf81199;}finally{_0x3bce60();}}catch(_0x4695e4){const _0x2a7a05=_0x54dfda[_0x501988(-_0x50371f._0xaf59bc,-0x22a,-0x1a8,-0x243)](),_0x1d1767=actualCancellationHasPrecedence(_0x3f4f4c,_0x2a7a05);if(_0x1d1767||isAbortError(_0x4695e4)){const _0x5f546d=_0x1d1767?selectActualCancellationReason(_0x4695e4,_0x3f4f4c[_0x152fc8(-0x33,-_0x50371f._0x2c0144,-_0x50371f._0x2fbc56,-_0x50371f._0x38fdc4)][_0x501988(-0x32d,-_0x50371f._0x15004f,-0x280,-_0x50371f._0x30dc9f)],_0x24539c):_0x4695e4,_0x4ead3a=createAbortedToolResult(_0x672a87,_0x40d9e8,_0x5f546d);return _0x54dfda[_0x152fc8(0x163,0x16c,_0x50371f._0x4621a5,0xce)](_0x5f546d),await emitToolCompletedEventWithTerminalPrecedence(_0x4c4da3,_0x103bac,_0x672a87,_0x40d9e8,_0x4ead3a,_0x3f4f4c,_0x2a7a05),_0x4ead3a;}if(_0x4695e4 instanceof ToolRuntimeInfrastructureError)throw _0x4695e4;const {errorMessage:_0x26029d,structured:_0x252ee7}=normalizeExecutionError(_0x4695e4),_0x18854f=createErrorToolResult(_0x672a87,_0x40d9e8,_0x26029d,_0x252ee7);return _0x54dfda['close'](_0x4695e4),await emitEvent(_0x4c4da3,{'type':_0x152fc8(_0x50371f._0x317db8,-0xb,_0x50371f._0x349593,0x64),'toolCall':cloneToolCallForPublication(_0x103bac,_0x672a87,_0x40d9e8),'result':_0x18854f},_0x3f4f4c),_0x18854f;}finally{_0x54dfda['close']();}}async function executeRegisteredToolCall(_0x2279f3,_0x3e4468,_0x272252,_0x58e65a){const _0x3244cd={_0x337d2c:0x17d,_0x104003:0x15c,_0x7c2d6:0x17,_0x4bb788:0xa7},_0x243e51={_0xd0db8a:0xfc},_0x182e96=_0x3e4468['id'],_0x2f294e=_0x3e4468[_0x86572a(-0x201,-_0x3244cd._0x337d2c,-_0x3244cd._0x104003,-0xda)];function _0x305540(_0x33ca82,_0x194a19,_0x1f75a9,_0x1b36d8){return _0x2f39af(_0x1b36d8,_0x194a19- -0xc2,_0x1f75a9-_0x243e51._0xd0db8a,_0x1b36d8-0xc5);}const _0x3e1049=_0x2279f3[_0x86572a(_0x3244cd._0x7c2d6,-_0x3244cd._0x4bb788,-0x99,-0xdc)](_0x2f294e);function _0x86572a(_0x4656f3,_0x4e1d96,_0x3b15fd,_0x338f86){return _0x3e74bf(_0x4656f3-0xbc,_0x4e1d96- -0xd7,_0x4656f3,_0x338f86-0x1b2);}return await executeCapturedToolCall(_0x3e1049,_0x3e4468,_0x182e96,_0x2f294e,_0x272252,_0x58e65a);}function createInternalToolRuntime(_0x114729=[],_0x383724={}){const _0x2cc5fd={_0x4d3f7c:0x409},_0x5de31f={_0x580288:0x1f6,_0x1ff1dc:0x69},_0x555288={_0x4b902d:0x133},_0x2736c7={_0x33b886:0x9b};let _0x162feb=new ToolRegistry(_0x114729);return{'listToolSchemas'(){function _0x2109df(_0x1bbc72,_0x1d3c8c,_0x4b348b,_0x378d77){return _0xd98e(_0x1d3c8c- -0x240,_0x378d77);}return _0x162feb[_0x2109df(0x2d,-0x32,0x86,0x40)]();},'setTools'(_0x17b510){_0x162feb=new ToolRegistry(_0x17b510);},async 'executeCalls'(_0x510bdc,_0x2f6a1f){function _0x34b8d4(_0x38468b,_0x4ed81f,_0x382477,_0x13ee9c){return _0xd98e(_0x382477-_0x2736c7._0x33b886,_0x38468b);}function _0x3fa92e(_0x5591d8,_0x1fe955,_0x33925f,_0x134397){return _0xd98e(_0x1fe955- -_0x555288._0x4b902d,_0x5591d8);}return await Promise[_0x34b8d4(0x2ea,_0x5de31f._0x580288,0x29b,0x23e)](_0x510bdc[_0x3fa92e(0x3a,_0x5de31f._0x1ff1dc,0x46,0xd0)](async _0x55914d=>{return await executeRegisteredToolCall(_0x162feb,_0x55914d,_0x2f6a1f,_0x383724);}));},async 'execute'(_0x179448,_0x2683e1){const _0x288de0={_0x952c27:0x3b0},[_0x346ea8]=await this[_0x93abd0(0x3f3,_0x2cc5fd._0x4d3f7c,0x476,0x496)]([_0x179448],_0x2683e1);function _0x93abd0(_0x176be0,_0x594dee,_0x2554b,_0x1a15db){return _0xd98e(_0x2554b-_0x288de0._0x952c27,_0x1a15db);}return _0x346ea8;}};}function getOrderedObserverExtensions(_0x4241ff,_0x52e8ef){const _0x25894f={_0x279971:0x475,_0x38d341:0x498,_0x4ba498:0x3ff},_0x208b94={_0x251780:0x2e2,_0x2466c9:0x370,_0x32b15a:0x40b,_0x2d36a9:0x358,_0x32ad68:0x2b3,_0x1c7b35:0x233,_0x4bb852:0x20b,_0x535dac:0x3a3,_0x25bef9:0x366},_0x376d2e={_0x3505ab:0xd3,_0x40376b:0x61},_0x4802d4={_0x1951d4:0xe8,_0x6db4a6:0xbc,_0x2e524b:0x169},_0x5115f4={_0x55eaa8:0x7c};function _0x15a4c2(_0x5bf626,_0x501721,_0x7d6ff,_0x1a5cec){return _0x2f39af(_0x7d6ff,_0x1a5cec-0x7e,_0x7d6ff-_0x5115f4._0x55eaa8,_0x1a5cec-0x52);}return _0x4241ff['filter'](_0x330f7f=>{function _0x5ddd8a(_0x1fa0b7,_0x25a269,_0xe1ed8,_0x23ca13){return _0xd98e(_0x25a269-0x182,_0x1fa0b7);}function _0x35eda5(_0x13f7c4,_0x25740b,_0x44447e,_0x3c0314){return _0xd98e(_0x25740b- -0x1c8,_0x13f7c4);}return _0x330f7f['enabled']!==![]&&_0x330f7f[_0x35eda5(-0x144,-_0x4802d4._0x1951d4,-_0x4802d4._0x6db4a6,-_0x4802d4._0x2e524b)]===_0x52e8ef&&_0x330f7f[_0x5ddd8a(0x2c1,0x2bd,0x25a,0x201)]==='observer';})[_0x15a4c2(_0x25894f._0x279971,0x4aa,_0x25894f._0x38d341,_0x25894f._0x4ba498)]((_0x463421,_0x3b6e8b)=>{if(_0x463421[_0x2760f1(0x2aa,0x358,_0x208b94._0x251780,_0x208b94._0x2466c9)]===!![]&&_0x3b6e8b[_0x2760f1(_0x208b94._0x32b15a,_0x208b94._0x2d36a9,0x2dc,_0x208b94._0x32ad68)]!==!![])return 0x1;function _0x2760f1(_0x2d67f8,_0x312662,_0x4e2572,_0x13b65b){return _0x15a4c2(_0x2d67f8-0x1d2,_0x312662-0x180,_0x4e2572,_0x312662- -0x71);}function _0x5852d5(_0x3556b4,_0x51ab66,_0x20ac18,_0x2a5f91){return _0x15a4c2(_0x3556b4-_0x376d2e._0x3505ab,_0x51ab66-_0x376d2e._0x40376b,_0x2a5f91,_0x3556b4- -0x196);}if(_0x463421[_0x5852d5(0x233,0x25d,_0x208b94._0x1c7b35,_0x208b94._0x4bb852)]!==!![]&&_0x3b6e8b['terminal']===!![])return-0x1;return _0x463421[_0x2760f1(0x2f7,_0x208b94._0x535dac,_0x208b94._0x25bef9,0x2fd)]-_0x3b6e8b['order'];});}function getOrderedTransformerExtensions(_0x3d5c77,_0x5797ec){const _0x47e58e={_0x2be9dc:0x81,_0x52b9f0:0x103,_0x2f6ee5:0x4d,_0x45252b:0x179,_0x4d70e8:0x12f},_0x165b78={_0x4ad454:0x73,_0x4779a2:0x3b,_0x5aab9a:0xac},_0x3c9384={_0x4991c7:0xb,_0xdb3b6:0xc8},_0x3afd87={_0x19b3b5:0xfa},_0x299f8a={_0x4278df:0x12c,_0x16aa45:0x1c6},_0x1c81a4={_0x2d3ddf:0xb8};function _0x15c1e2(_0x29fe30,_0x336995,_0x51ab18,_0x56d234){return _0x3e74bf(_0x29fe30-_0x1c81a4._0x2d3ddf,_0x56d234- -0x17,_0x336995,_0x56d234-0x108);}function _0x129dc4(_0xc28287,_0x5d794c,_0x13f4c6,_0x560fe2){return _0x3e74bf(_0xc28287-0x17e,_0x13f4c6- -_0x299f8a._0x4278df,_0x5d794c,_0x560fe2-_0x299f8a._0x16aa45);}return _0x3d5c77[_0x15c1e2(_0x47e58e._0x2be9dc,0xbe,_0x47e58e._0x52b9f0,_0x47e58e._0x2f6ee5)](_0x4dc719=>{function _0x36479c(_0x50201c,_0x34c429,_0x22342d,_0x3e9817){return _0x15c1e2(_0x50201c-0x4a,_0x22342d,_0x22342d-_0x3afd87._0x19b3b5,_0x34c429-0x32d);}function _0x381f3b(_0x374d1d,_0x44f85e,_0x3b843e,_0x523c49){return _0x15c1e2(_0x374d1d-_0x3c9384._0x4991c7,_0x44f85e,_0x3b843e-0x197,_0x523c49-_0x3c9384._0xdb3b6);}return _0x4dc719['enabled']!==![]&&_0x4dc719[_0x381f3b(-0x77,-_0x165b78._0x4ad454,_0x165b78._0x4779a2,-0x4)]===_0x5797ec&&_0x4dc719[_0x381f3b(_0x165b78._0x5aab9a,-0x35,0x4,0x57)]==='transformer';})[_0x129dc4(-_0x47e58e._0x45252b,-0x138,-_0x47e58e._0x4d70e8,-0xd1)]((_0x2b06aa,_0x434318)=>_0x2b06aa[_0x129dc4(-0xf3,-0x1d5,-0x11a,-0x12a)]-_0x434318[_0x129dc4(-0x133,-0x14d,-0x11a,-0x78)]);}function createExtensionRegistry(){const _0x53ec56={_0x4c8817:0x27a},_0x7d4590={_0x7b5cdd:0xca,_0x4b1564:0x11e,_0x2a2e6d:0x1f3},_0x2bbfe8={_0x12a84c:0x18f,_0x5aa147:0x16c,_0x397cef:0x11b,_0x5865dd:0x97,_0x295936:0x149,_0x48cafc:0xb8,_0x2a60ae:0x1dd,_0x5bd230:0x14b,_0xbc51cc:0x1ea,_0x1190fd:0x209,_0x37730f:0x195,_0x4fb022:0x38,_0x3c6705:0xae,_0x127729:0x7b,_0x502116:0x2ae,_0x321d5b:0x23b,_0x1fa0c8:0x5c,_0x2904f8:0xec,_0x212e28:0x16c,_0x5583b7:0xd7},_0x453480={_0x4dc1bc:0x2a7},_0x1a205f=[];return{'register'(_0x15ec1d){if(_0x15ec1d[_0xb15a69(-_0x2bbfe8._0x12a84c,-0x21a,-0x211,-_0x2bbfe8._0x5aa147)]===_0xb15a69(-_0x2bbfe8._0x397cef,-0x162,-_0x2bbfe8._0x5865dd,-_0x2bbfe8._0x295936)&&_0x15ec1d[_0x15f84f(-0x1d2,-0x12f,-_0x2bbfe8._0x48cafc,-0x114)]!==![]&&_0x15ec1d[_0xb15a69(-0x1ff,-_0x2bbfe8._0x2a60ae,-0x14c,-_0x2bbfe8._0x5bd230)]===!![]){const _0x470f05=_0x1a205f[_0xb15a69(-_0x2bbfe8._0xbc51cc,-_0x2bbfe8._0x1190fd,-0x1a5,-_0x2bbfe8._0x37730f)](_0x3307d2=>_0x3307d2[_0x15f84f(-0x137,-0x181,-0x283,-0x1f0)]===_0x15f84f(-0x230,-0x16e,-0x265,-0x1cd)&&_0x3307d2['enabled']!==![]&&_0x3307d2[_0x15f84f(-0x298,-0x2de,-0x1f8,-0x24b)]===_0x15ec1d[_0x15f84f(-0x257,-0x2e6,-0x1b8,-0x24b)]&&_0x3307d2[_0xb15a69(-0x118,-0x12f,-0x1dc,-0x14b)]===!![]);if(_0x470f05)throw new Error('Cannot\x20register\x20terminal\x20observer\x20\x22'+_0x15ec1d['id']+_0xb15a69(-0x9e,_0x2bbfe8._0x4fb022,-_0x2bbfe8._0x3c6705,-_0x2bbfe8._0x127729)+_0x15ec1d[_0x15f84f(-_0x2bbfe8._0x502116,-_0x2bbfe8._0x321d5b,-0x199,-0x24b)]+':\x20terminal\x20observer\x20\x22'+_0x470f05['id']+_0xb15a69(-_0x2bbfe8._0x1fa0c8,-0x15f,-_0x2bbfe8._0x2904f8,-0xca));}function _0xb15a69(_0x1e3838,_0x29e84d,_0x20f32d,_0x201d9f){return _0xd98e(_0x201d9f- -_0x453480._0x4dc1bc,_0x20f32d);}function _0x15f84f(_0x27feb4,_0x15a8f7,_0x5d25fc,_0x281831){return _0xd98e(_0x281831- -0x32b,_0x5d25fc);}_0x1a205f[_0xb15a69(-0x144,-_0x2bbfe8._0x212e28,-_0x2bbfe8._0x5583b7,-0x191)]({..._0x15ec1d});},async 'runTransformers'(_0x1423d4,_0x50d310,_0x5db6bc){const _0x4d7346={_0x10323b:0x71};let _0x26fc02=_0x50d310;for(const _0x56148a of getOrderedTransformerExtensions(_0x1a205f,_0x1423d4)){_0x26fc02=await _0x56148a[_0x50254f(_0x7d4590._0x7b5cdd,0x178,_0x7d4590._0x4b1564,_0x7d4590._0x2a2e6d)](_0x26fc02,_0x5db6bc);}function _0x50254f(_0x59be9e,_0x58b032,_0x3ad39d,_0x5ab91c){return _0xd98e(_0x58b032-_0x4d7346._0x10323b,_0x5ab91c);}return _0x26fc02;},async 'runObservers'(_0x2aea8e,_0x378cf2,_0x4d1e40){const _0x44a09b={_0x2bd34c:0xec};function _0xdc6664(_0x173354,_0x526ecf,_0xa23d36,_0x59873a){return _0xd98e(_0xa23d36-_0x44a09b._0x2bd34c,_0x173354);}for(const _0x200514 of getOrderedObserverExtensions(_0x1a205f,_0x2aea8e)){await _0x200514[_0xdc6664(0x295,_0x53ec56._0x4c8817,0x1f3,0x218)](_0x378cf2,_0x4d1e40);}}};}var MODEL_USAGE_TOTAL_KEYS=[_0x3e74bf(0x13,-0x7e,-0xcd,-0x105),_0x2f39af(0x2a1,0x2bb,0x22d,0x2a1),_0x3e74bf(-0x68,-0x4f,-0x34,-0xd6),_0x3e74bf(-0x21,-0x10,-0x93,-0xb2),'requestCount',_0x3e74bf(-0xc0,-0x22,0x53,-0x67),'totalModelTimeMs',_0x3e74bf(0xb0,0x1b,0x53,-0x56),'totalReportedCostUsdTicks',_0x2f39af(0x377,0x41c,0x38c,0x488),_0x3e74bf(0x25,0x5c,0x10,0x2f),_0x3e74bf(0x4,-0xf,0x4e,0x21),_0x3e74bf(-0x71,0x4,0x7,0x7d),_0x3e74bf(0x6c,0x4d,0x7f,-0x1d),_0x3e74bf(0x75,0x2f,0x28,0x24)],SUBAGENT_REPORT_META_KEYS=[_0x2f39af(0x37b,0x2ed,0x2af,0x368),_0x2f39af(0x33f,0x3c2,0x398,0x32c),_0x3e74bf(0x97,0x86,0xc1,0x28),_0x2f39af(0x258,0x2f8,0x2b9,0x343),_0x3e74bf(-0x47,-0x52,-0xfe,-0x6e),_0x2f39af(0x479,0x3cf,0x35d,0x403)],ModelUsageOverflowError=class extends RangeError{[_0x2f39af(0x2fd,0x2de,0x334,0x26f)]='ModelUsageOverflowError';};function hasExactKeys(_0x2fd86d,_0x419e47){const _0x1be8c5={_0x3c4315:0x3ca,_0x55a9ce:0x3f5,_0x3016f9:0x44b,_0x5a90fc:0x53c},_0x37ee9f={_0x53ba8a:0x9a,_0x3448ec:0x4b1,_0x47c9d5:0x3a},_0x2154a3={_0x1f0c42:0x80,_0x192544:0x126};if(typeof _0x2fd86d!==_0x323f5c(0x3bc,_0x1be8c5._0x3c4315,0x3d6,0x387)||_0x2fd86d===null||Array[_0x3e3c83(0x4a3,0x498,_0x1be8c5._0x55a9ce,_0x1be8c5._0x3016f9)](_0x2fd86d))return![];function _0x323f5c(_0x4b8bc0,_0x3f0780,_0x1c3531,_0x5aad35){return _0x3e74bf(_0x4b8bc0-_0x2154a3._0x1f0c42,_0x3f0780-0x342,_0x4b8bc0,_0x5aad35-_0x2154a3._0x192544);}const _0x33eb30=Object['keys'](_0x2fd86d);function _0x3e3c83(_0x884ae6,_0x39a2b0,_0x507b91,_0x1e1535){return _0x3e74bf(_0x884ae6-_0x37ee9f._0x53ba8a,_0x1e1535-_0x37ee9f._0x3448ec,_0x39a2b0,_0x1e1535-_0x37ee9f._0x47c9d5);}return _0x33eb30['length']===_0x419e47['length']&&_0x33eb30[_0x3e3c83(0x512,0x3ea,_0x1be8c5._0x5a90fc,0x49d)](_0x44ee63=>_0x419e47['includes'](_0x44ee63));}function isNonNegativeSafeInteger(_0x20e2ae){const _0x5fc9a9={_0x46fe32:0x516,_0x118ca5:0x551,_0x3bc593:0x518};function _0x95c86(_0xcf7a8d,_0x26e19a,_0x59d197,_0x226387){return _0x3e74bf(_0xcf7a8d-0xf8,_0xcf7a8d-0x4a3,_0x226387,_0x226387-0x112);}function _0x2d28b2(_0x149077,_0x5c45cb,_0x179b21,_0x11bb44){return _0x3e74bf(_0x149077-0x1c9,_0x11bb44-0x495,_0x5c45cb,_0x11bb44-0xc1);}return typeof _0x20e2ae===_0x2d28b2(0x53c,0x58d,0x506,_0x5fc9a9._0x46fe32)&&Number[_0x95c86(0x4d8,_0x5fc9a9._0x118ca5,_0x5fc9a9._0x3bc593,0x565)](_0x20e2ae)&&_0x20e2ae>=0x0;}function requireModelUsageInteger(_0x2cdfd1){if(!isNonNegativeSafeInteger(_0x2cdfd1))throw new ModelUsageOverflowError('Model\x20usage\x20total\x20overflow');return _0x2cdfd1;}function addModelUsageInteger(_0x51f471,_0x203de8){return requireModelUsageInteger(_0x51f471+_0x203de8);}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(_0x5008b9){const _0x3695fb={_0x1ff893:0x97,_0x461e32:0x75,_0x5aa0da:0x11d,_0x42c574:0x3d,_0x152580:0x34,_0x4c6889:0xae,_0x4f6535:0x1,_0x1f8542:0x7f,_0x428b17:0x68,_0x4d7865:0xef,_0x5333fe:0x1e,_0x1f32d4:0x95,_0x4fe35c:0xce,_0x42b981:0x14,_0x467273:0x163,_0x4fd6e5:0xa6,_0x5a8c5e:0x19,_0x69b768:0x85,_0xf154c7:0xb9,_0x256ef1:0x67,_0x5e3b1b:0x469,_0x51248f:0x533,_0x40f701:0x432,_0x1a5e81:0x25,_0x111f2a:0xab,_0x4b1e75:0x62,_0x4a7599:0xc,_0x148f8a:0x4de},_0x27abfd={_0x3813dc:0x73},_0x1b9cc6={_0x273fcb:0xe};function _0x5b56a5(_0x227358,_0x26e887,_0x3a6c9e,_0x241499){return _0x2f39af(_0x241499,_0x227358- -0x33a,_0x3a6c9e-_0x1b9cc6._0x273fcb,_0x241499-0x7c);}if(!hasExactKeys(_0x5008b9,MODEL_USAGE_TOTAL_KEYS))return![];for(const _0x23c708 of MODEL_USAGE_TOTAL_KEYS){if(_0x23c708==='historicalMetricsComplete')continue;if(!isNonNegativeSafeInteger(_0x5008b9[_0x23c708]))return![];}function _0x2291df(_0x43ae62,_0x57893c,_0x24e772,_0x3333bd){return _0x2f39af(_0x43ae62,_0x3333bd-0x12b,_0x24e772-_0x27abfd._0x3813dc,_0x3333bd-0x1b6);}if(typeof _0x5008b9[_0x5b56a5(_0x3695fb._0x1ff893,0x1d,_0x3695fb._0x461e32,_0x3695fb._0x5aa0da)]!==_0x5b56a5(-0x31,0x58,-0x37,_0x3695fb._0x42c574))return![];const _0x20ecde=_0x5008b9;return _0x20ecde[_0x5b56a5(-_0x3695fb._0x152580,-_0x3695fb._0x4c6889,-_0x3695fb._0x4f6535,-0x52)]===_0x20ecde[_0x5b56a5(-_0x3695fb._0x1f8542,-0x23,-_0x3695fb._0x428b17,-_0x3695fb._0x4d7865)]+_0x20ecde[_0x5b56a5(-0x5,_0x3695fb._0x5333fe,-_0x3695fb._0x428b17,_0x3695fb._0x1f32d4)]&&_0x20ecde[_0x5b56a5(0x3a,0xa1,0x4f,0x2c)]<=_0x20ecde['totalOutputTokens']&&_0x20ecde[_0x5b56a5(_0x3695fb._0x4fe35c,0xb3,_0x3695fb._0x42b981,_0x3695fb._0x467273)]<=_0x20ecde['modelCallCount']&&_0x20ecde[_0x5b56a5(_0x3695fb._0x4fd6e5,0xca,_0x3695fb._0x5a8c5e,_0x3695fb._0x69b768)]<=_0x20ecde[_0x5b56a5(0x28,0xe3,_0x3695fb._0xf154c7,_0x3695fb._0x256ef1)]&&_0x20ecde['estimatedCostCallCount']<=_0x20ecde[_0x2291df(_0x3695fb._0x5e3b1b,_0x3695fb._0x51248f,_0x3695fb._0x40f701,0x48d)]&&_0x20ecde[_0x5b56a5(0x4e,_0x3695fb._0x1a5e81,_0x3695fb._0x111f2a,0x89)]<=_0x20ecde[_0x5b56a5(0x28,_0x3695fb._0x4b1e75,-0x86,_0x3695fb._0x4a7599)]&&_0x20ecde['historicalMetricsComplete']===(_0x20ecde[_0x2291df(0x4f3,0x45f,0x497,_0x3695fb._0x148f8a)]===0x0);}function isSubagentReportMeta(_0x393d93){const _0x2a9af5={_0x548c6f:0xa7,_0x595fa3:0x80,_0x9aafe8:0x99,_0x5a9ca8:0x164,_0x697a82:0x221,_0x275f2d:0x167,_0x1e0dc4:0x10c,_0x13089c:0x1c,_0x406e41:0x1b9,_0x1da2be:0x1b6,_0x2fb465:0x3a,_0x5f3ea3:0x1b6,_0x59ea62:0xe8,_0x8baf07:0xa4,_0x3ca8db:0xeb,_0x189ad2:0x156,_0x3d36f8:0x11f,_0x167f81:0x102,_0x487749:0x27,_0x5a2235:0x11d,_0x4ce396:0xb5,_0x3b7b13:0x49,_0x548bdb:0x17f,_0x43373a:0xf5,_0x4a2c95:0xcd},_0x31bccb={_0x4c5b85:0x121,_0x560194:0x130},_0x1b525c={_0x384304:0xcd};if(!hasExactKeys(_0x393d93,SUBAGENT_REPORT_META_KEYS))return![];if(typeof _0x393d93[_0x168f92(_0x2a9af5._0x548c6f,0x144,_0x2a9af5._0x595fa3,_0x2a9af5._0x9aafe8)]!=='string'||_0x393d93['agentId'][_0x385bc6(-_0x2a9af5._0x5a9ca8,-_0x2a9af5._0x697a82,-_0x2a9af5._0x275f2d,-0x1cd)]===0x0)return![];if(typeof _0x393d93['runId']!=='string'||_0x393d93[_0x385bc6(-0x56,-_0x2a9af5._0x1e0dc4,0x48,-_0x2a9af5._0x13089c)]['length']===0x0)return![];if(typeof _0x393d93[_0x168f92(_0x2a9af5._0x406e41,0x25a,0x230,_0x2a9af5._0x1da2be)]!==_0x385bc6(-_0x2a9af5._0x2fb465,-0xc0,-0x7,0x6c)||_0x393d93[_0x168f92(0x227,0x1bc,0x144,_0x2a9af5._0x5f3ea3)]['length']===0x0)return![];function _0x385bc6(_0x2e2fcd,_0x444a74,_0x19067a,_0x1614fe){return _0x2f39af(_0x1614fe,_0x2e2fcd- -0x418,_0x19067a-_0x1b525c._0x384304,_0x1614fe-0x1bc);}if(_0x393d93[_0x168f92(-0x7,_0x2a9af5._0x59ea62,0xbd,_0x2a9af5._0x8baf07)]!==_0x385bc6(-_0x2a9af5._0x3ca8db,-_0x2a9af5._0x189ad2,-0xc0,-0xb3)&&_0x393d93[_0x385bc6(-0x120,-_0x2a9af5._0x3d36f8,-_0x2a9af5._0x167f81,-0x149)]!=='failed'&&_0x393d93['status']!==_0x168f92(_0x2a9af5._0x487749,0x134,0x66,0xa6))return![];function _0x168f92(_0x5f5249,_0x262878,_0x5e4ef0,_0x4dd1be){return _0x3e74bf(_0x5f5249-_0x31bccb._0x4c5b85,_0x4dd1be-_0x31bccb._0x560194,_0x262878,_0x4dd1be-0xc0);}if(!isModelUsageTotals(_0x393d93[_0x385bc6(-0xe6,-_0x2a9af5._0x5a2235,-0x62,-_0x2a9af5._0x4ce396)]))return![];if(!isModelUsageTotals(_0x393d93[_0x385bc6(-_0x2a9af5._0x3b7b13,-0xe,-0x78,-0xf6)]))return![];return _0x393d93['turnUsage']['historicalMetricsComplete']&&_0x393d93[_0x168f92(_0x2a9af5._0x548bdb,_0x2a9af5._0x189ad2,_0x2a9af5._0x43373a,0xde)][_0x385bc6(-0x65,-0x2b,-_0x2a9af5._0x4a2c95,-0xf)]===0x0;}function addModelUsageTotals(_0x1ab3f7,_0x4dd94b){const _0xa5dd3c={_0x2885c1:0xbf,_0x352e22:0x12c,_0x2da5a8:0x1d7,_0x56970a:0x144,_0x3318c2:0x1b8,_0x5e3f59:0x195,_0x5bb517:0x8f,_0x25c3c7:0x10d,_0x3732ac:0xbe,_0x25044a:0xd2,_0x3eebb5:0x23a,_0x1f4f78:0x18,_0x290102:0xd0,_0x3ce403:0x6a,_0x15d359:0x227,_0xff1443:0x206,_0xaadc4:0x23c,_0x1b63bc:0x266,_0x2cdf75:0x93,_0x1cce64:0x101,_0xe5c05d:0xe,_0x4e5571:0x119,_0x442560:0x22f,_0x6bf479:0xc7,_0x31bd5e:0x11f,_0x8ead1f:0x189,_0x5aa866:0x1bb,_0x125da9:0x22b,_0x2eeee2:0x1df,_0x4d1159:0x22b,_0x5e553e:0x278,_0x475652:0x1ef,_0x990d3c:0x163,_0x493d9a:0x16e,_0x2166ab:0x184,_0x3b70a3:0x1ca,_0xae8b57:0xaa,_0x49e31e:0x86,_0x10e955:0x74,_0x3b8041:0x197,_0x219749:0x16b,_0x4b4cee:0x61,_0x540288:0x5a,_0x4ad809:0x1c2,_0x474b4d:0x1ac,_0x17658d:0x269},_0x21d6f2={_0x3fff46:0x432},_0x53ab43={_0x4cf5cd:0x1f1,_0x3ac8b3:0x8c};function _0x4c7cd1(_0x369c97,_0x1ec692,_0x23aa3a,_0x474334){return _0x2f39af(_0x1ec692,_0x369c97- -_0x53ab43._0x4cf5cd,_0x23aa3a-_0x53ab43._0x3ac8b3,_0x474334-0x104);}function _0x1b65d2(_0x109725,_0x3b0b1b,_0x3de29b,_0x434a50){return _0x2f39af(_0x3b0b1b,_0x109725- -_0x21d6f2._0x3fff46,_0x3de29b-0xa5,_0x434a50-0x16a);}return{'totalTokens':addModelUsageInteger(_0x1ab3f7[_0x1b65d2(-0x12c,-0x1d2,-_0xa5dd3c._0x2885c1,-0xdf)],_0x4dd94b[_0x1b65d2(-_0xa5dd3c._0x352e22,-0x1e8,-0x17a,-_0xa5dd3c._0x2da5a8)]),'totalInputTokens':addModelUsageInteger(_0x1ab3f7['totalInputTokens'],_0x4dd94b['totalInputTokens']),'totalOutputTokens':addModelUsageInteger(_0x1ab3f7[_0x4c7cd1(_0xa5dd3c._0x56970a,0x1cc,0x160,_0xa5dd3c._0x3318c2)],_0x4dd94b[_0x1b65d2(-0xfd,-_0xa5dd3c._0x5e3f59,-_0xa5dd3c._0x5bb517,-_0xa5dd3c._0x25c3c7)]),'totalReasoningTokens':addModelUsageInteger(_0x1ab3f7['totalReasoningTokens'],_0x4dd94b[_0x1b65d2(-_0xa5dd3c._0x3732ac,-0x140,-_0xa5dd3c._0x25044a,-0xbb)]),'requestCount':addModelUsageInteger(_0x1ab3f7[_0x4c7cd1(0x217,0x2b3,_0xa5dd3c._0x3eebb5,0x187)],_0x4dd94b[_0x1b65d2(-0x2a,0xb,-0x51,-_0xa5dd3c._0x1f4f78)]),'modelCallCount':addModelUsageInteger(_0x1ab3f7['modelCallCount'],_0x4dd94b[_0x1b65d2(-_0xa5dd3c._0x290102,-0x8f,-0x20,-_0xa5dd3c._0x3ce403)]),'totalModelTimeMs':addModelUsageInteger(_0x1ab3f7[_0x4c7cd1(_0xa5dd3c._0x15d359,0x1fa,_0xa5dd3c._0xff1443,0x290)],_0x4dd94b[_0x4c7cd1(0x227,_0xa5dd3c._0xaadc4,_0xa5dd3c._0x1b63bc,0x2af)]),'totalCostUsdTicks':addModelUsageInteger(_0x1ab3f7[_0x1b65d2(-_0xa5dd3c._0x2cdf75,-_0xa5dd3c._0x1cce64,_0xa5dd3c._0xe5c05d,-0x1b)],_0x4dd94b[_0x4c7cd1(0x1ae,_0xa5dd3c._0x4e5571,_0xa5dd3c._0x442560,0x1c0)]),'totalReportedCostUsdTicks':addModelUsageInteger(_0x1ab3f7[_0x4c7cd1(0xb8,_0xa5dd3c._0x6bf479,0xae,_0xa5dd3c._0x31bd5e)],_0x4dd94b[_0x1b65d2(-_0xa5dd3c._0x8ead1f,-0x131,-_0xa5dd3c._0x5aa866,-0x1d3)]),'totalEstimatedCostUsdTicks':addModelUsageInteger(_0x1ab3f7[_0x4c7cd1(_0xa5dd3c._0x125da9,0x2ca,0x21b,_0xa5dd3c._0x2eeee2)],_0x4dd94b[_0x4c7cd1(_0xa5dd3c._0x4d1159,_0xa5dd3c._0x5e553e,0x288,0x23d)]),'reportedCostCallCount':addModelUsageInteger(_0x1ab3f7['reportedCostCallCount'],_0x4dd94b[_0x4c7cd1(_0xa5dd3c._0x475652,_0xa5dd3c._0x990d3c,_0xa5dd3c._0x493d9a,0x20e)]),'estimatedCostCallCount':addModelUsageInteger(_0x1ab3f7['estimatedCostCallCount'],_0x4dd94b[_0x4c7cd1(_0xa5dd3c._0x2166ab,_0xa5dd3c._0x3b70a3,0x1ec,_0xa5dd3c._0x4e5571)]),'unpricedModelCallCount':addModelUsageInteger(_0x1ab3f7[_0x1b65d2(-_0xa5dd3c._0xae8b57,-_0xa5dd3c._0x49e31e,-_0xa5dd3c._0x6bf479,-_0xa5dd3c._0x10e955)],_0x4dd94b[_0x4c7cd1(_0xa5dd3c._0x3b8041,0xda,0x126,_0xa5dd3c._0x219749)]),'historicalMetricsComplete':_0x1ab3f7[_0x1b65d2(-_0xa5dd3c._0x4b4cee,-0xa0,-0xb6,-_0xa5dd3c._0x540288)]&&_0x4dd94b['historicalMetricsComplete'],'missingHistoricalModelCallCount':addModelUsageInteger(_0x1ab3f7['missingHistoricalModelCallCount'],_0x4dd94b[_0x4c7cd1(_0xa5dd3c._0x4ad809,_0xa5dd3c._0x474b4d,0x276,_0xa5dd3c._0x17658d)])};}function modelUsageTotalsEqual(_0x3db8c2,_0x382ffb){const _0x2ffbee={_0x558248:0x3fe},_0x1122e6={_0x184d33:0x184};function _0x3359c9(_0x5e69f6,_0xc5bb4b,_0x1d0846,_0x25da11){return _0x2f39af(_0x25da11,_0x1d0846-0x119,_0x1d0846-0x9,_0x25da11-_0x1122e6._0x184d33);}return MODEL_USAGE_TOTAL_KEYS[_0x3359c9(0x420,0x4b9,0x489,_0x2ffbee._0x558248)](_0x3c9fe7=>_0x3db8c2[_0x3c9fe7]===_0x382ffb[_0x3c9fe7]);}function modelUsageTotalsFromSnapshot(_0x445c34){const _0x30c317={_0x2e0ba1:0x399,_0x356c68:0x2ee,_0x351b09:0x24b,_0x380434:0x38b,_0x48d026:0x2eb,_0x45997b:0x334,_0x5a929a:0x35c,_0x112b71:0x337,_0x1e899f:0x39b,_0x5e161c:0x34a,_0x4c5d2c:0x3ea,_0x4df1ce:0x393,_0x500822:0x400,_0x2377b5:0x404,_0x27a6dc:0x34b,_0x116ca7:0x1b,_0x248583:0x1a,_0x2c38c5:0x32,_0x52425c:0x59,_0xdb582b:0x62,_0x2a98ff:0x64,_0x36bdcf:0x15,_0x276781:0x9d,_0x5477b8:0x8a,_0x1a4741:0x89,_0x2d8c9d:0x307,_0xc19ce5:0x3b9,_0xbf8f1d:0x349,_0x4c77ed:0x3a9,_0x438bee:0x3b8,_0x2b5788:0x35f},_0x4cd701={_0x24d36b:0x412,_0x63b3c2:0x95,_0x30fc6c:0x1d4},_0x1a747d={_0x16345b:0x36c,_0x1893cf:0xae};function _0x26b854(_0xfea275,_0x7420d5,_0x113e4c,_0x377cfa){return _0x3e74bf(_0xfea275-0x14b,_0x7420d5-_0x1a747d._0x16345b,_0x113e4c,_0x377cfa-_0x1a747d._0x1893cf);}const _0x1c538e={'totalTokens':_0x445c34[_0x26b854(_0x30c317._0x2e0ba1,_0x30c317._0x356c68,0x252,_0x30c317._0x351b09)],'totalInputTokens':_0x445c34['totalInputTokens'],'totalOutputTokens':_0x445c34[_0x26b854(0x287,0x31d,_0x30c317._0x380434,_0x30c317._0x48d026)],'totalReasoningTokens':_0x445c34[_0x26b854(_0x30c317._0x45997b,_0x30c317._0x5a929a,0x3a8,_0x30c317._0x112b71)],'requestCount':_0x445c34['requestCount'],'modelCallCount':_0x445c34[_0x26b854(_0x30c317._0x1e899f,_0x30c317._0x5e161c,_0x30c317._0x4c5d2c,_0x30c317._0x4df1ce)],'totalModelTimeMs':_0x445c34[_0x26b854(0x460,_0x30c317._0x500822,0x37a,0x36a)],'totalCostUsdTicks':_0x445c34[_0x26b854(0x354,0x387,_0x30c317._0x2377b5,_0x30c317._0x27a6dc)],'totalReportedCostUsdTicks':_0x445c34['totalReportedCostUsdTicks'],'totalEstimatedCostUsdTicks':_0x445c34[_0x5b13d4(-_0x30c317._0x116ca7,_0x30c317._0x248583,0xa,_0x30c317._0x2c38c5)],'reportedCostCallCount':_0x445c34[_0x5b13d4(_0x30c317._0x52425c,_0x30c317._0xdb582b,-0x32,-_0x30c317._0x2a98ff)],'estimatedCostCallCount':_0x445c34[_0x5b13d4(-0x11d,-_0x30c317._0x36bdcf,-_0x30c317._0x276781,-_0x30c317._0x36bdcf)],'unpricedModelCallCount':_0x445c34[_0x5b13d4(-0xdb,-0x47,-_0x30c317._0x5477b8,-_0x30c317._0x1a4741)],'historicalMetricsComplete':_0x445c34[_0x26b854(_0x30c317._0x2d8c9d,_0x30c317._0xc19ce5,_0x30c317._0xbf8f1d,_0x30c317._0x4c77ed)],'missingHistoricalModelCallCount':_0x445c34[_0x26b854(_0x30c317._0x438bee,0x39b,0x33a,_0x30c317._0x2b5788)]};function _0x5b13d4(_0x2e2fec,_0x3be435,_0x22b3e8,_0x4ec1e4){return _0x2f39af(_0x3be435,_0x22b3e8- -_0x4cd701._0x24d36b,_0x22b3e8-_0x4cd701._0x63b3c2,_0x4ec1e4-_0x4cd701._0x30fc6c);}for(const _0x48ea26 of MODEL_USAGE_TOTAL_KEYS){if(_0x48ea26==='historicalMetricsComplete')continue;requireModelUsageInteger(_0x1c538e[_0x48ea26]);}return _0x1c538e;}function modelUsageTotalsFromCall(_0x2af558){const _0xeb699b={_0x2f6cc5:0x1c3,_0x10c68d:0x270,_0x5e05d7:0x227,_0x510594:0x2ad,_0x12fd1b:0x287,_0x52db98:0x28f,_0x4eecc3:0x313,_0x20ae26:0x307,_0x782ade:0x3ba,_0x4d8725:0x2be,_0x3f14ba:0x184,_0x2055c4:0x11d,_0x6828c6:0x1ab,_0x516948:0x25c,_0x144975:0x1e0,_0x19295d:0x30e,_0x9d08e4:0xf0,_0x1956c6:0x14d,_0x46de6a:0x81,_0x5ac083:0x1e7,_0x26039a:0x24c,_0x3460e5:0x172,_0x26d1ec:0x214,_0xa138b3:0x2a0},_0x5888aa={_0x3e158c:0x18b},_0x20e9c3={_0x32cb93:0x1b1,_0x4119bf:0x272},_0x25b10a=_0x2af558[_0x3e6ec2(0x1ef,_0xeb699b._0x2f6cc5,_0xeb699b._0x10c68d,0x227)],_0x8feb7e=requireModelUsageInteger(_0x25b10a['inputTokens']),_0x1a21b9=requireModelUsageInteger(_0x25b10a[_0x3e6ec2(_0xeb699b._0x5e05d7,_0xeb699b._0x510594,_0xeb699b._0x12fd1b,_0xeb699b._0x52db98)]),_0x3b6e90=Math[_0x3e6ec2(_0xeb699b._0x4eecc3,_0xeb699b._0x20ae26,_0xeb699b._0x782ade,_0xeb699b._0x4d8725)](requireModelUsageInteger(_0x25b10a[_0xd3fe86(-0x134,-0x9b,-_0xeb699b._0x3f14ba,-_0xeb699b._0x2055c4)]??0x0),_0x1a21b9);function _0x3e6ec2(_0x520707,_0x3acbaa,_0xb53d4d,_0x2f6f13){return _0x3e74bf(_0x520707-_0x20e9c3._0x32cb93,_0x3acbaa-_0x20e9c3._0x4119bf,_0xb53d4d,_0x2f6f13-0x142);}const _0x332a75=requireModelUsageInteger(_0x2af558[_0xd3fe86(-_0xeb699b._0x6828c6,-_0xeb699b._0x516948,-0xfa,-0x19f)]),_0x23e9fa=addModelUsageInteger(_0x8feb7e,_0x1a21b9),_0x2f8775=_0x25b10a[_0x3e6ec2(_0xeb699b._0x144975,0x21a,0x15f,0x290)]?.[_0x3e6ec2(_0xeb699b._0x19295d,0x27a,0x1ff,0x229)],_0x5cb00c=_0x25b10a['estimatedCost']?.[_0xd3fe86(-_0xeb699b._0x9d08e4,-_0xeb699b._0x1956c6,-_0xeb699b._0x46de6a,-0x17e)],_0x22987f=_0x2f8775===void 0x0?void 0x0:requireModelUsageInteger(_0x2f8775),_0x3adefa=_0x5cb00c===void 0x0?void 0x0:requireModelUsageInteger(_0x5cb00c);function _0xd3fe86(_0x1588b6,_0x413138,_0x471db9,_0x19de0d){return _0x3e74bf(_0x1588b6-_0x5888aa._0x3e158c,_0x1588b6- -0xf8,_0x19de0d,_0x19de0d-0x84);}const _0x2ddca7=_0x22987f??_0x3adefa,_0xd9cdbc={...emptyModelUsageTotals(),'totalTokens':_0x23e9fa,'totalInputTokens':_0x8feb7e,'totalOutputTokens':_0x1a21b9,'totalReasoningTokens':_0x3b6e90,'requestCount':_0x2af558[_0x3e6ec2(0x293,_0xeb699b._0x5ac083,_0xeb699b._0x26039a,_0xeb699b._0x3460e5)]?0x1:0x0,'modelCallCount':0x1,'totalModelTimeMs':_0x332a75,'totalCostUsdTicks':_0x2ddca7??0x0,'totalReportedCostUsdTicks':_0x22987f??0x0,'totalEstimatedCostUsdTicks':_0x3adefa??0x0,'reportedCostCallCount':_0x22987f===void 0x0?0x0:0x1,'estimatedCostCallCount':_0x3adefa===void 0x0?0x0:0x1,'unpricedModelCallCount':_0x22987f===void 0x0&&_0x3adefa===void 0x0?0x1:0x0};if(!isModelUsageTotals(_0xd9cdbc))throw new ModelUsageOverflowError(_0x3e6ec2(0x242,_0xeb699b._0x26d1ec,0x230,_0xeb699b._0xa138b3));return _0xd9cdbc;}function modelUsageTotalsFromHistory(_0x414cd1,_0xa6d696){const _0x383e9b={_0x38f0ae:0x24d,_0x3a52da:0x182,_0x594922:0x163,_0x7fe10e:0x38d},_0x481d62={_0x4a9bd:0x4b2,_0xc23a5f:0x25,_0x116b8a:0x1d7};let _0x5d02b8=emptyModelUsageTotals();function _0x37b379(_0x33ded3,_0x1ce2bd,_0xaa6cc5,_0x32394e){return _0x2f39af(_0x32394e,_0xaa6cc5- -_0x481d62._0x4a9bd,_0xaa6cc5-_0x481d62._0xc23a5f,_0x32394e-_0x481d62._0x116b8a);}for(const _0x5d855b of _0x414cd1){_0x5d02b8=addModelUsageTotals(_0x5d02b8,modelUsageTotalsFromCall({'usage':_0x5d855b[_0x37b379(-_0x383e9b._0x38f0ae,-0x288,-0x1dd,-_0x383e9b._0x3a52da)],'modelTimeMs':_0x5d855b[_0x37b379(-0x1af,-0x22b,-0x1e1,-_0x383e9b._0x594922)],'completesRequest':_0x5d855b[_0x5cc1ea(0x309,0x422,_0x383e9b._0x7fe10e,0x343)]}));}function _0x5cc1ea(_0x4758e1,_0x232486,_0x42d9aa,_0x54604f){return _0x3e74bf(_0x4758e1-0x1e2,_0x42d9aa-0x418,_0x54604f,_0x54604f-0x35);}const _0x1e475d=requireModelUsageInteger(_0xa6d696);return{..._0x5d02b8,'historicalMetricsComplete':_0x1e475d===0x0,'missingHistoricalModelCallCount':_0x1e475d};}function createEmptySnapshot(){return{...emptyModelUsageTotals(),'toolCallCount':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0};}function applyModelCall(_0x2e677b,_0x3db21c){const _0x1bfddd={_0x54f9e0:0x262,_0x198f03:0x229,_0x1d559a:0x190,_0x55a40a:0x241,_0x1c06ce:0x21d,_0x3988a1:0x2a7,_0x37c721:0x2a0,_0x189cba:0x18d,_0x607de3:0x14c,_0x465063:0x13d,_0x2563a1:0x1c6,_0x22fc85:0x166,_0x27c283:0x2a9,_0x13f846:0x14b,_0x2c0649:0x276,_0x25e2a5:0x1f9,_0x35281f:0x22f,_0x587d72:0xed,_0x32d0c9:0x1ca},_0x1ebfe8={_0x15709d:0x277,_0x4f916f:0x118},_0xb420c7={_0x5f2b0b:0x147,_0x6fc983:0x12e};function _0x1e8a62(_0x2ecb89,_0x33df5f,_0x310540,_0x38bf15){return _0x2f39af(_0x2ecb89,_0x310540- -0x16f,_0x310540-_0xb420c7._0x5f2b0b,_0x38bf15-_0xb420c7._0x6fc983);}const _0x240c88=modelUsageTotalsFromCall(_0x3db21c);function _0x4c9739(_0x49c0a5,_0x3b73e1,_0x142b4b,_0x37b288){return _0x3e74bf(_0x49c0a5-0x180,_0x37b288-_0x1ebfe8._0x15709d,_0x49c0a5,_0x37b288-_0x1ebfe8._0x4f916f);}const _0x433c7f=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x2e677b),_0x240c88),_0xc88165=_0x3db21c['usage'][_0x1e8a62(0x15d,_0x1bfddd._0x54f9e0,0x1bd,0x159)]?.[_0x4c9739(0x24b,0x2a9,0x1db,0x27f)],_0x216453=_0x3db21c['usage'][_0x4c9739(0x114,_0x1bfddd._0x198f03,0x238,0x1bc)]?.[_0x1e8a62(_0x1bfddd._0x1d559a,_0x1bfddd._0x55a40a,_0x1bfddd._0x1c06ce,_0x1bfddd._0x3988a1)],{currentReportedCostUsdTicks:_0x53b291,currentEstimatedCostUsdTicks:_0x452ce5,..._0x49d57b}=_0x2e677b;return{..._0x49d57b,..._0x433c7f,'currentTokens':_0x240c88[_0x4c9739(_0x1bfddd._0x37c721,0x276,0x2a1,0x1f9)],'currentInputTokens':_0x240c88[_0x1e8a62(0x11b,_0x1bfddd._0x189cba,_0x1bfddd._0x607de3,0x133)],'currentOutputTokens':_0x240c88[_0x1e8a62(0x160,_0x1bfddd._0x465063,_0x1bfddd._0x2563a1,_0x1bfddd._0x22fc85)],'currentReasoningTokens':_0x240c88['totalReasoningTokens'],'currentModelTimeMs':_0x240c88[_0x1e8a62(0x2d8,0x23f,_0x1bfddd._0x27c283,0x240)],..._0x49d57b[_0x4c9739(0x10b,_0x1bfddd._0x13f846,0x1c5,0x1c1)]&&_0x240c88[_0x4c9739(_0x1bfddd._0x2c0649,0x1e9,0x1d9,_0x1bfddd._0x25e2a5)]>0x0?{'contextWindowUsage':_0x240c88[_0x4c9739(0x25a,_0x1bfddd._0x35281f,0x24f,0x1f9)]/_0x49d57b[_0x1e8a62(_0x1bfddd._0x587d72,_0x1bfddd._0x32d0c9,0x15f,0xe4)]}:{},..._0xc88165!==void 0x0?{'currentReportedCostUsdTicks':_0xc88165}:{},..._0x216453!==void 0x0?{'currentEstimatedCostUsdTicks':_0x216453}:{}};}function mergeExternalUsage(_0x4f600f,_0xd77ed8){const _0x1f55c9={_0x2e34c4:0x109},_0x428a4f={_0x344808:0xfa,_0x548ffd:0x1d9};if(!isModelUsageTotals(_0xd77ed8))throw new TypeError(_0x4e2ade(0x8a,0xbd,0x123,_0x1f55c9._0x2e34c4));const _0x3b236f=addModelUsageTotals(modelUsageTotalsFromSnapshot(_0x4f600f),_0xd77ed8);function _0x4e2ade(_0x1dad1f,_0xc4cc6a,_0x5a938b,_0x275ea7){return _0x3e74bf(_0x1dad1f-_0x428a4f._0x344808,_0x5a938b-0x1f0,_0x1dad1f,_0x275ea7-_0x428a4f._0x548ffd);}return{..._0x4f600f,..._0x3b236f};}function createAgentMetrics(_0x3db37d={}){const _0x32d3b5={_0x207549:0x64,_0x571c6a:0x147,_0x18349c:0x15c,_0x174a72:0x105,_0x177df1:0x1f3,_0x4262dc:0x199,_0x1f34c6:0x171,_0x16e255:0xf1,_0x1c4083:0x123,_0x57993c:0x178,_0x10f549:0x3f1,_0x5eaa0a:0x51e},_0x367dc5={_0x768696:0x1a6,_0x94024b:0x14a,_0x271b34:0xb6,_0xa16089:0x112,_0x56fbf5:0xad,_0xfd1600:0x3e1,_0x5d9321:0x391,_0x1d04d5:0x3cc,_0xf043ce:0x127,_0x3f3d6a:0x153,_0x54a3ed:0x132,_0x469c7a:0xef,_0x40f70e:0x15e,_0x2ef5bf:0x200,_0x4c3552:0x162,_0x1158e0:0x199,_0x49b479:0x3a,_0x2f3d2e:0x1a8,_0x24319e:0x2bc,_0x3a987e:0x2eb,_0x1fc9bf:0x131,_0xeb321f:0xfa,_0x31960f:0xb4,_0x1ed02a:0x17d,_0x1624d1:0xf3,_0x2e053b:0x450,_0x17bc29:0x3b1},_0x32294a={_0x3e1b58:0x244};let _0x3d8dbb=createEmptySnapshot();const _0x33cc46=new Set();let _0x34ac80;const _0x46bb5e=()=>{const _0x2c2eef={..._0x3d8dbb};for(const _0x5eb9fe of _0x33cc46)_0x5eb9fe(_0x2c2eef);};return{'getSnapshot'(){return{..._0x3d8dbb};},'recordEvent'(_0x23aba2){const _0x49903f={_0x8464e2:0x19e};if(_0x23aba2['type']==='model_request'){_0x34ac80=Date['now']();const _0x14133f=_0x3db37d[_0x5c4b3f(-_0x367dc5._0x768696,-_0x367dc5._0x94024b,-0xcf,-0x15c)]?.(_0x23aba2[_0x5c4b3f(-0x154,-0x181,-_0x367dc5._0x271b34,-_0x367dc5._0xa16089)]);_0x14133f!==void 0x0&&(_0x3d8dbb={..._0x3d8dbb,'contextWindowLimit':_0x14133f},_0x46bb5e());return;}function _0x5c4b3f(_0x3060c3,_0x43c144,_0x170051,_0x443d66){return _0xd98e(_0x443d66- -_0x32294a._0x3e1b58,_0x43c144);}function _0xbf176e(_0x1ca332,_0x47513a,_0x1aea42,_0x326dc6){return _0xd98e(_0x326dc6-_0x49903f._0x8464e2,_0x47513a);}if(_0x23aba2['type']===_0x5c4b3f(-0x22,-_0x367dc5._0x56fbf5,-0x142,-0x95)){const _0x9a6fd6=_0x34ac80===void 0x0?0x0:Date[_0xbf176e(_0x367dc5._0xfd1600,_0x367dc5._0x5d9321,0x3c4,_0x367dc5._0x1d04d5)]()-_0x34ac80;_0x34ac80=void 0x0,_0x3d8dbb=applyModelCall(_0x3d8dbb,{'usage':_0x23aba2[_0x5c4b3f(-_0x367dc5._0xf043ce,-_0x367dc5._0x3f3d6a,-_0x367dc5._0x54a3ed,-0x118)][_0x5c4b3f(-0x166,-0xe6,-_0x367dc5._0x469c7a,-_0x367dc5._0x40f70e)],'modelTimeMs':_0x23aba2[_0x5c4b3f(-0xa7,-_0x367dc5._0x2ef5bf,-0x16a,-_0x367dc5._0x4c3552)]??_0x9a6fd6}),_0x46bb5e();return;}if(_0x23aba2[_0x5c4b3f(-_0x367dc5._0x1158e0,-_0x367dc5._0x49b479,-_0x367dc5._0x2f3d2e,-0xf3)]===_0xbf176e(0x245,_0x367dc5._0x24319e,0x32e,_0x367dc5._0x3a987e)){_0x3d8dbb={..._0x3d8dbb,'toolCallCount':_0x3d8dbb[_0x5c4b3f(-0x15a,-0x199,-_0x367dc5._0x1fc9bf,-_0x367dc5._0xeb321f)]+0x1},_0x46bb5e();return;}_0x23aba2[_0x5c4b3f(-_0x367dc5._0x31960f,-_0x367dc5._0x1ed02a,-0x141,-_0x367dc5._0x1624d1)]==='final_message'&&(_0x3d8dbb={..._0x3d8dbb,'requestCount':addModelUsageInteger(_0x3d8dbb[_0xbf176e(0x329,_0x367dc5._0x2e053b,_0x367dc5._0x17bc29,0x3b7)],0x1)},_0x46bb5e());},'recordExternalUsage'(_0x50230f){const _0x2e10a7=mergeExternalUsage(_0x3d8dbb,_0x50230f);_0x3d8dbb=_0x2e10a7,_0x46bb5e();},'reset'(){_0x3d8dbb=createEmptySnapshot(),_0x34ac80=void 0x0,_0x46bb5e();},'restore'(_0x1b2d06){const _0x35e6b1={_0x3c846c:0x23a},_0x1052af={_0x29d41e:0x27b};let _0x190ca=createEmptySnapshot();for(const _0x593fe7 of _0x1b2d06[_0x236547(-_0x32d3b5._0x207549,-_0x32d3b5._0x571c6a,-0x10d,-_0x32d3b5._0x18349c)]){_0x190ca=applyModelCall(_0x190ca,{'usage':_0x593fe7['usage'],'modelTimeMs':_0x593fe7[_0x236547(-_0x32d3b5._0x174a72,-_0x32d3b5._0x177df1,-_0x32d3b5._0x4262dc,-0x11e)],'completesRequest':_0x593fe7[_0x236547(-0x20e,-0xd9,-_0x32d3b5._0x1f34c6,-0x100)]});}const _0x53be07=requireModelUsageInteger(_0x1b2d06[_0x236547(-_0x32d3b5._0x16e255,-0x8e,-0x98,-0x144)]);function _0x236547(_0x40c7ab,_0x5acc5c,_0x28bc80,_0x1b28dd){return _0xd98e(_0x28bc80- -_0x1052af._0x29d41e,_0x40c7ab);}_0x190ca={..._0x190ca,'toolCallCount':_0x1b2d06[_0x236547(-_0x32d3b5._0x1c4083,-_0x32d3b5._0x57993c,-0x131,-0xa9)],'historicalMetricsComplete':_0x53be07===0x0,'missingHistoricalModelCallCount':_0x53be07};let _0x106327=_0x190ca;if(_0x1b2d06[_0x5ddcd5(_0x32d3b5._0x10f549,0x462,0x407,_0x32d3b5._0x5eaa0a)]!==void 0x0)try{_0x106327=mergeExternalUsage(_0x190ca,_0x1b2d06['externalUsage']);}catch(_0x41d6d3){if(!(_0x41d6d3 instanceof ModelUsageOverflowError))throw _0x41d6d3;}_0x3d8dbb=_0x106327;function _0x5ddcd5(_0x495be5,_0x443bf9,_0x33f8e2,_0x7be57d){return _0xd98e(_0x443bf9-_0x35e6b1._0x3c846c,_0x495be5);}_0x34ac80=void 0x0,_0x46bb5e();},'subscribe'(_0x3f63a1){const _0x333d3={_0x45e615:0x180};return _0x33cc46['add'](_0x3f63a1),()=>{function _0x284139(_0x5632da,_0x418144,_0x44db5d,_0x3a776d){return _0xd98e(_0x44db5d- -_0x333d3._0x45e615,_0x5632da);}_0x33cc46[_0x284139(-0x55,-0x131,-0x94,-0x138)](_0x3f63a1);};}};}function normalizeExecutionScope(_0x1c09ff){const _0x50318c={_0x2c0514:0x12a,_0x3faf83:0x12a,_0x190d6d:0xac,_0x38a2a0:0x128},_0x3ede8d={_0x49874b:0xaf},_0x6fb8e8={_0x3a1e2c:0x346,_0x5dcfe3:0x17b,_0x1e63da:0x1c8};function _0x25ac4c(_0x4c523b,_0x18b4e5,_0x361e07,_0x531919){return _0x2f39af(_0x361e07,_0x531919- -_0x6fb8e8._0x3a1e2c,_0x361e07-_0x6fb8e8._0x5dcfe3,_0x531919-_0x6fb8e8._0x1e63da);}function _0x208547(_0x4d0284,_0x6e1df8,_0x37ef4e,_0xf76202){return _0x2f39af(_0x4d0284,_0x37ef4e- -0x2fc,_0x37ef4e-_0x3ede8d._0x49874b,_0xf76202-0x10);}return{'agentId':_0x1c09ff?.[_0x25ac4c(0x3f,-0x7b,-0x7b,-0x59)]??_0x208547(_0x50318c._0x2c0514,_0x50318c._0x3faf83,_0x50318c._0x190d6d,_0x50318c._0x38a2a0),'toolCallPath':[..._0x1c09ff?.['toolCallPath']??[]]};}function makeExtensionContext(_0x4e3363,_0x140580){const _0x5172ac={_0x15ca87:0x53,_0x5816d2:0x157},_0x2cb33d={_0x43fde1:0x14a};function _0x2b93fb(_0x242f8c,_0x59f1e0,_0x4cc613,_0x2a9c42){return _0x3e74bf(_0x242f8c-0xd3,_0x59f1e0-0x198,_0x2a9c42,_0x2a9c42-_0x2cb33d._0x43fde1);}return{'state':_0x4e3363,'delivery':_0x2b93fb(_0x5172ac._0x15ca87,0xf5,0x66,_0x5172ac._0x5816d2),'executionScope':_0x140580};}async function runStage(_0x22251f,_0x2ce00e,_0x385787,_0x8e98fd){const _0x35c1d9={_0xc79cda:0x4b8,_0x3e3524:0x377,_0x2f7bc8:0x413,_0x550825:0x451},_0x4bda6f={_0x1a2c65:0x16e};function _0x9f0443(_0x286409,_0x47ee12,_0x2e29ef,_0x2b659c){return _0x2f39af(_0x286409,_0x2e29ef- -0x23,_0x2e29ef-0x1cf,_0x2b659c-_0x4bda6f._0x1a2c65);}const _0x1c3020=await _0x22251f[_0x2bcd05(_0x35c1d9._0xc79cda,_0x35c1d9._0x3e3524,_0x35c1d9._0x2f7bc8,_0x35c1d9._0x550825)](_0x2ce00e,_0x385787,_0x8e98fd);await _0x22251f[_0x9f0443(0x45a,0x37f,0x3a6,0x340)](_0x2ce00e,_0x1c3020,_0x8e98fd);function _0x2bcd05(_0x229ada,_0xfb3ac5,_0x4a9a00,_0x4f7ef5){return _0x2f39af(_0x229ada,_0x4a9a00-0x46,_0x4a9a00-0x1ce,_0x4f7ef5-0x148);}return _0x1c3020;}async function emitEvent2(_0x5b5b2e,_0x23caab,_0x51483d){await _0x5b5b2e?.(_0x23caab,_0x51483d);}function replaceToolUseBlocks(_0x1d040c,_0x1585a7){const _0x2ca6e5={_0x1aa303:0x32a,_0x44d1cc:0x28d,_0x55a34f:0x276,_0xa4d605:0x15d,_0x5d1ed2:0x2bd},_0x314d4e={_0x5043b8:0x3c8,_0x1122cb:0x498,_0x440762:0x44a},_0x3042ae={_0x1ce0e5:0x355,_0x229209:0x145},_0x5ed326={_0x149a3e:0x17a},_0x397f74={_0x332ff7:0x150,_0x54fd58:0x139};function _0x53fa2f(_0x44acb6,_0x4eb3ad,_0x20e23e,_0x23dc22){return _0x3e74bf(_0x44acb6-_0x397f74._0x332ff7,_0x44acb6-_0x397f74._0x54fd58,_0x4eb3ad,_0x23dc22-0x84);}function _0x4c9d8f(_0x286f50,_0x4f567d,_0x204864,_0x31440c){return _0x2f39af(_0x4f567d,_0x204864- -0x5a1,_0x204864-_0x5ed326._0x149a3e,_0x31440c-0xfb);}let _0x4f47b0=0x0;return{..._0x1d040c,'content':_0x1d040c[_0x4c9d8f(-_0x2ca6e5._0x1aa303,-0x1f1,-_0x2ca6e5._0x44d1cc,-0x242)][_0x4c9d8f(-_0x2ca6e5._0x55a34f,-_0x2ca6e5._0xa4d605,-0x216,-_0x2ca6e5._0x5d1ed2)](_0x4a3fe7=>{if(_0x4a3fe7[_0x394b76(_0x314d4e._0x5043b8,_0x314d4e._0x1122cb,_0x314d4e._0x440762,0x3a2)]!=='tool_use')return _0x4a3fe7;const _0x2460b4=_0x1585a7[_0x4f47b0];_0x4f47b0+=0x1;function _0x394b76(_0x50aa8e,_0x319d8a,_0x305093,_0x53c937){return _0x53fa2f(_0x305093-_0x3042ae._0x1ce0e5,_0x319d8a,_0x305093-0x1e1,_0x53c937-_0x3042ae._0x229209);}return structuredClone(_0x2460b4);})};}function createAssistantMessageId(_0x286a1c,_0xb862da){return _0x286a1c+':assistant:'+_0xb862da;}function _0x5624(){const _0x277085=['C3vIywDLBNrszxbVCNq','A2LUza','yMvMB3jLtw9KzwXszxf1zxn0','CMvWB3j0zwrdB3n0','y29TCgXLDgvK','AxntEw1IB2XPy0XPBMS','u2vZC2LVBIbKAxjLy3rVCNKGAxmGysbZEw1SAw5RigfMDgvYignHBM9UAwnHBgL6yxrPB24','sw52ywXPzca','qxj0AwzHy3qGzgLYzwn0B3j5ihDHCYbZDwjZDgL0DxrLza','DhvYBLvZywDL','C2v0u3LZDgvTuhjVBxb0','AxngAw5PDgu','Dg90ywXpDxrWDxruB2TLBNm','Aw5WDxrty2HLBwe','CMvXDwLYzwq','AxneAxjLy3rVCNK','Dg9VBenHBgXdB3vUDa','zxHPDenVzgu','ru5pru5u','Dg9VBf9JywXS','BwvZC2fNzxm','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','ndvoENHSuKy','DhLWzq','yxnRvxnLCG','DgvZDa','nty2otbntwLLrfy','DxrMoa','zw51Bq','DxnLCL9TzxnZywDL','DhjHBNnPzw50sw5WDxq','CMvHC29UAw5Nvg9Rzw5Z','DxbKyxrLzef0','A2v5CW','DgvYBwLUywW','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','B2jZzxj2zxi','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','yMvMB3jLqxnZAxn0yw50qxbWzw5K','ChjVz3jHBs1YzxnVDxjJzs1SAw1PDa','C3rHCNrLzef0','DhvYBKLUzgv4','AxrLBuLK','zMLUywXFBwvZC2fNzq','mJyXnZCWuvjtwgvo','C3rLzxjLzef0','yxnZAxn0yw50x21LC3nHz2u','y2HHCKnVzgvbDa','y2fWDhvYzuvYCM9Yq29Kzq','C3LZDgvTuhjVBxb0','yxnZAxn0yw50x2nODw5R','yxnZAwDU','Bw9KzwXdywXSCW','C2vUza','oIbLEhbLy3rLzcbZDhjPBMC','zw50CMLLCW','zgv2','Bw9KzwXdywXSq291BNq','y2f0y2G','zMfPBa','CMvQzwn0','t19xuK9otfK','zxH0zw5ZAw9UCW','Bw9KzwXjzgvUDgL0Eq','Dg9VBf91C2vFzgvSDge','ywz0zxjnB2rLBfjLC3bVBNnL','DMfSDwu','vg9VBcbYDw50Aw1Ligv2zw50ihb1yMXPy2f0Aw9UigzHAwXLza','ChjVz3jHBs1PBNrLCM1LzgLHDgu','Dg9VBf9JB21WBgv0zwq','zgvZy3jPChrPB24','zxzLCNK','ywrK','qxj0AwzHy3qGC3rHDhvZigv4y2vLzhmGBwv0ywrHDgeGyM91BMq','yNL0zxnxCML0DgvU','Dg90ywXszwfZB25PBMDuB2TLBNm','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','Dg9VBf91C2vFBwvZC2fNzq','mZa0ndGYuvPODeLr','Dg9VBfj1BNrPBwu','l2jHC2GV','nte4mZC2EgzvzK1u','CMvTB3zLrxzLBNrmAxn0zw5LCG','zhjHAw5qzxjZAxn0zw5Jzq','ywz0zxjnzxnZywDLqxbWzw5K','oIb1BMv4CgvJDgvKigzPzwXKici','yMvNAw5qCM9NCMfTvhjHy2u','DhvYBKnVBxbSzxrLzef0','C29YDa','Dhj1BMnHDgvK','B3DUzxiUChjVzMLSzq','C2v0','Dg9VBe5HBwu','Aw5WDxrezwX0yq','Bwv0ywrHDge','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','B25vC2vYtwvZC2fNzq','Dg9VBf9ZDgfYDgvK','BwfW','yw1VDw50vxnKvgLJA3m','yMfZAa','ywrTAxq','CMvZDwX0','Dg9VBenHBgXjza','t19fwenm','y29VCMrPBMf0B3i','CMvHC29UAw5Nx21LC3nHz2u','ugfYzw50ihrVB2WGzxHLy3v0Aw9UihnLDhrSzwq','B25uB29Sq2fSBa','B3jKzxi','Dg9VBf91C2u','DgHPBMTPBMC','y29UDgvUDf9KzwX0yq','DMfSDwvZ','DgHLBG','CNvUBMLUzW','AxnuzxjTAw5HBfn0yxrLq29TBwL0DgvK','Bw9KzwXFCMvZCg9UC2u','Dg90ywXdB3n0vxnKvgLJA3m','C3rYDwn0DxjLza','zxjYB3jdB2rL','Dg9tDhjPBMC','CMvHza','zhjHAw5tDgvLCMLUzW','Aw5JBhvKzxm','qxj0AwzHy3qGCgfYzw50igLZig5VDcbHigrPCMvJDg9YEq','uhjVz3jHBq','yxnZAxn0yw50','C2vXDwvUy2u','Dg9VBenHBgXqyxrO','zgLYBMfTzq','Dg9VBfjLC3vSDhm','y2fWDhvYAw5N','Bwv0CMLJCW','y2f1C2u','B3jPz2LU','t19duKvbva','Aw50zxjUywXmAwzLy3LJBgu','BwLZC2LUz0HPC3rVCMLJywXnB2rLBenHBgXdB3vUDa','z2v0','oIbLEhbLy3rLzcbVyMPLy3q','Aw50zxjYDxb0zwq','mtfkwLjYsxu','tw9KzwWGC3rYzwfTigvUzgvKihDPDgHVDxqGysbMAw5HBcbYzxnWB25Zzq','AxntywzLsw50zwDLCG','ywz0zxjuB29SuMvZDwX0','y2H1BMTZ','mJa1vePmwwrP','B3v0Chv0lMXVzW','CMfUzg9T','B3v0Chv0vg9Rzw5Z','zxHLy3v0zq','yMfZzw5HBwu','CNvUswq','yNL0zxnszxrHAw5Lza','ru5pverjuG','vg9VBfj1BNrPBwvjBMzYyxn0CNvJDhvYzuvYCM9Y','CMvHBhbHDgG','yxj0AwzHy3rjza','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','CNvUt2jZzxj2zxjZ','C2HLBgXjza','lNn0yxr1CY4','iIbPCYbHBhjLywr5igvUywjSzwq','CNvUvhjHBNnMB3jTzxjZ','nJuZntyWAMzvC29k','y3vTDwXHDgL2zvvZywDL','ywrKrxzLBNrmAxn0zw5LCG','AgLZDg9YAwnHBe1LDhjPy3ndB21WBgv0zq','BwLZC2LUz01VzgvSq2fSBenVDw50','ChjPy2LUz1bYB3zPzgvYswq','C3rYzwfT','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','Bw9KzwXFCMvXDwvZDa','oIbLEhbLy3rLzcbIB29SzwfU','y2XVC2u','yxjYyxK','Dw5RBM93BL90B29S','tufyx1zbtfvf','y29Kzq','yNL0zuXLBMD0Aa','C3rYAw5N','CMvXDwvZDgvKtMfTzq','CMvWB3j0zwrdB3n0q2fSBenVDw50','oIbLEhbLy3rLzcbUDw1Izxi','CMvNAxn0zxi','y2HHDe1VzgvS','yxnZAxn0yw50twvZC2fNzuLK','BwvZC2fNzq','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','zgvZDgLUyxrPB24','zMLSDgvY','C2vZC2LVBKLK','ywDLBNq','CMvJB3jKrxzLBNq','y29UDgvUDeLUzgv4','qxj0AwzHy3qGCgf0AcbLEgnLzwrZihrOzsbWyxrOigjVDw5K','BwTKAxi','ywXS','zMLUAxnOzwrbDa','D29YA3nWywnL','A2LSBgvK','B3v0Chv0sw5KzxG','CgvYBwLZC2LVBKnSyxnZ','C2v0u2vZC2LVBKLK','yw55t2y','zgvWCW','DhvYBLn0yxj0zwrbDa','DhjHBNnJCMLWDfzPC2LIAwXPDhK','qxj0AwzHy3qGzMLSzsbPCYbHihn5BwXPBMS','ChjVDMLKzxjtDgf0zq','AxngAwXL','BgLZDfrVB2Xty2HLBwfZ','Bwv0yq','yMvMB3jLrMLUywXpDxrWDxq','AxnjBNrLz2vY','t19ot0zpteXpvW','zMLUywXnzxnZywDL','C2L6zq','qMfZAa','BNvTyMvY','zw5HyMXLza','Bwf4vg9Rzw5Z','CMvXDwvZDenVDw50','mJG4nMPvCw14DG','DhvYBKLK','tMvZDgvKihrVB2WGy2fSBcbZzxf1zw5Jzsa','B2jQzwn0','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','C2vZC2LVBKrPCG','sw52ywXPzcbHCNrPzMfJDcbMAwXL','Dg9VBhm','AgfZ','ywn0Aw9U','B3bLBG','tMvZDgvKihrVB2WGy2fSBcbHBMqGzgvMAw5PDgLVBIbUyw1LCYbTDxn0ig1HDgnOihrOzsbYzxf1zxn0zwqGBMfTzq','C2vZC2LVBI0','qMfZAcbJyw5JzwXSyxrPB24GCMvZDwX0ignSzwfUDxaGzMfPBgvK','zxH0zxjUywXvC2fNzq','Dg90ywXnB2rLBfrPBwvnCW','BwLU','y2HTB2q','iIbMB3iG','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','BM93','y2fWDhvYzvn0yxrL','tMvZDgvKihrLCM1PBMfSigXPzMvJEwnSzsbJBgvHBNvWigzHAwXLza','C2vUzgvYqwDLBNrjza','mMnLvhr4ta','Dg9VBf9YzwPLy3rLza','y2fSBeLK','mte4ndrvB0XHv0y','z2v0vg9VBhm','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','B3DUzxi','zNjVBq','Dg9VBhncEu5HBwu','zg9Uzq','Dg9VBf91C2vFy2H1BMS','CMvZB2X2zq','B3v0Chv0ugf0Aa','ruXpt1a','D3jPDgu','ywjHBMrVBMvK','BgvUz3rO','zxHLy3v0zunHBgXZ','yMvMB3jLvg9VBev4zwn1DgLVBG','sw52ywXPzcbLEhrLCM5HBcbTB2rLBcb1C2fNzsb0B3rHBhm','sw52ywXPzcb0B29SigLUChv0igf0ia','CgfKu3rHCNq','Aw5V','Dg90ywXjBNb1DfrVA2vUCW','y2fWywjPBgL0AwvZ','C3rHDhvZugf0Aa','C3vIBwLZC2LVBG','qxj0AwzHy3qGB3v0Chv0ihDHCYbZDwjZDgL0DxrLza','CMfJzq','AgfZt3DU','CMvHC29UAw5Nx2nODw5R','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','ruLovKfm','CMvHC29U','vgvYBwLUywWGyxj0AwzHy3qGC3rHDhvZihjLCxvPCMvZigzSDxnO','DhjHy2u','Dg9VBa','zxn0Aw1HDgvKq29ZDa','oNjLyxnVBMLUzW','ChjVzMLSzq','zgvSDge','C3rHCNrPBMC','y29UDgv4DfDPBMrVD0XPBwL0','C3rHz2u','DhvYBI0','Bw9KzwXuAw1Ltxm','CMvNAxn0CNK','C3rHDa','vg9VBev4zwn1DgLVBKvYCM9Y','DxnHz2u','C3vTBwfYEuLUzgv4','z2v0q29UDgv4DfDPBMrVD0XPBwL0','zMXVB3i','C3rHDgu','BMv4Da','zgvSzxrL','BMXPBMS','ruvysvnu','BMfTzq','sw52ywXPzcbIyxnOigfYDgLMywn0ihn0yxr1CW','Dg9VBenHBgW','Bw9KzwW','oIbLEhbLy3rLzcbHCNjHEq','zw5K','AM9PBG','C29Tzq','ChjVCgvYDgLLCW','Dgv4Da','zM9YrwfJAa','B3v0Chv0rM9YBwf0','B3DUzxiUC2vZC2LVBKLK','zgvMyxvSDe1LC3nHz2u','CMvJB3jKvg9VBfjLC3vSDa','ywDLBNrjza','DMvYC2LVBG','zxHPDgvK','ywjVCNq','y29TCgXLDgu','ywX3yxLZlwnVBMzPCM0','zxHLy3v0Aw9Uu2nVCgu','Aw5WDxq','AxnbyNnVBhv0zq','CNvU','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','C3rHDhvZ','y29TCgXLDgvZuMvXDwvZDa','ywjVCNrLza','BgLZDa','CMvHC29UAw5Nu3rHCNrLzef0','y29TBwL0vgvYBwLUywXtDgf0zq','Bwf4qNL0zxm','ChjVDMLKzxi','C2LNBMfS','zMLUza','zNjLzxPL','AxrLBxm','x3n5C3rLBvbYB21WDa','ChvZAa','Dg90ywXuB2TLBNm','C3rHDhvZlMPZB24','CMvHC29UAw5Nq29TCgXLDgvKqxq','yM9VBgvHBG','B3v0Chv0','DMfSAwrHDgLVBG','Bhn0yxq','zxjYB3i','CMvUyw1L','CMvWzwf0','Dg9VBf9Yzxn1Bhq','Aw5KzxG','DhvYBL9JB21WBgv0zq','DgvYBwLUyxrPBMC','y29UDgvUDa','igLZig91DcbVzIbVCMrLCJSGzxHWzwn0zwqG','ywnXDwLYzq','ru5btuvut09mt05h','qMfZAcbHCNrPzMfJDcbZDgf0DxmGzxHJzwvKCYbTzxrHzgf0ysbIB3vUza','nJnyr0jjze0','mtG2mJruyxz5q3G','CMvZCg9UC2u','tMvZDgvKigjLzM9YzvrVB2XfEgvJDxrPB24GzxH0zw5ZAw9UCYbTDxn0ihbYzxnLCNzLihrOzsbJywXSieLeigfUzcbYzxf1zxn0zwqGBMfTzq','ruLp','AxnbCNjHEq','BgfZDfjLC3bVBNnL','CMvHC29UAw5NtwvZC2fNzuLK','CMvXDwvZDa','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','ChjVz3jHBs10Aw1LB3v0','C3rYzwfTAw5N','C2XPy2u','tw9KzwWGDxnHz2uGDg90ywWGB3zLCMzSB3C','C3rYAw5NAwz5','B25fDMvUDa'];_0x5624=function(){return _0x277085;};return _0x5624();}function createReasoningMessageId(_0x1cda83){const _0x5bb6ad={_0x2e2777:0x3fd,_0x2468ed:0x4f6,_0x3889df:0x492};function _0x2e4071(_0x3fc839,_0xf3bdf2,_0x2574d5,_0x30555a){return _0x2f39af(_0xf3bdf2,_0x30555a-0x1c8,_0x2574d5-0xa2,_0x30555a-0xd0);}return _0x1cda83+_0x2e4071(0x42c,_0x5bb6ad._0x2e2777,_0x5bb6ad._0x2468ed,_0x5bb6ad._0x3889df);}function withMessageId(_0x46c121,_0x502a8e){if(_0x46c121['id']===_0x502a8e)return _0x46c121;return{..._0x46c121,'id':_0x502a8e};}function _0x2f39af(_0x1b8fcf,_0x2d038b,_0x26c9db,_0x5a6f03){const _0x29a0d2={_0x576da2:0x1ef};return _0xd98e(_0x2d038b-_0x29a0d2._0x576da2,_0x1b8fcf);}function createAssistantChunkEvent(_0x38d4fc,_0x541ba4){const _0x574279={_0x32df93:0x349,_0x28bf3d:0x342,_0x59fc22:0x110,_0x4370c2:0xaf,_0x2795d8:0xcd,_0x620c51:0x184,_0x400b00:0x1ab,_0xc0fac4:0x31a,_0x732fe:0x2d0,_0x49cec3:0x296,_0x2e296c:0x177,_0x3a42c2:0x11e,_0x2f993f:0x9b,_0x2d8dc2:0x19b},_0xe9f5ae={_0x51556e:0x1d7,_0x1333b8:0xfa,_0x4bebab:0xd7},_0x4be9f3={_0x2fd62a:0x61,_0x4e7d0e:0x38d};if(_0x38d4fc[_0x909080(_0x574279._0x32df93,0x2cf,_0x574279._0x28bf3d,0x353)]!=='content_delta')return void 0x0;if(_0x38d4fc[_0x18ed69(_0x574279._0x59fc22,0x9a,_0x574279._0x4370c2,_0x574279._0x2795d8)]===void 0x0)return void 0x0;function _0x909080(_0x238e27,_0x9e89a6,_0x3e3cb7,_0x2c8df7){return _0x3e74bf(_0x238e27-_0x4be9f3._0x2fd62a,_0x238e27-_0x4be9f3._0x4e7d0e,_0x9e89a6,_0x2c8df7-0x171);}function _0x18ed69(_0x597844,_0x23bb9d,_0x2e61f2,_0x5c0cc7){return _0x2f39af(_0x2e61f2,_0x597844- -_0xe9f5ae._0x51556e,_0x2e61f2-_0xe9f5ae._0x1333b8,_0x5c0cc7-_0xe9f5ae._0x4bebab);}return{'type':_0x18ed69(_0x574279._0x620c51,0xfb,_0x574279._0x400b00,0x1a6),'index':_0x38d4fc[_0x909080(_0x574279._0xc0fac4,_0x574279._0x732fe,0x3a6,_0x574279._0x49cec3)]??0x0,'messageId':_0x541ba4,'chunk':{'type':_0x18ed69(0x1c2,_0x574279._0x2e296c,0x18b,_0x574279._0x3a42c2),'index':_0x38d4fc['index']??0x0,'text':_0x38d4fc[_0x18ed69(0x110,_0x574279._0x2f993f,_0x574279._0x2d8dc2,0xa8)]}};}function createToolUseChunkEvent(_0x22df65,_0x560dd8){const _0x38c2b2={_0x111dd5:0x54,_0x255177:0x3d,_0x578692:0x33,_0x238360:0x87,_0x4ddb78:0x12b,_0x252547:0xea,_0x3d5a48:0x13e,_0x5c3874:0xdf,_0x29065d:0xf3,_0x1a4040:0x16,_0x4e0f14:0x49,_0x2f6df1:0x34,_0x36bf7f:0x21,_0x1e397d:0x16c,_0x32c562:0x112,_0x1138d9:0x28},_0x40283f={_0x51a918:0x3f0,_0x4cb65a:0x149};function _0x8e9d12(_0x31e126,_0x502c47,_0x110a7e,_0x17d646){return _0x3e74bf(_0x31e126-0xb,_0x502c47-0x72,_0x31e126,_0x17d646-0x53);}function _0x1b182a(_0x4dbaad,_0x2d9edc,_0x42e834,_0xfda534){return _0x2f39af(_0xfda534,_0x42e834- -_0x40283f._0x51a918,_0x42e834-_0x40283f._0x4cb65a,_0xfda534-0x162);}if(_0x22df65[_0x8e9d12(-_0x38c2b2._0x111dd5,0x2e,0xc9,-_0x38c2b2._0x255177)]!==_0x1b182a(_0x38c2b2._0x578692,-0x4d,-_0x38c2b2._0x238360,-_0x38c2b2._0x4ddb78))return void 0x0;return{'type':_0x8e9d12(-_0x38c2b2._0x252547,-0x64,-0x51,-0x108),'index':_0x22df65[_0x1b182a(-_0x38c2b2._0x3d5a48,-0x16b,-_0x38c2b2._0x5c3874,-_0x38c2b2._0x29065d)]??0x0,'messageId':_0x560dd8,'chunk':{'type':_0x1b182a(-0x119,-0x140,-_0x38c2b2._0x238360,-0x106),'id':_0x22df65['id']??'','index':_0x22df65[_0x8e9d12(_0x38c2b2._0x1a4040,-0x1,-0x26,_0x38c2b2._0x4e0f14)]??0x0,..._0x22df65[_0x8e9d12(0x2,-_0x38c2b2._0x2f6df1,0x2a,_0x38c2b2._0x36bf7f)]!==void 0x0?{'name':_0x22df65[_0x1b182a(-0xc7,-_0x38c2b2._0x1e397d,-_0x38c2b2._0x32c562,-0x182)]}:{},..._0x22df65['inputDelta']!==void 0x0?{'inputDelta':_0x22df65[_0x8e9d12(-_0x38c2b2._0x1138d9,0x74,-0x20,-0x2f)]}:{}}};}function createReasoningChunkEvent(_0x3c4386,_0x37c127){const _0x4f2b4e={_0xc00795:0x322,_0x36da4b:0x37a,_0x2fac1d:0x2c6,_0x317231:0x294,_0x35245c:0x322,_0x86735:0x3ca,_0x45ded5:0x32b,_0x1c76b4:0x403,_0x32b068:0x4cb,_0x3bfe99:0x417,_0x29d87b:0x404,_0x47821d:0x41b,_0x1b2a9c:0x3ac,_0x530a25:0x3f7,_0x1fe659:0x338,_0x58ab38:0x321,_0x34e47b:0x38a,_0x53f5a8:0x2ac,_0xc88cd8:0x427,_0x9c3380:0x3ad,_0x19c817:0x44b,_0x50954c:0x3d6,_0x23b124:0x3b5,_0x4d93f7:0x355,_0x54812:0x3d0,_0x1627bf:0x537,_0x4dc708:0x32b,_0xae248d:0x38d,_0x571d27:0x407,_0x50898d:0x301,_0x24bac7:0x391,_0x3e8b79:0x3dc,_0x3e1c29:0x445,_0xf395f1:0x318,_0x619352:0x348,_0x41bee3:0x462,_0x41266b:0x3e2,_0x54c63a:0x47c,_0x8c42e1:0x3d2,_0x298eb6:0x466},_0x448ded={_0x286631:0x75,_0x45263a:0x2d},_0x1d9b35={_0x3df29f:0x48a};function _0x12d922(_0x39850d,_0xc8777e,_0x2d1a90,_0x36d77a){return _0x3e74bf(_0x39850d-0x112,_0x2d1a90-_0x1d9b35._0x3df29f,_0x39850d,_0x36d77a-0x36);}function _0x80b76a(_0x3efe3a,_0x28022c,_0xc648f,_0x4fbbd5){return _0x2f39af(_0x4fbbd5,_0x3efe3a-0x5f,_0xc648f-_0x448ded._0x286631,_0x4fbbd5-_0x448ded._0x45263a);}switch(_0x3c4386['type']){case _0x80b76a(_0x4f2b4e._0xc00795,0x27e,0x2f1,_0x4f2b4e._0x36da4b):return{'type':_0x80b76a(0x321,_0x4f2b4e._0x2fac1d,_0x4f2b4e._0x317231,0x2bd),'index':_0x3c4386['index'],'messageId':_0x37c127,'chunk':{'type':_0x80b76a(_0x4f2b4e._0x35245c,0x2b7,_0x4f2b4e._0x86735,_0x4f2b4e._0x45ded5),'index':_0x3c4386[_0x12d922(_0x4f2b4e._0x1c76b4,_0x4f2b4e._0x32b068,_0x4f2b4e._0x3bfe99,0x3c6)]??0x0,'thinking':_0x3c4386[_0x80b76a(0x3f7,_0x4f2b4e._0x29d87b,_0x4f2b4e._0x47821d,_0x4f2b4e._0x1b2a9c)]??''},'text':_0x3c4386[_0x80b76a(_0x4f2b4e._0x530a25,_0x4f2b4e._0x1fe659,0x35c,0x3e7)]??''};case _0x80b76a(0x427,0x49a,0x4d2,0x487):return{'type':_0x80b76a(_0x4f2b4e._0x58ab38,_0x4f2b4e._0x34e47b,0x35e,_0x4f2b4e._0x53f5a8),'index':_0x3c4386['contentIndex'],'messageId':_0x37c127,'chunk':{'type':_0x80b76a(_0x4f2b4e._0xc88cd8,0x4dc,0x447,_0x4f2b4e._0x9c3380),'contentIndex':_0x3c4386[_0x80b76a(_0x4f2b4e._0x19c817,_0x4f2b4e._0x50954c,0x3b0,0x391)]??0x0,'delta':_0x3c4386[_0x12d922(0x3d7,_0x4f2b4e._0x23b124,0x3d2,_0x4f2b4e._0x4d93f7)]??'','itemId':_0x3c4386[_0x80b76a(0x3b2,0x388,_0x4f2b4e._0x54812,0x40a)]??'','outputIndex':_0x3c4386[_0x12d922(_0x4f2b4e._0x1627bf,0x568,0x4f9,0x580)]??0x0},'text':_0x3c4386[_0x80b76a(_0x4f2b4e._0x4dc708,0x297,_0x4f2b4e._0xae248d,0x2ed)]??''};case _0x80b76a(0x39d,_0x4f2b4e._0x571d27,_0x4f2b4e._0x50898d,_0x4f2b4e._0x24bac7):return{'type':'reasoning_chunk','index':_0x3c4386[_0x12d922(0x468,0x32b,_0x4f2b4e._0x3e8b79,_0x4f2b4e._0x3e1c29)],'messageId':_0x37c127,'chunk':{'type':'openai_reasoning_summary_delta','delta':_0x3c4386[_0x80b76a(_0x4f2b4e._0x4dc708,_0x4f2b4e._0xf395f1,_0x4f2b4e._0x619352,0x318)]??'','itemId':_0x3c4386['itemId']??'','outputIndex':_0x3c4386[_0x80b76a(0x452,0x43c,_0x4f2b4e._0x41bee3,0x3b4)]??0x0,'summaryIndex':_0x3c4386['summaryIndex']??0x0},'text':_0x3c4386[_0x12d922(_0x4f2b4e._0x41266b,_0x4f2b4e._0x54c63a,_0x4f2b4e._0x8c42e1,_0x4f2b4e._0x298eb6)]??''};default:return void 0x0;}}function cloneToolResultChunkForPublication2(_0x23b122){return structuredClone(_0x23b122);}function cloneToolResultForPublication2(_0x53c359){const _0x29bb5d={_0x33865c:0x32d,_0x49f6ee:0x308,_0x4149b4:0x235},_0x20af08={_0x5cb0b5:0xeb,_0x120635:0x145},_0x1d4a19={_0x5e6655:0x1f},_0x324673=_0x53c359[_0x4e116f(_0x29bb5d._0x33865c,_0x29bb5d._0x49f6ee,0x2f1,0x2f4)],_0x549f0e=_0x53c359[_0x4e116f(0x280,0x2a4,0x253,_0x29bb5d._0x4149b4)];function _0x4e116f(_0x1c4c30,_0x5ad415,_0x384d28,_0x1d0b3e){return _0x2f39af(_0x5ad415,_0x384d28- -0x132,_0x384d28-_0x1d4a19._0x5e6655,_0x1d0b3e-0x1bb);}const {chunks:_0x514a89,..._0x189499}=_0x53c359;function _0x37d54d(_0x29702d,_0x721823,_0x399636,_0x10a640){return _0x3e74bf(_0x29702d-0x163,_0x721823- -_0x20af08._0x5cb0b5,_0x10a640,_0x10a640-_0x20af08._0x120635);}return{...structuredClone(_0x189499),'callId':_0x324673,'toolName':_0x549f0e,'chunks':_0x514a89['map'](cloneToolResultChunkForPublication2)};}function isAbortedToolResult(_0x4927eb){const _0x46aa8c={_0x5d8cbf:0x12c,_0x177f9a:0x26f,_0x26b7d3:0x16d,_0x6c3c2e:0x1bf,_0xc40471:0x330,_0x3a6ca5:0x211,_0x558f59:0x180,_0xa40bd:0x203,_0x20d709:0x1d4},_0x4cc10c={_0x298ead:0x127};function _0x9df6d0(_0x3ca5ce,_0x416751,_0x2bbbfe,_0x112d89){return _0x2f39af(_0x416751,_0x3ca5ce- -_0x4cc10c._0x298ead,_0x2bbbfe-0x51,_0x112d89-0x19c);}function _0x4fee8d(_0x1046d3,_0x412649,_0x49f95f,_0x51393f){return _0x3e74bf(_0x1046d3-0x119,_0x1046d3- -0xf6,_0x51393f,_0x51393f-0x64);}return _0x4927eb[_0x9df6d0(0x1d1,0x1d6,_0x46aa8c._0x5d8cbf,_0x46aa8c._0x177f9a)]===_0x4fee8d(-_0x46aa8c._0x26b7d3,-0x1a0,-_0x46aa8c._0x6c3c2e,-0xcd)&&_0x4927eb[_0x9df6d0(0x279,_0x46aa8c._0xc40471,_0x46aa8c._0x3a6ca5,0x1bb)][_0x4fee8d(-_0x46aa8c._0x558f59,-_0x46aa8c._0xa40bd,-0x153,-_0x46aa8c._0x20d709)]===!![];}async function executeModelRequest(_0x3439f9,_0x32ad99,_0x17b3ef,_0x14939d,_0x3537f2,_0x3f56c8){const _0x400daf={_0x42d1af:0x87,_0xce61d1:0x0,_0x1b63dc:0xd3,_0x17789b:0xc4,_0xad2b5b:0x44,_0x3402ac:0x1,_0x3fe4a2:0x3a,_0xfc0e3a:0xd5,_0x3938fd:0x76,_0x4d7d44:0x79,_0x241291:0xb1,_0xd2c3a7:0x41,_0x43d9fb:0x80,_0x24b40c:0xfb,_0x110eed:0x150,_0x4aac31:0x108,_0x22dfe1:0xfb,_0x249be7:0x159,_0x56d121:0x8c,_0x3f182d:0xff,_0x109d6c:0x119,_0x5909a9:0xb8,_0x56de44:0xa2,_0x303c73:0x9,_0x476702:0x1a,_0x69cc1f:0x8e,_0x332359:0x49,_0x50a730:0x95,_0x406c3e:0x25,_0x4db859:0xf3,_0x5cf5f6:0x75,_0x1302d2:0xad,_0x3e51b4:0x1c,_0x6f1694:0x5d,_0x1e6c29:0xbe,_0x318ce4:0xe5,_0x86bdc6:0x11c,_0x34f22d:0x37,_0x3ceac1:0x14b,_0xa9732d:0x3,_0x217895:0x5a,_0xe2103c:0x40,_0x24e64a:0x74,_0x69620e:0xad,_0x1031b2:0x2c,_0x25e5df:0x97,_0x49ee94:0x2a,_0x37d270:0x72,_0x41d6c4:0xce,_0x1a6355:0x84,_0x3e7e72:0x193,_0x3667c7:0x15,_0x4e168b:0x49,_0xf4a933:0x175,_0x2aa58f:0x158,_0x16237c:0xeb,_0x23f1e7:0x64,_0x332e16:0x133,_0x191357:0xb9,_0x253bd8:0x47,_0x5a4381:0xd8,_0x203171:0xc0,_0x42fad5:0x127,_0x36c97e:0x1a8,_0x1c11a5:0x172,_0x5c3351:0xc2,_0x451554:0x5f,_0x3b7c18:0xaa,_0x53494e:0xb5,_0x48b5e7:0x1bb,_0x94c3df:0x9,_0xbce392:0xa1,_0x362219:0x28,_0x46fd98:0x1d,_0x14c02d:0xc4,_0x22b886:0x11d,_0x4eb553:0xe1,_0x1a7a98:0xe5,_0x41e2d1:0x17d,_0x43543b:0x3b,_0x2a53b6:0x8d,_0x122b17:0x34},_0x531ea9={_0x28e8b7:0x53,_0x2d73f4:0x170},_0x2d2ee9={_0x4c638b:0x85,_0x32da61:0x120};throwIfAborted(_0x32ad99[_0x41d25b(-_0x400daf._0x42d1af,_0x400daf._0xce61d1,0x1,0xa3)]);function _0x41d25b(_0x37d2e5,_0x34fceb,_0x2ce5eb,_0x377470){return _0x3e74bf(_0x37d2e5-0xe2,_0x2ce5eb-_0x2d2ee9._0x4c638b,_0x34fceb,_0x377470-_0x2d2ee9._0x32da61);}if(!_0x32ad99['streaming']||!_0x17b3ef['stream'])return await _0x17b3ef[_0x5a6f87(-_0x400daf._0x1b63dc,-0xd8,-_0x400daf._0x17789b,-0x87)](_0x3439f9,{'signal':_0x32ad99[_0x41d25b(-_0x400daf._0xad2b5b,0x9a,_0x400daf._0x3402ac,_0x400daf._0x3fe4a2)]});let _0x48427e;for await(const _0x461266 of _0x17b3ef[_0x41d25b(0x17d,0x1c,_0x400daf._0xfc0e3a,_0x400daf._0x3938fd)](_0x3439f9,{'signal':_0x32ad99[_0x41d25b(0xa7,_0x400daf._0x4d7d44,0x1,_0x400daf._0x241291)]})){throwIfAborted(_0x32ad99['signal']);if(_0x461266[_0x41d25b(-0x78,-0x2a,_0x400daf._0xd2c3a7,_0x400daf._0x43d9fb)]===_0x5a6f87(-_0x400daf._0x24b40c,-_0x400daf._0x110eed,-_0x400daf._0x4aac31,-_0x400daf._0x22dfe1)){_0x3f56c8[_0x41d25b(_0x400daf._0x249be7,_0x400daf._0x56d121,_0x400daf._0x3f182d,0xa8)][_0x5a6f87(-0x27,-_0x400daf._0x109d6c,-0xb9,-0xec)]!==void 0x0&&_0x3f56c8['meta'][_0x41d25b(_0x400daf._0x5909a9,_0x400daf._0x56de44,_0x400daf._0x303c73,-_0x400daf._0x476702)]===void 0x0&&(_0x3f56c8[_0x5a6f87(0xc8,_0x400daf._0x69cc1f,_0x400daf._0x332359,-0x29)][_0x5a6f87(-_0x400daf._0x50a730,-_0x400daf._0x406c3e,-0xad,-_0x400daf._0x4db859)]=Date['now']());_0x48427e=_0x461266['response'];continue;}if(_0x461266[_0x5a6f87(-0xba,-0x6b,-_0x400daf._0x5cf5f6,0x22)]===_0x41d25b(_0x400daf._0x1302d2,0xa5,-0x8,_0x400daf._0x3e51b4)){await emitEvent2(_0x14939d[_0x5a6f87(-0xe0,0xa,-0x8d,-_0x400daf._0x6f1694)],{'type':_0x5a6f87(-0x8e,-0x16c,-_0x400daf._0x1e6c29,-0xa3),'assistantMessageId':_0x3f56c8[_0x41d25b(0x162,0x44,_0x400daf._0x318ce4,_0x400daf._0x86bdc6)],'reasoningMessageId':_0x3f56c8[_0x5a6f87(-_0x400daf._0x34f22d,-_0x400daf._0x3ceac1,-_0x400daf._0x50a730,-0x3b)]},_0x3537f2),delete _0x3f56c8['meta'][_0x41d25b(0x4c,-0x45,-_0x400daf._0xa9732d,-_0x400daf._0x217895)],delete _0x3f56c8[_0x5a6f87(-_0x400daf._0xe2103c,-0x20,0x49,-_0x400daf._0x24e64a)][_0x5a6f87(-0x54,-0x6a,-_0x400daf._0x69620e,-0xfe)];continue;}if(_0x461266['type']==='provider_retry'){await emitEvent2(_0x14939d[_0x5a6f87(-0x27,0x27,-0x8d,-_0x400daf._0x1031b2)],{..._0x461266,'assistantMessageId':_0x3f56c8[_0x41d25b(0xf4,0x16c,0xe5,0xbb)]},_0x3537f2);continue;}const _0x3df6fe=createReasoningChunkEvent(_0x461266,_0x3f56c8['reasoningMessageId']);if(_0x3df6fe&&_0x3df6fe[_0x41d25b(_0x400daf._0x25e5df,0xb3,0x41,_0x400daf._0x49ee94)]===_0x41d25b(-_0x400daf._0x37d270,0x29,-0x3d,0x3d)&&_0x3df6fe[_0x5a6f87(-0x7d,-0x182,-_0x400daf._0x41d6c4,-_0x400daf._0x1a6355)][_0x5a6f87(-0x18a,-_0x400daf._0x3e7e72,-0x101,-0xba)]>0x0){_0x3f56c8[_0x5a6f87(0xff,-_0x400daf._0x3667c7,_0x400daf._0x4e168b,0xb2)][_0x5a6f87(-_0x400daf._0xf4a933,-_0x400daf._0x2aa58f,-0xb9,-0x148)]===void 0x0&&(_0x3f56c8[_0x41d25b(0x14b,0x183,_0x400daf._0x3f182d,_0x400daf._0x16237c)][_0x5a6f87(-_0x400daf._0x23f1e7,-_0x400daf._0x332e16,-_0x400daf._0x191357,-0xc2)]=Date[_0x5a6f87(-_0x400daf._0x253bd8,_0x400daf._0x5a4381,0x68,_0x400daf._0x203171)]());await emitEvent2(_0x14939d['onEvent'],_0x3df6fe,_0x3537f2);continue;}const _0xd5b838=createAssistantChunkEvent(_0x461266,_0x3f56c8['assistantMessageId']);if(_0xd5b838){_0x3f56c8[_0x41d25b(_0x400daf._0x42fad5,_0x400daf._0x36c97e,_0x400daf._0x3f182d,_0x400daf._0x1c11a5)][_0x5a6f87(-_0x400daf._0x5c3351,-_0x400daf._0x451554,-0xb9,-_0x400daf._0x3b7c18)]!==void 0x0&&_0x3f56c8[_0x41d25b(_0x400daf._0x53494e,0x178,_0x400daf._0x3f182d,_0x400daf._0x48b5e7)][_0x41d25b(0x11,-0xaa,_0x400daf._0x94c3df,-0x24)]===void 0x0&&(_0x3f56c8[_0x41d25b(0x111,_0x400daf._0xbce392,_0x400daf._0x3f182d,0x74)][_0x41d25b(-_0x400daf._0x362219,0xb6,0x9,_0x400daf._0x46fd98)]=Date[_0x5a6f87(0x47,0x4a,0x68,_0x400daf._0x14c02d)]());await emitEvent2(_0x14939d['onEvent'],_0xd5b838,_0x3537f2);continue;}const _0x579621=createToolUseChunkEvent(_0x461266,_0x3f56c8[_0x41d25b(_0x400daf._0x22b886,_0x400daf._0x4eb553,_0x400daf._0x1a7a98,_0x400daf._0x41e2d1)]);_0x579621&&await emitEvent2(_0x14939d[_0x5a6f87(-0x23,-_0x400daf._0x43543b,-_0x400daf._0x2a53b6,-0x12)],_0x579621,_0x3537f2);}if(!_0x48427e)throw new Error(_0x5a6f87(-0x2d,0x66,_0x400daf._0xa9732d,_0x400daf._0x122b17));function _0x5a6f87(_0x4e21c3,_0x5dde38,_0x1e377c,_0x57b2ee){return _0x2f39af(_0x5dde38,_0x1e377c- -0x3b5,_0x1e377c-_0x531ea9._0x28e8b7,_0x57b2ee-_0x531ea9._0x2d73f4);}return _0x48427e;}function makeTurnGuards(_0x4d12fd,_0x6b0801,_0x21345c,_0x5a55c4,_0x52202e){return{async 'stage'(_0xfa88d9,_0x26ea6a){return throwIfAborted(_0x4d12fd),await runStage(_0x6b0801,_0xfa88d9,_0x26ea6a,_0x5a55c4);},async 'emit'(_0x16f0ab){throwIfAborted(_0x4d12fd),await emitEvent2(_0x21345c,_0x16f0ab,_0x52202e);},async 'stageUnchecked'(_0x2269e7,_0x59de4c){return await runStage(_0x6b0801,_0x2269e7,_0x59de4c,_0x5a55c4);},async 'emitUnchecked'(_0x401f4d){await emitEvent2(_0x21345c,_0x401f4d,_0x52202e);}};}async function runTurn(_0x2677f3,_0x264522){const _0x2e5764={_0x4ee578:0x33,_0x44cbea:0x24,_0x237d87:0x44,_0x3e6965:0xe7,_0x3f13b2:0x146,_0x5ee375:0x127,_0x359083:0x240,_0x33e1a4:0x23f,_0x12918f:0x107,_0x21c6bd:0x1c6,_0x5409ba:0x134,_0xa82195:0x157,_0x1131c8:0x1e4,_0x43c7a9:0x200,_0x5376f6:0x1ac,_0x55d746:0x1d,_0x4ac7d5:0x8a,_0x186e4c:0x14e,_0x22b06c:0x7b,_0x345ba9:0xb2,_0x30637c:0x11a,_0x248204:0x1a7,_0x2b7bd3:0x1c5,_0x2840ac:0xa7,_0x26a635:0x80,_0xbe75bf:0x14e,_0x44b9ab:0x1cc,_0x46a079:0x1fa,_0x3b2eac:0x196,_0x5946f8:0x1c9,_0x29d40a:0x1f9,_0x323348:0x1e5,_0x477996:0x16c,_0x5f5dc4:0x1d3,_0x2b22aa:0x169,_0x439541:0x136,_0x161da2:0xe0,_0x1edb09:0x18a,_0x1692e6:0x19d,_0x1011da:0x18b,_0x58fef6:0x85,_0x3e3201:0x128,_0x4da0d5:0x174,_0x58a3f1:0x17b,_0x122781:0x128,_0x334f2d:0x198,_0x10179c:0x78,_0x40e4df:0x203,_0x1d1091:0x2b0,_0x117d85:0x1db,_0x5f07f2:0x100,_0x95e4fe:0x5,_0x2fe17e:0xaf,_0x119611:0x53,_0x5da228:0x62,_0x29b720:0x1d,_0x322d5e:0x16d,_0x40a320:0xfa,_0x3edcdf:0x6,_0x47648d:0xc,_0x5b90de:0x54,_0x57d266:0x257,_0x564afd:0x244,_0x4ca9c7:0x28f,_0x7d0faa:0x24f,_0x48df97:0x91,_0x593d12:0x100,_0x40d644:0x1e5,_0x28c931:0xb5,_0x249462:0xba,_0x5134c8:0x10,_0x4b35ef:0x56,_0x1d0693:0x9f,_0x418e82:0x47,_0xceb6ef:0x6,_0x34e398:0xa,_0x2034a8:0xc0,_0x3243f0:0x23,_0x39180c:0x123,_0x2f8d37:0xf4,_0x56e032:0x268,_0x611a12:0x20c,_0x124853:0x155,_0x3238c6:0x7d,_0x436173:0x2c,_0x152978:0xbf,_0x5026a7:0x1a2,_0x555351:0x205,_0xce872:0xd2,_0x276f6d:0x108,_0x59738d:0x17f,_0x1c306a:0x12a,_0x2eed8e:0xdd,_0x1c867d:0xe,_0x545b27:0xf5,_0x44af03:0x9c,_0x5151b4:0x170,_0x214451:0x22c,_0x34bc70:0x22e,_0x1fe770:0x86,_0xd4b5af:0xc9,_0x637b6f:0x94,_0x15fcf0:0x1e9,_0x136efd:0x1ef,_0x546631:0x23a,_0x41923d:0x1ca,_0x2e7374:0x1ce,_0x4cd54d:0x23b,_0xd38fee:0x2e1,_0x1dd2c8:0x2f0,_0x38ad87:0x28b,_0x305d9d:0x217,_0x39e063:0x1b3,_0x1ba747:0x28c,_0xdc679a:0x346,_0x16725d:0x141,_0x5b4752:0xba,_0xe9d816:0x50,_0x24a4b0:0x25,_0x292855:0x1d5,_0x51fc97:0x1fd,_0x70987d:0x19f,_0x1d73b9:0x2e5,_0x126dd7:0x177,_0x7ace7:0x10b,_0x493bc0:0x14e,_0x1997f9:0xfe,_0x43dabe:0x115,_0x4bd84d:0xe1,_0x312b58:0x165,_0x1ed421:0xfa,_0x18fb9d:0x1c8,_0x4c84e3:0x258,_0x3c5cda:0x227,_0x3fdcbc:0x2c9,_0x354738:0x21d,_0x3e6933:0x4c,_0x429b73:0x63,_0x22c944:0x194,_0xeb64f6:0x1e3,_0x3e7537:0x1b0,_0xfd1efd:0x1ae,_0x53f80b:0x230,_0x39112f:0x1b8,_0x209e90:0x188,_0x596615:0x105,_0x2afa64:0x15c,_0x1053db:0x83,_0x2ecbad:0xd9,_0x1d9ca9:0xbe,_0x529201:0xfe,_0x3230de:0xf2},_0x4a7002={_0x298d7a:0x1ed,_0x3ed508:0x45e,_0x1e2176:0x446,_0xad7ddb:0x149,_0x561ccb:0x1a1,_0x2af9d7:0x1f8,_0x40d39f:0x3e7,_0x329dd9:0x457,_0x1809d4:0x1b3,_0x1f5cbd:0x240,_0x1823ce:0x4c3,_0x589e9d:0x356,_0x1efaf6:0x102},_0x539da5={_0x36181b:0x24,_0x2e58a1:0x47,_0x17d193:0x30a},_0xfdc6aa={_0x3a1304:0x408,_0x3dcd9f:0x470,_0x1aeb88:0x47e,_0x210500:0x52f,_0x4e4fb1:0x58f,_0x3edd97:0x4fe,_0x2dc466:0x3ae,_0x32672a:0x493,_0x33c2f6:0x4b7,_0x447a4a:0x42e,_0x5ce0ad:0x493,_0x5531fb:0x4d5,_0x338f29:0x469,_0x2d2cb0:0x496,_0x51ae24:0x4ef,_0x5ed246:0x496,_0x41819c:0x4df},_0xd0faff={_0x5450ce:0x36,_0x2e5905:0x52c},_0x1cf35b={_0x5d789a:0x14b,_0x1e6de1:0x178,_0x2c500d:0x49d},_0x24f4d9={_0x254cb6:0x11d},_0x2949d9={_0xdad194:0x36,_0x1d6692:0x11,_0x127b0e:0x30,_0x1d7e32:0x5d},_0x391f85={_0x110360:0x427,_0x386dac:0x1b9},_0x3f6e51=_0x264522[_0x12c08c(-0x8b,_0x2e5764._0x4ee578,_0x2e5764._0x44cbea,-_0x2e5764._0x237d87)],_0x270d05=_0x2677f3[_0x12c08c(-0x164,-_0x2e5764._0x3e6965,-_0x2e5764._0x3f13b2,-_0x2e5764._0x5ee375)]??new AbortController()[_0x11d335(-_0x2e5764._0x359083,-0x257,-_0x2e5764._0x33e1a4,-0x18d)],_0x32479e=normalizeExecutionScope(_0x264522[_0x12c08c(-0x12f,-_0x2e5764._0x12918f,-_0x2e5764._0x21c6bd,-_0x2e5764._0x5409ba)]),_0x27f311={'sessionId':_0x2677f3[_0x11d335(-_0x2e5764._0xa82195,-_0x2e5764._0x1131c8,-_0x2e5764._0x43c7a9,-_0x2e5764._0x5376f6)],'turnId':_0x2677f3[_0x12c08c(-0x8b,-0x35,0x85,-_0x2e5764._0x55d746)],'system':normalizeSystem(_0x2677f3['system']),'messages':(_0x2677f3[_0x12c08c(-_0x2e5764._0x4ac7d5,-_0x2e5764._0x186e4c,-0x5d,-0xea)]??[])[_0x12c08c(-_0x2e5764._0x22b06c,-0x5b,-_0x2e5764._0x345ba9,-0x9c)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x264522[_0x11d335(-0x132,-0x1b3,-_0x2e5764._0x30637c,-0x180)]==='function'?_0x264522[_0x11d335(-0x132,-0xb8,-0xfc,-_0x2e5764._0x248204)]():_0x264522[_0x11d335(-0x132,-0x88,-_0x2e5764._0x2b7bd3,-0xf9)]},_0x4c51b9=makeExtensionContext(_0x27f311,_0x32479e),_0x15bbf3={'sessionId':_0x27f311['sessionId'],'turnId':_0x27f311[_0x12c08c(-0xcd,-_0x2e5764._0x2840ac,-_0x2e5764._0x26a635,-_0x2e5764._0x55d746)],'state':_0x27f311,'executionScope':_0x32479e,'signal':_0x270d05,..._0x264522['askUser']?{'askUser':_0x264522[_0x11d335(-0x1ff,-0x1ac,-0x273,-_0x2e5764._0xbe75bf)]}:{}},{stage:_0x43e9a0,emit:_0x2a068f,stageUnchecked:_0x1665f1,emitUnchecked:_0x5baea3}=makeTurnGuards(_0x270d05,_0x264522['registry'],_0x264522[_0x11d335(-0x218,-0x2b3,-0x271,-_0x2e5764._0x44b9ab)],_0x4c51b9,_0x15bbf3);function _0x12c08c(_0x19d1ae,_0x4c315a,_0x572d2b,_0x5ed58e){return _0x2f39af(_0x4c315a,_0x5ed58e- -_0x391f85._0x110360,_0x572d2b-0xc4,_0x5ed58e-_0x391f85._0x386dac);}const _0x5429e7=async(_0x1f33f2,_0x1ee901)=>{const _0x4d7ff9={_0xc8b43b:0xdb,_0x3c4a0b:0x10},_0xa96c9b=_0x1ee901?{..._0x4c51b9,'turnMeta':_0x1ee901}:_0x4c51b9;function _0x1c9ef7(_0x16b9b1,_0x28299b,_0x1b6d84,_0x598862){return _0x11d335(_0x1b6d84-0x44,_0x28299b-0x19,_0x1b6d84-0x11b,_0x28299b);}function _0x585964(_0x5a3efe,_0x47c6a7,_0x1d4f85,_0x1b723e){return _0x12c08c(_0x5a3efe-_0x4d7ff9._0xc8b43b,_0x47c6a7,_0x1d4f85-0xa8,_0x1b723e-_0x4d7ff9._0x3c4a0b);}await _0x264522['registry'][_0x585964(-_0x2949d9._0xdad194,_0x2949d9._0x1d6692,_0x2949d9._0x127b0e,-0x4e)](_0x585964(-_0x2949d9._0x1d7e32,-0x4c,-0xe,-0x9a),structuredClone(_0x1f33f2),_0xa96c9b);};function _0x11d335(_0x15236c,_0x4b9c4d,_0x268c87,_0x2a612f){return _0x2f39af(_0x2a612f,_0x15236c- -0x540,_0x268c87-_0x24f4d9._0x254cb6,_0x2a612f-0x190);}const _0x17042f=_0x4f0acf=>{if(_0x4f0acf?.['origin']===_0x2a4c2c(0x463,_0xfdc6aa._0x3a1304,0x3eb,_0xfdc6aa._0x3dcd9f)){if(isAgentOnlyCoordinatorNotice(_0x4f0acf))return{'submissionOrigin':_0x2a4c2c(0x3f3,0x408,0x36e,_0xfdc6aa._0x1aeb88),'deliveryKind':_0x4f0acf['deliveryKind'],'transcriptVisibility':_0x4f0acf[_0x2d9320(_0xfdc6aa._0x210500,0x56c,_0xfdc6aa._0x4e4fb1,_0xfdc6aa._0x3edd97)]};return{'submissionOrigin':_0x2a4c2c(0x3b5,_0xfdc6aa._0x3a1304,_0xfdc6aa._0x2dc466,_0xfdc6aa._0x32672a),..._0x4f0acf['subagentReport']===void 0x0?{}:{'subagentReport':structuredClone(_0x4f0acf[_0x2d9320(_0xfdc6aa._0x33c2f6,0x391,0x41b,_0xfdc6aa._0x447a4a)])}};}function _0x2a4c2c(_0x920aa2,_0x4cabe4,_0x3871dd,_0x396866){return _0x12c08c(_0x920aa2-_0x1cf35b._0x5d789a,_0x920aa2,_0x3871dd-_0x1cf35b._0x1e6de1,_0x4cabe4-_0x1cf35b._0x2c500d);}if(_0x4f0acf?.[_0x2d9320(_0xfdc6aa._0x5ce0ad,0x516,_0xfdc6aa._0x5531fb,0x4b5)]===_0x2d9320(_0xfdc6aa._0x338f29,_0xfdc6aa._0x2d2cb0,0x54d,_0xfdc6aa._0x51ae24))return{'submissionOrigin':_0x2a4c2c(0x47f,0x460,0x3b8,0x4c9),'senderAgentId':_0x4f0acf[_0x2a4c2c(0x3da,_0xfdc6aa._0x5ed246,_0xfdc6aa._0x41819c,0x3ef)]};function _0x2d9320(_0x54e086,_0x504f07,_0xf3b75d,_0x1b50c6){return _0x12c08c(_0x54e086-_0xd0faff._0x5450ce,_0x504f07,_0xf3b75d-0xb7,_0x1b50c6-_0xd0faff._0x2e5905);}return void 0x0;},_0x599b4e=_0x5b6349=>_0x5b6349?.[_0x11d335(-0x190,-0x1c9,-0xed,-0x230)]==='agent'?{'senderAgentId':_0x5b6349[_0x11d335(-0x120,-0x114,-0xd1,-0xe5)]}:void 0x0,_0x587a04=_0x210131=>typeof _0x210131==='object'&&_0x210131!==null&&_0x11d335(-0x24c,-0x1a3,-0x1ce,-0x2b6)in _0x210131&&_0x12c08c(-0x159,-0x1ad,-0x174,-0x169)in _0x210131,_0x144ba7=(_0x1e1076,_0x5acd7f)=>{const _0x1a0ff0=_0x17042f(_0x1e1076);if(_0x5acd7f===void 0x0)return _0x1a0ff0;return{..._0x1a0ff0,'steeredAt':_0x5acd7f};},_0x95cba0=async _0x40fa1c=>{const _0x5e46b1={_0x5475c6:0x1e,_0x864870:0x135,_0x560c90:0x4f5};function _0x5e49c7(_0x3b3407,_0xf4512c,_0x523558,_0x1c1b88){return _0x12c08c(_0x3b3407-_0x539da5._0x36181b,_0xf4512c,_0x523558-_0x539da5._0x2e58a1,_0x523558-_0x539da5._0x17d193);}if(!_0x2677f3['drainSteering'])return 0x0;function _0x3ebe7a(_0x188682,_0x45901b,_0x42e08b,_0x315ac6){return _0x12c08c(_0x188682-_0x5e46b1._0x5475c6,_0x188682,_0x42e08b-_0x5e46b1._0x864870,_0x315ac6-_0x5e46b1._0x560c90);}const _0x143e6f=await _0x2677f3['drainSteering']();throwIfAborted(_0x270d05);if(_0x143e6f[_0x5e49c7(0x111,0x250,0x197,_0x4a7002._0x298d7a)]===0x0)return 0x0;await _0x40fa1c?.();for(const _0x1c1150 of _0x143e6f){const _0x62aa6e=_0x587a04(_0x1c1150),_0x20dc9e=_0x62aa6e?_0x1c1150[_0x3ebe7a(_0x4a7002._0x3ed508,_0x4a7002._0x1e2176,0x3e8,0x3c2)]:_0x1c1150,_0x310937=_0x62aa6e?_0x1c1150[_0x5e49c7(0x16c,_0x4a7002._0xad7ddb,_0x4a7002._0x561ccb,_0x4a7002._0x2af9d7)]:void 0x0,_0x335e24=_0x62aa6e?_0x1c1150['steeredAt']:void 0x0,_0xe193ec=await _0x43e9a0(_0x3ebe7a(_0x4a7002._0x40d39f,0x4c9,0x3a1,_0x4a7002._0x329dd9),normalizeMessage(_0x20dc9e));throwIfAborted(_0x270d05),_0x27f311['messages'][_0x5e49c7(0x154,_0x4a7002._0x1809d4,0x1e8,_0x4a7002._0x1f5cbd)](_0xe193ec),await _0x5429e7(_0xe193ec,_0x144ba7(_0x310937,_0x335e24)),await _0x2a068f({'type':_0x3ebe7a(_0x4a7002._0x1823ce,0x379,_0x4a7002._0x589e9d,0x414),'message':_0xe193ec,..._0x599b4e(_0x310937)});}return _0x143e6f[_0x5e49c7(0x12f,0x15c,0x197,_0x4a7002._0x1efaf6)];};let _0x3f3f3a=0x0;try{const _0x8e5cd7=await _0x43e9a0('onUserMessage',normalizeMessage(_0x2677f3[_0x11d335(-0x15b,-0xaf,-_0x2e5764._0x46a079,-0x1d2)]));_0x27f311['messages'][_0x11d335(-0x23b,-_0x2e5764._0x3b2eac,-0x189,-_0x2e5764._0x5946f8)](_0x8e5cd7);_0x2677f3[_0x11d335(-_0x2e5764._0x29d40a,-_0x2e5764._0x323348,-0x1ac,-_0x2e5764._0x477996)]!==!![]&&await _0x5429e7(_0x8e5cd7,_0x17042f(_0x2677f3[_0x12c08c(-0x1c2,-0x134,-_0x2e5764._0x5f5dc4,-_0x2e5764._0x2b22aa)]));await _0x2a068f({'type':_0x12c08c(-0x14b,-0x19d,-0x83,-0xe1),'message':_0x8e5cd7,..._0x599b4e(_0x2677f3['submission'])});while(!![]){throwIfAborted(_0x270d05),_0x3f3f3a+=0x1;const _0x24078e=createAssistantMessageId(_0x27f311[_0x11d335(-_0x2e5764._0x439541,-_0x2e5764._0x161da2,-_0x2e5764._0x1edb09,-_0x2e5764._0x1692e6)],_0x3f3f3a),_0x4ef324=createReasoningMessageId(_0x24078e),_0x3b7799={'model':_0x3f6e51['model'],'modelIdentity':_0x3f6e51['modelIdentity'],..._0x3f6e51[_0x12c08c(-0xbb,-_0x2e5764._0x1011da,-_0x2e5764._0x58fef6,-_0x2e5764._0x3e3201)]?{'provider':_0x3f6e51[_0x12c08c(-_0x2e5764._0x4da0d5,-_0x2e5764._0x58a3f1,-0x1c4,-_0x2e5764._0x122781)]}:{}};let _0x1935e6={'model':_0x3f6e51['model'],..._0x3f6e51[_0x11d335(-0x139,-0x1b5,-_0x2e5764._0x334f2d,-0x136)]!==void 0x0?{'maxTokens':_0x3f6e51[_0x12c08c(0x8e,-0x86,_0x2e5764._0x10179c,-0x20)]}:{},'system':structuredClone(_0x27f311['system']),'messages':structuredClone(_0x27f311[_0x11d335(-_0x2e5764._0x40e4df,-_0x2e5764._0x1d1091,-_0x2e5764._0x117d85,-0x29f)]),'tools':_0x264522[_0x12c08c(-0xc6,-_0x2e5764._0x5f07f2,-_0x2e5764._0x95e4fe,-_0x2e5764._0x2fe17e)]['listToolSchemas'](),'metadata':{'sessionId':_0x27f311['sessionId'],'turnId':_0x27f311[_0x12c08c(-_0x2e5764._0x119611,0x7e,_0x2e5764._0x5da228,-_0x2e5764._0x29b720)],'modelIdentity':_0x3f6e51['modelIdentity'],..._0x3f6e51[_0x11d335(-_0x2e5764._0x322d5e,-0x1b7,-0xc4,-_0x2e5764._0x40a320)]!==void 0x0?{'pricingProviderId':_0x3f6e51[_0x12c08c(-0x72,-_0x2e5764._0x3edcdf,-_0x2e5764._0x47648d,-_0x2e5764._0x5b90de)]}:{}},..._0x264522[_0x11d335(-_0x2e5764._0x57d266,-_0x2e5764._0x564afd,-_0x2e5764._0x4ca9c7,-0x287)]?{'outputFormat':_0x264522[_0x11d335(-0x257,-_0x2e5764._0x7d0faa,-0x252,-0x2a0)]}:{}};_0x1935e6=await _0x43e9a0(_0x12c08c(-_0x2e5764._0x48df97,-0x1a0,-_0x2e5764._0x593d12,-0xfc),_0x1935e6);{const {pricingProviderId:_0x1614e5,..._0x21af4e}=_0x1935e6[_0x12c08c(-0x2c,0x10,-0x66,-0xa0)];_0x1935e6={..._0x1935e6,'metadata':{..._0x21af4e,..._0x3f6e51[_0x11d335(-0x16d,-_0x2e5764._0x40d644,-_0x2e5764._0x28c931,-_0x2e5764._0x249462)]!==void 0x0?{'pricingProviderId':_0x3f6e51[_0x12c08c(-_0x2e5764._0x5134c8,-_0x2e5764._0x4b35ef,0x1,-_0x2e5764._0x5b90de)]}:{}}};}await _0x2a068f({'type':_0x12c08c(-_0x2e5764._0x1d0693,-0x101,-0xe3,-0x51),'request':_0x1935e6});const _0x47705a=Date[_0x12c08c(_0x2e5764._0x418e82,-0x72,_0x2e5764._0xceb6ef,-_0x2e5764._0x34e398)]();_0x3b7799[_0x12c08c(-_0x2e5764._0x2034a8,-_0x2e5764._0x3243f0,0xd,-0x2f)]=_0x47705a;let _0x54b774=await executeModelRequest(_0x1935e6,_0x2677f3,_0x3f6e51,_0x264522,_0x15bbf3,{'assistantMessageId':_0x24078e,'reasoningMessageId':_0x4ef324,'meta':_0x3b7799});const _0x2f3e0a=Date[_0x11d335(-_0x2e5764._0x39180c,-0x123,-_0x2e5764._0x2f8d37,-0x97)]();_0x3b7799[_0x11d335(-0x1c0,-_0x2e5764._0x56e032,-_0x2e5764._0x611a12,-_0x2e5764._0x124853)]=_0x2f3e0a,_0x54b774=await _0x43e9a0(_0x11d335(-0x1d6,-0x1d6,-0x260,-0x238),_0x54b774);_0x54b774[_0x12c08c(_0x2e5764._0x44cbea,0x55,_0x2e5764._0x3238c6,-_0x2e5764._0x436173)]&&(_0x54b774={..._0x54b774,'providerState':{..._0x54b774['providerState'],'originModelIdentity':_0x3f6e51[_0x12c08c(-_0x2e5764._0x39180c,-0x109,-0x9a,-_0x2e5764._0x152978)]}});_0x54b774=withEstimatedModelCost(_0x1935e6,_0x54b774);const _0x15b284=Math['max'](0x0,_0x2f3e0a-_0x47705a),_0x172b5c={'version':0x1,'usage':structuredClone(_0x54b774['usage']),'modelTimeMs':_0x15b284},_0x39632e=_0xb9a5f0=>({..._0x3b7799,'metrics':{..._0x172b5c,'usage':structuredClone(_0x172b5c['usage']),'completesRequest':_0xb9a5f0}});await _0x2a068f({'type':_0x11d335(-_0x2e5764._0x5026a7,-_0x2e5764._0x555351,-0xf6,-0x23f),'response':_0x54b774,'modelTimeMs':_0x15b284}),_0x27f311[_0x12c08c(-0x69,-_0x2e5764._0xce872,-0xc8,-_0x2e5764._0x276f6d)]=_0x54b774;let _0x33f75c=await _0x43e9a0(_0x12c08c(-_0x2e5764._0x59738d,-_0x2e5764._0x1c306a,-0x28,-0xd8),withMessageId(responseToAssistantMessage(_0x54b774),_0x24078e));_0x33f75c=withMessageId(_0x33f75c,_0x24078e);const _0x5800ef=getToolUseBlocks(_0x33f75c),_0x156f3b=await Promise[_0x12c08c(-0x6c,-0x48,-_0x2e5764._0x2eed8e,-0x38)](_0x5800ef[_0x12c08c(-_0x2e5764._0x1c867d,-0x1f,-_0x2e5764._0x545b27,-_0x2e5764._0x44af03)](_0x4df5e9=>_0x43e9a0(_0x11d335(-0x28a,-0x2dd,-0x253,-0x1df),_0x4df5e9)));_0x156f3b[_0x12c08c(-_0x2e5764._0x5151b4,-_0x2e5764._0x214451,-_0x2e5764._0x34bc70,-0x173)]>0x0&&(_0x33f75c=replaceToolUseBlocks(_0x33f75c,_0x156f3b));const _0x5fb987=withMessageId(_0x33f75c,_0x24078e);_0x33f75c=_0x5fb987;const _0x2951bb=createReasoningMessage(_0x33f75c),_0x1019c9=createAssistantTextMessage(_0x33f75c),_0x2b379e=createToolUseMessage(_0x33f75c);_0x2951bb&&await _0x2a068f({'type':_0x12c08c(-0x90,-_0x2e5764._0x1fe770,-_0x2e5764._0xd4b5af,-_0x2e5764._0x637b6f),'message':withMessageId(_0x2951bb,_0x4ef324)});_0x1019c9&&await _0x2a068f({'type':_0x11d335(-_0x2e5764._0x15fcf0,-_0x2e5764._0x136efd,-_0x2e5764._0x546631,-0x165),'message':withMessageId(_0x1019c9,_0x24078e)});_0x2b379e&&await _0x2a068f({'type':_0x11d335(-_0x2e5764._0x41923d,-_0x2e5764._0x2e7374,-0x11a,-0x133),'message':withMessageId(_0x2b379e,_0x24078e)});_0x27f311[_0x11d335(-0x203,-0x1ce,-0x1fd,-0x211)][_0x11d335(-_0x2e5764._0x4cd54d,-_0x2e5764._0xd38fee,-_0x2e5764._0x1dd2c8,-_0x2e5764._0x38ad87)](_0x5fb987);_0x156f3b['length']>0x0&&await _0x5429e7(_0x5fb987,_0x39632e(![]));for(const _0x23df4b of _0x156f3b){await _0x2a068f({'type':_0x11d335(-0x204,-0x164,-_0x2e5764._0x305d9d,-_0x2e5764._0x39e063),'toolCall':structuredClone(_0x23df4b)});}if(_0x156f3b[_0x11d335(-_0x2e5764._0x1ba747,-0x2f3,-0x2c0,-_0x2e5764._0xdc679a)]===0x0){const _0x499767=await _0x95cba0(async()=>{await _0x5429e7(_0x5fb987,_0x39632e(![]));});if(_0x499767>0x0)continue;const _0x124562=await _0x43e9a0(_0x11d335(-_0x2e5764._0x16725d,-_0x2e5764._0x5b4752,-0x1ba,-0x1e4),_0x33f75c),_0x166ca5=withMessageId(_0x124562,_0x24078e);return _0x27f311[_0x12c08c(-0x84,0x51,-_0x2e5764._0xe9d816,-_0x2e5764._0x24a4b0)]=_0x166ca5,_0x27f311['messages'][_0x27f311['messages'][_0x12c08c(-_0x2e5764._0x292855,-_0x2e5764._0x51fc97,-_0x2e5764._0x70987d,-0x173)]-0x1]=_0x166ca5,await _0x5429e7(_0x166ca5,_0x39632e(!![])),await _0x5baea3({'type':_0x11d335(-0x1ec,-0x193,-0x19b,-0x26c),'message':_0x166ca5}),throwIfAborted(_0x270d05),await _0x264522[_0x11d335(-0x26e,-0x25c,-_0x2e5764._0x1d73b9,-0x283)][_0x11d335(-_0x2e5764._0x126dd7,-_0x2e5764._0x7ace7,-0x1c0,-0x177)]('afterTurnComplete',_0x27f311,_0x4c51b9),await _0x2a068f({'type':_0x12c08c(-_0x2e5764._0x493bc0,-_0x2e5764._0x1997f9,-0x75,-_0x2e5764._0x43dabe),'state':_0x27f311}),{'status':_0x12c08c(-0x13c,-_0x2e5764._0x4bd84d,-_0x2e5764._0x312b58,-_0x2e5764._0x1ed421),'finalMessage':_0x166ca5,'state':_0x27f311};}let _0x733a65=await _0x264522[_0x11d335(-_0x2e5764._0x18fb9d,-_0x2e5764._0x4c84e3,-0x195,-0x13e)][_0x11d335(-0x28b,-0x305,-0x259,-_0x2e5764._0x3c5cda)](_0x156f3b,_0x15bbf3);const _0x1996cc=_0x733a65[_0x11d335(-0x25b,-_0x2e5764._0x3fdcbc,-0x1c0,-_0x2e5764._0x354738)](isAbortedToolResult),_0x57e281=_0x1996cc?_0x1665f1:_0x43e9a0,_0x15f23b=_0x1996cc?_0x5baea3:_0x2a068f;_0x733a65=await Promise[_0x12c08c(-_0x2e5764._0x3e6933,-0x30,_0x2e5764._0x429b73,-0x38)](_0x733a65[_0x12c08c(-0xd1,-_0x2e5764._0x2f8d37,-0x13c,-_0x2e5764._0x44af03)](_0x118046=>_0x57e281(_0x11d335(-0x186,-0x215,-0xdc,-0x124),_0x118046))),_0x27f311[_0x11d335(-_0x2e5764._0x22c944,-0xe3,-_0x2e5764._0xeb64f6,-0x194)][_0x12c08c(-_0x2e5764._0x3e7537,-_0x2e5764._0xfd1efd,-0xb4,-0x122)](..._0x733a65);for(const _0x4e25f9 of _0x733a65){await _0x15f23b({'type':_0x11d335(-_0x2e5764._0x53f80b,-_0x2e5764._0x39112f,-0x26a,-0x2b7),'result':cloneToolResultForPublication2(_0x4e25f9)});}const _0x45e1ef=await _0x57e281(_0x12c08c(-_0x2e5764._0x209e90,-0x152,-0x1a9,-_0x2e5764._0x596615),createToolResultUserMessage(_0x733a65));await _0x15f23b({'type':_0x12c08c(-_0x2e5764._0x2afa64,-0x4e,-_0x2e5764._0x1053db,-_0x2e5764._0x2ecbad),'message':_0x45e1ef}),_0x27f311['messages'][_0x12c08c(-0x148,-_0x2e5764._0x1d9ca9,-_0x2e5764._0x529201,-0x122)](_0x45e1ef),await _0x5429e7(_0x45e1ef);if(_0x1996cc)return{'status':_0x12c08c(-0x17b,-0x173,-_0x2e5764._0x3230de,-0x12d),'state':_0x27f311};await _0x95cba0();}}catch(_0x6d3f3f){if(!_0x270d05['aborted'])throw new TurnFailedError(_0x6d3f3f,_0x27f311);return{'status':'aborted','state':_0x27f311};}}function createSessionId(){const _0x5ba076={_0x54acdf:0x2,_0x399f9f:0xe2,_0x6f4060:0x1,_0x316cd2:0xa9,_0x4e5950:0x99},_0x3f7672={_0x3d7b91:0xc8};function _0x34e08e(_0x66ca45,_0x17ff82,_0x416f43,_0x24f74c){return _0x2f39af(_0x66ca45,_0x17ff82- -0x372,_0x416f43-0x1c3,_0x24f74c-0xac);}function _0x447e72(_0x334645,_0x3a2f59,_0x2b804e,_0x3a0617){return _0x2f39af(_0x334645,_0x3a2f59- -0x3ce,_0x2b804e-_0x3f7672._0x3d7b91,_0x3a0617-0x119);}return _0x447e72(-_0x5ba076._0x54acdf,0x47,0xc6,0x55)+Date['now']()+'-'+Math[_0x34e08e(_0x5ba076._0x399f9f,0x4c,-_0x5ba076._0x6f4060,0xc0)]()['toString'](0x10)[_0x447e72(-0x15b,-_0x5ba076._0x316cd2,-0x120,-_0x5ba076._0x4e5950)](0x2,0xa);}function createTurnId(_0x2026b2){const _0x1abf31={_0x59ef0b:0x249},_0x438b08={_0x3dcf39:0x12c,_0x4b0c4d:0x98};function _0x31d6d0(_0x29872a,_0x452d3b,_0x4cba1c,_0x4c6641){return _0x2f39af(_0x4c6641,_0x452d3b- -_0x438b08._0x3dcf39,_0x4cba1c-0x6c,_0x4c6641-_0x438b08._0x4b0c4d);}return _0x31d6d0(0x228,0x1a4,0x175,_0x1abf31._0x59ef0b)+_0x2026b2;}function createDefaultMessage(_0x3c7959){if(_0x3c7959===void 0x0)return void 0x0;return normalizeUserInput(_0x3c7959);}function normalizeUserInput(_0x326f5f){const _0xb8e480={_0x4bf0a2:0x181,_0x5bdb28:0x262,_0x25f0af:0x25c,_0x3e70bd:0x2c3},_0x2f40c7={_0x4e4589:0x15,_0x44a14a:0x226,_0x2e08a0:0x141},_0xb64731={_0x4946e3:0xa5,_0x5cb516:0x1ac};function _0x53a11e(_0x3333b3,_0x17a360,_0x2933ef,_0x2f2ac6){return _0x2f39af(_0x3333b3,_0x17a360-0x45,_0x2933ef-_0xb64731._0x4946e3,_0x2f2ac6-_0xb64731._0x5cb516);}function _0x51af55(_0x43b1da,_0x263d54,_0x5811ba,_0x8d4fcd){return _0x3e74bf(_0x43b1da-_0x2f40c7._0x4e4589,_0x8d4fcd- -_0x2f40c7._0x44a14a,_0x43b1da,_0x8d4fcd-_0x2f40c7._0x2e08a0);}if(typeof _0x326f5f===_0x51af55(-0x23f,-_0xb8e480._0x4bf0a2,-0x1a6,-0x1cc))return{'role':'user','content':[{'type':_0x51af55(-_0xb8e480._0x5bdb28,-_0xb8e480._0x25f0af,-0x252,-_0xb8e480._0x3e70bd),'text':_0x326f5f}]};return normalizeMessage(_0x326f5f);}function isTaggedSteeringInput(_0x122868){const _0x3a7f4a={_0x5f4ff2:0x232,_0xd5d435:0x11a,_0x43c448:0x64,_0x5f110d:0x257},_0x23d6ad={_0x1b8385:0x5c},_0x57ee54={_0x48c0b8:0x1a};function _0x313403(_0x231ad1,_0xbc93ef,_0x3d9738,_0x1cb062){return _0x2f39af(_0xbc93ef,_0x231ad1- -0x4a4,_0x3d9738-0x91,_0x1cb062-_0x57ee54._0x48c0b8);}function _0x6646b3(_0x1af7c0,_0x3de32a,_0x5d66c2,_0x1eb6fd){return _0x3e74bf(_0x1af7c0-_0x23d6ad._0x1b8385,_0x1af7c0-0x1aa,_0x3de32a,_0x1eb6fd-0x19a);}return typeof _0x122868===_0x6646b3(_0x3a7f4a._0x5f4ff2,0x222,0x195,0x1a2)&&_0x122868!==null&&_0x6646b3(_0x3a7f4a._0xd5d435,_0x3a7f4a._0x43c448,0xc1,0x1d1)in _0x122868&&_0x313403(-0x1e6,-0x1fd,-0x283,-_0x3a7f4a._0x5f110d)in _0x122868;}function resolveChatModel(_0x5d2ffc){const _0x48208c={_0x1a1e6b:0x18a,_0x8b9696:0x181,_0x61db9e:0x195,_0x189007:0x1f6,_0x4ae7c4:0x242},_0x8e0d8b={_0x1cdba9:0x45e,_0x5b5980:0x1a9,_0x2f6d27:0x195},_0x1e1ab3={_0x3a971e:0x1ed};if(!_0x5d2ffc['chatModel'])throw new Error(_0x50bc18(_0x48208c._0x1a1e6b,0x1f9,0x24d,_0x48208c._0x8b9696));function _0x50bc18(_0x3474fa,_0x2d283d,_0xafe371,_0x5d26a7){return _0x2f39af(_0xafe371,_0x2d283d- -_0x1e1ab3._0x3a971e,_0xafe371-0x1c9,_0x5d26a7-0x175);}function _0x425080(_0x5918eb,_0x5694bb,_0x1f83cd,_0x2b03a5){return _0x2f39af(_0x5918eb,_0x5694bb- -_0x8e0d8b._0x1cdba9,_0x1f83cd-_0x8e0d8b._0x5b5980,_0x2b03a5-_0x8e0d8b._0x2f6d27);}return _0x5d2ffc[_0x50bc18(_0x48208c._0x61db9e,_0x48208c._0x189007,0x216,_0x48208c._0x4ae7c4)];}function normalizeExecutionScope2(_0x3d9414){const _0x309db3={_0x1bdd60:0x257,_0x13a76d:0x18},_0x11cf64={_0xb9796f:0x3e6,_0x33a6c3:0x17},_0x42799f={_0x45dd86:0x53,_0x426b34:0x50};function _0x54ec5d(_0x30b487,_0xbe1c97,_0x3bb9f4,_0x11a60e){return _0x2f39af(_0x30b487,_0x3bb9f4- -0x11f,_0x3bb9f4-_0x42799f._0x45dd86,_0x11a60e-_0x42799f._0x426b34);}function _0x2c994d(_0x2a888b,_0x401203,_0x17a5d2,_0x32c0df){return _0x2f39af(_0x2a888b,_0x32c0df- -_0x11cf64._0xb9796f,_0x17a5d2-_0x11cf64._0x33a6c3,_0x32c0df-0x146);}return{'agentId':_0x3d9414?.[_0x54ec5d(_0x309db3._0x1bdd60,0x144,0x1ce,0x139)]??'assistant','toolCallPath':[..._0x3d9414?.[_0x2c994d(-0x1a,_0x309db3._0x13a76d,-0xb4,-0x3c)]??[]]};}function createRegistry(_0x2d71e4){const _0x420638={_0x2da0bb:0xc9,_0x28b138:0x26d},_0x48157b={_0x1e9e97:0x244},_0x2c64e4={_0x2ebe76:0x10b};if(_0x2d71e4['registry'])return _0x2d71e4['registry'];const _0x1deeee=createExtensionRegistry();function _0x4be329(_0x306565,_0x59af41,_0x47bdf8,_0x19b777){return _0x2f39af(_0x19b777,_0x306565- -0x32b,_0x47bdf8-_0x2c64e4._0x2ebe76,_0x19b777-0x10b);}const _0x47fa8c=_0x2d71e4[_0x4be329(0x3c,0x7d,_0x420638._0x2da0bb,0xe5)]??[];function _0x49bbf0(_0x4ba314,_0x2ef270,_0x289052,_0x400c4f){return _0x3e74bf(_0x4ba314-0x16f,_0x2ef270- -_0x48157b._0x1e9e97,_0x400c4f,_0x400c4f-0x182);}for(const _0x35d4a1 of _0x47fa8c){_0x1deeee[_0x49bbf0(-0x1fa,-0x1e6,-0x237,-_0x420638._0x28b138)](_0x35d4a1);}return _0x1deeee;}var Agent=class{[_0x2f39af(0x2ff,0x304,0x3bd,0x284)];[_0x2f39af(0x45c,0x3f7,0x41d,0x368)];[_0x2f39af(0x383,0x3ae,0x430,0x30d)];[_0x2f39af(0x492,0x3e9,0x491,0x42f)];[_0x3e74bf(-0x74,-0x47,-0xec,-0x74)];[_0x2f39af(0x39d,0x2eb,0x316,0x36c)];[_0x3e74bf(0x71,-0x32,-0xc4,-0xf1)];constructor(_0x5a6299={}){const _0x4590b1={_0x1319c6:0x26d,_0x325551:0x1ce,_0x2a721f:0x11c,_0x2b32a7:0x183,_0x43e595:0x12e,_0x4da5eb:0x466,_0x241915:0x432,_0x4b223c:0x462,_0x444458:0x489,_0x3f0d7a:0x545,_0x145834:0x44a,_0x5bd704:0x46c,_0x593c2f:0x4f4,_0x200d84:0x4ba,_0x4f3b17:0x38c,_0x25baf8:0x4c3,_0xf7dab2:0x1bf,_0x4fa66a:0x13,_0x159e6b:0xb7,_0x5f22b2:0xb3,_0x285abd:0x457,_0x114170:0x419,_0x2637ef:0x45e,_0x2dd8aa:0x53f,_0x161221:0x51a,_0x5aee7f:0x4db,_0x263c35:0x554,_0x228e46:0x4c4,_0x186871:0x416,_0x41c0ba:0x1b6,_0x1bb3e5:0x9e,_0x5eb391:0x65,_0x2961b0:0x19d,_0x13a9f1:0x11d,_0x26d1e1:0x53d,_0x18f14a:0x5d8,_0x505eff:0xa2,_0x1f0bc1:0x13c,_0x2100b2:0xc5,_0x659b9b:0x93,_0x54ac09:0xcf},_0x20e982={_0x559ab8:0x161,_0x318db5:0x1b2,_0x29b24e:0x1bb,_0x5ac624:0x4d6,_0x55b5bb:0x454},_0x132901={_0x3a345a:0x12f},_0x5daca0={_0x4efca0:0xc7,_0xb3036c:0x160,_0x2414ba:0x101};this[_0x56a0bb(_0x4590b1._0x1319c6,_0x4590b1._0x325551,_0x4590b1._0x2a721f,0x1c5)]=_0x5a6299[_0x4a24bd(0x518,0x533,0x57d,0x573)]??createSessionId(),this[_0x56a0bb(0x154,0x19b,_0x4590b1._0x2b32a7,_0x4590b1._0x43e595)]=0x0,this[_0x4a24bd(0x433,_0x4590b1._0x4da5eb,_0x4590b1._0x241915,_0x4590b1._0x4b223c)]=_0x5a6299[_0x4a24bd(_0x4590b1._0x444458,0x410,_0x4590b1._0x3f0d7a,_0x4590b1._0x145834)]??'',this['messages']=(_0x5a6299[_0x4a24bd(_0x4590b1._0x5bd704,_0x4590b1._0x593c2f,0x47f,0x442)]??[])[_0x4a24bd(_0x4590b1._0x200d84,0x495,0x409,0x4c2)](normalizeMessage),this[_0x4a24bd(0x41a,_0x4590b1._0x4f3b17,_0x4590b1._0x25baf8,0x39a)]=createDefaultMessage(_0x5a6299['message']),this[_0x56a0bb(0xff,0x188,_0x4590b1._0xf7dab2,0x18a)]=createAgentMetrics({'getContextWindowLimit':_0x5a6299[_0x56a0bb(_0x4590b1._0x4fa66a,0xfc,_0x4590b1._0x159e6b,_0x4590b1._0x5f22b2)]});function _0x56a0bb(_0x173466,_0x441517,_0x114844,_0x5bd427){return _0x3e74bf(_0x173466-_0x5daca0._0x4efca0,_0x5bd427-_0x5daca0._0xb3036c,_0x173466,_0x5bd427-_0x5daca0._0x2414ba);}function _0x4a24bd(_0x53e58e,_0x4c4c2b,_0x3d6a81,_0xed9de7){return _0x2f39af(_0x4c4c2b,_0x53e58e-_0x132901._0x3a345a,_0x3d6a81-0x1aa,_0xed9de7-0x122);}const _0x2a661d=_0x5a6299[_0x4a24bd(_0x4590b1._0x285abd,_0x4590b1._0x114170,0x452,_0x4590b1._0x2637ef)],_0x1e9e50=async(_0x20e2db,_0x46247e)=>{const _0x4e28d8={_0x1d72e6:0xa},_0x4a2c7e={_0x1683ee:0x698};function _0x1bbfa1(_0x26592e,_0x25dfee,_0x7abf96,_0x5a4aff){return _0x4a24bd(_0x5a4aff- -_0x4a2c7e._0x1683ee,_0x25dfee,_0x7abf96-0x1ec,_0x5a4aff-0x46);}this[_0x1bbfa1(-_0x20e982._0x559ab8,-_0x20e982._0x318db5,-0x17d,-_0x20e982._0x29b24e)][_0x26ccc6(0x46c,_0x20e982._0x5ac624,0x510,_0x20e982._0x55b5bb)](_0x20e2db);function _0x26ccc6(_0x101f97,_0x59708d,_0x33f919,_0x10f8d3){return _0x4a24bd(_0x33f919- -_0x4e28d8._0x1d72e6,_0x101f97,_0x33f919-0x180,_0x10f8d3-0x1ed);}await _0x2a661d?.(_0x20e2db,_0x46247e);},_0x116e13=createRegistry(_0x5a6299),_0x38e23c=createInternalToolRuntime(_0x5a6299[_0x4a24bd(_0x4590b1._0x2dd8aa,_0x4590b1._0x161221,_0x4590b1._0x5aee7f,_0x4590b1._0x263c35)]??[],{'onEvent':_0x1e9e50,'onToolCall':_0x5a6299[_0x4a24bd(_0x4590b1._0x228e46,_0x4590b1._0x186871,0x4c6,0x4d4)],'registry':_0x116e13,'beginProgramTrace':_0x5a6299[_0x56a0bb(0x1e7,0x119,0x160,0x15b)]});this[_0x56a0bb(_0x4590b1._0x41c0ba,0x216,0x194,0x1d3)]={'registry':_0x116e13,'chatModel':resolveChatModel(_0x5a6299),'toolRuntime':_0x38e23c,'askUser':_0x5a6299[_0x56a0bb(_0x4590b1._0x1bb3e5,_0x4590b1._0x5eb391,_0x4590b1._0x2961b0,_0x4590b1._0x13a9f1)],'onEvent':_0x1e9e50,'sessionDir':_0x5a6299[_0x4a24bd(_0x4590b1._0x26d1e1,_0x4590b1._0x18f14a,0x4d6,0x4dc)],'outputFormat':_0x5a6299[_0x56a0bb(_0x4590b1._0x505eff,_0x4590b1._0x1f0bc1,0x78,_0x4590b1._0x2100b2)],'executionScope':normalizeExecutionScope2(_0x5a6299[_0x56a0bb(0xbe,0x117,_0x4590b1._0x659b9b,_0x4590b1._0x54ac09)]),'beginProgramTrace':_0x5a6299['beginProgramTrace']};}get[_0x3e74bf(-0xe4,-0x2a,-0xc7,-0xce)](){const _0x2866d3={_0x4e9465:0x4fd,_0x2998f5:0x4ca},_0x4fac99={_0x919e31:0x190,_0x5a1f95:0x2};function _0x1dd3fa(_0x2b14f9,_0x1dca77,_0x1b6460,_0x1ac5a1){return _0x3e74bf(_0x2b14f9-_0x4fac99._0x919e31,_0x2b14f9-0x57d,_0x1dca77,_0x1ac5a1-_0x4fac99._0x5a1f95);}return this[_0x1dd3fa(_0x2866d3._0x4e9465,_0x2866d3._0x2998f5,0x544,0x4a8)];}['setTools'](_0x2d613b=[]){const _0x534cc2={_0xce844a:0x584,_0x48e4e5:0x4cc},_0x5252b5={_0x301479:0xae};function _0xc8a6d2(_0x51005c,_0x37097d,_0x216654,_0x143209){return _0x3e74bf(_0x51005c-0xc4,_0x143209-0x459,_0x37097d,_0x143209-_0x5252b5._0x301479);}this[_0xc8a6d2(_0x534cc2._0xce844a,0x54c,0x411,_0x534cc2._0x48e4e5)]['toolRuntime']['setTools'](_0x2d613b);}[_0x2f39af(0x37d,0x425,0x4aa,0x38a)](){const _0x57f7ea={_0x3825b4:0x1a5,_0x53f8e6:0x16f,_0x108c3f:0x1b5,_0x172f74:0xbc,_0x358ab8:0xca,_0x5bd81b:0x3b},_0x11a86f={_0x473592:0xc0,_0x4f5f6b:0x198};function _0x6f0511(_0x1206cb,_0x245a33,_0x1a3316,_0x254f7b){return _0x3e74bf(_0x1206cb-0x14,_0x1a3316- -0x1e2,_0x1206cb,_0x254f7b-0x180);}function _0x1ff4ec(_0x1f450b,_0x2a01ac,_0x51cfa5,_0x265b6c){return _0x2f39af(_0x51cfa5,_0x265b6c- -0x33d,_0x51cfa5-_0x11a86f._0x473592,_0x265b6c-_0x11a86f._0x4f5f6b);}return this[_0x6f0511(-0x130,-_0x57f7ea._0x3825b4,-_0x57f7ea._0x53f8e6,-_0x57f7ea._0x108c3f)][_0x1ff4ec(_0x57f7ea._0x172f74,-0x7f,_0x57f7ea._0x358ab8,_0x57f7ea._0x5bd81b)]['listToolSchemas']();}[_0x2f39af(0x3e4,0x333,0x28a,0x3ee)](_0x3db1b7,_0x36bd31={}){const _0x64818f={_0x3b28f6:0xa0,_0x586d8b:0x36,_0x3cdca9:0x2ac,_0x3b046e:0x252,_0x523f78:0x52,_0xc87aaf:0x8e,_0x1695d5:0xbf},_0x52d3b6={_0x4a8433:0x3a4,_0x5eeac4:0x192,_0x4dfe3a:0xe2};function _0x3c3464(_0x1f635f,_0x45a28e,_0x2939b6,_0x3f3ab1){return _0x3e74bf(_0x1f635f-0x1bc,_0x1f635f-0x2f3,_0x2939b6,_0x3f3ab1-0x53);}function _0x460baa(_0x502b9,_0xd827af,_0x4af9d5,_0x16a19f){return _0x2f39af(_0x4af9d5,_0x502b9- -_0x52d3b6._0x4a8433,_0x4af9d5-_0x52d3b6._0x5eeac4,_0x16a19f-_0x52d3b6._0x4dfe3a);}this[_0x460baa(-_0x64818f._0x3b28f6,-_0x64818f._0x586d8b,-0x43,-0xc5)]=_0x3db1b7,_0x36bd31['resetMessages']===!![]&&(this[_0x3c3464(_0x64818f._0x3cdca9,0x20a,0x2d7,_0x64818f._0x3b046e)]=[],this[_0x460baa(-_0x64818f._0x523f78,0x22,-_0x64818f._0xc87aaf,-_0x64818f._0x1695d5)]=0x0);}[_0x3e74bf(0x11d,0x71,0x2f,0x1f)](_0xda696a){const _0xf51033={_0x4cb1cc:0x5e8,_0x25cee8:0x58f,_0x506cfe:0x5b2},_0x531276={_0x5a34fa:0x54d,_0x1c2516:0x6e};function _0x37757b(_0x41f712,_0x2667b6,_0xe37696,_0x19221d){return _0x3e74bf(_0x41f712-0x2a,_0x19221d-_0x531276._0x5a34fa,_0xe37696,_0x19221d-_0x531276._0x1c2516);}this[_0x37757b(_0xf51033._0x4cb1cc,0x503,_0xf51033._0x25cee8,_0xf51033._0x506cfe)]=_0xda696a;}['setChatModel'](_0x49da9e){const _0x9c718a={_0x4da194:0x2b9,_0x8ae3e3:0x2f2,_0xa17150:0x28b,_0x321652:0x2dc,_0x17c39a:0x26a},_0x4c9cce={_0x189881:0x4c,_0x3d20f5:0x10a},_0x4a16a2={_0x5032c1:0x19a,_0x5177d8:0x163,_0x555969:0x5c};function _0x2a68a7(_0x314ff5,_0x33bb2d,_0x4df623,_0x3e300f){return _0x2f39af(_0x4df623,_0x314ff5-_0x4a16a2._0x5032c1,_0x4df623-_0x4a16a2._0x5177d8,_0x3e300f-_0x4a16a2._0x555969);}function _0x2c504e(_0x52e029,_0x33b240,_0x595d23,_0x2479d2){return _0x2f39af(_0x33b240,_0x2479d2- -0x179,_0x595d23-_0x4c9cce._0x189881,_0x2479d2-_0x4c9cce._0x3d20f5);}this[_0x2c504e(0x2d5,_0x9c718a._0x4da194,_0x9c718a._0x8ae3e3,0x27e)][_0x2c504e(_0x9c718a._0xa17150,_0x9c718a._0x321652,0x1f5,_0x9c718a._0x17c39a)]=_0x49da9e;}async[_0x2f39af(0x2ea,0x35e,0x30b,0x3fb)](_0x4c5751=this[_0x3e74bf(-0x52,-0x99,0x6,-0xc9)],_0x2b6282={}){const _0x4360b9={_0x3c8d81:0x290,_0xcea22b:0x226,_0x5e8dba:0x1a5,_0x42b246:0x2bd,_0x3b0715:0x330,_0x5bf9d1:0x1f8,_0x16da57:0x29f,_0x56ff99:0x268,_0x3a444b:0x2ca,_0x15e3d6:0x239,_0x242ce4:0x1a2,_0x1d601f:0x289,_0x41b25c:0x31b,_0x3b8412:0x332,_0x581494:0x28f,_0x54ec7e:0xf4,_0x3dc1f9:0x1ad,_0x64cc04:0x1e4,_0x40ec79:0x24b,_0x1abea1:0x2c2,_0x1f191a:0x2fd,_0x395ecd:0x26e,_0x125a44:0x2f0,_0x2da16a:0x283,_0x795e0c:0x2a5},_0x9ec1a4={_0x1d43be:0x248},_0x318b8f={_0x291b5e:0x104,_0x5717bd:0x17c};if(!_0x4c5751)throw new Error('Agent.send\x20requires\x20a\x20message\x20when\x20no\x20default\x20message\x20is\x20configured');this[_0x54c305(_0x4360b9._0x3c8d81,_0x4360b9._0xcea22b,0x277,0x19c)]+=0x1;const _0x241fe5=_0x2b6282[_0x448ca1(-0x22e,-_0x4360b9._0x5e8dba,-0x238,-0x228)];function _0x54c305(_0x4e642d,_0x3ba9cf,_0x3e2674,_0x481ba2){return _0x2f39af(_0x481ba2,_0x3ba9cf- -0x12c,_0x3e2674-_0x318b8f._0x291b5e,_0x481ba2-_0x318b8f._0x5717bd);}function _0x448ca1(_0x146336,_0x277136,_0x76baea,_0x3e86e8){return _0x3e74bf(_0x146336-0xb1,_0x3e86e8- -_0x9ec1a4._0x1d43be,_0x146336,_0x3e86e8-0xa0);}try{const _0x4b283d=await runTurn({'sessionId':this[_0x54c305(0x251,_0x4360b9._0x42b246,0x30f,_0x4360b9._0x3b0715)],'turnId':createTurnId(this['turnIndex']),'streaming':_0x2b6282[_0x54c305(0x180,_0x4360b9._0x5bf9d1,0x17d,_0x4360b9._0x16da57)],'signal':_0x2b6282['signal'],'system':this[_0x54c305(0x267,0x22e,0x1b8,0x244)],'messages':this[_0x54c305(_0x4360b9._0x56ff99,0x211,_0x4360b9._0x3a444b,_0x4360b9._0x15e3d6)],'message':normalizeUserInput(_0x4c5751),..._0x2b6282['transientInput']===!![]?{'transientInput':!![]}:{},..._0x2b6282['submission']===void 0x0?{}:{'submission':_0x2b6282[_0x54c305(0x17f,0x192,_0x4360b9._0x242ce4,0x14c)]},..._0x241fe5?{'drainSteering':async()=>(await _0x241fe5())[_0x54c305(0x295,0x25f,0x2cc,0x1de)](_0x4ee898=>isTaggedSteeringInput(_0x4ee898)?{'input':normalizeUserInput(_0x4ee898[_0x54c305(0x12c,0x1c8,0x16c,0x115)]),'submission':_0x4ee898[_0x54c305(0x1a4,0x192,0x1ff,0x18a)],..._0x4ee898[_0x448ca1(-0x23a,-0x226,-0x332,-0x276)]===void 0x0?{}:{'steeredAt':_0x4ee898['steeredAt']}}:normalizeUserInput(_0x4ee898))}:{}},this[_0x54c305(0x257,0x2cb,_0x4360b9._0x1d601f,_0x4360b9._0x41b25c)]);return this[_0x448ca1(-0x340,-0x31a,-_0x4360b9._0x3b8412,-_0x4360b9._0x581494)]=_0x4b283d[_0x54c305(_0x4360b9._0x54ec7e,_0x4360b9._0x3dc1f9,_0x4360b9._0x64cc04,0x1cc)][_0x448ca1(-_0x4360b9._0x40ec79,-0x2b5,-_0x4360b9._0x1abea1,-0x28f)][_0x54c305(_0x4360b9._0x1f191a,0x25f,0x21e,0x1cc)](normalizeMessage),_0x4b283d;}catch(_0x45ba64){if(_0x45ba64 instanceof TurnFailedError){this[_0x448ca1(-0x1ec,-_0x4360b9._0x395ecd,-_0x4360b9._0x125a44,-0x28f)]=synthesizeMissingToolResults(_0x45ba64['state']['messages'][_0x54c305(_0x4360b9._0x395ecd,0x25f,0x2fc,0x210)](normalizeMessage));throw _0x45ba64[_0x54c305(0x290,_0x4360b9._0x2da16a,0x32b,_0x4360b9._0x795e0c)];}throw _0x45ba64;}}};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};
|