@nuvin/agent-core 0.1.0-rc.1 → 0.1.0-rc.2

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(_0x5500d6,_0xc2910a){const _0x20407e={_0x866ef5:0x250,_0x476bef:0x27d,_0x4a48f4:0x28a,_0x17bfff:0x262,_0x5787a1:0x253,_0x2d0b9d:0x24b,_0x26f271:0x1d,_0x525daf:0x3e,_0x467d8b:0x270,_0x1806ec:0x28d,_0x11cd4c:0x26f,_0x23d47e:0x25b,_0x492ee4:0x1d,_0x2cba7b:0x10,_0x4f8c9d:0x1,_0x2f135d:0x26b,_0x3f4a5e:0x239,_0x582480:0x12,_0xf9afac:0x2};function _0x157301(_0x110099,_0x5ac0cb,_0x20ebe1,_0x2322f2){return _0x26e7(_0x110099-0x1cc,_0x2322f2);}const _0x3b79d7=_0x5500d6();function _0x5e6f8a(_0x315294,_0x146abc,_0x31ca75,_0x1b1374){return _0x26e7(_0x315294- -0x78,_0x31ca75);}while(!![]){try{const _0x5632ba=parseInt(_0x157301(_0x20407e._0x866ef5,0x268,0x252,0x234))/0x1+parseInt(_0x157301(_0x20407e._0x476bef,_0x20407e._0x4a48f4,_0x20407e._0x17bfff,0x296))/0x2+parseInt(_0x157301(_0x20407e._0x5787a1,_0x20407e._0x2d0b9d,0x264,0x259))/0x3*(-parseInt(_0x5e6f8a(0x2c,_0x20407e._0x26f271,_0x20407e._0x525daf,0x46))/0x4)+parseInt(_0x157301(0x26e,0x25b,_0x20407e._0x467d8b,_0x20407e._0x1806ec))/0x5*(parseInt(_0x157301(_0x20407e._0x11cd4c,0x27f,0x258,_0x20407e._0x23d47e))/0x6)+-parseInt(_0x5e6f8a(_0x20407e._0x492ee4,_0x20407e._0x2cba7b,0x15,-_0x20407e._0x4f8c9d))/0x7+parseInt(_0x5e6f8a(0x25,0x40,0x26,0x14))/0x8+-parseInt(_0x157301(0x252,_0x20407e._0x2f135d,0x24e,_0x20407e._0x3f4a5e))/0x9*(-parseInt(_0x5e6f8a(_0x20407e._0x582480,0x18,0xb,-_0x20407e._0xf9afac))/0xa);if(_0x5632ba===_0xc2910a)break;else _0x3b79d7['push'](_0x3b79d7['shift']());}catch(_0x2a7366){_0x3b79d7['push'](_0x3b79d7['shift']());}}}(_0x1eab,0xa2b0f));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-QDOE7NWO.js';function systemToInstructions(_0x1f9857){const _0x3a5bfc={_0x176864:0x15,_0x579239:0x2,_0x5a5b92:0x16,_0x269d0f:0x30,_0x4bc9fc:0x140,_0x464101:0x125,_0x143a90:0x12c,_0x2c230d:0x143},_0x47f1ff={_0x58dda8:0x86};function _0x5588cd(_0x5ad251,_0x439c0b,_0x278e5e,_0x51e04a){return _0x26e7(_0x439c0b-_0x47f1ff._0x58dda8,_0x5ad251);}function _0x2b5415(_0x9efe5b,_0x51adea,_0x101c18,_0x70f343){return _0x26e7(_0x9efe5b- -0xa7,_0x70f343);}return normalizeContent(_0x1f9857)[_0x2b5415(-_0x3a5bfc._0x176864,-_0x3a5bfc._0x579239,-_0x3a5bfc._0x5a5b92,-_0x3a5bfc._0x269d0f)](_0x5b8d97=>_0x5b8d97[_0x5588cd(0x10b,0x11f,0x10e,0x12c)]===_0x5588cd(0xed,0xff,0x10a,0x110))['map'](_0x3b42fb=>_0x3b42fb[_0x5588cd(0x10b,0xff,0x109,0x106)])[_0x5588cd(_0x3a5bfc._0x4bc9fc,_0x3a5bfc._0x464101,_0x3a5bfc._0x143a90,_0x3a5bfc._0x2c230d)]('\x0a\x0a');}function pushUserContentMessage(_0x24c11a,_0x562f9e,_0x430a29){const _0x194bca={_0x3b9990:0x3ce};function _0x4ff073(_0x44a29a,_0x23995a,_0x1cb4b8,_0x5a9178){return _0x26e7(_0x5a9178-0x31e,_0x1cb4b8);}if(_0x430a29['length']===0x0)return;_0x24c11a[_0x4ff073(0x3b2,_0x194bca._0x3b9990,0x3be,0x3b8)]({'type':'message','role':_0x562f9e,'content':_0x430a29});}function hasSerializableToolUse(_0x1bc48e){const _0x52143f={_0x44a764:0x28d,_0x40d933:0x298,_0x1496a0:0x293,_0x10b46b:0x334,_0x5e6849:0x316,_0x181893:0x2f6,_0x1b505b:0x310,_0x26f7a9:0x30a},_0x18e54e={_0x20574a:0x201};function _0x172c21(_0x23b529,_0x2be64b,_0x27b238,_0x5b58a6){return _0x26e7(_0x2be64b-0x26a,_0x23b529);}function _0x1d1a44(_0x596a67,_0x4c4f06,_0x33efb9,_0x3c040b){return _0x26e7(_0x596a67-_0x18e54e._0x20574a,_0x3c040b);}return _0x1bc48e['id'][_0x1d1a44(_0x52143f._0x44a764,_0x52143f._0x40d933,_0x52143f._0x1496a0,0x298)]()['length']>0x0&&_0x1bc48e[_0x172c21(_0x52143f._0x10b46b,_0x52143f._0x5e6849,0x314,0x30a)][_0x172c21(0x2d7,_0x52143f._0x181893,_0x52143f._0x1b505b,_0x52143f._0x26f7a9)]()['length']>0x0;}function _0x26e7(_0x581069,_0x3433ff){_0x581069=_0x581069-0x78;const _0x1eabdf=_0x1eab();let _0x26e722=_0x1eabdf[_0x581069];if(_0x26e7['RxTiqp']===undefined){var _0x4044b1=function(_0x3c0b76){const _0x56cafa='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1f9857='',_0x5b8d97='';for(let _0x3b42fb=0x0,_0x24c11a,_0x562f9e,_0x430a29=0x0;_0x562f9e=_0x3c0b76['charAt'](_0x430a29++);~_0x562f9e&&(_0x24c11a=_0x3b42fb%0x4?_0x24c11a*0x40+_0x562f9e:_0x562f9e,_0x3b42fb++%0x4)?_0x1f9857+=String['fromCharCode'](0xff&_0x24c11a>>(-0x2*_0x3b42fb&0x6)):0x0){_0x562f9e=_0x56cafa['indexOf'](_0x562f9e);}for(let _0x1bc48e=0x0,_0x2e88e8=_0x1f9857['length'];_0x1bc48e<_0x2e88e8;_0x1bc48e++){_0x5b8d97+='%'+('00'+_0x1f9857['charCodeAt'](_0x1bc48e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5b8d97);};_0x26e7['JDQPTS']=_0x4044b1,_0x26e7['RIGDUU']={},_0x26e7['RxTiqp']=!![];}const _0x295c9b=_0x1eabdf[0x0],_0x5b673c=_0x581069+_0x295c9b,_0x43fbe6=_0x26e7['RIGDUU'][_0x5b673c];return!_0x43fbe6?(_0x26e722=_0x26e7['JDQPTS'](_0x26e722),_0x26e7['RIGDUU'][_0x5b673c]=_0x26e722):_0x26e722=_0x43fbe6,_0x26e722;}function hasSerializableToolResult(_0x2e88e8){const _0x4f543c={_0x26979f:0x3b7,_0x592687:0x3c3,_0x9cd587:0x3a2,_0x1775a0:0x3c1};function _0x526931(_0x522909,_0x5db301,_0x4f3472,_0x3ba0ad){return _0x26e7(_0x5db301-0x31f,_0x4f3472);}function _0x5d7773(_0x47b536,_0x1ec0e2,_0x24e9a4,_0x2f16a2){return _0x26e7(_0x24e9a4- -0xb2,_0x47b536);}return _0x2e88e8[_0x526931(0x3be,_0x4f543c._0x26979f,0x3cb,_0x4f543c._0x592687)]['trim']()[_0x526931(0x3aa,_0x4f543c._0x9cd587,0x394,_0x4f543c._0x1775a0)]>0x0;}function isResponseInputObject(_0x25dfad){const _0x5dcec4={_0xf8e3b:0x2fb,_0x45c1e9:0x321,_0x3dc355:0x2ff,_0xf4d6d0:0x31b,_0x5d5c7f:0x321,_0xc0b119:0x324,_0xd50d1b:0x309,_0x4645d8:0x2cd,_0x5ecfe5:0x2f5,_0x5b7686:0x2d1,_0x4fe629:0x315},_0x28fc6f={_0xdb172f:0x283};if(typeof _0x25dfad!==_0x5051ab(_0x5dcec4._0xf8e3b,0x312,_0x5dcec4._0x45c1e9,_0x5dcec4._0x3dc355)||_0x25dfad===null||Array[_0x5051ab(_0x5dcec4._0xf4d6d0,_0x5dcec4._0x5d5c7f,_0x5dcec4._0xc0b119,_0x5dcec4._0xd50d1b)](_0x25dfad))return![];const _0x14157f=_0x25dfad;function _0x2fcc53(_0x5e8f51,_0x197df8,_0x4fdcd1,_0x5d76ad){return _0x26e7(_0x4fdcd1- -0x378,_0x5e8f51);}function _0x5051ab(_0x4e1d4c,_0x14ad40,_0x36ba33,_0x16364c){return _0x26e7(_0x14ad40-_0x28fc6f._0xdb172f,_0x16364c);}return typeof _0x14157f[_0x2fcc53(-_0x5dcec4._0x4645d8,-_0x5dcec4._0x5ecfe5,-0x2df,-_0x5dcec4._0x5b7686)]===_0x5051ab(0x30a,0x314,0x331,_0x5dcec4._0x4fe629);}function isImageToolResultBlock(_0x4b885c){const _0x20b450={_0xfd943d:0x6e,_0x2fee82:0x76,_0x335b16:0x8b,_0x5da65e:0x89,_0x5ab84f:0x67,_0x5f9c18:0x5b,_0x2bf36a:0x58,_0x46d2a6:0x5a,_0x1c2ed6:0x83,_0x3e93fb:0x6d,_0x298b07:0x84,_0x49a517:0x6f,_0x222860:0x5b,_0x7df089:0x69,_0x1077f4:0x86,_0x5bb6a6:0x8c,_0x59e12e:0x7c,_0x4d8680:0x310,_0x3b29be:0x2ff,_0x40b946:0x32e,_0x548371:0x312,_0x6cfaf4:0x331},_0x5c8e34={_0x3b001a:0x27a};function _0x532ab6(_0x2bb9b0,_0x1f0743,_0x28b7bf,_0x3ec43d){return _0x26e7(_0x28b7bf-_0x5c8e34._0x3b001a,_0x3ec43d);}if(typeof _0x4b885c!==_0x1aaa20(-_0x20b450._0xfd943d,-_0x20b450._0x2fee82,-_0x20b450._0x335b16,-_0x20b450._0x5da65e)||_0x4b885c===null||Array[_0x1aaa20(-0x4c,-0x67,-0x6c,-0x51)](_0x4b885c))return![];const _0x2bc9ab=_0x4b885c;function _0x1aaa20(_0x3838,_0x1ef8db,_0x37c7c0,_0x8e7909){return _0x26e7(_0x1ef8db- -0x105,_0x3838);}return _0x2bc9ab[_0x1aaa20(-_0x20b450._0x5ab84f,-0x6c,-0x4f,-_0x20b450._0x5f9c18)]===_0x1aaa20(-0x62,-_0x20b450._0x2bf36a,-0x68,-_0x20b450._0x46d2a6)&&_0x2bc9ab[_0x1aaa20(-_0x20b450._0x1c2ed6,-0x6f,-_0x20b450._0x3e93fb,-0x8b)]?.['type']==='base64'&&typeof _0x2bc9ab[_0x1aaa20(-_0x20b450._0x298b07,-_0x20b450._0x49a517,-_0x20b450._0x222860,-_0x20b450._0x7df089)][_0x1aaa20(-_0x20b450._0x1077f4,-0x75,-_0x20b450._0x5bb6a6,-0x88)]===_0x1aaa20(-_0x20b450._0x59e12e,-0x74,-0x6e,-_0x20b450._0x49a517)&&typeof _0x2bc9ab[_0x532ab6(0x308,0x325,_0x20b450._0x4d8680,_0x20b450._0x3b29be)][_0x532ab6(_0x20b450._0x40b946,_0x20b450._0x548371,0x31b,_0x20b450._0x6cfaf4)]==='string';}function getToolResultText(_0x1f4b9e){const _0x4e98c6={_0x37290f:0x272,_0xcf1e92:0x256,_0x3233c2:0x26d,_0x41d7a7:0x25f,_0x2ca6b9:0x271,_0x55a59e:0x249,_0x2d1f9f:0x249,_0x458f76:0x266,_0x3ceb16:0x281},_0x363478={_0x40951b:0xd1,_0xdf5399:0xd2,_0x585869:0xc1},_0x3ee8b6={_0x4ed035:0x13a},_0x59e0e3={_0x2d00fb:0x13c};if(typeof _0x1f4b9e==='string')return _0x1f4b9e;function _0x1b7beb(_0x10a2c1,_0x1fc856,_0x1eb56e,_0x3bdaba){return _0x26e7(_0x1eb56e-0x1d3,_0x10a2c1);}function _0x1be104(_0x5411da,_0x409dd3,_0x490895,_0x565815){return _0x26e7(_0x490895-_0x59e0e3._0x2d00fb,_0x565815);}const _0x2c1f3d=_0x1f4b9e['filter'](_0x387295=>{function _0x3396a6(_0x412f7b,_0x289dbb,_0x14cd67,_0x55368d){return _0x26e7(_0x55368d- -_0x3ee8b6._0x4ed035,_0x289dbb);}return typeof _0x387295==='object'&&_0x387295!==null&&_0x387295['type']===_0x3396a6(-_0x363478._0x40951b,-_0x363478._0xdf5399,-0xcd,-_0x363478._0x585869);})['map'](_0x112f9a=>_0x112f9a[_0x1b7beb(0x259,0x241,0x24c,0x234)])[_0x1b7beb(0x253,0x291,_0x4e98c6._0x37290f,_0x4e98c6._0xcf1e92)]('\x0a\x0a')[_0x1b7beb(0x274,_0x4e98c6._0x3233c2,_0x4e98c6._0x41d7a7,0x277)]();return _0x2c1f3d[_0x1b7beb(_0x4e98c6._0x2ca6b9,_0x4e98c6._0x55a59e,0x256,_0x4e98c6._0x2d1f9f)]>0x0?_0x2c1f3d:_0x1b7beb(_0x4e98c6._0x458f76,0x267,_0x4e98c6._0x3ceb16,0x273);}function getToolResultImages(_0x2334a9){const _0x15bf71={_0x425398:0x1d4,_0x154bb7:0x318},_0x1083bb={_0x2be083:0x391};function _0x44ba30(_0x54a4b8,_0x451f17,_0x24a975,_0x20cb92){return _0x26e7(_0x54a4b8-0x13b,_0x20cb92);}function _0x33eddd(_0x6b3951,_0x3c6f81,_0x1af9de,_0x5bf0f1){return _0x26e7(_0x5bf0f1- -_0x1083bb._0x2be083,_0x3c6f81);}return Array[_0x44ba30(0x1d9,0x1bc,_0x15bf71._0x425398,0x1f8)](_0x2334a9)?_0x2334a9[_0x33eddd(-0x308,-0x2ea,-_0x15bf71._0x154bb7,-0x2ff)](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x503c5a){const _0x2303ce={_0x4a23b6:0xe7,_0x58c476:0xcd,_0x8a370a:0x104,_0x2c772f:0xd4,_0x769577:0xff},_0x414c91={_0x157142:0x38},_0x52c71a={_0x320c64:0x1e0};function _0x3107fa(_0x3862b4,_0x1e8bfa,_0x3fe621,_0x4b505a){return _0x26e7(_0x1e8bfa- -_0x52c71a._0x320c64,_0x3fe621);}function _0x30f99a(_0x46c048,_0x2bc6b2,_0x57d725,_0x1b06ba){return _0x26e7(_0x2bc6b2-_0x414c91._0x157142,_0x46c048);}return _0x503c5a[_0x30f99a(0xe1,0xcc,0xd6,_0x2303ce._0x4a23b6)]?.[_0x30f99a(0xd8,0xe8,_0x2303ce._0x58c476,_0x2303ce._0x8a370a)]??_0x30f99a(0xf1,0xe2,_0x2303ce._0x2c772f,_0x2303ce._0x769577);}function createOpenAiResponsesReasoning(_0x5b8a30){const _0x169609={_0x39d06d:0x10b,_0x29ca17:0x11b,_0x235e24:0x122,_0x2d2e76:0x98,_0x43e0d9:0xe7,_0x1e20a2:0xbd,_0x4fac5f:0xb2,_0x215a07:0xab,_0x2c829f:0xb7,_0x2dd0be:0x101,_0x375140:0x101,_0x47b9bf:0x108,_0x2725d0:0x10f,_0x30b80b:0x129,_0x51843f:0x13d,_0x21b5bf:0x9d,_0x1ac933:0x72,_0x5c47d4:0x6d,_0x1c7f19:0x75,_0x302bc9:0x8e,_0x2fdf4e:0x8e,_0x2e55ea:0x81};function _0x12a227(_0x37f4eb,_0x31546a,_0x5ac469,_0x1f5f23){return _0x26e7(_0x5ac469-0xb,_0x31546a);}const _0x50364d=resolveOpenAiReasoningConfig(_0x5b8a30[_0x5a9153(-_0x169609._0x39d06d,-0xf7,-0x10d,-_0x169609._0x29ca17)]);if(!_0x50364d)return{};const _0x326fd2={},_0x364556=_0x50364d[_0x5a9153(-_0x169609._0x235e24,-0x11c,-0x129,-0x10c)]??(resolveReasoningVisibility(_0x5b8a30)===_0x12a227(0xbf,_0x169609._0x2d2e76,0xb5,0x9d)?'auto':void 0x0);function _0x5a9153(_0x3cdc98,_0x415b5b,_0x26872b,_0x3275f9){return _0x26e7(_0x26872b- -0x1a1,_0x415b5b);}return _0x50364d[_0x5a9153(-_0x169609._0x43e0d9,-0x109,-0x101,-0x116)]&&(_0x326fd2[_0x12a227(_0x169609._0x1e20a2,_0x169609._0x4fac5f,_0x169609._0x215a07,_0x169609._0x2c829f)]=_0x50364d[_0x5a9153(-0x104,-_0x169609._0x2dd0be,-_0x169609._0x375140,-_0x169609._0x47b9bf)]),_0x364556&&(_0x326fd2[_0x5a9153(-0x110,-_0x169609._0x2725d0,-_0x169609._0x30b80b,-_0x169609._0x51843f)]=_0x364556),{..._0x50364d[_0x12a227(0x8a,0xae,0xa7,_0x169609._0x21b5bf)]===![]?{}:{'include':['reasoning.encrypted_content']},...Object[_0x12a227(_0x169609._0x1ac933,0x8a,0x86,_0x169609._0x5c47d4)](_0x326fd2)[_0x12a227(_0x169609._0x1c7f19,_0x169609._0x302bc9,_0x169609._0x2fdf4e,_0x169609._0x2e55ea)]>0x0?{'reasoning':_0x326fd2}:{}};}function pushAssistantProviderState(_0x524b8f,_0x5946d1){const _0x5e6fe0={_0x2c9cf7:0x137,_0x159f44:0x12d,_0x3853ec:0x14b,_0x27b0e1:0x122,_0x218fe7:0x151,_0x3862d2:0x158,_0x201719:0x14b,_0x271457:0x13d,_0x3eed8e:0x122,_0x5af7b4:0x12d,_0x6803fc:0x142,_0x2bb7a4:0x162,_0x3eb0a2:0x15e,_0x189c94:0x135},_0x52c6e2={_0x5c0d5e:0x334};if(_0x5946d1[_0x22d378(_0x5e6fe0._0x2c9cf7,_0x5e6fe0._0x159f44,_0x5e6fe0._0x3853ec,_0x5e6fe0._0x27b0e1)]!=='assistant')return![];function _0x174d88(_0x2ce9fa,_0xa0f2cc,_0x52cbab,_0x81ab5e){return _0x26e7(_0x81ab5e- -_0x52c6e2._0x5c0d5e,_0x52cbab);}const _0x55ef14=_0x5946d1[_0x22d378(_0x5e6fe0._0x218fe7,_0x5e6fe0._0x3862d2,0x13a,_0x5e6fe0._0x201719)]?.[_0x22d378(_0x5e6fe0._0x271457,_0x5e6fe0._0x3eed8e,0x13e,0x148)]??[];if(_0x55ef14[_0x22d378(_0x5e6fe0._0x5af7b4,_0x5e6fe0._0x6803fc,0x11f,0x129)]===0x0)return![];function _0x22d378(_0x24b235,_0xa5e5e8,_0x1ced16,_0x8bdf43){return _0x26e7(_0x24b235-0xaa,_0x8bdf43);}for(const _0x45db83 of _0x55ef14){isResponseInputObject(_0x45db83)&&_0x524b8f[_0x22d378(0x144,_0x5e6fe0._0x2bb7a4,_0x5e6fe0._0x3eb0a2,_0x5e6fe0._0x189c94)](structuredClone(_0x45db83));}return!![];}function toOpenAiResponsesRequest(_0x1c638a){const _0x4a5ed6={_0x317b19:0x385,_0x3d4e12:0x380,_0x315d6b:0x321,_0x5a202f:0x322,_0x5132a9:0x350,_0x234813:0x355,_0x274326:0x354,_0x2b837b:0x374,_0x39dc09:0x388,_0x531748:0x36d,_0x14da09:0x375,_0x2be532:0x35b,_0x29f224:0x326,_0x2d1ea7:0x34e,_0x235b9b:0x37d,_0x166546:0x392,_0x146342:0x38a,_0x5a5548:0x325,_0x5590a0:0x334,_0x121b95:0x34d,_0x22c48b:0x36f,_0x353231:0x341,_0x5698b5:0x367,_0x31507c:0x372,_0x355858:0x35c,_0x1fae74:0x39b,_0x3621de:0x388,_0x59d270:0x38e,_0x407ca7:0x38e,_0x502c08:0x35a,_0x36b6cc:0x380,_0x58de89:0x39b,_0x3786a6:0x37c,_0x448628:0x376,_0x392e86:0x363,_0x190f25:0x333,_0x162262:0x3ac,_0x1a1f4f:0x329,_0x33bcc2:0x33d,_0x4a2bd2:0x36b,_0x11d50b:0x380,_0x2f7493:0x38d,_0x169b4d:0x38b,_0x38f9f1:0x39c,_0x1ea4fe:0x35c,_0x19299e:0x343,_0x11f477:0x382,_0x54517d:0x362,_0x221f1d:0x362,_0x466d96:0x377,_0x40023d:0x39f,_0x40e78e:0x36d,_0x51a2c6:0x34a,_0x4e69dc:0x346,_0xfecb02:0x348,_0xc05a34:0x362,_0x45f3fa:0x36c,_0x2a0674:0x377,_0x46665f:0x36e,_0x2bc75d:0x37a,_0x1472c4:0x34f,_0x18e738:0x368,_0x570818:0x349,_0x4fbb38:0x352,_0xe94280:0x36a,_0x1302e4:0x37a,_0x185524:0x37f,_0xfdb6f1:0x361,_0x59dcaa:0x370,_0x2ce1c5:0x387,_0x431608:0x382,_0x567ae0:0x389,_0x1d3982:0x393,_0x188d25:0x390,_0x31d2ac:0x383,_0x239947:0x38e},_0x1de6e1={_0x58388f:0x335,_0x4b4193:0x34d,_0x46d49c:0xf1,_0x52f440:0x107};function _0x44fb29(_0x26e47e,_0x482833,_0x4d4340,_0x4b210d){return _0x26e7(_0x26e47e-0x2e7,_0x482833);}const _0x5797dc=[];for(const _0x5c8392 of _0x1c638a[_0x44fb29(0x399,_0x4a5ed6._0x317b19,0x3b7,_0x4a5ed6._0x3d4e12)]){if(pushAssistantProviderState(_0x5797dc,_0x5c8392))continue;const _0x401f03=[];for(const _0x37bd83 of normalizeContent(_0x5c8392[_0x1327d2(0x33c,_0x4a5ed6._0x315d6b,_0x4a5ed6._0x5a202f,_0x4a5ed6._0x5132a9)])){if(_0x37bd83[_0x1327d2(0x35b,0x36c,_0x4a5ed6._0x234813,_0x4a5ed6._0x274326)]==='text'){_0x401f03[_0x44fb29(0x381,0x375,0x39a,0x37d)](_0x5c8392[_0x44fb29(_0x4a5ed6._0x2b837b,_0x4a5ed6._0x39dc09,_0x4a5ed6._0x531748,0x361)]===_0x1327d2(_0x4a5ed6._0x14da09,0x36a,0x369,_0x4a5ed6._0x2be532)?{'type':_0x1327d2(0x344,_0x4a5ed6._0x29f224,0x359,0x32f),'text':_0x37bd83[_0x44fb29(0x360,_0x4a5ed6._0x2d1ea7,0x37e,_0x4a5ed6._0x235b9b)]}:{'type':_0x44fb29(_0x4a5ed6._0x166546,0x374,_0x4a5ed6._0x146342,0x39c),'text':_0x37bd83[_0x1327d2(0x33b,_0x4a5ed6._0x5a5548,0x345,_0x4a5ed6._0x5590a0)]});continue;}if(_0x37bd83[_0x1327d2(0x35b,_0x4a5ed6._0x121b95,0x378,0x379)]===_0x1327d2(_0x4a5ed6._0x22c48b,0x37a,0x38b,0x38e)){_0x401f03[_0x44fb29(0x381,0x379,_0x4a5ed6._0x531748,0x36c)]({'type':_0x1327d2(_0x4a5ed6._0x353231,0x343,0x34e,0x322),'image_url':_0x44fb29(_0x4a5ed6._0x5698b5,_0x4a5ed6._0x31507c,0x35f,_0x4a5ed6._0x355858)+_0x37bd83[_0x44fb29(0x37d,0x38e,_0x4a5ed6._0x1fae74,_0x4a5ed6._0x146342)]['media_type']+_0x44fb29(0x370,_0x4a5ed6._0x5698b5,0x369,0x362)+_0x37bd83[_0x44fb29(0x37d,0x36d,0x387,0x36f)][_0x44fb29(_0x4a5ed6._0x3621de,_0x4a5ed6._0x59d270,_0x4a5ed6._0x407ca7,0x386)]});continue;}pushUserContentMessage(_0x5797dc,_0x5c8392[_0x44fb29(_0x4a5ed6._0x2b837b,_0x4a5ed6._0x502c08,0x38d,0x382)],_0x401f03['splice'](0x0));if(_0x37bd83[_0x44fb29(_0x4a5ed6._0x36b6cc,0x385,_0x4a5ed6._0x58de89,0x37f)]===_0x1327d2(0x33f,0x32e,0x356,_0x4a5ed6._0x5132a9)){if(!hasSerializableToolUse(_0x37bd83))continue;_0x5797dc[_0x44fb29(0x381,_0x4a5ed6._0x3786a6,_0x4a5ed6._0x448628,_0x4a5ed6._0x392e86)]({'type':_0x1327d2(0x340,_0x4a5ed6._0x190f25,_0x4a5ed6._0x353231,0x341),'call_id':_0x37bd83['id'],'name':_0x37bd83[_0x44fb29(0x393,_0x4a5ed6._0x162262,0x3ad,0x39a)],'arguments':JSON[_0x1327d2(0x343,_0x4a5ed6._0x1a1f4f,0x362,_0x4a5ed6._0x33bcc2)](_0x37bd83[_0x44fb29(_0x4a5ed6._0x14da09,_0x4a5ed6._0x4a2bd2,0x357,0x392)]??{})});continue;}if(_0x37bd83[_0x44fb29(_0x4a5ed6._0x11d50b,_0x4a5ed6._0x2f7493,_0x4a5ed6._0x169b4d,_0x4a5ed6._0x38f9f1)]==='tool_result'){if(!hasSerializableToolResult(_0x37bd83))continue;const _0x5c5e01=getToolResultText(_0x37bd83['content']);_0x5797dc[_0x1327d2(_0x4a5ed6._0x1ea4fe,_0x4a5ed6._0x19299e,0x351,0x34d)]({'type':_0x1327d2(0x368,_0x4a5ed6._0x11f477,0x36a,_0x4a5ed6._0x54517d),'call_id':_0x37bd83[_0x44fb29(0x37f,_0x4a5ed6._0x221f1d,_0x4a5ed6._0x466d96,_0x4a5ed6._0x22c48b)],'output':_0x5c5e01});const _0x1db42e=getToolResultImages(_0x37bd83['content']);_0x1db42e['length']>0x0&&_0x5797dc[_0x44fb29(0x381,_0x4a5ed6._0x40023d,_0x4a5ed6._0x40e78e,0x384)]({'type':_0x1327d2(_0x4a5ed6._0x51a2c6,_0x4a5ed6._0x4e69dc,_0x4a5ed6._0xfecb02,_0x4a5ed6._0xc05a34),'role':'user','content':[{'type':_0x44fb29(_0x4a5ed6._0x166546,0x397,0x384,0x39b),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x37bd83['tool_use_id']+'.'},..._0x1db42e[_0x44fb29(_0x4a5ed6._0x45f3fa,_0x4a5ed6._0x2a0674,_0x4a5ed6._0x46665f,_0x4a5ed6._0x2bc75d)](_0x5534ff=>({'type':_0x1327d2(0x341,0x341,0x32f,0x356),'image_url':_0x44fb29(0x367,0x366,0x360,0x34b)+_0x5534ff[_0x1327d2(0x358,0x343,0x34d,0x365)]['media_type']+_0x44fb29(0x370,0x382,0x354,0x35a)+_0x5534ff[_0x1327d2(0x358,0x33d,0x351,0x376)][_0x1327d2(0x363,0x349,0x348,0x37d)]}))]});}}pushUserContentMessage(_0x5797dc,_0x5c8392[_0x1327d2(_0x4a5ed6._0x1472c4,0x368,_0x4a5ed6._0x18e738,0x35a)],_0x401f03);}function _0x1327d2(_0x1353db,_0x3226b7,_0x375c9e,_0x34a7aa){return _0x26e7(_0x1353db-0x2c2,_0x3226b7);}return{...createOpenAiResponsesReasoning(_0x1c638a),'model':_0x1c638a[_0x1327d2(_0x4a5ed6._0x121b95,_0x4a5ed6._0x570818,0x34c,_0x4a5ed6._0x4fbb38)],'instructions':systemToInstructions(_0x1c638a[_0x1327d2(_0x4a5ed6._0xe94280,0x37d,_0x4a5ed6._0x1302e4,_0x4a5ed6._0x234813)]),'input':_0x5797dc,'max_output_tokens':_0x1c638a[_0x1327d2(0x359,0x347,0x33c,0x375)],'tools':_0x1c638a[_0x44fb29(0x363,_0x4a5ed6._0x185524,0x358,_0x4a5ed6._0x51a2c6)][_0x44fb29(_0x4a5ed6._0x45f3fa,_0x4a5ed6._0xfdb6f1,_0x4a5ed6._0x59dcaa,_0x4a5ed6._0x2ce1c5)](_0x1578b4=>{const _0x3b0302={_0x50b15:0x260,_0x376f5c:0x6e};function _0xabb084(_0xb3c8ed,_0x1e8f74,_0x35d249,_0x5c68eb){return _0x1327d2(_0x5c68eb- -0x24,_0x1e8f74,_0x35d249-0x1e8,_0x5c68eb-0x182);}function _0x476c95(_0x34dbea,_0x353e18,_0x282fe9,_0x17d09c){return _0x1327d2(_0x17d09c- -_0x3b0302._0x50b15,_0x34dbea,_0x282fe9-0x1d3,_0x17d09c-_0x3b0302._0x376f5c);}return{'type':'function','name':_0x1578b4['name'],'description':_0x1578b4[_0xabb084(0x347,_0x1de6e1._0x58388f,0x348,_0x1de6e1._0x4b4193)],'parameters':_0x1578b4[_0x476c95(_0x1de6e1._0x46d49c,0x119,0x102,_0x1de6e1._0x52f440)]};}),..._0x1c638a[_0x44fb29(_0x4a5ed6._0x431608,0x381,_0x4a5ed6._0x567ae0,_0x4a5ed6._0x40e78e)]?{'text':{'format':{'type':'json_schema','name':_0x1c638a['outputFormat'][_0x44fb29(_0x4a5ed6._0x1d3982,0x38b,0x37c,_0x4a5ed6._0x567ae0)]??_0x44fb29(0x39b,0x3b5,0x394,0x387),'schema':_0x1c638a['outputFormat'][_0x44fb29(_0x4a5ed6._0x188d25,0x38e,_0x4a5ed6._0x31d2ac,_0x4a5ed6._0x239947)],'strict':_0x1c638a['outputFormat']['strict']??!![]}}}:{}};}export{toOpenAiResponsesRequest};function _0x1eab(){const _0x41ce89=['zwzMB3j0','zgf0yq','mteXmJeWAgXoqM9R','mtu2ywjVEgTk','mZuZodbRwwjxDeW','Aw5WDxrFC2nOzw1H','zNvUy3rPB25Fy2fSBf9VDxrWDxq','ChjVDMLKzxjtDgf0zq','C3LZDgvT','C2nOzw1H','DxnLCI12AxnPyMXL','Aw5WDxrFDgv4Da','BMfTzq','Aw1Hz2u','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','zgvZy3jPChrPB24','DMLZAwjPBgL0Eq','mtaXmZu4mNbdB0HmsW','BwvZC2fNzxm','yxnZAxn0yw50','C3rYDwn0DxjLzf9VDxrWDxq','C3vTBwfYEq','Dgv4Da','y29UDgvUDa','A2v5CW','Dg9VBhm','Dg9VBf91C2u','zNvUy3rPB25Fy2fSBa','Aw5WDxrFAw1Hz2u','zgf0ytO','C3rYAw5NAwz5','B3v0Chv0x3rLEhq','BgvUz3rO','odyYmde0z1res0HM','BwfW','nty1mJe0nhn4z2vLEa','ndqXDxP4wxjW','BwvZC2fNzq','o2jHC2u2ncW','mtbyrerqruG','Bw9KzwW','DhjPBq','CM9Szq','Aw5WDxq','B2jQzwn0','BwvKAwfFDhLWzq','C3rYAw5N','zMLSDgvY','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','CMvHC29UAw5N','ode3mZK0mM1etNHbAa','C291CMnL','Bwf4vg9Rzw5Z','Dg9VBf91C2vFAwq','DhLWzq','ChvZAa','B3v0Chv0rM9YBwf0','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq','ndq3mZuYog9Nq0LHrG','AxnbCNjHEq','AM9PBG'];_0x1eab=function(){return _0x41ce89;};return _0x1eab();}
1
+ (function(_0x49668b,_0x5e8a96){const _0x2ddb37={_0x4e3241:0x39f,_0x25d047:0x14f,_0x1f5db1:0x143,_0x2a86a4:0x147,_0x16c62b:0x134,_0x304c98:0x3ab,_0x55d53c:0x3b3,_0x13e1fb:0x3c3,_0x58c8ab:0x398,_0x395fd9:0x115,_0x28e28a:0x132,_0xb88619:0x393,_0x5c2115:0x391,_0xce2ffb:0x385,_0x4baa25:0x133,_0x46b7a8:0x142,_0x3d3828:0x13f,_0x5d4626:0x156},_0x3e96a5={_0x483555:0x309},_0x267c21=_0x49668b();function _0x40a165(_0x344121,_0x1c76cc,_0x1d6c41,_0x75d0d0){return _0x323a(_0x1d6c41- -_0x3e96a5._0x483555,_0x1c76cc);}function _0x1f70db(_0x32bbc4,_0x30b6d8,_0x6fc889,_0x2a84bb){return _0x323a(_0x32bbc4-0x1c0,_0x6fc889);}while(!![]){try{const _0x3d71fe=parseInt(_0x1f70db(0x395,_0x2ddb37._0x4e3241,0x3b1,0x3a1))/0x1+parseInt(_0x40a165(-0x125,-_0x2ddb37._0x25d047,-0x144,-0x138))/0x2*(parseInt(_0x40a165(-_0x2ddb37._0x1f5db1,-0x136,-_0x2ddb37._0x2a86a4,-0x14f))/0x3)+-parseInt(_0x40a165(-0x117,-_0x2ddb37._0x16c62b,-0x132,-0x145))/0x4*(-parseInt(_0x1f70db(0x3a9,_0x2ddb37._0x304c98,_0x2ddb37._0x55d53c,_0x2ddb37._0x13e1fb))/0x5)+-parseInt(_0x1f70db(0x393,0x39a,0x3ae,_0x2ddb37._0x58c8ab))/0x6*(-parseInt(_0x1f70db(0x383,0x383,0x377,0x38e))/0x7)+parseInt(_0x40a165(-0x122,-_0x2ddb37._0x395fd9,-0x115,-_0x2ddb37._0x28e28a))/0x8+parseInt(_0x1f70db(0x39f,_0x2ddb37._0xb88619,_0x2ddb37._0x5c2115,_0x2ddb37._0xce2ffb))/0x9*(parseInt(_0x40a165(-0x13d,-0x116,-0x129,-_0x2ddb37._0x4baa25))/0xa)+parseInt(_0x40a165(-0x142,-0x152,-_0x2ddb37._0x46b7a8,-0x13e))/0xb*(-parseInt(_0x40a165(-_0x2ddb37._0x3d3828,-_0x2ddb37._0x5d4626,-0x150,-0x131))/0xc);if(_0x3d71fe===_0x5e8a96)break;else _0x267c21['push'](_0x267c21['shift']());}catch(_0x3bdef6){_0x267c21['push'](_0x267c21['shift']());}}}(_0x2f7b,0x70e20));import{resolveOpenAiReasoningConfig}from'./chunk-NYZR4XKO.js';import{normalizeContent}from'./chunk-QDOE7NWO.js';function systemToInstructions(_0x558803){const _0x13016c={_0x59d614:0x3f,_0x5e2e41:0x331,_0x549151:0x32b,_0x90def3:0x33c,_0x12bb47:0x324},_0x3a1ae0={_0x36f566:0x16e};function _0x5cdee5(_0x49bb30,_0x5368bc,_0x33ac4a,_0x47cde0){return _0x323a(_0x5368bc- -0x20a,_0x49bb30);}function _0x1564bf(_0x169e4f,_0x5784d5,_0x399ef1,_0x13a5e2){return _0x323a(_0x5784d5-_0x3a1ae0._0x36f566,_0x169e4f);}return normalizeContent(_0x558803)[_0x5cdee5(-0x46,-_0x13016c._0x59d614,-0x20,-0x48)](_0x128825=>_0x128825['type']===_0x1564bf(0x333,0x338,0x357,0x348))[_0x1564bf(_0x13016c._0x5e2e41,0x342,0x360,_0x13016c._0x549151)](_0x432db5=>_0x432db5[_0x1564bf(0x327,0x338,0x32b,0x353)])[_0x1564bf(0x345,_0x13016c._0x90def3,0x352,_0x13016c._0x12bb47)]('\x0a\x0a');}function pushUserContentMessage(_0x2ab7c7,_0x4012a4,_0x4322b5){const _0x1a75a2={_0x18f762:0x138,_0x567bc6:0x120},_0x46960a={_0x267584:0x41};function _0x431843(_0x55378a,_0x127f10,_0x3b063e,_0x5d8dcc){return _0x323a(_0x3b063e- -0xbc,_0x5d8dcc);}function _0x543bcc(_0x29bc67,_0x21da7e,_0x5f17f2,_0x1a48ff){return _0x323a(_0x5f17f2-_0x46960a._0x267584,_0x1a48ff);}if(_0x4322b5[_0x431843(_0x1a75a2._0x18f762,_0x1a75a2._0x567bc6,0x131,0x12c)]===0x0)return;_0x2ab7c7[_0x431843(0xf4,0x101,0x104,0x11c)]({'type':'message','role':_0x4012a4,'content':_0x4322b5});}function _0x323a(_0x39ed62,_0x306a29){_0x39ed62=_0x39ed62-0x1b8;const _0x2f7b21=_0x2f7b();let _0x323aef=_0x2f7b21[_0x39ed62];if(_0x323a['UlAWCJ']===undefined){var _0x9f3af0=function(_0x95f7ed){const _0xa3e5d7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x558803='',_0x128825='';for(let _0x432db5=0x0,_0x2ab7c7,_0x4012a4,_0x4322b5=0x0;_0x4012a4=_0x95f7ed['charAt'](_0x4322b5++);~_0x4012a4&&(_0x2ab7c7=_0x432db5%0x4?_0x2ab7c7*0x40+_0x4012a4:_0x4012a4,_0x432db5++%0x4)?_0x558803+=String['fromCharCode'](0xff&_0x2ab7c7>>(-0x2*_0x432db5&0x6)):0x0){_0x4012a4=_0xa3e5d7['indexOf'](_0x4012a4);}for(let _0x5efa1d=0x0,_0x1e8382=_0x558803['length'];_0x5efa1d<_0x1e8382;_0x5efa1d++){_0x128825+='%'+('00'+_0x558803['charCodeAt'](_0x5efa1d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x128825);};_0x323a['spYjZr']=_0x9f3af0,_0x323a['NidKpQ']={},_0x323a['UlAWCJ']=!![];}const _0x283629=_0x2f7b21[0x0],_0x4c9855=_0x39ed62+_0x283629,_0x58ba16=_0x323a['NidKpQ'][_0x4c9855];return!_0x58ba16?(_0x323aef=_0x323a['spYjZr'](_0x323aef),_0x323a['NidKpQ'][_0x4c9855]=_0x323aef):_0x323aef=_0x58ba16,_0x323aef;}function hasSerializableToolUse(_0x5efa1d){const _0x14e329={_0x3db075:0x2e,_0x4eda28:0xb,_0x499b3d:0xe1,_0x389b97:0xe9,_0x134f88:0xd7,_0x133428:0xe3},_0x28eb54={_0x3a1f8c:0x100};function _0x4bb790(_0x231b66,_0x200e00,_0x685577,_0x4d3ac7){return _0x323a(_0x200e00- -0x1ce,_0x231b66);}function _0xd71511(_0x262218,_0x5a3fda,_0x3d0504,_0x404027){return _0x323a(_0x404027- -_0x28eb54._0x3a1f8c,_0x5a3fda);}return _0x5efa1d['id']['trim']()[_0x4bb790(_0x14e329._0x3db075,0x1f,0x1c,_0x14e329._0x4eda28)]>0x0&&_0x5efa1d[_0xd71511(0xf3,_0x14e329._0x499b3d,_0x14e329._0x389b97,_0x14e329._0x499b3d)][_0xd71511(0xc7,_0x14e329._0x134f88,_0x14e329._0x133428,0xc9)]()['length']>0x0;}function hasSerializableToolResult(_0x1e8382){const _0x536177={_0x18ad64:0x214,_0x2e7a10:0x203};function _0x19a1c8(_0x47c293,_0x32f323,_0x288ca6,_0x3ab76c){return _0x323a(_0x288ca6- -0x3e2,_0x32f323);}function _0x51a58c(_0x180f21,_0x3c3381,_0x523dfb,_0x6e2191){return _0x323a(_0x3c3381- -0x91,_0x6e2191);}return _0x1e8382[_0x19a1c8(-0x1ed,-0x21a,-0x20c,-0x1f3)][_0x19a1c8(-_0x536177._0x18ad64,-0x207,-0x219,-_0x536177._0x2e7a10)]()['length']>0x0;}function _0x2f7b(){const _0x119afa=['ANnVBL9Zy2HLBwe','ouDXqvzMwG','ndG2mJC3me1Oy3vYCW','BMfTzq','BwvZC2fNzxm','Bwf4vg9Rzw5Z','zgf0ytO','C3LZDgvT','zNvUy3rPB24','C3rYAwn0','AxnbCNjHEq','mZm1CKDoDMnW','DxnLCG','A2v5CW','Aw5WDxq','BgvUz3rO','ChjVDMLKzxjtDgf0zq','Dg9VBf9Yzxn1Bhq','C2nOzw1H','zNvUy3rPB25Fy2fSBa','CM9Szq','CMvHC29UAw5N','mZKZmtG4mgDwq2PsBq','vg9VBcbYzxr1CM5LzcbPBwfNzsbJB250zw50lG','o2jHC2u2ncW','odyYnJGWDKzwu1Dv','DMLZAwjPBgL0Eq','B2jQzwn0','B3v0Chv0rM9YBwf0','C3vTBwfYEq','C291CMnL','DhLWzq','ChvZAa','BwvKAwfFDhLWzq','ntCXnvfvBwjwDG','mJu3mZiWn0vYD2LZsq','Aw5WDxrFDgv4Da','odyYv29zCNLi','B3bLBMfPuMvZCg9UC2vZt3v0Chv0','mZuYt2r1CMDd','zwzMB3j0','DhjPBq','Dgv4Da','zMLSDgvY','CMvHC29UAw5NlMvUy3j5ChrLzf9JB250zw50','y29UDgvUDa','AM9PBG','C3rYDwn0DxjLzf9VDxrWDxq','Aw5WDxrFAw1Hz2u','zNvUy3rPB25Fy2fSBf9VDxrWDxq','yMfZzty0','nLH0vhzWra','BwfW','mZaZndm5A1LstgLU','Dg9VBf91C2vFAwq','mtC0otjfswTeDg8','DxnLCI12AxnPyMXL','zgf0yq','yxv0BW','Aw1Hz2u','C3rYAw5N','Aw5JBhvKzuvUy3j5ChrLzenVBNrLBNq'];_0x2f7b=function(){return _0x119afa;};return _0x2f7b();}function isResponseInputObject(_0x5a395b){const _0x12e60d={_0x3c9d3a:0x186};if(typeof _0x5a395b!=='object'||_0x5a395b===null||Array[_0x5558b0(0x199,0x17f,0x190,_0x12e60d._0x3c9d3a)](_0x5a395b))return![];const _0xa8d16f=_0x5a395b;function _0x5558b0(_0x34cb21,_0x1dd1dc,_0x3f4711,_0x16546c){return _0x323a(_0x34cb21- -0x4f,_0x3f4711);}return typeof _0xa8d16f['type']==='string';}function isImageToolResultBlock(_0x1e0778){const _0x2b5425={_0x417f1c:0x17d,_0x44b9ad:0x199,_0x4f0783:0x180,_0x4edde0:0x180,_0x545dd8:0x168,_0x407cf0:0x19c,_0x2d47d8:0x16f,_0x11ad9:0x184,_0x4b1d5e:0xd4,_0x59cc61:0x172,_0x38482e:0x167,_0x18e4e0:0xc5,_0x3adc9e:0xb5,_0x4bc6e4:0xb6};function _0x494c35(_0x38f6e6,_0x3973bb,_0x9b310,_0x594516){return _0x323a(_0x594516- -0x57,_0x9b310);}function _0x85e9fe(_0x5667f5,_0x13b162,_0x505c00,_0x3e2d3a){return _0x323a(_0x5667f5- -0x2a1,_0x505c00);}if(typeof _0x1e0778!==_0x494c35(0x15e,0x14c,_0x2b5425._0x417f1c,0x164)||_0x1e0778===null||Array[_0x494c35(0x183,0x1a7,_0x2b5425._0x44b9ad,0x191)](_0x1e0778))return![];const _0xa62577=_0x1e0778;return _0xa62577[_0x494c35(0x17d,_0x2b5425._0x4f0783,_0x2b5425._0x4edde0,_0x2b5425._0x545dd8)]===_0x494c35(_0x2b5425._0x407cf0,0x199,_0x2b5425._0x2d47d8,_0x2b5425._0x11ad9)&&_0xa62577[_0x494c35(0x176,0x185,0x15d,0x167)]?.['type']===_0x85e9fe(-0xcf,-0xca,-0xe1,-_0x2b5425._0x4b1d5e)&&typeof _0xa62577[_0x494c35(_0x2b5425._0x59cc61,0x17d,0x155,_0x2b5425._0x38482e)]['media_type']===_0x85e9fe(-_0x2b5425._0x18e4e0,-_0x2b5425._0x3adc9e,-0xbe,-_0x2b5425._0x4bc6e4)&&typeof _0xa62577['source'][_0x494c35(0x191,0x169,0x19f,0x182)]==='string';}function getToolResultText(_0x2deda8){const _0x57546e={_0x18d315:0x20d,_0x4b7521:0x215,_0x439ff6:0x218,_0x351e49:0x12c,_0xc3978e:0x21c,_0x51916f:0x222,_0x1551f0:0x238,_0x18297a:0x147,_0x4c74b7:0x152,_0x438390:0x235,_0x2b407d:0x168,_0x2be298:0x15f},_0x5d6175={_0x1343f3:0x401,_0xf55622:0x408},_0x37b8cb={_0x185414:0x18e},_0x569e31={_0x2e58c9:0x8d},_0x245703={_0x29dbae:0x48};function _0x511edc(_0x49f266,_0x3369ac,_0x5ef57e,_0x219ba4){return _0x323a(_0x3369ac-_0x245703._0x29dbae,_0x5ef57e);}function _0x4196c1(_0x2644d4,_0x56d594,_0x425852,_0x2a99f0){return _0x323a(_0x425852- -_0x569e31._0x2e58c9,_0x56d594);}if(typeof _0x2deda8===_0x511edc(_0x57546e._0x18d315,0x224,_0x57546e._0x4b7521,_0x57546e._0x439ff6))return _0x2deda8;const _0x4e2d3d=_0x2deda8[_0x4196c1(_0x57546e._0x351e49,0x12d,0x13e,0x147)](_0x1b9d8f=>{const _0x232192={_0x4e5fe5:0x1fa};function _0x473823(_0x5a06c4,_0x23e171,_0x4041e0,_0x57b9bf){return _0x4196c1(_0x5a06c4-_0x37b8cb._0x185414,_0x57b9bf,_0x23e171- -0x317,_0x57b9bf-0xab);}function _0x4bbc0f(_0x105d49,_0x253d75,_0x317373,_0x35930d){return _0x511edc(_0x105d49-0x73,_0x317373-_0x232192._0x4e5fe5,_0x253d75,_0x35930d-0x1ea);}return typeof _0x1b9d8f==='object'&&_0x1b9d8f!==null&&_0x1b9d8f[_0x4bbc0f(0x3e3,0x41f,_0x5d6175._0x1343f3,_0x5d6175._0xf55622)]===_0x4bbc0f(0x3ee,0x3fe,0x40c,0x421);})[_0x511edc(0x21c,_0x57546e._0xc3978e,_0x57546e._0x51916f,_0x57546e._0x1551f0)](_0x56d5a3=>_0x56d5a3['text'])['join']('\x0a\x0a')[_0x4196c1(0x125,_0x57546e._0x18297a,0x13c,_0x57546e._0x4c74b7)]();return _0x4e2d3d[_0x511edc(0x242,_0x57546e._0x438390,0x237,_0x57546e._0x51916f)]>0x0?_0x4e2d3d:_0x4196c1(0x173,0x166,_0x57546e._0x2b407d,_0x57546e._0x2be298);}function getToolResultImages(_0x519691){return Array['isArray'](_0x519691)?_0x519691['filter'](isImageToolResultBlock):[];}function resolveReasoningVisibility(_0x1ded51){const _0x5d5ee2={_0x59b58e:0x466,_0x2c5655:0x4a3,_0x4ecda7:0x484,_0x496899:0x47b};function _0x1bdac8(_0x2145ce,_0x3ebc9f,_0x3a0482,_0x217050){return _0x323a(_0x3a0482-0x397,_0x2145ce);}function _0x1e9426(_0x2c306d,_0x598b67,_0xc1f0b8,_0x262497){return _0x323a(_0xc1f0b8-0x2ac,_0x2c306d);}return _0x1ded51['reasoning']?.[_0x1e9426(0x454,0x479,_0x5d5ee2._0x59b58e,0x45e)]??_0x1e9426(_0x5d5ee2._0x2c5655,0x483,_0x5d5ee2._0x4ecda7,_0x5d5ee2._0x496899);}function createOpenAiResponsesReasoning(_0x25cb17){const _0x54be0d={_0xaa73af:0x24,_0x154c03:0xa,_0x26b02c:0x12,_0x250ceb:0x11,_0x475e14:0x153,_0x2112da:0x13,_0x47f387:0x141,_0x56773:0x6,_0x37e430:0x1b,_0x1f3c8e:0x14,_0x1616c4:0x162,_0x370ae4:0x13a,_0x49ec88:0x167,_0x37ee86:0x180,_0x36632a:0x174},_0x3e89dc={_0x145df4:0x84},_0x491810=resolveOpenAiReasoningConfig(_0x25cb17[_0x57016b(_0x54be0d._0xaa73af,_0x54be0d._0x154c03,_0x54be0d._0x26b02c,0x1f)]);if(!_0x491810)return{};const _0x3a8ebc={};function _0x139c48(_0x7ae168,_0xf0b31e,_0x39517c,_0x26396d){return _0x323a(_0xf0b31e- -_0x3e89dc._0x145df4,_0x26396d);}const _0x909a36=_0x491810[_0x57016b(-0x12,-0x8,-_0x54be0d._0x250ceb,-0x13)]??(resolveReasoningVisibility(_0x25cb17)==='user-visible'?_0x139c48(0x145,0x156,0x14a,_0x54be0d._0x475e14):void 0x0);_0x491810[_0x57016b(-0x7,-0x7,-0x22,-_0x54be0d._0x2112da)]&&(_0x3a8ebc[_0x139c48(0x152,0x144,_0x54be0d._0x47f387,0x130)]=_0x491810[_0x57016b(-0x7,0xa,-0x12,-0x25)]);function _0x57016b(_0x274d26,_0x55c4e9,_0x313e55,_0x478042){return _0x323a(_0x274d26- -0x1cf,_0x55c4e9);}return _0x909a36&&(_0x3a8ebc[_0x57016b(-0x12,-0x10,-0x2d,-_0x54be0d._0x56773)]=_0x909a36),{..._0x491810[_0x57016b(0xe,_0x54be0d._0x37e430,_0x54be0d._0x1f3c8e,-0xc)]===![]?{}:{'include':[_0x139c48(0x166,0x148,_0x54be0d._0x1616c4,_0x54be0d._0x370ae4)]},...Object[_0x139c48(0x17b,_0x54be0d._0x49ec88,_0x54be0d._0x37ee86,0x17d)](_0x3a8ebc)[_0x139c48(0x186,0x169,0x166,_0x54be0d._0x36632a)]>0x0?{'reasoning':_0x3a8ebc}:{}};}function pushAssistantProviderState(_0x7a7029,_0x5ba3a2){const _0x19aff6={_0xf18e25:0x17c,_0xb8202:0x182,_0x4606c0:0x187,_0x3d5f6d:0x198,_0x2884b9:0x1af,_0x16e5fe:0x4eb,_0x3bf10d:0x4e0},_0x21074e={_0x21a218:0x375};if(_0x5ba3a2[_0x3f1e45(-0x171,-0x1a1,-0x183,-_0x19aff6._0xf18e25)]!=='assistant')return![];const _0x10bbdf=_0x5ba3a2[_0x3f1e45(-_0x19aff6._0xb8202,-0x197,-_0x19aff6._0x4606c0,-_0x19aff6._0x3d5f6d)]?.[_0x3f1e45(-0x1c0,-0x1b7,-_0x19aff6._0x2884b9,-0x196)]??[];if(_0x10bbdf['length']===0x0)return![];for(const _0x4bb2a1 of _0x10bbdf){isResponseInputObject(_0x4bb2a1)&&_0x7a7029[_0x4fc8e7(_0x19aff6._0x16e5fe,0x4c2,0x4ed,_0x19aff6._0x3bf10d)](structuredClone(_0x4bb2a1));}function _0x4fc8e7(_0x333bfd,_0x143cde,_0x40479c,_0x1fa35b){return _0x323a(_0x1fa35b-0x320,_0x333bfd);}function _0x3f1e45(_0x3bafcc,_0x451c83,_0x9c9a75,_0x10992){return _0x323a(_0x9c9a75- -_0x21074e._0x21a218,_0x451c83);}return!![];}function toOpenAiResponsesRequest(_0x13b5ab){const _0x5bafbb={_0x10d45e:0x4f0,_0x547b99:0x4ef,_0x535304:0x4b7,_0x2e914d:0x19b,_0xc7e88d:0x18e,_0x1e3cc4:0x18b,_0x13fa12:0x4e2,_0x550b5f:0x4da,_0x55ede1:0x4f0,_0x308b5e:0x4e1,_0x574517:0x4be,_0x5259ff:0x4c8,_0x8387d2:0x4ae,_0x5d683e:0x4c2,_0x4f041d:0x177,_0x3eaf34:0x15d,_0x2d6292:0x193,_0x288f32:0x182,_0x5529dc:0x176,_0x451542:0x15e,_0xfe837e:0x166,_0x23b78c:0x160,_0x39f247:0x192,_0x4e7600:0x18e,_0x394725:0x17c,_0x313b1a:0x14c,_0x2fc236:0x4cf,_0x255b41:0x49f,_0x5c053f:0x171,_0x4d6004:0x198,_0x2a33df:0x4a9,_0x30cbd5:0x4d5,_0x3b2aba:0x4bf,_0x249bc7:0x181,_0x579857:0x4e3,_0x2db8c3:0x156,_0x20968d:0x167,_0x24fd78:0x4cd,_0x4ca594:0x4ea,_0x4b4733:0x16d,_0xf45b67:0x152,_0x4d9f2c:0x16c,_0x6f4b99:0x176,_0x4d2e4b:0x4c2,_0x1b322c:0x4d0,_0xa8f289:0x4be,_0x25f9a9:0x4c0,_0xd0784d:0x4c0,_0x1ec3e8:0x4cf,_0x1991b9:0x156,_0x2d200b:0x179,_0x3acbef:0x181,_0x3763f6:0x18c,_0x52a3fb:0x161,_0x4804ff:0x14e,_0x16e96a:0x17d,_0x225e4d:0x167,_0xfbf8aa:0x16b,_0x40f629:0x172,_0xf17463:0x16d,_0x13a8f3:0x4ed,_0x4dd2fc:0x14c,_0x2df65f:0x174,_0x2c67b1:0x157,_0xf16435:0x18f,_0xc1552a:0x165,_0x1afceb:0x158,_0xf911e8:0x160,_0x1e075d:0x162,_0x2c031f:0x157,_0x4b3fa4:0x18d,_0x10eace:0x158,_0x28430c:0x17b,_0x1ebffd:0x190,_0x5bef46:0x4fd,_0x12526a:0x4fa,_0x2f4983:0x4eb,_0x4289f9:0x4ee,_0x4c4c49:0x4fb},_0x219579={_0x50027b:0x64,_0x464406:0x6d},_0x19b8a7={_0x5ca662:0x2fe};function _0x2df7e5(_0x26d350,_0x479f5c,_0x49fd52,_0x3b573d){return _0x323a(_0x479f5c- -0x341,_0x3b573d);}const _0x35834c=[];function _0x4a5fd1(_0x3c5d27,_0x3809cb,_0x17ef54,_0x6e19b){return _0x323a(_0x6e19b-_0x19b8a7._0x5ca662,_0x3809cb);}for(const _0x2529f5 of _0x13b5ab[_0x4a5fd1(_0x5bafbb._0x10d45e,_0x5bafbb._0x547b99,0x4ff,0x4e0)]){if(pushAssistantProviderState(_0x35834c,_0x2529f5))continue;const _0x4cd89a=[];for(const _0x2d9257 of normalizeContent(_0x2529f5[_0x4a5fd1(0x4cb,_0x5bafbb._0x535304,0x4b7,0x4cb)])){if(_0x2d9257[_0x2df7e5(-0x183,-0x182,-_0x5bafbb._0x2e914d,-_0x5bafbb._0xc7e88d)]==='text'){_0x4cd89a[_0x2df7e5(-0x176,-0x181,-0x19c,-_0x5bafbb._0x1e3cc4)](_0x2529f5[_0x4a5fd1(_0x5bafbb._0x13fa12,_0x5bafbb._0x550b5f,0x508,_0x5bafbb._0x55ede1)]==='assistant'?{'type':'output_text','text':_0x2d9257[_0x4a5fd1(_0x5bafbb._0x308b5e,0x4d2,_0x5bafbb._0x574517,_0x5bafbb._0x5259ff)]}:{'type':_0x4a5fd1(_0x5bafbb._0x8387d2,0x4a4,0x4ab,_0x5bafbb._0x5d683e),'text':_0x2d9257[_0x2df7e5(-0x161,-_0x5bafbb._0x4f041d,-_0x5bafbb._0x3eaf34,-_0x5bafbb._0x2d6292)]});continue;}if(_0x2d9257[_0x2df7e5(-0x170,-_0x5bafbb._0x288f32,-_0x5bafbb._0x5529dc,-0x163)]===_0x2df7e5(-_0x5bafbb._0x451542,-_0x5bafbb._0xfe837e,-0x166,-_0x5bafbb._0x23b78c)){_0x4cd89a[_0x2df7e5(-0x16e,-0x181,-_0x5bafbb._0x39f247,-0x163)]({'type':_0x2df7e5(-0x162,-0x171,-_0x5bafbb._0x4e7600,-0x15b),'image_url':_0x2df7e5(-_0x5bafbb._0x394725,-0x15d,-_0x5bafbb._0x313b1a,-0x179)+_0x2d9257[_0x4a5fd1(0x4a6,_0x5bafbb._0x2fc236,_0x5bafbb._0x255b41,0x4bc)][_0x2df7e5(-0x183,-0x180,-_0x5bafbb._0x5c053f,-_0x5bafbb._0x4d6004)]+_0x4a5fd1(0x4b0,0x499,_0x5bafbb._0x2a33df,0x4b6)+_0x2d9257['source'][_0x4a5fd1(_0x5bafbb._0x30cbd5,0x4d4,0x4be,0x4d7)]});continue;}pushUserContentMessage(_0x35834c,_0x2529f5['role'],_0x4cd89a['splice'](0x0));if(_0x2d9257[_0x4a5fd1(0x4b8,0x49f,_0x5bafbb._0x3b2aba,0x4bd)]==='tool_use'){if(!hasSerializableToolUse(_0x2d9257))continue;_0x35834c[_0x2df7e5(-0x163,-_0x5bafbb._0x249bc7,-0x187,-0x17a)]({'type':_0x4a5fd1(_0x5bafbb._0x579857,0x4df,0x4f8,0x4ef),'call_id':_0x2d9257['id'],'name':_0x2d9257[_0x2df7e5(-_0x5bafbb._0x2db8c3,-0x160,-_0x5bafbb._0x451542,-_0x5bafbb._0x20968d)],'arguments':JSON['stringify'](_0x2d9257[_0x4a5fd1(0x4e6,0x4d3,_0x5bafbb._0x24fd78,_0x5bafbb._0x4ca594)]??{})});continue;}if(_0x2d9257['type']===_0x2df7e5(-_0x5bafbb._0x4b4733,-_0x5bafbb._0xf45b67,-_0x5bafbb._0x4d9f2c,-0x162)){if(!hasSerializableToolResult(_0x2d9257))continue;const _0xae9b7=getToolResultText(_0x2d9257[_0x2df7e5(-0x187,-0x174,-_0x5bafbb._0x6f4b99,-0x164)]);_0x35834c[_0x4a5fd1(_0x5bafbb._0x4d2e4b,_0x5bafbb._0x1b322c,0x4ce,_0x5bafbb._0xa8f289)]({'type':_0x4a5fd1(_0x5bafbb._0x25f9a9,0x4db,_0x5bafbb._0xd0784d,_0x5bafbb._0x1ec3e8),'call_id':_0x2d9257[_0x2df7e5(-_0x5bafbb._0x1991b9,-0x16b,-0x179,-_0x5bafbb._0x2d200b)],'output':_0xae9b7});const _0x2eafb0=getToolResultImages(_0x2d9257['content']);_0x2eafb0['length']>0x0&&_0x35834c[_0x2df7e5(-0x190,-_0x5bafbb._0x3acbef,-_0x5bafbb._0x3763f6,-0x195)]({'type':'message','role':_0x2df7e5(-_0x5bafbb._0x52a3fb,-0x157,-0x145,-_0x5bafbb._0x4804ff),'content':[{'type':_0x2df7e5(-0x16d,-_0x5bafbb._0x16e96a,-0x184,-_0x5bafbb._0x225e4d),'text':'Image\x20returned\x20by\x20ViewFile\x20for\x20tool\x20result\x20'+_0x2d9257[_0x2df7e5(-0x180,-_0x5bafbb._0xfbf8aa,-0x185,-_0x5bafbb._0x40f629)]+'.'},..._0x2eafb0[_0x2df7e5(-_0x5bafbb._0x52a3fb,-_0x5bafbb._0xf17463,-_0x5bafbb._0x40f629,-0x156)](_0x2edb25=>({'type':_0x4a5fd1(0x4b9,0x4dc,0x4ce,0x4ce),'image_url':'data:'+_0x2edb25[_0x4a5fd1(0x4b2,0x4a9,0x4ce,0x4bc)]['media_type']+';base64,'+_0x2edb25['source'][_0x4a5fd1(0x4c0,0x4f0,0x4bd,0x4d7)]}))]});}}pushUserContentMessage(_0x35834c,_0x2529f5[_0x4a5fd1(0x4e5,0x4d5,_0x5bafbb._0x13a8f3,0x4f0)],_0x4cd89a);}return{...createOpenAiResponsesReasoning(_0x13b5ab),'model':_0x13b5ab['model'],'instructions':systemToInstructions(_0x13b5ab[_0x2df7e5(-0x159,-0x15c,-_0x5bafbb._0x4dd2fc,-0x15b)]),'input':_0x35834c,'max_output_tokens':_0x13b5ab[_0x2df7e5(-_0x5bafbb._0x2df65f,-0x15e,-_0x5bafbb._0x2c67b1,-0x15f)],'tools':_0x13b5ab['tools']['map'](_0x34bb5b=>{function _0x41218c(_0x34df01,_0x34b0e2,_0x22c5d2,_0x523abc){return _0x4a5fd1(_0x34df01-0x105,_0x34b0e2,_0x22c5d2-0x1e6,_0x22c5d2- -0x466);}return{'type':_0x41218c(_0x219579._0x50027b,0x6a,0x7e,_0x219579._0x464406),'name':_0x34bb5b['name'],'description':_0x34bb5b['description'],'parameters':_0x34bb5b['input_schema']};}),..._0x13b5ab[_0x2df7e5(-0x19c,-0x185,-0x19b,-_0x5bafbb._0xf16435)]?{'text':{'format':{'type':_0x2df7e5(-0x173,-0x163,-_0x5bafbb._0xc1552a,-0x145),'name':_0x13b5ab[_0x4a5fd1(0x4d4,0x4ac,0x4c0,0x4ba)][_0x2df7e5(-_0x5bafbb._0x1afceb,-_0x5bafbb._0xf911e8,-_0x5bafbb._0x1e075d,-0x147)]??_0x2df7e5(-_0x5bafbb._0x2c031f,-_0x5bafbb._0x40f629,-_0x5bafbb._0x4b3fa4,-_0x5bafbb._0x10eace),'schema':_0x13b5ab[_0x2df7e5(-_0x5bafbb._0x28430c,-0x185,-0x18f,-_0x5bafbb._0x1ebffd)][_0x4a5fd1(_0x5bafbb._0x5bef46,_0x5bafbb._0x12526a,_0x5bafbb._0x2f4983,_0x5bafbb._0x4289f9)],'strict':_0x13b5ab['outputFormat'][_0x4a5fd1(0x4f2,_0x5bafbb._0x4c4c49,0x4fc,0x4e5)]??!![]}}}:{}};}export{toOpenAiResponsesRequest};
@@ -1 +1 @@
1
- (function(_0x36bc03,_0x94f87b){var _0x4aeb92={_0x332438:0x4c4,_0x259e02:0x4bf,_0x4cf1dd:0x4bc,_0x1dcab3:0x6d,_0x59a50b:0x68,_0x215664:0x67,_0x17f177:0x77,_0x2b3fbc:0x79,_0x351f0c:0x79,_0x306ae9:0x76,_0x53b1b0:0x6f,_0x5f2c2a:0x6e,_0x493eb9:0x4c3,_0x3f402b:0x4c0,_0x6acf89:0x4be,_0x3650a8:0x4c5,_0x414a6e:0x4c2,_0x32824f:0x6e},_0x383f23={_0xd81213:0x1f7};function _0x55ccdb(_0x12f605,_0x3e2de8,_0x2eec39,_0x528196){return _0x2321(_0x3e2de8-0x33a,_0x528196);}var _0xe9d665=_0x36bc03();function _0x571448(_0x5c911c,_0xcfb4f5,_0x428f01,_0x331a4c){return _0x2321(_0x5c911c- -_0x383f23._0xd81213,_0xcfb4f5);}while(!![]){try{var _0x4c42b6=parseInt(_0x55ccdb(_0x4aeb92._0x332438,_0x4aeb92._0x259e02,0x4c2,_0x4aeb92._0x4cf1dd))/0x1*(parseInt(_0x571448(-_0x4aeb92._0x1dcab3,-_0x4aeb92._0x59a50b,-0x6f,-_0x4aeb92._0x215664))/0x2)+-parseInt(_0x571448(-_0x4aeb92._0x17f177,-_0x4aeb92._0x2b3fbc,-0x7e,-0x71))/0x3+-parseInt(_0x571448(-_0x4aeb92._0x351f0c,-0x75,-0x78,-_0x4aeb92._0x306ae9))/0x4+parseInt(_0x571448(-0x76,-_0x4aeb92._0x17f177,-0x70,-0x73))/0x5*(-parseInt(_0x571448(-_0x4aeb92._0x53b1b0,-0x75,-0x73,-_0x4aeb92._0x5f2c2a))/0x6)+parseInt(_0x55ccdb(_0x4aeb92._0x493eb9,_0x4aeb92._0x3f402b,0x4b9,0x4bb))/0x7+-parseInt(_0x55ccdb(0x4bc,_0x4aeb92._0x6acf89,_0x4aeb92._0x3650a8,_0x4aeb92._0x414a6e))/0x8+parseInt(_0x571448(-0x6c,-0x6e,-_0x4aeb92._0x59a50b,-_0x4aeb92._0x32824f))/0x9;if(_0x4c42b6===_0x94f87b)break;else _0xe9d665['push'](_0xe9d665['shift']());}catch(_0x33102d){_0xe9d665['push'](_0xe9d665['shift']());}}}(_0xe572,0x6def1));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0x4ba842){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x4ba842];}function resolveAnthropicThinkingConfig(_0x388733){var _0x510ab9={_0x4cdf4d:0x483,_0xa8a92a:0x485,_0xadba78:0x484,_0x2008e8:0x484,_0x19b5e6:0x489,_0x4f4c3a:0x5e,_0x2a2683:0x5c,_0x51b8b3:0x5d,_0x2407c9:0x64};if(!_0x388733)return void 0x0;function _0x427224(_0x2c020a,_0x5ed59e,_0x424695,_0x50df59){return _0x2321(_0x424695-0x301,_0x5ed59e);}if(_0x388733[_0x427224(_0x510ab9._0x4cdf4d,0x486,0x48a,_0x510ab9._0xa8a92a)])return structuredClone(_0x388733['anthropic']);if(!_0x388733[_0x427224(_0x510ab9._0xadba78,0x48a,_0x510ab9._0x2008e8,_0x510ab9._0x19b5e6)])return void 0x0;function _0x4b072c(_0x57d938,_0x472d24,_0x505bc0,_0x3062b7){return _0x2321(_0x3062b7- -0x11f,_0x57d938);}return{'type':_0x4b072c(_0x510ab9._0x4f4c3a,_0x510ab9._0x2a2683,_0x510ab9._0x51b8b3,0x60),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x388733[_0x4b072c(0x5f,0x66,0x61,_0x510ab9._0x2407c9)]['effort'])};}function resolveOpenAiReasoningConfig(_0x29eeb9){var _0xd14eb1={_0x3161e5:0x389,_0x4018b8:0x38b,_0x19255:0x387,_0x351547:0x385,_0x1591f0:0x386},_0xadb37={_0x3286aa:0x204},_0x4e1aba={_0x375e47:0x302};if(!_0x29eeb9)return void 0x0;const _0x539c8b=_0x29eeb9['auto']?{'effort':_0x29eeb9[_0x4bb0a9(0x38a,_0xd14eb1._0x3161e5,0x387,_0xd14eb1._0x4018b8)][_0x4bb0a9(_0xd14eb1._0x19255,0x392,0x38b,_0xd14eb1._0x351547)]}:void 0x0;if(!_0x29eeb9[_0x4bb0a9(0x388,0x389,_0xd14eb1._0x1591f0,_0xd14eb1._0x4018b8)])return _0x539c8b;function _0x448be8(_0x1585c5,_0x183c4a,_0x419f2d,_0x166a92){return _0x2321(_0x1585c5- -_0x4e1aba._0x375e47,_0x166a92);}function _0x4bb0a9(_0x1a4d7a,_0x349cd7,_0x210484,_0x2a363f){return _0x2321(_0x210484-_0xadb37._0x3286aa,_0x1a4d7a);}return{..._0x539c8b??{},...structuredClone(_0x29eeb9['openai'])};}function _0xe572(){var _0x506db8=['ntnXAMPtu2i','ntG3ntKYnK1HyxfNwG','zwzMB3j0','mJi4nKrQEuXwAq','yw50AhjVCgLJ','mZa2mZH4CNHizxm','ota0nZa3uMLUr2LP','mtqXndaYmfzoCxPfBG','zw5HyMXLza','mte5odaZofPYu1jeyq','nda0nvPezwvrAa','B3bLBMfP','yxv0BW','mtKYmZGZmM16zuz6sG'];_0xe572=function(){return _0x506db8;};return _0xe572();}function _0x2321(_0x29cbe6,_0x1dea96){_0x29cbe6=_0x29cbe6-0x17e;var _0xe572d8=_0xe572();var _0x232187=_0xe572d8[_0x29cbe6];if(_0x2321['YYMrtY']===undefined){var _0x3a2b15=function(_0x3ba61b){var _0x50f0ac='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x4ba842='',_0x388733='';for(var _0x29eeb9=0x0,_0x539c8b,_0x251fae,_0x5aac45=0x0;_0x251fae=_0x3ba61b['charAt'](_0x5aac45++);~_0x251fae&&(_0x539c8b=_0x29eeb9%0x4?_0x539c8b*0x40+_0x251fae:_0x251fae,_0x29eeb9++%0x4)?_0x4ba842+=String['fromCharCode'](0xff&_0x539c8b>>(-0x2*_0x29eeb9&0x6)):0x0){_0x251fae=_0x50f0ac['indexOf'](_0x251fae);}for(var _0x1a8bcb=0x0,_0x1cf919=_0x4ba842['length'];_0x1a8bcb<_0x1cf919;_0x1a8bcb++){_0x388733+='%'+('00'+_0x4ba842['charCodeAt'](_0x1a8bcb)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x388733);};_0x2321['ECNeXo']=_0x3a2b15,_0x2321['nTMtQS']={},_0x2321['YYMrtY']=!![];}var _0x209d59=_0xe572d8[0x0],_0xae69d9=_0x29cbe6+_0x209d59,_0x486907=_0x2321['nTMtQS'][_0xae69d9];return!_0x486907?(_0x232187=_0x2321['ECNeXo'](_0x232187),_0x2321['nTMtQS'][_0xae69d9]=_0x232187):_0x232187=_0x486907,_0x232187;}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
1
+ function _0x1026(){var _0x16d0e6=['zw5HyMXLza','zwzMB3j0','mZmXndK4mhbKtufXDG','B3bLBMfP','mJmYCKT3AMjb','mJG4mtG5mgrbvNDitW','otmZnJeZDML0zxre','nZK3oe9jBvH5Ca','mJrnsLrcC0G','otCZmZiWu3fZvLD6','mtG2odbSr3rVu2e','mtmWnti5A0DuEMXW','otnxBxLsC0e','mteWn1nUAMPkCa','yw50AhjVCgLJ','yxv0BW'];_0x1026=function(){return _0x16d0e6;};return _0x1026();}(function(_0x2ad581,_0x45b7de){var _0x35c932={_0xfc2680:0x25a,_0x783e1e:0x25a,_0x4bf5d8:0x2c6,_0x42cbb7:0x2d3,_0x57c44a:0x2d6,_0x4307bf:0x24e,_0x3d3908:0x255,_0x1f80d4:0x257,_0x2ec410:0x25d,_0x44a750:0x2c8,_0x5216cb:0x25e,_0x1927b8:0x265,_0x3eb584:0x2cf,_0x4c7dd:0x2d2},_0xd67eef={_0x3a5f41:0x23a},_0x25ee97={_0x531c1e:0x1c7};function _0x20b8c2(_0x21486e,_0x410a61,_0x5d6597,_0x1dedce){return _0x4477(_0x410a61-_0x25ee97._0x531c1e,_0x5d6597);}var _0x4f1ed4=_0x2ad581();function _0x2a0632(_0x3c7511,_0x3696fb,_0x394c77,_0x542b35){return _0x4477(_0x3c7511-_0xd67eef._0x3a5f41,_0x542b35);}while(!![]){try{var _0xac50c5=-parseInt(_0x20b8c2(0x25f,_0x35c932._0xfc2680,0x255,_0x35c932._0x783e1e))/0x1+-parseInt(_0x2a0632(0x2ce,0x2cf,_0x35c932._0x4bf5d8,0x2cc))/0x2*(parseInt(_0x2a0632(_0x35c932._0x42cbb7,0x2d4,_0x35c932._0x57c44a,0x2ce))/0x3)+parseInt(_0x20b8c2(0x256,0x256,_0x35c932._0x4307bf,0x252))/0x4+-parseInt(_0x2a0632(0x2d0,0x2cf,_0x35c932._0x42cbb7,0x2ca))/0x5*(-parseInt(_0x20b8c2(0x257,0x25c,_0x35c932._0x3d3908,_0x35c932._0x1f80d4))/0x6)+parseInt(_0x20b8c2(_0x35c932._0x2ec410,0x25f,0x261,0x25c))/0x7*(-parseInt(_0x2a0632(0x2cb,0x2d0,_0x35c932._0x44a750,0x2d3))/0x8)+-parseInt(_0x20b8c2(_0x35c932._0x5216cb,0x261,_0x35c932._0x1927b8,0x261))/0x9*(-parseInt(_0x2a0632(0x2d1,_0x35c932._0x42cbb7,_0x35c932._0x3eb584,0x2d3))/0xa)+parseInt(_0x2a0632(0x2cc,0x2d0,_0x35c932._0x4c7dd,0x2cc))/0xb;if(_0xac50c5===_0x45b7de)break;else _0x4f1ed4['push'](_0x4f1ed4['shift']());}catch(_0x1e1745){_0x4f1ed4['push'](_0x4f1ed4['shift']());}}}(_0x1026,0x7a580));var ANTHROPIC_AUTO_BUDGET_TOKENS={'low':0x400,'medium':0x800,'high':0x1000};function mapAutoReasoningEffortToBudgetTokens(_0x2517a6){return ANTHROPIC_AUTO_BUDGET_TOKENS[_0x2517a6];}function _0x4477(_0x3fbe8b,_0x5a5cb1){_0x3fbe8b=_0x3fbe8b-0x8e;var _0x102617=_0x1026();var _0x447735=_0x102617[_0x3fbe8b];if(_0x4477['etbAUj']===undefined){var _0x2409b8=function(_0x43486b){var _0x2b4fbe='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2517a6='',_0x33813d='';for(var _0x1dfe7a=0x0,_0x28f5aa,_0x2a826e,_0x34639f=0x0;_0x2a826e=_0x43486b['charAt'](_0x34639f++);~_0x2a826e&&(_0x28f5aa=_0x1dfe7a%0x4?_0x28f5aa*0x40+_0x2a826e:_0x2a826e,_0x1dfe7a++%0x4)?_0x2517a6+=String['fromCharCode'](0xff&_0x28f5aa>>(-0x2*_0x1dfe7a&0x6)):0x0){_0x2a826e=_0x2b4fbe['indexOf'](_0x2a826e);}for(var _0x29ce44=0x0,_0x571d23=_0x2517a6['length'];_0x29ce44<_0x571d23;_0x29ce44++){_0x33813d+='%'+('00'+_0x2517a6['charCodeAt'](_0x29ce44)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x33813d);};_0x4477['GkvkcG']=_0x2409b8,_0x4477['SWxtqC']={},_0x4477['etbAUj']=!![];}var _0x2e65bd=_0x102617[0x0],_0x1c5c6b=_0x3fbe8b+_0x2e65bd,_0x26a1b6=_0x4477['SWxtqC'][_0x1c5c6b];return!_0x26a1b6?(_0x447735=_0x4477['GkvkcG'](_0x447735),_0x4477['SWxtqC'][_0x1c5c6b]=_0x447735):_0x447735=_0x26a1b6,_0x447735;}function resolveAnthropicThinkingConfig(_0x33813d){var _0x6fda48={_0x5ddefb:0x300,_0x410735:0x30,_0x1a3e9c:0x30,_0x1dab07:0x2e,_0x28559d:0x35},_0x311488={_0x6142dd:0xcf};if(!_0x33813d)return void 0x0;if(_0x33813d[_0x58798d(0x2fd,0x2fb,0x2f3,_0x6fda48._0x5ddefb)])return structuredClone(_0x33813d[_0x58798d(0x2fd,0x2fb,0x2fa,0x2f3)]);function _0x468848(_0x4fd030,_0x52d7b6,_0x1fd000,_0x18a1c4){return _0x4477(_0x18a1c4- -_0x311488._0x6142dd,_0x1fd000);}if(!_0x33813d[_0x468848(-0x2d,-0x34,-0x30,-0x33)])return void 0x0;function _0x58798d(_0xea1e98,_0x38a836,_0x9ed36c,_0x493880){return _0x4477(_0x38a836-0x260,_0x9ed36c);}return{'type':_0x468848(-_0x6fda48._0x410735,-_0x6fda48._0x1a3e9c,-_0x6fda48._0x1dab07,-0x32),'budgetTokens':mapAutoReasoningEffortToBudgetTokens(_0x33813d[_0x468848(-_0x6fda48._0x28559d,-0x39,-0x37,-0x33)]['effort'])};}function resolveOpenAiReasoningConfig(_0x1dfe7a){var _0x4ae6f8={_0x2f2746:0x2f6,_0x151d23:0x2ee,_0x3a1a39:0x2fb,_0x3fafc6:0x2f7,_0xf75cd3:0x296,_0x31ae3a:0x292,_0x3f0333:0x2e7,_0x5374e9:0x2e8},_0x49ad1a={_0x35c64f:0x204};if(!_0x1dfe7a)return void 0x0;function _0x38a31a(_0x1d4349,_0x54e7f2,_0x31bd73,_0x314b37){return _0x4477(_0x31bd73-_0x49ad1a._0x35c64f,_0x54e7f2);}const _0x28f5aa=_0x1dfe7a[_0x52c4ea(0x2f0,_0x4ae6f8._0x2f2746,0x2f3,0x2fa)]?{'effort':_0x1dfe7a[_0x52c4ea(_0x4ae6f8._0x151d23,_0x4ae6f8._0x3a1a39,0x2f3,_0x4ae6f8._0x3fafc6)][_0x38a31a(0x29a,_0x4ae6f8._0xf75cd3,_0x4ae6f8._0x31ae3a,0x290)]}:void 0x0;function _0x52c4ea(_0x3d1e3f,_0x4c4a7c,_0x487bc5,_0x410f0e){return _0x4477(_0x487bc5-0x257,_0x4c4a7c);}if(!_0x1dfe7a['openai'])return _0x28f5aa;return{..._0x28f5aa??{},...structuredClone(_0x1dfe7a[_0x52c4ea(_0x4ae6f8._0x3f0333,0x2ef,0x2e7,_0x4ae6f8._0x5374e9)])};}export{mapAutoReasoningEffortToBudgetTokens,resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig};
@@ -1 +1 @@
1
- (function(_0x3eb3a4,_0x138b71){const _0x69fe33={_0x401f60:0x5d7,_0x53d7e1:0x5b8,_0x3e826f:0x5a9,_0x43dcd3:0x5c1,_0x5193e7:0x5ba,_0x5aa82a:0x5ab,_0x2a776a:0x5aa,_0x1831eb:0x593,_0x13c0f4:0x14e,_0x16faa9:0x145,_0x18786e:0x148,_0x54f446:0x5a4,_0x1a9268:0x5b0,_0x50c059:0x5be,_0x3ab79e:0x5bd,_0x3e73c0:0x5b0,_0x57f1ce:0x13d,_0x320864:0x13a,_0x53f78c:0x570,_0x479297:0x56f,_0x10aacf:0x57e,_0x7a1dc6:0x159},_0x25f9ed=_0x3eb3a4();function _0x52dfe0(_0x334819,_0xae7fed,_0xd9eac4,_0x14124d){return _0x509d(_0x334819- -0x339,_0xd9eac4);}function _0x5807f7(_0x468c8f,_0x1bab5a,_0x19c118,_0x408272){return _0x509d(_0x408272-0x3aa,_0x1bab5a);}while(!![]){try{const _0x44a626=-parseInt(_0x5807f7(_0x69fe33._0x401f60,0x5c2,0x5a7,_0x69fe33._0x53d7e1))/0x1*(-parseInt(_0x5807f7(0x5ad,0x598,0x5a1,0x5a9))/0x2)+-parseInt(_0x5807f7(0x5c4,0x5bb,_0x69fe33._0x3e826f,_0x69fe33._0x43dcd3))/0x3+parseInt(_0x5807f7(_0x69fe33._0x5193e7,0x5bb,_0x69fe33._0x5aa82a,0x5ae))/0x4+parseInt(_0x5807f7(_0x69fe33._0x2a776a,_0x69fe33._0x1831eb,0x586,0x59f))/0x5+-parseInt(_0x52dfe0(-0x146,-_0x69fe33._0x13c0f4,-_0x69fe33._0x16faa9,-_0x69fe33._0x18786e))/0x6*(parseInt(_0x5807f7(_0x69fe33._0x54f446,_0x69fe33._0x1a9268,0x5b0,0x5ad))/0x7)+parseInt(_0x5807f7(_0x69fe33._0x50c059,_0x69fe33._0x53d7e1,_0x69fe33._0x3ab79e,_0x69fe33._0x3e73c0))/0x8*(-parseInt(_0x52dfe0(-_0x69fe33._0x57f1ce,-_0x69fe33._0x320864,-0x12a,-0x150))/0x9)+parseInt(_0x5807f7(_0x69fe33._0x53f78c,_0x69fe33._0x479297,_0x69fe33._0x10aacf,0x586))/0xa*(parseInt(_0x52dfe0(-_0x69fe33._0x7a1dc6,-0x164,-0x13a,-0x14f))/0xb);if(_0x44a626===_0x138b71)break;else _0x25f9ed['push'](_0x25f9ed['shift']());}catch(_0x42e36c){_0x25f9ed['push'](_0x25f9ed['shift']());}}}(_0x3c10,0x443f1));function createTextBlock(_0x309a6e){const _0x4b227f={_0x3f56ad:0x1e6,_0x4ac3d0:0x1ef};function _0x2c0680(_0x52b35c,_0x301a70,_0x15f924,_0x2ae45e){return _0x509d(_0x52b35c- -0x32,_0x15f924);}return{'type':_0x2c0680(_0x4b227f._0x3f56ad,0x1ea,_0x4b227f._0x4ac3d0,0x1ea),'text':_0x309a6e};}function normalizeTextBlock(_0x38fc34){const _0x366266={_0x233706:0x3cb};function _0x4ca9fe(_0x5d2fca,_0x163117,_0x311dd8,_0x5c9c71){return _0x509d(_0x163117-0x199,_0x311dd8);}return createTextBlock(_0x38fc34[_0x4ca9fe(0x3bc,0x3b1,_0x366266._0x233706,0x3a7)]??'');}function normalizeContent(_0x47e7d7){const _0x3fd481={_0x52ed9b:0xd5,_0x3a52ff:0xc2,_0x3fc813:0xb0,_0x14769b:0x175,_0x113359:0x1aa,_0x3a81d5:0x19c},_0x5345b3={_0x3e7aed:0xaf,_0x343fb9:0x98,_0x3771e3:0xa9,_0x4f3d29:0x218},_0x602fe8={_0x45faf0:0x129},_0x47db9e={_0x3ef96a:0x37f};function _0x21b13c(_0xb83a5c,_0x471686,_0x53011c,_0x2fb419){return _0x509d(_0xb83a5c- -_0x47db9e._0x3ef96a,_0x2fb419);}function _0x2c33e3(_0x537d70,_0x20cbe3,_0x4096fa,_0x926762){return _0x509d(_0x4096fa- -0x139,_0x537d70);}if(typeof _0x47e7d7===_0x2c33e3(_0x3fd481._0x52ed9b,0xcd,_0x3fd481._0x3a52ff,_0x3fd481._0x3fc813))return[createTextBlock(_0x47e7d7)];if(!Array[_0x21b13c(-_0x3fd481._0x14769b,-0x15e,-0x171,-0x163)](_0x47e7d7))return[];return _0x47e7d7[_0x21b13c(-0x18f,-_0x3fd481._0x113359,-_0x3fd481._0x3a81d5,-0x177)](_0x298e9a=>{const _0x58b2f2={_0x4943ba:0x168,_0x1714bd:0xa2};function _0x1840ee(_0x182df4,_0x283b3a,_0x53a1e8,_0x356fa5){return _0x2c33e3(_0x53a1e8,_0x283b3a-0x1b4,_0x356fa5- -_0x58b2f2._0x4943ba,_0x356fa5-_0x58b2f2._0x1714bd);}function _0xb2103b(_0x5d7038,_0x382f83,_0x31dfa9,_0x3483ec){return _0x2c33e3(_0x382f83,_0x382f83-0x1a4,_0x5d7038-_0x602fe8._0x45faf0,_0x3483ec-0x1d7);}if(_0x298e9a[_0x1840ee(-_0x5345b3._0x3e7aed,-0xa1,-_0x5345b3._0x343fb9,-_0x5345b3._0x3771e3)]===_0xb2103b(0x208,0x1f8,_0x5345b3._0x4f3d29,0x20b))return normalizeTextBlock(_0x298e9a);return structuredClone(_0x298e9a);});}function normalizeSystem(_0x304351=[]){const _0x4136a7={_0x25498d:0x2ea};function _0x7fbd9d(_0x404706,_0x9f5cdc,_0x492f59,_0x2cc8f2){return _0x509d(_0x9f5cdc-0xe9,_0x2cc8f2);}function _0x2cc9f9(_0x99c9e3,_0x4df448,_0x2600f0,_0x3011ac){return _0x509d(_0x2600f0- -0x3c5,_0x4df448);}return normalizeContent(_0x304351)[_0x7fbd9d(0x2f6,_0x4136a7._0x25498d,0x302,0x2d3)](_0x1026e0=>_0x1026e0[_0x7fbd9d(0x2ef,0x2e1,0x2c4,0x2cb)]===_0x2cc9f9(-0x190,-0x1b6,-0x1ad,-0x193));}function _0x509d(_0x5d716d,_0x4e5428){_0x5d716d=_0x5d716d-0x1dc;const _0x3c1074=_0x3c10();let _0x509dd8=_0x3c1074[_0x5d716d];if(_0x509d['hPmJap']===undefined){var _0x1d05e6=function(_0x52fb61){const _0x2005b7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x309a6e='',_0x38fc34='';for(let _0x47e7d7=0x0,_0x298e9a,_0x304351,_0x1026e0=0x0;_0x304351=_0x52fb61['charAt'](_0x1026e0++);~_0x304351&&(_0x298e9a=_0x47e7d7%0x4?_0x298e9a*0x40+_0x304351:_0x304351,_0x47e7d7++%0x4)?_0x309a6e+=String['fromCharCode'](0xff&_0x298e9a>>(-0x2*_0x47e7d7&0x6)):0x0){_0x304351=_0x2005b7['indexOf'](_0x304351);}for(let _0x493a7a=0x0,_0x56df8c=_0x309a6e['length'];_0x493a7a<_0x56df8c;_0x493a7a++){_0x38fc34+='%'+('00'+_0x309a6e['charCodeAt'](_0x493a7a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x38fc34);};_0x509d['IIuzJV']=_0x1d05e6,_0x509d['MrWbOt']={},_0x509d['hPmJap']=!![];}const _0x39acb2=_0x3c1074[0x0],_0x51cca3=_0x5d716d+_0x39acb2,_0x40a1b8=_0x509d['MrWbOt'][_0x51cca3];return!_0x40a1b8?(_0x509dd8=_0x509d['IIuzJV'](_0x509dd8),_0x509d['MrWbOt'][_0x51cca3]=_0x509dd8):_0x509dd8=_0x40a1b8,_0x509dd8;}function normalizeMessage(_0x493a7a){const _0x47c334={_0x12f3a3:0x170,_0x5c23bb:0x177,_0x32f3b1:0x187,_0x59ade9:0x15c,_0x378380:0x185,_0x4928ce:0x186,_0x40d488:0x181,_0x287f21:0x16d},_0x5bfc0c={_0x5708b0:0x351};function _0x3ced5c(_0x4402a0,_0x24f452,_0x3dfc50,_0xa4f0ed){return _0x509d(_0x4402a0- -0x36b,_0xa4f0ed);}function _0x194eaf(_0x4bb349,_0x74c89a,_0x4dba98,_0x5df394){return _0x509d(_0x4bb349- -_0x5bfc0c._0x5708b0,_0x74c89a);}return{...typeof _0x493a7a['id']===_0x3ced5c(-_0x47c334._0x12f3a3,-_0x47c334._0x5c23bb,-0x163,-0x176)?{'id':_0x493a7a['id']}:{},'role':_0x493a7a[_0x3ced5c(-0x174,-_0x47c334._0x32f3b1,-0x172,-0x17c)],'content':normalizeContent(_0x493a7a[_0x3ced5c(-_0x47c334._0x59ade9,-0x151,-0x171,-0x149)]),..._0x493a7a[_0x3ced5c(-0x186,-0x197,-0x167,-_0x47c334._0x378380)]?{'providerState':structuredClone(_0x493a7a[_0x3ced5c(-_0x47c334._0x4928ce,-_0x47c334._0x40d488,-_0x47c334._0x287f21,-0x18d)])}:{}};}function compileRequest(_0x56df8c){const _0x4783a0={_0x219f4f:0x19c,_0x25c934:0x1a7,_0x3dc669:0x169,_0x488f82:0x165,_0x598525:0x133,_0x43d624:0x1a5,_0x508cb0:0x1d0,_0x107102:0x1b7,_0x4988b0:0x18a,_0x57d087:0x19e,_0x36adda:0x1a9,_0x1579a0:0x132,_0x32979b:0x188,_0x21fbda:0x171,_0x345902:0x186,_0x515e8b:0x165,_0x1ddbec:0x140,_0x4ab337:0x13a};function _0x2b8ad9(_0xdc4b69,_0xdbe9a8,_0xbb9c93,_0x28f7e8){return _0x509d(_0x28f7e8- -0x39e,_0xbb9c93);}function _0x209aeb(_0x4ee5a3,_0x38301a,_0xa16ea0,_0x14f1dc){return _0x509d(_0x4ee5a3- -0x9f,_0xa16ea0);}return{'model':_0x56df8c[_0x2b8ad9(-_0x4783a0._0x219f4f,-0x1be,-_0x4783a0._0x25c934,-0x1b2)]??_0x209aeb(_0x4783a0._0x3dc669,_0x4783a0._0x488f82,0x186,0x151),'max_tokens':_0x56df8c[_0x209aeb(0x14b,0x14b,_0x4783a0._0x598525,0x15b)]??0x400,..._0x56df8c['reasoning']?{'reasoning':structuredClone(_0x56df8c[_0x2b8ad9(-0x1ab,-0x189,-0x1b3,-_0x4783a0._0x43d624)])}:{},'system':normalizeSystem(_0x56df8c[_0x2b8ad9(-0x1b1,-_0x4783a0._0x508cb0,-0x1bc,-_0x4783a0._0x107102)]),'messages':_0x56df8c[_0x2b8ad9(-_0x4783a0._0x4988b0,-_0x4783a0._0x57d087,-_0x4783a0._0x36adda,-0x18c)][_0x209aeb(0x151,0x15a,0x166,_0x4783a0._0x1579a0)](normalizeMessage),'tools':structuredClone(_0x56df8c[_0x2b8ad9(-0x18a,-0x192,-0x19f,-_0x4783a0._0x32979b)]??[]),'metadata':{'session_id':_0x56df8c[_0x209aeb(0x175,_0x4783a0._0x21fbda,_0x4783a0._0x345902,_0x4783a0._0x515e8b)],'turn_id':_0x56df8c[_0x209aeb(_0x4783a0._0x1ddbec,_0x4783a0._0x4ab337,0x124,0x132)]}};}function toChatRequest(_0x4ad75d){const _0x4e2675={_0x570620:0x5cd,_0x5fb9:0xae,_0x26f4c9:0x91,_0x9f1ddb:0x5d7,_0x157cf4:0x5e5,_0x2f77dd:0x5ee,_0xfc11ac:0xb1,_0x56157a:0xa9},_0x54a09e={_0x37f9e5:0x168},_0x41cfff={_0x3c4bc8:0x3dc};function _0x21b65c(_0x36b2b2,_0x3505e1,_0x1f84a9,_0x58c283){return _0x509d(_0x58c283-_0x41cfff._0x3c4bc8,_0x3505e1);}function _0x2c932c(_0x1c6c67,_0x558477,_0x3b3dbe,_0x510c09){return _0x509d(_0x510c09- -_0x54a09e._0x37f9e5,_0x1c6c67);}return{'model':_0x4ad75d['model'],'maxTokens':_0x4ad75d[_0x21b65c(_0x4e2675._0x570620,0x5ca,0x5ac,0x5c6)],..._0x4ad75d['reasoning']?{'reasoning':structuredClone(_0x4ad75d[_0x2c932c(0xa3,_0x4e2675._0x5fb9,0x8b,_0x4e2675._0x26f4c9)])}:{},'system':structuredClone(_0x4ad75d['system']),'messages':structuredClone(_0x4ad75d[_0x21b65c(_0x4e2675._0x9f1ddb,0x604,_0x4e2675._0x157cf4,_0x4e2675._0x2f77dd)]),'tools':structuredClone(_0x4ad75d['tools']),'metadata':{'sessionId':_0x4ad75d[_0x2c932c(0xbb,0x98,0xb3,0xa9)]['session_id'],'turnId':_0x4ad75d[_0x2c932c(0x93,_0x4e2675._0xfc11ac,0xaf,_0x4e2675._0x56157a)]['turn_id']},..._0x4ad75d['outputFormat']?{'outputFormat':structuredClone(_0x4ad75d['outputFormat'])}:{}};}function toModelRequest(_0x520094){const _0x3e78b8={_0x5606dc:0x7f,_0x227aed:0x65,_0x236f93:0x2f1,_0x1d193d:0x2c0,_0x41d6f0:0x2d0,_0x3a4515:0xa3,_0x2e8ac9:0x9d,_0x26090a:0x82,_0x15a632:0x2ec,_0x58c1e8:0x30b,_0x7ac5a0:0x2e2,_0x412efc:0x308,_0x2841a9:0x2e4,_0x5db6bd:0x2e5};function _0xcf0ab1(_0x584af2,_0x21a1ac,_0x3b5e5b,_0xe7cd87){return _0x509d(_0x584af2-0xdb,_0xe7cd87);}function _0x17ba70(_0x125761,_0x1895bb,_0x4c3645,_0xfb60e4){return _0x509d(_0xfb60e4- -0x296,_0x4c3645);}return{'model':_0x520094['model'],'max_tokens':_0x520094[_0x17ba70(-_0x3e78b8._0x5606dc,-0x6a,-_0x3e78b8._0x227aed,-0x81)],..._0x520094[_0xcf0ab1(0x2d4,0x2f3,_0x3e78b8._0x236f93,0x2f3)]?{'reasoning':structuredClone(_0x520094[_0xcf0ab1(0x2d4,0x2df,_0x3e78b8._0x1d193d,_0x3e78b8._0x41d6f0)])}:{},'system':structuredClone(_0x520094[_0x17ba70(-_0x3e78b8._0x3a4515,-0xa3,-0xab,-0xaf)]),'messages':structuredClone(_0x520094[_0x17ba70(-_0x3e78b8._0x2e8ac9,-0x7c,-_0x3e78b8._0x26090a,-0x84)]),'tools':structuredClone(_0x520094[_0xcf0ab1(_0x3e78b8._0x236f93,0x2e8,0x2d9,0x2da)]),'metadata':{'session_id':_0x520094['metadata'][_0xcf0ab1(0x2ef,0x2df,0x2f4,0x301)],'turn_id':_0x520094[_0xcf0ab1(_0x3e78b8._0x15a632,_0x3e78b8._0x58c1e8,_0x3e78b8._0x7ac5a0,_0x3e78b8._0x412efc)]['turnId']},..._0x520094[_0xcf0ab1(0x2e2,0x2e8,_0x3e78b8._0x2841a9,_0x3e78b8._0x5db6bd)]?{'outputFormat':structuredClone(_0x520094['outputFormat'])}:{}};}function toProviderModelRequest(_0x2723bb){const _0x5949c3={_0x1cdd74:0x4aa,_0x54a77c:0x4ca,_0x1ea616:0x4bf},_0x585ccd={_0x1e8c9d:0x5b};function _0x32cbe9(_0x20bff0,_0x38e676,_0x15331e,_0x45c270){return _0x509d(_0x45c270-_0x585ccd._0x1e8c9d,_0x20bff0);}function _0x3afbc2(_0x254ad0,_0x23050e,_0x583893,_0x488b42){return _0x509d(_0x583893-0x2ad,_0x254ad0);}return{'model':_0x2723bb[_0x3afbc2(_0x5949c3._0x1cdd74,0x49c,0x499,0x4a5)],'max_tokens':_0x2723bb['maxTokens'],'system':structuredClone(_0x2723bb['system']),'messages':structuredClone(_0x2723bb[_0x3afbc2(_0x5949c3._0x54a77c,0x4c0,_0x5949c3._0x1ea616,0x4be)]),'tools':structuredClone(_0x2723bb[_0x32cbe9(0x288,0x267,0x274,0x271)])};}function toChatResponse(_0x474dae){const _0xb6ce33={_0x826d6d:0x9a,_0x1ae876:0x8d,_0x305d63:0xa7,_0x3e2cd3:0x7f,_0x56c2df:0x75,_0x4e8e11:0x51,_0x14f054:0x5b,_0x2bd99b:0x74,_0x467f1a:0x61,_0x2b0842:0x45,_0x20524f:0x3e,_0x3f4128:0x39,_0x43ac95:0x58,_0x2aadd9:0x5f,_0x4c94da:0x7a,_0xd27b2c:0x7e,_0x6c09ea:0x6d,_0x6aa020:0x63},_0x537e37={_0x4fe751:0x24e};function _0x3c5994(_0x362da7,_0x4c26dd,_0x4eb759,_0x4e79dc){return _0x509d(_0x4eb759- -0x182,_0x4c26dd);}function _0x3e54f5(_0x2d5c65,_0x442af1,_0x527a97,_0x2a58c4){return _0x509d(_0x442af1- -_0x537e37._0x4fe751,_0x2d5c65);}return{'id':_0x474dae['id'],'content':structuredClone(_0x474dae[_0x3c5994(0x95,_0xb6ce33._0x826d6d,_0xb6ce33._0x1ae876,_0xb6ce33._0x305d63)]),'stopReason':_0x474dae[_0x3c5994(0x96,_0xb6ce33._0x3e2cd3,0x89,_0xb6ce33._0x56c2df)],'usage':{'inputTokens':_0x474dae[_0x3c5994(0x72,_0xb6ce33._0x3e2cd3,0x6b,0x62)][_0x3c5994(_0xb6ce33._0x4e8e11,0x65,_0xb6ce33._0x14f054,0x3d)],'outputTokens':_0x474dae['usage']['output_tokens'],..._0x474dae[_0x3e54f5(-_0xb6ce33._0x2bd99b,-_0xb6ce33._0x467f1a,-0x53,-0x73)][_0x3e54f5(-_0xb6ce33._0x2b0842,-_0xb6ce33._0x20524f,-0x30,-_0xb6ce33._0x3f4128)]!==void 0x0?{'reasoningTokens':_0x474dae[_0x3e54f5(-_0xb6ce33._0x43ac95,-0x61,-_0xb6ce33._0x2aadd9,-_0xb6ce33._0x43ac95)][_0x3c5994(_0xb6ce33._0x4c94da,_0xb6ce33._0xd27b2c,0x8e,0x7f)]}:{}},..._0x474dae[_0x3c5994(_0xb6ce33._0x3e2cd3,_0xb6ce33._0x6c09ea,_0xb6ce33._0x6aa020,0x80)]?{'providerState':structuredClone(_0x474dae['providerState'])}:{}};}function toModelResponse(_0x1947a0){const _0x2a24ba={_0x4475a0:0xb6,_0x4c83ee:0x1d4,_0x4a0b54:0x1e9,_0x562405:0x204,_0x308c15:0x96,_0x14bdee:0x95,_0x176065:0x89,_0x461db4:0x6d,_0x2388b5:0x1d0,_0x529fa1:0x1e0,_0x539e47:0x1fa,_0x211a62:0x1da,_0x7163dc:0x1e5,_0x4f8e37:0xa9,_0x319f42:0xa0,_0x3d82e3:0xa5,_0x1c2cdd:0xa4,_0x5820b0:0xac},_0x1ff534={_0x35037e:0x298};function _0x3292c2(_0x5aacc2,_0x2f5166,_0x33aaef,_0x52a12f){return _0x509d(_0x33aaef- -_0x1ff534._0x35037e,_0x52a12f);}function _0x51a2a3(_0x14334f,_0x5f2caa,_0x3dc078,_0x20f8ff){return _0x509d(_0x3dc078- -0x3cd,_0x5f2caa);}return{'id':_0x1947a0['id'],'type':_0x3292c2(-0x9d,-0xb7,-_0x2a24ba._0x4475a0,-0xb5),'role':_0x51a2a3(-_0x2a24ba._0x4c83ee,-0x1f6,-_0x2a24ba._0x4a0b54,-_0x2a24ba._0x562405),'content':structuredClone(_0x1947a0[_0x3292c2(-_0x2a24ba._0x308c15,-_0x2a24ba._0x14bdee,-_0x2a24ba._0x176065,-_0x2a24ba._0x461db4)]),'stop_reason':_0x1947a0['stopReason'],'stop_sequence':null,'usage':{'input_tokens':_0x1947a0['usage'][_0x51a2a3(-0x1c3,-0x1f4,-0x1db,-0x1bd)],'output_tokens':_0x1947a0[_0x51a2a3(-0x1e0,-_0x2a24ba._0x2388b5,-_0x2a24ba._0x529fa1,-0x1db)][_0x51a2a3(-_0x2a24ba._0x2388b5,-0x1dd,-0x1ec,-0x1ff)],..._0x1947a0[_0x51a2a3(-0x1ce,-_0x2a24ba._0x539e47,-_0x2a24ba._0x529fa1,-0x1e1)]['reasoningTokens']!==void 0x0?{'reasoning_tokens':_0x1947a0['usage'][_0x51a2a3(-0x1be,-_0x2a24ba._0x211a62,-0x1d9,-_0x2a24ba._0x7163dc)]}:{}},..._0x1947a0[_0x3292c2(-0xac,-_0x2a24ba._0x4f8e37,-0xb3,-_0x2a24ba._0x319f42)]?{'providerState':structuredClone(_0x1947a0[_0x3292c2(-_0x2a24ba._0x3d82e3,-_0x2a24ba._0x1c2cdd,-0xb3,-_0x2a24ba._0x5820b0)])}:{}};}function responseToAssistantMessage(_0x142748){const _0x4244ea={_0xbf926b:0x47,_0x3a2e73:0x3c,_0x1de014:0x24,_0x2f45f5:0x34,_0x5e07ad:0x3ed,_0x1f7944:0x3ee,_0x5a5012:0x404,_0x17f4b6:0x3d,_0x1db9aa:0x25,_0x3f4ca8:0x5a,_0x43f3f9:0x3d,_0x345994:0x48,_0x2e537e:0x43},_0x488aef={_0x382895:0x1fa};function _0x567e04(_0x5a81f6,_0x2fd871,_0x27b290,_0x269f05){return _0x509d(_0x2fd871- -0x1a8,_0x27b290);}function _0x89d447(_0x4e08be,_0x2368b0,_0x58e08d,_0x5da4cb){return _0x509d(_0x2368b0-_0x488aef._0x382895,_0x5da4cb);}return{'role':_0x567e04(_0x4244ea._0xbf926b,_0x4244ea._0x3a2e73,_0x4244ea._0x1de014,_0x4244ea._0x2f45f5),'content':normalizeContent(_0x142748[_0x89d447(_0x4244ea._0x5e07ad,0x409,_0x4244ea._0x1f7944,_0x4244ea._0x5a5012)]),..._0x142748[_0x567e04(0x3c,_0x4244ea._0x17f4b6,_0x4244ea._0x1db9aa,0x39)]?{'providerState':structuredClone(_0x142748[_0x567e04(_0x4244ea._0x3f4ca8,_0x4244ea._0x43f3f9,_0x4244ea._0x345994,_0x4244ea._0x2e537e)])}:{}};}function createReasoningMessage(_0x1a118a){const _0x362167={_0x2f8556:0x428,_0x3c0bc0:0x40f,_0x416fd1:0x4f0,_0x47cadd:0x4ea,_0x412333:0x505},_0x3ef351={_0x3e4f2e:0x306},_0x323f7a={_0x28e3f4:0x204},_0xff6ba2={_0xbbead2:0x34c,_0x2d4a08:0x368,_0x14fded:0x365,_0x44314b:0x362,_0x5e5566:0x361,_0x4c43bb:0x54f,_0x39723c:0x376,_0x43b171:0x367},_0x244124={_0xb9df00:0xed},_0x2f90b0=normalizeContent(_0x1a118a?.[_0x3dbec8(_0x362167._0x2f8556,0x413,_0x362167._0x3c0bc0,0x42c)])[_0xce4b21(0x4ef,0x507,_0x362167._0x416fd1,0x4fa)](_0x3c2686=>{const _0x4fcff3={_0x154e03:0x100,_0x3bedb6:0x55,_0x349d68:0x58};function _0x10130a(_0x59c8d8,_0x45fce5,_0x367588,_0xc1d5c5){return _0xce4b21(_0x59c8d8-_0x244124._0xb9df00,_0xc1d5c5- -0x19d,_0x59c8d8,_0xc1d5c5-0x70);}function _0x5094f8(_0x3fe366,_0x41ae57,_0x3331ff,_0x28e36d){return _0xce4b21(_0x3fe366-_0x4fcff3._0x154e03,_0x3331ff-_0x4fcff3._0x3bedb6,_0x3fe366,_0x28e36d-_0x4fcff3._0x349d68);}return _0x3c2686[_0x10130a(_0xff6ba2._0xbbead2,0x366,_0xff6ba2._0x2d4a08,0x361)]===_0x10130a(0x34c,_0xff6ba2._0x14fded,0x348,0x357)||_0x3c2686[_0x10130a(_0xff6ba2._0x44314b,_0xff6ba2._0x14fded,_0xff6ba2._0x5e5566,_0xff6ba2._0x5e5566)]===_0x5094f8(_0xff6ba2._0x4c43bb,0x547,0x55b,0x575)||_0x3c2686[_0x10130a(_0xff6ba2._0x39723c,0x363,_0xff6ba2._0x43b171,0x361)]===_0x5094f8(0x573,0x54e,0x568,0x54b);});function _0x3dbec8(_0x404d21,_0xd4fbdc,_0x31f4fc,_0x140b63){return _0x509d(_0xd4fbdc-_0x323f7a._0x28e3f4,_0x31f4fc);}if(_0x2f90b0['length']===0x0)return void 0x0;function _0xce4b21(_0x416367,_0x564b65,_0x31d8c7,_0x50e9a6){return _0x509d(_0x564b65-_0x3ef351._0x3e4f2e,_0x31d8c7);}return{'role':_0xce4b21(0x4e3,_0x362167._0x47cadd,0x4db,_0x362167._0x412333),'content':_0x2f90b0};}function createAssistantTextMessage(_0x22eaef){const _0x95d8fe={_0x2df341:0x35,_0x2d47c1:0x177,_0x1e16be:0x18e,_0x55909f:0x163},_0x4b741d={_0x1a6185:0x6d},_0x1c0467={_0x164791:0x351,_0x55e9b9:0x31e,_0x14cb36:0x315,_0x282c4f:0x460,_0x80d16f:0x45c},_0x525495=normalizeContent(_0x22eaef?.[_0x5146de(-_0x95d8fe._0x2df341,-0x3b,-0x31,-0x1d)])['filter'](_0x55cf66=>{const _0x552501={_0x32eb64:0x1b0};function _0xab26e8(_0x4bb491,_0x137d6f,_0x2e2c7e,_0x167ebd){return _0x5146de(_0x2e2c7e,_0x137d6f-0x114,_0x2e2c7e-0xeb,_0x4bb491-0x367);}function _0x519f35(_0x5a9991,_0x8ce9c1,_0x1bfb0b,_0x43e497){return _0x5146de(_0x8ce9c1,_0x8ce9c1-0x1d8,_0x1bfb0b-_0x552501._0x32eb64,_0x5a9991-0x474);}return _0x55cf66[_0xab26e8(0x333,_0x1c0467._0x164791,_0x1c0467._0x55e9b9,_0x1c0467._0x14cb36)]===_0x519f35(_0x1c0467._0x282c4f,0x46b,0x450,_0x1c0467._0x80d16f);});function _0x15ba52(_0x58ef55,_0x19818d,_0x3d2d45,_0x147cb6){return _0x509d(_0x58ef55- -_0x4b741d._0x1a6185,_0x3d2d45);}function _0x5146de(_0x43c62b,_0x12ef8d,_0x8accb,_0x3089ea){return _0x509d(_0x3089ea- -0x22c,_0x43c62b);}if(_0x525495['length']===0x0)return void 0x0;return{'role':_0x15ba52(_0x95d8fe._0x2d47c1,_0x95d8fe._0x1e16be,_0x95d8fe._0x55909f,0x175),'content':_0x525495};}function createToolUseMessage(_0x8462b){const _0x22c520={_0x5bc8e2:0x1db,_0x16ab0b:0x1b,_0x157288:0x11},_0x2febfc={_0xa1d716:0x518,_0x9c8a32:0x531,_0x47c167:0x53f,_0x174864:0x538},_0x386ba8={_0x2748b6:0x354,_0x26cac9:0x19a,_0x12419d:0x65},_0xce3b7={_0x3a4664:0x194,_0x3322c8:0x11e},_0x1039d5={_0x32d3f1:0x34};function _0xf647ae(_0x553db5,_0xb9fd31,_0x8385d5,_0x457a27){return _0x509d(_0xb9fd31- -_0x1039d5._0x32d3f1,_0x553db5);}function _0x28c9aa(_0x3482e0,_0x1581be,_0x5d7e87,_0x2faff5){return _0x509d(_0x1581be- -0x238,_0x3482e0);}const _0x4a5b3a=normalizeContent(_0x8462b?.[_0xf647ae(0x1f8,_0x22c520._0x5bc8e2,0x1f6,0x1c0)])[_0x28c9aa(-_0x22c520._0x16ab0b,-0x37,-0x28,-0x27)](_0x5abb41=>{function _0xdcb1ab(_0x530935,_0x3382ee,_0x5d8bd4,_0x54211f){return _0xf647ae(_0x54211f,_0x3382ee-_0xce3b7._0x3a4664,_0x5d8bd4-_0xce3b7._0x3322c8,_0x54211f-0x71);}function _0xfdeecf(_0x57167d,_0x32101b,_0x22b0b3,_0x5cae8c){return _0xf647ae(_0x32101b,_0x57167d-_0x386ba8._0x2748b6,_0x22b0b3-_0x386ba8._0x26cac9,_0x5cae8c-_0x386ba8._0x12419d);}return _0x5abb41[_0xfdeecf(_0x2febfc._0xa1d716,0x533,0x51a,_0x2febfc._0x9c8a32)]===_0xfdeecf(0x529,0x534,_0x2febfc._0x47c167,_0x2febfc._0x174864);});if(_0x4a5b3a[_0x28c9aa(-0x14,-0x25,-_0x22c520._0x157288,-0x3b)]===0x0)return void 0x0;return{'role':'assistant','content':_0x4a5b3a};}function _0x23d55a(_0x2226d3,_0x2ecf5d,_0x15a004,_0x44edf8){const _0x4c21a5={_0x418b21:0xd3};return _0x509d(_0x15a004- -_0x4c21a5._0x418b21,_0x44edf8);}function getTextFromMessage(_0x143f68){const _0x4310ad={_0xdc4512:0x3be,_0x4fefcc:0x3b6,_0x24b94d:0x3b0,_0x1d9330:0x38f,_0x11cf19:0x3ac},_0xa3a1e={_0x404ed5:0x1af};function _0x35dca9(_0xc0796e,_0x334157,_0x28c150,_0x20d3ee){return _0x509d(_0x20d3ee- -0x391,_0x28c150);}function _0x126f7d(_0x168329,_0x193da,_0x369d4b,_0x31d094){return _0x509d(_0x369d4b-_0xa3a1e._0x404ed5,_0x168329);}return normalizeContent(_0x143f68?.[_0x126f7d(0x3cf,0x3bf,_0x4310ad._0xdc4512,0x3bf)])['filter'](_0x1d0898=>_0x1d0898['type']===_0x35dca9(-0x15c,-0x17f,-0x15e,-0x179))[_0x126f7d(_0x4310ad._0x4fefcc,_0x4310ad._0x24b94d,0x39f,_0x4310ad._0x1d9330)](_0x9e5dec=>_0x9e5dec['text'])[_0x126f7d(0x3c8,0x3a7,_0x4310ad._0x11cf19,0x39c)]('\x0a');}function getReasoningTextFromMessage(_0x1fd1ac){const _0x1ce7ad={_0x3e23a6:0x22e},_0x430b21={_0x2675d1:0xf5,_0x31c168:0xfe,_0x5e30ab:0x10d,_0x2f1c96:0x270,_0x1827d0:0x273,_0x4f0c1d:0x28d,_0x2095a5:0x288,_0x7bf2c5:0x104,_0x5412e9:0x102,_0x4ed33a:0xe8,_0x300bcf:0x278,_0xfdd0f1:0x262,_0x2e4330:0x280,_0x42177a:0x263,_0x3e1062:0x260,_0x99db08:0x26f,_0x57a37e:0x286,_0x34a719:0x274,_0x1eef20:0x121,_0x33dc33:0x11c,_0x2a8f33:0x27c,_0x2a3c66:0x28b,_0x17fbda:0x268,_0x23cab3:0x27f,_0x112f6e:0x28f,_0x18e871:0x27c,_0x37a3a6:0x290,_0x115725:0x2a1,_0x46f3b0:0xf5,_0x128e3f:0xea},_0x2eedd0={_0x462687:0x43};function _0x436f28(_0x2b92de,_0x4023a0,_0x174c23,_0x32171d){return _0x509d(_0x32171d-_0x2eedd0._0x462687,_0x174c23);}return normalizeContent(_0x1fd1ac?.['content'])[_0x436f28(0x220,_0x1ce7ad._0x3e23a6,0x23d,0x23d)](_0x2981ef=>{const _0x5ccf06={_0x1c50ed:0x122};function _0x4389fb(_0x11f2a1,_0x4711d5,_0x30da4a,_0xfdf7c6){return _0x436f28(_0x11f2a1-0x1c8,_0x4711d5-0xf1,_0xfdf7c6,_0x30da4a-0x30);}if(_0x2981ef[_0x165ff7(_0x430b21._0x2675d1,_0x430b21._0x31c168,0x102,_0x430b21._0x5e30ab)]===_0x4389fb(_0x430b21._0x2f1c96,0x265,_0x430b21._0x1827d0,0x260))return _0x2981ef['thinking'][_0x4389fb(_0x430b21._0x4f0c1d,0x292,0x27f,_0x430b21._0x2095a5)]()['length']>0x0?[_0x2981ef['thinking']]:[];if(_0x2981ef[_0x165ff7(0xf6,_0x430b21._0x7bf2c5,_0x430b21._0x5412e9,_0x430b21._0x4ed33a)]==='anthropic_redacted_thinking')return[_0x4389fb(_0x430b21._0x300bcf,0x24e,0x25b,_0x430b21._0xfdd0f1)];if(_0x2981ef['type']!==_0x4389fb(0x281,0x27c,_0x430b21._0x2e4330,_0x430b21._0x42177a))return[];const _0x9f1e3=_0x2981ef['summary'][_0x4389fb(0x26d,_0x430b21._0x3e1062,0x263,_0x430b21._0x99db08)](_0x5509b5=>_0x5509b5['text'])[_0x4389fb(0x25a,_0x430b21._0x57a37e,_0x430b21._0x34a719,_0x430b21._0x42177a)](_0x11006f=>_0x11006f[_0x4389fb(0x297,0x269,0x27f,0x264)]()[_0x4389fb(0x274,0x26d,0x286,0x296)]>0x0)[_0x165ff7(0xf5,_0x430b21._0x1eef20,0x107,_0x430b21._0x33dc33)]('\x0a\x0a');function _0x165ff7(_0x295fd2,_0x4ceb7d,_0x576fe7,_0x270e86){return _0x436f28(_0x295fd2-0x110,_0x4ceb7d-_0x5ccf06._0x1c50ed,_0x270e86,_0x576fe7- -0x139);}if(_0x9f1e3['length']>0x0)return[_0x9f1e3];if(_0x2981ef[_0x4389fb(0x26f,_0x430b21._0x2a8f33,_0x430b21._0x2a3c66,0x27a)]&&_0x2981ef['text'][_0x4389fb(0x283,_0x430b21._0x17fbda,_0x430b21._0x23cab3,_0x430b21._0x112f6e)]()['length']>0x0)return[_0x2981ef[_0x4389fb(_0x430b21._0x18e871,_0x430b21._0x37a3a6,0x28b,_0x430b21._0x115725)]];return _0x2981ef[_0x165ff7(0xe9,_0x430b21._0x46f3b0,0xfb,_0x430b21._0x128e3f)]?['(encrypted\x20reasoning)']:[];})['join']('\x0a\x0a');}function getToolUseBlocks(_0x34f8f0){const _0x2a6a03={_0x2fc5ce:0x4d1,_0x4cc6c7:0x4de};function _0x230445(_0x247a65,_0x2cc171,_0x7bf678,_0x55c84f){return _0x509d(_0x2cc171- -0x22,_0x55c84f);}function _0x2ba5ec(_0x3e1f16,_0x569ed0,_0x77e6fb,_0x4b3c68){return _0x509d(_0x77e6fb-0x2d8,_0x4b3c68);}return normalizeContent(_0x34f8f0?.[_0x2ba5ec(0x4fb,_0x2a6a03._0x2fc5ce,0x4e7,_0x2a6a03._0x4cc6c7)])['filter'](_0x1e4deb=>_0x1e4deb[_0x2ba5ec(0x4cc,0x4b6,0x4d0,0x4e7)]===_0x230445(0x1dc,0x1e7,0x205,0x1ca));}function getToolResultBlocks(_0x4b5488){const _0x11560e={_0x46677c:0x249,_0x1b2fe5:0x228,_0x553d30:0x226},_0x4ad884={_0x48831a:0x16};function _0x2c8c2e(_0x24f35a,_0x36f7b6,_0xf00968,_0xbe5e20){return _0x509d(_0x36f7b6-_0x4ad884._0x48831a,_0x24f35a);}function _0x370aeb(_0x871e50,_0x58a526,_0x1d4efb,_0x3141ef){return _0x509d(_0x58a526-0x25,_0x1d4efb);}return normalizeContent(_0x4b5488?.[_0x370aeb(_0x11560e._0x46677c,0x234,_0x11560e._0x1b2fe5,0x245)])[_0x370aeb(0x213,_0x11560e._0x553d30,0x222,0x22f)](_0x32af73=>_0x32af73[_0x370aeb(0x209,0x21d,0x21b,0x205)]===_0x370aeb(0x240,0x22a,0x242,0x216));}function createToolResultUserMessage(_0x275784){const _0x484f9e={_0x2e1852:0x319,_0x114bfe:0x324,_0x58a7cd:0x30c,_0x5c19bd:0x32c},_0x3a3221={_0x5e40ef:0x3ee,_0x16512b:0x3b6,_0x3de8e4:0x3ce,_0x441a0a:0x3e9,_0x30ba74:0x3ea,_0x64f44d:0x3c0,_0x373e4a:0x167,_0x3d2ddc:0x161,_0x1f7232:0x153,_0x45d16d:0x3d4,_0x441d8d:0x3cd,_0x248f33:0x3c8,_0x297263:0x3d1,_0x5dba18:0x3db},_0x2b3319={_0x4c97ca:0x46a,_0xd2993c:0x10b},_0x4a25f9={_0x2d13ce:0x2df};function _0x43a332(_0x554c01,_0x166a38,_0x47defe,_0x2b425d){return _0x509d(_0x554c01-0x128,_0x47defe);}function _0x44e680(_0x48fd54,_0x1472af,_0x210b2a,_0x3aab6d){return _0x509d(_0x48fd54- -_0x4a25f9._0x2d13ce,_0x3aab6d);}return{'role':_0x43a332(0x30e,_0x484f9e._0x2e1852,_0x484f9e._0x114bfe,_0x484f9e._0x58a7cd),'content':_0x275784[_0x43a332(0x318,0x304,_0x484f9e._0x5c19bd,0x327)](_0x21758d=>{const _0x382699={_0x548936:0xa7,_0xe76f57:0xf4};function _0x4b3c5d(_0x5e652f,_0x296bc3,_0x4dac8d,_0x43ba28){return _0x43a332(_0x296bc3-_0x382699._0x548936,_0x296bc3-_0x382699._0xe76f57,_0x5e652f,_0x43ba28-0x73);}function _0x561754(_0x51838b,_0x126581,_0x5a57e5,_0x546c3e){return _0x43a332(_0x546c3e- -_0x2b3319._0x4c97ca,_0x126581-_0x2b3319._0xd2993c,_0x5a57e5,_0x546c3e-0x0);}return{'type':_0x4b3c5d(_0x3a3221._0x5e40ef,0x3d4,_0x3a3221._0x16512b,0x3ea),'tool_use_id':_0x21758d[_0x4b3c5d(0x3bc,0x3ba,0x3a8,_0x3a3221._0x3de8e4)],'content':_0x21758d[_0x4b3c5d(_0x3a3221._0x441a0a,0x3de,_0x3a3221._0x30ba74,_0x3a3221._0x64f44d)]??_0x21758d[_0x561754(-_0x3a3221._0x373e4a,-_0x3a3221._0x3d2ddc,-0x161,-_0x3a3221._0x1f7232)],'is_error':_0x21758d[_0x4b3c5d(_0x3a3221._0x45d16d,_0x3a3221._0x441d8d,0x3ca,_0x3a3221._0x248f33)]===_0x4b3c5d(0x3bc,_0x3a3221._0x297263,_0x3a3221._0x5dba18,0x3bc)};})};}function _0x3c10(){const _0x494841=['Bwf4x3rVA2vUCW','y2fSBeLK','Bw9KzwW','DxnHz2u','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','B3v0Chv0','BwfW','zw5JCNLWDgvKq29UDgvUDa','Aw5WDxruB2TLBNm','nKLQsM5lza','CMvHC29UAw5Nvg9Rzw5Z','mJiZnJiXnxPOrMXtAa','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','CM9Szq','DhLWzq','CMvHC29UAw5N','zMXHDe1HCa','C3rYAw5N','ndvjtK9Pu1K','AM9PBG','C3rHDhvZ','mZKXmeTXwLHXtW','yw50AhjVCgLJx3rOAw5RAw5N','zMLSDgvY','zxjYB3i','mtyXnZG4mKrTz1Pgqq','oty2mti4B1nrufHo','Dg9VBf9Yzxn1Bhq','ndKYodi0ELPlqvzi','B3v0Chv0rM9YBwf0','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','Dg9VBf91C2u','AxnbCNjHEq','C3rVCf9YzwfZB24','DhjPBq','B3bLBMfPx3jLyxnVBMLUzW','mti3EMT3EwXy','y29UDgvUDa','CMvHC29UAw5Nx3rVA2vUCW','Bwv0ywrHDge','BwvZC2fNzxm','BgvUz3rO','C2vZC2LVBKLK','Bwf4vg9Rzw5Z','Dg9VBhm','ntm3nty3BfnUzNzs','Dgv4Da','mZbbt0vMteW','Aw5WDxrFDg9Rzw5Z','ChvZAa','DhvYBKLK','mJiYotu5EM1hAezX','B3v0Chv0vg9Rzw5Z','BwvZC2fNzq','Dg9VBf91C2vFAwq','yxnZAxn0yw50','ChjVDMLKzxjtDgf0zq','DxnLCG','C3LZDgvT','khjLzgfJDgvKihjLyxnVBMLUzYK','ywrK'];_0x3c10=function(){return _0x494841;};return _0x3c10();}var INTERRUPTED_TOOL_RESULT_TEXT=_0x23d55a(0x10b,0x109,0x123,0x12a);function synthesizeMissingToolResults(_0x4a4318){const _0x59517d={_0x4a5555:0x3d7,_0x3706cd:0x15a,_0xa93287:0x15c,_0x22f1ba:0x159,_0x48e651:0x12a,_0x3b6d38:0x141,_0x3aa872:0x3d9,_0x4a3329:0x14b,_0x45e579:0x14f},_0x5f1dfd={_0x5ec36d:0x167,_0x174e53:0x1f4},_0xc16fe2={_0x442f57:0x1d2,_0xf5a791:0x26a},_0x516905=new Set();function _0x171208(_0x52c6e1,_0x54ac5d,_0x4e81c7,_0x5b4a3d){return _0x23d55a(_0x52c6e1-_0xc16fe2._0x442f57,_0x54ac5d-0x183,_0x52c6e1- -_0xc16fe2._0xf5a791,_0x4e81c7);}for(const _0x119a86 of _0x4a4318){for(const _0x237e56 of getToolResultBlocks(_0x119a86)){_0x516905[_0x50ee40(0x3dc,0x3d0,0x3c8,_0x59517d._0x4a5555)](_0x237e56[_0x171208(-_0x59517d._0x3706cd,-0x154,-_0x59517d._0xa93287,-0x169)]);}}const _0x93bb62=[];function _0x50ee40(_0x2dfdaf,_0x4d11de,_0x4260b8,_0x33e1ac){return _0x23d55a(_0x2dfdaf-_0x5f1dfd._0x5ec36d,_0x4d11de-_0x5f1dfd._0x174e53,_0x2dfdaf-0x2c6,_0x4d11de);}for(const _0x2018bc of _0x4a4318){_0x93bb62[_0x171208(-0x15f,-0x155,-0x145,-_0x59517d._0x22f1ba)](_0x2018bc);const _0x14e1f7=getToolUseBlocks(_0x2018bc)['filter'](_0x14b43a=>!_0x516905['has'](_0x14b43a['id']));if(_0x14e1f7[_0x171208(-_0x59517d._0x48e651,-0x129,-0x144,-_0x59517d._0x3b6d38)]===0x0)continue;_0x93bb62['push']({'role':_0x50ee40(_0x59517d._0x3aa872,0x3e5,0x3d2,0x3d3),'content':_0x14e1f7[_0x171208(-0x14d,-_0x59517d._0x4a3329,-_0x59517d._0x45e579,-0x14d)](_0x22cb54=>({'type':_0x171208(-0x138,-0x154,-0x137,-0x139),'tool_use_id':_0x22cb54['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0xfc6a12 of _0x14e1f7){_0x516905['add'](_0xfc6a12['id']);}}return _0x93bb62;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,normalizeMessage,compileRequest,toChatRequest,toModelRequest,toProviderModelRequest,toChatResponse,toModelResponse,responseToAssistantMessage,createReasoningMessage,createAssistantTextMessage,createToolUseMessage,getTextFromMessage,getReasoningTextFromMessage,getToolUseBlocks,getToolResultBlocks,createToolResultUserMessage,INTERRUPTED_TOOL_RESULT_TEXT,synthesizeMissingToolResults};
1
+ (function(_0x68be45,_0x26b995){const _0x11f66f={_0x1a3a37:0x1f1,_0x103bab:0x1f7,_0x4b09d4:0x209,_0x4aef21:0x2e3,_0x1b532f:0x2de,_0x50518b:0x2d4,_0x390c37:0x218,_0x3f165f:0x214,_0x56ca08:0x2e9,_0x57ee99:0x2f5,_0x327651:0x211,_0x28b6a5:0x2d0,_0xabb9f:0x2d8,_0x457cbf:0x2cc,_0x1bc29f:0x2bd,_0x5357c9:0x214,_0x46f533:0x237,_0x2f6674:0x244},_0x582f1d={_0x3a0703:0x145},_0x477892=_0x68be45();function _0xf692c0(_0x453b8a,_0x1ea9c4,_0x76e96f,_0x5d4e1e){return _0x47a3(_0x453b8a- -0x3ba,_0x76e96f);}function _0x2a6029(_0x383416,_0x2ef63c,_0x5e51da,_0x368cb3){return _0x47a3(_0x5e51da-_0x582f1d._0x3a0703,_0x383416);}while(!![]){try{const _0x227eed=parseInt(_0x2a6029(_0x11f66f._0x1a3a37,_0x11f66f._0x103bab,_0x11f66f._0x4b09d4,0x215))/0x1+-parseInt(_0xf692c0(-_0x11f66f._0x4aef21,-_0x11f66f._0x1b532f,-_0x11f66f._0x50518b,-0x2c4))/0x2+-parseInt(_0x2a6029(0x200,_0x11f66f._0x390c37,_0x11f66f._0x3f165f,0x226))/0x3*(-parseInt(_0xf692c0(-_0x11f66f._0x56ca08,-_0x11f66f._0x57ee99,-0x2fb,-0x2cb))/0x4)+parseInt(_0xf692c0(-0x2dc,-0x2f3,-0x2db,-0x2ee))/0x5*(-parseInt(_0x2a6029(_0x11f66f._0x327651,0x227,0x21a,0x231))/0x6)+-parseInt(_0xf692c0(-0x2ce,-0x2e6,-0x2cf,-0x2c0))/0x7+parseInt(_0xf692c0(-_0x11f66f._0x28b6a5,-_0x11f66f._0xabb9f,-_0x11f66f._0x457cbf,-_0x11f66f._0x1bc29f))/0x8+parseInt(_0x2a6029(_0x11f66f._0x5357c9,_0x11f66f._0x46f533,0x229,_0x11f66f._0x2f6674))/0x9;if(_0x227eed===_0x26b995)break;else _0x477892['push'](_0x477892['shift']());}catch(_0x40c9f7){_0x477892['push'](_0x477892['shift']());}}}(_0x4b7d,0x7070d));function createTextBlock(_0x1367e1){const _0x1cccbf={_0x4521fb:0x148,_0x301ee4:0x144};function _0x58740c(_0x1796f1,_0x5b2f2c,_0x368f18,_0x15baff){return _0x47a3(_0x15baff- -0x20e,_0x5b2f2c);}return{'type':_0x58740c(-0x165,-_0x1cccbf._0x4521fb,-_0x1cccbf._0x301ee4,-0x150),'text':_0x1367e1};}function normalizeTextBlock(_0x13beb0){const _0x2e23a3={_0x102266:0x331,_0x3bf80b:0x330};function _0x690d5b(_0x1bb6b0,_0x5c13d1,_0x263142,_0x3e58d4){return _0x47a3(_0x5c13d1-0x272,_0x263142);}return createTextBlock(_0x13beb0[_0x690d5b(_0x2e23a3._0x102266,_0x2e23a3._0x3bf80b,0x325,0x337)]??'');}function normalizeContent(_0x4cc289){const _0x4b408c={_0x1b5122:0x1c5,_0x16b041:0x1aa,_0x2b5caa:0x333,_0x13ca02:0x34c},_0x1faf40={_0x2e3df3:0x10a,_0x2933b5:0x105,_0xf78ce1:0x103,_0x2e8f0d:0x117,_0x5e80c8:0x2a8};if(typeof _0x4cc289===_0x5c6c49(0x1b5,_0x4b408c._0x1b5122,0x1a8,_0x4b408c._0x16b041))return[createTextBlock(_0x4cc289)];function _0x1bc573(_0x2bfac4,_0x26f759,_0x2b248e,_0x231f1e){return _0x47a3(_0x231f1e-0x284,_0x2bfac4);}if(!Array[_0x1bc573(0x338,_0x4b408c._0x2b5caa,0x357,_0x4b408c._0x13ca02)](_0x4cc289))return[];function _0x5c6c49(_0x5044d0,_0x5d7cda,_0x206de4,_0x5c8532){return _0x47a3(_0x5c8532-0xc5,_0x206de4);}return _0x4cc289['map'](_0x358d03=>{const _0x3bf51d={_0x206010:0x150},_0x40561a={_0x2efc1c:0xb3};function _0x5aeb3c(_0x47f02f,_0x15c31f,_0x47f2a0,_0x15d1b4){return _0x5c6c49(_0x47f02f-_0x40561a._0x2efc1c,_0x15c31f-0x149,_0x15d1b4,_0x47f2a0- -0x2b7);}if(_0x358d03[_0x5aeb3c(-_0x1faf40._0x2e3df3,-_0x1faf40._0x2933b5,-_0x1faf40._0xf78ce1,-_0x1faf40._0x2e8f0d)]===_0x434aba(-0x2aa,-_0x1faf40._0x5e80c8,-0x2bf,-0x2a6))return normalizeTextBlock(_0x358d03);function _0x434aba(_0x3bd5d8,_0x207e91,_0x2712c5,_0x1785b9){return _0x1bc573(_0x207e91,_0x207e91-0x27,_0x2712c5-_0x3bf51d._0x206010,_0x1785b9- -0x5e8);}return structuredClone(_0x358d03);});}function normalizeSystem(_0x3786ed=[]){const _0x2279fb={_0x391e7f:0x113};function _0x1a0cb9(_0x260f1e,_0xbc8c3e,_0x33f1ba,_0x3e1fe4){return _0x47a3(_0x33f1ba- -_0x2279fb._0x391e7f,_0x260f1e);}return normalizeContent(_0x3786ed)['filter'](_0x22d6ec=>_0x22d6ec[_0x1a0cb9(-0x14,-0x38,-0x24,-0xe)]==='text');}function normalizeMessage(_0x1434f9){const _0x370b9a={_0x2a4f54:0xe1,_0x18fa2a:0xd4,_0x3693af:0xd6,_0x288440:0xd1,_0x4a4d0b:0x20c,_0x10f1b6:0x217,_0x53488a:0x1ff,_0x12bbd4:0x213,_0x56cc1e:0x20b,_0x1c6a38:0x20b,_0x17291b:0xd9,_0x357c6e:0xc1,_0x376bc6:0x223,_0x3bc0c6:0x225,_0x1add5f:0x22c};function _0x22f74b(_0x293b9f,_0x514141,_0x487997,_0x2cedfa){return _0x47a3(_0x293b9f- -0x303,_0x487997);}function _0x5a5d13(_0x33a817,_0x1ae2f2,_0x4b50df,_0x39a3d4){return _0x47a3(_0x39a3d4- -0x14,_0x33a817);}return{...typeof _0x1434f9['id']===_0x5a5d13(_0x370b9a._0x2a4f54,_0x370b9a._0x18fa2a,_0x370b9a._0x3693af,_0x370b9a._0x288440)?{'id':_0x1434f9['id']}:{},'role':_0x1434f9[_0x22f74b(-_0x370b9a._0x4a4d0b,-_0x370b9a._0x10f1b6,-0x1f1,-_0x370b9a._0x53488a)],'content':normalizeContent(_0x1434f9[_0x22f74b(-_0x370b9a._0x12bbd4,-0x1fa,-_0x370b9a._0x56cc1e,-_0x370b9a._0x1c6a38)]),..._0x1434f9[_0x5a5d13(_0x370b9a._0x17291b,0xb9,_0x370b9a._0x357c6e,0xcc)]?{'providerState':structuredClone(_0x1434f9[_0x22f74b(-_0x370b9a._0x376bc6,-0x212,-_0x370b9a._0x3bc0c6,-_0x370b9a._0x1add5f)])}:{}};}function compileRequest(_0x5a15bf){const _0x57f16c={_0x100bb0:0x303,_0x36b8fc:0x313,_0x31dcd0:0x25f,_0x42b33f:0x269,_0x5b3e38:0x268,_0x2f49d3:0x25a,_0x4c2b6f:0x311,_0x5d669e:0x34a,_0xe44318:0x34f,_0x140dea:0x31c,_0x4376db:0x332,_0x549edc:0x309,_0x5e0bc6:0x30d},_0x59ceb0={_0x47b9c1:0x244};function _0x48f3fc(_0xf7e2c9,_0x5822f3,_0x20abab,_0x5add37){return _0x47a3(_0xf7e2c9-_0x59ceb0._0x47b9c1,_0x20abab);}function _0x203d1a(_0x29aa44,_0x317aa7,_0x41d0b2,_0x105e58){return _0x47a3(_0x29aa44- -0x32b,_0x41d0b2);}return{'model':_0x5a15bf['model']??_0x48f3fc(_0x57f16c._0x100bb0,0x30c,_0x57f16c._0x36b8fc,0x310),'max_tokens':_0x5a15bf[_0x203d1a(-_0x57f16c._0x31dcd0,-_0x57f16c._0x42b33f,-_0x57f16c._0x5b3e38,-_0x57f16c._0x2f49d3)]??0x400,..._0x5a15bf['reasoning']?{'reasoning':structuredClone(_0x5a15bf[_0x48f3fc(0x307,0x2fa,0x30a,_0x57f16c._0x4c2b6f)])}:{},'system':normalizeSystem(_0x5a15bf['system']),'messages':_0x5a15bf[_0x48f3fc(0x338,_0x57f16c._0x5d669e,0x320,_0x57f16c._0xe44318)][_0x48f3fc(_0x57f16c._0x140dea,0x31d,0x31c,_0x57f16c._0x4376db)](normalizeMessage),'tools':structuredClone(_0x5a15bf['tools']??[]),'metadata':{'session_id':_0x5a15bf[_0x48f3fc(_0x57f16c._0x549edc,0x311,0x303,0x303)],'turn_id':_0x5a15bf[_0x48f3fc(_0x57f16c._0x5e0bc6,0x2fa,0x329,0x324)]}};}function toChatRequest(_0x1e970d){const _0x49d341={_0x181aa0:0x1cb,_0x499de8:0x1a3,_0x1eb370:0x1bb,_0x575881:0x494,_0x2c53a7:0x49d,_0x421609:0x1de,_0x5c3ea0:0x475,_0x394401:0x1ce,_0x1af4e7:0x1b2,_0x5eddb4:0x1b4,_0x1fc298:0x4a8,_0x1bb8ac:0x495,_0x2eb690:0x490,_0x410c0a:0x492,_0xbd8ed9:0x499,_0x54de68:0x1e0,_0x28b0c7:0x1c9,_0x1a3d1a:0x1f5},_0x1bc3d3={_0x2ac298:0x2a6},_0x30c3dd={_0x37e511:0x3c8};function _0x426fd8(_0x171e28,_0x3e3ba7,_0x35980e,_0x1ea4b6){return _0x47a3(_0x3e3ba7-_0x30c3dd._0x37e511,_0x171e28);}function _0x72df6f(_0x306ad5,_0xfcb2fc,_0x57d92d,_0x1adc23){return _0x47a3(_0x1adc23- -_0x1bc3d3._0x2ac298,_0x57d92d);}return{'model':_0x1e970d[_0x72df6f(-_0x49d341._0x181aa0,-_0x49d341._0x499de8,-_0x49d341._0x1eb370,-0x1be)],'maxTokens':_0x1e970d[_0x426fd8(0x47d,_0x49d341._0x575881,_0x49d341._0x2c53a7,0x492)],..._0x1e970d[_0x72df6f(-0x1e4,-0x200,-_0x49d341._0x421609,-0x1e3)]?{'reasoning':structuredClone(_0x1e970d[_0x426fd8(0x48a,0x48b,0x483,_0x49d341._0x5c3ea0)])}:{},'system':structuredClone(_0x1e970d['system']),'messages':structuredClone(_0x1e970d['messages']),'tools':structuredClone(_0x1e970d['tools']),'metadata':{'sessionId':_0x1e970d[_0x72df6f(-0x1e5,-0x1db,-0x1b9,-0x1c9)][_0x72df6f(-_0x49d341._0x394401,-0x1d2,-_0x49d341._0x1af4e7,-_0x49d341._0x5eddb4)],'turnId':_0x1e970d[_0x426fd8(_0x49d341._0x1fc298,0x4a5,_0x49d341._0x1bb8ac,0x49c)]['turn_id']},..._0x1e970d[_0x426fd8(_0x49d341._0x2eb690,_0x49d341._0x410c0a,_0x49d341._0xbd8ed9,0x4b0)]?{'outputFormat':structuredClone(_0x1e970d[_0x72df6f(-_0x49d341._0x54de68,-_0x49d341._0x28b0c7,-_0x49d341._0x1a3d1a,-0x1dc)])}:{}};}function toModelRequest(_0x3af64f){const _0x438853={_0x225d6b:0x1eb,_0x128298:0x1d2,_0xba6214:0x1ce,_0x2fed99:0x1e3,_0x9e4b3b:0x1cd,_0x7392e0:0x1cb,_0x51c388:0x1a8,_0x5eb695:0x1e2,_0x20ff23:0x1f1,_0x5bc250:0x1f6,_0x99a2d2:0x1ea,_0x58798f:0x1fa,_0x56d745:0x20b,_0x50ac20:0x1d0,_0x23d411:0x1ec,_0x3b8325:0x1e1,_0x4fb142:0x1d2,_0x1512c8:0x1fc,_0x1111a7:0x1ff,_0x4350e3:0x1d5,_0xc8b8a9:0x1e7,_0x5dba24:0x1d1},_0x4d7299={_0xb339df:0x2bf},_0xfe691a={_0x2df801:0x29b};function _0x2799d4(_0x57d348,_0x32b6ed,_0x5f330a,_0xb60dc8){return _0x47a3(_0xb60dc8- -_0xfe691a._0x2df801,_0x32b6ed);}function _0x39b735(_0xc767a6,_0x33bedf,_0x2d2941,_0x807206){return _0x47a3(_0x33bedf- -_0x4d7299._0xb339df,_0xc767a6);}return{'model':_0x3af64f[_0x39b735(-_0x438853._0x225d6b,-0x1d7,-_0x438853._0x128298,-0x1f6)],'max_tokens':_0x3af64f[_0x2799d4(-_0x438853._0xba6214,-_0x438853._0x2fed99,-0x1b1,-_0x438853._0x9e4b3b)],..._0x3af64f[_0x2799d4(-_0x438853._0x7392e0,-0x1d8,-0x1ba,-0x1d8)]?{'reasoning':structuredClone(_0x3af64f['reasoning'])}:{},'system':structuredClone(_0x3af64f[_0x2799d4(-0x1aa,-0x1cb,-_0x438853._0x51c388,-0x1ae)]),'messages':structuredClone(_0x3af64f['messages']),'tools':structuredClone(_0x3af64f['tools']),'metadata':{'session_id':_0x3af64f[_0x39b735(-0x1f4,-_0x438853._0x5eb695,-_0x438853._0x20ff23,-_0x438853._0x5bc250)][_0x39b735(-_0x438853._0x99a2d2,-_0x438853._0x58798f,-_0x438853._0x56d745,-0x204)],'turn_id':_0x3af64f[_0x39b735(-_0x438853._0x50ac20,-0x1e2,-_0x438853._0x23d411,-0x1cf)][_0x2799d4(-_0x438853._0x3b8325,-0x1b5,-0x1ee,-_0x438853._0x4fb142)]},..._0x3af64f[_0x39b735(-0x1e7,-0x1f5,-_0x438853._0x1512c8,-_0x438853._0x1111a7)]?{'outputFormat':structuredClone(_0x3af64f[_0x2799d4(-_0x438853._0x4350e3,-0x1ea,-_0x438853._0xc8b8a9,-_0x438853._0x5dba24)])}:{}};}function _0x47a3(_0x198ad8,_0x10dbb9){_0x198ad8=_0x198ad8-0xbc;const _0x4b7db6=_0x4b7d();let _0x47a36f=_0x4b7db6[_0x198ad8];if(_0x47a3['mCcaSi']===undefined){var _0x8266f=function(_0x58b947){const _0x1495a7='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1367e1='',_0x13beb0='';for(let _0x4cc289=0x0,_0x358d03,_0x3786ed,_0x22d6ec=0x0;_0x3786ed=_0x58b947['charAt'](_0x22d6ec++);~_0x3786ed&&(_0x358d03=_0x4cc289%0x4?_0x358d03*0x40+_0x3786ed:_0x3786ed,_0x4cc289++%0x4)?_0x1367e1+=String['fromCharCode'](0xff&_0x358d03>>(-0x2*_0x4cc289&0x6)):0x0){_0x3786ed=_0x1495a7['indexOf'](_0x3786ed);}for(let _0x1434f9=0x0,_0x5a15bf=_0x1367e1['length'];_0x1434f9<_0x5a15bf;_0x1434f9++){_0x13beb0+='%'+('00'+_0x1367e1['charCodeAt'](_0x1434f9)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x13beb0);};_0x47a3['giVedK']=_0x8266f,_0x47a3['Xpseqh']={},_0x47a3['mCcaSi']=!![];}const _0x42c67d=_0x4b7db6[0x0],_0x49ba84=_0x198ad8+_0x42c67d,_0x3fdef0=_0x47a3['Xpseqh'][_0x49ba84];return!_0x3fdef0?(_0x47a36f=_0x47a3['giVedK'](_0x47a36f),_0x47a3['Xpseqh'][_0x49ba84]=_0x47a36f):_0x47a36f=_0x3fdef0,_0x47a36f;}function toProviderModelRequest(_0x94dd83){const _0x5fdf99={_0x3046c4:0x70,_0x37c5e6:0x8c,_0x9a1f45:0x54,_0x711601:0x4a,_0x389d85:0x96,_0x21c71f:0xa5,_0x2aa24d:0x7c,_0x5b6f9b:0x6e,_0x33040c:0x90,_0x3b5c72:0x7b,_0x5ade9e:0x88,_0x3f9128:0x61},_0x3fc613={_0x2b60b0:0x62};function _0x2b1264(_0x12f68e,_0x2dd980,_0x5851d0,_0x475d2f){return _0x47a3(_0x12f68e- -0x78,_0x2dd980);}function _0x3b83d4(_0x5a50cb,_0x5352d5,_0x4651cd,_0x13165c){return _0x47a3(_0x5352d5- -_0x3fc613._0x2b60b0,_0x13165c);}return{'model':_0x94dd83[_0x2b1264(_0x5fdf99._0x3046c4,0x72,_0x5fdf99._0x37c5e6,_0x5fdf99._0x9a1f45)],'max_tokens':_0x94dd83[_0x2b1264(0x56,0x51,0x67,_0x5fdf99._0x711601)],'system':structuredClone(_0x94dd83[_0x3b83d4(_0x5fdf99._0x389d85,0x8b,_0x5fdf99._0x21c71f,0x71)]),'messages':structuredClone(_0x94dd83[_0x2b1264(_0x5fdf99._0x2aa24d,_0x5fdf99._0x5b6f9b,_0x5fdf99._0x33040c,0x60)]),'tools':structuredClone(_0x94dd83[_0x2b1264(_0x5fdf99._0x3b5c72,0x76,_0x5fdf99._0x5ade9e,_0x5fdf99._0x3f9128)])};}function toChatResponse(_0x2bfcda){const _0x16f41d={_0x464f07:0x26d,_0x365d56:0x2e1,_0x5d1a1e:0x2df,_0x13b64c:0x2fd,_0x161dd2:0x308,_0x217f6e:0x30c,_0x3208e5:0x307,_0x239b63:0x30e,_0x3dd421:0x272,_0x1c8f38:0x268,_0x231e7a:0x31b,_0x3d833f:0x2f6,_0x585217:0x30c},_0x719cc4={_0x8b9bd:0x360},_0x61295c={_0x1b9232:0x21e};function _0x5232b5(_0x4ce721,_0x5cdde6,_0x4a8841,_0x1d1997){return _0x47a3(_0x1d1997-_0x61295c._0x1b9232,_0x4a8841);}function _0x419998(_0x1f129a,_0x89799,_0x503e95,_0x29ef00){return _0x47a3(_0x1f129a- -_0x719cc4._0x8b9bd,_0x29ef00);}return{'id':_0x2bfcda['id'],'content':structuredClone(_0x2bfcda[_0x419998(-0x270,-0x26d,-0x277,-_0x16f41d._0x464f07)]),'stopReason':_0x2bfcda[_0x5232b5(_0x16f41d._0x365d56,0x2c7,0x2c0,_0x16f41d._0x5d1a1e)],'usage':{'inputTokens':_0x2bfcda[_0x5232b5(_0x16f41d._0x13b64c,_0x16f41d._0x161dd2,0x2f1,_0x16f41d._0x217f6e)][_0x5232b5(0x2fc,0x2e3,0x2dd,0x2e0)],'outputTokens':_0x2bfcda['usage'][_0x5232b5(_0x16f41d._0x3208e5,_0x16f41d._0x239b63,0x305,0x2f4)],..._0x2bfcda[_0x419998(-_0x16f41d._0x3dd421,-0x282,-_0x16f41d._0x1c8f38,-0x275)]['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x2bfcda[_0x5232b5(0x30b,_0x16f41d._0x231e7a,_0x16f41d._0x3d833f,_0x16f41d._0x585217)]['reasoning_tokens']}:{}},..._0x2bfcda['providerState']?{'providerState':structuredClone(_0x2bfcda['providerState'])}:{}};}function toModelResponse(_0x1a8d4e){const _0x41fce1={_0x3969e4:0xed,_0x8ed216:0xf1,_0x35cff4:0xd4,_0x46ab8f:0x109,_0x59cdbd:0xf1,_0x101d19:0x105,_0x1de1cf:0x117,_0x3f37ae:0x115,_0x1d4856:0x6c,_0x408933:0x8b,_0x98b360:0x103,_0x4dcef3:0xf6,_0x89455b:0xb8,_0x5b9c11:0xb3,_0x160749:0xb2,_0x127ba4:0xa5,_0x307f26:0xa6,_0x3f87aa:0x8a,_0x53d0a7:0xa2,_0xbc5a69:0xa1,_0x3108e7:0xc0,_0x2fb62d:0x86,_0x52b8da:0x86,_0x223fcd:0xa5,_0x1f66f7:0x99,_0x16d9bd:0x89,_0xa41c41:0x9a},_0x12c95c={_0x14105f:0x49},_0xfcd478={_0x5ba63d:0x15};function _0x29d869(_0x4463d3,_0x215e44,_0xb409d,_0x21728){return _0x47a3(_0x4463d3-_0xfcd478._0x5ba63d,_0x21728);}function _0x515051(_0x2ab449,_0x304dd2,_0x306498,_0xdb1306){return _0x47a3(_0xdb1306- -_0x12c95c._0x14105f,_0x304dd2);}return{'id':_0x1a8d4e['id'],'type':_0x29d869(0xf0,_0x41fce1._0x3969e4,0xfd,0xe9),'role':_0x29d869(_0x41fce1._0x8ed216,_0x41fce1._0x35cff4,_0x41fce1._0x46ab8f,_0x41fce1._0x59cdbd),'content':structuredClone(_0x1a8d4e[_0x29d869(_0x41fce1._0x101d19,_0x41fce1._0x1de1cf,_0x41fce1._0x3f37ae,0x116)]),'stop_reason':_0x1a8d4e[_0x515051(_0x41fce1._0x1d4856,0x66,_0x41fce1._0x408933,0x7e)],'stop_sequence':null,'usage':{'input_tokens':_0x1a8d4e[_0x29d869(_0x41fce1._0x98b360,0xfb,0xf4,_0x41fce1._0x4dcef3)][_0x515051(0x7a,0xa1,0x7c,0x82)],'output_tokens':_0x1a8d4e[_0x515051(_0x41fce1._0x89455b,_0x41fce1._0x5b9c11,_0x41fce1._0x160749,_0x41fce1._0x127ba4)][_0x515051(0x88,_0x41fce1._0x307f26,_0x41fce1._0x3f87aa,_0x41fce1._0x53d0a7)],..._0x1a8d4e[_0x515051(_0x41fce1._0xbc5a69,_0x41fce1._0x3108e7,0xc2,0xa5)][_0x515051(0x9c,0x95,0x8d,0x89)]!==void 0x0?{'reasoning_tokens':_0x1a8d4e[_0x515051(_0x41fce1._0x2fb62d,0x98,_0x41fce1._0x52b8da,_0x41fce1._0x223fcd)][_0x515051(_0x41fce1._0x1f66f7,0x71,0x83,_0x41fce1._0x16d9bd)]}:{}},..._0x1a8d4e[_0x515051(0xa6,0x81,_0x41fce1._0xa41c41,0x97)]?{'providerState':structuredClone(_0x1a8d4e['providerState'])}:{}};}function responseToAssistantMessage(_0x53db7b){const _0x51ea7e={_0x4418bf:0x1c1,_0x4de549:0x1fe,_0x561a4b:0x1e0,_0x305770:0x196,_0x1e38ed:0x1b6,_0x25c224:0x1cd,_0x1a87b9:0x1d5,_0x3b74b3:0x1dc,_0x303ea0:0x184};function _0x5c31d6(_0x10fd97,_0x233537,_0x34fd07,_0x4fc741){return _0x47a3(_0x4fc741-0xbe,_0x34fd07);}function _0x54065b(_0x41eda2,_0x3713f7,_0x1efe81,_0x159b4f){return _0x47a3(_0x159b4f- -0x2bc,_0x41eda2);}return{'role':_0x54065b(-_0x51ea7e._0x4418bf,-0x1f5,-_0x51ea7e._0x4de549,-_0x51ea7e._0x561a4b),'content':normalizeContent(_0x53db7b[_0x5c31d6(0x1cc,_0x51ea7e._0x305770,_0x51ea7e._0x1e38ed,0x1ae)]),..._0x53db7b[_0x54065b(-_0x51ea7e._0x25c224,-_0x51ea7e._0x1a87b9,-0x1d0,-_0x51ea7e._0x3b74b3)]?{'providerState':structuredClone(_0x53db7b[_0x5c31d6(0x18c,_0x51ea7e._0x1e38ed,_0x51ea7e._0x303ea0,0x19e)])}:{}};}function createReasoningMessage(_0x2b17c1){const _0x24cc2b={_0x32613f:0x2a1,_0xdc5039:0x29f,_0x4a4e87:0x247,_0x11cb47:0x25b,_0x440626:0x298,_0x5454cd:0x21a},_0x23c155={_0x57f930:0x14f},_0x100e3b={_0x42549b:0x470,_0x17c940:0x472,_0x1d11b2:0x47b,_0x5a8ca3:0x443},_0x866f09={_0x1ca94b:0x1af};function _0x309309(_0x122c3b,_0xf35847,_0x5e861f,_0x825234){return _0x47a3(_0x825234-_0x866f09._0x1ca94b,_0x5e861f);}const _0x523ae3=normalizeContent(_0x2b17c1?.[_0x309309(_0x24cc2b._0x32613f,0x2b1,0x2a5,_0x24cc2b._0xdc5039)])[_0x1a9f81(0x24d,_0x24cc2b._0x4a4e87,_0x24cc2b._0x11cb47,0x23d)](_0x1fa7f3=>{const _0x109a5f={_0x161148:0x73},_0x21504d={_0x1a44f1:0x232,_0x21d24e:0x1e7};function _0xb602d(_0x48bad6,_0x25a0a3,_0x187458,_0x2274d8){return _0x1a9f81(_0x48bad6-0xb9,_0x48bad6-_0x21504d._0x1a44f1,_0x187458-_0x21504d._0x21d24e,_0x187458);}function _0x1f24d9(_0x19d044,_0x11a126,_0x58c4f4,_0x2def37){return _0x1a9f81(_0x19d044-_0x109a5f._0x161148,_0x19d044- -0x1c8,_0x58c4f4-0xda,_0x58c4f4);}return _0x1fa7f3[_0xb602d(_0x100e3b._0x42549b,0x464,0x470,0x46c)]===_0x1f24d9(0x78,0x83,0x96,0x87)||_0x1fa7f3[_0xb602d(0x470,0x472,0x464,_0x100e3b._0x17c940)]==='anthropic_thinking'||_0x1fa7f3[_0xb602d(0x470,0x48b,_0x100e3b._0x1d11b2,0x48d)]===_0xb602d(0x441,0x458,_0x100e3b._0x5a8ca3,0x456);});function _0x1a9f81(_0x59679f,_0x3cea45,_0x38f96f,_0x322855){return _0x47a3(_0x3cea45-_0x23c155._0x57f930,_0x322855);}if(_0x523ae3[_0x309309(0x2a0,_0x24cc2b._0x440626,0x289,0x292)]===0x0)return void 0x0;return{'role':_0x1a9f81(_0x24cc2b._0x5454cd,0x22b,0x23a,0x236),'content':_0x523ae3};}function createAssistantTextMessage(_0x3a6ad0){const _0x41a61a={_0xeb201f:0x39,_0x41b844:0x5e,_0x426722:0x5d,_0x2621df:0x4b,_0x5b6726:0x32},_0x3e3f53={_0x31b662:0x12d,_0x462009:0x464,_0x2bcc41:0x44b},_0x260c7c={_0x466ae0:0x144,_0x123626:0xdb},_0x434131={_0x5850d9:0x262};function _0x582e69(_0xe06bd2,_0xb48f06,_0xa7fa4a,_0x1ed8d0){return _0x47a3(_0xe06bd2-_0x434131._0x5850d9,_0x1ed8d0);}const _0x590ec9=normalizeContent(_0x3a6ad0?.[_0x3fd7bf(_0x41a61a._0xeb201f,_0x41a61a._0x41b844,0x31,0x43)])[_0x3fd7bf(_0x41a61a._0x426722,0x54,0x36,0x4b)](_0x3fe1b4=>{const _0x30657d={_0x51eeb2:0x76,_0x430de3:0x130};function _0x84b469(_0x1c31fd,_0x6762d,_0x16ed0d,_0x514798){return _0x582e69(_0x6762d-_0x260c7c._0x466ae0,_0x6762d-_0x260c7c._0x123626,_0x16ed0d-0x179,_0x514798);}function _0x2776be(_0x2cd912,_0x40c507,_0x2f0997,_0x3a23de){return _0x3fd7bf(_0x40c507,_0x40c507-_0x30657d._0x51eeb2,_0x2f0997-_0x30657d._0x430de3,_0x3a23de- -0x16f);}return _0x3fe1b4[_0x2776be(-0x12d,-0x12a,-0x13f,-_0x3e3f53._0x31b662)]===_0x84b469(0x446,_0x3e3f53._0x462009,0x44a,_0x3e3f53._0x2bcc41);});function _0x3fd7bf(_0x31cf31,_0x2b1ed2,_0x1a6add,_0x4f6b15){return _0x47a3(_0x4f6b15- -0xad,_0x31cf31);}if(_0x590ec9[_0x3fd7bf(0x3a,_0x41a61a._0x2621df,_0x41a61a._0x5b6726,0x36)]===0x0)return void 0x0;return{'role':'assistant','content':_0x590ec9};}function createToolUseMessage(_0x4b3396){const _0x336870={_0x225ff3:0x1b2,_0x336812:0x19d,_0x46c525:0x1a0,_0x6e34fa:0x1a6},_0x163259={_0x5bed0a:0x40f};function _0x2ee5de(_0x28708e,_0x5da94a,_0x1ca3c6,_0x1fb80c){return _0x47a3(_0x1ca3c6- -0x272,_0x5da94a);}const _0x243152=normalizeContent(_0x4b3396?.['content'])['filter'](_0x44c4e4=>{const _0x4b09d0={_0x1840cf:0x336};function _0x3ceee2(_0x35253e,_0x5745eb,_0x4460f8,_0x457855){return _0x47a3(_0x4460f8-_0x4b09d0._0x1840cf,_0x457855);}return _0x44c4e4['type']===_0x3ceee2(0x408,0x400,_0x163259._0x5bed0a,0x40a);});function _0x2fdfc7(_0x1ac999,_0x3371ff,_0xad4209,_0x22c8d6){return _0x47a3(_0x1ac999- -0x295,_0xad4209);}if(_0x243152[_0x2fdfc7(-_0x336870._0x225ff3,-_0x336870._0x336812,-0x1cb,-_0x336870._0x46c525)]===0x0)return void 0x0;return{'role':_0x2fdfc7(-0x1b9,-0x1c4,-0x19b,-_0x336870._0x6e34fa),'content':_0x243152};}function getTextFromMessage(_0x5862eb){const _0x306461={_0x58b9e4:0x74,_0xfccbe:0x1bc,_0x45bc3c:0x1ba},_0x239856={_0x3840c4:0x7c};function _0x50e9bc(_0x5c2b6d,_0x368179,_0x2368fe,_0x327524){return _0x47a3(_0x327524- -0x2b2,_0x5c2b6d);}function _0x56a90d(_0x284c51,_0x4c1be6,_0x155fa8,_0xbf5a98){return _0x47a3(_0xbf5a98- -_0x239856._0x3840c4,_0x155fa8);}return normalizeContent(_0x5862eb?.[_0x56a90d(0x6a,0x65,0x8b,_0x306461._0x58b9e4)])[_0x50e9bc(-0x1b7,-_0x306461._0xfccbe,-0x1a7,-_0x306461._0x45bc3c)](_0xef9089=>_0xef9089[_0x50e9bc(-0x1dd,-0x1bd,-0x1b9,-0x1c3)]===_0x56a90d(0x3a,0x3b,0x35,0x42))[_0x56a90d(0x52,0x59,0x73,0x5c)](_0x816aa2=>_0x816aa2[_0x56a90d(0x57,0x37,0x42,0x42)])['join']('\x0a');}function getReasoningTextFromMessage(_0x3bc4ed){const _0xd567e={_0x4b2870:0x3c,_0x2eda08:0x56,_0x56200e:0x41,_0x3e0e89:0x47,_0x59e8ab:0x2d,_0x24f5ca:0x1c},_0x458029={_0x2ff6f8:0x14d,_0x534da0:0x152,_0x5ee38d:0x148,_0x14c608:0x122,_0x3e61e4:0x280,_0x57284d:0x288,_0xab554c:0x12e,_0x4944ba:0x14f,_0x512be2:0x2a6,_0x560913:0x291,_0x1ae847:0x286,_0x11bf78:0x291,_0x40aa86:0x293,_0x26900a:0x28f,_0x490d0b:0x250,_0x5366d2:0x153,_0x1a688b:0x26f,_0x460b3e:0x25a,_0xfd6395:0x281,_0x59fc25:0x27f,_0x5e56d6:0x26d,_0x318af5:0x260,_0x5a642d:0x264,_0x3841f6:0x25d,_0x246a30:0x125,_0x9bfc27:0x129,_0x4c4891:0x131,_0x27c158:0x11a,_0x2dd9ab:0x133,_0x37bbac:0x138,_0x230185:0x111,_0x426e27:0x10d,_0x3dbf68:0x27c,_0x5dc337:0x28b,_0x5c6d6c:0x28d},_0x4baa35={_0x57ee7c:0xb4};function _0x4c2f8f(_0x126201,_0x4c7c1e,_0x346f4d,_0x165409){return _0x47a3(_0x4c7c1e- -0x231,_0x126201);}function _0x257d6b(_0x5f43ce,_0xc90fb9,_0x2b3bbf,_0x365c1f){return _0x47a3(_0x2b3bbf- -0xa0,_0x5f43ce);}return normalizeContent(_0x3bc4ed?.['content'])[_0x257d6b(_0xd567e._0x4b2870,_0xd567e._0x2eda08,_0xd567e._0x56200e,0x30)](_0x52edf6=>{if(_0x52edf6['type']===_0xfe4b05(_0x458029._0x2ff6f8,0x13e,_0x458029._0x534da0,0x163))return _0x52edf6[_0xfe4b05(_0x458029._0x5ee38d,0x14d,0x13c,_0x458029._0x14c608)]['trim']()[_0xeafe83(_0x458029._0x3e61e4,0x285,_0x458029._0x57284d,0x297)]>0x0?[_0x52edf6[_0xfe4b05(0x141,_0x458029._0xab554c,0x13c,_0x458029._0x4944ba)]]:[];if(_0x52edf6[_0xeafe83(_0x458029._0x512be2,_0x458029._0x560913,0x2af,0x299)]===_0xfe4b05(0x14e,0x163,0x15d,0x171))return[_0xeafe83(0x28e,0x298,0x2ac,0x2ac)];if(_0x52edf6[_0xeafe83(_0x458029._0x1ae847,_0x458029._0x11bf78,_0x458029._0x40aa86,_0x458029._0x26900a)]!==_0xeafe83(0x24b,0x262,_0x458029._0x490d0b,0x27b))return[];const _0x2880a6=_0x52edf6[_0xfe4b05(_0x458029._0x5366d2,0x15c,0x13f,0x13a)][_0xeafe83(0x28a,0x27a,0x295,0x273)](_0xf32f67=>_0xf32f67[_0xfe4b05(0x117,0x145,0x12a,0x13b)])[_0xfe4b05(0x169,0x16e,0x164,_0x458029._0x2ff6f8)](_0x7e317d=>_0x7e317d[_0xfe4b05(0x11a,0x120,0x129,0x11e)]()[_0xfe4b05(0x147,0x15c,0x14f,0x15f)]>0x0)[_0xeafe83(0x277,_0x458029._0x1a688b,0x263,_0x458029._0x460b3e)]('\x0a\x0a');function _0xeafe83(_0x1ad015,_0x44899e,_0x24b60a,_0xb7a7c0){return _0x257d6b(_0x24b60a,_0x44899e-0x115,_0x44899e-0x242,_0xb7a7c0-0x1e3);}if(_0x2880a6[_0xeafe83(_0x458029._0xfd6395,0x285,_0x458029._0x59fc25,_0x458029._0x5e56d6)]>0x0)return[_0x2880a6];if(_0x52edf6[_0xeafe83(0x27b,_0x458029._0x318af5,_0x458029._0x5a642d,_0x458029._0x3841f6)]&&_0x52edf6[_0xfe4b05(0x118,_0x458029._0x246a30,0x12a,0x135)][_0xfe4b05(_0x458029._0x9bfc27,_0x458029._0x4c4891,_0x458029._0x9bfc27,_0x458029._0x27c158)]()[_0xfe4b05(0x16c,_0x458029._0x2dd9ab,0x14f,_0x458029._0x37bbac)]>0x0)return[_0x52edf6[_0xfe4b05(0x10d,_0x458029._0x230185,0x12a,_0x458029._0x426e27)]];function _0xfe4b05(_0xf4c7f5,_0x339f12,_0xb3f90e,_0x15fdfb){return _0x257d6b(_0x15fdfb,_0x339f12-_0x4baa35._0x57ee7c,_0xb3f90e-0x10c,_0x15fdfb-0x140);}return _0x52edf6[_0xeafe83(0x295,_0x458029._0x3dbf68,_0x458029._0x5dc337,_0x458029._0x5c6d6c)]?['(encrypted\x20reasoning)']:[];})[_0x257d6b(_0xd567e._0x3e0e89,0x27,_0xd567e._0x59e8ab,_0xd567e._0x24f5ca)]('\x0a\x0a');}function _0x4b7d(){const _0x528450=['Dg9VBhm','BwvZC2fNzxm','ywrK','khjLzgfJDgvKihjLyxnVBMLUzYK','CM9Szq','zMLSDgvY','B3v0Chv0','DhjPBq','Dgv4Da','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','B3bLBMfPx3jLyxnVBMLUzW','C3rVCf9YzwfZB24','Aw5WDxrFDg9Rzw5Z','CMvHC29UAw5N','nJaWmtCYvxrIy3PM','C2vZC2LVBKLK','y2fSBeLK','C3rVCfjLyxnVBG','AxnbCNjHEq','DhvYBKLK','B3v0Chv0rM9YBwf0','Aw5WDxruB2TLBNm','Bwf4x3rVA2vUCW','AM9PBG','Bwf4vg9Rzw5Z','m2PVsKLdsG','DgHPBMTPBMC','mJq5odKWnefguMnrzW','CMvHC29UAw5Nvg9Rzw5Z','C3vTBwfYEq','ChvZAa','mZa2tM5zBhPy','B3v0Chv0x3rVA2vUCW','ndi0odGWqKTKyuLL','BwfW','Dg9VBf91C2u','zw5JCNLWDgvKq29UDgvUDa','BwvZC2fNzq','yxnZAxn0yw50','Bwv0ywrHDge','ndi2mhjWzLfqyq','DxnLCG','ChjVDMLKzxjtDgf0zq','zMXHDe1HCa','Dg9VBf9Yzxn1Bhq','BgvUz3rO','mJGWmZa3n0vcvfbQCq','C3rYAw5N','yw50AhjVCgLJx3rOAw5RAw5N','vg9VBcbLEgvJDxrPB24GD2fZigLUDgvYCNvWDgvKigjLzM9YzsbJB21WBgv0Aw9UigfUzcbWCM9KDwnLzcbUBYbYzxn1BhqU','Bw9KzwW','C3rHDhvZ','mZqZoda4z2r5z0fk','B3v0Chv0vg9Rzw5Z','nJa0mde0nMf1uevvtW','C3LZDgvT','DxnHz2u','DhLWzq','y29UDgvUDa','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C2vZC2LVBL9Pza'];_0x4b7d=function(){return _0x528450;};return _0x4b7d();}function getToolUseBlocks(_0x190a41){const _0x5cf999={_0x479a92:0x1c1,_0x51f399:0x1c8},_0x395401={_0xff8d5b:0x34f};function _0x3a27df(_0x40e4e0,_0x38a2e3,_0x3edc51,_0x14bfb6){return _0x47a3(_0x3edc51-_0x395401._0xff8d5b,_0x38a2e3);}function _0x2a77ca(_0x4e47b5,_0x3ba19d,_0x2a831c,_0x1ccec5){return _0x47a3(_0x1ccec5-0xd8,_0x2a831c);}return normalizeContent(_0x190a41?.[_0x2a77ca(0x1c0,0x1b3,_0x5cf999._0x479a92,_0x5cf999._0x51f399)])['filter'](_0x2af83d=>_0x2af83d[_0x3a27df(0x45c,0x441,0x43e,0x42f)]==='tool_use');}function getToolResultBlocks(_0x2f8386){const _0x25b32c={_0x2ab522:0x173},_0xe42b8e={_0x24f09b:0xd0},_0x427a11={_0x5acc72:0x63};function _0x51be31(_0x3fe89b,_0x49f13d,_0x2cc70a,_0x157f62){return _0x47a3(_0x157f62-_0x427a11._0x5acc72,_0x49f13d);}function _0xfece80(_0x128558,_0x109251,_0x14abc9,_0x2fb1fd){return _0x47a3(_0x109251-_0xe42b8e._0x24f09b,_0x128558);}return normalizeContent(_0x2f8386?.['content'])[_0x51be31(0x142,0x145,_0x25b32c._0x2ab522,0x15b)](_0x636a0d=>_0x636a0d['type']===_0x51be31(0x163,0x128,0x145,0x145));}function _0x541563(_0x21dfdb,_0x4d78f3,_0x324c01,_0x19ac54){return _0x47a3(_0x4d78f3- -0x258,_0x324c01);}function createToolResultUserMessage(_0x4f1814){const _0xc16765={_0x1515c1:0x2c},_0x494281={_0x319d23:0x95,_0x2ea1db:0xa8,_0x240c86:0xc4,_0x35ab49:0x1d1,_0x49f97b:0x1be,_0x1a92f3:0x1b6,_0x3ca4c8:0x1b5,_0x13c334:0x216,_0xc98cb5:0x21a,_0x356732:0xbc,_0x1bcd23:0xa1},_0xe67e18={_0x175bc9:0x9e};function _0x894531(_0x3d81e3,_0x1245b4,_0x3a77ad,_0xc11d21){return _0x47a3(_0x1245b4- -_0xe67e18._0x175bc9,_0x3d81e3);}return{'role':'user','content':_0x4f1814[_0x894531(0x31,0x3a,0x58,_0xc16765._0x1515c1)](_0x33f4ff=>{const _0x11663c={_0x27a76a:0x223,_0x1613ed:0x10f,_0x6e2e1:0x19a};function _0x1ade1a(_0xf01e1c,_0x17f2c7,_0x391be9,_0x558f61){return _0x894531(_0x558f61,_0x391be9- -0xec,_0x391be9-0xc5,_0x558f61-0xdc);}function _0x1c212e(_0x13a48b,_0x5cf5fe,_0x356e5a,_0x5315c0){return _0x894531(_0x5315c0,_0x13a48b- -_0x11663c._0x27a76a,_0x356e5a-_0x11663c._0x1613ed,_0x5315c0-_0x11663c._0x6e2e1);}return{'type':_0x1ade1a(-0xbc,-_0x494281._0x319d23,-_0x494281._0x2ea1db,-0xb4),'tool_use_id':_0x33f4ff[_0x1ade1a(-0xce,-0xab,-_0x494281._0x240c86,-0xc5)],'content':_0x33f4ff[_0x1c212e(-_0x494281._0x35ab49,-_0x494281._0x49f97b,-_0x494281._0x1a92f3,-_0x494281._0x3ca4c8)]??_0x33f4ff[_0x1c212e(-0x205,-_0x494281._0x13c334,-_0x494281._0xc98cb5,-0x1f9)],'is_error':_0x33f4ff[_0x1ade1a(-_0x494281._0x356732,-0x94,-_0x494281._0x1bcd23,-0xc0)]==='error'};})};}var INTERRUPTED_TOOL_RESULT_TEXT=_0x541563(-0x16e,-0x171,-0x163,-0x173);function synthesizeMissingToolResults(_0x17a6f7){const _0x4a3dcf={_0x22ef23:0x3e3,_0x4107c4:0x3cc,_0x4db419:0x3df,_0x80e095:0x4,_0x44b50e:0x1e,_0x3f6403:0x3c6,_0x2835d8:0x3cb,_0x520d62:0x3ca,_0x16393d:0x3d2,_0x2cd70a:0x42,_0x420da9:0x36,_0x20646f:0x23,_0x11b886:0x24,_0x210825:0x21},_0x125227={_0x5b9d8c:0x142},_0x4472cc={_0x33422c:0x19b,_0x2b0cb5:0x17a},_0xaa5d1d=new Set();function _0x17b231(_0x3ee211,_0x2aeedb,_0x3f7889,_0x4189d4){return _0x541563(_0x3ee211-_0x4472cc._0x33422c,_0x3f7889-0x546,_0x3ee211,_0x4189d4-_0x4472cc._0x2b0cb5);}function _0x140cb0(_0x1cc010,_0x4c685a,_0x15562d,_0x45f4a0){return _0x541563(_0x1cc010-0x77,_0x45f4a0-_0x125227._0x5b9d8c,_0x1cc010,_0x45f4a0-0x86);}for(const _0x188364 of _0x17a6f7){for(const _0x3ba00e of getToolResultBlocks(_0x188364)){_0xaa5d1d[_0x17b231(0x3e9,0x3eb,_0x4a3dcf._0x22ef23,0x3f8)](_0x3ba00e['tool_use_id']);}}const _0xfc7e8a=[];for(const _0x21835b of _0x17a6f7){_0xfc7e8a[_0x17b231(_0x4a3dcf._0x4107c4,0x3bb,0x3c2,_0x4a3dcf._0x4db419)](_0x21835b);const _0x4d8269=getToolUseBlocks(_0x21835b)[_0x140cb0(-_0x4a3dcf._0x80e095,-0x5,-0x10,-_0x4a3dcf._0x44b50e)](_0x9eb746=>!_0xaa5d1d['has'](_0x9eb746['id']));if(_0x4d8269[_0x17b231(0x3c3,_0x4a3dcf._0x3f6403,0x3d1,_0x4a3dcf._0x2835d8)]===0x0)continue;_0xfc7e8a[_0x17b231(_0x4a3dcf._0x520d62,0x3a3,0x3c2,_0x4a3dcf._0x16393d)]({'role':_0x140cb0(-0x27,-0x3e,-_0x4a3dcf._0x2cd70a,-0x37),'content':_0x4d8269[_0x140cb0(-_0x4a3dcf._0x420da9,-_0x4a3dcf._0x20646f,-0x3f,-0x3e)](_0x4c6b4d=>({'type':_0x17b231(0x3e7,0x3cf,0x3d0,0x3c5),'tool_use_id':_0x4c6b4d['id'],'content':INTERRUPTED_TOOL_RESULT_TEXT,'is_error':!![]}))});for(const _0x1c4a00 of _0x4d8269){_0xaa5d1d[_0x140cb0(-0x28,-0x35,-_0x4a3dcf._0x11b886,-_0x4a3dcf._0x210825)](_0x1c4a00['id']);}}return _0xfc7e8a;}export{createTextBlock,normalizeTextBlock,normalizeContent,normalizeSystem,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(_0x5f8eed,_0x3755a9){var _0x405cf9={_0x1ade4e:0x5f,_0x3991e9:0x25e,_0x3443de:0x25c,_0x38cea4:0x62,_0x20e005:0x66,_0x38d553:0x6a,_0x4001ed:0x77,_0x587219:0x6e,_0x2728be:0x71,_0x57635b:0x70,_0x5661c4:0x24a,_0x30c3ce:0x71,_0x47e6e1:0x74,_0x5cd2d9:0x25a,_0x165072:0x255,_0x53ce76:0x24c,_0x38a375:0x25d,_0x27b621:0x58,_0x4a2a65:0x63},_0x29f918={_0x34f129:0x1cf},_0x37547f={_0x229460:0xef},_0x2c237c=_0x5f8eed();function _0x70c51d(_0x4a5098,_0x25e425,_0x2864be,_0x5c82b5){return _0x7c81(_0x2864be-_0x37547f._0x229460,_0x4a5098);}function _0x5ca98d(_0x514286,_0x3571fd,_0x614d8f,_0x2f2a76){return _0x7c81(_0x2f2a76- -_0x29f918._0x34f129,_0x614d8f);}while(!![]){try{var _0x96f8d6=parseInt(_0x5ca98d(-0x59,-0x67,-0x58,-_0x405cf9._0x1ade4e))/0x1*(-parseInt(_0x70c51d(0x267,0x268,_0x405cf9._0x3991e9,_0x405cf9._0x3443de))/0x2)+parseInt(_0x5ca98d(-_0x405cf9._0x38cea4,-_0x405cf9._0x20e005,-0x6b,-0x65))/0x3+-parseInt(_0x5ca98d(-0x70,-_0x405cf9._0x38d553,-_0x405cf9._0x4001ed,-_0x405cf9._0x587219))/0x4+-parseInt(_0x5ca98d(-_0x405cf9._0x2728be,-_0x405cf9._0x57635b,-0x6e,-0x6d))/0x5+parseInt(_0x70c51d(_0x405cf9._0x5661c4,0x258,0x24e,0x252))/0x6+-parseInt(_0x5ca98d(-_0x405cf9._0x30c3ce,-_0x405cf9._0x47e6e1,-0x69,-0x6b))/0x7*(-parseInt(_0x70c51d(_0x405cf9._0x5cd2d9,0x254,_0x405cf9._0x165072,_0x405cf9._0x53ce76))/0x8)+-parseInt(_0x70c51d(_0x405cf9._0x38a375,0x260,0x258,0x259))/0x9*(-parseInt(_0x5ca98d(-0x59,-0x69,-_0x405cf9._0x27b621,-_0x405cf9._0x4a2a65))/0xa);if(_0x96f8d6===_0x3755a9)break;else _0x2c237c['push'](_0x2c237c['shift']());}catch(_0x7710f){_0x2c237c['push'](_0x2c237c['shift']());}}}(_0x52d2,0xaa38f));var OperationAbortedError=class extends Error{[_0x39e636(-0x26f,-0x268,-0x265,-0x267)]=_0x39e636(-0x270,-0x260,-0x268,-0x269);constructor(_0x2ba7ca=_0xb6bae1(0x3bc,0x3c4,0x3c4,0x3bd)){super(_0x2ba7ca),this['name']='AbortError';}};function toAbortError(_0x17f890){var _0x49d912={_0x52db36:0x55,_0x6e30dc:0x52,_0x53fdd0:0x1e3,_0xfdf666:0x1e1,_0x283c74:0x1e3},_0x56858a={_0x1e124c:0xff},_0x2e252f={_0x52b400:0x6c,_0x111617:0x1b2};if(isAbortError(_0x17f890))return _0x17f890;if(_0x17f890 instanceof Error)return new OperationAbortedError(_0x17f890[_0x1a5322(0x4a,0x48,_0x49d912._0x52db36,_0x49d912._0x6e30dc)]);function _0x1a5322(_0x39830b,_0x134988,_0x2064cf,_0x19cffe){return _0x39e636(_0x39830b-_0x2e252f._0x52b400,_0x134988-_0x2e252f._0x111617,_0x2064cf,_0x19cffe-0x2a8);}if(typeof _0x17f890===_0x3055d6(-_0x49d912._0x53fdd0,-_0x49d912._0xfdf666,-0x1eb,-0x1de)&&_0x17f890[_0x3055d6(-0x1e0,-_0x49d912._0x283c74,-_0x49d912._0x53fdd0,-0x1df)]>0x0)return new OperationAbortedError(_0x17f890);function _0x3055d6(_0x142df6,_0x301cca,_0x1fe7e7,_0xc4e5c1){return _0xb6bae1(_0x142df6-0xef,_0xc4e5c1,_0x142df6- -0x5a8,_0xc4e5c1-_0x56858a._0x1e124c);}return new OperationAbortedError();}function _0x7c81(_0x5c25d7,_0x2aac6a){_0x5c25d7=_0x5c25d7-0x15e;var _0x52d251=_0x52d2();var _0x7c8174=_0x52d251[_0x5c25d7];if(_0x7c81['GKUkqh']===undefined){var _0x534ae6=function(_0x4a4a1e){var _0x1fb625='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0x2ba7ca='',_0x17f890='';for(var _0x25b71d=0x0,_0x33189f,_0xb8a0ae,_0x3d7772=0x0;_0xb8a0ae=_0x4a4a1e['charAt'](_0x3d7772++);~_0xb8a0ae&&(_0x33189f=_0x25b71d%0x4?_0x33189f*0x40+_0xb8a0ae:_0xb8a0ae,_0x25b71d++%0x4)?_0x2ba7ca+=String['fromCharCode'](0xff&_0x33189f>>(-0x2*_0x25b71d&0x6)):0x0){_0xb8a0ae=_0x1fb625['indexOf'](_0xb8a0ae);}for(var _0x48293e=0x0,_0x3f49bb=_0x2ba7ca['length'];_0x48293e<_0x3f49bb;_0x48293e++){_0x17f890+='%'+('00'+_0x2ba7ca['charCodeAt'](_0x48293e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x17f890);};_0x7c81['IcAHjf']=_0x534ae6,_0x7c81['VOjjPF']={},_0x7c81['GKUkqh']=!![];}var _0x264da1=_0x52d251[0x0],_0x417362=_0x5c25d7+_0x264da1,_0x32e661=_0x7c81['VOjjPF'][_0x417362];return!_0x32e661?(_0x7c8174=_0x7c81['IcAHjf'](_0x7c8174),_0x7c81['VOjjPF'][_0x417362]=_0x7c8174):_0x7c8174=_0x32e661,_0x7c8174;}function _0xb6bae1(_0x84a786,_0x2e736b,_0x138f2c,_0x2d6b32){return _0x7c81(_0x138f2c-0x25d,_0x2e736b);}function isAbortError(_0x25b71d){var _0x3fd06a={_0x2eba3d:0x355,_0x15a3b0:0x35c,_0x30dd1e:0x35e,_0x33e8d3:0x354,_0x3cb2b6:0x4a,_0x19e364:0x5b,_0x5ee536:0x56,_0x256702:0x5a,_0x5cd0a9:0x53,_0x439140:0x52,_0x54378d:0x5f,_0x50bcf9:0x66,_0x5a356e:0x53},_0x337b09={_0x503220:0xea},_0x52aed7={_0x298349:0x1e2,_0x15c9d4:0x54};function _0x1c49e7(_0x1bc9e5,_0x2987df,_0x2d7aec,_0x20f66e){return _0x39e636(_0x1bc9e5-_0x52aed7._0x298349,_0x2987df-_0x52aed7._0x15c9d4,_0x2987df,_0x1bc9e5-0x5af);}function _0x1e09c9(_0x5c2942,_0x20d5f2,_0x5e965a,_0x361fef){return _0xb6bae1(_0x5c2942-_0x337b09._0x503220,_0x5c2942,_0x20d5f2- -0x418,_0x361fef-0x51);}return _0x25b71d instanceof OperationAbortedError||_0x25b71d instanceof Error&&(_0x25b71d[_0x1c49e7(_0x3fd06a._0x2eba3d,_0x3fd06a._0x15a3b0,_0x3fd06a._0x30dd1e,_0x3fd06a._0x33e8d3)]===_0x1e09c9(-0x48,-0x49,-0x51,-_0x3fd06a._0x3cb2b6)||_0x1e09c9(-0x62,-_0x3fd06a._0x19e364,-_0x3fd06a._0x5ee536,-_0x3fd06a._0x256702)in _0x25b71d&&_0x25b71d[_0x1e09c9(-_0x3fd06a._0x5cd0a9,-0x5b,-_0x3fd06a._0x439140,-_0x3fd06a._0x54378d)]===_0x1e09c9(-_0x3fd06a._0x50bcf9,-0x5d,-_0x3fd06a._0x5a356e,-0x5a));}function throwIfAborted(_0x33189f){if(!_0x33189f?.['aborted'])return;throw toAbortError(_0x33189f['reason']);}function addAbortListener(_0xb8a0ae,_0x3d7772){var _0x8a0b22={_0x1e2a57:0x451,_0xd6f867:0x454,_0x48d1d8:0x45c,_0x40e2ef:0x466},_0x317b2d={_0x19b3ae:0x54,_0x5138f4:0xbf},_0x34c9d4={_0x328882:0xa5},_0x54eb3a={_0x254015:0x31},_0x52f49d={_0x3c200c:0x92};function _0xa09e27(_0x8aae9c,_0x25cfa1,_0x501bc5,_0x304639){return _0x39e636(_0x8aae9c-0x1a5,_0x25cfa1-_0x52f49d._0x3c200c,_0x25cfa1,_0x304639-0xc1);}if(!_0xb8a0ae)return()=>{};if(_0xb8a0ae[_0x593d3d(_0x8a0b22._0x1e2a57,_0x8a0b22._0xd6f867,0x454,0x459)])return _0x3d7772(),()=>{};const _0x48293e=()=>{_0x3d7772();};function _0x593d3d(_0x34b287,_0x620962,_0x524253,_0x10e4e8){return _0x39e636(_0x34b287-_0x54eb3a._0x254015,_0x620962-0xed,_0x620962,_0x10e4e8-0x6bb);}return _0xb8a0ae[_0xa09e27(-0x193,-0x18f,-0x18f,-0x198)](_0x593d3d(_0x8a0b22._0x48d1d8,_0x8a0b22._0x40e2ef,0x45d,0x467),_0x48293e,{'once':!![]}),()=>{var _0x1acb93={_0x424058:0xfc,_0x9b329b:0x4ab};function _0x2ffe16(_0x470f86,_0x160c6e,_0xd1f0a,_0x99d3f9){return _0x593d3d(_0x470f86-_0x1acb93._0x424058,_0x160c6e,_0xd1f0a-0xe5,_0xd1f0a- -_0x1acb93._0x9b329b);}function _0x112e59(_0x1e041b,_0x557531,_0x680acf,_0x3a3e8b){return _0x593d3d(_0x1e041b-0x1d9,_0x3a3e8b,_0x680acf-_0x34c9d4._0x328882,_0x557531- -0x3a8);}_0xb8a0ae[_0x2ffe16(-0x4e,-_0x317b2d._0x19b3ae,-0x54,-0x53)](_0x112e59(0xb9,_0x317b2d._0x5138f4,0xc0,0xc5),_0x48293e);};}function _0x39e636(_0x5dfac7,_0x5ba0f4,_0x1c443a,_0x176b3e){var _0x16facf={_0x830d34:0x3c7};return _0x7c81(_0x176b3e- -_0x16facf._0x830d34,_0x1c443a);}function _0x52d2(){var _0x2da99f=['mJa0nfD1tNzjEG','mta3vwTlzfLw','BwvZC2fNzq','qwjVCNrfCNjVCG','ywjVCNq','qujpuLrFrvjs','ndaZoty1nKXItMXdwa','y29Kzq','ndeYntKZnKjethfvrW','mZi2mJyXnxDcCgXPuq','CMvTB3zLrxzLBNrmAxn0zw5LCG','mJmXsKjVExbO','ywjVCNrLza','mtm5ntKYrujuveTl','t3bLCMf0Aw9UigfIB3j0zwq','C3rYAw5N','mZuXCe9uBfz3','mZy0ndCWm0HeDK9mCW','BgvUz3rO','nJGYmgzICundwG','BMfTzq','ywrKrxzLBNrmAxn0zw5LCG'];_0x52d2=function(){return _0x2da99f;};return _0x52d2();}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
1
+ function _0xac608e(_0x408fcb,_0x17d0ef,_0x48491a,_0x5a754d){var _0x1968b3={_0x4fb70b:0x2eb};return _0x2ed3(_0x17d0ef-_0x1968b3._0x4fb70b,_0x48491a);}function _0x2ed3(_0x5c0ac9,_0x2aeca3){_0x5c0ac9=_0x5c0ac9-0x88;var _0x41c3e7=_0x41c3();var _0x2ed339=_0x41c3e7[_0x5c0ac9];if(_0x2ed3['SPVASn']===undefined){var _0x1609dc=function(_0x46f906){var _0x46eec0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xc62ad5='',_0x2612aa='';for(var _0x548cfd=0x0,_0x196f0d,_0x14a611,_0x3bb4c2=0x0;_0x14a611=_0x46f906['charAt'](_0x3bb4c2++);~_0x14a611&&(_0x196f0d=_0x548cfd%0x4?_0x196f0d*0x40+_0x14a611:_0x14a611,_0x548cfd++%0x4)?_0xc62ad5+=String['fromCharCode'](0xff&_0x196f0d>>(-0x2*_0x548cfd&0x6)):0x0){_0x14a611=_0x46eec0['indexOf'](_0x14a611);}for(var _0x268bff=0x0,_0x4372fb=_0xc62ad5['length'];_0x268bff<_0x4372fb;_0x268bff++){_0x2612aa+='%'+('00'+_0xc62ad5['charCodeAt'](_0x268bff)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2612aa);};_0x2ed3['EReDcD']=_0x1609dc,_0x2ed3['ipSlQK']={},_0x2ed3['SPVASn']=!![];}var _0x2e8c6e=_0x41c3e7[0x0],_0x3ff18c=_0x5c0ac9+_0x2e8c6e,_0xb83041=_0x2ed3['ipSlQK'][_0x3ff18c];return!_0xb83041?(_0x2ed339=_0x2ed3['EReDcD'](_0x2ed339),_0x2ed3['ipSlQK'][_0x3ff18c]=_0x2ed339):_0x2ed339=_0xb83041,_0x2ed339;}function _0x5bd514(_0x3a8652,_0xed451c,_0x3ed6fc,_0x11d68b){var _0x381ae6={_0x469104:0x3bc};return _0x2ed3(_0x11d68b- -_0x381ae6._0x469104,_0x3a8652);}(function(_0x361cf4,_0x4186bf){var _0x5b4e87={_0xa80252:0x27,_0x579ef3:0x22,_0x2bb2a7:0x11b,_0x11edbd:0x35,_0xf5049c:0x1c,_0x881760:0x1e,_0x49eac4:0x11e,_0x4bae4a:0x121,_0x162c52:0x1b,_0x3c7c0c:0x18,_0x5bd19c:0x126,_0x4f7253:0x21,_0x5e4837:0x128},_0xf04c88={_0x304f24:0x1ba};function _0x392456(_0x2beb0e,_0x533593,_0x5ecf5c,_0x5da634){return _0x2ed3(_0x5da634- -_0xf04c88._0x304f24,_0x533593);}var _0x18cf80=_0x361cf4();function _0x2e5462(_0x6e3aff,_0x278f36,_0x18d2bd,_0x970728){return _0x2ed3(_0x6e3aff- -0x71,_0x18d2bd);}while(!![]){try{var _0xbd35e6=-parseInt(_0x2e5462(0x25,0x20,_0x5b4e87._0xa80252,0x21))/0x1+parseInt(_0x2e5462(0x17,_0x5b4e87._0x579ef3,0x13,0x17))/0x2+-parseInt(_0x392456(-0x121,-_0x5b4e87._0x2bb2a7,-0x131,-0x126))/0x3+parseInt(_0x2e5462(0x2b,0x2a,_0x5b4e87._0x11edbd,0x26))/0x4+-parseInt(_0x2e5462(_0x5b4e87._0xf5049c,0x1a,0x1b,_0x5b4e87._0x881760))/0x5*(-parseInt(_0x392456(-0x11f,-0x119,-_0x5b4e87._0x49eac4,-_0x5b4e87._0x4bae4a))/0x6)+parseInt(_0x2e5462(0x1e,0x29,_0x5b4e87._0x162c52,_0x5b4e87._0x3c7c0c))/0x7*(parseInt(_0x392456(-0x120,-_0x5b4e87._0x5bd19c,-0x124,-0x123))/0x8)+-parseInt(_0x2e5462(0x1f,0x25,0x18,_0x5b4e87._0x4f7253))/0x9*(parseInt(_0x392456(-_0x5b4e87._0x4bae4a,-0x125,-_0x5b4e87._0x4bae4a,-_0x5b4e87._0x5e4837))/0xa);if(_0xbd35e6===_0x4186bf)break;else _0x18cf80['push'](_0x18cf80['shift']());}catch(_0x1951f7){_0x18cf80['push'](_0x18cf80['shift']());}}}(_0x41c3,0xb3cf8));function _0x41c3(){var _0x52d694=['mtu1mdK0z0P3Eufe','BMfTzq','CMvHC29U','ndi2ndGYoe1VshvXtG','qujpuLrFrvjs','mtq1mta2nfD6Dwzyza','y29Kzq','t3bLCMf0Aw9UigfIB3j0zwq','BwvZC2fNzq','ywjVCNrLza','otvNCKLdtLe','qwjVCNrfCNjVCG','n2npt0PiyW','mti5mdzOENzOBeq','BgvUz3rO','nZy3mgntrhfPrW','ywrKrxzLBNrmAxn0zw5LCG','mJi5mda2nuDRBgLRyW','C3rYAw5N','mZC2mJm5uezpBhDd','ntu0ndG0ogjfBvfpAq','ywjVCNq'];_0x41c3=function(){return _0x52d694;};return _0x41c3();}var OperationAbortedError=class extends Error{[_0xac608e(0x376,0x374,0x36f,0x378)]=_0xac608e(0x380,0x388,0x386,0x380);constructor(_0xc62ad5=_0x5bd514(-0x330,-0x32e,-0x335,-0x332)){var _0x398d00={_0x184ff6:0x257,_0x2cad5c:0x24a},_0x2c483e={_0x40ef40:0x5a,_0x4aad0c:0x1dd},_0xa78e32={_0xf52f39:0x189};super(_0xc62ad5);function _0x3db857(_0x9641c9,_0x29d6f3,_0x7ce1e1,_0x28dee5){return _0xac608e(_0x9641c9-_0xa78e32._0xf52f39,_0x28dee5- -0x49e,_0x29d6f3,_0x28dee5-0xdd);}function _0x23a0fe(_0x335c35,_0x355f15,_0x3bd022,_0x18c312){return _0x5bd514(_0x355f15,_0x355f15-_0x2c483e._0x40ef40,_0x3bd022-_0x2c483e._0x4aad0c,_0x3bd022-0x577);}this[_0x23a0fe(_0x398d00._0x184ff6,0x255,0x255,0x258)]=_0x23a0fe(0x253,0x250,0x249,_0x398d00._0x2cad5c);}};function toAbortError(_0x2612aa){var _0x3c98ee={_0x10aae1:0x9f,_0x175557:0xab,_0x591cf5:0x9b,_0x2e815d:0x9c,_0x1b64c5:0x3eb,_0x2a2801:0x3f0,_0xcae862:0x3ed,_0x113b9d:0x3e5},_0xae2d06={_0x3adec5:0x7e,_0x3fa31e:0x69},_0x517bbd={_0x4c2f6a:0x2c};if(isAbortError(_0x2612aa))return _0x2612aa;if(_0x2612aa instanceof Error)return new OperationAbortedError(_0x2612aa[_0x448350(-0xaf,-_0x3c98ee._0x10aae1,-0xa9,-_0x3c98ee._0x175557)]);if(typeof _0x2612aa===_0x448350(-_0x3c98ee._0x591cf5,-0xa7,-0x9f,-_0x3c98ee._0x2e815d)&&_0x2612aa[_0xdfa294(_0x3c98ee._0x1b64c5,_0x3c98ee._0x2a2801,_0x3c98ee._0xcae862,_0x3c98ee._0x113b9d)]>0x0)return new OperationAbortedError(_0x2612aa);function _0x448350(_0x3b9b27,_0xa4edf1,_0x5028b1,_0x28efe4){return _0xac608e(_0x3b9b27-0x14f,_0x5028b1- -0x41f,_0xa4edf1,_0x28efe4-_0x517bbd._0x4c2f6a);}function _0xdfa294(_0x905f70,_0x59999e,_0x2af24f,_0x1f5b37){return _0xac608e(_0x905f70-_0xae2d06._0x3adec5,_0x1f5b37-_0xae2d06._0x3fa31e,_0x2af24f,_0x1f5b37-0x92);}return new OperationAbortedError();}function isAbortError(_0x548cfd){var _0x51cc59={_0x5a8f9d:0x433,_0x5d9337:0x42f,_0x263967:0x1d4,_0x23b0d7:0x1cd,_0x358064:0x1dc,_0xc9dac6:0x1d8,_0x430e05:0x437,_0x29a04:0x432};function _0x20cc8d(_0xd6af20,_0x5747b1,_0x5cb1ef,_0x1f1ccf){return _0x5bd514(_0xd6af20,_0x5747b1-0xa8,_0x5cb1ef-0x1c4,_0x1f1ccf-0x751);}function _0x5abca3(_0x264bbf,_0x9e4d0f,_0x42be7f,_0xd453b7){return _0x5bd514(_0x42be7f,_0x9e4d0f-0x1b9,_0x42be7f-0x1b8,_0x9e4d0f-0x507);}return _0x548cfd instanceof OperationAbortedError||_0x548cfd instanceof Error&&(_0x548cfd[_0x20cc8d(0x435,_0x51cc59._0x5a8f9d,0x42a,_0x51cc59._0x5d9337)]==='AbortError'||_0x5abca3(0x1d3,_0x51cc59._0x263967,_0x51cc59._0x23b0d7,0x1d6)in _0x548cfd&&_0x548cfd[_0x5abca3(_0x51cc59._0x358064,0x1d4,_0x51cc59._0xc9dac6,0x1de)]===_0x20cc8d(0x43c,_0x51cc59._0x430e05,0x42f,_0x51cc59._0x29a04));}function throwIfAborted(_0x196f0d){var _0x14f3e9={_0x1a0258:0x98,_0x455813:0x93},_0x3514bd={_0x3d79fd:0x2ee},_0x1e6f13={_0x51ec03:0x471};if(!_0x196f0d?.[_0x469b90(0x13d,0x14c,0x13a,0x141)])return;function _0x469b90(_0x32c6c7,_0x50c278,_0x4f312a,_0x3e198f){return _0x5bd514(_0x32c6c7,_0x50c278-0x122,_0x4f312a-0x16f,_0x3e198f-_0x1e6f13._0x51ec03);}function _0x528292(_0x3ceb7c,_0x241f03,_0x1c65f1,_0x1e7ff5){return _0xac608e(_0x3ceb7c-0x1d1,_0x241f03- -_0x3514bd._0x3d79fd,_0x1c65f1,_0x1e7ff5-0x58);}throw toAbortError(_0x196f0d[_0x528292(0x91,_0x14f3e9._0x1a0258,_0x14f3e9._0x455813,0x95)]);}function addAbortListener(_0x14a611,_0x3bb4c2){var _0xb168cb={_0x5c6aec:0x17b,_0x328ff2:0x17f,_0x15b8ce:0x179,_0x45f4a0:0x17e,_0x542d3f:0xcc,_0x195f8c:0xc7,_0x935316:0xca,_0xa2870f:0xc3},_0x13f33c={_0x2c9301:0x3e7},_0x1c4740={_0xe321a5:0x19d,_0x49f008:0xfd};if(!_0x14a611)return()=>{};if(_0x14a611['aborted'])return _0x3bb4c2(),()=>{};const _0x268bff=()=>{_0x3bb4c2();};function _0x348a11(_0x947ec4,_0x9992dd,_0x24ab59,_0x5a23de){return _0x5bd514(_0x947ec4,_0x9992dd-_0x1c4740._0xe321a5,_0x24ab59-_0x1c4740._0x49f008,_0x9992dd-0x4a8);}_0x14a611[_0x348a11(_0xb168cb._0x5c6aec,_0xb168cb._0x328ff2,_0xb168cb._0x15b8ce,_0xb168cb._0x45f4a0)](_0x4fff6c(_0xb168cb._0x542d3f,_0xb168cb._0x195f8c,_0xb168cb._0x935316,_0xb168cb._0xa2870f),_0x268bff,{'once':!![]});function _0x4fff6c(_0x3e8637,_0x4efc99,_0x4ce4c8,_0x5f464a){return _0x5bd514(_0x4ce4c8,_0x4efc99-0xbc,_0x4ce4c8-0xa5,_0x5f464a-_0x13f33c._0x2c9301);}return()=>{_0x14a611['removeEventListener']('abort',_0x268bff);};}export{OperationAbortedError,toAbortError,isAbortError,throwIfAborted,addAbortListener};
@@ -1 +1 @@
1
- (function(_0x6a39dc,_0x545949){const _0x50bd5a={_0x41357f:0x2b7,_0x187960:0x2bb,_0x3e838c:0x2af,_0x2ed4a6:0x2ab,_0x3cbde6:0x2c5,_0x4550ee:0x2ba,_0x2c0e5b:0x3a8,_0x16c985:0x3a6,_0x462258:0x399,_0x107ced:0x3a2,_0x2299b4:0x3a3,_0x6fd537:0x3a9,_0xb064:0x2b7,_0x293407:0x2b2,_0x2711ae:0x2a9,_0x17f1a4:0x2b1,_0x1db05f:0x2ad,_0x525a5f:0x2b4,_0x889972:0x2ae,_0x5ac73e:0x3aa,_0x19c3db:0x39f},_0x283a7c={_0x3f3e24:0x21f},_0x443e57={_0x43bb4b:0x131};function _0x594a98(_0xa4db22,_0x312428,_0x266f71,_0x43e8e0){return _0x39de(_0x312428-_0x443e57._0x43bb4b,_0xa4db22);}function _0x57ac9d(_0x30a0d0,_0x5c2d81,_0x222ceb,_0x1e2c24){return _0x39de(_0x30a0d0-_0x283a7c._0x3f3e24,_0x5c2d81);}const _0x5bc37c=_0x6a39dc();while(!![]){try{const _0x355cee=-parseInt(_0x594a98(0x2ad,0x2b5,_0x50bd5a._0x41357f,_0x50bd5a._0x187960))/0x1*(-parseInt(_0x594a98(_0x50bd5a._0x3e838c,_0x50bd5a._0x3e838c,_0x50bd5a._0x2ed4a6,0x2b1))/0x2)+parseInt(_0x594a98(_0x50bd5a._0x3cbde6,0x2be,0x2bf,_0x50bd5a._0x4550ee))/0x3*(-parseInt(_0x57ac9d(0x39e,0x3a8,_0x50bd5a._0x2c0e5b,0x3a8))/0x4)+-parseInt(_0x57ac9d(_0x50bd5a._0x16c985,_0x50bd5a._0x2c0e5b,0x3a4,0x3b2))/0x5*(parseInt(_0x57ac9d(_0x50bd5a._0x462258,0x39c,_0x50bd5a._0x107ced,0x38d))/0x6)+-parseInt(_0x57ac9d(0x3a8,_0x50bd5a._0x2299b4,0x3a0,_0x50bd5a._0x6fd537))/0x7*(-parseInt(_0x594a98(_0x50bd5a._0xb064,_0x50bd5a._0x293407,0x2b4,_0x50bd5a._0x2711ae))/0x8)+-parseInt(_0x594a98(_0x50bd5a._0x17f1a4,_0x50bd5a._0x1db05f,_0x50bd5a._0x525a5f,0x2a3))/0x9+parseInt(_0x594a98(0x2bc,0x2b1,0x2aa,_0x50bd5a._0x2711ae))/0xa*(parseInt(_0x594a98(_0x50bd5a._0x889972,0x2a8,0x2a6,0x2b1))/0xb)+-parseInt(_0x57ac9d(_0x50bd5a._0x5ac73e,_0x50bd5a._0x19c3db,0x3b0,0x3a1))/0xc;if(_0x355cee===_0x545949)break;else _0x5bc37c['push'](_0x5bc37c['shift']());}catch(_0xabfedd){_0x5bc37c['push'](_0x5bc37c['shift']());}}}(_0x5aa5,0x8cb55));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';function _0x5aa5(){const _0x127688=['ntu1D3zUDezb','Dgv4Da','BgvUz3rO','ndC1mtq1nxDMCK9NrG','ChvZAa','nta0yLf0s3PH','Aw5KzxG','ndG2mZuXnMPYyvnuBW','zNjVBq','ndyYourJC1D0Aq','Bwf0y2HbBgW','mtf0z1vsBe8','BgfZDeLUzgv4','CMvWBgfJzq','nLfoserIuG','yMfZzty0','ntmXntyXnLPdwwLHsW','C2XPy2u','mZy4mLjIBuX3Da','otG0sK1ZtMnx','odiZmZqWmg5lAgrsBG','mte3ndq4r3j5z21M','Aw1Hz2uVANbN','DgvZDa'];_0x5aa5=function(){return _0x127688;};return _0x5aa5();}import'../chunk-NYZR4XKO.js';import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-QDOE7NWO.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x3956e6){const _0x31ea9f={_0x4b368d:0x26f,_0x57e51c:0x26f};function _0x73fd1b(_0x33c40a,_0x4152cd,_0x3287c1,_0x1f6110){return _0x39de(_0x1f6110-0xf1,_0x3287c1);}return _0x3956e6===_0x73fd1b(_0x31ea9f._0x4b368d,0x26d,_0x31ea9f._0x57e51c,0x273)?'image/jpeg':_0x3956e6;}function isValidBase64(_0x52be6a){const _0x3ff274={_0x25261b:0x172,_0x3fc057:0x161,_0x2288a8:0x16a,_0x514b71:0x171,_0x49310b:0x16a,_0x4dabae:0x160,_0x194d48:0x16a,_0x59c779:0x142};if(_0x52be6a[_0x5a6446(-0x171,-_0x3ff274._0x25261b,-_0x3ff274._0x3fc057,-_0x3ff274._0x2288a8)]===0x0||_0x52be6a[_0x5a6446(-_0x3ff274._0x514b71,-_0x3ff274._0x49310b,-_0x3ff274._0x4dabae,-_0x3ff274._0x194d48)]%0x4!==0x0)return![];function _0x5a6446(_0x222fd9,_0x469f6b,_0x48fdd4,_0x38f2b5){return _0x39de(_0x38f2b5- -0x2f0,_0x222fd9);}function _0x22bf6c(_0x46769a,_0x334230,_0x3e5ce8,_0x2a2f0f){return _0x39de(_0x3e5ce8- -0x2be,_0x46769a);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/[_0x22bf6c(-0x135,-0x132,-0x13b,-_0x3ff274._0x59c779)](_0x52be6a);}function collectImageMatches(_0x2faa21){const _0x307e46={_0x5a6324:0x1d8,_0x2222cd:0x178,_0x177b69:0x1ee},_0x159b12={_0x4b388b:0x5f};function _0x9e397d(_0x368563,_0x1fb603,_0x64950c,_0x9dd577){return _0x39de(_0x64950c- -0x16,_0x368563);}function _0x4c06f0(_0x513738,_0x43640b,_0x4d7098,_0x8bff2e){return _0x39de(_0x8bff2e-_0x159b12._0x4b388b,_0x513738);}return DATA_URI_REGEX[_0x4c06f0(0x1e1,_0x307e46._0x5a6324,0x1d9,0x1d7)]=0x0,Array[_0x9e397d(0x17d,0x16c,0x176,_0x307e46._0x2222cd)](_0x2faa21[_0x4c06f0(0x1f1,0x1e3,_0x307e46._0x177b69,0x1ed)](DATA_URI_REGEX))['filter'](_0x1cbd6f=>{const _0x14cfdc=(_0x1cbd6f[0x2]??'')['replace'](/[\r\n]/g,'');return isValidBase64(_0x14cfdc);});}function hasPastedImages(_0x5f0136){function _0x3e0cff(_0x2082f3,_0x9737ad,_0x4e39cd,_0x2622fb){return _0x39de(_0x2082f3- -0x37b,_0x9737ad);}return collectImageMatches(_0x5f0136)[_0x3e0cff(-0x1f5,-0x1f5,-0x200,-0x1f0)]>0x0;}function contentFromPastedText(_0x1d0591){const _0x180474={_0x4ff50b:0x4aa,_0x4ace93:0x4b1,_0x352665:0x4a7,_0xe630ca:0x4a1,_0x47cb5d:0x49e,_0xb2036d:0x22c,_0x40eae9:0x222,_0x2548e8:0x22a,_0x3b98ce:0x218,_0x14f704:0x221,_0x1e9306:0x4ac,_0x5f2868:0x4a5,_0xeffb9e:0x4a9,_0xce690:0x20c,_0x24673c:0x217,_0xf66f7b:0x20f,_0x559df6:0x21c,_0x4fd8e7:0x4a9,_0x54db5f:0x4a2,_0xd037fc:0x4ac,_0xceec2f:0x4a8,_0x3d5758:0x4af},_0xe1b200={_0x459907:0x39d},_0x6262df={_0x795fb8:0x324},_0x432566=collectImageMatches(_0x1d0591),_0x496b84=[];let _0x482252=0x0;function _0x2a4742(_0x4b213b,_0x59e8f4,_0x16f291,_0x5c1549){return _0x39de(_0x4b213b-_0x6262df._0x795fb8,_0x16f291);}for(const _0x2f6340 of _0x432566){const _0x77c750=_0x2f6340[_0x2a4742(0x4ae,0x4b1,_0x180474._0x4ff50b,0x4ac)]??0x0,[_0x931650,_0x2dff06,_0x42386c]=_0x2f6340;_0x77c750>_0x482252&&_0x496b84['push']({'type':_0x2a4742(0x4a9,0x4b3,_0x180474._0x4ace93,_0x180474._0x352665),'text':_0x1d0591[_0x2a4742(_0x180474._0xe630ca,0x4a0,_0x180474._0x47cb5d,0x496)](_0x482252,_0x77c750)}),_0x496b84['push']({'type':'image','source':{'type':_0x14c928(-0x21c,-_0x180474._0xb2036d,-_0x180474._0x40eae9,-0x221),'media_type':normalizeMediaType(_0x2dff06),'data':_0x42386c[_0x14c928(-_0x180474._0x2548e8,-_0x180474._0x3b98ce,-0x224,-_0x180474._0x14f704)](/[\r\n]/g,'')}}),_0x482252=_0x77c750+_0x931650[_0x2a4742(0x4aa,_0x180474._0x1e9306,_0x180474._0x5f2868,_0x180474._0xeffb9e)];}function _0x14c928(_0x235690,_0xb5fd6e,_0x4ab01b,_0x4f07f3){return _0x39de(_0x4ab01b- -_0xe1b200._0x459907,_0xb5fd6e);}return _0x482252<_0x1d0591[_0x14c928(-_0x180474._0x14f704,-_0x180474._0xce690,-_0x180474._0x24673c,-_0x180474._0xf66f7b)]&&_0x496b84[_0x14c928(-0x20d,-_0x180474._0x559df6,-0x215,-0x21f)]({'type':_0x2a4742(_0x180474._0x4fd8e7,0x4af,0x4ab,_0x180474._0x4ff50b),'text':_0x1d0591[_0x2a4742(0x4a1,_0x180474._0x54db5f,_0x180474._0xd037fc,0x4a7)](_0x482252)}),_0x496b84['length']>0x0?_0x496b84:[{'type':_0x2a4742(0x4a9,_0x180474._0xceec2f,0x4ac,_0x180474._0x3d5758),'text':_0x1d0591}];}function _0x39de(_0x247dcf,_0x21ba91){_0x247dcf=_0x247dcf-0x177;const _0x5aa52f=_0x5aa5();let _0x39de98=_0x5aa52f[_0x247dcf];if(_0x39de['qOWzaM']===undefined){var _0x151cfb=function(_0x5ebc7e){const _0x1905df='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3956e6='',_0x52be6a='';for(let _0x2faa21=0x0,_0x1cbd6f,_0x14cfdc,_0x5f0136=0x0;_0x14cfdc=_0x5ebc7e['charAt'](_0x5f0136++);~_0x14cfdc&&(_0x1cbd6f=_0x2faa21%0x4?_0x1cbd6f*0x40+_0x14cfdc:_0x14cfdc,_0x2faa21++%0x4)?_0x3956e6+=String['fromCharCode'](0xff&_0x1cbd6f>>(-0x2*_0x2faa21&0x6)):0x0){_0x14cfdc=_0x1905df['indexOf'](_0x14cfdc);}for(let _0x1d0591=0x0,_0x432566=_0x3956e6['length'];_0x1d0591<_0x432566;_0x1d0591++){_0x52be6a+='%'+('00'+_0x3956e6['charCodeAt'](_0x1d0591)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x52be6a);};_0x39de['beQyhv']=_0x151cfb,_0x39de['gXjfTP']={},_0x39de['qOWzaM']=!![];}const _0x3856bc=_0x5aa52f[0x0],_0x2ba615=_0x247dcf+_0x3856bc,_0x8f896a=_0x39de['gXjfTP'][_0x2ba615];return!_0x8f896a?(_0x39de98=_0x39de['beQyhv'](_0x39de98),_0x39de['gXjfTP'][_0x2ba615]=_0x39de98):_0x39de98=_0x8f896a,_0x39de98;}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
1
+ function _0x55bf(_0x5b5c31,_0x26c809){_0x5b5c31=_0x5b5c31-0x89;const _0x371323=_0x3713();let _0x55bf4a=_0x371323[_0x5b5c31];if(_0x55bf['MOAkZQ']===undefined){var _0x3247e6=function(_0x3bec77){const _0x1b14bf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4aeddd='',_0x395317='';for(let _0x945d9=0x0,_0x4915db,_0x88d8e1,_0x213737=0x0;_0x88d8e1=_0x3bec77['charAt'](_0x213737++);~_0x88d8e1&&(_0x4915db=_0x945d9%0x4?_0x4915db*0x40+_0x88d8e1:_0x88d8e1,_0x945d9++%0x4)?_0x4aeddd+=String['fromCharCode'](0xff&_0x4915db>>(-0x2*_0x945d9&0x6)):0x0){_0x88d8e1=_0x1b14bf['indexOf'](_0x88d8e1);}for(let _0x31c7a0=0x0,_0x740bef=_0x4aeddd['length'];_0x31c7a0<_0x740bef;_0x31c7a0++){_0x395317+='%'+('00'+_0x4aeddd['charCodeAt'](_0x31c7a0)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x395317);};_0x55bf['ZyEWtP']=_0x3247e6,_0x55bf['cuCMhs']={},_0x55bf['MOAkZQ']=!![];}const _0x32a6f0=_0x371323[0x0],_0xf57429=_0x5b5c31+_0x32a6f0,_0x317fef=_0x55bf['cuCMhs'][_0xf57429];return!_0x317fef?(_0x55bf4a=_0x55bf['ZyEWtP'](_0x55bf4a),_0x55bf['cuCMhs'][_0xf57429]=_0x55bf4a):_0x55bf4a=_0x317fef,_0x55bf4a;}(function(_0x3da7fe,_0xe52d4){const _0x764243={_0x1cdd0c:0x39,_0x7467e7:0x31,_0x166727:0x2b,_0x1ca1b4:0x32,_0x3edc64:0x81,_0xd8f43c:0x83,_0x52a418:0x7d,_0x24ade8:0x92,_0x507d0d:0x7c,_0x5e629a:0x83,_0x436856:0x74,_0x29b97b:0x77,_0xb4ea27:0x78,_0x2f3d39:0x6d,_0x42680e:0x25,_0x59a180:0x2a,_0x22f4df:0x20,_0x5b706b:0x8a,_0x32cee5:0x76,_0x49ca66:0x7f,_0x4af030:0x6e},_0x525aeb={_0x280ffc:0x114};function _0xf9fb2c(_0x419131,_0x41b0ee,_0x3dd734,_0xb5aff9){return _0x55bf(_0x41b0ee- -0x63,_0x3dd734);}function _0x3305d7(_0x17beda,_0x22f03f,_0x1314fb,_0x4088e7){return _0x55bf(_0x17beda- -_0x525aeb._0x280ffc,_0x1314fb);}const _0xf770b5=_0x3da7fe();while(!![]){try{const _0x5b3fed=parseInt(_0xf9fb2c(_0x764243._0x1cdd0c,_0x764243._0x7467e7,0x39,0x33))/0x1+-parseInt(_0x3305d7(-0x75,-0x6a,-0x7a,-0x77))/0x2*(parseInt(_0xf9fb2c(0x20,_0x764243._0x166727,_0x764243._0x1ca1b4,0x29))/0x3)+-parseInt(_0x3305d7(-0x76,-0x7f,-0x6f,-_0x764243._0x3edc64))/0x4*(parseInt(_0x3305d7(-_0x764243._0xd8f43c,-0x86,-0x78,-_0x764243._0x52a418))/0x5)+-parseInt(_0x3305d7(-0x89,-_0x764243._0x24ade8,-0x7e,-0x8a))/0x6+-parseInt(_0x3305d7(-_0x764243._0x507d0d,-_0x764243._0x5e629a,-0x76,-_0x764243._0x436856))/0x7+parseInt(_0x3305d7(-_0x764243._0x29b97b,-0x73,-_0x764243._0xb4ea27,-_0x764243._0x2f3d39))/0x8*(-parseInt(_0xf9fb2c(_0x764243._0x42680e,0x29,_0x764243._0x59a180,_0x764243._0x22f4df))/0x9)+parseInt(_0x3305d7(-0x82,-0x83,-_0x764243._0x5b706b,-_0x764243._0x32cee5))/0xa*(parseInt(_0x3305d7(-0x7a,-0x77,-_0x764243._0x49ca66,-_0x764243._0x4af030))/0xb);if(_0x5b3fed===_0xe52d4)break;else _0xf770b5['push'](_0xf770b5['shift']());}catch(_0x4fbef8){_0xf770b5['push'](_0xf770b5['shift']());}}}(_0x3713,0xebc7b));import{toOpenAiResponsesRequest}from'../chunk-NHBKADBW.js';import'../chunk-NYZR4XKO.js';function _0x3713(){const _0x7aa0ba=['BgvUz3rO','BgfZDeLUzgv4','mteWmZeYmZrkCK5vuKS','mJqYnti1n3H1sujzCW','C2XPy2u','mJu4mJq3oePzAvHrzG','Aw5KzxG','Aw1Hz2uVANbN','ntm1wLHst0jS','nJy2nta3mZbuEMHPuhy','Dgv4Da','mtG4mZm1ngDUALHtqG','Aw1Hz2uVANbLzW','yMfZzty0','Aw1Hz2u','otyZndyXofnXAvLxtW','CMvWBgfJzq','mtfrvuDZBwm','Bwf0y2HbBgW','ChvZAa','ntzzDwrWv1y','nJa1odrlvKvOvNa','mKrJyLbcuW'];_0x3713=function(){return _0x7aa0ba;};return _0x3713();}import{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toProviderModelRequest}from'../chunk-QDOE7NWO.js';var DATA_URI_REGEX=/data:(image\/(?:png|jpeg|jpg|gif|webp));base64,([A-Za-z0-9+/\r\n]+={0,2})/g;function normalizeMediaType(_0x4aeddd){const _0x130bda={_0x41eb9a:0xc5,_0xf7081f:0xb9,_0x393c63:0x26e,_0x484543:0x26d,_0x1141d4:0x26e},_0x20f092={_0x3c1a33:0x29};function _0xfe6b31(_0x1fe2ff,_0x5a703d,_0x23dc33,_0x17a2bc){return _0x55bf(_0x1fe2ff-_0x20f092._0x3c1a33,_0x23dc33);}function _0x5ce773(_0xb848ad,_0x17f412,_0x31991f,_0x35f210){return _0x55bf(_0x35f210- -0x2f8,_0xb848ad);}return _0x4aeddd===_0xfe6b31(0xb9,_0x130bda._0x41eb9a,0xb9,_0x130bda._0xf7081f)?_0x5ce773(-_0x130bda._0x393c63,-_0x130bda._0x484543,-_0x130bda._0x1141d4,-0x263):_0x4aeddd;}function isValidBase64(_0x395317){const _0x20e6c3={_0x184336:0xc6,_0x152a6f:0xc7,_0x1aa4ce:0xc0},_0x412cee={_0x3c343b:0x11a};if(_0x395317[_0x490d6b(_0x20e6c3._0x184336,_0x20e6c3._0x152a6f,0xc2,_0x20e6c3._0x1aa4ce)]===0x0||_0x395317[_0x490d6b(0xc4,0xcd,0xc2,0xc0)]%0x4!==0x0)return![];function _0x490d6b(_0x43be8f,_0x4d90cc,_0x53be35,_0x1e76cb){return _0x55bf(_0x53be35-0x39,_0x4d90cc);}function _0x317be4(_0x374bc1,_0x4600f6,_0x2c7202,_0x51233b){return _0x55bf(_0x4600f6- -_0x412cee._0x3c343b,_0x51233b);}return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/['test'](_0x395317);}function collectImageMatches(_0x945d9){const _0x10ce41={_0x16fdd1:0x398,_0x572799:0x39e,_0x41c577:0xb3,_0x399585:0xad};function _0x474ff5(_0x2beb67,_0x36c862,_0x196741,_0x3ea888){return _0x55bf(_0x3ea888- -0x148,_0x196741);}function _0x2b7a39(_0x4a2d04,_0x4f3b73,_0x5abf03,_0x22e76f){return _0x55bf(_0x5abf03-0x30e,_0x22e76f);}return DATA_URI_REGEX[_0x2b7a39(0x392,0x391,_0x10ce41._0x16fdd1,_0x10ce41._0x572799)]=0x0,Array['from'](_0x945d9[_0x474ff5(-_0x10ce41._0x41c577,-0xaf,-0xb4,-_0x10ce41._0x399585)](DATA_URI_REGEX))['filter'](_0x4915db=>{const _0x88d8e1=(_0x4915db[0x2]??'')['replace'](/[\r\n]/g,'');return isValidBase64(_0x88d8e1);});}function hasPastedImages(_0x213737){return collectImageMatches(_0x213737)['length']>0x0;}function contentFromPastedText(_0x31c7a0){const _0x5a0d76={_0x1fe26b:0x244,_0x5d7726:0x234,_0x48ef2f:0x45e,_0x42c68e:0x453,_0x3bb3be:0x241,_0x341390:0x23e,_0x2099cd:0x458,_0x5578a8:0x452,_0x4d5fc8:0x44a,_0x553a3f:0x247,_0x49678a:0x246,_0x5c3af1:0x441,_0x559c0f:0x248,_0xb62786:0x440,_0x388237:0x446,_0x2ee057:0x448,_0x38633c:0x451,_0xdaafbf:0x449,_0x446c06:0x44a,_0x15d222:0x449,_0xa20f78:0x443,_0x1b395f:0x23a,_0x3de708:0x242,_0xe22250:0x435,_0x318e62:0x23d};function _0x5e4410(_0x1cb0d2,_0x5cf4b1,_0x297184,_0x39916f){return _0x55bf(_0x297184-0x3b7,_0x1cb0d2);}const _0x740bef=collectImageMatches(_0x31c7a0),_0x1240ee=[];let _0x2b95b9=0x0;for(const _0x553a9d of _0x740bef){const _0x4320e0=_0x553a9d[_0x4b9450(0x23c,_0x5a0d76._0x1fe26b,0x235,_0x5a0d76._0x5d7726)]??0x0,[_0x563595,_0xba51c0,_0x467c51]=_0x553a9d;_0x4320e0>_0x2b95b9&&_0x1240ee[_0x5e4410(_0x5a0d76._0x48ef2f,0x455,_0x5a0d76._0x42c68e,0x44e)]({'type':'text','text':_0x31c7a0[_0x4b9450(0x23a,_0x5a0d76._0x3bb3be,0x230,_0x5a0d76._0x341390)](_0x2b95b9,_0x4320e0)}),_0x1240ee[_0x5e4410(_0x5a0d76._0x2099cd,_0x5a0d76._0x5578a8,0x453,_0x5a0d76._0x4d5fc8)]({'type':_0x4b9450(0x244,0x24a,_0x5a0d76._0x553a3f,_0x5a0d76._0x49678a),'source':{'type':_0x5e4410(0x454,0x451,0x44d,_0x5a0d76._0x5c3af1),'media_type':normalizeMediaType(_0xba51c0),'data':_0x467c51[_0x4b9450(0x246,0x24f,0x23d,_0x5a0d76._0x559c0f)](/[\r\n]/g,'')}}),_0x2b95b9=_0x4320e0+_0x563595[_0x5e4410(0x445,0x435,_0x5a0d76._0xb62786,0x444)];}_0x2b95b9<_0x31c7a0[_0x5e4410(_0x5a0d76._0x388237,_0x5a0d76._0x2ee057,0x440,0x443)]&&_0x1240ee[_0x5e4410(_0x5a0d76._0x38633c,_0x5a0d76._0xdaafbf,0x453,_0x5a0d76._0x446c06)]({'type':_0x5e4410(_0x5a0d76._0x446c06,_0x5a0d76._0x15d222,0x44a,_0x5a0d76._0xa20f78),'text':_0x31c7a0[_0x4b9450(_0x5a0d76._0x1b395f,0x245,_0x5a0d76._0x3de708,0x246)](_0x2b95b9)});function _0x4b9450(_0x804648,_0xc110b5,_0x3cdfe9,_0x371062){return _0x55bf(_0x804648-0x1ad,_0x3cdfe9);}return _0x1240ee[_0x5e4410(_0x5a0d76._0xe22250,0x438,0x440,0x43c)]>0x0?_0x1240ee:[{'type':_0x4b9450(0x240,_0x5a0d76._0x1b395f,_0x5a0d76._0x1fe26b,_0x5a0d76._0x318e62),'text':_0x31c7a0}];}export{INTERRUPTED_TOOL_RESULT_TEXT,compileRequest,contentFromPastedText,createAssistantTextMessage,createReasoningMessage,createTextBlock,createToolResultUserMessage,createToolUseMessage,getReasoningTextFromMessage,getTextFromMessage,getToolResultBlocks,getToolUseBlocks,hasPastedImages,normalizeContent,normalizeMessage,normalizeSystem,normalizeTextBlock,responseToAssistantMessage,synthesizeMissingToolResults,toChatRequest,toChatResponse,toModelRequest,toModelResponse,toOpenAiResponsesRequest,toProviderModelRequest};
@@ -1 +1 @@
1
- (function(_0x2bba2b,_0x59e446){const _0x123669={_0xc2ad58:0x24f,_0x20efed:0x25b,_0x5596f1:0x26a,_0x140fd9:0x10a,_0x1be41d:0xef,_0x37fbc6:0xfc,_0x452052:0x265,_0x51229c:0x247,_0x41b13b:0x266,_0x24c64f:0x27e,_0x3ae6f0:0xf4,_0xaad011:0x248,_0x5aa996:0x264,_0x49292c:0x10f,_0x350753:0x124,_0xa072c9:0x135,_0x49dcad:0x116,_0xa82921:0xfd,_0x510cba:0x26f,_0x143eb2:0x26b,_0x3a31a6:0x27e,_0xe4c63e:0x122,_0x94acd6:0x25b,_0x548d5d:0x282,_0xa05e55:0x22f,_0x39a22f:0x226,_0x2f3f58:0xf8,_0x2069e0:0xfe,_0x297bcc:0xf3,_0x309aa8:0xf0,_0x1dae75:0xef,_0xe53380:0xe9},_0x1e8c6b={_0x47ab82:0x2cf},_0x45cb4d={_0x26f9ec:0x89};function _0x3d4ce0(_0x569d4a,_0x1a99a9,_0x1b2f19,_0x1c5a30){return _0x308d(_0x569d4a-_0x45cb4d._0x26f9ec,_0x1a99a9);}function _0x18f80d(_0x6092dc,_0x2a6a33,_0x9107b4,_0x247f87){return _0x308d(_0x2a6a33- -_0x1e8c6b._0x47ab82,_0x9107b4);}const _0x43ea83=_0x2bba2b();while(!![]){try{const _0x29b13a=parseInt(_0x3d4ce0(_0x123669._0xc2ad58,_0x123669._0x20efed,0x24b,_0x123669._0x5596f1))/0x1*(-parseInt(_0x18f80d(-_0x123669._0x140fd9,-0xfd,-_0x123669._0x1be41d,-_0x123669._0x37fbc6))/0x2)+-parseInt(_0x3d4ce0(_0x123669._0x452052,_0x123669._0x51229c,_0x123669._0x41b13b,_0x123669._0x24c64f))/0x3*(parseInt(_0x18f80d(-0x11c,-0xfc,-0xeb,-_0x123669._0x3ae6f0))/0x4)+-parseInt(_0x3d4ce0(_0x123669._0xaad011,_0x123669._0x5aa996,0x234,0x23d))/0x5*(parseInt(_0x18f80d(-_0x123669._0x49292c,-_0x123669._0x350753,-0x11d,-0x11a))/0x6)+parseInt(_0x18f80d(-_0x123669._0xa072c9,-_0x123669._0x49dcad,-_0x123669._0xa82921,-0x11e))/0x7*(parseInt(_0x3d4ce0(0x263,_0x123669._0x510cba,_0x123669._0x143eb2,_0x123669._0x3a31a6))/0x8)+-parseInt(_0x18f80d(-0x147,-0x125,-0x138,-_0x123669._0xe4c63e))/0x9*(-parseInt(_0x3d4ce0(0x25e,_0x123669._0x94acd6,0x254,0x276))/0xa)+-parseInt(_0x3d4ce0(0x264,0x277,_0x123669._0x548d5d,0x25b))/0xb*(-parseInt(_0x3d4ce0(0x23f,_0x123669._0xa05e55,_0x123669._0x39a22f,0x25f))/0xc)+parseInt(_0x18f80d(-_0x123669._0x2f3f58,-_0x123669._0x2069e0,-_0x123669._0x297bcc,-0xf1))/0xd*(parseInt(_0x18f80d(-_0x123669._0x309aa8,-_0x123669._0x1dae75,-_0x123669._0xe53380,-_0x123669._0x3ae6f0))/0xe);if(_0x29b13a===_0x59e446)break;else _0x43ea83['push'](_0x43ea83['shift']());}catch(_0x5c398f){_0x43ea83['push'](_0x43ea83['shift']());}}}(_0x505a,0xf0f54));function _0x505a(){const _0x5cd162=['sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','qwDLBNqGzMLUAxnOzwqGCMvZCg9UzgLUzW','Bwf0y2HLCG','zgvUEq','Dg9tDhjPBMC','C3rHDgu','Ag9VAZPqB3n0vg9VBfvZzq','Aw5WDxq','Ag9VA1nWzwnPzMLJt3v0Chv0','mtq0otvyCurRBuC','otHhC3fJthO','nZuYmduYD0vYvhvv','y3DK','mJKWvLPMBwzi','zw5K','ugvYBwLZC2LVBIbKzw5PzwqGzM9Yia','CgfYC2u','Ag9VA3m','ndm1ndrnEuz5zhm','nZDTzgnLrxa','mJDXqLfKAxe','ywz0zxjuB29SuMvZDwX0','zxjYB3i','u0Lhs0Lmta','mZGZnZreANrjq08','uhjLvg9VBfvZzq','DgvZDa','ChvZAa','BM93','zgvJAxnPB24','C3rKzxjY','tM90AwzPy2f0Aw9U','BwvZC2fNzq','Ag9VAZPoB3rPzMLJyxrPB24','C2vZC2LVBKLK','zw52','y29TBwfUza','BgvUz3rO','rvbjueu','DgLTzw91Da','CgLWzq','zw5Kx3r1CM4','ndeYmJGXt0Dhr2Do','mJeWtgPozxzk','AgfZsg9VA3m','yMvMB3jLrMLUywXpDxrWDxq','zgf0yq','C3rYAw5NAwz5','CgvYBwLZC2LVBKrLy2LZAw9U','CMvQzwn0','CgfZCW','z2v0sg9VA3m','B2jZzxj2zxi','u3rVCa','nJu5nZK2Aw1ot1jT','BMfTzq','C3rHDhvZ','n2vWBu1pDq','C3rKB3v0','Dg9VBe5HBwu','BwfW','D3jPDgu','xIG/oG','mtqYodu1EgD4Bxfv','A2LSBa','y2XVC2u','B3v0Chv0','DhjPBq','yMXVy2S','C3rKAw4','mJiZnJziA2DbyK4','y29Kzq'];_0x505a=function(){return _0x5cd162;};return _0x505a();}import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x3411a3,_0x14b6c9,_0x115b03=DEFAULT_TIMEOUT_S,_0x9abc6){const _0x488371={_0x48ddca:0x207},_0x31fb22={_0x9a4944:0x447,_0x411154:0x473,_0x74ed19:0x463,_0x34635e:0x45c,_0xba6640:0x1cb,_0x262a5e:0x1d3,_0x416eab:0x45e,_0x191bc7:0x496,_0x144f33:0x48f,_0x3ac13a:0x1c1,_0x32eb2d:0x1c2,_0x1cfcbe:0x1bb,_0x424e7f:0x1cd,_0x1ee22a:0x476,_0x3c56a7:0x459,_0x3fc053:0x1b8,_0xcb1b1f:0x49f,_0x187f27:0x1d0,_0x32bc1f:0x1be,_0x84b764:0x1cf,_0x33fe9c:0x46a,_0x5f47b0:0x462,_0x1e5a8d:0x46a,_0x12ce05:0x480,_0x385266:0x195,_0x4a760c:0x1a5,_0x2b6676:0x48e,_0x10626f:0x45a,_0xc640a7:0x4a0,_0x5305be:0x4b7},_0x1619d0={_0x54e916:0x56b,_0x4bc124:0x555,_0x34fff2:0x51f,_0x44bbf6:0x52d},_0x26114b={_0x9312c3:0x4ed,_0xf23b61:0x1c1,_0xfd62d5:0x1c6,_0xe4d89f:0x519,_0x3b547a:0x51e,_0x5a0eeb:0x1ba,_0x2842b2:0x18b,_0x5849f6:0x1da,_0x4aec9f:0x1bd,_0x40317e:0x1cc,_0x3be606:0x1d0,_0x42fd78:0x1e4,_0x1578bc:0x1c2,_0x52c170:0x1c8,_0x34b4c3:0x515,_0x4c80db:0x51c,_0x420218:0x500,_0x379e2e:0x53f,_0x186553:0x54b,_0x1fa1d0:0x533,_0x4755d5:0x505,_0xbdf82a:0x522},_0x4370b6={_0xa1cbbb:0x6e,_0x541255:0x97,_0x4b2538:0x19,_0x527794:0x54,_0x29a86f:0x77},_0xeb70f6={_0x5923e4:0x37,_0x191af6:0xe9},_0x989e1e={_0x5c661a:0x42,_0x3078f6:0x3e,_0x3e9b2d:0x58,_0x58f33a:0x5f,_0x368cb2:0x5f},_0x47d166={_0x16416a:0x143,_0x42e043:0x16e},_0x9c1a39={_0x42d9a9:0xc1},_0x15a420={_0x371e74:0x3b2};function _0x2b09a7(_0x21a7ce,_0x2aabee,_0x4ac8cf,_0x3344ae){return _0x308d(_0x2aabee- -_0x15a420._0x371e74,_0x3344ae);}const _0x45db4c=Date[_0x2b09a7(-_0x488371._0x48ddca,-0x216,-0x1f3,-0x1fa)]();return new Promise(_0x26ed66=>{const _0x3842c5={_0x411d23:0xd8},_0x24f8fc={_0x9a8233:0x5b,_0x5f3ddc:0x114},_0x27a616={_0x285b75:0x1c9,_0x2af6b7:0xa},_0x375034={_0x2e04e5:0x107},_0x1e882f={_0x343bec:0xc5,_0x3f68e6:0x59},_0x206a7a={_0x23ee70:0x4db,_0x15c96f:0x4a8,_0x25e04c:0x4ca},_0x1367db=spawn('sh',['-c',_0x3411a3],{'stdio':[_0x7a1057(0x45c,0x463,0x460,_0x31fb22._0x9a4944),_0x7a1057(_0x31fb22._0x411154,_0x31fb22._0x74ed19,_0x31fb22._0x34635e,0x477),_0x37ae50(-_0x31fb22._0xba6640,-0x1d1,-_0x31fb22._0x262a5e,-0x1d2)],'env':{...process[_0x7a1057(0x449,_0x31fb22._0x416eab,0x452,0x452)],'CLAUDE_PROJECT_DIR':_0x9abc6??process[_0x7a1057(_0x31fb22._0x191bc7,_0x31fb22._0x144f33,0x474,0x4ae)]()}});let _0x16ab48='',_0x34a6cf='';_0x1367db[_0x37ae50(-0x1ae,-0x1a0,-_0x31fb22._0x3ac13a,-0x1d9)]['on'](_0x37ae50(-_0x31fb22._0x32eb2d,-_0x31fb22._0x1cfcbe,-_0x31fb22._0x424e7f,-0x1c6),_0x38aacd=>{const _0x18d9b4={_0x450840:0xa0};function _0x446f4b(_0x2ff0c6,_0x43f812,_0x4089eb,_0x4d9b96){return _0x37ae50(_0x2ff0c6-0x31,_0x2ff0c6,_0x4089eb-0x679,_0x4d9b96-_0x18d9b4._0x450840);}_0x16ab48+=_0x38aacd[_0x446f4b(_0x206a7a._0x23ee70,_0x206a7a._0x15c96f,_0x206a7a._0x25e04c,0x4ea)]();});function _0x7a1057(_0x15baa0,_0x3ed8c1,_0x1412a4,_0x3efb10){return _0x2b09a7(_0x15baa0-0x106,_0x3ed8c1-0x66d,_0x1412a4-_0x9c1a39._0x42d9a9,_0x3efb10);}_0x1367db[_0x7a1057(_0x31fb22._0x1ee22a,_0x31fb22._0x3c56a7,0x449,0x457)]['on']('data',_0x380dfc=>{function _0x3be966(_0x23c583,_0x4bb7c0,_0x243c57,_0x288eda){return _0x37ae50(_0x23c583-_0x1e882f._0x343bec,_0x243c57,_0x23c583-_0x1e882f._0x3f68e6,_0x288eda-0xb6);}_0x34a6cf+=_0x380dfc[_0x3be966(-0x156,-_0x47d166._0x16416a,-0x15c,-_0x47d166._0x42e043)]();}),_0x1367db[_0x37ae50(-0x1ba,-_0x31fb22._0x3fc053,-0x1b6,-_0x31fb22._0x262a5e)]['on'](_0x7a1057(0x49e,0x499,0x489,_0x31fb22._0xcb1b1f),_0x3cc121=>{function _0x1ad942(_0x5ee6ef,_0x2b342b,_0x4a52b7,_0xda5c68){return _0x37ae50(_0x5ee6ef-0xfc,_0x5ee6ef,_0x4a52b7-0x176,_0xda5c68-0x17a);}function _0xb826be(_0xcab7d4,_0x436b0e,_0x310be4,_0x12a568){return _0x7a1057(_0xcab7d4-_0x375034._0x2e04e5,_0x12a568- -0x40e,_0x310be4-0x1e5,_0xcab7d4);}if(_0x3cc121[_0x1ad942(-_0x989e1e._0x5c661a,-0x2f,-_0x989e1e._0x3078f6,-0x32)]!==_0x1ad942(-_0x989e1e._0x3e9b2d,-0x71,-_0x989e1e._0x58f33a,-_0x989e1e._0x368cb2))throw _0x3cc121;}),_0x1367db['stdin'][_0x37ae50(-0x1bb,-_0x31fb22._0x187f27,-_0x31fb22._0x32bc1f,-_0x31fb22._0x84b764)](JSON[_0x7a1057(0x463,_0x31fb22._0x33fe9c,_0x31fb22._0x5f47b0,0x479)](_0x14b6c9));function _0x37ae50(_0x419bba,_0x174de2,_0xf25bc5,_0x3f6e64){return _0x2b09a7(_0x419bba-0x1cb,_0xf25bc5-_0xeb70f6._0x5923e4,_0xf25bc5-_0xeb70f6._0x191af6,_0x174de2);}_0x1367db[_0x7a1057(_0x31fb22._0x1e5a8d,_0x31fb22._0x12ce05,0x47c,0x487)][_0x37ae50(-_0x31fb22._0x385266,-0x1c4,-_0x31fb22._0x4a760c,-0x199)]();const _0x4c9f91=setTimeout(()=>{const _0x46885b={_0x40d367:0x4a,_0x153c60:0x403},_0x1e8458={_0x20ec86:0x95,_0x368797:0x4c5,_0x17fac2:0xac};function _0x585392(_0x2a18ec,_0x1244de,_0x36b5e7,_0x1f4d26){return _0x7a1057(_0x2a18ec-_0x1e8458._0x20ec86,_0x1244de- -_0x1e8458._0x368797,_0x36b5e7-_0x1e8458._0x17fac2,_0x1f4d26);}function _0x3fb971(_0x44d569,_0x43d670,_0x3721a7,_0xf1a2dc){return _0x7a1057(_0x44d569-_0x46885b._0x40d367,_0x3721a7- -_0x46885b._0x153c60,_0x3721a7-0x186,_0x44d569);}_0x1367db[_0x3fb971(0x93,_0x4370b6._0xa1cbbb,0x78,0x5b)](_0x3fb971(0xb5,0xa4,_0x4370b6._0x541255,0x78)),_0x26ed66({'status':_0x585392(-0x20,-0x2c,-0x8,-_0x4370b6._0x4b2538),'error':'Hook\x20timed\x20out\x20after\x20'+_0x115b03+'s','duration_ms':Date[_0x3fb971(0x50,0x6f,_0x4370b6._0x527794,_0x4370b6._0x29a86f)]()-_0x45db4c});},_0x115b03*0x3e8);_0x1367db['on'](_0x7a1057(_0x31fb22._0x2b6676,0x47c,0x45c,_0x31fb22._0x10626f),_0x426abf=>{const _0x5edfb7={_0x363b21:0x1c0};function _0x22256f(_0x5a3a2f,_0x4b0b26,_0x246246,_0x3add5c){return _0x7a1057(_0x5a3a2f-_0x5edfb7._0x363b21,_0x246246-0xa0,_0x246246-0x33,_0x4b0b26);}clearTimeout(_0x4c9f91);const _0x4d055b=Date[_0x22256f(0x4fb,0x50c,0x4f7,_0x26114b._0x9312c3)]()-_0x45db4c;if(_0x426abf===0x2){_0x26ed66({'status':_0x2e286d(-0x1d7,-_0x26114b._0xf23b61,-_0x26114b._0xfd62d5,-0x1a7),'output':{'decision':_0x22256f(_0x26114b._0xe4d89f,0x516,0x51f,0x525),'reason':_0x34a6cf[_0x22256f(0x541,0x51e,_0x26114b._0x3b547a,0x524)]()||'Hook\x20blocked\x20execution'},'duration_ms':_0x4d055b});return;}if(_0x426abf!==0x0){_0x26ed66({'status':_0x2e286d(-0x1a7,-0x1a7,-_0x26114b._0x5a0eeb,-_0x26114b._0x2842b2),'error':_0x2e286d(-_0x26114b._0x5849f6,-_0x26114b._0x4aec9f,-_0x26114b._0x40317e,-_0x26114b._0x3be606)+_0x426abf+(_0x34a6cf[_0x2e286d(-_0x26114b._0x42fd78,-_0x26114b._0x1578bc,-_0x26114b._0x52c170,-0x1d4)]()?':\x20'+_0x34a6cf[_0x22256f(0x52e,_0x26114b._0x34b4c3,_0x26114b._0x3b547a,0x541)]():''),'duration_ms':_0x4d055b});return;}const _0x2f198c=_0x16ab48['trim']();function _0x2e286d(_0x2e6016,_0x116f4e,_0x330f9c,_0x189d36){return _0x37ae50(_0x2e6016-_0x27a616._0x285b75,_0x2e6016,_0x116f4e- -_0x27a616._0x2af6b7,_0x189d36-0x1b);}if(_0x2f198c[_0x22256f(_0x26114b._0x4c80db,0x511,_0x26114b._0x420218,0x4eb)]===0x0){_0x26ed66({'status':'pass','duration_ms':_0x4d055b});return;}try{const _0x296b5f=JSON[_0x22256f(_0x26114b._0x379e2e,_0x26114b._0x186553,_0x26114b._0x1fa1d0,0x53c)](_0x2f198c);_0x26ed66({'status':'pass','output':_0x296b5f,'duration_ms':_0x4d055b});}catch{_0x26ed66({'status':_0x22256f(_0x26114b._0x4755d5,0x503,0x50d,_0x26114b._0xbdf82a),'duration_ms':_0x4d055b});}}),_0x1367db['on'](_0x7a1057(_0x31fb22._0xc640a7,0x499,_0x31fb22._0x5305be,0x482),_0x582d44=>{function _0x3a7aeb(_0x220fab,_0x382b78,_0xcadf64,_0x4d94bd){return _0x37ae50(_0x220fab-_0x24f8fc._0x9a8233,_0x382b78,_0x220fab-0x356,_0x4d94bd-_0x24f8fc._0x5f3ddc);}function _0x1cdbd4(_0x42517f,_0x4de5cb,_0x49e518,_0x4f8ee3){return _0x37ae50(_0x42517f-_0x3842c5._0x411d23,_0x4f8ee3,_0x42517f-0x709,_0x4f8ee3-0xa2);}clearTimeout(_0x4c9f91),_0x26ed66({'status':_0x1cdbd4(0x56c,_0x1619d0._0x54e916,0x584,_0x1619d0._0x4bc124),'error':_0x582d44[_0x1cdbd4(0x52e,_0x1619d0._0x34fff2,_0x1619d0._0x44bbf6,0x550)],'duration_ms':Date['now']()-_0x45db4c});});});}function createHookExtensions(_0x3c4d15,_0x2f08b5,_0x599f45={}){const _0x30568c={_0x5010dd:0x530,_0x207a0d:0x53b,_0x2f7feb:0x592,_0x3163b6:0x57f,_0x368f15:0x583,_0x239722:0x577,_0x5e1c05:0x2db,_0x22b9f3:0x2d6,_0x13759a:0x546,_0x578a65:0x56d,_0x2c0d9d:0x55e,_0xbafa18:0x55f,_0xa3fe33:0x562,_0x5a20e4:0x2c6,_0x5d8c94:0x2e5,_0x5835cc:0x2d0,_0x368b70:0x2d5,_0x257505:0x2b9,_0x16ed69:0x2db},_0xc90340={_0x5355a7:0x394,_0x4f18ee:0x37c,_0x4ca091:0x3a6,_0x152978:0x392,_0x472b02:0x34e,_0x14b57b:0x355,_0x4fee7b:0x391,_0x426705:0x370},_0x219e50={_0x4c957d:0x3d1,_0x339d5f:0x3a4,_0x50fb80:0x3a3,_0x5275c0:0x39c},_0x57e785={_0x36e093:0x145},_0x37f070={_0x167e50:0x50,_0xef847d:0x49},_0x46ae54={_0x5822da:0x543,_0x10ae71:0x1db,_0x8187ca:0x1bd,_0x46c88f:0x1c7,_0x502443:0x1b5,_0x13ce38:0x1de,_0x320b7f:0x19a,_0x43b48d:0x1ba,_0x3a192f:0x547,_0x47fb52:0x513,_0x2316e3:0x51c,_0x5e7e30:0x51e,_0x1d5751:0x511,_0x46b600:0x52d},_0x1da485={_0xc13cac:0x19},_0xb2c816={_0x166a10:0xd,_0x34231a:0x126,_0x1342df:0x3b3},_0x4751c5=[],{sessionId:_0x14ef35,projectDir:_0x1ee559}=_0x599f45,_0x2ac797=_0x389208=>_0x3c4d15[_0x382f1f(0x2ea,0x2d3,0x2af,0x2b7)]?_0x3c4d15['hasHooks'](_0x389208):_0x3c4d15['getHooks'](_0x389208)['length']>0x0;function _0x382f1f(_0x3093c1,_0x131299,_0x1dfa8f,_0x3d0373){return _0x308d(_0x131299-0x127,_0x1dfa8f);}_0x2ac797('PostToolUse')&&_0x4751c5[_0x21e4dc(_0x30568c._0x5010dd,0x541,_0x30568c._0x207a0d,0x550)]({'id':_0x21e4dc(_0x30568c._0x2f7feb,0x561,_0x30568c._0x3163b6,_0x30568c._0x368f15),'stage':_0x21e4dc(0x5aa,_0x30568c._0x239722,0x5a4,0x592),'kind':_0x382f1f(0x2b8,_0x30568c._0x5e1c05,_0x30568c._0x22b9f3,0x2e1),'order':0x0,'enabled':!![],'run':async(_0x31f841,_0x30349a)=>{function _0x131019(_0x3e976e,_0x291147,_0x212794,_0x31be15){return _0x21e4dc(_0x3e976e-_0xb2c816._0x166a10,_0x31be15,_0x212794-_0xb2c816._0x34231a,_0x212794- -_0xb2c816._0x1342df);}const _0x267248=_0x3c4d15['getHooks']('PostToolUse',_0x31f841[_0x5cfad9(0x52d,0x557,_0x46ae54._0x5822da,0x535)]);function _0x5cfad9(_0x283044,_0x2e7e4f,_0x3221bd,_0x58713e){return _0x382f1f(_0x283044-_0x1da485._0xc13cac,_0x58713e-0x253,_0x283044,_0x58713e-0x53);}for(const _0x4077aa of _0x267248){const _0x2287d9={'tool_name':_0x31f841[_0x131019(0x1cb,_0x46ae54._0x10ae71,_0x46ae54._0x8187ca,0x1c8)],'tool_input':void 0x0,'tool_output':_0x31f841[_0x131019(_0x46ae54._0x46c88f,_0x46ae54._0x502443,0x1c4,_0x46ae54._0x13ce38)],'tool_result_status':_0x31f841[_0x131019(0x1d1,_0x46ae54._0x320b7f,_0x46ae54._0x43b48d,0x1d0)],'session_id':_0x14ef35??_0x30349a[_0x5cfad9(0x54b,0x54b,0x567,_0x46ae54._0x3a192f)][_0x5cfad9(0x504,_0x46ae54._0x47fb52,0x506,_0x46ae54._0x2316e3)]};await _0x2f08b5(_0x4077aa[_0x5cfad9(0x525,0x513,0x4ff,_0x46ae54._0x5e7e30)],_0x2287d9,_0x4077aa[_0x5cfad9(_0x46ae54._0x1d5751,0x51b,_0x46ae54._0x46b600,0x521)],_0x1ee559);}}});_0x2ac797(_0x21e4dc(0x57b,0x554,_0x30568c._0x13759a,0x56a))&&_0x4751c5[_0x21e4dc(_0x30568c._0x578a65,_0x30568c._0x2c0d9d,0x570,0x550)]({'id':'hook:Stop','stage':_0x21e4dc(_0x30568c._0xbafa18,0x55d,0x54d,_0x30568c._0xa3fe33),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x4075c1,_0x135385)=>{function _0x484bd1(_0x2e4847,_0xd72b85,_0x5dddef,_0x198101){return _0x21e4dc(_0x2e4847-_0x37f070._0x167e50,_0x198101,_0x5dddef-_0x37f070._0xef847d,_0x5dddef- -0x6d0);}function _0x41fe92(_0x181ee9,_0x56740f,_0x1b1bc7,_0x18916a){return _0x21e4dc(_0x181ee9-_0x57e785._0x36e093,_0x181ee9,_0x1b1bc7-0x160,_0x1b1bc7- -0x1bb);}const _0x3d2f33=_0x3c4d15[_0x41fe92(_0x219e50._0x4c957d,0x3d1,0x3ad,0x3bd)](_0x41fe92(_0x219e50._0x339d5f,0x3ba,0x3af,0x3ae));for(const _0x5247f2 of _0x3d2f33){const _0x37f9f4={'stop_reason':_0x484bd1(-0x166,-0x16f,-0x172,-0x182),'session_id':_0x14ef35??_0x135385['state'][_0x41fe92(0x392,_0x219e50._0x50fb80,_0x219e50._0x5275c0,0x37a)]};await _0x2f08b5(_0x5247f2['command'],_0x37f9f4,_0x5247f2['timeout'],_0x1ee559);}}});_0x2ac797(_0x382f1f(0x2b8,_0x30568c._0x5a20e4,_0x30568c._0x5d8c94,_0x30568c._0x5835cc))&&_0x4751c5[_0x382f1f(0x2b5,0x2c2,0x2b4,_0x30568c._0x368b70)]({'id':_0x382f1f(0x2c5,0x2c8,0x2e7,0x2e8),'stage':'afterTurnComplete','kind':_0x382f1f(_0x30568c._0x257505,_0x30568c._0x16ed69,0x2d2,0x2e0),'order':0x0,'enabled':!![],'run':async(_0xa83f86,_0x14f0a9)=>{const _0x56bc77={_0x42669f:0x3cc},_0x1ba028={_0x5b8488:0xc3};function _0x39edc5(_0x268408,_0x26fa24,_0x3ef672,_0x5e9700){return _0x382f1f(_0x268408-0x177,_0x5e9700-0xa2,_0x26fa24,_0x5e9700-_0x1ba028._0x5b8488);}const _0x392956=_0x3c4d15[_0x39edc5(0x38c,_0xc90340._0x5355a7,0x374,_0xc90340._0x4f18ee)]('Notification');function _0x1d5d04(_0x2fd866,_0x1d55a9,_0x19e843,_0x170c02){return _0x21e4dc(_0x2fd866-0x194,_0x1d55a9,_0x19e843-0x1b2,_0x2fd866- -_0x56bc77._0x42669f);}for(const _0x3659d8 of _0x392956){const _0x1e0cdb={'message':_0x39edc5(0x3a6,_0xc90340._0x4ca091,0x3ae,_0xc90340._0x152978),'session_id':_0x14ef35??_0xa83f86[_0x39edc5(_0xc90340._0x472b02,_0xc90340._0x14b57b,_0xc90340._0x472b02,0x36b)]};await _0x2f08b5(_0x3659d8['command'],_0x1e0cdb,_0x3659d8[_0x39edc5(_0xc90340._0x4fee7b,0x364,0x37b,_0xc90340._0x426705)],_0x1ee559);}}});function _0x21e4dc(_0x244b69,_0x4c4b0e,_0x4d5810,_0x5d76c3){return _0x308d(_0x5d76c3-0x3b5,_0x4c4b0e);}return _0x4751c5;}function _0x308d(_0x37c49c,_0x421b6a){_0x37c49c=_0x37c49c-0x199;const _0x505a3a=_0x505a();let _0x308dea=_0x505a3a[_0x37c49c];if(_0x308d['LGsgdi']===undefined){var _0x3685b1=function(_0x3d012a){const _0x29d091='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3411a3='',_0x14b6c9='';for(let _0x115b03=0x0,_0x9abc6,_0x45db4c,_0x26ed66=0x0;_0x45db4c=_0x3d012a['charAt'](_0x26ed66++);~_0x45db4c&&(_0x9abc6=_0x115b03%0x4?_0x9abc6*0x40+_0x45db4c:_0x45db4c,_0x115b03++%0x4)?_0x3411a3+=String['fromCharCode'](0xff&_0x9abc6>>(-0x2*_0x115b03&0x6)):0x0){_0x45db4c=_0x29d091['indexOf'](_0x45db4c);}for(let _0x1367db=0x0,_0x16ab48=_0x3411a3['length'];_0x1367db<_0x16ab48;_0x1367db++){_0x14b6c9+='%'+('00'+_0x3411a3['charCodeAt'](_0x1367db)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x14b6c9);};_0x308d['JfWBkV']=_0x3685b1,_0x308d['rMMNxT']={},_0x308d['LGsgdi']=!![];}const _0x3b6dcc=_0x505a3a[0x0],_0x1da021=_0x37c49c+_0x3b6dcc,_0x4d39a8=_0x308d['rMMNxT'][_0x1da021];return!_0x4d39a8?(_0x308dea=_0x308d['JfWBkV'](_0x308dea),_0x308d['rMMNxT'][_0x1da021]=_0x308dea):_0x308dea=_0x4d39a8,_0x308dea;}function createHookOnToolCallMiddleware(_0x1388fe,_0x515775,_0x3d8c41,_0x38f4c5={}){const _0x2b70be={_0x45cff6:0x9c,_0xd9429e:0x7c,_0x22763f:0x79,_0x1e963e:0xb0,_0x55dbce:0x1fc,_0x5615b5:0x1f5,_0xb6b9fa:0x1f0,_0x4cef65:0x1fd,_0x30b503:0x89,_0x4ba595:0x88,_0x149e3b:0x85,_0xd55395:0x85,_0x4e50e6:0x211,_0x2df724:0x221,_0x43882a:0x1fe,_0x460130:0x82,_0x541728:0x20c,_0x59f17b:0x204,_0x29f06d:0x21d,_0x48797f:0x1fe,_0x510891:0x207,_0x582086:0x1e6,_0x4b0590:0x8a,_0x5f2dc7:0x74,_0x2f0a2a:0x1f3,_0x3a4410:0x1fc,_0x3848c7:0x1f2,_0x29e3ed:0x1ff,_0x2f73a0:0x1e9,_0x1335cd:0xa2,_0x7d6811:0x8f,_0x25e2fd:0x212,_0x593e23:0x1f4,_0x546a18:0x1f8,_0xc1fa0c:0x1df,_0x4ba3bf:0x67,_0x598d9d:0x4e,_0x4f7d5d:0x200,_0x2d5513:0x1ee},_0x2e0f8c={_0x1ab40a:0x22c},{sessionId:_0x409a06,projectDir:_0x59884a}=_0x38f4c5;return async(_0x47f919,_0x1e22e0)=>{const _0x5ebe25={_0xf519a3:0x2e};function _0x84c540(_0x11c60d,_0xbcaa41,_0x357298,_0x5c146d){return _0x308d(_0x5c146d- -_0x2e0f8c._0x1ab40a,_0x11c60d);}const _0x578963=_0x1388fe[_0x84c540(-_0x2b70be._0x45cff6,-_0x2b70be._0xd9429e,-0x8f,-_0x2b70be._0x22763f)](_0x84c540(-0x81,-_0x2b70be._0x1e963e,-0x8d,-0x93),_0x47f919['name']);for(const _0xcda58f of _0x578963){const _0x57877e={'tool_name':_0x47f919[_0x17c26b(_0x2b70be._0x55dbce,_0x2b70be._0x5615b5,_0x2b70be._0xb6b9fa,0x1e5)],'tool_input':_0x47f919[_0x17c26b(0x1e8,0x1ec,0x1da,_0x2b70be._0x4cef65)],'session_id':_0x409a06},_0x59e3b1=await _0x515775(_0xcda58f[_0x84c540(-_0x2b70be._0x30b503,-0x8b,-0xa7,-_0x2b70be._0x4ba595)],_0x57877e,_0xcda58f[_0x84c540(-0x91,-_0x2b70be._0x149e3b,-0x6f,-_0x2b70be._0xd55395)],_0x59884a),_0xa374d=_0x59e3b1['output']?.[_0x17c26b(_0x2b70be._0x4e50e6,_0x2b70be._0x2df724,0x1ec,_0x2b70be._0x43882a)]?.[_0x84c540(-0x81,-_0x2b70be._0x460130,-0x8d,-0x7c)];if(_0xa374d==='allow')return{'action':'run'};if(_0xa374d===_0x84c540(-0x80,-0x55,-0x4e,-0x61))return{'action':_0x84c540(-0x75,-0x99,-0x7e,-0x7b),'reason':_0x59e3b1[_0x17c26b(0x1d4,0x20d,0x1fc,_0x2b70be._0xb6b9fa)]?.[_0x17c26b(_0x2b70be._0x541728,_0x2b70be._0x59f17b,_0x2b70be._0x29f06d,_0x2b70be._0x48797f)]?.['permissionDecisionReason']||_0x17c26b(_0x2b70be._0x510891,0x1fe,_0x2b70be._0x582086,0x205)+_0x47f919['name']};if(_0x59e3b1[_0x84c540(-0x74,-_0x2b70be._0x4b0590,-0x59,-_0x2b70be._0x5f2dc7)]===_0x17c26b(0x20b,_0x2b70be._0x2f0a2a,_0x2b70be._0x3a4410,_0x2b70be._0x3848c7)||_0x59e3b1[_0x17c26b(_0x2b70be._0x29e3ed,_0x2b70be._0x2f73a0,0x1e3,_0x2b70be._0xb6b9fa)]?.[_0x84c540(-0x8a,-_0x2b70be._0x1335cd,-0x9e,-_0x2b70be._0x7d6811)]===_0x17c26b(0x1dd,0x1f7,_0x2b70be._0x25e2fd,0x1f2))return{'action':_0x17c26b(0x1eb,_0x2b70be._0x593e23,_0x2b70be._0x546a18,_0x2b70be._0xc1fa0c),'reason':_0x59e3b1[_0x84c540(-_0x2b70be._0x4ba3bf,-0x55,-_0x2b70be._0x598d9d,-0x6a)]?.['reason']||'Blocked\x20by\x20PreToolUse\x20hook\x20for\x20'+_0x47f919[_0x17c26b(0x1ea,_0x2b70be._0x4f7d5d,_0x2b70be._0x2d5513,0x1e5)]};}function _0x17c26b(_0x4cb6e4,_0x357156,_0x28ba7b,_0x521685){return _0x308d(_0x521685-_0x5ebe25._0xf519a3,_0x357156);}return _0x3d8c41(_0x47f919,_0x1e22e0);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x24e861){const _0x1e26a0={_0x45ca3c:0x2ee,_0x55c9c1:0x2d1,_0x540f7b:0x50b,_0x5c9477:0x2ec,_0x16f8f0:0x2d0,_0x380bd0:0x52d,_0x594149:0x517,_0x48f739:0x542,_0x1f69a0:0x524,_0x6ed6e2:0x2de,_0x9d700d:0x2b4,_0x47a4f0:0x2d1,_0x5ebcbc:0x501,_0x4851cd:0x4f5,_0x5af2ce:0x4f7,_0x12f8d9:0x52f},_0x259a55={_0x414f18:0x107},_0x283ba5={_0x7867c4:0x2c5,_0x1b8dc7:0x2d7,_0x308daa:0x2cd};return{'hasHooks'(_0x285aae){const _0x15c52d={_0x50fd67:0x132};function _0x194b0b(_0x102494,_0x46aecf,_0x3c643b,_0xd645a2){return _0x308d(_0x46aecf-_0x15c52d._0x50fd67,_0x102494);}return(_0x24e861[_0x285aae]?.[_0x194b0b(_0x283ba5._0x7867c4,_0x283ba5._0x1b8dc7,_0x283ba5._0x308daa,0x2d9)]??0x0)>0x0;},'getHooks'(_0x599ac8,_0x45711b){const _0x58e98e=_0x24e861[_0x599ac8];if(!_0x58e98e)return[];function _0x483e02(_0x36019b,_0x1ac2a1,_0x2e355a,_0x2d5b1e){return _0x308d(_0x2d5b1e-_0x259a55._0x414f18,_0x1ac2a1);}function _0x7755e7(_0x4e5efb,_0x48f3fb,_0x5eb745,_0x15fc25){return _0x308d(_0x15fc25-0x362,_0x5eb745);}const _0x51db81=[];for(const _0x13ae07 of _0x58e98e){if(!_0x13ae07[_0x483e02(0x2f3,0x2b2,_0x1e26a0._0x45ca3c,_0x1e26a0._0x55c9c1)]||_0x13ae07[_0x483e02(0x2f4,0x2ee,0x2b1,0x2d1)]==='*'){_0x51db81[_0x7755e7(0x4fb,_0x1e26a0._0x540f7b,0x520,0x4fd)](..._0x13ae07[_0x483e02(_0x1e26a0._0x5c9477,0x2d6,_0x1e26a0._0x16f8f0,0x2e0)][_0x7755e7(_0x1e26a0._0x380bd0,_0x1e26a0._0x594149,_0x1e26a0._0x48f739,0x51e)](_0x562ca2=>({'command':_0x562ca2[_0x483e02(0x2ac,0x2cc,0x2c3,0x2ab)],'timeout':_0x562ca2[_0x483e02(0x29e,0x29a,0x2a1,0x2ae)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x45711b===void 0x0)continue;const _0x2fb4b0=new RegExp(_0x7755e7(0x4fc,0x509,_0x1e26a0._0x1f69a0,0x520)+_0x13ae07[_0x483e02(_0x1e26a0._0x6ed6e2,0x2d9,_0x1e26a0._0x9d700d,_0x1e26a0._0x47a4f0)]+')$');_0x2fb4b0[_0x7755e7(0x50c,_0x1e26a0._0x5ebcbc,_0x1e26a0._0x4851cd,0x4fc)](_0x45711b)&&_0x51db81[_0x7755e7(0x4ed,_0x1e26a0._0x5af2ce,0x4ff,0x4fd)](..._0x13ae07[_0x7755e7(0x51c,_0x1e26a0._0x12f8d9,0x523,0x53b)]['map'](_0x36097e=>({'command':_0x36097e[_0x483e02(0x292,0x28d,0x294,0x2ab)],'timeout':_0x36097e[_0x483e02(0x2bf,0x2a1,0x2b3,0x2ae)]??DEFAULT_TIMEOUT_S2})));}return _0x51db81;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};
1
+ (function(_0xfdc82c,_0x1980a1){const _0x12f9c2={_0x599c4c:0x72,_0x3e9240:0x56,_0x255ba0:0x8d,_0xd3faaa:0x85,_0x28e218:0x94,_0x1a00dc:0x9b,_0x27bfb5:0xa3,_0x315916:0x248,_0x103a4f:0x265,_0x1540a6:0x259,_0x5a2420:0x281,_0x18fb0a:0x256,_0x3bba11:0x247,_0x43e4d3:0x24f,_0x137f7e:0x25a,_0x3ee373:0x263,_0x210fa5:0x82,_0x34021a:0x64,_0x539306:0x79,_0x38de0e:0x25f,_0x166920:0x26b,_0x50148f:0x27e,_0x85c003:0x29c,_0x16278:0x262},_0x10046c={_0x263446:0x53};function _0x14d546(_0x4b0491,_0x19b017,_0x255f55,_0x389d7a){return _0x4b7c(_0x19b017- -_0x10046c._0x263446,_0x389d7a);}function _0x559f32(_0x3f4923,_0x3f0fde,_0x59114e,_0xf8bf19){return _0x4b7c(_0x3f0fde-0x183,_0x3f4923);}const _0x4a029c=_0xfdc82c();while(!![]){try{const _0x386b70=-parseInt(_0x14d546(0x92,_0x12f9c2._0x599c4c,_0x12f9c2._0x3e9240,_0x12f9c2._0x255ba0))/0x1*(-parseInt(_0x14d546(_0x12f9c2._0xd3faaa,0x9c,0x8e,0x8d))/0x2)+parseInt(_0x14d546(_0x12f9c2._0x28e218,_0x12f9c2._0x1a00dc,0xbb,_0x12f9c2._0x27bfb5))/0x3+parseInt(_0x559f32(_0x12f9c2._0x315916,_0x12f9c2._0x103a4f,_0x12f9c2._0x1540a6,_0x12f9c2._0x5a2420))/0x4*(parseInt(_0x559f32(_0x12f9c2._0x18fb0a,0x257,_0x12f9c2._0x3bba11,_0x12f9c2._0x43e4d3))/0x5)+-parseInt(_0x559f32(0x24f,0x256,_0x12f9c2._0x137f7e,_0x12f9c2._0x3ee373))/0x6+parseInt(_0x14d546(0x8b,_0x12f9c2._0x210fa5,_0x12f9c2._0x34021a,_0x12f9c2._0x539306))/0x7+-parseInt(_0x559f32(0x274,0x264,_0x12f9c2._0x38de0e,_0x12f9c2._0x166920))/0x8+parseInt(_0x559f32(0x285,_0x12f9c2._0x50148f,0x29f,_0x12f9c2._0x85c003))/0x9*(parseInt(_0x559f32(_0x12f9c2._0x16278,0x27c,0x25e,0x280))/0xa);if(_0x386b70===_0x1980a1)break;else _0x4a029c['push'](_0x4a029c['shift']());}catch(_0x552ade){_0x4a029c['push'](_0x4a029c['shift']());}}}(_0x3e17,0x5a745));function _0x4b7c(_0x32d82b,_0x215d13){_0x32d82b=_0x32d82b-0xc4;const _0x3e1773=_0x3e17();let _0x4b7c1f=_0x3e1773[_0x32d82b];if(_0x4b7c['UxOofO']===undefined){var _0x50c366=function(_0x59e9b9){const _0x54f133='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x344b40='',_0x5a6777='';for(let _0xfac24c=0x0,_0x35d85f,_0x4de1d7,_0x233b1d=0x0;_0x4de1d7=_0x59e9b9['charAt'](_0x233b1d++);~_0x4de1d7&&(_0x35d85f=_0xfac24c%0x4?_0x35d85f*0x40+_0x4de1d7:_0x4de1d7,_0xfac24c++%0x4)?_0x344b40+=String['fromCharCode'](0xff&_0x35d85f>>(-0x2*_0xfac24c&0x6)):0x0){_0x4de1d7=_0x54f133['indexOf'](_0x4de1d7);}for(let _0x27dd12=0x0,_0x12b5e7=_0x344b40['length'];_0x27dd12<_0x12b5e7;_0x27dd12++){_0x5a6777+='%'+('00'+_0x344b40['charCodeAt'](_0x27dd12)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a6777);};_0x4b7c['tIjJlX']=_0x50c366,_0x4b7c['iWqLAu']={},_0x4b7c['UxOofO']=!![];}const _0x3ae3d6=_0x3e1773[0x0],_0x4ae98c=_0x32d82b+_0x3ae3d6,_0x46d432=_0x4b7c['iWqLAu'][_0x4ae98c];return!_0x46d432?(_0x4b7c1f=_0x4b7c['tIjJlX'](_0x4b7c1f),_0x4b7c['iWqLAu'][_0x4ae98c]=_0x4b7c1f):_0x4b7c1f=_0x46d432,_0x4b7c1f;}function _0x3e17(){const _0x5d20c2=['mtG1nZyXmuTMr2fwrG','y29TBwfUza','ywXSB3C','DhjPBq','CgvYBwLZC2LVBKrLy2LZAw9UuMvHC29U','zgf0yq','sg9VAYbIBg9JA2vKigv4zwn1DgLVBG','C3rHDhvZ','CgvYBwLZC2LVBKrLy2LZAw9U','yMXVy2S','Dg9tDhjPBMC','BwvZC2fNzq','mZK2mZu1mLbtAfzxBa','mJmYnZzZBvjts1O','DgvZDa','CMvQzwn0','C2vZC2LVBKLK','u0Lhs0Lmta','zxjYB3i','sg9VAYbLEgL0zwqGD2L0AcbJB2rLia','Aw5WDxq','zw52','Ag9VAZPtDg9W','AgfZsg9VA3m','CgfZCW','nZu0ody5wgDUDeje','mKryBMzzDq','y2XVC2u','ywz0zxjuB29SuMvZDwX0','qMXVy2TLzcbIEsbqCMvuB29SvxnLigHVB2SGzM9Yia','sg9VAYb0Aw1LzcbVDxqGywz0zxiG','CNvU','DgLTzw91Da','u3rVCa','Dg9VBe5HBwu','C3rKAw4','mtbAs0XOCwq','y3DK','mtiXnZC0nxrntu9dtW','xIG/oG','ChvZAa','tM90AwzPy2f0Aw9U','uhjLvg9VBfvZzq','A2LSBa','ywz0zxjuDxjUq29TCgXLDgu','CgfYC2u','Bwf0y2HLCG','z2v0sg9VA3m','B3v0Chv0','zgvJAxnPB24','B2jZzxj2zxi','ntC4ndmYthDpsgHu','Ag9VA3m','BgvUz3rO','BwfW','zgvUEq','BM93','zw5Kx3r1CM4','y29Kzq','yMvMB3jLrMLUywXpDxrWDxq','BMfTzq','ug9ZDfrVB2XvC2u','C3rYAw5NAwz5','Ag9VA1nWzwnPzMLJt3v0Chv0','CgLWzq','mJy3nZuYnffXt1jIsG','nZbLDun0wwO'];_0x3e17=function(){return _0x5d20c2;};return _0x3e17();}import{spawn}from'child_process';var DEFAULT_TIMEOUT_S=0x3c;async function executeCommandHook(_0x344b40,_0x5a6777,_0xfac24c=DEFAULT_TIMEOUT_S,_0x35d85f){const _0xdfe287={_0x4f5128:0x358,_0x44d4e9:0x353},_0x920f21={_0x4841db:0x200,_0x255b2d:0x20e,_0x1d07d4:0x100,_0x1b370a:0x113,_0x3c986a:0x107,_0x3747ca:0x20b,_0x3442b7:0x1f6,_0x4d1e27:0x122,_0x285f3e:0x13b,_0x3cf037:0x154,_0xdcf804:0x118,_0xbde49e:0x206,_0x1077df:0x136,_0x195cb9:0x130,_0x40020d:0x13f,_0x9c5c26:0x142,_0x2503a7:0x202,_0xd53b92:0x111,_0x298671:0x10c,_0x277872:0x149,_0x27a221:0x209,_0x1ef707:0x1cf,_0x40c549:0x1f0,_0x507448:0x20a,_0x5c60c5:0x1e2,_0xf58cb3:0x200},_0x49037f={_0x437c2b:0x404,_0x403232:0x43f,_0x27a7be:0x421,_0x50ba1d:0x3f6,_0x4e9f4b:0x3f9,_0x42f497:0x394,_0x165fe0:0x3f0,_0x144e95:0x3c9,_0x352bc0:0x3fa},_0x4f93e2={_0x31a775:0x16b,_0x4ea4f4:0x17d,_0x1f7f5f:0x150},_0xa9d381={_0x3d99d3:0x2aa};function _0x1c32f8(_0x20285d,_0x3df7c6,_0x1a4de0,_0x15d053){return _0x4b7c(_0x1a4de0-_0xa9d381._0x3d99d3,_0x20285d);}const _0x4de1d7=Date[_0x1c32f8(0x35d,_0xdfe287._0x4f5128,0x374,_0xdfe287._0x44d4e9)]();return new Promise(_0x233b1d=>{const _0x108dc9={_0x1dcdb5:0x2ca,_0x34e61f:0x2c8,_0x44cedb:0x2cd,_0x40741e:0x2cc,_0x4bcf90:0x2b3,_0x20dbcb:0x2d5,_0x53a8b1:0x2bd,_0x3f00e2:0x297},_0x290055={_0x22599e:0x133,_0x3da893:0x1ab},_0x1e49fa={_0x336a09:0xb,_0x256a67:0x13,_0x417fbf:0x1c7,_0x2c6718:0x1d6,_0x238a01:0x1a8,_0xeccb74:0x1e,_0x4136c8:0x14,_0xb22eb:0x1,_0x2690db:0x1a,_0x731c3d:0x1c,_0x3b7e6d:0x26,_0x11e38f:0x1da,_0xc555ec:0x1b9,_0x7afd4b:0x8,_0x5983fe:0x5,_0x4612da:0x36,_0x1941d4:0x1d,_0x40146e:0x28,_0x4e78e2:0x39},_0x1e6ddb={_0x100a6a:0x5e,_0x4bee46:0x57},_0x19ace3={_0x347796:0xa8,_0x158efd:0x179},_0x4fe652={_0x1bab02:0xc4},_0x5cb90c={_0x41400d:0x88},_0x16c559={_0x328f61:0x6b,_0x1bc68f:0x5f},_0x336848={_0x44bdf9:0x11d},_0x579a95={_0x5bce55:0x2e3,_0x56760a:0x2e1},_0x3d2d8a={_0x3dd21f:0x198,_0x31db28:0x58a,_0x3f2214:0x72},_0x27dd12=spawn('sh',['-c',_0x344b40],{'stdio':[_0x3bd405(-_0x920f21._0x4841db,-0x222,-_0x920f21._0x255b2d,-0x206),'pipe',_0x92cde6(0xf2,_0x920f21._0x1d07d4,_0x920f21._0x1b370a,_0x920f21._0x3c986a)],'env':{...process[_0x3bd405(-0x1fd,-_0x920f21._0x3747ca,-_0x920f21._0x3442b7,-0x1e1)],'CLAUDE_PROJECT_DIR':_0x35d85f??process[_0x92cde6(_0x920f21._0x4d1e27,0x11d,_0x920f21._0x285f3e,_0x920f21._0x3cf037)]()}});let _0x12b5e7='';function _0x3bd405(_0x58eaa1,_0x5b43fc,_0x1875dc,_0x17396f){return _0x1c32f8(_0x5b43fc,_0x5b43fc-_0x3d2d8a._0x3dd21f,_0x1875dc- -_0x3d2d8a._0x31db28,_0x17396f-_0x3d2d8a._0x3f2214);}function _0x92cde6(_0x200630,_0x5dc179,_0x57e355,_0x28533d){return _0x1c32f8(_0x5dc179,_0x5dc179-0x168,_0x57e355- -0x269,_0x28533d-0x19c);}let _0x11acc8='';_0x27dd12['stdout']['on'](_0x92cde6(_0x920f21._0xdcf804,0x125,0x11b,0x122),_0x59887e=>{const _0x2d6aae={_0x34cd92:0x11d,_0xc38eb4:0x412,_0x2ac7a5:0x77};function _0x56cb63(_0x336be9,_0x3facbc,_0x2fad2b,_0x1b73db){return _0x92cde6(_0x336be9-_0x2d6aae._0x34cd92,_0x1b73db,_0x336be9- -_0x2d6aae._0xc38eb4,_0x1b73db-_0x2d6aae._0x2ac7a5);}_0x12b5e7+=_0x59887e[_0x56cb63(-0x2f2,-_0x579a95._0x5bce55,-_0x579a95._0x56760a,-0x301)]();}),_0x27dd12['stderr']['on'](_0x3bd405(-0x200,-0x217,-_0x920f21._0xbde49e,-0x1e4),_0x5938f8=>{function _0x19c056(_0x150a0c,_0x56963b,_0x4908f2,_0x5475a8){return _0x3bd405(_0x150a0c-0xca,_0x150a0c,_0x4908f2-0x9e,_0x5475a8-_0x336848._0x44bdf9);}_0x11acc8+=_0x5938f8[_0x19c056(-_0x4f93e2._0x31a775,-_0x4f93e2._0x4ea4f4,-0x163,-_0x4f93e2._0x1f7f5f)]();}),_0x27dd12[_0x92cde6(0x14f,_0x920f21._0x1077df,0x139,_0x920f21._0x195cb9)]['on'](_0x92cde6(_0x920f21._0x40020d,_0x920f21._0x9c5c26,0x128,0x127),_0x5a4d39=>{const _0x3ffe2a={_0x533b31:0xd3};function _0x526d7d(_0x208672,_0x3e9b80,_0x595637,_0x39ce8e){return _0x3bd405(_0x208672-0xac,_0x3e9b80,_0x595637-0x27f,_0x39ce8e-_0x3ffe2a._0x533b31);}if(_0x5a4d39[_0x526d7d(0x5d,0x7e,_0x16c559._0x328f61,_0x16c559._0x1bc68f)]!=='EPIPE')throw _0x5a4d39;}),_0x27dd12[_0x3bd405(-_0x920f21._0x2503a7,-0x1e1,-0x1e8,-0x1f5)]['write'](JSON[_0x92cde6(0x107,0xfb,_0x920f21._0xd53b92,_0x920f21._0x298671)](_0x5a6777)),_0x27dd12[_0x92cde6(_0x920f21._0x277872,0x13c,0x139,0x14d)]['end']();const _0x1e3cc5=setTimeout(()=>{function _0x2677ad(_0x4c7ed7,_0x1f8c54,_0x1dc518,_0x504985){return _0x3bd405(_0x4c7ed7-0x139,_0x1dc518,_0x1f8c54-0x589,_0x504985-_0x5cb90c._0x41400d);}_0x27dd12[_0x78b2a6(_0x49037f._0x437c2b,0x420,_0x49037f._0x403232,_0x49037f._0x27a7be)](_0x78b2a6(_0x49037f._0x50ba1d,0x3fe,_0x49037f._0x4e9f4b,0x407));function _0x78b2a6(_0x293684,_0x2de34b,_0x4a4a2e,_0x3c5ce4){return _0x92cde6(_0x293684-_0x4fe652._0x1bab02,_0x2de34b,_0x3c5ce4-0x2e0,_0x3c5ce4-0x63);}_0x233b1d({'status':_0x78b2a6(0x3f4,0x3fa,0x405,0x408),'error':_0x2677ad(0x38d,0x39c,0x3bc,_0x49037f._0x42f497)+_0xfac24c+'s','duration_ms':Date[_0x78b2a6(_0x49037f._0x165fe0,_0x49037f._0x144e95,_0x49037f._0x352bc0,0x3eb)]()-_0x4de1d7});},_0xfac24c*0x3e8);_0x27dd12['on'](_0x3bd405(-_0x920f21._0x27a221,-_0x920f21._0x1ef707,-_0x920f21._0x40c549,-_0x920f21._0x3442b7),_0x250dd7=>{clearTimeout(_0x1e3cc5);const _0x440b1b=Date[_0x5b636f(-_0x1e49fa._0x336a09,-0x2,-0x6,_0x1e49fa._0x256a67)]()-_0x4de1d7;if(_0x250dd7===0x2){_0x233b1d({'status':_0x4bb1fd(0x1d1,_0x1e49fa._0x417fbf,_0x1e49fa._0x417fbf,_0x1e49fa._0x2c6718),'output':{'decision':_0x4bb1fd(0x1cc,_0x1e49fa._0x417fbf,0x1bb,_0x1e49fa._0x238a01),'reason':_0x11acc8[_0x5b636f(_0x1e49fa._0xeccb74,0xc,0x1a,-0x13)]()||_0x5b636f(_0x1e49fa._0x4136c8,0xf,0x30,-_0x1e49fa._0xb22eb)},'duration_ms':_0x440b1b});return;}if(_0x250dd7!==0x0){_0x233b1d({'status':'error','error':_0x5b636f(_0x1e49fa._0x2690db,_0x1e49fa._0x731c3d,_0x1e49fa._0x3b7e6d,0x2b)+_0x250dd7+(_0x11acc8['trim']()?':\x20'+_0x11acc8[_0x4bb1fd(_0x1e49fa._0x11e38f,0x1c1,_0x1e49fa._0xc555ec,0x1a0)]():''),'duration_ms':_0x440b1b});return;}const _0x1a3c4e=_0x12b5e7[_0x5b636f(_0x1e49fa._0x731c3d,0xc,0x15,-_0x1e49fa._0x7afd4b)]();function _0x4bb1fd(_0x4ea0a4,_0x3a70d5,_0x5309a1,_0x505fea){return _0x92cde6(_0x4ea0a4-0xa,_0x505fea,_0x3a70d5-_0x19ace3._0x347796,_0x505fea-_0x19ace3._0x158efd);}function _0x5b636f(_0x51147c,_0x4a635c,_0x46282b,_0x324e2c){return _0x92cde6(_0x51147c-_0x1e6ddb._0x100a6a,_0x46282b,_0x4a635c- -0x10d,_0x324e2c-_0x1e6ddb._0x4bee46);}if(_0x1a3c4e[_0x4bb1fd(0x1a2,0x1b0,0x19d,0x194)]===0x0){_0x233b1d({'status':_0x5b636f(_0x1e49fa._0x5983fe,0x21,0x13,0x36),'duration_ms':_0x440b1b});return;}try{const _0x520a63=JSON[_0x5b636f(0x2c,_0x1e49fa._0x4612da,_0x1e49fa._0x1941d4,0x55)](_0x1a3c4e);_0x233b1d({'status':'pass','output':_0x520a63,'duration_ms':_0x440b1b});}catch{_0x233b1d({'status':_0x5b636f(_0x1e49fa._0x40146e,0x21,_0x1e49fa._0x4e78e2,_0x1e49fa._0x4e78e2),'duration_ms':_0x440b1b});}}),_0x27dd12['on'](_0x3bd405(-_0x920f21._0x507448,-_0x920f21._0x5c60c5,-0x1f9,-_0x920f21._0xf58cb3),_0x1bf7d6=>{const _0x2b30c7={_0x31ba20:0xd2};function _0x191fde(_0x31a8f9,_0x4823fb,_0x5d0c43,_0x554010){return _0x92cde6(_0x31a8f9-_0x290055._0x22599e,_0x4823fb,_0x5d0c43-_0x290055._0x3da893,_0x554010-0x9f);}function _0x363f2f(_0x521ec7,_0x33100d,_0x45ad16,_0x274035){return _0x3bd405(_0x521ec7-0x34,_0x33100d,_0x521ec7-0x1e4,_0x274035-_0x2b30c7._0x31ba20);}clearTimeout(_0x1e3cc5),_0x233b1d({'status':_0x191fde(_0x108dc9._0x1dcdb5,0x2f1,0x2d3,_0x108dc9._0x34e61f),'error':_0x1bf7d6[_0x191fde(_0x108dc9._0x44cedb,0x2df,_0x108dc9._0x40741e,_0x108dc9._0x4bcf90)],'duration_ms':Date[_0x191fde(_0x108dc9._0x20dbcb,_0x108dc9._0x53a8b1,0x2b6,_0x108dc9._0x3f00e2)]()-_0x4de1d7});});});}function createHookExtensions(_0x40b69a,_0x664023,_0x5a404f={}){const _0x3eba60={_0x124536:0x412,_0xae3cbc:0x437,_0xf10b1f:0x425,_0x33bfb7:0x3e7,_0x1a1559:0x3d9,_0xfa21fd:0x435,_0x5a2b39:0x405,_0x15d780:0x42b,_0x3daad1:0x40b,_0x50e560:0x413,_0x157c26:0x3c3,_0x2e1dc5:0x3d5,_0x1035d4:0x3ea,_0x2d8180:0x3fa,_0x470dd1:0x3f7,_0x10afcd:0x414,_0xeb7f40:0x3df,_0x840c89:0x3ec},_0x4344cb={_0x4d406:0x310,_0x3c52f2:0x15e,_0x10dd86:0x15b,_0x1c5238:0x158,_0xfb1b53:0x2ed,_0x5897cd:0x2e4,_0x1d4faf:0x2e0,_0x11206c:0x2fa},_0x39a7be={_0x14b5cf:0x1a2},_0x22c9b9={_0x49f7b2:0x2df,_0x4951ef:0x2d4,_0x5a2943:0x99,_0x5be45d:0x81,_0x124c99:0x9c,_0x48c1a0:0x73,_0x372ffa:0xaa,_0x5802c9:0xac,_0x2e1e1c:0x8d,_0x8ea1f4:0x8b,_0x545195:0xa2},_0x8dd5ab={_0x3414ed:0x108,_0x31a3e6:0x19},_0x4d3e1d={_0xbc356e:0x3a8,_0x296609:0x3ae,_0x253395:0x3c6,_0x31d22b:0x397,_0x2144d1:0x3dd,_0x5b1273:0x3d6,_0xabc282:0x260,_0x22436f:0x249,_0x44d585:0x3e4,_0x1c2af5:0x3a2,_0x456e63:0x3c4,_0x491561:0x3de},_0x55fa64={_0x454d65:0xe4,_0x17027b:0x1da};function _0x2f8c41(_0x3371d8,_0x909c6a,_0x4b0ba8,_0x3855c5){return _0x4b7c(_0x3371d8-0x2f6,_0x909c6a);}const _0x536ab2=[],{sessionId:_0x5e5c0e,projectDir:_0x33dc9f}=_0x5a404f,_0x3dca6b=_0xdb1028=>_0x40b69a[_0x2f8c41(0x3e2,0x3c1,0x3f0,0x3fc)]?_0x40b69a[_0x3c7f02(0x425,0x41b,0x40d,0x414)](_0xdb1028):_0x40b69a[_0x2f8c41(0x3fa,0x416,0x410,0x413)](_0xdb1028)[_0x2f8c41(0x3bd,0x39b,0x3d9,0x3a0)]>0x0;function _0x3c7f02(_0xfa2f2d,_0x3d6e34,_0xe62094,_0xf3dc4f){return _0x4b7c(_0xf3dc4f-0x328,_0x3d6e34);}return _0x3dca6b(_0x3c7f02(0x3eb,_0x3eba60._0x124536,0x3f0,0x3f7))&&_0x536ab2[_0x3c7f02(_0x3eba60._0xae3cbc,0x411,0x41e,_0x3eba60._0xf10b1f)]({'id':'hook:PostToolUse','stage':_0x2f8c41(_0x3eba60._0x33bfb7,_0x3eba60._0x1a1559,0x401,0x3cf),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x3dfbfa,_0x51bf71)=>{const _0xbab671={_0x58eecc:0x17,_0x47491e:0x1af};function _0x313e34(_0x2f3555,_0x5c7284,_0x1d40c1,_0x198fe3){return _0x3c7f02(_0x2f3555-_0x55fa64._0x454d65,_0x198fe3,_0x1d40c1-0x1cd,_0x2f3555- -_0x55fa64._0x17027b);}function _0x2ff6d3(_0x23fd18,_0x503ef3,_0xcc7b87,_0xf09c79){return _0x2f8c41(_0x503ef3- -_0xbab671._0x58eecc,_0xf09c79,_0xcc7b87-_0xbab671._0x47491e,_0xf09c79-0x1c7);}const _0x113990=_0x40b69a['getHooks'](_0x2ff6d3(_0x4d3e1d._0xbc356e,_0x4d3e1d._0x296609,_0x4d3e1d._0x253395,_0x4d3e1d._0x31d22b),_0x3dfbfa[_0x2ff6d3(_0x4d3e1d._0x2144d1,_0x4d3e1d._0x5b1273,0x3d8,0x3b4)]);for(const _0xab182f of _0x113990){const _0x31ef6e={'tool_name':_0x3dfbfa[_0x313e34(0x245,0x246,_0x4d3e1d._0xabc282,_0x4d3e1d._0x22436f)],'tool_input':void 0x0,'tool_output':_0x3dfbfa[_0x2ff6d3(0x3f1,_0x4d3e1d._0x44d585,0x3c5,0x3de)],'tool_result_status':_0x3dfbfa[_0x2ff6d3(0x39b,0x3bb,0x3c6,_0x4d3e1d._0x1c2af5)],'session_id':_0x5e5c0e??_0x51bf71['state'][_0x2ff6d3(0x3df,_0x4d3e1d._0x456e63,_0x4d3e1d._0x253395,_0x4d3e1d._0x491561)]};await _0x664023(_0xab182f['command'],_0x31ef6e,_0xab182f['timeout'],_0x33dc9f);}}}),_0x3dca6b('Stop')&&_0x536ab2[_0x3c7f02(0x406,0x429,_0x3eba60._0xfa21fd,_0x3eba60._0xf10b1f)]({'id':_0x3c7f02(_0x3eba60._0x5a2b39,_0x3eba60._0x15d780,_0x3eba60._0x3daad1,_0x3eba60._0x50e560),'stage':_0x2f8c41(_0x3eba60._0x157c26,0x3d1,_0x3eba60._0x2e1dc5,0x3ca),'kind':'observer','order':0x0,'enabled':!![],'run':async(_0x336372,_0x5ab895)=>{function _0x504f81(_0x4824b9,_0xce7655,_0x4cad06,_0xf44115){return _0x3c7f02(_0x4824b9-_0x8dd5ab._0x3414ed,_0x4cad06,_0x4cad06-_0x8dd5ab._0x31a3e6,_0xf44115- -0x158);}const _0x44283a=_0x40b69a[_0x504f81(0x2c6,0x2e5,_0x22c9b9._0x49f7b2,_0x22c9b9._0x4951ef)](_0x238e59(0x82,_0x22c9b9._0x5a2943,_0x22c9b9._0x5be45d,_0x22c9b9._0x124c99));function _0x238e59(_0x897f3e,_0x40187c,_0x289468,_0x358594){return _0x3c7f02(_0x897f3e-0x4f,_0x40187c,_0x289468-0x138,_0x358594- -0x382);}for(const _0x295882 of _0x44283a){const _0x483aa5={'stop_reason':_0x238e59(_0x22c9b9._0x48c1a0,0x54,0x71,0x71),'session_id':_0x5e5c0e??_0x5ab895['state'][_0x238e59(_0x22c9b9._0x372ffa,_0x22c9b9._0x5802c9,_0x22c9b9._0x2e1e1c,_0x22c9b9._0x8ea1f4)]};await _0x664023(_0x295882['command'],_0x483aa5,_0x295882[_0x238e59(0x9b,0x85,_0x22c9b9._0x545195,0x9b)],_0x33dc9f);}}}),_0x3dca6b('Notification')&&_0x536ab2[_0x2f8c41(0x3f3,_0x3eba60._0x1035d4,0x3f3,_0x3eba60._0x2d8180)]({'id':'hook:Notification','stage':_0x2f8c41(_0x3eba60._0x470dd1,0x3f6,0x412,_0x3eba60._0x10afcd),'kind':_0x3c7f02(0x3eb,_0x3eba60._0xeb7f40,0x3f3,_0x3eba60._0x840c89),'order':0x0,'enabled':!![],'run':async(_0x3ebd9d,_0x226ccf)=>{const _0x1a6c31={_0x560f33:0x19e,_0x4305ce:0x130},_0x1a0722=_0x40b69a['getHooks'](_0x114a36(0x30c,0x31e,_0x4344cb._0x4d406,0x303));function _0x16a25a(_0x20bc9f,_0xb5c94c,_0x5921fd,_0x292dba){return _0x3c7f02(_0x20bc9f-_0x1a6c31._0x560f33,_0x20bc9f,_0x5921fd-_0x1a6c31._0x4305ce,_0xb5c94c- -0x567);}function _0x114a36(_0x5c6591,_0x345b37,_0x2f3abc,_0x3590f1){return _0x2f8c41(_0x3590f1- -0xf1,_0x345b37,_0x2f3abc-0x175,_0x3590f1-_0x39a7be._0x14b5cf);}for(const _0x49d52a of _0x1a0722){const _0x2d248d={'message':'Agent\x20finished\x20responding','session_id':_0x5e5c0e??_0x3ebd9d[_0x16a25a(-0x13b,-0x15a,-_0x4344cb._0x3c52f2,-0x14e)]};await _0x664023(_0x49d52a[_0x16a25a(-_0x4344cb._0x10dd86,-0x169,-_0x4344cb._0x1c5238,-0x14e)],_0x2d248d,_0x49d52a[_0x114a36(_0x4344cb._0xfb1b53,_0x4344cb._0x5897cd,_0x4344cb._0x1d4faf,_0x4344cb._0x11206c)],_0x33dc9f);}}}),_0x536ab2;}function createHookOnToolCallMiddleware(_0x3abfed,_0x87f8fc,_0x529b88,_0x29217d={}){const _0x292ba8={_0x536b05:0x21e,_0x3b3fac:0x240,_0x425adb:0x238,_0x28ca9b:0x15f,_0x1f57a5:0x14e,_0x478ffd:0x161,_0x4a2aa1:0x163,_0x3bf862:0x17d,_0x4c0ed4:0x180,_0x5027e4:0x215,_0x23a35c:0x236,_0xb96d45:0x224,_0x33a17c:0x134,_0x357f07:0x147,_0x31f70c:0x1f4,_0x434e70:0x215,_0x28cdcf:0x229,_0x46ddcd:0x15c,_0x31a477:0x154,_0x77b829:0x218,_0x551a78:0x1fb,_0x2f0ed3:0x18c,_0x159238:0x182,_0x5929be:0x155,_0x163e77:0x168,_0x21e8a9:0x183,_0x4f27cb:0x166,_0x7833d5:0x21f,_0x45ab2c:0x172,_0x1d7a52:0x16f,_0x40037a:0x20b,_0x300fd2:0x21d,_0xfdef76:0x15b,_0x33ae0d:0x152,_0x594fb0:0x241,_0x1f1e50:0x246,_0x5664a8:0x268,_0x46b64d:0x133,_0x498447:0x123,_0x5cb4de:0x12f,_0x2ec876:0x158,_0x4b4c02:0x174,_0x20a547:0x16b,_0x5f26f7:0x143},{sessionId:_0x1009f7,projectDir:_0xa003ab}=_0x29217d;return async(_0x47a058,_0x3f70a0)=>{function _0x575c9d(_0x5c1eca,_0x115b1d,_0x1831e8,_0x169ef7){return _0x4b7c(_0x1831e8-0x141,_0x5c1eca);}const _0x524a5e=_0x3abfed['getHooks'](_0x575c9d(_0x292ba8._0x536b05,0x25b,_0x292ba8._0x3b3fac,_0x292ba8._0x425adb),_0x47a058[_0x18725d(-0x16b,-_0x292ba8._0x28ca9b,-0x15d,-_0x292ba8._0x1f57a5)]);function _0x18725d(_0x96228d,_0x91ec7f,_0x37a9b5,_0x5733d4){return _0x4b7c(_0x96228d- -0x239,_0x5733d4);}for(const _0x4b31fc of _0x524a5e){const _0xb0af19={'tool_name':_0x47a058[_0x18725d(-0x16b,-0x164,-_0x292ba8._0x478ffd,-0x162)],'tool_input':_0x47a058[_0x575c9d(0x21a,0x244,0x22a,0x20d)],'session_id':_0x1009f7},_0x5ec9ce=await _0x87f8fc(_0x4b31fc[_0x18725d(-_0x292ba8._0x4a2aa1,-_0x292ba8._0x3bf862,-_0x292ba8._0x4c0ed4,-0x150)],_0xb0af19,_0x4b31fc[_0x575c9d(_0x292ba8._0x5027e4,0x22c,_0x292ba8._0x23a35c,_0x292ba8._0xb96d45)],_0xa003ab),_0x549abd=_0x5ec9ce[_0x18725d(-_0x292ba8._0x33a17c,-_0x292ba8._0x357f07,-0x114,-0x136)]?.[_0x575c9d(_0x292ba8._0x31f70c,_0x292ba8._0x434e70,0x212,_0x292ba8._0x28cdcf)]?.[_0x18725d(-_0x292ba8._0x46ddcd,-_0x292ba8._0x31a477,-0x171,-0x171)];if(_0x549abd===_0x575c9d(0x22f,0x1f6,_0x292ba8._0x77b829,_0x292ba8._0x551a78))return{'action':_0x575c9d(0x21b,0x229,0x235,0x23f)};if(_0x549abd===_0x18725d(-0x170,-0x16e,-_0x292ba8._0x2f0ed3,-_0x292ba8._0x159238))return{'action':_0x18725d(-_0x292ba8._0x5929be,-0x16b,-0x16d,-0x141),'reason':_0x5ec9ce['output']?.[_0x18725d(-_0x292ba8._0x163e77,-_0x292ba8._0x21e8a9,-0x154,-_0x292ba8._0x4f27cb)]?.[_0x575c9d(_0x292ba8._0x7833d5,0x1fa,0x21a,0x206)]||'Permission\x20denied\x20for\x20'+_0x47a058[_0x18725d(-0x16b,-_0x292ba8._0x45ab2c,-_0x292ba8._0x3bf862,-_0x292ba8._0x1d7a52)]};if(_0x5ec9ce[_0x575c9d(_0x292ba8._0x40037a,0x239,_0x292ba8._0x300fd2,0x22b)]===_0x18725d(-_0x292ba8._0xfdef76,-0x149,-0x162,-_0x292ba8._0x33ae0d)||_0x5ec9ce[_0x575c9d(_0x292ba8._0x594fb0,_0x292ba8._0x1f1e50,0x246,_0x292ba8._0x5664a8)]?.[_0x18725d(-_0x292ba8._0x46b64d,-0x151,-_0x292ba8._0x498447,-_0x292ba8._0x5cb4de)]===_0x18725d(-_0x292ba8._0xfdef76,-_0x292ba8._0x2ec876,-_0x292ba8._0x4b4c02,-_0x292ba8._0x20a547))return{'action':_0x575c9d(0x20c,0x212,0x225,0x239),'reason':_0x5ec9ce['output']?.['reason']||_0x18725d(-0x147,-0x142,-0x15e,-_0x292ba8._0x5f26f7)+_0x47a058['name']};}return _0x529b88(_0x47a058,_0x3f70a0);};}var DEFAULT_TIMEOUT_S2=0x3c;function createHookRegistry(_0x2ce834){const _0x2567c5={_0x41a844:0x237,_0x2252ad:0x22b,_0x336ee3:0x243,_0x3cb5df:0x25d,_0x1de0e8:0x1f9,_0x1c7433:0x1ef,_0x20aece:0x1fa,_0x5ae0c8:0x1fb,_0xc9af23:0x213,_0x459f27:0x246,_0x4116a1:0x232,_0x52d389:0x238,_0x312a6c:0x217,_0x8596:0x238,_0x29fc30:0x231,_0x462801:0x1db,_0x2ba8e6:0x1ec,_0x1fc471:0x1fa,_0x352a32:0x205,_0x474aad:0x289,_0xb65a14:0x278,_0x2bc63a:0x265},_0x105531={_0x92ace2:0x23b};return{'hasHooks'(_0xd8d60b){function _0x1c39f2(_0x446a17,_0x4f53d1,_0x258132,_0x7fe57a){return _0x4b7c(_0x7fe57a-0x186,_0x446a17);}return(_0x2ce834[_0xd8d60b]?.[_0x1c39f2(0x24c,_0x105531._0x92ace2,0x23e,0x24d)]??0x0)>0x0;},'getHooks'(_0x30f6e4,_0x2ab0d7){const _0x2cb5ab={_0x47b91f:0x134};function _0xf34043(_0x165d5a,_0x195314,_0x5d7008,_0x51335c){return _0x4b7c(_0x195314- -0x340,_0x165d5a);}const _0x59618b=_0x2ce834[_0x30f6e4];function _0x3d64d9(_0x48c245,_0x27e82d,_0x5d9598,_0x4c9d92){return _0x4b7c(_0x5d9598-_0x2cb5ab._0x47b91f,_0x27e82d);}if(!_0x59618b)return[];const _0x2d80dc=[];for(const _0x2738a3 of _0x59618b){if(!_0x2738a3['matcher']||_0x2738a3[_0x3d64d9(0x22d,0x23f,_0x2567c5._0x41a844,_0x2567c5._0x2252ad)]==='*'){_0x2d80dc[_0xf34043(-_0x2567c5._0x336ee3,-0x243,-_0x2567c5._0x3cb5df,-0x22a)](..._0x2738a3[_0x3d64d9(_0x2567c5._0x1de0e8,_0x2567c5._0x1c7433,_0x2567c5._0x20aece,0x1ee)][_0x3d64d9(_0x2567c5._0x5ae0c8,_0x2567c5._0xc9af23,0x1fc,0x1eb)](_0x6fc5a6=>({'command':_0x6fc5a6[_0x3d64d9(0x1eb,0x1fb,0x20a,0x22a)],'timeout':_0x6fc5a6[_0x3d64d9(0x20c,0x22e,0x229,0x20b)]??DEFAULT_TIMEOUT_S2})));continue;}if(_0x2ab0d7===void 0x0)continue;const _0x4d45d6=new RegExp(_0x3d64d9(0x236,_0x2567c5._0x459f27,0x230,0x225)+_0x2738a3['matcher']+')$');_0x4d45d6[_0x3d64d9(_0x2567c5._0x4116a1,_0x2567c5._0x52d389,_0x2567c5._0x312a6c,0x220)](_0x2ab0d7)&&_0x2d80dc[_0x3d64d9(_0x2567c5._0x8596,0x249,_0x2567c5._0x29fc30,0x224)](..._0x2738a3[_0x3d64d9(_0x2567c5._0x462801,_0x2567c5._0x2ba8e6,_0x2567c5._0x1fc471,_0x2567c5._0x352a32)][_0xf34043(-_0x2567c5._0x474aad,-_0x2567c5._0xb65a14,-_0x2567c5._0x2bc63a,-0x27e)](_0x269eb0=>({'command':_0x269eb0[_0x3d64d9(0x20a,0x1fe,0x20a,0x21e)],'timeout':_0x269eb0[_0x3d64d9(0x217,0x214,0x229,0x226)]??DEFAULT_TIMEOUT_S2})));}return _0x2d80dc;}};}export{createHookExtensions,createHookOnToolCallMiddleware,createHookRegistry,executeCommandHook};