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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- function _0x33bb(){var _0x27aceb=['mJm0mJeWtvjHu3bn','mJa4mdaWoeDxELrcDq','ogTQqNjbzq','ndK4ndq2wg11qNLl','y29KzxG','B3bLBMfP','mte4mdmXnhPXDKDxCq','yw50AhjVCgLJ','ndyWBK5JCxzn','nZC4nwfozvvizq','ntGZmdi5mePSA3vosW','mta5odK1Dxrrr1L4','n2ryrhjhra'];_0x33bb=function(){return _0x27aceb;};return _0x33bb();}(function(_0x13ebc5,_0x492925){var _0x451e2c={_0x35ca41:0x32e,_0x173a5b:0x334,_0x219513:0x32b,_0x145b10:0x3cc,_0x28bb1a:0x3d2,_0xb6c2b8:0x3d3,_0x877292:0x3cb,_0x1c7972:0x3c5,_0x129589:0x3c9,_0x3a27bc:0x3d1,_0x477a1f:0x3cd,_0x1158d1:0x331,_0x5a8172:0x336,_0x489ffb:0x336,_0x3d0c83:0x3ce,_0x2b088a:0x3c3,_0x1af7f0:0x333,_0x5053b4:0x332,_0x280cf8:0x337,_0x31d5e2:0x32d,_0x357836:0x330},_0x22f18f={_0x114482:0x14e};function _0x4c7be(_0x39e416,_0x3048a2,_0x50dd07,_0x49114d){return _0x327a(_0x3048a2-0x1e7,_0x39e416);}var _0x148595=_0x13ebc5();function _0x1b0cb3(_0x6655d9,_0x4a0797,_0x4e7d86,_0x338dbe){return _0x327a(_0x6655d9-_0x22f18f._0x114482,_0x338dbe);}while(!![]){try{var _0x61a5a4=parseInt(_0x1b0cb3(_0x451e2c._0x35ca41,_0x451e2c._0x173a5b,_0x451e2c._0x219513,0x328))/0x1+-parseInt(_0x4c7be(_0x451e2c._0x145b10,0x3cc,_0x451e2c._0x28bb1a,_0x451e2c._0xb6c2b8))/0x2+parseInt(_0x4c7be(_0x451e2c._0x877292,_0x451e2c._0x1c7972,0x3c5,_0x451e2c._0x129589))/0x3*(-parseInt(_0x4c7be(0x3ce,_0x451e2c._0x3a27bc,0x3d8,_0x451e2c._0x477a1f))/0x4)+parseInt(_0x1b0cb3(0x330,_0x451e2c._0x1158d1,0x32a,_0x451e2c._0x5a8172))/0x5+parseInt(_0x1b0cb3(_0x451e2c._0x489ffb,0x337,0x338,0x339))/0x6*(parseInt(_0x4c7be(_0x451e2c._0x3d0c83,0x3c8,_0x451e2c._0x2b088a,_0x451e2c._0x477a1f))/0x7)+parseInt(_0x1b0cb3(0x332,0x32b,0x337,_0x451e2c._0x1af7f0))/0x8*(-parseInt(_0x1b0cb3(0x331,_0x451e2c._0x5053b4,_0x451e2c._0x280cf8,0x32a))/0x9)+parseInt(_0x1b0cb3(_0x451e2c._0x31d5e2,0x329,_0x451e2c._0x357836,0x32f))/0xa;if(_0x61a5a4===_0x492925)break;else _0x148595['push'](_0x148595['shift']());}catch(_0x465c6d){_0x148595['push'](_0x148595['shift']());}}}(_0x33bb,0x2681d));function _0x327a(_0x3e2259,_0x256635){_0x3e2259=_0x3e2259-0x1de;var _0x33bb09=_0x33bb();var _0x327a78=_0x33bb09[_0x3e2259];if(_0x327a['uFdaLQ']===undefined){var _0x2eb718=function(_0xf341d9){var _0x343d9a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x5d023b='',_0x1e8254='';for(var _0x62030e=0x0,_0x404c72,_0xa0502c,_0x295344=0x0;_0xa0502c=_0xf341d9['charAt'](_0x295344++);~_0xa0502c&&(_0x404c72=_0x62030e%0x4?_0x404c72*0x40+_0xa0502c:_0xa0502c,_0x62030e++%0x4)?_0x5d023b+=String['fromCharCode'](0xff&_0x404c72>>(-0x2*_0x62030e&0x6)):0x0){_0xa0502c=_0x343d9a['indexOf'](_0xa0502c);}for(var _0x36c4b9=0x0,_0x4d6bf0=_0x5d023b['length'];_0x36c4b9<_0x4d6bf0;_0x36c4b9++){_0x1e8254+='%'+('00'+_0x5d023b['charCodeAt'](_0x36c4b9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e8254);};_0x327a['qJFVTL']=_0x2eb718,_0x327a['ybYblP']={},_0x327a['uFdaLQ']=!![];}var _0x101f23=_0x33bb09[0x0],_0x464f78=_0x3e2259+_0x101f23,_0x1c8c03=_0x327a['ybYblP'][_0x464f78];return!_0x1c8c03?(_0x327a78=_0x327a['qJFVTL'](_0x327a78),_0x327a['ybYblP'][_0x464f78]=_0x327a78):_0x327a78=_0x1c8c03,_0x327a78;}function resolveAnthropicReasoningConfig(_0x5d023b){var _0x5e4e7c={_0x2d4f64:0x252,_0x28e91e:0x25f,_0x404c4c:0x25c,_0x5e8405:0x4ab},_0x3d0377={_0x3516f3:0x2c1};function _0x240564(_0x2eccc2,_0xf0da78,_0x2d45a4,_0x3c7cbe){return _0x327a(_0x3c7cbe-0x6f,_0x2d45a4);}function _0x24b484(_0x48745d,_0x5deb4a,_0x28a2e6,_0x16bbe8){return _0x327a(_0x5deb4a-_0x3d0377._0x3516f3,_0x16bbe8);}return _0x5d023b?.[_0x240564(_0x5e4e7c._0x2d4f64,_0x5e4e7c._0x28e91e,_0x5e4e7c._0x404c4c,0x258)]?structuredClone(_0x5d023b[_0x24b484(_0x5e4e7c._0x5e8405,0x4aa,0x4a4,0x4ab)]):void 0x0;}function resolveOpenAiReasoningConfig(_0x1e8254){var _0x25c8dc={_0x5620af:0x11f,_0x4c335b:0x11c,_0x48a6a5:0x121},_0x252ff6={_0x58eb74:0xc6};function _0x2753be(_0x44fe65,_0x4acc2e,_0x2410f2,_0x1e3998){return _0x327a(_0x1e3998-0x154,_0x4acc2e);}if(_0x1e8254?.[_0x5d9c96(0x120,0x11b,_0x25c8dc._0x5620af,0x11d)])return structuredClone(_0x1e8254['codex']);function _0x5d9c96(_0x14951f,_0x1f9f93,_0x53911c,_0x537285){return _0x327a(_0x14951f- -_0x252ff6._0x58eb74,_0x53911c);}return _0x1e8254?.[_0x5d9c96(0x121,0x122,_0x25c8dc._0x4c335b,0x11c)]?structuredClone(_0x1e8254[_0x5d9c96(_0x25c8dc._0x48a6a5,0x128,0x11d,0x11e)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
1
+ function _0x32d6(){var _0x37dfa0=['mJmYnKvZDvHPuG','yw50AhjVCgLJ','otuYmZvjwKDzs28','mtm1ndiYExvdB0jo','mtm3ngHzwMfjqq','nZe2ntq2yw5xuwDj','mZa3ndqZmeXxrefUsG','mtfHCKXNugu','mtaYEu5UzLL0','og9Pq2TSqW','y29KzxG','mZa0nti0owvtq2TIBq','mJK1mta4nJHQsK96t2K','B3bLBMfP','mte2qvbpz2fc'];_0x32d6=function(){return _0x37dfa0;};return _0x32d6();}function _0x2c51(_0x82f9df,_0x3103f9){_0x82f9df=_0x82f9df-0x11b;var _0x32d62b=_0x32d6();var _0x2c5186=_0x32d62b[_0x82f9df];if(_0x2c51['HVLQsV']===undefined){var _0x78ca0d=function(_0x16f979){var _0x2aa432='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x501781='',_0xde5736='';for(var _0x1b86de=0x0,_0x33472,_0xc6333d,_0xb14d39=0x0;_0xc6333d=_0x16f979['charAt'](_0xb14d39++);~_0xc6333d&&(_0x33472=_0x1b86de%0x4?_0x33472*0x40+_0xc6333d:_0xc6333d,_0x1b86de++%0x4)?_0x501781+=String['fromCharCode'](0xff&_0x33472>>(-0x2*_0x1b86de&0x6)):0x0){_0xc6333d=_0x2aa432['indexOf'](_0xc6333d);}for(var _0x19e46a=0x0,_0x461ce7=_0x501781['length'];_0x19e46a<_0x461ce7;_0x19e46a++){_0xde5736+='%'+('00'+_0x501781['charCodeAt'](_0x19e46a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xde5736);};_0x2c51['WPtbjh']=_0x78ca0d,_0x2c51['nkqSOC']={},_0x2c51['HVLQsV']=!![];}var _0xe80ccb=_0x32d62b[0x0],_0x1ab535=_0x82f9df+_0xe80ccb,_0x36c81f=_0x2c51['nkqSOC'][_0x1ab535];return!_0x36c81f?(_0x2c5186=_0x2c51['WPtbjh'](_0x2c5186),_0x2c51['nkqSOC'][_0x1ab535]=_0x2c5186):_0x2c5186=_0x36c81f,_0x2c5186;}(function(_0x2db1f1,_0x136614){var _0x2f0fa6={_0x759cee:0x2b2,_0x3f252b:0x2b0,_0x1d022f:0x11e,_0x4b7a38:0x11a,_0xe4c83e:0x2b5,_0x2b79bf:0x2af,_0x1543ad:0x2ad,_0x272077:0x2b2,_0x27a498:0x111,_0x161aaf:0x10e,_0x2b3148:0x122,_0x20b7d5:0x2ba,_0x3950a5:0x2b9,_0x2f3267:0x2b9,_0x581a6d:0x2b6,_0x2ee426:0x2b8,_0x5d316f:0x2b7,_0x325f2a:0x11f,_0x2aa7db:0x118,_0x240961:0x117,_0x35436e:0x2bc},_0x2db9ed={_0x3a1fc7:0x193};function _0x218618(_0x4c8689,_0x533b98,_0x1dbba0,_0x1c483d){return _0x2c51(_0x1dbba0- -0x23b,_0x533b98);}function _0x22081b(_0x41d844,_0x3e75c8,_0x546523,_0x3bb32e){return _0x2c51(_0x3bb32e-_0x2db9ed._0x3a1fc7,_0x3e75c8);}var _0x5ba663=_0x2db1f1();while(!![]){try{var _0x2b461f=-parseInt(_0x22081b(0x2b4,_0x2f0fa6._0x759cee,_0x2f0fa6._0x3f252b,0x2b5))/0x1+parseInt(_0x218618(-0x11b,-0x11a,-0x11e,-0x120))/0x2*(-parseInt(_0x218618(-0x11f,-_0x2f0fa6._0x1d022f,-_0x2f0fa6._0x4b7a38,-0x11b))/0x3)+-parseInt(_0x22081b(_0x2f0fa6._0xe4c83e,_0x2f0fa6._0x2b79bf,0x2ae,_0x2f0fa6._0x2b79bf))/0x4*(parseInt(_0x22081b(0x2ba,_0x2f0fa6._0x1543ad,0x2b4,_0x2f0fa6._0x272077))/0x5)+-parseInt(_0x218618(-_0x2f0fa6._0x27a498,-0x11d,-0x116,-_0x2f0fa6._0x161aaf))/0x6*(parseInt(_0x218618(-_0x2f0fa6._0x2b3148,-0x11a,-0x11b,-0x11c))/0x7)+parseInt(_0x22081b(0x2b9,_0x2f0fa6._0x20b7d5,_0x2f0fa6._0x3950a5,_0x2f0fa6._0x2f3267))/0x8*(parseInt(_0x22081b(_0x2f0fa6._0x581a6d,_0x2f0fa6._0x2ee426,_0x2f0fa6._0x5d316f,0x2bb))/0x9)+-parseInt(_0x218618(-_0x2f0fa6._0x325f2a,-0x11e,-_0x2f0fa6._0x2aa7db,-_0x2f0fa6._0x27a498))/0xa+-parseInt(_0x218618(-0x119,-0x11e,-_0x2f0fa6._0x240961,-0x111))/0xb*(-parseInt(_0x22081b(0x2b9,0x2bf,_0x2f0fa6._0x5d316f,_0x2f0fa6._0x35436e))/0xc);if(_0x2b461f===_0x136614)break;else _0x5ba663['push'](_0x5ba663['shift']());}catch(_0x27f7e2){_0x5ba663['push'](_0x5ba663['shift']());}}}(_0x32d6,0x57d20));function resolveAnthropicReasoningConfig(_0x501781){var _0x25490b={_0x447f29:0x25c,_0x4ab908:0x25a},_0x33c0d0={_0x59316f:0x2d4},_0x196b62={_0x12ab8d:0x13c};function _0x51f7af(_0x4964ec,_0x1e0a44,_0x51c8ac,_0x5bcff0){return _0x2c51(_0x5bcff0-_0x196b62._0x12ab8d,_0x51c8ac);}function _0x484a43(_0x4f1228,_0x305f4e,_0x289939,_0x2dcf86){return _0x2c51(_0x305f4e-_0x33c0d0._0x59316f,_0x2dcf86);}return _0x501781?.[_0x51f7af(_0x25490b._0x447f29,0x261,0x25b,_0x25490b._0x4ab908)]?structuredClone(_0x501781[_0x51f7af(0x261,0x25a,0x253,0x25a)]):void 0x0;}function resolveOpenAiReasoningConfig(_0xde5736){var _0x2dddcc={_0x5c47ee:0x153,_0x1cd751:0x160,_0x4d14a0:0x15c,_0x5f3c96:0x1b,_0xb3270e:0x15,_0x3b30f7:0x1d},_0x1b0757={_0x2c07cc:0x130};if(_0xde5736?.[_0x322df1(-0x159,-0x154,-0x14e,-0x152)])return structuredClone(_0xde5736[_0x322df1(-0x155,-0x154,-_0x2dddcc._0x5c47ee,-0x14d)]);function _0x322df1(_0x381d17,_0xdf867e,_0x140ab1,_0x5d4afa){return _0x2c51(_0xdf867e- -0x27b,_0x5d4afa);}function _0x4c0a3e(_0x4e00c1,_0x4710c9,_0xd927bc,_0x49ae8c){return _0x2c51(_0xd927bc- -_0x1b0757._0x2c07cc,_0x49ae8c);}return _0xde5736?.[_0x322df1(-0x163,-_0x2dddcc._0x1cd751,-_0x2dddcc._0x4d14a0,-0x161)]?structuredClone(_0xde5736[_0x4c0a3e(-0x15,-_0x2dddcc._0x5f3c96,-_0x2dddcc._0xb3270e,-_0x2dddcc._0x3b30f7)]):void 0x0;}export{resolveAnthropicReasoningConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x5ad3ea,_0x17395c){const _0x166f4e={_0x394fe1:0xc1,_0x1f3900:0x99,_0x40b306:0xb3,_0x4178ca:0x2c1,_0xb7b01:0x2be,_0xcdd151:0x28e,_0x7244cf:0x2c5,_0x4fa628:0x88,_0x131975:0x84,_0x456b52:0x2b0,_0x409ef6:0x8b,_0x3c395e:0x98,_0xa67cfc:0x72,_0x596fae:0x7c,_0x54e85b:0x6c,_0x5cb24d:0x2c7,_0x811c36:0x297,_0x545a25:0xad,_0xbc6519:0x6b,_0x37de67:0x58},_0x3a3d27={_0x569ffd:0x3};function _0x456eba(_0x17ad0f,_0x20a352,_0x4edf01,_0x357d42){return _0x4fd3(_0x4edf01- -0x344,_0x17ad0f);}function _0x4a2a5b(_0x212b36,_0x25b547,_0x264d02,_0x29f7d3){return _0x4fd3(_0x212b36-_0x3a3d27._0x569ffd,_0x25b547);}const _0x2d0915=_0x5ad3ea();while(!![]){try{const _0x5768d8=-parseInt(_0x4a2a5b(0x9f,_0x166f4e._0x394fe1,_0x166f4e._0x1f3900,_0x166f4e._0x40b306))/0x1*(-parseInt(_0x456eba(-0x2a3,-_0x166f4e._0x4178ca,-_0x166f4e._0xb7b01,-0x2c9))/0x2)+-parseInt(_0x456eba(-0x2b5,-0x2e3,-0x2d1,-0x2b2))/0x3+-parseInt(_0x4a2a5b(0x93,0x81,0x90,0x7e))/0x4*(parseInt(_0x456eba(-0x2b5,-_0x166f4e._0xcdd151,-0x2a4,-_0x166f4e._0x7244cf))/0x5)+-parseInt(_0x4a2a5b(0x72,_0x166f4e._0x4fa628,_0x166f4e._0x131975,0x5b))/0x6*(-parseInt(_0x456eba(-0x2a8,-0x2a8,-_0x166f4e._0x456b52,-0x2b8))/0x7)+parseInt(_0x4a2a5b(_0x166f4e._0x409ef6,_0x166f4e._0x3c395e,_0x166f4e._0xa67cfc,0x71))/0x8+-parseInt(_0x4a2a5b(_0x166f4e._0x596fae,0x84,0x76,_0x166f4e._0x54e85b))/0x9*(-parseInt(_0x456eba(-0x286,-_0x166f4e._0x5cb24d,-0x2a7,-_0x166f4e._0x811c36))/0xa)+parseInt(_0x4a2a5b(0x9c,0xbc,_0x166f4e._0x545a25,_0x166f4e._0x409ef6))/0xb*(-parseInt(_0x4a2a5b(_0x166f4e._0xbc6519,0x80,0x50,_0x166f4e._0x37de67))/0xc);if(_0x5768d8===_0x17395c)break;else _0x2d0915['push'](_0x2d0915['shift']());}catch(_0x2af600){_0x2d0915['push'](_0x2d0915['shift']());}}}(_0x42fa,0x2ca56));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';function _0x4fd3(_0x1d7b01,_0x4f9de7){_0x1d7b01=_0x1d7b01-0x64;const _0x42fac3=_0x42fa();let _0x4fd3a8=_0x42fac3[_0x1d7b01];if(_0x4fd3['TIQnvd']===undefined){var _0x432e10=function(_0x41d636){const _0xb0dd55='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x466ddb='',_0x4c409c='';for(let _0x238d10=0x0,_0x2a0f97,_0x53e377,_0x376f77=0x0;_0x53e377=_0x41d636['charAt'](_0x376f77++);~_0x53e377&&(_0x2a0f97=_0x238d10%0x4?_0x2a0f97*0x40+_0x53e377:_0x53e377,_0x238d10++%0x4)?_0x466ddb+=String['fromCharCode'](0xff&_0x2a0f97>>(-0x2*_0x238d10&0x6)):0x0){_0x53e377=_0xb0dd55['indexOf'](_0x53e377);}for(let _0x49d62a=0x0,_0x3140d0=_0x466ddb['length'];_0x49d62a<_0x3140d0;_0x49d62a++){_0x4c409c+='%'+('00'+_0x466ddb['charCodeAt'](_0x49d62a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4c409c);};_0x4fd3['HcduDD']=_0x432e10,_0x4fd3['DpnHgi']={},_0x4fd3['TIQnvd']=!![];}const _0x51c0f7=_0x42fac3[0x0],_0x8c4994=_0x1d7b01+_0x51c0f7,_0x13f254=_0x4fd3['DpnHgi'][_0x8c4994];return!_0x13f254?(_0x4fd3a8=_0x4fd3['HcduDD'](_0x4fd3a8),_0x4fd3['DpnHgi'][_0x8c4994]=_0x4fd3a8):_0x4fd3a8=_0x13f254,_0x4fd3a8;}import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x466ddb){const _0x2bcd76={_0x3d0932:0x388},_0x3154c0={_0x27ddb8:0x122};function _0x1c6984(_0xc8c51b,_0x501372,_0x59ff60,_0x397dee){return _0x4fd3(_0x501372- -_0x3154c0._0x27ddb8,_0x397dee);}function _0x18760e(_0xcad3f3,_0x2d60bb,_0x176d7a,_0x59032e){return _0x4fd3(_0x59032e- -_0x2bcd76._0x3d0932,_0x176d7a);}return normalizeContent(_0x466ddb)['filter'](_0x4c409c=>_0x4c409c[_0x18760e(-0x31f,-0x32a,-0x304,-0x30b)]==='text')['map'](_0x238d10=>_0x238d10[_0x1c6984(-0xa2,-0xb5,-0xa5,-0x9a)])['join']('\x0a\x0a');}function pushUserContentMessage(_0x2a0f97,_0x53e377,_0x376f77){const _0x290455={_0x49f88c:0x2ea,_0xc49585:0x306,_0x1bd2b1:0x30d,_0x4a5728:0x29,_0x4b3791:0x22,_0x7ec9fd:0x11},_0x4984eb={_0x70f9fa:0xac},_0x4c593b={_0x4b7f33:0x378};function _0x478bbe(_0xbf9383,_0x93fa21,_0xb2b963,_0x4ad60a){return _0x4fd3(_0xbf9383- -_0x4c593b._0x4b7f33,_0xb2b963);}if(_0x376f77[_0x478bbe(-0x2ef,-_0x290455._0x49f88c,-_0x290455._0xc49585,-_0x290455._0x1bd2b1)]===0x0)return;function _0x45d3ae(_0x11c3f2,_0x537531,_0x140260,_0xa6ff2c){return _0x4fd3(_0x11c3f2- -_0x4984eb._0x70f9fa,_0x140260);}_0x2a0f97[_0x45d3ae(-_0x290455._0x4a5728,-0x17,-0x11,-_0x290455._0x4b3791)]({'type':_0x45d3ae(-0xa,0x7,_0x290455._0x7ec9fd,-0xf),'role':_0x53e377,'content':_0x376f77});}function hasSerializableToolUse(_0x49d62a){const _0x4cf581={_0x164534:0x38a,_0x532991:0x31d,_0x26554c:0x327,_0x1c7a94:0x31c,_0x291fd6:0x376,_0xc3d80f:0x39b,_0x165ede:0x37e,_0x1b11f4:0x32d,_0x4801be:0x324},_0x2e7c05={_0x585a1a:0x314};function _0x4ccbde(_0x2876d7,_0x4c047a,_0x448bae,_0x1f1b0a){return _0x4fd3(_0x1f1b0a-_0x2e7c05._0x585a1a,_0x448bae);}function _0x4c4d0e(_0x33700a,_0x31d804,_0x4f9a84,_0x5ebe10){return _0x4fd3(_0x4f9a84- -0x3a5,_0x31d804);}return _0x49d62a['id'][_0x4ccbde(0x3a2,0x3bd,_0x4cf581._0x164534,0x39b)]()[_0x4c4d0e(-_0x4cf581._0x532991,-_0x4cf581._0x26554c,-_0x4cf581._0x1c7a94,-0x31f)]>0x0&&_0x49d62a[_0x4ccbde(_0x4cf581._0x291fd6,_0x4cf581._0xc3d80f,0x37a,_0x4cf581._0x165ede)]['trim']()[_0x4c4d0e(-_0x4cf581._0x1b11f4,-0x302,-_0x4cf581._0x1c7a94,-_0x4cf581._0x4801be)]>0x0;}function hasSerializableToolResult(_0x3140d0){const _0x387209={_0x55fd35:0x228,_0x5b4a7c:0x240,_0x35f867:0x207,_0x22d1ef:0x213,_0x592c80:0x1ec,_0x45b690:0x20a,_0x2a9d76:0x1ef},_0x59c878={_0x375f39:0x181},_0x54099a={_0x20396e:0x367};function _0x153353(_0x19d6a4,_0x4d5388,_0x43efaa,_0x1c1e79){return _0x4fd3(_0x1c1e79- -_0x54099a._0x20396e,_0x4d5388);}function _0x1e78a0(_0x32ddbf,_0x3f7a84,_0x52d9a4,_0x4444e8){return _0x4fd3(_0x3f7a84-_0x59c878._0x375f39,_0x32ddbf);}return _0x3140d0[_0x1e78a0(0x20a,_0x387209._0x55fd35,0x236,_0x387209._0x5b4a7c)][_0x1e78a0(_0x387209._0x35f867,0x208,_0x387209._0x22d1ef,_0x387209._0x592c80)]()[_0x1e78a0(0x1ea,_0x387209._0x45b690,_0x387209._0x2a9d76,0x229)]>0x0;}function isResponseInputObject(_0x3d4561){const _0x4068d3={_0x43a14a:0x144,_0x18712e:0x129,_0x24aba4:0x11e,_0x266317:0x129,_0x18fab5:0x12a,_0x1a1824:0x151,_0x388753:0x117,_0x4a37d3:0x146,_0x4d5026:0x11b,_0x2dca50:0xd4,_0x3165ea:0xbc},_0x402455={_0x567379:0x2e},_0x5b25d5={_0x1b6f74:0x1a3};function _0x153d4b(_0x516dbc,_0x3555de,_0x5edafa,_0x32de52){return _0x4fd3(_0x3555de- -_0x5b25d5._0x1b6f74,_0x5edafa);}if(typeof _0x3d4561!==_0x153d4b(-_0x4068d3._0x43a14a,-_0x4068d3._0x18712e,-_0x4068d3._0x24aba4,-_0x4068d3._0x266317)||_0x3d4561===null||Array[_0x153d4b(-0x13e,-0x138,-_0x4068d3._0x18fab5,-_0x4068d3._0x1a1824)](_0x3d4561))return![];const _0x25356f=_0x3d4561;function _0x5ec9a0(_0x52bc77,_0x3c4e9b,_0x2a8084,_0x7c5424){return _0x4fd3(_0x52bc77-_0x402455._0x567379,_0x7c5424);}return typeof _0x25356f[_0x153d4b(-_0x4068d3._0x388753,-0x126,-_0x4068d3._0x4a37d3,-_0x4068d3._0x4d5026)]===_0x5ec9a0(_0x4068d3._0x2dca50,0xd0,0xbd,_0x4068d3._0x3165ea);}function isImageToolResultBlock(_0x3fa4c7){const _0x58d46b={_0x166e78:0xbf,_0x502907:0x14c,_0x332a8f:0x160,_0x43952c:0x156,_0x23f0ae:0x14a,_0x59a53a:0x17b,_0x3368c8:0x186,_0x2c1d1b:0x17e,_0x3c88d7:0x173,_0x3eb0a8:0xa3,_0x38b7c1:0xaf,_0x33b443:0xba,_0x4be874:0x138,_0x561969:0x144,_0x48e089:0xc9},_0x4abe93={_0x5db074:0xe2};function _0x2e331a(_0xe8e486,_0x347652,_0x4f0850,_0x3c2c14){return _0x4fd3(_0x3c2c14-_0x4abe93._0x5db074,_0x4f0850);}function _0x58a03d(_0x148440,_0x3bb2d7,_0x339698,_0xbba9c2){return _0x4fd3(_0xbba9c2-0x3b,_0x339698);}if(typeof _0x3fa4c7!=='object'||_0x3fa4c7===null||Array[_0x58a03d(0xc1,0xae,_0x58d46b._0x166e78,0xa6)](_0x3fa4c7))return![];const _0x36d08e=_0x3fa4c7;return _0x36d08e['type']==='image'&&_0x36d08e[_0x2e331a(0x148,_0x58d46b._0x502907,_0x58d46b._0x332a8f,_0x58d46b._0x43952c)]?.[_0x2e331a(0x164,_0x58d46b._0x23f0ae,_0x58d46b._0x59a53a,0x15f)]===_0x2e331a(_0x58d46b._0x3368c8,_0x58d46b._0x2c1d1b,0x178,_0x58d46b._0x3c88d7)&&typeof _0x36d08e[_0x58a03d(0xb4,0xcb,_0x58d46b._0x3eb0a8,_0x58d46b._0x38b7c1)][_0x58a03d(0xb6,0x94,_0x58d46b._0x33b443,0x9f)]==='string'&&typeof _0x36d08e['source'][_0x2e331a(_0x58d46b._0x4be874,_0x58d46b._0x561969,0x146,0x152)]===_0x58a03d(_0x58d46b._0x48e089,0xe4,0xcb,0xe1);}function getToolResultText(_0x7e2eb9){const _0x93c92c={_0xb25644:0x97,_0x584ca7:0x85,_0x4925ae:0xaa,_0xd82714:0x455,_0x28c07d:0x433,_0x20e519:0x5e,_0x4c372f:0x81,_0x268050:0x9b,_0x448d1c:0x456,_0x213ded:0x451,_0x20c582:0x461,_0x2b88f5:0x82,_0x411339:0x99,_0x2acb2f:0x64},_0x57e517={_0x54c0aa:0x16d,_0x37b8f0:0x187,_0x43d7cd:0x17a,_0x3afcf1:0x15d},_0x58127d={_0x553f76:0x3c3};function _0x42c0e2(_0x4a0440,_0x2f00ca,_0x146408,_0x398dcd){return _0x4fd3(_0x146408-_0x58127d._0x553f76,_0x2f00ca);}function _0x3edc17(_0x4f5c5b,_0x4bacd9,_0xddd6e1,_0x213600){return _0x4fd3(_0xddd6e1- -0xd,_0x213600);}if(typeof _0x7e2eb9===_0x3edc17(_0x93c92c._0xb25644,_0x93c92c._0x584ca7,0x99,_0x93c92c._0x4925ae))return _0x7e2eb9;const _0x1e4f20=_0x7e2eb9[_0x42c0e2(0x42b,_0x93c92c._0xd82714,0x43e,_0x93c92c._0x28c07d)](_0x4afdf2=>{const _0x1029b1={_0x4fe15f:0x1ad,_0x27f08b:0x5aa,_0x22fff9:0xb};function _0x1921fb(_0x2b5d11,_0x4c5842,_0x437a46,_0x1b5416){return _0x42c0e2(_0x2b5d11-_0x1029b1._0x4fe15f,_0x437a46,_0x2b5d11- -_0x1029b1._0x27f08b,_0x1b5416-_0x1029b1._0x22fff9);}function _0x4020c1(_0x43248c,_0x48ffab,_0x2b2fa9,_0x22392e){return _0x42c0e2(_0x43248c-0x119,_0x2b2fa9,_0x22392e- -0x5cb,_0x22392e-0x36);}return typeof _0x4afdf2===_0x1921fb(-_0x57e517._0x54c0aa,-_0x57e517._0x37b8f0,-0x187,-0x17f)&&_0x4afdf2!==null&&_0x4afdf2['type']===_0x1921fb(-_0x57e517._0x43d7cd,-_0x57e517._0x54c0aa,-0x167,-_0x57e517._0x3afcf1);})[_0x3edc17(_0x93c92c._0x20e519,0x93,_0x93c92c._0x4c372f,0x67)](_0x2fdb4e=>_0x2fdb4e[_0x42c0e2(0x412,0x44e,0x430,0x41a)])['join']('\x0a\x0a')[_0x3edc17(0x5f,_0x93c92c._0x268050,0x7a,0x6a)]();return _0x1e4f20[_0x42c0e2(_0x93c92c._0x448d1c,_0x93c92c._0x213ded,0x44c,_0x93c92c._0x20c582)]>0x0?_0x1e4f20:_0x3edc17(_0x93c92c._0x2b88f5,_0x93c92c._0x411339,0x80,_0x93c92c._0x2acb2f);}function getToolResultImages(_0x3d6ef4){const _0x28ccbb={_0x44d2b1:0x2f3,_0x5e5763:0x2d4,_0x4dc0dc:0x2d7};function _0x5ea3b1(_0x2b6fe0,_0x574260,_0x2c3af5,_0x21b8df){return _0x4fd3(_0x574260- -0x34f,_0x2b6fe0);}return Array['isArray'](_0x3d6ef4)?_0x3d6ef4[_0x5ea3b1(-_0x28ccbb._0x44d2b1,-_0x28ccbb._0x5e5763,-0x2d4,-_0x28ccbb._0x4dc0dc)](isImageToolResultBlock):[];}function _0x42fa(){const _0xe9d63f=['yMfZzty0','DMLZAwjPBgL0Eq','C3rYDwn0DxjLzf9VDxrWDxq','mZmXmwTTA05ABa','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','C3bSAwnL','DxnLCG','zgf0ytO','mtfmq0rnB0i','Aw5WDxq','C3LZDgvT','mZy1oeznyu5xBq','mJqXnZi2mfHrwvD1vG','o2jHC2u2ncW','Bw9KzwW','mJiWv2TjAgD2','ChjVDMLKzxjtDgf0zq','BwvZC2fNzq','Aw5WDxrFAw1Hz2u','Bwf4vg9Rzw5Z','B3v0Chv0x3rLEhq','C3rYAw5N','Dg9VBf91C2vFAwq','B3v0Chv0rM9YBwf0','BwvKAwfFDhLWzq','DxnLCI12AxnPyMXL','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','zNvUy3rPB25Fy2fSBf9VDxrWDxq','mJu0mJq0uMHvD01V','Dg9VBhm','BMfTzq','AxnbCNjHEq','C2nOzw1H','Dgv4Da','zwzMB3j0','ndi0mMLwAxPSBG','zgf0yq','zNvUy3rPB24','C3vTBwfYEq','otu5mJGZruLHuhfb','C291CMnL','Aw5WDxrFC2nOzw1H','Dg9VBf9Yzxn1Bhq','yxnZAxn0yw50','ANnVBL9Zy2HLBwe','owf6ALr0Aq','B2jQzwn0','zMLSDgvY','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','DhLWzq','Aw5WDxrFDgv4Da','C3rYAw5NAwz5','CMvHC29UAw5N','CM9Szq','Dg9VBf91C2u','ChvZAa','zNvUy3rPB25Fy2fSBa','y29UDgvUDa','mNfhqKTOyG','DhjPBq','mZq0ntm2wxrSCffL','BgvUz3rO','y29KzxG','A2v5CW','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','BwfW','BwvZC2fNzxm','otaWnhvpDMvvBW'];_0x42fa=function(){return _0xe9d63f;};return _0x42fa();}function resolveReasoningVisibility(_0x5009e5){const _0x3f102c={_0xd05420:0x11d,_0x97648a:0x11b,_0xe08f6c:0x16a,_0x42023f:0x14c},_0x46e64a={_0x5218a0:0x1ad},_0x1a87c1={_0x342e9a:0xab};function _0x3761d9(_0x3d7987,_0x308679,_0x349c41,_0x381649){return _0x4fd3(_0x3d7987-_0x1a87c1._0x342e9a,_0x308679);}function _0x41c7af(_0x3e99b8,_0x3985e7,_0x4ebbff,_0x2ab6fb){return _0x4fd3(_0x4ebbff- -_0x46e64a._0x5218a0,_0x3e99b8);}return _0x5009e5['reasoning']?.[_0x41c7af(-0xfe,-_0x3f102c._0xd05420,-_0x3f102c._0x97648a,-0x124)]??_0x41c7af(-0x13c,-_0x3f102c._0xe08f6c,-0x148,-_0x3f102c._0x42023f);}function createOpenAiResponsesReasoning(_0x13448b){const _0x183a9f={_0x3aaa34:0x142,_0x1fc12f:0x15e,_0x5e5614:0x105,_0x498335:0x107,_0x327126:0x186,_0x51972f:0x18d,_0x444f46:0x151,_0x379a2d:0x16c,_0x4b6db9:0xea,_0x17c3ca:0xcb,_0x412396:0x15c,_0x5130de:0x14d,_0x1d42e9:0xfa,_0x46266e:0xc8,_0x1bd146:0x10c,_0x288008:0xea,_0x308594:0xf3,_0x66bd5a:0x13d,_0xd45ffd:0x152,_0x4dbbc1:0x155,_0x387b2a:0x117,_0x20c0e0:0x103,_0x3173e9:0x119,_0x1b402f:0x115,_0x3f6039:0xf8,_0x18919c:0xfa},_0x4dbd76=resolveOpenAiReasoningConfig(_0x13448b[_0x6e649(-0x15b,-0x16c,-_0x183a9f._0x3aaa34,-_0x183a9f._0x1fc12f)]);if(!_0x4dbd76)return{};const _0x3b0213={},_0x3eaaf2=_0x13448b[_0x3cb2a2(_0x183a9f._0x5e5614,0xf8,_0x183a9f._0x498335,0xe1)]?.[_0x6e649(-0x174,-0x13e,-0x140,-0x154)]!==void 0x0,_0x57345a=(!_0x3eaaf2&&_0x6e649(-_0x183a9f._0x327126,-_0x183a9f._0x51972f,-_0x183a9f._0x444f46,-_0x183a9f._0x379a2d)in _0x4dbd76?_0x4dbd76[_0x3cb2a2(0xf1,_0x183a9f._0x4b6db9,_0x183a9f._0x17c3ca,_0x183a9f._0x5e5614)]:void 0x0)??(resolveReasoningVisibility(_0x13448b)==='user-visible'?'auto':void 0x0);_0x4dbd76[_0x6e649(-0x18c,-_0x183a9f._0x412396,-_0x183a9f._0x5130de,-0x170)]&&(_0x3b0213['effort']=_0x4dbd76[_0x3cb2a2(_0x183a9f._0x1d42e9,0xe6,_0x183a9f._0x46266e,0xf2)]);function _0x3cb2a2(_0x4fba1c,_0x2cc1da,_0x511212,_0x5c1af8){return _0x4fd3(_0x2cc1da-0x78,_0x5c1af8);}function _0x6e649(_0xda0e2c,_0x53208d,_0x4b0673,_0x2455ff){return _0x4fd3(_0x2455ff- -0x1de,_0x53208d);}return _0x57345a&&(_0x3b0213[_0x3cb2a2(_0x183a9f._0x1bd146,_0x183a9f._0x288008,_0x183a9f._0x308594,0xf8)]=_0x57345a),{...!_0x3eaaf2&&_0x6e649(-_0x183a9f._0x66bd5a,-0x135,-0x15e,-_0x183a9f._0xd45ffd)in _0x4dbd76&&_0x4dbd76['includeEncryptedContent']===![]?{}:{'include':[_0x6e649(-0x19a,-_0x183a9f._0x4dbbc1,-0x15e,-0x178)]},...Object[_0x3cb2a2(_0x183a9f._0x387b2a,_0x183a9f._0x20c0e0,_0x183a9f._0x3173e9,_0x183a9f._0x1b402f)](_0x3b0213)[_0x3cb2a2(0x122,0x101,_0x183a9f._0x3f6039,_0x183a9f._0x18919c)]>0x0?{'reasoning':_0x3b0213}:{}};}function pushAssistantProviderState(_0x2358e6,_0x2254b2,_0xf46538){const _0x504432={_0x24abed:0x154,_0x582be4:0x142,_0x114a05:0x14b,_0x2970c6:0x150,_0x39de69:0x119,_0x223d94:0x14d,_0x264707:0x15e,_0x1e57df:0x152,_0x2065ac:0x13c,_0x37462e:0x11c,_0x1fd9e1:0x134,_0x44af0e:0x117,_0x17642e:0x13b,_0x35dd10:0x119,_0x3da5e6:0x136,_0x3401af:0x11d},_0x2d835e={_0xcabd0d:0x1b9};if(_0x2254b2[_0x29105c(_0x504432._0x24abed,0x14a,0x153,0x163)]!==_0x4cf7bd(-_0x504432._0x582be4,-_0x504432._0x114a05,-0x12d,-_0x504432._0x2970c6))return![];if(!isProviderStateCompatible(_0x2254b2,_0xf46538))return![];const _0x5951e2=_0x2254b2[_0x4cf7bd(-0x118,-_0x504432._0x39de69,-0x106,-0x13b)]?.[_0x29105c(_0x504432._0x223d94,_0x504432._0x264707,0x16a,0x153)]??[];function _0x29105c(_0xc80ff5,_0x18f2a0,_0x31cb3d,_0x275384){return _0x4fd3(_0x18f2a0-0xc9,_0x31cb3d);}if(_0x5951e2[_0x29105c(0x15a,_0x504432._0x1e57df,_0x504432._0x2065ac,0x170)]===0x0)return![];for(const _0x4c5f31 of _0x5951e2){if(isResponseInputObject(_0x4c5f31)){const _0x41e186=structuredClone(_0x4c5f31);delete _0x41e186['status'],_0x41e186['type']===_0x4cf7bd(-0x139,-_0x504432._0x114a05,-_0x504432._0x37462e,-0x13a)&&!Array[_0x29105c(0x148,_0x504432._0x1fd9e1,_0x504432._0x44af0e,0x14e)](_0x41e186['summary'])&&(_0x41e186[_0x29105c(0x12a,_0x504432._0x17642e,_0x504432._0x1e57df,_0x504432._0x35dd10)]=[]),_0x2358e6[_0x4cf7bd(-_0x504432._0x3da5e6,-0x125,-0x140,-_0x504432._0x3401af)](_0x41e186);}}function _0x4cf7bd(_0x1a6fba,_0x14e6a0,_0x4f36ae,_0x139482){return _0x4fd3(_0x1a6fba- -_0x2d835e._0xcabd0d,_0x139482);}return!![];}function toOpenAiResponsesRequest(_0x54f1ec){const _0x239756={_0xa4fea9:0x31d,_0x20015d:0x2da,_0x48f74f:0x2fd,_0x258854:0x2fb,_0x46a5d2:0x2fc,_0x325063:0x308,_0x5b3262:0x2f1,_0x504caf:0x304,_0x5274c2:0x2eb,_0x295093:0x2e2,_0x44fc8f:0x326,_0x1de5df:0x30e,_0x3603ee:0x2d8,_0xde7e6e:0x2e6,_0x2691b9:0x308,_0x12780f:0x2f2,_0x11c568:0x2e7,_0x4d065b:0x2f9,_0x288b50:0x301,_0x427c2f:0x2f8,_0x279f90:0x2ca,_0x50c0e5:0x302,_0x2d8e90:0x302,_0x37d512:0x2ee,_0x4cdac6:0x1a1,_0x1edeb8:0x186,_0x469bd1:0x2e5,_0x2bd3b5:0x30d,_0x5ad525:0x2df,_0x344c0c:0x141,_0xcd025d:0x134,_0x40565f:0x327,_0x3adae2:0x309,_0xe14f2a:0x2ec,_0x3eb43c:0x15a,_0x1354f3:0x13d,_0x148b06:0x2dc,_0x1dd617:0x2f2,_0x5aab42:0x310,_0x352e40:0x2e3,_0x1f97a0:0x2f5,_0x50800f:0x2d3,_0x184516:0x2e0,_0x38208e:0x30a,_0x4659d8:0x2ef,_0x46bab2:0x13f,_0x7fe312:0x14a,_0x34c0e8:0x179,_0x45081c:0x31b,_0x1ad143:0x2ed,_0x1bebfb:0x305,_0x3fdca2:0x17d,_0x489627:0x2f4,_0x402647:0x2e8,_0x585c56:0x2e1,_0x34bf64:0x2d6,_0x2f5cb8:0x2e4,_0x4a33b0:0x303,_0x5d8a65:0x2c7,_0x20c2e8:0x2b9,_0x54483a:0x173,_0x51a1ba:0x328,_0x2858da:0x174,_0x1d75e2:0x15d,_0x4d65c7:0x170,_0x4fba29:0x13c,_0x2ca1f4:0x150,_0x4ce055:0x185,_0x5b3cb8:0x2d3,_0x4c6f0a:0x320,_0x232a3e:0x16a,_0x51fcf6:0x196,_0x119428:0x2f6,_0x333c61:0x31e,_0x104262:0x315,_0x37b13b:0x324,_0x5710c2:0x30f,_0x15804c:0x2b5,_0x42eeba:0x2d4,_0x1cc029:0x178,_0x2d8e63:0x305,_0x5f57b5:0x304,_0x40bcd1:0x147,_0x50a45d:0x312,_0x5f1c99:0x2e9,_0x1d5c47:0x2fe,_0x5d1da4:0x2d7},_0x50dd90={_0x5c13e1:0x1d8,_0x27380f:0x1cf,_0x4747ab:0x1be,_0x4af18b:0x353,_0x3c7da2:0x322},_0x2d2630={_0x5f20d3:0x76},_0x43c898={_0x36d391:0xdd},_0x47544a=[];function _0x35aff0(_0x46d3e4,_0x5ed026,_0x5f4b26,_0x586870){return _0x4fd3(_0x46d3e4-_0x43c898._0x36d391,_0x5f4b26);}for(const _0x5dfc41 of _0x54f1ec[_0x33cfed(_0x239756._0xa4fea9,_0x239756._0x20015d,_0x239756._0x48f74f,0x2fa)]){if(pushAssistantProviderState(_0x47544a,_0x5dfc41,_0x54f1ec))continue;const _0x490b19=[];for(const _0x2094d3 of normalizeContent(_0x5dfc41[_0x33cfed(0x302,_0x239756._0x258854,0x2d4,0x2f0)])){if(_0x2094d3[_0x33cfed(0x2e1,_0x239756._0x46a5d2,0x2e6,0x2e8)]==='text'){_0x490b19[_0x33cfed(0x30f,_0x239756._0x325063,_0x239756._0x5b3262,0x2ee)](_0x5dfc41['role']===_0x33cfed(_0x239756._0x504caf,0x2c4,_0x239756._0x5274c2,_0x239756._0x295093)?{'type':_0x33cfed(_0x239756._0x44fc8f,_0x239756._0x1de5df,0x319,0x310),'text':_0x2094d3[_0x33cfed(0x2df,0x2c5,0x2c8,_0x239756._0x3603ee)]}:{'type':_0x33cfed(_0x239756._0xde7e6e,0x2d0,_0x239756._0x2691b9,0x2e9),'text':_0x2094d3[_0x33cfed(_0x239756._0x12780f,_0x239756._0x11c568,_0x239756._0x4d065b,0x2d8)]});continue;}if(_0x2094d3[_0x33cfed(_0x239756._0x288b50,_0x239756._0x427c2f,_0x239756._0x279f90,0x2e8)]==='image'){_0x490b19[_0x33cfed(0x2f2,_0x239756._0x50c0e5,_0x239756._0x2d8e90,_0x239756._0x37d512)]({'type':_0x35aff0(0x180,_0x239756._0x4cdac6,_0x239756._0x1edeb8,0x192),'image_url':_0x33cfed(_0x239756._0x469bd1,0x2f1,_0x239756._0x2bd3b5,0x303)+_0x2094d3[_0x33cfed(_0x239756._0x4d065b,0x2c9,0x300,_0x239756._0x5ad525)][_0x35aff0(_0x239756._0x344c0c,0x14f,0x127,_0x239756._0xcd025d)]+_0x33cfed(_0x239756._0x40565f,0x302,0x31b,_0x239756._0x3adae2)+_0x2094d3['source'][_0x33cfed(0x2d1,0x2df,0x2da,0x2db)]});continue;}pushUserContentMessage(_0x47544a,_0x5dfc41[_0x33cfed(0x2cb,0x2df,0x2da,_0x239756._0xe14f2a)],_0x490b19[_0x35aff0(0x173,0x196,0x166,0x16b)](0x0));if(_0x2094d3[_0x35aff0(_0x239756._0x3eb43c,0x167,0x147,_0x239756._0x1354f3)]===_0x33cfed(_0x239756._0x148b06,0x2f0,_0x239756._0x1dd617,0x2ed)){if(!hasSerializableToolUse(_0x2094d3))continue;_0x47544a[_0x33cfed(_0x239756._0x5aab42,_0x239756._0x352e40,_0x239756._0x1f97a0,_0x239756._0x37d512)]({'type':_0x33cfed(_0x239756._0x50800f,_0x239756._0x184516,_0x239756._0x38208e,_0x239756._0x4659d8),'call_id':_0x2094d3['id'],'name':_0x2094d3['name'],'arguments':JSON[_0x35aff0(0x15c,_0x239756._0x46bab2,_0x239756._0x7fe312,_0x239756._0x34c0e8)](_0x2094d3[_0x33cfed(_0x239756._0x45081c,_0x239756._0x1ad143,0x30f,_0x239756._0x1bebfb)]??{})});continue;}if(_0x2094d3[_0x35aff0(0x15a,_0x239756._0x3fdca2,0x16b,0x155)]===_0x33cfed(_0x239756._0x489627,_0x239756._0x402647,0x302,_0x239756._0x585c56)){if(!hasSerializableToolResult(_0x2094d3))continue;const _0xf29d71=getToolResultText(_0x2094d3[_0x33cfed(_0x239756._0x34bf64,_0x239756._0x2f5cb8,0x2f4,0x2f0)]);_0x47544a[_0x33cfed(0x2d2,_0x239756._0x4a33b0,0x2e5,0x2ee)]({'type':_0x33cfed(_0x239756._0x5d8a65,_0x239756._0x20c2e8,_0x239756._0x1dd617,0x2d2),'call_id':_0x2094d3['tool_use_id'],'output':_0xf29d71});const _0x5a8ec0=getToolResultImages(_0x2094d3['content']);_0x5a8ec0['length']>0x0&&_0x47544a[_0x35aff0(0x160,_0x239756._0x54483a,0x145,_0x239756._0x7fe312)]({'type':_0x33cfed(_0x239756._0x46a5d2,_0x239756._0x51a1ba,_0x239756._0x5274c2,_0x239756._0x2bd3b5),'role':_0x35aff0(_0x239756._0x2858da,_0x239756._0x1d75e2,0x182,0x17f),'content':[{'type':_0x35aff0(0x15b,0x15d,0x160,_0x239756._0x4d65c7),'text':_0x35aff0(0x159,_0x239756._0x4fba29,_0x239756._0x2ca1f4,_0x239756._0x4fba29)+_0x2094d3[_0x35aff0(0x184,_0x239756._0x4ce055,0x16e,0x175)]+'.'},..._0x5a8ec0['map'](_0x122e79=>({'type':_0x33cfed(0x306,0x2f7,0x301,0x30e),'image_url':_0x35aff0(0x175,0x179,0x181,0x16b)+_0x122e79['source']['media_type']+_0x35aff0(0x17b,0x19b,0x170,0x159)+_0x122e79[_0x33cfed(0x2d3,0x2c5,0x2d6,0x2df)][_0x33cfed(0x2f9,0x2f1,0x2dc,0x2db)]}))]});}}pushUserContentMessage(_0x47544a,_0x5dfc41[_0x33cfed(0x2ea,_0x239756._0x5b3cb8,_0x239756._0x489627,_0x239756._0xe14f2a)],_0x490b19);}function _0x33cfed(_0x5ece68,_0x32e06c,_0x54677f,_0x2bf790){return _0x4fd3(_0x2bf790-0x26b,_0x5ece68);}return{...createOpenAiResponsesReasoning(_0x54f1ec),'model':_0x54f1ec[_0x33cfed(0x30c,_0x239756._0x4c6f0a,0x2fa,0x30a)],'instructions':systemToInstructions(_0x54f1ec[_0x35aff0(0x178,_0x239756._0x232a3e,_0x239756._0x51fcf6,0x189)]),'input':_0x47544a,..._0x54f1ec[_0x33cfed(_0x239756._0x119428,_0x239756._0x333c61,_0x239756._0x46a5d2,0x30f)]!==void 0x0?{'max_output_tokens':_0x54f1ec[_0x33cfed(_0x239756._0x104262,_0x239756._0x37b13b,0x319,_0x239756._0x5710c2)]}:{},'tools':_0x54f1ec[_0x33cfed(0x2b2,_0x239756._0x15804c,0x2d3,_0x239756._0x42eeba)][_0x35aff0(0x16b,0x173,_0x239756._0x1cc029,0x17d)](_0x3c78ce=>{const _0x1f67fd={_0x32f859:0x1e3,_0x1cc117:0x1a0};function _0x4e08c4(_0x3b6e16,_0x2315ec,_0x4fb64b,_0x959d3c){return _0x35aff0(_0x2315ec-_0x1f67fd._0x32f859,_0x2315ec-0xaa,_0x4fb64b,_0x959d3c-_0x1f67fd._0x1cc117);}function _0x18de0f(_0x5f5502,_0x438bce,_0x4ba15e,_0x1a89d9){return _0x35aff0(_0x438bce- -0x326,_0x438bce-0x1c1,_0x4ba15e,_0x1a89d9-_0x2d2630._0x5f20d3);}return{'type':_0x18de0f(-0x1bc,-_0x50dd90._0x5c13e1,-0x1c4,-0x1f3),'name':_0x3c78ce[_0x18de0f(-_0x50dd90._0x27380f,-0x1df,-_0x50dd90._0x4747ab,-0x1d5)],'description':_0x3c78ce['description'],'parameters':_0x3c78ce[_0x4e08c4(_0x50dd90._0x4af18b,0x335,_0x50dd90._0x3c7da2,0x324)]};}),..._0x54f1ec['outputFormat']?{'text':{'format':{'type':_0x33cfed(0x2da,0x2cd,0x2ed,0x2e3),'name':_0x54f1ec[_0x33cfed(0x31b,_0x239756._0x2d8e63,_0x239756._0x5f57b5,0x313)][_0x35aff0(_0x239756._0x40bcd1,_0x239756._0x4fba29,0x130,0x129)]??_0x33cfed(_0x239756._0x50a45d,0x30d,_0x239756._0x5f1c99,_0x239756._0x1d5c47),'schema':_0x54f1ec['outputFormat'][_0x33cfed(0x2c8,_0x239756._0x15804c,_0x239756._0x37d512,_0x239756._0x5d1da4)],'strict':_0x54f1ec['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ (function(_0x198dd3,_0x8566d9){const _0x4d99db={_0x17a245:0x2e8,_0x2752d7:0x2d4,_0x4c4434:0x2fc,_0x33c8e5:0x30c,_0x4d0762:0x22,_0x805ddc:0x2f6,_0x214dac:0x320,_0x39df3b:0x6b,_0x3d45fe:0x35,_0x4e3dbe:0x44,_0x312b9d:0x4f,_0x5c9bbc:0x47,_0x162aa9:0x3f,_0x5ff14d:0x2e2,_0x4277ee:0x2d7,_0x528e53:0x2c8,_0x299bdb:0x306,_0x512c4e:0x30a,_0x8cea22:0x2ca,_0x442ae7:0x57,_0x227743:0x64},_0x462cf2={_0xd363b2:0x12a};function _0x16fbcb(_0x569047,_0x7f7d34,_0x40c684,_0x126916){return _0x1e5e(_0x569047-_0x462cf2._0xd363b2,_0x40c684);}const _0x38eef4=_0x198dd3();function _0x2d57c6(_0x150ad0,_0xa16f10,_0x214ecb,_0x49b9a6){return _0x1e5e(_0x214ecb- -0x17d,_0xa16f10);}while(!![]){try{const _0x3b5fba=parseInt(_0x16fbcb(0x2f3,_0x4d99db._0x17a245,_0x4d99db._0x2752d7,0x30b))/0x1*(-parseInt(_0x16fbcb(0x301,_0x4d99db._0x4c4434,_0x4d99db._0x33c8e5,0x306))/0x2)+-parseInt(_0x2d57c6(0x2a,_0x4d99db._0x4d0762,0x3a,0x51))/0x3*(parseInt(_0x16fbcb(0x314,_0x4d99db._0x805ddc,0x2f2,_0x4d99db._0x214dac))/0x4)+-parseInt(_0x2d57c6(0x81,0x71,_0x4d99db._0x39df3b,0x77))/0x5+parseInt(_0x2d57c6(_0x4d99db._0x3d45fe,_0x4d99db._0x4e3dbe,_0x4d99db._0x312b9d,0x5e))/0x6+-parseInt(_0x2d57c6(0x58,_0x4d99db._0x5c9bbc,_0x4d99db._0x162aa9,0x47))/0x7*(-parseInt(_0x16fbcb(_0x4d99db._0x5ff14d,_0x4d99db._0x4277ee,_0x4d99db._0x528e53,0x2eb))/0x8)+-parseInt(_0x16fbcb(0x2ee,_0x4d99db._0x299bdb,_0x4d99db._0x512c4e,0x2d9))/0x9+parseInt(_0x16fbcb(0x2e5,_0x4d99db._0x8cea22,0x2e4,0x2d6))/0xa*(parseInt(_0x2d57c6(0x49,_0x4d99db._0x442ae7,_0x4d99db._0x227743,0x42))/0xb);if(_0x3b5fba===_0x8566d9)break;else _0x38eef4['push'](_0x38eef4['shift']());}catch(_0x4f3182){_0x38eef4['push'](_0x38eef4['shift']());}}}(_0x5625,0xb5876));function _0x1e5e(_0x4233fd,_0x3c37c2){_0x4233fd=_0x4233fd-0x1b6;const _0x56253f=_0x5625();let _0x1e5e3c=_0x56253f[_0x4233fd];if(_0x1e5e['hvuxZY']===undefined){var _0x438b1f=function(_0xe0f988){const _0x3ec2d5='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x14b320='',_0x25230f='';for(let _0x125864=0x0,_0x38babf,_0x3c3d96,_0x23f232=0x0;_0x3c3d96=_0xe0f988['charAt'](_0x23f232++);~_0x3c3d96&&(_0x38babf=_0x125864%0x4?_0x38babf*0x40+_0x3c3d96:_0x3c3d96,_0x125864++%0x4)?_0x14b320+=String['fromCharCode'](0xff&_0x38babf>>(-0x2*_0x125864&0x6)):0x0){_0x3c3d96=_0x3ec2d5['indexOf'](_0x3c3d96);}for(let _0x4f9033=0x0,_0x282285=_0x14b320['length'];_0x4f9033<_0x282285;_0x4f9033++){_0x25230f+='%'+('00'+_0x14b320['charCodeAt'](_0x4f9033)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25230f);};_0x1e5e['LbKeLJ']=_0x438b1f,_0x1e5e['EAtpME']={},_0x1e5e['hvuxZY']=!![];}const _0x3f873d=_0x56253f[0x0],_0x4630a7=_0x4233fd+_0x3f873d,_0x5b0d39=_0x1e5e['EAtpME'][_0x4630a7];return!_0x5b0d39?(_0x1e5e3c=_0x1e5e['LbKeLJ'](_0x1e5e3c),_0x1e5e['EAtpME'][_0x4630a7]=_0x1e5e3c):_0x1e5e3c=_0x5b0d39,_0x1e5e3c;}import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';function _0x5625(){const _0x18d890=['Aw1Hz2u','ChjVDMLKzxjtDgf0zq','mZm0nZC5nvHOCLHKqG','C3bSAwnL','mtGWzKLcsuDP','zwzMB3j0','B3v0Chv0rM9YBwf0','CM9Szq','DxnLCI12AxnPyMXL','C3LZDgvT','yxnZAxn0yw50','Aw5WDxrFC2nOzw1H','ChvZAa','Aw5WDxrFAw1Hz2u','Dg9VBf91C2u','BgvUz3rO','zMLSDgvY','BwvKAwfFDhLWzq','yxv0BW','C3rYDwn0DxjLzf9VDxrWDxq','nZC3odDnt0PkDvm','oeTZyM5sAG','Dg9VBf9Yzxn1Bhq','y29UDgvUDa','mZmZmJGZmg5tEvvnuW','ntq0nJG0n0HSyM5eDq','Aw5WDxrFDgv4Da','AxnbCNjHEq','Dg9VBhm','Bw9KzwW','AM9PBG','y29KzxG','o2jHC2u2ncW','mte5nZy1nZLuquDJCKW','DhLWzq','C3vTBwfYEq','Aw5WDxq','DMLZAwjPBgL0Eq','nhPMr2H0BW','Bwf4vg9Rzw5Z','A2v5CW','nZG3ndy4ogLqz0rYvW','zgf0ytO','zgvZy3jPChrPB24','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','B3v0Chv0x3rLEhq','BwvZC2fNzq','B2jQzwn0','C3rHDhvZ','ndiZmdK4ELjhrMLu','ANnVBL9Zy2HLBwe','CMvHC29UAw5N','C3rYAw5N','Dgv4Da','BwfW','BwvZC2fNzxm','BMfTzq','yMfZzty0','Dg9VBf91C2vFAwq','odHzDvvAA3y','C291CMnL','zNvUy3rPB24','DhjPBq','zgf0yq'];_0x5625=function(){return _0x18d890;};return _0x5625();}import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x14b320){const _0x31902c={_0x4d2a8f:0x4fb,_0x2e0a86:0x4ba,_0x482553:0x4bf},_0x21dbec={_0x41f91b:0xdf};function _0x551433(_0x36f37e,_0x33a3c5,_0xbe06ec,_0x34fb01){return _0x1e5e(_0xbe06ec- -_0x21dbec._0x41f91b,_0x34fb01);}function _0x4db97e(_0x164351,_0x1fd5c7,_0x22df2c,_0x85a3bc){return _0x1e5e(_0x22df2c-0x2fe,_0x164351);}return normalizeContent(_0x14b320)['filter'](_0x25230f=>_0x25230f[_0x551433(0xd3,0x103,0xe6,0x102)]===_0x4db97e(0x4b9,0x4f2,0x4d9,0x4bc))[_0x4db97e(0x4cf,0x4bc,0x4da,_0x31902c._0x4d2a8f)](_0x125864=>_0x125864[_0x551433(0xf7,0xfd,0xfc,0x11b)])[_0x4db97e(_0x31902c._0x2e0a86,0x4d6,_0x31902c._0x482553,0x4b4)]('\x0a\x0a');}function pushUserContentMessage(_0x38babf,_0x3c3d96,_0x23f232){const _0x3ddfab={_0x1eac03:0x34a,_0x1ddb5f:0x36e,_0x2d25c1:0x35f,_0x4a0601:0x3b6,_0xe00156:0x3cc,_0x5d4927:0x3a2},_0x438603={_0x282955:0x15a},_0x3251f6={_0x4618ea:0x1c4};function _0x2eb8ee(_0x173b3d,_0x46be09,_0x2a3793,_0x36acf4){return _0x1e5e(_0x2a3793-_0x3251f6._0x4618ea,_0x36acf4);}if(_0x23f232[_0x28200f(_0x3ddfab._0x1eac03,_0x3ddfab._0x1ddb5f,_0x3ddfab._0x2d25c1,0x34f)]===0x0)return;function _0x28200f(_0x1bd177,_0x110997,_0x3bfada,_0x36049e){return _0x1e5e(_0x36049e-_0x438603._0x282955,_0x110997);}_0x38babf[_0x2eb8ee(0x39b,0x3bc,_0x3ddfab._0x4a0601,_0x3ddfab._0xe00156)]({'type':_0x2eb8ee(0x3b0,_0x3ddfab._0x5d4927,0x398,0x390),'role':_0x3c3d96,'content':_0x23f232});}function hasSerializableToolUse(_0x4f9033){const _0x2f6c6f={_0x176573:0x155,_0x2af5aa:0x176,_0x33095e:0x15d,_0x423a1d:0x157,_0x15f59d:0x54f,_0x206997:0x533,_0x57a2d7:0x16b,_0x3f052e:0x15d},_0x18a0c4={_0x84391a:0x98},_0x1e6df4={_0x523d4e:0x352};function _0x1508ba(_0x59ead4,_0x408f59,_0x5eac7b,_0x16cf52){return _0x1e5e(_0x408f59-_0x1e6df4._0x523d4e,_0x16cf52);}function _0x21c359(_0x4bc90a,_0x4412ab,_0x307e9a,_0x5f2d63){return _0x1e5e(_0x307e9a- -_0x18a0c4._0x84391a,_0x5f2d63);}return _0x4f9033['id']['trim']()[_0x21c359(_0x2f6c6f._0x176573,_0x2f6c6f._0x2af5aa,_0x2f6c6f._0x33095e,_0x2f6c6f._0x423a1d)]>0x0&&_0x4f9033['name'][_0x1508ba(_0x2f6c6f._0x15f59d,0x536,0x53a,_0x2f6c6f._0x206997)]()[_0x21c359(0x150,_0x2f6c6f._0x57a2d7,_0x2f6c6f._0x3f052e,0x15c)]>0x0;}function hasSerializableToolResult(_0x282285){const _0x563ab7={_0x43be12:0xec,_0x58ef0a:0x9d,_0xabff6f:0xc6},_0x33a250={_0x30126b:0x2cc},_0x8c612e={_0x3caefa:0x275};function _0x1e8cb3(_0x1af1f0,_0x580ff7,_0x2faefb,_0xa11265){return _0x1e5e(_0x1af1f0- -_0x8c612e._0x3caefa,_0xa11265);}function _0x253880(_0x47abad,_0x3b19af,_0x3565bb,_0x543180){return _0x1e5e(_0x3b19af- -_0x33a250._0x30126b,_0x47abad);}return _0x282285[_0x253880(-0xdb,-_0x563ab7._0x43be12,-0xe5,-0xd7)][_0x1e8cb3(-0x91,-0x7c,-_0x563ab7._0x58ef0a,-0x9c)]()[_0x253880(-0xb9,-0xd7,-0xe8,-_0x563ab7._0xabff6f)]>0x0;}function isResponseInputObject(_0x303869){const _0x5e5935={_0x467d0b:0x264,_0x1ef466:0x274},_0x5cfdc0={_0x45f573:0x9e};function _0x58f97e(_0x4e01d1,_0x2e7791,_0x325671,_0x3cae61){return _0x1e5e(_0x3cae61-_0x5cfdc0._0x45f573,_0x2e7791);}if(typeof _0x303869!=='object'||_0x303869===null||Array['isArray'](_0x303869))return![];const _0x1d19ab=_0x303869;return typeof _0x1d19ab[_0x58f97e(0x251,_0x5e5935._0x467d0b,_0x5e5935._0x1ef466,0x263)]==='string';}function isImageToolResultBlock(_0x5f5d39){const _0x1fc8dc={_0x1ed078:0x3b3,_0x7de125:0x3c8,_0x365020:0x3bf,_0xbb40dc:0x377,_0x3753f8:0x384,_0x21e16d:0x35d,_0xe0fb90:0x391,_0x5b39c3:0x3d5,_0x21ee96:0x3d6,_0x1759a9:0x35b,_0xcef9c8:0x380,_0x44e458:0x367,_0x48e673:0x3da,_0x48a220:0x3d2,_0x386a8b:0x3dd,_0x242a33:0x381,_0x4160c9:0x38e,_0x135e05:0x3be,_0x431d6f:0x3d8,_0x5c3f19:0x3eb,_0x4bd236:0x3c0},_0x401f8e={_0x411345:0x1f3},_0x11747c={_0x538bcb:0x1b4};if(typeof _0x5f5d39!==_0x5a600b(_0x1fc8dc._0x1ed078,_0x1fc8dc._0x7de125,_0x1fc8dc._0x365020,0x3ca)||_0x5f5d39===null||Array[_0x23bf10(_0x1fc8dc._0xbb40dc,0x364,_0x1fc8dc._0x3753f8,0x372)](_0x5f5d39))return![];function _0x23bf10(_0x1abb0a,_0x92dec4,_0x2c0a41,_0xe3623d){return _0x1e5e(_0xe3623d-_0x11747c._0x538bcb,_0x2c0a41);}function _0x5a600b(_0x1d3d63,_0x57bea3,_0x3dc05c,_0x460599){return _0x1e5e(_0x57bea3-_0x401f8e._0x411345,_0x460599);}const _0x57bff5=_0x5f5d39;return _0x57bff5[_0x23bf10(0x364,_0x1fc8dc._0x21e16d,_0x1fc8dc._0xe0fb90,0x379)]==='image'&&_0x57bff5[_0x5a600b(0x3b6,_0x1fc8dc._0x5b39c3,0x3b7,_0x1fc8dc._0x21ee96)]?.[_0x23bf10(_0x1fc8dc._0x1759a9,_0x1fc8dc._0xcef9c8,_0x1fc8dc._0x44e458,0x379)]===_0x5a600b(_0x1fc8dc._0x48e673,_0x1fc8dc._0x48a220,0x3d7,_0x1fc8dc._0x386a8b)&&typeof _0x57bff5['source']['media_type']===_0x23bf10(0x3ad,0x398,_0x1fc8dc._0x242a33,_0x1fc8dc._0x4160c9)&&typeof _0x57bff5[_0x5a600b(0x3eb,0x3d5,0x3c5,0x3b4)][_0x5a600b(_0x1fc8dc._0x135e05,_0x1fc8dc._0x431d6f,0x3c8,_0x1fc8dc._0x5c3f19)]===_0x5a600b(0x3d3,0x3cd,_0x1fc8dc._0x4bd236,0x3ed);}function getToolResultText(_0x1b90f5){const _0x6b89ca={_0x332b06:0x20a,_0x2211c6:0x1d3,_0x152803:0x1b8,_0x2db5b1:0x1ab,_0x5e5479:0x1b1,_0x8d2cf8:0x205,_0x23a63e:0x1ed,_0x2ac68c:0x1d0,_0x177cc7:0x1f1,_0x2d83c2:0x1f1,_0x3257da:0x20c,_0x4500a0:0x20d,_0x33ed5b:0x1d1,_0x2d5ba0:0x1c7,_0x1bc398:0x1ca},_0x3f327e={_0x129bc8:0x19d,_0x5f042c:0x269,_0x14422b:0x1a4,_0x51ae50:0x1a3,_0x399fde:0x19d},_0x51089d={_0x56fa27:0xc},_0x32d8ed={_0x49f17f:0x14e};if(typeof _0x1b90f5===_0x4ca803(0x204,_0x6b89ca._0x332b06,_0x6b89ca._0x2211c6,0x1f2))return _0x1b90f5;const _0x577479=_0x1b90f5[_0x4add69(-_0x6b89ca._0x152803,-0x1ba,-_0x6b89ca._0x2db5b1,-_0x6b89ca._0x5e5479)](_0xfeaa55=>{function _0x26db9c(_0x3b80d0,_0x14227f,_0x3fa65e,_0x28c4e3){return _0x4ca803(_0x3b80d0-_0x32d8ed._0x49f17f,_0x14227f-0x1b9,_0x28c4e3,_0x3fa65e- -0x390);}function _0x49c8ae(_0x4282e8,_0x47f504,_0x50d993,_0x5cd0ea){return _0x4ca803(_0x4282e8-_0x51089d._0x56fa27,_0x47f504-0xd2,_0x5cd0ea,_0x47f504-0x81);}return typeof _0xfeaa55===_0x26db9c(-0x1b3,-0x197,-0x1a3,-_0x3f327e._0x129bc8)&&_0xfeaa55!==null&&_0xfeaa55[_0x49c8ae(0x245,0x25e,0x27c,_0x3f327e._0x5f042c)]===_0x26db9c(-_0x3f327e._0x14422b,-_0x3f327e._0x51ae50,-_0x3f327e._0x399fde,-0x18f);})[_0x4ca803(0x1d5,_0x6b89ca._0x8d2cf8,0x1fb,0x1f4)](_0x9faae7=>_0x9faae7['text'])[_0x4add69(-0x1ff,-0x1ef,-_0x6b89ca._0x23a63e,-_0x6b89ca._0x2ac68c)]('\x0a\x0a')['trim']();function _0x4ca803(_0x8c6e2d,_0x20e3c5,_0x915e53,_0x255ee6){return _0x1e5e(_0x255ee6-0x18,_0x915e53);}function _0x4add69(_0x95a4ca,_0x27c1ae,_0x58a897,_0x188fac){return _0x1e5e(_0x27c1ae- -0x3b0,_0x95a4ca);}return _0x577479[_0x4ca803(_0x6b89ca._0x177cc7,_0x6b89ca._0x2d83c2,_0x6b89ca._0x3257da,_0x6b89ca._0x4500a0)]>0x0?_0x577479:_0x4add69(-_0x6b89ca._0x33ed5b,-0x1df,-_0x6b89ca._0x2d5ba0,-_0x6b89ca._0x1bc398);}function getToolResultImages(_0x2cfcb8){const _0x566bb2={_0x2f3325:0x33d,_0x9822ac:0x35b,_0x2be967:0x3a0,_0x1205af:0x382,_0x101eff:0x383},_0x56bb01={_0x1b400f:0x35d};function _0x3716cd(_0x2b5f98,_0x170eff,_0xdaf83c,_0x1c048d){return _0x1e5e(_0x170eff-_0x56bb01._0x1b400f,_0xdaf83c);}function _0x2ee0af(_0x5dbdc5,_0x29b10e,_0x4da69f,_0xfb955f){return _0x1e5e(_0xfb955f-0x18d,_0x5dbdc5);}return Array[_0x2ee0af(0x335,_0x566bb2._0x2f3325,_0x566bb2._0x9822ac,0x34b)](_0x2cfcb8)?_0x2cfcb8[_0x2ee0af(0x375,_0x566bb2._0x2be967,_0x566bb2._0x1205af,_0x566bb2._0x101eff)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x205426){const _0x249d05={_0x5f5655:0x5f,_0x552d0b:0x79,_0x3adaad:0x6c,_0xb542da:0x68,_0x3b8b00:0x5b,_0x3936e3:0xb2,_0x16164a:0xbc},_0x38ef7b={_0x44cbee:0x132},_0x5e82a6={_0x1cf7a7:0x16d};function _0x1610a5(_0x570c7c,_0x527b56,_0x5d9f42,_0x58fbfa){return _0x1e5e(_0x58fbfa- -_0x5e82a6._0x1cf7a7,_0x527b56);}function _0x122dc6(_0x315287,_0x510786,_0x24e9f8,_0xf2f831){return _0x1e5e(_0xf2f831- -_0x38ef7b._0x44cbee,_0x510786);}return _0x205426[_0x1610a5(0x53,_0x249d05._0x5f5655,_0x249d05._0x552d0b,_0x249d05._0x3adaad)]?.[_0x1610a5(_0x249d05._0xb542da,0x47,0x4f,_0x249d05._0x3b8b00)]??_0x122dc6(0xb0,0xa8,_0x249d05._0x3936e3,_0x249d05._0x16164a);}function createOpenAiResponsesReasoning(_0x2dc3a3){const _0x110a94={_0x2a74d5:0x1a3,_0x541a63:0x184,_0xebab60:0x174,_0x52d3ef:0x196,_0x25920a:0x18c,_0x5a2b62:0x1ad,_0x347236:0x1b1,_0x4bd269:0x447,_0x25c1f8:0x460,_0x26720a:0x440,_0x2cfdf0:0x47b,_0x397f78:0x484,_0x1b1ff3:0x488,_0x3b3b54:0x498,_0x5748e0:0x168,_0x22b093:0x186,_0x2315d5:0x151,_0xfe8b96:0x177,_0xb7d81e:0x197,_0x42eeda:0x1b2,_0x473168:0x44c,_0x2cf291:0x18d,_0x57a0c8:0x198,_0x451887:0x465,_0x5b5a6b:0x46e,_0x17db29:0x48f,_0x5c604c:0x479},_0x1f2587={_0x50ab79:0x29a},_0x40f08f={_0x1062e1:0x35d},_0x3401b4=resolveOpenAiReasoningConfig(_0x2dc3a3[_0x577028(-_0x110a94._0x2a74d5,-_0x110a94._0x541a63,-0x18b,-_0x110a94._0xebab60)]);if(!_0x3401b4)return{};const _0x4cdd71={},_0x223c2a=_0x2dc3a3[_0x577028(-0x189,-0x184,-0x169,-_0x110a94._0x52d3ef)]?.[_0x577028(-_0x110a94._0x25920a,-0x19b,-_0x110a94._0x5a2b62,-_0x110a94._0x347236)]!==void 0x0,_0x3d330d=(!_0x223c2a&&_0x5846a7(_0x110a94._0x4bd269,_0x110a94._0x25c1f8,_0x110a94._0x26720a,_0x110a94._0x2cfdf0)in _0x3401b4?_0x3401b4['summary']:void 0x0)??(resolveReasoningVisibility(_0x2dc3a3)===_0x5846a7(_0x110a94._0x397f78,_0x110a94._0x1b1ff3,0x4a5,_0x110a94._0x3b3b54)?_0x577028(-_0x110a94._0x5748e0,-0x165,-_0x110a94._0x22b093,-0x145):void 0x0);_0x3401b4[_0x577028(-0x188,-0x172,-0x190,-0x173)]&&(_0x4cdd71['effort']=_0x3401b4[_0x577028(-_0x110a94._0x2315d5,-0x172,-0x188,-_0x110a94._0xfe8b96)]);function _0x577028(_0x263912,_0x579e1a,_0x2123fc,_0x5052d3){return _0x1e5e(_0x579e1a- -_0x40f08f._0x1062e1,_0x2123fc);}function _0x5846a7(_0xf8b3ae,_0x4a3db5,_0x198c31,_0x37d341){return _0x1e5e(_0x4a3db5-_0x1f2587._0x50ab79,_0x198c31);}return _0x3d330d&&(_0x4cdd71[_0x577028(-0x185,-_0x110a94._0xb7d81e,-_0x110a94._0x42eeda,-_0x110a94._0x347236)]=_0x3d330d),{...!_0x223c2a&&_0x5846a7(_0x110a94._0x473168,0x46a,0x459,0x488)in _0x3401b4&&_0x3401b4[_0x577028(-0x177,-_0x110a94._0x2cf291,-0x175,-_0x110a94._0x57a0c8)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x5846a7(0x459,_0x110a94._0x451887,_0x110a94._0x5b5a6b,0x467)](_0x4cdd71)[_0x5846a7(0x489,_0x110a94._0x17db29,0x492,_0x110a94._0x5c604c)]>0x0?{'reasoning':_0x4cdd71}:{}};}function pushAssistantProviderState(_0x3cc67a,_0x238405,_0x451a01){const _0x4588ac={_0x66bbca:0x4a8,_0x16004c:0x15d,_0x5af942:0x147,_0x3e3a59:0x162,_0x404098:0x166,_0x272cc6:0x165,_0x19afb2:0x171,_0x2c1e25:0x187,_0x12122e:0x457,_0x1c1b23:0x449,_0x2013f0:0x459,_0x33ebad:0x45f,_0x357897:0x45b},_0x409523={_0x4e933b:0x34d};if(_0x238405[_0x3a0c5f(0x493,0x486,0x470,_0x4588ac._0x66bbca)]!==_0x26182c(-_0x4588ac._0x16004c,-_0x4588ac._0x5af942,-_0x4588ac._0x3e3a59,-0x158))return![];if(!isProviderStateCompatible(_0x238405,_0x451a01))return![];const _0xec8e40=_0x238405[_0x26182c(-_0x4588ac._0x404098,-_0x4588ac._0x272cc6,-0x14f,-0x162)]?.['openaiResponsesOutput']??[];function _0x3a0c5f(_0x135a44,_0x4b965c,_0x514646,_0x1addb9){return _0x1e5e(_0x4b965c-0x299,_0x135a44);}if(_0xec8e40[_0x26182c(-0x158,-0x140,-0x172,-0x177)]===0x0)return![];function _0x26182c(_0x53a058,_0x25200c,_0x32faf2,_0xcc1f81){return _0x1e5e(_0x53a058- -_0x409523._0x4e933b,_0xcc1f81);}for(const _0x422d75 of _0xec8e40){if(isResponseInputObject(_0x422d75)){const _0x1358e0=structuredClone(_0x422d75);delete _0x1358e0[_0x26182c(-0x177,-0x174,-_0x4588ac._0x19afb2,-0x175)],_0x1358e0[_0x26182c(-0x188,-0x197,-0x16d,-0x16c)]===_0x26182c(-0x174,-0x189,-0x16d,-_0x4588ac._0x2c1e25)&&!Array[_0x3a0c5f(0x46b,_0x4588ac._0x12122e,_0x4588ac._0x1c1b23,_0x4588ac._0x2013f0)](_0x1358e0[_0x3a0c5f(0x455,_0x4588ac._0x33ebad,_0x4588ac._0x357897,_0x4588ac._0x1c1b23)])&&(_0x1358e0[_0x3a0c5f(0x455,0x45f,0x47a,0x472)]=[]),_0x3cc67a['push'](_0x1358e0);}}return!![];}function toOpenAiResponsesRequest(_0x46bc24){const _0x2c936c={_0x37ec22:0x589,_0x389681:0x55e,_0x129537:0x4f,_0x16a701:0x57c,_0xb18a7b:0x583,_0x2993ff:0x5b2,_0x32ccb3:0x591,_0x2780ac:0x5a8,_0x5a652a:0x59,_0x23ca03:0x62,_0x5237e1:0x4f,_0x45d5ac:0x3a,_0x103256:0x31,_0x28380b:0x50,_0x1e248e:0x596,_0x21f28a:0x57a,_0x2c440c:0x5b5,_0x465bb1:0x566,_0x17183e:0x598,_0xca670c:0x59b,_0x458ca7:0x57d,_0x3b2eba:0x57e,_0x18a50b:0x586,_0xa8dc21:0x595,_0x44e876:0x589,_0x1c9b0c:0x571,_0x102d45:0x573,_0x30c69b:0x581,_0x1a320d:0x591,_0x3b49c1:0x4e,_0x40adb0:0x42,_0x19be0d:0x39,_0x66bbb6:0x5b,_0x530cc3:0x1c,_0x9c9e67:0x5b7,_0x51380f:0x57f,_0x347c33:0x5a1,_0x352028:0x72,_0x52d5c1:0x568,_0x559520:0x567,_0x133a81:0x569,_0x4814f8:0x583,_0x13d007:0x2d,_0x1c86ce:0x591,_0x596ffa:0x54e,_0x2844ce:0x599,_0x730705:0x59f,_0x4a03eb:0x5a9,_0x3ad390:0x578,_0x2faeb6:0x561,_0x1a0850:0x562,_0x374f7d:0x576,_0x1116be:0x55f,_0x3f3d04:0x584,_0x58ae9c:0x579,_0x20d0fb:0x564,_0x1f7d61:0x34,_0x246285:0x47,_0x40e868:0x33,_0x1fe2dd:0x18,_0x13c53c:0x43,_0x18536e:0x592,_0x374a37:0x578,_0x59260e:0x577,_0x225ba5:0x4c,_0x377c64:0x59b,_0x4bd1c3:0x57f,_0x1fe449:0x5ac,_0x4f06ab:0x54,_0x242154:0x30,_0x3124b6:0x46},_0x5e0ce4={_0x4fe098:0x4c6,_0x3c50ba:0x4ed,_0x348690:0x202,_0x3a3f77:0x21b,_0xa16061:0x219,_0x1d7ebb:0x213,_0x4cd605:0x4ce,_0x1825d7:0x4e7,_0x439b87:0x4c8,_0x6f632:0x508,_0x1fecfa:0x4ee,_0x5e0229:0x4ce,_0x392d78:0x4eb},_0x18c223=[];function _0x4c20e1(_0x1cb1fd,_0x273800,_0x169b2b,_0x392558){return _0x1e5e(_0x1cb1fd-0x3a4,_0x392558);}function _0x530157(_0x27802f,_0x34c5f9,_0x3da163,_0xbcc4){return _0x1e5e(_0x27802f- -0x18c,_0xbcc4);}for(const _0x563a2b of _0x46bc24[_0x4c20e1(0x581,_0x2c936c._0x37ec22,0x57c,0x57f)]){if(pushAssistantProviderState(_0x18c223,_0x563a2b,_0x46bc24))continue;const _0x51b78a=[];for(const _0x1bebd4 of normalizeContent(_0x563a2b[_0x4c20e1(_0x2c936c._0x389681,0x57e,0x573,0x57c)])){if(_0x1bebd4['type']===_0x530157(_0x2c936c._0x129537,0x4d,0x70,0x68)){_0x51b78a[_0x4c20e1(0x596,_0x2c936c._0x16a701,_0x2c936c._0xb18a7b,_0x2c936c._0x2993ff)](_0x563a2b[_0x4c20e1(_0x2c936c._0x32ccb3,0x592,0x590,_0x2c936c._0x2780ac)]===_0x530157(0x64,_0x2c936c._0x5a652a,0x6a,0x45)?{'type':_0x530157(0x47,0x32,0x3c,_0x2c936c._0x23ca03),'text':_0x1bebd4[_0x530157(_0x2c936c._0x5237e1,0x35,0x51,_0x2c936c._0x45d5ac)]}:{'type':_0x530157(_0x2c936c._0x103256,0x3d,0x23,0x4d),'text':_0x1bebd4['text']});continue;}if(_0x1bebd4['type']===_0x530157(0x5a,0x3b,0x5c,_0x2c936c._0x28380b)){_0x51b78a[_0x4c20e1(_0x2c936c._0x1e248e,0x58f,0x591,_0x2c936c._0x21f28a)]({'type':_0x4c20e1(0x597,_0x2c936c._0x2c440c,_0x2c936c._0x2993ff,0x593),'image_url':'data:'+_0x1bebd4[_0x4c20e1(0x586,_0x2c936c._0x465bb1,0x59b,_0x2c936c._0x17183e)][_0x4c20e1(_0x2c936c._0xca670c,0x57c,0x5b8,0x598)]+_0x4c20e1(0x567,_0x2c936c._0x458ca7,0x55b,_0x2c936c._0x3b2eba)+_0x1bebd4[_0x4c20e1(_0x2c936c._0x18a50b,0x5a3,0x598,_0x2c936c._0xa8dc21)][_0x4c20e1(_0x2c936c._0x44e876,_0x2c936c._0x1c9b0c,_0x2c936c._0x102d45,_0x2c936c._0x30c69b)]});continue;}pushUserContentMessage(_0x18c223,_0x563a2b[_0x4c20e1(_0x2c936c._0x1a320d,0x57c,0x5a0,0x585)],_0x51b78a[_0x530157(0x5d,_0x2c936c._0x3b49c1,0x7e,_0x2c936c._0x40adb0)](0x0));if(_0x1bebd4[_0x530157(_0x2c936c._0x19be0d,_0x2c936c._0x66bbb6,0x3e,_0x2c936c._0x530cc3)]===_0x4c20e1(0x598,_0x2c936c._0x9c9e67,0x5ae,0x590)){if(!hasSerializableToolUse(_0x1bebd4))continue;_0x18c223[_0x4c20e1(_0x2c936c._0x1e248e,_0x2c936c._0x51380f,0x587,_0x2c936c._0x347c33)]({'type':'function_call','call_id':_0x1bebd4['id'],'name':_0x1bebd4[_0x530157(0x52,0x69,0x35,_0x2c936c._0x352028)],'arguments':JSON['stringify'](_0x1bebd4[_0x4c20e1(0x56b,_0x2c936c._0x52d5c1,_0x2c936c._0x559520,0x57e)]??{})});continue;}if(_0x1bebd4[_0x4c20e1(_0x2c936c._0x133a81,0x548,0x55a,_0x2c936c._0x4814f8)]===_0x530157(_0x2c936c._0x13d007,0x33,0x1c,0x1b)){if(!hasSerializableToolResult(_0x1bebd4))continue;const _0x386e5f=getToolResultText(_0x1bebd4['content']);_0x18c223['push']({'type':_0x4c20e1(0x573,0x57e,_0x2c936c._0x1c86ce,0x565),'call_id':_0x1bebd4[_0x530157(0x54,0x6d,0x46,0x4d)],'output':_0x386e5f});const _0x1a8234=getToolResultImages(_0x1bebd4[_0x4c20e1(_0x2c936c._0x389681,0x550,0x543,_0x2c936c._0x596ffa)]);_0x1a8234[_0x4c20e1(_0x2c936c._0x2844ce,0x5ad,_0x2c936c._0x730705,0x5b6)]>0x0&&_0x18c223[_0x4c20e1(0x596,_0x2c936c._0x4a03eb,0x594,0x5a7)]({'type':_0x4c20e1(_0x2c936c._0x3ad390,0x570,0x583,0x58a),'role':'user','content':[{'type':_0x4c20e1(_0x2c936c._0x2faeb6,0x568,_0x2c936c._0x1a0850,0x557),'text':_0x4c20e1(_0x2c936c._0x374f7d,_0x2c936c._0x52d5c1,_0x2c936c._0x1116be,0x56a)+_0x1bebd4[_0x4c20e1(_0x2c936c._0x3f3d04,_0x2c936c._0x58ae9c,0x566,0x57b)]+'.'},..._0x1a8234[_0x530157(0x50,0x3d,0x4d,0x58)](_0x22b385=>({'type':_0x4c20e1(0x597,0x599,0x581,0x57a),'image_url':_0x4c20e1(0x571,0x570,0x577,0x559)+_0x22b385[_0x530157(0x56,0x40,0x61,0x49)][_0x530157(0x6b,0x4c,0x7c,0x8c)]+';base64,'+_0x22b385[_0x4c20e1(0x586,0x58f,0x59a,0x588)][_0x4c20e1(0x589,0x57f,0x59a,0x57c)]}))]});}}pushUserContentMessage(_0x18c223,_0x563a2b['role'],_0x51b78a);}return{...createOpenAiResponsesReasoning(_0x46bc24),'model':_0x46bc24[_0x4c20e1(_0x2c936c._0x20d0fb,0x583,0x57d,0x56b)],'instructions':systemToInstructions(_0x46bc24[_0x530157(0x63,0x85,0x58,0x7b)]),'input':_0x18c223,..._0x46bc24[_0x530157(0x3e,_0x2c936c._0x1f7d61,_0x2c936c._0x246285,0x3f)]!==void 0x0?{'max_output_tokens':_0x46bc24['maxTokens']}:{},'tools':_0x46bc24[_0x530157(_0x2c936c._0x40e868,_0x2c936c._0x1fe2dd,0x35,_0x2c936c._0x13c53c)][_0x4c20e1(0x580,_0x2c936c._0x18536e,_0x2c936c._0x374a37,_0x2c936c._0x18a50b)](_0x2d7a02=>{const _0x34307d={_0x4a13bf:0xaa,_0xe8f06c:0x1b,_0x58b93b:0x10},_0x99129f={_0x156b5d:0xa8,_0x555040:0x188};function _0x5b9873(_0x59533e,_0x284ceb,_0x45264a,_0x270742){return _0x4c20e1(_0x59533e- -0x784,_0x284ceb-_0x99129f._0x156b5d,_0x45264a-_0x99129f._0x555040,_0x284ceb);}function _0x1a11c8(_0x517d7a,_0x4bf1a9,_0x3950a0,_0x41088a){return _0x4c20e1(_0x41088a- -_0x34307d._0x4a13bf,_0x4bf1a9-_0x34307d._0xe8f06c,_0x3950a0-_0x34307d._0x58b93b,_0x4bf1a9);}return{'type':_0x1a11c8(0x4de,_0x5e0ce4._0x4fe098,_0x5e0ce4._0x3c50ba,0x4dd),'name':_0x2d7a02[_0x5b9873(-_0x5e0ce4._0x348690,-_0x5e0ce4._0x3a3f77,-_0x5e0ce4._0xa16061,-_0x5e0ce4._0x1d7ebb)],'description':_0x2d7a02[_0x1a11c8(_0x5e0ce4._0x4fe098,_0x5e0ce4._0x4cd605,_0x5e0ce4._0x1825d7,_0x5e0ce4._0x439b87)],'parameters':_0x2d7a02[_0x1a11c8(_0x5e0ce4._0x6f632,_0x5e0ce4._0x1fecfa,_0x5e0ce4._0x5e0229,_0x5e0ce4._0x392d78)]};}),..._0x46bc24[_0x4c20e1(0x590,0x591,_0x2c936c._0x59260e,0x590)]?{'text':{'format':{'type':_0x530157(_0x2c936c._0x225ba5,0x3f,0x5b,0x4e),'name':_0x46bc24[_0x4c20e1(0x590,_0x2c936c._0x377c64,_0x2c936c._0x4bd1c3,_0x2c936c._0x1fe449)][_0x530157(0x52,0x71,0x37,_0x2c936c._0x4f06ab)]??_0x530157(0x2a,0x1c,0x26,_0x2c936c._0x242154),'schema':_0x46bc24['outputFormat']['schema'],'strict':_0x46bc24[_0x530157(0x60,_0x2c936c._0x3124b6,0x7b,0x43)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};