@nuvin/agent-core 0.2.0-rc.10 → 0.2.0-rc.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x127c29,_0x37049b){var _0x2715f7={_0x19bb5b:0x448,_0x3599a5:0x44e,_0x2b7219:0x44b,_0x452bd5:0x457,_0x36e009:0x458,_0xb9b544:0x450,_0x44e353:0x451,_0x11a425:0x44f,_0x559aed:0x450,_0x1b53bd:0x44a,_0x3b60e1:0x44d,_0x110440:0x446,_0x509970:0x3f7,_0x3e6607:0x3f0,_0x164b6c:0x3ec,_0xceac08:0x3f2,_0x3f3baf:0x3f6,_0x17cb8b:0x3f0,_0x222f79:0x3fb,_0x1a008a:0x3fc},_0x579404={_0x1fb944:0x358},_0x582229={_0x23051e:0x2fe};function _0x38625b(_0x536b6e,_0x4bc44f,_0x407b9c,_0x5d181c){return _0x353e(_0x4bc44f-_0x582229._0x23051e,_0x536b6e);}var _0x8e0e74=_0x127c29();function _0x3fe81e(_0x557331,_0x438ade,_0x53c475,_0x5b16dc){return _0x353e(_0x53c475-_0x579404._0x1fb944,_0x438ade);}while(!![]){try{var _0x2758cb=parseInt(_0x3fe81e(0x453,_0x2715f7._0x19bb5b,_0x2715f7._0x3599a5,_0x2715f7._0x2b7219))/0x1+parseInt(_0x3fe81e(0x452,_0x2715f7._0x452bd5,0x452,_0x2715f7._0x36e009))/0x2*(-parseInt(_0x3fe81e(_0x2715f7._0xb9b544,_0x2715f7._0x44e353,_0x2715f7._0x11a425,0x451))/0x3)+-parseInt(_0x3fe81e(_0x2715f7._0x559aed,0x44d,0x454,_0x2715f7._0x3599a5))/0x4*(-parseInt(_0x3fe81e(0x44d,_0x2715f7._0x1b53bd,_0x2715f7._0x3b60e1,_0x2715f7._0x110440))/0x5)+-parseInt(_0x38625b(0x3eb,0x3f1,0x3f8,_0x2715f7._0x509970))/0x6*(-parseInt(_0x3fe81e(0x44b,0x44f,_0x2715f7._0xb9b544,0x44e))/0x7)+parseInt(_0x38625b(0x3fb,_0x2715f7._0x509970,0x3f3,_0x2715f7._0x3e6607))/0x8+-parseInt(_0x38625b(_0x2715f7._0x164b6c,_0x2715f7._0xceac08,0x3f1,0x3f2))/0x9+parseInt(_0x38625b(_0x2715f7._0x3f3baf,_0x2715f7._0x17cb8b,0x3e9,0x3ee))/0xa*(-parseInt(_0x38625b(0x3fd,_0x2715f7._0x222f79,_0x2715f7._0x1a008a,_0x2715f7._0x222f79))/0xb);if(_0x2758cb===_0x37049b)break;else _0x8e0e74['push'](_0x8e0e74['shift']());}catch(_0x4fc245){_0x8e0e74['push'](_0x8e0e74['shift']());}}}(_0x5467,0xa2be5));function resolveAnthropicReasoningConfig(_0xd75b81){return _0xd75b81?.['anthropic']?structuredClone(_0xd75b81['anthropic']):void 0x0;}function resolveOpenAiReasoningConfig(_0x4af5bb){var _0x363d8b={_0x578139:0x22d,_0x164dda:0x231,_0xc398e1:0x234};function _0x422380(_0x143159,_0x36aa17,_0x247e3f,_0x455e0a){return _0x353e(_0x247e3f-0x136,_0x36aa17);}function _0x53f8b3(_0x472c1b,_0x45e8e1,_0x3cfc5e,_0x338241){return _0x353e(_0x472c1b-0x1ba,_0x45e8e1);}if(_0x4af5bb?.['codex'])return structuredClone(_0x4af5bb[_0x422380(_0x363d8b._0x578139,0x22b,0x231,0x22c)]);return _0x4af5bb?.[_0x422380(0x232,_0x363d8b._0x164dda,_0x363d8b._0xc398e1,0x230)]?structuredClone(_0x4af5bb['openai']):void 0x0;}function _0x5467(){var _0x3c62f9=['mZC4nte4CxPJCLj0','y29KzxG','ne50A2XrzG','ndeWnteYm3n3tNHLva','B3bLBMfP','ntbqtxr5CgW','nK1hvwX1DW','nJuWmJvkA0DnCui','ndG3mtCZmeDuq0zOsG','mZKYndiXD2ftywrg','mtHLC29Nz3K','odmYntmZofP1whncCG','odK1mZKYmejyuhrrtW'];_0x5467=function(){return _0x3c62f9;};return _0x5467();}function _0x353e(_0x10e996,_0x472901){_0x10e996=_0x10e996-0xf2;var _0x54674b=_0x5467();var _0x353ec9=_0x54674b[_0x10e996];if(_0x353e['JVnjqJ']===undefined){var _0x2d2b12=function(_0x54c50a){var _0x158af3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xd75b81='',_0x4af5bb='';for(var _0x3c0ad7=0x0,_0x3db8fd,_0x713e6f,_0x5288b1=0x0;_0x713e6f=_0x54c50a['charAt'](_0x5288b1++);~_0x713e6f&&(_0x3db8fd=_0x3c0ad7%0x4?_0x3db8fd*0x40+_0x713e6f:_0x713e6f,_0x3c0ad7++%0x4)?_0xd75b81+=String['fromCharCode'](0xff&_0x3db8fd>>(-0x2*_0x3c0ad7&0x6)):0x0){_0x713e6f=_0x158af3['indexOf'](_0x713e6f);}for(var _0x5a38f9=0x0,_0x57b73f=_0xd75b81['length'];_0x5a38f9<_0x57b73f;_0x5a38f9++){_0x4af5bb+='%'+('00'+_0xd75b81['charCodeAt'](_0x5a38f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4af5bb);};_0x353e['SnYMqZ']=_0x2d2b12,_0x353e['rbjToY']={},_0x353e['JVnjqJ']=!![];}var _0x3117e3=_0x54674b[0x0],_0x1b3b88=_0x10e996+_0x3117e3,_0x4abf32=_0x353e['rbjToY'][_0x1b3b88];return!_0x4abf32?(_0x353ec9=_0x353e['SnYMqZ'](_0x353ec9),_0x353e['rbjToY'][_0x1b3b88]=_0x353ec9):_0x353ec9=_0x4abf32,_0x353ec9;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
1
+ (function(_0xc60831,_0xd2af0e){var _0x4a2b28={_0x752bc4:0x498,_0x360fca:0x4a4,_0x33afa2:0x49d,_0x50f212:0x49d,_0x5b6e48:0x49c,_0x12fa33:0x49b,_0x1921a4:0x395,_0x2a1719:0x39a,_0x2689cb:0x393,_0x56a15d:0x38e,_0x1d0c51:0x388,_0x1c094d:0x399,_0x4d879e:0x396,_0x3031c2:0x397,_0x540cb2:0x384,_0x33ecbe:0x38a,_0x3a637a:0x49a,_0x1e1e4f:0x49a,_0x516ea0:0x497,_0x14732f:0x39a,_0x2523b9:0x384,_0x39a1b3:0x389};function _0x35322d(_0x19e617,_0x130e24,_0x1bcac2,_0xe83c7f){return _0x4a6f(_0x130e24-0x2af,_0x19e617);}var _0x409a80=_0xc60831();function _0x1265ed(_0x3c1999,_0x14d88b,_0x6b47d9,_0x186be6){return _0x4a6f(_0x186be6-0x3bb,_0x6b47d9);}while(!![]){try{var _0x2f7961=-parseInt(_0x1265ed(0x49a,0x49f,_0x4a2b28._0x752bc4,0x498))/0x1*(parseInt(_0x1265ed(_0x4a2b28._0x360fca,_0x4a2b28._0x33afa2,0x498,_0x4a2b28._0x33afa2))/0x2)+parseInt(_0x1265ed(0x4a2,_0x4a2b28._0x50f212,_0x4a2b28._0x5b6e48,0x49e))/0x3*(-parseInt(_0x1265ed(0x49b,_0x4a2b28._0x12fa33,0x499,0x497))/0x4)+-parseInt(_0x35322d(0x391,_0x4a2b28._0x1921a4,_0x4a2b28._0x2a1719,_0x4a2b28._0x2689cb))/0x5*(-parseInt(_0x35322d(_0x4a2b28._0x56a15d,_0x4a2b28._0x1d0c51,0x390,0x38b))/0x6)+parseInt(_0x35322d(_0x4a2b28._0x1c094d,_0x4a2b28._0x4d879e,_0x4a2b28._0x3031c2,_0x4a2b28._0x2a1719))/0x7*(-parseInt(_0x35322d(_0x4a2b28._0x540cb2,_0x4a2b28._0x33ecbe,0x386,0x383))/0x8)+parseInt(_0x1265ed(_0x4a2b28._0x3a637a,0x499,0x49d,_0x4a2b28._0x1e1e4f))/0x9*(parseInt(_0x1265ed(0x4a0,_0x4a2b28._0x516ea0,0x493,0x499))/0xa)+-parseInt(_0x35322d(0x398,0x394,_0x4a2b28._0x14732f,0x39a))/0xb+parseInt(_0x35322d(_0x4a2b28._0x2523b9,_0x4a2b28._0x39a1b3,0x382,0x387))/0xc;if(_0x2f7961===_0xd2af0e)break;else _0x409a80['push'](_0x409a80['shift']());}catch(_0x2c30c5){_0x409a80['push'](_0x409a80['shift']());}}}(_0x3642,0x1d41e));function resolveAnthropicReasoningConfig(_0x204667){var _0x3be1de={_0x4d7721:0x10d,_0x27ac24:0x106};function _0x4b7224(_0x49872e,_0x3ea0bf,_0x1ad587,_0x112eac){return _0x4a6f(_0x1ad587- -0x1e6,_0x112eac);}return _0x204667?.[_0x4b7224(-_0x3be1de._0x4d7721,-0x109,-_0x3be1de._0x27ac24,-0x105)]?structuredClone(_0x204667['anthropic']):void 0x0;}function resolveOpenAiReasoningConfig(_0x1ea9ad){var _0x42a5d9={_0x5b1875:0xa0,_0x18a02d:0xa8,_0x438639:0xa1,_0x251dee:0x159,_0x3a4375:0x160,_0x1597ee:0x9e,_0x521bb4:0xa4,_0x2dfb52:0xa4},_0x2eec88={_0x5f4fa9:0x40},_0x2b53ff={_0x55de01:0x7f};function _0x173917(_0x48a4fb,_0x284d54,_0x552ea3,_0x6b43bc){return _0x4a6f(_0x284d54-_0x2b53ff._0x55de01,_0x48a4fb);}if(_0x1ea9ad?.[_0x23f055(_0x42a5d9._0x5b1875,0x9b,_0x42a5d9._0x18a02d,_0x42a5d9._0x438639)])return structuredClone(_0x1ea9ad[_0x173917(_0x42a5d9._0x251dee,_0x42a5d9._0x3a4375,0x160,0x165)]);function _0x23f055(_0x253cc6,_0x420113,_0x20564f,_0x2bca26){return _0x4a6f(_0x2bca26- -_0x2eec88._0x5f4fa9,_0x20564f);}return _0x1ea9ad?.[_0x23f055(0xa2,_0x42a5d9._0x1597ee,_0x42a5d9._0x521bb4,_0x42a5d9._0x2dfb52)]?structuredClone(_0x1ea9ad['openai']):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};function _0x4a6f(_0x4088e4,_0x3175f1){_0x4088e4=_0x4088e4-0xd9;var _0x3642bd=_0x3642();var _0x4a6fc5=_0x3642bd[_0x4088e4];if(_0x4a6f['LWTNVc']===undefined){var _0x40bdf7=function(_0x9088fd){var _0x2508f1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x204667='',_0x1ea9ad='';for(var _0x21c885=0x0,_0x20fd45,_0xfd87e7,_0x560ba6=0x0;_0xfd87e7=_0x9088fd['charAt'](_0x560ba6++);~_0xfd87e7&&(_0x20fd45=_0x21c885%0x4?_0x20fd45*0x40+_0xfd87e7:_0xfd87e7,_0x21c885++%0x4)?_0x204667+=String['fromCharCode'](0xff&_0x20fd45>>(-0x2*_0x21c885&0x6)):0x0){_0xfd87e7=_0x2508f1['indexOf'](_0xfd87e7);}for(var _0x3ef801=0x0,_0x533f52=_0x204667['length'];_0x3ef801<_0x533f52;_0x3ef801++){_0x1ea9ad+='%'+('00'+_0x204667['charCodeAt'](_0x3ef801)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1ea9ad);};_0x4a6f['ZEtDKp']=_0x40bdf7,_0x4a6f['PKQBwy']={},_0x4a6f['LWTNVc']=!![];}var _0x312960=_0x3642bd[0x0],_0x2e942e=_0x4088e4+_0x312960,_0x3617b4=_0x4a6f['PKQBwy'][_0x2e942e];return!_0x3617b4?(_0x4a6fc5=_0x4a6f['ZEtDKp'](_0x4a6fc5),_0x4a6f['PKQBwy'][_0x2e942e]=_0x4a6fc5):_0x4a6fc5=_0x3617b4,_0x4a6fc5;}function _0x3642(){var _0x3cae47=['mZHHre5wrfC','mtvXDLPltxq','B3bLBMfP','mtu5mtC2nNr3CeDrBa','mtiWDNDlA3fA','mtuZotu4n2fOz01eAW','ndGYmdrbBMPAreq','nde2mJu2mfHSuMPHCq','oeLItNP3tW','mti4mdu2qKLhuKfW','mZG4ovLTEMDlwq','mJG2meDpvvnxqG','ntyYnwfOy3PoDG','yw50AhjVCgLJ','y29KzxG'];_0x3642=function(){return _0x3cae47;};return _0x3642();}
@@ -0,0 +1 @@
1
+ (function(_0x4ce751,_0x55b4e4){const _0x49ae3e={_0x28154f:0x2f1,_0x1f3485:0x2c3,_0x403d2f:0x253,_0x41bf5c:0x2ab,_0x1ecbfc:0x268,_0x141c1d:0x340,_0x45275f:0x2d6,_0x2e2dc3:0x2f0,_0x5e4879:0x274,_0x34c146:0x2cf,_0x50e5df:0x315,_0x56f53e:0x28f,_0x2683ae:0x2b0,_0x5e61b7:0x2c7,_0x269f17:0x237,_0x3b12ed:0x2c0,_0x44bac5:0x2e6,_0x6977f5:0x355,_0x2bc95b:0x2f8,_0x555771:0x29e,_0x49dc50:0x336},_0xad5a0d={_0x61b742:0xd8},_0x2e460a={_0x230a5e:0xe6};function _0x442f21(_0x4fb36b,_0x1caeec,_0x498348,_0x52ccf5){return _0x41f4(_0x498348-_0x2e460a._0x230a5e,_0x1caeec);}function _0x4870e5(_0x46f21a,_0x28fd2a,_0x1565b2,_0x540aa9){return _0x41f4(_0x46f21a-_0xad5a0d._0x61b742,_0x1565b2);}const _0xe9aff6=_0x4ce751();while(!![]){try{const _0x4ff45b=parseInt(_0x4870e5(0x28d,_0x49ae3e._0x28154f,_0x49ae3e._0x1f3485,0x271))/0x1*(parseInt(_0x4870e5(_0x49ae3e._0x403d2f,_0x49ae3e._0x41bf5c,_0x49ae3e._0x1ecbfc,0x24d))/0x2)+-parseInt(_0x4870e5(0x317,0x2aa,0x2c8,_0x49ae3e._0x141c1d))/0x3+-parseInt(_0x4870e5(_0x49ae3e._0x45275f,0x27f,_0x49ae3e._0x2e2dc3,0x30f))/0x4*(-parseInt(_0x442f21(0x241,0x24c,_0x49ae3e._0x5e4879,_0x49ae3e._0x34c146))/0x5)+-parseInt(_0x442f21(0x39b,0x312,0x328,_0x49ae3e._0x50e5df))/0x6*(parseInt(_0x442f21(0x287,0x22d,_0x49ae3e._0x56f53e,0x261))/0x7)+parseInt(_0x442f21(_0x49ae3e._0x2683ae,0x2b9,0x2f2,0x31a))/0x8*(-parseInt(_0x442f21(0x2f3,0x2f1,_0x49ae3e._0x5e61b7,0x2a3))/0x9)+parseInt(_0x4870e5(0x299,_0x49ae3e._0x269f17,_0x49ae3e._0x3b12ed,0x2ca))/0xa+parseInt(_0x442f21(_0x49ae3e._0x44bac5,_0x49ae3e._0x6977f5,_0x49ae3e._0x2bc95b,0x296))/0xb*(parseInt(_0x442f21(0x2c2,_0x49ae3e._0x555771,_0x49ae3e._0x44bac5,_0x49ae3e._0x49dc50))/0xc);if(_0x4ff45b===_0x55b4e4)break;else _0xe9aff6['push'](_0xe9aff6['shift']());}catch(_0x3df898){_0xe9aff6['push'](_0xe9aff6['shift']());}}}(_0x4ea0,0xc30fd));import{withEstimatedModelCost}from'./chunk-GAZGO6N7.js';import{createAssistantTextMessage,createReasoningMessage,createToolResultUserMessage,createToolUseMessage,getToolUseBlocks,normalizeMessage,normalizeSystem,responseToAssistantMessage,synthesizeMissingToolResults}from'./chunk-YNOIG4FD.js';import{TurnFailedError}from'./chunk-FFIZ6TKW.js';import{addAbortListener,isAbortError,throwIfAborted,toAbortError}from'./chunk-X7VAACWY.js';function isJsonObject(_0x49290f){return typeof _0x49290f==='object'&&_0x49290f!==null&&!Array['isArray'](_0x49290f);}function isToolOutputEnvelope(_0x18b697){const _0x585877={_0x5303e0:0x123,_0x257808:0xbd,_0x41dff5:0x3ee,_0x14e7bb:0x3d9,_0x2ae42c:0x412,_0x1525cc:0x13a,_0x4252b3:0x8c},_0x450c15={_0x3adc0a:0x210},_0x25cbb3={_0x45091a:0xbc};if(typeof _0x18b697!==_0x10f20f(0x14b,_0x585877._0x5303e0,0x115,_0x585877._0x257808)||_0x18b697===null||Array[_0x33b000(_0x585877._0x41dff5,_0x585877._0x14e7bb,0x445,_0x585877._0x2ae42c)](_0x18b697))return![];if(typeof _0x18b697['output']!==_0x10f20f(_0x585877._0x1525cc,0xce,_0x585877._0x4252b3,0xbe))return![];function _0x10f20f(_0x36af4e,_0x2456d9,_0x4233f5,_0x13c553){return _0x41f4(_0x2456d9- -_0x25cbb3._0x45091a,_0x36af4e);}function _0x33b000(_0x6b5621,_0x2968e5,_0x194292,_0x4234f4){return _0x41f4(_0x194292-_0x450c15._0x3adc0a,_0x4234f4);}const _0x812f85=_0x18b697['structured'];return _0x812f85===void 0x0||isJsonObject(_0x812f85);}function _0x4ea0(){const _0x8f4dbe=['y29TCgXLDgu','BwLZC2LUz01VzgvSq2fSBenVDw50','Dg90ywXdB3n0vxnKvgLJA3m','y2HHDe1VzgvS','yxnZAxn0yw50x21LC3nHz2u','zxH0zw5ZAw9UCW','DhjHBNnMB3jTzxi','CMvQzwn0','ywX3yxLZlwnVBMzPCM0','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','BM93','mZGWrMH2CgjQ','Bwf4vg9Rzw5Z','mJrovgDJs0W','DxnLCG','Dg9VBf91C2vFBwvZC2fNzq','CMvHC29UAw5Nu3rHCNrLzef0','oIbLEhbLy3rLzcb2ywX1zsbTyxrJAgLUzYbHBNLpzIbZy2HLBwe','Dg9VBf9JB21WBgv0zwq','C2v0q2HHDe1VzgvS','y29UDgvUDeLUzgv4','BwvZC2fNzq','Dg9VBenHBgXdB3vUDa','Dg90ywXfC3rPBwf0zwrdB3n0vxnKvgLJA3m','yw55t2y','nZmXnZzjqxDptKO','Aw5KzxG','yMvMB3jLtw9KzwXszxf1zxn0','DhvYBKLUzgv4','C2vZC2LVBKLK','ywz0zxjnB2rLBfjLC3bVBNnL','mJqXmZGWn1Pcz0H1rq','Dg9VBfj1BNrPBwu','BgLZDfrVB2Xty2HLBwfZ','ywjVCNq','DxnHz2u','zMLUywXnzxnZywDL','ywn0Aw9U','C3rYDwn0DxjLza','yxnZAxn0yw50x2nODw5R','C3LZDgvTuhjVBxb0','oNjLyxnVBMLUzW','ywXS','zgvZy3jPChrPB24','C2v0vg9VBhm','oIbTAxnZAw5NihjLCxvPCMvKigzPzwXKici','AgfZt3DU','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','ChvZAa','ywrKrxzLBNrmAxn0zw5LCG','zw5HyMXLza','C29Tzq','DhvYBI0','C3rHz2u','DhvYBLn0yxj0zwrbDa','CMvJB3jKrxzLBNq','sw52ywXPzcb0B29SigLUChv0igf0ia','CMvNAxn0CNK','Dg90ywXjBNb1DfrVA2vUCW','B25fDMvUDa','CMfJzq','zw50CMLLCW','ywnXDwLYzq','C3rHDhvZ','yM9VBgvHBG','y29UDgv4DfDPBMrVD0XPBwL0','AxnbCNjHEq','CMvHza','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','B3v0Chv0','C29YDa','oIbLEhbLy3rLzcbVBMuGB2yG','oIbLEhbLy3rLzcbIB29SzwfU','C2vUza','DhvYBKnVBxbSzxrLzef0','BNvTyMvY','mZC2odGXnKXutNf1EG','AxrLBuLK','zMLSDgvY','mtHlrK1os3C','BwvZC2fNzxm','CNvUvhjHBNnMB3jTzxjZ','zxHLy3v0Aw9Uqxv0Ag9YAxPHDgLVBG','oMfZC2LZDgfUDdO','oIbLEhbLy3rLzcbHCNjHEq','BgvUz3rO','ywrKAxrPB25HBfbYB3bLCNrPzxm','zgvMyxvSDe1LC3nHz2u','ywrK','C3rYAw5NAwz5','ywjVCNrLza','BwfW','C2v0','Bw9KzwXdywXSq291BNq','C2LNBMfS','z2v0vg9VBhm','B3v0Chv0sw5KzxG','yMvMB3jLvg9VBev4zwn1DgLVBG','ywz0zxjuDxjUq29TCgXLDgu','CMvHC29UAw5Nx21LC3nHz2u','C3rHDgu','BMv4Da','vg9VBcbLEgvJDxrPB24GCMvQzwn0zwqGzM9Yia','AxrLBxm','CMvXDwLYzwq','BgLZDa','y29UDgvUDa','Bw9KzwXFCMvZCg9UC2u','zxjYB3i','CMvXDwvZDenVDw50','Dg9VBf9JywXS','CMvXDwvZDa','Dw5WCMLJzwrnB2rLBenHBgXdB3vUDa','C2v0u3LZDgvTuhjVBxb0','ywz0zxjnzxnZywDLqxbWzw5K','mti1neT3BePzsW','oIbLEhbLy3rLzcbUDw1Izxi','CMvNAxn0zxi','C3rYzwfT','CMvHC29UAw5NtwvZC2fNzuLK','zgvWCW','yMvMB3jLqxnZAxn0yw50qxbWzw5K','Aw5WDxq','BgfZDfjLC3bVBNnL','C2vZC2LVBKrPCG','CMvHC29UAw5Nx2nODw5R','ChjVDMLKzxi','qwDLBNqUC2vUzcbYzxf1AxjLCYbHig1LC3nHz2uGD2HLBIbUBYbKzwzHDwX0ig1LC3nHz2uGAxmGy29UzMLNDxjLza','DgHLBG','zMLUywXFBwvZC2fNzq','C3rYAw5N','CMvZzxrnzxnZywDLCW','y2f0y2G','Dg90ywXnB2rLBfrPBwvnCW','nJm5odvQrM1rCKS','Aw5WDxrty2HLBwe','zgvSzxrL','oIb0zxjTAw5HBcbVyNnLCNzLCIaI','Dg9VBhncEu5HBwu','CMvTB3zLrxzLBNrmAxn0zw5LCG','Bw9KzwXdywXSCW','DMfSDwu','BMfTzq','Dgv4Da','oIbLEhbLy3rLzcbVyMPLy3q','CMvZCg9UC2u','C2v0vg9WAwm','ChjVCgvYDgLLCW','CMvHC29UAw5Nq29TCgXLDgvKqxq','Dg90ywXpDxrWDxruB2TLBNm','yw1VDw50vxnKvgLJA3m','zMLUza','AM9PBG','Aw50zxjUywXmAwzLy3LJBgu','DhjPBq','x3n5C3rLBvbYB21WDa','B25vC2vYtwvZC2fNzq','zgvSDge','CNvUt2jZzxj2zxjZ','Dg9VBf9VDxrWDxrFy2H1BMS','Aw5WDxrezwX0yq','mtK1otiYm2L0B0PgvG','A2v5CW','Dw5RBM93BL90B29S','zhjHAw5tDgvLCMLUzW','DhLWzq','ChjVDMLKzxjtDgf0zq','yxnRvxnLCG','zNvUy3rPB24','B3v0Chv0rM9YBwf0','CNvU','C2XPy2u','Bwv0yq','mtu0nxbuswTwuG','zxn0Aw1HDgvKq29ZDenHBgXdB3vUDa','DxnLCL9TzxnZywDL','iIbMB3iG','Bw9KzwXFCMvXDwvZDa','Bw9KzwXuAw1Ltxm','CgvYBwLZC2LVBKnSyxnZ','DhvYBKLK','oIb1BMv4CgvJDgvKigzPzwXKici','ChjVDMLKzxjFCMv0CNK','DgHPBMTPBMC','Bw9KzwW','mta2nZm5nZbot0jRC0O','C3rYzwfTAw5N','oIbLEhbLy3rLzcbZDhjPBMC','C3vTBwfYEuLUzgv4','C3LZDgvT','C2v0u2vZC2LVBKLK','B25uB29Sq2fSBa','CMv0DxjU','ywz0zxjuB29SuMvZDwX0','vg9VBev4zwn1DgLVBKvYCM9Y','iIbPCYbHBhjLywr5igvUywjSzwq','Dg90ywXszxbVCNrLzenVC3rvC2ruAwnRCW','B2jZzxj2zxi','CMvHC29U','yxnZAxn0yw50twvZC2fNzuLK','y2f1C2u','yMvMB3jLvg9VBfjLC3vSDefWCgvUza','Dg9VBf91C2vFzgvSDge','z2v0','CMvWB3j0zwrdB3n0q2fSBenVDw50','Dg9VBf9YzwPLy3rLza','ChjVDMLKzxjFC3rYzwfTx3jLC2v0','y29UDgvUDf9KzwX0yq','CMvWB3j0zwrdB3n0','qwDLBNqGCMvXDwLYzxmGysbJAgf0tw9KzwW','C2vZC2LVBI0','Bw9KzwXjzgvUDgL0Eq','B3jKzxi','Dg9tDhjPBMC','zxn0Aw1HDgvKq29ZDa','B2jQzwn0','CMvHC29UAw5Nvg9Rzw5Z','nZGZuwHfChrj','Dg9VBf9Yzxn1BhrFBwvZC2fNzq','Bwv0ywrHDge','CMvZB2X2zq','DgvYBwLUywW','Bwv0CMLJCW','Dg9VBf9ZDgfYDgvK','zw51Bq','Dg9VBf91C2vFy2H1BMS','Dg9VBfjLC3vSDhm','Dg9VBf91C2u','DhvYBL9JB21WBgv0zq','zg9Uzq','q2fUBM90ihjLz2LZDgvYihrLCM1PBMfSig9IC2vYDMvYici','yxjYyxK','ChjPy2LUz1bYB3zPzgvYswq','A2LUza','y29TCgXLDgvK'];_0x4ea0=function(){return _0x8f4dbe;};return _0x4ea0();}function validateAgainstSchema(_0x3f8560,_0x4934bc,_0x5f2ca3){const _0x3e45fe={_0x2bf0e5:0x77,_0x18285e:0xbd,_0x124d3d:0x11b,_0xc4f73a:0x18b,_0x347586:0xd9,_0x3827c0:0xfa,_0x3a2d96:0x6a,_0x841578:0x5b,_0x3b51e5:0x11,_0x5a32f5:0x3c,_0x22813c:0xaf,_0xad7715:0x9e,_0x549660:0xe0,_0x200268:0x2f,_0x25631e:0xd4,_0x30ee14:0xdd,_0x4171b4:0x89,_0x3752e3:0xff,_0x18c192:0x86,_0x40116f:0xec,_0xc4032e:0x148,_0x4c3255:0x20,_0x487914:0x126,_0x58464a:0x133,_0x217a58:0xca,_0x39ab6d:0x14e,_0x6dfbc7:0x12e,_0x3935e6:0x2,_0x4f0a27:0xb8,_0x4552c6:0xe4,_0x569e8d:0x122,_0x56cb04:0xdd,_0x4875de:0xd7,_0x19f89f:0xe0,_0x26442c:0xb5,_0x552f6a:0x136,_0x403fd1:0x85,_0x1e289d:0x113,_0x5afaa9:0x120,_0x279c21:0x108,_0x2d1d9b:0xf9,_0xbffcb5:0x106,_0x3b3f02:0xa5,_0x39165f:0xcb,_0x1d1622:0xd8,_0x10466b:0x14a,_0x877ec7:0x130,_0x288f63:0x115,_0x4216e4:0x13a,_0x49b43f:0x183,_0x591dc1:0xca,_0x1deb9e:0x9f,_0x4ea511:0x96,_0x179be5:0x51,_0x2b1166:0x6f,_0x337829:0xc9,_0x2e640d:0x7a,_0x492a8d:0xe2,_0x34f4c1:0x10d,_0x101471:0xb9,_0x405df3:0xa2},_0x2ab6dc={_0x5f4a2a:0x123,_0x4ad2e1:0x152,_0x368da5:0x16a,_0xd51fdc:0x18d},_0x373b35={_0x1c1406:0x10b};function _0x2edc47(_0xff1a75,_0x414188,_0xa714c7,_0x7cfd78){return _0x41f4(_0x414188- -_0x373b35._0x1c1406,_0x7cfd78);}if('anyOf'in _0x5f2ca3){const _0x208724=_0x5f2ca3[_0x192a74(0x113,_0x3e45fe._0x2bf0e5,_0x3e45fe._0x18285e,0x4e)][_0x2edc47(0xcf,_0x3e45fe._0x124d3d,_0x3e45fe._0xc4f73a,0xd9)](_0x4800fe=>{try{return validateAgainstSchema(_0x3f8560,_0x4934bc,_0x4800fe),!![];}catch{return![];}});if(!_0x208724)throw new Error(_0x2edc47(_0x3e45fe._0x347586,0x120,_0x3e45fe._0x3827c0,0xc3)+_0x3f8560+_0x192a74(_0x3e45fe._0x3a2d96,0x12a,0xb6,0x4b));return;}function _0x192a74(_0x46533c,_0x23bd25,_0x3ca289,_0x159424){return _0x41f4(_0x3ca289- -0x14e,_0x46533c);}switch(_0x5f2ca3[_0x2edc47(0x8a,0xa2,0x76,0xa2)]){case _0x192a74(_0x3e45fe._0x841578,-_0x3e45fe._0x3b51e5,_0x3e45fe._0x5a32f5,0x26):if(typeof _0x4934bc!=='string')throw new Error(_0x2edc47(_0x3e45fe._0x22813c,0x120,0x170,0xd0)+_0x3f8560+_0x192a74(_0x3e45fe._0xad7715,_0x3e45fe._0x549660,0x75,_0x3e45fe._0x200268));if(_0x5f2ca3['enum']!==void 0x0&&!_0x5f2ca3[_0x2edc47(_0x3e45fe._0x25631e,_0x3e45fe._0x30ee14,_0x3e45fe._0x4171b4,_0x3e45fe._0x3752e3)]['includes'](_0x4934bc))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x3f8560+_0x192a74(0x83,_0x3e45fe._0x18c192,_0x3e45fe._0x40116f,0xb8)+_0x5f2ca3[_0x2edc47(0xfd,0xdd,_0x3e45fe._0xc4032e,0x139)][_0x2edc47(0x7d,0x95,_0x3e45fe._0x4c3255,0x26)](',\x20'));return;case _0x2edc47(_0x3e45fe._0x487914,_0x3e45fe._0x58464a,0x16a,0x131):if(typeof _0x4934bc!==_0x2edc47(0x120,0x133,0x16b,_0x3e45fe._0x217a58))throw new Error(_0x192a74(0xcf,_0x3e45fe._0x39ab6d,0xdd,_0x3e45fe._0x6dfbc7)+_0x3f8560+_0x192a74(_0x3e45fe._0x3935e6,-0x2d,0x2e,0x21));return;case _0x2edc47(_0x3e45fe._0x4f0a27,0x128,0xc8,_0x3e45fe._0x4552c6):if(typeof _0x4934bc!==_0x192a74(0x125,0x9e,0xe5,_0x3e45fe._0x569e8d))throw new Error(_0x192a74(0x136,0x71,_0x3e45fe._0x56cb04,_0x3e45fe._0x4875de)+_0x3f8560+_0x2edc47(0xe4,0x130,0xd8,_0x3e45fe._0x19f89f));return;case _0x2edc47(0x104,0xe4,_0x3e45fe._0x26442c,0x74):if(!Array[_0x192a74(_0x3e45fe._0x552f6a,0xea,0xe7,_0x3e45fe._0x403fd1)](_0x4934bc))throw new Error(_0x2edc47(_0x3e45fe._0x1e289d,_0x3e45fe._0x5afaa9,0x16c,0x112)+_0x3f8560+_0x192a74(0xc9,_0x3e45fe._0x279c21,_0x3e45fe._0x2d1d9b,0xd9));_0x4934bc['forEach']((_0x56d1fd,_0x3c1cd0)=>{const _0x42ea09={_0x515a0d:0x4b};function _0x5c5605(_0x5ae733,_0xb7f88a,_0x52fe6d,_0x2d0874){return _0x2edc47(_0x5ae733-0xd9,_0x5ae733- -0x272,_0x52fe6d-_0x42ea09._0x515a0d,_0x52fe6d);}validateAgainstSchema(_0x3f8560+'['+_0x3c1cd0+']',_0x56d1fd,_0x5f2ca3[_0x5c5605(-_0x2ab6dc._0x5f4a2a,-_0x2ab6dc._0x4ad2e1,-_0x2ab6dc._0x368da5,-_0x2ab6dc._0xd51fdc)]);});return;case _0x2edc47(0xf7,0xd4,_0x3e45fe._0xbffcb5,0xd9):if(!isJsonObject(_0x4934bc))throw new Error('Invalid\x20tool\x20input\x20at\x20'+_0x3f8560+_0x192a74(0x31,0x45,0x4a,_0x3e45fe._0x3b3f02));for(const _0x46bbf9 of _0x5f2ca3[_0x192a74(0xa1,0xbc,0x10d,0x11d)]??[]){if(!Object[_0x192a74(_0x3e45fe._0x39165f,_0x3e45fe._0x1d1622,0xd3,0x116)](_0x4934bc,_0x46bbf9))throw new Error(_0x192a74(_0x3e45fe._0x10466b,0x13c,0xdd,_0x3e45fe._0x877ec7)+_0x3f8560+_0x2edc47(0xf6,_0x3e45fe._0x288f63,0x15b,_0x3e45fe._0x4216e4)+_0x46bbf9+'\x22');}if(_0x5f2ca3[_0x2edc47(0x143,0x13e,0x157,_0x3e45fe._0x49b43f)]===![]){const _0x37ed8b=Object[_0x2edc47(_0x3e45fe._0x591dc1,_0x3e45fe._0x1deb9e,_0x3e45fe._0x4ea511,_0x3e45fe._0xbffcb5)](_0x4934bc)[_0x192a74(0x61,0xa2,_0x3e45fe._0x179be5,-0x1e)](_0x166609=>!Object[_0x192a74(0xa1,0x12b,0xd3,0xfd)](_0x5f2ca3[_0x192a74(0xa0,0x94,0x4d,0x8f)],_0x166609));if(_0x37ed8b!==void 0x0)throw new Error(_0x2edc47(0x134,0x120,0xc1,0x17a)+_0x3f8560+_0x192a74(0x94,0xd8,_0x3e45fe._0x2b1166,_0x3e45fe._0x337829)+_0x37ed8b+'\x22');}for(const [_0x5ba866,_0x325091]of Object[_0x192a74(0x12e,_0x3e45fe._0x2e640d,_0x3e45fe._0x492a8d,_0x3e45fe._0x34f4c1)](_0x5f2ca3[_0x192a74(0xbc,_0x3e45fe._0x101471,0x4d,_0x3e45fe._0x405df3)])){Object['hasOwn'](_0x4934bc,_0x5ba866)&&validateAgainstSchema(_0x3f8560+'.'+_0x5ba866,_0x4934bc[_0x5ba866],_0x325091);}}}function normalizeToolOutputValue(_0x52244f){const _0x42f1c5={_0x57b065:0x135,_0x36e5fc:0xd1,_0x2681c8:0x105,_0x295060:0x12a,_0x5b7ecf:0x1cb,_0x409b21:0x237,_0x20afb2:0x3d4,_0x409dce:0x427,_0x13c168:0x46b,_0x10e7bf:0x400,_0x3313fe:0x395,_0x517414:0x15e,_0x578622:0x108,_0x49fb5f:0x13c,_0x32bbb2:0xad,_0x53fed1:0xf1,_0xe524cb:0x532,_0x2e6fff:0x4c2},_0x2c94d7={_0x50951f:0x33d};function _0xa8c70c(_0x2a3c58,_0x550d75,_0x5934a2,_0x521551){return _0x41f4(_0x2a3c58- -_0x2c94d7._0x50951f,_0x550d75);}if(isToolOutputEnvelope(_0x52244f))return{'output':_0x52244f['output'],'structured':_0x52244f[_0xa8c70c(-0x124,-0xf8,-_0x42f1c5._0x57b065,-_0x42f1c5._0x36e5fc)]??{'value':_0x52244f[_0xa8c70c(-_0x42f1c5._0x2681c8,-_0x42f1c5._0x295060,-0x169,-0x96)]},..._0x52244f[_0xa8c70c(-_0x42f1c5._0x5b7ecf,-_0x42f1c5._0x409b21,-0x1a1,-0x1fb)]!==void 0x0?{'content':_0x52244f[_0x3da2c5(0x389,_0x42f1c5._0x20afb2,0x3e8,_0x42f1c5._0x409dce)]}:{}};if(typeof _0x52244f===_0x3da2c5(_0x42f1c5._0x13c168,0x418,_0x42f1c5._0x10e7bf,_0x42f1c5._0x3313fe))return{'output':_0x52244f,'structured':{'value':_0x52244f}};if(typeof _0x52244f===_0xa8c70c(-_0x42f1c5._0x517414,-0x108,-0x168,-0x117)&&_0x52244f!==null&&!Array[_0xa8c70c(-_0x42f1c5._0x578622,-0x147,-_0x42f1c5._0x49fb5f,-_0x42f1c5._0x32bbb2)](_0x52244f))return{'output':JSON[_0xa8c70c(-_0x42f1c5._0x53fed1,-0x9b,-0x95,-0x11e)](_0x52244f,null,0x2),'structured':_0x52244f};function _0x3da2c5(_0x50325e,_0x2f5d32,_0x24134a,_0xa7112c){return _0x41f4(_0x24134a-0x276,_0x50325e);}return{'output':JSON[_0x3da2c5(0x50c,_0x42f1c5._0xe524cb,_0x42f1c5._0x2e6fff,0x51f)](_0x52244f,null,0x2),'structured':{'value':_0x52244f}};}function createToolOutput(_0x1dc312,_0x31b3d6={'value':_0x1dc312},_0xe07ca6){return{'output':_0x1dc312,'structured':_0x31b3d6,..._0xe07ca6!==void 0x0?{'content':_0xe07ca6}:{}};}var ToolExecutionError=class extends Error{[_0x249222(0x29a,0x2a8,0x235,0x2a7)];constructor(_0x45f54c,_0x4dc1b9={}){const _0x4dfe0c={_0x33f204:0x1bf,_0x5d7bc3:0x1af,_0x15bd26:0x192},_0xebdfb1={_0x1c5760:0x11f,_0xaa24e7:0x408};super(_0x45f54c),this['name']=_0x53208c(-0x184,-_0x4dfe0c._0x33f204,-_0x4dfe0c._0x5d7bc3,-_0x4dfe0c._0x15bd26);function _0x53208c(_0xa89a7,_0x4b661d,_0x4e0721,_0xa8ff5e){return _0x249222(_0xa89a7-_0xebdfb1._0x1c5760,_0x4e0721- -_0xebdfb1._0xaa24e7,_0xa89a7,_0xa8ff5e-0x18);}this['structured']=_0x4dc1b9;}};function defineTool(_0x22ea23){return _0x22ea23;}function resolveToolPermissionClass(_0x373123){const _0x5ab923={_0x2f4546:0x15c,_0x1acb87:0x10c,_0xa04a4:0xec,_0x10d0cd:0x178,_0x669d7c:0x1f7,_0xbde200:0x186,_0x1e720c:0x193,_0x33731e:0x6c},_0x337e51={_0x10619a:0x5a},_0x53fa95=_0x373123?.[_0x4a3f9d(-_0x5ab923._0x2f4546,-_0x5ab923._0x1acb87,-0xc3,-_0x5ab923._0xa04a4)];function _0x4a3f9d(_0x50b47d,_0x58af99,_0x4be97a,_0x1b9629){return _0x249222(_0x50b47d-_0x337e51._0x10619a,_0x1b9629- -0x336,_0x58af99,_0x1b9629-0x9b);}if(_0x53fa95===_0x1d1a4e(0x171,_0x5ab923._0x10d0cd,_0x5ab923._0x669d7c,_0x5ab923._0xbde200)||_0x53fa95==='write'||_0x53fa95===_0x1d1a4e(_0x5ab923._0x1e720c,0x1bc,0x162,0x14b))return _0x53fa95;function _0x1d1a4e(_0x2754ff,_0x594193,_0x31108e,_0x9ad7f9){return _0x249222(_0x2754ff-0x3b,_0x9ad7f9- -0x13f,_0x594193,_0x9ad7f9-0xe3);}return _0x4a3f9d(-0xdd,-0x94,-_0x5ab923._0x33731e,-0xac);}var ToolRegistry=class{[_0x4c1020(0xe3,0x15d,0x110,0x13f)]=new Map();constructor(_0x54b43c=[]){const _0xdd7b2e={_0x5e74dc:0x18b,_0x7a8b2d:0x162,_0x1fa9b7:0x11d,_0x1b40e1:0x200},_0x47c39e={_0x205b70:0xd6};function _0x55c444(_0x150c74,_0x22f981,_0xc1de47,_0x4c34ca){return _0x4c1020(_0xc1de47,_0x22f981-0x34,_0xc1de47-_0x47c39e._0x205b70,_0x150c74- -0x2b5);}for(const _0x157482 of _0x54b43c){this[_0x55c444(-_0xdd7b2e._0x5e74dc,-_0xdd7b2e._0x7a8b2d,-_0xdd7b2e._0x1fa9b7,-_0xdd7b2e._0x1b40e1)](_0x157482);}}[_0x4c1020(0x19f,0x12c,0xde,0x12a)](_0x266632){const _0x18fa07={_0x1eca45:0x312,_0x2422f2:0x2a5,_0x433f10:0x27b},_0x217966={_0x9c2769:0x8b,_0x2196e1:0x7b},_0x5831a2={_0x467b39:0x91};function _0x36bf0d(_0x43ac6d,_0x41fcc0,_0x588851,_0x173123){return _0x249222(_0x43ac6d-0x1d7,_0x588851-0x80,_0x41fcc0,_0x173123-_0x5831a2._0x467b39);}function _0x19971f(_0x1d494a,_0x156e2e,_0xa7bf87,_0x150d1e){return _0x249222(_0x1d494a-0x192,_0x156e2e-_0x217966._0x9c2769,_0x1d494a,_0x150d1e-_0x217966._0x2196e1);}this['toolsByName'][_0x36bf0d(0x332,0x333,0x35e,_0x18fa07._0x1eca45)](_0x266632[_0x36bf0d(0x260,0x2ea,_0x18fa07._0x2422f2,_0x18fa07._0x433f10)],_0x266632);}[_0x4c1020(0x166,0x1f6,0x176,0x180)](_0x15cc5f){const _0x579543={_0x1c2fbf:0x2ac,_0x428d6c:0x2d3,_0x4b20f8:0x2c2,_0x433e98:0x2c8},_0x3123d1={_0x7449c0:0x6f},_0x7f1254={_0x86948a:0xcb,_0x14314d:0x1b5,_0x5ceff9:0x9};function _0x49a2da(_0x2cfb6e,_0x74b7b6,_0x61a76d,_0x17e678){return _0x249222(_0x2cfb6e-_0x7f1254._0x86948a,_0x61a76d-_0x7f1254._0x14314d,_0x74b7b6,_0x17e678-_0x7f1254._0x5ceff9);}function _0x318911(_0x3cf124,_0x3885e8,_0x59ce88,_0x7d696f){return _0x249222(_0x3cf124-0xfa,_0x3885e8-0xb2,_0x7d696f,_0x7d696f-_0x3123d1._0x7449c0);}return this[_0x318911(_0x579543._0x1c2fbf,_0x579543._0x428d6c,0x271,_0x579543._0x4b20f8)][_0x318911(0x2bc,0x314,_0x579543._0x433e98,0x2cc)](_0x15cc5f);}[_0x249222(0x2dc,0x2eb,0x35d,0x33e)](){const _0xda96d={_0x29dd00:0x18d,_0x74bd4f:0x153},_0x293ab7={_0x5f20bb:0x3ae};function _0x246ffc(_0x426e9e,_0x1ffb84,_0x537857,_0x4ced27){return _0x249222(_0x426e9e-0xf6,_0x1ffb84- -_0x293ab7._0x5f20bb,_0x537857,_0x4ced27-0x17d);}return[...this[_0x246ffc(-0x11a,-_0xda96d._0x29dd00,-_0xda96d._0x74bd4f,-0x151)]['values']()];}['listToolSchemas'](){const _0x1ffeff={_0x4329fa:0x11c,_0x48a86a:0x191,_0xed5f3b:0x480,_0xb93afb:0x47f,_0x5709fb:0x4dd},_0x1f4d49={_0x2903cf:0x107,_0x52f776:0x197},_0x53f970={_0x444bfc:0x34a,_0x505c34:0x7b,_0x344da9:0x185},_0x34fdd3={_0x408d96:0xe4,_0x353819:0x325},_0x3ecf9e={_0x4210b9:0x1ee,_0x37cf57:0x1a2};function _0x2ac6fe(_0x1529f7,_0x321e37,_0xac3926,_0x3a3606){return _0x249222(_0x1529f7-_0x3ecf9e._0x4210b9,_0xac3926-_0x3ecf9e._0x37cf57,_0x3a3606,_0x3a3606-0x3b);}function _0x75c754(_0x2609ad,_0x240ec9,_0x73c3b0,_0x5b7aac){return _0x4c1020(_0x2609ad,_0x240ec9-_0x34fdd3._0x408d96,_0x73c3b0-0x5b,_0x240ec9- -_0x34fdd3._0x353819);}return this[_0x75c754(-0xe9,-_0x1ffeff._0x4329fa,-_0x1ffeff._0x48a86a,-0x131)]()[_0x2ac6fe(_0x1ffeff._0xed5f3b,0x410,_0x1ffeff._0xb93afb,_0x1ffeff._0x5709fb)](_0x249eb5=>{function _0xba5b60(_0x5ee12e,_0x26a057,_0x501d6b,_0x33cdf7){return _0x2ac6fe(_0x5ee12e-0x1f4,_0x26a057-0xd7,_0x33cdf7-0x78,_0x501d6b);}function _0xcc6b96(_0x4e9c66,_0x2677d5,_0xcedac0,_0x4dd892){return _0x75c754(_0xcedac0,_0x4e9c66-_0x53f970._0x444bfc,_0xcedac0-_0x53f970._0x505c34,_0x4dd892-_0x53f970._0x344da9);}return{'name':_0x249eb5[_0xcc6b96(0x168,0x113,_0x1f4d49._0x2903cf,0x16d)],'description':_0x249eb5[_0xcc6b96(0x1f0,0x1d1,0x1de,_0x1f4d49._0x52f776)],'input_schema':_0x249eb5['inputSchema']};});}};function validateToolInput(_0x57b3cc,_0x43eef0){const _0x741177={_0x5aac29:0x36a,_0x24cd1d:0x366,_0x5a22e0:0x3a0};validateAgainstSchema(_0x239762(_0x741177._0x5aac29,_0x741177._0x24cd1d,0x32a,_0x741177._0x5a22e0),_0x57b3cc,_0x43eef0);function _0x239762(_0xcce1ff,_0x29a98e,_0x1d28d8,_0xf2199b){return _0x249222(_0xcce1ff-0xa7,_0x1d28d8-0x119,_0x29a98e,_0xf2199b-0x3a);}return _0x57b3cc;}function deriveFinalToolOutput(_0x156817){const _0x4a6f78={_0x467b0c:0xbf,_0x212431:0xe8,_0x210f90:0xc4,_0x349cd7:0x1e,_0x2c06c9:0xa8,_0x1c3bdf:0x77,_0x358f75:0x2d9,_0x29fcff:0x338,_0x33df2c:0x2c9,_0x59aa71:0x244,_0x4bfe2b:0x335,_0x459fcc:0x395,_0x2e3075:0x34b,_0x2691be:0xb6,_0x2e23ff:0x8c,_0x1a56bf:0x4f},_0x45beae={_0x11f2db:0x1dd},_0x53e34f={_0x53fbca:0x16e};if(_0x156817[_0x20a13d(0xf3,_0x4a6f78._0x467b0c,0x87,_0x4a6f78._0x212431)]===0x0)return{'output':'','structured':{}};if(_0x156817[_0x20a13d(_0x4a6f78._0x210f90,_0x4a6f78._0x349cd7,0x87,0xc7)]===0x1)return{'output':_0x156817[0x0][_0x20a13d(0xa0,_0x4a6f78._0x2c06c9,_0x4a6f78._0x1c3bdf,0x1a)],'structured':_0x156817[0x0][_0xb9051d(_0x4a6f78._0x358f75,0x300,_0x4a6f78._0x29fcff,_0x4a6f78._0x33df2c)],..._0x156817[0x0][_0xb9051d(_0x4a6f78._0x59aa71,0x259,0x226,0x227)]!==void 0x0?{'content':_0x156817[0x0]['content']}:{}};function _0x20a13d(_0x460482,_0x38a580,_0x46dff0,_0x57a295){return _0x4c1020(_0x57a295,_0x38a580-0xea,_0x46dff0-0x19b,_0x46dff0- -_0x53e34f._0x53fbca);}function _0xb9051d(_0x24b834,_0x316c8c,_0x1ad180,_0x1ed994){return _0x249222(_0x24b834-0xe6,_0x316c8c-0x58,_0x1ed994,_0x1ed994-_0x45beae._0x11f2db);}const _0x20f7df=_0x156817['filter'](_0x1bfc44=>_0x1bfc44[_0x20a13d(-0x77,-0xa3,-0x4f,-0x4)]!==void 0x0);return{'output':_0x156817['map'](_0x34204e=>_0x34204e[_0x20a13d(0x36,0x91,0x77,0x31)])['join'](''),'structured':{'chunks':_0x156817[_0xb9051d(0x34e,_0x4a6f78._0x4bfe2b,_0x4a6f78._0x459fcc,_0x4a6f78._0x2e3075)](_0x3df658=>_0x3df658['structured'])},..._0x20f7df['length']===0x1?{'content':_0x20f7df[0x0][_0x20a13d(-_0x4a6f78._0x2691be,-_0x4a6f78._0x2e23ff,-_0x4a6f78._0x1a56bf,-0x91)]}:{}};}function createToolMeta(){return{'transforms':[]};}function createErrorToolResult(_0x2303e7,_0x43df1d,_0x3768b9,_0x146c25=[]){const _0x2ba0b9={_0x1fc322:0x9,_0x11571d:0xf},_0x1e8430={_0x468733:0x5b,_0x1493df:0x216},_0xd7bee0={_0x2f231e:0x1ec,_0x2fd213:0x103};function _0x825cf0(_0x32b440,_0x512ca1,_0x2a48f8,_0x3e1537){return _0x4c1020(_0x3e1537,_0x512ca1-0xb,_0x2a48f8-_0xd7bee0._0x2f231e,_0x32b440-_0xd7bee0._0x2fd213);}function _0x22b867(_0x5e337b,_0x13b384,_0x24180b,_0x182982){return _0x249222(_0x5e337b-_0x1e8430._0x468733,_0x182982- -_0x1e8430._0x1493df,_0x24180b,_0x182982-0xe2);}return{'callId':_0x2303e7['id'],'toolName':_0x2303e7[_0x22b867(0x6e,-0x44,-_0x2ba0b9._0x1fc322,_0x2ba0b9._0x11571d)],'status':_0x22b867(0x57,0x13,-0x4d,-0x13),'output':_0x43df1d,'structured':_0x3768b9,'chunks':_0x146c25,'meta':createToolMeta()};}function createRejectedToolResult(_0x75c9e2,_0x3c14bc){const _0x2284b0={_0x1510be:0x530,_0x56339a:0x532,_0x3b7d33:0x612,_0x1fbbc9:0x5ae,_0xf95a15:0x608,_0x4ce8e9:0x4bd,_0x1daa24:0x504,_0x426d2d:0x491,_0x5a8562:0x5d9},_0x2daeaf={_0x2de660:0x19},_0x1cb4e7={_0x5e00a8:0x184,_0x1f381a:0x137};function _0x3c3e84(_0x13fb46,_0x4a3492,_0x49a40d,_0x5b8e73){return _0x249222(_0x13fb46-_0x1cb4e7._0x5e00a8,_0x4a3492-0x2d3,_0x13fb46,_0x5b8e73-_0x1cb4e7._0x1f381a);}const _0x1f4d8f=_0x3c14bc?.[_0x3c3e84(_0x2284b0._0x1510be,0x504,_0x2284b0._0x56339a,0x4d2)]()[_0x5c1a8d(_0x2284b0._0x3b7d33,_0x2284b0._0x1fbbc9,0x5f7,0x60c)]?_0x3c14bc:_0x5c1a8d(0x61a,0x625,_0x2284b0._0xf95a15,0x5a0)+_0x75c9e2['name'];function _0x5c1a8d(_0x139373,_0x25db1c,_0x19cb97,_0x6e6400){return _0x249222(_0x139373-_0x2daeaf._0x2de660,_0x19cb97-0x320,_0x25db1c,_0x6e6400-0x35);}return createErrorToolResult(_0x75c9e2,_0x1f4d8f,{'error':'tool_rejected',..._0x3c14bc?.[_0x3c3e84(_0x2284b0._0x4ce8e9,_0x2284b0._0x1daa24,0x49f,_0x2284b0._0x426d2d)]()[_0x5c1a8d(_0x2284b0._0x5a8562,0x65e,0x5f7,_0x2284b0._0x3b7d33)]?{'reason':_0x3c14bc}:{}});}function createAbortedToolResult(_0x1b6d75,_0x3413c8,_0x1b6082=[]){const _0x429885=toAbortError(_0x3413c8);return createErrorToolResult(_0x1b6d75,_0x429885['message'],{'error':_0x429885['message'],'aborted':!![]},_0x1b6082);}function createSuccessToolResult(_0x540b77,_0x31c1e5,_0x533c45){const _0x248180={_0x95fa14:0x2ca,_0x553454:0x330,_0x208a6e:0x182,_0x416414:0x16c},_0x32d089={_0x527b11:0xe3},_0x24db34={_0x31419b:0x4d};function _0x287bd7(_0x2739c0,_0x299122,_0x1a8384,_0x5d2407){return _0x4c1020(_0x299122,_0x299122-0x47,_0x1a8384-0x34,_0x5d2407-_0x24db34._0x31419b);}function _0x23d6f1(_0x5bd0eb,_0xd7174e,_0x1713ee,_0x1f03c1){return _0x249222(_0x5bd0eb-_0x32d089._0x527b11,_0xd7174e-0x10b,_0x5bd0eb,_0x1f03c1-0xbb);}return{'callId':_0x540b77['id'],'toolName':_0x540b77[_0x23d6f1(_0x248180._0x95fa14,_0x248180._0x553454,0x350,0x2e9)],'status':'ok','output':_0x31c1e5[_0x287bd7(0x1fe,0x1ea,0x269,0x232)],'structured':_0x31c1e5['structured'],..._0x31c1e5[_0x287bd7(0x1a5,_0x248180._0x208a6e,0x17d,_0x248180._0x416414)]!==void 0x0?{'content':_0x31c1e5['content']}:{},'chunks':_0x533c45,'meta':createToolMeta()};}function createUnknownToolResult(_0x11589d){const _0xde1312={_0x423830:0x1d0,_0x1806bf:0x293,_0x3e436f:0x259},_0x2ca220={_0xfcd52a:0x1d3},_0x1bae15={_0x38715d:0x135};function _0x13df4b(_0x5e0cab,_0x1ac003,_0x446311,_0x34314b){return _0x249222(_0x5e0cab-0x43,_0x1ac003- -0x333,_0x446311,_0x34314b-_0x1bae15._0x38715d);}function _0x53f645(_0x4d8a2c,_0x5d9dfb,_0x4e1865,_0x4eb8d9){return _0x249222(_0x4d8a2c-0x1e7,_0x4eb8d9-0x7,_0x4d8a2c,_0x4eb8d9-_0x2ca220._0xfcd52a);}return createErrorToolResult(_0x11589d,'Unknown\x20tool:\x20'+_0x11589d[_0x53f645(_0xde1312._0x423830,_0xde1312._0x1806bf,_0xde1312._0x3e436f,0x22c)],{'error':_0x53f645(0x204,0x234,0x214,0x241)});}function isDispatchDecision(_0x4b8926){const _0x1b8d15={_0x43e0c1:0x4ac,_0x39d32a:0x467,_0x4f6c17:0x493,_0x32a67f:0x4ac,_0x50377a:0x4e0},_0xc6b979={_0x3800cd:0x239},_0x122197={_0x3e3182:0xf6};function _0x3742b3(_0xe0de1a,_0x531dea,_0xb803d4,_0x42dfe4){return _0x249222(_0xe0de1a-0x157,_0x531dea- -_0x122197._0x3e3182,_0x42dfe4,_0x42dfe4-0x1f);}if(typeof _0x4b8926!==_0x369ced(_0x1b8d15._0x43e0c1,_0x1b8d15._0x39d32a,0x48f,0x4a7)||_0x4b8926===null)return![];function _0x369ced(_0x32be06,_0x561250,_0x58d39d,_0x470ae7){return _0x249222(_0x32be06-0x40,_0x470ae7-_0xc6b979._0x3800cd,_0x32be06,_0x470ae7-0x84);}return _0x4b8926[_0x369ced(_0x1b8d15._0x4f6c17,_0x1b8d15._0x32a67f,0x4f7,_0x1b8d15._0x50377a)]==='reject'||_0x4b8926[_0x3742b3(0x1c7,0x1b1,0x1f6,0x204)]==='run';}function normalizeExecutionError(_0x526c45){const _0x3f0276={_0x2a8713:0x192,_0x461691:0x146,_0x236f4c:0x192,_0x591f5b:0x14a,_0x1ed8ff:0x12a,_0x45755e:0x157,_0x5982d7:0xb,_0x1e505a:0x4e,_0x44cdbc:0x99,_0x4acb97:0x3f,_0x34d489:0x1c,_0x2aabd9:0x31,_0x5e7c70:0x16,_0x51b592:0x27,_0x2b1a6c:0x13,_0x3529f3:0x50,_0x3c1702:0xe1,_0x230166:0x46},_0x10c772={_0x344178:0xbd,_0x99d1fe:0x3,_0x140e8c:0x19f},_0x2fd35c={_0x543082:0x23};if(_0x526c45 instanceof ToolExecutionError)return{'errorMessage':_0x526c45[_0x15af9c(_0x3f0276._0x2a8713,_0x3f0276._0x461691,0x206,0x1c4)],'structured':{'error':_0x526c45[_0x15af9c(_0x3f0276._0x236f4c,_0x3f0276._0x591f5b,_0x3f0276._0x1ed8ff,_0x3f0276._0x45755e)],..._0x526c45[_0x311e2c(-_0x3f0276._0x5982d7,-_0x3f0276._0x1e505a,_0x3f0276._0x44cdbc,0x27)]}};if(_0x526c45 instanceof Error)return{'errorMessage':_0x526c45[_0x311e2c(_0x3f0276._0x4acb97,0x60,_0x3f0276._0x34d489,0x16)],'structured':{'error':_0x526c45[_0x311e2c(-0x59,-0x4,-_0x3f0276._0x2aabd9,_0x3f0276._0x5e7c70)]}};function _0x15af9c(_0x4a21db,_0x21615f,_0x59e130,_0x9b8ee9){return _0x4c1020(_0x59e130,_0x21615f-0x121,_0x59e130-0x35,_0x4a21db- -_0x2fd35c._0x543082);}if(typeof _0x526c45===_0x311e2c(0xf,0x21,_0x3f0276._0x51b592,-_0x3f0276._0x2b1a6c)&&_0x526c45!==null&&'message'in _0x526c45&&typeof _0x526c45[_0x311e2c(-0x1f,0x6c,-_0x3f0276._0x3529f3,0x16)]===_0x15af9c(0x114,_0x3f0276._0x3c1702,0x13e,0x9f))return{'errorMessage':_0x526c45[_0x311e2c(-0x6,_0x3f0276._0x4acb97,_0x3f0276._0x230166,0x16)],'structured':{'error':_0x526c45['message']}};function _0x311e2c(_0x5123ce,_0x2f8ca9,_0x14858b,_0x1b9dea){return _0x4c1020(_0x5123ce,_0x2f8ca9-_0x10c772._0x344178,_0x14858b-_0x10c772._0x99d1fe,_0x1b9dea- -_0x10c772._0x140e8c);}const _0x335579=String(_0x526c45);return{'errorMessage':_0x335579,'structured':{'error':_0x335579}};}async function emitEvent(_0x4da7a8,_0x4b1988,_0x4d2604){await _0x4da7a8?.(_0x4b1988,_0x4d2604);}async function resolveDispatchDecision(_0x30a072,_0x25b0e2,_0x3dfd53){const _0x4b28f6={_0x798e16:0x3bb,_0x39c81f:0x365,_0x5c1cfc:0x35b,_0x21a3a8:0x3a2,_0x1ad59c:0x34e,_0x2a00ac:0x36a,_0x4f630d:0x32d,_0x446c48:0x4be,_0x3f3417:0x3eb,_0x404ea7:0x366,_0x66c936:0x41a},_0x279d26={_0x15add:0x4ae,_0x34008a:0x4c8,_0x771e93:0x4f7,_0x12deca:0x4b6,_0x2ed185:0x62,_0x57ae90:0x5a,_0x418d0a:0x70,_0x5d40d2:0x86,_0x1fa3b8:0xb2},_0x33dfb4={_0x581e32:0x37,_0x3f5bf6:0x1f},_0x4bf7c2={_0x3e9c31:0x78,_0x41f12e:0x150};if(!_0x30a072)return{'action':_0x1ce615(_0x4b28f6._0x798e16,0x3f7,_0x4b28f6._0x39c81f,_0x4b28f6._0x5c1cfc)};function _0xd876ad(_0x1b4d66,_0x2d960f,_0x275f44,_0x26030e){return _0x4c1020(_0x2d960f,_0x2d960f-_0x4bf7c2._0x3e9c31,_0x275f44-_0x4bf7c2._0x41f12e,_0x26030e-0x202);}const _0x3c872d=Promise[_0xd876ad(_0x4b28f6._0x21a3a8,0x3d0,_0x4b28f6._0x1ad59c,0x393)]()[_0xd876ad(0x363,_0x4b28f6._0x2a00ac,_0x4b28f6._0x4f630d,0x337)](()=>_0x30a072(_0x25b0e2,_0x3dfd53));function _0x1ce615(_0x38fd95,_0x2d0d95,_0x335061,_0x31d768){return _0x4c1020(_0x335061,_0x2d0d95-_0x33dfb4._0x581e32,_0x335061-_0x33dfb4._0x3f5bf6,_0x38fd95-0x25c);}if(!_0x3dfd53[_0x1ce615(0x45a,0x48d,0x4bf,_0x4b28f6._0x446c48)]){const _0x16d0a9=await _0x3c872d;return isDispatchDecision(_0x16d0a9)?_0x16d0a9:{'action':'run'};}const _0x18e680=new Promise((_0x57ac0d,_0x433611)=>{const _0x29c008={_0x2b583c:0xe0},_0x3b9989={_0x4f7a9d:0xb2},_0x2bf095={_0x4aa363:0x15c,_0x1792eb:0xf0,_0x5d820b:0x8d,_0x222923:0x78,_0x22f775:0x45,_0x4ab3f6:0x58c},_0x3d5c44=()=>{const _0x254bc5={_0x44d053:0x3be};function _0x45c357(_0x37fc1c,_0x349ee8,_0x40bc48,_0x3a93cd){return _0x41f4(_0x349ee8-_0x254bc5._0x44d053,_0x40bc48);}_0x3dfd53[_0x3996e5(-0x3e,-0x41,0x2,-0x4c)]?.[_0x3996e5(-_0x2bf095._0x4aa363,-0xff,-0x11c,-_0x2bf095._0x1792eb)](_0x3996e5(-_0x2bf095._0x5d820b,-0x7d,-0x19,-0x51),_0x3d5c44);function _0x3996e5(_0x47195e,_0x6cd542,_0x229132,_0x3924bc){return _0x41f4(_0x6cd542- -0x292,_0x3924bc);}_0x433611(toAbortError(_0x3dfd53[_0x3996e5(-_0x2bf095._0x222923,-0x41,-_0x2bf095._0x22f775,-0x79)]?.[_0x45c357(0x5d6,_0x2bf095._0x4ab3f6,0x601,0x588)]));};function _0x52ea1c(_0x1a5a68,_0xa7d815,_0x272d4b,_0x188abc){return _0xd876ad(_0x1a5a68-0x157,_0x272d4b,_0x272d4b-0x1b8,_0x1a5a68-_0x3b9989._0x4f7a9d);}function _0x1a45cc(_0x21ba12,_0x22bc1b,_0x224136,_0x38301a){return _0x1ce615(_0x22bc1b- -0x3d4,_0x22bc1b-0xc8,_0x38301a,_0x38301a-_0x29c008._0x2b583c);}if(_0x3dfd53['signal']?.[_0x52ea1c(_0x279d26._0x15add,_0x279d26._0x34008a,_0x279d26._0x771e93,_0x279d26._0x12deca)]){_0x433611(toAbortError(_0x3dfd53[_0x1a45cc(_0x279d26._0x2ed185,0x86,0x83,0x2b)][_0x1a45cc(0x69,0x3,_0x279d26._0x57ae90,-_0x279d26._0x418d0a)]));return;}_0x3dfd53[_0x1a45cc(0xf1,_0x279d26._0x5d40d2,_0x279d26._0x1fa3b8,0x35)]?.[_0x1a45cc(0x1b,0x59,0xc4,0x7e)]('abort',_0x3d5c44,{'once':!![]});}),_0x6857a=await Promise[_0xd876ad(_0x4b28f6._0x3f3417,0x3ff,0x3cb,0x3de)]([_0x3c872d,_0x18e680]);return isDispatchDecision(_0x6857a)?_0x6857a:{'action':_0x1ce615(_0x4b28f6._0x798e16,0x3d0,_0x4b28f6._0x404ea7,_0x4b28f6._0x66c936)};}async function executeCapturedToolCall(_0x24c5c6,_0x57b4cc,_0x49f3ca,_0x1aa4c4,_0x1dc7c9){const _0x566a34={_0x3c2fd3:0x154,_0x4be10c:0x1ca,_0x4a80e9:0x1c8,_0x4b5796:0x179,_0x29cfaf:0x10e,_0x50c731:0xbc,_0x23f70f:0x160,_0x3c5ea5:0x138,_0x5cecc4:0x19c,_0x272b36:0x149,_0x2012d8:0x1fb,_0x1761b3:0x136,_0x121fb3:0x124,_0x3e9318:0x178,_0x5ebff0:0x1a3,_0x56d7fc:0x19f,_0x6fc938:0x24d,_0x34da88:0x26c,_0x9660b4:0x1e0,_0x90b2fe:0x1d0,_0x2ce420:0x1e8,_0x129f25:0x1dd,_0x353f21:0x18d,_0x590907:0x172,_0x4e79e6:0x120,_0x1be1c4:0x125,_0x4cca53:0x17e,_0x1f2934:0x13c,_0x4154c4:0x1af,_0x5c9a02:0xd5,_0xd1f954:0x1ce,_0x4e8643:0x1e4,_0x2b6c5f:0x17f,_0x51962f:0x1b9,_0x132fb4:0x17b,_0xe010a4:0x23d,_0x4eed86:0x23a,_0x232eb4:0x1c4,_0x131736:0x12d,_0x4dcf81:0x14e,_0x368abc:0x15a,_0x58cc1d:0x12c,_0x1afba4:0x21e,_0x2a20a6:0x1ca,_0x5e5ff1:0x1d5,_0x88e66d:0x181,_0x236dee:0x1ca,_0x34e1d6:0x168,_0x3c5e7f:0x22b},_0x94acd2={_0x8119bd:0x4e9,_0x5f57ac:0x583,_0xccfe0a:0x51b,_0x4afa37:0x2b2},_0x1f972f={_0x3266f2:0x526,_0x5e2853:0x1ce},_0x55254f={_0x3e60c1:0x149,_0x43f73b:0x143},_0x4bdafd={_0x77ec05:0x4b},_0x49a768={_0x4ccff3:0xb8,_0x1f44c9:0x30c},_0x123f8d={..._0x49f3ca,'toolCallId':_0x57b4cc['id'],'permissionClass':resolveToolPermissionClass(_0x24c5c6),'executionAuthorization':void 0x0};throwIfAborted(_0x123f8d[_0x2335f5(-0x17e,-0x110,-0x162,-_0x566a34._0x3c2fd3)]);let _0x13c914;try{_0x13c914=await resolveDispatchDecision(_0x1aa4c4,_0x57b4cc,_0x123f8d);}catch(_0x2b025a){if(isAbortError(_0x2b025a)){const _0x5be984=createAbortedToolResult(_0x57b4cc,_0x2b025a);return await emitEvent(_0x1dc7c9,{'type':_0x2335f5(-_0x566a34._0x4be10c,-_0x566a34._0x4a80e9,-_0x566a34._0x4b5796,-0x219),'toolCall':_0x57b4cc,'result':_0x5be984},_0x123f8d),_0x5be984;}const {errorMessage:_0x1baca4,structured:_0x6e05ae}=normalizeExecutionError(_0x2b025a),_0x56fa0d=createErrorToolResult(_0x57b4cc,_0x1baca4,_0x6e05ae);return await emitEvent(_0x1dc7c9,{'type':_0x45b219(-0x15a,-0x1b9,-0x138,-0x12e),'toolCall':_0x57b4cc,'result':_0x56fa0d},_0x123f8d),_0x56fa0d;}throwIfAborted(_0x123f8d[_0x45b219(-_0x566a34._0x29cfaf,-_0x566a34._0x50c731,-0x12b,-0x172)]);if(_0x13c914['action']===_0x45b219(-0x165,-0x1cc,-_0x566a34._0x23f70f,-_0x566a34._0x3c5ea5)){const _0x469295=createRejectedToolResult(_0x57b4cc,_0x13c914[_0x45b219(-0x191,-0x1cf,-_0x566a34._0x5cecc4,-0x19d)]);return await emitEvent(_0x1dc7c9,{'type':_0x45b219(-0x18a,-_0x566a34._0x272b36,-_0x566a34._0x2012d8,-0x124),'toolCall':_0x57b4cc,'result':_0x469295},_0x123f8d),_0x469295;}if(!_0x24c5c6){const _0x1ae126=createUnknownToolResult(_0x57b4cc);return await emitEvent(_0x1dc7c9,{'type':'tool_completed','toolCall':_0x57b4cc,'result':_0x1ae126},_0x123f8d),_0x1ae126;}const _0x22b15d={..._0x123f8d,'executionAuthorization':_0x13c914[_0x45b219(-0x11a,-0xb4,-_0x566a34._0x1761b3,-0x118)]};function _0x45b219(_0x87709e,_0x31ea0d,_0x1007ab,_0x2a8e6f){return _0x4c1020(_0x1007ab,_0x31ea0d-_0x49a768._0x4ccff3,_0x1007ab-0xf4,_0x87709e- -_0x49a768._0x1f44c9);}throwIfAborted(_0x22b15d[_0x2335f5(-0x17e,-0x187,-_0x566a34._0x121fb3,-0x123)]),await emitEvent(_0x1dc7c9,{'type':_0x45b219(-_0x566a34._0x3e9318,-_0x566a34._0x5ebff0,-_0x566a34._0x56d7fc,-0x19f),'toolCall':_0x57b4cc},_0x22b15d);function _0x2335f5(_0x10e85e,_0xde1e73,_0x277d15,_0x4dccd4){return _0x249222(_0x10e85e-_0x4bdafd._0x77ec05,_0x10e85e- -0x45e,_0xde1e73,_0x4dccd4-0x2);}try{throwIfAborted(_0x22b15d[_0x45b219(-0x10e,-0xd7,-0x12f,-0xba)]);const _0x3b87d4=validateToolInput(_0x57b4cc[_0x2335f5(-_0x566a34._0x6fc938,-_0x566a34._0x34da88,-_0x566a34._0x9660b4,-0x242)],_0x24c5c6[_0x45b219(-_0x566a34._0x90b2fe,-_0x566a34._0x2ce420,-_0x566a34._0x129f25,-0x20a)]),_0x3f98fd=await _0x24c5c6['execute'](_0x3b87d4,_0x22b15d),_0x44207b=[],_0x41cac1=addAbortListener(_0x22b15d['signal'],()=>{function _0x4a0e66(_0x3e9d97,_0x402d58,_0x4e41b2,_0x4b5977){return _0x2335f5(_0x4b5977-0x722,_0x3e9d97,_0x4e41b2-_0x55254f._0x3e60c1,_0x4b5977-_0x55254f._0x43f73b);}function _0x488021(_0x39cfb4,_0x40f816,_0x2714eb,_0x28b271){return _0x2335f5(_0x40f816-_0x1f972f._0x3266f2,_0x39cfb4,_0x2714eb-_0x1f972f._0x5e2853,_0x28b271-0x2b);}void _0x3f98fd[_0x4a0e66(0x501,_0x94acd2._0x8119bd,_0x94acd2._0x5f57ac,_0x94acd2._0xccfe0a)](void 0x0)[_0x488021(0x26f,0x2e3,_0x94acd2._0x4afa37,0x33c)](()=>{});});try{throwIfAborted(_0x22b15d['signal']);let _0x504399=await _0x3f98fd[_0x2335f5(-0x177,-0x1b3,-_0x566a34._0x353f21,-0x184)]();while(!_0x504399[_0x45b219(-_0x566a34._0x590907,-0x127,-_0x566a34._0x4e79e6,-_0x566a34._0x1be1c4)]){throwIfAborted(_0x22b15d[_0x2335f5(-_0x566a34._0x4cca53,-0x1c0,-0x1a9,-0x13b)]);const _0x33eaab=normalizeToolOutputValue(_0x504399['value']);_0x44207b[_0x45b219(-_0x566a34._0x1f2934,-0x16e,-_0x566a34._0x4154c4,-_0x566a34._0x5c9a02)](_0x33eaab),await emitEvent(_0x1dc7c9,{'type':_0x45b219(-0x1b8,-_0x566a34._0xd1f954,-_0x566a34._0x4e8643,-_0x566a34._0x2b6c5f),'toolCall':_0x57b4cc,'chunk':_0x33eaab},_0x22b15d),throwIfAborted(_0x22b15d[_0x2335f5(-0x17e,-0x13d,-_0x566a34._0x51962f,-0x1f2)]),_0x504399=await _0x3f98fd['next']();}throwIfAborted(_0x22b15d['signal']);const _0x226944=_0x504399[_0x45b219(-0x1ca,-_0x566a34._0x132fb4,-_0x566a34._0xe010a4,-0x212)]===void 0x0?deriveFinalToolOutput(_0x44207b):normalizeToolOutputValue(_0x504399[_0x2335f5(-_0x566a34._0x4eed86,-0x251,-0x271,-_0x566a34._0x232eb4)]),_0x488903=createSuccessToolResult(_0x57b4cc,_0x226944,_0x44207b);return await emitEvent(_0x1dc7c9,{'type':_0x45b219(-0x15a,-_0x566a34._0x131736,-0x13c,-_0x566a34._0x4dcf81),'toolCall':_0x57b4cc,'result':_0x488903},_0x22b15d),_0x488903;}catch(_0x140d41){if(isAbortError(_0x140d41)){const _0x19958f=createAbortedToolResult(_0x57b4cc,_0x140d41,_0x44207b);return await emitEvent(_0x1dc7c9,{'type':_0x45b219(-_0x566a34._0x368abc,-0x1cf,-0x1bf,-_0x566a34._0x58cc1d),'toolCall':_0x57b4cc,'result':_0x19958f},_0x22b15d),_0x19958f;}const {errorMessage:_0x15c80c,structured:_0x387443}=normalizeExecutionError(_0x140d41),_0x4ab3c6=createErrorToolResult(_0x57b4cc,_0x15c80c,_0x387443,_0x44207b);return await emitEvent(_0x1dc7c9,{'type':_0x2335f5(-0x1ca,-0x1bb,-_0x566a34._0x1afba4,-0x1c2),'toolCall':_0x57b4cc,'result':_0x4ab3c6},_0x22b15d),_0x4ab3c6;}finally{_0x41cac1();}}catch(_0x286146){if(isAbortError(_0x286146)){const _0x26089e=createAbortedToolResult(_0x57b4cc,_0x286146);return await emitEvent(_0x1dc7c9,{'type':_0x2335f5(-_0x566a34._0x2a20a6,-0x17c,-_0x566a34._0x5e5ff1,-_0x566a34._0x88e66d),'toolCall':_0x57b4cc,'result':_0x26089e},_0x22b15d),_0x26089e;}const {errorMessage:_0x4fc11d,structured:_0x51c8ca}=normalizeExecutionError(_0x286146),_0xba06fd=createErrorToolResult(_0x57b4cc,_0x4fc11d,_0x51c8ca);return await emitEvent(_0x1dc7c9,{'type':_0x2335f5(-_0x566a34._0x236dee,-_0x566a34._0x34e1d6,-_0x566a34._0x3c5e7f,-0x1f6),'toolCall':_0x57b4cc,'result':_0xba06fd},_0x22b15d),_0xba06fd;}}async function executeToolCall(_0x4f8b60,_0x2385e5,_0x55f75d,_0x2ef274,_0x4a7eb1){const _0x41dd0b={_0xaedabc:0x1bc,_0x5804bc:0x16f,_0x945a7f:0x14b,_0x481647:0x51,_0x443bf1:0x89,_0x5e532e:0x1dc,_0x164894:0xec},_0x1ca4cb={_0xf03913:0x65,_0x469dbe:0x41e,_0x59cca3:0x4};function _0x205c34(_0x5cb598,_0x5e8f40,_0x3ac66b,_0x390862){return _0x249222(_0x5cb598-_0x1ca4cb._0xf03913,_0x5e8f40- -_0x1ca4cb._0x469dbe,_0x3ac66b,_0x390862-_0x1ca4cb._0x59cca3);}function _0x12e53b(_0xd8c784,_0x53e223,_0x35c544,_0x509df4){return _0x4c1020(_0x509df4,_0x53e223-0x125,_0x35c544-0x9c,_0x53e223- -0xf2);}const _0xd163be=_0x4f8b60[_0x205c34(-0x223,-_0x41dd0b._0xaedabc,-_0x41dd0b._0x5804bc,-_0x41dd0b._0x945a7f)](_0x2385e5[_0x12e53b(0x47,_0x41dd0b._0x481647,_0x41dd0b._0x443bf1,0xa1)]),_0x8e2591=_0xd163be?.[_0x205c34(-_0x41dd0b._0x5e532e,-0x1ee,-0x1ea,-0x215)]?.[_0x12e53b(0xe0,_0x41dd0b._0x164894,0x128,0x9d)]();try{return await executeCapturedToolCall(_0xd163be,_0x2385e5,_0x55f75d,_0x2ef274,_0x4a7eb1);}finally{_0x8e2591?.();}}function createInternalToolRuntime(_0x353462=[],_0x559645={}){const _0xebb144={_0x1404b6:0x3e,_0x4aeb8f:0x2e8,_0xcdb8e8:0x2a4,_0x1089a7:0x2ac},_0x568816={_0x49c5a1:0x63,_0x2d064b:0x6c,_0x3fc8fe:0x120,_0x74b76e:0x128},_0x8c7290={_0x27a7ae:0x56},_0x1d3ba3={_0x263a29:0x42c,_0xb769ce:0x413},_0x2844b4={_0x5419ca:0x1a6};let _0x4cc77e=new ToolRegistry(_0x353462);return{'listToolSchemas'(){function _0x30f1f7(_0x2e50ba,_0x2dd0eb,_0x4f89dd,_0x1b6414){return _0x41f4(_0x2dd0eb-_0x2844b4._0x5419ca,_0x2e50ba);}return _0x4cc77e[_0x30f1f7(0x357,0x3ba,_0x1d3ba3._0x263a29,_0x1d3ba3._0xb769ce)]();},'setTools'(_0x416be6){_0x4cc77e=new ToolRegistry(_0x416be6);},async 'executeCalls'(_0x3c5213,_0xec3c16){function _0xd3cbf(_0x5b6792,_0x5cc788,_0x2509bc,_0x2fa604){return _0x41f4(_0x5cc788-_0x8c7290._0x27a7ae,_0x5b6792);}function _0x4e479a(_0x29f934,_0x45a99c,_0x5da838,_0x2c784e){return _0x41f4(_0x29f934- -0x1ef,_0x2c784e);}return await Promise[_0x4e479a(0x2e,-0x1f,-_0xebb144._0x1404b6,0x4a)](_0x3c5213[_0xd3cbf(_0xebb144._0x4aeb8f,_0xebb144._0xcdb8e8,_0xebb144._0x1089a7,0x284)](async _0x57dc80=>{const _0x4cc844={_0xe99c9b:0x1ba,_0x42cd09:0x9a,_0xbad639:0x105},_0x527aea={_0x55a72e:0xfc};function _0x181488(_0x5a05ed,_0x3a5a71,_0x2249e6,_0x3cf654){return _0xd3cbf(_0x5a05ed,_0x3a5a71- -0x3ac,_0x2249e6-0x144,_0x3cf654-_0x527aea._0x55a72e);}function _0x153afa(_0x33edd1,_0x126c33,_0x2668ed,_0x2dd122){return _0xd3cbf(_0x2668ed,_0x33edd1- -_0x4cc844._0xe99c9b,_0x2668ed-_0x4cc844._0x42cd09,_0x2dd122-_0x4cc844._0xbad639);}return await executeToolCall(_0x4cc77e,_0x57dc80,_0xec3c16,_0x559645[_0x153afa(_0x568816._0x49c5a1,0xbc,_0x568816._0x2d064b,0x31)],_0x559645[_0x181488(-_0x568816._0x3fc8fe,-_0x568816._0x74b76e,-0x10a,-0xcb)]);}));},async 'execute'(_0x1350b7,_0x5091ec){const [_0xd134f]=await this['executeCalls']([_0x1350b7],_0x5091ec);return _0xd134f;}};}function getOrderedObserverExtensions(_0x161f8d,_0xecea3e){const _0x2979ca={_0x3f59c3:0x624,_0x2ef662:0x5e5},_0x8a260={_0x12453f:0x566,_0x5ef658:0x537,_0x4f1aec:0x573,_0x2cae19:0x5be,_0x283044:0x5c0,_0x241546:0x55,_0x2bc921:0x544,_0x4c1038:0x3c,_0x3f14b0:0x15,_0x5652c8:0x87},_0x27a68b={_0x18b0e2:0x53d,_0x471213:0xc3},_0x254730={_0x31e838:0x5a6,_0x4046e2:0x554,_0x147fc6:0x530,_0x165f32:0x521,_0x3d6f9f:0x4d3},_0x1f53a0={_0x13f2c0:0x56,_0x5cca21:0x4c,_0x4b5321:0x3f0};function _0x52ccd3(_0x4b9f7c,_0x30b78f,_0x3c469b,_0x4dba34){return _0x4c1020(_0x4b9f7c,_0x30b78f-_0x1f53a0._0x13f2c0,_0x3c469b-_0x1f53a0._0x5cca21,_0x3c469b-_0x1f53a0._0x4b5321);}return _0x161f8d[_0x52ccd3(0x613,_0x2979ca._0x3f59c3,0x5de,_0x2979ca._0x2ef662)](_0x3c409b=>{const _0x2cdad2={_0x51fba1:0x46},_0x3ac7f7={_0x4729c5:0x5c,_0x2370e4:0x169};function _0xec8db1(_0x5d9525,_0x37b0c4,_0x4ffa6d,_0xee629e){return _0x52ccd3(_0xee629e,_0x37b0c4-_0x3ac7f7._0x4729c5,_0x37b0c4- -0x3a,_0xee629e-_0x3ac7f7._0x2370e4);}function _0x1b5108(_0x4d3a6b,_0x13da8c,_0x229201,_0x38e441){return _0x52ccd3(_0x13da8c,_0x13da8c-0x3b,_0x4d3a6b-_0x2cdad2._0x51fba1,_0x38e441-0xe6);}return _0x3c409b[_0xec8db1(0x537,0x588,0x579,_0x254730._0x31e838)]!==![]&&_0x3c409b['stage']===_0xecea3e&&_0x3c409b[_0xec8db1(0x4ef,_0x254730._0x4046e2,_0x254730._0x147fc6,0x521)]===_0xec8db1(_0x254730._0x165f32,0x530,0x4d4,_0x254730._0x3d6f9f);})['sort']((_0xfcde21,_0x7c5485)=>{const _0x356abc={_0x275f94:0x11f};function _0x7b27e6(_0x119017,_0x49aa50,_0x197373,_0x7c5a6f){return _0x52ccd3(_0x49aa50,_0x49aa50-0x18c,_0x119017- -_0x27a68b._0x18b0e2,_0x7c5a6f-_0x27a68b._0x471213);}if(_0xfcde21[_0x2a180e(0x5b6,_0x8a260._0x12453f,_0x8a260._0x5ef658,0x54d)]===!![]&&_0x7c5485['terminal']!==!![])return 0x1;function _0x2a180e(_0x5254bf,_0x49ad28,_0x1a8470,_0x1dae2c){return _0x52ccd3(_0x1a8470,_0x49ad28-0x18e,_0x1dae2c- -0x35,_0x1dae2c-_0x356abc._0x275f94);}if(_0xfcde21[_0x2a180e(_0x8a260._0x4f1aec,_0x8a260._0x2cae19,_0x8a260._0x283044,0x54d)]!==!![]&&_0x7c5485[_0x7b27e6(0x45,0xa7,0x6,_0x8a260._0x241546)]===!![])return-0x1;return _0xfcde21[_0x2a180e(_0x8a260._0x12453f,0x57d,0x4eb,_0x8a260._0x2bc921)]-_0x7c5485[_0x7b27e6(_0x8a260._0x4c1038,-_0x8a260._0x3f14b0,0x66,_0x8a260._0x5652c8)];});}function getOrderedTransformerExtensions(_0x5e8f75,_0x14667b){const _0x3be9a9={_0x45a4df:0x403,_0x41fee4:0x43b,_0x327eb8:0x282,_0x1fde92:0x297},_0x4bb28a={_0x131088:0xe,_0x14311f:0x7b,_0x1ca0d2:0x10,_0x5d7b69:0x61},_0x303ca0={_0x185f63:0x95},_0x3fa3a5={_0x2ba80a:0x184},_0x179505={_0x18d7a3:0x10e};function _0x4941ce(_0x45d607,_0x4811a6,_0x3390be,_0x3a0ef3){return _0x4c1020(_0x4811a6,_0x4811a6-_0x179505._0x18d7a3,_0x3390be-0x1d6,_0x45d607-0x9c);}function _0x586672(_0x5b7464,_0x30c029,_0x1324be,_0xf65d68){return _0x249222(_0x5b7464-0x7d,_0x1324be-_0x3fa3a5._0x2ba80a,_0x30c029,_0xf65d68-0x26);}return _0x5e8f75[_0x586672(0x3de,_0x3be9a9._0x45a4df,0x454,_0x3be9a9._0x41fee4)](_0x101b1f=>{const _0x124d4b={_0x2e93b7:0xdc};function _0x420115(_0x396062,_0x45bce2,_0x157c77,_0x1c62b6){return _0x586672(_0x396062-_0x124d4b._0x2e93b7,_0x1c62b6,_0x45bce2- -0x3fc,_0x1c62b6-0x107);}function _0x4edde3(_0xd307ac,_0x132174,_0x21acd8,_0x393407){return _0x586672(_0xd307ac-_0x303ca0._0x185f63,_0x132174,_0x393407- -0x449,_0x393407-0x120);}return _0x101b1f['enabled']!==![]&&_0x101b1f[_0x4edde3(-0x54,0x7,-0x3f,-_0x4bb28a._0x131088)]===_0x14667b&&_0x101b1f[_0x420115(0x55,0x8,_0x4bb28a._0x14311f,-0x3f)]===_0x420115(0x6,_0x4bb28a._0x1ca0d2,_0x4bb28a._0x5d7b69,0x16);})[_0x4941ce(_0x3be9a9._0x327eb8,_0x3be9a9._0x1fde92,_0x3be9a9._0x1fde92,0x233)]((_0x20d155,_0x172e8a)=>_0x20d155[_0x4941ce(0x225,0x262,0x22f,0x22f)]-_0x172e8a[_0x586672(0x41f,0x413,0x3ef,0x40e)]);}function createExtensionRegistry(){const _0x42de25={_0x3437ea:0x458,_0x4344c8:0x45c,_0x330e5c:0x4c5},_0x5db61f={_0x50f178:0x2aa},_0x4b4284={_0x5e54e1:0x59,_0x50011c:0x32},_0x1c8b48={_0x4c1e40:0x9d,_0x2cbd5f:0x7e,_0x4e1197:0x1cc,_0x10f460:0x1bf,_0x468bc9:0xe,_0x500fb6:0x68,_0x1baf27:0x4,_0x27bbf7:0x15,_0x1130e7:0xb7,_0x4933a4:0x81,_0x315fdd:0x62,_0x572344:0x8d,_0x533bdd:0x22d,_0x558a62:0x24c,_0x3c5463:0x17e,_0xb1be42:0x196,_0x4c3532:0x183,_0x2fbb95:0x1b1,_0x314bf7:0x1bd,_0x4b4a70:0x1f0,_0x52eb82:0x162,_0x48e810:0x102},_0x4588c4={_0x3e4e9c:0x5},_0x204215=[];return{'register'(_0x526946){const _0x293a81={_0x1e31ce:0x137};if(_0x526946[_0x4b7feb(0x67,0xba,_0x1c8b48._0x4c1e40,_0x1c8b48._0x2cbd5f)]===_0x7b8912(_0x1c8b48._0x4e1197,0x1d2,0x18a,_0x1c8b48._0x10f460)&&_0x526946['enabled']!==![]&&_0x526946['terminal']===!![]){const _0x2a1db6=_0x204215[_0x4b7feb(-_0x1c8b48._0x468bc9,_0x1c8b48._0x500fb6,_0x1c8b48._0x1baf27,_0x1c8b48._0x27bbf7)](_0xa6d4d2=>_0xa6d4d2[_0x7b8912(0x1f7,0x1f6,0x216,0x256)]===_0x7b8912(0x243,0x1d2,0x197,0x18b)&&_0xa6d4d2['enabled']!==![]&&_0xa6d4d2[_0x4b7feb(0x152,0xf1,0x116,0xf4)]===_0x526946[_0x7b8912(0x201,0x22d,0x1d5,0x217)]&&_0xa6d4d2[_0x4b7feb(0xbe,0xae,0xce,0xd9)]===!![]);if(_0x2a1db6)throw new Error(_0x4b7feb(0x11e,_0x1c8b48._0x1130e7,0x97,0x10e)+_0x526946['id']+_0x4b7feb(0x7c,_0x1c8b48._0x4933a4,_0x1c8b48._0x315fdd,_0x1c8b48._0x572344)+_0x526946[_0x7b8912(0x1e8,_0x1c8b48._0x533bdd,_0x1c8b48._0x558a62,0x287)]+_0x7b8912(_0x1c8b48._0x3c5463,_0x1c8b48._0xb1be42,_0x1c8b48._0x4c3532,_0x1c8b48._0x2fbb95)+_0x2a1db6['id']+_0x7b8912(_0x1c8b48._0x314bf7,0x1d0,_0x1c8b48._0x4b4a70,_0x1c8b48._0x52eb82));}function _0x4b7feb(_0xb07f98,_0x35306c,_0x2d3266,_0x29568d){return _0x41f4(_0x35306c- -_0x293a81._0x1e31ce,_0x29568d);}function _0x7b8912(_0x421615,_0xf89b0b,_0x401526,_0x1b5478){return _0x41f4(_0xf89b0b-_0x4588c4._0x3e4e9c,_0x401526);}_0x204215[_0x4b7feb(0x79,0xec,_0x1c8b48._0x48e810,0xb9)]({..._0x526946});},async 'runTransformers'(_0x373f34,_0x251ae8,_0x2814ec){const _0xf852e5={_0x1f54a7:0x15f};function _0x564497(_0x508758,_0x225e5e,_0x51ca55,_0x18723c){return _0x41f4(_0x51ca55- -_0xf852e5._0x1f54a7,_0x18723c);}let _0x916801=_0x251ae8;for(const _0x5c13ff of getOrderedTransformerExtensions(_0x204215,_0x373f34)){_0x916801=await _0x5c13ff[_0x564497(0x5f,_0x4b4284._0x5e54e1,0x53,_0x4b4284._0x50011c)](_0x916801,_0x2814ec);}return _0x916801;},async 'runObservers'(_0x24856c,_0x28720b,_0x556395){function _0x2d3587(_0x31837d,_0x1752f4,_0x3bec8a,_0x17fac9){return _0x41f4(_0x3bec8a-_0x5db61f._0x50f178,_0x31837d);}for(const _0x34751d of getOrderedObserverExtensions(_0x204215,_0x24856c)){await _0x34751d[_0x2d3587(0x442,_0x42de25._0x3437ea,_0x42de25._0x4344c8,_0x42de25._0x330e5c)](_0x28720b,_0x556395);}}};}function createEmptySnapshot(){return{'totalTokens':0x0,'totalInputTokens':0x0,'totalOutputTokens':0x0,'totalReasoningTokens':0x0,'requestCount':0x0,'modelCallCount':0x0,'toolCallCount':0x0,'totalModelTimeMs':0x0,'currentTokens':0x0,'currentInputTokens':0x0,'currentOutputTokens':0x0,'currentReasoningTokens':0x0,'currentModelTimeMs':0x0,'totalCostUsdTicks':0x0,'totalReportedCostUsdTicks':0x0,'totalEstimatedCostUsdTicks':0x0,'reportedCostCallCount':0x0,'estimatedCostCallCount':0x0,'unpricedModelCallCount':0x0,'historicalMetricsComplete':!![],'missingHistoricalModelCallCount':0x0};}function _0x249222(_0x53dc23,_0x3a8412,_0x53a0aa,_0x222d85){return _0x41f4(_0x3a8412-0x8f,_0x53a0aa);}function applyModelCall(_0x104ae4,_0x7a6c60){const _0x428778={_0x5f4e7c:0x196,_0x29837c:0xff,_0x20af32:0x100,_0x4186d4:0x15e,_0x445d2c:0x150,_0x8b0327:0x1ab,_0x21c8b1:0x137,_0x2169dd:0x176,_0x2b6412:0x2a,_0xe15786:0x1,_0x570888:0x5c,_0x109957:0x8c,_0xae500d:0xe5,_0xd7ce63:0x11c,_0x4a7ce1:0x6b,_0x2163ec:0xc8,_0x36af52:0x8a,_0x5a388b:0x221,_0x8f24f0:0x1bc,_0x437d7d:0x4e,_0xbb3cc1:0x30,_0x5db66f:0x116,_0x2074c9:0x115,_0x15aec2:0x17f,_0x274c0c:0x130,_0x3857ae:0x13,_0x4b4b1b:0x38,_0x42c499:0x73,_0x53055b:0x2d,_0x3291d3:0x196,_0x28afdc:0x17d,_0x2c8c8d:0x10e,_0x56d8c1:0x2,_0x4a95f6:0x42,_0x405ae2:0x175,_0x2cc0e6:0x12a,_0xae4e27:0x1b6,_0x3cbf63:0x16a,_0x24f667:0x1ae,_0x58af6a:0x168,_0x5e22ff:0x1d1,_0x5c2b9a:0x245,_0x36fb26:0x179},_0x4cf2a4={_0x23964c:0x1b5},_0x55a963={_0x539102:0x50},_0x230f43=_0x7a6c60[_0x565c9f(-_0x428778._0x5f4e7c,-_0x428778._0x29837c,-_0x428778._0x20af32,-0x133)],_0x4f3c23=_0x230f43['inputTokens'],_0x342dd7=_0x230f43['outputTokens'],_0xc6df69=_0x230f43[_0x565c9f(-0x145,-_0x428778._0x4186d4,-0x1d3,-0x169)]??0x0,_0x14e6de=_0x4f3c23+_0x342dd7,_0x755c9b=_0x230f43[_0x565c9f(-_0x428778._0x445d2c,-0x16e,-_0x428778._0x8b0327,-0x171)]?.[_0x565c9f(-_0x428778._0x21c8b1,-0x1ac,-_0x428778._0x2169dd,-0x1ab)],_0x52eaa7=_0x230f43[_0x479985(-_0x428778._0x2b6412,-_0x428778._0xe15786,-_0x428778._0x570888,-_0x428778._0x109957)]?.['amountUsdTicks'];function _0x565c9f(_0x98c2f9,_0x59a99b,_0x2f5d19,_0x9fd05d){return _0x249222(_0x98c2f9-_0x55a963._0x539102,_0x9fd05d- -0x3d8,_0x59a99b,_0x9fd05d-0xe);}const _0x5d17e5=_0x755c9b??_0x52eaa7,{currentReportedCostUsdTicks:_0x301f61,currentEstimatedCostUsdTicks:_0x5aa88f,..._0x590157}=_0x104ae4;function _0x479985(_0xe9a1ab,_0x5b85fd,_0x2993ca,_0x25fbc5){return _0x4c1020(_0x5b85fd,_0x5b85fd-0x38,_0x2993ca-0x2a,_0xe9a1ab- -_0x4cf2a4._0x23964c);}return{..._0x590157,'totalTokens':_0x590157['totalTokens']+_0x14e6de,'totalInputTokens':_0x590157[_0x565c9f(-0x181,-0xc0,-_0x428778._0xae500d,-_0x428778._0xd7ce63)]+_0x4f3c23,'totalOutputTokens':_0x590157[_0x479985(-_0x428778._0x4a7ce1,-0x4f,-0x27,-0x61)]+_0x342dd7,'totalReasoningTokens':_0x590157['totalReasoningTokens']+_0xc6df69,'modelCallCount':_0x590157[_0x565c9f(-_0x428778._0x2163ec,-0x9d,-_0x428778._0x36af52,-0xf9)]+0x1,'totalModelTimeMs':_0x590157[_0x565c9f(-0x18f,-0x14e,-_0x428778._0x5a388b,-_0x428778._0x8f24f0)]+_0x7a6c60[_0x479985(-_0x428778._0x437d7d,-_0x428778._0xbb3cc1,-0x69,-0x69)],'currentTokens':_0x14e6de,'currentInputTokens':_0x4f3c23,'currentOutputTokens':_0x342dd7,'currentReasoningTokens':_0xc6df69,'currentModelTimeMs':_0x7a6c60['modelTimeMs'],..._0x590157[_0x565c9f(-0xdc,-_0x428778._0x5db66f,-0x177,-_0x428778._0x2074c9)]&&_0x14e6de>0x0?{'contextWindowUsage':_0x14e6de/_0x590157[_0x565c9f(-0x12d,-_0x428778._0x15aec2,-_0x428778._0x274c0c,-0x115)]}:{},'totalCostUsdTicks':_0x5d17e5===void 0x0?_0x590157[_0x479985(-_0x428778._0x3857ae,_0x428778._0x4b4b1b,-0xe,-_0x428778._0x42c499)]:_0x590157[_0x479985(-0x13,0x28,0x37,_0x428778._0x53055b)]+_0x5d17e5,'totalReportedCostUsdTicks':_0x755c9b===void 0x0?_0x590157[_0x565c9f(-_0x428778._0x3291d3,-0x138,-0x17c,-_0x428778._0x28afdc)]:_0x590157['totalReportedCostUsdTicks']+_0x755c9b,'totalEstimatedCostUsdTicks':_0x52eaa7===void 0x0?_0x590157[_0x565c9f(-_0x428778._0x2074c9,-0x15b,-_0x428778._0x2c8c8d,-0x13f)]:_0x590157[_0x479985(_0x428778._0x56d8c1,0x5d,-0x15,_0x428778._0x4a95f6)]+_0x52eaa7,'reportedCostCallCount':_0x755c9b===void 0x0?_0x590157[_0x565c9f(-0x1d0,-0x1b0,-0x116,-_0x428778._0x405ae2)]:_0x590157[_0x565c9f(-_0x428778._0x2cc0e6,-_0x428778._0xae4e27,-0x1e9,-0x175)]+0x1,'estimatedCostCallCount':_0x52eaa7===void 0x0?_0x590157['estimatedCostCallCount']:_0x590157[_0x565c9f(-_0x428778._0x3cbf63,-0x160,-0x1df,-0x193)]+0x1,'unpricedModelCallCount':_0x755c9b===void 0x0&&_0x52eaa7===void 0x0?_0x590157[_0x565c9f(-0x170,-_0x428778._0x24f667,-_0x428778._0x58af6a,-_0x428778._0x5e22ff)]+0x1:_0x590157[_0x565c9f(-_0x428778._0x5c2b9a,-0x161,-_0x428778._0x36fb26,-_0x428778._0x5e22ff)],..._0x755c9b!==void 0x0?{'currentReportedCostUsdTicks':_0x755c9b}:{},..._0x52eaa7!==void 0x0?{'currentEstimatedCostUsdTicks':_0x52eaa7}:{}};}function createAgentMetrics(_0x2f2afa={}){const _0x46de24={_0x27665a:0x25d,_0x387f7c:0x20d},_0x228591={_0x22751a:0x2a,_0xb5305c:0xa2,_0x3f4ccb:0x42,_0x24614a:0x4fc,_0x3bd4da:0x508,_0x461064:0x566,_0x3deb57:0x5d7,_0x344420:0x4d0,_0x2a10cf:0x5af,_0x3cb91e:0x591,_0x4a8c4f:0x54b,_0x56ed80:0x582,_0x7ed05d:0x526,_0x56ed17:0x521,_0x30f678:0x4ef},_0x54a48d={_0x47153a:0x329,_0x508236:0x341,_0x2bd38f:0x378,_0x4e968a:0x375,_0x4d1e48:0x331,_0x47ed7e:0x1fa,_0x4c417d:0x2bf,_0x170c58:0x2f7,_0xef0f42:0x2b3,_0x580fe4:0x28b,_0x3052c1:0x1c0,_0x53b022:0x1be,_0x421115:0x289,_0x25b385:0x1dd,_0x3d1cbe:0x1d5,_0xf4952a:0x217,_0x3b5f91:0x27a,_0x47b9aa:0x236,_0x33930f:0x2b2,_0x50c722:0x355,_0x44db5c:0x16a,_0x443b83:0x1c8,_0x5a67ad:0x1b7,_0x141eed:0x184,_0x304b98:0x26d,_0x4ecf95:0x224,_0x454d02:0x2bd};let _0x311594=createEmptySnapshot();const _0x5aa5c6=new Set();let _0x4d37f0;const _0x5477e9=()=>{const _0x4f0b33={..._0x311594};for(const _0x45590d of _0x5aa5c6)_0x45590d(_0x4f0b33);};return{'getSnapshot'(){return{..._0x311594};},'recordEvent'(_0x577884){const _0xa907ec={_0x4f0a89:0x3d1};if(_0x577884[_0x1b9884(_0x54a48d._0x47153a,0x351,_0x54a48d._0x508236,0x311)]==='model_request'){_0x4d37f0=Date[_0x1b9884(_0x54a48d._0x2bd38f,_0x54a48d._0x4e968a,0x391,_0x54a48d._0x4d1e48)]();const _0x3ad863=_0x2f2afa['getContextWindowLimit']?.(_0x577884[_0x11d476(-_0x54a48d._0x47ed7e,-0x25a,-0x269,-_0x54a48d._0x4c417d)]);_0x3ad863!==void 0x0&&(_0x311594={..._0x311594,'contextWindowLimit':_0x3ad863},_0x5477e9());return;}if(_0x577884[_0x1b9884(_0x54a48d._0x170c58,0x371,_0x54a48d._0x508236,0x385)]===_0x11d476(-_0x54a48d._0xef0f42,-0x25e,-_0x54a48d._0x580fe4,-0x27d)){const _0x2cf476=_0x4d37f0===void 0x0?0x0:Date[_0x11d476(-_0x54a48d._0x3052c1,-0x1d4,-0x200,-_0x54a48d._0x53b022)]()-_0x4d37f0;_0x4d37f0=void 0x0,_0x311594=applyModelCall(_0x311594,{'usage':_0x577884[_0x11d476(-_0x54a48d._0x421115,-0x238,-_0x54a48d._0x25b385,-_0x54a48d._0x3d1cbe)]['usage'],'modelTimeMs':_0x577884[_0x11d476(-0x1ca,-_0x54a48d._0xf4952a,-0x1b3,-_0x54a48d._0x3b5f91)]??_0x2cf476}),_0x5477e9();return;}function _0x11d476(_0x46de5a,_0x48da5e,_0x381279,_0x4a00ce){return _0x41f4(_0x48da5e- -_0xa907ec._0x4f0a89,_0x4a00ce);}if(_0x577884[_0x11d476(-0x266,-0x224,-_0x54a48d._0x47b9aa,-0x1ba)]===_0x1b9884(_0x54a48d._0x33930f,0x30b,0x30a,_0x54a48d._0x50c722)){_0x311594={..._0x311594,'toolCallCount':_0x311594[_0x11d476(-_0x54a48d._0x44db5c,-_0x54a48d._0x443b83,-_0x54a48d._0x5a67ad,-_0x54a48d._0x141eed)]+0x1},_0x5477e9();return;}function _0x1b9884(_0x155716,_0xdac556,_0x7beafc,_0x546f42){return _0x41f4(_0x7beafc-0x194,_0x546f42);}_0x577884[_0x11d476(-_0x54a48d._0x304b98,-_0x54a48d._0x4ecf95,-0x264,-0x1fa)]===_0x1b9884(0x313,0x35a,0x31d,0x2df)&&(_0x311594={..._0x311594,'requestCount':_0x311594[_0x11d476(-_0x54a48d._0x454d02,-0x25c,-0x1fd,-0x2b8)]+0x1},_0x5477e9());},'reset'(){_0x311594=createEmptySnapshot(),_0x4d37f0=void 0x0,_0x5477e9();},'restore'(_0x3f8fa4){const _0x1075f1={_0xbcbb48:0x350};let _0x23b6e8=createEmptySnapshot();for(const _0x59eafe of _0x3f8fa4[_0x196dd2(_0x228591._0x22751a,_0x228591._0xb5305c,-0x2a,_0x228591._0x3f4ccb)]){_0x23b6e8=applyModelCall(_0x23b6e8,{'usage':_0x59eafe[_0x3f281c(_0x228591._0x24614a,_0x228591._0x3bd4da,_0x228591._0x461064,_0x228591._0x3deb57)],'modelTimeMs':_0x59eafe[_0x3f281c(0x518,0x4af,0x50a,_0x228591._0x344420)]});}function _0x3f281c(_0x585e51,_0x513497,_0x36185f,_0x514043){return _0x41f4(_0x36185f-_0x1075f1._0xbcbb48,_0x585e51);}_0x311594={..._0x23b6e8,'requestCount':_0x3f8fa4['modelCalls'][_0x3f281c(_0x228591._0x2a10cf,0x556,_0x228591._0x3cb91e,_0x228591._0x4a8c4f)](_0x32f8d6=>_0x32f8d6['completesRequest'])['length'],'toolCallCount':_0x3f8fa4[_0x3f281c(_0x228591._0x56ed80,0x591,0x559,_0x228591._0x7ed05d)],'historicalMetricsComplete':_0x3f8fa4['missingModelCallCount']===0x0,'missingHistoricalModelCallCount':_0x3f8fa4[_0x3f281c(_0x228591._0x56ed17,_0x228591._0x30f678,0x544,0x51e)]};function _0x196dd2(_0x29ab35,_0xe03b50,_0x5599d7,_0x4d1cf9){return _0x41f4(_0x4d1cf9- -0x152,_0xe03b50);}_0x4d37f0=void 0x0,_0x5477e9();},'subscribe'(_0x16a590){_0x5aa5c6[_0x544bd4(_0x46de24._0x27665a,0x217,_0x46de24._0x387f7c,0x26f)](_0x16a590);function _0x544bd4(_0x5901c4,_0x444ab4,_0x374e0d,_0x9624f2){return _0x41f4(_0x5901c4-0x12,_0x9624f2);}return()=>{const _0x52ec99={_0x42c178:0xa,_0x12a762:0xc1};function _0x474aaf(_0x16f5da,_0x466bb9,_0x380248,_0x38b2ef){return _0x544bd4(_0x16f5da-0x138,_0x466bb9-_0x52ec99._0x42c178,_0x380248-_0x52ec99._0x12a762,_0x380248);}_0x5aa5c6[_0x474aaf(0x2da,0x31c,0x265,0x331)](_0x16a590);};}};}function makeExtensionContext(_0x544622){return{'state':_0x544622};}async function runStage(_0x55d93e,_0x4b34f0,_0x3a4992,_0x9baf6){const _0xebf001={_0x449eeb:0x195,_0x147d29:0x175},_0x39274e={_0x3343d1:0x45c};function _0x1e6d6f(_0x20eb3f,_0x4a9ede,_0x75c46,_0x5d11d3){return _0x249222(_0x20eb3f-0x1ee,_0x5d11d3- -_0x39274e._0x3343d1,_0x20eb3f,_0x5d11d3-0x114);}const _0x2ec11b=await _0x55d93e[_0x1e6d6f(-0x113,-_0xebf001._0x449eeb,-_0xebf001._0x147d29,-0x189)](_0x4b34f0,_0x3a4992,_0x9baf6);return await _0x55d93e['runObservers'](_0x4b34f0,_0x2ec11b,_0x9baf6),_0x2ec11b;}async function emitEvent2(_0xd5ccef,_0x26a96a,_0x5c38c2){await _0xd5ccef?.(_0x26a96a,_0x5c38c2);}function _0x41f4(_0x178b05,_0x51bd20){_0x178b05=_0x178b05-0x172;const _0x4ea00d=_0x4ea0();let _0x41f417=_0x4ea00d[_0x178b05];if(_0x41f4['RlXaso']===undefined){var _0x3c3fe7=function(_0x4c9987){const _0x1dfc97='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x49290f='',_0x18b697='';for(let _0x812f85=0x0,_0x3f8560,_0x4934bc,_0x5f2ca3=0x0;_0x4934bc=_0x4c9987['charAt'](_0x5f2ca3++);~_0x4934bc&&(_0x3f8560=_0x812f85%0x4?_0x3f8560*0x40+_0x4934bc:_0x4934bc,_0x812f85++%0x4)?_0x49290f+=String['fromCharCode'](0xff&_0x3f8560>>(-0x2*_0x812f85&0x6)):0x0){_0x4934bc=_0x1dfc97['indexOf'](_0x4934bc);}for(let _0x208724=0x0,_0x4800fe=_0x49290f['length'];_0x208724<_0x4800fe;_0x208724++){_0x18b697+='%'+('00'+_0x49290f['charCodeAt'](_0x208724)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x18b697);};_0x41f4['TmGFLm']=_0x3c3fe7,_0x41f4['lxzWyO']={},_0x41f4['RlXaso']=!![];}const _0x137f99=_0x4ea00d[0x0],_0x41e972=_0x178b05+_0x137f99,_0x1d2414=_0x41f4['lxzWyO'][_0x41e972];return!_0x1d2414?(_0x41f417=_0x41f4['TmGFLm'](_0x41f417),_0x41f4['lxzWyO'][_0x41e972]=_0x41f417):_0x41f417=_0x1d2414,_0x41f417;}function replaceToolUseBlocks(_0x124cc1,_0x38e9dd){const _0x5ce953={_0x460586:0xde,_0x74c9d6:0x4e,_0x143349:0x78},_0x4e236c={_0x90895c:0x1cf,_0x63d92f:0x96};let _0xa7785e=0x0;function _0x1743b9(_0x13e227,_0x183c94,_0x1cd320,_0x4673a6){return _0x4c1020(_0x183c94,_0x183c94-_0x4e236c._0x90895c,_0x1cd320-0x10f,_0x1cd320- -_0x4e236c._0x63d92f);}return{..._0x124cc1,'content':_0x124cc1[_0x1743b9(_0x5ce953._0x460586,_0x5ce953._0x74c9d6,0x89,_0x5ce953._0x143349)]['map'](_0x279fed=>{if(_0x279fed['type']!==_0xffd23(0x476,0x4f6,0x484,0x41d))return _0x279fed;const _0x163a33=_0x38e9dd[_0xa7785e];function _0xffd23(_0x3ada6b,_0x5c4dc7,_0x3f4a44,_0x2e83a7){return _0x1743b9(_0x3ada6b-0x90,_0x5c4dc7,_0x3f4a44-0x382,_0x2e83a7-0x182);}return _0xa7785e+=0x1,structuredClone(_0x163a33);})};}function createAssistantMessageId(_0x195a7f,_0x2cd70b){const _0x283cd9={_0x488b5e:0x40e,_0x2a7d98:0x414},_0xb444ff={_0x1e13c7:0xe4,_0x5ea10e:0x13f};function _0x21494d(_0x8469f5,_0x5a70ca,_0x137817,_0x216020){return _0x249222(_0x8469f5-_0xb444ff._0x1e13c7,_0x216020-_0xb444ff._0x5ea10e,_0x5a70ca,_0x216020-0x137);}return _0x195a7f+_0x21494d(0x3b1,0x44a,_0x283cd9._0x488b5e,_0x283cd9._0x2a7d98)+_0x2cd70b;}function createReasoningMessageId(_0x3b8cc7){const _0x134ca2={_0x2f2532:0xdb};function _0x2a2264(_0x504d3c,_0x3ec369,_0x5a0d9e,_0x50b2e9){return _0x249222(_0x504d3c-_0x134ca2._0x2f2532,_0x5a0d9e-0x285,_0x504d3c,_0x50b2e9-0x16b);}return _0x3b8cc7+_0x2a2264(0x4f8,0x542,0x530,0x539);}function withMessageId(_0x529542,_0x555d40){if(_0x529542['id']===_0x555d40)return _0x529542;return{..._0x529542,'id':_0x555d40};}function createAssistantChunkEvent(_0x10d306,_0x275103){const _0x3444e7={_0x23a9b3:0x1b3,_0x292e48:0x1f4,_0x594bbd:0x1d8,_0x4b8159:0x1f0,_0x2f17c2:0x250,_0x139185:0x246,_0x1d5674:0x28c,_0x470ebf:0x2a6,_0x25937a:0x230,_0x360e90:0x1be,_0x1d001a:0x23f,_0x52016a:0x270,_0x4c33c5:0x266,_0x2df031:0x2af},_0x506702={_0x3132f2:0xac},_0x5cfb9f={_0x1cd0a3:0x191,_0x575294:0x430,_0x469604:0x1dd};function _0x4866fe(_0x2a7174,_0x437453,_0x22ae4d,_0x1f29dc){return _0x249222(_0x2a7174-_0x5cfb9f._0x1cd0a3,_0x22ae4d- -_0x5cfb9f._0x575294,_0x2a7174,_0x1f29dc-_0x5cfb9f._0x469604);}if(_0x10d306[_0x4866fe(-_0x3444e7._0x23a9b3,-0x25e,-_0x3444e7._0x292e48,-_0x3444e7._0x594bbd)]!=='content_delta')return void 0x0;if(_0x10d306[_0x513a2d(0x1d0,_0x3444e7._0x4b8159,0x24b,_0x3444e7._0x2f17c2)]===void 0x0)return void 0x0;function _0x513a2d(_0x627840,_0x2e416e,_0xb647c,_0x1ce2e1){return _0x4c1020(_0xb647c,_0x2e416e-0xe6,_0xb647c-0xaf,_0x2e416e-_0x506702._0x3132f2);}return{'type':_0x513a2d(_0x3444e7._0x139185,0x273,_0x3444e7._0x1d5674,_0x3444e7._0x470ebf),'index':_0x10d306['index']??0x0,'messageId':_0x275103,'chunk':{'type':_0x513a2d(0x271,_0x3444e7._0x25937a,_0x3444e7._0x360e90,_0x3444e7._0x1d001a),'index':_0x10d306[_0x513a2d(_0x3444e7._0x52016a,_0x3444e7._0x4c33c5,_0x3444e7._0x2df031,0x269)]??0x0,'text':_0x10d306['text']}};}function createToolUseChunkEvent(_0x121020,_0x2b6e4a){const _0x3034a1={_0x17831c:0x28b,_0x2f3bf0:0x27f,_0x3f937b:0x304,_0x52d590:0x2ed,_0x57beba:0x296,_0x12e34e:0x32e,_0x6cc212:0x323,_0x4d3bda:0x2ba,_0x789781:0x53f,_0x41a3fc:0x28e,_0x331b50:0x5b4,_0x224508:0x551},_0x40e3dc={_0xc6b616:0x1ba,_0x4480cd:0x40,_0x8cdd67:0x3fc};function _0x4a0bc2(_0x43781d,_0x4a3767,_0x30be69,_0x17c120){return _0x4c1020(_0x17c120,_0x4a3767-_0x40e3dc._0xc6b616,_0x30be69-_0x40e3dc._0x4480cd,_0x4a3767-_0x40e3dc._0x8cdd67);}function _0x13206e(_0x5909a1,_0x4af790,_0x386a53,_0x411849){return _0x4c1020(_0x386a53,_0x4af790-0x136,_0x386a53-0x59,_0x411849-0x100);}if(_0x121020['type']!==_0x13206e(0x286,_0x3034a1._0x17831c,0x2da,_0x3034a1._0x2f3bf0))return void 0x0;return{'type':_0x13206e(0x2e6,_0x3034a1._0x3f937b,_0x3034a1._0x52d590,_0x3034a1._0x57beba),'index':_0x121020['index']??0x0,'messageId':_0x2b6e4a,'chunk':{'type':'tool_use_delta','id':_0x121020['id']??'','index':_0x121020[_0x13206e(_0x3034a1._0x12e34e,0x2a3,_0x3034a1._0x6cc212,_0x3034a1._0x4d3bda)]??0x0,..._0x121020[_0x4a0bc2(0x4fc,_0x3034a1._0x789781,0x4d4,0x5a9)]!==void 0x0?{'name':_0x121020[_0x13206e(0x245,_0x3034a1._0x41a3fc,0x247,0x243)]}:{},..._0x121020[_0x4a0bc2(_0x3034a1._0x331b50,_0x3034a1._0x224508,0x52c,0x5a3)]!==void 0x0?{'inputDelta':_0x121020['inputDelta']}:{}}};}function createReasoningChunkEvent(_0x34194d,_0x1c30c9){const _0x2534a7={_0x52c293:0x4ef,_0x1c966f:0x5e,_0x2eacb2:0x1,_0x4c5c79:0xd6,_0x52115a:0x562,_0x5837ad:0x86,_0xdf6e33:0x75,_0x4bcca7:0x45,_0x520315:0x99,_0x5221d0:0x3e,_0x1db6a3:0x8e,_0x582c87:0x43,_0x26bb19:0xe8,_0x26f7a8:0x57a,_0x524969:0x4e0,_0x50f36c:0x53e,_0x5ee66b:0x55d,_0x355c77:0x55e,_0xacfde5:0x549,_0x2e4d25:0x111,_0x1ff91a:0xf0,_0x3d9228:0x7e,_0x8d0579:0x160,_0xbf2a73:0x570,_0x3b7a80:0x595,_0x3bd1ec:0x592,_0x5bdee9:0x564,_0x2d2f58:0x10b,_0x1988b1:0xa0,_0x389d69:0x8d,_0xe8da5c:0x68,_0x47ff02:0x20,_0x2b3203:0xa6,_0xfe7df8:0xd1,_0xb3e8c0:0x124,_0x2d4ede:0xc6},_0xdb4df7={_0x1480e2:0xfd,_0x5379f8:0x395},_0x44042d={_0x2a16bf:0x324};function _0x33b51b(_0x196ec2,_0xc17b55,_0x1de275,_0x236a99){return _0x249222(_0x196ec2-0x168,_0xc17b55- -_0x44042d._0x2a16bf,_0x196ec2,_0x236a99-0xf2);}function _0x391181(_0x7f0c5c,_0x1f0ebb,_0x13afe9,_0x1a2cf7){return _0x4c1020(_0x1f0ebb,_0x1f0ebb-0x38,_0x13afe9-_0xdb4df7._0x1480e2,_0x13afe9-_0xdb4df7._0x5379f8);}switch(_0x34194d[_0x391181(0x527,0x4cb,_0x2534a7._0x52c293,0x4d5)]){case _0x33b51b(-0x47,-_0x2534a7._0x1c966f,-_0x2534a7._0x2eacb2,-0x8a):return{'type':_0x33b51b(-0x101,-0x110,-0x174,-_0x2534a7._0x4c5c79),'index':_0x34194d['index'],'messageId':_0x1c30c9,'chunk':{'type':_0x33b51b(-0x4b,-_0x2534a7._0x1c966f,-0x4b,-0x9e),'index':_0x34194d[_0x391181(0x57c,0x4f7,0x54f,_0x2534a7._0x52115a)]??0x0,'thinking':_0x34194d['thinking']??''},'text':_0x34194d[_0x33b51b(-_0x2534a7._0x5837ad,-0xd6,-_0x2534a7._0xdf6e33,-0x141)]??''};case _0x33b51b(-_0x2534a7._0x4bcca7,-_0x2534a7._0x520315,-0xa2,-_0x2534a7._0x5221d0):return{'type':'reasoning_chunk','index':_0x34194d[_0x33b51b(-0x69,-_0x2534a7._0x1db6a3,-_0x2534a7._0x582c87,-_0x2534a7._0x26bb19)],'messageId':_0x1c30c9,'chunk':{'type':_0x391181(_0x2534a7._0x26f7a8,_0x2534a7._0x524969,_0x2534a7._0x50f36c,_0x2534a7._0x5ee66b),'contentIndex':_0x34194d[_0x391181(_0x2534a7._0x355c77,0x4d5,_0x2534a7._0xacfde5,0x4e3)]??0x0,'delta':_0x34194d[_0x33b51b(-_0x2534a7._0x2e4d25,-_0x2534a7._0x1ff91a,-_0x2534a7._0x3d9228,-_0x2534a7._0x8d0579)]??'','itemId':_0x34194d[_0x33b51b(-0xac,-0x55,-0x80,-0x2f)]??'','outputIndex':_0x34194d[_0x391181(0x5a3,_0x2534a7._0xbf2a73,_0x2534a7._0x3b7a80,0x5cc)]??0x0},'text':_0x34194d[_0x33b51b(-0xcd,-0xf0,-0xdd,-0xbe)]??''};case _0x391181(0x581,_0x2534a7._0x3bd1ec,_0x2534a7._0x5bdee9,0x4ff):return{'type':'reasoning_chunk','index':_0x34194d[_0x33b51b(-0xd6,-0xd1,-_0x2534a7._0x2d2f58,-_0x2534a7._0x1988b1)],'messageId':_0x1c30c9,'chunk':{'type':'openai_reasoning_summary_delta','delta':_0x34194d[_0x33b51b(-0x7e,-0xf0,-_0x2534a7._0x389d69,-0xc8)]??'','itemId':_0x34194d[_0x33b51b(-0x3d,-0x55,-_0x2534a7._0xe8da5c,-_0x2534a7._0x47ff02)]??'','outputIndex':_0x34194d[_0x391181(0x56a,0x5d3,0x595,0x5a7)]??0x0,'summaryIndex':_0x34194d[_0x33b51b(-_0x2534a7._0x2b3203,-_0x2534a7._0xfe7df8,-_0x2534a7._0xb3e8c0,-_0x2534a7._0x2d4ede)]??0x0},'text':_0x34194d['delta']??''};default:return void 0x0;}}function isAbortedToolResult(_0x242044){const _0x2179ed={_0x238122:0x31f,_0x573062:0x3d7,_0x3ab29f:0x376,_0x579f8e:0x32f,_0x48aab5:0x37b,_0x2471e1:0x3db,_0x3d6c6c:0x3a7},_0x226a2b={_0x3f5bb5:0xbd,_0x5c8406:0xce},_0x2111e9={_0x4f3080:0xd,_0x6c820d:0x2a};function _0x65bc65(_0x2304c6,_0x433c69,_0xd9c399,_0x57d564){return _0x249222(_0x2304c6-_0x2111e9._0x4f3080,_0x2304c6- -0x363,_0xd9c399,_0x57d564-_0x2111e9._0x6c820d);}function _0x348479(_0x57482c,_0x405cee,_0x91a69a,_0x24f4e4){return _0x249222(_0x57482c-_0x226a2b._0x3f5bb5,_0x405cee-_0x226a2b._0x5c8406,_0x57482c,_0x24f4e4-0x1e5);}return _0x242044[_0x348479(_0x2179ed._0x238122,0x38f,0x3cd,_0x2179ed._0x573062)]==='error'&&_0x242044[_0x348479(0x395,_0x2179ed._0x3ab29f,_0x2179ed._0x579f8e,_0x2179ed._0x48aab5)][_0x348479(0x393,0x3aa,_0x2179ed._0x2471e1,_0x2179ed._0x3d6c6c)]===!![];}function _0x4c1020(_0x33aa5d,_0x1c9b15,_0x3332b6,_0x5de3fb){return _0x41f4(_0x5de3fb- -0x53,_0x33aa5d);}async function executeModelRequest(_0x3aa691,_0x167f39,_0x1762a8,_0x2bd934,_0x1f7618,_0x4d77c6){const _0x5872ea={_0x3f8fcc:0x51c,_0x465bdb:0x3ca,_0x3bdc72:0x42d,_0x37d8ee:0x1a1,_0x5bb2a6:0x190,_0x3bba0d:0x15a,_0x17f699:0x3ed,_0x2db131:0x534,_0x1446f6:0x547,_0x30a4e3:0x500,_0x3c9b4e:0x234,_0x302821:0x24d,_0x305725:0x24f,_0x37e809:0x24a,_0x2860e0:0x260,_0x3dbff1:0x2a0,_0x52146e:0x43e,_0x2ee9fb:0x400,_0x150764:0x463,_0x36ab03:0x24e,_0xb5dcb2:0x1e2,_0x4abe5f:0x24b,_0x4e3dfe:0x195,_0x2a6835:0x4a9,_0x19c596:0x4ce,_0x425225:0x45c,_0x1849b1:0x20b,_0x570bc1:0x1cc,_0x5dea78:0x1c9,_0x4c5509:0x246,_0x467606:0x4df,_0x5bc58d:0x419,_0x1841c0:0x47e,_0x40e6d7:0x42e,_0x3990f4:0x4a3,_0x5544a2:0x230,_0x16b0ef:0x1de,_0x45ba23:0x220,_0x2d0420:0x492,_0x2fa1de:0x400,_0xfbbc95:0x463,_0x100bf:0x4bd,_0xd9b0b6:0x44b,_0x1197ba:0x223,_0x3b6e7b:0x1e5,_0x2168e7:0x1b3,_0x5f0429:0x1bf,_0x448677:0x45b,_0x3fbe70:0x2c4,_0x57a862:0x290,_0x37e788:0x493,_0xf83ade:0x45c,_0x3a4497:0x475,_0x507b7d:0x427,_0x2d78d8:0x41a,_0x7385fe:0x441,_0x36bf6e:0x446,_0x57d847:0x4a4,_0x50b212:0x495,_0x14e745:0x22d,_0x23b17b:0x26c,_0x5dd155:0x4ec,_0x2158db:0x44a,_0x2d2612:0x4b2,_0x116eb6:0x1e4,_0x1db11e:0x23d,_0x16bf6d:0x235,_0x146f12:0x49f,_0x5230ce:0x45d,_0x44c46a:0x1de,_0x712294:0x171,_0x4e2055:0x1d0,_0xef2d42:0x495,_0x10ce31:0x436,_0x2ab764:0x466,_0x42709e:0x3f1,_0x23179c:0x46b,_0x7fe7e:0x4b1,_0x15892f:0x44b,_0x18b3bb:0x14e,_0x590c66:0x466,_0x52c0d0:0x1b3},_0x14fe69={_0x4f15ff:0x96,_0x607ff1:0x470},_0x3cec0a={_0x593c27:0x3a};throwIfAborted(_0x167f39[_0x252c58(0x4fe,_0x5872ea._0x3f8fcc,0x4ce,0x500)]);function _0x252c58(_0x5600fe,_0x492320,_0x12c69c,_0x24dda0){return _0x4c1020(_0x12c69c,_0x492320-0x165,_0x12c69c-_0x3cec0a._0x593c27,_0x24dda0-0x302);}if(!_0x167f39['streaming']||!_0x1762a8[_0x252c58(_0x5872ea._0x465bdb,0x3ca,0x438,_0x5872ea._0x3bdc72)])return await _0x1762a8[_0xe4c2df(-0x1ee,-0x1b8,-_0x5872ea._0x37d8ee,-0x180)](_0x3aa691,{'signal':_0x167f39[_0xe4c2df(-_0x5872ea._0x5bb2a6,-0x205,-0x15b,-_0x5872ea._0x3bba0d)]});let _0x1ff0c4;for await(const _0x202b84 of _0x1762a8[_0x252c58(0x3f1,0x44f,_0x5872ea._0x17f699,_0x5872ea._0x3bdc72)](_0x3aa691,{'signal':_0x167f39['signal']})){throwIfAborted(_0x167f39[_0x252c58(0x524,_0x5872ea._0x2db131,_0x5872ea._0x1446f6,_0x5872ea._0x30a4e3)]);if(_0x202b84[_0xe4c2df(-_0x5872ea._0x3c9b4e,-0x1ff,-_0x5872ea._0x302821,-0x251)]===_0xe4c2df(-0x1f4,-_0x5872ea._0x305725,-_0x5872ea._0x37e809,-0x217)){_0x4d77c6[_0xe4c2df(-0x22d,-0x1df,-_0x5872ea._0x2860e0,-_0x5872ea._0x3dbff1)]['reasoningStartedAt']!==void 0x0&&_0x4d77c6[_0x252c58(_0x5872ea._0x52146e,0x477,_0x5872ea._0x2ee9fb,_0x5872ea._0x150764)]['reasoningCompletedAt']===void 0x0&&(_0x4d77c6[_0xe4c2df(-0x22d,-0x1d2,-0x227,-0x27d)][_0xe4c2df(-0x245,-_0x5872ea._0x36ab03,-_0x5872ea._0xb5dcb2,-_0x5872ea._0x4abe5f)]=Date[_0xe4c2df(-0x1e4,-_0x5872ea._0x4e3dfe,-0x1ed,-0x18e)]());_0x1ff0c4=_0x202b84['response'];continue;}if(_0x202b84[_0x252c58(_0x5872ea._0x2a6835,0x410,_0x5872ea._0x19c596,_0x5872ea._0x425225)]===_0xe4c2df(-_0x5872ea._0x1849b1,-0x234,-0x1d8,-0x26a)){await emitEvent2(_0x2bd934[_0xe4c2df(-0x1b3,-0x1f1,-_0x5872ea._0x570bc1,-_0x5872ea._0x5dea78)],{'type':_0xe4c2df(-0x20b,-0x1df,-0x236,-_0x5872ea._0x4c5509),'assistantMessageId':_0x4d77c6[_0x252c58(_0x5872ea._0x467606,0x42c,_0x5872ea._0x5bc58d,_0x5872ea._0x1841c0)],'reasoningMessageId':_0x4d77c6[_0x252c58(0x3e6,_0x5872ea._0x40e6d7,_0x5872ea._0x3990f4,0x42e)]},_0x1f7618),delete _0x4d77c6[_0xe4c2df(-0x22d,-0x215,-0x1cb,-_0x5872ea._0x5544a2)][_0xe4c2df(-_0x5872ea._0x16b0ef,-0x197,-0x1f4,-_0x5872ea._0x45ba23)],delete _0x4d77c6[_0x252c58(0x421,_0x5872ea._0x2d0420,_0x5872ea._0x2fa1de,_0x5872ea._0xfbbc95)][_0x252c58(0x3ea,0x48d,_0x5872ea._0x100bf,_0x5872ea._0xd9b0b6)];continue;}if(_0x202b84['type']===_0xe4c2df(-_0x5872ea._0x1197ba,-0x25b,-0x268,-_0x5872ea._0x3b6e7b)){await emitEvent2(_0x2bd934[_0xe4c2df(-_0x5872ea._0x2168e7,-0x1a2,-0x145,-_0x5872ea._0x5f0429)],{..._0x202b84,'assistantMessageId':_0x4d77c6[_0x252c58(_0x5872ea._0x448677,0x499,0x483,0x47e)]},_0x1f7618);continue;}const _0x39f745=createReasoningChunkEvent(_0x202b84,_0x4d77c6[_0xe4c2df(-0x262,-_0x5872ea._0x3fbe70,-0x2c8,-_0x5872ea._0x57a862)]);if(_0x39f745&&_0x39f745[_0x252c58(0x3ed,_0x5872ea._0x37e788,0x469,_0x5872ea._0xf83ade)]===_0x252c58(0x4a1,_0x5872ea._0x3a4497,_0x5872ea._0x507b7d,0x434)&&_0x39f745[_0x252c58(0x47e,_0x5872ea._0x2d78d8,_0x5872ea._0x7385fe,_0x5872ea._0x36bf6e)][_0x252c58(0x4e6,_0x5872ea._0x57d847,_0x5872ea._0x50b212,0x4f7)]>0x0){_0x4d77c6[_0xe4c2df(-_0x5872ea._0x14e745,-_0x5872ea._0x23b17b,-0x281,-0x221)][_0x252c58(0x50d,0x508,_0x5872ea._0x5dd155,0x4b2)]===void 0x0&&(_0x4d77c6['meta'][_0x252c58(0x45e,_0x5872ea._0x2158db,0x498,_0x5872ea._0x2d2612)]=Date[_0xe4c2df(-_0x5872ea._0x116eb6,-_0x5872ea._0x1db11e,-_0x5872ea._0x16bf6d,-0x187)]());await emitEvent2(_0x2bd934['onEvent'],_0x39f745,_0x1f7618);continue;}const _0x1ca969=createAssistantChunkEvent(_0x202b84,_0x4d77c6['assistantMessageId']);if(_0x1ca969){_0x4d77c6[_0x252c58(_0x5872ea._0x146f12,_0x5872ea._0x5230ce,_0x5872ea._0x37e788,0x463)][_0xe4c2df(-_0x5872ea._0x44c46a,-0x199,-_0x5872ea._0x712294,-_0x5872ea._0x4e2055)]!==void 0x0&&_0x4d77c6[_0x252c58(0x4ba,_0x5872ea._0xef2d42,_0x5872ea._0x10ce31,0x463)][_0x252c58(_0x5872ea._0x2ab764,_0x5872ea._0x42709e,0x430,0x44b)]===void 0x0&&(_0x4d77c6[_0x252c58(0x459,0x4b2,_0x5872ea._0x23179c,0x463)][_0x252c58(0x3fa,_0x5872ea._0x7fe7e,0x4c1,_0x5872ea._0x15892f)]=Date['now']());await emitEvent2(_0x2bd934[_0xe4c2df(-_0x5872ea._0x2168e7,-_0x5872ea._0x18b3bb,-_0x5872ea._0x570bc1,-0x205)],_0x1ca969,_0x1f7618);continue;}const _0x1ffb0f=createToolUseChunkEvent(_0x202b84,_0x4d77c6[_0x252c58(_0x5872ea._0x590c66,0x479,0x4df,0x47e)]);_0x1ffb0f&&await emitEvent2(_0x2bd934[_0xe4c2df(-_0x5872ea._0x52c0d0,-0x17e,-0x17e,-0x228)],_0x1ffb0f,_0x1f7618);}function _0xe4c2df(_0x2ee2f1,_0x3a7520,_0x2e9cb1,_0x19a2b2){return _0x249222(_0x2ee2f1-_0x14fe69._0x4f15ff,_0x2ee2f1- -_0x14fe69._0x607ff1,_0x3a7520,_0x19a2b2-0x145);}if(!_0x1ff0c4)throw new Error('Model\x20stream\x20ended\x20without\x20a\x20final\x20response');return _0x1ff0c4;}function makeTurnGuards(_0x25f986,_0x4839ac,_0x2041fb,_0x2f5467,_0x5ee62c){return{async 'stage'(_0x49987a,_0x2d7273){return throwIfAborted(_0x25f986),await runStage(_0x4839ac,_0x49987a,_0x2d7273,_0x2f5467);},async 'emit'(_0xa51b0c){throwIfAborted(_0x25f986),await emitEvent2(_0x2041fb,_0xa51b0c,_0x5ee62c);},async 'stageUnchecked'(_0x29f877,_0x53c1a7){return await runStage(_0x4839ac,_0x29f877,_0x53c1a7,_0x2f5467);},async 'emitUnchecked'(_0x1865b1){await emitEvent2(_0x2041fb,_0x1865b1,_0x5ee62c);}};}async function runTurn(_0xb903e,_0x5728f9){const _0x307413={_0x1d7f78:0x30d,_0x494ac0:0x2ea,_0x409d54:0x157,_0x2e96d5:0x1f2,_0x1acae1:0x20a,_0x32c199:0x195,_0x4c9d4a:0x18e,_0x1e240b:0x13c,_0x10c74d:0xcb,_0x4766cc:0x176,_0x48b51c:0x309,_0x40e775:0x300,_0x578e93:0xf3,_0x45a537:0xf7,_0x4e4f3b:0x114,_0x82ca7b:0x125,_0x55d259:0x123,_0x36ecce:0x137,_0x2df072:0x23f,_0x50d3d8:0x24a,_0x3a210f:0x236,_0x4638eb:0x249,_0x6b0683:0x263,_0x22f84a:0x183,_0x3f6c11:0x233,_0x11a018:0xf2,_0x59d746:0x10d,_0x4efd2e:0xae,_0x56a3be:0x255,_0x39943b:0x1ee,_0xc77834:0x213,_0x3d7c30:0x1ec,_0x2a4692:0x25f,_0x4753e8:0x238,_0x32d817:0x1aa,_0x5c6a64:0x1c5,_0x634370:0x17b,_0x32c869:0x105,_0x262a57:0x272,_0x3200ff:0x24b,_0x260a23:0x299,_0xf7ddb9:0x12f,_0x3a83a6:0x178,_0x4aed01:0xca,_0x50e7f4:0x133,_0xc9bec9:0x19e,_0x30defd:0x2a8,_0x3aa4c5:0x2b4,_0x2ac8cb:0x241,_0x235ffd:0x228,_0x36d3c0:0x270,_0x2e2cbb:0x27b,_0x49ff41:0x2ee,_0x517d5e:0x2a4,_0x8bcfcb:0x172,_0x4fac47:0x18b,_0x17a0f6:0x132,_0x5bea5c:0x298,_0x26a07c:0x2ba,_0x60b10d:0x26b,_0x3f80d1:0x308,_0x5d80dc:0x27d,_0x33a5b5:0x2cf,_0x14be41:0x2f7,_0x1dc51f:0x2cb,_0x497942:0x325,_0x336923:0x104,_0x162c9b:0x14e,_0x2fe59f:0x1b8,_0x50618f:0x12a,_0x3ab12e:0x124,_0x3b5788:0x144,_0x5b3556:0x140,_0x93ccb5:0xcf,_0x5f54fe:0x1b9,_0x4e8b86:0x1ef,_0x15b9b2:0x140,_0x143ff1:0x156,_0x2032e5:0x1c6,_0x4e9ecd:0x187,_0x44728d:0x12c,_0x1d922a:0x10f,_0x42847b:0x1b2,_0x32c268:0x170,_0x18e217:0x12e,_0x323f88:0x17d,_0x24fd9f:0x181,_0x326383:0x179,_0x358c05:0x1ba,_0x1a0795:0x1c1,_0x8e8ca5:0x184,_0x2ebd67:0x269,_0x2b46ca:0x202,_0x4b37db:0x149,_0x168041:0x14e,_0x4b3776:0xff,_0x4f199a:0x189,_0x2da6c8:0x19a,_0x4f8b95:0x204,_0xf969c8:0x231,_0x36bfda:0xf4,_0x24876c:0xc5,_0x8b54db:0x2c3,_0x5edff9:0x201,_0x230695:0x20f,_0x50e38c:0x378,_0x21d25b:0x1dc,_0x402bad:0x175,_0x3b63d4:0x2fe,_0x4940ee:0x321,_0x1578f6:0x2e1,_0x1983ac:0x2c9,_0x1029b0:0x2cd,_0x22b693:0x1e1,_0x581cbe:0x303,_0x4a5d59:0x290,_0x229fab:0x159,_0x5921f8:0x1a4,_0x2aca44:0x197,_0x1b789b:0x21a,_0x44a3fe:0x21e,_0x1827e2:0x17e,_0x34a927:0xf6,_0x111ae9:0x165,_0xbb4e08:0x1c8,_0x465954:0x189,_0x43ebe6:0x2a7,_0x322bb4:0x2ba,_0x5e0497:0x232,_0x3322fa:0x2ad,_0x44487c:0x30c,_0x21bc32:0x28a,_0xc26f4f:0x2c9,_0x273a40:0x16e,_0x1f94db:0x2a5,_0x43a266:0x2bb,_0x3c399e:0x316,_0xa45c7d:0x2af,_0x31e968:0xf9,_0xa61f42:0x144,_0x46e2a9:0x13b,_0x5b99d5:0x162,_0x41ec93:0x183,_0x58bff3:0x1c0,_0x3cf5fe:0x1f3,_0x45fd6d:0x1fc,_0x37c9df:0x222},_0x1d2b9b={_0x1dcb47:0x1ee,_0x20011c:0x191,_0x4750ed:0x1aa,_0x1ad307:0x128,_0x57638e:0x15c,_0x3e91d7:0xef,_0x25783a:0xa0,_0x1cfc32:0x1d4,_0xa6432f:0x246,_0x25ef56:0xfe,_0x4613a1:0x166,_0x55b1ca:0x182,_0x34c814:0x1b5,_0x2edbe5:0x2a4,_0x117320:0x272},_0x1ba6d9={_0x4b1da4:0x183,_0xf9d92b:0x30},_0x167b6d={_0x308ffc:0x183},_0x5568af={_0xc8f6fb:0x584,_0xc2319a:0x5ab,_0xf91a4d:0x562,_0x15cdb8:0x12a,_0x292409:0xcf},_0x19e026={_0x26bd13:0x1c3,_0x226a25:0x1d1},_0x1feb3c={_0x262b2a:0x11c,_0x827b80:0x185},_0x3700d5={_0xe87fef:0x2c},_0x50db18=_0x5728f9[_0x475fc0(0x2b1,0x2fb,_0x307413._0x1d7f78,_0x307413._0x494ac0)],_0x5d68bc=_0xb903e[_0x5ead59(_0x307413._0x409d54,0x198,0x1c4,0x1ba)]??new AbortController()[_0x5ead59(_0x307413._0x2e96d5,_0x307413._0x1acae1,0x1c4,_0x307413._0x32c199)];function _0x475fc0(_0x581eed,_0x461735,_0x5ee7ab,_0x495c2b){return _0x249222(_0x581eed-0x89,_0x581eed-_0x3700d5._0xe87fef,_0x5ee7ab,_0x495c2b-0x59);}function _0x5ead59(_0x334098,_0x59cae4,_0x114412,_0x47231a){return _0x249222(_0x334098-0x1f,_0x114412- -_0x1feb3c._0x262b2a,_0x334098,_0x47231a-_0x1feb3c._0x827b80);}const _0x357c43={'sessionId':_0xb903e[_0x5ead59(_0x307413._0x4c9d4a,0x133,0x183,0x1c2)],'turnId':_0xb903e[_0x5ead59(_0x307413._0x1e240b,_0x307413._0x10c74d,0x12f,0x12f)],'system':normalizeSystem(_0xb903e[_0x475fc0(0x280,0x27e,0x2f6,0x2a6)]),'messages':(_0xb903e[_0x5ead59(0x1b5,0x1c9,0x1b6,_0x307413._0x4766cc)]??[])[_0x475fc0(_0x307413._0x48b51c,0x32c,0x2bb,_0x307413._0x40e775)](normalizeMessage),'lastResponse':void 0x0,'toolResults':[],'finalMessage':void 0x0,'sessionDir':typeof _0x5728f9[_0x5ead59(_0x307413._0x578e93,0xfc,_0x307413._0x45a537,_0x307413._0x4e4f3b)]===_0x5ead59(0xc3,_0x307413._0x82ca7b,_0x307413._0x55d259,_0x307413._0x36ecce)?_0x5728f9[_0x475fc0(_0x307413._0x2df072,_0x307413._0x50d3d8,_0x307413._0x3a210f,0x25d)]():_0x5728f9[_0x475fc0(_0x307413._0x2df072,_0x307413._0x4638eb,0x22f,_0x307413._0x6b0683)]},_0x48e76f=makeExtensionContext(_0x357c43),_0x335026={'sessionId':_0x357c43[_0x5ead59(0x1a2,0x185,_0x307413._0x22f84a,0x1b8)],'turnId':_0x357c43[_0x475fc0(0x277,0x248,0x2b0,_0x307413._0x3f6c11)],'state':_0x357c43,'signal':_0x5d68bc,..._0x5728f9[_0x475fc0(0x26a,0x29d,0x286,0x205)]?{'askUser':_0x5728f9['askUser']}:{},..._0x5728f9[_0x5ead59(0x169,_0x307413._0x11a018,_0x307413._0x59d746,_0x307413._0x4efd2e)]?{'setTopic':_0x5728f9[_0x475fc0(_0x307413._0x56a3be,_0x307413._0x39943b,_0x307413._0xc77834,_0x307413._0x3d7c30)]}:{}},{stage:_0x2063ba,emit:_0x132676,stageUnchecked:_0x53fafe,emitUnchecked:_0x197acb}=makeTurnGuards(_0x5d68bc,_0x5728f9['registry'],_0x5728f9[_0x475fc0(0x2e9,0x2a9,0x289,0x340)],_0x48e76f,_0x335026),_0x5a0799=async(_0x24eae6,_0x18b4f4)=>{const _0x146cda={_0x56c2bc:0x301};function _0x82bce5(_0x2f5cf6,_0x59c771,_0x377a1e,_0x2a2005){return _0x5ead59(_0x2f5cf6,_0x59c771-_0x19e026._0x26bd13,_0x59c771- -0x1ce,_0x2a2005-_0x19e026._0x226a25);}const _0x377593=_0x18b4f4?{..._0x48e76f,'turnMeta':_0x18b4f4}:_0x48e76f;function _0xef2f9c(_0x33031f,_0x494025,_0x3a66dc,_0x302d2b){return _0x475fc0(_0x302d2b-_0x146cda._0x56c2bc,_0x494025-0x1e9,_0x494025,_0x302d2b-0x109);}await _0x5728f9['registry'][_0xef2f9c(_0x5568af._0xc8f6fb,_0x5568af._0xc2319a,0x569,_0x5568af._0xf91a4d)](_0x82bce5(-_0x5568af._0x15cdb8,-0xe1,-0x139,-_0x5568af._0x292409),structuredClone(_0x24eae6),_0x377593);},_0x6351d=async _0x29405f=>{if(!_0xb903e[_0x4281fd(_0x1d2b9b._0x1dcb47,_0x1d2b9b._0x20011c,_0x1d2b9b._0x4750ed,0x193)])return 0x0;const _0x16589b=await _0xb903e[_0xb0d700(_0x1d2b9b._0x1ad307,_0x1d2b9b._0x57638e,_0x1d2b9b._0x3e91d7,_0x1d2b9b._0x25783a)]();throwIfAborted(_0x5d68bc);if(_0x16589b[_0x4281fd(0x2bb,_0x1d2b9b._0x1cfc32,_0x1d2b9b._0xa6432f,0x23f)]===0x0)return 0x0;function _0x4281fd(_0x4c8436,_0x38db87,_0x44132b,_0x466d2f){return _0x475fc0(_0x44132b- -0xbd,_0x38db87-_0x167b6d._0x308ffc,_0x4c8436,_0x466d2f-0x102);}await _0x29405f?.();for(const _0x408250 of _0x16589b){const _0x3fcb95=await _0x2063ba(_0xb0d700(_0x1d2b9b._0x25ef56,0xbe,0xe7,0x12a),normalizeMessage(_0x408250));throwIfAborted(_0x5d68bc),_0x357c43['messages'][_0xb0d700(0x17e,0x1bf,_0x1d2b9b._0x4613a1,_0x1d2b9b._0x55b1ca)](_0x3fcb95),await _0x5a0799(_0x3fcb95),await _0x132676({'type':_0x4281fd(0x225,0x1dd,_0x1d2b9b._0x34c814,0x1a6),'message':_0x3fcb95});}function _0xb0d700(_0x2ad8b9,_0x3d9e33,_0x1e2b61,_0x1ac28f){return _0x5ead59(_0x2ad8b9,_0x3d9e33-_0x1ba6d9._0x4b1da4,_0x1e2b61- -_0x1ba6d9._0xf9d92b,_0x1ac28f-0x35);}return _0x16589b[_0x4281fd(_0x1d2b9b._0x2edbe5,0x21d,0x246,_0x1d2b9b._0x117320)];};let _0x365a77=0x0;try{const _0xe1072d=await _0x2063ba(_0x475fc0(_0x307413._0x2a4692,_0x307413._0x4753e8,0x296,0x1f7),normalizeMessage(_0xb903e[_0x5ead59(_0x307413._0x32d817,_0x307413._0x5c6a64,_0x307413._0x634370,_0x307413._0x32c869)]));_0x357c43['messages']['push'](_0xe1072d),await _0x5a0799(_0xe1072d),await _0x132676({'type':_0x475fc0(_0x307413._0x262a57,_0x307413._0x3200ff,_0x307413._0x260a23,0x246),'message':_0xe1072d});while(!![]){throwIfAborted(_0x5d68bc),_0x365a77+=0x1;const _0x28434a=createAssistantMessageId(_0x357c43[_0x5ead59(0xc7,0xf4,_0x307413._0xf7ddb9,_0x307413._0x3a83a6)],_0x365a77),_0x5c9445=createReasoningMessageId(_0x28434a),_0x552909={'model':_0x50db18[_0x5ead59(_0x307413._0x4aed01,0x126,_0x307413._0x50e7f4,_0x307413._0xc9bec9)],'modelIdentity':_0x50db18['modelIdentity'],..._0x50db18[_0x475fc0(0x241,0x263,_0x307413._0x30defd,_0x307413._0x3aa4c5)]?{'provider':_0x50db18[_0x475fc0(_0x307413._0x2ac8cb,0x25c,_0x307413._0x235ffd,_0x307413._0x36d3c0)]}:{}};let _0x3e6d1e={'model':_0x50db18[_0x475fc0(_0x307413._0x2e2cbb,0x26c,_0x307413._0x49ff41,_0x307413._0x517d5e)],..._0x50db18['maxTokens']!==void 0x0?{'maxTokens':_0x50db18[_0x5ead59(0x15d,0x173,_0x307413._0x8bcfcb,0x1cb)]}:{},'system':structuredClone(_0x357c43[_0x5ead59(_0x307413._0x4fac47,_0x307413._0x17a0f6,0x138,0x14d)]),'messages':structuredClone(_0x357c43[_0x475fc0(0x2fe,0x2d5,_0x307413._0x5bea5c,_0x307413._0x26a07c)]),'tools':_0x5728f9[_0x475fc0(0x2ce,_0x307413._0x60b10d,_0x307413._0x3f80d1,_0x307413._0x5d80dc)][_0x475fc0(_0x307413._0x33a5b5,0x273,_0x307413._0x14be41,_0x307413._0x30defd)](),'metadata':{'sessionId':_0x357c43[_0x475fc0(_0x307413._0x1dc51f,_0x307413._0x1dc51f,_0x307413._0x497942,_0x307413._0x517d5e)],'turnId':_0x357c43['turnId'],'modelIdentity':_0x50db18[_0x5ead59(0x116,_0x307413._0x336923,_0x307413._0x162c9b,_0x307413._0x2fe59f)],..._0x50db18['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x50db18['pricingProviderId']}:{}},..._0x5728f9[_0x5ead59(_0x307413._0x50618f,0x14d,_0x307413._0x3ab12e,0xeb)]?{'outputFormat':_0x5728f9[_0x5ead59(_0x307413._0x3b5788,_0x307413._0x5b3556,_0x307413._0x3ab12e,_0x307413._0x93ccb5)]}:{}};_0x3e6d1e=await _0x2063ba(_0x5ead59(_0x307413._0x5f54fe,_0x307413._0x4e8b86,0x181,_0x307413._0x15b9b2),_0x3e6d1e);{const {pricingProviderId:_0x2b91e6,..._0xf9c5b5}=_0x3e6d1e[_0x5ead59(0x198,0xe3,_0x307413._0x143ff1,_0x307413._0x2032e5)];_0x3e6d1e={..._0x3e6d1e,'metadata':{..._0xf9c5b5,..._0x50db18['pricingProviderId']!==void 0x0?{'pricingProviderId':_0x50db18[_0x5ead59(0x1a3,_0x307413._0x11a018,0x163,0x1d3)]}:{}}};}await _0x132676({'type':_0x5ead59(0x16c,_0x307413._0x4e9ecd,_0x307413._0x44728d,_0x307413._0x1d922a),'request':_0x3e6d1e});const _0x56a7e8=Date[_0x5ead59(_0x307413._0x42847b,0x175,_0x307413._0x32c268,0x103)]();_0x552909[_0x5ead59(0x20d,_0x307413._0x18e217,0x19c,0x1e8)]=_0x56a7e8;let _0x20e9de=await executeModelRequest(_0x3e6d1e,_0xb903e,_0x50db18,_0x5728f9,_0x335026,{'assistantMessageId':_0x28434a,'reasoningMessageId':_0x5c9445,'meta':_0x552909});const _0x28dcf9=Date[_0x5ead59(_0x307413._0x323f88,0x11a,_0x307413._0x32c268,_0x307413._0x24fd9f)]();_0x552909[_0x5ead59(_0x307413._0x326383,0x1f5,0x1b0,_0x307413._0x358c05)]=_0x28dcf9,_0x20e9de=await _0x2063ba(_0x5ead59(_0x307413._0x1a0795,0x1c5,_0x307413._0x8e8ca5,0x152),_0x20e9de);_0x20e9de[_0x475fc0(_0x307413._0x2ebd67,0x2ca,_0x307413._0x2b46ca,0x200)]&&(_0x20e9de={..._0x20e9de,'providerState':{..._0x20e9de[_0x5ead59(0x126,0x172,0x121,0x13d)],'originModelIdentity':_0x50db18[_0x5ead59(_0x307413._0x4b37db,0x189,_0x307413._0x168041,_0x307413._0x4b3776)]}});_0x20e9de=withEstimatedModelCost(_0x3e6d1e,_0x20e9de);const _0x2c4d09=Math['max'](0x0,_0x28dcf9-_0x56a7e8),_0x20f309={'version':0x1,'usage':structuredClone(_0x20e9de[_0x5ead59(0x17e,0x1a4,_0x307413._0x4f199a,_0x307413._0x2da6c8)]),'modelTimeMs':_0x2c4d09},_0x3d70a8=_0x395f6d=>({..._0x552909,'metrics':{..._0x20f309,'usage':structuredClone(_0x20f309[_0x475fc0(0x2d1,0x264,0x2e1,0x28d)]),'completesRequest':_0x395f6d}});await _0x132676({'type':'model_response','response':_0x20e9de,'modelTimeMs':_0x2c4d09}),_0x357c43[_0x475fc0(0x23e,_0x307413._0x4f8b95,0x2a2,_0x307413._0xf969c8)]=_0x20e9de;let _0x4ac2de=await _0x2063ba(_0x5ead59(0x149,0x9c,_0x307413._0x36bfda,_0x307413._0x24876c),withMessageId(responseToAssistantMessage(_0x20e9de),_0x28434a));_0x4ac2de=withMessageId(_0x4ac2de,_0x28434a);const _0x572d45=getToolUseBlocks(_0x4ac2de),_0x424f2c=await Promise[_0x475fc0(0x2d8,_0x307413._0x8b54db,0x34e,0x2d3)](_0x572d45[_0x5ead59(_0x307413._0x5edff9,_0x307413._0x230695,0x1c1,0x226)](_0x1a5ca3=>_0x2063ba(_0x5ead59(0x219,0x1e9,0x1c7,0x184),_0x1a5ca3)));_0x424f2c['length']>0x0&&(_0x4ac2de=replaceToolUseBlocks(_0x4ac2de,_0x424f2c));const _0x4ba891=withMessageId(_0x4ac2de,_0x28434a);_0x4ac2de=_0x4ba891;const _0x183ed5=createReasoningMessage(_0x4ac2de),_0x583fc2=createAssistantTextMessage(_0x4ac2de),_0x1e84b3=createToolUseMessage(_0x4ac2de);_0x183ed5&&await _0x132676({'type':_0x475fc0(0x311,0x2e3,0x2a5,_0x307413._0x50e38c),'message':withMessageId(_0x183ed5,_0x5c9445)});_0x583fc2&&await _0x132676({'type':_0x475fc0(0x2b2,0x2b2,_0x307413._0x50d3d8,0x2d9),'message':withMessageId(_0x583fc2,_0x28434a)});_0x1e84b3&&await _0x132676({'type':_0x5ead59(_0x307413._0x21d25b,0x15c,_0x307413._0x402bad,0x117),'message':withMessageId(_0x1e84b3,_0x28434a)});_0x357c43[_0x475fc0(_0x307413._0x3b63d4,0x2e9,_0x307413._0x4940ee,0x306)][_0x475fc0(0x2de,_0x307413._0x1578f6,_0x307413._0x1983ac,_0x307413._0x1029b0)](_0x4ba891);_0x424f2c['length']>0x0&&await _0x5a0799(_0x4ba891,_0x3d70a8(![]));for(const _0x537cb6 of _0x424f2c){await _0x132676({'type':_0x475fc0(0x231,0x29a,0x239,_0x307413._0x22b693),'toolCall':_0x537cb6});}if(_0x424f2c[_0x475fc0(_0x307413._0x581cbe,0x36c,0x2f9,0x35b)]===0x0){const _0xf73ee2=await _0x6351d(async()=>{await _0x5a0799(_0x4ba891,_0x3d70a8(![]));});if(_0xf73ee2>0x0)continue;const _0x59a16e=await _0x2063ba('beforeFinalOutput',_0x4ac2de),_0xf95f8b=withMessageId(_0x59a16e,_0x28434a);return _0x357c43[_0x5ead59(0x186,0x173,0x18a,0x169)]=_0xf95f8b,_0x357c43[_0x475fc0(0x2fe,_0x307413._0x4a5d59,0x2f8,0x34c)][_0x357c43[_0x5ead59(_0x307413._0x229fab,_0x307413._0x5921f8,0x1b6,0x182)][_0x5ead59(_0x307413._0x2aca44,_0x307413._0x1b789b,0x1bb,_0x307413._0x44a3fe)]-0x1]=_0xf95f8b,await _0x5a0799(_0xf95f8b,_0x3d70a8(!![])),await _0x197acb({'type':'final_message','message':_0xf95f8b}),throwIfAborted(_0x5d68bc),await _0x5728f9['registry'][_0x5ead59(_0x307413._0x1827e2,_0x307413._0x34a927,0x119,0x172)](_0x5ead59(0x17a,_0x307413._0x111ae9,_0x307413._0xbb4e08,_0x307413._0x465954),_0x357c43,_0x48e76f),await _0x132676({'type':_0x475fc0(_0x307413._0x43ebe6,0x301,_0x307413._0x322bb4,_0x307413._0x5e0497),'state':_0x357c43}),{'status':_0x475fc0(_0x307413._0x3322fa,0x2c8,0x2ae,_0x307413._0x44487c),'finalMessage':_0xf95f8b,'state':_0x357c43};}let _0x37ae76=await _0x5728f9[_0x475fc0(0x2ce,_0x307413._0x21bc32,_0x307413._0xc26f4f,0x2ed)]['executeCalls'](_0x424f2c,_0x335026);const _0x16d041=_0x37ae76[_0x5ead59(0x1ac,0x1f7,0x199,_0x307413._0x273a40)](isAbortedToolResult),_0x559c43=_0x16d041?_0x53fafe:_0x2063ba,_0x116719=_0x16d041?_0x197acb:_0x132676;_0x37ae76=await Promise[_0x5ead59(0x1fb,0x15a,0x190,0x171)](_0x37ae76[_0x475fc0(_0x307413._0x48b51c,0x34b,0x2a0,0x34d)](_0x310df1=>_0x559c43(_0x475fc0(0x284,0x211,0x27a,0x2b7),_0x310df1))),_0x357c43[_0x475fc0(_0x307413._0x1f94db,0x2d4,_0x307413._0x43a266,0x307)][_0x475fc0(0x2de,_0x307413._0x3c399e,0x324,_0x307413._0xa45c7d)](..._0x37ae76);for(const _0x51ed17 of _0x37ae76){await _0x116719({'type':'tool_result','result':_0x51ed17});}const _0x5920d4=await _0x559c43(_0x5ead59(_0x307413._0x31e968,0x13c,_0x307413._0xa61f42,0x112),createToolResultUserMessage(_0x37ae76));await _0x116719({'type':_0x5ead59(0x11b,_0x307413._0x46e2a9,0x155,0x1a9),'message':_0x5920d4}),_0x357c43['messages'][_0x475fc0(0x2de,0x348,0x333,0x313)](_0x5920d4),await _0x5a0799(_0x5920d4);if(_0x16d041)return{'status':'aborted','state':_0x357c43};await _0x6351d();}}catch(_0x330993){if(!_0x5d68bc[_0x5ead59(_0x307413._0x5b99d5,_0x307413._0x41ec93,_0x307413._0x58bff3,0x185)])throw new TurnFailedError(_0x330993,_0x357c43);return{'status':_0x5ead59(_0x307413._0x3cf5fe,_0x307413._0x45fd6d,0x1c0,_0x307413._0x37c9df),'state':_0x357c43};}}function createSessionId(){const _0x4fbcbe={_0x54ba78:0xc2,_0x5b8ace:0x70,_0x238ece:0x23,_0x452f28:0x146,_0x39c31d:0xf1,_0xd0417d:0x4a,_0x316a0c:0x7b},_0x24ba48={_0x563f60:0x86,_0x37367d:0x1f8,_0x3bd457:0x4a},_0x27b513={_0x1b5851:0x126};function _0x7f95b7(_0x5b3116,_0x5e1882,_0x1fb4f8,_0xd7227f){return _0x249222(_0x5b3116-0xca,_0x1fb4f8- -_0x27b513._0x1b5851,_0x5e1882,_0xd7227f-0x16d);}function _0x3f76de(_0x3989de,_0x3419f2,_0x3a4767,_0x242d0f){return _0x249222(_0x3989de-_0x24ba48._0x563f60,_0x3419f2- -_0x24ba48._0x37367d,_0x3989de,_0x242d0f-_0x24ba48._0x3bd457);}return _0x3f76de(_0x4fbcbe._0x54ba78,0x71,_0x4fbcbe._0x5b8ace,_0x4fbcbe._0x238ece)+Date['now']()+'-'+Math['random']()[_0x7f95b7(0xff,0x153,_0x4fbcbe._0x452f28,_0x4fbcbe._0x39c31d)](0x10)[_0x3f76de(0x50,_0x4fbcbe._0xd0417d,0x9e,_0x4fbcbe._0x316a0c)](0x2,0xa);}function createTurnId(_0x477ab9){const _0x3f6a88={_0x2d4e48:0x3b,_0x11f8a0:0x6a,_0x27f6e2:0x35,_0x1481b5:0xf},_0xc2c3a3={_0x13837f:0x6c,_0x2cc096:0x24,_0x3b1b67:0x20f};function _0x57b8ee(_0x28d125,_0x442221,_0x52c710,_0x133d27){return _0x4c1020(_0x52c710,_0x442221-_0xc2c3a3._0x13837f,_0x52c710-_0xc2c3a3._0x2cc096,_0x28d125- -_0xc2c3a3._0x3b1b67);}return _0x57b8ee(-_0x3f6a88._0x2d4e48,-_0x3f6a88._0x11f8a0,_0x3f6a88._0x27f6e2,_0x3f6a88._0x1481b5)+_0x477ab9;}function createDefaultMessage(_0x39409d){if(_0x39409d===void 0x0)return void 0x0;return normalizeUserInput(_0x39409d);}function normalizeUserInput(_0x23fff3){const _0x51b53f={_0x598fa2:0x349,_0x3acd22:0x381,_0x37a690:0x3e0,_0x118251:0x3df,_0xf7de08:0x386},_0x535d9f={_0x3b8156:0x1eb,_0x5ce28b:0x66,_0x2a8752:0x69};if(typeof _0x23fff3===_0x2bcb42(0x369,_0x51b53f._0x598fa2,0x385,_0x51b53f._0x3acd22))return{'role':_0x2bcb42(_0x51b53f._0x37a690,_0x51b53f._0x118251,0x420,0x3f8),'content':[{'type':_0x2bcb42(0x376,_0x51b53f._0xf7de08,0x388,0x3ad),'text':_0x23fff3}]};function _0x4d0fce(_0x20515b,_0xed9b01,_0x1ebb69,_0x11924f){return _0x4c1020(_0x11924f,_0xed9b01-_0x535d9f._0x3b8156,_0x1ebb69-_0x535d9f._0x5ce28b,_0x20515b- -_0x535d9f._0x2a8752);}function _0x2bcb42(_0x1223c9,_0x36ae3c,_0x4e8e8e,_0x55c2f1){return _0x249222(_0x1223c9-0xee,_0x1223c9-0x150,_0x4e8e8e,_0x55c2f1-0x2c);}return normalizeMessage(_0x23fff3);}function resolveChatModel(_0x47af67){const _0x344b47={_0x499f06:0xb8,_0x406875:0xb2,_0x4a184d:0x9b,_0x190b20:0x4b,_0x3d23d5:0xfc,_0x57f285:0x67},_0x25b617={_0x1f8044:0x99},_0x3abf80={_0x2cf2c8:0x70,_0x19c52f:0xeb};if(!_0x47af67[_0x1ed3e5(_0x344b47._0x499f06,0x83,_0x344b47._0x406875,0xcb)])throw new Error(_0x1ed3e5(_0x344b47._0x4a184d,0x100,_0x344b47._0x190b20,_0x344b47._0x3d23d5));function _0x1ed3e5(_0x482e7d,_0x8ad28f,_0x71bf0d,_0x2ec94e){return _0x4c1020(_0x2ec94e,_0x8ad28f-_0x3abf80._0x2cf2c8,_0x71bf0d-0x1a1,_0x482e7d- -_0x3abf80._0x19c52f);}function _0x3d4894(_0x4dcd88,_0x5b2824,_0x5b4750,_0x48b611){return _0x4c1020(_0x5b2824,_0x5b2824-0x2e,_0x5b4750-_0x25b617._0x1f8044,_0x48b611-0x120);}return _0x47af67[_0x1ed3e5(0xb8,0xe1,_0x344b47._0x57f285,0x11d)];}function createRegistry(_0x3d39bf){const _0x4df146={_0x3a419b:0x95,_0x5e62be:0x40,_0xdf5d32:0x70,_0x5e70e2:0x40,_0x53e580:0x2d,_0x1da440:0x74,_0x4c94d4:0x9c},_0x8dad18={_0x4b9ac9:0x8d,_0x171be0:0x15f},_0x53326b={_0xff18c4:0x187,_0x2b4f46:0x31f};if(_0x3d39bf[_0x2c33fc(-_0x4df146._0x3a419b,-0x6a,-_0x4df146._0x5e62be,-0x21)])return _0x3d39bf[_0x2c33fc(-0x93,-_0x4df146._0xdf5d32,-_0x4df146._0x5e70e2,_0x4df146._0x53e580)];const _0x432787=createExtensionRegistry();function _0x413712(_0x38143b,_0x19c65d,_0x225f78,_0x248b05){return _0x4c1020(_0x248b05,_0x19c65d-_0x53326b._0xff18c4,_0x225f78-0xbc,_0x19c65d- -_0x53326b._0x2b4f46);}const _0x4128f8=_0x3d39bf[_0x2c33fc(-0x33,-0xd5,-_0x4df146._0x1da440,-_0x4df146._0x4c94d4)]??[];for(const _0x3443f2 of _0x4128f8){_0x432787['register'](_0x3443f2);}function _0x2c33fc(_0x1992c8,_0x5e05a5,_0x369340,_0x5df790){return _0x249222(_0x1992c8-_0x8dad18._0x4b9ac9,_0x369340- -0x2fb,_0x5e05a5,_0x5df790-_0x8dad18._0x171be0);}return _0x432787;}var Agent=class{['_systemPrompt'];['deps'];['metrics'];['sessionId'];['messages'];[_0x4c1020(0x252,0x214,0x1c2,0x1f7)];['turnIndex'];constructor(_0x1e2c32={}){const _0x4b1b4d={_0x45e8ae:0x375,_0x1865de:0x35f,_0x354c49:0x35b,_0x4d2811:0x3fa,_0x702743:0x323,_0x3a9d7a:0x374,_0x3abe9d:0x33e,_0x4fca3d:0x3ca,_0x306d14:0x34f,_0x251f0a:0x2e7,_0xb8cf87:0x355,_0x55e535:0x3c6,_0x51849b:0x3ef,_0x201aeb:0x3d1,_0x22e23a:0x3ac,_0x3461a7:0x3b0,_0x32e59c:0x36d,_0x19ed39:0x3a5,_0x2c7889:0x3a2,_0x5e57fa:0x339,_0x2643ac:0x393,_0x4f33f8:0x39d,_0x20fba8:0x32e,_0x38ac82:0x3b1,_0x76a02:0x3ad,_0x3397da:0x30b,_0xd7d409:0x358,_0x13d063:0x2d9,_0x2adda0:0x335,_0x2f125a:0x31d,_0x25b6cd:0x30b,_0x2c55e9:0x353},_0x16845d={_0x48addd:0x1a7,_0x52bc47:0x1a3,_0x51d920:0x5ec,_0x1ba600:0x5e5},_0x1f89ea={_0x45513b:0x1a8,_0x2f8027:0x99},_0x448f92={_0x55c16d:0xf4},_0xf82bec={_0x274350:0x1e7,_0x58955d:0xd6,_0x57df2a:0x1d};function _0x538f08(_0x5c6614,_0x22d029,_0x276efd,_0x40477d){return _0x249222(_0x5c6614-_0xf82bec._0x274350,_0x22d029-_0xf82bec._0x58955d,_0x40477d,_0x40477d-_0xf82bec._0x57df2a);}this[_0x538f08(0x308,_0x4b1b4d._0x45e8ae,0x370,_0x4b1b4d._0x1865de)]=_0x1e2c32[_0x219f16(_0x4b1b4d._0x354c49,0x393,0x38f,_0x4b1b4d._0x4d2811)]??createSessionId();function _0x219f16(_0x2529ec,_0x891b82,_0x1c1412,_0x343487){return _0x249222(_0x2529ec-0xc5,_0x891b82-_0x448f92._0x55c16d,_0x1c1412,_0x343487-0x1d2);}this[_0x538f08(_0x4b1b4d._0x702743,_0x4b1b4d._0x3a9d7a,_0x4b1b4d._0x3abe9d,_0x4b1b4d._0x4fca3d)]=0x0,this[_0x219f16(_0x4b1b4d._0x306d14,0x326,_0x4b1b4d._0x251f0a,0x33a)]=_0x1e2c32[_0x538f08(0x365,0x380,0x3f0,_0x4b1b4d._0xb8cf87)]??'',this[_0x219f16(0x401,_0x4b1b4d._0x55e535,0x3db,0x3c1)]=(_0x1e2c32[_0x219f16(0x410,0x3c6,_0x4b1b4d._0x51849b,0x3a6)]??[])[_0x219f16(0x397,_0x4b1b4d._0x201aeb,_0x4b1b4d._0x22e23a,_0x4b1b4d._0x3461a7)](normalizeMessage),this['defaultMessage']=createDefaultMessage(_0x1e2c32[_0x538f08(0x39e,_0x4b1b4d._0x32e59c,_0x4b1b4d._0x19ed39,0x340)]),this[_0x219f16(0x38d,0x369,0x37f,_0x4b1b4d._0x2c7889)]=createAgentMetrics({'getContextWindowLimit':_0x1e2c32['getContextWindowLimit']});const _0x103d02=_0x1e2c32[_0x538f08(_0x4b1b4d._0x5e57fa,_0x4b1b4d._0x2643ac,_0x4b1b4d._0x4f33f8,_0x4b1b4d._0x20fba8)],_0x5a11c7=async(_0x29882a,_0x4eeafc)=>{const _0x12195b={_0x38cd82:0x1a3,_0x3ae647:0x24a,_0x4df49c:0x176};function _0x4ea4bf(_0x46b57b,_0xf37497,_0x50dd8b,_0x198f3c){return _0x538f08(_0x46b57b-_0x12195b._0x38cd82,_0x198f3c-_0x12195b._0x3ae647,_0x50dd8b-_0x12195b._0x4df49c,_0x46b57b);}function _0x4891f2(_0x4fa641,_0x56a56f,_0x4e957c,_0x5ea591){return _0x538f08(_0x4fa641-0x188,_0x5ea591- -_0x1f89ea._0x45513b,_0x4e957c-_0x1f89ea._0x2f8027,_0x4fa641);}this[_0x4891f2(0x137,0x1f9,_0x16845d._0x48addd,_0x16845d._0x52bc47)][_0x4ea4bf(_0x16845d._0x51d920,_0x16845d._0x1ba600,0x60e,0x5d9)](_0x29882a),await _0x103d02?.(_0x29882a,_0x4eeafc);},_0x4da763=createInternalToolRuntime(_0x1e2c32['tools']??[],{'onEvent':_0x5a11c7,'onToolCall':_0x1e2c32[_0x219f16(_0x4b1b4d._0x38ac82,0x34a,_0x4b1b4d._0x76a02,_0x4b1b4d._0x3397da)]});this['deps']={'registry':createRegistry(_0x1e2c32),'chatModel':resolveChatModel(_0x1e2c32),'toolRuntime':_0x4da763,'askUser':_0x1e2c32[_0x219f16(_0x4b1b4d._0xd7d409,0x332,0x36e,_0x4b1b4d._0x13d063)],'setTopic':_0x1e2c32[_0x219f16(_0x4b1b4d._0x2adda0,_0x4b1b4d._0x2f125a,_0x4b1b4d._0x25b6cd,_0x4b1b4d._0x2c55e9)],'onEvent':_0x5a11c7,'sessionDir':_0x1e2c32['sessionDir'],'outputFormat':_0x1e2c32['outputFormat']};}get[_0x4c1020(0x15a,0x195,0x179,0x1c8)](){const _0x8f9056={_0x50b0c4:0x4ed,_0x3356e4:0x4f7},_0x4ce08f={_0x5488a9:0x7f,_0x3524e6:0x2c5,_0x5b3c5e:0xc4};function _0x3c2a01(_0x10546a,_0x15e9d7,_0x2d6a3b,_0x2f8e41){return _0x249222(_0x10546a-_0x4ce08f._0x5488a9,_0x2d6a3b-_0x4ce08f._0x3524e6,_0x2f8e41,_0x2f8e41-_0x4ce08f._0x5b3c5e);}return this[_0x3c2a01(0x54d,_0x8f9056._0x50b0c4,_0x8f9056._0x3356e4,0x4f5)];}[_0x249222(0x2ff,0x2ae,0x261,0x29f)](_0x657713=[]){const _0x57af02={_0xf8a11d:0x4ea,_0x53c725:0x55d,_0x3e9caa:0x8e,_0x662626:0x7b,_0x29cab7:0x52},_0x547345={_0x66e3e2:0x16,_0x4e4460:0x212};function _0x35f9ed(_0x481341,_0x933b9a,_0x78139b,_0x5b53d5){return _0x249222(_0x481341-0x19c,_0x481341-0x31b,_0x5b53d5,_0x5b53d5-0x114);}function _0x5093d2(_0x3bfa43,_0x2de39a,_0x2182b0,_0x45024c){return _0x4c1020(_0x3bfa43,_0x2de39a-_0x547345._0x66e3e2,_0x2182b0-0x175,_0x45024c- -_0x547345._0x4e4460);}this[_0x35f9ed(0x52a,_0x57af02._0xf8a11d,0x4cb,_0x57af02._0x53c725)][_0x5093d2(-_0x57af02._0x3e9caa,-_0x57af02._0x662626,-0x25,-_0x57af02._0x29cab7)]['setTools'](_0x657713);}[_0x4c1020(0x219,0x1c0,0x26b,0x1ff)](){const _0x549ff7={_0x15d17f:0x9f,_0x4ef23f:0x49,_0x565936:0x11f,_0x37b158:0x119,_0x3bfe8a:0x12d},_0x20be30={_0x4b6d27:0x27,_0x305255:0x8e},_0x192a33={_0x499d65:0x195,_0x539c7a:0x1d7};function _0x28189a(_0x46b253,_0x4764df,_0x5b2460,_0x27c05c){return _0x4c1020(_0x27c05c,_0x4764df-_0x192a33._0x499d65,_0x5b2460-_0x192a33._0x539c7a,_0x46b253- -0xa1);}function _0x2ab675(_0x3b3cc5,_0x17f405,_0x2f9731,_0xd5aade){return _0x4c1020(_0x2f9731,_0x17f405-_0x20be30._0x4b6d27,_0x2f9731-0xbc,_0x3b3cc5- -_0x20be30._0x305255);}return this[_0x2ab675(_0x549ff7._0x15d17f,0x107,_0x549ff7._0x4ef23f,0x61)][_0x28189a(_0x549ff7._0x565936,_0x549ff7._0x37b158,_0x549ff7._0x3bfe8a,0x11e)]['listToolSchemas']();}[_0x4c1020(0x108,0xd9,0xd7,0x126)](_0x4defdc,_0x54ee4d={}){const _0x28e42c={_0x384f04:0xbf,_0x4db112:0xa1,_0x49b5c4:0xff,_0x5c04ef:0x44,_0x5027cf:0x7b,_0x10bea6:0xf1,_0x58e71d:0x76,_0x43df3a:0x15d,_0x2326a4:0x133},_0xaf15bb={_0x3b3fdd:0x74,_0x197388:0x2db},_0x469832={_0x41d149:0x16,_0x5793f9:0x1eb,_0x418c3a:0x91};function _0x215d91(_0x3053ac,_0x43efe3,_0x2846f1,_0x361cfd){return _0x4c1020(_0x361cfd,_0x43efe3-_0x469832._0x41d149,_0x2846f1-_0x469832._0x5793f9,_0x3053ac- -_0x469832._0x418c3a);}function _0x415b4b(_0x3d5020,_0x208e7f,_0x477879,_0x5c20f3){return _0x4c1020(_0x5c20f3,_0x208e7f-_0xaf15bb._0x3b3fdd,_0x477879-0x13,_0x208e7f- -_0xaf15bb._0x197388);}this[_0x215d91(_0x28e42c._0x384f04,0x72,_0x28e42c._0x4db112,_0x28e42c._0x49b5c4)]=_0x4defdc,_0x54ee4d[_0x215d91(0xa7,0x7f,_0x28e42c._0x5c04ef,0xad)]===!![]&&(this[_0x415b4b(-_0x28e42c._0x5027cf,-0xeb,-_0x28e42c._0x10bea6,-_0x28e42c._0x58e71d)]=[],this[_0x415b4b(-_0x28e42c._0x43df3a,-0x11f,-0xd9,-_0x28e42c._0x2326a4)]=0x0);}[_0x4c1020(0x1aa,0x149,0x1e3,0x173)](_0x384b8a){this['sessionId']=_0x384b8a;}[_0x4c1020(0x1fe,0x21c,0x203,0x1b3)](_0xec1ca0){const _0x23987b={_0x3bc79e:0x24b,_0x461baf:0x25e},_0x2030dd={_0x1c2b7e:0x7c},_0x3b37b3={_0x52013b:0x29};function _0x1d35e0(_0x7d1310,_0x111359,_0x2597fe,_0x17da0a){return _0x4c1020(_0x111359,_0x111359-0x1cb,_0x2597fe-_0x3b37b3._0x52013b,_0x7d1310- -0x1a7);}function _0x348ea5(_0x6adcc6,_0xa163ef,_0x1f243b,_0x3fe873){return _0x249222(_0x6adcc6-0xe0,_0x6adcc6-_0x2030dd._0x1c2b7e,_0x1f243b,_0x3fe873-0x1c1);}this[_0x348ea5(0x28b,_0x23987b._0x3bc79e,_0x23987b._0x461baf,0x236)][_0x1d35e0(-0x4,0x4,-0xf,-0x11)]=_0xec1ca0;}async[_0x4c1020(0x1df,0x1a0,0x1b7,0x1e9)](_0x3ef115=this['defaultMessage'],_0x4501f2={}){const _0x327bd9={_0x5c4c69:0x207,_0x3f26cf:0x1d6,_0x1b18bb:0x501,_0x144a16:0x4ba,_0x1bfcfc:0x4f2,_0xefb38d:0x50d,_0x374635:0x52c,_0x33ad86:0x4de,_0x2509f7:0x48f,_0xedca19:0x234,_0x438c87:0x29a,_0x9ef14c:0x59b,_0x270b60:0x4fe,_0x184f17:0x5a2,_0x315fc5:0x25c,_0x44fed5:0x29e,_0x6d538c:0x270,_0x19dd15:0x28f,_0x12d0ff:0x2c7,_0xb429ba:0x297,_0x38be73:0x1f3,_0x43e02c:0x21f,_0x25bc5e:0x1e9,_0x31e5c4:0x215},_0x4611c7={_0x2d8660:0x0},_0x597eef={_0x5dfc2d:0x1cc};function _0x14d983(_0xc80b15,_0x1af88b,_0x4f9ba4,_0x52cd8a){return _0x249222(_0xc80b15-_0x597eef._0x5dfc2d,_0x4f9ba4-0x26e,_0x1af88b,_0x52cd8a-0x62);}if(!_0x3ef115)throw new Error(_0xfad2be(0x1a0,0x1c1,0x1d0,_0x327bd9._0x5c4c69));this[_0xfad2be(0x228,_0x327bd9._0x3f26cf,0x1f2,0x206)]+=0x1;const _0x46707f=_0x4501f2[_0x14d983(_0x327bd9._0x1b18bb,0x433,0x4a9,0x491)];function _0xfad2be(_0x22c465,_0xeedfe4,_0x4f129d,_0x6927da){return _0x249222(_0x22c465-0x158,_0x22c465- -0x76,_0x4f129d,_0x6927da-_0x4611c7._0x2d8660);}try{const _0x2885ed=await runTurn({'sessionId':this[_0x14d983(_0x327bd9._0x144a16,_0x327bd9._0x1bfcfc,_0x327bd9._0xefb38d,_0x327bd9._0x374635)],'turnId':createTurnId(this[_0x14d983(0x4a9,_0x327bd9._0x33ad86,0x50c,0x4ba)]),'streaming':_0x4501f2[_0x14d983(0x4a0,_0x327bd9._0x2509f7,0x4bf,0x49b)],'signal':_0x4501f2[_0xfad2be(0x26a,0x29c,0x216,0x2ab)],'system':this[_0xfad2be(_0x327bd9._0xedca19,0x24e,0x23d,_0x327bd9._0x438c87)],'messages':this['messages'],'message':normalizeUserInput(_0x3ef115),..._0x46707f?{'drainSteering':async()=>(await _0x46707f())[_0xfad2be(0x267,0x2b4,0x252,0x282)](normalizeUserInput)}:{}},this['deps']);return this[_0x14d983(_0x327bd9._0x9ef14c,_0x327bd9._0x270b60,0x540,0x573)]=_0x2885ed['state'][_0x14d983(0x51b,0x50c,0x540,_0x327bd9._0x184f17)]['map'](normalizeMessage),_0x2885ed;}catch(_0x35b27a){if(_0x35b27a instanceof TurnFailedError){this[_0xfad2be(_0x327bd9._0x315fc5,0x234,_0x327bd9._0x44fed5,0x2a6)]=synthesizeMissingToolResults(_0x35b27a[_0xfad2be(_0x327bd9._0x6d538c,_0x327bd9._0x19dd15,_0x327bd9._0x12d0ff,_0x327bd9._0xb429ba)][_0xfad2be(0x25c,_0x327bd9._0x38be73,_0x327bd9._0x43e02c,0x2b2)]['map'](normalizeMessage));throw _0x35b27a[_0xfad2be(_0x327bd9._0x25bc5e,0x252,0x244,_0x327bd9._0x31e5c4)];}throw _0x35b27a;}}};export{normalizeToolOutputValue,createToolOutput,ToolExecutionError,defineTool,resolveToolPermissionClass,ToolRegistry,validateToolInput,deriveFinalToolOutput,createInternalToolRuntime,createExtensionRegistry,createAgentMetrics,runTurn,Agent};
@@ -1 +1 @@
1
- (function(_0x5ee1f0,_0x397def){const _0x20a88b={_0x2a8160:0x263,_0x299f1f:0x26c,_0x4c6e76:0x28e,_0x3df23f:0x2ad,_0x5b9a71:0x297,_0x5f4e81:0x2f8,_0x2af993:0x2f2,_0x5c51a2:0x30e,_0x247c28:0x2e5,_0x4f6393:0x2f4,_0x30c27b:0x2fd,_0x735e3:0x324,_0x4f1424:0x2fb,_0x47bc5a:0x32d,_0x5197c2:0x2f7,_0x16d315:0x2df,_0x131cf0:0x2db,_0x1fd563:0x2f7,_0x278d2d:0x2b2,_0x44fe64:0x25a,_0x1afbbd:0x290,_0x4bcc86:0x2ac,_0x43ecee:0x29e},_0x5eb166={_0x4a1008:0x202},_0x510a77={_0x58b2c7:0x18e};function _0x49994d(_0x1386d0,_0x366e0d,_0x5eb207,_0x2635a0){return _0x1a9f(_0x2635a0-_0x510a77._0x58b2c7,_0x5eb207);}function _0x1a21d3(_0x49e987,_0x1790a8,_0x546432,_0x25e60a){return _0x1a9f(_0x49e987-_0x5eb166._0x4a1008,_0x546432);}const _0x28e7e4=_0x5ee1f0();while(!![]){try{const _0x348ab8=parseInt(_0x49994d(_0x20a88b._0x2a8160,_0x20a88b._0x299f1f,_0x20a88b._0x4c6e76,0x27e))/0x1+parseInt(_0x49994d(_0x20a88b._0x3df23f,0x2a7,_0x20a88b._0x5b9a71,0x2a6))/0x2*(-parseInt(_0x1a21d3(_0x20a88b._0x5f4e81,_0x20a88b._0x2af993,_0x20a88b._0x5c51a2,_0x20a88b._0x247c28))/0x3)+parseInt(_0x1a21d3(0x304,_0x20a88b._0x4f6393,_0x20a88b._0x30c27b,0x313))/0x4+parseInt(_0x1a21d3(0x317,_0x20a88b._0x735e3,_0x20a88b._0x4f1424,0x31f))/0x5+parseInt(_0x1a21d3(0x315,_0x20a88b._0x47bc5a,_0x20a88b._0x5197c2,_0x20a88b._0x47bc5a))/0x6+-parseInt(_0x1a21d3(_0x20a88b._0x16d315,0x2c8,_0x20a88b._0x131cf0,_0x20a88b._0x1fd563))/0x7*(parseInt(_0x49994d(0x28d,_0x20a88b._0x278d2d,0x27f,0x297))/0x8)+parseInt(_0x49994d(_0x20a88b._0x44fe64,_0x20a88b._0x1afbbd,0x26f,0x270))/0x9*(-parseInt(_0x49994d(_0x20a88b._0x4bcc86,0x283,0x2b6,_0x20a88b._0x43ecee))/0xa);if(_0x348ab8===_0x397def)break;else _0x28e7e4['push'](_0x28e7e4['shift']());}catch(_0x2fd5e0){_0x28e7e4['push'](_0x28e7e4['shift']());}}}(_0x4d90,0x9b8b2));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x48e478){const _0x1c454d={_0x389782:0x27d,_0x2c30ca:0x27d,_0x3f5cce:0x292,_0x29e970:0x29f},_0x533cb0={_0xf031ee:0x150};function _0x3d9f10(_0x1e4288,_0x45f8a4,_0x5a1c55,_0xa130f9){return _0x1a9f(_0xa130f9-0x1a9,_0x45f8a4);}function _0x1db895(_0x31e8c2,_0x41ebf2,_0x8a8c28,_0x2c762d){return _0x1a9f(_0x31e8c2- -_0x533cb0._0xf031ee,_0x41ebf2);}return normalizeContent(_0x48e478)[_0x3d9f10(_0x1c454d._0x389782,_0x1c454d._0x2c30ca,0x283,_0x1c454d._0x3f5cce)](_0x5a1e51=>_0x5a1e51[_0x1db895(-0x74,-0x55,-0x8b,-0x7c)]==='text')[_0x3d9f10(0x2c6,0x2bd,_0x1c454d._0x29e970,0x2a9)](_0x17dbd2=>_0x17dbd2['text'])[_0x1db895(-0x41,-0x41,-0x2c,-0x5a)]('\x0a\x0a');}function pushUserContentMessage(_0x1b2d13,_0xa4797e,_0x3a7bcc){const _0x2001f4={_0xb84094:0x7,_0x949fdf:0x3aa,_0x369b97:0x390,_0x48bae:0x391};function _0x55525a(_0x457b65,_0x2c5e10,_0x326447,_0x11f3ec){return _0x1a9f(_0x11f3ec- -0x100,_0x457b65);}function _0x4aa3a4(_0x47610a,_0x493fe3,_0x2438e8,_0x29aab0){return _0x1a9f(_0x493fe3-0x2a6,_0x2438e8);}if(_0x3a7bcc[_0x55525a(_0x2001f4._0xb84094,-0x14,-0x1e,-0x1)]===0x0)return;_0x1b2d13['push']({'type':_0x4aa3a4(_0x2001f4._0x949fdf,_0x2001f4._0x369b97,_0x2001f4._0x48bae,0x38f),'role':_0xa4797e,'content':_0x3a7bcc});}function hasSerializableToolUse(_0x317c1d){const _0xfb44a9={_0x522640:0x87,_0x40e1cb:0x63,_0x36f468:0x78,_0x16424f:0x6e},_0x111354={_0xa12420:0x87},_0x27e7de={_0x67410b:0x2ee};function _0x34e985(_0xb3db8c,_0x1419f6,_0x4c1822,_0x27a649){return _0x1a9f(_0x27a649- -_0x27e7de._0x67410b,_0x4c1822);}function _0x432ca0(_0x32afc8,_0x212e98,_0x19e724,_0x219b91){return _0x1a9f(_0x212e98- -_0x111354._0xa12420,_0x32afc8);}return _0x317c1d['id'][_0x432ca0(0x93,_0xfb44a9._0x522640,0x80,0x8c)]()['length']>0x0&&_0x317c1d[_0x34e985(-0x20a,-0x1ed,-0x212,-0x201)]['trim']()[_0x432ca0(_0xfb44a9._0x40e1cb,_0xfb44a9._0x36f468,0x5b,_0xfb44a9._0x16424f)]>0x0;}function hasSerializableToolResult(_0x3c90b1){const _0x5589c0={_0x43d46d:0x40c,_0x45299f:0x3ec,_0x3173a1:0x3fd,_0x315159:0x3ed,_0x343578:0x40d},_0x14a24c={_0x3fd6c5:0x31a},_0x2243c7={_0x3e7f10:0x2fe};function _0x249b6a(_0x5d4984,_0x91fbe1,_0x1f7804,_0x4667e4){return _0x1a9f(_0x5d4984-_0x2243c7._0x3e7f10,_0x91fbe1);}function _0x1a22d3(_0xd68f30,_0x12419f,_0x2d8427,_0x4aca53){return _0x1a9f(_0x2d8427- -_0x14a24c._0x3fd6c5,_0xd68f30);}return _0x3c90b1['tool_use_id'][_0x249b6a(_0x5589c0._0x43d46d,0x3f7,_0x5589c0._0x45299f,0x3f9)]()[_0x249b6a(_0x5589c0._0x3173a1,_0x5589c0._0x315159,_0x5589c0._0x343578,0x41d)]>0x0;}function isResponseInputObject(_0x416e09){const _0x5e778d={_0x124139:0xe0,_0xd1d89a:0x11a,_0x569596:0x21b,_0x4cf768:0x22d},_0x2e39de={_0x2b2257:0x300};function _0x483a0f(_0x5f1c17,_0x38ae44,_0x51a144,_0x13fb43){return _0x1a9f(_0x51a144-0x6,_0x5f1c17);}if(typeof _0x416e09!==_0x483a0f(0xe1,0xd7,_0x5e778d._0x124139,0xcc)||_0x416e09===null||Array[_0x483a0f(0x10a,0x123,0x104,_0x5e778d._0xd1d89a)](_0x416e09))return![];function _0x1c1e35(_0x34be23,_0x15cfdb,_0x57ecb9,_0x5ac736){return _0x1a9f(_0x5ac736- -_0x2e39de._0x2b2257,_0x15cfdb);}const _0x48e4b4=_0x416e09;return typeof _0x48e4b4[_0x1c1e35(-_0x5e778d._0x569596,-0x234,-_0x5e778d._0x4cf768,-0x224)]==='string';}function isImageToolResultBlock(_0x446539){const _0x2d28cd={_0x3663f9:0x1fd,_0x5511ab:0x21c,_0x52512d:0x227,_0x2494df:0x1d3,_0x442e7a:0x1c0,_0x39031d:0x1db,_0x5b1435:0x204,_0x2708af:0x22b,_0x11144b:0x1e4,_0x146ddd:0x1e3,_0x57069a:0x20f,_0x1f1dbe:0x1f8,_0x44f345:0x1e0,_0x12926c:0x1b6,_0x4c4d43:0x1ea,_0x39c577:0x1d3,_0x182755:0x1ce,_0x4e0b00:0x1ae,_0x5e83fc:0x203,_0x5ea8cc:0x230,_0x4b7b0d:0x229,_0x30f0f8:0x19e,_0x3e9a99:0x1c6,_0x46f9aa:0x19b},_0x89909b={_0x48c259:0x2bf};function _0x564858(_0x5eddbf,_0x1e6431,_0x583a21,_0x829705){return _0x1a9f(_0x1e6431- -0x31a,_0x829705);}if(typeof _0x446539!==_0x590db9(-0x1dc,-0x1e7,-0x1c9,-0x1e5)||_0x446539===null||Array[_0x564858(-_0x2d28cd._0x3663f9,-_0x2d28cd._0x5511ab,-_0x2d28cd._0x52512d,-0x214)](_0x446539))return![];function _0x590db9(_0x1b3eff,_0x14de85,_0x11ee08,_0x5469e9){return _0x1a9f(_0x5469e9- -_0x89909b._0x48c259,_0x11ee08);}const _0x5a5ee7=_0x446539;return _0x5a5ee7['type']===_0x590db9(-_0x2d28cd._0x2494df,-_0x2d28cd._0x442e7a,-0x1f4,-_0x2d28cd._0x39031d)&&_0x5a5ee7[_0x564858(-0x23b,-0x21f,-_0x2d28cd._0x5b1435,-_0x2d28cd._0x2708af)]?.[_0x590db9(-0x1f9,-0x1d3,-_0x2d28cd._0x11144b,-_0x2d28cd._0x146ddd)]===_0x564858(-0x22c,-_0x2d28cd._0x57069a,-0x22a,-_0x2d28cd._0x1f1dbe)&&typeof _0x5a5ee7[_0x590db9(-0x1d5,-0x1df,-_0x2d28cd._0x44f345,-0x1c4)][_0x590db9(-_0x2d28cd._0x12926c,-_0x2d28cd._0x4c4d43,-_0x2d28cd._0x39c577,-_0x2d28cd._0x182755)]===_0x590db9(-0x1be,-0x1bf,-0x19b,-_0x2d28cd._0x4e0b00)&&typeof _0x5a5ee7['source'][_0x564858(-_0x2d28cd._0x5e83fc,-0x210,-_0x2d28cd._0x5ea8cc,-_0x2d28cd._0x4b7b0d)]===_0x590db9(-_0x2d28cd._0x30f0f8,-_0x2d28cd._0x3e9a99,-_0x2d28cd._0x46f9aa,-_0x2d28cd._0x4e0b00);}function getToolResultText(_0xcf7412){const _0x11ff36={_0x50b7a9:0x199,_0x405690:0x1a2,_0x4fb6cd:0x19f,_0x4101d7:0x1c1,_0x2891ed:0x1a7,_0x53396e:0x182,_0x5a18c1:0x1b4,_0x5f11f7:0x1ae,_0x326306:0x2bb,_0x23070c:0x2c9,_0xf2beea:0x2bf,_0x84351e:0x2d0,_0x1b59ab:0x2e1,_0x35d939:0x2ce,_0x38dc7d:0x2af,_0x2cfc46:0x2c9,_0x16dab3:0x2c7},_0x2c6b58={_0x167ae2:0x8a,_0x30fdea:0x78,_0x404f04:0x76,_0x1b77a5:0x5d,_0x319b26:0x7e,_0x854e3b:0x74,_0x148537:0x93},_0x436b19={_0x1244b0:0x158,_0x41f3c0:0x167},_0x4adfc4={_0x1d2ffe:0x103,_0x1e2b02:0x176};if(typeof _0xcf7412===_0x1aab04(-_0x11ff36._0x50b7a9,-_0x11ff36._0x405690,-0x1a3,-_0x11ff36._0x4fb6cd))return _0xcf7412;function _0x2eabf3(_0x5bda07,_0x3d7051,_0x301284,_0x1eaa35){return _0x1a9f(_0x1eaa35- -0x3cd,_0x5bda07);}function _0x1aab04(_0xccba90,_0x1f277a,_0x577d9c,_0x3373ca){return _0x1a9f(_0xccba90- -0x2aa,_0x1f277a);}const _0x134565=_0xcf7412[_0x1aab04(-_0x11ff36._0x4101d7,-_0x11ff36._0x2891ed,-0x1be,-0x1c7)](_0x3da0ae=>{function _0x5f4cff(_0x43f771,_0x4e76e6,_0x3a4caf,_0x45f0ad){return _0x1aab04(_0x45f0ad-0x353,_0x3a4caf,_0x3a4caf-_0x4adfc4._0x1d2ffe,_0x45f0ad-_0x4adfc4._0x1e2b02);}function _0x31c153(_0x33bf05,_0x3d33be,_0x4f1142,_0x2e031c){return _0x1aab04(_0x3d33be-_0x436b19._0x1244b0,_0x2e031c,_0x4f1142-_0x436b19._0x41f3c0,_0x2e031c-0x1c8);}return typeof _0x3da0ae===_0x31c153(-_0x2c6b58._0x167ae2,-_0x2c6b58._0x30fdea,-0x95,-0x64)&&_0x3da0ae!==null&&_0x3da0ae[_0x31c153(-0x7b,-_0x2c6b58._0x404f04,-_0x2c6b58._0x1b77a5,-0x7d)]===_0x31c153(-_0x2c6b58._0x319b26,-_0x2c6b58._0x854e3b,-_0x2c6b58._0x148537,-0x8e);})['map'](_0x10a544=>_0x10a544['text'])[_0x1aab04(-0x19b,-_0x11ff36._0x53396e,-_0x11ff36._0x5a18c1,-_0x11ff36._0x5f11f7)]('\x0a\x0a')[_0x2eabf3(-_0x11ff36._0x326306,-0x2b6,-_0x11ff36._0x23070c,-_0x11ff36._0xf2beea)]();return _0x134565[_0x2eabf3(-0x2ce,-_0x11ff36._0x84351e,-_0x11ff36._0x1b59ab,-_0x11ff36._0x35d939)]>0x0?_0x134565:_0x2eabf3(-0x2ab,-_0x11ff36._0x38dc7d,-_0x11ff36._0x2cfc46,-_0x11ff36._0x16dab3);}function getToolResultImages(_0x47fc1c){return Array['isArray'](_0x47fc1c)?_0x47fc1c['filter'](isImageToolResultBlock):[];}function _0x1a9f(_0x5516f8,_0x73aa7f){_0x5516f8=_0x5516f8-0xd9;const _0x4d9052=_0x4d90();let _0x1a9f6c=_0x4d9052[_0x5516f8];if(_0x1a9f['fdDRWu']===undefined){var _0x37e1a1=function(_0x590fd3){const _0x36fc30='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48e478='',_0x5a1e51='';for(let _0x17dbd2=0x0,_0x1b2d13,_0xa4797e,_0x3a7bcc=0x0;_0xa4797e=_0x590fd3['charAt'](_0x3a7bcc++);~_0xa4797e&&(_0x1b2d13=_0x17dbd2%0x4?_0x1b2d13*0x40+_0xa4797e:_0xa4797e,_0x17dbd2++%0x4)?_0x48e478+=String['fromCharCode'](0xff&_0x1b2d13>>(-0x2*_0x17dbd2&0x6)):0x0){_0xa4797e=_0x36fc30['indexOf'](_0xa4797e);}for(let _0x317c1d=0x0,_0x3c90b1=_0x48e478['length'];_0x317c1d<_0x3c90b1;_0x317c1d++){_0x5a1e51+='%'+('00'+_0x48e478['charCodeAt'](_0x317c1d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a1e51);};_0x1a9f['SxNlbT']=_0x37e1a1,_0x1a9f['tvZUYg']={},_0x1a9f['fdDRWu']=!![];}const _0x20af65=_0x4d9052[0x0],_0x45bf67=_0x5516f8+_0x20af65,_0x15438a=_0x1a9f['tvZUYg'][_0x45bf67];return!_0x15438a?(_0x1a9f6c=_0x1a9f['SxNlbT'](_0x1a9f6c),_0x1a9f['tvZUYg'][_0x45bf67]=_0x1a9f6c):_0x1a9f6c=_0x15438a,_0x1a9f6c;}function resolveReasoningVisibility(_0x4116ef){const _0x461e93={_0x49a409:0xd0,_0x23f34f:0xb5,_0xa7194b:0xcb,_0x3910a2:0xae,_0x4fc721:0xe9,_0x52b6d1:0xeb},_0x32df33={_0x5d66ba:0x332};function _0x4b9c21(_0x56cdca,_0x206dc8,_0x21502f,_0x58f492){return _0x1a9f(_0x56cdca- -0x42,_0x58f492);}function _0x10bb1d(_0x208776,_0x10c096,_0x356b2e,_0x40a790){return _0x1a9f(_0x10c096- -_0x32df33._0x5d66ba,_0x208776);}return _0x4116ef[_0x4b9c21(_0x461e93._0x49a409,0xd9,0xc5,_0x461e93._0x23f34f)]?.['visibility']??_0x4b9c21(_0x461e93._0xa7194b,_0x461e93._0x3910a2,_0x461e93._0x4fc721,_0x461e93._0x52b6d1);}function createOpenAiResponsesReasoning(_0x10620e){const _0x2f42bd={_0x29cca2:0x1a0,_0x305652:0x18c,_0xcfd63c:0x1c6,_0x3207cf:0x1a6,_0x151a7e:0x188,_0x1777ca:0x1bc,_0x3b033c:0x1ba,_0x142df5:0x1d9,_0x134638:0x173,_0x391241:0x173,_0xbbac7c:0x160,_0x561d81:0x18f,_0x54d4a6:0x191,_0x55d26d:0x193,_0x21dbe1:0x19d,_0x54da3a:0x1b1,_0x5d89d1:0x193,_0x2a15ec:0x1db,_0x2e5939:0x1d1,_0x40cacb:0x1e4,_0x4ada83:0x1df,_0x249931:0x1a3,_0x504310:0x18e,_0x1def76:0x1a1,_0x899462:0x196,_0x80ad2:0x1d0,_0x15b45d:0x1bc,_0x2104a1:0x19c,_0x48ef35:0x1b9,_0xd6a265:0x1b8},_0x4e50ec=resolveOpenAiReasoningConfig(_0x10620e[_0x134ca1(-_0x2f42bd._0x29cca2,-0x1a6,-_0x2f42bd._0x305652,-0x190)]);if(!_0x4e50ec)return{};function _0x2834d6(_0x16df19,_0x4b9a83,_0x203b96,_0x20a095){return _0x1a9f(_0x4b9a83-0x8c,_0x16df19);}const _0x52015a={},_0x8783f1=_0x10620e[_0x134ca1(-_0x2f42bd._0xcfd63c,-_0x2f42bd._0x3207cf,-_0x2f42bd._0x151a7e,-_0x2f42bd._0x1777ca)]?.[_0x134ca1(-_0x2f42bd._0x3b033c,-0x1bf,-_0x2f42bd._0x142df5,-0x1a7)]!==void 0x0,_0x2a2fb5=(!_0x8783f1&&_0x2834d6(0x180,_0x2f42bd._0x134638,0x18a,_0x2f42bd._0x391241)in _0x4e50ec?_0x4e50ec[_0x2834d6(_0x2f42bd._0xbbac7c,_0x2f42bd._0x391241,_0x2f42bd._0x561d81,0x177)]:void 0x0)??(resolveReasoningVisibility(_0x10620e)===_0x134ca1(-_0x2f42bd._0x54d4a6,-0x1ab,-0x192,-0x1a0)?'auto':void 0x0);function _0x134ca1(_0x295c12,_0x1b4813,_0x4fca76,_0x4ba5b0){return _0x1a9f(_0x1b4813- -0x2b8,_0x295c12);}return _0x4e50ec[_0x2834d6(0x17f,_0x2f42bd._0x55d26d,0x177,0x18e)]&&(_0x52015a[_0x134ca1(-_0x2f42bd._0x21dbe1,-_0x2f42bd._0x54da3a,-0x196,-0x1a4)]=_0x4e50ec[_0x2834d6(0x1a7,_0x2f42bd._0x5d89d1,0x196,0x1b3)]),_0x2a2fb5&&(_0x52015a[_0x134ca1(-_0x2f42bd._0x2a15ec,-_0x2f42bd._0x2e5939,-_0x2f42bd._0x40cacb,-_0x2f42bd._0x4ada83)]=_0x2a2fb5),{...!_0x8783f1&&_0x2834d6(0x1c3,_0x2f42bd._0x249931,0x188,0x1bf)in _0x4e50ec&&_0x4e50ec[_0x134ca1(-_0x2f42bd._0x504310,-_0x2f42bd._0x1def76,-0x1a8,-_0x2f42bd._0x899462)]===![]?{}:{'include':[_0x134ca1(-_0x2f42bd._0x80ad2,-0x1b0,-0x1b8,-_0x2f42bd._0x15b45d)]},...Object[_0x2834d6(0x18b,0x190,_0x2f42bd._0x2104a1,_0x2f42bd._0x391241)](_0x52015a)[_0x134ca1(-0x1c9,-_0x2f42bd._0x48ef35,-_0x2f42bd._0xd6a265,-0x1c4)]>0x0?{'reasoning':_0x52015a}:{}};}function _0x4d90(){const _0x21cdcc=['o2jHC2u2ncW','AxnbCNjHEq','BgvUz3rO','BwfW','C2nOzw1H','mZm1otK1mNLez1vczW','Aw5WDxrFC2nOzw1H','A2v5CW','C3rYAw5NAwz5','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zwzMB3j0','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','mZa5mdruvgvXr1q','zgf0yq','yMfZzty0','C3rHDhvZ','DxnLCI12AxnPyMXL','DhjPBq','AM9PBG','mta5mgjftvLywa','C3rYAw5N','CMvHC29UAw5N','ndC5mZiZmMfeAeXqvW','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','mJiWnJy2nw1IrwL5DW','zgf0ytO','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','nJuYotaWzMLnzNfy','C3bSAwnL','B2jQzwn0','Dg9VBhm','DhLWzq','mtqWse1PtLnp','Dgv4Da','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','C3rYDwn0DxjLzf9VDxrWDxq','Aw5WDxrFAw1Hz2u','mtuYotm3B0DqDfbO','ChvZAa','Aw1Hz2u','yxnZAxn0yw50','zNvUy3rPB25Fy2fSBf9VDxrWDxq','C3vTBwfYEq','Dg9VBf91C2vFAwq','zMLSDgvY','BwvZC2fNzq','B3v0Chv0x3rLEhq','ChjVDMLKzxjtDgf0zq','BMfTzq','B3v0Chv0rM9YBwf0','Bwf4vg9Rzw5Z','mteZotmXmhjnD21vEq','BwvKAwfFDhLWzq','zgvZy3jPChrPB24','zNvUy3rPB24','Dg9VBf91C2u','CM9Szq','nNHIDuXxva','Aw5WDxrFDgv4Da','y29UDgvUDa','y29KzxG','Aw5WDxq','C291CMnL','Bw9KzwW'];_0x4d90=function(){return _0x21cdcc;};return _0x4d90();}function pushAssistantProviderState(_0x16d598,_0x54c5af,_0x5552c1){const _0x29eb19={_0x4afa60:0x1e3,_0x446445:0x207,_0x5a8df6:0x1d3,_0x2a4486:0x1ec,_0x3dff6a:0x1f4,_0x204e83:0x1f8,_0x1ce097:0x1ed,_0x21062c:0x1fa,_0x50c467:0x1d9,_0x2e6183:0x1dd,_0xe95336:0x2fb,_0x26a593:0x2d0,_0x59a03d:0x2d0,_0x23e151:0x30a,_0x4d1ca5:0x30d,_0x502858:0x2f2,_0x290942:0x2f4,_0x225f98:0x2f6,_0x2ab1c0:0x1d5,_0x2d9a30:0x1ca,_0x213563:0x1de};function _0x3ae983(_0x37c830,_0x5920e5,_0x168297,_0xd233e5){return _0x1a9f(_0x5920e5-0x1f4,_0xd233e5);}if(_0x54c5af[_0x33960b(_0x29eb19._0x4afa60,_0x29eb19._0x446445,_0x29eb19._0x5a8df6,0x1ec)]!=='assistant')return![];function _0x33960b(_0x275d32,_0x1f9f22,_0x10e5e3,_0x4fd5c2){return _0x1a9f(_0x4fd5c2-0xf7,_0x10e5e3);}if(!isProviderStateCompatible(_0x54c5af,_0x5552c1))return![];const _0x3830e0=_0x54c5af[_0x33960b(_0x29eb19._0x2a4486,_0x29eb19._0x3dff6a,0x1e4,_0x29eb19._0x4afa60)]?.[_0x33960b(_0x29eb19._0x204e83,_0x29eb19._0x1ce097,_0x29eb19._0x21062c,0x20b)]??[];if(_0x3830e0[_0x33960b(_0x29eb19._0x50c467,0x214,_0x29eb19._0x2e6183,0x1f6)]===0x0)return![];for(const _0x5a9a1f of _0x3830e0){if(isResponseInputObject(_0x5a9a1f)){const _0x49a213=structuredClone(_0x5a9a1f);delete _0x49a213[_0x3ae983(0x2e8,0x300,0x309,_0x29eb19._0xe95336)],_0x49a213[_0x3ae983(0x2c6,_0x29eb19._0x26a593,0x2d4,_0x29eb19._0x59a03d)]===_0x3ae983(_0x29eb19._0x23e151,0x306,0x30e,_0x29eb19._0x4d1ca5)&&!Array[_0x3ae983(0x2e4,_0x29eb19._0x502858,_0x29eb19._0x290942,_0x29eb19._0x225f98)](_0x49a213[_0x33960b(0x1dd,_0x29eb19._0x2ab1c0,_0x29eb19._0x2d9a30,_0x29eb19._0x213563)])&&(_0x49a213[_0x3ae983(0x2c4,0x2db,0x2bb,0x2d6)]=[]),_0x16d598['push'](_0x49a213);}}return!![];}function toOpenAiResponsesRequest(_0x4ad9e3){const _0x4a55f3={_0x2c86bf:0xba,_0x5d1099:0xa1,_0x1d33fc:0xc9,_0x573f14:0xa9,_0x5dea48:0x1ad,_0x25e3ad:0x189,_0x1eafbc:0xad,_0x208937:0x9f,_0xac6667:0xbb,_0x4c8330:0xa8,_0x713048:0x1c7,_0x36f8c6:0x1ab,_0x58017f:0x80,_0x1bc230:0x98,_0xe5699b:0x1a9,_0x3c501d:0x1c5,_0x21f342:0x1b4,_0x26a067:0x18b,_0x3ea54b:0xa7,_0x28cfec:0xc5,_0x160dd0:0x1c1,_0x38079a:0x188,_0x5ab617:0xd8,_0x531d36:0xdc,_0x552071:0xd1,_0x1fc865:0xb3,_0x122646:0xc8,_0x8e1af3:0xbf,_0x2aafc4:0xbd,_0xafb94b:0x166,_0x4a8f3a:0x1a3,_0x2b73f3:0x19b,_0xa9d640:0x1ac,_0x11126d:0x1a6,_0x2a1c01:0x198,_0x1bda5a:0x1a9,_0x2fe69b:0x1b3,_0x5c53a0:0x18f,_0x285431:0x179,_0x2489d2:0x191,_0x1868f3:0x186,_0x32acd6:0xa5,_0x13b602:0x9b,_0x2fdea0:0x87,_0x33c8f8:0xcc,_0x193518:0xc7,_0x525622:0xda,_0x56d373:0xbc,_0x38662e:0x1c7,_0x3e692b:0x1a4,_0x3f7078:0x174,_0x4623b3:0x18d,_0x3f448b:0x1a4,_0x4bbdc6:0x1a2,_0x2d7f22:0x194,_0xab1fda:0x19b,_0x53ff22:0x195,_0x101e1c:0x193,_0x3d8bda:0xc6,_0x5b070a:0xc0,_0x5f0942:0x1b7,_0x4c92bd:0x18c,_0x345a96:0x19d,_0x3c145e:0x171,_0x4335d0:0x185,_0x43a2b3:0x196,_0x685bd4:0x1a5,_0x523ede:0x196,_0x3bd4d4:0xac,_0x41b9f5:0x1a8,_0xd4d78f:0x1aa,_0x5f2bae:0x16a,_0x52ca18:0xb0,_0x50d354:0xae,_0x3dba36:0x92,_0x1c86da:0xa3,_0xb063a2:0x97,_0x35a1e7:0x186,_0x3df648:0xb0,_0x24961a:0x9a,_0x4113cf:0xc3,_0x12bc0a:0xa5,_0x1b64ad:0xa4,_0x2ac6d9:0xc4},_0x3a617b={_0x1f92c1:0x158,_0x282153:0x14c,_0x396557:0x131,_0x14073c:0x147,_0x2f27a0:0x15e,_0x32f09:0x122,_0x1d902b:0x141,_0x51f617:0x12b,_0x361b8a:0x146,_0x3c5759:0x13a,_0x331dcd:0x164},_0x1f4471={_0x10bd6a:0x123},_0x2ad02c={_0x38600d:0x92,_0x49c40f:0x1c1},_0x47ffdd={_0x38fc7c:0x3e},_0x21b51e=[];for(const _0x2e0cb1 of _0x4ad9e3['messages']){if(pushAssistantProviderState(_0x21b51e,_0x2e0cb1,_0x4ad9e3))continue;const _0x2fe742=[];for(const _0x26353f of normalizeContent(_0x2e0cb1[_0x31a07a(_0x4a55f3._0x2c86bf,0xc4,0xd0,_0x4a55f3._0x5d1099)])){if(_0x26353f['type']==='text'){_0x2fe742['push'](_0x2e0cb1[_0x31a07a(0xb7,_0x4a55f3._0x1d33fc,_0x4a55f3._0x573f14,0xbe)]===_0x46d4ae(-_0x4a55f3._0x5dea48,-_0x4a55f3._0x25e3ad,-0x1a0,-0x1bd)?{'type':_0x31a07a(_0x4a55f3._0x1eafbc,_0x4a55f3._0x208937,_0x4a55f3._0xac6667,_0x4a55f3._0x4c8330),'text':_0x26353f[_0x46d4ae(-0x1a5,-0x19a,-0x1a7,-_0x4a55f3._0x713048)]}:{'type':_0x46d4ae(-_0x4a55f3._0x36f8c6,-0x193,-0x18e,-0x177),'text':_0x26353f[_0x31a07a(0xa0,0xae,_0x4a55f3._0x58017f,_0x4a55f3._0x1bc230)]});continue;}if(_0x26353f[_0x46d4ae(-0x1a5,-0x1ae,-_0x4a55f3._0xe5699b,-_0x4a55f3._0x3c501d)]===_0x46d4ae(-0x1a5,-_0x4a55f3._0x21f342,-0x1a1,-_0x4a55f3._0x26a067)){_0x2fe742[_0x31a07a(0xa5,_0x4a55f3._0x3ea54b,_0x4a55f3._0x28cfec,0xb7)]({'type':_0x46d4ae(-0x1b7,-_0x4a55f3._0x160dd0,-0x1a4,-_0x4a55f3._0x38079a),'image_url':_0x31a07a(_0x4a55f3._0x5ab617,_0x4a55f3._0x531d36,_0x4a55f3._0x552071,0xd1)+_0x26353f['source'][_0x31a07a(_0x4a55f3._0x1fc865,_0x4a55f3._0x122646,0xa0,0xa1)]+_0x31a07a(_0x4a55f3._0x8e1af3,0xd4,0xba,0xaa)+_0x26353f[_0x31a07a(_0x4a55f3._0x2aafc4,0xb8,0xb1,0xa4)][_0x46d4ae(-0x189,-0x191,-0x17b,-_0x4a55f3._0xafb94b)]});continue;}pushUserContentMessage(_0x21b51e,_0x2e0cb1[_0x46d4ae(-0x18c,-_0x4a55f3._0x4a8f3a,-0x190,-_0x4a55f3._0x2b73f3)],_0x2fe742[_0x46d4ae(-0x19c,-0x1a4,-_0x4a55f3._0xa9d640,-_0x4a55f3._0x11126d)](0x0));if(_0x26353f[_0x46d4ae(-0x19a,-_0x4a55f3._0x2a1c01,-_0x4a55f3._0x1bda5a,-_0x4a55f3._0x2fe69b)]===_0x46d4ae(-_0x4a55f3._0x5c53a0,-_0x4a55f3._0x285431,-_0x4a55f3._0x2489d2,-_0x4a55f3._0x1868f3)){if(!hasSerializableToolUse(_0x26353f))continue;_0x21b51e[_0x31a07a(_0x4a55f3._0x32acd6,_0x4a55f3._0x13b602,_0x4a55f3._0x2fdea0,0xa8)]({'type':'function_call','call_id':_0x26353f['id'],'name':_0x26353f[_0x31a07a(0xaf,_0x4a55f3._0x1fc865,_0x4a55f3._0x33c8f8,0x91)],'arguments':JSON[_0x31a07a(_0x4a55f3._0x193518,0xb0,0xb9,_0x4a55f3._0x525622)](_0x26353f[_0x31a07a(_0x4a55f3._0x56d373,0xa2,_0x4a55f3._0x525622,0xc8)]??{})});continue;}if(_0x26353f[_0x46d4ae(-0x1c8,-_0x4a55f3._0x38662e,-0x1a9,-0x1b1)]==='tool_result'){if(!hasSerializableToolResult(_0x26353f))continue;const _0x2db74c=getToolResultText(_0x26353f[_0x46d4ae(-_0x4a55f3._0x3e692b,-_0x4a55f3._0x3f7078,-_0x4a55f3._0x4623b3,-_0x4a55f3._0x3f448b)]);_0x21b51e[_0x46d4ae(-0x1a3,-0x1af,-_0x4a55f3._0x4bbdc6,-0x185)]({'type':_0x46d4ae(-0x1a6,-_0x4a55f3._0x2d7f22,-0x19f,-_0x4a55f3._0xab1fda),'call_id':_0x26353f[_0x46d4ae(-_0x4a55f3._0x53ff22,-_0x4a55f3._0x101e1c,-0x19d,-0x182)],'output':_0x2db74c});const _0x2083e6=getToolResultImages(_0x26353f['content']);_0x2083e6['length']>0x0&&_0x21b51e['push']({'type':_0x31a07a(0xac,_0x4a55f3._0x3d8bda,0xa5,0xc5),'role':'user','content':[{'type':_0x31a07a(0xb9,0xa2,_0x4a55f3._0x5d1099,_0x4a55f3._0x5b070a),'text':_0x46d4ae(-_0x4a55f3._0x5f0942,-_0x4a55f3._0x4c92bd,-0x1a6,-0x19d)+_0x26353f[_0x46d4ae(-0x1a8,-_0x4a55f3._0x2a1c01,-0x19d,-_0x4a55f3._0x345a96)]+'.'},..._0x2083e6[_0x46d4ae(-0x173,-_0x4a55f3._0x3c145e,-_0x4a55f3._0x4335d0,-_0x4a55f3._0x43a2b3)](_0x422c8=>({'type':_0x31a07a(0xa3,0xc0,0xc1,0x8a),'image_url':'data:'+_0x422c8[_0x46d4ae(-0x196,-0x1a1,-0x18a,-0x175)][_0x31a07a(0xb3,0xce,0xbf,0xc6)]+_0x46d4ae(-0x1a1,-0x174,-0x188,-0x16e)+_0x422c8[_0x31a07a(0xbd,0x9d,0x9f,0x9d)][_0x31a07a(0xcc,0xb0,0xd6,0xbd)]}))]});}}pushUserContentMessage(_0x21b51e,_0x2e0cb1['role'],_0x2fe742);}function _0x46d4ae(_0x43d063,_0x248e11,_0x42a1ec,_0x1722fd){return _0x1a9f(_0x42a1ec- -0x285,_0x43d063);}function _0x31a07a(_0x27a6aa,_0x3ffc2d,_0x49f079,_0x365d41){return _0x1a9f(_0x27a6aa- -_0x47ffdd._0x38fc7c,_0x49f079);}return{...createOpenAiResponsesReasoning(_0x4ad9e3),'model':_0x4ad9e3[_0x46d4ae(-0x18d,-_0x4a55f3._0x685bd4,-0x189,-0x179)],'instructions':systemToInstructions(_0x4ad9e3['system']),'input':_0x21b51e,..._0x4ad9e3[_0x46d4ae(-0x178,-0x1ac,-_0x4a55f3._0x523ede,-0x1b6)]!==void 0x0?{'max_output_tokens':_0x4ad9e3[_0x31a07a(0xb1,_0x4a55f3._0x3bd4d4,0x9c,0xc1)]}:{},'tools':_0x4ad9e3[_0x46d4ae(-0x1c6,-_0x4a55f3._0x41b9f5,-_0x4a55f3._0xd4d78f,-0x1a6)][_0x46d4ae(-_0x4a55f3._0x5f2bae,-0x19c,-0x185,-0x175)](_0x8a1a9d=>{function _0x1251f9(_0x1ef57b,_0x538c24,_0x2c3a79,_0x4b673e){return _0x31a07a(_0x4b673e-_0x2ad02c._0x38600d,_0x538c24-_0x2ad02c._0x49c40f,_0x2c3a79,_0x4b673e-0xbe);}function _0x4d8a22(_0x368fa6,_0x250281,_0x34a07e,_0x2466ec){return _0x31a07a(_0x2466ec-0x95,_0x250281-0x12e,_0x250281,_0x2466ec-_0x1f4471._0x10bd6a);}return{'type':_0x1251f9(_0x3a617b._0x1f92c1,_0x3a617b._0x282153,_0x3a617b._0x396557,_0x3a617b._0x14073c),'name':_0x8a1a9d[_0x1251f9(_0x3a617b._0x2f27a0,_0x3a617b._0x32f09,0x127,_0x3a617b._0x1d902b)],'description':_0x8a1a9d[_0x1251f9(0x134,0x13a,_0x3a617b._0x51f617,_0x3a617b._0x361b8a)],'parameters':_0x8a1a9d[_0x1251f9(0x16a,_0x3a617b._0x3c5759,_0x3a617b._0x331dcd,0x157)]};}),..._0x4ad9e3[_0x31a07a(_0x4a55f3._0x52ca18,0x9b,_0x4a55f3._0x50d354,_0x4a55f3._0x3dba36)]?{'text':{'format':{'type':'json_schema','name':_0x4ad9e3[_0x31a07a(_0x4a55f3._0x52ca18,_0x4a55f3._0x1c86da,_0x4a55f3._0xb063a2,0xaf)][_0x31a07a(0xaf,0xbc,_0x4a55f3._0x193518,0xb6)]??_0x46d4ae(-0x1ae,-0x1b0,-0x1a5,-_0x4a55f3._0x35a1e7),'schema':_0x4ad9e3[_0x31a07a(_0x4a55f3._0x3df648,0xa4,0xb5,_0x4a55f3._0x24961a)][_0x31a07a(_0x4a55f3._0x4113cf,0xbf,_0x4a55f3._0x12bc0a,_0x4a55f3._0x1b64ad)],'strict':_0x4ad9e3[_0x31a07a(0xb0,_0x4a55f3._0x2ac6d9,0xad,0x96)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ (function(_0x5811d7,_0x32300c){const _0x249b3b={_0x2a6e73:0x80,_0x53df5a:0x77,_0x2495f:0x69,_0x156dc3:0x1,_0x154709:0x3,_0x379c44:0x19,_0x1cb4b7:0x4c,_0x4a9f5b:0x50,_0x1a6a6f:0x71,_0xa919c9:0x75,_0xcd329c:0x99,_0x591e1a:0xa0,_0x1d31e8:0x96,_0x15b89c:0x81,_0x35ec3f:0x14,_0x158ff5:0x11,_0x13fa7e:0x14,_0x312ba0:0x14,_0x4ce9d4:0xb,_0x298b05:0x17,_0x51ad33:0xe,_0x49177c:0xc},_0x4cfb08={_0x104943:0x1eb};function _0x59e6dc(_0x586f2e,_0x3a4fce,_0x27a49b,_0x3da852){return _0x3696(_0x3a4fce- -_0x4cfb08._0x104943,_0x586f2e);}function _0x18da8f(_0xf3816e,_0x58947a,_0x19ddf7,_0x3be508){return _0x3696(_0x19ddf7- -0x268,_0xf3816e);}const _0x5e3b15=_0x5811d7();while(!![]){try{const _0x5d55c0=parseInt(_0x18da8f(-_0x249b3b._0x2a6e73,-0x63,-_0x249b3b._0x53df5a,-_0x249b3b._0x2495f))/0x1+parseInt(_0x59e6dc(_0x249b3b._0x156dc3,-0x7,0xb,0x9))/0x2+-parseInt(_0x59e6dc(-0x1b,_0x249b3b._0x154709,-_0x249b3b._0x379c44,0x6))/0x3*(-parseInt(_0x18da8f(-0x5f,-0x78,-0x6c,-_0x249b3b._0x1cb4b7))/0x4)+-parseInt(_0x18da8f(-_0x249b3b._0x4a9f5b,-0x58,-_0x249b3b._0x1a6a6f,-_0x249b3b._0xa919c9))/0x5*(parseInt(_0x18da8f(-_0x249b3b._0xcd329c,-0x91,-0x7e,-0x73))/0x6)+-parseInt(_0x18da8f(-_0x249b3b._0x591e1a,-_0x249b3b._0x1d31e8,-_0x249b3b._0x15b89c,-0x8f))/0x7*(parseInt(_0x59e6dc(-_0x249b3b._0x35ec3f,-0x1a,-0x30,-0x34))/0x8)+parseInt(_0x59e6dc(0x24,0x9,-_0x249b3b._0x158ff5,_0x249b3b._0x13fa7e))/0x9+-parseInt(_0x59e6dc(_0x249b3b._0x156dc3,_0x249b3b._0x156dc3,_0x249b3b._0x312ba0,_0x249b3b._0x4ce9d4))/0xa*(parseInt(_0x59e6dc(_0x249b3b._0x298b05,_0x249b3b._0x51ad33,0x27,-_0x249b3b._0x49177c))/0xb);if(_0x5d55c0===_0x32300c)break;else _0x5e3b15['push'](_0x5e3b15['shift']());}catch(_0x698de0){_0x5e3b15['push'](_0x5e3b15['shift']());}}}(_0x22cc,0xb7a8a));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0xae1a33){const _0x872a03={_0x15eb03:0xec,_0x4d7fa0:0x106,_0xa7750c:0xfe,_0x17ef31:0x467,_0x35ea41:0x490};function _0x12a9be(_0x3d3cb9,_0x271e0a,_0xa598c1,_0x33d53b){return _0x3696(_0x33d53b-0x299,_0x271e0a);}function _0x2cf2dc(_0x384ffa,_0x3b3765,_0x5cc1d0,_0x2cf499){return _0x3696(_0x5cc1d0- -0xf5,_0x3b3765);}return normalizeContent(_0xae1a33)['filter'](_0x1c5aae=>_0x1c5aae['type']==='text')[_0x2cf2dc(0x106,_0x872a03._0x15eb03,_0x872a03._0x4d7fa0,_0x872a03._0xa7750c)](_0x52e5e4=>_0x52e5e4[_0x12a9be(0x47d,0x47c,0x451,0x472)])[_0x12a9be(_0x872a03._0x17ef31,_0x872a03._0x35ea41,0x46e,0x46f)]('\x0a\x0a');}function pushUserContentMessage(_0x449ddb,_0x1e4bf7,_0x4d3c16){const _0x1db5a4={_0x497acb:0x188,_0x58957:0x192},_0x28e404={_0x3de983:0x37b};function _0x41c146(_0x4885e2,_0x3e1284,_0x301d4e,_0x34d914){return _0x3696(_0x34d914- -_0x28e404._0x3de983,_0x301d4e);}if(_0x4d3c16['length']===0x0)return;_0x449ddb[_0x41c146(-_0x1db5a4._0x497acb,-0x19d,-0x180,-_0x1db5a4._0x58957)]({'type':'message','role':_0x1e4bf7,'content':_0x4d3c16});}function hasSerializableToolUse(_0x2624c8){const _0x3f998e={_0x25f0d0:0x53,_0xafe973:0x62,_0x52a42f:0x6d,_0x56a86a:0x6d,_0x526494:0x89,_0x548ce0:0x128,_0x36a74f:0x131,_0x398b76:0x110},_0x5aaada={_0x232b69:0xc0};function _0x3b8cc1(_0x58a163,_0x2e7f93,_0xe9d172,_0x3c78b2){return _0x3696(_0x58a163- -0x242,_0x2e7f93);}function _0x1ee589(_0x225755,_0x17d8b3,_0x9eb02d,_0xba9d9a){return _0x3696(_0xba9d9a- -_0x5aaada._0x232b69,_0x17d8b3);}return _0x2624c8['id'][_0x3b8cc1(-0x6d,-0x60,-_0x3f998e._0x25f0d0,-0x81)]()['length']>0x0&&_0x2624c8[_0x3b8cc1(-0x72,-_0x3f998e._0xafe973,-0x74,-0x55)][_0x3b8cc1(-_0x3f998e._0x52a42f,-0x63,-_0x3f998e._0x56a86a,-_0x3f998e._0x526494)]()[_0x1ee589(_0x3f998e._0x548ce0,_0x3f998e._0x36a74f,_0x3f998e._0x398b76,0x125)]>0x0;}function hasSerializableToolResult(_0x438353){const _0x2a5d6b={_0x217238:0x1be,_0x5cdd30:0x18b,_0x6576ad:0x1c3,_0x43e266:0x1a5},_0x58a2a8={_0x3c3f7b:0x2f},_0x139975={_0xa878c1:0x7c};function _0x5b70b2(_0x5eb4ca,_0x3804ac,_0x2ab74f,_0x45b675){return _0x3696(_0x5eb4ca- -_0x139975._0xa878c1,_0x3804ac);}function _0x451bbe(_0xa85c56,_0x2ab2d9,_0x497524,_0x1165f8){return _0x3696(_0x497524- -_0x58a2a8._0x3c3f7b,_0xa85c56);}return _0x438353[_0x451bbe(_0x2a5d6b._0x217238,0x1b4,0x1be,0x1b7)][_0x451bbe(0x189,_0x2a5d6b._0x5cdd30,0x1a6,0x193)]()[_0x451bbe(0x1ca,_0x2a5d6b._0x6576ad,0x1b6,_0x2a5d6b._0x43e266)]>0x0;}function _0x22cc(){const _0x33243f=['zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBhm','CMvHC29UAw5N','nZmWnJaYB3zvCuPp','BgvUz3rO','C3rHDhvZ','mZvIz2X3ug8','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','ChvZAa','mZiYmLLoAvz6rW','zgf0yq','mJuXmdq5me5ju01Jwq','Dg9VBf91C2vFAwq','mJm3nKHhs3zwva','Aw5WDxrFDgv4Da','yxnZAxn0yw50','mZm0odCXverIrKLS','C3bSAwnL','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','mte2ntCXmtvvvgf3tLO','C3vTBwfYEq','ANnVBL9Zy2HLBwe','mJeYme1fr05TrW','Bwf4vg9Rzw5Z','mtfAqKrAv0i','y29UDgvUDa','BwfW','mZKYC3neAvnI','C3rYAw5N','BwvZC2fNzq','C3LZDgvT','Aw5WDxrFC2nOzw1H','zwzMB3j0','CM9Szq','zNvUy3rPB25Fy2fSBa','zgf0ytO','DxnLCG','DxnLCI12AxnPyMXL','C3rYAwn0','yMfZzty0','BwvKAwfFDhLWzq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','Aw5WDxrFAw1Hz2u','AxnbCNjHEq','A2v5CW','y29KzxG','Aw5WDxq','o2jHC2u2ncW','BMfTzq','mtm0nZiZmNjcBKPnwq','yxv0BW','B3v0Chv0rM9YBwf0','Aw1Hz2u','DhjPBq','AM9PBG','B2jQzwn0','zNvUy3rPB24','Dgv4Da','zMLSDgvY','Dg9VBf91C2u','DhLWzq','BwvZC2fNzxm','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Dg9VBf9Yzxn1Bhq','C291CMnL'];_0x22cc=function(){return _0x33243f;};return _0x22cc();}function isResponseInputObject(_0x1ccb5d){const _0x301357={_0x3e22be:0x149,_0x190640:0x169,_0x37f9a6:0x166,_0x4c311b:0x16f,_0x361d23:0x17e,_0x26a6b9:0x5bb,_0x260c24:0x5be};if(typeof _0x1ccb5d!==_0x4ed1b8(_0x301357._0x3e22be,0x186,_0x301357._0x190640,_0x301357._0x37f9a6)||_0x1ccb5d===null||Array[_0x4ed1b8(0x14f,_0x301357._0x4c311b,0x176,0x15a)](_0x1ccb5d))return![];function _0x4ed1b8(_0x5d53c5,_0x21abe7,_0xcf04b2,_0x27913e){return _0x3696(_0x27913e- -0x71,_0xcf04b2);}function _0x313814(_0x574207,_0x145adf,_0x5708d4,_0x163e7b){return _0x3696(_0x163e7b-0x3ce,_0x145adf);}const _0x254c57=_0x1ccb5d;return typeof _0x254c57[_0x4ed1b8(_0x301357._0x361d23,0x16d,0x15b,0x16b)]===_0x313814(0x5ad,_0x301357._0x26a6b9,_0x301357._0x260c24,0x5cb);}function isImageToolResultBlock(_0xb55ddc){const _0x4fd2ff={_0x5c3529:0x99,_0x5fe0c0:0x82,_0x18f774:0x89,_0x220ea3:0xa9,_0xaa91bc:0xf3,_0x2fb0a0:0x113,_0x45777a:0xee,_0x173ad0:0xeb,_0x32e52e:0x104,_0x2e0247:0x111,_0x36a413:0xf7,_0x1f77eb:0xf5,_0x9cda59:0xa1,_0x20c745:0x97,_0x47eb46:0x91,_0x579aa7:0x71,_0x1aa819:0x8e,_0x3fbafc:0x8a,_0x1076db:0xaa,_0x3ed5c4:0x121,_0x4434e3:0x114},_0x673a6e={_0x16d400:0xe9};function _0x3c0859(_0x43f274,_0x53ee8f,_0x1a8b7f,_0x31d262){return _0x3696(_0x43f274- -0x26e,_0x31d262);}if(typeof _0xb55ddc!==_0x3c0859(-0x97,-_0x4fd2ff._0x5c3529,-_0x4fd2ff._0x5fe0c0,-_0x4fd2ff._0x18f774)||_0xb55ddc===null||Array[_0x3c0859(-0xa3,-_0x4fd2ff._0x5c3529,-_0x4fd2ff._0x220ea3,-0xb5)](_0xb55ddc))return![];const _0x56a5af=_0xb55ddc;function _0x4e5cef(_0x2f5e69,_0x33e880,_0x29c4de,_0x422c5c){return _0x3696(_0x33e880- -_0x673a6e._0x16d400,_0x2f5e69);}return _0x56a5af[_0x4e5cef(0xfc,_0x4fd2ff._0xaa91bc,_0x4fd2ff._0x2fb0a0,_0x4fd2ff._0x45777a)]===_0x4e5cef(0xe6,_0x4fd2ff._0x173ad0,0xd8,_0x4fd2ff._0x32e52e)&&_0x56a5af[_0x4e5cef(_0x4fd2ff._0x2e0247,_0x4fd2ff._0x36a413,0xee,0xee)]?.[_0x4e5cef(_0x4fd2ff._0x1f77eb,0xf3,0x110,0xea)]===_0x3c0859(-0xa7,-0x92,-_0x4fd2ff._0x9cda59,-0xbc)&&typeof _0x56a5af[_0x3c0859(-0x8e,-0x7c,-_0x4fd2ff._0x20c745,-_0x4fd2ff._0x47eb46)]['media_type']===_0x3c0859(-_0x4fd2ff._0x579aa7,-0x70,-0x58,-0x83)&&typeof _0x56a5af[_0x3c0859(-_0x4fd2ff._0x1aa819,-_0x4fd2ff._0x3fbafc,-_0x4fd2ff._0x1076db,-0xa1)]['data']===_0x4e5cef(_0x4fd2ff._0x3ed5c4,_0x4fd2ff._0x4434e3,0x109,0x10c);}function getToolResultText(_0x56df73){const _0x38348e={_0x27e6e8:0x1f0,_0x2e5d64:0x1e4,_0x59f5d9:0x1c6,_0x54534f:0x1d8,_0x20c59a:0x378},_0x254424={_0x2d0b9b:0xff,_0x36fd06:0x104,_0x37cc89:0x100,_0x2353b6:0xdf,_0x4c07b8:0xf3},_0xce1923={_0x3c38c8:0x17e};if(typeof _0x56df73===_0x68f6b0(_0x38348e._0x27e6e8,0x1e9,_0x38348e._0x27e6e8,_0x38348e._0x2e5d64))return _0x56df73;const _0xa723dd=_0x56df73[_0x68f6b0(_0x38348e._0x59f5d9,0x1c6,0x1a6,_0x38348e._0x54534f)](_0x4bc3b2=>{const _0x5d2ea4={_0x3d5f57:0x195,_0x390f66:0x273};function _0x5e77ec(_0x222b3e,_0x5929fb,_0x26aeb3,_0x3ad351){return _0x68f6b0(_0x5929fb,_0x3ad351-0x1e8,_0x26aeb3-0x1bd,_0x3ad351-_0xce1923._0x3c38c8);}function _0x465ddf(_0x5405fc,_0x35353b,_0x31d541,_0x5bed63){return _0x548098(_0x5405fc,_0x35353b-_0x5d2ea4._0x3d5f57,_0x31d541-0x135,_0x31d541- -_0x5d2ea4._0x390f66);}return typeof _0x4bc3b2===_0x465ddf(0xf9,_0x254424._0x2d0b9b,0xfb,_0x254424._0x36fd06)&&_0x4bc3b2!==null&&_0x4bc3b2[_0x465ddf(0xe5,0xec,_0x254424._0x37cc89,0x112)]===_0x465ddf(_0x254424._0x2353b6,_0x254424._0x4c07b8,0xfd,0x117);})['map'](_0x3b4cae=>_0x3b4cae[_0x548098(0x37c,0x38c,0x36a,0x370)])['join']('\x0a\x0a')['trim']();function _0x548098(_0x3a7ab6,_0x2e97be,_0x3e2310,_0x334eea){return _0x3696(_0x334eea-0x197,_0x3a7ab6);}function _0x68f6b0(_0x181590,_0x6f337f,_0x4825e9,_0x3839cf){return _0x3696(_0x6f337f- -0x14,_0x181590);}return _0xa723dd['length']>0x0?_0xa723dd:_0x548098(0x36b,_0x38348e._0x20c59a,0x37f,0x37f);}function getToolResultImages(_0x5a1594){const _0x23fab0={_0x5d83fa:0x306};function _0x38344f(_0x45db16,_0x140ed9,_0x470093,_0x1fbd39){return _0x3696(_0x470093-0x129,_0x1fbd39);}return Array[_0x38344f(0x300,_0x23fab0._0x5d83fa,0x2f4,0x2d7)](_0x5a1594)?_0x5a1594['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x58d48f){const _0x4d5e79={_0x1cb254:0x93,_0x4e6911:0xb0,_0xda9ab:0x7b,_0x3ab923:0x62,_0xc4b191:0x78},_0x38f12b={_0x41d86a:0xa0};function _0x4f21e4(_0x1294cf,_0x2f54b0,_0x785aa8,_0x2015fd){return _0x3696(_0x2f54b0- -_0x38f12b._0x41d86a,_0x785aa8);}function _0x127fa9(_0x40c427,_0x88e0c3,_0x17ccec,_0x2c760f){return _0x3696(_0x40c427- -0x150,_0x17ccec);}return _0x58d48f[_0x127fa9(_0x4d5e79._0x1cb254,_0x4d5e79._0x4e6911,0x9a,_0x4d5e79._0xda9ab)]?.['visibility']??_0x127fa9(0x75,_0x4d5e79._0x3ab923,_0x4d5e79._0xc4b191,0x7b);}function createOpenAiResponsesReasoning(_0x3f32f5){const _0xd76811={_0x555f43:0x508,_0x4bb134:0x501,_0x1ddb7a:0x4dc,_0x55e1b8:0x276,_0x3a22d2:0x271,_0x271ec0:0x503,_0x233b1d:0x510,_0xe6ca5d:0x4d7,_0x37cd39:0x256,_0x4d6877:0x269,_0x149457:0x267,_0x1c420c:0x24c,_0x29e8b8:0x4c7,_0x2d2847:0x4c5,_0x2c6102:0x503,_0x5113e9:0x521,_0x43d79d:0x502,_0x5dd7af:0x4ec,_0xd8b37:0x287,_0x2964aa:0x4cc,_0x383101:0x4ee,_0x482162:0x4c6,_0x37a840:0x275,_0x191888:0x293,_0x4a5c93:0x4f3,_0x120e78:0x513},_0x52cbdb={_0x209a6e:0xa9},_0x20ed87=resolveOpenAiReasoningConfig(_0x3f32f5['reasoning']);if(!_0x20ed87)return{};function _0x42e178(_0x355464,_0x4776a2,_0x5d6ad8,_0x47eff0){return _0x3696(_0x4776a2-_0x52cbdb._0x209a6e,_0x5d6ad8);}const _0x2e68f7={},_0x2a9705=_0x3f32f5[_0x31bc95(0x4f1,_0xd76811._0x555f43,_0xd76811._0x4bb134,_0xd76811._0x1ddb7a)]?.[_0x42e178(0x288,_0xd76811._0x55e1b8,0x288,_0xd76811._0x3a22d2)]!==void 0x0,_0xa244f=(!_0x2a9705&&_0x31bc95(_0xd76811._0x271ec0,_0xd76811._0x233b1d,0x51b,0x512)in _0x20ed87?_0x20ed87['summary']:void 0x0)??(resolveReasoningVisibility(_0x3f32f5)==='user-visible'?_0x31bc95(0x4e0,_0xd76811._0xe6ca5d,0x4e3,0x4cb):void 0x0);_0x20ed87[_0x42e178(0x251,0x269,_0xd76811._0x37cd39,0x24b)]&&(_0x2e68f7[_0x42e178(0x263,_0xd76811._0x4d6877,_0xd76811._0x149457,_0xd76811._0x1c420c)]=_0x20ed87[_0x31bc95(0x4ce,_0xd76811._0x29e8b8,_0xd76811._0x2d2847,0x4c0)]);_0xa244f&&(_0x2e68f7[_0x31bc95(_0xd76811._0x2c6102,_0xd76811._0x5113e9,_0xd76811._0x43d79d,0x4e7)]=_0xa244f);function _0x31bc95(_0x4916f7,_0x4a2817,_0x18755e,_0x339901){return _0x3696(_0x4916f7-0x30e,_0x339901);}return{...!_0x2a9705&&_0x31bc95(_0xd76811._0x5dd7af,0x4d8,0x4f2,0x4ed)in _0x20ed87&&_0x20ed87[_0x42e178(0x26d,_0xd76811._0xd8b37,0x26c,0x298)]===![]?{}:{'include':[_0x31bc95(0x4d7,_0xd76811._0x2964aa,_0xd76811._0x383101,_0xd76811._0x482162)]},...Object[_0x42e178(_0xd76811._0xd8b37,_0xd76811._0x37a840,_0xd76811._0x191888,0x281)](_0x2e68f7)[_0x31bc95(_0xd76811._0x4a5c93,0x4ea,0x50b,_0xd76811._0x120e78)]>0x0?{'reasoning':_0x2e68f7}:{}};}function pushAssistantProviderState(_0xea97f,_0x3c833f,_0x1dbfe6){const _0x3deb30={_0x411174:0x1a2,_0x5cfb71:0x1a0,_0x3c78f9:0x1bf,_0x5099e6:0x194,_0x49ba6b:0x16d,_0x449eb4:0x4ca,_0x3e9085:0x4a1,_0x5c5e88:0x1a3,_0x5e03af:0x184,_0x169d4f:0x19a,_0x53681b:0x185,_0x26f286:0x490,_0x45ba23:0x19c,_0x34f23c:0x186,_0x464a6e:0x196,_0x4e65bf:0x4a9};function _0x507060(_0x15535e,_0x2de28d,_0x363a8b,_0x1c415c){return _0x3696(_0x15535e-0x2c5,_0x2de28d);}if(_0x3c833f[_0x204dbc(-0x1c9,-_0x3deb30._0x411174,-_0x3deb30._0x5cfb71,-_0x3deb30._0x3c78f9)]!=='assistant')return![];if(!isProviderStateCompatible(_0x3c833f,_0x1dbfe6))return![];const _0x2337be=_0x3c833f['providerState']?.[_0x204dbc(-_0x3deb30._0x5099e6,-_0x3deb30._0x49ba6b,-0x1a8,-0x18d)]??[];if(_0x2337be[_0x507060(0x4aa,_0x3deb30._0x449eb4,_0x3deb30._0x3e9085,_0x3deb30._0x3e9085)]===0x0)return![];for(const _0x3abdfe of _0x2337be){if(isResponseInputObject(_0x3abdfe)){const _0x16abbc=structuredClone(_0x3abdfe);delete _0x16abbc[_0x204dbc(-_0x3deb30._0x5c5e88,-_0x3deb30._0x5e03af,-0x18f,-_0x3deb30._0x169d4f)],_0x16abbc[_0x204dbc(-_0x3deb30._0x53681b,-0x186,-0x1c5,-0x1a4)]==='reasoning'&&!Array[_0x507060(_0x3deb30._0x26f286,0x477,0x499,0x478)](_0x16abbc[_0x204dbc(-_0x3deb30._0x45ba23,-_0x3deb30._0x34f23c,-_0x3deb30._0x464a6e,-0x18b)])&&(_0x16abbc[_0x507060(0x4ba,_0x3deb30._0x4e65bf,0x4a9,0x4b8)]=[]),_0xea97f[_0x204dbc(-0x184,-0x1aa,-0x1a4,-0x197)](_0x16abbc);}}function _0x204dbc(_0x57149f,_0x1819de,_0x29a367,_0x360a68){return _0x3696(_0x360a68- -0x380,_0x57149f);}return!![];}function _0x3696(_0x4a07fb,_0x4d655f){_0x4a07fb=_0x4a07fb-0x1c0;const _0x22cc93=_0x22cc();let _0x3696c4=_0x22cc93[_0x4a07fb];if(_0x3696['NcKqop']===undefined){var _0x6ceb7f=function(_0x2f30f1){const _0x96652f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xae1a33='',_0x1c5aae='';for(let _0x52e5e4=0x0,_0x449ddb,_0x1e4bf7,_0x4d3c16=0x0;_0x1e4bf7=_0x2f30f1['charAt'](_0x4d3c16++);~_0x1e4bf7&&(_0x449ddb=_0x52e5e4%0x4?_0x449ddb*0x40+_0x1e4bf7:_0x1e4bf7,_0x52e5e4++%0x4)?_0xae1a33+=String['fromCharCode'](0xff&_0x449ddb>>(-0x2*_0x52e5e4&0x6)):0x0){_0x1e4bf7=_0x96652f['indexOf'](_0x1e4bf7);}for(let _0x2624c8=0x0,_0x438353=_0xae1a33['length'];_0x2624c8<_0x438353;_0x2624c8++){_0x1c5aae+='%'+('00'+_0xae1a33['charCodeAt'](_0x2624c8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1c5aae);};_0x3696['cWHqFB']=_0x6ceb7f,_0x3696['teUKKO']={},_0x3696['NcKqop']=!![];}const _0x1aef91=_0x22cc93[0x0],_0x3f5e95=_0x4a07fb+_0x1aef91,_0x560183=_0x3696['teUKKO'][_0x3f5e95];return!_0x560183?(_0x3696c4=_0x3696['cWHqFB'](_0x3696c4),_0x3696['teUKKO'][_0x3f5e95]=_0x3696c4):_0x3696c4=_0x560183,_0x3696c4;}function toOpenAiResponsesRequest(_0x20a053){const _0x6fbd8e={_0x317965:0x1e5,_0x14c6f5:0x1ed,_0x2def26:0x1f7,_0x21555e:0x349,_0x54271d:0x343,_0x3269aa:0x334,_0x224993:0x1da,_0x134f5b:0x1d1,_0x2ee89e:0x1db,_0x58c3d4:0x205,_0x2d4fe7:0x200,_0xc777d:0x326,_0x5c5279:0x327,_0x297f79:0x347,_0x289b1f:0x34c,_0x526fba:0x322,_0x203c8d:0x33a,_0x4de9b4:0x358,_0x47138b:0x341,_0x3cea00:0x320,_0x28e635:0x351,_0x3ac977:0x1b6,_0x18894a:0x335,_0x2d4b7c:0x35d,_0x5ee06e:0x342,_0x5d425f:0x1d1,_0x260318:0x1f9,_0x171146:0x219,_0x1a6895:0x2fe,_0x5ababa:0x31a,_0x50485e:0x333,_0x51aa0b:0x33c,_0x4e95ae:0x1de,_0xec112b:0x1fc,_0x572eb2:0x20c,_0x260b2a:0x325,_0x3f9113:0x337,_0x39ab81:0x335,_0xedacb9:0x205,_0x25c377:0x20a,_0x45fe8e:0x1ff,_0x21bc52:0x330,_0x381e16:0x338,_0x187150:0x339,_0x24dfb9:0x31e,_0x5c161d:0x32a,_0x170505:0x365,_0x1d7898:0x215,_0x53c2ea:0x345,_0x5a0cb6:0x33d,_0x35d190:0x213,_0x4cd64b:0x1eb,_0x3d69e0:0x20e,_0x4017b9:0x314,_0x525668:0x31c,_0x7e0f5a:0x2ff,_0x14c34b:0x204,_0x42d015:0x1fd,_0x183994:0x306,_0x316ea8:0x319,_0x44c86d:0x20f,_0x213d64:0x208,_0x118614:0x350,_0x538316:0x324,_0x1630e1:0x34e,_0xb72edf:0x336,_0x50bcb5:0x360,_0x4c7473:0x1f6,_0x105efa:0x1e3,_0x4c6303:0x1f2,_0x2de0aa:0x34c,_0x6ded98:0x329,_0x229938:0x31f,_0x19c0f4:0x1ef,_0x2d5869:0x1e0,_0x2340a0:0x1d6,_0x492841:0x33d},_0x3114dd={_0x417e52:0xce,_0x91af1b:0xb1,_0x23a34a:0x57,_0x26e74a:0x72,_0x332221:0x77},_0xf26879={_0x43f6f9:0x17f,_0x1dd43d:0x119},_0x3fedab={_0x86a1b3:0x158};function _0x5ec6d3(_0x28d669,_0x235426,_0x30bfef,_0x21d0ea){return _0x3696(_0x30bfef-_0x3fedab._0x86a1b3,_0x235426);}const _0x13d62a=[];function _0x184532(_0x3c5f35,_0x292954,_0x556d91,_0x4317b0){return _0x3696(_0x556d91-0x10,_0x3c5f35);}for(const _0x56298b of _0x20a053[_0x184532(_0x6fbd8e._0x317965,0x201,_0x6fbd8e._0x14c6f5,_0x6fbd8e._0x2def26)]){if(pushAssistantProviderState(_0x13d62a,_0x56298b,_0x20a053))continue;const _0x518f3f=[];for(const _0x29a61c of normalizeContent(_0x56298b['content'])){if(_0x29a61c[_0x5ec6d3(_0x6fbd8e._0x21555e,_0x6fbd8e._0x54271d,_0x6fbd8e._0x3269aa,0x338)]==='text'){_0x518f3f['push'](_0x56298b[_0x184532(_0x6fbd8e._0x224993,0x1d2,_0x6fbd8e._0x134f5b,_0x6fbd8e._0x2ee89e)]===_0x184532(_0x6fbd8e._0x58c3d4,0x1e5,_0x6fbd8e._0x2d4fe7,0x1ec)?{'type':'output_text','text':_0x29a61c['text']}:{'type':_0x5ec6d3(_0x6fbd8e._0xc777d,_0x6fbd8e._0x5c5279,_0x6fbd8e._0x297f79,_0x6fbd8e._0x289b1f),'text':_0x29a61c['text']});continue;}if(_0x29a61c[_0x5ec6d3(0x31d,_0x6fbd8e._0x526fba,_0x6fbd8e._0x3269aa,_0x6fbd8e._0x203c8d)]==='image'){_0x518f3f[_0x5ec6d3(_0x6fbd8e._0x4de9b4,0x359,_0x6fbd8e._0x47138b,0x333)]({'type':_0x5ec6d3(0x326,0x328,0x322,0x33d),'image_url':'data:'+_0x29a61c['source'][_0x5ec6d3(0x33b,0x313,_0x6fbd8e._0x3cea00,0x31a)]+_0x5ec6d3(0x30a,0x345,0x327,0x31f)+_0x29a61c['source'][_0x5ec6d3(0x322,0x332,_0x6fbd8e._0x54271d,_0x6fbd8e._0x28e635)]});continue;}pushUserContentMessage(_0x13d62a,_0x56298b[_0x184532(0x1e4,_0x6fbd8e._0x224993,_0x6fbd8e._0x134f5b,_0x6fbd8e._0x3ac977)],_0x518f3f[_0x5ec6d3(0x349,_0x6fbd8e._0x18894a,0x34a,_0x6fbd8e._0x2d4b7c)](0x0));if(_0x29a61c[_0x5ec6d3(0x33c,_0x6fbd8e._0x5ee06e,0x334,0x353)]===_0x184532(_0x6fbd8e._0x5d425f,0x1d6,0x1eb,0x1cb)){if(!hasSerializableToolUse(_0x29a61c))continue;_0x13d62a[_0x184532(_0x6fbd8e._0x260318,_0x6fbd8e._0x171146,0x1f9,0x209)]({'type':_0x5ec6d3(_0x6fbd8e._0x1a6895,0x31e,_0x6fbd8e._0x5ababa,_0x6fbd8e._0xc777d),'call_id':_0x29a61c['id'],'name':_0x29a61c[_0x5ec6d3(_0x6fbd8e._0x50485e,0x309,0x328,_0x6fbd8e._0x51aa0b)],'arguments':JSON['stringify'](_0x29a61c[_0x184532(0x1f4,0x1f0,_0x6fbd8e._0x4e95ae,_0x6fbd8e._0xec112b)]??{})});continue;}if(_0x29a61c[_0x184532(_0x6fbd8e._0x572eb2,0x1db,0x1ec,0x208)]===_0x5ec6d3(_0x6fbd8e._0x260b2a,0x31a,_0x6fbd8e._0x3f9113,_0x6fbd8e._0x39ab81)){if(!hasSerializableToolResult(_0x29a61c))continue;const _0x596419=getToolResultText(_0x29a61c[_0x184532(0x1eb,_0x6fbd8e._0xedacb9,_0x6fbd8e._0x25c377,0x20f)]);_0x13d62a[_0x184532(0x1dd,0x1f0,0x1f9,_0x6fbd8e._0x45fe8e)]({'type':_0x5ec6d3(_0x6fbd8e._0x21bc52,_0x6fbd8e._0x381e16,_0x6fbd8e._0x187150,_0x6fbd8e._0x24dfb9),'call_id':_0x29a61c[_0x5ec6d3(_0x6fbd8e._0x5c161d,_0x6fbd8e._0x170505,0x345,0x361)],'output':_0x596419});const _0x50d6d6=getToolResultImages(_0x29a61c[_0x184532(0x226,_0x6fbd8e._0x1d7898,0x20a,_0x6fbd8e._0x171146)]);_0x50d6d6[_0x5ec6d3(0x32c,_0x6fbd8e._0x53c2ea,_0x6fbd8e._0x5a0cb6,0x31f)]>0x0&&_0x13d62a[_0x184532(0x207,_0x6fbd8e._0x35d190,0x1f9,_0x6fbd8e._0x4cd64b)]({'type':_0x184532(0x22d,0x217,_0x6fbd8e._0x3d69e0,0x21e),'role':_0x5ec6d3(0x333,_0x6fbd8e._0x4017b9,_0x6fbd8e._0x525668,_0x6fbd8e._0x7e0f5a),'content':[{'type':_0x184532(0x1ed,_0x6fbd8e._0x14c34b,_0x6fbd8e._0x45fe8e,0x1ec),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x29a61c[_0x184532(0x1e6,0x1ef,_0x6fbd8e._0x42d015,0x1f7)]+'.'},..._0x50d6d6['map'](_0x31b380=>({'type':_0x5ec6d3(0x333,0x332,0x322,0x306),'image_url':_0x5ec6d3(0x307,0x328,0x31b,0x311)+_0x31b380[_0x5ec6d3(0x347,0x32e,0x338,0x325)][_0x184532(0x1e2,0x1ca,0x1d8,0x1c0)]+_0x5ec6d3(0x337,0x309,0x327,0x327)+_0x31b380[_0x184532(0x1fe,0x1e0,0x1f0,0x1d5)][_0x184532(0x205,0x204,0x1fb,0x1f6)]}))]});}}pushUserContentMessage(_0x13d62a,_0x56298b[_0x5ec6d3(_0x6fbd8e._0x24dfb9,_0x6fbd8e._0x183994,_0x6fbd8e._0x316ea8,0x308)],_0x518f3f);}return{...createOpenAiResponsesReasoning(_0x20a053),'model':_0x20a053['model'],'instructions':systemToInstructions(_0x20a053[_0x184532(0x201,0x213,_0x6fbd8e._0x44c86d,0x21a)]),'input':_0x13d62a,..._0x20a053[_0x184532(0x21f,0x1e9,_0x6fbd8e._0x213d64,0x205)]!==void 0x0?{'max_output_tokens':_0x20a053[_0x5ec6d3(0x352,0x33f,_0x6fbd8e._0x118614,0x347)]}:{},'tools':_0x20a053[_0x5ec6d3(_0x6fbd8e._0x538316,0x34d,0x33a,_0x6fbd8e._0x1630e1)][_0x5ec6d3(_0x6fbd8e._0xb72edf,0x34a,0x353,_0x6fbd8e._0x50bcb5)](_0x33bd44=>{function _0x2e8dd2(_0x12059e,_0x132ffa,_0x187da1,_0x4f3b63){return _0x184532(_0x4f3b63,_0x132ffa-_0xf26879._0x43f6f9,_0x187da1- -0x19e,_0x4f3b63-_0xf26879._0x1dd43d);}function _0x247750(_0x226d64,_0x20b324,_0x55d1a5,_0x154930){return _0x5ec6d3(_0x226d64-0x1c,_0x226d64,_0x55d1a5- -0x3e1,_0x154930-0xb8);}return{'type':_0x247750(-0xaf,-_0x3114dd._0x417e52,-_0x3114dd._0x91af1b,-0xc1),'name':_0x33bd44['name'],'description':_0x33bd44['description'],'parameters':_0x33bd44[_0x2e8dd2(_0x3114dd._0x23a34a,0x85,_0x3114dd._0x26e74a,_0x3114dd._0x332221)]};}),..._0x20a053[_0x184532(0x1cb,_0x6fbd8e._0x4c7473,_0x6fbd8e._0x105efa,_0x6fbd8e._0x4c6303)]?{'text':{'format':{'type':_0x5ec6d3(_0x6fbd8e._0x2de0aa,0x35f,0x34e,0x339),'name':_0x20a053[_0x5ec6d3(_0x6fbd8e._0x6ded98,0x339,0x32b,_0x6fbd8e._0x229938)][_0x184532(_0x6fbd8e._0x19c0f4,0x1ea,_0x6fbd8e._0x2d5869,_0x6fbd8e._0x2340a0)]??'structured_output','schema':_0x20a053['outputFormat']['schema'],'strict':_0x20a053['outputFormat'][_0x5ec6d3(0x30e,_0x6fbd8e._0x492841,0x31e,0x318)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
@@ -1 +1 @@
1
- (function(_0x4185cb,_0x21c4e2){var _0x5c2af4={_0xfa929b:0x14,_0x4e651a:0x24,_0x3078e2:0x1c,_0x17257b:0x30,_0x64460e:0x2d,_0x212d3e:0x22,_0x525d97:0x32,_0x5cddc1:0x39,_0x149d7f:0x2e,_0x2b5d6d:0x3b,_0x426b20:0x34,_0x470ffc:0x39,_0x41f318:0x38,_0x5fa8a4:0x36,_0x42d391:0x32},_0x584014={_0x2379e9:0x6f},_0x38959e=_0x4185cb();function _0x58d5b7(_0x500c49,_0xfb7144,_0x22ba94,_0x41c3ec){return _0x3986(_0x22ba94- -_0x584014._0x2379e9,_0x500c49);}function _0xedde99(_0x265e2b,_0x38e041,_0x1bab37,_0x564996){return _0x3986(_0x265e2b- -0xd1,_0x38e041);}while(!![]){try{var _0x54dd52=-parseInt(_0x58d5b7(_0x5c2af4._0xfa929b,_0x5c2af4._0x4e651a,0x1f,_0x5c2af4._0x3078e2))/0x1*(-parseInt(_0xedde99(-0x34,-0x32,-0x34,-_0x5c2af4._0x17257b))/0x2)+-parseInt(_0x58d5b7(0x24,0x2f,_0x5c2af4._0x64460e,0x34))/0x3*(parseInt(_0x58d5b7(0x1c,0x1c,_0x5c2af4._0x212d3e,0x26))/0x4)+parseInt(_0xedde99(-0x3d,-_0x5c2af4._0x525d97,-0x42,-0x45))/0x5*(parseInt(_0xedde99(-_0x5c2af4._0x5cddc1,-_0x5c2af4._0x149d7f,-0x38,-0x33))/0x6)+parseInt(_0x58d5b7(0x2d,_0x5c2af4._0x2b5d6d,_0x5c2af4._0x426b20,_0x5c2af4._0x470ffc))/0x7+-parseInt(_0xedde99(-0x3a,-0x35,-0x43,-_0x5c2af4._0x41f318))/0x8*(parseInt(_0xedde99(-_0x5c2af4._0x2b5d6d,-0x3c,-0x46,-0x46))/0x9)+-parseInt(_0xedde99(-_0x5c2af4._0x41f318,-0x3d,-0x2e,-0x37))/0xa*(-parseInt(_0xedde99(-_0x5c2af4._0x5fa8a4,-0x34,-_0x5c2af4._0x42d391,-_0x5c2af4._0x17257b))/0xb)+-parseInt(_0x58d5b7(0x2a,0x39,0x2f,0x29))/0xc;if(_0x54dd52===_0x21c4e2)break;else _0x38959e['push'](_0x38959e['shift']());}catch(_0x4dec22){_0x38959e['push'](_0x38959e['shift']());}}}(_0x443d,0xf0104));function _0x3986(_0x383308,_0x3b3f9f){_0x383308=_0x383308-0x8e;var _0x443d5b=_0x443d();var _0x398679=_0x443d5b[_0x383308];if(_0x3986['lEpwOz']===undefined){var _0x3950db=function(_0x30ba49){var _0x2043b5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x32355d='',_0x268ee3='';for(var _0x304b5c=0x0,_0x544cb3,_0x2fc54b,_0x149da8=0x0;_0x2fc54b=_0x30ba49['charAt'](_0x149da8++);~_0x2fc54b&&(_0x544cb3=_0x304b5c%0x4?_0x544cb3*0x40+_0x2fc54b:_0x2fc54b,_0x304b5c++%0x4)?_0x32355d+=String['fromCharCode'](0xff&_0x544cb3>>(-0x2*_0x304b5c&0x6)):0x0){_0x2fc54b=_0x2043b5['indexOf'](_0x2fc54b);}for(var _0x28ce18=0x0,_0x5d9912=_0x32355d['length'];_0x28ce18<_0x5d9912;_0x28ce18++){_0x268ee3+='%'+('00'+_0x32355d['charCodeAt'](_0x28ce18)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x268ee3);};_0x3986['oVhvXd']=_0x3950db,_0x3986['ZSsAAU']={},_0x3986['lEpwOz']=!![];}var _0x5f6df3=_0x443d5b[0x0],_0x37d4a3=_0x383308+_0x5f6df3,_0x2a5485=_0x3986['ZSsAAU'][_0x37d4a3];return!_0x2a5485?(_0x398679=_0x3986['oVhvXd'](_0x398679),_0x3986['ZSsAAU'][_0x37d4a3]=_0x398679):_0x398679=_0x2a5485,_0x398679;}function _0x5afca7(_0x187e00,_0x33df52,_0x38185c,_0x35fcf3){var _0x304a99={_0x153872:0x15f};return _0x3986(_0x35fcf3-_0x304a99._0x153872,_0x33df52);}var OperationAbortedError=class extends Error{[_0x1f302d(-0x14b,-0x146,-0x141,-0x142)]=_0x1f302d(-0x152,-0x14d,-0x14c,-0x144);constructor(_0x32355d=_0x1f302d(-0x13b,-0x133,-0x13c,-0x145)){var _0x124e4e={_0x1b2633:0x17c,_0x4ecf17:0x183},_0x3854e4={_0x583595:0x66,_0x484d5f:0x370};function _0x3b0bc7(_0x2114fe,_0x4a8bc2,_0xd2f383,_0x7f8d05){return _0x5afca7(_0x2114fe-_0x3854e4._0x583595,_0x2114fe,_0xd2f383-0x3,_0xd2f383- -_0x3854e4._0x484d5f);}super(_0x32355d),this['name']=_0x3b0bc7(-0x186,-0x183,-_0x124e4e._0x1b2633,-_0x124e4e._0x4ecf17);}};function toAbortError(_0x268ee3){var _0x1bafc1={_0x413e53:0x1a,_0x32efc6:0x168};function _0x532662(_0x35cbbb,_0x575dbe,_0x599f9e,_0x19b68b){return _0x5afca7(_0x35cbbb-_0x1bafc1._0x413e53,_0x19b68b,_0x599f9e-0x11,_0x35cbbb-_0x1bafc1._0x32efc6);}if(isAbortError(_0x268ee3))return _0x268ee3;if(_0x268ee3 instanceof Error)return new OperationAbortedError(_0x268ee3[_0x532662(0x369,0x36b,0x36c,0x368)]);if(typeof _0x268ee3==='string'&&_0x268ee3['length']>0x0)return new OperationAbortedError(_0x268ee3);return new OperationAbortedError();}function _0x443d(){var _0x2a14db=['mJe0mdy0n0jzzuvYvG','mty5mJr1BKzzAKe','mJa3mJaYotjbAgTMExm','t3bLCMf0Aw9UigfIB3j0zwq','ywjVCNq','CMvHC29U','BwvZC2fNzq','mJiZmty1nKrmu1LZEa','mtuXqKLXsKL3','qujpuLrFrvjs','CMvTB3zLrxzLBNrmAxn0zw5LCG','neP0DfPbua','ywjVCNrLza','ywrKrxzLBNrmAxn0zw5LCG','mJK1BhLjDg1l','qwjVCNrfCNjVCG','nde0rLnxC0rQ','odK1ntjzvurbvMu','ode0mdjiELjKs08','mtG3mhPlC3fZqq','y29Kzq','ota2nZnrzfz1Exy'];_0x443d=function(){return _0x2a14db;};return _0x443d();}function _0x1f302d(_0x50c163,_0x241f65,_0x119b1d,_0x263a09){var _0x5cf98a={_0x183729:0x1db};return _0x3986(_0x119b1d- -_0x5cf98a._0x183729,_0x241f65);}function isAbortError(_0x304b5c){var _0x528e14={_0x32e4f3:0x2c8,_0x427d0d:0x2c2,_0xfd0228:0x2d0,_0x1268ab:0x2d1,_0x313515:0x2c5,_0x3fa2ba:0x7a},_0x535a33={_0x24934c:0xd5},_0x3d8cbb={_0x373968:0x195};function _0x42d536(_0x2233ac,_0x4e2568,_0x30e47d,_0x37dac2){return _0x5afca7(_0x2233ac-_0x3d8cbb._0x373968,_0x30e47d,_0x30e47d-0x142,_0x2233ac- -0x4c1);}function _0x449a58(_0x209f31,_0x3ed3f6,_0x414fed,_0x45678c){return _0x1f302d(_0x209f31-0x146,_0x3ed3f6,_0x45678c-0x1c6,_0x45678c-_0x535a33._0x24934c);}return _0x304b5c instanceof OperationAbortedError||_0x304b5c instanceof Error&&(_0x304b5c['name']==='AbortError'||_0x42d536(-_0x528e14._0x32e4f3,-_0x528e14._0x427d0d,-0x2bf,-_0x528e14._0xfd0228)in _0x304b5c&&_0x304b5c[_0x42d536(-0x2c8,-0x2ce,-_0x528e14._0x1268ab,-_0x528e14._0x313515)]===_0x449a58(0x82,0x7d,0x81,_0x528e14._0x3fa2ba));}function throwIfAborted(_0x544cb3){var _0x2c41d8={_0x16a54c:0xad,_0x3eec74:0x6e,_0x580f98:0x6d},_0xbfaf34={_0x1ec9b8:0xac},_0x2a4572={_0x507309:0x25,_0x3be64a:0x12};function _0xd358dd(_0x36e3a2,_0x16769b,_0xfe8dcf,_0x92ada2){return _0x1f302d(_0x36e3a2-_0x2a4572._0x507309,_0x36e3a2,_0x92ada2-0xcc,_0x92ada2-_0x2a4572._0x3be64a);}if(!_0x544cb3?.[_0x58b543(-0xa0,-_0x2c41d8._0x16a54c,-0xa8,-0xa9)])return;function _0x58b543(_0x1c9479,_0x2bcc93,_0x164de6,_0x1e0b00){return _0x1f302d(_0x1c9479-_0xbfaf34._0x1ec9b8,_0x2bcc93,_0x1e0b00-0xa0,_0x1e0b00-0xd3);}throw toAbortError(_0x544cb3[_0xd358dd(-_0x2c41d8._0x3eec74,-_0x2c41d8._0x580f98,-0x6a,-0x6e)]);}function addAbortListener(_0x2fc54b,_0x149da8){var _0x53352e={_0x1c8088:0x282,_0x5a235d:0x28a,_0xd2a55f:0x283,_0x4247c8:0x276},_0x348b24={_0x33be6e:0x237,_0x3dd71f:0x243,_0xbe26:0x23f},_0x9b38d9={_0x2612c6:0x129},_0x3676f2={_0x44cd7b:0x126,_0x1c67e6:0x328};if(!_0x2fc54b)return()=>{};function _0x591b36(_0x54eccd,_0x290960,_0x218f7c,_0x4725bc){return _0x1f302d(_0x54eccd-0x157,_0x290960,_0x218f7c- -0x13b,_0x4725bc-0x19e);}if(_0x2fc54b['aborted'])return _0x149da8(),()=>{};function _0x237120(_0x492eb7,_0x11ab7b,_0x1d0e27,_0x4c0fec){return _0x1f302d(_0x492eb7-_0x3676f2._0x44cd7b,_0x4c0fec,_0x11ab7b-_0x3676f2._0x1c67e6,_0x4c0fec-0x12d);}const _0x28ce18=()=>{_0x149da8();};return _0x2fc54b[_0x591b36(-_0x53352e._0x1c8088,-_0x53352e._0x5a235d,-_0x53352e._0xd2a55f,-0x284)](_0x591b36(-0x272,-_0x53352e._0x4247c8,-_0x53352e._0x4247c8,-0x272),_0x28ce18,{'once':!![]}),()=>{var _0x4a3836={_0x5494f2:0x2f0};function _0xc9d038(_0x5bf02f,_0x52435e,_0x1ab685,_0x897de1){return _0x237120(_0x5bf02f-_0x9b38d9._0x2612c6,_0x52435e-0x5a,_0x1ab685-0x11a,_0x5bf02f);}function _0x443c60(_0x4a305f,_0x2574ca,_0x933104,_0x58e8b7){return _0x237120(_0x4a305f-0x18,_0x2574ca- -_0x4a3836._0x5494f2,_0x933104-0x17b,_0x4a305f);}_0x2fc54b[_0xc9d038(0x230,_0x348b24._0x33be6e,0x23d,0x230)](_0xc9d038(0x24f,0x247,_0x348b24._0x3dd71f,_0x348b24._0xbe26),_0x28ce18);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ (function(_0x20e7ca,_0x370bb2){var _0xe5d8dd={_0x203d00:0x242,_0x389862:0x23b,_0x29c181:0x235,_0x8a7ea3:0x232,_0x2bccd7:0x22e,_0x3cc324:0x237,_0x42570f:0x226,_0x50b15a:0x221,_0x3128e7:0x226,_0x5c94d0:0x223,_0xc603a:0x221,_0xe850ba:0x22a,_0x46a908:0x224,_0x51345a:0x220,_0x2f4478:0x217,_0x5d3e27:0x21e,_0x56a369:0x229,_0x1dcbcb:0x22d},_0x53c72b={_0x4d5075:0x312};function _0x341d5e(_0x426569,_0x7a8ee5,_0x379692,_0x3e6b8f){return _0x17c3(_0x426569- -_0x53c72b._0x4d5075,_0x379692);}var _0xe5db58=_0x20e7ca();function _0x57a045(_0x107ed0,_0x4d12c9,_0x2006e4,_0x3efa12){return _0x17c3(_0x4d12c9-0x14e,_0x107ed0);}while(!![]){try{var _0x3428c0=parseInt(_0x341d5e(-0x23e,-_0xe5d8dd._0x203d00,-0x239,-_0xe5d8dd._0x389862))/0x1*(parseInt(_0x341d5e(-_0xe5d8dd._0x29c181,-0x23c,-0x232,-0x23e))/0x2)+parseInt(_0x341d5e(-_0xe5d8dd._0x8a7ea3,-0x22d,-_0xe5d8dd._0x2bccd7,-_0xe5d8dd._0x3cc324))/0x3+parseInt(_0x57a045(_0xe5d8dd._0x42570f,_0xe5d8dd._0x50b15a,0x21c,0x219))/0x4+-parseInt(_0x57a045(0x231,0x22d,0x232,_0xe5d8dd._0x3128e7))/0x5+-parseInt(_0x57a045(0x223,_0xe5d8dd._0x5c94d0,0x225,_0xe5d8dd._0xc603a))/0x6*(-parseInt(_0x57a045(0x22d,_0xe5d8dd._0xe850ba,0x22d,_0xe5d8dd._0x46a908))/0x7)+parseInt(_0x57a045(0x223,_0xe5d8dd._0x51345a,_0xe5d8dd._0x2f4478,_0xe5d8dd._0x5d3e27))/0x8+-parseInt(_0x57a045(0x220,_0xe5d8dd._0x56a369,_0xe5d8dd._0x1dcbcb,0x226))/0x9;if(_0x3428c0===_0x370bb2)break;else _0xe5db58['push'](_0xe5db58['shift']());}catch(_0x38bdad){_0xe5db58['push'](_0xe5db58['shift']());}}}(_0x2fad,0xbb77d));function _0x17c3(_0x1e1139,_0x1467ca){_0x1e1139=_0x1e1139-0xd0;var _0x2fadde=_0x2fad();var _0x17c377=_0x2fadde[_0x1e1139];if(_0x17c3['IWJGxF']===undefined){var _0x59c66f=function(_0x5038c4){var _0x18a08e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4ec219='',_0x311f8d='';for(var _0xe53f65=0x0,_0x1433ad,_0x4be4b7,_0x2f1696=0x0;_0x4be4b7=_0x5038c4['charAt'](_0x2f1696++);~_0x4be4b7&&(_0x1433ad=_0xe53f65%0x4?_0x1433ad*0x40+_0x4be4b7:_0x4be4b7,_0xe53f65++%0x4)?_0x4ec219+=String['fromCharCode'](0xff&_0x1433ad>>(-0x2*_0xe53f65&0x6)):0x0){_0x4be4b7=_0x18a08e['indexOf'](_0x4be4b7);}for(var _0x354ace=0x0,_0x46c5b7=_0x4ec219['length'];_0x354ace<_0x46c5b7;_0x354ace++){_0x311f8d+='%'+('00'+_0x4ec219['charCodeAt'](_0x354ace)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x311f8d);};_0x17c3['DNHmpt']=_0x59c66f,_0x17c3['CWuGbx']={},_0x17c3['IWJGxF']=!![];}var _0x453ab1=_0x2fadde[0x0],_0x107d2e=_0x1e1139+_0x453ab1,_0x32f0bd=_0x17c3['CWuGbx'][_0x107d2e];return!_0x32f0bd?(_0x17c377=_0x17c3['DNHmpt'](_0x17c377),_0x17c3['CWuGbx'][_0x107d2e]=_0x17c377):_0x17c377=_0x32f0bd,_0x17c377;}function _0x2fad(){var _0x4f08ad=['mtqYnJq2mdrmueXxAg0','mZi1nvfvseLivq','nty1nte0DefVENfz','ywjVCNrLza','mJuWnJq1DMzWDK5I','mZy5m2rYqurZta','ywjVCNq','BwvZC2fNzq','qujpuLrFrvjs','ndi5nZGWohvbCgzxza','mta0nJqYmgjpD0vovq','mxrPExjwvW','mtCWmZrNEKT0tgG','qwjVCNrfCNjVCG','y29Kzq','BMfTzq','BgvUz3rO','ywrKrxzLBNrmAxn0zw5LCG'];_0x2fad=function(){return _0x4f08ad;};return _0x2fad();}var OperationAbortedError=class extends Error{[_0x729deb(0x23d,0x23e,0x236,0x244)]=_0x729deb(0x237,0x238,0x237,0x232);constructor(_0x4ec219='Operation\x20aborted'){var _0x3bedba={_0x42326f:0x3c1,_0x17633c:0x3bc,_0x3a8efe:0x2c9},_0xe27018={_0x54bca0:0x505},_0x12480d={_0x55956c:0x17b,_0x9c9d7a:0x122,_0x425c4c:0x6f};function _0x1d3ca6(_0x51819f,_0x288212,_0x5433ae,_0x27f702){return _0x729deb(_0x27f702-_0x12480d._0x55956c,_0x51819f,_0x5433ae-_0x12480d._0x9c9d7a,_0x27f702-_0x12480d._0x425c4c);}super(_0x4ec219);function _0x1b7f34(_0x762a3d,_0x51b8d4,_0x2877f2,_0x32aad4){return _0x729deb(_0x2877f2- -_0xe27018._0x54bca0,_0x51b8d4,_0x2877f2-0x4b,_0x32aad4-0x152);}this[_0x1d3ca6(_0x3bedba._0x42326f,_0x3bedba._0x17633c,0x3bf,0x3b9)]=_0x1b7f34(-0x2cb,-0x2cd,-_0x3bedba._0x3a8efe,-0x2c9);}};function toAbortError(_0x311f8d){var _0x52234f={_0x9a7ca2:0x10b,_0x22460e:0x107,_0x248018:0x117,_0x19e103:0x121,_0x55d810:0x115},_0x44dbe5={_0xfb1e18:0x196,_0x218d55:0x1a6},_0x4dbb47={_0x173117:0xea};function _0x50f599(_0x43e727,_0x4a839f,_0x1349e0,_0x22bb03){return _0x5a16d9(_0x43e727-0x9a,_0x43e727- -0x2ae,_0x22bb03,_0x22bb03-_0x4dbb47._0x173117);}if(isAbortError(_0x311f8d))return _0x311f8d;if(_0x311f8d instanceof Error)return new OperationAbortedError(_0x311f8d[_0x50f599(0x10f,_0x52234f._0x9a7ca2,_0x52234f._0x22460e,_0x52234f._0x248018)]);function _0x1a3caf(_0x16eacb,_0x1c435d,_0x4120c2,_0x26d021){return _0x729deb(_0x26d021-_0x44dbe5._0xfb1e18,_0x1c435d,_0x4120c2-0x11,_0x26d021-_0x44dbe5._0x218d55);}if(typeof _0x311f8d==='string'&&_0x311f8d[_0x50f599(0x118,_0x52234f._0x19e103,0x110,_0x52234f._0x55d810)]>0x0)return new OperationAbortedError(_0x311f8d);return new OperationAbortedError();}function isAbortError(_0xe53f65){var _0x4c4eee={_0x5890b3:0x18a,_0x578853:0x199,_0x2f2cfd:0x193,_0x262a5c:0x18c,_0x5d9991:0x192,_0x37805d:0x32f,_0x51068f:0x32e},_0x4a0b4b={_0x478dbc:0x1b3,_0x60a1c5:0x5b},_0x3bd0e3={_0x29d387:0x3cf};function _0x5b5dc2(_0x4de664,_0x5caa39,_0x3da37e,_0x2ce5f8){return _0x729deb(_0x2ce5f8- -_0x3bd0e3._0x29d387,_0x4de664,_0x3da37e-0x1ee,_0x2ce5f8-0xa);}function _0xd80eb6(_0x137e67,_0x114d7a,_0x4cf026,_0x108ccd){return _0x729deb(_0x4cf026-0xf1,_0x108ccd,_0x4cf026-_0x4a0b4b._0x478dbc,_0x108ccd-_0x4a0b4b._0x60a1c5);}return _0xe53f65 instanceof OperationAbortedError||_0xe53f65 instanceof Error&&(_0xe53f65[_0x5b5dc2(-0x195,-0x18b,-0x189,-0x191)]===_0x5b5dc2(-0x19a,-_0x4c4eee._0x5890b3,-_0x4c4eee._0x578853,-_0x4c4eee._0x2f2cfd)||_0x5b5dc2(-0x189,-_0x4c4eee._0x262a5c,-0x191,-_0x4c4eee._0x5d9991)in _0xe53f65&&_0xe53f65[_0xd80eb6(0x327,_0x4c4eee._0x37805d,_0x4c4eee._0x51068f,0x329)]==='ABORT_ERR');}function _0x5a16d9(_0x4c58f6,_0x5c92af,_0xa3b843,_0xfcee66){var _0x5920d9={_0x103a4d:0x2ed};return _0x17c3(_0x5c92af-_0x5920d9._0x103a4d,_0xa3b843);}function throwIfAborted(_0x1433ad){var _0x2e287d={_0x342c61:0x388,_0x5c2efe:0x388},_0x1d8c68={_0x5cc065:0x14d};function _0x321953(_0x3fbe8a,_0x349a8c,_0x2ecf90,_0xf99dff){return _0x729deb(_0x3fbe8a-0x146,_0x2ecf90,_0x2ecf90-0x151,_0xf99dff-_0x1d8c68._0x5cc065);}if(!_0x1433ad?.[_0x321953(0x38a,0x387,_0x2e287d._0x342c61,_0x2e287d._0x5c2efe)])return;throw toAbortError(_0x1433ad['reason']);}function _0x729deb(_0x3087cd,_0x1be229,_0x28a31a,_0x2ce03a){var _0x1c240d={_0x459004:0x166};return _0x17c3(_0x3087cd-_0x1c240d._0x459004,_0x1be229);}function addAbortListener(_0x4be4b7,_0x2f1696){var _0x37815a={_0x525366:0x87,_0x719565:0x85},_0x2208ab={_0x4c79ed:0x21f,_0x3b6329:0x217},_0x44bb80={_0x358dbb:0x78};if(!_0x4be4b7)return()=>{};if(_0x4be4b7['aborted'])return _0x2f1696(),()=>{};const _0x354ace=()=>{_0x2f1696();};_0x4be4b7[_0x15b2f2(-_0x37815a._0x525366,-0x84,-0x8c,-_0x37815a._0x719565)]('abort',_0x354ace,{'once':!![]});function _0x15b2f2(_0x14dc9d,_0x5b8c87,_0x4be99e,_0x3d659d){return _0x5a16d9(_0x14dc9d-_0x44bb80._0x358dbb,_0x4be99e- -0x453,_0x5b8c87,_0x3d659d-0x18a);}return()=>{function _0xacf90f(_0x439998,_0x3d77cf,_0x27b3fe,_0x301c8d){return _0x15b2f2(_0x439998-0x72,_0x27b3fe,_0x439998- -0x19a,_0x301c8d-0x102);}_0x4be4b7['removeEventListener'](_0xacf90f(-_0x2208ab._0x4c79ed,-0x225,-_0x2208ab._0x3b6329,-0x226),_0x354ace);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};