@nuvin/agent-core 0.4.0-rc.7 → 0.4.0-rc.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/VERSION +2 -2
- package/dist/agent/index.js +1 -1
- package/dist/chunk-D5IVWJHX.js +1 -1
- package/dist/chunk-EQGBU73Q.js +1 -1
- package/dist/chunk-GAZGO6N7.js +1 -1
- package/dist/chunk-IUZALP6K.js +1 -1
- package/dist/chunk-LIE76IJA.js +1 -1
- package/dist/chunk-WCUIFNCL.js +1 -1
- package/dist/chunk-X7VAACWY.js +1 -1
- package/dist/chunk-YNOIG4FD.js +1 -1
- package/dist/chunk-YTDATWXW.js +1 -1
- package/dist/formats/index.js +1 -1
- package/dist/hooks/index.js +1 -1
- package/dist/isolate/index.js +1 -1
- package/dist/models/index.js +1 -1
- package/dist/models/model-registry.d.ts +1 -1
- package/dist/shared/index.js +1 -1
- package/dist/tools/index.js +1 -1
- package/package.json +1 -1
package/dist/chunk-IUZALP6K.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
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};
|
package/dist/chunk-LIE76IJA.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(_0x375142,_0x42640b){const _0x508674={_0x4d9e11:0x147,_0x4b9162:0x13c,_0x4119c2:0x124,_0x452610:0x110,_0x11daa8:0x14a,_0x2b6796:0x135,_0x2a92f7:0x127,_0x421d42:0x12f,_0x4f1509:0x40a,_0x1f3dca:0x3f8,_0x4bcc7c:0x3f8,_0x19650d:0x412,_0x19b8fd:0x423,_0x17698c:0x112,_0x48c069:0x129,_0x4e01d2:0xf0,_0x32b4d7:0x12f,_0x2003ba:0xfb,_0x4d6f3a:0x123,_0x1fbeaa:0x3e1,_0x4e2ff4:0x3d9,_0x2fbf8c:0xe2,_0x29b7dd:0xfa,_0x207374:0x3d6,_0x3254ce:0x3e4},_0x1a8d9d={_0x370c37:0x2c4};function _0x23112a(_0x3cf43c,_0x12548d,_0x722ca4,_0x14f5bc){return _0x4f64(_0x3cf43c- -_0x1a8d9d._0x370c37,_0x722ca4);}const _0x3533eb=_0x375142();function _0x26da7b(_0x3e5f60,_0x17bc62,_0x399e6c,_0x5a277d){return _0x4f64(_0x17bc62-0x254,_0x5a277d);}while(!![]){try{const _0xa0892f=parseInt(_0x23112a(-0x12a,-_0x508674._0x4d9e11,-0x12b,-_0x508674._0x4b9162))/0x1+parseInt(_0x23112a(-0x128,-_0x508674._0x4119c2,-_0x508674._0x452610,-_0x508674._0x11daa8))/0x2+-parseInt(_0x23112a(-_0x508674._0x2b6796,-0x14b,-_0x508674._0x2a92f7,-_0x508674._0x421d42))/0x3*(-parseInt(_0x26da7b(_0x508674._0x4f1509,0x3f8,_0x508674._0x1f3dca,_0x508674._0x4f1509))/0x4)+parseInt(_0x26da7b(_0x508674._0x4bcc7c,_0x508674._0x19650d,0x410,0x3ff))/0x5*(parseInt(_0x26da7b(_0x508674._0x19b8fd,0x41b,0x425,0x437))/0x6)+-parseInt(_0x23112a(-_0x508674._0x17698c,-0x12c,-_0x508674._0x48c069,-_0x508674._0x4e01d2))/0x7*(parseInt(_0x26da7b(0x409,0x3f9,0x3d9,0x3e2))/0x8)+parseInt(_0x23112a(-0x114,-_0x508674._0x32b4d7,-_0x508674._0x2003ba,-_0x508674._0x4d6f3a))/0x9*(-parseInt(_0x26da7b(_0x508674._0x1fbeaa,0x3e1,_0x508674._0x4e2ff4,0x3d9))/0xa)+-parseInt(_0x23112a(-0x100,-_0x508674._0x2fbf8c,-_0x508674._0x29b7dd,-0x111))/0xb*(-parseInt(_0x26da7b(_0x508674._0x207374,0x3ea,_0x508674._0x3254ce,0x3e0))/0xc);if(_0xa0892f===_0x42640b)break;else _0x3533eb['push'](_0x3533eb['shift']());}catch(_0x26329a){_0x3533eb['push'](_0x3533eb['shift']());}}}(_0x1d32,0x673c5));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x3dd481){const _0x2bef1d={_0xf610f5:0x49a,_0x11ab8b:0x49b,_0xc8c3b7:0x56e,_0x57d56e:0x516,_0x3797bc:0x536,_0x4db861:0x523},_0x188c79={_0x5a49c3:0x2ec},_0x58a416={_0x544f6a:0x39e};function _0x189f70(_0xd23c67,_0x4f7780,_0x4d9174,_0x5dde8a){return _0x4f64(_0x4f7780-_0x58a416._0x544f6a,_0x5dde8a);}function _0xb813e1(_0xf11134,_0x1e8990,_0x338a34,_0x51b9e5){return _0x4f64(_0x1e8990-_0x188c79._0x5a49c3,_0x51b9e5);}return normalizeContent(_0x3dd481)[_0xb813e1(_0x2bef1d._0xf610f5,0x495,0x4b4,_0x2bef1d._0x11ab8b)](_0x5394e7=>_0x5394e7[_0xb813e1(0x49a,0x481,0x467,0x46e)]===_0xb813e1(0x49a,0x4b9,0x4c7,0x4b5))[_0x189f70(0x548,0x563,_0x2bef1d._0xc8c3b7,0x57c)](_0xb810e0=>_0xb810e0[_0xb813e1(0x4c3,0x4b9,0x4bd,0x4c8)])[_0x189f70(_0x2bef1d._0x57d56e,_0x2bef1d._0x3797bc,0x514,_0x2bef1d._0x4db861)]('\x0a\x0a');}function pushUserContentMessage(_0x1798f4,_0x40e57a,_0x466466){const _0x3e2bc8={_0x206a11:0x13a,_0x1308cf:0x148,_0xa02b7e:0x13c},_0x275a15={_0x5d4f44:0x306};function _0x4a44ec(_0x5add86,_0x10469f,_0x49a18e,_0x315766){return _0x4f64(_0x315766- -_0x275a15._0x5d4f44,_0x10469f);}function _0x5581bd(_0xc3220d,_0x2fe493,_0x23df50,_0x1eff67){return _0x4f64(_0xc3220d-0x37c,_0x1eff67);}if(_0x466466['length']===0x0)return;_0x1798f4[_0x4a44ec(-_0x3e2bc8._0x206a11,-_0x3e2bc8._0x1308cf,-0x145,-_0x3e2bc8._0x206a11)]({'type':_0x4a44ec(-0x15d,-0x125,-0x137,-_0x3e2bc8._0xa02b7e),'role':_0x40e57a,'content':_0x466466});}function hasSerializableToolUse(_0x3cd7b2){const _0x5e748f={_0x1ba311:0x4ac,_0x2cc549:0x4a0,_0x5571a5:0x31c,_0x1a6c94:0x344,_0x11cf37:0x328,_0x530d53:0x316};function _0x1b41e0(_0x3cd49e,_0x29ac5e,_0x5a5731,_0x5a3b20){return _0x4f64(_0x5a5731-0x30d,_0x3cd49e);}function _0x3aaa03(_0x59240f,_0x123ce4,_0x333c1c,_0x1f4c87){return _0x4f64(_0x1f4c87-0x17e,_0x59240f);}return _0x3cd7b2['id'][_0x1b41e0(0x495,_0x5e748f._0x1ba311,_0x5e748f._0x2cc549,0x49a)]()[_0x3aaa03(_0x5e748f._0x5571a5,_0x5e748f._0x1a6c94,0x30c,_0x5e748f._0x11cf37)]>0x0&&_0x3cd7b2['name'][_0x3aaa03(0x2f8,0x2f3,_0x5e748f._0x530d53,0x311)]()[_0x1b41e0(0x4d6,0x4b2,0x4b7,0x4c1)]>0x0;}function hasSerializableToolResult(_0x1190ba){const _0x3792cc={_0x464a13:0x3d,_0x5f08e5:0x5f,_0x5521e0:0x29,_0x392f6e:0x17,_0x3d9f5b:0x9,_0x4d6a5e:0x61,_0x532411:0x41},_0x1d3617={_0x36ef73:0x20b};function _0x2a51c1(_0x42aa77,_0x16c11c,_0x3f8c49,_0x5aa981){return _0x4f64(_0x16c11c- -_0x1d3617._0x36ef73,_0x5aa981);}function _0x5a0036(_0x2d833b,_0x40589f,_0x29e8be,_0x486fe4){return _0x4f64(_0x40589f- -0x17c,_0x2d833b);}return _0x1190ba[_0x5a0036(0x4a,_0x3792cc._0x464a13,_0x3792cc._0x5f08e5,_0x3792cc._0x5521e0)][_0x5a0036(0x30,_0x3792cc._0x392f6e,0x1c,_0x3792cc._0x3d9f5b)]()[_0x2a51c1(-0x62,-_0x3792cc._0x4d6a5e,-0x44,-_0x3792cc._0x532411)]>0x0;}function isResponseInputObject(_0x48fa06){const _0x46c38c={_0x30acc1:0xb6,_0x17c968:0xd0,_0x287d06:0x1cc,_0xd5e838:0x1e8,_0x11f8e4:0x1bb,_0x25ce07:0x1d7},_0x2e0661={_0x218c95:0xee},_0x21d133={_0x444dfe:0x32};if(typeof _0x48fa06!==_0x150f38(0xc1,_0x46c38c._0x30acc1,0xba,_0x46c38c._0x17c968)||_0x48fa06===null||Array[_0x498b26(_0x46c38c._0x287d06,_0x46c38c._0xd5e838,0x1ef,0x1d0)](_0x48fa06))return![];const _0x556773=_0x48fa06;function _0x498b26(_0x5acfb6,_0x1e8c84,_0x456366,_0x1a41ee){return _0x4f64(_0x1a41ee-_0x21d133._0x444dfe,_0x5acfb6);}function _0x150f38(_0x42f8db,_0x1e17f2,_0x1a7f21,_0x1d744c){return _0x4f64(_0x42f8db- -_0x2e0661._0x218c95,_0x1a7f21);}return typeof _0x556773[_0x498b26(0x1db,0x1d4,_0x46c38c._0x11f8e4,0x1c7)]===_0x498b26(0x1f6,_0x46c38c._0x25ce07,0x1d4,0x1d8);}function isImageToolResultBlock(_0x5801ec){const _0x3b039a={_0x122d32:0x15,_0x54265b:0xd,_0xa70672:0x19,_0x35d285:0x4,_0x2ba60a:0x1b,_0x29b82b:0xc,_0x215c80:0x5,_0x42ab56:0x26,_0x5f1700:0x5,_0x198f53:0x43e,_0x5df117:0x445,_0x2a5adf:0x459,_0x41daea:0x43b,_0x49b9ae:0x429,_0x4ae4dc:0x42f,_0x2a2bae:0x44f,_0x1e11c5:0x438,_0x574a7a:0x436,_0xa1f356:0x438,_0x3ca51c:0x42f,_0x55d988:0x435},_0x172dc9={_0x24211d:0x292},_0x370543={_0x2e08e9:0x19a};if(typeof _0x5801ec!==_0x514584(_0x3b039a._0x122d32,0x10,-_0x3b039a._0x54265b,_0x3b039a._0xa70672)||_0x5801ec===null||Array[_0x514584(_0x3b039a._0x35d285,-0x1b,-0xa,_0x3b039a._0x2ba60a)](_0x5801ec))return![];function _0x514584(_0x2aee51,_0x326c5c,_0x4e46bc,_0x17a661){return _0x4f64(_0x2aee51- -_0x370543._0x2e08e9,_0x17a661);}function _0x3c080d(_0x376b54,_0x4f18f0,_0x1d5ea2,_0x3babf8){return _0x4f64(_0x4f18f0-_0x172dc9._0x24211d,_0x3babf8);}const _0x1eb07d=_0x5801ec;return _0x1eb07d['type']==='image'&&_0x1eb07d[_0x514584(-0x3,-0x23,-_0x3b039a._0x29b82b,0x0)]?.[_0x514584(-_0x3b039a._0x215c80,-_0x3b039a._0x42ab56,_0x3b039a._0x5f1700,-0x24)]===_0x3c080d(0x447,_0x3b039a._0x198f53,_0x3b039a._0x5df117,_0x3b039a._0x2a5adf)&&typeof _0x1eb07d[_0x3c080d(_0x3b039a._0x41daea,_0x3b039a._0x49b9ae,0x449,0x42b)][_0x3c080d(_0x3b039a._0x4ae4dc,_0x3b039a._0x2a2bae,0x465,0x43a)]===_0x3c080d(0x41d,_0x3b039a._0x1e11c5,_0x3b039a._0x574a7a,0x432)&&typeof _0x1eb07d['source']['data']===_0x3c080d(0x42d,_0x3b039a._0xa1f356,_0x3b039a._0x3ca51c,_0x3b039a._0x55d988);}function getToolResultText(_0x570f2f){const _0x4d286d={_0x4d4346:0x62,_0x2e8a1d:0x4e,_0x5cd14a:0x41,_0xcd105d:0x47,_0x46174b:0x4b,_0x48b52e:0x34,_0x40edae:0x7f,_0xe72af2:0x60,_0x5ac84e:0x61,_0x1e85ba:0x7c,_0x521845:0x42,_0xfa2d42:0x18,_0x1786fe:0x2e},_0x4028bf={_0x1692d7:0x199,_0x2b6114:0x1b4};if(typeof _0x570f2f===_0x585ed2(-_0x4d286d._0x4d4346,-_0x4d286d._0x2e8a1d,-_0x4d286d._0x5cd14a,-0x53))return _0x570f2f;function _0x585ed2(_0x3438ee,_0x1ff26c,_0x42a841,_0x2de363){return _0x4f64(_0x2de363- -0x1f9,_0x1ff26c);}const _0x8b3842=_0x570f2f['filter'](_0x2e5635=>{const _0x24ee6c={_0x250876:0x90},_0x415b9b={_0x62f9bc:0x111,_0x2d322e:0x188};function _0x34447b(_0x44d831,_0x577ee8,_0x4b2544,_0x5204e8){return _0x585ed2(_0x44d831-0x12a,_0x5204e8,_0x4b2544-_0x415b9b._0x62f9bc,_0x4b2544- -_0x415b9b._0x2d322e);}function _0x386b6b(_0x5a6a77,_0x281e3b,_0x550d3a,_0x221753){return _0x585ed2(_0x5a6a77-0x15e,_0x550d3a,_0x550d3a-_0x24ee6c._0x250876,_0x221753- -0x15c);}return typeof _0x2e5635==='object'&&_0x2e5635!==null&&_0x2e5635[_0x34447b(-0x20c,-0x204,-0x1ec,-0x1d3)]===_0x34447b(-_0x4028bf._0x1692d7,-0x1c0,-_0x4028bf._0x2b6114,-0x1d4);})[_0x585ed2(-0x23,-_0x4d286d._0xcd105d,-_0x4d286d._0x46174b,-_0x4d286d._0x48b52e)](_0x1e1393=>_0x1e1393[_0x461e9d(-0xbe,-0xc7,-0xc2,-0xe0)])[_0x585ed2(-_0x4d286d._0x40edae,-0x44,-_0x4d286d._0xe72af2,-_0x4d286d._0x5ac84e)]('\x0a\x0a')[_0x585ed2(-0x5a,-_0x4d286d._0x1e85ba,-0x67,-0x66)]();function _0x461e9d(_0xe22947,_0x2739a7,_0x31aa3b,_0x4c3f63){return _0x4f64(_0x31aa3b- -0x28f,_0x4c3f63);}return _0x8b3842[_0x585ed2(-_0x4d286d._0x521845,-0x67,-0x55,-0x4f)]>0x0?_0x8b3842:_0x585ed2(-0x32,-0x45,-_0x4d286d._0xfa2d42,-_0x4d286d._0x1786fe);}function getToolResultImages(_0x38a939){const _0x5e72d0={_0x29e002:0x328,_0x7b7545:0x345,_0x559e76:0x6f,_0x16a340:0x95,_0x3c9db5:0x78},_0x3b9d11={_0x360b1c:0x131};function _0x56805c(_0x178083,_0x503278,_0x47235f,_0x31b573){return _0x4f64(_0x31b573- -_0x3b9d11._0x360b1c,_0x47235f);}function _0x45bd12(_0x1f4793,_0x24461f,_0x3256d9,_0xbb6c3){return _0x4f64(_0x1f4793-0x18a,_0xbb6c3);}return Array[_0x45bd12(_0x5e72d0._0x29e002,0x31e,_0x5e72d0._0x7b7545,0x316)](_0x38a939)?_0x38a939[_0x56805c(0x74,_0x5e72d0._0x559e76,_0x5e72d0._0x16a340,_0x5e72d0._0x3c9db5)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x4a1f2f){const _0x4f8f25={_0x2a5cd3:0x55c,_0x2497dc:0x57f,_0x42aa66:0x59b},_0x271e1e={_0x478e2c:0x3ca};function _0x1dcf17(_0x32bf6f,_0x375048,_0x7e3ad9,_0x241859){return _0x4f64(_0x32bf6f-_0x271e1e._0x478e2c,_0x241859);}return _0x4a1f2f['reasoning']?.[_0x1dcf17(0x57b,_0x4f8f25._0x2a5cd3,_0x4f8f25._0x2497dc,_0x4f8f25._0x42aa66)]??'user-visible';}function createOpenAiResponsesReasoning(_0x39d0ee){const _0x29da70={_0x3b71ec:0x34,_0x25a503:0x5e,_0xb06e1f:0x49,_0x793bb1:0x49,_0x28b46d:0x55,_0x5c4e9f:0x63,_0x34e3a7:0x74,_0xb5cefe:0x8c,_0x27b845:0x5d,_0x1ef1d6:0x70,_0x205eeb:0x5f,_0x73f42d:0x81,_0x5b463c:0x91,_0x259986:0x75,_0x5e787c:0x24,_0x3734d6:0x46,_0x5cc7ce:0x16,_0x1929c9:0x39,_0x125f45:0x26,_0x2f8a5c:0x61,_0x13afaa:0x6b,_0x5aac02:0x93},_0x6f094b={_0x1aabed:0x21d},_0x2bc42d=resolveOpenAiReasoningConfig(_0x39d0ee['reasoning']);if(!_0x2bc42d)return{};function _0x1c5b8c(_0x45a341,_0x49f754,_0x43b7be,_0x11cb42){return _0x4f64(_0x11cb42- -0x162,_0x45a341);}const _0x4dbb6a={},_0xccd69b=_0x39d0ee['reasoning']?.[_0x1c5b8c(_0x29da70._0x3b71ec,_0x29da70._0x25a503,0x30,_0x29da70._0xb06e1f)]!==void 0x0,_0x362e9e=(!_0xccd69b&&_0x1c5b8c(0x4c,_0x29da70._0x793bb1,_0x29da70._0x28b46d,0x54)in _0x2bc42d?_0x2bc42d[_0x1c5b8c(0x40,0x76,_0x29da70._0x5c4e9f,0x54)]:void 0x0)??(resolveReasoningVisibility(_0x39d0ee)===_0x328fa4(-_0x29da70._0x34e3a7,-_0x29da70._0xb5cefe,-0x85,-0xa8)?_0x328fa4(-_0x29da70._0x27b845,-_0x29da70._0x1ef1d6,-_0x29da70._0x205eeb,-_0x29da70._0x73f42d):void 0x0);_0x2bc42d[_0x328fa4(-_0x29da70._0x5b463c,-_0x29da70._0x259986,-_0x29da70._0x27b845,-0x5e)]&&(_0x4dbb6a[_0x1c5b8c(0x3d,_0x29da70._0x5e787c,0x27,_0x29da70._0x3734d6)]=_0x2bc42d['effort']);function _0x328fa4(_0x1793cf,_0x389b59,_0x3fb1df,_0x182198){return _0x4f64(_0x389b59- -_0x6f094b._0x1aabed,_0x3fb1df);}return _0x362e9e&&(_0x4dbb6a['summary']=_0x362e9e),{...!_0xccd69b&&'includeEncryptedContent'in _0x2bc42d&&_0x2bc42d[_0x1c5b8c(_0x29da70._0x5cc7ce,_0x29da70._0x1929c9,_0x29da70._0x125f45,0x29)]===![]?{}:{'include':[_0x1c5b8c(0x58,0x44,0x48,0x66)]},...Object['keys'](_0x4dbb6a)[_0x328fa4(-_0x29da70._0x2f8a5c,-0x73,-_0x29da70._0x13afaa,-_0x29da70._0x5aac02)]>0x0?{'reasoning':_0x4dbb6a}:{}};}function pushAssistantProviderState(_0x4f1b0,_0x5aae8d,_0x1a1e98){const _0x50b208={_0x3a658b:0x125,_0x25bbe9:0x111,_0x32487c:0x14b,_0x1c6435:0x113,_0x2fb410:0x14c,_0x28ed3e:0x136,_0x3cb9a3:0x133,_0x45e1be:0x11c,_0x168dba:0x109,_0x590007:0x14a,_0x113f3a:0x167,_0x12ae6d:0x175,_0xe5c0f1:0x187,_0x3e9a66:0x143,_0x452424:0x142,_0x4c5420:0x11a,_0x430641:0x127,_0x4e82b6:0x145,_0xd90e22:0x17f,_0x3157eb:0x173,_0x315580:0x18c,_0x36bf3a:0x154,_0x1ff027:0x157},_0x5ba436={_0x10f058:0x8e};if(_0x5aae8d[_0x27711c(0x130,_0x50b208._0x3a658b,_0x50b208._0x25bbe9,0x12b)]!==_0x27711c(_0x50b208._0x32487c,0x120,0x12d,_0x50b208._0x1c6435))return![];if(!isProviderStateCompatible(_0x5aae8d,_0x1a1e98))return![];const _0x161d35=_0x5aae8d['providerState']?.[_0x27711c(_0x50b208._0x2fb410,0x150,0x131,_0x50b208._0x28ed3e)]??[];function _0x3d4e26(_0xe61f63,_0x41ddea,_0x3a9789,_0x5413fc){return _0x4f64(_0x3a9789- -0x329,_0xe61f63);}if(_0x161d35[_0x27711c(_0x50b208._0x3cb9a3,0x106,_0x50b208._0x45e1be,_0x50b208._0x168dba)]===0x0)return![];for(const _0x586fba of _0x161d35){if(isResponseInputObject(_0x586fba)){const _0x3edca2=structuredClone(_0x586fba);delete _0x3edca2[_0x3d4e26(-0x146,-_0x50b208._0x590007,-_0x50b208._0x113f3a,-0x173)],_0x3edca2[_0x3d4e26(-_0x50b208._0x12ae6d,-0x1aa,-0x194,-_0x50b208._0xe5c0f1)]===_0x27711c(_0x50b208._0x3e9a66,_0x50b208._0x452424,0x129,_0x50b208._0x4c5420)&&!Array['isArray'](_0x3edca2[_0x27711c(_0x50b208._0x430641,0x12f,0x128,_0x50b208._0x4e82b6)])&&(_0x3edca2[_0x3d4e26(-0x166,-_0x50b208._0xd90e22,-_0x50b208._0x3157eb,-_0x50b208._0x315580)]=[]),_0x4f1b0[_0x3d4e26(-_0x50b208._0x36bf3a,-_0x50b208._0x1ff027,-0x15d,-0x15a)](_0x3edca2);}}function _0x27711c(_0x109143,_0x8eb130,_0x3ec13f,_0x320725){return _0x4f64(_0x3ec13f- -_0x5ba436._0x10f058,_0x109143);}return!![];}function toOpenAiResponsesRequest(_0x32bec5){const _0x384d8b={_0x500b1b:0x173,_0x32941f:0x152,_0x670ecc:0x182,_0x1823f2:0x4cc,_0x15e960:0x4bf,_0x5cd77c:0x4ca,_0x365665:0x168,_0x66d3c1:0x151,_0x320242:0x4e1,_0x5e5a59:0x4ef,_0x2c6a6a:0x50f,_0x61f1a3:0x4d4,_0x558366:0x4f0,_0x1c3339:0x4d6,_0x4f989a:0x4fa,_0x515001:0x4e2,_0x256c1d:0x510,_0x59f1e9:0x502,_0x3684dc:0x4e3,_0x3fd57b:0x515,_0x16ef85:0x4f6,_0x135ffb:0x181,_0x32737e:0x4c7,_0x5e8d22:0x14a,_0x477867:0x17b,_0x530b42:0x1ad,_0x415cd1:0x18f,_0x3a5e47:0x16e,_0x5391c3:0x4d1,_0x567719:0x4de,_0x55e5d6:0x18c,_0x2731eb:0x4c9,_0x2f2f2e:0x4fd,_0x32d76e:0x15c,_0x47758d:0x16f,_0x112f36:0x4e7,_0x14b2c9:0x188,_0x514206:0x1a3,_0x12135d:0x188,_0x52b822:0x4f8,_0x266a5f:0x4fe,_0x3c3b93:0x4df,_0x175ee9:0x4e3,_0x57924c:0x4cf,_0x7123a0:0x4d6,_0x22b13a:0x152,_0xa547e2:0x14b,_0x2da4c2:0x183,_0xe065f6:0x4ed,_0x45403a:0x4ee,_0x19b77f:0x4ce,_0xf84547:0x4cd,_0x3b7cb9:0x17a,_0x792470:0x149,_0x38f50e:0x15f,_0x555773:0x170,_0x5b5f56:0x15f,_0x76ccfa:0x4f8,_0x4e4fb9:0x501,_0x4db7e6:0x509,_0x46dc56:0x194,_0x4f7a57:0x199,_0x2c9840:0x177,_0x718e0f:0x196,_0x371fdb:0x4fb,_0x1f167b:0x510,_0x2fb42f:0x4d8,_0x29ff1b:0x4dc,_0x4fdfa6:0x4fa,_0x17fcbb:0x4f4,_0x1f6140:0x4ed,_0x1150b9:0x4d5,_0x57cdef:0x4c3,_0x1dbd3d:0x4c8,_0x3191ec:0x4d6,_0x274d0c:0x4d2,_0x15c653:0x4b6,_0x38d85a:0x4d0,_0x36d442:0x4c9,_0x5608f5:0x4bf,_0x3c432b:0x160,_0x39bf55:0x514,_0xdf429c:0x4bd,_0x29063e:0x185,_0x5d6f02:0x4c9,_0x5c25a1:0x4e4,_0x5e675a:0x4ea,_0x11ed96:0x18e},_0x1df8f6={_0x571fa2:0x185,_0x46f4aa:0x1a3,_0x5ed710:0x196,_0x42c21a:0x19b,_0xfbfd1e:0x1af,_0x52a96e:0x175,_0x32206f:0x17f,_0x379796:0x16b},_0x5ef073={_0x3e6d9b:0x1e5},_0xbe744b={_0x106d5d:0x31},_0x3db276=[];function _0x3ec8cc(_0x20143b,_0x2b5865,_0x392c60,_0x352c7c){return _0x4f64(_0x20143b-0x335,_0x392c60);}for(const _0x495fd9 of _0x32bec5[_0x599c49(_0x384d8b._0x500b1b,_0x384d8b._0x32941f,_0x384d8b._0x670ecc,0x172)]){if(pushAssistantProviderState(_0x3db276,_0x495fd9,_0x32bec5))continue;const _0x16da4f=[];for(const _0xfc234 of normalizeContent(_0x495fd9[_0x3ec8cc(0x4c5,_0x384d8b._0x1823f2,_0x384d8b._0x15e960,_0x384d8b._0x5cd77c)])){if(_0xfc234[_0x599c49(_0x384d8b._0x365665,_0x384d8b._0x66d3c1,0x149,0x164)]===_0x3ec8cc(0x502,0x4f0,0x4e2,_0x384d8b._0x320242)){_0x16da4f[_0x3ec8cc(0x501,_0x384d8b._0x5e5a59,0x4eb,_0x384d8b._0x2c6a6a)](_0x495fd9[_0x3ec8cc(_0x384d8b._0x61f1a3,0x4c2,0x4c6,0x4c6)]===_0x3ec8cc(_0x384d8b._0x558366,0x508,_0x384d8b._0x1c3339,0x4e1)?{'type':_0x3ec8cc(0x4fe,_0x384d8b._0x4f989a,_0x384d8b._0x515001,_0x384d8b._0x256c1d),'text':_0xfc234[_0x3ec8cc(_0x384d8b._0x59f1e9,_0x384d8b._0x3684dc,_0x384d8b._0x3fd57b,_0x384d8b._0x16ef85)]}:{'type':'input_text','text':_0xfc234[_0x599c49(_0x384d8b._0x135ffb,0x19f,0x19e,0x19c)]});continue;}if(_0xfc234[_0x3ec8cc(0x4ca,0x4d5,_0x384d8b._0x32737e,0x4da)]===_0x599c49(_0x384d8b._0x5e8d22,_0x384d8b._0x477867,0x14f,0x15b)){_0x16da4f[_0x3ec8cc(0x501,0x51b,0x4e4,0x4e1)]({'type':_0x599c49(_0x384d8b._0x530b42,_0x384d8b._0x415cd1,_0x384d8b._0x3a5e47,0x18b),'image_url':'data:'+_0xfc234[_0x3ec8cc(0x4cc,0x4e8,_0x384d8b._0x5391c3,_0x384d8b._0x567719)][_0x599c49(0x1a8,0x19c,0x173,_0x384d8b._0x55e5d6)]+_0x3ec8cc(0x4e8,_0x384d8b._0x2731eb,0x4cc,_0x384d8b._0x2f2f2e)+_0xfc234['source']['data']});continue;}pushUserContentMessage(_0x3db276,_0x495fd9[_0x3ec8cc(0x4d4,0x4e0,0x4be,0x4c1)],_0x16da4f[_0x599c49(0x169,0x16a,_0x384d8b._0x32d76e,_0x384d8b._0x47758d)](0x0));if(_0xfc234['type']===_0x3ec8cc(0x4f6,_0x384d8b._0x112f36,0x4d8,0x4df)){if(!hasSerializableToolUse(_0xfc234))continue;_0x3db276[_0x599c49(_0x384d8b._0x14b2c9,_0x384d8b._0x514206,_0x384d8b._0x12135d,0x19b)]({'type':_0x3ec8cc(_0x384d8b._0x52b822,0x4ed,_0x384d8b._0x266a5f,_0x384d8b._0x3c3b93),'call_id':_0xfc234['id'],'name':_0xfc234[_0x3ec8cc(_0x384d8b._0x175ee9,_0x384d8b._0x57924c,_0x384d8b._0x59f1e9,_0x384d8b._0x1823f2)],'arguments':JSON[_0x3ec8cc(_0x384d8b._0x7123a0,0x4b7,0x4f7,0x4d3)](_0xfc234['input']??{})});continue;}if(_0xfc234[_0x599c49(_0x384d8b._0x22b13a,_0x384d8b._0xa547e2,_0x384d8b._0x2da4c2,0x164)]===_0x3ec8cc(_0x384d8b._0xe065f6,_0x384d8b._0x45403a,_0x384d8b._0x19b77f,_0x384d8b._0xf84547)){if(!hasSerializableToolResult(_0xfc234))continue;const _0x16d3ba=getToolResultText(_0xfc234[_0x599c49(_0x384d8b._0x3b7cb9,0x152,_0x384d8b._0x792470,_0x384d8b._0x38f50e)]);_0x3db276['push']({'type':_0x3ec8cc(0x4f5,0x50a,0x4db,0x4e0),'call_id':_0xfc234[_0x599c49(0x1a2,0x18c,0x179,0x188)],'output':_0x16d3ba});const _0xfda327=getToolResultImages(_0xfc234[_0x599c49(0x161,_0x384d8b._0x555773,0x149,_0x384d8b._0x5b5f56)]);_0xfda327[_0x3ec8cc(0x4df,0x4d4,_0x384d8b._0x76ccfa,0x4d2)]>0x0&&_0x3db276[_0x3ec8cc(_0x384d8b._0x4e4fb9,0x50a,0x501,_0x384d8b._0x4db7e6)]({'type':_0x599c49(0x19d,0x184,_0x384d8b._0x46dc56,_0x384d8b._0x4f7a57),'role':'user','content':[{'type':_0x599c49(_0x384d8b._0x415cd1,_0x384d8b._0x2c9840,_0x384d8b._0x718e0f,0x189),'text':_0x3ec8cc(_0x384d8b._0x371fdb,_0x384d8b._0x1f167b,_0x384d8b._0x320242,0x4eb)+_0xfc234[_0x3ec8cc(_0x384d8b._0x45403a,0x4fe,_0x384d8b._0x2fb42f,_0x384d8b._0x29ff1b)]+'.'},..._0xfda327[_0x3ec8cc(_0x384d8b._0x4fdfa6,_0x384d8b._0x17fcbb,0x505,0x509)](_0x93d609=>({'type':_0x3ec8cc(0x4f1,0x4e5,0x50f,0x4e4),'image_url':_0x599c49(0x146,0x137,0x163,0x159)+_0x93d609['source'][_0x3ec8cc(0x4f2,0x510,0x4d0,0x4e2)]+_0x599c49(0x192,0x16c,0x198,0x182)+_0x93d609[_0x3ec8cc(0x4cc,0x4ca,0x4d5,0x4e3)]['data']}))]});}}pushUserContentMessage(_0x3db276,_0x495fd9[_0x3ec8cc(0x4d4,_0x384d8b._0x1f6140,0x4ce,_0x384d8b._0x1150b9)],_0x16da4f);}function _0x599c49(_0x1fd1ae,_0x43291e,_0x4b503b,_0x56e687){return _0x4f64(_0x56e687- -_0xbe744b._0x106d5d,_0x1fd1ae);}return{...createOpenAiResponsesReasoning(_0x32bec5),'model':_0x32bec5[_0x3ec8cc(_0x384d8b._0x57cdef,_0x384d8b._0x1c3339,_0x384d8b._0x1dbd3d,_0x384d8b._0x3191ec)],'instructions':systemToInstructions(_0x32bec5[_0x3ec8cc(_0x384d8b._0x274d0c,0x4ea,0x4be,_0x384d8b._0x15c653)]),'input':_0x3db276,..._0x32bec5[_0x3ec8cc(_0x384d8b._0x38d85a,_0x384d8b._0x36d442,_0x384d8b._0x5608f5,0x4bc)]!==void 0x0?{'max_output_tokens':_0x32bec5[_0x3ec8cc(0x4d0,0x4cd,_0x384d8b._0x515001,0x4d6)]}:{},'tools':_0x32bec5[_0x599c49(_0x384d8b._0x3c432b,0x187,0x15e,0x171)][_0x3ec8cc(0x4fa,_0x384d8b._0x39bf55,0x4fe,0x503)](_0x242bcc=>{const _0x273c80={_0x2c9953:0x34d};function _0x1540a9(_0x473141,_0x2bc978,_0x50c7c6,_0x301271){return _0x3ec8cc(_0x2bc978- -0x3a9,_0x2bc978-0x18e,_0x473141,_0x301271-_0x5ef073._0x3e6d9b);}function _0x101e08(_0x29ea3e,_0x23bf98,_0x42c662,_0x3dd3f4){return _0x3ec8cc(_0x29ea3e- -_0x273c80._0x2c9953,_0x23bf98-0x15c,_0x3dd3f4,_0x3dd3f4-0x18b);}return{'type':_0x101e08(0x18f,0x1a2,_0x1df8f6._0x571fa2,_0x1df8f6._0x46f4aa),'name':_0x242bcc[_0x101e08(_0x1df8f6._0x5ed710,_0x1df8f6._0x42c21a,_0x1df8f6._0xfbfd1e,_0x1df8f6._0x52a96e)],'description':_0x242bcc[_0x101e08(0x17a,_0x1df8f6._0x32206f,0x18b,_0x1df8f6._0x379796)],'parameters':_0x242bcc['input_schema']};}),..._0x32bec5[_0x3ec8cc(0x4ce,_0x384d8b._0x57cdef,_0x384d8b._0xdf429c,0x4d9)]?{'text':{'format':{'type':'json_schema','name':_0x32bec5['outputFormat'][_0x599c49(0x169,_0x384d8b._0x46dc56,_0x384d8b._0x29063e,0x17d)]??_0x3ec8cc(_0x384d8b._0x5d6f02,_0x384d8b._0x5c25a1,0x4bd,0x4e9),'schema':_0x32bec5['outputFormat'][_0x3ec8cc(_0x384d8b._0x5e675a,_0x384d8b._0x7123a0,0x4e3,0x4ef)],'strict':_0x32bec5[_0x3ec8cc(0x4ce,0x4cc,0x4e5,0x4d5)][_0x599c49(0x167,_0x384d8b._0x11ed96,_0x384d8b._0x555773,0x183)]??!![]}}}:{}};}function _0x1d32(){const _0xadd699=['BMfTzq','B2jQzwn0','mtmWmJm5uvLLy1Hy','DMLZAwjPBgL0Eq','ndLjteDgquW','o2jHC2u2ncW','C3rYAwn0','C2nOzw1H','C3vTBwfYEq','CMvHC29UAw5N','Dg9VBf9Yzxn1Bhq','Dg9VBf91C2vFAwq','Aw5WDxrFDgv4Da','yxnZAxn0yw50','Aw5WDxrFAw1Hz2u','BwvKAwfFDhLWzq','nxHLDgPVDq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','zNvUy3rPB25Fy2fSBf9VDxrWDxq','Dg9VBf91C2u','C3rHDhvZ','zNvUy3rPB25Fy2fSBa','mZnsq3D0yMW','BwfW','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','mJeZntuWogzerffdzq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','B3v0Chv0x3rLEhq','BwvZC2fNzq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','ChvZAa','Dgv4Da','zgf0ytO','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','Aw1Hz2u','mJaWtvzMq0jI','Bw9KzwW','m3nmANLWqW','y29UDgvUDa','DxnLCI12AxnPyMXL','zgvZy3jPChrPB24','DhjPBq','C3rYDwn0DxjLzf9VDxrWDxq','DhLWzq','mtu4mda4ogXIyKfiqG','C291CMnL','AM9PBG','B3v0Chv0rM9YBwf0','mtm4otuWAuzKv0jV','Bwf4vg9Rzw5Z','mZGZnde4AvL0zKr4','C3LZDgvT','AxnbCNjHEq','CM9Szq','C3bSAwnL','C3rYAw5NAwz5','Dg9VBhm','BwvZC2fNzxm','ndaYodeYC3DKzuPb','ntm3mtC2yMjzuefS','C3rYAw5N','zNvUy3rPB24','zwzMB3j0','zMLSDgvY','BgvUz3rO','y29KzxG','yMfZzty0','yxv0BW'];_0x1d32=function(){return _0xadd699;};return _0x1d32();}function _0x4f64(_0x1d2fed,_0x5ed6f7){_0x1d2fed=_0x1d2fed-0x18a;const _0x1d320c=_0x1d32();let _0x4f646f=_0x1d320c[_0x1d2fed];if(_0x4f64['iKJTPi']===undefined){var _0x364c47=function(_0x432fad){const _0xe828d4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3dd481='',_0x5394e7='';for(let _0xb810e0=0x0,_0x1798f4,_0x40e57a,_0x466466=0x0;_0x40e57a=_0x432fad['charAt'](_0x466466++);~_0x40e57a&&(_0x1798f4=_0xb810e0%0x4?_0x1798f4*0x40+_0x40e57a:_0x40e57a,_0xb810e0++%0x4)?_0x3dd481+=String['fromCharCode'](0xff&_0x1798f4>>(-0x2*_0xb810e0&0x6)):0x0){_0x40e57a=_0xe828d4['indexOf'](_0x40e57a);}for(let _0x3cd7b2=0x0,_0x1190ba=_0x3dd481['length'];_0x3cd7b2<_0x1190ba;_0x3cd7b2++){_0x5394e7+='%'+('00'+_0x3dd481['charCodeAt'](_0x3cd7b2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5394e7);};_0x4f64['rEhwlk']=_0x364c47,_0x4f64['GWqXsl']={},_0x4f64['iKJTPi']=!![];}const _0x5046e7=_0x1d320c[0x0],_0x482324=_0x1d2fed+_0x5046e7,_0x4e36f6=_0x4f64['GWqXsl'][_0x482324];return!_0x4e36f6?(_0x4f646f=_0x4f64['rEhwlk'](_0x4f646f),_0x4f64['GWqXsl'][_0x482324]=_0x4f646f):_0x4f646f=_0x4e36f6,_0x4f646f;}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};
|