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

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(_0x4e3db8,_0x1be647){const _0x18c176={_0x19a779:0xd5,_0x404204:0x3fb,_0x129881:0x3d1,_0x248bd6:0x3d0,_0x1f944e:0x3b2,_0x379284:0x3f3,_0x40ae5a:0x3ef,_0x34cb64:0x3d9,_0x1e1989:0x3d3,_0x5c4ceb:0x3fb,_0x2601d0:0x3e4,_0x5d24df:0x40f,_0x3f5e98:0x3f6,_0xeb0403:0xb6,_0x17366b:0xb4,_0x4a9efd:0x3f9,_0x3130e9:0x3f7,_0x39cf5b:0xab,_0x19d298:0xa2,_0x5a4530:0xab,_0x54aa84:0xc7,_0x2fd82f:0x3d4,_0x4fab5c:0x3ce},_0x32f5dd={_0x47192d:0x197},_0x2e994f=_0x4e3db8();function _0x3b1d44(_0x5d4a39,_0x5719e0,_0x5c4697,_0x32e406){return _0x28c2(_0x5d4a39-0x30a,_0x5c4697);}function _0x3d7298(_0x5665fa,_0x28f81d,_0x27c063,_0x3a8c7c){return _0x28c2(_0x5665fa- -_0x32f5dd._0x47192d,_0x27c063);}while(!![]){try{const _0x120b12=parseInt(_0x3d7298(-_0x18c176._0x19a779,-0xc1,-0xe4,-0xe3))/0x1*(-parseInt(_0x3b1d44(0x3e7,_0x18c176._0x404204,0x3fd,0x3dc))/0x2)+parseInt(_0x3b1d44(_0x18c176._0x129881,_0x18c176._0x248bd6,_0x18c176._0x1f944e,0x3c8))/0x3*(parseInt(_0x3b1d44(_0x18c176._0x379284,0x3e0,0x3f2,0x3d3))/0x4)+-parseInt(_0x3b1d44(_0x18c176._0x40ae5a,_0x18c176._0x34cb64,0x3fe,_0x18c176._0x1e1989))/0x5*(parseInt(_0x3b1d44(_0x18c176._0x5c4ceb,_0x18c176._0x2601d0,0x402,0x3fc))/0x6)+parseInt(_0x3b1d44(0x3fc,_0x18c176._0x5d24df,_0x18c176._0x3f5e98,0x3ef))/0x7+-parseInt(_0x3d7298(-0xcb,-_0x18c176._0xeb0403,-_0x18c176._0x17366b,-0xbc))/0x8*(parseInt(_0x3b1d44(_0x18c176._0x4a9efd,0x3eb,0x3f3,_0x18c176._0x3130e9))/0x9)+parseInt(_0x3d7298(-_0x18c176._0x39cf5b,-_0x18c176._0x19d298,-_0x18c176._0x5a4530,-_0x18c176._0x54aa84))/0xa+parseInt(_0x3b1d44(_0x18c176._0x2fd82f,0x3b3,0x3bb,0x3d7))/0xb*(parseInt(_0x3b1d44(_0x18c176._0x34cb64,0x3e3,_0x18c176._0x4fab5c,0x3e1))/0xc);if(_0x120b12===_0x1be647)break;else _0x2e994f['push'](_0x2e994f['shift']());}catch(_0x281b79){_0x2e994f['push'](_0x2e994f['shift']());}}}(_0x1f18,0x609ef));import{resolveOpenAiReasoningConfig}from'./chunk-IUZALP6K.js';import{isProviderStateCompatible,normalizeContent}from'./chunk-YNOIG4FD.js';function systemToInstructions(_0x4862e2){const _0x234b75={_0x5e86e3:0x1b2,_0x596884:0x1a1,_0x4e6745:0x15b,_0x1f3a99:0x16c};function _0x559da8(_0x274c2c,_0x45e3fc,_0x5600bb,_0x576add){return _0x28c2(_0x5600bb- -0x25a,_0x274c2c);}function _0x4d33a6(_0x28cc5d,_0x25ad4f,_0x282b71,_0x4a7e10){return _0x28c2(_0x4a7e10- -0x1bd,_0x28cc5d);}return normalizeContent(_0x4862e2)[_0x559da8(-0x184,-_0x234b75._0x5e86e3,-0x1a3,-_0x234b75._0x596884)](_0x46f211=>_0x46f211[_0x559da8(-0x1b6,-0x1c1,-0x1a4,-0x18c)]==='text')['map'](_0x55a64c=>_0x55a64c['text'])[_0x559da8(-0x17e,-_0x234b75._0x4e6745,-_0x234b75._0x1f3a99,-0x166)]('\x0a\x0a');}function pushUserContentMessage(_0x483c2f,_0x12bc3b,_0x3b3aac){const _0x34de3b={_0x2d1386:0x266,_0x39bfb5:0x26c,_0x5cca5a:0x250,_0x1eb9fb:0x244,_0x3c0697:0x24b,_0x1e9c36:0x24d,_0x22ef7d:0x24a,_0x1eaf6c:0x25d};function _0x1c3b69(_0xb36284,_0x2fdc71,_0x56a214,_0x3d22f7){return _0x28c2(_0x3d22f7-0x209,_0x56a214);}if(_0x3b3aac[_0x4aee08(0x28c,_0x34de3b._0x2d1386,0x286,_0x34de3b._0x39bfb5)]===0x0)return;function _0x4aee08(_0x4b7296,_0x2ed809,_0x56c546,_0x5c70a7){return _0x28c2(_0x5c70a7-0x179,_0x56c546);}_0x483c2f[_0x4aee08(_0x34de3b._0x5cca5a,_0x34de3b._0x1eb9fb,_0x34de3b._0x3c0697,_0x34de3b._0x1e9c36)]({'type':_0x4aee08(_0x34de3b._0x22ef7d,_0x34de3b._0x1eaf6c,0x250,0x23f),'role':_0x12bc3b,'content':_0x3b3aac});}function _0x28c2(_0x3dfeb8,_0x4ffd0d){_0x3dfeb8=_0x3dfeb8-0xb5;const _0x1f180e=_0x1f18();let _0x28c26e=_0x1f180e[_0x3dfeb8];if(_0x28c2['RcOVos']===undefined){var _0x2c596c=function(_0x25bcc9){const _0x4b836a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4862e2='',_0x46f211='';for(let _0x55a64c=0x0,_0x483c2f,_0x12bc3b,_0x3b3aac=0x0;_0x12bc3b=_0x25bcc9['charAt'](_0x3b3aac++);~_0x12bc3b&&(_0x483c2f=_0x55a64c%0x4?_0x483c2f*0x40+_0x12bc3b:_0x12bc3b,_0x55a64c++%0x4)?_0x4862e2+=String['fromCharCode'](0xff&_0x483c2f>>(-0x2*_0x55a64c&0x6)):0x0){_0x12bc3b=_0x4b836a['indexOf'](_0x12bc3b);}for(let _0x13b668=0x0,_0x2fe1fe=_0x4862e2['length'];_0x13b668<_0x2fe1fe;_0x13b668++){_0x46f211+='%'+('00'+_0x4862e2['charCodeAt'](_0x13b668)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46f211);};_0x28c2['TGBmoj']=_0x2c596c,_0x28c2['JxNDhz']={},_0x28c2['RcOVos']=!![];}const _0x21c65e=_0x1f180e[0x0],_0x40f05d=_0x3dfeb8+_0x21c65e,_0xbee4bb=_0x28c2['JxNDhz'][_0x40f05d];return!_0xbee4bb?(_0x28c26e=_0x28c2['TGBmoj'](_0x28c26e),_0x28c2['JxNDhz'][_0x40f05d]=_0x28c26e):_0x28c26e=_0xbee4bb,_0x28c26e;}function hasSerializableToolUse(_0x13b668){const _0x13a55c={_0x11ac5f:0x28c,_0x534e67:0x28,_0x2fcf2d:0x26e,_0x30a4d7:0x26e},_0x1e6aa4={_0x202f8b:0x17b},_0x44098f={_0x4fbd5b:0xe7};function _0x33b6b6(_0x329a11,_0x1b3a03,_0x36fb9a,_0x4a1358){return _0x28c2(_0x36fb9a- -_0x44098f._0x4fbd5b,_0x329a11);}function _0xc14589(_0x4d4bc1,_0xd0437e,_0x18660d,_0x218657){return _0x28c2(_0x218657-_0x1e6aa4._0x202f8b,_0x18660d);}return _0x13b668['id']['trim']()[_0xc14589(_0x13a55c._0x11ac5f,0x262,0x272,0x26e)]>0x0&&_0x13b668['name'][_0x33b6b6(-_0x13a55c._0x534e67,0x13,-0xc,-0x27)]()[_0xc14589(0x286,_0x13a55c._0x2fcf2d,0x26d,_0x13a55c._0x30a4d7)]>0x0;}function hasSerializableToolResult(_0x2fe1fe){const _0x1f9c7e={_0x13740e:0x4f};function _0x4b58d9(_0x47fdbb,_0x33dcdd,_0x33bc8b,_0x4412c8){return _0x28c2(_0x4412c8- -0x90,_0x47fdbb);}return _0x2fe1fe['tool_use_id'][_0x4b58d9(0x40,_0x1f9c7e._0x13740e,_0x1f9c7e._0x13740e,0x4b)]()['length']>0x0;}function isResponseInputObject(_0x2f3050){const _0x4bad8d={_0x5ba8cd:0x331,_0x2f135c:0x31e,_0x5de99b:0x304,_0x3092b7:0x35d},_0x807922={_0x4b755e:0x2c6};if(typeof _0x2f3050!==_0x5511b0(-0x321,-_0x4bad8d._0x5ba8cd,-0x311,-0x2f9)||_0x2f3050===null||Array[_0x5511b0(-_0x4bad8d._0x2f135c,-0x318,-_0x4bad8d._0x5de99b,-0x307)](_0x2f3050))return![];const _0x4ee799=_0x2f3050;function _0x7210(_0x137977,_0x4c3d2f,_0x1c5ed0,_0x16c50b){return _0x28c2(_0x137977-_0x807922._0x4b755e,_0x1c5ed0);}function _0x5511b0(_0x344d48,_0x1c0246,_0x12b9d7,_0x22103a){return _0x28c2(_0x12b9d7- -0x3e7,_0x22103a);}return typeof _0x4ee799[_0x7210(0x37c,_0x4bad8d._0x3092b7,0x396,0x36b)]==='string';}function isImageToolResultBlock(_0xb9709f){const _0x201d81={_0x4ce9de:0x223,_0x4608ca:0x207,_0x4b39ee:0x21e,_0x107878:0x203,_0xfeb53a:0x13d,_0x1e3e5c:0x154,_0x41f61d:0x155,_0xf3ea41:0x163,_0x2d81f5:0x149,_0x4502bb:0x13c,_0x2eaed6:0x149,_0x4ba8ec:0x1e8,_0x8b9ba8:0x1f5,_0x5488e5:0x200},_0x1e7844={_0x282a92:0x20a},_0x3cfd14={_0x256b73:0x2e6};function _0x2b65eb(_0x6dc9cf,_0x3d0513,_0x117ddb,_0x381d7e){return _0x28c2(_0x381d7e- -_0x3cfd14._0x256b73,_0x6dc9cf);}if(typeof _0xb9709f!=='object'||_0xb9709f===null||Array[_0x2b65eb(-_0x201d81._0x4ce9de,-_0x201d81._0x4608ca,-_0x201d81._0x4b39ee,-_0x201d81._0x107878)](_0xb9709f))return![];function _0x4c8922(_0x32998f,_0x2d238a,_0x3c1da8,_0x7c4d72){return _0x28c2(_0x3c1da8- -_0x1e7844._0x282a92,_0x7c4d72);}const _0x3f2c21=_0xb9709f;return _0x3f2c21[_0x4c8922(-0x140,-_0x201d81._0xfeb53a,-_0x201d81._0x1e3e5c,-_0x201d81._0x41f61d)]==='image'&&_0x3f2c21[_0x4c8922(-_0x201d81._0xf3ea41,-0x159,-0x149,-_0x201d81._0x2d81f5)]?.[_0x2b65eb(-0x233,-0x219,-0x251,-0x230)]==='base64'&&typeof _0x3f2c21[_0x4c8922(-_0x201d81._0x4502bb,-0x147,-_0x201d81._0x2eaed6,-0x12d)][_0x2b65eb(-_0x201d81._0x4ba8ec,-0x1fa,-_0x201d81._0x8b9ba8,-0x207)]==='string'&&typeof _0x3f2c21['source']['data']===_0x2b65eb(-0x213,-0x1f6,-0x1ee,-_0x201d81._0x5488e5);}function getToolResultText(_0xd70af6){const _0x5bcc42={_0x1f204e:0x3b,_0x4b3666:0x25,_0x2f97de:0x3e,_0x5879de:0x34,_0x2ecbb3:0x14,_0x33cff4:0x8,_0x5ec001:0x16,_0xb660f3:0x5,_0x31cb6f:0x6,_0x27ee62:0x1c0,_0x5eb00c:0x1a,_0x4f5761:0x32,_0x192b6f:0x2b,_0x20952c:0x10},_0x5cf81a={_0x45261b:0xa,_0x45a3b0:0x11,_0x221cba:0xd,_0x2c3b24:0xb,_0x256cfc:0x49,_0x1f61a1:0x4a};if(typeof _0xd70af6===_0x4b13df(_0x5bcc42._0x1f204e,_0x5bcc42._0x4b3666,_0x5bcc42._0x2f97de,_0x5bcc42._0x5879de))return _0xd70af6;function _0x26e2da(_0x25bf60,_0x2d7838,_0x116469,_0x22aae0){return _0x28c2(_0x116469- -0x2af,_0x2d7838);}function _0x4b13df(_0x5cee76,_0x26b99e,_0x36a39f,_0x32c4ac){return _0x28c2(_0x26b99e- -0xc1,_0x32c4ac);}const _0x44abf2=_0xd70af6[_0x4b13df(_0x5bcc42._0x2ecbb3,-0xa,_0x5bcc42._0x33cff4,-0x17)](_0x2bd7e2=>{const _0x1c07a3={_0x3372c2:0x22};function _0x3e84a3(_0x2a6bc4,_0x41ff9c,_0x1aeb96,_0x39ca66){return _0x4b13df(_0x2a6bc4-_0x1c07a3._0x3372c2,_0x39ca66-0xaa,_0x1aeb96-0x114,_0x41ff9c);}function _0x579750(_0x4f09eb,_0x2e8cff,_0x5e8e0e,_0x25740e){return _0x26e2da(_0x4f09eb-0x196,_0x4f09eb,_0x5e8e0e-0x1cc,_0x25740e-0x119);}return typeof _0x2bd7e2===_0x579750(-_0x5cf81a._0x45261b,-_0x5cf81a._0x45a3b0,-_0x5cf81a._0x221cba,_0x5cf81a._0x2c3b24)&&_0x2bd7e2!==null&&_0x2bd7e2[_0x579750(-_0x5cf81a._0x256cfc,-0x40,-0x2d,-_0x5cf81a._0x1f61a1)]==='text';})[_0x4b13df(0x36,_0x5bcc42._0x5ec001,_0x5bcc42._0xb660f3,-_0x5bcc42._0x31cb6f)](_0x5711e1=>_0x5711e1[_0x26e2da(-0x1c2,-0x1c3,-0x1df,-0x1f3)])[_0x26e2da(-0x1cc,-_0x5bcc42._0x27ee62,-0x1c1,-0x1db)]('\x0a\x0a')[_0x26e2da(-0x1d4,-0x1eb,-0x1d4,-0x1e1)]();return _0x44abf2[_0x4b13df(_0x5bcc42._0x5eb00c,_0x5bcc42._0x4f5761,0x4d,0x51)]>0x0?_0x44abf2:_0x4b13df(_0x5bcc42._0x192b6f,0x21,_0x5bcc42._0x20952c,0x2f);}function getToolResultImages(_0x46b3e3){const _0x5a4d25={_0x26d8b7:0x256,_0x4bda4c:0x268,_0xf3bb1d:0x92},_0x94b6cd={_0x2a8bb3:0x39};function _0x5e6d9d(_0x4fc023,_0x436a86,_0x598236,_0x183179){return _0x28c2(_0x4fc023- -_0x94b6cd._0x2a8bb3,_0x183179);}function _0x16ae6f(_0x5c8177,_0x57f5e9,_0x4f0210,_0x1273e8){return _0x28c2(_0x4f0210- -0x34c,_0x5c8177);}return Array[_0x16ae6f(-_0x5a4d25._0x26d8b7,-_0x5a4d25._0x4bda4c,-0x269,-0x276)](_0x46b3e3)?_0x46b3e3[_0x5e6d9d(0x7e,_0x5a4d25._0xf3bb1d,0x84,0x70)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x55da6a){const _0x3a43c9={_0x1ad902:0x1e9,_0x1d44ee:0x223,_0x47d794:0x222,_0x48c789:0x403,_0x6b479c:0x3eb,_0x4a7ee6:0x3e4};function _0x592db0(_0x342a76,_0x35f0ab,_0x5c3c30,_0x53c468){return _0x28c2(_0x5c3c30-0x326,_0x342a76);}function _0x3976ca(_0xed5f9a,_0x5906f6,_0x4edbd8,_0x295c07){return _0x28c2(_0xed5f9a-0x11a,_0x5906f6);}return _0x55da6a[_0x3976ca(0x204,_0x3a43c9._0x1ad902,_0x3a43c9._0x1d44ee,_0x3a43c9._0x47d794)]?.[_0x592db0(_0x3a43c9._0x48c789,0x3de,_0x3a43c9._0x6b479c,_0x3a43c9._0x4a7ee6)]??_0x3976ca(0x1d4,0x1d2,0x1c2,0x1df);}function createOpenAiResponsesReasoning(_0x402225){const _0x48721e={_0x4163f5:0x2aa,_0x33fe61:0x2ab,_0x5e2bd1:0x4ca,_0x29c2d4:0x4c6,_0x1d7407:0x4b0,_0x19a208:0x4b3,_0x36d5a6:0x2b4,_0x22b70e:0x2d0,_0x21524d:0x485,_0x18f0c3:0x29f,_0xe9669b:0x2a9,_0x26f3ad:0x492,_0x413e9b:0x481,_0x290424:0x2f2,_0x1549d2:0x2de,_0x3c24df:0x2d4,_0x463bda:0x2c3,_0x564d85:0x2df,_0x22afad:0x4c7,_0xb0ae3:0x4b1,_0x1f6dc3:0x4c8},_0x1e1e9f=resolveOpenAiReasoningConfig(_0x402225[_0x430120(-_0x48721e._0x4163f5,-_0x48721e._0x33fe61,-0x2a5,-0x2be)]);function _0x430120(_0x58e991,_0x1eaf92,_0x3f47d3,_0x54be9d){return _0x28c2(_0x3f47d3- -0x38f,_0x58e991);}if(!_0x1e1e9f)return{};const _0x34f8cc={};function _0x28cb3e(_0x497113,_0x16a687,_0x519696,_0x29b80c){return _0x28c2(_0x29b80c-0x3c6,_0x519696);}const _0x4898f7=_0x402225[_0x28cb3e(_0x48721e._0x5e2bd1,0x4a4,_0x48721e._0x29c2d4,_0x48721e._0x1d7407)]?.[_0x28cb3e(0x4b9,0x4af,_0x48721e._0x19a208,0x4a2)]!==void 0x0,_0x28fdfd=(!_0x4898f7&&_0x430120(-_0x48721e._0x36d5a6,-0x2be,-_0x48721e._0x22b70e,-0x2b6)in _0x1e1e9f?_0x1e1e9f[_0x28cb3e(0x477,0x471,0x48b,_0x48721e._0x21524d)]:void 0x0)??(resolveReasoningVisibility(_0x402225)==='user-visible'?_0x430120(-0x2a5,-_0x48721e._0x18f0c3,-0x2bd,-_0x48721e._0xe9669b):void 0x0);return _0x1e1e9f[_0x28cb3e(_0x48721e._0x26f3ad,0x494,0x473,_0x48721e._0x413e9b)]&&(_0x34f8cc[_0x28cb3e(0x486,0x482,0x484,0x481)]=_0x1e1e9f[_0x430120(-_0x48721e._0x290424,-_0x48721e._0x1549d2,-_0x48721e._0x3c24df,-_0x48721e._0x463bda)]),_0x28fdfd&&(_0x34f8cc[_0x430120(-_0x48721e._0x564d85,-0x2f0,-0x2d0,-0x2d4)]=_0x28fdfd),{...!_0x4898f7&&'includeEncryptedContent'in _0x1e1e9f&&_0x1e1e9f[_0x28cb3e(0x4cb,0x4a3,_0x48721e._0x22afad,_0x48721e._0xb0ae3)]===![]?{}:{'include':[_0x28cb3e(_0x48721e._0x1f6dc3,0x49b,0x4a4,0x4aa)]},...Object['keys'](_0x34f8cc)['length']>0x0?{'reasoning':_0x34f8cc}:{}};}function pushAssistantProviderState(_0x5a075e,_0x164e2d,_0x178fb5){const _0x95b41d={_0x34fef7:0x222,_0x214f18:0x206,_0x51bcf9:0xcd,_0x13dadc:0xb9,_0x46b222:0xc9,_0x3dcb4b:0xfc,_0x1c1ec3:0x10a,_0x2eaa07:0x226,_0x185d4e:0x215,_0x27588c:0x232,_0xdebbfd:0xcf,_0x2a537f:0xaf,_0x442d13:0xe8,_0x559a0c:0xdf,_0x10d828:0xd2,_0xd81829:0xd5,_0x448bfb:0x9f,_0x2a5ef7:0x1e6,_0x39c4f9:0x1fc},_0x52ea08={_0x1cedef:0x3};function _0x3f68a6(_0x5a2a88,_0x29778d,_0x1d09e7,_0x12322c){return _0x28c2(_0x1d09e7- -_0x52ea08._0x1cedef,_0x29778d);}if(_0x164e2d[_0x4113f7(_0x95b41d._0x34fef7,_0x95b41d._0x214f18,0x210,0x226)]!==_0x3f68a6(_0x95b41d._0x51bcf9,0xd7,0xce,_0x95b41d._0x13dadc))return![];if(!isProviderStateCompatible(_0x164e2d,_0x178fb5))return![];const _0x53f103=_0x164e2d['providerState']?.[_0x3f68a6(0xbb,0x99,0xb6,_0x95b41d._0x46b222)]??[];function _0x4113f7(_0x16ba90,_0x48c983,_0x9cb4c9,_0x2c015a){return _0x28c2(_0x2c015a-0x13e,_0x48c983);}if(_0x53f103[_0x3f68a6(_0x95b41d._0x3dcb4b,0x106,0xf0,_0x95b41d._0x1c1ec3)]===0x0)return![];for(const _0x303612 of _0x53f103){if(isResponseInputObject(_0x303612)){const _0xb8df41=structuredClone(_0x303612);delete _0xb8df41[_0x4113f7(0x21c,_0x95b41d._0x2eaa07,_0x95b41d._0x185d4e,_0x95b41d._0x27588c)],_0xb8df41[_0x3f68a6(_0x95b41d._0xdebbfd,_0x95b41d._0x2a537f,0xb3,0x9a)]==='reasoning'&&!Array[_0x3f68a6(_0x95b41d._0x442d13,_0x95b41d._0x559a0c,0xe0,_0x95b41d._0x10d828)](_0xb8df41[_0x3f68a6(0xa5,_0x95b41d._0xd81829,0xbc,_0x95b41d._0x448bfb)])&&(_0xb8df41[_0x4113f7(_0x95b41d._0x2a5ef7,0x20b,_0x95b41d._0x39c4f9,0x1fd)]=[]),_0x5a075e[_0x3f68a6(0xd7,0xbd,0xd1,0xbb)](_0xb8df41);}}return!![];}function toOpenAiResponsesRequest(_0xf980b8){const _0x29203d={_0x3a25f7:0x375,_0x4bdb1:0x351,_0x3c4b41:0x304,_0x180640:0x321,_0x20e40a:0x30a,_0x4f085a:0x219,_0x572d5e:0x242,_0x4b66d0:0x222,_0x22351f:0x33a,_0x4a1f07:0x34e,_0x225525:0x35d,_0x2b8361:0x203,_0x4a5c44:0x228,_0x19b3ae:0x216,_0x58e8b5:0x240,_0x2b6593:0x329,_0x3b87f1:0x346,_0x117cf1:0x341,_0x51182d:0x321,_0x2ccdf2:0x33c,_0x451145:0x235,_0x4a86e4:0x364,_0x4bb3d2:0x35a,_0x2f8296:0x221,_0x3ee5b1:0x229,_0x169d26:0x36d,_0xc3d5cf:0x21b,_0x436b03:0x239,_0x46e9a2:0x232,_0x19f5b7:0x233,_0x15ec0e:0x333,_0x2f3d26:0x344,_0xf511ae:0x219,_0x2a6b00:0x208,_0x4ad53d:0x20e,_0x62ded8:0x332,_0x42a1b1:0x251,_0x101cc7:0x34f,_0x10197f:0x333,_0x3380b0:0x223,_0x525859:0x22f,_0x254c46:0x21a,_0x3362b3:0x21f,_0x511b7c:0x232,_0x2cf7c9:0x1fe,_0x369ad7:0x203,_0x2013e1:0x225,_0x2d2084:0x331,_0x548a66:0x249,_0x1f4c75:0x22e,_0x3852ee:0x352,_0x458fc9:0x33d,_0x5ac7da:0x1f4,_0x2102de:0x20e,_0x3e3688:0x334,_0x118f58:0x357,_0x52a63b:0x33f,_0x4022ce:0x363,_0x399066:0x345,_0x48579c:0x346,_0x3e3f0a:0x330,_0x269ae7:0x31d,_0x2e6079:0x328,_0x47e11d:0x325,_0x53648e:0x20b,_0x56b218:0x202,_0x337093:0x206,_0x23a940:0x21f,_0x39c2ad:0x220,_0x3537d:0x21b,_0x3a5d3b:0x21b,_0x1b65e0:0x347,_0xe97dd8:0x25f,_0x23d199:0x23e,_0x3e07a5:0x34a,_0x1b5de8:0x343,_0x2f7790:0x346,_0x19238a:0x32e},_0x19a5d4={_0x32a680:0x114,_0x1c0644:0xff,_0x30d4a6:0x103,_0x13321d:0x3e8},_0x335faf={_0x5eda02:0x1bb,_0x53a991:0x5e4};function _0x1a1a20(_0x2054b6,_0x51daf1,_0x5765e1,_0x167c26){return _0x28c2(_0x51daf1-0x26b,_0x167c26);}const _0x1d54a4=[];for(const _0x155a59 of _0xf980b8[_0x1a1a20(0x35b,0x360,_0x29203d._0x3a25f7,_0x29203d._0x4bdb1)]){if(pushAssistantProviderState(_0x1d54a4,_0x155a59,_0xf980b8))continue;const _0x18fe4b=[];for(const _0x215e05 of normalizeContent(_0x155a59['content'])){if(_0x215e05[_0x1a1a20(_0x29203d._0x3c4b41,_0x29203d._0x180640,_0x29203d._0x20e40a,0x337)]==='text'){_0x18fe4b[_0x5e8142(-_0x29203d._0x4f085a,-_0x29203d._0x572d5e,-0x237,-_0x29203d._0x4b66d0)](_0x155a59[_0x1a1a20(0x34c,0x353,_0x29203d._0x22351f,_0x29203d._0x4a1f07)]===_0x1a1a20(_0x29203d._0x225525,0x33c,0x359,0x325)?{'type':_0x5e8142(-_0x29203d._0x2b8361,-0x20b,-_0x29203d._0x4a5c44,-_0x29203d._0x19b3ae),'text':_0x215e05['text']}:{'type':'input_text','text':_0x215e05['text']});continue;}if(_0x215e05[_0x5e8142(-0x260,-0x249,-0x232,-_0x29203d._0x58e8b5)]===_0x1a1a20(0x33f,_0x29203d._0x2b6593,_0x29203d._0x3b87f1,0x32a)){_0x18fe4b[_0x1a1a20(_0x29203d._0x117cf1,0x33f,0x357,_0x29203d._0x51182d)]({'type':_0x1a1a20(0x339,0x320,0x340,_0x29203d._0x2ccdf2),'image_url':_0x5e8142(-0x238,-0x21a,-0x221,-0x239)+_0x215e05[_0x5e8142(-0x22d,-0x23e,-0x243,-_0x29203d._0x451145)][_0x1a1a20(_0x29203d._0x4a86e4,0x34a,_0x29203d._0x4bb3d2,0x34a)]+_0x5e8142(-0x217,-_0x29203d._0x2f8296,-0x20c,-0x218)+_0x215e05['source'][_0x5e8142(-0x21a,-_0x29203d._0x4a5c44,-0x229,-_0x29203d._0x3ee5b1)]});continue;}pushUserContentMessage(_0x1d54a4,_0x155a59[_0x1a1a20(0x33d,0x353,0x335,_0x29203d._0x169d26)],_0x18fe4b[_0x5e8142(-_0x29203d._0xc3d5cf,-_0x29203d._0x436b03,-_0x29203d._0x46e9a2,-_0x29203d._0x19f5b7)](0x0));if(_0x215e05[_0x1a1a20(0x338,_0x29203d._0x51182d,_0x29203d._0x15ec0e,0x341)]==='tool_use'){if(!hasSerializableToolUse(_0x215e05))continue;_0x1d54a4[_0x1a1a20(0x35a,0x33f,_0x29203d._0x4bdb1,0x330)]({'type':_0x1a1a20(0x34a,_0x29203d._0x2f3d26,0x356,0x33d),'call_id':_0x215e05['id'],'name':_0x215e05[_0x5e8142(-0x226,-_0x29203d._0xf511ae,-0x21a,-0x236)],'arguments':JSON[_0x5e8142(-_0x29203d._0x2a6b00,-0x1fc,-_0x29203d._0x4ad53d,-0x206)](_0x215e05[_0x1a1a20(0x33c,0x327,_0x29203d._0x62ded8,0x30c)]??{})});continue;}if(_0x215e05['type']==='tool_result'){if(!hasSerializableToolResult(_0x215e05))continue;const _0x4b4c05=getToolResultText(_0x215e05[_0x5e8142(-_0x29203d._0x42a1b1,-0x24d,-0x230,-0x232)]);_0x1d54a4[_0x1a1a20(_0x29203d._0x101cc7,0x33f,0x347,_0x29203d._0x10197f)]({'type':'function_call_output','call_id':_0x215e05[_0x5e8142(-_0x29203d._0x3380b0,-_0x29203d._0x525859,-_0x29203d._0x254c46,-0x20f)],'output':_0x4b4c05});const _0x356732=getToolResultImages(_0x215e05[_0x5e8142(-0x228,-_0x29203d._0x3362b3,-0x240,-_0x29203d._0x511b7c)]);_0x356732[_0x5e8142(-_0x29203d._0x2cf7c9,-0x217,-0x20a,-_0x29203d._0x369ad7)]>0x0&&_0x1d54a4[_0x5e8142(-_0x29203d._0x2013e1,-0x204,-0x234,-0x222)]({'type':_0x1a1a20(0x319,_0x29203d._0x2d2084,0x342,0x33f),'role':'user','content':[{'type':_0x5e8142(-0x220,-0x22b,-0x218,-0x221),'text':_0x5e8142(-_0x29203d._0x548a66,-0x233,-0x21b,-_0x29203d._0x1f4c75)+_0x215e05[_0x1a1a20(0x349,_0x29203d._0x3852ee,0x35f,_0x29203d._0x458fc9)]+'.'},..._0x356732['map'](_0x2e5c8c=>({'type':_0x1a1a20(0x332,0x320,0x31e,0x326),'image_url':_0x1a1a20(0x308,0x328,0x336,0x331)+_0x2e5c8c[_0x1a1a20(0x32e,0x32c,0x319,0x342)][_0x1a1a20(0x34f,0x34a,0x35d,0x35e)]+_0x5e8142(-0x219,-0x1f8,-0x232,-0x218)+_0x2e5c8c[_0x5e8142(-0x23c,-0x22e,-0x230,-0x235)][_0x5e8142(-0x22f,-0x228,-0x22b,-0x229)]}))]});}}pushUserContentMessage(_0x1d54a4,_0x155a59[_0x5e8142(-_0x29203d._0x5ac7da,-0x229,-0x1fc,-_0x29203d._0x2102de)],_0x18fe4b);}function _0x5e8142(_0x51d96d,_0x3153c6,_0x5092b6,_0x11b295){return _0x28c2(_0x11b295- -0x2f6,_0x5092b6);}return{...createOpenAiResponsesReasoning(_0xf980b8),'model':_0xf980b8['model'],'instructions':systemToInstructions(_0xf980b8[_0x1a1a20(_0x29203d._0x3e3688,0x34c,_0x29203d._0x118f58,_0x29203d._0x52a63b)]),'input':_0x1d54a4,..._0xf980b8[_0x1a1a20(_0x29203d._0x4022ce,_0x29203d._0x399066,0x353,0x33f)]!==void 0x0?{'max_output_tokens':_0xf980b8[_0x1a1a20(_0x29203d._0x48579c,0x345,0x34b,_0x29203d._0x3e3f0a)]}:{},'tools':_0xf980b8[_0x1a1a20(_0x29203d._0x269ae7,0x334,_0x29203d._0x2e6079,_0x29203d._0x47e11d)][_0x5e8142(-_0x29203d._0x53648e,-_0x29203d._0x56b218,-_0x29203d._0x337093,-_0x29203d._0x23a940)](_0x58c20c=>{function _0x5ef734(_0x1bda25,_0x60d8f1,_0x42f373,_0x1b2696){return _0x1a1a20(_0x1bda25-0x1eb,_0x1b2696- -0x236,_0x42f373-0xd9,_0x60d8f1);}function _0x5ae65b(_0x105fc0,_0x187077,_0xed4032,_0x1647ce){return _0x5e8142(_0x105fc0-0x17e,_0x187077-_0x335faf._0x5eda02,_0x1647ce,_0xed4032-_0x335faf._0x53a991);}return{'type':'function','name':_0x58c20c[_0x5ef734(_0x19a5d4._0x32a680,0xda,0xdc,0xf5)],'description':_0x58c20c[_0x5ef734(0xfb,_0x19a5d4._0x1c0644,0xef,_0x19a5d4._0x30d4a6)],'parameters':_0x58c20c[_0x5ae65b(_0x19a5d4._0x13321d,0x3ee,0x3db,0x3e8)]};}),..._0xf980b8[_0x5e8142(-0x23f,-0x23d,-_0x29203d._0x39c2ad,-0x22b)]?{'text':{'format':{'type':_0x5e8142(-_0x29203d._0x3537d,-0x204,-_0x29203d._0x3a5d3b,-_0x29203d._0x3380b0),'name':_0xf980b8['outputFormat'][_0x1a1a20(0x311,0x32b,0x330,_0x29203d._0x1b65e0)]??_0x5e8142(-0x25e,-_0x29203d._0xe97dd8,-0x25e,-_0x29203d._0x23d199),'schema':_0xf980b8[_0x1a1a20(_0x29203d._0x3852ee,0x336,_0x29203d._0x3e07a5,0x341)][_0x1a1a20(_0x29203d._0x22351f,_0x29203d._0x1b5de8,0x35f,0x333)],'strict':_0xf980b8[_0x1a1a20(_0x29203d._0x2f7790,0x336,_0x29203d._0x269ae7,_0x29203d._0x19238a)]['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};function _0x1f18(){const _0x2d0acd=['ndv0qLrmzNu','C3rYAw5NAwz5','mZbzr01Vruu','nda3mJa3nwHiCe95ua','BgvUz3rO','C3rHDhvZ','BwvZC2fNzxm','Aw5WDxrFAw1Hz2u','DhLWzq','zMLSDgvY','C3rYDwn0DxjLzf9VDxrWDxq','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','DxnLCI12AxnPyMXL','zwzMB3j0','Aw5WDxq','zgf0ytO','Aw1Hz2u','C3vTBwfYEq','BMfTzq','C291CMnL','mtLmwwLot0y','C3bSAwnL','y29UDgvUDa','DMLZAwjPBgL0Eq','BwvZC2fNzq','m2XSD3D4za','sw1Hz2uGCMv0DxjUzwqGyNKGvMLLD0zPBguGzM9YihrVB2WGCMvZDwX0ia','Dg9VBhm','mJGZnJmWnKTqD2vesa','B3v0Chv0rM9YBwf0','mZiXmtq0AKjyBNPu','zgf0yq','zgvZy3jPChrPB24','mtj5vKvRBLu','Dgv4Da','yxnZAxn0yw50','yxv0BW','ANnVBL9Zy2HLBwe','ChvZAa','Aw5WDxrFDgv4Da','B2jQzwn0','BwfW','C2nOzw1H','zNvUy3rPB25Fy2fSBa','Bwf4vg9Rzw5Z','DhjPBq','y29KzxG','mJaXmJjLEKvvCwi','o2jHC2u2ncW','BwvKAwfFDhLWzq','B3v0Chv0x3rLEhq','C3LZDgvT','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','AxnbCNjHEq','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','nZy1mJaWBKnlz0j2','C3rYAw5N','Dg9VBf91C2vFAwq','CM9Szq','mJCYodaXmKHovLDnqG','CMvHC29UAw5N','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','mZeYntKWtKTWEhLb','Aw5WDxrFC2nOzw1H','AM9PBG'];_0x1f18=function(){return _0x2d0acd;};return _0x1f18();}
@@ -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(_0x384215,_0x347dae){var _0x1ca1ce={_0x2dd64e:0x1eb,_0x338368:0x1e3,_0x4d899e:0x1e7,_0x20f49c:0x1e6,_0x3883cb:0x1f5,_0xca41c8:0x1e0,_0x4e17bc:0x1ea,_0x45bd40:0x1f4,_0x48af28:0x1e9,_0x34128b:0x1ed,_0x24c120:0x1e5,_0x25b0f3:0x1ef,_0xbdcca0:0x1d2,_0x15a110:0x1d9,_0x39f4b2:0x1e0,_0x519f9e:0x1e1,_0x542256:0x1fc,_0x5c0a12:0x1dd,_0x3316c4:0x1d6},_0x1b6426={_0x2e8c81:0x261},_0x3cbd4a={_0x3dada3:0x176};function _0x12e68b(_0x228eed,_0x188bb2,_0x4134cc,_0x4f9346){return _0x3c1b(_0x4f9346-_0x3cbd4a._0x3dada3,_0x228eed);}function _0x4481e7(_0x410883,_0x5eb3df,_0x1a425e,_0x243fdb){return _0x3c1b(_0x5eb3df- -_0x1b6426._0x2e8c81,_0x243fdb);}var _0x395ea8=_0x384215();while(!![]){try{var _0x4a013b=-parseInt(_0x4481e7(-0x1ea,-_0x1ca1ce._0x2dd64e,-0x1e8,-_0x1ca1ce._0x338368))/0x1+parseInt(_0x4481e7(-_0x1ca1ce._0x4d899e,-0x1e9,-0x1de,-_0x1ca1ce._0x20f49c))/0x2+-parseInt(_0x12e68b(0x1f4,_0x1ca1ce._0x3883cb,_0x1ca1ce._0xca41c8,0x1eb))/0x3*(-parseInt(_0x12e68b(0x1e9,_0x1ca1ce._0x4e17bc,_0x1ca1ce._0x45bd40,_0x1ca1ce._0x48af28))/0x4)+-parseInt(_0x12e68b(_0x1ca1ce._0x3883cb,0x1ef,_0x1ca1ce._0x34128b,0x1f8))/0x5*(parseInt(_0x12e68b(0x1f3,0x1ef,_0x1ca1ce._0x24c120,_0x1ca1ce._0x25b0f3))/0x6)+parseInt(_0x4481e7(-_0x1ca1ce._0x20f49c,-0x1e7,-0x1e9,-0x1e9))/0x7+parseInt(_0x4481e7(-_0x1ca1ce._0xbdcca0,-_0x1ca1ce._0x15a110,-0x1d9,-0x1de))/0x8*(parseInt(_0x4481e7(-0x1db,-_0x1ca1ce._0x39f4b2,-0x1dd,-_0x1ca1ce._0x519f9e))/0x9)+-parseInt(_0x12e68b(0x1f4,0x1fd,0x1f3,_0x1ca1ce._0x542256))/0xa*(-parseInt(_0x4481e7(-0x1e2,-_0x1ca1ce._0x5c0a12,-_0x1ca1ce._0x3316c4,-_0x1ca1ce._0x15a110))/0xb);if(_0x4a013b===_0x347dae)break;else _0x395ea8['push'](_0x395ea8['shift']());}catch(_0x27f528){_0x395ea8['push'](_0x395ea8['shift']());}}}(_0x550d,0x52cbe));var OperationAbortedError=class extends Error{[_0x7d76f1(-0x2fa,-0x2ff,-0x2f7,-0x2fc)]='ABORT_ERR';constructor(_0x3138e1=_0x7d76f1(-0x307,-0x305,-0x2fb,-0x2ff)){var _0x3fd970={_0x237249:0x2f6,_0x38db3c:0x2fa,_0x3f5c94:0x314,_0x38d164:0x318},_0x58af3f={_0x5b3580:0x60e},_0x373338={_0x4634a5:0x49,_0x403798:0x160};super(_0x3138e1);function _0x4badc3(_0x5e18e8,_0x3f7422,_0xb1141b,_0x14fd2e){return _0x7d76f1(_0x5e18e8-_0x373338._0x4634a5,_0x3f7422-_0x373338._0x403798,_0xb1141b,_0x5e18e8-0xa);}function _0x5e18ac(_0x2bef65,_0x5c88d6,_0x4d60ef,_0x53e98d){return _0x7d76f1(_0x2bef65-0xf1,_0x5c88d6-0x1e5,_0x53e98d,_0x4d60ef-_0x58af3f._0x5b3580);}this[_0x4badc3(-0x2f6,-_0x3fd970._0x237249,-_0x3fd970._0x38db3c,-0x301)]=_0x5e18ac(0x30b,0x31a,_0x3fd970._0x3f5c94,_0x3fd970._0x38d164);}};function _0x7d76f1(_0x25ae37,_0x5a8bd7,_0x2360ca,_0x465b0d){return _0x3c1b(_0x465b0d- -0x37f,_0x2360ca);}function toAbortError(_0x2aae47){var _0x48808b={_0x3e666d:0x88,_0x263fe2:0x8a,_0x1635ff:0x172,_0x5509f7:0x8f,_0x3980a9:0x96},_0x265fc4={_0x4541d7:0x261,_0x247883:0x85,_0x1f6840:0x45},_0x5d42ad={_0x301183:0x61};if(isAbortError(_0x2aae47))return _0x2aae47;if(_0x2aae47 instanceof Error)return new OperationAbortedError(_0x2aae47[_0x37f010(_0x48808b._0x3e666d,0x88,_0x48808b._0x263fe2,0x7f)]);if(typeof _0x2aae47===_0x15ea70(0x177,_0x48808b._0x1635ff,0x17d,0x178)&&_0x2aae47[_0x37f010(0x9a,_0x48808b._0x5509f7,0x86,_0x48808b._0x3980a9)]>0x0)return new OperationAbortedError(_0x2aae47);function _0x37f010(_0x87c220,_0x30bf55,_0x31666d,_0x3e585d){return _0x7d76f1(_0x87c220-0x1b9,_0x30bf55-_0x5d42ad._0x301183,_0x3e585d,_0x30bf55-0x393);}function _0x15ea70(_0x14d47e,_0x17c5c3,_0x340231,_0x2d9fad){return _0xdefde4(_0x2d9fad- -_0x265fc4._0x4541d7,_0x17c5c3-_0x265fc4._0x247883,_0x340231,_0x2d9fad-_0x265fc4._0x1f6840);}return new OperationAbortedError();}function _0x3c1b(_0x429848,_0x370ec4){_0x429848=_0x429848-0x73;var _0x550d61=_0x550d();var _0x3c1ba4=_0x550d61[_0x429848];if(_0x3c1b['nTQXcQ']===undefined){var _0x1667a9=function(_0x5744d1){var _0x1d1cb2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x3138e1='',_0x2aae47='';for(var _0x487b27=0x0,_0x1e58f5,_0x1b10a5,_0x22b20c=0x0;_0x1b10a5=_0x5744d1['charAt'](_0x22b20c++);~_0x1b10a5&&(_0x1e58f5=_0x487b27%0x4?_0x1e58f5*0x40+_0x1b10a5:_0x1b10a5,_0x487b27++%0x4)?_0x3138e1+=String['fromCharCode'](0xff&_0x1e58f5>>(-0x2*_0x487b27&0x6)):0x0){_0x1b10a5=_0x1d1cb2['indexOf'](_0x1b10a5);}for(var _0x10b8ac=0x0,_0x1958b8=_0x3138e1['length'];_0x10b8ac<_0x1958b8;_0x10b8ac++){_0x2aae47+='%'+('00'+_0x3138e1['charCodeAt'](_0x10b8ac)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2aae47);};_0x3c1b['UkxgDT']=_0x1667a9,_0x3c1b['ehBwrn']={},_0x3c1b['nTQXcQ']=!![];}var _0x47d848=_0x550d61[0x0],_0x1b554f=_0x429848+_0x47d848,_0xcd7326=_0x3c1b['ehBwrn'][_0x1b554f];return!_0xcd7326?(_0x3c1ba4=_0x3c1b['UkxgDT'](_0x3c1ba4),_0x3c1b['ehBwrn'][_0x1b554f]=_0x3c1ba4):_0x3c1ba4=_0xcd7326,_0x3c1ba4;}function isAbortError(_0x487b27){var _0x3e8b80={_0x23a73e:0x13c,_0x24f104:0x2e6,_0x8f8c2e:0x2e3,_0x70c6ed:0x2dd,_0x19a0a9:0x2e2};function _0x22df77(_0x3dabfe,_0x4483e1,_0x33f0dd,_0x21e63f){return _0xdefde4(_0x4483e1- -0x6c3,_0x4483e1-0xa3,_0x3dabfe,_0x21e63f-0xb5);}function _0x5d43ed(_0x13c179,_0x4b10a4,_0x4ac1c4,_0x92d46f){return _0xdefde4(_0x4b10a4- -0x295,_0x4b10a4-0xd9,_0x92d46f,_0x92d46f-0x195);}return _0x487b27 instanceof OperationAbortedError||_0x487b27 instanceof Error&&(_0x487b27[_0x5d43ed(_0x3e8b80._0x23a73e,0x145,0x140,0x14c)]===_0x22df77(-_0x3e8b80._0x24f104,-_0x3e8b80._0x8f8c2e,-_0x3e8b80._0x70c6ed,-_0x3e8b80._0x19a0a9)||'code'in _0x487b27&&_0x487b27['code']===_0x22df77(-0x2f0,-0x2ec,-0x2eb,-0x2f2));}function _0xdefde4(_0x5d4da5,_0x44f082,_0x3e956e,_0x1ca7e1){var _0x2bf760={_0x39c2ad:0x35b};return _0x3c1b(_0x5d4da5-_0x2bf760._0x39c2ad,_0x3e956e);}function _0x550d(){var _0x49cdfe=['mZqZoti1nenhzgjArW','BgvUz3rO','qujpuLrFrvjs','ywjVCNq','C3rYAw5N','BMfTzq','t3bLCMf0Aw9UigfIB3j0zwq','mtq2mJy3mwDPquXHtW','nZbvwe9Wzuu','y29Kzq','ndrlr3buueS','qwjVCNrfCNjVCG','mte5mZyWA1Lbuw9t','ywrKrxzLBNrmAxn0zw5LCG','mtzYzKTUtLC','ndKYmZzsChH4BwO','BwvZC2fNzq','mtm4zhritM9I','ndi1ntCWs2f1BLPw','ywjVCNrLza','mtK5ndbowMviDuy','mJG5ntm2B1jQEMnz'];_0x550d=function(){return _0x49cdfe;};return _0x550d();}function throwIfAborted(_0x1e58f5){var _0x5f04e7={_0x257f95:0x449,_0x2050a5:0x440};if(!_0x1e58f5?.[_0x528848(_0x5f04e7._0x257f95,0x449,_0x5f04e7._0x2050a5,0x442)])return;function _0x528848(_0x125611,_0x3db7b7,_0x2c734f,_0x57131b){return _0xdefde4(_0x3db7b7-0x77,_0x3db7b7-0x1aa,_0x2c734f,_0x57131b-0x1ab);}throw toAbortError(_0x1e58f5['reason']);}function addAbortListener(_0x1b10a5,_0x22b20c){var _0x23d83c={_0x1520d8:0x14d,_0x114c3c:0x14b,_0x1cfcff:0x151,_0xd64df5:0x13d,_0xd40fe:0x13e,_0x2414da:0x148,_0x4244b8:0x147,_0x1bc7db:0x14f},_0x4167bc={_0x10d2f5:0x160,_0x39bdf1:0xd9,_0x149a03:0x1bb};function _0x3db290(_0x1f4f83,_0x3eba15,_0x36cf31,_0x40bda8){return _0x7d76f1(_0x1f4f83-0x118,_0x3eba15-0xff,_0x36cf31,_0x3eba15-0x475);}function _0x330441(_0x296a04,_0x45c6b5,_0x36e9be,_0x5c7205){return _0x7d76f1(_0x296a04-_0x4167bc._0x10d2f5,_0x45c6b5-_0x4167bc._0x39bdf1,_0x45c6b5,_0x296a04-_0x4167bc._0x149a03);}if(!_0x1b10a5)return()=>{};if(_0x1b10a5[_0x330441(-_0x23d83c._0x1520d8,-_0x23d83c._0x114c3c,-0x150,-_0x23d83c._0x1cfcff)])return _0x22b20c(),()=>{};const _0x10b8ac=()=>{_0x22b20c();};return _0x1b10a5[_0x330441(-_0x23d83c._0xd64df5,-_0x23d83c._0xd40fe,-_0x23d83c._0x2414da,-0x144)](_0x330441(-_0x23d83c._0x4244b8,-0x142,-_0x23d83c._0x1bc7db,-0x13f),_0x10b8ac,{'once':!![]}),()=>{_0x1b10a5['removeEventListener']('abort',_0x10b8ac);};}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(_0x3523df,_0x152f09){const _0x5cd377={_0x15a1ec:0x1d9,_0x3a21ef:0x1e1,_0x1129d5:0x1cc,_0x2bef8f:0x47b,_0xcc8df2:0x49e,_0x417de6:0x486,_0x2a1b9d:0x473,_0x45c773:0x44f,_0x460b03:0x4a1,_0x47ff40:0x491,_0x5447f5:0x44d,_0xb52cb5:0x1a8,_0x544094:0x1b7,_0x19e1e8:0x441,_0x2377e0:0x45a,_0x3cb3da:0x453,_0x1e333d:0x1b5,_0x7837bd:0x19f,_0x38bf59:0x461,_0x40ac65:0x463,_0x3c9414:0x1b2,_0x2e2958:0x1a1,_0x2a14e7:0x1da,_0x15fbda:0x1c4},_0x391156={_0x1a80a3:0xd8},_0x16340c=_0x3523df();function _0xea640d(_0x1f3cf9,_0x2d2a20,_0x3fcfa3,_0x484ac4){return _0x28c7(_0x484ac4-0x37e,_0x2d2a20);}function _0x5a855e(_0x444600,_0x4afb0e,_0x1ff065,_0x2dc564){return _0x28c7(_0x4afb0e-_0x391156._0x1a80a3,_0x1ff065);}while(!![]){try{const _0xb93a3f=parseInt(_0x5a855e(_0x5cd377._0x15a1ec,_0x5cd377._0x3a21ef,_0x5cd377._0x1129d5,0x1c7))/0x1+parseInt(_0xea640d(_0x5cd377._0x2bef8f,_0x5cd377._0xcc8df2,_0x5cd377._0x417de6,0x481))/0x2*(parseInt(_0xea640d(_0x5cd377._0x2a1b9d,_0x5cd377._0x45c773,0x446,0x465))/0x3)+parseInt(_0xea640d(0x4a7,_0x5cd377._0x460b03,_0x5cd377._0x47ff40,0x48a))/0x4*(-parseInt(_0xea640d(0x490,0x459,_0x5cd377._0x5447f5,0x46e))/0x5)+parseInt(_0x5a855e(_0x5cd377._0xb52cb5,_0x5cd377._0x544094,0x1d8,0x1ad))/0x6+-parseInt(_0xea640d(0x44e,0x45a,_0x5cd377._0x19e1e8,0x459))/0x7*(-parseInt(_0xea640d(0x457,_0x5cd377._0x5447f5,_0x5cd377._0x2377e0,_0x5cd377._0x3cb3da))/0x8)+parseInt(_0x5a855e(0x1ad,_0x5cd377._0x1e333d,_0x5cd377._0x7837bd,0x1a9))/0x9*(-parseInt(_0xea640d(0x480,_0x5cd377._0x38bf59,0x453,_0x5cd377._0x40ac65))/0xa)+parseInt(_0x5a855e(_0x5cd377._0x3c9414,0x1bb,_0x5cd377._0x2e2958,0x1d3))/0xb*(parseInt(_0x5a855e(0x1a4,0x1c7,_0x5cd377._0x2a14e7,_0x5cd377._0x15fbda))/0xc);if(_0xb93a3f===_0x152f09)break;else _0x16340c['push'](_0x16340c['shift']());}catch(_0x19b87f){_0x16340c['push'](_0x16340c['shift']());}}}(_0x11a1,0xa45db));function createTextBlock(_0x420c0d){return{'type':'text','text':_0x420c0d};}function normalizeTextBlock(_0x1cd7e9){return createTextBlock(_0x1cd7e9['text']??'');}function normalizeContent(_0x2478bb){const _0x5d89b6={_0x2d2115:0x66,_0x420d57:0x42,_0x5aa68a:0x177,_0x3d37e7:0x178,_0xda3b8a:0x1af,_0xc461c2:0x1a2},_0x4f0b41={_0x3a3583:0x3de,_0x253a64:0x3f4,_0x40652b:0x3d1},_0x21af65={_0x3ce9e8:0x179};function _0x32535f(_0x5c283e,_0x39536b,_0x26b5c8,_0x5cb2cf){return _0x28c7(_0x39536b- -_0x21af65._0x3ce9e8,_0x5cb2cf);}if(typeof _0x2478bb===_0x32535f(-0x7b,-_0x5d89b6._0x2d2115,-_0x5d89b6._0x420d57,-0x7d))return[createTextBlock(_0x2478bb)];function _0x2562bd(_0xc050b5,_0xad7df8,_0x3ccf23,_0x530663){return _0x28c7(_0xc050b5-0xae,_0x3ccf23);}if(!Array[_0x2562bd(0x190,_0x5d89b6._0x5aa68a,_0x5d89b6._0x3d37e7,0x191)](_0x2478bb))return[];return _0x2478bb[_0x2562bd(_0x5d89b6._0xda3b8a,0x19c,_0x5d89b6._0xc461c2,0x1b4)](_0x19d50b=>{const _0x306402={_0x413ded:0x241};function _0xf98b3b(_0x278bdf,_0x6f3406,_0xb7cdaf,_0x382202){return _0x2562bd(_0xb7cdaf-_0x306402._0x413ded,_0x6f3406-0x2e,_0x6f3406,_0x382202-0xc5);}if(_0x19d50b[_0xf98b3b(_0x4f0b41._0x3a3583,0x3d8,_0x4f0b41._0x253a64,_0x4f0b41._0x40652b)]==='text')return normalizeTextBlock(_0x19d50b);return structuredClone(_0x19d50b);});}function normalizeSystem(_0x20668d=[]){const _0x486b3d={_0x1b80ed:0x4d0,_0x379d34:0x4df,_0x2a4d0b:0x4c7,_0x1ac89e:0x4af};function _0x14a2a7(_0xa0738e,_0x59f2d0,_0x501898,_0x2871b0){return _0x28c7(_0x501898-0x3bc,_0x2871b0);}function _0x27e2ee(_0x5ab0a2,_0x9cf31f,_0x3175e1,_0x4ee9ad){return _0x28c7(_0x4ee9ad-0x3d4,_0x3175e1);}return normalizeContent(_0x20668d)[_0x14a2a7(_0x486b3d._0x1b80ed,_0x486b3d._0x379d34,_0x486b3d._0x2a4d0b,_0x486b3d._0x1ac89e)](_0x529ce5=>_0x529ce5[_0x14a2a7(0x4d1,0x4d1,0x4c1,0x4d7)]===_0x27e2ee(0x4e0,0x4cc,0x4e3,0x4cd));}function _0x11a1(){const _0x45d45f=['DxnHz2u','C3rVCfjLyxnVBG','B3v0Chv0x3rVA2vUCW','Dg9VBf91C2vFAwq','BwfW','zMXHDe1HCa','mta3oeXWuhrLEG','ChvZAa','DhLWzq','zxjYB3i','DgHPBMTPBMC','Bwv0ywrHDge','mtaWmJq4ngzWy2HyDG','DhjPBq','zMLSDgvY','mtzQy1vuwxG','Aw5WDxrFDg9Rzw5Z','Bw9KzwW','Bw9KzwXFAwrLBNrPDhK','B3jPz2LUtw9KzwXjzgvUDgL0Eq','B3v0Chv0','yw50AhjVCgLJx3rOAw5RAw5N','C3rYAw5N','C3rVCf9YzwfZB24','CM9Szq','yxnZAxn0yw50','y29UDgvUDa','Bwf4x3rVA2vUCW','ywrK','CMvHC29UAw5N','Dg9VBhm','ChjPy2LUz1bYB3zPzgvYswq','mtGYotm2qNL5BLjd','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','AM9PBG','DxnLCG','C3vTBwfYEq','C3rHDhvZ','mtyXCK9ZAujY','BwvZC2fNzxm','mtiZnda5ogzWt0fzuW','C2vZC2LVBKLK','mtCYntm1nejLD2L4uW','C2vZC2LVBL9Pza','C3LZDgvT','AxnbCNjHEq','mJyWntL2CxLHBeO','DhvYBL9Pza','mJb5txnxugG','B3v0Chv0vg9Rzw5Z','mJCZzuffy3jw','B3v0Chv0rM9YBwf0','khjLzgfJDgvKihjLyxnVBMLUzYK','ChjVDMLKzxjtDgf0zq','BgvUz3rO','Dg9VBf91C2u','Aw5WDxruB2TLBNm','DhvYBKLK','mtaZmMTTqKnezG','mtqWmtyWmfHxr1DNvG','B3bLBMfPx3jLyxnVBMLUzW','BwvZC2fNzq','ChjPy2LUz19WCM92AwrLCL9Pza','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Bwf4vg9Rzw5Z','Bw9KzwXjzgvUDgL0Eq','CMvHC29UAw5Nvg9Rzw5Z','kgvUy3j5ChrLzcbYzwfZB25PBMCP','Dgv4Da','CMvHC29UAw5Nx3rVA2vUCW','AgfZ','Dg9VBf9Yzxn1Bhq'];_0x11a1=function(){return _0x45d45f;};return _0x11a1();}function isProviderStateCompatible(_0xa09c13,_0xe4d928){const _0x33057e={_0x5c0eaa:0x15b,_0x4cdef1:0x16a,_0x343d6f:0x152,_0x2fdbba:0x159},_0x26839a={_0x253189:0x4b};function _0x17a3b4(_0x93a1d,_0x58d7fa,_0x203500,_0x4f9daf){return _0x28c7(_0x203500-_0x26839a._0x253189,_0x4f9daf);}function _0x4be840(_0x5532fa,_0x30b20e,_0x5bcc56,_0x242d8b){return _0x28c7(_0x5bcc56- -0xfc,_0x30b20e);}const _0x51dce3=_0xa09c13['providerState']?.[_0x17a3b4(0x15c,0x16b,_0x33057e._0x5c0eaa,_0x33057e._0x4cdef1)];return _0x51dce3===void 0x0||_0x51dce3===_0xe4d928['metadata']['modelIdentity']||_0x51dce3===_0xe4d928[_0x17a3b4(0x169,_0x33057e._0x343d6f,_0x33057e._0x2fdbba,0x16f)];}function normalizeMessage(_0x31d383){const _0x13a745={_0x58fe76:0x1b2,_0xd619cd:0x1ce,_0x44e5a3:0x1d4,_0x3a7177:0x1dc,_0x1ce09d:0x132,_0x4d3d8d:0x139},_0x17f5d1={_0x429717:0xc1};function _0x1e9f00(_0x167d5a,_0x29265b,_0x471712,_0x3e59d2){return _0x28c7(_0x3e59d2-_0x17f5d1._0x429717,_0x471712);}function _0x2137d9(_0xb5ce70,_0x69504c,_0x4d0bc6,_0x1227cc){return _0x28c7(_0x69504c- -0x223,_0x4d0bc6);}return{...typeof _0x31d383['id']===_0x1e9f00(_0x13a745._0x58fe76,0x1c3,_0x13a745._0xd619cd,_0x13a745._0x44e5a3)?{'id':_0x31d383['id']}:{},'role':_0x31d383[_0x1e9f00(0x1ec,_0x13a745._0x3a7177,0x1e6,0x1d6)],'content':normalizeContent(_0x31d383['content']),..._0x31d383[_0x2137d9(-_0x13a745._0x1ce09d,-_0x13a745._0x4d3d8d,-0x12e,-0x152)]?{'providerState':structuredClone(_0x31d383['providerState'])}:{}};}function compileRequest(_0x10254d){const _0xce1f61={_0x38684f:0x1df,_0x6009c9:0x1e4,_0x26882f:0x20c,_0x5df9fa:0x25f,_0x180ad0:0x244,_0xa35772:0x23b,_0x131aa8:0x245,_0x4dd0e4:0x47f,_0x48bdd9:0x460,_0x44e094:0x48e,_0x2cce83:0x4b2,_0x302cc7:0x23a,_0x2566ed:0x491,_0x132770:0x4ab},_0x52942a={_0x506474:0x30d};function _0x50ca3b(_0x5a7296,_0x29d8fb,_0x3e1326,_0x480b73){return _0x28c7(_0x3e1326- -_0x52942a._0x506474,_0x29d8fb);}function _0x16d38f(_0x281a92,_0x1bf811,_0x4591fb,_0x27f559){return _0x28c7(_0x281a92-0x3ad,_0x4591fb);}return{'model':_0x10254d[_0x50ca3b(-_0xce1f61._0x38684f,-_0xce1f61._0x6009c9,-0x1ff,-0x1f1)]??'claude-sonnet-4-20250514',..._0x10254d['max_tokens']!==void 0x0?{'max_tokens':_0x10254d[_0x50ca3b(-0x1dd,-0x1e5,-0x1f5,-_0xce1f61._0x26882f)]}:{},..._0x10254d[_0x50ca3b(-_0xce1f61._0x5df9fa,-_0xce1f61._0x180ad0,-_0xce1f61._0xa35772,-_0xce1f61._0x131aa8)]?{'reasoning':structuredClone(_0x10254d[_0x16d38f(_0xce1f61._0x4dd0e4,_0xce1f61._0x48bdd9,0x46e,0x470)])}:{},'system':normalizeSystem(_0x10254d[_0x16d38f(_0xce1f61._0x44e094,0x47b,0x4ab,_0xce1f61._0x2cce83)]),'messages':_0x10254d['messages']['map'](normalizeMessage),'tools':structuredClone(_0x10254d[_0x50ca3b(-0x253,-0x247,-_0xce1f61._0x302cc7,-0x21e)]??[]),'metadata':{'session_id':_0x10254d['sessionId'],'turn_id':_0x10254d[_0x16d38f(0x49b,0x4be,_0xce1f61._0x2566ed,_0xce1f61._0x132770)]}};}function toChatRequest(_0x5b82d6){const _0x1fe028={_0x5ea66c:0x187,_0x10ecb1:0x1a7,_0x185f18:0x17d,_0xbd284a:0x16f,_0x2e693e:0x181,_0x460b20:0x1bf,_0x13f86f:0x198,_0x56c389:0x1c0,_0x43e8bb:0x1c2,_0x32d8f0:0x1bf,_0x2406e5:0x1e1,_0x51f53d:0x1b5,_0x28c955:0x1cf,_0x2a5aaf:0x19c,_0x746c7a:0x426,_0x4cda1c:0x402,_0x373d6a:0x3fe,_0x3ee535:0x43d,_0x28fd06:0x403,_0x478ea9:0x418,_0x5d268d:0x186,_0x28a756:0x180,_0x2404c3:0x169,_0x59a1be:0x43b,_0x1574b2:0x19d,_0x39490f:0x18d,_0x45dfa0:0x1a6,_0x1278f6:0x1af,_0x592586:0x18a,_0x5061ba:0x40a,_0x657640:0x1ad,_0xfd3ce9:0x1ab};function _0x41d712(_0x1f016e,_0xd4a15b,_0x433f2d,_0x5583f1){return _0x28c7(_0x1f016e- -0x295,_0x5583f1);}function _0x453815(_0xf19f27,_0xe032be,_0x355574,_0x24e294){return _0x28c7(_0x24e294-0x310,_0x355574);}return{'model':_0x5b82d6[_0x41d712(-_0x1fe028._0x5ea66c,-_0x1fe028._0x10ecb1,-0x170,-0x191)],..._0x5b82d6['max_tokens']!==void 0x0?{'maxTokens':_0x5b82d6[_0x41d712(-_0x1fe028._0x185f18,-0x184,-_0x1fe028._0xbd284a,-_0x1fe028._0x2e693e)]}:{},..._0x5b82d6['reasoning']?{'reasoning':structuredClone(_0x5b82d6[_0x41d712(-0x1c3,-0x19f,-_0x1fe028._0x460b20,-0x1a6)])}:{},'system':structuredClone(_0x5b82d6[_0x41d712(-0x1b4,-_0x1fe028._0x13f86f,-0x196,-0x1cc)]),'messages':structuredClone(_0x5b82d6[_0x41d712(-0x1b9,-0x1dd,-0x1c2,-_0x1fe028._0x56c389)]),'tools':structuredClone(_0x5b82d6[_0x41d712(-_0x1fe028._0x43e8bb,-0x1bb,-_0x1fe028._0x32d8f0,-_0x1fe028._0x2406e5)]),'metadata':{'sessionId':_0x5b82d6['metadata'][_0x41d712(-_0x1fe028._0x51f53d,-_0x1fe028._0x28c955,-0x1af,-_0x1fe028._0x2a5aaf)],'turnId':_0x5b82d6['metadata'][_0x41d712(-0x1b1,-0x1d0,-0x1d4,-0x190)],..._0x5b82d6[_0x453815(_0x1fe028._0x746c7a,_0x1fe028._0x4cda1c,0x437,0x418)][_0x453815(0x435,_0x1fe028._0x373d6a,_0x1fe028._0x3ee535,0x41f)]!==void 0x0?{'modelIdentity':_0x5b82d6[_0x453815(0x41c,_0x1fe028._0x28fd06,_0x1fe028._0x478ea9,0x418)][_0x41d712(-_0x1fe028._0x5d268d,-_0x1fe028._0x28a756,-0x172,-_0x1fe028._0x2404c3)]}:{},..._0x5b82d6[_0x453815(0x42e,0x412,_0x1fe028._0x59a1be,_0x1fe028._0x478ea9)][_0x41d712(-0x1a2,-_0x1fe028._0x1574b2,-0x19a,-0x1aa)]!==void 0x0?{'pricingProviderId':_0x5b82d6[_0x41d712(-_0x1fe028._0x39490f,-_0x1fe028._0x45dfa0,-_0x1fe028._0x1278f6,-_0x1fe028._0x592586)][_0x453815(0x420,0x415,_0x1fe028._0x5061ba,0x403)]}:{}},..._0x5b82d6['outputFormat']?{'outputFormat':structuredClone(_0x5b82d6[_0x41d712(-_0x1fe028._0x657640,-_0x1fe028._0xfd3ce9,-0x1ce,-0x18e)])}:{}};}function toModelRequest(_0x589e68){const _0xee1980={_0x59d6a3:0xbc,_0x57f730:0x397,_0x428a7c:0x39f,_0x3d93a6:0x384,_0x2f1ea1:0x374,_0x315ae1:0x385,_0x2026ff:0x370,_0x5f3d1d:0xc7,_0x53f441:0xf3,_0x3f2b5e:0xe6,_0x13facd:0x38f,_0x121772:0x379,_0x3de346:0x375,_0x573cbc:0x368,_0x2f5110:0xb8,_0x507943:0xb0,_0x3d7f95:0xce,_0x4ee307:0xca,_0x69b65f:0xcd,_0x3479ba:0xda,_0x4aa28a:0xe0,_0x593ccf:0xb0,_0x153a9c:0x398,_0x49aa00:0x3b9,_0x28e3b6:0x3bc,_0x4e2b78:0x381,_0x3ce761:0x3b1,_0x381965:0x3ad,_0x5f2488:0x396,_0x1cacc0:0x3aa,_0x4e2fdf:0x36c,_0x309a81:0x379,_0x1e5d96:0x38a,_0x10d296:0x37b,_0x54a34d:0x39a,_0x36c1e5:0x37e},_0x1109c9={_0x4bb738:0x1b8};function _0x507cdf(_0x3ec0d8,_0xf542e3,_0x35541c,_0x494a61){return _0x28c7(_0x3ec0d8-0x2a2,_0xf542e3);}function _0x4a5f27(_0x53e418,_0x422f07,_0x13ee2e,_0x4acebf){return _0x28c7(_0x13ee2e- -_0x1109c9._0x4bb738,_0x53e418);}return{'model':_0x589e68['model'],..._0x589e68[_0x4a5f27(-0xc8,-0xbf,-0xc3,-_0xee1980._0x59d6a3)]!==void 0x0?{'max_tokens':_0x589e68[_0x507cdf(_0xee1980._0x57f730,_0xee1980._0x428a7c,0x39f,_0xee1980._0x3d93a6)]}:{},..._0x589e68[_0x507cdf(_0xee1980._0x2f1ea1,_0xee1980._0x315ae1,0x365,_0xee1980._0x2026ff)]?{'reasoning':structuredClone(_0x589e68[_0x4a5f27(-_0xee1980._0x5f3d1d,-_0xee1980._0x53f441,-_0xee1980._0x3f2b5e,-0xef)])}:{},'system':structuredClone(_0x589e68[_0x507cdf(0x383,_0xee1980._0x13facd,_0xee1980._0x121772,0x392)]),'messages':structuredClone(_0x589e68['messages']),'tools':structuredClone(_0x589e68[_0x507cdf(_0xee1980._0x3de346,0x388,_0xee1980._0x573cbc,0x360)]),'metadata':{'session_id':_0x589e68[_0x4a5f27(-_0xee1980._0x2f5110,-0xc2,-_0xee1980._0x507943,-_0xee1980._0x3d7f95)][_0x4a5f27(-_0xee1980._0x4ee307,-_0xee1980._0x69b65f,-_0xee1980._0x3479ba,-_0xee1980._0x4aa28a)],'turn_id':_0x589e68['metadata']['turnId'],..._0x589e68[_0x4a5f27(-0xbf,-0x96,-_0xee1980._0x593ccf,-0x99)][_0x507cdf(_0xee1980._0x153a9c,_0xee1980._0x49aa00,_0xee1980._0x28e3b6,_0xee1980._0x4e2b78)]!==void 0x0?{'model_identity':_0x589e68[_0x507cdf(0x3aa,_0xee1980._0x3ce761,0x39e,_0xee1980._0x381965)]['modelIdentity']}:{},..._0x589e68[_0x507cdf(0x3aa,0x3ca,_0xee1980._0x5f2488,0x388)]['pricingProviderId']!==void 0x0?{'pricing_provider_id':_0x589e68[_0x507cdf(_0xee1980._0x1cacc0,0x3bf,_0xee1980._0x49aa00,0x3c2)][_0x507cdf(0x376,_0xee1980._0x4e2fdf,0x36b,_0xee1980._0x309a81)]}:{}},..._0x589e68[_0x507cdf(_0xee1980._0x1e5d96,_0xee1980._0x10d296,_0xee1980._0x54a34d,0x392)]?{'outputFormat':structuredClone(_0x589e68[_0x507cdf(0x38a,0x393,_0xee1980._0x36c1e5,0x391)])}:{}};}function toProviderModelRequest(_0x2299c7){const _0x390962={_0xa77978:0x76,_0x1d508d:0x69,_0x6175f:0xe1,_0x213eb4:0xb0,_0x19c298:0x9d,_0x5e845f:0x27,_0xfd87d7:0x37,_0x5afc43:0x15},_0x513849={_0x5d1947:0x32},_0x22481b={_0x22f9ea:0xa5};function _0x487aa7(_0x4eb4dc,_0x3bd676,_0x5db0a4,_0x22a588){return _0x28c7(_0x22a588- -_0x22481b._0x22f9ea,_0x5db0a4);}function _0x10c39a(_0x286c09,_0xaf0ed6,_0x55a189,_0x28c15c){return _0x28c7(_0x28c15c- -_0x513849._0x5d1947,_0x55a189);}return{'model':_0x2299c7[_0x487aa7(0x58,_0x390962._0xa77978,0x71,_0x390962._0x1d508d)],..._0x2299c7['maxTokens']!==void 0x0?{'max_tokens':_0x2299c7[_0x10c39a(0xe3,0xde,_0x390962._0x6175f,0xc3)]}:{},'system':structuredClone(_0x2299c7['system']),'messages':structuredClone(_0x2299c7[_0x10c39a(_0x390962._0x213eb4,0x8a,_0x390962._0x19c298,0xaa)]),'tools':structuredClone(_0x2299c7[_0x487aa7(_0x390962._0x5e845f,_0x390962._0xfd87d7,_0x390962._0x5afc43,0x2e)])};}function toChatResponse(_0x4fdeb4){const _0x5049ff={_0x5bcdd5:0x112,_0x46dad6:0xf1,_0x196722:0xdf,_0x520609:0xe4,_0x1e926b:0x3eb,_0x14ddd5:0xf7,_0x1d01ab:0xe6,_0x542c53:0xd6,_0x241fbf:0xe1,_0x448d99:0xbf,_0x3312da:0xcb,_0x43d047:0xee,_0x268a88:0xf8,_0x4ac229:0x3ee,_0x30e1e2:0x3db,_0x1c7799:0x3de,_0xf3c4fa:0x3fa,_0x41f5ae:0x3db,_0x559d94:0x3cf},_0x36fb36={_0x4a81bd:0x19},_0x3766ce={_0x1480ef:0x2f1};function _0x424572(_0x2f829f,_0x17d7e7,_0x44fc0b,_0x2e746a){return _0x28c7(_0x44fc0b-_0x3766ce._0x1480ef,_0x17d7e7);}function _0x2c3fea(_0xf73b81,_0x163c88,_0x5a5112,_0x387a9f){return _0x28c7(_0x5a5112- -_0x36fb36._0x4a81bd,_0x387a9f);}return{'id':_0x4fdeb4['id'],'content':structuredClone(_0x4fdeb4[_0x2c3fea(_0x5049ff._0x5bcdd5,_0x5049ff._0x46dad6,0xfe,0xe0)]),'stopReason':_0x4fdeb4[_0x424572(0x418,0x3e5,0x405,0x417)],'usage':{'inputTokens':_0x4fdeb4[_0x2c3fea(_0x5049ff._0x196722,0xd8,_0x5049ff._0x520609,0xf8)][_0x424572(0x40e,_0x5049ff._0x1e926b,0x3fe,0x40f)],'outputTokens':_0x4fdeb4['usage'][_0x2c3fea(0xf8,_0x5049ff._0x14ddd5,_0x5049ff._0x1d01ab,0xd9)],..._0x4fdeb4['usage'][_0x2c3fea(_0x5049ff._0x542c53,0x105,_0x5049ff._0x241fbf,_0x5049ff._0x448d99)]!==void 0x0?{'reasoningTokens':_0x4fdeb4[_0x2c3fea(_0x5049ff._0x3312da,_0x5049ff._0x43d047,_0x5049ff._0x520609,_0x5049ff._0x268a88)]['reasoning_tokens']}:{}},..._0x4fdeb4[_0x424572(0x3fa,_0x5049ff._0x4ac229,_0x5049ff._0x30e1e2,_0x5049ff._0x1c7799)]?{'providerState':structuredClone(_0x4fdeb4[_0x424572(0x3be,_0x5049ff._0xf3c4fa,_0x5049ff._0x41f5ae,_0x5049ff._0x559d94)])}:{}};}function _0x19dc07(_0x4011bc,_0x4f5e3a,_0x48a18d,_0x5d8fad){return _0x28c7(_0x48a18d-0x73,_0x4011bc);}function toModelResponse(_0x30b89e){const _0x17350a={_0x3edd17:0xed,_0x2122e5:0xdf,_0x2dc215:0x220,_0x57a278:0x228,_0xa6aea3:0x96,_0x3b6625:0xa5,_0x1ba358:0xc6,_0x447f53:0xb7,_0x24f705:0xe3,_0x518b8f:0xa5,_0x228996:0x1eb,_0x590d93:0x213,_0x418754:0xac,_0x54fb86:0xa7,_0x437cc2:0xfa,_0x52a3c0:0xf7,_0x2f592e:0xfc,_0x2b7b5:0x1f7,_0x4992a9:0xe1,_0x561d4b:0x201,_0x149812:0x1f5},_0x5ca9e2={_0x1e9399:0x1bf};function _0x562df8(_0x394f0f,_0x32c82a,_0x243f4b,_0x5a004a){return _0x28c7(_0x32c82a-0x10a,_0x243f4b);}function _0x4129b6(_0x382bc9,_0x3b859a,_0x4494cd,_0x5e8eed){return _0x28c7(_0x5e8eed- -_0x5ca9e2._0x1e9399,_0x382bc9);}return{'id':_0x30b89e['id'],'type':_0x4129b6(-_0x17350a._0x3edd17,-0xd0,-_0x17350a._0x2122e5,-0xcd),'role':_0x562df8(0x22a,_0x17350a._0x2dc215,0x204,_0x17350a._0x57a278),'content':structuredClone(_0x30b89e[_0x4129b6(-0xa6,-_0x17350a._0xa6aea3,-0xc4,-0xa8)]),'stop_reason':_0x30b89e[_0x4129b6(-_0x17350a._0x3b6625,-_0x17350a._0x1ba358,-_0x17350a._0x447f53,-0xc1)],'stop_sequence':null,'usage':{'input_tokens':_0x30b89e[_0x4129b6(-_0x17350a._0x24f705,-_0x17350a._0x518b8f,-0xd0,-0xc2)][_0x562df8(_0x17350a._0x228996,0x1f7,_0x17350a._0x590d93,0x1fb)],'output_tokens':_0x30b89e[_0x4129b6(-_0x17350a._0x418754,-0xc6,-_0x17350a._0x54fb86,-0xc2)][_0x4129b6(-_0x17350a._0x437cc2,-_0x17350a._0x52a3c0,-_0x17350a._0x2f592e,-0xd9)],..._0x30b89e[_0x4129b6(-0xd0,-0xdb,-0xd3,-0xc2)][_0x562df8(_0x17350a._0x2b7b5,0x201,0x207,0x200)]!==void 0x0?{'reasoning_tokens':_0x30b89e[_0x4129b6(-0xdd,-0xaa,-_0x17350a._0x4992a9,-0xc2)][_0x562df8(0x21c,_0x17350a._0x561d4b,0x214,_0x17350a._0x149812)]}:{}},..._0x30b89e['providerState']?{'providerState':structuredClone(_0x30b89e[_0x4129b6(-0xc5,-0xe9,-0xe5,-0xd5)])}:{}};}function responseToAssistantMessage(_0x510f93){const _0x4e45da={_0x58ea97:0xa4,_0x2468aa:0xab,_0x153738:0xc4,_0x13f31c:0x92,_0xb6716b:0x7f,_0x5116bf:0x5e,_0x218329:0x97},_0x5d2f10={_0x28ba17:0x196},_0xf1952e={_0x577cbe:0x6b};function _0x5dcd14(_0x32afad,_0x19b6a8,_0x46543c,_0x515f0a){return _0x28c7(_0x19b6a8- -_0xf1952e._0x577cbe,_0x32afad);}function _0x4ef7f1(_0x10adf8,_0x203ae2,_0x5d0bb5,_0x4ac463){return _0x28c7(_0x203ae2- -_0x5d2f10._0x28ba17,_0x5d0bb5);}return{'role':_0x5dcd14(_0x4e45da._0x58ea97,_0x4e45da._0x2468aa,_0x4e45da._0x153738,_0x4e45da._0x13f31c),'content':normalizeContent(_0x510f93['content']),..._0x510f93['providerState']?{'providerState':structuredClone(_0x510f93[_0x5dcd14(0x90,_0x4e45da._0xb6716b,_0x4e45da._0x5116bf,_0x4e45da._0x218329)])}:{}};}function createReasoningMessage(_0x1724b4){const _0x17c0a7={_0x3ab82f:0x274,_0x2e2792:0x290,_0x4f6e60:0x286,_0x2637c7:0x280},_0x1a69f8={_0x258e23:0x37f},_0x23ebc={_0x5b5c35:0x36d},_0x597de2={_0x230263:0x19,_0xc797ce:0x4d3,_0x1265af:0x5,_0x3a0e47:0x19,_0x25a37c:0x39,_0x791b22:0x2d,_0x128558:0x15},_0x472454=normalizeContent(_0x1724b4?.['content'])[_0x1caed3(-_0x17c0a7._0x3ab82f,-_0x17c0a7._0x2e2792,-_0x17c0a7._0x4f6e60,-0x250)](_0x30792d=>{const _0x27a9b2={_0x482c82:0x762,_0x5edb86:0x1e9},_0x6f2f3={_0x4ede44:0x1e9,_0x5b8282:0xe6};function _0x3c937e(_0x44f01d,_0x5978a2,_0x57ee17,_0x467a52){return _0x1caed3(_0x5978a2-0x261,_0x5978a2-_0x6f2f3._0x4ede44,_0x467a52,_0x467a52-_0x6f2f3._0x5b8282);}function _0x14232f(_0x16f3cc,_0x2b8689,_0x442eb1,_0x96eca1){return _0x1caed3(_0x16f3cc-_0x27a9b2._0x482c82,_0x2b8689-0x1b2,_0x96eca1,_0x96eca1-_0x27a9b2._0x5edb86);}return _0x30792d['type']==='anthropic_redacted_thinking'||_0x30792d[_0x3c937e(-0x2,-_0x597de2._0x230263,0xa,-0x2)]===_0x14232f(0x4f5,0x4f4,0x4d6,_0x597de2._0xc797ce)||_0x30792d[_0x3c937e(-_0x597de2._0x1265af,-_0x597de2._0x3a0e47,-_0x597de2._0x25a37c,-0x21)]===_0x3c937e(-0x25,-_0x597de2._0x791b22,-_0x597de2._0x128558,-0x50);});if(_0x472454[_0x1caed3(-0x294,-_0x17c0a7._0x2637c7,-0x29f,-0x2a6)]===0x0)return void 0x0;function _0x5b9f66(_0x34bba2,_0x44b3e1,_0x3f65e4,_0x3f6b4e){return _0x28c7(_0x44b3e1-_0x23ebc._0x5b5c35,_0x3f65e4);}function _0x1caed3(_0x46df37,_0x37d45b,_0x364535,_0x34a292){return _0x28c7(_0x46df37- -_0x1a69f8._0x258e23,_0x364535);}return{'role':'assistant','content':_0x472454};}function createAssistantTextMessage(_0xe75819){const _0x5c6573={_0x535e42:0x23b,_0x1ac958:0x212,_0x1711a8:0x22c},_0x231c58={_0x18470b:0x343},_0x4d1371={_0x8d6e01:0x2a0,_0x3388cb:0x27e},_0x282d32={_0x9dd9cf:0x161,_0x452f72:0x11},_0x458104=normalizeContent(_0xe75819?.[_0x5b1cf4(-_0x5c6573._0x535e42,-0x240,-_0x5c6573._0x1ac958,-_0x5c6573._0x1711a8)])['filter'](_0x110e3c=>{function _0x16c343(_0xd005ff,_0x8087f6,_0x3606c0,_0xdae2be){return _0x5b1cf4(_0x8087f6,_0x8087f6-_0x282d32._0x9dd9cf,_0x3606c0-_0x282d32._0x452f72,_0xd005ff-0x4de);}return _0x110e3c[_0x16c343(_0x4d1371._0x8d6e01,_0x4d1371._0x3388cb,0x2c4,0x28b)]==='text';});if(_0x458104['length']===0x0)return void 0x0;function _0x5b1cf4(_0x4bd010,_0x25aad0,_0x1a132c,_0x349c48){return _0x28c7(_0x349c48- -_0x231c58._0x18470b,_0x4bd010);}return{'role':'assistant','content':_0x458104};}function createToolUseMessage(_0x1f6913){const _0x18e04a={_0x5688f2:0x3d9,_0x497280:0x3ec,_0x20df9d:0x403,_0x59d871:0xf0,_0x5ded83:0xc8,_0x157802:0x408,_0x377d35:0x3f0,_0x5b10b7:0x414},_0x18b77b={_0x3f9a0b:0x442,_0x14c359:0x434,_0x538b86:0x457},_0x2a5850=normalizeContent(_0x1f6913?.['content'])[_0xade5e0(_0x18e04a._0x5688f2,0x3fd,_0x18e04a._0x497280,_0x18e04a._0x20df9d)](_0x49d6c7=>{const _0x3e4ebe={_0x500995:0x79};function _0x386a0e(_0x1b11fa,_0x3e3270,_0x5f37e5,_0x6a2df3){return _0xade5e0(_0x1b11fa-0x4e,_0x5f37e5-_0x3e4ebe._0x500995,_0x5f37e5-0xf1,_0x3e3270);}return _0x49d6c7['type']===_0x386a0e(_0x18b77b._0x3f9a0b,_0x18b77b._0x14c359,_0x18b77b._0x538b86,0x44e);});if(_0x2a5850[_0x196f49(-0xd4,-_0x18e04a._0x59d871,-0xb1,-_0x18e04a._0x5ded83)]===0x0)return void 0x0;function _0x196f49(_0x616adc,_0x38b02d,_0x34968b,_0x49cbe2){return _0x28c7(_0x616adc- -0x1bf,_0x49cbe2);}function _0xade5e0(_0x550524,_0x472af2,_0x4e8b62,_0x45bcff){return _0x28c7(_0x472af2-0x2f2,_0x45bcff);}return{'role':_0xade5e0(0x3f2,_0x18e04a._0x157802,_0x18e04a._0x377d35,_0x18e04a._0x5b10b7),'content':_0x2a5850};}function getTextFromMessage(_0x3ddb88){const _0x29b7fc={_0x293fda:0x14,_0x3b5536:0x2d,_0xfd1f3c:0xd,_0x173398:0x153,_0x35552b:0x146,_0x440bde:0x19d,_0x5d569d:0x1af,_0x224337:0x18c},_0x47150c={_0x75650f:0x12b};function _0x485a16(_0xcfcaeb,_0x2ae629,_0x133420,_0xa67830){return _0x28c7(_0xa67830- -0x263,_0xcfcaeb);}function _0xb93d4a(_0x4b92cb,_0x2bd55e,_0x59cd0d,_0x3b3381){return _0x28c7(_0x4b92cb- -_0x47150c._0x75650f,_0x2bd55e);}return normalizeContent(_0x3ddb88?.[_0xb93d4a(-_0x29b7fc._0x293fda,-_0x29b7fc._0x3b5536,-0x17,_0x29b7fc._0xfd1f3c)])[_0x485a16(-0x143,-_0x29b7fc._0x173398,-_0x29b7fc._0x35552b,-0x158)](_0xde7018=>_0xde7018[_0x485a16(-0x177,-0x17b,-0x166,-0x15e)]===_0x485a16(-0x187,-0x160,-0x15a,-0x16a))['map'](_0x2e2758=>_0x2e2758[_0x485a16(-0x159,-0x15b,-0x15d,-0x16a)])[_0x485a16(-_0x29b7fc._0x440bde,-_0x29b7fc._0x5d569d,-0x187,-_0x29b7fc._0x224337)]('\x0a');}function _0x28c7(_0x7962cf,_0x22e4b0){_0x7962cf=_0x7962cf-0xd1;const _0x11a18b=_0x11a1();let _0x28c747=_0x11a18b[_0x7962cf];if(_0x28c7['REVsOr']===undefined){var _0x11f5f1=function(_0x3271fc){const _0x1e0ef9='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x420c0d='',_0x1cd7e9='';for(let _0x2478bb=0x0,_0x19d50b,_0x20668d,_0x529ce5=0x0;_0x20668d=_0x3271fc['charAt'](_0x529ce5++);~_0x20668d&&(_0x19d50b=_0x2478bb%0x4?_0x19d50b*0x40+_0x20668d:_0x20668d,_0x2478bb++%0x4)?_0x420c0d+=String['fromCharCode'](0xff&_0x19d50b>>(-0x2*_0x2478bb&0x6)):0x0){_0x20668d=_0x1e0ef9['indexOf'](_0x20668d);}for(let _0xa09c13=0x0,_0xe4d928=_0x420c0d['length'];_0xa09c13<_0xe4d928;_0xa09c13++){_0x1cd7e9+='%'+('00'+_0x420c0d['charCodeAt'](_0xa09c13)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1cd7e9);};_0x28c7['vTpQIE']=_0x11f5f1,_0x28c7['uGZHTb']={},_0x28c7['REVsOr']=!![];}const _0x38711f=_0x11a18b[0x0],_0x3706df=_0x7962cf+_0x38711f,_0x34700e=_0x28c7['uGZHTb'][_0x3706df];return!_0x34700e?(_0x28c747=_0x28c7['vTpQIE'](_0x28c747),_0x28c7['uGZHTb'][_0x3706df]=_0x28c747):_0x28c747=_0x34700e,_0x28c747;}function getReasoningTextFromMessage(_0x125f0d){const _0xc725db={_0x1b69a0:0x4de,_0x4457f9:0x4fc,_0x765b69:0x4be,_0x4145c1:0x4c0},_0x31c51a={_0x4781ad:0x64,_0xe6467d:0x5f,_0x49cfde:0x7e,_0x365f27:0x88,_0x48b39b:0x82,_0x2e2b85:0x18f,_0x4bb781:0x1ac,_0x23f597:0x82,_0x25619f:0x79,_0xf28476:0x6b,_0x1de475:0x80,_0x2cfef7:0x75,_0xa688fe:0x82,_0xf87f1f:0x78,_0x2f1309:0x1f0,_0x5e72ef:0x1d9,_0x3f9909:0x5e,_0x44d5ac:0x1c3,_0x5b2388:0x1cd,_0x31383a:0x1cc,_0x2e6518:0x1e7,_0xf26d4a:0x70,_0x11fc86:0x63,_0x1f94c9:0x5f,_0x33e496:0x77,_0x1161c3:0x43,_0x577ae0:0x62,_0x530c81:0x63,_0x399480:0x1ad,_0x84dcd:0x1ba,_0x1dccf7:0x1bb,_0x45c084:0x1d4},_0x58d798={_0x42907f:0x103},_0x753d47={_0x28ec36:0x3dc};function _0x36ded5(_0x3e7556,_0x38038b,_0x32b0e1,_0x5aa0e3){return _0x28c7(_0x5aa0e3- -0x7,_0x32b0e1);}function _0x345544(_0x1d7cc9,_0x360deb,_0x12aead,_0x292788){return _0x28c7(_0x1d7cc9-_0x753d47._0x28ec36,_0x12aead);}return normalizeContent(_0x125f0d?.['content'])[_0x345544(_0xc725db._0x1b69a0,_0xc725db._0x4457f9,0x4f4,0x4d3)](_0x5654c0=>{const _0x396825={_0x5c196c:0x68f,_0x197a6b:0x72,_0x405271:0x74};if(_0x5654c0[_0x327c5c(-_0x31c51a._0x4781ad,-0x71,-0x87,-0x47)]==='anthropic_thinking')return _0x5654c0['thinking'][_0x327c5c(-_0x31c51a._0xe6467d,-0x63,-0x83,-0x67)]()[_0x327c5c(-_0x31c51a._0x49cfde,-_0x31c51a._0x365f27,-0x63,-_0x31c51a._0x48b39b)]>0x0?[_0x5654c0[_0x5690cd(-_0x31c51a._0x2e2b85,-0x18a,-_0x31c51a._0x4bb781,-0x1c0)]]:[];if(_0x5654c0['type']===_0x327c5c(-0x75,-_0x31c51a._0x23f597,-_0x31c51a._0x25619f,-_0x31c51a._0xf28476))return[_0x327c5c(-_0x31c51a._0x1de475,-0x5d,-0x95,-0x6d)];function _0x327c5c(_0x327bdd,_0x30901b,_0x1ec43f,_0x45866d){return _0x345544(_0x327bdd- -0x545,_0x30901b-0x1c0,_0x1ec43f,_0x45866d-_0x58d798._0x42907f);}if(_0x5654c0[_0x327c5c(-0x64,-0x7f,-_0x31c51a._0x2cfef7,-_0x31c51a._0xa688fe)]!==_0x327c5c(-_0x31c51a._0xf87f1f,-0x6d,-0x79,-0x93))return[];const _0x1f57c7=_0x5654c0[_0x5690cd(-_0x31c51a._0x2f1309,-0x1fb,-0x1da,-_0x31c51a._0x5e72ef)][_0x327c5c(-0x68,-0x8b,-0x8a,-0x44)](_0x347f83=>_0x347f83[_0x5690cd(-0x1dc,-0x1b9,-0x1ba,-0x1a5)])[_0x327c5c(-_0x31c51a._0x3f9909,-0x4c,-0x6f,-0x7a)](_0x39e6d7=>_0x39e6d7[_0x5690cd(-0x1a1,-0x1ca,-0x1a9,-0x18e)]()['length']>0x0)[_0x5690cd(-0x1bc,-_0x31c51a._0x44d5ac,-0x1dc,-_0x31c51a._0x5b2388)]('\x0a\x0a');if(_0x1f57c7[_0x5690cd(-0x1e0,-_0x31c51a._0x31383a,-0x1c8,-_0x31c51a._0x2e6518)]>0x0)return[_0x1f57c7];function _0x5690cd(_0x59af6a,_0x571017,_0x1318a2,_0x1d7370){return _0x345544(_0x1318a2- -_0x396825._0x5c196c,_0x571017-_0x396825._0x197a6b,_0x59af6a,_0x1d7370-_0x396825._0x405271);}if(_0x5654c0['text']&&_0x5654c0[_0x327c5c(-_0x31c51a._0xf26d4a,-_0x31c51a._0x11fc86,-0x6c,-_0x31c51a._0x4781ad)][_0x327c5c(-_0x31c51a._0x1f94c9,-_0x31c51a._0x33e496,-_0x31c51a._0x1161c3,-_0x31c51a._0x577ae0)]()[_0x327c5c(-0x7e,-0x92,-_0x31c51a._0x530c81,-0x9e)]>0x0)return[_0x5654c0[_0x5690cd(-_0x31c51a._0x399480,-0x1a9,-_0x31c51a._0x84dcd,-0x1ae)]];return _0x5654c0['encryptedContent']?[_0x5690cd(-0x1ab,-0x1c3,-_0x31c51a._0x1dccf7,-_0x31c51a._0x45c084)]:[];})[_0x345544(0x4b3,_0xc725db._0x765b69,_0xc725db._0x4145c1,0x4a6)]('\x0a\x0a');}function getToolUseBlocks(_0x326947){const _0x4a2068={_0x36c40a:0x1f0,_0x82baf3:0x1fe},_0x51abd9={_0x1777f3:0xbc};function _0x3180ca(_0x26ffb8,_0x7d13cd,_0x27d4cf,_0x61c64c){return _0x28c7(_0x61c64c-0xe5,_0x7d13cd);}function _0x305972(_0x588bc6,_0x2c7947,_0x532a68,_0x48a942){return _0x28c7(_0x532a68-_0x51abd9._0x1777f3,_0x2c7947);}return normalizeContent(_0x326947?.[_0x3180ca(0x200,_0x4a2068._0x36c40a,0x212,0x1fc)])[_0x3180ca(0x1f9,_0x4a2068._0x82baf3,0x1f8,0x1f0)](_0x22d835=>_0x22d835[_0x3180ca(0x20e,0x1df,0x20d,0x1ea)]===_0x305972(0x18e,0x193,0x1a8,0x1cc));}function getToolResultBlocks(_0x2e2129){const _0x5ccb3b={_0x530027:0x2be},_0x44301d={_0x401dd7:0x3d3},_0x21e4ab={_0x321856:0x28d};function _0x56c221(_0x319186,_0x13c1e4,_0x35426d,_0x40a2ad){return _0x28c7(_0x13c1e4-_0x21e4ab._0x321856,_0x40a2ad);}function _0x22f457(_0x27264e,_0x15e0c5,_0x575853,_0x432c90){return _0x28c7(_0x27264e- -_0x44301d._0x401dd7,_0x15e0c5);}return normalizeContent(_0x2e2129?.['content'])[_0x22f457(-0x2c8,-0x2e2,-0x2e2,-_0x5ccb3b._0x530027)](_0x415a84=>_0x415a84[_0x56c221(0x381,0x392,0x3ac,0x37c)]===_0x22f457(-0x2d7,-0x2c1,-0x2e2,-0x2e2));}function createToolResultUserMessage(_0x10629d){const _0x16111a={_0xd529f7:0x299,_0x47c575:0x296,_0x199dd6:0x2a8,_0xa3f013:0x28f},_0x2b6618={_0x827799:0x1bd,_0x216168:0x1c2,_0x7b932f:0x1cb,_0x56254a:0xe3,_0x59c7f9:0x105,_0x3e068f:0xde,_0x5322ab:0xce,_0x220318:0xd7,_0x1671cf:0x114,_0x8c90ec:0xe5},_0x33a3b8={_0x31d79e:0x53},_0x28284c={_0x303015:0x1d0};function _0x30fa7d(_0x44e60a,_0x287fd2,_0x44244b,_0x21c030){return _0x28c7(_0x44244b-_0x28284c._0x303015,_0x21c030);}return{'role':_0x30fa7d(_0x16111a._0xd529f7,_0x16111a._0x47c575,_0x16111a._0x199dd6,_0x16111a._0xa3f013),'content':_0x10629d['map'](_0x2d4c71=>{const _0x50df01={_0x52c1fb:0xb1,_0xfbaeef:0x76,_0x1fbc49:0x10f};function _0x34f42b(_0x20dccc,_0x424be8,_0x480409,_0x36d642){return _0x30fa7d(_0x20dccc-0xa,_0x424be8-_0x33a3b8._0x31d79e,_0x424be8- -0x1dc,_0x36d642);}function _0x13bbbf(_0x367305,_0x5c8be0,_0x28edf6,_0x237d42){return _0x30fa7d(_0x367305-_0x50df01._0x52c1fb,_0x5c8be0-_0x50df01._0xfbaeef,_0x367305- -_0x50df01._0x1fbc49,_0x237d42);}return{'type':_0x13bbbf(_0x2b6618._0x827799,_0x2b6618._0x216168,_0x2b6618._0x7b932f,0x1b5),'tool_use_id':_0x2d4c71['callId'],'content':_0x2d4c71[_0x13bbbf(0x1d8,0x1c7,0x1e2,0x1bd)]??_0x2d4c71[_0x34f42b(_0x2b6618._0x56254a,_0x2b6618._0x59c7f9,0x122,0xfb)],'is_error':_0x2d4c71[_0x34f42b(_0x2b6618._0x3e068f,_0x2b6618._0x5322ab,_0x2b6618._0x220318,0xc2)]===_0x34f42b(_0x2b6618._0x1671cf,0xfa,0xd8,_0x2b6618._0x8c90ec)};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x19dc07(0x164,0x14b,0x149,0x12c);function synthesizeMissingToolResults(_0x475a1e){const _0x4e2829={_0x5d9cca:0x2ce,_0x339a21:0x118,_0x5999db:0x108,_0x3966f3:0xfe,_0x5007d5:0x308,_0x1c368c:0x31b,_0x43881d:0x30c,_0x895b57:0x315,_0x13f7eb:0x316,_0x4d9d6e:0x109,_0x6ca894:0xed},_0x1527c0={_0x58994a:0x33},_0x1dc5b0={_0x638223:0x18a},_0x254307=new Set();function _0x4aa48e(_0x63bdb0,_0x31a7ea,_0x53e16b,_0x2528a7){return _0x19dc07(_0x2528a7,_0x31a7ea-0x15c,_0x63bdb0-_0x1dc5b0._0x638223,_0x2528a7-0x173);}function _0x419cfd(_0xfad3a,_0x1d34d0,_0x5de981,_0x3616e3){return _0x19dc07(_0x1d34d0,_0x1d34d0-0x12,_0x5de981- -0x6b,_0x3616e3-_0x1527c0._0x58994a);}for(const _0x3d9c5f of _0x475a1e){for(const _0x2672bf of getToolResultBlocks(_0x3d9c5f)){_0x254307[_0x4aa48e(_0x4e2829._0x5d9cca,0x2b1,0x2c8,0x2da)](_0x2672bf[_0x419cfd(0x112,_0x4e2829._0x339a21,_0x4e2829._0x5999db,0x11c)]);}}const _0x30be12=[];for(const _0x1e24bb of _0x475a1e){_0x30be12[_0x419cfd(0x10c,0x124,0x10c,_0x4e2829._0x3966f3)](_0x1e24bb);const _0x47fd50=getToolUseBlocks(_0x1e24bb)[_0x4aa48e(_0x4e2829._0x5007d5,0x318,_0x4e2829._0x1c368c,_0x4e2829._0x43881d)](_0x4e8cba=>!_0x254307[_0x419cfd(0x110,0xe5,0x103,0x105)](_0x4e8cba['id']));if(_0x47fd50[_0x419cfd(0xe9,0xed,0xf3,0x102)]===0x0)continue;_0x30be12[_0x4aa48e(0x301,_0x4e2829._0x895b57,_0x4e2829._0x13f7eb,0x30f)]({'role':'user','content':_0x47fd50[_0x419cfd(0xf7,0xfd,_0x4e2829._0x4d9d6e,0x111)](_0x4ca6d4=>({'type':_0x4aa48e(0x2f9,0x2d8,0x31c,0x305),'tool_use_id':_0x4ca6d4['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x3afc3a of _0x47fd50){_0x254307[_0x419cfd(_0x4e2829._0x6ca894,0xf3,0xd9,0xd3)](_0x3afc3a['id']);}}return _0x30be12;}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 _0x505c(){const _0x5e563c=['zMLSDgvY','odu1ntC4mfrKBeH5rG','zNjVBq','nJa1nZuXnZrnvMTHr3q','Aw1Hz2uVANbLzW','mtHvqNbWv0S','mZKXndCWnejJA1PtrW','mte5nJjTqLLsAuG','Bwf0y2HbBgW','oty1nJaXswzkrKLL','C2XPy2u','nJi4neDNzMLxwG','Dgv4Da','Aw1Hz2u','DgvZDa','mtHxwuT2u0i','ChvZAa','nZGZyMLHBhDw','CMvWBgfJzq','mJq4nJu0txv6r2vl','BgvUz3rO','mJm5nxHoBK1uCq','BgfZDeLUzgv4'];_0x505c=function(){return _0x5e563c;};return _0x505c();}(function(_0x132e51,_0x5c55db){const _0x16c7a6={_0x502e12:0x205,_0x1da561:0x200,_0x46f75d:0x207,_0x373c2a:0x1fa,_0x34e999:0x1f8,_0x31bcf6:0x160,_0x47a596:0x173,_0x539145:0x170,_0x28a753:0x1f3,_0x10350c:0x1f5,_0x246dac:0x1f4,_0xd157c3:0x16a,_0x1e6fff:0x163,_0x1e1de3:0x164,_0x46d447:0x166,_0x16edee:0x159,_0x4c2af6:0x16e,_0x33e5aa:0x169,_0x322068:0x1fc,_0x4b42f8:0x172,_0x4476b5:0x16b},_0x5958f9={_0x1bdaa5:0x11c};function _0x29f5c2(_0x401390,_0x464ffa,_0x27963a,_0x593aa8){return _0x5175(_0x401390-0x8d,_0x593aa8);}function _0x325637(_0x27546a,_0x1ae960,_0x9a238c,_0x53b5a7){return _0x5175(_0x9a238c-_0x5958f9._0x1bdaa5,_0x27546a);}const _0x9c6322=_0x132e51();while(!![]){try{const _0x1480ee=-parseInt(_0x325637(_0x16c7a6._0x502e12,0x208,_0x16c7a6._0x1da561,_0x16c7a6._0x46f75d))/0x1+-parseInt(_0x325637(_0x16c7a6._0x373c2a,_0x16c7a6._0x34e999,0x1fe,0x208))/0x2*(parseInt(_0x29f5c2(0x162,_0x16c7a6._0x31bcf6,0x159,0x160))/0x3)+parseInt(_0x29f5c2(_0x16c7a6._0x47a596,0x178,_0x16c7a6._0x539145,0x176))/0x4*(-parseInt(_0x325637(_0x16c7a6._0x28a753,0x1ec,_0x16c7a6._0x10350c,_0x16c7a6._0x246dac))/0x5)+-parseInt(_0x29f5c2(0x160,_0x16c7a6._0xd157c3,_0x16c7a6._0x1e6fff,0x165))/0x6*(parseInt(_0x29f5c2(_0x16c7a6._0x1e1de3,0x16a,_0x16c7a6._0x46d447,_0x16c7a6._0x16edee))/0x7)+parseInt(_0x29f5c2(_0x16c7a6._0x4c2af6,0x17a,_0x16c7a6._0x33e5aa,0x16d))/0x8+-parseInt(_0x325637(0x200,0x1f5,_0x16c7a6._0x322068,0x1f2))/0x9*(parseInt(_0x29f5c2(0x169,0x16f,_0x16c7a6._0x4b42f8,0x16a))/0xa)+parseInt(_0x29f5c2(_0x16c7a6._0x4476b5,0x16c,_0x16c7a6._0x31bcf6,0x160))/0xb;if(_0x1480ee===_0x5c55db)break;else _0x9c6322['push'](_0x9c6322['shift']());}catch(_0x49b309){_0x9c6322['push'](_0x9c6322['shift']());}}}(_0x505c,0xdb8e3));import{toOpenAiResponsesRequest}from'../chunk-LIE76IJA.js';import'../chunk-IUZALP6K.js';function _0x5175(_0x103d42,_0x580f6e){_0x103d42=_0x103d42-0xd2;const _0x505cf2=_0x505c();let _0x517595=_0x505cf2[_0x103d42];if(_0x5175['HPLSVQ']===undefined){var _0x131fad=function(_0x4376f0){const _0x31428f='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x907954='',_0x4cdfcf='';for(let _0x290509=0x0,_0x441335,_0x470221,_0x1175aa=0x0;_0x470221=_0x4376f0['charAt'](_0x1175aa++);~_0x470221&&(_0x441335=_0x290509%0x4?_0x441335*0x40+_0x470221:_0x470221,_0x290509++%0x4)?_0x907954+=String['fromCharCode'](0xff&_0x441335>>(-0x2*_0x290509&0x6)):0x0){_0x470221=_0x31428f['indexOf'](_0x470221);}for(let _0x592143=0x0,_0x22202f=_0x907954['length'];_0x592143<_0x22202f;_0x592143++){_0x4cdfcf+='%'+('00'+_0x907954['charCodeAt'](_0x592143)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4cdfcf);};_0x5175['Earloi']=_0x131fad,_0x5175['iBtiJT']={},_0x5175['HPLSVQ']=!![];}const _0x1d8eb9=_0x505cf2[0x0],_0x5a317d=_0x103d42+_0x1d8eb9,_0x45de28=_0x5175['iBtiJT'][_0x5a317d];return!_0x45de28?(_0x517595=_0x5175['Earloi'](_0x517595),_0x5175['iBtiJT'][_0x5a317d]=_0x517595):_0x517595=_0x45de28,_0x517595;}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(_0x907954){function _0x5012dd(_0x73645e,_0x4405ca,_0x13561b,_0x5beb55){return _0x5175(_0x73645e- -0x2f0,_0x4405ca);}return _0x907954==='image/jpg'?_0x5012dd(-0x211,-0x215,-0x206,-0x20a):_0x907954;}function isValidBase64(_0x4cdfcf){const _0x1d2407={_0x13cca2:0xab,_0xdbbdbd:0xb0,_0x47a300:0x3d4,_0x456e25:0x3c3};if(_0x4cdfcf[_0x5e094c(_0x1d2407._0x13cca2,0xb6,_0x1d2407._0xdbbdbd,0xb1)]===0x0||_0x4cdfcf['length']%0x4!==0x0)return![];function _0x29c437(_0x4a4a34,_0x4f109f,_0x42021f,_0x788b4c){return _0x5175(_0x788b4c-0x2fa,_0x4f109f);}function _0x5e094c(_0x5b8710,_0x264306,_0x33025f,_0x4ca95e){return _0x5175(_0x5b8710- -0x2d,_0x264306);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x29c437(_0x1d2407._0x47a300,0x3d4,_0x1d2407._0x456e25,0x3cc)](_0x4cdfcf);}function collectImageMatches(_0x290509){const _0x91f3ce={_0x1007b1:0x158,_0x207633:0x159,_0x14b591:0x14f,_0x518507:0x15e,_0x1d4ec9:0x4c2,_0xcbf0e5:0x4b9},_0x40b1af={_0x2bfd62:0x482},_0x5ca797={_0x350a37:0x33c,_0x268556:0xe3},_0x3b87eb={_0xf5d8b7:0x7c},_0xd5a336={_0x23bf69:0x3df};function _0x283f03(_0x16be58,_0x2dd593,_0x2f0752,_0x57239e){return _0x5175(_0x16be58-_0xd5a336._0x23bf69,_0x2f0752);}function _0x104a65(_0x575ff2,_0x442962,_0x38a8bd,_0x5da9f3){return _0x5175(_0x575ff2-_0x3b87eb._0xf5d8b7,_0x5da9f3);}return DATA_URI_REGEX[_0x104a65(0x156,0x158,0x152,_0x91f3ce._0x1007b1)]=0x0,Array[_0x104a65(_0x91f3ce._0x207633,_0x91f3ce._0x14b591,0x153,_0x91f3ce._0x518507)](_0x290509[_0x283f03(_0x91f3ce._0x1d4ec9,0x4cb,0x4bb,0x4bb)](DATA_URI_REGEX))[_0x283f03(0x4ba,0x4c5,_0x91f3ce._0xcbf0e5,0x4c4)](_0x441335=>{function _0x295d40(_0x1a69a4,_0x20a82d,_0x432781,_0x40d7b7){return _0x104a65(_0x432781-_0x5ca797._0x350a37,_0x20a82d-_0x5ca797._0x268556,_0x432781-0x84,_0x40d7b7);}const _0x470221=(_0x441335[0x2]??'')[_0x295d40(_0x40b1af._0x2bfd62,0x499,0x48e,0x48b)](/[\r\n]/g,'');return isValidBase64(_0x470221);});}function hasPastedImages(_0x1175aa){const _0x567ff7={_0x13fb82:0x16,_0x4b6560:0x1a},_0x3f9aa1={_0x5cd2f2:0xbe};function _0xe8b797(_0x573852,_0x46647c,_0x424d63,_0x4c3ae5){return _0x5175(_0x4c3ae5- -_0x3f9aa1._0x5cd2f2,_0x573852);}return collectImageMatches(_0x1175aa)[_0xe8b797(0x25,_0x567ff7._0x13fb82,0x23,_0x567ff7._0x4b6560)]>0x0;}function contentFromPastedText(_0x592143){const _0x206589={_0x346081:0x107,_0x35c9f5:0x114,_0x23997d:0x110,_0x28d771:0x116,_0x4135d5:0x119,_0x15dbc4:0x1bf,_0x262215:0x1c0,_0x8a6859:0x1be,_0x1d2d96:0x19c,_0x46221f:0x1a3,_0x4b9607:0x1b9,_0x1604d9:0x1b2,_0x47a70b:0x1bb,_0x59b92c:0x19e,_0x2132fa:0x1a5,_0x578337:0x1b7,_0x53b58b:0x1bd,_0x514bb6:0x1b2};function _0x4eb714(_0x19447e,_0x2489a2,_0x5d4236,_0x4a22e7){return _0x5175(_0x19447e- -0x28f,_0x4a22e7);}const _0x22202f=collectImageMatches(_0x592143),_0x4e6cf8=[];function _0x11485b(_0x16f2c9,_0x3823ba,_0x27ddc9,_0x3b3d52){return _0x5175(_0x3b3d52-0x32,_0x27ddc9);}let _0x39742b=0x0;for(const _0x1d881d of _0x22202f){const _0xc73b02=_0x1d881d['index']??0x0,[_0x20dcfc,_0x5cac9b,_0x1f0caf]=_0x1d881d;_0xc73b02>_0x39742b&&_0x4e6cf8[_0x11485b(0x10a,0x106,_0x206589._0x346081,0x106)]({'type':_0x11485b(_0x206589._0x35c9f5,_0x206589._0x23997d,_0x206589._0x28d771,_0x206589._0x4135d5),'text':_0x592143['slice'](_0x39742b,_0xc73b02)}),_0x4e6cf8[_0x4eb714(-0x1bb,-_0x206589._0x15dbc4,-_0x206589._0x262215,-_0x206589._0x8a6859)]({'type':_0x4eb714(-0x1a7,-_0x206589._0x1d2d96,-_0x206589._0x46221f,-0x1a8),'source':{'type':'base64','media_type':normalizeMediaType(_0x5cac9b),'data':_0x1f0caf[_0x4eb714(-_0x206589._0x4b9607,-_0x206589._0x15dbc4,-_0x206589._0x1604d9,-_0x206589._0x47a70b)](/[\r\n]/g,'')}}),_0x39742b=_0xc73b02+_0x20dcfc['length'];}return _0x39742b<_0x592143[_0x11485b(0x108,0x105,0x105,0x10a)]&&_0x4e6cf8[_0x4eb714(-0x1bb,-_0x206589._0x47a70b,-0x1bc,-0x1b2)]({'type':_0x4eb714(-0x1a8,-_0x206589._0x59b92c,-0x1a6,-0x1a4),'text':_0x592143[_0x4eb714(-0x1aa,-_0x206589._0x2132fa,-0x1aa,-0x1ab)](_0x39742b)}),_0x4e6cf8[_0x4eb714(-_0x206589._0x578337,-_0x206589._0x53b58b,-_0x206589._0x514bb6,-0x1c0)]>0x0?_0x4e6cf8:[{'type':'text','text':_0x592143}];}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};
@@ -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 _0x277c(_0x2dc692,_0xcb3867){_0x2dc692=_0x2dc692-0xf6;const _0x4420bb=_0x4420();let _0x277cfa=_0x4420bb[_0x2dc692];if(_0x277c['dqyHzB']===undefined){var _0x320b68=function(_0x2dea56){const _0x316ff2='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c31eb='',_0x46f957='';for(let _0xda17d=0x0,_0x3a35dd,_0x35be2e,_0x5c6b49=0x0;_0x35be2e=_0x2dea56['charAt'](_0x5c6b49++);~_0x35be2e&&(_0x3a35dd=_0xda17d%0x4?_0x3a35dd*0x40+_0x35be2e:_0x35be2e,_0xda17d++%0x4)?_0x1c31eb+=String['fromCharCode'](0xff&_0x3a35dd>>(-0x2*_0xda17d&0x6)):0x0){_0x35be2e=_0x316ff2['indexOf'](_0x35be2e);}for(let _0x4b30a0=0x0,_0x29a238=_0x1c31eb['length'];_0x4b30a0<_0x29a238;_0x4b30a0++){_0x46f957+='%'+('00'+_0x1c31eb['charCodeAt'](_0x4b30a0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x46f957);};_0x277c['PxxUBN']=_0x320b68,_0x277c['VsNsPS']={},_0x277c['dqyHzB']=!![];}const _0x1f0b45=_0x4420bb[0x0],_0x51df3a=_0x2dc692+_0x1f0b45,_0x103b83=_0x277c['VsNsPS'][_0x51df3a];return!_0x103b83?(_0x277cfa=_0x277c['PxxUBN'](_0x277cfa),_0x277c['VsNsPS'][_0x51df3a]=_0x277cfa):_0x277cfa=_0x103b83,_0x277cfa;}(function(_0x54b69a,_0xd2cc93){const _0x248902={_0x31a12c:0x267,_0x4a055e:0x289,_0x1ff877:0x256,_0x898c9c:0x253,_0x1da58c:0x27f,_0x5894e2:0x323,_0x2b676a:0x271,_0x58d8ab:0x288,_0x4ba997:0x27c,_0x17830c:0x270,_0x4830d:0x376,_0x3fcabe:0x364,_0x3e5317:0x346,_0x18db8f:0x359,_0x414bc6:0x346,_0x2e380b:0x25b},_0x2e2f6d={_0x58640e:0x15c};function _0x5181e4(_0x23ef3e,_0x250bdd,_0x2b5707,_0x129e7a){return _0x277c(_0x129e7a-0x235,_0x2b5707);}function _0x1547b4(_0x3aab5e,_0x202d10,_0x3e94f7,_0x456581){return _0x277c(_0x202d10-_0x2e2f6d._0x58640e,_0x456581);}const _0xcd0179=_0x54b69a();while(!![]){try{const _0x16479a=parseInt(_0x1547b4(0x262,0x279,_0x248902._0x31a12c,_0x248902._0x4a055e))/0x1*(parseInt(_0x1547b4(0x248,_0x248902._0x31a12c,0x25f,_0x248902._0x1ff877))/0x2)+-parseInt(_0x1547b4(_0x248902._0x898c9c,0x272,0x279,_0x248902._0x1da58c))/0x3+-parseInt(_0x5181e4(0x35a,0x32c,_0x248902._0x5894e2,0x33b))/0x4*(parseInt(_0x5181e4(0x33a,0x32b,0x316,0x331))/0x5)+parseInt(_0x1547b4(0x25e,_0x248902._0x2b676a,0x25f,_0x248902._0x58d8ab))/0x6+-parseInt(_0x1547b4(0x274,_0x248902._0x4ba997,_0x248902._0x17830c,0x271))/0x7*(parseInt(_0x5181e4(_0x248902._0x4830d,0x380,0x353,_0x248902._0x3fcabe))/0x8)+-parseInt(_0x5181e4(_0x248902._0x3e5317,0x340,_0x248902._0x18db8f,_0x248902._0x414bc6))/0x9+parseInt(_0x1547b4(0x240,_0x248902._0x2e380b,0x238,0x250))/0xa;if(_0x16479a===_0xd2cc93)break;else _0xcd0179['push'](_0xcd0179['shift']());}catch(_0x2c798a){_0xcd0179['push'](_0xcd0179['shift']());}}}(_0x4420,0xbd859));import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x1c31eb,_0x46f957,_0xda17d=DEFAULT_TIMEOUT_S,_0x3a35dd){const _0x1403fc={_0x8674b8:0x1df,_0x13bf02:0x1cf},_0x6a0ed2={_0x2f792f:0x52,_0x5ac32c:0x72,_0x4783fa:0x50,_0x4cf515:0x56,_0x4309e0:0x75,_0x573653:0x61,_0x3a1253:0x232,_0xb85122:0x231,_0x1d7b31:0x89,_0xd2ce57:0x97,_0x37fc2a:0x96,_0x51e743:0x98,_0x56b0d7:0x67,_0x5c87c1:0x7b,_0x393f6f:0x76,_0x34019a:0x239,_0x41cae9:0x21f,_0x1d0ab2:0x235,_0x39b34b:0x205,_0x3a4e61:0xac,_0x49f89b:0x6b,_0x19a04b:0x8e,_0x19bd53:0x83,_0x215c43:0x7a,_0x4bc64b:0x8e,_0x5e2864:0x9e,_0x4a1f99:0x83,_0x2afac5:0x73,_0xf1b66c:0x7f,_0x28c73e:0x7a,_0x2c9bee:0xaf,_0xb87302:0x87,_0x1e52d2:0xa3,_0x3cf616:0x84,_0x4730ba:0x91},_0x238b8c={_0x5c9298:0x154,_0x497873:0x350,_0x198dc0:0x343,_0x2f442f:0x324,_0x1b8ca7:0x337,_0x32d26f:0x349,_0x2ad213:0x360,_0x481b13:0x16b,_0x6b6287:0x149,_0xd36bff:0x157,_0x179397:0x344,_0x4910ac:0x352,_0x3d36ca:0x138,_0x4c5a18:0x15f,_0x35d48c:0x149,_0x1ce552:0x15b,_0x429fa4:0x159},_0x5b937b={_0x58bf43:0x12a,_0x4f0aba:0x11d,_0x531744:0xbf,_0x1cdb46:0xc8,_0x1b6c26:0xbf,_0x49d9e3:0xcc,_0x5197bd:0x128,_0x3c26a3:0xf6,_0x47b057:0x102,_0x13247e:0x131,_0x45c0cc:0x11b,_0x44774b:0x139},_0x2686c2={_0xd1fc62:0x7,_0x5124a0:0x2a,_0x20391c:0x4,_0x2095cf:0x3e6,_0x316007:0x3b1,_0x5d2069:0x3ad},_0x258961={_0x4acd03:0x139,_0x1e3c34:0x13e},_0x35be2e=Date[_0x2e0e32(-0x1bc,-0x1bd,-_0x1403fc._0x8674b8,-_0x1403fc._0x13bf02)]();function _0x2e0e32(_0x514e33,_0x2a18fe,_0x10eb6b,_0x5bc2cd){return _0x277c(_0x2a18fe- -0x2e7,_0x514e33);}return new Promise(_0x5c6b49=>{const _0xc7ed20={_0x1a3b34:0x3a6,_0x3e1989:0x413,_0x2e2870:0x40e,_0x4f56e8:0x42a},_0x425c15={_0x592e43:0x5ae},_0x515489={_0x438750:0x1d7,_0x22a525:0x1b7},_0x5803ba={_0x339bbf:0x2cf},_0x62ee19={_0x100905:0x149,_0x2c20e2:0xb},_0x3250d6={_0x375f6f:0x131,_0x186ecf:0x344},_0x4646ba={_0x226228:0xc8,_0x509d01:0xbd},_0x400844={_0x360a21:0xd,_0x3d289a:0xc9,_0xf7cf6e:0x32},_0x3e8f2d={_0x3b82d9:0x1d};function _0x234cbb(_0x77dc76,_0xb6d118,_0x4f4dc0,_0x2654be){return _0x2e0e32(_0x77dc76,_0x2654be-0x254,_0x4f4dc0-_0x3e8f2d._0x3b82d9,_0x2654be-0x124);}const _0x4b30a0=spawn('sh',['-c',_0x1c31eb],{'stdio':[_0x234cbb(_0x6a0ed2._0x2f792f,_0x6a0ed2._0x5ac32c,_0x6a0ed2._0x4783fa,0x67),_0x234cbb(_0x6a0ed2._0x4cf515,_0x6a0ed2._0x4309e0,_0x6a0ed2._0x573653,0x67),_0x354b9a(-0x250,-_0x6a0ed2._0x3a1253,-0x246,-_0x6a0ed2._0xb85122)],'env':{...process[_0x234cbb(0x96,_0x6a0ed2._0x1d7b31,_0x6a0ed2._0xd2ce57,0x87)],'CLAUDE_PROJECT_DIR':_0x3a35dd??process[_0x234cbb(_0x6a0ed2._0x37fc2a,0x9f,0x97,_0x6a0ed2._0x51e743)]()}});let _0x29a238='',_0x3b9b4f='';_0x4b30a0['stdout']['on'](_0x234cbb(_0x6a0ed2._0x56b0d7,0x95,0x73,_0x6a0ed2._0x5c87c1),_0x277a9c=>{function _0x42efa0(_0x47d281,_0x2a20bb,_0xe94175,_0x50019a){return _0x234cbb(_0x2a20bb,_0x2a20bb-_0x400844._0x360a21,_0xe94175-_0x400844._0x3d289a,_0xe94175-_0x400844._0xf7cf6e);}_0x29a238+=_0x277a9c[_0x42efa0(_0x4646ba._0x226228,0xb6,_0x4646ba._0x509d01,0xb4)]();}),_0x4b30a0[_0x354b9a(-0x22f,-0x219,-0x230,-0x231)]['on'](_0x234cbb(0x95,0x95,_0x6a0ed2._0x393f6f,0x7b),_0xbf456d=>{const _0xaeb76f={_0x26b776:0x10c,_0x1b247b:0x1bf};function _0x53b3b3(_0x38f678,_0x3bf337,_0x5c9885,_0x324688){return _0x234cbb(_0x324688,_0x3bf337-0x1e6,_0x5c9885-_0xaeb76f._0x26b776,_0x5c9885- -_0xaeb76f._0x1b247b);}_0x3b9b4f+=_0xbf456d[_0x53b3b3(-0x139,-_0x258961._0x4acd03,-0x134,-_0x258961._0x1e3c34)]();}),_0x4b30a0[_0x354b9a(-_0x6a0ed2._0x34019a,-_0x6a0ed2._0x41cae9,-_0x6a0ed2._0x1d0ab2,-_0x6a0ed2._0x39b34b)]['on'](_0x234cbb(_0x6a0ed2._0x3a4e61,0x89,0x94,0x91),_0x51d8fa=>{function _0x4ad2d2(_0x3db550,_0x530342,_0x1ac96f,_0x51ba7f){return _0x234cbb(_0x530342,_0x530342-_0x3250d6._0x375f6f,_0x1ac96f-0x173,_0x51ba7f-_0x3250d6._0x186ecf);}function _0xf31eb8(_0x1b6b2f,_0x24dad4,_0x254f1c,_0x26c95f){return _0x354b9a(_0x26c95f,_0x1b6b2f-0x1ea,_0x254f1c-_0x62ee19._0x100905,_0x26c95f-_0x62ee19._0x2c20e2);}if(_0x51d8fa[_0xf31eb8(-0x15,_0x2686c2._0xd1fc62,-_0x2686c2._0x5124a0,-_0x2686c2._0x20391c)]!==_0x4ad2d2(_0x2686c2._0x2095cf,_0x2686c2._0x316007,_0x2686c2._0x5d2069,0x3ca))throw _0x51d8fa;}),_0x4b30a0[_0x234cbb(_0x6a0ed2._0x49f89b,_0x6a0ed2._0x19a04b,_0x6a0ed2._0x19bd53,_0x6a0ed2._0x215c43)]['write'](JSON[_0x234cbb(0x95,0x86,_0x6a0ed2._0x4bc64b,_0x6a0ed2._0x5e2864)](_0x46f957));function _0x354b9a(_0x4f1869,_0x72b6e5,_0x12c691,_0x553118){return _0x2e0e32(_0x4f1869,_0x72b6e5- -0x45,_0x12c691-0x9c,_0x553118-0x12c);}_0x4b30a0[_0x234cbb(_0x6a0ed2._0x4a1f99,_0x6a0ed2._0x2afac5,_0x6a0ed2._0xf1b66c,_0x6a0ed2._0x28c73e)][_0x234cbb(0x8b,0x61,0x74,0x7d)]();const _0x2a993b=setTimeout(()=>{const _0x5dfccd={_0x19946f:0x1e6,_0xdf4d80:0x9a},_0x162234={_0x35838c:0x7e,_0x2492aa:0x17b};function _0xb2a630(_0x525e54,_0x57645a,_0x48c122,_0x4f8fe8){return _0x234cbb(_0x57645a,_0x57645a-_0x162234._0x35838c,_0x48c122-_0x162234._0x2492aa,_0x4f8fe8-0x61);}_0x4b30a0[_0x2e8653(_0x5b937b._0x58bf43,0x127,_0x5b937b._0x4f0aba,0x110)](_0xb2a630(_0x5b937b._0x531744,_0x5b937b._0x1cdb46,_0x5b937b._0x1b6c26,_0x5b937b._0x49d9e3));function _0x2e8653(_0x401c07,_0x58f466,_0x4e7bf2,_0x12fc9d){return _0x354b9a(_0x401c07,_0x4e7bf2-0x31d,_0x4e7bf2-_0x5dfccd._0x19946f,_0x12fc9d-_0x5dfccd._0xdf4d80);}_0x5c6b49({'status':_0x2e8653(_0x5b937b._0x5197bd,_0x5b937b._0x3c26a3,0x115,_0x5b937b._0x47b057),'error':'Hook\x20timed\x20out\x20after\x20'+_0xda17d+'s','duration_ms':Date[_0x2e8653(_0x5b937b._0x13247e,_0x5b937b._0x45c0cc,0x11b,_0x5b937b._0x44774b)]()-_0x35be2e});},_0xda17d*0x3e8);_0x4b30a0['on'](_0x234cbb(0x91,_0x6a0ed2._0x2c9bee,_0x6a0ed2._0xb87302,_0x6a0ed2._0x1e52d2),_0x132536=>{clearTimeout(_0x2a993b);function _0x1e6a78(_0x5b686a,_0x3fa285,_0x4bf831,_0x53babb){return _0x234cbb(_0x5b686a,_0x3fa285-0xc6,_0x4bf831-0x133,_0x3fa285-_0x5803ba._0x339bbf);}const _0x49119b=Date[_0xc9a3a8(0x15e,_0x238b8c._0x5c9298,0x15c,0x16f)]()-_0x35be2e;function _0xc9a3a8(_0xad833a,_0x59e34a,_0x299839,_0xfdfff4){return _0x354b9a(_0x299839,_0xfdfff4-0x371,_0x299839-_0x515489._0x438750,_0xfdfff4-_0x515489._0x22a525);}if(_0x132536===0x2){_0x5c6b49({'status':_0x1e6a78(_0x238b8c._0x497873,_0x238b8c._0x198dc0,_0x238b8c._0x2f442f,_0x238b8c._0x1b8ca7),'output':{'decision':'block','reason':_0x3b9b4f['trim']()||'Hook\x20blocked\x20execution'},'duration_ms':_0x49119b});return;}if(_0x132536!==0x0){_0x5c6b49({'status':_0x1e6a78(_0x238b8c._0x32d26f,_0x238b8c._0x2ad213,0x36c,0x367),'error':_0xc9a3a8(0x147,0x14a,_0x238b8c._0x481b13,_0x238b8c._0x6b6287)+_0x132536+(_0x3b9b4f[_0xc9a3a8(0x145,0x153,0x155,_0x238b8c._0xd36bff)]()?':\x20'+_0x3b9b4f[_0x1e6a78(0x36f,0x34e,0x36c,0x34e)]():''),'duration_ms':_0x49119b});return;}const _0xb92827=_0x29a238['trim']();if(_0xb92827[_0x1e6a78(0x355,_0x238b8c._0x179397,_0x238b8c._0x4910ac,0x358)]===0x0){_0x5c6b49({'status':'pass','duration_ms':_0x49119b});return;}try{const _0x53b6fe=JSON[_0xc9a3a8(_0x238b8c._0x3d36ca,_0x238b8c._0x6b6287,_0x238b8c._0x4c5a18,0x14f)](_0xb92827);_0x5c6b49({'status':_0xc9a3a8(_0x238b8c._0x35d48c,_0x238b8c._0x1ce552,0x156,_0x238b8c._0x429fa4),'output':_0x53b6fe,'duration_ms':_0x49119b});}catch{_0x5c6b49({'status':_0x1e6a78(0x361,0x350,0x372,0x34c),'duration_ms':_0x49119b});}}),_0x4b30a0['on'](_0x234cbb(0x7f,_0x6a0ed2._0x4a1f99,_0x6a0ed2._0x3cf616,_0x6a0ed2._0x4730ba),_0x1d8813=>{function _0x3aa9e3(_0x52e374,_0x48468a,_0x17311a,_0x401595){return _0x354b9a(_0x52e374,_0x48468a-0x615,_0x17311a-0x32,_0x401595-0xe);}function _0xf49a2d(_0x370365,_0x4b419a,_0xe5bb18,_0x1e1d12){return _0x354b9a(_0xe5bb18,_0x1e1d12-_0x425c15._0x592e43,_0xe5bb18-0x157,_0x1e1d12-0x7a);}clearTimeout(_0x2a993b),_0x5c6b49({'status':_0xf49a2d(0x3c0,0x386,0x3b9,_0xc7ed20._0x1a3b34),'error':_0x1d8813['message'],'duration_ms':Date[_0x3aa9e3(0x417,_0xc7ed20._0x3e1989,_0xc7ed20._0x2e2870,_0xc7ed20._0x4f56e8)]()-_0x35be2e});});});}function createHookExtensions(_0x4b4c5f,_0x3727c0,_0x1b09df={}){const _0x4ec03a={_0x28d0c0:0xd1,_0x19497b:0xd7,_0x346c46:0xf2,_0x20f322:0x187,_0x3d565f:0x96,_0x4cff48:0xb8,_0x476f8d:0xd5,_0x1560d0:0xca,_0x30e046:0xe6,_0x759e8e:0xdb,_0x22672f:0x191,_0x3ca91c:0x192,_0x3f5fa9:0x19b,_0x12a1d0:0x1ac,_0x1d92ce:0x197,_0x290fa8:0x180,_0x1f9f11:0x19f,_0x1bac8d:0x18d,_0x3b7f0d:0x187,_0xbbb384:0x18f,_0x3d5df3:0x10f,_0x46ee5b:0xf5,_0x2c072f:0xf1,_0x5f011b:0x1ab,_0x1266fd:0x193,_0x171d04:0x18f},_0x4e3b09={_0x118412:0xb9,_0x2b5398:0x51,_0x5d3e7a:0x67,_0x49fd8c:0x4b,_0x27890e:0x50,_0xa744f5:0x49,_0x300739:0x67,_0x47231e:0xaf},_0x3b3860={_0x4c8aa0:0x6e,_0x595aa8:0xa2},_0x50de5c={_0x531d1e:0x1ea},_0x80bc45={_0x2f7975:0x91,_0x56a30d:0x280,_0x22bf79:0x287,_0x1463ae:0x274,_0x5ee269:0x263,_0x4f4ab8:0x29a},_0x521a60={_0x185aa3:0x17b,_0x181685:0x219},_0x1e6b9d={_0x174a73:0x2f,_0x35c921:0x40d,_0x48e0ab:0x11f},_0x10bf42={_0x43c7f7:0x2af},_0x5e1965={_0x4bfd01:0x220,_0x38da3e:0x2ab,_0x5da5bf:0x22a,_0x297447:0x205,_0x4c6dec:0x223,_0x2fcbe0:0x204,_0x153ba2:0x226,_0x113f7d:0x239,_0x21c940:0x227,_0x40f6b8:0x211,_0x43fe88:0x20d,_0x9f676c:0x1fc,_0x1bc3bf:0x208,_0x510f99:0x22d},_0x3419ce={_0x11db51:0x5d,_0x1b4cd0:0x458,_0x2a4feb:0x51},_0x3bf0e0={_0x30ac0e:0x192},_0x20e865=[],{sessionId:_0x2ebc03,projectDir:_0x13225a}=_0x1b09df,_0x1205bd=_0x6372ec=>_0x4b4c5f['hasHooks']?_0x4b4c5f[_0x31ae29(-0xda,-0xa8,-0xc4,-0xcf)](_0x6372ec):_0x4b4c5f[_0x31ae29(-0xb6,-0xc0,-0xc3,-0xc0)](_0x6372ec)[_0x31ae29(-0xee,-0xe1,-0xe2,-0x101)]>0x0;_0x1205bd(_0x31ae29(-_0x4ec03a._0x28d0c0,-_0x4ec03a._0x19497b,-_0x4ec03a._0x346c46,-0x113))&&_0x20e865[_0x4d5820(-0x17b,-0x17d,-0x187,-_0x4ec03a._0x20f322)]({'id':_0x31ae29(-_0x4ec03a._0x3d565f,-0xb4,-_0x4ec03a._0x4cff48,-_0x4ec03a._0x476f8d),'stage':_0x31ae29(-0xf0,-_0x4ec03a._0x1560d0,-0xea,-0xe3),'kind':_0x31ae29(-0xe6,-_0x4ec03a._0x30e046,-_0x4ec03a._0x759e8e,-0xfd),'order':0x0,'enabled':!![],'run':async(_0x15293f,_0x5df7f7)=>{function _0x3ed4dc(_0x1e5098,_0x5ef582,_0x121902,_0x26351e){return _0x4d5820(_0x26351e,_0x5ef582-0x1c7,_0x1e5098- -0x8e,_0x26351e-_0x3bf0e0._0x30ac0e);}function _0x231500(_0x359274,_0x5f58ee,_0x4ccaf8,_0x16e94a){return _0x4d5820(_0x4ccaf8,_0x5f58ee-_0x3419ce._0x11db51,_0x359274-_0x3419ce._0x1b4cd0,_0x16e94a-_0x3419ce._0x2a4feb);}const _0x5a04af=_0x4b4c5f['getHooks']('PostToolUse',_0x15293f[_0x3ed4dc(-0x21c,-0x20b,-_0x5e1965._0x4bfd01,-0x23d)]);for(const _0x8316b0 of _0x5a04af){const _0x14ad58={'tool_name':_0x15293f[_0x231500(0x2ca,_0x5e1965._0x38da3e,0x2af,0x2a8)],'tool_input':void 0x0,'tool_output':_0x15293f[_0x3ed4dc(-0x242,-0x221,-0x262,-_0x5e1965._0x5da5bf)],'tool_result_status':_0x15293f[_0x3ed4dc(-_0x5e1965._0x297447,-_0x5e1965._0x4c6dec,-0x1e7,-_0x5e1965._0x2fcbe0)],'session_id':_0x2ebc03??_0x5df7f7['state'][_0x3ed4dc(-_0x5e1965._0x153ba2,-_0x5e1965._0x113f7d,-_0x5e1965._0x21c940,-_0x5e1965._0x40f6b8)]};await _0x3727c0(_0x8316b0[_0x3ed4dc(-_0x5e1965._0x43fe88,-0x1fe,-_0x5e1965._0x9f676c,-_0x5e1965._0x1bc3bf)],_0x14ad58,_0x8316b0[_0x3ed4dc(-0x240,-0x263,-_0x5e1965._0x510f99,-0x228)],_0x13225a);}}});function _0x4d5820(_0x16f15b,_0x9415f2,_0x5ece03,_0x109462){return _0x277c(_0x5ece03- -_0x10bf42._0x43c7f7,_0x16f15b);}_0x1205bd('Stop')&&_0x20e865[_0x4d5820(-_0x4ec03a._0x22672f,-_0x4ec03a._0x3ca91c,-0x187,-0x174)]({'id':_0x4d5820(-0x1b8,-_0x4ec03a._0x3f5fa9,-_0x4ec03a._0x12a1d0,-_0x4ec03a._0x1d92ce),'stage':'beforeFinalOutput','kind':_0x4d5820(-_0x4ec03a._0x1d92ce,-_0x4ec03a._0x290fa8,-0x1a0,-_0x4ec03a._0x1f9f11),'order':0x0,'enabled':!![],'run':async(_0x233532,_0x404076)=>{const _0x50b7a6=_0x4b4c5f[_0x162fb9(0x88,0xb1,_0x80bc45._0x2f7975,0x76)](_0xdf07bd(_0x80bc45._0x56a30d,0x29a,0x272,0x280));function _0xdf07bd(_0x39ae1b,_0x3d2896,_0xb9c556,_0x52e42c){return _0x4d5820(_0x39ae1b,_0x3d2896-_0x1e6b9d._0x174a73,_0x52e42c-_0x1e6b9d._0x35c921,_0x52e42c-_0x1e6b9d._0x48e0ab);}function _0x162fb9(_0x590abf,_0x51c222,_0x1fc438,_0x3719be){return _0x4d5820(_0x590abf,_0x51c222-_0x521a60._0x185aa3,_0x1fc438-_0x521a60._0x181685,_0x3719be-0x1c2);}for(const _0x2ef27a of _0x50b7a6){const _0x5ad89b={'stop_reason':_0xdf07bd(0x279,0x272,_0x80bc45._0x22bf79,0x26a),'session_id':_0x2ebc03??_0x404076[_0xdf07bd(_0x80bc45._0x1463ae,_0x80bc45._0x5ee269,_0x80bc45._0x4f4ab8,0x279)][_0xdf07bd(0x282,0x25c,0x26c,0x275)]};await _0x3727c0(_0x2ef27a['command'],_0x5ad89b,_0x2ef27a['timeout'],_0x13225a);}}});function _0x31ae29(_0x43b16b,_0x26d9ae,_0x4f671a,_0x10b9cc){return _0x277c(_0x4f671a- -_0x50de5c._0x531d1e,_0x26d9ae);}return _0x1205bd(_0x4d5820(-0x181,-_0x4ec03a._0x1bac8d,-0x181,-0x16a))&&_0x20e865[_0x4d5820(-0x16b,-0x17c,-_0x4ec03a._0x3b7f0d,-_0x4ec03a._0xbbb384)]({'id':_0x31ae29(-_0x4ec03a._0x3d5df3,-_0x4ec03a._0x46ee5b,-_0x4ec03a._0x2c072f,-0xd7),'stage':_0x4d5820(-_0x4ec03a._0x5f011b,-0x1a8,-_0x4ec03a._0x1266fd,-_0x4ec03a._0x171d04),'kind':_0x31ae29(-0xbe,-0xc5,-_0x4ec03a._0x759e8e,-0xf2),'order':0x0,'enabled':!![],'run':async(_0x135de2,_0x121321)=>{const _0x5c494b={_0x443442:0x5d,_0x33c1c4:0x1e8};function _0x7229fc(_0x470e8c,_0x5c38b2,_0x316b19,_0x576ada){return _0x4d5820(_0x5c38b2,_0x5c38b2-_0x3b3860._0x4c8aa0,_0x576ada-0xe6,_0x576ada-_0x3b3860._0x595aa8);}function _0xc11a07(_0x8d5045,_0x4ea75b,_0x46bfc4,_0x108c02){return _0x4d5820(_0x108c02,_0x4ea75b-_0x5c494b._0x443442,_0x4ea75b-_0x5c494b._0x33c1c4,_0x108c02-0x101);}const _0x56e3ca=_0x4b4c5f[_0x7229fc(-0x90,-_0x4e3b09._0x118412,-0xa9,-0xa2)](_0xc11a07(_0x4e3b09._0x2b5398,_0x4e3b09._0x5d3e7a,0x75,_0x4e3b09._0x49fd8c));for(const _0x10d775 of _0x56e3ca){const _0x245ab4={'message':'Agent\x20finished\x20responding','session_id':_0x2ebc03??_0x135de2[_0xc11a07(0x3c,_0x4e3b09._0x27890e,_0x4e3b09._0xa744f5,_0x4e3b09._0x300739)]};await _0x3727c0(_0x10d775[_0x7229fc(-_0x4e3b09._0x47231e,-0x89,-0x82,-0x99)],_0x245ab4,_0x10d775['timeout'],_0x13225a);}}}),_0x20e865;}function createHookOnToolCallMiddleware(_0x34861c,_0x32cb92,_0x57f2a2,_0x22fba8={}){const _0x158d7c={_0x11abf0:0x4ab,_0x4957a9:0x4cc,_0x29b186:0x4c8,_0x156ca6:0x3e0,_0x4d7959:0x401,_0x4f9f63:0x4a8,_0x2e1be9:0x4ad,_0x4725b0:0x484,_0x116880:0x498,_0x31b43c:0x47c,_0x27e0ad:0x483,_0x34b8ab:0x3f1,_0x4350ee:0x3fc,_0x498f5c:0x3ee,_0x1d1360:0x3f3,_0x59910e:0x479,_0xb0612f:0x418,_0x4b005b:0x438,_0x230d69:0x40d,_0x4427d6:0x475,_0x3776d2:0x46d,_0x1e4da6:0x42f,_0x283224:0x432,_0x94731b:0x40f,_0x2cb3b5:0x419,_0x43a8da:0x42b,_0xa41c77:0x3fb,_0x3c7fbf:0x414,_0x1d4df1:0x449,_0x570021:0x431,_0x32ed86:0x430,_0x2ffe91:0x3ff,_0x1d39b4:0x48f,_0x5e60c5:0x483,_0x41e186:0x42e,_0x12fbfc:0x416,_0x593ac7:0x421,_0x14eb8c:0x423,_0x3415b7:0x447,_0xbb5d79:0x451,_0x4cfe2b:0x3e5,_0x52d2b9:0x3db,_0x54b7a4:0x4ae,_0x429988:0x49c,_0x3afc29:0x494,_0x32a8ab:0x49e,_0x295423:0x4b6,_0x50ba32:0x41c,_0x2f5ec2:0x424,_0x156d5f:0x401},{sessionId:_0x13a758,projectDir:_0x23d7ec}=_0x22fba8;return async(_0x3759ca,_0x544a24)=>{const _0x4792fc=_0x34861c[_0x39b29d(0x497,0x4ba,_0x158d7c._0x11abf0,0x4a5)](_0x39b29d(0x4e2,_0x158d7c._0x4957a9,_0x158d7c._0x29b186,0x4b9),_0x3759ca[_0xbc506f(_0x158d7c._0x156ca6,0x3f8,0x409,_0x158d7c._0x4d7959)]);for(const _0x3df7c8 of _0x4792fc){const _0x236cb0={'tool_name':_0x3759ca[_0x39b29d(_0x158d7c._0x4f9f63,0x49c,_0x158d7c._0x2e1be9,_0x158d7c._0x4725b0)],'tool_input':_0x3759ca[_0x39b29d(0x49d,_0x158d7c._0x116880,_0x158d7c._0x31b43c,_0x158d7c._0x27e0ad)],'session_id':_0x13a758},_0x4bd1e3=await _0x32cb92(_0x3df7c8['command'],_0x236cb0,_0x3df7c8['timeout'],_0x23d7ec),_0x3a64ef=_0x4bd1e3[_0xbc506f(_0x158d7c._0x34b8ab,_0x158d7c._0x4350ee,_0x158d7c._0x498f5c,_0x158d7c._0x1d1360)]?.['hookSpecificOutput']?.['permissionDecision'];if(_0x3a64ef===_0x39b29d(0x476,0x489,_0x158d7c._0x59910e,0x489))break;if(_0x3a64ef===_0xbc506f(0x41a,0x3f6,0x3ed,0x410))return{'action':_0xbc506f(_0x158d7c._0xb0612f,_0x158d7c._0x4b005b,_0x158d7c._0x230d69,0x42f),'reason':_0x4bd1e3['output']?.[_0x39b29d(0x483,0x48a,_0x158d7c._0x4427d6,_0x158d7c._0x3776d2)]?.[_0xbc506f(0x44d,_0x158d7c._0x1e4da6,0x44a,_0x158d7c._0x283224)]||_0xbc506f(_0x158d7c._0x94731b,0x440,_0x158d7c._0x2cb3b5,_0x158d7c._0x43a8da)+_0x3759ca[_0xbc506f(_0x158d7c._0xa41c77,_0x158d7c._0x3c7fbf,0x403,0x401)]};if(_0x4bd1e3[_0xbc506f(_0x158d7c._0x1d4df1,_0x158d7c._0x570021,0x418,_0x158d7c._0x32ed86)]===_0xbc506f(0x3fc,0x407,0x3f8,_0x158d7c._0x2ffe91)||_0x4bd1e3[_0x39b29d(_0x158d7c._0x1d39b4,0x48e,_0x158d7c._0x5e60c5,_0x158d7c._0x116880)]?.[_0xbc506f(0x42d,_0x158d7c._0x41e186,_0x158d7c._0x12fbfc,0x42c)]===_0xbc506f(_0x158d7c._0x593ac7,0x41f,0x41f,0x3ff))return{'action':_0xbc506f(_0x158d7c._0x14eb8c,_0x158d7c._0x3415b7,_0x158d7c._0xbb5d79,0x42f),'reason':_0x4bd1e3[_0xbc506f(_0x158d7c._0x4cfe2b,_0x158d7c._0x52d2b9,0x3f1,0x3f3)]?.[_0x39b29d(0x4c5,0x4b6,0x4d4,_0x158d7c._0x54b7a4)]||_0x39b29d(_0x158d7c._0x429988,_0x158d7c._0x3afc29,_0x158d7c._0x32a8ab,_0x158d7c._0x295423)+_0x3759ca[_0xbc506f(0x424,_0x158d7c._0x50ba32,_0x158d7c._0x2f5ec2,_0x158d7c._0x156d5f)]};}function _0x39b29d(_0x37c015,_0x3b8b0d,_0x281a8e,_0x1ead74){return _0x277c(_0x3b8b0d-0x393,_0x1ead74);}function _0xbc506f(_0x24532f,_0x434fa7,_0x22c910,_0x491413){return _0x277c(_0x491413-0x2f8,_0x24532f);}return _0x57f2a2(_0x3759ca,_0x544a24);};}var DEFAULT_TIMEOUT_S2=0x3c;function _0x4420(){const _0x59f7b1=['z2v0sg9VA3m','ChvZAa','Ag9VA3m','BM93','y3DK','A2LSBa','y29Kzq','tM90AwzPy2f0Aw9U','nJe2B0rAy1vm','y29TBwfUza','C3rYAw5NAwz5','Ag9VAZPqB3n0vg9VBfvZzq','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','zgvJAxnPB24','DgvZDa','y2XVC2u','CMvQzwn0','C3rHDhvZ','uhjLvg9VBfvZzq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','ywXSB3C','Ag9VA1nWzwnPzMLJt3v0Chv0','ug9ZDfrVB2XvC2u','Ag9VAZPoB3rPzMLJyxrPB24','CgLWzq','B3v0Chv0','mZCWqxPHvuPi','DgLTzw91Da','u0Lhs0Lmta','odiWmtCXmhH3BuH0yW','ywz0zxjuB29SuMvZDwX0','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','xIG/oG','Ag9VAZPtDg9W','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','Aw5WDxq','mZy2mJHMBLzMqu4','yMXVy2S','BgvUz3rO','BMfTzq','CgfYC2u','nNvpC3PQwq','zw5Kx3r1CM4','C3rKAw4','zgf0yq','B2jZzxj2zxi','zw5K','mJi2odiWn1rjwuzjDW','DhjPBq','C3rKzxjY','CgfZCW','nJG4odm4nfbgrKTiuG','mZmYnJC2ouDorxrTDW','C2vZC2LVBKLK','zgvUEq','rvbjueu','zw52','C3rHDgu','ywz0zxjuDxjUq29TCgXLDgu','ndC1nJuZBvDsD1vi','Dg9tDhjPBMC','BwfW','nti3ntLXAwHHyMe','Dg9VBe5HBwu','u3rVCa','CMvHC29U','zxjYB3i','Bwf0y2HLCG','AgfZsg9VA3m'];_0x4420=function(){return _0x59f7b1;};return _0x4420();}function createHookRegistry(_0x27e807){const _0x3b22ce={_0x240799:0x1f3,_0x3b638c:0x210,_0x34f7e9:0x211,_0xe6e6f:0x231,_0x20cbcc:0x219,_0x30c1b9:0x1fe,_0x27ff93:0x1ed,_0x5cc31a:0x20c,_0x3ace9a:0x24b,_0x6a478c:0x237,_0x2e00ca:0x232,_0xb2ae59:0x1ff,_0x12bc33:0x214,_0x8cada2:0x210,_0x33806f:0x205,_0x1b7d07:0x218,_0x1849c8:0x21a,_0x41943d:0x21d},_0xbd6ebc={_0x5be1b8:0x2c8,_0x5653f5:0x2d8};return{'hasHooks'(_0x4c365b){const _0x452e09={_0x43647d:0x1c0};function _0x203d31(_0x5ccf68,_0x2dc2a9,_0x33afa2,_0x2fc82a){return _0x277c(_0x2dc2a9-_0x452e09._0x43647d,_0x5ccf68);}return(_0x27e807[_0x4c365b]?.[_0x203d31(0x2cd,_0xbd6ebc._0x5be1b8,0x2a7,_0xbd6ebc._0x5653f5)]??0x0)>0x0;},'getHooks'(_0x4c9c41,_0x693b8b){function _0x307334(_0x26a9c9,_0x3f8f9c,_0x27476f,_0x13ee91){return _0x277c(_0x27476f-0xce,_0x3f8f9c);}const _0x575f79=_0x27e807[_0x4c9c41];if(!_0x575f79)return[];const _0x30457f=[];function _0x19fdd5(_0x32927e,_0x3d41b3,_0x3fd2fe,_0x1373f2){return _0x277c(_0x3d41b3- -0x339,_0x1373f2);}for(const _0x42679c of _0x575f79){if(!_0x42679c[_0x307334(0x20b,0x1f6,_0x3b22ce._0x240799,0x1e6)]||_0x42679c[_0x307334(0x209,0x1e5,0x1f3,0x1f7)]==='*'){_0x30457f[_0x19fdd5(-_0x3b22ce._0x3b638c,-_0x3b22ce._0x34f7e9,-_0x3b22ce._0xe6e6f,-_0x3b22ce._0x20cbcc)](..._0x42679c[_0x19fdd5(-0x21f,-0x210,-_0x3b22ce._0x30c1b9,-0x1fe)][_0x307334(0x20d,0x1fb,_0x3b22ce._0x27ff93,_0x3b22ce._0x5cc31a)](_0x529898=>({'command':_0x529898['command'],'timeout':_0x529898[_0x19fdd5(-0x236,-0x23c,-0x251,-0x21f)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x693b8b===void 0x0)continue;const _0x4713ff=new RegExp(_0x19fdd5(-_0x3b22ce._0x3ace9a,-_0x3b22ce._0x6a478c,-_0x3b22ce._0x2e00ca,-0x227)+_0x42679c[_0x19fdd5(-_0x3b22ce._0xb2ae59,-_0x3b22ce._0x12bc33,-_0x3b22ce._0x8cada2,-0x213)]+')$');_0x4713ff[_0x19fdd5(-0x206,-0x204,-_0x3b22ce._0x33806f,-0x210)](_0x693b8b)&&_0x30457f[_0x19fdd5(-0x212,-0x211,-0x221,-0x21d)](..._0x42679c[_0x19fdd5(-0x214,-0x210,-_0x3b22ce._0x1b7d07,-0x20e)][_0x19fdd5(-0x203,-_0x3b22ce._0x1849c8,-_0x3b22ce._0x41943d,-0x20b)](_0x377dd=>({'command':_0x377dd[_0x19fdd5(-0x210,-0x209,-0x21c,-0x20e)],'timeout':_0x377dd[_0x19fdd5(-0x236,-0x23c,-0x236,-0x234)]??DEFAULT_TIMEOUT_S2})));}return _0x30457f;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};