@nuvin/agent-core 0.0.0-rc.0 → 0.0.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (function(_0x349f64,_0x2ca0db){const _0x41ed6d={_0x1db3dc:0x57d,_0x44d547:0x5d0,_0x533877:0x529,_0x49b1bf:0x4e4,_0x423a1f:0x557,_0x5f39f6:0x44a,_0x3ae926:0x3df,_0x36ff49:0x487,_0x3dd4e7:0x546,_0x19ff2b:0x577,_0xf45976:0x59e,_0x4354bd:0x524,_0x92e4e8:0x596},_0x35c5fb={_0xe6c95b:0x367};function _0x3c121a(_0xf8bd62,_0xd320d1,_0x10ed18,_0x319737){return _0x501c(_0x10ed18-_0x35c5fb._0xe6c95b,_0x319737);}function _0x41d2dd(_0x3a9c45,_0x3a005d,_0x3bd665,_0xdc6edf){return _0x501c(_0x3a005d-0x38d,_0xdc6edf);}const _0x40d21b=_0x349f64();while(!![]){try{const _0x387798=parseInt(_0x3c121a(_0x41ed6d._0x1db3dc,_0x41ed6d._0x44d547,_0x41ed6d._0x533877,_0x41ed6d._0x49b1bf))/0x1*(-parseInt(_0x3c121a(0x5c4,0x4ca,_0x41ed6d._0x423a1f,0x604))/0x2)+-parseInt(_0x41d2dd(0x420,0x4dd,0x501,0x557))/0x3+parseInt(_0x41d2dd(0x52b,0x50c,_0x41ed6d._0x5f39f6,0x505))/0x4+-parseInt(_0x41d2dd(0x61b,0x5ad,0x562,0x64c))/0x5+-parseInt(_0x41d2dd(_0x41ed6d._0x3ae926,_0x41ed6d._0x36ff49,0x4a9,0x3e5))/0x6*(-parseInt(_0x41d2dd(0x44b,0x478,0x4f3,0x538))/0x7)+parseInt(_0x3c121a(_0x41ed6d._0x3dd4e7,0x5ec,_0x41ed6d._0x19ff2b,_0x41ed6d._0xf45976))/0x8+parseInt(_0x3c121a(0x580,0x495,_0x41ed6d._0x4354bd,_0x41ed6d._0x92e4e8))/0x9;if(_0x387798===_0x2ca0db)break;else _0x40d21b['push'](_0x40d21b['shift']());}catch(_0x1ed114){_0x40d21b['push'](_0x40d21b['shift']());}}}(_0x5737,0x814cb));import{toOpenAiResponsesRequest}from'../chunk-U2BLX7Y5.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-C6OLKGP6.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE=_0x65d232(0xdd,0x8a,0x15a,0x10f);function parseToolInput(_0x3e0b8a){const _0xc847e6={_0x24a1db:0x5a,_0x580e00:0x30,_0xa49734:0x4a,_0x1a0443:0x4},_0x966e0d={_0x51555b:0x17a};function _0x4c0839(_0x2c6be8,_0x594c2f,_0x294d89,_0x56d0c6){return _0x65d232(_0x2c6be8- -0xba,_0x56d0c6,_0x294d89-_0x966e0d._0x51555b,_0x56d0c6-0x3e);}try{return JSON[_0x4c0839(-_0xc847e6._0x24a1db,-_0xc847e6._0x580e00,-_0xc847e6._0xa49734,_0xc847e6._0x1a0443)](_0x3e0b8a);}catch{return _0x3e0b8a;}}function resolveReasoningVisibility(_0x1dfed9){const _0x2036a5={_0x552341:0x2c7,_0x2ed9bf:0x317,_0x34ae01:0x263,_0x125931:0x34c},_0x4d3355={_0x36d191:0x2bf,_0x4beb5b:0xa5,_0x4cd1b2:0xc5};function _0x383d69(_0x257ace,_0x11af4e,_0x440ffe,_0x5baaf5){return _0x65d232(_0x5baaf5- -0x49,_0x257ace,_0x440ffe-0x180,_0x5baaf5-0x127);}function _0xdc6166(_0x2d73dd,_0x2d3f2d,_0x2e95da,_0x2fe467){return _0x65d232(_0x2e95da- -_0x4d3355._0x36d191,_0x2d3f2d,_0x2e95da-_0x4d3355._0x4beb5b,_0x2fe467-_0x4d3355._0x4cd1b2);}return _0x1dfed9[_0xdc6166(-0x334,-_0x2036a5._0x552341,-0x27a,-_0x2036a5._0x2ed9bf)]?.['visibility']??_0xdc6166(-0x345,-_0x2036a5._0x34ae01,-0x29c,-_0x2036a5._0x125931);}function isUserVisibleThinking(_0x12ab80){const _0x5e48ab={_0x41c88d:0x306,_0x49ef4f:0x37f,_0xbad981:0x4a7},_0x19150f={_0x25db55:0x2b0,_0xbd1c19:0x161,_0x42a858:0x10a},_0x3963f4=resolveAnthropicThinkingConfig(_0x12ab80['reasoning']);function _0x3d1cfd(_0x4e08de,_0x4293ea,_0x4258f2,_0x799aab){return _0x65d232(_0x4258f2-_0x19150f._0x25db55,_0x799aab,_0x4258f2-_0x19150f._0xbd1c19,_0x799aab-_0x19150f._0x42a858);}function _0x32f16d(_0x2c98dd,_0x589640,_0x646aab,_0x3bdf47){return _0x65d232(_0x3bdf47-0x4b7,_0x2c98dd,_0x646aab-0x1f1,_0x3bdf47-0x176);}return _0x3963f4!==void 0x0&&_0x3963f4['type']!==_0x3d1cfd(0x38e,_0x5e48ab._0x41c88d,0x2f9,_0x5e48ab._0x49ef4f)&&resolveReasoningVisibility(_0x12ab80)===_0x32f16d(_0x5e48ab._0xbad981,0x450,0x4b9,0x4da);}function createAnthropicThinkingBody(_0x2e2399){const _0x428bfb={_0xd3732a:0x65,_0x287180:0x91,_0x4bfe5f:0x58,_0x4e2b85:0xaa,_0x20997e:0xf7,_0x48d517:0x41,_0x5221d4:0xc,_0x3a66e4:0x120,_0x4ea79f:0x6c,_0x29ec3d:0xe6,_0x4a93ef:0x23,_0x5b601c:0xd8,_0x4dcde3:0x8a,_0x571b0e:0x7e,_0x70279a:0xd4,_0x369fa6:0xe4,_0x3a8b0d:0xde,_0x52a555:0x94,_0x5b6441:0x4c,_0x1a08af:0x2},_0x4e82f4={_0x178d6a:0x4f,_0x1d42fa:0x197},_0x599611={_0x2f2e0f:0xfc,_0x3b73db:0x14f},_0x4d6d7c=resolveAnthropicThinkingConfig(_0x2e2399[_0x37f49b(-_0x428bfb._0xd3732a,0x8,_0x428bfb._0x287180,_0x428bfb._0x4bfe5f)]);if(!_0x4d6d7c||_0x4d6d7c[_0x37f49b(0x1a,_0x428bfb._0x4e2b85,_0x428bfb._0x20997e,_0x428bfb._0x48d517)]===_0x37f49b(-0x2c,0xc,-0x71,0x7c))return{};const _0x4b034d=_0x4d6d7c[_0x3fc9a7(0x21,0xa5,-0xc8,-0x7)]??(isUserVisibleThinking(_0x2e2399)?'summarized':'omitted');function _0x3fc9a7(_0x583f4f,_0x4a5172,_0x23c1f6,_0xc67a94){return _0x65d232(_0xc67a94- -_0x599611._0x2f2e0f,_0x583f4f,_0x23c1f6-0xbd,_0xc67a94-_0x599611._0x3b73db);}const _0x37bdb9=_0x4d6d7c[_0x37f49b(-0xff,-0x72,_0x428bfb._0x5221d4,-_0x428bfb._0x3a66e4)]?{'anthropic-beta':'interleaved-thinking-2025-05-14'}:void 0x0;if(_0x4d6d7c[_0x37f49b(_0x428bfb._0x4ea79f,0xaa,0xd9,0xd3)]===_0x37f49b(0xd5,0x4e,0xf8,_0x428bfb._0x29ec3d))return{..._0x37bdb9?{'headers':_0x37bdb9}:{},'thinking':{'type':_0x3fc9a7(-0x8,_0x428bfb._0x4a93ef,-0xac,-0x71),'budget_tokens':_0x4d6d7c[_0x3fc9a7(-_0x428bfb._0x5b601c,0x34,-_0x428bfb._0x4dcde3,-_0x428bfb._0x571b0e)],'display':_0x4b034d}};function _0x37f49b(_0x43c12a,_0x2d10bb,_0x57b28b,_0x2f656a){return _0x65d232(_0x2d10bb- -0x3d,_0x2f656a,_0x57b28b-_0x4e82f4._0x178d6a,_0x2f656a-_0x4e82f4._0x1d42fa);}return{..._0x37bdb9?{'headers':_0x37bdb9}:{},'thinking':{'type':_0x37f49b(_0x428bfb._0x70279a,_0x428bfb._0x369fa6,0x168,_0x428bfb._0x3a8b0d),..._0x4d6d7c[_0x3fc9a7(-_0x428bfb._0x52a555,-0x8f,_0x428bfb._0x5b6441,-_0x428bfb._0x1a08af)]?{'effort':_0x4d6d7c['effort']}:{},'display':_0x4b034d}};}function toAnthropicRequestContent(_0x92bcc7){const _0x427bd0={_0x59060b:0x1cc,_0x4cc630:0x25f,_0x3a5687:0x31b,_0x411896:0x271,_0x46a5eb:0x20d,_0x6a136:0x1e4,_0x4bd358:0x25a,_0x4f5fa1:0x339,_0x9850d3:0x2b4,_0x5a56e9:0x2c4,_0x27dee9:0x2d5,_0x50fe73:0x263,_0x1417c5:0x307,_0xa43834:0x2e6,_0x52c321:0x2ca,_0xb5985c:0x38d,_0x4edcc9:0x1ca,_0x26f6fa:0x27c,_0x737aef:0x228,_0x50ad91:0x2cb,_0x40d2b3:0x27e,_0x3eec18:0x35d,_0x53016c:0x2c3,_0x224059:0x204,_0x3218f2:0x22e,_0xd33f6f:0x254,_0x30da6f:0x211,_0x2ce233:0x158,_0x3bd60e:0x34d,_0x39e092:0x27b},_0x3ff14e={_0x56883b:0x220,_0x191fd5:0x1f4,_0x12b8cf:0x48},_0xe814f3={_0x169668:0x19f};function _0x4eced5(_0x38faa9,_0x334ed6,_0x35c77c,_0x27398f){return _0x65d232(_0x27398f-0x20f,_0x38faa9,_0x35c77c-0x101,_0x27398f-_0xe814f3._0x169668);}if(_0x92bcc7[_0x863347(_0x427bd0._0x59060b,_0x427bd0._0x4cc630,_0x427bd0._0x3a5687,0x216)]===_0x863347(0x1f3,0x28d,0x33e,_0x427bd0._0x411896)&&_0x92bcc7[_0x4eced5(0x1fe,_0x427bd0._0x46a5eb,_0x427bd0._0x6a136,0x2a3)]?.[_0x4eced5(0x2d5,0x273,0x2d4,_0x427bd0._0x4bd358)])return structuredClone(_0x92bcc7[_0x863347(_0x427bd0._0x4f5fa1,_0x427bd0._0x9850d3,0x2af,0x22f)][_0x863347(_0x427bd0._0x5a56e9,0x26b,0x24e,_0x427bd0._0x27dee9)]);const _0x3fd567=[];for(const _0x38317e of normalizeContent(_0x92bcc7['content'])){if(_0x38317e[_0x863347(_0x427bd0._0x50fe73,_0x427bd0._0x1417c5,_0x427bd0._0xa43834,_0x427bd0._0x52c321)]===_0x863347(0x3ad,0x304,_0x427bd0._0xb5985c,0x353))continue;if(_0x38317e['type']===_0x863347(_0x427bd0._0x4edcc9,_0x427bd0._0x26f6fa,0x1ff,_0x427bd0._0x737aef)){_0x3fd567[_0x4eced5(0x243,_0x427bd0._0x5a56e9,_0x427bd0._0x50ad91,0x2c3)]({'type':'thinking','thinking':_0x38317e['thinking'],'signature':_0x38317e[_0x863347(0x2e6,0x278,0x2ae,_0x427bd0._0x40d2b3)]});continue;}if(_0x38317e[_0x863347(_0x427bd0._0x3eec18,_0x427bd0._0x1417c5,0x2c4,0x3c3)]===_0x863347(0x291,0x248,_0x427bd0._0x53016c,0x20a)){_0x3fd567[_0x4eced5(_0x427bd0._0x224059,_0x427bd0._0x3218f2,_0x427bd0._0xd33f6f,0x2c3)]({'type':_0x863347(0x2ca,_0x427bd0._0x30da6f,_0x427bd0._0x2ce233,0x168),'data':_0x38317e[_0x863347(0x2a1,0x2f2,0x2cc,_0x427bd0._0x3bd60e)]});continue;}_0x3fd567[_0x4eced5(0x349,0x215,_0x427bd0._0x39e092,0x2c3)](structuredClone(_0x38317e));}function _0x863347(_0x2d8286,_0x4d28fd,_0x68ef3b,_0x1a930e){return _0x65d232(_0x4d28fd-_0x3ff14e._0x56883b,_0x2d8286,_0x68ef3b-_0x3ff14e._0x191fd5,_0x1a930e-_0x3ff14e._0x12b8cf);}return _0x3fd567;}function createAnthropicRequest(_0x12b985,_0x4cbc5e){const _0xe2466b={_0x1660e3:0x136,_0x9ead8c:0x77,_0x223e28:0x9,_0x5e33a:0x8e,_0x2bf507:0x3f,_0x5b16d1:0xc9,_0x3ff0c5:0xe3,_0x4771f9:0x24,_0x378fc5:0xa3,_0x15cf59:0xa7,_0x566825:0x34,_0xdccad3:0x4b,_0x7e6546:0xc,_0x269dbd:0x10b},_0x469ab4={_0x28fdde:0x1a0,_0x44ae09:0x63},_0x148e49={_0x1bb94b:0x108};function _0x24e13d(_0x5892bf,_0x1bdb25,_0x41c08c,_0x2b3ee2){return _0x65d232(_0x2b3ee2- -_0x148e49._0x1bb94b,_0x1bdb25,_0x41c08c-0xd0,_0x2b3ee2-0x130);}const _0x567aea=toProviderModelRequest(_0x12b985),_0x385a2b=createAnthropicThinkingBody(_0x12b985);function _0xb6e4ee(_0x387283,_0x41215c,_0xd9c9e7,_0x20f81c){return _0x65d232(_0x20f81c- -_0x469ab4._0x28fdde,_0x41215c,_0xd9c9e7-_0x469ab4._0x44ae09,_0x20f81c-0x52);}return{'accept':_0x4cbc5e?_0xb6e4ee(-_0xe2466b._0x1660e3,-_0xe2466b._0x9ead8c,_0xe2466b._0x223e28,-0x7a):_0x24e13d(-_0xe2466b._0x5e33a,0x22,-0xb,-_0xe2466b._0x2bf507),'body':{..._0x567aea,'messages':_0x12b985[_0xb6e4ee(-_0xe2466b._0x5b16d1,-0x36,-0xa8,-_0xe2466b._0x3ff0c5)][_0x24e13d(-0xca,-0xde,-0x7c,-0x8d)](_0x43c98a=>{return{'role':_0x43c98a['role'],'content':toAnthropicRequestContent(_0x43c98a)};}),..._0x385a2b[_0x24e13d(-_0xe2466b._0x4771f9,-_0xe2466b._0x378fc5,-0x61,-0x34)]?{'thinking':_0x385a2b[_0x24e13d(-0x22,-0x44,-_0xe2466b._0x15cf59,-_0xe2466b._0x566825)]}:{},..._0x4cbc5e?{'stream':!![]}:{}},..._0x385a2b['headers']?{'headers':_0x385a2b[_0xb6e4ee(0x2b,-0x81,_0xe2466b._0xdccad3,-0x67)]}:{},'path':_0x24e13d(-_0xe2466b._0x7e6546,-0xe5,-_0xe2466b._0x269dbd,-0x50)};}function parseAnthropicResponse(_0x258241,_0x1942ee){const _0x264b2d={_0x109755:0x61,_0x2200c8:0xd3,_0x410e66:0x1df,_0x282e6d:0x18a,_0x254031:0x18a,_0x406cad:0x1ff,_0x59818a:0x1b6,_0x4f7e8a:0x257,_0x2b69fb:0x254,_0x140f16:0x2bb,_0x2c70a0:0x104,_0x53ccaa:0x4b,_0x570cd1:0xe9,_0x5aaefe:0x153,_0x4240d6:0x63,_0x1eecf2:0x1cc,_0x124ad0:0x270,_0x47747f:0x263,_0x67b3d1:0xeb,_0x59dcde:0x14f,_0x17be6c:0x105,_0x3491f8:0x2a6,_0x2a8d71:0x1d0,_0x4eeee6:0xb0,_0x3a4c13:0x46,_0x41ee5f:0x50,_0x327e5d:0x27,_0x3bbf55:0x1ba,_0x3bf1d3:0x13e,_0x1709fa:0x14b,_0x188cfb:0x1a1,_0x43a343:0x1ae,_0x3e469b:0xf9,_0x44c13e:0x155,_0x461db5:0x10e,_0x233112:0x51,_0x4384a5:0x205,_0x28b22c:0x17f,_0x59a38e:0x23a,_0x339232:0x205,_0x1ece89:0x17d,_0xf58bad:0x2a5,_0x362227:0x194,_0x3bd9f1:0x1ad,_0x19f5a4:0x147,_0xc1fb94:0x9d},_0x56c2e5={_0x5cd1a9:0x15,_0x5e8921:0x90,_0x187e86:0x5b},_0x304878=[];function _0x3b15b8(_0xbabf0b,_0x40cc81,_0x105ee5,_0x1d8f4a){return _0x65d232(_0x105ee5-_0x56c2e5._0x5cd1a9,_0x40cc81,_0x105ee5-_0x56c2e5._0x5e8921,_0x1d8f4a-_0x56c2e5._0x187e86);}const _0xb2edc4=_0x258241[_0x3b15b8(_0x264b2d._0x109755,_0x264b2d._0x2200c8,0xd3,0xb7)]??[];let _0x2f4480=![];for(const _0x1590d0 of _0xb2edc4){if(_0x1590d0['type']===_0x591e5e(-_0x264b2d._0x410e66,-_0x264b2d._0x282e6d,-0x223,-_0x264b2d._0x254031)){_0x2f4480=!![];isUserVisibleThinking(_0x1942ee)&&_0x304878[_0x591e5e(-_0x264b2d._0x406cad,-0x1fa,-0x298,-_0x264b2d._0x59818a)]({'type':_0x591e5e(-_0x264b2d._0x4f7e8a,-_0x264b2d._0x2b69fb,-_0x264b2d._0x140f16,-0x267),'thinking':_0x1590d0[_0x3b15b8(_0x264b2d._0x2c70a0,_0x264b2d._0x53ccaa,_0x264b2d._0x570cd1,0xd1)],'signature':_0x1590d0[_0x591e5e(-0x25b,-0x295,-0x1ed,-0x23b)]});continue;}if(_0x1590d0[_0x3b15b8(0x9b,0x79,0xfc,_0x264b2d._0x5aaefe)]==='redacted_thinking'){_0x2f4480=!![];isUserVisibleThinking(_0x1942ee)&&_0x304878['push']({'type':_0x591e5e(-0x28b,-0x1d5,-0x2ad,-0x1f2),'data':_0x1590d0[_0x3b15b8(0x26,_0x264b2d._0x4240d6,0xe7,0xf2)]});continue;}if(_0x1590d0[_0x591e5e(-_0x264b2d._0x1eecf2,-0x252,-0x256,-_0x264b2d._0x124ad0)]===_0x591e5e(-0x1a5,-_0x264b2d._0x47747f,-0x18a,-_0x264b2d._0x67b3d1)){_0x1590d0['text'][_0x3b15b8(0xc1,_0x264b2d._0x59dcde,0xfa,_0x264b2d._0x17be6c)]>0x0&&_0x304878[_0x591e5e(-0x1ff,-0x144,-_0x264b2d._0x3491f8,-_0x264b2d._0x2a8d71)](structuredClone(_0x1590d0));continue;}_0x304878[_0x3b15b8(0xc,_0x264b2d._0x4eeee6,0xc9,0xf6)](structuredClone(_0x1590d0));}function _0x591e5e(_0xe952da,_0x1ad07c,_0x2b8d8b,_0x493ddf){return _0x65d232(_0xe952da- -0x2b3,_0x1ad07c,_0x2b8d8b-0x1e8,_0x493ddf-0xd0);}return{'id':_0x258241['id']??_0x3b15b8(_0x264b2d._0x2200c8,-0x7b,_0x264b2d._0x3a4c13,-_0x264b2d._0x41ee5f)+Date['now'](),'content':_0x304878,'stopReason':_0x304878[_0x3b15b8(0x2,0x4,_0x264b2d._0x327e5d,-0x2c)](_0x112d46=>_0x112d46[_0x3b15b8(0x60,0xf7,0xfc,0xcf)]===_0x3b15b8(0xe6,0xc2,0x10e,0xc6))?_0x591e5e(-_0x264b2d._0x3bbf55,-_0x264b2d._0x3bf1d3,-_0x264b2d._0x1709fa,-_0x264b2d._0x188cfb):_0x258241[_0x3b15b8(0x1a8,_0x264b2d._0x43a343,0xf3,_0x264b2d._0x3e469b)]===_0x3b15b8(0x1b5,0x133,0x10e,0x116)?_0x3b15b8(0xb2,_0x264b2d._0x44c13e,_0x264b2d._0x461db5,_0x264b2d._0x233112):'end_turn','usage':{'inputTokens':_0x258241[_0x591e5e(-_0x264b2d._0x4384a5,-_0x264b2d._0x28b22c,-0x22a,-_0x264b2d._0x59a38e)]?.['input_tokens']??0x0,'outputTokens':_0x258241[_0x591e5e(-_0x264b2d._0x339232,-_0x264b2d._0x1ece89,-0x25f,-_0x264b2d._0xf58bad)]?.[_0x3b15b8(_0x264b2d._0x362227,_0x264b2d._0x3bd9f1,_0x264b2d._0x19f5a4,_0x264b2d._0xc1fb94)]??0x0},..._0x2f4480?{'providerState':{'anthropicAssistantContent':structuredClone(_0xb2edc4)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x65d232(0x11b,0xae,0xa0,0x188)]=new Map();[_0x65d232(-0x1b,-0x50,0x2c,-0x4)]=0x0;['messageId']=_0x65d232(0x31,0x86,-0x35,0x37)+Date[_0x65d232(0x4e,0x71,-0x2e,-0x1f)]();['outputTokens']=0x0;[_0x65d232(-0x14,-0xae,-0x4a,0x32)];['stopReason']='end_turn';constructor(_0x3bfa7e){const _0x311d6e={_0x1e42b2:0x231,_0xbc280b:0x28c},_0x41bb23={_0x3d7955:0x5d,_0x116d9c:0x1d3};function _0x7f2b4c(_0x3fab74,_0x1019c5,_0x355fdf,_0x413fb1){return _0x3c7c8d(_0x1019c5-_0x41bb23._0x3d7955,_0x1019c5-_0x41bb23._0x116d9c,_0x355fdf-0x2a,_0x3fab74);}this[_0x7f2b4c(0x23c,0x2c1,_0x311d6e._0x1e42b2,_0x311d6e._0xbc280b)]=_0x3bfa7e;}[_0x3c7c8d(0x32b,0x33f,0x3e7,0x3cf)](_0x407c4d){const _0x3cd51c={_0x5203fa:0x3b6,_0x2fd5f4:0x448,_0x2ae07a:0x462,_0x55eabe:0x261,_0x555303:0x299,_0x23b18d:0x21f,_0x1d8016:0x2fa,_0x19ad2a:0x3da,_0x26ba41:0x30e,_0x1128fb:0x142,_0x43712f:0x4a9,_0x5683bb:0x251,_0x492183:0x300,_0x4b73ad:0x346,_0x365edb:0x1a4,_0x48b7d9:0x150,_0x10b357:0x3b2,_0x53d05c:0x394,_0x3e85c9:0x42b,_0x5528aa:0x3d2,_0x51b7e0:0x367,_0x311280:0x37d,_0x2b96d0:0x23b,_0x9b459a:0x1da,_0x217f8e:0x268,_0x3c5ce9:0x2b9,_0x45a1b1:0x183,_0x47a6d2:0x225,_0x4b23c6:0x377,_0x48d045:0x317,_0x57c4c4:0x286,_0x2a24dc:0x38c,_0x103fde:0x2f8,_0x178d3c:0x39c,_0x5007ad:0x2d6,_0x47af65:0x280,_0x388c37:0x333,_0x3d3d34:0x340,_0x353ff7:0x43,_0x2e9db0:0xa8,_0x5a560d:0x342,_0x751fb3:0x2be,_0x3edea4:0x2fb,_0x10463f:0x362,_0xb8681d:0x135,_0x5d7ad4:0x210,_0x4fc38b:0x54,_0x2ddd77:0x121,_0x39f5b4:0x113,_0x1736ae:0x155,_0x2458ad:0x191,_0x52c1dc:0x1e4,_0x4475f7:0x24f,_0x3578b4:0x1b7,_0x40c2d0:0x1c4,_0x454700:0xe2,_0x227348:0x209,_0x552ce2:0x162,_0x157467:0xb2,_0x12fff6:0x1a8,_0x46047b:0x12f,_0x43d7c4:0x271,_0x3ce54f:0x147,_0x4c8e6d:0x3e1,_0x45bbbb:0x469,_0x1e8e09:0x1d5,_0x5682fc:0x15a,_0x40897c:0x387,_0x347212:0x3fa,_0x1f99f8:0x345,_0x5af668:0x495,_0x370c87:0x424,_0x5d750a:0x354,_0x436a5d:0x388,_0x12f5cb:0x303,_0x2dca40:0x1fe,_0x256a64:0x3cf,_0x39745b:0x32d,_0x2e3b1d:0x36b,_0x172508:0x421,_0x5aa6aa:0x2cd,_0x3d039e:0x31c,_0x442613:0x199,_0x556dc6:0xba,_0x3bb585:0x19c,_0x3fd6ef:0x270,_0x241161:0x225,_0x5ee4a9:0x1e7,_0x33bf47:0x9a,_0x3f2ab:0x23d,_0x292bcf:0x3d5,_0x453e13:0x378,_0x53969d:0x3b0,_0x48c039:0x375,_0x2fe60d:0x1da,_0x5d239c:0x3b5,_0x5a4ca6:0x3e5,_0x586115:0x312,_0x2384e9:0x2a2,_0x4672c3:0x3c9,_0x19cc55:0x130,_0x59d89d:0x3eb,_0x25e429:0x371,_0x36c234:0xde,_0xad1656:0x120,_0xea8c89:0x1e9,_0x3c4928:0x246,_0x33ed2a:0x284,_0x5c4e0d:0x314,_0x16dde8:0x316,_0x4dc875:0x2ef,_0x101bde:0x1a5,_0xb6e622:0xcb,_0xda3785:0x19b,_0x28b806:0x124,_0x264695:0x420,_0x147af9:0x44e,_0x1a0e22:0xcc,_0x2f392a:0x106,_0x3720c4:0x45f,_0x28392c:0x458,_0x236a9e:0x3ed,_0x78996e:0x438,_0x3826da:0x35d,_0x4d1490:0x3c0,_0x2876da:0x288,_0x5cdaac:0x2e1,_0x1cd82e:0x371,_0x5a743d:0x40c,_0xedbbee:0x4a4,_0xe6ba9b:0x3c3,_0xc9e159:0x1db,_0x5f598f:0x2d1,_0x381302:0x2e0,_0x1c6d5b:0x161,_0x5c5922:0x42e,_0x3d73ac:0x2b0,_0x91b50c:0x26c,_0x590add:0x271,_0x4f7d47:0x3e0,_0x234419:0x3b7,_0x3b27bb:0x457,_0x192722:0xa3,_0x449f08:0x114,_0xeda11c:0x3b8,_0x204d84:0x287,_0x3eabbf:0x386,_0x430e9c:0x149,_0x148169:0x3b6,_0xaba65d:0x8d,_0x329fdb:0x147,_0xb35522:0x19f,_0x5c4c55:0x1ee,_0x4acc13:0x12b,_0x6cb2ee:0x169,_0x89730e:0x16a,_0x1372b4:0x225,_0x115a4b:0x1da,_0x53c90e:0x1d6,_0x9b03d3:0x366,_0x30288f:0x3e9,_0x243f74:0x343,_0x2dca66:0x2d0,_0x5a11ff:0x2b2,_0x1a3b4f:0x2c5,_0x47e60c:0xf8,_0x2cfd94:0x1e5,_0x338900:0x180,_0x56fff0:0x36a,_0x379ded:0x329,_0x223307:0x398,_0x111fae:0x445,_0xace202:0x505,_0x47838d:0x2dd,_0x2794b5:0x2a9,_0x2e3d10:0x18c,_0x520e43:0x1cd,_0x4466d7:0xe5,_0x54f5e1:0x462,_0x41b7c1:0x451,_0x5dc956:0x18a,_0x2fee6b:0x135,_0x5ecfa1:0x488,_0x42304b:0x395,_0x4b41a1:0x41a,_0x5e5a97:0x405,_0x1897d7:0x3ac,_0x11f750:0x25b},_0x4f1985={_0x58507b:0x4a6},_0x2fa245={_0xa06f39:0x3a},_0x1b41ee=_0x407c4d[_0x46b4ed(_0x3cd51c._0x5203fa,0x3b5,0x3ce,0x3b8)]('\x0a'),_0x9f2b5b=_0x1b41ee[_0x46b4ed(0x3b6,0x4c6,_0x3cd51c._0x2fd5f4,_0x3cd51c._0x2ae07a)](_0x34acc9=>_0x34acc9[_0x46b4ed(0x356,0x31a,0x32c,0x2ab)](_0x46b4ed(0x2bb,0x2b2,0x31d,0x2ac)))?.[_0x4196df(-0x22a,-0x1cd,-0x10a,-0x18d)](0x6)[_0x4196df(-0x1f5,-0x2bc,-0x249,-_0x3cd51c._0x55eabe)](),_0x4cdafd=_0x1b41ee[_0x4196df(-0x1d7,-_0x3cd51c._0x555303,-0x292,-_0x3cd51c._0x23b18d)](_0x22f443=>_0x22f443['startsWith'](_0x46b4ed(0x38d,0x313,0x387,0x3ec)))[_0x46b4ed(_0x3cd51c._0x1d8016,_0x3cd51c._0x19ad2a,0x38e,_0x3cd51c._0x26ba41)](_0x16b129=>_0x16b129[_0x46b4ed(0x467,0x320,0x3b4,0x362)](0x5)[_0x4196df(-0x1c5,-0x1da,-0x205,-0x26f)]())[_0x4196df(-0x1ba,-0x93,-0xc0,-_0x3cd51c._0x1128fb)]('\x0a')['trim']();if(_0x4cdafd[_0x46b4ed(0x346,0x408,0x3f8,_0x3cd51c._0x43712f)]===0x0||_0x4cdafd===_0x46b4ed(_0x3cd51c._0x5683bb,_0x3cd51c._0x492183,0x2d3,_0x3cd51c._0x4b73ad))return[];function _0x46b4ed(_0x14182f,_0x342201,_0x455cfa,_0x4e1d20){return _0x65d232(_0x455cfa-0x313,_0x342201,_0x455cfa-_0x2fa245._0xa06f39,_0x4e1d20-0x39);}function _0x4196df(_0x14b598,_0x211720,_0xac5b86,_0x354514){return _0x3c7c8d(_0x354514- -_0x4f1985._0x58507b,_0x211720-0xd7,_0xac5b86-0x39,_0x211720);}const _0x3bad6a=JSON[_0x4196df(-_0x3cd51c._0x365edb,-_0x3cd51c._0x48b7d9,-0x1fa,-0x1ce)](_0x4cdafd);switch(_0x9f2b5b){case _0x46b4ed(_0x3cd51c._0x10b357,0x2dd,0x33d,0x3b9):{const _0x42e443=_0x3bad6a[_0x46b4ed(0x3df,_0x3cd51c._0x53d05c,_0x3cd51c._0x3e85c9,0x381)];this[_0x46b4ed(0x30c,_0x3cd51c._0x5528aa,_0x3cd51c._0x51b7e0,_0x3cd51c._0x311280)]=_0x42e443?.['id']??this[_0x4196df(-_0x3cd51c._0x2b96d0,-0x21a,-0x1fc,-_0x3cd51c._0x9b459a)],this[_0x4196df(-_0x3cd51c._0x217f8e,-0x231,-_0x3cd51c._0x3c5ce9,-0x249)]=_0x42e443?.[_0x4196df(-_0x3cd51c._0x45a1b1,-0x239,-_0x3cd51c._0x47a6d2,-0x180)]?.[_0x46b4ed(_0x3cd51c._0x4b23c6,0x2e4,_0x3cd51c._0x48d045,_0x3cd51c._0x57c4c4)]??this[_0x46b4ed(0x390,_0x3cd51c._0x2a24dc,_0x3cd51c._0x103fde,0x3a5)];break;}case _0x46b4ed(_0x3cd51c._0x178d3c,_0x3cd51c._0x5007ad,0x38b,0x428):{const _0x44d6c5=typeof _0x3bad6a[_0x46b4ed(_0x3cd51c._0x47af65,_0x3cd51c._0x388c37,0x2fb,_0x3cd51c._0x3d3d34)]===_0x4196df(-_0x3cd51c._0x353ff7,-0x93,-_0x3cd51c._0x2e9db0,-0xf6)?_0x3bad6a[_0x46b4ed(_0x3cd51c._0x5a560d,_0x3cd51c._0x751fb3,_0x3cd51c._0x3edea4,_0x3cd51c._0x10463f)]:0x0,_0x563a54=_0x3bad6a['content_block'];if(_0x563a54?.['type']===_0x4196df(-0x108,-0x132,-0x7b,-_0x3cd51c._0xb8681d)&&_0x563a54['id']&&_0x563a54[_0x4196df(-0x23b,-_0x3cd51c._0x5d7ad4,-0x1af,-0x1ca)])return this[_0x4196df(-_0x3cd51c._0x4fc38b,-_0x3cd51c._0x2ddd77,-0x19b,-_0x3cd51c._0x39f5b4)][_0x4196df(-0x214,-0x113,-_0x3cd51c._0x1736ae,-_0x3cd51c._0x2458ad)](_0x44d6c5,{'id':_0x563a54['id'],'index':_0x44d6c5,'inputJson':JSON['stringify'](_0x563a54[_0x4196df(-_0x3cd51c._0x52c1dc,-_0x3cd51c._0x4475f7,-_0x3cd51c._0x3578b4,-0x268)]??{}),'kind':_0x4196df(-_0x3cd51c._0x40c2d0,-_0x3cd51c._0x454700,-0xb9,-0x135),'name':_0x563a54[_0x4196df(-0x19e,-_0x3cd51c._0x227348,-0x1d8,-0x1ca)]}),[{'type':_0x4196df(-_0x3cd51c._0x552ce2,-_0x3cd51c._0x157467,-_0x3cd51c._0x12fff6,-_0x3cd51c._0x46047b),'id':_0x563a54['id'],'index':_0x44d6c5,'name':_0x563a54[_0x4196df(-0x1e6,-_0x3cd51c._0x43d7c4,-_0x3cd51c._0x3ce54f,-0x1ca)]}];if(_0x563a54?.[_0x46b4ed(_0x3cd51c._0x4c8e6d,0x3e4,0x3fa,_0x3cd51c._0x45bbbb)]===_0x4196df(-_0x3cd51c._0x1e8e09,-0x15e,-0x1b4,-_0x3cd51c._0x5682fc)){this[_0x46b4ed(_0x3cd51c._0x40897c,0x488,0x42e,0x463)][_0x46b4ed(_0x3cd51c._0x347212,0x3b9,0x3b0,_0x3cd51c._0x1f99f8)](_0x44d6c5,{'index':_0x44d6c5,'kind':_0x46b4ed(_0x3cd51c._0x5af668,_0x3cd51c._0x370c87,0x3e7,_0x3cd51c._0x5d750a),'signature':typeof _0x563a54[_0x46b4ed(_0x3cd51c._0x436a5d,0x3e5,0x36b,_0x3cd51c._0x12f5cb)]===_0x4196df(-0x2a9,-0x192,-_0x3cd51c._0x2dca40,-_0x3cd51c._0x47a6d2)?_0x563a54[_0x46b4ed(_0x3cd51c._0x256a64,_0x3cd51c._0x39745b,_0x3cd51c._0x2e3b1d,0x362)]:'','thinking':typeof _0x563a54[_0x46b4ed(0x3e7,0x40b,_0x3cd51c._0x172508,0x3e6)]===_0x46b4ed(0x28d,_0x3cd51c._0x5aa6aa,_0x3cd51c._0x3d039e,_0x3cd51c._0x5a560d)?_0x563a54[_0x4196df(-_0x3cd51c._0x442613,-_0x3cd51c._0x556dc6,-0x75,-0x120)]:typeof _0x563a54['thinking']===_0x4196df(-_0x3cd51c._0x3bb585,-0x22a,-_0x3cd51c._0x3fd6ef,-_0x3cd51c._0x241161)?String(_0x563a54[_0x4196df(-0x1be,-0xe7,-_0x3cd51c._0x5ee4a9,-_0x3cd51c._0x5682fc)]):''});break;}if(_0x563a54?.[_0x4196df(-_0x3cd51c._0x33bf47,-0x18a,-0xd4,-_0x3cd51c._0x3ce54f)]===_0x4196df(-0x280,-0x261,-0x209,-_0x3cd51c._0x3f2ab)){this['blocks'][_0x46b4ed(_0x3cd51c._0x292bcf,_0x3cd51c._0x453e13,_0x3cd51c._0x53969d,_0x3cd51c._0x48c039)](_0x44d6c5,{'index':_0x44d6c5,'kind':_0x4196df(-_0x3cd51c._0x2fe60d,-_0x3cd51c._0x43d7c4,-0x1d0,-0x23d),'data':typeof _0x563a54[_0x46b4ed(0x33b,_0x3cd51c._0x5d239c,_0x3cd51c._0x5a4ca6,0x41e)]===_0x46b4ed(_0x3cd51c._0x586115,_0x3cd51c._0x2384e9,0x31c,_0x3cd51c._0x4672c3)?String(_0x563a54['data']):''});break;}this[_0x4196df(-0xc5,-0x113,-0x18e,-0x113)][_0x4196df(-_0x3cd51c._0x19cc55,-0x207,-0x120,-0x191)](_0x44d6c5,{'index':_0x44d6c5,'kind':_0x46b4ed(_0x3cd51c._0x59d89d,_0x3cd51c._0x25e429,0x421,0x3dc),'text':_0x563a54?.[_0x4196df(-0x104,-_0x3cd51c._0x36c234,-0x19f,-_0x3cd51c._0xad1656)]??''});break;}case _0x4196df(-0x155,-0x1b5,-0x16c,-0x185):{const _0x5013c5=typeof _0x3bad6a[_0x4196df(-0x22d,-_0x3cd51c._0xea8c89,-0x29c,-_0x3cd51c._0x3c4928)]==='number'?_0x3bad6a[_0x46b4ed(_0x3cd51c._0x33ed2a,0x374,_0x3cd51c._0x3edea4,_0x3cd51c._0x5c4e0d)]:0x0,_0x3e6204=this['blocks'][_0x46b4ed(0x2c5,0x383,0x305,0x2dc)](_0x5013c5),_0x3f434e=_0x3bad6a[_0x46b4ed(_0x3cd51c._0x16dde8,0x33a,_0x3cd51c._0x4dc875,0x299)];if(!_0x3e6204||!_0x3f434e?.[_0x4196df(-_0x3cd51c._0x101bde,-_0x3cd51c._0xb6e622,-_0x3cd51c._0xda3785,-0x147)])break;if(_0x3f434e[_0x4196df(-0x1a3,-_0x3cd51c._0x28b806,-0x16a,-0x147)]===_0x46b4ed(_0x3cd51c._0x4b23c6,_0x3cd51c._0x264695,0x3cc,_0x3cd51c._0x147af9)&&_0x3e6204['kind']===_0x4196df(-_0x3cd51c._0x3ce54f,-_0x3cd51c._0x1a0e22,-_0x3cd51c._0x2f392a,-_0x3cd51c._0xad1656)&&typeof _0x3f434e[_0x46b4ed(_0x3cd51c._0x3720c4,_0x3cd51c._0x28392c,0x421,0x3c6)]==='string')return _0x3e6204['text']+=_0x3f434e[_0x46b4ed(0x41e,_0x3cd51c._0x236a9e,0x421,_0x3cd51c._0x78996e)],[{'type':_0x46b4ed(0x324,_0x3cd51c._0x292bcf,_0x3cd51c._0x3826da,_0x3cd51c._0x4d1490),'index':_0x5013c5,'text':_0x3f434e[_0x4196df(-0xf5,-0x1c3,-0xce,-_0x3cd51c._0xad1656)]}];if(_0x3f434e['type']==='input_json_delta'&&_0x3e6204[_0x4196df(-_0x3cd51c._0x2876da,-_0x3cd51c._0x5cdaac,-0x24f,-_0x3cd51c._0x43d7c4)]===_0x46b4ed(_0x3cd51c._0x1cd82e,0x42b,_0x3cd51c._0x5a743d,_0x3cd51c._0xedbbee)&&typeof _0x3f434e[_0x46b4ed(0x3dc,_0x3cd51c._0xe6ba9b,0x3e0,0x3fa)]===_0x4196df(-_0x3cd51c._0x5cdaac,-0x2d3,-_0x3cd51c._0xc9e159,-0x225))return _0x3e6204['inputJson']==='{}'&&(_0x3e6204['inputJson']=''),_0x3e6204[_0x4196df(-_0x3cd51c._0x3c5ce9,-_0x3cd51c._0x5f598f,-_0x3cd51c._0x381302,-0x244)]+=_0x3f434e[_0x4196df(-0x214,-0x1b6,-0x152,-_0x3cd51c._0x1c6d5b)],[{'type':'tool_use_delta','id':_0x3e6204['id'],'index':_0x5013c5,'inputDelta':_0x3f434e[_0x46b4ed(0x3ec,_0x3cd51c._0x5c5922,0x3e0,0x463)]}];if(_0x3f434e['type']==='thinking_delta'&&_0x3e6204[_0x4196df(-_0x3cd51c._0x3d73ac,-0x1d8,-_0x3cd51c._0x91b50c,-_0x3cd51c._0x590add)]===_0x46b4ed(_0x3cd51c._0x4f7d47,_0x3cd51c._0x234419,0x3e7,_0x3cd51c._0x3b27bb)){const _0x254b22=typeof _0x3f434e[_0x4196df(-_0x3cd51c._0x192722,-_0x3cd51c._0x9b459a,-_0x3cd51c._0x449f08,-0x15a)]===_0x46b4ed(_0x3cd51c._0xeda11c,_0x3cd51c._0x204d84,0x31c,_0x3cd51c._0x3eabbf)?String(_0x3f434e[_0x46b4ed(0x397,0x340,0x3e7,0x454)]):'';if(_0x254b22[_0x4196df(-0xf9,-0x200,-0x1b6,-_0x3cd51c._0x430e9c)]>0x0){_0x3e6204['thinking']+=_0x254b22;if(isUserVisibleThinking(this['request']))return[{'type':_0x46b4ed(0x41d,_0x3cd51c._0x5528aa,_0x3cd51c._0x5203fa,_0x3cd51c._0x148169),'index':_0x5013c5,'thinking':_0x254b22}];}}if(_0x3f434e[_0x4196df(-_0x3cd51c._0xaba65d,-0x19d,-0x17e,-_0x3cd51c._0x329fdb)]===_0x4196df(-0xa5,-_0x3cd51c._0xb35522,-0x164,-0x126)&&_0x3e6204['kind']===_0x4196df(-0x194,-_0x3cd51c._0x5c4c55,-0x1a2,-0x15a)){const _0x375a26=typeof _0x3f434e[_0x4196df(-0x234,-_0x3cd51c._0x4acc13,-_0x3cd51c._0x6cb2ee,-0x1d6)]===_0x4196df(-0x29d,-_0x3cd51c._0x5683bb,-_0x3cd51c._0x89730e,-_0x3cd51c._0x1372b4)?String(_0x3f434e[_0x4196df(-_0x3cd51c._0x115a4b,-0x253,-0x1e7,-_0x3cd51c._0x53c90e)]):'';if(_0x375a26[_0x46b4ed(0x399,_0x3cd51c._0x9b03d3,0x3f8,0x35a)]>0x0){_0x3e6204['signature']=_0x375a26;if(isUserVisibleThinking(this['request']))return[{'type':_0x46b4ed(_0x3cd51c._0x30288f,0x323,_0x3cd51c._0x243f74,_0x3cd51c._0x5f598f),'index':_0x5013c5,'signature':_0x375a26}];}}break;}case'message_delta':{const _0x5c4141=_0x3bad6a[_0x46b4ed(_0x3cd51c._0x2dca66,_0x3cd51c._0x5a11ff,0x2ef,_0x3cd51c._0x1a3b4f)],_0x5986eb=_0x3bad6a[_0x4196df(-0xca,-_0x3cd51c._0x47e60c,-_0x3cd51c._0x2cfd94,-_0x3cd51c._0x338900)];this[_0x46b4ed(_0x3cd51c._0x56fff0,0x328,_0x3cd51c._0x379ded,0x271)]=_0x5986eb?.[_0x46b4ed(_0x3cd51c._0x223307,0x491,_0x3cd51c._0x111fae,_0x3cd51c._0xace202)]??this[_0x46b4ed(_0x3cd51c._0x47838d,0x3b2,0x329,_0x3cd51c._0x2794b5)],this[_0x4196df(-_0x3cd51c._0x2e3d10,-0x196,-0x1b9,-_0x3cd51c._0x520e43)]=_0x5c4141?.[_0x4196df(-_0x3cd51c._0x4466d7,-0x10d,-0xd9,-0x150)]===_0x46b4ed(0x39c,_0x3cd51c._0x54f5e1,0x40c,_0x3cd51c._0x41b7c1)?_0x4196df(-0x92,-0xaa,-_0x3cd51c._0x5dc956,-_0x3cd51c._0x2fee6b):'end_turn';break;}case _0x46b4ed(_0x3cd51c._0x5ecfa1,_0x3cd51c._0x42304b,0x420,_0x3cd51c._0x4b41a1):{const _0x3f742f=_0x3bad6a[_0x46b4ed(_0x3cd51c._0x5e5a97,_0x3cd51c._0x1897d7,_0x3cd51c._0x264695,0x3fd)];throw new Error(_0x3f742f?.[_0x4196df(-0x7f,-0x126,-0xdf,-0x116)]??_0x4196df(-0x104,-_0x3cd51c._0x5682fc,-_0x3cd51c._0x11f750,-0x1aa));}}return[];}[_0x65d232(0x10b,0x179,0x1aa,0x1c5)](){const _0x39238d={_0x398d67:0x501,_0x11b127:0x482,_0x21540c:0x64c,_0x1b657c:0x4ee,_0x41d8f9:0x506,_0x1306d1:0x402,_0x39e9e3:0x41a,_0x1d0772:0x410,_0x2559c9:0x442,_0x73218:0x3e7,_0x3730f4:0x3b6,_0x2aaa89:0x438,_0x4ce351:0x32b,_0x46e416:0x662,_0x29d1bc:0x5bf,_0x280885:0x630,_0x4b6e9b:0x3a9,_0x22ed20:0x34f,_0xa41395:0x251,_0x218722:0x38d,_0x24e1d6:0x42e,_0xd05b2c:0x43f,_0x41b628:0x433,_0x2080c4:0x3a6,_0x2777a8:0x3d6,_0x3597c7:0x497,_0x2898ba:0x35a,_0x4645bf:0x3d2,_0x174aeb:0x495,_0x1978cf:0x50e,_0x1630b3:0x532,_0x34b89d:0x282,_0x406faa:0x583,_0x15c190:0x5d6,_0x25522b:0x665,_0x1dd1a2:0x5aa,_0x31d8a0:0x49b,_0x2d9627:0x3e7,_0x7ed332:0x337,_0x240c3e:0x480,_0x4542d9:0x4a4,_0x129a74:0x505,_0x2d7087:0x32e,_0x3964bf:0x36f,_0x887c97:0x3e3,_0x19926a:0x512,_0x818c15:0x584,_0xf5b9ef:0x229,_0x2ca7d6:0x2e7,_0x3ccc82:0x2ee,_0xe3a384:0x3a9},_0x40ada0={_0x28c709:0x239,_0xef67f5:0x66,_0x416e98:0x110},_0x5bf140={_0x1fb81d:0x8a,_0x1b6d72:0x1c3,_0x1e42c3:0x44};function _0x2e7476(_0x56afe6,_0x1f0f8b,_0x4357aa,_0x52d95d){return _0x3c7c8d(_0x1f0f8b-_0x5bf140._0x1fb81d,_0x1f0f8b-_0x5bf140._0x1b6d72,_0x4357aa-_0x5bf140._0x1e42c3,_0x4357aa);}const _0x13f0d6=Array[_0x19a437(0x466,0x559,_0x39238d._0x398d67,_0x39238d._0x11b127)](this[_0x19a437(_0x39238d._0x21540c,0x609,0x5cc,0x596)][_0x19a437(_0x39238d._0x1b657c,0x5d2,0x567,_0x39238d._0x41d8f9)]())[_0x2e7476(0x485,_0x39238d._0x1306d1,_0x39238d._0x39e9e3,0x479)]((_0xeaf212,_0x5985a2)=>_0xeaf212[_0x19a437(0x444,0x4c4,0x499,0x47f)]-_0x5985a2['index']),_0x50057f=[];function _0x19a437(_0x5df83c,_0x56244b,_0xeb6cb,_0xd04193){return _0x3c7c8d(_0xeb6cb-_0x40ada0._0x28c709,_0x56244b-_0x40ada0._0xef67f5,_0xeb6cb-_0x40ada0._0x416e98,_0x5df83c);}for(const _0x1d0ffb of _0x13f0d6){if(_0x1d0ffb['kind']==='text'){_0x1d0ffb[_0x2e7476(0x3f0,_0x39238d._0x1d0772,0x489,_0x39238d._0x2559c9)][_0x2e7476(0x3a2,_0x39238d._0x73218,0x3ec,0x3ec)]>0x0&&_0x50057f[_0x2e7476(0x346,_0x39238d._0x3730f4,_0x39238d._0x2aaa89,_0x39238d._0x4ce351)]({'type':_0x19a437(0x565,_0x39238d._0x46e416,_0x39238d._0x29d1bc,_0x39238d._0x280885),'text':_0x1d0ffb[_0x2e7476(0x390,0x410,_0x39238d._0x4b6e9b,0x3c6)]});continue;}if(_0x1d0ffb[_0x2e7476(_0x39238d._0x22ed20,0x2bf,0x248,_0x39238d._0xa41395)]===_0x2e7476(0x48f,0x3d6,_0x39238d._0x218722,_0x39238d._0x24e1d6)){_0x50057f[_0x2e7476(_0x39238d._0xd05b2c,_0x39238d._0x3730f4,0x30d,_0x39238d._0x41b628)]({'type':_0x2e7476(_0x39238d._0x2080c4,_0x39238d._0x2777a8,0x3eb,_0x39238d._0x3597c7),'thinking':_0x1d0ffb['thinking'],'signature':_0x1d0ffb[_0x2e7476(0x2a1,_0x39238d._0x2898ba,0x2d5,0x345)]});continue;}if(_0x1d0ffb[_0x19a437(0x4f4,0x4fb,0x46e,_0x39238d._0x4645bf)]===_0x19a437(_0x39238d._0x174aeb,_0x39238d._0x1978cf,0x4a2,_0x39238d._0x1630b3)){_0x50057f[_0x2e7476(0x372,0x3b6,0x446,0x33c)]({'type':_0x2e7476(0x324,0x2f3,0x347,_0x39238d._0x34b89d),'data':_0x1d0ffb[_0x19a437(0x5bf,0x50f,_0x39238d._0x406faa,_0x39238d._0x15c190)]});continue;}_0x50057f['push']({'type':_0x19a437(0x5d8,_0x39238d._0x25522b,_0x39238d._0x1dd1a2,0x54e),'id':_0x1d0ffb['id'],'name':_0x1d0ffb['name'],'input':parseToolInput(_0x1d0ffb[_0x19a437(0x425,0x472,_0x39238d._0x31d8a0,0x466)][_0x2e7476(0x3fd,_0x39238d._0x2d9627,_0x39238d._0x7ed332,0x417)]>0x0?_0x1d0ffb['inputJson']:'{}')});}return parseAnthropicResponse({'id':this[_0x19a437(_0x39238d._0x240c3e,_0x39238d._0x4542d9,_0x39238d._0x129a74,0x4a3)],'type':'message','role':_0x2e7476(_0x39238d._0x2d7087,_0x39238d._0x3964bf,_0x39238d._0x887c97,0x3ee),'content':_0x50057f,'stop_reason':this[_0x19a437(0x50b,0x472,_0x39238d._0x19926a,_0x39238d._0x818c15)],'stop_sequence':null,'usage':{'input_tokens':this[_0x2e7476(_0x39238d._0xf5b9ef,_0x39238d._0x2ca7d6,0x22f,0x228)],'output_tokens':this['outputTokens']}},this[_0x2e7476(0x343,_0x39238d._0x3ccc82,_0x39238d._0xe3a384,0x22d)]);}};function createAnthropicSurfaces(){const _0x463b6a={_0xd6dc6:0x4df,_0x35724b:0x4fe,_0x5f38e2:0x46c},_0xc19999={_0x2c86c6:0x43f,_0x3c2297:0x1e3};function _0x3390d2(_0xc01733,_0x4ab471,_0x5084ce,_0x59e2ed){return _0x65d232(_0x5084ce-_0xc19999._0x2c86c6,_0x59e2ed,_0x5084ce-_0xc19999._0x3c2297,_0x59e2ed-0x100);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3390d2(_0x463b6a._0xd6dc6,_0x463b6a._0x35724b,_0x463b6a._0x5f38e2,0x467),'createRequest'(_0x3ce19c){return createAnthropicRequest(_0x3ce19c,![]);},'parseResponse'(_0x3a70ea,_0x508b2e){return parseAnthropicResponse(_0x3a70ea,_0x508b2e);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x393b94){return createAnthropicRequest(_0x393b94,!![]);},'createStreamParser'(_0x3ce147){return new AnthropicMessagesStreamParser(_0x3ce147);}}];}var StaticModelSurfaceRouter=class{[_0x3c7c8d(0x337,0x3f4,0x322,0x2cb)];[_0x3c7c8d(0x2b5,0x237,0x240,0x248)];constructor(_0x1bb17c){const _0x6fa386={_0x55d543:0xe4,_0x4d05b5:0x251,_0x402ea0:0x341,_0x3a8597:0x26d,_0x46671b:0x13b,_0x4c919a:0x1cd},_0x111119={_0x56a88f:0x55,_0x1992cf:0x8c},_0x23f72e={_0x572ae1:0x207,_0x4e2d2d:0x35};function _0x152989(_0x407e37,_0x3012ba,_0x2a2c6e,_0x5aedac){return _0x65d232(_0x5aedac- -_0x23f72e._0x572ae1,_0x407e37,_0x2a2c6e-0xd3,_0x5aedac-_0x23f72e._0x4e2d2d);}this[_0x152989(-_0x6fa386._0x55d543,-0x125,-0x102,-0x148)]=_0x1bb17c[_0x152989(-_0x6fa386._0x4d05b5,-0x17e,-0x1df,-0x208)];function _0x5c6bfe(_0x502787,_0x55be1c,_0x5e69fd,_0x2c1a7c){return _0x65d232(_0x502787-0x255,_0x2c1a7c,_0x5e69fd-_0x111119._0x56a88f,_0x2c1a7c-_0x111119._0x1992cf);}this[_0x5c6bfe(0x292,0x307,0x316,_0x6fa386._0x402ea0)]=_0x1bb17c[_0x152989(-_0x6fa386._0x3a8597,-_0x6fa386._0x46671b,-0x226,-_0x6fa386._0x4c919a)];}[_0x3c7c8d(0x37d,0x416,0x427,0x2ff)](_0x123599,_0x5bb65b){const _0x2c5a6c={_0x31d09a:0x27c,_0x5e75d1:0x31d,_0x5907d8:0x2ba,_0x4d2257:0x250,_0x2c061c:0x27f,_0x3e2669:0xa4,_0x5a58e0:0x1,_0x4567fc:0x97,_0x35a9ad:0x81,_0x596f4a:0x77},_0x1fd80f={_0x3541cb:0xe1,_0x3a53c9:0xf4},_0x172efe={_0xfeda3d:0x88,_0x49631d:0x137};function _0x3470c0(_0x3a5631,_0x11aadf,_0x5ec0be,_0x4e84de){return _0x65d232(_0x3a5631- -0x2a3,_0x5ec0be,_0x5ec0be-_0x172efe._0xfeda3d,_0x4e84de-_0x172efe._0x49631d);}function _0x305cab(_0x3d20e2,_0x5cd5cc,_0x3a039e,_0xa553b4){return _0x65d232(_0x5cd5cc- -_0x1fd80f._0x3541cb,_0x3a039e,_0x3a039e-_0x1fd80f._0x3a53c9,_0xa553b4-0xcd);}return _0x5bb65b[_0x3470c0(-_0x2c5a6c._0x31d09a,-_0x2c5a6c._0x5e75d1,-_0x2c5a6c._0x5907d8,-0x32e)]===_0x3470c0(-0x269,-_0x2c5a6c._0x4d2257,-_0x2c5a6c._0x2c061c,-0x1ee)?this[_0x305cab(-0x162,-_0x2c5a6c._0x3e2669,-_0x2c5a6c._0x5a58e0,-_0x2c5a6c._0x4567fc)]:this[_0x305cab(-0x5b,-0x22,_0x2c5a6c._0x35a9ad,_0x2c5a6c._0x596f4a)];}};function trimTrailingSlashes(_0x79a0a2){const _0xa39030={_0x4aeadd:0xf9,_0x1855e4:0x47},_0x2a7cc3={_0x587bb8:0x11,_0x600358:0x1bf};function _0x31cab4(_0x22d894,_0x541997,_0xba5e25,_0x2bf365){return _0x3c7c8d(_0x2bf365- -0x345,_0x541997-_0x2a7cc3._0x587bb8,_0xba5e25-_0x2a7cc3._0x600358,_0x541997);}return _0x79a0a2[_0x31cab4(-_0xa39030._0x4aeadd,-0xb4,0x4d,-_0xa39030._0x1855e4)](/\/+$/,'');}function resolveApiCredential(_0x7a8ed4,_0x5304d6){const _0x1a92d8={_0x2b8b4d:0x162,_0x5a8496:0x1d9,_0x4caec7:0x141,_0x2ef3d8:0xe0},_0x5ac44a={_0x4d8e35:0x3cf,_0x4581dd:0x1aa},_0x38d400={_0x922b58:0xf3,_0x4a2481:0xaf};if(_0x5304d6?.[_0x2dcc17(-0xd5,-_0x1a92d8._0x2b8b4d,-0xa9,-0x172)])return _0x5304d6[_0x2dcc17(-_0x1a92d8._0x5a8496,-_0x1a92d8._0x2b8b4d,-_0x1a92d8._0x4caec7,-_0x1a92d8._0x2ef3d8)];function _0x351377(_0x1e9cd3,_0x495cd4,_0xf54824,_0xed7764){return _0x65d232(_0x1e9cd3- -_0x38d400._0x922b58,_0xf54824,_0xf54824-0x1cf,_0xed7764-_0x38d400._0x4a2481);}function _0x2dcc17(_0x553ad9,_0x516517,_0x2dab14,_0x167134){return _0x3c7c8d(_0x516517- -_0x5ac44a._0x4d8e35,_0x516517-_0x5ac44a._0x4581dd,_0x2dab14-0xe3,_0x553ad9);}if(!_0x7a8ed4)return void 0x0;return{'kind':'api-key','value':_0x7a8ed4};}function resolveSessionBaseUrl(_0x419341,_0x545cf7){const _0x30b218={_0x14d0de:0x28f,_0x592a36:0x2a8,_0x400c6c:0x2b3},_0x388143={_0x51a7ec:0x1d7},_0x573c29={_0x401b6f:0x51,_0x87646e:0x17d};function _0x5db376(_0x1a14a1,_0xc53d65,_0x24bb6f,_0x4a683f){return _0x3c7c8d(_0xc53d65- -_0x573c29._0x401b6f,_0xc53d65-0xd9,_0x24bb6f-_0x573c29._0x87646e,_0x24bb6f);}function _0x5433f9(_0x499ccd,_0x45e5c2,_0x21d164,_0xd249b3){return _0x3c7c8d(_0x21d164- -0x4e5,_0x45e5c2-_0x388143._0x51a7ec,_0x21d164-0x1ee,_0xd249b3);}return trimTrailingSlashes(_0x545cf7?.[_0x5433f9(-0x343,-_0x30b218._0x14d0de,-_0x30b218._0x592a36,-0x23e)]?.[_0x5db376(0x2dd,0x285,_0x30b218._0x400c6c,0x1d6)]??_0x419341);}function toErrorMessage(_0x59216a){const _0x541022={_0x1840f0:0x184,_0x387a52:0x266,_0x53a932:0x2b5,_0x26f04d:0x12d,_0xa96404:0x9e,_0xd5a4fb:0x1e3},_0x1871f3={_0x3fa08e:0x245,_0x164806:0x35};if(_0x59216a instanceof Error&&_0x59216a['message'][_0x1274bf(-_0x541022._0x1840f0,-_0x541022._0x387a52,-0x207,-_0x541022._0x53a932)]>0x0)return _0x59216a[_0x51eec4(-0xe1,-0x14b,-_0x541022._0x26f04d,-_0x541022._0xa96404)];function _0x51eec4(_0x36a04b,_0xa87f16,_0x1244bd,_0x4f163b){return _0x65d232(_0x1244bd- -_0x1871f3._0x3fa08e,_0x36a04b,_0x1244bd-0x184,_0x4f163b-_0x1871f3._0x164806);}function _0x1274bf(_0x3a8698,_0x199222,_0x392b5d,_0x371bb3){return _0x3c7c8d(_0x392b5d- -0x564,_0x199222-0x1f0,_0x392b5d-0xe0,_0x3a8698);}return _0x51eec4(-0x12e,-0x1e5,-_0x541022._0xd5a4fb,-0x1dd);}function createDefaultWebSocketFactory(){const _0x1ad336={_0x2830d1:0x3af};return({headers:_0x17ad07,url:_0x2735c1})=>{const _0x4d46de={_0x4ca981:0x232};function _0x207317(_0x51a550,_0x5be0b9,_0x1052e5,_0x186c85){return _0x501c(_0x1052e5-_0x4d46de._0x4ca981,_0x5be0b9);}const _0x4d77b6=globalThis[_0x207317(0x430,0x310,0x37a,_0x1ad336._0x2830d1)];return new _0x4d77b6(_0x2735c1,{'headers':_0x17ad07,'protocols':[]});};}async function*iterateSseEvents(_0x69bc8e,_0x3bf236){const _0x2c1f8c={_0x2477c1:0x47a,_0x4ec687:0x89,_0x5e6866:0x3ce,_0xf7bdcc:0x429,_0x3fedbe:0x397,_0x5fece5:0x55,_0x5f1661:0x66,_0x4b53fa:0x378,_0x41ec70:0x59,_0x1d3b85:0xf,_0x5752b3:0x10,_0x19d6dc:0x55,_0x5b73a7:0x36e,_0x6569e:0x3a0},_0x1e4a3a={_0x3466fa:0x139},_0x1f98dc={_0x407314:0x15b,_0x29ab16:0x196,_0x3b2d7b:0x1db},_0x4a9fa1={_0xbe1494:0x25};function _0x34b82a(_0x404a42,_0x18a147,_0x4554bb,_0x29fd61){return _0x65d232(_0x4554bb- -0x8c,_0x29fd61,_0x4554bb-0xd0,_0x29fd61-_0x4a9fa1._0xbe1494);}function _0xdbf4f9(_0x5c1502,_0x13dfb9,_0x2d8472,_0x189ff4){return _0x3c7c8d(_0x189ff4-_0x1f98dc._0x407314,_0x13dfb9-_0x1f98dc._0x29ab16,_0x2d8472-_0x1f98dc._0x3b2d7b,_0x2d8472);}const _0x1ca0de=_0x69bc8e[_0xdbf4f9(0x48c,_0x2c1f8c._0x2477c1,0x3b5,0x46e)]?.['getReader']();if(!_0x1ca0de)return;const _0x434e2f=new TextDecoder('utf-8');let _0x142889='';const _0x36bf27=addAbortListener(_0x3bf236,()=>{const _0x472102={_0x2e42c7:0x562};function _0x54c6b0(_0x5911cf,_0xc5b2d6,_0x398a7b,_0x183c3b){return _0xdbf4f9(_0x5911cf-0x6c,_0xc5b2d6-0x6f,_0x183c3b,_0x398a7b- -_0x472102._0x2e42c7);}void _0x1ca0de['cancel'](toAbortError(_0x3bf236?.['reason']))[_0x54c6b0(-0x180,-0x26a,-0x1d3,-_0x1e4a3a._0x3466fa)](()=>{});});try{while(!![]){throwIfAborted(_0x3bf236);const {value:_0x33accb,done:_0x2b17fc}=await _0x1ca0de[_0x34b82a(0x6,0x1f,_0x2c1f8c._0x4ec687,-0x20)]();throwIfAborted(_0x3bf236);if(_0x2b17fc)break;_0x142889+=_0x434e2f['decode'](_0x33accb,{'stream':!![]});while(!![]){const _0x4474cf=_0x142889[_0xdbf4f9(_0x2c1f8c._0x5e6866,_0x2c1f8c._0xf7bdcc,0x2e6,_0x2c1f8c._0x3fedbe)]('\x0a\x0a');if(_0x4474cf===-0x1)break;const _0x5b06b2=_0x142889[_0x34b82a(-0x2b,_0x2c1f8c._0x5fece5,0x15,_0x2c1f8c._0x5f1661)](0x0,_0x4474cf);_0x142889=_0x142889['slice'](_0x4474cf+0x2),_0x5b06b2[_0xdbf4f9(0x3b8,0x32c,_0x2c1f8c._0x4b53fa,0x3a0)]()[_0x34b82a(-0x40,0x103,_0x2c1f8c._0x41ec70,_0x2c1f8c._0x1d3b85)]>0x0&&(yield _0x5b06b2);}}_0x142889+=_0x434e2f[_0x34b82a(-0xb,_0x2c1f8c._0x5752b3,-0x51,-_0x2c1f8c._0x19d6dc)](),throwIfAborted(_0x3bf236),_0x142889[_0xdbf4f9(0x2fd,_0x2c1f8c._0x5b73a7,0x412,_0x2c1f8c._0x6569e)]()[_0x34b82a(-0xf,0x2c,0x59,0xb9)]>0x0&&(yield _0x142889);}finally{_0x36bf27();}}async function waitForWebSocketOpen(_0x2242fb,_0x1d37a2){const _0x1c241c={_0x2924e0:0x3dd,_0x96ea57:0x46d,_0x26a6a6:0x438,_0x444d9b:0x35d},_0x5d3913={_0x4c97b2:0x26e,_0x16acfc:0x30b,_0x58fde0:0x263,_0x4bd020:0x37d,_0x5344b1:0x30a,_0xa61ef5:0x3aa,_0x1daf94:0x1a3,_0x14cad7:0x151,_0x53a13e:0x34c,_0x40874f:0x3cf,_0x4f9b6c:0x2eb,_0x464772:0x2cc,_0x1e8d29:0x300,_0x1d665b:0x237},_0x382451={_0x7422f4:0x53b,_0x299fe9:0xa1},_0x4be06c={_0x5226a8:0x2df,_0x33eabb:0x26e,_0xa095fa:0x493,_0x55af3f:0x4a2,_0xab5163:0x434,_0x269317:0x3b6,_0x2eb7ee:0x341},_0x2fbe8f={_0x31cd4f:0x1f5,_0x446a14:0x228,_0x4d7eaa:0x124,_0x31325d:0x17f,_0x47d29c:0x8d,_0x585365:0x197,_0x5f04b1:0x1fc,_0x5339df:0x1d7,_0xb3c2ea:0x165,_0x508f1e:0x1e2,_0x5b9e47:0x14c,_0x10d739:0x174},_0x37633e={_0xaea5da:0x8,_0x99deb2:0x96,_0x17b0ba:0x19e,_0x4c1192:0x14d,_0x508f9d:0x1c5,_0x41f0a2:0x16f},_0x1243db={_0x17b2d4:0x176},_0x35dbcf={_0x16c9ae:0x2b};if(_0x2242fb[_0x2ef8ca(_0x1c241c._0x2924e0,_0x1c241c._0x96ea57,0x3f7,_0x1c241c._0x26a6a6)]===WebSocket[_0x5efab5(0x30d,_0x1c241c._0x444d9b,0x2fc,0x328)]){throwIfAborted(_0x1d37a2);return;}function _0x5efab5(_0x48ad17,_0x206329,_0x5c5575,_0x2b87cf){return _0x3c7c8d(_0x48ad17- -_0x35dbcf._0x16c9ae,_0x206329-0xa,_0x5c5575-0xea,_0x5c5575);}function _0x2ef8ca(_0x1c101c,_0x5e9782,_0x51ae70,_0x297207){return _0x3c7c8d(_0x1c101c-_0x1243db._0x17b2d4,_0x5e9782-0x192,_0x51ae70-0x5d,_0x51ae70);}throwIfAborted(_0x1d37a2),await new Promise((_0x442042,_0x4b9e7c)=>{const _0x507e37={_0x4f41d7:0x2a2},_0x56bdd7={_0x13f322:0x1c5,_0x5dab90:0x1dd,_0x419784:0x184,_0xb4858:0x4d8,_0x32e019:0x44b},_0x3d9801={_0x59aee9:0x3cb},_0x2a0efa={_0x1d8bbe:0x383},_0x28407c={_0x2428da:0xe9,_0x2e5377:0x143,_0x1cc093:0x16};function _0x201d8d(_0x27bd58,_0x4a45f0,_0x49ad5f,_0x2f23f2){return _0x5efab5(_0x4a45f0-_0x28407c._0x2428da,_0x4a45f0-_0x28407c._0x2e5377,_0x49ad5f,_0x2f23f2-_0x28407c._0x1cc093);}const _0x4313d2=()=>{_0x251b64(),_0x442042();},_0x4b3c95=_0x419cdd=>{function _0x55f5ca(_0x78069c,_0x489d8a,_0x2983ed,_0x44f41a){return _0x501c(_0x489d8a-_0x2a0efa._0x1d8bbe,_0x44f41a);}_0x251b64();function _0x14b16d(_0x688b25,_0xfac0c2,_0x52a736,_0x442ad6){return _0x501c(_0x688b25- -_0x3d9801._0x59aee9,_0x442ad6);}_0x4b9e7c(new Error(_0x419cdd[_0x14b16d(-0x1c0,-_0x56bdd7._0x13f322,-_0x56bdd7._0x5dab90,-_0x56bdd7._0x419784)]||_0x55f5ca(0x47b,_0x56bdd7._0xb4858,_0x56bdd7._0x32e019,0x4de)));},_0x3713e5=_0x22debb=>{const _0x76c650={_0x1085e1:0x11a};function _0x32ab93(_0x19a737,_0x5be84b,_0x563e19,_0x48a5e6){return _0x501c(_0x5be84b- -_0x76c650._0x1085e1,_0x19a737);}function _0x4861e3(_0x42d44c,_0x6751f9,_0x3d4aad,_0x3f8d59){return _0x501c(_0x3f8d59-0xb2,_0x42d44c);}_0x251b64();const _0x3d1d2b=_0x22debb;_0x4b9e7c(new Error(_0x3d1d2b[_0x32ab93(-0x9a,-_0x37633e._0xaea5da,_0x37633e._0x99deb2,-0xc3)]||_0x4861e3(_0x37633e._0x17b0ba,_0x37633e._0x4c1192,_0x37633e._0x508f9d,_0x37633e._0x41f0a2)));},_0x3e73ec=()=>{const _0x54f7e9={_0x2318cc:0x2f8};function _0x4d8265(_0x1c86f6,_0x41c4ef,_0x47a95d,_0x1f5f74){return _0x501c(_0x1c86f6- -0x2d7,_0x47a95d);}_0x251b64();function _0x2bac00(_0x1199b1,_0x49151c,_0x574781,_0xdcdc18){return _0x501c(_0x1199b1- -_0x54f7e9._0x2318cc,_0x574781);}_0x2242fb[_0x4d8265(-_0x2fbe8f._0x31cd4f,-0x1cc,-0x1d3,-_0x2fbe8f._0x446a14)]===WebSocket[_0x4d8265(-_0x2fbe8f._0x4d7eaa,-_0x2fbe8f._0x31325d,-0x18f,-_0x2fbe8f._0x47d29c)]&&_0x2242fb[_0x2bac00(-_0x2fbe8f._0x585365,-_0x2fbe8f._0x5f04b1,-0x125,-_0x2fbe8f._0x5339df)](0x3e8,_0x4d8265(-_0x2fbe8f._0xb3c2ea,-_0x2fbe8f._0x508f1e,-_0x2fbe8f._0x5b9e47,-_0x2fbe8f._0x10d739)),_0x4b9e7c(toAbortError(_0x1d37a2?.['reason']));},_0x251b64=()=>{_0x2242fb[_0x47cb7d(0x370,0x3cb,0x349,0x3fc)](_0x4e5ac8(0x2dc,0x237,_0x4be06c._0x5226a8,_0x4be06c._0x33eabb),_0x4313d2),_0x2242fb['removeEventListener'](_0x47cb7d(_0x4be06c._0xa095fa,_0x4be06c._0x55af3f,0x498,0x4eb),_0x4b3c95),_0x2242fb[_0x47cb7d(0x3f6,0x3cb,0x34a,0x3f4)]('close',_0x3713e5);function _0x47cb7d(_0x4094a6,_0x4c415f,_0xf11e31,_0x9be177){return _0x501c(_0x4c415f-_0x507e37._0x4f41d7,_0x9be177);}function _0x4e5ac8(_0x45ee05,_0x4d7a54,_0xb55053,_0x2fff3d){return _0x501c(_0x45ee05-0x215,_0x4d7a54);}_0x1d37a2?.[_0x47cb7d(_0x4be06c._0xab5163,0x3cb,0x483,_0x4be06c._0x269317)](_0x4e5ac8(0x32e,0x3c2,0x381,_0x4be06c._0x2eb7ee),_0x3e73ec);};function _0x945991(_0x2fe326,_0xf649ba,_0x1e11b0,_0x12130c){return _0x5efab5(_0x2fe326- -_0x382451._0x7422f4,_0xf649ba-_0x382451._0x299fe9,_0x12130c,_0x12130c-0x91);}_0x2242fb[_0x201d8d(_0x5d3913._0x4c97b2,_0x5d3913._0x16acfc,_0x5d3913._0x58fde0,0x315)](_0x201d8d(_0x5d3913._0x4bd020,0x30a,_0x5d3913._0x5344b1,_0x5d3913._0xa61ef5),_0x4313d2),_0x2242fb['addEventListener'](_0x945991(-0x1e1,-0x1d2,-_0x5d3913._0x1daf94,-_0x5d3913._0x14cad7),_0x4b3c95),_0x2242fb[_0x945991(-0x319,-0x370,-_0x5d3913._0x53a13e,-_0x5d3913._0x40874f)](_0x201d8d(0x377,0x3a4,_0x5d3913._0x4f9b6c,0x390),_0x3713e5),_0x1d37a2?.[_0x201d8d(_0x5d3913._0x464772,0x30b,0x323,_0x5d3913._0x1e8d29)](_0x945991(-0x2c8,-_0x5d3913._0x1d665b,-0x2c4,-0x2b7),_0x3e73ec,{'once':!![]});});}function iterateWebSocketMessages(_0x3fae5b,_0x49ea16){const _0x521cd1={_0xc46daa:0x3b1,_0x5a286d:0x3b4,_0x4e2c5d:0x2bc,_0x20864d:0x21a,_0x349e7a:0x2bf,_0xa749ed:0x2af,_0x3c0ddc:0x253,_0x17ba69:0x3e8,_0x4225ce:0x460},_0x13f76f={_0x912a07:0x31f,_0x43a487:0x30b,_0x550d51:0x2c9,_0x494b14:0x270,_0x4d721e:0x34b,_0x32709e:0x352,_0x4bf878:0x31e,_0x27a3bd:0x54,_0x2eaeb0:0x2a5,_0x37f809:0x6f,_0x2be0dc:0xd5},_0x232aea={_0x8f8c16:0x19d,_0x570ad0:0x1f},_0x44daae={_0x362eb2:0x3b0,_0x21571f:0x46e,_0x8bed6d:0x214,_0xcac81c:0x365,_0x573aaa:0x4d0,_0x161d9b:0x468,_0x1fec28:0x5ba,_0xf6eb67:0x420,_0x512f36:0x484,_0x22a6dd:0x4ce,_0x365cec:0x4e7},_0x3e6208={_0x15ea61:0x35c},_0x3f0446={_0x2a394f:0x3e2,_0x248ae7:0x414,_0x5699a9:0x364,_0x31b3b2:0x2cc,_0x60be4a:0x18a},_0x22a684={_0x4a862d:0x22c,_0x4b080b:0x132,_0x327366:0x23},_0x1f6f18={_0x42b520:0x4cf,_0x3eeeba:0x510,_0x1414ec:0x5a1,_0x5cd589:0x512,_0x12c8c3:0x53f},_0x1a5936={_0x2fe356:0x10,_0x38e6db:0xf5,_0x4dab25:0x403,_0x465163:0x422,_0x409e4c:0x307},_0x4dc614={_0x3f265f:0x23e},_0x449022=[];let _0x2b33c4=![],_0x1dddfd,_0x9c0a0c;const _0x5a09f1=_0x5806b4=>{const _0x53bf11=_0x5806b4;function _0x16f715(_0x4a38c6,_0x5819a7,_0xfa73c1,_0x2c7ba0){return _0x501c(_0x4a38c6-_0x4dc614._0x3f265f,_0xfa73c1);}function _0x58209c(_0x3a848f,_0x2e70d9,_0x1c357d,_0x35e830){return _0x501c(_0x2e70d9- -0xed,_0x3a848f);}try{_0x449022['push'](JSON[_0x58209c(-_0x1a5936._0x2fe356,0x66,_0x1a5936._0x38e6db,0xee)](String(_0x53bf11[_0x16f715(_0x1a5936._0x4dab25,0x3b8,0x3d6,_0x1a5936._0x465163)]))),_0x9c0a0c?.(),_0x9c0a0c=void 0x0;}catch(_0x4849a0){_0x1dddfd=new Error(_0x16f715(0x38a,_0x1a5936._0x409e4c,0x388,0x3d7)+toErrorMessage(_0x4849a0)),_0x9c0a0c?.(),_0x9c0a0c=void 0x0;}},_0x1301a8=_0x5c7025=>{function _0x33a33c(_0x5b9845,_0x3892b0,_0x52a091,_0x2300d2){return _0x501c(_0x3892b0-0x2c4,_0x2300d2);}const _0x3b396d=_0x5c7025;_0x1dddfd=new Error(_0x3b396d[_0x33a33c(0x4bd,_0x1f6f18._0x42b520,0x445,_0x1f6f18._0x3eeeba)]||_0x353609(_0x1f6f18._0x1414ec,_0x1f6f18._0x5cd589,0x45e,_0x1f6f18._0x12c8c3));function _0x353609(_0x423ba3,_0x28e7db,_0x11059c,_0x3d53b0){return _0x501c(_0x28e7db-0x3bd,_0x11059c);}_0x9c0a0c?.(),_0x9c0a0c=void 0x0;};function _0x4b7a1a(_0x447470,_0x2b7f8e,_0x82ab43,_0x1f4986){return _0x65d232(_0x1f4986-_0x22a684._0x4a862d,_0x82ab43,_0x82ab43-_0x22a684._0x4b080b,_0x1f4986-_0x22a684._0x327366);}const _0x4424a4=_0x99a860=>{const _0x28d6ea=_0x99a860;!_0x2b33c4&&_0x28d6ea[_0x22f9b9(0x4bf,_0x3f0446._0x2a394f,_0x3f0446._0x248ae7,0x3da)]!==0x3e8&&!_0x1dddfd&&(_0x1dddfd=new Error(_0x28d6ea[_0x22f9b9(0x37c,_0x3f0446._0x5699a9,0x3e4,0x3a5)]||_0xa1fbe3(0x2be,0x20e,_0x3f0446._0x31b3b2,_0x3f0446._0x60be4a)+_0x28d6ea[_0xa1fbe3(0x2f4,0x283,0x276,0x2ea)]));function _0x22f9b9(_0x5a9fc4,_0x410791,_0x435f01,_0x5c24be){return _0x501c(_0x435f01-0x2d2,_0x5c24be);}_0x2b33c4=!![];function _0xa1fbe3(_0x9ca1a,_0x324e1e,_0x24ae01,_0x5dc9cc){return _0x501c(_0x324e1e-0x141,_0x5dc9cc);}_0x9c0a0c?.(),_0x9c0a0c=void 0x0;},_0x237751=addAbortListener(_0x49ea16,()=>{_0x1dddfd=toAbortError(_0x49ea16?.[_0x3c5dec(0x45d,_0x44daae._0x362eb2,_0x44daae._0x21571f,0x448)]);_0x3fae5b[_0x39fc4c(0x203,0x2b6,_0x44daae._0x8bed6d,_0x44daae._0xcac81c)]===WebSocket[_0x3c5dec(_0x44daae._0x573aaa,_0x44daae._0x161d9b,0x50f,_0x44daae._0x1fec28)]&&_0x3fae5b['close'](0x3e8,_0x3c5dec(_0x44daae._0xf6eb67,_0x44daae._0x512f36,_0x44daae._0x22a6dd,_0x44daae._0x365cec));function _0x3c5dec(_0x490339,_0x24c96b,_0x4f3ac6,_0x642b59){return _0x501c(_0x4f3ac6-_0x3e6208._0x15ea61,_0x490339);}function _0x39fc4c(_0x4012e3,_0x403fe7,_0x5835cb,_0x4a3e28){return _0x501c(_0x403fe7-0x1d4,_0x5835cb);}_0x9c0a0c?.(),_0x9c0a0c=void 0x0;});function _0x3c2694(_0x57f7f,_0x594cd7,_0x403674,_0x2f5762){return _0x3c7c8d(_0x57f7f-0x72,_0x594cd7-_0x232aea._0x8f8c16,_0x403674-_0x232aea._0x570ad0,_0x594cd7);}return _0x3fae5b['addEventListener'](_0x3c2694(0x402,0x360,_0x521cd1._0xc46daa,_0x521cd1._0x5a286d),_0x5a09f1),_0x3fae5b[_0x3c2694(0x2bf,0x322,_0x521cd1._0x4e2c5d,_0x521cd1._0x20864d)]('error',_0x1301a8),_0x3fae5b[_0x3c2694(_0x521cd1._0x349e7a,_0x521cd1._0xa749ed,_0x521cd1._0x3c0ddc,0x2d5)]('close',_0x4424a4),{async*[Symbol[_0x3c2694(_0x521cd1._0x17ba69,_0x521cd1._0x4225ce,0x394,0x37c)]](){const _0x2d07b3={_0x228724:0xd9,_0x4d806a:0x1f1},_0x1140ac={_0x10e47c:0x167,_0x2a9090:0xe};function _0x3dda79(_0x45286a,_0x1d2b30,_0x1b1c19,_0x2a5e45){return _0x4b7a1a(_0x45286a-_0x1140ac._0x10e47c,_0x1d2b30-0x124,_0x1d2b30,_0x1b1c19-_0x1140ac._0x2a9090);}function _0x5d49f3(_0x2e0b41,_0x1a6d1e,_0x10b5ec,_0xc2a992){return _0x3c2694(_0xc2a992- -0x42d,_0x2e0b41,_0x10b5ec-_0x2d07b3._0x228724,_0xc2a992-_0x2d07b3._0x4d806a);}try{while(!![]){if(_0x1dddfd)throw _0x1dddfd;if(_0x449022[_0x3dda79(0x3a1,0x37f,_0x13f76f._0x912a07,0x30e)]>0x0){yield _0x449022[_0x3dda79(0x3d1,_0x13f76f._0x43a487,0x358,0x3f0)]();continue;}if(_0x2b33c4)break;await new Promise(_0x2ee2eb=>{_0x9c0a0c=_0x2ee2eb;});}}finally{_0x3fae5b[_0x3dda79(0x214,_0x13f76f._0x550d51,_0x13f76f._0x494b14,0x2fc)](_0x3dda79(_0x13f76f._0x4d721e,0x2a9,_0x13f76f._0x32709e,_0x13f76f._0x4bf878),_0x5a09f1),_0x3fae5b['removeEventListener'](_0x5d49f3(0x48,-_0x13f76f._0x27a3bd,-0x6f,-0x36),_0x1301a8),_0x3fae5b[_0x3dda79(0x1fe,0x1d8,0x270,_0x13f76f._0x2eaeb0)](_0x5d49f3(-0x17f,-0x14e,-_0x13f76f._0x37f809,-_0x13f76f._0x2be0dc),_0x4424a4),_0x237751();}}};}function toWebSocketUrl(_0x22f506,_0x288208){const _0x5ae79b={_0x8bf7e4:0x269,_0x5a7cf6:0x32f,_0x4e8036:0x2bc,_0xaeb9a5:0x4ac,_0x518fe8:0x5bd,_0x3db32d:0x3f1,_0x3999f4:0x498,_0x22891d:0x3bd,_0xe80af0:0x433},_0x1adbbb={_0x1bc18f:0x8a},_0x125cf8={_0x23a421:0x185};function _0x12f26b(_0x29e351,_0x37a250,_0x26c651,_0x51a4e0){return _0x3c7c8d(_0x26c651-0x198,_0x37a250-0x1ae,_0x26c651-_0x125cf8._0x23a421,_0x37a250);}const _0x14eb15=new URL(_0x288208,_0x22f506);_0x14eb15[_0x400ce8(_0x5ae79b._0x8bf7e4,0x27b,_0x5ae79b._0x5a7cf6,0x2bc)]=_0x14eb15[_0x400ce8(0x20c,0x28a,0x342,_0x5ae79b._0x4e8036)]===_0x12f26b(_0x5ae79b._0xaeb9a5,0x4f0,0x538,_0x5ae79b._0x518fe8)?'wss:':_0x12f26b(_0x5ae79b._0x3db32d,0x348,0x400,_0x5ae79b._0x3999f4);function _0x400ce8(_0x2f112f,_0x5ade09,_0x289001,_0x46a248){return _0x3c7c8d(_0x46a248-_0x1adbbb._0x1bc18f,_0x5ade09-0x14c,_0x289001-0x1f0,_0x289001);}return _0x14eb15[_0x400ce8(0x3fb,0x452,_0x5ae79b._0x22891d,_0x5ae79b._0xe80af0)]();}var ProviderSessionManager=class{[_0x65d232(0x125,0x19c,0x9c,0x1e6)];[_0x3c7c8d(0x2e8,0x323,0x2f0,0x255)];constructor(_0xbf7fc7){this['resolver']=_0xbf7fc7;}async['resolve'](_0x245a0a){const _0xb3cdf1={_0x55dde5:0x51,_0x3c94e1:0xef,_0x26cf5e:0x33,_0x57db61:0xef,_0x5e01ee:0x19,_0x4dc688:0xc6,_0x7feb31:0x56,_0x1a04e6:0x11b},_0x29fa62={_0x5df03c:0x8a},_0x4e8f3e={_0x24ce74:0xd3};function _0xf57e6d(_0x1f31d1,_0x55547e,_0x335dfa,_0x4f076f){return _0x65d232(_0x4f076f- -0x15f,_0x55547e,_0x335dfa-_0x4e8f3e._0x24ce74,_0x4f076f-0x192);}function _0x486a72(_0x44fe58,_0x3720b8,_0x4888c2,_0x10a230){return _0x3c7c8d(_0x10a230- -0x4eb,_0x3720b8-_0x29fa62._0x5df03c,_0x4888c2-0xd6,_0x3720b8);}return!this[_0xf57e6d(-0x177,-_0xb3cdf1._0x55dde5,-0x41,-_0xb3cdf1._0x3c94e1)]&&(this[_0xf57e6d(-0x9f,-_0xb3cdf1._0x26cf5e,-0x118,-_0xb3cdf1._0x57db61)]=this['resolver'][_0xf57e6d(-_0xb3cdf1._0x5e01ee,-0x100,-0xee,-_0xb3cdf1._0x4dc688)](_0x245a0a)),structuredClone(await this[_0xf57e6d(-_0xb3cdf1._0x7feb31,-_0xb3cdf1._0x1a04e6,-0x109,-0xef)]);}['invalidate'](){const _0x13c343={_0x463f45:0x2db,_0x26d545:0x2b8},_0x130dc7={_0x476eb2:0x52a};function _0x5c1adf(_0x2ac8c7,_0x3a569c,_0xb2c42a,_0x359ae6){return _0x3c7c8d(_0x2ac8c7- -_0x130dc7._0x476eb2,_0x3a569c-0xf8,_0xb2c42a-0xc4,_0x3a569c);}this[_0x5c1adf(-0x242,-0x230,-_0x13c343._0x463f45,-_0x13c343._0x26d545)]=void 0x0;}};async function prepareProviderRequest(_0x45837a,_0x449049={}){const _0x599d88={_0x15d026:0x1b0,_0x4ac848:0xad,_0x28fbf3:0x40,_0x5d7971:0x34,_0x5adffa:0x66,_0x8187c7:0x3c,_0x58352f:0x5e,_0x3d6c62:0xc},_0x31d6fe={_0x414091:0x9a,_0x32acaf:0x51};let _0x46f0ef={'request':structuredClone(_0x45837a),'session':_0x449049[_0x3c97c9(-_0x599d88._0x15d026,-_0x599d88._0x4ac848,-0x11a,-0x110)]?await _0x449049[_0x5c9559(_0x599d88._0x28fbf3,-_0x599d88._0x5d7971,-_0x599d88._0x5adffa,-_0x599d88._0x8187c7)]['resolve'](_0x449049['signal']):void 0x0};function _0x5c9559(_0x2c9529,_0x4beec5,_0x5a1dd5,_0x1933e9){return _0x65d232(_0x4beec5- -_0x31d6fe._0x414091,_0x1933e9,_0x5a1dd5-_0x31d6fe._0x32acaf,_0x1933e9-0x45);}function _0x3c97c9(_0x4841d8,_0xeff375,_0x4ef154,_0x37eb9c){return _0x3c7c8d(_0x4ef154- -0x3f8,_0xeff375-0x1d8,_0x4ef154-0xb9,_0x37eb9c);}for(const _0x36e499 of _0x449049[_0x3c97c9(-0x37,-0x58,-_0x599d88._0x58352f,_0x599d88._0x3d6c62)]??[]){_0x46f0ef=await _0x36e499(_0x46f0ef);}return _0x46f0ef;}var RoutedModel=class{[_0x3c7c8d(0x32a,0x32e,0x3bc,0x314)];[_0x65d232(0x117,0x19e,0x1d1,0xa4)];[_0x3c7c8d(0x2bd,0x248,0x334,0x208)];[_0x3c7c8d(0x309,0x323,0x392,0x30e)];['baseUrl'];['fetchImpl'];[_0x65d232(0xc2,0xce,0x14f,0x67)];[_0x65d232(0x122,0x19e,0x148,0x193)];[_0x3c7c8d(0x367,0x3c8,0x2ec,0x3ca)];['sessionManager'];[_0x65d232(0x6c,0x1,-0x51,0xb2)];['surfaces']=new Map();constructor(_0x28beff){const _0x120413={_0x7e7220:0x183,_0x1f6505:0x26d,_0x41b2a7:0x316,_0x26f7ba:0x2a9,_0x58c4a7:0x2d1,_0x2550a2:0x26f,_0x24043e:0x102,_0x36dc64:0x14b,_0x1eba04:0x1ae,_0x40de3f:0xb3,_0x446ff9:0x177,_0x1ae1fd:0x1cc,_0x25226d:0x1e7,_0x91ac2d:0x27a,_0x2017ab:0x223,_0x5c5a1a:0x124,_0x5bd340:0x26d,_0x100641:0x222,_0x272e01:0x22d,_0x15e93d:0x1f2,_0x3dd38b:0x273,_0xd60c1c:0x22b,_0x51b1b4:0x2e3,_0x574417:0x1b0,_0x50c2a9:0x1f6,_0x2ee951:0x258,_0x48e9ba:0x15b,_0x1c9fa9:0x1c0,_0x565448:0x152,_0x531774:0x129,_0x181ee7:0x19e,_0x1268ee:0x14d,_0x12a0f9:0x13d,_0x9dd4cb:0x1a3,_0x18b580:0x162,_0x531afd:0x1d5,_0x18b0a6:0x122,_0x9106f1:0x1a1,_0x551748:0xc9,_0x2e334f:0xb9,_0x4f0017:0x29b,_0x38bfdb:0x2b1,_0x339bff:0x206},_0x4ceacb={_0x5ae90a:0x3a},_0x1a0497={_0x23ed45:0xb3};function _0xbeae4(_0x53aa79,_0x53eeac,_0x5dc46a,_0x42e393){return _0x65d232(_0x42e393-0xd1,_0x5dc46a,_0x5dc46a-_0x1a0497._0x23ed45,_0x42e393-0x6a);}this[_0xbeae4(0x128,0x1e6,0x154,_0x120413._0x7e7220)]=_0x28beff[_0x4d3b1b(0x2a1,_0x120413._0x1f6505,0x1de,0x21b)],this['maxTokens']=_0x28beff[_0x4d3b1b(_0x120413._0x41b2a7,_0x120413._0x26f7ba,_0x120413._0x58c4a7,0x280)]??0x4000,this[_0xbeae4(0xa6,0xa2,0xa3,0x116)]=_0x28beff[_0x4d3b1b(0x199,0x267,0x16e,0x1ae)]?structuredClone(_0x28beff[_0x4d3b1b(_0x120413._0x2550a2,_0x120413._0x24043e,_0x120413._0x36dc64,_0x120413._0x1eba04)]):void 0x0,this['apiKey']=_0x28beff[_0xbeae4(_0x120413._0x40de3f,_0x120413._0x446ff9,_0x120413._0x1ae1fd,0x162)],this[_0x4d3b1b(_0x120413._0x25226d,0x2a7,_0x120413._0x91ac2d,_0x120413._0x2017ab)]=_0x28beff['baseUrl'],this[_0xbeae4(_0x120413._0x5c5a1a,0x18e,0x114,0xed)]=_0x28beff[_0xbeae4(_0x120413._0x5bd340,_0x120413._0x100641,0x1ff,0x1db)]??globalThis[_0x4d3b1b(_0x120413._0x272e01,_0x120413._0x15e93d,0x275,_0x120413._0x3dd38b)],this[_0x4d3b1b(0x2d0,0x1e3,0x2be,_0x120413._0xd60c1c)]=_0x28beff['providerAdapter'],this['requestMutators']=_0x28beff[_0x4d3b1b(_0x120413._0x51b1b4,0x2ff,0x2ce,0x28b)]??[];function _0x4d3b1b(_0x15349a,_0x4a8af8,_0xaf3dcd,_0x242eab){return _0x65d232(_0x242eab-0x169,_0x15349a,_0xaf3dcd-0x27,_0x242eab-_0x4ceacb._0x5ae90a);}this[_0x4d3b1b(0x22c,_0x120413._0x574417,_0x120413._0x50c2a9,_0x120413._0x2ee951)]=_0x28beff[_0xbeae4(_0x120413._0x48e9ba,0x160,0x239,_0x120413._0x1c9fa9)],this[_0x4d3b1b(0x172,_0x120413._0x565448,_0x120413._0x531774,0x1cf)]=_0x28beff[_0x4d3b1b(0x26b,0x144,0x1ab,0x1cf)]??(_0x28beff['providerSessionResolver']?new ProviderSessionManager(_0x28beff[_0x4d3b1b(_0x120413._0x181ee7,0x1ff,0x231,0x25c)]):void 0x0),this[_0xbeae4(0xc1,_0x120413._0x1268ee,0x8a,_0x120413._0x12a0f9)]=_0x28beff[_0x4d3b1b(0x230,_0x120413._0x9dd4cb,_0x120413._0x18b580,_0x120413._0x531afd)]??createDefaultWebSocketFactory();for(const _0x32194a of _0x28beff[_0x4d3b1b(0x1e7,_0x120413._0x18b0a6,0x207,_0x120413._0x9106f1)]){this[_0xbeae4(_0x120413._0x551748,0x14b,_0x120413._0x2e334f,0x109)][_0x4d3b1b(_0x120413._0x4f0017,0x2b5,_0x120413._0x38bfdb,_0x120413._0x339bff)](_0x32194a['id'],_0x32194a);}}[_0x65d232(-0x1,-0x76,-0x4a,-0xbe)](_0x282863,_0x45a42b){const _0x30419a={_0x516bf8:0x3d},_0x463258={_0xf5db60:0x34b,_0x36bcc1:0x1d3};function _0xa85164(_0x331310,_0x1e8f8b,_0x19901f,_0x4e62fc){return _0x3c7c8d(_0x19901f- -_0x463258._0xf5db60,_0x1e8f8b-0x61,_0x19901f-_0x463258._0x36bcc1,_0x4e62fc);}return this[_0xa85164(0x72,-0x2c,_0x30419a._0x516bf8,-0x31)](_0x282863,_0x45a42b);}['stream'](_0x69293a,_0x3f7856){const _0x56e4d3={_0x331319:0x82,_0x4a85ae:0x21,_0x1d75f7:0x43},_0x2a8d06={_0x3a90e5:0x124,_0x5c6416:0xea,_0x27514e:0x167};function _0x41d29e(_0x39c4b1,_0x497c39,_0x3e7cd9,_0x274677){return _0x65d232(_0x3e7cd9- -_0x2a8d06._0x3a90e5,_0x274677,_0x3e7cd9-_0x2a8d06._0x5c6416,_0x274677-_0x2a8d06._0x27514e);}return this[_0x41d29e(-_0x56e4d3._0x331319,_0x56e4d3._0x4a85ae,-0x37,_0x56e4d3._0x1d75f7)](_0x69293a,_0x3f7856);}async[_0x3c7c8d(0x388,0x428,0x2d8,0x347)](_0x5b7cb5,_0x667eba){const _0x564a0a={_0xea159e:0x13b,_0x3ad02c:0x232,_0x4e537c:0x85,_0x1fd8d5:0x4a,_0x41fa75:0x33,_0x54d9f2:0x4b},_0x12ed1c={_0x38f038:0xd6,_0x2c55a5:0xa6},_0x38fdc4={_0x5846db:0x5a},_0x1d74d9=this['applyModelDefaults'](_0x5b7cb5);function _0x4dba91(_0x459c82,_0x37b020,_0x4cee8,_0x24c130){return _0x65d232(_0x37b020- -_0x38fdc4._0x5846db,_0x4cee8,_0x4cee8-0x55,_0x24c130-0xa4);}function _0x44581b(_0x5c8db5,_0x188aba,_0x4c012c,_0x2b1e22){return _0x3c7c8d(_0x188aba- -0x1ae,_0x188aba-_0x12ed1c._0x38f038,_0x4c012c-_0x12ed1c._0x2c55a5,_0x5c8db5);}const _0x46fd0a=await this[_0x44581b(0x1b6,0x1b9,0x244,_0x564a0a._0xea159e)][_0x44581b(0x291,0x1cf,0x225,_0x564a0a._0x3ad02c)](_0x1d74d9,{'mode':_0x44581b(0xff,0xc9,_0x564a0a._0x4e537c,0x51)});return this[_0x4dba91(-0x10,_0x564a0a._0x1fd8d5,_0x564a0a._0x41fa75,-_0x564a0a._0x54d9f2)](_0x1d74d9,_0x46fd0a,_0x667eba);}async*[_0x3c7c8d(0x365,0x345,0x388,0x3d1)](_0x6a5914,_0x347c99){const _0x3f77cd={_0x2eb185:0x4de,_0x39f5c8:0x548,_0x16072b:0x4ee,_0x329baf:0x46c,_0x40fc23:0x451,_0x342420:0x454,_0x4a2ea6:0x4ca,_0x52b3bb:0x521,_0x163707:0x4ce,_0x391434:0x5a7},_0x2b2eff={_0x483584:0xac},_0xa33668={_0x15bc1b:0x1a8};function _0x483c9b(_0x3375d4,_0x17f30d,_0x423583,_0x58a4f9){return _0x65d232(_0x17f30d-0x41c,_0x3375d4,_0x423583-_0xa33668._0x15bc1b,_0x58a4f9-0x60);}function _0x240b6a(_0x145cdc,_0x11be0c,_0xd10c78,_0x1c7b1c){return _0x3c7c8d(_0x1c7b1c-0x220,_0x11be0c-0x147,_0xd10c78-_0x2b2eff._0x483584,_0xd10c78);}const _0x103ca5=this[_0x483c9b(_0x3f77cd._0x2eb185,_0x3f77cd._0x39f5c8,0x4f1,_0x3f77cd._0x16072b)](_0x6a5914),_0x13e20f=await this[_0x483c9b(_0x3f77cd._0x329baf,0x50b,_0x3f77cd._0x40fc23,_0x3f77cd._0x342420)][_0x483c9b(_0x3f77cd._0x4a2ea6,_0x3f77cd._0x52b3bb,0x4b2,0x546)](_0x103ca5,{'mode':_0x240b6a(_0x3f77cd._0x163707,0x496,0x492,0x4d2)});yield*this[_0x483c9b(0x493,0x4fb,0x4e6,_0x3f77cd._0x391434)](_0x103ca5,_0x13e20f,_0x347c99);}async[_0x65d232(0xa4,0x77,0x45,0x15)](_0x585b34,_0x4c840a,_0x29b8a8){const _0x405a78={_0x2dcc05:0x33c,_0x392de0:0x4f9,_0x55f3da:0x3bb,_0x352b42:0x433,_0x29254b:0x4d2,_0x33a42b:0x451,_0x5551ea:0x440,_0x264b0a:0x41d,_0x164b58:0x37a,_0x48e217:0x3dc,_0x2bd701:0x36d,_0x103b6c:0x2b2,_0x1cb61e:0x30f,_0x4aee54:0x39a,_0x722757:0x3c6,_0x97cf0f:0x297,_0x2d526c:0x25c,_0x7c49ac:0x2b0,_0x515d1b:0x29d,_0x23b84b:0x2f5,_0x380964:0x3f8,_0x157645:0x374,_0x64041e:0x326,_0x2f6b54:0x320,_0x3a184d:0x351,_0x25620f:0x377},_0x1ec73c={_0x19b6bb:0x19b},_0x16e486={_0x262a10:0x188},_0x416208=this[_0x119e9d(0x40d,0x387,0x402,_0x405a78._0x2dcc05)](_0x585b34),_0x4e9b8f=this[_0x4c0148(0x49b,0x43c,_0x405a78._0x392de0,0x43f)](_0x4c840a);if(_0x4e9b8f[_0x4c0148(_0x405a78._0x55f3da,0x4c4,_0x405a78._0x352b42,_0x405a78._0x29254b)]===_0x4c0148(0x4ba,_0x405a78._0x33a42b,_0x405a78._0x5551ea,_0x405a78._0x264b0a)){const _0x1b7fef=await this[_0x4c0148(_0x405a78._0x164b58,0x356,_0x405a78._0x48e217,0x495)](_0x416208,_0x4e9b8f,![],_0x29b8a8?.[_0x119e9d(0x33f,_0x405a78._0x2bd701,_0x405a78._0x103b6c,_0x405a78._0x1cb61e)]);if(!_0x1b7fef['ok'])throw await this[_0x4c0148(_0x405a78._0x4aee54,0x405,0x3e9,_0x405a78._0x722757)](_0x1b7fef);if(!_0x4e9b8f['parseResponse'])throw new Error('Surface\x20'+_0x4c840a+_0x119e9d(_0x405a78._0x97cf0f,_0x405a78._0x2d526c,0x296,0x1c6));return _0x4e9b8f[_0x119e9d(0x304,0x292,0x318,_0x405a78._0x7c49ac)](await _0x1b7fef['json'](),_0x416208);}function _0x119e9d(_0x118795,_0x1f5a2b,_0x2909c1,_0x1167e9){return _0x3c7c8d(_0x1f5a2b- -0x1d,_0x1f5a2b-_0x16e486._0x262a10,_0x2909c1-0x1d4,_0x2909c1);}function _0x4c0148(_0x1763d4,_0x4ed33a,_0x467f94,_0xc1da01){return _0x3c7c8d(_0x467f94-_0x1ec73c._0x19b6bb,_0x4ed33a-0x178,_0x467f94-0x7f,_0x1763d4);}let _0x10767d;for await(const _0x1f5c19 of this[_0x119e9d(0x28e,0x33a,_0x405a78._0x515d1b,_0x405a78._0x23b84b)](_0x416208,_0x4c840a,_0x29b8a8)){_0x1f5c19[_0x119e9d(0x370,0x342,_0x405a78._0x380964,0x2e1)]==='done'&&(_0x10767d=_0x1f5c19[_0x119e9d(0x356,_0x405a78._0x157645,0x35f,0x409)]);}if(!_0x10767d)throw new Error(_0x119e9d(0x313,_0x405a78._0x64041e,0x393,0x2e6)+_0x4c840a+_0x119e9d(0x2ac,_0x405a78._0x2f6b54,_0x405a78._0x3a184d,_0x405a78._0x25620f));return _0x10767d;}async*[_0x3c7c8d(0x357,0x29b,0x3c7,0x356)](_0x4f16d1,_0x2676fb,_0x3bbf56){const _0x114804={_0x7acf46:0x5a,_0x456e1c:0x57a,_0x4a007c:0x2e2,_0x372ab8:0x419,_0x309177:0x46d,_0xa282d9:0x4c1,_0x3b816c:0x482,_0x22868a:0x4d5,_0x44b921:0x45f,_0x43108e:0x497,_0x291758:0x18a,_0x2bb378:0x226,_0x13d6e7:0x29c,_0x548166:0x4cd,_0xd2f5ca:0x2a6,_0x245c9d:0x2f8,_0x2823aa:0x15d,_0x52b06d:0x134,_0xf78c04:0x119,_0x4b3de4:0x4dd,_0x107863:0x57a,_0x529806:0x662,_0x1740f4:0x5a6},_0x33f7c7={_0x4f0f7d:0x21c,_0x5d2698:0x10b},_0x13d5bb=this[_0x38985c(-0x1d3,-_0x114804._0x7acf46,-0xb4,-0x117)](_0x4f16d1),_0x2973f0=this[_0xa2013f(0x5af,0x514,0x53c,_0x114804._0x456e1c)](_0x2676fb);function _0x38985c(_0x4f136c,_0x495a9b,_0x30f273,_0x450835){return _0x65d232(_0x450835- -0x243,_0x4f136c,_0x30f273-0x132,_0x450835-0x17a);}if(_0x2973f0[_0x38985c(-0x29f,-_0x114804._0x4a007c,-0x1b7,-0x223)]===_0xa2013f(_0x114804._0x372ab8,_0x114804._0x309177,0x523,_0x114804._0xa282d9)){yield{'type':_0xa2013f(_0x114804._0x3b816c,_0x114804._0x22868a,_0x114804._0x44b921,_0x114804._0x43108e),'response':await this[_0x38985c(-0x22e,-_0x114804._0x291758,-_0x114804._0x2bb378,-0x19f)](_0x13d5bb,_0x2676fb,_0x3bbf56)};return;}function _0xa2013f(_0x413745,_0x2f59f8,_0x29d34d,_0x42f3e1){return _0x3c7c8d(_0x42f3e1-_0x33f7c7._0x4f0f7d,_0x2f59f8-0x82,_0x29d34d-_0x33f7c7._0x5d2698,_0x413745);}if(_0x2973f0[_0x38985c(-0x1a7,-_0x114804._0x13d6e7,-0x1f8,-0x223)]===_0xa2013f(0x4d9,0x418,0x4df,_0x114804._0x548166)){yield*this[_0x38985c(-0x26e,-_0x114804._0xd2f5ca,-_0x114804._0x245c9d,-0x28b)](_0x13d5bb,_0x2973f0,_0x3bbf56?.[_0x38985c(-_0x114804._0x2823aa,-_0x114804._0x52b06d,-_0x114804._0xf78c04,-0x131)]);return;}yield*this[_0xa2013f(0x5fa,_0x114804._0x4b3de4,0x5a7,0x56c)](_0x13d5bb,_0x2973f0,_0x3bbf56?.[_0xa2013f(_0x114804._0x107863,_0x114804._0x529806,0x61b,_0x114804._0x1740f4)]);}async['sendRawRequest'](_0x2c2b88){const _0x2b9460={_0x3d941b:0x272,_0x53e712:0x98,_0x4ef051:0x16c,_0x41ec85:0x166,_0x4af3c8:0xc3,_0x24d951:0xd4},_0x5edf34={_0x20a3ea:0x1a9,_0x1104c1:0x12f,_0x468217:0xec},_0x27aefa={_0x29d483:0x31b,_0x5a38ba:0x35a,_0x5e238b:0x2f9,_0x1d00d3:0x32c,_0x2cfb01:0x3be,_0x3d7078:0x2e3,_0x9fd3db:0x313,_0x3bc607:0x275,_0x5cf61b:0x271,_0x453ca9:0x2c5,_0x5061f6:0x292,_0x5f0288:0x236,_0x499436:0x295,_0x4d8df1:0x2c9,_0x95df0c:0x3a4,_0xfeb4cb:0x35a,_0x14697e:0x31e,_0xd5cf70:0x39e,_0x4e7b86:0x32e,_0x361f7c:0x396,_0x5d5845:0x23e,_0x3ddd4f:0x2ab,_0x2b534d:0x2f2,_0x335d27:0x22c,_0x207423:0x1ff,_0x33d39c:0x21d,_0x5a6b56:0x334,_0x537115:0x2db,_0x1ca271:0x2c3,_0x31dbb0:0x22c,_0x4cfba2:0x252,_0x576e19:0x2b5,_0x3fbf98:0x219,_0x2e25b4:0x32e,_0x5675c4:0x3a2,_0x68fb39:0x336,_0x4bdd9c:0x29e,_0x4bc6cc:0x27f,_0x48c050:0x313},_0x51857a=async()=>{const _0x59c6d4=this[_0x383c9e(0x290,0x27b,_0x27aefa._0x29d483,0x267)]?await this[_0x54121b(_0x27aefa._0x5a38ba,0x2b1,_0x27aefa._0x5e238b,_0x27aefa._0x1d00d3)]['resolve'](_0x2c2b88[_0x383c9e(_0x27aefa._0x2cfb01,0x287,_0x27aefa._0x3d7078,_0x27aefa._0x9fd3db)]):void 0x0;function _0x383c9e(_0x42021b,_0x461b55,_0x597069,_0x16f4b9){return _0x501c(_0x16f4b9-0x10e,_0x461b55);}function _0x54121b(_0x244dfb,_0x2556b3,_0x38af14,_0xf2f831){return _0x501c(_0x38af14-0x1a0,_0xf2f831);}const _0x5502dd=this[_0x383c9e(_0x27aefa._0x3bc607,0x323,_0x27aefa._0x5cf61b,0x2c3)]['resolveCredential'](this[_0x383c9e(0x285,0x1d0,_0x27aefa._0x453ca9,_0x27aefa._0x5061f6)],_0x59c6d4);if(!_0x5502dd)throw this[_0x54121b(0x1d7,_0x27aefa._0x5f0288,_0x27aefa._0x499436,_0x27aefa._0x4d8df1)]();const _0x2fde92=await this[_0x54121b(0x3df,_0x27aefa._0x95df0c,_0x27aefa._0xfeb4cb,_0x27aefa._0x14697e)]({'body':_0x2c2b88[_0x54121b(_0x27aefa._0xd5cf70,0x3e6,_0x27aefa._0x4e7b86,_0x27aefa._0x361f7c)],'credential':_0x5502dd,'session':_0x59c6d4,'stream':![]},{'accept':_0x2c2b88['accept']??_0x383c9e(0x237,0x2a4,0x27a,0x2ca),'includeContentType':_0x2c2b88[_0x54121b(0x358,_0x27aefa._0x5d5845,_0x27aefa._0x3ddd4f,0x2de)]===_0x383c9e(0x2df,0x2b3,0x248,_0x27aefa._0x2b534d)});return this[_0x383c9e(_0x27aefa._0x335d27,0x1d5,_0x27aefa._0x207423,_0x27aefa._0x33d39c)](''+this[_0x383c9e(_0x27aefa._0x5a6b56,0x349,_0x27aefa._0x537115,_0x27aefa._0x1ca271)]['resolveBaseUrl'](this['baseUrl'],_0x59c6d4)+_0x2c2b88['path'],{'method':_0x2c2b88[_0x383c9e(_0x27aefa._0x31dbb0,_0x27aefa._0x4cfba2,_0x27aefa._0x576e19,_0x27aefa._0x3fbf98)],'headers':_0x2fde92,..._0x2c2b88[_0x54121b(0x363,0x2fc,_0x27aefa._0x2e25b4,_0x27aefa._0x5675c4)]!==void 0x0?{'body':JSON['stringify'](_0x2c2b88[_0x54121b(_0x27aefa._0x68fb39,0x3a3,0x32e,_0x27aefa._0x4bdd9c)])}:{},'signal':_0x2c2b88[_0x383c9e(_0x27aefa._0x4bc6cc,0x266,0x2d7,_0x27aefa._0x48c050)]});},_0x47fa33=await _0x51857a();function _0x612081(_0x45b0a9,_0x3bceea,_0x4ac23f,_0x55e78c){return _0x3c7c8d(_0x55e78c- -_0x5edf34._0x20a3ea,_0x3bceea-_0x5edf34._0x1104c1,_0x4ac23f-_0x5edf34._0x468217,_0x3bceea);}if(_0x47fa33[_0x612081(_0x2b9460._0x3d941b,0x257,0x202,0x1db)]!==0x191||!this[_0x543776(-0x126,-0x159,-_0x2b9460._0x53e712,-_0x2b9460._0x4ef051)])return _0x47fa33;function _0x543776(_0x3d27b2,_0x4ca86f,_0x157f97,_0x2d3669){return _0x3c7c8d(_0x3d27b2- -0x404,_0x4ca86f-0x1bc,_0x157f97-0x163,_0x157f97);}return this[_0x543776(-0x126,-0x129,-0x160,-0x132)][_0x612081(_0x2b9460._0x41ec85,_0x2b9460._0x4af3c8,0x43,_0x2b9460._0x24d951)](),_0x51857a();}[_0x3c7c8d(0x27a,0x28e,0x339,0x30b)](){const _0x4f4ee4={_0x596efe:0x173,_0x301ecd:0x13d},_0x5bd8d8={_0x4bfe31:0x4ff};function _0x2a98a3(_0x3a102e,_0x2f0f80,_0x1c3093,_0xcaafd9){return _0x65d232(_0x1c3093-0x13b,_0x3a102e,_0x1c3093-0x24,_0xcaafd9-0x14e);}function _0x8647f1(_0x5b14e7,_0x4caf84,_0x5584aa,_0x13e9bc){return _0x3c7c8d(_0x13e9bc- -_0x5bd8d8._0x4bfe31,_0x4caf84-0x199,_0x5584aa-0xf7,_0x5584aa);}return this[_0x8647f1(-0x23f,-_0x4f4ee4._0x596efe,-0x22f,-0x1c5)][_0x2a98a3(0x177,0x134,_0x4f4ee4._0x301ecd,0x1c3)]();}async[_0x65d232(0xc7,0x61,0x2d,0xd1)](_0x19233a,_0x250094){const _0x1067ea={_0x348434:0x35d,_0x19f016:0x34d},_0x295223={_0x4aec8c:0xef};function _0x3b148c(_0x4075cc,_0x4a0718,_0x4b1ed4,_0x5ae727){return _0x3c7c8d(_0x4b1ed4-0x263,_0x4a0718-0xc7,_0x4b1ed4-0x149,_0x4a0718);}function _0xf659d1(_0x5121d,_0x34599e,_0x3c31ea,_0xf92303){return _0x65d232(_0x5121d-0x2a9,_0xf92303,_0x3c31ea-0x139,_0xf92303-_0x295223._0x4aec8c);}return await this[_0xf659d1(0x36b,_0x1067ea._0x348434,_0x1067ea._0x19f016,0x3e4)][_0xf659d1(0x370,0x2ef,0x309,0x318)](_0x19233a,_0x250094);}[_0x3c7c8d(0x397,0x3ed,0x2e1,0x329)](_0x59f2aa){const _0x354521={_0x21b21f:0x24a,_0x3270bd:0x223,_0x10c008:0x21c,_0x39b4b9:0x21b,_0x1de2c7:0x24f,_0x63b569:0x1c3},_0x4cd8b4={_0x1f7985:0xa4,_0x30a11a:0x97,_0x1ba574:0x141},_0x22eace={_0x1f8d73:0xd6,_0x3448d3:0x149};function _0x31e686(_0x306c81,_0x3d0586,_0x2e91aa,_0x3d18e7){return _0x3c7c8d(_0x2e91aa- -_0x22eace._0x1f8d73,_0x3d0586-0x145,_0x2e91aa-_0x22eace._0x3448d3,_0x3d18e7);}function _0x45100b(_0x40071d,_0x302e3d,_0x1e3ba2,_0x19157d){return _0x65d232(_0x19157d-_0x4cd8b4._0x1f7985,_0x1e3ba2,_0x1e3ba2-_0x4cd8b4._0x30a11a,_0x19157d-_0x4cd8b4._0x1ba574);}return this[_0x31e686(_0x354521._0x21b21f,_0x354521._0x3270bd,0x264,_0x354521._0x10c008)][_0x45100b(_0x354521._0x39b4b9,0x166,_0x354521._0x1de2c7,_0x354521._0x63b569)](_0x59f2aa);}async[_0x3c7c8d(0x24e,0x1ea,0x1da,0x1ed)](_0x454ab1){const _0x41ad00={_0x5c115f:0xf8},_0x27f47c={_0x44c761:0x242,_0x5a7347:0x13e};function _0x9c214a(_0x2ed27f,_0x51adb1,_0x28a9f4,_0x2659b9){return _0x3c7c8d(_0x28a9f4- -_0x27f47c._0x44c761,_0x51adb1-0x127,_0x28a9f4-_0x27f47c._0x5a7347,_0x2ed27f);}return await this[_0x9c214a(0x9c,0xad,_0x41ad00._0x5c115f,0x18b)]['toApiError'](_0x454ab1);}['getSurface'](_0xf46436){const _0x1a8a7b={_0x1d2b33:0x371,_0x49b0d2:0x3fd,_0x3f5fb5:0x450,_0x5e7d7c:0x3ad,_0x10cde9:0x2e5,_0x5138bd:0x2f0,_0x4f26c7:0x253,_0x5574cf:0x278,_0x459beb:0x290},_0x3ecedd={_0x1e9feb:0x363,_0x447cfe:0x19,_0x2ed526:0x9b},_0x41951a={_0x253dbb:0x217,_0x5636b4:0x113};function _0xdb923a(_0x1878c0,_0x1f09e2,_0x454e80,_0x5d8f85){return _0x65d232(_0x1f09e2-_0x41951a._0x253dbb,_0x454e80,_0x454e80-_0x41951a._0x5636b4,_0x5d8f85-0x17f);}function _0x38a833(_0x29b07e,_0x26c435,_0x24f727,_0x53fd03){return _0x65d232(_0x26c435-_0x3ecedd._0x1e9feb,_0x29b07e,_0x24f727-_0x3ecedd._0x447cfe,_0x53fd03-_0x3ecedd._0x2ed526);}const _0x527800=this[_0x38a833(_0x1a8a7b._0x1d2b33,0x39b,_0x1a8a7b._0x49b0d2,_0x1a8a7b._0x3f5fb5)][_0x38a833(_0x1a8a7b._0x5e7d7c,0x355,0x301,_0x1a8a7b._0x10cde9)](_0xf46436);if(!_0x527800)throw new Error(_0xdb923a(_0x1a8a7b._0x5138bd,_0x1a8a7b._0x4f26c7,_0x1a8a7b._0x5574cf,_0x1a8a7b._0x459beb)+_0xf46436);return _0x527800;}async[_0x65d232(0x8,-0x32,0x3a,0x90)](_0x5fa2b3,_0x356acf){const _0x4eca47={_0xc3f3d4:0x344,_0x29b680:0x2aa,_0x1f92f1:0x3d1,_0x443dd2:0x314,_0x4c79cc:0x2cc,_0x5bbfe0:0x2a0,_0x19588b:0x2c8,_0x56409c:0x4f5,_0x1f15a0:0x48d,_0x4f4786:0x3e7,_0xde1570:0x3b3,_0x2e4c3a:0x3f5,_0x4b84e5:0x327,_0x4b1cce:0x4a7,_0x2ef8cb:0x494,_0x5f0b3f:0x464,_0x6c5f9e:0x372,_0x3ed97b:0x2fe,_0x190899:0x276,_0x3a01ad:0x2d4},_0x3befca={_0x24e93f:0x1aa},_0x9b94db=toModelRequest(_0x5fa2b3),_0x8f3d76=await prepareProviderRequest(_0x9b94db,{'sessionManager':this[_0x372b6f(_0x4eca47._0xc3f3d4,_0x4eca47._0x29b680,0x271,0x296)],'requestMutators':this['requestMutators'],'signal':_0x356acf}),_0x4263b9=toChatRequest(_0x8f3d76[_0x1fa85b(_0x4eca47._0x1f92f1,0x41d,_0x4eca47._0x443dd2,0x33d)]),_0x3c1f2b=this['providerAdapter'][_0x372b6f(0x229,_0x4eca47._0x4c79cc,_0x4eca47._0x5bbfe0,_0x4eca47._0x19588b)](this[_0x1fa85b(0x476,0x4dc,_0x4eca47._0x56409c,_0x4eca47._0x1f15a0)],_0x8f3d76['session']);function _0x1fa85b(_0xca5458,_0x72a9e4,_0x139f05,_0x1fc3da){return _0x3c7c8d(_0xca5458-0x16d,_0x72a9e4-0x150,_0x139f05-0x1cd,_0x139f05);}if(!_0x3c1f2b)throw this[_0x1fa85b(_0x4eca47._0x4f4786,_0x4eca47._0xde1570,_0x4eca47._0x2e4c3a,_0x4eca47._0x4b84e5)]();function _0x372b6f(_0x4398fd,_0x4b832e,_0xce94e3,_0x209c31){return _0x3c7c8d(_0x4b832e- -0x34,_0x4b832e-0x115,_0xce94e3-_0x3befca._0x24e93f,_0x4398fd);}return{'baseUrl':this[_0x1fa85b(_0x4eca47._0x4b1cce,_0x4eca47._0x2ef8cb,0x3f6,_0x4eca47._0x5f0b3f)]['resolveBaseUrl'](this[_0x372b6f(_0x4eca47._0x6c5f9e,_0x4eca47._0x3ed97b,_0x4eca47._0x190899,_0x4eca47._0x3a01ad)],_0x8f3d76['session']),'credential':_0x3c1f2b,'request':_0x4263b9,'session':_0x8f3d76['session']};}[_0x65d232(0x12c,0x194,0x122,0x1b8)](_0x1b777){const _0x4d09ff={_0x30fb6e:0x379,_0xde9138:0x343},_0x2989ba={_0x5086a1:0x55},_0x20ca93={_0xb742ce:0x32d};function _0x480a25(_0xb76343,_0x536aa3,_0x198e90,_0x16ca15){return _0x65d232(_0x16ca15-_0x20ca93._0xb742ce,_0x536aa3,_0x198e90-0xb4,_0x16ca15-0x6d);}function _0x333882(_0x48e94d,_0x37eae3,_0x2b3e36,_0x28cb51){return _0x3c7c8d(_0x28cb51-0x86,_0x37eae3-_0x2989ba._0x5086a1,_0x2b3e36-0x12,_0x2b3e36);}return{...structuredClone(_0x1b777),..._0x1b777['reasoning']===void 0x0&&this[_0x480a25(0x421,0x415,0x35b,0x372)]!==void 0x0?{'reasoning':structuredClone(this[_0x333882(0x2c5,0x355,_0x4d09ff._0x30fb6e,_0x4d09ff._0xde9138)])}:{}};}async['sendHttpSurfaceRequest'](_0x1b23fb,_0x5a6511,_0x5578ed,_0x362565){const _0x56fb4d={_0x566bfe:0x187,_0x2a3785:0x18b,_0x25e760:0x1be,_0x4d8d40:0x27a,_0x1c8411:0x245,_0xeb3099:0x264,_0x5d4c55:0x264,_0x4aab34:0x23d},_0x43699d={_0x4e023c:0x1c3,_0x56d12c:0x52},_0x4a1c3e={_0x3144c6:0x2ca,_0x1e3ace:0x26},_0x57a369={_0x4aeff7:0x1fe,_0x2a7f10:0x5d,_0x429c02:0x8d,_0x43755c:0x223,_0x245f9d:0x43,_0x313f0f:0x1b8,_0x1bae56:0x1c9,_0x7cbd7c:0x275,_0x3137fa:0x1b,_0x4f8a48:0x1d,_0x166829:0xa5,_0x86e507:0xe1,_0x335646:0x1c2,_0x4690aa:0x211,_0x4c4eb2:0x11d,_0x157fef:0xc0,_0x299f75:0x21c,_0x40cafb:0x107,_0x519461:0xea,_0x7ffd84:0x169,_0x487665:0x64,_0x161304:0x115,_0x450e63:0x92,_0x44f701:0x16b,_0x454986:0xc4},_0x2306bc=async()=>{const _0x50bb99=await this[_0x34bb94(-0x293,-_0x57a369._0x4aeff7,-0x190,-0x179)](_0x1b23fb,_0x362565),_0x103533=_0x5a6511[_0x101873(-_0x57a369._0x2a7f10,-0x1b,-_0x57a369._0x429c02,-0x29)](_0x50bb99['request']);function _0x34bb94(_0x572068,_0x33c00d,_0x5c1942,_0x422a61){return _0x501c(_0x33c00d- -0x2f9,_0x572068);}function _0x101873(_0x165124,_0x31c75e,_0x247332,_0x2a99af){return _0x501c(_0x31c75e- -0xfc,_0x2a99af);}if(!_0x103533[_0x34bb94(-0x2cf,-_0x57a369._0x43755c,-0x283,-0x299)])throw new Error(_0x101873(0x12c,0xc2,0x125,_0x57a369._0x245f9d)+_0x5a6511['id']+_0x34bb94(-_0x57a369._0x313f0f,-0x206,-_0x57a369._0x1bae56,-_0x57a369._0x7cbd7c));const _0x285fad=await this['createHeaders']({'request':_0x50bb99[_0x101873(_0x57a369._0x3137fa,-_0x57a369._0x4f8a48,-0x80,-_0x57a369._0x166829)],'body':_0x103533[_0x101873(0x10a,0x92,_0x57a369._0x86e507,0xb5)],'credential':_0x50bb99[_0x34bb94(-_0x57a369._0x335646,-_0x57a369._0x4690aa,-0x1d2,-0x280)],'session':_0x50bb99['session'],'stream':_0x5578ed},{'accept':_0x103533['accept']??(_0x5578ed?_0x101873(0x17d,_0x57a369._0x4c4eb2,0x1ac,0xd0):_0x101873(0x14f,_0x57a369._0x157fef,0x37,0xba)),'includeContentType':_0x103533['body']!==void 0x0});for(const [_0x46fb1b,_0x1288d7]of Object[_0x34bb94(-0xd8,-0x15a,-_0x57a369._0x299f75,-0xfe)](_0x103533[_0x34bb94(-_0x57a369._0x40cafb,-0xcd,-0xb4,-_0x57a369._0x519461)]??{})){_0x285fad[_0x34bb94(-0x1a8,-_0x57a369._0x7ffd84,-0xc0,-0x1b2)](_0x46fb1b,_0x1288d7);}return this['fetchImpl'](''+_0x50bb99[_0x101873(0xa2,0xb1,_0x57a369._0x487665,0x39)]+_0x103533['path'],{'method':_0x34bb94(-0xea,-_0x57a369._0x161304,-0x16e,-0x7b),'headers':_0x285fad,..._0x103533[_0x101873(0xab,_0x57a369._0x450e63,0x81,0x45)]!==void 0x0?{'body':JSON['stringify'](_0x103533[_0x34bb94(-0x111,-_0x57a369._0x44f701,-_0x57a369._0x454986,-0xc9)])}:{},'signal':_0x362565});},_0x129c71=await _0x2306bc();function _0x85e171(_0x1f2826,_0x1c79e0,_0x5caf80,_0xdada4e){return _0x65d232(_0x5caf80- -_0x4a1c3e._0x3144c6,_0x1c79e0,_0x5caf80-0x1df,_0xdada4e-_0x4a1c3e._0x1e3ace);}if(_0x129c71[_0x85e171(-_0x56fb4d._0x566bfe,-_0x56fb4d._0x2a3785,-_0x56fb4d._0x25e760,-0x1e6)]!==0x191||!this[_0x85e171(-_0x56fb4d._0x4d8d40,-_0x56fb4d._0x1c8411,-_0x56fb4d._0xeb3099,-0x326)])return _0x129c71;function _0x5e1ae2(_0x2b6dbb,_0x11fa2d,_0x34b902,_0x217063){return _0x3c7c8d(_0x34b902- -0x100,_0x11fa2d-_0x43699d._0x4e023c,_0x34b902-_0x43699d._0x56d12c,_0x11fa2d);}return this[_0x85e171(-0x2e7,-0x27c,-_0x56fb4d._0x5d4c55,-0x202)][_0x85e171(-0x208,-_0x56fb4d._0x4aab34,-0x2c5,-0x20d)](),_0x2306bc();}async*[_0x3c7c8d(0x230,0x1c6,0x268,0x1de)](_0x431803,_0x59c165,_0x17f59a){const _0x14b594={_0x1ddb4d:0x1d5,_0x143d06:0x166,_0x258a43:0x14d,_0x447c17:0x1c8,_0x438843:0x63,_0x50d7c9:0x8b,_0x17615b:0x5,_0x39b4dc:0x9b,_0x4e6290:0xbc,_0x5904d3:0x23f,_0x29cc6a:0x1c9,_0x154da0:0x57},_0x4b350d={_0x54e8e6:0x1b1},_0x413c77={_0x263100:0xa1},_0x667e4=await this[_0xd003dd(-0x147,-_0x14b594._0x1ddb4d,-_0x14b594._0x143d06,-_0x14b594._0x258a43)](_0x431803,_0x59c165,!![],_0x17f59a);if(!_0x667e4['ok'])throw await this[_0xd003dd(-0x27a,-_0x14b594._0x447c17,-0x118,-0x1b6)](_0x667e4);const _0x3512d3=_0x59c165['createStreamParser']?.(_0x431803);if(!_0x3512d3?.[_0x333d4d(-_0x14b594._0x438843,_0x14b594._0x50d7c9,0x12,-_0x14b594._0x17615b)])throw new Error(_0xd003dd(-_0x14b594._0x39b4dc,-0xd3,-_0x14b594._0x4e6290,-0xe1)+_0x59c165['id']+'\x20cannot\x20parse\x20SSE\x20events');for await(const _0xa659dd of iterateSseEvents(_0x667e4,_0x17f59a)){yield*_0x3512d3['consumeSseEvent'](_0xa659dd);}function _0x333d4d(_0x3b2ddb,_0x59d467,_0xa34043,_0x2f763b){return _0x65d232(_0xa34043- -_0x413c77._0x263100,_0x3b2ddb,_0xa34043-0x148,_0x2f763b-0x10b);}function _0xd003dd(_0x22326e,_0x430896,_0x13a0b8,_0xbe6622){return _0x65d232(_0x430896- -0x19e,_0x13a0b8,_0x13a0b8-0x10e,_0xbe6622-_0x4b350d._0x54e8e6);}yield{'type':_0xd003dd(-0x20a,-0x19b,-_0x14b594._0x5904d3,-_0x14b594._0x29cc6a),'response':_0x3512d3[_0xd003dd(-0x134,-0x93,-0x88,-_0x14b594._0x154da0)]()};}async*[_0x3c7c8d(0x350,0x303,0x2cb,0x323)](_0x844b5a,_0x146683,_0x54626c){const _0x5aba69={_0x44c6fa:0x3bb,_0x3d0264:0x338,_0x109d38:0x3c1,_0x5ba442:0x321,_0x53fdbe:0x370,_0x4698cd:0x31f,_0x372b7a:0x12a,_0x1fceeb:0x127,_0x43bede:0x17e,_0x51e751:0x316,_0x4c5a25:0x3ae,_0xa2f800:0x2e5,_0x1c8fe8:0x3b9,_0x50bde7:0x214,_0x199494:0x16d,_0x19e992:0x23d,_0x812aa4:0x287,_0x2e4d16:0x210,_0x4b7c93:0x248,_0x5f1af8:0x27d,_0x177fb1:0x399,_0x51c596:0x36f,_0x45a5a1:0x270,_0x45f132:0x26b,_0x4ef1c1:0x183,_0x45f5b9:0x212,_0x2145bd:0x1bd,_0x36c7d2:0x236,_0x3e14fc:0x19e,_0x23a9a2:0x24f,_0x5b8c31:0x197,_0x5631f9:0xd6,_0x5ae27c:0x446,_0x563d54:0x394,_0x39d99b:0x3ea,_0x43e9bd:0x3f3,_0x4f6fd:0x21a,_0x52fb1c:0x2a0,_0x244a55:0x1e0,_0x51a7b5:0x41f,_0xfdb75d:0x3ba,_0x4e6a34:0x499,_0x306ada:0x4c5,_0x4686ac:0x475,_0x3d5d74:0x3e5,_0x19636e:0x138,_0xd5cbd9:0x152,_0x29b997:0x7a,_0x11b0e0:0x180,_0x1725f1:0x3f8,_0x4c932b:0x3ba,_0x5db440:0x396,_0x413349:0x365,_0x91f5b4:0x309,_0x2bd746:0x1cc,_0x281982:0x189,_0x1e143e:0x231},_0x20c535={_0x2982d8:0x333,_0x22a64e:0x55};function _0x46246a(_0x110ac9,_0x21ee77,_0x21afcb,_0x859fff){return _0x3c7c8d(_0x110ac9- -0x12f,_0x21ee77-0x37,_0x21afcb-0x1b8,_0x21ee77);}const _0x21ec18=await this[_0x1ad16b(0x33b,_0x5aba69._0x44c6fa,_0x5aba69._0x3d0264,_0x5aba69._0x109d38)](_0x844b5a,_0x54626c),_0x4d4c2a=_0x146683[_0x1ad16b(_0x5aba69._0x5ba442,0x30c,0x304,_0x5aba69._0x53fdbe)](_0x21ec18[_0x1ad16b(_0x5aba69._0x4698cd,0x27b,0x2b8,0x267)]),_0x24775f=_0x146683[_0x46246a(0x1ce,0x1da,0x220,0x21f)]?.(_0x844b5a);if(!_0x24775f?.['consumeWebSocketEvent'])throw new Error('Surface\x20'+_0x146683['id']+_0x46246a(_0x5aba69._0x372b7a,0x12f,_0x5aba69._0x1fceeb,0x14f));const _0x4366b8=_0x4d4c2a['url']??(_0x4d4c2a[_0x1ad16b(0x316,0x38d,0x26b,0x263)]?(''+_0x21ec18[_0x46246a(0x203,_0x5aba69._0x43bede,0x1d3,0x18b)]+_0x4d4c2a[_0x1ad16b(_0x5aba69._0x51e751,_0x5aba69._0x4c5a25,0x292,_0x5aba69._0xa2f800)])[_0x1ad16b(_0x5aba69._0x1c8fe8,0x3f0,0x2fd,0x3ad)](/^http:/,'ws:')['replace'](/^https:/,'wss:'):void 0x0);function _0x1ad16b(_0x502181,_0x2339d8,_0xd26a5f,_0x3182ec){return _0x65d232(_0x502181-_0x20c535._0x2982d8,_0x3182ec,_0xd26a5f-0x179,_0x3182ec-_0x20c535._0x22a64e);}if(!_0x4366b8)throw new Error(_0x46246a(_0x5aba69._0x50bde7,0x16a,_0x5aba69._0x199494,_0x5aba69._0x19e992)+_0x146683['id']+_0x46246a(0x1e9,0x216,0x2a8,_0x5aba69._0x812aa4));const _0x5cd2c4=await this[_0x46246a(_0x5aba69._0x2e4d16,0x163,0x24f,_0x5aba69._0x4b7c93)]({'request':_0x21ec18[_0x1ad16b(0x31f,0x3aa,_0x5aba69._0x5f1af8,_0x5aba69._0x177fb1)],'body':_0x4d4c2a[_0x1ad16b(0x404,0x44f,0x3c5,_0x5aba69._0x51c596)],'credential':_0x21ec18['credential'],'session':_0x21ec18[_0x1ad16b(0x2f1,_0x5aba69._0x45a5a1,_0x5aba69._0x45f132,0x301)],'stream':!![]},{'accept':_0x4d4c2a[_0x46246a(0x1d8,0x160,_0x5aba69._0x4ef1c1,0x1c8)]??_0x46246a(_0x5aba69._0x45f5b9,_0x5aba69._0x2145bd,_0x5aba69._0x36c7d2,_0x5aba69._0x3e14fc),'includeContentType':![]});for(const [_0x4b3a76,_0x202a17]of Object['entries'](_0x4d4c2a[_0x46246a(0x282,0x236,_0x5aba69._0x23a9a2,0x299)]??{})){_0x5cd2c4[_0x1ad16b(0x3d0,0x3ea,0x44d,0x413)](_0x4b3a76,_0x202a17);}_0x5cd2c4[_0x46246a(0x12b,_0x5aba69._0x5b8c31,_0x5aba69._0x5631f9,0xf3)]('accept');const _0x81ebc4=this[_0x1ad16b(0x39f,0x407,0x300,_0x5aba69._0x5ae27c)]({'headers':Object['fromEntries'](_0x5cd2c4[_0x1ad16b(0x3df,0x325,_0x5aba69._0x563d54,_0x5aba69._0x39d99b)]()),'url':_0x4366b8});try{throwIfAborted(_0x54626c);_0x81ebc4['readyState']!==WebSocket[_0x1ad16b(_0x5aba69._0x43e9bd,0x3ce,0x46e,0x3b1)]&&await waitForWebSocketOpen(_0x81ebc4,_0x54626c);throwIfAborted(_0x54626c);_0x4d4c2a[_0x46246a(_0x5aba69._0x4f6fd,_0x5aba69._0x52fb1c,_0x5aba69._0x244a55,0x170)]!==void 0x0&&_0x81ebc4[_0x1ad16b(0x380,0x403,_0x5aba69._0x51a7b5,_0x5aba69._0xfdb75d)](JSON['stringify'](_0x4d4c2a[_0x1ad16b(0x404,_0x5aba69._0x4e6a34,_0x5aba69._0x306ada,_0x5aba69._0x4686ac)]));for await(const _0x20d293 of iterateWebSocketMessages(_0x81ebc4,_0x54626c)){yield*_0x24775f['consumeWebSocketEvent'](_0x20d293);if(_0x24775f[_0x46246a(0x200,0x233,0x1a6,0x282)]?.())break;}yield{'type':'done','response':_0x24775f[_0x1ad16b(0x43e,_0x5aba69._0x3d5d74,0x3fe,0x4f8)]()};}finally{_0x81ebc4[_0x46246a(_0x5aba69._0x19636e,_0x5aba69._0xd5cbd9,_0x5aba69._0x29b997,_0x5aba69._0x11b0e0)]===WebSocket[_0x1ad16b(0x3f3,_0x5aba69._0x1725f1,_0x5aba69._0x4c932b,0x48f)]&&_0x81ebc4[_0x1ad16b(0x3a1,0x347,_0x5aba69._0x5db440,_0x5aba69._0x3d0264)](0x3e8,_0x54626c?.['aborted']?_0x1ad16b(0x3b2,_0x5aba69._0x413349,_0x5aba69._0x91f5b4,0x434):_0x46246a(0x22a,_0x5aba69._0x2bd746,_0x5aba69._0x281982,_0x5aba69._0x1e143e));}}};async function createHttpError(_0xe52ea){const _0x20c3ef={_0x2928da:0x231,_0x37cb91:0x24e,_0x36aea4:0x2e6,_0x445c33:0x317,_0x42733f:0x27f},_0x50986f={_0x1d2fe9:0x465,_0x2d8092:0xb0},_0x59f0b7={_0x4bdb78:0x105};function _0x1d7b9d(_0x8f85c3,_0x5c94a6,_0x596154,_0x488962){return _0x3c7c8d(_0x488962- -_0x59f0b7._0x4bdb78,_0x5c94a6-0x13b,_0x596154-0x1f1,_0x596154);}function _0x559175(_0x22c3e2,_0xaf34c7,_0x168ef2,_0x11927b){return _0x3c7c8d(_0x22c3e2- -_0x50986f._0x1d2fe9,_0xaf34c7-0x3f,_0x168ef2-_0x50986f._0x2d8092,_0xaf34c7);}const _0x236fc6=await _0xe52ea['text'](),_0x34d1be=_0x236fc6[_0x559175(-0x220,-_0x20c3ef._0x2928da,-0x1f2,-0x18e)]()||_0xe52ea[_0x1d7b9d(0x2d8,0x271,0x2ab,_0x20c3ef._0x37cb91)]||'Unknown\x20provider\x20error';return new Error('Provider\x20request\x20failed\x20with\x20status\x20'+_0xe52ea[_0x1d7b9d(0x2c7,_0x20c3ef._0x36aea4,_0x20c3ef._0x445c33,_0x20c3ef._0x42733f)]+':\x20'+_0x34d1be);}var AnthropicProviderAdapter=class{[_0x65d232(0xe2,0x116,0x155,0xe0)];[_0x65d232(-0x28,-0xd3,-0x68,-0x10)];[_0x65d232(0xc3,0x2,0x122,0x144)];constructor(_0x1a0e2d){const _0x5b453a={_0x4d825b:0x35f,_0x4e142c:0x2dc,_0x179914:0x2fe,_0xc668c2:0x349,_0x1be0a8:0x2e8,_0x345048:0x365,_0x59fa52:0x49d,_0x514aa6:0x473,_0x56394b:0x3fa,_0x5ad318:0x40f,_0x2bb927:0x337},_0x3c4f75={_0x35b131:0x7e,_0x4bac91:0x33},_0x499a43={_0x25d51b:0x162,_0x2c5912:0x103};function _0x2cf92b(_0x4915b6,_0x4348f5,_0x1c4c67,_0x54f264){return _0x3c7c8d(_0x4915b6-_0x499a43._0x25d51b,_0x4348f5-_0x499a43._0x2c5912,_0x1c4c67-0x1ce,_0x4348f5);}this[_0x40c67f(_0x5b453a._0x4d825b,0x367,_0x5b453a._0x4e142c,_0x5b453a._0x179914)]=_0x1a0e2d[_0x40c67f(_0x5b453a._0x4d825b,_0x5b453a._0xc668c2,_0x5b453a._0x1be0a8,_0x5b453a._0x345048)];function _0x40c67f(_0xdaba8a,_0x26820b,_0x267208,_0x5c71e0){return _0x65d232(_0xdaba8a-0x27d,_0x5c71e0,_0x267208-_0x3c4f75._0x35b131,_0x5c71e0-_0x3c4f75._0x4bac91);}this['headerResolver']=_0x1a0e2d['headerResolver'],this[_0x2cf92b(_0x5b453a._0x59fa52,_0x5b453a._0x514aa6,_0x5b453a._0x56394b,_0x5b453a._0x5ad318)]=_0x1a0e2d[_0x40c67f(0x340,_0x5b453a._0x2bb927,0x346,0x368)];}[_0x3c7c8d(0x27a,0x31b,0x230,0x32c)](){const _0x486748={_0x444a1b:0x11f,_0x840b29:0x137};function _0x5f34c1(_0x36ffe2,_0x4f7b61,_0x174f53,_0x150c97){return _0x65d232(_0x150c97-0x143,_0x174f53,_0x174f53-0x23,_0x150c97-0x6b);}return new Error(_0x5f34c1(_0x486748._0x444a1b,0x14c,_0x486748._0x840b29,0x1d8));}async['createHeaders'](_0x2a92f7,_0x5c191d){const _0x50d97c={_0x36cf29:0x1b0,_0xf59bff:0x27d,_0x34b485:0x20c,_0x1034cf:0x18b,_0x5a9bd7:0x164,_0x3102b3:0x22b,_0x1ef1a0:0x201,_0x504789:0x24a,_0x118f02:0x15a,_0x4318f4:0x375,_0xe4a5a1:0x382,_0x261435:0x227,_0x486085:0x2d1,_0x47bf78:0x344,_0x510dac:0x219,_0x59fcd4:0x1fb,_0x38cfba:0x14b,_0x1aa5bd:0x38f,_0x12d82c:0x3c1,_0x154c24:0x363,_0x5dcc9d:0x1ee,_0x2267c5:0x227,_0xd6f030:0x2df,_0x4ce75b:0x26f,_0x356799:0x339,_0x265ef9:0x2a8,_0x7e6cdb:0x31d,_0x422589:0x27a,_0x390a70:0x34a,_0x404726:0x3d6,_0x2098aa:0x2cf,_0x2af212:0x2b1,_0x1ee844:0x34c,_0x2c51f6:0x351,_0x22fe72:0x2f3,_0x51ccf5:0x22f,_0x5a3cfc:0x3d1,_0x235388:0x381,_0x44918e:0x22f,_0x35644e:0x2e7,_0x220003:0x2e8,_0x3e5a74:0x359,_0x29cbbd:0x2d5,_0x1efe73:0x2cb},_0x5abe4d={_0x56be2d:0x53c,_0x5077bc:0xa6},_0x4ac377={_0x5db9ed:0x2ad,_0x319375:0x1a5},_0x2b85bf=new Headers();_0x2b85bf[_0x1c7560(-0x1ca,-0x227,-_0x50d97c._0x36cf29,-0x26b)](_0x1c7560(-0x21f,-0x235,-_0x50d97c._0xf59bff,-_0x50d97c._0x34b485),_0x5c191d['accept']),_0x2b85bf['set'](_0x1c7560(-_0x50d97c._0x1034cf,-0x21e,-0x1fe,-_0x50d97c._0x5a9bd7),this[_0x1c7560(-_0x50d97c._0x3102b3,-_0x50d97c._0x1ef1a0,-_0x50d97c._0x504789,-_0x50d97c._0x118f02)]);_0x5c191d[_0x1c7560(-_0x50d97c._0x4318f4,-0x2c6,-0x368,-_0x50d97c._0xe4a5a1)]!==![]&&_0x2b85bf[_0x1c7560(-0x1d4,-_0x50d97c._0x261435,-0x177,-0x26a)](_0x1c7560(-0x31e,-_0x50d97c._0x486085,-_0x50d97c._0x47bf78,-0x26c),_0x1c7560(-_0x50d97c._0x510dac,-_0x50d97c._0x59fcd4,-_0x50d97c._0x38cfba,-0x251));function _0x370687(_0x28dc2c,_0x4d0f13,_0x20261b,_0x11ddcd){return _0x65d232(_0x4d0f13-_0x4ac377._0x5db9ed,_0x28dc2c,_0x20261b-_0x4ac377._0x319375,_0x11ddcd-0xe2);}function _0x1c7560(_0x4198a5,_0x2db726,_0x89f05c,_0xa68e0a){return _0x3c7c8d(_0x2db726- -_0x5abe4d._0x56be2d,_0x2db726-_0x5abe4d._0x5077bc,_0x89f05c-0x195,_0x89f05c);}this[_0x370687(0x3dc,_0x50d97c._0x1aa5bd,0x3b8,0x350)]===_0x370687(0x32a,_0x50d97c._0x12d82c,0x454,_0x50d97c._0x154c24)?_0x2b85bf[_0x1c7560(-_0x50d97c._0x5dcc9d,-_0x50d97c._0x2267c5,-_0x50d97c._0xd6f030,-0x299)](_0x370687(0x264,0x296,_0x50d97c._0x4ce75b,_0x50d97c._0x356799),_0x1c7560(-_0x50d97c._0x265ef9,-0x242,-0x2b7,-0x2a1)+_0x2a92f7[_0x1c7560(-_0x50d97c._0x7e6cdb,-0x2cf,-0x302,-_0x50d97c._0x422589)]['value']):_0x2b85bf[_0x370687(0x360,_0x50d97c._0x390a70,0x2fb,0x342)](_0x370687(0x409,_0x50d97c._0x404726,0x3f9,0x3c1),_0x2a92f7[_0x1c7560(-0x22f,-_0x50d97c._0x2098aa,-0x29f,-0x26c)][_0x370687(_0x50d97c._0x2af212,0x2bd,_0x50d97c._0x265ef9,_0x50d97c._0x1ee844)]);const _0x32c76e=await this[_0x1c7560(-_0x50d97c._0x2c51f6,-0x2ec,-_0x50d97c._0x22fe72,-_0x50d97c._0x51ccf5)]?.({'body':_0x2a92f7[_0x370687(_0x50d97c._0x5a3cfc,0x348,0x286,_0x50d97c._0x235388)],'credential':_0x2a92f7['credential'],'request':_0x2a92f7[_0x1c7560(-0x376,-0x2d8,-0x289,-_0x50d97c._0x44918e)],'session':_0x2a92f7['session'],'stream':_0x2a92f7[_0x370687(0x24e,_0x50d97c._0x35644e,0x315,_0x50d97c._0x220003)]});for(const [_0x8f6dbc,_0x1c3e3c]of Object[_0x370687(0x3fc,_0x50d97c._0x3e5a74,_0x50d97c._0x29cbbd,_0x50d97c._0x1efe73)](_0x32c76e??{})){_0x2b85bf['set'](_0x8f6dbc,_0x1c3e3c);}return _0x2b85bf;}[_0x3c7c8d(0x397,0x38c,0x3fa,0x3c7)](_0x235b05){return _0x235b05;}['resolveBaseUrl'](_0x5b3468,_0x7e65bc){return resolveSessionBaseUrl(_0x5b3468,_0x7e65bc);}[_0x65d232(0x88,0xc,0xe1,0xa0)](_0x259fd9,_0x629045){return resolveApiCredential(_0x259fd9,_0x629045);}async[_0x3c7c8d(0x24e,0x19c,0x2b4,0x220)](_0x21c10d){return await createHttpError(_0x21c10d);}},AnthropicModel=class extends RoutedModel{constructor(_0x183a7d={}){const _0x46c2d9={_0x3141bc:0x431,_0x2b7676:0x4df,_0x890744:0x45e,_0x1be721:0xbe,_0x302a20:0x45,_0x6d7739:0x34,_0x5f5361:0x16,_0x1b2fae:0x7f,_0x1b8080:0x193,_0x4f340b:0x427,_0x5ec8a4:0x513,_0x4113e1:0x2,_0x4f7b1a:0x34c,_0x31e232:0x496,_0x4953a7:0x54a,_0x495797:0x493,_0xbf35ac:0x45c,_0x2a54c3:0x484},_0x52e906={_0x2dd2ca:0xcf},_0x3de3eb={_0x32237d:0x128,_0x3a52cd:0x3d};function _0x4851f0(_0x28cfb8,_0x439e51,_0x153b03,_0x384719){return _0x3c7c8d(_0x153b03-_0x3de3eb._0x32237d,_0x439e51-_0x3de3eb._0x3a52cd,_0x153b03-0x70,_0x384719);}function _0xba9d4(_0x5af320,_0x55aedc,_0x56d543,_0x495319){return _0x3c7c8d(_0x495319- -0x40e,_0x55aedc-_0x52e906._0x2dd2ca,_0x56d543-0xb8,_0x5af320);}super({'apiKey':_0x183a7d[_0x4851f0(0x407,0x4a2,_0x46c2d9._0x3141bc,0x4b8)],'baseUrl':trimTrailingSlashes(_0x183a7d[_0x4851f0(_0x46c2d9._0x2b7676,0x4aa,0x45a,0x4f1)]??_0x4851f0(0x4bb,0x370,0x423,_0x46c2d9._0x890744)),'fetch':_0x183a7d[_0xba9d4(-_0x46c2d9._0x1be721,-_0x46c2d9._0x302a20,-_0x46c2d9._0x1be721,-0x8c)],'maxTokens':_0x183a7d[_0xba9d4(_0x46c2d9._0x6d7739,-0x10d,_0x46c2d9._0x5f5361,-_0x46c2d9._0x1b2fae)]??0x4000,'model':_0x183a7d[_0xba9d4(-0x2c,-0x11d,-_0x46c2d9._0x1b8080,-0xe4)]??'claude-sonnet-4-20250514','reasoning':_0x183a7d['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x183a7d[_0x4851f0(_0x46c2d9._0x4f340b,0x3ec,0x482,_0x46c2d9._0x5ec8a4)]??_0xba9d4(_0x46c2d9._0x4113e1,-0x8,-0xed,-0x6d),'headerResolver':_0x183a7d[_0x4851f0(_0x46c2d9._0x4f7b1a,0x2cc,0x378,0x401)],'protocolVersion':_0x183a7d['protocolVersion']??_0x4851f0(0x512,0x473,0x49b,_0x46c2d9._0x31e232)}),'providerSessionResolver':_0x183a7d[_0x4851f0(_0x46c2d9._0x4953a7,0x4cf,_0x46c2d9._0x495797,0x453)],'requestMutators':_0x183a7d[_0x4851f0(0x469,_0x46c2d9._0xbf35ac,0x4c2,_0x46c2d9._0x2a54c3)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x3c7c8d(0x277,0x1bd,0x338,0x335)](_0x492650,_0x215e48){return this['completeViaSurface'](_0x492650,ANTHROPIC_MESSAGES_SURFACE,_0x215e48);}[_0x65d232(0x3a,-0x5b,0xe6,-0x37)](_0x428d22,_0x5c0259){return this['streamViaSurface'](_0x428d22,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x5c0259);}},OPENAI_CHAT_COMPLETIONS_SURFACE='openai-chat-completions',OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x3c7c8d(0x389,0x2ea,0x42d,0x3bd),OPENAI_RESPONSES_SURFACE=_0x3c7c8d(0x2e3,0x245,0x22e,0x380),OPENAI_RESPONSES_STREAM_SURFACE=_0x3c7c8d(0x37b,0x378,0x370,0x406),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x3c7c8d(0x339,0x2d3,0x38d,0x296),OpenAiApiError=class extends Error{['status'];[_0x3c7c8d(0x313,0x2c3,0x367,0x33f)];constructor(_0x38e9d0,_0x590739,_0xe79d2e){const _0x4ea857={_0x21c887:0x508,_0xbf1fbf:0x38d,_0x199274:0x397,_0x47e3cc:0x3a1},_0x102ad3={_0x1e411b:0xd6},_0x156ee9={_0x338ee8:0x5c,_0x3c12c9:0x14a};super(_0xe79d2e);function _0x3c9fb3(_0x56593b,_0x4b1a4a,_0x5433c1,_0x5dd84f){return _0x3c7c8d(_0x5dd84f-0x8e,_0x4b1a4a-_0x156ee9._0x338ee8,_0x5433c1-_0x156ee9._0x3c12c9,_0x5433c1);}function _0x394354(_0x5a4f05,_0x130a23,_0x580da2,_0x567b08){return _0x3c7c8d(_0x5a4f05-0x221,_0x130a23-_0x102ad3._0x1e411b,_0x580da2-0x6b,_0x580da2);}this[_0x394354(0x4fd,_0x4ea857._0x21c887,0x555,0x582)]='OpenAiApiError',this[_0x3c9fb3(0x38d,0x3ec,0x466,0x412)]=_0x38e9d0,this[_0x3c9fb3(_0x4ea857._0xbf1fbf,_0x4ea857._0x199274,0x35f,_0x4ea857._0x47e3cc)]=_0x590739;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x3c7c8d(0x384,0x43f,0x392,0x2fa)];constructor(_0x113924,_0x2ecab7={}){const _0xc7eb32={_0x347560:0x16b,_0x4488b6:0xe6,_0x510eb4:0x156,_0xd3e79c:0x125,_0x5c2419:0x76,_0x4fe6da:0x11e,_0x596479:0x37,_0x1e475d:0x63,_0x196bd5:0x6b,_0x68a1cb:0x61},_0x581897={_0x3abeac:0xe1},_0x213b40={_0x45bc61:0x3bb,_0x1a08fc:0x42,_0x305ec9:0x37};super(_0x113924),this[_0x2bfc03(-_0xc7eb32._0x347560,-0x191,-_0xc7eb32._0x4488b6,-_0xc7eb32._0x510eb4)]=_0x2bfc03(-0xaf,-_0xc7eb32._0xd3e79c,-_0xc7eb32._0x5c2419,-0x56);function _0x1637d0(_0x4474be,_0x18f8ae,_0x172adc,_0x2bb856){return _0x3c7c8d(_0x18f8ae- -_0x213b40._0x45bc61,_0x18f8ae-_0x213b40._0x1a08fc,_0x172adc-_0x213b40._0x305ec9,_0x4474be);}function _0x2bfc03(_0x48ffc1,_0x252bb0,_0x3295f2,_0x44a800){return _0x3c7c8d(_0x48ffc1- -0x447,_0x252bb0-_0x581897._0x3abeac,_0x3295f2-0x141,_0x3295f2);}this['code']=_0x2ecab7[_0x2bfc03(-0x180,-0xf0,-0x1d1,-_0xc7eb32._0x4fe6da)],this[_0x1637d0(-0x1b,-_0xc7eb32._0x596479,-0x5a,-_0xc7eb32._0x1e475d)]=_0x2ecab7[_0x1637d0(_0xc7eb32._0x196bd5,-0x37,-0x90,-_0xc7eb32._0x68a1cb)];}};function stringifySystem(_0x34fa3d){const _0xff770c={_0x397440:0x212,_0x5a282f:0x244,_0x2c3a5a:0x2ab},_0x2c7af3={_0x1dcc86:0x230,_0x46cb21:0x12},_0x322b3e={_0x27f77c:0x3e1,_0x4ef60b:0x14a};function _0x5c9a98(_0x7c37f3,_0x134b42,_0x2b8dd3,_0x2ba749){return _0x65d232(_0x7c37f3-_0x322b3e._0x27f77c,_0x134b42,_0x2b8dd3-0x125,_0x2ba749-_0x322b3e._0x4ef60b);}function _0x1e694d(_0x54f4f1,_0x5c7a03,_0x5a7a05,_0x31dc93){return _0x65d232(_0x31dc93-_0x2c7af3._0x1dcc86,_0x5c7a03,_0x5a7a05-_0x2c7af3._0x46cb21,_0x31dc93-0x112);}return _0x34fa3d[_0x1e694d(0x2cc,_0xff770c._0x397440,_0xff770c._0x5a282f,_0xff770c._0x2c3a5a)](_0x295013=>_0x295013[_0x5c9a98(0x4ef,0x447,0x56b,0x47e)])[_0x5c9a98(0x4cd,0x4ba,0x4a9,0x46d)]('\x0a\x0a');}function createToolDefinitions(_0x10d8c7){const _0x55276e={_0xb7101:0x1b4,_0x25d623:0x185},_0xa24ab8={_0x3a6128:0x3b4,_0x30af26:0xb5,_0x44ffb7:0x57,_0x3fd353:0x58a,_0x3a5627:0x3ab,_0x2b1384:0x38e},_0x2fa036={_0x5434b8:0x7f},_0x17800b={_0x29690c:0xfa,_0x4183b5:0x6a};function _0x3663ff(_0x289ed6,_0x4b206f,_0x1ba2b0,_0x3b0fdb){return _0x3c7c8d(_0x3b0fdb- -0xc4,_0x4b206f-0x1b4,_0x1ba2b0-0x7b,_0x289ed6);}if(_0x10d8c7[_0x3663ff(0x211,0x1f6,0x316,0x299)]===0x0)return void 0x0;function _0x4221e5(_0x4fd407,_0x1b9404,_0xf86724,_0x3fa62c){return _0x3c7c8d(_0x1b9404-_0x17800b._0x29690c,_0x1b9404-0x9e,_0xf86724-_0x17800b._0x4183b5,_0x4fd407);}return _0x10d8c7[_0x3663ff(_0x55276e._0xb7101,0x28b,_0x55276e._0x25d623,0x22f)](_0x120395=>{const _0x833d1e={_0x2ab34e:0x9d,_0x57d167:0x1a1};function _0x4b81c2(_0x4a3cc6,_0x11779a,_0x1e559c,_0xdd4564){return _0x4221e5(_0x1e559c,_0x11779a-_0x833d1e._0x2ab34e,_0x1e559c-0x18e,_0xdd4564-_0x833d1e._0x57d167);}function _0x231f7a(_0x58f57c,_0x3c7ad1,_0x18c02a,_0x3d9306){return _0x3663ff(_0x18c02a,_0x3c7ad1-0x192,_0x18c02a-_0x2fa036._0x5434b8,_0x3d9306- -0x1c1);}return{'type':_0x4b81c2(_0xa24ab8._0x3a6128,0x44f,0x466,0x456),'function':{'name':_0x120395[_0x231f7a(-0x3a,_0xa24ab8._0x30af26,0xca,_0xa24ab8._0x44ffb7)],'description':_0x120395[_0x4b81c2(_0xa24ab8._0x3fd353,0x4df,0x562,0x567)],'parameters':_0x120395[_0x4b81c2(0x46a,0x3db,_0xa24ab8._0x3a5627,_0xa24ab8._0x2b1384)]}};});}function stringifyValue(_0x38899b){const _0xf0a178={_0x1e0227:0x6c,_0x456aeb:0x112,_0x52c083:0x3b,_0x5ed66e:0x41},_0x17c0df={_0x1548b2:0xa0};function _0x27ca44(_0x3b00b0,_0x102fe6,_0x53cf2c,_0x29d0d3){return _0x65d232(_0x3b00b0- -_0x17c0df._0x1548b2,_0x53cf2c,_0x53cf2c-0x64,_0x29d0d3-0x4);}return typeof _0x38899b==='string'?_0x38899b:JSON[_0x27ca44(-_0xf0a178._0x1e0227,-_0xf0a178._0x456aeb,-_0xf0a178._0x52c083,-_0xf0a178._0x5ed66e)](_0x38899b);}function parseToolInput2(_0x415ac3){const _0x10d3e2={_0x4c83eb:0x28,_0x181139:0x5e},_0x10d4d7={_0x25fa6d:0xb};function _0x31ca54(_0x377aa0,_0x49be9e,_0x31ff3e,_0x5059d2){return _0x65d232(_0x49be9e- -_0x10d4d7._0x25fa6d,_0x5059d2,_0x31ff3e-0x1c4,_0x5059d2-0x8c);}try{return JSON[_0x31ca54(-_0x10d3e2._0x4c83eb,0x55,_0x10d3e2._0x181139,0x6e)](_0x415ac3);}catch{return _0x415ac3;}}function isResponsesReasoningItem(_0x5db4b2){const _0xe4399d={_0x29ecc0:0x203,_0x209758:0x32e,_0x27479c:0x26f,_0x362661:0x205,_0xc4136b:0x2ba},_0x272a01={_0x188590:0x1fd,_0x264267:0xb7},_0x1b580f={_0xd3a2d8:0x3,_0x490ade:0x1c0};function _0x16e497(_0x31d904,_0x1bf250,_0x2baab2,_0xc490ef){return _0x3c7c8d(_0xc490ef- -_0x1b580f._0xd3a2d8,_0x1bf250-_0x1b580f._0x490ade,_0x2baab2-0x99,_0x2baab2);}function _0xfe851c(_0xb031ba,_0xbce773,_0x2e4c60,_0x29825a){return _0x3c7c8d(_0xbce773- -_0x272a01._0x188590,_0xbce773-_0x272a01._0x264267,_0x2e4c60-0xe1,_0x29825a);}return typeof _0x5db4b2===_0x16e497(_0xe4399d._0x29ecc0,_0xe4399d._0x209758,0x295,_0xe4399d._0x27479c)&&_0x5db4b2!==null&&'type'in _0x5db4b2&&_0x5db4b2['type']===_0x16e497(0x200,_0xe4399d._0x362661,0x227,_0xe4399d._0xc4136b);}function isResponsesMessageItem(_0x470541){const _0x5dd322={_0x5408dc:0x4e2,_0x569f94:0x46b,_0x539361:0x502},_0x2446d7={_0x286c66:0x471,_0x56736c:0x1d3};function _0x53ff74(_0xc742f5,_0x1119c0,_0x47932d,_0x15dc7f){return _0x65d232(_0x47932d-_0x2446d7._0x286c66,_0xc742f5,_0x47932d-0x1df,_0x15dc7f-_0x2446d7._0x56736c);}return typeof _0x470541===_0x53ff74(_0x5dd322._0x5408dc,0x4b5,_0x5dd322._0x569f94,_0x5dd322._0x539361)&&_0x470541!==null&&'type'in _0x470541&&_0x470541['type']==='message';}function isResponsesFunctionCallItem(_0x18e606){const _0x2791f3={_0x4ba5c4:0x44e,_0x40ea61:0x4d0,_0x43c2af:0x617,_0xc5432c:0x601,_0x473e64:0x5bb,_0x30198f:0x4e9,_0x3263ee:0x523,_0x579438:0x441},_0x3f9e34={_0x12d25c:0x1be},_0x123a50={_0x5e6705:0x262,_0x1ff564:0x3,_0xe665ae:0x180};function _0x71f435(_0x3b4c4e,_0x1cfd05,_0x150ff6,_0x1d98b0){return _0x3c7c8d(_0x1cfd05-_0x123a50._0x5e6705,_0x1cfd05-_0x123a50._0x1ff564,_0x150ff6-_0x123a50._0xe665ae,_0x3b4c4e);}function _0x31e726(_0xe987dd,_0x4be7ca,_0x1721c5,_0x3e439f){return _0x65d232(_0xe987dd-0x42e,_0x3e439f,_0x1721c5-_0x3f9e34._0x12d25c,_0x3e439f-0x133);}return typeof _0x18e606===_0x71f435(_0x2791f3._0x4ba5c4,0x4d4,0x56a,_0x2791f3._0x40ea61)&&_0x18e606!==null&&_0x71f435(_0x2791f3._0x43c2af,0x5c1,_0x2791f3._0xc5432c,_0x2791f3._0x473e64)in _0x18e606&&_0x18e606[_0x31e726(0x515,_0x2791f3._0x30198f,0x5d6,_0x2791f3._0x3263ee)]===_0x31e726(0x3f0,_0x2791f3._0x579438,0x44c,0x4a7);}function createContentBlocks(_0x25d236,_0x1c57a1){const _0x36e21b={_0x4df3fa:0x29c,_0x1fbfe0:0x2c6,_0x391ff8:0x279,_0x5adc2d:0x1ec,_0x2811d8:0x2f8,_0x1545ff:0x267,_0x4aab2f:0x2d3,_0x4891d8:0x23a,_0x4b9504:0x26f,_0x3e7bc2:0x20c,_0x22b731:0x2d0,_0x545f4c:0x48e,_0x517896:0x355,_0xb91b6a:0x50f,_0x2f1712:0x58b,_0x1a871b:0x523,_0xc8e2b4:0x4f9,_0x15b2dc:0x50b,_0x2eef75:0x3e3,_0x5327ff:0x46d,_0x4bef6d:0x15e,_0x49f2b5:0x10d,_0x2cb8e0:0x18b,_0x5d3aaa:0x13e},_0x280115={_0x5003b4:0x1c5,_0x39a084:0xcc},_0x289a98={_0x4d3502:0x42a,_0x37f2ee:0x10c},_0x1af423=[];_0x25d236[_0x347e89(0x346,0x2aa,_0x36e21b._0x4df3fa,_0x36e21b._0x1fbfe0)]>0x0&&_0x1af423[_0x347e89(0x29e,_0x36e21b._0x391ff8,_0x36e21b._0x5adc2d,_0x36e21b._0x2811d8)]({'type':_0x347e89(_0x36e21b._0x1545ff,_0x36e21b._0x4aab2f,_0x36e21b._0x4891d8,_0x36e21b._0x4b9504),'text':_0x25d236});for(const _0x5e1711 of _0x1c57a1){if(_0x5e1711['id']['trim']()[_0x347e89(0x244,0x2aa,_0x36e21b._0x3e7bc2,_0x36e21b._0x22b731)]===0x0||_0x5e1711['function'][_0x205e6e(_0x36e21b._0x545f4c,0x44f,0x3d0,0x4aa)][_0x205e6e(0x3f7,0x370,_0x36e21b._0x517896,0x462)]()[_0x205e6e(_0x36e21b._0xb91b6a,0x4de,0x507,_0x36e21b._0x2f1712)]===0x0)continue;_0x1af423['push']({'type':_0x205e6e(_0x36e21b._0x1a871b,0x4fb,_0x36e21b._0xc8e2b4,0x46d),'id':_0x5e1711['id'],'name':_0x5e1711['function'][_0x205e6e(_0x36e21b._0x545f4c,_0x36e21b._0x15b2dc,_0x36e21b._0x2eef75,_0x36e21b._0x5327ff)],'input':parseToolInput2(_0x5e1711[_0x347e89(0x1df,0x205,_0x36e21b._0x4bef6d,0x22a)][_0x347e89(_0x36e21b._0x49f2b5,0x1a3,_0x36e21b._0x2cb8e0,_0x36e21b._0x5d3aaa)])});}function _0x205e6e(_0x2bc29d,_0x3b42c5,_0x33c559,_0x50c554){return _0x65d232(_0x2bc29d-_0x289a98._0x4d3502,_0x3b42c5,_0x33c559-0x39,_0x50c554-_0x289a98._0x37f2ee);}function _0x347e89(_0x163608,_0x478930,_0x1b3fb1,_0x5756cf){return _0x65d232(_0x478930-_0x280115._0x5003b4,_0x5756cf,_0x1b3fb1-_0x280115._0x39a084,_0x5756cf-0x1a9);}return _0x1af423;}function createUsage(_0x29a4e7){const _0x263a80={_0x43292c:0x3d2,_0x28b3a3:0x41d,_0x3ebbc6:0x394,_0xada250:0x496,_0x53e5ad:0x53d,_0x2659ef:0x4ea,_0x4a7ac1:0x436,_0x228c24:0x555},_0x150023={_0x42973b:0x1f0,_0x145362:0xd7},_0x25b377={_0x167f69:0x14e,_0x241101:0x194};function _0x5f5230(_0x588031,_0x55877e,_0x5e500a,_0x2fdf1a){return _0x3c7c8d(_0x55877e-_0x25b377._0x167f69,_0x55877e-0x1c2,_0x5e500a-_0x25b377._0x241101,_0x588031);}function _0x113334(_0x1c87f1,_0x48f2db,_0x3207b2,_0x4b93d7){return _0x3c7c8d(_0x48f2db-_0x150023._0x42973b,_0x48f2db-0x68,_0x3207b2-_0x150023._0x145362,_0x3207b2);}return{'inputTokens':_0x29a4e7?.[_0x5f5230(_0x263a80._0x43292c,_0x263a80._0x28b3a3,_0x263a80._0x3ebbc6,0x4da)]??0x0,'outputTokens':_0x29a4e7?.[_0x113334(_0x263a80._0xada250,0x500,_0x263a80._0x53e5ad,0x528)]??0x0,..._0x29a4e7?.[_0x5f5230(_0x263a80._0x2659ef,0x4ea,_0x263a80._0x4a7ac1,_0x263a80._0x228c24)]?.[_0x5f5230(0x49e,0x443,0x455,0x495)]!==void 0x0?{'reasoningTokens':_0x29a4e7['completion_tokens_details']['reasoning_tokens']}:{}};}function resolveReasoningVisibility2(_0x355ad6){const _0x5cc091={_0x41512c:0xf7,_0x5246d9:0xc6,_0xfa60aa:0x48a,_0x57c728:0x4dd,_0x5b2a14:0x543},_0x3e9822={_0xdab0e7:0x177};function _0x568bff(_0x24451e,_0x3e7197,_0x2535c3,_0xe07986){return _0x65d232(_0x3e7197-0x4bc,_0xe07986,_0x2535c3-0xfe,_0xe07986-0x124);}function _0xcb86a3(_0x4c0004,_0x431075,_0x24b9d9,_0x7aa8ad){return _0x65d232(_0x24b9d9- -0x10b,_0x4c0004,_0x24b9d9-_0x3e9822._0xdab0e7,_0x7aa8ad-0xef);}return _0x355ad6[_0xcb86a3(-0x7b,-_0x5cc091._0x41512c,-_0x5cc091._0x5246d9,-0x7)]?.[_0x568bff(0x467,_0x5cc091._0xfa60aa,_0x5cc091._0x57c728,_0x5cc091._0x5b2a14)]??'user-visible';}function isUserVisibleReasoning(_0x5d0b45){const _0x427ae2={_0x1caf4f:0x182},_0x1e65a3={_0x7f4586:0x1b1,_0x5d94d7:0x195};function _0x4484a3(_0x828543,_0x47a3f8,_0x1cfad6,_0x21f67d){return _0x65d232(_0x21f67d-0x9f,_0x1cfad6,_0x1cfad6-_0x1e65a3._0x7f4586,_0x21f67d-_0x1e65a3._0x5d94d7);}return resolveOpenAiReasoningConfig(_0x5d0b45[_0x4484a3(0x8d,_0x427ae2._0x1caf4f,0xf2,0xe4)])!==void 0x0&&resolveReasoningVisibility2(_0x5d0b45)==='user-visible';}function createChatRequestBody(_0x21615e,_0x4020f9){const _0x55bd9d={_0x66af4e:0x86,_0x32ee0c:0x13b,_0x196e2f:0x51a,_0x46c1ec:0x501,_0x47339a:0x5a7,_0x5ecf3b:0x5b9,_0x1d0753:0x576,_0x40a6d7:0x495,_0x57bdcd:0x16f,_0x3aaf78:0xc6,_0x1c7b36:0xb5,_0xf64880:0x5bc,_0x4c5dcb:0x20,_0x63ae6a:0xc9,_0xaf7d80:0x93,_0x316336:0x112,_0x555443:0x5b,_0x35ec4a:0x2b,_0x109a1:0x19,_0x481212:0xb,_0x34ca05:0x48a,_0x218720:0x590,_0x543b65:0x458,_0x55bc2a:0x488,_0x333dc1:0x1a,_0x480565:0xec,_0x15fcb2:0x26,_0x518214:0x568,_0x45ec88:0xb4,_0xf9b730:0xd,_0xe76df4:0x5c4,_0x3922d2:0x5fb,_0x46143f:0x5d9,_0x1ee565:0x52c,_0x5eaec8:0x5bc,_0x17f30a:0xc3,_0x53082f:0x4e1,_0x139acd:0x476,_0x44b8c9:0x4d5,_0x28d63f:0x509},_0x162a6f={_0x14992e:0xb6},_0x18a340={_0x1f0e0e:0x25,_0x187892:0xba,_0x2c7b3b:0x66,_0x1321a5:0x19,_0x267ce6:0x23e,_0x50d531:0x2ff,_0x1a581e:0x2a9,_0x45cffb:0x55,_0xc5055f:0x2e6,_0x4c26ba:0x3b,_0x23e189:0x82,_0x2a4cb6:0x5c,_0x58690:0x42,_0x354d91:0x6a,_0x5a748c:0x10,_0x4fb213:0xf7,_0x2fae37:0x2e,_0x5bd765:0x2bb,_0x2ae6d0:0x2dd,_0x13700b:0x335,_0x445b06:0x23c,_0xf408e4:0x33f,_0x4d1ad0:0x10,_0x3db5df:0x2c},_0x3e078a={_0x27aee7:0xce,_0x3292be:0x17b},_0xe5e0=[];function _0x54b079(_0x51ac83,_0x46fe4a,_0xd4133b,_0x348dce){return _0x65d232(_0xd4133b- -0x59,_0x51ac83,_0xd4133b-0x1f1,_0x348dce-0x119);}const _0x1e0ec5=stringifySystem(_0x21615e[_0x54b079(-0x5d,-0xc6,-_0x55bd9d._0x66af4e,-_0x55bd9d._0x32ee0c)]);_0x1e0ec5[_0x16910f(_0x55bd9d._0x196e2f,0x53c,_0x55bd9d._0x46c1ec,_0x55bd9d._0x47339a)]>0x0&&_0xe5e0[_0x16910f(0x602,0x570,_0x55bd9d._0x5ecf3b,_0x55bd9d._0x1d0753)]({'role':_0x16910f(0x47e,0x452,0x40e,_0x55bd9d._0x40a6d7),'content':_0x1e0ec5});for(const _0x5416e7 of _0x21615e['messages']){const _0x125577=[],_0x308973=[],_0x1cee4c=()=>{const _0x2104d2={_0x4cb3a0:0x2a4,_0x149edd:0x117};if(_0x5416e7['role']===_0x444536(-0xc3,-_0x18a340._0x1f0e0e,-_0x18a340._0x187892,-0x118)){if(_0x125577[_0x444536(_0x18a340._0x2c7b3b,_0x18a340._0x1321a5,-0x42,-0xac)]===0x0&&_0x308973['length']===0x0)return;_0xe5e0[_0x3f1c5(_0x18a340._0x267ce6,0x248,_0x18a340._0x50d531,_0x18a340._0x1a581e)]({'role':_0x444536(-0x75,-0x53,-0xba,-_0x18a340._0x45cffb),'content':_0x125577[_0x3f1c5(_0x18a340._0xc5055f,0x2aa,0x330,0x2af)]>0x0?_0x125577[_0x444536(-0xf4,-0x12,-_0x18a340._0x4c26ba,_0x18a340._0x23e189)]('\x0a\x0a'):null,..._0x308973[_0x444536(-_0x18a340._0x2a4cb6,-0xc4,-_0x18a340._0x58690,0x12)]>0x0?{'tool_calls':_0x308973[_0x444536(_0x18a340._0x354d91,-0x96,_0x18a340._0x5a748c,0xb4)](0x0)}:{}}),_0x125577[_0x444536(-_0x18a340._0x4fb213,-_0x18a340._0x2fae37,-0x42,-0x4f)]=0x0;return;}function _0x3f1c5(_0x1ae67d,_0x5d8c0d,_0x1bacf0,_0x2e5e6a){return _0x54b079(_0x5d8c0d,_0x5d8c0d-0x107,_0x1bacf0-_0x2104d2._0x4cb3a0,_0x2e5e6a-_0x2104d2._0x149edd);}function _0x444536(_0x2b596e,_0x4f8403,_0x75b95,_0x150fc2){return _0x54b079(_0x4f8403,_0x4f8403-0x14e,_0x75b95- -_0x3e078a._0x27aee7,_0x150fc2-_0x3e078a._0x3292be);}if(_0x125577[_0x444536(-0x40,-0xc6,-0x42,0x76)]===0x0)return;_0xe5e0[_0x3f1c5(_0x18a340._0x5bd765,0x33e,_0x18a340._0x50d531,_0x18a340._0x2ae6d0)]({'role':_0x5416e7[_0x3f1c5(_0x18a340._0x13700b,_0x18a340._0x445b06,0x28a,_0x18a340._0xf408e4)],'content':_0x125577[_0x444536(-_0x18a340._0x4d1ad0,-0x58,-0x3b,_0x18a340._0x3db5df)]('\x0a\x0a')}),_0x125577['length']=0x0;};for(const _0x17e93e of normalizeContent(_0x5416e7['content'])){if(_0x17e93e['type']==='text'){_0x125577['push'](_0x17e93e[_0x54b079(_0x55bd9d._0x57bdcd,_0x55bd9d._0x3aaf78,_0x55bd9d._0x1c7b36,0xb3)]);continue;}if(_0x17e93e[_0x16910f(0x5a1,0x62c,_0x55bd9d._0xf64880,0x5a9)]===_0x54b079(0xfb,-_0x55bd9d._0x4c5dcb,0xa0,_0x55bd9d._0x63ae6a)){_0x308973[_0x54b079(_0x55bd9d._0xaf7d80,_0x55bd9d._0x316336,_0x55bd9d._0x555443,-_0x55bd9d._0x35ec4a)]({'id':_0x17e93e['id'],'type':_0x54b079(0xa8,-0xa,-_0x55bd9d._0x109a1,-0xd5),'function':{'name':_0x17e93e[_0x54b079(-0x9d,-0xb6,_0x55bd9d._0x481212,0x45)],'arguments':JSON[_0x16910f(0x58f,_0x55bd9d._0x34ca05,_0x55bd9d._0x218720,0x4f6)](_0x17e93e[_0x16910f(0x3e3,_0x55bd9d._0x543b65,0x52e,_0x55bd9d._0x55bc2a)]??{})}});continue;}if(_0x17e93e[_0x54b079(-_0x55bd9d._0x333dc1,0x136,0x8e,_0x55bd9d._0x480565)]!=='tool_result')continue;_0x1cee4c(),_0xe5e0['push']({'role':_0x54b079(_0x55bd9d._0x15fcb2,-0xbb,-0x4d,-0x108),'content':stringifyValue(_0x17e93e['content']),'tool_call_id':_0x17e93e['tool_use_id']});}_0x1cee4c();}const _0x551be7=resolveOpenAiReasoningConfig(_0x21615e[_0x16910f(0x4cd,_0x55bd9d._0x518214,0x481,0x507)]);function _0x16910f(_0x297cb3,_0x2c090a,_0x173b4b,_0x271532){return _0x65d232(_0x271532-0x4c2,_0x297cb3,_0x173b4b-0x7c,_0x271532-_0x162a6f._0x14992e);}return{'model':_0x21615e[_0x54b079(_0x55bd9d._0x45ec88,-0x48,0x59,-_0x55bd9d._0xf9b730)],'messages':_0xe5e0,'stream':_0x4020f9,..._0x551be7?{'max_completion_tokens':_0x21615e['maxTokens']}:{'max_tokens':_0x21615e[_0x16910f(_0x55bd9d._0xe76df4,0x60f,_0x55bd9d._0x3922d2,_0x55bd9d._0x46143f)]},..._0x551be7?.[_0x16910f(0x62d,_0x55bd9d._0x1ee565,0x637,_0x55bd9d._0x5eaec8)]?{'reasoning_effort':_0x551be7[_0x54b079(0x14f,_0x55bd9d._0x17f30a,0xa1,0xd6)]}:{},...createToolDefinitions(_0x21615e[_0x16910f(_0x55bd9d._0x53082f,_0x55bd9d._0x139acd,_0x55bd9d._0x44b8c9,_0x55bd9d._0x28d63f)])?{'tools':createToolDefinitions(_0x21615e['tools'])}:{}};}function createResponsesRequestBody(_0x48ca1c,_0x27583a){return{...toOpenAiResponsesRequest(_0x48ca1c),..._0x27583a?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x3f703e,_0x32e49f={}){const _0x5095a1={_0x20c55d:0x290,_0x47dc53:0x384,_0x256abb:0x2e9,_0x24f236:0x2e5,_0x2b4a5d:0x313},_0x31314a={_0x39da78:0x544,_0x1f48cb:0xf1};function _0x1837fd(_0x570691,_0x360624,_0x592ed5,_0x3ea1f0){return _0x65d232(_0x592ed5- -0x256,_0x3ea1f0,_0x592ed5-0xdf,_0x3ea1f0-0xd6);}function _0x4a540d(_0xfc1859,_0x1ce3ec,_0x2adcaa,_0x28a044){return _0x3c7c8d(_0x1ce3ec- -_0x31314a._0x39da78,_0x1ce3ec-0x52,_0x2adcaa-_0x31314a._0x1f48cb,_0x2adcaa);}const _0x3ec250=toOpenAiResponsesRequest(_0x3f703e);return{'type':'response.create',..._0x3ec250,..._0x32e49f[_0x1837fd(-0x34b,-0x1ea,-_0x5095a1._0x20c55d,-0x1fd)]?{'input':_0x32e49f[_0x4a540d(-_0x5095a1._0x47dc53,-0x306,-_0x5095a1._0x256abb,-0x285)]}:{},..._0x32e49f['previousResponseId']?{'previous_response_id':_0x32e49f[_0x4a540d(-_0x5095a1._0x24f236,-_0x5095a1._0x2b4a5d,-0x2a9,-0x28c)]}:{},'store':![]};}function normalizeAssistantContent(_0x1e914d){const _0x476b77={_0x1cd696:0x20a,_0x5c97a5:0x288,_0x217672:0x25f,_0x26aa37:0x2b4,_0x5db24a:0x252,_0x45abdb:0x332,_0x3ec77d:0x2df,_0xa7c31f:0x47},_0x4d10b4={_0x5dc7ca:0x1e8,_0x33479d:0x24b,_0x4b27f4:0x22e,_0x4896e7:0x11d,_0x3d69a9:0x19b,_0x4380f8:0x1c5},_0x4db66c={_0x6d01b1:0x141},_0x128eea={_0x34f272:0x176};function _0x16e3ec(_0x126c24,_0x4b4c91,_0x41c49b,_0x480f44){return _0x65d232(_0x41c49b- -0x73,_0x126c24,_0x41c49b-_0x128eea._0x34f272,_0x480f44-0x1a7);}if(typeof _0x1e914d===_0x49cea6(_0x476b77._0x1cd696,_0x476b77._0x5c97a5,_0x476b77._0x217672,0x1e9))return _0x1e914d;if(!Array[_0x49cea6(_0x476b77._0x26aa37,0x1eb,_0x476b77._0x5db24a,0x2d0)](_0x1e914d))return'';function _0x49cea6(_0x18ee28,_0x56284b,_0x597a5e,_0x15c095){return _0x3c7c8d(_0x597a5e- -0x22,_0x56284b-_0x4db66c._0x6d01b1,_0x597a5e-0xef,_0x15c095);}return _0x1e914d[_0x49cea6(_0x476b77._0x45abdb,_0x476b77._0x3ec77d,0x2d1,0x251)](_0x588157=>{const _0x184fa7={_0x45c995:0xd7},_0x1109c1={_0x534e97:0x1b6,_0x3b9b2f:0x136};function _0x259cea(_0x370305,_0x49a40a,_0x2065c9,_0x8cb5c9){return _0x49cea6(_0x370305-_0x1109c1._0x534e97,_0x49a40a-0xdd,_0x8cb5c9- -_0x1109c1._0x3b9b2f,_0x2065c9);}function _0x27d6ae(_0x43450b,_0x396bc5,_0x13ec94,_0x300c1d){return _0x49cea6(_0x43450b-_0x184fa7._0x45c995,_0x396bc5-0x140,_0x43450b- -0x481,_0x300c1d);}return _0x588157['type']===_0x259cea(0x209,_0x4d10b4._0x5dc7ca,_0x4d10b4._0x33479d,_0x4d10b4._0x4b27f4)?_0x588157[_0x27d6ae(-_0x4d10b4._0x4896e7,-0xc0,-_0x4d10b4._0x3d69a9,-_0x4d10b4._0x4380f8)]:_0x588157[_0x27d6ae(-0x134,-0xe5,-0x172,-0x180)];})[_0x16e3ec(0x2a,0xf6,0x79,_0x476b77._0xa7c31f)]('');}function normalizeResponsesMessageContent(_0x1e157a){const _0x56bc06={_0x55c270:0x3c,_0x5c1587:0x94,_0xdf1713:0x1b3,_0x4268dc:0x126,_0x565c0f:0x155,_0x4c1d9c:0x184,_0x54769b:0x1b6},_0x5a381b={_0x36f124:0x199,_0x1d6dd1:0x140,_0x3a0419:0x35,_0x18bdba:0x1b,_0x478865:0x78,_0x5894d3:0xee,_0x2f7a1d:0x17d,_0x112205:0x223,_0x2aaedd:0x254,_0x4b4052:0x263,_0x580b1a:0x298,_0x544b8f:0xf5,_0x38a398:0x33,_0xe94460:0x238,_0x1539a1:0x2ec,_0x4015ba:0x6f,_0x53401a:0x8f,_0xfdebf6:0x60},_0x2d2b9f={_0x44c41c:0xae},_0x442606={_0x477efd:0x1c},_0x4bbd09={_0x1972f2:0x1e0};function _0x5948af(_0x2cfb3a,_0x4f036e,_0x4d4689,_0x49ee7d){return _0x3c7c8d(_0x4d4689- -_0x4bbd09._0x1972f2,_0x4f036e-0x99,_0x4d4689-0x8a,_0x49ee7d);}function _0x24fbb5(_0x243acc,_0x21f84d,_0x11477d,_0x2c3f1e){return _0x3c7c8d(_0x11477d-0x1ef,_0x21f84d-0xc6,_0x11477d-_0x442606._0x477efd,_0x2c3f1e);}if(!Array[_0x5948af(0xed,_0x56bc06._0x55c270,_0x56bc06._0x5c1587,0x56)](_0x1e157a))return'';return _0x1e157a[_0x5948af(0x106,0x12e,0x113,_0x56bc06._0xdf1713)](_0x1f9f1e=>{if(!_0x1f9f1e||typeof _0x1f9f1e!==_0x1c51d3(_0x5a381b._0x36f124,_0x5a381b._0x1d6dd1,0xc7,0x1da))return'';const _0x7f760a=_0x1f9f1e;if(_0x7f760a[_0x1f1145(-0x6a,-_0x5a381b._0x3a0419,-0x9f,-_0x5a381b._0x18bdba)]==='output_text'&&typeof _0x7f760a[_0x1f1145(-0x60,0x9,-_0x5a381b._0x478865,-_0x5a381b._0x478865)]===_0x1f1145(-0x239,-_0x5a381b._0x5894d3,-_0x5a381b._0x2f7a1d,-0x1e0))return _0x7f760a[_0x1c51d3(_0x5a381b._0x112205,_0x5a381b._0x2aaedd,_0x5a381b._0x4b4052,_0x5a381b._0x580b1a)];function _0x1f1145(_0x316d91,_0x1b8fe9,_0x46459b,_0x9a2119){return _0x5948af(_0x316d91-0x98,_0x1b8fe9-0x2b,_0x46459b- -0x21e,_0x316d91);}if(_0x7f760a[_0x1f1145(-_0x5a381b._0x544b8f,-0xec,-0x9f,-_0x5a381b._0x38a398)]===_0x1c51d3(_0x5a381b._0xe94460,0x23d,_0x5a381b._0x1539a1,0x2af)&&typeof _0x7f760a[_0x1f1145(-_0x5a381b._0x4015ba,-0x9f,-_0x5a381b._0x53401a,-_0x5a381b._0xfdebf6)]==='string')return _0x7f760a['refusal'];function _0x1c51d3(_0x543d6b,_0x19f651,_0x2b1ab9,_0x5a88a3){return _0x5948af(_0x543d6b-0xfc,_0x19f651-0x1e3,_0x19f651-_0x2d2b9f._0x44c41c,_0x5a88a3);}return'';})[_0x5948af(_0x56bc06._0x4268dc,_0x56bc06._0x565c0f,_0x56bc06._0x4c1d9c,_0x56bc06._0x54769b)]('');}function extractOpenAiReasoningText(_0x3ab915){const _0x117bb2={_0x11ede2:0x81,_0x1d8bce:0x1,_0x21ff92:0xda,_0x5ea668:0x247,_0x4a51e6:0x368,_0x3c2b9e:0x2bd,_0x282df4:0x225,_0x1dde30:0x2ca,_0x1ca7a4:0x37f,_0x698bad:0x33a,_0x579596:0x180,_0x9fece5:0xd7,_0x38e3af:0x33c,_0x204b54:0x333,_0x56fcab:0x28c,_0x5919a5:0xa3,_0x259268:0x134},_0x4bd804={_0x317b78:0x10f};if(typeof _0x3ab915[_0x19c750(-_0x117bb2._0x11ede2,_0x117bb2._0x1d8bce,-_0x117bb2._0x21ff92,-0x118)]===_0x381c54(0x2ca,0x38a,0x2d5,_0x117bb2._0x5ea668))return _0x3ab915[_0x381c54(0x3cf,0x3f1,_0x117bb2._0x4a51e6,0x37a)];function _0x381c54(_0x5cbc8c,_0x3ba7ed,_0x2a124a,_0x165cff){return _0x65d232(_0x5cbc8c-0x2c1,_0x2a124a,_0x2a124a-0x99,_0x165cff-0xc1);}if(!Array[_0x381c54(_0x117bb2._0x3c2b9e,0x356,_0x117bb2._0x282df4,_0x117bb2._0x1dde30)](_0x3ab915[_0x381c54(_0x117bb2._0x1ca7a4,_0x117bb2._0x698bad,0x3d6,0x3de)]))return'';function _0x19c750(_0x2abdbe,_0x412315,_0x24a44c,_0x48a7a0){return _0x65d232(_0x2abdbe- -0x18f,_0x412315,_0x24a44c-_0x4bd804._0x317b78,_0x48a7a0-0x26);}return _0x3ab915['content'][_0x19c750(-_0x117bb2._0x579596,-0xc9,-0x10c,-_0x117bb2._0x9fece5)](_0x3280b6=>_0x3280b6[_0x19c750(-0xa8,-0x6a,-0x85,-0x149)]===_0x381c54(0x3f1,0x438,0x383,0x462)&&typeof _0x3280b6['text']===_0x19c750(-0x186,-0x22a,-0x21f,-0x1fa))[_0x381c54(_0x117bb2._0x38e3af,0x307,_0x117bb2._0x204b54,_0x117bb2._0x56fcab)](_0x151a0a=>_0x151a0a[_0x381c54(0x3cf,0x3b1,0x41e,0x340)]??'')[_0x19c750(-_0x117bb2._0x5919a5,-0xe3,-_0x117bb2._0x259268,0x1b)]('');}function createOpenAiReasoningBlock(_0x50e7bf){const _0x1d024f={_0x44e4fb:0x296,_0x405fb5:0x21c,_0x37d39c:0x1a2,_0x463f5b:0x2c2,_0x54d5f6:0x10d,_0x490c23:0x10b},_0x33d47e={_0x103a54:0x26,_0x35b3bd:0x27},_0x4aeb7e={_0x453cb6:0x16e,_0x3b3590:0xd8},_0x1b339a=extractOpenAiReasoningText(_0x50e7bf);function _0x5358bf(_0x3b4ab6,_0x4f758f,_0x26b631,_0x1512bb){return _0x3c7c8d(_0x4f758f- -0x55a,_0x4f758f-_0x4aeb7e._0x453cb6,_0x26b631-_0x4aeb7e._0x3b3590,_0x3b4ab6);}function _0x5bc9ce(_0x410580,_0x4cb179,_0x4d3dd6,_0x262308){return _0x65d232(_0x4d3dd6-_0x33d47e._0x103a54,_0x262308,_0x4d3dd6-0xdb,_0x262308-_0x33d47e._0x35b3bd);}return{'type':'openai_reasoning','summary':structuredClone(_0x50e7bf['summary']??[]),..._0x50e7bf['id']?{'id':_0x50e7bf['id']}:{},..._0x50e7bf[_0x5358bf(-_0x1d024f._0x44e4fb,-_0x1d024f._0x405fb5,-0x211,-0x2d2)]?{'encryptedContent':_0x50e7bf[_0x5358bf(-_0x1d024f._0x37d39c,-_0x1d024f._0x405fb5,-0x1b3,-_0x1d024f._0x463f5b)]}:{},..._0x1b339a[_0x5bc9ce(0xb8,_0x1d024f._0x54d5f6,_0x1d024f._0x490c23,0x87)]>0x0?{'text':_0x1b339a}:{}};}function _0x3c7c8d(_0x540556,_0x3ecfe5,_0xd00d65,_0xe770f3){return _0x501c(_0x540556-0x185,_0xe770f3);}function hasVisibleOpenAiReasoning(_0x1ee875){const _0x277a46={_0x1e4bbb:0x35c,_0x34f4b6:0x33f,_0x541335:0x312,_0x5d0909:0x468,_0x50e310:0xeb,_0x173a11:0x174,_0x200dd5:0x234},_0x109657={_0x268c3f:0x18c,_0x3a5fcb:0x16b},_0x24bba2={_0x5cca2c:0x178,_0x491ea8:0x68};function _0x46b7c2(_0x5ef805,_0x37da90,_0x12f4b2,_0x27c0bc){return _0x65d232(_0x12f4b2- -0x282,_0x5ef805,_0x12f4b2-_0x24bba2._0x5cca2c,_0x27c0bc-_0x24bba2._0x491ea8);}function _0x305c70(_0x183e8e,_0x4834a9,_0x43e349,_0x17c947){return _0x3c7c8d(_0x43e349-0x138,_0x4834a9-_0x109657._0x268c3f,_0x43e349-_0x109657._0x3a5fcb,_0x4834a9);}return _0x1ee875[_0x305c70(_0x277a46._0x1e4bbb,_0x277a46._0x34f4b6,0x3a6,_0x277a46._0x541335)][_0x305c70(_0x277a46._0x5d0909,0x498,0x495,0x3dd)]>0x0||typeof _0x1ee875[_0x46b7c2(-0x191,-_0x277a46._0x50e310,-_0x277a46._0x173a11,-_0x277a46._0x200dd5)]==='string';}function parseChatCompletionResponse(_0x37d1c5){const _0xab9b90={_0x1ecd38:0x1a0,_0x4fdcff:0x1bf,_0x5453b4:0x245,_0x38a221:0x15d,_0x5959b1:0x21d,_0x13b896:0x21e,_0x19fad8:0x26c,_0x579c0a:0x1eb,_0x58aae2:0x106,_0x3a5934:0x110,_0x11a77d:0x195,_0x120d4d:0x1a8,_0x5ec72e:0x2bc,_0x2ef9f8:0x238,_0x8189a9:0x254,_0x148a8a:0x140,_0x43dfc1:0x11e,_0x242f9c:0x1d2,_0x24ef09:0x1ff,_0x1c7412:0x189,_0x333540:0x157,_0x1d373a:0x88,_0x598446:0xce,_0x56dfb9:0x19e,_0x2278f9:0x120,_0x5cf429:0x10c,_0x3232b5:0x256,_0x23f42c:0x2bd,_0xaf07af:0x215,_0x17959c:0x1fc,_0x223169:0x2ec,_0x1ddcd5:0x25c},_0x565f5a={_0x2e57aa:0x1ae,_0x42cd83:0x2f},_0x59dfc0=[],_0x47789c=[];let _0x5baf3d=_0x46dc3c(-_0xab9b90._0x1ecd38,-_0xab9b90._0x4fdcff,-0x242,-0x105);function _0x5ef377(_0x32ba2d,_0x1122bd,_0x5d7029,_0x23afcb){return _0x65d232(_0x23afcb-_0x565f5a._0x2e57aa,_0x5d7029,_0x5d7029-_0x565f5a._0x42cd83,_0x23afcb-0x1a7);}function _0x46dc3c(_0x23c633,_0x520142,_0x1bfbf6,_0x509ec3){return _0x3c7c8d(_0x520142- -0x47d,_0x520142-0x1c6,_0x1bfbf6-0x1f,_0x509ec3);}for(const _0x53e20c of _0x37d1c5[_0x46dc3c(-0x1be,-0x1ab,-_0xab9b90._0x5453b4,-_0xab9b90._0x38a221)]??[]){const _0xdbbc68=_0x53e20c['message'],_0x55af31=normalizeAssistantContent(_0xdbbc68?.[_0x5ef377(_0xab9b90._0x5959b1,0x26b,_0xab9b90._0x13b896,_0xab9b90._0x19fad8)]);_0x55af31['length']>0x0&&_0x59dfc0[_0x46dc3c(-0x14d,-0x151,-_0xab9b90._0x579c0a,-_0xab9b90._0x58aae2)](_0x55af31),_0xdbbc68?.[_0x5ef377(_0xab9b90._0x3a5934,0x129,0x14e,_0xab9b90._0x11a77d)]&&_0x47789c[_0x5ef377(0x1b5,_0xab9b90._0x120d4d,_0xab9b90._0x5ec72e,0x262)](..._0xdbbc68[_0x46dc3c(-0x206,-_0xab9b90._0x13b896,-_0xab9b90._0x2ef9f8,-_0xab9b90._0x8189a9)]),_0x53e20c[_0x5ef377(_0xab9b90._0x148a8a,0x18c,_0xab9b90._0x43dfc1,_0xab9b90._0x242f9c)]===_0x5ef377(_0xab9b90._0x24ef09,0x22b,_0xab9b90._0x1c7412,0x195)&&(_0x5baf3d=_0x46dc3c(-_0xab9b90._0x333540,-0x10c,-_0xab9b90._0x1d373a,-_0xab9b90._0x598446));}return _0x47789c[_0x46dc3c(-_0xab9b90._0x56dfb9,-_0xab9b90._0x2278f9,-0x148,-0x1c2)]>0x0&&(_0x5baf3d=_0x46dc3c(-0x1b3,-_0xab9b90._0x5cf429,-0xa5,-0x119)),{'id':_0x37d1c5['id']??_0x46dc3c(-_0xab9b90._0x3232b5,-0x23d,-_0xab9b90._0x23f42c,-0x18b)+Date[_0x5ef377(0x2ad,_0xab9b90._0xaf07af,0x18b,_0xab9b90._0x17959c)](),'content':createContentBlocks(_0x59dfc0[_0x46dc3c(-0x101,-0x119,-0x94,-0xb0)](''),_0x47789c),'stopReason':_0x5baf3d,'usage':createUsage(_0x37d1c5[_0x5ef377(_0xab9b90._0x223169,0x234,0x304,_0xab9b90._0x1ddcd5)])};}function parseResponsesResponse(_0x840b9e,_0x434cb7){const _0x2357d5={_0x55cfd0:0x14,_0x54a9eb:0x83,_0x5ae7e8:0x19b,_0xcccfd7:0xcd,_0x3783ad:0x20f,_0xebc08a:0x157,_0x5ea41c:0x14a,_0xddaafd:0xbc,_0x53e9f9:0x1b1,_0x424f81:0x26b,_0x14adfe:0x1a0,_0x20fed0:0x199,_0x5657a5:0x1e3,_0x42845e:0x179,_0x2f91c0:0x197,_0x4a2efa:0x59,_0x2d95ce:0x9d,_0x39e1e4:0xaf,_0x5d417a:0x188,_0x275130:0x229,_0xf2c9ea:0x10f,_0x2bcfaf:0x1ec,_0x3600ff:0x63,_0x598037:0x10a,_0x407294:0xf1,_0x327a40:0x209,_0x281154:0x179,_0xb2ae5e:0x166,_0x2f19aa:0xe9,_0x2224d8:0x14,_0xa3a009:0x7,_0x48263c:0x14b,_0x30eed5:0x1b6,_0x2f1248:0x1c4,_0x2c6bf8:0x164,_0x275d9a:0x1dd,_0x24f7cf:0xc0,_0x3bbe51:0x1c2,_0x34b7bc:0x1ac,_0x16d7bc:0x159,_0x5b4857:0xe4,_0x234c8:0x1b5,_0x1d195f:0x143,_0x55e6f8:0x151,_0x19ae97:0x1da,_0x5a1361:0x6f,_0x25bf0f:0x11f,_0x38bf88:0x110,_0x2e688c:0x15c,_0x1606b8:0x7a,_0x31c5b7:0x5d,_0xddf446:0x8b,_0x18167d:0x1de,_0x4035a7:0x191,_0x46bca2:0x6e,_0x1ba9f3:0x83},_0x441db4={_0x59c63b:0x1f},_0x264250={_0x19e17b:0x1d5},_0xe0d379=[];for(const _0x3f59c1 of _0x840b9e[_0x41928f(_0x2357d5._0x55cfd0,-0xf1,-_0x2357d5._0x54a9eb,0x3c)]??[]){if(isResponsesReasoningItem(_0x3f59c1)){if(isUserVisibleReasoning(_0x434cb7)){const _0x12480a=createOpenAiReasoningBlock(_0x3f59c1);hasVisibleOpenAiReasoning(_0x12480a)&&_0xe0d379['push'](_0x12480a);}continue;}if(isResponsesMessageItem(_0x3f59c1)){const _0x518cfa=normalizeResponsesMessageContent(_0x3f59c1[_0x41928f(-0xf7,-_0x2357d5._0x5ae7e8,-0x100,-0x136)]);_0x518cfa[_0x41928f(-0x16c,-0xe7,-0xd9,-_0x2357d5._0xcccfd7)]>0x0&&_0xe0d379[_0x2f3ec2(_0x2357d5._0x3783ad,_0x2357d5._0xebc08a,_0x2357d5._0x5ea41c,_0x2357d5._0xddaafd)]({'type':_0x2f3ec2(0x19d,_0x2357d5._0x53e9f9,_0x2357d5._0x424f81,0x114),'text':_0x518cfa});continue;}if(!isResponsesFunctionCallItem(_0x3f59c1)||typeof _0x3f59c1['call_id']!==_0x41928f(-_0x2357d5._0x14adfe,-0x1e1,-0x1b5,-_0x2357d5._0x20fed0)||_0x3f59c1[_0x2f3ec2(_0x2357d5._0x5657a5,_0x2357d5._0x42845e,0xbc,_0x2357d5._0x2f91c0)]['trim']()[_0x41928f(-0x17c,-_0x2357d5._0x4a2efa,-0xd9,-0x93)]===0x0||typeof _0x3f59c1[_0x2f3ec2(_0x2357d5._0x2d95ce,0x107,_0x2357d5._0x39e1e4,0x147)]!=='string'||_0x3f59c1['name']['trim']()[_0x2f3ec2(0x117,_0x2357d5._0x5d417a,0x234,_0x2357d5._0x275130)]===0x0||typeof _0x3f59c1['arguments']!==_0x41928f(-_0x2357d5._0xf2c9ea,-_0x2357d5._0x2bcfaf,-0x1b5,-0x241))continue;_0xe0d379[_0x41928f(-0x133,-_0x2357d5._0x3600ff,-_0x2357d5._0x598037,-_0x2357d5._0x407294)]({'type':'tool_use','id':_0x3f59c1[_0x2f3ec2(_0x2357d5._0x327a40,_0x2357d5._0x281154,_0x2357d5._0xb2ae5e,0xfc)],'name':_0x3f59c1['name'],'input':parseToolInput2(_0x3f59c1[_0x2f3ec2(_0x2357d5._0x2f19aa,0x81,_0x2357d5._0x2224d8,-_0x2357d5._0xa3a009)])});}!_0xe0d379[_0x41928f(-_0x2357d5._0x48263c,-_0x2357d5._0x30eed5,-0x1ac,-_0x2357d5._0x2f1248)](_0x164e1f=>_0x164e1f[_0x2f3ec2(0x125,0x18a,0x170,0x162)]===_0x2f3ec2(0x136,0x1b1,0x17d,0x25a))&&_0x840b9e['output_text']&&_0xe0d379[_0x2f3ec2(_0x2357d5._0x2c6bf8,0x157,_0x2357d5._0x275d9a,0x1be)]({'type':_0x2f3ec2(0x1c1,0x1b1,0x1b7,0x25f),'text':_0x840b9e[_0x2f3ec2(0xd3,0xae,_0x2357d5._0x24f7cf,0x149)]});function _0x2f3ec2(_0x3f2276,_0x200a13,_0x1c161f,_0x5e94df){return _0x3c7c8d(_0x200a13- -_0x264250._0x19e17b,_0x200a13-0xaa,_0x1c161f-0xcc,_0x1c161f);}function _0x41928f(_0x24a0da,_0x58e3f7,_0xe56879,_0x5b59db){return _0x3c7c8d(_0xe56879- -0x436,_0x58e3f7-0x13c,_0xe56879-_0x441db4._0x59c63b,_0x24a0da);}return{'id':_0x840b9e['id'],'content':_0xe0d379,'stopReason':_0xe0d379[_0x41928f(-_0x2357d5._0x3bbe51,-0x236,-_0x2357d5._0x34b7bc,-0x220)](_0x44a4de=>_0x44a4de[_0x2f3ec2(0xf2,0x18a,0xeb,0x140)]===_0x2f3ec2(0x1dd,0x19c,0x25e,0x115))?'tool_use':_0x41928f(-_0x2357d5._0x16d7bc,-_0x2357d5._0x5b4857,-0x178,-0x13a),'usage':{'inputTokens':_0x840b9e[_0x2f3ec2(_0x2357d5._0x234c8,0x151,_0x2357d5._0x1d195f,0x1a0)]?.[_0x41928f(-0x198,-0x1bb,-0x1ba,-0x112)]??0x0,'outputTokens':_0x840b9e[_0x2f3ec2(0x1b7,_0x2357d5._0x55e6f8,_0x2357d5._0x19ae97,0x164)]?.['output_tokens']??0x0,..._0x840b9e[_0x41928f(-_0x2357d5._0x5a1361,-_0x2357d5._0x25bf0f,-_0x2357d5._0x38bf88,-_0x2357d5._0x2e688c)]?.[_0x2f3ec2(-0x16,_0x2357d5._0x1606b8,0x13a,_0x2357d5._0x31c5b7)]?.['reasoning_tokens']!==void 0x0?{'reasoningTokens':_0x840b9e['usage']['output_tokens_details'][_0x41928f(-0x1e3,-_0x2357d5._0xddf446,-0x141,-0xaf)]}:{}},..._0x840b9e[_0x2f3ec2(0x1e0,_0x2357d5._0x18167d,0x189,_0x2357d5._0x4035a7)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x840b9e[_0x41928f(-_0x2357d5._0x46bca2,-0xa2,-_0x2357d5._0x1ba9f3,-0xb9)]),'openaiResponsesResponseId':_0x840b9e['id']}}:{}};}function _0x501c(_0x154bb5,_0x443d40){_0x154bb5=_0x154bb5-0xab;const _0x57372b=_0x5737();let _0x501ce3=_0x57372b[_0x154bb5];if(_0x501c['fMEdlz']===undefined){var _0x1b8b0f=function(_0x5d8cde){const _0x581e2e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3e0b8a='',_0x1dfed9='';for(let _0x12ab80=0x0,_0x3963f4,_0x2e2399,_0x4d6d7c=0x0;_0x2e2399=_0x5d8cde['charAt'](_0x4d6d7c++);~_0x2e2399&&(_0x3963f4=_0x12ab80%0x4?_0x3963f4*0x40+_0x2e2399:_0x2e2399,_0x12ab80++%0x4)?_0x3e0b8a+=String['fromCharCode'](0xff&_0x3963f4>>(-0x2*_0x12ab80&0x6)):0x0){_0x2e2399=_0x581e2e['indexOf'](_0x2e2399);}for(let _0x4b034d=0x0,_0x37bdb9=_0x3e0b8a['length'];_0x4b034d<_0x37bdb9;_0x4b034d++){_0x1dfed9+='%'+('00'+_0x3e0b8a['charCodeAt'](_0x4b034d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1dfed9);};_0x501c['nGmJhI']=_0x1b8b0f,_0x501c['tcyJJQ']={},_0x501c['fMEdlz']=!![];}const _0x4b9b00=_0x57372b[0x0],_0x291627=_0x154bb5+_0x4b9b00,_0x2d8600=_0x501c['tcyJJQ'][_0x291627];return!_0x2d8600?(_0x501ce3=_0x501c['nGmJhI'](_0x501ce3),_0x501c['tcyJJQ'][_0x291627]=_0x501ce3):_0x501ce3=_0x2d8600,_0x501ce3;}function extractErrorMessage(_0x4a5f9e){const _0x5c3c06={_0x1a6d03:0x4cc,_0x91c198:0x106,_0x51bb51:0x188,_0x354ea2:0x596,_0x54fde6:0x64e,_0x51b6bc:0x5b0,_0x42892a:0x56c,_0x6b5ff7:0xf6,_0x2ec61b:0x114,_0x39df85:0x77,_0x410174:0x2d,_0x103c66:0x4ff,_0x566b70:0x5bb,_0x1f13fb:0x155,_0x12a319:0x1b7,_0x5c5bbc:0x218,_0x23d1e2:0x566,_0x1a7739:0x51c,_0x5c3be7:0x64f,_0x278eb1:0x572,_0x1501c2:0x17b,_0xcbee53:0x205,_0x35f56b:0x5fb,_0x221a4c:0x588,_0x6c67be:0x524,_0x1934bd:0x628,_0x58b659:0x4cf,_0x22fcfb:0x448,_0x53dcfe:0x3bf,_0x4d8b3d:0x470},_0x5144d6={_0x7b6bcb:0x3fc},_0x55965b={_0x1cb95a:0x22b,_0x161bcd:0x4d};function _0x40ce09(_0x7b6a25,_0x23bb3c,_0x4c6722,_0x2c445c){return _0x3c7c8d(_0x2c445c-_0x55965b._0x1cb95a,_0x23bb3c-0xe9,_0x4c6722-_0x55965b._0x161bcd,_0x4c6722);}if(_0x4a5f9e[_0x40ce09(0x586,_0x5c3c06._0x1a6d03,0x5bc,0x588)]===0x0)return'';try{const _0x1da4e4=JSON[_0x403951(-0x74,-_0x5c3c06._0x91c198,-0x124,-_0x5c3c06._0x51bb51)](_0x4a5f9e);if(typeof _0x1da4e4[_0x40ce09(0x628,_0x5c3c06._0x354ea2,_0x5c3c06._0x54fde6,_0x5c3c06._0x51b6bc)]?.[_0x40ce09(_0x5c3c06._0x42892a,0x632,0x61b,0x5bb)]===_0x403951(-0x152,-0x117,-0x17b,-_0x5c3c06._0x6b5ff7)&&_0x1da4e4[_0x403951(0x2e,-_0x5c3c06._0x2ec61b,-_0x5c3c06._0x39df85,-_0x5c3c06._0x410174)][_0x40ce09(_0x5c3c06._0x103c66,0x5fb,0x63a,_0x5c3c06._0x566b70)][_0x403951(-0x172,-_0x5c3c06._0x1f13fb,-_0x5c3c06._0x12a319,-_0x5c3c06._0x5c5bbc)]()['length']>0x0)return _0x1da4e4['error'][_0x40ce09(0x618,0x50f,_0x5c3c06._0x23d1e2,0x5bb)]['trim']();if(typeof _0x1da4e4['message']==='string'&&_0x1da4e4[_0x40ce09(_0x5c3c06._0x1a7739,_0x5c3c06._0x5c3be7,_0x5c3c06._0x278eb1,0x5bb)][_0x403951(-0x241,-_0x5c3c06._0x1501c2,-0x1b7,-_0x5c3c06._0xcbee53)]()[_0x40ce09(_0x5c3c06._0x35f56b,0x5d3,_0x5c3c06._0x42892a,_0x5c3c06._0x221a4c)]>0x0)return _0x1da4e4[_0x40ce09(_0x5c3c06._0x6c67be,0x5b9,_0x5c3c06._0x1934bd,_0x5c3c06._0x566b70)][_0x40ce09(_0x5c3c06._0x58b659,_0x5c3c06._0x22fcfb,_0x5c3c06._0x53dcfe,_0x5c3c06._0x4d8b3d)]();}catch{return _0x4a5f9e;}function _0x403951(_0x32396a,_0x5b5da1,_0x5de12d,_0x560051){return _0x3c7c8d(_0x5de12d- -_0x5144d6._0x7b6bcb,_0x5b5da1-0x1ce,_0x5de12d-0x177,_0x560051);}return _0x4a5f9e;}async function createOpenAiApiError(_0x4a2631){const _0x560475={_0x48fc6b:0x288,_0x243741:0x2f2,_0x2c1802:0x2bf,_0x45f468:0x2ad,_0x9a083a:0x26c,_0x4150e2:0x1a2,_0x77fca7:0x260,_0x1d2ef7:0x25d,_0x3c32e2:0x26a,_0x2b327e:0x258,_0x261438:0x27d,_0x28f6f0:0x306,_0xd383fa:0x298},_0x3f88d5={_0x5b8276:0x14,_0x1062e2:0x7a},_0x1f2c9b={_0x2c7968:0x1e4,_0x22e5db:0x155},_0xc9a517=(await _0x4a2631[_0x9ccf42(0x2ca,_0x560475._0x48fc6b,_0x560475._0x243741,_0x560475._0x2c1802)]())['trim']();function _0x9ccf42(_0x4e730e,_0x366aad,_0x141c18,_0x90f739){return _0x65d232(_0x141c18-_0x1f2c9b._0x2c7968,_0x90f739,_0x141c18-_0x1f2c9b._0x22e5db,_0x90f739-0xbc);}const _0x51438a=extractErrorMessage(_0xc9a517)||_0x4a2631[_0x8b7ea6(0x28d,_0x560475._0x45f468,0x239,_0x560475._0x9a083a)]||_0x9ccf42(0x264,_0x560475._0x4150e2,_0x560475._0x77fca7,0x1d0)+_0x4a2631[_0x8b7ea6(0x2b5,_0x560475._0x1d2ef7,_0x560475._0x3c32e2,_0x560475._0x2b327e)];function _0x8b7ea6(_0x381bdf,_0x3a05cb,_0x5e6efc,_0x4db57a){return _0x3c7c8d(_0x5e6efc- -0x11a,_0x3a05cb-_0x3f88d5._0x5b8276,_0x5e6efc-_0x3f88d5._0x1062e2,_0x381bdf);}return new OpenAiApiError(_0x4a2631[_0x8b7ea6(_0x560475._0x261438,_0x560475._0x28f6f0,_0x560475._0x3c32e2,_0x560475._0xd383fa)],_0xc9a517,_0x51438a);}function readSseData(_0x365bfd){const _0x471e47={_0x5aa7fb:0xb2,_0x682635:0x11,_0x1cc846:0x61,_0x277417:0x188,_0x564535:0xe3,_0x406667:0xcf},_0x2f4e66={_0x31f900:0x76},_0xc8aedc={_0x3aa55a:0x9,_0x2d323d:0x1e2};function _0xb40b42(_0x14bd5f,_0x3ae857,_0x41913f,_0x2aa4e6){return _0x65d232(_0x41913f- -_0xc8aedc._0x3aa55a,_0x2aa4e6,_0x41913f-0x7e,_0x2aa4e6-_0xc8aedc._0x2d323d);}function _0x356885(_0x281ef8,_0x40e85a,_0xc22f9,_0x1a82aa){return _0x65d232(_0x281ef8-0x33e,_0x1a82aa,_0xc22f9-_0x2f4e66._0x31f900,_0x1a82aa-0x131);}return _0x365bfd[_0xb40b42(0x16e,0x8d,_0x471e47._0x5aa7fb,_0x471e47._0x682635)]('\x0a')[_0xb40b42(-0x99,-0x5c,0x6,_0x471e47._0x1cc846)](_0x5858be=>_0x5858be[_0xb40b42(-0xd,0x5f,0x10,0x48)](_0xb40b42(0x2b,0xed,0x6b,0x8d)))['map'](_0x4923b7=>_0x4923b7[_0xb40b42(0xd5,0x19,0x98,0xe1)](0x5)['trimStart']())[_0xb40b42(0x14c,_0x471e47._0x277417,_0x471e47._0x564535,_0x471e47._0x406667)]('\x0a')[_0x356885(0x30b,0x3b7,0x2e0,0x2a4)]();}var OpenAiChatCompletionsStreamParser=class{[_0x3c7c8d(0x3ac,0x44d,0x2f3,0x38a)]=[];['toolCallsByIndex']=new Map();[_0x3c7c8d(0x2ed,0x2c9,0x330,0x35d)]=[];[_0x65d232(0xf2,0x95,0x191,0x148)]=new Set();[_0x65d232(0x56,0x8e,0x42,0x52)]='';[_0x3c7c8d(0x2d9,0x2cb,0x306,0x224)]='end_turn';['usage'];[_0x3c7c8d(0x32b,0x36c,0x303,0x39f)](_0x2bdd92){const _0x344df6={_0x102da0:0x68,_0x35c5a0:0x103,_0x20303e:0x6d,_0x399b80:0x2fb,_0x5ca270:0x2de,_0xa2816a:0xbc,_0x2aae7b:0x1ee,_0x23d040:0x16e,_0x5e0caa:0x186},_0x3db767={_0x2f9647:0xa3,_0x232cef:0x90},_0x43abc5={_0x54605e:0x148,_0x2c320a:0x75},_0x578118=readSseData(_0x2bdd92);if(_0x578118['length']===0x0||_0x578118===_0x59f6ab(0x63,_0x344df6._0x102da0,0xfc,0xcb))return[];const _0x466b02=JSON[_0x59f6ab(_0x344df6._0x35c5a0,0x95,0x98,0x195)](_0x578118);this['responseId']=_0x466b02['id']??this[_0x59f6ab(0xf9,_0x344df6._0x20303e,0x51,0x167)],this[_0xf70f49(_0x344df6._0x399b80,_0x344df6._0x5ca270,0x2e7,0x31d)]=_0x466b02['usage']??this[_0x59f6ab(0x151,0x145,_0x344df6._0xa2816a,_0x344df6._0x2aae7b)];function _0xf70f49(_0x17e283,_0x1a6ffb,_0x49fa69,_0x2c17c0){return _0x3c7c8d(_0x17e283- -0x2b,_0x1a6ffb-_0x43abc5._0x54605e,_0x49fa69-_0x43abc5._0x2c320a,_0x49fa69);}function _0x59f6ab(_0xa59abb,_0x12d8bb,_0x556b59,_0x4c560c){return _0x65d232(_0xa59abb-_0x3db767._0x2f9647,_0x12d8bb,_0x556b59-0x12f,_0x4c560c-_0x3db767._0x232cef);}return this[_0x59f6ab(0xe7,0x149,_0x344df6._0x23d040,_0x344df6._0x5e0caa)](_0x466b02);}[_0x65d232(0x10b,0x7b,0x10a,0x1b4)](){const _0x592748={_0x1018f6:0x1f6,_0x600616:0x1ab,_0x59b2df:0x1ce,_0x3b0a93:0x66,_0x372b2b:0xc,_0x39c419:0x88,_0x1d9a91:0x65,_0x13a659:0x23,_0x18e3fe:0x12b,_0x30603c:0x11b,_0x21a08c:0x9e,_0x4cd52e:0x2b5,_0x264745:0x2d1,_0x7c3ce2:0x2f6,_0x5f4d2c:0x85,_0x6a3d75:0x15,_0x377610:0xb1,_0x35ea02:0x81,_0x51fd4c:0xbe,_0x1f386e:0x50,_0xccbfd3:0x43,_0x455932:0x8d},_0x2dd8f8={_0x3f339e:0x181},_0x370801={_0x1ffc1b:0x369};function _0x2c68a9(_0x140059,_0x5dbc92,_0x592127,_0x2c6835){return _0x3c7c8d(_0x5dbc92- -_0x370801._0x1ffc1b,_0x5dbc92-0x1dc,_0x592127-0x13d,_0x592127);}this[_0x58f045(_0x592748._0x1018f6,0x174,_0x592748._0x600616,_0x592748._0x59b2df)][_0x2c68a9(-_0x592748._0x3b0a93,-_0x592748._0x372b2b,-0x99,0x6b)]>0x0&&(this['stopReason']=_0x2c68a9(_0x592748._0x39c419,0x8,_0x592748._0x1d9a91,_0x592748._0x13a659));function _0x58f045(_0x502bd1,_0x4a7769,_0x3860f8,_0x39ebc3){return _0x65d232(_0x502bd1-_0x2dd8f8._0x3f339e,_0x4a7769,_0x3860f8-0xbc,_0x39ebc3-0x42);}return{'id':this[_0x2c68a9(-_0x592748._0x18e3fe,-0x9b,-0x33,-_0x592748._0x30603c)]||_0x58f045(0x149,0x92,0x17f,_0x592748._0x21a08c)+Date['now'](),'content':createContentBlocks(this[_0x58f045(_0x592748._0x4cd52e,_0x592748._0x264745,0x2d3,_0x592748._0x7c3ce2)][_0x2c68a9(-_0x592748._0x5f4d2c,-0x5,-0xbb,_0x592748._0x6a3d75)](''),this[_0x2c68a9(-_0x592748._0x377610,-0x7c,-_0x592748._0x35ea02,0xb)]),'stopReason':this[_0x2c68a9(-0x9c,-0x90,-_0x592748._0x51fd4c,-0x99)],'usage':createUsage(this[_0x2c68a9(_0x592748._0x1f386e,-_0x592748._0xccbfd3,-0x6,-_0x592748._0x455932)])};}[_0x3c7c8d(0x2bc,0x365,0x24e,0x33d)](_0x156713){const _0x54f29d={_0x153ec1:0x373,_0x5e53be:0x2be,_0x2b279c:0x2ff,_0x4da5c6:0xa,_0x13c0b9:0x21,_0x1e97ab:0x359,_0x26a5f6:0x374,_0x4f304d:0x2c,_0x10dc86:0x2f5,_0x2d6212:0x36d,_0x4a2c0a:0x139,_0x3a14af:0xa5,_0x1320fd:0x96,_0x1e4690:0xb9,_0x42e89e:0x24,_0x45eaa1:0x13,_0x4a8875:0x4e,_0x1598ba:0x282,_0x34fcbd:0x294,_0x273da4:0x28d,_0x5addd0:0x201,_0x4ac66d:0x1d8,_0x94a05:0x3e6,_0x21ffd8:0x333,_0x3bc91d:0x2f1,_0x4b6934:0x305,_0x468701:0xa5,_0x2c457e:0x2c2,_0x1f3043:0x85,_0x2bb183:0x69,_0x189c35:0xe2,_0x56fc3e:0x3e,_0x216291:0x45,_0x247293:0xba,_0x2dc3a5:0x6b,_0x37ed10:0xc2,_0x2cc347:0x4d,_0x1772ab:0x2af,_0x3a6c27:0x221,_0x155d7b:0x87,_0x48ee63:0x2e0,_0x319706:0x343,_0x4808fb:0x2ec,_0x1f39f7:0x2db,_0x10ca84:0x238,_0x4b72f2:0x3f2,_0xb7d953:0xd4,_0x491712:0x50,_0x3d005f:0xb7,_0x572f2b:0x3c5,_0x59f5f2:0x2fa,_0x19e478:0x37a,_0x3ccd55:0x14,_0x13d33c:0x29,_0x507fcd:0x177,_0x514d58:0xdf},_0xdb6726={_0x4645cf:0x23,_0x404c45:0x155},_0x374a68={_0x5aae03:0x62},_0x2c0df7=[];for(const _0x146669 of _0x156713[_0x1ab9ef(0x2f5,_0x54f29d._0x153ec1,_0x54f29d._0x5e53be,_0x54f29d._0x2b279c)]??[]){const _0x377302=_0x146669['delta'],_0x13dfb5=typeof _0x377302?.['content']===_0x26b991(0xe,-_0x54f29d._0x4da5c6,_0x54f29d._0x13c0b9,-0x61)?_0x377302[_0x1ab9ef(_0x54f29d._0x1e97ab,0x2b6,_0x54f29d._0x26a5f6,0x3ec)]:typeof _0x377302?.['refusal']===_0x26b991(0xe,0x71,_0x54f29d._0x4f304d,0x75)?_0x377302['refusal']:'';_0x13dfb5[_0x1ab9ef(0x380,0x3ef,_0x54f29d._0x10dc86,_0x54f29d._0x2d6212)]>0x0&&(this[_0x26b991(_0x54f29d._0x4a2c0a,_0x54f29d._0x3a14af,0x1a1,_0x54f29d._0x1320fd)][_0x26b991(_0x54f29d._0x1e4690,0xa,0x23,-0x9)](_0x13dfb5),_0x2c0df7['push']({'type':_0x26b991(0x4f,_0x54f29d._0x42e89e,_0x54f29d._0x45eaa1,_0x54f29d._0x4a8875),'index':0x0,'text':_0x13dfb5}));for(const _0x327fc7 of _0x377302?.[_0x1ab9ef(_0x54f29d._0x1598ba,0x2c4,0x29b,0x262)]??[]){const _0xdce695=_0x327fc7['index']??0x0;let _0x55e2b4=this[_0x1ab9ef(_0x54f29d._0x34fcbd,0x2d3,0x2c1,0x2d8)][_0x1ab9ef(_0x54f29d._0x273da4,0x2aa,_0x54f29d._0x5addd0,_0x54f29d._0x4ac66d)](_0xdce695);!_0x55e2b4&&(_0x55e2b4={'id':_0x327fc7['id']??_0x1ab9ef(0x329,_0x54f29d._0x94a05,_0x54f29d._0x21ffd8,0x33d)+_0xdce695,'type':_0x26b991(0x45,0x90,0x1b,-0x79),'function':{'name':_0x327fc7[_0x1ab9ef(0x2db,0x24b,_0x54f29d._0x3bc91d,_0x54f29d._0x4b6934)]?.[_0x26b991(0x69,_0x54f29d._0x468701,-0x27,0xcd)]??'','arguments':''}},this['toolCallsByIndex'][_0x1ab9ef(0x338,_0x54f29d._0x2c457e,0x352,0x2f5)](_0xdce695,_0x55e2b4),this[_0x26b991(0x7a,_0x54f29d._0x1f3043,-0xf,-0x7)][_0x26b991(0xb9,0x12f,0x25,0xc3)](_0x55e2b4));_0x327fc7['id']&&(_0x55e2b4['id']=_0x327fc7['id']);_0x327fc7['function']?.[_0x26b991(_0x54f29d._0x2bb183,_0x54f29d._0x189c35,-_0x54f29d._0x56fc3e,0x5f)]&&(_0x55e2b4[_0x26b991(_0x54f29d._0x216291,_0x54f29d._0x247293,_0x54f29d._0x189c35,_0x54f29d._0x2dc3a5)]['name']=_0x327fc7[_0x26b991(0x45,_0x54f29d._0x37ed10,-0x1a,0x2d)][_0x26b991(_0x54f29d._0x2bb183,_0x54f29d._0x2cc347,0x92,-0x4d)]);!this['toolUseStartEmitted'][_0x1ab9ef(_0x54f29d._0x1772ab,_0x54f29d._0x3a6c27,0x349,0x279)](_0xdce695)&&_0x55e2b4[_0x26b991(_0x54f29d._0x216291,0x2b,-0xf,0x36)][_0x26b991(0x69,0xab,_0x54f29d._0x155d7b,0x77)]['trim']()[_0x1ab9ef(0x380,0x37f,_0x54f29d._0x48ee63,0x346)]>0x0&&(_0x2c0df7[_0x1ab9ef(0x34f,_0x54f29d._0x319706,0x31a,_0x54f29d._0x4808fb)]({'type':'tool_use_delta','id':_0x55e2b4['id'],'index':_0xdce695,'name':_0x55e2b4['function']['name']}),this['toolUseStartEmitted']['add'](_0xdce695));const _0x2103a2=_0x327fc7[_0x1ab9ef(_0x54f29d._0x1f39f7,_0x54f29d._0x10ca84,0x246,0x306)]?.['arguments']??'';_0x2103a2[_0x1ab9ef(0x380,_0x54f29d._0x4b72f2,0x393,0x3e2)]>0x0&&(_0x55e2b4[_0x26b991(0x45,_0x54f29d._0xb7d953,-_0x54f29d._0x491712,_0x54f29d._0x3d005f)]['arguments']+=_0x2103a2,_0x2c0df7['push']({'type':_0x1ab9ef(0x39a,0x352,0x458,_0x54f29d._0x572f2b),'id':_0x55e2b4['id'],'index':_0xdce695,'inputDelta':_0x2103a2}));}_0x146669[_0x1ab9ef(0x2bf,_0x54f29d._0x59f5f2,0x35a,_0x54f29d._0x19e478)]===_0x26b991(-_0x54f29d._0x3ccd55,-0xb2,-0xae,-0x49)&&(this[_0x26b991(0x66,0xe8,0x0,-_0x54f29d._0x13d33c)]=_0x26b991(0xfe,_0x54f29d._0x507fcd,0x122,_0x54f29d._0x514d58));}function _0x26b991(_0x59182f,_0xc8c282,_0x2dbf87,_0x4d078d){return _0x3c7c8d(_0x59182f- -0x273,_0xc8c282-_0x374a68._0x5aae03,_0x2dbf87-0x9,_0x4d078d);}function _0x1ab9ef(_0x8a3623,_0x50e12e,_0x3bd438,_0x5916b2){return _0x3c7c8d(_0x8a3623-_0xdb6726._0x4645cf,_0x50e12e-_0xdb6726._0x404c45,_0x3bd438-0x120,_0x50e12e);}return _0x2c0df7;}},OpenAiResponsesStreamParser=class{[_0x3c7c8d(0x2cb,0x302,0x311,0x27a)]=new Map();[_0x3c7c8d(0x362,0x3c6,0x300,0x34a)];[_0x65d232(0x35,-0x21,-0x1,0x91)]=new Map();[_0x3c7c8d(0x275,0x2d6,0x2da,0x2aa)]=new Map();['reasoningItems']=new Map();[_0x3c7c8d(0x264,0x319,0x1fb,0x314)];['responseTextParts']=new Map();[_0x65d232(0xd,0xab,0x50,0xb8)]=new Map();constructor(_0x36672f){const _0x3de2f2={_0x595b45:0x29c,_0xaefeba:0x209,_0x35fa41:0x2f6},_0x579c03={_0x5ea025:0x38,_0x302939:0xe7};function _0x1bde02(_0x4fc909,_0x3c25a1,_0x20139d,_0xa3989f){return _0x3c7c8d(_0x4fc909-_0x579c03._0x5ea025,_0x3c25a1-0xee,_0x20139d-_0x579c03._0x302939,_0xa3989f);}this[_0x1bde02(_0x3de2f2._0x595b45,_0x3de2f2._0xaefeba,0x1e8,_0x3de2f2._0x35fa41)]=_0x36672f;}['consumeSseEvent'](_0x57cb30){const _0x4ecac2={_0x32d170:0x4d8,_0x4f1f89:0xbe,_0x4fb2f3:0x2b5,_0x509895:0x2c9,_0x11d065:0x365,_0x4f0c0a:0x371,_0x18a74b:0x294,_0x564445:0x48e,_0x5215ea:0x533,_0x59ba2c:0x5e6,_0x23e35d:0x5d3,_0xd9b771:0x387,_0x5cc77c:0x338,_0xaa7aaf:0x48b},_0xb39755={_0x4556fd:0x1e1,_0x229ff9:0x5a},_0x5b63d2={_0xe3914c:0x1cf,_0x82f77a:0xeb},_0x254ab4=_0x57cb30[_0x50b6eb(0x502,0x510,0x574,_0x4ecac2._0x32d170)]('\x0a');function _0x50b6eb(_0x43dd90,_0x566f71,_0x47b0af,_0x4012d3){return _0x3c7c8d(_0x43dd90-_0x5b63d2._0xe3914c,_0x566f71-_0x5b63d2._0x82f77a,_0x47b0af-0x109,_0x566f71);}function _0x580cef(_0x31769c,_0xb2cb89,_0x1f8e92,_0x1a97ec){return _0x3c7c8d(_0xb2cb89- -0x50e,_0xb2cb89-_0xb39755._0x4556fd,_0x1f8e92-_0xb39755._0x229ff9,_0x31769c);}const _0x25235c=_0x254ab4[_0x580cef(-0x107,-0x161,-0x1f8,-_0x4ecac2._0x4f1f89)](_0x5ee06a=>_0x5ee06a[_0x50b6eb(0x460,0x4f9,0x502,0x424)](_0x580cef(-0x312,-0x28c,-0x1d0,-0x268)))?.['slice'](0x6)[_0x580cef(-_0x4ecac2._0x4fb2f3,-_0x4ecac2._0x509895,-_0x4ecac2._0x11d065,-_0x4ecac2._0x4f0c0a)](),_0x2aba66=_0x254ab4[_0x580cef(-_0x4ecac2._0x18a74b,-0x287,-0x1d7,-0x2ee)](_0x3d3896=>_0x3d3896[_0x50b6eb(0x460,0x3be,0x440,0x3c9)](_0x50b6eb(0x4bb,0x406,0x4ba,0x522)))[_0x50b6eb(0x4c2,_0x4ecac2._0x564445,0x4fa,0x4dc)](_0x2982d1=>_0x2982d1['slice'](0x5)[_0x50b6eb(0x406,0x457,0x44a,0x4c7)]())[_0x50b6eb(_0x4ecac2._0x5215ea,_0x4ecac2._0x59ba2c,0x491,_0x4ecac2._0x23e35d)]('\x0a')[_0x580cef(-0x381,-_0x4ecac2._0x509895,-_0x4ecac2._0xd9b771,-0x31e)]();if(_0x2aba66['length']===0x0||_0x2aba66===_0x580cef(-_0x4ecac2._0x5cc77c,-0x2d6,-0x2cc,-0x30a))return[];const _0x5f09a0=JSON[_0x580cef(-0x1f6,-0x236,-0x1f1,-0x2c0)](_0x2aba66);return this[_0x50b6eb(_0x4ecac2._0xaa7aaf,0x48e,_0x4ecac2._0x5215ea,0x4e9)](_0x25235c??String(_0x5f09a0['type']??''),_0x5f09a0);}[_0x3c7c8d(0x301,0x399,0x350,0x318)](_0x37aa3d){const _0x55e131={_0x1baf46:0x4cb},_0x1156bc={_0x216a41:0x19f};function _0x252f2b(_0x589f78,_0xbbb903,_0x39af74,_0x25daa1){return _0x65d232(_0xbbb903-0x443,_0x589f78,_0x39af74-_0x1156bc._0x216a41,_0x25daa1-0xb3);}return this['consumeEvent'](String(_0x37aa3d[_0x252f2b(0x495,0x52a,_0x55e131._0x1baf46,0x5e8)]??''),_0x37aa3d);}[_0x65d232(0x10b,0x1c5,0xf0,0x8a)](){const _0x312c5d={_0x3e3f3c:0x183,_0x5d31a4:0x4b,_0xda4fe2:0xdc,_0xc2fb5e:0x147,_0x21911a:0xa9,_0xc56955:0x12c,_0x294337:0xca,_0x1dde13:0x166,_0x22ead6:0x309,_0x47f1c6:0x253},_0xf81995={_0x95b122:0x260},_0x238ba1={_0x347e11:0x31};function _0x5a7df4(_0x4f3164,_0x5f1567,_0x578f6a,_0x25a27d){return _0x3c7c8d(_0x4f3164- -0x3bb,_0x5f1567-0x98,_0x578f6a-_0x238ba1._0x347e11,_0x578f6a);}function _0x376bca(_0x3d9513,_0x39107c,_0x4d4bd5,_0x1825eb){return _0x65d232(_0x4d4bd5- -_0xf81995._0x95b122,_0x1825eb,_0x4d4bd5-0x25,_0x1825eb-0x1c0);}const _0x15802a=this['finalResponse']??{'id':_0x376bca(-0xf6,-0x173,-0x194,-0x161)+Date[_0x5a7df4(-0xf5,-_0x312c5d._0x3e3f3c,-0xcb,-_0x312c5d._0x5d31a4)](),'object':_0x376bca(-_0x312c5d._0xda4fe2,-0x156,-_0x312c5d._0xc2fb5e,-_0x312c5d._0x21911a),'status':_0x376bca(-_0x312c5d._0xc56955,-_0x312c5d._0x294337,-0x17f,-_0x312c5d._0x1dde13),'output':this[_0x376bca(-_0x312c5d._0x22ead6,-_0x312c5d._0x47f1c6,-0x28e,-0x30d)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};return parseResponsesResponse(_0x15802a,this['request']);}[_0x3c7c8d(0x32f,0x285,0x312,0x398)](){const _0x5341f3={_0x6843e0:0x116,_0x5ed878:0xbe,_0x528405:0x143},_0x205259={_0x472524:0xab,_0x14f1cc:0x181};function _0x5ad262(_0x4322c7,_0x1757be,_0x531d4,_0x626a13){return _0x3c7c8d(_0x531d4- -0x21f,_0x1757be-_0x205259._0x472524,_0x531d4-_0x205259._0x14f1cc,_0x626a13);}return this[_0x5ad262(_0x5341f3._0x6843e0,_0x5341f3._0x5ed878,_0x5341f3._0x528405,0x15d)]!==void 0x0;}[_0x3c7c8d(0x2bc,0x274,0x258,0x270)](_0x530d7f,_0x8567cf){const _0x497e95={_0x5bdaf7:0x65a,_0x261b15:0x632,_0x4c0dc8:0x20e,_0x1093bb:0x2d8,_0x282f88:0x562,_0x588474:0x4e2,_0x226557:0x522,_0x3d64f7:0x549,_0x3efb24:0x4b4,_0x464d74:0x4f8,_0x576de1:0x4ed,_0x2469cf:0x44b,_0x5eca83:0x533,_0x2d4b1f:0x669,_0x7d4bc2:0x154,_0xa2e8fa:0x1ab,_0x2a36e7:0x19c,_0x5e8fba:0x469,_0x580ab3:0x575,_0x57d146:0x115,_0x1c9bfc:0x11c,_0x5a70b7:0xcd,_0x45dc4b:0x52b,_0x4ef994:0x4e5,_0x665b66:0x221,_0x688c01:0x1ce,_0x2cef9d:0x1ca,_0x3f6fdd:0x488,_0x364613:0x24c,_0x1c437b:0x22b,_0x17fddc:0x111,_0x58cf9b:0x106,_0xc4d66d:0xb3,_0x3c1d47:0x1ab,_0x2c7c71:0x23e,_0x165afe:0x4ec,_0x35965d:0x4ca,_0x12dfaa:0xfe,_0x5dff71:0x151,_0x58a8f5:0x153,_0x25ed1b:0x53e,_0x5d10df:0x625,_0x1575f7:0x1d7,_0x30b4c1:0x21a,_0x33d0c1:0x539,_0x402c6d:0x53d,_0xa350d2:0x5f5,_0x58a87f:0x624,_0x3afac9:0x558,_0x36ecbc:0x209,_0x599779:0x2db,_0x948bc2:0x1e1,_0x51057c:0x29f,_0x569ce9:0x52f,_0x3c1f32:0x4a9,_0x5ea952:0x183,_0x2d9081:0x295,_0x5d1778:0x51d,_0x199d0b:0x55d,_0x4c836e:0x60e,_0x2a231c:0x116,_0x3a9ee0:0x56a,_0x292cd1:0x5ae,_0x591325:0x52d,_0x45a629:0x50c,_0x2cbc9d:0x562,_0x337947:0x4ef,_0x3d6d3e:0x483,_0x48574d:0x190,_0x557c4f:0x556,_0x2f2ad5:0x133,_0x3a0b74:0x1e4,_0x3561fd:0x447,_0x4acddc:0x423,_0x4697d2:0x2cd,_0x14df7c:0x229,_0x187d9d:0x463,_0x2484e7:0x518,_0x176c83:0x496,_0xbfb673:0x122,_0x572125:0x159,_0x29e2aa:0x243,_0x59ac8b:0x551,_0x5728bb:0x580,_0x5448b2:0x4fa,_0x163f6b:0x5a7,_0x3452e9:0x562,_0x41fdc7:0x33a,_0x5cba4a:0x27c,_0x48b7d3:0x4c2,_0x66a30b:0x54e,_0x8e9aea:0x2ff,_0x39636b:0x559,_0x59b10c:0x530,_0x1fe617:0x50d,_0x15c2f6:0x4e9,_0x5cd73d:0x52e,_0x5650e3:0x491,_0x5d167b:0x1ce,_0x560c1a:0x1d9,_0xae5c6a:0x58a,_0x2c50be:0x4be,_0x1f8788:0xb7,_0x4c1559:0x1cd,_0x5a57d7:0x14d,_0x45ec7c:0x18c,_0x1162c7:0x4b6,_0x30f09a:0x573,_0x5d831c:0x497,_0xe0f9f6:0x4eb,_0x747544:0x14f,_0x405bf8:0x610,_0xa801c8:0x566,_0x3aaf92:0x5aa,_0x1207db:0x509,_0xf625ae:0x5f1,_0x2a5d80:0x517,_0x229694:0x278,_0x18e069:0x1cf,_0x141250:0x179,_0x2c3626:0x190,_0xa9c0fc:0x136,_0x2f91e1:0xc0,_0x284f5e:0x136,_0xa8948e:0xcb,_0x52a495:0x1bc,_0x5a2411:0x1c0,_0x1b7008:0x490,_0xfeedf2:0x4e1,_0x1d06e8:0x49e,_0x1cb869:0x543,_0x3a9039:0x633,_0x308a19:0x5bf,_0x1650f2:0x569,_0x2b9435:0x4ef,_0x2a3c20:0x1e9,_0xbe0fec:0x20a,_0x51e7ce:0x28e,_0x4da38d:0x1c4,_0x595d7d:0x107,_0x610a39:0x18a,_0x1acd8f:0x20a,_0x5c7f4d:0x27f,_0x527b7e:0x4ef,_0x2f18fc:0x513,_0x17c89d:0x4ce,_0x7de3fc:0x49d,_0x5661e7:0x651,_0x329ece:0x607,_0x4c4e74:0x570,_0x36003b:0x435,_0x462cfa:0x265,_0x5a8502:0x188,_0xf65b8c:0x23c,_0x51bf4b:0x18d,_0x200389:0x298,_0x42b69d:0x252,_0x13fd04:0x1f6,_0x40c71d:0x19d,_0x5dd29b:0x233,_0x166047:0x4e4,_0x2eb264:0x449,_0x3dedde:0x4bd,_0x195e6f:0x5c9,_0x1ea61c:0x2d8,_0x207c53:0x252,_0x2275a5:0x1a6,_0x253985:0x11f,_0x435b97:0x142,_0x1a4f06:0x14d,_0x1c341b:0xdf,_0xb2ed64:0x120,_0x484ec8:0x7c,_0x2cdc45:0x5fa,_0x402873:0x5a8,_0x4943c1:0x47f,_0x1ff387:0x4fe,_0x71a2c8:0x502,_0x24a811:0x1ab,_0x50e25d:0x277,_0x53dd11:0x32b,_0x3d1d1d:0x27c,_0x3a5892:0x233,_0xfef847:0xbb,_0x54f10c:0x141,_0x2d8c19:0x111,_0x43b294:0x245,_0x259c16:0x1bf,_0x3eae2f:0x231,_0x24cd2a:0x25b,_0x454e3a:0x226,_0x5623e5:0x4e6,_0x24e538:0x4d5,_0x39e565:0x4bc,_0x22c331:0x4c5,_0xbe0ce:0x67d,_0x138682:0x645,_0x265ab4:0x4a8,_0x36118f:0x454,_0x24f69b:0x2b0,_0x1a141e:0x190,_0x40da36:0x50b,_0x39d061:0x575,_0x5b70dc:0x17e,_0x5e5711:0x2cd,_0x20a653:0x46f,_0x217c8d:0x437,_0x4ec2c5:0x462,_0x194911:0x4c4,_0x13a782:0x55c,_0x5dee69:0x611,_0x43110f:0x18e,_0x3b0f8d:0x108,_0x4a1824:0x122,_0xe6eef:0x1d7,_0x4cc080:0x56c,_0x482b24:0x4bc,_0x52b945:0x5b5,_0x20ba41:0x56b,_0x387164:0x288,_0x45c71f:0x179,_0x2334e8:0x2dd,_0x1754d2:0x27c,_0x210d46:0x281,_0x2fa715:0x1d1,_0x469b9b:0x149,_0x580884:0x5c0,_0x26bcc4:0x641,_0x41936c:0x57f,_0x4d1632:0x5c6,_0x38ac9d:0x173,_0x5b3586:0x1d6,_0xd5122c:0x1b3,_0x447038:0x220,_0x1047cf:0x27c,_0xb40468:0x2a7,_0x469561:0x596,_0x2ccbbc:0x50b,_0x26ccc9:0x64c,_0x34ef20:0x692,_0x1f4759:0x5a9,_0x34c813:0x696,_0xe1cb8c:0x4b0,_0x1b3c80:0x57d,_0x260ed2:0x5d0,_0x31480c:0x4ba,_0x4712bf:0x4f3,_0x4cc1bd:0x45f,_0x1c6f68:0x4f6,_0x4b6708:0xd7,_0x596617:0x4ee,_0x39105e:0x4d1,_0x1420f2:0x4bf,_0x5c46ba:0x22e,_0x32d8a5:0x288,_0x5464b0:0x1ed,_0x143f91:0x521,_0x26b95d:0x51e,_0x3bc829:0x546,_0x444c83:0x338,_0x44caa6:0x27c,_0x4b2b93:0x5d8,_0x34b235:0x572,_0xdc0674:0x52c,_0x456f19:0x1f4,_0x1ac263:0x266,_0x42013c:0x27a,_0x446455:0x588,_0x1d14ae:0x589,_0x17e6c9:0x20c,_0x1f07b7:0x1c5,_0x59ea67:0x27a,_0x243378:0x542,_0x19399d:0x5c7,_0xc9c2bf:0x529,_0x4d362c:0x537,_0x290339:0x474,_0x2aa425:0x4e1,_0x1d8ee5:0x56f,_0xe212f6:0x50b,_0x443ac0:0x57e,_0xdc8df1:0x56b,_0x589506:0x209,_0x4c1beb:0x453,_0x188585:0x4a6,_0x172dcf:0x562,_0x50d810:0x4df,_0xc9b560:0x5b3,_0x55d953:0x52c,_0x3f1879:0x562,_0x6d6117:0x23f,_0x29201c:0x1d5,_0x26b8fb:0x267,_0x390770:0x512,_0xeac86d:0x47c,_0x27efd4:0x542,_0x2296ea:0x2a9,_0xe4b871:0x1c7,_0x22d5ea:0x323,_0x38e511:0x28a,_0x55d61f:0xfe,_0xe06efd:0x128,_0x1ab418:0x5ae,_0x2a12e0:0x650,_0x543a8c:0x159,_0x34d6b7:0x5e5,_0x145a00:0x633,_0x44a446:0x547,_0x157c60:0x5fc,_0xfa5c2a:0x1b5,_0x52d183:0xde,_0x3d0a05:0x590,_0x2007a0:0x2a1,_0x2fa67c:0x4b5,_0x2123c5:0x525,_0x2ed603:0x5e4,_0x33d824:0x610,_0x8b7cf7:0x6af,_0x4ba4b1:0x250,_0x5e4d65:0x1bd},_0xac57aa={_0x25a523:0x1d8},_0x4d49ab={_0x32cb0b:0x260,_0x22c53f:0x8a};function _0x373b5f(_0x53cf5f,_0x4e5f15,_0x1e0c91,_0x3098d4){return _0x3c7c8d(_0x1e0c91-_0x4d49ab._0x32cb0b,_0x4e5f15-0xf6,_0x1e0c91-_0x4d49ab._0x22c53f,_0x3098d4);}function _0x30152c(_0x3b15f4,_0x5821c2,_0xef8afc,_0x397cab){return _0x3c7c8d(_0xef8afc- -0x134,_0x5821c2-0x17a,_0xef8afc-_0xac57aa._0x25a523,_0x5821c2);}switch(_0x530d7f){case _0x373b5f(0x672,_0x497e95._0x5bdaf7,0x5c8,_0x497e95._0x261b15):{const _0x1ea8d6=typeof _0x8567cf['output_index']===_0x30152c(_0x497e95._0x4c0dc8,_0x497e95._0x1093bb,0x27c,0x259)?_0x8567cf[_0x373b5f(0x533,0x5b3,_0x497e95._0x282f88,_0x497e95._0x588474)]:0x0,_0x5550c7=typeof _0x8567cf[_0x373b5f(_0x497e95._0x226557,_0x497e95._0x3d64f7,_0x497e95._0x3efb24,0x513)]===_0x373b5f(_0x497e95._0x464d74,0x4d2,0x4e1,_0x497e95._0x576de1)?_0x8567cf[_0x373b5f(0x4f6,0x442,_0x497e95._0x3efb24,_0x497e95._0x2469cf)]:'';if(_0x5550c7[_0x373b5f(_0x497e95._0x5eca83,_0x497e95._0x2d4b1f,0x5bd,0x5cb)]>0x0){const _0x4ffa58=this['responseTextParts'][_0x30152c(0x1dd,0x165,0x136,_0x497e95._0x7d4bc2)](_0x1ea8d6)??[];return _0x4ffa58[_0x30152c(_0x497e95._0xa2e8fa,_0x497e95._0x2a36e7,0x1f8,0x1a8)](_0x5550c7),this[_0x373b5f(0x4a2,0x51c,0x4b1,_0x497e95._0x5e8fba)][_0x373b5f(0x549,0x620,_0x497e95._0x580ab3,0x613)](_0x1ea8d6,_0x4ffa58),[{'type':_0x30152c(_0x497e95._0x57d146,_0x497e95._0x1c9bfc,0x18e,_0x497e95._0x5a70b7),'index':_0x1ea8d6,'text':_0x5550c7}];}break;}case _0x373b5f(_0x497e95._0x45dc4b,_0x497e95._0x4ef994,0x5a0,0x566):{const _0x539c3b=typeof _0x8567cf['output_index']==='number'?_0x8567cf[_0x30152c(_0x497e95._0x665b66,0x1b2,_0x497e95._0x688c01,_0x497e95._0x2cef9d)]:void 0x0,_0x4928a0=_0x8567cf[_0x373b5f(_0x497e95._0x3f6fdd,0x53b,0x533,0x4da)];if(_0x4928a0?.[_0x30152c(_0x497e95._0x364613,0x261,_0x497e95._0x1c437b,0x2a5)]===_0x30152c(0x1a9,_0x497e95._0x17fddc,_0x497e95._0x58cf9b,_0x497e95._0xc4d66d)&&_0x4928a0[_0x30152c(_0x497e95._0x3c1d47,_0x497e95._0x2c7c71,0x21a,0x25d)]&&_0x4928a0[_0x373b5f(_0x497e95._0x165afe,_0x497e95._0x35965d,0x53c,0x575)])return this[_0x30152c(0x165,_0x497e95._0x12dfaa,_0x497e95._0x5dff71,_0x497e95._0x58a8f5)]['set'](_0x4928a0['call_id'],{'id':_0x4928a0['call_id'],'type':_0x373b5f(0x4b8,0x4e7,0x518,_0x497e95._0x25ed1b),'function':{'name':_0x4928a0['name'],'arguments':''}}),_0x539c3b!==void 0x0&&(this['outputIndexToCallId'][_0x373b5f(0x4ca,_0x497e95._0x5d10df,0x575,0x522)](_0x539c3b,_0x4928a0[_0x30152c(0x257,_0x497e95._0x1575f7,_0x497e95._0x30b4c1,0x226)]),this[_0x373b5f(_0x497e95._0x33d0c1,_0x497e95._0x402c6d,0x52b,0x4d9)][_0x373b5f(_0x497e95._0xa350d2,_0x497e95._0x58a87f,0x575,_0x497e95._0x3afac9)](_0x4928a0[_0x30152c(0x188,0x19d,0x21a,_0x497e95._0x36ecbc)],_0x539c3b)),[{'type':_0x30152c(_0x497e95._0x599779,_0x497e95._0x948bc2,0x243,_0x497e95._0x51057c),'id':_0x4928a0[_0x30152c(0x1c8,0x24c,0x21a,0x18e)],'index':_0x539c3b??0x0,'name':_0x4928a0[_0x373b5f(_0x497e95._0x569ce9,0x491,0x53c,_0x497e95._0x3c1f32)]}];if(_0x4928a0?.[_0x30152c(_0x497e95._0x5ea952,0x229,0x22b,_0x497e95._0x2d9081)]===_0x373b5f(0x539,0x568,_0x497e95._0x5d1778,_0x497e95._0x199d0b)&&_0x4928a0['id']){const _0x4363eb=this['getOrCreateReasoningItem'](_0x4928a0['id'],_0x539c3b);_0x539c3b!==void 0x0&&this['outputIndexToReasoningId'][_0x373b5f(_0x497e95._0x4c836e,0x4dd,0x575,0x5b4)](_0x539c3b,_0x4363eb['id']);}break;}case _0x30152c(0x12f,0xa5,0x152,_0x497e95._0x2a231c):{const _0x2eff17=typeof _0x8567cf[_0x373b5f(0x515,_0x497e95._0x3a9ee0,_0x497e95._0x292cd1,_0x497e95._0x591325)]==='string'?_0x8567cf['call_id']:typeof _0x8567cf[_0x373b5f(0x4d4,_0x497e95._0x45a629,_0x497e95._0x2cbc9d,0x54e)]==='number'?this['outputIndexToCallId'][_0x373b5f(_0x497e95._0x337947,0x4a8,0x4ca,_0x497e95._0x3d6d3e)](_0x8567cf[_0x30152c(0x151,0x1d3,0x1ce,_0x497e95._0x48574d)]):void 0x0,_0x31ff6c=typeof _0x8567cf[_0x373b5f(0x53c,0x535,0x4b4,_0x497e95._0x557c4f)]===_0x30152c(0x1ab,0x1a8,0x14d,_0x497e95._0x2f2ad5)?_0x8567cf[_0x373b5f(0x48a,0x429,_0x497e95._0x3efb24,0x550)]:'',_0x57517e=_0x2eff17?this[_0x30152c(_0x497e95._0x3a0b74,0x132,0x151,0x1d7)][_0x373b5f(_0x497e95._0x3561fd,0x4f8,_0x497e95._0x35965d,_0x497e95._0x4acddc)](_0x2eff17):void 0x0;if(_0x57517e&&_0x31ff6c[_0x30152c(_0x497e95._0x2c7c71,_0x497e95._0x4697d2,_0x497e95._0x14df7c,0x2ac)]>0x0)return _0x57517e[_0x373b5f(_0x497e95._0x187d9d,0x59c,_0x497e95._0x2484e7,_0x497e95._0x176c83)][_0x30152c(0xcd,0xf7,_0x497e95._0xbfb673,_0x497e95._0x572125)]+=_0x31ff6c,[{'type':_0x30152c(0x19a,0x1b4,_0x497e95._0x29e2aa,0x207),'id':_0x57517e['id'],'index':this[_0x373b5f(0x542,0x4a1,0x52b,_0x497e95._0x59ac8b)][_0x373b5f(0x441,_0x497e95._0x5728bb,_0x497e95._0x35965d,_0x497e95._0x5448b2)](_0x57517e['id'])??(typeof _0x8567cf[_0x373b5f(_0x497e95._0x163f6b,0x4a4,_0x497e95._0x3452e9,_0x497e95._0x557c4f)]===_0x30152c(_0x497e95._0x41fdc7,0x293,_0x497e95._0x5cba4a,0x257)?_0x8567cf['output_index']:0x0),'inputDelta':_0x31ff6c}];break;}case'response.function_call_arguments.done':{const _0x5f1694=typeof _0x8567cf['call_id']===_0x373b5f(0x534,_0x497e95._0x48b7d3,0x4e1,0x4c5)?_0x8567cf[_0x373b5f(0x66e,_0x497e95._0x576de1,0x5ae,0x59f)]:typeof _0x8567cf[_0x373b5f(_0x497e95._0x66a30b,0x578,0x562,0x5c6)]===_0x30152c(0x32e,_0x497e95._0x8e9aea,0x27c,0x281)?this[_0x373b5f(_0x497e95._0x39636b,_0x497e95._0x59b10c,_0x497e95._0x1fe617,_0x497e95._0x15c2f6)][_0x373b5f(_0x497e95._0x5cd73d,_0x497e95._0x5650e3,0x4ca,_0x497e95._0x464d74)](_0x8567cf[_0x30152c(0x1d6,0x1cf,_0x497e95._0x5d167b,_0x497e95._0x560c1a)]):void 0x0,_0x3246ac=_0x5f1694?this['toolCalls'][_0x373b5f(_0x497e95._0xae5c6a,0x4e2,_0x497e95._0x35965d,_0x497e95._0x2c50be)](_0x5f1694):void 0x0;_0x3246ac&&typeof _0x8567cf['arguments']===_0x30152c(_0x497e95._0x1f8788,_0x497e95._0x4c1559,_0x497e95._0x5a57d7,_0x497e95._0x45ec7c)&&(_0x3246ac['function'][_0x373b5f(0x45f,0x459,_0x497e95._0x1162c7,0x417)]=_0x8567cf[_0x30152c(0x168,0x17f,0x122,0x7d)]);break;}case _0x373b5f(_0x497e95._0x30f09a,_0x497e95._0x5d831c,_0x497e95._0xe0f9f6,0x50d):{const _0x41e94e=typeof _0x8567cf[_0x30152c(_0x497e95._0x747544,0x24f,0x1ce,0x11c)]===_0x373b5f(0x61c,0x5f7,_0x497e95._0x405bf8,_0x497e95._0xa801c8)?_0x8567cf[_0x373b5f(_0x497e95._0x3aaf92,_0x497e95._0x1207db,_0x497e95._0x2cbc9d,_0x497e95._0xf625ae)]:void 0x0,_0x166553=_0x8567cf[_0x373b5f(_0x497e95._0x2a5d80,0x4f6,0x533,0x51f)];if(_0x166553?.[_0x30152c(0x1c9,0x2e1,_0x497e95._0x1c437b,_0x497e95._0x229694)]===_0x30152c(_0x497e95._0xc4d66d,0xf2,0x106,0x10a)){const _0x3d4302=_0x166553['call_id']??(_0x41e94e!==void 0x0?this[_0x30152c(0x167,_0x497e95._0x18e069,_0x497e95._0x141250,_0x497e95._0x2c3626)][_0x30152c(0x106,0x15b,_0x497e95._0xa9c0fc,_0x497e95._0x57d146)](_0x41e94e):void 0x0),_0x250b61=_0x3d4302?this['toolCalls'][_0x30152c(_0x497e95._0x2f91e1,0x97,_0x497e95._0x284f5e,0x16c)](_0x3d4302):void 0x0;_0x250b61&&typeof _0x166553[_0x30152c(_0x497e95._0xa8948e,_0x497e95._0x52a495,0x122,_0x497e95._0x5a2411)]===_0x373b5f(_0x497e95._0x1b7008,0x556,_0x497e95._0xfeedf2,0x487)&&(_0x250b61['function'][_0x30152c(0x183,0x10d,0x122,0xeb)]=_0x166553[_0x373b5f(0x416,_0x497e95._0x1d06e8,0x4b6,_0x497e95._0x1cb869)]);break;}if(_0x166553?.[_0x373b5f(0x566,_0x497e95._0x3a9039,_0x497e95._0x308a19,0x5fc)]===_0x373b5f(0x496,0x536,_0x497e95._0x5d1778,0x4e8)&&_0x166553['id']){const _0x2ba986=this[_0x373b5f(_0x497e95._0x1650f2,0x556,_0x497e95._0x2b9435,0x4aa)](_0x166553['id'],_0x41e94e);typeof _0x166553[_0x30152c(0x29d,_0x497e95._0x2a3c20,_0x497e95._0xbe0fec,_0x497e95._0x51e7ce)]===_0x30152c(_0x497e95._0x4da38d,_0x497e95._0x595d7d,_0x497e95._0x5a57d7,0xc3)&&(_0x2ba986['encryptedContent']=_0x166553[_0x30152c(0x1e9,_0x497e95._0x610a39,_0x497e95._0x1acd8f,_0x497e95._0x5c7f4d)]);if(Array['isArray'](_0x166553['summary']))for(let _0x1d8021=0x0;_0x1d8021<_0x166553[_0x373b5f(0x42e,_0x497e95._0x527b7e,0x4ce,_0x497e95._0x2f18fc)]['length'];_0x1d8021+=0x1){const _0x1d5c68=_0x166553[_0x373b5f(0x475,0x4b3,_0x497e95._0x17c89d,_0x497e95._0x7de3fc)][_0x1d8021];_0x1d5c68['type']===_0x373b5f(0x6a7,_0x497e95._0x5661e7,_0x497e95._0x329ece,_0x497e95._0x4c4e74)&&typeof _0x1d5c68['text']===_0x373b5f(0x4d9,0x481,_0x497e95._0xfeedf2,_0x497e95._0x36003b)&&_0x2ba986[_0x30152c(_0x497e95._0x462cfa,_0x497e95._0x5a8502,_0x497e95._0xf65b8c,_0x497e95._0x51bf4b)]['set'](_0x1d8021,_0x1d5c68[_0x30152c(_0x497e95._0x200389,0x1cf,_0x497e95._0x42b69d,0x292)]);}typeof _0x166553[_0x30152c(_0x497e95._0x13fd04,_0x497e95._0x40c71d,_0x497e95._0x42b69d,_0x497e95._0x5dd29b)]===_0x373b5f(_0x497e95._0x166047,_0x497e95._0x2eb264,0x4e1,0x4f4)&&_0x2ba986['textByIndex'][_0x373b5f(_0x497e95._0x3dedde,0x4c6,0x575,_0x497e95._0x195e6f)](0x0,_0x166553[_0x30152c(_0x497e95._0x1ea61c,0x213,_0x497e95._0x207c53,0x300)]);}break;}case _0x30152c(_0x497e95._0x2275a5,0x6c,_0x497e95._0x253985,0xf1):{const _0x32df71=typeof _0x8567cf['delta']===_0x30152c(0xf5,_0x497e95._0x435b97,_0x497e95._0x1a4f06,0x1d0)?_0x8567cf[_0x30152c(0x181,_0x497e95._0x1c341b,_0x497e95._0xb2ed64,_0x497e95._0x484ec8)]:'',_0x5b1cff=typeof _0x8567cf[_0x373b5f(_0x497e95._0x2cdc45,_0x497e95._0x402873,0x56b,0x590)]===_0x373b5f(_0x497e95._0x4943c1,_0x497e95._0x1ff387,0x4e1,_0x497e95._0x71a2c8)?_0x8567cf[_0x30152c(0x189,_0x497e95._0x24a811,0x1d7,_0x497e95._0x51bf4b)]:typeof _0x8567cf['output_index']===_0x30152c(_0x497e95._0x50e25d,_0x497e95._0x53dd11,_0x497e95._0x3d1d1d,_0x497e95._0x3a5892)?this[_0x30152c(_0x497e95._0xfef847,0xc5,_0x497e95._0x54f10c,_0x497e95._0x2d8c19)][_0x30152c(0x1da,0xe3,0x136,0x1e4)](_0x8567cf['output_index']):void 0x0,_0x162945=typeof _0x8567cf[_0x30152c(_0x497e95._0x43b294,_0x497e95._0x259c16,0x1ce,_0x497e95._0x3eae2f)]===_0x30152c(0x243,_0x497e95._0x24cd2a,0x27c,_0x497e95._0x454e3a)?_0x8567cf[_0x373b5f(_0x497e95._0x5623e5,_0x497e95._0x24e538,_0x497e95._0x3452e9,0x5f5)]:0x0,_0x152e4e=typeof _0x8567cf[_0x373b5f(0x460,_0x497e95._0x39e565,0x50b,_0x497e95._0x22c331)]==='number'?_0x8567cf[_0x373b5f(0x484,0x45d,0x50b,0x4f0)]:0x0;if(_0x5b1cff&&_0x32df71[_0x373b5f(0x5c3,_0x497e95._0xbe0ce,0x5bd,_0x497e95._0x138682)]>0x0){const _0x37eed8=this[_0x373b5f(_0x497e95._0x265ab4,_0x497e95._0x36118f,0x4ef,0x51e)](_0x5b1cff,_0x162945);_0x37eed8[_0x30152c(0x2ef,_0x497e95._0x24f69b,0x23c,_0x497e95._0x1a141e)][_0x373b5f(0x628,_0x497e95._0x40da36,_0x497e95._0x39d061,0x4e5)](_0x152e4e,''+(_0x37eed8[_0x30152c(0x2fa,_0x497e95._0x5b70dc,0x23c,_0x497e95._0x5e5711)][_0x373b5f(_0x497e95._0x20a653,0x58a,0x4ca,_0x497e95._0x217c8d)](_0x152e4e)??'')+_0x32df71);if(isUserVisibleReasoning(this[_0x373b5f(_0x497e95._0x4ec2c5,0x4e7,_0x497e95._0x194911,_0x497e95._0x13a782)]))return[{'type':_0x373b5f(0x579,0x657,0x612,_0x497e95._0x5dee69),'delta':_0x32df71,'itemId':_0x5b1cff,'outputIndex':_0x162945,'summaryIndex':_0x152e4e}];}break;}case _0x30152c(_0x497e95._0x43110f,_0x497e95._0x3b0f8d,0x155,0x152):{const _0xe5a93c=typeof _0x8567cf[_0x30152c(0x270,_0x497e95._0x4a1824,_0x497e95._0xe6eef,0x228)]===_0x373b5f(_0x497e95._0x4cc080,0x4a8,0x4e1,_0x497e95._0x482b24)?_0x8567cf[_0x373b5f(0x56e,_0x497e95._0x52b945,_0x497e95._0x20ba41,0x5b4)]:typeof _0x8567cf[_0x30152c(_0x497e95._0x387164,_0x497e95._0x45c71f,0x1ce,0x207)]===_0x30152c(0x275,_0x497e95._0x2334e8,_0x497e95._0x1754d2,_0x497e95._0x210d46)?this['outputIndexToReasoningId']['get'](_0x8567cf[_0x30152c(_0x497e95._0x3a0b74,0x1a5,0x1ce,_0x497e95._0x2fa715)]):void 0x0,_0x2df10c=typeof _0x8567cf[_0x30152c(0x144,0x142,0x1ce,_0x497e95._0x469b9b)]===_0x373b5f(_0x497e95._0x580884,_0x497e95._0x26bcc4,0x610,0x5b0)?_0x8567cf[_0x373b5f(_0x497e95._0x41936c,_0x497e95._0x4d1632,0x562,0x561)]:0x0,_0x578766=typeof _0x8567cf[_0x30152c(_0x497e95._0x38ac9d,_0x497e95._0x5b3586,0x177,_0x497e95._0xd5122c)]===_0x30152c(_0x497e95._0x447038,0x32e,_0x497e95._0x1047cf,_0x497e95._0xb40468)?_0x8567cf[_0x373b5f(0x45f,_0x497e95._0x469561,_0x497e95._0x2ccbbc,0x4fb)]:0x0,_0x46bb0c=typeof _0x8567cf[_0x373b5f(_0x497e95._0x26ccc9,_0x497e95._0x34ef20,0x5e6,_0x497e95._0x1f4759)]==='string'?_0x8567cf[_0x373b5f(0x52e,0x622,0x5e6,_0x497e95._0x34c813)]:'';_0xe5a93c&&this[_0x373b5f(0x50c,0x5ad,0x4ef,_0x497e95._0xe1cb8c)](_0xe5a93c,_0x2df10c)[_0x373b5f(0x59b,_0x497e95._0x1b3c80,_0x497e95._0x260ed2,0x5b8)]['set'](_0x578766,_0x46bb0c);break;}case _0x373b5f(_0x497e95._0x31480c,0x458,0x4f6,_0x497e95._0x4712bf):{const _0x5ecd7e=typeof _0x8567cf[_0x373b5f(0x403,0x566,_0x497e95._0x3efb24,_0x497e95._0x4cc1bd)]===_0x373b5f(0x4d6,0x57b,0x4e1,_0x497e95._0x1c6f68)?_0x8567cf[_0x30152c(0xb2,_0x497e95._0x4b6708,_0x497e95._0xb2ed64,0xb8)]:'',_0x40a53d=typeof _0x8567cf['item_id']===_0x373b5f(_0x497e95._0x596617,0x57d,0x4e1,0x49e)?_0x8567cf[_0x373b5f(0x5b5,_0x497e95._0x39105e,0x56b,_0x497e95._0x1420f2)]:typeof _0x8567cf[_0x30152c(_0x497e95._0x5c46ba,0x1f0,0x1ce,0x19f)]===_0x30152c(0x316,0x21e,0x27c,_0x497e95._0x32d8a5)?this[_0x30152c(0x155,0x8a,0x141,_0x497e95._0x5464b0)][_0x30152c(0x131,0x1ac,0x136,0x161)](_0x8567cf['output_index']):void 0x0,_0x89b3fa=typeof _0x8567cf[_0x30152c(_0x497e95._0x40c71d,0x162,0x1ce,_0x497e95._0x2c7c71)]==='number'?_0x8567cf[_0x373b5f(0x5c6,_0x497e95._0x143f91,0x562,0x5af)]:0x0,_0xfcba26=typeof _0x8567cf[_0x373b5f(_0x497e95._0x26b95d,0x4fa,0x572,_0x497e95._0x3bc829)]===_0x30152c(_0x497e95._0x444c83,0x2c3,_0x497e95._0x44caa6,0x2a8)?_0x8567cf[_0x373b5f(0x5a0,_0x497e95._0x4b2b93,_0x497e95._0x34b235,_0x497e95._0xdc0674)]:0x0;if(_0x40a53d&&_0x5ecd7e[_0x30152c(0x219,0x291,_0x497e95._0x14df7c,_0x497e95._0x456f19)]>0x0){const _0x1713d1=this[_0x373b5f(_0x497e95._0xdc0674,_0x497e95._0x1c6f68,0x4ef,0x45f)](_0x40a53d,_0x89b3fa);_0x1713d1[_0x30152c(_0x497e95._0x1ac263,0x20a,_0x497e95._0x42013c,0x1f6)][_0x373b5f(_0x497e95._0x446455,_0x497e95._0x1d14ae,_0x497e95._0x580ab3,0x541)](_0xfcba26,''+(_0x1713d1[_0x30152c(_0x497e95._0x17e6c9,_0x497e95._0x1f07b7,_0x497e95._0x59ea67,0x2ff)]['get'](_0xfcba26)??'')+_0x5ecd7e);if(isUserVisibleReasoning(this[_0x30152c(0x172,0x177,0x130,0x109)]))return[{'type':_0x373b5f(0x5d8,_0x497e95._0x3bc829,_0x497e95._0x243378,_0x497e95._0x19399d),'contentIndex':_0xfcba26,'delta':_0x5ecd7e,'itemId':_0x40a53d,'outputIndex':_0x89b3fa}];}break;}case _0x373b5f(_0x497e95._0xc9c2bf,_0x497e95._0x4d362c,0x5af,0x5ce):{const _0x52fe42=typeof _0x8567cf['item_id']===_0x373b5f(_0x497e95._0x290339,0x569,_0x497e95._0x2aa425,_0x497e95._0x1d8ee5)?_0x8567cf[_0x373b5f(_0x497e95._0xe212f6,_0x497e95._0x443ac0,_0x497e95._0xdc8df1,0x51b)]:typeof _0x8567cf[_0x30152c(_0x497e95._0x589506,0x260,0x1ce,0x130)]==='number'?this['outputIndexToReasoningId'][_0x373b5f(_0x497e95._0x4ef994,0x586,0x4ca,_0x497e95._0x4c1beb)](_0x8567cf[_0x373b5f(_0x497e95._0x188585,0x52e,_0x497e95._0x172dcf,_0x497e95._0x50d810)]):void 0x0,_0x1953ba=typeof _0x8567cf[_0x373b5f(_0x497e95._0xc9b560,_0x497e95._0x55d953,_0x497e95._0x3f1879,0x582)]===_0x30152c(_0x497e95._0x6d6117,_0x497e95._0x29201c,_0x497e95._0x44caa6,_0x497e95._0x26b8fb)?_0x8567cf['output_index']:0x0,_0x12e4c5=typeof _0x8567cf[_0x373b5f(0x62f,0x5cb,0x572,_0x497e95._0xc9b560)]==='number'?_0x8567cf[_0x373b5f(0x545,0x4d5,0x572,_0x497e95._0x390770)]:0x0,_0x310985=typeof _0x8567cf['text']===_0x373b5f(_0x497e95._0xeac86d,_0x497e95._0x187d9d,_0x497e95._0x2aa425,_0x497e95._0x27efd4)?_0x8567cf['text']:'';_0x52fe42&&this['getOrCreateReasoningItem'](_0x52fe42,_0x1953ba)[_0x30152c(_0x497e95._0x2296ea,_0x497e95._0xe4b871,0x27a,_0x497e95._0x22d5ea)][_0x30152c(0x129,0x13e,0x1e1,_0x497e95._0x38e511)](_0x12e4c5,_0x310985);break;}case _0x30152c(_0x497e95._0x55d61f,_0x497e95._0xe06efd,0x182,_0x497e95._0x3b0f8d):{this[_0x373b5f(_0x497e95._0x1ab418,_0x497e95._0x2a12e0,0x5c2,0x548)]=_0x8567cf['response'];break;}case _0x30152c(0x13f,0x200,_0x497e95._0x543a8c,_0x497e95._0x29201c):{const _0x2360cc=_0x8567cf['response'];throw new OpenAiResponsesStreamError(_0x2360cc?.[_0x373b5f(0x614,_0x497e95._0x52b945,_0x497e95._0x34d6b7,_0x497e95._0x145a00)]?.['message']??'Responses\x20stream\x20failed',{'code':_0x2360cc?.[_0x373b5f(_0x497e95._0x44a446,0x572,0x5e5,_0x497e95._0x157c60)]?.[_0x30152c(_0x497e95._0xfa5c2a,_0x497e95._0x52d183,0x193,0x17e)]});}case _0x373b5f(0x620,0x57b,0x5e5,_0x497e95._0x3d64f7):{const _0x2de1ee=_0x8567cf['error'];throw new OpenAiResponsesStreamError(_0x2de1ee?.[_0x373b5f(0x69d,_0x497e95._0x446455,0x5f0,_0x497e95._0x3d0a05)]??_0x30152c(0x2e0,0x2db,0x220,_0x497e95._0x2007a0),{'code':_0x2de1ee?.[_0x373b5f(_0x497e95._0x2fa67c,0x599,0x527,_0x497e95._0x2123c5)],'status':typeof _0x8567cf[_0x373b5f(0x578,0x669,_0x497e95._0x2ed603,0x5c2)]===_0x373b5f(0x66d,0x592,_0x497e95._0x33d824,_0x497e95._0x8b7cf7)?_0x8567cf[_0x30152c(0x205,0x20b,_0x497e95._0x4ba4b1,_0x497e95._0x5e4d65)]:void 0x0});}}return[];}[_0x65d232(-0x2e,-0xee,0x45,-0xbd)](){const _0x3170a8={_0x559428:0x220,_0x430934:0x354,_0x18b42f:0x130,_0x1d7296:0x148,_0x1af2bf:0x3b6,_0x44e896:0x38d,_0x5c442d:0x35c,_0x300563:0x44c,_0x141345:0x335,_0x23b557:0x386,_0x1183d6:0x315,_0x33ff89:0x269,_0x486deb:0x3d2,_0x23d01b:0x1d7,_0x1947ca:0x1da,_0x21ef30:0x417,_0x5f3154:0x35e,_0x63aa28:0x349,_0x265444:0x183,_0x6ff678:0x181,_0x3a13f8:0xd4,_0x3c6a30:0x185,_0x16b6db:0x354,_0x61e68c:0x438,_0x285f49:0xa2,_0x45eb7c:0x79,_0xf7d4eb:0x3cc,_0x33a46c:0x30d,_0x450d22:0x2f8,_0x449e3f:0x349,_0x418360:0x2fe,_0x2dd219:0x63,_0x4b8267:0xe5,_0x59ae01:0x3b9,_0x2e3769:0x308,_0x42533a:0x377,_0xf22e36:0x1ed,_0x4e7ff0:0x112,_0x255e85:0x195,_0xbb03c0:0x19d,_0x2b7806:0x161,_0x385d3e:0xaf,_0x13050f:0x132,_0x433416:0xaa,_0x338d68:0x336,_0x1a29e2:0x381,_0x31810c:0x2f4,_0x4f50d6:0x6d,_0x254b38:0x1b1,_0x40f742:0x7b,_0x3ea6b8:0x1f3,_0x101492:0x133,_0x4018fc:0x13b,_0x2727e6:0x26a,_0xefd104:0x1b9,_0x3b9479:0x33d,_0x54533f:0x31b,_0x21ed07:0x348,_0x45c1ac:0x37a,_0xf4f051:0x278,_0x1ed3fc:0x1cc,_0x1180ff:0x123,_0x492d52:0x399,_0x2e520e:0x323,_0x4c51ff:0x291,_0x2d41bc:0x394},_0x385f69={_0xfcba85:0x21},_0x5ea291={_0x93f96c:0x143},_0x4beee3={_0x23b6af:0x18e,_0x3b225f:0x2c8},_0x233132={_0x270748:0x45d},_0x4f91c2=[];function _0xae46b3(_0xff0526,_0x8751ee,_0x1e84b2,_0x936940){return _0x3c7c8d(_0x1e84b2- -_0x233132._0x270748,_0x8751ee-0x13c,_0x1e84b2-0x65,_0xff0526);}for(const [_0x2fe34d,_0x4ea84a]of this[_0x1b53ea(0x327,0x281,0x1d3,_0x3170a8._0x559428)][_0x1b53ea(0x34a,_0x3170a8._0x430934,0x412,0x3c2)]()){const _0x5b00eb=_0x4ea84a[_0xae46b3(-0x72,-_0x3170a8._0x18b42f,-0xf9,-_0x3170a8._0x1d7296)]('');if(_0x5b00eb[_0x1b53ea(_0x3170a8._0x1af2bf,_0x3170a8._0x44e896,0x401,0x44a)]===0x0)continue;_0x4f91c2[_0x1b53ea(0x348,_0x3170a8._0x5c442d,0x2f7,0x3a3)]({'index':_0x2fe34d,'item':{'type':_0x1b53ea(_0x3170a8._0x300563,0x3c0,_0x3170a8._0x141345,0x3a0),'role':_0x1b53ea(_0x3170a8._0x23b557,_0x3170a8._0x1183d6,_0x3170a8._0x33ff89,_0x3170a8._0x486deb),'content':[{'type':_0xae46b3(-0x261,-_0x3170a8._0x23d01b,-_0x3170a8._0x1947ca,-0x21c),'text':_0x5b00eb}]}});}for(const _0x51eae3 of this['reasoningItems'][_0x1b53ea(_0x3170a8._0x21ef30,_0x3170a8._0x5f3154,0x3b5,0x3fc)]()){_0x4f91c2['push']({'index':_0x51eae3[_0x1b53ea(0x379,0x30f,_0x3170a8._0x63aa28,0x32b)]??_0x4f91c2[_0xae46b3(-_0x3170a8._0x265444,-0x85,-0x100,-_0x3170a8._0x6ff678)],'item':{'type':'reasoning','id':_0x51eae3['id'],..._0x51eae3[_0xae46b3(-_0x3170a8._0x3a13f8,-0xa4,-0xfa,-_0x3170a8._0x3c6a30)]?{'encrypted_content':_0x51eae3[_0x1b53ea(_0x3170a8._0x16b6db,0x393,_0x3170a8._0x61e68c,0x3a8)]}:{},..._0x51eae3[_0xae46b3(-_0x3170a8._0x285f49,-_0x3170a8._0x45eb7c,-0xed,-0x127)][_0x1b53ea(_0x3170a8._0xf7d4eb,0x33a,0x3b3,_0x3170a8._0x33a46c)]>0x0?{'summary':Array[_0x1b53ea(0x317,_0x3170a8._0x450d22,_0x3170a8._0x449e3f,0x2ff)](_0x51eae3['summaryByIndex'][_0x1b53ea(_0x3170a8._0x418360,_0x3170a8._0x16b6db,0x2a6,0x2bc)]())[_0xae46b3(-_0x3170a8._0x2dd219,-0x1a3,-_0x3170a8._0x4b8267,-0x10b)]((_0x46f037,_0x32f782)=>_0x46f037[0x0]-_0x32f782[0x0])[_0x1b53ea(_0x3170a8._0x59ae01,0x323,0x3c2,_0x3170a8._0x2e3769)](([,_0x4bf183])=>{function _0x16ee79(_0x3226a8,_0x4f3f87,_0x334b43,_0x23f2df){return _0x1b53ea(_0x3226a8-_0x4beee3._0x23b6af,_0x3226a8- -_0x4beee3._0x3b225f,_0x4f3f87,_0x23f2df-0xd1);}return{'type':_0x16ee79(0x10f,0x106,_0x5ea291._0x93f96c,0x154),'text':_0x4bf183};})}:{},..._0x51eae3[_0x1b53ea(0x3ce,0x3de,_0x3170a8._0x42533a,0x448)]['size']>0x0?{'text':Array[_0xae46b3(-_0x3170a8._0xf22e36,-_0x3170a8._0x4e7ff0,-_0x3170a8._0x255e85,-_0x3170a8._0xbb03c0)](_0x51eae3[_0xae46b3(-0x136,-_0x3170a8._0x2b7806,-_0x3170a8._0x385d3e,-_0x3170a8._0x13050f)][_0xae46b3(-0xdf,-_0x3170a8._0x433416,-0x139,-0xd1)]())[_0x1b53ea(0x400,0x3a8,0x34f,_0x3170a8._0x338d68)]((_0x29de0c,_0x2dd4a1)=>_0x29de0c[0x0]-_0x2dd4a1[0x0])[_0x1b53ea(_0x3170a8._0x2e3769,0x323,_0x3170a8._0x1a29e2,_0x3170a8._0x31810c)](([,_0x394274])=>_0x394274)[_0xae46b3(-0xe5,-_0x3170a8._0x4f50d6,-0xf9,-_0x3170a8._0x254b38)]('')}:{}}});}function _0x1b53ea(_0x189fe8,_0x45412f,_0x226295,_0x3d21d1){return _0x3c7c8d(_0x45412f-0x30,_0x45412f-_0x385f69._0xfcba85,_0x226295-0x1a5,_0x226295);}for(const _0x2352a2 of this[_0x1b53ea(0x22e,0x2b5,0x2dd,0x2b4)][_0xae46b3(-_0x3170a8._0x40f742,-0x71,-0x12f,-0x1d1)]()){_0x4f91c2[_0x1b53ea(0x41d,0x35c,0x385,0x3d9)]({'index':this['callIdToOutputIndex'][_0xae46b3(-0x1e0,-0x212,-_0x3170a8._0x3ea6b8,-0x17e)](_0x2352a2['id'])??_0x4f91c2[_0xae46b3(-_0x3170a8._0x101492,-0x12a,-0x100,-_0x3170a8._0x4018fc)],'item':{'type':_0x1b53ea(0x2ad,_0x3170a8._0x2727e6,_0x3170a8._0xefd104,0x20b),'call_id':_0x2352a2['id'],'name':_0x2352a2[_0x1b53ea(_0x3170a8._0x3b9479,0x2e8,0x2c0,_0x3170a8._0x54533f)]['name'],'arguments':_0x2352a2[_0x1b53ea(0x2cc,0x2e8,_0x3170a8._0x21ed07,_0x3170a8._0x45c1ac)][_0xae46b3(-0x170,-_0x3170a8._0xf4f051,-0x207,-_0x3170a8._0x1ed3fc)]}});}return _0x4f91c2[_0xae46b3(-0x108,-_0x3170a8._0x1180ff,-0xe5,-0x8d)]((_0x57baae,_0x4b303e)=>_0x57baae[_0xae46b3(-0x224,-0x1af,-0x1fd,-0x16b)]-_0x4b303e[_0x1b53ea(0x348,0x290,0x294,0x234)])[_0x1b53ea(_0x3170a8._0x492d52,_0x3170a8._0x2e520e,_0x3170a8._0x4c51ff,_0x3170a8._0x2d41bc)](_0x42c5d5=>_0x42c5d5[_0x1b53ea(0x294,0x303,0x38f,0x3b9)]);}[_0x65d232(0x17,-0x7d,0x98,-0x4f)](_0x9a944c,_0x5da55a){const _0x171913={_0x35e63a:0x76,_0x489eab:0x2,_0x3e9e32:0x28,_0x38d95e:0x7b,_0x5bbde4:0x76,_0x559ae1:0x52,_0x285c22:0x11,_0x486ad3:0x6a,_0x432a91:0xc7,_0x5d84e6:0xbe,_0x2b0318:0x66},_0x342f61={_0x53a0a3:0x42f,_0x111eb6:0x1cf},_0x45e0b3={_0x3b8d58:0x264,_0x46de75:0x128},_0x1cd5fa=this[_0x5797a7(-_0x171913._0x35e63a,-0x10d,-0x182,-0xea)]['get'](_0x9a944c);function _0x200b36(_0x25f36a,_0x299d0b,_0x1682b3,_0x3011a0){return _0x3c7c8d(_0x1682b3- -_0x45e0b3._0x3b8d58,_0x299d0b-_0x45e0b3._0x46de75,_0x1682b3-0x2a,_0x3011a0);}if(_0x1cd5fa)return _0x5da55a!==void 0x0&&(_0x1cd5fa[_0x200b36(-_0x171913._0x489eab,-_0x171913._0x3e9e32,_0x171913._0x38d95e,0xd3)]=_0x5da55a,this[_0x200b36(-_0x171913._0x5bbde4,_0x171913._0x559ae1,_0x171913._0x285c22,_0x171913._0x486ad3)][_0x200b36(0x49,0x21,0xb1,0x14a)](_0x5da55a,_0x9a944c)),_0x1cd5fa;function _0x5797a7(_0x222e4d,_0x41f7a0,_0x55d034,_0xe59af8){return _0x3c7c8d(_0x41f7a0- -_0x342f61._0x53a0a3,_0x41f7a0-0x9a,_0x55d034-_0x342f61._0x111eb6,_0xe59af8);}const _0x320347={'id':_0x9a944c,'outputIndex':_0x5da55a,'summaryByIndex':new Map(),'textByIndex':new Map()};return this[_0x200b36(0x12e,_0x171913._0x432a91,_0x171913._0x5d84e6,0x10b)]['set'](_0x9a944c,_0x320347),_0x5da55a!==void 0x0&&this[_0x200b36(-_0x171913._0x559ae1,_0x171913._0x2b0318,_0x171913._0x285c22,0xc0)]['set'](_0x5da55a,_0x9a944c),_0x320347;}};function createOpenAiResponsesStreamParser(_0x1a8d94){return new OpenAiResponsesStreamParser(_0x1a8d94);}function createOpenAiSurfaces(_0x329d6e={}){const _0x26e450={_0x29c593:0x3fb,_0x209fc6:0x39f,_0x26c5a3:0x381,_0x6625a0:0x33a,_0x20923f:0x33d,_0x3bf225:0x30c,_0xec576b:0x29c,_0x3b048a:0x393,_0x7ac0f2:0x314,_0x16cc09:0x524,_0x225b87:0x31b,_0x58d603:0x324,_0x5547ab:0x2ff,_0x4178c7:0x3ef,_0x318c90:0x358},_0x4e7727={_0x21ea3d:0x140,_0x461be6:0x133},_0xde0133={_0x5e6414:0x250},_0x1a45a3={_0x223e97:0x14a,_0x8f5ad5:0xb4,_0x3e1c20:0x177},_0x17d0c9={_0x3cae43:0xeb,_0x5dd1e6:0x19c},_0x304dd4={_0x34f0b0:0xe4},_0x1082df={_0x40138b:0x43f,_0x3ae9f7:0x13},_0x66eba4=_0x329d6e[_0x5097d8(_0x26e450._0x29c593,0x2c6,0x3f0,0x382)]??_0x5097d8(0x317,_0x26e450._0x209fc6,_0x26e450._0x26c5a3,_0x26e450._0x6625a0);function _0x1eeefb(_0x47dd9c,_0x4a3eb5,_0x47933e,_0x4c187f){return _0x65d232(_0x4c187f-_0x1082df._0x40138b,_0x4a3eb5,_0x47933e-_0x1082df._0x3ae9f7,_0x4c187f-0x1ef);}function _0x5097d8(_0xd1fc96,_0x10876f,_0xb401d2,_0x4a2926){return _0x3c7c8d(_0x4a2926-0x63,_0x10876f-0x99,_0xb401d2-_0x304dd4._0x34f0b0,_0xd1fc96);}const _0x573416=_0x329d6e[_0x5097d8(_0x26e450._0x20923f,_0x26e450._0x3bf225,0x36a,0x340)]??'/responses';return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':'http-json','createRequest'(_0x2a1287){function _0x2fe7f6(_0x34c027,_0x3dc10e,_0x47a9a2,_0x13208e){return _0x1eeefb(_0x34c027-_0x17d0c9._0x3cae43,_0x47a9a2,_0x47a9a2-_0x17d0c9._0x5dd1e6,_0x34c027- -0x652);}return{'accept':_0x2fe7f6(-_0x1a45a3._0x223e97,-0x1d1,-_0x1a45a3._0x8f5ad5,-_0x1a45a3._0x3e1c20),'body':createChatRequestBody(_0x2a1287,![]),'path':_0x66eba4};},'parseResponse'(_0xfb1fbe){return parseChatCompletionResponse(_0xfb1fbe);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0x5097d8(0x3bc,_0x26e450._0xec576b,_0x26e450._0x3b048a,_0x26e450._0x7ac0f2),'createRequest'(_0x1ecb3b){function _0x3fa301(_0x117ed3,_0x1331b8,_0x2f6af7,_0x3672f8){return _0x5097d8(_0x2f6af7,_0x1331b8-0x86,_0x2f6af7-0x1bf,_0x1331b8- -0x197);}return{'accept':_0x3fa301(0x313,0x26a,_0xde0133._0x5e6414,0x2f8),'body':createChatRequestBody(_0x1ecb3b,!![]),'path':_0x66eba4};},'createStreamParser'(){return new OpenAiChatCompletionsStreamParser();}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0x1eeefb(_0x26e450._0x16cc09,0x43b,0x51f,0x46c),'createRequest'(_0x57ecd0){function _0x29f05d(_0x53ca46,_0x339d6d,_0xc9dd8b,_0x3345cf){return _0x1eeefb(_0x53ca46-_0x4e7727._0x21ea3d,_0x53ca46,_0xc9dd8b-0x1e6,_0x3345cf- -_0x4e7727._0x461be6);}return{'accept':_0x29f05d(0x347,0x3b0,0x375,0x3d5),'body':createResponsesRequestBody(_0x57ecd0,![]),'path':_0x573416};},'parseResponse'(_0x4c541b,_0x439480){return parseResponsesResponse(_0x4c541b,_0x439480);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':_0x5097d8(_0x26e450._0x225b87,_0x26e450._0x58d603,0x320,0x314),'createRequest'(_0x2a9e5e){return{'accept':'text/event-stream','body':createResponsesRequestBody(_0x2a9e5e,!![]),'path':_0x573416};},'createStreamParser'(_0x2cda5c){return new OpenAiResponsesStreamParser(_0x2cda5c);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':_0x5097d8(_0x26e450._0x5547ab,_0x26e450._0x4178c7,_0x26e450._0x318c90,0x37d),'createRequest'(_0x3108b9){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x3108b9),'path':_0x573416};},'createStreamParser'(_0x3724b4){return createOpenAiResponsesStreamParser(_0x3724b4);}}];}var OpenAiProviderAdapter=class{[_0x65d232(-0x28,-0x90,-0x1d,-0x8d)];constructor(_0x4427f9){this['headerResolver']=_0x4427f9;}[_0x65d232(0x2,0x46,0x91,0x10)](){const _0x18a80f={_0x5e2187:0x109,_0xa22beb:0x10e},_0x3fe696={_0x48a4cc:0x112,_0x1307cd:0x63,_0x4a31af:0xca};function _0x525715(_0x499b0b,_0x2e86c8,_0x42d4b1,_0x2fb2e9){return _0x65d232(_0x2fb2e9- -_0x3fe696._0x48a4cc,_0x42d4b1,_0x42d4b1-_0x3fe696._0x1307cd,_0x2fb2e9-_0x3fe696._0x4a31af);}return new Error(_0x525715(0x19,-_0x18a80f._0x5e2187,-_0x18a80f._0xa22beb,-0x67));}async[_0x3c7c8d(0x33f,0x2bd,0x29c,0x2c7)](_0x296ff9,_0x333bc0){const _0x7ea2d6={_0x345e0c:0x3bc,_0x42afcd:0x4b7,_0x818d57:0x4f0,_0x7ccdd9:0x2a2,_0x2e0967:0x349,_0x27f65a:0x356,_0x49ed72:0x43a,_0x47b6db:0x4a8,_0x3762f8:0x4a9,_0x4bb1bc:0x223,_0x2da69e:0x18c,_0x5f4f2c:0x222,_0x814c30:0x203,_0x5c1348:0x1a7,_0x4e0816:0x10d,_0x4c3e28:0x3b6,_0xd051c7:0x3a4,_0x5d3a4e:0x1e1,_0x1c321e:0x295,_0x4c1150:0x405,_0x24ae50:0x481,_0x21f16a:0x4c3,_0x1475d6:0x508,_0x1284b1:0x16f,_0x1497b2:0x106,_0x18b823:0x232,_0x5306a5:0x21b,_0x2a20e9:0x244,_0x4880c5:0x3ad,_0xfb7f99:0x2fb,_0x55cb4d:0x1bd,_0x306bb6:0x3f2,_0x1c004d:0x3fc,_0x4607b6:0x464,_0x5acbf0:0x3aa,_0x333270:0x497,_0x144a67:0x4c8,_0x3365b2:0x234,_0x350af1:0x1cd},_0x3e1040={_0x3be796:0x197},_0x241bc4={_0x4d86c8:0x140,_0x182404:0x11d};function _0x2a4ad1(_0x31e0b6,_0x1c5081,_0x1e02e2,_0xc56903){return _0x3c7c8d(_0x31e0b6-_0x241bc4._0x4d86c8,_0x1c5081-0x49,_0x1e02e2-_0x241bc4._0x182404,_0x1c5081);}const _0x317129=new Headers();function _0x5a857d(_0x51c27a,_0x1d578e,_0x3e267c,_0x53b974){return _0x65d232(_0x1d578e-_0x3e1040._0x3be796,_0x51c27a,_0x3e267c-0xa2,_0x53b974-0x5b);}_0x317129[_0x2a4ad1(0x455,0x516,0x42d,_0x7ea2d6._0x345e0c)](_0x2a4ad1(0x447,_0x7ea2d6._0x42afcd,0x3f7,_0x7ea2d6._0x818d57),_0x333bc0['accept']),_0x317129[_0x5a857d(0x20e,0x234,0x193,_0x7ea2d6._0x7ccdd9)](_0x2a4ad1(0x3a1,_0x7ea2d6._0x2e0967,0x325,_0x7ea2d6._0x27f65a),_0x2a4ad1(_0x7ea2d6._0x49ed72,0x4d7,_0x7ea2d6._0x47b6db,_0x7ea2d6._0x3762f8)+_0x296ff9[_0x5a857d(_0x7ea2d6._0x4bb1bc,_0x7ea2d6._0x2da69e,_0x7ea2d6._0x5f4f2c,0xe8)][_0x5a857d(_0x7ea2d6._0x814c30,_0x7ea2d6._0x5c1348,0x264,_0x7ea2d6._0x4e0816)]);_0x333bc0[_0x2a4ad1(_0x7ea2d6._0x4c3e28,0x3a7,_0x7ea2d6._0xd051c7,0x36b)]!==![]&&_0x317129[_0x5a857d(0x21f,0x234,_0x7ea2d6._0x5d3a4e,_0x7ea2d6._0x1c321e)](_0x2a4ad1(0x3ab,_0x7ea2d6._0x4c1150,0x424,0x31f),_0x2a4ad1(_0x7ea2d6._0x24ae50,0x527,_0x7ea2d6._0x21f16a,_0x7ea2d6._0x1475d6));const _0x18bfee=await this[_0x5a857d(0xff,_0x7ea2d6._0x1284b1,0x17f,_0x7ea2d6._0x1497b2)]?.({'body':_0x296ff9[_0x5a857d(0x190,_0x7ea2d6._0x18b823,_0x7ea2d6._0x5306a5,_0x7ea2d6._0x2a20e9)],'credential':_0x296ff9[_0x2a4ad1(_0x7ea2d6._0x4880c5,0x384,0x425,_0x7ea2d6._0xfb7f99)],'request':_0x296ff9['request'],'session':_0x296ff9[_0x5a857d(0x171,0x155,0x155,_0x7ea2d6._0x55cb4d)],'stream':_0x296ff9[_0x2a4ad1(_0x7ea2d6._0x306bb6,0x389,_0x7ea2d6._0x1c004d,0x3c6)]});for(const [_0x280916,_0x1313d8]of Object[_0x2a4ad1(_0x7ea2d6._0x4607b6,_0x7ea2d6._0x5acbf0,_0x7ea2d6._0x333270,_0x7ea2d6._0x144a67)](_0x18bfee??{})){_0x317129[_0x5a857d(0x287,_0x7ea2d6._0x3365b2,0x1b9,_0x7ea2d6._0x350af1)](_0x280916,_0x1313d8);}return _0x317129;}[_0x65d232(0x11f,0x10a,0x16c,0xe5)](_0x4e8494){return _0x4e8494;}['resolveBaseUrl'](_0x4324ec,_0x490e7d){return resolveSessionBaseUrl(_0x4324ec,_0x490e7d);}['resolveCredential'](_0x5177da,_0x5c5153){return resolveApiCredential(_0x5177da,_0x5c5153);}async[_0x3c7c8d(0x24e,0x268,0x2ae,0x299)](_0x319834){return await createOpenAiApiError(_0x319834);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x3c7c8d(0x37c,0x382,0x3c4,0x2c3)]=new Map();['chatCompletionsPath'];['responsesPath'];constructor(_0x9c6cfa={}){const _0x2300d5={_0x4f1f72:0x231,_0x30ecfd:0x1af,_0x254000:0x2e1,_0xb12a74:0x1fd,_0x391fed:0x276,_0x498469:0x21a,_0x18c681:0x1cc,_0x20e08e:0x162,_0x1bd423:0x14e,_0xcbd700:0x15f,_0x4d776c:0x1db,_0x391286:0x203,_0x1d4d82:0x167,_0x411a2b:0x252,_0xa74f85:0x2a9,_0x32ce14:0x309,_0x2c74ba:0x229,_0x147596:0x2ac,_0x2b2525:0x1e2,_0x499029:0x19b,_0x118828:0x192,_0x59cde0:0x286,_0x55d821:0x29e,_0xabda8:0x230,_0x1e02fb:0x1b5,_0x4eaf8c:0x154,_0x3db10c:0x1c1,_0x365003:0x1f9,_0x4dfb5f:0x27d,_0x215bff:0x277,_0x510c49:0x333,_0x54a4b1:0x1f7,_0x38cb26:0x2cd,_0x5d25ed:0x172,_0xa0f9a6:0x223,_0x3d25d8:0x274},_0x5c5d7c={_0xfb7a4f:0xfc,_0x12103c:0x12e},_0x5a9528={_0x467fac:0x195},_0x58cda3=_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x4f1f72,-_0x2300d5._0x30ecfd,-0x1eb,-_0x2300d5._0x254000)]??_0x3de0c4(0x1c6,_0x2300d5._0xb12a74,_0x2300d5._0x391fed,_0x2300d5._0x498469),_0x46332f=_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x18c681,-_0x2300d5._0x20e08e,-_0x2300d5._0x1bd423,-0x24e)]??0x4000,_0x1bbf71=_0x9c6cfa['chatCompletionsPath']??_0x3de0c4(0x25e,_0x2300d5._0xcbd700,0x1ec,_0x2300d5._0x4d776c),_0x1961f3=_0x9c6cfa[_0x3de0c4(0x146,_0x2300d5._0x391286,0x1c3,0x1e1)]??_0x46b9b9(-0x1e7,-_0x2300d5._0x1d4d82,-0x290,-0x203);function _0x46b9b9(_0x2e4494,_0x503ee9,_0x3529c4,_0x57c08f){return _0x3c7c8d(_0x2e4494- -0x55b,_0x503ee9-_0x5a9528._0x467fac,_0x3529c4-0x11a,_0x3529c4);}function _0x3de0c4(_0x4d9bd2,_0x76bfaf,_0x31e005,_0x332cb8){return _0x3c7c8d(_0x332cb8- -_0x5c5d7c._0xfb7a4f,_0x76bfaf-_0x5c5d7c._0x12103c,_0x31e005-0x11b,_0x76bfaf);}super({'apiKey':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x411a2b,-_0x2300d5._0xa74f85,-_0x2300d5._0x32ce14,-0x1e5)],'baseUrl':trimTrailingSlashes(_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x2c74ba,-_0x2300d5._0x147596,-_0x2300d5._0x2b2525,-_0x2300d5._0x499029)]??_0x46b9b9(-0x24d,-0x1c2,-_0x2300d5._0x118828,-0x262)),'fetch':_0x9c6cfa[_0x3de0c4(0x274,0x27b,0x2dc,_0x2300d5._0x59cde0)],'maxTokens':_0x46332f,'model':_0x58cda3,'reasoning':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x55d821,-0x25a,-_0x2300d5._0xabda8,-0x23e)],'providerAdapter':new OpenAiProviderAdapter(_0x9c6cfa[_0x3de0c4(0x188,0x167,_0x2300d5._0x1e02fb,_0x2300d5._0x4eaf8c)]),'providerSessionResolver':_0x9c6cfa['providerSessionResolver'],'requestMutators':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x3db10c,-0x186,-_0x2300d5._0x365003,-0x213)],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x4dfb5f,-0x1d2,-0x252,-0x268)],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x1bbf71,'responsesPath':_0x1961f3}),'webSocketFactory':_0x9c6cfa[_0x46b9b9(-_0x2300d5._0x215bff,-_0x2300d5._0x510c49,-_0x2300d5._0x54a4b1,-_0x2300d5._0x38cb26)]}),this[_0x3de0c4(_0x2300d5._0x5d25ed,0x178,0x1d8,_0x2300d5._0xa0f9a6)]=_0x1bbf71,this[_0x46b9b9(-0x27e,-_0x2300d5._0x3d25d8,-0x2d3,-0x328)]=_0x1961f3;}[_0x3c7c8d(0x32d,0x347,0x2dc,0x35e)](_0xbc8719,_0x3f60c0){const _0x188bac={_0x2c7dac:0x1ad,_0x16a06b:0x21b},_0x3e549d={_0x2e8b90:0x109,_0xad092f:0xec,_0x78516a:0x163};function _0x4f6099(_0x25104d,_0x2e2178,_0x3461ec,_0x143406){return _0x65d232(_0x2e2178-_0x3e549d._0x2e8b90,_0x25104d,_0x3461ec-_0x3e549d._0xad092f,_0x143406-_0x3e549d._0x78516a);}return this[_0x4f6099(0x22b,_0x188bac._0x2c7dac,0x248,_0x188bac._0x16a06b)](_0xbc8719,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x3f60c0);}['completeViaResponsesSurface'](_0x2d30d5,_0x32ece4){const _0x1bf46a={_0x21d663:0x447},_0x4478e9={_0x4fcf1e:0x125,_0x29192b:0x152,_0x5f25bf:0xb1};function _0x3ab73b(_0x21bdc2,_0x878d79,_0x5ee0bc,_0x2ba9db){return _0x3c7c8d(_0x21bdc2-_0x4478e9._0x4fcf1e,_0x878d79-_0x4478e9._0x29192b,_0x5ee0bc-_0x4478e9._0x5f25bf,_0x878d79);}return this[_0x3ab73b(0x441,0x4c8,0x3fc,_0x1bf46a._0x21d663)](_0x2d30d5,OPENAI_RESPONSES_SURFACE,_0x32ece4);}[_0x3c7c8d(0x352,0x39a,0x2cf,0x38e)](_0x233054,_0x5eaa9d){const _0x34357e={_0x1a7f97:0x1da},_0x1ccf8e={_0x1ad4e6:0x139,_0x38f435:0x151,_0x153c64:0x86};function _0x139dd2(_0x1aeff9,_0xfe9f7d,_0x1cb2a6,_0x4891ad){return _0x65d232(_0x1cb2a6-_0x1ccf8e._0x1ad4e6,_0x4891ad,_0x1cb2a6-_0x1ccf8e._0x38f435,_0x4891ad-_0x1ccf8e._0x153c64);}return this[_0x139dd2(_0x34357e._0x1a7f97,0x281,0x1dd,0x279)](_0x233054,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x5eaa9d);}[_0x3c7c8d(0x3a6,0x3ac,0x30f,0x39e)](_0x48a58d,_0x2f42e1){return this['streamViaSurface'](_0x48a58d,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x2f42e1);}[_0x3c7c8d(0x361,0x3cc,0x2b3,0x34a)](_0x2a489e,_0x10f027){const _0x532624={_0xd00675:0x4b8,_0x205445:0x4ba,_0x4098ed:0x587,_0x2ca398:0x534},_0x4a6949={_0x7fcc8b:0x455,_0x1e298b:0x58};function _0x1e7d95(_0x3bfec4,_0x4a5cab,_0x21e5d9,_0x69238){return _0x65d232(_0x69238-_0x4a6949._0x7fcc8b,_0x21e5d9,_0x21e5d9-_0x4a6949._0x1e298b,_0x69238-0x65);}return this[_0x1e7d95(_0x532624._0xd00675,_0x532624._0x205445,_0x532624._0x4098ed,_0x532624._0x2ca398)](_0x2a489e,OPENAI_RESPONSES_STREAM_SURFACE,_0x10f027);}[_0x65d232(0x79,0x122,0xe,0x17)](_0x2bfd7a,_0x598b02){const _0x19bc5c={_0x39a503:0x10a,_0x56f0b9:0x28,_0x3524a1:0x19f};function _0x1a4e4b(_0x394928,_0x273ebd,_0x559b37,_0x37bfd5){return _0x3c7c8d(_0x273ebd-_0x19bc5c._0x39a503,_0x273ebd-_0x19bc5c._0x56f0b9,_0x559b37-_0x19bc5c._0x3524a1,_0x559b37);}return this[_0x1a4e4b(0x50a,0x461,0x4bf,0x43f)](_0x2bfd7a,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x598b02);}async[_0x65d232(0x2f,0x8c,-0x50,0xef)](_0x33a28c,_0x3ba6c5){try{return await this['completeViaChatCompletionsSurface'](_0x33a28c,_0x3ba6c5);}catch(_0x4d6521){if(_0x4d6521 instanceof OpenAiApiError)throw this['mapApiError'](_0x4d6521);throw _0x4d6521;}}async['response'](_0x2863fe,_0x1f08c5){const _0x465b53={_0x1d0faf:0x45f,_0x4158ec:0x376,_0x57ae9f:0x3f9},_0x4a63b8={_0x10dce6:0x116,_0x2f8340:0x2d};function _0x4cdab1(_0x2d26cd,_0x1ed96e,_0x359644,_0x48f9cf){return _0x3c7c8d(_0x48f9cf-0x62,_0x1ed96e-_0x4a63b8._0x10dce6,_0x359644-_0x4a63b8._0x2f8340,_0x359644);}try{return await this['completeViaResponsesSurface'](_0x2863fe,_0x1f08c5);}catch(_0x410aba){if(_0x410aba instanceof OpenAiApiError)throw this[_0x4cdab1(_0x465b53._0x1d0faf,_0x465b53._0x4158ec,0x3a5,_0x465b53._0x57ae9f)](_0x410aba);throw _0x410aba;}}async[_0x3c7c8d(0x2ea,0x265,0x2dd,0x2ff)](_0x445f6c,_0x45f56c){const _0x408c09={_0xfc0e16:0x25a,_0xba038c:0x1b1,_0x2c1201:0x23d,_0x11b96c:0x462,_0x2e331a:0x2f6,_0x39cbf8:0x268,_0x9e45c9:0x2a9,_0x375b14:0x14e,_0x27645a:0x11f},_0x3084eb={_0x1ef981:0xda,_0x835d21:0x15c},_0x222c0b={_0x3c790:0x2c5,_0x1e0a7d:0x16d,_0x1e383b:0x1ea};function _0x4e9df9(_0x331818,_0x2bcd8f,_0x3cf5c4,_0x684ea4){return _0x65d232(_0x3cf5c4-_0x222c0b._0x3c790,_0x684ea4,_0x3cf5c4-_0x222c0b._0x1e0a7d,_0x684ea4-_0x222c0b._0x1e383b);}function _0x12fc8b(_0x3fb03c,_0x5bc41f,_0x1a4b3c,_0x5b883){return _0x3c7c8d(_0x5b883- -_0x3084eb._0x1ef981,_0x5bc41f-0x77,_0x1a4b3c-_0x3084eb._0x835d21,_0x5bc41f);}try{let _0x1a6838;for await(const _0x381b8a of this[_0x12fc8b(_0x408c09._0xfc0e16,_0x408c09._0xba038c,0x2ab,_0x408c09._0x2c1201)](_0x445f6c,_0x45f56c)){_0x381b8a[_0x4e9df9(0x41b,0x30d,0x3ac,_0x408c09._0x11b96c)]===_0x4e9df9(_0x408c09._0x2e331a,_0x408c09._0x39cbf8,0x2c8,_0x408c09._0x9e45c9)&&(_0x1a6838=_0x381b8a['response']);}if(!_0x1a6838)throw new Error(_0x12fc8b(_0x408c09._0x375b14,_0x408c09._0x27645a,0x12d,0x1c0));return _0x1a6838;}catch(_0x4ff247){if(_0x4ff247 instanceof OpenAiApiError)throw this['mapApiError'](_0x4ff247);throw _0x4ff247;}}async*[_0x65d232(0xe0,0xc7,0xe4,0x121)](_0x3b61b5,_0x428189){const _0x19cd8f={_0x1e190f:0x14d,_0x1ab5e0:0x10c},_0x135ac1={_0x59740c:0x230,_0x219fbb:0xaf};function _0x70055f(_0x494bf0,_0x32e8ff,_0x31c3dd,_0x1efb07){return _0x3c7c8d(_0x1efb07- -_0x135ac1._0x59740c,_0x32e8ff-_0x135ac1._0x219fbb,_0x31c3dd-0x119,_0x31c3dd);}try{yield*this[_0x70055f(_0x19cd8f._0x1e190f,0xb5,_0x19cd8f._0x1ab5e0,0x176)](_0x3b61b5,_0x428189);}catch(_0x29a064){if(_0x29a064 instanceof OpenAiApiError)throw this['mapApiError'](_0x29a064);throw _0x29a064;}}async*[_0x3c7c8d(0x392,0x353,0x3e1,0x3ec)](_0x5a2986,_0x353962){const _0x54b9ca={_0x2d07dd:0x1e7},_0x5f23a5={_0x485f18:0x76,_0x1b6872:0x74};function _0x18fed6(_0x2120af,_0x36a14a,_0x42400d,_0x5a1316){return _0x65d232(_0x5a1316-_0x5f23a5._0x485f18,_0x36a14a,_0x42400d-0x151,_0x5a1316-_0x5f23a5._0x1b6872);}try{yield*this[_0x18fed6(0xfb,_0x54b9ca._0x2d07dd,0xdf,0x15f)](_0x5a2986,_0x353962);}catch(_0xf73526){if(_0xf73526 instanceof OpenAiApiError)throw this['mapApiError'](_0xf73526);throw _0xf73526;}}async*[_0x3c7c8d(0x317,0x259,0x378,0x2f7)](_0x3c721a,_0x4e3f42){const _0x3c8f15={_0x1b6eca:0x47a,_0x50ee9c:0x4d0},_0x713cb9={_0x4ff0a1:0x372,_0x525f59:0x193};function _0x42322e(_0x316037,_0xd115d8,_0x13a7b4,_0x2c2ee7){return _0x65d232(_0x316037-_0x713cb9._0x4ff0a1,_0xd115d8,_0x13a7b4-_0x713cb9._0x525f59,_0x2c2ee7-0x2b);}try{yield*this['streamViaPersistentResponsesSocket'](_0x3c721a,_0x4e3f42);}catch(_0x2f8043){if(_0x2f8043 instanceof OpenAiApiError)throw this[_0x42322e(0x491,_0x3c8f15._0x1b6eca,_0x3c8f15._0x50ee9c,0x4b3)](_0x2f8043);throw _0x2f8043;}}[_0x65d232(-0x1,0xb3,0xb7,-0x91)](_0x5cf840,_0x5eb0ea){const _0x92c923={_0x82ddad:0x3e9,_0x3b8325:0x361},_0x515555={_0x4a7f86:0x13};function _0x20b328(_0x2a47e4,_0xf92a4c,_0x2c2c73,_0x54b4b9){return _0x3c7c8d(_0x2c2c73-0xba,_0xf92a4c-0x121,_0x2c2c73-_0x515555._0x4a7f86,_0x54b4b9);}return this[_0x20b328(0x36b,_0x92c923._0x82ddad,0x361,_0x92c923._0x3b8325)](_0x5cf840,_0x5eb0ea);}[_0x65d232(0x3a,0x44,0xae,0xb9)](_0x1bfd6e,_0x4ceee7){return this['chatStream'](_0x1bfd6e,_0x4ceee7);}[_0x3c7c8d(0x2c0,0x2bc,0x23d,0x32c)](_0x3b5054){const _0x80a04a={_0xee440d:0x11f,_0x2ec354:0x10a,_0xe605ec:0x196,_0x289060:0x14f,_0x3162a9:0xea,_0x21d6b6:0xe0,_0x34cdec:0x6a},_0x42a9e4={_0x23b7c4:0x109},_0x557b21={_0x5679fb:0x1e6},_0x855986=this[_0x58af34(_0x80a04a._0xee440d,0x1a8,0x226,_0x80a04a._0x2ec354)](_0x3b5054);function _0x58af34(_0x1da733,_0x5c88d5,_0x1e9d42,_0x6ac930){return _0x3c7c8d(_0x5c88d5- -_0x557b21._0x5679fb,_0x5c88d5-0xc9,_0x1e9d42-0x169,_0x6ac930);}function _0x2d091b(_0x2e98a9,_0x5ca47f,_0x234ce1,_0x6c1692){return _0x65d232(_0x234ce1-0x43,_0x2e98a9,_0x234ce1-0x25,_0x6c1692-_0x42a9e4._0x23b7c4);}let _0x33d15c=_OpenAiModel[_0x58af34(0xf8,_0x80a04a._0xe605ec,0x1b1,_0x80a04a._0x289060)][_0x58af34(-0x3,0x84,0xd2,0xcd)](_0x855986);return!_0x33d15c&&(_0x33d15c={'pending':Promise['resolve']()},_OpenAiModel['sharedResponsesSocketSessions'][_0x2d091b(0x14a,_0x80a04a._0x3162a9,_0x80a04a._0x21d6b6,_0x80a04a._0x34cdec)](_0x855986,_0x33d15c)),_0x33d15c;}[_0x3c7c8d(0x38e,0x412,0x3bb,0x37c)](_0x47db58){const _0x56a93b={_0x378ecc:0x63b,_0x1f9000:0x511,_0x9bb17e:0x53a,_0x390ec3:0x480},_0x31f1ab={_0xa8fb75:0x4c,_0x1fdc8d:0x152};function _0x5a91c5(_0x189222,_0x465dc7,_0x5603a2,_0x522f0b){return _0x3c7c8d(_0x465dc7- -_0x31f1ab._0xa8fb75,_0x465dc7-0x60,_0x5603a2-_0x31f1ab._0x1fdc8d,_0x189222);}function _0x3e895f(_0x20be53,_0x5500bb,_0x505eb9,_0x14310d){return _0x65d232(_0x5500bb-0x4d5,_0x505eb9,_0x505eb9-0x157,_0x14310d-0x170);}return''+trimTrailingSlashes(this[_0x3e895f(0x528,0x58f,_0x56a93b._0x378ecc,_0x56a93b._0x1f9000)])+this[_0x3e895f(0x543,_0x56a93b._0x9bb17e,_0x56a93b._0x390ec3,0x4e6)]+'::'+_0x47db58;}async[_0x65d232(0x1a,-0xa6,0xab,0x6)](_0x44bf77){const _0x17a227={_0x594ac0:0x3f6,_0x4c7517:0xb5,_0x356de8:0x8a,_0x4f0209:0x101,_0x52687a:0xf3,_0xc93db9:0x42c,_0xe8e9ad:0x41d,_0xe00438:0x48e,_0x8e189:0x4ec,_0x8f3997:0x57d},_0x12affb={_0x19e569:0x137,_0x318d87:0x9a},_0x48adbd={_0x13edf7:0x185};function _0x5808a8(_0x5b607e,_0x142b09,_0x221089,_0x4815da){return _0x3c7c8d(_0x221089- -0x133,_0x142b09-_0x48adbd._0x13edf7,_0x221089-0x1b8,_0x142b09);}const _0xae21c6=_0x44bf77[_0x38c297(0x3c9,0x41d,0x444,_0x17a227._0x594ac0)][_0x5808a8(_0x17a227._0x4c7517,_0x17a227._0x356de8,_0x17a227._0x4f0209,_0x17a227._0x52687a)](()=>{});function _0x38c297(_0x496dff,_0x57400c,_0x184960,_0x1d49dc){return _0x65d232(_0x57400c-0x437,_0x184960,_0x184960-_0x12affb._0x19e569,_0x1d49dc-_0x12affb._0x318d87);}let _0x5cab58;const _0x2a4743=new Promise(_0x4b144b=>{_0x5cab58=_0x4b144b;});return _0x44bf77[_0x38c297(_0x17a227._0xc93db9,_0x17a227._0xe8e9ad,_0x17a227._0xe00438,0x391)]=_0xae21c6[_0x38c297(0x561,0x561,_0x17a227._0x8e189,_0x17a227._0x8f3997)](()=>_0x2a4743),await _0xae21c6,()=>{_0x5cab58?.();};}async[_0x3c7c8d(0x394,0x3b2,0x411,0x385)](_0x29b7f1,_0x3c17e3){const _0xa15f77={_0x2db25d:0x8c,_0x483a66:0x2b,_0x5ec5e1:0xd1,_0xd060fa:0x156,_0x9688d5:0x19e,_0x55915f:0x8d,_0x5e567b:0xcb,_0x51f939:0x4f,_0xe3b149:0xb3,_0x1dfe82:0x4d,_0x201391:0x17a},_0x2df8e6={_0x290d62:0xe6},_0x3b2abb={_0x4cf88f:0x331,_0x284941:0x72},_0x476b1c=this['applyModelDefaults'](_0x29b7f1);function _0xed5d85(_0x1f9db3,_0x262a97,_0x387f35,_0x48acda){return _0x3c7c8d(_0x387f35- -_0x3b2abb._0x4cf88f,_0x262a97-_0x3b2abb._0x284941,_0x387f35-0x16,_0x48acda);}const _0x2ea310=toModelRequest(_0x476b1c),_0x58a0d0=await prepareProviderRequest(_0x2ea310,{'sessionManager':this['sessionManager'],'requestMutators':this['requestMutators'],'signal':_0x3c17e3}),_0xc13b63=toChatRequest(_0x58a0d0[_0x187bf0(_0xa15f77._0x2db25d,-0x8,0x25,_0xa15f77._0x483a66)]),_0x569695=this['providerAdapter'][_0x187bf0(0x128,_0xa15f77._0x5ec5e1,_0xa15f77._0xd060fa,_0xa15f77._0x9688d5)](this[_0x187bf0(0x131,0x1de,_0xa15f77._0x55915f,0xe9)],_0x58a0d0[_0xed5d85(-0xa5,-_0xa15f77._0x5e567b,-0xfb,-0x1a3)]);if(!_0x569695)throw this[_0xed5d85(-_0xa15f77._0x51f939,-0xd9,-0xb7,-0xcf)]();function _0x187bf0(_0x275a3c,_0x537827,_0x31fb81,_0x4ebe4f){return _0x3c7c8d(_0x275a3c- -0x1d8,_0x537827-0x133,_0x31fb81-_0x2df8e6._0x290d62,_0x537827);}return{'baseUrl':this[_0xed5d85(-_0xa15f77._0xe3b149,0x97,0x9,_0xa15f77._0x1dfe82)][_0x187bf0(0x1b3,_0xa15f77._0x201391,0x143,0x1c3)](this['baseUrl'],_0x58a0d0[_0xed5d85(-0xd7,-0x7b,-0xfb,-0xf3)]),'credential':_0x569695,'request':_0xc13b63,'session':_0x58a0d0['session']};}['buildResponsesSocketEvent'](_0x1619e0,_0x1c80f3,_0x2cba35={}){const _0x274869={_0x2aac8f:0x226,_0x88c1b9:0x2c3,_0x2b3597:0x359,_0x46359d:0x32a,_0xe87df3:0x3bb,_0xd37f16:0x355,_0x4387d8:0x29c,_0x389c23:0x2cf,_0xfb9bfb:0x339,_0x3446c4:0x259,_0x37539c:0x252,_0x5151b0:0x1db,_0x15894d:0x268,_0x45eca8:0x2e3,_0x2c29ef:0x268},_0x4864bc={_0x146485:0x4a},_0x2f77ae={_0x40157c:0x9c};if(!_0x2cba35['forceFullReplay']){const _0x22d7d6=this[_0xa81075(0x1d6,_0x274869._0x2aac8f,0x1ef,0x1de)](_0x1619e0);if(_0x22d7d6&&_0x1c80f3[_0xa81075(0x24b,0x356,_0x274869._0x88c1b9,0x2fa)]&&_0x22d7d6[_0x407d2f(_0x274869._0x2b3597,_0x274869._0x46359d,0x2ce,_0x274869._0xe87df3)]===_0x1c80f3['lastResponseId']){const _0x4c7206=toOpenAiResponsesRequest({..._0x1619e0,'messages':_0x1619e0[_0xa81075(_0x274869._0xd37f16,_0x274869._0x4387d8,_0x274869._0x389c23,0x38c)]['slice'](_0x22d7d6[_0x407d2f(0x331,0x352,_0x274869._0xfb9bfb,0x2d5)]+0x1)})[_0x407d2f(0x2c9,0x278,_0x274869._0x3446c4,0x268)];return{'event':createOpenAiResponsesWebSocketEvent(_0x1619e0,{'input':_0x4c7206,'previousResponseId':_0x22d7d6[_0xa81075(_0x274869._0x37539c,_0x274869._0x5151b0,_0x274869._0x15894d,_0x274869._0x45eca8)]}),'previousResponseId':_0x22d7d6[_0xa81075(0x2e4,0x2ca,_0x274869._0x2c29ef,0x2a0)]};}}function _0x407d2f(_0x240421,_0x16db26,_0x467d0d,_0x2d4e3c){return _0x3c7c8d(_0x240421-0x8b,_0x16db26-_0x2f77ae._0x40157c,_0x467d0d-0x19d,_0x16db26);}function _0xa81075(_0x3f2566,_0x1ece21,_0x4d0df2,_0x109e0f){return _0x3c7c8d(_0x4d0df2- -0x66,_0x1ece21-0x16b,_0x4d0df2-_0x4864bc._0x146485,_0x1ece21);}return{'event':createOpenAiResponsesWebSocketEvent(_0x1619e0)};}[_0x65d232(-0x23,0x80,-0x29,-0x6e)](_0x2d2ea5){const _0x3982fc={_0x41fc57:0x8d,_0x41c7fd:0xc6,_0xe8acd6:0x180,_0x2ce6aa:0x150,_0x537f68:0x12b,_0x1886b6:0x15a,_0x5d4cca:0x9c},_0x1192a3={_0x5ec7ed:0x1ab},_0x31149b={_0x452d3b:0x130,_0x33d4e7:0x4b,_0x1cb8f7:0x181};function _0x27e585(_0x142d15,_0x549dff,_0x413b80,_0x1abd33){return _0x65d232(_0x413b80- -_0x31149b._0x452d3b,_0x549dff,_0x413b80-_0x31149b._0x33d4e7,_0x1abd33-_0x31149b._0x1cb8f7);}for(let _0x568f7d=_0x2d2ea5['messages'][_0x583755(-0x4,-0x1f,-_0x3982fc._0x41fc57,-_0x3982fc._0x41c7fd)]-0x1;_0x568f7d>=0x0;_0x568f7d-=0x1){const _0x2abf82=_0x2d2ea5[_0x583755(-_0x3982fc._0xe8acd6,-0x8e,-_0x3982fc._0x2ce6aa,-0xee)][_0x568f7d],_0x152340=_0x2abf82['role']==='assistant'?_0x2abf82[_0x27e585(-_0x3982fc._0x537f68,-_0x3982fc._0x1886b6,-_0x3982fc._0x5d4cca,-0x85)]?.['openaiResponsesResponseId']:void 0x0;if(_0x152340)return{'messageIndex':_0x568f7d,'responseId':_0x152340};}function _0x583755(_0x2c405b,_0x5d8f7d,_0x4f518e,_0x343a40){return _0x65d232(_0x343a40- -_0x1192a3._0x5ec7ed,_0x2c405b,_0x4f518e-0x18b,_0x343a40-0x190);}return void 0x0;}[_0x65d232(0x77,0x76,0x26,0x64)](_0x494f6f){const _0x165e0e={_0x5814f5:0x343,_0xf48519:0x39a,_0x204477:0x458,_0x18f725:0x35e,_0x1aa2f5:0x397},_0x547a17={_0x25f74e:0xdf,_0x21e5dc:0xfe},_0x22bb6f={_0x1f4883:0x35,_0xf5253c:0x14d};function _0x3a2961(_0x43a72b,_0x2c6762,_0x5e81d7,_0x3fe0f2){return _0x3c7c8d(_0x43a72b- -0x51f,_0x2c6762-_0x22bb6f._0x1f4883,_0x5e81d7-_0x22bb6f._0xf5253c,_0x2c6762);}function _0x537999(_0x48b102,_0x21f19e,_0x37e254,_0x130122){return _0x3c7c8d(_0x48b102-_0x547a17._0x25f74e,_0x21f19e-_0x547a17._0x21e5dc,_0x37e254-0x58,_0x37e254);}return _0x494f6f instanceof OpenAiResponsesStreamError&&(_0x494f6f[_0x537999(0x3a6,0x3d4,0x43a,_0x165e0e._0x5814f5)]==='previous_response_not_found'||_0x494f6f['code']===_0x537999(_0x165e0e._0xf48519,_0x165e0e._0x204477,_0x165e0e._0x18f725,_0x165e0e._0x1aa2f5));}[_0x65d232(0x25,0xc7,0x24,-0x6e)](_0x240c2b){const _0x49ffdf={_0x278e06:0xc1,_0x4ebd00:0x57,_0x4f5e25:0xe0,_0x949631:0x51,_0x1e674a:0x13b,_0x2304d4:0x1d8,_0x26f316:0x138,_0x25ad28:0x1d5,_0x325515:0xf2,_0x3f4803:0x181,_0xbb7798:0x17e,_0x27a61e:0x97,_0x940664:0xb0,_0x3d4f74:0x258,_0x159c0d:0x18a},_0x561dd2={_0x185b51:0x170},_0x2fdc87=_0x240c2b['socket'];_0x240c2b[_0xb874a7(0xcf,0x1a6,0x12f,0x145)]=void 0x0,_0x240c2b[_0x6e235f(-_0x49ffdf._0x278e06,-_0x49ffdf._0x4ebd00,-_0x49ffdf._0x4f5e25,-_0x49ffdf._0x949631)]=void 0x0;function _0x6e235f(_0x493e11,_0x150a54,_0x3723e1,_0xd9f89a){return _0x65d232(_0x3723e1- -_0x561dd2._0x185b51,_0x493e11,_0x3723e1-0x1bd,_0xd9f89a-0x3d);}function _0xb874a7(_0x199170,_0x2df341,_0x18ba78,_0x45d18b){return _0x65d232(_0x45d18b-0x124,_0x2df341,_0x18ba78-0x129,_0x45d18b-0x17f);}_0x240c2b[_0xb874a7(_0x49ffdf._0x1e674a,_0x49ffdf._0x2304d4,_0x49ffdf._0x26f316,_0x49ffdf._0x25ad28)]=void 0x0,_0x2fdc87?.[_0x6e235f(-_0x49ffdf._0x325515,-0x218,-_0x49ffdf._0x3f4803,-_0x49ffdf._0xbb7798)]===WebSocket[_0x6e235f(-_0x49ffdf._0x27a61e,-0x13d,-_0x49ffdf._0x940664,-0xf8)]&&_0x2fdc87['close'](0x3e8,_0xb874a7(_0x49ffdf._0x3d4f74,0x1b6,_0x49ffdf._0x159c0d,0x218));}async[_0x65d232(0xa5,0x9e,0x33,0x6a)](_0x39c6a5,_0x2ae30c,_0x4caff8,_0x339ce6,_0x54ea02){const _0x35e467={_0x3e8087:0x6a,_0x4c3acb:0x4b,_0xfa0adf:0x61,_0x1a5564:0x26,_0x2d54c3:0x2f,_0x21d255:0x83,_0x53aebb:0x3e,_0x29d8eb:0x35,_0x5196d0:0xae,_0x5342f1:0x10d},_0x54d40e={_0xb1b7d1:0x22f,_0x133da2:0x1bf},_0x38e2c4={_0x4fdf12:0xea,_0x152984:0x80,_0xfd2445:0x4e,_0x5ef07b:0xf5,_0x27d98c:0xd9,_0x4a3ca2:0xd5,_0x3d55f7:0x32,_0x17cdf9:0xe3,_0xe33bca:0x4,_0x3d59b7:0x58,_0x383f71:0x72,_0x2522c3:0x95,_0x33795e:0x30,_0x5cc088:0xc,_0x971b8:0x2b,_0x40dd14:0xbd,_0x5685a2:0x5c,_0x8c571c:0x11,_0x3032fd:0xaf,_0x373417:0xb,_0x48c4a4:0x12,_0x199334:0x86,_0xc6ca09:0xbc,_0x59461e:0x51,_0x32c875:0x6e,_0x35b0ca:0x9e,_0x157b6a:0x55,_0x3deee2:0x5f,_0x3bae8f:0xa0,_0x12bf98:0x11c,_0x7c5c0:0x13d},_0x524674={_0x27103c:0xbe,_0x46e48b:0x1b3,_0xe449b6:0xf3},_0x1b99d4={_0x342023:0x2c8,_0x118ece:0x20};if(_0x2ae30c[_0x5a87f6(_0x35e467._0x3e8087,-0x2f,_0x35e467._0x4c3acb,-0x15)]?.[_0x5a87f6(-0xb9,-_0x35e467._0xfa0adf,-0x33,-_0x35e467._0x1a5564)]===WebSocket['OPEN'])return _0x2ae30c[_0x5a87f6(-0x3d,-_0x35e467._0x2d54c3,-_0x35e467._0x21d255,0x55)];function _0x5a87f6(_0x53913e,_0x59cb33,_0x132b0e,_0xfff5b0){return _0x3c7c8d(_0x59cb33- -_0x1b99d4._0x342023,_0x59cb33-0x189,_0x132b0e-_0x1b99d4._0x118ece,_0x132b0e);}if(_0x2ae30c[_0x4d7d19(0xd9,0x160,0x169,_0x35e467._0x53aebb)])return await _0x2ae30c[_0x4d7d19(0xd9,_0x35e467._0x29d8eb,0x18c,0x123)];_0x2ae30c['connecting']=((async()=>{const _0x1ec913={_0x2213a8:0x83},_0x2f6135={_0x64be8a:0xc8},_0x480bd4=await this[_0x187c7d(_0x38e2c4._0x4fdf12,0x37,_0x38e2c4._0x152984,0x8d)]({'request':_0x4caff8[_0x187c7d(-0x4a,-0xf8,0x51,-_0x38e2c4._0xfd2445)],'body':_0x339ce6,'credential':_0x4caff8[_0x187c7d(-0xb9,-0xca,-_0x38e2c4._0x5ef07b,-0x45)],'session':_0x4caff8['session'],'stream':!![]},{'accept':_0x187c7d(-0x22,0x6e,0xf1,0x8f),'includeContentType':![]});_0x480bd4['delete']('accept');const _0x12431e=this[_0x187c7d(0x39,_0x38e2c4._0x27d98c,_0x38e2c4._0x4a3ca2,_0x38e2c4._0x3d55f7)]({'headers':Object[_0x187c7d(-0xb6,-_0x38e2c4._0x17cdf9,_0x38e2c4._0xe33bca,-0x46)](_0x480bd4[_0x187c7d(0x134,_0x38e2c4._0x3d59b7,_0x38e2c4._0x383f71,0x72)]()),'url':(''+_0x4caff8[_0x44b45b(0xe9,0x12,_0x38e2c4._0x2522c3,0x45)]+this[_0x187c7d(-_0x38e2c4._0x33795e,-_0x38e2c4._0x5cc088,0xa2,_0x38e2c4._0x971b8)])['replace'](/^http:/,_0x44b45b(-_0x38e2c4._0x40dd14,-0x19,-0x52,-0x85))[_0x44b45b(-0x87,-_0x38e2c4._0x5685a2,-0x75,_0x38e2c4._0x8c571c)](/^https:/,_0x44b45b(-_0x38e2c4._0x3032fd,0x17,-0x53,_0x38e2c4._0x373417))});function _0x44b45b(_0x2a31bb,_0x376538,_0x2df675,_0x3205cf){return _0x4d7d19(_0x3205cf- -_0x524674._0x27103c,_0x376538-_0x524674._0x46e48b,_0x2a31bb,_0x3205cf-_0x524674._0xe449b6);}const _0x521bff=()=>{function _0x1ecedd(_0x4aed00,_0x28e2e9,_0xee64b7,_0x47168f){return _0x44b45b(_0x28e2e9,_0x28e2e9-0x1c7,_0xee64b7-0x122,_0x47168f-_0x2f6135._0x64be8a);}_0x2ae30c['socket']===_0x12431e&&(_0x2ae30c['socket']=void 0x0,_0x2ae30c[_0x1ecedd(0xa9,0x63,0x120,0x104)]=void 0x0);};_0x12431e['addEventListener']('close',_0x521bff);function _0x187c7d(_0x401f1f,_0x4a8f63,_0x460352,_0xd2cbcc){return _0x4d7d19(_0xd2cbcc- -_0x1ec913._0x2213a8,_0x4a8f63-_0x1ec913._0x2213a8,_0x401f1f,_0xd2cbcc-0x93);}try{return throwIfAborted(_0x54ea02),_0x12431e[_0x44b45b(-0x106,-0x22,_0x38e2c4._0x48c4a4,-_0x38e2c4._0x199334)]!==WebSocket[_0x44b45b(_0x38e2c4._0xc6ca09,_0x38e2c4._0x59461e,0x28,0x4b)]&&await waitForWebSocketOpen(_0x12431e,_0x54ea02),throwIfAborted(_0x54ea02),_0x2ae30c[_0x44b45b(0x38,_0x38e2c4._0x32c875,0x36,-0x54)]=_0x12431e,_0x12431e;}catch(_0x2c4fda){_0x521bff();_0x12431e[_0x44b45b(-0x133,-0x133,0x0,-_0x38e2c4._0x199334)]===WebSocket[_0x187c7d(_0x38e2c4._0x35b0ca,0x109,_0x38e2c4._0x157b6a,_0x38e2c4._0x199334)]&&_0x12431e[_0x187c7d(_0x38e2c4._0x199334,_0x38e2c4._0x3deee2,_0x38e2c4._0x3bae8f,0x34)](0x3e8,_0x44b45b(-0xff,-_0x38e2c4._0x12bf98,-_0x38e2c4._0x7c5c0,-0x8a));throw _0x2c4fda;}})());function _0x4d7d19(_0x2674f4,_0x5c5b6a,_0x124a46,_0x1b1a3e){return _0x3c7c8d(_0x2674f4- -_0x54d40e._0xb1b7d1,_0x5c5b6a-0x1a4,_0x124a46-_0x54d40e._0x133da2,_0x124a46);}try{return await _0x2ae30c[_0x4d7d19(0xd9,_0x35e467._0x5196d0,_0x35e467._0x5342f1,0x80)];}finally{_0x2ae30c['connecting']=void 0x0;}}async*['streamViaPersistentResponsesSocket'](_0x495d2d,_0x503d59){const _0x3af452={_0x157cfe:0x21b,_0x9b5a1d:0x307,_0x608dae:0x3a0,_0x33939e:0xaf,_0x505fc7:0x143,_0x39ed3d:0xb1,_0x1da6f4:0x8a,_0x57b6ea:0x199,_0xfa1e2e:0x17c,_0x194efd:0x143,_0x1469ce:0x11,_0x2da98a:0x14,_0x5922a4:0x87,_0x53c144:0x253,_0x1fdc92:0x1a7,_0x25c624:0xfa,_0x2abf9b:0xc0,_0x383ae7:0x6a,_0x2049d1:0xe9,_0x2f3628:0x196,_0xbb1782:0xd5,_0x752bb8:0x1e4,_0x292fbc:0x2ce,_0x1b4b96:0x1de,_0x54908c:0x15c},_0x425771={_0x29520e:0x160,_0x5d19d1:0x16d},_0x5136f1={_0x5ee6e1:0x106,_0x4ee8bd:0x1c5},_0x52b8bb=this[_0x25e918(-0x1a8,-0x1db,-0x181,-_0x3af452._0x157cfe)](_0x495d2d);function _0x25e918(_0x27d14a,_0x485a25,_0x4f84f7,_0x9970e8){return _0x3c7c8d(_0x27d14a- -0x54c,_0x485a25-_0x5136f1._0x5ee6e1,_0x4f84f7-_0x5136f1._0x4ee8bd,_0x4f84f7);}function _0x8e1d71(_0x1c2b92,_0x4cd64f,_0x1578df,_0x30d20a){return _0x65d232(_0x1578df- -_0x425771._0x29520e,_0x1c2b92,_0x1578df-_0x425771._0x5d19d1,_0x30d20a-0x137);}const _0x4525cc=this['getResponsesSocketSessionState'](_0x52b8bb[_0x25e918(-0x2f5,-_0x3af452._0x9b5a1d,-0x337,-_0x3af452._0x608dae)][_0x8e1d71(-0x88,-_0x3af452._0x33939e,-_0x3af452._0x505fc7,-_0x3af452._0x39ed3d)]),_0x429e16=await this[_0x8e1d71(-0xbb,-_0x3af452._0x1da6f4,-0x146,-0xe1)](_0x4525cc);try{const _0x4c60bf=this[_0x8e1d71(-_0x3af452._0x57b6ea,-_0x3af452._0xfa1e2e,-0x15a,-0xd9)](_0x52b8bb,_0x4525cc);try{yield*this[_0x8e1d71(-0x15,0x2d,-0x7d,-0xac)](_0x52b8bb['metadata'][_0x8e1d71(-0x17c,-0x8f,-_0x3af452._0x194efd,-0x16b)],_0x4525cc,_0x52b8bb,_0x4c60bf[_0x8e1d71(-_0x3af452._0x1469ce,-_0x3af452._0x2da98a,-_0x3af452._0x5922a4,-0xe2)],_0x503d59?.['signal']);return;}catch(_0x24610a){if(!_0x4c60bf[_0x8e1d71(-_0x3af452._0x53c144,-0x1fc,-_0x3af452._0x1fdc92,-_0x3af452._0x25c624)]||!this[_0x8e1d71(-_0x3af452._0x2abf9b,-_0x3af452._0x383ae7,-_0x3af452._0x2049d1,-_0x3af452._0x2f3628)](_0x24610a)){this[_0x8e1d71(-0xd9,-_0x3af452._0xbb1782,-0x13b,-_0x3af452._0x752bb8)](_0x4525cc);throw _0x24610a;}}this['invalidateResponsesSocketSession'](_0x4525cc);const _0x3e5b4=this[_0x25e918(-_0x3af452._0x292fbc,-0x388,-0x32e,-0x279)](_0x52b8bb,_0x4525cc,{'forceFullReplay':!![]});yield*this['streamViaResponsesSocketAttempt'](_0x52b8bb['metadata']['sessionId'],_0x4525cc,_0x52b8bb,_0x3e5b4['event'],_0x503d59?.[_0x25e918(-0x1c2,-_0x3af452._0x1b4b96,-0x1d9,-_0x3af452._0x54908c)]);}finally{_0x429e16();}}async*['streamViaResponsesSocketAttempt'](_0x445fdf,_0x58b0fe,_0x184111,_0x3bb574,_0x1944c9){const _0x1fbbd5={_0x51baac:0x552,_0x36385b:0x4a8,_0x60f1f7:0x4b1,_0x3c0d88:0x493,_0x43da46:0x49c,_0x235d1f:0x2ce,_0x450841:0x34d,_0x5226b9:0x44f,_0x5e0285:0x3e2,_0x290b21:0x3cc,_0x1db894:0x3b1},_0x54680d={_0x3ff22e:0x2e,_0x2c52e4:0x16},_0x30308c={_0x30134d:0x207,_0x11bdd6:0xb8,_0x13a662:0xa6};function _0x90377a(_0x405c2c,_0x243cd2,_0x408998,_0x4dbed9){return _0x3c7c8d(_0x243cd2-_0x30308c._0x30134d,_0x243cd2-_0x30308c._0x11bdd6,_0x408998-_0x30308c._0x13a662,_0x4dbed9);}const _0x2b751f=await this[_0x90377a(0x637,0x59b,0x517,0x61e)](_0x184111,_0x1944c9),_0x51cba3=await this[_0x90377a(_0x1fbbd5._0x51baac,0x524,_0x1fbbd5._0x36385b,0x510)](_0x445fdf,_0x58b0fe,_0x2b751f,_0x3bb574,_0x1944c9),_0x57e8fd=createOpenAiResponsesStreamParser(_0x184111);throwIfAborted(_0x1944c9),_0x51cba3[_0x90377a(0x444,0x4cc,0x42f,_0x1fbbd5._0x60f1f7)](JSON[_0x90377a(0x4b7,0x4b3,0x4d1,_0x1fbbd5._0x3c0d88)](_0x3bb574));for await(const _0x4e45e6 of iterateWebSocketMessages(_0x51cba3,_0x1944c9)){const _0x381cfc=_0x57e8fd['consumeWebSocketEvent']?.(_0x4e45e6)??[];yield*_0x381cfc;if(_0x57e8fd[_0x90377a(_0x1fbbd5._0x43da46,0x536,0x54b,0x476)]?.())break;}function _0x1e6054(_0x55c663,_0x6b19ee,_0x4910a2,_0x4b2caf){return _0x3c7c8d(_0x4b2caf-_0x54680d._0x3ff22e,_0x6b19ee-_0x54680d._0x2c52e4,_0x4910a2-0x183,_0x6b19ee);}if(!_0x57e8fd[_0x1e6054(0x2c5,_0x1fbbd5._0x235d1f,_0x1fbbd5._0x450841,0x35d)]?.())throw new Error(_0x90377a(0x4ee,_0x1fbbd5._0x5226b9,0x41d,0x3ee));const _0x10e632=_0x57e8fd[_0x1e6054(_0x1fbbd5._0x5e0285,0x42d,_0x1fbbd5._0x290b21,_0x1fbbd5._0x1db894)](),_0x2c169a=_0x10e632['providerState']?.['openaiResponsesResponseId']??_0x10e632['id'];_0x2c169a&&(_0x58b0fe['lastResponseId']=_0x2c169a),yield{'type':'done','response':_0x10e632};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x65d232(0x71,-0x36,0xfc,0x12a),_0x3c7c8d(0x314,0x2d9,0x26b,0x355),_0x65d232(0x6b,0x41,0x32,-0x22),_0x65d232(0xc1,0x127,0x75,0xe2)];function isAnthropicSurface(_0x568c5c){const _0x3485c8={_0x38cfc9:0x108},_0x5e6338={_0x3753b2:0x15b};function _0x41d6dc(_0x433721,_0x9adf72,_0x40e0f0,_0x37310b){return _0x3c7c8d(_0x433721- -_0x5e6338._0x3753b2,_0x9adf72-0x1cd,_0x40e0f0-0x11d,_0x37310b);}return _0x568c5c===_0x41d6dc(0x18e,_0x3485c8._0x38cfc9,0x228,0xf6);}function _0x65d232(_0x1b77ed,_0x2520bb,_0x278f46,_0x29db10){const _0x258227={_0x5d3027:0xf3};return _0x501c(_0x1b77ed- -_0x258227._0x5d3027,_0x2520bb);}function resolveDefaultBaseUrl(_0x3f802f){return isAnthropicSurface(_0x3f802f)?'https://api.anthropic.com':'https://api.openai.com/v1';}var ChatModel=class{[_0x65d232(0xb2,0x11f,0x7b,0x43)];['maxTokens'];[_0x65d232(0x12b,0xf0,0x186,0x9f)];[_0x65d232(-0x39,-0xc4,-0xc,-0xdc)];[_0x3c7c8d(0x39f,0x2ee,0x332,0x313)];constructor(_0x437e2b={}){const _0x135911={_0x3bdf6f:0x111,_0x17c599:0x1ab,_0x379156:0x604,_0x5a0f94:0x12e,_0x374848:0x279,_0xb7ced6:0x1f0,_0x2ef2a4:0x235,_0xa3dbff:0x138,_0x4dcbf9:0x139,_0x4b16d1:0x56a,_0x1fa5ed:0x297,_0x4b4bf5:0x3e1,_0x3c3730:0x406,_0x241051:0x5c4,_0x1f8fb1:0x521,_0x210c75:0x1ea,_0x3148e4:0x1cf,_0x55b7c0:0x1dc,_0x366180:0x1f9,_0x254f6b:0x1fa,_0x346da5:0x177,_0x4bd5fe:0x4d,_0x4715fc:0x10a,_0x51a064:0x10f,_0x3f3ca2:0x5a2,_0x15f5da:0x5e4,_0x1f6002:0x5cf,_0x58daa0:0x532,_0x58f529:0x5ee,_0x46eb3f:0x566,_0x2d4518:0x202,_0x55678b:0x5d0,_0x34bb4b:0x5c9,_0x54922c:0x3e6,_0x3b2121:0x468,_0x165993:0x42a,_0x20828f:0x5c8,_0x192da2:0x4e9,_0x222811:0x595,_0x317f44:0x556,_0x595556:0x491,_0x101601:0x3dc,_0x40352d:0x484,_0x1bf39b:0x219},_0x5eb035={_0x35a1d6:0x43f},_0x296d41={_0x1661bf:0x1b3,_0x36d1ba:0x1a3};this[_0x1ba8e5(_0x135911._0x3bdf6f,0x21d,0x177,0x1b9)]=_0x437e2b['model']??'gpt-4o',this[_0x1ba8e5(0x12a,_0x135911._0x17c599,0x1dc,0x1ff)]=_0x437e2b['maxTokens']??0x4000;function _0x1ba8e5(_0x31fe7d,_0x48e600,_0x389f61,_0x33281b){return _0x3c7c8d(_0x389f61- -_0x296d41._0x1661bf,_0x48e600-_0x296d41._0x36d1ba,_0x389f61-0x18e,_0x48e600);}this[_0x1815f3(_0x135911._0x379156,0x60f,0x4d6,0x56a)]=_0x437e2b[_0x1ba8e5(_0x135911._0x5a0f94,_0x135911._0x374848,_0x135911._0xb7ced6,0x153)]??'openai-chat-completions';const _0x464c86=trimTrailingSlashes(_0x437e2b[_0x1ba8e5(_0x135911._0x2ef2a4,_0x135911._0xa3dbff,0x17f,_0x135911._0x4dcbf9)]??resolveDefaultBaseUrl(this[_0x1815f3(0x60a,0x563,0x5dc,_0x135911._0x4b16d1)]));if(isAnthropicSurface(this[_0x1ba8e5(0x19e,0x1df,0x1f0,_0x135911._0x1fa5ed)])){this[_0x1815f3(0x492,_0x135911._0x4b4bf5,0x35a,_0x135911._0x3c3730)]=new AnthropicModel({'apiKey':_0x437e2b[_0x1ba8e5(0xf7,0x106,0x156,0xc2)],'authScheme':_0x437e2b[_0x1815f3(0x4fb,0x57b,_0x135911._0x241051,_0x135911._0x1f8fb1)],'baseUrl':_0x464c86,'fetch':_0x437e2b[_0x1ba8e5(0x28f,_0x135911._0x210c75,_0x135911._0x3148e4,0x1a9)],'maxTokens':this[_0x1ba8e5(0x21c,0x128,_0x135911._0x55b7c0,_0x135911._0x366180)],'model':this[_0x1ba8e5(0x1f6,_0x135911._0x254f6b,_0x135911._0x346da5,0x1fb)],'reasoning':_0x437e2b[_0x1ba8e5(0x1c0,_0x135911._0x4bd5fe,_0x135911._0x4715fc,_0x135911._0x51a064)],'providerSessionResolver':_0x437e2b[_0x1815f3(_0x135911._0x3f3ca2,_0x135911._0x15f5da,_0x135911._0x1f6002,_0x135911._0x58daa0)],'requestMutators':_0x437e2b['requestMutators']});return;}function _0x1815f3(_0x406603,_0x33c085,_0x42f2fa,_0x1b8cb3){return _0x65d232(_0x1b8cb3-_0x5eb035._0x35a1d6,_0x406603,_0x42f2fa-0x1e3,_0x1b8cb3-0x44);}this[_0x1815f3(0x58b,0x553,_0x135911._0x58f529,_0x135911._0x46eb3f)]=new OpenAiModel({'apiKey':_0x437e2b[_0x1ba8e5(0x1de,0x193,0x156,_0x135911._0x2d4518)],'baseUrl':_0x464c86,'fetch':_0x437e2b[_0x1815f3(_0x135911._0x55678b,_0x135911._0x34bb4b,0x536,0x549)],'headerResolver':_0x437e2b[_0x1815f3(_0x135911._0x54922c,_0x135911._0x3b2121,_0x135911._0x165993,0x417)],'maxTokens':this[_0x1815f3(_0x135911._0x20828f,_0x135911._0x192da2,_0x135911._0x222811,_0x135911._0x317f44)],'model':this['model'],'reasoning':_0x437e2b[_0x1815f3(_0x135911._0x595556,_0x135911._0x101601,0x4c9,_0x135911._0x40352d)],'providerSessionResolver':_0x437e2b[_0x1ba8e5(0x26f,0x272,0x1b8,_0x135911._0x1bf39b)],'requestMutators':_0x437e2b['requestMutators'],'webSocketFactory':_0x437e2b['webSocketFactory']});}[_0x65d232(0xc4,0xba,0x28,0x16a)](){const _0x204322={_0xc4212a:0x2e,_0x510b99:0x89,_0x4ea314:0xb3,_0x368fca:0x177,_0x64c9cb:0x6b,_0x1dacaf:0xd0,_0x1ab428:0x3a,_0x597dc3:0x9a,_0x1796c1:0x25},_0x252b6f={_0x1ce8d4:0x1e9,_0x562994:0x19d},_0x29ab39={_0x2bae83:0x2d9,_0x2af105:0x111};if(!this[_0x57d3c3(_0x204322._0xc4212a,_0x204322._0x510b99,-0x24,_0x204322._0x4ea314)])throw new Error(_0x57d3c3(_0x204322._0x368fca,0x113,0xa1,_0x204322._0x64c9cb)+this[_0x5a39e8(_0x204322._0x1dacaf,_0x204322._0x1ab428,0xca,0x80)]);function _0x5a39e8(_0x11a43f,_0x559c73,_0x123996,_0x5c06b0){return _0x3c7c8d(_0x123996- -_0x29ab39._0x2bae83,_0x559c73-0x1e5,_0x123996-_0x29ab39._0x2af105,_0x559c73);}function _0x57d3c3(_0x4d6912,_0x429194,_0x4bb69f,_0x53dc0d){return _0x3c7c8d(_0x429194- -0x1b6,_0x429194-_0x252b6f._0x1ce8d4,_0x4bb69f-_0x252b6f._0x562994,_0x4d6912);}return this[_0x5a39e8(-0xa8,-0x53,-_0x204322._0x597dc3,-_0x204322._0x1796c1)];}[_0x65d232(-0x2f,-0xa1,-0x3e,0x8b)](){const _0x2bc504={_0x561e92:0xc4,_0x5e9bc0:0x11e,_0x40faa0:0xc8,_0x381eb8:0x1bf,_0x76303a:0x21d,_0x393dde:0x1be,_0xdb1522:0x1a9},_0x5af0e4={_0x4775a7:0xf2,_0x398157:0x87},_0x41dcae={_0x100089:0x2da,_0x128e33:0x16e};function _0x17544f(_0x53cfb9,_0x1ed841,_0x5e4f97,_0x396423){return _0x65d232(_0x396423- -_0x41dcae._0x100089,_0x5e4f97,_0x5e4f97-_0x41dcae._0x128e33,_0x396423-0x179);}if(!this['openAiDelegate'])throw new Error(_0x25b87f(_0x2bc504._0x561e92,_0x2bc504._0x5e9bc0,_0x2bc504._0x40faa0,_0x2bc504._0x381eb8)+this[_0x25b87f(0x1da,_0x2bc504._0x76303a,_0x2bc504._0x393dde,_0x2bc504._0xdb1522)]);function _0x25b87f(_0x41b2cb,_0x10166d,_0x16175f,_0x9c7348){return _0x65d232(_0x10166d-_0x5af0e4._0x4775a7,_0x16175f,_0x16175f-_0x5af0e4._0x398157,_0x9c7348-0xaf);}return this['openAiDelegate'];}[_0x65d232(-0x1,0x39,-0x7f,0xbc)](_0x34d336,_0x3e2d29){const _0xd47993={_0x25d831:0x267,_0xc28802:0x2e1,_0x5d2058:0x2d9,_0x19d53c:0x279,_0x3d2901:0x3e9,_0x1381b7:0x208,_0x2b2a0f:0x214,_0x539386:0x2a4,_0x475982:0x236,_0x3fe4a9:0x27e,_0x201a25:0x146,_0x20d89e:0x8e,_0x38fb14:0xdc,_0x100abe:0x1c5,_0x42c2be:0x285,_0x5c4a32:0x195,_0x5401ac:0xf3,_0x57ee31:0x29f},_0x4b3acf={_0x3af11c:0x47f,_0x22086a:0xd3,_0x3d044f:0x198};function _0x6b8354(_0x35ae5d,_0x480f8e,_0x39d499,_0x10739e){return _0x3c7c8d(_0x35ae5d- -_0x4b3acf._0x3af11c,_0x480f8e-_0x4b3acf._0x22086a,_0x39d499-_0x4b3acf._0x3d044f,_0x10739e);}function _0x5e23c2(_0x374672,_0x2b86f3,_0x17a0f6,_0x5708e5){return _0x65d232(_0x2b86f3-0x270,_0x5708e5,_0x17a0f6-0x1b9,_0x5708e5-0x1f4);}switch(this['surface']){case _0x5e23c2(_0xd47993._0x25d831,_0xd47993._0xc28802,_0xd47993._0x5d2058,0x273):return this[_0x5e23c2(_0xd47993._0x19d53c,0x334,0x29a,_0xd47993._0x3d2901)]()[_0x6b8354(-_0xd47993._0x1381b7,-_0xd47993._0x2b2a0f,-_0xd47993._0x539386,-0x1d1)](_0x34d336,_0x3e2d29);case _0x5e23c2(0x331,0x2db,0x258,0x350):return this[_0x6b8354(-_0xd47993._0x475982,-0x2ac,-_0xd47993._0x3fe4a9,-0x225)]()['response'](_0x34d336,_0x3e2d29);case _0x6b8354(-_0xd47993._0x201a25,-_0xd47993._0x20d89e,-0x18f,-_0xd47993._0x38fb14):return this[_0x6b8354(-0x236,-_0xd47993._0x100abe,-0x226,-_0xd47993._0x42c2be)]()[_0x6b8354(-_0xd47993._0x5c4a32,-_0xd47993._0x5401ac,-0x164,-0x145)](_0x34d336,_0x3e2d29);default:return this[_0x6b8354(-0x236,-0x228,-0x27f,-0x209)]()[_0x5e23c2(0x1ef,_0xd47993._0x57ee31,0x2ea,0x29c)](_0x34d336,_0x3e2d29);}}[_0x65d232(0x3a,0xf0,0xf7,-0x60)](_0x48c594,_0x3d77dd){const _0x1f2ba7={_0x50d513:0x38,_0x580d94:0x94,_0x258e23:0x1b,_0x42cdc3:0x43,_0x256cdc:0x181,_0x1ca21c:0x10c,_0xf1233d:0x9f,_0x12ade0:0x12,_0x3258b3:0x117,_0x3c7da1:0x145,_0x52cdc4:0x203,_0x43cead:0x4d,_0x28a103:0x1a0,_0x1cba47:0x15c,_0xc27def:0xa,_0x52b5c7:0xa4,_0x2631f4:0x85,_0x4fb7cb:0x58,_0x86202:0xed,_0x5d439c:0xcb,_0x20d905:0xc3,_0x4a7d78:0x17d,_0x5a2732:0x196,_0x49bb19:0xb5,_0xa4191c:0x143},_0x478e17={_0x2ad653:0x163,_0x87118:0x1e};function _0x45f976(_0x3268f6,_0x492a17,_0x25277d,_0x1888d0){return _0x65d232(_0x492a17-0x110,_0x25277d,_0x25277d-0x115,_0x1888d0-0x1b5);}function _0x517e1b(_0x37cd51,_0x2de72d,_0x2b6c4d,_0x3a0332){return _0x65d232(_0x37cd51- -_0x478e17._0x2ad653,_0x3a0332,_0x2b6c4d-_0x478e17._0x87118,_0x3a0332-0x144);}switch(this[_0x517e1b(-_0x1f2ba7._0x50d513,-_0x1f2ba7._0x580d94,_0x1f2ba7._0x258e23,_0x1f2ba7._0x42cdc3)]){case _0x45f976(0x237,_0x1f2ba7._0x256cdc,_0x1f2ba7._0x1ca21c,0x1b1):return this[_0x517e1b(-_0x1f2ba7._0xf1233d,-0x1e,-0x106,_0x1f2ba7._0x12ade0)]()[_0x45f976(_0x1f2ba7._0x3258b3,0x14a,_0x1f2ba7._0x3c7da1,_0x1f2ba7._0x52cdc4)](_0x48c594,_0x3d77dd);case _0x517e1b(-0xf8,-_0x1f2ba7._0x43cead,-0x66,-0x1ae):return this[_0x45f976(_0x1f2ba7._0x28a103,0xe1,_0x1f2ba7._0x1cba47,0x40)]()[_0x517e1b(-0x49,-0xcd,_0x1f2ba7._0xc27def,-0xca)](_0x48c594,_0x3d77dd);case _0x517e1b(-0xa2,-_0x1f2ba7._0x52b5c7,-_0x1f2ba7._0x2631f4,-_0x1f2ba7._0x4fb7cb):return this[_0x45f976(_0x1f2ba7._0x86202,0xe1,_0x1f2ba7._0x5d439c,_0x1f2ba7._0x20d905)]()[_0x45f976(_0x1f2ba7._0x4a7d78,0x1af,_0x1f2ba7._0x5a2732,0x165)](_0x48c594,_0x3d77dd);default:return this[_0x45f976(_0x1f2ba7._0x49bb19,0xe1,_0x1f2ba7._0xa4191c,0x6e)]()['chatStream'](_0x48c594,_0x3d77dd);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x3c7c8d(0x360,0x398,0x403,0x3ac)];[_0x3c7c8d(0x332,0x2e2,0x3a3,0x324)];[_0x65d232(0x1c,0x63,-0x13,0x37)];[_0x65d232(0x73,0x103,0x26,-0x31)];['tokenExchangeApiVersion'];constructor(_0x3dba66){const _0x2d7a7c={_0x2dd2b5:0x218,_0x262478:0x200,_0x3d9fd4:0x1b5,_0x15e916:0x4ea,_0x3f6df2:0x374,_0x260759:0x362,_0xb31ff1:0x374,_0x5e2af7:0x3b8,_0x3510b9:0x3f2,_0x103aac:0x424,_0x5c339e:0x45e,_0x3f192a:0x43c},_0x5c7ece={_0x2ca774:0xd6,_0x5d3d65:0x140},_0x18de1a={_0x413c3f:0x2e8};this[_0x24fb44(-_0x2d7a7c._0x2dd2b5,-_0x2d7a7c._0x262478,-_0x2d7a7c._0x3d9fd4,-0x249)]=_0x3dba66[_0x538e96(_0x2d7a7c._0x15e916,0x38a,0x3e4,0x436)];function _0x24fb44(_0x164864,_0x4d5c46,_0x330bd9,_0x14864b){return _0x65d232(_0x4d5c46- -_0x18de1a._0x413c3f,_0x330bd9,_0x330bd9-0x198,_0x14864b-0x68);}this[_0x538e96(_0x2d7a7c._0x3f6df2,_0x2d7a7c._0x260759,0x399,0x408)]=trimTrailingSlashes2(_0x3dba66['baseUrl']),this['fetchImpl']=_0x3dba66['fetch'],this[_0x538e96(_0x2d7a7c._0xb31ff1,_0x2d7a7c._0x5e2af7,_0x2d7a7c._0x3510b9,0x3c1)]=trimTrailingSlashes2(_0x3dba66['githubApiUrl']);function _0x538e96(_0x363a46,_0x136cb7,_0x5a1d1e,_0x579bcd){return _0x3c7c8d(_0x579bcd-_0x5c7ece._0x2ca774,_0x136cb7-0xc0,_0x5a1d1e-_0x5c7ece._0x5d3d65,_0x136cb7);}this['tokenExchangeApiVersion']=_0x3dba66[_0x538e96(0x4b8,_0x2d7a7c._0x103aac,_0x2d7a7c._0x5c339e,_0x2d7a7c._0x3f192a)];}async[_0x65d232(0x99,0x25,0x12,0x5)](_0x2da43a){const _0x1e8edf={_0x5ca3c7:0x223,_0x538001:0x284,_0x37a3c5:0x1ce,_0x5a7c0b:0x1cc,_0x31bdfb:0x2af,_0x51bf3a:0x211,_0x5a3d2d:0x9f,_0x9d61dc:0x157,_0x20be7d:0x1a1,_0x4cba77:0x16c,_0x3c087d:0x1ad,_0x554a87:0x20b,_0x538e76:0x16a,_0x1f6701:0xe1,_0x1e3440:0x1de,_0x3ae28d:0x1b4,_0x2df414:0x202,_0x2facb4:0x249,_0x4a99ae:0x1b8,_0x327e1a:0x295,_0x25e830:0xe7,_0xfcbf1f:0x92,_0x465352:0xda,_0x10b97c:0x115,_0x4a2d4b:0xd9,_0x22ef86:0x171,_0x3b25e2:0x1fe,_0x438d36:0x231,_0x36556a:0xe7,_0x17ac3c:0xb8,_0x2bc2f2:0x27a,_0x1221d5:0x22c,_0x4074b1:0x2ff,_0x41ecf2:0x1f7,_0x547b00:0x171,_0x5ef78d:0x165,_0x3569cf:0x12a,_0x10b704:0x2a9,_0x2d3261:0x301,_0x3e24ff:0x322,_0x11cd7c:0x1da,_0x2afa79:0x264,_0x53704f:0x1d8,_0x58fc71:0x11b},_0x2d1373={_0x299eef:0x1df,_0x49b524:0x12b},_0x2b7b4b={_0x1b66d5:0xff};function _0x10f682(_0x3f1074,_0x59dd6a,_0x10e84a,_0x29b768){return _0x65d232(_0x59dd6a- -0x1cf,_0x29b768,_0x10e84a-_0x2b7b4b._0x1b66d5,_0x29b768-0xd2);}function _0x2daae5(_0x4f5de2,_0x1e2799,_0x17642f,_0x45f2f5){return _0x65d232(_0x4f5de2- -0x23f,_0x17642f,_0x17642f-_0x2d1373._0x299eef,_0x45f2f5-_0x2d1373._0x49b524);}const _0x4e9139=await this[_0x2daae5(-_0x1e8edf._0x5ca3c7,-_0x1e8edf._0x538001,-_0x1e8edf._0x37a3c5,-0x2a4)](this[_0x2daae5(-_0x1e8edf._0x5a7c0b,-0x15f,-0x1b0,-0x1f6)]+_0x10f682(-_0x1e8edf._0x31bdfb,-0x20c,-_0x1e8edf._0x51bf3a,-0x238),{'method':'GET','headers':new Headers({'accept':_0x10f682(-0xd0,-0x106,-_0x1e8edf._0x5a3d2d,-0x11d),'authorization':'Bearer\x20'+this[_0x2daae5(-_0x1e8edf._0x9d61dc,-_0x1e8edf._0x20be7d,-0x97,-_0x1e8edf._0x4cba77)],'editor-version':_0x10f682(-_0x1e8edf._0x3c087d,-0x1b4,-_0x1e8edf._0x554a87,-0x14c),'user-agent':_0x2daae5(-_0x1e8edf._0x538e76,-_0x1e8edf._0x1f6701,-0xd8,-0x102),'x-github-api-version':this[_0x2daae5(-0x151,-_0x1e8edf._0x1e3440,-_0x1e8edf._0x3ae28d,-_0x1e8edf._0x2df414)]}),'signal':_0x2da43a});if(!_0x4e9139['ok'])return{'credential':{'kind':_0x10f682(-_0x1e8edf._0x2facb4,-0x20e,-_0x1e8edf._0x4a99ae,-_0x1e8edf._0x327e1a),'value':this[_0x10f682(-0x14e,-_0x1e8edf._0x25e830,-_0x1e8edf._0xfcbf1f,-0xba)]},'endpoints':{'api':this[_0x10f682(-_0x1e8edf._0x465352,-_0x1e8edf._0x10b97c,-0x163,-0xe6)]}};const _0xd2ee63=await _0x4e9139['json']();return{'credential':{'kind':_0x10f682(-0x13c,-_0x1e8edf._0x4a2d4b,-_0x1e8edf._0x22ef86,-0xa3),'value':_0xd2ee63[_0x2daae5(-_0x1e8edf._0x3b25e2,-_0x1e8edf._0x438d36,-0x23d,-0x1f3)]??this[_0x10f682(-0x18f,-_0x1e8edf._0x36556a,-0x126,-_0x1e8edf._0x17ac3c)]},'endpoints':{'api':_0xd2ee63[_0x2daae5(-_0x1e8edf._0x2bc2f2,-0x2be,-_0x1e8edf._0x1221d5,-_0x1e8edf._0x4074b1)]?.[_0x10f682(-_0x1e8edf._0x41ecf2,-_0x1e8edf._0x547b00,-_0x1e8edf._0x5ef78d,-0x118)]??this[_0x2daae5(-0x185,-0x228,-0x1fa,-_0x1e8edf._0x3569cf)],'originTracker':_0xd2ee63['endpoints']?.['origin-tracker'],'proxy':_0xd2ee63[_0x2daae5(-_0x1e8edf._0x2bc2f2,-_0x1e8edf._0x10b704,-_0x1e8edf._0x2d3261,-_0x1e8edf._0x3e24ff)]?.[_0x10f682(-0xb4,-0x138,-0xf3,-0x13d)],'telemetry':_0xd2ee63[_0x10f682(-0x1e6,-0x20a,-0x1ac,-_0x1e8edf._0x11cd7c)]?.[_0x10f682(-_0x1e8edf._0x2afa79,-_0x1e8edf._0x53704f,-0x221,-_0x1e8edf._0x58fc71)]}};}};function trimTrailingSlashes2(_0x57dc55){const _0x84dbcb={_0x2224d3:0x14,_0x2da433:0xd},_0x3abfdb={_0x212a58:0xa,_0x21716b:0x1f3,_0x5d4bdd:0x13d};function _0x6d63bb(_0x5ec2f6,_0x4b0ec7,_0x1d8da4,_0x25173e){return _0x65d232(_0x4b0ec7- -_0x3abfdb._0x212a58,_0x1d8da4,_0x1d8da4-_0x3abfdb._0x21716b,_0x25173e-_0x3abfdb._0x5d4bdd);}return _0x57dc55[_0x6d63bb(0xba,0x7c,_0x84dbcb._0x2224d3,_0x84dbcb._0x2da433)](/\/+$/,'');}function createModelInfo(_0x4b0373){const _0x150f30={_0x6a92bf:0x232,_0x11573e:0x274,_0x1118d8:0x1e3,_0x249a4b:0x10f,_0x5650dc:0x1be,_0x216afd:0x261,_0x583b21:0x1e0,_0x2c54d8:0x262,_0x272e00:0x27f,_0x5da50a:0x287,_0x2d49af:0x21e,_0x5036e4:0x221},_0x268dc2={_0x16ebc9:0x1ba},_0x3d4c1f={_0x314204:0x509,_0x26ae52:0x13b};function _0x3b099e(_0x118393,_0x42ed15,_0x2daef8,_0x1f6227){return _0x3c7c8d(_0x1f6227- -_0x3d4c1f._0x314204,_0x42ed15-_0x3d4c1f._0x26ae52,_0x2daef8-0x13b,_0x2daef8);}const _0x2e88f2=_0x4b0373[_0xabb308(0x206,0x155,_0x150f30._0x6a92bf,_0x150f30._0x11573e)]??_0x4b0373['capable_endpoints'],_0xd0e49a=_0x4b0373['capabilities']?.[_0x3b099e(-0x201,-_0x150f30._0x1118d8,-_0x150f30._0x249a4b,-_0x150f30._0x5650dc)]?.[_0x3b099e(-_0x150f30._0x216afd,-0x162,-_0x150f30._0x583b21,-0x204)],_0x44a3c0=_0x4b0373[_0xabb308(_0x150f30._0x2c54d8,_0x150f30._0x272e00,0x235,0x323)]?.[_0xabb308(0x28d,0x23d,_0x150f30._0x5da50a,0x211)]?.['max_output_tokens'];function _0xabb308(_0x38462a,_0x368b42,_0x3f6af0,_0x14c820){return _0x65d232(_0x38462a-_0x268dc2._0x16ebc9,_0x3f6af0,_0x3f6af0-0xc6,_0x14c820-0x1e);}const _0x3ac42d=_0xd0e49a!==void 0x0||_0x44a3c0!==void 0x0?{..._0xd0e49a!==void 0x0?{'contextWindow':_0xd0e49a}:{},..._0x44a3c0!==void 0x0?{'maxOutput':_0x44a3c0}:{}}:void 0x0;return{'id':_0x4b0373['id'],'name':_0x4b0373[_0xabb308(_0x150f30._0x2d49af,_0x150f30._0x5036e4,0x265,0x20b)]??_0x4b0373['id'],..._0x3ac42d?{'limits':_0x3ac42d}:{},..._0x2e88f2?{'supportedEndpoints':_0x2e88f2}:{}};}function deduplicateModels(_0x190043){const _0x12d0a7={_0xe41991:0x49,_0x589019:0x60,_0xbdb5cd:0x41,_0x71a44f:0xb6,_0x355d4b:0x10},_0xdf2d3e={_0x54a8e5:0x195,_0x314e7a:0x180},_0x5c2591={_0x42505b:0x8,_0x1006ea:0x19d};function _0x3461c5(_0x5b56ed,_0x4ac77d,_0x424a38,_0x2b9810){return _0x3c7c8d(_0x424a38- -0x2a5,_0x4ac77d-_0x5c2591._0x42505b,_0x424a38-_0x5c2591._0x1006ea,_0x2b9810);}function _0x2c1002(_0x5dee36,_0x2675ae,_0x411df6,_0x2475d2){return _0x3c7c8d(_0x5dee36- -0x307,_0x2675ae-_0xdf2d3e._0x54a8e5,_0x411df6-_0xdf2d3e._0x314e7a,_0x2475d2);}const _0x3ab555=new Map();for(const _0x1b8f1c of _0x190043){!_0x3ab555[_0x2c1002(-0x7b,-0x27,-0x7f,-_0x12d0a7._0xe41991)](_0x1b8f1c['id'])&&_0x3ab555[_0x2c1002(0xe,-0xac,_0x12d0a7._0x589019,_0x12d0a7._0xbdb5cd)](_0x1b8f1c['id'],_0x1b8f1c);}return Array['from'](_0x3ab555[_0x2c1002(0x27,_0x12d0a7._0x71a44f,0x8a,_0x12d0a7._0x355d4b)]());}function hasUserPromptContent(_0x419e71){const _0x1f36af={_0x5c884d:0x157,_0x4bc52b:0x272,_0x3e2782:0x293,_0x272c3f:0x13d,_0xf1e8e7:0x1af,_0xc78b29:0x13c,_0x5174ec:0x226,_0x5f5007:0x277,_0x2059dd:0x270,_0x3924f1:0x210,_0x48df07:0x176,_0x235635:0x273,_0x2cd302:0x209},_0x4c8bcd={_0x1cbfa9:0x4a9,_0x243771:0x2b4,_0x2f38f2:0x32a,_0x2f42f7:0x23d,_0x542bfb:0x2f7,_0x146277:0x1e0,_0x4e4910:0x21c,_0x1af744:0x223,_0x3111df:0x17f,_0x3bc6a7:0x10b,_0x26da31:0x276,_0x4cf2fc:0x1b8,_0x397f26:0x275,_0x46350f:0x372,_0x1bb01f:0x2bd,_0x560f9a:0x35d,_0x27cc6b:0x2f9,_0x2df084:0x4a7},_0x1a2f62={_0x3e4efb:0x49a},_0x56d566={_0x31be42:0x2c6,_0x451bd1:0x14a};function _0x2eebe4(_0x1829df,_0x313cc0,_0x479049,_0x33063b){return _0x65d232(_0x313cc0-_0x56d566._0x31be42,_0x479049,_0x479049-0xbb,_0x33063b-_0x56d566._0x451bd1);}function _0x42d6ad(_0x2e66bb,_0x5683c4,_0x512863,_0x168497){return _0x3c7c8d(_0x2e66bb- -_0x1a2f62._0x3e4efb,_0x5683c4-0x35,_0x512863-0x144,_0x512863);}if(typeof _0x419e71===_0x42d6ad(-0x219,-_0x1f36af._0x5c884d,-_0x1f36af._0x4bc52b,-0x21c))return _0x419e71[_0x2eebe4(0x23e,_0x1f36af._0x3e2782,0x352,0x1fe)]()[_0x42d6ad(-_0x1f36af._0x272c3f,-_0x1f36af._0xf1e8e7,-_0x1f36af._0xc78b29,-0xc1)]>0x0;if(!Array[_0x42d6ad(-_0x1f36af._0x5174ec,-_0x1f36af._0x5f5007,-0x2ad,-_0x1f36af._0x2059dd)](_0x419e71))return![];return _0x419e71[_0x42d6ad(-_0x1f36af._0x3924f1,-_0x1f36af._0x48df07,-_0x1f36af._0x235635,-_0x1f36af._0x2cd302)](_0xaca3ee=>{function _0x62a85b(_0x59d470,_0x20f599,_0x404a41,_0x16a344){return _0x42d6ad(_0x404a41-0x5e4,_0x20f599-0xf2,_0x20f599,_0x16a344-0x5b);}if(!_0xaca3ee||typeof _0xaca3ee!=='object')return![];const _0x3a9b9f=_0xaca3ee;function _0x5b21e2(_0x91f4b3,_0xf31a78,_0x53c289,_0x1e23b1){return _0x42d6ad(_0x1e23b1- -0xa4,_0xf31a78-0x15f,_0x91f4b3,_0x1e23b1-0x1c0);}return(_0x3a9b9f[_0x62a85b(0x548,0x441,_0x4c8bcd._0x1cbfa9,0x4e8)]===_0x5b21e2(-_0x4c8bcd._0x243771,-_0x4c8bcd._0x2f38f2,-_0x4c8bcd._0x2f42f7,-_0x4c8bcd._0x542bfb)||_0x3a9b9f[_0x5b21e2(-_0x4c8bcd._0x146277,-_0x4c8bcd._0x4e4910,-_0x4c8bcd._0x1af744,-0x1df)]===_0x62a85b(0x585,0x45b,0x4d0,0x56f))&&typeof _0x3a9b9f[_0x5b21e2(-_0x4c8bcd._0x3111df,-_0x4c8bcd._0x3bc6a7,-_0x4c8bcd._0x26da31,-_0x4c8bcd._0x4cf2fc)]===_0x5b21e2(-0x2a5,-_0x4c8bcd._0x397f26,-_0x4c8bcd._0x46350f,-_0x4c8bcd._0x1bb01f)&&_0x3a9b9f['text'][_0x5b21e2(-0x3af,-_0x4c8bcd._0x560f9a,-0x2aa,-_0x4c8bcd._0x27cc6b)]()[_0x62a85b(0x489,0x3f6,_0x4c8bcd._0x2df084,0x4e2)]>0x0;});}function isUserPromptEntry(_0x41113f){const _0xcb3ab9={_0x142435:0x2fc,_0x13150e:0x380,_0x324576:0x2e0,_0x14760f:0x1a8,_0xa3ccd9:0x183,_0x3b2b36:0xe3,_0x542c70:0x148,_0x445246:0xd9},_0x274d1c={_0x32fd26:0x7,_0x3fa265:0x1b5},_0x3a2519={_0x4a433c:0xe};if(!_0x41113f||typeof _0x41113f!==_0x5b0bac(-0x2df,-_0xcb3ab9._0x142435,-_0xcb3ab9._0x13150e,-_0xcb3ab9._0x324576))return![];function _0x5b0bac(_0x1c95a3,_0x2df783,_0x566523,_0x1c728f){return _0x65d232(_0x1c728f- -0x2da,_0x1c95a3,_0x566523-_0x3a2519._0x4a433c,_0x1c728f-0x142);}const _0x26a926=_0x41113f;if(_0x26a926['role']!=='user')return![];function _0x34c9e8(_0x40be05,_0x164c7b,_0xa7e4ce,_0x497ad2){return _0x65d232(_0x164c7b-_0x274d1c._0x32fd26,_0x497ad2,_0xa7e4ce-_0x274d1c._0x3fa265,_0x497ad2-0xaa);}if(_0x26a926['type']!==void 0x0&&_0x26a926[_0x5b0bac(-0x1d3,-_0xcb3ab9._0x14760f,-_0xcb3ab9._0xa3ccd9,-0x1f3)]!==_0x34c9e8(_0xcb3ab9._0x3b2b36,0x11f,0x1ac,0xea))return![];return hasUserPromptContent(_0x26a926[_0x34c9e8(_0xcb3ab9._0x542c70,0xc5,_0xcb3ab9._0x445246,0x156)]);}function determineInitiator(_0x252835){const _0x446645={_0x31292d:0x1ea,_0x35fa38:0x214,_0x161994:0xc0,_0x3cba7c:0x136,_0xf6cf6f:0x1db,_0x5014cb:0x1eb,_0x3eeb2c:0x1fc,_0x9f052a:0x1ac,_0x5f57c7:0x1ec,_0x201105:0x20f,_0x3b2d2b:0x2e0,_0x1d3b26:0x2d5,_0x2dda5b:0x356,_0x50a81b:0xf6},_0x212082={_0x49938b:0x88,_0x16f66b:0xcd},_0x2b93a0={_0x199338:0x24b,_0x33fa62:0xb0,_0xf78e4:0xcf};if(!_0x252835||typeof _0x252835!==_0x2e491a(0x183,_0x446645._0x31292d,0x19a,_0x446645._0x35fa38))return _0x3e6822(-0x13c,-_0x446645._0x161994,-_0x446645._0x3cba7c,-_0x446645._0xf6cf6f);const _0x363461=_0x2e491a(0x2dc,0x2ad,0x29a,_0x446645._0x5014cb)in _0x252835?_0x252835[_0x3e6822(-0x18e,-0x202,-_0x446645._0x3eeb2c,-0x124)]:'input'in _0x252835?_0x252835['input']:void 0x0;function _0x3e6822(_0x299400,_0x5498a1,_0x398588,_0x1db324){return _0x65d232(_0x299400- -_0x2b93a0._0x199338,_0x5498a1,_0x398588-_0x2b93a0._0x33fa62,_0x1db324-_0x2b93a0._0xf78e4);}function _0x2e491a(_0xf1c48f,_0x26412e,_0x3354e4,_0x22922f){return _0x3c7c8d(_0x26412e- -_0x212082._0x49938b,_0x26412e-0x1cb,_0x3354e4-_0x212082._0x16f66b,_0x22922f);}if(!Array[_0x2e491a(_0x446645._0x9f052a,_0x446645._0x5f57c7,0x1e5,_0x446645._0x201105)](_0x363461)||_0x363461[_0x2e491a(_0x446645._0x3b2d2b,_0x446645._0x1d3b26,0x34a,0x29a)]===0x0)return'agent';return isUserPromptEntry(_0x363461[_0x363461[_0x2e491a(_0x446645._0x2dda5b,_0x446645._0x1d3b26,0x380,0x2ac)]-0x1])?'user':_0x3e6822(-0x13c,-_0x446645._0x50a81b,-0x1d4,-0x11a);}function isUnsupportedApiForModel(_0x1e8e2d){const _0x22ade4={_0x5a899b:0x11a,_0xd0ad6d:0x57,_0x47426d:0x10d,_0x14d42d:0x108},_0x236dbc={_0x4e3134:0x3a9,_0x57ed7e:0x22,_0x258d2c:0x1c2};function _0x2e5537(_0x18570f,_0x2b7221,_0x560e7f,_0x4c7837){return _0x3c7c8d(_0x4c7837- -_0x236dbc._0x4e3134,_0x2b7221-_0x236dbc._0x57ed7e,_0x560e7f-_0x236dbc._0x258d2c,_0x560e7f);}return _0x1e8e2d['includes'](_0x2e5537(-_0x22ade4._0x5a899b,-_0x22ade4._0xd0ad6d,-_0x22ade4._0x47426d,-_0x22ade4._0x14d42d));}function createResponseError(_0x30cef1,_0x146449){const _0x1516ea={_0x13d2f6:0x70,_0xa1583f:0x23,_0x37bcca:0x61,_0xac62f9:0x99,_0x10b6a2:0x13b,_0x223a8c:0xfd,_0x421d39:0x9,_0x4a9297:0xdf,_0x1911ee:0x38},_0x7f89d4={_0x5a72ad:0x27b,_0x327911:0x25},_0x219654={_0x39640c:0x1ac};if(_0x30cef1===0x191||_0x30cef1===0x193)return new Error(_0x532f45(-_0x1516ea._0x13d2f6,-_0x1516ea._0xa1583f,_0x1516ea._0x37bcca,_0x1516ea._0xac62f9));if(_0x30cef1===0x198||_0x30cef1===0x1ad)return new Error(_0x532f45(_0x1516ea._0x10b6a2,0x106,_0x1516ea._0x223a8c,0x193));function _0x5d7507(_0x140d77,_0x686c91,_0x3f3aec,_0x2eb0e0){return _0x65d232(_0x2eb0e0- -0x84,_0x140d77,_0x3f3aec-_0x219654._0x39640c,_0x2eb0e0-0x6);}if(_0x30cef1===0x190)return new Error(_0x5d7507(_0x1516ea._0x421d39,_0x1516ea._0x4a9297,0x75,_0x1516ea._0x1911ee)+_0x146449);function _0x532f45(_0x3f733d,_0x33c420,_0xdd96cc,_0x41bcbb){return _0x3c7c8d(_0x33c420- -_0x7f89d4._0x5a72ad,_0x33c420-_0x7f89d4._0x327911,_0xdd96cc-0x9d,_0x3f733d);}return new Error(_0x146449||'GitHub\x20API\x20error\x20'+_0x30cef1);}var GitHubModel=class extends OpenAiModel{[_0x3c7c8d(0x23f,0x2cb,0x21a,0x17f)];['modelEndpointCache']=new Map();[_0x3c7c8d(0x3a3,0x384,0x3ca,0x2ff)];constructor(_0x9d55f7={}){const _0x17cd9c={_0x60050:0x445,_0x10a9c:0x3aa,_0x4f8b68:0x477,_0x5baf27:0x423,_0x42e059:0x37c,_0x390f81:0x451,_0x168031:0x3ae,_0x273ac0:0x429,_0x28a1b1:0x49d,_0xc7b694:0x437,_0x7d8ca4:0x424,_0x45d0d2:0x40e,_0x5d73ac:0x409,_0x31e23c:0x4e3,_0x37df97:0x482,_0x521e6a:0x39e,_0x2b4f22:0x339,_0x6a14db:0x3d0,_0xa370d0:0x380,_0x844ab9:0x352,_0x472c9c:0x42f,_0x41678a:0x302,_0x283f81:0x34d,_0x24c6fe:0x361,_0x4e6902:0x387,_0x48c471:0x452,_0x1b59d9:0x46d,_0xf88f61:0x37f,_0x53f313:0x3c7,_0x377ba3:0x498,_0x49c34e:0x4cb,_0x2b5a1d:0x4ab,_0x5f3747:0x575,_0x5e864b:0x54c},_0x46b28e={_0x3d5df0:0x7f},_0x4c490b={_0x6b568f:0x76};function _0x1e0566(_0x3e896c,_0x114122,_0xb43e5a,_0xbeb21d){return _0x65d232(_0x3e896c-0x33b,_0x114122,_0xb43e5a-0x1c,_0xbeb21d-_0x4c490b._0x6b568f);}const _0x5b624b=trimTrailingSlashes2(_0x9d55f7['baseUrl']??'https://api.individual.githubcopilot.com'),_0x3db5a0=_0x9d55f7['fetch']??globalThis[_0x1e0566(_0x17cd9c._0x60050,_0x17cd9c._0x10a9c,0x4e3,0x448)],_0x47323b=_0x9d55f7['providerSessionResolver']??(_0x9d55f7[_0x1e0566(0x423,_0x17cd9c._0x4f8b68,0x474,0x3dc)]?new GitHubAccessTokenResolver({'accessToken':_0x9d55f7[_0x1e0566(_0x17cd9c._0x5baf27,0x3e7,_0x17cd9c._0x42e059,_0x17cd9c._0x390f81)],'baseUrl':_0x5b624b,'fetch':_0x3db5a0,'githubApiUrl':_0x9d55f7[_0x1e0566(_0x17cd9c._0x168031,0x3ab,0x307,0x42d)]??'https://api.github.com','tokenExchangeApiVersion':_0x9d55f7[_0x1e0566(_0x17cd9c._0x273ac0,0x3ea,_0x17cd9c._0x28a1b1,0x3fa)]??_0x44f494(_0x17cd9c._0xc7b694,0x37e,_0x17cd9c._0x7d8ca4,_0x17cd9c._0x45d0d2)}):void 0x0),_0x4e84bd=_0x9d55f7[_0x1e0566(_0x17cd9c._0x5d73ac,0x3dc,0x364,0x3dc)]??_0x44f494(0x485,0x472,_0x17cd9c._0x31e23c,_0x17cd9c._0x37df97),_0xc886e7=_0x9d55f7[_0x44f494(0x4cd,0x515,0x53b,0x4c6)]??_0x1e0566(_0x17cd9c._0x521e6a,0x331,_0x17cd9c._0x2b4f22,_0x17cd9c._0x6a14db),_0x1e4a59=({body:_0x4ff96c})=>{return{'editor-plugin-version':_0xc886e7,'editor-version':_0x4e84bd,'x-initiator':determineInitiator(_0x4ff96c),'x-request-id':randomUUID()};};function _0x44f494(_0x327393,_0x26c4f5,_0x175fd6,_0x52964c){return _0x65d232(_0x327393-0x453,_0x26c4f5,_0x175fd6-0x1c9,_0x52964c-_0x46b28e._0x3d5df0);}const _0x16fa65={'apiKey':_0x9d55f7['apiKey'],'baseUrl':_0x5b624b,'fetch':_0x3db5a0,'maxTokens':_0x9d55f7[_0x1e0566(0x452,0x3a6,0x425,0x3c0)],'model':_0x9d55f7['model'],'reasoning':_0x9d55f7[_0x1e0566(_0x17cd9c._0xa370d0,0x369,0x2e1,_0x17cd9c._0x844ab9)],'providerSessionResolver':_0x47323b,'requestMutators':_0x9d55f7[_0x44f494(0x575,0x516,0x4f2,0x56d)],'headerResolver':_0x1e4a59};super(_0x16fa65),this['surface']=_0x9d55f7[_0x1e0566(0x466,0x4d2,0x4a7,_0x17cd9c._0x472c9c)]??'auto',this[_0x1e0566(_0x17cd9c._0x41678a,_0x17cd9c._0x283f81,_0x17cd9c._0x24c6fe,0x399)]=new AnthropicModel({'apiKey':_0x9d55f7[_0x1e0566(0x3cc,_0x17cd9c._0x4e6902,0x418,_0x17cd9c._0x7d8ca4)],'authScheme':'bearer','baseUrl':_0x5b624b,'fetch':_0x3db5a0,'headerResolver':_0x1e4a59,'maxTokens':_0x9d55f7[_0x1e0566(_0x17cd9c._0x48c471,0x3a9,0x3ca,0x4c8)],'model':_0x9d55f7[_0x1e0566(0x3ed,_0x17cd9c._0x1b59d9,_0x17cd9c._0xf88f61,_0x17cd9c._0x53f313)],'reasoning':_0x9d55f7[_0x44f494(_0x17cd9c._0x377ba3,_0x17cd9c._0x49c34e,0x403,_0x17cd9c._0x2b5a1d)],'providerSessionResolver':_0x47323b,'requestMutators':_0x9d55f7[_0x44f494(_0x17cd9c._0x5f3747,0x5a2,_0x17cd9c._0x5e864b,0x628)]});}['createMissingCredentialError'](){const _0x389d04={_0x4e457e:0x58e},_0x53f8ab={_0x3f12c0:0x488};function _0x507282(_0x23914a,_0x56d615,_0x2f1729,_0x4e2cdd){return _0x65d232(_0x4e2cdd-_0x53f8ab._0x3f12c0,_0x23914a,_0x2f1729-0x1da,_0x4e2cdd-0x130);}return new Error(_0x507282(0x56e,0x629,_0x389d04._0x4e457e,0x58a));}[_0x65d232(-0x5,-0x49,-0x1,0x5)](_0x262a94){const _0x19d0c8={_0x389cfc:0x52b,_0x5cf42e:0x532,_0x47dad8:0x4e2,_0x3de4f4:0x4e4,_0x5020ff:0x1,_0x360e9f:0x637},_0x6db51={_0x2dbdc5:0xea},_0x34dc17={_0x6f9f19:0x19},_0xb4dd3d=this[_0x3cd2cc(_0x19d0c8._0x389cfc,_0x19d0c8._0x5cf42e,0x4e3,0x552)]['get'](_0x262a94);if(!_0xb4dd3d)return![];function _0x3cd2cc(_0xdda9bd,_0x4277d6,_0x3bb1a1,_0x16aa52){return _0x65d232(_0x3bb1a1-0x47a,_0x4277d6,_0x3bb1a1-_0x34dc17._0x6f9f19,_0x16aa52-0x4a);}function _0x593d58(_0x2a1d77,_0x2edeb8,_0x17bab8,_0xf5d5e0){return _0x3c7c8d(_0x2edeb8- -0x37b,_0x2edeb8-_0x6db51._0x2dbdc5,_0x17bab8-0x29,_0x2a1d77);}return!_0xb4dd3d[_0x3cd2cc(0x4a0,0x4dd,_0x19d0c8._0x47dad8,_0x19d0c8._0x3de4f4)](_0x593d58(-0xd1,-0xa4,_0x19d0c8._0x5020ff,-0xf9))&&_0xb4dd3d['includes'](_0x3cd2cc(0x638,0x634,0x576,_0x19d0c8._0x360e9f));}[_0x3c7c8d(0x328,0x31b,0x2e5,0x271)](_0x553205){const _0xae1e37={_0x4c7bdd:0x165,_0x1f7797:0x2f0,_0x43b0bc:0x296,_0x424937:0x3ec,_0x3781a8:0x423,_0x15d070:0x436,_0x101065:0x3e3,_0x29e2d1:0x12f,_0x18bfaa:0x13c},_0x36e55f={_0x52d3ae:0x1be},_0x5e175f=this[_0x378210(0x1de,0xe0,0x19d,_0xae1e37._0x4c7bdd)][_0xe474b8(0x32c,_0xae1e37._0x1f7797,_0xae1e37._0x43b0bc,0x363)](_0x553205[_0xe474b8(_0xae1e37._0x424937,0x412,_0xae1e37._0x3781a8,0x461)]);if(!_0x5e175f)return![];if(resolveOpenAiReasoningConfig(_0x553205['reasoning']))return _0x5e175f['includes'](_0xe474b8(_0xae1e37._0x15d070,0x4d4,_0xae1e37._0x101065,0x442));function _0xe474b8(_0x43fcbc,_0x10cefa,_0x116fcd,_0x14f358){return _0x3c7c8d(_0x43fcbc-0xc2,_0x10cefa-0xfd,_0x116fcd-0xd2,_0x14f358);}function _0x378210(_0x175ec0,_0x241305,_0x4c7cfc,_0x30cbb3){return _0x3c7c8d(_0x4c7cfc- -0x144,_0x241305-0x22,_0x4c7cfc-_0x36e55f._0x52d3ae,_0x241305);}return this[_0x378210(0x176,0xc0,_0xae1e37._0x29e2d1,_0xae1e37._0x18bfaa)](_0x553205['model']);}[_0x65d232(0x76,-0x3c,0x7b,0x80)](_0x50586c){const _0xcc5703={_0x20d29a:0xdf},_0x17456e={_0x229f6e:0x1c4},_0x520484={_0x480a7a:0x290};function _0x12a829(_0x4e934a,_0x4b0782,_0x2c2747,_0x42ddc2){return _0x65d232(_0x42ddc2- -_0x520484._0x480a7a,_0x4e934a,_0x2c2747-0x73,_0x42ddc2-0x71);}function _0x3dda4f(_0x7b304,_0x4546fc,_0x2ffaf9,_0x52fe87){return _0x3c7c8d(_0x52fe87- -0x193,_0x4546fc-0x98,_0x2ffaf9-_0x17456e._0x229f6e,_0x7b304);}this['modelEndpointCache'][_0x3dda4f(0x129,_0xcc5703._0x20d29a,0x119,0x182)](_0x50586c,[_0x12a829(-0x1f7,-0x140,-0x120,-0x194)]);}[_0x3c7c8d(0x397,0x387,0x2ff,0x2f9)](_0x3f386f){const _0x4cd804={_0x22d8d0:0x35,_0x4972b9:0x6c,_0x13e8cd:0x55},_0xe2df1a={_0x9dd42f:0x3c3},_0x1d6aec={_0x27e68a:0x66,_0x36f9cf:0x49};function _0x6f3d0(_0x12ff2c,_0x445ad5,_0x3050b6,_0x59162f){return _0x65d232(_0x12ff2c- -_0x1d6aec._0x27e68a,_0x3050b6,_0x3050b6-_0x1d6aec._0x36f9cf,_0x59162f-0xc5);}function _0x3b2c8e(_0xf57c01,_0x43d0f0,_0x10f62e,_0x2913c8){return _0x65d232(_0x10f62e-_0xe2df1a._0x9dd42f,_0x43d0f0,_0x10f62e-0x77,_0x2913c8-0xe8);}if(_0x3f386f instanceof OpenAiApiError)return createResponseError(_0x3f386f['status'],_0x3f386f[_0x6f3d0(_0x4cd804._0x22d8d0,0x48,-_0x4cd804._0x4972b9,_0x4cd804._0x13e8cd)]||_0x3f386f[_0x3b2c8e(0x41a,0x509,0x4db,0x592)]);return _0x3f386f;}[_0x65d232(0x133,0x16c,0xbc,0xec)](_0x2ef4a0,_0x341f1e){const _0x9d00bf={_0x302663:0x61,_0x1bdd09:0x96,_0x3cf950:0x255,_0x5d5bc8:0x288,_0x2bd8f6:0x2b6,_0x4d1bc6:0x4},_0x1897c1={_0x23c39c:0x287,_0x3f9817:0x1d6},_0x36b8c7={_0x448551:0x132,_0x45e712:0x2d,_0x2deb04:0x124};function _0x11ee09(_0x362bba,_0x5d2007,_0x5607b0,_0x7e584c){return _0x65d232(_0x5d2007- -_0x36b8c7._0x448551,_0x362bba,_0x5607b0-_0x36b8c7._0x45e712,_0x7e584c-_0x36b8c7._0x2deb04);}function _0x4b6db4(_0x5ad6cb,_0x4baf7d,_0x364de8,_0x2cefc3){return _0x65d232(_0x4baf7d-_0x1897c1._0x23c39c,_0x5ad6cb,_0x364de8-_0x1897c1._0x3f9817,_0x2cefc3-0x10e);}switch(this[_0x11ee09(_0x9d00bf._0x302663,-0x7,_0x9d00bf._0x1bdd09,-0xb8)]){case _0x4b6db4(0x358,0x2f8,0x305,_0x9d00bf._0x3cf950):return this[_0x4b6db4(0x271,0x24e,0x18c,0x1ab)]['complete'](_0x2ef4a0,_0x341f1e);case'openai-chat-completions':return this[_0x4b6db4(_0x9d00bf._0x5d5bc8,_0x9d00bf._0x2bd8f6,0x303,0x2e3)](_0x2ef4a0,_0x341f1e);case'openai-responses':return this['response'](_0x2ef4a0,_0x341f1e);case _0x11ee09(-_0x9d00bf._0x4d1bc6,-0x71,-0x55,-0x71):return this['responseSocket'](_0x2ef4a0,_0x341f1e);case'auto':return this['complete'](_0x2ef4a0,_0x341f1e);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this['surface']));}[_0x65d232(-0x45,-0x7b,-0x54,-0x24)](_0x98f8de,_0x40bcd6){const _0x3a8a6c={_0x223a3c:0x9,_0x6b1416:0x35,_0x47cd45:0x44,_0x39cefd:0x289,_0x4c9640:0x227,_0x19fdbd:0x299,_0x470452:0x252,_0x945edc:0x250,_0x5f24df:0x1e3,_0x7d7341:0xd9,_0x3c7e57:0x119,_0x6fb82d:0x69,_0x15d184:0x2b7,_0x2f40dc:0x306,_0x442508:0x24b,_0x28dedf:0x39c},_0x9ae41={_0xcd0101:0x190},_0x2d3bc={_0x4f88e8:0x60};function _0x574d09(_0x31e722,_0x4725c6,_0x4d4d9c,_0xeeaeb8){return _0x3c7c8d(_0x31e722- -_0x2d3bc._0x4f88e8,_0x4725c6-0x8d,_0x4d4d9c-0x11b,_0x4d4d9c);}function _0xc55240(_0x4ca3d0,_0x1b0008,_0xc7da64,_0x318def){return _0x3c7c8d(_0x318def- -0x3e7,_0x1b0008-_0x9ae41._0xcd0101,_0xc7da64-0xd0,_0x4ca3d0);}switch(this[_0xc55240(-0x89,-_0x3a8a6c._0x223a3c,_0x3a8a6c._0x6b1416,-_0x3a8a6c._0x47cd45)]){case _0x574d09(_0x3a8a6c._0x39cefd,_0x3a8a6c._0x4c9640,0x1e2,0x28e):return this[_0x574d09(0x1df,0x1d2,0x1cd,_0x3a8a6c._0x19fdbd)][_0x574d09(_0x3a8a6c._0x470452,0x2cc,_0x3a8a6c._0x945edc,_0x3a8a6c._0x5f24df)](_0x98f8de,_0x40bcd6);case'openai-chat-completions':return this[_0xc55240(-_0x3a8a6c._0x7d7341,0x24,-_0x3a8a6c._0x3c7e57,-0x8f)](_0x98f8de,_0x40bcd6);case _0xc55240(-0x11a,-0x45,-_0x3a8a6c._0x6fb82d,-0x104):return this['responseStream'](_0x98f8de,_0x40bcd6);case _0x574d09(0x2d9,0x283,0x2a6,0x38d):return this[_0x574d09(_0x3a8a6c._0x15d184,_0x3a8a6c._0x2f40dc,0x30d,_0x3a8a6c._0x442508)](_0x98f8de,_0x40bcd6);case _0x574d09(0x33b,_0x3a8a6c._0x28dedf,0x341,0x36d):return this['stream'](_0x98f8de,_0x40bcd6);}throw new Error('Unsupported\x20GitHub\x20model\x20surface:\x20'+String(this['surface']));}async[_0x3c7c8d(0x277,0x2d3,0x1c2,0x2d1)](_0x179f84,_0x11ec76){const _0x174953={_0x20b03f:0x487,_0x314685:0x427,_0x1cef34:0x555,_0x297899:0x493,_0x48d856:0x4e8,_0x424424:0x4d7,_0x2392bc:0x4d5,_0x25da29:0x4dc,_0xadce1a:0x436,_0x2b0068:0x570,_0x496081:0x3db,_0x3d5fe3:0x43c,_0x5b4afa:0x51b,_0x5b3b75:0x52a,_0x553b45:0x4cd,_0x46f276:0x514,_0x36f5d2:0x4bd,_0x22359d:0x469,_0x1cc6e9:0x3ff,_0x4025b3:0x4fa,_0xcfc794:0x44f,_0x370b46:0x3ac,_0x15dedf:0x48c,_0xe18bf3:0x45b,_0x4afb73:0x480,_0x4b8cab:0x495,_0x3d51ed:0x557,_0x23bdca:0x42e,_0x82224a:0x4d3},_0x40868c={_0x47fb6a:0x13c,_0x598483:0x17a},_0x2a32ab={_0x5b8daa:0x3a9};function _0x3a4a1e(_0x1c3c37,_0x102505,_0x758ad3,_0x40bcb5){return _0x65d232(_0x102505-_0x2a32ab._0x5b8daa,_0x40bcb5,_0x758ad3-0x15f,_0x40bcb5-0x12c);}const _0x59a2d6=this[_0x178a90(0x522,0x425,0x531,0x4e0)](_0x179f84);if(this[_0x3a4a1e(_0x174953._0x20b03f,0x4d4,_0x174953._0x314685,_0x174953._0x1cef34)]!==_0x178a90(0x4c8,_0x174953._0x297899,_0x174953._0x48d856,_0x174953._0x424424))return this[_0x3a4a1e(_0x174953._0x2392bc,_0x174953._0x25da29,_0x174953._0xadce1a,_0x174953._0x2b0068)](_0x59a2d6,_0x11ec76);function _0x178a90(_0x7a6c49,_0x397d3a,_0x227806,_0x46bc8d){return _0x3c7c8d(_0x46bc8d-_0x40868c._0x47fb6a,_0x397d3a-_0x40868c._0x598483,_0x227806-0x123,_0x227806);}if(this[_0x178a90(_0x174953._0x496081,_0x174953._0x3d5fe3,_0x174953._0x5b4afa,0x464)](_0x59a2d6))return this[_0x178a90(_0x174953._0x5b3b75,0x489,0x55e,_0x174953._0x553b45)](_0x59a2d6,_0x11ec76);try{return await this[_0x178a90(_0x174953._0x46f276,_0x174953._0x36f5d2,0x50e,_0x174953._0x22359d)](_0x59a2d6,_0x11ec76);}catch(_0x25fdf6){if(_0x25fdf6 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x25fdf6[_0x178a90(_0x174953._0x1cc6e9,0x48a,_0x174953._0x4025b3,_0x174953._0xcfc794)]))return this[_0x3a4a1e(_0x174953._0x370b46,0x41f,_0x174953._0x15dedf,0x43c)](_0x59a2d6[_0x3a4a1e(0x4a6,_0x174953._0xe18bf3,_0x174953._0x4afb73,_0x174953._0x4b8cab)]),this[_0x3a4a1e(0x49c,0x4c2,0x51a,0x527)](_0x59a2d6,_0x11ec76);throw this[_0x178a90(_0x174953._0x3d51ed,0x590,_0x174953._0x23bdca,_0x174953._0x82224a)](_0x25fdf6);}throw _0x25fdf6;}}async*[_0x65d232(0x3a,-0x48,0xa,0x82)](_0x9c211a,_0x304b77){const _0x636bc2={_0x1afc6b:0x105,_0x1eb822:0x112,_0x43aecf:0x2b5,_0x4a90d9:0x242,_0x151cf5:0xd1,_0x56abef:0x235,_0x51710b:0x1c4,_0x25fa96:0x1a7,_0x11b399:0x100,_0x1782a8:0x31,_0x4b1bc7:0x82,_0x4c3315:0x3e,_0x522c41:0x3f,_0x168c37:0x278,_0x568f98:0x240,_0x5b6798:0x2a5,_0x46681c:0xf0,_0x507a49:0xea,_0x1b21c6:0x173,_0x329e85:0x101},_0x498432={_0x512a64:0x3b,_0x40b8ff:0xf3},_0x219799={_0x17c54e:0x2f2,_0x31e30c:0x16},_0x1ab333=this['applyModelDefaults'](_0x9c211a);if(this[_0x26b0e6(0x15d,0x1c6,_0x636bc2._0x1afc6b,_0x636bc2._0x1eb822)]!==_0x576061(-0x15f,-0x1f4,-0x1cf,-0x169)){yield*this['streamViaConfiguredSurface'](_0x1ab333,_0x304b77);return;}if(this[_0x576061(-0x2dc,-_0x636bc2._0x43aecf,-_0x636bc2._0x4a90d9,-0x1b9)](_0x1ab333)){yield*this[_0x26b0e6(0x15c,_0x636bc2._0x151cf5,0xbc,0x101)](_0x1ab333,_0x304b77);return;}function _0x576061(_0xe66cf6,_0x38ae8c,_0x4c178f,_0x505312){return _0x65d232(_0x4c178f- -_0x219799._0x17c54e,_0xe66cf6,_0x4c178f-0x1eb,_0x505312-_0x219799._0x31e30c);}function _0x26b0e6(_0x427bfd,_0x104da2,_0x4bd2a7,_0x4af319){return _0x65d232(_0x4af319- -0x19,_0x4bd2a7,_0x4bd2a7-_0x498432._0x512a64,_0x4af319-_0x498432._0x40b8ff);}try{yield*this[_0x576061(-_0x636bc2._0x56abef,-0x1fa,-_0x636bc2._0x51710b,-_0x636bc2._0x25fa96)](_0x1ab333,_0x304b77);}catch(_0x27dcdd){if(_0x27dcdd instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x27dcdd[_0x26b0e6(_0x636bc2._0x11b399,0xc,-_0x636bc2._0x1782a8,_0x636bc2._0x4b1bc7)])){this[_0x26b0e6(_0x636bc2._0x4c3315,_0x636bc2._0x522c41,0x50,0x5d)](_0x1ab333[_0x576061(-_0x636bc2._0x168c37,-0x17e,-_0x636bc2._0x568f98,-_0x636bc2._0x5b6798)]),yield*this[_0x26b0e6(_0x636bc2._0x46681c,_0x636bc2._0x507a49,_0x636bc2._0x1b21c6,_0x636bc2._0x329e85)](_0x1ab333,_0x304b77);return;}throw this['mapApiError'](_0x27dcdd);}throw _0x27dcdd;}}async['getModels'](_0x1c8eac){const _0x2817fe={_0x51d291:0x454,_0x56dabb:0x468,_0x164488:0x197,_0x34878d:0x139,_0x53ad2f:0x13d,_0x22484f:0x466,_0x3ac720:0x2db,_0x526851:0xcf,_0x51cc97:0xa9,_0xab2dae:0x1e2,_0x483d24:0x1f9,_0x47c264:0x127,_0x422a60:0x18b,_0xc204f:0x191},_0x3d749e={_0x40e6cb:0x449,_0x19274f:0x3eb,_0x44ad7d:0x39c,_0xaec48e:0x286,_0x2c2b19:0x209,_0x18be51:0x2b0,_0x30db4b:0x144,_0x301cd3:0x163,_0x15f6cc:0x1fc},_0xc1ecab={_0x2852d0:0xa4},_0xe75df4=await this[_0x479172(_0x2817fe._0x51d291,0x472,_0x2817fe._0x56dabb,0x3cb)]({'path':_0x5844c2(_0x2817fe._0x164488,_0x2817fe._0x34878d,0x1d9,_0x2817fe._0x53ad2f),'method':'GET','signal':_0x1c8eac});if(!_0xe75df4['ok'])throw this[_0x479172(0x485,0x483,_0x2817fe._0x22484f,0x43b)](await this[_0x479172(_0x2817fe._0x3ac720,0x2b8,0x392,0x2f2)](_0xe75df4));function _0x5844c2(_0x10a4bf,_0x3346b1,_0x33c6ab,_0x2fa497){return _0x3c7c8d(_0x10a4bf- -0x168,_0x3346b1-0x112,_0x33c6ab-0x85,_0x33c6ab);}function _0x479172(_0x56e7d4,_0x3144da,_0x85a92d,_0x3f3d22){return _0x3c7c8d(_0x3f3d22-_0xc1ecab._0x2852d0,_0x3144da-0x172,_0x85a92d-0xcc,_0x85a92d);}const _0x544baa=await _0xe75df4[_0x5844c2(0x13b,0x79,_0x2817fe._0x526851,_0x2817fe._0x51cc97)](),_0x496310=(_0x544baa[_0x5844c2(_0x2817fe._0xab2dae,0x1be,_0x2817fe._0x483d24,_0x2817fe._0x47c264)]??[])[_0x5844c2(_0x2817fe._0x422a60,_0x2817fe._0xc204f,0xe1,0x21c)](_0x2c19b4=>{function _0x4fc8da(_0x15f6a2,_0x49b35e,_0x330287,_0x451d7c){return _0x5844c2(_0x15f6a2-0x34c,_0x49b35e-0x25,_0x330287,_0x451d7c-0x104);}function _0x146df2(_0x98e8ba,_0x3858f4,_0xba2a12,_0x2997a0){return _0x479172(_0x98e8ba-0x86,_0x3858f4-0x17b,_0x3858f4,_0xba2a12- -0x1a6);}const _0x3fd1c2=createModelInfo(_0x2c19b4);return _0x3fd1c2[_0x4fc8da(_0x3d749e._0x40e6cb,0x421,_0x3d749e._0x19274f,_0x3d749e._0x44ad7d)]&&this['modelEndpointCache'][_0x146df2(_0x3d749e._0xaec48e,_0x3d749e._0x2c2b19,0x213,_0x3d749e._0x18be51)](_0x3fd1c2['id'],_0x3fd1c2[_0x146df2(0x1fc,_0x3d749e._0x30db4b,_0x3d749e._0x301cd3,_0x3d749e._0x15f6cc)]),_0x3fd1c2;});return deduplicateModels(_0x496310);}};function _0x5737(){const _0xa6397d=['zwzMB3j0','mJaYmY0WnI0Wmq','l3jLC3bVBNnLCW','mJGWotG4AMLxy1bt','yxn5BMnjDgvYyxrVCG','Dg9VBf91C2vFzgvSDge','C29YDa','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','C2vSzwn0u3vYzMfJzq','DgvZDa','qMfZAa','C2LNBMf0DxjLx2rLBhrH','uMf0zsbSAw1PDcbLEgnLzwrLzc4GugXLyxnLihrYEsbHz2fPBIbSyxrLCI4','zMv0y2G','zMLUAxnO','C3rHDhvZ','zxjYB3i','Dgv4Da','ywDLBNq','y29TCgXLDgvwAwfsB3v0zxi','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','C2LNBMfS','CMvZB2X2zujHC2vvCMW','yMvHCMvY','CMvHza','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','Bwf4vg9Rzw5Z','BwvZC2fNzq','CMvZCg9UC2u','CMvZCg9UC2vtDhjLyw0','yMXVy2TZ','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','nJeZoteZnMTNveT5va','C2HPzNq','BwfWqxbPrxjYB3i','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','ywrHChrPDMu','CMvXDwvZDe11Dgf0B3jZ','yxv0BW','y29TCgXLDgLVBL90B2TLBNnFzgv0ywLSCW','CMvZB2X2zxi','Dgv4Dc9LDMvUDc1ZDhjLyw0','B3bLBKfPrgvSzwDHDgu','Ahr0Chm6','Ec1HCgKTA2v5','DgHLBG','C3vYzMfJzq','yxbWBhLnB2rLBerLzMf1BhrZ','ndeXnJG1nuPhChb6sW','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','C3vTBwfYEv90zxH0','CMvHC29UAw5Nx3rLEhq','Dg9tDhjPBMC','B3v0Chv0x3rVA2vUCW','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','Dgv4DfbHCNrZ','zMLUza','Dgv4Dej5sw5KzxG','C3bSAwnL','BNvTyMvY','AgvHzgvYCW','B3bLBMfPx3jLyxnVBMLUz19ZDw1Tyxj5x2rLBhrH','B3v0Chv0','C3rYzwfTshr0Cfn1CMzHy2u','ChjLDMLVDxnszxnWB25ZzuLK','ChjVDg9JB2W','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','y2f0y2G','A2LUza','C2vZC2LVBG','DhjPBvn0yxj0','w0rptKvD','B2f1DgGTDg9Rzw4','zNvUy3rPB25Fy2fSBa','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','Aw5KzxHpzG','zw5KCg9PBNrZ','Aw5WDxq','yw50AhjVCgLJrgvSzwDHDgu','y2HHDgnTCgWT','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','v2vIu29JA2v0ignSB3nLzcbIzwzVCMuGB3bLBMLUzW','Aw50zxjSzwf2zwq','Aw5WDxrFC2nOzw1H','DhjPBq','DMLZAwjPBgL0Eq','Aw5WDxrFDgv4Da','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','z2v0t3bLBKfPrgvSzwDHDgu','yNvPBgrqyxj0AwfSt3v0Chv0','C3LZDgvT','B3bLBG','ywrKrxzLBNrmAxn0zw5LCG','Dg9bCgLfCNjVCG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','AgvHzgvYuMvZB2X2zxi','CMvZCg9UC2vuzxH0ugfYDhm','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KzwX0yq','zgvSDge','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','yxjNDw1LBNrZ','Bwv0ywrHDge','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','zgvSzxrL','Cgf0Aa','mJaYns0Xmc0Wmq','Aw5WDxruB2TLBNm','CgvUzgLUzW','Dg9VBf9JywXSCW','Aw5KzxG','yxv0Ag9YAxPHDgLVBG','Aw5WDxrkC29U','y29UBMvJDf9MywLSzwq','CMvXDwvZDa','C3vWCg9YDgvKrw5KCg9PBNrZ','y3jLyxrLuMvXDwvZDa','CMvHzhLtDgf0zq','D3m6','CMvKywn0zwrFDgHPBMTPBMC','z2v0','y29UDgvUDc10ExbL','zNjVBuvUDhjPzxm','y3jLzgvUDgLHBa','C3vTBwfYEq','DgvSzw1LDhj5','ndLYuMHTqwS','Dg9VBenHBgXZqNLjBMrLEa','B2jQzwn0','DxnLC1jLC3bVBNnLC0fWAq','AxnbCNjHEq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','Aw5JBhvKzunVBNrLBNruExbL','y29TCgXLDgu','igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','igrVzxmGBM90ihn1ChbVCNqGBM9Ulxn0CMvHBwLUzYbYzxnWB25Zzxm','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','zg9Uzq','Aw5WDxrFDg9Rzw5Z','Aw52ywXPzgf0zq','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','ntaWoteWz1fLCwze','ChjLCgfYzunOyxrszxf1zxn0','C3rYAw5N','zxzLBNq6','B3v0Chv0x3rLEhq','Dg9VBa','Dg9VBenHBgXZ','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','zMLSDgvY','DMfSDwu','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','C29Tzq','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','AgfZ','CMvZCg9UC2uUzMfPBgvK','B3v0Chv0vg9Rzw5Z','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','Bwv0Ag9K','C3rHCNrZv2L0Aa','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','DNnJB2rLlZeUmta2lJe','zMv0y2HjBxbS','C2vZC2LVBKLK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','CMvHC29U','DhjHBNnWB3j0','C29JA2v0','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','DxnLCI12AxnPyMXL','zMLUAxnOx3jLyxnVBG','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','ywjVCNq','Bw9Kzq','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','Dw5ZDxbWB3j0zwrFyxbPx2zVCL9TB2rLBa','BwvZC2fNzv9ZDgfYDa','ANnVBG','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','Ahr0Cc1QC29U','BwvZC2fNzuLUzgv4','y2HHDenVBxbSzxrL','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','BxnNlq','DNnJB2rLlZeUmta0lJi','C3vTBwfYEv9PBMrLEa','C3rYAw5NAwz5','B3v0Chv0sw5KzxHuB0nHBgXjza','CMvTB3zLrxzLBNrmAxn0zw5LCG','CgfYC2vszxnWB25Zzq','C3vYzMfJzxm','Ahr0Cc1ZC2u','C3rYzwfT','zgvJB2rL','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','C3rYzwfTu3vYzMfJzq','CMvZCg9UC2uUy29TCgXLDgvK','CM9Szq','zNvUy3rPB24','Dg9Rzw4','yxnZAxn0yw50lq','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','y29UC3vTzuv2zw50','CMvHC29UAw5N','zw5Kx3r1CM4','Dg9VBhm','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','zgLZywjSzwq','y29UDgvUDf9KzwX0yq','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','C3vWCg9YDgvKx2vUzhbVAw50CW','C2vUza','BM93','y29Kzq','zNjVBq','qw50AhjVCgLJigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','y2fSBeLKvg9pDxrWDxrjBMrLEa','BwvZC2fNzuLK','v2vIu29JA2v0','CMvZCg9UC2vjza','ChjVBxb0x3rVA2vUCW','C2LNBMf0DxjL','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','y2HVAwnLCW','AxrLBq','yw50AhjVCgLJx3rOAw5RAw5N','ota0ndK3Chr6B1Ph','yxbP','l2nOyxqVy29TCgXLDgLVBNm','CgfYC2u','C3rVCfjLyxnVBG','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','y29WAwXVDc1JAgf0lZaUmZeUmW','BMfTzq','CMvZCg9UC2vZugf0Aa','C2vZC2LVBK1HBMfNzxi','B3v0Chv0sw5KzxG','Aw5JBhvKzxm','Bw9KzwXfBMrWB2LUDenHy2HL','B3bLBMfPx3jLyxnVBMLUz19KzwX0yq','B3bLBMfPlxjLC3bVBNnLCW','D2vIu29JA2v0rMfJDg9YEq','yxnZAxn0yw50','y2XVC2u','Bw9JAW','y2fJAgvK','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZCg9UC2vtB2nRzxq','z2L0AhvIqxbPvxjS','zgf0ytO','Dg9VBenHBgXpCMrLCG','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y29UDgvUDf9IBg9JA19ZDgfYDa','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','zwrPDg9YugX1z2LUvMvYC2LVBG','BwfW','t3bLBKfjiefqssbLCNjVCIa','CMvHC29UAw5Nx3rVA2vUCW','yNvKz2v0vg9Rzw5Z','ywjVCNrLza','D3nZoG','rgLYzwn0igfUC3DLCJOG','qMvHCMvYia','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','y3jLyxrLu3rYzwfTugfYC2vY','CMvWBgfJzq','l21VzgvSCW','CMvZB2X2zunYzwrLBNrPywW','y29UC3vTzvDLyLnVy2TLDev2zw50','B3v0Chv0x2LUzgv4','zw5HyMXLza','mJK5nJi0r2D4D2PX','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','Dg9VBc1JywXSlq','ywnJzxb0','y29UBMvJDgLUzW','yxbPs2v5','C2L6zq','AxrLBv9Pza','ChjVDMLKzxjtDgf0zq','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','ChjVEhK','y29TCgXLDgLVBL90B2TLBNm','CMvZB2X2zq','y29UDgvUDf9PBMrLEa','yM9KEq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2v0','z3b0ltrV','CMvZCg9UC2vtB2nRzxrtDhjLyw0','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','C2XPy2u','D2vIC29JA2v0','yw50AhjVCgLJx3rOAw5RAw5Nx2rLBhrH','y29TCgXLDgvwAwftDxjMywnL','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','yw50AhjVCgLJlxzLCNnPB24','y2HHDenVBxbSzxrPB25Zugf0Aa','y2fWywjPBgL0AwvZ','y29UDgvUDf9IBg9JA19KzwX0yq','CMvHC29UAw5NsxrLBxm','t3bLBKfPtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','zw50CMLLCW','CMvXDwvZDhm','DxnHz2u','C2vUzfjHD1jLCxvLC3q','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','BgfZDfjLC3bVBNnLswq','Bw9KzwW','y29UC3vTzvnZzuv2zw50','ChvZAa','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','DMfSDwvZ','AxneB25L','l3yXl21LC3nHz2vZ','Dgv4Df9KzwX0yq','yMfZzvvYBa','C3bSAxq','sw52ywXPzcbYzxf1zxn0oIa','BwvZC2fNzxm','y29UDgvUDa','y29TCgXLDgvtDxjMywnL','t1bftG','B3bLBMfPlxjLC3bVBNnLCY13CW','ChjVDMLKzxjbzgfWDgvY','ChjVDg9JB2XwzxjZAw9U','z2v0qw50AhjVCgLJrgvSzwDHDgu','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','zw5JCNLWDgvKx2nVBNrLBNq','y3jLyxrLsgvHzgvYCW','CMvZCg9UC2uUB3v0Chv0x2L0zw0UywrKzwq','yxbWBgLJyxrPB24VANnVBG','ntG0mZqZmhfysgrftG','u3vYzMfJzsa','CMvZCc0','CgfYDgLHBf9QC29U','zwrPDg9YvMvYC2LVBG','m2H4A0DpuW','zgvZy3jPChrPB24','Aw5PDgLHBev2zw50','zgf0yq','BgLTAxrZ','DgHPBMTPBMC','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','y2fSBf9Pza','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzg9Uzq','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','zxzLBNq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','C3rHDhvZvgv4Da','uMvZCg9UC2vZihn0CMvHBsbMywLSzwq','yw50AhjVCgLJlw1LC3nHz2vZlxn0CMvHBq','C3rVCf9YzwfZB24','C3rYzwfTvMLHu3vYzMfJzq','y2HHDfn0CMvHBq','y29TCgXLDgvK','yxv0AfnJAgvTzq','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','B3bLBMfPx3jLyxnVBMLUzW','BgvUz3rO','z2v0u3vYzMfJzq','DhLWzq','ywnJzxnZvg9Rzw4','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','zMLUywXszxnWB25Zzq','zw5JCNLWDgvKq29UDgvUDa','AM9PBG','C3rYzwfTvMLHuM91DgvY','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','CM91DgvY','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','ue9tva','Dg9VBfvZzvn0yxj0rw1PDhrLza','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','CMvZzxq','zgLZCgXHEq','C2vZC2LVBI10B2TLBG','CMvMDxnHBa','C3vTBwfYEuj5sw5KzxG','Dg9VBf91C2u'];_0x5737=function(){return _0xa6397d;};return _0x5737();}function createHeaders(_0x1e6d7e){const _0x4e1978={_0x2233c9:0x21e};function _0x111c87(_0x496366,_0x1449d2,_0x5126b4,_0x3eda49){return _0x3c7c8d(_0x1449d2- -0x62,_0x1449d2-0x49,_0x5126b4-0xbe,_0x496366);}const _0x1aade1=new Headers();for(const [_0x48c911,_0x2d7af2]of Object[_0x111c87(0x32c,0x2c2,_0x4e1978._0x2233c9,0x277)](_0x1e6d7e)){_0x1aade1['set'](_0x48c911,_0x2d7af2);}return _0x1aade1;}async function fetchRawResponse(_0x2a4a0c){const _0x31ca0f={_0x2cfd19:0x4cc,_0x2bbb04:0x377,_0x52b705:0x346,_0x21fb95:0x35e,_0x4e7728:0x339,_0x2fa985:0x4f9,_0x431346:0x2a1,_0x2a4e35:0x212,_0xf576bf:0x3d7,_0x29a231:0x435},_0x3dea12={_0x3d1360:0x26d},_0x76a0b6={_0x7e31fc:0x334,_0x44886d:0x106};function _0x19bf15(_0x2121de,_0x5547a4,_0x2a4d18,_0x2f274b){return _0x65d232(_0x2a4d18-_0x76a0b6._0x7e31fc,_0x2f274b,_0x2a4d18-_0x76a0b6._0x44886d,_0x2f274b-0x170);}const _0x31cbaf=_0x2a4a0c[_0x19bf15(_0x31ca0f._0x2cfd19,0x3a4,0x43e,0x4b3)]??globalThis[_0x28db8c(_0x31ca0f._0x2bbb04,0x36c,_0x31ca0f._0x52b705,0x398)];function _0x28db8c(_0x5914ac,_0x4a7024,_0x4506f6,_0x1c8bf4){return _0x65d232(_0x5914ac-_0x3dea12._0x3d1360,_0x4506f6,_0x4506f6-0xad,_0x1c8bf4-0x1c);}return _0x31cbaf(_0x2a4a0c['url'],{'method':_0x28db8c(_0x31ca0f._0x21fb95,_0x31ca0f._0x4e7728,0x34b,0x3aa),'headers':createHeaders(_0x2a4a0c[_0x19bf15(_0x31ca0f._0x2fa985,0x4e4,0x46d,0x438)]),'body':JSON[_0x28db8c(_0x31ca0f._0x431346,0x219,0x219,_0x31ca0f._0x2a4e35)](_0x2a4a0c[_0x19bf15(0x476,0x3d4,0x3cf,_0x31ca0f._0xf576bf)]),'signal':_0x2a4a0c[_0x19bf15(_0x31ca0f._0x29a231,0x43c,0x446,0x4cd)]});}async function fetchJsonResponse(_0x5ac658){const _0x4ca1d0={_0x374a02:0x4d,_0x8f03c5:0xae,_0x277572:0x182,_0x4421f7:0x287,_0x299944:0x232,_0x5eccf8:0xba,_0x392c4f:0x75,_0x6a07dd:0xab,_0x47cadc:0x39,_0x2b5b06:0x178,_0x59c1ef:0x1eb,_0x55803d:0x2e1,_0x17d9ae:0x27c},_0x15a1f4={_0x748e45:0x340,_0x36bb51:0x11e},_0x58ae62={_0xdc7c6c:0x4fc,_0x54ceb6:0x82,_0x36df58:0x1ae},_0x25af48=await fetchRawResponse(_0x5ac658);function _0x57d486(_0x3f6b66,_0x3f67da,_0x32cb4f,_0x54794d){return _0x3c7c8d(_0x54794d- -_0x58ae62._0xdc7c6c,_0x3f67da-_0x58ae62._0x54ceb6,_0x32cb4f-_0x58ae62._0x36df58,_0x3f6b66);}function _0x16fa0b(_0x1c11c2,_0x265f89,_0x311b7a,_0x18e5f5){return _0x3c7c8d(_0x18e5f5- -_0x15a1f4._0x748e45,_0x265f89-0x1da,_0x311b7a-_0x15a1f4._0x36bb51,_0x1c11c2);}if(!_0x25af48['ok']){const _0x25f7b9=await _0x25af48[_0x16fa0b(0xae,0xca,-_0x4ca1d0._0x374a02,0x46)](),_0x2f4148=_0x25f7b9['trim']()||_0x25af48[_0x16fa0b(0x2a,0xc5,-_0x4ca1d0._0x8f03c5,0x13)]||_0x57d486(-_0x4ca1d0._0x277572,-0x1cd,-_0x4ca1d0._0x4421f7,-_0x4ca1d0._0x299944);throw new Error(_0x16fa0b(_0x4ca1d0._0x5eccf8,_0x4ca1d0._0x392c4f,_0x4ca1d0._0x6a07dd,_0x4ca1d0._0x47cadc)+_0x25af48[_0x57d486(-0x1a0,-0x11b,-0x176,-_0x4ca1d0._0x2b5b06)]+':\x20'+_0x2f4148);}return await _0x25af48[_0x57d486(-_0x4ca1d0._0x59c1ef,-_0x4ca1d0._0x55803d,-_0x4ca1d0._0x17d9ae,-0x259)]();}function findLastMessage(_0x46a9c7,_0x50da0d){const _0xd7c4c1={_0x24c746:0x16e,_0x40e404:0x106,_0x142e56:0x27d,_0x21167b:0x2a8,_0x41907c:0x205},_0x2b2f18={_0xe9da65:0x284},_0x32856d={_0x2ce969:0xc3};function _0x3835d5(_0x5dcc39,_0x592ca2,_0x14fd87,_0x4ec4b8){return _0x3c7c8d(_0x5dcc39- -0x3a,_0x592ca2-_0x32856d._0x2ce969,_0x14fd87-0x1ef,_0x592ca2);}function _0x12723b(_0x4fc379,_0x2695eb,_0x781f9c,_0x59fc6d){return _0x65d232(_0x781f9c- -_0x2b2f18._0xe9da65,_0x2695eb,_0x781f9c-0x102,_0x59fc6d-0x1ad);}for(let _0x25e17c=_0x46a9c7[_0x12723b(-0x114,-_0xd7c4c1._0x24c746,-0x19f,-_0xd7c4c1._0x40e404)]-0x1;_0x25e17c>=0x0;_0x25e17c-=0x1){if(_0x46a9c7[_0x25e17c][_0x3835d5(_0xd7c4c1._0x142e56,0x29e,_0xd7c4c1._0x21167b,_0xd7c4c1._0x41907c)]===_0x50da0d)return _0x46a9c7[_0x25e17c];}return void 0x0;}function hasTool(_0x1e7a2f,_0x5425f6){const _0x2d4747={_0x329c60:0x258,_0x57caad:0x2bd,_0x5941f6:0x69},_0x307dae={_0x28c888:0x95,_0x557827:0x56,_0x586c0c:0x182};function _0x5f5750(_0x3e5c4f,_0x39399f,_0x227a06,_0x1bf98e){return _0x65d232(_0x39399f- -_0x307dae._0x28c888,_0x227a06,_0x227a06-_0x307dae._0x557827,_0x1bf98e-_0x307dae._0x586c0c);}function _0x32cd36(_0x1d2691,_0x568c41,_0x16fdb0,_0x9c2ac9){return _0x3c7c8d(_0x16fdb0- -0x4bb,_0x568c41-0x1f4,_0x16fdb0-0x105,_0x1d2691);}return _0x1e7a2f[_0x32cd36(-_0x2d4747._0x329c60,-_0x2d4747._0x57caad,-0x1fc,-0x274)][_0x5f5750(0x19,-0x83,0xe,-_0x2d4747._0x5941f6)](_0x8f70fb=>_0x8f70fb[_0x5f5750(0xc,-0x31,-0x77,-0xae)]===_0x5425f6);}function createMockResponse(_0x7ffaad,_0x480baa,_0x5e14c0,_0x16eb91){return{'id':_0x7ffaad,'content':_0x480baa,'stopReason':_0x5e14c0,'usage':_0x16eb91};}var MockModel=class{['model'];['maxTokens'];[_0x65d232(0xad,0xaf,0x6a,0x3c)]=[];[_0x65d232(0x45,0xf2,-0x14,0x80)];constructor(_0x2e7919={}){const _0x15d7a5={_0x5de02e:0x1e3,_0x4a7cf1:0x98,_0x114f8a:0x154,_0x1f7878:0xfa,_0x315fb3:0x4a,_0x4a2594:0xa8,_0x16c639:0x109,_0x5911d6:0x202,_0x337960:0x187,_0x36b85f:0x146,_0x442bbe:0xd0,_0x4c5c51:0x15d},_0x314812={_0x5f0d28:0x160},_0x2e131a={_0x4a95f6:0x498};function _0x241f93(_0x38fe3c,_0x12f662,_0x31f4e7,_0x27a93c){return _0x3c7c8d(_0x27a93c- -_0x2e131a._0x4a95f6,_0x12f662-0x34,_0x31f4e7-0xd8,_0x31f4e7);}this[_0x2c4769(0x16d,0x13d,_0x15d7a5._0x5de02e,_0x15d7a5._0x4a7cf1)]=_0x2e7919['model']??_0x2c4769(_0x15d7a5._0x114f8a,_0x15d7a5._0x1f7878,0x56,_0x15d7a5._0x315fb3),this[_0x241f93(-0x84,-0xd2,-_0x15d7a5._0x4a2594,-_0x15d7a5._0x16c639)]=_0x2e7919['maxTokens']??0x4000;function _0x2c4769(_0xf6c9ab,_0xd2590d,_0x218b4f,_0x2f9567){return _0x3c7c8d(_0xd2590d- -0x1ed,_0xd2590d-_0x314812._0x5f0d28,_0x218b4f-0x12c,_0x2f9567);}this[_0x241f93(-0x174,-_0x15d7a5._0x5911d6,-0x21d,-0x1db)]=_0x2e7919[_0x2c4769(_0x15d7a5._0x337960,0xd0,_0x15d7a5._0x36b85f,0x1d)]?structuredClone(_0x2e7919[_0x2c4769(0xfe,_0x15d7a5._0x442bbe,0x145,_0x15d7a5._0x4c5c51)]):void 0x0;}async[_0x3c7c8d(0x277,0x22b,0x27d,0x2be)](_0x1a11fb,_0x86dbe8){const _0x557329={_0x488a53:0x29c,_0x19f232:0x32a,_0x1684c7:0xa5,_0x186a51:0x4f,_0x582515:0x110,_0x590b41:0xce,_0x5aba9d:0x195,_0x3d4c7f:0x178,_0x5e1494:0x30b,_0x2dec99:0x32d,_0x49458f:0x1f9,_0x56e3a9:0x188,_0x6053e6:0xe4,_0x264a11:0x13d,_0x167782:0x10d,_0x120d13:0x10c,_0x368929:0x1f7,_0x42149d:0x246,_0x1512f3:0x1c7,_0x516e93:0x2e7,_0x1016f4:0x319,_0x3d6358:0x35d,_0x7cb891:0x1b7,_0x15748d:0x15a,_0x2c8df6:0x1c5,_0x47c62b:0x1d2,_0x10e536:0x322,_0x5761ec:0xff,_0x532ba9:0x35e,_0x1712a4:0x3d7,_0x114bc5:0x3e7,_0x26f818:0xa9,_0x28386b:0x14c},_0x2be839={_0x32c1ee:0x21,_0x468ed0:0x16a,_0xecf2e2:0xcb},_0x3d5431={_0x4c74bd:0x1ad,_0x2207f7:0xa6},_0x29fe1a={...structuredClone(_0x1a11fb),..._0x1a11fb[_0x52d9db(0x29c,0x320,0x357,0x31e)]===void 0x0&&this[_0x52d9db(_0x557329._0x488a53,0x342,_0x557329._0x19f232,0x317)]!==void 0x0?{'reasoning':structuredClone(this[_0x288b83(_0x557329._0x1684c7,_0x557329._0x186a51,0xdb,_0x557329._0x582515)])}:{}};function _0x288b83(_0xe53488,_0x4fbdba,_0x1ea7e7,_0x10e6be){return _0x3c7c8d(_0x10e6be- -_0x3d5431._0x4c74bd,_0x4fbdba-0x1ba,_0x1ea7e7-_0x3d5431._0x2207f7,_0x1ea7e7);}this[_0x288b83(0x196,_0x557329._0x590b41,_0x557329._0x5aba9d,_0x557329._0x3d4c7f)][_0x52d9db(_0x557329._0x5e1494,0x25a,_0x557329._0x2dec99,0x24d)](_0x29fe1a);const _0x558d6a=findLastMessage(_0x29fe1a[_0x288b83(0x138,0x11f,_0x557329._0x49458f,_0x557329._0x56e3a9)],'user'),_0x29319b=getToolResultBlocks(_0x558d6a),_0x5115c7=_0x288b83(0x121,_0x557329._0x6053e6,_0x557329._0x264a11,_0x557329._0x167782)+this[_0x288b83(0x15f,_0x557329._0x120d13,_0x557329._0x368929,0x178)][_0x288b83(_0x557329._0x42149d,0x250,0x1ab,0x1b0)];if(_0x29319b['length']>0x0)return createMockResponse(_0x5115c7,[{'type':_0x288b83(0x242,0x21b,0x1c4,0x1d9),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x29319b[0x0][_0x288b83(0x158,0x1d3,_0x557329._0x1512f3,0x189)]}],_0x52d9db(0x29d,_0x557329._0x516e93,_0x557329._0x1016f4,0x22a),{'inputTokens':0x78,'outputTokens':0x28});const _0x223593=getTextFromMessage(_0x558d6a);if(/list .*files|workspace/i[_0x52d9db(_0x557329._0x3d6358,0x365,0x332,0x316)](_0x223593)&&hasTool(_0x29fe1a,_0x288b83(_0x557329._0x7cb891,_0x557329._0x15748d,_0x557329._0x2c8df6,_0x557329._0x47c62b)))return createMockResponse(_0x5115c7,[{'type':'tool_use','id':_0x52d9db(0x2e5,0x2d9,0x2f3,0x322)+this[_0x52d9db(0x304,0x25a,0x287,_0x557329._0x10e536)][_0x288b83(0x100,0x143,_0x557329._0x5761ec,0x1b0)],'name':_0x52d9db(_0x557329._0x532ba9,_0x557329._0x1712a4,0x3a7,_0x557329._0x114bc5),'input':{'command':'ls\x20-la'}}],'tool_use',{'inputTokens':0x6e,'outputTokens':0x1c});function _0x52d9db(_0x168f08,_0x4db2da,_0x526b10,_0x29f195){return _0x3c7c8d(_0x168f08- -_0x2be839._0x32c1ee,_0x4db2da-_0x2be839._0x468ed0,_0x526b10-_0x2be839._0xecf2e2,_0x526b10);}return createMockResponse(_0x5115c7,[{'type':'text','text':_0x288b83(0x135,0x155,_0x557329._0x26f818,_0x557329._0x28386b)+_0x223593}],'end_turn',{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};
1
+ (function(_0x577caa,_0xbd6c48){const _0xbe9bca={_0x2a9c64:0x1de,_0x8f2e8d:0x19b,_0x334e5c:0x169,_0x3b16bf:0xcc,_0x4266a7:0xa6,_0xf34f54:0x342,_0x321a6a:0x36c,_0x205a27:0x277,_0x39819d:0x253,_0x360a6f:0x4d,_0x4bc086:0x10e,_0x197a0b:0x16f,_0x27c6f0:0x38a,_0x3e6665:0x3b3},_0x1b603b={_0xc73f8d:0x11},_0x23f295={_0x10a783:0x1b8},_0x5006e2=_0x577caa();function _0x524ec2(_0x13db8b,_0xa55f55,_0x3b4347,_0x414e97){return _0x3920(_0x414e97-_0x23f295._0x10a783,_0xa55f55);}function _0x3853a8(_0x1ffba1,_0x3e62c8,_0x5e4054,_0x8de3f6){return _0x3920(_0x5e4054- -_0x1b603b._0xc73f8d,_0x8de3f6);}while(!![]){try{const _0x35e580=parseInt(_0x3853a8(0x1bb,_0xbe9bca._0x2a9c64,_0xbe9bca._0x8f2e8d,_0xbe9bca._0x334e5c))/0x1*(-parseInt(_0x3853a8(0xfb,_0xbe9bca._0x3b16bf,0x146,0x1c4))/0x2)+parseInt(_0x3853a8(-0x2,0x10,_0xbe9bca._0x4266a7,0x168))/0x3+parseInt(_0x524ec2(0x28c,0x3cd,_0xbe9bca._0xf34f54,0x327))/0x4+-parseInt(_0x524ec2(0x3c6,_0xbe9bca._0x321a6a,0x3bb,0x32e))/0x5+-parseInt(_0x524ec2(0x1c7,_0xbe9bca._0x205a27,_0xbe9bca._0x39819d,0x253))/0x6+-parseInt(_0x3853a8(0x1a8,_0xbe9bca._0x360a6f,_0xbe9bca._0x4bc086,_0xbe9bca._0x197a0b))/0x7+parseInt(_0x524ec2(0x443,0x384,_0xbe9bca._0x27c6f0,_0xbe9bca._0x3e6665))/0x8;if(_0x35e580===_0xbd6c48)break;else _0x5006e2['push'](_0x5006e2['shift']());}catch(_0x2dbafa){_0x5006e2['push'](_0x5006e2['shift']());}}}(_0xb3ca,0x5a118));import{toOpenAiResponsesRequest}from'../chunk-U2BLX7Y5.js';import{resolveAnthropicThinkingConfig,resolveOpenAiReasoningConfig}from'../chunk-NYZR4XKO.js';import{getTextFromMessage,getToolResultBlocks,normalizeContent,toChatRequest,toModelRequest,toProviderModelRequest}from'../chunk-C6OLKGP6.js';import{addAbortListener,throwIfAborted,toAbortError}from'../chunk-X7VAACWY.js';var ANTHROPIC_MESSAGES_SURFACE='anthropic-messages',ANTHROPIC_MESSAGES_STREAM_SURFACE='anthropic-messages-stream';function parseToolInput(_0x4a0030){const _0x405dc3={_0x2e5e88:0x44e,_0xe9196f:0x443};function _0x3df144(_0x51e660,_0x59ad13,_0x2576ed,_0x47168c){return _0x3920(_0x59ad13-0x2eb,_0x2576ed);}try{return JSON[_0x3df144(0x3f2,_0x405dc3._0x2e5e88,_0x405dc3._0xe9196f,0x3a1)](_0x4a0030);}catch{return _0x4a0030;}}function resolveReasoningVisibility(_0x187dc8){const _0x122583={_0x56b8e0:0x8d,_0x23af57:0x136,_0x55372d:0xab,_0x46b398:0x90,_0x3cb5d7:0x44},_0x3d6545={_0x39cfce:0xb7};function _0x1c0850(_0x75d43f,_0x45d21c,_0x380614,_0x2a3aef){return _0x3920(_0x2a3aef- -0x1a3,_0x380614);}function _0x517e95(_0xd9fa58,_0x4fb76d,_0x48a4fb,_0x8e34f2){return _0x3920(_0x8e34f2- -_0x3d6545._0x39cfce,_0x48a4fb);}return _0x187dc8[_0x1c0850(_0x122583._0x56b8e0,0x28,0xbe,0x4d)]?.[_0x1c0850(0xe,-_0x122583._0x23af57,-0x3e,-_0x122583._0x55372d)]??_0x1c0850(0x5e,-0xb,_0x122583._0x46b398,_0x122583._0x3cb5d7);}function isUserVisibleThinking(_0x28f6fa){const _0x125f14={_0xc1cc21:0x40,_0x53f03c:0x171,_0x2f949b:0x21c,_0x45f31e:0x28d},_0x54fe43={_0x38af7c:0x164};function _0x2dfdf4(_0x5cc831,_0x557f16,_0xb8c2a6,_0x233534){return _0x3920(_0x5cc831-_0x54fe43._0x38af7c,_0xb8c2a6);}const _0xc631e2=resolveAnthropicThinkingConfig(_0x28f6fa[_0x4e3228(-_0x125f14._0xc1cc21,-0xc2,-0x9,-_0x125f14._0x53f03c)]);function _0x4e3228(_0x1fdf2e,_0x1b6062,_0x25684d,_0x1f391c){return _0x3920(_0x1b6062- -0x2b2,_0x25684d);}return _0xc631e2!==void 0x0&&_0xc631e2[_0x2dfdf4(0x266,0x21d,_0x125f14._0x2f949b,_0x125f14._0x45f31e)]!=='disabled'&&resolveReasoningVisibility(_0x28f6fa)==='user-visible';}function createAnthropicThinkingBody(_0x61bc8d){const _0x3e215f={_0x54526c:0x3ad,_0x167d35:0x25e,_0x3ee4d0:0x2bf,_0x5809fe:0x4b,_0x193cb6:0x1c,_0x3023c6:0x24e,_0x251dac:0x44,_0x153c74:0x3d,_0x2e6ac2:0x248,_0xc5a6aa:0x13f,_0x31f9ae:0xc0,_0x1896c6:0x1d,_0x5471d3:0x8d,_0x477418:0x41,_0x1d04c4:0x281,_0x1e442a:0x21b,_0x1ebe7a:0x352,_0x183fec:0x70,_0x1befd3:0x104,_0x392612:0x14e,_0x45fbff:0x28b,_0x573f48:0x2ec},_0x2d9cfa={_0x1b06d0:0xc1},_0x27595e=resolveAnthropicThinkingConfig(_0x61bc8d[_0x3d3021(0x464,0x302,_0x3e215f._0x54526c,0x2fd)]);function _0x3d3021(_0x37c44f,_0x53db77,_0x21d153,_0x4c5f59){return _0x3920(_0x21d153-0x1bd,_0x4c5f59);}if(!_0x27595e||_0x27595e[_0x3d3021(0x24c,_0x3e215f._0x167d35,_0x3e215f._0x3ee4d0,0x317)]===_0x2e811c(0xca,0x7c,_0x3e215f._0x5809fe,-_0x3e215f._0x193cb6))return{};const _0x1a51ed=_0x27595e[_0x3d3021(0x2f4,0x202,_0x3e215f._0x3023c6,0x1eb)]??(isUserVisibleThinking(_0x61bc8d)?_0x2e811c(-_0x3e215f._0x251dac,_0x3e215f._0x153c74,-0x9,-0x93):'omitted'),_0x18f512=_0x27595e[_0x3d3021(0x232,0x2f8,_0x3e215f._0x2e6ac2,0x1e2)]?{'anthropic-beta':_0x2e811c(_0x3e215f._0xc5a6aa,0xbe,_0x3e215f._0x31f9ae,0x8b)}:void 0x0;if(_0x27595e[_0x2e811c(_0x3e215f._0x1896c6,_0x3e215f._0x5471d3,_0x3e215f._0x477418,0x38)]===_0x3d3021(0x223,0x313,_0x3e215f._0x1d04c4,0x245))return{..._0x18f512?{'headers':_0x18f512}:{},'thinking':{'type':_0x3d3021(0x229,0x2c4,_0x3e215f._0x1d04c4,_0x3e215f._0x1e442a),'budget_tokens':_0x27595e[_0x3d3021(0x26d,0x28c,0x2a4,_0x3e215f._0x1ebe7a)],'display':_0x1a51ed}};function _0x2e811c(_0x1de073,_0x4426a9,_0x168c88,_0x1dec97){return _0x3920(_0x168c88- -_0x2d9cfa._0x1b06d0,_0x4426a9);}return{..._0x18f512?{'headers':_0x18f512}:{},'thinking':{'type':_0x2e811c(_0x3e215f._0x183fec,0x64,_0x3e215f._0x1befd3,_0x3e215f._0x392612),..._0x27595e[_0x3d3021(0x2c0,0x36d,0x2ec,_0x3e215f._0x45fbff)]?{'effort':_0x27595e[_0x3d3021(0x378,0x275,_0x3e215f._0x573f48,0x24c)]}:{},'display':_0x1a51ed}};}function toAnthropicRequestContent(_0x24889a){const _0x963811={_0x4316df:0x48c,_0x11ab76:0x53f,_0x3ca957:0x489,_0x5f27d9:0x464,_0x31df0a:0x4fb,_0xbefa51:0x530,_0x25d5aa:0x548,_0x1ea7b5:0x2b0,_0x3dedbb:0x1b6,_0x1986aa:0x1b1,_0x347e61:0x4e8,_0x259fdc:0x4a5,_0x3f63f4:0x525,_0xe6eace:0x5dd,_0x5d64ba:0x447,_0x276d20:0x471,_0x188554:0x476,_0x154ca1:0x1ee,_0x568ea0:0x225,_0xe6624c:0x1f9,_0x19faae:0x1c7,_0x405c1b:0x56e,_0x305677:0x52d,_0x16810a:0x64f,_0x344419:0x5d1,_0x269f68:0x115,_0x50c305:0x1c8};function _0x471c35(_0x202a2a,_0x1cbd19,_0x3a12fc,_0x1064b){return _0x3920(_0x1cbd19-0x132,_0x202a2a);}if(_0x24889a[_0x471c35(0x33c,0x285,0x311,0x269)]==='assistant'&&_0x24889a[_0x44ea8a(_0x963811._0x4316df,_0x963811._0x11ab76,0x3ed,_0x963811._0x3ca957)]?.[_0x44ea8a(_0x963811._0x5f27d9,0x585,0x4cd,_0x963811._0x31df0a)])return structuredClone(_0x24889a[_0x44ea8a(_0x963811._0xbefa51,0x45f,_0x963811._0x25d5aa,0x489)][_0x471c35(_0x963811._0x1ea7b5,0x24d,0x1a3,_0x963811._0x3dedbb)]);const _0x5ca368=[];for(const _0x5432a1 of normalizeContent(_0x24889a[_0x471c35(_0x963811._0x1986aa,0x1e3,0x1ad,0x1fb)])){if(_0x5432a1['type']===_0x44ea8a(0x50e,_0x963811._0x347e61,0x584,0x502))continue;if(_0x5432a1[_0x44ea8a(_0x963811._0x259fdc,0x4d4,0x4d6,0x4e2)]===_0x44ea8a(0x541,0x660,_0x963811._0x3f63f4,_0x963811._0xe6eace)){_0x5ca368[_0x44ea8a(0x4a3,_0x963811._0x5d64ba,_0x963811._0x276d20,_0x963811._0x188554)]({'type':_0x471c35(_0x963811._0x154ca1,_0x963811._0x568ea0,0x201,_0x963811._0xe6624c),'thinking':_0x5432a1[_0x471c35(0x1c9,0x225,0x299,_0x963811._0x19faae)],'signature':_0x5432a1[_0x44ea8a(_0x963811._0x405c1b,0x4da,0x50c,_0x963811._0x305677)]});continue;}if(_0x5432a1['type']===_0x44ea8a(0x5ca,0x556,_0x963811._0x16810a,_0x963811._0x344419)){_0x5ca368[_0x471c35(_0x963811._0x269f68,_0x963811._0x50c305,0x285,0x1d1)]({'type':'redacted_thinking','data':_0x5432a1['data']});continue;}_0x5ca368['push'](structuredClone(_0x5432a1));}function _0x44ea8a(_0x236079,_0x1f176c,_0x2dd654,_0x3b56e2){return _0x3920(_0x3b56e2-0x3e0,_0x1f176c);}return _0x5ca368;}function createAnthropicRequest(_0x38e6ee,_0x442cd2){const _0x63fb1={_0x24ce27:0x44e,_0x20bb89:0x3cc,_0x5b7310:0x130,_0x322192:0x310,_0x18a517:0x3d5,_0x272550:0x35d,_0xb1ad39:0x324,_0xb83b6:0x3de},_0x2dd259={_0x4073f3:0x28c,_0x4d3359:0x25f,_0x2c8334:0x316},_0x1107c6={_0x4bfc93:0x16c,_0x2d587c:0x53},_0x3122e1=toProviderModelRequest(_0x38e6ee),_0x483483=createAnthropicThinkingBody(_0x38e6ee);function _0xc778ad(_0x1fe495,_0x5b29e6,_0x589761,_0x1fca1d){return _0x3920(_0x5b29e6-0x231,_0x1fca1d);}function _0x5b44c3(_0x350943,_0x161bb9,_0x245a1e,_0x4fd1c8){return _0x3920(_0x245a1e- -0x246,_0x350943);}return{'accept':_0x442cd2?'text/event-stream':_0xc778ad(0x42a,0x392,_0x63fb1._0x24ce27,_0x63fb1._0x20bb89),'body':{..._0x3122e1,'messages':_0x38e6ee[_0x5b44c3(-0xf4,-0x138,-_0x63fb1._0x5b7310,-0xd8)][_0xc778ad(_0x63fb1._0x322192,0x36c,_0x63fb1._0x18a517,_0x63fb1._0x272550)](_0x29969e=>{function _0x49f6c7(_0x515932,_0x3964c6,_0x3da86e,_0x5ac198){return _0x5b44c3(_0x5ac198,_0x3964c6-0x155,_0x3964c6- -_0x1107c6._0x4bfc93,_0x5ac198-_0x1107c6._0x2d587c);}return{'role':_0x29969e[_0x49f6c7(-_0x2dd259._0x4073f3,-_0x2dd259._0x4d3359,-_0x2dd259._0x2c8334,-0x2b2)],'content':toAnthropicRequestContent(_0x29969e)};}),..._0x483483['thinking']?{'thinking':_0x483483[_0xc778ad(0x315,_0x63fb1._0xb1ad39,0x2ef,_0x63fb1._0xb83b6)]}:{},..._0x442cd2?{'stream':!![]}:{}},..._0x483483['headers']?{'headers':_0x483483['headers']}:{},'path':'/v1/messages'};}function parseAnthropicResponse(_0x4c7d9a,_0x2fe7d4){const _0xbef6e1={_0x12fa64:0xa2,_0x3e7b63:0x13e,_0x2584db:0x7,_0x297ef3:0x308,_0x11f019:0x30e,_0x3a8d07:0x380,_0x26fa62:0x3da,_0x3d0b57:0x53,_0x2bd7f5:0x58,_0x4d87c8:0x4d,_0x58a0b4:0x1e,_0x465e29:0x481,_0x245438:0x52b,_0x5dd326:0x92,_0x1cec90:0x120,_0x2ccc0d:0x5a,_0x4e5ccc:0x13c,_0x250ad7:0xaa,_0x2d851e:0x43d,_0x5c8501:0x345,_0x5cb559:0x3f9,_0x59dc5a:0x7c,_0x143a25:0x144,_0x534072:0x10e,_0x4df477:0x4e,_0x5ade95:0x142,_0x1bf2e4:0x492,_0x17e7b4:0x71,_0x4a5493:0x8a,_0x2e0b1a:0x54,_0x10c27c:0x344,_0x1cae8b:0x3b2,_0x215977:0x326,_0x8cfcf5:0x2bd,_0x116824:0x36b,_0x23faa3:0x10b,_0x17583c:0xa4,_0x385e47:0x78,_0x15b215:0x1b8,_0x3a41cb:0x3a0,_0x246315:0x406,_0x1f0fe2:0x44b,_0x3094ea:0x1c,_0x139acb:0x6,_0xb2d531:0x3d7,_0x159eab:0x43b},_0x21c413={_0x5a5934:0x1a4},_0x7d06ba=[],_0x498556=_0x4c7d9a['content']??[];let _0x4cadac=![];function _0x50fc98(_0x29ca00,_0x17727c,_0x3ecdd9,_0x1ec10a){return _0x3920(_0x3ecdd9-0x28d,_0x29ca00);}for(const _0xd2d348 of _0x498556){if(_0xd2d348[_0x4f5ef0(-_0xbef6e1._0x12fa64,-0x10c,-_0xbef6e1._0x3e7b63,_0xbef6e1._0x2584db)]==='thinking'){_0x4cadac=!![];isUserVisibleThinking(_0x2fe7d4)&&_0x7d06ba['push']({'type':'anthropic_thinking','thinking':_0xd2d348[_0x50fc98(_0xbef6e1._0x297ef3,_0xbef6e1._0x11f019,_0xbef6e1._0x3a8d07,0x313)],'signature':_0xd2d348[_0x50fc98(0x3fe,0x3c2,_0xbef6e1._0x26fa62,0x37f)]});continue;}if(_0xd2d348['type']===_0x4f5ef0(-_0xbef6e1._0x3d0b57,0x22,-0x33,-0x113)){_0x4cadac=!![];isUserVisibleThinking(_0x2fe7d4)&&_0x7d06ba[_0x4f5ef0(-0x10e,-0x146,-_0xbef6e1._0x2bd7f5,-0xf9)]({'type':_0x4f5ef0(_0xbef6e1._0x4d87c8,0x34,-_0xbef6e1._0x58a0b4,0xbe),'data':_0xd2d348[_0x50fc98(0x438,0x444,_0xbef6e1._0x465e29,_0xbef6e1._0x245438)]});continue;}if(_0xd2d348[_0x4f5ef0(-_0xbef6e1._0x12fa64,-_0xbef6e1._0x5dd326,-_0xbef6e1._0x1cec90,-0xfd)]===_0x4f5ef0(-0x86,-_0xbef6e1._0x2ccc0d,-_0xbef6e1._0x4e5ccc,-_0xbef6e1._0x250ad7)){_0xd2d348[_0x50fc98(0x378,0x428,0x3ab,0x2f5)][_0x50fc98(_0xbef6e1._0x2d851e,_0xbef6e1._0x5c8501,_0xbef6e1._0x5cb559,0x3a4)]>0x0&&_0x7d06ba[_0x4f5ef0(-0x10e,-0x63,-_0xbef6e1._0x59dc5a,-_0xbef6e1._0x143a25)](structuredClone(_0xd2d348));continue;}_0x7d06ba[_0x4f5ef0(-_0xbef6e1._0x534072,-0xe6,-_0xbef6e1._0x4df477,-_0xbef6e1._0x5ade95)](structuredClone(_0xd2d348));}function _0x4f5ef0(_0x5557ad,_0xc3253f,_0x81aabd,_0x4be465){return _0x3920(_0x5557ad- -_0x21c413._0x5a5934,_0xc3253f);}return{'id':_0x4c7d9a['id']??_0x50fc98(0x4a2,_0xbef6e1._0x1bf2e4,0x454,0x3c2)+Date[_0x4f5ef0(-0x4b,_0xbef6e1._0x17e7b4,-_0xbef6e1._0x4a5493,-_0xbef6e1._0x2e0b1a)](),'content':_0x7d06ba,'stopReason':_0x7d06ba['some'](_0x5b2f66=>_0x5b2f66[_0x50fc98(0x43a,0x449,0x38f,0x425)]===_0x50fc98(0x2d8,0x2e0,0x326,0x2fc))?_0x50fc98(_0xbef6e1._0x10c27c,_0xbef6e1._0x1cae8b,_0xbef6e1._0x215977,0x373):_0x4c7d9a['stop_reason']===_0x50fc98(_0xbef6e1._0x8cfcf5,_0xbef6e1._0x116824,0x326,0x34f)?_0x4f5ef0(-_0xbef6e1._0x23faa3,-_0xbef6e1._0x17583c,-_0xbef6e1._0x385e47,-_0xbef6e1._0x15b215):'end_turn','usage':{'inputTokens':_0x4c7d9a[_0x50fc98(_0xbef6e1._0x3a41cb,_0xbef6e1._0x246315,_0xbef6e1._0x1f0fe2,0x3f4)]?.[_0x4f5ef0(-_0xbef6e1._0x3094ea,-_0xbef6e1._0x4df477,0x2f,-_0xbef6e1._0x139acb)]??0x0,'outputTokens':_0x4c7d9a[_0x4f5ef0(0x1a,-0x14,-0xa2,0x95)]?.[_0x50fc98(0x475,0x444,_0xbef6e1._0xb2d531,_0xbef6e1._0x159eab)]??0x0},..._0x4cadac?{'providerState':{'anthropicAssistantContent':structuredClone(_0x498556)}}:{}};}var AnthropicMessagesStreamParser=class{[_0x55f0a4(-0x13b,-0x221,-0x17f,-0x1ad)]=new Map();[_0x55f0a4(-0x356,-0x268,-0x325,-0x2dc)]=0x0;['messageId']='msg-'+Date[_0x2e041c(-0xb3,-0x65,-0x76,-0xff)]();['outputTokens']=0x0;[_0x2e041c(-0x72,-0x23,0x13,0x17)];[_0x2e041c(0x6d,0x12,0x23,0x44)]='end_turn';constructor(_0x1b49e5){const _0x50301b={_0x3e46f2:0xba,_0x5ebc7d:0x436};function _0x299d18(_0x5676a2,_0x14fd24,_0x59413c,_0x5a1dd1){return _0x55f0a4(_0x5676a2-_0x50301b._0x3e46f2,_0x14fd24-0xc0,_0x14fd24,_0x59413c-_0x50301b._0x5ebc7d);}this[_0x299d18(0x276,0x2e0,0x29c,0x331)]=_0x1b49e5;}[_0x2e041c(-0x112,-0x17,-0x5c,-0x6d)](_0x4f987d){const _0x1a85e1={_0x50f122:0x14c,_0x4e9f45:0x11b,_0x59c9d2:0x238,_0x34e03b:0x1ee,_0x24d808:0x1b9,_0x1e7d69:0x3a,_0x229f08:0xc0,_0x1d9ef3:0x47,_0x5cf4ea:0x6a,_0x1f32e1:0x285,_0x4ca7a5:0x43,_0xb593f0:0x4d,_0x198083:0x1bd,_0x1fc686:0x1ff,_0x4bcd94:0x181,_0x3331f4:0x1fd,_0x1d323e:0x178,_0x45f524:0x23,_0xc1f3aa:0x1d5,_0x5867f6:0x1b2,_0x16e664:0x252,_0x2996f3:0x1cb,_0x2c0aac:0x199,_0x518020:0x183,_0x53f6c2:0x1b1,_0x49c68d:0x20d,_0x9b266:0x27a,_0xa6b832:0xdc,_0x404851:0x1d2,_0x15fc6d:0x153,_0xbc2062:0x211,_0x198676:0x84,_0x5e0be7:0xde,_0x4bcc64:0x1ad,_0x5493ea:0x7a,_0x3024e4:0x87,_0x2801bf:0xb1,_0xd267f8:0xf8,_0x9c9b95:0x102,_0x1ca469:0x21,_0x38f3ec:0x9b,_0x1889ce:0x4f,_0xa82568:0xd5,_0x8f4200:0xbd,_0x230b7c:0x34,_0x34919d:0x1,_0x2b137b:0x119,_0x19d3b6:0x185,_0x563705:0x100,_0x50e0af:0x195,_0x302aeb:0xa6,_0x1817d1:0x8c,_0x4842ea:0xed,_0xf21f74:0x109,_0x801e04:0xf1,_0xbcc53f:0x1d9,_0x1fc50d:0x247,_0x351e62:0x1e8,_0x5439f7:0x1f5,_0x1a5dce:0x141,_0x4b02a8:0x1c1,_0x4de02e:0x13,_0x169ec4:0x22,_0x349bfd:0x151,_0x2c4d59:0x256,_0x3175b2:0x137,_0x5143d2:0x227,_0x4d3c4d:0x8d,_0x3ce8ec:0x20,_0x36f482:0x81,_0x203803:0x188,_0x4b2392:0x18a,_0x5b0491:0x59,_0x3c09b4:0x38,_0x4c8aad:0xbb,_0x1aca97:0x21a,_0x443424:0x1b8,_0x15daad:0x1f,_0x25ea67:0x67,_0x233b17:0x93,_0x51e4c7:0x62,_0x432279:0x31,_0x5256eb:0x110,_0x38c464:0xce,_0x59c2cb:0x158,_0x1f01e2:0x27f,_0x2d296a:0x1df,_0xbedd1e:0x8a,_0x2bf233:0x13a,_0x4b8e0b:0x9b,_0x54a6e8:0x17c,_0x1a7a3a:0x120,_0x2ae9f5:0x1d0,_0x18ce3c:0xe9,_0x2d6c9d:0x11e,_0xff13c7:0xf1,_0x1a5005:0x106,_0x48f4e0:0x7d,_0x4b59ed:0x4,_0x2d8879:0x7d,_0x299cb0:0xe5,_0x2f60e0:0x16e,_0x1f9ea7:0x14d,_0x3cbb4d:0x193,_0x23c41b:0x22a,_0x2f1192:0x15b,_0x380611:0xd3,_0x3ec88b:0x41,_0x39ceda:0x102,_0x45a537:0x15c,_0x1586be:0xf9,_0x4d2a33:0x0,_0x13e306:0x6b,_0x11dbe0:0x5e,_0x5cc897:0x24,_0x1657f1:0x13f,_0x2528a2:0x199,_0x512b57:0x241,_0x3e3eeb:0x164,_0x134659:0x272,_0x1dfb40:0x1d9,_0x5e2d87:0x80,_0x9a86e4:0x4b,_0x1e7f57:0xd,_0x300bd8:0x1bf,_0x4c35df:0x29f,_0x16ab7a:0x4e,_0x2c7f63:0x1d4,_0x54bade:0x2b9,_0x23274d:0x24c,_0x479559:0x4e,_0x1fa611:0x140,_0xefbe07:0x18e,_0xaa64a:0x218,_0x10e550:0x57,_0x4ebfdb:0xf9,_0x15a6cb:0x70,_0x1c0dd0:0x136,_0x59a226:0x9d,_0x1a9d92:0x121,_0x331844:0x7d,_0x4b70da:0x189,_0x474744:0x133,_0x5bc59a:0x238,_0x25974d:0x1b5,_0xbacd28:0x16f,_0x6bb19e:0x102,_0x2db67d:0xac,_0x36192f:0x99,_0x2b18ac:0x44,_0x355fe3:0x115,_0x147852:0xb0,_0x296819:0x11e,_0x2471e3:0x24f,_0x1d7bae:0x1f8,_0x36082c:0xa9,_0x2bbc1e:0x31},_0x3b2436={_0x2accae:0x124,_0x3b2856:0x2a},_0x3e3eaf={_0x8756a6:0x34};function _0x59b8e3(_0x2eeeb3,_0x3c9740,_0x205703,_0x3de982){return _0x2e041c(_0x2eeeb3-0x1a6,_0x3c9740-0xcd,_0x3de982-_0x3e3eaf._0x8756a6,_0x2eeeb3);}const _0x1f92b7=_0x4f987d[_0x22b394(-0x151,-_0x1a85e1._0x50f122,-0x136,-_0x1a85e1._0x4e9f45)]('\x0a'),_0x3b5ce6=_0x1f92b7[_0x22b394(-_0x1a85e1._0x59c9d2,-0x1c1,-_0x1a85e1._0x34e03b,-_0x1a85e1._0x24d808)](_0x11a30d=>_0x11a30d[_0x22b394(-0x141,-0x15e,-0x185,-0x1b2)]('event:'))?.[_0x22b394(-0x1b2,-0x19b,-0x206,-0x156)](0x6)['trim'](),_0x43b41a=_0x1f92b7['filter'](_0x48509f=>_0x48509f[_0x22b394(-0x13a,-0x1a8,-0x185,-0xdf)](_0x22b394(-0x222,-0x2de,-0x248,-0x1a5)))[_0x59b8e3(-0xff,_0x1a85e1._0x1e7d69,-_0x1a85e1._0x229f08,-0x60)](_0x45a125=>_0x45a125['slice'](0x5)[_0x59b8e3(-0x9c,-0x2f,-0x29,-0x31)]())[_0x59b8e3(_0x1a85e1._0x1d9ef3,-0xb6,-0xa,-_0x1a85e1._0x5cf4ea)]('\x0a')[_0x22b394(-0x2ab,-_0x1a85e1._0x1f32e1,-_0x1a85e1._0x59c9d2,-0x268)]();if(_0x43b41a[_0x59b8e3(-0x8b,-_0x1a85e1._0x4ca7a5,_0x1a85e1._0xb593f0,-0x2f)]===0x0||_0x43b41a===_0x22b394(-_0x1a85e1._0x198083,-0x298,-_0x1a85e1._0x1fc686,-0x22f))return[];function _0x22b394(_0x54cb37,_0x1f0aa3,_0x1d16da,_0x335806){return _0x2e041c(_0x54cb37-_0x3b2436._0x2accae,_0x1f0aa3-_0x3b2436._0x3b2856,_0x1d16da- -0x10c,_0x1f0aa3);}const _0x1feed7=JSON[_0x22b394(-_0x1a85e1._0x4bcd94,-_0x1a85e1._0x3331f4,-_0x1a85e1._0x1d323e,-0x1e6)](_0x43b41a);switch(_0x3b5ce6){case _0x59b8e3(0x2a,0x28,-_0x1a85e1._0x45f524,-0x2):{const _0x2ac626=_0x1feed7[_0x22b394(-_0x1a85e1._0xc1f3aa,-0x20b,-_0x1a85e1._0x5867f6,-0x260)];this[_0x22b394(-0x1e6,-_0x1a85e1._0x16e664,-_0x1a85e1._0x2996f3,-0x21f)]=_0x2ac626?.['id']??this[_0x22b394(-_0x1a85e1._0x2c0aac,-0x278,-0x1cb,-_0x1a85e1._0x518020)],this[_0x22b394(-_0x1a85e1._0x53f6c2,-_0x1a85e1._0x49c68d,-0x23b,-_0x1a85e1._0x9b266)]=_0x2ac626?.['usage']?.[_0x22b394(-_0x1a85e1._0xa6b832,-_0x1a85e1._0x404851,-_0x1a85e1._0x15fc6d,-0x1d4)]??this[_0x22b394(-_0x1a85e1._0xbc2062,-0x29d,-0x23b,-0x2dc)];break;}case _0x22b394(-_0x1a85e1._0x198676,-_0x1a85e1._0x5e0be7,-0x110,-0x10f):{const _0x19741a=typeof _0x1feed7['index']===_0x22b394(-0x176,-0x1bb,-0x1df,-_0x1a85e1._0x4bcc64)?_0x1feed7['index']:0x0,_0x1f3852=_0x1feed7[_0x59b8e3(-_0x1a85e1._0x5493ea,-0x10b,-0x134,-_0x1a85e1._0x3024e4)];if(_0x1f3852?.['type']===_0x59b8e3(-0x141,-_0x1a85e1._0x2801bf,-_0x1a85e1._0xd267f8,-_0x1a85e1._0x9c9b95)&&_0x1f3852['id']&&_0x1f3852[_0x59b8e3(_0x1a85e1._0x1ca469,-0x25,_0x1a85e1._0x38f3ec,_0x1a85e1._0x1889ce)])return this[_0x22b394(-0x12a,-0x116,-0x10c,-_0x1a85e1._0xa82568)][_0x59b8e3(-_0x1a85e1._0x8f4200,_0x1a85e1._0x230b7c,0x16,-_0x1a85e1._0x34919d)](_0x19741a,{'id':_0x1f3852['id'],'index':_0x19741a,'inputJson':JSON['stringify'](_0x1f3852[_0x22b394(-_0x1a85e1._0x2b137b,-_0x1a85e1._0x19d3b6,-0x111,-_0x1a85e1._0x563705)]??{}),'kind':_0x59b8e3(-0x94,-_0x1a85e1._0x50e0af,-0x7d,-0x102),'name':_0x1f3852[_0x59b8e3(_0x1a85e1._0x302aeb,_0x1a85e1._0x1817d1,0x8b,_0x1a85e1._0x1889ce)]}),[{'type':_0x59b8e3(-_0x1a85e1._0x4842ea,-0x190,-0xe9,-0x101),'id':_0x1f3852['id'],'index':_0x19741a,'name':_0x1f3852[_0x22b394(-0x58,-_0x1a85e1._0xf21f74,-_0x1a85e1._0x801e04,-_0x1a85e1._0x5493ea)]}];if(_0x1f3852?.[_0x22b394(-0x20b,-0x12c,-_0x1a85e1._0xbcc53f,-_0x1a85e1._0x1fc50d)]===_0x22b394(-0x237,-0x14e,-_0x1a85e1._0x351e62,-0x1e1)){this['blocks'][_0x22b394(-_0x1a85e1._0x5439f7,-0x10c,-_0x1a85e1._0x1a5dce,-0x1b3)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-0x149,-0x134,-_0x1a85e1._0x351e62,-_0x1a85e1._0x4b02a8),'signature':typeof _0x1f3852['signature']===_0x59b8e3(-_0x1a85e1._0x4de02e,0xa2,-0x18,_0x1a85e1._0x169ec4)?_0x1f3852[_0x22b394(-0x133,-0x1d9,-0x18e,-0xd0)]:'','thinking':typeof _0x1f3852[_0x59b8e3(_0x1a85e1._0x4ca7a5,-0x125,-0x112,-0x7d)]==='string'?_0x1f3852['text']:typeof _0x1f3852[_0x59b8e3(-0x92,-0x116,-0x13e,-0xa8)]===_0x59b8e3(0x8c,0x6a,-0x95,_0x1a85e1._0x169ec4)?String(_0x1f3852[_0x22b394(-0x190,-_0x1a85e1._0x349bfd,-0x1e8,-0x23a)]):''});break;}if(_0x1f3852?.[_0x22b394(-0x120,-0x1fa,-0x1d9,-_0x1a85e1._0x2c4d59)]===_0x22b394(-_0x1a85e1._0x3175b2,-_0x1a85e1._0x5143d2,-0x18a,-0x151)){this[_0x59b8e3(_0x1a85e1._0x4d3c4d,_0x1a85e1._0x3ce8ec,-0x10,0x34)][_0x22b394(-_0x1a85e1._0x36f482,-0x13f,-0x141,-0xe6)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-_0x1a85e1._0x203803,-0x1c5,-_0x1a85e1._0x4b2392,-0x144),'data':typeof _0x1f3852[_0x59b8e3(0x102,0xa1,0x100,_0x1a85e1._0x5b0491)]==='string'?String(_0x1f3852[_0x22b394(-0xef,-0xb9,-0xe7,-0xb4)]):''});break;}this[_0x59b8e3(_0x1a85e1._0x3c09b4,0x39,0x4,0x34)][_0x59b8e3(_0x1a85e1._0x4c8aad,0x9b,_0x1a85e1._0x1e7d69,-_0x1a85e1._0x34919d)](_0x19741a,{'index':_0x19741a,'kind':_0x22b394(-_0x1a85e1._0x1aca97,-_0x1a85e1._0x443424,-0x1bd,-0x13e),'text':_0x1f3852?.[_0x59b8e3(_0x1a85e1._0x15daad,-_0x1a85e1._0x25ea67,-_0x1a85e1._0x233b17,-0x7d)]??''});break;}case _0x59b8e3(-0x170,-_0x1a85e1._0x51e4c7,-_0x1a85e1._0x432279,-0xdc):{const _0x523a03=typeof _0x1feed7[_0x22b394(-_0x1a85e1._0x5256eb,-_0x1a85e1._0x38c464,-_0x1a85e1._0x59c2cb,-0x1b8)]===_0x22b394(-_0x1a85e1._0x1f01e2,-0x188,-_0x1a85e1._0x2d296a,-0x193)?_0x1feed7['index']:0x0,_0xae0650=this['blocks'][_0x22b394(-_0x1a85e1._0x3024e4,-_0x1a85e1._0xbedd1e,-_0x1a85e1._0x2bf233,-_0x1a85e1._0x4b8e0b)](_0x523a03),_0x284f5c=_0x1feed7['delta'];if(!_0xae0650||!_0x284f5c?.[_0x22b394(-_0x1a85e1._0x54a6e8,-0x14f,-0x1d9,-_0x1a85e1._0x15fc6d)])break;if(_0x284f5c[_0x59b8e3(0x17,-_0x1a85e1._0x1a7a3a,-0x10,-0x99)]===_0x22b394(-_0x1a85e1._0x2ae9f5,-0x1e1,-0x144,-_0x1a85e1._0x18ce3c)&&_0xae0650[_0x22b394(-0x22c,-0x17b,-0x1fd,-0x13c)]==='text'&&typeof _0x284f5c['text']===_0x22b394(-0xd9,-0x77,-_0x1a85e1._0x2d6c9d,-0x85))return _0xae0650[_0x59b8e3(-_0x1a85e1._0xff13c7,-_0x1a85e1._0x1a5005,-0x12e,-_0x1a85e1._0x48f4e0)]+=_0x284f5c[_0x59b8e3(0x1,-_0x1a85e1._0x4b59ed,-0xc3,-_0x1a85e1._0x2d8879)],[{'type':_0x59b8e3(-0x52,_0x1a85e1._0x299cb0,0x72,0x3b),'index':_0x523a03,'text':_0x284f5c[_0x22b394(-0x211,-0x1ca,-0x1bd,-_0x1a85e1._0x2f60e0)]}];if(_0x284f5c[_0x59b8e3(-0x12f,-_0x1a85e1._0x1f9ea7,-0xa9,-0x99)]===_0x22b394(-0x294,-_0x1a85e1._0x3cbb4d,-0x23d,-_0x1a85e1._0x23c41b)&&_0xae0650[_0x22b394(-_0x1a85e1._0x2f1192,-0x2a3,-0x1fd,-0x15c)]===_0x59b8e3(-_0x1a85e1._0x380611,-_0x1a85e1._0x3ec88b,-0x96,-_0x1a85e1._0x39ceda)&&typeof _0x284f5c['partial_json']===_0x22b394(-_0x1a85e1._0x45a537,-0xb6,-_0x1a85e1._0x2d6c9d,-_0x1a85e1._0x1586be))return _0xae0650[_0x59b8e3(_0x1a85e1._0x4d2a33,_0x1a85e1._0x13e306,0x117,_0x1a85e1._0x11dbe0)]==='{}'&&(_0xae0650[_0x22b394(-_0x1a85e1._0x5cc897,-_0x1a85e1._0x1657f1,-0xe2,-0xe5)]=''),_0xae0650['inputJson']+=_0x284f5c['partial_json'],[{'type':_0x22b394(-0x1d4,-_0x1a85e1._0x2528a2,-_0x1a85e1._0x512b57,-0x29e),'id':_0xae0650['id'],'index':_0x523a03,'inputDelta':_0x284f5c['partial_json']}];if(_0x284f5c[_0x22b394(-_0x1a85e1._0x3e3eeb,-_0x1a85e1._0x134659,-_0x1a85e1._0x1dfb40,-0x217)]===_0x59b8e3(0xb5,_0x1a85e1._0x5e2d87,-0x2d,_0x1a85e1._0x9a86e4)&&_0xae0650['kind']===_0x59b8e3(-_0x1a85e1._0x1e7f57,-_0x1a85e1._0xbedd1e,-0x13c,-0xa8)){const _0x4183e6=typeof _0x284f5c[_0x22b394(-0x20d,-_0x1a85e1._0x300bd8,-0x1e8,-_0x1a85e1._0x4c35df)]===_0x59b8e3(_0x1a85e1._0x16ab7a,-0x11,-0x78,_0x1a85e1._0x169ec4)?String(_0x284f5c[_0x22b394(-0x1c5,-0x243,-0x1e8,-_0x1a85e1._0x349bfd)]):'';if(_0x4183e6['length']>0x0){_0xae0650[_0x22b394(-_0x1a85e1._0x2c7f63,-0x1a3,-0x1e8,-_0x1a85e1._0x512b57)]+=_0x4183e6;if(isUserVisibleThinking(this[_0x59b8e3(-0x62,-0x48,0x102,_0x1a85e1._0x1d9ef3)]))return[{'type':'anthropic_thinking_delta','index':_0x523a03,'thinking':_0x4183e6}];}}if(_0x284f5c[_0x59b8e3(-0x15b,_0x1a85e1._0x3ce8ec,-0x2c,-0x99)]===_0x22b394(-0x1d9,-_0x1a85e1._0x54bade,-0x24f,-_0x1a85e1._0x23274d)&&_0xae0650[_0x22b394(-0x255,-0x1d1,-0x1fd,-0x193)]==='thinking'){const _0x374d17=typeof _0x284f5c[_0x59b8e3(-0x4d,-0xff,-0xd7,-_0x1a85e1._0x479559)]==='string'?String(_0x284f5c[_0x22b394(-_0x1a85e1._0x1fa611,-0x1e9,-_0x1a85e1._0xefbe07,-_0x1a85e1._0xaa64a)]):'';if(_0x374d17['length']>0x0){_0xae0650[_0x22b394(-0x103,-0x1f5,-0x18e,-0x119)]=_0x374d17;if(isUserVisibleThinking(this[_0x22b394(-_0x1a85e1._0x10e550,-0xb2,-_0x1a85e1._0x4ebfdb,-0x4e)]))return[{'type':_0x22b394(-0xba,-_0x1a85e1._0x15a6cb,-0xef,-0x7d),'index':_0x523a03,'signature':_0x374d17}];}}break;}case _0x22b394(-_0x1a85e1._0x1c0dd0,-_0x1a85e1._0x59a226,-_0x1a85e1._0x1a9d92,-_0x1a85e1._0x331844):{const _0xd29b42=_0x1feed7['delta'],_0x5f41f7=_0x1feed7[_0x22b394(-0x1d7,-0xd6,-0x11d,-0x14b)];this['outputTokens']=_0x5f41f7?.['output_tokens']??this[_0x22b394(-_0x1a85e1._0x4b70da,-0x1d5,-0x170,-_0x1a85e1._0x474744)],this['stopReason']=_0xd29b42?.[_0x22b394(-0x1af,-_0x1a85e1._0x5bc59a,-0x176,-_0x1a85e1._0x25974d)]===_0x59b8e3(-_0x1a85e1._0xbacd28,-_0x1a85e1._0x518020,-0x9d,-_0x1a85e1._0x6bb19e)?_0x59b8e3(-_0x1a85e1._0x2db67d,-_0x1a85e1._0x203803,-0xde,-0x102):_0x59b8e3(-_0x1a85e1._0x36192f,0x47,-_0x1a85e1._0x2b18ac,-0x6d);break;}case _0x59b8e3(-_0x1a85e1._0x355fe3,-_0x1a85e1._0x147852,-_0x1a85e1._0x296819,-0xd0):{const _0x2cb1f1=_0x1feed7[_0x22b394(-0x221,-_0x1a85e1._0x2471e3,-0x210,-_0x1a85e1._0x1d7bae)];throw new Error(_0x2cb1f1?.[_0x59b8e3(-0xfd,-_0x1a85e1._0x36082c,-0xe8,-0x72)]??_0x59b8e3(0x8c,-0xf,_0x1a85e1._0x2bbc1e,-0x14));}}return[];}[_0x55f0a4(-0x1e4,-0x18f,-0xeb,-0x1a8)](){const _0x24a519={_0x477022:0x279,_0x51fd7c:0x1e3,_0x9b2b16:0x223,_0x1d0ecd:0x23d,_0x8fda4f:0x319,_0xc0fdd2:0x3d7,_0x5b88c0:0x3af,_0x558549:0x38b,_0x319d44:0x357,_0x435b18:0x2b8,_0xe10fc4:0x1e4,_0x9dd0a1:0x238,_0x2af204:0x2c0,_0x4895b0:0x312,_0x5997f4:0x2ec,_0x3456af:0x2c3,_0x71157c:0x295,_0x520948:0x2eb,_0x478b1c:0x2f6,_0x2abfc3:0x360,_0x5e3224:0x3e4,_0x36a6fb:0x304,_0x1beee6:0x34e,_0x405c0d:0x2f3,_0x5f3ec6:0x3be,_0x3c7893:0x3cb,_0x5a8c42:0x453,_0x28d618:0x461,_0x30b0a7:0x4e7,_0x342b6e:0x412,_0x593daa:0x1a4,_0x19c63c:0x236,_0x10d2df:0x238,_0x3cdfbf:0x1e7,_0x52956e:0x457,_0x4a09c2:0x3c6,_0x516cfa:0x41b,_0x969087:0x3ce,_0x3c3e94:0x3d9,_0x236c80:0x427,_0x1f3fbb:0x3ad,_0x579f19:0x425,_0x5de1bd:0x396,_0x3d41aa:0x2f5,_0x92ad18:0x325,_0x28963f:0x30d,_0x28fa1a:0x358,_0x55b2a4:0x3fe,_0x1a1c51:0x34a,_0x30bab0:0x384},_0x4869d5={_0x405efa:0xee,_0x519b49:0x43c},_0x32b181=Array[_0x40399a(_0x24a519._0x477022,_0x24a519._0x51fd7c,_0x24a519._0x9b2b16,_0x24a519._0x1d0ecd)](this['blocks'][_0x1d20b3(_0x24a519._0x8fda4f,0x3ac,0x332,0x2fa)]())['sort']((_0x128d71,_0x3d4d94)=>_0x128d71[_0x40399a(0x283,0x3a3,0x325,0x379)]-_0x3d4d94[_0x1d20b3(0x36a,0x3f0,0x484,0x375)]);function _0x1d20b3(_0x4d54ca,_0x7c4abc,_0x21538d,_0x33d88d){return _0x2e041c(_0x4d54ca-_0x4869d5._0x405efa,_0x7c4abc-0x109,_0x7c4abc-_0x4869d5._0x519b49,_0x33d88d);}const _0x4b1861=[];for(const _0x1c8648 of _0x32b181){if(_0x1c8648[_0x1d20b3(0x36f,0x34b,_0x24a519._0xc0fdd2,0x2b7)]===_0x1d20b3(_0x24a519._0x5b88c0,_0x24a519._0x558549,0x371,_0x24a519._0x319d44)){_0x1c8648['text']['length']>0x0&&_0x4b1861[_0x40399a(_0x24a519._0x435b18,_0x24a519._0xe10fc4,_0x24a519._0x9dd0a1,0x2f1)]({'type':'text','text':_0x1c8648[_0x40399a(0x343,0x236,_0x24a519._0x2af204,0x30e)]});continue;}if(_0x1c8648[_0x40399a(0x229,_0x24a519._0x4895b0,0x280,_0x24a519._0x5997f4)]===_0x40399a(_0x24a519._0x3456af,0x2d0,_0x24a519._0x71157c,_0x24a519._0x520948)){_0x4b1861['push']({'type':_0x40399a(0x34c,0x1e6,0x295,0x1d3),'thinking':_0x1c8648[_0x1d20b3(_0x24a519._0x478b1c,_0x24a519._0x2abfc3,_0x24a519._0x5e3224,0x3af)],'signature':_0x1c8648[_0x1d20b3(_0x24a519._0x36a6fb,0x3ba,_0x24a519._0x1beee6,0x3b0)]});continue;}if(_0x1c8648['kind']===_0x40399a(0x2a4,0x2fd,_0x24a519._0x405c0d,0x3b3)){_0x4b1861['push']({'type':_0x1d20b3(0x384,_0x24a519._0x5f3ec6,0x44f,_0x24a519._0x3c7893),'data':_0x1c8648[_0x1d20b3(_0x24a519._0x5a8c42,_0x24a519._0x28d618,_0x24a519._0x30b0a7,_0x24a519._0x342b6e)]});continue;}_0x4b1861[_0x40399a(_0x24a519._0x593daa,_0x24a519._0x19c63c,_0x24a519._0x10d2df,_0x24a519._0x3cdfbf)]({'type':'tool_use','id':_0x1c8648['id'],'name':_0x1c8648[_0x1d20b3(0x4a4,_0x24a519._0x52956e,0x39d,0x4b9)],'input':parseToolInput(_0x1c8648[_0x1d20b3(_0x24a519._0x4a09c2,0x466,0x446,_0x24a519._0x516cfa)][_0x1d20b3(_0x24a519._0x969087,_0x24a519._0x3c3e94,_0x24a519._0x236c80,_0x24a519._0x1f3fbb)]>0x0?_0x1c8648['inputJson']:'{}')});}function _0x40399a(_0x5b7982,_0x347ca0,_0xc85d49,_0x15f607){return _0x55f0a4(_0x5b7982-0x39,_0x347ca0-0x11a,_0x347ca0,_0xc85d49-0x51e);}return parseAnthropicResponse({'id':this['messageId'],'type':_0x1d20b3(_0x24a519._0x579f19,_0x24a519._0x5de1bd,0x2de,0x2d9),'role':'assistant','content':_0x4b1861,'stop_reason':this['stopReason'],'stop_sequence':null,'usage':{'input_tokens':this['inputTokens'],'output_tokens':this[_0x40399a(_0x24a519._0x3d41aa,_0x24a519._0x92ad18,_0x24a519._0x28963f,_0x24a519._0x28fa1a)]}},this[_0x40399a(_0x24a519._0x55b2a4,_0x24a519._0x1a1c51,_0x24a519._0x30bab0,0x405)]);}};function createAnthropicSurfaces(){const _0x15d5dc={_0x1875a2:0x4f6,_0x938d38:0x438},_0x33be1e={_0x2f527b:0x92,_0x5ac260:0x20,_0x575ff5:0x634};function _0x3c964b(_0x539385,_0x1e873d,_0x3623e3,_0x57c39e){return _0x55f0a4(_0x539385-_0x33be1e._0x2f527b,_0x1e873d-_0x33be1e._0x5ac260,_0x57c39e,_0x3623e3-_0x33be1e._0x575ff5);}return[{'id':ANTHROPIC_MESSAGES_SURFACE,'transport':_0x3c964b(0x3cf,_0x15d5dc._0x1875a2,_0x15d5dc._0x938d38,0x456),'createRequest'(_0x1eece1){return createAnthropicRequest(_0x1eece1,![]);},'parseResponse'(_0x1946e9,_0x279c5b){return parseAnthropicResponse(_0x1946e9,_0x279c5b);}},{'id':ANTHROPIC_MESSAGES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x14a656){return createAnthropicRequest(_0x14a656,!![]);},'createStreamParser'(_0x354c67){return new AnthropicMessagesStreamParser(_0x354c67);}}];}var StaticModelSurfaceRouter=class{[_0x2e041c(-0x123,-0xa1,-0xf7,-0x135)];[_0x2e041c(-0xa4,-0x6d,-0xe,0x79)];constructor(_0xf8ca03){const _0x49cf8c={_0x459ae9:0x17,_0x2ccaa8:0x24a,_0x300a7c:0x25c,_0x4e530c:0x223,_0xcebee9:0x1da,_0x352613:0x28b},_0x41fc7d={_0x454dbc:0x11b,_0x506f8e:0x2e0},_0x523ca9={_0x1cd92b:0x16e,_0x40d44d:0x1ec,_0x43b018:0x1d5};function _0x4f7758(_0x22d175,_0x2d5b83,_0x59a27c,_0x3ee757){return _0x55f0a4(_0x22d175-_0x523ca9._0x1cd92b,_0x2d5b83-_0x523ca9._0x40d44d,_0x3ee757,_0x59a27c-_0x523ca9._0x43b018);}this[_0x4f7758(-0xe7,-0x183,-0xcf,-_0x49cf8c._0x459ae9)]=_0xf8ca03[_0x94df6e(_0x49cf8c._0x2ccaa8,0x29c,_0x49cf8c._0x300a7c,_0x49cf8c._0x4e530c)];function _0x94df6e(_0x26c4fd,_0x340c3f,_0x3f0b58,_0x3bcbc7){return _0x2e041c(_0x26c4fd-0x155,_0x340c3f-_0x41fc7d._0x454dbc,_0x3bcbc7-_0x41fc7d._0x506f8e,_0x3f0b58);}this['streamSurface']=_0xf8ca03[_0x94df6e(0x312,0x334,_0x49cf8c._0xcebee9,_0x49cf8c._0x352613)];}[_0x2e041c(-0x4e,-0x50,-0x25,0x28)](_0x2d633e,_0x272cbb){const _0x4e2a5b={_0x49c30e:0x3aa,_0x1729f9:0x367},_0x1477e7={_0x20710f:0x28,_0x507153:0xa0},_0x4a1ee1={_0x15d37a:0x139,_0xb6653d:0x2d7};function _0x50dba4(_0x2f0f13,_0x7942f,_0x160c92,_0x33c7dd){return _0x2e041c(_0x2f0f13-_0x4a1ee1._0x15d37a,_0x7942f-0x99,_0x2f0f13-_0x4a1ee1._0xb6653d,_0x33c7dd);}function _0x1e4790(_0x2687e1,_0xff4e10,_0x143053,_0x587f4c){return _0x2e041c(_0x2687e1-_0x1477e7._0x20710f,_0xff4e10-_0x1477e7._0x507153,_0x143053-0x46c,_0xff4e10);}return _0x272cbb[_0x1e4790(_0x4e2a5b._0x49c30e,0x31f,0x353,_0x4e2a5b._0x1729f9)]===_0x50dba4(0x282,0x1e6,0x321,0x1cc)?this['streamSurface']:this['completeSurface'];}};function trimTrailingSlashes(_0xa418bd){const _0x17411b={_0x5cfba2:0x4dd,_0x2f77ea:0x467},_0x35a71f={_0x2a6665:0xe3,_0x2dda48:0x1f2,_0x7b068:0x6da};function _0x1197b2(_0x37e0f8,_0x183321,_0x119273,_0x4d4946){return _0x55f0a4(_0x37e0f8-_0x35a71f._0x2a6665,_0x183321-_0x35a71f._0x2dda48,_0x37e0f8,_0x183321-_0x35a71f._0x7b068);}return _0xa418bd[_0x1197b2(0x49c,_0x17411b._0x5cfba2,_0x17411b._0x2f77ea,0x580)](/\/+$/,'');}function resolveApiCredential(_0x35301a,_0x1a711){const _0x55384b={_0x1bb598:0x18f,_0x156c90:0x7d,_0x16edbd:0x45,_0x3cfd79:0x1ec,_0x25f18d:0x20c},_0x252564={_0x156a6e:0x136,_0x4cba13:0x120,_0x2fd142:0x0},_0x16f18c={_0x5a77a6:0x11f};function _0x2e613e(_0x5273e4,_0x5620d6,_0x3bbde2,_0x4c9743){return _0x2e041c(_0x5273e4-0x18a,_0x5620d6-_0x16f18c._0x5a77a6,_0x3bbde2-0xe5,_0x5620d6);}if(_0x1a711?.[_0x51b74f(-0x285,-0x277,-0x215,-_0x55384b._0x1bb598)])return _0x1a711[_0x2e613e(0xc9,-0x20,_0x55384b._0x156c90,_0x55384b._0x16edbd)];if(!_0x35301a)return void 0x0;function _0x51b74f(_0x3ec046,_0x97ddc2,_0x27a65d,_0x4dbe66){return _0x55f0a4(_0x3ec046-_0x252564._0x156a6e,_0x97ddc2-_0x252564._0x4cba13,_0x4dbe66,_0x27a65d-_0x252564._0x2fd142);}return{'kind':_0x51b74f(-0x193,-_0x55384b._0x3cfd79,-0x1ae,-_0x55384b._0x25f18d),'value':_0x35301a};}function resolveSessionBaseUrl(_0x42d755,_0x1b8955){const _0x5aafad={_0x1d452b:0x31c,_0x20c8fa:0x3c2},_0x177d41={_0x3fad28:0x1df};function _0x1c7ed7(_0x5c4ba4,_0x868ad8,_0x438929,_0x1d859d){return _0x55f0a4(_0x5c4ba4-0x1c,_0x868ad8-_0x177d41._0x3fad28,_0x1d859d,_0x5c4ba4-0x50d);}return trimTrailingSlashes(_0x1b8955?.[_0x1c7ed7(0x302,0x357,_0x5aafad._0x1d452b,_0x5aafad._0x20c8fa)]?.['api']??_0x42d755);}function toErrorMessage(_0x1c9785){const _0x4a5a55={_0x28b5ba:0xc8,_0x1a4cc1:0xf4,_0x56f200:0x44,_0x32c5f8:0x45b,_0x3dd702:0x496,_0x142462:0x137,_0x1564dd:0xf4,_0x21eb16:0x408},_0x21ff3e={_0x32bc65:0x1a8};function _0x2b8a86(_0x5e0718,_0x40b731,_0x343ebf,_0x53b6fa){return _0x2e041c(_0x5e0718-0xb,_0x40b731-0x16e,_0x40b731-0x19a,_0x343ebf);}if(_0x1c9785 instanceof Error&&_0x1c9785[_0x2b8a86(_0x4a5a55._0x28b5ba,_0x4a5a55._0x1a4cc1,_0x4a5a55._0x56f200,0x11d)][_0x53d954(_0x4a5a55._0x32c5f8,0x424,0x474,_0x4a5a55._0x3dd702)]>0x0)return _0x1c9785[_0x2b8a86(_0x4a5a55._0x142462,_0x4a5a55._0x1564dd,0x117,0x40)];function _0x53d954(_0x1022fa,_0x55dd87,_0x52e377,_0x3fabfe){return _0x55f0a4(_0x1022fa-_0x21ff3e._0x32bc65,_0x55dd87-0x10d,_0x52e377,_0x55dd87-0x634);}return _0x53d954(_0x4a5a55._0x21eb16,0x467,0x479,0x4a7);}function createDefaultWebSocketFactory(){return({headers:_0x201b9a,url:_0x32c990})=>{const _0x539a04=globalThis['WebSocket'];return new _0x539a04(_0x32c990,{'headers':_0x201b9a,'protocols':[]});};}async function*iterateSseEvents(_0x135c51,_0x574cd6){const _0x8245dc={_0x2a9f5c:0x7d,_0x555125:0x43,_0x25d62c:0x66,_0x2a1053:0xea,_0x378f09:0x291,_0x4dd1b0:0x1f7,_0x415d32:0x177,_0x3c5ee3:0xe9,_0xd401ee:0xf,_0x4184c5:0x35,_0x4e5d61:0x26,_0x1cf69c:0x2f3,_0xf71c1d:0xa1,_0x5dccdc:0x3e,_0x350b70:0x80,_0x475455:0x26,_0x545503:0xa1,_0x4dd080:0xf8,_0x46c919:0x2a,_0x2dd083:0x1d6,_0x2cac09:0x2e1,_0x42df64:0x25c,_0x158ff7:0x1ca},_0x86f010={_0x16a0f5:0x215,_0x44ab9e:0x200,_0x4cefa0:0x178},_0x5ba638={_0x27e0dd:0xd8,_0x56ada9:0x238},_0x526e2c={_0xb5ef1b:0x131,_0x454301:0x10c,_0x13df63:0x1f9};function _0x7ce4b4(_0x49f1e0,_0x3e4038,_0x343d7b,_0x5b38f1){return _0x2e041c(_0x49f1e0-_0x526e2c._0xb5ef1b,_0x3e4038-_0x526e2c._0x454301,_0x343d7b- -_0x526e2c._0x13df63,_0x5b38f1);}const _0x4bc79f=_0x135c51[_0x4d1f3f(-_0x8245dc._0x2a9f5c,-_0x8245dc._0x555125,_0x8245dc._0x25d62c,-_0x8245dc._0x2a1053)]?.[_0x7ce4b4(-0x131,-0x206,-0x1eb,-_0x8245dc._0x378f09)]();if(!_0x4bc79f)return;function _0x4d1f3f(_0xb2a5e1,_0xf21730,_0x295c40,_0x4f91d7){return _0x55f0a4(_0xb2a5e1-_0x5ba638._0x27e0dd,_0xf21730-0x1c9,_0xb2a5e1,_0xf21730-_0x5ba638._0x56ada9);}const _0x52bfb0=new TextDecoder(_0x7ce4b4(-0x1bc,-0x1d4,-_0x8245dc._0x4dd1b0,-_0x8245dc._0x415d32));let _0x17c918='';const _0x26251c=addAbortListener(_0x574cd6,()=>{const _0x47ae74={_0x1b846e:0x1a6,_0x157369:0x132,_0x43cec1:0x41d};function _0x1c5241(_0x8dae0f,_0x3bc6a1,_0x273e30,_0x123ce5){return _0x7ce4b4(_0x8dae0f-_0x47ae74._0x1b846e,_0x3bc6a1-_0x47ae74._0x157369,_0x123ce5-_0x47ae74._0x43cec1,_0x273e30);}void _0x4bc79f['cancel'](toAbortError(_0x574cd6?.[_0x1c5241(_0x86f010._0x16a0f5,_0x86f010._0x44ab9e,0xc2,_0x86f010._0x4cefa0)]))['catch'](()=>{});});try{while(!![]){throwIfAborted(_0x574cd6);const {value:_0x5b4518,done:_0x4097e7}=await _0x4bc79f[_0x4d1f3f(-0x39,-0x86,-_0x8245dc._0x3c5ee3,_0x8245dc._0xd401ee)]();throwIfAborted(_0x574cd6);if(_0x4097e7)break;_0x17c918+=_0x52bfb0['decode'](_0x5b4518,{'stream':!![]});while(!![]){const _0x155c30=_0x17c918[_0x4d1f3f(-0x5c,-_0x8245dc._0x4184c5,_0x8245dc._0x4e5d61,-0xf2)]('\x0a\x0a');if(_0x155c30===-0x1)break;const _0x2c4940=_0x17c918['slice'](0x0,_0x155c30);_0x17c918=_0x17c918[_0x7ce4b4(-0x270,-0x313,-_0x8245dc._0x1cf69c,-0x2ee)](_0x155c30+0x2),_0x2c4940[_0x4d1f3f(-0x138,-_0x8245dc._0xf71c1d,-0x10c,-_0x8245dc._0x5dccdc)]()['length']>0x0&&(yield _0x2c4940);}}_0x17c918+=_0x52bfb0[_0x4d1f3f(_0x8245dc._0x350b70,-0x28,-_0x8245dc._0x475455,-0xaa)](),throwIfAborted(_0x574cd6),_0x17c918[_0x4d1f3f(0xe,-_0x8245dc._0x545503,-_0x8245dc._0x4dd080,-_0x8245dc._0x46c919)]()[_0x7ce4b4(-_0x8245dc._0x2dd083,-_0x8245dc._0x2cac09,-_0x8245dc._0x42df64,-_0x8245dc._0x158ff7)]>0x0&&(yield _0x17c918);}finally{_0x26251c();}}async function waitForWebSocketOpen(_0x1baa98,_0x417cb5){const _0x4fb753={_0x318a33:0x19b,_0xf222e8:0x6a,_0x1a9f36:0xfe,_0x61177a:0x8d},_0x29e5d3={_0x1cdba9:0x6d,_0x581de5:0xca,_0x419417:0x40,_0x59cb25:0x7a,_0x6604f3:0x9,_0x25d916:0x74,_0x883f8b:0x80,_0x50c3e8:0x5a,_0x232996:0x9f,_0x2af315:0xcb,_0x2c4819:0x3e,_0x2fcca1:0x9,_0x1e5a08:0xab,_0x2b2f53:0x31,_0x249a6f:0xc5,_0x3f82a1:0x134,_0x474641:0x1d3,_0x5dfffd:0x14f,_0x2a56f3:0xa3},_0x1882dc={_0x449172:0xff,_0x4bf69e:0x7d},_0x2e95f7={_0x576faf:0x293,_0xbe5c81:0x29b,_0x4c1bb9:0x1fd,_0x5a3ad7:0x210,_0x446111:0x297,_0x244442:0x243,_0x1f1a04:0x2de},_0x760487={_0x54a856:0xdb,_0xddb752:0x22c},_0x220389={_0x589174:0x4a};if(_0x1baa98[_0x12fb8f(-_0x4fb753._0x318a33,-0x19a,-_0x4fb753._0xf222e8,-_0x4fb753._0x1a9f36)]===WebSocket[_0x545d70(0x7c,-0x29,-0xe2,_0x4fb753._0x61177a)]){throwIfAborted(_0x417cb5);return;}throwIfAborted(_0x417cb5);function _0x12fb8f(_0x4159d9,_0x302cf7,_0x3427cd,_0x5c204c){return _0x2e041c(_0x4159d9-0x1c7,_0x302cf7-_0x220389._0x589174,_0x5c204c- -0x6b,_0x302cf7);}function _0x545d70(_0x3f3367,_0x24df15,_0x1cf389,_0x2e7ea1){return _0x55f0a4(_0x3f3367-0x7c,_0x24df15-_0x760487._0x54a856,_0x3f3367,_0x24df15-_0x760487._0xddb752);}await new Promise((_0x200f0c,_0x9be043)=>{const _0x527f3c={_0x12115a:0x358,_0x10101c:0x255,_0x153c99:0x3a1,_0x240cd1:0x456,_0x4ddf4d:0x487,_0x147cc5:0x3c7,_0x5328fc:0x260,_0x28e742:0x3ae},_0x391eb5={_0x22176e:0x290},_0x2694bb={_0x10477f:0x85,_0x51147d:0x1d0},_0xeea006={_0x3159f4:0x3ba},_0x4df673={_0x1e798a:0x51},_0x17f825={_0x529398:0xd9,_0x3280cc:0x1e},_0xe16172={_0x4f5a4b:0x226},_0x1fe956=()=>{_0x41dc90(),_0x200f0c();},_0x5a46b3=_0x5e2b34=>{function _0x5747c1(_0x58b326,_0x586d0f,_0x1687cf,_0x507330){return _0x3920(_0x507330- -_0xe16172._0x4f5a4b,_0x586d0f);}_0x41dc90(),_0x9be043(new Error(_0x5e2b34['message']||_0x5747c1(0x3e,-_0x17f825._0x529398,_0x17f825._0x3280cc,-0x77)));},_0x330263=_0x58df8a=>{const _0x11d6e3={_0x5ac48f:0x174};_0x41dc90();const _0x308240=_0x58df8a;function _0x41c608(_0x29cad4,_0x58860e,_0x38c981,_0xe5be9b){return _0x3920(_0x38c981- -_0x11d6e3._0x5ac48f,_0x29cad4);}_0x9be043(new Error(_0x308240[_0x41c608(-0x50,-0x3f,-_0x4df673._0x1e798a,0x2d)]||'WebSocket\x20closed\x20before\x20opening'));},_0x23da68=()=>{function _0x7fbc59(_0x48f72f,_0x5204c7,_0x4c308c,_0x42a00c){return _0x3920(_0x48f72f- -0x12,_0x42a00c);}function _0x22106d(_0x4188f0,_0xc60a12,_0x2d06f3,_0x14655b){return _0x3920(_0x4188f0- -_0xeea006._0x3159f4,_0x14655b);}_0x41dc90(),_0x1baa98['readyState']===WebSocket[_0x22106d(-_0x2e95f7._0x576faf,-_0x2e95f7._0xbe5c81,-0x21a,-0x1f5)]&&_0x1baa98[_0x22106d(-0x1f4,-_0x2e95f7._0x4c1bb9,-_0x2e95f7._0x5a3ad7,-0x1cd)](0x3e8,'aborted'),_0x9be043(toAbortError(_0x417cb5?.[_0x22106d(-_0x2e95f7._0x446111,-_0x2e95f7._0x244442,-0x29b,-_0x2e95f7._0x1f1a04)]));};function _0x42d78c(_0x451855,_0x9f493a,_0x3fa683,_0x4228e8){return _0x12fb8f(_0x451855-_0x2694bb._0x10477f,_0x3fa683,_0x3fa683-0x8c,_0x4228e8-_0x2694bb._0x51147d);}const _0x41dc90=()=>{_0x1baa98['removeEventListener'](_0x2d59df(0x2d5,_0x527f3c._0x12115a,0x2ea,0x3ef),_0x1fe956),_0x1baa98[_0x2d59df(0x50f,0x487,0x464,0x43b)](_0x1e652d(0x2c9,0x349,0x23a,_0x527f3c._0x10101c),_0x5a46b3),_0x1baa98['removeEventListener'](_0x2d59df(_0x527f3c._0x153c99,_0x527f3c._0x240cd1,0x44e,0x4d3),_0x330263);function _0x1e652d(_0x3f9d92,_0x1a32f9,_0xc01f06,_0x5293d2){return _0x3920(_0x3f9d92-0x1fe,_0x5293d2);}function _0x2d59df(_0x369d48,_0x566d7e,_0x509cb0,_0x5e2f72){return _0x3920(_0x566d7e-_0x391eb5._0x22176e,_0x5e2f72);}_0x417cb5?.[_0x2d59df(0x4a4,_0x527f3c._0x4ddf4d,0x500,_0x527f3c._0x147cc5)](_0x2d59df(0x3a9,0x319,_0x527f3c._0x5328fc,_0x527f3c._0x28e742),_0x23da68);};_0x1baa98[_0x2fd185(-_0x29e5d3._0x1cdba9,-_0x29e5d3._0x581de5,-0x9,-0x61)](_0x42d78c(_0x29e5d3._0x419417,_0x29e5d3._0x59cb25,-0x50,0x5e),_0x1fe956);function _0x2fd185(_0x14559f,_0x363c30,_0x557073,_0x38b958){return _0x12fb8f(_0x14559f-_0x1882dc._0x449172,_0x557073,_0x557073-0x1a3,_0x14559f-_0x1882dc._0x4bf69e);}_0x1baa98[_0x2fd185(-_0x29e5d3._0x1cdba9,-_0x29e5d3._0x6604f3,-0x54,-_0x29e5d3._0x25d916)](_0x42d78c(0x93,_0x29e5d3._0x883f8b,_0x29e5d3._0x50c3e8,0x61),_0x5a46b3),_0x1baa98[_0x2fd185(-0x6d,-_0x29e5d3._0x232996,-_0x29e5d3._0x2af315,_0x29e5d3._0x2c4819)](_0x2fd185(_0x29e5d3._0x2fcca1,-0x1c,_0x29e5d3._0x1e5a08,0xbe),_0x330263),_0x417cb5?.[_0x2fd185(-0x6d,_0x29e5d3._0x2b2f53,-_0x29e5d3._0x249a6f,-0x9c)](_0x2fd185(-_0x29e5d3._0x3f82a1,-_0x29e5d3._0x474641,-_0x29e5d3._0x5dfffd,-_0x29e5d3._0x2a56f3),_0x23da68,{'once':!![]});});}function iterateWebSocketMessages(_0x215ea7,_0xb9b646){const _0x3c3a89={_0x1121be:0x89,_0x4b32ac:0xa6,_0x5e9fc6:0x49b,_0x28877c:0x465,_0x1ff0c1:0x3bc,_0x4a1b10:0x89,_0x1b3f2f:0x1d,_0x4acce6:0x548,_0x5e1c60:0x57f,_0x45b22a:0x470},_0xa4b470={_0x411e0a:0x11b,_0xe15c92:0x60,_0x5537f1:0x37,_0x3aebaa:0x2b1,_0x1004de:0x1e3,_0xf2f9db:0x2ff,_0x51816a:0x131,_0x1110e3:0x185},_0x53affc={_0x2949db:0xb6,_0x197992:0x7a},_0x3871f5={_0x858704:0x58,_0x4a2455:0xbd},_0x20c7a1={_0xee6360:0x7c,_0x1db8f1:0x3d,_0x531d95:0xbc,_0x4ef088:0x37f,_0x2f1efe:0x287,_0x43fc47:0x78,_0x419593:0x9a,_0x10968e:0x34,_0x234f48:0x44,_0x16137a:0x398,_0x46c5d9:0x424,_0x24b261:0x2ee,_0x28717b:0x3c7,_0x2f0e4e:0x2d},_0x4c9d79={_0xb560e3:0xb9,_0x23ea2e:0x176,_0x4f4bad:0xd5,_0x186871:0xef,_0x19b7a9:0x136,_0x2b7cd2:0x16,_0x382f2e:0x8a},_0x19f54c={_0x189356:0x337,_0x158cc9:0x29a,_0x1a8000:0x306},_0x3cce65={_0x57e77d:0x406,_0x43d477:0x394,_0x4abdb8:0x394,_0x46afc7:0x461,_0x3a5c8b:0x3a0,_0x2f7fbf:0x5c,_0x3736b3:0x16,_0x21dfd6:0x81,_0x269580:0x50c},_0x532d28={_0x4942a7:0xea,_0x5ac453:0x1b2,_0x2fdc81:0x551},_0x53fffb=[];let _0x55c275=![],_0x586d57;function _0xa4504a(_0x41846e,_0x49eb7a,_0x51a2d3,_0x2830d4){return _0x2e041c(_0x41846e-_0x532d28._0x4942a7,_0x49eb7a-_0x532d28._0x5ac453,_0x41846e-_0x532d28._0x2fdc81,_0x2830d4);}let _0x378515;const _0x339fcf=_0x5b9056=>{function _0x320936(_0x38bf0e,_0x1061f6,_0x8eb093,_0x31813f){return _0x3920(_0x8eb093-0x2fe,_0x31813f);}function _0x52d954(_0x56bf9a,_0x479602,_0x2502d7,_0x2d9a4d){return _0x3920(_0x479602- -0x1de,_0x56bf9a);}const _0x1b5def=_0x5b9056;try{_0x53fffb[_0x320936(0x3e1,_0x3cce65._0x57e77d,_0x3cce65._0x43d477,_0x3cce65._0x4abdb8)](JSON[_0x320936(0x434,0x4f9,_0x3cce65._0x46afc7,_0x3cce65._0x3a5c8b)](String(_0x1b5def[_0x52d954(-_0x3cce65._0x2f7fbf,_0x3cce65._0x3736b3,-0x5c,-_0x3cce65._0x21dfd6)]))),_0x378515?.(),_0x378515=void 0x0;}catch(_0x3b4e46){_0x586d57=new Error(_0x320936(0x3c2,_0x3cce65._0x269580,0x44d,0x48f)+toErrorMessage(_0x3b4e46)),_0x378515?.(),_0x378515=void 0x0;}},_0x33afd6=_0x3d507e=>{const _0x352bd0={_0xa8fc96:0x157};function _0x16e1f4(_0x78fea9,_0x24b31b,_0x1f3d2f,_0x1c62d7){return _0x3920(_0x1c62d7-0x3c1,_0x1f3d2f);}const _0x259cac=_0x3d507e;_0x586d57=new Error(_0x259cac[_0x5d8b2a(_0x19f54c._0x189356,0x1cc,_0x19f54c._0x158cc9,0x280)]||_0x5d8b2a(0x37f,0x2e3,0x30d,_0x19f54c._0x1a8000));function _0x5d8b2a(_0x5d5a8f,_0x1a4a08,_0x6a43aa,_0x517869){return _0x3920(_0x517869-_0x352bd0._0xa8fc96,_0x6a43aa);}_0x378515?.(),_0x378515=void 0x0;},_0x2841e2=_0x36f3db=>{const _0x584f22=_0x36f3db;!_0x55c275&&_0x584f22[_0x401353(-_0x4c9d79._0xb560e3,-_0x4c9d79._0x23ea2e,-_0x4c9d79._0x4f4bad,-_0x4c9d79._0x186871)]!==0x3e8&&!_0x586d57&&(_0x586d57=new Error(_0x584f22[_0x401353(-0xf9,-0x129,-0x8d,-0x1e0)]||_0x547db8(0xff,0xc0,_0x4c9d79._0x19b7a9,0x132)+_0x584f22[_0x547db8(_0x4c9d79._0x2b7cd2,0x7e,_0x4c9d79._0x382f2e,0xb4)]));_0x55c275=!![],_0x378515?.();function _0x401353(_0x1b5d0f,_0x1e7b33,_0x1e4a51,_0x5c93ef){return _0x3920(_0x1e7b33- -0x24c,_0x1b5d0f);}function _0x547db8(_0x25befa,_0x4ed7cd,_0x501a0e,_0x147973){return _0x3920(_0x25befa- -0xc0,_0x501a0e);}_0x378515=void 0x0;},_0x5bb33b=addAbortListener(_0xb9b646,()=>{function _0x42077a(_0x9f1e34,_0xfd3d9,_0x4bc628,_0x5059cc){return _0x3920(_0x9f1e34- -0x19f,_0x4bc628);}_0x586d57=toAbortError(_0xb9b646?.[_0x42077a(-_0x20c7a1._0xee6360,-0x5c,-_0x20c7a1._0x1db8f1,-_0x20c7a1._0x531d95)]);function _0x16c005(_0x174bad,_0x292cec,_0x321363,_0x384398){return _0x3920(_0x174bad-0x1d2,_0x292cec);}_0x215ea7[_0x16c005(0x30e,0x264,_0x20c7a1._0x4ef088,_0x20c7a1._0x2f1efe)]===WebSocket[_0x42077a(-_0x20c7a1._0x43fc47,-_0x20c7a1._0x419593,-_0x20c7a1._0x10968e,-_0x20c7a1._0x234f48)]&&_0x215ea7[_0x16c005(_0x20c7a1._0x16137a,_0x20c7a1._0x46c5d9,_0x20c7a1._0x24b261,_0x20c7a1._0x28717b)](0x3e8,_0x42077a(_0x20c7a1._0x2f0e4e,0x3c,-0x2,0x96)),_0x378515?.(),_0x378515=void 0x0;});_0x215ea7[_0x1e92ca(_0x3c3a89._0x1121be,0xe0,0x4c,0xb2)](_0x1e92ca(0x62,_0x3c3a89._0x4b32ac,0x61,0xaf),_0x339fcf),_0x215ea7['addEventListener'](_0xa4504a(0x44d,_0x3c3a89._0x5e9fc6,_0x3c3a89._0x28877c,_0x3c3a89._0x1ff0c1),_0x33afd6);function _0x1e92ca(_0x1b0e73,_0x5b5f71,_0x2c03c5,_0x1b429d){return _0x55f0a4(_0x1b0e73-_0x3871f5._0x858704,_0x5b5f71-_0x3871f5._0x4a2455,_0x1b429d,_0x1b0e73-0x2b5);}return _0x215ea7[_0x1e92ca(_0x3c3a89._0x4a1b10,0x98,0x42,_0x3c3a89._0x1b3f2f)](_0xa4504a(_0x3c3a89._0x4acce6,_0x3c3a89._0x5e1c60,0x4bf,0x54c),_0x2841e2),{async*[Symbol[_0xa4504a(0x43b,0x4a7,_0x3c3a89._0x45b22a,0x409)]](){const _0x54683e={_0x1263cd:0x76};function _0x59fd6d(_0x340806,_0x4845e3,_0x427431,_0x49dc69){return _0x1e92ca(_0x340806-_0x54683e._0x1263cd,_0x4845e3-0x1d8,_0x427431-0xf5,_0x427431);}function _0x30c523(_0x8d1cf0,_0x21381e,_0x2a5f9a,_0x647da7){return _0x1e92ca(_0x21381e-0x181,_0x21381e-_0x53affc._0x2949db,_0x2a5f9a-_0x53affc._0x197992,_0x8d1cf0);}try{while(!![]){if(_0x586d57)throw _0x586d57;if(_0x53fffb[_0x59fd6d(_0xa4b470._0x411e0a,_0xa4b470._0xe15c92,0x1be,0x164)]>0x0){yield _0x53fffb[_0x59fd6d(0xe9,0xe9,0x143,_0xa4b470._0x5537f1)]();continue;}if(_0x55c275)break;await new Promise(_0x49381f=>{_0x378515=_0x49381f;});}}finally{_0x215ea7[_0x30c523(0x328,_0xa4b470._0x3aebaa,0x2f4,0x2c0)](_0x30c523(0x259,_0xa4b470._0x1004de,0x15c,0x25b),_0x339fcf),_0x215ea7[_0x30c523(_0xa4b470._0xf2f9db,0x2b1,0x30b,0x35b)](_0x30c523(_0xa4b470._0x51816a,0x185,0x1db,0x1c0),_0x33afd6),_0x215ea7['removeEventListener'](_0x59fd6d(0x175,0xf8,0x1df,_0xa4b470._0x1110e3),_0x2841e2),_0x5bb33b();}}};}function toWebSocketUrl(_0x129f9e,_0x5aa104){const _0x2c581c={_0x430b35:0x53,_0x1a39ce:0x113,_0x348ed9:0x5f,_0x5ab282:0x126,_0x412933:0xc5,_0xd60830:0x1aa,_0x49a9f6:0x41,_0x2c11a3:0xf8},_0x2b2d8e={_0xbefe77:0x114},_0x3951e3={_0x247013:0x17f,_0x3b140c:0x31a};function _0x4df4b3(_0xb112bb,_0x4a24a3,_0x220296,_0x179f47){return _0x55f0a4(_0xb112bb-0x144,_0x4a24a3-_0x3951e3._0x247013,_0xb112bb,_0x179f47-_0x3951e3._0x3b140c);}const _0x5e2185=new URL(_0x5aa104,_0x129f9e);function _0x129b9f(_0x5e8752,_0x2c2cd9,_0x52feb2,_0x1bd245){return _0x2e041c(_0x5e8752-_0x2b2d8e._0xbefe77,_0x2c2cd9-0x128,_0x52feb2-0x1d8,_0x5e8752);}return _0x5e2185['protocol']=_0x5e2185['protocol']===_0x129b9f(0x8b,_0x2c581c._0x430b35,_0x2c581c._0x1a39ce,_0x2c581c._0x348ed9)?'wss:':_0x129b9f(_0x2c581c._0x5ab282,0x179,_0x2c581c._0x412933,0x150),_0x5e2185[_0x129b9f(_0x2c581c._0xd60830,_0x2c581c._0x49a9f6,_0x2c581c._0x2c11a3,0x45)]();}var ProviderSessionManager=class{[_0x55f0a4(-0x240,-0x220,-0x281,-0x28a)];[_0x55f0a4(-0x213,-0x1e7,-0x25c,-0x1e9)];constructor(_0x3d962f){const _0x2dd529={_0x36883f:0x120,_0x51647e:0x175,_0x15ea74:0x5e},_0x5441be={_0x5aaf03:0x1c,_0x1ff360:0x1dc};function _0x27b9ce(_0x3723b2,_0x57a31f,_0x153a04,_0x3cd0be){return _0x2e041c(_0x3723b2-0x1b2,_0x57a31f-_0x5441be._0x5aaf03,_0x3cd0be-_0x5441be._0x1ff360,_0x3723b2);}this[_0x27b9ce(_0x2dd529._0x36883f,_0x2dd529._0x51647e,_0x2dd529._0x15ea74,0xff)]=_0x3d962f;}async[_0x2e041c(-0x197,-0x1f2,-0x14b,-0xc8)](_0x1c60d3){const _0x2db970={_0x1c2da9:0x35c,_0x340823:0x42,_0x3352fe:0xcd,_0x205925:0x58},_0xa68abf={_0x113b97:0x4e9};function _0x57d26f(_0x51082a,_0x2b4706,_0x4221d2,_0x27428e){return _0x2e041c(_0x51082a-0x17f,_0x2b4706-0xfc,_0x51082a-0x109,_0x2b4706);}!this['cached']&&(this['cached']=this[_0x36587f(_0x2db970._0x1c2da9,0x40c,0x429,0x393)][_0x57d26f(-_0x2db970._0x340823,0x0,-0x102,-0x24)](_0x1c60d3));function _0x36587f(_0x49d3d5,_0x348fee,_0x4b2ca3,_0x40c4df){return _0x2e041c(_0x49d3d5-0xe7,_0x348fee-0x155,_0x348fee-_0xa68abf._0x113b97,_0x49d3d5);}return structuredClone(await this[_0x57d26f(_0x2db970._0x3352fe,0xcf,_0x2db970._0x205925,0x78)]);}[_0x2e041c(-0x42,-0x29,-0xbe,-0x4a)](){this['cached']=void 0x0;}};function _0xb3ca(){const _0x364397=['igrPzcbUB3qGChjVDMLKzsbHBIbivfrqihbHDgG','r2L0shvItw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5lcbHy2nLC3nuB2TLBIWGB3iGChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','l2nOyxqVy29TCgXLDgLVBNm','Bw9Kzq','mtGZnJK0mKnjsKzcva','C3vTBwfYAxPLza','yxn5BMnjDgvYyxrVCG','y2fSBf9Pza','qw50AhjVCgLJtw9KzwWGCMvXDwLYzxmGyw4GyxbPs2v5ig9YihbYB3zPzgvYu2vZC2LVBLjLC29SDMvY','D3m6','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBLn0yxrL','CMvHza','y29UDgvUDf9IBg9JA19KzwX0yq','B2jQzwn0','DNnJB2rLlZeUmta2lJe','yNvPBgrszxnWB25ZzxntB2nRzxrfDMvUDa','B3v0Chv0','zw5HyMXLza','CMvZB2X2zunYzwrLBNrPywW','Ahr0Chm6lY9HCgKUyw50AhjVCgLJlMnVBq','CMvZCg9UC2vZugf0Aa','B3bLBG','t3bLBKfPuMvZCg9UC2vZu3rYzwfTrxjYB3i','D3nZoG','zxjYB3i','y3jLyxrLtwLZC2LUz0nYzwrLBNrPywXfCNjVCG','C3rYzwfTshr0Cfn1CMzHy2u','zg9Uzq','yxbP','Bw9KzwW','z2v0uMvZCg9UC2vZu29JA2v0u2vZC2LVBKTLEq','CMvZCg9UC2vtB2nRzxrtDhjLyw0','C3LZDgvT','C3rHDhvZ','C2XPy2u','y29Kzq','CMvZCg9UC2uUy3jLyxrL','y29TCgXLDgvtDxjMywnL','BgLTAxrZ','DxnLCG','CMvZCg9UC2uUB3v0Chv0x3rLEhqUzgvSDge','w0rptKvD','zMLUAxnOx3jLyxnVBG','A2LUza','C3vTBwfYEv9PBMrLEa','z2v0u3vYzMfJzq','zMLSDgvY','DxnLC1jLC3bVBNnLC0fWAq','ANnVBG','Dg9VBenHBgXpCMrLCG','z2v0tw9KzwXZ','BwfYA01VzgvSqxnszxnWB25ZzxnpBMX5','yNvKz2v0vg9Rzw5Z','yxjNDw1LBNrZ','Aw5JBhvKzunVBNrLBNruExbL','zgvSDge','y2HVAwnLCW','CMvZCg9UC2uUCMvHC29UAw5Nx3n1Bw1HCNLFDgv4Dc5KB25L','zMLUza','z2L0AhvIqxbPvxjS','Dg9tDhjPBMC','zwrPDg9YvMvYC2LVBG','l2nVCgLSB3rFAw50zxjUywWVDJiVDg9Rzw4','CMvZB2X2zxi','DgHPBMTPBMC','y2fWywjPBgL0AwvZ','CMvZCg9UC2vuzxH0ugfYDhm','ChjVDg9JB2XwzxjZAw9U','DgvZDa','DMLZAwjPBgL0Eq','r2L0shvIiefqssbLCNjVCIa','ChjVDMLKzxjtzxnZAw9UuMvZB2X2zxi','C3rYzwfTvMLHuMvZCg9UC2vZu29JA2v0qxr0zw1WDa','BNvTyMvY','ChjLCgfYzunOyxrszxf1zxn0','C3rYzwfTv2vIu29JA2v0u3vYzMfJzq','ywnJzxnZvg9Rzw4','AxrLBv9Pza','yM9KEq','DhLWzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNmTC3rYzwfT','AgvHzgvYuMvZB2X2zxi','l3jLC3bVBNnLCW','C3rYzwfTvMLHu3vYzMfJzq','z2v0t3jdCMvHDgvszxnWB25ZzxntB2nRzxq','AxrLBq','ywDLBNq','Ahr0Chm6','BwfWqxbPrxjYB3i','zgLZywjSzwq','y29UDgvUDc10ExbL','yxv0BW','Aw5KzxHpzG','BwvZC2fNzuLK','Aw52ywXPzgf0zq','y29TCgXLDgu','yxv0Ag9YAxPHDgLVBG','y29UDgvUDf9IBg9JAW','B3v0Chv0sw5KzxHuB0nHBgXjza','BwvZC2fNzxm','Bwf4x291Dhb1Df90B2TLBNm','Dg9VBf91C2vFAwq','uMvZCg9UC2vZifDLyLnVy2TLDcbYzxf1zxn0igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','AxneB25L','yw50AhjVCgLJqxnZAxn0yw50q29UDgvUDa','zgvJB2rL','Cgf0Aa','Dgv4Da','mJy1mtu1murzsgn4Aq','C2HVDwXKuhjLzMvYuMvZCg9UC2vZqxbP','C3vWCg9YDgvKx2vUzhbVAw50CW','B3bLBMfPx3jLyxnVBMLUzW','CMvHC29U','igrPzcbUB3qGChjVDMLKzsbHifDLyLnVy2TLDcbvuKWGB3iGCgf0Aa','zxzLBNq','C3vYzMfJzq','t1bftG','y3jLyxrLsgvHzgvYCW','BwvZC2fNzq','yxbPs2v5','ue9tva','ignHBM5VDcbWyxjZzsbtu0uGzxzLBNrZ','yxv0AfnJAgvTzq','zw5Kx3r1CM4','zwzMB3j0','Dg9VBc1JywXSlq','AM9PBG','CMvZCg9UC2vjza','zMLUywXszxnWB25Zzq','D2vIu29JA2v0rMfJDg9YEq','Bwv0Ag9K','Dgv4Dej5sw5KzxG','B3v0Chv0x3rVA2vUC19KzxrHAwXZ','yNvPBgrqyxj0AwfSt3v0Chv0','D2vIC29JA2v0x2nVBM5Ly3rPB25FBgLTAxrFCMvHy2HLza','C2HPzNq','BwfW','CMvHzhLtDgf0zq','t3bLBKfjiefqssbLCNjVCIa','yMfZzvvYBa','DMfSDwvZ','uMvZCg9UC2vZifDLyLnVy2TLDcbJBg9ZzwqGyMvMB3jLihjLC3bVBNnLlMnVBxbSzxrLza','CMvHC29UAw5NsxrLBxm','CMvZCg9UC2uUB3v0Chv0x2L0zw0Uzg9Uzq','AgfZ','y2HHDenVBxbSzxrPB25Zugf0Aa','B3bLBMfPlxjLC3bVBNnLCW','Ec1HCgKTA2v5','yMvHCMvY','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzg9Uzq','CMvHC29UAw5Nx3rVA2vUCW','B3v0Chv0x3rVA2vUCW','qMvHCMvYia','l21VzgvSCW','C2LNBMf0DxjL','ChjVDMLKzxjbzgfWDgvY','sw52ywXPzcbxzwjtB2nRzxqGBwvZC2fNztOG','ywrKrxzLBNrmAxn0zw5LCG','CMvKywn0zwrFDgHPBMTPBMC','Dgv4DfbHCNrZ','CM9Szq','y2HHDenVBxbSzxrL','C3vWCg9YDgvKrw5KCg9PBNrZ','C3rHCNrZv2L0Aa','mte4mtG2nK1RAhzLrW','B3v0Chv0x3rLEhq','BM93','Bwv0ywrHDge','CMvZCg9UC2uUzNvUy3rPB25Fy2fSBf9HCMD1BwvUDhmUzgvSDge','BwvZC2fNzuLUzgv4','Dg9VBhm','C2vZC2LVBKLK','DxjS','mJaYns0Xmc0Wmq','yxbWBgLJyxrPB24VANnVBG','C3rHDhvZvgv4Da','CgfYC2u','y2f0y2G','C3rVCf9YzwfZB24','CMvZCg9UC2u','y3jLzgvUDgLHBa','B3bLBMfPuMvZCg9UC2vZuMvZCg9UC2vjza','C2vUzeH0DhbtDxjMywnLuMvXDwvZDa','DhjPBvn0yxj0','B3v0Chv0vg9Rzw5Z','BgvUz3rO','qxv0AgvUDgLJyxrPB24GzMfPBgvKlIbqBgvHC2uGy2HLy2SGEw91CIbbueKGA2v5lG','Bw9KzwXfBMrWB2LUDenHy2HL','nJq4mZmYsuLREwfp','CgfYC2vszxnWB25Zzq','zw5KCg9PBNrZ','Ahr0Cc1ZC2u','y29UC3vTzvnZzuv2zw50','ChjVBxb0x3rVA2vUCW','C29JA2v0','mZaXmtuYnvDKq0rNAq','C3vTBwfYEv90zxH0','r0vu','Dg9VBfvZzvn0yxj0rw1PDhrLza','C3rYzwfT','Aw5PDgLHBev2zw50','z2v0t3bLBKfPrgvSzwDHDgu','Aw5JBhvKzxm','yxbWBhLnB2rLBerLzMf1BhrZ','CMvWBgfJzq','Ahr0Cc1QC29U','Aw50zxjSzwf2zwqTDgHPBMTPBMCTmJaYns0Wns0Xna','Dg9Rzw5fEgnOyw5NzufWAvzLCNnPB24','Aw5KzxG','DgHLBG','ywnXDwLYzvjLC3bVBNnLC1nVy2TLDeXVy2S','Ahr0Chm6lY9HCgKUB3bLBMfPlMnVBs92mq','qw50AhjVCgLJihn0CMvHBsbMywLSzwq','Aw5WDxrFDg9Rzw5Z','CgvUzgLUzW','y29TCgXLDgvwAwfdAgf0q29TCgXLDgLVBNntDxjMywnL','yxnZAxn0yw50','vw5RBM93BIbTB2rLBcbZDxjMywnLoIa','CM91DgvY','ignHBM5VDcbWyxjZzsbxzwjtB2nRzxqGzxzLBNrZ','y29UC3vTzvDLyLnVy2TLDev2zw50','y29TCgXLDgvwAwfsB3v0zxi','y29UC3vTzuv2zw50','qMfZAa','y2fJAgvK','y29TCgXLDgvwAwftDxjMywnL','C3rYzwfTvMLHuM91DgvY','C3bSAwnL','Dgv4Df9KzwX0yq','zNvUy3rPB25Fy2fSBa','BwvZC2fNzv9ZDgfYDa','C2v0','C2vZC2LVBK1HBMfNzxi','DNnJB2rLlZeUmta0lJi','C3rYzwfTvMLHq29UzMLNDxjLzfn1CMzHy2u','zNjVBuvUDhjPzxm','C3rYzwfTvMLHuMvZCg9UC2vZv2vIu29JA2v0u3vYzMfJzq','uhjVDMLKzxiGCMvXDwvZDcbMywLSzwqGD2L0AcbZDgf0DxmG','z2v0','y29UBMvJDf9MywLSzwq','y29WAwXVDc1JAgf0lZaUmZeUmW','CMvXDwvZDe11Dgf0B3jZ','C3bSAxq','CMvZCg9UC2vtB2nRzxq','AgvHzgvYCW','BhmGlwXH','u3vYzMfJzsa','C2vSzwn0u3vYzMfJzq','B3v0Chv0sw5KzxHuB1jLyxnVBMLUz0LK','mwHszuPxBG','t3bLBKfjigrLBgvNyxrLigLZig5VDcbPBML0AwfSAxPLzcbMB3iGC3vYzMfJztOG','yw50AhjVCgLJlxzLCNnPB24','v2vIu29JA2v0ihjLCxvLC3qGzMfPBgvK','CMvZCg9UC2uUCMvHC29UAw5Nx3rLEhqUzgvSDge','CMvZCg9UC2uUzMfPBgvK','y2fWywjSzv9LBMrWB2LUDhm','Dg9bCgLfCNjVCG','rgLYzwn0igfUC3DLCJOG','Aw5WDxrFC2nOzw1H','C29YDa','Bwf4x2nVBNrLEhrFD2LUzg93x3rVA2vUCW','CMvZCg9UC2vtDhjLyw0','y29UBMvJDgLUzW','BwvZC2fNzv9KzwX0yq','C3vTBwfYEuj5sw5KzxG','vw5ZDxbWB3j0zwqGr2L0shvIig1VzgvSihn1CMzHy2u6ia','C3rYAw5N','DxnHz2u','v2vIu29JA2v0ignSB3nLzcb3AxrOignVzguG','CMvZB2X2zujHC2vvCMW','C3rYzwfTu3vYzMfJzq','B3bLBMfPlwnOyxqTy29TCgXLDgLVBNm','C2HVDwXKuMv0CNLszxnWB25ZzxntB2nRzxrszxf1zxn0','y2HHDgnTCgWT','ywrHChrPDMu','y2XVC2u','BxnNlq','C3rYzwfTvMLHuMvZCg9UC2vZu3vYzMfJzq','C2HHCMvKuMvZCg9UC2vZu29JA2v0u2vZC2LVBNm','Aw5WDxq','y29UDgvUDf9IBg9JA19ZDgfYDa','ywjVCNrLza','B3v0Chv0sw5KzxG','yxbPlwTLEq','yMXVy2TZ','zw50CMLLCW','DxrMltG','y2XHDwrLlxnVBM5LDc00ltiWmJuWnte0','DhjHBNnWB3j0','zMLUAxnO','C3rYzwfTvMLHq2HHDenVBxbSzxrPB25Zu3vYzMfJzq','y29UDgvUDf9KzwX0yq','zwrPDg9YugX1z2LUvMvYC2LVBG','z3b0ltrV','zgvSzxrL','C2vUza','y3jLyxrLu3rYzwfTugfYC2vY','C29Tzq','z2v0uMvHzgvY','zw5JCNLWDgvKx2nVBNrLBNq','C3rYzwfTvMLHugvYC2LZDgvUDfjLC3bVBNnLC1nVy2TLDa','zMv0y2HjBxbS','z2v0t3jdCMvHDgvszwfZB25PBMDjDgvT','CMvXDwvZDa','Ahr0Chm6lY9HCgKUAw5KAxzPzhvHBc5NAxrODwjJB3bPBg90lMnVBq','ChjLDMLVDxnszxnWB25ZzuLK','C3vTBwfYEq','DgHPBMTPBMDFzgvSDge','DxnLCI12AxnPyMXL','y29UDgvUDf9PBMrLEa','yw50AhjVCgLJrgvSzwDHDgu','BMfTzq','C2vZC2LVBI10B2TLBG','yw50AhjVCgLJx3nPz25HDhvYzv9KzwX0yq','vw5RBM93BIbWCM92AwrLCIbLCNjVCG','r2L0shvIq29WAwXVDenOyxqVmc4ZmY4X','CMvZCg9UC2uUy29TCgXLDgvK','CMvHC29UAw5N','yw50AhjVCgLJx3jLzgfJDgvKx3rOAw5RAw5N','C3rVCfjLyxnVBG','B3bLBMfPlxjLC3bVBNnLCY1ZDhjLyw0','zgf0yq','ywnJzxb0','Dg9Rzw4','CMvTB3zLrxzLBNrmAxn0zw5LCG','Dg9VBa','Aw5WDxrkC29U','Dg9VBf9Yzxn1Bhq','mteWmJGWndburvrfzMy','zw5JCNLWDgvKq29UDgvUDa','yw50AhjVCgLJx3rOAw5RAw5N','AxnbCNjHEq','y29TCgXLDgvwAwfszxnWB25ZzxnxzwjtB2nRzxrtDxjMywnL','zNvUy3rPB24','y2fSBeLKvg9pDxrWDxrjBMrLEa','Dg9VBenHBgXZqNLjBMrLEa','yw50AhjVCgLJlw1LC3nHz2vZ','CMvZzxq','zNjVBq','CMvMDxnHBa','B3v0Chv0x2LUzgv4','CMvZB2X2zq','C3rYAw5NAwz5','Dg9VBf9JywXSCW','CMvXDwvZDhm','Dg9VBenHBgXZ','ywjVCNq','DMfSDwu','Aw50zxjSzwf2zwq','C2LNBMf0DxjLx2rLBhrH','z2v0qw50AhjVCgLJrgvSzwDHDgu','CMvHC29UAw5Nx3rLEhq','zgvZy3jPChrPB24','y29TCgXLDgvwAwfdB25MAwD1CMvKu3vYzMfJzq','zgLZCgXHEq','zMv0y2G','zgf0ytO','y29TCgXLDgvK','y3jLyxrLuMvXDwvZDa','ChvZAa','Dgv4Dc9LDMvUDc1ZDhjLyw0','y29TCgXLDgLVBL90B2TLBNm','Dg9VBf91C2u','Dg9VBf91C2vFzgvSDge','mti3mtCWnMLJDKHvqq','B3jPz2LUlxrYywnRzxi','C2L6zq','Aw5WDxrFANnVBL9KzwX0yq','zMLUzfjLC3bVBNnLC1nVy2TLDenOzwnRCg9PBNq','Aw5WDxruB2TLBNm','BgfZDfjLC3bVBNnLswq','y29TCgXLDgvwAwfszxnWB25ZzxntDxjMywnL','DhjPBq','yxnZAxn0yw50lq','C2vZC2LVBG','B3bLBMfPlxjLC3bVBNnLCY13CW','C3vYzMfJzxm','sw52ywXPzcbYzxf1zxn0oIa','ChjVDMLKzxjtDgf0zq','C2LNBMfS','ChjVEhK','ChjLCgfYzvjLC3bVBNnLC1nVy2TLDfjLCxvLC3q','y2HHDfn0CMvHBq','Aw52ywXPzgf0zvjLC3bVBNnLC1nVy2TLDfnLC3nPB24','igrPzcbUB3qGChjVzhvJzsbHigzPBMfSihjLC3bVBNnL','B3bLBKfPrgvSzwDHDgu','y29UDgvUDa','Bwf4vg9Rzw5Z'];_0xb3ca=function(){return _0x364397;};return _0xb3ca();}async function prepareProviderRequest(_0x97214f,_0x4bdb35={}){const _0x2154df={_0x34a029:0xd9,_0x382cb7:0x80,_0x5a43ac:0x101,_0x27a901:0x6c,_0x71e508:0x6a},_0x39d59a={_0x3a8c9c:0x3b};function _0x463ee3(_0x2b54f0,_0x458779,_0x4a739f,_0x1417c0){return _0x55f0a4(_0x2b54f0-0x13b,_0x458779-_0x39d59a._0x3a8c9c,_0x2b54f0,_0x4a739f-0x50d);}let _0x55ff69={'request':structuredClone(_0x97214f),'session':_0x4bdb35[_0x4f86b8(_0x2154df._0x34a029,_0x2154df._0x382cb7,_0x2154df._0x5a43ac,0x1b)]?await _0x4bdb35[_0x4f86b8(0xd9,_0x2154df._0x27a901,0x4f,0xe2)]['resolve'](_0x4bdb35['signal']):void 0x0};function _0x4f86b8(_0x2c4a26,_0x17bd61,_0x4cd6f7,_0x4e0dc9){return _0x55f0a4(_0x2c4a26-0xb8,_0x17bd61-0x129,_0x17bd61,_0x2c4a26-0x2ba);}for(const _0x1d67ae of _0x4bdb35[_0x4f86b8(0xe2,0x91,_0x2154df._0x71e508,0x75)]??[]){_0x55ff69=await _0x1d67ae(_0x55ff69);}return _0x55ff69;}var RoutedModel=class{[_0x55f0a4(-0x358,-0x32e,-0x22d,-0x2ac)];[_0x55f0a4(-0x24a,-0x318,-0x273,-0x2ca)];['reasoning'];['apiKey'];[_0x2e041c(0x19,0x26,-0x91,-0x124)];[_0x2e041c(0x88,0x82,0x11,-0x1b)];['providerAdapter'];['requestMutators'];[_0x2e041c(-0x7c,-0xc1,-0x42,-0xc1)];[_0x55f0a4(-0x134,-0x20c,-0x12a,-0x1e1)];[_0x55f0a4(-0x299,-0x1eb,-0x1e3,-0x248)];[_0x55f0a4(-0x34d,-0x2a1,-0x303,-0x2d5)]=new Map();constructor(_0xf0b697){const _0x243592={_0x380e96:0x147,_0x40b778:0x135,_0x48537d:0x165,_0x355e64:0xac,_0xca2a9d:0xa8,_0x1ca0ce:0x488,_0x3d00c0:0x418,_0x269a0a:0x3f8,_0x408c2d:0x4e6,_0x58499a:0x4c0,_0x39bad3:0x433,_0x298590:0x3f9,_0x334ef5:0x3ce,_0x2bef62:0xed,_0x5a0d55:0x66,_0x2df027:0x478,_0x2a9357:0x4e5,_0x4d86c7:0x2f6,_0x63b453:0x2f1,_0x415c9b:0x185,_0x57795c:0x243,_0x422bad:0x74,_0x4b7325:0x73,_0x2f7391:0x2c,_0xaf97fb:0x73,_0x16ed74:0x127,_0x3fda36:0x2f,_0x303506:0x425,_0x352b9e:0x3c4,_0x54cea0:0x383,_0x255607:0x1f,_0x272305:0x1f,_0x2f180b:0x392,_0x9e1800:0x376,_0x1b7a4c:0x3a7,_0x4573fc:0x3b3,_0x28fee6:0x3cc,_0x46af0a:0x403,_0x2d0945:0xe3,_0x2d3ea0:0x11f,_0x294bdf:0x159,_0x2251b4:0x170,_0x181e0e:0x181},_0x14e0dd={_0x1370d5:0x1c9,_0x59e4f9:0x48},_0x537595={_0x21987d:0x12b,_0x4db338:0x614};this['model']=_0xf0b697[_0x2bcda7(-_0x243592._0x380e96,-0x1c8,-_0x243592._0x40b778,-0xfd)],this['maxTokens']=_0xf0b697[_0x2bcda7(-_0x243592._0x48537d,-_0x243592._0x355e64,-_0x243592._0xca2a9d,-0x216)]??0x4000;function _0x596c3b(_0x2b992d,_0x411fef,_0x1e0af6,_0xa1f2de){return _0x55f0a4(_0x2b992d-0xcd,_0x411fef-_0x537595._0x21987d,_0x411fef,_0x2b992d-_0x537595._0x4db338);}this[_0x596c3b(_0x243592._0x1ca0ce,_0x243592._0x3d00c0,_0x243592._0x269a0a,_0x243592._0x408c2d)]=_0xf0b697[_0x596c3b(_0x243592._0x1ca0ce,_0x243592._0x58499a,_0x243592._0x39bad3,0x4fa)]?structuredClone(_0xf0b697[_0x596c3b(0x488,_0x243592._0x298590,_0x243592._0x334ef5,0x3cf)]):void 0x0,this['apiKey']=_0xf0b697[_0x2bcda7(-_0x243592._0x2bef62,-0x53,-_0x243592._0x5a0d55,-0x154)],this['baseUrl']=_0xf0b697[_0x596c3b(0x3d6,0x3da,0x46e,0x3bf)],this[_0x596c3b(_0x243592._0x2df027,0x3d8,0x462,_0x243592._0x2a9357)]=_0xf0b697[_0x596c3b(0x32a,0x392,_0x243592._0x4d86c7,_0x243592._0x63b453)]??globalThis[_0x2bcda7(-_0x243592._0x415c9b,-0x183,-0x240,-_0x243592._0x57795c)];function _0x2bcda7(_0x168570,_0x3866ac,_0x10c573,_0x399a82){return _0x2e041c(_0x168570-_0x14e0dd._0x1370d5,_0x3866ac-0xaa,_0x168570- -_0x14e0dd._0x59e4f9,_0x3866ac);}this['providerAdapter']=_0xf0b697[_0x2bcda7(-0xc9,-0x5d,-0x7,-_0x243592._0x422bad)],this[_0x2bcda7(-_0x243592._0x4b7325,-0xbd,-_0x243592._0x2f7391,-0x9c)]=_0xf0b697[_0x2bcda7(-_0x243592._0xaf97fb,-_0x243592._0x16ed74,0x18,-0xe1)]??[],this[_0x2bcda7(-0x8a,-0x101,0x29,_0x243592._0x3fda36)]=_0xf0b697[_0x596c3b(_0x243592._0x303506,0x39a,_0x243592._0x352b9e,_0x243592._0x54cea0)],this['sessionManager']=_0xf0b697[_0x2bcda7(-0x7c,-_0x243592._0x255607,-0xd8,_0x243592._0x272305)]??(_0xf0b697[_0x596c3b(_0x243592._0x2f180b,0x2d1,0x39f,_0x243592._0x9e1800)]?new ProviderSessionManager(_0xf0b697[_0x596c3b(0x392,_0x243592._0x1b7a4c,0x30e,_0x243592._0x4573fc)]):void 0x0),this[_0x596c3b(_0x243592._0x28fee6,0x3db,_0x243592._0x46af0a,0x486)]=_0xf0b697[_0x2bcda7(-_0x243592._0x2d0945,-0x145,-_0x243592._0x2d3ea0,-_0x243592._0x294bdf)]??createDefaultWebSocketFactory();for(const _0x1fed6c of _0xf0b697[_0x2bcda7(-_0x243592._0x2251b4,-0x135,-0x166,-_0x243592._0x181e0e)]){this['surfaces']['set'](_0x1fed6c['id'],_0x1fed6c);}}[_0x55f0a4(-0x20b,-0x21f,-0x317,-0x26a)](_0x1218bc,_0x18e408){const _0x2ec5e9={_0x5c8127:0x385,_0x177bf4:0x311},_0x5f1209={_0xb6b41a:0xac};function _0x26b47e(_0x1d2941,_0x1e6bee,_0xb4f5fb,_0x229eca){return _0x55f0a4(_0x1d2941-0x164,_0x1e6bee-_0x5f1209._0xb6b41a,_0xb4f5fb,_0x1d2941-0x59c);}return this[_0x26b47e(0x3b0,0x3a7,_0x2ec5e9._0x5c8127,_0x2ec5e9._0x177bf4)](_0x1218bc,_0x18e408);}[_0x55f0a4(-0x22f,-0x15e,-0x204,-0x202)](_0x58ea08,_0xc82304){return this['streamViaRouter'](_0x58ea08,_0xc82304);}async[_0x55f0a4(-0x17b,-0x23e,-0x21f,-0x1ec)](_0x10179b,_0x497447){const _0x48c597=this['applyModelDefaults'](_0x10179b),_0x53723e=await this['router']['selectSurface'](_0x48c597,{'mode':'complete'});return this['completeViaSurface'](_0x48c597,_0x53723e,_0x497447);}async*[_0x2e041c(-0x64,-0x9f,-0x3a,0x78)](_0xa8bf08,_0x394ef3){const _0xe6ea8e={_0x8cfb12:0x17b,_0x564596:0x8,_0x4ef910:0xc1,_0x28f9f1:0x22,_0x391899:0x227,_0x208f8f:0x207,_0x56708c:0x222},_0xf7a889={_0x780740:0x77},_0x47d316={_0x523039:0x1e7};function _0x57e460(_0x3079bb,_0x37de55,_0x224c2c,_0x2e442a){return _0x55f0a4(_0x3079bb-0x6f,_0x37de55-0x1a4,_0x2e442a,_0x3079bb-_0x47d316._0x523039);}function _0x3e3a93(_0x3b3c7e,_0x4a780f,_0x1cbf11,_0x1efb38){return _0x55f0a4(_0x3b3c7e-0x141,_0x4a780f-_0xf7a889._0x780740,_0x1cbf11,_0x1efb38-0x379);}const _0x1c0e0b=this[_0x3e3a93(0x14d,0xd2,0x22f,_0xe6ea8e._0x8cfb12)](_0xa8bf08),_0x4f3e61=await this[_0x57e460(-_0xe6ea8e._0x564596,-_0xe6ea8e._0x4ef910,-0x98,_0xe6ea8e._0x28f9f1)][_0x3e3a93(_0xe6ea8e._0x391899,_0xe6ea8e._0x208f8f,_0xe6ea8e._0x56708c,0x1a7)](_0x1c0e0b,{'mode':'stream'});yield*this['streamViaSurface'](_0x1c0e0b,_0x4f3e61,_0x394ef3);}async[_0x55f0a4(-0x198,-0x279,-0x26d,-0x1e8)](_0x382470,_0x203855,_0xbd2efe){const _0x3f0016={_0x2f31c2:0x44e,_0x2f1bb6:0x3ef,_0x550bcf:0x541,_0x5bfa5e:0x1e2,_0x233911:0x5e1,_0x1ad248:0x1f2,_0x34fe7c:0x291,_0x4c8839:0x1ef,_0x4e3b11:0x4de,_0x3d8a32:0x521,_0x3c8065:0x281,_0x1e7775:0x234,_0x362356:0x3be,_0x5ec038:0x3f3,_0x36f4f9:0x1fc,_0x5cb938:0x567,_0x513655:0x30e},_0x41174={_0x936231:0xc8},_0x25ca66={_0x2e540d:0x161,_0x574bb6:0xba,_0x34619e:0x6ea},_0x46b165=this['applyModelDefaults'](_0x382470),_0x584d46=this[_0x4f2e6a(_0x3f0016._0x2f31c2,0x4b3,_0x3f0016._0x2f1bb6,0x3c5)](_0x203855);if(_0x584d46[_0x4f2e6a(_0x3f0016._0x550bcf,0x577,0x58a,0x4a4)]===_0x2640d0(-_0x3f0016._0x5bfa5e,-0x1c9,-0x221,-0x1c8)){const _0x484dcd=await this['sendHttpSurfaceRequest'](_0x46b165,_0x584d46,![],_0xbd2efe?.['signal']);if(!_0x484dcd['ok'])throw await this[_0x4f2e6a(0x521,0x4dd,_0x3f0016._0x233911,0x47b)](_0x484dcd);if(!_0x584d46[_0x2640d0(-_0x3f0016._0x1ad248,-_0x3f0016._0x34fe7c,-0x24a,-_0x3f0016._0x4c8839)])throw new Error('Surface\x20'+_0x203855+'\x20does\x20not\x20support\x20non-streaming\x20responses');return _0x584d46[_0x4f2e6a(_0x3f0016._0x4e3b11,0x5a0,_0x3f0016._0x3d8a32,0x53f)](await _0x484dcd[_0x2640d0(-0x27f,-0x2c0,-_0x3f0016._0x3c8065,-_0x3f0016._0x1e7775)](),_0x46b165);}let _0x26df68;function _0x4f2e6a(_0x43cebe,_0x2f8337,_0x3243c2,_0x5cfdfa){return _0x55f0a4(_0x43cebe-_0x25ca66._0x2e540d,_0x2f8337-_0x25ca66._0x574bb6,_0x2f8337,_0x43cebe-_0x25ca66._0x34619e);}function _0x2640d0(_0x32ab69,_0x1fdd3e,_0x23aa56,_0x535fbd){return _0x2e041c(_0x32ab69-0xe8,_0x1fdd3e-_0x41174._0x936231,_0x32ab69- -0x193,_0x1fdd3e);}for await(const _0x253be6 of this[_0x4f2e6a(0x474,_0x3f0016._0x362356,0x41b,_0x3f0016._0x5ec038)](_0x46b165,_0x203855,_0xbd2efe)){_0x253be6['type']==='done'&&(_0x26df68=_0x253be6[_0x2640d0(-_0x3f0016._0x36f4f9,-0x1d2,-0x1af,-0x21c)]);}if(!_0x26df68)throw new Error(_0x4f2e6a(0x517,_0x3f0016._0x5cb938,0x529,0x55a)+_0x203855+_0x2640d0(-0x2b3,-0x306,-0x2fc,-_0x3f0016._0x513655));return _0x26df68;}async*[_0x55f0a4(-0x2e8,-0x2e9,-0x28d,-0x276)](_0x68ed7e,_0x54562b,_0x3e79eb){const _0x4f3e29={_0x2a8f74:0x22c,_0x569dc2:0x286,_0x93b4f3:0x260,_0x34b47f:0x27b,_0x4e7a54:0x76,_0x3d947a:0x1b,_0x2f1ad3:0x7e,_0x3dd5ad:0xd2,_0x5d2aa7:0x1ca,_0x8fdd13:0x23,_0x53a709:0x25,_0x1e877d:0x197,_0x1b3795:0x174,_0x7a5e15:0x112,_0x231028:0x16b},_0x591aaf={_0x3e5495:0x20},_0x1b2b8a={_0x29c3ac:0x107,_0x3b1f72:0x16},_0x56f000=this[_0x33b416(0x1fd,0x248,_0x4f3e29._0x2a8f74,0x2ca)](_0x68ed7e),_0x5b5ef7=this[_0x33b416(0x250,0x1aa,0x240,0x23b)](_0x54562b);if(_0x5b5ef7[_0x33b416(_0x4f3e29._0x569dc2,0x29d,_0x4f3e29._0x93b4f3,_0x4f3e29._0x34b47f)]===_0x5d5a38(-_0x4f3e29._0x4e7a54,-_0x4f3e29._0x3d947a,-_0x4f3e29._0x2f1ad3,-0xda)){yield{'type':_0x5d5a38(-0x128,-0x1ea,-_0x4f3e29._0x3dd5ad,-_0x4f3e29._0x5d2aa7),'response':await this['completeViaSurface'](_0x56f000,_0x54562b,_0x3e79eb)};return;}if(_0x5b5ef7[_0x5d5a38(-_0x4f3e29._0x8fdd13,-0x2b,-_0x4f3e29._0x53a709,0x1)]==='http-sse'){yield*this[_0x33b416(0x216,_0x4f3e29._0x1e877d,0xec,0x228)](_0x56f000,_0x5b5ef7,_0x3e79eb?.[_0x33b416(_0x4f3e29._0x1b3795,0x174,0x186,0xd5)]);return;}function _0x5d5a38(_0x3d41c1,_0x3ebf90,_0x2a00d8,_0x1272be){return _0x55f0a4(_0x3d41c1-_0x1b2b8a._0x29c3ac,_0x3ebf90-_0x1b2b8a._0x3b1f72,_0x1272be,_0x3d41c1-0x186);}function _0x33b416(_0x53435b,_0x5993de,_0x11af6c,_0x5e144f){return _0x2e041c(_0x53435b-_0x591aaf._0x3e5495,_0x5993de-0x32,_0x5993de-0x299,_0x53435b);}yield*this[_0x5d5a38(-0xf8,-_0x4f3e29._0x7a5e15,-0xa2,-_0x4f3e29._0x231028)](_0x56f000,_0x5b5ef7,_0x3e79eb?.['signal']);}async['sendRawRequest'](_0x484d7c){const _0x4fde14={_0x19187b:0x12e,_0x64e4ad:0xdf,_0x515163:0x56,_0x87715e:0x449,_0x854420:0x3ee,_0x84a548:0x3e9,_0x3d5b21:0x408,_0x13fbfa:0xf8,_0x198272:0x11c,_0x272385:0x11a},_0x55948a={_0xb88414:0x3a},_0x134137={_0x2d6293:0x91,_0x572681:0x244,_0x32a8b1:0xf5,_0x2879f0:0x197,_0x5c6a41:0x22e,_0x264569:0xf4,_0x4dc9cb:0x182,_0x5f0245:0x291,_0x3a87b3:0x265,_0x251a4f:0x12f,_0x57c4b5:0xf6,_0x4662c8:0x80,_0x32ca37:0x37,_0x11b2e8:0x215,_0x14baa6:0x28f,_0x17b296:0x219,_0x1e997f:0x248,_0x349b95:0x10d,_0x517b17:0x171,_0x4ef951:0x252,_0x4495ee:0x249,_0x21ab54:0x25a,_0x3f6d36:0x1a3},_0xbda1c3={_0x5cea72:0x34a},_0x5d5a83={_0x2a3c14:0x22c},_0x227fc6=async()=>{const _0x9493f4=this[_0x4006d4(-0x93,-0x46,-0x144,-_0x134137._0x2d6293)]?await this[_0x1f0d02(-0x1af,-0x1cf,-0x124,-_0x134137._0x572681)][_0x4006d4(-_0x134137._0x32a8b1,-0x13f,-_0x134137._0x2879f0,-0x1a8)](_0x484d7c[_0x4006d4(-0x23c,-_0x134137._0x5c6a41,-_0x134137._0x264569,-_0x134137._0x4dc9cb)]):void 0x0;function _0x4006d4(_0x2ac111,_0x3604bb,_0x42fb5c,_0x5eceb0){return _0x3920(_0x5eceb0- -_0x5d5a83._0x2a3c14,_0x42fb5c);}const _0x233786=this['providerAdapter'][_0x1f0d02(-0x285,-_0x134137._0x5f0245,-0x2e1,-_0x134137._0x3a87b3)](this['apiKey'],_0x9493f4);if(!_0x233786)throw this[_0x4006d4(-_0x134137._0x251a4f,-0xbc,-0x1fc,-0x160)]();const _0x3aaffe=await this['createHeaders']({'body':_0x484d7c[_0x4006d4(-_0x134137._0x57c4b5,-0x1cf,-0x18f,-0x12b)],'credential':_0x233786,'session':_0x9493f4,'stream':![]},{'accept':_0x484d7c[_0x4006d4(-_0x134137._0x4662c8,-0x3b,-0x7c,-0x37)]??_0x4006d4(-0x27,-_0x134137._0x32ca37,-0x122,-0xcb),'includeContentType':_0x484d7c[_0x1f0d02(-_0x134137._0x11b2e8,-0x23b,-0x2ad,-0x2c9)]===_0x1f0d02(-0x21f,-_0x134137._0x14baa6,-_0x134137._0x17b296,-_0x134137._0x1e997f)});function _0x1f0d02(_0x3c42fb,_0x46cc80,_0x3e6678,_0x1e2aaf){return _0x3920(_0x3c42fb- -_0xbda1c3._0x5cea72,_0x3e6678);}return this[_0x1f0d02(-0x16a,-0x1cc,-0xed,-_0x134137._0x349b95)](''+this['providerAdapter'][_0x1f0d02(-0x18a,-0xcc,-0x139,-0x12d)](this['baseUrl'],_0x9493f4)+_0x484d7c[_0x1f0d02(-0x22d,-0x200,-0x1ab,-_0x134137._0x517b17)],{'method':_0x484d7c[_0x4006d4(-0x1a0,-0x6a,-0x120,-0xf7)],'headers':_0x3aaffe,..._0x484d7c['body']!==void 0x0?{'body':JSON[_0x1f0d02(-0x2c5,-_0x134137._0x4ef951,-0x240,-0x29e)](_0x484d7c[_0x1f0d02(-_0x134137._0x4495ee,-0x222,-_0x134137._0x21ab54,-0x1ae)])}:{},'signal':_0x484d7c[_0x4006d4(-_0x134137._0x3f6d36,-0x199,-0x176,-0x182)]});},_0xe64cdf=await _0x227fc6();if(_0xe64cdf[_0x3f3a77(_0x4fde14._0x19187b,_0x4fde14._0x64e4ad,_0x4fde14._0x515163,0xc0)]!==0x191||!this[_0x2b86a1(0x3ba,_0x4fde14._0x87715e,_0x4fde14._0x854420,0x3f5)])return _0xe64cdf;function _0x3f3a77(_0x4b8f2d,_0x5933ad,_0x12292b,_0x41b452){return _0x2e041c(_0x4b8f2d-0x18f,_0x5933ad-0x151,_0x5933ad-0x1da,_0x4b8f2d);}function _0x2b86a1(_0x3f9c73,_0x1dffa6,_0x5a649f,_0x4a24f6){return _0x55f0a4(_0x3f9c73-_0x55948a._0xb88414,_0x1dffa6-0x10e,_0x1dffa6,_0x5a649f-0x5cf);}return this[_0x2b86a1(_0x4fde14._0x84a548,_0x4fde14._0x3d5b21,0x3ee,0x39c)][_0x3f3a77(_0x4fde14._0x13fbfa,_0x4fde14._0x198272,_0x4fde14._0x272385,0x1a5)](),_0x227fc6();}[_0x2e041c(-0x1b7,-0x138,-0x103,-0x13d)](){const _0x95f40={_0x2ab9e6:0x48d,_0x323a2b:0x424,_0x5e490c:0x3ca,_0x139102:0x32c},_0x3951d2={_0x864044:0x11a},_0x214626={_0x1bdd8d:0xe3,_0x31cbf9:0x56a};function _0x253b4e(_0x5315b7,_0x136d33,_0x1f5609,_0x34b503){return _0x2e041c(_0x5315b7-_0x214626._0x1bdd8d,_0x136d33-0x1b0,_0x1f5609-_0x214626._0x31cbf9,_0x34b503);}function _0x2052f5(_0x5062c0,_0x3e3439,_0x17a7f0,_0x17431c){return _0x2e041c(_0x5062c0-0x16,_0x3e3439-_0x3951d2._0x864044,_0x3e3439-0x4cd,_0x17431c);}return this[_0x2052f5(_0x95f40._0x2ab9e6,0x44c,_0x95f40._0x323a2b,0x4ef)][_0x2052f5(0x3f5,_0x95f40._0x5e490c,0x3ae,_0x95f40._0x139102)]();}async[_0x55f0a4(-0x298,-0x1b1,-0x2f4,-0x254)](_0x1e3c41,_0x4f50ce){const _0x3e918a={_0xfba73e:0xb9},_0x16d634={_0x437fe1:0x2b,_0x3c02f9:0x28};function _0x1cc629(_0x4784b1,_0x3e3b1d,_0x12f1c6,_0x473860){return _0x2e041c(_0x4784b1-_0x16d634._0x437fe1,_0x3e3b1d-_0x16d634._0x3c02f9,_0x4784b1-0x145,_0x473860);}return await this[_0x1cc629(0xc4,0x127,0x16b,_0x3e918a._0xfba73e)]['createHeaders'](_0x1e3c41,_0x4f50ce);}['mapApiError'](_0xf8b0ad){const _0x280826={_0x16a25e:0xab,_0x35212e:0xab},_0x2e8b3d={_0x470721:0x27},_0x72c49e={_0x1df0d3:0x15b,_0x3dee8c:0x13e};function _0x3b00ba(_0x4a3652,_0x53807e,_0x2d8354,_0x599ce5){return _0x55f0a4(_0x4a3652-_0x72c49e._0x1df0d3,_0x53807e-_0x72c49e._0x3dee8c,_0x2d8354,_0x4a3652-0x1c6);}function _0x3f52dc(_0x4f0076,_0xf9aeee,_0x5b088b,_0x13eb4e){return _0x2e041c(_0x4f0076-0x1d2,_0xf9aeee-_0x2e8b3d._0x470721,_0x4f0076-0x216,_0x13eb4e);}return this[_0x3f52dc(0x195,0x1b0,0x199,0xe2)][_0x3b00ba(-_0x280826._0x16a25e,0xb,-_0x280826._0x35212e,-0x1e)](_0xf8b0ad);}async['toApiError'](_0x3f580a){const _0x2efb33={_0x42b3a3:0xf5,_0x28de1b:0x52,_0x4d4456:0x3f0},_0x36be1d={_0x33f9bf:0x1,_0x5ebf6d:0x1ed},_0x512b8f={_0x1236ed:0x6d,_0x2131ff:0x431};function _0xdd1b77(_0x17b299,_0x4f9156,_0x275b72,_0x3ffc64){return _0x2e041c(_0x17b299-0x3,_0x4f9156-_0x512b8f._0x1236ed,_0x4f9156-_0x512b8f._0x2131ff,_0x17b299);}function _0x4f8407(_0x4dc6bf,_0x3e0ecd,_0x471b46,_0x2f6c3b){return _0x2e041c(_0x4dc6bf-_0x36be1d._0x33f9bf,_0x3e0ecd-_0x36be1d._0x5ebf6d,_0x2f6c3b-0x2f,_0x471b46);}return await this[_0x4f8407(0x2d,0x11,-_0x2efb33._0x42b3a3,-_0x2efb33._0x28de1b)][_0xdd1b77(0x3b4,0x415,0x426,_0x2efb33._0x4d4456)](_0x3f580a);}[_0x55f0a4(-0x2f1,-0x33e,-0x319,-0x29c)](_0x58d100){const _0x4e8004={_0x5a9cc1:0x380,_0xda2579:0x462,_0x2c186b:0x4a0,_0x253259:0x3ad},_0x2026b8={_0x4cc68c:0x77},_0xfcb641={_0x1e2217:0x4},_0x32fdae=this[_0x4a6243(0x2ea,0x37a,_0x4e8004._0x5a9cc1,0x356)][_0x4a6243(_0x4e8004._0xda2579,_0x4e8004._0x2c186b,0x47a,0x4d6)](_0x58d100);function _0x4a6243(_0x1b8e33,_0x56c294,_0x5e36c,_0x3fe9a5){return _0x55f0a4(_0x1b8e33-0x87,_0x56c294-_0xfcb641._0x1e2217,_0x56c294,_0x5e36c-0x655);}function _0x556390(_0x465ec7,_0x5db428,_0xa6a63a,_0xa9a89a){return _0x2e041c(_0x465ec7-_0x2026b8._0x4cc68c,_0x5db428-0x104,_0x465ec7-0x242,_0xa6a63a);}if(!_0x32fdae)throw new Error(_0x4a6243(0x3f3,_0x4e8004._0x253259,0x465,0x4e3)+_0x58d100);return _0x32fdae;}async[_0x55f0a4(-0x2d6,-0x2f8,-0x24c,-0x27f)](_0x44c5fa,_0x452916){const _0x2ff464={_0x21f68b:0x2,_0x1809bb:0xbf,_0x6c5d9d:0x4cc,_0x2f9303:0x528,_0x1d39c0:0x4b9,_0x51cb8c:0x10c,_0x54ab17:0xbf,_0x2e17fb:0x78,_0x5f395b:0x10c,_0x2920d4:0x13d,_0xd5706c:0x137,_0x42a7b2:0x128,_0x39ece0:0xe1,_0x2b63d5:0x195,_0x5af383:0x202,_0x33b15c:0x256,_0x38fe2b:0x1b5,_0x387347:0x1b7,_0x3c91ed:0x18e,_0x4f1bcc:0x7a,_0x2c0a74:0x10c,_0x171b1f:0x589,_0x52edba:0x4a7,_0x48817e:0x4f5,_0x102149:0x4d5,_0x5d39e2:0x276,_0x3d7e19:0x17b,_0x2b76a5:0x11e,_0x5566c1:0x1b5},_0x402f99={_0x444d2f:0x178,_0xb495a0:0x111,_0x1cc7f2:0x122},_0x567a1c={_0x2844dc:0x103};function _0x48e10c(_0x70ea66,_0x49561e,_0x158ea4,_0x503aec){return _0x2e041c(_0x70ea66-0x1a3,_0x49561e-_0x567a1c._0x2844dc,_0x503aec-0x4e4,_0x49561e);}function _0x286a2f(_0x3e8a0c,_0x2cfb51,_0x54af44,_0xed7fd7){return _0x55f0a4(_0x3e8a0c-_0x402f99._0x444d2f,_0x2cfb51-_0x402f99._0xb495a0,_0x3e8a0c,_0xed7fd7-_0x402f99._0x1cc7f2);}const _0xb77486=toModelRequest(_0x44c5fa),_0x34a434=await prepareProviderRequest(_0xb77486,{'sessionManager':this[_0x286a2f(-0x119,-_0x2ff464._0x21f68b,-0x172,-_0x2ff464._0x1809bb)],'requestMutators':this[_0x48e10c(_0x2ff464._0x6c5d9d,0x438,_0x2ff464._0x2f9303,_0x2ff464._0x1d39c0)],'signal':_0x452916}),_0x3c2e55=toChatRequest(_0x34a434[_0x286a2f(-_0x2ff464._0x51cb8c,-0x63,-_0x2ff464._0x54ab17,-_0x2ff464._0x2e17fb)]),_0x31a504=this[_0x286a2f(-_0x2ff464._0x5f395b,-0x1a8,-_0x2ff464._0x2920d4,-0x10c)][_0x286a2f(-_0x2ff464._0xd5706c,-_0x2ff464._0x42a7b2,-_0x2ff464._0x39ece0,-_0x2ff464._0x2b63d5)](this['apiKey'],_0x34a434[_0x286a2f(-_0x2ff464._0x5af383,-_0x2ff464._0x33b15c,-0xff,-_0x2ff464._0x38fe2b)]);if(!_0x31a504)throw this[_0x286a2f(-0x1fe,-_0x2ff464._0x387347,-0x245,-_0x2ff464._0x3c91ed)]();return{'baseUrl':this[_0x286a2f(-0x99,-_0x2ff464._0x4f1bcc,-0x11d,-_0x2ff464._0x2c0a74)][_0x48e10c(_0x2ff464._0x171b1f,_0x2ff464._0x52edba,_0x2ff464._0x48817e,_0x2ff464._0x102149)](this['baseUrl'],_0x34a434[_0x286a2f(-_0x2ff464._0x5d39e2,-_0x2ff464._0x3d7e19,-_0x2ff464._0x2b76a5,-_0x2ff464._0x5566c1)]),'credential':_0x31a504,'request':_0x3c2e55,'session':_0x34a434['session']};}[_0x2e041c(-0x3b,-0xaa,-0x51,0x24)](_0x40232d){const _0x1509d2={_0x3f5fac:0x4fa,_0x55620e:0x560,_0x299c9d:0x57f},_0x918d5e={_0x4951ab:0x89,_0x548b31:0x145,_0x3bc15a:0x6d7},_0x58f0e7={_0x26c29f:0x118};function _0xd64bdb(_0x164a6f,_0x309bad,_0xfa526c,_0x3d427f){return _0x55f0a4(_0x164a6f-0x8e,_0x309bad-_0x58f0e7._0x26c29f,_0x309bad,_0x3d427f-0x737);}function _0x2e520b(_0x57d75b,_0x23e29f,_0x1109ee,_0x59f896){return _0x55f0a4(_0x57d75b-_0x918d5e._0x4951ab,_0x23e29f-_0x918d5e._0x548b31,_0x57d75b,_0x1109ee-_0x918d5e._0x3bc15a);}return{...structuredClone(_0x40232d),..._0x40232d[_0x2e520b(_0x1509d2._0x3f5fac,0x579,0x54b,_0x1509d2._0x55620e)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this[_0x2e520b(_0x1509d2._0x299c9d,0x5ed,0x54b,0x52f)])}:{}};}async['sendHttpSurfaceRequest'](_0x4fcaa4,_0xfe5b87,_0x310510,_0x420afd){const _0x12024c={_0x2b4c09:0x1b4,_0x15a834:0x1c3,_0x70fc86:0x1e3},_0x19c4a5={_0x1db073:0x1c7,_0x551e79:0x41},_0x4c6cb8={_0x3d2a56:0x49,_0x1db745:0x18f},_0x3c7f62={_0x3d6a1b:0x269,_0x41dbfe:0x275,_0x1dce22:0x440,_0x15c562:0x424,_0xa237fa:0x407,_0x5ab058:0xe0,_0x57ec3d:0x2b3,_0x4f3357:0x251,_0x3ce19b:0x491,_0x23216a:0x4b7,_0x5403fe:0x609,_0x17b6a4:0x296,_0x24c029:0x299,_0x3f2c09:0x19c,_0x4d1cf2:0x169,_0xdbd2c7:0x449,_0x219d56:0x434,_0x12653e:0x45d,_0xcb57b4:0xb9,_0x592113:0x402,_0x29414a:0x426,_0x48e529:0x381,_0x51fe1f:0x43c,_0x754c5e:0x146,_0x46a1ed:0x529,_0x77b2af:0x50b,_0x511bd6:0x16d,_0x28b830:0x190,_0x15c944:0x153,_0x4bb075:0x48b,_0x15c49c:0x249,_0x4dc168:0x2b5,_0x3c2933:0x18b,_0x4a9047:0x23a,_0x14b982:0x278,_0x4abda0:0x2e4,_0x365c89:0x2aa,_0x4d52a6:0x265,_0xae853e:0x24c,_0x4551f3:0x229,_0x571176:0x282,_0x46179f:0x2e1,_0x31e9bd:0x2f0},_0x383061=async()=>{const _0x1442ca=await this[_0x196e64(-_0x3c7f62._0x3d6a1b,-_0x3c7f62._0x41dbfe,-0x2c1,-0x2df)](_0x4fcaa4,_0x420afd);function _0x196e64(_0x178adf,_0x48e0a,_0x559a59,_0x586892){return _0x3920(_0x178adf- -0x366,_0x559a59);}const _0x167812=_0xfe5b87[_0x5cc810(_0x3c7f62._0x1dce22,_0x3c7f62._0x15c562,_0x3c7f62._0xa237fa,0x4e0)](_0x1442ca[_0x196e64(-0x184,-0x188,-_0x3c7f62._0x5ab058,-0x1e1)]);if(!_0x167812['path'])throw new Error('Surface\x20'+_0xfe5b87['id']+_0x196e64(-_0x3c7f62._0x57ec3d,-0x272,-0x23a,-_0x3c7f62._0x4f3357));function _0x5cc810(_0x431d3b,_0x44efca,_0xa5cdb,_0x3583f1){return _0x3920(_0x44efca-0x38f,_0xa5cdb);}const _0x3ef983=await this[_0x5cc810(_0x3c7f62._0x3ce19b,_0x3c7f62._0x23216a,0x489,0x3fa)]({'request':_0x1442ca[_0x5cc810(_0x3c7f62._0x5403fe,0x571,0x501,0x631)],'body':_0x167812[_0x196e64(-0x265,-0x25f,-0x1aa,-_0x3c7f62._0x17b6a4)],'credential':_0x1442ca[_0x196e64(-0x1ff,-_0x3c7f62._0x24c029,-_0x3c7f62._0x3f2c09,-_0x3c7f62._0x4d1cf2)],'session':_0x1442ca[_0x5cc810(_0x3c7f62._0xdbd2c7,_0x3c7f62._0x219d56,0x4a0,_0x3c7f62._0x12653e)],'stream':_0x310510},{'accept':_0x167812[_0x196e64(-0x171,-0x1de,-0x158,-_0x3c7f62._0xcb57b4)]??(_0x310510?_0x5cc810(_0x3c7f62._0x592113,_0x3c7f62._0x29414a,_0x3c7f62._0x48e529,0x3ac):_0x5cc810(0x4b2,0x4f0,_0x3c7f62._0x51fe1f,0x522)),'includeContentType':_0x167812['body']!==void 0x0});for(const [_0x2ba0d4,_0x19590a]of Object[_0x196e64(-0x196,-0x218,-0x216,-_0x3c7f62._0x754c5e)](_0x167812[_0x5cc810(0x5c6,0x536,0x495,0x508)]??{})){_0x3ef983[_0x5cc810(0x49a,_0x3c7f62._0x46a1ed,_0x3c7f62._0x77b2af,0x531)](_0x2ba0d4,_0x19590a);}return this[_0x196e64(-0x186,-_0x3c7f62._0x511bd6,-_0x3c7f62._0x28b830,-_0x3c7f62._0x15c944)](''+_0x1442ca[_0x5cc810(0x48c,0x4cd,0x414,_0x3c7f62._0x4bb075)]+_0x167812[_0x196e64(-_0x3c7f62._0x15c49c,-_0x3c7f62._0x4dc168,-_0x3c7f62._0x3c2933,-_0x3c7f62._0x4a9047)],{'method':_0x196e64(-0x23b,-_0x3c7f62._0x14b982,-_0x3c7f62._0x4abda0,-_0x3c7f62._0x365c89),'headers':_0x3ef983,..._0x167812[_0x196e64(-_0x3c7f62._0x4d52a6,-_0x3c7f62._0xae853e,-_0x3c7f62._0x4551f3,-_0x3c7f62._0x571176)]!==void 0x0?{'body':JSON[_0x196e64(-_0x3c7f62._0x46179f,-0x338,-_0x3c7f62._0x31e9bd,-0x250)](_0x167812['body'])}:{},'signal':_0x420afd});};function _0x5ccba8(_0x41354c,_0xe73ac9,_0x5821ae,_0xb2a4b6){return _0x2e041c(_0x41354c-_0x4c6cb8._0x3d2a56,_0xe73ac9-0xe5,_0x5821ae- -_0x4c6cb8._0x1db745,_0xe73ac9);}function _0x5bd503(_0x695cd7,_0x219e69,_0x3af37d,_0xb6dc97){return _0x2e041c(_0x695cd7-0x14d,_0x219e69-_0x19c4a5._0x1db073,_0x219e69- -_0x19c4a5._0x551e79,_0x3af37d);}const _0x577fab=await _0x383061();if(_0x577fab['status']!==0x191||!this[_0x5ccba8(-0x1c3,-_0x12024c._0x2b4c09,-_0x12024c._0x15a834,-0x13f)])return _0x577fab;return this[_0x5ccba8(-0x1ff,-0x1de,-0x1c3,-_0x12024c._0x70fc86)][_0x5ccba8(-0x2db,-0x251,-0x24d,-0x2ee)](),_0x383061();}async*[_0x2e041c(-0x182,-0x17d,-0x102,-0x10b)](_0x73355a,_0x1a119b,_0x42604d){const _0x16713e={_0x422ff2:0x4ab,_0x5952d4:0x4ed,_0x2ac979:0x52a,_0x564d6b:0x4c3,_0x278f7d:0x55f,_0x35bb57:0x55f,_0xe1ecbb:0x4fe,_0x1657fc:0x48e,_0x59e458:0x429,_0x26d5fc:0x413,_0x2272b1:0x462,_0x25ce95:0x47c,_0x216ced:0x590,_0x45e9e7:0x422,_0x49dbf8:0x397,_0x164ac4:0x463},_0x39a2f2={_0x3de614:0x158,_0x47a11d:0xea,_0x4605ad:0x4d5},_0x59e3da={_0x138850:0x700},_0x198c9a=await this[_0x7d7a92(0x4da,_0x16713e._0x422ff2,_0x16713e._0x5952d4,_0x16713e._0x2ac979)](_0x73355a,_0x1a119b,!![],_0x42604d);function _0x7d7a92(_0x1634d,_0x56091d,_0x49afe0,_0x410ae9){return _0x55f0a4(_0x1634d-0x3c,_0x56091d-0x148,_0x1634d,_0x49afe0-_0x59e3da._0x138850);}if(!_0x198c9a['ok'])throw await this['toApiError'](_0x198c9a);const _0x4c98bf=_0x1a119b[_0x7d7a92(0x4c3,_0x16713e._0x564d6b,_0x16713e._0x278f7d,_0x16713e._0x35bb57)]?.(_0x73355a);function _0x5772c4(_0x51da16,_0x28b274,_0x4f5452,_0x40130b){return _0x2e041c(_0x51da16-_0x39a2f2._0x3de614,_0x28b274-_0x39a2f2._0x47a11d,_0x40130b-_0x39a2f2._0x4605ad,_0x51da16);}if(!_0x4c98bf?.['consumeSseEvent'])throw new Error(_0x7d7a92(0x523,_0x16713e._0xe1ecbb,0x52d,_0x16713e._0x1657fc)+_0x1a119b['id']+_0x7d7a92(_0x16713e._0x59e458,0x4f7,0x4b0,_0x16713e._0x26d5fc));for await(const _0x2bfb9b of iterateSseEvents(_0x198c9a,_0x42604d)){yield*_0x4c98bf[_0x7d7a92(_0x16713e._0x2272b1,_0x16713e._0x25ce95,0x4f7,_0x16713e._0x216ced)](_0x2bfb9b);}yield{'type':_0x7d7a92(_0x16713e._0x45e9e7,0x4d0,0x452,_0x16713e._0x49dbf8),'response':_0x4c98bf[_0x5772c4(_0x16713e._0x164ac4,0x578,0x48c,0x4da)]()};}async*['streamWebSocketSurface'](_0x51078c,_0x1b60fd,_0x5b1bd6){const _0x4567ad={_0x279ad9:0x3cb,_0x1b393c:0x382,_0x39310c:0x2e5,_0x10f72f:0x3a5,_0x47dab2:0x31a,_0x54fea2:0x467,_0x34fbcc:0x3e0,_0x208cb9:0x499,_0x27301e:0x2b5,_0x145565:0x43d,_0x32f857:0x414,_0x26540b:0x313,_0x3d52f2:0x25c,_0x39cfee:0x27a,_0x3445e1:0x268,_0x5f3c3d:0x317,_0x1eb7f9:0x327,_0x15575e:0x400,_0x4417e5:0x3c3,_0x43d76a:0x47e,_0x1c5352:0x404,_0x1edf4c:0x46b,_0x3d4646:0x479,_0x4f1d73:0x284,_0x44495c:0x341,_0x500146:0x322,_0xa84157:0x326,_0x576a26:0x292,_0x141976:0x34f,_0x11ad93:0x283,_0x247f2e:0x23f,_0x3e99d6:0x320,_0x53c1f0:0x194,_0x1ba9be:0x2b4,_0x29982a:0x368,_0x104c9c:0x329,_0x196dfd:0x311,_0x5dbcb3:0x3d2,_0x4f0823:0x3ec,_0x484fdd:0x44c,_0x2bc93d:0x384,_0x4371d6:0x17f,_0x1b7dc2:0xd6,_0x385297:0xe9,_0x299bff:0x48f,_0xfd15cf:0x475,_0x2da1b1:0x390,_0x1ac552:0x3b9,_0x5c7a3f:0x4eb,_0x29ed15:0x434,_0x289b9d:0x274,_0x928dc3:0x260,_0x5357ef:0x2b3,_0x2908d7:0x230,_0x54239b:0x29c,_0x24b9c6:0x214,_0x1aa4c4:0x244,_0x364db4:0x333,_0xfb2860:0x377,_0xd47026:0x278,_0x1e566e:0x2fb,_0x3f7d01:0x20f,_0x5ad561:0x2b4,_0x4cb5c8:0x4a3,_0x5f57ad:0x49a,_0x4d4646:0x470,_0x2bcb35:0x41e,_0x3b7e89:0x400,_0x4c6a6a:0x3fd,_0x506dbd:0x2ee,_0x2b8c24:0x2d7,_0x57ee25:0x2e3,_0x1e1517:0x2ae,_0x2ed44a:0x20e,_0x27f069:0x216,_0x4e53a8:0x179,_0x37293f:0x261,_0x25fe98:0x3ac,_0x302c9d:0x3a8,_0x249287:0x42f,_0x27ff75:0x39e,_0x8ede11:0x1f1,_0x538743:0x437,_0x3f50f4:0x451,_0xd8d2ef:0x1e0,_0x5c7c1a:0x104,_0x50c23b:0x189},_0x1fa0e0={_0x510eed:0xe3,_0xe04c0b:0x141,_0x556314:0x454},_0x30157d=await this[_0x3aaa74(_0x4567ad._0x279ad9,_0x4567ad._0x1b393c,_0x4567ad._0x39310c,0x3b4)](_0x51078c,_0x5b1bd6);function _0x1e0665(_0x2c3a82,_0x38d1ff,_0x1e3d21,_0x3d8d8a){return _0x2e041c(_0x2c3a82-0x1cf,_0x38d1ff-0x10c,_0x2c3a82-0x2a9,_0x1e3d21);}const _0x26ae41=_0x1b60fd[_0x3aaa74(_0x4567ad._0x10f72f,_0x4567ad._0x47dab2,0x30c,0x37b)](_0x30157d[_0x3aaa74(0x3be,_0x4567ad._0x54fea2,_0x4567ad._0x34fbcc,_0x4567ad._0x208cb9)]),_0x2f9fe4=_0x1b60fd[_0x1e0665(_0x4567ad._0x27301e,0x2d0,0x29a,0x34b)]?.(_0x51078c);if(!_0x2f9fe4?.[_0x3aaa74(_0x4567ad._0x145565,_0x4567ad._0x32f857,0x4cc,0x401)])throw new Error(_0x1e0665(0x283,_0x4567ad._0x26540b,_0x4567ad._0x3d52f2,_0x4567ad._0x39cfee)+_0x1b60fd['id']+_0x1e0665(_0x4567ad._0x3445e1,0x1b4,_0x4567ad._0x5f3c3d,0x2cd));const _0x37d854=_0x26ae41[_0x3aaa74(0x38e,0x3e4,_0x4567ad._0x1eb7f9,_0x4567ad._0x15575e)]??(_0x26ae41['path']?(''+_0x30157d[_0x3aaa74(0x405,_0x4567ad._0x4417e5,0x419,0x36b)]+_0x26ae41['path'])[_0x3aaa74(_0x4567ad._0x43d76a,_0x4567ad._0x1c5352,_0x4567ad._0x1edf4c,_0x4567ad._0x3d4646)](/^http:/,_0x3aaa74(_0x4567ad._0x4f1d73,_0x4567ad._0x44495c,_0x4567ad._0x500146,_0x4567ad._0xa84157))[_0x3aaa74(0x436,0x404,0x3a9,0x476)](/^https:/,_0x3aaa74(_0x4567ad._0x576a26,_0x4567ad._0x141976,0x3b7,0x341)):void 0x0);if(!_0x37d854)throw new Error(_0x1e0665(_0x4567ad._0x11ad93,0x255,_0x4567ad._0x247f2e,_0x4567ad._0x3e99d6)+_0x1b60fd['id']+_0x1e0665(0x1fe,0x14c,_0x4567ad._0x53c1f0,_0x4567ad._0x1ba9be));const _0x21e332=await this[_0x3aaa74(_0x4567ad._0x29982a,0x3ad,0x438,0x3f3)]({'request':_0x30157d[_0x1e0665(0x2bc,_0x4567ad._0x104c9c,0x2fa,_0x4567ad._0x196dfd)],'body':_0x26ae41[_0x3aaa74(0x38d,0x400,0x43d,0x42d)],'credential':_0x30157d[_0x3aaa74(_0x4567ad._0x5dbcb3,_0x4567ad._0x4f0823,_0x4567ad._0x484fdd,_0x4567ad._0x2bc93d)],'session':_0x30157d[_0x1e0665(_0x4567ad._0x4371d6,0x178,_0x4567ad._0x1b7dc2,_0x4567ad._0x385297)],'stream':!![]},{'accept':_0x26ae41[_0x3aaa74(_0x4567ad._0x299bff,0x47a,0x423,0x3dc)]??_0x3aaa74(_0x4567ad._0xfd15cf,0x3e6,0x40c,_0x4567ad._0x2da1b1),'includeContentType':![]});function _0x3aaa74(_0x2b72b5,_0x2dd07d,_0x3ed8a2,_0x928d12){return _0x2e041c(_0x2b72b5-_0x1fa0e0._0x510eed,_0x2dd07d-_0x1fa0e0._0xe04c0b,_0x2dd07d-_0x1fa0e0._0x556314,_0x3ed8a2);}for(const [_0x18e17f,_0x288096]of Object[_0x3aaa74(_0x4567ad._0x1ac552,0x455,0x4da,0x501)](_0x26ae41[_0x3aaa74(0x3a3,0x42c,_0x4567ad._0x5c7a3f,_0x4567ad._0x29ed15)]??{})){_0x21e332[_0x1e0665(_0x4567ad._0x289b9d,_0x4567ad._0x928dc3,0x243,0x297)](_0x18e17f,_0x288096);}_0x21e332[_0x1e0665(_0x4567ad._0x5357ef,_0x4567ad._0x2908d7,_0x4567ad._0x54239b,_0x4567ad._0x24b9c6)](_0x1e0665(0x2cf,_0x4567ad._0x1aa4c4,_0x4567ad._0x364db4,_0x4567ad._0xfb2860));const _0x3c64c0=this[_0x3aaa74(0x31a,0x3b9,0x3e8,0x45b)]({'headers':Object[_0x1e0665(_0x4567ad._0xd47026,_0x4567ad._0x1e566e,_0x4567ad._0x3f7d01,0x289)](_0x21e332[_0x3aaa74(0x4d8,0x455,0x508,0x4e7)]()),'url':_0x37d854});try{throwIfAborted(_0x5b1bd6);_0x3c64c0['readyState']!==WebSocket[_0x1e0665(0x201,0x29f,0x153,_0x4567ad._0x5ad561)]&&await waitForWebSocketOpen(_0x3c64c0,_0x5b1bd6);throwIfAborted(_0x5b1bd6);_0x26ae41[_0x3aaa74(_0x4567ad._0x4cb5c8,_0x4567ad._0x15575e,_0x4567ad._0x5f57ad,_0x4567ad._0x4d4646)]!==void 0x0&&_0x3c64c0['send'](JSON['stringify'](_0x26ae41[_0x3aaa74(_0x4567ad._0x2bcb35,_0x4567ad._0x3b7e89,_0x4567ad._0x4c6a6a,0x36d)]));for await(const _0x5d6dab of iterateWebSocketMessages(_0x3c64c0,_0x5b1bd6)){yield*_0x2f9fe4[_0x1e0665(0x269,_0x4567ad._0x506dbd,0x1dd,_0x4567ad._0x2b8c24)](_0x5d6dab);if(_0x2f9fe4[_0x3aaa74(_0x4567ad._0x57ee25,0x39f,0x40c,0x452)]?.())break;}yield{'type':'done','response':_0x2f9fe4[_0x1e0665(_0x4567ad._0x1e1517,_0x4567ad._0x2ed44a,0x302,0x2f1)]()};}finally{_0x3c64c0[_0x1e0665(_0x4567ad._0x27f069,_0x4567ad._0x4e53a8,_0x4567ad._0x37293f,0x2c0)]===WebSocket[_0x3aaa74(_0x4567ad._0x34fbcc,_0x4567ad._0x25fe98,_0x4567ad._0x302c9d,_0x4567ad._0x249287)]&&_0x3c64c0[_0x3aaa74(_0x4567ad._0x27ff75,0x44b,0x4fd,0x4d4)](0x3e8,_0x5b1bd6?.[_0x1e0665(0x2a6,0x282,_0x4567ad._0x8ede11,0x2a8)]?_0x3aaa74(_0x4567ad._0x538743,_0x4567ad._0x3f50f4,0x489,0x44c):_0x1e0665(0x16e,_0x4567ad._0xd8d2ef,_0x4567ad._0x5c7c1a,_0x4567ad._0x50c23b));}}};function _0x2e041c(_0x3081f4,_0x3ed828,_0x40f213,_0x332589){return _0x3920(_0x40f213- -0x1cf,_0x332589);}async function createHttpError(_0x1f9941){const _0x430500={_0x2c21c0:0x50,_0x4a4f79:0x4ac,_0x456d93:0x44f,_0x29d7eb:0x3da,_0x18488f:0x458,_0x39e73f:0x49e,_0x418f09:0x4b1,_0x50eaa8:0xf0,_0x8045fe:0xcb,_0x4221a7:0x130,_0x543475:0x4e8,_0x148db0:0x5c1,_0x5e7c67:0x29,_0x6f8fad:0xdd,_0x8d9bdf:0xe2},_0x450d2c={_0x63a300:0x17a};function _0x3a7277(_0xc73dcb,_0x40dd27,_0x33e9ac,_0x24b87f){return _0x55f0a4(_0xc73dcb-0x8a,_0x40dd27-0x1a,_0x33e9ac,_0x40dd27-0x728);}const _0x2af4d6=await _0x1f9941[_0x56adff(0x21,-_0x430500._0x2c21c0,0x58,-0x60)](),_0x11ed88=_0x2af4d6[_0x3a7277(_0x430500._0x4a4f79,_0x430500._0x456d93,_0x430500._0x29d7eb,_0x430500._0x18488f)]()||_0x1f9941[_0x3a7277(_0x430500._0x39e73f,0x50e,_0x430500._0x418f09,0x536)]||_0x56adff(_0x430500._0x50eaa8,0x103,_0x430500._0x8045fe,_0x430500._0x4221a7);function _0x56adff(_0x4bb8d3,_0x325e53,_0x22cd3a,_0x7ea793){return _0x2e041c(_0x4bb8d3-0x33,_0x325e53-_0x450d2c._0x63a300,_0x4bb8d3-0xd2,_0x7ea793);}return new Error(_0x3a7277(_0x430500._0x543475,0x54c,_0x430500._0x148db0,0x5f8)+_0x1f9941[_0x56adff(-_0x430500._0x5e7c67,-0x78,-_0x430500._0x6f8fad,-_0x430500._0x8d9bdf)]+':\x20'+_0x11ed88);}var AnthropicProviderAdapter=class{[_0x2e041c(0x1b,-0x13a,-0xa2,-0xf1)];[_0x2e041c(-0x112,-0xeb,-0xcb,-0xc1)];[_0x2e041c(-0x7d,-0xe8,-0xd9,-0xd6)];constructor(_0x278b7d){const _0x8578f2={_0x22e8be:0x251,_0x37c1ed:0x215,_0x5599f1:0x28e,_0x5cb6c6:0x2e8,_0x538ff5:0x338,_0x5d6851:0x223,_0x23916f:0x24e,_0x59a7fc:0x326},_0x13ab8c={_0xff5a30:0x12f},_0x576433={_0x15c00f:0x182,_0x8f3153:0xa2,_0x59f211:0x16};function _0x388435(_0x43e6f3,_0x48acf5,_0x5f4b10,_0x2dfdee){return _0x55f0a4(_0x43e6f3-_0x576433._0x15c00f,_0x48acf5-_0x576433._0x8f3153,_0x48acf5,_0x2dfdee- -_0x576433._0x59f211);}function _0x16e99f(_0x5187fb,_0x3bf927,_0x48c326,_0x41043a){return _0x2e041c(_0x5187fb-0x6,_0x3bf927-0x1,_0x3bf927- -_0x13ab8c._0xff5a30,_0x48c326);}this['authScheme']=_0x278b7d['authScheme'],this[_0x388435(-0x1f6,-_0x8578f2._0x22e8be,-_0x8578f2._0x37c1ed,-_0x8578f2._0x5599f1)]=_0x278b7d[_0x388435(-0x300,-_0x8578f2._0x5cb6c6,-_0x8578f2._0x538ff5,-_0x8578f2._0x5599f1)],this[_0x388435(-_0x8578f2._0x5d6851,-_0x8578f2._0x23916f,-_0x8578f2._0x59a7fc,-0x29c)]=_0x278b7d['protocolVersion'];}[_0x2e041c(-0x91,-0x18f,-0x103,-0x7a)](){const _0x41dbdc={_0x5d26fd:0x1ff,_0x347d70:0x2b1,_0x5da845:0x2f8},_0x315776={_0x1b30ef:0x6d,_0x1fe03d:0x19d};function _0x577d8d(_0x542bf1,_0x54f488,_0x5daaf7,_0x4b730c){return _0x2e041c(_0x542bf1-_0x315776._0x1b30ef,_0x54f488-0x5,_0x5daaf7- -_0x315776._0x1fe03d,_0x4b730c);}return new Error(_0x577d8d(-_0x41dbdc._0x5d26fd,-0x30c,-_0x41dbdc._0x347d70,-_0x41dbdc._0x5da845));}async[_0x2e041c(-0x105,-0xa0,-0xa7,-0x11b)](_0xc7f162,_0x44e8dd){const _0x3a32cc={_0x1dfdbc:0xa5,_0x6b04c2:0x221,_0x491db6:0x3f5,_0x3b09db:0xb4,_0x15cee7:0xc3,_0x424b6e:0x117,_0x47842a:0x346,_0x561589:0x412,_0x28b4cc:0x38c,_0x1ec4cd:0x16f,_0x44a9de:0x1a2,_0x49be57:0x164,_0x3642ac:0x33f,_0xa9ce14:0x3ec,_0x143593:0x325,_0x14beee:0x2f0,_0x554bdf:0x2ed,_0x568c35:0x1ae,_0x485e5f:0x1b3,_0x202411:0x18e,_0x212b8a:0x392,_0x4e6167:0x3e4,_0x21cca3:0x268,_0x1d60fc:0x2e1,_0x4375e5:0x261,_0x5c51fe:0x1fb,_0x5a8d18:0x24c,_0x49ac33:0xf6,_0x59c091:0x197,_0x1b6aa9:0x233,_0x2e2775:0x223,_0x131f54:0x22a,_0x4eebff:0x1fd,_0x3ba864:0x1fa,_0x23fa21:0x1fd,_0x1e4731:0x1d5,_0x283690:0x11c,_0x55ef3b:0x288,_0x4ace40:0x1ab,_0x3c1a20:0x184,_0x490cfe:0x21a,_0x2f4bf7:0x378,_0x43481:0x325},_0x445f80={_0x530668:0xad,_0x199e52:0x19a,_0xa86c4e:0x3ad},_0x511fa8=new Headers();function _0x39c748(_0x3552c5,_0x70bdb4,_0x81cd66,_0xf6bb6d){return _0x55f0a4(_0x3552c5-0x9e,_0x70bdb4-0x70,_0xf6bb6d,_0x81cd66-0x7e);}_0x511fa8[_0x39c748(-_0x3a32cc._0x1dfdbc,-_0x3a32cc._0x6b04c2,-0x164,-0x147)](_0x12ae5f(0x3d3,_0x3a32cc._0x491db6,0x418,0x3a4),_0x44e8dd[_0x39c748(-_0x3a32cc._0x3b09db,-_0x3a32cc._0x15cee7,-0x109,-_0x3a32cc._0x424b6e)]),_0x511fa8[_0x12ae5f(0x378,_0x3a32cc._0x47842a,0x301,_0x3a32cc._0x561589)](_0x12ae5f(_0x3a32cc._0x28b4cc,0x3d3,0x352,0x3c7),this[_0x39c748(-0x196,-_0x3a32cc._0x1ec4cd,-0x208,-_0x3a32cc._0x44a9de)]);_0x44e8dd['includeContentType']!==![]&&_0x511fa8[_0x39c748(-0x1e2,-0x192,-_0x3a32cc._0x49be57,-0xd1)]('content-type',_0x12ae5f(_0x3a32cc._0x3642ac,0x289,0x2a7,_0x3a32cc._0xa9ce14));this['authScheme']===_0x12ae5f(_0x3a32cc._0x143593,0x296,_0x3a32cc._0x14beee,_0x3a32cc._0x554bdf)?_0x511fa8[_0x12ae5f(0x378,0x424,0x381,0x2e6)]('authorization',_0x39c748(-0x23d,-_0x3a32cc._0x568c35,-_0x3a32cc._0x485e5f,-_0x3a32cc._0x202411)+_0xc7f162[_0x12ae5f(0x345,0x379,_0x3a32cc._0x212b8a,_0x3a32cc._0x4e6167)][_0x12ae5f(_0x3a32cc._0x21cca3,_0x3a32cc._0x1d60fc,_0x3a32cc._0x4375e5,_0x3a32cc._0x5c51fe)]):_0x511fa8['set'](_0x39c748(-0x12d,-_0x3a32cc._0x5a8d18,-0x1b8,-_0x3a32cc._0x49ac33),_0xc7f162[_0x39c748(-0x130,-0x108,-_0x3a32cc._0x59c091,-_0x3a32cc._0x1b6aa9)][_0x12ae5f(0x268,0x2e9,_0x3a32cc._0x14beee,_0x3a32cc._0x2e2775)]);const _0xa57a33=await this[_0x39c748(-_0x3a32cc._0x131f54,-_0x3a32cc._0x4eebff,-_0x3a32cc._0x3ba864,-0x252)]?.({'body':_0xc7f162[_0x39c748(-0x170,-0x205,-_0x3a32cc._0x23fa21,-0x22a)],'credential':_0xc7f162[_0x39c748(-0x182,-0x243,-0x197,-0x248)],'request':_0xc7f162[_0x39c748(-0xb1,-_0x3a32cc._0x1e4731,-_0x3a32cc._0x283690,-0x10f)],'session':_0xc7f162[_0x39c748(-_0x3a32cc._0x55ef3b,-0x300,-0x259,-0x2d4)],'stream':_0xc7f162[_0x39c748(-0x222,-_0x3a32cc._0x4ace40,-_0x3a32cc._0x3c1a20,-_0x3a32cc._0x490cfe)]});function _0x12ae5f(_0x19dc09,_0xfafe6a,_0x424117,_0x5da2ee){return _0x2e041c(_0x19dc09-_0x445f80._0x530668,_0xfafe6a-_0x445f80._0x199e52,_0x19dc09-_0x445f80._0xa86c4e,_0xfafe6a);}for(const [_0x2589df,_0x450681]of Object[_0x39c748(-0x162,-0x1bf,-0x12e,-0x1c9)](_0xa57a33??{})){_0x511fa8[_0x12ae5f(_0x3a32cc._0x2f4bf7,0x42e,0x2dc,_0x3a32cc._0x43481)](_0x2589df,_0x450681);}return _0x511fa8;}[_0x2e041c(-0xe5,-0x16f,-0xc4,-0x7f)](_0x12389f){return _0x12389f;}['resolveBaseUrl'](_0x2eaa36,_0x35aacb){return resolveSessionBaseUrl(_0x2eaa36,_0x35aacb);}[_0x55f0a4(-0x33c,-0x2e1,-0x242,-0x2b7)](_0x1b74c3,_0x20a526){return resolveApiCredential(_0x1b74c3,_0x20a526);}async['toApiError'](_0x36c0c4){return await createHttpError(_0x36c0c4);}},AnthropicModel=class extends RoutedModel{constructor(_0x393ea6={}){const _0x1e92e7={_0x34d9c3:0x59,_0x4926d5:0x101,_0x5b7a34:0x5f,_0x3b8715:0x25,_0x51144b:0x5d,_0x370d1d:0x100,_0xa4d14e:0x1b8,_0x18f2bb:0xbe,_0x29986a:0x1d6,_0x87b24d:0x162,_0x5ad78f:0x52,_0x4eeb70:0x24,_0x1bf89d:0x7d,_0x4e2a90:0x13e,_0x3c4f0e:0x12f,_0x3210a8:0x4e,_0x21958b:0x47,_0x17df4c:0x1b,_0x32c39e:0x1b,_0x2ac197:0x52},_0x592a52={_0x122292:0xdd,_0x48ce56:0x29d},_0x101bcf={_0x5c4e13:0x18f,_0x5ac79b:0x193};function _0x4f3f7d(_0x3a5ad3,_0x18d6da,_0x3edb7e,_0x4c21c4){return _0x55f0a4(_0x3a5ad3-0x40,_0x18d6da-_0x101bcf._0x5c4e13,_0x18d6da,_0x3edb7e-_0x101bcf._0x5ac79b);}function _0x21137b(_0xa0b903,_0x13b4b7,_0x23a7c2,_0x23d55e){return _0x55f0a4(_0xa0b903-_0x592a52._0x122292,_0x13b4b7-0x33,_0x23d55e,_0xa0b903-_0x592a52._0x48ce56);}super({'apiKey':_0x393ea6[_0x21137b(0x4b,0xd0,-_0x1e92e7._0x34d9c3,_0x1e92e7._0x4926d5)],'baseUrl':trimTrailingSlashes(_0x393ea6[_0x21137b(_0x1e92e7._0x5b7a34,-0x26,-_0x1e92e7._0x3b8715,_0x1e92e7._0x51144b)]??_0x4f3f7d(-_0x1e92e7._0x370d1d,-_0x1e92e7._0xa4d14e,-0x123,-_0x1e92e7._0x18f2bb)),'fetch':_0x393ea6[_0x4f3f7d(-0xed,-_0x1e92e7._0x29986a,-0x157,-_0x1e92e7._0x87b24d)],'maxTokens':_0x393ea6[_0x21137b(-0x2d,-0x2d,0x40,_0x1e92e7._0x5ad78f)]??0x4000,'model':_0x393ea6[_0x21137b(-0xf,_0x1e92e7._0x4eeb70,-_0x1e92e7._0x1bf89d,-0xa2)]??_0x21137b(0xf3,_0x1e92e7._0x4e2a90,_0x1e92e7._0x3c4f0e,0x12f),'reasoning':_0x393ea6['reasoning'],'providerAdapter':new AnthropicProviderAdapter({'authScheme':_0x393ea6[_0x21137b(_0x1e92e7._0x3210a8,0x63,_0x1e92e7._0x21958b,_0x1e92e7._0x17df4c)]??'x-api-key','headerResolver':_0x393ea6['headerResolver'],'protocolVersion':_0x393ea6['protocolVersion']??'2023-06-01'}),'providerSessionResolver':_0x393ea6[_0x21137b(_0x1e92e7._0x32c39e,0x6c,_0x1e92e7._0x2ac197,-0x3e)],'requestMutators':_0x393ea6[_0x4f3f7d(-0x43,-0xf4,-0x45,0x3c)],'router':new StaticModelSurfaceRouter({'complete':ANTHROPIC_MESSAGES_SURFACE,'stream':ANTHROPIC_MESSAGES_STREAM_SURFACE}),'surfaces':createAnthropicSurfaces()});}[_0x55f0a4(-0x25b,-0x207,-0x2ee,-0x26a)](_0x116dd7,_0x58ce35){const _0x3d4316={_0x22130f:0x3b9,_0x22baa8:0x3d9},_0x354aa8={_0x3f13f1:0x126,_0x273fd6:0x355};function _0x580acd(_0x2a8a8b,_0x1ecffd,_0x19b01c,_0x3b0cb8){return _0x2e041c(_0x2a8a8b-0x1c8,_0x1ecffd-_0x354aa8._0x3f13f1,_0x2a8a8b-_0x354aa8._0x273fd6,_0x3b0cb8);}return this[_0x580acd(0x31a,0x38f,_0x3d4316._0x22130f,_0x3d4316._0x22baa8)](_0x116dd7,ANTHROPIC_MESSAGES_SURFACE,_0x58ce35);}['stream'](_0x3afc69,_0x6aa703){const _0x2a82e8={_0xb38a80:0x1ad},_0x401c9d={_0x3ebbe8:0x15e};function _0x1f78cc(_0x4ad73e,_0xb1d3a5,_0x2000dd,_0x58e61c){return _0x2e041c(_0x4ad73e-0x153,_0xb1d3a5-0x70,_0x4ad73e- -_0x401c9d._0x3ebbe8,_0x58e61c);}return this[_0x1f78cc(-0x227,-0x1a0,-0x1c6,-_0x2a82e8._0xb38a80)](_0x3afc69,ANTHROPIC_MESSAGES_STREAM_SURFACE,_0x6aa703);}},OPENAI_CHAT_COMPLETIONS_SURFACE=_0x2e041c(0x8,0x70,-0xd,0x50),OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE=_0x55f0a4(-0x20f,-0x257,-0x2d6,-0x279),OPENAI_RESPONSES_SURFACE='openai-responses',OPENAI_RESPONSES_STREAM_SURFACE=_0x2e041c(0x49,-0x5c,0x24,0xb8),OPENAI_RESPONSES_WEBSOCKET_SURFACE=_0x2e041c(-0xef,-0xf2,-0x129,-0x74),OpenAiApiError=class extends Error{[_0x55f0a4(-0x34e,-0x233,-0x299,-0x2a8)];['body'];constructor(_0x734067,_0x6a59fe,_0x22aef0){const _0x5059ad={_0x568172:0x1e0,_0x12414b:0x208,_0x32cfaf:0x2b2,_0x208e8a:0x1d6,_0x50dcb2:0x247,_0x10b5b9:0x1cc},_0x331e27={_0x45fffa:0xfc};super(_0x22aef0),this['name']='OpenAiApiError',this[_0x291bf5(-_0x5059ad._0x568172,-_0x5059ad._0x12414b,-0x1f9,-_0x5059ad._0x32cfaf)]=_0x734067;function _0xae14bc(_0x348854,_0x523c80,_0x1a8656,_0x337a45){return _0x55f0a4(_0x348854-0x3c,_0x523c80-0x141,_0x337a45,_0x1a8656-0x26f);}function _0x291bf5(_0x31082c,_0x1428a7,_0x1304f7,_0x557114){return _0x2e041c(_0x31082c-_0x331e27._0x45fffa,_0x1428a7-0x50,_0x1304f7- -0xfe,_0x557114);}this[_0x291bf5(-_0x5059ad._0x208e8a,-_0x5059ad._0x50dcb2,-_0x5059ad._0x10b5b9,-0x22d)]=_0x6a59fe;}},OpenAiResponsesStreamError=class extends Error{['code'];[_0x2e041c(-0x8e,-0x106,-0xfb,-0x1b5)];constructor(_0x3ba4e7,_0x1b076f={}){const _0x23227b={_0x4abae8:0x13,_0x3f8cf5:0x48,_0x287faf:0x89,_0x5ca8fc:0x134,_0x2f2eb7:0x1e1,_0x5d7e8e:0x1a9,_0x26999d:0x10c,_0x5dbf7b:0x1a3,_0x3749fb:0x8f,_0x5e94a1:0x19f,_0x3aa964:0x12b,_0x120bfe:0xed,_0x301ad9:0x4bc,_0x443f10:0x49f,_0x3d6c82:0x489,_0xc2969c:0x506},_0x4b117a={_0x429ca8:0x9a},_0x245b00={_0x166c7c:0x178,_0x5bca4d:0x1b4};function _0x9d4375(_0x152a66,_0x13d2b0,_0x26dc20,_0xf49904){return _0x55f0a4(_0x152a66-_0x245b00._0x166c7c,_0x13d2b0-_0x245b00._0x5bca4d,_0x152a66,_0x13d2b0-0x731);}super(_0x3ba4e7),this[_0x5cfadb(-_0x23227b._0x4abae8,0x91,_0x23227b._0x3f8cf5,-_0x23227b._0x287faf)]=_0x5cfadb(-_0x23227b._0x5ca8fc,-_0x23227b._0x2f2eb7,-_0x23227b._0x5d7e8e,-_0x23227b._0x26999d);function _0x5cfadb(_0x25e1f2,_0x3a1601,_0x33f680,_0x19b4cb){return _0x55f0a4(_0x25e1f2-0xe7,_0x3a1601-_0x4b117a._0x429ca8,_0x19b4cb,_0x25e1f2-0x17f);}this[_0x5cfadb(-0x127,-_0x23227b._0x5dbf7b,-_0x23227b._0x3749fb,-_0x23227b._0x5e94a1)]=_0x1b076f[_0x5cfadb(-0x127,-0x156,-_0x23227b._0x3aa964,-_0x23227b._0x120bfe)],this[_0x9d4375(0x452,0x489,_0x23227b._0x301ad9,0x4b9)]=_0x1b076f[_0x9d4375(_0x23227b._0x443f10,_0x23227b._0x3d6c82,_0x23227b._0xc2969c,0x51a)];}};function stringifySystem(_0x45a999){const _0x12e907={_0x108e99:0x2e7,_0x43a80d:0x22b,_0x7d982b:0x31b,_0x4bd866:0x309,_0x219ed0:0x24e},_0x45e29f={_0x49f3a2:0x107},_0x3fc9d4={_0x3670f6:0x175,_0x64aeaa:0x1c1,_0x4cffc1:0x6b5};function _0x292e31(_0x40562b,_0xf9af6d,_0x5bffc4,_0x2ac1e3){return _0x55f0a4(_0x40562b-_0x3fc9d4._0x3670f6,_0xf9af6d-_0x3fc9d4._0x64aeaa,_0x2ac1e3,_0xf9af6d-_0x3fc9d4._0x4cffc1);}function _0x2843f7(_0xba0602,_0x22acc2,_0x45918c,_0x639f1c){return _0x2e041c(_0xba0602-0xf4,_0x22acc2-_0x45e29f._0x49f3a2,_0x22acc2-0x30d,_0x45918c);}return _0x45a999[_0x2843f7(_0x12e907._0x108e99,0x279,0x20b,_0x12e907._0x43a80d)](_0x5a9748=>_0x5a9748['text'])[_0x2843f7(_0x12e907._0x7d982b,0x26f,_0x12e907._0x4bd866,_0x12e907._0x219ed0)]('\x0a\x0a');}function createToolDefinitions(_0xc78a41){const _0x22218e={_0x3b1ab0:0x570,_0x23719a:0x515},_0xd8256a={_0x235d7c:0xde,_0x135e57:0x205,_0x7df886:0x36b,_0x42246e:0x380,_0x26ef85:0x2f1,_0x5c67bf:0x1fe},_0x353db6={_0xbe8874:0x42,_0x45e9ef:0x14f};if(_0xc78a41['length']===0x0)return void 0x0;function _0x21e05b(_0x57def2,_0x1ac32c,_0x42ccc2,_0x63f894){return _0x55f0a4(_0x57def2-_0x353db6._0xbe8874,_0x1ac32c-_0x353db6._0x45e9ef,_0x63f894,_0x42ccc2-0x756);}return _0xc78a41[_0x21e05b(_0x22218e._0x3b1ab0,0x550,_0x22218e._0x23719a,0x4f1)](_0x3c938c=>{const _0x23c499={_0x53b945:0x113,_0x32334c:0x6,_0x31719f:0x2a6},_0x27a443={_0x5ba666:0x75a};function _0x188205(_0x54ec95,_0x4bbb7c,_0xbb5344,_0x5be477){return _0x21e05b(_0x54ec95-0x9d,_0x4bbb7c-0x1ab,_0x5be477- -_0x27a443._0x5ba666,_0xbb5344);}function _0x38dbbc(_0x5cc0f0,_0x20b759,_0x6508c7,_0x58f22d){return _0x21e05b(_0x5cc0f0-_0x23c499._0x53b945,_0x20b759-_0x23c499._0x32334c,_0x5cc0f0- -_0x23c499._0x31719f,_0x20b759);}return{'type':'function','function':{'name':_0x3c938c[_0x188205(-_0xd8256a._0x235d7c,-0x13d,-_0xd8256a._0x135e57,-0x196)],'description':_0x3c938c[_0x188205(-_0xd8256a._0x7df886,-_0xd8256a._0x42246e,-0x399,-_0xd8256a._0x26ef85)],'parameters':_0x3c938c[_0x188205(-_0xd8256a._0x5c67bf,-0x163,-0x1b3,-0x1cb)]}};});}function stringifyValue(_0x2c3289){const _0x475ac2={_0x569c3c:0x1b2,_0x5ab6ff:0x189,_0x2382cd:0x127,_0x3a218d:0x283,_0x1bbb9b:0x317},_0x177cf9={_0x17e5fa:0x2d2},_0x4da420={_0x1d50a6:0x60,_0x94411e:0x170};function _0x146184(_0x3aa353,_0x1e4e8d,_0xe0ec6a,_0x1f8a03){return _0x2e041c(_0x3aa353-_0x4da420._0x1d50a6,_0x1e4e8d-_0x4da420._0x94411e,_0xe0ec6a-0x3ab,_0x1e4e8d);}function _0x44ac53(_0x28e71f,_0x2df090,_0x1b9fdf,_0x29ae08){return _0x55f0a4(_0x28e71f-0x5c,_0x2df090-0x122,_0x28e71f,_0x1b9fdf-_0x177cf9._0x17e5fa);}return typeof _0x2c3289===_0x44ac53(_0x475ac2._0x569c3c,_0x475ac2._0x5ab6ff,0x113,_0x475ac2._0x2382cd)?_0x2c3289:JSON[_0x146184(0x254,_0x475ac2._0x3a218d,0x261,_0x475ac2._0x1bbb9b)](_0x2c3289);}function parseToolInput2(_0x4e72df){const _0x18b430={_0x562b36:0xd2,_0x2e799e:0x110};function _0x27beec(_0x47a1b1,_0xd9e6ab,_0x3ebec3,_0xc56118){return _0x55f0a4(_0x47a1b1-0xb1,_0xd9e6ab-0xa,_0xc56118,_0xd9e6ab-0x147);}try{return JSON[_0x27beec(-0xe9,-_0x18b430._0x562b36,-_0x18b430._0x2e799e,-0xda)](_0x4e72df);}catch{return _0x4e72df;}}function isResponsesReasoningItem(_0x34ccbd){const _0x26cb32={_0x5158d8:0x3fc,_0x49fb50:0x35c,_0x4821af:0x3b6,_0x390c7b:0x376,_0x2c335f:0x2c5},_0x3dd144={_0x2a69e0:0x1ec,_0x46243c:0xd4,_0x318bc5:0x5f0},_0x182f45={_0x4bfb27:0x6a6};function _0x593176(_0x501ce0,_0x2ddacf,_0x885ff8,_0xe8da8c){return _0x55f0a4(_0x501ce0-0x1f3,_0x2ddacf-0xb6,_0x885ff8,_0xe8da8c-_0x182f45._0x4bfb27);}function _0x21772d(_0x2c35d8,_0x59ab00,_0xd7c9b8,_0x4f98a8){return _0x55f0a4(_0x2c35d8-_0x3dd144._0x2a69e0,_0x59ab00-_0x3dd144._0x46243c,_0x59ab00,_0x2c35d8-_0x3dd144._0x318bc5);}return typeof _0x34ccbd===_0x593176(0x364,_0x26cb32._0x5158d8,_0x26cb32._0x49fb50,0x3ea)&&_0x34ccbd!==null&&_0x21772d(0x376,0x41f,_0x26cb32._0x4821af,0x3be)in _0x34ccbd&&_0x34ccbd[_0x21772d(_0x26cb32._0x390c7b,0x400,_0x26cb32._0x2c335f,0x2c0)]==='reasoning';}function isResponsesMessageItem(_0x39a874){const _0x12e1c1={_0x33725b:0x85,_0x15773c:0x13,_0x486f23:0x305,_0xc264f6:0x2f9,_0x417497:0x295},_0x4581aa={_0x4407d8:0x1f4},_0xe1d301={_0xcb116b:0x15,_0x26b899:0x4f2};function _0xfa1127(_0x11b724,_0x38b509,_0x26da05,_0x10ceb0){return _0x55f0a4(_0x11b724-_0xe1d301._0xcb116b,_0x38b509-0x131,_0x38b509,_0x10ceb0-_0xe1d301._0x26b899);}function _0x211b0b(_0x5a6293,_0x738b42,_0x3dba5b,_0x2a70d1){return _0x2e041c(_0x5a6293-_0x4581aa._0x4407d8,_0x738b42-0xdf,_0x5a6293-0x194,_0x738b42);}return typeof _0x39a874===_0x211b0b(_0x12e1c1._0x33725b,0x11c,0x44,-_0x12e1c1._0x15773c)&&_0x39a874!==null&&_0xfa1127(0x1fe,_0x12e1c1._0x486f23,0x1bf,0x278)in _0x39a874&&_0x39a874[_0xfa1127(_0x12e1c1._0xc264f6,0x2b4,_0x12e1c1._0x417497,0x278)]===_0xfa1127(0x285,0x1fe,0x208,0x29f);}function isResponsesFunctionCallItem(_0x761fc0){const _0x44d763={_0x158208:0x3af,_0x46fd29:0x3fa,_0xf5f965:0x3a9,_0x3f66b6:0x39e,_0x593497:0x332,_0x59814a:0x37d,_0x5b0e6d:0x38d,_0x41e1e9:0x413},_0x1deab7={_0x414c16:0x74,_0x2948a3:0x1e3},_0x387961={_0x4c4d1a:0x4c,_0x559759:0x44a};function _0x17f30e(_0x2be5f3,_0x440683,_0x3bf3dd,_0x53d3bb){return _0x2e041c(_0x2be5f3-_0x387961._0x4c4d1a,_0x440683-0xd7,_0x53d3bb-_0x387961._0x559759,_0x2be5f3);}function _0x1357a2(_0x2cbc71,_0xbcd4e9,_0x167d1f,_0x5655ab){return _0x2e041c(_0x2cbc71-_0x1deab7._0x414c16,_0xbcd4e9-_0x1deab7._0x2948a3,_0x5655ab-0x114,_0x2cbc71);}return typeof _0x761fc0==='object'&&_0x761fc0!==null&&_0x17f30e(0x355,_0x44d763._0x158208,_0x44d763._0x46fd29,0x37d)in _0x761fc0&&_0x761fc0[_0x17f30e(_0x44d763._0xf5f965,_0x44d763._0x3f66b6,_0x44d763._0x593497,_0x44d763._0x59814a)]===_0x17f30e(0x392,_0x44d763._0x5b0e6d,0x35f,_0x44d763._0x41e1e9);}function createContentBlocks(_0x3751e6,_0x1b93af){const _0x52c3ce={_0x5b1f39:0x25b,_0x16bce6:0x1b2,_0x4230e8:0x5c,_0x2690e2:0x20d,_0x34b647:0x1d5,_0x2c3b22:0x120,_0xef25b6:0x1b8,_0x46cdb2:0x1e7,_0x340837:0xa4,_0x161fb8:0x25b,_0x490272:0xca,_0x3ddf13:0x10d,_0x5d56d3:0x311,_0x486ff8:0x2ef,_0xb66b65:0x339,_0x199d1c:0x36f,_0x552432:0x181},_0x17756c={_0x2be744:0x166,_0x172cc6:0x65},_0x540a5d={_0x20a228:0x51};function _0x4d497a(_0x5e9112,_0x56f39f,_0x59b1e0,_0x4a41ab){return _0x55f0a4(_0x5e9112-0x130,_0x56f39f-_0x540a5d._0x20a228,_0x59b1e0,_0x56f39f-0x46b);}function _0x39af8b(_0x297cca,_0x43e896,_0x26ecbb,_0x1ba5e3){return _0x2e041c(_0x297cca-_0x17756c._0x2be744,_0x43e896-_0x17756c._0x172cc6,_0x297cca-0x1d0,_0x43e896);}const _0x23972a=[];_0x3751e6[_0x4d497a(0x303,_0x52c3ce._0x5b1f39,0x1ea,_0x52c3ce._0x16bce6)]>0x0&&_0x23972a[_0x39af8b(0x97,_0x52c3ce._0x4230e8,0x137,0xd3)]({'type':_0x4d497a(0x251,_0x52c3ce._0x2690e2,0x15c,0x168),'text':_0x3751e6});for(const _0x9d548b of _0x1b93af){if(_0x9d548b['id'][_0x4d497a(_0x52c3ce._0x34b647,0x192,0x234,0x1d9)]()[_0x39af8b(0x16d,_0x52c3ce._0x2c3b22,_0x52c3ce._0xef25b6,_0x52c3ce._0x46cdb2)]===0x0||_0x9d548b['function']['name'][_0x39af8b(_0x52c3ce._0x340837,0xdf,0x6a,0x1)]()[_0x4d497a(0x1a8,_0x52c3ce._0x161fb8,0x2cf,0x1fe)]===0x0)continue;_0x23972a[_0x4d497a(0xd4,0x185,_0x52c3ce._0x490272,_0x52c3ce._0x3ddf13)]({'type':'tool_use','id':_0x9d548b['id'],'name':_0x9d548b[_0x4d497a(_0x52c3ce._0x5d56d3,_0x52c3ce._0x486ff8,_0x52c3ce._0xb66b65,_0x52c3ce._0x199d1c)][_0x39af8b(0x1eb,0x15f,_0x52c3ce._0x552432,0x1b2)],'input':parseToolInput2(_0x9d548b['function']['arguments'])});}return _0x23972a;}function createUsage(_0x644f05){const _0x526261={_0x50e1ad:0x30e,_0x11e9a9:0x350,_0x411013:0x436,_0x54d5c2:0x27f,_0xa43fbf:0x203,_0x33dca0:0x401,_0x5b9c5d:0x39f,_0x1a896c:0x446},_0x32c359={_0x27421d:0x1ce,_0x1b355e:0x160},_0x4fc089={_0x2c041d:0x16,_0x886f7d:0x89,_0xe6e1ea:0x5b7};function _0x47ec8f(_0x479f47,_0x5372dd,_0x54e9e4,_0x2e16d4){return _0x55f0a4(_0x479f47-_0x4fc089._0x2c041d,_0x5372dd-_0x4fc089._0x886f7d,_0x54e9e4,_0x5372dd-_0x4fc089._0xe6e1ea);}function _0x1b64b4(_0x5e7b9a,_0x3ae4be,_0x5bfca1,_0x381a3d){return _0x2e041c(_0x5e7b9a-_0x32c359._0x27421d,_0x3ae4be-0x15,_0x5bfca1- -_0x32c359._0x1b355e,_0x5e7b9a);}return{'inputTokens':_0x644f05?.[_0x47ec8f(_0x526261._0x50e1ad,0x3af,_0x526261._0x11e9a9,_0x526261._0x411013)]??0x0,'outputTokens':_0x644f05?.[_0x1b64b4(-0x285,-_0x526261._0x54d5c2,-0x297,-_0x526261._0xa43fbf)]??0x0,..._0x644f05?.['completion_tokens_details']?.[_0x47ec8f(0x3ba,0x384,_0x526261._0x33dca0,0x365)]!==void 0x0?{'reasoningTokens':_0x644f05['completion_tokens_details'][_0x47ec8f(0x2fd,0x384,_0x526261._0x5b9c5d,_0x526261._0x1a896c)]}:{}};}function resolveReasoningVisibility2(_0xbc1720){const _0x45995f={_0x2b0ca2:0x2a1,_0x3818e9:0x27e,_0xdd32e8:0x28f,_0x1ea63e:0x143,_0x5b7908:0x122},_0x3bee31={_0x7e92a8:0xf7,_0x2d5463:0x14a},_0x5c7257={_0x28b4ee:0xf,_0x19fd13:0x13a};function _0x972138(_0x4d76da,_0x1a1372,_0x2aa4ed,_0x268a18){return _0x2e041c(_0x4d76da-0x5e,_0x1a1372-_0x5c7257._0x28b4ee,_0x1a1372- -_0x5c7257._0x19fd13,_0x268a18);}function _0x4adf9d(_0x4224e0,_0x59ddbc,_0x277c18,_0x12cd5e){return _0x55f0a4(_0x4224e0-_0x3bee31._0x7e92a8,_0x59ddbc-_0x3bee31._0x2d5463,_0x59ddbc,_0x12cd5e-0x1fe);}return _0xbc1720[_0x4adf9d(-0x14,0x49,0x8c,0x72)]?.[_0x972138(-_0x45995f._0x2b0ca2,-0x211,-_0x45995f._0x3818e9,-_0x45995f._0xdd32e8)]??_0x972138(-_0x45995f._0x1ea63e,-_0x45995f._0x5b7908,-0x148,-0x1ce);}function isUserVisibleReasoning(_0x1c6b00){const _0x32c8d1={_0x3fb230:0x209,_0x294411:0x2ad,_0x2898f6:0x237,_0x10c218:0x29d},_0x1b65f4={_0x94f38a:0x357},_0x4d1c10={_0x2a0c3b:0x1d4,_0x274992:0x28c};function _0x3cc447(_0x3e0b0f,_0xf7b1a2,_0x4a1360,_0x400b49){return _0x2e041c(_0x3e0b0f-0x1e9,_0xf7b1a2-_0x4d1c10._0x2a0c3b,_0x4a1360-_0x4d1c10._0x274992,_0x3e0b0f);}function _0x2329c7(_0x5f22f1,_0x1d9c72,_0x2265d1,_0x4814a9){return _0x2e041c(_0x5f22f1-0x94,_0x1d9c72-0x60,_0x1d9c72-_0x1b65f4._0x94f38a,_0x5f22f1);}return resolveOpenAiReasoningConfig(_0x1c6b00[_0x3cc447(_0x32c8d1._0x3fb230,0x2ee,_0x32c8d1._0x294411,0x354)])!==void 0x0&&resolveReasoningVisibility2(_0x1c6b00)===_0x3cc447(0x346,_0x32c8d1._0x2898f6,0x2a4,_0x32c8d1._0x10c218);}function createChatRequestBody(_0x3488d8,_0x2c8990){const _0x386945={_0x8a2fac:0x2c4,_0x4a1cd5:0x223,_0x25f3ce:0x49b,_0x22234a:0x45c,_0x1387d3:0x298,_0x579235:0x26d,_0x4b9fb6:0x30a,_0x54bd29:0x19e,_0x176b76:0x23e,_0x1613ee:0x3f9,_0xb727df:0x3ff,_0x35baed:0x272,_0x5e947b:0x287,_0x286884:0x19c,_0x1b756a:0x27f,_0x2e650d:0x4c3,_0x4a39d3:0x40f,_0x56c879:0x579,_0x58ebe8:0x524,_0x142539:0x563,_0x11c952:0x4b7,_0x1ba8d5:0x5e9,_0x33cbdc:0x515,_0x6ea36e:0x387,_0x4edc3a:0x3a0,_0x32bac4:0x459,_0x147e4a:0x355,_0x24c126:0x385,_0x17c895:0x19b,_0x2c5bbc:0x260,_0x3b7691:0x23e,_0x59d86b:0x2af,_0x2d3c5f:0x2b7,_0x52f80e:0x2a5,_0x3bf8d7:0x1f9,_0x42fce1:0x25d,_0x23faf3:0x340,_0x100e2c:0x317,_0x2935b9:0x360,_0x4dffd2:0x534,_0x23c7ae:0x4af},_0x156b89={_0x35dc14:0x19f},_0x22a3bb={_0x1e6883:0x106},_0x232df4={_0x2e3087:0x1cb,_0x4c6540:0x1dc,_0x43605c:0x25f,_0x2db651:0x26b,_0x4e6e2b:0x265,_0x1cdbfa:0x235,_0x503029:0x2d8,_0x48db20:0xc8,_0x184c7a:0x19e,_0x154808:0x2e1,_0x29ba37:0x26e,_0x4d7183:0x211,_0x260efb:0x18b,_0x3246e5:0x24c,_0x2f8802:0x351,_0x1d07eb:0x2a2,_0x534978:0x236,_0x1b974c:0x2ed,_0x216181:0x231,_0x48c2fd:0x24c,_0x5db4b4:0x1cf,_0x14b43e:0x244,_0x3f804a:0x1e6,_0x2cc5ab:0x233,_0x593a8e:0x27f,_0x1b50d1:0x229,_0x1efa5e:0x28f,_0x37cf3a:0x1de,_0x5a72ad:0x194,_0x4308df:0x306,_0x5304b9:0x278},_0x37f260={_0x57a812:0x299},_0x582441=[],_0x47ba87=stringifySystem(_0x3488d8['system']);_0x47ba87['length']>0x0&&_0x582441[_0x324054(_0x386945._0x8a2fac,0x192,_0x386945._0x4a1cd5,0x2b1)]({'role':_0x3ccec8(_0x386945._0x25f3ce,0x44c,_0x386945._0x22234a,0x4fc),'content':_0x47ba87});for(const _0x3fbe04 of _0x3488d8[_0x324054(_0x386945._0x1387d3,_0x386945._0x579235,0x2a3,_0x386945._0x4b9fb6)]){const _0x3933d3=[],_0x309cc3=[],_0x443ba0=()=>{const _0x193d6a={_0x367c72:0xb};if(_0x3fbe04[_0x8b74c9(_0x232df4._0x2e3087,0x26d,_0x232df4._0x4c6540,_0x232df4._0x43605c)]===_0x6ea9a7(_0x232df4._0x2db651,_0x232df4._0x4e6e2b,_0x232df4._0x1cdbfa,_0x232df4._0x503029)){if(_0x3933d3['length']===0x0&&_0x309cc3['length']===0x0)return;_0x582441[_0x6ea9a7(0x176,_0x232df4._0x48db20,0x16f,_0x232df4._0x184c7a)]({'role':'assistant','content':_0x3933d3[_0x8b74c9(0x260,_0x232df4._0x154808,_0x232df4._0x29ba37,0x278)]>0x0?_0x3933d3[_0x6ea9a7(_0x232df4._0x4d7183,0x1d5,0x2c9,_0x232df4._0x260efb)]('\x0a\x0a'):null,..._0x309cc3[_0x6ea9a7(_0x232df4._0x3246e5,0x22a,0x21b,0x2fa)]>0x0?{'tool_calls':_0x309cc3[_0x8b74c9(_0x232df4._0x2f8802,0x221,0x338,_0x232df4._0x1d07eb)](0x0)}:{}}),_0x3933d3[_0x6ea9a7(_0x232df4._0x3246e5,_0x232df4._0x534978,_0x232df4._0x1b974c,_0x232df4._0x216181)]=0x0;return;}if(_0x3933d3[_0x6ea9a7(_0x232df4._0x48c2fd,_0x232df4._0x5db4b4,0x215,0x265)]===0x0)return;function _0x8b74c9(_0x503c52,_0x1c1f1f,_0x3c83c1,_0x2da079){return _0x3ccec8(_0x3c83c1,_0x2da079- -0x26d,_0x3c83c1-_0x193d6a._0x367c72,_0x2da079-0x27);}function _0x6ea9a7(_0x3a58b7,_0x358f1c,_0x1888dd,_0x48fbe2){return _0x3ccec8(_0x48fbe2,_0x3a58b7- -_0x37f260._0x57a812,_0x1888dd-0x186,_0x48fbe2-0x2);}_0x582441[_0x8b74c9(_0x232df4._0x14b43e,_0x232df4._0x4d7183,_0x232df4._0x3f804a,0x1a2)]({'role':_0x3fbe04[_0x6ea9a7(_0x232df4._0x2cc5ab,0x21b,_0x232df4._0x593a8e,_0x232df4._0x1b50d1)],'content':_0x3933d3[_0x6ea9a7(0x211,_0x232df4._0x1efa5e,_0x232df4._0x37cf3a,_0x232df4._0x5a72ad)]('\x0a\x0a')}),_0x3933d3[_0x8b74c9(0x234,0x1c4,_0x232df4._0x4308df,_0x232df4._0x5304b9)]=0x0;};for(const _0x5ae62b of normalizeContent(_0x3fbe04[_0x324054(_0x386945._0x54bd29,0x196,_0x386945._0x176b76,0x2f5)])){if(_0x5ae62b[_0x3ccec8(0x4b0,0x47b,_0x386945._0x1613ee,0x3da)]==='text'){_0x3933d3[_0x3ccec8(0x4af,0x40f,_0x386945._0xb727df,0x48a)](_0x5ae62b[_0x3ccec8(0x4b3,0x497,0x3ed,0x51a)]);continue;}if(_0x5ae62b[_0x324054(_0x386945._0x35baed,_0x386945._0x5e947b,0x28f,0x211)]===_0x324054(0x1a9,_0x386945._0x286884,0x226,_0x386945._0x1b756a)){_0x309cc3[_0x3ccec8(_0x386945._0x2e650d,_0x386945._0x4a39d3,0x3ad,0x4a4)]({'id':_0x5ae62b['id'],'type':_0x3ccec8(0x5fa,_0x386945._0x56c879,0x596,0x610),'function':{'name':_0x5ae62b[_0x3ccec8(_0x386945._0x58ebe8,_0x386945._0x142539,_0x386945._0x11c952,_0x386945._0x1ba8d5)],'arguments':JSON['stringify'](_0x5ae62b['input']??{})}});continue;}if(_0x5ae62b[_0x3ccec8(0x42f,0x47b,_0x386945._0x33cbdc,0x4ea)]!==_0x324054(0x33b,0x339,_0x386945._0x6ea36e,_0x386945._0x4edc3a))continue;_0x443ba0(),_0x582441[_0x3ccec8(_0x386945._0x32bac4,0x40f,0x416,0x45e)]({'role':_0x324054(_0x386945._0x147e4a,0x3c3,_0x386945._0x24c126,0x423),'content':stringifyValue(_0x5ae62b[_0x324054(_0x386945._0x17c895,_0x386945._0x2c5bbc,_0x386945._0x3b7691,_0x386945._0x59d86b)]),'tool_call_id':_0x5ae62b[_0x324054(_0x386945._0x2d3c5f,0x230,_0x386945._0x52f80e,0x343)]});}_0x443ba0();}function _0x3ccec8(_0x158005,_0x11b5be,_0x2e092f,_0x18ddf2){return _0x55f0a4(_0x158005-0x56,_0x11b5be-_0x22a3bb._0x1e6883,_0x158005,_0x11b5be-0x6f5);}function _0x324054(_0x20927e,_0x2af84d,_0x3d63b5,_0x12fdfd){return _0x55f0a4(_0x20927e-0x131,_0x2af84d-_0x156b89._0x35dc14,_0x20927e,_0x3d63b5-0x509);}const _0x52dd6e=resolveOpenAiReasoningConfig(_0x3488d8['reasoning']);return{'model':_0x3488d8[_0x324054(0x27f,_0x386945._0x3bf8d7,_0x386945._0x42fce1,0x1c9)],'messages':_0x582441,'stream':_0x2c8990,..._0x52dd6e?{'max_completion_tokens':_0x3488d8[_0x3ccec8(0x426,0x42b,0x44f,0x3c0)]}:{'max_tokens':_0x3488d8[_0x3ccec8(0x4b7,0x42b,0x392,0x3e5)]},..._0x52dd6e?.[_0x324054(_0x386945._0x23faf3,_0x386945._0x100e2c,0x2bc,_0x386945._0x2935b9)]?{'reasoning_effort':_0x52dd6e[_0x3ccec8(0x47c,0x4a8,0x426,0x518)]}:{},...createToolDefinitions(_0x3488d8['tools'])?{'tools':createToolDefinitions(_0x3488d8[_0x3ccec8(_0x386945._0x4dffd2,0x4d6,_0x386945._0x23c7ae,0x47a)])}:{}};}function createResponsesRequestBody(_0x2d0b4c,_0x377199){return{...toOpenAiResponsesRequest(_0x2d0b4c),..._0x377199?{'stream':!![]}:{},'store':![]};}function createOpenAiResponsesWebSocketEvent(_0x4c2212,_0x2098f2={}){const _0x39e3ea={_0x488e6f:0x3ef,_0x169eac:0x5b9,_0x5c3e24:0x4b1,_0xf51727:0x51f,_0x10027d:0x52f},_0x59dc70={_0x5aa35b:0x13d},_0x2404d1={_0xf2d42d:0x6f3};function _0x30c9bd(_0xdb2c20,_0x41636d,_0x236961,_0x607bdd){return _0x55f0a4(_0xdb2c20-0x82,_0x41636d-0x8,_0xdb2c20,_0x41636d-_0x2404d1._0xf2d42d);}function _0x51cfb5(_0x182abc,_0x50b680,_0x38706a,_0x549bf7){return _0x2e041c(_0x182abc-0x1d3,_0x50b680-_0x59dc70._0x5aa35b,_0x38706a-0x52e,_0x50b680);}const _0x7094c8=toOpenAiResponsesRequest(_0x4c2212);return{'type':_0x30c9bd(0x4b5,0x44e,_0x39e3ea._0x488e6f,0x423),..._0x7094c8,..._0x2098f2['input']?{'input':_0x2098f2[_0x51cfb5(_0x39e3ea._0x169eac,0x5a0,0x529,0x5e4)]}:{},..._0x2098f2['previousResponseId']?{'previous_response_id':_0x2098f2[_0x30c9bd(_0x39e3ea._0x5c3e24,0x55b,_0x39e3ea._0xf51727,_0x39e3ea._0x10027d)]}:{},'store':![]};}function normalizeAssistantContent(_0x56fb79){const _0x29aa51={_0x17e80f:0x11a,_0x4c1a55:0x6e,_0x370a1a:0x1f1,_0x4221a5:0x11d,_0x645ef1:0x1e},_0x5073c2={_0x55dc17:0x18d,_0x8cc4ae:0x243,_0x54114d:0x2b3,_0x582778:0x178,_0x7e507b:0x18b,_0x5d1abd:0x210},_0x5dfe34={_0x4c3a12:0x15b,_0x57aadf:0x145},_0x21c96d={_0x75e534:0x1c8},_0x402437={_0x1a6318:0x11e};function _0x4f4e8a(_0x1cc767,_0x5d94aa,_0x5e1a59,_0x40902f){return _0x2e041c(_0x1cc767-0x10d,_0x5d94aa-_0x402437._0x1a6318,_0x5e1a59- -0x188,_0x5d94aa);}function _0x547704(_0x2d2f61,_0x1ace8a,_0x2b3f43,_0x557aee){return _0x2e041c(_0x2d2f61-0x25,_0x1ace8a-0x97,_0x2b3f43-0x80,_0x1ace8a);}if(typeof _0x56fb79===_0x547704(_0x29aa51._0x17e80f,0x12e,_0x29aa51._0x4c1a55,-0x47))return _0x56fb79;if(!Array[_0x4f4e8a(-_0x29aa51._0x370a1a,-0xff,-0x159,-_0x29aa51._0x4221a5)](_0x56fb79))return'';return _0x56fb79[_0x547704(-0xc0,-0x54,-0x14,-0xad)](_0x4b8b6e=>{function _0xad728a(_0x4c9443,_0x4f2155,_0x453192,_0x442995){return _0x4f4e8a(_0x4c9443-0x54,_0x442995,_0x4c9443-0x3b4,_0x442995-_0x21c96d._0x75e534);}function _0x39eb33(_0x30bf65,_0x1b1594,_0xe050db,_0x2d062a){return _0x547704(_0x30bf65-_0x5dfe34._0x4c3a12,_0x30bf65,_0xe050db-0x290,_0x2d062a-_0x5dfe34._0x57aadf);}return _0x4b8b6e[_0x39eb33(0x2b7,_0x5073c2._0x55dc17,_0x5073c2._0x8cc4ae,_0x5073c2._0x54114d)]===_0xad728a(0x17b,0x1fc,0x212,_0x5073c2._0x582778)?_0x4b8b6e['text']:_0x4b8b6e[_0x39eb33(_0x5073c2._0x7e507b,0x11f,0x1c3,_0x5073c2._0x5d1abd)];})[_0x547704(-0x2c,0x11,-_0x29aa51._0x645ef1,-0x1)]('');}function normalizeResponsesMessageContent(_0x3fe7c9){const _0x31e18d={_0x5bdc93:0x140,_0x2ca95a:0x1e8,_0x553601:0x10d,_0x42b479:0x62,_0x197478:0x1d,_0x20e3de:0x74,_0x51e4a8:0xb1},_0x341653={_0x49b773:0xf9,_0x596c48:0x10c,_0x3571e0:0x1bd,_0x4a8134:0x121,_0x13c532:0x145,_0x402f98:0x223,_0x10f68a:0x1a1,_0x27104a:0x1ae,_0x2690c2:0x185,_0x219c4d:0xe0,_0x1146e0:0x77,_0x2cc3bc:0xef,_0x529720:0x106,_0x4d9aad:0x2c8,_0x469417:0x23d,_0x2ae390:0x2ca},_0x53c9ec={_0x5b6ed9:0xf3},_0x122625={_0x532a90:0xaa,_0x45aa76:0x1d3,_0x4744e5:0x5e},_0x376b12={_0x181914:0x166,_0x23ffe5:0x2fc},_0xcfc5a9={_0x20a255:0x116};function _0x339db4(_0x3fa0da,_0xa772ad,_0x2fef51,_0x360240){return _0x2e041c(_0x3fa0da-0x12,_0xa772ad-_0xcfc5a9._0x20a255,_0xa772ad- -0x185,_0x360240);}if(!Array[_0x2788ce(_0x31e18d._0x5bdc93,_0x31e18d._0x2ca95a,_0x31e18d._0x553601,0x17e)](_0x3fe7c9))return'';function _0x2788ce(_0x4d240a,_0x338dd6,_0x149cec,_0x431101){return _0x55f0a4(_0x4d240a-_0x376b12._0x181914,_0x338dd6-0x5d,_0x338dd6,_0x431101-_0x376b12._0x23ffe5);}return _0x3fe7c9[_0x2788ce(0x144,_0x31e18d._0x42b479,_0x31e18d._0x197478,0xbb)](_0x5840e1=>{if(!_0x5840e1||typeof _0x5840e1!==_0x25e154(_0x341653._0x49b773,_0x341653._0x596c48,0x9e,-0x1a))return'';function _0x25e154(_0x558124,_0x3a0721,_0x3a98bf,_0x2a7c72){return _0x2788ce(_0x558124-_0x122625._0x532a90,_0x558124,_0x3a98bf-_0x122625._0x45aa76,_0x3a98bf-_0x122625._0x4744e5);}const _0x3c308a=_0x5840e1;if(_0x3c308a[_0x5c4bf0(-0x21f,-0x134,-_0x341653._0x3571e0,-0x1dc)]===_0x25e154(0x164,_0x341653._0x4a8134,0x136,0x1bc)&&typeof _0x3c308a[_0x25e154(_0x341653._0x13c532,0x50,0xfc,0xd8)]==='string')return _0x3c308a[_0x5c4bf0(-_0x341653._0x402f98,-0x1a8,-_0x341653._0x10f68a,-_0x341653._0x27104a)];if(_0x3c308a[_0x25e154(0x54,_0x341653._0x2690c2,_0x341653._0x219c4d,_0x341653._0x1146e0)]===_0x25e154(0x70,_0x341653._0x2cc3bc,0x60,_0x341653._0x529720)&&typeof _0x3c308a[_0x25e154(0xf8,0xd6,0x60,0xbb)]==='string')return _0x3c308a[_0x5c4bf0(-_0x341653._0x4d9aad,-0x283,-_0x341653._0x469417,-_0x341653._0x2ae390)];function _0x5c4bf0(_0x33efd6,_0x544ef7,_0x3659f4,_0x53d7da){return _0x339db4(_0x33efd6-_0x53c9ec._0x5b6ed9,_0x3659f4-0x95,_0x3659f4-0x1ee,_0x544ef7);}return'';})[_0x2788ce(0x132,0x11b,_0x31e18d._0x20e3de,_0x31e18d._0x51e4a8)]('');}function extractOpenAiReasoningText(_0x486fe3){const _0x46dd72={_0x1e8174:0x2f3,_0x8f5b5:0x2d5,_0x5abc8d:0x3b3,_0x182fe2:0x34b,_0x116f5b:0x38c,_0x5e4d2d:0x392,_0x2d70b5:0x27d,_0xc3ce29:0x26f,_0x1308af:0x1b3,_0x286a27:0x202,_0x35571b:0x1a3,_0x2b2d0d:0x1c7},_0x55ab36={_0x7540a4:0x171,_0x166658:0x1c8};if(typeof _0x486fe3[_0x54678b(0x2b4,0x2ac,_0x46dd72._0x1e8174,_0x46dd72._0x8f5b5)]===_0x54678b(_0x46dd72._0x5abc8d,_0x46dd72._0x182fe2,0x2ef,0x2f5))return _0x486fe3['text'];function _0x54678b(_0x296d08,_0x3c9e8e,_0x255713,_0x4694fd){return _0x55f0a4(_0x296d08-0x53,_0x3c9e8e-0x14,_0x4694fd,_0x3c9e8e-0x50a);}function _0x4f6938(_0x1af8f8,_0x103b05,_0x3a84b3,_0x32bf4e){return _0x2e041c(_0x1af8f8-_0x55ab36._0x7540a4,_0x103b05-_0x55ab36._0x166658,_0x1af8f8- -0x188,_0x103b05);}if(!Array[_0x54678b(0x2e9,_0x46dd72._0x116f5b,_0x46dd72._0x5e4d2d,0x3b0)](_0x486fe3[_0x4f6938(-0x2a6,-0x242,-_0x46dd72._0x2d70b5,-0x250)]))return'';return _0x486fe3['content'][_0x54678b(0x1b4,_0x46dd72._0xc3ce29,_0x46dd72._0x1308af,_0x46dd72._0x286a27)](_0x5447ac=>_0x5447ac[_0x54678b(0x318,0x290,0x335,0x2d0)]===_0x54678b(0x2d1,0x21c,0x164,0x1d5)&&typeof _0x5447ac['text']===_0x54678b(0x349,0x34b,0x2dd,0x2f7))[_0x4f6938(-0x21c,-0x2b7,-_0x46dd72._0x35571b,-_0x46dd72._0x2b2d0d)](_0x3c7d9f=>_0x3c7d9f[_0x4f6938(-0x239,-0x278,-0x19b,-0x29d)]??'')['join']('');}function createOpenAiReasoningBlock(_0x4eeb56){const _0x2b5e68={_0x32baca:0x41,_0x8d849:0x90,_0x134842:0x237,_0x756909:0x1ab},_0x399bae={_0x32c49e:0x34},_0x2b88c5={_0x78cca4:0x1f0,_0x2d7c80:0x1bc};function _0x5c78da(_0xcf7146,_0x6a4ec7,_0x17223a,_0x7690dc){return _0x2e041c(_0xcf7146-_0x2b88c5._0x78cca4,_0x6a4ec7-_0x2b88c5._0x2d7c80,_0x6a4ec7- -0x1d4,_0xcf7146);}const _0x5b43d6=extractOpenAiReasoningText(_0x4eeb56);function _0x555e16(_0xb6f822,_0x5a0600,_0x23dc4a,_0x57f1a9){return _0x55f0a4(_0xb6f822-0x19a,_0x5a0600-_0x399bae._0x32c49e,_0x5a0600,_0x23dc4a-0x278);}return{'type':'openai_reasoning','summary':structuredClone(_0x4eeb56['summary']??[]),..._0x4eeb56['id']?{'id':_0x4eeb56['id']}:{},..._0x4eeb56['encrypted_content']?{'encryptedContent':_0x4eeb56[_0x555e16(_0x2b5e68._0x32baca,_0x2b5e68._0x8d849,0xda,0x17a)]}:{},..._0x5b43d6[_0x5c78da(-0x29b,-_0x2b5e68._0x134842,-0x234,-_0x2b5e68._0x756909)]>0x0?{'text':_0x5b43d6}:{}};}function hasVisibleOpenAiReasoning(_0x3e3926){const _0x5eb9df={_0x5c54cb:0x145,_0x59e8f8:0x27c,_0x4625ec:0x1d3,_0x41ac30:0x20b,_0x1ae21e:0x1e8,_0x14ae82:0x16c},_0x2a45da={_0xbb51c9:0xd,_0x18e1b3:0x9a,_0x4888d4:0x392},_0x322b6f={_0x5ca06b:0x1d8};function _0x51814c(_0x392a8e,_0x401562,_0x339227,_0x849e92){return _0x2e041c(_0x392a8e-0x18c,_0x401562-0xd3,_0x392a8e- -_0x322b6f._0x5ca06b,_0x339227);}function _0x15c42c(_0x542428,_0xc40bf4,_0x1e9428,_0x53863b){return _0x55f0a4(_0x542428-_0x2a45da._0xbb51c9,_0xc40bf4-_0x2a45da._0x18e1b3,_0xc40bf4,_0x542428-_0x2a45da._0x4888d4);}return _0x3e3926[_0x15c42c(0x1fb,_0x5eb9df._0x5c54cb,_0x5eb9df._0x59e8f8,0x194)]['length']>0x0||typeof _0x3e3926['text']===_0x15c42c(_0x5eb9df._0x4625ec,_0x5eb9df._0x41ac30,_0x5eb9df._0x1ae21e,_0x5eb9df._0x14ae82);}function parseChatCompletionResponse(_0x292ae6){const _0x329bc7={_0x483e9e:0xf3,_0x5b7060:0x126,_0x3dabe6:0x16a,_0x8f49c:0x1d5,_0x2f8d81:0xac,_0x399c10:0x121,_0x320a09:0xde,_0x350d06:0xaf,_0x22adea:0x53,_0xea1ac2:0xa9,_0x15bce4:0x16,_0x3b0bc9:0xa,_0x3e4500:0x99,_0x28542a:0xb2,_0x168fef:0x138,_0x487663:0x1e6,_0x1a0cc5:0x158,_0x160188:0xb6,_0x273798:0xe2,_0x5f8e8c:0x25d,_0x17ef8a:0xe6,_0x3296f0:0x11f,_0x6a79d9:0x17,_0x423a11:0xd4,_0x11e42e:0xf4,_0x11a8c2:0xbe,_0x1ff73c:0x136},_0x266188={_0x271e5c:0x11e,_0x309bbd:0x374},_0x5a92b7={_0x2ddd5e:0xad};function _0x39999d(_0xad5ada,_0x379ab6,_0x3ffac8,_0x4534b3){return _0x2e041c(_0xad5ada-0x144,_0x379ab6-0xaa,_0xad5ada- -_0x5a92b7._0x2ddd5e,_0x3ffac8);}const _0x3a89a7=[],_0x436bfc=[];let _0x390bf0=_0x5d8fbe(_0x329bc7._0x483e9e,_0x329bc7._0x5b7060,_0x329bc7._0x3dabe6,_0x329bc7._0x8f49c);for(const _0x28d18b of _0x292ae6[_0x5d8fbe(_0x329bc7._0x2f8d81,0xe3,0x156,_0x329bc7._0x399c10)]??[]){const _0x106596=_0x28d18b[_0x5d8fbe(0x1ca,0x121,_0x329bc7._0x320a09,_0x329bc7._0x350d06)],_0x91cd1=normalizeAssistantContent(_0x106596?.[_0x5d8fbe(_0x329bc7._0x22adea,_0x329bc7._0xea1ac2,_0x329bc7._0x15bce4,-_0x329bc7._0x3b0bc9)]);_0x91cd1[_0x39999d(-0x110,-_0x329bc7._0x3e4500,-_0x329bc7._0x28542a,-_0x329bc7._0x168fef)]>0x0&&_0x3a89a7[_0x39999d(-_0x329bc7._0x487663,-_0x329bc7._0x1a0cc5,-0x22f,-0x1f2)](_0x91cd1),_0x106596?.[_0x5d8fbe(_0x329bc7._0x160188,0x7e,_0x329bc7._0x273798,0x123)]&&_0x436bfc['push'](..._0x106596['tool_calls']),_0x28d18b['finish_reason']===_0x39999d(-0x1f6,-0x13c,-0x149,-_0x329bc7._0x5f8e8c)&&(_0x390bf0=_0x5d8fbe(_0x329bc7._0x17ef8a,0x91,_0x329bc7._0x3296f0,_0x329bc7._0x6a79d9));}function _0x5d8fbe(_0x30664c,_0x25674c,_0x1d67c9,_0x2a96d3){return _0x55f0a4(_0x30664c-_0x266188._0x271e5c,_0x25674c-0xd5,_0x30664c,_0x25674c-_0x266188._0x309bbd);}return _0x436bfc['length']>0x0&&(_0x390bf0=_0x5d8fbe(0x15,0x91,0x4b,_0x329bc7._0x423a11)),{'id':_0x292ae6['id']??_0x39999d(-0xb8,-0xe4,-_0x329bc7._0x11e42e,-0x88)+Date['now'](),'content':createContentBlocks(_0x3a89a7[_0x5d8fbe(0xb8,0x129,0x78,0x11c)](''),_0x436bfc),'stopReason':_0x390bf0,'usage':createUsage(_0x292ae6[_0x39999d(-_0x329bc7._0x11a8c2,-_0x329bc7._0x1ff73c,-0x4c,-0x5e)])};}function parseResponsesResponse(_0x3a5b33,_0x3d1f6b){const _0x490b00={_0x29c1c6:0x295,_0x5178a0:0x327,_0x15ca9a:0x2d6,_0x3ff86c:0x29a,_0x554ec9:0x2b1,_0x3e424e:0x2a9,_0x2f55a8:0x16,_0x464142:0x6e,_0x322958:0x213,_0x2c35bc:0x237,_0x1ffba0:0x3e2,_0x11da4b:0x34f,_0x47e467:0x2cf,_0x2b90de:0x331,_0x242b83:0x60,_0x238e49:0x3d0,_0x358e8c:0x2d4,_0xc4667b:0x376,_0xa5d7b:0x49,_0x28dccd:0x3b0,_0x3705a0:0x37f,_0x1c4de0:0x122,_0x1d6874:0x244,_0x24d1c3:0x2b6,_0x16e99b:0x2b2,_0x248ee0:0x39c,_0x488c6b:0x2fb,_0x2fc1a2:0x480,_0x2ce72b:0x45d,_0x32a942:0x3d0,_0x4411f8:0x369,_0x406455:0x1f1,_0x59a8de:0x2fa,_0x10c5d5:0x24e,_0x3c6218:0x1cc,_0x57b259:0x303,_0x11f11a:0x2d2,_0x311285:0x70,_0x4b0d26:0x56,_0x2fdef7:0x83,_0x3fc046:0xc4,_0x5dc8cd:0x8,_0x45110a:0x141,_0x464ca1:0x102,_0x2823a3:0x3f2,_0x2847f4:0x39b,_0x4363d0:0x40c,_0x11e139:0x123,_0x445199:0x3b6,_0x19b8b0:0x388,_0xa5dfbe:0x34a,_0x1ada87:0x313,_0xcbfd99:0x472,_0x9cdc0e:0x3b2,_0x185495:0x3d1,_0x39bedd:0x317,_0xaf0c5f:0x2aa,_0x202146:0x2d6,_0x4bffe2:0x28,_0x4eff96:0xc5,_0x21a43d:0xbe,_0x1836f1:0x6d},_0x570425={_0x413ba0:0x93,_0x3ff2b2:0xd3,_0x3f0c7a:0x3e2},_0x5e4437={_0x55b0db:0x69};function _0x446c48(_0x2bc925,_0x1926cb,_0x52851d,_0x78f183){return _0x55f0a4(_0x2bc925-0x167,_0x1926cb-_0x5e4437._0x55b0db,_0x52851d,_0x2bc925-0x2e1);}const _0x2e5408=[];function _0x473c64(_0x49dc80,_0x2a3bf5,_0x105f0b,_0x13eeea){return _0x2e041c(_0x49dc80-_0x570425._0x413ba0,_0x2a3bf5-_0x570425._0x3ff2b2,_0x13eeea-_0x570425._0x3f0c7a,_0x105f0b);}for(const _0x2c2f7c of _0x3a5b33[_0x473c64(_0x490b00._0x29c1c6,0x2f0,_0x490b00._0x5178a0,_0x490b00._0x15ca9a)]??[]){if(isResponsesReasoningItem(_0x2c2f7c)){if(isUserVisibleReasoning(_0x3d1f6b)){const _0x270877=createOpenAiReasoningBlock(_0x2c2f7c);hasVisibleOpenAiReasoning(_0x270877)&&_0x2e5408[_0x473c64(_0x490b00._0x3ff86c,_0x490b00._0x554ec9,0x2f7,_0x490b00._0x3e424e)](_0x270877);}continue;}if(isResponsesMessageItem(_0x2c2f7c)){const _0x224694=normalizeResponsesMessageContent(_0x2c2f7c[_0x446c48(_0x490b00._0x2f55a8,_0x490b00._0x464142,0x36,0x1d)]);_0x224694[_0x473c64(0x42a,0x3a5,0x324,0x37f)]>0x0&&_0x2e5408[_0x473c64(_0x490b00._0x322958,_0x490b00._0x2c35bc,0x26a,0x2a9)]({'type':_0x473c64(_0x490b00._0x1ffba0,_0x490b00._0x11da4b,_0x490b00._0x47e467,_0x490b00._0x2b90de),'text':_0x224694});continue;}if(!isResponsesFunctionCallItem(_0x2c2f7c)||typeof _0x2c2f7c[_0x446c48(0x1f,0x77,_0x490b00._0x242b83,0x23)]!==_0x473c64(0x3b0,0x378,0x47a,_0x490b00._0x238e49)||_0x2c2f7c[_0x473c64(0x253,_0x490b00._0x358e8c,_0x490b00._0xc4667b,0x2cd)][_0x446c48(0x8,-0x9d,0x35,_0x490b00._0xa5d7b)]()[_0x473c64(0x34a,0x3d1,_0x490b00._0x28dccd,_0x490b00._0x3705a0)]===0x0||typeof _0x2c2f7c['name']!==_0x446c48(_0x490b00._0x1c4de0,0x101,0x1d7,0xab)||_0x2c2f7c['name'][_0x473c64(0x207,_0x490b00._0x1d6874,0x34d,_0x490b00._0x24d1c3)]()['length']===0x0||typeof _0x2c2f7c[_0x473c64(0x269,_0x490b00._0x16e99b,_0x490b00._0x248ee0,_0x490b00._0x488c6b)]!==_0x473c64(0x3da,_0x490b00._0x2fc1a2,_0x490b00._0x2ce72b,_0x490b00._0x32a942))continue;_0x2e5408[_0x473c64(0x32b,_0x490b00._0x4411f8,0x353,0x2a9)]({'type':_0x473c64(0x2cf,0x31e,_0x490b00._0x406455,0x2ac),'id':_0x2c2f7c['call_id'],'name':_0x2c2f7c['name'],'input':parseToolInput2(_0x2c2f7c[_0x473c64(_0x490b00._0x59a8de,0x2f8,_0x490b00._0x10c5d5,0x2fb)])});}return!_0x2e5408[_0x446c48(0x141,0x169,_0x490b00._0x3c6218,0x163)](_0x23b0af=>_0x23b0af[_0x446c48(0x67,0xab,0x40,0x86)]===_0x446c48(0x83,0x82,0x94,0xa8))&&_0x3a5b33[_0x473c64(_0x490b00._0x57b259,_0x490b00._0x11f11a,0x39a,0x36b)]&&_0x2e5408[_0x446c48(-0x5,-_0x490b00._0x311285,-_0x490b00._0x4b0d26,0x2b)]({'type':_0x446c48(_0x490b00._0x2fdef7,0xb3,_0x490b00._0x3fc046,_0x490b00._0x5dc8cd),'text':_0x3a5b33[_0x446c48(0xbd,0x128,0x177,0x32)]}),{'id':_0x3a5b33['id'],'content':_0x2e5408,'stopReason':_0x2e5408[_0x446c48(_0x490b00._0x45110a,0x129,0x175,0x18b)](_0x2dfa9f=>_0x2dfa9f[_0x446c48(0x67,-0x1,0x3d,0x88)]===_0x473c64(0x234,0x358,0x201,0x2ac))?'tool_use':'end_turn','usage':{'inputTokens':_0x3a5b33[_0x446c48(0x123,0xb7,0xc4,_0x490b00._0x464ca1)]?.[_0x473c64(0x410,0x3fb,_0x490b00._0x2823a3,_0x490b00._0x2847f4)]??0x0,'outputTokens':_0x3a5b33[_0x473c64(_0x490b00._0x4363d0,0x335,0x418,0x3d1)]?.['output_tokens']??0x0,..._0x3a5b33[_0x446c48(_0x490b00._0x11e139,0x157,0xf7,0x164)]?.[_0x473c64(0x359,_0x490b00._0x445199,_0x490b00._0x19b8b0,_0x490b00._0xa5dfbe)]?.[_0x473c64(_0x490b00._0x1ada87,0x37a,0x363,0x35c)]!==void 0x0?{'reasoningTokens':_0x3a5b33[_0x473c64(_0x490b00._0xcbfd99,_0x490b00._0x9cdc0e,0x45b,_0x490b00._0x185495)][_0x473c64(0x3a6,_0x490b00._0x39bedd,0x395,0x34a)]['reasoning_tokens']}:{}},..._0x3a5b33[_0x473c64(_0x490b00._0xaf0c5f,0x2eb,0x258,_0x490b00._0x202146)]?{'providerState':{'openaiResponsesOutput':structuredClone(_0x3a5b33[_0x446c48(_0x490b00._0x4bffe2,_0x490b00._0x4eff96,_0x490b00._0x21a43d,_0x490b00._0x1836f1)]),'openaiResponsesResponseId':_0x3a5b33['id']}}:{}};}function extractErrorMessage(_0x391d42){const _0x1b03bc={_0x355814:0x4b,_0x276650:0x1a2,_0x322e02:0x178,_0x874230:0x1c2,_0x28d6ff:0x162,_0x433c53:0x223,_0xb71b5c:0x14f,_0x393a87:0xd0,_0x21f8d3:0xab,_0x230e5c:0x141,_0x4ae92d:0x202,_0x341e59:0x164,_0x32ae7a:0x14c,_0x236c5f:0x19d,_0x44fbe5:0x201,_0x1653f6:0x198,_0x1b64f6:0x218,_0x34dfa4:0x19e,_0x41db76:0x1ba,_0x166481:0x1f6,_0x56124e:0x79,_0x2cffea:0xcf,_0x43cd72:0x161,_0x55b569:0x187,_0x4c3d5f:0x21a},_0x4f3c15={_0x1bd9cc:0x176,_0x342789:0x141};function _0x27bff3(_0x4972d5,_0x449e7a,_0x359cbc,_0x1f569c){return _0x2e041c(_0x4972d5-0xc6,_0x449e7a-0x170,_0x449e7a- -0xbe,_0x4972d5);}if(_0x391d42[_0xd7aeff(-0x4f,-0xcf,-_0x1b03bc._0x355814,-0x6d)]===0x0)return'';try{const _0xae99b1=JSON[_0x27bff3(-0x16a,-0x12a,-_0x1b03bc._0x276650,-0x1c6)](_0x391d42);if(typeof _0xae99b1[_0x27bff3(-_0x1b03bc._0x322e02,-_0x1b03bc._0x874230,-0x122,-_0x1b03bc._0x28d6ff)]?.[_0x27bff3(-_0x1b03bc._0x433c53,-0x164,-0x17c,-0x223)]===_0x27bff3(-_0x1b03bc._0xb71b5c,-_0x1b03bc._0x393a87,-_0x1b03bc._0x21f8d3,-_0x1b03bc._0x230e5c)&&_0xae99b1[_0xd7aeff(-0x18c,-0x170,-_0x1b03bc._0x4ae92d,-0x1a5)][_0x27bff3(-0x20a,-_0x1b03bc._0x341e59,-0x113,-0x13b)][_0xd7aeff(-0x124,-0x198,-0x1fb,-_0x1b03bc._0x32ae7a)]()['length']>0x0)return _0xae99b1['error'][_0x27bff3(-_0x1b03bc._0x236c5f,-_0x1b03bc._0x341e59,-_0x1b03bc._0x44fbe5,-0xe2)][_0xd7aeff(-0x146,-_0x1b03bc._0x1653f6,-0x11f,-0x147)]();if(typeof _0xae99b1[_0x27bff3(-0xbb,-_0x1b03bc._0x341e59,-_0x1b03bc._0x1b64f6,-_0x1b03bc._0x34dfa4)]==='string'&&_0xae99b1[_0x27bff3(-0x1e3,-0x164,-_0x1b03bc._0x41db76,-0xc8)][_0xd7aeff(-0x178,-0x198,-0x1b1,-_0x1b03bc._0x166481)]()[_0xd7aeff(-_0x1b03bc._0x56124e,-_0x1b03bc._0x2cffea,-_0x1b03bc._0x43cd72,-0x59)]>0x0)return _0xae99b1[_0x27bff3(-_0x1b03bc._0x55b569,-0x164,-0x1d1,-_0x1b03bc._0x4c3d5f)]['trim']();}catch{return _0x391d42;}function _0xd7aeff(_0x50d64a,_0x2b2598,_0x12634d,_0x4153bd){return _0x55f0a4(_0x50d64a-0x131,_0x2b2598-_0x4f3c15._0x1bd9cc,_0x4153bd,_0x2b2598-_0x4f3c15._0x342789);}return _0x391d42;}async function createOpenAiApiError(_0x4338fe){const _0x391ef5={_0x2e3111:0xe8,_0x5d00b8:0x1a3,_0x247f00:0x123,_0x373020:0x1bd,_0x389351:0x1db,_0x59268f:0x131,_0x4bcd6c:0xa7},_0x354d2b={_0x56d9d2:0x117,_0x55f753:0xeb},_0x4233e2={_0x4327f3:0x183};function _0x376f45(_0x403f0b,_0x3d5b8c,_0x430b06,_0x57ee75){return _0x2e041c(_0x403f0b-_0x4233e2._0x4327f3,_0x3d5b8c-0x175,_0x3d5b8c-0x1a2,_0x57ee75);}const _0x18fbe9=(await _0x4338fe[_0x4bcca9(-_0x391ef5._0x2e3111,-0x173,-0x212,-0x15e)]())['trim']();function _0x4bcca9(_0x51bc22,_0x34c70a,_0x48a174,_0x595799){return _0x55f0a4(_0x51bc22-0x125,_0x34c70a-_0x354d2b._0x56d9d2,_0x51bc22,_0x34c70a-_0x354d2b._0x55f753);}const _0x57044b=extractErrorMessage(_0x18fbe9)||_0x4338fe['statusText']||_0x4bcca9(-_0x391ef5._0x5d00b8,-0x154,-_0x391ef5._0x247f00,-0x1cc)+_0x4338fe[_0x4bcca9(-0x15b,-_0x391ef5._0x373020,-_0x391ef5._0x389351,-_0x391ef5._0x59268f)];return new OpenAiApiError(_0x4338fe[_0x376f45(0xfb,_0x391ef5._0x4bcd6c,0x15,0x116)],_0x18fbe9,_0x57044b);}function readSseData(_0x20a36a){const _0x119b92={_0x57e3d5:0x14f,_0x50f03e:0x285,_0x3335ef:0x1e0,_0x5c9ba9:0x25a,_0x5044ad:0x2f1,_0x88ba11:0x2a4,_0x2b9ae0:0x307,_0x34b2fa:0x136,_0x3877cd:0x1ed,_0x47d3b4:0x216,_0x4fb6d1:0x24c};function _0x4c7070(_0x20a94d,_0x4ee834,_0x39e8d4,_0x5c6fb0){return _0x2e041c(_0x20a94d-0x6c,_0x4ee834-0x1de,_0x5c6fb0- -0x159,_0x20a94d);}function _0x335179(_0x482951,_0x4f3782,_0x23d9b6,_0x57ec8d){return _0x55f0a4(_0x482951-0x1bb,_0x4f3782-0xd4,_0x57ec8d,_0x23d9b6- -0x9);}return _0x20a36a[_0x335179(-_0x119b92._0x57e3d5,-_0x119b92._0x50f03e,-_0x119b92._0x3335ef,-_0x119b92._0x5c9ba9)]('\x0a')[_0x335179(-_0x119b92._0x5044ad,-0x252,-_0x119b92._0x88ba11,-_0x119b92._0x2b9ae0)](_0x4af879=>_0x4af879[_0x4c7070(-0x12e,-0x28d,-0x1c8,-0x1d2)]('data:'))[_0x4c7070(-0x245,-0x29f,-_0x119b92._0x34b2fa,-_0x119b92._0x3877cd)](_0x508208=>_0x508208[_0x335179(-0x24f,-0x31b,-0x2b0,-0x2c6)](0x5)[_0x4c7070(-0x1ab,-0x207,-0x13b,-0x1be)]())['join']('\x0a')[_0x4c7070(-_0x119b92._0x47d3b4,-_0x119b92._0x4fb6d1,-0x33c,-0x285)]();}var OpenAiChatCompletionsStreamParser=class{[_0x2e041c(-0xed,-0x9c,-0x7d,-0x6b)]=[];[_0x2e041c(-0x181,-0x1d6,-0x151,-0xdf)]=new Map();['toolCallOrder']=[];['toolUseStartEmitted']=new Set();[_0x55f0a4(-0x19e,-0x222,-0x2e6,-0x24a)]='';[_0x55f0a4(-0x12d,-0x19a,-0x137,-0x18a)]='end_turn';['usage'];[_0x2e041c(-0xb3,-0x9b,-0x5c,-0x4e)](_0x8beac2){const _0x3ee415={_0x4530cb:0x2,_0x2b6312:0xa8,_0x2b7e07:0xfa,_0x591815:0x146,_0x3c45c3:0x8f,_0x5ea6f1:0x27a,_0x1f6ae9:0x21c,_0xfaa2a8:0x255},_0x4d4632={_0x3cdb38:0xf8},_0x2188ed={_0x6d6551:0x180,_0x9519d1:0x63},_0x37bca6=readSseData(_0x8beac2);if(_0x37bca6['length']===0x0||_0x37bca6==='[DONE]')return[];const _0x3fc229=JSON[_0x36d050(_0x3ee415._0x4530cb,-_0x3ee415._0x2b6312,-_0x3ee415._0x2b7e07,-0x65)](_0x37bca6);this[_0x36d050(-0x196,-0xd9,-_0x3ee415._0x591815,-0xdb)]=_0x3fc229['id']??this['responseId'];function _0x1db3fe(_0xe5345a,_0x374493,_0x4f15b0,_0x34b35b){return _0x55f0a4(_0xe5345a-0x1a9,_0x374493-_0x2188ed._0x6d6551,_0x34b35b,_0x4f15b0- -_0x2188ed._0x9519d1);}function _0x36d050(_0x176888,_0x406972,_0x1c412b,_0x289484){return _0x2e041c(_0x176888-_0x4d4632._0x3cdb38,_0x406972-0x1c8,_0x406972- -0x3c,_0x1c412b);}return this[_0x36d050(-_0x3ee415._0x3c45c3,-0x4d,-0x8c,-0x88)]=_0x3fc229[_0x1db3fe(-_0x3ee415._0x5ea6f1,-_0x3ee415._0x1f6ae9,-0x221,-_0x3ee415._0xfaa2a8)]??this['usage'],this['consumeEvent'](_0x3fc229);}['finish'](){const _0x4075f4={_0x2ef2b3:0x41,_0x450ef0:0x12b,_0x172719:0x77,_0x3be83f:0x1,_0x60725a:0x1f,_0x54e13a:0xad,_0xd01d94:0x362,_0x9ff0a7:0x328,_0x32dbf0:0x139},_0x1d1381={_0x10d7ff:0x45},_0x523f2b={_0x48c754:0xf2,_0x45d369:0x22};function _0x321c4c(_0xda0560,_0x5f0ada,_0x18e5ae,_0x45a88){return _0x55f0a4(_0xda0560-_0x523f2b._0x48c754,_0x5f0ada-_0x523f2b._0x45d369,_0x5f0ada,_0x18e5ae-0x5ad);}function _0x2a24e5(_0x257df8,_0x1c86e5,_0x1ed46f,_0x5760b3){return _0x2e041c(_0x257df8-_0x1d1381._0x10d7ff,_0x1c86e5-0x12a,_0x1ed46f-0xbf,_0x5760b3);}return this[_0x2a24e5(0xa,-0x50,-0x2c,0x45)]['length']>0x0&&(this['stopReason']=_0x2a24e5(-_0x4075f4._0x2ef2b3,-_0x4075f4._0x450ef0,-_0x4075f4._0x172719,-0xc9)),{'id':this[_0x2a24e5(-0x50,-_0x4075f4._0x3be83f,0x22,0xba)]||'chatcmpl-'+Date['now'](),'content':createContentBlocks(this[_0x2a24e5(-_0x4075f4._0x60725a,0xcd,0x42,_0x4075f4._0x54e13a)][_0x321c4c(0x3ea,0x320,_0x4075f4._0xd01d94,_0x4075f4._0x9ff0a7)](''),this[_0x321c4c(0x39f,0x297,0x315,0x254)]),'stopReason':this['stopReason'],'usage':createUsage(this[_0x2a24e5(_0x4075f4._0x32dbf0,0x10f,0xae,0x70)])};}['consumeEvent'](_0x274ac3){const _0x13fee6={_0x4fc219:0x12e,_0x38b300:0x9a,_0x2dd933:0x195,_0x84f596:0x5b,_0x1586ad:0xc6,_0x5a8d30:0x2,_0x7e5c4f:0x273,_0x2dfa3f:0x1b0,_0x4d8ee9:0x1e3,_0x32c55e:0x21f,_0x5184da:0xc6,_0x2f5edf:0xda,_0x1c0749:0x314,_0x55e3fe:0x28a,_0x4d723c:0x29b,_0x7182b2:0x197,_0x48d33e:0x1df,_0x241868:0x1f7,_0x36e3f0:0x2d0,_0x47af27:0x3a5,_0x4c742c:0x15f,_0x364d01:0x194,_0x3af41c:0x1f4,_0x123b5b:0x23d,_0xc2d3d:0x2ed,_0x5cc8a1:0xcf,_0x1f0fe1:0x1dc,_0x5c092b:0x2e,_0x286586:0xbc,_0x1a461d:0x51,_0x53c6c7:0x7e,_0x191cd2:0x6c,_0x153528:0x4,_0x2d6feb:0x37,_0x974eb7:0x28e,_0x3b4da:0x1fa,_0x1cc714:0x270,_0x3a764c:0x358,_0x3ee12f:0x329,_0x2cd9cc:0x16d,_0xb2084:0x1d4,_0x388b88:0xd1,_0x5af8bb:0xea,_0x4884ff:0x1e0,_0x1378fd:0x183,_0x592192:0xe6,_0x73ec39:0x2e,_0x2c7ecd:0x49,_0x4384ac:0x158,_0x375bb0:0x14b,_0x17dda4:0x110,_0x2c07aa:0x2ca,_0x3a0a54:0x360,_0x325a3b:0x248,_0x808c4f:0x343,_0x3b5609:0x371,_0x43eb71:0x15d,_0x2dfded:0x1b3,_0x4fb92a:0xf6,_0x1f77b7:0x1f4,_0x325b8c:0x26b,_0x1f27e9:0x95,_0x2d2e4f:0x2e,_0x357919:0xa6,_0x123038:0x155,_0x176dd1:0x201,_0x10b6df:0x1a9,_0x8134dd:0x26d,_0x365981:0x147,_0x511052:0x363,_0x5dfeea:0x314,_0x11e667:0x2d3,_0x5fa07b:0x2d7,_0x49254d:0x271,_0x18c544:0x107,_0x24c82c:0x218},_0x2b3c7e={_0x120930:0x0,_0x44b48a:0x164},_0x56488d={_0x49724b:0x1eb},_0x31dcbc=[];function _0x34992c(_0x45dd2e,_0x367ad5,_0x5bb213,_0x4abff9){return _0x2e041c(_0x45dd2e-0x1d5,_0x367ad5-_0x56488d._0x49724b,_0x45dd2e- -0x19e,_0x4abff9);}function _0x48ae03(_0x3ff4a9,_0x51a39a,_0x667988,_0x2c5e66){return _0x55f0a4(_0x3ff4a9-0x14b,_0x51a39a-_0x2b3c7e._0x120930,_0x51a39a,_0x3ff4a9-_0x2b3c7e._0x44b48a);}for(const _0x1be3b9 of _0x274ac3['choices']??[]){const _0xa1cad=_0x1be3b9[_0x48ae03(-_0x13fee6._0x4fc219,-_0x13fee6._0x38b300,-0x1ba,-_0x13fee6._0x2dd933)],_0xdf6b20=typeof _0xa1cad?.['content']===_0x48ae03(-_0x13fee6._0x84f596,-_0x13fee6._0x1586ad,-0x17,_0x13fee6._0x5a8d30)?_0xa1cad['content']:typeof _0xa1cad?.[_0x34992c(-0x2eb,-0x3a0,-_0x13fee6._0x7e5c4f,-0x30b)]===_0x34992c(-_0x13fee6._0x2dfa3f,-_0x13fee6._0x4d8ee9,-_0x13fee6._0x32c55e,-0x1df)?_0xa1cad['refusal']:'';_0xdf6b20['length']>0x0&&(this[_0x48ae03(-_0x13fee6._0x5184da,-_0x13fee6._0x2f5edf,-0x12e,-0x132)][_0x34992c(-0x2d7,-_0x13fee6._0x1c0749,-0x2f1,-0x33e)](_0xdf6b20),_0x31dcbc[_0x34992c(-0x2d7,-0x362,-_0x13fee6._0x55e3fe,-_0x13fee6._0x4d723c)]({'type':_0x34992c(-_0x13fee6._0x7182b2,-_0x13fee6._0x48d33e,-_0x13fee6._0x241868,-0x148),'index':0x0,'text':_0xdf6b20}));for(const _0x14c7d3 of _0xa1cad?.[_0x34992c(-0x2e7,-0x35b,-_0x13fee6._0x36e3f0,-_0x13fee6._0x47af27)]??[]){const _0x3d781d=_0x14c7d3['index']??0x0;let _0x1401d8=this[_0x48ae03(-0x19a,-_0x13fee6._0x4c742c,-_0x13fee6._0x364d01,-0x19b)][_0x34992c(-0x1cc,-0x1fa,-_0x13fee6._0x3af41c,-0x25a)](_0x3d781d);!_0x1401d8&&(_0x1401d8={'id':_0x14c7d3['id']??_0x34992c(-_0x13fee6._0x123b5b,-_0x13fee6._0xc2d3d,-0x216,-0x219)+_0x3d781d,'type':'function','function':{'name':_0x14c7d3[_0x34992c(-0x16d,-0x15a,-_0x13fee6._0x5cc8a1,-_0x13fee6._0x1f0fe1)]?.[_0x48ae03(-_0x13fee6._0x5c092b,-_0x13fee6._0x286586,-_0x13fee6._0x1a461d,-0x9e)]??'','arguments':''}},this['toolCallsByIndex'][_0x48ae03(-_0x13fee6._0x53c6c7,-_0x13fee6._0x191cd2,-_0x13fee6._0x153528,_0x13fee6._0x2d6feb)](_0x3d781d,_0x1401d8),this[_0x34992c(-0x289,-0x2f7,-_0x13fee6._0x974eb7,-_0x13fee6._0x3b4da)][_0x34992c(-0x2d7,-_0x13fee6._0x1cc714,-_0x13fee6._0x3a764c,-_0x13fee6._0x3ee12f)](_0x1401d8));_0x14c7d3['id']&&(_0x1401d8['id']=_0x14c7d3['id']);_0x14c7d3[_0x34992c(-_0x13fee6._0x2cd9cc,-0x1fc,-0xac,-_0x13fee6._0xb2084)]?.[_0x34992c(-0x183,-_0x13fee6._0x388b88,-_0x13fee6._0x5af8bb,-0x16d)]&&(_0x1401d8[_0x34992c(-0x16d,-0x20f,-0x134,-_0x13fee6._0x4884ff)][_0x34992c(-_0x13fee6._0x1378fd,-0x181,-_0x13fee6._0x592192,-0x112)]=_0x14c7d3['function'][_0x48ae03(-_0x13fee6._0x73ec39,-_0x13fee6._0x2c7ecd,0x32,-0x6b)]);!this[_0x34992c(-0x1f4,-0x1a0,-0x1a6,-_0x13fee6._0x4384ac)]['has'](_0x3d781d)&&_0x1401d8[_0x34992c(-0x16d,-0x198,-0xca,-0x174)][_0x34992c(-0x183,-0xd6,-_0x13fee6._0x375bb0,-_0x13fee6._0x17dda4)][_0x34992c(-_0x13fee6._0x2c07aa,-0x38b,-_0x13fee6._0x3a0a54,-_0x13fee6._0x325a3b)]()['length']>0x0&&(_0x31dcbc[_0x34992c(-0x2d7,-_0x13fee6._0x808c4f,-_0x13fee6._0x3b5609,-0x271)]({'type':_0x48ae03(-0x17e,-_0x13fee6._0x43eb71,-0x1a5,-0x101),'id':_0x1401d8['id'],'index':_0x3d781d,'name':_0x1401d8['function'][_0x34992c(-0x183,-0x20f,-_0x13fee6._0x2dfded,-_0x13fee6._0x4fb92a)]}),this[_0x34992c(-_0x13fee6._0x1f77b7,-0x18d,-_0x13fee6._0x325b8c,-_0x13fee6._0x364d01)]['add'](_0x3d781d));const _0x4b8f86=_0x14c7d3[_0x48ae03(-0x18,-_0x13fee6._0x1f27e9,-_0x13fee6._0x2d2e4f,-0x7a)]?.[_0x48ae03(-0x130,-0x15d,-_0x13fee6._0x357919,-_0x13fee6._0x123038)]??'';_0x4b8f86[_0x34992c(-_0x13fee6._0x176dd1,-_0x13fee6._0x10b6df,-_0x13fee6._0x8134dd,-_0x13fee6._0x365981)]>0x0&&(_0x1401d8['function']['arguments']+=_0x4b8f86,_0x31dcbc[_0x34992c(-0x2d7,-_0x13fee6._0x511052,-0x28e,-_0x13fee6._0x5dfeea)]({'type':_0x34992c(-_0x13fee6._0x11e667,-0x317,-0x214,-0x24e),'id':_0x1401d8['id'],'index':_0x3d781d,'inputDelta':_0x4b8f86}));}_0x1be3b9[_0x34992c(-0x290,-_0x13fee6._0x5fa07b,-0x266,-_0x13fee6._0x49254d)]===_0x48ae03(-0x192,-_0x13fee6._0x18c544,-_0x13fee6._0x24c82c,-0x1bf)&&(this['stopReason']='tool_use');}return _0x31dcbc;}},OpenAiResponsesStreamParser=class{[_0x2e041c(-0x125,-0xb1,-0x152,-0xad)]=new Map();[_0x2e041c(0x15,-0x37,-0x9c,0x0)];[_0x2e041c(-0x96,-0xa7,-0xba,-0x4d)]=new Map();[_0x2e041c(-0xe5,0x87,-0x24,0x14)]=new Map();['reasoningItems']=new Map();[_0x55f0a4(-0x1ae,-0x188,-0xda,-0x19a)];[_0x55f0a4(-0x207,-0x263,-0x239,-0x287)]=new Map();[_0x55f0a4(-0x27e,-0x2f7,-0x27d,-0x2f4)]=new Map();constructor(_0x51d0f4){const _0x31cf17={_0x58d19a:0x4dc,_0x107624:0x506},_0x1ffe18={_0xcdc119:0x15b};function _0x6718bf(_0x15b34b,_0x2b6ec7,_0x1a0524,_0x2710ae){return _0x2e041c(_0x15b34b-0x11a,_0x2b6ec7-_0x1ffe18._0xcdc119,_0x2710ae-0x4f3,_0x2b6ec7);}this[_0x6718bf(0x4ee,0x54e,_0x31cf17._0x58d19a,_0x31cf17._0x107624)]=_0x51d0f4;}[_0x2e041c(-0x98,-0x43,-0x5c,0x5a)](_0x2f4fe3){const _0x114940={_0x1c3e8a:0x15a,_0x1ff222:0x1ec,_0x11919c:0x265,_0x4ed232:0x1e9,_0x5bbaa3:0x2b5,_0x56e541:0x27d,_0x5ce497:0x30a,_0x450a5c:0x1f5,_0x5643b8:0x239,_0x585310:0x306,_0x5e71ba:0x260,_0x4f30a2:0x2d3,_0x4676e0:0x2be,_0x2fe359:0x21d,_0x161652:0x276,_0x3e4def:0x2a2,_0x3c3039:0x22e,_0x513133:0x2e4,_0x657edb:0x237,_0x3cc8af:0x200,_0x4dd823:0x188,_0x562fb5:0x250,_0x33499b:0x24d,_0x39257a:0x1ea},_0x3e8e41={_0x2c5dc9:0xf1,_0x590546:0x2a},_0x264e68=_0x2f4fe3[_0x1cf9b2(-_0x114940._0x1c3e8a,-_0x114940._0x1ff222,-0x29e,-0x143)]('\x0a');function _0x4a2c8c(_0x256534,_0x239e2a,_0x224cff,_0xcc73e2){return _0x55f0a4(_0x256534-_0x3e8e41._0x2c5dc9,_0x239e2a-0x1e2,_0x256534,_0x239e2a-_0x3e8e41._0x590546);}const _0x4e62a6=_0x264e68[_0x4a2c8c(-0x1de,-_0x114940._0x11919c,-_0x114940._0x4ed232,-0x1a4)](_0x18985f=>_0x18985f[_0x4a2c8c(-0x172,-0x1fc,-0x1f0,-0x1a9)]('event:'))?.[_0x4a2c8c(-_0x114940._0x5bbaa3,-_0x114940._0x56e541,-_0x114940._0x5ce497,-_0x114940._0x450a5c)](0x6)[_0x1cf9b2(-0x3ae,-0x2ee,-_0x114940._0x5643b8,-_0x114940._0x585310)](),_0x232504=_0x264e68[_0x1cf9b2(-0x319,-0x2b0,-0x238,-0x2af)](_0x1b0355=>_0x1b0355[_0x4a2c8c(-0x186,-0x1fc,-0x255,-0x210)](_0x4a2c8c(-0x31c,-0x2bf,-0x37b,-0x253)))[_0x4a2c8c(-0x2bf,-0x217,-0x18e,-0x28e)](_0x4f3390=>_0x4f3390[_0x4a2c8c(-0x2f2,-0x27d,-0x310,-0x224)](0x5)[_0x4a2c8c(-0x196,-0x1e8,-0x28b,-0x248)]())[_0x1cf9b2(-0x1d1,-_0x114940._0x5e71ba,-0x23f,-0x204)]('\x0a')['trim']();function _0x1cf9b2(_0x46da29,_0x372cf3,_0x109956,_0x41c4d8){return _0x2e041c(_0x46da29-0x15f,_0x372cf3-0x158,_0x372cf3- -0x1c2,_0x41c4d8);}if(_0x232504[_0x1cf9b2(-_0x114940._0x4f30a2,-0x225,-_0x114940._0x4676e0,-0x288)]===0x0||_0x232504===_0x4a2c8c(-_0x114940._0x2fe359,-_0x114940._0x161652,-_0x114940._0x3e4def,-0x2b7))return[];const _0x4a3221=JSON[_0x1cf9b2(-0x2d5,-_0x114940._0x3c3039,-_0x114940._0x513133,-0x1f8)](_0x232504);return this[_0x1cf9b2(-_0x114940._0x657edb,-_0x114940._0x3cc8af,-0x286,-_0x114940._0x4dd823)](_0x4e62a6??String(_0x4a3221[_0x4a2c8c(-0x21d,-_0x114940._0x562fb5,-_0x114940._0x33499b,-_0x114940._0x39257a)]??''),_0x4a3221);}[_0x55f0a4(-0x22b,-0x1c0,-0x1fd,-0x1ed)](_0x557220){const _0x549872={_0x2561da:0x1a3},_0x209a6e={_0x37f207:0x15c,_0xce012f:0x308};function _0x5500d5(_0xe63f45,_0x403f26,_0x578865,_0x59c486){return _0x55f0a4(_0xe63f45-0xba,_0x403f26-_0x209a6e._0x37f207,_0x59c486,_0xe63f45-_0x209a6e._0xce012f);}return this[_0x5500d5(0x11d,0x14a,0x107,_0x549872._0x2561da)](String(_0x557220['type']??''),_0x557220);}['finish'](){const _0x5d277a={_0x54dd49:0x4e6,_0x555711:0x4aa,_0x5117de:0x4f9,_0x1d55b6:0x4e7,_0xba9ba8:0x498,_0x2c0bac:0x447,_0x5779f5:0x3a9,_0x177164:0x4eb,_0x33c513:0x58d,_0x5f0dfa:0x563},_0x27540a={_0x12c36b:0x72f},_0x1aad67=this[_0x326953(0x5a3,_0x5d277a._0x54dd49,0x58c,0x582)]??{'id':'resp-'+Date['now'](),'object':_0x2b9051(_0x5d277a._0x555711,_0x5d277a._0x5117de,_0x5d277a._0x1d55b6,0x4a1),'status':_0x326953(_0x5d277a._0xba9ba8,_0x5d277a._0x2c0bac,0x4a4,_0x5d277a._0x5779f5),'output':this[_0x326953(0x4df,_0x5d277a._0x177164,0x533,_0x5d277a._0x33c513)](),'usage':{'input_tokens':0x0,'output_tokens':0x0}};function _0x326953(_0xab9d8d,_0x1b2876,_0x134233,_0x6ce45d){return _0x55f0a4(_0xab9d8d-0x6c,_0x1b2876-0x10c,_0x134233,_0x1b2876-_0x27540a._0x12c36b);}function _0x2b9051(_0x246f67,_0x18be7b,_0x48c2c8,_0x1ffc5b){return _0x2e041c(_0x246f67-0x1f0,_0x18be7b-0x1ee,_0x48c2c8-0x550,_0x18be7b);}return parseResponsesResponse(_0x1aad67,this[_0x2b9051(0x580,0x4a9,_0x5d277a._0x5f0dfa,0x5bb)]);}[_0x55f0a4(-0x22a,-0x222,-0x314,-0x262)](){return this['finalResponse']!==void 0x0;}['consumeEvent'](_0x982a5a,_0x26a19d){const _0x544f92={_0x1557d6:0x359,_0x3e6e72:0x2c7,_0x271b02:0x1eb,_0x3916c4:0x2a2,_0x4a6140:0x265,_0x5664d8:0x4db,_0x370084:0x344,_0x4b3d53:0x34a,_0x5a1a9d:0x270,_0x255038:0x3c2,_0x2e2ac6:0x2f2,_0x49ac2b:0x2a0,_0x435082:0x373,_0x5dbf0b:0x35b,_0x531c7e:0x42a,_0x4b8501:0x4a6,_0x1a81e3:0x2b3,_0x52e2e6:0x2d0,_0x5aae1a:0x229,_0x542225:0x222,_0x5c3dfd:0x360,_0x60c282:0x269,_0x505b8c:0x2ba,_0x465c62:0x2a1,_0x2894da:0x3fc,_0x2f8cad:0x227,_0x5dc178:0x27b,_0x563a60:0x339,_0x267c4d:0x29b,_0x12eb16:0x2fa,_0x40f94b:0x3c3,_0x5eb4ad:0x389,_0x33473c:0x418,_0x3ba300:0x3e1,_0x319b97:0x4a3,_0x41b1fd:0x1c7,_0xe60107:0x261,_0x377cac:0x219,_0x51951a:0x313,_0x2c2617:0x3a7,_0xb97c9e:0x2de,_0x19c1a6:0x2b2,_0x2cc977:0x259,_0x27d9b9:0x259,_0x4c8408:0x45f,_0x3953cf:0x3c8,_0x5248bc:0x45d,_0x333118:0x46a,_0x31a854:0x369,_0x2cf6fa:0x368,_0x8f5bfb:0x38c,_0x19e6f9:0x24f,_0x4ef9de:0x301,_0x1a41e6:0x30c,_0xc161ae:0x37a,_0x21a9ec:0x39f,_0x3a9b0b:0x393,_0x5a4420:0x3ca,_0x5a13fa:0x395,_0x7faa72:0x291,_0x51a2b3:0x20c,_0x280b64:0x214,_0x44fd06:0x2d6,_0x24af57:0x35c,_0x1609f4:0x2dc,_0x41f91b:0x2fe,_0x252de7:0x3b2,_0x5a737b:0x3ba,_0xdf27ee:0x47e,_0x4ff776:0x48e,_0x5c6a79:0x1e8,_0x578d4d:0x283,_0x563285:0x209,_0x31a6e2:0x287,_0x3456bd:0x2cb,_0x589de0:0x23a,_0xbc41ec:0x2af,_0x1aba52:0x27a,_0x2ca34b:0x21c,_0x37c6b7:0x215,_0x25976c:0x333,_0x8b437d:0x363,_0x140db0:0x3c6,_0x509179:0x483,_0x207ad5:0x1a0,_0x31642b:0x376,_0x2b3057:0x3a6,_0x522537:0x39b,_0x3e5a7a:0x338,_0x289e60:0x278,_0x10cbba:0x399,_0x598e9b:0x28e,_0x455b05:0x2fe,_0x26db50:0x302,_0x2bfefc:0x301,_0x1c3b9f:0x27e,_0x18d7ca:0x3f2,_0x3d2a55:0x506,_0x32df38:0x316,_0xa7cb46:0x287,_0x572314:0x3c0,_0x4ec115:0x309,_0x173187:0x2c4,_0x321d69:0x2d0,_0x56db4e:0x2a1,_0x2ffc63:0x294,_0x2a72e9:0x2fc,_0x3662ba:0x2e5,_0x2e13a0:0x259,_0x2fe1fd:0x35f,_0x2bc981:0x2ae,_0x352b3a:0x23f,_0x5deb06:0x3d6,_0xf7e520:0x37e,_0x2c564d:0x34d,_0x6eda9:0x373,_0x1718bd:0x2e7,_0x1849be:0x238,_0x3b6a4a:0x315,_0x4be3ae:0x50f,_0x5f1af6:0x43b,_0x1f02bb:0x41e,_0x54ddc6:0x4d9,_0x33d7d3:0x465,_0x7d651e:0x3f0,_0x55b478:0x323,_0x584c8a:0x437,_0x19baf0:0x463,_0x552790:0x50c,_0x34486f:0x424,_0x3aa4fe:0x4d1,_0xca75f4:0x3ea,_0x1b3322:0x4a0,_0x54b820:0x36e,_0xa80b02:0x4ab,_0x2226e6:0x3b3,_0xc5f37d:0x398,_0xeebfcc:0x2e7,_0x2e09e3:0x2d4,_0x159a6b:0x316,_0x372d68:0x2f5,_0x1d00b9:0x33e,_0x429f82:0x41d,_0x4b4e49:0x4ba,_0x20f030:0x2e3,_0xa2ba6:0x39e,_0x1be1a2:0x4fc,_0x3a9dc5:0x2db,_0x145e94:0x225,_0x26e013:0x2d5,_0x4e097a:0x2c5,_0x45de2f:0x2a9,_0x1546ad:0x38c,_0x28dcfe:0x415,_0x3e63b5:0x421,_0x44230a:0x2b0,_0x4bb737:0x1d9,_0x54a5a1:0x289,_0xad0fd1:0x33b,_0x265c8f:0x327,_0x516a68:0x2d3,_0x309064:0x29f,_0xd89bcc:0x28f,_0x1d08e5:0x1e9,_0x53ab6f:0x222,_0x43bff3:0x2ec,_0x1aad34:0x29b,_0x3cc173:0x464,_0x4edb03:0x41f,_0xa4443a:0x376,_0x5ecf17:0x31b,_0xf750b3:0x1de,_0x303090:0x222,_0x709c17:0x370,_0x35adbf:0x1f1,_0x3b37d8:0x1be,_0x441cac:0x33c,_0x11c47d:0x32f,_0x5cff0c:0x43a,_0x3158c6:0x3ab,_0x3083c8:0x30d,_0x2adf33:0x380,_0x2990ba:0x314,_0x4403bb:0x35a,_0x9bc850:0x339,_0x3abe47:0x2a8,_0x12ddd9:0x340,_0x2f4911:0x460,_0x44b507:0x439,_0x2031ab:0x237,_0x573574:0x24e,_0x1dad8a:0x28b,_0x549a1b:0x2b6,_0x474603:0x20d,_0x5d01a5:0x2fa,_0x88bb97:0x31c,_0x3a7b09:0x438,_0xddf15c:0x429,_0x563b10:0x4e7,_0x25c673:0x3d5,_0x5c7c76:0x367,_0x19e79d:0x301,_0x4c2bbd:0x3bb,_0x59da1f:0x2ff,_0x12220a:0x202,_0x39bdd2:0x35d,_0x2f1e1a:0x394,_0x2d6fcf:0x39a,_0x208b9c:0x327,_0x508465:0x311,_0x237fde:0x338,_0xf536d0:0x42e,_0x3a41ec:0x466,_0x9a5e1d:0x3c9,_0x3f5b49:0x3e6,_0x5015a3:0x3a5,_0x59adde:0x4fb,_0x4c017d:0x32d,_0xb0cb98:0x2f0,_0x57fd45:0x289,_0x1e3634:0x37e,_0x3cb909:0x37b,_0x26459b:0x33d,_0x31bfea:0x321,_0x5cfc6d:0x429,_0x33cd12:0x292,_0x2c2cee:0x2f5,_0x45ef52:0x4d0,_0x11926c:0x48f,_0x33889b:0x372,_0x5b53b7:0x36b,_0x206df7:0x37a,_0x4ba554:0x355,_0x30db8a:0x33e,_0x2954e4:0x2d9,_0x3e0896:0x30b,_0x4d8de8:0x338,_0x580795:0x2e4,_0x38a851:0x21f,_0x2f26b9:0x25c,_0x5cefd5:0x21e,_0x1ec9a6:0x366,_0x32ef92:0x31e,_0x20427f:0x381,_0x23c8b4:0x354,_0x2f91f5:0x300,_0x18ecc8:0x32d,_0x380087:0x43b,_0x5930d5:0x3f8,_0x22c0f1:0x37e,_0x3e38ce:0x3ec,_0x1d67db:0x339,_0x10b4e6:0x2c6,_0x51daa3:0x362,_0x308210:0x270,_0x5023b6:0x37a,_0x251e9e:0x2da,_0x52fc09:0x2eb,_0x10bdb5:0x450,_0x3258c7:0x3ca,_0x7014fc:0x4ad,_0x5278d1:0x39c,_0x112f71:0x44b,_0x251d24:0x43b,_0x34dcf5:0x440,_0x466a56:0x459,_0x1d2e2e:0x4a9,_0x14c720:0x335,_0x283d67:0x28d,_0x4fecdc:0x339,_0x166a84:0x4a2,_0x1307b3:0x342,_0x2b6066:0x3c6,_0x38a05d:0x398,_0x2b8be5:0x304,_0x4153ff:0x2d6,_0x522a08:0x409,_0x4b5325:0x2ed,_0x26889f:0x2e2,_0x3b2eee:0x275,_0x3ccac8:0x349,_0x4811e5:0x2c8,_0x3a7651:0x1f0,_0x4ac7f8:0x20b,_0x499659:0x2f3,_0x2c84de:0x24a,_0x3dd951:0x212,_0x6541dd:0x2b4,_0x5853ac:0x22f,_0x3f899f:0x352,_0x3069dd:0x40c},_0x4b06a9={_0x2c8174:0xc7,_0x298e78:0x51b},_0xf0978={_0xb60a67:0x10f};function _0xf613aa(_0x25f5eb,_0x4a9e12,_0x3f3f83,_0x580672){return _0x55f0a4(_0x25f5eb-0x1e9,_0x4a9e12-_0xf0978._0xb60a67,_0x4a9e12,_0x25f5eb-0x5fa);}switch(_0x982a5a){case _0xf613aa(_0x544f92._0x1557d6,0x2a8,_0x544f92._0x3e6e72,0x373):{const _0x2e38b1=typeof _0x26a19d[_0x627e01(_0x544f92._0x271b02,0x2ab,0x27f,0x222)]===_0x627e01(_0x544f92._0x3916c4,0x1f9,_0x544f92._0x4a6140,0x29b)?_0x26a19d[_0x627e01(0x239,0x296,0x1fb,0x222)]:0x0,_0x4ff231=typeof _0x26a19d['delta']===_0xf613aa(0x43b,0x45c,_0x544f92._0x5664d8,0x4b1)?_0x26a19d[_0x627e01(_0x544f92._0x370084,0x2ec,0x33a,0x289)]:'';if(_0x4ff231[_0x627e01(_0x544f92._0x4b3d53,0x2e4,_0x544f92._0x5a1a9d,0x30b)]>0x0){const _0x565cc1=this[_0xf613aa(0x373,0x3ed,0x2cb,_0x544f92._0x255038)]['get'](_0x2e38b1)??[];return _0x565cc1[_0x627e01(_0x544f92._0x2e2ac6,_0x544f92._0x49ac2b,0x277,0x235)](_0x4ff231),this[_0xf613aa(_0x544f92._0x435082,0x3e4,0x355,_0x544f92._0x5dbf0b)][_0xf613aa(0x418,_0x544f92._0x531c7e,0x454,_0x544f92._0x4b8501)](_0x2e38b1,_0x565cc1),[{'type':'content_delta','index':_0x2e38b1,'text':_0x4ff231}];}break;}case'response.output_item.added':{const _0x30db6a=typeof _0x26a19d[_0x627e01(_0x544f92._0x1a81e3,_0x544f92._0x52e2e6,_0x544f92._0x5aae1a,_0x544f92._0x542225)]==='number'?_0x26a19d[_0xf613aa(0x301,_0x544f92._0x5c3dfd,0x39f,0x349)]:void 0x0,_0x5178fb=_0x26a19d['item'];if(_0x5178fb?.[_0x627e01(_0x544f92._0x60c282,_0x544f92._0x505b8c,0x2b3,_0x544f92._0x465c62)]==='function_call'&&_0x5178fb['call_id']&&_0x5178fb[_0x627e01(0x33e,0x35b,_0x544f92._0x2894da,0x389)])return this[_0x627e01(0x2e4,0x280,0x1eb,_0x544f92._0x2f8cad)][_0x627e01(_0x544f92._0x5dc178,0x332,0x3f3,_0x544f92._0x563a60)](_0x5178fb[_0x627e01(_0x544f92._0x267c4d,0x2c2,_0x544f92._0x12eb16,0x259)],{'id':_0x5178fb['call_id'],'type':_0xf613aa(0x47e,0x3f9,0x518,_0x544f92._0x40f94b),'function':{'name':_0x5178fb[_0x627e01(0x355,0x31d,0x2cc,_0x544f92._0x5eb4ad)],'arguments':''}}),_0x30db6a!==void 0x0&&(this['outputIndexToCallId'][_0xf613aa(_0x544f92._0x33473c,0x412,_0x544f92._0x3ba300,_0x544f92._0x319b97)](_0x30db6a,_0x5178fb[_0x627e01(_0x544f92._0x41b1fd,_0x544f92._0xe60107,_0x544f92._0x377cac,0x259)]),this[_0xf613aa(0x2fb,_0x544f92._0x51951a,0x31c,_0x544f92._0x51951a)][_0x627e01(0x3b1,_0x544f92._0x2c2617,0x33f,0x339)](_0x5178fb[_0x627e01(0x228,_0x544f92._0xb97c9e,_0x544f92._0x19c1a6,_0x544f92._0x2cc977)],_0x30db6a)),[{'type':_0x627e01(_0x544f92._0x27d9b9,0x2a8,0x1b7,0x239),'id':_0x5178fb['call_id'],'index':_0x30db6a??0x0,'name':_0x5178fb[_0x627e01(0x354,_0x544f92._0x370084,0x43e,_0x544f92._0x5eb4ad)]}];if(_0x5178fb?.['type']==='reasoning'&&_0x5178fb['id']){const _0x5251e0=this[_0xf613aa(_0x544f92._0x4c8408,0x4e2,_0x544f92._0x3953cf,_0x544f92._0x5248bc)](_0x5178fb['id'],_0x30db6a);_0x30db6a!==void 0x0&&this[_0xf613aa(0x429,_0x544f92._0x333118,_0x544f92._0x31a854,0x425)][_0x627e01(0x2e4,0x2dd,0x329,0x339)](_0x30db6a,_0x5251e0['id']);}break;}case _0xf613aa(0x3d9,0x38f,_0x544f92._0x2cf6fa,0x345):{const _0x2c0848=typeof _0x26a19d[_0xf613aa(0x338,_0x544f92._0x8f5bfb,0x35e,0x3a3)]===_0xf613aa(0x43b,0x40c,0x410,0x465)?_0x26a19d[_0x627e01(0x2a0,0x267,_0x544f92._0x19e6f9,0x259)]:typeof _0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x1a41e6,_0x544f92._0xc161ae,0x390)]===_0xf613aa(_0x544f92._0xc161ae,0x3f9,0x3da,_0x544f92._0x21a9ec)?this[_0xf613aa(_0x544f92._0x3a9b0b,0x3ce,0x307,_0x544f92._0x5a4420)][_0x627e01(_0x544f92._0x5a13fa,_0x544f92._0x7faa72,0x2c8,0x340)](_0x26a19d['output_index']):void 0x0,_0xea1cb9=typeof _0x26a19d[_0x627e01(_0x544f92._0x51a2b3,0x230,_0x544f92._0x280b64,0x289)]===_0x627e01(0x3df,_0x544f92._0x44fd06,0x3f5,_0x544f92._0x24af57)?_0x26a19d[_0xf613aa(0x368,_0x544f92._0x1609f4,_0x544f92._0x41f91b,0x3d5)]:'',_0x33164b=_0x2c0848?this[_0xf613aa(0x306,0x2b1,0x250,_0x544f92._0x252de7)]['get'](_0x2c0848):void 0x0;if(_0x33164b&&_0xea1cb9[_0x627e01(0x315,0x312,_0x544f92._0x5a737b,0x30b)]>0x0)return _0x33164b[_0xf613aa(_0x544f92._0xdf27ee,0x3ea,_0x544f92._0x4ff776,0x3fa)][_0x627e01(_0x544f92._0x5c6a79,_0x544f92._0x578d4d,_0x544f92._0x563285,_0x544f92._0x31a6e2)]+=_0xea1cb9,[{'type':_0x627e01(_0x544f92._0x3456bd,0x196,_0x544f92._0x589de0,0x239),'id':_0x33164b['id'],'index':this[_0x627e01(0x221,_0x544f92._0xbc41ec,_0x544f92._0x1aba52,_0x544f92._0x2ca34b)][_0x627e01(0x383,0x299,0x37d,0x340)](_0x33164b['id'])??(typeof _0x26a19d[_0x627e01(0x1e4,0x1b4,_0x544f92._0x37c6b7,0x222)]==='number'?_0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x25976c,_0x544f92._0x8b437d,0x37a)]:0x0),'inputDelta':_0xea1cb9}];break;}case _0xf613aa(_0x544f92._0x140db0,0x3ab,_0x544f92._0x509179,0x46c):{const _0x347f0b=typeof _0x26a19d[_0x627e01(_0x544f92._0x207ad5,0x26a,0x2c5,_0x544f92._0x27d9b9)]===_0x627e01(_0x544f92._0x31642b,_0x544f92._0x2b3057,_0x544f92._0x522537,_0x544f92._0x24af57)?_0x26a19d[_0xf613aa(_0x544f92._0x3e5a7a,_0x544f92._0x289e60,0x2a8,0x3b0)]:typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x10cbba,_0x544f92._0x598e9b,_0x544f92._0x455b05)]==='number'?this[_0x627e01(_0x544f92._0x26db50,0x2ce,0x2c2,0x2b4)]['get'](_0x26a19d[_0xf613aa(_0x544f92._0x2bfefc,_0x544f92._0x1c3b9f,0x33b,0x3bc)]):void 0x0,_0x5ed2ec=_0x347f0b?this[_0xf613aa(0x306,0x2c3,0x2a1,0x331)][_0x627e01(_0x544f92._0x18d7ca,0x3ea,0x286,0x340)](_0x347f0b):void 0x0;_0x5ed2ec&&typeof _0x26a19d['arguments']==='string'&&(_0x5ed2ec[_0xf613aa(0x47e,0x495,0x461,_0x544f92._0x3d2a55)]['arguments']=_0x26a19d[_0x627e01(0x27f,0x1c7,_0x544f92._0x32df38,_0x544f92._0xa7cb46)]);break;}case _0xf613aa(_0x544f92._0x572314,0x35e,_0x544f92._0x4ec115,0x3a6):{const _0x3f519e=typeof _0x26a19d['output_index']==='number'?_0x26a19d['output_index']:void 0x0,_0x3d373a=_0x26a19d['item'];if(_0x3d373a?.[_0x627e01(_0x544f92._0x173187,0x22b,_0x544f92._0x321d69,_0x544f92._0x56db4e)]===_0x627e01(0x3b0,0x3db,_0x544f92._0x2ffc63,0x337)){const _0x5a6eaf=_0x3d373a[_0x627e01(_0x544f92._0x2a72e9,_0x544f92._0x3662ba,0x204,_0x544f92._0x2e13a0)]??(_0x3f519e!==void 0x0?this[_0xf613aa(0x393,_0x544f92._0x2fe1fd,0x303,0x3d1)]['get'](_0x3f519e):void 0x0),_0x1c47de=_0x5a6eaf?this[_0x627e01(_0x544f92._0x2bc981,_0x544f92._0x352b3a,0x1ba,_0x544f92._0x2f8cad)]['get'](_0x5a6eaf):void 0x0;_0x1c47de&&typeof _0x3d373a[_0xf613aa(0x366,0x40d,_0x544f92._0x5deb06,0x401)]==='string'&&(_0x1c47de['function']['arguments']=_0x3d373a[_0xf613aa(0x366,_0x544f92._0xf7e520,_0x544f92._0x2c564d,_0x544f92._0x6eda9)]);break;}if(_0x3d373a?.[_0x627e01(_0x544f92._0x1718bd,0x2c0,_0x544f92._0x1849be,_0x544f92._0x56db4e)]==='reasoning'&&_0x3d373a['id']){const _0xbb9630=this[_0x627e01(_0x544f92._0x5eb4ad,_0x544f92._0x3b6a4a,0x2c3,0x380)](_0x3d373a['id'],_0x3f519e);typeof _0x3d373a[_0xf613aa(0x45c,0x499,_0x544f92._0x4be3ae,0x439)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0x1f02bb,_0x544f92._0x54ddc6,_0x544f92._0x33d7d3)&&(_0xbb9630[_0xf613aa(0x47a,_0x544f92._0x7d651e,0x3f7,0x408)]=_0x3d373a['encrypted_content']);if(Array[_0x627e01(_0x544f92._0x55b478,_0x544f92._0x584c8a,_0x544f92._0x5a4420,0x39d)](_0x3d373a[_0xf613aa(_0x544f92._0x19baf0,_0x544f92._0x5248bc,_0x544f92._0x552790,_0x544f92._0x34486f)]))for(let _0x4a0f07=0x0;_0x4a0f07<_0x3d373a[_0xf613aa(0x463,_0x544f92._0x3aa4fe,0x519,0x3b2)][_0xf613aa(_0x544f92._0xca75f4,_0x544f92._0x1b3322,_0x544f92._0x54b820,_0x544f92._0xa80b02)];_0x4a0f07+=0x1){const _0x1f6d2e=_0x3d373a[_0xf613aa(0x463,_0x544f92._0x2226e6,0x475,0x466)][_0x4a0f07];_0x1f6d2e[_0xf613aa(0x380,0x34a,_0x544f92._0xc5f37d,_0x544f92._0xeebfcc)]===_0x627e01(_0x544f92._0x2e09e3,0x37a,0x2d4,_0x544f92._0x159a6b)&&typeof _0x1f6d2e[_0x627e01(_0x544f92._0x372d68,_0x544f92._0x1d00b9,0x333,0x2bd)]==='string'&&_0xbb9630['summaryByIndex'][_0xf613aa(_0x544f92._0x33473c,_0x544f92._0x429f82,_0x544f92._0x4b4e49,_0x544f92._0x40f94b)](_0x4a0f07,_0x1f6d2e[_0x627e01(0x318,_0x544f92._0x435082,_0x544f92._0x20f030,0x2bd)]);}typeof _0x3d373a[_0x627e01(0x32a,0x22c,0x298,0x2bd)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0xa2ba6,_0x544f92._0x1be1a2,0x481)&&_0xbb9630[_0x627e01(0x328,_0x544f92._0x3a9dc5,_0x544f92._0x145e94,_0x544f92._0x26e013)][_0x627e01(_0x544f92._0x4e097a,_0x544f92._0x45de2f,_0x544f92._0x1546ad,0x339)](0x0,_0x3d373a[_0xf613aa(0x39c,0x305,_0x544f92._0x28dcfe,_0x544f92._0x3e63b5)]);}break;}case'response.reasoning_summary_text.delta':{const _0x5e0e07=typeof _0x26a19d[_0x627e01(_0x544f92._0x44230a,0x2f3,0x218,0x289)]===_0xf613aa(0x43b,0x472,0x49a,0x399)?_0x26a19d[_0x627e01(0x1c8,_0x544f92._0x4bb737,0x2b7,_0x544f92._0x54a5a1)]:'',_0xc3f16=typeof _0x26a19d[_0xf613aa(0x37e,0x2fd,0x322,_0x544f92._0xad0fd1)]===_0x627e01(0x3ab,_0x544f92._0x265c8f,0x2a8,_0x544f92._0x24af57)?_0x26a19d[_0x627e01(_0x544f92._0x516a68,0x1e2,0x1f9,_0x544f92._0x309064)]:typeof _0x26a19d[_0x627e01(_0x544f92._0xd89bcc,_0x544f92._0x1d08e5,0x26c,_0x544f92._0x53ab6f)]===_0x627e01(0x30d,0x290,_0x544f92._0x43bff3,_0x544f92._0x1aad34)?this[_0xf613aa(0x429,0x39f,0x3e2,_0x544f92._0x3cc173)][_0xf613aa(_0x544f92._0x4edb03,_0x544f92._0xa4443a,0x3a7,0x3dc)](_0x26a19d['output_index']):void 0x0,_0x41c349=typeof _0x26a19d[_0xf613aa(0x301,0x2b8,0x243,_0x544f92._0x5ecf17)]===_0x627e01(0x2c1,_0x544f92._0xe60107,0x26a,0x29b)?_0x26a19d[_0x627e01(0x241,_0x544f92._0xf750b3,0x2e2,_0x544f92._0x303090)]:0x0,_0x4014cc=typeof _0x26a19d[_0xf613aa(0x35d,_0x544f92._0x709c17,0x29d,0x317)]===_0x627e01(0x33d,0x232,_0x544f92._0x35adbf,_0x544f92._0x267c4d)?_0x26a19d[_0x627e01(_0x544f92._0x3b37d8,0x2e3,0x28d,0x27e)]:0x0;if(_0xc3f16&&_0x5e0e07[_0x627e01(_0x544f92._0x441cac,_0x544f92._0x11c47d,_0x544f92._0xe60107,0x30b)]>0x0){const _0x3e07d7=this[_0x627e01(_0x544f92._0x5cff0c,_0x544f92._0x3158c6,_0x544f92._0x3083c8,_0x544f92._0x2adf33)](_0xc3f16,_0x41c349);_0x3e07d7[_0x627e01(0x3a0,_0x544f92._0x2990ba,0x332,_0x544f92._0x4403bb)][_0x627e01(0x3d6,0x3c0,0x2d7,_0x544f92._0x9bc850)](_0x4014cc,''+(_0x3e07d7['summaryByIndex'][_0x627e01(0x2a9,_0x544f92._0x3abe47,0x342,_0x544f92._0x12ddd9)](_0x4014cc)??'')+_0x5e0e07);if(isUserVisibleReasoning(this[_0xf613aa(_0x544f92._0x2f4911,_0x544f92._0x44b507,0x3cf,0x4b4)]))return[{'type':'openai_reasoning_summary_delta','delta':_0x5e0e07,'itemId':_0xc3f16,'outputIndex':_0x41c349,'summaryIndex':_0x4014cc}];}break;}case _0x627e01(0x2e2,_0x544f92._0x2031ab,_0x544f92._0x573574,_0x544f92._0x1dad8a):{const _0x35e0b5=typeof _0x26a19d[_0x627e01(_0x544f92._0x549a1b,0x213,_0x544f92._0x474603,0x29f)]===_0x627e01(_0x544f92._0x5d01a5,0x3bb,0x2e0,0x35c)?_0x26a19d['item_id']:typeof _0x26a19d['output_index']===_0xf613aa(_0x544f92._0xc161ae,0x32c,_0x544f92._0x88bb97,_0x544f92._0x3a7b09)?this[_0xf613aa(_0x544f92._0xddf15c,_0x544f92._0x563b10,0x41f,_0x544f92._0x25c673)][_0xf613aa(0x41f,0x43e,_0x544f92._0x5c7c76,0x3ae)](_0x26a19d[_0x627e01(0x174,0x1a9,0x2be,0x222)]):void 0x0,_0x506655=typeof _0x26a19d[_0xf613aa(_0x544f92._0x19e79d,0x338,0x3bb,_0x544f92._0x4c2bbd)]===_0x627e01(_0x544f92._0x59da1f,_0x544f92._0x12220a,0x33d,0x29b)?_0x26a19d[_0x627e01(0x1a4,0x229,0x1b2,_0x544f92._0x53ab6f)]:0x0,_0x3ad3a0=typeof _0x26a19d[_0xf613aa(_0x544f92._0x39bdd2,_0x544f92._0x2f1e1a,_0x544f92._0x2d6fcf,_0x544f92._0x25976c)]==='number'?_0x26a19d['summary_index']:0x0,_0x56f28e=typeof _0x26a19d[_0x627e01(0x205,_0x544f92._0x208b9c,0x225,0x2bd)]==='string'?_0x26a19d['text']:'';_0x35e0b5&&this['getOrCreateReasoningItem'](_0x35e0b5,_0x506655)[_0x627e01(_0x544f92._0x508465,_0x544f92._0x237fde,0x2ea,0x35a)]['set'](_0x3ad3a0,_0x56f28e);break;}case _0xf613aa(_0x544f92._0xf536d0,_0x544f92._0x3a41ec,_0x544f92._0x9a5e1d,_0x544f92._0x3f5b49):{const _0x2c03c1=typeof _0x26a19d[_0xf613aa(0x368,0x3ad,0x420,_0x544f92._0x5015a3)]===_0xf613aa(0x43b,0x39d,_0x544f92._0x59adde,0x4d4)?_0x26a19d[_0x627e01(_0x544f92._0x4c017d,_0x544f92._0xb0cb98,0x1eb,_0x544f92._0x57fd45)]:'',_0x50d01f=typeof _0x26a19d[_0xf613aa(_0x544f92._0x1e3634,_0x544f92._0x3cb909,_0x544f92._0x26459b,_0x544f92._0x31bfea)]===_0xf613aa(_0x544f92._0x5f1af6,_0x544f92._0x5cfc6d,0x410,0x441)?_0x26a19d['item_id']:typeof _0x26a19d['output_index']===_0x627e01(0x2a9,0x1e3,_0x544f92._0x33cd12,0x29b)?this[_0x627e01(_0x544f92._0x2c2cee,0x308,0x33a,0x34a)][_0xf613aa(_0x544f92._0x4edb03,0x4dd,_0x544f92._0x45ef52,_0x544f92._0x11926c)](_0x26a19d[_0xf613aa(_0x544f92._0x4ef9de,_0x544f92._0x33889b,_0x544f92._0x4c2bbd,0x3a0)]):void 0x0,_0x2fb0a0=typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x5b53b7,_0x544f92._0x12ddd9,0x324)]===_0xf613aa(_0x544f92._0x206df7,_0x544f92._0x4ba554,0x3c7,0x2b8)?_0x26a19d['output_index']:0x0,_0x3cdef4=typeof _0x26a19d['content_index']==='number'?_0x26a19d[_0x627e01(0x419,0x352,0x442,0x387)]:0x0;if(_0x50d01f&&_0x2c03c1[_0x627e01(0x2ca,_0x544f92._0x30db8a,_0x544f92._0x2954e4,_0x544f92._0x3e0896)]>0x0){const _0x442565=this[_0x627e01(_0x544f92._0x4d8de8,0x3ec,_0x544f92._0x580795,0x380)](_0x50d01f,_0x2fb0a0);_0x442565[_0x627e01(_0x544f92._0x38a851,_0x544f92._0x2f26b9,_0x544f92._0x5cefd5,_0x544f92._0x26e013)]['set'](_0x3cdef4,''+(_0x442565[_0xf613aa(0x3b4,0x383,_0x544f92._0x2a72e9,0x3de)][_0xf613aa(0x41f,0x38b,0x496,0x3ab)](_0x3cdef4)??'')+_0x2c03c1);if(isUserVisibleReasoning(this[_0x627e01(0x359,_0x544f92._0x1ec9a6,_0x544f92._0x32ef92,_0x544f92._0x20427f)]))return[{'type':'openai_reasoning_delta','contentIndex':_0x3cdef4,'delta':_0x2c03c1,'itemId':_0x50d01f,'outputIndex':_0x2fb0a0}];}break;}case'response.reasoning_text.done':{const _0x230fd5=typeof _0x26a19d[_0xf613aa(0x37e,_0x544f92._0x23c8b4,_0x544f92._0x2f91f5,_0x544f92._0x18ecc8)]===_0xf613aa(_0x544f92._0x380087,0x3d0,_0x544f92._0x5930d5,0x4f0)?_0x26a19d[_0xf613aa(_0x544f92._0x22c0f1,0x32e,0x34c,_0x544f92._0x3e38ce)]:typeof _0x26a19d[_0x627e01(0x16d,_0x544f92._0x4a6140,0x253,0x222)]==='number'?this[_0x627e01(0x2b0,0x304,_0x544f92._0x1d67db,0x34a)][_0x627e01(0x2bc,0x362,0x29e,0x340)](_0x26a19d['output_index']):void 0x0,_0x5a63db=typeof _0x26a19d[_0xf613aa(0x301,_0x544f92._0x10b4e6,_0x544f92._0x51daa3,_0x544f92._0x308210)]==='number'?_0x26a19d[_0x627e01(0x1e2,0x2d1,0x2d1,0x222)]:0x0,_0x327689=typeof _0x26a19d['content_index']===_0xf613aa(_0x544f92._0x5023b6,_0x544f92._0x251e9e,_0x544f92._0x52fc09,0x36e)?_0x26a19d[_0xf613aa(_0x544f92._0x3a41ec,_0x544f92._0x10bdb5,_0x544f92._0x3258c7,_0x544f92._0x7014fc)]:0x0,_0x1a8a3a=typeof _0x26a19d[_0xf613aa(_0x544f92._0x5278d1,0x36a,_0x544f92._0x112f71,_0x544f92._0x25c673)]===_0xf613aa(_0x544f92._0x251d24,0x4e8,_0x544f92._0x255038,0x4fa)?_0x26a19d[_0xf613aa(0x39c,0x341,_0x544f92._0x34dcf5,0x393)]:'';_0x230fd5&&this[_0xf613aa(0x45f,_0x544f92._0x466a56,_0x544f92._0x1d2e2e,0x481)](_0x230fd5,_0x5a63db)['textByIndex'][_0x627e01(_0x544f92._0x14c720,_0x544f92._0x51daa3,_0x544f92._0x283d67,_0x544f92._0x4fecdc)](_0x327689,_0x1a8a3a);break;}case _0xf613aa(0x46d,_0x544f92._0x166a84,0x515,0x41f):{this['finalResponse']=_0x26a19d[_0xf613aa(0x3e4,0x3c3,0x46f,_0x544f92._0x1307b3)];break;}case _0xf613aa(0x42f,0x444,0x446,0x3f9):{const _0x2591d1=_0x26a19d['response'];throw new OpenAiResponsesStreamError(_0x2591d1?.[_0xf613aa(0x349,_0x544f92._0x2b6066,_0x544f92._0x21a9ec,_0x544f92._0x38a05d)]?.['message']??'Responses\x20stream\x20failed',{'code':_0x2591d1?.[_0xf613aa(0x349,_0x544f92._0x2b8be5,_0x544f92._0x4153ff,_0x544f92._0x522a08)]?.[_0x627e01(0x2b3,_0x544f92._0x4b5325,_0x544f92._0x26889f,_0x544f92._0x3b2eee)]});}case _0xf613aa(_0x544f92._0x3ccac8,0x33b,0x2bd,0x2bc):{const _0x36365d=_0x26a19d[_0x627e01(_0x544f92._0x3a9dc5,0x241,0x26d,0x26a)];throw new OpenAiResponsesStreamError(_0x36365d?.[_0x627e01(0x258,0x253,0x30b,_0x544f92._0x4811e5)]??'Responses\x20stream\x20failed',{'code':_0x36365d?.[_0x627e01(_0x544f92._0x3a7651,_0x544f92._0x4ac7f8,_0x544f92._0x499659,0x275)],'status':typeof _0x26a19d[_0x627e01(_0x544f92._0x2c84de,_0x544f92._0x3dd951,_0x544f92._0x6541dd,0x273)]===_0x627e01(0x218,0x33b,_0x544f92._0x5853ac,_0x544f92._0x1aad34)?_0x26a19d[_0xf613aa(_0x544f92._0x3f899f,0x389,_0x544f92._0x3069dd,0x32c)]:void 0x0});}}function _0x627e01(_0x111866,_0x36b702,_0x563817,_0x1ecd09){return _0x55f0a4(_0x111866-0xdf,_0x36b702-_0x4b06a9._0x2c8174,_0x563817,_0x1ecd09-_0x4b06a9._0x298e78);}return[];}[_0x55f0a4(-0x1e8,-0x284,-0x1fd,-0x244)](){const _0x5f047c={_0x2ee5a7:0x2a5,_0xabeb10:0x3f8,_0x470c5b:0x439,_0x42fd2c:0x3a5,_0x49c4ac:0x393,_0x562ffd:0x328,_0x33b35a:0x391,_0x499664:0x372,_0x22bb3a:0x3ad,_0xf95334:0x31f,_0x835cfb:0x23a,_0x53c6b4:0x252,_0x3795d7:0x35e,_0x2b67e4:0x336,_0x111b50:0x3fc,_0xe48e75:0x347,_0x1ea61b:0x32c,_0x2b4225:0x3a8,_0x3f39f9:0x322,_0x57b989:0x493,_0x925ed9:0x35b,_0x2a04fe:0x341,_0x51be37:0x428,_0x513dd0:0x3b9,_0x19eeb2:0x413,_0x4477f:0x3c1,_0x1be0fc:0x307,_0x3cacdf:0x2a3,_0x1ccfdb:0x277,_0x1778fe:0x256,_0x15f8ab:0x1fe,_0x595541:0x39b,_0x3d95f5:0x3c0,_0x1c3e3a:0x36e,_0x50e981:0x393,_0x28f197:0x2c4,_0x2c6459:0x3ab,_0x15aa46:0x33c,_0x2092a2:0x323,_0x3ac5c3:0x2d9,_0x11f782:0x2b9,_0xb11751:0x3e9,_0x4f61ab:0x2d0,_0x3124b3:0x3a0,_0x9667e0:0x2e8,_0x58c1fe:0x310,_0x527d8d:0x2e8,_0x5b72de:0x306,_0x1c316e:0x34b,_0xd4d0b5:0x314,_0x565623:0x314,_0x242158:0x20a,_0x40eae0:0x376,_0x2e01a8:0x331,_0x190c0e:0x376,_0x674bbc:0x3c2,_0x17231d:0x2de,_0x4b6525:0x39e,_0x5005f1:0x36d,_0x26dbed:0x3d5,_0x55a370:0x313,_0x472634:0x371,_0x4d4e4b:0x3d5,_0x44042b:0x30f,_0xc6390d:0x2bd,_0x5830cd:0x3bc,_0x330417:0x36d,_0x5be1ed:0x2a0,_0x34061e:0x341},_0x5c1dcb={_0x328e0a:0x582},_0x5461b9={_0x54c75f:0xca,_0x34a1c0:0xb},_0xccda9e=[];for(const [_0x4186fb,_0x1fcf1c]of this[_0x39bfcd(0x2c6,_0x5f047c._0x2ee5a7,0x2ca,0x27c)][_0x39bfcd(_0x5f047c._0xabeb10,_0x5f047c._0x470c5b,_0x5f047c._0x42fd2c,_0x5f047c._0x49c4ac)]()){const _0x2fe1b6=_0x1fcf1c[_0x57eea8(_0x5f047c._0x562ffd,_0x5f047c._0x33b35a,0x337,0x32e)]('');if(_0x2fe1b6[_0x57eea8(0x36f,0x355,_0x5f047c._0x499664,_0x5f047c._0x22bb3a)]===0x0)continue;_0xccda9e[_0x39bfcd(_0x5f047c._0xf95334,_0x5f047c._0x835cfb,0x26b,_0x5f047c._0x53c6b4)]({'index':_0x4186fb,'item':{'type':'message','role':'assistant','content':[{'type':_0x57eea8(0x3ce,0x2fd,_0x5f047c._0x3795d7,_0x5f047c._0x2b67e4),'text':_0x2fe1b6}]}});}for(const _0x3cae41 of this[_0x57eea8(_0x5f047c._0x111b50,0x3d0,_0x5f047c._0xe48e75,_0x5f047c._0x1ea61b)][_0x39bfcd(0x3b6,0x292,0x314,_0x5f047c._0x2b4225)]()){_0xccda9e['push']({'index':_0x3cae41['outputIndex']??_0xccda9e[_0x57eea8(0x2ec,0x2e0,0x372,_0x5f047c._0x3f39f9)],'item':{'type':_0x57eea8(_0x5f047c._0x57b989,0x489,0x3f6,_0x5f047c._0x925ed9),'id':_0x3cae41['id'],..._0x3cae41[_0x57eea8(_0x5f047c._0x2a04fe,_0x5f047c._0x51be37,0x402,0x3c6)]?{'encrypted_content':_0x3cae41[_0x39bfcd(_0x5f047c._0x513dd0,0x41f,0x3d1,0x318)]}:{},..._0x3cae41[_0x57eea8(_0x5f047c._0x111b50,_0x5f047c._0x19eeb2,_0x5f047c._0x4477f,0x421)][_0x57eea8(0x2c1,_0x5f047c._0x1be0fc,_0x5f047c._0x3cacdf,0x231)]>0x0?{'summary':Array[_0x39bfcd(0x258,_0x5f047c._0x1ccfdb,_0x5f047c._0x1778fe,_0x5f047c._0x15f8ab)](_0x3cae41[_0x39bfcd(_0x5f047c._0x595541,0x324,0x390,_0x5f047c._0x3d95f5)]['entries']())[_0x39bfcd(0x2d8,_0x5f047c._0x1c3e3a,0x38b,0x401)]((_0x1831cb,_0x2bbd51)=>_0x1831cb[0x0]-_0x2bbd51[0x0])[_0x39bfcd(0x27f,_0x5f047c._0x50e981,0x310,_0x5f047c._0x28f197)](([,_0x47940c])=>{return{'type':'summary_text','text':_0x47940c};})}:{},..._0x3cae41[_0x57eea8(0x2de,_0x5f047c._0x2c6459,_0x5f047c._0x15aa46,0x33f)][_0x57eea8(0x208,_0x5f047c._0x2092a2,_0x5f047c._0x3cacdf,_0x5f047c._0x3ac5c3)]>0x0?{'text':Array[_0x57eea8(0x1db,0x289,0x287,_0x5f047c._0x11f782)](_0x3cae41['textByIndex']['entries']())[_0x39bfcd(_0x5f047c._0xb11751,0x416,0x38b,_0x5f047c._0x4f61ab)]((_0x13ed8b,_0x2a3890)=>_0x13ed8b[0x0]-_0x2a3890[0x0])[_0x39bfcd(_0x5f047c._0x3124b3,_0x5f047c._0x9667e0,_0x5f047c._0x58c1fe,_0x5f047c._0x527d8d)](([,_0x10340b])=>_0x10340b)[_0x39bfcd(0x253,0x36b,_0x5f047c._0x5b72de,0x253)]('')}:{}}});}function _0x39bfcd(_0x40c2e9,_0x43ef75,_0x5771e9,_0x31c0ea){return _0x2e041c(_0x40c2e9-_0x5461b9._0x54c75f,_0x43ef75-_0x5461b9._0x34a1c0,_0x5771e9-0x3a4,_0x40c2e9);}function _0x57eea8(_0x35a345,_0x4fe7d3,_0x30d3f5,_0x35cd33){return _0x55f0a4(_0x35a345-0xe,_0x4fe7d3-0x50,_0x35cd33,_0x30d3f5-_0x5c1dcb._0x328e0a);}for(const _0x4f56b8 of this['toolCalls'][_0x39bfcd(0x2ac,_0x5f047c._0x1c316e,_0x5f047c._0xd4d0b5,0x37b)]()){_0xccda9e['push']({'index':this[_0x39bfcd(0x195,_0x5f047c._0x565623,0x252,_0x5f047c._0x242158)][_0x39bfcd(0x2ef,0x3d4,_0x5f047c._0x40eae0,0x3e0)](_0x4f56b8['id'])??_0xccda9e[_0x57eea8(_0x5f047c._0x2e01a8,_0x5f047c._0x190c0e,_0x5f047c._0x499664,0x3cd)],'item':{'type':_0x57eea8(_0x5f047c._0x674bbc,_0x5f047c._0x17231d,_0x5f047c._0x4b6525,_0x5f047c._0x5005f1),'call_id':_0x4f56b8['id'],'name':_0x4f56b8[_0x39bfcd(0x365,0x3a1,_0x5f047c._0x26dbed,0x425)][_0x57eea8(0x43b,0x43f,0x3f0,0x343)],'arguments':_0x4f56b8[_0x39bfcd(_0x5f047c._0x55a370,_0x5f047c._0x472634,_0x5f047c._0x4d4e4b,0x3ae)][_0x39bfcd(0x31e,_0x5f047c._0x44042b,_0x5f047c._0xc6390d,0x34f)]}});}return _0xccda9e[_0x57eea8(0x3a6,0x367,_0x5f047c._0x5830cd,0x3e5)]((_0x293fb4,_0x4814a3)=>_0x293fb4[_0x39bfcd(0x36d,0x336,0x358,0x3ef)]-_0x4814a3[_0x57eea8(0x3e7,0x30e,0x389,0x395)])[_0x57eea8(_0x5f047c._0x330417,_0x5f047c._0x5be1ed,_0x5f047c._0x34061e,0x2e2)](_0x280d60=>_0x280d60[_0x57eea8(0x3ad,0x332,0x30e,0x3aa)]);}[_0x55f0a4(-0xe8,-0x225,-0x24c,-0x19b)](_0x5b82db,_0x1ccfc0){const _0x4a9994={_0x136636:0xbf,_0x154532:0xb5,_0x5a12bd:0xd5,_0x5d922d:0x78,_0x1bc308:0xc8,_0xcaca88:0x8e,_0x5300d8:0x7f,_0x408ec8:0x91,_0x3ba4d7:0x14,_0x51a0cb:0x74,_0x228e61:0x29,_0x15923a:0x63,_0xe45a01:0xaa,_0xc73550:0xa,_0x57bcec:0x9,_0x574626:0x13,_0x4c63e1:0x9f},_0x3aa248={_0xfb9642:0x1d7,_0x43b0cf:0x9,_0x20efc2:0x245},_0x2dd241={_0x23942a:0x1af,_0x2c3a81:0x82,_0x84020:0x16};function _0x299c34(_0xe38f1c,_0x185462,_0x458280,_0x36445d){return _0x2e041c(_0xe38f1c-_0x2dd241._0x23942a,_0x185462-_0x2dd241._0x2c3a81,_0x36445d-_0x2dd241._0x84020,_0x458280);}const _0x467cfc=this[_0x299c34(-_0x4a9994._0x136636,-_0x4a9994._0x154532,-_0x4a9994._0x5a12bd,-_0x4a9994._0x5d922d)][_0x299c34(-0xb9,-_0x4a9994._0x1bc308,_0x4a9994._0xcaca88,-0x18)](_0x5b82db);if(_0x467cfc)return _0x1ccfc0!==void 0x0&&(_0x467cfc[_0x299c34(0x14,-_0x4a9994._0x5300d8,_0x4a9994._0x408ec8,_0x4a9994._0x3ba4d7)]=_0x1ccfc0,this[_0x16a259(0x1,_0x4a9994._0x51a0cb,_0x4a9994._0x228e61,0x117)][_0x16a259(0x101,_0x4a9994._0x15923a,0x87,_0x4a9994._0xe45a01)](_0x1ccfc0,_0x5b82db)),_0x467cfc;const _0x24e6e2={'id':_0x5b82db,'outputIndex':_0x1ccfc0,'summaryByIndex':new Map(),'textByIndex':new Map()};this[_0x16a259(-0x7e,_0x4a9994._0xc73550,_0x4a9994._0x57bcec,-0x9)][_0x16a259(_0x4a9994._0x574626,0x63,0x11c,_0x4a9994._0x4c63e1)](_0x5b82db,_0x24e6e2);function _0x16a259(_0x53edbf,_0x52e6dc,_0x5c14f3,_0x3107ac){return _0x55f0a4(_0x53edbf-_0x3aa248._0xfb9642,_0x52e6dc-_0x3aa248._0x43b0cf,_0x3107ac,_0x52e6dc-_0x3aa248._0x20efc2);}return _0x1ccfc0!==void 0x0&&this['outputIndexToReasoningId'][_0x16a259(-_0x4a9994._0x57bcec,0x63,0xce,0xea)](_0x1ccfc0,_0x5b82db),_0x24e6e2;}};function createOpenAiResponsesStreamParser(_0x4af040){return new OpenAiResponsesStreamParser(_0x4af040);}function createOpenAiSurfaces(_0x3dff38={}){const _0x9d0f53={_0x4615ea:0x7e,_0x5df3d9:0x17c,_0x4a5869:0xcf,_0x51402c:0x2c,_0x554922:0x31,_0x115acd:0x40,_0x2155e4:0x231,_0x4f00a2:0x18b,_0x11a0cd:0x182,_0x3925da:0x19c,_0x2ad146:0x1b7,_0x4657d8:0x125,_0x7edda5:0xb8,_0x5267e3:0x1f5,_0x7995d0:0x14a,_0x6899dd:0xd0,_0x29ffdf:0x152,_0x3116f2:0xc2,_0x3f6bd5:0x1fe},_0x1f298c={_0x55db7b:0x17b,_0xa7f692:0x1f9},_0x4c982f={_0x1057c5:0x13a},_0x237c6c={_0x164511:0x3e9,_0x714287:0x479},_0x361770={_0xc3cc87:0x73,_0x36455f:0x15a},_0x508682={_0x3ac662:0x1da,_0x17d5de:0x7f},_0x22c69e=_0x3dff38[_0xaffba2(_0x9d0f53._0x4615ea,_0x9d0f53._0x5df3d9,0x9e,_0x9d0f53._0x4a5869)]??_0xaffba2(0xfd,_0x9d0f53._0x51402c,-_0x9d0f53._0x554922,_0x9d0f53._0x115acd);function _0xc9427a(_0x2dcc1d,_0x16176d,_0x59f1f6,_0x4ab8af){return _0x55f0a4(_0x2dcc1d-_0x508682._0x3ac662,_0x16176d-_0x508682._0x17d5de,_0x2dcc1d,_0x59f1f6-0xc0);}function _0xaffba2(_0x1c64e3,_0xef827b,_0xe2acef,_0x4c31fb){return _0x2e041c(_0x1c64e3-_0x361770._0xc3cc87,_0xef827b-0x12b,_0x4c31fb-_0x361770._0x36455f,_0x1c64e3);}const _0x207f45=_0x3dff38[_0xc9427a(-_0x9d0f53._0x2155e4,-_0x9d0f53._0x4f00a2,-0x1f5,-_0x9d0f53._0x11a0cd)]??_0xc9427a(-_0x9d0f53._0x3925da,-0x25e,-_0x9d0f53._0x2ad146,-0x25c);return[{'id':OPENAI_CHAT_COMPLETIONS_SURFACE,'transport':_0xaffba2(_0x9d0f53._0x4657d8,0x93,_0x9d0f53._0x7edda5,0x10b),'createRequest'(_0x3f1300){return{'accept':'application/json','body':createChatRequestBody(_0x3f1300,![]),'path':_0x22c69e};},'parseResponse'(_0xba861f){return parseChatCompletionResponse(_0xba861f);}},{'id':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,'transport':_0xc9427a(-_0x9d0f53._0x5267e3,-0xcd,-_0x9d0f53._0x7995d0,-_0x9d0f53._0x6899dd),'createRequest'(_0x1f9468){return{'accept':'text/event-stream','body':createChatRequestBody(_0x1f9468,!![]),'path':_0x22c69e};},'createStreamParser'(){return new OpenAiChatCompletionsStreamParser();}},{'id':OPENAI_RESPONSES_SURFACE,'transport':_0xc9427a(-_0x9d0f53._0x29ffdf,-_0x9d0f53._0x3116f2,-0x13c,-_0x9d0f53._0x3f6bd5),'createRequest'(_0x523040){function _0xe64a56(_0x3db84e,_0x21baaa,_0x13dec5,_0xdb4361){return _0xc9427a(_0xdb4361,_0x21baaa-0x1d,_0x13dec5-0x583,_0xdb4361-0xf0);}return{'accept':_0xe64a56(0x449,_0x237c6c._0x164511,0x428,_0x237c6c._0x714287),'body':createResponsesRequestBody(_0x523040,![]),'path':_0x207f45};},'parseResponse'(_0xbaab85,_0x506d4c){return parseResponsesResponse(_0xbaab85,_0x506d4c);}},{'id':OPENAI_RESPONSES_STREAM_SURFACE,'transport':'http-sse','createRequest'(_0x302826){function _0x17cfd9(_0x1496b5,_0x4fd5f7,_0x496e9a,_0xff5a01){return _0xc9427a(_0x1496b5,_0x4fd5f7-0x2f,_0x4fd5f7-0x59,_0xff5a01-_0x4c982f._0x1057c5);}return{'accept':_0x17cfd9(-_0x1f298c._0x55db7b,-0x1cc,-_0x1f298c._0xa7f692,-0x25b),'body':createResponsesRequestBody(_0x302826,!![]),'path':_0x207f45};},'createStreamParser'(_0x1da7e6){return new OpenAiResponsesStreamParser(_0x1da7e6);}},{'id':OPENAI_RESPONSES_WEBSOCKET_SURFACE,'transport':'websocket','createRequest'(_0x1199c7){return{'initialEvent':createOpenAiResponsesWebSocketEvent(_0x1199c7),'path':_0x207f45};},'createStreamParser'(_0x59cbf8){return createOpenAiResponsesStreamParser(_0x59cbf8);}}];}var OpenAiProviderAdapter=class{[_0x2e041c(-0xbd,-0xbf,-0xcb,-0xc4)];constructor(_0x49c0ff){const _0x1c3feb={_0x4c5ed0:0x1bf,_0x1a03be:0x1c6,_0x58f379:0x266},_0x55686e={_0x1e3f14:0x12d,_0x1d207d:0x4b};function _0x1fcf28(_0x437884,_0x35d6bc,_0x539f6f,_0xb47eb8){return _0x55f0a4(_0x437884-_0x55686e._0x1e3f14,_0x35d6bc-_0x55686e._0x1d207d,_0x35d6bc,_0xb47eb8-0x4de);}this[_0x1fcf28(_0x1c3feb._0x4c5ed0,_0x1c3feb._0x1a03be,0x261,_0x1c3feb._0x58f379)]=_0x49c0ff;}[_0x55f0a4(-0x24d,-0x24e,-0x283,-0x2b0)](){return new Error('OpenAiModel\x20requires\x20an\x20apiKey\x20or\x20providerSessionResolver');}async[_0x55f0a4(-0x311,-0x215,-0x1d7,-0x254)](_0x1988f7,_0x4c7627){const _0x4b12e1={_0x4ceb48:0x3cd,_0xf349ea:0x450,_0x591c6c:0x3de,_0x52fb63:0x29f,_0x2b1879:0x327,_0x130889:0x1e0,_0xcf634a:0x2fb,_0x4e9683:0x3f4,_0x4f6967:0x38f,_0x440a1d:0x3cb,_0x372681:0x216,_0x2a2e79:0x1e8,_0x120137:0x20d,_0x5c8f8c:0x275,_0x3c6893:0x2b6,_0x500ac5:0x310,_0x5186cf:0x2ed,_0x52c4ae:0x351,_0xbd07aa:0x2a3,_0x4f4667:0x300,_0x333cda:0x3c7,_0x540c2b:0x3a5,_0x57db19:0x2e3,_0x405261:0x292,_0x5827cf:0x36e,_0x1c1ddf:0x378,_0x7c3614:0x3d7},_0xe8099c={_0x2e41ab:0x0,_0x11b0eb:0x508},_0x5ea744={_0x5bd035:0x1d6,_0x596cce:0x89},_0x546388=new Headers();function _0xdbe538(_0x1dd4f0,_0x26fcd9,_0x52eaf7,_0x50ea1a){return _0x55f0a4(_0x1dd4f0-_0x5ea744._0x5bd035,_0x26fcd9-_0x5ea744._0x596cce,_0x26fcd9,_0x52eaf7-0x5c0);}_0x546388[_0xdbe538(_0x4b12e1._0x4ceb48,_0x4b12e1._0xf349ea,_0x4b12e1._0x591c6c,0x3bc)]('accept',_0x4c7627['accept']);function _0x55bc4a(_0xc72e4c,_0x109013,_0x257f6d,_0x201b96){return _0x55f0a4(_0xc72e4c-_0xe8099c._0x2e41ab,_0x109013-0x113,_0x257f6d,_0xc72e4c-_0xe8099c._0x11b0eb);}_0x546388['set'](_0x55bc4a(_0x4b12e1._0x52fb63,_0x4b12e1._0x2b1879,_0x4b12e1._0x130889,_0x4b12e1._0xcf634a),_0xdbe538(0x418,_0x4b12e1._0x4e9683,_0x4b12e1._0x4f6967,_0x4b12e1._0x440a1d)+_0x1988f7['credential'][_0x55bc4a(_0x4b12e1._0x372681,0x1d0,_0x4b12e1._0x2a2e79,_0x4b12e1._0x120137)]);_0x4c7627[_0x55bc4a(_0x4b12e1._0x5c8f8c,0x2ec,_0x4b12e1._0x3c6893,_0x4b12e1._0x500ac5)]!==![]&&_0x546388[_0xdbe538(0x3f5,0x357,0x3de,_0x4b12e1._0x591c6c)](_0xdbe538(0x38e,_0x4b12e1._0x5186cf,_0x4b12e1._0x52c4ae,_0x4b12e1._0xbd07aa),_0xdbe538(_0x4b12e1._0x4f4667,_0x4b12e1._0x333cda,_0x4b12e1._0x540c2b,_0x4b12e1._0x57db19));const _0x2e8227=await this['headerResolver']?.({'body':_0x1988f7[_0x55bc4a(0x28d,0x27b,0x280,_0x4b12e1._0x405261)],'credential':_0x1988f7['credential'],'request':_0x1988f7[_0x55bc4a(_0x4b12e1._0x5827cf,0x376,_0x4b12e1._0x1c1ddf,0x357)],'session':_0x1988f7['session'],'stream':_0x1988f7[_0xdbe538(_0x4b12e1._0x7c3614,0x478,0x3be,0x303)]});for(const [_0x115afb,_0x349f66]of Object['entries'](_0x2e8227??{})){_0x546388['set'](_0x115afb,_0x349f66);}return _0x546388;}[_0x55f0a4(-0x284,-0x240,-0x25e,-0x271)](_0x353897){return _0x353897;}[_0x55f0a4(-0x251,-0x201,-0x11a,-0x1bc)](_0x16ab2f,_0x5ceed2){return resolveSessionBaseUrl(_0x16ab2f,_0x5ceed2);}[_0x55f0a4(-0x22e,-0x2ef,-0x2e9,-0x2b7)](_0x3fd928,_0x2ba429){return resolveApiCredential(_0x3fd928,_0x2ba429);}async[_0x2e041c(-0xc7,-0xba,-0x1c,0x9e)](_0x15a25b){return await createOpenAiApiError(_0x15a25b);}},OpenAiModel=class _OpenAiModel extends RoutedModel{static [_0x2e041c(0x4e,-0x8,-0x6,-0x28)]=new Map();['chatCompletionsPath'];[_0x55f0a4(-0x2fc,-0x365,-0x2d8,-0x2b5)];constructor(_0x321f72={}){const _0x5b0d54={_0x1ca77a:0x110,_0x4753e8:0xe5,_0x102ea9:0xfd,_0x31755e:0x1a2,_0x49c5f6:0x1b3,_0x39ef23:0x56,_0x45206f:0xdf,_0xb26ee6:0x77,_0x5c7663:0x52,_0xb55104:0x11e,_0x2c46f9:0x28,_0x25cef5:0x69,_0x2f909c:0x6d,_0x3ab4ec:0xa8,_0x1e5535:0x1a3,_0x34361b:0x6c,_0x1a2b03:0xac,_0x194a35:0x8e,_0x5df3f8:0x9d,_0x52c005:0x63,_0x3d6db2:0x53,_0x49331a:0x17,_0x2ece99:0xd1,_0x2601a5:0xce,_0x171306:0x7a},_0x1a529c={_0x537703:0x7e,_0x51cd44:0x1e5},_0x3097c0={_0x4b6c48:0x1a9},_0x374027=_0x321f72[_0x52ef6d(_0x5b0d54._0x1ca77a,0x139,-0x1d,0x83)]??'gpt-4o';function _0x52ef6d(_0x5397eb,_0xd6b68a,_0x4a142e,_0x68281a){return _0x2e041c(_0x5397eb-_0x3097c0._0x4b6c48,_0xd6b68a-0xd8,_0x68281a-0x182,_0x5397eb);}const _0x42067a=_0x321f72[_0xecd6e1(-0x109,-0x65,-_0x5b0d54._0x4753e8,-_0x5b0d54._0x102ea9)]??0x4000;function _0xecd6e1(_0x445aba,_0x55052d,_0x258d03,_0x1d8f9f){return _0x55f0a4(_0x445aba-_0x1a529c._0x537703,_0x55052d-0x1aa,_0x445aba,_0x258d03-_0x1a529c._0x51cd44);}const _0x14c77e=_0x321f72[_0x52ef6d(_0x5b0d54._0x31755e,_0x5b0d54._0x49c5f6,0x78,0xf7)]??_0x52ef6d(-0x17,0xdd,_0x5b0d54._0x39ef23,0x68),_0x4669de=_0x321f72[_0xecd6e1(-_0x5b0d54._0x45206f,-_0x5b0d54._0xb26ee6,-0xd0,-0x77)]??_0x52ef6d(_0x5b0d54._0x5c7663,_0x5b0d54._0xb55104,_0x5b0d54._0x2c46f9,0xb8);super({'apiKey':_0x321f72[_0xecd6e1(-_0x5b0d54._0x25cef5,-0xba,-_0x5b0d54._0x2f909c,-_0x5b0d54._0x3ab4ec)],'baseUrl':trimTrailingSlashes(_0x321f72['baseUrl']??_0xecd6e1(-0x1e,0xa9,-0x11,0xb1)),'fetch':_0x321f72['fetch'],'maxTokens':_0x42067a,'model':_0x374027,'reasoning':_0x321f72[_0x52ef6d(0x1d9,0x188,0x1cc,_0x5b0d54._0x1e5535)],'providerAdapter':new OpenAiProviderAdapter(_0x321f72[_0xecd6e1(0xc,_0x5b0d54._0x2c46f9,-0x93,-_0x5b0d54._0x34361b)]),'providerSessionResolver':_0x321f72[_0xecd6e1(-_0x5b0d54._0x1a2b03,-_0x5b0d54._0x194a35,-_0x5b0d54._0x5df3f8,-0xd3)],'requestMutators':_0x321f72['requestMutators'],'router':new StaticModelSurfaceRouter({'complete':OPENAI_CHAT_COMPLETIONS_SURFACE,'stream':OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE}),'sessionManager':_0x321f72['sessionManager'],'surfaces':createOpenAiSurfaces({'chatCompletionsPath':_0x14c77e,'responsesPath':_0x4669de}),'webSocketFactory':_0x321f72[_0xecd6e1(0x26,0x43,-_0x5b0d54._0x52c005,0x18)]}),this[_0xecd6e1(0x3a,-0x78,-_0x5b0d54._0x3d6db2,_0x5b0d54._0x49331a)]=_0x14c77e,this[_0x52ef6d(_0x5b0d54._0x2ece99,_0x5b0d54._0x2601a5,0xe,_0x5b0d54._0x171306)]=_0x4669de;}['completeViaChatCompletionsSurface'](_0xc624e3,_0x43f4e9){const _0x21a16d={_0x36a8fd:0x10c,_0xb068da:0x63},_0x3a4d8a={_0x49f059:0xef,_0x9658c:0x2f4};function _0x4a8df4(_0x21aab9,_0x251260,_0x5d7c47,_0x22a89b){return _0x55f0a4(_0x21aab9-_0x3a4d8a._0x49f059,_0x251260-0x1d4,_0x22a89b,_0x251260-_0x3a4d8a._0x9658c);}return this[_0x4a8df4(0xc5,_0x21a16d._0x36a8fd,0x1b4,_0x21a16d._0xb068da)](_0xc624e3,OPENAI_CHAT_COMPLETIONS_SURFACE,_0x43f4e9);}[_0x55f0a4(-0x2db,-0x328,-0x37c,-0x2da)](_0x4bca2d,_0x5294d8){const _0x41e631={_0x875029:0xd5};function _0x552994(_0x127d8e,_0x413227,_0x2c2187,_0x30389d){return _0x2e041c(_0x127d8e-0xef,_0x413227-0x8e,_0x127d8e- -0x9a,_0x30389d);}return this[_0x552994(-_0x41e631._0x875029,-0xf3,-0x55,-0x75)](_0x4bca2d,OPENAI_RESPONSES_SURFACE,_0x5294d8);}[_0x55f0a4(-0x1d6,-0xec,-0xc7,-0x17d)](_0xc00003,_0x14ca02){const _0x50f961={_0x212e47:0x191},_0x2aa837={_0x4f0caf:0x95,_0x260b2e:0x8c,_0x5739b0:0x379};function _0xe43afd(_0x28f1e4,_0x5d2f62,_0xaad6e6,_0x57b021){return _0x55f0a4(_0x28f1e4-_0x2aa837._0x4f0caf,_0x5d2f62-_0x2aa837._0x260b2e,_0x57b021,_0x28f1e4-_0x2aa837._0x5739b0);}return this[_0xe43afd(_0x50f961._0x212e47,0x23b,0x135,0xd7)](_0xc00003,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x14ca02);}['streamViaChatCompletionsSurface'](_0x169bd0,_0x566b2e){return this['streamViaSurface'](_0x169bd0,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,_0x566b2e);}[_0x2e041c(0x69,0x3a,-0x7,-0x15)](_0x33b3f6,_0x2d57c2){const _0x146ade={_0x22bfe3:0x13b,_0x23223a:0x12b},_0x156f3b={_0x424fe7:0xd0,_0x1ccd8c:0x3b1};function _0x290137(_0x32f5d9,_0x34eb5f,_0x577af8,_0x3fe01f){return _0x55f0a4(_0x32f5d9-0x3f,_0x34eb5f-_0x156f3b._0x424fe7,_0x577af8,_0x32f5d9-_0x156f3b._0x1ccd8c);}return this[_0x290137(_0x146ade._0x22bfe3,0x1dd,_0x146ade._0x23223a,0x10e)](_0x33b3f6,OPENAI_RESPONSES_STREAM_SURFACE,_0x2d57c2);}[_0x55f0a4(-0x1c6,-0x1e8,-0x250,-0x1dd)](_0x108345,_0x1874a4){const _0x282d48={_0x2b8efe:0x6a,_0x1264d0:0x6c},_0x405768={_0x28d0ce:0x44,_0x308f1d:0xb3};function _0x110463(_0xaabe57,_0x95de52,_0x30ed14,_0x40cf18){return _0x2e041c(_0xaabe57-_0x405768._0x28d0ce,_0x95de52-0x1ab,_0x40cf18-_0x405768._0x308f1d,_0x30ed14);}return this[_0x110463(_0x282d48._0x2b8efe,-_0x282d48._0x1264d0,0x63,-0x16)](_0x108345,OPENAI_RESPONSES_WEBSOCKET_SURFACE,_0x1874a4);}async[_0x2e041c(-0x1c,-0x124,-0x7b,-0x36)](_0x581ea6,_0x4de56a){const _0x72574b={_0x56efb6:0x1be},_0x2a474a={_0x2fd38:0x5c};function _0x2fda7a(_0x4fa3c8,_0x41616f,_0x1010ea,_0xc364d7){return _0x2e041c(_0x4fa3c8-_0x2a474a._0x2fd38,_0x41616f-0x12b,_0x1010ea-0x205,_0xc364d7);}try{return await this[_0x2fda7a(_0x72574b._0x56efb6,0x155,0x1c0,0x147)](_0x581ea6,_0x4de56a);}catch(_0x4c2188){if(_0x4c2188 instanceof OpenAiApiError)throw this['mapApiError'](_0x4c2188);throw _0x4c2188;}}async[_0x2e041c(-0x81,-0x53,-0x69,-0xe)](_0x3114c1,_0x234222){const _0x1360c3={_0x5af913:0x398,_0x2a8e43:0x308,_0x143473:0x48},_0x253133={_0x3764f1:0x9e,_0x3da07b:0x156,_0x148af0:0x1be},_0x23a438={_0x3f0b23:0x215};function _0x3ba47e(_0x1ccc7e,_0x36da2c,_0x11f1d2,_0x54e3e2){return _0x55f0a4(_0x1ccc7e-0xce,_0x36da2c-0x166,_0x1ccc7e,_0x54e3e2-_0x23a438._0x3f0b23);}function _0xc9a932(_0x9325fc,_0x240436,_0x39fcfa,_0x2079ed){return _0x2e041c(_0x9325fc-_0x253133._0x3764f1,_0x240436-_0x253133._0x3da07b,_0x9325fc- -_0x253133._0x148af0,_0x240436);}try{return await this[_0xc9a932(-0x2eb,-_0x1360c3._0x5af913,-0x2eb,-_0x1360c3._0x2a8e43)](_0x3114c1,_0x234222);}catch(_0x3fc5be){if(_0x3fc5be instanceof OpenAiApiError)throw this[_0x3ba47e(-0x94,_0x1360c3._0x143473,-0xce,-0x5c)](_0x3fc5be);throw _0x3fc5be;}}async[_0x55f0a4(-0x218,-0x139,-0x288,-0x1d6)](_0x3c985b,_0x58dd01){const _0x1580e3={_0x35c221:0xb0,_0x3d521a:0x98,_0x24efdc:0xb4,_0xcf9e2c:0x7,_0x4201bb:0xa2,_0x1be0f4:0x8c,_0xc221ca:0x5e,_0x4a56e2:0x8,_0x1e3018:0x82,_0x4596be:0x50},_0x4a3917={_0x57e626:0xe0,_0x32d5e9:0x10a,_0x2ed4b3:0x51};function _0x2f7d0c(_0x5c19f6,_0x3351df,_0x887fcb,_0x2aefbe){return _0x2e041c(_0x5c19f6-_0x4a3917._0x57e626,_0x3351df-_0x4a3917._0x32d5e9,_0x5c19f6-_0x4a3917._0x2ed4b3,_0x3351df);}function _0x24d063(_0x44d015,_0x47bbc6,_0x1adc14,_0x4b9ca9){return _0x55f0a4(_0x44d015-0xde,_0x47bbc6-0x199,_0x1adc14,_0x4b9ca9-0x2c1);}try{let _0x5a7313;for await(const _0x59a98c of this['responseSocketStream'](_0x3c985b,_0x58dd01)){_0x59a98c['type']===_0x2f7d0c(-_0x1580e3._0x35c221,-_0x1580e3._0x3d521a,-0x14f,-0x34)&&(_0x5a7313=_0x59a98c[_0x2f7d0c(-0x18,-0x5f,-_0x1580e3._0x24efdc,_0x1580e3._0xcf9e2c)]);}if(!_0x5a7313)throw new Error(_0x24d063(-0x1f,_0x1580e3._0x4201bb,_0x1580e3._0x1be0f4,_0x1580e3._0xc221ca));return _0x5a7313;}catch(_0x51fe0e){if(_0x51fe0e instanceof OpenAiApiError)throw this[_0x24d063(-_0x1580e3._0x4a56e2,_0x1580e3._0x1e3018,0x7a,_0x1580e3._0x4596be)](_0x51fe0e);throw _0x51fe0e;}}async*[_0x55f0a4(-0x354,-0x269,-0x323,-0x2cf)](_0x53cb61,_0x1a9ff1){const _0x440a4e={_0x1ee2c9:0x2be,_0x4d2060:0x344,_0x28ebb8:0x1c2,_0x3e1032:0x1bd},_0x5ca860={_0x1d5b23:0x149},_0x3d0a35={_0x54cd62:0xf9};function _0x21bb25(_0x44badd,_0x1eb237,_0x2468db,_0x2056ff){return _0x2e041c(_0x44badd-0x18b,_0x1eb237-0xdc,_0x2468db- -_0x3d0a35._0x54cd62,_0x44badd);}function _0x212685(_0x3c6e01,_0x18ef1d,_0x2659d9,_0x4498db){return _0x2e041c(_0x3c6e01-_0x5ca860._0x1d5b23,_0x18ef1d-0x18b,_0x18ef1d-0x2b8,_0x2659d9);}try{yield*this[_0x212685(0x351,_0x440a4e._0x1ee2c9,0x20f,_0x440a4e._0x4d2060)](_0x53cb61,_0x1a9ff1);}catch(_0x4f1893){if(_0x4f1893 instanceof OpenAiApiError)throw this[_0x21bb25(-_0x440a4e._0x28ebb8,-0x1dd,-_0x440a4e._0x3e1032,-0x1c8)](_0x4f1893);throw _0x4f1893;}}async*[_0x55f0a4(-0x1da,-0x20b,-0x1e5,-0x1c4)](_0x2862b8,_0x20f118){const _0x167eea={_0x1b52af:0x2f,_0x4184c9:0x93,_0x4f036a:0x45,_0xbeed46:0x419,_0x372a7f:0x4a5},_0x35e705={_0x1fad52:0x6b5},_0x5f1e9f={_0x2f793f:0x1cf,_0x26a47d:0x36};function _0x727098(_0x2e2ce7,_0x2e7afd,_0x2f537d,_0x265c06){return _0x2e041c(_0x2e2ce7-0x167,_0x2e7afd-_0x5f1e9f._0x2f793f,_0x2e2ce7-_0x5f1e9f._0x26a47d,_0x265c06);}function _0x558457(_0x3b4dc5,_0x4d3936,_0x58f406,_0x4fb2cd){return _0x55f0a4(_0x3b4dc5-0x10e,_0x4d3936-0xb8,_0x4d3936,_0x3b4dc5-_0x35e705._0x1fad52);}try{yield*this[_0x727098(_0x167eea._0x1b52af,-0x2b,_0x167eea._0x4184c9,-_0x167eea._0x4f036a)](_0x2862b8,_0x20f118);}catch(_0x266121){if(_0x266121 instanceof OpenAiApiError)throw this[_0x558457(0x444,_0x167eea._0xbeed46,0x382,_0x167eea._0x372a7f)](_0x266121);throw _0x266121;}}async*['responseSocketStream'](_0x2f0281,_0x2996c8){const _0xc64db9={_0x332ce2:0x126,_0x34db5a:0x1bb,_0x2328d6:0x1b1,_0x535ce3:0x261,_0x5bd16e:0x34a,_0x2c43be:0x2b5,_0x40ebb2:0x2a8},_0x28bedf={_0x180bf2:0x7c,_0x4690b9:0x14},_0x3a6ceb={_0x5ebe8d:0x3b,_0x58885d:0x111,_0x3d07f3:0x1f1};function _0x5c8a2c(_0x175a51,_0x5ccf24,_0x904487,_0x3b4d1c){return _0x2e041c(_0x175a51-_0x3a6ceb._0x5ebe8d,_0x5ccf24-_0x3a6ceb._0x58885d,_0x904487- -_0x3a6ceb._0x3d07f3,_0x5ccf24);}function _0x469ce0(_0x5a508f,_0x30cc78,_0x410e86,_0x4d4354){return _0x55f0a4(_0x5a508f-0x6f,_0x30cc78-_0x28bedf._0x180bf2,_0x410e86,_0x4d4354- -_0x28bedf._0x4690b9);}try{yield*this[_0x469ce0(-_0xc64db9._0x332ce2,-0x18e,-_0xc64db9._0x34db5a,-_0xc64db9._0x2328d6)](_0x2f0281,_0x2996c8);}catch(_0x57f998){if(_0x57f998 instanceof OpenAiApiError)throw this[_0x5c8a2c(-_0xc64db9._0x535ce3,-_0xc64db9._0x5bd16e,-_0xc64db9._0x2c43be,-_0xc64db9._0x40ebb2)](_0x57f998);throw _0x57f998;}}['complete'](_0xfda35e,_0x3b5868){const _0x55ba4f={_0x7a2db6:0xa1,_0x4e9a80:0x15,_0x5c552a:0x92,_0x3bb8fa:0x115},_0x13d46a={_0x5d3d43:0x122,_0x58ee19:0x10f,_0x1f3519:0x26};function _0x99d3e1(_0x1d5854,_0x399edc,_0x3c798f,_0x1f5b6f){return _0x2e041c(_0x1d5854-_0x13d46a._0x5d3d43,_0x399edc-_0x13d46a._0x58ee19,_0x1d5854- -_0x13d46a._0x1f3519,_0x1f5b6f);}return this[_0x99d3e1(-_0x55ba4f._0x7a2db6,_0x55ba4f._0x4e9a80,-_0x55ba4f._0x5c552a,-_0x55ba4f._0x3bb8fa)](_0xfda35e,_0x3b5868);}['stream'](_0x1a8f58,_0x1e6d2b){const _0x4efbf5={_0x597ccd:0x20,_0x477d3c:0x5},_0x4ec472={_0x3d18c3:0x5b,_0xb25138:0x18c,_0x38b984:0x2ca};function _0x122b47(_0x11193f,_0x3993c6,_0x46baff,_0x386b8b){return _0x55f0a4(_0x11193f-_0x4ec472._0x3d18c3,_0x3993c6-_0x4ec472._0xb25138,_0x386b8b,_0x46baff-_0x4ec472._0x38b984);}return this[_0x122b47(-0x6f,_0x4efbf5._0x597ccd,-_0x4efbf5._0x477d3c,0x20)](_0x1a8f58,_0x1e6d2b);}[_0x2e041c(-0x1d2,-0x137,-0x112,-0xa3)](_0x585726){const _0x2aae63={_0x488340:0x14,_0xa09b74:0x9c,_0xe8f2ce:0xbe,_0x1827c2:0x122,_0x2fd5c1:0xb3,_0x21913a:0x65,_0x1504bf:0xf3},_0x157f7c={_0x459f78:0x11,_0xc855e6:0x2d5};function _0x339968(_0x3dd742,_0x24eb1d,_0x551a9b,_0xdd8616){return _0x55f0a4(_0x3dd742-0x123,_0x24eb1d-_0x157f7c._0x459f78,_0x24eb1d,_0x551a9b-_0x157f7c._0xc855e6);}const _0x54f49e=this[_0x16594e(0x2a,_0x2aae63._0x488340,_0x2aae63._0xa09b74,0x3a)](_0x585726);let _0x1188e9=_OpenAiModel[_0x339968(0xbe,_0x2aae63._0xe8f2ce,_0x2aae63._0x1827c2,0x1a4)]['get'](_0x54f49e);function _0x16594e(_0x1d30e9,_0x523277,_0x40996c,_0xfeb71a){return _0x55f0a4(_0x1d30e9-0x101,_0x523277-0xd5,_0x1d30e9,_0xfeb71a-0x2e5);}return!_0x1188e9&&(_0x1188e9={'pending':Promise[_0x16594e(-_0x2aae63._0x2fd5c1,0x46,0x97,-0x13)]()},_OpenAiModel[_0x16594e(0xf0,0x189,0x160,0x132)][_0x339968(0xbc,_0x2aae63._0x21913a,_0x2aae63._0x1504bf,0x3d)](_0x54f49e,_0x1188e9)),_0x1188e9;}[_0x55f0a4(-0x2af,-0x328,-0x2cd,-0x2ab)](_0x589ef0){const _0x407370={_0x1853ec:0x194,_0x381a50:0x3d9,_0x3cce0b:0x479},_0x40dd29={_0x514211:0xa,_0x156935:0x1bb,_0x26e742:0x52d};function _0x5a1d3a(_0x245afa,_0x22ff41,_0x2f6e46,_0xe7db02){return _0x2e041c(_0x245afa-_0x40dd29._0x514211,_0x22ff41-_0x40dd29._0x156935,_0x2f6e46-_0x40dd29._0x26e742,_0x245afa);}function _0x3d687a(_0x5cc779,_0x1f67b3,_0x56979c,_0x5abfae){return _0x55f0a4(_0x5cc779-0x18,_0x1f67b3-0x68,_0x5abfae,_0x5cc779-0x483);}return''+trimTrailingSlashes(this[_0x3d687a(0x245,0x192,_0x407370._0x1853ec,0x298)])+this[_0x5a1d3a(_0x407370._0x381a50,0x452,0x425,_0x407370._0x3cce0b)]+'::'+_0x589ef0;}async[_0x2e041c(-0xf9,-0xef,-0x4a,0x46)](_0x843cea){const _0x33d268={_0x2fd1f1:0x3d5,_0x52685c:0x328,_0x106abd:0x9e,_0x3626f4:0x82,_0x4750e2:0x5f,_0x8ca2d8:0x26,_0x568480:0x9e,_0x35a7c7:0x47},_0x406943={_0x1defdf:0x570};function _0x314d01(_0x20bab9,_0x2e6931,_0x233306,_0x2ece8b){return _0x55f0a4(_0x20bab9-0x5d,_0x2e6931-0xd4,_0x20bab9,_0x2ece8b-0x23f);}const _0x48225a=_0x843cea[_0x11b989(_0x33d268._0x2fd1f1,_0x33d268._0x52685c,0x37d,0x2fd)][_0x314d01(_0x33d268._0x106abd,0x9d,-0x43,0x27)](()=>{});let _0x270e44;const _0x4831e8=new Promise(_0x5edec0=>{_0x270e44=_0x5edec0;});_0x843cea[_0x314d01(_0x33d268._0x3626f4,-_0x33d268._0x4750e2,-0x3d,0x4c)]=_0x48225a[_0x314d01(-_0x33d268._0x8ca2d8,0xdc,_0x33d268._0x568480,_0x33d268._0x35a7c7)](()=>_0x4831e8),await _0x48225a;function _0x11b989(_0x1b24d3,_0x3b6baf,_0x303f52,_0x1e9591){return _0x55f0a4(_0x1b24d3-0xc5,_0x3b6baf-0xa7,_0x3b6baf,_0x303f52-_0x406943._0x1defdf);}return()=>{_0x270e44?.();};}async[_0x55f0a4(-0x2b4,-0x256,-0x285,-0x2d0)](_0x172c37,_0x220cb6){const _0x4a0451={_0x10f9ae:0x163,_0x440557:0x1a5,_0x2f5484:0x146,_0x131e15:0x157,_0x41c82d:0xcd,_0x426ae2:0x48,_0x3720f0:0xe5,_0x39623f:0x1ee,_0x302fcd:0x21c,_0x2b80c7:0x1b5,_0x18348d:0x220,_0x23b83f:0x1b7,_0x31fc65:0x23a,_0xcdf15f:0x215,_0x70693d:0x1c4,_0x3fad99:0x430,_0x48547c:0x3cd,_0x5c87b5:0x47b,_0x23bb35:0x459,_0x27a426:0x112,_0x3f79c6:0xf5,_0x272985:0x1dd,_0x3ce1d6:0x268,_0x2cee13:0x1e3,_0x5d625f:0x1b9},_0x3bd817={_0x2b3b74:0xaf,_0x444b68:0x1ce,_0x32dac1:0x4da},_0x395e64={_0x28ec6f:0x12e,_0x39c12f:0x1dd,_0x5708ab:0x9b};function _0x1e81bc(_0x4f63f2,_0x246b70,_0x1afcdf,_0x8e4492){return _0x55f0a4(_0x4f63f2-_0x395e64._0x28ec6f,_0x246b70-_0x395e64._0x39c12f,_0x1afcdf,_0x246b70-_0x395e64._0x5708ab);}const _0x22e5dc=this[_0x1e81bc(-0x1c1,-_0x4a0451._0x10f9ae,-0x11c,-0xa1)](_0x172c37),_0xf3fd54=toModelRequest(_0x22e5dc);function _0x343b40(_0x25be9b,_0xe29042,_0x40c454,_0x48f66c){return _0x2e041c(_0x25be9b-_0x3bd817._0x2b3b74,_0xe29042-_0x3bd817._0x444b68,_0x48f66c-_0x3bd817._0x32dac1,_0xe29042);}const _0x63c413=await prepareProviderRequest(_0xf3fd54,{'sessionManager':this[_0x1e81bc(-_0x4a0451._0x440557,-_0x4a0451._0x2f5484,-_0x4a0451._0x131e15,-_0x4a0451._0x41c82d)],'requestMutators':this[_0x1e81bc(-0x1b7,-0x13d,-0x136,-0x1c2)],'signal':_0x220cb6}),_0x534721=toChatRequest(_0x63c413[_0x1e81bc(-0x121,-0xff,-_0x4a0451._0x426ae2,-_0x4a0451._0x3720f0)]),_0x4fbf66=this['providerAdapter'][_0x1e81bc(-_0x4a0451._0x39623f,-_0x4a0451._0x302fcd,-0x170,-_0x4a0451._0x2b80c7)](this[_0x1e81bc(-_0x4a0451._0x18348d,-_0x4a0451._0x23b83f,-_0x4a0451._0x31fc65,-0x1b8)],_0x63c413['session']);if(!_0x4fbf66)throw this[_0x1e81bc(-0x154,-_0x4a0451._0xcdf15f,-_0x4a0451._0x70693d,-0x208)]();return{'baseUrl':this[_0x343b40(_0x4a0451._0x3fad99,_0x4a0451._0x48547c,_0x4a0451._0x5c87b5,_0x4a0451._0x23bb35)]['resolveBaseUrl'](this[_0x1e81bc(-_0x4a0451._0x27a426,-0x1a3,-_0x4a0451._0x3f79c6,-_0x4a0451._0x272985)],_0x63c413['session']),'credential':_0x4fbf66,'request':_0x534721,'session':_0x63c413[_0x1e81bc(-_0x4a0451._0x3ce1d6,-0x23c,-_0x4a0451._0x2cee13,-_0x4a0451._0x5d625f)]};}['buildResponsesSocketEvent'](_0x5c805e,_0x2467be,_0x2456c1={}){const _0x39a0fc={_0x35ad9f:0x12e,_0x4e0aa3:0xc9,_0x42632d:0x1fc,_0x216e79:0x319,_0x5345bd:0x175,_0xf55e6f:0x1c1,_0x49ec14:0xa8,_0x5c5037:0x130,_0x2350a0:0x306,_0x4779e1:0x3bf,_0x1169e2:0x3b5,_0x1426c1:0x2c8,_0x3d3577:0x1c1,_0x18790d:0x105},_0x205605={_0x1c2538:0x192},_0x10bc90={_0x395741:0x3bf};function _0x3fe73c(_0x19a0e5,_0x36bdf8,_0xdcca65,_0x13ad19){return _0x2e041c(_0x19a0e5-0xfd,_0x36bdf8-0x136,_0x36bdf8-_0x10bc90._0x395741,_0xdcca65);}function _0x3ea1fd(_0x19c3cb,_0x2f3d92,_0x306b64,_0x5a6557){return _0x2e041c(_0x19c3cb-0x43,_0x2f3d92-_0x205605._0x1c2538,_0x2f3d92-0x25e,_0x5a6557);}if(!_0x2456c1['forceFullReplay']){const _0x59f102=this[_0x3ea1fd(0x1cc,_0x39a0fc._0x35ad9f,_0x39a0fc._0x4e0aa3,0xd1)](_0x5c805e);if(_0x59f102&&_0x2467be[_0x3fe73c(_0x39a0fc._0x42632d,0x291,0x1f5,_0x39a0fc._0x216e79)]&&_0x59f102[_0x3ea1fd(_0x39a0fc._0x5345bd,_0x39a0fc._0xf55e6f,0x14d,0x1a5)]===_0x2467be[_0x3ea1fd(_0x39a0fc._0x49ec14,_0x39a0fc._0x5c5037,0x18c,0x8a)]){const _0x2fed31=toOpenAiResponsesRequest({..._0x5c805e,'messages':_0x5c805e[_0x3fe73c(0x303,_0x39a0fc._0x2350a0,_0x39a0fc._0x4779e1,0x36c)]['slice'](_0x59f102[_0x3fe73c(0x390,0x34c,0x36d,_0x39a0fc._0x1169e2)]+0x1)})[_0x3ea1fd(_0x39a0fc._0x1426c1,0x259,0x1f7,0x2ec)];return{'event':createOpenAiResponsesWebSocketEvent(_0x5c805e,{'input':_0x2fed31,'previousResponseId':_0x59f102['responseId']}),'previousResponseId':_0x59f102[_0x3ea1fd(0x255,_0x39a0fc._0x3d3577,0x1dd,_0x39a0fc._0x18790d)]};}}return{'event':createOpenAiResponsesWebSocketEvent(_0x5c805e)};}[_0x55f0a4(-0x299,-0x2bc,-0x275,-0x2dd)](_0x40b486){const _0x275bd1={_0x39cc58:0x15c,_0x37728a:0x204,_0x41dd40:0x1f5,_0x165da2:0x1ba,_0x24e33e:0xc1,_0x93852e:0x11e,_0x410cee:0xef,_0x4ad12c:0x142},_0x25a0b1={_0x9b9f10:0xbd,_0x2d75fa:0x267},_0x4a70bd={_0x58d877:0x4a};for(let _0x31d008=_0x40b486[_0x84507d(0x1c4,0xda,_0x275bd1._0x39cc58,0x1aa)][_0x1729e3(_0x275bd1._0x37728a,0x24a,0x172,_0x275bd1._0x41dd40)]-0x1;_0x31d008>=0x0;_0x31d008-=0x1){const _0x793b91=_0x40b486[_0x84507d(_0x275bd1._0x165da2,0xfc,0x15c,0xfe)][_0x31d008],_0x2178a9=_0x793b91['role']==='assistant'?_0x793b91[_0x84507d(_0x275bd1._0x24e33e,_0x275bd1._0x93852e,_0x275bd1._0x410cee,_0x275bd1._0x4ad12c)]?.['openaiResponsesResponseId']:void 0x0;if(_0x2178a9)return{'messageIndex':_0x31d008,'responseId':_0x2178a9};}function _0x84507d(_0x541285,_0x462386,_0x40b1be,_0x45406b){return _0x55f0a4(_0x541285-_0x4a70bd._0x58d877,_0x462386-0x18d,_0x45406b,_0x40b1be-0x3c2);}function _0x1729e3(_0x53f91a,_0x26d0ba,_0x4bcd83,_0x26fa09){return _0x2e041c(_0x53f91a-0x134,_0x26d0ba-_0x25a0b1._0x9b9f10,_0x53f91a-_0x25a0b1._0x2d75fa,_0x26fa09);}return void 0x0;}['shouldRetryResponsesSocketRequest'](_0x5ede2f){const _0x81475f={_0x5d341d:0x303},_0x1dd759={_0x159499:0x7a},_0x21dd68={_0x3e42a5:0x18b,_0x13f66f:0x1ac,_0x182dbb:0x3c7};function _0x5964e3(_0x1d2fc1,_0x4ce5a9,_0x4d6acc,_0x4600fe){return _0x2e041c(_0x1d2fc1-_0x21dd68._0x3e42a5,_0x4ce5a9-_0x21dd68._0x13f66f,_0x4600fe-_0x21dd68._0x182dbb,_0x4ce5a9);}function _0x15c0eb(_0x2f36b7,_0x15e7bb,_0x23188f,_0x4655f8){return _0x2e041c(_0x2f36b7-_0x1dd759._0x159499,_0x15e7bb-0x32,_0x2f36b7-0x172,_0x4655f8);}return _0x5ede2f instanceof OpenAiResponsesStreamError&&(_0x5ede2f['code']==='previous_response_not_found'||_0x5ede2f[_0x5964e3(0x28f,_0x81475f._0x5d341d,0x2f8,0x2ce)]===_0x15c0eb(0xdc,0xa7,0xcb,0x18c));}[_0x55f0a4(-0x2a0,-0x336,-0x255,-0x2ce)](_0x32299d){const _0xa3661f={_0x44956f:0xe3,_0x442da5:0xc3,_0x44dbda:0xf6,_0x3676ff:0x198,_0x5f0a00:0x155,_0x1be28c:0x20f,_0x9c4137:0x179,_0x22531e:0x1b9,_0xd792cf:0xcb,_0x4be78e:0x194,_0x2c3246:0x89,_0x35612d:0x36},_0xca5b98={_0x5367c8:0x1be},_0x34fc6c={_0x42b40f:0x1f,_0x4b5fb3:0x126},_0xd289af=_0x32299d[_0x30810d(-0x16c,-0x180,-_0xa3661f._0x44956f,-_0xa3661f._0x442da5)];function _0x30810d(_0x382663,_0x42e049,_0x2e0a45,_0x35f1c3){return _0x2e041c(_0x382663-_0x34fc6c._0x42b40f,_0x42e049-0x1df,_0x42e049- -_0x34fc6c._0x4b5fb3,_0x2e0a45);}_0x32299d[_0x30810d(-_0xa3661f._0x44dbda,-0x180,-_0xa3661f._0x3676ff,-0xe2)]=void 0x0,_0x32299d[_0x234c3f(_0xa3661f._0x5f0a00,0x192,0x1a8,0x1ab)]=void 0x0;function _0x234c3f(_0x477f9e,_0x39a9ee,_0x1a734b,_0x304183){return _0x2e041c(_0x477f9e-0x73,_0x39a9ee-0x156,_0x1a734b-_0xca5b98._0x5367c8,_0x39a9ee);}_0x32299d[_0x30810d(-0x1d4,-0x254,-0x2ea,-_0xa3661f._0x1be28c)]=void 0x0,_0xd289af?.[_0x30810d(-_0xa3661f._0x9c4137,-_0xa3661f._0x22531e,-0x175,-0x198)]===WebSocket['OPEN']&&_0xd289af[_0x30810d(-_0xa3661f._0xd792cf,-0x12f,-0xe8,-_0xa3661f._0x4be78e)](0x3e8,_0x234c3f(_0xa3661f._0x2c3246,0x5e,0x6f,-_0xa3661f._0x35612d));}async[_0x2e041c(-0x34,-0xce,-0xc8,-0x16)](_0x34d1af,_0x4fac4b,_0x5e5738,_0xbe91ea,_0x24ad53){const _0x1ccb6e={_0x55f493:0x8d,_0x30b3f1:0x84,_0x493973:0x2f,_0xd76d52:0x91,_0x3f57c4:0x9e,_0x45a80c:0xb2,_0x45e43e:0x9c,_0x17f423:0x1ec,_0x28f4a4:0x12e,_0x56bae5:0x38,_0x2cd15f:0x12d,_0x1fc141:0x8d},_0x1f64ab={_0x39ba5f:0x12a,_0x4c1efa:0x3fa,_0x26884e:0x47e,_0x28ca42:0x3d9,_0x4a5eb4:0x477,_0x31bd37:0x468,_0x43b168:0xf1,_0x5e97bd:0xd6,_0x2951ae:0xd0,_0x523058:0x1f,_0x859021:0x5d,_0x2c1298:0x468,_0x436c41:0x3b6,_0x1c7f21:0x10f,_0x45b172:0xb4,_0x41b50b:0x154,_0x201017:0x21e,_0x151b10:0x258,_0x1f1c27:0x196,_0x29dad3:0x231,_0x12659a:0xd3,_0x3e7c83:0xa8,_0x294ab1:0x4ec,_0x69d87b:0x522,_0x8d1118:0x3c8,_0x4b42cb:0x4fa,_0xdaaa23:0x47a,_0x3fdd5c:0x537,_0x5e11e4:0x16e,_0x2c6ae0:0x4a9,_0x2ea13c:0x45b,_0x5000b5:0xa5,_0x365f3e:0x170,_0x38df08:0xb0},_0x2a790b={_0x5e191e:0x17b,_0x166231:0x166,_0x5e9b01:0x2f0};if(_0x4fac4b['socket']?.[_0x242e2c(-0x1a,0x91,_0x1ccb6e._0x55f493,_0x1ccb6e._0x30b3f1)]===WebSocket[_0x242e2c(-_0x1ccb6e._0x493973,_0x1ccb6e._0xd76d52,-_0x1ccb6e._0x3f57c4,0x61)])return _0x4fac4b[_0x585538(0xe9,_0x1ccb6e._0x45a80c,_0x1ccb6e._0x45e43e,0x17e)];function _0x585538(_0x2c4f36,_0x3411b6,_0x4e3069,_0x2090d8){return _0x55f0a4(_0x2c4f36-_0x2a790b._0x5e191e,_0x3411b6-_0x2a790b._0x166231,_0x4e3069,_0x2c4f36-_0x2a790b._0x5e9b01);}if(_0x4fac4b[_0x585538(0x12d,_0x1ccb6e._0x17f423,0x18f,0x148)])return await _0x4fac4b[_0x585538(0x12d,0x1a0,0x1d9,_0x1ccb6e._0x28f4a4)];function _0x242e2c(_0xa4bdad,_0x5a9762,_0x4cbde2,_0x3feba2){return _0x2e041c(_0xa4bdad-0xbf,_0x5a9762-0x12c,_0xa4bdad-0x79,_0x5a9762);}_0x4fac4b['connecting']=((async()=>{const _0x3d2e6f={_0x18422f:0x1ea,_0x511bfa:0x24b,_0xf77c10:0x1fb,_0x1d7287:0x3bc,_0x141707:0x34c},_0x3a0530={_0x40eb86:0x3c0},_0x54746b=await this[_0x57bd61(-0xa4,-0x111,-_0x1f64ab._0x39ba5f,-0x19f)]({'request':_0x5e5738['request'],'body':_0xbe91ea,'credential':_0x5e5738[_0x141a04(0x49b,_0x1f64ab._0x4c1efa,_0x1f64ab._0x26884e,0x429)],'session':_0x5e5738[_0x141a04(_0x1f64ab._0x28ca42,_0x1f64ab._0x4a5eb4,0x3cf,_0x1f64ab._0x31bd37)],'stream':!![]},{'accept':_0x57bd61(-0x99,-0x1a1,-_0x1f64ab._0x43b168,-0x164),'includeContentType':![]});function _0x141a04(_0x3b5bed,_0xdcc9f4,_0x36092b,_0x328f79){return _0x585538(_0x3b5bed-_0x3a0530._0x40eb86,_0xdcc9f4-0x102,_0x328f79,_0x328f79-0x137);}_0x54746b[_0x57bd61(-_0x1f64ab._0x5e97bd,-_0x1f64ab._0x2951ae,-0x79,-_0x1f64ab._0x523058)](_0x57bd61(-0x73,-0xb4,-_0x1f64ab._0x859021,0x19));const _0x2d0c21=this[_0x141a04(_0x1f64ab._0x2c1298,_0x1f64ab._0x436c41,0x443,0x44a)]({'headers':Object[_0x57bd61(-_0x1f64ab._0x1c7f21,-0x81,-_0x1f64ab._0x45b172,-_0x1f64ab._0x41b50b)](_0x54746b[_0x141a04(0x504,0x49e,0x479,0x474)]()),'url':(''+_0x5e5738['baseUrl']+this['responsesPath'])[_0x141a04(0x4b3,0x4f4,0x42a,0x558)](/^http:/,_0x57bd61(-_0x1f64ab._0x201017,-_0x1f64ab._0x151b10,-_0x1f64ab._0x1f1c27,-_0x1f64ab._0x29dad3))[_0x57bd61(-0x97,-0x75,-_0x1f64ab._0x12659a,-_0x1f64ab._0x3e7c83)](/^https:/,'wss:')});function _0x57bd61(_0x5084a3,_0x40d66a,_0x24c4ea,_0x15dd1f){return _0x242e2c(_0x24c4ea- -0xfc,_0x15dd1f,_0x24c4ea-0x16e,_0x15dd1f-0xc4);}const _0x2059b1=()=>{const _0x407672={_0x571098:0x46,_0x16793e:0x19d},_0x15eb59={_0x48339b:0x18b};function _0x495901(_0x13941c,_0x219bd4,_0x445d63,_0x99965){return _0x141a04(_0x99965- -0x66,_0x219bd4-_0x15eb59._0x48339b,_0x445d63-0x1a3,_0x219bd4);}function _0xda1e6c(_0x4adf3e,_0x3aef66,_0x256583,_0x118113){return _0x141a04(_0x256583- -0x25e,_0x3aef66-_0x407672._0x571098,_0x256583-_0x407672._0x16793e,_0x4adf3e);}_0x4fac4b[_0xda1e6c(0x2d2,0x18e,0x24b,_0x3d2e6f._0x18422f)]===_0x2d0c21&&(_0x4fac4b[_0xda1e6c(0x297,0x221,_0x3d2e6f._0x511bfa,_0x3d2e6f._0xf77c10)]=void 0x0,_0x4fac4b[_0x495901(_0x3d2e6f._0x1d7287,_0x3d2e6f._0x141707,0x306,0x36f)]=void 0x0);};_0x2d0c21[_0x141a04(0x484,_0x1f64ab._0x294ab1,_0x1f64ab._0x69d87b,_0x1f64ab._0x8d1118)](_0x141a04(_0x1f64ab._0x4b42cb,_0x1f64ab._0xdaaa23,0x4c2,_0x1f64ab._0x3fdd5c),_0x2059b1);try{return throwIfAborted(_0x24ad53),_0x2d0c21[_0x57bd61(-0xae,-_0x1f64ab._0x5e11e4,-0x116,-0x133)]!==WebSocket['OPEN']&&await waitForWebSocketOpen(_0x2d0c21,_0x24ad53),throwIfAborted(_0x24ad53),_0x4fac4b[_0x141a04(_0x1f64ab._0x2c6ae0,0x56b,0x3fe,0x511)]=_0x2d0c21,_0x2d0c21;}catch(_0x472584){_0x2059b1();_0x2d0c21['readyState']===WebSocket[_0x141a04(_0x1f64ab._0x2ea13c,0x457,0x3d7,0x3dc)]&&_0x2d0c21[_0x141a04(_0x1f64ab._0x4b42cb,0x4eb,0x464,0x485)](0x3e8,_0x57bd61(-_0x1f64ab._0x5000b5,-_0x1f64ab._0x365f3e,-_0x1f64ab._0x38df08,-0x87));throw _0x472584;}})());try{return await _0x4fac4b[_0x242e2c(0x63,-0xd,-_0x1ccb6e._0x56bae5,0x26)];}finally{_0x4fac4b[_0x585538(_0x1ccb6e._0x2cd15f,0x142,_0x1ccb6e._0x1fc141,0xba)]=void 0x0;}}async*[_0x55f0a4(-0x245,-0x1c1,-0x1b7,-0x19d)](_0x18bb23,_0x50dea4){const _0x298680={_0x503c0d:0x19c,_0x135694:0x1e4,_0x2726eb:0x1ca,_0x368c0b:0x3bd,_0x2f46c2:0x45e,_0x320124:0x45a,_0xfe934:0x50c,_0x10db4c:0x45f,_0x2b090f:0x4f5,_0x5a7759:0x28a,_0xb40756:0x1c4,_0x41e156:0x1c3,_0x5b25a4:0x304,_0x131b63:0x1be,_0xd34df1:0x1ee,_0x2e9e32:0x181,_0xc919f1:0x3aa,_0x292cfe:0x3d4,_0x252679:0x1f8,_0x39ca62:0x3ae,_0xd0f26d:0x41e,_0x827842:0x26c,_0x22d5e5:0x30d,_0x46e34d:0x473,_0x270ca6:0x168,_0x59fe54:0x207,_0x51d1f4:0x3f9},_0x51a8fc={_0xcf0d3e:0x1a5,_0x10d32c:0x42,_0x527729:0x67c},_0x2e485a=this[_0x4d2dd5(-0x224,-_0x298680._0x503c0d,-_0x298680._0x135694,-_0x298680._0x2726eb)](_0x18bb23);function _0x4d2dd5(_0x194c6e,_0x1adf72,_0x6dbc7e,_0x10fadb){return _0x55f0a4(_0x194c6e-0x17c,_0x1adf72-0x1ac,_0x194c6e,_0x10fadb-0x34);}const _0x19524b=this[_0x5f5569(_0x298680._0x368c0b,_0x298680._0x2f46c2,0x396,0x46f)](_0x2e485a[_0x5f5569(_0x298680._0x320124,_0x298680._0xfe934,_0x298680._0x10db4c,_0x298680._0x2b090f)][_0x4d2dd5(-_0x298680._0x5a7759,-0x178,-_0x298680._0xb40756,-0x1ea)]),_0x5901d9=await this[_0x4d2dd5(-0x230,-0x1de,-0x258,-_0x298680._0x41e156)](_0x19524b);function _0x5f5569(_0x22cec2,_0x3bf37d,_0x202799,_0x16df87){return _0x55f0a4(_0x22cec2-_0x51a8fc._0xcf0d3e,_0x3bf37d-_0x51a8fc._0x10d32c,_0x202799,_0x22cec2-_0x51a8fc._0x527729);}try{const _0x19a1b1=this['buildResponsesSocketEvent'](_0x2e485a,_0x19524b);try{yield*this[_0x4d2dd5(-0x1aa,-_0x298680._0x5b25a4,-0x1de,-0x24d)](_0x2e485a[_0x4d2dd5(-0x272,-0x1fe,-_0x298680._0x131b63,-_0x298680._0xd34df1)]['sessionId'],_0x19524b,_0x2e485a,_0x19a1b1[_0x4d2dd5(-0x194,-_0x298680._0x2e9e32,-0x1b0,-0x223)],_0x50dea4?.[_0x5f5569(_0x298680._0xc919f1,0x465,0x464,_0x298680._0x292cfe)]);return;}catch(_0x26de17){if(!_0x19a1b1['previousResponseId']||!this[_0x4d2dd5(-0x12a,-0x202,-_0x298680._0x252679,-0x185)](_0x26de17)){this[_0x5f5569(_0x298680._0x39ca62,_0x298680._0xd0f26d,0x336,0x30b)](_0x19524b);throw _0x26de17;}}this[_0x4d2dd5(-0x34f,-_0x298680._0x827842,-0x2b0,-0x29a)](_0x19524b);const _0x3606b2=this[_0x5f5569(0x3c2,_0x298680._0x22d5e5,0x418,_0x298680._0x46e34d)](_0x2e485a,_0x19524b,{'forceFullReplay':!![]});yield*this[_0x4d2dd5(-0x2c5,-0x287,-0x18f,-0x24d)](_0x2e485a[_0x4d2dd5(-0x1e0,-_0x298680._0x270ca6,-_0x298680._0x59fe54,-_0x298680._0xd34df1)][_0x5f5569(_0x298680._0x2f46c2,_0x298680._0x51d1f4,0x43c,0x461)],_0x19524b,_0x2e485a,_0x3606b2[_0x4d2dd5(-0x2c2,-0x19c,-0x1a7,-0x223)],_0x50dea4?.['signal']);}finally{_0x5901d9();}}async*['streamViaResponsesSocketAttempt'](_0x2da20e,_0x3732c2,_0x5ca903,_0xc729db,_0x1a7502){const _0x30105d={_0x1b45a7:0x2d1,_0x1e1f80:0x262,_0x3476c3:0x28e,_0x456a58:0x242,_0x3c472e:0x385,_0x3f8b38:0x315,_0xf0f1fb:0x223,_0x10ead2:0x1e0,_0x3d3444:0x1c0,_0x100399:0x209,_0x2e4c84:0x27e,_0x23dc70:0x340,_0x42b4d5:0x27e,_0x2349ea:0x32b,_0x49f354:0x2d5,_0x46526b:0x35c,_0x2e45a4:0x1f8,_0x3effa5:0x3b5,_0x5b889a:0x390,_0x9af28c:0x209},_0x26a1ec={_0x31bbe1:0xf1},_0x1db65b=await this[_0x17c4f0(-0x2ec,-_0x30105d._0x1b45a7,-0x240,-_0x30105d._0x1e1f80)](_0x5ca903,_0x1a7502),_0x14d33c=await this[_0x46e69b(_0x30105d._0x3476c3,0x264,0x2f2,_0x30105d._0x456a58)](_0x2da20e,_0x3732c2,_0x1db65b,_0xc729db,_0x1a7502),_0xd255c8=createOpenAiResponsesStreamParser(_0x5ca903);throwIfAborted(_0x1a7502),_0x14d33c[_0x46e69b(0x3a4,_0x30105d._0x3c472e,0x3ba,_0x30105d._0x3f8b38)](JSON[_0x46e69b(0x171,_0x30105d._0xf0f1fb,_0x30105d._0x10ead2,_0x30105d._0x3d3444)](_0xc729db));function _0x17c4f0(_0x5993cd,_0x66521b,_0x4e2714,_0xd01e0d){return _0x2e041c(_0x5993cd-0x6a,_0x66521b-_0x26a1ec._0x31bbe1,_0x5993cd- -0x1c9,_0x4e2714);}for await(const _0x31debd of iterateWebSocketMessages(_0x14d33c,_0x1a7502)){const _0x5f0665=_0xd255c8[_0x17c4f0(-_0x30105d._0x100399,-0x283,-0x177,-0x218)]?.(_0x31debd)??[];yield*_0x5f0665;if(_0xd255c8[_0x17c4f0(-_0x30105d._0x2e4c84,-_0x30105d._0x23dc70,-0x30b,-0x2e3)]?.())break;}if(!_0xd255c8[_0x17c4f0(-_0x30105d._0x42b4d5,-0x305,-_0x30105d._0x2349ea,-0x233)]?.())throw new Error(_0x17c4f0(-0x258,-0x2cf,-0x2d6,-_0x30105d._0x49f354));const _0x55aacf=_0xd255c8[_0x46e69b(0x338,_0x30105d._0x46526b,0x3a4,0x30f)](),_0x144ab4=_0x55aacf[_0x46e69b(0x1c2,0x1da,0x294,0x1e4)]?.[_0x17c4f0(-0x230,-0x19c,-_0x30105d._0x2e45a4,-0x18e)]??_0x55aacf['id'];_0x144ab4&&(_0x3732c2[_0x17c4f0(-0x2f7,-0x3b1,-_0x30105d._0x3effa5,-_0x30105d._0x5b889a)]=_0x144ab4);function _0x46e69b(_0x4123a2,_0x387943,_0x8e9c2,_0x21cf21){return _0x2e041c(_0x4123a2-0x168,_0x387943-0x11a,_0x21cf21-0x30a,_0x8e9c2);}yield{'type':_0x46e69b(0x19a,0x1b7,0x204,_0x30105d._0x9af28c),'response':_0x55aacf};}},AVAILABLE_CHAT_MODEL_SURFACES=[_0x2e041c(-0xa2,-0x123,-0x150,-0x1ff),_0x2e041c(0x76,-0x7f,-0xd,-0x68),_0x2e041c(-0xef,-0x34,-0x8a,-0x110),'openai-responses-ws'];function isAnthropicSurface(_0x4a13da){const _0x223724={_0x225efb:0x6c,_0x599fa7:0x97,_0x19c2a7:0x15,_0x409c7c:0x32},_0x5c7a04={_0x348968:0xd1};function _0x30dab0(_0x7df7a1,_0x39aca2,_0x5ab55a,_0x3b9c31){return _0x2e041c(_0x7df7a1-_0x5c7a04._0x348968,_0x39aca2-0x12b,_0x5ab55a-0x13b,_0x3b9c31);}return _0x4a13da===_0x30dab0(_0x223724._0x225efb,-_0x223724._0x599fa7,-_0x223724._0x19c2a7,_0x223724._0x409c7c);}function resolveDefaultBaseUrl(_0x293ecd){const _0x3fa59a={_0x19c185:0x493,_0xce1918:0x455,_0x468ac4:0x47b},_0x5cc911={_0x116bd1:0xbe};function _0x53709d(_0x5b0b64,_0x23ff95,_0x4ff94c,_0x70c954){return _0x2e041c(_0x5b0b64-_0x5cc911._0x116bd1,_0x23ff95-0xde,_0x70c954-0x4ec,_0x4ff94c);}return isAnthropicSurface(_0x293ecd)?_0x53709d(_0x3fa59a._0x19c185,_0x3fa59a._0xce1918,_0x3fa59a._0x468ac4,0x3e3):'https://api.openai.com/v1';}var ChatModel=class{[_0x55f0a4(-0x2d5,-0x279,-0x255,-0x2ac)];[_0x2e041c(-0x1c3,-0x15e,-0x11d,-0xff)];[_0x2e041c(-0x15b,-0x93,-0xa9,-0x85)];['anthropicDelegate'];['openAiDelegate'];constructor(_0x45d866={}){const _0x20facb={_0x447502:0x35,_0x48b573:0xf1,_0x77e085:0x16f,_0x283bbd:0x34a,_0x1f6cb5:0x337,_0x4ab3a2:0x3ab,_0x4bfc8f:0x3c1,_0x1aa4a7:0x3a0,_0x26dc40:0x40a,_0x349012:0x4e,_0x4c72b:0x1c,_0x5410bd:0x3ab,_0x3f0971:0x14e,_0x40800e:0x2fb,_0x1bd7b2:0x3af,_0x44e014:0x417,_0x38d214:0x36f,_0xa8c0d:0x3b2,_0x5e987a:0x9,_0x3d047b:0x2fc,_0x280e93:0x27b,_0x3edf0b:0x2bb,_0x19eadf:0x337,_0x478449:0x5f,_0x41eba5:0x66,_0x20a344:0x1a,_0x10f1b0:0x1ac,_0x2f948e:0x98,_0x25f7b0:0x1,_0x7f9f50:0x8f,_0x207a85:0x80,_0x2346f1:0x3c,_0x244bed:0x6b,_0x3cc551:0x17,_0x2c0d99:0xbc,_0x2cfab9:0x109,_0x5c8cce:0x3aa},_0x5bc30f={_0x4e8328:0x141,_0x63f0e4:0x169,_0x3706c9:0x454},_0x4e25af={_0x1cc929:0xf5,_0xf65b9f:0x1b2};function _0x43794b(_0x30e7b9,_0x28d8ca,_0x122dad,_0x35e95a){return _0x2e041c(_0x30e7b9-_0x4e25af._0x1cc929,_0x28d8ca-_0x4e25af._0xf65b9f,_0x30e7b9-0x134,_0x28d8ca);}function _0x5b6894(_0x4d45b4,_0x45194f,_0x3c3b81,_0x195b66){return _0x2e041c(_0x4d45b4-_0x5bc30f._0x4e8328,_0x45194f-_0x5bc30f._0x63f0e4,_0x195b66-_0x5bc30f._0x3706c9,_0x4d45b4);}this[_0x43794b(_0x20facb._0x447502,-0x8a,-0x6,0x97)]=_0x45d866['model']??_0x43794b(0x13d,0xa3,_0x20facb._0x48b573,_0x20facb._0x77e085),this['maxTokens']=_0x45d866[_0x5b6894(_0x20facb._0x283bbd,0x3f5,0x3da,_0x20facb._0x1f6cb5)]??0x4000,this[_0x5b6894(0x348,0x41c,0x32c,_0x20facb._0x4ab3a2)]=_0x45d866['surface']??_0x5b6894(_0x20facb._0x4bfc8f,_0x20facb._0x1aa4a7,_0x20facb._0x26dc40,0x447);const _0x3a9c53=trimTrailingSlashes(_0x45d866[_0x43794b(0xa3,_0x20facb._0x349012,-_0x20facb._0x4c72b,0xdf)]??resolveDefaultBaseUrl(this[_0x5b6894(0x2f9,0x318,0x357,_0x20facb._0x5410bd)]));if(isAnthropicSurface(this['surface'])){this[_0x43794b(_0x20facb._0x3f0971,0x16d,0x1ff,0x14c)]=new AnthropicModel({'apiKey':_0x45d866[_0x5b6894(0x3aa,0x335,_0x20facb._0x40800e,_0x20facb._0x1bd7b2)],'authScheme':_0x45d866[_0x5b6894(0x383,_0x20facb._0x44e014,_0x20facb._0x38d214,_0x20facb._0xa8c0d)],'baseUrl':_0x3a9c53,'fetch':_0x45d866[_0x43794b(-_0x20facb._0x5e987a,-0x60,-0x41,0xa6)],'maxTokens':this[_0x5b6894(_0x20facb._0x3d047b,_0x20facb._0x280e93,_0x20facb._0x3edf0b,_0x20facb._0x19eadf)],'model':this['model'],'reasoning':_0x45d866['reasoning'],'providerSessionResolver':_0x45d866[_0x43794b(_0x20facb._0x478449,0x92,_0x20facb._0x41eba5,_0x20facb._0x20a344)],'requestMutators':_0x45d866[_0x43794b(0x109,0x134,_0x20facb._0x10f1b0,0x69)]});return;}this[_0x43794b(0x15,_0x20facb._0x2f948e,0x9c,_0x20facb._0x25f7b0)]=new OpenAiModel({'apiKey':_0x45d866[_0x43794b(_0x20facb._0x7f9f50,_0x20facb._0x207a85,0x146,_0x20facb._0x2346f1)],'baseUrl':_0x3a9c53,'fetch':_0x45d866['fetch'],'headerResolver':_0x45d866[_0x43794b(0x69,_0x20facb._0x244bed,-0x42,0x59)],'maxTokens':this[_0x43794b(_0x20facb._0x3cc551,_0x20facb._0x2c0d99,0x39,-0x30)],'model':this['model'],'reasoning':_0x45d866['reasoning'],'providerSessionResolver':_0x45d866[_0x43794b(0x5f,0xd6,0x66,0x3a)],'requestMutators':_0x45d866[_0x43794b(_0x20facb._0x2cfab9,0x110,0x178,0x13c)],'webSocketFactory':_0x45d866[_0x5b6894(_0x20facb._0x5c8cce,0x302,0x448,0x3b9)]});}[_0x2e041c(-0x19b,-0x179,-0x142,-0x169)](){const _0x1df945={_0x2379fa:0x223,_0x364817:0x1fd,_0x424a3e:0x259,_0xb748e:0x4a1,_0x15d5ec:0x4ab,_0x2a18a6:0x465},_0x3e27cf={_0x129ab7:0x102},_0x38cdcf={_0x1fb631:0x56,_0x11e7d1:0x554};function _0x58fb03(_0x47e9b8,_0x191c8a,_0x23d2e6,_0x482c1d){return _0x2e041c(_0x47e9b8-0x38,_0x191c8a-_0x38cdcf._0x1fb631,_0x191c8a-_0x38cdcf._0x11e7d1,_0x47e9b8);}if(!this[_0xcac8ae(_0x1df945._0x2379fa,_0x1df945._0x364817,_0x1df945._0x424a3e,0x1cb)])throw new Error('Anthropic\x20delegate\x20is\x20not\x20initialized\x20for\x20surface:\x20'+this[_0x58fb03(_0x1df945._0xb748e,_0x1df945._0x15d5ec,_0x1df945._0x2a18a6,0x4a4)]);function _0xcac8ae(_0x2b30a4,_0x56e7db,_0x46e01d,_0x31135f){return _0x55f0a4(_0x2b30a4-0x156,_0x56e7db-_0x3e27cf._0x129ab7,_0x46e01d,_0x31135f-0x35e);}return this[_0xcac8ae(0x1ab,0x18d,0x263,0x1cb)];}['getOpenAiDelegate'](){const _0x2d637c={_0x114a54:0x456,_0x295cf5:0x482,_0x37f52c:0x437,_0x522c0a:0x1e2,_0x4809af:0x149},_0x4e949a={_0x2a6638:0x37,_0x390e29:0x136},_0x1846af={_0x5b440d:0xc4};function _0x514cca(_0x5b9acc,_0x9daa9d,_0x2413e4,_0x56d53d){return _0x55f0a4(_0x5b9acc-_0x1846af._0x5b440d,_0x9daa9d-0x3f,_0x2413e4,_0x5b9acc-0x74);}if(!this['openAiDelegate'])throw new Error(_0x5bd93b(_0x2d637c._0x114a54,_0x2d637c._0x295cf5,0x44a,_0x2d637c._0x37f52c)+this[_0x514cca(-_0x2d637c._0x522c0a,-0x26b,-0x15a,-_0x2d637c._0x4809af)]);function _0x5bd93b(_0x35496d,_0x10c712,_0x3e56f9,_0x1a53d1){return _0x2e041c(_0x35496d-_0x4e949a._0x2a6638,_0x10c712-_0x4e949a._0x390e29,_0x10c712-0x4a4,_0x3e56f9);}return this['openAiDelegate'];}['complete'](_0x546a45,_0x59f04d){const _0x3b908f={_0x55989b:0x1c6,_0x358303:0x180,_0x5183e7:0x195,_0x3a7b3b:0xe6,_0x89bc37:0x1fe,_0x214ce9:0x23c,_0x40be37:0x2fa,_0x309051:0x294,_0x1c29f8:0x221,_0x482713:0x216,_0x47e7fb:0x1a9,_0x120633:0x186,_0x760f98:0x339,_0x189910:0x3ef,_0x22d5ce:0x13f,_0x24cc0a:0x1ba,_0x59533b:0x115,_0x275943:0x81},_0x28e1a9={_0x1445df:0x1e5,_0x327458:0xec};function _0x32a1cf(_0x3291f8,_0x4dd38a,_0x1a39e9,_0x50429f){return _0x2e041c(_0x3291f8-_0x28e1a9._0x1445df,_0x4dd38a-0x1d2,_0x1a39e9- -_0x28e1a9._0x327458,_0x4dd38a);}function _0x315ab6(_0x510b1c,_0x5f5a66,_0x5c3bb5,_0x479f2e){return _0x55f0a4(_0x510b1c-0x17e,_0x5f5a66-0xcb,_0x479f2e,_0x5f5a66-0x583);}switch(this[_0x32a1cf(-_0x3b908f._0x55989b,-_0x3b908f._0x358303,-_0x3b908f._0x5183e7,-_0x3b908f._0x3a7b3b)]){case _0x32a1cf(-_0x3b908f._0x89bc37,-0x1b9,-_0x3b908f._0x214ce9,-0x293):return this[_0x315ab6(_0x3b908f._0x40be37,_0x3b908f._0x309051,_0x3b908f._0x1c29f8,_0x3b908f._0x482713)]()[_0x32a1cf(-0x269,-0x150,-_0x3b908f._0x47e7fb,-_0x3b908f._0x120633)](_0x546a45,_0x59f04d);case _0x315ab6(_0x3b908f._0x760f98,0x34c,0x399,_0x3b908f._0x189910):return this[_0x32a1cf(-0x1e4,-0xe1,-_0x3b908f._0x22d5ce,-0xbe)]()['response'](_0x546a45,_0x59f04d);case'openai-responses-ws':return this['getOpenAiDelegate']()[_0x32a1cf(-0xf4,-_0x3b908f._0x24cc0a,-_0x3b908f._0x59533b,-_0x3b908f._0x275943)](_0x546a45,_0x59f04d);default:return this['getOpenAiDelegate']()['chatComplete'](_0x546a45,_0x59f04d);}}['stream'](_0x4a7b91,_0x35796f){const _0x5c0e63={_0x1c5c15:0x2ca,_0x20b4d2:0x354,_0x3cf187:0x2a1,_0x2ff0bc:0x12a,_0x579f1f:0xdd,_0x45932e:0x1e0,_0x11e916:0x208,_0x3ba1f2:0x76,_0x58fbff:0x51,_0x40cbd0:0xa,_0x5659b1:0x171,_0x53338b:0x2dc,_0x3b9802:0x238,_0x525e2d:0x221,_0x37d273:0xc5,_0x2d3a54:0xa7,_0x16d15c:0x4f,_0x15e0e0:0x21,_0x1cf3a0:0x103,_0xae092d:0x79,_0x13d955:0x59,_0x22f07f:0x49},_0x13b32b={_0x50834f:0x13,_0x3d7f56:0x21},_0x499774={_0x2d6d31:0xc8};function _0x4f9521(_0xdb481e,_0x333ab2,_0x1cc3dc,_0x1ee55c){return _0x55f0a4(_0xdb481e-0xc7,_0x333ab2-_0x499774._0x2d6d31,_0xdb481e,_0x1cc3dc-0x276);}function _0x5202ed(_0x3c3ec8,_0x5cb24b,_0x5065b8,_0x47fa19){return _0x2e041c(_0x3c3ec8-_0x13b32b._0x50834f,_0x5cb24b-_0x13b32b._0x3d7f56,_0x47fa19-0x34a,_0x5cb24b);}switch(this[_0x5202ed(_0x5c0e63._0x1c5c15,0x203,_0x5c0e63._0x20b4d2,_0x5c0e63._0x3cf187)]){case _0x4f9521(-_0x5c0e63._0x2ff0bc,-0x13b,-0x87,-_0x5c0e63._0x579f1f):return this[_0x5202ed(_0x5c0e63._0x45932e,0x240,_0x5c0e63._0x45932e,_0x5c0e63._0x11e916)]()['stream'](_0x4a7b91,_0x35796f);case'openai-responses':return this[_0x4f9521(0x91,0xed,_0x5c0e63._0x3ba1f2,_0x5c0e63._0x58fbff)]()[_0x4f9521(_0x5c0e63._0x40cbd0,_0x5c0e63._0x5659b1,0xb2,0x129)](_0x4a7b91,_0x35796f);case _0x5202ed(_0x5c0e63._0x53338b,_0x5c0e63._0x3b9802,0x270,_0x5c0e63._0x525e2d):return this[_0x4f9521(-0x2f,_0x5c0e63._0x37d273,0x76,0x65)]()[_0x4f9521(-_0x5c0e63._0x2d3a54,_0x5c0e63._0x16d15c,-0x34,-_0x5c0e63._0x15e0e0)](_0x4a7b91,_0x35796f);default:return this['getOpenAiDelegate']()[_0x4f9521(-_0x5c0e63._0x1cf3a0,-_0x5c0e63._0xae092d,-_0x5c0e63._0x13d955,-_0x5c0e63._0x22f07f)](_0x4a7b91,_0x35796f);}}};import{randomUUID}from'crypto';var GitHubAccessTokenResolver=class{[_0x2e041c(-0x25,-0xd3,-0xd0,-0x4a)];[_0x2e041c(-0x93,-0x135,-0x91,0x1d)];[_0x2e041c(0x98,0x9f,0x11,-0x15)];[_0x2e041c(-0x14a,-0xb5,-0xe1,-0x45)];[_0x2e041c(-0xb7,0x68,-0x4d,0x63)];constructor(_0x5f1a1d){const _0x561b92={_0x5f5a35:0x10f,_0xa3ce43:0x10d,_0x567ae2:0x1ca,_0x5963c9:0x15e,_0x49ff17:0x163,_0x4d4da8:0x1f2,_0x308224:0x213,_0x3e859d:0x1f0,_0x52e25e:0x1c1,_0xb53a8f:0x26,_0x2aab6e:0xa2,_0x4f6c53:0x1d4,_0x69d63b:0x150,_0x271fbb:0x10b,_0x2d4245:0xfe,_0x1172aa:0x12d,_0x54cdf4:0x192,_0x301fc3:0x20b},_0x15f67c={_0x3fca35:0x83,_0x4c50c4:0x1df},_0x9309dc={_0x210075:0x3ef};this[_0x31e22d(0xdc,0xa2,_0x561b92._0x5f5a35,_0x561b92._0xa3ce43)]=_0x5f1a1d['accessToken'],this[_0x56d49a(_0x561b92._0x567ae2,0x15c,_0x561b92._0x5963c9,0x1b1)]=trimTrailingSlashes2(_0x5f1a1d[_0x31e22d(0x177,_0x561b92._0x49ff17,0x14e,_0x561b92._0x4d4da8)]),this[_0x31e22d(_0x561b92._0x308224,0x18e,_0x561b92._0x3e859d,_0x561b92._0x52e25e)]=_0x5f1a1d[_0x31e22d(-0x11,_0x561b92._0xb53a8f,_0x561b92._0x2aab6e,0xfd)],this[_0x56d49a(_0x561b92._0x4f6c53,0x16d,_0x561b92._0x69d63b,0x161)]=trimTrailingSlashes2(_0x5f1a1d[_0x31e22d(0xc3,_0x561b92._0x271fbb,_0x561b92._0x2d4245,0x14e)]);function _0x56d49a(_0x29839c,_0x49a5f3,_0x1ae4e9,_0x2f80a2){return _0x55f0a4(_0x29839c-0xe5,_0x49a5f3-0x8,_0x29839c,_0x2f80a2-_0x9309dc._0x210075);}function _0x31e22d(_0xe35b25,_0x17391c,_0x1d4661,_0x4d9d3b){return _0x2e041c(_0xe35b25-0x1b1,_0x17391c-_0x15f67c._0x3fca35,_0x1d4661-_0x15f67c._0x4c50c4,_0x4d9d3b);}this['tokenExchangeApiVersion']=_0x5f1a1d[_0x31e22d(_0x561b92._0x1172aa,0xef,_0x561b92._0x54cdf4,_0x561b92._0x301fc3)];}async[_0x55f0a4(-0x2d3,-0x2f1,-0x392,-0x2f8)](_0x45f79f){const _0x5c7584={_0x1f814b:0x59a,_0x11c66b:0x4ff,_0x5443fa:0x502,_0x27b3af:0x52d,_0x531481:0x4ab,_0x2fdc2d:0x4c9,_0x2609b7:0x532,_0x59fbbd:0x580,_0xbd347d:0x53c,_0x4e1e8d:0x3b6,_0x2d6ea8:0x476,_0x1ddd3a:0x505,_0x5bf6cf:0x4fb,_0x4fbeba:0x36b,_0xa65fc0:0x2ba,_0x4f0f87:0x5a8,_0x3a5dab:0x4ed,_0x182441:0x375,_0xebc6f9:0x32b,_0x1073d7:0x419,_0x24d473:0x39a,_0x5bb5d:0x2da,_0x221794:0x435,_0x633b9c:0x4cd,_0x15082d:0x482,_0x4f2595:0x395,_0x56ea0b:0x45b,_0x4e387a:0x452,_0x139d46:0x462,_0x3599f6:0x3cd,_0x45ddea:0x40e,_0x31fca7:0x32b,_0x28dc89:0x272,_0x1d58cd:0x2d2,_0x1ef24a:0x4f8,_0x2eadf4:0x4b3,_0x3e7b71:0x2f8,_0xcb31d0:0x37b,_0x3d7759:0x23c,_0x4f7f04:0x465,_0xd3d885:0x50b,_0xda0a:0x3cd,_0x47714b:0x3fc},_0x36f77b={_0x5e1097:0x89,_0x389689:0xd7,_0x2a0239:0x736},_0x4f5ad0={_0x2f3ac8:0x1df,_0x1da934:0x42b};function _0x5aed76(_0x272cc0,_0x532a19,_0x563deb,_0xf18fc4){return _0x2e041c(_0x272cc0-_0x4f5ad0._0x2f3ac8,_0x532a19-0x163,_0x272cc0-_0x4f5ad0._0x1da934,_0x563deb);}const _0x5882ed=await this[_0x3d1c8b(_0x5c7584._0x1f814b,_0x5c7584._0x11c66b,0x5d8,_0x5c7584._0x5443fa)](this[_0x3d1c8b(0x4a8,0x4a7,0x4a3,_0x5c7584._0x27b3af)]+_0x3d1c8b(_0x5c7584._0x531481,_0x5c7584._0x2fdc2d,0x56d,0x4db),{'method':_0x3d1c8b(_0x5c7584._0x2609b7,_0x5c7584._0x59fbbd,_0x5c7584._0xbd347d,0x532),'headers':new Headers({'accept':_0x5aed76(0x3bd,_0x5c7584._0x4e1e8d,_0x5c7584._0x2d6ea8,0x368),'authorization':_0x3d1c8b(_0x5c7584._0x1ddd3a,0x59e,0x509,_0x5c7584._0x5bf6cf)+this[_0x5aed76(0x35b,0x310,_0x5c7584._0x4fbeba,0x379)],'editor-version':_0x5aed76(0x31d,0x39e,0x33b,_0x5c7584._0xa65fc0),'user-agent':_0x3d1c8b(_0x5c7584._0x4f0f87,_0x5c7584._0x3a5dab,0x5e5,0x60e),'x-github-api-version':this[_0x5aed76(0x3de,_0x5c7584._0x182441,_0x5c7584._0xebc6f9,_0x5c7584._0x1073d7)]}),'signal':_0x45f79f});if(!_0x5882ed['ok'])return{'credential':{'kind':'oauth-token','value':this['accessToken']},'endpoints':{'api':this[_0x5aed76(_0x5c7584._0x24d473,_0x5c7584._0x5bb5d,0x3a0,0x427)]}};function _0x3d1c8b(_0x986ae9,_0x4d6329,_0x47b2cd,_0x4378b2){return _0x55f0a4(_0x986ae9-_0x36f77b._0x5e1097,_0x4d6329-_0x36f77b._0x389689,_0x47b2cd,_0x986ae9-_0x36f77b._0x2a0239);}const _0x51ec13=await _0x5882ed[_0x3d1c8b(0x49d,_0x5c7584._0x221794,0x4df,_0x5c7584._0x633b9c)]();return{'credential':{'kind':_0x5aed76(0x447,_0x5c7584._0x15082d,_0x5c7584._0x4f2595,_0x5c7584._0x56ea0b),'value':_0x51ec13[_0x5aed76(_0x5c7584._0x4e387a,0x3e9,_0x5c7584._0x139d46,0x47b)]??this['accessToken']},'endpoints':{'api':_0x51ec13[_0x5aed76(_0x5c7584._0x3599f6,0x3c2,_0x5c7584._0x45ddea,0x3b7)]?.[_0x5aed76(_0x5c7584._0x31fca7,_0x5c7584._0x28dc89,0x302,_0x5c7584._0x1d58cd)]??this[_0x3d1c8b(_0x5c7584._0x1ef24a,0x44b,_0x5c7584._0x2eadf4,0x502)],'originTracker':_0x51ec13['endpoints']?.[_0x5aed76(_0x5c7584._0x3e7b71,_0x5c7584._0xcb31d0,0x241,_0x5c7584._0x3d7759)],'proxy':_0x51ec13[_0x3d1c8b(0x52b,0x5ab,0x489,0x5ae)]?.[_0x3d1c8b(_0x5c7584._0x4f7f04,0x3f3,0x3c8,_0x5c7584._0xd3d885)],'telemetry':_0x51ec13[_0x5aed76(_0x5c7584._0xda0a,_0x5c7584._0x47714b,0x40f,0x44a)]?.['telemetry']}};}};function trimTrailingSlashes2(_0x4ad303){return _0x4ad303['replace'](/\/+$/,'');}function createModelInfo(_0x56e9d4){const _0x219378={_0x6c5729:0x459,_0x1ff764:0xdb,_0x393908:0x6d,_0x207af5:0x16b,_0x42c38d:0x12b,_0x5a9845:0x463,_0x252256:0x503,_0x29e470:0x5a0,_0xba7bdb:0x526,_0x24ec41:0x400,_0x21e4ca:0x3ec,_0x5ee488:0x448,_0xd8b330:0x396,_0x358c99:0x486,_0x6e9bc1:0x49d},_0x3742b3={_0x36324d:0xca,_0x5cb1a3:0xe2};function _0x2d8358(_0x118ffe,_0x474141,_0x39486a,_0x514510){return _0x2e041c(_0x118ffe-0x17c,_0x474141-0xea,_0x474141-0x53e,_0x39486a);}const _0x3baea1=_0x56e9d4[_0x2d8358(0x463,0x490,_0x219378._0x6c5729,0x519)]??_0x56e9d4[_0x17c99a(-_0x219378._0x1ff764,-_0x219378._0x393908,-_0x219378._0x207af5,-_0x219378._0x42c38d)];function _0x17c99a(_0x475a4b,_0x4e49c2,_0x22b534,_0x369842){return _0x55f0a4(_0x475a4b-_0x3742b3._0x36324d,_0x4e49c2-_0x3742b3._0x5cb1a3,_0x4e49c2,_0x475a4b-0xef);}const _0x15b441=_0x56e9d4[_0x2d8358(0x3b4,_0x219378._0x5a9845,0x42b,_0x219378._0x252256)]?.['limits']?.[_0x2d8358(_0x219378._0x29e470,_0x219378._0xba7bdb,0x583,0x4bd)],_0x1e540c=_0x56e9d4[_0x2d8358(0x495,0x463,_0x219378._0x24ec41,0x3d1)]?.[_0x2d8358(_0x219378._0x21e4ca,_0x219378._0x5ee488,_0x219378._0xd8b330,0x509)]?.[_0x2d8358(0x515,_0x219378._0x358c99,0x514,_0x219378._0x6e9bc1)],_0x595cef=_0x15b441!==void 0x0||_0x1e540c!==void 0x0?{..._0x15b441!==void 0x0?{'contextWindow':_0x15b441}:{},..._0x1e540c!==void 0x0?{'maxOutput':_0x1e540c}:{}}:void 0x0;return{'id':_0x56e9d4['id'],'name':_0x56e9d4['name']??_0x56e9d4['id'],..._0x595cef?{'limits':_0x595cef}:{},..._0x3baea1?{'supportedEndpoints':_0x3baea1}:{}};}function deduplicateModels(_0x40f69a){const _0x438b97={_0x4b7012:0x288,_0xc4dfa0:0x2c9,_0x2ec079:0x301,_0x3a0d72:0x204,_0x357b46:0x36b,_0x2e6c23:0x2a1},_0x25c522={_0x215015:0xb5,_0x49cdfa:0xf2,_0x4b5f23:0x355},_0x209d45={_0x4568a6:0xb9};function _0x6df925(_0x49002c,_0x5e3ec2,_0x12785a,_0x178611){return _0x2e041c(_0x49002c-0x167,_0x5e3ec2-_0x209d45._0x4568a6,_0x178611- -0x18d,_0x5e3ec2);}const _0x983f3f=new Map();function _0x714e4f(_0xffcbe7,_0xdca873,_0x5285b9,_0x4fdd3e){return _0x2e041c(_0xffcbe7-_0x25c522._0x215015,_0xdca873-_0x25c522._0x49cdfa,_0x4fdd3e-_0x25c522._0x4b5f23,_0xdca873);}for(const _0x360136 of _0x40f69a){!_0x983f3f[_0x714e4f(_0x438b97._0x4b7012,0x367,0x355,_0x438b97._0xc4dfa0)](_0x360136['id'])&&_0x983f3f[_0x714e4f(0x26f,0x3c4,0x330,0x320)](_0x360136['id'],_0x360136);}return Array[_0x6df925(-_0x438b97._0x2ec079,-0x27e,-0x266,-0x2db)](_0x983f3f[_0x714e4f(_0x438b97._0x3a0d72,_0x438b97._0x357b46,_0x438b97._0x2e6c23,0x2c5)]());}function _0x3920(_0x390f00,_0x47763d){_0x390f00=_0x390f00-0x7d;const _0xb3ca3d=_0xb3ca();let _0x392005=_0xb3ca3d[_0x390f00];if(_0x3920['RAARJp']===undefined){var _0x3b698e=function(_0xff2b0b){const _0x152159='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4a0030='',_0x187dc8='';for(let _0x28f6fa=0x0,_0xc631e2,_0x61bc8d,_0x27595e=0x0;_0x61bc8d=_0xff2b0b['charAt'](_0x27595e++);~_0x61bc8d&&(_0xc631e2=_0x28f6fa%0x4?_0xc631e2*0x40+_0x61bc8d:_0x61bc8d,_0x28f6fa++%0x4)?_0x4a0030+=String['fromCharCode'](0xff&_0xc631e2>>(-0x2*_0x28f6fa&0x6)):0x0){_0x61bc8d=_0x152159['indexOf'](_0x61bc8d);}for(let _0x1a51ed=0x0,_0x18f512=_0x4a0030['length'];_0x1a51ed<_0x18f512;_0x1a51ed++){_0x187dc8+='%'+('00'+_0x4a0030['charCodeAt'](_0x1a51ed)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x187dc8);};_0x3920['RPauKz']=_0x3b698e,_0x3920['PBfgmm']={},_0x3920['RAARJp']=!![];}const _0x1dab79=_0xb3ca3d[0x0],_0x385ee8=_0x390f00+_0x1dab79,_0x30e923=_0x3920['PBfgmm'][_0x385ee8];return!_0x30e923?(_0x392005=_0x3920['RPauKz'](_0x392005),_0x3920['PBfgmm'][_0x385ee8]=_0x392005):_0x392005=_0x30e923,_0x392005;}function hasUserPromptContent(_0x5c0870){const _0x143c18={_0x6ae552:0x475,_0x50ab99:0x41f,_0x485749:0x4b9,_0x4ed1d5:0x2f9,_0x318219:0x328},_0x191797={_0x21ba9f:0x24d,_0x255d3a:0x190,_0x5db7d:0x16f,_0x1192e2:0x14e,_0x5c9910:0x1f6,_0x3892ec:0xd,_0xc9d260:0x77,_0x4f047d:0x35,_0x514072:0x11f,_0x2b27c7:0x1bd,_0x55ed41:0x132,_0x610a9e:0x72,_0x2c3e70:0x1c1,_0x2896c4:0x132,_0x10a45c:0x186,_0x217f0b:0x97,_0x177b20:0x60,_0xa33b2c:0x9f,_0x51b130:0x155,_0x5a55c8:0x162},_0x16978f={_0x4dd03d:0x28,_0x1a5d5b:0x54},_0xd3fc96={_0x63c6ae:0x171},_0x3ad96a={_0x29b250:0xa9},_0x30b451={_0x37f713:0x487};function _0x39d174(_0x3fa740,_0x1b73e5,_0x15987d,_0x3bde19){return _0x2e041c(_0x3fa740-0xf7,_0x1b73e5-0x64,_0x3fa740-_0x30b451._0x37f713,_0x15987d);}if(typeof _0x5c0870===_0x39d174(_0x143c18._0x6ae552,0x43e,_0x143c18._0x50ab99,_0x143c18._0x485749))return _0x5c0870[_0x39d174(0x35b,0x3b6,_0x143c18._0x4ed1d5,_0x143c18._0x318219)]()['length']>0x0;function _0x25cdd2(_0x3c0740,_0x5816b9,_0x4df77e,_0x556626){return _0x2e041c(_0x3c0740-0xac,_0x5816b9-_0x3ad96a._0x29b250,_0x5816b9-0x2a,_0x4df77e);}if(!Array['isArray'](_0x5c0870))return![];return _0x5c0870[_0x25cdd2(0xe3,0x37,0xb5,0xf8)](_0x2870f0=>{function _0x15d188(_0x34d1e0,_0x5df779,_0x11fb25,_0x39a18b){return _0x25cdd2(_0x34d1e0-_0xd3fc96._0x63c6ae,_0x5df779-0x11a,_0x11fb25,_0x39a18b-0x51);}if(!_0x2870f0||typeof _0x2870f0!==_0x57e951(-0xce,-_0x191797._0x21ba9f,-_0x191797._0x255d3a,-_0x191797._0x5db7d))return![];const _0x5268df=_0x2870f0;function _0x57e951(_0x5425d2,_0x33e833,_0x9ae777,_0x29e801){return _0x25cdd2(_0x5425d2-_0x16978f._0x4dd03d,_0x9ae777- -0xab,_0x33e833,_0x29e801-_0x16978f._0x1a5d5b);}return(_0x5268df[_0x57e951(-0xd7,-0xfb,-_0x191797._0x1192e2,-_0x191797._0x5c9910)]==='input_text'||_0x5268df[_0x15d188(-_0x191797._0x3892ec,_0x191797._0xc9d260,-_0x191797._0x4f047d,0x7f)]===_0x57e951(-_0x191797._0x514072,-0x9c,-0x132,-0x8b))&&typeof _0x5268df[_0x15d188(0x29,0x93,0x140,0x9b)]===_0x15d188(_0x191797._0x2b27c7,_0x191797._0x55ed41,_0x191797._0x610a9e,0x1c4)&&_0x5268df[_0x57e951(-0xbe,-_0x191797._0x2c3e70,-_0x191797._0x2896c4,-_0x191797._0x10a45c)][_0x15d188(0xc,0x18,-_0x191797._0x217f0b,-_0x191797._0x177b20)]()[_0x15d188(_0x191797._0xa33b2c,0xe1,_0x191797._0x51b130,_0x191797._0x5a55c8)]>0x0;});}function isUserPromptEntry(_0x2d8a93){const _0x5b6807={_0x42b6ba:0x41e,_0x4c02a2:0x382,_0x1a3134:0x407,_0x23ca7e:0x469,_0x1f8649:0x4b1,_0x3f48b1:0x158,_0x444db0:0x18c,_0x1ea3eb:0x118,_0x316ae5:0x18f,_0x398804:0x1a1,_0x331b8b:0x460,_0x11f9d8:0x3f1,_0x15550b:0x115,_0x3ef8d5:0x1bc,_0x65d1a0:0x141},_0x5c1ed7={_0x9cf075:0x7b};function _0x334207(_0x398ff3,_0x3e8ba7,_0x3ab95d,_0x5a8465){return _0x2e041c(_0x398ff3-0xd9,_0x3e8ba7-0xfa,_0x5a8465- -0x23,_0x3ab95d);}if(!_0x2d8a93||typeof _0x2d8a93!==_0x40bbec(0x3a3,0x424,_0x5b6807._0x42b6ba,_0x5b6807._0x4c02a2))return![];const _0x45233e=_0x2d8a93;if(_0x45233e[_0x40bbec(_0x5b6807._0x1a3134,_0x5b6807._0x23ca7e,_0x5b6807._0x1f8649,0x3f3)]!==_0x334207(-0x81,-_0x5b6807._0x3f48b1,-_0x5b6807._0x444db0,-_0x5b6807._0x1ea3eb))return![];function _0x40bbec(_0x40c894,_0x1beda2,_0x46caaf,_0x20b942){return _0x2e041c(_0x40c894-0x38,_0x1beda2-_0x5c1ed7._0x9cf075,_0x46caaf-0x52d,_0x1beda2);}if(_0x45233e[_0x334207(-_0x5b6807._0x316ae5,-_0x5b6807._0x398804,-0x8f,-0xf0)]!==void 0x0&&_0x45233e[_0x40bbec(0x520,0x462,_0x5b6807._0x331b8b,0x515)]!==_0x40bbec(0x44c,_0x5b6807._0x11f9d8,0x487,0x410))return![];return hasUserPromptContent(_0x45233e[_0x334207(-_0x5b6807._0x15550b,-_0x5b6807._0x3ef8d5,-0x82,-_0x5b6807._0x65d1a0)]);}function determineInitiator(_0x128d0d){const _0x12330c={_0x30f32b:0x182,_0x188e7b:0x131,_0x2fad83:0x142,_0x2543a3:0x151,_0x3f9307:0x45,_0x19f115:0xdb,_0x57259a:0xa3,_0x596959:0xdb,_0x2bc850:0xbc,_0x49e002:0xd,_0x2c9011:0x27,_0x164fa9:0xad,_0x267f0b:0x43,_0x2e06be:0x3e,_0x3d0a0c:0x18c,_0x49b159:0x1ee,_0x4df393:0x1de,_0x532248:0x106,_0x5e68fe:0x5f,_0x37dda2:0x119,_0x428b4a:0x85,_0x59c39a:0x11c,_0xda0e84:0x166,_0x482df7:0x11f,_0x4d8180:0x14c},_0x548047={_0x1b9ba5:0x1c,_0x3d754e:0x52},_0x4c469b={_0x28e852:0x22};if(!_0x128d0d||typeof _0x128d0d!==_0x5e968d(-0x1d3,-_0x12330c._0x30f32b,-_0x12330c._0x188e7b,-_0x12330c._0x2fad83))return _0x5e968d(-_0x12330c._0x2543a3,-_0x12330c._0x3f9307,-0xe8,-0xbc);const _0x4f9bed=_0x5e968d(-0x161,-0xa4,-_0x12330c._0x19f115,-_0x12330c._0x57259a)in _0x128d0d?_0x128d0d[_0x5e968d(-0xff,-0x10a,-_0x12330c._0x596959,-_0x12330c._0x2bc850)]:_0x5e968d(0x7f,_0x12330c._0x49e002,-_0x12330c._0x2c9011,-_0x12330c._0x164fa9)in _0x128d0d?_0x128d0d[_0x5e968d(0x91,0xb,-0x27,_0x12330c._0x267f0b)]:void 0x0;if(!Array[_0x5e968d(-_0x12330c._0x2e06be,0x36,0xd,0x13)](_0x4f9bed)||_0x4f9bed[_0x2496f5(_0x12330c._0x3d0a0c,_0x12330c._0x49b159,0x15f,_0x12330c._0x4df393)]===0x0)return _0x5e968d(-0xa8,-_0x12330c._0x532248,-0xe8,-_0x12330c._0x5e68fe);function _0x5e968d(_0x57306d,_0x142302,_0x1220ea,_0x2432fc){return _0x2e041c(_0x57306d-0x95,_0x142302-0xf5,_0x1220ea- -_0x4c469b._0x28e852,_0x2432fc);}function _0x2496f5(_0x11f240,_0xc4b041,_0x479c12,_0x12618f){return _0x2e041c(_0x11f240-_0x548047._0x1b9ba5,_0xc4b041-_0x548047._0x3d754e,_0x12618f-0x241,_0x11f240);}return isUserPromptEntry(_0x4f9bed[_0x4f9bed[_0x5e968d(-_0x12330c._0x37dda2,-0x5c,-_0x12330c._0x428b4a,-_0x12330c._0x59c39a)]-0x1])?_0x2496f5(_0x12330c._0xda0e84,0x1cf,_0x12330c._0x482df7,_0x12330c._0x4d8180):'agent';}function isUnsupportedApiForModel(_0x561367){const _0x4c9dae={_0x325a2c:0xcb,_0x46fec7:0xee,_0x177816:0x152,_0xde7202:0x197},_0x4bd4f5={_0x23d54d:0x196,_0x2e06c4:0xad};function _0x1ce601(_0x420f02,_0x2fc587,_0x32d3a0,_0x4c6b9b){return _0x55f0a4(_0x420f02-0xa1,_0x2fc587-_0x4bd4f5._0x23d54d,_0x420f02,_0x32d3a0-_0x4bd4f5._0x2e06c4);}return _0x561367[_0x1ce601(-_0x4c9dae._0x325a2c,-_0x4c9dae._0x46fec7,-_0x4c9dae._0x177816,-_0x4c9dae._0xde7202)]('unsupported_api_for_model');}function createResponseError(_0xf88351,_0x17f5ca){const _0x5801f2={_0x4baf5c:0x218,_0x778410:0x2e0},_0x40d373={_0x47cb7f:0x5d};if(_0xf88351===0x191||_0xf88351===0x193)return new Error(_0x2450d8(-0x301,-0x264,-0x26c,-_0x5801f2._0x4baf5c));if(_0xf88351===0x198||_0xf88351===0x1ad)return new Error('Rate\x20limit\x20exceeded.\x20Please\x20try\x20again\x20later.');function _0x2450d8(_0x352c78,_0x2ed4b7,_0x59edfc,_0x38b66e){return _0x55f0a4(_0x352c78-0x129,_0x2ed4b7-0x9a,_0x38b66e,_0x59edfc- -_0x40d373._0x47cb7f);}if(_0xf88351===0x190)return new Error(_0x3cea95(-0x74,-0x9b,-0xe3,-0xd0)+_0x17f5ca);function _0x3cea95(_0x4aa1fb,_0x53ca1c,_0x16c21f,_0x50d0dd){return _0x55f0a4(_0x4aa1fb-0x164,_0x53ca1c-0x6a,_0x16c21f,_0x50d0dd-0x204);}return new Error(_0x17f5ca||_0x2450d8(-0x31f,-0x22a,-_0x5801f2._0x778410,-0x236)+_0xf88351);}var GitHubModel=class extends OpenAiModel{[_0x55f0a4(-0x244,-0x169,-0x1b6,-0x193)];[_0x2e041c(-0xcf,0x50,-0x61,-0xa2)]=new Map();[_0x2e041c(-0x40,-0x1f,-0xa9,-0x87)];constructor(_0x5afc06={}){const _0x245195={_0x245c7e:0x132,_0x14e5fa:0xd7,_0x109c60:0x42,_0x13be76:0x400,_0x479678:0x332,_0x2c8111:0x34a,_0x7f798c:0x105,_0x395b1a:0xe2,_0x8d8f5e:0x3bc,_0x20e9a1:0x3bb,_0x28195b:0x315,_0x54b8da:0x3a6,_0x135a24:0x44a,_0x35f7f7:0x49d,_0x3d62e4:0x43a,_0x1cb99f:0x36e,_0x8394ad:0x466,_0xf9ff62:0x3ba,_0x1a105e:0x3a8,_0xc7ed6c:0x41e,_0x364465:0x3c6,_0x471781:0x6c,_0x130db0:0x76,_0x241f21:0x346,_0x6c781d:0x42a,_0xf095fe:0x388,_0xf2396:0x189,_0x4931cc:0xfb,_0x59447d:0x398,_0x29606a:0x3de,_0x350fa7:0x105,_0x53f127:0xa4,_0x4627fa:0xbf,_0x58725f:0x1,_0x415586:0x167,_0x315fad:0xa7,_0x2bc6ff:0x32d,_0x4e69cc:0x3e2,_0x456120:0x112,_0x38e8a7:0x31,_0x2b506a:0xe0,_0x140de0:0xc0,_0x4f8872:0x4ba},_0x4b4ed0={_0x225b0c:0x199},_0x2f19c1={_0xeec20f:0x1df,_0x2a3cf0:0x315},_0x5020f2=trimTrailingSlashes2(_0x5afc06[_0x3c3320(0x34,0x178,_0x245195._0x245c7e,_0x245195._0x14e5fa)]??_0x3c3320(0xfd,0x166,0xe0,0x17c)),_0x1c2faf=_0x5afc06[_0x3c3320(-0x8b,-0x58,_0x245195._0x109c60,0x2b)]??globalThis[_0x7c66da(_0x245195._0x13be76,0x384,_0x245195._0x479678,_0x245195._0x2c8111)];function _0x3c3320(_0x31796f,_0x5185e6,_0x386dcb,_0x4253fa){return _0x55f0a4(_0x31796f-0x194,_0x5185e6-_0x2f19c1._0xeec20f,_0x31796f,_0x4253fa-_0x2f19c1._0x2a3cf0);}const _0x158353=_0x5afc06[_0x3c3320(_0x245195._0x7f798c,0x100,0x38,0x93)]??(_0x5afc06[_0x3c3320(-0x26,_0x245195._0x395b1a,0xe9,0x98)]?new GitHubAccessTokenResolver({'accessToken':_0x5afc06[_0x7c66da(_0x245195._0x8d8f5e,_0x245195._0x20e9a1,0x45d,0x3b7)],'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'githubApiUrl':_0x5afc06[_0x7c66da(0x410,0x350,_0x245195._0x28195b,_0x245195._0x54b8da)]??'https://api.github.com','tokenExchangeApiVersion':_0x5afc06[_0x7c66da(0x454,_0x245195._0x135a24,_0x245195._0x35f7f7,_0x245195._0x3d62e4)]??_0x7c66da(0x398,0x46b,_0x245195._0x1cb99f,0x418)}):void 0x0);function _0x7c66da(_0xbf573f,_0x318177,_0x32769f,_0x511d0d){return _0x55f0a4(_0xbf573f-_0x4b4ed0._0x225b0c,_0x318177-0x89,_0x318177,_0x511d0d-0x634);}const _0x23e1a0=_0x5afc06[_0x7c66da(0x374,_0x245195._0x8394ad,_0x245195._0xf9ff62,_0x245195._0x1a105e)]??_0x3c3320(0x125,0xe8,0xc9,0x135),_0x2d7476=_0x5afc06[_0x3c3320(0xb5,0x22b,0x17f,0x170)]??_0x7c66da(0x46c,_0x245195._0xc7ed6c,0x455,0x45b),_0x176cb4=({body:_0x6e1102})=>{return{'editor-plugin-version':_0x2d7476,'editor-version':_0x23e1a0,'x-initiator':determineInitiator(_0x6e1102),'x-request-id':randomUUID()};},_0x42a7f0={'apiKey':_0x5afc06[_0x7c66da(0x461,0x46b,_0x245195._0x364465,0x3e2)],'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'maxTokens':_0x5afc06[_0x3c3320(-_0x245195._0x471781,0x48,_0x245195._0x130db0,0x4b)],'model':_0x5afc06[_0x7c66da(_0x245195._0x241f21,_0x245195._0x6c781d,0x313,_0x245195._0xf095fe)],'reasoning':_0x5afc06[_0x3c3320(0x115,0x157,0xec,_0x245195._0xf2396)],'providerSessionResolver':_0x158353,'requestMutators':_0x5afc06[_0x3c3320(0xde,0xe4,_0x245195._0x4931cc,0x13d)],'headerResolver':_0x176cb4};super(_0x42a7f0),this[_0x7c66da(0x3de,_0x245195._0x59447d,0x408,_0x245195._0x29606a)]=_0x5afc06[_0x3c3320(_0x245195._0x350fa7,_0x245195._0x7f798c,_0x245195._0x53f127,_0x245195._0x4627fa)]??_0x3c3320(_0x245195._0x58725f,0x6b,_0x245195._0x415586,_0x245195._0x315fad),this[_0x7c66da(0x4c0,0x506,0x547,0x4a1)]=new AnthropicModel({'apiKey':_0x5afc06[_0x7c66da(0x446,_0x245195._0x2bc6ff,0x3ca,_0x245195._0x4e69cc)],'authScheme':_0x3c3320(_0x245195._0x456120,0xa9,_0x245195._0x38e8a7,_0x245195._0x2b506a),'baseUrl':_0x5020f2,'fetch':_0x1c2faf,'headerResolver':_0x176cb4,'maxTokens':_0x5afc06['maxTokens'],'model':_0x5afc06[_0x3c3320(_0x245195._0x140de0,-0x3e,0xc4,0x69)],'reasoning':_0x5afc06['reasoning'],'providerSessionResolver':_0x158353,'requestMutators':_0x5afc06[_0x7c66da(0x3c8,_0x245195._0x4f8872,0x4f1,0x45c)]});}[_0x55f0a4(-0x356,-0x2b7,-0x261,-0x2b0)](){const _0x2f0032={_0x5f742:0x6d},_0x263c75={_0x511d48:0x155,_0x366eea:0x188};function _0x4ee92b(_0x2e407b,_0x1d4a73,_0x39b19a,_0x333f9c){return _0x2e041c(_0x2e407b-0x130,_0x1d4a73-_0x263c75._0x511d48,_0x1d4a73-_0x263c75._0x366eea,_0x2e407b);}return new Error(_0x4ee92b(0x45,_0x2f0032._0x5f742,0xe1,0x118));}[_0x55f0a4(-0x2b3,-0x31b,-0x307,-0x29a)](_0x2de223){const _0x376a11={_0x42e5f0:0x175,_0x3cd826:0x230,_0x47d7e2:0x1d4,_0x3ccce4:0x100,_0x1a878f:0xe3,_0x4adc72:0xca,_0x33fffc:0x66,_0x3de9ab:0xb7,_0x116343:0x10c,_0xfc854:0x7a},_0x378d9b={_0x13500f:0x56,_0x1b63f3:0x157},_0x2eb186=this[_0x1ca199(0x103,0x1cc,_0x376a11._0x42e5f0,0x217)][_0x1ca199(_0x376a11._0x3cd826,0x1a5,0x1a8,_0x376a11._0x47d7e2)](_0x2de223);if(!_0x2eb186)return![];function _0x1ca199(_0x1f759b,_0xaeb268,_0x79d8a2,_0x3867d9){return _0x55f0a4(_0x1f759b-0x10e,_0xaeb268-0x1bc,_0x3867d9,_0x79d8a2-0x383);}function _0x38f496(_0x93f9ad,_0x48fa2f,_0x51eaa2,_0x23f3cb){return _0x2e041c(_0x93f9ad-0x61,_0x48fa2f-_0x378d9b._0x13500f,_0x51eaa2-_0x378d9b._0x1b63f3,_0x48fa2f);}return!_0x2eb186[_0x38f496(_0x376a11._0x3ccce4,0xda,0x105,_0x376a11._0x1a878f)]('/chat/completions')&&_0x2eb186[_0x1ca199(_0x376a11._0x4adc72,0xff,0x184,0xf7)](_0x1ca199(_0x376a11._0x33fffc,_0x376a11._0x3de9ab,_0x376a11._0x116343,_0x376a11._0xfc854));}['shouldPreferResponsesApi'](_0x2488f2){const _0x522c2c={_0x1962ff:0x446,_0x42d772:0x395,_0x3a8435:0x3a1,_0x49b0b6:0x1c7,_0xd461d:0x37,_0x5b9195:0xb,_0x1aab27:0x415,_0x18d9a3:0x369,_0x280a5e:0x263,_0x3f680a:0x2e2,_0xe051cd:0x23b},_0x23f865={_0xcc516e:0x16},_0x2285fd={_0x2e3c68:0x1c1,_0x487fcc:0x57c},_0x3f60b3=this['modelEndpointCache'][_0x1c45a5(0x41d,_0x522c2c._0x1962ff,_0x522c2c._0x42d772,_0x522c2c._0x3a8435)](_0x2488f2[_0x4e7ab9(-0xcc,-0x83,-_0x522c2c._0x49b0b6,-0x115)]);if(!_0x3f60b3)return![];if(resolveOpenAiReasoningConfig(_0x2488f2[_0x4e7ab9(-0x1f,-_0x522c2c._0xd461d,0x11,_0x522c2c._0x5b9195)]))return _0x3f60b3[_0x1c45a5(0x2eb,_0x522c2c._0x1aab27,0x40e,0x37d)]('/responses');function _0x1c45a5(_0x5e8c33,_0x218980,_0x3a120f,_0x54278d){return _0x55f0a4(_0x5e8c33-0x8d,_0x218980-_0x2285fd._0x2e3c68,_0x218980,_0x54278d-_0x2285fd._0x487fcc);}function _0x4e7ab9(_0x24431,_0xa6d67,_0x292f8d,_0x378f0b){return _0x2e041c(_0x24431-0x4a,_0xa6d67-0x6f,_0x378f0b- -_0x23f865._0xcc516e,_0x24431);}return this[_0x1c45a5(0x31e,_0x522c2c._0x18d9a3,_0x522c2c._0x280a5e,_0x522c2c._0x3f680a)](_0x2488f2[_0x1c45a5(_0x522c2c._0xe051cd,0x371,0x372,0x2d0)]);}[_0x55f0a4(-0x32e,-0x286,-0x1fe,-0x296)](_0x5c12d0){const _0x57c9f8={_0x393bc0:0xa7,_0x8e8c8e:0x10e,_0x4e66ca:0x119},_0x413cf8={_0x29cfba:0xa8,_0x4e48db:0xd4};function _0x187e62(_0x42c8b8,_0x2e29bf,_0x4b7d6f,_0x4019b8){return _0x55f0a4(_0x42c8b8-_0x413cf8._0x29cfba,_0x2e29bf-0x13b,_0x4019b8,_0x4b7d6f-_0x413cf8._0x4e48db);}this['modelEndpointCache'][_0x187e62(-0x89,-_0x57c9f8._0x393bc0,-_0x57c9f8._0x8e8c8e,-_0x57c9f8._0x4e66ca)](_0x5c12d0,['/responses']);}['mapApiError'](_0x55e7f7){const _0x277b37={_0x43c80c:0x123,_0x43dfc2:0x171,_0x248d5f:0x150,_0x22d44a:0xf2,_0x11a3f2:0x73,_0x340b6c:0x2e,_0x456ac3:0x9b,_0x8e43a8:0x9},_0x523ec4={_0x32a3ca:0x13b,_0x188948:0x84},_0x3b2e73={_0x11637e:0x1b2,_0x5be6a4:0x2c6};if(_0x55e7f7 instanceof OpenAiApiError)return createResponseError(_0x55e7f7[_0x46cf54(0x171,_0x277b37._0x43c80c,0xba,0x1c0)],_0x55e7f7[_0x46cf54(_0x277b37._0x43dfc2,_0x277b37._0x248d5f,0xa0,_0x277b37._0x22d44a)]||_0x55e7f7[_0x2c1243(_0x277b37._0x11a3f2,_0x277b37._0x340b6c,_0x277b37._0x456ac3,-_0x277b37._0x8e43a8)]);function _0x2c1243(_0x2e1e72,_0x30280c,_0x3f26c0,_0x336be6){return _0x55f0a4(_0x2e1e72-_0x3b2e73._0x11637e,_0x30280c-0x1df,_0x336be6,_0x2e1e72-_0x3b2e73._0x5be6a4);}function _0x46cf54(_0x3a2786,_0x381378,_0x2e72d6,_0x1e4561){return _0x2e041c(_0x3a2786-_0x523ec4._0x32a3ca,_0x381378-_0x523ec4._0x188948,_0x381378-0x21e,_0x1e4561);}return _0x55e7f7;}[_0x55f0a4(-0x352,-0x389,-0x23b,-0x2ec)](_0x1ce060,_0x1d9c6e){const _0x109857={_0x49300d:0x120,_0x45390c:0x4a7,_0x1aa162:0x3ad,_0x4dda2d:0x49d,_0xf6a67a:0x204,_0x100997:0x201,_0x565228:0xd7,_0x4ba364:0x41f,_0x65f98f:0xc7,_0x2c401f:0x8c,_0x37a652:0x283,_0x7817f4:0x1c7,_0x3ea82f:0x16f,_0xb84921:0x47b,_0x5c0893:0x3c7,_0x420cf8:0x1ac,_0x50448c:0x163,_0x5c4f29:0x91,_0x498c77:0x475},_0x54999e={_0x1cdf17:0x1af},_0x14d7cf={_0x3c77c4:0x635};switch(this[_0x2e64a3(0x86,_0x109857._0x49300d,0x147,0x1eb)]){case'anthropic-messages':return this['anthropicDelegate'][_0x2e64a3(0xce,0x188,0x133,0x1ae)](_0x1ce060,_0x1d9c6e);case _0x264969(0x4ef,0x3e9,0x47b,_0x109857._0x45390c):return this[_0x264969(_0x109857._0x1aa162,0x431,0x40d,_0x109857._0x4dda2d)](_0x1ce060,_0x1d9c6e);case _0x2e64a3(_0x109857._0xf6a67a,_0x109857._0x100997,0x166,_0x109857._0x565228):return this[_0x264969(0x4db,0x3b9,_0x109857._0x4ba364,0x44a)](_0x1ce060,_0x1d9c6e);case _0x2e64a3(0x72,0x12e,_0x109857._0x65f98f,_0x109857._0x2c401f):return this[_0x2e64a3(0x1e4,_0x109857._0x37a652,_0x109857._0x7817f4,_0x109857._0x3ea82f)](_0x1ce060,_0x1d9c6e);case _0x264969(0x32c,_0x109857._0xb84921,_0x109857._0x5c0893,0x317):return this[_0x2e64a3(_0x109857._0x420cf8,_0x109857._0x50448c,0x133,_0x109857._0x5c4f29)](_0x1ce060,_0x1d9c6e);}function _0x264969(_0x1eb80a,_0xd249cc,_0x1b236,_0x42a95d){return _0x55f0a4(_0x1eb80a-0x19d,_0xd249cc-0x3a,_0x42a95d,_0x1b236-_0x14d7cf._0x3c77c4);}function _0x2e64a3(_0x561114,_0x43d3a1,_0x55d7c8,_0x5be636){return _0x55f0a4(_0x561114-_0x54999e._0x1cdf17,_0x43d3a1-0x18c,_0x561114,_0x55d7c8-0x39d);}throw new Error(_0x264969(0x4b9,0x4a4,_0x109857._0x498c77,_0x109857._0x4dda2d)+String(this['surface']));}[_0x2e041c(-0xdc,0x8a,-0x32,0x6c)](_0x3a8731,_0x130d8a){const _0x2a9ae4={_0x2b6d86:0x11b,_0xe36865:0x16b,_0x37567b:0x1e1,_0x3e4da2:0x29a,_0x2adbf2:0x33b,_0x945e73:0x1fa,_0x53e309:0x1c3,_0x761faf:0x25a,_0x25ab0a:0x164,_0x101be3:0x1d1,_0x9e382f:0x42c,_0x3d4522:0x377,_0x42cea8:0x3dd,_0x10013a:0x429,_0xaa1285:0x2c8,_0x4ccc96:0x325,_0x146a84:0x3cc,_0xe22571:0x326,_0x2251bf:0x360,_0x4abd20:0x3d3,_0x369ff7:0x423,_0x2e4d68:0x134,_0x430e71:0x2ee,_0x1788a0:0x319,_0x1507fe:0x3ba,_0x1827a2:0x3d6,_0x339fd7:0x37f,_0x2a6bd5:0x3e2},_0x5493a7={_0x5466eb:0x3ea},_0x2f1d58={_0x5ccde5:0x7};function _0x48827a(_0xc09b1f,_0x61bf8f,_0x45fbfe,_0x1d469f){return _0x2e041c(_0xc09b1f-0x100,_0x61bf8f-_0x2f1d58._0x5ccde5,_0x61bf8f-0x20e,_0xc09b1f);}function _0x472f03(_0x5e479b,_0x473024,_0x46698c,_0x5c96ff){return _0x2e041c(_0x5e479b-0x6e,_0x473024-0x152,_0x46698c-_0x5493a7._0x5466eb,_0x5e479b);}switch(this[_0x48827a(_0x2a9ae4._0x2b6d86,0x165,0x100,_0x2a9ae4._0xe36865)]){case _0x472f03(_0x2a9ae4._0x37567b,0x2ec,_0x2a9ae4._0x3e4da2,_0x2a9ae4._0x2adbf2):return this[_0x48827a(_0x2a9ae4._0x945e73,0x228,_0x2a9ae4._0x53e309,_0x2a9ae4._0x761faf)][_0x48827a(0x184,0x1b9,_0x2a9ae4._0x25ab0a,_0x2a9ae4._0x101be3)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x9e382f,_0x2a9ae4._0x3d4522,_0x2a9ae4._0x42cea8,_0x2a9ae4._0x10013a):return this[_0x472f03(0x239,0x216,_0x2a9ae4._0xaa1285,_0x2a9ae4._0x4ccc96)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x146a84,_0x2a9ae4._0xe22571,_0x2a9ae4._0x2251bf,0x364):return this[_0x472f03(0x40c,0x329,_0x2a9ae4._0x4abd20,_0x2a9ae4._0x369ff7)](_0x3a8731,_0x130d8a);case _0x48827a(0x57,0xe5,0x89,_0x2a9ae4._0x2e4d68):return this[_0x472f03(0x330,0x381,0x2ed,_0x2a9ae4._0x430e71)](_0x3a8731,_0x130d8a);case _0x472f03(_0x2a9ae4._0x1788a0,_0x2a9ae4._0x1507fe,0x329,0x354):return this[_0x472f03(_0x2a9ae4._0x1827a2,_0x2a9ae4._0x339fd7,0x395,_0x2a9ae4._0x2a6bd5)](_0x3a8731,_0x130d8a);}throw new Error(_0x48827a(0x174,0x1fb,0x16a,0x1cc)+String(this['surface']));}async['complete'](_0x26832a,_0x35c1ed){const _0x289dab={_0x1c33ed:0x473,_0x235065:0x41a,_0x5095e1:0x47e,_0x37d05e:0x3c2,_0x30e498:0x381,_0x487dfa:0x3aa,_0x57749a:0x31e,_0x57943f:0x2d8,_0x29fa2b:0x2fd,_0x4e9f1e:0x343,_0x71f685:0x368,_0x32b3a8:0x34a,_0x4bc3de:0x345,_0x19c580:0x346,_0x4be02d:0x384,_0x3a96e1:0x367,_0x550ca7:0x286,_0x2c36c3:0x385,_0x543c6c:0x3fd,_0x34bb89:0x3a7},_0x596a1b={_0x10a43f:0xa2},_0xeb3404={_0x25a7ce:0x18,_0x668635:0x5c4};function _0x23a5ee(_0x178945,_0x327216,_0xc0ba5a,_0x59969e){return _0x55f0a4(_0x178945-_0xeb3404._0x25a7ce,_0x327216-0xda,_0x59969e,_0x327216-_0xeb3404._0x668635);}const _0x25ed7b=this[_0x2a0aad(0x4c6,_0x289dab._0x1c33ed,_0x289dab._0x235065,0x3d6)](_0x26832a);if(this[_0x2a0aad(0x42a,_0x289dab._0x5095e1,_0x289dab._0x37d05e,_0x289dab._0x30e498)]!==_0x2a0aad(0x3ac,0x367,_0x289dab._0x487dfa,_0x289dab._0x57749a))return this[_0x23a5ee(0x269,_0x289dab._0x57943f,0x328,_0x289dab._0x29fa2b)](_0x25ed7b,_0x35c1ed);function _0x2a0aad(_0x12ff83,_0x1dd0d6,_0x22ef28,_0x3e473e){return _0x55f0a4(_0x12ff83-0x1e1,_0x1dd0d6-_0x596a1b._0x10a43f,_0x1dd0d6,_0x22ef28-0x618);}if(this[_0x23a5ee(_0x289dab._0x4e9f1e,_0x289dab._0x71f685,0x3b0,0x30f)](_0x25ed7b))return this['response'](_0x25ed7b,_0x35c1ed);try{return await this[_0x23a5ee(_0x289dab._0x32b3a8,0x3d2,_0x289dab._0x4bc3de,_0x289dab._0x19c580)](_0x25ed7b,_0x35c1ed);}catch(_0x512340){if(_0x512340 instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x512340['body']))return this[_0x2a0aad(_0x289dab._0x4be02d,_0x289dab._0x3a96e1,0x382,0x2c1)](_0x25ed7b[_0x23a5ee(0x33a,0x318,_0x289dab._0x550ca7,_0x289dab._0x2c36c3)]),this['response'](_0x25ed7b,_0x35c1ed);throw this[_0x2a0aad(_0x289dab._0x543c6c,_0x289dab._0x235065,_0x289dab._0x34bb89,0x2f6)](_0x512340);}throw _0x512340;}}async*[_0x55f0a4(-0x166,-0x1cd,-0x209,-0x202)](_0x33630a,_0x938e6b){const _0x4a2730={_0x1a589f:0x160,_0x52dd21:0xd4,_0x1a17c5:0x93,_0x4667b0:0xf0,_0x22591c:0x44,_0x1f2be9:0xbd,_0x509cab:0xb9,_0x52ad01:0x178,_0x5e752f:0x11a,_0x268023:0x21b,_0x36349d:0x14d,_0x2ce35d:0x18d,_0x3e2cca:0x183,_0x2d7bda:0x178,_0x151254:0x171,_0x2ea404:0x1b2,_0x2eaa5f:0xbe},_0x4a6d1c={_0x1f476f:0x12c,_0x145418:0x18f},_0x28a02f={_0x3b4a12:0x18b};function _0x33e2cb(_0x4e3930,_0x4b2100,_0x2216f4,_0x50c286){return _0x55f0a4(_0x4e3930-0x1d6,_0x4b2100-_0x28a02f._0x3b4a12,_0x4e3930,_0x2216f4-0x29c);}const _0x57a40f=this[_0x52a221(0x112,0x13e,_0x4a2730._0x1a589f,_0x4a2730._0x52dd21)](_0x33630a);if(this[_0x33e2cb(-0x7,0x48,0x46,-0x62)]!==_0x52a221(0x176,0xce,_0x4a2730._0x1a17c5,_0x4a2730._0x4667b0)){yield*this[_0x33e2cb(0x84,_0x4a2730._0x22591c,_0x4a2730._0x1f2be9,_0x4a2730._0x509cab)](_0x57a40f,_0x938e6b);return;}if(this['shouldPreferResponsesApi'](_0x57a40f)){yield*this[_0x52a221(0xb7,_0x4a2730._0x52ad01,_0x4a2730._0x5e752f,_0x4a2730._0x268023)](_0x57a40f,_0x938e6b);return;}function _0x52a221(_0x42fade,_0x425fcd,_0x23f72d,_0x1f4db0){return _0x2e041c(_0x42fade-_0x4a6d1c._0x1f476f,_0x425fcd-0x96,_0x425fcd-_0x4a6d1c._0x145418,_0x23f72d);}try{yield*this[_0x33e2cb(_0x4a2730._0x36349d,0x97,0xf5,_0x4a2730._0x2ce35d)](_0x57a40f,_0x938e6b);}catch(_0x14478f){if(_0x14478f instanceof OpenAiApiError){if(isUnsupportedApiForModel(_0x14478f['body'])){this['markModelAsResponsesOnly'](_0x57a40f[_0x33e2cb(0x6e,-0x1c,-0x10,0x2d)]),yield*this[_0x52a221(_0x4a2730._0x3e2cca,_0x4a2730._0x2d7bda,_0x4a2730._0x151254,_0x4a2730._0x2ea404)](_0x57a40f,_0x938e6b);return;}throw this[_0x52a221(0x112,0xcb,_0x4a2730._0x2eaa5f,0xd6)](_0x14478f);}throw _0x14478f;}}async[_0x55f0a4(-0x242,-0x2a3,-0x2d6,-0x297)](_0x3cacdd){const _0x2f53b5={_0x33b293:0xaf,_0x2d7325:0x144,_0x2cac10:0xaa,_0x178a72:0x56,_0x183dc8:0x9d,_0xb2167f:0xf3,_0x9b3575:0x15b,_0x267fc7:0x252},_0x44a521={_0x27330a:0x1ed,_0x5267c4:0x17a},_0x291bcf={_0x491b0e:0x1e7,_0x588072:0x28f,_0x1cd136:0x256,_0x5ea653:0x219,_0x859ca6:0x1c4,_0x382767:0x13d},_0x37e81a={_0x528da7:0x0},_0x530140={_0x21a692:0x6b,_0x4e95ea:0x1d5,_0x46d0e5:0x374},_0x42c8f=await this['sendRawRequest']({'path':_0x5bb7c4(0x99,_0x2f53b5._0x33b293,_0x2f53b5._0x2d7325,_0x2f53b5._0x2cac10),'method':'GET','signal':_0x3cacdd});if(!_0x42c8f['ok'])throw this[_0x33d622(_0x2f53b5._0x178a72,0x10c,_0x2f53b5._0x183dc8,_0x2f53b5._0xb2167f)](await this['toApiError'](_0x42c8f));const _0x453b2c=await _0x42c8f['json']();function _0x5bb7c4(_0x540581,_0x595592,_0x5cce2e,_0x4060a1){return _0x55f0a4(_0x540581-_0x530140._0x21a692,_0x595592-_0x530140._0x4e95ea,_0x4060a1,_0x5cce2e-_0x530140._0x46d0e5);}const _0x4c59cc=(_0x453b2c[_0x5bb7c4(_0x2f53b5._0x9b3575,0x16a,0x1ec,_0x2f53b5._0x267fc7)]??[])['map'](_0x5d5b70=>{const _0x344117={_0x4c81c9:0x9a},_0x3325b6=createModelInfo(_0x5d5b70);function _0x24bb8e(_0x2c0925,_0x353399,_0xc193c4,_0x559191){return _0x5bb7c4(_0x2c0925-0xda,_0x353399-0x1dc,_0xc193c4-_0x344117._0x4c81c9,_0x2c0925);}_0x3325b6[_0x24bb8e(0x28e,0x16a,_0x291bcf._0x491b0e,_0x291bcf._0x588072)]&&this['modelEndpointCache'][_0x513cb4(0x202,0x21b,0x209,_0x291bcf._0x1cd136)](_0x3325b6['id'],_0x3325b6[_0x513cb4(_0x291bcf._0x5ea653,0x248,_0x291bcf._0x859ca6,_0x291bcf._0x382767)]);function _0x513cb4(_0x216787,_0x355076,_0x270361,_0x1e7937){return _0x5bb7c4(_0x216787-_0x37e81a._0x528da7,_0x355076-0x8b,_0x270361-0x77,_0x216787);}return _0x3325b6;});function _0x33d622(_0xed5bd0,_0x154b01,_0x523528,_0x6a9087){return _0x2e041c(_0xed5bd0-_0x44a521._0x27330a,_0x154b01-_0x44a521._0x5267c4,_0x6a9087-0x1b7,_0x523528);}return deduplicateModels(_0x4c59cc);}};function createHeaders(_0x456083){const _0x34b7b5={_0x3b133d:0x263,_0x524859:0x201,_0x3576e0:0x22d,_0x274f10:0x1dd,_0x35fbd0:0x255,_0x4feb65:0x260},_0x2335c9={_0x5c9682:0x136},_0x434215={_0xed0740:0x94};function _0x1a13a6(_0x3a7830,_0x5d4278,_0x1fc7ca,_0x12f836){return _0x55f0a4(_0x3a7830-_0x434215._0xed0740,_0x5d4278-0xd3,_0x3a7830,_0x12f836-0x5f3);}function _0x537026(_0x9d0475,_0x176953,_0x3ed0e2,_0x3d0ac5){return _0x55f0a4(_0x9d0475-0x12f,_0x176953-_0x2335c9._0x5c9682,_0x3d0ac5,_0x9d0475-0x40f);}const _0x11d905=new Headers();for(const [_0x4ae346,_0xc50af9]of Object[_0x537026(_0x34b7b5._0x3b133d,0x2c0,0x20e,_0x34b7b5._0x524859)](_0x456083)){_0x11d905[_0x537026(_0x34b7b5._0x3576e0,_0x34b7b5._0x274f10,_0x34b7b5._0x35fbd0,_0x34b7b5._0x4feb65)](_0x4ae346,_0xc50af9);}return _0x11d905;}async function fetchRawResponse(_0x136097){const _0x1f2819={_0x16a318:0xda,_0x426703:0x1d5,_0x2eefee:0x269,_0x5abd01:0x1ec,_0x378294:0x2a2,_0x173b6c:0x284,_0x246314:0x2db,_0x2b1a2f:0x282,_0x358b55:0x26e,_0xcf2dee:0x25e,_0x171b7a:0xa7,_0x6b3300:0x60,_0xe95640:0x203,_0x228a77:0x13a,_0x177f0c:0x2be,_0x46e5fd:0x244,_0x2e0341:0x1c9,_0x4bc78a:0x189},_0x3a78d6={_0x532543:0x13c},_0x48a4b3={_0x35345c:0x135,_0x388ada:0xad,_0x1828ff:0x312};function _0x4efed3(_0x459334,_0x1e2fc8,_0x4d1279,_0x199364){return _0x2e041c(_0x459334-_0x48a4b3._0x35345c,_0x1e2fc8-_0x48a4b3._0x388ada,_0x1e2fc8-_0x48a4b3._0x1828ff,_0x459334);}const _0x568ddd=_0x136097[_0x2dbda9(-_0x1f2819._0x16a318,-0x143,-0x175,-0x13d)]??globalThis[_0x4efed3(0x160,_0x1f2819._0x426703,_0x1f2819._0x2eefee,_0x1f2819._0x5abd01)];function _0x2dbda9(_0x226f8a,_0x373230,_0x3b2c65,_0x32576c){return _0x55f0a4(_0x226f8a-_0x3a78d6._0x532543,_0x373230-0x2a,_0x32576c,_0x3b2c65-0x175);}return _0x568ddd(_0x136097[_0x4efed3(0x298,_0x1f2819._0x378294,_0x1f2819._0x173b6c,_0x1f2819._0x246314)],{'method':_0x4efed3(_0x1f2819._0x2b1a2f,_0x1f2819._0x358b55,_0x1f2819._0xcf2dee,0x1ae),'headers':createHeaders(_0x136097[_0x2dbda9(-0x105,-_0x1f2819._0x171b7a,-_0x1f2819._0x6b3300,-0x80)]),'body':JSON[_0x2dbda9(-_0x1f2819._0xe95640,-0x22b,-0x182,-_0x1f2819._0x228a77)](_0x136097[_0x4efed3(_0x1f2819._0x177f0c,_0x1f2819._0x46e5fd,_0x1f2819._0x2e0341,0x1ff)]),'signal':_0x136097[_0x4efed3(0x24a,0x1ed,_0x1f2819._0x4bc78a,0x181)]});}async function fetchJsonResponse(_0x30ea66){const _0x3ad840={_0x57c8ad:0x417,_0x263ec5:0x4a2,_0x46dcb3:0x297,_0x4d19ad:0x266,_0x1388a7:0x2f9,_0x1552b5:0x2e5},_0x42b930={_0x296b29:0x182},_0x5a4a88={_0x5e4502:0x1ea};function _0x4c905a(_0x42aa0d,_0x5ce6cd,_0x56b78f,_0x4905c0){return _0x2e041c(_0x42aa0d-0x1ba,_0x5ce6cd-0x108,_0x4905c0- -_0x5a4a88._0x5e4502,_0x5ce6cd);}const _0x5bc293=await fetchRawResponse(_0x30ea66);if(!_0x5bc293['ok']){const _0x3cfc41=await _0x5bc293[_0x444be2(0x4c7,0x503,0x468,0x4e3)](),_0x26e557=_0x3cfc41[_0x444be2(_0x3ad840._0x57c8ad,0x476,0x3ed,_0x3ad840._0x263ec5)]()||_0x5bc293['statusText']||_0x4c905a(-0x13e,-0x200,-0x1d7,-0x1cc);throw new Error(_0x4c905a(-_0x3ad840._0x46dcb3,-0x24a,-0x2b0,-0x219)+_0x5bc293[_0x4c905a(-_0x3ad840._0x4d19ad,-0x2a2,-_0x3ad840._0x1388a7,-_0x3ad840._0x1552b5)]+':\x20'+_0x26e557);}function _0x444be2(_0x51929a,_0x3d5f44,_0x4a0880,_0x43bc0e){return _0x2e041c(_0x51929a-0x23,_0x3d5f44-_0x42b930._0x296b29,_0x4a0880-0x519,_0x43bc0e);}return await _0x5bc293['json']();}function findLastMessage(_0x4c59cb,_0x2a33ba){const _0x2e5f71={_0x13dc01:0x154,_0x3112cb:0x123,_0x3676d1:0x15e,_0x4ef2f4:0x1aa,_0x11fe0f:0x10f,_0x49b041:0x12a},_0xfd5f8e={_0x4c0179:0xe8};function _0x5be83c(_0x411d74,_0x566db4,_0x3e6d2d,_0x3d31c9){return _0x55f0a4(_0x411d74-0x111,_0x566db4-0x125,_0x566db4,_0x3d31c9-0x280);}for(let _0x29a738=_0x4c59cb[_0x584b54(0x1c3,_0x2e5f71._0x13dc01,_0x2e5f71._0x3112cb,_0x2e5f71._0x3676d1)]-0x1;_0x29a738>=0x0;_0x29a738-=0x1){if(_0x4c59cb[_0x29a738][_0x584b54(_0x2e5f71._0x4ef2f4,_0x2e5f71._0x11fe0f,_0x2e5f71._0x49b041,0x1ea)]===_0x2a33ba)return _0x4c59cb[_0x29a738];}function _0x584b54(_0x191bf7,_0x1e6c87,_0x540544,_0x4fbecc){return _0x55f0a4(_0x191bf7-_0xfd5f8e._0x4c0179,_0x1e6c87-0x192,_0x1e6c87,_0x191bf7-0x3d3);}return void 0x0;}function hasTool(_0xef5bf4,_0x23d300){const _0xc66b8d={_0x209d71:0x132,_0x4e6c41:0xcb},_0x13cef0={_0x27b1da:0x17a,_0x2fcc3e:0x79},_0x21cede={_0x52d976:0x11b,_0x5599bd:0x2ea};function _0x4cedc2(_0x3931ad,_0x580f66,_0xf6aa63,_0x15b812){return _0x55f0a4(_0x3931ad-0x172,_0x580f66-_0x21cede._0x52d976,_0x3931ad,_0x15b812-_0x21cede._0x5599bd);}function _0x14896c(_0x549e58,_0x20e159,_0x39759f,_0x3bd60a){return _0x2e041c(_0x549e58-_0x13cef0._0x27b1da,_0x20e159-0x60,_0x20e159- -_0x13cef0._0x2fcc3e,_0x39759f);}return _0xef5bf4[_0x4cedc2(_0xc66b8d._0x209d71,0x153,0x175,_0xc66b8d._0x4e6c41)]['some'](_0x276692=>_0x276692[_0x4cedc2(0x211,0x1cb,0x192,0x158)]===_0x23d300);}function createMockResponse(_0x4b831f,_0x31e293,_0x851dc7,_0x48d0e5){return{'id':_0x4b831f,'content':_0x31e293,'stopReason':_0x851dc7,'usage':_0x48d0e5};}function _0x55f0a4(_0x396e30,_0x412d42,_0x4cc489,_0x923e24){return _0x3920(_0x923e24- -0x37c,_0x4cc489);}var MockModel=class{[_0x55f0a4(-0x27a,-0x2ab,-0x21c,-0x2ac)];[_0x55f0a4(-0x2f3,-0x317,-0x272,-0x2ca)];[_0x2e041c(-0x154,-0x1c5,-0x148,-0x9b)]=[];[_0x55f0a4(-0x1d9,-0x1bf,-0x1ba,-0x18c)];constructor(_0x571357={}){const _0x566f55={_0x25d875:0x318,_0x4aa157:0x34d,_0x3176be:0x30e,_0x57852b:0x1d9,_0x34fae9:0x1bd,_0x5c5ae0:0x152},_0x2f3d72={_0x54f97b:0x19b},_0x12355a={_0xfef192:0xcd};function _0x5f0d99(_0x530fbd,_0x894eb,_0x12aa16,_0x2477e0){return _0x2e041c(_0x530fbd-0x55,_0x894eb-_0x12355a._0xfef192,_0x530fbd- -0x1fa,_0x12aa16);}this[_0x5f0d99(-0x2f9,-0x291,-_0x566f55._0x25d875,-0x343)]=_0x571357[_0x5f0d99(-0x2f9,-0x3ba,-0x288,-0x368)]??'mock',this[_0x5f0d99(-0x317,-0x31c,-_0x566f55._0x4aa157,-_0x566f55._0x3176be)]=_0x571357['maxTokens']??0x4000;function _0x412377(_0x53fbb3,_0x49919f,_0xdfe5f6,_0x22a41d){return _0x2e041c(_0x53fbb3-0x1,_0x49919f-0x49,_0xdfe5f6- -_0x2f3d72._0x54f97b,_0x53fbb3);}this[_0x5f0d99(-_0x566f55._0x57852b,-0x229,-0x194,-0x154)]=_0x571357[_0x5f0d99(-0x1d9,-_0x566f55._0x34fae9,-0x20a,-_0x566f55._0x5c5ae0)]?structuredClone(_0x571357['reasoning']):void 0x0;}async[_0x55f0a4(-0x24e,-0x264,-0x22e,-0x26a)](_0xd49851,_0x36bab9){const _0x33087f={_0x27e209:0x3f5,_0x33b875:0x4f5,_0x477032:0x337,_0x51f466:0x222,_0x4fbb5f:0x385,_0x429ef4:0x2be,_0x293617:0x282,_0x2f7c74:0x229,_0x4fe3e2:0x2f2,_0xec02da:0x2a9,_0x5e89ff:0x2b8,_0x20fdce:0x20d,_0x2cb866:0x4ac,_0xb09f4c:0x400,_0x3c53e5:0x170,_0x4f8bb1:0x1b7,_0x3f7c64:0x2c0,_0x1d712c:0x20b,_0x114455:0x263,_0x21f3f6:0x2ab,_0x4e438d:0x215,_0x289f2f:0x30e,_0x23982f:0x1ca,_0x55246c:0x2a7,_0x28f65c:0x32d,_0x110fd7:0x3b9,_0x448d2d:0x49e,_0xd1abbd:0x45f,_0x147b26:0x2a3,_0x1cc477:0x35c,_0x3f7eba:0x370,_0x3282fd:0x3b2,_0x5098cb:0x1a8,_0x454711:0x1d1,_0x4dd02d:0x2b2,_0x5c4e8a:0x198},_0x449b96={_0x3d0d31:0x1eb},_0x2ab67f={_0x5f4ec5:0x149,_0x10bd83:0x1a,_0xd7677b:0x463},_0x307f8e={...structuredClone(_0xd49851),..._0xd49851[_0x3ca06a(_0x33087f._0x27e209,0x418,_0x33087f._0x33b875,0x484)]===void 0x0&&this['reasoning']!==void 0x0?{'reasoning':structuredClone(this['reasoning'])}:{}};this['requests'][_0x280bb4(-_0x33087f._0x477032,-0x2c6,-_0x33087f._0x51f466,-_0x33087f._0x4fbb5f)](_0x307f8e);const _0x182b66=findLastMessage(_0x307f8e['messages'],_0x280bb4(-_0x33087f._0x429ef4,-_0x33087f._0x293617,-_0x33087f._0x2f7c74,-_0x33087f._0x4fe3e2)),_0x5cad60=getToolResultBlocks(_0x182b66),_0x4c4975=_0x280bb4(-_0x33087f._0xec02da,-_0x33087f._0x5e89ff,-_0x33087f._0x20fdce,-0x36c)+this['requests'][_0x3ca06a(_0x33087f._0x2cb866,0x3b6,0x40c,_0x33087f._0xb09f4c)];function _0x3ca06a(_0x23f4ab,_0x46e7c1,_0x1e05c3,_0x251d9b){return _0x2e041c(_0x23f4ab-_0x2ab67f._0x5f4ec5,_0x46e7c1-_0x2ab67f._0x10bd83,_0x251d9b-_0x2ab67f._0xd7677b,_0x1e05c3);}if(_0x5cad60[_0x280bb4(-_0x33087f._0x3c53e5,-0x1f0,-0x276,-_0x33087f._0x4f8bb1)]>0x0)return createMockResponse(_0x4c4975,[{'type':_0x280bb4(-_0x33087f._0x3f7c64,-0x23e,-_0x33087f._0x1d712c,-_0x33087f._0x114455),'text':'I\x20checked\x20the\x20mocked\x20tool\x20result.\x20'+_0x5cad60[0x0][_0x280bb4(-0x334,-_0x33087f._0x21f3f6,-0x280,-_0x33087f._0x4e438d)]}],'end_turn',{'inputTokens':0x78,'outputTokens':0x28});const _0x996b20=getTextFromMessage(_0x182b66);function _0x280bb4(_0x191b94,_0x4829a6,_0x3bab54,_0xe3efb5){return _0x2e041c(_0x191b94-0x1dd,_0x4829a6-_0x449b96._0x3d0d31,_0x4829a6- -0x18d,_0x191b94);}if(/list .*files|workspace/i[_0x3ca06a(0x392,_0x33087f._0x289f2f,0x431,0x38b)](_0x996b20)&&hasTool(_0x307f8e,_0x280bb4(-0x123,-_0x33087f._0x23982f,-0x243,-0x199)))return createMockResponse(_0x4c4975,[{'type':_0x3ca06a(0x33f,_0x33087f._0x55246c,0x279,_0x33087f._0x28f65c),'id':'tool-call-'+this['requests']['length'],'name':_0x3ca06a(_0x33087f._0x110fd7,0x3c7,_0x33087f._0x448d2d,0x426),'input':{'command':_0x3ca06a(0x407,_0x33087f._0xd1abbd,0x427,0x43c)}}],_0x280bb4(-_0x33087f._0x147b26,-0x2c3,-0x287,-0x31b),{'inputTokens':0x6e,'outputTokens':0x1c});return createMockResponse(_0x4c4975,[{'type':_0x3ca06a(0x3a4,_0x33087f._0x1cc477,_0x33087f._0x3f7eba,_0x33087f._0x3282fd),'text':_0x280bb4(-0x14a,-_0x33087f._0x5098cb,-_0x33087f._0x454711,-0x1fa)+_0x996b20}],_0x280bb4(-_0x33087f._0x4dd02d,-0x22e,-_0x33087f._0x5c4e8a,-0x2a5),{'inputTokens':0x50,'outputTokens':0x12});}};export{ANTHROPIC_MESSAGES_STREAM_SURFACE,ANTHROPIC_MESSAGES_SURFACE,AVAILABLE_CHAT_MODEL_SURFACES,AnthropicModel,ChatModel,GitHubModel,MockModel,OPENAI_CHAT_COMPLETIONS_STREAM_SURFACE,OPENAI_CHAT_COMPLETIONS_SURFACE,OPENAI_RESPONSES_STREAM_SURFACE,OPENAI_RESPONSES_SURFACE,OPENAI_RESPONSES_WEBSOCKET_SURFACE,OpenAiApiError,OpenAiModel,OpenAiResponsesStreamError,ProviderSessionManager,RoutedModel,StaticModelSurfaceRouter,createAnthropicSurfaces,createDefaultWebSocketFactory,createOpenAiApiError,createOpenAiResponsesStreamParser,createOpenAiResponsesWebSocketEvent,createOpenAiSurfaces,fetchJsonResponse,fetchRawResponse,iterateSseEvents,iterateWebSocketMessages,prepareProviderRequest,resolveApiCredential,resolveSessionBaseUrl,toWebSocketUrl,trimTrailingSlashes,waitForWebSocketOpen};