@nuvin/agent-core 0.2.0 → 0.2.1-rc.1

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 _0x16b6(_0x106646,_0x131304){_0x106646=_0x106646-0x14b;const _0xc248bd=_0xc248();let _0x16b60f=_0xc248bd[_0x106646];if(_0x16b6['tJzubR']===undefined){var _0x1c66d9=function(_0x57822d){const _0x4c58af='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c33a7='',_0x2ae280='';for(let _0x2e3531=0x0,_0x325ed0,_0xe612ba,_0x19fa88=0x0;_0xe612ba=_0x57822d['charAt'](_0x19fa88++);~_0xe612ba&&(_0x325ed0=_0x2e3531%0x4?_0x325ed0*0x40+_0xe612ba:_0xe612ba,_0x2e3531++%0x4)?_0x2c33a7+=String['fromCharCode'](0xff&_0x325ed0>>(-0x2*_0x2e3531&0x6)):0x0){_0xe612ba=_0x4c58af['indexOf'](_0xe612ba);}for(let _0xa5abff=0x0,_0x3d1237=_0x2c33a7['length'];_0xa5abff<_0x3d1237;_0xa5abff++){_0x2ae280+='%'+('00'+_0x2c33a7['charCodeAt'](_0xa5abff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2ae280);};_0x16b6['TeIHUQ']=_0x1c66d9,_0x16b6['iJDMNa']={},_0x16b6['tJzubR']=!![];}const _0x4623fa=_0xc248bd[0x0],_0x87a380=_0x106646+_0x4623fa,_0x2d3365=_0x16b6['iJDMNa'][_0x87a380];return!_0x2d3365?(_0x16b60f=_0x16b6['TeIHUQ'](_0x16b60f),_0x16b6['iJDMNa'][_0x87a380]=_0x16b60f):_0x16b60f=_0x2d3365,_0x16b60f;}(function(_0x395d35,_0x1efee8){const _0x5c93f3={_0x4894c2:0xe5,_0x90513:0xc3,_0x28184a:0xcd,_0xb0a8ee:0x1a3,_0x159b30:0x1a5,_0x381966:0x1a2,_0x1baf6c:0x183,_0x316042:0x182,_0x320496:0xce,_0x3fb3d3:0xb9,_0x349aac:0xc5,_0x4fe186:0xc1,_0x30eddb:0x168,_0x5ce204:0x15e,_0x1a026f:0x17a,_0x1d4a0d:0xaf,_0x205ad9:0xcf,_0x392efd:0x1a6,_0x3885c6:0x1a9,_0x504de6:0x1bb,_0x29578a:0x19c,_0x42fce7:0x190},_0xedd777=_0x395d35();function _0x12d27a(_0x2cd8fc,_0x54cd64,_0x41f944,_0x31e00e){return _0x16b6(_0x31e00e- -0x2f2,_0x54cd64);}function _0x5e32b3(_0x496fc6,_0x1cefcb,_0x200b09,_0x2dcd9d){return _0x16b6(_0x200b09- -0x22c,_0x2dcd9d);}while(!![]){try{const _0x3cd347=parseInt(_0x5e32b3(-0xcf,-_0x5c93f3._0x4894c2,-0xc9,-0xc5))/0x1+-parseInt(_0x5e32b3(-0xc7,-_0x5c93f3._0x90513,-_0x5c93f3._0x28184a,-0xb9))/0x2+parseInt(_0x12d27a(-0x1bf,-0x1a0,-0x1ac,-_0x5c93f3._0xb0a8ee))/0x3*(parseInt(_0x12d27a(-0x18b,-_0x5c93f3._0x159b30,-0x1bf,-_0x5c93f3._0x381966))/0x4)+-parseInt(_0x12d27a(-_0x5c93f3._0x1baf6c,-_0x5c93f3._0x316042,-0x176,-0x192))/0x5*(-parseInt(_0x5e32b3(-0xbd,-_0x5c93f3._0x320496,-0xb1,-0xb8))/0x6)+-parseInt(_0x5e32b3(-0xbe,-_0x5c93f3._0x3fb3d3,-_0x5c93f3._0x349aac,-_0x5c93f3._0x4fe186))/0x7*(-parseInt(_0x12d27a(-_0x5c93f3._0x30eddb,-_0x5c93f3._0x316042,-_0x5c93f3._0x5ce204,-_0x5c93f3._0x1a026f))/0x8)+parseInt(_0x5e32b3(-0xc2,-_0x5c93f3._0x1d4a0d,-0xc7,-_0x5c93f3._0x205ad9))/0x9+parseInt(_0x12d27a(-_0x5c93f3._0x392efd,-_0x5c93f3._0x3885c6,-_0x5c93f3._0x504de6,-_0x5c93f3._0x29578a))/0xa*(-parseInt(_0x12d27a(-0x184,-0x1a0,-0x1ab,-_0x5c93f3._0x42fce7))/0xb);if(_0x3cd347===_0x1efee8)break;else _0xedd777['push'](_0xedd777['shift']());}catch(_0x15c51b){_0xedd777['push'](_0xedd777['shift']());}}}(_0xc248,0x61ba1));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x2c33a7){const _0x35ca82={_0x86e883:0x145,_0x4dc83d:0x13f,_0xe85eee:0x140},_0x1e09d1={_0x36a5c1:0x2c0};function _0x40bf7f(_0xf346d6,_0x27737e,_0x37b3f3,_0x377e3){return _0x16b6(_0xf346d6-0x203,_0x377e3);}function _0x4e797a(_0x1f9bbd,_0x1221f7,_0x16b430,_0x2d3eab){return _0x16b6(_0x16b430- -_0x1e09d1._0x36a5c1,_0x1f9bbd);}return normalizeContent(_0x2c33a7)[_0x4e797a(-0x14d,-0x136,-0x152,-0x15e)](_0x2ae280=>_0x2ae280[_0x4e797a(-0x133,-0x15f,-0x141,-0x155)]===_0x40bf7f(0x355,0x346,0x350,0x358))[_0x4e797a(-_0x35ca82._0x86e883,-0x143,-_0x35ca82._0x4dc83d,-_0x35ca82._0xe85eee)](_0x2e3531=>_0x2e3531[_0x40bf7f(0x355,0x371,0x363,0x349)])['join']('\x0a\x0a');}function pushUserContentMessage(_0x325ed0,_0xe612ba,_0x19fa88){const _0x597a22={_0x2921dd:0x52d,_0xc8f8c1:0x53e},_0x24ad76={_0x2376fb:0x3b0},_0x236401={_0x4dbc6a:0x146};function _0x21e899(_0x404a60,_0x1d5656,_0x29daaf,_0x376913){return _0x16b6(_0x404a60-_0x236401._0x4dbc6a,_0x376913);}if(_0x19fa88[_0x192dba(0x525,0x50f,0x545,0x514)]===0x0)return;function _0x192dba(_0x8bd0a4,_0x137d75,_0x1454f2,_0x100b96){return _0x16b6(_0x8bd0a4-_0x24ad76._0x2376fb,_0x100b96);}_0x325ed0[_0x192dba(0x51d,0x518,0x509,0x539)]({'type':_0x192dba(_0x597a22._0x2921dd,0x540,0x520,_0x597a22._0xc8f8c1),'role':_0xe612ba,'content':_0x19fa88});}function hasSerializableToolUse(_0xa5abff){const _0x3b0f07={_0x23fb9f:0x282,_0x25506e:0x29a,_0xf7dd67:0x29e,_0x2b804e:0x29e,_0x1c7264:0x285,_0x31c62f:0x270,_0x459b63:0x28e,_0x5642f5:0x69,_0x366b67:0x6b,_0x148ebd:0x55},_0x3b820a={_0x206569:0x129},_0x5cd514={_0xb8d27a:0x10c};function _0x4c932f(_0x4f1250,_0x2b146f,_0x3485e1,_0x34a940){return _0x16b6(_0x2b146f- -_0x5cd514._0xb8d27a,_0x3485e1);}function _0x4fa5b4(_0x1204f8,_0x597713,_0x2f45d2,_0x257d4a){return _0x16b6(_0x2f45d2-_0x3b820a._0x206569,_0x597713);}return _0xa5abff['id'][_0x4fa5b4(0x264,0x27c,_0x3b0f07._0x23fb9f,0x287)]()[_0x4fa5b4(_0x3b0f07._0x25506e,_0x3b0f07._0xf7dd67,_0x3b0f07._0x2b804e,_0x3b0f07._0x1c7264)]>0x0&&_0xa5abff['name'][_0x4fa5b4(_0x3b0f07._0x31c62f,_0x3b0f07._0x459b63,0x282,0x272)]()[_0x4c932f(0x53,_0x3b0f07._0x5642f5,_0x3b0f07._0x366b67,_0x3b0f07._0x148ebd)]>0x0;}function hasSerializableToolResult(_0x3d1237){const _0x1b6b88={_0x1f21d8:0x1c2,_0x52f47a:0x7c,_0x4353fc:0x63},_0x55fa33={_0x1c3c8b:0x1d3};function _0x172f39(_0x45a5ea,_0x462a95,_0xf41ee5,_0x4c4b67){return _0x16b6(_0x462a95- -_0x55fa33._0x1c3c8b,_0xf41ee5);}function _0x272100(_0x21634d,_0x834499,_0x11b499,_0x37088e){return _0x16b6(_0x37088e- -0x31a,_0x11b499);}return _0x3d1237[_0x272100(-_0x1b6b88._0x1f21d8,-0x1c7,-0x1b7,-0x1a7)]['trim']()[_0x172f39(-_0x1b6b88._0x52f47a,-0x5e,-0x3e,-_0x1b6b88._0x4353fc)]>0x0;}function isResponseInputObject(_0x2830b7){const _0x4de2f5={_0x57bc0a:0xef},_0x57474f={_0x46906d:0xa0};function _0xb41d22(_0x3f40a3,_0x595137,_0x55779a,_0x4226ca){return _0x16b6(_0x595137- -_0x57474f._0x46906d,_0x3f40a3);}if(typeof _0x2830b7!=='object'||_0x2830b7===null||Array['isArray'](_0x2830b7))return![];const _0x200f0a=_0x2830b7;return typeof _0x200f0a[_0xb41d22(0xdf,0xdf,0xcb,_0x4de2f5._0x57bc0a)]==='string';}function isImageToolResultBlock(_0x1a7cd9){const _0x43554d={_0x4ad9aa:0x302,_0x4c3d90:0x306,_0x5b6f3a:0x318,_0x3b5ce7:0x30f,_0x93a57b:0x321,_0x4371bb:0x304,_0x572507:0x457,_0x4798b5:0x452,_0x4d5328:0x31f,_0x10d2c5:0x2ff,_0x46f80c:0x2f2,_0x20fcb6:0x453,_0x3ffe0f:0x2f9,_0x3174da:0x2d0,_0x45d70a:0x32e,_0x181fa8:0x338,_0x4291bf:0x2f1,_0x2ca2f0:0x2f1,_0x15fe5b:0x2fd,_0x569606:0x459,_0x2fb65c:0x465,_0x4a215a:0x477,_0x2389ee:0x31c,_0x27f76d:0x30b},_0x478608={_0x3265b6:0x1a2};function _0x38547a(_0x12995f,_0x58b790,_0x54ee4f,_0x2eceb3){return _0x16b6(_0x58b790-_0x478608._0x3265b6,_0x54ee4f);}if(typeof _0x1a7cd9!==_0x38547a(_0x43554d._0x4ad9aa,_0x43554d._0x4c3d90,_0x43554d._0x5b6f3a,_0x43554d._0x3b5ce7)||_0x1a7cd9===null||Array['isArray'](_0x1a7cd9))return![];function _0x187ef8(_0x392cae,_0x22bf6c,_0x53cb3c,_0x4def9d){return _0x16b6(_0x4def9d-0x2f5,_0x53cb3c);}const _0x4d2270=_0x1a7cd9;return _0x4d2270[_0x38547a(0x303,_0x43554d._0x93a57b,0x336,_0x43554d._0x4371bb)]===_0x187ef8(_0x43554d._0x572507,_0x43554d._0x4798b5,0x448,0x45d)&&_0x4d2270[_0x38547a(_0x43554d._0x4d5328,_0x43554d._0x10d2c5,0x311,_0x43554d._0x46f80c)]?.[_0x187ef8(0x483,_0x43554d._0x20fcb6,0x473,0x474)]===_0x38547a(_0x43554d._0x3ffe0f,0x2f0,0x2fc,_0x43554d._0x3174da)&&typeof _0x4d2270['source'][_0x38547a(0x322,0x32d,0x31a,_0x43554d._0x45d70a)]===_0x38547a(0x330,0x31c,0x30e,_0x43554d._0x181fa8)&&typeof _0x4d2270[_0x38547a(_0x43554d._0x4291bf,0x2ff,_0x43554d._0x2ca2f0,_0x43554d._0x15fe5b)][_0x187ef8(0x45d,_0x43554d._0x569606,_0x43554d._0x2fb65c,_0x43554d._0x4a215a)]===_0x38547a(0x314,_0x43554d._0x2389ee,0x333,_0x43554d._0x27f76d);}function getToolResultText(_0x1b9e6e){const _0x3b40a2={_0x497a05:0x4ee,_0x4addf8:0x505,_0x7300a6:0x8e,_0x2ddb55:0x4d8,_0x535f7e:0x4e2,_0x8d9bf6:0x4c7,_0x5c61ba:0x81,_0x409a29:0x5c},_0x2adcca={_0x1439f3:0x529,_0x1de9ec:0x523,_0x5f669c:0x1bd,_0x5245b6:0x1e1,_0xeb331b:0x1ac},_0x436447={_0x581a56:0x312},_0x5b2f49={_0x32082a:0x1c6},_0x2f361f={_0x2394c2:0x36d};function _0xc42b24(_0xfcbc7,_0x25da62,_0x2913d2,_0x197423){return _0x16b6(_0x2913d2-_0x2f361f._0x2394c2,_0x197423);}function _0x882882(_0x287384,_0x5547f3,_0x2c3502,_0x455c92){return _0x16b6(_0x287384- -_0x5b2f49._0x32082a,_0x5547f3);}if(typeof _0x1b9e6e==='string')return _0x1b9e6e;const _0x438c9a=_0x1b9e6e['filter'](_0x4ad3d2=>{function _0x50fcec(_0x1b014a,_0x14856c,_0x2bbc75,_0x14221d){return _0x16b6(_0x14221d-0x3d0,_0x14856c);}function _0x9f416a(_0x1bd08e,_0x471444,_0x3fa693,_0x4cf12e){return _0x16b6(_0x3fa693- -_0x436447._0x581a56,_0x1bd08e);}return typeof _0x4ad3d2===_0x50fcec(_0x2adcca._0x1439f3,0x53a,_0x2adcca._0x1de9ec,0x534)&&_0x4ad3d2!==null&&_0x4ad3d2['type']===_0x9f416a(-_0x2adcca._0x5f669c,-_0x2adcca._0x5245b6,-0x1c0,-_0x2adcca._0xeb331b);})[_0xc42b24(0x508,0x4f8,_0x3b40a2._0x497a05,_0x3b40a2._0x4addf8)](_0xfb30ba=>_0xfb30ba[_0xc42b24(0x4d3,0x4d0,0x4bf,0x4cc)])['join']('\x0a\x0a')[_0x882882(-0x6d,-0x64,-0x74,-_0x3b40a2._0x7300a6)]();return _0x438c9a[_0xc42b24(_0x3b40a2._0x497a05,_0x3b40a2._0x2ddb55,_0x3b40a2._0x535f7e,_0x3b40a2._0x8d9bf6)]>0x0?_0x438c9a:_0x882882(-0x68,-0x4e,-_0x3b40a2._0x5c61ba,-_0x3b40a2._0x409a29);}function getToolResultImages(_0x2df172){const _0x2aff02={_0x5b9a2c:0x443,_0x24fd1a:0x44d,_0x2c4835:0x445,_0x140a4b:0x44b},_0x518f34={_0x1ce103:0x2dd},_0x54580b={_0x30cd2f:0x3c0};function _0x40322c(_0x387a9a,_0x4e9f25,_0x1ce059,_0x6339bf){return _0x16b6(_0x4e9f25- -_0x54580b._0x30cd2f,_0x1ce059);}function _0x403f3e(_0x132929,_0x377eec,_0x3a647b,_0x49d5db){return _0x16b6(_0x3a647b-_0x518f34._0x1ce103,_0x49d5db);}return Array[_0x403f3e(0x426,0x446,_0x2aff02._0x5b9a2c,_0x2aff02._0x24fd1a)](_0x2df172)?_0x2df172[_0x403f3e(_0x2aff02._0x2c4835,0x448,_0x2aff02._0x140a4b,0x42e)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x5d1f10){const _0x45ed8a={_0x5ab26e:0x3ab,_0x41d778:0x390,_0x4b35a0:0x209,_0x1ac5e5:0x225},_0xb1d64={_0x3588da:0x248},_0x5c69fc={_0x6d1978:0x35d};function _0x1c8f79(_0x266c24,_0x3eb5b4,_0x8643ed,_0x3bc0ae){return _0x16b6(_0x8643ed- -_0x5c69fc._0x6d1978,_0x266c24);}function _0xb16ebb(_0x473a4c,_0x46e07a,_0x1e7114,_0x262bca){return _0x16b6(_0x473a4c-_0xb1d64._0x3588da,_0x262bca);}return _0x5d1f10[_0xb16ebb(0x39d,0x3b3,0x382,_0x45ed8a._0x5ab26e)]?.[_0xb16ebb(0x394,0x39a,0x38d,_0x45ed8a._0x41d778)]??_0x1c8f79(-_0x45ed8a._0x4b35a0,-_0x45ed8a._0x1ac5e5,-0x205,-0x1ff);}function createOpenAiResponsesReasoning(_0x31a51f){const _0x51487e={_0x4f788d:0x181,_0x709bc8:0x17e,_0x46902b:0x16e,_0x507349:0x2,_0x5f50ff:0x10,_0x28ee49:0x182,_0x2e3b3f:0x187,_0x5cb0e5:0x1a,_0x19e862:0x13,_0x52b65e:0x1f,_0x4249bc:0x5,_0x46db8b:0x16,_0x459440:0xe,_0x337c08:0x2e,_0x8fc87f:0x20,_0x4002bb:0xd,_0x1d458b:0x5},_0x3d6a94={_0x86c9a6:0x19};function _0x35a452(_0x1ea064,_0x197972,_0x3f34aa,_0x241841){return _0x16b6(_0x3f34aa- -0x174,_0x1ea064);}const _0x53f54e=resolveOpenAiReasoningConfig(_0x31a51f[_0x53bfda(0x16e,_0x51487e._0x4f788d,_0x51487e._0x709bc8,_0x51487e._0x46902b)]);function _0x53bfda(_0x36d3e4,_0x46aea7,_0x1bc4e4,_0x5716cc){return _0x16b6(_0x36d3e4-_0x3d6a94._0x86c9a6,_0x46aea7);}if(!_0x53f54e)return{};const _0x3c786e={},_0x53190e=_0x31a51f['reasoning']?.[_0x35a452(-_0x51487e._0x507349,0x30,0x10,-_0x51487e._0x5f50ff)]!==void 0x0,_0x4503e0=(!_0x53190e&&'summary'in _0x53f54e?_0x53f54e[_0x53bfda(0x19f,0x199,_0x51487e._0x28ee49,_0x51487e._0x2e3b3f)]:void 0x0)??(resolveReasoningVisibility(_0x31a51f)==='user-visible'?'auto':void 0x0);return _0x53f54e[_0x35a452(-_0x51487e._0x5cb0e5,-_0x51487e._0x19e862,-0x3,-_0x51487e._0x52b65e)]&&(_0x3c786e['effort']=_0x53f54e[_0x35a452(-_0x51487e._0x4249bc,_0x51487e._0x46db8b,-0x3,-_0x51487e._0x459440)]),_0x4503e0&&(_0x3c786e[_0x35a452(_0x51487e._0x337c08,_0x51487e._0x8fc87f,0x12,0xe)]=_0x4503e0),{...!_0x53190e&&_0x35a452(-0x13,0x13,0xa,-_0x51487e._0x4002bb)in _0x53f54e&&_0x53f54e[_0x35a452(-0x9,-0x3,0xa,0x12)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x35a452(-0x15,0x1f,0xc,-_0x51487e._0x1d458b)](_0x3c786e)[_0x35a452(-0x1f,-0x1c,0x1,-0x1e)]>0x0?{'reasoning':_0x3c786e}:{}};}function _0xc248(){const _0x5733ff=['DMLZAwjPBgL0Eq','Dg9VBhm','yMfZzty0','mtK5mtq2v3Dltfvt','ng5Pzfr3Ba','Bwf4vg9Rzw5Z','Dgv4Da','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','y29UDgvUDa','CMvHC29UAw5N','mtbgC2PIsxm','C3rHDhvZ','DxnLCI12AxnPyMXL','DhjPBq','Aw5WDxrFDgv4Da','zNvUy3rPB24','o2jHC2u2ncW','C291CMnL','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','mJu3nJeYugLmBe16','mtu5ndCZme1yvfj5wq','BMfTzq','mtG4mJqWndD6AMPuDMm','nte3otC5tNj0qunu','B2jQzwn0','mZq5otm3mur6zgnQDq','AxnbCNjHEq','mJiWmJu1mgXIELHbrG','Aw1Hz2u','Aw5WDxrFAw1Hz2u','Aw5WDxrFC2nOzw1H','C3rYDwn0DxjLzf9VDxrWDxq','BwvZC2fNzxm','ChvZAa','zMLSDgvY','ChjVDMLKzxjtDgf0zq','Dg9VBf91C2u','zwzMB3j0','Aw5WDxq','Dg9VBf91C2vFAwq','zNvUy3rPB25Fy2fSBf9VDxrWDxq','BgvUz3rO','DxnLCG','zNvUy3rPB25Fy2fSBa','mtzJt3DVwve','C2nOzw1H','C3rYAw5N','mtjZzu1vq1O','yxnZAxn0yw50','BwvZC2fNzq','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','DhLWzq','A2v5CW','BwfW','zgf0yq','B3v0Chv0rM9YBwf0','y29KzxG','ANnVBL9Zy2HLBwe','C3vTBwfYEq','Dg9VBf9Yzxn1Bhq','zgf0ytO','C3LZDgvT','Bw9KzwW','BwvKAwfFDhLWzq','CM9Szq'];_0xc248=function(){return _0x5733ff;};return _0xc248();}function pushAssistantProviderState(_0xaa43b7,_0x32adac,_0x46b779){const _0x3bea95={_0x29ea1a:0x330,_0xf9e381:0x307,_0x1e1036:0x4,_0x1e22c7:0xd,_0x50be15:0x10,_0x4272e9:0x1d,_0x1b2476:0x27,_0x4a3274:0x12,_0x464c62:0x312,_0x705fb8:0x339};if(_0x32adac['role']!==_0xbb169f(_0x3bea95._0x29ea1a,0x31f,_0x3bea95._0xf9e381,0x329))return![];if(!isProviderStateCompatible(_0x32adac,_0x46b779))return![];const _0x2c532b=_0x32adac[_0xbb169f(0x2f8,0x312,0x2f2,0x323)]?.[_0x222387(-0x4,-_0x3bea95._0x1e1036,-_0x3bea95._0x1e22c7,-_0x3bea95._0x50be15)]??[];function _0xbb169f(_0x2de363,_0x108030,_0x249884,_0x2b6d48){return _0x16b6(_0x108030-0x1a3,_0x2b6d48);}function _0x222387(_0x1b54ca,_0x5cd7a5,_0x2e7fdd,_0x8fd325){return _0x16b6(_0x1b54ca- -0x157,_0x5cd7a5);}if(_0x2c532b['length']===0x0)return![];for(const _0x19fdee of _0x2c532b){if(isResponseInputObject(_0x19fdee)){const _0xf84b63=structuredClone(_0x19fdee);delete _0xf84b63[_0x222387(0x0,_0x3bea95._0x4272e9,0x15,-0x18)],_0xf84b63[_0x222387(0x28,_0x3bea95._0x1b2476,0x32,_0x3bea95._0x4a3274)]===_0xbb169f(0x2e3,0x2f8,_0x3bea95._0x464c62,0x301)&&!Array['isArray'](_0xf84b63[_0x222387(0x2f,0x31,0x1c,0x1f)])&&(_0xf84b63[_0xbb169f(0x316,0x329,0x319,_0x3bea95._0x705fb8)]=[]),_0xaa43b7['push'](_0xf84b63);}}return!![];}function toOpenAiResponsesRequest(_0x3ef8a9){const _0x294721={_0x4d863b:0x461,_0x34e8cd:0x44e,_0x27afa1:0x47c,_0x1c15be:0x466,_0x42dbef:0x447,_0x98447e:0x439,_0x1cd3d6:0x434,_0x45988e:0x432,_0x2c715b:0x3b,_0x416785:0x55,_0x59a901:0x42c,_0x209645:0x44b,_0x33eb1b:0x19,_0x411de4:0x7,_0x534509:0x8,_0x26de68:0x11,_0x33ccb4:0x25,_0x4c601d:0x21,_0x2622c6:0x460,_0x19c1a4:0x2c,_0x2061f9:0x4d,_0x2b17bd:0x40,_0x5c11e8:0x28,_0x561010:0x27,_0x449c56:0x2f,_0x42f13f:0x18,_0x567c14:0x48d,_0x25d2b2:0x454,_0x2a978a:0x472,_0x8a75f5:0x1b,_0x40f8fd:0x1c,_0x1f137f:0x37,_0x5c05fa:0x473,_0x27de0a:0x469,_0x516ca7:0x44b,_0x3719d8:0xa,_0x2896c5:0x3,_0x160c0d:0x466,_0x5b1b8b:0x449,_0x1985b9:0x471,_0x56309b:0x465,_0x548a2b:0x458,_0x101dc3:0x45d,_0x122554:0x448,_0x40b56f:0x45d,_0x47cae6:0x459,_0x3b51b1:0x451,_0x58a4b9:0x466,_0x541d58:0x46,_0x12904d:0x5c,_0x3721a1:0x60,_0x5e342d:0x458,_0x23018a:0x452,_0x1f8af9:0x454,_0x2da136:0x457,_0x2a50a0:0x45b,_0x121b74:0x45e,_0x4dcb8a:0x13,_0x207331:0x19,_0x2f8d07:0x22,_0x32086c:0x8,_0x3d615f:0x46a,_0x18e794:0x40,_0x5e779c:0x2e,_0x25c85d:0x53,_0x193b47:0x23,_0xe464c1:0x43b,_0x377c0d:0x45a,_0x3cac8d:0x442,_0x1cde28:0x462,_0x2a0e2d:0x471,_0x3043ee:0x46b,_0x261fdb:0x470,_0x46400f:0x10,_0x2670e2:0x7,_0x335597:0x444,_0x2b35d0:0x440,_0x109a8e:0x47,_0xd56b1d:0x5b,_0x437c1a:0x45c,_0x28ff87:0x485,_0x39f9f1:0x20,_0x5784ec:0x1d,_0x1c3902:0x464,_0x3c8466:0x452,_0x30c354:0x45b,_0x405004:0x5f,_0x4df75e:0x59,_0x175ba0:0x38,_0x4430d3:0x34,_0x1477d0:0x1e},_0x12695f={_0x3c4267:0x32,_0x1df6a3:0x1f,_0x15c5b5:0x11,_0x435d5f:0x22,_0x8a51f7:0x2c,_0x34febf:0x3,_0x2a067e:0xb5,_0xc15532:0xa1},_0x305796={_0x996001:0x1dd,_0x3a2d2f:0x4ff,_0x4c37cd:0x10f};function _0xeecfee(_0x49e717,_0x238f4a,_0x34c272,_0x1a6bc4){return _0x16b6(_0x34c272-0x2e7,_0x238f4a);}const _0x4fa4a2=[];function _0x475c35(_0x3a634b,_0x531415,_0x2f31c4,_0x284f27){return _0x16b6(_0x3a634b- -0x141,_0x531415);}for(const _0x4c2817 of _0x3ef8a9[_0xeecfee(_0x294721._0x4d863b,0x44c,0x453,_0x294721._0x34e8cd)]){if(pushAssistantProviderState(_0x4fa4a2,_0x4c2817,_0x3ef8a9))continue;const _0x5ea5cc=[];for(const _0x22f063 of normalizeContent(_0x4c2817['content'])){if(_0x22f063[_0xeecfee(_0x294721._0x27afa1,0x475,_0x294721._0x1c15be,0x474)]===_0xeecfee(_0x294721._0x42dbef,0x44b,_0x294721._0x98447e,0x438)){_0x5ea5cc['push'](_0x4c2817[_0xeecfee(_0x294721._0x1cd3d6,0x41a,_0x294721._0x45988e,0x42a)]===_0x475c35(_0x294721._0x2c715b,_0x294721._0x416785,0x1c,0x20)?{'type':'output_text','text':_0x22f063[_0xeecfee(0x44a,_0x294721._0x59a901,0x439,_0x294721._0x209645)]}:{'type':_0x475c35(_0x294721._0x33eb1b,0x3,_0x294721._0x411de4,_0x294721._0x534509),'text':_0x22f063[_0x475c35(_0x294721._0x26de68,_0x294721._0x411de4,_0x294721._0x33ccb4,_0x294721._0x4c601d)]});continue;}if(_0x22f063['type']===_0xeecfee(0x441,0x450,0x44f,_0x294721._0x2622c6)){_0x5ea5cc[_0x475c35(_0x294721._0x19c1a4,_0x294721._0x2061f9,0x1b,_0x294721._0x2b17bd)]({'type':_0x475c35(_0x294721._0x5c11e8,_0x294721._0x561010,_0x294721._0x449c56,_0x294721._0x42f13f),'image_url':_0xeecfee(_0x294721._0x567c14,_0x294721._0x25d2b2,0x46f,0x475)+_0x22f063['source'][_0xeecfee(0x459,0x456,_0x294721._0x2a978a,0x45a)]+_0x475c35(_0x294721._0x8a75f5,-0x4,0x33,0x5)+_0x22f063[_0x475c35(_0x294721._0x40f8fd,0x11,0x19,_0x294721._0x1f137f)][_0xeecfee(0x486,_0x294721._0x5c05fa,_0x294721._0x27de0a,_0x294721._0x516ca7)]});continue;}pushUserContentMessage(_0x4fa4a2,_0x4c2817[_0x475c35(_0x294721._0x3719d8,-0x7,0x1,_0x294721._0x2896c5)],_0x5ea5cc['splice'](0x0));if(_0x22f063[_0xeecfee(0x475,_0x294721._0x34e8cd,_0x294721._0x160c0d,_0x294721._0x4d863b)]===_0xeecfee(0x445,0x43b,0x457,_0x294721._0x5b1b8b)){if(!hasSerializableToolUse(_0x22f063))continue;_0x4fa4a2[_0xeecfee(0x467,_0x294721._0x1985b9,_0x294721._0x25d2b2,_0x294721._0x56309b)]({'type':_0xeecfee(_0x294721._0x548a2b,_0x294721._0x56309b,0x45e,0x452),'call_id':_0x22f063['id'],'name':_0x22f063[_0xeecfee(_0x294721._0x101dc3,0x446,_0x294721._0x122554,0x44e)],'arguments':JSON['stringify'](_0x22f063[_0xeecfee(0x443,_0x294721._0x40b56f,_0x294721._0x47cae6,0x46f)]??{})});continue;}if(_0x22f063[_0xeecfee(_0x294721._0x3b51b1,_0x294721._0x101dc3,_0x294721._0x58a4b9,0x44a)]===_0x475c35(_0x294721._0x541d58,_0x294721._0x12904d,_0x294721._0x3721a1,0x2d)){if(!hasSerializableToolResult(_0x22f063))continue;const _0x24678d=getToolResultText(_0x22f063['content']);_0x4fa4a2[_0xeecfee(_0x294721._0x5e342d,_0x294721._0x23018a,_0x294721._0x1f8af9,0x46e)]({'type':_0xeecfee(_0x294721._0x2da136,0x444,_0x294721._0x2a50a0,_0x294721._0x121b74),'call_id':_0x22f063['tool_use_id'],'output':_0x24678d});const _0x3ecece=getToolResultImages(_0x22f063[_0x475c35(_0x294721._0x4dcb8a,_0x294721._0x207331,_0x294721._0x2f8d07,_0x294721._0x32086c)]);_0x3ecece[_0xeecfee(0x476,_0x294721._0x3d615f,0x45c,_0x294721._0x2da136)]>0x0&&_0x4fa4a2[_0x475c35(0x2c,_0x294721._0x18e794,0x30,_0x294721._0x5e779c)]({'type':_0x475c35(0x3c,_0x294721._0x25c85d,0x37,0x28),'role':_0xeecfee(_0x294721._0x27de0a,0x456,_0x294721._0x101dc3,0x445),'content':[{'type':_0x475c35(_0x294721._0x33eb1b,_0x294721._0x193b47,0x10,-0x5),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x22f063[_0xeecfee(_0x294721._0xe464c1,0x470,_0x294721._0x377c0d,_0x294721._0x2622c6)]+'.'},..._0x3ecece['map'](_0x4adb2a=>({'type':_0xeecfee(0x44f,0x450,0x450,0x44a),'image_url':'data:'+_0x4adb2a[_0xeecfee(0x45c,0x429,0x444,0x433)][_0x475c35(0x4a,0x52,0x3f,0x32)]+';base64,'+_0x4adb2a[_0xeecfee(0x453,0x448,0x444,0x425)][_0xeecfee(0x44b,0x469,0x469,0x484)]}))]});}}pushUserContentMessage(_0x4fa4a2,_0x4c2817[_0xeecfee(0x448,0x413,_0x294721._0x45988e,_0x294721._0x3cac8d)],_0x5ea5cc);}return{...createOpenAiResponsesReasoning(_0x3ef8a9),'model':_0x3ef8a9[_0xeecfee(0x47c,_0x294721._0x1cde28,_0x294721._0x2a0e2d,0x453)],'instructions':systemToInstructions(_0x3ef8a9[_0xeecfee(_0x294721._0x3043ee,0x484,_0x294721._0x261fdb,0x47e)]),'input':_0x4fa4a2,..._0x3ef8a9['maxTokens']!==void 0x0?{'max_output_tokens':_0x3ef8a9[_0x475c35(_0x294721._0x46400f,0x20,-0x6,_0x294721._0x2670e2)]}:{},'tools':_0x3ef8a9[_0xeecfee(0x443,_0x294721._0x335597,0x434,_0x294721._0x2b35d0)][_0x475c35(0x40,_0x294721._0x109a8e,_0x294721._0x561010,_0x294721._0xd56b1d)](_0x3b424d=>{const _0xa7b84d={_0x5273e2:0x39,_0x3329bb:0x173};function _0x449250(_0x2f5ac2,_0x4920dc,_0x44ac36,_0x2975b3){return _0x475c35(_0x4920dc- -_0xa7b84d._0x5273e2,_0x44ac36,_0x44ac36-0x1,_0x2975b3-_0xa7b84d._0x3329bb);}function _0xf574ae(_0x4a53e7,_0x1eb4aa,_0x46745b,_0x567a3f){return _0xeecfee(_0x4a53e7-_0x305796._0x996001,_0x4a53e7,_0x567a3f- -_0x305796._0x3a2d2f,_0x567a3f-_0x305796._0x4c37cd);}return{'type':_0x449250(-_0x12695f._0x3c4267,-_0x12695f._0x1df6a3,-_0x12695f._0x15c5b5,-_0x12695f._0x435d5f),'name':_0x3b424d[_0x449250(-_0x12695f._0x8a51f7,-0x19,_0x12695f._0x34febf,-0x2f)],'description':_0x3b424d['description'],'parameters':_0x3b424d[_0xf574ae(-_0x12695f._0x2a067e,-_0x12695f._0xc15532,-0xcb,-0xae)]};}),..._0x3ef8a9['outputFormat']?{'text':{'format':{'type':_0xeecfee(_0x294721._0x47cae6,_0x294721._0x437c1a,0x46c,_0x294721._0x28ff87),'name':_0x3ef8a9[_0x475c35(0x42,0x61,0x51,0x25)][_0x475c35(_0x294721._0x39f9f1,_0x294721._0x5784ec,0x13,_0x294721._0x4dcb8a)]??_0xeecfee(0x435,_0x294721._0x1c3902,_0x294721._0x3c8466,_0x294721._0x30c354),'schema':_0x3ef8a9[_0x475c35(0x42,_0x294721._0x405004,_0x294721._0x4c601d,_0x294721._0x4df75e)][_0x475c35(_0x294721._0x175ba0,_0x294721._0x4430d3,_0x294721._0x1477d0,0x3f)],'strict':_0x3ef8a9['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};
1
+ function _0x1587(_0x5faff5,_0x62622a){_0x5faff5=_0x5faff5-0xdf;const _0x38d658=_0x38d6();let _0x15871e=_0x38d658[_0x5faff5];if(_0x1587['UsXgUd']===undefined){var _0xa9b8f3=function(_0xaa6e62){const _0x5c7391='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c38aa='',_0x4965f9='';for(let _0x3032e5=0x0,_0x52ef1a,_0x2008cd,_0x1480ca=0x0;_0x2008cd=_0xaa6e62['charAt'](_0x1480ca++);~_0x2008cd&&(_0x52ef1a=_0x3032e5%0x4?_0x52ef1a*0x40+_0x2008cd:_0x2008cd,_0x3032e5++%0x4)?_0x2c38aa+=String['fromCharCode'](0xff&_0x52ef1a>>(-0x2*_0x3032e5&0x6)):0x0){_0x2008cd=_0x5c7391['indexOf'](_0x2008cd);}for(let _0x49f08d=0x0,_0x65bf2b=_0x2c38aa['length'];_0x49f08d<_0x65bf2b;_0x49f08d++){_0x4965f9+='%'+('00'+_0x2c38aa['charCodeAt'](_0x49f08d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4965f9);};_0x1587['yohZTG']=_0xa9b8f3,_0x1587['agtybV']={},_0x1587['UsXgUd']=!![];}const _0x2bc387=_0x38d658[0x0],_0x2b4ace=_0x5faff5+_0x2bc387,_0x3a5d5d=_0x1587['agtybV'][_0x2b4ace];return!_0x3a5d5d?(_0x15871e=_0x1587['yohZTG'](_0x15871e),_0x1587['agtybV'][_0x2b4ace]=_0x15871e):_0x15871e=_0x3a5d5d,_0x15871e;}(function(_0x2f950a,_0x11a356){const _0x31a539={_0x4fb5c0:0x13a,_0x4d1d3d:0x149,_0x41a073:0x12b,_0x1550a6:0x137,_0x55ad02:0x117,_0x46e4ae:0x18a,_0x5ba8e9:0x17a,_0x567916:0x178,_0x3a99fc:0x12f,_0x335eb7:0x132,_0x59fcea:0x139,_0x59bb29:0x1a6,_0x2d7ef1:0x145,_0x1db1eb:0x197,_0x10c58e:0x193,_0x15eb05:0x17e,_0x37191b:0x12c,_0x4be3dc:0x120,_0x37574b:0x13d,_0x43acf5:0x186,_0x2fa40f:0x181,_0x5ec7f6:0x17c,_0x1f5c2a:0x173,_0x4d7174:0x141,_0x4c2586:0x115},_0x5d6e86={_0x1d05ba:0x27e},_0x4aea9e={_0x293426:0x22a};function _0x7cdd78(_0x21f6e8,_0x48accf,_0x514eb6,_0x46db35){return _0x1587(_0x46db35- -_0x4aea9e._0x293426,_0x21f6e8);}const _0xe580ac=_0x2f950a();function _0x4e1d27(_0x2976ab,_0x3733cc,_0xc9bb73,_0x31febd){return _0x1587(_0x31febd- -_0x5d6e86._0x1d05ba,_0x2976ab);}while(!![]){try{const _0x15f211=parseInt(_0x7cdd78(-0x134,-0x15a,-_0x31a539._0x4fb5c0,-_0x31a539._0x4d1d3d))/0x1*(parseInt(_0x7cdd78(-_0x31a539._0x41a073,-_0x31a539._0x1550a6,-0x11a,-_0x31a539._0x55ad02))/0x2)+parseInt(_0x4e1d27(-_0x31a539._0x46e4ae,-0x169,-_0x31a539._0x5ba8e9,-_0x31a539._0x567916))/0x3*(-parseInt(_0x7cdd78(-_0x31a539._0x3a99fc,-_0x31a539._0x335eb7,-0x130,-_0x31a539._0x59fcea))/0x4)+parseInt(_0x4e1d27(-0x18b,-_0x31a539._0x59bb29,-0x17f,-0x18a))/0x5*(parseInt(_0x7cdd78(-0x14f,-_0x31a539._0x2d7ef1,-0x139,-0x13f))/0x6)+parseInt(_0x4e1d27(-_0x31a539._0x1db1eb,-_0x31a539._0x10c58e,-0x179,-_0x31a539._0x15eb05))/0x7+parseInt(_0x7cdd78(-0x108,-_0x31a539._0x37191b,-0x13c,-_0x31a539._0x4be3dc))/0x8*(-parseInt(_0x7cdd78(-0x157,-0x14e,-0x127,-_0x31a539._0x37574b))/0x9)+parseInt(_0x4e1d27(-0x148,-0x165,-0x17b,-0x162))/0xa*(parseInt(_0x4e1d27(-_0x31a539._0x43acf5,-0x17a,-0x16e,-_0x31a539._0x2fa40f))/0xb)+parseInt(_0x4e1d27(-0x187,-_0x31a539._0x5ec7f6,-_0x31a539._0x1f5c2a,-0x185))/0xc*(-parseInt(_0x7cdd78(-_0x31a539._0x4d7174,-0x11c,-_0x31a539._0x4c2586,-0x122))/0xd);if(_0x15f211===_0x11a356)break;else _0xe580ac['push'](_0xe580ac['shift']());}catch(_0x1f0b6f){_0xe580ac['push'](_0xe580ac['shift']());}}}(_0x38d6,0x64e2a));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x2c38aa){const _0x9098c4={_0x1e3c7a:0x187,_0x52c7dc:0x197,_0x5c7f93:0x1a0,_0x40ec0f:0x82,_0x480aac:0x9b,_0x3e84fd:0x83,_0x259334:0xb7,_0x124655:0x86},_0x482701={_0x5930c9:0x6d},_0x47ff0e={_0xf16b8:0x297};function _0x33b019(_0x3b4a66,_0x3e0e76,_0x17db31,_0x9d9d3e){return _0x1587(_0x3e0e76- -_0x47ff0e._0xf16b8,_0x9d9d3e);}function _0xece78c(_0x2477ee,_0x2e131f,_0x17e784,_0x2bef01){return _0x1587(_0x2477ee- -_0x482701._0x5930c9,_0x2bef01);}return normalizeContent(_0x2c38aa)[_0x33b019(-_0x9098c4._0x1e3c7a,-0x199,-_0x9098c4._0x52c7dc,-_0x9098c4._0x5c7f93)](_0x4965f9=>_0x4965f9[_0xece78c(0x85,0x96,0x9a,0x69)]===_0x33b019(-0x19c,-0x17c,-0x191,-0x189))[_0xece78c(_0x9098c4._0x40ec0f,_0x9098c4._0x480aac,_0x9098c4._0x3e84fd,0x79)](_0x3032e5=>_0x3032e5[_0xece78c(0xae,0x90,0x8e,0xd0)])[_0xece78c(0x9a,_0x9098c4._0x259334,0x89,_0x9098c4._0x124655)]('\x0a\x0a');}function pushUserContentMessage(_0x52ef1a,_0x2008cd,_0x1480ca){const _0x1725f8={_0x138513:0x25c,_0x4ab6e7:0x238,_0x4ff16e:0xb,_0x109824:0x1d,_0x5c2c8f:0x26,_0x563d47:0x262,_0x3c68b4:0x25f,_0x3cf344:0x24a};function _0x570e87(_0x43c758,_0x46a1a5,_0x563f47,_0x2642f3){return _0x1587(_0x43c758- -0xde,_0x46a1a5);}function _0xca2fe3(_0x5b016c,_0x20590d,_0x1a9021,_0x41bafd){return _0x1587(_0x41bafd- -0x345,_0x5b016c);}if(_0x1480ca[_0xca2fe3(-0x23c,-_0x1725f8._0x138513,-_0x1725f8._0x4ab6e7,-0x23a)]===0x0)return;_0x52ef1a[_0x570e87(0x9,_0x1725f8._0x4ff16e,_0x1725f8._0x109824,_0x1725f8._0x5c2c8f)]({'type':_0xca2fe3(-_0x1725f8._0x563d47,-0x22e,-_0x1725f8._0x3c68b4,-_0x1725f8._0x3cf344),'role':_0x2008cd,'content':_0x1480ca});}function hasSerializableToolUse(_0x49f08d){const _0x5f07a6={_0x3d9061:0x3d2,_0x46a9da:0x3c3,_0x2b8bbc:0x3d3,_0x48625a:0x39d,_0x5e52ab:0x3af,_0x8da06c:0x3c7,_0x5ab7c6:0x3e7,_0x31ad75:0x3cc,_0x14bc3a:0x3d9},_0x5ebb4d={_0x1ec411:0x2ce};function _0x1946fc(_0x3602f9,_0x446785,_0x4f0de6,_0x109607){return _0x1587(_0x4f0de6-0x2b8,_0x3602f9);}function _0x553971(_0x2c1fb4,_0x2d852f,_0x44d191,_0x46a3d6){return _0x1587(_0x2c1fb4-_0x5ebb4d._0x1ec411,_0x46a3d6);}return _0x49f08d['id']['trim']()[_0x1946fc(0x3b2,_0x5f07a6._0x3d9061,_0x5f07a6._0x46a9da,_0x5f07a6._0x2b8bbc)]>0x0&&_0x49f08d[_0x1946fc(_0x5f07a6._0x48625a,_0x5f07a6._0x5e52ab,0x3b2,_0x5f07a6._0x8da06c)][_0x1946fc(0x3ed,_0x5f07a6._0x5ab7c6,0x3d5,_0x5f07a6._0x31ad75)]()[_0x553971(_0x5f07a6._0x14bc3a,0x3da,0x3d3,0x3e2)]>0x0;}function hasSerializableToolResult(_0x65bf2b){const _0x472c54={_0x3bfeb1:0x126,_0x2e0392:0x10b,_0xfbad8b:0x12a,_0x4b8929:0x13f};function _0x14fb66(_0x1f257d,_0x4a93ac,_0x2be2c3,_0x33476d){return _0x1587(_0x2be2c3-0x265,_0x33476d);}function _0x20e7f6(_0x5922ff,_0x5c8dc9,_0x1801b5,_0x42f6d6){return _0x1587(_0x5c8dc9-0x1f,_0x1801b5);}return _0x65bf2b[_0x20e7f6(_0x472c54._0x3bfeb1,_0x472c54._0x2e0392,0x104,0xf4)]['trim']()[_0x20e7f6(0x11e,_0x472c54._0xfbad8b,_0x472c54._0x4b8929,0x109)]>0x0;}function isResponseInputObject(_0x570c18){const _0x40f82e={_0x266bf3:0x302,_0x2ea69e:0x31a,_0x144a28:0x330,_0xcede8a:0x33f,_0x5f57e7:0x21a},_0x329799={_0x25c24f:0x301},_0x5abb56={_0x4c9f44:0x23e};if(typeof _0x570c18!==_0x2ec8d4(0x338,0x33d,0x321,_0x40f82e._0x266bf3)||_0x570c18===null||Array[_0x2ec8d4(0x305,0x32a,0x320,_0x40f82e._0x2ea69e)](_0x570c18))return![];function _0x2ec8d4(_0x5f5768,_0x15c342,_0x3131a3,_0x4b8a54){return _0x1587(_0x3131a3-_0x5abb56._0x4c9f44,_0x15c342);}const _0x4fc218=_0x570c18;function _0x5b9dae(_0x43fed0,_0x3c6557,_0x601273,_0xbde2d6){return _0x1587(_0x601273- -_0x329799._0x25c24f,_0x43fed0);}return typeof _0x4fc218[_0x2ec8d4(0x31d,0x33b,_0x40f82e._0x144a28,_0x40f82e._0xcede8a)]===_0x5b9dae(-0x21b,-_0x40f82e._0x5f57e7,-0x211,-0x20d);}function isImageToolResultBlock(_0x485da2){const _0x18c7f3={_0x20cd07:0x2c6,_0x330638:0x2e1,_0x29094e:0x2cd,_0x21af93:0x2a3,_0xacda1e:0x287,_0x6a52ea:0x2d3,_0x5a54b9:0x2e9,_0x45b1d0:0x2d1,_0x39c24f:0x2b7,_0xa76a63:0x2e3,_0x43e6d2:0x2bf,_0x2eb01b:0x2e6,_0x4d51a3:0x2b3,_0x58e911:0x2eb,_0x60d83:0x2db,_0x505734:0x2cc,_0x531ac2:0x2fc,_0x9c9428:0x2f6,_0x6dac48:0x2d3,_0x52ab5d:0x2ec,_0xc45d22:0x2b2},_0x1d271c={_0x4558d4:0x1c1},_0x2b98a7={_0x40a2c7:0x1e3};function _0x4491af(_0x34f3e8,_0x52798b,_0x3e77ad,_0x173c6a){return _0x1587(_0x34f3e8-_0x2b98a7._0x40a2c7,_0x173c6a);}function _0x15b2f0(_0x4e74e0,_0x2f0b8b,_0x1c00a6,_0x1ed158){return _0x1587(_0x2f0b8b-_0x1d271c._0x4558d4,_0x1ed158);}if(typeof _0x485da2!==_0x4491af(_0x18c7f3._0x20cd07,_0x18c7f3._0x330638,_0x18c7f3._0x29094e,0x2ce)||_0x485da2===null||Array[_0x15b2f0(0x286,_0x18c7f3._0x21af93,_0x18c7f3._0xacda1e,0x2bf)](_0x485da2))return![];const _0x1b42d9=_0x485da2;return _0x1b42d9[_0x4491af(0x2d5,_0x18c7f3._0x6a52ea,_0x18c7f3._0x5a54b9,_0x18c7f3._0x45b1d0)]===_0x15b2f0(_0x18c7f3._0x39c24f,0x2c5,_0x18c7f3._0xa76a63,0x2ce)&&_0x1b42d9[_0x15b2f0(_0x18c7f3._0x43e6d2,_0x18c7f3._0x29094e,0x2db,_0x18c7f3._0x2eb01b)]?.[_0x15b2f0(0x2a3,_0x18c7f3._0x4d51a3,0x29e,0x2bd)]==='base64'&&typeof _0x1b42d9[_0x15b2f0(_0x18c7f3._0x58e911,_0x18c7f3._0x29094e,_0x18c7f3._0x60d83,_0x18c7f3._0x505734)][_0x4491af(_0x18c7f3._0x531ac2,_0x18c7f3._0x9c9428,0x313,0x2df)]===_0x4491af(_0x18c7f3._0x6dac48,_0x18c7f3._0x52ab5d,_0x18c7f3._0xc45d22,0x2b3)&&typeof _0x1b42d9['source'][_0x4491af(0x2d9,0x2f8,0x2e1,0x2d1)]===_0x15b2f0(0x2a9,0x2b1,0x2b4,0x2a2);}function getToolResultText(_0x46c5d7){const _0xac3670={_0x3b8505:0x438,_0x50b439:0x432,_0x500914:0x459,_0x2661af:0x73,_0x4b8b8a:0x4b,_0x516210:0x6e,_0x32fc0a:0x468,_0x5badc5:0x463,_0x27ffc8:0x43b,_0x2353db:0x45c,_0x5e6242:0x456},_0x569a56={_0x173095:0x9d},_0x5d52aa={_0x38aa55:0x1e5,_0xd8b584:0x20d,_0x12c293:0x1f5,_0x45e8fe:0x1eb,_0x4270ea:0x21a,_0x5dfe3d:0x1ff},_0x33813a={_0x25b07b:0x182,_0x5df4d2:0xe9},_0x206017={_0x35c4a7:0x348};if(typeof _0x46c5d7===_0x457069(0x41d,_0xac3670._0x3b8505,0x455,0x44a))return _0x46c5d7;function _0x457069(_0x118be6,_0x2d365b,_0x5d578a,_0x58b8d7){return _0x1587(_0x2d365b-_0x206017._0x35c4a7,_0x5d578a);}const _0x491b4f=_0x46c5d7[_0x457069(_0xac3670._0x50b439,0x446,0x441,_0xac3670._0x500914)](_0x155032=>{function _0x3a339b(_0x34720b,_0xb0b13f,_0x18c3ff,_0x12f720){return _0x457069(_0x34720b-0xfd,_0x18c3ff- -0x620,_0x34720b,_0x12f720-0x30);}function _0x2c1472(_0x30d5aa,_0x126ef7,_0x1ac8d8,_0xef9b71){return _0x339f64(_0x30d5aa-_0x33813a._0x25b07b,_0xef9b71,_0x126ef7-0x1aa,_0xef9b71-_0x33813a._0x5df4d2);}return typeof _0x155032===_0x3a339b(-_0x5d52aa._0x38aa55,-_0x5d52aa._0xd8b584,-_0x5d52aa._0x12c293,-_0x5d52aa._0x45e8fe)&&_0x155032!==null&&_0x155032[_0x2c1472(_0x5d52aa._0x4270ea,_0x5d52aa._0x5dfe3d,0x210,0x1ea)]==='text';})[_0x339f64(0x38,_0xac3670._0x2661af,0x52,_0xac3670._0x4b8b8a)](_0x2d838d=>_0x2d838d[_0x339f64(0x6f,0x98,0x7e,0x8d)])[_0x339f64(0x7e,_0xac3670._0x516210,0x6a,0x51)]('\x0a\x0a')[_0x339f64(0x77,0x88,0x80,0x75)]();function _0x339f64(_0x4a12d6,_0x202b4d,_0x4d1090,_0x43b5c0){return _0x1587(_0x4d1090- -_0x569a56._0x173095,_0x202b4d);}return _0x491b4f[_0x457069(_0xac3670._0x32fc0a,0x453,0x448,_0xac3670._0x5badc5)]>0x0?_0x491b4f:_0x457069(_0xac3670._0x27ffc8,_0xac3670._0x2353db,0x43c,_0xac3670._0x5e6242);}function getToolResultImages(_0x42bf2e){const _0x12ef8b={_0x1be61a:0x420};function _0x5ac429(_0x662a8c,_0x7dc145,_0x274819,_0x3cba2d){return _0x1587(_0x7dc145-0x337,_0x3cba2d);}return Array[_0x5ac429(0x40a,0x419,0x3fd,_0x12ef8b._0x1be61a)](_0x42bf2e)?_0x42bf2e['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x5b40b7){const _0x148022={_0x24ac48:0x470,_0x52eb77:0x45f,_0x41ca7d:0x456,_0x6722f2:0x3db},_0x27a327={_0x5a49ae:0x336},_0x2d5469={_0x5b009e:0x2fc};function _0x1cb532(_0x30bfa2,_0x1442fc,_0x49d126,_0x28218){return _0x1587(_0x49d126-_0x2d5469._0x5b009e,_0x1442fc);}function _0x59b29f(_0x1a8426,_0x38e4ea,_0x540bc7,_0x196477){return _0x1587(_0x38e4ea-_0x27a327._0x5a49ae,_0x540bc7);}return _0x5b40b7[_0x59b29f(_0x148022._0x24ac48,0x454,0x449,0x45c)]?.[_0x59b29f(_0x148022._0x52eb77,_0x148022._0x41ca7d,0x444,0x43c)]??_0x1cb532(0x3cb,0x3e2,_0x148022._0x6722f2,0x3cb);}function createOpenAiResponsesReasoning(_0x3057fb){const _0x57b870={_0x2c1ce8:0x0,_0x2f4748:0x247,_0x584e96:0x267,_0xe2179f:0x241,_0x19be01:0x34,_0x4573ab:0x2c,_0x1a513d:0x212,_0x4bdec6:0x201,_0x3f7225:0x220,_0x32ab3f:0x212,_0x1d0644:0x22a,_0x5b1fd2:0x232,_0x4a7b3d:0x49,_0x136e0e:0x35,_0x404cd1:0x1d,_0x4790b4:0x4,_0x2be30c:0xe,_0x459b20:0x270,_0x3218af:0x23c,_0x751c7b:0xf},_0x2a6045={_0x3fa014:0x141},_0x599d7b=resolveOpenAiReasoningConfig(_0x3057fb['reasoning']);function _0x368513(_0x29afae,_0xc653d3,_0x1ee358,_0x51136d){return _0x1587(_0x51136d-_0x2a6045._0x3fa014,_0xc653d3);}if(!_0x599d7b)return{};const _0x2ed41e={},_0x5dff01=_0x3057fb[_0x54f1c5(-0xe,-0x1a,_0x57b870._0x2c1ce8,0x22)]?.[_0x368513(_0x57b870._0x2f4748,_0x57b870._0x584e96,_0x57b870._0xe2179f,0x262)]!==void 0x0;function _0x54f1c5(_0x3d50da,_0x46a9d6,_0x2049c3,_0x50e60b){return _0x1587(_0x2049c3- -0x11e,_0x50e60b);}const _0x27d731=(!_0x5dff01&&_0x54f1c5(-0x22,-0x46,-_0x57b870._0x19be01,-_0x57b870._0x4573ab)in _0x599d7b?_0x599d7b['summary']:void 0x0)??(resolveReasoningVisibility(_0x3057fb)===_0x368513(0x223,_0x57b870._0x1a513d,_0x57b870._0x4bdec6,_0x57b870._0x3f7225)?'auto':void 0x0);return _0x599d7b[_0x368513(_0x57b870._0x32ab3f,_0x57b870._0x1d0644,_0x57b870._0x5b1fd2,_0x57b870._0x1d0644)]&&(_0x2ed41e[_0x54f1c5(-0x25,-_0x57b870._0x4a7b3d,-_0x57b870._0x136e0e,-_0x57b870._0x404cd1)]=_0x599d7b[_0x368513(0x23e,0x238,0x214,0x22a)]),_0x27d731&&(_0x2ed41e[_0x54f1c5(-0x28,-_0x57b870._0x136e0e,-0x34,-0x35)]=_0x27d731),{...!_0x5dff01&&_0x54f1c5(0xc,_0x57b870._0x4790b4,-0x8,_0x57b870._0x2be30c)in _0x599d7b&&_0x599d7b[_0x368513(0x23f,_0x57b870._0x459b20,_0x57b870._0x3218af,0x257)]===![]?{}:{'include':[_0x54f1c5(-0x3a,-_0x57b870._0x751c7b,-0x1f,-0x31)]},...Object[_0x54f1c5(0x20,-0x17,0x1,0xc)](_0x2ed41e)['length']>0x0?{'reasoning':_0x2ed41e}:{}};}function _0x38d6(){const _0x3ddf92=['mZa4nJmZDK1pzKXZ','AxnbCNjHEq','B2jQzwn0','Aw5WDxrFAw1Hz2u','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','y29UDgvUDa','ChvZAa','B3v0Chv0x3rLEhq','zwzMB3j0','C3vTBwfYEq','mJK3oty1nezAAMTUyG','Dg9VBf91C2vFAwq','mtm1Avjjvgrt','C3rYAwn0','BwfW','C3rYAw5N','ndK1nZjQEg5dzee','DhLWzq','Aw5WDxq','nxnbAfbSqW','Bwf4vg9Rzw5Z','zgf0yq','Dg9VBhm','zNvUy3rPB24','ote4nZC2nhrYB2zuBq','BMfTzq','BwvZC2fNzq','B3v0Chv0rM9YBwf0','odeYmdyXofDKz3zyrW','zMLSDgvY','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','mJeZmZeWm0vItKTvra','C3rHDhvZ','C3rYAw5NAwz5','C3rYDwn0DxjLzf9VDxrWDxq','Aw1Hz2u','C3LZDgvT','nKrUC3bhCW','AM9PBG','mtnZBuD4sNK','CM9Szq','mZqZnZyWEKHUrMjz','BgvUz3rO','C291CMnL','Aw5WDxrFDgv4Da','ANnVBL9Zy2HLBwe','o2jHC2u2ncW','Dg9VBf91C2u','C3bSAwnL','zgvZy3jPChrPB24','mM93qNHfqW','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','Bw9KzwW','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','BwvZC2fNzxm','yxnZAxn0yw50','BwvKAwfFDhLWzq','Dg9VBf9Yzxn1Bhq','Dgv4Da','mtbUAMzmteK','DhjPBq','CMvHC29UAw5N','A2v5CW','DMLZAwjPBgL0Eq','y29KzxG','DxnLCI12AxnPyMXL','B3bLBMfPuMvZCg9UC2vZt3v0Chv0'];_0x38d6=function(){return _0x3ddf92;};return _0x38d6();}function pushAssistantProviderState(_0x5864a7,_0x24c3da,_0x3ab48e){const _0x4c1f1d={_0x57c294:0x240,_0x29dd84:0x224,_0x1bd0d9:0x222,_0x47fbdf:0x238,_0x623695:0x21c,_0x36231e:0x30c,_0x221796:0x316,_0x35cfa6:0x21f,_0x6c7298:0x357,_0x1fe9d0:0x34f,_0x5155cb:0x343,_0x348302:0x366,_0x1e4746:0x36c,_0x382ccc:0x359,_0x60159e:0x37f,_0x254869:0x34c,_0x51c705:0x315,_0x104f2a:0x34d,_0x576175:0x326},_0x291e8f={_0x48d965:0x24e};function _0x19d806(_0x58396c,_0x262466,_0x36b64a,_0x4fba8e){return _0x1587(_0x262466-_0x291e8f._0x48d965,_0x4fba8e);}if(_0x24c3da[_0x53f269(-_0x4c1f1d._0x57c294,-0x248,-_0x4c1f1d._0x29dd84,-0x23f)]!==_0x53f269(-_0x4c1f1d._0x1bd0d9,-_0x4c1f1d._0x47fbdf,-_0x4c1f1d._0x623695,-0x230))return![];function _0x53f269(_0x169ee6,_0x9ec89e,_0x591b6f,_0x1ee487){return _0x1587(_0x1ee487- -0x348,_0x9ec89e);}if(!isProviderStateCompatible(_0x24c3da,_0x3ab48e))return![];const _0x4acfeb=_0x24c3da['providerState']?.[_0x19d806(_0x4c1f1d._0x36231e,0x32e,0x34c,_0x4c1f1d._0x221796)]??[];if(_0x4acfeb[_0x53f269(-0x21b,-_0x4c1f1d._0x35cfa6,-0x242,-0x23d)]===0x0)return![];for(const _0x2393fb of _0x4acfeb){if(isResponseInputObject(_0x2393fb)){const _0x599ecf=structuredClone(_0x2393fb);delete _0x599ecf[_0x19d806(_0x4c1f1d._0x6c7298,_0x4c1f1d._0x1fe9d0,_0x4c1f1d._0x5155cb,_0x4c1f1d._0x348302)],_0x599ecf['type']===_0x19d806(0x379,_0x4c1f1d._0x1e4746,_0x4c1f1d._0x382ccc,_0x4c1f1d._0x60159e)&&!Array[_0x19d806(0x31b,0x330,_0x4c1f1d._0x254869,_0x4c1f1d._0x51c705)](_0x599ecf['summary'])&&(_0x599ecf['summary']=[]),_0x5864a7[_0x19d806(_0x4c1f1d._0x104f2a,0x335,_0x4c1f1d._0x576175,0x318)](_0x599ecf);}}return!![];}function toOpenAiResponsesRequest(_0x1eb8f7){const _0x2a80c3={_0x457e7e:0x3a9,_0x521212:0x394,_0x4fc5cd:0x157,_0x5a6464:0x138,_0x568973:0x3bb,_0x468a8f:0x3d2,_0x41326f:0x3cd,_0x50508c:0x16a,_0x42fb8d:0x161,_0x3bd046:0x177,_0x585fce:0x191,_0x4f1fec:0x3d7,_0x489b24:0x3da,_0x5e7618:0x16e,_0xa94dd1:0x175,_0xeb4729:0x146,_0x54c0db:0x169,_0x4d2e16:0x371,_0x3012df:0x387,_0x3b0965:0x39c,_0x45834f:0x3a5,_0x5b05ee:0x397,_0xef1d10:0x39e,_0x3b4626:0x3bc,_0x53a156:0x3c2,_0x2a78a1:0x174,_0x2109fb:0x189,_0x477685:0x151,_0x51a2b0:0x399,_0xf19b3d:0x393,_0x14b298:0x38d,_0x42b44e:0x3a7,_0x314a9e:0x3a5,_0x51282a:0x155,_0x1ebb74:0x175,_0x41bbd0:0x168,_0x4c9b68:0x38a,_0x26672d:0x3a6,_0x1a0d59:0x145,_0x226310:0x15f,_0xbab053:0x3bf,_0x2baa96:0x3ae,_0x10a317:0x164,_0x5bea84:0x14f,_0x53e0ed:0x157,_0x907c6d:0x137,_0x2ea976:0x183,_0x14c29c:0x166,_0x7cf0ec:0x161,_0x8e804c:0x14b,_0x364222:0x385,_0x1eda43:0x160,_0x36d0d0:0x37a,_0x46d8ed:0x383,_0x17b31f:0x388,_0x3a76ae:0x151,_0x4b07cc:0x14f,_0x1e18ed:0x3ab,_0x58af3c:0x16a,_0x5e19d4:0x159,_0x4d0dd8:0x15c,_0x3adc24:0x139,_0x38d75c:0x39f,_0x44aa8c:0x3ac,_0xeed9b4:0x3c0,_0x35f73e:0x3b1,_0x262d9e:0x3cf,_0x534314:0x391,_0x1553f0:0x384,_0x49a248:0x39d,_0x2427a6:0x3bb,_0x5c17f8:0x3a8,_0x4affe9:0x398,_0x30865a:0x3b9,_0x14d177:0x3a3,_0x3e83a4:0x39f,_0x48117b:0x15a,_0x4c2548:0x16a},_0x41f095={_0x139297:0x2de,_0x12bc59:0x2d9,_0x761ea7:0x2f3,_0x15a6a9:0x409,_0x4b5cd3:0x314,_0x226248:0x2e5},_0x28eb29={_0xff74db:0x88,_0x3d7979:0x17c},_0x23a789={_0x56b923:0x2a3},_0x2d1b50=[];function _0x58fe2b(_0x4aa8c6,_0x3f5c1c,_0x289e74,_0x1e9960){return _0x1587(_0x4aa8c6-_0x23a789._0x56b923,_0x1e9960);}function _0x11d29c(_0x31950d,_0x411095,_0x177aa5,_0xcc0bd1){return _0x1587(_0x411095-0x65,_0xcc0bd1);}for(const _0x684a57 of _0x1eb8f7[_0x58fe2b(0x3ba,0x3b0,0x3b5,0x3b6)]){if(pushAssistantProviderState(_0x2d1b50,_0x684a57,_0x1eb8f7))continue;const _0x2f2314=[];for(const _0x38ffda of normalizeContent(_0x684a57[_0x58fe2b(0x389,_0x2a80c3._0x457e7e,0x392,_0x2a80c3._0x521212)])){if(_0x38ffda[_0x11d29c(0x161,_0x2a80c3._0x4fc5cd,_0x2a80c3._0x5a6464,0x151)]==='text'){_0x2f2314['push'](_0x684a57['role']===_0x58fe2b(_0x2a80c3._0x568973,0x3c5,_0x2a80c3._0x468a8f,_0x2a80c3._0x41326f)?{'type':_0x11d29c(_0x2a80c3._0x50508c,0x14d,0x15f,_0x2a80c3._0x42fb8d),'text':_0x38ffda[_0x11d29c(_0x2a80c3._0x3bd046,0x180,0x192,_0x2a80c3._0x585fce)]}:{'type':_0x11d29c(0x17f,0x172,0x169,0x159),'text':_0x38ffda[_0x58fe2b(0x3be,_0x2a80c3._0x4f1fec,0x3dd,_0x2a80c3._0x489b24)]});continue;}if(_0x38ffda[_0x11d29c(_0x2a80c3._0x5e7618,_0x2a80c3._0x4fc5cd,_0x2a80c3._0xa94dd1,_0x2a80c3._0xeb4729)]===_0x11d29c(0x181,_0x2a80c3._0x54c0db,0x157,0x165)){_0x2f2314[_0x58fe2b(0x38a,0x395,_0x2a80c3._0x4d2e16,0x36f)]({'type':_0x58fe2b(_0x2a80c3._0x3012df,_0x2a80c3._0x3b0965,_0x2a80c3._0x45834f,_0x2a80c3._0x5b05ee),'image_url':'data:'+_0x38ffda[_0x58fe2b(0x3af,0x3a0,_0x2a80c3._0xef1d10,0x39e)][_0x58fe2b(_0x2a80c3._0x3b4626,0x3a6,0x3d6,_0x2a80c3._0x53a156)]+_0x11d29c(0x195,_0x2a80c3._0x2a78a1,0x17d,0x17d)+_0x38ffda[_0x11d29c(_0x2a80c3._0x2109fb,0x171,0x179,_0x2a80c3._0x477685)][_0x58fe2b(_0x2a80c3._0x51a2b0,_0x2a80c3._0xf19b3d,0x3ae,0x3a6)]});continue;}pushUserContentMessage(_0x2d1b50,_0x684a57[_0x58fe2b(0x3ac,0x39a,0x3c7,_0x2a80c3._0x14b298)],_0x2f2314[_0x58fe2b(0x3b4,0x3b6,0x3ab,0x3c0)](0x0));if(_0x38ffda[_0x58fe2b(0x395,_0x2a80c3._0x42b44e,0x390,_0x2a80c3._0x314a9e)]===_0x11d29c(_0x2a80c3._0x51282a,_0x2a80c3._0x1ebb74,0x159,_0x2a80c3._0x41bbd0)){if(!hasSerializableToolUse(_0x38ffda))continue;_0x2d1b50[_0x58fe2b(_0x2a80c3._0x4c9b68,_0x2a80c3._0x26672d,0x397,0x39a)]({'type':'function_call','call_id':_0x38ffda['id'],'name':_0x38ffda[_0x11d29c(_0x2a80c3._0x1a0d59,_0x2a80c3._0x226310,0x14f,0x173)],'arguments':JSON[_0x58fe2b(0x3a5,_0x2a80c3._0xbab053,0x3af,_0x2a80c3._0x2baa96)](_0x38ffda[_0x11d29c(_0x2a80c3._0x10a317,0x158,0x15a,_0x2a80c3._0x5bea84)]??{})});continue;}if(_0x38ffda[_0x11d29c(0x173,_0x2a80c3._0x53e0ed,_0x2a80c3._0x3bd046,_0x2a80c3._0x907c6d)]===_0x11d29c(0x15f,0x17f,_0x2a80c3._0x2ea976,_0x2a80c3._0x14c29c)){if(!hasSerializableToolResult(_0x38ffda))continue;const _0x92ac8b=getToolResultText(_0x38ffda[_0x11d29c(_0x2a80c3._0x7cf0ec,_0x2a80c3._0x8e804c,0x152,0x12d)]);_0x2d1b50[_0x58fe2b(0x38a,_0x2a80c3._0x364222,0x390,0x3a6)]({'type':'function_call_output','call_id':_0x38ffda[_0x11d29c(0x16e,_0x2a80c3._0x477685,0x12f,0x130)],'output':_0x92ac8b});const _0x24981b=getToolResultImages(_0x38ffda['content']);_0x24981b[_0x11d29c(0x163,0x170,_0x2a80c3._0x5e7618,_0x2a80c3._0x1eda43)]>0x0&&_0x2d1b50[_0x58fe2b(0x38a,_0x2a80c3._0x36d0d0,_0x2a80c3._0x46d8ed,0x39d)]({'type':_0x11d29c(0x152,_0x2a80c3._0x1eda43,0x15b,_0x2a80c3._0x226310),'role':'user','content':[{'type':_0x11d29c(0x179,0x172,0x16d,_0x2a80c3._0x41bbd0),'text':_0x58fe2b(_0x2a80c3._0x17b31f,0x37f,0x39f,0x387)+_0x38ffda[_0x11d29c(0x158,_0x2a80c3._0x3a76ae,_0x2a80c3._0x51282a,_0x2a80c3._0x4b07cc)]+'.'},..._0x24981b['map'](_0x436af1=>({'type':_0x58fe2b(0x387,0x37f,0x371,0x38f),'image_url':'data:'+_0x436af1[_0x58fe2b(0x3af,0x3c9,0x3b4,0x391)][_0x11d29c(0x161,0x17e,0x167,0x18d)]+_0x11d29c(0x17a,0x174,0x163,0x16c)+_0x436af1[_0x11d29c(0x161,0x171,0x188,0x16a)][_0x58fe2b(0x399,0x3a0,0x399,0x3ad)]}))]});}}pushUserContentMessage(_0x2d1b50,_0x684a57['role'],_0x2f2314);}return{...createOpenAiResponsesReasoning(_0x1eb8f7),'model':_0x1eb8f7[_0x58fe2b(0x3b8,_0x2a80c3._0x1e18ed,0x3c9,0x3d5)],'instructions':systemToInstructions(_0x1eb8f7[_0x11d29c(0x164,_0x2a80c3._0x58af3c,0x184,0x155)]),'input':_0x2d1b50,..._0x1eb8f7['maxTokens']!==void 0x0?{'max_output_tokens':_0x1eb8f7[_0x11d29c(0x14e,0x15a,_0x2a80c3._0x5e19d4,_0x2a80c3._0x50508c)]}:{},'tools':_0x1eb8f7[_0x58fe2b(0x39a,0x37e,0x3ab,0x379)][_0x11d29c(_0x2a80c3._0x4d0dd8,0x154,_0x2a80c3._0x3adc24,0x133)](_0x5daf38=>{const _0x4a875c={_0x18e46a:0x5e,_0x1735a2:0xa3};function _0xdf5269(_0x28bf6e,_0x314208,_0x581971,_0xc1b273){return _0x11d29c(_0x28bf6e-_0x4a875c._0x18e46a,_0x314208-0x2aa,_0x581971-_0x4a875c._0x1735a2,_0x28bf6e);}function _0x3da579(_0x199df6,_0x12d38f,_0x51da69,_0x49e8b1){return _0x11d29c(_0x199df6-_0x28eb29._0xff74db,_0x12d38f-_0x28eb29._0x3d7979,_0x51da69-0x1b5,_0x51da69);}return{'type':_0x3da579(_0x41f095._0x139297,_0x41f095._0x12bc59,_0x41f095._0x761ea7,0x2d4),'name':_0x5daf38[_0xdf5269(0x3e9,_0x41f095._0x15a6a9,0x408,0x427)],'description':_0x5daf38[_0x3da579(_0x41f095._0x4b5cd3,0x2f3,_0x41f095._0x226248,0x306)],'parameters':_0x5daf38['input_schema']};}),..._0x1eb8f7[_0x58fe2b(_0x2a80c3._0x38d75c,0x3ba,_0x2a80c3._0x44aa8c,_0x2a80c3._0xeed9b4)]?{'text':{'format':{'type':_0x58fe2b(_0x2a80c3._0x35f73e,0x3af,0x390,_0x2a80c3._0x262d9e),'name':_0x1eb8f7[_0x58fe2b(0x39f,_0x2a80c3._0x534314,_0x2a80c3._0x1553f0,0x3a4)][_0x58fe2b(_0x2a80c3._0x49a248,_0x2a80c3._0x2427a6,_0x2a80c3._0x5c17f8,_0x2a80c3._0x4affe9)]??_0x58fe2b(_0x2a80c3._0x26672d,_0x2a80c3._0x30865a,0x3c0,0x388),'schema':_0x1eb8f7[_0x58fe2b(_0x2a80c3._0x38d75c,_0x2a80c3._0x14d177,_0x2a80c3._0x17b31f,0x3b7)]['schema'],'strict':_0x1eb8f7[_0x58fe2b(_0x2a80c3._0x3e83a4,0x38f,0x3ab,0x3b0)][_0x11d29c(_0x2a80c3._0x48117b,0x153,_0x2a80c3._0x4c2548,_0x2a80c3._0x3adc24)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
@@ -1 +1 @@
1
- function _0x50267a(_0x30cf2b,_0x5b0072,_0x327c7f,_0x4baba1){var _0xa24639={_0x1f1c6c:0xf3};return _0x2bf4(_0x327c7f- -_0xa24639._0x1f1c6c,_0x5b0072);}(function(_0x19d71a,_0x3922bb){var _0x268461={_0x159827:0x26,_0x2ce0a1:0x24,_0x4b2bd4:0x57,_0xfee5b9:0x52,_0x209f61:0x2b,_0x861674:0x1a,_0x23a9ec:0x24,_0x1319e4:0x2f,_0x4ae7ff:0x2d,_0x5785de:0x2b,_0x39d277:0x52,_0x150984:0x48,_0x334955:0x3d,_0x143472:0x58,_0x448c82:0x54,_0x3b5066:0x22,_0x2757b7:0x25,_0x82d7e1:0x44,_0xf8782c:0x26},_0x52c1b3={_0x355bb8:0x15b};function _0x26d808(_0x147365,_0x3aa5bc,_0x3881d1,_0x12d010){return _0x2bf4(_0x3aa5bc- -0x137,_0x147365);}function _0x95e7a0(_0x11f8be,_0x5d66bf,_0x4bd36d,_0x13403d){return _0x2bf4(_0x13403d- -_0x52c1b3._0x355bb8,_0x11f8be);}var _0x2f4c75=_0x19d71a();while(!![]){try{var _0x2a70b2=-parseInt(_0x95e7a0(_0x268461._0x159827,_0x268461._0x2ce0a1,0x18,0x22))/0x1*(-parseInt(_0x26d808(0x53,_0x268461._0x4b2bd4,_0x268461._0xfee5b9,0x55))/0x2)+parseInt(_0x95e7a0(0x28,_0x268461._0x209f61,_0x268461._0x861674,_0x268461._0x23a9ec))/0x3*(-parseInt(_0x95e7a0(0x2e,_0x268461._0x1319e4,_0x268461._0x4ae7ff,_0x268461._0x5785de))/0x4)+-parseInt(_0x26d808(0x4a,0x55,0x4f,_0x268461._0x39d277))/0x5+parseInt(_0x26d808(_0x268461._0x150984,0x52,0x4b,0x49))/0x6*(-parseInt(_0x95e7a0(_0x268461._0x334955,0x3f,0x31,0x35))/0x7)+-parseInt(_0x26d808(0x4e,_0x268461._0x143472,0x50,_0x268461._0x448c82))/0x8*(parseInt(_0x95e7a0(0x22,_0x268461._0x3b5066,_0x268461._0x2757b7,0x2a))/0x9)+-parseInt(_0x26d808(_0x268461._0x150984,0x4c,_0x268461._0x82d7e1,0x45))/0xa+parseInt(_0x95e7a0(0x2b,0x20,_0x268461._0xf8782c,0x23))/0xb;if(_0x2a70b2===_0x3922bb)break;else _0x2f4c75['push'](_0x2f4c75['shift']());}catch(_0x10f606){_0x2f4c75['push'](_0x2f4c75['shift']());}}}(_0x5c36,0xcb4f7));var OperationAbortedError=class extends Error{[_0x50267a(0x7f,0x8b,0x89,0x8f)]=_0x1f84c1(0x2fc,0x2f6,0x2f6,0x305);constructor(_0x255fa0='Operation\x20aborted'){super(_0x255fa0),this['name']='AbortError';}};function toAbortError(_0x1e66a6){var _0x307be2={_0x139c9d:0x35f,_0x2475c1:0x35e,_0x51be3e:0x36a,_0x4cee8f:0x367,_0x510ad6:0x33d,_0x38f0b9:0x342},_0x223b7d={_0x64f1ec:0x1e1,_0x40f356:0x13d};function _0x15651b(_0xd0c1c6,_0xc9c313,_0x333fc3,_0x2683d4){return _0x1f84c1(_0x333fc3-0x49,_0xd0c1c6,_0x333fc3-0x50,_0x2683d4-0x3a);}if(isAbortError(_0x1e66a6))return _0x1e66a6;if(_0x1e66a6 instanceof Error)return new OperationAbortedError(_0x1e66a6[_0x3fbb0b(_0x307be2._0x139c9d,0x360,0x35f,0x35e)]);function _0x3fbb0b(_0x447333,_0x38bdb2,_0x3372d2,_0x217b29){return _0x1f84c1(_0x217b29-0x69,_0x447333,_0x3372d2-_0x223b7d._0x64f1ec,_0x217b29-_0x223b7d._0x40f356);}if(typeof _0x1e66a6===_0x3fbb0b(_0x307be2._0x2475c1,0x36a,_0x307be2._0x51be3e,_0x307be2._0x4cee8f)&&_0x1e66a6[_0x15651b(0x347,0x33f,_0x307be2._0x510ad6,_0x307be2._0x38f0b9)]>0x0)return new OperationAbortedError(_0x1e66a6);return new OperationAbortedError();}function isAbortError(_0x361a10){var _0x39b3e9={_0x1d413f:0x532,_0x523805:0x536,_0x28e59e:0x539,_0x29539c:0x541},_0x270876={_0x22ca47:0x15d},_0x151893={_0x1c4b19:0x4ad,_0xe35a28:0x120};function _0x24b72f(_0x452cd5,_0x37109a,_0x50830,_0x67dc4d){return _0x50267a(_0x452cd5-0x1ac,_0x50830,_0x37109a-_0x151893._0x1c4b19,_0x67dc4d-_0x151893._0xe35a28);}function _0x3e65ef(_0x397dfc,_0x3d5055,_0x4ab5be,_0x2eac1a){return _0x1f84c1(_0x397dfc- -_0x270876._0x22ca47,_0x2eac1a,_0x4ab5be-0xca,_0x2eac1a-0x9b);}return _0x361a10 instanceof OperationAbortedError||_0x361a10 instanceof Error&&(_0x361a10[_0x3e65ef(0x199,0x1a3,0x195,0x1a2)]==='AbortError'||_0x24b72f(_0x39b3e9._0x1d413f,_0x39b3e9._0x523805,0x537,0x531)in _0x361a10&&_0x361a10['code']===_0x24b72f(_0x39b3e9._0x28e59e,0x542,0x544,_0x39b3e9._0x29539c));}function _0x1f84c1(_0x4ff2c2,_0x17472f,_0x2cff2f,_0x41b143){return _0x2bf4(_0x4ff2c2-0x174,_0x17472f);}function _0x2bf4(_0x1d8867,_0x5dffcb){_0x1d8867=_0x1d8867-0x17c;var _0x5c36b2=_0x5c36();var _0x2bf484=_0x5c36b2[_0x1d8867];if(_0x2bf4['HhhhcB']===undefined){var _0x5c70ef=function(_0x44e9e4){var _0x4caa42='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x255fa0='',_0x1e66a6='';for(var _0x361a10=0x0,_0x38781b,_0xb53f10,_0x8004df=0x0;_0xb53f10=_0x44e9e4['charAt'](_0x8004df++);~_0xb53f10&&(_0x38781b=_0x361a10%0x4?_0x38781b*0x40+_0xb53f10:_0xb53f10,_0x361a10++%0x4)?_0x255fa0+=String['fromCharCode'](0xff&_0x38781b>>(-0x2*_0x361a10&0x6)):0x0){_0xb53f10=_0x4caa42['indexOf'](_0xb53f10);}for(var _0x4ffba0=0x0,_0x4da5d1=_0x255fa0['length'];_0x4ffba0<_0x4da5d1;_0x4ffba0++){_0x1e66a6+='%'+('00'+_0x255fa0['charCodeAt'](_0x4ffba0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e66a6);};_0x2bf4['rMcncl']=_0x5c70ef,_0x2bf4['rSDCDK']={},_0x2bf4['HhhhcB']=!![];}var _0x4ff499=_0x5c36b2[0x0],_0x51aa3c=_0x1d8867+_0x4ff499,_0x23bf56=_0x2bf4['rSDCDK'][_0x51aa3c];return!_0x23bf56?(_0x2bf484=_0x2bf4['rMcncl'](_0x2bf484),_0x2bf4['rSDCDK'][_0x51aa3c]=_0x2bf484):_0x2bf484=_0x23bf56,_0x2bf484;}function throwIfAborted(_0x38781b){var _0x294b6a={_0x481c4c:0x17a,_0x2b775f:0x17f,_0x413b01:0x189,_0x4b1d52:0x186,_0x6a1e3d:0x185,_0x2290cf:0x180},_0x29a18c={_0xb60da5:0x178,_0x34a3d5:0x52,_0x4023e6:0x1ce};function _0x3f30be(_0x1d043e,_0x55411d,_0x3db687,_0x36df42){return _0x1f84c1(_0x1d043e- -0x1f6,_0x55411d,_0x3db687-0x131,_0x36df42-0x41);}function _0x115ac2(_0x16fa48,_0x274b61,_0x68102e,_0x32e048){return _0x1f84c1(_0x32e048- -_0x29a18c._0xb60da5,_0x274b61,_0x68102e-_0x29a18c._0x34a3d5,_0x32e048-_0x29a18c._0x4023e6);}if(!_0x38781b?.[_0x115ac2(_0x294b6a._0x481c4c,_0x294b6a._0x2b775f,0x180,0x183)])return;throw toAbortError(_0x38781b[_0x115ac2(_0x294b6a._0x413b01,_0x294b6a._0x4b1d52,_0x294b6a._0x6a1e3d,_0x294b6a._0x2290cf)]);}function addAbortListener(_0xb53f10,_0x8004df){var _0x2cbb99={_0x2afc62:0x126,_0x5796bf:0x124,_0xb4bc32:0x11c,_0x4e9b26:0x125,_0x587735:0x129},_0x2f7d94={_0xa68642:0x1d5,_0x4143a2:0x189};if(!_0xb53f10)return()=>{};function _0x11414c(_0x7baec,_0x7fb229,_0x485ab5,_0x34a0d6){return _0x1f84c1(_0x7baec- -_0x2f7d94._0xa68642,_0x485ab5,_0x485ab5-0x71,_0x34a0d6-_0x2f7d94._0x4143a2);}if(_0xb53f10[_0x11414c(_0x2cbb99._0x2afc62,_0x2cbb99._0x5796bf,0x11c,_0x2cbb99._0xb4bc32)])return _0x8004df(),()=>{};function _0x3f53ae(_0x3d270b,_0x479732,_0x2a9b98,_0x170914){return _0x50267a(_0x3d270b-0xf,_0x170914,_0x2a9b98-0x4b8,_0x170914-0x91);}const _0x4ffba0=()=>{_0x8004df();};return _0xb53f10[_0x11414c(0x12c,0x130,_0x2cbb99._0x4e9b26,_0x2cbb99._0x587735)]('abort',_0x4ffba0,{'once':!![]}),()=>{var _0x454d89={_0x393672:0x1f2,_0x413f0a:0x83};function _0x2b7cd4(_0xceb67f,_0x4d824b,_0x5bce7c,_0x33b8d5){return _0x3f53ae(_0xceb67f-_0x454d89._0x393672,_0x4d824b-0x1b8,_0x33b8d5- -_0x454d89._0x413f0a,_0x4d824b);}_0xb53f10[_0x2b7cd4(0x4c6,0x4c9,0x4c4,0x4cd)]('abort',_0x4ffba0);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};function _0x5c36(){var _0x35231d=['ywjVCNrLza','qujpuLrFrvjs','mZbyt1P3tuK','C3rYAw5N','CMvTB3zLrxzLBNrmAxn0zw5LCG','nZeYmJmWmffMwK1pwa','ywrKrxzLBNrmAxn0zw5LCG','ndu4ndj2Au9Xs3G','mtaXnJaWmdHXzxHozMG','mtyZntGZCuvVv09K','y29Kzq','ndLZBMzQB0G','ntq2odq0nZzPzK1HvLi','mti4nZqZnxjTExvbvW','BgvUz3rO','BwvZC2fNzq','BMfTzq','mtu5mJa5mdbLugjRuMS','CMvHC29U','ow16zhrYra','ognfteTqwa'];_0x5c36=function(){return _0x35231d;};return _0x5c36();}
1
+ (function(_0x4dba90,_0x1f0489){var _0x28fd10={_0x151818:0x1bb,_0x101010:0x1b4,_0x55da98:0x1b7,_0x2cf43d:0x1b6,_0x5987d1:0x1a9,_0x3707f1:0x1ae,_0x501abe:0x1a9,_0x51f8e0:0x117,_0x2ad6da:0x1a4,_0x1b6948:0x1ad,_0x145316:0x1af,_0x27232b:0x1ab,_0x282ba8:0x1a9,_0x58183d:0x1a8,_0x647b81:0x1a6,_0x99f9bf:0x1ac};function _0x19920c(_0x274f84,_0x993d35,_0x28215e,_0x1a1439){return _0xa406(_0x1a1439- -0x2a9,_0x993d35);}function _0x2c2485(_0x2f637f,_0x3f70aa,_0x198ffa,_0x33f351){return _0xa406(_0x33f351-0x22,_0x2f637f);}var _0x27adbb=_0x4dba90();while(!![]){try{var _0x18c166=parseInt(_0x19920c(-_0x28fd10._0x151818,-0x1ae,-_0x28fd10._0x101010,-_0x28fd10._0x55da98))/0x1+-parseInt(_0x19920c(-_0x28fd10._0x151818,-0x1b0,-0x1ab,-_0x28fd10._0x2cf43d))/0x2+-parseInt(_0x19920c(-_0x28fd10._0x5987d1,-_0x28fd10._0x3707f1,-0x1a8,-_0x28fd10._0x501abe))/0x3*(-parseInt(_0x2c2485(0x10b,_0x28fd10._0x51f8e0,0x112,0x111))/0x4)+parseInt(_0x19920c(-0x1a9,-_0x28fd10._0x101010,-_0x28fd10._0x2ad6da,-_0x28fd10._0x1b6948))/0x5+-parseInt(_0x19920c(-_0x28fd10._0x145316,-_0x28fd10._0x27232b,-_0x28fd10._0x282ba8,-0x1b1))/0x6+-parseInt(_0x19920c(-_0x28fd10._0x58183d,-0x1a4,-0x1a4,-0x1a8))/0x7*(parseInt(_0x2c2485(0x120,0x123,0x121,0x118))/0x8)+-parseInt(_0x19920c(-0x1b1,-_0x28fd10._0x647b81,-_0x28fd10._0x101010,-_0x28fd10._0x99f9bf))/0x9*(-parseInt(_0x2c2485(0x114,0x10d,0x10c,0x112))/0xa);if(_0x18c166===_0x1f0489)break;else _0x27adbb['push'](_0x27adbb['shift']());}catch(_0x5e54d3){_0x27adbb['push'](_0x27adbb['shift']());}}}(_0x26dd,0x6caed));var OperationAbortedError=class extends Error{[_0x3bfbeb(0x446,0x451,0x44a,0x44f)]=_0x3bfbeb(0x45a,0x44d,0x45d,0x455);constructor(_0x2dfdf5=_0x3bfbeb(0x461,0x460,0x453,0x456)){var _0x386608={_0x26db86:0x1bf,_0x1f5a14:0x1b9,_0x4c5fab:0x32a,_0x2876df:0x33c},_0x11f6f0={_0x490a41:0x1f,_0x5a4e8a:0x109,_0x5bb1e1:0x616},_0x34c4ad={_0x3c18a0:0x163,_0x1c9c5a:0x125};function _0x461cac(_0x39fb8c,_0x94cd44,_0x38717c,_0x70c518){return _0x3bfbeb(_0x39fb8c-0x72,_0x94cd44-_0x34c4ad._0x3c18a0,_0x39fb8c,_0x38717c- -_0x34c4ad._0x1c9c5a);}super(_0x2dfdf5);function _0x1e4b5e(_0x520620,_0x569a27,_0xd82a1a,_0x101546){return _0x3bfbeb(_0x520620-_0x11f6f0._0x490a41,_0x569a27-_0x11f6f0._0x5a4e8a,_0xd82a1a,_0x569a27- -_0x11f6f0._0x5bb1e1);}this[_0x1e4b5e(-_0x386608._0x26db86,-0x1bb,-0x1bf,-_0x386608._0x1f5a14)]=_0x461cac(_0x386608._0x4c5fab,_0x386608._0x2876df,0x333,0x332);}};function _0x3bfbeb(_0xdd3137,_0x3ee77e,_0x4d63a0,_0x4d63c6){var _0x1ab264={_0x3bad91:0x361};return _0xa406(_0x4d63c6-_0x1ab264._0x3bad91,_0x4d63a0);}function _0x26dd(){var _0x5e0c91=['BgvUz3rO','mJy3nJm2AKnTDvvs','nZbzEgr4BK0','ywjVCNq','ywrKrxzLBNrmAxn0zw5LCG','y29Kzq','neHdDKzTsG','mZa4mZbuvvrYAMm','BwvZC2fNzq','nJq0nJm0s2Pgthv1','odK3mZGWv2vtCNzr','qujpuLrFrvjs','t3bLCMf0Aw9UigfIB3j0zwq','nJmYndHIAMfvuu8','qwjVCNrfCNjVCG','mZeWndK3mhfwAgL1uG','ywjVCNrLza','BMfTzq','CMvHC29U','mZq0mZy5mhvMwgLtEq','mtK4r1zmqKHq','C3rYAw5N'];_0x26dd=function(){return _0x5e0c91;};return _0x26dd();}function toAbortError(_0x3523b9){var _0x4a4ec7={_0x283410:0x172,_0x5b0949:0x170,_0x2d801c:0x16e,_0x763732:0x176,_0x193669:0x99,_0x54ca86:0x9d,_0x222f76:0xa8},_0x31a2e6={_0x2565d1:0x3c2},_0x1c6ede={_0x57dd17:0xd};if(isAbortError(_0x3523b9))return _0x3523b9;function _0x5d7b3a(_0xaff27,_0x558b84,_0x8e2aa6,_0x5a7397){return _0x366026(_0x558b84-_0x1c6ede._0x57dd17,_0x8e2aa6,_0x8e2aa6-0x83,_0x5a7397-0x10b);}if(_0x3523b9 instanceof Error)return new OperationAbortedError(_0x3523b9[_0x5d7b3a(_0x4a4ec7._0x283410,_0x4a4ec7._0x5b0949,_0x4a4ec7._0x2d801c,_0x4a4ec7._0x763732)]);function _0x15d066(_0x5c5798,_0x25ec5b,_0x469406,_0x4119dc){return _0x3bfbeb(_0x5c5798-0x1f,_0x25ec5b-0xc5,_0x25ec5b,_0x4119dc- -_0x31a2e6._0x2565d1);}if(typeof _0x3523b9===_0x15d066(0xa5,_0x4a4ec7._0x193669,0x9d,_0x4a4ec7._0x54ca86)&&_0x3523b9[_0x15d066(0x98,0x9f,_0x4a4ec7._0x222f76,0x9e)]>0x0)return new OperationAbortedError(_0x3523b9);return new OperationAbortedError();}function isAbortError(_0x223418){var _0x51f4c8={_0x89ed19:0x105,_0x2d97b9:0xfd,_0x1d982a:0x103,_0x2b752d:0xff,_0x83119c:0xf8,_0x3fbb87:0xe7,_0x463de7:0xf1,_0xff2225:0xe7,_0x5dfa54:0x2b9,_0x217dad:0x2c0,_0x45e565:0x2be},_0x131595={_0x269165:0x6f,_0x34e9fe:0x3a,_0x108499:0x11d},_0x2657d4={_0x5cddfa:0x173,_0x278096:0x165};function _0x4ac983(_0x45b9fe,_0xee58a8,_0x35d5c1,_0x59791c){return _0x3bfbeb(_0x45b9fe-_0x2657d4._0x5cddfa,_0xee58a8-_0x2657d4._0x278096,_0xee58a8,_0x35d5c1- -0x19d);}function _0x35638e(_0x2ed480,_0x56c688,_0x1d4129,_0x136f90){return _0x366026(_0x1d4129- -_0x131595._0x269165,_0x2ed480,_0x1d4129-_0x131595._0x34e9fe,_0x136f90-_0x131595._0x108499);}return _0x223418 instanceof OperationAbortedError||_0x223418 instanceof Error&&(_0x223418[_0x35638e(_0x51f4c8._0x89ed19,0xff,_0x51f4c8._0x2d97b9,0x100)]===_0x35638e(_0x51f4c8._0x1d982a,_0x51f4c8._0x2b752d,0xfa,_0x51f4c8._0x1d982a)||'code'in _0x223418&&_0x223418[_0x35638e(_0x51f4c8._0x83119c,_0x51f4c8._0x3fbb87,_0x51f4c8._0x463de7,_0x51f4c8._0xff2225)]===_0x4ac983(_0x51f4c8._0x5dfa54,_0x51f4c8._0x217dad,0x2b8,_0x51f4c8._0x45e565));}function _0xa406(_0x489dbf,_0x578deb){_0x489dbf=_0x489dbf-0xee;var _0x26dde2=_0x26dd();var _0xa40606=_0x26dde2[_0x489dbf];if(_0xa406['NbWwLT']===undefined){var _0x3aadc4=function(_0x53820f){var _0x7724c1='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2dfdf5='',_0x3523b9='';for(var _0x223418=0x0,_0x431c5e,_0x3d9fdc,_0x1b5f62=0x0;_0x3d9fdc=_0x53820f['charAt'](_0x1b5f62++);~_0x3d9fdc&&(_0x431c5e=_0x223418%0x4?_0x431c5e*0x40+_0x3d9fdc:_0x3d9fdc,_0x223418++%0x4)?_0x2dfdf5+=String['fromCharCode'](0xff&_0x431c5e>>(-0x2*_0x223418&0x6)):0x0){_0x3d9fdc=_0x7724c1['indexOf'](_0x3d9fdc);}for(var _0x3b4d57=0x0,_0x2494b8=_0x2dfdf5['length'];_0x3b4d57<_0x2494b8;_0x3b4d57++){_0x3523b9+='%'+('00'+_0x2dfdf5['charCodeAt'](_0x3b4d57)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3523b9);};_0xa406['RsTryb']=_0x3aadc4,_0xa406['qLNJOm']={},_0xa406['NbWwLT']=!![];}var _0x23da53=_0x26dde2[0x0],_0x31d633=_0x489dbf+_0x23da53,_0x223c78=_0xa406['qLNJOm'][_0x31d633];return!_0x223c78?(_0xa40606=_0xa406['RsTryb'](_0xa40606),_0xa406['qLNJOm'][_0x31d633]=_0xa40606):_0xa40606=_0x223c78,_0xa40606;}function throwIfAborted(_0x431c5e){var _0x3fb3a9={_0x1ccd9b:0x48a,_0x48c5ee:0x47f,_0x33644e:0x479,_0x506ff5:0x481,_0x122bae:0x48b},_0x409034={_0x548f09:0x270,_0x1efbb3:0xa3,_0x350bfe:0x57},_0x3c2a31={_0x192019:0xa0,_0x364664:0x158};if(!_0x431c5e?.[_0x8982d7(_0x3fb3a9._0x1ccd9b,_0x3fb3a9._0x48c5ee,_0x3fb3a9._0x33644e,_0x3fb3a9._0x506ff5)])return;function _0x8982d7(_0x4dbe72,_0x5d747b,_0x388209,_0x56b87a){return _0x366026(_0x5d747b-0x314,_0x4dbe72,_0x388209-_0x3c2a31._0x192019,_0x56b87a-_0x3c2a31._0x364664);}function _0x244b98(_0x4dd792,_0x18264a,_0x225329,_0x43b3da){return _0x366026(_0x225329- -_0x409034._0x548f09,_0x18264a,_0x225329-_0x409034._0x1efbb3,_0x43b3da-_0x409034._0x350bfe);}throw toAbortError(_0x431c5e[_0x8982d7(_0x3fb3a9._0x122bae,0x481,0x47a,0x486)]);}function addAbortListener(_0x3d9fdc,_0x1b5f62){var _0x9538b2={_0x43952f:0x157,_0x35eca7:0x14b,_0xe0b80:0x151,_0x5be24a:0x159},_0x3354ae={_0x45c86d:0x2d8,_0x3ef12c:0x2da,_0x4c596d:0x2e5},_0x405dfb={_0x13519b:0x1dc,_0x3a677a:0x431},_0x5a1aed={_0x55747e:0x2c6,_0x2c7de8:0x1e0,_0x5ec260:0x43},_0xaaf561={_0x4602f7:0x80,_0x537667:0x14};if(!_0x3d9fdc)return()=>{};function _0x537aa6(_0x2250ac,_0x324ec0,_0x33855e,_0x14e1d6){return _0x366026(_0x2250ac-0x2ba,_0x324ec0,_0x33855e-_0xaaf561._0x4602f7,_0x14e1d6-_0xaaf561._0x537667);}if(_0x3d9fdc['aborted'])return _0x1b5f62(),()=>{};const _0x3b4d57=()=>{_0x1b5f62();};_0x3d9fdc[_0x49fd31(-_0x9538b2._0x43952f,-0x158,-_0x9538b2._0x35eca7,-0x151)](_0x49fd31(-_0x9538b2._0xe0b80,-0x153,-_0x9538b2._0x5be24a,-0x152),_0x3b4d57,{'once':!![]});function _0x49fd31(_0xc2f0d0,_0x5789c9,_0x24250d,_0x449b39){return _0x366026(_0x449b39- -_0x5a1aed._0x55747e,_0xc2f0d0,_0x24250d-_0x5a1aed._0x2c7de8,_0x449b39-_0x5a1aed._0x5ec260);}return()=>{function _0x25ac69(_0x4581ff,_0x161924,_0x1ce02c,_0x2493a8){return _0x49fd31(_0x2493a8,_0x161924-_0x405dfb._0x13519b,_0x1ce02c-0x1d0,_0x4581ff-_0x405dfb._0x3a677a);}_0x3d9fdc['removeEventListener'](_0x25ac69(0x2df,_0x3354ae._0x45c86d,_0x3354ae._0x3ef12c,_0x3354ae._0x4c596d),_0x3b4d57);};}function _0x366026(_0x515f50,_0x36d9a1,_0x13296c,_0x2be4be){var _0x4afb02={_0x2f3269:0x72};return _0xa406(_0x515f50-_0x4afb02._0x2f3269,_0x36d9a1);}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
@@ -1 +1 @@
1
- (function(_0x5ed89a,_0x946fb1){const _0x566e81={_0x2ac227:0xb5,_0xb3761b:0x9c,_0x148482:0xb9,_0x162f8e:0xcf,_0x45da56:0x83,_0xc554fd:0x98,_0x4e3dd6:0x2fc,_0x5f08dd:0x31d,_0x1f08c8:0x311,_0x507871:0xc6,_0x588d42:0xae,_0x51792b:0xc1,_0x273c19:0xce,_0xb5bd5a:0xb8,_0x2fd5f9:0xd5,_0x15f7b0:0x33e,_0x20d317:0x315,_0x3c0c39:0x332,_0x57e5cc:0x2ee,_0x17f892:0x2f7,_0x22392d:0x303,_0x16f652:0xa1,_0x205d0c:0xa6,_0x9600a1:0xc2},_0x52fa24={_0x55af06:0x145},_0x4bde10=_0x5ed89a();function _0x5f48d6(_0x77faf6,_0x493140,_0x5361bc,_0x585793){return _0x1699(_0x585793-_0x52fa24._0x55af06,_0x77faf6);}function _0x18d155(_0x15b4d2,_0x64311a,_0x2feff3,_0x29b90c){return _0x1699(_0x2feff3- -0x140,_0x15b4d2);}while(!![]){try{const _0x3a9c11=parseInt(_0x18d155(_0x566e81._0x2ac227,_0x566e81._0xb3761b,_0x566e81._0x148482,_0x566e81._0x162f8e))/0x1*(parseInt(_0x18d155(0x8f,0x6f,_0x566e81._0x45da56,_0x566e81._0xc554fd))/0x2)+parseInt(_0x18d155(0xa9,0xbc,0xb5,0xbe))/0x3+-parseInt(_0x18d155(0x8e,0x87,0x81,0x70))/0x4+parseInt(_0x5f48d6(_0x566e81._0x4e3dd6,_0x566e81._0x5f08dd,_0x566e81._0x1f08c8,0x30b))/0x5+-parseInt(_0x18d155(_0x566e81._0x507871,_0x566e81._0x588d42,0xbc,_0x566e81._0x507871))/0x6*(-parseInt(_0x5f48d6(0x33e,0x325,0x338,0x32c))/0x7)+-parseInt(_0x18d155(_0x566e81._0x51792b,_0x566e81._0x273c19,_0x566e81._0xb5bd5a,_0x566e81._0x2fd5f9))/0x8*(-parseInt(_0x5f48d6(0x34d,_0x566e81._0x15f7b0,_0x566e81._0x20d317,_0x566e81._0x3c0c39))/0x9)+-parseInt(_0x5f48d6(0x2f5,_0x566e81._0x57e5cc,_0x566e81._0x17f892,_0x566e81._0x22392d))/0xa*(parseInt(_0x18d155(0x8f,_0x566e81._0x16f652,_0x566e81._0x205d0c,_0x566e81._0x9600a1))/0xb);if(_0x3a9c11===_0x946fb1)break;else _0x4bde10['push'](_0x4bde10['shift']());}catch(_0x24f81a){_0x4bde10['push'](_0x4bde10['shift']());}}}(_0x432c,0xebd85));function createTextBlock(_0x40765c){function _0x3e6ba8(_0x1324f7,_0x25afc0,_0xd1e888,_0x4663ac){return _0x1699(_0x1324f7- -0x257,_0x25afc0);}return{'type':_0x3e6ba8(-0x5c,-0x5c,-0x4d,-0x77),'text':_0x40765c};}function normalizeTextBlock(_0x2216b4){return createTextBlock(_0x2216b4['text']??'');}function _0x7d6272(_0x456bd7,_0x318eae,_0x2a393b,_0x3b9491){const _0xee767a={_0x539c08:0x25d};return _0x1699(_0x456bd7-_0xee767a._0x539c08,_0x2a393b);}function normalizeContent(_0x3325e1){const _0x3b5bfa={_0x1fa0ac:0x7b,_0x5b13ff:0x126,_0x505ce5:0x133},_0x24922d={_0x447a25:0x24,_0x2f60f7:0x18},_0x384223={_0x3c62e0:0x12b,_0x3e1c84:0xfb},_0x4a54fd={_0x3fb75e:0x245};if(typeof _0x3325e1==='string')return[createTextBlock(_0x3325e1)];function _0x3cb9b5(_0x3a5e83,_0x54770f,_0x34ddfd,_0x464d99){return _0x1699(_0x464d99- -0x2f3,_0x3a5e83);}if(!Array[_0x2ce9e6(-0x7b,-_0x3b5bfa._0x1fa0ac,-0x5b,-0x83)](_0x3325e1))return[];function _0x2ce9e6(_0x5cff96,_0x1975f6,_0x3b3b5d,_0x2fb997){return _0x1699(_0x5cff96- -_0x4a54fd._0x3fb75e,_0x1975f6);}return _0x3325e1[_0x3cb9b5(-0x107,-_0x3b5bfa._0x5b13ff,-_0x3b5bfa._0x505ce5,-0x123)](_0x252d02=>{function _0x8fce5c(_0x5e24f5,_0x175576,_0x57b4fe,_0x366c0a){return _0x3cb9b5(_0x175576,_0x175576-0xae,_0x57b4fe-_0x384223._0x3c62e0,_0x366c0a-_0x384223._0x3e1c84);}if(_0x252d02['type']===_0x8fce5c(_0x24922d._0x447a25,0x24,-_0x24922d._0x2f60f7,0x3))return normalizeTextBlock(_0x252d02);return structuredClone(_0x252d02);});}function normalizeSystem(_0x32268d=[]){const _0x165d6f={_0x525f86:0x593,_0xc58389:0x579,_0x2c096d:0x58a};function _0x419e9b(_0x494643,_0x5792a3,_0x5f21aa,_0x4b7c83){return _0x1699(_0x5792a3-0x39a,_0x494643);}function _0xfe5696(_0x2cb8b8,_0x12d99d,_0x4422a5,_0x227cbd){return _0x1699(_0x12d99d-0x61,_0x4422a5);}return normalizeContent(_0x32268d)[_0x419e9b(_0x165d6f._0x525f86,0x579,_0x165d6f._0xc58389,_0x165d6f._0x2c096d)](_0x243f18=>_0x243f18[_0xfe5696(0x249,0x242,0x22d,0x235)]===_0x419e9b(0x5b3,0x595,0x596,0x599));}function isProviderStateCompatible(_0x96f03,_0x2563ca){const _0x510bce={_0x3da4a9:0x26,_0x5d0eba:0x34,_0x1ac3ec:0x3d,_0x23fa06:0x30,_0x2d64cc:0x35,_0x5c007e:0x2d,_0x930f28:0x3d,_0x3c5891:0xc},_0x264320={_0x3fe406:0x1b8};function _0x24c821(_0x55ba13,_0x4baafa,_0x2a2a27,_0x27196e){return _0x1699(_0x4baafa- -_0x264320._0x3fe406,_0x55ba13);}function _0x5bef8f(_0x1bf9b8,_0x3b0705,_0x1a6e19,_0x1f1abe){return _0x1699(_0x1a6e19- -0x190,_0x1bf9b8);}const _0x29e925=_0x96f03[_0x24c821(0x1d,_0x510bce._0x3da4a9,0x3e,_0x510bce._0x5d0eba)]?.['originModelIdentity'];return _0x29e925===void 0x0||_0x29e925===_0x2563ca[_0x5bef8f(_0x510bce._0x1ac3ec,0x3f,_0x510bce._0x23fa06,0x1c)][_0x5bef8f(_0x510bce._0x2d64cc,_0x510bce._0x5c007e,_0x510bce._0x930f28,0x2d)]||_0x29e925===_0x2563ca[_0x24c821(0x40,0x24,_0x510bce._0x3c5891,0x1e)];}function normalizeMessage(_0xb8d234){const _0x5d6b9d={_0x270271:0x2c7,_0x4f9709:0x2e3},_0x197c6e={_0x458b14:0xf0};function _0xbe001(_0x1c8096,_0x692ca8,_0x499a24,_0x6db6a8){return _0x1699(_0x499a24-_0x197c6e._0x458b14,_0x1c8096);}return{...typeof _0xb8d234['id']==='string'?{'id':_0xb8d234['id']}:{},'role':_0xb8d234['role'],'content':normalizeContent(_0xb8d234[_0xbe001(_0x5d6b9d._0x270271,0x2c8,_0x5d6b9d._0x4f9709,0x2c3)]),..._0xb8d234['providerState']?{'providerState':structuredClone(_0xb8d234['providerState'])}:{}};}function compileRequest(_0x45eddf){const _0xca7371={_0x39de87:0xb5,_0x5f7aa7:0x9b,_0xdae63:0xa6,_0x421bce:0x99,_0x570022:0xa7,_0x4fa516:0xa3,_0x5d91ad:0x88,_0xb4dc28:0x2e8,_0x18213e:0x2fe,_0x302bbc:0xac,_0xe04b65:0x81,_0x5af647:0x78,_0x469326:0x8d,_0x46eae3:0x2df,_0x1240ac:0x8f,_0x5200af:0xbd,_0x5c4843:0xae,_0xd59fd:0xbc,_0x30dc1f:0x64,_0x2aedf5:0x9b},_0x1da5dd={_0x39d9f6:0x141};function _0x119a5e(_0x110e83,_0x104cdf,_0x2999d8,_0x592a8f){return _0x1699(_0x104cdf-0x126,_0x110e83);}function _0x749319(_0x3dfd30,_0x506c54,_0x3840c2,_0x290c27){return _0x1699(_0x506c54- -_0x1da5dd._0x39d9f6,_0x3dfd30);}return{'model':_0x45eddf[_0x749319(_0xca7371._0x39de87,_0xca7371._0x5f7aa7,_0xca7371._0xdae63,_0xca7371._0x421bce)]??_0x749319(_0xca7371._0x570022,_0xca7371._0x4fa516,_0xca7371._0x5d91ad,0xb6),..._0x45eddf[_0x119a5e(_0xca7371._0xb4dc28,_0xca7371._0x18213e,0x2f2,0x2ee)]!==void 0x0?{'max_tokens':_0x45eddf[_0x749319(_0xca7371._0x302bbc,0x97,0x9b,_0xca7371._0xe04b65)]}:{},..._0x45eddf['reasoning']?{'reasoning':structuredClone(_0x45eddf[_0x749319(_0xca7371._0x5af647,0x87,0x72,_0xca7371._0x469326)])}:{},'system':normalizeSystem(_0x45eddf[_0x119a5e(0x2f8,0x2ef,0x307,_0xca7371._0x46eae3)]),'messages':_0x45eddf['messages'][_0x749319(_0xca7371._0x421bce,_0xca7371._0x1240ac,0x9c,0x85)](normalizeMessage),'tools':structuredClone(_0x45eddf[_0x749319(_0xca7371._0x5200af,_0xca7371._0x5c4843,0xb4,_0xca7371._0xd59fd)]??[]),'metadata':{'session_id':_0x45eddf['sessionId'],'turn_id':_0x45eddf[_0x749319(0x86,0x7b,_0xca7371._0x30dc1f,_0xca7371._0x2aedf5)]}};}function toChatRequest(_0x428fd8){const _0x50dd80={_0x5e240b:0x2e,_0x33fc60:0x27,_0x112d66:0xce,_0x30cc7f:0xe3,_0x284844:0x29,_0x362e99:0xdc,_0x5eb107:0xc2,_0xb04019:0x4b,_0x44bdbe:0xee,_0xc9e2f0:0xdb,_0x19dc72:0xf3,_0x4615ff:0x10d,_0x21eb0c:0xd0,_0x1d9ee8:0xc0,_0x4f6e68:0x25,_0x12a290:0x26,_0xacd4c1:0x2b,_0x2977e8:0x26,_0x44b0e9:0x42,_0x84758d:0xe2,_0x3f468f:0xf6,_0x4543f2:0xc6,_0x5398f1:0xdb,_0x11ea84:0x2c,_0x2b1691:0x56,_0x4f0136:0xe1,_0x3f3651:0xe0,_0x118506:0x109,_0x391cc5:0xf5,_0x3405ea:0xde},_0x1cea20={_0x5ed4e8:0xe5},_0x46ec6a={_0x532a6f:0x1ff};function _0x3b2334(_0x27aad7,_0x11a3d7,_0x3aae18,_0x20ef1b){return _0x1699(_0x11a3d7- -_0x46ec6a._0x532a6f,_0x27aad7);}function _0x553211(_0x2aa18f,_0x94153,_0x519e5b,_0x266b02){return _0x1699(_0x266b02- -_0x1cea20._0x5ed4e8,_0x2aa18f);}return{'model':_0x428fd8[_0x3b2334(-0x6,-0x23,-0x43,-_0x50dd80._0x5e240b)],..._0x428fd8[_0x553211(0xe7,0xd7,0xdb,0xf3)]!==void 0x0?{'maxTokens':_0x428fd8[_0x3b2334(-0x28,-_0x50dd80._0x33fc60,-0x18,-0x29)]}:{},..._0x428fd8[_0x553211(_0x50dd80._0x112d66,0xd6,0xe6,_0x50dd80._0x30cc7f)]?{'reasoning':structuredClone(_0x428fd8['reasoning'])}:{},'system':structuredClone(_0x428fd8['system']),'messages':structuredClone(_0x428fd8['messages']),'tools':structuredClone(_0x428fd8[_0x3b2334(-0x25,-0x10,0xa,-_0x50dd80._0x284844)]),'metadata':{'sessionId':_0x428fd8[_0x553211(_0x50dd80._0x362e99,_0x50dd80._0x5eb107,0xd2,0xdb)][_0x3b2334(-_0x50dd80._0xb04019,-0x2e,-0xd,-0x2b)],'turnId':_0x428fd8[_0x553211(_0x50dd80._0x44bdbe,0xe8,0xcc,_0x50dd80._0xc9e2f0)][_0x553211(0x117,_0x50dd80._0x19dc72,0x12c,_0x50dd80._0x4615ff)],..._0x428fd8[_0x553211(_0x50dd80._0x21eb0c,0xdf,_0x50dd80._0x1d9ee8,0xdb)][_0x3b2334(-_0x50dd80._0x4f6e68,-_0x50dd80._0x12a290,-0x47,-0xc)]!==void 0x0?{'modelIdentity':_0x428fd8['metadata'][_0x3b2334(-_0x50dd80._0xacd4c1,-_0x50dd80._0x2977e8,-_0x50dd80._0x44b0e9,-0x3c)]}:{},..._0x428fd8[_0x553211(_0x50dd80._0x84758d,_0x50dd80._0x3f468f,_0x50dd80._0x4543f2,_0x50dd80._0x5398f1)]['pricing_provider_id']!==void 0x0?{'pricingProviderId':_0x428fd8[_0x3b2334(-_0x50dd80._0x11ea84,-0x3f,-_0x50dd80._0x2b1691,-0x38)][_0x3b2334(-0x40,-0x3b,-0x55,-0x45)]}:{}},..._0x428fd8[_0x553211(_0x50dd80._0x4f0136,_0x50dd80._0x3f3651,_0x50dd80._0x118506,_0x50dd80._0x391cc5)]?{'outputFormat':structuredClone(_0x428fd8[_0x553211(_0x50dd80._0x3405ea,0xe3,0xdb,_0x50dd80._0x391cc5)])}:{}};}function toModelRequest(_0x4221dd){const _0x54a030={_0x47d1b7:0x2c1,_0x5906ae:0x2d7,_0x4c01fa:0x2d9,_0x22967a:0x241,_0xae316b:0x236,_0x564faa:0x307,_0x369e98:0x2af,_0x59b762:0x2b2,_0x29cbc8:0x2ab,_0x2cb0ff:0x2c4,_0xaca8b6:0x2ca,_0x8a8937:0x2f8,_0x2aa5bb:0x2dd,_0x1e199b:0x217,_0x4321e9:0x214,_0x35cb4f:0x237,_0x37bfac:0x216,_0x118801:0x2bb,_0x2a2fd1:0x2d6,_0x310985:0x1f9,_0x4d01e1:0x224,_0x54d06b:0x211,_0x36d56e:0x218,_0x13f60a:0x2c3,_0x478c4d:0x2b6,_0x4bdcf0:0x2bb,_0x325727:0x218,_0x14d213:0x20b,_0x4b11aa:0x2f2,_0x3815c6:0x2eb,_0x830fd7:0x2d2,_0x1291b2:0x2c6,_0x3aa39f:0x2cd,_0x1cf299:0x2d5,_0x73994b:0x2ef,_0x3ddc69:0x22a},_0x24e856={_0x547c4d:0xfb};function _0x543df7(_0x38b5cf,_0x1a7327,_0x46eabe,_0x1dfc8e){return _0x1699(_0x46eabe-_0x24e856._0x547c4d,_0x1dfc8e);}function _0x608962(_0x3ff4bd,_0xe47260,_0x283dde,_0x4823c3){return _0x1699(_0x283dde-0x4b,_0xe47260);}return{'model':_0x4221dd[_0x543df7(0x2f0,_0x54a030._0x47d1b7,_0x54a030._0x5906ae,_0x54a030._0x4c01fa)],..._0x4221dd[_0x608962(0x233,_0x54a030._0x22967a,_0x54a030._0xae316b,0x22c)]!==void 0x0?{'max_tokens':_0x4221dd[_0x543df7(_0x54a030._0x564faa,0x2c9,0x2e6,0x2d5)]}:{},..._0x4221dd[_0x543df7(_0x54a030._0x369e98,0x2b4,0x2c3,_0x54a030._0x59b762)]?{'reasoning':structuredClone(_0x4221dd['reasoning'])}:{},'system':structuredClone(_0x4221dd[_0x543df7(0x2ce,_0x54a030._0x29cbc8,_0x54a030._0x2cb0ff,0x2d5)]),'messages':structuredClone(_0x4221dd[_0x543df7(_0x54a030._0xaca8b6,_0x54a030._0x8a8937,_0x54a030._0x2aa5bb,0x2d4)]),'tools':structuredClone(_0x4221dd['tools']),'metadata':{'session_id':_0x4221dd[_0x608962(_0x54a030._0x1e199b,0x222,0x20b,0x215)][_0x608962(_0x54a030._0x4321e9,_0x54a030._0x35cb4f,_0x54a030._0x37bfac,0x21e)],'turn_id':_0x4221dd[_0x543df7(0x2a9,0x2bf,_0x54a030._0x118801,0x2ba)][_0x543df7(_0x54a030._0x2a2fd1,0x2c1,0x2b7,0x2d5)],..._0x4221dd[_0x608962(_0x54a030._0x310985,0x1f6,0x20b,_0x54a030._0x4d01e1)][_0x608962(_0x54a030._0x54d06b,0x239,_0x54a030._0x36d56e,0x234)]!==void 0x0?{'model_identity':_0x4221dd[_0x543df7(_0x54a030._0x13f60a,_0x54a030._0x478c4d,_0x54a030._0x4bdcf0,0x2c9)]['modelIdentity']}:{},..._0x4221dd[_0x608962(0x229,_0x54a030._0x325727,_0x54a030._0x14d213,0x1ec)]['pricingProviderId']!==void 0x0?{'pricing_provider_id':_0x4221dd['metadata'][_0x543df7(_0x54a030._0x4b11aa,_0x54a030._0x3815c6,_0x54a030._0x830fd7,0x2c2)]}:{}},..._0x4221dd[_0x543df7(_0x54a030._0x1291b2,_0x54a030._0x3aa39f,_0x54a030._0x1cf299,_0x54a030._0x73994b)]?{'outputFormat':structuredClone(_0x4221dd[_0x608962(_0x54a030._0x3ddc69,0x212,0x225,0x23c)])}:{}};}function toProviderModelRequest(_0x352cc1){const _0x11c8df={_0x5c5894:0x35e,_0x195c21:0x340,_0x1d7e34:0x360,_0xb8ffd0:0x37b,_0x338950:0x36a,_0x56a30e:0x39e,_0x2c55d5:0x394,_0x39296c:0x37f},_0x3723d8={_0x228e96:0x1b2};function _0x336bba(_0x505662,_0x3e4142,_0x3fd4c3,_0x153680){return _0x1699(_0x3fd4c3-0x16c,_0x505662);}function _0xd4a201(_0x50315f,_0x9aca02,_0x23c22c,_0x3d0340){return _0x1699(_0x23c22c-_0x3723d8._0x228e96,_0x9aca02);}return{'model':_0x352cc1[_0x336bba(_0x11c8df._0x5c5894,0x335,0x348,_0x11c8df._0x195c21)],..._0x352cc1['maxTokens']!==void 0x0?{'max_tokens':_0x352cc1[_0x336bba(0x344,0x367,0x357,0x372)]}:{},'system':structuredClone(_0x352cc1[_0xd4a201(_0x11c8df._0x1d7e34,0x36e,_0x11c8df._0xb8ffd0,_0x11c8df._0x338950)]),'messages':structuredClone(_0x352cc1[_0xd4a201(_0x11c8df._0x56a30e,0x3ac,_0x11c8df._0x2c55d5,_0x11c8df._0x39296c)]),'tools':structuredClone(_0x352cc1['tools'])};}function toChatResponse(_0x2b0b6a){const _0x1ebb62={_0xf57a99:0x15a,_0x333bdb:0x174,_0x11a586:0x173,_0x405267:0x172,_0x555556:0x12d,_0x1574ed:0x140,_0x5781c0:0x160,_0x36d491:0x13e,_0x2dbd77:0x148,_0x2b94a9:0x132,_0xf7e241:0x156,_0x504294:0x149,_0x4c239e:0x135,_0x1fb705:0x122,_0x278711:0x125,_0x240578:0x138,_0x54646b:0x127,_0x2053d8:0x14d,_0x3a8539:0x15c,_0xbad8ba:0x134,_0x406ffb:0x12b,_0xee97c7:0x13f,_0x1a8838:0x134,_0x572aac:0x133,_0x4ca000:0x11f},_0x573ae7={_0x248ccb:0x335};function _0x4bb8fb(_0x35a0b4,_0x5c4267,_0x31b911,_0x49a978){return _0x1699(_0x5c4267- -0xaa,_0x31b911);}function _0x20b066(_0x1bbc1a,_0x6eb549,_0x454213,_0x2407be){return _0x1699(_0x6eb549- -_0x573ae7._0x248ccb,_0x2407be);}return{'id':_0x2b0b6a['id'],'content':structuredClone(_0x2b0b6a[_0x20b066(-0x13f,-0x142,-0x15f,-_0x1ebb62._0xf57a99)]),'stopReason':_0x2b0b6a[_0x20b066(-_0x1ebb62._0x333bdb,-_0x1ebb62._0x11a586,-_0x1ebb62._0x405267,-0x18f)],'usage':{'inputTokens':_0x2b0b6a[_0x20b066(-0x12f,-0x13e,-_0x1ebb62._0x555556,-0x15c)][_0x4bb8fb(0x12b,_0x1ebb62._0x1574ed,_0x1ebb62._0x5781c0,_0x1ebb62._0x36d491)],'outputTokens':_0x2b0b6a[_0x20b066(-_0x1ebb62._0x2dbd77,-0x13e,-_0x1ebb62._0x2b94a9,-0x151)][_0x20b066(-_0x1ebb62._0xf7e241,-_0x1ebb62._0x504294,-_0x1ebb62._0x4c239e,-0x13d)],..._0x2b0b6a[_0x20b066(-0x15c,-0x13e,-_0x1ebb62._0x1fb705,-_0x1ebb62._0x278711)][_0x4bb8fb(_0x1ebb62._0x240578,0x12b,0x13a,_0x1ebb62._0x54646b)]!==void 0x0?{'reasoningTokens':_0x2b0b6a[_0x4bb8fb(_0x1ebb62._0x1574ed,_0x1ebb62._0x2053d8,_0x1ebb62._0x3a8539,0x157)][_0x4bb8fb(_0x1ebb62._0xbad8ba,_0x1ebb62._0x406ffb,0x136,0x122)]}:{}},..._0x2b0b6a[_0x4bb8fb(_0x1ebb62._0xee97c7,_0x1ebb62._0x1a8838,_0x1ebb62._0x572aac,0x131)]?{'providerState':structuredClone(_0x2b0b6a[_0x4bb8fb(0x132,_0x1ebb62._0xbad8ba,_0x1ebb62._0x4ca000,_0x1ebb62._0x406ffb)])}:{}};}function toModelResponse(_0x220daa){const _0xe85331={_0xb67fb8:0x488,_0x4f44b6:0x48e,_0x37fcc4:0x4a5,_0x55ff9f:0x4ba,_0x216917:0x4c7,_0x4f69e7:0x3d7,_0x2f2ccf:0x3cc,_0x48f09d:0x3cf,_0x42ae90:0x3ef,_0x27192b:0x4c8,_0x597a9:0x4d2,_0x4b4613:0x3d5,_0x2c760b:0x3be,_0x1f3e16:0x4b1,_0x506cee:0x3e6,_0x5eef18:0x3ea,_0x4a32c1:0x3b9,_0x1b0e6a:0x3a0,_0x58a266:0x4e7,_0x1f1f04:0x489,_0x118671:0x492,_0x20d4dc:0x4cc,_0x121b0e:0x4af,_0x18243e:0x4ad},_0x5399ff={_0x1d031f:0x2d1};function _0x2bc8b3(_0x410fd0,_0x420056,_0x24bd54,_0x31b9eb){return _0x1699(_0x24bd54-0x1dc,_0x410fd0);}function _0x437f76(_0x2c81e2,_0x7af52f,_0x4e1700,_0xd85e07){return _0x1699(_0x7af52f-_0x5399ff._0x1d031f,_0x2c81e2);}return{'id':_0x220daa['id'],'type':_0x437f76(_0xe85331._0xb67fb8,_0xe85331._0x4f44b6,0x485,_0xe85331._0x37fcc4),'role':_0x437f76(0x4d8,_0xe85331._0x55ff9f,_0xe85331._0x216917,0x4cb),'content':structuredClone(_0x220daa[_0x2bc8b3(_0xe85331._0x4f69e7,_0xe85331._0x2f2ccf,_0xe85331._0x48f09d,_0xe85331._0x42ae90)]),'stop_reason':_0x220daa[_0x437f76(_0xe85331._0x27192b,0x4ac,0x4a3,0x48f)],'stop_sequence':null,'usage':{'input_tokens':_0x220daa[_0x437f76(0x4ba,0x4c8,0x4e7,_0xe85331._0x597a9)]['inputTokens'],'output_tokens':_0x220daa[_0x2bc8b3(_0xe85331._0x4b4613,0x3ba,0x3d3,_0xe85331._0x2c760b)][_0x437f76(0x4a7,0x4c5,_0xe85331._0x1f3e16,0x4e2)],..._0x220daa[_0x2bc8b3(0x3b7,_0xe85331._0x506cee,0x3d3,_0xe85331._0x5eef18)][_0x2bc8b3(_0xe85331._0x4a32c1,0x393,0x39b,_0xe85331._0x1b0e6a)]!==void 0x0?{'reasoning_tokens':_0x220daa[_0x437f76(_0xe85331._0x58a266,_0xe85331._0x27192b,0x4d2,0x4d9)][_0x437f76(0x487,0x490,_0xe85331._0x1f1f04,_0xe85331._0x118671)]}:{}},..._0x220daa['providerState']?{'providerState':structuredClone(_0x220daa[_0x437f76(_0xe85331._0x20d4dc,_0xe85331._0x121b0e,0x4c9,_0xe85331._0x18243e)])}:{}};}function responseToAssistantMessage(_0x277355){const _0x295659={_0x2cf2df:0x117,_0x3c08de:0x11f,_0x36a493:0x291,_0xdb2dee:0x141,_0x3da119:0x12a,_0xe1fad3:0x123,_0x46fcf2:0x12a},_0x255800={_0x5a6e12:0x308};function _0x65977(_0x51dad5,_0x22f830,_0x4d3db6,_0x508bf9){return _0x1699(_0x508bf9- -_0x255800._0x5a6e12,_0x22f830);}function _0xc09e14(_0x16698d,_0x42e567,_0x423d56,_0x59b26a){return _0x1699(_0x59b26a-0x9e,_0x42e567);}return{'role':_0x65977(-0x135,-0x11b,-_0x295659._0x2cf2df,-_0x295659._0x3c08de),'content':normalizeContent(_0x277355[_0xc09e14(0x293,0x2b2,0x28a,_0x295659._0x36a493)]),..._0x277355[_0x65977(-_0x295659._0xdb2dee,-0x132,-0x125,-_0x295659._0x3da119)]?{'providerState':structuredClone(_0x277355[_0x65977(-0x11c,-0x10b,-_0x295659._0xe1fad3,-_0x295659._0x46fcf2)])}:{}};}function createReasoningMessage(_0x500118){const _0x1b9926={_0x26474c:0x4fe,_0x4d71a1:0x4dd,_0x520704:0x339,_0x34955a:0x319,_0x1e1e01:0x4f0,_0x2d7d02:0x4e4,_0x59402c:0x502,_0xed518d:0x4fd},_0x87fcd={_0x37ed5f:0x434,_0x7f67c8:0x199,_0xc27629:0x196,_0x23f2a0:0x16b,_0x1db269:0x181},_0x3e300a={_0x4a4624:0x30b},_0xe687eb={_0xb116b0:0x13a};function _0x587620(_0x4e9c1a,_0x3f10e0,_0x27c996,_0x4dcef6){return _0x1699(_0x4dcef6-_0xe687eb._0xb116b0,_0x3f10e0);}function _0x9b168a(_0x4a3f0a,_0x463124,_0x3a0d32,_0x54ad66){return _0x1699(_0x4a3f0a-_0x3e300a._0x4a4624,_0x54ad66);}const _0x253dfa=normalizeContent(_0x500118?.[_0x9b168a(_0x1b9926._0x26474c,0x4ea,0x4fb,_0x1b9926._0x4d71a1)])[_0x587620(0x339,0x31d,_0x1b9926._0x520704,_0x1b9926._0x34955a)](_0x597d9a=>{const _0x239068={_0x2ee355:0x1ee,_0x379672:0x173,_0x137a6d:0x13a},_0x22c121={_0x3b7d5e:0xf8,_0x5c905a:0x18b};function _0x4a3760(_0x4272c5,_0x1f72e6,_0x36cdc9,_0x437369){return _0x587620(_0x4272c5-_0x22c121._0x3b7d5e,_0x4272c5,_0x36cdc9-_0x22c121._0x5c905a,_0x36cdc9- -0x19a);}function _0x1ed997(_0x38335c,_0x31177e,_0x7a6ff,_0x4f4d1d){return _0x587620(_0x38335c-_0x239068._0x2ee355,_0x7a6ff,_0x7a6ff-_0x239068._0x379672,_0x4f4d1d-_0x239068._0x137a6d);}return _0x597d9a['type']==='anthropic_redacted_thinking'||_0x597d9a[_0x1ed997(0x440,_0x87fcd._0x37ed5f,0x449,0x455)]===_0x4a3760(_0x87fcd._0x7f67c8,0x187,_0x87fcd._0xc27629,0x1a1)||_0x597d9a[_0x4a3760(_0x87fcd._0x23f2a0,0x165,_0x87fcd._0x1db269,0x189)]==='openai_reasoning';});if(_0x253dfa[_0x9b168a(_0x1b9926._0x1e1e01,0x4d5,_0x1b9926._0x2d7d02,_0x1b9926._0x59402c)]===0x0)return void 0x0;return{'role':_0x9b168a(0x4f4,_0x1b9926._0xed518d,0x4d6,0x4dd),'content':_0x253dfa};}function createAssistantTextMessage(_0x47582a){const _0x5a6c2e={_0x42efe7:0x3f5,_0x290993:0x3d4,_0x8a0502:0x3e4,_0xd4bacd:0x3c9,_0x52507c:0x3d1,_0x2f7bea:0x3cb,_0x2f7083:0x4b4},_0x2eefc8={_0x3b8647:0x40c,_0x67c0b9:0x40e,_0x3bc3a8:0x574},_0x1d6848={_0x3578d7:0xc0,_0x2de33d:0xa6};function _0x3c5fdd(_0x45322,_0x547e23,_0x439feb,_0x41b612){return _0x1699(_0x41b612-0x1ec,_0x439feb);}const _0x4fcbde=normalizeContent(_0x47582a?.[_0x3c5fdd(_0x5a6c2e._0x42efe7,_0x5a6c2e._0x290993,_0x5a6c2e._0x8a0502,0x3df)])[_0x3c5fdd(_0x5a6c2e._0xd4bacd,0x3b4,_0x5a6c2e._0x52507c,_0x5a6c2e._0x2f7bea)](_0x1dd2ec=>{function _0x266d74(_0x11a6ff,_0x148433,_0x7cab9e,_0x1b16d9){return _0x29406f(_0x11a6ff-0x1d9,_0x7cab9e- -_0x1d6848._0x3578d7,_0x148433,_0x1b16d9-_0x1d6848._0x2de33d);}function _0x40e0ee(_0x2fc0b7,_0x392e2a,_0x545ba2,_0x1be80d){return _0x29406f(_0x2fc0b7-0x183,_0x1be80d-0x98,_0x545ba2,_0x1be80d-0x4e);}return _0x1dd2ec[_0x266d74(0x3fe,0x41b,_0x2eefc8._0x3b8647,_0x2eefc8._0x67c0b9)]===_0x40e0ee(_0x2eefc8._0x3bc3a8,0x56b,0x582,0x57e);});if(_0x4fcbde['length']===0x0)return void 0x0;function _0x29406f(_0x1f7ebe,_0x3b26e4,_0x46adc7,_0x2ca987){return _0x1699(_0x3b26e4-0x2eb,_0x46adc7);}return{'role':_0x29406f(0x4d1,0x4d4,0x4cc,_0x5a6c2e._0x2f7083),'content':_0x4fcbde};}function createToolUseMessage(_0x2473ef){const _0x2a4760={_0x476a6b:0x283,_0x1f4897:0x297,_0x2f30c6:0x28e,_0x1f7364:0x1c4},_0x29d5bd={_0x2c030f:0x3b9,_0x5ef6d5:0x3d7,_0x242d99:0x3bf,_0x3e88fb:0x3ba,_0x3f1400:0x3e7},_0x2ff111={_0x313bcb:0x1f5,_0x5ee708:0x1aa,_0xc687c1:0xe4},_0x4faec2={_0x5701b9:0x118,_0x5077df:0x38};function _0x2b78df(_0x422956,_0x3e7c0a,_0xacd4b1,_0x40f5c7){return _0x1699(_0x422956- -0x17,_0xacd4b1);}const _0x34c03a=normalizeContent(_0x2473ef?.[_0xc5272e(_0x2a4760._0x476a6b,0x26c,0x295,_0x2a4760._0x1f4897)])[_0xc5272e(0x26f,0x290,0x254,0x286)](_0x2dcba2=>{function _0x4daad9(_0x1da6be,_0x2131c8,_0x400e29,_0x50708f){return _0x2b78df(_0x2131c8- -0x2a7,_0x2131c8-_0x4faec2._0x5701b9,_0x1da6be,_0x50708f-_0x4faec2._0x5077df);}function _0x373d5b(_0x8ffc5a,_0x5eda6d,_0x2f0b86,_0x46fd8f){return _0x2b78df(_0x46fd8f-_0x2ff111._0x313bcb,_0x5eda6d-_0x2ff111._0x5ee708,_0x8ffc5a,_0x46fd8f-_0x2ff111._0xc687c1);}return _0x2dcba2[_0x373d5b(0x3d4,_0x29d5bd._0x2c030f,_0x29d5bd._0x5ef6d5,_0x29d5bd._0x242d99)]===_0x373d5b(_0x29d5bd._0x3e88fb,0x3d0,_0x29d5bd._0x3f1400,0x3db);});function _0xc5272e(_0x201cd9,_0xbc05a0,_0x5c19db,_0x2fe9c7){return _0x1699(_0x201cd9-0x90,_0x5c19db);}if(_0x34c03a[_0xc5272e(0x275,0x281,_0x2a4760._0x2f30c6,0x281)]===0x0)return void 0x0;return{'role':_0x2b78df(0x1d2,0x1df,_0x2a4760._0x1f7364,0x1c2),'content':_0x34c03a};}function getTextFromMessage(_0x58ef3){const _0xe28672={_0x48f0b3:0x426,_0x5660bb:0x41e,_0x5293f4:0x419,_0x105407:0x3ff,_0x5b79d7:0x3e7,_0x2cecc7:0x56b,_0x54771a:0x550},_0x5e3060={_0x5ae5a7:0x226};function _0x271dd9(_0x2f2531,_0x39fa6a,_0x1d659b,_0x1b9c26){return _0x1699(_0x1d659b-0x380,_0x39fa6a);}function _0x261a17(_0x2d1070,_0x547f36,_0x489259,_0x2ad777){return _0x1699(_0x2ad777-_0x5e3060._0x5ae5a7,_0x489259);}return normalizeContent(_0x58ef3?.[_0x261a17(_0xe28672._0x48f0b3,0x3fa,_0xe28672._0x5660bb,_0xe28672._0x5293f4)])[_0x261a17(0x3f2,_0xe28672._0x105407,_0xe28672._0x5b79d7,0x405)](_0x2fe85d=>_0x2fe85d[_0x261a17(0x3f8,0x3f7,0x3f0,0x407)]===_0x261a17(0x42d,0x40f,0x43d,0x421))[_0x271dd9(0x532,_0xe28672._0x2cecc7,_0xe28672._0x54771a,0x54d)](_0xfb7faf=>_0xfb7faf[_0x271dd9(0x589,0x59c,0x57b,0x576)])['join']('\x0a');}function getReasoningTextFromMessage(_0x4e70bd){const _0x21b9ce={_0xdd64b0:0x8f,_0x1fd6c5:0xc2},_0x3b2f4a={_0x167f61:0x25c,_0x140594:0x277,_0x40f873:0x263,_0x50438f:0x259,_0x496e31:0x271,_0x1a107b:0x27e,_0x1a2e27:0x24d,_0x21a627:0x242,_0x350c8d:0x24d,_0x260cd8:0x54,_0x109c3a:0x39,_0x34436c:0x23,_0x121e28:0x22,_0x4a212c:0x1b,_0xb000cb:0x10,_0xecd9b6:0x235,_0x1d26a1:0x24d,_0x5297e2:0x240,_0x2ca935:0x24c,_0x14ac77:0x19,_0x13361f:0x3a,_0x23c572:0x4a,_0x57797b:0x257,_0x41e8a3:0x21,_0x1422ad:0x2c,_0x54ca70:0x257,_0x13d41d:0x285,_0x125b24:0x257,_0x1178c2:0x260,_0x36fc96:0x271,_0x49fe08:0x5,_0x3cceeb:0x1,_0x4744f3:0x18,_0x5a06ba:0x1e,_0x100f75:0x247,_0x5d4113:0x260,_0x4f1331:0x22,_0x16a7d3:0x1f},_0x3fcaec={_0x2790f0:0x1b,_0x3e4d8a:0x2f9,_0x5076d3:0x189};function _0x2f0a3e(_0x3ce9b9,_0x6c76f9,_0x533689,_0x5a6a77){return _0x1699(_0x3ce9b9-0x285,_0x6c76f9);}function _0x4323ef(_0x3efd5a,_0x1693c7,_0x35f770,_0x28aee2){return _0x1699(_0x1693c7- -0x27e,_0x28aee2);}return normalizeContent(_0x4e70bd?.['content'])[_0x4323ef(-_0x21b9ce._0xdd64b0,-0xaa,-0x92,-_0x21b9ce._0x1fd6c5)](_0x91b3ba=>{if(_0x91b3ba[_0x47a873(0x261,0x246,_0x3b2f4a._0x167f61,_0x3b2f4a._0x140594)]===_0x47a873(_0x3b2f4a._0x40f873,_0x3b2f4a._0x50438f,_0x3b2f4a._0x496e31,_0x3b2f4a._0x1a107b))return _0x91b3ba[_0x47a873(_0x3b2f4a._0x1a2e27,_0x3b2f4a._0x21a627,_0x3b2f4a._0x350c8d,0x25e)][_0x524aff(-_0x3b2f4a._0x260cd8,-_0x3b2f4a._0x109c3a,-_0x3b2f4a._0x34436c,-0x20)]()[_0x524aff(-_0x3b2f4a._0x121e28,-_0x3b2f4a._0x4a212c,-_0x3b2f4a._0xb000cb,-_0x3b2f4a._0x109c3a)]>0x0?[_0x91b3ba[_0x47a873(0x268,_0x3b2f4a._0xecd9b6,_0x3b2f4a._0x1d26a1,0x257)]]:[];function _0x47a873(_0x13c991,_0x382f4b,_0x8954af,_0x56043b){return _0x4323ef(_0x13c991-_0x3fcaec._0x2790f0,_0x8954af-_0x3fcaec._0x3e4d8a,_0x8954af-_0x3fcaec._0x5076d3,_0x56043b);}if(_0x91b3ba[_0x47a873(_0x3b2f4a._0x5297e2,_0x3b2f4a._0x496e31,_0x3b2f4a._0x167f61,_0x3b2f4a._0x2ca935)]==='anthropic_redacted_thinking')return['(redacted\x20reasoning)'];if(_0x91b3ba[_0x524aff(-0x9,-0x1f,-0xb,-_0x3b2f4a._0x14ac77)]!==_0x524aff(-_0x3b2f4a._0x13361f,-0x31,-0x3e,-_0x3b2f4a._0x23c572))return[];const _0x511621=_0x91b3ba['summary'][_0x47a873(0x26a,_0x3b2f4a._0x57797b,0x24b,0x263)](_0x44a97d=>_0x44a97d[_0x524aff(-0x22,-0x5,0x18,-0x5)])[_0x524aff(-0x1e,-_0x3b2f4a._0x41e8a3,-0x42,-_0x3b2f4a._0x1422ad)](_0x3fc4d9=>_0x3fc4d9['trim']()[_0x47a873(0x268,0x252,0x260,0x27e)]>0x0)[_0x47a873(0x24b,_0x3b2f4a._0x54ca70,0x26c,_0x3b2f4a._0x13d41d)]('\x0a\x0a');function _0x524aff(_0x36cbd9,_0x4a8a31,_0x4ca3a0,_0x1faafd){return _0x4323ef(_0x36cbd9-0x1a6,_0x4a8a31-0x7e,_0x4ca3a0-0x175,_0x36cbd9);}if(_0x511621[_0x47a873(0x244,_0x3b2f4a._0x125b24,_0x3b2f4a._0x1178c2,_0x3b2f4a._0x36fc96)]>0x0)return[_0x511621];if(_0x91b3ba[_0x524aff(-0x1d,-_0x3b2f4a._0x49fe08,-_0x3b2f4a._0x3cceeb,_0x3b2f4a._0x4744f3)]&&_0x91b3ba[_0x524aff(-_0x3b2f4a._0x5a06ba,-0x5,0xf,-0x7)]['trim']()[_0x47a873(0x26f,_0x3b2f4a._0x100f75,_0x3b2f4a._0x5d4113,0x259)]>0x0)return[_0x91b3ba[_0x524aff(-_0x3b2f4a._0x4f1331,-0x5,0x1b,-0x1d)]];return _0x91b3ba['encryptedContent']?[_0x524aff(-_0x3b2f4a._0x4a212c,-0x12,-0x2e,-_0x3b2f4a._0x16a7d3)]:[];})[_0x4323ef(-0x79,-0x8d,-0x6c,-0xa4)]('\x0a\x0a');}function getToolUseBlocks(_0x352e0a){const _0x43267d={_0x3982d6:0x446,_0x2a431c:0x66},_0x1c74ed={_0x190ae4:0x243};function _0x34d1c3(_0x43540d,_0x161e6c,_0x3895bd,_0x476257){return _0x1699(_0x43540d-_0x1c74ed._0x190ae4,_0x3895bd);}function _0x3ead76(_0x1d1569,_0x44ad3b,_0x134344,_0x588b0f){return _0x1699(_0x1d1569- -0x179,_0x134344);}return normalizeContent(_0x352e0a?.[_0x34d1c3(0x436,_0x43267d._0x3982d6,0x443,0x415)])[_0x3ead76(_0x43267d._0x2a431c,0x69,0x5d,0x45)](_0x3a6e4f=>_0x3a6e4f['type']==='tool_use');}function _0x432c(){const _0x259d17=['y2fSBeLK','yxnZAxn0yw50','Aw5WDxrFDg9Rzw5Z','Bwf4vg9Rzw5Z','B3v0Chv0x3rVA2vUCW','owLAq1joyG','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Dg9VBhm','ChvZAa','AM9PBG','DhvYBL9Pza','y29UDgvUDa','B3v0Chv0vg9Rzw5Z','mtqWnJeWz25pvhjl','yw50AhjVCgLJx3rOAw5RAw5N','DxnHz2u','mZaYoteXmNjMtufxyq','mtqYmJqYuK5IuuTU','zxjYB3i','Dgv4Da','nNv1DMrWqW','Dg9VBf91C2u','DhvYBKLK','BwvZC2fNzq','mtbjvuTNA1a','CMvHC29UAw5Nvg9Rzw5Z','Bwv0ywrHDge','ndGWntm0meDvDvbhAa','C3rVCf9YzwfZB24','nKLoqLn4EG','ChjPy2LUz19WCM92AwrLCL9Pza','B3v0Chv0','nJq5otu1nujhBe9pza','DhjPBq','CMvHC29UAw5N','C3LZDgvT','AxnbCNjHEq','C2vZC2LVBKLK','AgfZ','Bw9KzwXjzgvUDgL0Eq','ywrK','B3bLBMfPx3jLyxnVBMLUzW','BwfW','C2vZC2LVBL9Pza','DgHPBMTPBMC','Dg9VBf91C2vFAwq','zMXHDe1HCa','CMvHC29UAw5Nx3rVA2vUCW','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','ChjPy2LUz1bYB3zPzgvYswq','Bwf4x3rVA2vUCW','Bw9KzwXFAwrLBNrPDhK','B3v0Chv0rM9YBwf0','C3rVCfjLyxnVBG','Bw9KzwW','C3rHDhvZ','ChjVDMLKzxjtDgf0zq','zMLSDgvY','DxnLCG','DhLWzq','BwvZC2fNzxm','Dg9VBf9Yzxn1Bhq','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','BgvUz3rO','odm1odm4m1vJrNDkEq','ntqYntq0mvLyD3nlCG'];_0x432c=function(){return _0x259d17;};return _0x432c();}function getToolResultBlocks(_0x511a9e){const _0x39512f={_0x2f81b4:0x2a3,_0x3ba8cd:0x2b8,_0x1b35a8:0x17f},_0x78fdc8={_0x3aa277:0x355};function _0x3fd2d5(_0xe8ac4a,_0x4ff770,_0x47689a,_0x379c89){return _0x1699(_0x4ff770-0xb0,_0xe8ac4a);}function _0x5dc116(_0x4d7178,_0x34f3cc,_0x2bc02c,_0x5c7692){return _0x1699(_0x4d7178- -_0x78fdc8._0x3aa277,_0x5c7692);}return normalizeContent(_0x511a9e?.[_0x3fd2d5(0x2af,0x2a3,_0x39512f._0x2f81b4,_0x39512f._0x3ba8cd)])[_0x5dc116(-0x176,-0x161,-_0x39512f._0x1b35a8,-0x15a)](_0x4c6b80=>_0x4c6b80[_0x3fd2d5(0x2a7,0x291,0x289,0x299)]===_0x5dc116(-0x172,-0x18c,-0x154,-0x181));}function createToolResultUserMessage(_0x17c9c3){const _0x4dadf3={_0x1e33c1:0x5d9,_0x1d77d5:0x5aa,_0x5e2285:0x59a},_0x3dbb8a={_0x52354a:0x1c9,_0x491cee:0x1ac,_0x19c0ce:0x1e8,_0x3800c9:0x1b3,_0x171342:0xa0,_0x50d332:0x199,_0x124767:0x1d7},_0x5da143={_0x2daa7c:0x401,_0x246b0f:0x143},_0xe63312={_0x367e0b:0x18e},_0x526fec={_0x5abc58:0x26a},_0x5a4223={_0xea7775:0x3de};function _0x5f44ee(_0x37f3e2,_0x469532,_0x43aecb,_0x53d1ea){return _0x1699(_0x37f3e2-_0x5a4223._0xea7775,_0x469532);}function _0x3e325e(_0x10f6bb,_0x1c4387,_0x302177,_0x50678b){return _0x1699(_0x10f6bb- -_0x526fec._0x5abc58,_0x50678b);}return{'role':_0x5f44ee(0x5be,_0x4dadf3._0x1e33c1,0x5db,_0x4dadf3._0x1d77d5),'content':_0x17c9c3[_0x5f44ee(0x5ae,0x5cd,0x5b7,_0x4dadf3._0x5e2285)](_0x527582=>{function _0x5a305d(_0x2d2b51,_0x18341e,_0x326b0e,_0x56fe92){return _0x3e325e(_0x2d2b51-0x2,_0x18341e-_0xe63312._0x367e0b,_0x326b0e-0x1eb,_0x18341e);}function _0x6e1d20(_0x290dcc,_0x276dad,_0x3b6c22,_0xaed32e){return _0x5f44ee(_0xaed32e- -_0x5da143._0x2daa7c,_0x290dcc,_0x3b6c22-0x1a7,_0xaed32e-_0x5da143._0x246b0f);}return{'type':'tool_result','tool_use_id':_0x527582[_0x6e1d20(_0x3dbb8a._0x52354a,0x1a7,_0x3dbb8a._0x491cee,0x1c5)],'content':_0x527582[_0x6e1d20(0x1af,_0x3dbb8a._0x19c0ce,_0x3dbb8a._0x3800c9,0x1d0)]??_0x527582[_0x5a305d(-0xa3,-_0x3dbb8a._0x171342,-0xc4,-0xb1)],'is_error':_0x527582[_0x6e1d20(_0x3dbb8a._0x50d332,0x1d9,0x1b7,0x1ba)]===_0x6e1d20(0x1f1,0x1d7,0x1f8,_0x3dbb8a._0x124767)};})};}function _0x1699(_0x4af56f,_0x102114){_0x4af56f=_0x4af56f-0x1bc;const _0x432c59=_0x432c();let _0x16995a=_0x432c59[_0x4af56f];if(_0x1699['OMljft']===undefined){var _0x36932a=function(_0x4ab5e6){const _0x356c46='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x40765c='',_0x2216b4='';for(let _0x3325e1=0x0,_0x252d02,_0x32268d,_0x243f18=0x0;_0x32268d=_0x4ab5e6['charAt'](_0x243f18++);~_0x32268d&&(_0x252d02=_0x3325e1%0x4?_0x252d02*0x40+_0x32268d:_0x32268d,_0x3325e1++%0x4)?_0x40765c+=String['fromCharCode'](0xff&_0x252d02>>(-0x2*_0x3325e1&0x6)):0x0){_0x32268d=_0x356c46['indexOf'](_0x32268d);}for(let _0x96f03=0x0,_0x2563ca=_0x40765c['length'];_0x96f03<_0x2563ca;_0x96f03++){_0x2216b4+='%'+('00'+_0x40765c['charCodeAt'](_0x96f03)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2216b4);};_0x1699['SzmeIb']=_0x36932a,_0x1699['juwljH']={},_0x1699['OMljft']=!![];}const _0x309d48=_0x432c59[0x0],_0x29f3f9=_0x4af56f+_0x309d48,_0x464f2=_0x1699['juwljH'][_0x29f3f9];return!_0x464f2?(_0x16995a=_0x1699['SzmeIb'](_0x16995a),_0x1699['juwljH'][_0x29f3f9]=_0x16995a):_0x16995a=_0x464f2,_0x16995a;}var INTERRUPTED_TOOL_RESULT_TEXT=_0x7d6272(0x433,0x43a,0x44e,0x41f);function synthesizeMissingToolResults(_0x16ae93){const _0x5a1913={_0x40c9bc:0x291,_0xcf7250:0x2a4,_0x5721bd:0x29e,_0x5dfacf:0x6c,_0x2f9931:0x2b5,_0x207060:0x2b9,_0x30feea:0x2d1,_0x391a4b:0x2c4,_0x538f3d:0x2cf,_0x57a01c:0x2ae,_0x3c70f3:0x2bb,_0x58ab5c:0x98,_0x301041:0x9c,_0x3de812:0x85,_0xdc8689:0x2a2},_0x166d0e={_0x4d2b96:0x4b8},_0x213c70={_0x3c1661:0x189,_0x1dbecc:0x1ef},_0x2f0978=new Set();for(const _0x1f3a0c of _0x16ae93){for(const _0x2980ea of getToolResultBlocks(_0x1f3a0c)){_0x2f0978[_0x29de8b(_0x5a1913._0x40c9bc,0x2a2,_0x5a1913._0xcf7250,_0x5a1913._0x5721bd)](_0x2980ea[_0xd00937(-0x88,-_0x5a1913._0x5dfacf,-0x8e,-0x97)]);}}function _0x29de8b(_0x2c4b64,_0xf0d365,_0x3b254d,_0x36de19){return _0x7d6272(_0xf0d365- -_0x213c70._0x3c1661,_0xf0d365-0x1ca,_0x2c4b64,_0x36de19-_0x213c70._0x1dbecc);}const _0x165cb7=[];for(const _0x2e2aa2 of _0x16ae93){_0x165cb7['push'](_0x2e2aa2);const _0x3fea9a=getToolUseBlocks(_0x2e2aa2)[_0xd00937(-0x7c,-0x93,-0x8a,-0x65)](_0x56c956=>!_0x2f0978[_0xd00937(-0x8f,-0x98,-0xaa,-0x8f)](_0x56c956['id']));if(_0x3fea9a[_0x29de8b(_0x5a1913._0x2f9931,_0x5a1913._0x207060,_0x5a1913._0x30feea,0x2ba)]===0x0)continue;_0x165cb7[_0x29de8b(0x2c3,_0x5a1913._0x391a4b,_0x5a1913._0x538f3d,0x2c1)]({'role':_0x29de8b(0x2ca,0x2b4,_0x5a1913._0x57a01c,_0x5a1913._0x3c70f3),'content':_0x3fea9a[_0xd00937(-0x8b,-_0x5a1913._0x58ab5c,-_0x5a1913._0x301041,-_0x5a1913._0x3de812)](_0x1e011d=>({'type':_0x29de8b(0x2ce,0x2b7,0x2ca,0x2cc),'tool_use_id':_0x1e011d['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x4a5f47 of _0x3fea9a){_0x2f0978[_0x29de8b(0x2b2,_0x5a1913._0xdc8689,0x29c,0x281)](_0x4a5f47['id']);}}function _0xd00937(_0xc45d30,_0xdf9b1e,_0x88a706,_0x12a283){return _0x7d6272(_0xc45d30- -_0x166d0e._0x4d2b96,_0xdf9b1e-0x37,_0x88a706,_0x12a283-0x28);}return _0x165cb7;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
1
+ (function(_0x356020,_0x551586){const _0x3e509a={_0x18feb1:0x569,_0x50e6d1:0x54a,_0x23f37a:0x560,_0x5e9232:0x54b,_0x3c58c5:0x56f,_0x433daa:0x185,_0x3d2bd7:0x194,_0x4f5d49:0x153,_0x51f5ca:0x143,_0xe1979d:0x150,_0x5449f9:0x13a,_0x204189:0x15a,_0x1ac42d:0x142,_0xcf8efc:0x160,_0x130fd3:0x157,_0x39c21e:0x17a,_0x12fecb:0x192,_0x224e4f:0x53e,_0x381ce8:0x549,_0x58c96f:0x522,_0x25292c:0x12f,_0x2a2eab:0x552,_0xb1f165:0x579,_0xa3fa8e:0x543,_0x25c5bb:0x541,_0x12f5d2:0x530},_0x5d8b22=_0x356020();function _0x42c55a(_0x5970ae,_0x67bc70,_0x23531c,_0x3648da){return _0x146e(_0x5970ae-0x384,_0x23531c);}function _0x4f9bfb(_0x27991c,_0x138b58,_0xe86510,_0x1d3ca8){return _0x146e(_0x27991c- -0x335,_0xe86510);}while(!![]){try{const _0x63b648=parseInt(_0x42c55a(_0x3e509a._0x18feb1,0x576,0x588,_0x3e509a._0x50e6d1))/0x1*(parseInt(_0x42c55a(_0x3e509a._0x23f37a,_0x3e509a._0x5e9232,_0x3e509a._0x3c58c5,0x576))/0x2)+-parseInt(_0x4f9bfb(-0x17c,-0x167,-_0x3e509a._0x433daa,-_0x3e509a._0x3d2bd7))/0x3+-parseInt(_0x4f9bfb(-_0x3e509a._0x4f5d49,-_0x3e509a._0x51f5ca,-_0x3e509a._0xe1979d,-_0x3e509a._0x5449f9))/0x4+parseInt(_0x4f9bfb(-_0x3e509a._0x204189,-0x15e,-_0x3e509a._0x1ac42d,-_0x3e509a._0xcf8efc))/0x5*(-parseInt(_0x4f9bfb(-0x147,-0x163,-0x167,-_0x3e509a._0x130fd3))/0x6)+-parseInt(_0x4f9bfb(-_0x3e509a._0x39c21e,-0x18f,-_0x3e509a._0x12fecb,-_0x3e509a._0xcf8efc))/0x7+-parseInt(_0x42c55a(_0x3e509a._0x224e4f,_0x3e509a._0x381ce8,0x524,_0x3e509a._0x58c96f))/0x8*(parseInt(_0x4f9bfb(-0x14e,-_0x3e509a._0x25292c,-0x14b,-0x15a))/0x9)+parseInt(_0x42c55a(0x571,0x58f,_0x3e509a._0x2a2eab,_0x3e509a._0xb1f165))/0xa*(parseInt(_0x42c55a(_0x3e509a._0xa3fa8e,0x544,_0x3e509a._0x25c5bb,_0x3e509a._0x12f5d2))/0xb);if(_0x63b648===_0x551586)break;else _0x5d8b22['push'](_0x5d8b22['shift']());}catch(_0x37a006){_0x5d8b22['push'](_0x5d8b22['shift']());}}}(_0x15b6,0xdb443));function createTextBlock(_0x5c2aeb){const _0x596da2={_0xcd6068:0xd9,_0x3a1031:0xe4};function _0x1f50d5(_0x502931,_0x211068,_0x3eea72,_0x21a741){return _0x146e(_0x3eea72- -0x2b8,_0x211068);}return{'type':_0x1f50d5(-0xce,-_0x596da2._0xcd6068,-_0x596da2._0x3a1031,-0xf9),'text':_0x5c2aeb};}function normalizeTextBlock(_0x3e6642){function _0x208df3(_0xb13794,_0x42aa3d,_0x256aa1,_0x3c2623){return _0x146e(_0x256aa1- -0x8b,_0x42aa3d);}return createTextBlock(_0x3e6642[_0x208df3(0x15b,0x142,0x149,0x146)]??'');}function normalizeContent(_0x22ae9a){const _0xdca904={_0x1a58bd:0x1a4,_0x5646ab:0x1c4},_0x43b6a7={_0x87fe68:0x104,_0x2bc87c:0xf1,_0x29fc47:0x129,_0x106d87:0x120},_0x36e6c7={_0x47f075:0x22},_0x3af155={_0x44f63f:0x255};if(typeof _0x22ae9a==='string')return[createTextBlock(_0x22ae9a)];if(!Array[_0x23060d(0x19d,0x18a,_0xdca904._0x1a58bd,0x1c5)](_0x22ae9a))return[];function _0xb53e2b(_0x49d74c,_0x3d5678,_0x2fd729,_0xb20915){return _0x146e(_0xb20915- -_0x3af155._0x44f63f,_0x49d74c);}function _0x23060d(_0x41bb4e,_0x1e8445,_0x3293af,_0x54ea98){return _0x146e(_0x3293af- -_0x36e6c7._0x47f075,_0x54ea98);}return _0x22ae9a[_0x23060d(0x1a2,0x1a1,0x1b4,_0xdca904._0x5646ab)](_0x30fec3=>{const _0x120b97={_0x258cef:0x6f,_0x5efed2:0x299},_0x4b8eb2={_0x3bd002:0x11};function _0x4c61b0(_0x5035a,_0x3b0dd4,_0x582829,_0x1dcbde){return _0xb53e2b(_0x1dcbde,_0x3b0dd4-0x87,_0x582829-_0x4b8eb2._0x3bd002,_0x582829-0x1aa);}if(_0x30fec3[_0x4c61b0(0xfa,_0x43b6a7._0x87fe68,0x103,_0x43b6a7._0x2bc87c)]===_0x4c61b0(0x126,0x13e,_0x43b6a7._0x29fc47,_0x43b6a7._0x106d87))return normalizeTextBlock(_0x30fec3);function _0x62ee0d(_0x3e553b,_0x57a42b,_0x203627,_0x1378c8){return _0x23060d(_0x3e553b-0x6f,_0x57a42b-_0x120b97._0x258cef,_0x203627- -_0x120b97._0x5efed2,_0x1378c8);}return structuredClone(_0x30fec3);});}function _0x146e(_0x3aa0d6,_0x1dc9a8){_0x3aa0d6=_0x3aa0d6-0x1ae;const _0x15b6ff=_0x15b6();let _0x146e88=_0x15b6ff[_0x3aa0d6];if(_0x146e['LUDsTm']===undefined){var _0x5daf89=function(_0x34689e){const _0x5dc556='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c2aeb='',_0x3e6642='';for(let _0x22ae9a=0x0,_0x30fec3,_0x30158c,_0x42e2a7=0x0;_0x30158c=_0x34689e['charAt'](_0x42e2a7++);~_0x30158c&&(_0x30fec3=_0x22ae9a%0x4?_0x30fec3*0x40+_0x30158c:_0x30158c,_0x22ae9a++%0x4)?_0x5c2aeb+=String['fromCharCode'](0xff&_0x30fec3>>(-0x2*_0x22ae9a&0x6)):0x0){_0x30158c=_0x5dc556['indexOf'](_0x30158c);}for(let _0x9e424c=0x0,_0x2cc7b2=_0x5c2aeb['length'];_0x9e424c<_0x2cc7b2;_0x9e424c++){_0x3e6642+='%'+('00'+_0x5c2aeb['charCodeAt'](_0x9e424c)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e6642);};_0x146e['KErEhT']=_0x5daf89,_0x146e['GJdJrN']={},_0x146e['LUDsTm']=!![];}const _0x25b4bd=_0x15b6ff[0x0],_0x1cff0c=_0x3aa0d6+_0x25b4bd,_0x23e608=_0x146e['GJdJrN'][_0x1cff0c];return!_0x23e608?(_0x146e88=_0x146e['KErEhT'](_0x146e88),_0x146e['GJdJrN'][_0x1cff0c]=_0x146e88):_0x146e88=_0x23e608,_0x146e88;}function normalizeSystem(_0x30158c=[]){const _0xf4ba32={_0x3f6df3:0xca},_0x391b25={_0x2c6167:0x223};function _0x5f3753(_0x18a752,_0x444f16,_0x2983bf,_0x557178){return _0x146e(_0x2983bf- -0x2a3,_0x444f16);}function _0x156a83(_0x4e4633,_0x546c5e,_0x1d9c4b,_0x34cb36){return _0x146e(_0x546c5e- -_0x391b25._0x2c6167,_0x1d9c4b);}return normalizeContent(_0x30158c)[_0x5f3753(-0xaa,-_0xf4ba32._0x3f6df3,-0xcb,-0xbc)](_0x42e2a7=>_0x42e2a7[_0x5f3753(-0xed,-0xe9,-0xf5,-0xdf)]===_0x156a83(-0x40,-0x4f,-0x62,-0x40));}function isProviderStateCompatible(_0x9e424c,_0x2cc7b2){const _0x39f124={_0xafd7c2:0xb5,_0x338e23:0xb2,_0x364e7f:0x395,_0x42a110:0x383,_0x3ab201:0x3be,_0x55e73b:0x3a0,_0x3793b5:0x3d3,_0x175525:0x3ae},_0x23b2ef={_0x1d5e5d:0x1df};function _0x4f152e(_0x5e3c3e,_0x530189,_0x4eeacc,_0x5a3eff){return _0x146e(_0x5e3c3e-_0x23b2ef._0x1d5e5d,_0x5a3eff);}const _0x28d127=_0x9e424c[_0x790263(-0xa3,-_0x39f124._0xafd7c2,-_0x39f124._0x338e23,-0x8b)]?.[_0x4f152e(_0x39f124._0x364e7f,0x3aa,0x393,_0x39f124._0x42a110)];function _0x790263(_0x2bf928,_0xf54642,_0x5a6c33,_0x4263de){return _0x146e(_0x2bf928- -0x284,_0xf54642);}return _0x28d127===void 0x0||_0x28d127===_0x2cc7b2[_0x4f152e(_0x39f124._0x3ab201,_0x39f124._0x55e73b,_0x39f124._0x3793b5,0x3bf)][_0x4f152e(0x396,_0x39f124._0x42a110,_0x39f124._0x175525,0x385)]||_0x28d127===_0x2cc7b2[_0x4f152e(0x3ad,0x3bb,0x3c3,0x39c)];}function normalizeMessage(_0xf773cf){const _0x3970a7={_0x19f98b:0x13d,_0x22e8d6:0x135,_0x392ae3:0x15c,_0x294bde:0x13e,_0x4dc465:0x1dc,_0x21a801:0x21a,_0x4cd0ce:0x159,_0x4abda6:0x13f},_0x5029ff={_0x156902:0x88},_0x28ce26={_0x47e0f4:0x1b};function _0x29aad0(_0x22851a,_0x1e6bce,_0x775681,_0x3a7744){return _0x146e(_0x22851a-_0x28ce26._0x47e0f4,_0x775681);}function _0x24231b(_0x1016f5,_0x3fb6fd,_0x306b21,_0x52a357){return _0x146e(_0x3fb6fd- -_0x5029ff._0x156902,_0x306b21);}return{...typeof _0xf773cf['id']===_0x24231b(_0x3970a7._0x19f98b,0x12d,_0x3970a7._0x22e8d6,0x146)?{'id':_0xf773cf['id']}:{},'role':_0xf773cf[_0x24231b(_0x3970a7._0x392ae3,0x13b,_0x3970a7._0x294bde,0x14c)],'content':normalizeContent(_0xf773cf[_0x29aad0(0x1f4,0x1dd,0x1eb,_0x3970a7._0x4dc465)]),..._0xf773cf[_0x29aad0(0x1fc,0x205,_0x3970a7._0x21a801,0x1f5)]?{'providerState':structuredClone(_0xf773cf[_0x24231b(0x13b,_0x3970a7._0x4cd0ce,0x15d,_0x3970a7._0x4abda6)])}:{}};}function compileRequest(_0x38ec2a){const _0x22f484={_0x1784d2:0x339,_0x2290db:0x33b,_0x494d3b:0x341,_0x1e4024:0x17f,_0x40d11f:0x194,_0x1503ab:0x1b4,_0x50e004:0x197,_0x492101:0x1a5,_0x48b7e9:0x18d,_0x3835a2:0x353,_0x2b1b8d:0x33f,_0x3cba44:0x350,_0x186714:0x1a6,_0x24ee76:0x1b3,_0x3eb5b7:0x1ba,_0x15ffce:0x32e,_0x5d8faf:0x33d,_0x1e46f0:0x1a7,_0x6500df:0x181,_0x3973d2:0x1b2,_0x532e98:0x196},_0x387852={_0xbaaeca:0x16b};function _0x11b66a(_0x5b4923,_0x31b90d,_0x39ba79,_0x372b61){return _0x146e(_0x5b4923-_0x387852._0xbaaeca,_0x372b61);}function _0x3e8412(_0x233f45,_0x5a4c47,_0x1e3d78,_0x396270){return _0x146e(_0x233f45- -0x37d,_0x396270);}return{'model':_0x38ec2a[_0x11b66a(_0x22f484._0x1784d2,0x353,_0x22f484._0x2290db,_0x22f484._0x494d3b)]??_0x3e8412(-0x19a,-0x1b6,-0x19a,-_0x22f484._0x1e4024),..._0x38ec2a[_0x3e8412(-_0x22f484._0x40d11f,-_0x22f484._0x1503ab,-_0x22f484._0x50e004,-_0x22f484._0x492101)]!==void 0x0?{'max_tokens':_0x38ec2a[_0x3e8412(-0x194,-0x19d,-_0x22f484._0x50e004,-_0x22f484._0x48b7e9)]}:{},..._0x38ec2a[_0x11b66a(_0x22f484._0x3835a2,_0x22f484._0x2b1b8d,_0x22f484._0x3cba44,0x34d)]?{'reasoning':structuredClone(_0x38ec2a[_0x3e8412(-0x195,-0x179,-_0x22f484._0x186714,-0x188)])}:{},'system':normalizeSystem(_0x38ec2a[_0x3e8412(-0x1b8,-0x1aa,-_0x22f484._0x24ee76,-0x1d0)]),'messages':_0x38ec2a[_0x3e8412(-0x1cb,-0x1d3,-_0x22f484._0x3eb5b7,-0x1c7)][_0x11b66a(0x341,_0x22f484._0x15ffce,_0x22f484._0x5d8faf,_0x22f484._0x2b1b8d)](normalizeMessage),'tools':structuredClone(_0x38ec2a[_0x3e8412(-0x192,-_0x22f484._0x1e46f0,-_0x22f484._0x6500df,-0x183)]??[]),'metadata':{'session_id':_0x38ec2a[_0x3e8412(-_0x22f484._0x3973d2,-_0x22f484._0x186714,-0x1c4,-_0x22f484._0x532e98)],'turn_id':_0x38ec2a[_0x3e8412(-0x1ae,-0x190,-0x1c3,-0x19e)]}};}function toChatRequest(_0x110fb0){const _0x796557={_0x747614:0x506,_0x101e5a:0x506,_0xcea8dc:0x503,_0x4aace5:0x32b,_0x371c6f:0x356,_0x56ca88:0x32c,_0x48166d:0x4be,_0x42472f:0x4bf,_0x5dab67:0x4dd,_0x34f75b:0x4ed,_0x11e679:0x2eb,_0x525b6e:0x2e1,_0xfb9019:0x307,_0xd44ed1:0x300,_0x1a9e96:0x4f7,_0x2fd1fd:0x4eb,_0x291c8b:0x2f0,_0x45f9d4:0x2ef,_0x521dff:0x316,_0x17e55b:0x4ff,_0x404179:0x50a,_0x51e2f9:0x4e7,_0x203ca4:0x317,_0x529476:0x341,_0x427115:0x34a,_0x23ec3a:0x32e,_0x361e3b:0x34c,_0x4f5e0a:0x334,_0x1737da:0x324,_0x2c9959:0x31a,_0x3909f7:0x32d,_0x8f2f73:0x30e,_0x121e47:0x30b,_0x1d8501:0x310,_0x23722b:0x30c,_0x34f54b:0x346,_0x5657b1:0x321,_0x5c4d51:0x332};function _0x410837(_0x27956b,_0x4fde37,_0x1d4e48,_0x531054){return _0x146e(_0x1d4e48-0x318,_0x27956b);}function _0x542bdf(_0x4ae1e9,_0x11beca,_0x4dfa31,_0x81fc6d){return _0x146e(_0x81fc6d-0x14e,_0x4dfa31);}return{'model':_0x110fb0[_0x410837(_0x796557._0x747614,_0x796557._0x101e5a,0x4e6,_0x796557._0xcea8dc)],..._0x110fb0[_0x542bdf(0x353,0x34f,0x345,0x337)]!==void 0x0?{'maxTokens':_0x110fb0['max_tokens']}:{},..._0x110fb0[_0x542bdf(_0x796557._0x4aace5,0x320,_0x796557._0x371c6f,0x336)]?{'reasoning':structuredClone(_0x110fb0[_0x542bdf(0x317,0x324,_0x796557._0x56ca88,0x336)])}:{},'system':structuredClone(_0x110fb0[_0x410837(_0x796557._0x48166d,_0x796557._0x42472f,_0x796557._0x5dab67,_0x796557._0x34f75b)]),'messages':structuredClone(_0x110fb0[_0x542bdf(_0x796557._0x11e679,_0x796557._0x525b6e,_0x796557._0xfb9019,_0x796557._0xd44ed1)]),'tools':structuredClone(_0x110fb0['tools']),'metadata':{'sessionId':_0x110fb0[_0x410837(0x4eb,0x512,_0x796557._0x1a9e96,_0x796557._0x2fd1fd)][_0x542bdf(_0x796557._0x291c8b,_0x796557._0x45f9d4,_0x796557._0x521dff,0x306)],'turnId':_0x110fb0[_0x410837(0x4f8,_0x796557._0x17e55b,0x4f7,_0x796557._0x404179)][_0x410837(_0x796557._0x51e2f9,0x4b8,0x4cb,0x4d0)],..._0x110fb0[_0x542bdf(_0x796557._0x203ca4,0x333,_0x796557._0x529476,0x32d)][_0x542bdf(0x339,_0x796557._0x427115,_0x796557._0x23ec3a,0x33a)]!==void 0x0?{'modelIdentity':_0x110fb0[_0x410837(0x4f5,0x506,_0x796557._0x1a9e96,0x4f9)][_0x542bdf(0x323,_0x796557._0x361e3b,_0x796557._0x4f5e0a,0x33a)]}:{},..._0x110fb0[_0x542bdf(_0x796557._0x1737da,0x34b,_0x796557._0x2c9959,_0x796557._0x3909f7)][_0x542bdf(0x31b,_0x796557._0x8f2f73,_0x796557._0x121e47,_0x796557._0x1d8501)]!==void 0x0?{'pricingProviderId':_0x110fb0['metadata'][_0x542bdf(0x330,_0x796557._0x23722b,0x2f9,0x310)]}:{}},..._0x110fb0[_0x542bdf(_0x796557._0x34f54b,_0x796557._0x203ca4,_0x796557._0x4f5e0a,0x332)]?{'outputFormat':structuredClone(_0x110fb0[_0x542bdf(_0x796557._0x5657b1,0x338,0x33c,_0x796557._0x5c4d51)])}:{}};}function toModelRequest(_0x672fb6){const _0x20186c={_0x1c3eef:0x578,_0x20a090:0x55c,_0x114cec:0x559,_0xf239b0:0x568,_0x407616:0x54c,_0x1f58af:0xba,_0x4eacd5:0x6f,_0x389749:0x79,_0x4e598f:0x595,_0x2e223f:0x576,_0x4043f9:0x57e,_0x1b86f6:0x91,_0x148072:0x83,_0x153cc3:0x99,_0x20d8ea:0x98,_0x58f2d4:0x560,_0x31f6da:0x99,_0x3cae00:0x545,_0x6df128:0x54e,_0x474708:0x526,_0x4ef3c6:0xaf,_0x29625e:0x54d,_0x30683c:0x53e,_0x4321b2:0x56d,_0x283720:0x58d,_0x4fff6d:0xa7,_0x62ce9c:0xc8,_0x599f8e:0x556,_0x3924af:0x577,_0x2aee66:0x94},_0x31c898={_0x4d8688:0x38e};function _0x2782df(_0x1cd9b9,_0x5dbd89,_0x5c4d2c,_0x212430){return _0x146e(_0x5dbd89-_0x31c898._0x4d8688,_0x1cd9b9);}function _0x21b1ee(_0x2659cd,_0x35abf7,_0x1ea66c,_0x1e98f9){return _0x146e(_0x1e98f9- -0x278,_0x1ea66c);}return{'model':_0x672fb6[_0x2782df(_0x20186c._0x1c3eef,0x55c,_0x20186c._0x20a090,0x575)],..._0x672fb6[_0x2782df(_0x20186c._0x114cec,_0x20186c._0xf239b0,_0x20186c._0x407616,0x554)]!==void 0x0?{'max_tokens':_0x672fb6[_0x21b1ee(-_0x20186c._0x1f58af,-0xb8,-0x99,-0x9e)]}:{},..._0x672fb6[_0x21b1ee(-0x97,-_0x20186c._0x4eacd5,-_0x20186c._0x389749,-0x90)]?{'reasoning':structuredClone(_0x672fb6[_0x2782df(_0x20186c._0x4e598f,_0x20186c._0x2e223f,_0x20186c._0x4043f9,0x576)])}:{},'system':structuredClone(_0x672fb6['system']),'messages':structuredClone(_0x672fb6['messages']),'tools':structuredClone(_0x672fb6['tools']),'metadata':{'session_id':_0x672fb6[_0x21b1ee(-_0x20186c._0x1b86f6,-_0x20186c._0x148072,-0x8b,-_0x20186c._0x153cc3)][_0x2782df(0x55b,0x559,0x54b,0x569)],'turn_id':_0x672fb6[_0x21b1ee(-0xa6,-_0x20186c._0x20d8ea,-0x91,-_0x20186c._0x153cc3)][_0x2782df(0x53e,0x55d,0x579,_0x20186c._0x58f2d4)],..._0x672fb6[_0x21b1ee(-0xa9,-0xb7,-0x98,-_0x20186c._0x31f6da)][_0x2782df(0x52e,_0x20186c._0x3cae00,_0x20186c._0x6df128,_0x20186c._0x474708)]!==void 0x0?{'model_identity':_0x672fb6[_0x21b1ee(-_0x20186c._0x4ef3c6,-0x7b,-0x78,-0x99)][_0x2782df(0x55c,0x545,_0x20186c._0x29625e,_0x20186c._0x30683c)]}:{},..._0x672fb6[_0x2782df(0x559,_0x20186c._0x4321b2,_0x20186c._0x4043f9,_0x20186c._0x283720)][_0x21b1ee(-0xad,-_0x20186c._0x4fff6d,-0xbf,-_0x20186c._0x62ce9c)]!==void 0x0?{'pricing_provider_id':_0x672fb6['metadata'][_0x21b1ee(-0xda,-0xac,-_0x20186c._0x4ef3c6,-0xc8)]}:{}},..._0x672fb6[_0x2782df(_0x20186c._0x599f8e,0x572,0x561,_0x20186c._0x3924af)]?{'outputFormat':structuredClone(_0x672fb6[_0x21b1ee(-0x86,-0x96,-0xab,-_0x20186c._0x2aee66)])}:{}};}function toProviderModelRequest(_0x1cbcba){const _0x5c01fd={_0x52b553:0x1b6,_0x2a8d72:0xff,_0x456012:0x103,_0x5315f6:0x19d,_0x8d63c1:0x153,_0x16d212:0x128,_0x2edffd:0x11f},_0x31b9f9={_0x2b561b:0x2fa};function _0x5d7808(_0x2c06b8,_0x15289e,_0x1e0e0a,_0x491c04){return _0x146e(_0x2c06b8- -0x384,_0x491c04);}function _0x594c07(_0x1e03d9,_0x44b36b,_0x591c3c,_0x16da7c){return _0x146e(_0x1e03d9- -_0x31b9f9._0x2b561b,_0x44b36b);}return{'model':_0x1cbcba[_0x5d7808(-_0x5c01fd._0x52b553,-0x1ac,-0x1b7,-0x1cc)],..._0x1cbcba[_0x594c07(-0x120,-_0x5c01fd._0x2a8d72,-_0x5c01fd._0x456012,-0x123)]!==void 0x0?{'max_tokens':_0x1cbcba[_0x5d7808(-0x1aa,-0x18d,-0x189,-_0x5c01fd._0x5315f6)]}:{},'system':structuredClone(_0x1cbcba[_0x594c07(-0x135,-0x145,-_0x5c01fd._0x8d63c1,-_0x5c01fd._0x16d212)]),'messages':structuredClone(_0x1cbcba['messages']),'tools':structuredClone(_0x1cbcba[_0x594c07(-0x10f,-_0x5c01fd._0x2edffd,-0x107,-0x122)])};}function toChatResponse(_0x171ede){const _0x3b589d={_0x1d6e47:0x1b0,_0x148277:0x1cd,_0x2bef00:0x465,_0x21884d:0x1bc,_0x3e4e72:0x471,_0xb13471:0x1d9,_0x44246c:0x1de,_0x19abdb:0x1d9},_0x2c3a9f={_0x5bd5ab:0x8};function _0x42f2b1(_0x3d06f7,_0x4dcfc3,_0x559157,_0x12eb7c){return _0x146e(_0x559157- -_0x2c3a9f._0x5bd5ab,_0x12eb7c);}function _0x4f4ac1(_0x29bbfa,_0x3b4e8b,_0x3932c5,_0x6a414d){return _0x146e(_0x3932c5-0x2b8,_0x3b4e8b);}return{'id':_0x171ede['id'],'content':structuredClone(_0x171ede['content']),'stopReason':_0x171ede['stop_reason'],'usage':{'inputTokens':_0x171ede[_0x42f2b1(0x1b3,_0x3b589d._0x1d6e47,_0x3b589d._0x148277,0x1ce)][_0x4f4ac1(0x496,_0x3b589d._0x2bef00,0x485,0x494)],'outputTokens':_0x171ede['usage'][_0x42f2b1(_0x3b589d._0x21884d,0x1bf,0x1b5,0x1d3)],..._0x171ede['usage'][_0x4f4ac1(_0x3b589d._0x3e4e72,0x49b,0x47c,0x45e)]!==void 0x0?{'reasoningTokens':_0x171ede['usage']['reasoning_tokens']}:{}},..._0x171ede[_0x42f2b1(0x1c8,0x1e9,_0x3b589d._0xb13471,_0x3b589d._0x44246c)]?{'providerState':structuredClone(_0x171ede[_0x42f2b1(0x1de,0x1d4,_0x3b589d._0x19abdb,0x1fa)])}:{}};}function toModelResponse(_0x472897){const _0x110d25={_0x11143a:0x40c,_0x2d98bd:0x43f,_0x205752:0x424,_0x55a430:0x43c,_0x1d6087:0x4b4,_0x36b121:0x4b2,_0x3c768f:0x41b,_0x3ccbb4:0x427,_0x3ed7df:0x4bf,_0x317d24:0x430,_0x1e44ff:0x3f3,_0x56828e:0x415,_0x1b3a4f:0x41b,_0x13a758:0x4db,_0x12de13:0x4d8,_0x2a2319:0x4ea,_0x36637f:0x4d8},_0xbac29f={_0xf22924:0x2f7};function _0x549d6b(_0x3ca392,_0x4098d8,_0x1a39ea,_0x3a5135){return _0x146e(_0x1a39ea-_0xbac29f._0xf22924,_0x4098d8);}function _0xb9651c(_0x484610,_0x4115e4,_0x5777bf,_0xb8d9c){return _0x146e(_0xb8d9c-0x252,_0x484610);}return{'id':_0x472897['id'],'type':_0xb9651c(0x421,0x3e6,_0x110d25._0x11143a,0x401),'role':_0xb9651c(_0x110d25._0x2d98bd,0x420,_0x110d25._0x205752,_0x110d25._0x55a430),'content':structuredClone(_0x472897[_0x549d6b(_0x110d25._0x1d6087,_0x110d25._0x36b121,0x4d0,0x4c4)]),'stop_reason':_0x472897['stopReason'],'stop_sequence':null,'usage':{'input_tokens':_0x472897[_0xb9651c(0x418,_0x110d25._0x3c768f,0x444,_0x110d25._0x3ccbb4)][_0x549d6b(0x4be,0x4cc,_0x110d25._0x3ed7df,0x4bc)],'output_tokens':_0x472897['usage'][_0xb9651c(0x417,_0x110d25._0x317d24,_0x110d25._0x1e44ff,0x412)],..._0x472897['usage'][_0xb9651c(_0x110d25._0x56828e,0x448,_0x110d25._0x1b3a4f,0x432)]!==void 0x0?{'reasoning_tokens':_0x472897[_0x549d6b(0x4ec,0x4e0,0x4cc,_0x110d25._0x13a758)]['reasoningTokens']}:{}},..._0x472897[_0x549d6b(0x4d6,0x4f2,_0x110d25._0x12de13,0x4bd)]?{'providerState':structuredClone(_0x472897[_0x549d6b(0x4dc,_0x110d25._0x2a2319,_0x110d25._0x36637f,0x4bd)])}:{}};}function responseToAssistantMessage(_0x17a601){const _0x162c3c={_0x2401e6:0x6b,_0x1c4da9:0x7d,_0x2e4f99:0x56,_0x4c3636:0x75},_0x6997ca={_0x1fa46b:0x2ac},_0x277b21={_0x176201:0x256};function _0x28057d(_0x117070,_0x565a3e,_0x5a1dfb,_0xd19b59){return _0x146e(_0xd19b59- -_0x277b21._0x176201,_0x5a1dfb);}function _0x19bcc3(_0x236fbd,_0xa2c3ab,_0x1e23c8,_0x3a83db){return _0x146e(_0x1e23c8-_0x6997ca._0x1fa46b,_0xa2c3ab);}return{'role':'assistant','content':normalizeContent(_0x17a601[_0x28057d(-_0x162c3c._0x2401e6,-0x7b,-0x91,-_0x162c3c._0x1c4da9)]),..._0x17a601[_0x19bcc3(0x47a,0x49a,0x48d,0x476)]?{'providerState':structuredClone(_0x17a601[_0x28057d(-_0x162c3c._0x2e4f99,-0x91,-0x54,-_0x162c3c._0x4c3636)])}:{}};}function createReasoningMessage(_0x3645a7){const _0x1e75af={_0x41913d:0x3ee,_0x442a9e:0x402,_0xac9d99:0x3d5,_0x416d19:0x3b6,_0x26fd31:0x3e3,_0x3e1013:0x3dd,_0x3e5606:0x3ff,_0xdc2b91:0x3fa},_0x1bedc0={_0x3ef06c:0x114},_0x22b2e0={_0x314754:0x535,_0x1769a5:0x55c,_0x3bb5cc:0x56d,_0x5dd8b1:0x562,_0x563780:0x55d,_0x331552:0x554,_0x5b6d11:0x5a3,_0x19e7da:0x57a},_0x3607f0={_0x2f749a:0x4ba},_0x566ac6={_0x12ec57:0x121,_0x2df2bc:0x14d},_0x481474=normalizeContent(_0x3645a7?.[_0x397321(0x40b,_0x1e75af._0x41913d,0x408,_0x1e75af._0x442a9e)])[_0x397321(_0x1e75af._0xac9d99,0x3ed,0x3d6,0x406)](_0x38fc1a=>{function _0x57d1f7(_0x41aa20,_0x352b5e,_0x3215b3,_0x47e55d){return _0xcfa1ec(_0x41aa20-_0x566ac6._0x12ec57,_0x352b5e-_0x566ac6._0x2df2bc,_0x41aa20,_0x47e55d-0x64);}function _0x4a8b31(_0x2d6658,_0x1dc6a9,_0x209922,_0x10bffe){return _0xcfa1ec(_0x2d6658-0x1a1,_0x10bffe-_0x3607f0._0x2f749a,_0x2d6658,_0x10bffe-0x136);}return _0x38fc1a['type']==='anthropic_redacted_thinking'||_0x38fc1a[_0x4a8b31(_0x22b2e0._0x314754,0x56f,0x568,0x554)]===_0x4a8b31(0x56c,0x552,_0x22b2e0._0x1769a5,_0x22b2e0._0x3bb5cc)||_0x38fc1a[_0x4a8b31(0x53b,_0x22b2e0._0x5dd8b1,_0x22b2e0._0x563780,_0x22b2e0._0x331552)]===_0x4a8b31(_0x22b2e0._0x5b6d11,0x570,_0x22b2e0._0x19e7da,0x584);});if(_0x481474[_0x397321(_0x1e75af._0x416d19,0x3c6,_0x1e75af._0x26fd31,_0x1e75af._0x3e1013)]===0x0)return void 0x0;function _0xcfa1ec(_0x119f5d,_0x4df78c,_0x4aa321,_0x48223a){return _0x146e(_0x4df78c- -_0x1bedc0._0x3ef06c,_0x4aa321);}function _0x397321(_0x1d8281,_0x5b9339,_0x231fc9,_0x149118){return _0x146e(_0x5b9339-0x215,_0x1d8281);}return{'role':_0x397321(0x412,_0x1e75af._0x3e5606,_0x1e75af._0xdc2b91,0x415),'content':_0x481474};}function createAssistantTextMessage(_0x323686){const _0x5f582b={_0xe86049:0x8,_0x24bf4a:0x1a,_0x5c12c8:0x215,_0x429ec6:0x238,_0x45c294:0x23},_0x28fe08={_0x566871:0xc2,_0x17bd6b:0xa7,_0x284682:0xac,_0x115107:0xd1,_0x4e52fa:0xf1},_0x200e27={_0x1c13af:0x103};function _0x34d854(_0x50904c,_0x21b94a,_0x23abbb,_0x4cdd33){return _0x146e(_0x23abbb- -0x3d9,_0x4cdd33);}const _0x41b945=normalizeContent(_0x323686?.[_0x35e5e2(0xd,-0x2,_0x5f582b._0xe86049,-0x1d)])[_0x35e5e2(0xf,-0x3,_0x5f582b._0x24bf4a,-_0x5f582b._0x24bf4a)](_0x137765=>{const _0x4872ce={_0xa0f45e:0x1e9,_0x29a556:0xef};function _0x5d646f(_0x15ff7f,_0x514780,_0x56cf51,_0x335df5){return _0x34d854(_0x15ff7f-_0x200e27._0x1c13af,_0x514780-0xf5,_0x15ff7f-0x2d6,_0x56cf51);}function _0x33300f(_0x5de351,_0x24e459,_0xaca365,_0xfb5c30){return _0x35e5e2(_0x5de351-_0x4872ce._0xa0f45e,_0x5de351-_0x4872ce._0x29a556,_0x24e459,_0xfb5c30-0x1f3);}return _0x137765[_0x33300f(_0x28fe08._0x566871,0xca,_0x28fe08._0x17bd6b,_0x28fe08._0x284682)]===_0x5d646f(_0x28fe08._0x115107,_0x28fe08._0x4e52fa,0xd3,0xeb);});if(_0x41b945[_0x34d854(-_0x5f582b._0x5c12c8,-_0x5f582b._0x429ec6,-0x228,-0x22b)]===0x0)return void 0x0;function _0x35e5e2(_0xfea5f7,_0x2409fc,_0x350679,_0x499884){return _0x146e(_0x2409fc- -0x1db,_0x350679);}return{'role':_0x35e5e2(0x1d,0xf,_0x5f582b._0x45c294,-0x3),'content':_0x41b945};}function createToolUseMessage(_0x1421f9){const _0xd407e8={_0x2a939f:0x1f3,_0x3ddb5c:0x241},_0x392f52={_0x40686b:0x4c1,_0x586da7:0x49b,_0x1b28cb:0x286},_0x45335e={_0x24ffb1:0x9a},_0x13e40b={_0x4664ca:0x3a5};function _0x40aa9c(_0xc1e269,_0x1076e3,_0x1b9d21,_0x43eaf6){return _0x146e(_0x43eaf6-0x57,_0xc1e269);}function _0x3ef5e6(_0x29096b,_0x35b6fc,_0x55565c,_0x5eb9ea){return _0x146e(_0x35b6fc- -_0x13e40b._0x4664ca,_0x55565c);}const _0x426c72=normalizeContent(_0x1421f9?.[_0x3ef5e6(-0x1bc,-0x1cc,-0x1d1,-0x1bb)])[_0x40aa9c(0x213,0x21e,0x211,0x22f)](_0x3115e5=>{const _0xf8cf7e={_0x531bc0:0x43,_0x34ebb0:0x6b2,_0x291a9c:0xe0};function _0x29fa6e(_0xced0db,_0x24b143,_0x275084,_0x4274b5){return _0x3ef5e6(_0xced0db-_0x45335e._0x24ffb1,_0x4274b5-0x47b,_0xced0db,_0x4274b5-0x177);}function _0x38cf7b(_0x94f40b,_0x11e93d,_0x50780c,_0x3e4772){return _0x3ef5e6(_0x94f40b-_0xf8cf7e._0x531bc0,_0x3e4772-_0xf8cf7e._0x34ebb0,_0x50780c,_0x3e4772-_0xf8cf7e._0x291a9c);}return _0x3115e5[_0x38cf7b(0x4c7,_0x392f52._0x40686b,_0x392f52._0x586da7,0x4bb)]===_0x29fa6e(0x297,_0x392f52._0x1b28cb,0x294,0x294);});if(_0x426c72[_0x3ef5e6(-0x1f1,-0x1f4,-_0xd407e8._0x2a939f,-0x20b)]===0x0)return void 0x0;return{'role':_0x40aa9c(_0xd407e8._0x3ddb5c,0x224,0x253,0x241),'content':_0x426c72};}function _0x15b6(){const _0x505ffc=['Aw5WDxrFDg9Rzw5Z','Bw9KzwW','DhvYBKLK','C3vTBwfYEq','AM9PBG','Dg9VBf9Yzxn1Bhq','B3v0Chv0','Dgv4Da','DxnHz2u','BwfW','zxjYB3i','zMLSDgvY','y29UDgvUDa','Bwf4vg9Rzw5Z','mteXnvDyrw5ttW','nJC2vhfWqvfV','DxnLCG','B3bLBMfPx3jLyxnVBMLUzW','Bwv0ywrHDge','CMvHC29UAw5Nvg9Rzw5Z','ChjVDMLKzxjtDgf0zq','ntaYntG0mfrsz0zYuW','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','B3v0Chv0rM9YBwf0','mJq0n3PjtezbDG','Dg9VBf91C2vFAwq','ow9Jz05Vua','CMvHC29UAw5N','Bwf4x3rVA2vUCW','yxnZAxn0yw50','Dg9VBhm','Bw9KzwXFAwrLBNrPDhK','nteZmdeWs0njz2Xb','mJe5nZjdu2Tgy1m','khjLzgfJDgvKihjLyxnVBMLUzYK','DhLWzq','BwvZC2fNzq','ChjPy2LUz1bYB3zPzgvYswq','BgvUz3rO','BwvZC2fNzxm','DhvYBL9Pza','AgfZ','C3rYAw5N','B3jPz2LUtw9KzwXjzgvUDgL0Eq','Bw9KzwXjzgvUDgL0Eq','C2vZC2LVBL9Pza','ndCZmdeXognsB0r6ta','ntm4nta0BKHNCuXy','otC1mJG2ovDZzMfRwa','y2fSBeLK','B3v0Chv0x3rVA2vUCW','Dg9VBf91C2u','mteXmuPYANbqta','B3v0Chv0vg9Rzw5Z','DhjPBq','ChjPy2LUz19WCM92AwrLCL9Pza','CM9Szq','CMvHC29UAw5Nx3rVA2vUCW','C3LZDgvT','AxnbCNjHEq','yw50AhjVCgLJx3rOAw5RAw5N','Aw5WDxruB2TLBNm','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','ywrK','C2vZC2LVBKLK','DgHPBMTPBMC'];_0x15b6=function(){return _0x505ffc;};return _0x15b6();}function getTextFromMessage(_0x14c92e){const _0x538eed={_0xa03520:0x119,_0xa712bf:0x104,_0x3afa19:0x121,_0x2f96ea:0xfb,_0x486058:0xfc};function _0x2383db(_0x2a725e,_0x3efce4,_0x3fd914,_0x281273){return _0x146e(_0x3fd914- -0xd5,_0x281273);}function _0xde32d0(_0x43cd97,_0x40ecfa,_0x4a2e3b,_0x2408bf){return _0x146e(_0x2408bf- -0xc8,_0x43cd97);}return normalizeContent(_0x14c92e?.[_0x2383db(0xe7,_0x538eed._0xa03520,_0x538eed._0xa712bf,0x120)])[_0xde32d0(0x116,_0x538eed._0x3afa19,0xff,0x110)](_0x3c8327=>_0x3c8327[_0xde32d0(0xcc,0xd1,0xe8,0xe6)]==='text')['map'](_0x29a52a=>_0x29a52a[_0x2383db(0x10e,0xf3,0xff,0xe0)])[_0x2383db(_0x538eed._0x2f96ea,0x112,_0x538eed._0x486058,0xeb)]('\x0a');}function getReasoningTextFromMessage(_0x2699d2){const _0x37dae2={_0x184b98:0x5b3,_0x11f116:0x58e,_0x552474:0x5a7,_0x4e820d:0x58f},_0x2fc08e={_0x1249c7:0x33b,_0xa724ec:0xc4,_0x2ee68c:0x346,_0x269a76:0x322,_0x5cf018:0x34a,_0x31a504:0x36a,_0xe6e853:0xe2,_0x5488e5:0xcf,_0x4a558a:0xc3,_0x44dde8:0xac,_0x3179f1:0x36f,_0x392c34:0xc3,_0x2c5690:0xb4,_0x562c22:0x336,_0x22701a:0x358,_0x5adef4:0x9e,_0x2fa183:0x9b,_0x3cadfd:0x365,_0x435791:0x351,_0x52d3f7:0x314,_0x3d330b:0x32a,_0xf5a04d:0x331,_0x217f67:0x36e,_0x3375e2:0x344,_0x3acdf3:0xa8,_0x4df0ad:0xa7,_0x29635d:0xa5,_0x2ef00b:0xd2,_0x2f185c:0xc0,_0x280858:0xd3},_0x469389={_0x333dcf:0x62e},_0x4e3819={_0x4aa5c2:0x24},_0x4a8c99={_0x160f80:0xc5};function _0x25d9d2(_0x3b1e02,_0x4076d8,_0x51b886,_0x1c3347){return _0x146e(_0x1c3347- -_0x4a8c99._0x160f80,_0x3b1e02);}function _0x32ad7a(_0x256181,_0x350e33,_0x46c2ad,_0x17f7c9){return _0x146e(_0x256181-0x3bd,_0x350e33);}return normalizeContent(_0x2699d2?.[_0x32ad7a(0x596,0x581,_0x37dae2._0x184b98,0x5a0)])['flatMap'](_0x2b8883=>{if(_0x2b8883[_0xf52fba(0x319,0x336,_0x2fc08e._0x1249c7,0x32e)]==='anthropic_thinking')return _0x2b8883[_0x3bdb4b(-0x84,-0xc5,-0xa5,-_0x2fc08e._0xa724ec)]['trim']()[_0xf52fba(_0x2fc08e._0x2ee68c,_0x2fc08e._0x269a76,_0x2fc08e._0x5cf018,0x331)]>0x0?[_0x2b8883[_0xf52fba(0x32b,0x34a,_0x2fc08e._0x31a504,0x34c)]]:[];if(_0x2b8883[_0x3bdb4b(-_0x2fc08e._0xe6e853,-_0x2fc08e._0x5488e5,-_0x2fc08e._0x4a558a,-_0x2fc08e._0x44dde8)]==='anthropic_redacted_thinking')return[_0xf52fba(0x372,0x38e,0x365,_0x2fc08e._0x3179f1)];if(_0x2b8883[_0x3bdb4b(-0xe3,-0xb2,-_0x2fc08e._0x392c34,-0xc6)]!==_0x3bdb4b(-0x96,-_0x2fc08e._0x2c5690,-0x93,-0xa8))return[];const _0xf4e1f0=_0x2b8883[_0xf52fba(_0x2fc08e._0x562c22,0x36f,_0x2fc08e._0x22701a,0x350)][_0x3bdb4b(-_0x2fc08e._0x5adef4,-0x7c,-_0x2fc08e._0x2fa183,-0xaf)](_0x4b328b=>_0x4b328b[_0x3bdb4b(-0xbd,-0x93,-0x9d,-0x98)])['filter'](_0x50d97f=>_0x50d97f[_0xf52fba(0x32e,0x34e,0x351,0x341)]()['length']>0x0)[_0xf52fba(0x353,_0x2fc08e._0x3cadfd,0x339,_0x2fc08e._0x435791)]('\x0a\x0a');function _0xf52fba(_0x11703f,_0x126f93,_0x523846,_0x52377a){return _0x32ad7a(_0x52377a- -0x23d,_0x11703f,_0x523846-_0x4e3819._0x4aa5c2,_0x52377a-0xa7);}if(_0xf4e1f0[_0xf52fba(_0x2fc08e._0x52d3f7,_0x2fc08e._0x3d330b,0x334,_0x2fc08e._0xf5a04d)]>0x0)return[_0xf4e1f0];function _0x3bdb4b(_0x268012,_0x930382,_0x503cd8,_0xda0d5f){return _0x32ad7a(_0x503cd8- -_0x469389._0x333dcf,_0xda0d5f,_0x503cd8-0xf,_0xda0d5f-0x26);}if(_0x2b8883[_0xf52fba(_0x2fc08e._0x217f67,0x33b,_0x2fc08e._0x3375e2,0x354)]&&_0x2b8883[_0x3bdb4b(-0x8b,-_0x2fc08e._0x3acdf3,-0x9d,-0xac)][_0x3bdb4b(-_0x2fc08e._0x4df0ad,-_0x2fc08e._0x29635d,-0xb0,-0xb3)]()[_0x3bdb4b(-_0x2fc08e._0x2c5690,-_0x2fc08e._0x2ef00b,-_0x2fc08e._0x2f185c,-_0x2fc08e._0x280858)]>0x0)return[_0x2b8883['text']];return _0x2b8883['encryptedContent']?['(encrypted\x20reasoning)']:[];})[_0x32ad7a(_0x37dae2._0x11f116,_0x37dae2._0x552474,_0x37dae2._0x4e820d,0x580)]('\x0a\x0a');}function getToolUseBlocks(_0x1a998a){const _0x25b983={_0xd22603:0x524,_0x43144b:0x521,_0x456059:0x503},_0x57542e={_0x25b9b3:0x296};function _0x307cab(_0x56a959,_0x10fdc2,_0x56c45b,_0x2d3dd3){return _0x146e(_0x10fdc2-0x348,_0x56c45b);}function _0x367600(_0x3691c7,_0x41e0d8,_0x45a578,_0x40c96e){return _0x146e(_0x41e0d8-_0x57542e._0x25b9b3,_0x3691c7);}return normalizeContent(_0x1a998a?.[_0x307cab(_0x25b983._0xd22603,_0x25b983._0x43144b,0x515,0x50e)])[_0x307cab(0x505,0x520,0x511,_0x25b983._0x456059)](_0x32715f=>_0x32715f[_0x307cab(0x4ef,0x4f6,0x4d5,0x4ef)]===_0x367600(0x46a,0x454,0x437,0x454));}function _0x2b77c3(_0x1c0815,_0x46ec4f,_0x436146,_0xb8d5b6){const _0x20ae0d={_0x53344d:0x72};return _0x146e(_0x46ec4f-_0x20ae0d._0x53344d,_0xb8d5b6);}function getToolResultBlocks(_0x428ba7){const _0x7a8818={_0x392631:0x188,_0x23eaf2:0x1ae},_0x24f2c1={_0x5554d3:0x365};function _0x8948d7(_0x40c264,_0x1188dc,_0x439407,_0x3f244e){return _0x146e(_0x439407- -_0x24f2c1._0x5554d3,_0x3f244e);}function _0x272ec3(_0x2d09ca,_0x59f914,_0x8b1d9,_0x4ad0ae){return _0x146e(_0x59f914- -0x30e,_0x4ad0ae);}return normalizeContent(_0x428ba7?.['content'])[_0x8948d7(-_0x7a8818._0x392631,-_0x7a8818._0x23eaf2,-0x18d,-0x1a5)](_0x39811e=>_0x39811e[_0x8948d7(-0x197,-0x1c2,-0x1b7,-0x1be)]===_0x272ec3(-0x146,-0x13c,-0x137,-0x13f));}function createToolResultUserMessage(_0x2c6d7f){const _0x19ec22={_0x8966c:0x4a,_0x32dab7:0x42,_0xbe582c:0x6f},_0x21f463={_0x190387:0x2f5,_0x3e85f6:0x3d2,_0x1df4ca:0x40f,_0x229b6b:0x3f2,_0x46641f:0x3dc,_0x471f5c:0x412,_0x578e3c:0x2ed,_0x38eeaa:0x2fa,_0x4bb47d:0x2fb},_0x19e319={_0x536979:0x45,_0xcef6d7:0x8f};function _0x53e0aa(_0x1ae790,_0x4048ac,_0x361e87,_0x34d4dc){return _0x146e(_0x1ae790- -0x6a,_0x4048ac);}function _0x55c3ab(_0x10226a,_0x4ae2a7,_0x2425ad,_0x3b2718){return _0x146e(_0x10226a- -0x183,_0x3b2718);}return{'role':_0x55c3ab(0x5a,_0x19ec22._0x8966c,_0x19ec22._0x32dab7,_0x19ec22._0x8966c),'content':_0x2c6d7f[_0x55c3ab(0x53,_0x19ec22._0xbe582c,0x44,0x4a)](_0x37bd42=>{const _0x16616f={_0x46f31b:0x3a2,_0x2dd45b:0x1de};function _0x5e4cda(_0x4c5e1b,_0x5b5848,_0x1fbc61,_0x2aa039){return _0x53e0aa(_0x5b5848-0x18d,_0x4c5e1b,_0x1fbc61-_0x19e319._0x536979,_0x2aa039-_0x19e319._0xcef6d7);}function _0x49243f(_0x4c4c70,_0x2b4d2f,_0x2c6ac4,_0x2ae1dc){return _0x55c3ab(_0x2b4d2f-_0x16616f._0x46f31b,_0x2b4d2f-0x14a,_0x2c6ac4-_0x16616f._0x2dd45b,_0x4c4c70);}return{'type':_0x5e4cda(0x2da,_0x21f463._0x190387,0x2fd,0x2f7),'tool_use_id':_0x37bd42[_0x49243f(0x3fb,0x3db,_0x21f463._0x3e85f6,0x3e4)],'content':_0x37bd42[_0x49243f(0x413,0x3f8,_0x21f463._0x1df4ca,0x40a)]??_0x37bd42[_0x49243f(0x3d5,_0x21f463._0x229b6b,_0x21f463._0x46641f,_0x21f463._0x471f5c)],'is_error':_0x37bd42['status']===_0x5e4cda(_0x21f463._0x578e3c,_0x21f463._0x38eeaa,_0x21f463._0x4bb47d,0x2e5)};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x2b77c3(0x222,0x23b,0x251,0x235);function synthesizeMissingToolResults(_0x415aba){const _0x18d444={_0x2e8eec:0xb4,_0x347b6d:0x5b4,_0x1cc996:0x59f,_0x26ba7a:0x5ae,_0x24f473:0x5a0,_0x2ecbf5:0xd6,_0x38228f:0xc0,_0x493cc4:0xda,_0x4b7e2e:0xbb,_0x2bd168:0x570},_0x3757e9={_0x4f420b:0xb6,_0x11e665:0x30a},_0x17ff88={_0x297fd6:0x347,_0x5f0582:0x11c};function _0x57304b(_0x1aa3cc,_0x3c518b,_0x48a801,_0x31f981){return _0x2b77c3(_0x1aa3cc-0x150,_0x3c518b-_0x17ff88._0x297fd6,_0x48a801-_0x17ff88._0x5f0582,_0x48a801);}const _0x11467a=new Set();for(const _0x28ae6b of _0x415aba){for(const _0x2c1e16 of getToolResultBlocks(_0x28ae6b)){_0x11467a[_0x4d5cb1(-_0x18d444._0x2e8eec,-0xbc,-0xce,-0xe9)](_0x2c1e16[_0x57304b(_0x18d444._0x347b6d,_0x18d444._0x1cc996,_0x18d444._0x26ba7a,_0x18d444._0x24f473)]);}}function _0x4d5cb1(_0x2eb943,_0x2ed777,_0x2f9b24,_0x4150b7){return _0x2b77c3(_0x2eb943-_0x3757e9._0x4f420b,_0x2f9b24- -_0x3757e9._0x11e665,_0x2f9b24-0x1cb,_0x4150b7);}const _0x1a8151=[];for(const _0x767a2f of _0x415aba){_0x1a8151['push'](_0x767a2f);const _0x355f8d=getToolUseBlocks(_0x767a2f)[_0x4d5cb1(-0xd0,-_0x18d444._0x2ecbf5,-_0x18d444._0x38228f,-0xd5)](_0x2fceb5=>!_0x11467a[_0x4d5cb1(-0xdd,-0xe9,-0xe4,-0xcd)](_0x2fceb5['id']));if(_0x355f8d['length']===0x0)continue;_0x1a8151['push']({'role':_0x4d5cb1(-_0x18d444._0x493cc4,-0xac,-_0x18d444._0x4b7e2e,-0x9a),'content':_0x355f8d[_0x57304b(0x5a1,0x58f,0x584,_0x18d444._0x2bd168)](_0x4976f2=>({'type':'tool_result','tool_use_id':_0x4976f2['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x2d9f6e of _0x355f8d){_0x11467a['add'](_0x2d9f6e['id']);}}return _0x1a8151;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,isProviderStateCompatible,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
@@ -1 +1 @@
1
- (function(_0x3d129d,_0xfe87db){const _0x3d17f8={_0x49144e:0x296,_0x13e381:0x28f,_0x2fe576:0x283,_0x3d2631:0x287,_0x28d616:0x290,_0x3ebb8e:0x28d,_0xd9f61:0x2a2,_0x4d79f8:0x29e,_0x2d2b8c:0x2a2,_0x5e5318:0x25,_0x15d148:0x21,_0x4e81eb:0x29d,_0x49fd9b:0x29c,_0x5d4c5e:0x16,_0x50cbd2:0x298,_0x3fcff6:0x9,_0x130b30:0x14,_0x5a3cb4:0x10};function _0x58af68(_0x28230d,_0x4f1fe3,_0x3b9459,_0x4f1474){return _0x4079(_0x4f1fe3-0x12d,_0x4f1474);}function _0x1c9a62(_0x2bfe32,_0x225277,_0x2efea3,_0x3ad2ef){return _0x4079(_0x3ad2ef- -0x17e,_0x2efea3);}const _0x4cc1fb=_0x3d129d();while(!![]){try{const _0x36d5c9=parseInt(_0x58af68(_0x3d17f8._0x49144e,0x28f,_0x3d17f8._0x13e381,_0x3d17f8._0x2fe576))/0x1*(-parseInt(_0x58af68(0x291,_0x3d17f8._0x3d2631,0x293,0x291))/0x2)+-parseInt(_0x58af68(0x2a3,0x297,_0x3d17f8._0x28d616,0x298))/0x3+parseInt(_0x58af68(_0x3d17f8._0x3ebb8e,0x296,_0x3d17f8._0xd9f61,0x299))/0x4+parseInt(_0x58af68(0x2a6,_0x3d17f8._0x4d79f8,0x2a7,_0x3d17f8._0x2d2b8c))/0x5+-parseInt(_0x1c9a62(-0x2d,-_0x3d17f8._0x5e5318,-0x16,-_0x3d17f8._0x15d148))/0x6+-parseInt(_0x58af68(_0x3d17f8._0x4e81eb,_0x3d17f8._0x49fd9b,0x299,0x2a7))/0x7*(parseInt(_0x1c9a62(-0x18,-0x14,-_0x3d17f8._0x5d4c5e,-0x1d))/0x8)+-parseInt(_0x58af68(0x29c,_0x3d17f8._0x50cbd2,0x291,_0x3d17f8._0x49fd9b))/0x9*(-parseInt(_0x1c9a62(-_0x3d17f8._0x3fcff6,-0x1a,-_0x3d17f8._0x130b30,-_0x3d17f8._0x5a3cb4))/0xa);if(_0x36d5c9===_0xfe87db)break;else _0x4cc1fb['push'](_0x4cc1fb['shift']());}catch(_0xeaad1a){_0x4cc1fb['push'](_0x4cc1fb['shift']());}}}(_0x47bd,0xbef04));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function normalizeMediaType(_0x59302d){const _0x44c159={_0x47f193:0x48a,_0x107115:0x494,_0x555028:0x48d},_0x4212f8={_0x39670f:0x39f};function _0x326cf3(_0x1e093c,_0x5e7c4d,_0x3f2a1f,_0x1a3a82){return _0x4079(_0x3f2a1f- -_0x4212f8._0x39670f,_0x1a3a82);}function _0x5804bf(_0x53d53e,_0x1c227e,_0xc245d4,_0x37b405){return _0x4079(_0x37b405-0x326,_0xc245d4);}return _0x59302d===_0x5804bf(0x48f,0x48e,_0x44c159._0x47f193,0x484)?_0x5804bf(0x488,_0x44c159._0x107115,0x481,_0x44c159._0x555028):_0x59302d;}function isValidBase64(_0x125f92){const _0x3810dd={_0x145705:0x3fb,_0x19e596:0x3fa,_0x2c2299:0x139,_0x2c7002:0x122,_0x50fbd9:0x12e},_0x1c0d74={_0x364a5e:0x28d};function _0x390c5a(_0x46c7ba,_0x429ccc,_0x23f690,_0x745340){return _0x4079(_0x23f690-0x28f,_0x46c7ba);}function _0x1eeb66(_0x369d38,_0x1bfa8c,_0x3b98a9,_0x4a0341){return _0x4079(_0x4a0341- -_0x1c0d74._0x364a5e,_0x369d38);}if(_0x125f92[_0x390c5a(_0x3810dd._0x145705,_0x3810dd._0x19e596,0x3fc,0x405)]===0x0||_0x125f92['length']%0x4!==0x0)return![];return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x1eeb66(-_0x3810dd._0x2c2299,-_0x3810dd._0x2c7002,-0x138,-_0x3810dd._0x50fbd9)](_0x125f92);}function _0x4079(_0x3504c2,_0x3f8176){_0x3504c2=_0x3504c2-0x15a;const _0x47bdc2=_0x47bd();let _0x40790f=_0x47bdc2[_0x3504c2];if(_0x4079['YkHxIs']===undefined){var _0x4eff92=function(_0x57b241){const _0x236651='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x59302d='',_0x125f92='';for(let _0x4f5b6a=0x0,_0x477f60,_0x16af6f,_0x24b50d=0x0;_0x16af6f=_0x57b241['charAt'](_0x24b50d++);~_0x16af6f&&(_0x477f60=_0x4f5b6a%0x4?_0x477f60*0x40+_0x16af6f:_0x16af6f,_0x4f5b6a++%0x4)?_0x59302d+=String['fromCharCode'](0xff&_0x477f60>>(-0x2*_0x4f5b6a&0x6)):0x0){_0x16af6f=_0x236651['indexOf'](_0x16af6f);}for(let _0x1c562d=0x0,_0x36f4f2=_0x59302d['length'];_0x1c562d<_0x36f4f2;_0x1c562d++){_0x125f92+='%'+('00'+_0x59302d['charCodeAt'](_0x1c562d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x125f92);};_0x4079['TDqKCZ']=_0x4eff92,_0x4079['MNthzD']={},_0x4079['YkHxIs']=!![];}const _0x4758d5=_0x47bdc2[0x0],_0x58745b=_0x3504c2+_0x4758d5,_0x5bf6c0=_0x4079['MNthzD'][_0x58745b];return!_0x5bf6c0?(_0x40790f=_0x4079['TDqKCZ'](_0x40790f),_0x4079['MNthzD'][_0x58745b]=_0x40790f):_0x40790f=_0x5bf6c0,_0x40790f;}function collectImageMatches(_0x4f5b6a){const _0x430442={_0x299572:0x356,_0x3274b0:0x355,_0x1661a4:0x3a0,_0x717fcd:0x397,_0x2f389b:0x38d,_0x28bc34:0x39c,_0x310003:0x35b,_0xc793e9:0x35a},_0x4db808={_0x3bb6ad:0x166},_0x586870={_0x1d77fb:0x165},_0x25511d={_0x40993a:0x1f3},_0x22b229={_0xad4f22:0x23b};function _0x2adf98(_0x2f1265,_0x1fc513,_0x5a1ae6,_0x2663a4){return _0x4079(_0x5a1ae6-_0x22b229._0xad4f22,_0x2f1265);}DATA_URI_REGEX[_0x4ffb09(_0x430442._0x299572,0x351,_0x430442._0x3274b0,0x35d)]=0x0;function _0x4ffb09(_0x350b5f,_0x365687,_0x28ce2a,_0xb19f1a){return _0x4079(_0x350b5f-_0x25511d._0x40993a,_0x365687);}return Array[_0x2adf98(0x399,0x399,_0x430442._0x1661a4,_0x430442._0x717fcd)](_0x4f5b6a[_0x2adf98(_0x430442._0x2f389b,_0x430442._0x28bc34,0x396,0x398)](DATA_URI_REGEX))[_0x4ffb09(0x35f,_0x430442._0x310003,_0x430442._0x3274b0,_0x430442._0xc793e9)](_0x477f60=>{const _0x16af6f=(_0x477f60[0x2]??'')[_0x49d5b7(0x16a,0x15d,_0x4db808._0x3bb6ad,0x15b)](/[\r\n]/g,'');function _0x49d5b7(_0x1d01e1,_0x5eb6ee,_0x261da7,_0x4b0ee2){return _0x2adf98(_0x1d01e1,_0x5eb6ee-_0x586870._0x1d77fb,_0x5eb6ee- -0x242,_0x4b0ee2-0x1f4);}return isValidBase64(_0x16af6f);});}function hasPastedImages(_0x24b50d){const _0x1b1f3a={_0x181b19:0x551,_0xaf5a58:0x544,_0x13d8e7:0x541};function _0x48bd02(_0x20b33d,_0x477ffa,_0x3159f4,_0x2661e9){return _0x4079(_0x3159f4-0x3dd,_0x477ffa);}return collectImageMatches(_0x24b50d)[_0x48bd02(_0x1b1f3a._0x181b19,_0x1b1f3a._0xaf5a58,0x54a,_0x1b1f3a._0x13d8e7)]>0x0;}function contentFromPastedText(_0x1c562d){const _0x2d94f1={_0x3f6176:0x9,_0x2d3f09:0xf,_0x23eb2c:0x222,_0x506d75:0x220,_0x352450:0x21a,_0x27d686:0x21f,_0x569852:0x21b,_0x14091b:0x1,_0x41c23d:0x8,_0x2b86ac:0x5,_0x1064fb:0xd,_0x33d97c:0x227,_0xf2103d:0x228,_0x1f6c35:0x19,_0x1df811:0x17,_0x2440da:0x1b,_0x39722c:0x1c},_0x36f4f2=collectImageMatches(_0x1c562d),_0x142745=[];function _0x3d76ff(_0x52a6e3,_0x33cfd8,_0x3dc6bb,_0xcc9062){return _0x4079(_0x52a6e3-0xba,_0xcc9062);}let _0x4effd4=0x0;for(const _0x36c3c0 of _0x36f4f2){const _0x5225e9=_0x36c3c0[_0x4c35a7(_0x2d94f1._0x3f6176,0xd,0xe,_0x2d94f1._0x2d3f09)]??0x0,[_0xae2acc,_0x18b9f6,_0x346eac]=_0x36c3c0;_0x5225e9>_0x4effd4&&_0x142745[_0x3d76ff(_0x2d94f1._0x23eb2c,_0x2d94f1._0x506d75,0x223,0x22e)]({'type':_0x3d76ff(0x22c,0x222,0x224,0x22c),'text':_0x1c562d[_0x3d76ff(_0x2d94f1._0x352450,0x226,_0x2d94f1._0x27d686,_0x2d94f1._0x569852)](_0x4effd4,_0x5225e9)}),_0x142745['push']({'type':_0x3d76ff(0x22a,0x229,0x223,0x231),'source':{'type':_0x4c35a7(_0x2d94f1._0x14091b,0x6,-_0x2d94f1._0x41c23d,_0x2d94f1._0x2b86ac),'media_type':normalizeMediaType(_0x18b9f6),'data':_0x346eac[_0x4c35a7(0x10,0x15,0xb,_0x2d94f1._0x1064fb)](/[\r\n]/g,'')}}),_0x4effd4=_0x5225e9+_0xae2acc[_0x3d76ff(_0x2d94f1._0x33d97c,_0x2d94f1._0x352450,_0x2d94f1._0xf2103d,0x220)];}_0x4effd4<_0x1c562d['length']&&_0x142745['push']({'type':_0x4c35a7(0x14,_0x2d94f1._0x1f6c35,_0x2d94f1._0x1df811,_0x2d94f1._0x2440da),'text':_0x1c562d[_0x3d76ff(0x21a,0x223,0x215,0x216)](_0x4effd4)});function _0x4c35a7(_0x351a0b,_0x241690,_0x3e6c3e,_0xe2aed){return _0x4079(_0xe2aed- -0x157,_0x3e6c3e);}return _0x142745[_0x4c35a7(_0x2d94f1._0x39722c,0xa,0x11,0x16)]>0x0?_0x142745:[{'type':_0x4c35a7(0x26,0x1f,0x1f,0x1b),'text':_0x1c562d}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};function _0x47bd(){const _0x31ff70=['BgvUz3rO','mJGYnJqXntbtsvrRBvu','ndeZCwXVEKvx','Aw1Hz2u','nJKXodaZmenkAfzgvG','Dgv4Da','mtm3oev5AMvssa','Bwf0y2HbBgW','yMfZzty0','odqYmty5nKLpuLDxEG','Aw1Hz2uVANbN','DgvZDa','C2XPy2u','oteXndr2AKniCuq','mJe1m1PoDwreDa','BgfZDeLUzgv4','CMvWBgfJzq','zNjVBq','Aw5KzxG','Aw1Hz2uVANbLzW','ChvZAa','ntu5odCYzfDku3PL','mJyWntvrruHSrg0','ou9vr2jbwG','zMLSDgvY'];_0x47bd=function(){return _0x31ff70;};return _0x47bd();}
1
+ function _0x3f62(_0x191d3f,_0x29fd01){_0x191d3f=_0x191d3f-0xe5;const _0x477d48=_0x477d();let _0x3f62ff=_0x477d48[_0x191d3f];if(_0x3f62['fZkdKo']===undefined){var _0x41b6fa=function(_0xc0780a){const _0x45d85b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3602e5='',_0x43d4be='';for(let _0x2ae1c3=0x0,_0x4a6bd6,_0x10da8e,_0x271a69=0x0;_0x10da8e=_0xc0780a['charAt'](_0x271a69++);~_0x10da8e&&(_0x4a6bd6=_0x2ae1c3%0x4?_0x4a6bd6*0x40+_0x10da8e:_0x10da8e,_0x2ae1c3++%0x4)?_0x3602e5+=String['fromCharCode'](0xff&_0x4a6bd6>>(-0x2*_0x2ae1c3&0x6)):0x0){_0x10da8e=_0x45d85b['indexOf'](_0x10da8e);}for(let _0x10b05=0x0,_0x544f72=_0x3602e5['length'];_0x10b05<_0x544f72;_0x10b05++){_0x43d4be+='%'+('00'+_0x3602e5['charCodeAt'](_0x10b05)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x43d4be);};_0x3f62['MvBiZp']=_0x41b6fa,_0x3f62['ZLLEty']={},_0x3f62['fZkdKo']=!![];}const _0x4505e4=_0x477d48[0x0],_0xc74308=_0x191d3f+_0x4505e4,_0x32af6f=_0x3f62['ZLLEty'][_0xc74308];return!_0x32af6f?(_0x3f62ff=_0x3f62['MvBiZp'](_0x3f62ff),_0x3f62['ZLLEty'][_0xc74308]=_0x3f62ff):_0x3f62ff=_0x32af6f,_0x3f62ff;}(function(_0x271569,_0x41aa52){const _0x446854={_0x28dbda:0x58,_0x561d7a:0x51,_0x3290f8:0x2fe,_0x466a46:0x2ee,_0x397c7d:0x2ee,_0x370e7f:0x2ec,_0x1f2629:0x2f0,_0x7bf955:0x4b,_0x4ccec4:0x53,_0x23032d:0x4d,_0x251817:0x5c,_0x5001bc:0x54,_0x15eea7:0x2f6,_0x1f0439:0x2ea,_0x36a8aa:0x43,_0x58567c:0x50},_0x520773={_0x5ccfbe:0x3de};function _0x3fa39b(_0x2d90c4,_0x5aae6c,_0x2c3c57,_0x46bc9f){return _0x3f62(_0x5aae6c- -_0x520773._0x5ccfbe,_0x2c3c57);}const _0x2b5995=_0x271569();function _0x710a31(_0x3142ca,_0x1bb6ac,_0x2bedc9,_0x28e25e){return _0x3f62(_0x28e25e- -0x13f,_0x1bb6ac);}while(!![]){try{const _0x2408e3=-parseInt(_0x710a31(-_0x446854._0x28dbda,-_0x446854._0x561d7a,-0x50,-0x59))/0x1+-parseInt(_0x3fa39b(-0x2ed,-0x2f6,-_0x446854._0x3290f8,-_0x446854._0x466a46))/0x2+-parseInt(_0x3fa39b(-0x2eb,-_0x446854._0x397c7d,-_0x446854._0x370e7f,-_0x446854._0x1f2629))/0x3+parseInt(_0x710a31(-_0x446854._0x7bf955,-_0x446854._0x4ccec4,-0x48,-_0x446854._0x23032d))/0x4+parseInt(_0x710a31(-0x56,-0x5b,-_0x446854._0x251817,-_0x446854._0x5001bc))/0x5+-parseInt(_0x3fa39b(-_0x446854._0x15eea7,-0x2f1,-0x2f3,-0x2f9))/0x6+-parseInt(_0x3fa39b(-0x2e9,-0x2ef,-_0x446854._0x1f0439,-0x2e8))/0x7*(-parseInt(_0x710a31(-_0x446854._0x36a8aa,-0x55,-_0x446854._0x58567c,-0x4b))/0x8);if(_0x2408e3===_0x41aa52)break;else _0x2b5995['push'](_0x2b5995['shift']());}catch(_0x4cf0c5){_0x2b5995['push'](_0x2b5995['shift']());}}}(_0x477d,0xba8c2));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-YNOIG4FD.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,((?:[A-Za-z0-9+/]|\r?\n(?!data:))+={0,2})/g;function normalizeMediaType(_0x3602e5){const _0x25c72a={_0x5b155e:0x33e,_0x5bde94:0x336};function _0x59a2eb(_0x58989d,_0x412a70,_0x425278,_0x3e9b9f){return _0x3f62(_0x58989d-0x23f,_0x425278);}return _0x3602e5==='image/jpg'?_0x59a2eb(0x335,0x339,_0x25c72a._0x5b155e,_0x25c72a._0x5bde94):_0x3602e5;}function isValidBase64(_0x43d4be){const _0x471f32={_0x2333b5:0x1c0,_0x21fad6:0x1d2,_0x105c8b:0x1ca,_0x10cafb:0x1c9,_0x21f6f0:0x1c7,_0x556e21:0x1ca};function _0x329c51(_0x4281f8,_0x31d0a0,_0xd54c97,_0x2ee94a){return _0x3f62(_0x31d0a0-0x19a,_0x2ee94a);}if(_0x43d4be[_0x2c4fb1(-_0x471f32._0x2333b5,-_0x471f32._0x21fad6,-_0x471f32._0x105c8b,-_0x471f32._0x10cafb)]===0x0||_0x43d4be[_0x2c4fb1(-0x1d3,-_0x471f32._0x21f6f0,-_0x471f32._0x556e21,-0x1cc)]%0x4!==0x0)return![];function _0x2c4fb1(_0x388f0c,_0x2a8d7c,_0x5ceef6,_0x82c460){return _0x3f62(_0x5ceef6- -0x2b6,_0x388f0c);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x43d4be);}function collectImageMatches(_0x2ae1c3){const _0x149587={_0x15fe8b:0x2ca,_0x2cedde:0x2c2,_0x2ad732:0x2c8};function _0x46cdac(_0x2ae918,_0xb51b43,_0x2db92e,_0x50675){return _0x3f62(_0x50675-0x3a9,_0x2db92e);}function _0x1f438f(_0x331a1c,_0xc3ce6a,_0x5b27c1,_0x5e8540){return _0x3f62(_0x5e8540-0x1e1,_0x5b27c1);}return DATA_URI_REGEX[_0x1f438f(_0x149587._0x15fe8b,0x2cb,0x2db,0x2d2)]=0x0,Array['from'](_0x2ae1c3[_0x1f438f(0x2ce,_0x149587._0x2cedde,0x2cc,_0x149587._0x15fe8b)](DATA_URI_REGEX))[_0x1f438f(0x2c2,0x2cb,_0x149587._0x2ad732,0x2c8)](_0x4a6bd6=>{const _0x10da8e=(_0x4a6bd6[0x2]??'')['replace'](/[\r\n]/g,'');return isValidBase64(_0x10da8e);});}function hasPastedImages(_0x271a69){const _0x5a41ba={_0x180427:0x22f,_0x525f1f:0x231,_0x1e33a4:0x237,_0x301c4a:0x236},_0xe147ca={_0x535fc6:0x14b};function _0xfd8137(_0x2df904,_0x27b840,_0x334dc7,_0x307858){return _0x3f62(_0x334dc7-_0xe147ca._0x535fc6,_0x27b840);}return collectImageMatches(_0x271a69)[_0xfd8137(_0x5a41ba._0x180427,_0x5a41ba._0x525f1f,_0x5a41ba._0x1e33a4,_0x5a41ba._0x301c4a)]>0x0;}function contentFromPastedText(_0x10b05){const _0x3971f1={_0x247589:0x11f,_0x11581e:0x125,_0x223566:0x121,_0x4e2b81:0x123,_0x313de7:0x12c,_0x47c77d:0x12c,_0x2f4e4f:0x1ff,_0x129a5d:0x204,_0x242042:0x136,_0x5f5cad:0x131,_0x96dc27:0x12a,_0x5d2628:0x127,_0x392e1a:0x123,_0x496df2:0x128,_0x2782af:0x128,_0x4ae36c:0x129,_0x38ce38:0x132},_0x544f72=collectImageMatches(_0x10b05);function _0x44bb05(_0x1a1153,_0x77bd3d,_0x4cad52,_0x5bb6eb){return _0x3f62(_0x5bb6eb-0x10f,_0x4cad52);}const _0x3f8fd2=[];function _0x31884a(_0x4cca31,_0x2a97fe,_0x3daabe,_0x4fd7da){return _0x3f62(_0x3daabe- -0x216,_0x2a97fe);}let _0x34ac65=0x0;for(const _0x10c587 of _0x544f72){const _0x224f8b=_0x10c587[_0x31884a(-0x117,-0x121,-_0x3971f1._0x247589,-0x129)]??0x0,[_0x32e731,_0xfa4c28,_0x501521]=_0x10c587;_0x224f8b>_0x34ac65&&_0x3f8fd2[_0x31884a(-_0x3971f1._0x11581e,-0x124,-0x12c,-0x126)]({'type':_0x44bb05(0x207,0x201,0x1f5,0x1fd),'text':_0x10b05[_0x31884a(-0x121,-_0x3971f1._0x223566,-_0x3971f1._0x4e2b81,-0x11e)](_0x34ac65,_0x224f8b)}),_0x3f8fd2[_0x31884a(-0x12c,-_0x3971f1._0x313de7,-_0x3971f1._0x47c77d,-0x132)]({'type':_0x44bb05(_0x3971f1._0x2f4e4f,0x204,0x208,_0x3971f1._0x129a5d),'source':{'type':'base64','media_type':normalizeMediaType(_0xfa4c28),'data':_0x501521[_0x31884a(-_0x3971f1._0x242042,-0x12f,-_0x3971f1._0x5f5cad,-0x13b)](/[\r\n]/g,'')}}),_0x34ac65=_0x224f8b+_0x32e731[_0x31884a(-0x120,-_0x3971f1._0x4e2b81,-0x12a,-_0x3971f1._0x96dc27)];}return _0x34ac65<_0x10b05[_0x31884a(-0x12a,-0x12c,-_0x3971f1._0x96dc27,-0x128)]&&_0x3f8fd2[_0x31884a(-_0x3971f1._0x5d2628,-_0x3971f1._0x392e1a,-0x12c,-_0x3971f1._0x496df2)]({'type':'text','text':_0x10b05[_0x31884a(-_0x3971f1._0x2782af,-_0x3971f1._0x4ae36c,-0x123,-0x11c)](_0x34ac65)}),_0x3f8fd2[_0x31884a(-0x133,-0x128,-0x12a,-0x12a)]>0x0?_0x3f8fd2:[{'type':_0x31884a(-_0x3971f1._0x38ce38,-0x121,-0x128,-0x12e),'text':_0x10b05}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,isProviderStateCompatible,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};function _0x477d(){const _0x1ec685=['ChvZAa','mtaWmZaWmhzRCenrzG','BgvUz3rO','mZe4ndu2mgjHuMjfAa','Dgv4Da','ndmXoxHZwMXqCG','nduZmJCYn0LqzeLkwG','BgfZDeLUzgv4','mZG1otu2ohPzy2PTzW','C2XPy2u','nduWodHYEufrr1C','Aw1Hz2u','Aw1Hz2uVANbLzW','Aw5KzxG','CMvWBgfJzq','mtaYotCYmwDMwhrWwa','zMLSDgvY','mtyXndGZmLzPvfbPuq','Bwf0y2HbBgW'];_0x477d=function(){return _0x1ec685;};return _0x477d();}
@@ -1 +1 @@
1
- (function(_0x55c2ec,_0x337b7b){const _0x3b5cb9={_0x2aa2d4:0x259,_0x10366c:0x254,_0x2badc8:0x284,_0x56ea9f:0x269,_0x39cc60:0x20f,_0x55dfbc:0x1d7,_0x2769d5:0x24a,_0x51fc18:0x25f,_0x5d2220:0x200,_0x45ffee:0x207,_0x45cffd:0x28d,_0x2014e0:0x28f,_0x4b9afd:0x260,_0x55df67:0x25a,_0x3387a8:0x265,_0x1570c5:0x25d,_0x255470:0x255,_0x4a14d5:0x235,_0x46b474:0x235};function _0x581708(_0x3ed976,_0x5303a4,_0x2702de,_0x261f07){return _0xc1ae(_0x261f07- -0x27e,_0x2702de);}function _0x1d43d5(_0x2140bf,_0x3c2f97,_0x531e8a,_0x37f5c7){return _0xc1ae(_0x37f5c7- -0x2f8,_0x3c2f97);}const _0xff1feb=_0x55c2ec();while(!![]){try{const _0x15b670=parseInt(_0x1d43d5(-_0x3b5cb9._0x2aa2d4,-_0x3b5cb9._0x10366c,-_0x3b5cb9._0x2badc8,-_0x3b5cb9._0x56ea9f))/0x1*(-parseInt(_0x581708(-_0x3b5cb9._0x39cc60,-0x1e8,-0x21a,-0x1fd))/0x2)+-parseInt(_0x581708(-0x1ea,-0x1bb,-0x1f2,-_0x3b5cb9._0x55dfbc))/0x3*(parseInt(_0x1d43d5(-0x25c,-0x269,-_0x3b5cb9._0x2769d5,-_0x3b5cb9._0x51fc18))/0x4)+-parseInt(_0x581708(-0x21e,-_0x3b5cb9._0x5d2220,-0x209,-_0x3b5cb9._0x45ffee))/0x5+parseInt(_0x1d43d5(-_0x3b5cb9._0x45cffd,-0x262,-_0x3b5cb9._0x2014e0,-0x26e))/0x6+parseInt(_0x1d43d5(-0x23a,-_0x3b5cb9._0x4b9afd,-0x272,-_0x3b5cb9._0x55df67))/0x7+parseInt(_0x1d43d5(-0x243,-0x278,-0x255,-_0x3b5cb9._0x3387a8))/0x8*(-parseInt(_0x1d43d5(-_0x3b5cb9._0x1570c5,-0x238,-0x233,-_0x3b5cb9._0x255470))/0x9)+parseInt(_0x581708(-0x21f,-_0x3b5cb9._0x4a14d5,-_0x3b5cb9._0x46b474,-0x217))/0xa*(parseInt(_0x581708(-0x1f3,-0x20d,-0x1e2,-0x203))/0xb);if(_0x15b670===_0x337b7b)break;else _0xff1feb['push'](_0xff1feb['shift']());}catch(_0x4dbd05){_0xff1feb['push'](_0xff1feb['shift']());}}}(_0x5d60,0x77117));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x435b9c,_0x1e1205,_0x44df08=DEFAULT_TIMEOUT_S,_0x556bdf){const _0x3df013={_0x34346d:0x458,_0x2e66b1:0x463},_0x36db2c={_0x121c57:0x21c,_0x409256:0x223,_0x1da577:0x20b,_0x24c7f6:0x1f2,_0x416d13:0x202,_0x3a9576:0x358,_0x393c0f:0x33c,_0x480f65:0x339,_0x1c7cbb:0x209,_0x47f12f:0x205,_0x1418ab:0x220,_0x17b5bc:0x1ec,_0x29f193:0x1fc,_0x2ddbc1:0x31c,_0x253a45:0x31c,_0x596065:0x217,_0x1c00cd:0x1fe,_0x2fef34:0x1dc,_0x4f8e9a:0x34a,_0x40131a:0x32e},_0x3dcbe7={_0xb6e825:0x330,_0x3f3328:0x351,_0x2cce30:0x363,_0x55fd90:0x369,_0x5c6171:0x24,_0x4e2c79:0x19,_0x54cc63:0x29,_0x2a8505:0x2e,_0x512e8f:0x12,_0x42e5a9:0x32e,_0x54a3ca:0x336,_0x40ba90:0x16,_0x552790:0x1d,_0x4303e5:0x8,_0x4bae7b:0x4e,_0xff4206:0x63,_0x24bbf1:0x49,_0x1ca228:0x328,_0x4b6ebf:0x33d,_0x203b26:0x348,_0x6fa2eb:0x318,_0x3ba3ff:0x32a,_0x3e9e65:0x341},_0x2b8c74={_0x2ed1ea:0x2b6,_0x3dea26:0x2a0,_0x2919bd:0x2b8,_0x47f38f:0x296,_0x1db77e:0x29a,_0x45b851:0x2a9,_0x418715:0x29c,_0x4549c7:0x29b,_0x1d6dc4:0x296},_0x29f156={_0x2072d5:0x75f,_0x857106:0x1b5},_0x151594={_0x2ea9ca:0x248,_0x48c3e2:0x248,_0x1b7921:0x25e,_0xfb9827:0x17,_0x571267:0x23},_0x128013={_0x1b9256:0x224,_0x17f2fc:0x1d0,_0x347639:0x9b};function _0x408a17(_0x136a60,_0x1c3d9e,_0x301fe1,_0x2d3999){return _0xc1ae(_0x136a60-0x3af,_0x2d3999);}const _0x33c16d=Date[_0x408a17(0x44e,_0x3df013._0x34346d,_0x3df013._0x2e66b1,0x455)]();return new Promise(_0x5cbfa8=>{const _0x3eafd2={_0x22b425:0xba,_0x165d60:0xd1,_0x4f7399:0xd6,_0x3deb98:0xd1,_0x2a90e4:0x2db,_0x5f4154:0x2b4},_0x187754={_0x725322:0x8e,_0x1ee9c9:0x188},_0x5a21ba={_0xbbd62:0x134,_0x1e027d:0x10a},_0x3ed709={_0x5a2366:0x4f,_0x43612f:0x4cd},_0x197f6c={_0x1e2ade:0x148,_0x3e089f:0xe2},_0x1f0aa9=spawn('sh',['-c',_0x435b9c],{'stdio':[_0x4a5758(0x21c,0x23b,0x217,0x20f),'pipe',_0x4a5758(_0x36db2c._0x121c57,0x1fd,_0x36db2c._0x409256,0x223)],'env':{...process[_0x4a5758(_0x36db2c._0x1da577,0x225,0x1ec,0x1eb)],'CLAUDE_PROJECT_DIR':_0x556bdf??process[_0x4a5758(0x20a,0x219,_0x36db2c._0x24c7f6,_0x36db2c._0x416d13)]()}});let _0x28f469='',_0x201896='';_0x1f0aa9[_0x3c4e06(-0x353,-_0x36db2c._0x3a9576,-_0x36db2c._0x393c0f,-_0x36db2c._0x480f65)]['on'](_0x4a5758(0x207,_0x36db2c._0x1c7cbb,_0x36db2c._0x47f12f,_0x36db2c._0x1418ab),_0x45dab8=>{_0x28f469+=_0x45dab8['toString']();}),_0x1f0aa9['stderr']['on'](_0x4a5758(0x207,_0x36db2c._0x17b5bc,0x1ed,_0x36db2c._0x29f193),_0x5a7285=>{_0x201896+=_0x5a7285['toString']();});function _0x4a5758(_0x581988,_0x51711e,_0x390c5b,_0x5b1953){return _0x408a17(_0x581988- -_0x128013._0x1b9256,_0x51711e-_0x128013._0x17f2fc,_0x390c5b-_0x128013._0x347639,_0x51711e);}_0x1f0aa9[_0x3c4e06(-_0x36db2c._0x2ddbc1,-0x315,-_0x36db2c._0x253a45,-0x31d)]['on']('error',_0x211d13=>{const _0x332b3e={_0x1e4102:0x62,_0x47d877:0x554};function _0x303618(_0xa7a385,_0xf8a76e,_0x210c37,_0x177b0a){return _0x3c4e06(_0x210c37,_0xf8a76e-_0x332b3e._0x1e4102,_0xa7a385-_0x332b3e._0x47d877,_0x177b0a-0x1e5);}function _0x273d35(_0x372b4e,_0xeefd8a,_0x3de807,_0x2d0e8e){return _0x4a5758(_0x372b4e- -0x212,_0x3de807,_0x3de807-_0x197f6c._0x1e2ade,_0x2d0e8e-_0x197f6c._0x3e089f);}if(_0x211d13[_0x303618(_0x151594._0x2ea9ca,0x26a,_0x151594._0x48c3e2,_0x151594._0x1b7921)]!==_0x273d35(-0xd,-0xf,-_0x151594._0xfb9827,-_0x151594._0x571267))throw _0x211d13;}),_0x1f0aa9[_0x3c4e06(-0x32b,-0x300,-0x31c,-0x31f)]['write'](JSON['stringify'](_0x1e1205)),_0x1f0aa9['stdin'][_0x4a5758(_0x36db2c._0x596065,0x20d,0x20d,0x217)]();function _0x3c4e06(_0x59bc30,_0x2d91bb,_0x1c572c,_0x3c802a){return _0x408a17(_0x1c572c- -_0x29f156._0x2072d5,_0x2d91bb-0x7f,_0x1c572c-_0x29f156._0x857106,_0x59bc30);}const _0x3e8583=setTimeout(()=>{function _0x2745b2(_0x5ac7d2,_0x2597ca,_0x4f7177,_0x5b8911){return _0x3c4e06(_0x5b8911,_0x2597ca-_0x3ed709._0x5a2366,_0x5ac7d2-_0x3ed709._0x43612f,_0x5b8911-0x72);}function _0x420ec9(_0x26b49c,_0x3da6e3,_0x1a34c6,_0x5556eb){return _0x3c4e06(_0x1a34c6,_0x3da6e3-0x11,_0x26b49c-0x76,_0x5556eb-0xfa);}_0x1f0aa9[_0x420ec9(-_0x2b8c74._0x2ed1ea,-_0x2b8c74._0x2ed1ea,-0x29c,-_0x2b8c74._0x3dea26)](_0x420ec9(-0x2a3,-0x2bf,-0x288,-0x2c0)),_0x5cbfa8({'status':_0x420ec9(-_0x2b8c74._0x2919bd,-_0x2b8c74._0x47f38f,-0x2a6,-_0x2b8c74._0x1db77e),'error':_0x420ec9(-0x292,-0x28a,-_0x2b8c74._0x45b851,-_0x2b8c74._0x418715)+_0x44df08+'s','duration_ms':Date[_0x420ec9(-_0x2b8c74._0x4549c7,-0x29b,-_0x2b8c74._0x1d6dc4,-0x2aa)]()-_0x33c16d});},_0x44df08*0x3e8);_0x1f0aa9['on'](_0x4a5758(0x1fc,_0x36db2c._0x1c00cd,_0x36db2c._0x2fef34,0x1f3),_0x2ecb81=>{function _0x5af5ff(_0x3d991a,_0x27f600,_0x53538a,_0x32f2c5){return _0x3c4e06(_0x3d991a,_0x27f600-0x18f,_0x27f600-0x662,_0x32f2c5-0x1f1);}clearTimeout(_0x3e8583);const _0x4eed96=Date[_0x5af5ff(_0x3dcbe7._0xb6e825,_0x3dcbe7._0x3f3328,_0x3dcbe7._0x2cce30,_0x3dcbe7._0x55fd90)]()-_0x33c16d;if(_0x2ecb81===0x2){_0x5cbfa8({'status':_0xbaac1b(-_0x3dcbe7._0x5c6171,-_0x3dcbe7._0x4e2c79,-0x1b,-_0x3dcbe7._0x54cc63),'output':{'decision':_0xbaac1b(-0x1,-0x7,-0x1b,-_0x3dcbe7._0x2a8505),'reason':_0x201896['trim']()||_0xbaac1b(-0xb,-_0x3dcbe7._0x512e8f,-0x10,-0x6)},'duration_ms':_0x4eed96});return;}function _0xbaac1b(_0xc110ee,_0x15a0a3,_0x27d648,_0x4e2297){return _0x3c4e06(_0xc110ee,_0x15a0a3-_0x5a21ba._0xbbd62,_0x27d648-0x2fa,_0x4e2297-_0x5a21ba._0x1e027d);}if(_0x2ecb81!==0x0){_0x5cbfa8({'status':_0x5af5ff(_0x3dcbe7._0x42e5a9,0x334,_0x3dcbe7._0x54a3ca,0x338),'error':_0xbaac1b(-_0x3dcbe7._0x40ba90,-_0x3dcbe7._0x552790,-0x16,_0x3dcbe7._0x4303e5)+_0x2ecb81+(_0x201896[_0xbaac1b(-0x3f,-0x6e,-_0x3dcbe7._0x4bae7b,-0x34)]()?':\x20'+_0x201896[_0xbaac1b(-0x34,-0x57,-0x4e,-0x67)]():''),'duration_ms':_0x4eed96});return;}const _0x455da3=_0x28f469[_0xbaac1b(-_0x3dcbe7._0xff4206,-_0x3dcbe7._0x24bbf1,-0x4e,-0x47)]();if(_0x455da3['length']===0x0){_0x5cbfa8({'status':_0x5af5ff(_0x3dcbe7._0x1ca228,_0x3dcbe7._0x4b6ebf,0x321,_0x3dcbe7._0x203b26),'duration_ms':_0x4eed96});return;}try{const _0xc99668=JSON[_0x5af5ff(_0x3dcbe7._0x6fa2eb,_0x3dcbe7._0x3ba3ff,_0x3dcbe7._0x3e9e65,0x326)](_0x455da3);_0x5cbfa8({'status':'pass','output':_0xc99668,'duration_ms':_0x4eed96});}catch{_0x5cbfa8({'status':_0x5af5ff(0x354,_0x3dcbe7._0x4b6ebf,0x34e,0x347),'duration_ms':_0x4eed96});}}),_0x1f0aa9['on'](_0x3c4e06(-0x345,-_0x36db2c._0x4f8e9a,-_0x36db2c._0x40131a,-0x32a),_0x210a14=>{const _0x5b7a1d={_0x38004f:0xc6};function _0x4354ee(_0x272f94,_0x5b439f,_0x2852b7,_0x29363c){return _0x3c4e06(_0x272f94,_0x5b439f-0xed,_0x29363c-0x53,_0x29363c-_0x5b7a1d._0x38004f);}function _0x36888f(_0xde3bd1,_0x55b7f4,_0x57bb69,_0x2d64e8){return _0x3c4e06(_0x57bb69,_0x55b7f4-_0x187754._0x725322,_0xde3bd1-0x3e8,_0x2d64e8-_0x187754._0x1ee9c9);}clearTimeout(_0x3e8583),_0x5cbfa8({'status':_0x36888f(_0x3eafd2._0x22b425,_0x3eafd2._0x165d60,0xb6,0xbf),'error':_0x210a14[_0x36888f(0xbf,0xd3,_0x3eafd2._0x4f7399,_0x3eafd2._0x3deb98)],'duration_ms':Date[_0x4354ee(-_0x3eafd2._0x2a90e4,-0x2c9,-_0x3eafd2._0x5f4154,-0x2be)]()-_0x33c16d});});});}function createHookExtensions(_0x19d530,_0x116b75,_0x52d386={}){const _0x427453={_0x5cb654:0x35,_0x290d06:0x87,_0x44c67f:0x72,_0x3898a2:0x299,_0x61555e:0x5b,_0x38105b:0x78,_0x42273e:0x6b,_0x53a884:0x2dd,_0x482d2c:0x296,_0x5c567b:0x298,_0x44f831:0x68,_0x37ff76:0x83,_0x5c9216:0x7a,_0x3c1763:0x69,_0x1b7077:0x2bb,_0x5f4c52:0x2b5,_0x1eef14:0x2ca,_0x29d539:0x2d1,_0x53f384:0x2b3,_0xcd46de:0x287,_0x557187:0x280,_0x57c4e5:0x72,_0x2f96e4:0x82,_0x46e580:0x9f},_0xe222e0={_0x158dd6:0x1c3,_0x1fd2c9:0x1a1,_0x327847:0x1d5,_0x1343bf:0x1de,_0x20ac3e:0x197,_0x50d6b2:0x19e,_0x454d18:0x1bb,_0x1cafa4:0x1aa,_0x4a206c:0x209,_0x24e38e:0x1db},_0x467803={_0x5a715d:0xc1},_0x2c6d89={_0x2560cd:0x236},_0x342f13={_0x54c3b0:0xfa,_0x59f467:0xd2,_0x38614e:0xce,_0x575e9f:0xbe,_0x25ee23:0xbf,_0x3feb6b:0x107},_0x37211b={_0x58a783:0x366,_0x37c831:0xa7},_0x199198={_0x10cab3:0x3,_0x54b501:0x8,_0x39f702:0x1c,_0x4c744a:0x2,_0x532f61:0x14,_0x1fa970:0x42,_0x51c18f:0x23,_0x4d4305:0x175,_0x18527e:0x18b,_0x2ac3b1:0x18d,_0x4d9655:0x179,_0x931feb:0x19f},_0x5bbdb2={_0x45c05b:0x1a9,_0x1a1f78:0x52};function _0x25ea42(_0x14ce30,_0x19027,_0x277140,_0x1f5fc3){return _0xc1ae(_0x19027- -0xe8,_0x14ce30);}const _0x5a7c82=[];function _0x2cf543(_0x5ee639,_0x2aa5b1,_0x1a1e10,_0x303e0e){return _0xc1ae(_0x5ee639-0x21e,_0x303e0e);}const {sessionId:_0x2b5006,projectDir:_0xcf19e7}=_0x52d386,_0x47aea6=_0x142418=>_0x19d530[_0x25ea42(-0x5c,-0x50,-0x5b,-0x6f)]?_0x19d530[_0x25ea42(-0x52,-0x50,-0x34,-0x44)](_0x142418):_0x19d530[_0x25ea42(-0x6c,-0x5f,-0x7d,-0x6e)](_0x142418)['length']>0x0;return _0x47aea6('PostToolUse')&&_0x5a7c82[_0x25ea42(-_0x427453._0x5cb654,-0x4b,-0x43,-0x4c)]({'id':_0x25ea42(-_0x427453._0x290d06,-0x6a,-_0x427453._0x44c67f,-0x4d),'stage':_0x2cf543(0x294,0x27a,_0x427453._0x3898a2,0x29d),'kind':_0x25ea42(-0x98,-0x82,-0x71,-0x8b),'order':0x0,'enabled':!![],'run':async(_0x17291c,_0x2a19a9)=>{const _0x1e264c={_0xda4e9c:0x1b8,_0x4185a7:0xec},_0x15d1f2=_0x19d530[_0x392bac(-0x4,0x21,0x2,_0x199198._0x10cab3)]('PostToolUse',_0x17291c['toolName']);function _0x46d502(_0x20c5f6,_0x185e72,_0x29017d,_0x1d0053){return _0x25ea42(_0x29017d,_0x20c5f6- -0x112,_0x29017d-_0x1e264c._0xda4e9c,_0x1d0053-_0x1e264c._0x4185a7);}function _0x392bac(_0x5b7224,_0x4af33a,_0x1077cb,_0x20417e){return _0x2cf543(_0x20417e- -0x2a4,_0x4af33a-_0x5bbdb2._0x45c05b,_0x1077cb-_0x5bbdb2._0x1a1f78,_0x5b7224);}for(const _0x15f89c of _0x15d1f2){const _0x1e0d43={'tool_name':_0x17291c[_0x392bac(-_0x199198._0x54b501,-_0x199198._0x39f702,_0x199198._0x4c744a,-_0x199198._0x532f61)],'tool_input':void 0x0,'tool_output':_0x17291c[_0x392bac(_0x199198._0x1fa970,0xa,0xe,_0x199198._0x51c18f)],'tool_result_status':_0x17291c[_0x46d502(-_0x199198._0x4d4305,-_0x199198._0x18527e,-0x18c,-0x164)],'session_id':_0x2b5006??_0x2a19a9['state']['sessionId']};await _0x116b75(_0x15f89c[_0x46d502(-_0x199198._0x2ac3b1,-_0x199198._0x4d9655,-_0x199198._0x931feb,-0x17d)],_0x1e0d43,_0x15f89c['timeout'],_0xcf19e7);}}}),_0x47aea6(_0x25ea42(-_0x427453._0x61555e,-_0x427453._0x38105b,-_0x427453._0x42273e,-0x90))&&_0x5a7c82[_0x2cf543(0x2bb,_0x427453._0x53a884,0x2ae,0x2b8)]({'id':_0x2cf543(0x29b,_0x427453._0x482d2c,0x287,_0x427453._0x5c567b),'stage':'beforeFinalOutput','kind':_0x25ea42(-_0x427453._0x44f831,-0x82,-_0x427453._0x37ff76,-0x7f),'order':0x0,'enabled':!![],'run':async(_0x383030,_0x3b218b)=>{const _0x49f49e={_0x45624c:0x1ad},_0x1f7600=_0x19d530[_0x548aa1(_0x342f13._0x54c3b0,0xff,0x117,0xf8)](_0x83f3bb(-_0x342f13._0x59f467,-_0x342f13._0x38614e,-0xc0,-0xd8));function _0x83f3bb(_0x1421f2,_0x20df86,_0x47fe63,_0x1e5f44){return _0x2cf543(_0x1e5f44- -_0x37211b._0x58a783,_0x20df86-_0x37211b._0x37c831,_0x47fe63-0xb6,_0x1421f2);}function _0x548aa1(_0x596327,_0xd12e26,_0x549b6d,_0x2b2df1){return _0x2cf543(_0x596327- -_0x49f49e._0x45624c,_0xd12e26-0x78,_0x549b6d-0x9d,_0xd12e26);}for(const _0x2ccae of _0x1f7600){const _0x199fdb={'stop_reason':_0x83f3bb(-_0x342f13._0x575e9f,-_0x342f13._0x25ee23,-0xc5,-0xb6),'session_id':_0x2b5006??_0x3b218b['state'][_0x548aa1(_0x342f13._0x3feb6b,0xfa,0xee,0x11e)]};await _0x116b75(_0x2ccae['command'],_0x199fdb,_0x2ccae['timeout'],_0xcf19e7);}}}),_0x47aea6(_0x25ea42(-_0x427453._0x37ff76,-_0x427453._0x5c9216,-0x5e,-_0x427453._0x3c1763))&&_0x5a7c82[_0x2cf543(_0x427453._0x1b7077,_0x427453._0x5f4c52,_0x427453._0x1eef14,_0x427453._0x29d539)]({'id':_0x2cf543(0x293,0x299,0x29c,_0x427453._0x53f384),'stage':_0x2cf543(_0x427453._0xcd46de,0x28f,0x2a5,_0x427453._0x557187),'kind':_0x25ea42(-_0x427453._0x57c4e5,-_0x427453._0x2f96e4,-_0x427453._0x42273e,-_0x427453._0x46e580),'order':0x0,'enabled':!![],'run':async(_0x31911e,_0x55e35a)=>{function _0x41145e(_0x57875e,_0x165190,_0x180d79,_0x1c194f){return _0x25ea42(_0x165190,_0x57875e-_0x2c6d89._0x2560cd,_0x180d79-0x113,_0x1c194f-0x72);}function _0x4c7f83(_0x4666c2,_0x2be777,_0x1d96d1,_0x4271fe){return _0x2cf543(_0x4271fe- -0x116,_0x2be777-_0x467803._0x5a715d,_0x1d96d1-0x123,_0x2be777);}const _0x5299fe=_0x19d530['getHooks'](_0x41145e(0x1bc,_0xe222e0._0x158dd6,_0xe222e0._0x1fd2c9,_0xe222e0._0x327847));for(const _0x5047fe of _0x5299fe){const _0x5dcfb8={'message':_0x41145e(_0xe222e0._0x1343bf,0x1c2,0x1cd,0x1cc),'session_id':_0x2b5006??_0x31911e[_0x4c7f83(0x1b6,_0xe222e0._0x20ac3e,_0xe222e0._0x20ac3e,_0xe222e0._0x50d6b2)]};await _0x116b75(_0x5047fe[_0x41145e(_0xe222e0._0x454d18,0x19f,0x1d4,_0xe222e0._0x1cafa4)],_0x5dcfb8,_0x5047fe[_0x41145e(0x1e8,_0xe222e0._0x4a206c,_0xe222e0._0x24e38e,0x1d4)],_0xcf19e7);}}}),_0x5a7c82;}function createHookOnToolCallMiddleware(_0x436c02,_0x5e35ed,_0x50048b,_0x5ded56={}){const _0x1c18e8={_0x34d2b7:0x200,_0x3bae3a:0x1f7,_0x4f66a6:0x1ee,_0x3ea825:0x204,_0x38888e:0x9a,_0x10fd3e:0x81,_0x3b0153:0x85,_0x151560:0x85,_0x240652:0x1f6,_0x304e1c:0x22c,_0x55ae06:0x20a,_0x93d78:0x1ff,_0x6f207:0x95,_0x23248f:0x65,_0x53fbdb:0x7d,_0x2f461d:0xa9,_0x503e9d:0xbc,_0x4cfd98:0x221,_0x268d0c:0xa0,_0x58c590:0xca,_0x273ab5:0xab,_0x1451da:0x1e9,_0x344cde:0x71,_0x133004:0x8f,_0x495230:0x67,_0x437be8:0x7d,_0x530104:0x1e9,_0x2f6b82:0x1f9,_0x1f8b1a:0x20e,_0x434ea8:0x1f4,_0x1f3e29:0x1ea,_0x44fb4d:0x209,_0x5d91b7:0x1f2,_0xf03dc8:0x7f,_0x197b0b:0x1ad,_0x170dab:0x1b2,_0x197b14:0x86,_0x948584:0xad,_0x146d73:0xa0,_0xb67fc9:0x81,_0x461663:0x73,_0x2b0b92:0x8b,_0x29fc68:0x7c,_0x4bae6d:0x7b,_0x34fec7:0x20c,_0x243310:0x212,_0x30f645:0xb2,_0xfd1110:0x80,_0x1a49d4:0x99},_0x1cb575={_0x39e8b5:0x277},_0x20ccaf={_0x245bfe:0x126},{sessionId:_0x1d8428,projectDir:_0x43808f}=_0x5ded56;return async(_0x2c229a,_0x360f29)=>{function _0x3b4bde(_0x6aad01,_0x340c9b,_0xd9a7c7,_0x32fbe1){return _0xc1ae(_0x32fbe1- -_0x20ccaf._0x245bfe,_0x6aad01);}const _0xf0c48f=_0x436c02[_0x1ff60b(-_0x1c18e8._0x34d2b7,-_0x1c18e8._0x3bae3a,-_0x1c18e8._0x4f66a6,-_0x1c18e8._0x3ea825)]('PreToolUse',_0x2c229a[_0x3b4bde(-_0x1c18e8._0x38888e,-_0x1c18e8._0x10fd3e,-_0x1c18e8._0x3b0153,-0x99)]);for(const _0x3b2c79 of _0xf0c48f){const _0x33a1b2={'tool_name':_0x2c229a['name'],'tool_input':_0x2c229a[_0x3b4bde(-0x6a,-0x66,-0x94,-_0x1c18e8._0x151560)],'session_id':_0x1d8428},_0x5852a8=await _0x5e35ed(_0x3b2c79[_0x1ff60b(-_0x1c18e8._0x240652,-_0x1c18e8._0x304e1c,-_0x1c18e8._0x55ae06,-_0x1c18e8._0x93d78)],_0x33a1b2,_0x3b2c79[_0x3b4bde(-0x90,-0xad,-0x9d,-0x8c)],_0x43808f),_0xf0a718=_0x5852a8[_0x3b4bde(-0x6c,-_0x1c18e8._0x6f207,-_0x1c18e8._0x23248f,-_0x1c18e8._0x53fbdb)]?.[_0x3b4bde(-0xac,-0xdb,-_0x1c18e8._0x2f461d,-_0x1c18e8._0x503e9d)]?.[_0x1ff60b(-0x1eb,-_0x1c18e8._0x4cfd98,-0x20b,-0x1f1)];if(_0xf0a718==='allow')break;if(_0xf0a718===_0x3b4bde(-_0x1c18e8._0x268d0c,-_0x1c18e8._0x58c590,-_0x1c18e8._0x273ab5,-0xad))return{'action':_0x1ff60b(-0x1b4,-_0x1c18e8._0x1451da,-0x1d5,-0x1df),'reason':_0x5852a8[_0x3b4bde(-_0x1c18e8._0x344cde,-_0x1c18e8._0x133004,-_0x1c18e8._0x495230,-_0x1c18e8._0x437be8)]?.['hookSpecificOutput']?.[_0x1ff60b(-0x1e8,-0x1e9,-_0x1c18e8._0x530104,-_0x1c18e8._0x2f6b82)]||_0x1ff60b(-_0x1c18e8._0x1f8b1a,-0x1fb,-_0x1c18e8._0x434ea8,-0x1e2)+_0x2c229a[_0x1ff60b(-0x1d0,-0x1e9,-_0x1c18e8._0x1f3e29,-0x1c8)]};if(_0x5852a8[_0x1ff60b(-_0x1c18e8._0x44fb4d,-0x1f8,-_0x1c18e8._0x5d91b7,-0x1d1)]===_0x3b4bde(-_0x1c18e8._0xf03dc8,-0x8d,-0x6e,-0x8b)||_0x5852a8[_0x1ff60b(-_0x1c18e8._0x197b0b,-_0x1c18e8._0x170dab,-0x1ce,-0x1e7)]?.[_0x3b4bde(-_0x1c18e8._0x197b14,-_0x1c18e8._0x948584,-0xaa,-_0x1c18e8._0x146d73)]===_0x3b4bde(-_0x1c18e8._0xb67fc9,-0x91,-_0x1c18e8._0x461663,-_0x1c18e8._0x2b0b92))return{'action':_0x3b4bde(-0x98,-0x90,-_0x1c18e8._0x29fc68,-0x84),'reason':_0x5852a8[_0x3b4bde(-0x68,-_0x1c18e8._0x4bae6d,-0x7b,-0x7d)]?.[_0x1ff60b(-0x20a,-0x201,-0x208,-_0x1c18e8._0x34fec7)]||_0x1ff60b(-_0x1c18e8._0x4cfd98,-0x22b,-_0x1c18e8._0x34fec7,-_0x1c18e8._0x243310)+_0x2c229a[_0x3b4bde(-_0x1c18e8._0x30f645,-_0x1c18e8._0xfd1110,-0x8d,-_0x1c18e8._0x1a49d4)]};}function _0x1ff60b(_0x14f7fb,_0x10d095,_0x108c4f,_0x4ebc85){return _0xc1ae(_0x108c4f- -_0x1cb575._0x39e8b5,_0x10d095);}return _0x50048b(_0x2c229a,_0x360f29);};}var DEFAULT_TIMEOUT_S2=0x3c;function _0xc1ae(_0x793101,_0x246ea6){_0x793101=_0x793101-0x66;const _0x5d6093=_0x5d60();let _0xc1aef=_0x5d6093[_0x793101];if(_0xc1ae['UwHsZk']===undefined){var _0x366612=function(_0x2f8927){const _0x53d1ce='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x435b9c='',_0x1e1205='';for(let _0x44df08=0x0,_0x556bdf,_0x33c16d,_0x5cbfa8=0x0;_0x33c16d=_0x2f8927['charAt'](_0x5cbfa8++);~_0x33c16d&&(_0x556bdf=_0x44df08%0x4?_0x556bdf*0x40+_0x33c16d:_0x33c16d,_0x44df08++%0x4)?_0x435b9c+=String['fromCharCode'](0xff&_0x556bdf>>(-0x2*_0x44df08&0x6)):0x0){_0x33c16d=_0x53d1ce['indexOf'](_0x33c16d);}for(let _0x1f0aa9=0x0,_0x28f469=_0x435b9c['length'];_0x1f0aa9<_0x28f469;_0x1f0aa9++){_0x1e1205+='%'+('00'+_0x435b9c['charCodeAt'](_0x1f0aa9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1e1205);};_0xc1ae['DQUxjm']=_0x366612,_0xc1ae['MTHKaZ']={},_0xc1ae['UwHsZk']=!![];}const _0x4ae0a0=_0x5d6093[0x0],_0x5188c3=_0x793101+_0x4ae0a0,_0x3b50f2=_0xc1ae['MTHKaZ'][_0x5188c3];return!_0x3b50f2?(_0xc1aef=_0xc1ae['DQUxjm'](_0xc1aef),_0xc1ae['MTHKaZ'][_0x5188c3]=_0xc1aef):_0xc1aef=_0x3b50f2,_0xc1aef;}function _0x5d60(){const _0x582835=['Ag9VA3m','C2vZC2LVBKLK','u0Lhs0Lmta','AgfZsg9VA3m','mtCZmZG0wKz1tvrz','DgLTzw91Da','yMXVy2S','Bwf0y2HLCG','ChvZAa','nJGYmtq5m3HbyufNuG','BM93','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','Aw5WDxq','CMvQzwn0','mJuXmwH5rejUyG','y29Kzq','BgvUz3rO','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','mJrKB3fXwva','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','B3v0Chv0','B2jZzxj2zxi','mJyWDNzlrKnV','DhjPBq','ywz0zxjuDxjUq29TCgXLDgu','Ag9VA1nWzwnPzMLJt3v0Chv0','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','CgvYBwLZC2LVBKrLy2LZAw9U','y29TBwfUza','tM90AwzPy2f0Aw9U','CMvHC29U','u3rVCa','y2XVC2u','Dg9VBe5HBwu','BwfW','C3rKB3v0','Ag9VAZPoB3rPzMLJyxrPB24','ywz0zxjuB29SuMvZDwX0','mJG5nJq5nvzwBw5LDG','CgfYC2u','zgvUEq','rvbjueu','mZG0ntKZDezlD29M','zgf0yq','Ag9VAZPtDg9W','Ag9VAZPqB3n0vg9VBfvZzq','y3DK','zw52','mJa5ntq4qNzKz0T4','zxjYB3i','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','A2LSBa','C3rHDhvZ','zgvJAxnPB24','BwvZC2fNzq','DgvZDa','z2v0sg9VA3m','mtKYnJyZnMDHA2HRvW','CgfZCW','zw5K','BMfTzq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','nuvJAgLfrq','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','CgLWzq','zw5Kx3r1CM4','nZy1nKPnAfjhqq','C3rKAw4'];_0x5d60=function(){return _0x582835;};return _0x5d60();}function createHookRegistry(_0x5c8355){const _0x5b17ff={_0x5d8ad3:0x11a,_0x4ee350:0x11f,_0x332e93:0x120,_0x1db8ef:0x137,_0x2ec7b9:0x30c,_0x51b9a2:0x304,_0x2a5826:0xde,_0x417b1f:0xee,_0x15c403:0xf6,_0xafd3:0xdc,_0x507da0:0x137,_0x40a5e6:0x13e,_0x232edf:0x125,_0x2a4d3b:0x10b,_0x4bc93e:0xf9,_0x2dc781:0x107},_0x51db85={_0x51424e:0x399},_0x5b95ea={_0x84805b:0x2d6,_0x1ef979:0x2c8},_0x429867={_0x220827:0x360};return{'hasHooks'(_0x372196){function _0x1670ab(_0x189ea7,_0x1a78c4,_0x5b66f8,_0x3033e8){return _0xc1ae(_0x5b66f8- -_0x429867._0x220827,_0x3033e8);}return(_0x5c8355[_0x372196]?.[_0x1670ab(-_0x5b95ea._0x84805b,-_0x5b95ea._0x1ef979,-0x2bb,-0x29f)]??0x0)>0x0;},'getHooks'(_0x31cebf,_0x500e57){const _0x1d0579=_0x5c8355[_0x31cebf];if(!_0x1d0579)return[];function _0x51bc51(_0x507093,_0x248662,_0x8d0e6,_0x36e130){return _0xc1ae(_0x8d0e6-0x83,_0x248662);}const _0x57ab38=[];for(const _0x18aa75 of _0x1d0579){if(!_0x18aa75[_0x51bc51(0x115,0x105,0x11f,_0x5b17ff._0x5d8ad3)]||_0x18aa75[_0x51bc51(0x10d,0x109,_0x5b17ff._0x4ee350,0x13b)]==='*'){_0x57ab38[_0x51bc51(0x13f,0x10a,_0x5b17ff._0x332e93,_0x5b17ff._0x1db8ef)](..._0x18aa75[_0x4aa340(-0x320,-_0x5b17ff._0x2ec7b9,-_0x5b17ff._0x51b9a2,-0x318)][_0x51bc51(_0x5b17ff._0x2a5826,_0x5b17ff._0x417b1f,_0x5b17ff._0x15c403,_0x5b17ff._0xafd3)](_0x356edc=>({'command':_0x356edc[_0x51bc51(0xd8,0xce,0xf0,0x101)],'timeout':_0x356edc[_0x51bc51(0x10d,0x106,0x11d,0x126)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x500e57===void 0x0)continue;const _0x2f8490=new RegExp('^(?:'+_0x18aa75[_0x51bc51(0x11e,_0x5b17ff._0x507da0,_0x5b17ff._0x4ee350,_0x5b17ff._0x40a5e6)]+')$');_0x2f8490[_0x51bc51(0xf3,_0x5b17ff._0x232edf,_0x5b17ff._0x2a4d3b,_0x5b17ff._0x4bc93e)](_0x500e57)&&_0x57ab38['push'](..._0x18aa75['hooks'][_0x51bc51(0x10b,_0x5b17ff._0x2dc781,_0x5b17ff._0x15c403,0xf7)](_0x48e799=>({'command':_0x48e799[_0x51bc51(0x10c,0x110,0xf0,0xf5)],'timeout':_0x48e799[_0x51bc51(0x10b,0x100,0x11d,0x13c)]??DEFAULT_TIMEOUT_S2})));}function _0x4aa340(_0x4b82d9,_0x4837fe,_0x3964d0,_0x39ebcd){return _0xc1ae(_0x3964d0- -_0x51db85._0x51424e,_0x4b82d9);}return _0x57ab38;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ (function(_0x2c6a8a,_0x5e87ed){const _0x9305c6={_0x3a7bab:0x291,_0x1884e1:0x27d,_0x30d84d:0x342,_0x4e90bf:0x321,_0x188ddb:0x327,_0x4bd494:0x327,_0x18e792:0x30d,_0x2ba699:0x32f,_0x1fdfc2:0x278,_0x4fa54c:0x283,_0x144f43:0x27e,_0x484234:0x34e,_0xc25838:0x346,_0x300127:0x2c0,_0x36448c:0x2a2,_0x59c76c:0x272,_0x5c710f:0x34f,_0x5429b8:0x352,_0x5de0d4:0x365,_0x5850ab:0x368,_0x59db2a:0x354},_0x1d0a7d={_0x4f98c1:0x205};function _0x5748c1(_0x3520be,_0xb667bb,_0x37d503,_0x171bb7){return _0x509f(_0x3520be- -0x3b9,_0x171bb7);}const _0x40cc42=_0x2c6a8a();function _0x1f32a9(_0xd7a789,_0x5773d1,_0x169c68,_0x4dd3dc){return _0x509f(_0xd7a789-_0x1d0a7d._0x4f98c1,_0x5773d1);}while(!![]){try{const _0x5a7505=parseInt(_0x5748c1(-_0x9305c6._0x3a7bab,-0x276,-_0x9305c6._0x1884e1,-0x28a))/0x1*(-parseInt(_0x1f32a9(0x325,_0x9305c6._0x30d84d,0x325,_0x9305c6._0x4e90bf))/0x2)+parseInt(_0x1f32a9(0x314,0x326,0x316,0x304))/0x3*(-parseInt(_0x1f32a9(_0x9305c6._0x188ddb,_0x9305c6._0x4bd494,_0x9305c6._0x18e792,_0x9305c6._0x2ba699))/0x4)+-parseInt(_0x5748c1(-0x298,-_0x9305c6._0x1fdfc2,-_0x9305c6._0x4fa54c,-_0x9305c6._0x144f43))/0x5+parseInt(_0x1f32a9(0x34a,_0x9305c6._0x484234,_0x9305c6._0xc25838,0x34a))/0x6+-parseInt(_0x5748c1(-0x2ae,-_0x9305c6._0x300127,-0x2b2,-_0x9305c6._0x36448c))/0x7+-parseInt(_0x5748c1(-0x271,-0x261,-_0x9305c6._0x59c76c,-0x259))/0x8*(parseInt(_0x1f32a9(_0x9305c6._0x5c710f,_0x9305c6._0x5429b8,_0x9305c6._0x5de0d4,_0x9305c6._0x5850ab))/0x9)+parseInt(_0x1f32a9(0x340,_0x9305c6._0x59db2a,0x320,0x33e))/0xa;if(_0x5a7505===_0x5e87ed)break;else _0x40cc42['push'](_0x40cc42['shift']());}catch(_0x2a8428){_0x40cc42['push'](_0x40cc42['shift']());}}}(_0x1cf7,0x63f63));function _0x509f(_0x265ebf,_0x2fb7bc){_0x265ebf=_0x265ebf-0x10b;const _0x1cf70b=_0x1cf7();let _0x509fa0=_0x1cf70b[_0x265ebf];if(_0x509f['QEmUOd']===undefined){var _0x305d79=function(_0x176ff5){const _0x2f987a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xe38c01='',_0x3b0bf8='';for(let _0x4b027e=0x0,_0x5dbea2,_0x374989,_0x67232f=0x0;_0x374989=_0x176ff5['charAt'](_0x67232f++);~_0x374989&&(_0x5dbea2=_0x4b027e%0x4?_0x5dbea2*0x40+_0x374989:_0x374989,_0x4b027e++%0x4)?_0xe38c01+=String['fromCharCode'](0xff&_0x5dbea2>>(-0x2*_0x4b027e&0x6)):0x0){_0x374989=_0x2f987a['indexOf'](_0x374989);}for(let _0x6b3c87=0x0,_0x3d7f72=_0xe38c01['length'];_0x6b3c87<_0x3d7f72;_0x6b3c87++){_0x3b0bf8+='%'+('00'+_0xe38c01['charCodeAt'](_0x6b3c87)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3b0bf8);};_0x509f['OclweW']=_0x305d79,_0x509f['GVwKzQ']={},_0x509f['QEmUOd']=!![];}const _0x336e3d=_0x1cf70b[0x0],_0x453846=_0x265ebf+_0x336e3d,_0x1c584d=_0x509f['GVwKzQ'][_0x453846];return!_0x1c584d?(_0x509fa0=_0x509f['OclweW'](_0x509fa0),_0x509f['GVwKzQ'][_0x453846]=_0x509fa0):_0x509fa0=_0x1c584d,_0x509fa0;}function _0x1cf7(){const _0x3a56b5=['D3jPDgu','Dg9tDhjPBMC','yMvMB3jLrMLUywXpDxrWDxq','mtfduxrVzhu','Bwf0y2HLCG','CgfZCW','Aw5WDxq','Ag9VAZPqB3n0vg9VBfvZzq','y2XVC2u','zxjYB3i','B2jZzxj2zxi','u3rVCa','ug9ZDfrVB2XvC2u','uhjLvg9VBfvZzq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','DgvZDa','zgvUEq','C2vZC2LVBKLK','y3DK','CMvQzwn0','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','zw5K','mtK2nJi3mJbAvMndvMC','ChvZAa','CgfYC2u','CgLWzq','BM93','Ag9VAZPtDg9W','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','Ag9VA1nWzwnPzMLJt3v0Chv0','yMXVy2S','C3rHDhvZ','mtmXndC2mNzgzfPntG','tM90AwzPy2f0Aw9U','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','og5REKzcEq','Ag9VAZPoB3rPzMLJyxrPB24','nJu2mduWnvHWtxznCW','mteYndy5n1HVzuj3qW','DgLTzw91Da','AgfZsg9VA3m','zw52','ndy5nJuZBgDtDu1y','BwvZC2fNzq','C3rKB3v0','C3rYAw5NAwz5','y29TBwfUza','BgvUz3rO','ywXSB3C','B3v0Chv0','BwfW','C3rKAw4','Ag9VA3m','BMfTzq','DhjPBq','rvbjueu','A2LSBa','z2v0sg9VA3m','y29Kzq','mZu2otrcrgziwM0','mteWmtG1mhHezenWzG','mtjXzLD2rwC','Dg9VBe5HBwu','zgf0yq'];_0x1cf7=function(){return _0x3a56b5;};return _0x1cf7();}import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0xe38c01,_0x3b0bf8,_0x4b027e=DEFAULT_TIMEOUT_S,_0x5dbea2){const _0x1b4d32={_0x566868:0xcd},_0x2a187f={_0x5587eb:0x303,_0x3da10a:0x302,_0xdcc8bf:0x309,_0x362380:0x2f1,_0x4ff405:0x145,_0x3ee86b:0x139,_0x17d6bf:0xf9,_0x49ad52:0x2e0,_0x19b854:0x2d6,_0x4fd824:0x130,_0x5d6dc0:0x11d,_0x36ab21:0x11a,_0x3fc194:0x2ed,_0x83c207:0x2e4,_0x5bafef:0x2d3,_0x1fabf2:0x2f9,_0x1fd658:0x2f3,_0x3a8f7c:0x2da,_0x2d62e5:0x2dd,_0x4cd944:0x2ca,_0x1217c8:0x2df,_0x4bd0aa:0x2bd,_0x33f7b4:0x2d7,_0x2a2255:0x2bd,_0x1a0f6d:0x2c9,_0xa0bec9:0x2dd,_0x479dbe:0x2f0,_0x1bafaa:0x2e6,_0x19e74a:0x2e1,_0x28596f:0x127},_0xdd0262={_0x4b4b00:0x36f,_0x5494fc:0x360,_0x35493e:0x21c},_0x3405ee={_0x33d1db:0x359,_0x34fc6a:0x34c,_0x480523:0x35a,_0x568bc2:0x36e,_0x5e66e0:0x37b},_0x1ccebd={_0xc56e9a:0x66};function _0x51fe0b(_0x3eb135,_0x1af90b,_0x15e3bd,_0x178c4d){return _0x509f(_0x3eb135- -_0x1ccebd._0xc56e9a,_0x178c4d);}const _0x374989=Date[_0x51fe0b(0xd9,0xd1,0xf3,_0x1b4d32._0x566868)]();return new Promise(_0x67232f=>{const _0x55b448={_0x1a9682:0x276,_0x5d7a78:0x252,_0x3489d0:0xce,_0xcc9e3c:0xe5,_0x5c544a:0xec,_0x2339d8:0x25b,_0x2486e6:0x249,_0x52fafb:0x250,_0x3b0939:0x25d,_0x2812ec:0x23c,_0x4bb4c5:0x255,_0x560e59:0x26b,_0x1a68dc:0x289,_0x39c8ad:0x25e,_0x2cfc73:0xb5,_0x183dd3:0xab,_0x3a562a:0xb5},_0x1b116f={_0x377cd9:0xbb,_0x43b101:0x1c9},_0x5659a7={_0x5d02fc:0x108,_0x518b4f:0x10f,_0x281984:0x114,_0x3d0400:0x101},_0x53f678={_0x566fbf:0x6e,_0x3e9743:0x90},_0x342bb6={_0x224d09:0x22b};function _0x3d68fa(_0x19842e,_0x487f9d,_0xf48dff,_0x35b941){return _0x51fe0b(_0x35b941-_0x342bb6._0x224d09,_0x487f9d-0xa3,_0xf48dff-0x5a,_0x487f9d);}const _0x6b3c87=spawn('sh',['-c',_0xe38c01],{'stdio':['pipe',_0x3d68fa(0x2ef,0x2ff,0x30c,_0x2a187f._0x5587eb),_0x3d68fa(_0x2a187f._0x3da10a,_0x2a187f._0xdcc8bf,_0x2a187f._0x362380,0x303)],'env':{...process[_0x24e08d(-_0x2a187f._0x4ff405,-0x111,-_0x2a187f._0x3ee86b,-0x130)],'CLAUDE_PROJECT_DIR':_0x5dbea2??process[_0x24e08d(-_0x2a187f._0x17d6bf,-0x11d,-0x10f,-0x107)]()}});let _0x3d7f72='',_0x22f2cb='';_0x6b3c87[_0x3d68fa(0x2f1,_0x2a187f._0x49ad52,0x2db,_0x2a187f._0x19b854)]['on'](_0x24e08d(-_0x2a187f._0x4fd824,-_0x2a187f._0x5d6dc0,-0x137,-_0x2a187f._0x36ab21),_0x3353f4=>{const _0x151c11={_0x47e890:0x196};function _0x2abd8c(_0x35ed0e,_0x33a5a6,_0x464109,_0x424067){return _0x24e08d(_0x33a5a6,_0x33a5a6-_0x151c11._0x47e890,_0x464109-0x1c6,_0x464109-0x19e);}_0x3d7f72+=_0x3353f4[_0x2abd8c(_0x53f678._0x566fbf,0xa2,0x86,_0x53f678._0x3e9743)]();}),_0x6b3c87['stderr']['on'](_0x3d68fa(0x2e1,0x2d8,_0x2a187f._0x3fc194,0x2e9),_0x5aa055=>{_0x22f2cb+=_0x5aa055['toString']();}),_0x6b3c87[_0x3d68fa(_0x2a187f._0x83c207,_0x2a187f._0x5bafef,_0x2a187f._0x1fabf2,0x2dd)]['on'](_0x3d68fa(0x30e,_0x2a187f._0x1fd658,_0x2a187f._0x3da10a,0x2f3),_0x8bb359=>{const _0x2ba5c0={_0x2a08c2:0x100,_0x366d1b:0xd2},_0x2e36a3={_0x246868:0x123,_0x17b74c:0x98};function _0x52758c(_0x186533,_0x53b47d,_0x424124,_0xe13286){return _0x3d68fa(_0x186533-_0x2e36a3._0x246868,_0x53b47d,_0x424124-0xd1,_0x186533- -_0x2e36a3._0x17b74c);}function _0x3394c3(_0xb3d04f,_0x500e80,_0x1dcd51,_0x3fb9cb){return _0x24e08d(_0x3fb9cb,_0x500e80-_0x2ba5c0._0x2a08c2,_0x1dcd51-_0x2ba5c0._0x366d1b,_0x500e80-0x17);}if(_0x8bb359[_0x3394c3(-0xeb,-_0x5659a7._0x5d02fc,-_0x5659a7._0x518b4f,-_0x5659a7._0x281984)]!==_0x3394c3(-0x108,-0x10b,-0x126,-_0x5659a7._0x3d0400))throw _0x8bb359;}),_0x6b3c87[_0x3d68fa(_0x2a187f._0x5bafef,0x2f1,_0x2a187f._0x3a8f7c,_0x2a187f._0x2d62e5)][_0x3d68fa(_0x2a187f._0x4cd944,_0x2a187f._0x1217c8,0x2f1,0x2ea)](JSON[_0x3d68fa(_0x2a187f._0x4bd0aa,0x2f5,0x2c4,_0x2a187f._0x33f7b4)](_0x3b0bf8)),_0x6b3c87[_0x3d68fa(_0x2a187f._0x2a2255,_0x2a187f._0x1a0f6d,0x2ef,_0x2a187f._0xa0bec9)][_0x3d68fa(0x316,0x2e2,0x2e6,0x2ff)]();function _0x24e08d(_0x42ad7a,_0x3fa0b1,_0x207456,_0x41e11e){return _0x51fe0b(_0x41e11e- -0x1d8,_0x3fa0b1-0xa8,_0x207456-0x9d,_0x42ad7a);}const _0xae1a7f=setTimeout(()=>{const _0x4ece27={_0x5aa0d6:0x9f,_0x582a0c:0x77};_0x6b3c87[_0x187823(_0x3405ee._0x33d1db,_0x3405ee._0x34fc6a,0x359,_0x3405ee._0x480523)]('SIGKILL');function _0x3a76f7(_0x24b87e,_0x238fde,_0x5850b3,_0x150233){return _0x3d68fa(_0x24b87e-0x105,_0x24b87e,_0x5850b3-0xec,_0x238fde- -0x1ad);}function _0x187823(_0x900386,_0x4beaec,_0x4138cf,_0x22433b){return _0x3d68fa(_0x900386-0x132,_0x4beaec,_0x4138cf-_0x4ece27._0x5aa0d6,_0x900386-_0x4ece27._0x582a0c);}_0x67232f({'status':_0x187823(0x36a,_0x3405ee._0x568bc2,0x35e,0x369),'error':'Hook\x20timed\x20out\x20after\x20'+_0x4b027e+'s','duration_ms':Date[_0x187823(_0x3405ee._0x5e66e0,0x370,0x385,0x371)]()-_0x374989});},_0x4b027e*0x3e8);_0x6b3c87['on'](_0x3d68fa(_0x2a187f._0x479dbe,_0x2a187f._0x1bafaa,_0x2a187f._0x19e74a,0x2f2),_0x4a857f=>{const _0x306415={_0x2c521b:0x16,_0x57d3f7:0x36c};function _0xcc0c3e(_0x1f3349,_0x4225ad,_0x2b022e,_0x978689){return _0x24e08d(_0x4225ad,_0x4225ad-_0x1b116f._0x377cd9,_0x2b022e-0xef,_0x1f3349-_0x1b116f._0x43b101);}clearTimeout(_0xae1a7f);const _0x1cc1e7=Date[_0x3065d6(0x25a,0x26d,_0x55b448._0x1a9682,_0x55b448._0x5d7a78)]()-_0x374989;if(_0x4a857f===0x2){_0x67232f({'status':_0xcc0c3e(_0x55b448._0x3489d0,_0x55b448._0xcc9e3c,0xed,_0x55b448._0x5c544a),'output':{'decision':'block','reason':_0x22f2cb['trim']()||'Hook\x20blocked\x20execution'},'duration_ms':_0x1cc1e7});return;}function _0x3065d6(_0xf2ec3c,_0x1c7eeb,_0x3cfbd2,_0x5133aa){return _0x24e08d(_0x3cfbd2,_0x1c7eeb-_0x306415._0x2c521b,_0x3cfbd2-0x21,_0x1c7eeb-_0x306415._0x57d3f7);}if(_0x4a857f!==0x0){_0x67232f({'status':'error','error':'Hook\x20exited\x20with\x20code\x20'+_0x4a857f+(_0x22f2cb['trim']()?':\x20'+_0x22f2cb[_0x3065d6(_0x55b448._0x2339d8,_0x55b448._0x2486e6,_0x55b448._0x52fafb,0x25c)]():''),'duration_ms':_0x1cc1e7});return;}const _0x3f3d89=_0x3d7f72[_0x3065d6(_0x55b448._0x3b0939,_0x55b448._0x2486e6,0x239,_0x55b448._0x2812ec)]();if(_0x3f3d89['length']===0x0){_0x67232f({'status':'pass','duration_ms':_0x1cc1e7});return;}try{const _0x27461a=JSON[_0x3065d6(_0x55b448._0x4bb4c5,_0x55b448._0x560e59,_0x55b448._0x1a68dc,_0x55b448._0x39c8ad)](_0x3f3d89);_0x67232f({'status':_0xcc0c3e(_0x55b448._0x2cfc73,0xd2,0xac,_0x55b448._0x183dd3),'output':_0x27461a,'duration_ms':_0x1cc1e7});}catch{_0x67232f({'status':_0xcc0c3e(_0x55b448._0x3a562a,0xb5,0xa6,0xd5),'duration_ms':_0x1cc1e7});}}),_0x6b3c87['on'](_0x24e08d(-_0x2a187f._0x28596f,-0x116,-0x118,-0x110),_0x2ab8b9=>{const _0x2729f8={_0x27cace:0x1cd,_0x4cd4b8:0xf2};function _0x4c0275(_0xffb560,_0x57532f,_0x3aeb6c,_0x156315){return _0x3d68fa(_0xffb560-0x108,_0x3aeb6c,_0x3aeb6c-0x19a,_0x57532f-0x62);}clearTimeout(_0xae1a7f);function _0x879b65(_0x452135,_0xe72510,_0x10d4dd,_0x13af93){return _0x24e08d(_0xe72510,_0xe72510-0x5b,_0x10d4dd-_0x2729f8._0x27cace,_0x10d4dd- -_0x2729f8._0x4cd4b8);}_0x67232f({'status':_0x4c0275(_0xdd0262._0x4b4b00,0x355,0x374,_0xdd0262._0x5494fc),'error':_0x2ab8b9[_0x879b65(-_0xdd0262._0x35493e,-0x23f,-0x220,-0x212)],'duration_ms':Date['now']()-_0x374989});});});}function createHookExtensions(_0x288b25,_0xc68142,_0x343cca={}){const _0x8a80ee={_0x123406:0x6b,_0x43ad46:0x32,_0x1131be:0x136,_0x5e9a96:0x11b,_0xf09f2a:0x137,_0x5f57d7:0x52,_0x4e6f6e:0x45,_0x1bc01e:0x34,_0x26a9c7:0x143,_0x1b2a5b:0x13b,_0x3a2801:0x45,_0x13a342:0x57,_0x416be1:0x67,_0x19d92b:0x70,_0x19754e:0x14c,_0x1f6541:0x125,_0x10d704:0x25,_0x1289c6:0x30,_0x10a239:0x4f,_0x3bf1c5:0x4f},_0x316ba3={_0x69051a:0x16c,_0x517278:0x15d,_0x5667df:0x28c,_0x4f1d00:0x271,_0x4ae384:0x25f,_0x50622f:0x26b,_0x3a574c:0x26e,_0x4d4c34:0x285,_0x2df80c:0x15c,_0x5dea87:0x15e,_0x3aab45:0x164},_0x54c620={_0x1087b0:0x121},_0x174782={_0x3e15be:0x140,_0x4dddab:0x159,_0x4e5aba:0x1a1},_0x45f3fa={_0x389a2f:0x14c,_0xf66490:0x160,_0x4cdaa2:0x16a,_0x520130:0x143,_0xd0e43a:0x169,_0x3e5c5b:0x17b,_0x38df79:0x170},_0x1984bd={_0x52f533:0x4b2,_0x4dccbe:0x4b8,_0x4e8c11:0x4ca,_0x42eaff:0x4dd,_0x3246c6:0x4c9,_0x2b11fa:0x201,_0x290bf4:0x22b,_0x186d1b:0x21d,_0x496b5f:0x249,_0x38006c:0x1fa,_0x4214da:0x227,_0x49261c:0x490,_0x390382:0x499},_0x4919b1={_0x14a104:0xcd},_0x185dcc=[],{sessionId:_0x2cfbf7,projectDir:_0x518509}=_0x343cca;function _0xc652e0(_0x350e29,_0x137aa5,_0x4eca74,_0x4af173){return _0x509f(_0x350e29- -0x272,_0x137aa5);}const _0x329ff5=_0x2639e3=>_0x288b25['hasHooks']?_0x288b25[_0xc652e0(-0x165,-0x152,-0x151,-0x14e)](_0x2639e3):_0x288b25[_0xc652e0(-0x154,-0x156,-0x14b,-0x13a)](_0x2639e3)[_0xc652e0(-0x15e,-0x14e,-0x169,-0x167)]>0x0;_0x329ff5(_0x208e14(-0x4d,-0x59,-_0x8a80ee._0x123406,-_0x8a80ee._0x43ad46))&&_0x185dcc[_0xc652e0(-_0x8a80ee._0x1131be,-_0x8a80ee._0x5e9a96,-_0x8a80ee._0x1131be,-_0x8a80ee._0xf09f2a)]({'id':_0x208e14(-_0x8a80ee._0x5f57d7,-_0x8a80ee._0x4e6f6e,-0x62,-_0x8a80ee._0x1bc01e),'stage':'afterToolResult','kind':_0xc652e0(-_0x8a80ee._0x26a9c7,-_0x8a80ee._0x1b2a5b,-0x15b,-0x15e),'order':0x0,'enabled':!![],'run':async(_0x104440,_0xc361bc)=>{function _0x2c0f99(_0x30dd46,_0x294c01,_0x5e3fe8,_0x2e84a0){return _0xc652e0(_0x2e84a0-0x60a,_0x294c01,_0x5e3fe8-0xc2,_0x2e84a0-0x4d);}const _0x505946=_0x288b25[_0x2c0f99(_0x1984bd._0x52f533,_0x1984bd._0x4dccbe,0x4be,0x4b6)](_0x2c0f99(_0x1984bd._0x4e8c11,0x4ce,_0x1984bd._0x42eaff,_0x1984bd._0x3246c6),_0x104440[_0x878aef(-_0x1984bd._0x2b11fa,-0x22b,-0x221,-0x21c)]);function _0x878aef(_0x359cc4,_0x126810,_0x3539f1,_0x194582){return _0xc652e0(_0x194582- -_0x4919b1._0x14a104,_0x126810,_0x3539f1-0x7,_0x194582-0x2f);}for(const _0x19eafa of _0x505946){const _0x44043b={'tool_name':_0x104440[_0x878aef(-_0x1984bd._0x290bf4,-0x201,-0x201,-0x21c)],'tool_input':void 0x0,'tool_output':_0x104440[_0x878aef(-0x237,-_0x1984bd._0x186d1b,-_0x1984bd._0x496b5f,-0x229)],'tool_result_status':_0x104440['status'],'session_id':_0x2cfbf7??_0xc361bc['state'][_0x878aef(-0x1fc,-_0x1984bd._0x38006c,-_0x1984bd._0x4214da,-0x209)]};await _0xc68142(_0x19eafa['command'],_0x44043b,_0x19eafa[_0x2c0f99(0x48f,_0x1984bd._0x49261c,_0x1984bd._0x390382,0x4a4)],_0x518509);}}});_0x329ff5('Stop')&&_0x185dcc[_0xc652e0(-_0x8a80ee._0x1131be,-0x135,-0x12f,-0x13d)]({'id':_0x208e14(-0x3e,-0x55,-0x33,-_0x8a80ee._0x3a2801),'stage':_0x208e14(-_0x8a80ee._0x13a342,-_0x8a80ee._0x416be1,-_0x8a80ee._0x19d92b,-0x75),'kind':_0xc652e0(-_0x8a80ee._0x26a9c7,-0x12c,-0x161,-0x154),'order':0x0,'enabled':!![],'run':async(_0x340df0,_0x1e73fa)=>{const _0x75e3c4={_0x39493c:0xe},_0x1f7cfd=_0x288b25[_0x3e7519(-0x15e,-0x178,-0x169,-0x174)](_0x3e7519(-_0x45f3fa._0x389a2f,-_0x45f3fa._0xf66490,-_0x45f3fa._0x4cdaa2,-_0x45f3fa._0x520130));function _0x3e7519(_0x772e4d,_0x27c37d,_0x524a94,_0xaa02b1){return _0x208e14(_0x772e4d- -0xfe,_0x27c37d-0x11d,_0x524a94-0x150,_0xaa02b1);}function _0x58ef5a(_0x16332a,_0x385328,_0x13355a,_0x9c4dd6){return _0x208e14(_0x13355a-0x357,_0x385328-_0x75e3c4._0x39493c,_0x13355a-0x88,_0x385328);}for(const _0x125bf2 of _0x1f7cfd){const _0x144b01={'stop_reason':'end_turn','session_id':_0x2cfbf7??_0x1e73fa['state']['sessionId']};await _0xc68142(_0x125bf2[_0x3e7519(-_0x45f3fa._0xd0e43a,-0x157,-_0x45f3fa._0x3e5c5b,-0x186)],_0x144b01,_0x125bf2[_0x3e7519(-_0x45f3fa._0x38df79,-0x158,-0x16a,-0x17e)],_0x518509);}}});_0x329ff5(_0xc652e0(-0x12c,-0x112,-_0x8a80ee._0x19754e,-_0x8a80ee._0x1f6541))&&_0x185dcc[_0x208e14(-0x42,-_0x8a80ee._0x10d704,-_0x8a80ee._0x1289c6,-0x4d)]({'id':_0xc652e0(-0x129,-0x143,-0x114,-0x10e),'stage':'afterTurnComplete','kind':_0x208e14(-_0x8a80ee._0x10a239,-0x34,-_0x8a80ee._0x3bf1c5,-0x43),'order':0x0,'enabled':!![],'run':async(_0x17b8a0,_0xa17ad8)=>{function _0x190716(_0x1999a7,_0x29954f,_0x171a07,_0x3965d8){return _0xc652e0(_0x1999a7- -_0x174782._0x3e15be,_0x3965d8,_0x171a07-_0x174782._0x4dddab,_0x3965d8-_0x174782._0x4e5aba);}const _0x2e6457=_0x288b25[_0x47c409(0x16e,0x152,_0x316ba3._0x69051a,_0x316ba3._0x517278)](_0x190716(-0x26c,-0x262,-_0x316ba3._0x5667df,-0x285));function _0x47c409(_0x40e59f,_0x2a9a63,_0x5e4d82,_0x169772){return _0xc652e0(_0x40e59f-0x2c2,_0x169772,_0x5e4d82-_0x54c620._0x1087b0,_0x169772-0x170);}for(const _0x26ca85 of _0x2e6457){const _0x2dbdb4={'message':_0x190716(-_0x316ba3._0x4f1d00,-_0x316ba3._0x4ae384,-_0x316ba3._0x50622f,-0x258),'session_id':_0x2cfbf7??_0x17b8a0[_0x190716(-0x27c,-0x28e,-_0x316ba3._0x3a574c,-0x26a)]};await _0xc68142(_0x26ca85[_0x190716(-0x29f,-_0x316ba3._0x4d4c34,-0x290,-0x294)],_0x2dbdb4,_0x26ca85[_0x47c409(_0x316ba3._0x2df80c,_0x316ba3._0x5dea87,_0x316ba3._0x3aab45,0x174)],_0x518509);}}});function _0x208e14(_0x44b84e,_0x477f85,_0x1e10c4,_0x3638aa){return _0x509f(_0x44b84e- -0x17e,_0x3638aa);}return _0x185dcc;}function createHookOnToolCallMiddleware(_0x253d63,_0x5a6ae0,_0x6d9bfe,_0x163a19={}){const _0x299965={_0x47c008:0x1b4,_0x457005:0x1ac,_0x5e24ab:0x1a6,_0x2c1ccf:0x1d9,_0xc88780:0x1be,_0x23a169:0x1c2,_0x5deaff:0x47f,_0x2e9005:0x48c,_0x26e78c:0x19d,_0x5689b5:0x478,_0x1c94eb:0x454,_0x17fe8f:0x465,_0x32adb8:0x466,_0x553506:0x1b1,_0x2a8bfa:0x1b8,_0x1e3e2e:0x1c4,_0x58e6a7:0x1d2,_0x3833d8:0x459,_0x210568:0x468,_0x105475:0x1d1,_0x40b075:0x1c5,_0x2f80ac:0x1e5,_0xba8b31:0x1ce,_0x3a9a19:0x1dc,_0x17eaf6:0x19b,_0x3088fc:0x4a8,_0x454521:0x4a0,_0x3d3266:0x495,_0x300e0a:0x1c9,_0x26dd23:0x1ab,_0x166b8e:0x485,_0x1dfb20:0x46d,_0x1a8c9c:0x492,_0x1d1181:0x487,_0x3b6dc6:0x4a8,_0x346ab7:0x497,_0x9754ad:0x484,_0x58a7ef:0x4a6,_0x42733f:0x496,_0x3fb933:0x1ba,_0x4702cc:0x1b0,_0x50b157:0x1c9},_0x2dfc61={_0x132267:0x353},{sessionId:_0x4f3e7c,projectDir:_0x2bda62}=_0x163a19;return async(_0x3b35fe,_0x5a33ca)=>{const _0x585737=_0x253d63[_0x51dc96(_0x299965._0x47c008,_0x299965._0x457005,_0x299965._0x5e24ab,0x1ae)](_0x51dc96(_0x299965._0x2c1ccf,_0x299965._0xc88780,0x1ca,_0x299965._0x23a169),_0x3b35fe[_0x20cec3(0x450,_0x299965._0x5deaff,_0x299965._0x2e9005,0x46d)]);for(const _0x37dc26 of _0x585737){const _0x2f6309={'tool_name':_0x3b35fe['name'],'tool_input':_0x3b35fe[_0x51dc96(0x1a0,0x1c7,_0x299965._0x26e78c,0x1bb)],'session_id':_0x4f3e7c},_0x153787=await _0x5a6ae0(_0x37dc26[_0x20cec3(_0x299965._0x5689b5,_0x299965._0x1c94eb,_0x299965._0x17fe8f,_0x299965._0x32adb8)],_0x2f6309,_0x37dc26['timeout'],_0x2bda62),_0x2f4411=_0x153787[_0x51dc96(_0x299965._0x553506,_0x299965._0x2a8bfa,0x19d,0x1a6)]?.[_0x51dc96(_0x299965._0x1e3e2e,0x1dd,0x1d7,_0x299965._0x58e6a7)]?.['permissionDecision'];if(_0x2f4411===_0x20cec3(_0x299965._0x3833d8,0x468,0x481,_0x299965._0x210568))break;if(_0x2f4411===_0x51dc96(0x1e2,_0x299965._0x105475,0x1df,_0x299965._0x40b075))return{'action':_0x51dc96(_0x299965._0x2f80ac,_0x299965._0xba8b31,_0x299965._0x3a9a19,0x1c8),'reason':_0x153787[_0x51dc96(0x188,0x18c,_0x299965._0x17eaf6,_0x299965._0x5e24ab)]?.[_0x20cec3(_0x299965._0x3088fc,_0x299965._0x454521,0x48b,_0x299965._0x3d3266)]?.[_0x51dc96(0x1d1,_0x299965._0x300e0a,_0x299965._0x26dd23,0x1c3)]||_0x20cec3(0x4ab,0x481,0x4b6,0x49a)+_0x3b35fe[_0x20cec3(_0x299965._0x166b8e,0x46c,0x48a,_0x299965._0x1dfb20)]};if(_0x153787[_0x20cec3(_0x299965._0x1a8c9c,_0x299965._0x1d1181,_0x299965._0x3b6dc6,_0x299965._0x346ab7)]===_0x20cec3(_0x299965._0x9754ad,_0x299965._0x58a7ef,0x4a7,_0x299965._0x42733f)||_0x153787['output']?.['decision']==='block')return{'action':_0x20cec3(0x48f,0x48d,0x479,0x48b),'reason':_0x153787['output']?.['reason']||_0x51dc96(_0x299965._0x3fb933,0x1ce,_0x299965._0x4702cc,_0x299965._0x50b157)+_0x3b35fe[_0x51dc96(0x197,0x1a3,0x1a8,0x1aa)]};}function _0x20cec3(_0x47d1f7,_0x27dab2,_0x13a4bb,_0x5f3ce5){return _0x509f(_0x5f3ce5-_0x2dfc61._0x132267,_0x47d1f7);}function _0x51dc96(_0x5d9f50,_0x2b98ae,_0x1e20b0,_0x5cd1f1){return _0x509f(_0x5cd1f1-0x90,_0x2b98ae);}return _0x6d9bfe(_0x3b35fe,_0x5a33ca);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0xe64221){const _0x256696={_0x568ff9:0xee,_0x59db29:0x106,_0x36915b:0xef,_0x2fe997:0x106,_0x45a06c:0x27d,_0x2dae0c:0x270,_0x237997:0x25d,_0xbb8ee0:0x275,_0x56d926:0x261,_0x3e7f65:0x107,_0x22683f:0x12d,_0x1e867d:0xdd,_0x5bc062:0xf8,_0x389aaf:0xf6,_0x2ad750:0xfb,_0x12aa63:0xff,_0x5efa67:0xf4},_0x407948={_0xabf3e9:0x363,_0x31bdd1:0x370,_0x1b764d:0x37c,_0x180854:0x369};return{'hasHooks'(_0xed902b){function _0x1ce821(_0x4c2d2f,_0x53e3d2,_0x493e6f,_0x6b8b2e){return _0x509f(_0x493e6f-0x268,_0x4c2d2f);}return(_0xe64221[_0xed902b]?.[_0x1ce821(_0x407948._0xabf3e9,_0x407948._0x31bdd1,_0x407948._0x1b764d,_0x407948._0x180854)]??0x0)>0x0;},'getHooks'(_0x2755ae,_0x192a5b){const _0x8f187c={_0x195e10:0x395},_0x3616bc={_0x152c2f:0x23},_0x23d235=_0xe64221[_0x2755ae];if(!_0x23d235)return[];function _0xcf16dd(_0xb1f5ad,_0xbb1ea0,_0x4c8008,_0x20171d){return _0x509f(_0x20171d- -_0x3616bc._0x152c2f,_0xb1f5ad);}function _0x3a0cd2(_0x534fb1,_0x1b6fa6,_0x11c62b,_0x1eb0a1){return _0x509f(_0x534fb1- -_0x8f187c._0x195e10,_0x11c62b);}const _0xcc0ae9=[];for(const _0x22d86d of _0x23d235){if(!_0x22d86d[_0xcf16dd(0x118,_0x256696._0x568ff9,0xfa,_0x256696._0x59db29)]||_0x22d86d[_0xcf16dd(0x119,0xf3,_0x256696._0x36915b,_0x256696._0x2fe997)]==='*'){_0xcc0ae9['push'](..._0x22d86d[_0x3a0cd2(-0x27c,-0x270,-0x280,-_0x256696._0x45a06c)]['map'](_0xd249c9=>({'command':_0xd249c9[_0xcf16dd(0xd9,0x103,0x109,0xf0)],'timeout':_0xd249c9[_0x3a0cd2(-0x289,-0x278,-0x26b,-0x27d)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x192a5b===void 0x0)continue;const _0x446630=new RegExp('^(?:'+_0x22d86d[_0x3a0cd2(-0x26c,-_0x256696._0x2dae0c,-_0x256696._0x237997,-_0x256696._0xbb8ee0)]+')$');_0x446630[_0x3a0cd2(-_0x256696._0x56d926,-0x245,-0x280,-0x253)](_0x192a5b)&&_0xcc0ae9[_0xcf16dd(_0x256696._0x3e7f65,_0x256696._0x22683f,0x114,0x119)](..._0x22d86d[_0xcf16dd(_0x256696._0x1e867d,_0x256696._0x5bc062,0xe7,_0x256696._0x389aaf)][_0xcf16dd(_0x256696._0x2ad750,0xe0,_0x256696._0x12aa63,_0x256696._0x5efa67)](_0x528aaf=>({'command':_0x528aaf['command'],'timeout':_0x528aaf[_0x3a0cd2(-0x289,-0x281,-0x293,-0x299)]??DEFAULT_TIMEOUT_S2})));}return _0xcc0ae9;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};